@craft-ts/mcp 0.7.0-beta.13 → 0.7.0-beta.16
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.
- package/content/best-practices.md +1 -1
- package/content/docs-index.json +143 -48
- package/dist/mcp-server.js +78 -3
- package/dist/mcp-server.js.map +1 -1
- package/package.json +3 -2
- package/skills/craft-ts/SKILL.md +29 -2
- package/skills/craft-ts-effect-v4/SKILL.md +15 -1
- package/skills/craft-ts-i18n/SKILL.md +119 -0
- package/skills/craft-ts-style/SKILL.md +116 -0
|
@@ -49,7 +49,7 @@ Decision page: `/guide/concepts/choose-primitive`.
|
|
|
49
49
|
6. **Services:** `craftService({ name, scope }, function* () { ... })`. Consume
|
|
50
50
|
the generated `X()` helper, typically `yield* X(...)`.
|
|
51
51
|
7. **Routes:** `craftRoutes(name, [...])`, every component route has `componentDeps: {} as import('./x').GenDeps_X`, and **every file** has its own `ValidateCascadeRoutesFile` / `CanRun` check. Parent checks do not cover `loadChildren`. On `TS2589`, split with `loadChildren` — never delete the check.
|
|
52
|
-
8. **Templates:** `
|
|
52
|
+
8. **Templates:** `ifNode` / `matchNode` / `forNode` / `deferNode`, not `@if` / `@for`. Interactive helpers take a unique literal local name: `button('save', { type: 'button', ... }, 'Save')`. The name is `data-craft-name` and must be unique in the app (`assertInteractiveElementNamed`).
|
|
53
53
|
9. **Let ESLint keep generated aliases.** After DI or route edits, run `eslint --fix`. Do not hand-edit `GenDeps_*` or `_Check*` / `_CanRun*` blocks.
|
|
54
54
|
|
|
55
55
|
Install `@craft-ts/dev-tools` and enable the `craft-ts/*` ESLint rules. They are the compiler's partner: a missing route check or a raw `inject()` should fail CI, not production. The generated README documents `npm run lint`, `typecheck`, `test`, `architecture`, `e2e`, and, for EffectTS v4, `effect-check`.
|