@pennixrv/trellis 0.7.2-beta.11 → 0.7.2-beta.16

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 (307) hide show
  1. package/dist/commands/init.d.ts.map +1 -1
  2. package/dist/commands/init.js +11 -13
  3. package/dist/commands/init.js.map +1 -1
  4. package/dist/commands/teamwork/batch-reservation.d.ts.map +1 -1
  5. package/dist/commands/teamwork/batch-reservation.js +16 -8
  6. package/dist/commands/teamwork/batch-reservation.js.map +1 -1
  7. package/dist/commands/teamwork/batch.d.ts +1 -0
  8. package/dist/commands/teamwork/batch.d.ts.map +1 -1
  9. package/dist/commands/teamwork/batch.js +112 -1
  10. package/dist/commands/teamwork/batch.js.map +1 -1
  11. package/dist/commands/teamwork/coordinator.d.ts +3 -0
  12. package/dist/commands/teamwork/coordinator.d.ts.map +1 -1
  13. package/dist/commands/teamwork/coordinator.js +21 -3
  14. package/dist/commands/teamwork/coordinator.js.map +1 -1
  15. package/dist/commands/teamwork/foreground-wait.d.ts +4 -1
  16. package/dist/commands/teamwork/foreground-wait.d.ts.map +1 -1
  17. package/dist/commands/teamwork/foreground-wait.js +8 -1
  18. package/dist/commands/teamwork/foreground-wait.js.map +1 -1
  19. package/dist/commands/teamwork/index.d.ts.map +1 -1
  20. package/dist/commands/teamwork/index.js +1 -0
  21. package/dist/commands/teamwork/index.js.map +1 -1
  22. package/dist/commands/update.d.ts.map +1 -1
  23. package/dist/commands/update.js +23 -10
  24. package/dist/commands/update.js.map +1 -1
  25. package/dist/commands/workflow.d.ts.map +1 -1
  26. package/dist/commands/workflow.js +5 -7
  27. package/dist/commands/workflow.js.map +1 -1
  28. package/dist/configurators/codebuddy.d.ts +1 -8
  29. package/dist/configurators/codebuddy.d.ts.map +1 -1
  30. package/dist/configurators/codebuddy.js +2 -12
  31. package/dist/configurators/codebuddy.js.map +1 -1
  32. package/dist/configurators/codex.d.ts +0 -36
  33. package/dist/configurators/codex.d.ts.map +1 -1
  34. package/dist/configurators/codex.js +2 -99
  35. package/dist/configurators/codex.js.map +1 -1
  36. package/dist/configurators/copilot.d.ts +1 -12
  37. package/dist/configurators/copilot.d.ts.map +1 -1
  38. package/dist/configurators/copilot.js +2 -20
  39. package/dist/configurators/copilot.js.map +1 -1
  40. package/dist/configurators/cursor.d.ts +1 -8
  41. package/dist/configurators/cursor.d.ts.map +1 -1
  42. package/dist/configurators/cursor.js +2 -12
  43. package/dist/configurators/cursor.js.map +1 -1
  44. package/dist/configurators/droid.d.ts +1 -8
  45. package/dist/configurators/droid.d.ts.map +1 -1
  46. package/dist/configurators/droid.js +2 -12
  47. package/dist/configurators/droid.js.map +1 -1
  48. package/dist/configurators/dsh.d.ts +1 -21
  49. package/dist/configurators/dsh.d.ts.map +1 -1
  50. package/dist/configurators/dsh.js +4 -37
  51. package/dist/configurators/dsh.js.map +1 -1
  52. package/dist/configurators/gemini.d.ts +1 -16
  53. package/dist/configurators/gemini.d.ts.map +1 -1
  54. package/dist/configurators/gemini.js +3 -21
  55. package/dist/configurators/gemini.js.map +1 -1
  56. package/dist/configurators/grok.d.ts +1 -12
  57. package/dist/configurators/grok.d.ts.map +1 -1
  58. package/dist/configurators/grok.js +2 -18
  59. package/dist/configurators/grok.js.map +1 -1
  60. package/dist/configurators/kimi.d.ts +1 -21
  61. package/dist/configurators/kimi.d.ts.map +1 -1
  62. package/dist/configurators/kimi.js +2 -38
  63. package/dist/configurators/kimi.js.map +1 -1
  64. package/dist/configurators/kiro.d.ts +1 -9
  65. package/dist/configurators/kiro.d.ts.map +1 -1
  66. package/dist/configurators/kiro.js +1 -9
  67. package/dist/configurators/kiro.js.map +1 -1
  68. package/dist/configurators/omp.d.ts.map +1 -1
  69. package/dist/configurators/omp.js +1 -5
  70. package/dist/configurators/omp.js.map +1 -1
  71. package/dist/configurators/pi.d.ts.map +1 -1
  72. package/dist/configurators/pi.js +2 -5
  73. package/dist/configurators/pi.js.map +1 -1
  74. package/dist/configurators/qoder.d.ts +1 -10
  75. package/dist/configurators/qoder.d.ts.map +1 -1
  76. package/dist/configurators/qoder.js +3 -15
  77. package/dist/configurators/qoder.js.map +1 -1
  78. package/dist/configurators/reasonix.d.ts +1 -12
  79. package/dist/configurators/reasonix.d.ts.map +1 -1
  80. package/dist/configurators/reasonix.js +3 -22
  81. package/dist/configurators/reasonix.js.map +1 -1
  82. package/dist/configurators/shared.d.ts +1 -24
  83. package/dist/configurators/shared.d.ts.map +1 -1
  84. package/dist/configurators/shared.js +5 -184
  85. package/dist/configurators/shared.js.map +1 -1
  86. package/dist/configurators/snow.d.ts +1 -20
  87. package/dist/configurators/snow.d.ts.map +1 -1
  88. package/dist/configurators/snow.js +2 -25
  89. package/dist/configurators/snow.js.map +1 -1
  90. package/dist/configurators/trae.d.ts +1 -14
  91. package/dist/configurators/trae.d.ts.map +1 -1
  92. package/dist/configurators/trae.js +3 -19
  93. package/dist/configurators/trae.js.map +1 -1
  94. package/dist/configurators/zcode.d.ts +1 -13
  95. package/dist/configurators/zcode.d.ts.map +1 -1
  96. package/dist/configurators/zcode.js +2 -18
  97. package/dist/configurators/zcode.js.map +1 -1
  98. package/dist/migrations/manifests/0.5.0-beta.5.json +1 -212
  99. package/dist/migrations/manifests/0.7.2-beta.11.json +9 -0
  100. package/dist/migrations/manifests/0.7.2-beta.12.json +9 -0
  101. package/dist/migrations/manifests/0.7.2-beta.13.json +9 -0
  102. package/dist/migrations/manifests/0.7.2-beta.14.json +9 -0
  103. package/dist/migrations/manifests/0.7.2-beta.15.json +9 -0
  104. package/dist/migrations/manifests/0.7.2-beta.16.json +9 -0
  105. package/dist/migrations/retired-native-paths.d.ts +109 -0
  106. package/dist/migrations/retired-native-paths.d.ts.map +1 -0
  107. package/dist/migrations/retired-native-paths.js +263 -0
  108. package/dist/migrations/retired-native-paths.js.map +1 -0
  109. package/dist/templates/claude/index.d.ts +1 -16
  110. package/dist/templates/claude/index.d.ts.map +1 -1
  111. package/dist/templates/claude/index.js +5 -32
  112. package/dist/templates/claude/index.js.map +1 -1
  113. package/dist/templates/claude/settings.json +0 -22
  114. package/dist/templates/codebuddy/index.d.ts +2 -3
  115. package/dist/templates/codebuddy/index.d.ts.map +1 -1
  116. package/dist/templates/codebuddy/index.js +2 -3
  117. package/dist/templates/codebuddy/index.js.map +1 -1
  118. package/dist/templates/codebuddy/settings.json +0 -10
  119. package/dist/templates/codex/config.toml +2 -19
  120. package/dist/templates/codex/hooks/session-start.py +1 -1
  121. package/dist/templates/codex/hooks.json +0 -12
  122. package/dist/templates/codex/index.d.ts +0 -5
  123. package/dist/templates/codex/index.d.ts.map +1 -1
  124. package/dist/templates/codex/index.js +0 -13
  125. package/dist/templates/codex/index.js.map +1 -1
  126. package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +7 -7
  127. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-agents.md +9 -51
  128. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-context-loading.md +3 -15
  129. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-hooks.md +1 -2
  130. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/context-injection.md +4 -9
  131. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/generated-files.md +2 -2
  132. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/overview.md +1 -1
  133. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/spec-system.md +1 -1
  134. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/agents.md +9 -79
  135. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/hooks-and-settings.md +2 -4
  136. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/overview.md +3 -6
  137. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/platform-map.md +24 -103
  138. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/skills-and-commands.md +1 -1
  139. package/dist/templates/common/bundled-skills/trellis-session-insight/SKILL.md +1 -1
  140. package/dist/templates/common/bundled-skills/trellis-teamwork/SKILL.md +1 -1
  141. package/dist/templates/common/bundled-skills/trellis-teamwork/references/teammate-processes.md +21 -1
  142. package/dist/templates/common/bundled-skills/trellis-teamwork/references/teamwork-plan-construction.md +7 -0
  143. package/dist/templates/copilot/hooks/session-start.py +1 -1
  144. package/dist/templates/cursor/hooks.json +0 -7
  145. package/dist/templates/cursor/index.d.ts +1 -11
  146. package/dist/templates/cursor/index.d.ts.map +1 -1
  147. package/dist/templates/cursor/index.js +2 -10
  148. package/dist/templates/cursor/index.js.map +1 -1
  149. package/dist/templates/droid/index.d.ts +2 -3
  150. package/dist/templates/droid/index.d.ts.map +1 -1
  151. package/dist/templates/droid/index.js +2 -3
  152. package/dist/templates/droid/index.js.map +1 -1
  153. package/dist/templates/droid/settings.json +0 -10
  154. package/dist/templates/dsh/DSH.md +2 -33
  155. package/dist/templates/dsh/index.d.ts +1 -19
  156. package/dist/templates/dsh/index.d.ts.map +1 -1
  157. package/dist/templates/dsh/index.js +2 -21
  158. package/dist/templates/dsh/index.js.map +1 -1
  159. package/dist/templates/gemini/index.d.ts +1 -11
  160. package/dist/templates/gemini/index.d.ts.map +1 -1
  161. package/dist/templates/gemini/index.js +2 -10
  162. package/dist/templates/gemini/index.js.map +1 -1
  163. package/dist/templates/kiro/index.d.ts +1 -13
  164. package/dist/templates/kiro/index.d.ts.map +1 -1
  165. package/dist/templates/kiro/index.js +1 -13
  166. package/dist/templates/kiro/index.js.map +1 -1
  167. package/dist/templates/markdown/agents.md +6 -3
  168. package/dist/templates/omp/extensions/trellis/index.ts.txt +11 -51
  169. package/dist/templates/omp/index.d.ts +0 -2
  170. package/dist/templates/omp/index.d.ts.map +1 -1
  171. package/dist/templates/omp/index.js +1 -4
  172. package/dist/templates/omp/index.js.map +1 -1
  173. package/dist/templates/opencode/lib/trellis-context.js +12 -321
  174. package/dist/templates/opencode/plugins/inject-shell-session-context.js +93 -0
  175. package/dist/templates/opencode/plugins/inject-workflow-state.js +4 -10
  176. package/dist/templates/opencode/plugins/session-start.js +2 -6
  177. package/dist/templates/pi/extensions/trellis/index.ts.txt +8 -1432
  178. package/dist/templates/pi/index.d.ts +1 -2
  179. package/dist/templates/pi/index.d.ts.map +1 -1
  180. package/dist/templates/pi/index.js +2 -5
  181. package/dist/templates/pi/index.js.map +1 -1
  182. package/dist/templates/qoder/index.d.ts +2 -3
  183. package/dist/templates/qoder/index.d.ts.map +1 -1
  184. package/dist/templates/qoder/index.js +2 -3
  185. package/dist/templates/qoder/index.js.map +1 -1
  186. package/dist/templates/shared-hooks/guard-teamwork-wait.py +110 -12
  187. package/dist/templates/shared-hooks/index.d.ts +2 -56
  188. package/dist/templates/shared-hooks/index.d.ts.map +1 -1
  189. package/dist/templates/shared-hooks/index.js +3 -70
  190. package/dist/templates/shared-hooks/index.js.map +1 -1
  191. package/dist/templates/shared-hooks/inject-spec-context.py +6 -35
  192. package/dist/templates/shared-hooks/inject-workflow-state.py +3 -77
  193. package/dist/templates/shared-hooks/session-start.py +1 -1
  194. package/dist/templates/snow/SNOW.md +6 -18
  195. package/dist/templates/snow/hooks/write-trellis-context.py +51 -133
  196. package/dist/templates/snow/index.d.ts +2 -21
  197. package/dist/templates/snow/index.d.ts.map +1 -1
  198. package/dist/templates/snow/index.js +3 -24
  199. package/dist/templates/snow/index.js.map +1 -1
  200. package/dist/templates/template-utils.d.ts +1 -2
  201. package/dist/templates/template-utils.d.ts.map +1 -1
  202. package/dist/templates/template-utils.js +1 -11
  203. package/dist/templates/template-utils.js.map +1 -1
  204. package/dist/templates/trae/index.d.ts +2 -3
  205. package/dist/templates/trae/index.d.ts.map +1 -1
  206. package/dist/templates/trae/index.js +2 -3
  207. package/dist/templates/trae/index.js.map +1 -1
  208. package/dist/templates/trellis/config.yaml +7 -36
  209. package/dist/templates/trellis/scripts/common/config.py +1 -36
  210. package/dist/templates/trellis/scripts/common/git_context.py +3 -4
  211. package/dist/templates/trellis/scripts/common/task_context.py +3 -3
  212. package/dist/templates/trellis/scripts/common/task_store.py +1 -77
  213. package/dist/templates/trellis/scripts/common/workflow_phase.py +3 -36
  214. package/dist/templates/trellis/scripts/common/workflow_selection.py +12 -2
  215. package/dist/templates/trellis/scripts/task.py +2 -2
  216. package/dist/templates/trellis/workflow.md +1 -7
  217. package/dist/templates/zcode/config.json +0 -10
  218. package/dist/templates/zcode/index.d.ts +3 -22
  219. package/dist/templates/zcode/index.d.ts.map +1 -1
  220. package/dist/templates/zcode/index.js +3 -24
  221. package/dist/templates/zcode/index.js.map +1 -1
  222. package/dist/types/ai-tools.d.ts +0 -4
  223. package/dist/types/ai-tools.d.ts.map +1 -1
  224. package/dist/types/ai-tools.js +4 -109
  225. package/dist/types/ai-tools.js.map +1 -1
  226. package/dist/utils/ablation-store.d.ts.map +1 -1
  227. package/dist/utils/ablation-store.js +24 -0
  228. package/dist/utils/ablation-store.js.map +1 -1
  229. package/dist/utils/asset-backup.d.ts.map +1 -1
  230. package/dist/utils/asset-backup.js +3 -0
  231. package/dist/utils/asset-backup.js.map +1 -1
  232. package/dist/utils/retired-native-assets.d.ts +16 -0
  233. package/dist/utils/retired-native-assets.d.ts.map +1 -0
  234. package/dist/utils/retired-native-assets.js +234 -0
  235. package/dist/utils/retired-native-assets.js.map +1 -0
  236. package/dist/utils/uninstall-scrubbers.d.ts.map +1 -1
  237. package/dist/utils/uninstall-scrubbers.js +1 -1
  238. package/dist/utils/uninstall-scrubbers.js.map +1 -1
  239. package/package.json +2 -2
  240. package/dist/templates/claude/agents/trellis-check.md +0 -115
  241. package/dist/templates/claude/agents/trellis-implement.md +0 -110
  242. package/dist/templates/claude/agents/trellis-research.md +0 -137
  243. package/dist/templates/codebuddy/agents/trellis-check.md +0 -115
  244. package/dist/templates/codebuddy/agents/trellis-implement.md +0 -110
  245. package/dist/templates/codebuddy/agents/trellis-research.md +0 -137
  246. package/dist/templates/codex/agents/trellis-check.toml +0 -56
  247. package/dist/templates/codex/agents/trellis-implement.toml +0 -37
  248. package/dist/templates/codex/agents/trellis-research.toml +0 -78
  249. package/dist/templates/cursor/agents/trellis-check.md +0 -114
  250. package/dist/templates/cursor/agents/trellis-implement.md +0 -109
  251. package/dist/templates/cursor/agents/trellis-research.md +0 -136
  252. package/dist/templates/droid/droids/trellis-check.md +0 -107
  253. package/dist/templates/droid/droids/trellis-implement.md +0 -102
  254. package/dist/templates/droid/droids/trellis-research.md +0 -137
  255. package/dist/templates/dsh/agents/trellis-check.md +0 -99
  256. package/dist/templates/dsh/agents/trellis-implement.md +0 -106
  257. package/dist/templates/dsh/agents/trellis-research.md +0 -134
  258. package/dist/templates/gemini/agents/trellis-check.md +0 -107
  259. package/dist/templates/gemini/agents/trellis-implement.md +0 -102
  260. package/dist/templates/gemini/agents/trellis-research.md +0 -136
  261. package/dist/templates/grok/agents/trellis-check.md +0 -105
  262. package/dist/templates/grok/agents/trellis-implement.md +0 -116
  263. package/dist/templates/grok/agents/trellis-research.md +0 -146
  264. package/dist/templates/grok/index.d.ts +0 -16
  265. package/dist/templates/grok/index.d.ts.map +0 -1
  266. package/dist/templates/grok/index.js +0 -19
  267. package/dist/templates/grok/index.js.map +0 -1
  268. package/dist/templates/kimi/agents/trellis-check.md +0 -103
  269. package/dist/templates/kimi/agents/trellis-implement.md +0 -115
  270. package/dist/templates/kimi/agents/trellis-research.md +0 -144
  271. package/dist/templates/kimi/index.d.ts +0 -20
  272. package/dist/templates/kimi/index.d.ts.map +0 -1
  273. package/dist/templates/kimi/index.js +0 -23
  274. package/dist/templates/kimi/index.js.map +0 -1
  275. package/dist/templates/kiro/agents/trellis-check.json +0 -26
  276. package/dist/templates/kiro/agents/trellis-implement.json +0 -26
  277. package/dist/templates/kiro/agents/trellis-research.json +0 -30
  278. package/dist/templates/omp/agents/trellis-check.md +0 -41
  279. package/dist/templates/omp/agents/trellis-implement.md +0 -45
  280. package/dist/templates/omp/agents/trellis-research.md +0 -30
  281. package/dist/templates/opencode/agents/trellis-check.md +0 -122
  282. package/dist/templates/opencode/agents/trellis-implement.md +0 -118
  283. package/dist/templates/opencode/agents/trellis-research.md +0 -145
  284. package/dist/templates/opencode/plugins/inject-subagent-context.js +0 -569
  285. package/dist/templates/pi/agents/trellis-check.md +0 -37
  286. package/dist/templates/pi/agents/trellis-implement.md +0 -42
  287. package/dist/templates/pi/agents/trellis-research.md +0 -25
  288. package/dist/templates/qoder/agents/trellis-check.md +0 -108
  289. package/dist/templates/qoder/agents/trellis-implement.md +0 -103
  290. package/dist/templates/qoder/agents/trellis-research.md +0 -137
  291. package/dist/templates/reasonix/agents/trellis-check.md +0 -36
  292. package/dist/templates/reasonix/agents/trellis-implement.md +0 -41
  293. package/dist/templates/reasonix/index.d.ts +0 -13
  294. package/dist/templates/reasonix/index.d.ts.map +0 -1
  295. package/dist/templates/reasonix/index.js +0 -16
  296. package/dist/templates/reasonix/index.js.map +0 -1
  297. package/dist/templates/shared-hooks/inject-subagent-context.py +0 -1217
  298. package/dist/templates/snow/agents/trellis-check.md +0 -135
  299. package/dist/templates/snow/agents/trellis-implement.md +0 -153
  300. package/dist/templates/snow/agents/trellis-research.md +0 -114
  301. package/dist/templates/snow/hooks/beforeSubAgentStart.json +0 -15
  302. package/dist/templates/trae/agents/trellis-check.md +0 -108
  303. package/dist/templates/trae/agents/trellis-implement.md +0 -103
  304. package/dist/templates/trae/agents/trellis-research.md +0 -137
  305. package/dist/templates/zcode/agents/trellis-check.md +0 -109
  306. package/dist/templates/zcode/agents/trellis-implement.md +0 -111
  307. package/dist/templates/zcode/agents/trellis-research.md +0 -133
@@ -1 +1 @@
1
- {"version":3,"file":"codebuddy.js","sourceRoot":"","sources":["../../src/configurators/codebuddy.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,EACL,YAAY,EACZ,mBAAmB,GACpB,MAAM,iCAAiC,CAAC;AAEzC;;;;;;;GAOG;AACH,MAA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C,kBAAkB,EAAE,WAAW,CAAC,EAAE,CAAC;QACzE,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,MAAM,QAAQ,GAAG,mBAAmB,EAAE,CAAC;IACvC,KAAK,CAAC,GAAG,CACP,cAAc,QAAQ,CAAC,UAAU,EAAE,EACnC,mBAAmB,CAAC,QAAQ,CAAC,OAAO,CAAC,CACtC,CAAC;IACF,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -1,39 +1,3 @@
1
- /**
2
- * User-set `model` / `model_reasoning_effort` top-level keys on a generated
3
- * `trellis-*.toml` agent profile. Users configure sub-agent models by
4
- * editing these files directly (matches Codex's own docs) — there is no
5
- * `.trellis/config.yaml` indirection.
6
- */
7
- export interface CodexAgentModelKeys {
8
- model?: string;
9
- model_reasoning_effort?: string;
10
- }
11
- /**
12
- * Extract user-set `model` / `model_reasoning_effort` top-level keys from an
13
- * existing `trellis-*.toml` agent profile. Only matches uncommented
14
- * `key = "value"` lines (the static template's `# model = "..."` hint lines
15
- * never match). Not a general TOML parser — these files are known-flat with
16
- * no `[section]` headers.
17
- */
18
- export declare function extractCodexAgentModelKeys(existingContent: string): CodexAgentModelKeys;
19
- /**
20
- * Re-insert preserved `model` / `model_reasoning_effort` keys right after
21
- * `sandbox_mode = "..."` in a freshly rendered `trellis-*.toml` agent
22
- * profile. Unset keys omit the corresponding line entirely (Codex falls
23
- * back through spawn value -> `[agents]` default -> parent). The fresh
24
- * template content never contains these keys itself (only commented
25
- * hints), so no de-dup pass is needed before inserting.
26
- */
27
- export declare function applyCodexAgentModelKeys(freshContent: string, preserved: CodexAgentModelKeys): string;
28
- /**
29
- * Preserve any user-set `model` / `model_reasoning_effort` keys from the
30
- * on-disk `.codex/agents/trellis-*.toml` files (at `cwd`) into every
31
- * matching entry of `files` (the freshly rendered desired content). Mutates
32
- * `files` in place. Must run before hash comparison / write so that a
33
- * project whose only local edit is these two keys is not flagged as a
34
- * modified-file conflict.
35
- */
36
- export declare function preserveCodexAgentModelKeys(cwd: string, files: Map<string, string>): void;
37
1
  /**
38
2
  * The Codex file set — written at init and diffed by `trellis update`.
39
3
  * - .agents/skills/ — shared skills from common source, rendered with the
@@ -1 +1 @@
1
- {"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../src/configurators/codex.ts"],"names":[],"mappings":"AAoBA;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,eAAe,EAAE,MAAM,GACtB,mBAAmB,CA8BrB;AAYD;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,mBAAmB,GAC7B,MAAM,CAkBR;AAQD;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CACzC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GACzB,IAAI,CAYN;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,qBAAqB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CA0B3D;AAED;;;GAGG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAoC/D"}
1
+ {"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../src/configurators/codex.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,qBAAqB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAuB3D;AAED;;;GAGG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAkC/D"}
@@ -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,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CAAC,CAAC;IAClB,CAAC;IACD,KAAK,CAAC,GAAG,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC;IACtE,MAAM,MAAM,GAAG,iBAAiB,EAAE,CAAC;IACnC,KAAK,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,kB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AM,IAAI,IAAI,WAAW,EAAE,EAAE,CAAC;QACjC,KAAK,CAAC,GAAG,CAAC,yBAAyB,IAAI,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,OAAO,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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AAC"}
@@ -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":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,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CACxC,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB;IACjC,MAAM,GAAG,GAAG,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,C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,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,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,KAA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