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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (284) hide show
  1. package/dist/commands/init.d.ts.map +1 -1
  2. package/dist/commands/init.js +11 -13
  3. package/dist/commands/init.js.map +1 -1
  4. package/dist/commands/update.d.ts.map +1 -1
  5. package/dist/commands/update.js +43 -10
  6. package/dist/commands/update.js.map +1 -1
  7. package/dist/commands/workflow.d.ts.map +1 -1
  8. package/dist/commands/workflow.js +5 -7
  9. package/dist/commands/workflow.js.map +1 -1
  10. package/dist/configurators/codebuddy.d.ts +1 -8
  11. package/dist/configurators/codebuddy.d.ts.map +1 -1
  12. package/dist/configurators/codebuddy.js +2 -12
  13. package/dist/configurators/codebuddy.js.map +1 -1
  14. package/dist/configurators/codex.d.ts +0 -36
  15. package/dist/configurators/codex.d.ts.map +1 -1
  16. package/dist/configurators/codex.js +2 -99
  17. package/dist/configurators/codex.js.map +1 -1
  18. package/dist/configurators/copilot.d.ts +1 -12
  19. package/dist/configurators/copilot.d.ts.map +1 -1
  20. package/dist/configurators/copilot.js +2 -20
  21. package/dist/configurators/copilot.js.map +1 -1
  22. package/dist/configurators/cursor.d.ts +1 -8
  23. package/dist/configurators/cursor.d.ts.map +1 -1
  24. package/dist/configurators/cursor.js +2 -12
  25. package/dist/configurators/cursor.js.map +1 -1
  26. package/dist/configurators/droid.d.ts +1 -8
  27. package/dist/configurators/droid.d.ts.map +1 -1
  28. package/dist/configurators/droid.js +2 -12
  29. package/dist/configurators/droid.js.map +1 -1
  30. package/dist/configurators/dsh.d.ts +1 -21
  31. package/dist/configurators/dsh.d.ts.map +1 -1
  32. package/dist/configurators/dsh.js +4 -37
  33. package/dist/configurators/dsh.js.map +1 -1
  34. package/dist/configurators/gemini.d.ts +1 -16
  35. package/dist/configurators/gemini.d.ts.map +1 -1
  36. package/dist/configurators/gemini.js +3 -21
  37. package/dist/configurators/gemini.js.map +1 -1
  38. package/dist/configurators/grok.d.ts +1 -12
  39. package/dist/configurators/grok.d.ts.map +1 -1
  40. package/dist/configurators/grok.js +2 -18
  41. package/dist/configurators/grok.js.map +1 -1
  42. package/dist/configurators/kimi.d.ts +1 -21
  43. package/dist/configurators/kimi.d.ts.map +1 -1
  44. package/dist/configurators/kimi.js +2 -38
  45. package/dist/configurators/kimi.js.map +1 -1
  46. package/dist/configurators/kiro.d.ts +1 -9
  47. package/dist/configurators/kiro.d.ts.map +1 -1
  48. package/dist/configurators/kiro.js +1 -9
  49. package/dist/configurators/kiro.js.map +1 -1
  50. package/dist/configurators/omp.d.ts.map +1 -1
  51. package/dist/configurators/omp.js +1 -5
  52. package/dist/configurators/omp.js.map +1 -1
  53. package/dist/configurators/pi.d.ts.map +1 -1
  54. package/dist/configurators/pi.js +2 -5
  55. package/dist/configurators/pi.js.map +1 -1
  56. package/dist/configurators/qoder.d.ts +1 -10
  57. package/dist/configurators/qoder.d.ts.map +1 -1
  58. package/dist/configurators/qoder.js +3 -15
  59. package/dist/configurators/qoder.js.map +1 -1
  60. package/dist/configurators/reasonix.d.ts +1 -12
  61. package/dist/configurators/reasonix.d.ts.map +1 -1
  62. package/dist/configurators/reasonix.js +3 -22
  63. package/dist/configurators/reasonix.js.map +1 -1
  64. package/dist/configurators/shared.d.ts +1 -24
  65. package/dist/configurators/shared.d.ts.map +1 -1
  66. package/dist/configurators/shared.js +5 -184
  67. package/dist/configurators/shared.js.map +1 -1
  68. package/dist/configurators/snow.d.ts +1 -20
  69. package/dist/configurators/snow.d.ts.map +1 -1
  70. package/dist/configurators/snow.js +2 -25
  71. package/dist/configurators/snow.js.map +1 -1
  72. package/dist/configurators/trae.d.ts +1 -14
  73. package/dist/configurators/trae.d.ts.map +1 -1
  74. package/dist/configurators/trae.js +3 -19
  75. package/dist/configurators/trae.js.map +1 -1
  76. package/dist/configurators/zcode.d.ts +1 -13
  77. package/dist/configurators/zcode.d.ts.map +1 -1
  78. package/dist/configurators/zcode.js +2 -18
  79. package/dist/configurators/zcode.js.map +1 -1
  80. package/dist/migrations/manifests/0.5.0-beta.5.json +1 -212
  81. package/dist/migrations/manifests/0.7.2-beta.13.json +9 -0
  82. package/dist/migrations/manifests/0.7.2-beta.14.json +9 -0
  83. package/dist/migrations/manifests/0.7.2-beta.15.json +9 -0
  84. package/dist/migrations/manifests/0.7.2-beta.16.json +9 -0
  85. package/dist/migrations/manifests/0.7.2-beta.17.json +9 -0
  86. package/dist/migrations/retired-native-paths.d.ts +109 -0
  87. package/dist/migrations/retired-native-paths.d.ts.map +1 -0
  88. package/dist/migrations/retired-native-paths.js +263 -0
  89. package/dist/migrations/retired-native-paths.js.map +1 -0
  90. package/dist/templates/claude/index.d.ts +1 -16
  91. package/dist/templates/claude/index.d.ts.map +1 -1
  92. package/dist/templates/claude/index.js +5 -32
  93. package/dist/templates/claude/index.js.map +1 -1
  94. package/dist/templates/claude/settings.json +0 -22
  95. package/dist/templates/codebuddy/index.d.ts +2 -3
  96. package/dist/templates/codebuddy/index.d.ts.map +1 -1
  97. package/dist/templates/codebuddy/index.js +2 -3
  98. package/dist/templates/codebuddy/index.js.map +1 -1
  99. package/dist/templates/codebuddy/settings.json +0 -10
  100. package/dist/templates/codex/config.toml +2 -19
  101. package/dist/templates/codex/hooks/session-start.py +1 -1
  102. package/dist/templates/codex/hooks.json +0 -12
  103. package/dist/templates/codex/index.d.ts +0 -5
  104. package/dist/templates/codex/index.d.ts.map +1 -1
  105. package/dist/templates/codex/index.js +0 -13
  106. package/dist/templates/codex/index.js.map +1 -1
  107. package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +7 -7
  108. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-agents.md +9 -51
  109. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-context-loading.md +3 -15
  110. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-hooks.md +1 -2
  111. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/context-injection.md +4 -9
  112. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/generated-files.md +2 -2
  113. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/overview.md +1 -1
  114. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/spec-system.md +1 -1
  115. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/agents.md +9 -79
  116. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/hooks-and-settings.md +2 -4
  117. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/overview.md +3 -6
  118. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/platform-map.md +24 -103
  119. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/skills-and-commands.md +1 -1
  120. package/dist/templates/common/bundled-skills/trellis-session-insight/SKILL.md +1 -1
  121. package/dist/templates/copilot/hooks/session-start.py +1 -1
  122. package/dist/templates/cursor/hooks.json +0 -7
  123. package/dist/templates/cursor/index.d.ts +1 -11
  124. package/dist/templates/cursor/index.d.ts.map +1 -1
  125. package/dist/templates/cursor/index.js +2 -10
  126. package/dist/templates/cursor/index.js.map +1 -1
  127. package/dist/templates/droid/index.d.ts +2 -3
  128. package/dist/templates/droid/index.d.ts.map +1 -1
  129. package/dist/templates/droid/index.js +2 -3
  130. package/dist/templates/droid/index.js.map +1 -1
  131. package/dist/templates/droid/settings.json +0 -10
  132. package/dist/templates/dsh/DSH.md +2 -33
  133. package/dist/templates/dsh/index.d.ts +1 -19
  134. package/dist/templates/dsh/index.d.ts.map +1 -1
  135. package/dist/templates/dsh/index.js +2 -21
  136. package/dist/templates/dsh/index.js.map +1 -1
  137. package/dist/templates/gemini/index.d.ts +1 -11
  138. package/dist/templates/gemini/index.d.ts.map +1 -1
  139. package/dist/templates/gemini/index.js +2 -10
  140. package/dist/templates/gemini/index.js.map +1 -1
  141. package/dist/templates/kiro/index.d.ts +1 -13
  142. package/dist/templates/kiro/index.d.ts.map +1 -1
  143. package/dist/templates/kiro/index.js +1 -13
  144. package/dist/templates/kiro/index.js.map +1 -1
  145. package/dist/templates/markdown/agents.md +6 -3
  146. package/dist/templates/omp/extensions/trellis/index.ts.txt +11 -51
  147. package/dist/templates/omp/index.d.ts +0 -2
  148. package/dist/templates/omp/index.d.ts.map +1 -1
  149. package/dist/templates/omp/index.js +1 -4
  150. package/dist/templates/omp/index.js.map +1 -1
  151. package/dist/templates/opencode/lib/trellis-context.js +12 -321
  152. package/dist/templates/opencode/plugins/inject-shell-session-context.js +93 -0
  153. package/dist/templates/opencode/plugins/inject-workflow-state.js +4 -10
  154. package/dist/templates/opencode/plugins/session-start.js +2 -6
  155. package/dist/templates/pi/extensions/trellis/index.ts.txt +8 -1432
  156. package/dist/templates/pi/index.d.ts +1 -2
  157. package/dist/templates/pi/index.d.ts.map +1 -1
  158. package/dist/templates/pi/index.js +2 -5
  159. package/dist/templates/pi/index.js.map +1 -1
  160. package/dist/templates/qoder/index.d.ts +2 -3
  161. package/dist/templates/qoder/index.d.ts.map +1 -1
  162. package/dist/templates/qoder/index.js +2 -3
  163. package/dist/templates/qoder/index.js.map +1 -1
  164. package/dist/templates/shared-hooks/index.d.ts +2 -56
  165. package/dist/templates/shared-hooks/index.d.ts.map +1 -1
  166. package/dist/templates/shared-hooks/index.js +3 -70
  167. package/dist/templates/shared-hooks/index.js.map +1 -1
  168. package/dist/templates/shared-hooks/inject-spec-context.py +6 -35
  169. package/dist/templates/shared-hooks/inject-workflow-state.py +3 -77
  170. package/dist/templates/shared-hooks/session-start.py +1 -1
  171. package/dist/templates/snow/SNOW.md +6 -18
  172. package/dist/templates/snow/hooks/write-trellis-context.py +51 -133
  173. package/dist/templates/snow/index.d.ts +2 -21
  174. package/dist/templates/snow/index.d.ts.map +1 -1
  175. package/dist/templates/snow/index.js +3 -24
  176. package/dist/templates/snow/index.js.map +1 -1
  177. package/dist/templates/template-utils.d.ts +1 -2
  178. package/dist/templates/template-utils.d.ts.map +1 -1
  179. package/dist/templates/template-utils.js +1 -11
  180. package/dist/templates/template-utils.js.map +1 -1
  181. package/dist/templates/trae/index.d.ts +2 -3
  182. package/dist/templates/trae/index.d.ts.map +1 -1
  183. package/dist/templates/trae/index.js +2 -3
  184. package/dist/templates/trae/index.js.map +1 -1
  185. package/dist/templates/trellis/config.yaml +7 -36
  186. package/dist/templates/trellis/scripts/common/config.py +1 -36
  187. package/dist/templates/trellis/scripts/common/git_context.py +3 -4
  188. package/dist/templates/trellis/scripts/common/task_context.py +3 -3
  189. package/dist/templates/trellis/scripts/common/task_store.py +1 -77
  190. package/dist/templates/trellis/scripts/common/workflow_phase.py +3 -36
  191. package/dist/templates/trellis/scripts/common/workflow_selection.py +12 -2
  192. package/dist/templates/trellis/scripts/task.py +2 -2
  193. package/dist/templates/trellis/workflow.md +1 -7
  194. package/dist/templates/zcode/config.json +0 -10
  195. package/dist/templates/zcode/index.d.ts +3 -22
  196. package/dist/templates/zcode/index.d.ts.map +1 -1
  197. package/dist/templates/zcode/index.js +3 -24
  198. package/dist/templates/zcode/index.js.map +1 -1
  199. package/dist/types/ai-tools.d.ts +0 -4
  200. package/dist/types/ai-tools.d.ts.map +1 -1
  201. package/dist/types/ai-tools.js +4 -109
  202. package/dist/types/ai-tools.js.map +1 -1
  203. package/dist/utils/ablation-store.d.ts.map +1 -1
  204. package/dist/utils/ablation-store.js +24 -0
  205. package/dist/utils/ablation-store.js.map +1 -1
  206. package/dist/utils/asset-backup.d.ts.map +1 -1
  207. package/dist/utils/asset-backup.js +3 -0
  208. package/dist/utils/asset-backup.js.map +1 -1
  209. package/dist/utils/retired-native-assets.d.ts +17 -0
  210. package/dist/utils/retired-native-assets.d.ts.map +1 -0
  211. package/dist/utils/retired-native-assets.js +235 -0
  212. package/dist/utils/retired-native-assets.js.map +1 -0
  213. package/dist/utils/uninstall-scrubbers.d.ts.map +1 -1
  214. package/dist/utils/uninstall-scrubbers.js +1 -1
  215. package/dist/utils/uninstall-scrubbers.js.map +1 -1
  216. package/package.json +2 -2
  217. package/dist/templates/claude/agents/trellis-check.md +0 -115
  218. package/dist/templates/claude/agents/trellis-implement.md +0 -110
  219. package/dist/templates/claude/agents/trellis-research.md +0 -137
  220. package/dist/templates/codebuddy/agents/trellis-check.md +0 -115
  221. package/dist/templates/codebuddy/agents/trellis-implement.md +0 -110
  222. package/dist/templates/codebuddy/agents/trellis-research.md +0 -137
  223. package/dist/templates/codex/agents/trellis-check.toml +0 -56
  224. package/dist/templates/codex/agents/trellis-implement.toml +0 -37
  225. package/dist/templates/codex/agents/trellis-research.toml +0 -78
  226. package/dist/templates/cursor/agents/trellis-check.md +0 -114
  227. package/dist/templates/cursor/agents/trellis-implement.md +0 -109
  228. package/dist/templates/cursor/agents/trellis-research.md +0 -136
  229. package/dist/templates/droid/droids/trellis-check.md +0 -107
  230. package/dist/templates/droid/droids/trellis-implement.md +0 -102
  231. package/dist/templates/droid/droids/trellis-research.md +0 -137
  232. package/dist/templates/dsh/agents/trellis-check.md +0 -99
  233. package/dist/templates/dsh/agents/trellis-implement.md +0 -106
  234. package/dist/templates/dsh/agents/trellis-research.md +0 -134
  235. package/dist/templates/gemini/agents/trellis-check.md +0 -107
  236. package/dist/templates/gemini/agents/trellis-implement.md +0 -102
  237. package/dist/templates/gemini/agents/trellis-research.md +0 -136
  238. package/dist/templates/grok/agents/trellis-check.md +0 -105
  239. package/dist/templates/grok/agents/trellis-implement.md +0 -116
  240. package/dist/templates/grok/agents/trellis-research.md +0 -146
  241. package/dist/templates/grok/index.d.ts +0 -16
  242. package/dist/templates/grok/index.d.ts.map +0 -1
  243. package/dist/templates/grok/index.js +0 -19
  244. package/dist/templates/grok/index.js.map +0 -1
  245. package/dist/templates/kimi/agents/trellis-check.md +0 -103
  246. package/dist/templates/kimi/agents/trellis-implement.md +0 -115
  247. package/dist/templates/kimi/agents/trellis-research.md +0 -144
  248. package/dist/templates/kimi/index.d.ts +0 -20
  249. package/dist/templates/kimi/index.d.ts.map +0 -1
  250. package/dist/templates/kimi/index.js +0 -23
  251. package/dist/templates/kimi/index.js.map +0 -1
  252. package/dist/templates/kiro/agents/trellis-check.json +0 -26
  253. package/dist/templates/kiro/agents/trellis-implement.json +0 -26
  254. package/dist/templates/kiro/agents/trellis-research.json +0 -30
  255. package/dist/templates/omp/agents/trellis-check.md +0 -41
  256. package/dist/templates/omp/agents/trellis-implement.md +0 -45
  257. package/dist/templates/omp/agents/trellis-research.md +0 -30
  258. package/dist/templates/opencode/agents/trellis-check.md +0 -122
  259. package/dist/templates/opencode/agents/trellis-implement.md +0 -118
  260. package/dist/templates/opencode/agents/trellis-research.md +0 -145
  261. package/dist/templates/opencode/plugins/inject-subagent-context.js +0 -569
  262. package/dist/templates/pi/agents/trellis-check.md +0 -37
  263. package/dist/templates/pi/agents/trellis-implement.md +0 -42
  264. package/dist/templates/pi/agents/trellis-research.md +0 -25
  265. package/dist/templates/qoder/agents/trellis-check.md +0 -108
  266. package/dist/templates/qoder/agents/trellis-implement.md +0 -103
  267. package/dist/templates/qoder/agents/trellis-research.md +0 -137
  268. package/dist/templates/reasonix/agents/trellis-check.md +0 -36
  269. package/dist/templates/reasonix/agents/trellis-implement.md +0 -41
  270. package/dist/templates/reasonix/index.d.ts +0 -13
  271. package/dist/templates/reasonix/index.d.ts.map +0 -1
  272. package/dist/templates/reasonix/index.js +0 -16
  273. package/dist/templates/reasonix/index.js.map +0 -1
  274. package/dist/templates/shared-hooks/inject-subagent-context.py +0 -1217
  275. package/dist/templates/snow/agents/trellis-check.md +0 -135
  276. package/dist/templates/snow/agents/trellis-implement.md +0 -153
  277. package/dist/templates/snow/agents/trellis-research.md +0 -114
  278. package/dist/templates/snow/hooks/beforeSubAgentStart.json +0 -15
  279. package/dist/templates/trae/agents/trellis-check.md +0 -108
  280. package/dist/templates/trae/agents/trellis-implement.md +0 -103
  281. package/dist/templates/trae/agents/trellis-research.md +0 -137
  282. package/dist/templates/zcode/agents/trellis-check.md +0 -109
  283. package/dist/templates/zcode/agents/trellis-implement.md +0 -111
  284. package/dist/templates/zcode/agents/trellis-research.md +0 -133
@@ -25,7 +25,6 @@ from datetime import datetime
25
25
  from pathlib import Path
26
26
 
27
27
  from .config import (
28
- get_codex_dispatch_mode,
29
28
  get_packages,
30
29
  is_monorepo,
31
30
  resolve_package,
@@ -195,52 +194,6 @@ def _task_identity_change_allowed(repo_root: Path, task_dir: Path, data: dict) -
195
194
  return True
196
195
 
197
196
 
198
- # Sub-agent platform detection + JSONL context files
199
- # =============================================================================
200
-
201
- # Config directories of platforms that consume implement.jsonl / check.jsonl.
202
- # Keep in sync with src/types/ai-tools.ts AI_TOOLS entries — these are the
203
- # platforms listed in workflow.md's "agent-capable" Skill Routing block.
204
- # Codex is checked separately because explicit inline mode does not consume
205
- # JSONL. Kilo / Antigravity / Devin are NOT in this list either: they load
206
- # specs through skills instead of JSONL.
207
- _SUBAGENT_CONFIG_DIRS: tuple[str, ...] = (
208
- ".claude",
209
- ".cursor",
210
- ".kiro",
211
- ".gemini",
212
- ".opencode",
213
- ".qoder",
214
- ".codebuddy",
215
- ".factory", # Factory Droid
216
- ".github/copilot",
217
- ".pi", # Pi Agent
218
- ".trae", # Trae IDE
219
- ".omp", # Oh My Pi
220
- ".zcode", # ZCode
221
- ".grok", # Grok Build
222
- ".kimi-code", # Kimi Code
223
- ".dsh", # DeepSeek Harness
224
- )
225
- _CODEX_CONFIG_DIR = ".codex"
226
-
227
-
228
- def _has_subagent_platform(repo_root: Path) -> bool:
229
- """Return True if any sub-agent-capable platform is configured.
230
-
231
- Detected by probing well-known config directories at the repo root. Codex
232
- counts by default through ``codex.dispatch_mode: auto`` (including the
233
- legacy ``sub-agent`` alias); explicit inline mode loads context through
234
- skills, not JSONL.
235
- """
236
- for config_dir in _SUBAGENT_CONFIG_DIRS:
237
- if (repo_root / config_dir).is_dir():
238
- return True
239
- if (repo_root / _CODEX_CONFIG_DIR).is_dir():
240
- return get_codex_dispatch_mode(repo_root) == "auto"
241
- return False
242
-
243
-
244
197
  def _parse_meta_pairs(pairs: list[str] | None) -> dict[str, str] | None:
245
198
  """Parse repeatable ``--meta key=value`` pairs into a dict.
246
199
 
@@ -580,21 +533,6 @@ def cmd_create(args: argparse.Namespace) -> int:
580
533
  encoding="utf-8",
581
534
  )
582
535
 
583
- # Create empty implement.jsonl / check.jsonl for sub-agent-capable
584
- # platforms. They stay empty until the agent curates real entries during
585
- # planning — a placeholder row would read as unresolved scaffolding to
586
- # `task.py validate` and to PR preflight, so the curation instructions go
587
- # to the console below instead of into the files. Agent-less platforms
588
- # (Kilo / Antigravity / Devin) skip this — they load specs via the
589
- # trellis-before-dev skill instead of JSONL.
590
- created_jsonl = False
591
- if _has_subagent_platform(repo_root):
592
- for jsonl_name in ("implement.jsonl", "check.jsonl"):
593
- jsonl_path = task_dir / jsonl_name
594
- if not jsonl_path.exists():
595
- jsonl_path.write_text("", encoding="utf-8")
596
- created_jsonl = True
597
-
598
536
  # Establish the bidirectional link. Both sides were validated above, so a
599
537
  # failure here is a write failure, not a bad argument.
600
538
  if parent_dir is not None and parent_data is not None:
@@ -691,21 +629,7 @@ def cmd_create(args: argparse.Namespace) -> int:
691
629
  print(" - Fill prd.md with requirements and acceptance criteria", file=sys.stderr)
692
630
  print(" - Lightweight task: PRD-only is valid", file=sys.stderr)
693
631
  print(" - Complex task: add design.md and implement.md before task.py start", file=sys.stderr)
694
- if created_jsonl:
695
- print(
696
- " - Curate implement.jsonl / check.jsonl (created empty) as spec/research "
697
- "manifests before task.py start when sub-agents need context:",
698
- file=sys.stderr,
699
- )
700
- print(
701
- ' one JSON object per line — {"file": "<path>", "reason": "<why>"}; '
702
- "spec/research docs only, no code paths",
703
- file=sys.stderr,
704
- )
705
- print(
706
- " list available specs: python3 .trellis/scripts/get_context.py --mode packages",
707
- file=sys.stderr,
708
- )
632
+ print(" - Add optional spec/research context with task.py add-context when needed", file=sys.stderr)
709
633
  print(" - Use /trellis:continue or phase context to decide the next step", file=sys.stderr)
710
634
  print("", file=sys.stderr)
711
635
 
@@ -162,42 +162,9 @@ _PLATFORM_MARKER_LABELS: dict[str, str] = {
162
162
  }
163
163
 
164
164
 
165
- def resolve_effective_platform(platform: str, config: dict) -> str:
166
- """Map ``codex`` to a dispatch-mode-namespaced virtual platform name.
167
-
168
- When ``--platform codex`` is passed, return ``"codex-sub-agent"`` by
169
- default or ``"codex-inline"`` when explicitly configured in
170
- ``.trellis/config.yaml``. ``sub-agent`` remains an alias for ``auto``.
171
- ``filter_platform`` then surfaces blocks whose marker lists include the
172
- namespaced name (e.g. ``[codex-sub-agent, ...]`` or ``[codex-inline, Kilo,
173
- Antigravity, Devin]``).
174
-
175
- Native Codex context injection supports the ``auto`` default. Invalid
176
- explicit values fall back to ``inline`` safely; this renderer deliberately
177
- does not warn because it can run in normal CLI output flows.
178
-
179
- Platforms whose marker label differs from their id resolve through
180
- ``_PLATFORM_MARKER_LABELS``. Everything else is returned unchanged.
181
- """
182
- label = _PLATFORM_MARKER_LABELS.get(platform.strip().lower())
183
- if label:
184
- return label
185
- if platform == "codex":
186
- mode = "auto"
187
- codex_cfg = config.get("codex") if isinstance(config, dict) else None
188
- if codex_cfg is not None:
189
- if not isinstance(codex_cfg, dict):
190
- mode = "inline"
191
- else:
192
- cfg_mode = str(codex_cfg.get("dispatch_mode", mode)).strip().lower()
193
- if cfg_mode == "inline":
194
- mode = "inline"
195
- elif cfg_mode in ("auto", "sub-agent"):
196
- mode = "auto"
197
- else:
198
- mode = "inline"
199
- return "codex-sub-agent" if mode == "auto" else "codex-inline"
200
- return platform
165
+ def resolve_platform_label(platform: str) -> str:
166
+ """Resolve a real host identifier to its workflow marker label."""
167
+ return _PLATFORM_MARKER_LABELS.get(platform.strip().lower(), platform)
201
168
 
202
169
 
203
170
  def filter_platform(content: str, platform: str) -> str:
@@ -44,7 +44,17 @@ WORKFLOW_ID_RE = re.compile(r"^[A-Za-z0-9_-]+$")
44
44
 
45
45
 
46
46
  def _global_workflow_md(repo_root: Path) -> Path:
47
- return repo_root / DIR_WORKFLOW / "workflow.md"
47
+ return _current_workflow(repo_root / DIR_WORKFLOW / "workflow.md")
48
+
49
+
50
+ def _current_workflow(candidate: Path) -> Path:
51
+ """Retired execution instructions may remain archived, but cannot be loaded."""
52
+ if candidate.is_file() and re.search(
53
+ r"planning-inline|in_progress-inline|<codex-mode>|已配置时可使用宿主原生 agent 路径",
54
+ candidate.read_text(encoding="utf-8"),
55
+ ):
56
+ raise ValueError(f"Retired native workflow cannot be activated: {candidate}")
57
+ return candidate
48
58
 
49
59
 
50
60
  def _library_variant(repo_root: Path, workflow_id: str | None) -> Path | None:
@@ -59,7 +69,7 @@ def _library_variant(repo_root: Path, workflow_id: str | None) -> Path | None:
59
69
  if not WORKFLOW_ID_RE.match(workflow_id):
60
70
  return None
61
71
  variant = repo_root / DIR_WORKFLOW / DIR_WORKFLOWS / f"{workflow_id}.md"
62
- return variant if variant.is_file() else None
72
+ return _current_workflow(variant) if variant.is_file() else None
63
73
 
64
74
 
65
75
  def _developer_workflow_id(repo_root: Path) -> str | None:
@@ -679,11 +679,11 @@ def main() -> int:
679
679
  file=sys.stderr,
680
680
  )
681
681
  print(
682
- "implement.jsonl / check.jsonl are now seeded on `task.py create` for",
682
+ "implement.jsonl / check.jsonl are optional; use `task.py add-context`",
683
683
  file=sys.stderr,
684
684
  )
685
685
  print(
686
- "sub-agent-capable platforms and curated by the AI during planning when needed.",
686
+ "to add explicitly selected spec/research context when needed.",
687
687
  file=sys.stderr,
688
688
  )
689
689
  print("See .trellis/workflow.md planning artifact guidance or run:", file=sys.stderr)
@@ -116,17 +116,11 @@ flowchart LR
116
116
  任务尚未初始化阶段路线。核对需求后,按适用性选择有序阶段,并为省略阶段记录理由和证据,再使用 `task.py phase init`。解决方案设计与收敛阶段的实施合同获接受且另行取得实施授权前,不得开始实施。
117
117
  [/workflow-state:planning]
118
118
 
119
- [workflow-state:planning-inline]
120
- 遵循 `planning` 的相同规划路线,并在主会话中工作。除非用户或任务合同有此要求,否则不要派发原生实施或检查 agent。
121
- [/workflow-state:planning-inline]
122
119
 
123
120
  [workflow-state:in_progress]
124
- 任务生命周期状态为 `in_progress`。读取下方当前阶段提示。任务实施与测试验证阶段按已接受合同和目标包适用规范推进,并运行与改动相称的验证。代码修改前或切换目标包时,可使用 `trellis-before-dev` 辅助定位规范;需要完整质量核验时,可使用 `trellis-check`。已配置时可使用宿主原生 agent 路径。实施变更不得超出授权范围。
121
+ 任务生命周期状态为 `in_progress`。读取下方当前阶段提示。任务实施与测试验证阶段按已接受合同和目标包适用规范推进,并运行与改动相称的验证。代码修改前或切换目标包时,可使用 `trellis-before-dev` 辅助定位规范;需要完整质量核验时,可使用 `trellis-check`。协作仅通过已授权的 trellis teamwork 或 paseo-based-parallelism;已有历史记录不授予派发权限。实施变更不得超出授权范围。
125
122
  [/workflow-state:in_progress]
126
123
 
127
- [workflow-state:in_progress-inline]
128
- 遵循 `in_progress` 的相同阶段路线,并在主会话中工作,运行与变更相称的检查。
129
- [/workflow-state:in_progress-inline]
130
124
 
131
125
  [workflow-state:goal_exploration_and_requirements]
132
126
  读取 `trellis-goal-exploration-and-requirements` 及其 `workflow.md`。用户明确确认当前需求资产 revision 前,不得离开目标探索与需求核对阶段。
@@ -26,16 +26,6 @@
26
26
  }
27
27
  ],
28
28
  "PreToolUse": [
29
- {
30
- "matcher": "Agent|Task",
31
- "hooks": [
32
- {
33
- "type": "command",
34
- "command": "{{PYTHON_CMD}} \"${ZCODE_PROJECT_DIR}/.zcode/hooks/inject-subagent-context.py\"",
35
- "timeout": 30
36
- }
37
- ]
38
- },
39
29
  {
40
30
  "matcher": "Bash",
41
31
  "hooks": [
@@ -1,25 +1,6 @@
1
- /**
2
- * ZCode template module.
3
- *
4
- * ZCode (智谱) is an agentic AI coding tool that supports multi-agent
5
- * collaboration. It stores agents as `.zcode/agents/<name>.md`
6
- * (Markdown with YAML frontmatter: name, description, color).
7
- *
8
- * trellis-implement and trellis-check use pull-based context injection.
9
- * trellis-research is intentionally standalone: it does not receive the
10
- * implement/check prelude, and persists findings under the active task's
11
- * research directory instead.
12
- *
13
- * ZCode 3.x supports a workspace hook config at `.zcode/config.json`
14
- * (SessionStart + UserPromptSubmit). Shared Python hook scripts are written
15
- * to `.zcode/hooks/` and registered via the config. The config schema is the
16
- * workspace form: `{ hooks: { enabled: true, events: { <Event>: [...] } } }`
17
- * — distinct from plugin `hooks.json` files (no `enabled`/`events` wrapper).
18
- */
19
- import { type AgentTemplate, type HookTemplate } from "../template-utils.js";
20
- export type { AgentTemplate, HookTemplate };
21
- /** Sub-agent definitions (trellis-implement, trellis-check, trellis-research). */
22
- export declare function getAllAgents(): AgentTemplate[];
1
+ /** Main-session platform assets and native context entry points. */
2
+ import { type HookTemplate } from "../template-utils.js";
3
+ export type { HookTemplate };
23
4
  /** Hook configuration written to `.zcode/config.json` (workspace config form). */
24
5
  export declare function getHooksConfig(): HookTemplate;
25
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/zcode/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC;AAI5C,kFAAkF;AAClF,wBAAgB,YAAY,IAAI,aAAa,EAAE,CAE9C;AAED,kFAAkF;AAClF,wBAAgB,cAAc,IAAI,YAAY,CAE7C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/zcode/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EAAwB,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAE/E,YAAY,EAAE,YAAY,EAAE,CAAC;AAI7B,kFAAkF;AAClF,wBAAgB,cAAc,IAAI,YAAY,CAE7C"}
@@ -1,27 +1,6 @@
1
- /**
2
- * ZCode template module.
3
- *
4
- * ZCode (智谱) is an agentic AI coding tool that supports multi-agent
5
- * collaboration. It stores agents as `.zcode/agents/<name>.md`
6
- * (Markdown with YAML frontmatter: name, description, color).
7
- *
8
- * trellis-implement and trellis-check use pull-based context injection.
9
- * trellis-research is intentionally standalone: it does not receive the
10
- * implement/check prelude, and persists findings under the active task's
11
- * research directory instead.
12
- *
13
- * ZCode 3.x supports a workspace hook config at `.zcode/config.json`
14
- * (SessionStart + UserPromptSubmit). Shared Python hook scripts are written
15
- * to `.zcode/hooks/` and registered via the config. The config schema is the
16
- * workspace form: `{ hooks: { enabled: true, events: { <Event>: [...] } } }`
17
- * — distinct from plugin `hooks.json` files (no `enabled`/`events` wrapper).
18
- */
19
- import { createTemplateReader, } from "../template-utils.js";
20
- const { listMdAgents, getSettings } = createTemplateReader(import.meta.url);
21
- /** Sub-agent definitions (trellis-implement, trellis-check, trellis-research). */
22
- export function getAllAgents() {
23
- return listMdAgents();
24
- }
1
+ /** Main-session platform assets and native context entry points. */
2
+ import { createTemplateReader } from "../template-utils.js";
3
+ const { getSettings } = createTemplateReader(import.meta.url);
25
4
  /** Hook configuration written to `.zcode/config.json` (workspace config form). */
26
5
  export function getHooksConfig() {
27
6
  return getSettings("config.json");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/zcode/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EACL,oBAAoB,GAGrB,MAAM,sBAAsB,CAAC;AAI9B,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE5E,kFAAkF;AAClF,MAAM,UAAU,YAAY;IAC1B,OAAO,YAAY,EAAE,CAAC;AACxB,CAAC;AAED,kFAAkF;AAClF,MAAM,UAAU,cAAc;IAC5B,OAAO,WAAW,CAAC,aAAa,CAAC,CAAC;AACpC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/zcode/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EAAE,oBAAoB,EAAqB,MAAM,sBAAsB,CAAC;AAI/E,MAAM,EAAE,WAAW,EAAE,GAAG,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE9D,kFAAkF;AAClF,MAAM,UAAU,cAAc;IAC5B,OAAO,WAAW,CAAC,aAAa,CAAC,CAAC;AACpC,CAAC"}
@@ -23,12 +23,8 @@ export type CliFlag = "claude" | "cursor" | "opencode" | "codex" | "kilo" | "kir
23
23
  export interface TemplateContext {
24
24
  /** Prefix for cross-referencing other commands/skills */
25
25
  cmdRefPrefix: "/trellis:" | "/trellis-" | "$" | "/" | "/skill trellis-" | "/skill:trellis-" | "trellis-";
26
- /** Description of AI executor actions shown in role tables */
27
- executorAI: "Bash scripts or Task calls" | "Bash scripts or tool calls" | "Bash scripts or Agent calls" | "Bash scripts or file reads";
28
26
  /** Label for user-invocable actions */
29
27
  userActionLabel: "Slash commands" | "Skills" | "Workflows" | "Prompts" | "Commands";
30
- /** Platform supports spawning sub-agents with isolated context */
31
- agentCapable: boolean;
32
28
  /** Platform has hook system (SessionStart, PreToolUse) */
33
29
  hasHooks: boolean;
34
30
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ai-tools.d.ts","sourceRoot":"","sources":["../../src/types/ai-tools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,MAAM,MAAM,GACd,aAAa,GACb,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,aAAa,GACb,OAAO,GACP,OAAO,GACP,WAAW,GACX,SAAS,GACT,OAAO,GACP,KAAK,GACL,IAAI,GACJ,UAAU,GACV,OAAO,GACP,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,WAAW,GACnB,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,aAAa,GACb,OAAO,GACP,OAAO,GACP,WAAW,GACX,SAAS,GACT,OAAO,GACP,KAAK,GACL,IAAI,GACJ,UAAU,GACV,OAAO,GACP,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,CAAC;AAEX;;;GAGG;AACH,MAAM,MAAM,OAAO,GACf,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,aAAa,GACb,OAAO,GACP,OAAO,GACP,WAAW,GACX,SAAS,GACT,OAAO,GACP,KAAK,GACL,IAAI,GACJ,UAAU,GACV,OAAO,GACP,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,CAAC;AAEX;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,yDAAyD;IACzD,YAAY,EACR,WAAW,GACX,WAAW,GACX,GAAG,GACH,GAAG,GACH,iBAAiB,GACjB,iBAAiB,GACjB,UAAU,CAAC;IACf,8DAA8D;IAC9D,UAAU,EACN,4BAA4B,GAC5B,4BAA4B,GAC5B,6BAA6B,GAC7B,4BAA4B,CAAC;IACjC,uCAAuC;IACvC,eAAe,EACX,gBAAgB,GAChB,QAAQ,GACR,WAAW,GACX,SAAS,GACT,UAAU,CAAC;IACf,kEAAkE;IAClE,YAAY,EAAE,OAAO,CAAC;IACtB,0DAA0D;IAC1D,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;;;;OAOG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,kEAAkE;IAClE,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,kFAAkF;IAClF,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,qEAAqE;IACrE,OAAO,EAAE,OAAO,CAAC;IACjB,yEAAyE;IACzE,cAAc,EAAE,OAAO,CAAC;IACxB,+EAA+E;IAC/E,cAAc,EAAE,OAAO,CAAC;IACxB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,sEAAsE;IACtE,eAAe,EAAE,eAAe,CAAC;CAClC;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAudjD,CAAC;AAEF;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAExD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAUtD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,EAAE,CAE3D"}
1
+ {"version":3,"file":"ai-tools.d.ts","sourceRoot":"","sources":["../../src/types/ai-tools.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,MAAM,MAAM,GACd,aAAa,GACb,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,aAAa,GACb,OAAO,GACP,OAAO,GACP,WAAW,GACX,SAAS,GACT,OAAO,GACP,KAAK,GACL,IAAI,GACJ,UAAU,GACV,OAAO,GACP,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,WAAW,GACnB,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,aAAa,GACb,OAAO,GACP,OAAO,GACP,WAAW,GACX,SAAS,GACT,OAAO,GACP,KAAK,GACL,IAAI,GACJ,UAAU,GACV,OAAO,GACP,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,CAAC;AAEX;;;GAGG;AACH,MAAM,MAAM,OAAO,GACf,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,aAAa,GACb,OAAO,GACP,OAAO,GACP,WAAW,GACX,SAAS,GACT,OAAO,GACP,KAAK,GACL,IAAI,GACJ,UAAU,GACV,OAAO,GACP,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,CAAC;AAEX;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,yDAAyD;IACzD,YAAY,EACR,WAAW,GACX,WAAW,GACX,GAAG,GACH,GAAG,GACH,iBAAiB,GACjB,iBAAiB,GACjB,UAAU,CAAC;IACf,uCAAuC;IACvC,eAAe,EACX,gBAAgB,GAChB,QAAQ,GACR,WAAW,GACX,SAAS,GACT,UAAU,CAAC;IACf,0DAA0D;IAC1D,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;;;;OAOG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,kEAAkE;IAClE,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,kFAAkF;IAClF,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,qEAAqE;IACrE,OAAO,EAAE,OAAO,CAAC;IACjB,yEAAyE;IACzE,cAAc,EAAE,OAAO,CAAC;IACxB,+EAA+E;IAC/E,cAAc,EAAE,OAAO,CAAC;IACxB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,sEAAsE;IACtE,eAAe,EAAE,eAAe,CAAC;CAClC;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,CAgXjD,CAAC;AAEF;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAExD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAUtD;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,EAAE,CAE3D"}
@@ -24,9 +24,7 @@ export const AI_TOOLS = {
24
24
  hasPythonHooks: true,
25
25
  templateContext: {
26
26
  cmdRefPrefix: "/trellis:",
27
- executorAI: "Bash scripts or Task calls",
28
27
  userActionLabel: "Slash commands",
29
- agentCapable: true,
30
28
  hasHooks: true,
31
29
  cliFlag: "claude",
32
30
  },
@@ -40,9 +38,7 @@ export const AI_TOOLS = {
40
38
  hasPythonHooks: true,
41
39
  templateContext: {
42
40
  cmdRefPrefix: "/trellis-",
43
- executorAI: "Bash scripts or Task calls",
44
41
  userActionLabel: "Slash commands",
45
- agentCapable: true,
46
42
  hasHooks: true,
47
43
  cliFlag: "cursor",
48
44
  },
@@ -58,13 +54,10 @@ export const AI_TOOLS = {
58
54
  // migrations/manifests/0.5.0-beta.0.json assumed a hook would replace it;
59
55
  // that never happened for OpenCode, so `resolveCommands`/`filterCommands`
60
56
  // (see configurators/shared.ts) still generate `/start` as the live
61
- // fallback command for this `agentCapable && !hasHooks` platform.
62
57
  hasPythonHooks: false,
63
58
  templateContext: {
64
59
  cmdRefPrefix: "/trellis:",
65
- executorAI: "Bash scripts or Task calls",
66
60
  userActionLabel: "Slash commands",
67
- agentCapable: true,
68
61
  hasHooks: false,
69
62
  cliFlag: "opencode",
70
63
  },
@@ -79,9 +72,7 @@ export const AI_TOOLS = {
79
72
  hasPythonHooks: true,
80
73
  templateContext: {
81
74
  cmdRefPrefix: "$",
82
- executorAI: "Bash scripts or tool calls",
83
75
  userActionLabel: "Skills",
84
- agentCapable: true,
85
76
  hasHooks: false,
86
77
  cliFlag: "codex",
87
78
  },
@@ -95,9 +86,7 @@ export const AI_TOOLS = {
95
86
  hasPythonHooks: false,
96
87
  templateContext: {
97
88
  cmdRefPrefix: "/trellis:",
98
- executorAI: "Bash scripts or file reads",
99
89
  userActionLabel: "Workflows",
100
- agentCapable: false,
101
90
  hasHooks: false,
102
91
  cliFlag: "kilo",
103
92
  },
@@ -112,9 +101,7 @@ export const AI_TOOLS = {
112
101
  hasPythonHooks: true,
113
102
  templateContext: {
114
103
  cmdRefPrefix: "$",
115
- executorAI: "Bash scripts or tool calls",
116
104
  userActionLabel: "Skills",
117
- agentCapable: true,
118
105
  hasHooks: true,
119
106
  cliFlag: "kiro",
120
107
  },
@@ -129,9 +116,7 @@ export const AI_TOOLS = {
129
116
  hasPythonHooks: true,
130
117
  templateContext: {
131
118
  cmdRefPrefix: "/trellis:",
132
- executorAI: "Bash scripts or tool calls",
133
119
  userActionLabel: "Slash commands",
134
- agentCapable: true,
135
120
  hasHooks: true,
136
121
  cliFlag: "gemini",
137
122
  },
@@ -146,9 +131,7 @@ export const AI_TOOLS = {
146
131
  hasPythonHooks: false,
147
132
  templateContext: {
148
133
  cmdRefPrefix: "/",
149
- executorAI: "Bash scripts or file reads",
150
134
  userActionLabel: "Workflows",
151
- agentCapable: false,
152
135
  hasHooks: false,
153
136
  cliFlag: "antigravity",
154
137
  },
@@ -163,9 +146,7 @@ export const AI_TOOLS = {
163
146
  hasPythonHooks: false,
164
147
  templateContext: {
165
148
  cmdRefPrefix: "/trellis-",
166
- executorAI: "Bash scripts or file reads",
167
149
  userActionLabel: "Workflows",
168
- agentCapable: false,
169
150
  hasHooks: false,
170
151
  cliFlag: "devin",
171
152
  },
@@ -179,9 +160,7 @@ export const AI_TOOLS = {
179
160
  hasPythonHooks: true,
180
161
  templateContext: {
181
162
  cmdRefPrefix: "$",
182
- executorAI: "Bash scripts or tool calls",
183
163
  userActionLabel: "Skills",
184
- agentCapable: true,
185
164
  hasHooks: true,
186
165
  cliFlag: "qoder",
187
166
  },
@@ -195,9 +174,7 @@ export const AI_TOOLS = {
195
174
  hasPythonHooks: true,
196
175
  templateContext: {
197
176
  cmdRefPrefix: "/trellis:",
198
- executorAI: "Bash scripts or Task calls",
199
177
  userActionLabel: "Slash commands",
200
- agentCapable: true,
201
178
  hasHooks: true,
202
179
  cliFlag: "codebuddy",
203
180
  },
@@ -218,9 +195,7 @@ export const AI_TOOLS = {
218
195
  hasPythonHooks: true,
219
196
  templateContext: {
220
197
  cmdRefPrefix: "/",
221
- executorAI: "Bash scripts or tool calls",
222
198
  userActionLabel: "Prompts",
223
- agentCapable: true,
224
199
  hasHooks: true,
225
200
  cliFlag: "copilot",
226
201
  },
@@ -234,36 +209,12 @@ export const AI_TOOLS = {
234
209
  hasPythonHooks: true,
235
210
  templateContext: {
236
211
  cmdRefPrefix: "/trellis-",
237
- executorAI: "Bash scripts or Task calls",
238
212
  userActionLabel: "Slash commands",
239
- agentCapable: true,
240
213
  hasHooks: true,
241
214
  cliFlag: "droid",
242
215
  },
243
216
  },
244
- /**
245
- * DeepSeek Harness (dsh) — class-2 pull-based platform.
246
- *
247
- * DSH discovers skills from `<projectRoot>/.agents/skills/` (shared root,
248
- * rank 200) and `<projectRoot>/.dsh/skills/` (DSH-private root, rank 100),
249
- * plus user roots under `$DSH_HOME/skills` / `$DSH_AGENTS_HOME/skills`.
250
- * SKILL.md frontmatter uses `name` (kebab-case) + `description`, matching
251
- * Trellis's skill rendering. The model loads skills via the `skill` tool;
252
- * users can load entry points by their `trellis-<name>` skill names. DSH
253
- * surfaces that expose the slash pipeline may also accept `/trellis-<name>`.
254
- *
255
- * DSH injects project `AGENTS.md` at session start (workspace instructions)
256
- * and supports isolated sub-agents through the `subagent` tool, so Trellis
257
- * ships as class-2: workflow/bundled skills go to the shared `.agents/skills/`
258
- * root via the neutral resolver (byte-identical to Codex/Gemini/Pi/Kimi
259
- * writes), while DSH-private entry points (trellis-start / trellis-continue /
260
- * trellis-finish-work) and collision-free role skills
261
- * (trellis-agent-implement / trellis-agent-check / trellis-agent-research)
262
- * live under `.dsh/skills/` with the pull-based prelude on implement/check.
263
- *
264
- * DSH has no project-level hooks/settings file Trellis may write, so
265
- * hasHooks/hasPythonHooks stay false and no hook assets are emitted.
266
- */
217
+ /** Main-session platform assets and native context entry points. */
267
218
  dsh: {
268
219
  name: "DeepSeek Harness (dsh)",
269
220
  templateDirs: ["common", "dsh"],
@@ -274,9 +225,7 @@ export const AI_TOOLS = {
274
225
  hasPythonHooks: false,
275
226
  templateContext: {
276
227
  cmdRefPrefix: "trellis-",
277
- executorAI: "Bash scripts or tool calls",
278
228
  userActionLabel: "Skills",
279
- agentCapable: true,
280
229
  hasHooks: false,
281
230
  cliFlag: "dsh",
282
231
  },
@@ -295,9 +244,7 @@ export const AI_TOOLS = {
295
244
  hasPythonHooks: false,
296
245
  templateContext: {
297
246
  cmdRefPrefix: "/trellis-",
298
- executorAI: "Bash scripts or tool calls",
299
247
  userActionLabel: "Slash commands",
300
- agentCapable: true,
301
248
  hasHooks: true,
302
249
  cliFlag: "pi",
303
250
  },
@@ -311,9 +258,7 @@ export const AI_TOOLS = {
311
258
  hasPythonHooks: false,
312
259
  templateContext: {
313
260
  cmdRefPrefix: "/skill trellis-",
314
- executorAI: "Bash scripts or tool calls",
315
261
  userActionLabel: "Skills",
316
- agentCapable: true,
317
262
  hasHooks: false,
318
263
  cliFlag: "reasonix",
319
264
  },
@@ -346,13 +291,10 @@ export const AI_TOOLS = {
346
291
  },
347
292
  templateContext: {
348
293
  cmdRefPrefix: "/trellis:",
349
- executorAI: "Bash scripts or Agent calls",
350
294
  userActionLabel: "Skills",
351
- agentCapable: true,
352
295
  // ZCode supports project hook registration through .zcode/config.json.
353
296
  // On builds that disable it, the optional global trellis-bridge plugin
354
297
  // registers the same events and delegates to the project hook scripts.
355
- // PreToolUse can mutate sub-agent prompts, so either path is class-1.
356
298
  hasHooks: true,
357
299
  cliFlag: "zcode",
358
300
  },
@@ -366,9 +308,7 @@ export const AI_TOOLS = {
366
308
  hasPythonHooks: true,
367
309
  templateContext: {
368
310
  cmdRefPrefix: "/trellis-",
369
- executorAI: "Bash scripts or tool calls",
370
311
  userActionLabel: "Commands",
371
- agentCapable: true,
372
312
  hasHooks: true,
373
313
  cliFlag: "trae",
374
314
  },
@@ -382,21 +322,12 @@ export const AI_TOOLS = {
382
322
  hasPythonHooks: false,
383
323
  templateContext: {
384
324
  cmdRefPrefix: "/trellis:",
385
- executorAI: "Bash scripts or Task calls",
386
325
  userActionLabel: "Slash commands",
387
- agentCapable: true,
388
326
  hasHooks: true,
389
327
  cliFlag: "omp",
390
328
  },
391
329
  },
392
- /**
393
- * Grok Build (xAI) — class-2 pull-based platform.
394
- *
395
- * Phase 0 verified (Grok 0.2.101): skills/agents/AGENTS.md load correctly;
396
- * Claude-style hook `additionalContext` is NOT injected into the model.
397
- * Do not set hasHooks/hasPythonHooks true until Grok consumes hook stdout.
398
- * Commands are flat under `.grok/commands/trellis-*.md` (Grok slash-command layout).
399
- */
330
+ /** Main-session platform assets and native context entry points. */
400
331
  grok: {
401
332
  name: "Grok Build",
402
333
  templateDirs: ["common", "grok"],
@@ -407,29 +338,12 @@ export const AI_TOOLS = {
407
338
  hasPythonHooks: false,
408
339
  templateContext: {
409
340
  cmdRefPrefix: "/trellis-",
410
- executorAI: "Bash scripts or Agent calls",
411
341
  userActionLabel: "Skills",
412
- agentCapable: true,
413
342
  hasHooks: false,
414
343
  cliFlag: "grok",
415
344
  },
416
345
  },
417
- /**
418
- * Kimi Code CLI — class-2 pull-based platform.
419
- *
420
- * Kimi reads project skills from `.kimi-code/skills/` AND the shared
421
- * `.agents/skills/` (agentskills.io standard), so workflow/bundled skills go
422
- * to the shared root via the neutral resolver (byte-identical to
423
- * Codex/Gemini/Pi writes) while user-invocable entry points
424
- * (`trellis-start` / `trellis-continue` / `trellis-finish-work`, invoked as
425
- * `/skill:trellis-<name>`) and the Trellis sub-agent prompts live under
426
- * `.kimi-code/skills/`.
427
- *
428
- * Kimi has no project-level hooks/settings file Trellis may write (hooks are
429
- * user-level `~/.kimi-code/config.toml` only) and no project-level custom
430
- * sub-agent definitions (only the built-in coder/explore/plan sub-agents), so
431
- * the Trellis agent prompts ship as skills with the pull-based prelude.
432
- */
346
+ /** Main-session platform assets and native context entry points. */
433
347
  kimi: {
434
348
  name: "Kimi Code",
435
349
  templateDirs: ["common", "kimi"],
@@ -440,29 +354,12 @@ export const AI_TOOLS = {
440
354
  hasPythonHooks: false,
441
355
  templateContext: {
442
356
  cmdRefPrefix: "/skill:trellis-",
443
- executorAI: "Bash scripts or Agent calls",
444
357
  userActionLabel: "Slash commands",
445
- agentCapable: true,
446
358
  hasHooks: false,
447
359
  cliFlag: "kimi",
448
360
  },
449
361
  },
450
- /**
451
- * Snow CLI - class-1 platform.
452
- *
453
- * Skills: `.snow/skills/` (Claude Code Skills compatible)
454
- * Commands: `.snow/commands/trellis-*.json` (type: prompt)
455
- * Agents: `.snow/agents/` (project discovery; no class-2 pull prelude)
456
- * Hooks: `.snow/hooks/` emit additionalContext JSON (session/user/sub-agent)
457
- *
458
- * hasHooks=true: SessionStart injects context -> trellis-start is filtered out.
459
- * hasPythonHooks=true: ships write-trellis-context.py under .snow/hooks/.
460
- * Primary agent path is `.snow/agents/*.md` only (no legacy JSON fragment).
461
- *
462
- * CLI flag: `--snow`.
463
- * Detection requires Trellis-owned template hashes under `.snow/skills`, so
464
- * native Snow settings, commands, agents, or skills are not false positives.
465
- */
362
+ /** Main-session platform assets and native context entry points. */
466
363
  snow: {
467
364
  name: "Snow CLI",
468
365
  templateDirs: ["common", "snow"],
@@ -478,9 +375,7 @@ export const AI_TOOLS = {
478
375
  hasPythonHooks: true,
479
376
  templateContext: {
480
377
  cmdRefPrefix: "/trellis-",
481
- executorAI: "Bash scripts or Agent calls",
482
378
  userActionLabel: "Skills",
483
- agentCapable: true,
484
379
  hasHooks: true,
485
380
  cliFlag: "snow",
486
381
  },