@pennixrv/trellis 0.7.2-beta.12 → 0.7.2-beta.17

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 (284) hide show
  1. package/dist/commands/init.d.ts.map +1 -1
  2. package/dist/commands/init.js +11 -13
  3. package/dist/commands/init.js.map +1 -1
  4. package/dist/commands/update.d.ts.map +1 -1
  5. package/dist/commands/update.js +43 -10
  6. package/dist/commands/update.js.map +1 -1
  7. package/dist/commands/workflow.d.ts.map +1 -1
  8. package/dist/commands/workflow.js +5 -7
  9. package/dist/commands/workflow.js.map +1 -1
  10. package/dist/configurators/codebuddy.d.ts +1 -8
  11. package/dist/configurators/codebuddy.d.ts.map +1 -1
  12. package/dist/configurators/codebuddy.js +2 -12
  13. package/dist/configurators/codebuddy.js.map +1 -1
  14. package/dist/configurators/codex.d.ts +0 -36
  15. package/dist/configurators/codex.d.ts.map +1 -1
  16. package/dist/configurators/codex.js +2 -99
  17. package/dist/configurators/codex.js.map +1 -1
  18. package/dist/configurators/copilot.d.ts +1 -12
  19. package/dist/configurators/copilot.d.ts.map +1 -1
  20. package/dist/configurators/copilot.js +2 -20
  21. package/dist/configurators/copilot.js.map +1 -1
  22. package/dist/configurators/cursor.d.ts +1 -8
  23. package/dist/configurators/cursor.d.ts.map +1 -1
  24. package/dist/configurators/cursor.js +2 -12
  25. package/dist/configurators/cursor.js.map +1 -1
  26. package/dist/configurators/droid.d.ts +1 -8
  27. package/dist/configurators/droid.d.ts.map +1 -1
  28. package/dist/configurators/droid.js +2 -12
  29. package/dist/configurators/droid.js.map +1 -1
  30. package/dist/configurators/dsh.d.ts +1 -21
  31. package/dist/configurators/dsh.d.ts.map +1 -1
  32. package/dist/configurators/dsh.js +4 -37
  33. package/dist/configurators/dsh.js.map +1 -1
  34. package/dist/configurators/gemini.d.ts +1 -16
  35. package/dist/configurators/gemini.d.ts.map +1 -1
  36. package/dist/configurators/gemini.js +3 -21
  37. package/dist/configurators/gemini.js.map +1 -1
  38. package/dist/configurators/grok.d.ts +1 -12
  39. package/dist/configurators/grok.d.ts.map +1 -1
  40. package/dist/configurators/grok.js +2 -18
  41. package/dist/configurators/grok.js.map +1 -1
  42. package/dist/configurators/kimi.d.ts +1 -21
  43. package/dist/configurators/kimi.d.ts.map +1 -1
  44. package/dist/configurators/kimi.js +2 -38
  45. package/dist/configurators/kimi.js.map +1 -1
  46. package/dist/configurators/kiro.d.ts +1 -9
  47. package/dist/configurators/kiro.d.ts.map +1 -1
  48. package/dist/configurators/kiro.js +1 -9
  49. package/dist/configurators/kiro.js.map +1 -1
  50. package/dist/configurators/omp.d.ts.map +1 -1
  51. package/dist/configurators/omp.js +1 -5
  52. package/dist/configurators/omp.js.map +1 -1
  53. package/dist/configurators/pi.d.ts.map +1 -1
  54. package/dist/configurators/pi.js +2 -5
  55. package/dist/configurators/pi.js.map +1 -1
  56. package/dist/configurators/qoder.d.ts +1 -10
  57. package/dist/configurators/qoder.d.ts.map +1 -1
  58. package/dist/configurators/qoder.js +3 -15
  59. package/dist/configurators/qoder.js.map +1 -1
  60. package/dist/configurators/reasonix.d.ts +1 -12
  61. package/dist/configurators/reasonix.d.ts.map +1 -1
  62. package/dist/configurators/reasonix.js +3 -22
  63. package/dist/configurators/reasonix.js.map +1 -1
  64. package/dist/configurators/shared.d.ts +1 -24
  65. package/dist/configurators/shared.d.ts.map +1 -1
  66. package/dist/configurators/shared.js +5 -184
  67. package/dist/configurators/shared.js.map +1 -1
  68. package/dist/configurators/snow.d.ts +1 -20
  69. package/dist/configurators/snow.d.ts.map +1 -1
  70. package/dist/configurators/snow.js +2 -25
  71. package/dist/configurators/snow.js.map +1 -1
  72. package/dist/configurators/trae.d.ts +1 -14
  73. package/dist/configurators/trae.d.ts.map +1 -1
  74. package/dist/configurators/trae.js +3 -19
  75. package/dist/configurators/trae.js.map +1 -1
  76. package/dist/configurators/zcode.d.ts +1 -13
  77. package/dist/configurators/zcode.d.ts.map +1 -1
  78. package/dist/configurators/zcode.js +2 -18
  79. package/dist/configurators/zcode.js.map +1 -1
  80. package/dist/migrations/manifests/0.5.0-beta.5.json +1 -212
  81. package/dist/migrations/manifests/0.7.2-beta.13.json +9 -0
  82. package/dist/migrations/manifests/0.7.2-beta.14.json +9 -0
  83. package/dist/migrations/manifests/0.7.2-beta.15.json +9 -0
  84. package/dist/migrations/manifests/0.7.2-beta.16.json +9 -0
  85. package/dist/migrations/manifests/0.7.2-beta.17.json +9 -0
  86. package/dist/migrations/retired-native-paths.d.ts +109 -0
  87. package/dist/migrations/retired-native-paths.d.ts.map +1 -0
  88. package/dist/migrations/retired-native-paths.js +263 -0
  89. package/dist/migrations/retired-native-paths.js.map +1 -0
  90. package/dist/templates/claude/index.d.ts +1 -16
  91. package/dist/templates/claude/index.d.ts.map +1 -1
  92. package/dist/templates/claude/index.js +5 -32
  93. package/dist/templates/claude/index.js.map +1 -1
  94. package/dist/templates/claude/settings.json +0 -22
  95. package/dist/templates/codebuddy/index.d.ts +2 -3
  96. package/dist/templates/codebuddy/index.d.ts.map +1 -1
  97. package/dist/templates/codebuddy/index.js +2 -3
  98. package/dist/templates/codebuddy/index.js.map +1 -1
  99. package/dist/templates/codebuddy/settings.json +0 -10
  100. package/dist/templates/codex/config.toml +2 -19
  101. package/dist/templates/codex/hooks/session-start.py +1 -1
  102. package/dist/templates/codex/hooks.json +0 -12
  103. package/dist/templates/codex/index.d.ts +0 -5
  104. package/dist/templates/codex/index.d.ts.map +1 -1
  105. package/dist/templates/codex/index.js +0 -13
  106. package/dist/templates/codex/index.js.map +1 -1
  107. package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +7 -7
  108. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-agents.md +9 -51
  109. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-context-loading.md +3 -15
  110. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-hooks.md +1 -2
  111. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/context-injection.md +4 -9
  112. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/generated-files.md +2 -2
  113. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/overview.md +1 -1
  114. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/spec-system.md +1 -1
  115. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/agents.md +9 -79
  116. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/hooks-and-settings.md +2 -4
  117. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/overview.md +3 -6
  118. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/platform-map.md +24 -103
  119. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/skills-and-commands.md +1 -1
  120. package/dist/templates/common/bundled-skills/trellis-session-insight/SKILL.md +1 -1
  121. package/dist/templates/copilot/hooks/session-start.py +1 -1
  122. package/dist/templates/cursor/hooks.json +0 -7
  123. package/dist/templates/cursor/index.d.ts +1 -11
  124. package/dist/templates/cursor/index.d.ts.map +1 -1
  125. package/dist/templates/cursor/index.js +2 -10
  126. package/dist/templates/cursor/index.js.map +1 -1
  127. package/dist/templates/droid/index.d.ts +2 -3
  128. package/dist/templates/droid/index.d.ts.map +1 -1
  129. package/dist/templates/droid/index.js +2 -3
  130. package/dist/templates/droid/index.js.map +1 -1
  131. package/dist/templates/droid/settings.json +0 -10
  132. package/dist/templates/dsh/DSH.md +2 -33
  133. package/dist/templates/dsh/index.d.ts +1 -19
  134. package/dist/templates/dsh/index.d.ts.map +1 -1
  135. package/dist/templates/dsh/index.js +2 -21
  136. package/dist/templates/dsh/index.js.map +1 -1
  137. package/dist/templates/gemini/index.d.ts +1 -11
  138. package/dist/templates/gemini/index.d.ts.map +1 -1
  139. package/dist/templates/gemini/index.js +2 -10
  140. package/dist/templates/gemini/index.js.map +1 -1
  141. package/dist/templates/kiro/index.d.ts +1 -13
  142. package/dist/templates/kiro/index.d.ts.map +1 -1
  143. package/dist/templates/kiro/index.js +1 -13
  144. package/dist/templates/kiro/index.js.map +1 -1
  145. package/dist/templates/markdown/agents.md +6 -3
  146. package/dist/templates/omp/extensions/trellis/index.ts.txt +11 -51
  147. package/dist/templates/omp/index.d.ts +0 -2
  148. package/dist/templates/omp/index.d.ts.map +1 -1
  149. package/dist/templates/omp/index.js +1 -4
  150. package/dist/templates/omp/index.js.map +1 -1
  151. package/dist/templates/opencode/lib/trellis-context.js +12 -321
  152. package/dist/templates/opencode/plugins/inject-shell-session-context.js +93 -0
  153. package/dist/templates/opencode/plugins/inject-workflow-state.js +4 -10
  154. package/dist/templates/opencode/plugins/session-start.js +2 -6
  155. package/dist/templates/pi/extensions/trellis/index.ts.txt +8 -1432
  156. package/dist/templates/pi/index.d.ts +1 -2
  157. package/dist/templates/pi/index.d.ts.map +1 -1
  158. package/dist/templates/pi/index.js +2 -5
  159. package/dist/templates/pi/index.js.map +1 -1
  160. package/dist/templates/qoder/index.d.ts +2 -3
  161. package/dist/templates/qoder/index.d.ts.map +1 -1
  162. package/dist/templates/qoder/index.js +2 -3
  163. package/dist/templates/qoder/index.js.map +1 -1
  164. package/dist/templates/shared-hooks/index.d.ts +2 -56
  165. package/dist/templates/shared-hooks/index.d.ts.map +1 -1
  166. package/dist/templates/shared-hooks/index.js +3 -70
  167. package/dist/templates/shared-hooks/index.js.map +1 -1
  168. package/dist/templates/shared-hooks/inject-spec-context.py +6 -35
  169. package/dist/templates/shared-hooks/inject-workflow-state.py +3 -77
  170. package/dist/templates/shared-hooks/session-start.py +1 -1
  171. package/dist/templates/snow/SNOW.md +6 -18
  172. package/dist/templates/snow/hooks/write-trellis-context.py +51 -133
  173. package/dist/templates/snow/index.d.ts +2 -21
  174. package/dist/templates/snow/index.d.ts.map +1 -1
  175. package/dist/templates/snow/index.js +3 -24
  176. package/dist/templates/snow/index.js.map +1 -1
  177. package/dist/templates/template-utils.d.ts +1 -2
  178. package/dist/templates/template-utils.d.ts.map +1 -1
  179. package/dist/templates/template-utils.js +1 -11
  180. package/dist/templates/template-utils.js.map +1 -1
  181. package/dist/templates/trae/index.d.ts +2 -3
  182. package/dist/templates/trae/index.d.ts.map +1 -1
  183. package/dist/templates/trae/index.js +2 -3
  184. package/dist/templates/trae/index.js.map +1 -1
  185. package/dist/templates/trellis/config.yaml +7 -36
  186. package/dist/templates/trellis/scripts/common/config.py +1 -36
  187. package/dist/templates/trellis/scripts/common/git_context.py +3 -4
  188. package/dist/templates/trellis/scripts/common/task_context.py +3 -3
  189. package/dist/templates/trellis/scripts/common/task_store.py +1 -77
  190. package/dist/templates/trellis/scripts/common/workflow_phase.py +3 -36
  191. package/dist/templates/trellis/scripts/common/workflow_selection.py +12 -2
  192. package/dist/templates/trellis/scripts/task.py +2 -2
  193. package/dist/templates/trellis/workflow.md +1 -7
  194. package/dist/templates/zcode/config.json +0 -10
  195. package/dist/templates/zcode/index.d.ts +3 -22
  196. package/dist/templates/zcode/index.d.ts.map +1 -1
  197. package/dist/templates/zcode/index.js +3 -24
  198. package/dist/templates/zcode/index.js.map +1 -1
  199. package/dist/types/ai-tools.d.ts +0 -4
  200. package/dist/types/ai-tools.d.ts.map +1 -1
  201. package/dist/types/ai-tools.js +4 -109
  202. package/dist/types/ai-tools.js.map +1 -1
  203. package/dist/utils/ablation-store.d.ts.map +1 -1
  204. package/dist/utils/ablation-store.js +24 -0
  205. package/dist/utils/ablation-store.js.map +1 -1
  206. package/dist/utils/asset-backup.d.ts.map +1 -1
  207. package/dist/utils/asset-backup.js +3 -0
  208. package/dist/utils/asset-backup.js.map +1 -1
  209. package/dist/utils/retired-native-assets.d.ts +17 -0
  210. package/dist/utils/retired-native-assets.d.ts.map +1 -0
  211. package/dist/utils/retired-native-assets.js +235 -0
  212. package/dist/utils/retired-native-assets.js.map +1 -0
  213. package/dist/utils/uninstall-scrubbers.d.ts.map +1 -1
  214. package/dist/utils/uninstall-scrubbers.js +1 -1
  215. package/dist/utils/uninstall-scrubbers.js.map +1 -1
  216. package/package.json +2 -2
  217. package/dist/templates/claude/agents/trellis-check.md +0 -115
  218. package/dist/templates/claude/agents/trellis-implement.md +0 -110
  219. package/dist/templates/claude/agents/trellis-research.md +0 -137
  220. package/dist/templates/codebuddy/agents/trellis-check.md +0 -115
  221. package/dist/templates/codebuddy/agents/trellis-implement.md +0 -110
  222. package/dist/templates/codebuddy/agents/trellis-research.md +0 -137
  223. package/dist/templates/codex/agents/trellis-check.toml +0 -56
  224. package/dist/templates/codex/agents/trellis-implement.toml +0 -37
  225. package/dist/templates/codex/agents/trellis-research.toml +0 -78
  226. package/dist/templates/cursor/agents/trellis-check.md +0 -114
  227. package/dist/templates/cursor/agents/trellis-implement.md +0 -109
  228. package/dist/templates/cursor/agents/trellis-research.md +0 -136
  229. package/dist/templates/droid/droids/trellis-check.md +0 -107
  230. package/dist/templates/droid/droids/trellis-implement.md +0 -102
  231. package/dist/templates/droid/droids/trellis-research.md +0 -137
  232. package/dist/templates/dsh/agents/trellis-check.md +0 -99
  233. package/dist/templates/dsh/agents/trellis-implement.md +0 -106
  234. package/dist/templates/dsh/agents/trellis-research.md +0 -134
  235. package/dist/templates/gemini/agents/trellis-check.md +0 -107
  236. package/dist/templates/gemini/agents/trellis-implement.md +0 -102
  237. package/dist/templates/gemini/agents/trellis-research.md +0 -136
  238. package/dist/templates/grok/agents/trellis-check.md +0 -105
  239. package/dist/templates/grok/agents/trellis-implement.md +0 -116
  240. package/dist/templates/grok/agents/trellis-research.md +0 -146
  241. package/dist/templates/grok/index.d.ts +0 -16
  242. package/dist/templates/grok/index.d.ts.map +0 -1
  243. package/dist/templates/grok/index.js +0 -19
  244. package/dist/templates/grok/index.js.map +0 -1
  245. package/dist/templates/kimi/agents/trellis-check.md +0 -103
  246. package/dist/templates/kimi/agents/trellis-implement.md +0 -115
  247. package/dist/templates/kimi/agents/trellis-research.md +0 -144
  248. package/dist/templates/kimi/index.d.ts +0 -20
  249. package/dist/templates/kimi/index.d.ts.map +0 -1
  250. package/dist/templates/kimi/index.js +0 -23
  251. package/dist/templates/kimi/index.js.map +0 -1
  252. package/dist/templates/kiro/agents/trellis-check.json +0 -26
  253. package/dist/templates/kiro/agents/trellis-implement.json +0 -26
  254. package/dist/templates/kiro/agents/trellis-research.json +0 -30
  255. package/dist/templates/omp/agents/trellis-check.md +0 -41
  256. package/dist/templates/omp/agents/trellis-implement.md +0 -45
  257. package/dist/templates/omp/agents/trellis-research.md +0 -30
  258. package/dist/templates/opencode/agents/trellis-check.md +0 -122
  259. package/dist/templates/opencode/agents/trellis-implement.md +0 -118
  260. package/dist/templates/opencode/agents/trellis-research.md +0 -145
  261. package/dist/templates/opencode/plugins/inject-subagent-context.js +0 -569
  262. package/dist/templates/pi/agents/trellis-check.md +0 -37
  263. package/dist/templates/pi/agents/trellis-implement.md +0 -42
  264. package/dist/templates/pi/agents/trellis-research.md +0 -25
  265. package/dist/templates/qoder/agents/trellis-check.md +0 -108
  266. package/dist/templates/qoder/agents/trellis-implement.md +0 -103
  267. package/dist/templates/qoder/agents/trellis-research.md +0 -137
  268. package/dist/templates/reasonix/agents/trellis-check.md +0 -36
  269. package/dist/templates/reasonix/agents/trellis-implement.md +0 -41
  270. package/dist/templates/reasonix/index.d.ts +0 -13
  271. package/dist/templates/reasonix/index.d.ts.map +0 -1
  272. package/dist/templates/reasonix/index.js +0 -16
  273. package/dist/templates/reasonix/index.js.map +0 -1
  274. package/dist/templates/shared-hooks/inject-subagent-context.py +0 -1217
  275. package/dist/templates/snow/agents/trellis-check.md +0 -135
  276. package/dist/templates/snow/agents/trellis-implement.md +0 -153
  277. package/dist/templates/snow/agents/trellis-research.md +0 -114
  278. package/dist/templates/snow/hooks/beforeSubAgentStart.json +0 -15
  279. package/dist/templates/trae/agents/trellis-check.md +0 -108
  280. package/dist/templates/trae/agents/trellis-implement.md +0 -103
  281. package/dist/templates/trae/agents/trellis-research.md +0 -137
  282. package/dist/templates/zcode/agents/trellis-check.md +0 -109
  283. package/dist/templates/zcode/agents/trellis-implement.md +0 -111
  284. package/dist/templates/zcode/agents/trellis-research.md +0 -133
@@ -1,27 +1,6 @@
1
- /**
2
- * Kimi Code configurator.
3
- *
4
- * Kimi Code is a class-2 pull-based platform (agentCapable, no hooks, no
5
- * project-level settings/extensions). Two output paths:
6
- * - `.agents/skills/` — workflow + bundled skills, written via the NEUTRAL
7
- * resolver so the files stay byte-identical to Codex/Gemini/Pi writes into
8
- * the same shared root (Kimi discovers `.agents/skills/` natively).
9
- * - `.kimi-code/skills/` — Kimi-private entry points: the user-invocable
10
- * commands as skills (`/skill:trellis-start`, `/skill:trellis-continue`,
11
- * `/skill:trellis-finish-work`) plus the Trellis agent prompts
12
- * (trellis-implement / trellis-check / trellis-research) with the
13
- * pull-based prelude on implement/check.
14
- * - `.kimi-code/agents/` — the same Trellis agent prompts as project-level
15
- * custom sub-agent definitions (Claude Code-compatible frontmatter), so
16
- * the main session can dispatch `trellis-<name>` sub-agents directly.
17
- *
18
- * Trellis does not generate project-local Kimi settings or hooks.
19
- * Project-local Kimi settings go in `.kimi-code/local.toml`; hooks are
20
- * configured in `$KIMI_CODE_HOME/config.toml`.
21
- */
1
+ /** Main-session platform assets and native context entry points. */
22
2
  import { AI_TOOLS } from "../types/ai-tools.js";
23
- import { getAllAgents } from "../templates/kimi/index.js";
24
- import { applyPullBasedPreludeMarkdown, collectSkillTemplates, resolveAllAsSkills, resolveBundledSkills, resolveSkillsNeutral, } from "./shared.js";
3
+ import { collectSkillTemplates, resolveAllAsSkills, resolveBundledSkills, resolveSkillsNeutral, } from "./shared.js";
25
4
  /**
26
5
  * Command templates that become user-invocable Kimi skills
27
6
  * (`/skill:trellis-<name>`). Kimi has no slash-command mechanism besides
@@ -38,11 +17,6 @@ function resolveKimiCommandSkills() {
38
17
  const ctx = AI_TOOLS.kimi.templateContext;
39
18
  return resolveAllAsSkills(ctx).filter((skill) => KIMI_COMMAND_SKILL_NAMES.has(skill.name));
40
19
  }
41
- /** Trellis agent prompts as Kimi skills (and `.kimi-code/agents/` sub-agent
42
- * definitions), with the pull-based prelude on implement/check. */
43
- function resolveKimiAgentSkills() {
44
- return applyPullBasedPreludeMarkdown(getAllAgents());
45
- }
46
20
  /**
47
21
  * The Kimi Code file set — written at init and diffed by `trellis update`.
48
22
  */
@@ -54,21 +28,11 @@ export function collectKimiTemplates() {
54
28
  for (const [filePath, content] of collectSkillTemplates(".agents/skills", resolveSkillsNeutral(ctx), resolveBundledSkills(ctx))) {
55
29
  files.set(filePath, content);
56
30
  }
57
- // 2. Commands-as-skills + Trellis agent prompts → `.kimi-code/skills/`.
58
- const agentPrompts = resolveKimiAgentSkills();
59
31
  for (const [filePath, content] of collectSkillTemplates(".kimi-code/skills", [
60
32
  ...resolveKimiCommandSkills(),
61
- ...agentPrompts,
62
33
  ])) {
63
34
  files.set(filePath, content);
64
35
  }
65
- // 3. Custom sub-agent definitions → `.kimi-code/agents/`. Kimi Code
66
- // discovers project-level agents there (Claude Code-compatible
67
- // frontmatter); content mirrors the skill copies, pull-based prelude
68
- // included, so dispatching `trellis-<name>` directly behaves the same.
69
- for (const agent of agentPrompts) {
70
- files.set(`.kimi-code/agents/${agent.name}.md`, agent.content);
71
- }
72
36
  return files;
73
37
  }
74
38
  //# sourceMappingURL=kimi.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"kimi.js","sourceRoot":"","sources":["../../src/configurators/kimi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EACL,6BAA6B,EAC7B,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,GAErB,MAAM,aAAa,CAAC;AAErB;;;;GAIG;AACH,MAAM,wBAAwB,GAAG,IAAI,GAAG,CAAC;IACvC,eAAe;IACf,kBAAkB;IAClB,qBAAqB;CACtB,CAAC,CAAC;AAEH;+EAC+E;AAC/E,SAAS,wBAAwB;IAC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,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -1,11 +1,3 @@
1
- /**
2
- * The Kiro Code file set — written at init and diffed by `trellis update`.
3
- * Kiro's configDir is ".kiro/skills"; agents and hooks go under ".kiro/".
4
- * - skills/trellis-{name}/SKILL.md — all templates as auto-triggered skills
5
- * - agents/{name}.json — main `trellis` agent (per-turn workflow-state +
6
- * session-start hooks) plus 3 sub-agents (agentSpawn → inject-subagent-context)
7
- * - hooks/*.py — shared hook scripts (referenced by agent JSON / .kiro.hook)
8
- * - hooks/*.kiro.hook — IDE hook definitions (promptSubmit → inject-workflow-state)
9
- */
1
+ /** Main-session platform assets and native context entry points. */
10
2
  export declare function collectKiroTemplates(): Map<string, string>;
11
3
  //# sourceMappingURL=kiro.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"kiro.d.ts","sourceRoot":"","sources":["../../src/configurators/kiro.ts"],"names":[],"mappings":"AAUA;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAuB1D"}
1
+ {"version":3,"file":"kiro.d.ts","sourceRoot":"","sources":["../../src/configurators/kiro.ts"],"names":[],"mappings":"AAUA,oEAAoE;AACpE,wBAAgB,oBAAoB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAuB1D"}
@@ -1,15 +1,7 @@
1
1
  import { AI_TOOLS } from "../types/ai-tools.js";
2
2
  import { resolvePlaceholders, resolveAllAsSkills, resolveBundledSkills, collectSkillTemplates, collectSharedHooks, } from "./shared.js";
3
3
  import { getAllAgents, getIdeHooks } from "../templates/kiro/index.js";
4
- /**
5
- * The Kiro Code file set — written at init and diffed by `trellis update`.
6
- * Kiro's configDir is ".kiro/skills"; agents and hooks go under ".kiro/".
7
- * - skills/trellis-{name}/SKILL.md — all templates as auto-triggered skills
8
- * - agents/{name}.json — main `trellis` agent (per-turn workflow-state +
9
- * session-start hooks) plus 3 sub-agents (agentSpawn → inject-subagent-context)
10
- * - hooks/*.py — shared hook scripts (referenced by agent JSON / .kiro.hook)
11
- * - hooks/*.kiro.hook — IDE hook definitions (promptSubmit → inject-workflow-state)
12
- */
4
+ /** Main-session platform assets and native context entry points. */
13
5
  export function collectKiroTemplates() {
14
6
  const files = new Map();
15
7
  const ctx = AI_TOOLS.kiro.templateContext;
@@ -1 +1 @@
1
- {"version":3,"file":"kiro.js","sourceRoot":"","sources":["../../src/configurators/kiro.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEvE;;;;;;;;GAQG;AACH,MAAM,UAAU,oBAAoB;IAClC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;IACxC,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC;IAC1C,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,qBAAqB,CACrD,cAAc,EACd,kBAAkB,CAAC,GAAG,CAAC,EACvB,oBAAoB,CAAC,GAAG,CAAC,CAC1B,EAAE,CAAC;QACF,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IACD,KAAK,MAAM,KAAK,IAAI,YAAY,EAAE,EAAE,CAAC;QACnC,KAAK,CAAC,GAAG,CACP,gBAAgB,KAAK,CAAC,IAAI,OAAO,EACjC,mBAAmB,CAAC,KAAK,CAAC,OAAO,CAAC,CACnC,CAAC;IACJ,CAAC;IACD,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,kBAAkB,CAAC,aAAa,EAAE,MAAM,CAAC,EAAE,C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,EAAE,MAAM,CAAC,EAAE,CAAC;QAC/D,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,KAAK,MAAM,IAAI,IAAI,WAAW,EAAE,EAAE,CAAC;QACjC,KAAK,CAAC,GAAG,CAAC,eAAe,IAAI,CAAC,IAAI,EAAE,EAAE,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IAC3E,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"omp.d.ts","sourceRoot":"","sources":["../../src/configurators/omp.ts"],"names":[],"mappings":"AAWA;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAkCzD"}
1
+ {"version":3,"file":"omp.d.ts","sourceRoot":"","sources":["../../src/configurators/omp.ts"],"names":[],"mappings":"AAWA;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CA6BzD"}
@@ -1,6 +1,6 @@
1
1
  import { AI_TOOLS } from "../types/ai-tools.js";
2
2
  import { collectSkillTemplates, replacePythonCommandLiterals, resolveCommands, resolveBundledSkills, resolveSkills, wrapWithOmpFrontmatter, } from "./shared.js";
3
- import { getAllAgents, getExtensionTemplate } from "../templates/omp/index.js";
3
+ import { getExtensionTemplate } from "../templates/omp/index.js";
4
4
  /**
5
5
  * The OMP file set — written at init and diffed by `trellis update`.
6
6
  * OMP has no settings.json — the native provider auto-discovers all capabilities.
@@ -17,10 +17,6 @@ export function collectOmpTemplates() {
17
17
  for (const [filePath, content] of collectSkillTemplates(".omp/skills", resolveSkills(ctx), resolveBundledSkills(ctx))) {
18
18
  files.set(filePath, content);
19
19
  }
20
- // Agents (class-1: no pull-based prelude)
21
- for (const agent of getAllAgents()) {
22
- files.set(`.omp/agents/${agent.name}.md`, agent.content);
23
- }
24
20
  // Extension
25
21
  files.set(".omp/extensions/trellis/index.ts", replacePythonCommandLiterals(getExtensionTemplate()));
26
22
  return files;
@@ -1 +1 @@
1
- {"version":3,"file":"omp.js","sourceRoot":"","sources":["../../src/configurators/omp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,qBAAqB,EACrB,4BAA4B,EAC5B,eAAe,EACf,oBAAoB,EACpB,aAAa,EACb,sBAAsB,GACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAE/E;;;GAGG;AACH,MAAM,UAAU,mBAAmB;IACjC,MAAM,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC;IAC5B,MAAM,GAAG,GAAG,MAAM,CAAC,eAAe,CAAC;IACnC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;IAExC,4BAA4B;IAC5B,KAAK,MAAM,OAAO,IAAI,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC;QAC3C,KAAK,CAAC,GAAG,CACP,yBAAyB,OAAO,CAAC,IAAI,KAAK,EAC1C,sBAAsB,CAAC,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CACtD,CAAC;IACJ,CAAC;IAED,wBAAwB;IACxB,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,qBAAqB,CACrD,aAAa,EACb,aAAa,CAAC,GAAG,CAAC,EAClB,oBAAoB,CAAC,GAAG,CAAC,CAC1B,EAAE,CAAC;QACF,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAED,0CAA0C;IAC1C,KAAK,MAAM,KAAK,IAAI,YAAY,EAAE,EAAE,CAAC;QACnC,KAAK,CAAC,GAAG,CAAC,eAAe,KAAK,CAAC,IAAI,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED,YAAY;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 +1 @@
1
- {"version":3,"file":"pi.d.ts","sourceRoot":"","sources":["../../src/configurators/pi.ts"],"names":[],"mappings":"AA6BA;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAiCxD"}
1
+ {"version":3,"file":"pi.d.ts","sourceRoot":"","sources":["../../src/configurators/pi.ts"],"names":[],"mappings":"AA2BA;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CA6BxD"}
@@ -1,6 +1,6 @@
1
1
  import { AI_TOOLS } from "../types/ai-tools.js";
2
- import { applyPullBasedPreludeMarkdown, collectSkillTemplates, resolveCommands, resolveBundledSkills, resolvePlaceholders, resolveSkillsNeutral, } from "./shared.js";
3
- import { getAllAgents, getExtensionTemplate, getSettingsTemplate, } from "../templates/pi/index.js";
2
+ import { collectSkillTemplates, resolveCommands, resolveBundledSkills, resolvePlaceholders, resolveSkillsNeutral, } from "./shared.js";
3
+ import { getExtensionTemplate, getSettingsTemplate, } from "../templates/pi/index.js";
4
4
  function resolvePiCommands() {
5
5
  const ctx = AI_TOOLS.pi.templateContext;
6
6
  const commands = resolveCommands(ctx);
@@ -28,9 +28,6 @@ export function collectPiTemplates() {
28
28
  for (const [filePath, content] of collectSkillTemplates(".agents/skills", resolveSkillsNeutral(ctx), resolveBundledSkills(ctx))) {
29
29
  files.set(filePath, content);
30
30
  }
31
- for (const agent of applyPullBasedPreludeMarkdown(getAllAgents())) {
32
- files.set(`.pi/agents/${agent.name}.md`, agent.content);
33
- }
34
31
  files.set(".pi/extensions/trellis/index.ts", getExtensionTemplate());
35
32
  const settings = getSettingsTemplate();
36
33
  files.set(`.pi/${settings.targetPath}`, resolvePlaceholders(settings.content));
@@ -1 +1 @@
1
- {"version":3,"file":"pi.js","sourceRoot":"","sources":["../../src/configurators/pi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AA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der file set — written at init and diffed by `trellis update`.
3
- *
4
- * Qoder is a pull-based class-2 platform. Custom Commands require YAML
5
- * frontmatter with `name` + `description` and use a flat layout, so
6
- * session-boundary commands get wrapped via `wrapWithCommandFrontmatter`;
7
- * auto-trigger workflows stay as plain skills. `inject-subagent-context.py` is
8
- * excluded because Qoder's hook can't inject sub-agent prompts — sub-agents
9
- * pull task context themselves.
10
- */
1
+ /** Main-session platform assets and native context entry points. */
11
2
  export declare function collectQoderTemplates(): Map<string, string>;
12
3
  //# sourceMappingURL=qoder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"qoder.d.ts","sourceRoot":"","sources":["../../src/configurators/qoder.ts"],"names":[],"mappings":"AAWA;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAsB3D"}
1
+ {"version":3,"file":"qoder.d.ts","sourceRoot":"","sources":["../../src/configurators/qoder.ts"],"names":[],"mappings":"AAUA,oEAAoE;AACpE,wBAAgB,qBAAqB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAmB3D"}
@@ -1,25 +1,13 @@
1
1
  import path from "node:path";
2
2
  import { AI_TOOLS } from "../types/ai-tools.js";
3
- import { resolvePlaceholders, wrapWithCommandFrontmatter, collectBothTemplates, collectSharedHooks, applyPullBasedPreludeMarkdown, } from "./shared.js";
4
- import { getAllAgents, getSettingsTemplate } from "../templates/qoder/index.js";
5
- /**
6
- * The Qoder file set — written at init and diffed by `trellis update`.
7
- *
8
- * Qoder is a pull-based class-2 platform. Custom Commands require YAML
9
- * frontmatter with `name` + `description` and use a flat layout, so
10
- * session-boundary commands get wrapped via `wrapWithCommandFrontmatter`;
11
- * auto-trigger workflows stay as plain skills. `inject-subagent-context.py` is
12
- * excluded because Qoder's hook can't inject sub-agent prompts — sub-agents
13
- * pull task context themselves.
14
- */
3
+ import { resolvePlaceholders, wrapWithCommandFrontmatter, collectBothTemplates, collectSharedHooks, } from "./shared.js";
4
+ import { getSettingsTemplate } from "../templates/qoder/index.js";
5
+ /** Main-session platform assets and native context entry points. */
15
6
  export function collectQoderTemplates() {
16
7
  const files = collectBothTemplates(AI_TOOLS.qoder.templateContext, (n) => `.qoder/commands/trellis-${n}.md`, ".qoder/skills", (filePath, content) => {
17
8
  const name = path.basename(filePath, ".md");
18
9
  return wrapWithCommandFrontmatter(name, content);
19
10
  });
20
- for (const agent of applyPullBasedPreludeMarkdown(getAllAgents())) {
21
- files.set(`.qoder/agents/${agent.name}.md`, agent.content);
22
- }
23
11
  for (const [k, v] of collectSharedHooks(".qoder/hooks", "qoder")) {
24
12
  files.set(k, v);
25
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"qoder.js","sourceRoot":"","sources":["../../src/configurators/qoder.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,oBAAoB,EACpB,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAEhF;;;;;;;;;GASG;AACH,MAAM,UAAU,qBAAqB;IACnC,MAAM,KAAK,GAAG,oBAAoB,CAChC,QAAQ,CAAC,KAAK,CAAC,eAAe,EAC9B,CAAC,CAAC,EAAE,EAAE,CAAC,2BAA2B,CAAC,KAAK,EACxC,eAAe,EACf,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE;QACpB,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;QAC5C,OAAO,0BAA0B,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC,CACF,CAAC;IACF,KAAK,MAAM,KAAK,IAAI,6BAA6B,CAAC,YAAY,EAAE,CAAC,EAAE,CAAC;QAClE,K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,CAAC,cAAc,EAAE,OAAO,CAAC,EAAE,CAAC;QACjE,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,MAAM,QAAQ,GAAG,mBAAmB,EAAE,CAAC;IACvC,KAAK,CAAC,GAAG,CACP,UAAU,QAAQ,CAAC,UAAU,EAAE,EAC/B,mBAAmB,CAAC,QAAQ,CAAC,OAAO,CAAC,CACtC,CAAC;IACF,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -1,15 +1,4 @@
1
- /**
2
- * Reasonix configurator.
3
- *
4
- * Reasonix (DeepSeek-Reasonix) stores skills as `.reasonix/skills/<name>/SKILL.md`
5
- * with YAML frontmatter (name + description). Slash commands are code-built-in,
6
- * so no commands directory is generated.
7
- *
8
- * Workflow templates are surfaced as skills with `trellis-` prefix (invocable
9
- * via `/skill trellis-start`, `/skill trellis-continue`, etc.).
10
- * Subagent skills (trellis-implement, trellis-check) use `runAs: subagent`
11
- * frontmatter so Reasonix spawns them as isolated subagent loops.
12
- */
1
+ /** Main-session platform assets and native context entry points. */
13
2
  /**
14
3
  * The Reasonix file set — written at init and diffed by `trellis update`.
15
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"reasonix.d.ts","sourceRoot":"","sources":["../../src/configurators/reasonix.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAUH;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CA0B9D"}
1
+ {"version":3,"file":"reasonix.d.ts","sourceRoot":"","sources":["../../src/configurators/reasonix.ts"],"names":[],"mappings":"AAAA,oEAAoE;AASpE;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAiB9D"}
@@ -1,17 +1,5 @@
1
- /**
2
- * Reasonix configurator.
3
- *
4
- * Reasonix (DeepSeek-Reasonix) stores skills as `.reasonix/skills/<name>/SKILL.md`
5
- * with YAML frontmatter (name + description). Slash commands are code-built-in,
6
- * so no commands directory is generated.
7
- *
8
- * Workflow templates are surfaced as skills with `trellis-` prefix (invocable
9
- * via `/skill trellis-start`, `/skill trellis-continue`, etc.).
10
- * Subagent skills (trellis-implement, trellis-check) use `runAs: subagent`
11
- * frontmatter so Reasonix spawns them as isolated subagent loops.
12
- */
1
+ /** Main-session platform assets and native context entry points. */
13
2
  import { AI_TOOLS } from "../types/ai-tools.js";
14
- import { getAllAgents } from "../templates/reasonix/index.js";
15
3
  import { collectSkillTemplates, resolveAllAsSkills, resolveBundledSkills, } from "./shared.js";
16
4
  /**
17
5
  * The Reasonix file set — written at init and diffed by `trellis update`.
@@ -20,18 +8,11 @@ export function collectReasonixTemplates() {
20
8
  const config = AI_TOOLS.reasonix;
21
9
  const ctx = config.templateContext;
22
10
  const files = new Map();
23
- // Subagent skill names that replace common-skill equivalents.
24
- const agentNames = new Set(getAllAgents().map((a) => a.name));
25
- // Workflow skills filtered to avoid collision with subagent skills.
26
- const skills = resolveAllAsSkills(ctx).filter((s) => !agentNames.has(s.name));
11
+ // The ordinary check method shares its historical role path.
12
+ const skills = resolveAllAsSkills(ctx);
27
13
  for (const [filePath, content] of collectSkillTemplates(".reasonix/skills", skills, resolveBundledSkills(ctx))) {
28
14
  files.set(filePath, content);
29
15
  }
30
- // Subagent skills (trellis-implement, trellis-check) — written with
31
- // runAs: subagent frontmatter for isolated subagent loops.
32
- for (const agent of getAllAgents()) {
33
- files.set(`.reasonix/skills/${agent.name}/SKILL.md`, agent.content);
34
- }
35
16
  return files;
36
17
  }
37
18
  //# sourceMappingURL=reasonix.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reasonix.js","sourceRoot":"","sources":["../../src/configurators/reasonix.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OA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GACrB,MAAM,aAAa,CAAC;AAErB;;GAEG;AACH,MAAM,UAAU,wBAAwB;IACtC,MAAM,MAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC;IACjC,MAAM,GAAG,GAAG,MAAM,CAAC,eAAe,CAAC;IACnC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;IAExC,6DAA6D;IAC7D,MAAM,MAAM,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAC;IAEvC,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,qBAAqB,CACrD,kBAAkB,EAClB,MAAM,EACN,oBAAoB,CAAC,GAAG,CAAC,CAC1B,EAAE,CAAC;QACF,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -58,7 +58,7 @@ export declare function resolvePlaceholders(content: string, context?: TemplateC
58
58
  * "last-writer-wins" collision when both Codex and Gemini target
59
59
  * `.agents/skills/`.
60
60
  *
61
- * `{{CLI_FLAG}}`, `{{EXECUTOR_AI}}`, `{{USER_ACTION_LABEL}}`, conditionals,
61
+ * `{{CLI_FLAG}}`, `{{USER_ACTION_LABEL}}`, conditionals,
62
62
  * and `{{PYTHON_CMD}}` are still resolved from the platform context. The
63
63
  * shared skills do not use those placeholders, so they remain platform-
64
64
  * neutral. Codex-only skill files (e.g. `trellis-continue/SKILL.md`,
@@ -161,27 +161,4 @@ export declare function collectSharedHooks(hooksPath: string, platform: SharedHo
161
161
  /** Collect commands + skills for "both" platforms (a commands directory plus
162
162
  * a skills root). */
163
163
  export declare function collectBothTemplates(ctx: TemplateContext, cmdPath: (name: string) => string, skillRoot: string, wrapCmd?: (filePath: string, content: string) => string): Map<string, string>;
164
- export type SubAgentType = "implement" | "check";
165
- /** Build the standard "load Trellis context first" prelude block. */
166
- export declare function buildPullBasedPrelude(agentType: SubAgentType): string;
167
- /** Insert prelude into a markdown agent definition (after YAML frontmatter). */
168
- export declare function injectPullBasedPreludeMarkdown(content: string, agentType: SubAgentType): string;
169
- /** Insert prelude into a TOML agent (codex `developer_instructions`). */
170
- export declare function injectPullBasedPreludeToml(content: string, agentType: SubAgentType): string;
171
- /** Best-effort detect agent type from filename ("trellis-implement.md" → "implement").
172
- * Returns null for research and unknown names — they skip the prelude.
173
- */
174
- export declare function detectSubAgentType(name: string): SubAgentType | null;
175
- /** Shared transform: given a list of agents, prepend pull-based prelude to
176
- * implement/check definitions. Used by both configurator (init-time write)
177
- * and collectPlatformTemplates (update-time hash comparison) so the two
178
- * code paths always agree on what's on disk.
179
- */
180
- export interface AgentContent {
181
- name: string;
182
- content: string;
183
- }
184
- export declare function applyPullBasedPreludeMarkdown(agents: readonly AgentContent[]): AgentContent[];
185
- export declare function normalizeCopilotMarkdownAgents(agents: readonly AgentContent[]): AgentContent[];
186
- export declare function applyPullBasedPreludeToml(agents: readonly AgentContent[]): AgentContent[];
187
164
  //# sourceMappingURL=shared.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/configurators/shared.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACvC;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAiBD,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAG1D;AAED,iEAAiE;AACjE,wBAAgB,0BAA0B,IAAI,IAAI,CAEjD;AAED;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CACzC,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,GACzB,MAAM,CAMR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CASpE;AA2CD,wBAAgB,mBAAmB,CACjC,OAAO,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B,oBAAoB,CAClC,GAAG,EAAE,eAAe,GACnB,iBAAiB,EAAE,CAOrB;AAMD,wEAAwE;AACxE,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,EAAE,EACpD,aAAa,GAAE,SAAS,iBAAiB,EAAO,GAC/C,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CASrB;AAWD,2EAA2E;AAC3E,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACzB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAMrB;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACzB,OAAO,CAAC,IAAI,CAAC,CAMf;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,kBAAkB,GAC3B,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAMrB;AAED;sBACsB;AACtB,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,eAAe,EACpB,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,EACjC,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,MAAM,GACtD,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAcrB"}
@@ -69,22 +69,20 @@ export function replacePythonCommandLiterals(content) {
69
69
  *
70
70
  * When called with a TemplateContext, additionally resolves:
71
71
  * - {{CMD_REF:name}} → platform-specific command reference
72
- * - {{EXECUTOR_AI}} → AI executor description
73
72
  * - {{USER_ACTION_LABEL}} → user action label
74
73
  * - {{CLI_FLAG}} → platform cli flag (e.g. "claude", "codex")
75
74
  * - {{#FLAG}}...{{/FLAG}} → conditional include (when FLAG is true)
76
75
  * - {{^FLAG}}...{{/FLAG}} → negated conditional (when FLAG is false)
77
76
  *
78
- * Supported conditional flags: AGENT_CAPABLE, HAS_HOOKS
77
+ * Supported conditional flags: HAS_HOOKS
79
78
  */
80
79
  // Pre-compiled regexes for placeholder resolution
81
80
  const RE_PYTHON_CMD = /\{\{PYTHON_CMD\}\}/g;
82
81
  const RE_CMD_REF = /\{\{CMD_REF:([\w][\w-]*)\}\}/g;
83
- const RE_EXECUTOR_AI = /\{\{EXECUTOR_AI\}\}/g;
84
82
  const RE_USER_ACTION_LABEL = /\{\{USER_ACTION_LABEL\}\}/g;
85
83
  const RE_CLI_FLAG = /\{\{CLI_FLAG\}\}/g;
86
84
  const RE_BLANK_LINES = /\n{3,}/g;
87
- const CONDITIONAL_FLAGS = ["AGENT_CAPABLE", "HAS_HOOKS"];
85
+ const CONDITIONAL_FLAGS = ["HAS_HOOKS"];
88
86
  const CONDITIONAL_REGEXES = Object.fromEntries(CONDITIONAL_FLAGS.map((flag) => [
89
87
  flag,
90
88
  {
@@ -98,12 +96,10 @@ export function resolvePlaceholders(content, context) {
98
96
  return result;
99
97
  // Simple substitutions
100
98
  result = result.replace(RE_CMD_REF, (_match, name) => `${context.cmdRefPrefix}${name}`);
101
- result = result.replace(RE_EXECUTOR_AI, context.executorAI);
102
99
  result = result.replace(RE_USER_ACTION_LABEL, context.userActionLabel);
103
100
  result = result.replace(RE_CLI_FLAG, context.cliFlag);
104
101
  // Conditional blocks
105
102
  const flagValues = {
106
- AGENT_CAPABLE: context.agentCapable,
107
103
  HAS_HOOKS: context.hasHooks,
108
104
  };
109
105
  for (const flag of CONDITIONAL_FLAGS) {
@@ -134,7 +130,7 @@ export function resolvePlaceholders(content, context) {
134
130
  * "last-writer-wins" collision when both Codex and Gemini target
135
131
  * `.agents/skills/`.
136
132
  *
137
- * `{{CLI_FLAG}}`, `{{EXECUTOR_AI}}`, `{{USER_ACTION_LABEL}}`, conditionals,
133
+ * `{{CLI_FLAG}}`, `{{USER_ACTION_LABEL}}`, conditionals,
138
134
  * and `{{PYTHON_CMD}}` are still resolved from the platform context. The
139
135
  * shared skills do not use those placeholders, so they remain platform-
140
136
  * neutral. Codex-only skill files (e.g. `trellis-continue/SKILL.md`,
@@ -148,13 +144,11 @@ export function resolvePlaceholdersNeutral(content, context) {
148
144
  return result;
149
145
  // Neutral form for the only collision-causing placeholder
150
146
  result = result.replace(RE_CMD_REF, (_match, name) => `\`${name}\` (Trellis command)`);
151
- result = result.replace(RE_EXECUTOR_AI, context.executorAI);
152
147
  result = result.replace(RE_USER_ACTION_LABEL, context.userActionLabel);
153
148
  result = result.replace(RE_CLI_FLAG, context.cliFlag);
154
149
  // Conditional blocks (resolved per platform — none of the auto-triggered
155
150
  // shared skills use conditionals, but Codex-only command-as-skill files might in future).
156
151
  const flagValues = {
157
- AGENT_CAPABLE: context.agentCapable,
158
152
  HAS_HOOKS: context.hasHooks,
159
153
  };
160
154
  for (const flag of CONDITIONAL_FLAGS) {
@@ -254,24 +248,9 @@ import path from "node:path";
254
248
  import { ensureDir, writeFile } from "../utils/file-writer.js";
255
249
  import { getBundledSkillTemplates, getCommandTemplates, getSkillTemplates, } from "../templates/common/index.js";
256
250
  import { getSharedHookScriptsForPlatform, } from "../templates/shared-hooks/index.js";
257
- /**
258
- * Filter command templates based on platform capabilities.
259
- *
260
- * `start.md` is stripped only on platforms that are BOTH `agentCapable` AND
261
- * `hasHooks` — those platforms (Claude Code, Cursor, Kiro, Gemini, Qoder,
262
- * CodeBuddy, Copilot, Droid, Pi) have a SessionStart-style hook that
263
- * auto-injects the workflow overview, so a user-facing `start` would be
264
- * redundant.
265
- *
266
- * `agentCapable && !hasHooks` platforms (Codex, ZCode, OpenCode, Reasonix, Grok)
267
- * have no such hook (or use an out-of-band plugin), so they need the
268
- * user-invocable `trellis-start` skill / `start.md` command as fallback.
269
- * Snow is class-1 (`hasHooks: true`) with auto inject + project agents.
270
- * Agent-less platforms (Kilo, Antigravity, Devin) also keep `start` since
271
- * they rely entirely on user-triggered workflows.
272
- */
251
+ /** Hosts with startup hooks load context automatically; others retain start. */
273
252
  function filterCommands(templates, ctx) {
274
- if (ctx.agentCapable && ctx.hasHooks) {
253
+ if (ctx.hasHooks) {
275
254
  return templates.filter((t) => t.name !== "start");
276
255
  }
277
256
  return templates;
@@ -428,162 +407,4 @@ export function collectBothTemplates(ctx, cmdPath, skillRoot, wrapCmd) {
428
407
  }
429
408
  return files;
430
409
  }
431
- /** Build the standard "load Trellis context first" prelude block. */
432
- export function buildPullBasedPrelude(agentType) {
433
- // JSONL filenames stay as implement.jsonl / check.jsonl — they are internal
434
- // context buckets keyed by role (not by platform-visible agent name).
435
- const jsonl = agentType === "check" ? "check.jsonl" : "implement.jsonl";
436
- return replacePythonCommandLiterals(`## Required: Load Trellis Context First
437
-
438
- This platform does NOT auto-inject task context via hook. Before doing anything else, you MUST load context yourself.
439
-
440
- ### Step 1: Find the active task path
441
-
442
- Try in order — stop at the first one that yields a task path:
443
-
444
- 1. **Look at the dispatch prompt** you received from the main agent. If its first line is \`Active task: <path>\` (e.g. \`Active task: .trellis/tasks/04-17-foo\`), use that path. The main agent is required to include this line on class-2 platforms.
445
- 2. **Run** \`python3 ./.trellis/scripts/task.py current --source\` and read the \`Current task:\` line.
446
- 3. **If both fail** (no \`Active task:\` line in the prompt and \`task.py current\` returns no task), ask the user which task to work on; do NOT guess.
447
-
448
- ### Step 2: Load task context from the resolved path
449
-
450
- 1. Read \`<task-path>/${jsonl}\` — JSONL list of spec/research files relevant to this agent.
451
- 2. For each entry in the JSONL, Read its \`file\` path — these are the specs and research notes you must follow.
452
- **Skip rows without a \`"file"\` field** (e.g. \`{"_example": "..."}\` placeholder rows left over from an older \`task.py create\`).
453
- 3. Read the task's \`prd.md\` (requirements), then \`design.md\` if present (technical design), then \`implement.md\` if present (execution plan).
454
-
455
- If \`${jsonl}\` has no curated entries (empty, only a placeholder row, or the file is missing), fall back to: read the task artifacts, list available specs with \`python3 ./.trellis/scripts/get_context.py --mode packages\`, and pick the specs that match the task domain yourself. Do NOT block on the missing jsonl — lightweight tasks may be PRD-only, while complex tasks may also include \`design.md\` and \`implement.md\`.
456
-
457
- If the resolved task path has no \`prd.md\`, ask the user what to work on; do NOT proceed without context.
458
-
459
- ---
460
-
461
- `);
462
- }
463
- /** Insert prelude into a markdown agent definition (after YAML frontmatter). */
464
- export function injectPullBasedPreludeMarkdown(content, agentType) {
465
- const prelude = buildPullBasedPrelude(agentType);
466
- const sections = splitMarkdownFrontmatter(content);
467
- if (!sections) {
468
- return prelude + content;
469
- }
470
- const head = `---\n${sections.frontmatter}\n---`;
471
- const tailTrimmed = sections.body.replace(/^(\r?\n)+/, "");
472
- return `${head}\n\n${prelude}${tailTrimmed}`;
473
- }
474
- /** Insert prelude into a TOML agent (codex `developer_instructions`). */
475
- export function injectPullBasedPreludeToml(content, agentType) {
476
- const prelude = buildPullBasedPrelude(agentType);
477
- // Match: developer_instructions = """ followed by newline
478
- const re = /(developer_instructions\s*=\s*""")(\r?\n)/;
479
- if (!re.test(content)) {
480
- return content;
481
- }
482
- return content.replace(re, `$1$2${prelude}`);
483
- }
484
- /** Best-effort detect agent type from filename ("trellis-implement.md" → "implement").
485
- * Returns null for research and unknown names — they skip the prelude.
486
- */
487
- export function detectSubAgentType(name) {
488
- const base = name.replace(/\.(md|toml|prompt\.md)$/, "");
489
- if (base === "trellis-implement" || base === "trellis-check") {
490
- return base === "trellis-implement" ? "implement" : "check";
491
- }
492
- return null;
493
- }
494
- function splitMarkdownFrontmatter(content) {
495
- const match = content.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?/);
496
- if (!match) {
497
- return null;
498
- }
499
- return {
500
- frontmatter: match[1],
501
- body: content.slice(match[0].length),
502
- };
503
- }
504
- export function applyPullBasedPreludeMarkdown(agents) {
505
- return agents.map((a) => {
506
- const t = detectSubAgentType(a.name);
507
- if (!t)
508
- return { ...a };
509
- return {
510
- ...a,
511
- content: injectPullBasedPreludeMarkdown(a.content, t),
512
- };
513
- });
514
- }
515
- function mapLegacyToolToCopilot(tool) {
516
- switch (tool) {
517
- case "Read":
518
- return ["read"];
519
- case "Write":
520
- case "Edit":
521
- return ["edit"];
522
- case "Glob":
523
- case "Grep":
524
- return ["search"];
525
- case "Bash":
526
- return ["execute"];
527
- // Generic MCP wildcard — used by trellis-research to opt into "any MCP
528
- // tool the user has configured" without locking the source template to a
529
- // specific provider. Claude Code parses wildcards as glob-match-at-runtime
530
- // (no silent agent-registration skip if nothing matches), so this is the
531
- // safe default; explicit `mcp__exa__*` names would silent-skip the agent
532
- // when the Exa MCP server is absent (#302).
533
- case "mcp__*":
534
- return ["web", "exa/*", "chrome-devtools/*"];
535
- case "mcp__exa__web_search_exa":
536
- case "mcp__exa__get_code_context_exa":
537
- return ["web", "exa/*"];
538
- case "mcp__chrome-devtools__*":
539
- return ["chrome-devtools/*"];
540
- case "Skill":
541
- return [];
542
- default:
543
- return [];
544
- }
545
- }
546
- function normalizeCopilotMarkdownAgentFrontmatter(content) {
547
- const sections = splitMarkdownFrontmatter(content);
548
- if (!sections) {
549
- return content;
550
- }
551
- const frontmatter = sections.frontmatter.split(/\r?\n/);
552
- const body = sections.body;
553
- const normalized = [];
554
- for (const line of frontmatter) {
555
- if (!line.startsWith("tools:")) {
556
- normalized.push(line);
557
- continue;
558
- }
559
- const legacyTools = line
560
- .slice("tools:".length)
561
- .split(",")
562
- .map((token) => token.trim())
563
- .filter((token) => token.length > 0);
564
- const tools = [...new Set(legacyTools.flatMap(mapLegacyToolToCopilot))];
565
- normalized.push("tools:");
566
- for (const tool of tools) {
567
- normalized.push(` - ${tool}`);
568
- }
569
- }
570
- return `---\n${normalized.join("\n")}\n---\n${body}`;
571
- }
572
- export function normalizeCopilotMarkdownAgents(agents) {
573
- return agents.map((agent) => ({
574
- ...agent,
575
- content: normalizeCopilotMarkdownAgentFrontmatter(agent.content),
576
- }));
577
- }
578
- export function applyPullBasedPreludeToml(agents) {
579
- return agents.map((a) => {
580
- const t = detectSubAgentType(a.name);
581
- if (!t)
582
- return { ...a };
583
- return {
584
- ...a,
585
- content: injectPullBasedPreludeToml(a.content, t),
586
- };
587
- });
588
- }
589
410
  //# sourceMappingURL=shared.js.map