@blxzer/cursor-trellis 0.1.0 → 0.1.2

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 (285) hide show
  1. package/README.md +124 -5
  2. package/README.zh-CN.md +170 -0
  3. package/dist/cli/index.d.ts.map +1 -1
  4. package/dist/cli/index.js +1 -33
  5. package/dist/cli/index.js.map +1 -1
  6. package/dist/commands/init.d.ts +0 -13
  7. package/dist/commands/init.d.ts.map +1 -1
  8. package/dist/commands/init.js +7 -14
  9. package/dist/commands/init.js.map +1 -1
  10. package/dist/commands/uninstall.d.ts.map +1 -1
  11. package/dist/commands/uninstall.js +3 -32
  12. package/dist/commands/uninstall.js.map +1 -1
  13. package/dist/commands/update.d.ts.map +1 -1
  14. package/dist/commands/update.js +7 -84
  15. package/dist/commands/update.js.map +1 -1
  16. package/dist/configurators/index.d.ts +7 -8
  17. package/dist/configurators/index.d.ts.map +1 -1
  18. package/dist/configurators/index.js +11 -236
  19. package/dist/configurators/index.js.map +1 -1
  20. package/dist/configurators/workflow.d.ts.map +1 -1
  21. package/dist/configurators/workflow.js +5 -1
  22. package/dist/configurators/workflow.js.map +1 -1
  23. package/dist/migrations/manifests/0.1.1.json +9 -0
  24. package/dist/migrations/manifests/0.1.2.json +9 -0
  25. package/dist/templates/common/bundled-skills/smart-search-cli/SKILL.md +3 -3
  26. package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +4 -2
  27. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-agents.md +8 -15
  28. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-hooks.md +7 -7
  29. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-skills-or-commands.md +18 -21
  30. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/overview.md +2 -2
  31. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/generated-files.md +10 -7
  32. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/overview.md +4 -4
  33. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/agents.md +20 -31
  34. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/hooks-and-settings.md +20 -31
  35. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/overview.md +24 -40
  36. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/platform-map.md +28 -59
  37. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/skills-and-commands.md +12 -28
  38. package/dist/templates/common/bundled-skills/trellis-skill-creator/references/trellis-skill-locations.md +2 -2
  39. package/dist/templates/cursor/hooks.json +6 -0
  40. package/dist/templates/cursor/rules/retrieval-routing.mdc +57 -0
  41. package/dist/templates/extract.d.ts +0 -14
  42. package/dist/templates/extract.d.ts.map +1 -1
  43. package/dist/templates/extract.js +0 -34
  44. package/dist/templates/extract.js.map +1 -1
  45. package/dist/templates/markdown/agents.md +2 -6
  46. package/dist/templates/markdown/index.d.ts +1 -0
  47. package/dist/templates/markdown/index.d.ts.map +1 -1
  48. package/dist/templates/markdown/index.js +1 -0
  49. package/dist/templates/markdown/index.js.map +1 -1
  50. package/dist/templates/markdown/prompts/run-semantic-slice-12.md.txt +41 -0
  51. package/dist/templates/markdown/spec/guides/code-reuse-thinking-guide.md.txt +14 -14
  52. package/dist/templates/markdown/spec/guides/cross-layer-thinking-guide.md.txt +8 -20
  53. package/dist/templates/markdown/spec/guides/cross-platform-thinking-guide.md.txt +15 -14
  54. package/dist/templates/markdown/spec/guides/cursor-context-injection-guide.md.txt +4 -2
  55. package/dist/templates/markdown/spec/guides/cursor-semantic-compliance.md.txt +49 -0
  56. package/dist/templates/markdown/spec/guides/cursor-subagent-policy.md.txt +18 -5
  57. package/dist/templates/markdown/spec/guides/retrieval-daily-guide.md.txt +68 -20
  58. package/dist/templates/shared-hooks/index.d.ts +1 -1
  59. package/dist/templates/shared-hooks/index.d.ts.map +1 -1
  60. package/dist/templates/shared-hooks/index.js +1 -0
  61. package/dist/templates/shared-hooks/index.js.map +1 -1
  62. package/dist/templates/shared-hooks/inject-retrieval-plan.py +163 -0
  63. package/dist/templates/shared-hooks/inject-subagent-context.py +31 -567
  64. package/dist/templates/shared-hooks/research-end-retrieval-pack.py +2 -11
  65. package/dist/templates/trellis/index.d.ts +12 -0
  66. package/dist/templates/trellis/index.d.ts.map +1 -1
  67. package/dist/templates/trellis/index.js +24 -0
  68. package/dist/templates/trellis/index.js.map +1 -1
  69. package/dist/templates/trellis/scripts/aggregate_retrieval_telemetry.py +342 -0
  70. package/dist/templates/trellis/scripts/batch_plan_envelope.py +105 -0
  71. package/dist/templates/trellis/scripts/codegraph_session_smoke.py +76 -0
  72. package/dist/templates/trellis/scripts/common/active_task.py +116 -147
  73. package/dist/templates/trellis/scripts/common/cli_adapter.py +34 -710
  74. package/dist/templates/trellis/scripts/common/codebase_retrieval_router.py +49 -106
  75. package/dist/templates/trellis/scripts/common/git_context.py +17 -2
  76. package/dist/templates/trellis/scripts/common/project_file_stats.py +91 -0
  77. package/dist/templates/trellis/scripts/common/retrieval_adapter_metadata.py +9 -11
  78. package/dist/templates/trellis/scripts/common/retrieval_agent_instructions.py +313 -0
  79. package/dist/templates/trellis/scripts/common/retrieval_pack.py +0 -6
  80. package/dist/templates/trellis/scripts/common/retrieval_pack_context.py +0 -4
  81. package/dist/templates/trellis/scripts/common/retrieval_plan_gate.py +76 -0
  82. package/dist/templates/trellis/scripts/common/retrieval_result_ranking.py +253 -0
  83. package/dist/templates/trellis/scripts/common/retrieval_tool_classification.py +157 -0
  84. package/dist/templates/trellis/scripts/common/semantic_plan_gate.py +52 -0
  85. package/dist/templates/trellis/scripts/common/subagent_dispatch.py +527 -0
  86. package/dist/templates/trellis/scripts/common/task_store.py +32 -0
  87. package/dist/templates/trellis/scripts/common/workflow_phase.py +3 -24
  88. package/dist/templates/trellis/scripts/rank_retrieval_candidates.py +80 -0
  89. package/dist/templates/trellis/scripts/route_codebase_retrieval.py +38 -11
  90. package/dist/templates/trellis/scripts/score_evidence.py +112 -0
  91. package/dist/templates/trellis/scripts/task.py +26 -0
  92. package/dist/templates/trellis/workflow.md +844 -960
  93. package/dist/types/ai-tools.d.ts +13 -16
  94. package/dist/types/ai-tools.d.ts.map +1 -1
  95. package/dist/types/ai-tools.js +5 -238
  96. package/dist/types/ai-tools.js.map +1 -1
  97. package/dist/utils/codebase-retrieval-router.d.ts +1 -8
  98. package/dist/utils/codebase-retrieval-router.d.ts.map +1 -1
  99. package/dist/utils/codebase-retrieval-router.js +39 -180
  100. package/dist/utils/codebase-retrieval-router.js.map +1 -1
  101. package/dist/utils/project-capabilities.d.ts.map +1 -1
  102. package/dist/utils/project-capabilities.js +10 -24
  103. package/dist/utils/project-capabilities.js.map +1 -1
  104. package/dist/utils/retrieval-agent-instructions.d.ts +14 -0
  105. package/dist/utils/retrieval-agent-instructions.d.ts.map +1 -0
  106. package/dist/utils/retrieval-agent-instructions.js +221 -0
  107. package/dist/utils/retrieval-agent-instructions.js.map +1 -0
  108. package/dist/utils/retrieval-execution-telemetry.d.ts +43 -85
  109. package/dist/utils/retrieval-execution-telemetry.d.ts.map +1 -1
  110. package/dist/utils/retrieval-execution-telemetry.js +289 -22
  111. package/dist/utils/retrieval-execution-telemetry.js.map +1 -1
  112. package/dist/utils/retrieval-result-ranking.js +1 -1
  113. package/dist/utils/retrieval-result-ranking.js.map +1 -1
  114. package/dist/utils/retrieval-tool-classification.d.ts +32 -0
  115. package/dist/utils/retrieval-tool-classification.d.ts.map +1 -0
  116. package/dist/utils/retrieval-tool-classification.js +113 -0
  117. package/dist/utils/retrieval-tool-classification.js.map +1 -0
  118. package/dist/utils/uninstall-scrubbers.d.ts +0 -36
  119. package/dist/utils/uninstall-scrubbers.d.ts.map +1 -1
  120. package/dist/utils/uninstall-scrubbers.js +0 -184
  121. package/dist/utils/uninstall-scrubbers.js.map +1 -1
  122. package/package.json +4 -2
  123. package/dist/commands/mem.d.ts +0 -30
  124. package/dist/commands/mem.d.ts.map +0 -1
  125. package/dist/commands/mem.js +0 -424
  126. package/dist/commands/mem.js.map +0 -1
  127. package/dist/configurators/antigravity.d.ts +0 -7
  128. package/dist/configurators/antigravity.d.ts.map +0 -1
  129. package/dist/configurators/antigravity.js +0 -19
  130. package/dist/configurators/antigravity.js.map +0 -1
  131. package/dist/configurators/claude.d.ts +0 -9
  132. package/dist/configurators/claude.d.ts.map +0 -1
  133. package/dist/configurators/claude.js +0 -72
  134. package/dist/configurators/claude.js.map +0 -1
  135. package/dist/configurators/codebuddy.d.ts +0 -10
  136. package/dist/configurators/codebuddy.d.ts.map +0 -1
  137. package/dist/configurators/codebuddy.js +0 -30
  138. package/dist/configurators/codebuddy.js.map +0 -1
  139. package/dist/configurators/codex.d.ts +0 -8
  140. package/dist/configurators/codex.d.ts.map +0 -1
  141. package/dist/configurators/codex.js +0 -87
  142. package/dist/configurators/codex.js.map +0 -1
  143. package/dist/configurators/copilot.d.ts +0 -10
  144. package/dist/configurators/copilot.d.ts.map +0 -1
  145. package/dist/configurators/copilot.js +0 -51
  146. package/dist/configurators/copilot.js.map +0 -1
  147. package/dist/configurators/droid.d.ts +0 -10
  148. package/dist/configurators/droid.d.ts.map +0 -1
  149. package/dist/configurators/droid.js +0 -30
  150. package/dist/configurators/droid.js.map +0 -1
  151. package/dist/configurators/gemini.d.ts +0 -16
  152. package/dist/configurators/gemini.d.ts.map +0 -1
  153. package/dist/configurators/gemini.js +0 -38
  154. package/dist/configurators/gemini.js.map +0 -1
  155. package/dist/configurators/kilo.d.ts +0 -7
  156. package/dist/configurators/kilo.d.ts.map +0 -1
  157. package/dist/configurators/kilo.js +0 -19
  158. package/dist/configurators/kilo.js.map +0 -1
  159. package/dist/configurators/kiro.d.ts +0 -8
  160. package/dist/configurators/kiro.d.ts.map +0 -1
  161. package/dist/configurators/kiro.js +0 -24
  162. package/dist/configurators/kiro.js.map +0 -1
  163. package/dist/configurators/opencode.d.ts +0 -14
  164. package/dist/configurators/opencode.d.ts.map +0 -1
  165. package/dist/configurators/opencode.js +0 -96
  166. package/dist/configurators/opencode.js.map +0 -1
  167. package/dist/configurators/pi.d.ts +0 -3
  168. package/dist/configurators/pi.d.ts.map +0 -1
  169. package/dist/configurators/pi.js +0 -45
  170. package/dist/configurators/pi.js.map +0 -1
  171. package/dist/configurators/qoder.d.ts +0 -11
  172. package/dist/configurators/qoder.d.ts.map +0 -1
  173. package/dist/configurators/qoder.js +0 -31
  174. package/dist/configurators/qoder.js.map +0 -1
  175. package/dist/configurators/windsurf.d.ts +0 -7
  176. package/dist/configurators/windsurf.d.ts.map +0 -1
  177. package/dist/configurators/windsurf.js +0 -19
  178. package/dist/configurators/windsurf.js.map +0 -1
  179. package/dist/templates/claude/agents/trellis-check.md +0 -124
  180. package/dist/templates/claude/agents/trellis-implement.md +0 -110
  181. package/dist/templates/claude/agents/trellis-research.md +0 -137
  182. package/dist/templates/claude/index.d.ts +0 -22
  183. package/dist/templates/claude/index.d.ts.map +0 -1
  184. package/dist/templates/claude/index.js +0 -46
  185. package/dist/templates/claude/index.js.map +0 -1
  186. package/dist/templates/claude/settings.json +0 -84
  187. package/dist/templates/codebuddy/agents/trellis-check.md +0 -115
  188. package/dist/templates/codebuddy/agents/trellis-implement.md +0 -110
  189. package/dist/templates/codebuddy/agents/trellis-research.md +0 -137
  190. package/dist/templates/codebuddy/index.d.ts +0 -15
  191. package/dist/templates/codebuddy/index.d.ts.map +0 -1
  192. package/dist/templates/codebuddy/index.js +0 -15
  193. package/dist/templates/codebuddy/index.js.map +0 -1
  194. package/dist/templates/codebuddy/settings.json +0 -70
  195. package/dist/templates/codex/agents/trellis-check.toml +0 -67
  196. package/dist/templates/codex/agents/trellis-implement.toml +0 -40
  197. package/dist/templates/codex/agents/trellis-research.toml +0 -73
  198. package/dist/templates/codex/config.toml +0 -28
  199. package/dist/templates/codex/hooks/session-start.py +0 -575
  200. package/dist/templates/codex/hooks.json +0 -15
  201. package/dist/templates/codex/index.d.ts +0 -39
  202. package/dist/templates/codex/index.d.ts.map +0 -1
  203. package/dist/templates/codex/index.js +0 -85
  204. package/dist/templates/codex/index.js.map +0 -1
  205. package/dist/templates/codex/skills/before-dev/SKILL.md +0 -40
  206. package/dist/templates/codex/skills/brainstorm/SKILL.md +0 -112
  207. package/dist/templates/codex/skills/break-loop/SKILL.md +0 -130
  208. package/dist/templates/codex/skills/check/SKILL.md +0 -98
  209. package/dist/templates/codex/skills/check-cross-layer/SKILL.md +0 -158
  210. package/dist/templates/codex/skills/create-command/SKILL.md +0 -101
  211. package/dist/templates/codex/skills/finish-work/SKILL.md +0 -90
  212. package/dist/templates/codex/skills/improve-ut/SKILL.md +0 -69
  213. package/dist/templates/codex/skills/integrate-skill/SKILL.md +0 -221
  214. package/dist/templates/codex/skills/onboard/SKILL.md +0 -363
  215. package/dist/templates/codex/skills/record-session/SKILL.md +0 -67
  216. package/dist/templates/codex/skills/start/SKILL.md +0 -66
  217. package/dist/templates/codex/skills/update-spec/SKILL.md +0 -335
  218. package/dist/templates/copilot/hooks/session-start.py +0 -557
  219. package/dist/templates/copilot/hooks.json +0 -19
  220. package/dist/templates/copilot/index.d.ts +0 -23
  221. package/dist/templates/copilot/index.d.ts.map +0 -1
  222. package/dist/templates/copilot/index.js +0 -54
  223. package/dist/templates/copilot/index.js.map +0 -1
  224. package/dist/templates/copilot/prompts/before-dev.prompt.md +0 -39
  225. package/dist/templates/copilot/prompts/brainstorm.prompt.md +0 -111
  226. package/dist/templates/copilot/prompts/break-loop.prompt.md +0 -129
  227. package/dist/templates/copilot/prompts/check-cross-layer.prompt.md +0 -157
  228. package/dist/templates/copilot/prompts/check.prompt.md +0 -97
  229. package/dist/templates/copilot/prompts/create-command.prompt.md +0 -116
  230. package/dist/templates/copilot/prompts/finish-work.prompt.md +0 -99
  231. package/dist/templates/copilot/prompts/integrate-skill.prompt.md +0 -223
  232. package/dist/templates/copilot/prompts/onboard.prompt.md +0 -362
  233. package/dist/templates/copilot/prompts/parallel.prompt.md +0 -204
  234. package/dist/templates/copilot/prompts/record-session.prompt.md +0 -66
  235. package/dist/templates/copilot/prompts/start.prompt.md +0 -63
  236. package/dist/templates/copilot/prompts/update-spec.prompt.md +0 -358
  237. package/dist/templates/droid/droids/trellis-check.md +0 -107
  238. package/dist/templates/droid/droids/trellis-implement.md +0 -102
  239. package/dist/templates/droid/droids/trellis-research.md +0 -137
  240. package/dist/templates/droid/index.d.ts +0 -15
  241. package/dist/templates/droid/index.d.ts.map +0 -1
  242. package/dist/templates/droid/index.js +0 -15
  243. package/dist/templates/droid/index.js.map +0 -1
  244. package/dist/templates/droid/settings.json +0 -70
  245. package/dist/templates/gemini/agents/trellis-check.md +0 -107
  246. package/dist/templates/gemini/agents/trellis-implement.md +0 -102
  247. package/dist/templates/gemini/agents/trellis-research.md +0 -136
  248. package/dist/templates/gemini/index.d.ts +0 -13
  249. package/dist/templates/gemini/index.d.ts.map +0 -1
  250. package/dist/templates/gemini/index.js +0 -13
  251. package/dist/templates/gemini/index.js.map +0 -1
  252. package/dist/templates/gemini/settings.json +0 -28
  253. package/dist/templates/kiro/agents/trellis-check.json +0 -26
  254. package/dist/templates/kiro/agents/trellis-implement.json +0 -26
  255. package/dist/templates/kiro/agents/trellis-research.json +0 -30
  256. package/dist/templates/kiro/index.d.ts +0 -18
  257. package/dist/templates/kiro/index.d.ts.map +0 -1
  258. package/dist/templates/kiro/index.js +0 -18
  259. package/dist/templates/kiro/index.js.map +0 -1
  260. package/dist/templates/opencode/agents/trellis-check.md +0 -122
  261. package/dist/templates/opencode/agents/trellis-implement.md +0 -118
  262. package/dist/templates/opencode/agents/trellis-research.md +0 -145
  263. package/dist/templates/opencode/lib/session-utils.js +0 -667
  264. package/dist/templates/opencode/lib/trellis-context.js +0 -336
  265. package/dist/templates/opencode/package.json +0 -5
  266. package/dist/templates/opencode/plugins/inject-subagent-context.js +0 -495
  267. package/dist/templates/opencode/plugins/inject-workflow-state.js +0 -159
  268. package/dist/templates/opencode/plugins/session-start.js +0 -101
  269. package/dist/templates/pi/agents/trellis-check.md +0 -37
  270. package/dist/templates/pi/agents/trellis-implement.md +0 -42
  271. package/dist/templates/pi/agents/trellis-research.md +0 -25
  272. package/dist/templates/pi/extensions/trellis/index.ts.txt +0 -1600
  273. package/dist/templates/pi/index.d.ts +0 -5
  274. package/dist/templates/pi/index.d.ts.map +0 -1
  275. package/dist/templates/pi/index.js +0 -12
  276. package/dist/templates/pi/index.js.map +0 -1
  277. package/dist/templates/pi/settings.json +0 -12
  278. package/dist/templates/qoder/agents/trellis-check.md +0 -108
  279. package/dist/templates/qoder/agents/trellis-implement.md +0 -103
  280. package/dist/templates/qoder/agents/trellis-research.md +0 -137
  281. package/dist/templates/qoder/index.d.ts +0 -15
  282. package/dist/templates/qoder/index.d.ts.map +0 -1
  283. package/dist/templates/qoder/index.js +0 -15
  284. package/dist/templates/qoder/index.js.map +0 -1
  285. package/dist/templates/qoder/settings.json +0 -47
@@ -2,46 +2,20 @@
2
2
  * Platform Registry — Single source of truth for platform functions and derived helpers
3
3
  *
4
4
  * All platform-specific lists (backup dirs, template dirs, configured platforms, etc.)
5
- * are derived from AI_TOOLS in types/ai-tools.ts. Adding a new platform requires:
6
- * 1. Adding to AI_TOOLS (data)
7
- * 2. Adding to PLATFORM_FUNCTIONS below (behavior)
8
- * 3. Creating the configurator file + template directory
5
+ * are derived from AI_TOOLS in types/ai-tools.js.
6
+ *
7
+ * Cursor-only fork: only the Cursor configurator and templates are wired.
9
8
  */
10
9
  import fs from "node:fs";
11
10
  import path from "node:path";
12
11
  import { AI_TOOLS, getManagedPaths, } from "../types/ai-tools.js";
13
12
  // Platform configurators
14
- import { configureClaude } from "./claude.js";
15
13
  import { configureCursor } from "./cursor.js";
16
- import { configureOpenCode, collectOpenCodeTemplates } from "./opencode.js";
17
- import { configureCodex } from "./codex.js";
18
- import { configureKilo } from "./kilo.js";
19
- import { configureKiro } from "./kiro.js";
20
- import { configureGemini } from "./gemini.js";
21
- import { configureAntigravity } from "./antigravity.js";
22
- import { configureWindsurf } from "./windsurf.js";
23
- import { configureQoder } from "./qoder.js";
24
- import { configureCodebuddy } from "./codebuddy.js";
25
- import { configureCopilot } from "./copilot.js";
26
- import { configureDroid } from "./droid.js";
27
- import { configurePi, collectPiTemplates } from "./pi.js";
28
14
  // Shared utilities
29
- import { replacePythonCommandLiterals, resolvePlaceholders, resolveAllAsSkills, resolveAllAsSkillsNeutral, resolveBundledSkills, resolveCodexTrellisStartSkill, resolveCommands, resolveSkills, resolveSkillsNeutral, wrapWithCommandFrontmatter, collectSkillTemplates, applyPullBasedPreludeMarkdown, applyPullBasedPreludeToml, normalizeCopilotMarkdownAgents, } from "./shared.js";
30
- // Platform-specific template content (hooks, agents, settings — NOT commands/skills)
31
- import { getAllAgents as getClaudeAgents, getSettingsTemplate as getClaudeSettings, } from "../templates/claude/index.js";
32
- import { getAllAgents as getCodexAgents, getAllCodexSkills as getCodexPlatformSkills, getAllHooks as getCodexHooks, getConfigTemplate as getCodexConfigTemplate, getHooksConfig as getCodexHooksConfig, } from "../templates/codex/index.js";
33
- import { getAllHooks as getCopilotHooks, getHooksConfig as getCopilotHooksConfig, } from "../templates/copilot/index.js";
34
- import { getAllAgents as getQoderAgents, getSettingsTemplate as getQoderSettings, } from "../templates/qoder/index.js";
35
- import { getAllAgents as getCodebuddyAgents, getSettingsTemplate as getCodebuddySettings, } from "../templates/codebuddy/index.js";
36
- import { getAllDroids as getDroidDroids, getSettingsTemplate as getDroidSettings, } from "../templates/droid/index.js";
15
+ import { replacePythonCommandLiterals, resolvePlaceholders, resolveCommands, } from "./shared.js";
16
+ // Cursor-specific template content (agents, rules, hooks, settings, commands)
37
17
  import { getAllAgents as getCursorAgents, getAllRules as getCursorRules, getCursorCommands, getHooksConfig as getCursorHooksConfig, getWorktreesConfig, } from "../templates/cursor/index.js";
38
- import { getAllAgents as getGeminiAgents, getSettingsTemplate as getGeminiSettings, } from "../templates/gemini/index.js";
39
- import { getAllAgents as getKiroAgents } from "../templates/kiro/index.js";
40
18
  import { getSharedHookScriptsForPlatform, } from "../templates/shared-hooks/index.js";
41
- /**
42
- * Platform functions registry — maps each AITool to its behavior.
43
- * When adding a new platform, add an entry here.
44
- */
45
19
  /** Helper: collect the shared hook scripts that `platform` actually
46
20
  * registers. Keyed off SHARED_HOOKS_BY_PLATFORM so runtime install
47
21
  * (writeSharedHooks) and update diff (collectSharedHooks) never drift.
@@ -61,35 +35,11 @@ function replaceInMap(map) {
61
35
  }
62
36
  return result;
63
37
  }
64
- /** Helper: collect commands + skills for "both" platforms */
65
- function collectBothTemplates(ctx, cmdPath, skillRoot, wrapCmd) {
66
- const files = new Map();
67
- for (const cmd of resolveCommands(ctx)) {
68
- const filePath = cmdPath(cmd.name);
69
- files.set(filePath, wrapCmd ? wrapCmd(filePath, cmd.content) : cmd.content);
70
- }
71
- for (const [filePath, content] of collectSkillTemplates(skillRoot, resolveSkills(ctx), resolveBundledSkills(ctx))) {
72
- files.set(filePath, content);
73
- }
74
- return files;
75
- }
38
+ /**
39
+ * Platform functions registry — maps each AITool to its behavior.
40
+ * Cursor-only fork: only the Cursor entry is registered.
41
+ */
76
42
  const PLATFORM_FUNCTIONS = {
77
- "claude-code": {
78
- configure: configureClaude,
79
- collectTemplates: () => {
80
- const ctx = AI_TOOLS["claude-code"].templateContext;
81
- const files = collectBothTemplates(ctx, (n) => `.claude/commands/trellis/${n}.md`, ".claude/skills");
82
- for (const agent of getClaudeAgents()) {
83
- files.set(`.claude/agents/${agent.name}.md`, agent.content);
84
- }
85
- for (const [k, v] of collectSharedHooks(".claude/hooks", "claude")) {
86
- files.set(k, v);
87
- }
88
- const settings = getClaudeSettings();
89
- files.set(`.claude/${settings.targetPath}`, resolvePlaceholders(settings.content));
90
- return files;
91
- },
92
- },
93
43
  cursor: {
94
44
  configure: configureCursor,
95
45
  collectTemplates: () => {
@@ -120,181 +70,6 @@ const PLATFORM_FUNCTIONS = {
120
70
  return files;
121
71
  },
122
72
  },
123
- opencode: {
124
- configure: configureOpenCode,
125
- collectTemplates: () => collectOpenCodeTemplates(),
126
- },
127
- codex: {
128
- configure: configureCodex,
129
- collectTemplates: () => {
130
- const files = new Map();
131
- const ctx = AI_TOOLS.codex.templateContext;
132
- for (const [filePath, content] of collectSkillTemplates(".agents/skills", resolveAllAsSkillsNeutral(ctx), resolveBundledSkills(ctx))) {
133
- files.set(filePath, content);
134
- }
135
- // Mirror configureCodex's extra trellis-start write so `trellis update`
136
- // picks up the file (was missing pre-0.5.7 — upgrade path silently
137
- // dropped the skill).
138
- const trellisStart = resolveCodexTrellisStartSkill(ctx);
139
- if (trellisStart) {
140
- files.set(`.agents/skills/${trellisStart.name}/SKILL.md`, trellisStart.content);
141
- }
142
- for (const skill of getCodexPlatformSkills()) {
143
- files.set(`.codex/skills/${skill.name}/SKILL.md`, skill.content);
144
- }
145
- for (const agent of applyPullBasedPreludeToml(getCodexAgents())) {
146
- files.set(`.codex/agents/${agent.name}.toml`, agent.content);
147
- }
148
- for (const hook of getCodexHooks()) {
149
- files.set(`.codex/hooks/${hook.name}`, hook.content);
150
- }
151
- // Shared hooks (inject-workflow-state.py only) — mirror configureCodex
152
- for (const [k, v] of collectSharedHooks(".codex/hooks", "codex")) {
153
- files.set(k, v);
154
- }
155
- files.set(".codex/hooks.json", resolvePlaceholders(getCodexHooksConfig()));
156
- const config = getCodexConfigTemplate();
157
- files.set(`.codex/${config.targetPath}`, config.content);
158
- return files;
159
- },
160
- },
161
- kilo: {
162
- configure: configureKilo,
163
- collectTemplates: () => collectBothTemplates(AI_TOOLS.kilo.templateContext, (n) => `.kilocode/workflows/${n}.md`, ".kilocode/skills"),
164
- },
165
- kiro: {
166
- configure: configureKiro,
167
- collectTemplates: () => {
168
- const files = new Map();
169
- const ctx = AI_TOOLS.kiro.templateContext;
170
- for (const [filePath, content] of collectSkillTemplates(".kiro/skills", resolveAllAsSkills(ctx), resolveBundledSkills(ctx))) {
171
- files.set(filePath, content);
172
- }
173
- for (const agent of getKiroAgents()) {
174
- files.set(`.kiro/agents/${agent.name}.json`, resolvePlaceholders(agent.content));
175
- }
176
- for (const [k, v] of collectSharedHooks(".kiro/hooks", "kiro")) {
177
- files.set(k, v);
178
- }
179
- return files;
180
- },
181
- },
182
- gemini: {
183
- configure: configureGemini,
184
- collectTemplates: () => {
185
- const ctx = AI_TOOLS.gemini.templateContext;
186
- const files = new Map();
187
- for (const cmd of resolveCommands(ctx)) {
188
- const toml = `description = "Trellis: ${cmd.name}"\n\nprompt = """\n${cmd.content}\n"""\n`;
189
- files.set(`.gemini/commands/trellis/${cmd.name}.toml`, toml);
190
- }
191
- // Shared skills written to `.agents/skills/` (Gemini CLI 0.40+ workspace
192
- // alias). Neutral resolver keeps content byte-identical to Codex's writes
193
- // for the same skill names.
194
- for (const [filePath, content] of collectSkillTemplates(".agents/skills", resolveSkillsNeutral(ctx), resolveBundledSkills(ctx))) {
195
- files.set(filePath, content);
196
- }
197
- for (const agent of applyPullBasedPreludeMarkdown(getGeminiAgents())) {
198
- files.set(`.gemini/agents/${agent.name}.md`, agent.content);
199
- }
200
- for (const [k, v] of collectSharedHooks(".gemini/hooks", "gemini")) {
201
- files.set(k, v);
202
- }
203
- files.set(".gemini/settings.json", resolvePlaceholders(getGeminiSettings()));
204
- return files;
205
- },
206
- },
207
- antigravity: {
208
- configure: configureAntigravity,
209
- collectTemplates: () => collectBothTemplates(AI_TOOLS.antigravity.templateContext, (n) => `.agent/workflows/${n}.md`, ".agent/skills"),
210
- },
211
- windsurf: {
212
- configure: configureWindsurf,
213
- collectTemplates: () => collectBothTemplates(AI_TOOLS.windsurf.templateContext, (n) => `.windsurf/workflows/trellis-${n}.md`, ".windsurf/skills"),
214
- },
215
- qoder: {
216
- configure: configureQoder,
217
- collectTemplates: () => {
218
- const files = collectBothTemplates(AI_TOOLS.qoder.templateContext, (n) => `.qoder/commands/trellis-${n}.md`, ".qoder/skills", (filePath, content) => {
219
- const name = path.basename(filePath, ".md");
220
- return wrapWithCommandFrontmatter(name, content);
221
- });
222
- for (const agent of applyPullBasedPreludeMarkdown(getQoderAgents())) {
223
- files.set(`.qoder/agents/${agent.name}.md`, agent.content);
224
- }
225
- for (const [k, v] of collectSharedHooks(".qoder/hooks", "qoder")) {
226
- files.set(k, v);
227
- }
228
- const settings = getQoderSettings();
229
- files.set(`.qoder/${settings.targetPath}`, resolvePlaceholders(settings.content));
230
- return files;
231
- },
232
- },
233
- codebuddy: {
234
- configure: configureCodebuddy,
235
- collectTemplates: () => {
236
- const files = collectBothTemplates(AI_TOOLS.codebuddy.templateContext, (n) => `.codebuddy/commands/trellis/${n}.md`, ".codebuddy/skills");
237
- for (const agent of getCodebuddyAgents()) {
238
- files.set(`.codebuddy/agents/${agent.name}.md`, agent.content);
239
- }
240
- for (const [k, v] of collectSharedHooks(".codebuddy/hooks", "codebuddy")) {
241
- files.set(k, v);
242
- }
243
- const settings = getCodebuddySettings();
244
- files.set(`.codebuddy/${settings.targetPath}`, resolvePlaceholders(settings.content));
245
- return files;
246
- },
247
- },
248
- copilot: {
249
- configure: configureCopilot,
250
- collectTemplates: () => {
251
- const ctx = AI_TOOLS.copilot.templateContext;
252
- const files = new Map();
253
- for (const cmd of resolveCommands(ctx)) {
254
- files.set(`.github/prompts/${cmd.name}.prompt.md`, cmd.content);
255
- }
256
- for (const [filePath, content] of collectSkillTemplates(".github/skills", resolveSkills(ctx), resolveBundledSkills(ctx))) {
257
- files.set(filePath, content);
258
- }
259
- // Copilot's own session-start hook
260
- for (const hook of getCopilotHooks()) {
261
- files.set(`.github/copilot/hooks/${hook.name}`, hook.content);
262
- }
263
- // Shared hooks (inject-workflow-state.py only). Copilot bundles its own
264
- // session-start.py above; sub-agent context is pull-based (class-2).
265
- for (const [k, v] of collectSharedHooks(".github/copilot/hooks", "copilot")) {
266
- files.set(k, v);
267
- }
268
- // Agents: reuse Cursor content + prepend pull-based prelude, then
269
- // normalize Cursor's Claude-style tools frontmatter for Copilot.
270
- for (const agent of applyPullBasedPreludeMarkdown(normalizeCopilotMarkdownAgents(getCursorAgents()))) {
271
- files.set(`.github/agents/${agent.name}.agent.md`, agent.content);
272
- }
273
- const hooksConfig = resolvePlaceholders(getCopilotHooksConfig());
274
- files.set(".github/copilot/hooks.json", hooksConfig);
275
- files.set(".github/hooks/trellis.json", hooksConfig);
276
- return files;
277
- },
278
- },
279
- droid: {
280
- configure: configureDroid,
281
- collectTemplates: () => {
282
- const files = collectBothTemplates(AI_TOOLS.droid.templateContext, (n) => `.factory/commands/trellis/${n}.md`, ".factory/skills");
283
- for (const droid of getDroidDroids()) {
284
- files.set(`.factory/droids/${droid.name}.md`, droid.content);
285
- }
286
- for (const [k, v] of collectSharedHooks(".factory/hooks", "droid")) {
287
- files.set(k, v);
288
- }
289
- const settings = getDroidSettings();
290
- files.set(`.factory/${settings.targetPath}`, resolvePlaceholders(settings.content));
291
- return files;
292
- },
293
- },
294
- pi: {
295
- configure: configurePi,
296
- collectTemplates: () => collectPiTemplates(),
297
- },
298
73
  };
299
74
  // =============================================================================
300
75
  // Derived Helpers — all derived from AI_TOOLS registry
@@ -305,7 +80,7 @@ export const PLATFORM_IDS = Object.keys(AI_TOOLS);
305
80
  export const FIRST_CLASS_PLATFORM_IDS = PLATFORM_IDS.filter((id) => AI_TOOLS[id].tier === "first-class");
306
81
  /** Legacy adapter IDs retained for explicit compatibility, not default targeting. */
307
82
  export const LEGACY_PLATFORM_IDS = PLATFORM_IDS.filter((id) => AI_TOOLS[id].tier === "legacy");
308
- /** All platform config directory names (e.g., [".claude", ".cursor", ".opencode"]) */
83
+ /** All platform config directory names (e.g., [".cursor"]) */
309
84
  export const CONFIG_DIRS = PLATFORM_IDS.map((id) => AI_TOOLS[id].configDir);
310
85
  /** All managed paths for every platform (primary configDir + extra managed paths). */
311
86
  export const PLATFORM_MANAGED_DIRS = PLATFORM_IDS.flatMap((id) => getManagedPaths(id));
@@ -387,7 +162,7 @@ export function getInitToolChoices() {
387
162
  }));
388
163
  }
389
164
  /**
390
- * Resolve CLI flag name to AITool id (e.g., "claude" → "claude-code")
165
+ * Resolve CLI flag name to AITool id (e.g., "cursor" → "cursor")
391
166
  */
392
167
  export function resolveCliFlag(flag) {
393
168
  return PLATFORM_IDS.find((id) => AI_TOOLS[id].cliFlag === flag);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/configurators/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACL,QAAQ,EACR,eAAe,GAGhB,MAAM,sBAAsB,CAAC;AAE9B,yBAAyB;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE1D,mBAAmB;AACnB,OAAO,EACL,4BAA4B,EAC5B,mBAAmB,EACnB,kBAAkB,EAClB,yBAAyB,EACzB,oBAAoB,EACpB,6BAA6B,EAC7B,eAAe,EACf,aAAa,EACb,oBAAoB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Q,CAAC,EAAE,CAAC,CAAC,OAAO;QACzB,IAAI,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,IAAI;QACvB,cAAc,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,cAAc;QAC3C,UAAU,EAAE,EAAE;KACf,CAAC,CAAC,CAAC;AACN,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,IAAY;IACzC,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC;AAClE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/configurators/workflow.ts"],"names":[],"mappings":"AA0CA,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,eAAe,EACrB,MAAM,8BAA8B,CAAC;AAOtC;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,yCAAyC;IACzC,WAAW,EAAE,WAAW,CAAC;IACzB,yFAAyF;IACzF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kEAAkE;IAClE,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;IAC7B,0EAA0E;IAC1E,kBAAkB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACjC;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,IAAI,CAAC,CAwDf"}
1
+ {"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/configurators/workflow.ts"],"names":[],"mappings":"AA2CA,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,eAAe,EACrB,MAAM,8BAA8B,CAAC;AAOtC;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,yCAAyC;IACzC,WAAW,EAAE,WAAW,CAAC;IACzB,yFAAyF;IACzF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kEAAkE;IAClE,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;IAC7B,0EAA0E;IAC1E,kBAAkB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACjC;;;;;;OAMG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,uBAAuB,CAC3C,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,eAAe,GACxB,OAAO,CAAC,IAAI,CAAC,CAwDf"}
@@ -10,7 +10,7 @@ backendIndexContent, backendDirectoryStructureContent, backendDatabaseGuidelines
10
10
  // Frontend structure (multi-doc)
11
11
  frontendIndexContent, frontendDirectoryStructureContent, frontendTypeSafetyContent, frontendHookGuidelinesContent, frontendComponentGuidelinesContent, frontendQualityGuidelinesContent, frontendStateManagementContent,
12
12
  // Guides structure
13
- guidesIndexContent, guidesCrossLayerThinkingGuideContent, guidesCodeReuseThinkingGuideContent, guidesDurableLearningDecisionGuideContent, guidesRetrievalDailyGuideContent, guidesCursorSubagentPolicyContent, } from "../templates/markdown/index.js";
13
+ guidesIndexContent, guidesCrossLayerThinkingGuideContent, guidesCodeReuseThinkingGuideContent, guidesDurableLearningDecisionGuideContent, guidesRetrievalDailyGuideContent, guidesCursorSemanticComplianceContent, guidesCursorSubagentPolicyContent, } from "../templates/markdown/index.js";
14
14
  import { writeFile, ensureDir } from "../utils/file-writer.js";
15
15
  import { replacePythonCommandLiterals } from "./shared.js";
16
16
  import { writeCursor2plusLocalBundle } from "./cursor2plus-local.js";
@@ -152,6 +152,10 @@ async function createSpecTemplates(cwd, projectType, packages, remoteSpecPackage
152
152
  name: "retrieval-daily-guide.md",
153
153
  content: guidesRetrievalDailyGuideContent,
154
154
  },
155
+ {
156
+ name: "cursor-semantic-compliance.md",
157
+ content: guidesCursorSemanticComplianceContent,
158
+ },
155
159
  {
156
160
  name: "cursor-subagent-policy.md",
157
161
  content: guidesCursorSubagentPolicyContent,
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../src/configurators/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,2DAA2D;AAC3D,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,+BAA+B,CAAC;AAEvC,4BAA4B;AAC5B,OAAO,EACL,yBAAyB;AACzB,gCAAgC;AAChC,mBAAmB,EACnB,gCAAgC,EAChC,gCAAgC,EAChC,+BAA+B,EAC/B,+BAA+B,EAC/B,2BAA2B;AAC3B,iCAAiC;AACjC,oBAAoB,EACpB,iCAAiC,EACjC,yBAAyB,EACzB,6BAA6B,EAC7B,kCAAkC,EAClC,gCAAgC,EAChC,8BAA8B;AAC9B,mBAAmB;AACnB,kBAAkB,EAClB,oCAAoC,EACpC,mCAAmC,EACnC,yCAAyC,EACzC,gCAAgC,EAChC,iCAAiC,GAClC,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EACL,eAAe,GAGhB,MAAM,8BAA8B,CAAC;AAsCtC;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,GAAW,EACX,OAAyB;IAEz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AAC,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACpC,sDAAsD;QACtD,KAAK,MAAM,GAAG,IAAI,QAAQ,EAAE,CAAC;YAC3B,MAAM,OAAO,GAAG,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAC1C,IAAI,kBAAkB,EAAE,GAAG,CAAC,OAAO,CAAC;gBAAE,SAAS;YAC/C,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,IAAI,IAAI,OAAO,EAAE,CAAC,CAAC;YAC/D,SAAS,CAAC,WAAW,CAAC,CAAC;YACvB,MAAM,OAAO,GAAG,GAAG,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;YAChE,MAAM,gBAAgB,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAC/C,CAAC;IACH,CAAC;SAAM,CAAC;QACN,mBAAmB;QACnB,MAAM,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC;IAClE,CAAC;AACH,CAAC"}
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.1.1",
3
+ "description": "v0.1.1 — Cursor-only platform reduction. Trellis templates, CLI init/update/uninstall, retrieval router, and docs converge on Cursor as the sole managed platform.",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "**Cursor-only product trim.**\n\n- refactor(cli): platform registry, init, uninstall/update, and template dirs reduced to Cursor-only (S1–S11).\n- refactor(retrieval): drop `--platform` / non-Cursor dead branches from codebase retrieval planner (R12).\n- refactor(core): remove mem module export (R13).\n- docs/spec: workflow, AGENTS, README, and guides aligned to cursor-only surface.\n\nRun `trellis update` in each project to sync templates and scripts.",
7
+ "migrations": [],
8
+ "notes": "Backfilled manifest for npm 0.1.1 (published without local manifest). No automated migrations; template sync via `trellis update`."
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": "0.1.2",
3
+ "description": "v0.1.2 — Agent dispatch context assembly: `generate-dispatch-prompt` CLI (Layer 2) plus shared subagent_dispatch builder and slim preToolUse hook.",
4
+ "breaking": false,
5
+ "recommendMigrate": false,
6
+ "changelog": "**Subagent dispatch Layer 2 (Agent-facing).**\n\n- feat(cli): `task.py generate-dispatch-prompt <task-dir> <role>` assembles full Task prompts (marker, Selected task, prd/jsonl/spec embed).\n- refactor(scripts): `common/subagent_dispatch.py` single builder; hook is thin wrapper with marker dedup.\n- docs: workflow Phase 2.1/2.2 orchestrator contract; cursor-context-injection-guide + cursor-subagent-policy Layer 2 rows.\n\nFull/Parent implement/check on Cursor: main session should run dispatch CLI before `Task(trellis-*)`. Hook remains best-effort.",
7
+ "migrations": [],
8
+ "notes": "No user README changes. Run `trellis update` in each project to sync `.trellis/scripts` and hooks."
9
+ }
@@ -262,10 +262,10 @@ Use this when the user wants work that can be inspected, resumed, or audited.
262
262
  - Prefer the CLI's local config file managed by `smart-search setup` / `smart-search config`.
263
263
  - Environment variables remain supported for CI and advanced users, and override the local config file.
264
264
  - Do not ask users to set Windows global API-key environment variables by default.
265
- - If keys are changed with `smart-search config set`, rerun the CLI; no Codex restart is needed.
266
- - If PATH is changed, a new terminal or Codex restart may be needed.
265
+ - If keys are changed with `smart-search config set`, rerun the CLI; no Cursor reload is needed.
266
+ - If PATH is changed, a new terminal or Cursor reload may be needed.
267
267
  - On Windows, the default local config file is `%LOCALAPPDATA%\smart-search\config.json`. Linux/macOS default to `~/.config/smart-search/config.json`.
268
- - In sandboxed runtimes (Codex CLI, containers, CI) where the default config directory is not writable or must be pinned, set `SMART_SEARCH_CONFIG_DIR` to an absolute writable path. The CLI uses it for both config and relative logs and skips default-directory selection.
268
+ - In sandboxed runtimes (Cursor agent-sandbox subprocesses, containers, CI) where the default config directory is not writable or must be pinned, set `SMART_SEARCH_CONFIG_DIR` to an absolute writable path. The CLI uses it for both config and relative logs and skips default-directory selection.
269
269
  - The default research evidence root is `evidence` under the active config directory. Set `SMART_SEARCH_EVIDENCE_DIR` only when evidence needs a separate absolute location; `config path` and `doctor` report both the configured and resolved evidence paths.
270
270
  - Earlier Windows source defaults used `~\.config\smart-search\config.json`, while some installs were already pinned to `%LOCALAPPDATA%\smart-search` through `SMART_SEARCH_CONFIG_DIR`. If the new default file is missing but the old file exists, `doctor` reports `legacy_windows_home` as the active source so upgrades do not silently lose configuration. It also reports the override value and whether it matches the current default.
271
271
  - Use `smart-search doctor --format json` for agent/script parsing and `smart-search doctor --format markdown` when a human wants a detailed diagnostic report.
@@ -10,8 +10,10 @@ This skill is for local Trellis users who have already run `trellis init` in a p
10
10
  The default operating scope is local files in the user project:
11
11
 
12
12
  - `.trellis/`: workflow, config, tasks, spec, workspace, scripts, and runtime state.
13
- - Platform directories: first-class `.claude/`, `.codex/`, `.cursor/`; legacy adapter directories such as `.opencode/`, `.kiro/`, `.gemini/`, `.qoder/`, `.codebuddy/`, `.github/`, `.factory/`, `.pi/`, `.kilocode/`, `.agent/`, `.windsurf/`, and similar directories.
14
- - Shared skill layer: `.agents/skills/`.
13
+ - Platform directory: `.cursor/` skills, agents, hooks, commands, rules.
14
+ - Shared skill layer: `.agents/skills/` (industry skill-sharing path, kept when present but not extended by new Trellis behavior).
15
+
16
+ Trellis previously supported many AI-platform adapter directories (`.claude/`, `.codex/`, `.opencode/`, `.kiro/`, `.gemini/`, `.qoder/`, `.codebuddy/`, `.github/`, `.factory/`, `.pi/`, `.kilocode/`, `.agent/`, `.windsurf/`). The project has converged on **Cursor-only**. Legacy adapter directories in upgraded projects are preserved by `trellis update` but new Trellis behavior ships to `.cursor/` only.
15
17
 
16
18
  Do not assume the user has the Trellis source repository. Do not default to modifying the global npm install directory or `node_modules`.
17
19
 
@@ -6,24 +6,17 @@ When the user wants to change `trellis-research`, `trellis-implement`, or `trell
6
6
 
7
7
  1. Target platform agent directory
8
8
  2. `.trellis/workflow.md` Phase 2 / research routing
9
- 3. Selected task `prd.md`
10
- 4. Selected task `implement.jsonl` / `check.jsonl`
9
+ 3. Selected task `prd.md`
10
+ 4. Selected task `implement.jsonl` / `check.jsonl`
11
11
  5. Relevant hook or agent prelude
12
12
 
13
13
  ## Common Paths
14
14
 
15
15
  | Platform | Path |
16
16
  | --- | --- |
17
- | Claude Code | `.claude/agents/trellis-*.md` |
18
17
  | Cursor | `.cursor/agents/trellis-*.md` |
19
- | OpenCode | `.opencode/agents/trellis-*.md` |
20
- | Codex | `.codex/agents/trellis-*.toml` |
21
- | Kiro | `.kiro/agents/trellis-*.json` |
22
- | Gemini CLI | `.gemini/agents/trellis-*.md` |
23
- | Qoder | `.qoder/agents/trellis-*.md` |
24
- | CodeBuddy | `.codebuddy/agents/trellis-*.md` |
25
- | Factory Droid | `.factory/droids/trellis-*.md` |
26
- | Pi Agent | `.pi/agents/trellis-*.md` |
18
+
19
+ If a user project still contains legacy platform agent directories (`.claude/agents/`, `.codex/agents/`, etc.), inspect them but route new agent definitions to `.cursor/agents/`.
27
20
 
28
21
  Use the actual paths in the user project as authoritative.
29
22
 
@@ -41,14 +34,14 @@ Use the actual paths in the user project as authoritative.
41
34
 
42
35
  1. **Preserve role boundaries**: research investigates and persists; implement writes implementation; check reviews and fixes.
43
36
  2. **Do not hard-code project specs into agents**: long-term specs belong in `.trellis/spec/`; agents are responsible for reading them.
44
- 3. **Make read order explicit**: selected task -> PRD -> info -> JSONL -> spec/research.
37
+ 3. **Make read order explicit**: selected task -> PRD -> info -> JSONL -> spec/research.
45
38
  4. **Make write boundaries explicit**: which directories may be written and which may not.
46
- 5. **Synchronize across platforms**: when the user configured multiple platforms, decide whether to change only the current platform or all platform agents.
39
+ 5. **Treat dogfood + published copies consistently**: `.cursor/agents/trellis-*.md` (dogfooded) and `packages/cli/src/templates/cursor/agents/trellis-*.md` (published template) must stay in sync see `cross-layer-thinking-guide.md.txt` Cross-Package Template Consistency.
47
40
 
48
- ## Agent Pull Platforms
41
+ ## Agent Pull Mode
49
42
 
50
43
  If an agent file contains a prelude for "read task/context after startup," do not remove those steps when editing. Otherwise the agent will work only from chat context and bypass Trellis's core mechanism.
51
44
 
52
- ## Hook Push Platforms
45
+ ## Hook Push Mode
53
46
 
54
47
  If context is injected by a hook, the agent file should still retain responsibility boundaries. Do not remove PRD/spec requirements from the agent just because a hook injects context.
@@ -4,7 +4,7 @@ Hooks are the automation layer that connects a platform to Trellis. When the use
4
4
 
5
5
  ## Read These Files First
6
6
 
7
- 1. Target platform settings/config, such as `.claude/settings.json`, `.codex/hooks.json`, `.cursor/hooks.json`
7
+ 1. Target platform settings/config: `.cursor/hooks.json`
8
8
  2. Target platform hooks directory
9
9
  3. `.trellis/scripts/common/active_task.py`
10
10
  4. `.trellis/scripts/common/session_context.py`
@@ -32,8 +32,8 @@ Hooks are the automation layer that connects a platform to Trellis. When the use
32
32
  First find the session-start hook:
33
33
 
34
34
  ```text
35
- .claude/settings.json
36
- .claude/hooks/session-start.py
35
+ .cursor/hooks.json
36
+ .cursor/hooks/session-start.py
37
37
  ```
38
38
 
39
39
  If the hook ultimately calls `.trellis/scripts/get_context.py` or `session_context.py`, editing the local script is usually more robust than hard-coding content in the hook.
@@ -43,15 +43,15 @@ If the hook ultimately calls `.trellis/scripts/get_context.py` or `session_conte
43
43
  First confirm:
44
44
 
45
45
  ```bash
46
- python3 ./.trellis/scripts/task.py selected --source
47
- python3 ./.trellis/scripts/task.py validate <task>
48
- ```
46
+ python3 ./.trellis/scripts/task.py selected --source
47
+ python3 ./.trellis/scripts/task.py validate <task>
48
+ ```
49
49
 
50
50
  If the task and JSONL are correct, determine whether the platform uses hook push or agent pull. For hook push, edit `inject-subagent-context`; for agent pull, edit the agent file.
51
51
 
52
52
  ## Notes
53
53
 
54
54
  - Settings handle registration, hook scripts handle behavior; inspect both together.
55
- - Different platforms support different hook events. Do not directly copy another platform's settings.
55
+ - Cursor's hook event surface has changed between releases; confirm against the current Cursor build before wiring a new event.
56
56
  - Hooks should read project-local `.trellis/`; they should not depend on Trellis upstream source paths.
57
57
  - Hook failures should produce visible errors so AI does not silently lose context.
@@ -18,9 +18,9 @@ When the user wants to change AI entry points, auto-trigger rules, or explicit c
18
18
  | Team project conventions | Prefer `.trellis/spec/` or a project-local skill. |
19
19
  | Change Trellis flow semantics | Synchronize `.trellis/workflow.md`. |
20
20
 
21
- ## Modify A Skill
22
-
23
- A skill is usually:
21
+ ## Modify A Skill
22
+
23
+ A skill is usually:
24
24
 
25
25
  ```text
26
26
  <skill-name>/
@@ -28,14 +28,14 @@ A skill is usually:
28
28
  └── references/
29
29
  ```
30
30
 
31
- `SKILL.md` should be short and responsible for triggering/routing. Put long content in `references/` so AI can read it on demand.
32
-
33
- For detailed skill authoring and review rules, use `trellis-skill-creator`. This `trellis-meta` page only identifies where local Trellis skill, command, prompt, and workflow changes belong.
34
-
35
- The frontmatter description should specify when to use the skill. Example:
36
-
37
- ```yaml
38
- description: "Use when customizing this project's deployment workflow and release checklist."
31
+ `SKILL.md` should be short and responsible for triggering/routing. Put long content in `references/` so AI can read it on demand.
32
+
33
+ For detailed skill authoring and review rules, use `trellis-skill-creator`. This `trellis-meta` page only identifies where local Trellis skill, command, prompt, and workflow changes belong.
34
+
35
+ The frontmatter description should specify when to use the skill. Example:
36
+
37
+ ```yaml
38
+ description: "Use when customizing this project's deployment workflow and release checklist."
39
39
  ```
40
40
 
41
41
  Do not write vague descriptions such as "helpful project skill"; they can trigger incorrectly.
@@ -55,26 +55,23 @@ If a command only repeats workflow rules, prefer making it reference/read `.trel
55
55
 
56
56
  | Platform | Entry directories |
57
57
  | --- | --- |
58
- | Claude Code | `.claude/skills/`, `.claude/commands/` |
59
- | Cursor | `.cursor/skills/`, `.cursor/commands/` |
60
- | OpenCode | `.opencode/skills/`, `.opencode/commands/` |
61
- | Codex | `.agents/skills/`, `.codex/skills/` |
62
- | GitHub Copilot | `.github/skills/`, `.github/prompts/` |
63
- | Kilo / Antigravity / Windsurf | workflows + skills |
58
+ | Cursor | `.cursor/skills/` (preferred); `.cursor/commands/` is legacy compatibility-only |
59
+
60
+ If a user project still contains legacy platform skill directories (`.claude/skills/`, `.codex/skills/`, etc.), inspect them but route new skill additions to `.cursor/skills/`.
64
61
 
65
62
  ## Add A Project-Local Skill
66
63
 
67
64
  If the user wants to document team-private customizations, create a project-local skill, for example:
68
65
 
69
66
  ```text
70
- .claude/skills/project-trellis-local/
67
+ .cursor/skills/project-trellis-local/
71
68
  └── SKILL.md
72
69
  ```
73
70
 
74
- For multi-platform projects, add equivalent versions in each platform skill directory, or use `.agents/skills/` on platforms that support the shared layer.
71
+ For shared skill layers across tools, consider `.agents/skills/` on platforms that read that path — but do not extend new Trellis behavior there; new Trellis behavior ships to `.cursor/skills/`.
75
72
 
76
73
  ## Notes
77
74
 
78
- - Do not mix every platform's syntax into one file.
79
- - Do not change only one platform entry point while claiming all platforms are supported.
75
+ - Do not mix platform-specific syntax from removed adapters into the Cursor skill files.
76
+ - Do not change only the dogfooded `.cursor/skills/` copy while forgetting to mirror the published template `packages/cli/src/templates/cursor/skills/` (and vice versa); see `cross-layer-thinking-guide.md.txt` → Cross-Package Template Consistency.
80
77
  - Do not hide long-term engineering conventions inside a command; write them to `.trellis/spec/`.
@@ -17,7 +17,7 @@ This directory is for local AI working in a user project where Trellis was insta
17
17
 
18
18
  ## General Operation Order
19
19
 
20
- 1. **Confirm platform and directories**: inspect which directories exist, such as `.claude/`, `.codex/`, `.cursor/`.
20
+ 1. **Confirm platform and directories**: inspect which directories exist; on a fresh `trellis init --cursor` only `.cursor/` and `.trellis/` are created.
21
21
  2. **Confirm the selected task**: run `python3 ./.trellis/scripts/task.py selected --source`.
22
22
  3. **Read the local source of truth**: prefer `.trellis/workflow.md`, `.trellis/config.yaml`, and relevant platform files.
23
23
  4. **Modify narrowly**: edit only files related to the user's request.
@@ -32,7 +32,7 @@ This directory is for local AI working in a user project where Trellis was insta
32
32
  | Task material | `.trellis/tasks/<task>/` |
33
33
  | Project specs | `.trellis/spec/` |
34
34
  | Runtime scripts | `.trellis/scripts/` |
35
- | Platform integration | `.claude/`, `.codex/`, `.cursor/`, `.opencode/`, and similar directories |
35
+ | Platform integration | `.cursor/` plus legacy adapter directories preserved by `trellis update` |
36
36
  | Shared skill | `.agents/skills/` |
37
37
 
38
38
  ## Things Not To Do By Default