The Coline App SDK: apps, tools, file types and surfaces that run inside Coline workspaces, and public websites with Coline Sites. TypeScript, with an in-memory test workspace. MIT.
| 6 |
| submodule as Phase 0 of SDK v2 (see `Coline SDK v2 Plan.md` at the repo root, |
| 7 | §5.1). It is currently `private`; npm publishing is re-established once the v2 |
| 8 | surface stabilizes (§17.5). |
| 9 |
| 10 | ## Layout |
| 11 |
| 12 | - `src/index.ts` — the **v1** public surface. This is what `apps/web`'s app |
| 13 | platform (`src/lib/apps/*`) runs on today. It shrinks and dies as Phases 1–2 |
| 14 | cut the platform over to v2; do not add to it. |
| 15 | - `src/legacy/` — harvested v1 modules (manifest, tree UI, `ColineApp`, |
| 16 | contexts, hosted runtime). Deleted at cutover. |
| 17 | - `src/v2.ts` (`@colineapp/sdk/v2`) — the **v2** contract: manifest schemas, |
| 18 | `defineApp`/`defineTool`/`defineFileType`/`defineCommand`, two-artifact |
| 19 | extraction, capability API types, effect ceilings, protocol v2 envelope. |
| 20 | - `src/manifest/`, `src/define/`, `src/capabilities/` — v2 modules (final |
| 21 | layout per plan §5.2). |
| 22 | - `src/server/` — request signing (shared by v1 and v2) and the protocol v2 |
| 23 | signed envelope. |
| 24 |
| 25 | The v1 modules deleted in the fold (REST client, generated OpenAPI types, |
| 26 | webhooks router, dev server, message builder, OAuth helpers) had no in-repo |
| 27 | consumers; the published `@colineapp/sdk@0.1.x` on npm still carries them for |
| 28 | any external reader of the old docs. |
| 29 |