@letterstory/design 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/PRINCIPLES.md +3 -2
  2. package/package.json +1 -1
package/PRINCIPLES.md CHANGED
@@ -20,8 +20,9 @@
20
20
  stops being phantom-only loses its `phantom-` prefix in the same PR.
21
21
 
22
22
  3. **One operation, one function, many projections.** UI route, MCP tool, REST endpoint and CLI
23
- command are _projections_ of one lib function with one Zod schema. The manifest is `TOOLS`
24
- in `src/lib/mcp/registry.ts`; MCP, OpenAPI and `/docs/api` are derived from it at request time
23
+ command are _projections_ of one lib function with one Zod schema. The manifest is `TOOL_MANIFEST`
24
+ in `src/lib/mcp/manifest.ts` (handlers keyed by name in `src/lib/mcp/registry.ts`, which binds
25
+ them into `TOOLS`); MCP, OpenAPI and `/docs/api` are derived from it at request time
25
26
  and cannot drift (`src/app/docs/api/AGENTS.md`). Where the UI has its own `/api/*` route, that
26
27
  route and the tool must call the same lib function and share the schema — derive the tool
27
28
  contract with `.omit()` for key-derived fields exactly as
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letterstory/design",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Letter design tokens, the phantom theme registry, and the design principles — one source for every Letter repo.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",