@pennixrv/trellis 0.7.2-beta.3 → 0.7.2-beta.30

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 (476) hide show
  1. package/README.md +14 -0
  2. package/dist/cli/index.js +4 -0
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/commands/ablate.d.ts.map +1 -1
  5. package/dist/commands/ablate.js +13 -0
  6. package/dist/commands/ablate.js.map +1 -1
  7. package/dist/commands/init.d.ts +2 -0
  8. package/dist/commands/init.d.ts.map +1 -1
  9. package/dist/commands/init.js +138 -120
  10. package/dist/commands/init.js.map +1 -1
  11. package/dist/commands/teamwork/adapters/acp.d.ts.map +1 -1
  12. package/dist/commands/teamwork/adapters/acp.js +3 -0
  13. package/dist/commands/teamwork/adapters/acp.js.map +1 -1
  14. package/dist/commands/teamwork/adapters/index.d.ts +1 -1
  15. package/dist/commands/teamwork/adapters/index.d.ts.map +1 -1
  16. package/dist/commands/teamwork/artifact.d.ts +2 -0
  17. package/dist/commands/teamwork/artifact.d.ts.map +1 -1
  18. package/dist/commands/teamwork/artifact.js +4 -2
  19. package/dist/commands/teamwork/artifact.js.map +1 -1
  20. package/dist/commands/teamwork/batch-reservation.d.ts.map +1 -1
  21. package/dist/commands/teamwork/batch-reservation.js +16 -8
  22. package/dist/commands/teamwork/batch-reservation.js.map +1 -1
  23. package/dist/commands/teamwork/batch.d.ts +15 -1
  24. package/dist/commands/teamwork/batch.d.ts.map +1 -1
  25. package/dist/commands/teamwork/batch.js +279 -24
  26. package/dist/commands/teamwork/batch.js.map +1 -1
  27. package/dist/commands/teamwork/coordinator.d.ts +3 -0
  28. package/dist/commands/teamwork/coordinator.d.ts.map +1 -1
  29. package/dist/commands/teamwork/coordinator.js +22 -3
  30. package/dist/commands/teamwork/coordinator.js.map +1 -1
  31. package/dist/commands/teamwork/create.d.ts +1 -0
  32. package/dist/commands/teamwork/create.d.ts.map +1 -1
  33. package/dist/commands/teamwork/create.js +4 -0
  34. package/dist/commands/teamwork/create.js.map +1 -1
  35. package/dist/commands/teamwork/evidence-references.d.ts +19 -0
  36. package/dist/commands/teamwork/evidence-references.d.ts.map +1 -0
  37. package/dist/commands/teamwork/evidence-references.js +249 -0
  38. package/dist/commands/teamwork/evidence-references.js.map +1 -0
  39. package/dist/commands/teamwork/foreground-wait.d.ts +4 -1
  40. package/dist/commands/teamwork/foreground-wait.d.ts.map +1 -1
  41. package/dist/commands/teamwork/foreground-wait.js +15 -1
  42. package/dist/commands/teamwork/foreground-wait.js.map +1 -1
  43. package/dist/commands/teamwork/index.d.ts.map +1 -1
  44. package/dist/commands/teamwork/index.js +47 -5
  45. package/dist/commands/teamwork/index.js.map +1 -1
  46. package/dist/commands/teamwork/list.d.ts +1 -0
  47. package/dist/commands/teamwork/list.d.ts.map +1 -1
  48. package/dist/commands/teamwork/list.js +4 -1
  49. package/dist/commands/teamwork/list.js.map +1 -1
  50. package/dist/commands/teamwork/prompt.js +1 -1
  51. package/dist/commands/teamwork/prompt.js.map +1 -1
  52. package/dist/commands/teamwork/rm.d.ts +27 -4
  53. package/dist/commands/teamwork/rm.d.ts.map +1 -1
  54. package/dist/commands/teamwork/rm.js +155 -51
  55. package/dist/commands/teamwork/rm.js.map +1 -1
  56. package/dist/commands/teamwork/run.d.ts.map +1 -1
  57. package/dist/commands/teamwork/run.js +10 -1
  58. package/dist/commands/teamwork/run.js.map +1 -1
  59. package/dist/commands/teamwork/runtime.d.ts +1 -1
  60. package/dist/commands/teamwork/runtime.d.ts.map +1 -1
  61. package/dist/commands/teamwork/runtime.js +14 -4
  62. package/dist/commands/teamwork/runtime.js.map +1 -1
  63. package/dist/commands/teamwork/spawn.d.ts.map +1 -1
  64. package/dist/commands/teamwork/spawn.js +4 -1
  65. package/dist/commands/teamwork/spawn.js.map +1 -1
  66. package/dist/commands/teamwork/supervisor/stdout.d.ts.map +1 -1
  67. package/dist/commands/teamwork/supervisor/stdout.js +7 -0
  68. package/dist/commands/teamwork/supervisor/stdout.js.map +1 -1
  69. package/dist/commands/teamwork/supervisor.d.ts +1 -1
  70. package/dist/commands/teamwork/supervisor.d.ts.map +1 -1
  71. package/dist/commands/teamwork/teammate-adapters.d.ts +3 -0
  72. package/dist/commands/teamwork/teammate-adapters.d.ts.map +1 -1
  73. package/dist/commands/teamwork/teammate-adapters.js +14 -5
  74. package/dist/commands/teamwork/teammate-adapters.js.map +1 -1
  75. package/dist/commands/teamwork/teammate-launch.d.ts +3 -1
  76. package/dist/commands/teamwork/teammate-launch.d.ts.map +1 -1
  77. package/dist/commands/teamwork/teammate-launch.js +7 -5
  78. package/dist/commands/teamwork/teammate-launch.js.map +1 -1
  79. package/dist/commands/teamwork/workers.d.ts +8 -0
  80. package/dist/commands/teamwork/workers.d.ts.map +1 -0
  81. package/dist/commands/teamwork/workers.js +67 -0
  82. package/dist/commands/teamwork/workers.js.map +1 -0
  83. package/dist/commands/update.d.ts.map +1 -1
  84. package/dist/commands/update.js +188 -59
  85. package/dist/commands/update.js.map +1 -1
  86. package/dist/commands/workflow.d.ts.map +1 -1
  87. package/dist/commands/workflow.js +5 -7
  88. package/dist/commands/workflow.js.map +1 -1
  89. package/dist/configurators/codebuddy.d.ts +1 -8
  90. package/dist/configurators/codebuddy.d.ts.map +1 -1
  91. package/dist/configurators/codebuddy.js +2 -12
  92. package/dist/configurators/codebuddy.js.map +1 -1
  93. package/dist/configurators/codex.d.ts +0 -36
  94. package/dist/configurators/codex.d.ts.map +1 -1
  95. package/dist/configurators/codex.js +13 -106
  96. package/dist/configurators/codex.js.map +1 -1
  97. package/dist/configurators/copilot.d.ts +1 -12
  98. package/dist/configurators/copilot.d.ts.map +1 -1
  99. package/dist/configurators/copilot.js +2 -20
  100. package/dist/configurators/copilot.js.map +1 -1
  101. package/dist/configurators/cursor.d.ts +1 -8
  102. package/dist/configurators/cursor.d.ts.map +1 -1
  103. package/dist/configurators/cursor.js +2 -12
  104. package/dist/configurators/cursor.js.map +1 -1
  105. package/dist/configurators/droid.d.ts +1 -8
  106. package/dist/configurators/droid.d.ts.map +1 -1
  107. package/dist/configurators/droid.js +2 -12
  108. package/dist/configurators/droid.js.map +1 -1
  109. package/dist/configurators/dsh.d.ts +1 -21
  110. package/dist/configurators/dsh.d.ts.map +1 -1
  111. package/dist/configurators/dsh.js +4 -37
  112. package/dist/configurators/dsh.js.map +1 -1
  113. package/dist/configurators/gemini.d.ts +1 -16
  114. package/dist/configurators/gemini.d.ts.map +1 -1
  115. package/dist/configurators/gemini.js +3 -21
  116. package/dist/configurators/gemini.js.map +1 -1
  117. package/dist/configurators/grok.d.ts +1 -12
  118. package/dist/configurators/grok.d.ts.map +1 -1
  119. package/dist/configurators/grok.js +2 -18
  120. package/dist/configurators/grok.js.map +1 -1
  121. package/dist/configurators/kimi.d.ts +1 -21
  122. package/dist/configurators/kimi.d.ts.map +1 -1
  123. package/dist/configurators/kimi.js +2 -38
  124. package/dist/configurators/kimi.js.map +1 -1
  125. package/dist/configurators/kiro.d.ts +1 -9
  126. package/dist/configurators/kiro.d.ts.map +1 -1
  127. package/dist/configurators/kiro.js +1 -9
  128. package/dist/configurators/kiro.js.map +1 -1
  129. package/dist/configurators/omp.d.ts.map +1 -1
  130. package/dist/configurators/omp.js +1 -5
  131. package/dist/configurators/omp.js.map +1 -1
  132. package/dist/configurators/pi.d.ts.map +1 -1
  133. package/dist/configurators/pi.js +2 -5
  134. package/dist/configurators/pi.js.map +1 -1
  135. package/dist/configurators/qoder.d.ts +1 -10
  136. package/dist/configurators/qoder.d.ts.map +1 -1
  137. package/dist/configurators/qoder.js +3 -15
  138. package/dist/configurators/qoder.js.map +1 -1
  139. package/dist/configurators/reasonix.d.ts +1 -12
  140. package/dist/configurators/reasonix.d.ts.map +1 -1
  141. package/dist/configurators/reasonix.js +3 -22
  142. package/dist/configurators/reasonix.js.map +1 -1
  143. package/dist/configurators/shared.d.ts +1 -24
  144. package/dist/configurators/shared.d.ts.map +1 -1
  145. package/dist/configurators/shared.js +5 -184
  146. package/dist/configurators/shared.js.map +1 -1
  147. package/dist/configurators/snow.d.ts +1 -20
  148. package/dist/configurators/snow.d.ts.map +1 -1
  149. package/dist/configurators/snow.js +2 -25
  150. package/dist/configurators/snow.js.map +1 -1
  151. package/dist/configurators/trae.d.ts +1 -14
  152. package/dist/configurators/trae.d.ts.map +1 -1
  153. package/dist/configurators/trae.js +3 -19
  154. package/dist/configurators/trae.js.map +1 -1
  155. package/dist/configurators/workflow.d.ts +5 -0
  156. package/dist/configurators/workflow.d.ts.map +1 -1
  157. package/dist/configurators/workflow.js +85 -57
  158. package/dist/configurators/workflow.js.map +1 -1
  159. package/dist/configurators/zcode.d.ts +1 -13
  160. package/dist/configurators/zcode.d.ts.map +1 -1
  161. package/dist/configurators/zcode.js +2 -18
  162. package/dist/configurators/zcode.js.map +1 -1
  163. package/dist/migrations/manifests/0.5.0-beta.5.json +1 -212
  164. package/dist/migrations/manifests/0.7.2-beta.10.json +9 -0
  165. package/dist/migrations/manifests/0.7.2-beta.11.json +9 -0
  166. package/dist/migrations/manifests/0.7.2-beta.12.json +9 -0
  167. package/dist/migrations/manifests/0.7.2-beta.13.json +9 -0
  168. package/dist/migrations/manifests/0.7.2-beta.14.json +9 -0
  169. package/dist/migrations/manifests/0.7.2-beta.15.json +9 -0
  170. package/dist/migrations/manifests/0.7.2-beta.16.json +9 -0
  171. package/dist/migrations/manifests/0.7.2-beta.17.json +9 -0
  172. package/dist/migrations/manifests/0.7.2-beta.18.json +9 -0
  173. package/dist/migrations/manifests/0.7.2-beta.19.json +11 -0
  174. package/dist/migrations/manifests/0.7.2-beta.20.json +9 -0
  175. package/dist/migrations/manifests/0.7.2-beta.21.json +9 -0
  176. package/dist/migrations/manifests/0.7.2-beta.22.json +9 -0
  177. package/dist/migrations/manifests/0.7.2-beta.23.json +9 -0
  178. package/dist/migrations/manifests/0.7.2-beta.24.json +8 -0
  179. package/dist/migrations/manifests/0.7.2-beta.25.json +8 -0
  180. package/dist/migrations/manifests/0.7.2-beta.26.json +8 -0
  181. package/dist/migrations/manifests/0.7.2-beta.27.json +8 -0
  182. package/dist/migrations/manifests/0.7.2-beta.28.json +8 -0
  183. package/dist/migrations/manifests/0.7.2-beta.29.json +8 -0
  184. package/dist/migrations/manifests/0.7.2-beta.30.json +10 -0
  185. package/dist/migrations/manifests/0.7.2-beta.4.json +9 -0
  186. package/dist/migrations/manifests/0.7.2-beta.5.json +9 -0
  187. package/dist/migrations/manifests/0.7.2-beta.6.json +9 -0
  188. package/dist/migrations/manifests/0.7.2-beta.7.json +9 -0
  189. package/dist/migrations/manifests/0.7.2-beta.8.json +9 -0
  190. package/dist/migrations/manifests/0.7.2-beta.9.json +9 -0
  191. package/dist/migrations/retired-native-paths.d.ts +109 -0
  192. package/dist/migrations/retired-native-paths.d.ts.map +1 -0
  193. package/dist/migrations/retired-native-paths.js +263 -0
  194. package/dist/migrations/retired-native-paths.js.map +1 -0
  195. package/dist/templates/claude/index.d.ts +1 -16
  196. package/dist/templates/claude/index.d.ts.map +1 -1
  197. package/dist/templates/claude/index.js +5 -32
  198. package/dist/templates/claude/index.js.map +1 -1
  199. package/dist/templates/claude/settings.json +0 -22
  200. package/dist/templates/codebuddy/index.d.ts +2 -3
  201. package/dist/templates/codebuddy/index.d.ts.map +1 -1
  202. package/dist/templates/codebuddy/index.js +2 -3
  203. package/dist/templates/codebuddy/index.js.map +1 -1
  204. package/dist/templates/codebuddy/settings.json +0 -10
  205. package/dist/templates/codex/config.toml +4 -19
  206. package/dist/templates/codex/hooks/session-start.py +25 -30
  207. package/dist/templates/codex/hooks/turn-guard.py +67 -0
  208. package/dist/templates/codex/hooks.json +57 -6
  209. package/dist/templates/codex/index.d.ts +0 -5
  210. package/dist/templates/codex/index.d.ts.map +1 -1
  211. package/dist/templates/codex/index.js +0 -13
  212. package/dist/templates/codex/index.js.map +1 -1
  213. package/dist/templates/common/bundled-skills/trellis-decision-space-construction-and-merging/SKILL.md +2 -0
  214. package/dist/templates/common/bundled-skills/trellis-decision-space-construction-and-merging/workflow.md +13 -3
  215. package/dist/templates/common/bundled-skills/trellis-delivery-review-and-closeout/SKILL.md +2 -0
  216. package/dist/templates/common/bundled-skills/trellis-delivery-review-and-closeout/workflow.md +17 -9
  217. package/dist/templates/common/bundled-skills/trellis-goal-exploration-and-requirements/SKILL.md +2 -0
  218. package/dist/templates/common/bundled-skills/trellis-goal-exploration-and-requirements/workflow.md +7 -3
  219. package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +7 -7
  220. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-agents.md +9 -51
  221. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-context-loading.md +3 -15
  222. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-hooks.md +1 -2
  223. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/bundled-skills.md +1 -1
  224. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/context-injection.md +4 -9
  225. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/generated-files.md +2 -2
  226. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/multi-agent-teamwork.md +6 -0
  227. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/overview.md +1 -1
  228. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/spec-system.md +10 -8
  229. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/agents.md +9 -79
  230. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/hooks-and-settings.md +2 -4
  231. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/overview.md +3 -6
  232. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/platform-map.md +24 -103
  233. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/skills-and-commands.md +1 -1
  234. package/dist/templates/common/bundled-skills/trellis-session-insight/SKILL.md +1 -1
  235. package/dist/templates/common/bundled-skills/trellis-solution-design-and-convergence/SKILL.md +2 -0
  236. package/dist/templates/common/bundled-skills/trellis-solution-design-and-convergence/workflow.md +27 -6
  237. package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/SKILL.md +9 -7
  238. package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/mcp-setup.md +12 -84
  239. package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/repository-analysis.md +5 -25
  240. package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/spec-task-planning.md +5 -9
  241. package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/spec-writing.md +8 -0
  242. package/dist/templates/common/bundled-skills/trellis-task-implementation/SKILL.md +2 -0
  243. package/dist/templates/common/bundled-skills/trellis-task-implementation/workflow.md +5 -3
  244. package/dist/templates/common/bundled-skills/trellis-teamwork/SKILL.md +8 -1
  245. package/dist/templates/common/bundled-skills/trellis-teamwork/references/teammate-processes.md +21 -1
  246. package/dist/templates/common/bundled-skills/trellis-teamwork/references/teamwork-plan-construction.md +13 -2
  247. package/dist/templates/common/bundled-skills/trellis-worktree-delegation/SKILL.md +14 -0
  248. package/dist/templates/common/bundled-skills/trellis-worktree-delegation/workflow.md +82 -0
  249. package/dist/templates/common/commands/continue.md +16 -1
  250. package/dist/templates/common/commands/start.md +2 -0
  251. package/dist/templates/common/skills/before-dev.md +3 -1
  252. package/dist/templates/common/skills/check.md +3 -1
  253. package/dist/templates/common/skills/request-intake.md +14 -1
  254. package/dist/templates/copilot/hooks/session-start.py +11 -30
  255. package/dist/templates/cursor/hooks.json +0 -7
  256. package/dist/templates/cursor/index.d.ts +1 -11
  257. package/dist/templates/cursor/index.d.ts.map +1 -1
  258. package/dist/templates/cursor/index.js +2 -10
  259. package/dist/templates/cursor/index.js.map +1 -1
  260. package/dist/templates/droid/index.d.ts +2 -3
  261. package/dist/templates/droid/index.d.ts.map +1 -1
  262. package/dist/templates/droid/index.js +2 -3
  263. package/dist/templates/droid/index.js.map +1 -1
  264. package/dist/templates/droid/settings.json +0 -10
  265. package/dist/templates/dsh/DSH.md +2 -33
  266. package/dist/templates/dsh/index.d.ts +1 -19
  267. package/dist/templates/dsh/index.d.ts.map +1 -1
  268. package/dist/templates/dsh/index.js +2 -21
  269. package/dist/templates/dsh/index.js.map +1 -1
  270. package/dist/templates/gemini/index.d.ts +1 -11
  271. package/dist/templates/gemini/index.d.ts.map +1 -1
  272. package/dist/templates/gemini/index.js +2 -10
  273. package/dist/templates/gemini/index.js.map +1 -1
  274. package/dist/templates/kiro/index.d.ts +1 -13
  275. package/dist/templates/kiro/index.d.ts.map +1 -1
  276. package/dist/templates/kiro/index.js +1 -13
  277. package/dist/templates/kiro/index.js.map +1 -1
  278. package/dist/templates/markdown/agents.md +9 -14
  279. package/dist/templates/markdown/index.d.ts +1 -0
  280. package/dist/templates/markdown/index.d.ts.map +1 -1
  281. package/dist/templates/markdown/index.js +1 -0
  282. package/dist/templates/markdown/index.js.map +1 -1
  283. package/dist/templates/markdown/spec/index.md.txt +20 -0
  284. package/dist/templates/omp/extensions/trellis/index.ts.txt +27 -60
  285. package/dist/templates/omp/index.d.ts +0 -2
  286. package/dist/templates/omp/index.d.ts.map +1 -1
  287. package/dist/templates/omp/index.js +1 -4
  288. package/dist/templates/omp/index.js.map +1 -1
  289. package/dist/templates/opencode/lib/session-utils.js +17 -5
  290. package/dist/templates/opencode/lib/trellis-context.js +12 -321
  291. package/dist/templates/opencode/plugins/inject-shell-session-context.js +93 -0
  292. package/dist/templates/opencode/plugins/inject-workflow-state.js +19 -17
  293. package/dist/templates/opencode/plugins/session-start.js +2 -6
  294. package/dist/templates/pi/extensions/trellis/index.ts.txt +17 -1436
  295. package/dist/templates/pi/index.d.ts +1 -2
  296. package/dist/templates/pi/index.d.ts.map +1 -1
  297. package/dist/templates/pi/index.js +2 -5
  298. package/dist/templates/pi/index.js.map +1 -1
  299. package/dist/templates/qoder/index.d.ts +2 -3
  300. package/dist/templates/qoder/index.d.ts.map +1 -1
  301. package/dist/templates/qoder/index.js +2 -3
  302. package/dist/templates/qoder/index.js.map +1 -1
  303. package/dist/templates/shared-hooks/guard-teamwork-wait.py +118 -12
  304. package/dist/templates/shared-hooks/index.d.ts +2 -56
  305. package/dist/templates/shared-hooks/index.d.ts.map +1 -1
  306. package/dist/templates/shared-hooks/index.js +4 -70
  307. package/dist/templates/shared-hooks/index.js.map +1 -1
  308. package/dist/templates/shared-hooks/inject-shell-session-context.py +27 -1
  309. package/dist/templates/shared-hooks/inject-spec-context.py +6 -35
  310. package/dist/templates/shared-hooks/inject-workflow-state.py +62 -104
  311. package/dist/templates/shared-hooks/session-start.py +8 -6
  312. package/dist/templates/snow/SNOW.md +6 -18
  313. package/dist/templates/snow/hooks/write-trellis-context.py +51 -133
  314. package/dist/templates/snow/index.d.ts +2 -21
  315. package/dist/templates/snow/index.d.ts.map +1 -1
  316. package/dist/templates/snow/index.js +3 -24
  317. package/dist/templates/snow/index.js.map +1 -1
  318. package/dist/templates/template-utils.d.ts +1 -2
  319. package/dist/templates/template-utils.d.ts.map +1 -1
  320. package/dist/templates/template-utils.js +1 -11
  321. package/dist/templates/template-utils.js.map +1 -1
  322. package/dist/templates/trae/index.d.ts +2 -3
  323. package/dist/templates/trae/index.d.ts.map +1 -1
  324. package/dist/templates/trae/index.js +2 -3
  325. package/dist/templates/trae/index.js.map +1 -1
  326. package/dist/templates/trellis/agents/delegated-worktree-primary-agent.md +22 -22
  327. package/dist/templates/trellis/agents/teammate.md +6 -2
  328. package/dist/templates/trellis/agents/worktree-delegation-node.md +30 -0
  329. package/dist/templates/trellis/config.yaml +7 -36
  330. package/dist/templates/trellis/gitignore.txt +4 -0
  331. package/dist/templates/trellis/index.d.ts +1 -0
  332. package/dist/templates/trellis/index.d.ts.map +1 -1
  333. package/dist/templates/trellis/index.js +9 -0
  334. package/dist/templates/trellis/index.js.map +1 -1
  335. package/dist/templates/trellis/scripts/common/active_task.py +23 -31
  336. package/dist/templates/trellis/scripts/common/config.py +16 -36
  337. package/dist/templates/trellis/scripts/common/git_context.py +13 -4
  338. package/dist/templates/trellis/scripts/common/io.py +2 -2
  339. package/dist/templates/trellis/scripts/common/markdown_format.py +107 -0
  340. package/dist/templates/trellis/scripts/common/packages_context.py +29 -1
  341. package/dist/templates/trellis/scripts/common/session_context.py +25 -50
  342. package/dist/templates/trellis/scripts/common/task_context.py +5 -3
  343. package/dist/templates/trellis/scripts/common/task_continuity.py +66 -9
  344. package/dist/templates/trellis/scripts/common/task_move.py +11 -5
  345. package/dist/templates/trellis/scripts/common/task_runtime.py +211 -0
  346. package/dist/templates/trellis/scripts/common/task_store.py +8 -78
  347. package/dist/templates/trellis/scripts/common/task_turn.py +514 -0
  348. package/dist/templates/trellis/scripts/common/task_workflow.py +380 -395
  349. package/dist/templates/trellis/scripts/common/workflow_phase.py +3 -36
  350. package/dist/templates/trellis/scripts/common/workflow_selection.py +35 -40
  351. package/dist/templates/trellis/scripts/common/worktree_delegation.py +690 -0
  352. package/dist/templates/trellis/scripts/common/worktree_delegation_contract.py +446 -0
  353. package/dist/templates/trellis/scripts/common/worktree_delegation_messages.py +376 -0
  354. package/dist/templates/trellis/scripts/common/worktree_delegation_transport.py +57 -0
  355. package/dist/templates/trellis/scripts/markdown_format.py +40 -0
  356. package/dist/templates/trellis/scripts/task.py +73 -10
  357. package/dist/templates/trellis/workflow.md +48 -9
  358. package/dist/templates/zcode/config.json +0 -10
  359. package/dist/templates/zcode/index.d.ts +3 -22
  360. package/dist/templates/zcode/index.d.ts.map +1 -1
  361. package/dist/templates/zcode/index.js +3 -24
  362. package/dist/templates/zcode/index.js.map +1 -1
  363. package/dist/types/ai-tools.d.ts +0 -4
  364. package/dist/types/ai-tools.d.ts.map +1 -1
  365. package/dist/types/ai-tools.js +4 -109
  366. package/dist/types/ai-tools.js.map +1 -1
  367. package/dist/utils/ablation-store.d.ts.map +1 -1
  368. package/dist/utils/ablation-store.js +41 -1
  369. package/dist/utils/ablation-store.js.map +1 -1
  370. package/dist/utils/asset-backup.d.ts +1 -0
  371. package/dist/utils/asset-backup.d.ts.map +1 -1
  372. package/dist/utils/asset-backup.js +131 -31
  373. package/dist/utils/asset-backup.js.map +1 -1
  374. package/dist/utils/atomic-write.d.ts +1 -1
  375. package/dist/utils/atomic-write.d.ts.map +1 -1
  376. package/dist/utils/atomic-write.js +8 -2
  377. package/dist/utils/atomic-write.js.map +1 -1
  378. package/dist/utils/codex-config-ownership.d.ts +13 -0
  379. package/dist/utils/codex-config-ownership.d.ts.map +1 -0
  380. package/dist/utils/codex-config-ownership.js +64 -0
  381. package/dist/utils/codex-config-ownership.js.map +1 -0
  382. package/dist/utils/file-writer.d.ts +2 -0
  383. package/dist/utils/file-writer.d.ts.map +1 -1
  384. package/dist/utils/file-writer.js +1 -1
  385. package/dist/utils/file-writer.js.map +1 -1
  386. package/dist/utils/managed-markdown.d.ts +5 -0
  387. package/dist/utils/managed-markdown.d.ts.map +1 -0
  388. package/dist/utils/managed-markdown.js +64 -0
  389. package/dist/utils/managed-markdown.js.map +1 -0
  390. package/dist/utils/managed-removal.d.ts +2 -0
  391. package/dist/utils/managed-removal.d.ts.map +1 -1
  392. package/dist/utils/managed-removal.js +62 -8
  393. package/dist/utils/managed-removal.js.map +1 -1
  394. package/dist/utils/manifest-prune.d.ts.map +1 -1
  395. package/dist/utils/manifest-prune.js +5 -12
  396. package/dist/utils/manifest-prune.js.map +1 -1
  397. package/dist/utils/project-init.d.ts +26 -0
  398. package/dist/utils/project-init.d.ts.map +1 -0
  399. package/dist/utils/project-init.js +484 -0
  400. package/dist/utils/project-init.js.map +1 -0
  401. package/dist/utils/retired-native-assets.d.ts +17 -0
  402. package/dist/utils/retired-native-assets.d.ts.map +1 -0
  403. package/dist/utils/retired-native-assets.js +221 -0
  404. package/dist/utils/retired-native-assets.js.map +1 -0
  405. package/dist/utils/uninstall-scrubbers.d.ts.map +1 -1
  406. package/dist/utils/uninstall-scrubbers.js +6 -12
  407. package/dist/utils/uninstall-scrubbers.js.map +1 -1
  408. package/package.json +2 -2
  409. package/dist/templates/claude/agents/trellis-check.md +0 -115
  410. package/dist/templates/claude/agents/trellis-implement.md +0 -110
  411. package/dist/templates/claude/agents/trellis-research.md +0 -137
  412. package/dist/templates/codebuddy/agents/trellis-check.md +0 -115
  413. package/dist/templates/codebuddy/agents/trellis-implement.md +0 -110
  414. package/dist/templates/codebuddy/agents/trellis-research.md +0 -137
  415. package/dist/templates/codex/agents/trellis-check.toml +0 -56
  416. package/dist/templates/codex/agents/trellis-implement.toml +0 -37
  417. package/dist/templates/codex/agents/trellis-research.toml +0 -78
  418. package/dist/templates/cursor/agents/trellis-check.md +0 -114
  419. package/dist/templates/cursor/agents/trellis-implement.md +0 -109
  420. package/dist/templates/cursor/agents/trellis-research.md +0 -136
  421. package/dist/templates/droid/droids/trellis-check.md +0 -107
  422. package/dist/templates/droid/droids/trellis-implement.md +0 -102
  423. package/dist/templates/droid/droids/trellis-research.md +0 -137
  424. package/dist/templates/dsh/agents/trellis-check.md +0 -99
  425. package/dist/templates/dsh/agents/trellis-implement.md +0 -106
  426. package/dist/templates/dsh/agents/trellis-research.md +0 -134
  427. package/dist/templates/gemini/agents/trellis-check.md +0 -107
  428. package/dist/templates/gemini/agents/trellis-implement.md +0 -102
  429. package/dist/templates/gemini/agents/trellis-research.md +0 -136
  430. package/dist/templates/grok/agents/trellis-check.md +0 -105
  431. package/dist/templates/grok/agents/trellis-implement.md +0 -116
  432. package/dist/templates/grok/agents/trellis-research.md +0 -146
  433. package/dist/templates/grok/index.d.ts +0 -16
  434. package/dist/templates/grok/index.d.ts.map +0 -1
  435. package/dist/templates/grok/index.js +0 -19
  436. package/dist/templates/grok/index.js.map +0 -1
  437. package/dist/templates/kimi/agents/trellis-check.md +0 -103
  438. package/dist/templates/kimi/agents/trellis-implement.md +0 -115
  439. package/dist/templates/kimi/agents/trellis-research.md +0 -144
  440. package/dist/templates/kimi/index.d.ts +0 -20
  441. package/dist/templates/kimi/index.d.ts.map +0 -1
  442. package/dist/templates/kimi/index.js +0 -23
  443. package/dist/templates/kimi/index.js.map +0 -1
  444. package/dist/templates/kiro/agents/trellis-check.json +0 -26
  445. package/dist/templates/kiro/agents/trellis-implement.json +0 -26
  446. package/dist/templates/kiro/agents/trellis-research.json +0 -30
  447. package/dist/templates/omp/agents/trellis-check.md +0 -41
  448. package/dist/templates/omp/agents/trellis-implement.md +0 -45
  449. package/dist/templates/omp/agents/trellis-research.md +0 -30
  450. package/dist/templates/opencode/agents/trellis-check.md +0 -122
  451. package/dist/templates/opencode/agents/trellis-implement.md +0 -118
  452. package/dist/templates/opencode/agents/trellis-research.md +0 -145
  453. package/dist/templates/opencode/plugins/inject-subagent-context.js +0 -569
  454. package/dist/templates/pi/agents/trellis-check.md +0 -37
  455. package/dist/templates/pi/agents/trellis-implement.md +0 -42
  456. package/dist/templates/pi/agents/trellis-research.md +0 -25
  457. package/dist/templates/qoder/agents/trellis-check.md +0 -108
  458. package/dist/templates/qoder/agents/trellis-implement.md +0 -103
  459. package/dist/templates/qoder/agents/trellis-research.md +0 -137
  460. package/dist/templates/reasonix/agents/trellis-check.md +0 -36
  461. package/dist/templates/reasonix/agents/trellis-implement.md +0 -41
  462. package/dist/templates/reasonix/index.d.ts +0 -13
  463. package/dist/templates/reasonix/index.d.ts.map +0 -1
  464. package/dist/templates/reasonix/index.js +0 -16
  465. package/dist/templates/reasonix/index.js.map +0 -1
  466. package/dist/templates/shared-hooks/inject-subagent-context.py +0 -1217
  467. package/dist/templates/snow/agents/trellis-check.md +0 -135
  468. package/dist/templates/snow/agents/trellis-implement.md +0 -153
  469. package/dist/templates/snow/agents/trellis-research.md +0 -114
  470. package/dist/templates/snow/hooks/beforeSubAgentStart.json +0 -15
  471. package/dist/templates/trae/agents/trellis-check.md +0 -108
  472. package/dist/templates/trae/agents/trellis-implement.md +0 -103
  473. package/dist/templates/trae/agents/trellis-research.md +0 -137
  474. package/dist/templates/zcode/agents/trellis-check.md +0 -109
  475. package/dist/templates/zcode/agents/trellis-implement.md +0 -111
  476. package/dist/templates/zcode/agents/trellis-research.md +0 -133
@@ -1,100 +1,10 @@
1
- import fs from "node:fs";
2
1
  import path from "node:path";
3
2
  import { AI_TOOLS } from "../types/ai-tools.js";
4
- import { getAllAgents, getAllHooks, getConfigTemplate, getHooksConfig, } from "../templates/codex/index.js";
5
- import { ensureDir } from "../utils/file-writer.js";
3
+ import { getAllHooks, getConfigTemplate, getHooksConfig, } from "../templates/codex/index.js";
4
+ import { ensureDir, recordWrite } from "../utils/file-writer.js";
5
+ import { writeFileAtomic } from "../utils/atomic-write.js";
6
+ import { CODEX_CONFIG_PATH, readCodexConfig, } from "../utils/codex-config-ownership.js";
6
7
  import { resolvePlaceholders, resolveAllAsSkillsNeutral, resolveBundledSkills, collectSkillTemplates, collectSharedHooks, renderTemplateMap, writeTemplateMap, } from "./shared.js";
7
- /**
8
- * Extract user-set `model` / `model_reasoning_effort` top-level keys from an
9
- * existing `trellis-*.toml` agent profile. Only matches uncommented
10
- * `key = "value"` lines (the static template's `# model = "..."` hint lines
11
- * never match). Not a general TOML parser — these files are known-flat with
12
- * no `[section]` headers.
13
- */
14
- export function extractCodexAgentModelKeys(existingContent) {
15
- const result = {};
16
- let inMultilineString = false;
17
- for (const rawLine of existingContent.split(/\r?\n/)) {
18
- const trimmed = rawLine.trim();
19
- if (inMultilineString) {
20
- // Multi-line basic strings end with a line containing `"""`. Body text
21
- // (e.g. developer_instructions) may itself contain lines that look
22
- // like `model = "..."` — never extract from inside the string.
23
- if (trimmed.includes('"""'))
24
- inMultilineString = false;
25
- continue;
26
- }
27
- // Detect the start of a multi-line basic string: `key = """...` where
28
- // the string isn't also closed on the same line.
29
- if (/^[A-Za-z_][A-Za-z0-9_-]*\s*=\s*"""/.test(trimmed)) {
30
- const tripleQuoteCount = (trimmed.match(/"""/g) ?? []).length;
31
- if (tripleQuoteCount < 2)
32
- inMultilineString = true;
33
- continue;
34
- }
35
- const m = trimmed.match(/^(model|model_reasoning_effort)\s*=\s*"((?:[^"\\]|\\.)*)"\s*(?:#.*)?$/);
36
- if (!m)
37
- continue;
38
- const key = m[1];
39
- result[key] = tomlUnescape(m[2] ?? "");
40
- }
41
- return result;
42
- }
43
- /** Escape a value for embedding in a double-quoted TOML string. */
44
- function tomlEscape(value) {
45
- return value.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
46
- }
47
- /** Reverse of {@link tomlEscape} for values captured from an existing file. */
48
- function tomlUnescape(value) {
49
- return value.replace(/\\"/g, '"').replace(/\\\\/g, "\\");
50
- }
51
- /**
52
- * Re-insert preserved `model` / `model_reasoning_effort` keys right after
53
- * `sandbox_mode = "..."` in a freshly rendered `trellis-*.toml` agent
54
- * profile. Unset keys omit the corresponding line entirely (Codex falls
55
- * back through spawn value -> `[agents]` default -> parent). The fresh
56
- * template content never contains these keys itself (only commented
57
- * hints), so no de-dup pass is needed before inserting.
58
- */
59
- export function applyCodexAgentModelKeys(freshContent, preserved) {
60
- const lines = [];
61
- if (preserved.model) {
62
- lines.push(`model = "${tomlEscape(preserved.model)}"`);
63
- }
64
- if (preserved.model_reasoning_effort) {
65
- lines.push(`model_reasoning_effort = "${tomlEscape(preserved.model_reasoning_effort)}"`);
66
- }
67
- if (lines.length === 0) {
68
- return freshContent;
69
- }
70
- return freshContent.replace(/^(sandbox_mode\s*=\s*".*"\n)/m, (matched) => `${matched}${lines.join("\n")}\n`);
71
- }
72
- function isCodexAgentTomlPath(filePath) {
73
- return (filePath.startsWith(".codex/agents/trellis-") && filePath.endsWith(".toml"));
74
- }
75
- /**
76
- * Preserve any user-set `model` / `model_reasoning_effort` keys from the
77
- * on-disk `.codex/agents/trellis-*.toml` files (at `cwd`) into every
78
- * matching entry of `files` (the freshly rendered desired content). Mutates
79
- * `files` in place. Must run before hash comparison / write so that a
80
- * project whose only local edit is these two keys is not flagged as a
81
- * modified-file conflict.
82
- */
83
- export function preserveCodexAgentModelKeys(cwd, files) {
84
- for (const [filePath, freshContent] of files) {
85
- if (!isCodexAgentTomlPath(filePath))
86
- continue;
87
- let existingContent = "";
88
- try {
89
- existingContent = fs.readFileSync(path.join(cwd, filePath), "utf-8");
90
- }
91
- catch {
92
- continue;
93
- }
94
- const preserved = extractCodexAgentModelKeys(existingContent);
95
- files.set(filePath, applyCodexAgentModelKeys(freshContent, preserved));
96
- }
97
- }
98
8
  /**
99
9
  * The Codex file set — written at init and diffed by `trellis update`.
100
10
  * - .agents/skills/ — shared skills from common source, rendered with the
@@ -115,9 +25,6 @@ export function collectCodexTemplates() {
115
25
  for (const [filePath, content] of collectSkillTemplates(".agents/skills", resolveAllAsSkillsNeutral(ctx), resolveBundledSkills(ctx))) {
116
26
  files.set(filePath, content);
117
27
  }
118
- for (const agent of getAllAgents()) {
119
- files.set(`.codex/agents/${agent.name}.toml`, agent.content);
120
- }
121
28
  for (const hook of getAllHooks()) {
122
29
  files.set(`.codex/hooks/${hook.name}`, hook.content);
123
30
  }
@@ -135,14 +42,15 @@ export function collectCodexTemplates() {
135
42
  * behavior a `Map<path, content>` cannot carry.
136
43
  */
137
44
  export async function configureCodex(cwd) {
138
- // Build map → post-process map → write. Rendered up front so the preserved
139
- // user keys are grafted onto exactly the bytes `trellis update` compares
140
- // against — update.ts runs preserveCodexAgentModelKeys over its already
141
- // rendered map too, and the two must agree. writeTemplateMap re-renders,
142
- // which is a no-op (replacePythonCommandLiterals is idempotent).
143
45
  const files = renderTemplateMap(collectCodexTemplates());
144
- preserveCodexAgentModelKeys(cwd, files);
46
+ const config = files.get(CODEX_CONFIG_PATH);
47
+ const configPath = path.join(cwd, CODEX_CONFIG_PATH);
48
+ files.delete(CODEX_CONFIG_PATH);
145
49
  await writeTemplateMap(cwd, files);
50
+ if (config !== undefined && readCodexConfig(configPath) === null) {
51
+ writeFileAtomic(configPath, config, undefined, true);
52
+ recordWrite(configPath);
53
+ }
146
54
  // RESIDUAL — not expressible as a path→content pair: a directory with no
147
55
  // files in it. Trellis ships no Codex-specific skills (the workflow skills
148
56
  // all land in .agents/skills/, which Codex reads too), but users need the
@@ -161,9 +69,8 @@ export async function configureCodex(cwd) {
161
69
  if (!process.env.VITEST && !process.env.TRELLIS_QUIET) {
162
70
  process.stderr.write("⚠️ Codex hooks require `features.hooks = true` in your " +
163
71
  "~/.codex/config.toml (Codex 0.129+; older versions: `codex_hooks = true`). " +
164
- "On Codex 0.129+ also run `/hooks` once to approve the Trellis " +
165
- "hooks. Without these the Trellis workflow breadcrumb and native " +
166
- "sub-agent context won't auto-inject (agents retain a pull fallback). " +
72
+ "When automatic project setup is unselected, review the project " +
73
+ "and its Trellis hooks in Codex before use. Init reports automatic setup separately. " +
167
74
  "See Trellis docs for details.\n");
168
75
  }
169
76
  }
@@ -1 +1 @@
1
- {"version":3,"file":"codex.js","sourceRoot":"","sources":["../../src/configurators/codex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,cAAc,GACf,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,aAAa,CAAC;AAarB;;;;;;GAMG;AACH,MAAM,UAAU,0BAA0B,CACxC,eAAuB;IAEvB,MAAM,MAAM,GAAwB,EAAE,CAAC;IACvC,IAAI,iBAAiB,GAAG,KAAK,CAAC;IAC9B,KAAK,MAAM,OAAO,IAAI,eAAe,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;QACrD,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;QAE/B,IAAI,iBAAiB,EAAE,CAAC;YACtB,uEAAuE;YACvE,mEAAmE;YACnE,+DAA+D;YAC/D,IAAI,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC;gBAAE,iBAAiB,GAAG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G,CAAC,iBAAiB,CAAC,CAAC;IAC5C,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC;IACrD,KAAK,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAChC,MAAM,gBAAgB,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACnC,IAAI,MAAM,KAAK,SAAS,IAAI,eAAe,CAAC,UAAU,CAAC,KAAK,IAAI,EAAE,CAAC;QACjE,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC;QACrD,WAAW,CAAC,UAAU,CAAC,CAAC;IAC1B,CAAC;IAED,yEAAyE;IACzE,2EAA2E;IAC3E,0EAA0E;IAC1E,iEAAiE;IACjE,4EAA4E;IAC5E,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;IAE9C,kEAAkE;IAClE,gFAAgF;IAChF,wEAAwE;IACxE,yEAAyE;IACzE,yEAAyE;IACzE,6EAA6E;IAC7E,sEAAsE;IACtE,wEAAwE;IACxE,4CAA4C;IAC5C,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;QACtD,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,0DAA0D;YACxD,6EAA6E;YAC7E,iEAAiE;YACjE,sFAAsF;YACtF,iCAAiC,CACpC,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -1,14 +1,3 @@
1
- /**
2
- * The GitHub Copilot file set — written at init and diffed by `trellis update`.
3
- * - prompts/ — start + finish-work as prompt files
4
- * - skills/trellis-{name}/SKILL.md — auto-triggered skills from `common/skills/`
5
- * - agents/{name}.agent.md — sub-agent definitions (note .agent.md suffix)
6
- * - copilot/hooks/ — platform-specific + shared hook scripts
7
- * - hooks config — hooks.json
8
- * - copilot-instructions.md — repository-wide review guidance. `trellis update`
9
- * replaces this entry with a managed-block merge over the user's file
10
- * (`buildCopilotInstructionsTemplate`); on a fresh project the merge returns
11
- * the template verbatim, so init and update agree.
12
- */
1
+ /** Main-session platform assets and native context entry points. */
13
2
  export declare function collectCopilotTemplates(): Map<string, string>;
14
3
  //# sourceMappingURL=copilot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"copilot.d.ts","sourceRoot":"","sources":["../../src/configurators/copilot.ts"],"names":[],"mappings":"AAmBA;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAkC7D"}
1
+ {"version":3,"file":"copilot.d.ts","sourceRoot":"","sources":["../../src/configurators/copilot.ts"],"names":[],"mappings":"AAgBA,oEAAoE;AACpE,wBAAgB,uBAAuB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CA2B7D"}
@@ -1,19 +1,7 @@
1
1
  import { AI_TOOLS } from "../types/ai-tools.js";
2
2
  import { COPILOT_INSTRUCTIONS_PATH, getAllHooks, getCopilotInstructions, getHooksConfig, } from "../templates/copilot/index.js";
3
- import { getAllAgents as getCursorAgents } from "../templates/cursor/index.js";
4
- import { resolvePlaceholders, resolveCommands, resolveSkills, resolveBundledSkills, collectSkillTemplates, collectSharedHooks, applyPullBasedPreludeMarkdown, normalizeCopilotMarkdownAgents, } from "./shared.js";
5
- /**
6
- * The GitHub Copilot file set — written at init and diffed by `trellis update`.
7
- * - prompts/ — start + finish-work as prompt files
8
- * - skills/trellis-{name}/SKILL.md — auto-triggered skills from `common/skills/`
9
- * - agents/{name}.agent.md — sub-agent definitions (note .agent.md suffix)
10
- * - copilot/hooks/ — platform-specific + shared hook scripts
11
- * - hooks config — hooks.json
12
- * - copilot-instructions.md — repository-wide review guidance. `trellis update`
13
- * replaces this entry with a managed-block merge over the user's file
14
- * (`buildCopilotInstructionsTemplate`); on a fresh project the merge returns
15
- * the template verbatim, so init and update agree.
16
- */
3
+ import { resolvePlaceholders, resolveCommands, resolveSkills, resolveBundledSkills, collectSkillTemplates, collectSharedHooks, } from "./shared.js";
4
+ /** Main-session platform assets and native context entry points. */
17
5
  export function collectCopilotTemplates() {
18
6
  const ctx = AI_TOOLS.copilot.templateContext;
19
7
  const files = new Map();
@@ -28,15 +16,9 @@ export function collectCopilotTemplates() {
28
16
  files.set(`.github/copilot/hooks/${hook.name}`, hook.content);
29
17
  }
30
18
  // Shared hooks (inject-workflow-state.py only). Copilot bundles its own
31
- // session-start.py above; sub-agent context is pull-based (class-2).
32
19
  for (const [k, v] of collectSharedHooks(".github/copilot/hooks", "copilot")) {
33
20
  files.set(k, v);
34
21
  }
35
- // Agents: reuse Cursor content + prepend pull-based prelude, then
36
- // normalize Cursor's Claude-style tools frontmatter for Copilot.
37
- for (const agent of applyPullBasedPreludeMarkdown(normalizeCopilotMarkdownAgents(getCursorAgents()))) {
38
- files.set(`.github/agents/${agent.name}.agent.md`, agent.content);
39
- }
40
22
  files.set(COPILOT_INSTRUCTIONS_PATH, getCopilotInstructions());
41
23
  const hooksConfig = resolvePlaceholders(getHooksConfig());
42
24
  files.set(".github/copilot/hooks.json", hooksConfig);
@@ -1 +1 @@
1
- {"version":3,"file":"copilot.js","sourceRoot":"","sources":["../../src/configurators/copilot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,yBAAyB,EACzB,WAAW,EACX,sBAAsB,EACtB,cAAc,GACf,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,6BAA6B,EAC7B,8BAA8B,GAC/B,MAAM,aAAa,CAAC;AAErB;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,uBAAuB;IACrC,MAAM,G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O,CAAC,CAAC;IAChE,CAAC;IACD,wEAAwE;IAExE,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,kBAAkB,CAAC,uBAAuB,EAAE,SAAS,CAAC,EAAE,CAAC;QAC5E,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,KAAK,CAAC,GAAG,CAAC,yBAAyB,EAAE,sBAAsB,EAAE,CAAC,CAAC;IAC/D,MAAM,WAAW,GAAG,mBAAmB,CAAC,cAAc,EAAE,CAAC,CAAC;IAC1D,KAAK,CAAC,GAAG,CAAC,4BAA4B,EAAE,WAAW,CAAC,CAAC;IACrD,KAAK,CAAC,GAAG,CAAC,4BAA4B,EAAE,WAAW,CAAC,CAAC;IACrD,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -1,10 +1,3 @@
1
- /**
2
- * The Cursor file set — written at init and diffed by `trellis update`.
3
- * - commands/ — start + finish-work as slash commands (trellis- prefix, flat)
4
- * - skills/trellis-{name}/SKILL.md — auto-triggered skills from `common/skills/`
5
- * - agents/{name}.md — sub-agent definitions
6
- * - hooks/*.py — shared hook scripts
7
- * - hooks.json — hook configuration (separate file, not settings.json)
8
- */
1
+ /** Main-session platform assets and native context entry points. */
9
2
  export declare function collectCursorTemplates(): Map<string, string>;
10
3
  //# sourceMappingURL=cursor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cursor.d.ts","sourceRoot":"","sources":["../../src/configurators/cursor.ts"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAc5D"}
1
+ {"version":3,"file":"cursor.d.ts","sourceRoot":"","sources":["../../src/configurators/cursor.ts"],"names":[],"mappings":"AAQA,oEAAoE;AACpE,wBAAgB,sBAAsB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAW5D"}
@@ -1,19 +1,9 @@
1
1
  import { AI_TOOLS } from "../types/ai-tools.js";
2
2
  import { resolvePlaceholders, collectBothTemplates, collectSharedHooks, } from "./shared.js";
3
- import { getAllAgents, getHooksConfig } from "../templates/cursor/index.js";
4
- /**
5
- * The Cursor file set — written at init and diffed by `trellis update`.
6
- * - commands/ — start + finish-work as slash commands (trellis- prefix, flat)
7
- * - skills/trellis-{name}/SKILL.md — auto-triggered skills from `common/skills/`
8
- * - agents/{name}.md — sub-agent definitions
9
- * - hooks/*.py — shared hook scripts
10
- * - hooks.json — hook configuration (separate file, not settings.json)
11
- */
3
+ import { getHooksConfig } from "../templates/cursor/index.js";
4
+ /** Main-session platform assets and native context entry points. */
12
5
  export function collectCursorTemplates() {
13
6
  const files = collectBothTemplates(AI_TOOLS.cursor.templateContext, (n) => `.cursor/commands/trellis-${n}.md`, ".cursor/skills");
14
- for (const agent of getAllAgents()) {
15
- files.set(`.cursor/agents/${agent.name}.md`, agent.content);
16
- }
17
7
  for (const [k, v] of collectSharedHooks(".cursor/hooks", "cursor")) {
18
8
  files.set(k, v);
19
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"cursor.js","sourceRoot":"","sources":["../../src/configurators/cursor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE5E;;;;;;;GAOG;AACH,MAAM,UAAU,sBAAsB;IACpC,MAAM,KAAK,GAAG,oBAAoB,CAChC,QAAQ,CAAC,MAAM,CAAC,eAAe,EAC/B,CAAC,CAAC,EAAE,EAAE,CAAC,4BAA4B,CAAC,KAAK,EACzC,gBAAgB,CACjB,CAAC;IACF,KAAK,MAAM,KAAK,IAAI,YAAY,EAAE,EAAE,CAAC;QACnC,KAAK,CAAC,GAAG,CAAC,kBAAkB,KAAK,CAAC,IAAI,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC9D,CAAC;IACD,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,kBAAkB,CAAC,eAAe,EAAE,QAAQ,CAAC,EAAE,CAAC;QACnE,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,KAAK,CAAC,GAAG,CAAC,oBAAoB,EAAE,mBAAmB,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC;IACvE,OAAO,KAAK,CAAC;AACf,CAAC"}
1
+ {"version":3,"file":"cursor.js","sourceRoot":"","sources":["../../src/configurators/cursor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,oEAAoE;AACpE,MAAM,UAAU,sBAAsB;IACpC,MAAM,KAAK,GAAG,oBAAoB,CAChC,QAAQ,CAAC,MAAM,CAAC,eAAe,EAC/B,CAAC,CAAC,EAAE,EAAE,CAAC,4BAA4B,CAAC,KAAK,EACzC,gBAAgB,CACjB,CAAC;IACF,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,kBAAkB,CAAC,eAAe,EAAE,QAAQ,CAAC,EAAE,CAAC;QACnE,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,KAAK,CAAC,GAAG,CAAC,oBAAoB,EAAE,mBAAmB,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC;IACvE,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -1,10 +1,3 @@
1
- /**
2
- * The Factory Droid file set — written at init and diffed by `trellis update`.
3
- * - commands/trellis/ — start + finish-work as slash commands
4
- * - skills/trellis-{name}/SKILL.md — auto-triggered skills from `common/skills/`
5
- * - droids/{name}.md — sub-agent definitions (Droid calls them "droids")
6
- * - hooks/*.py — shared hook scripts
7
- * - settings.json — hook configuration
8
- */
1
+ /** Main-session platform assets and native context entry points. */
9
2
  export declare function collectDroidTemplates(): Map<string, string>;
10
3
  //# sourceMappingURL=droid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"droid.d.ts","sourceRoot":"","sources":["../../src/configurators/droid.ts"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAkB3D"}
1
+ {"version":3,"file":"droid.d.ts","sourceRoot":"","sources":["../../src/configurators/droid.ts"],"names":[],"mappings":"AAQA,oEAAoE;AACpE,wBAAgB,qBAAqB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAe3D"}
@@ -1,19 +1,9 @@
1
1
  import { AI_TOOLS } from "../types/ai-tools.js";
2
2
  import { resolvePlaceholders, collectBothTemplates, collectSharedHooks, } from "./shared.js";
3
- import { getAllDroids, getSettingsTemplate } from "../templates/droid/index.js";
4
- /**
5
- * The Factory Droid file set — written at init and diffed by `trellis update`.
6
- * - commands/trellis/ — start + finish-work as slash commands
7
- * - skills/trellis-{name}/SKILL.md — auto-triggered skills from `common/skills/`
8
- * - droids/{name}.md — sub-agent definitions (Droid calls them "droids")
9
- * - hooks/*.py — shared hook scripts
10
- * - settings.json — hook configuration
11
- */
3
+ import { getSettingsTemplate } from "../templates/droid/index.js";
4
+ /** Main-session platform assets and native context entry points. */
12
5
  export function collectDroidTemplates() {
13
6
  const files = collectBothTemplates(AI_TOOLS.droid.templateContext, (n) => `.factory/commands/trellis/${n}.md`, ".factory/skills");
14
- for (const droid of getAllDroids()) {
15
- files.set(`.factory/droids/${droid.name}.md`, droid.content);
16
- }
17
7
  for (const [k, v] of collectSharedHooks(".factory/hooks", "droid")) {
18
8
  files.set(k, v);
19
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"droid.js","sourceRoot":"","sources":["../../src/configurators/droid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAEhF;;;;;;;GAOG;AACH,MAAM,UAAU,qBAAqB;IACnC,MAAM,KAAK,GAAG,oBAAoB,CAChC,QAAQ,CAAC,KAAK,CAAC,eAAe,EAC9B,CAAC,CAAC,EAAE,EAAE,CAAC,6BAA6B,CAAC,KAAK,EAC1C,iBAAiB,CAClB,CAAC;IACF,KAAK,MAAM,KAAK,IAAI,YAAY,EAAE,EAAE,CAAC;QACnC,KAAK,CAAC,GAAG,CAAC,mBAAmB,KAAK,CAAC,IAAI,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC/D,CAAC;IACD,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,kBAAkB,CAAC,gBAAgB,EAAE,OAAO,CAAC,EAAE,CAAC;QACnE,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,MAAM,QAAQ,GAAG,mBAAmB,EAAE,CAAC;IACvC,KAAK,CAAC,GAAG,CACP,YAAY,QAAQ,CAAC,UAAU,EAAE,EACjC,mBAAmB,CAAC,QAAQ,CAAC,OAAO,CAAC,CACtC,CAAC;IACF,OAAO,KAAK,CAAC;AACf,CAAC"}
1
+ {"version":3,"file":"droid.js","sourceRoot":"","sources":["../../src/configurators/droid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,oEAAoE;AACpE,MAAM,UAAU,qBAAqB;IACnC,MAAM,KAAK,GAAG,oBAAoB,CAChC,QAAQ,CAAC,KAAK,CAAC,eAAe,EAC9B,CAAC,CAAC,EAAE,EAAE,CAAC,6BAA6B,CAAC,KAAK,EAC1C,iBAAiB,CAClB,CAAC;IACF,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,kBAAkB,CAAC,gBAAgB,EAAE,OAAO,CAAC,EAAE,CAAC;QACnE,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,MAAM,QAAQ,GAAG,mBAAmB,EAAE,CAAC;IACvC,KAAK,CAAC,GAAG,CACP,YAAY,QAAQ,CAAC,UAAU,EAAE,EACjC,mBAAmB,CAAC,QAAQ,CAAC,OAAO,CAAC,CACtC,CAAC;IACF,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -1,24 +1,4 @@
1
- /**
2
- * DeepSeek Harness (dsh) configurator.
3
- *
4
- * dsh is a class-2 pull-based platform (agentCapable via the `subagent` tool,
5
- * no shipped session-start hook, no project-level hooks/settings Trellis may
6
- * write). Three output paths:
7
- * - `.agents/skills/` — workflow + bundled skills, written via the NEUTRAL
8
- * resolver so the files stay byte-identical to Codex/Gemini/Pi/Kimi writes
9
- * into the same shared root (dsh discovers `.agents/skills/` natively).
10
- * - `.dsh/skills/` — dsh-private entry skills (trellis-start /
11
- * trellis-continue / trellis-finish-work) plus collision-free Trellis role
12
- * skills (trellis-agent-implement / trellis-agent-check /
13
- * trellis-agent-research) with the pull-based prelude on implement/check.
14
- * - `.dsh/DSH.md` — operator guide and a configDir-owned tracked file for
15
- * platform detection and uninstall scoping.
16
- *
17
- * dsh has no project-level hooks/settings file Trellis may write and no
18
- * declarative custom sub-agent definitions (dispatch goes through the
19
- * `subagent` tool), so no hooks, settings, or extension files are written and
20
- * the agent prompts ship as skills.
21
- */
1
+ /** Main-session platform assets and native context entry points. */
22
2
  /**
23
3
  * The DeepSeek Harness file set — written at init and diffed by `trellis update`.
24
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"dsh.d.ts","sourceRoot":"","sources":["../../src/configurators/dsh.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAmDH;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CA0BzD"}
1
+ {"version":3,"file":"dsh.d.ts","sourceRoot":"","sources":["../../src/configurators/dsh.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAgCpE;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAyBzD"}
@@ -1,27 +1,8 @@
1
- /**
2
- * DeepSeek Harness (dsh) configurator.
3
- *
4
- * dsh is a class-2 pull-based platform (agentCapable via the `subagent` tool,
5
- * no shipped session-start hook, no project-level hooks/settings Trellis may
6
- * write). Three output paths:
7
- * - `.agents/skills/` — workflow + bundled skills, written via the NEUTRAL
8
- * resolver so the files stay byte-identical to Codex/Gemini/Pi/Kimi writes
9
- * into the same shared root (dsh discovers `.agents/skills/` natively).
10
- * - `.dsh/skills/` — dsh-private entry skills (trellis-start /
11
- * trellis-continue / trellis-finish-work) plus collision-free Trellis role
12
- * skills (trellis-agent-implement / trellis-agent-check /
13
- * trellis-agent-research) with the pull-based prelude on implement/check.
14
- * - `.dsh/DSH.md` — operator guide and a configDir-owned tracked file for
15
- * platform detection and uninstall scoping.
16
- *
17
- * dsh has no project-level hooks/settings file Trellis may write and no
18
- * declarative custom sub-agent definitions (dispatch goes through the
19
- * `subagent` tool), so no hooks, settings, or extension files are written and
20
- * the agent prompts ship as skills.
21
- */
1
+ /** Main-session platform assets and native context entry points. */
2
+ /** Main-session platform assets and native context entry points. */
22
3
  import { AI_TOOLS } from "../types/ai-tools.js";
23
- import { getAllAgents, getDshGuide } from "../templates/dsh/index.js";
24
- import { applyPullBasedPreludeMarkdown, collectSkillTemplates, replacePythonCommandLiterals, resolveAllAsSkills, resolveBundledSkills, resolveSkillsNeutral, } from "./shared.js";
4
+ import { getDshGuide } from "../templates/dsh/index.js";
5
+ import { collectSkillTemplates, resolveAllAsSkills, resolveBundledSkills, resolveSkillsNeutral, } from "./shared.js";
25
6
  /**
26
7
  * Command templates that become user-invocable dsh skills
27
8
  * (loaded by their `trellis-<name>` skill names). The session-boundary
@@ -38,19 +19,6 @@ function resolveDshCommandSkills() {
38
19
  const ctx = AI_TOOLS.dsh.templateContext;
39
20
  return resolveAllAsSkills(ctx).filter((skill) => DSH_COMMAND_SKILL_NAMES.has(skill.name));
40
21
  }
41
- /** Trellis agent prompts as DSH-private skills. The `trellis-agent-*` names
42
- * intentionally do not collide with shared main-session workflow skills such
43
- * as `.agents/skills/trellis-check`. */
44
- function resolveDshAgentSkills() {
45
- return applyPullBasedPreludeMarkdown(getAllAgents()).map((agent) => {
46
- const name = agent.name.replace(/^trellis-/, "trellis-agent-");
47
- return {
48
- ...agent,
49
- name,
50
- content: replacePythonCommandLiterals(agent.content).replace(/^name:\s*trellis-[^\r\n]+$/m, `name: ${name}`),
51
- };
52
- });
53
- }
54
22
  /**
55
23
  * The DeepSeek Harness file set — written at init and diffed by `trellis update`.
56
24
  */
@@ -65,7 +33,6 @@ export function collectDshTemplates() {
65
33
  // 2. Commands-as-skills + Trellis agent prompts → `.dsh/skills/`.
66
34
  for (const [filePath, content] of collectSkillTemplates(".dsh/skills", [
67
35
  ...resolveDshCommandSkills(),
68
- ...resolveDshAgentSkills(),
69
36
  ])) {
70
37
  files.set(filePath, content);
71
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dsh.js","sourceRoot":"","sources":["../../src/configurators/dsh.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,YAAY,EA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AAG,QAAQ,CAAC,GAAG,CAAC,eAAe,CAAC;IACzC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;IAExC,mEAAmE;IACnE,gEAAgE;IAChE,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,qBAAqB,CACrD,gBAAgB,EAChB,oBAAoB,CAAC,GAAG,CAAC,EACzB,oBAAoB,CAAC,GAAG,CAAC,CAC1B,EAAE,CAAC;QACF,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAED,kEAAkE;IAClE,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,qBAAqB,CAAC,aAAa,EAAE;QACrE,GAAG,uBAAuB,EAAE;KAC7B,CAAC,EAAE,CAAC;QACH,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAED,qCAAqC;IACrC,KAAK,CAAC,GAAG,CAAC,aAAa,EAAE,WAAW,EAAE,CAAC,CAAC;IAExC,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -1,18 +1,3 @@
1
- /**
2
- * The Gemini CLI file set — written at init and diffed by `trellis update`.
3
- * Gemini is a pull-based class-2 platform.
4
- * - commands/trellis/ — start + finish-work as TOML slash commands
5
- * - .agents/skills/trellis-{name}/SKILL.md — auto-triggered shared skills
6
- * written to the cross-platform `.agents/skills/` workspace alias (Gemini
7
- * CLI 0.40+ reads it natively; previously `.gemini/skills/` was used,
8
- * which collided with Codex's identical write target and caused
9
- * duplicate-skill warnings — issue #224). The neutral resolver keeps content
10
- * byte-identical to Codex's writes for the same skill names.
11
- * - agents/{name}.md — sub-agent definitions, with pull-based prelude
12
- * - hooks/*.py — session-start only (no inject-subagent-context.py — Gemini
13
- * BeforeTool can fire but #18128 limits chain-of-thought visibility; sub-agents
14
- * Read jsonl/prd themselves)
15
- * - settings.json — hook configuration (SessionStart + BeforeAgent)
16
- */
1
+ /** Main-session platform assets and native context entry points. */
17
2
  export declare function collectGeminiTemplates(): Map<string, string>;
18
3
  //# sourceMappingURL=gemini.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gemini.d.ts","sourceRoot":"","sources":["../../src/configurators/gemini.ts"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,sBAAsB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAyB5D"}
1
+ {"version":3,"file":"gemini.d.ts","sourceRoot":"","sources":["../../src/configurators/gemini.ts"],"names":[],"mappings":"AAWA,oEAAoE;AACpE,wBAAgB,sBAAsB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAsB5D"}
@@ -1,22 +1,7 @@
1
1
  import { AI_TOOLS } from "../types/ai-tools.js";
2
- import { resolvePlaceholders, resolveCommands, resolveSkillsNeutral, resolveBundledSkills, collectSkillTemplates, collectSharedHooks, applyPullBasedPreludeMarkdown, } from "./shared.js";
3
- import { getAllAgents, getSettingsTemplate, } from "../templates/gemini/index.js";
4
- /**
5
- * The Gemini CLI file set — written at init and diffed by `trellis update`.
6
- * Gemini is a pull-based class-2 platform.
7
- * - commands/trellis/ — start + finish-work as TOML slash commands
8
- * - .agents/skills/trellis-{name}/SKILL.md — auto-triggered shared skills
9
- * written to the cross-platform `.agents/skills/` workspace alias (Gemini
10
- * CLI 0.40+ reads it natively; previously `.gemini/skills/` was used,
11
- * which collided with Codex's identical write target and caused
12
- * duplicate-skill warnings — issue #224). The neutral resolver keeps content
13
- * byte-identical to Codex's writes for the same skill names.
14
- * - agents/{name}.md — sub-agent definitions, with pull-based prelude
15
- * - hooks/*.py — session-start only (no inject-subagent-context.py — Gemini
16
- * BeforeTool can fire but #18128 limits chain-of-thought visibility; sub-agents
17
- * Read jsonl/prd themselves)
18
- * - settings.json — hook configuration (SessionStart + BeforeAgent)
19
- */
2
+ import { resolvePlaceholders, resolveCommands, resolveSkillsNeutral, resolveBundledSkills, collectSkillTemplates, collectSharedHooks, } from "./shared.js";
3
+ import { getSettingsTemplate } from "../templates/gemini/index.js";
4
+ /** Main-session platform assets and native context entry points. */
20
5
  export function collectGeminiTemplates() {
21
6
  const ctx = AI_TOOLS.gemini.templateContext;
22
7
  const files = new Map();
@@ -27,9 +12,6 @@ export function collectGeminiTemplates() {
27
12
  for (const [filePath, content] of collectSkillTemplates(".agents/skills", resolveSkillsNeutral(ctx), resolveBundledSkills(ctx))) {
28
13
  files.set(filePath, content);
29
14
  }
30
- for (const agent of applyPullBasedPreludeMarkdown(getAllAgents())) {
31
- files.set(`.gemini/agents/${agent.name}.md`, agent.content);
32
- }
33
15
  for (const [k, v] of collectSharedHooks(".gemini/hooks", "gemini")) {
34
16
  files.set(k, v);
35
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"gemini.js","sourceRoot":"","sources":["../../src/configurators/gemini.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,6BAA6B,GAC9B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,YAAY,EACZ,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AAEtC;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,sBAAsB;IACpC,MAAM,GAAG,GAAG,QAAQ,CAAC,MAAM,CAAC,eAAe,CAAC;IAC5C,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;IACxC,KAAK,MAAM,GAAG,IAAI,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC;QACvC,MAAM,IAAI,GAAG,2BAA2B,GAAG,CAAC,IAAI,sBAAsB,GAAG,CAAC,OAAO,SAAS,CAAC;QAC3F,KAAK,CAAC,GAAG,CAAC,4BAA4B,GAAG,CAAC,IAAI,OAAO,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;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CAAC;QACvC,MAAM,IAAI,GAAG,2BAA2B,GAAG,CAAC,IAAI,sBAAsB,GAAG,CAAC,OAAO,SAAS,CAAC;QAC3F,KAAK,CAAC,GAAG,CAAC,4BAA4B,GAAG,CAAC,IAAI,OAAO,EAAE,IAAI,CAAC,CAAC;IAC/D,CAAC;IACD,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,qBAAqB,CACrD,gBAAgB,EAChB,oBAAoB,CAAC,GAAG,CAAC,EACzB,oBAAoB,CAAC,GAAG,CAAC,CAC1B,EAAE,CAAC;QACF,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IACD,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,kBAAkB,CAAC,eAAe,EAAE,QAAQ,CAAC,EAAE,CAAC;QACnE,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,KAAK,CAAC,GAAG,CACP,uBAAuB,EACvB,mBAAmB,CAAC,mBAAmB,EAAE,CAAC,CAC3C,CAAC;IACF,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -1,15 +1,4 @@
1
- /**
2
- * Grok Build configurator.
3
- *
4
- * Grok Build (xAI) is a pull-based class-2 platform (agentCapable, no hooks).
5
- * Three output paths:
6
- * - `.grok/skills/` — workflow and bundled skills
7
- * - `.grok/commands/trellis-*.md` — flat slash commands (Grok layout)
8
- * - `.grok/agents/` — sub-agent definitions with pull-based prelude
9
- *
10
- * Do not install SessionStart/UserPromptSubmit injection hooks here until Grok
11
- * consumes hook stdout additionalContext (verified absent on 0.2.x).
12
- */
1
+ /** Main-session platform assets and native context entry points. */
13
2
  /**
14
3
  * The Grok Build file set — written at init and diffed by `trellis update`.
15
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"grok.d.ts","sourceRoot":"","sources":["../../src/configurators/grok.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAYH;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CA0B1D"}
1
+ {"version":3,"file":"grok.d.ts","sourceRoot":"","sources":["../../src/configurators/grok.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAUpE;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAqB1D"}
@@ -1,18 +1,6 @@
1
- /**
2
- * Grok Build configurator.
3
- *
4
- * Grok Build (xAI) is a pull-based class-2 platform (agentCapable, no hooks).
5
- * Three output paths:
6
- * - `.grok/skills/` — workflow and bundled skills
7
- * - `.grok/commands/trellis-*.md` — flat slash commands (Grok layout)
8
- * - `.grok/agents/` — sub-agent definitions with pull-based prelude
9
- *
10
- * Do not install SessionStart/UserPromptSubmit injection hooks here until Grok
11
- * consumes hook stdout additionalContext (verified absent on 0.2.x).
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/grok/index.js";
15
- import { collectSkillTemplates, resolveBundledSkills, resolveCommands, resolveSkills, applyPullBasedPreludeMarkdown, } from "./shared.js";
3
+ import { collectSkillTemplates, resolveBundledSkills, resolveCommands, resolveSkills, } from "./shared.js";
16
4
  /**
17
5
  * The Grok Build file set — written at init and diffed by `trellis update`.
18
6
  */
@@ -29,10 +17,6 @@ export function collectGrokTemplates() {
29
17
  for (const cmd of resolveCommands(ctx)) {
30
18
  files.set(`.grok/commands/trellis-${cmd.name}.md`, cmd.content);
31
19
  }
32
- // 3. Sub-agents → .grok/agents/ (with pull-based prelude on implement/check)
33
- for (const agent of applyPullBasedPreludeMarkdown(getAllAgents())) {
34
- files.set(`.grok/agents/${agent.name}.md`, agent.content);
35
- }
36
20
  return files;
37
21
  }
38
22
  //# sourceMappingURL=grok.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"grok.js","sourceRoot":"","sources":["../../src/configurators/grok.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,6BAA6B,GAC9B,MAAM,aAAa,CAAC;AAErB;;GAEG;AACH,MAAM,UAAU,oBAAoB;IAClC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC;IAC7B,MAAM,GAAG,GAAG,MAAM,CAAC,eAAe,CAAC;IACnC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;IAExC,+CAA+C;IAC/C,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,qBAAqB,CACrD,cAAc,EACd,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,sDAAsD;IACtD,+EAA+E;IAC/E,KAAK,MAAM,GAAG,IAAI,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC;QACvC,KAAK,CAAC,GAAG,CAAC,0BAA0B,GAAG,CAAC,IAAI,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAClE,CAAC;IAED,6EAA6E;IAC7E,KAAK,MAAM,KAAK,IAAI,6BAA6B,CAAC,YAAY,EAAE,CAAC,EAAE,CAAC;QAClE,KAAK,CAAC,GAAG,CAAC,gBAAgB,KAAK,CAAC,IAAI,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC5D,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
1
+ {"version":3,"file":"grok.js","sourceRoot":"","sources":["../../src/configurators/grok.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,aAAa,GACd,MAAM,aAAa,CAAC;AAErB;;GAEG;AACH,MAAM,UAAU,oBAAoB;IAClC,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC;IAC7B,MAAM,GAAG,GAAG,MAAM,CAAC,eAAe,CAAC;IACnC,MAAM,KAAK,GAAG,IAAI,GAAG,EAAkB,CAAC;IAExC,+CAA+C;IAC/C,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,qBAAqB,CACrD,cAAc,EACd,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,sDAAsD;IACtD,+EAA+E;IAC/E,KAAK,MAAM,GAAG,IAAI,eAAe,CAAC,GAAG,CAAC,EAAE,CAAC;QACvC,KAAK,CAAC,GAAG,CAAC,0BAA0B,GAAG,CAAC,IAAI,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -1,24 +1,4 @@
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
  /**
23
3
  * The Kimi Code file set — written at init and diffed by `trellis update`.
24
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"kimi.d.ts","sourceRoot":"","sources":["../../src/configurators/kimi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAuCH;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAgC1D"}
1
+ {"version":3,"file":"kimi.d.ts","sourceRoot":"","sources":["../../src/configurators/kimi.ts"],"names":[],"mappings":"AAAA,oEAAoE;AA8BpE;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAoB1D"}