@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,27 +2,29 @@
2
2
  * AI Tool Types and Registry
3
3
  *
4
4
  * Defines supported AI coding tools and which command templates they can use.
5
+ *
6
+ * Cursor-only fork: this registry targets Cursor exclusively. The platform
7
+ * extension hooks below remain structurally valid, but only the Cursor entry
8
+ * is populated.
5
9
  */
6
10
  /**
7
11
  * Supported AI coding tools
8
12
  */
9
- export type AITool = "claude-code" | "cursor" | "opencode" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "windsurf" | "qoder" | "codebuddy" | "copilot" | "droid" | "pi";
13
+ export type AITool = "cursor";
10
14
  /**
11
15
  * Template directory categories
12
16
  */
13
- export type TemplateDir = "common" | "claude" | "cursor" | "opencode" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "windsurf" | "qoder" | "codebuddy" | "copilot" | "droid" | "pi";
17
+ export type TemplateDir = "common" | "cursor";
14
18
  /**
15
- * CLI flag names for platform selection (e.g., --claude, --cursor, --kilo, --kiro, --gemini, --antigravity)
19
+ * CLI flag names for platform selection (e.g., --cursor)
16
20
  * Must match keys in InitOptions (src/commands/init.ts)
17
21
  */
18
- export type CliFlag = "claude" | "cursor" | "opencode" | "codex" | "kilo" | "kiro" | "gemini" | "antigravity" | "windsurf" | "qoder" | "codebuddy" | "copilot" | "droid" | "pi";
22
+ export type CliFlag = "cursor";
19
23
  /**
20
24
  * Platform support tier.
21
25
  *
22
26
  * First-class platforms are the actively targeted framework surfaces for this
23
- * fork. Legacy platforms remain available through explicit init flags and
24
- * update tracking, but new workflow/runtime semantics should not treat them as
25
- * equal launch targets without a dedicated compatibility pass.
27
+ * fork. Retained for structural compatibility; only Cursor is registered.
26
28
  */
27
29
  export type PlatformTier = "first-class" | "legacy";
28
30
  /**
@@ -41,7 +43,7 @@ export interface TemplateContext {
41
43
  /** Platform has hook system (SessionStart, PreToolUse) */
42
44
  hasHooks: boolean;
43
45
  /**
44
- * CLI flag value for this platform (e.g. "claude", "codex", "kiro").
46
+ * CLI flag value for this platform (e.g. "cursor").
45
47
  * Substituted into template commands via {{CLI_FLAG}} so rendered skill /
46
48
  * command files can pass `--platform <flag>` to scripts that need to know
47
49
  * the invoking platform, removing the need to re-detect at runtime.
@@ -60,7 +62,7 @@ export interface AIToolConfig {
60
62
  tier: PlatformTier;
61
63
  /** Command template directory names to include */
62
64
  templateDirs: TemplateDir[];
63
- /** Config directory name in the project root (e.g., ".claude") */
65
+ /** Config directory name in the project root (e.g., ".cursor") */
64
66
  configDir: string;
65
67
  /**
66
68
  * Whether the platform supports the shared `.agents/skills/` layer
@@ -70,7 +72,7 @@ export interface AIToolConfig {
70
72
  supportsAgentSkills?: boolean;
71
73
  /** Additional managed paths beyond configDir (e.g., .github/hooks for Copilot) */
72
74
  extraManagedPaths?: string[];
73
- /** CLI flag name for --flag options (e.g., "claude" for --claude) */
75
+ /** CLI flag name for --flag options (e.g., "cursor" for --cursor) */
74
76
  cliFlag: CliFlag;
75
77
  /** Whether this tool is checked by default in interactive init prompt */
76
78
  defaultChecked: boolean;
@@ -83,12 +85,7 @@ export interface AIToolConfig {
83
85
  * Registry of all supported AI tools and their configurations.
84
86
  * This is the single source of truth for platform data.
85
87
  *
86
- * When adding a new platform, add an entry here and create:
87
- * 1. src/configurators/{platform}.ts — configure function
88
- * 2. src/templates/{platform}/ — template files
89
- * 3. Register in src/configurators/index.ts — PLATFORM_FUNCTIONS
90
- * 4. Add CLI flag in src/cli/index.ts
91
- * 5. Add to InitOptions in src/commands/init.ts
88
+ * Cursor-only fork: only the Cursor entry is registered.
92
89
  */
93
90
  export declare const AI_TOOLS: Record<AITool, AIToolConfig>;
94
91
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ai-tools.d.ts","sourceRoot":"","sources":["../../src/types/ai-tools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,MAAM,MAAM,GACd,aAAa,GACb,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,aAAa,GACb,UAAU,GACV,OAAO,GACP,WAAW,GACX,SAAS,GACT,OAAO,GACP,IAAI,CAAC;AAET;;GAEG;AACH,MAAM,MAAM,WAAW,GACnB,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,aAAa,GACb,UAAU,GACV,OAAO,GACP,WAAW,GACX,SAAS,GACT,OAAO,GACP,IAAI,CAAC;AAET;;;GAGG;AACH,MAAM,MAAM,OAAO,GACf,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,aAAa,GACb,UAAU,GACV,OAAO,GACP,WAAW,GACX,SAAS,GACT,OAAO,GACP,IAAI,CAAC;AAET;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,aAAa,GAAG,QAAQ,CAAC;AAEpD;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,yDAAyD;IACzD,YAAY,EAAE,WAAW,GAAG,WAAW,GAAG,GAAG,GAAG,GAAG,CAAC;IACpD,8DAA8D;IAC9D,UAAU,EACN,4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AM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAkBjD,CAAC;AAEF;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAExD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAUtD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,EAAE,CAE3D"}
@@ -2,36 +2,18 @@
2
2
  * AI Tool Types and Registry
3
3
  *
4
4
  * Defines supported AI coding tools and which command templates they can use.
5
+ *
6
+ * Cursor-only fork: this registry targets Cursor exclusively. The platform
7
+ * extension hooks below remain structurally valid, but only the Cursor entry
8
+ * is populated.
5
9
  */
6
10
  /**
7
11
  * Registry of all supported AI tools and their configurations.
8
12
  * This is the single source of truth for platform data.
9
13
  *
10
- * When adding a new platform, add an entry here and create:
11
- * 1. src/configurators/{platform}.ts — configure function
12
- * 2. src/templates/{platform}/ — template files
13
- * 3. Register in src/configurators/index.ts — PLATFORM_FUNCTIONS
14
- * 4. Add CLI flag in src/cli/index.ts
15
- * 5. Add to InitOptions in src/commands/init.ts
14
+ * Cursor-only fork: only the Cursor entry is registered.
16
15
  */
17
16
  export const AI_TOOLS = {
18
- "claude-code": {
19
- name: "Claude Code",
20
- tier: "first-class",
21
- templateDirs: ["common", "claude"],
22
- configDir: ".claude",
23
- cliFlag: "claude",
24
- defaultChecked: true,
25
- hasPythonHooks: true,
26
- templateContext: {
27
- cmdRefPrefix: "/trellis:",
28
- executorAI: "Bash scripts or Task calls",
29
- userActionLabel: "Slash commands",
30
- agentCapable: true,
31
- hasHooks: true,
32
- cliFlag: "claude",
33
- },
34
- },
35
17
  cursor: {
36
18
  name: "Cursor",
37
19
  tier: "first-class",
@@ -49,221 +31,6 @@ export const AI_TOOLS = {
49
31
  cliFlag: "cursor",
50
32
  },
51
33
  },
52
- opencode: {
53
- name: "OpenCode",
54
- tier: "legacy",
55
- templateDirs: ["common", "opencode"],
56
- configDir: ".opencode",
57
- cliFlag: "opencode",
58
- defaultChecked: false,
59
- hasPythonHooks: false,
60
- templateContext: {
61
- cmdRefPrefix: "/trellis:",
62
- executorAI: "Bash scripts or Task calls",
63
- userActionLabel: "Slash commands",
64
- agentCapable: true,
65
- hasHooks: false,
66
- cliFlag: "opencode",
67
- },
68
- },
69
- codex: {
70
- name: "Codex (also writes .agents/skills/ — read by Cursor, Gemini CLI, GitHub Copilot, Amp, Kimi Code)",
71
- tier: "first-class",
72
- templateDirs: ["common", "codex"],
73
- configDir: ".codex",
74
- supportsAgentSkills: true,
75
- cliFlag: "codex",
76
- defaultChecked: false,
77
- hasPythonHooks: true,
78
- templateContext: {
79
- cmdRefPrefix: "$",
80
- executorAI: "Bash scripts or tool calls",
81
- userActionLabel: "Skills",
82
- agentCapable: true,
83
- hasHooks: false,
84
- cliFlag: "codex",
85
- },
86
- },
87
- kilo: {
88
- name: "Kilo CLI",
89
- tier: "legacy",
90
- templateDirs: ["common", "kilo"],
91
- configDir: ".kilocode",
92
- cliFlag: "kilo",
93
- defaultChecked: false,
94
- hasPythonHooks: false,
95
- templateContext: {
96
- cmdRefPrefix: "/trellis:",
97
- executorAI: "Bash scripts or file reads",
98
- userActionLabel: "Workflows",
99
- agentCapable: false,
100
- hasHooks: false,
101
- cliFlag: "kilo",
102
- },
103
- },
104
- kiro: {
105
- name: "Kiro Code",
106
- tier: "legacy",
107
- templateDirs: ["common", "kiro"],
108
- configDir: ".kiro/skills",
109
- extraManagedPaths: [".kiro/agents", ".kiro/hooks"],
110
- cliFlag: "kiro",
111
- defaultChecked: false,
112
- hasPythonHooks: true,
113
- templateContext: {
114
- cmdRefPrefix: "$",
115
- executorAI: "Bash scripts or tool calls",
116
- userActionLabel: "Skills",
117
- agentCapable: true,
118
- hasHooks: true,
119
- cliFlag: "kiro",
120
- },
121
- },
122
- gemini: {
123
- name: "Gemini CLI",
124
- tier: "legacy",
125
- templateDirs: ["common", "gemini"],
126
- configDir: ".gemini",
127
- supportsAgentSkills: true,
128
- cliFlag: "gemini",
129
- defaultChecked: false,
130
- hasPythonHooks: true,
131
- templateContext: {
132
- cmdRefPrefix: "/trellis:",
133
- executorAI: "Bash scripts or tool calls",
134
- userActionLabel: "Slash commands",
135
- agentCapable: true,
136
- hasHooks: true,
137
- cliFlag: "gemini",
138
- },
139
- },
140
- antigravity: {
141
- name: "Antigravity",
142
- tier: "legacy",
143
- templateDirs: ["common", "antigravity"],
144
- configDir: ".agent/workflows",
145
- extraManagedPaths: [".agent/skills"],
146
- cliFlag: "antigravity",
147
- defaultChecked: false,
148
- hasPythonHooks: false,
149
- templateContext: {
150
- cmdRefPrefix: "/",
151
- executorAI: "Bash scripts or file reads",
152
- userActionLabel: "Workflows",
153
- agentCapable: false,
154
- hasHooks: false,
155
- cliFlag: "antigravity",
156
- },
157
- },
158
- windsurf: {
159
- name: "Windsurf",
160
- tier: "legacy",
161
- templateDirs: ["common", "windsurf"],
162
- configDir: ".windsurf/workflows",
163
- extraManagedPaths: [".windsurf/skills"],
164
- cliFlag: "windsurf",
165
- defaultChecked: false,
166
- hasPythonHooks: false,
167
- templateContext: {
168
- cmdRefPrefix: "/trellis-",
169
- executorAI: "Bash scripts or file reads",
170
- userActionLabel: "Workflows",
171
- agentCapable: false,
172
- hasHooks: false,
173
- cliFlag: "windsurf",
174
- },
175
- },
176
- qoder: {
177
- name: "Qoder",
178
- tier: "legacy",
179
- templateDirs: ["common", "qoder"],
180
- configDir: ".qoder",
181
- cliFlag: "qoder",
182
- defaultChecked: false,
183
- hasPythonHooks: true,
184
- templateContext: {
185
- cmdRefPrefix: "$",
186
- executorAI: "Bash scripts or tool calls",
187
- userActionLabel: "Skills",
188
- agentCapable: true,
189
- hasHooks: true,
190
- cliFlag: "qoder",
191
- },
192
- },
193
- codebuddy: {
194
- name: "CodeBuddy",
195
- tier: "legacy",
196
- templateDirs: ["common", "codebuddy"],
197
- configDir: ".codebuddy",
198
- cliFlag: "codebuddy",
199
- defaultChecked: false,
200
- hasPythonHooks: true,
201
- templateContext: {
202
- cmdRefPrefix: "/trellis:",
203
- executorAI: "Bash scripts or Task calls",
204
- userActionLabel: "Slash commands",
205
- agentCapable: true,
206
- hasHooks: true,
207
- cliFlag: "codebuddy",
208
- },
209
- },
210
- copilot: {
211
- name: "GitHub Copilot",
212
- tier: "legacy",
213
- templateDirs: ["common", "copilot"],
214
- configDir: ".github/copilot",
215
- extraManagedPaths: [
216
- ".github/agents",
217
- ".github/hooks",
218
- ".github/prompts",
219
- ".github/skills",
220
- ],
221
- cliFlag: "copilot",
222
- defaultChecked: false,
223
- hasPythonHooks: true,
224
- templateContext: {
225
- cmdRefPrefix: "/",
226
- executorAI: "Bash scripts or tool calls",
227
- userActionLabel: "Prompts",
228
- agentCapable: true,
229
- hasHooks: true,
230
- cliFlag: "copilot",
231
- },
232
- },
233
- droid: {
234
- name: "Factory Droid",
235
- tier: "legacy",
236
- templateDirs: ["common", "droid"],
237
- configDir: ".factory",
238
- cliFlag: "droid",
239
- defaultChecked: false,
240
- hasPythonHooks: true,
241
- templateContext: {
242
- cmdRefPrefix: "/trellis-",
243
- executorAI: "Bash scripts or Task calls",
244
- userActionLabel: "Slash commands",
245
- agentCapable: true,
246
- hasHooks: true,
247
- cliFlag: "droid",
248
- },
249
- },
250
- pi: {
251
- name: "Pi Agent",
252
- tier: "legacy",
253
- templateDirs: ["common", "pi"],
254
- configDir: ".pi",
255
- cliFlag: "pi",
256
- defaultChecked: false,
257
- hasPythonHooks: false,
258
- templateContext: {
259
- cmdRefPrefix: "/trellis-",
260
- executorAI: "Bash scripts or tool calls",
261
- userActionLabel: "Slash commands",
262
- agentCapable: true,
263
- hasHooks: true,
264
- cliFlag: "pi",
265
- },
266
- },
267
34
  };
268
35
  /**
269
36
  * Get the configuration for a specific AI tool
@@ -1 +1 @@
1
- {"version":3,"file":"ai-tools.js","sourceRoot":"","sources":["../../src/types/ai-tools.ts"],"names":[],"mappings":"A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,EAAE,CAAC;QAC7B,KAAK,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,YAAY,CAAC;AACrC,CAAC"}
@@ -6,11 +6,6 @@
6
6
  * (router-owned fields only; adapterState/freshness are pass-through stubs).
7
7
  */
8
8
  export declare const CODEBASE_RETRIEVAL_ROUTER_VERSION: 2;
9
- export declare const PLATFORM_CURSOR: "cursor";
10
- export declare const PLATFORM_CLAUDE_CODE: "claude-code";
11
- export declare const PLATFORM_CODEX: "codex";
12
- export declare const PLATFORM_GENERIC: "generic";
13
- export declare const KNOWN_PLATFORMS: ReadonlySet<string>;
14
9
  export declare const MODALITY_LEXICAL: "lexical";
15
10
  export declare const MODALITY_STRUCTURAL: "structural";
16
11
  export declare const MODALITY_SEMANTIC: "semantic";
@@ -59,17 +54,15 @@ export interface CodebaseRetrievalPlanEnvelope {
59
54
  fallback: CodebaseRetrievalFallbackHint[];
60
55
  warnings: string[];
61
56
  verification: CodebaseRetrievalVerificationStep[];
62
- platform: string;
63
57
  projectFileCount: number | null;
64
58
  }
65
59
  export interface RouteCodebaseRetrievalInput {
66
60
  query: string;
67
61
  /** When false, optional adapter routes are omitted from the ordered plan. */
68
62
  codebaseRetrievalSelected?: boolean;
69
- platform?: string;
70
63
  projectFileCount?: number | null;
71
64
  }
72
- export declare function emptyCodebaseRetrievalPlan(query?: string, platform?: string, projectFileCount?: number | null): CodebaseRetrievalPlanEnvelope;
65
+ export declare function emptyCodebaseRetrievalPlan(query?: string, projectFileCount?: number | null): CodebaseRetrievalPlanEnvelope;
73
66
  /**
74
67
  * Build a deterministic retrieval plan envelope for a natural-language query.
75
68
  */
@@ -1 +1 @@
1
- {"version":3,"file":"codebase-retrieval-router.d.ts","sourceRoot":"","sources":["../../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6B,CAc/B;AA61BD;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,2BAA2B,GACjC,6BAA6B,CA8D/B"}
1
+ {"version":3,"file":"codebase-retrieval-router.d.ts","sourceRoot":"","sources":["../../src/utils/codebase-retrieval-router.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,iCAAiC,EAAG,CAAU,CAAC;AAE5D,eAAO,MAAM,gBAAgB,EAAG,SAAkB,CAAC;AACnD,eAAO,MAAM,mBAAmB,EAAG,YAAqB,CAAC;AACzD,eAAO,MAAM,iBAAiB,EAAG,UAAmB,CAAC;AAErD,eAAO,MAAM,kBAAkB,EAAG,MAAe,CAAC;AAClD,eAAO,MAAM,oBAAoB,EAAG,QAAiB,CAAC;AACtD,eAAO,MAAM,iBAAiB,EAAG,KAAc,CAAC;AAEhD,MAAM,MAAM,yBAAyB,GACjC,mBAAmB,GACnB,iBAAiB,GACjB,cAAc,GACd,6BAA6B,GAC7B,yBAAyB,GACzB,oBAAoB,GACpB,4BAA4B,GAC5B,yBAAyB,CAAC;AAE9B,MAAM,MAAM,oBAAoB,GAC5B,OAAO,GACP,KAAK,GACL,KAAK,GACL,UAAU,GACV,cAAc,CAAC;AAEnB,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,yBAAyB,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,GAAG,QAAQ,GAAG,KAAK,CAAC;IACtC,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,qFAAqF;IACrF,oBAAoB,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,oBAAoB,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,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