@pennixrv/trellis 0.7.2-beta.2 → 0.7.2-beta.21

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 (438) hide show
  1. package/README.md +14 -0
  2. package/dist/commands/init.d.ts.map +1 -1
  3. package/dist/commands/init.js +105 -107
  4. package/dist/commands/init.js.map +1 -1
  5. package/dist/commands/teamwork/adapters/acp.d.ts.map +1 -1
  6. package/dist/commands/teamwork/adapters/acp.js +3 -0
  7. package/dist/commands/teamwork/adapters/acp.js.map +1 -1
  8. package/dist/commands/teamwork/adapters/index.d.ts +1 -1
  9. package/dist/commands/teamwork/adapters/index.d.ts.map +1 -1
  10. package/dist/commands/teamwork/artifact.d.ts +2 -0
  11. package/dist/commands/teamwork/artifact.d.ts.map +1 -1
  12. package/dist/commands/teamwork/artifact.js +4 -2
  13. package/dist/commands/teamwork/artifact.js.map +1 -1
  14. package/dist/commands/teamwork/batch-reservation.d.ts.map +1 -1
  15. package/dist/commands/teamwork/batch-reservation.js +16 -8
  16. package/dist/commands/teamwork/batch-reservation.js.map +1 -1
  17. package/dist/commands/teamwork/batch.d.ts +15 -1
  18. package/dist/commands/teamwork/batch.d.ts.map +1 -1
  19. package/dist/commands/teamwork/batch.js +279 -24
  20. package/dist/commands/teamwork/batch.js.map +1 -1
  21. package/dist/commands/teamwork/coordinator.d.ts +3 -0
  22. package/dist/commands/teamwork/coordinator.d.ts.map +1 -1
  23. package/dist/commands/teamwork/coordinator.js +22 -3
  24. package/dist/commands/teamwork/coordinator.js.map +1 -1
  25. package/dist/commands/teamwork/create.d.ts +1 -0
  26. package/dist/commands/teamwork/create.d.ts.map +1 -1
  27. package/dist/commands/teamwork/create.js +4 -0
  28. package/dist/commands/teamwork/create.js.map +1 -1
  29. package/dist/commands/teamwork/evidence-references.d.ts +19 -0
  30. package/dist/commands/teamwork/evidence-references.d.ts.map +1 -0
  31. package/dist/commands/teamwork/evidence-references.js +249 -0
  32. package/dist/commands/teamwork/evidence-references.js.map +1 -0
  33. package/dist/commands/teamwork/foreground-wait.d.ts +4 -1
  34. package/dist/commands/teamwork/foreground-wait.d.ts.map +1 -1
  35. package/dist/commands/teamwork/foreground-wait.js +15 -1
  36. package/dist/commands/teamwork/foreground-wait.js.map +1 -1
  37. package/dist/commands/teamwork/index.d.ts.map +1 -1
  38. package/dist/commands/teamwork/index.js +47 -5
  39. package/dist/commands/teamwork/index.js.map +1 -1
  40. package/dist/commands/teamwork/list.d.ts +1 -0
  41. package/dist/commands/teamwork/list.d.ts.map +1 -1
  42. package/dist/commands/teamwork/list.js +4 -1
  43. package/dist/commands/teamwork/list.js.map +1 -1
  44. package/dist/commands/teamwork/prompt.js +1 -1
  45. package/dist/commands/teamwork/prompt.js.map +1 -1
  46. package/dist/commands/teamwork/rm.d.ts +27 -4
  47. package/dist/commands/teamwork/rm.d.ts.map +1 -1
  48. package/dist/commands/teamwork/rm.js +155 -51
  49. package/dist/commands/teamwork/rm.js.map +1 -1
  50. package/dist/commands/teamwork/run.d.ts.map +1 -1
  51. package/dist/commands/teamwork/run.js +10 -1
  52. package/dist/commands/teamwork/run.js.map +1 -1
  53. package/dist/commands/teamwork/runtime.d.ts +1 -1
  54. package/dist/commands/teamwork/runtime.d.ts.map +1 -1
  55. package/dist/commands/teamwork/runtime.js +14 -4
  56. package/dist/commands/teamwork/runtime.js.map +1 -1
  57. package/dist/commands/teamwork/spawn.d.ts.map +1 -1
  58. package/dist/commands/teamwork/spawn.js +4 -1
  59. package/dist/commands/teamwork/spawn.js.map +1 -1
  60. package/dist/commands/teamwork/supervisor/stdout.d.ts.map +1 -1
  61. package/dist/commands/teamwork/supervisor/stdout.js +7 -0
  62. package/dist/commands/teamwork/supervisor/stdout.js.map +1 -1
  63. package/dist/commands/teamwork/supervisor.d.ts +1 -1
  64. package/dist/commands/teamwork/supervisor.d.ts.map +1 -1
  65. package/dist/commands/teamwork/teammate-adapters.d.ts +3 -0
  66. package/dist/commands/teamwork/teammate-adapters.d.ts.map +1 -1
  67. package/dist/commands/teamwork/teammate-adapters.js +14 -5
  68. package/dist/commands/teamwork/teammate-adapters.js.map +1 -1
  69. package/dist/commands/teamwork/teammate-launch.d.ts +3 -1
  70. package/dist/commands/teamwork/teammate-launch.d.ts.map +1 -1
  71. package/dist/commands/teamwork/teammate-launch.js +7 -5
  72. package/dist/commands/teamwork/teammate-launch.js.map +1 -1
  73. package/dist/commands/teamwork/workers.d.ts +8 -0
  74. package/dist/commands/teamwork/workers.d.ts.map +1 -0
  75. package/dist/commands/teamwork/workers.js +67 -0
  76. package/dist/commands/teamwork/workers.js.map +1 -0
  77. package/dist/commands/update.d.ts.map +1 -1
  78. package/dist/commands/update.js +109 -55
  79. package/dist/commands/update.js.map +1 -1
  80. package/dist/commands/workflow.d.ts.map +1 -1
  81. package/dist/commands/workflow.js +5 -7
  82. package/dist/commands/workflow.js.map +1 -1
  83. package/dist/configurators/codebuddy.d.ts +1 -8
  84. package/dist/configurators/codebuddy.d.ts.map +1 -1
  85. package/dist/configurators/codebuddy.js +2 -12
  86. package/dist/configurators/codebuddy.js.map +1 -1
  87. package/dist/configurators/codex.d.ts +0 -36
  88. package/dist/configurators/codex.d.ts.map +1 -1
  89. package/dist/configurators/codex.js +2 -99
  90. package/dist/configurators/codex.js.map +1 -1
  91. package/dist/configurators/copilot.d.ts +1 -12
  92. package/dist/configurators/copilot.d.ts.map +1 -1
  93. package/dist/configurators/copilot.js +2 -20
  94. package/dist/configurators/copilot.js.map +1 -1
  95. package/dist/configurators/cursor.d.ts +1 -8
  96. package/dist/configurators/cursor.d.ts.map +1 -1
  97. package/dist/configurators/cursor.js +2 -12
  98. package/dist/configurators/cursor.js.map +1 -1
  99. package/dist/configurators/droid.d.ts +1 -8
  100. package/dist/configurators/droid.d.ts.map +1 -1
  101. package/dist/configurators/droid.js +2 -12
  102. package/dist/configurators/droid.js.map +1 -1
  103. package/dist/configurators/dsh.d.ts +1 -21
  104. package/dist/configurators/dsh.d.ts.map +1 -1
  105. package/dist/configurators/dsh.js +4 -37
  106. package/dist/configurators/dsh.js.map +1 -1
  107. package/dist/configurators/gemini.d.ts +1 -16
  108. package/dist/configurators/gemini.d.ts.map +1 -1
  109. package/dist/configurators/gemini.js +3 -21
  110. package/dist/configurators/gemini.js.map +1 -1
  111. package/dist/configurators/grok.d.ts +1 -12
  112. package/dist/configurators/grok.d.ts.map +1 -1
  113. package/dist/configurators/grok.js +2 -18
  114. package/dist/configurators/grok.js.map +1 -1
  115. package/dist/configurators/kimi.d.ts +1 -21
  116. package/dist/configurators/kimi.d.ts.map +1 -1
  117. package/dist/configurators/kimi.js +2 -38
  118. package/dist/configurators/kimi.js.map +1 -1
  119. package/dist/configurators/kiro.d.ts +1 -9
  120. package/dist/configurators/kiro.d.ts.map +1 -1
  121. package/dist/configurators/kiro.js +1 -9
  122. package/dist/configurators/kiro.js.map +1 -1
  123. package/dist/configurators/omp.d.ts.map +1 -1
  124. package/dist/configurators/omp.js +1 -5
  125. package/dist/configurators/omp.js.map +1 -1
  126. package/dist/configurators/pi.d.ts.map +1 -1
  127. package/dist/configurators/pi.js +2 -5
  128. package/dist/configurators/pi.js.map +1 -1
  129. package/dist/configurators/qoder.d.ts +1 -10
  130. package/dist/configurators/qoder.d.ts.map +1 -1
  131. package/dist/configurators/qoder.js +3 -15
  132. package/dist/configurators/qoder.js.map +1 -1
  133. package/dist/configurators/reasonix.d.ts +1 -12
  134. package/dist/configurators/reasonix.d.ts.map +1 -1
  135. package/dist/configurators/reasonix.js +3 -22
  136. package/dist/configurators/reasonix.js.map +1 -1
  137. package/dist/configurators/shared.d.ts +1 -24
  138. package/dist/configurators/shared.d.ts.map +1 -1
  139. package/dist/configurators/shared.js +5 -184
  140. package/dist/configurators/shared.js.map +1 -1
  141. package/dist/configurators/snow.d.ts +1 -20
  142. package/dist/configurators/snow.d.ts.map +1 -1
  143. package/dist/configurators/snow.js +2 -25
  144. package/dist/configurators/snow.js.map +1 -1
  145. package/dist/configurators/trae.d.ts +1 -14
  146. package/dist/configurators/trae.d.ts.map +1 -1
  147. package/dist/configurators/trae.js +3 -19
  148. package/dist/configurators/trae.js.map +1 -1
  149. package/dist/configurators/workflow.d.ts +2 -0
  150. package/dist/configurators/workflow.d.ts.map +1 -1
  151. package/dist/configurators/workflow.js +72 -56
  152. package/dist/configurators/workflow.js.map +1 -1
  153. package/dist/configurators/zcode.d.ts +1 -13
  154. package/dist/configurators/zcode.d.ts.map +1 -1
  155. package/dist/configurators/zcode.js +2 -18
  156. package/dist/configurators/zcode.js.map +1 -1
  157. package/dist/migrations/manifests/0.5.0-beta.5.json +1 -212
  158. package/dist/migrations/manifests/0.7.2-beta.10.json +9 -0
  159. package/dist/migrations/manifests/0.7.2-beta.11.json +9 -0
  160. package/dist/migrations/manifests/0.7.2-beta.12.json +9 -0
  161. package/dist/migrations/manifests/0.7.2-beta.13.json +9 -0
  162. package/dist/migrations/manifests/0.7.2-beta.14.json +9 -0
  163. package/dist/migrations/manifests/0.7.2-beta.15.json +9 -0
  164. package/dist/migrations/manifests/0.7.2-beta.16.json +9 -0
  165. package/dist/migrations/manifests/0.7.2-beta.17.json +9 -0
  166. package/dist/migrations/manifests/0.7.2-beta.18.json +9 -0
  167. package/dist/migrations/manifests/0.7.2-beta.19.json +11 -0
  168. package/dist/migrations/manifests/0.7.2-beta.20.json +9 -0
  169. package/dist/migrations/manifests/0.7.2-beta.21.json +9 -0
  170. package/dist/migrations/manifests/0.7.2-beta.3.json +9 -0
  171. package/dist/migrations/manifests/0.7.2-beta.4.json +9 -0
  172. package/dist/migrations/manifests/0.7.2-beta.5.json +9 -0
  173. package/dist/migrations/manifests/0.7.2-beta.6.json +9 -0
  174. package/dist/migrations/manifests/0.7.2-beta.7.json +9 -0
  175. package/dist/migrations/manifests/0.7.2-beta.8.json +9 -0
  176. package/dist/migrations/manifests/0.7.2-beta.9.json +9 -0
  177. package/dist/migrations/retired-native-paths.d.ts +109 -0
  178. package/dist/migrations/retired-native-paths.d.ts.map +1 -0
  179. package/dist/migrations/retired-native-paths.js +263 -0
  180. package/dist/migrations/retired-native-paths.js.map +1 -0
  181. package/dist/templates/claude/index.d.ts +1 -16
  182. package/dist/templates/claude/index.d.ts.map +1 -1
  183. package/dist/templates/claude/index.js +5 -32
  184. package/dist/templates/claude/index.js.map +1 -1
  185. package/dist/templates/claude/settings.json +0 -22
  186. package/dist/templates/codebuddy/index.d.ts +2 -3
  187. package/dist/templates/codebuddy/index.d.ts.map +1 -1
  188. package/dist/templates/codebuddy/index.js +2 -3
  189. package/dist/templates/codebuddy/index.js.map +1 -1
  190. package/dist/templates/codebuddy/settings.json +0 -10
  191. package/dist/templates/codex/config.toml +2 -19
  192. package/dist/templates/codex/hooks/session-start.py +25 -30
  193. package/dist/templates/codex/hooks.json +0 -12
  194. package/dist/templates/codex/index.d.ts +0 -5
  195. package/dist/templates/codex/index.d.ts.map +1 -1
  196. package/dist/templates/codex/index.js +0 -13
  197. package/dist/templates/codex/index.js.map +1 -1
  198. package/dist/templates/common/bundled-skills/trellis-decision-space-construction-and-merging/SKILL.md +2 -0
  199. package/dist/templates/common/bundled-skills/trellis-decision-space-construction-and-merging/workflow.md +7 -3
  200. package/dist/templates/common/bundled-skills/trellis-delivery-review-and-closeout/SKILL.md +2 -0
  201. package/dist/templates/common/bundled-skills/trellis-delivery-review-and-closeout/workflow.md +2 -0
  202. package/dist/templates/common/bundled-skills/trellis-goal-exploration-and-requirements/SKILL.md +2 -0
  203. package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +7 -7
  204. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-agents.md +9 -51
  205. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-context-loading.md +3 -15
  206. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-hooks.md +1 -2
  207. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/context-injection.md +4 -9
  208. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/generated-files.md +2 -2
  209. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/multi-agent-teamwork.md +6 -0
  210. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/overview.md +1 -1
  211. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/spec-system.md +10 -8
  212. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/agents.md +9 -79
  213. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/hooks-and-settings.md +2 -4
  214. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/overview.md +3 -6
  215. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/platform-map.md +24 -103
  216. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/skills-and-commands.md +1 -1
  217. package/dist/templates/common/bundled-skills/trellis-session-insight/SKILL.md +1 -1
  218. package/dist/templates/common/bundled-skills/trellis-solution-design-and-convergence/SKILL.md +2 -0
  219. package/dist/templates/common/bundled-skills/trellis-solution-design-and-convergence/workflow.md +14 -5
  220. package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/SKILL.md +6 -4
  221. package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/spec-task-planning.md +5 -9
  222. package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/spec-writing.md +8 -0
  223. package/dist/templates/common/bundled-skills/trellis-task-implementation/SKILL.md +2 -0
  224. package/dist/templates/common/bundled-skills/trellis-task-implementation/workflow.md +1 -1
  225. package/dist/templates/common/bundled-skills/trellis-teamwork/SKILL.md +8 -1
  226. package/dist/templates/common/bundled-skills/trellis-teamwork/references/teammate-processes.md +21 -1
  227. package/dist/templates/common/bundled-skills/trellis-teamwork/references/teamwork-plan-construction.md +13 -2
  228. package/dist/templates/common/bundled-skills/trellis-worktree-delegation/SKILL.md +14 -0
  229. package/dist/templates/common/bundled-skills/trellis-worktree-delegation/workflow.md +17 -0
  230. package/dist/templates/common/commands/continue.md +8 -0
  231. package/dist/templates/common/commands/start.md +2 -0
  232. package/dist/templates/common/skills/before-dev.md +3 -1
  233. package/dist/templates/common/skills/check.md +3 -1
  234. package/dist/templates/common/skills/request-intake.md +5 -3
  235. package/dist/templates/copilot/hooks/session-start.py +11 -30
  236. package/dist/templates/cursor/hooks.json +0 -7
  237. package/dist/templates/cursor/index.d.ts +1 -11
  238. package/dist/templates/cursor/index.d.ts.map +1 -1
  239. package/dist/templates/cursor/index.js +2 -10
  240. package/dist/templates/cursor/index.js.map +1 -1
  241. package/dist/templates/droid/index.d.ts +2 -3
  242. package/dist/templates/droid/index.d.ts.map +1 -1
  243. package/dist/templates/droid/index.js +2 -3
  244. package/dist/templates/droid/index.js.map +1 -1
  245. package/dist/templates/droid/settings.json +0 -10
  246. package/dist/templates/dsh/DSH.md +2 -33
  247. package/dist/templates/dsh/index.d.ts +1 -19
  248. package/dist/templates/dsh/index.d.ts.map +1 -1
  249. package/dist/templates/dsh/index.js +2 -21
  250. package/dist/templates/dsh/index.js.map +1 -1
  251. package/dist/templates/gemini/index.d.ts +1 -11
  252. package/dist/templates/gemini/index.d.ts.map +1 -1
  253. package/dist/templates/gemini/index.js +2 -10
  254. package/dist/templates/gemini/index.js.map +1 -1
  255. package/dist/templates/kiro/agents/trellis.json +1 -1
  256. package/dist/templates/kiro/index.d.ts +1 -13
  257. package/dist/templates/kiro/index.d.ts.map +1 -1
  258. package/dist/templates/kiro/index.js +1 -13
  259. package/dist/templates/kiro/index.js.map +1 -1
  260. package/dist/templates/markdown/agents.md +15 -3
  261. package/dist/templates/markdown/index.d.ts +1 -0
  262. package/dist/templates/markdown/index.d.ts.map +1 -1
  263. package/dist/templates/markdown/index.js +1 -0
  264. package/dist/templates/markdown/index.js.map +1 -1
  265. package/dist/templates/markdown/spec/index.md.txt +20 -0
  266. package/dist/templates/omp/extensions/trellis/index.ts.txt +11 -51
  267. package/dist/templates/omp/index.d.ts +0 -2
  268. package/dist/templates/omp/index.d.ts.map +1 -1
  269. package/dist/templates/omp/index.js +1 -4
  270. package/dist/templates/omp/index.js.map +1 -1
  271. package/dist/templates/opencode/lib/session-utils.js +17 -5
  272. package/dist/templates/opencode/lib/trellis-context.js +12 -321
  273. package/dist/templates/opencode/plugins/inject-shell-session-context.js +93 -0
  274. package/dist/templates/opencode/plugins/inject-workflow-state.js +4 -10
  275. package/dist/templates/opencode/plugins/session-start.js +2 -6
  276. package/dist/templates/pi/extensions/trellis/index.ts.txt +8 -1432
  277. package/dist/templates/pi/index.d.ts +1 -2
  278. package/dist/templates/pi/index.d.ts.map +1 -1
  279. package/dist/templates/pi/index.js +2 -5
  280. package/dist/templates/pi/index.js.map +1 -1
  281. package/dist/templates/qoder/index.d.ts +2 -3
  282. package/dist/templates/qoder/index.d.ts.map +1 -1
  283. package/dist/templates/qoder/index.js +2 -3
  284. package/dist/templates/qoder/index.js.map +1 -1
  285. package/dist/templates/shared-hooks/guard-teamwork-wait.py +118 -12
  286. package/dist/templates/shared-hooks/index.d.ts +2 -56
  287. package/dist/templates/shared-hooks/index.d.ts.map +1 -1
  288. package/dist/templates/shared-hooks/index.js +3 -70
  289. package/dist/templates/shared-hooks/index.js.map +1 -1
  290. package/dist/templates/shared-hooks/inject-spec-context.py +6 -35
  291. package/dist/templates/shared-hooks/inject-workflow-state.py +18 -77
  292. package/dist/templates/shared-hooks/session-start.py +8 -6
  293. package/dist/templates/snow/SNOW.md +6 -18
  294. package/dist/templates/snow/hooks/write-trellis-context.py +51 -133
  295. package/dist/templates/snow/index.d.ts +2 -21
  296. package/dist/templates/snow/index.d.ts.map +1 -1
  297. package/dist/templates/snow/index.js +3 -24
  298. package/dist/templates/snow/index.js.map +1 -1
  299. package/dist/templates/template-utils.d.ts +1 -2
  300. package/dist/templates/template-utils.d.ts.map +1 -1
  301. package/dist/templates/template-utils.js +1 -11
  302. package/dist/templates/template-utils.js.map +1 -1
  303. package/dist/templates/trae/index.d.ts +2 -3
  304. package/dist/templates/trae/index.d.ts.map +1 -1
  305. package/dist/templates/trae/index.js +2 -3
  306. package/dist/templates/trae/index.js.map +1 -1
  307. package/dist/templates/trellis/agents/delegated-worktree-primary-agent.md +20 -22
  308. package/dist/templates/trellis/agents/teammate.md +6 -2
  309. package/dist/templates/trellis/agents/worktree-delegation-node.md +24 -0
  310. package/dist/templates/trellis/config.yaml +7 -36
  311. package/dist/templates/trellis/gitignore.txt +4 -0
  312. package/dist/templates/trellis/index.d.ts +1 -0
  313. package/dist/templates/trellis/index.d.ts.map +1 -1
  314. package/dist/templates/trellis/index.js +3 -0
  315. package/dist/templates/trellis/index.js.map +1 -1
  316. package/dist/templates/trellis/scripts/common/active_task.py +23 -31
  317. package/dist/templates/trellis/scripts/common/config.py +1 -36
  318. package/dist/templates/trellis/scripts/common/git_context.py +13 -4
  319. package/dist/templates/trellis/scripts/common/io.py +2 -2
  320. package/dist/templates/trellis/scripts/common/packages_context.py +29 -1
  321. package/dist/templates/trellis/scripts/common/session_context.py +25 -50
  322. package/dist/templates/trellis/scripts/common/task_context.py +5 -3
  323. package/dist/templates/trellis/scripts/common/task_continuity.py +42 -9
  324. package/dist/templates/trellis/scripts/common/task_move.py +2 -2
  325. package/dist/templates/trellis/scripts/common/task_runtime.py +211 -0
  326. package/dist/templates/trellis/scripts/common/task_store.py +8 -78
  327. package/dist/templates/trellis/scripts/common/task_workflow.py +9 -26
  328. package/dist/templates/trellis/scripts/common/workflow_phase.py +3 -36
  329. package/dist/templates/trellis/scripts/common/workflow_selection.py +12 -2
  330. package/dist/templates/trellis/scripts/common/worktree_delegation.py +603 -0
  331. package/dist/templates/trellis/scripts/task.py +41 -2
  332. package/dist/templates/trellis/workflow.md +25 -10
  333. package/dist/templates/zcode/config.json +0 -10
  334. package/dist/templates/zcode/index.d.ts +3 -22
  335. package/dist/templates/zcode/index.d.ts.map +1 -1
  336. package/dist/templates/zcode/index.js +3 -24
  337. package/dist/templates/zcode/index.js.map +1 -1
  338. package/dist/types/ai-tools.d.ts +0 -4
  339. package/dist/types/ai-tools.d.ts.map +1 -1
  340. package/dist/types/ai-tools.js +4 -109
  341. package/dist/types/ai-tools.js.map +1 -1
  342. package/dist/utils/ablation-store.d.ts.map +1 -1
  343. package/dist/utils/ablation-store.js +24 -0
  344. package/dist/utils/ablation-store.js.map +1 -1
  345. package/dist/utils/asset-backup.d.ts.map +1 -1
  346. package/dist/utils/asset-backup.js +25 -20
  347. package/dist/utils/asset-backup.js.map +1 -1
  348. package/dist/utils/file-writer.d.ts +2 -0
  349. package/dist/utils/file-writer.d.ts.map +1 -1
  350. package/dist/utils/file-writer.js +1 -1
  351. package/dist/utils/file-writer.js.map +1 -1
  352. package/dist/utils/managed-markdown.d.ts +5 -0
  353. package/dist/utils/managed-markdown.d.ts.map +1 -0
  354. package/dist/utils/managed-markdown.js +64 -0
  355. package/dist/utils/managed-markdown.js.map +1 -0
  356. package/dist/utils/managed-removal.d.ts +2 -0
  357. package/dist/utils/managed-removal.d.ts.map +1 -1
  358. package/dist/utils/managed-removal.js +26 -2
  359. package/dist/utils/managed-removal.js.map +1 -1
  360. package/dist/utils/manifest-prune.d.ts.map +1 -1
  361. package/dist/utils/manifest-prune.js +5 -12
  362. package/dist/utils/manifest-prune.js.map +1 -1
  363. package/dist/utils/retired-native-assets.d.ts +17 -0
  364. package/dist/utils/retired-native-assets.d.ts.map +1 -0
  365. package/dist/utils/retired-native-assets.js +235 -0
  366. package/dist/utils/retired-native-assets.js.map +1 -0
  367. package/dist/utils/uninstall-scrubbers.d.ts.map +1 -1
  368. package/dist/utils/uninstall-scrubbers.js +6 -12
  369. package/dist/utils/uninstall-scrubbers.js.map +1 -1
  370. package/package.json +2 -2
  371. package/dist/templates/claude/agents/trellis-check.md +0 -115
  372. package/dist/templates/claude/agents/trellis-implement.md +0 -110
  373. package/dist/templates/claude/agents/trellis-research.md +0 -137
  374. package/dist/templates/codebuddy/agents/trellis-check.md +0 -115
  375. package/dist/templates/codebuddy/agents/trellis-implement.md +0 -110
  376. package/dist/templates/codebuddy/agents/trellis-research.md +0 -137
  377. package/dist/templates/codex/agents/trellis-check.toml +0 -56
  378. package/dist/templates/codex/agents/trellis-implement.toml +0 -37
  379. package/dist/templates/codex/agents/trellis-research.toml +0 -78
  380. package/dist/templates/cursor/agents/trellis-check.md +0 -114
  381. package/dist/templates/cursor/agents/trellis-implement.md +0 -109
  382. package/dist/templates/cursor/agents/trellis-research.md +0 -136
  383. package/dist/templates/droid/droids/trellis-check.md +0 -107
  384. package/dist/templates/droid/droids/trellis-implement.md +0 -102
  385. package/dist/templates/droid/droids/trellis-research.md +0 -137
  386. package/dist/templates/dsh/agents/trellis-check.md +0 -99
  387. package/dist/templates/dsh/agents/trellis-implement.md +0 -106
  388. package/dist/templates/dsh/agents/trellis-research.md +0 -134
  389. package/dist/templates/gemini/agents/trellis-check.md +0 -107
  390. package/dist/templates/gemini/agents/trellis-implement.md +0 -102
  391. package/dist/templates/gemini/agents/trellis-research.md +0 -136
  392. package/dist/templates/grok/agents/trellis-check.md +0 -105
  393. package/dist/templates/grok/agents/trellis-implement.md +0 -116
  394. package/dist/templates/grok/agents/trellis-research.md +0 -146
  395. package/dist/templates/grok/index.d.ts +0 -16
  396. package/dist/templates/grok/index.d.ts.map +0 -1
  397. package/dist/templates/grok/index.js +0 -19
  398. package/dist/templates/grok/index.js.map +0 -1
  399. package/dist/templates/kimi/agents/trellis-check.md +0 -103
  400. package/dist/templates/kimi/agents/trellis-implement.md +0 -115
  401. package/dist/templates/kimi/agents/trellis-research.md +0 -144
  402. package/dist/templates/kimi/index.d.ts +0 -20
  403. package/dist/templates/kimi/index.d.ts.map +0 -1
  404. package/dist/templates/kimi/index.js +0 -23
  405. package/dist/templates/kimi/index.js.map +0 -1
  406. package/dist/templates/kiro/agents/trellis-check.json +0 -26
  407. package/dist/templates/kiro/agents/trellis-implement.json +0 -26
  408. package/dist/templates/kiro/agents/trellis-research.json +0 -30
  409. package/dist/templates/omp/agents/trellis-check.md +0 -41
  410. package/dist/templates/omp/agents/trellis-implement.md +0 -45
  411. package/dist/templates/omp/agents/trellis-research.md +0 -30
  412. package/dist/templates/opencode/agents/trellis-check.md +0 -122
  413. package/dist/templates/opencode/agents/trellis-implement.md +0 -118
  414. package/dist/templates/opencode/agents/trellis-research.md +0 -145
  415. package/dist/templates/opencode/plugins/inject-subagent-context.js +0 -569
  416. package/dist/templates/pi/agents/trellis-check.md +0 -37
  417. package/dist/templates/pi/agents/trellis-implement.md +0 -42
  418. package/dist/templates/pi/agents/trellis-research.md +0 -25
  419. package/dist/templates/qoder/agents/trellis-check.md +0 -108
  420. package/dist/templates/qoder/agents/trellis-implement.md +0 -103
  421. package/dist/templates/qoder/agents/trellis-research.md +0 -137
  422. package/dist/templates/reasonix/agents/trellis-check.md +0 -36
  423. package/dist/templates/reasonix/agents/trellis-implement.md +0 -41
  424. package/dist/templates/reasonix/index.d.ts +0 -13
  425. package/dist/templates/reasonix/index.d.ts.map +0 -1
  426. package/dist/templates/reasonix/index.js +0 -16
  427. package/dist/templates/reasonix/index.js.map +0 -1
  428. package/dist/templates/shared-hooks/inject-subagent-context.py +0 -1217
  429. package/dist/templates/snow/agents/trellis-check.md +0 -135
  430. package/dist/templates/snow/agents/trellis-implement.md +0 -153
  431. package/dist/templates/snow/agents/trellis-research.md +0 -114
  432. package/dist/templates/snow/hooks/beforeSubAgentStart.json +0 -15
  433. package/dist/templates/trae/agents/trellis-check.md +0 -108
  434. package/dist/templates/trae/agents/trellis-implement.md +0 -103
  435. package/dist/templates/trae/agents/trellis-research.md +0 -137
  436. package/dist/templates/zcode/agents/trellis-check.md +0 -109
  437. package/dist/templates/zcode/agents/trellis-implement.md +0 -111
  438. package/dist/templates/zcode/agents/trellis-research.md +0 -133
@@ -1,100 +1,8 @@
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";
3
+ import { getAllHooks, getConfigTemplate, getHooksConfig, } from "../templates/codex/index.js";
5
4
  import { ensureDir } from "../utils/file-writer.js";
6
5
  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
6
  /**
99
7
  * The Codex file set — written at init and diffed by `trellis update`.
100
8
  * - .agents/skills/ — shared skills from common source, rendered with the
@@ -115,9 +23,6 @@ export function collectCodexTemplates() {
115
23
  for (const [filePath, content] of collectSkillTemplates(".agents/skills", resolveAllAsSkillsNeutral(ctx), resolveBundledSkills(ctx))) {
116
24
  files.set(filePath, content);
117
25
  }
118
- for (const agent of getAllAgents()) {
119
- files.set(`.codex/agents/${agent.name}.toml`, agent.content);
120
- }
121
26
  for (const hook of getAllHooks()) {
122
27
  files.set(`.codex/hooks/${hook.name}`, hook.content);
123
28
  }
@@ -141,7 +46,6 @@ export async function configureCodex(cwd) {
141
46
  // rendered map too, and the two must agree. writeTemplateMap re-renders,
142
47
  // which is a no-op (replacePythonCommandLiterals is idempotent).
143
48
  const files = renderTemplateMap(collectCodexTemplates());
144
- preserveCodexAgentModelKeys(cwd, files);
145
49
  await writeTemplateMap(cwd, files);
146
50
  // RESIDUAL — not expressible as a path→content pair: a directory with no
147
51
  // files in it. Trellis ships no Codex-specific skills (the workflow skills
@@ -162,8 +66,7 @@ export async function configureCodex(cwd) {
162
66
  process.stderr.write("⚠️ Codex hooks require `features.hooks = true` in your " +
163
67
  "~/.codex/config.toml (Codex 0.129+; older versions: `codex_hooks = true`). " +
164
68
  "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). " +
69
+ "hooks. Without these the workflow breadcrumb will not auto-inject. " +
167
70
  "See Trellis docs for details.\n");
168
71
  }
169
72
  }
@@ -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,CAA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K,CAAC,GAAG,CAAC,UAAU,MAAM,CAAC,UAAU,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IAEzD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,GAAW;IAC9C,2EAA2E;IAC3E,yEAAyE;IACzE,wEAAwE;IACxE,yEAAyE;IACzE,iEAAiE;IACjE,MAAM,KAAK,GAAG,iBAAiB,CAAC,qBAAqB,EAAE,CAAC,CAAC;IACzD,MAAM,gBAAgB,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAEnC,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,gEAAgE;YAChE,qEAAqE;YACrE,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,GAAG,GAAG,QAAQ,CAAC,OAAO,CAAC,eAAe,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ExE,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,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACtE,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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;IACD,KAAK,MAAM,CAAC,QAAQ,EAAE,OAAO,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G,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;;;;;;;;;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AAO,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"}