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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (476) hide show
  1. package/README.md +14 -0
  2. package/dist/cli/index.js +4 -0
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/commands/ablate.d.ts.map +1 -1
  5. package/dist/commands/ablate.js +13 -0
  6. package/dist/commands/ablate.js.map +1 -1
  7. package/dist/commands/init.d.ts +2 -0
  8. package/dist/commands/init.d.ts.map +1 -1
  9. package/dist/commands/init.js +138 -120
  10. package/dist/commands/init.js.map +1 -1
  11. package/dist/commands/teamwork/adapters/acp.d.ts.map +1 -1
  12. package/dist/commands/teamwork/adapters/acp.js +3 -0
  13. package/dist/commands/teamwork/adapters/acp.js.map +1 -1
  14. package/dist/commands/teamwork/adapters/index.d.ts +1 -1
  15. package/dist/commands/teamwork/adapters/index.d.ts.map +1 -1
  16. package/dist/commands/teamwork/artifact.d.ts +2 -0
  17. package/dist/commands/teamwork/artifact.d.ts.map +1 -1
  18. package/dist/commands/teamwork/artifact.js +4 -2
  19. package/dist/commands/teamwork/artifact.js.map +1 -1
  20. package/dist/commands/teamwork/batch-reservation.d.ts.map +1 -1
  21. package/dist/commands/teamwork/batch-reservation.js +16 -8
  22. package/dist/commands/teamwork/batch-reservation.js.map +1 -1
  23. package/dist/commands/teamwork/batch.d.ts +15 -1
  24. package/dist/commands/teamwork/batch.d.ts.map +1 -1
  25. package/dist/commands/teamwork/batch.js +279 -24
  26. package/dist/commands/teamwork/batch.js.map +1 -1
  27. package/dist/commands/teamwork/coordinator.d.ts +3 -0
  28. package/dist/commands/teamwork/coordinator.d.ts.map +1 -1
  29. package/dist/commands/teamwork/coordinator.js +22 -3
  30. package/dist/commands/teamwork/coordinator.js.map +1 -1
  31. package/dist/commands/teamwork/create.d.ts +1 -0
  32. package/dist/commands/teamwork/create.d.ts.map +1 -1
  33. package/dist/commands/teamwork/create.js +4 -0
  34. package/dist/commands/teamwork/create.js.map +1 -1
  35. package/dist/commands/teamwork/evidence-references.d.ts +19 -0
  36. package/dist/commands/teamwork/evidence-references.d.ts.map +1 -0
  37. package/dist/commands/teamwork/evidence-references.js +249 -0
  38. package/dist/commands/teamwork/evidence-references.js.map +1 -0
  39. package/dist/commands/teamwork/foreground-wait.d.ts +4 -1
  40. package/dist/commands/teamwork/foreground-wait.d.ts.map +1 -1
  41. package/dist/commands/teamwork/foreground-wait.js +15 -1
  42. package/dist/commands/teamwork/foreground-wait.js.map +1 -1
  43. package/dist/commands/teamwork/index.d.ts.map +1 -1
  44. package/dist/commands/teamwork/index.js +47 -5
  45. package/dist/commands/teamwork/index.js.map +1 -1
  46. package/dist/commands/teamwork/list.d.ts +1 -0
  47. package/dist/commands/teamwork/list.d.ts.map +1 -1
  48. package/dist/commands/teamwork/list.js +4 -1
  49. package/dist/commands/teamwork/list.js.map +1 -1
  50. package/dist/commands/teamwork/prompt.js +1 -1
  51. package/dist/commands/teamwork/prompt.js.map +1 -1
  52. package/dist/commands/teamwork/rm.d.ts +27 -4
  53. package/dist/commands/teamwork/rm.d.ts.map +1 -1
  54. package/dist/commands/teamwork/rm.js +155 -51
  55. package/dist/commands/teamwork/rm.js.map +1 -1
  56. package/dist/commands/teamwork/run.d.ts.map +1 -1
  57. package/dist/commands/teamwork/run.js +10 -1
  58. package/dist/commands/teamwork/run.js.map +1 -1
  59. package/dist/commands/teamwork/runtime.d.ts +1 -1
  60. package/dist/commands/teamwork/runtime.d.ts.map +1 -1
  61. package/dist/commands/teamwork/runtime.js +14 -4
  62. package/dist/commands/teamwork/runtime.js.map +1 -1
  63. package/dist/commands/teamwork/spawn.d.ts.map +1 -1
  64. package/dist/commands/teamwork/spawn.js +4 -1
  65. package/dist/commands/teamwork/spawn.js.map +1 -1
  66. package/dist/commands/teamwork/supervisor/stdout.d.ts.map +1 -1
  67. package/dist/commands/teamwork/supervisor/stdout.js +7 -0
  68. package/dist/commands/teamwork/supervisor/stdout.js.map +1 -1
  69. package/dist/commands/teamwork/supervisor.d.ts +1 -1
  70. package/dist/commands/teamwork/supervisor.d.ts.map +1 -1
  71. package/dist/commands/teamwork/teammate-adapters.d.ts +3 -0
  72. package/dist/commands/teamwork/teammate-adapters.d.ts.map +1 -1
  73. package/dist/commands/teamwork/teammate-adapters.js +14 -5
  74. package/dist/commands/teamwork/teammate-adapters.js.map +1 -1
  75. package/dist/commands/teamwork/teammate-launch.d.ts +3 -1
  76. package/dist/commands/teamwork/teammate-launch.d.ts.map +1 -1
  77. package/dist/commands/teamwork/teammate-launch.js +7 -5
  78. package/dist/commands/teamwork/teammate-launch.js.map +1 -1
  79. package/dist/commands/teamwork/workers.d.ts +8 -0
  80. package/dist/commands/teamwork/workers.d.ts.map +1 -0
  81. package/dist/commands/teamwork/workers.js +67 -0
  82. package/dist/commands/teamwork/workers.js.map +1 -0
  83. package/dist/commands/update.d.ts.map +1 -1
  84. package/dist/commands/update.js +188 -59
  85. package/dist/commands/update.js.map +1 -1
  86. package/dist/commands/workflow.d.ts.map +1 -1
  87. package/dist/commands/workflow.js +5 -7
  88. package/dist/commands/workflow.js.map +1 -1
  89. package/dist/configurators/codebuddy.d.ts +1 -8
  90. package/dist/configurators/codebuddy.d.ts.map +1 -1
  91. package/dist/configurators/codebuddy.js +2 -12
  92. package/dist/configurators/codebuddy.js.map +1 -1
  93. package/dist/configurators/codex.d.ts +0 -36
  94. package/dist/configurators/codex.d.ts.map +1 -1
  95. package/dist/configurators/codex.js +13 -106
  96. package/dist/configurators/codex.js.map +1 -1
  97. package/dist/configurators/copilot.d.ts +1 -12
  98. package/dist/configurators/copilot.d.ts.map +1 -1
  99. package/dist/configurators/copilot.js +2 -20
  100. package/dist/configurators/copilot.js.map +1 -1
  101. package/dist/configurators/cursor.d.ts +1 -8
  102. package/dist/configurators/cursor.d.ts.map +1 -1
  103. package/dist/configurators/cursor.js +2 -12
  104. package/dist/configurators/cursor.js.map +1 -1
  105. package/dist/configurators/droid.d.ts +1 -8
  106. package/dist/configurators/droid.d.ts.map +1 -1
  107. package/dist/configurators/droid.js +2 -12
  108. package/dist/configurators/droid.js.map +1 -1
  109. package/dist/configurators/dsh.d.ts +1 -21
  110. package/dist/configurators/dsh.d.ts.map +1 -1
  111. package/dist/configurators/dsh.js +4 -37
  112. package/dist/configurators/dsh.js.map +1 -1
  113. package/dist/configurators/gemini.d.ts +1 -16
  114. package/dist/configurators/gemini.d.ts.map +1 -1
  115. package/dist/configurators/gemini.js +3 -21
  116. package/dist/configurators/gemini.js.map +1 -1
  117. package/dist/configurators/grok.d.ts +1 -12
  118. package/dist/configurators/grok.d.ts.map +1 -1
  119. package/dist/configurators/grok.js +2 -18
  120. package/dist/configurators/grok.js.map +1 -1
  121. package/dist/configurators/kimi.d.ts +1 -21
  122. package/dist/configurators/kimi.d.ts.map +1 -1
  123. package/dist/configurators/kimi.js +2 -38
  124. package/dist/configurators/kimi.js.map +1 -1
  125. package/dist/configurators/kiro.d.ts +1 -9
  126. package/dist/configurators/kiro.d.ts.map +1 -1
  127. package/dist/configurators/kiro.js +1 -9
  128. package/dist/configurators/kiro.js.map +1 -1
  129. package/dist/configurators/omp.d.ts.map +1 -1
  130. package/dist/configurators/omp.js +1 -5
  131. package/dist/configurators/omp.js.map +1 -1
  132. package/dist/configurators/pi.d.ts.map +1 -1
  133. package/dist/configurators/pi.js +2 -5
  134. package/dist/configurators/pi.js.map +1 -1
  135. package/dist/configurators/qoder.d.ts +1 -10
  136. package/dist/configurators/qoder.d.ts.map +1 -1
  137. package/dist/configurators/qoder.js +3 -15
  138. package/dist/configurators/qoder.js.map +1 -1
  139. package/dist/configurators/reasonix.d.ts +1 -12
  140. package/dist/configurators/reasonix.d.ts.map +1 -1
  141. package/dist/configurators/reasonix.js +3 -22
  142. package/dist/configurators/reasonix.js.map +1 -1
  143. package/dist/configurators/shared.d.ts +1 -24
  144. package/dist/configurators/shared.d.ts.map +1 -1
  145. package/dist/configurators/shared.js +5 -184
  146. package/dist/configurators/shared.js.map +1 -1
  147. package/dist/configurators/snow.d.ts +1 -20
  148. package/dist/configurators/snow.d.ts.map +1 -1
  149. package/dist/configurators/snow.js +2 -25
  150. package/dist/configurators/snow.js.map +1 -1
  151. package/dist/configurators/trae.d.ts +1 -14
  152. package/dist/configurators/trae.d.ts.map +1 -1
  153. package/dist/configurators/trae.js +3 -19
  154. package/dist/configurators/trae.js.map +1 -1
  155. package/dist/configurators/workflow.d.ts +5 -0
  156. package/dist/configurators/workflow.d.ts.map +1 -1
  157. package/dist/configurators/workflow.js +85 -57
  158. package/dist/configurators/workflow.js.map +1 -1
  159. package/dist/configurators/zcode.d.ts +1 -13
  160. package/dist/configurators/zcode.d.ts.map +1 -1
  161. package/dist/configurators/zcode.js +2 -18
  162. package/dist/configurators/zcode.js.map +1 -1
  163. package/dist/migrations/manifests/0.5.0-beta.5.json +1 -212
  164. package/dist/migrations/manifests/0.7.2-beta.10.json +9 -0
  165. package/dist/migrations/manifests/0.7.2-beta.11.json +9 -0
  166. package/dist/migrations/manifests/0.7.2-beta.12.json +9 -0
  167. package/dist/migrations/manifests/0.7.2-beta.13.json +9 -0
  168. package/dist/migrations/manifests/0.7.2-beta.14.json +9 -0
  169. package/dist/migrations/manifests/0.7.2-beta.15.json +9 -0
  170. package/dist/migrations/manifests/0.7.2-beta.16.json +9 -0
  171. package/dist/migrations/manifests/0.7.2-beta.17.json +9 -0
  172. package/dist/migrations/manifests/0.7.2-beta.18.json +9 -0
  173. package/dist/migrations/manifests/0.7.2-beta.19.json +11 -0
  174. package/dist/migrations/manifests/0.7.2-beta.20.json +9 -0
  175. package/dist/migrations/manifests/0.7.2-beta.21.json +9 -0
  176. package/dist/migrations/manifests/0.7.2-beta.22.json +9 -0
  177. package/dist/migrations/manifests/0.7.2-beta.23.json +9 -0
  178. package/dist/migrations/manifests/0.7.2-beta.24.json +8 -0
  179. package/dist/migrations/manifests/0.7.2-beta.25.json +8 -0
  180. package/dist/migrations/manifests/0.7.2-beta.26.json +8 -0
  181. package/dist/migrations/manifests/0.7.2-beta.27.json +8 -0
  182. package/dist/migrations/manifests/0.7.2-beta.28.json +8 -0
  183. package/dist/migrations/manifests/0.7.2-beta.29.json +8 -0
  184. package/dist/migrations/manifests/0.7.2-beta.30.json +10 -0
  185. package/dist/migrations/manifests/0.7.2-beta.4.json +9 -0
  186. package/dist/migrations/manifests/0.7.2-beta.5.json +9 -0
  187. package/dist/migrations/manifests/0.7.2-beta.6.json +9 -0
  188. package/dist/migrations/manifests/0.7.2-beta.7.json +9 -0
  189. package/dist/migrations/manifests/0.7.2-beta.8.json +9 -0
  190. package/dist/migrations/manifests/0.7.2-beta.9.json +9 -0
  191. package/dist/migrations/retired-native-paths.d.ts +109 -0
  192. package/dist/migrations/retired-native-paths.d.ts.map +1 -0
  193. package/dist/migrations/retired-native-paths.js +263 -0
  194. package/dist/migrations/retired-native-paths.js.map +1 -0
  195. package/dist/templates/claude/index.d.ts +1 -16
  196. package/dist/templates/claude/index.d.ts.map +1 -1
  197. package/dist/templates/claude/index.js +5 -32
  198. package/dist/templates/claude/index.js.map +1 -1
  199. package/dist/templates/claude/settings.json +0 -22
  200. package/dist/templates/codebuddy/index.d.ts +2 -3
  201. package/dist/templates/codebuddy/index.d.ts.map +1 -1
  202. package/dist/templates/codebuddy/index.js +2 -3
  203. package/dist/templates/codebuddy/index.js.map +1 -1
  204. package/dist/templates/codebuddy/settings.json +0 -10
  205. package/dist/templates/codex/config.toml +4 -19
  206. package/dist/templates/codex/hooks/session-start.py +25 -30
  207. package/dist/templates/codex/hooks/turn-guard.py +67 -0
  208. package/dist/templates/codex/hooks.json +57 -6
  209. package/dist/templates/codex/index.d.ts +0 -5
  210. package/dist/templates/codex/index.d.ts.map +1 -1
  211. package/dist/templates/codex/index.js +0 -13
  212. package/dist/templates/codex/index.js.map +1 -1
  213. package/dist/templates/common/bundled-skills/trellis-decision-space-construction-and-merging/SKILL.md +2 -0
  214. package/dist/templates/common/bundled-skills/trellis-decision-space-construction-and-merging/workflow.md +13 -3
  215. package/dist/templates/common/bundled-skills/trellis-delivery-review-and-closeout/SKILL.md +2 -0
  216. package/dist/templates/common/bundled-skills/trellis-delivery-review-and-closeout/workflow.md +17 -9
  217. package/dist/templates/common/bundled-skills/trellis-goal-exploration-and-requirements/SKILL.md +2 -0
  218. package/dist/templates/common/bundled-skills/trellis-goal-exploration-and-requirements/workflow.md +7 -3
  219. package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +7 -7
  220. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-agents.md +9 -51
  221. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-context-loading.md +3 -15
  222. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-hooks.md +1 -2
  223. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/bundled-skills.md +1 -1
  224. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/context-injection.md +4 -9
  225. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/generated-files.md +2 -2
  226. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/multi-agent-teamwork.md +6 -0
  227. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/overview.md +1 -1
  228. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/spec-system.md +10 -8
  229. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/agents.md +9 -79
  230. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/hooks-and-settings.md +2 -4
  231. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/overview.md +3 -6
  232. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/platform-map.md +24 -103
  233. package/dist/templates/common/bundled-skills/trellis-meta/references/platform-files/skills-and-commands.md +1 -1
  234. package/dist/templates/common/bundled-skills/trellis-session-insight/SKILL.md +1 -1
  235. package/dist/templates/common/bundled-skills/trellis-solution-design-and-convergence/SKILL.md +2 -0
  236. package/dist/templates/common/bundled-skills/trellis-solution-design-and-convergence/workflow.md +27 -6
  237. package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/SKILL.md +9 -7
  238. package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/mcp-setup.md +12 -84
  239. package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/repository-analysis.md +5 -25
  240. package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/spec-task-planning.md +5 -9
  241. package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/spec-writing.md +8 -0
  242. package/dist/templates/common/bundled-skills/trellis-task-implementation/SKILL.md +2 -0
  243. package/dist/templates/common/bundled-skills/trellis-task-implementation/workflow.md +5 -3
  244. package/dist/templates/common/bundled-skills/trellis-teamwork/SKILL.md +8 -1
  245. package/dist/templates/common/bundled-skills/trellis-teamwork/references/teammate-processes.md +21 -1
  246. package/dist/templates/common/bundled-skills/trellis-teamwork/references/teamwork-plan-construction.md +13 -2
  247. package/dist/templates/common/bundled-skills/trellis-worktree-delegation/SKILL.md +14 -0
  248. package/dist/templates/common/bundled-skills/trellis-worktree-delegation/workflow.md +82 -0
  249. package/dist/templates/common/commands/continue.md +16 -1
  250. package/dist/templates/common/commands/start.md +2 -0
  251. package/dist/templates/common/skills/before-dev.md +3 -1
  252. package/dist/templates/common/skills/check.md +3 -1
  253. package/dist/templates/common/skills/request-intake.md +14 -1
  254. package/dist/templates/copilot/hooks/session-start.py +11 -30
  255. package/dist/templates/cursor/hooks.json +0 -7
  256. package/dist/templates/cursor/index.d.ts +1 -11
  257. package/dist/templates/cursor/index.d.ts.map +1 -1
  258. package/dist/templates/cursor/index.js +2 -10
  259. package/dist/templates/cursor/index.js.map +1 -1
  260. package/dist/templates/droid/index.d.ts +2 -3
  261. package/dist/templates/droid/index.d.ts.map +1 -1
  262. package/dist/templates/droid/index.js +2 -3
  263. package/dist/templates/droid/index.js.map +1 -1
  264. package/dist/templates/droid/settings.json +0 -10
  265. package/dist/templates/dsh/DSH.md +2 -33
  266. package/dist/templates/dsh/index.d.ts +1 -19
  267. package/dist/templates/dsh/index.d.ts.map +1 -1
  268. package/dist/templates/dsh/index.js +2 -21
  269. package/dist/templates/dsh/index.js.map +1 -1
  270. package/dist/templates/gemini/index.d.ts +1 -11
  271. package/dist/templates/gemini/index.d.ts.map +1 -1
  272. package/dist/templates/gemini/index.js +2 -10
  273. package/dist/templates/gemini/index.js.map +1 -1
  274. package/dist/templates/kiro/index.d.ts +1 -13
  275. package/dist/templates/kiro/index.d.ts.map +1 -1
  276. package/dist/templates/kiro/index.js +1 -13
  277. package/dist/templates/kiro/index.js.map +1 -1
  278. package/dist/templates/markdown/agents.md +9 -14
  279. package/dist/templates/markdown/index.d.ts +1 -0
  280. package/dist/templates/markdown/index.d.ts.map +1 -1
  281. package/dist/templates/markdown/index.js +1 -0
  282. package/dist/templates/markdown/index.js.map +1 -1
  283. package/dist/templates/markdown/spec/index.md.txt +20 -0
  284. package/dist/templates/omp/extensions/trellis/index.ts.txt +27 -60
  285. package/dist/templates/omp/index.d.ts +0 -2
  286. package/dist/templates/omp/index.d.ts.map +1 -1
  287. package/dist/templates/omp/index.js +1 -4
  288. package/dist/templates/omp/index.js.map +1 -1
  289. package/dist/templates/opencode/lib/session-utils.js +17 -5
  290. package/dist/templates/opencode/lib/trellis-context.js +12 -321
  291. package/dist/templates/opencode/plugins/inject-shell-session-context.js +93 -0
  292. package/dist/templates/opencode/plugins/inject-workflow-state.js +19 -17
  293. package/dist/templates/opencode/plugins/session-start.js +2 -6
  294. package/dist/templates/pi/extensions/trellis/index.ts.txt +17 -1436
  295. package/dist/templates/pi/index.d.ts +1 -2
  296. package/dist/templates/pi/index.d.ts.map +1 -1
  297. package/dist/templates/pi/index.js +2 -5
  298. package/dist/templates/pi/index.js.map +1 -1
  299. package/dist/templates/qoder/index.d.ts +2 -3
  300. package/dist/templates/qoder/index.d.ts.map +1 -1
  301. package/dist/templates/qoder/index.js +2 -3
  302. package/dist/templates/qoder/index.js.map +1 -1
  303. package/dist/templates/shared-hooks/guard-teamwork-wait.py +118 -12
  304. package/dist/templates/shared-hooks/index.d.ts +2 -56
  305. package/dist/templates/shared-hooks/index.d.ts.map +1 -1
  306. package/dist/templates/shared-hooks/index.js +4 -70
  307. package/dist/templates/shared-hooks/index.js.map +1 -1
  308. package/dist/templates/shared-hooks/inject-shell-session-context.py +27 -1
  309. package/dist/templates/shared-hooks/inject-spec-context.py +6 -35
  310. package/dist/templates/shared-hooks/inject-workflow-state.py +62 -104
  311. package/dist/templates/shared-hooks/session-start.py +8 -6
  312. package/dist/templates/snow/SNOW.md +6 -18
  313. package/dist/templates/snow/hooks/write-trellis-context.py +51 -133
  314. package/dist/templates/snow/index.d.ts +2 -21
  315. package/dist/templates/snow/index.d.ts.map +1 -1
  316. package/dist/templates/snow/index.js +3 -24
  317. package/dist/templates/snow/index.js.map +1 -1
  318. package/dist/templates/template-utils.d.ts +1 -2
  319. package/dist/templates/template-utils.d.ts.map +1 -1
  320. package/dist/templates/template-utils.js +1 -11
  321. package/dist/templates/template-utils.js.map +1 -1
  322. package/dist/templates/trae/index.d.ts +2 -3
  323. package/dist/templates/trae/index.d.ts.map +1 -1
  324. package/dist/templates/trae/index.js +2 -3
  325. package/dist/templates/trae/index.js.map +1 -1
  326. package/dist/templates/trellis/agents/delegated-worktree-primary-agent.md +22 -22
  327. package/dist/templates/trellis/agents/teammate.md +6 -2
  328. package/dist/templates/trellis/agents/worktree-delegation-node.md +30 -0
  329. package/dist/templates/trellis/config.yaml +7 -36
  330. package/dist/templates/trellis/gitignore.txt +4 -0
  331. package/dist/templates/trellis/index.d.ts +1 -0
  332. package/dist/templates/trellis/index.d.ts.map +1 -1
  333. package/dist/templates/trellis/index.js +9 -0
  334. package/dist/templates/trellis/index.js.map +1 -1
  335. package/dist/templates/trellis/scripts/common/active_task.py +23 -31
  336. package/dist/templates/trellis/scripts/common/config.py +16 -36
  337. package/dist/templates/trellis/scripts/common/git_context.py +13 -4
  338. package/dist/templates/trellis/scripts/common/io.py +2 -2
  339. package/dist/templates/trellis/scripts/common/markdown_format.py +107 -0
  340. package/dist/templates/trellis/scripts/common/packages_context.py +29 -1
  341. package/dist/templates/trellis/scripts/common/session_context.py +25 -50
  342. package/dist/templates/trellis/scripts/common/task_context.py +5 -3
  343. package/dist/templates/trellis/scripts/common/task_continuity.py +66 -9
  344. package/dist/templates/trellis/scripts/common/task_move.py +11 -5
  345. package/dist/templates/trellis/scripts/common/task_runtime.py +211 -0
  346. package/dist/templates/trellis/scripts/common/task_store.py +8 -78
  347. package/dist/templates/trellis/scripts/common/task_turn.py +514 -0
  348. package/dist/templates/trellis/scripts/common/task_workflow.py +380 -395
  349. package/dist/templates/trellis/scripts/common/workflow_phase.py +3 -36
  350. package/dist/templates/trellis/scripts/common/workflow_selection.py +35 -40
  351. package/dist/templates/trellis/scripts/common/worktree_delegation.py +690 -0
  352. package/dist/templates/trellis/scripts/common/worktree_delegation_contract.py +446 -0
  353. package/dist/templates/trellis/scripts/common/worktree_delegation_messages.py +376 -0
  354. package/dist/templates/trellis/scripts/common/worktree_delegation_transport.py +57 -0
  355. package/dist/templates/trellis/scripts/markdown_format.py +40 -0
  356. package/dist/templates/trellis/scripts/task.py +73 -10
  357. package/dist/templates/trellis/workflow.md +48 -9
  358. package/dist/templates/zcode/config.json +0 -10
  359. package/dist/templates/zcode/index.d.ts +3 -22
  360. package/dist/templates/zcode/index.d.ts.map +1 -1
  361. package/dist/templates/zcode/index.js +3 -24
  362. package/dist/templates/zcode/index.js.map +1 -1
  363. package/dist/types/ai-tools.d.ts +0 -4
  364. package/dist/types/ai-tools.d.ts.map +1 -1
  365. package/dist/types/ai-tools.js +4 -109
  366. package/dist/types/ai-tools.js.map +1 -1
  367. package/dist/utils/ablation-store.d.ts.map +1 -1
  368. package/dist/utils/ablation-store.js +41 -1
  369. package/dist/utils/ablation-store.js.map +1 -1
  370. package/dist/utils/asset-backup.d.ts +1 -0
  371. package/dist/utils/asset-backup.d.ts.map +1 -1
  372. package/dist/utils/asset-backup.js +131 -31
  373. package/dist/utils/asset-backup.js.map +1 -1
  374. package/dist/utils/atomic-write.d.ts +1 -1
  375. package/dist/utils/atomic-write.d.ts.map +1 -1
  376. package/dist/utils/atomic-write.js +8 -2
  377. package/dist/utils/atomic-write.js.map +1 -1
  378. package/dist/utils/codex-config-ownership.d.ts +13 -0
  379. package/dist/utils/codex-config-ownership.d.ts.map +1 -0
  380. package/dist/utils/codex-config-ownership.js +64 -0
  381. package/dist/utils/codex-config-ownership.js.map +1 -0
  382. package/dist/utils/file-writer.d.ts +2 -0
  383. package/dist/utils/file-writer.d.ts.map +1 -1
  384. package/dist/utils/file-writer.js +1 -1
  385. package/dist/utils/file-writer.js.map +1 -1
  386. package/dist/utils/managed-markdown.d.ts +5 -0
  387. package/dist/utils/managed-markdown.d.ts.map +1 -0
  388. package/dist/utils/managed-markdown.js +64 -0
  389. package/dist/utils/managed-markdown.js.map +1 -0
  390. package/dist/utils/managed-removal.d.ts +2 -0
  391. package/dist/utils/managed-removal.d.ts.map +1 -1
  392. package/dist/utils/managed-removal.js +62 -8
  393. package/dist/utils/managed-removal.js.map +1 -1
  394. package/dist/utils/manifest-prune.d.ts.map +1 -1
  395. package/dist/utils/manifest-prune.js +5 -12
  396. package/dist/utils/manifest-prune.js.map +1 -1
  397. package/dist/utils/project-init.d.ts +26 -0
  398. package/dist/utils/project-init.d.ts.map +1 -0
  399. package/dist/utils/project-init.js +484 -0
  400. package/dist/utils/project-init.js.map +1 -0
  401. package/dist/utils/retired-native-assets.d.ts +17 -0
  402. package/dist/utils/retired-native-assets.d.ts.map +1 -0
  403. package/dist/utils/retired-native-assets.js +221 -0
  404. package/dist/utils/retired-native-assets.js.map +1 -0
  405. package/dist/utils/uninstall-scrubbers.d.ts.map +1 -1
  406. package/dist/utils/uninstall-scrubbers.js +6 -12
  407. package/dist/utils/uninstall-scrubbers.js.map +1 -1
  408. package/package.json +2 -2
  409. package/dist/templates/claude/agents/trellis-check.md +0 -115
  410. package/dist/templates/claude/agents/trellis-implement.md +0 -110
  411. package/dist/templates/claude/agents/trellis-research.md +0 -137
  412. package/dist/templates/codebuddy/agents/trellis-check.md +0 -115
  413. package/dist/templates/codebuddy/agents/trellis-implement.md +0 -110
  414. package/dist/templates/codebuddy/agents/trellis-research.md +0 -137
  415. package/dist/templates/codex/agents/trellis-check.toml +0 -56
  416. package/dist/templates/codex/agents/trellis-implement.toml +0 -37
  417. package/dist/templates/codex/agents/trellis-research.toml +0 -78
  418. package/dist/templates/cursor/agents/trellis-check.md +0 -114
  419. package/dist/templates/cursor/agents/trellis-implement.md +0 -109
  420. package/dist/templates/cursor/agents/trellis-research.md +0 -136
  421. package/dist/templates/droid/droids/trellis-check.md +0 -107
  422. package/dist/templates/droid/droids/trellis-implement.md +0 -102
  423. package/dist/templates/droid/droids/trellis-research.md +0 -137
  424. package/dist/templates/dsh/agents/trellis-check.md +0 -99
  425. package/dist/templates/dsh/agents/trellis-implement.md +0 -106
  426. package/dist/templates/dsh/agents/trellis-research.md +0 -134
  427. package/dist/templates/gemini/agents/trellis-check.md +0 -107
  428. package/dist/templates/gemini/agents/trellis-implement.md +0 -102
  429. package/dist/templates/gemini/agents/trellis-research.md +0 -136
  430. package/dist/templates/grok/agents/trellis-check.md +0 -105
  431. package/dist/templates/grok/agents/trellis-implement.md +0 -116
  432. package/dist/templates/grok/agents/trellis-research.md +0 -146
  433. package/dist/templates/grok/index.d.ts +0 -16
  434. package/dist/templates/grok/index.d.ts.map +0 -1
  435. package/dist/templates/grok/index.js +0 -19
  436. package/dist/templates/grok/index.js.map +0 -1
  437. package/dist/templates/kimi/agents/trellis-check.md +0 -103
  438. package/dist/templates/kimi/agents/trellis-implement.md +0 -115
  439. package/dist/templates/kimi/agents/trellis-research.md +0 -144
  440. package/dist/templates/kimi/index.d.ts +0 -20
  441. package/dist/templates/kimi/index.d.ts.map +0 -1
  442. package/dist/templates/kimi/index.js +0 -23
  443. package/dist/templates/kimi/index.js.map +0 -1
  444. package/dist/templates/kiro/agents/trellis-check.json +0 -26
  445. package/dist/templates/kiro/agents/trellis-implement.json +0 -26
  446. package/dist/templates/kiro/agents/trellis-research.json +0 -30
  447. package/dist/templates/omp/agents/trellis-check.md +0 -41
  448. package/dist/templates/omp/agents/trellis-implement.md +0 -45
  449. package/dist/templates/omp/agents/trellis-research.md +0 -30
  450. package/dist/templates/opencode/agents/trellis-check.md +0 -122
  451. package/dist/templates/opencode/agents/trellis-implement.md +0 -118
  452. package/dist/templates/opencode/agents/trellis-research.md +0 -145
  453. package/dist/templates/opencode/plugins/inject-subagent-context.js +0 -569
  454. package/dist/templates/pi/agents/trellis-check.md +0 -37
  455. package/dist/templates/pi/agents/trellis-implement.md +0 -42
  456. package/dist/templates/pi/agents/trellis-research.md +0 -25
  457. package/dist/templates/qoder/agents/trellis-check.md +0 -108
  458. package/dist/templates/qoder/agents/trellis-implement.md +0 -103
  459. package/dist/templates/qoder/agents/trellis-research.md +0 -137
  460. package/dist/templates/reasonix/agents/trellis-check.md +0 -36
  461. package/dist/templates/reasonix/agents/trellis-implement.md +0 -41
  462. package/dist/templates/reasonix/index.d.ts +0 -13
  463. package/dist/templates/reasonix/index.d.ts.map +0 -1
  464. package/dist/templates/reasonix/index.js +0 -16
  465. package/dist/templates/reasonix/index.js.map +0 -1
  466. package/dist/templates/shared-hooks/inject-subagent-context.py +0 -1217
  467. package/dist/templates/snow/agents/trellis-check.md +0 -135
  468. package/dist/templates/snow/agents/trellis-implement.md +0 -153
  469. package/dist/templates/snow/agents/trellis-research.md +0 -114
  470. package/dist/templates/snow/hooks/beforeSubAgentStart.json +0 -15
  471. package/dist/templates/trae/agents/trellis-check.md +0 -108
  472. package/dist/templates/trae/agents/trellis-implement.md +0 -103
  473. package/dist/templates/trae/agents/trellis-research.md +0 -137
  474. package/dist/templates/zcode/agents/trellis-check.md +0 -109
  475. package/dist/templates/zcode/agents/trellis-implement.md +0 -111
  476. package/dist/templates/zcode/agents/trellis-research.md +0 -133
@@ -7,6 +7,9 @@
7
7
  # Session/window scoped runtime state
8
8
  .runtime/
9
9
 
10
+ # Durable local handoff packages contain private conversation history
11
+ session-handoffs/
12
+
10
13
  # Ralph Loop state file
11
14
  .ralph-state.json
12
15
 
@@ -18,6 +21,7 @@
18
21
  # Task directory runtime files
19
22
  .plan-log
20
23
  .task-phase.lock
24
+ tasks/**/provider-stderr.log
21
25
 
22
26
  # Atomic update temp files
23
27
  *.tmp
@@ -36,6 +36,7 @@ export declare const commonGit: string;
36
36
  export declare const commonTypes: string;
37
37
  export declare const commonTasks: string;
38
38
  export declare const commonTaskContext: string;
39
+ export declare const commonTaskRuntime: string;
39
40
  export declare const commonTaskStore: string;
40
41
  export declare const commonTaskWorkflow: string;
41
42
  export declare const commonTaskContinuity: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/trellis/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAcH,eAAO,MAAM,WAAW,QAAsC,CAAC;AAG/D,eAAO,MAAM,UAAU,QAA6C,CAAC;AACrE,eAAO,MAAM,WAAW,QAA0C,CAAC;AACnE,eAAO,MAAM,eAAe,QAA8C,CAAC;AAC3E,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAC9E,eAAO,MAAM,eAAe,QAA+C,CAAC;AAC5E,eAAO,MAAM,eAAe,QAA+C,CAAC;AAC5E,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAC9E,eAAO,MAAM,cAAc,QAA8C,CAAC;AAC1E,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAC9E,eAAO,MAAM,gBAAgB,QAAgD,CAAC;AAC9E,eAAO,MAAM,YAAY,QAA2C,CAAC;AACrE,eAAO,MAAM,QAAQ,QAAuC,CAAC;AAC7D,eAAO,MAAM,SAAS,QAAwC,CAAC;AAC/D,eAAO,MAAM,SAAS,QAAwC,CAAC;AAC/D,eAAO,MAAM,WAAW,QAA0C,CAAC;AACnE,eAAO,MAAM,WAAW,QAA0C,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AAgB,QAAgD,CAAC;AAG9E,eAAO,MAAM,kBAAkB,QAA2C,CAAC;AAC3E,eAAO,MAAM,mBAAmB,QAA4C,CAAC;AAC7E,eAAO,MAAM,UAAU,QAAkC,CAAC;AAC1D,eAAO,MAAM,gBAAgB,QAAyC,CAAC;AACvE,eAAO,MAAM,gBAAgB,QAAyC,CAAC;AACvE,eAAO,MAAM,gBAAgB,QAA+C,CAAC;AAG7E,eAAO,MAAM,kBAAkB,QAA8B,CAAC;AAC9D,eAAO,MAAM,kBAAkB,QAA8B,CAAC;AAC9D,eAAO,MAAM,sBAAsB,QAAgC,CAAC;AACpE,eAAO,MAAM,iBAAiB,QAAgC,CAAC;AAC/D,eAAO,MAAM,qBAAqB,QAAoC,CAAC;AAGvE,eAAO,MAAM,qBAAqB,QAAqC,CAAC;AACxE,eAAO,MAAM,8BAA8B,QAE1C,CAAC;AACF,eAAO,MAAM,wBAAwB,QAEpC,CAAC;AAEF;;GAEG;AACH,wBAAgB,aAAa,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAuEnD;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAelD"}
@@ -46,6 +46,7 @@ export const commonGit = readTemplate("scripts/common/git.py");
46
46
  export const commonTypes = readTemplate("scripts/common/types.py");
47
47
  export const commonTasks = readTemplate("scripts/common/tasks.py");
48
48
  export const commonTaskContext = readTemplate("scripts/common/task_context.py");
49
+ export const commonTaskRuntime = readTemplate("scripts/common/task_runtime.py");
49
50
  export const commonTaskStore = readTemplate("scripts/common/task_store.py");
50
51
  export const commonTaskWorkflow = readTemplate("scripts/common/task_workflow.py");
51
52
  export const commonTaskContinuity = readTemplate("scripts/common/task_continuity.py");
@@ -99,9 +100,17 @@ export function getAllScripts() {
99
100
  scripts.set("common/types.py", commonTypes);
100
101
  scripts.set("common/tasks.py", commonTasks);
101
102
  scripts.set("common/task_context.py", commonTaskContext);
103
+ scripts.set("common/task_runtime.py", commonTaskRuntime);
104
+ scripts.set("common/task_turn.py", readTemplate("scripts/common/task_turn.py"));
102
105
  scripts.set("common/task_store.py", commonTaskStore);
103
106
  scripts.set("common/task_workflow.py", commonTaskWorkflow);
107
+ scripts.set("common/markdown_format.py", readTemplate("scripts/common/markdown_format.py"));
108
+ scripts.set("markdown_format.py", readTemplate("scripts/markdown_format.py"));
104
109
  scripts.set("common/task_continuity.py", commonTaskContinuity);
110
+ scripts.set("common/worktree_delegation.py", readTemplate("scripts/common/worktree_delegation.py"));
111
+ scripts.set("common/worktree_delegation_contract.py", readTemplate("scripts/common/worktree_delegation_contract.py"));
112
+ scripts.set("common/worktree_delegation_messages.py", readTemplate("scripts/common/worktree_delegation_messages.py"));
113
+ scripts.set("common/worktree_delegation_transport.py", readTemplate("scripts/common/worktree_delegation_transport.py"));
105
114
  scripts.set("common/session_context.py", commonSessionContext);
106
115
  scripts.set("common/packages_context.py", commonPackagesContext);
107
116
  scripts.set("common/workflow_phase.py", commonWorkflowPhase);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/trellis/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEtC,SAAS,YAAY,CAAC,YAAoB;IACxC,OAAO,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC;AAED,gCAAgC;AAChC,MAAM,CAAC,MAAM,WAAW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+BAA+B,QAAQ,EAAE,CAAC,CAAC;QAClE,CAAC;IACH,CAAC;IACD,OAAO,CAAC,EAAE,CAAC,CAAC;IACZ,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -548,6 +548,12 @@ def _write_json(path: Path, data: dict[str, Any]) -> bool:
548
548
  truncates the target first, so a crash mid-write would leave a session
549
549
  file that reads back as no active task.
550
550
  """
551
+ if data.get("current_task") in (None, "") and data.get("current_run") is None and all(
552
+ data.get(key) is None or isinstance(data[key], str) for key in ("platform", "last_seen_at")
553
+ ) and set(data) <= {
554
+ "current_task", "current_run", "platform", "last_seen_at",
555
+ }:
556
+ return not path.exists() or _remove_file(path)
551
557
  try:
552
558
  path.parent.mkdir(parents=True, exist_ok=True)
553
559
  except OSError:
@@ -624,32 +630,11 @@ def _context_path(repo_root: Path, context_key: str) -> Path:
624
630
 
625
631
  @contextlib.contextmanager
626
632
  def _session_file_lock(context_path: Path):
627
- """Serialize changes to one session's active-task pointer."""
628
- lock_path = context_path.with_suffix(".lock")
629
- lock_path.parent.mkdir(parents=True, exist_ok=True)
630
- with lock_path.open("a+b") as handle:
631
- if os.name == "nt":
632
- import msvcrt
633
-
634
- handle.seek(0)
635
- if handle.read(1) == b"":
636
- handle.write(b"\0")
637
- handle.flush()
638
- handle.seek(0)
639
- msvcrt.locking(handle.fileno(), msvcrt.LK_LOCK, 1)
640
- try:
641
- yield
642
- finally:
643
- handle.seek(0)
644
- msvcrt.locking(handle.fileno(), msvcrt.LK_UNLCK, 1)
645
- else:
646
- import fcntl
633
+ """Serialize pointer changes with task moves and ownership transactions."""
634
+ from .task_move import layout_lock
647
635
 
648
- fcntl.flock(handle.fileno(), fcntl.LOCK_EX)
649
- try:
650
- yield
651
- finally:
652
- fcntl.flock(handle.fileno(), fcntl.LOCK_UN)
636
+ with layout_lock(context_path.parents[3]):
637
+ yield
653
638
 
654
639
 
655
640
  def resolve_active_task(
@@ -828,7 +813,7 @@ def clear_active_task(
828
813
  platform_input: dict[str, Any] | None = None,
829
814
  platform: str | None = None,
830
815
  ) -> ActiveTask:
831
- """Clear the active task by deleting its resolved session context file."""
816
+ """Clear the task pointer while preserving other session data."""
832
817
  context_key = resolve_context_key(platform_input, platform)
833
818
  if not context_key:
834
819
  return ActiveTask(None, "none")
@@ -844,13 +829,17 @@ def clear_active_task(
844
829
  if not allowed:
845
830
  return ActiveTask(previous.task_path, "session", previous.context_key)
846
831
  with _session_file_lock(context_path):
847
- if context_path.is_file():
848
- _remove_file(context_path)
832
+ context, _ = read_json_checked(context_path)
833
+ if context is not None:
834
+ current = _string_value(context.get("current_task"))
835
+ if _task_refs_match(current, previous.task_path, repo_root):
836
+ context.pop("current_task", None)
837
+ _write_json(context_path, context)
849
838
  return previous
850
839
 
851
840
 
852
841
  def clear_task_from_sessions(task_path: str, repo_root: Path) -> int:
853
- """Delete all session runtime files that point at a task."""
842
+ """Clear matching task pointers, preserving runs and unknown fields."""
854
843
  target = _canonical_task_ref(task_path, repo_root) or normalize_task_ref(task_path)
855
844
  if not target:
856
845
  return 0
@@ -862,14 +851,17 @@ def clear_task_from_sessions(task_path: str, repo_root: Path) -> int:
862
851
 
863
852
  for session_path in sessions_dir.glob("*.json"):
864
853
  with _session_file_lock(session_path):
865
- context = _read_json(session_path) or {}
854
+ context, _ = read_json_checked(session_path)
855
+ if context is None:
856
+ continue
866
857
  current = _string_value(context.get("current_task"))
867
858
  if not current:
868
859
  continue
869
860
  current_ref = _canonical_task_ref(current, repo_root) or normalize_task_ref(current)
870
861
  if current_ref != target:
871
862
  continue
872
- if session_path.is_file() and _remove_file(session_path):
863
+ context.pop("current_task", None)
864
+ if _write_json(session_path, context):
873
865
  cleared += 1
874
866
 
875
867
  return cleared
@@ -22,7 +22,6 @@ from .trellis_config import parse_simple_yaml
22
22
  DEFAULT_SESSION_COMMIT_MESSAGE = "chore: record journal"
23
23
  DEFAULT_MAX_JOURNAL_LINES = 2000
24
24
  DEFAULT_SESSION_AUTO_COMMIT = True
25
- DEFAULT_CODEX_DISPATCH_MODE = "auto"
26
25
 
27
26
  CONFIG_FILE = "config.yaml"
28
27
 
@@ -99,6 +98,21 @@ def _load_config(repo_root: Path | None = None) -> dict:
99
98
  return parsed if isinstance(parsed, dict) else {}
100
99
 
101
100
 
101
+ def markdown_format_gate_enabled(repo_root: Path) -> bool:
102
+ """Keep existing projects off by default; report unreadable settings to the gate."""
103
+ config_file = _get_config_path(repo_root)
104
+ try:
105
+ content = config_file.read_text(encoding="utf-8")
106
+ except FileNotFoundError:
107
+ return False
108
+ value = parse_simple_yaml(content, source=str(config_file)).get("markdown_format_gate")
109
+ if value is None:
110
+ return False
111
+ if str(value).strip().lower() not in (*TRUE_CONFIG_VALUES, *FALSE_CONFIG_VALUES):
112
+ raise ValueError("markdown_format_gate must be a boolean")
113
+ return coerce_config_bool(value, False, "markdown_format_gate")
114
+
115
+
102
116
  def get_session_commit_message(repo_root: Path | None = None) -> str:
103
117
  """Get the commit message for auto-committing session records."""
104
118
  config = _load_config(repo_root)
@@ -136,40 +150,6 @@ def get_session_auto_commit(repo_root: Path | None = None) -> bool:
136
150
  )
137
151
 
138
152
 
139
- def get_codex_dispatch_mode(repo_root: Path | None = None) -> str:
140
- """Return Codex dispatch mode.
141
-
142
- Default is ``auto``, which dispatches Trellis sub-agents and uses native
143
- context injection with a child-side fallback. ``inline`` is an explicit
144
- opt-out. ``sub-agent`` remains a backwards-compatible alias for ``auto``.
145
-
146
- Invalid explicit configuration falls back to ``inline`` rather than
147
- unexpectedly dispatching a sub-agent. This CLI-facing parser is the only
148
- place that emits a warning for invalid values; hook readers fail safely
149
- without producing per-turn warning noise.
150
- """
151
- config = _load_config(repo_root)
152
- codex = config.get("codex")
153
- if codex is None:
154
- return DEFAULT_CODEX_DISPATCH_MODE
155
- if not isinstance(codex, dict):
156
- print(
157
- f"[WARN] invalid codex config: {codex!r}; using inline",
158
- file=sys.stderr,
159
- )
160
- return "inline"
161
-
162
- raw = codex.get("dispatch_mode", DEFAULT_CODEX_DISPATCH_MODE)
163
- mode = str(raw).strip().lower()
164
- if mode in ("auto", "inline"):
165
- return mode
166
- if mode == "sub-agent":
167
- return "auto"
168
- print(
169
- f"[WARN] invalid codex.dispatch_mode value: {raw!r}; using inline",
170
- file=sys.stderr,
171
- )
172
- return "inline"
173
153
 
174
154
 
175
155
  def get_default_workflow(repo_root: Path | None = None) -> str | None:
@@ -196,7 +176,7 @@ DEFAULT_CONTEXT_INJECTION_MAX_TOTAL_BYTES = 131072
196
176
 
197
177
 
198
178
  def get_context_injection_limits(repo_root: Path | None = None) -> dict[str, int]:
199
- """Return sub-agent context injection byte limits.
179
+ """Return main-session context injection byte limits.
200
180
 
201
181
  Reads the ``context_injection:`` section of ``.trellis/config.yaml``:
202
182
 
@@ -29,12 +29,11 @@ from .packages_context import (
29
29
  )
30
30
  from .paths import get_repo_root
31
31
  from .spec_match import match_specs_for_file
32
- from .trellis_config import read_trellis_config
33
32
  from .workflow_phase import (
34
33
  filter_platform,
35
34
  get_phase_index,
36
35
  get_step,
37
- resolve_effective_platform,
36
+ resolve_platform_label,
38
37
  )
39
38
 
40
39
  # Backward-compatible alias — external modules import this name
@@ -49,6 +48,16 @@ def main() -> None:
49
48
  """CLI entry point."""
50
49
  import argparse
51
50
 
51
+ from .worktree_delegation import node_context
52
+ from .task_workflow import TaskWorkflowError
53
+ try:
54
+ delegated = node_context()
55
+ except (ValueError, OSError, KeyError, TaskWorkflowError) as error:
56
+ raise SystemExit(f"Delegated node blocked: {error}") from error
57
+ if delegated is not None:
58
+ print(json.dumps({"delegated_node": delegated, "instruction": "Read node_method_ref and current contract. Do not enter controller phases, task intake, or nested implementation delegation."}, ensure_ascii=False))
59
+ return
60
+
52
61
  parser = argparse.ArgumentParser(description="Get Session Context for AI Agent")
53
62
  parser.add_argument(
54
63
  "--json",
@@ -96,8 +105,8 @@ def main() -> None:
96
105
  else:
97
106
  parser.exit(2, "Phase Index section not found in workflow.md\n")
98
107
  if args.platform:
99
- effective = resolve_effective_platform(
100
- args.platform, read_trellis_config()
108
+ effective = resolve_platform_label(
109
+ args.platform
101
110
  )
102
111
  content = filter_platform(content, effective)
103
112
  print(content, end="")
@@ -136,7 +136,7 @@ def write_json(path: Path, data: dict) -> bool:
136
136
  return write_text_atomic(path, json.dumps(data, indent=2, ensure_ascii=False))
137
137
 
138
138
 
139
- def write_text_atomic(path: Path, text: str) -> bool:
139
+ def write_text_atomic(path: Path, text: str, *, newline: str | None = None) -> bool:
140
140
  """Write text to a file atomically (temp in same dir, then replace).
141
141
 
142
142
  The same never-truncate-in-place guarantee as :func:`write_json`, for the
@@ -155,7 +155,7 @@ def write_text_atomic(path: Path, text: str) -> bool:
155
155
 
156
156
  try:
157
157
  try:
158
- f = os.fdopen(fd, "w", encoding="utf-8")
158
+ f = os.fdopen(fd, "w", encoding="utf-8", newline=newline)
159
159
  except OSError:
160
160
  # fdopen never took ownership of fd; close it ourselves.
161
161
  os.close(fd)
@@ -0,0 +1,107 @@
1
+ """Narrow Markdown checks for known rendering failures."""
2
+
3
+ from __future__ import annotations
4
+
5
+ from dataclasses import dataclass
6
+ import re
7
+ import unicodedata
8
+
9
+
10
+ _FENCE = re.compile(r"^[ \t]*(?:(?:[-+*]|\d+[.)])[ \t]+)?(`{3,}|~{3,})(.*)$")
11
+ _LITERAL = re.compile(
12
+ r"<!--[\s\S]*?(?:-->|\Z)|(?<!`)(`+)(?!`)[\s\S]*?(?<!`)\1(?!`)"
13
+ r'|“[^”\n]*”|‘[^’\n]*’|「[^」\n]*」|『[^』\n]*』|"[^"\n]*"'
14
+ )
15
+ _STRONG = re.compile(r"(?<!\*)\*\*(?!\*)[^\s*][^*\r\n]*?(?<!\*)\*\*(?!\*)")
16
+ _STRONG_PUNCTUATION = "::;;,,。!?!?"
17
+ _WEB_REF = r"turn[0-9]+[a-z]+[0-9]+"
18
+ _WEB_MARKER = re.compile(rf"\uE200cite\uE202{_WEB_REF}(?:\uE202{_WEB_REF})*\uE201")
19
+
20
+
21
+ @dataclass(frozen=True)
22
+ class FormatIssue:
23
+ offset: int
24
+ length: int
25
+ message: str
26
+ replacement: str | None = None
27
+
28
+ def diagnostic(self, path: str, text: str) -> str:
29
+ line = text.count("\n", 0, self.offset) + 1
30
+ column = self.offset - text.rfind("\n", 0, self.offset)
31
+ return f"{path}:{line}:{column}: {self.message}"
32
+
33
+
34
+ def _escaped(text: str, offset: int) -> bool:
35
+ start = offset
36
+ while start and text[start - 1] == "\\":
37
+ start -= 1
38
+ return (offset - start) % 2 != 0
39
+
40
+
41
+ def _mask(text: str) -> str:
42
+ return re.sub(r"[^\r\n]", " ", text)
43
+
44
+
45
+ def _prose(text: str) -> str:
46
+ # Keep offsets stable, and do not pair inline delimiters across block boundaries.
47
+ output: list[str] = []
48
+ paragraph: list[str] = []
49
+ fence = ""
50
+
51
+ def flush() -> None:
52
+ if paragraph:
53
+ body = "".join(paragraph)
54
+ output.append(_LITERAL.sub(
55
+ lambda match: match[0] if _escaped(body, match.start()) else _mask(match[0]),
56
+ body,
57
+ ))
58
+ paragraph.clear()
59
+
60
+ for line in text.splitlines(keepends=True):
61
+ raw = line.rstrip("\r\n")
62
+ match = _FENCE.match(raw)
63
+ if fence:
64
+ output.append(_mask(line))
65
+ if match and raw.lstrip(" \t").startswith(fence) and not match[2].strip():
66
+ fence = ""
67
+ elif match and (match[1][0] == "~" or "`" not in match[2]):
68
+ flush()
69
+ fence = match[1]
70
+ output.append(_mask(line))
71
+ elif not raw.strip() or raw.startswith((" ", "\t")) or raw.lstrip().startswith(">"):
72
+ flush()
73
+ output.append(_mask(line))
74
+ else:
75
+ paragraph.append(line)
76
+ flush()
77
+ return "".join(output)
78
+
79
+
80
+ def inspect_markdown(text: str) -> list[FormatIssue]:
81
+ prose = _prose(text)
82
+ issues = []
83
+ for match in _STRONG.finditer(prose):
84
+ start, end = match.span()
85
+ if (end == len(prose) or not prose[start + 2].isalnum()
86
+ or prose[end - 3] not in _STRONG_PUNCTUATION):
87
+ continue
88
+ if (not unicodedata.name(prose[end], "").startswith("CJK UNIFIED IDEOGRAPH-")
89
+ or _escaped(text, start) or _escaped(text, end - 2)
90
+ or prose[start:end] != text[start:end]):
91
+ continue
92
+ tail = end - 3
93
+ while unicodedata.category(prose[tail - 1]).startswith("P"):
94
+ tail -= 1
95
+ replacement = "**" + prose[tail:end - 2] if prose[tail - 1].isalnum() else None
96
+ issues.append(FormatIssue(tail, end - tail, "move punctuation outside closing '**'", replacement))
97
+ for match in _WEB_MARKER.finditer(prose):
98
+ if not _escaped(text, match.start()):
99
+ issues.append(FormatIssue(match.start(), len(match[0]), "unresolved web citation marker; supply a verified source link"))
100
+ return sorted(issues, key=lambda issue: issue.offset)
101
+
102
+
103
+ def preview_corrections(text: str, issues: list[FormatIssue]) -> str:
104
+ for issue in reversed(issues):
105
+ if issue.replacement is not None:
106
+ text = text[:issue.offset] + issue.replacement + text[issue.offset + issue.length:]
107
+ return text
@@ -122,6 +122,30 @@ def get_packages_info(repo_root: Path) -> list[dict]:
122
122
  return result
123
123
 
124
124
 
125
+ def collect_spec_index_paths(repo_root: Path, input_data: dict | None = None, platform: str | None = None) -> list[str]:
126
+ """Discover root, shared, package and legacy indexes under configured scope."""
127
+ spec_dir = repo_root / DIR_WORKFLOW / DIR_SPEC
128
+ if not spec_dir.is_dir():
129
+ return []
130
+ packages = get_packages(repo_root) or {}
131
+ current = get_current_task(repo_root, input_data, platform=platform)
132
+ task = load_task(repo_root / current) if current else None
133
+ allowed = _resolve_scope_set(packages, get_spec_scope(repo_root), task.package if task else None, get_default_package(repo_root))
134
+ paths: list[Path] = []
135
+ for candidate in [spec_dir / "index.md", spec_dir / "guides" / "index.md"]:
136
+ if candidate.is_file():
137
+ paths.append(candidate)
138
+ for sub in sorted(spec_dir.iterdir()):
139
+ if not sub.is_dir() or sub.name.startswith(".") or sub.name == "guides":
140
+ continue
141
+ if sub.name in packages and allowed is not None and sub.name not in allowed:
142
+ continue
143
+ if (sub / "index.md").is_file():
144
+ paths.append(sub / "index.md")
145
+ paths.extend(candidate for candidate in sorted(sub.glob("*/index.md")) if candidate.is_file())
146
+ return [candidate.relative_to(repo_root).as_posix() for candidate in paths]
147
+
148
+
125
149
  def get_packages_section(repo_root: Path) -> str:
126
150
  """Build the PACKAGES section for text output."""
127
151
  spec_dir = repo_root / DIR_WORKFLOW / DIR_SPEC
@@ -166,6 +190,8 @@ def get_context_packages_text(repo_root: Path | None = None) -> str:
166
190
  spec_dir = repo_root / DIR_WORKFLOW / DIR_SPEC
167
191
  lines.append("Single-repo project (no packages configured)")
168
192
  lines.append("")
193
+ if (spec_dir / "index.md").is_file():
194
+ lines.append("Spec index: .trellis/spec/index.md")
169
195
  layers = _scan_spec_layers(spec_dir)
170
196
  if layers:
171
197
  lines.append(f"Spec layers: {', '.join(layers)}")
@@ -192,11 +218,13 @@ def get_context_packages_text(repo_root: Path | None = None) -> str:
192
218
 
193
219
  lines.append(f"### {pkg['name']}{default_tag}{type_tag}{git_tag}{scope_tag}")
194
220
  lines.append(f"Path: {pkg['path']}")
221
+ if (repo_root / DIR_WORKFLOW / DIR_SPEC / pkg["name"] / "index.md").is_file():
222
+ lines.append(f"Spec index: .trellis/spec/{pkg['name']}/index.md")
195
223
  if pkg["specLayers"]:
196
224
  lines.append(f"Spec layers: {', '.join(pkg['specLayers'])}")
197
225
  for layer in pkg["specLayers"]:
198
226
  lines.append(f" - .trellis/spec/{pkg['name']}/{layer}/index.md")
199
- else:
227
+ elif not (repo_root / DIR_WORKFLOW / DIR_SPEC / pkg["name"] / "index.md").is_file():
200
228
  lines.append("Spec: not configured")
201
229
  lines.append("")
202
230
 
@@ -9,21 +9,20 @@ Provides:
9
9
  get_context_text_record - Text for record mode
10
10
  output_json - Print JSON
11
11
  output_text - Print text
12
- get_update_hint - Once-per-session "update available" line
12
+ get_update_hint - Once-per-version-pair "update available" line
13
13
  """
14
14
 
15
15
  from __future__ import annotations
16
16
 
17
17
  import json
18
- import os
19
18
  import re
20
19
  import subprocess
21
20
  import sys
22
21
  from pathlib import Path
23
22
 
24
- from .active_task import resolve_context_key
25
23
  from .config import get_git_packages
26
24
  from .git import run_git
25
+ from .io import read_json, write_json
27
26
  from .packages_context import get_packages_section
28
27
  from .tasks import iter_active_tasks, load_task, get_all_statuses, children_progress
29
28
  from .paths import (
@@ -419,55 +418,17 @@ def _compare_versions(left: str, right: str) -> int | None:
419
418
 
420
419
 
421
420
  def _update_marker_path(repo_root: Path, context_key: str | None = None) -> Path:
422
- """Path of the once-per-session marker that throttles the update check.
423
-
424
- `context_key` lets a caller that already resolved session identity pass it
425
- in — the SessionStart hook reads the session id from hook stdin, which is
426
- more reliable than this function's environment-only fallback chain. Shell
427
- entry points leave it None and keep the previous behavior.
428
- """
429
- if not context_key:
430
- context_key = resolve_context_key()
431
- if not context_key:
432
- terminal_key = os.environ.get("TERM_SESSION_ID", "").strip()
433
- context_key = terminal_key or f"ppid-{os.getppid()}"
434
- safe_key = re.sub(r"[^A-Za-z0-9._-]+", "_", context_key).strip("._-")
435
- if not safe_key:
436
- safe_key = "session"
437
- return (
438
- repo_root
439
- / DIR_WORKFLOW
440
- / ".runtime"
441
- / f"update-check-{safe_key[:160]}.marker"
442
- )
443
-
444
-
445
- def _mark_update_check_attempted(
446
- repo_root: Path,
447
- context_key: str | None = None,
448
- ) -> bool:
449
- marker_path = _update_marker_path(repo_root, context_key)
450
- if marker_path.exists():
451
- return False
452
- try:
453
- marker_path.parent.mkdir(parents=True, exist_ok=True)
454
- marker_path.write_text("checked\n", encoding="utf-8")
455
- except OSError:
456
- pass
457
- return True
421
+ """Keep one advisory record, independent of the number of sessions."""
422
+ return repo_root / DIR_WORKFLOW / ".runtime" / "update-check.json"
458
423
 
459
424
 
460
425
  def get_update_hint(repo_root: Path, context_key: str | None = None) -> str | None:
461
- """Return the "update available" line for this session, at most once.
426
+ """Return the local CLI hint once per project/installed version pair.
462
427
 
463
428
  Public because the SessionStart hook imports it: the text-mode CLI path
464
429
  (`get_context.py`) used to be the only caller, so hook-driven platforms —
465
430
  Claude Code included — never saw the reminder at all.
466
431
  """
467
- marker_path = _update_marker_path(repo_root, context_key)
468
- if marker_path.exists():
469
- return None
470
-
471
432
  current_version = _read_project_version(repo_root)
472
433
  if not current_version:
473
434
  return None
@@ -476,7 +437,19 @@ def get_update_hint(repo_root: Path, context_key: str | None = None) -> str | No
476
437
  if not latest_version:
477
438
  return None
478
439
 
479
- _mark_update_check_attempted(repo_root, context_key)
440
+ from .task_move import layout_lock
441
+
442
+ pair = {"project_version": current_version, "installed_version": latest_version}
443
+ marker_path = _update_marker_path(repo_root, context_key)
444
+ try:
445
+ with layout_lock(repo_root):
446
+ if read_json(marker_path) == pair:
447
+ return None
448
+ marker_path.parent.mkdir(parents=True, exist_ok=True)
449
+ if not write_json(marker_path, pair):
450
+ print("Warning: could not persist the Trellis update hint.", file=sys.stderr)
451
+ except OSError:
452
+ pass
480
453
  comparison = _compare_versions(current_version, latest_version)
481
454
  if comparison is None or comparison >= 0:
482
455
  return None
@@ -527,6 +500,7 @@ def get_context_json(repo_root: Path | None = None) -> dict:
527
500
  "parent": t.parent,
528
501
  }
529
502
  for t in iter_active_tasks(tasks_dir)
503
+ if t.status in {"planning", "in_progress"}
530
504
  ]
531
505
 
532
506
  # Package git repos (independent sub-repositories)
@@ -652,8 +626,9 @@ def get_context_text(repo_root: Path | None = None) -> str:
652
626
  task_count = 0
653
627
 
654
628
  # Collect all task data for hierarchy display
655
- all_tasks = {t.dir_name: t for t in iter_active_tasks(tasks_dir)}
656
- all_statuses = {name: t.status for name, t in all_tasks.items()}
629
+ task_records = {t.dir_name: t for t in iter_active_tasks(tasks_dir)}
630
+ all_statuses = {name: t.status for name, t in task_records.items()}
631
+ all_tasks = {name: t for name, t in task_records.items() if t.status in {"planning", "in_progress"}}
657
632
 
658
633
  def _print_task_tree(name: str, indent: int = 0) -> None:
659
634
  nonlocal task_count
@@ -667,7 +642,7 @@ def get_context_text(repo_root: Path | None = None) -> str:
667
642
  _print_task_tree(child, indent + 1)
668
643
 
669
644
  for dir_name in sorted(all_tasks.keys()):
670
- if not all_tasks[dir_name].parent:
645
+ if all_tasks[dir_name].parent not in all_tasks:
671
646
  _print_task_tree(dir_name)
672
647
 
673
648
  if task_count == 0:
@@ -744,7 +719,7 @@ def get_context_record_json(repo_root: Path | None = None) -> dict:
744
719
 
745
720
  my_tasks = []
746
721
  for t in all_tasks_list:
747
- if t.assignee == developer:
722
+ if t.assignee == developer and t.status in {"planning", "in_progress"}:
748
723
  done = sum(
749
724
  1 for c in t.children
750
725
  if all_statuses.get(c) in ("completed", "done")
@@ -834,7 +809,7 @@ def get_context_text_record(repo_root: Path | None = None) -> str:
834
809
  all_statuses = get_all_statuses(tasks_dir)
835
810
 
836
811
  for t in iter_active_tasks(tasks_dir):
837
- if t.assignee == developer:
812
+ if t.assignee == developer and t.status in {"planning", "in_progress"}:
838
813
  progress = children_progress(t.children, all_statuses)
839
814
  lines.append(f"- [{t.priority}] {t.title} ({t.status}){progress} — {t.dir_name}")
840
815
  my_task_count += 1