|
4 | 4 | **Context:** You are defining the "DNA" of a metadata-driven low-code platform. |
5 | 5 | **Location:** `packages/spec` repository. |
6 | 6 |
|
| 7 | +Mission: Build the "Post-SaaS Operating System" — an open-core, local-first ecosystem that virtualizes data (SQL/Redis/Excel) and unifies business logic. |
| 8 | +1. The "Galaxy" Architecture (Monorepo Structure) |
| 9 | +We use a Monorepo (pnpm + Turborepo) to manage the ecosystem, but components are designed to be published independently. |
| 10 | +Project & Responsibilities |
| 11 | + * packages/protocol (The Constitution) [Apache 2.0] |
| 12 | + * CRITICAL: Contains the shared manifest.schema.json, TypeScript interfaces, and plugin lifecycle hooks (onInstall, onEnable). |
| 13 | + * Rule: All other packages depend on this. No circular dependencies. |
| 14 | + * packages/objectql (Data Engine) [Apache 2.0] |
| 15 | + * Universal Data Protocol. Compiles GraphQL-like queries into SQL/Redis commands. |
| 16 | + * packages/objectos (Business Kernel) [AGPL v3] |
| 17 | + * The Crown Jewel. Identity, RBAC, Workflow, and Audit Logging. |
| 18 | + * License Note: Strict AGPL to prevent SaaS wrapping by competitors. |
| 19 | + * packages/objectui (Projection Engine) [MIT] |
| 20 | + * React/Shadcn UI components for Server-Driven UI (SDUI). |
| 21 | + * packages/sdk (Plugin Kit) [MIT] |
| 22 | + * Tools for third-party developers to build Marketplace plugins. |
| 23 | + * drivers/* [Apache 2.0] |
| 24 | + * driver-postgres, driver-redis, driver-excel. |
| 25 | + * Must implement interfaces defined in packages/protocol. |
| 26 | + |
7 | 27 | **PRIME DIRECTIVE:** |
8 | 28 |
|
9 | 29 | 1. **Zod First:** ALL definitions must start with a **Zod Schema**. |
|
0 commit comments