Plans and entitlements (shape)
| plan | license preset | plugin families | notes |
|---|---|---|---|
| Starter | starter | — | MCP + context + license; project quota from preset |
| Cockpit | cockpit | cockpit | Pro UI over base --api-only runtime |
| Approvals | approvals | approvals | CLI + MCP operator surface |
| Data | datasource | datasource | connector family; per-kind grants via datasource.<kind> |
| Enterprise | enterprise | cockpit/approvals/datasource/packs | all Pro families; terms per agreement |
Rules:
- A plan always maps to a license preset; presets live in
src/license/templates.mjs. - Plugin families must exist in
src/plugins/registry.mjs; the plan catalog is checked intest/plan-catalog.test.mjs. - Connector-specific plans use
datasource.<kind>presets (e.g.datasource.csv), not a new plan id. - Per-item presets
datasource.<kind>/pack.<id>synthesize on demand viapresetLimits(shape-first: no catalog entry needed until a plan sells repeatedly). Sample issuer payloads:templates/license-datasource-kind.example.json,templates/license-pack-id.example.json. - Prices/contracts are not encoded in code; this file is the product shape.
源文件 · mesa-pro/docs/plans.md