@pennixrv/trellis 0.7.2-beta.12 → 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 (283) 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 +23 -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/retired-native-paths.d.ts +109 -0
  86. package/dist/migrations/retired-native-paths.d.ts.map +1 -0
  87. package/dist/migrations/retired-native-paths.js +263 -0
  88. package/dist/migrations/retired-native-paths.js.map +1 -0
  89. package/dist/templates/claude/index.d.ts +1 -16
  90. package/dist/templates/claude/index.d.ts.map +1 -1
  91. package/dist/templates/claude/index.js +5 -32
  92. package/dist/templates/claude/index.js.map +1 -1
  93. package/dist/templates/claude/settings.json +0 -22
  94. package/dist/templates/codebuddy/index.d.ts +2 -3
  95. package/dist/templates/codebuddy/index.d.ts.map +1 -1
  96. package/dist/templates/codebuddy/index.js +2 -3
  97. package/dist/templates/codebuddy/index.js.map +1 -1
  98. package/dist/templates/codebuddy/settings.json +0 -10
  99. package/dist/templates/codex/config.toml +2 -19
  100. package/dist/templates/codex/hooks/session-start.py +1 -1
  101. package/dist/templates/codex/hooks.json +0 -12
  102. package/dist/templates/codex/index.d.ts +0 -5
  103. package/dist/templates/codex/index.d.ts.map +1 -1
  104. package/dist/templates/codex/index.js +0 -13
  105. package/dist/templates/codex/index.js.map +1 -1
  106. package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +7 -7
  107. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-agents.md +9 -51
  108. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-context-loading.md +3 -15
  109. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-hooks.md +1 -2
  110. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/context-injection.md +4 -9
  111. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/generated-files.md +2 -2
  112. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/overview.md +1 -1
  113. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/spec-system.md +1 -1
  114. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/agents.md +9 -79
  115. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/hooks-and-settings.md +2 -4
  116. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/overview.md +3 -6
  117. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/platform-map.md +24 -103
  118. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/skills-and-commands.md +1 -1
  119. package/dist/templates/common/bundled-skills/trellis-session-insight/SKILL.md +1 -1
  120. package/dist/templates/copilot/hooks/session-start.py +1 -1
  121. package/dist/templates/cursor/hooks.json +0 -7
  122. package/dist/templates/cursor/index.d.ts +1 -11
  123. package/dist/templates/cursor/index.d.ts.map +1 -1
  124. package/dist/templates/cursor/index.js +2 -10
  125. package/dist/templates/cursor/index.js.map +1 -1
  126. package/dist/templates/droid/index.d.ts +2 -3
  127. package/dist/templates/droid/index.d.ts.map +1 -1
  128. package/dist/templates/droid/index.js +2 -3
  129. package/dist/templates/droid/index.js.map +1 -1
  130. package/dist/templates/droid/settings.json +0 -10
  131. package/dist/templates/dsh/DSH.md +2 -33
  132. package/dist/templates/dsh/index.d.ts +1 -19
  133. package/dist/templates/dsh/index.d.ts.map +1 -1
  134. package/dist/templates/dsh/index.js +2 -21
  135. package/dist/templates/dsh/index.js.map +1 -1
  136. package/dist/templates/gemini/index.d.ts +1 -11
  137. package/dist/templates/gemini/index.d.ts.map +1 -1
  138. package/dist/templates/gemini/index.js +2 -10
  139. package/dist/templates/gemini/index.js.map +1 -1
  140. package/dist/templates/kiro/index.d.ts +1 -13
  141. package/dist/templates/kiro/index.d.ts.map +1 -1
  142. package/dist/templates/kiro/index.js +1 -13
  143. package/dist/templates/kiro/index.js.map +1 -1
  144. package/dist/templates/markdown/agents.md +6 -3
  145. package/dist/templates/omp/extensions/trellis/index.ts.txt +11 -51
  146. package/dist/templates/omp/index.d.ts +0 -2
  147. package/dist/templates/omp/index.d.ts.map +1 -1
  148. package/dist/templates/omp/index.js +1 -4
  149. package/dist/templates/omp/index.js.map +1 -1
  150. package/dist/templates/opencode/lib/trellis-context.js +12 -321
  151. package/dist/templates/opencode/plugins/inject-shell-session-context.js +93 -0
  152. package/dist/templates/opencode/plugins/inject-workflow-state.js +4 -10
  153. package/dist/templates/opencode/plugins/session-start.js +2 -6
  154. package/dist/templates/pi/extensions/trellis/index.ts.txt +8 -1432
  155. package/dist/templates/pi/index.d.ts +1 -2
  156. package/dist/templates/pi/index.d.ts.map +1 -1
  157. package/dist/templates/pi/index.js +2 -5
  158. package/dist/templates/pi/index.js.map +1 -1
  159. package/dist/templates/qoder/index.d.ts +2 -3
  160. package/dist/templates/qoder/index.d.ts.map +1 -1
  161. package/dist/templates/qoder/index.js +2 -3
  162. package/dist/templates/qoder/index.js.map +1 -1
  163. package/dist/templates/shared-hooks/index.d.ts +2 -56
  164. package/dist/templates/shared-hooks/index.d.ts.map +1 -1
  165. package/dist/templates/shared-hooks/index.js +3 -70
  166. package/dist/templates/shared-hooks/index.js.map +1 -1
  167. package/dist/templates/shared-hooks/inject-spec-context.py +6 -35
  168. package/dist/templates/shared-hooks/inject-workflow-state.py +3 -77
  169. package/dist/templates/shared-hooks/session-start.py +1 -1
  170. package/dist/templates/snow/SNOW.md +6 -18
  171. package/dist/templates/snow/hooks/write-trellis-context.py +51 -133
  172. package/dist/templates/snow/index.d.ts +2 -21
  173. package/dist/templates/snow/index.d.ts.map +1 -1
  174. package/dist/templates/snow/index.js +3 -24
  175. package/dist/templates/snow/index.js.map +1 -1
  176. package/dist/templates/template-utils.d.ts +1 -2
  177. package/dist/templates/template-utils.d.ts.map +1 -1
  178. package/dist/templates/template-utils.js +1 -11
  179. package/dist/templates/template-utils.js.map +1 -1
  180. package/dist/templates/trae/index.d.ts +2 -3
  181. package/dist/templates/trae/index.d.ts.map +1 -1
  182. package/dist/templates/trae/index.js +2 -3
  183. package/dist/templates/trae/index.js.map +1 -1
  184. package/dist/templates/trellis/config.yaml +7 -36
  185. package/dist/templates/trellis/scripts/common/config.py +1 -36
  186. package/dist/templates/trellis/scripts/common/git_context.py +3 -4
  187. package/dist/templates/trellis/scripts/common/task_context.py +3 -3
  188. package/dist/templates/trellis/scripts/common/task_store.py +1 -77
  189. package/dist/templates/trellis/scripts/common/workflow_phase.py +3 -36
  190. package/dist/templates/trellis/scripts/common/workflow_selection.py +12 -2
  191. package/dist/templates/trellis/scripts/task.py +2 -2
  192. package/dist/templates/trellis/workflow.md +1 -7
  193. package/dist/templates/zcode/config.json +0 -10
  194. package/dist/templates/zcode/index.d.ts +3 -22
  195. package/dist/templates/zcode/index.d.ts.map +1 -1
  196. package/dist/templates/zcode/index.js +3 -24
  197. package/dist/templates/zcode/index.js.map +1 -1
  198. package/dist/types/ai-tools.d.ts +0 -4
  199. package/dist/types/ai-tools.d.ts.map +1 -1
  200. package/dist/types/ai-tools.js +4 -109
  201. package/dist/types/ai-tools.js.map +1 -1
  202. package/dist/utils/ablation-store.d.ts.map +1 -1
  203. package/dist/utils/ablation-store.js +24 -0
  204. package/dist/utils/ablation-store.js.map +1 -1
  205. package/dist/utils/asset-backup.d.ts.map +1 -1
  206. package/dist/utils/asset-backup.js +3 -0
  207. package/dist/utils/asset-backup.js.map +1 -1
  208. package/dist/utils/retired-native-assets.d.ts +16 -0
  209. package/dist/utils/retired-native-assets.d.ts.map +1 -0
  210. package/dist/utils/retired-native-assets.js +234 -0
  211. package/dist/utils/retired-native-assets.js.map +1 -0
  212. package/dist/utils/uninstall-scrubbers.d.ts.map +1 -1
  213. package/dist/utils/uninstall-scrubbers.js +1 -1
  214. package/dist/utils/uninstall-scrubbers.js.map +1 -1
  215. package/package.json +2 -2
  216. package/dist/templates/claude/agents/trellis-check.md +0 -115
  217. package/dist/templates/claude/agents/trellis-implement.md +0 -110
  218. package/dist/templates/claude/agents/trellis-research.md +0 -137
  219. package/dist/templates/codebuddy/agents/trellis-check.md +0 -115
  220. package/dist/templates/codebuddy/agents/trellis-implement.md +0 -110
  221. package/dist/templates/codebuddy/agents/trellis-research.md +0 -137
  222. package/dist/templates/codex/agents/trellis-check.toml +0 -56
  223. package/dist/templates/codex/agents/trellis-implement.toml +0 -37
  224. package/dist/templates/codex/agents/trellis-research.toml +0 -78
  225. package/dist/templates/cursor/agents/trellis-check.md +0 -114
  226. package/dist/templates/cursor/agents/trellis-implement.md +0 -109
  227. package/dist/templates/cursor/agents/trellis-research.md +0 -136
  228. package/dist/templates/droid/droids/trellis-check.md +0 -107
  229. package/dist/templates/droid/droids/trellis-implement.md +0 -102
  230. package/dist/templates/droid/droids/trellis-research.md +0 -137
  231. package/dist/templates/dsh/agents/trellis-check.md +0 -99
  232. package/dist/templates/dsh/agents/trellis-implement.md +0 -106
  233. package/dist/templates/dsh/agents/trellis-research.md +0 -134
  234. package/dist/templates/gemini/agents/trellis-check.md +0 -107
  235. package/dist/templates/gemini/agents/trellis-implement.md +0 -102
  236. package/dist/templates/gemini/agents/trellis-research.md +0 -136
  237. package/dist/templates/grok/agents/trellis-check.md +0 -105
  238. package/dist/templates/grok/agents/trellis-implement.md +0 -116
  239. package/dist/templates/grok/agents/trellis-research.md +0 -146
  240. package/dist/templates/grok/index.d.ts +0 -16
  241. package/dist/templates/grok/index.d.ts.map +0 -1
  242. package/dist/templates/grok/index.js +0 -19
  243. package/dist/templates/grok/index.js.map +0 -1
  244. package/dist/templates/kimi/agents/trellis-check.md +0 -103
  245. package/dist/templates/kimi/agents/trellis-implement.md +0 -115
  246. package/dist/templates/kimi/agents/trellis-research.md +0 -144
  247. package/dist/templates/kimi/index.d.ts +0 -20
  248. package/dist/templates/kimi/index.d.ts.map +0 -1
  249. package/dist/templates/kimi/index.js +0 -23
  250. package/dist/templates/kimi/index.js.map +0 -1
  251. package/dist/templates/kiro/agents/trellis-check.json +0 -26
  252. package/dist/templates/kiro/agents/trellis-implement.json +0 -26
  253. package/dist/templates/kiro/agents/trellis-research.json +0 -30
  254. package/dist/templates/omp/agents/trellis-check.md +0 -41
  255. package/dist/templates/omp/agents/trellis-implement.md +0 -45
  256. package/dist/templates/omp/agents/trellis-research.md +0 -30
  257. package/dist/templates/opencode/agents/trellis-check.md +0 -122
  258. package/dist/templates/opencode/agents/trellis-implement.md +0 -118
  259. package/dist/templates/opencode/agents/trellis-research.md +0 -145
  260. package/dist/templates/opencode/plugins/inject-subagent-context.js +0 -569
  261. package/dist/templates/pi/agents/trellis-check.md +0 -37
  262. package/dist/templates/pi/agents/trellis-implement.md +0 -42
  263. package/dist/templates/pi/agents/trellis-research.md +0 -25
  264. package/dist/templates/qoder/agents/trellis-check.md +0 -108
  265. package/dist/templates/qoder/agents/trellis-implement.md +0 -103
  266. package/dist/templates/qoder/agents/trellis-research.md +0 -137
  267. package/dist/templates/reasonix/agents/trellis-check.md +0 -36
  268. package/dist/templates/reasonix/agents/trellis-implement.md +0 -41
  269. package/dist/templates/reasonix/index.d.ts +0 -13
  270. package/dist/templates/reasonix/index.d.ts.map +0 -1
  271. package/dist/templates/reasonix/index.js +0 -16
  272. package/dist/templates/reasonix/index.js.map +0 -1
  273. package/dist/templates/shared-hooks/inject-subagent-context.py +0 -1217
  274. package/dist/templates/snow/agents/trellis-check.md +0 -135
  275. package/dist/templates/snow/agents/trellis-implement.md +0 -153
  276. package/dist/templates/snow/agents/trellis-research.md +0 -114
  277. package/dist/templates/snow/hooks/beforeSubAgentStart.json +0 -15
  278. package/dist/templates/trae/agents/trellis-check.md +0 -108
  279. package/dist/templates/trae/agents/trellis-implement.md +0 -103
  280. package/dist/templates/trae/agents/trellis-research.md +0 -137
  281. package/dist/templates/zcode/agents/trellis-check.md +0 -109
  282. package/dist/templates/zcode/agents/trellis-implement.md +0 -111
  283. package/dist/templates/zcode/agents/trellis-research.md +0 -133
@@ -1,13 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
3
  "hooks": {
4
- "preToolUse": [
5
- {
6
- "command": "{{PYTHON_CMD}} .cursor/hooks/inject-subagent-context.py",
7
- "matcher": "Task|Subagent",
8
- "timeout": 30
9
- }
10
- ],
11
4
  "sessionStart": [
12
5
  {
13
6
  "command": "{{PYTHON_CMD}} .cursor/hooks/session-start.py",
@@ -1,13 +1,3 @@
1
- /**
2
- * Cursor templates
3
- *
4
- * Directory structure:
5
- * cursor/
6
- * ├── agents/ # Sub-agent definitions
7
- * └── hooks.json # Hooks configuration
8
- */
9
- import { type AgentTemplate } from "../template-utils.js";
10
- export type { AgentTemplate };
11
- export declare const getAllAgents: () => AgentTemplate[];
1
+ /** Main-session platform assets and native context entry points. */
12
2
  export declare const getHooksConfig: () => string;
13
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/cursor/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAwB,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAChF,YAAY,EAAE,aAAa,EAAE,CAAC;AAI9B,eAAO,MAAM,YAAY,QAAO,aAAa,EAAoB,CAAC;AAClE,eAAO,MAAM,cAAc,QAAO,MAAiC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/cursor/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAKpE,eAAO,MAAM,cAAc,QAAO,MAAiC,CAAC"}
@@ -1,13 +1,5 @@
1
- /**
2
- * Cursor templates
3
- *
4
- * Directory structure:
5
- * cursor/
6
- * ├── agents/ # Sub-agent definitions
7
- * └── hooks.json # Hooks configuration
8
- */
1
+ /** Main-session platform assets and native context entry points. */
9
2
  import { createTemplateReader } from "../template-utils.js";
10
- const { listMdAgents, getConfig } = createTemplateReader(import.meta.url);
11
- export const getAllAgents = () => listMdAgents();
3
+ const { getConfig } = createTemplateReader(import.meta.url);
12
4
  export const getHooksConfig = () => getConfig("hooks.json");
13
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/cursor/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,oBAAoB,EAAsB,MAAM,sBAAsB,CAAC;AAGhF,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE1E,MAAM,CAAC,MAAM,YAAY,GAAG,GAAoB,EAAE,CAAC,YAAY,EAAE,CAAC;AAClE,MAAM,CAAC,MAAM,cAAc,GAAG,GAAW,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/cursor/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,EAAE,SAAS,EAAE,GAAG,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC5D,MAAM,CAAC,MAAM,cAAc,GAAG,GAAW,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC"}
@@ -8,8 +8,7 @@
8
8
  * ├── droids/ # Multi-agent pipeline droids (agents)
9
9
  * └── settings.json # Settings configuration
10
10
  */
11
- import { type AgentTemplate, type HookTemplate } from "../template-utils.js";
12
- export type { AgentTemplate, HookTemplate };
13
- export declare const getAllDroids: () => AgentTemplate[];
11
+ import { type HookTemplate } from "../template-utils.js";
12
+ export type { HookTemplate };
14
13
  export declare const getSettingsTemplate: () => HookTemplate;
15
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/droid/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC;AAI5C,eAAO,MAAM,YAAY,QAAO,aAAa,EAA4B,CAAC;AAC1E,eAAO,MAAM,mBAAmB,QAAO,YAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/droid/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAwB,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC/E,YAAY,EAAE,YAAY,EAAE,CAAC;AAG7B,eAAO,MAAM,mBAAmB,QAAO,YAA6B,CAAC"}
@@ -8,8 +8,7 @@
8
8
  * ├── droids/ # Multi-agent pipeline droids (agents)
9
9
  * └── settings.json # Settings configuration
10
10
  */
11
- import { createTemplateReader, } from "../template-utils.js";
12
- const { listMdAgents, getSettings } = createTemplateReader(import.meta.url);
13
- export const getAllDroids = () => listMdAgents("droids");
11
+ import { createTemplateReader } from "../template-utils.js";
12
+ const { getSettings } = createTemplateReader(import.meta.url);
14
13
  export const getSettingsTemplate = () => getSettings();
15
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/droid/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EACL,oBAAoB,GAGrB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE5E,MAAM,CAAC,MAAM,YAAY,GAAG,GAAoB,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;AAC1E,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAiB,EAAE,CAAC,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/droid/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,oBAAoB,EAAqB,MAAM,sBAAsB,CAAC;AAG/E,MAAM,EAAE,WAAW,EAAE,GAAG,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC9D,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAiB,EAAE,CAAC,WAAW,EAAE,CAAC"}
@@ -33,16 +33,6 @@
33
33
  }
34
34
  ],
35
35
  "PreToolUse": [
36
- {
37
- "matcher": "Task",
38
- "hooks": [
39
- {
40
- "type": "command",
41
- "command": "{{PYTHON_CMD}} .factory/hooks/inject-subagent-context.py",
42
- "timeout": 30
43
- }
44
- ]
45
- },
46
36
  {
47
37
  "matcher": "Execute|Bash",
48
38
  "hooks": [
@@ -1,17 +1,6 @@
1
1
  # Trellis on DeepSeek Harness (dsh)
2
2
 
3
- dsh is a **class-2 pull-based** Trellis host. It discovers Trellis skills from
4
- the project, uses native continuable sub-agents for isolated implementation and
5
- review roles, and exposes a stable `DSH_SESSION_ID` to every managed shell.
6
-
7
- | Capability | Without companion plugin | With `dsh-trellis` |
8
- | --- | --- | --- |
9
- | Shared and entry skills | Works | Works |
10
- | Session-scoped active task | Works through verified `DSH_SHELL=1` + `DSH_SESSION_ID`, including nested launches | Managed per-execution identity can forward a distinct child session |
11
- | Implement/check/research roles | Foreground native sub-agent | Background native sub-agent |
12
- | Per-turn workflow breadcrumb | Not available | Injected from `workflow.md` |
13
- | Event-driven child wait | Not available | `trellis_wait` |
14
- | Utility commands | Not available | `/trellis-status`, `/trellis-finish` |
3
+ dsh discovers project Skills and exposes a stable `DSH_SESSION_ID` to managed shells. The optional companion plugin supplies main-session breadcrumbs; Trellis does not install that plugin.
15
4
 
16
5
  ## Quick start
17
6
 
@@ -24,26 +13,10 @@ In dsh:
24
13
 
25
14
  1. Describe the work in natural language and load `trellis-start` when a
26
15
  session needs explicit Trellis bootstrap.
27
- 2. The main session dispatches `trellis-agent-research`,
28
- `trellis-agent-implement`, and `trellis-agent-check` through DSH's native
29
- `subagent` tool. Each child loads exactly one matching role skill.
16
+ 2. Follow the current task phase and authorized contract. Collaboration uses `trellis teamwork` or `paseo-based-parallelism`.
30
17
  3. Use Delivery Review and On-Site Closeout Phase to review and close the task. `trellis-finish-work` records
31
18
  session progress separately and does not change task lifecycle state.
32
19
 
33
- ## Companion plugin fallback contract
34
-
35
- The Trellis adapter does not install a DSH profile plugin. Before dispatching a
36
- role, check whether the `trellis_wait` tool is available:
37
-
38
- - If available, use DSH's default continuable background mode, continue
39
- independent work, then call `trellis_wait` once per dependent child id and
40
- consume each native settlement notice before entering the dependent gate.
41
- - If unavailable, dispatch every child with `run_in_background: false` from the outset
42
- so the dependent workflow gate cannot overtake it.
43
-
44
- Never replace either path with shell sleep, polling loops, `job_output`, or
45
- repeated agent-list polling.
46
-
47
20
  ## Nested host sessions
48
21
 
49
22
  DSH inherits ordinary environment variables from the process that launches it.
@@ -62,8 +35,6 @@ from the shell's own session id.
62
35
  the other Agent Skills writers.
63
36
  - `.dsh/skills/trellis-{start,continue,finish-work}/` — DSH-private entry
64
37
  skills.
65
- - `.dsh/skills/trellis-agent-{research,implement,check}/` — child-only role
66
- skills; implement/check include the pull-based task context prelude.
67
38
  - `.dsh/DSH.md` — this operator guide.
68
39
  - `.trellis/` — workflow, specs, tasks, workspace journal, and shared scripts.
69
40
 
@@ -71,8 +42,6 @@ from the shell's own session id.
71
42
 
72
43
  - Generated Python commands use `python3` in source templates and are rendered
73
44
  to the detected Windows launcher during `trellis init` / `trellis update`.
74
- - Role dispatch prompts start with `Active task: <task path>`. This exact task
75
- path is the child's primary context source; children must not guess globally.
76
45
  - Each `dsh --profile headless` invocation creates a fresh DSH session. Do not
77
46
  expect an active-task pointer to persist across separate headless calls; keep
78
47
  the workflow in one session or explicitly resume its returned session id.
@@ -1,22 +1,4 @@
1
- /**
2
- * DeepSeek Harness (dsh) template module.
3
- *
4
- * dsh is a class-2 pull-based platform:
5
- * - Workflow/bundled skills go to the shared `.agents/skills/` root via the
6
- * neutral resolver (byte-identical to Codex/Gemini/Pi/Kimi writes).
7
- * - User-invocable entry points (`trellis-start` / `trellis-continue` /
8
- * `trellis-finish-work`) and Trellis role prompts live under
9
- * `.dsh/skills/trellis-agent-<role>/SKILL.md`.
10
- * - Operator guide `.dsh/DSH.md`.
11
- *
12
- * dsh has no project-level hooks/settings file Trellis may write and no
13
- * declarative custom sub-agent definitions, so the Trellis agent prompts ship
14
- * as skills; the main session dispatches them through the `subagent` tool and
15
- * trellis-agent-implement / trellis-agent-check get the pull-based prelude.
16
- */
17
- import { type AgentTemplate } from "../template-utils.js";
18
- /** Source role prompts; the configurator installs collision-free DSH skills. */
19
- export declare function getAllAgents(): AgentTemplate[];
1
+ /** Main-session platform assets and native context entry points. */
20
2
  /** Operator guide copied to `.dsh/DSH.md`. */
21
3
  export declare function getDshGuide(): string;
22
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/dsh/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAwB,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAIhF,gFAAgF;AAChF,wBAAgB,YAAY,IAAI,aAAa,EAAE,CAE9C;AAED,8CAA8C;AAC9C,wBAAgB,WAAW,IAAI,MAAM,CAEpC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/dsh/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAMpE,8CAA8C;AAC9C,wBAAgB,WAAW,IAAI,MAAM,CAEpC"}
@@ -1,25 +1,6 @@
1
- /**
2
- * DeepSeek Harness (dsh) template module.
3
- *
4
- * dsh is a class-2 pull-based platform:
5
- * - Workflow/bundled skills go to the shared `.agents/skills/` root via the
6
- * neutral resolver (byte-identical to Codex/Gemini/Pi/Kimi writes).
7
- * - User-invocable entry points (`trellis-start` / `trellis-continue` /
8
- * `trellis-finish-work`) and Trellis role prompts live under
9
- * `.dsh/skills/trellis-agent-<role>/SKILL.md`.
10
- * - Operator guide `.dsh/DSH.md`.
11
- *
12
- * dsh has no project-level hooks/settings file Trellis may write and no
13
- * declarative custom sub-agent definitions, so the Trellis agent prompts ship
14
- * as skills; the main session dispatches them through the `subagent` tool and
15
- * trellis-agent-implement / trellis-agent-check get the pull-based prelude.
16
- */
1
+ /** Main-session platform assets and native context entry points. */
17
2
  import { createTemplateReader } from "../template-utils.js";
18
- const { listMdAgents, readTemplate } = createTemplateReader(import.meta.url);
19
- /** Source role prompts; the configurator installs collision-free DSH skills. */
20
- export function getAllAgents() {
21
- return listMdAgents();
22
- }
3
+ const { readTemplate } = createTemplateReader(import.meta.url);
23
4
  /** Operator guide copied to `.dsh/DSH.md`. */
24
5
  export function getDshGuide() {
25
6
  return readTemplate("DSH.md");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/dsh/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,oBAAoB,EAAsB,MAAM,sBAAsB,CAAC;AAEhF,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE7E,gFAAgF;AAChF,MAAM,UAAU,YAAY;IAC1B,OAAO,YAAY,EAAE,CAAC;AACxB,CAAC;AAED,8CAA8C;AAC9C,MAAM,UAAU,WAAW;IACzB,OAAO,YAAY,CAAC,QAAQ,CAAC,CAAC;AAChC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/dsh/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,EAAE,YAAY,EAAE,GAAG,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE/D,8CAA8C;AAC9C,MAAM,UAAU,WAAW;IACzB,OAAO,YAAY,CAAC,QAAQ,CAAC,CAAC;AAChC,CAAC"}
@@ -1,13 +1,3 @@
1
- /**
2
- * Gemini CLI templates
3
- *
4
- * Directory structure:
5
- * gemini/
6
- * ├── agents/ # Sub-agent definitions
7
- * └── settings.json # Settings configuration
8
- */
9
- import { type AgentTemplate } from "../template-utils.js";
10
- export type { AgentTemplate };
11
- export declare const getAllAgents: () => AgentTemplate[];
1
+ /** Main-session platform assets and native context entry points. */
12
2
  export declare const getSettingsTemplate: () => string;
13
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/gemini/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAwB,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAChF,YAAY,EAAE,aAAa,EAAE,CAAC;AAI9B,eAAO,MAAM,YAAY,QAAO,aAAa,EAAoB,CAAC;AAClE,eAAO,MAAM,mBAAmB,QAAO,MAAoC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/gemini/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAKpE,eAAO,MAAM,mBAAmB,QAAO,MAAoC,CAAC"}
@@ -1,13 +1,5 @@
1
- /**
2
- * Gemini CLI templates
3
- *
4
- * Directory structure:
5
- * gemini/
6
- * ├── agents/ # Sub-agent definitions
7
- * └── settings.json # Settings configuration
8
- */
1
+ /** Main-session platform assets and native context entry points. */
9
2
  import { createTemplateReader } from "../template-utils.js";
10
- const { listMdAgents, getConfig } = createTemplateReader(import.meta.url);
11
- export const getAllAgents = () => listMdAgents();
3
+ const { getConfig } = createTemplateReader(import.meta.url);
12
4
  export const getSettingsTemplate = () => getConfig("settings.json");
13
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/gemini/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,oBAAoB,EAAsB,MAAM,sBAAsB,CAAC;AAGhF,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE1E,MAAM,CAAC,MAAM,YAAY,GAAG,GAAoB,EAAE,CAAC,YAAY,EAAE,CAAC;AAClE,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAW,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/gemini/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,EAAE,SAAS,EAAE,GAAG,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC5D,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAW,EAAE,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC"}
@@ -1,16 +1,4 @@
1
- /**
2
- * Kiro templates
3
- *
4
- * Kiro uses pure JSON agent definitions, not Markdown.
5
- * CLI agents embed hooks in their JSON (`hooks.agentSpawn`,
6
- * `hooks.userPromptSubmit`); the IDE surface reads standalone `.kiro.hook`
7
- * JSON files (`when`/`then` schema).
8
- *
9
- * Directory structure:
10
- * kiro/
11
- * ├── agents/ # Agent definitions (JSON) — main `trellis` + 3 sub-agents
12
- * └── hooks/ # IDE `.kiro.hook` definitions (JSON)
13
- */
1
+ /** Main-session platform assets and native context entry points. */
14
2
  import { type AgentTemplate } from "../template-utils.js";
15
3
  export type { AgentTemplate };
16
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/kiro/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAwB,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAChF,YAAY,EAAE,aAAa,EAAE,CAAC;AAM9B;;;GAGG;AACH,eAAO,MAAM,YAAY,QAAO,aAAa,EAAsB,CAAC;AAEpE,MAAM,WAAW,eAAe;IAC9B,yDAAyD;IACzD,IAAI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,QAAO,eAAe,EAGqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/kiro/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EAAwB,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAChF,YAAY,EAAE,aAAa,EAAE,CAAC;AAM9B;;;GAGG;AACH,eAAO,MAAM,YAAY,QAAO,aAAa,EAAsB,CAAC;AAEpE,MAAM,WAAW,eAAe;IAC9B,yDAAyD;IACzD,IAAI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,QAAO,eAAe,EAGqB,CAAC"}
@@ -1,16 +1,4 @@
1
- /**
2
- * Kiro templates
3
- *
4
- * Kiro uses pure JSON agent definitions, not Markdown.
5
- * CLI agents embed hooks in their JSON (`hooks.agentSpawn`,
6
- * `hooks.userPromptSubmit`); the IDE surface reads standalone `.kiro.hook`
7
- * JSON files (`when`/`then` schema).
8
- *
9
- * Directory structure:
10
- * kiro/
11
- * ├── agents/ # Agent definitions (JSON) — main `trellis` + 3 sub-agents
12
- * └── hooks/ # IDE `.kiro.hook` definitions (JSON)
13
- */
1
+ /** Main-session platform assets and native context entry points. */
14
2
  import { createTemplateReader } from "../template-utils.js";
15
3
  const { listFiles, readTemplate, listJsonAgents } = createTemplateReader(import.meta.url);
16
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/kiro/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,oBAAoB,EAAsB,MAAM,sBAAsB,CAAC;AAGhF,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,cAAc,EAAE,GAAG,oBAAoB,CACtE,MAAM,CAAC,IAAI,CAAC,GAAG,CAChB,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,GAAoB,EAAE,CAAC,cAAc,EAAE,CAAC;AASpE;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,GAAsB,EAAE,CACjD,SAAS,CAAC,OAAO,CAAC;KACf,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;KACvC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/kiro/index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAEpE,OAAO,EAAE,oBAAoB,EAAsB,MAAM,sBAAsB,CAAC;AAGhF,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,cAAc,EAAE,GAAG,oBAAoB,CACtE,MAAM,CAAC,IAAI,CAAC,GAAG,CAChB,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,GAAoB,EAAE,CAAC,cAAc,EAAE,CAAC;AASpE;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,GAAsB,EAAE,CACjD,SAAS,CAAC,OAAO,CAAC;KACf,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;KACvC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC"}
@@ -21,9 +21,12 @@ This project is managed by Trellis. The working knowledge you need lives under `
21
21
 
22
22
  If a Trellis command is available on your platform (e.g. `/trellis:finish-work`, `/trellis:continue`), prefer it over manual steps. Not every platform exposes every command.
23
23
 
24
- If you're using Codex or another agent-capable tool, additional project-scoped helpers may live in:
25
- - `.agents/skills/` — reusable Trellis skills
26
- - `.codex/agents/` — optional custom subagents
24
+ Project-scoped helpers use these native owners:
25
+ - `.agents/skills/` — reusable Trellis methods
26
+ - `.trellis/agents/` — Teamwork role cards and Paseo node methods
27
+
28
+ The main session owns task decisions and integration. Collaboration uses
29
+ `trellis teamwork` or `paseo-based-parallelism` under the authorized contract.
27
30
 
28
31
  Managed by Trellis. Edits outside this block are preserved; edits inside may be overwritten by a future `trellis update`.
29
32
 
@@ -311,23 +311,14 @@ function buildSessionContext(projectRoot: string, contextKey: string | null): st
311
311
  // Task context — prd.md, info.md, and jsonl-referenced spec/research files
312
312
  // ---------------------------------------------------------------------------
313
313
 
314
- type AgentType = "trellis-implement" | "trellis-check" | "trellis-research" | null;
315
-
316
- function taskContextJsonlNames(agentType?: AgentType): string[] {
317
- if (agentType === "trellis-implement") return ["implement.jsonl"];
318
- if (agentType === "trellis-check") return ["check.jsonl"];
319
- if (agentType === "trellis-research") return [];
320
- return ["implement.jsonl", "check.jsonl"];
321
- }
322
-
323
- function taskContextInputPaths(projectRoot: string, taskDir: string, agentType?: AgentType): string[] {
314
+ function taskContextInputPaths(projectRoot: string, taskDir: string): string[] {
324
315
  const trustedRoots = resolveTrustedRoots(projectRoot);
325
316
  const paths = new Set<string>([
326
317
  join(projectRoot, ".trellis", "config.yaml"),
327
318
  join(taskDir, "prd.md"),
328
319
  join(taskDir, "info.md"),
329
320
  ]);
330
- for (const jsonlName of taskContextJsonlNames(agentType)) {
321
+ for (const jsonlName of ["implement.jsonl", "check.jsonl"]) {
331
322
  const jsonlPath = join(taskDir, jsonlName);
332
323
  paths.add(jsonlPath);
333
324
  if (!existsSync(jsonlPath)) continue;
@@ -349,8 +340,8 @@ function taskContextInputPaths(projectRoot: string, taskDir: string, agentType?:
349
340
  return [...paths];
350
341
  }
351
342
 
352
- function taskContextSignature(projectRoot: string, taskDir: string, agentType?: AgentType): string {
353
- return taskContextInputPaths(projectRoot, taskDir, agentType).map((filePath) => {
343
+ function taskContextSignature(projectRoot: string, taskDir: string): string {
344
+ return taskContextInputPaths(projectRoot, taskDir).map((filePath) => {
354
345
  try {
355
346
  const stat = statSync(filePath);
356
347
  return `${filePath}:${stat.mtimeMs}:${stat.ctimeMs}:${stat.size}`;
@@ -630,7 +621,7 @@ function readJsonlLines(jsonlPath: string, displayPath: string): { lines: string
630
621
  }
631
622
  }
632
623
 
633
- function buildTaskContext(projectRoot: string, taskDir: string, agentType?: AgentType): string {
624
+ function buildTaskContext(projectRoot: string, taskDir: string): string {
634
625
  const parts: string[] = [];
635
626
  // Resolved once per call (not per referenced file) — avoids re-parsing
636
627
  // config.yaml for every jsonl row.
@@ -666,7 +657,7 @@ function buildTaskContext(projectRoot: string, taskDir: string, agentType?: Agen
666
657
  }
667
658
 
668
659
  // Determine which jsonl files to read based on agent type
669
- const jsonlNames = taskContextJsonlNames(agentType);
660
+ const jsonlNames = ["implement.jsonl", "check.jsonl"];
670
661
 
671
662
  // A file may be referenced by both manifests. Use the resolved real path so
672
663
  // relative aliases and symlinked paths cannot consume the context budget twice.
@@ -881,24 +872,9 @@ function parseWorkflowStateBlocks(markdown: string): WorkflowStateBlock[] {
881
872
  return blocks;
882
873
  }
883
874
 
884
- // ---------------------------------------------------------------------------
885
- // Sub-agent detection
886
- // ---------------------------------------------------------------------------
887
-
888
- const TRELLIS_AGENTS = new Set(["trellis-implement", "trellis-check", "trellis-research"]);
889
-
890
- function detectAgentType(): AgentType {
891
- const blocked = process.env.PI_BLOCKED_AGENT;
892
- if (blocked && TRELLIS_AGENTS.has(blocked)) {
893
- return blocked as AgentType;
894
- }
895
- return null;
896
- }
897
-
898
875
  interface TaskContextCache {
899
876
  projectRoot: string;
900
877
  taskDir: string;
901
- agentType: AgentType;
902
878
  signature: string;
903
879
  content: string;
904
880
  }
@@ -910,8 +886,6 @@ interface TaskContextCache {
910
886
  export default function(pi: ExtensionAPI): void {
911
887
  let projectRoot: string | null = null;
912
888
  const turnCache = new TurnContextCache();
913
- const agentType = detectAgentType();
914
- const isSubAgent = agentType !== null;
915
889
  let taskContextCache: TaskContextCache | null = null;
916
890
 
917
891
  // Tracks compaction boundaries — context handler skips scanning when no
@@ -926,12 +900,12 @@ export default function(pi: ExtensionAPI): void {
926
900
  };
927
901
 
928
902
  const getTaskContext = (taskDir: string, root: string): string => {
929
- const signature = taskContextSignature(root, taskDir, agentType);
930
- if (taskContextCache?.projectRoot === root && taskContextCache.taskDir === taskDir && taskContextCache.agentType === agentType && taskContextCache.signature === signature) {
903
+ const signature = taskContextSignature(root, taskDir);
904
+ if (taskContextCache?.projectRoot === root && taskContextCache.taskDir === taskDir && taskContextCache.signature === signature) {
931
905
  return taskContextCache.content;
932
906
  }
933
- const content = buildTaskContext(root, taskDir, agentType);
934
- taskContextCache = { projectRoot: root, taskDir, agentType, signature, content };
907
+ const content = buildTaskContext(root, taskDir);
908
+ taskContextCache = { projectRoot: root, taskDir, signature, content };
935
909
  return content;
936
910
  };
937
911
 
@@ -941,20 +915,7 @@ export default function(pi: ExtensionAPI): void {
941
915
 
942
916
  if (!projectRoot) return;
943
917
 
944
- if (isSubAgent) {
945
- // Sub-agent: inject precise task context once
946
- const { taskDir } = resolveActiveTaskStatus(projectRoot, contextKey);
947
- if (taskDir) {
948
- const taskContext = getTaskContext(taskDir, projectRoot);
949
- if (taskContext) {
950
- await pi.sendMessage({
951
- customType: "trellis-task-context",
952
- content: taskContext,
953
- display: false,
954
- });
955
- }
956
- }
957
- } else {
918
+
958
919
  // Main session: inject session context (global map) + task context
959
920
  const sessionContext = buildSessionContext(projectRoot, contextKey);
960
921
  if (sessionContext) {
@@ -978,7 +939,6 @@ export default function(pi: ExtensionAPI): void {
978
939
  }
979
940
 
980
941
  ctx.ui.notify("Trellis workflow system available", "info");
981
- }
982
942
  });
983
943
 
984
944
  pi.on("session_before_compact", async () => {
@@ -1,4 +1,2 @@
1
- import type { AgentTemplate } from "../template-utils.js";
2
- export declare function getAllAgents(): AgentTemplate[];
3
1
  export declare function getExtensionTemplate(): string;
4
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/omp/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAI1D,wBAAgB,YAAY,IAAI,aAAa,EAAE,CAE9C;AAED,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/omp/index.ts"],"names":[],"mappings":"AAIA,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C"}
@@ -1,8 +1,5 @@
1
1
  import { createTemplateReader } from "../template-utils.js";
2
- const { listMdAgents, readTemplate } = createTemplateReader(import.meta.url);
3
- export function getAllAgents() {
4
- return listMdAgents();
5
- }
2
+ const { readTemplate } = createTemplateReader(import.meta.url);
6
3
  export function getExtensionTemplate() {
7
4
  return readTemplate("extensions/trellis/index.ts.txt");
8
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/omp/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAG5D,MAAM,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE7E,MAAM,UAAU,YAAY;IAC1B,OAAO,YAAY,EAAE,CAAC;AACxB,CAAC;AAED,MAAM,UAAU,oBAAoB;IAClC,OAAO,YAAY,CAAC,iCAAiC,CAAC,CAAC;AACzD,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/omp/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,EAAE,YAAY,EAAE,GAAG,oBAAoB,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAE/D,MAAM,UAAU,oBAAoB;IAClC,OAAO,YAAY,CAAC,iCAAiC,CAAC,CAAC;AACzD,CAAC"}