@blxzer/cursor-trellis 0.2.6 → 0.2.8

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 (98) hide show
  1. package/CHANGELOG.md +170 -103
  2. package/README.md +27 -4
  3. package/dist/cli/index.d.ts.map +1 -1
  4. package/dist/cli/index.js +18 -0
  5. package/dist/cli/index.js.map +1 -1
  6. package/dist/commands/init.d.ts.map +1 -1
  7. package/dist/commands/init.js +8 -1
  8. package/dist/commands/init.js.map +1 -1
  9. package/dist/commands/update.d.ts.map +1 -1
  10. package/dist/commands/update.js +6 -1
  11. package/dist/commands/update.js.map +1 -1
  12. package/dist/commands/validate-rules.d.ts +6 -0
  13. package/dist/commands/validate-rules.d.ts.map +1 -0
  14. package/dist/commands/validate-rules.js +33 -0
  15. package/dist/commands/validate-rules.js.map +1 -0
  16. package/dist/configurators/cursor2plus-local.d.ts.map +1 -1
  17. package/dist/configurators/cursor2plus-local.js +2 -1
  18. package/dist/configurators/cursor2plus-local.js.map +1 -1
  19. package/dist/configurators/workflow.d.ts.map +1 -1
  20. package/dist/configurators/workflow.js +8 -2
  21. package/dist/configurators/workflow.js.map +1 -1
  22. package/dist/migrations/manifests/0.2.2.json +9 -0
  23. package/dist/migrations/manifests/0.2.4.json +9 -0
  24. package/dist/migrations/manifests/0.2.5.json +9 -0
  25. package/dist/migrations/manifests/0.2.6.json +9 -0
  26. package/dist/migrations/manifests/0.2.7.json +9 -0
  27. package/dist/migrations/manifests/0.2.8.json +9 -0
  28. package/dist/templates/common/bundled-skills/trellis-cursor2plus-setup/SKILL.md +2 -2
  29. package/dist/templates/common/commands/finish-work.md +12 -0
  30. package/dist/templates/common/skills/brainstorm.md +164 -163
  31. package/dist/templates/common/skills/check.md +4 -0
  32. package/dist/templates/cursor/agents/trellis-check.md +32 -0
  33. package/dist/templates/cursor/agents/trellis-implement.md +11 -0
  34. package/dist/templates/cursor/agents/trellis-research.md +29 -0
  35. package/dist/templates/cursor/fixtures/expected-rules.d.ts +14 -0
  36. package/dist/templates/cursor/fixtures/expected-rules.d.ts.map +1 -0
  37. package/dist/templates/cursor/fixtures/expected-rules.js +26 -0
  38. package/dist/templates/cursor/fixtures/expected-rules.js.map +1 -0
  39. package/dist/templates/cursor/rules/trellis-subagent-dispatch.mdc +34 -0
  40. package/dist/templates/markdown/index.d.ts +1 -0
  41. package/dist/templates/markdown/index.d.ts.map +1 -1
  42. package/dist/templates/markdown/index.js +1 -0
  43. package/dist/templates/markdown/index.js.map +1 -1
  44. package/dist/templates/markdown/spec/guides/execution-strategy.md.txt +43 -0
  45. package/dist/templates/markdown/spec/guides/index.md.txt +102 -101
  46. package/dist/templates/trellis/config/execution-strategy-rules.json +31 -0
  47. package/dist/templates/trellis/index.d.ts +2 -0
  48. package/dist/templates/trellis/index.d.ts.map +1 -1
  49. package/dist/templates/trellis/index.js +3 -0
  50. package/dist/templates/trellis/index.js.map +1 -1
  51. package/dist/templates/trellis/local/README.md +61 -37
  52. package/dist/templates/trellis/local/index.d.ts +1 -0
  53. package/dist/templates/trellis/local/index.d.ts.map +1 -1
  54. package/dist/templates/trellis/local/index.js +1 -0
  55. package/dist/templates/trellis/local/index.js.map +1 -1
  56. package/dist/templates/trellis/local/patch_wpelc8.py +162 -38
  57. package/dist/templates/trellis/local/smoke.py +94 -0
  58. package/dist/templates/trellis/scripts/common/codebase_retrieval_router.py +2 -2
  59. package/dist/templates/trellis/scripts/common/cursor_retrieval_env.py +16 -2
  60. package/dist/templates/trellis/scripts/common/execution_strategy.py +268 -0
  61. package/dist/templates/trellis/scripts/common/retrieval_agent_instructions.py +26 -7
  62. package/dist/templates/trellis/scripts/common/semantic_plan_gate.py +18 -4
  63. package/dist/templates/trellis/scripts/common/task_store.py +1594 -1565
  64. package/dist/templates/trellis/scripts/task.py +918 -877
  65. package/dist/templates/trellis/workflow.md +805 -800
  66. package/dist/utils/codebase-retrieval-router.js +2 -2
  67. package/dist/utils/codebase-retrieval-router.js.map +1 -1
  68. package/dist/utils/cursor-retrieval-env.d.ts +2 -0
  69. package/dist/utils/cursor-retrieval-env.d.ts.map +1 -1
  70. package/dist/utils/cursor-retrieval-env.js +11 -2
  71. package/dist/utils/cursor-retrieval-env.js.map +1 -1
  72. package/dist/utils/mirror-check.d.ts +22 -0
  73. package/dist/utils/mirror-check.d.ts.map +1 -0
  74. package/dist/utils/mirror-check.js +90 -0
  75. package/dist/utils/mirror-check.js.map +1 -0
  76. package/dist/utils/normalize-text.d.ts +7 -0
  77. package/dist/utils/normalize-text.d.ts.map +1 -0
  78. package/dist/utils/normalize-text.js +16 -0
  79. package/dist/utils/normalize-text.js.map +1 -0
  80. package/dist/utils/retrieval-agent-instructions.d.ts.map +1 -1
  81. package/dist/utils/retrieval-agent-instructions.js +14 -7
  82. package/dist/utils/retrieval-agent-instructions.js.map +1 -1
  83. package/dist/utils/retrieval-execution-telemetry.d.ts +12 -3
  84. package/dist/utils/retrieval-execution-telemetry.d.ts.map +1 -1
  85. package/dist/utils/retrieval-execution-telemetry.js +37 -1
  86. package/dist/utils/retrieval-execution-telemetry.js.map +1 -1
  87. package/dist/utils/retrieval-tool-classification.d.ts +2 -0
  88. package/dist/utils/retrieval-tool-classification.d.ts.map +1 -1
  89. package/dist/utils/retrieval-tool-classification.js +13 -0
  90. package/dist/utils/retrieval-tool-classification.js.map +1 -1
  91. package/dist/utils/semantic-plan-gate.d.ts.map +1 -1
  92. package/dist/utils/semantic-plan-gate.js +11 -4
  93. package/dist/utils/semantic-plan-gate.js.map +1 -1
  94. package/dist/utils/validate-rules.d.ts +21 -0
  95. package/dist/utils/validate-rules.d.ts.map +1 -0
  96. package/dist/utils/validate-rules.js +88 -0
  97. package/dist/utils/validate-rules.js.map +1 -0
  98. package/package.json +3 -2
package/CHANGELOG.md CHANGED
@@ -1,103 +1,170 @@
1
- # Changelog
2
-
3
- All notable changes to **@blxzer/cursor-trellis** are documented in this file.
4
-
5
- Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
- SemVer: [semver.org](https://semver.org/spec/v2.0.0.html).
7
-
8
- > This is a **new npm product line**. Prior internal releases shipped as `@blxzer/trellis` (1.x). They remain on npm for history; use `@blxzer/cursor-trellis` for new installs.
9
-
10
- ---
11
-
12
- ## [0.1.4] - 2026-06-24
13
-
14
- Aligned **@blxzer/cursor-trellis** and **@blxzer/cursor-trellis-core** at `0.1.4` (fixes core/cli version drift since the in-repo `0.1.3` bump).
15
-
16
- ### Added
17
-
18
- - Gate verify transition contract: stricter Parent archive, Full Child accept, `record-gate` placeholder rejection, integrate-through guards (7 CLI integration tests).
19
- - `cursor-context-injection-guide.md` included in default `trellis init` spec guides.
20
-
21
- ### Changed
22
-
23
- - `trellis init` writes `.trellis/scripts/` from `getAllScripts()` only (same source as `trellis update`) maintainer probe/eval scripts no longer copied into user projects.
24
- - User-facing spec guides and `workflow.md` cleaned of Trellis maintainer / harness paths; default workflow no longer documents npm release execution.
25
- - Removed shipped `aggregate_retrieval_telemetry.py` and `batch_plan_envelope.py` (maintainer eval tooling).
26
-
27
- ### Upgrade
28
-
29
- ```bash
30
- npm install -g @blxzer/cursor-trellis@0.1.4
31
- # In each project:
32
- trellis update
33
- ```
34
-
35
- **Behavior change:** archive and gate checks may fail where placeholder evidence or incomplete Parent/Child handoff previously passed. Review `verify.md` and run `task.py archive <task> --check` after upgrade.
36
-
37
- [0.1.4]: https://github.com/blxzer77/cursor-trellis/releases/tag/v0.1.4
38
-
39
- ## [0.1.3] - 2026-06-23
40
-
41
- In-repo bump only (never published as an aligned core/cli pair). Included here for continuity.
42
-
43
- ### Added
44
-
45
- - Cursor BYOK/native semantic routing, Experiment D retrieval probes, adapter metadata.
46
- - Hook health fixes for Native Cursor and Cursor++ BYOK paths.
47
-
48
- ### Changed
49
-
50
- - Smart-search wrapper status detection and timeout handling; clearer npm CLI resolver paths.
51
-
52
- ## [0.1.2] - 2026-06-22
53
-
54
- ### Added
55
-
56
- - `task.py generate-dispatch-prompt` (Layer 2 subagent context assembly before `Task(...)`).
57
- - Shared `common/subagent_dispatch.py` builder; slim `preToolUse` hook wrapper.
58
-
59
- [0.1.2]: https://github.com/blxzer77/cursor-trellis/releases/tag/v0.1.2
60
-
61
- ## [0.1.1] - 2026-06-21
62
-
63
- ### Changed
64
-
65
- - Cursor-only product trim: platform registry, init/update/uninstall, and retrieval router reduced to Cursor.
66
- - Workflow, AGENTS, README, and guides aligned to Cursor-only surface.
67
-
68
- [0.1.1]: https://github.com/blxzer77/cursor-trellis/releases/tag/v0.1.1
69
-
70
- ## [0.1.0] - 2026-06-20
71
-
72
- First public release under `@blxzer/cursor-trellis` / `@blxzer/cursor-trellis-core`.
73
-
74
- ### Added
75
-
76
- - Public GitHub repo: [blxzer77/cursor-trellis](https://github.com/blxzer77/cursor-trellis).
77
- - Router v2 codebase retrieval (platform-adaptive routing, codegraph structural-first, token economy).
78
- - Cursor `.cursor/rules/trellis-triage.mdc` (Request Triage hard gate via rules channel).
79
- - Cursor commands-only default policy + `trellis-cursor2plus-setup` command.
80
- - `release:publish` script (publishes core then cli in dependency order).
81
- - Fresh migration manifest line starting at `0.1.0` (legacy `@blxzer/trellis` manifests archived in-repo).
82
-
83
- ### Changed
84
-
85
- - Package rename from `@blxzer/trellis` `@blxzer/cursor-trellis` (and matching `-core` SDK).
86
- - `trellis update` non-interactive contexts fail fast instead of hanging on prompts.
87
-
88
- ### Install
89
-
90
- ```bash
91
- npm install -g @blxzer/cursor-trellis
92
- ```
93
-
94
- ### Migrating from `@blxzer/trellis`
95
-
96
- ```bash
97
- npm uninstall -g @blxzer/trellis
98
- npm install -g @blxzer/cursor-trellis
99
- # In each project:
100
- trellis update
101
- ```
102
-
103
- [0.1.0]: https://github.com/blxzer77/cursor-trellis/releases/tag/v0.1.0
1
+ # Changelog
2
+
3
+ All notable changes to **@blxzer/cursor-trellis** are documented in this file.
4
+
5
+ Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
+ SemVer: [semver.org](https://semver.org/spec/v2.0.0.html).
7
+
8
+ > This is a **new npm product line**. Prior internal releases shipped as `@blxzer/trellis` (1.x). They remain on npm for history; use `@blxzer/cursor-trellis` for new installs.
9
+
10
+ ---
11
+
12
+ ## [0.2.8] - 2026-06-26
13
+
14
+ Cursor platform adaptation Phase 0 + Phase 1+2 stabilization. Six feature commits landed since 0.2.7, all back-ported to public docs in this release.
15
+
16
+ ### Added
17
+
18
+ - `trellis validate-rules` hard gate + `pnpm mirror-check` enforce dogfood/template sync for `.cursor/rules/` and agents; `init`/`update` throw on regression via `assertCursorRulesValid()` (OC-02)
19
+ - Agent template standard sections **Entry points** + **Context source** — declare CLI Layer 2 dispatch as the primary and guaranteed context channel; `sessionStart.additional_context` / `preToolUse` hooks are best-effort only (Cursor #158452) (OC-01, OC-07)
20
+ - Cursor++ Method 2.5 safety gate — `patch_wpelc8.py` requires explicit `--approve`; `--check-compat` pre-flight; `smoke.py` health check (no secrets); `trellis init --cursor` prints a Native safe-to-ignore hint for the Cursor++ appendix (OC-05, OC-08, OC-13)
21
+ - Retrieval BYOK/Native compliance — `unknown` cursorEnv routes conservatively to BYOK + warning (no silent native); LSP overpromises softened to codegraph + Read; telemetry splits **planned** vs **executed** semantic backend (OC-03, OC-04, OC-10)
22
+ - Task path fallback — `task.py select` failure now prints a tip pointing to `generate_dispatch_prompt.py --task <path>` as the select-free dispatch path; dispatch prompt docstring marks `--task` as the primary fallback (OC-09)
23
+ - Evidence pack integration — `/trellis-finish-work` and `trellis-check` skill cite `retrieval-pack-latest.json` when present; `trellis-research` prompts include provider relevance caveats and query-refinement guidance (OC-12, OC-14)
24
+ - Automations spike decision Cursor Automations assessed as `conditional-go`, non-defaulting; rationale recorded in `cursor-subagent-policy.md` (OC-11)
25
+
26
+ ### Changed
27
+
28
+ - Agent templates (`trellis-research` / `trellis-implement` / `trellis-check`) now open with Entry points / Context source sections
29
+ - Retrieval router + agent-instruction builder: LSP / `GO_TO_DEFINITION` references replaced with codegraph + Read + caveat
30
+ - `patch_wpelc8.py` bare invocation (no subcommand) no longer implicitly writes; prints planned map and exits
31
+ - Docs synced (English + zh-CN pairs): `cursor.md`, `subagents.md`, `retrieval.md`, `task-system.md`, `README.md`
32
+
33
+ ### Upgrade
34
+
35
+ ```bash
36
+ npm install -g @blxzer/cursor-trellis@0.2.8
37
+ # In each project:
38
+ trellis update
39
+ ```
40
+
41
+ **Behavior changes:**
42
+
43
+ - `trellis init` / `trellis update` now run `assertCursorRulesValid()` — a regression in the rules manifest aborts the operation. Run `trellis validate-rules` to re-check after hand-editing `.cursor/rules/`.
44
+ - Cursor++ operators: `python patch_wpelc8.py` without `--approve` no longer patches. Add `--approve` to apply.
45
+ - Retrieval: when `cursorEnv` is `unknown`, the router now warns and routes to BYOK behavior instead of silently using native `@codebase`.
46
+
47
+ [0.2.8]: https://github.com/blxzer77/cursor-trellis/releases/tag/v0.2.8
48
+
49
+ ## [0.2.7] - 2026-06-25
50
+
51
+ Aligned **@blxzer/cursor-trellis** and **@blxzer/cursor-trellis-core** at `0.2.7`.
52
+
53
+ ### Added
54
+
55
+ - `task.py suggest-execution-strategy` — deterministic `execution_mode` / `isolation` suggestions from `.trellis/config/execution-strategy-rules.json`
56
+ - `common/execution_strategy.py`, drift **WARN** on `start-execution --check` when contract differs from suggestion (advisory only)
57
+ - Spec guide `execution-strategy.md`; `brainstorm.md` step before freezing Development Strategy Contract
58
+ - Vitest: `execution-strategy.integration.test.ts`
59
+ - Backfilled migration manifests `0.2.2`–`0.2.6` for npm / `trellis update` continuity
60
+
61
+ ### Changed
62
+
63
+ - `workflow.md` Phase 2.1 / 2.2 and `[workflow-state:in_progress]`: dispatch `trellis-implement` / `trellis-check` only when contract `execution_mode: worker` (not unconditional spawn)
64
+ - `trellis init` / `trellis update` ship `execution-strategy-rules.json` and `execution_strategy.py`
65
+ - `docs/task-system.md` (+ zh-CN): planning suggest + drift WARN
66
+
67
+ ### Upgrade
68
+
69
+ ```bash
70
+ npm install -g @blxzer/cursor-trellis@0.2.7
71
+ # In each project:
72
+ trellis update
73
+ ```
74
+
75
+ **Behavior change:** Full tasks that touch code are **suggested** as `worker` + `main-worktree`; approved `implement.md` contract still authoritative. Run `task.py suggest-execution-strategy <task>` during planning.
76
+
77
+ [0.2.7]: https://github.com/blxzer77/cursor-trellis/releases/tag/v0.2.7
78
+
79
+ ## [0.1.4] - 2026-06-24
80
+
81
+ Aligned **@blxzer/cursor-trellis** and **@blxzer/cursor-trellis-core** at `0.1.4` (fixes core/cli version drift since the in-repo `0.1.3` bump).
82
+
83
+ ### Added
84
+
85
+ - Gate verify transition contract: stricter Parent archive, Full Child accept, `record-gate` placeholder rejection, integrate-through guards (7 CLI integration tests).
86
+ - `cursor-context-injection-guide.md` included in default `trellis init` spec guides.
87
+
88
+ ### Changed
89
+
90
+ - `trellis init` writes `.trellis/scripts/` from `getAllScripts()` only (same source as `trellis update`) — maintainer probe/eval scripts no longer copied into user projects.
91
+ - User-facing spec guides and `workflow.md` cleaned of Trellis maintainer / harness paths; default workflow no longer documents npm release execution.
92
+ - Removed shipped `aggregate_retrieval_telemetry.py` and `batch_plan_envelope.py` (maintainer eval tooling).
93
+
94
+ ### Upgrade
95
+
96
+ ```bash
97
+ npm install -g @blxzer/cursor-trellis@0.1.4
98
+ # In each project:
99
+ trellis update
100
+ ```
101
+
102
+ **Behavior change:** archive and gate checks may fail where placeholder evidence or incomplete Parent/Child handoff previously passed. Review `verify.md` and run `task.py archive <task> --check` after upgrade.
103
+
104
+ [0.1.4]: https://github.com/blxzer77/cursor-trellis/releases/tag/v0.1.4
105
+
106
+ ## [0.1.3] - 2026-06-23
107
+
108
+ In-repo bump only (never published as an aligned core/cli pair). Included here for continuity.
109
+
110
+ ### Added
111
+
112
+ - Cursor BYOK/native semantic routing, Experiment D retrieval probes, adapter metadata.
113
+ - Hook health fixes for Native Cursor and Cursor++ BYOK paths.
114
+
115
+ ### Changed
116
+
117
+ - Smart-search wrapper status detection and timeout handling; clearer npm CLI resolver paths.
118
+
119
+ ## [0.1.2] - 2026-06-22
120
+
121
+ ### Added
122
+
123
+ - `task.py generate-dispatch-prompt` (Layer 2 subagent context assembly before `Task(...)`).
124
+ - Shared `common/subagent_dispatch.py` builder; slim `preToolUse` hook wrapper.
125
+
126
+ [0.1.2]: https://github.com/blxzer77/cursor-trellis/releases/tag/v0.1.2
127
+
128
+ ## [0.1.1] - 2026-06-21
129
+
130
+ ### Changed
131
+
132
+ - Cursor-only product trim: platform registry, init/update/uninstall, and retrieval router reduced to Cursor.
133
+ - Workflow, AGENTS, README, and guides aligned to Cursor-only surface.
134
+
135
+ [0.1.1]: https://github.com/blxzer77/cursor-trellis/releases/tag/v0.1.1
136
+
137
+ ## [0.1.0] - 2026-06-20
138
+
139
+ First public release under `@blxzer/cursor-trellis` / `@blxzer/cursor-trellis-core`.
140
+
141
+ ### Added
142
+
143
+ - Public GitHub repo: [blxzer77/cursor-trellis](https://github.com/blxzer77/cursor-trellis).
144
+ - Router v2 codebase retrieval (platform-adaptive routing, codegraph structural-first, token economy).
145
+ - Cursor `.cursor/rules/trellis-triage.mdc` (Request Triage hard gate via rules channel).
146
+ - Cursor commands-only default policy + `trellis-cursor2plus-setup` command.
147
+ - `release:publish` script (publishes core then cli in dependency order).
148
+ - Fresh migration manifest line starting at `0.1.0` (legacy `@blxzer/trellis` manifests archived in-repo).
149
+
150
+ ### Changed
151
+
152
+ - Package rename from `@blxzer/trellis` → `@blxzer/cursor-trellis` (and matching `-core` SDK).
153
+ - `trellis update` non-interactive contexts fail fast instead of hanging on prompts.
154
+
155
+ ### Install
156
+
157
+ ```bash
158
+ npm install -g @blxzer/cursor-trellis
159
+ ```
160
+
161
+ ### Migrating from `@blxzer/trellis`
162
+
163
+ ```bash
164
+ npm uninstall -g @blxzer/trellis
165
+ npm install -g @blxzer/cursor-trellis
166
+ # In each project:
167
+ trellis update
168
+ ```
169
+
170
+ [0.1.0]: https://github.com/blxzer77/cursor-trellis/releases/tag/v0.1.0
package/README.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # cursor-trellis
2
2
 
3
+ <p>
4
+ <a href="https://www.npmjs.com/package/@blxzer/cursor-trellis">
5
+ <img src="https://img.shields.io/npm/v/@blxzer/cursor-trellis?label=npm%20latest" alt="npm latest">
6
+ </a>
7
+ <a href="https://www.npmjs.com/package/@blxzer/smart-search">
8
+ <img src="https://img.shields.io/npm/v/@blxzer/smart-search?label=smart-search" alt="smart-search">
9
+ </a>
10
+ </p>
11
+
3
12
  English | [简体中文](README.zh-CN.md)
4
13
 
5
14
  **Trellis** is a progressive context management system for AI coding agents. It structures agent instructions as `.trellis/` (workflow, specs, tasks, workspace) instead of a single large file, and generates platform-specific integration files (`.cursor/` for Cursor).
@@ -12,6 +21,10 @@ Based on the [Trellis framework by mindfold-ai](https://github.com/mindfold-ai/T
12
21
  - Resume work across chat sessions with `/trellis-continue`
13
22
  - Load specs progressively based on files being edited
14
23
  - Route requests through structured workflow: triage → plan → gate → execute → verify
24
+ - **Validated gates** — `trellis validate-rules` + `pnpm mirror-check` enforce dogfood/template sync; `init`/`update` throw on regression
25
+ - **Retrieval compliance** — BYOK/Native split with conservative `unknown` routing; LSP overpromises softened to codegraph + Read; telemetry separates planned vs executed semantic
26
+ - **Cursor++ safety** — Method 2.5 patch requires explicit `--approve`; `--check-compat` pre-flight; `smoke.py` health check (no secrets)
27
+ - **Evidence pack** — finish/check cite `retrieval-pack-latest.json` when present; research prompts include provider relevance caveats
15
28
 
16
29
  ## Quick start (Cursor)
17
30
 
@@ -61,16 +74,16 @@ Details: [Cursor integration](docs/cursor.md).
61
74
  4. **Approve** execution explicitly, then `start-execution --approved`.
62
75
  5. **Verify** and finish (`/trellis-finish-work`).
63
76
 
64
- Walkthrough: [docs/workflow.md](docs/workflow.md).
77
+ Walkthrough: [workflow.md](docs/workflow.md) — Triage decision tree, Task Ladder, upgrade/downgrade rules, Parent/Child task trees, Phase 1–3 lifecycle.
65
78
 
66
79
  ## Cursor support
67
80
 
68
- - **Rules** — reliable always-on policy (including Triage).
81
+ - **Rules** — reliable always-on policy (including Triage and retrieval routing).
69
82
  - **Commands** — small `/` palette (`commands-only` policy; skills not copied to `.cursor/skills/` by default).
70
83
  - **Agents** — `trellis-research`, `trellis-implement`, `trellis-check`.
71
84
  - **Hooks** — Python scripts for session, shell, and subagent context.
72
85
 
73
- Deep dive: [docs/cursor.md](docs/cursor.md).
86
+ Deep dive: [docs/cursor.md](docs/cursor.md) — Native vs Cursor++ BYOK environments, subagent dispatch Methods 1–4, environment detection. Retrieval layer design: [docs/retrieval.md](docs/retrieval.md).
74
87
 
75
88
  ## When to use
76
89
 
@@ -135,7 +148,7 @@ Package-level detail: [packages/cli/README.md](packages/cli/README.md). Agent-or
135
148
 
136
149
  ## Maintainer note
137
150
 
138
- Local harness layout (`D:\MyHarness`), Git remote policy, release/publish, and deep implementation notes are **internal**—see [docs/maintainers.md](docs/maintainers.md). Public docs intentionally omit npm publish and private remote procedures.
151
+ Local harness layout (`D:\MyHarness`), Git remote policy, release/publish, and deep implementation notes are **internal** — see the internal maintainer handbook (not in the public repo; gitignored). Public docs intentionally omit npm publish and private remote procedures.
139
152
 
140
153
  ## Read more
141
154
 
@@ -143,10 +156,20 @@ Local harness layout (`D:\MyHarness`), Git remote policy, release/publish, and d
143
156
  | --- | --- |
144
157
  | [docs/workflow.md](docs/workflow.md) | Task lifecycle in Cursor |
145
158
  | [docs/cursor.md](docs/cursor.md) | Generated Cursor files |
159
+ | [docs/cursor-platform-limitations-and-trellis-adaptation.md](docs/cursor-platform-limitations-and-trellis-adaptation.md) | Cursor platform limits & trellis adaptation (users/devs) |
160
+ | [docs/retrieval.md](docs/retrieval.md) | Retrieval layer design |
146
161
  | [docs/architecture.md](docs/architecture.md) | High-level structure + smart-search |
162
+ | [docs/skills.md](docs/skills.md) | Internal skills reference |
163
+ | [docs/subagents.md](docs/subagents.md) | Subagent dispatch design |
164
+ | [docs/spec-system.md](docs/spec-system.md) | Progressive spec system |
165
+ | [docs/task-system.md](docs/task-system.md) | Task artifacts, gates, Parent/Child |
147
166
  | [packages/cli/README.md](packages/cli/README.md) | CLI / npm reference |
148
167
  | [CHANGELOG](packages/cli/CHANGELOG.md) | Package history |
149
168
 
169
+ ## Community
170
+
171
+ [LINUX DO](https://linux.do)
172
+
150
173
  ## License
151
174
 
152
175
  AGPL-3.0-only — see package metadata in `packages/cli/package.json`.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIhE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIhE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC"}
package/dist/cli/index.js CHANGED
@@ -9,6 +9,7 @@ import { upgrade } from "../commands/upgrade.js";
9
9
  import { uninstall } from "../commands/uninstall.js";
10
10
  import { runWorkflowCommand, WorkflowCommandError, } from "../commands/workflow.js";
11
11
  import { registerChannelCommand } from "../commands/channel/index.js";
12
+ import { runValidateRules } from "../commands/validate-rules.js";
12
13
  import { DIR_NAMES } from "../constants/paths.js";
13
14
  import { PACKAGE_NAME, VERSION } from "../constants/version.js";
14
15
  import { compareVersions } from "../utils/compare-versions.js";
@@ -222,5 +223,22 @@ program
222
223
  }
223
224
  });
224
225
  registerChannelCommand(program);
226
+ program
227
+ .command("validate-rules")
228
+ .description("Validate Cursor .cursor/rules against the expected manifest (templates and/or installed rules)")
229
+ .option("--dir <rulesDir>", "Validate rules in a specific directory instead of project .cursor/rules")
230
+ .option("--templates-only", "Validate template rules from getAllRules() only (skip installed rules check)")
231
+ .action(async (options) => {
232
+ try {
233
+ await runValidateRules(process.cwd(), {
234
+ dir: options.dir,
235
+ templatesOnly: options.templatesOnly,
236
+ });
237
+ }
238
+ catch (error) {
239
+ console.error(chalk.red("Error:"), error instanceof Error ? error.message : error);
240
+ process.exit(1);
241
+ }
242
+ });
225
243
  program.parse();
226
244
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EACL,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,uFAAuF;AACvF,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC;AAEjC;;GAEG;AACH,SAAS,eAAe,CAAC,GAAW;IAClC,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IAEnE,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;QAAE,OAAO;IAExC,MAAM,cAAc,GAAG,EAAE,CA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mBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,IAAI;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAoEA;AAuDD;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOzD;AA2oBD,UAAU,WAAW;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AA6LD,wBAAsB,IAAI,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAs7B9D"}
@@ -22,6 +22,7 @@ import { fetchTemplateIndex, probeRegistryIndex, downloadTemplateById, downloadR
22
22
  import { setupProxy, maskProxyUrl } from "../utils/proxy.js";
23
23
  import { checkProjectCapabilityReadiness, checkSmartSearchReadiness, } from "../utils/readiness.js";
24
24
  import { getProjectCapabilityChoices, parseProjectCapabilities, writeProjectCapabilityFiles, } from "../utils/project-capabilities.js";
25
+ import { assertCursorRulesValid } from "../utils/validate-rules.js";
25
26
  const MIN_PYTHON_MAJOR = 3;
26
27
  const MIN_PYTHON_MINOR = 9;
27
28
  const PYTHON_VERSION_RE = /Python (\d+)\.(\d+)/;
@@ -178,7 +179,7 @@ function logCursor2plusSetupHint() {
178
179
  console.log(chalk.cyan("🔧 Cursor++ BYOK: 在 Cursor Agent 中运行 skill trellis-cursor2plus-setup"));
179
180
  console.log(chalk.gray(" 与大模型交互选择各 Task 角色的 primary/fallback 模型,并应用 WPeLc8 patch。"));
180
181
  console.log(chalk.gray(" 本地包: .trellis/local/cursor2plus/ · 示例: trellis-task-models.json5.example"));
181
- console.log(chalk.gray(" 使用官方 Cursor API(非 Cursor++)可忽略此步骤。"));
182
+ console.log(chalk.gray(" 使用官方 Cursor API(非 Cursor++)可安全忽略 `.trellis/local/cursor2plus/`。"));
182
183
  console.log("");
183
184
  }
184
185
  // =============================================================================
@@ -693,6 +694,9 @@ async function handleReinit(cwd, options, developerName, pythonCmd) {
693
694
  finally {
694
695
  stopRecordingWrites();
695
696
  }
697
+ if (platformsToAdd.some((tool) => resolveCliFlag(tool) === "cursor")) {
698
+ assertCursorRulesValid(cwd);
699
+ }
696
700
  if (platformsToAdd.some((tool) => resolveCliFlag(tool) === "cursor")) {
697
701
  logCursor2plusSetupHint();
698
702
  }
@@ -1552,6 +1556,9 @@ export async function init(options) {
1552
1556
  await configurePlatform(platformId, cwd);
1553
1557
  }
1554
1558
  }
1559
+ if (selectedPlatformIds.includes("cursor")) {
1560
+ assertCursorRulesValid(cwd);
1561
+ }
1555
1562
  await writeProjectCapabilityFiles(cwd, selectedCapabilities, selectedPlatformIds);
1556
1563
  const pythonPlatforms = getPlatformsWithPythonHooks();
1557
1564
  const hasSelectedPythonPlatform = pythonPlatforms.some((id) => tools.includes(AI_TOOLS[id].cliFlag));