@pennixrv/trellis 0.7.1 → 0.7.2-beta.10

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 (343) hide show
  1. package/README.md +10 -7
  2. package/dist/cli/index.d.ts.map +1 -1
  3. package/dist/cli/index.js +6 -4
  4. package/dist/cli/index.js.map +1 -1
  5. package/dist/commands/ablate.d.ts.map +1 -1
  6. package/dist/commands/ablate.js +2 -0
  7. package/dist/commands/ablate.js.map +1 -1
  8. package/dist/commands/backup.d.ts +4 -0
  9. package/dist/commands/backup.d.ts.map +1 -0
  10. package/dist/commands/backup.js +75 -0
  11. package/dist/commands/backup.js.map +1 -0
  12. package/dist/commands/init.d.ts.map +1 -1
  13. package/dist/commands/init.js +705 -681
  14. package/dist/commands/init.js.map +1 -1
  15. package/dist/commands/mem.d.ts.map +1 -1
  16. package/dist/commands/mem.js +49 -7
  17. package/dist/commands/mem.js.map +1 -1
  18. package/dist/commands/task-progress.d.ts +1 -0
  19. package/dist/commands/task-progress.d.ts.map +1 -1
  20. package/dist/commands/task-progress.js +67 -25
  21. package/dist/commands/task-progress.js.map +1 -1
  22. package/dist/commands/teamwork/adapters/acp.d.ts +20 -0
  23. package/dist/commands/teamwork/adapters/acp.d.ts.map +1 -0
  24. package/dist/commands/teamwork/adapters/acp.js +271 -0
  25. package/dist/commands/teamwork/adapters/acp.js.map +1 -0
  26. package/dist/commands/teamwork/adapters/claude.d.ts +1 -0
  27. package/dist/commands/teamwork/adapters/claude.d.ts.map +1 -1
  28. package/dist/commands/teamwork/adapters/claude.js +5 -0
  29. package/dist/commands/teamwork/adapters/claude.js.map +1 -1
  30. package/dist/commands/teamwork/adapters/codex.d.ts +3 -2
  31. package/dist/commands/teamwork/adapters/codex.d.ts.map +1 -1
  32. package/dist/commands/teamwork/adapters/codex.js +14 -15
  33. package/dist/commands/teamwork/adapters/codex.js.map +1 -1
  34. package/dist/commands/teamwork/adapters/index.d.ts +24 -2
  35. package/dist/commands/teamwork/adapters/index.d.ts.map +1 -1
  36. package/dist/commands/teamwork/adapters/index.js +163 -24
  37. package/dist/commands/teamwork/adapters/index.js.map +1 -1
  38. package/dist/commands/teamwork/agent-loader.d.ts +2 -1
  39. package/dist/commands/teamwork/agent-loader.d.ts.map +1 -1
  40. package/dist/commands/teamwork/agent-loader.js +2 -1
  41. package/dist/commands/teamwork/agent-loader.js.map +1 -1
  42. package/dist/commands/teamwork/artifact.d.ts +42 -14
  43. package/dist/commands/teamwork/artifact.d.ts.map +1 -1
  44. package/dist/commands/teamwork/artifact.js +188 -85
  45. package/dist/commands/teamwork/artifact.js.map +1 -1
  46. package/dist/commands/teamwork/batch-reservation.d.ts +16 -0
  47. package/dist/commands/teamwork/batch-reservation.d.ts.map +1 -0
  48. package/dist/commands/teamwork/batch-reservation.js +43 -0
  49. package/dist/commands/teamwork/batch-reservation.js.map +1 -0
  50. package/dist/commands/teamwork/batch.d.ts +23 -0
  51. package/dist/commands/teamwork/batch.d.ts.map +1 -0
  52. package/dist/commands/teamwork/batch.js +415 -0
  53. package/dist/commands/teamwork/batch.js.map +1 -0
  54. package/dist/commands/teamwork/context-loader.d.ts +1 -1
  55. package/dist/commands/teamwork/context-loader.d.ts.map +1 -1
  56. package/dist/commands/teamwork/context-loader.js +19 -6
  57. package/dist/commands/teamwork/context-loader.js.map +1 -1
  58. package/dist/commands/teamwork/coordination.d.ts +88 -0
  59. package/dist/commands/teamwork/coordination.d.ts.map +1 -0
  60. package/dist/commands/teamwork/coordination.js +153 -0
  61. package/dist/commands/teamwork/coordination.js.map +1 -0
  62. package/dist/commands/teamwork/coordinator.d.ts +33 -6
  63. package/dist/commands/teamwork/coordinator.d.ts.map +1 -1
  64. package/dist/commands/teamwork/coordinator.js +948 -342
  65. package/dist/commands/teamwork/coordinator.js.map +1 -1
  66. package/dist/commands/teamwork/create.d.ts +1 -0
  67. package/dist/commands/teamwork/create.d.ts.map +1 -1
  68. package/dist/commands/teamwork/create.js +2 -1
  69. package/dist/commands/teamwork/create.js.map +1 -1
  70. package/dist/commands/teamwork/dev-parse-trace.d.ts +2 -1
  71. package/dist/commands/teamwork/dev-parse-trace.d.ts.map +1 -1
  72. package/dist/commands/teamwork/dev-parse-trace.js +2 -0
  73. package/dist/commands/teamwork/dev-parse-trace.js.map +1 -1
  74. package/dist/commands/teamwork/foreground-wait.d.ts +6 -0
  75. package/dist/commands/teamwork/foreground-wait.d.ts.map +1 -0
  76. package/dist/commands/teamwork/foreground-wait.js +65 -0
  77. package/dist/commands/teamwork/foreground-wait.js.map +1 -0
  78. package/dist/commands/teamwork/guard.d.ts +2 -2
  79. package/dist/commands/teamwork/guard.d.ts.map +1 -1
  80. package/dist/commands/teamwork/guard.js +25 -7
  81. package/dist/commands/teamwork/guard.js.map +1 -1
  82. package/dist/commands/teamwork/index.d.ts.map +1 -1
  83. package/dist/commands/teamwork/index.js +164 -11
  84. package/dist/commands/teamwork/index.js.map +1 -1
  85. package/dist/commands/teamwork/kill.d.ts +2 -0
  86. package/dist/commands/teamwork/kill.d.ts.map +1 -1
  87. package/dist/commands/teamwork/kill.js +79 -38
  88. package/dist/commands/teamwork/kill.js.map +1 -1
  89. package/dist/commands/teamwork/messages.d.ts.map +1 -1
  90. package/dist/commands/teamwork/messages.js +3 -0
  91. package/dist/commands/teamwork/messages.js.map +1 -1
  92. package/dist/commands/teamwork/plan.d.ts +22 -0
  93. package/dist/commands/teamwork/plan.d.ts.map +1 -0
  94. package/dist/commands/teamwork/plan.js +288 -0
  95. package/dist/commands/teamwork/plan.js.map +1 -0
  96. package/dist/commands/teamwork/process-identity.d.ts +3 -0
  97. package/dist/commands/teamwork/process-identity.d.ts.map +1 -0
  98. package/dist/commands/teamwork/process-identity.js +24 -0
  99. package/dist/commands/teamwork/process-identity.js.map +1 -0
  100. package/dist/commands/teamwork/profiles.d.ts +43 -6
  101. package/dist/commands/teamwork/profiles.d.ts.map +1 -1
  102. package/dist/commands/teamwork/profiles.js +138 -110
  103. package/dist/commands/teamwork/profiles.js.map +1 -1
  104. package/dist/commands/teamwork/prompt.d.ts +4 -0
  105. package/dist/commands/teamwork/prompt.d.ts.map +1 -0
  106. package/dist/commands/teamwork/prompt.js +33 -0
  107. package/dist/commands/teamwork/prompt.js.map +1 -0
  108. package/dist/commands/teamwork/result.d.ts +55 -0
  109. package/dist/commands/teamwork/result.d.ts.map +1 -0
  110. package/dist/commands/teamwork/result.js +94 -0
  111. package/dist/commands/teamwork/result.js.map +1 -0
  112. package/dist/commands/teamwork/rm.d.ts.map +1 -1
  113. package/dist/commands/teamwork/rm.js +64 -64
  114. package/dist/commands/teamwork/rm.js.map +1 -1
  115. package/dist/commands/teamwork/run.d.ts +5 -0
  116. package/dist/commands/teamwork/run.d.ts.map +1 -1
  117. package/dist/commands/teamwork/run.js +120 -24
  118. package/dist/commands/teamwork/run.js.map +1 -1
  119. package/dist/commands/teamwork/runtime.d.ts +9 -0
  120. package/dist/commands/teamwork/runtime.d.ts.map +1 -0
  121. package/dist/commands/teamwork/runtime.js +402 -0
  122. package/dist/commands/teamwork/runtime.js.map +1 -0
  123. package/dist/commands/teamwork/send.d.ts +1 -0
  124. package/dist/commands/teamwork/send.d.ts.map +1 -1
  125. package/dist/commands/teamwork/send.js +2 -1
  126. package/dist/commands/teamwork/send.js.map +1 -1
  127. package/dist/commands/teamwork/spawn.d.ts +10 -3
  128. package/dist/commands/teamwork/spawn.d.ts.map +1 -1
  129. package/dist/commands/teamwork/spawn.js +44 -27
  130. package/dist/commands/teamwork/spawn.js.map +1 -1
  131. package/dist/commands/teamwork/store/lock.js +28 -4
  132. package/dist/commands/teamwork/store/lock.js.map +1 -1
  133. package/dist/commands/teamwork/supervisor/inbox.d.ts +1 -0
  134. package/dist/commands/teamwork/supervisor/inbox.d.ts.map +1 -1
  135. package/dist/commands/teamwork/supervisor/inbox.js +28 -9
  136. package/dist/commands/teamwork/supervisor/inbox.js.map +1 -1
  137. package/dist/commands/teamwork/supervisor/stdout.d.ts.map +1 -1
  138. package/dist/commands/teamwork/supervisor/stdout.js +2 -3
  139. package/dist/commands/teamwork/supervisor/stdout.js.map +1 -1
  140. package/dist/commands/teamwork/supervisor/warning.d.ts.map +1 -1
  141. package/dist/commands/teamwork/supervisor/warning.js +2 -3
  142. package/dist/commands/teamwork/supervisor/warning.js.map +1 -1
  143. package/dist/commands/teamwork/supervisor.d.ts +6 -1
  144. package/dist/commands/teamwork/supervisor.d.ts.map +1 -1
  145. package/dist/commands/teamwork/supervisor.js +21 -12
  146. package/dist/commands/teamwork/supervisor.js.map +1 -1
  147. package/dist/commands/teamwork/teammate-adapters.d.ts +3 -5
  148. package/dist/commands/teamwork/teammate-adapters.d.ts.map +1 -1
  149. package/dist/commands/teamwork/teammate-adapters.js +23 -61
  150. package/dist/commands/teamwork/teammate-adapters.js.map +1 -1
  151. package/dist/commands/teamwork/teammate-config.d.ts +5 -1
  152. package/dist/commands/teamwork/teammate-config.d.ts.map +1 -1
  153. package/dist/commands/teamwork/teammate-config.js +62 -19
  154. package/dist/commands/teamwork/teammate-config.js.map +1 -1
  155. package/dist/commands/teamwork/teammate-launch.d.ts +15 -6
  156. package/dist/commands/teamwork/teammate-launch.d.ts.map +1 -1
  157. package/dist/commands/teamwork/teammate-launch.js +129 -22
  158. package/dist/commands/teamwork/teammate-launch.js.map +1 -1
  159. package/dist/commands/teamwork/wait.d.ts +2 -0
  160. package/dist/commands/teamwork/wait.d.ts.map +1 -1
  161. package/dist/commands/teamwork/wait.js +44 -3
  162. package/dist/commands/teamwork/wait.js.map +1 -1
  163. package/dist/commands/uninstall.d.ts.map +1 -1
  164. package/dist/commands/uninstall.js +92 -84
  165. package/dist/commands/uninstall.js.map +1 -1
  166. package/dist/commands/update.d.ts.map +1 -1
  167. package/dist/commands/update.js +635 -592
  168. package/dist/commands/update.js.map +1 -1
  169. package/dist/commands/workflow.d.ts.map +1 -1
  170. package/dist/commands/workflow.js +94 -89
  171. package/dist/commands/workflow.js.map +1 -1
  172. package/dist/configurators/shared.js +2 -2
  173. package/dist/configurators/shared.js.map +1 -1
  174. package/dist/configurators/workflow.d.ts.map +1 -1
  175. package/dist/configurators/workflow.js +14 -32
  176. package/dist/configurators/workflow.js.map +1 -1
  177. package/dist/constants/paths.d.ts +3 -10
  178. package/dist/constants/paths.d.ts.map +1 -1
  179. package/dist/constants/paths.js +4 -13
  180. package/dist/constants/paths.js.map +1 -1
  181. package/dist/migrations/manifests/0.7.1-beta.0.json +9 -0
  182. package/dist/migrations/manifests/0.7.1-beta.1.json +186 -0
  183. package/dist/migrations/manifests/0.7.1-beta.10.json +9 -0
  184. package/dist/migrations/manifests/0.7.1-beta.11.json +9 -0
  185. package/dist/migrations/manifests/0.7.1-beta.12.json +9 -0
  186. package/dist/migrations/manifests/0.7.1-beta.13.json +9 -0
  187. package/dist/migrations/manifests/0.7.1-beta.14.json +11 -0
  188. package/dist/migrations/manifests/0.7.1-beta.15.json +9 -0
  189. package/dist/migrations/manifests/0.7.1-beta.16.json +9 -0
  190. package/dist/migrations/manifests/0.7.1-beta.17.json +9 -0
  191. package/dist/migrations/manifests/0.7.1-beta.18.json +9 -0
  192. package/dist/migrations/manifests/0.7.1-beta.19.json +9 -0
  193. package/dist/migrations/manifests/0.7.1-beta.2.json +522 -0
  194. package/dist/migrations/manifests/0.7.1-beta.3.json +9 -0
  195. package/dist/migrations/manifests/0.7.1-beta.4.json +9 -0
  196. package/dist/migrations/manifests/0.7.1-beta.5.json +9 -0
  197. package/dist/migrations/manifests/0.7.1-beta.6.json +10 -0
  198. package/dist/migrations/manifests/0.7.1-beta.7.json +8 -0
  199. package/dist/migrations/manifests/0.7.1-beta.8.json +481 -0
  200. package/dist/migrations/manifests/0.7.1-beta.9.json +191 -0
  201. package/dist/migrations/manifests/0.7.2-beta.0.json +11 -0
  202. package/dist/migrations/manifests/0.7.2-beta.1.json +11 -0
  203. package/dist/migrations/manifests/0.7.2-beta.10.json +9 -0
  204. package/dist/migrations/manifests/0.7.2-beta.2.json +11 -0
  205. package/dist/migrations/manifests/0.7.2-beta.3.json +9 -0
  206. package/dist/migrations/manifests/0.7.2-beta.4.json +9 -0
  207. package/dist/migrations/manifests/0.7.2-beta.5.json +9 -0
  208. package/dist/migrations/manifests/0.7.2-beta.6.json +9 -0
  209. package/dist/migrations/manifests/0.7.2-beta.7.json +9 -0
  210. package/dist/migrations/manifests/0.7.2-beta.8.json +9 -0
  211. package/dist/migrations/manifests/0.7.2-beta.9.json +9 -0
  212. package/dist/templates/claude/hooks/statusline.py +9 -4
  213. package/dist/templates/codex/hooks/session-start.py +28 -11
  214. package/dist/templates/codex/hooks.json +10 -0
  215. package/dist/templates/common/bundled-skills/trellis-decision-space-construction-and-merging/SKILL.md +2 -0
  216. package/dist/templates/common/bundled-skills/trellis-decision-space-construction-and-merging/workflow.md +8 -2
  217. package/dist/templates/common/bundled-skills/trellis-delivery-review-and-closeout/SKILL.md +2 -0
  218. package/dist/templates/common/bundled-skills/trellis-goal-exploration-and-requirements/SKILL.md +2 -0
  219. package/dist/templates/common/bundled-skills/trellis-goal-exploration-and-requirements/workflow.md +2 -0
  220. package/dist/templates/common/bundled-skills/trellis-meta/SKILL.md +1 -1
  221. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/add-project-local-conventions.md +1 -1
  222. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-context-loading.md +5 -5
  223. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/change-task-lifecycle.md +3 -2
  224. package/dist/templates/common/bundled-skills/trellis-meta/references/customize-local/overview.md +1 -1
  225. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/context-injection.md +1 -1
  226. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/multi-agent-teamwork.md +20 -2
  227. package/dist/templates/common/bundled-skills/trellis-meta/references/local-architecture/task-system.md +8 -2
  228. package/dist/templates/common/bundled-skills/trellis-session-insight/references/cli-quick-reference.md +2 -1
  229. package/dist/templates/common/bundled-skills/trellis-session-insight/references/triggering-patterns.md +2 -2
  230. package/dist/templates/common/bundled-skills/trellis-solution-design-and-convergence/SKILL.md +2 -0
  231. package/dist/templates/common/bundled-skills/trellis-solution-design-and-convergence/workflow.md +22 -5
  232. package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/mcp-setup.md +4 -2
  233. package/dist/templates/common/bundled-skills/trellis-spec-bootstrap/references/spec-task-planning.md +2 -2
  234. package/dist/templates/common/bundled-skills/trellis-task-implementation/SKILL.md +2 -0
  235. package/dist/templates/common/bundled-skills/trellis-task-implementation/workflow.md +6 -0
  236. package/dist/templates/common/bundled-skills/trellis-teamwork/SKILL.md +25 -3
  237. package/dist/templates/common/bundled-skills/trellis-teamwork/references/coordination-modes.md +34 -3
  238. package/dist/templates/common/bundled-skills/trellis-teamwork/references/teammate-configuration-matrix.md +37 -26
  239. package/dist/templates/common/bundled-skills/trellis-teamwork/references/teammate-processes.md +128 -14
  240. package/dist/templates/common/bundled-skills/trellis-teamwork/references/teamwork-plan-construction.md +152 -20
  241. package/dist/templates/common/bundled-skills/trellis-worktree-delegation/SKILL.md +14 -0
  242. package/dist/templates/common/bundled-skills/trellis-worktree-delegation/workflow.md +17 -0
  243. package/dist/templates/common/commands/continue.md +2 -0
  244. package/dist/templates/common/commands/start.md +4 -2
  245. package/dist/templates/common/skills/before-dev.md +1 -4
  246. package/dist/templates/common/skills/break-loop.md +7 -18
  247. package/dist/templates/common/skills/check.md +7 -11
  248. package/dist/templates/common/skills/request-intake.md +25 -0
  249. package/dist/templates/common/skills/update-spec.md +5 -7
  250. package/dist/templates/copilot/hooks/session-start.py +14 -11
  251. package/dist/templates/copilot/index.d.ts +1 -6
  252. package/dist/templates/copilot/index.d.ts.map +1 -1
  253. package/dist/templates/copilot/index.js +1 -14
  254. package/dist/templates/copilot/index.js.map +1 -1
  255. package/dist/templates/extract.js +4 -0
  256. package/dist/templates/extract.js.map +1 -1
  257. package/dist/templates/kiro/agents/trellis.json +1 -1
  258. package/dist/templates/markdown/spec/backend/index.md.txt +4 -35
  259. package/dist/templates/markdown/spec/frontend/index.md.txt +4 -36
  260. package/dist/templates/omp/extensions/trellis/index.ts.txt +2 -2
  261. package/dist/templates/opencode/lib/session-utils.js +301 -209
  262. package/dist/templates/pi/extensions/trellis/index.ts.txt +17 -1
  263. package/dist/templates/shared-hooks/guard-teamwork-wait.py +58 -0
  264. package/dist/templates/shared-hooks/index.d.ts +1 -1
  265. package/dist/templates/shared-hooks/index.d.ts.map +1 -1
  266. package/dist/templates/shared-hooks/index.js +1 -0
  267. package/dist/templates/shared-hooks/index.js.map +1 -1
  268. package/dist/templates/shared-hooks/inject-workflow-state.py +23 -3
  269. package/dist/templates/shared-hooks/session-start.py +16 -12
  270. package/dist/templates/snow/SNOW.md +1 -1
  271. package/dist/templates/trellis/agents/delegated-worktree-primary-agent.md +18 -11
  272. package/dist/templates/trellis/agents/profiles/architecture.md +9 -0
  273. package/dist/templates/trellis/agents/profiles/diagnosis.md +9 -0
  274. package/dist/templates/trellis/agents/profiles/exploration.md +9 -0
  275. package/dist/templates/trellis/agents/profiles/research.md +9 -0
  276. package/dist/templates/trellis/agents/profiles/review.md +9 -0
  277. package/dist/templates/trellis/agents/profiles/verification.md +9 -0
  278. package/dist/templates/trellis/agents/teammate-profiles.json +56 -4
  279. package/dist/templates/trellis/agents/teammate.md +6 -52
  280. package/dist/templates/trellis/agents/worktree-delegation-node.md +24 -0
  281. package/dist/templates/trellis/config.yaml +2 -5
  282. package/dist/templates/trellis/index.d.ts +4 -0
  283. package/dist/templates/trellis/index.d.ts.map +1 -1
  284. package/dist/templates/trellis/index.js +23 -4
  285. package/dist/templates/trellis/index.js.map +1 -1
  286. package/dist/templates/trellis/scripts/add_session.py +1 -1
  287. package/dist/templates/trellis/scripts/common/active_task.py +3 -47
  288. package/dist/templates/trellis/scripts/common/config.py +5 -0
  289. package/dist/templates/trellis/scripts/common/git_context.py +10 -0
  290. package/dist/templates/trellis/scripts/common/io.py +2 -2
  291. package/dist/templates/trellis/scripts/common/paths.py +9 -25
  292. package/dist/templates/trellis/scripts/common/safe_commit.py +8 -8
  293. package/dist/templates/trellis/scripts/common/task_context.py +11 -51
  294. package/dist/templates/trellis/scripts/common/task_continuity.py +202 -60
  295. package/dist/templates/trellis/scripts/common/task_layout.py +80 -0
  296. package/dist/templates/trellis/scripts/common/task_move.py +345 -0
  297. package/dist/templates/trellis/scripts/common/task_store.py +57 -57
  298. package/dist/templates/trellis/scripts/common/task_utils.py +23 -19
  299. package/dist/templates/trellis/scripts/common/task_workflow.py +400 -50
  300. package/dist/templates/trellis/scripts/common/tasks.py +6 -5
  301. package/dist/templates/trellis/scripts/common/worktree_delegation.py +561 -0
  302. package/dist/templates/trellis/scripts/hooks/linear_sync.py +13 -3
  303. package/dist/templates/trellis/scripts/task.py +109 -24
  304. package/dist/templates/trellis/teamwork.json +10 -0
  305. package/dist/templates/trellis/workflow.md +31 -5
  306. package/dist/utils/ablation-store.d.ts +1 -1
  307. package/dist/utils/ablation-store.d.ts.map +1 -1
  308. package/dist/utils/ablation-store.js +58 -24
  309. package/dist/utils/ablation-store.js.map +1 -1
  310. package/dist/utils/asset-backup.d.ts +138 -0
  311. package/dist/utils/asset-backup.d.ts.map +1 -0
  312. package/dist/utils/asset-backup.js +525 -0
  313. package/dist/utils/asset-backup.js.map +1 -0
  314. package/dist/utils/atomic-write.d.ts +1 -1
  315. package/dist/utils/atomic-write.d.ts.map +1 -1
  316. package/dist/utils/atomic-write.js +6 -3
  317. package/dist/utils/atomic-write.js.map +1 -1
  318. package/dist/utils/manifest-prune.d.ts +4 -1
  319. package/dist/utils/manifest-prune.d.ts.map +1 -1
  320. package/dist/utils/manifest-prune.js +17 -6
  321. package/dist/utils/manifest-prune.js.map +1 -1
  322. package/dist/utils/template-fetcher.d.ts +4 -19
  323. package/dist/utils/template-fetcher.d.ts.map +1 -1
  324. package/dist/utils/template-fetcher.js +9 -45
  325. package/dist/utils/template-fetcher.js.map +1 -1
  326. package/dist/utils/template-hash.d.ts +5 -4
  327. package/dist/utils/template-hash.d.ts.map +1 -1
  328. package/dist/utils/template-hash.js +24 -17
  329. package/dist/utils/template-hash.js.map +1 -1
  330. package/package.json +3 -2
  331. package/dist/templates/common/skills/brainstorm.md +0 -21
  332. package/dist/templates/copilot/prompts/before-dev.prompt.md +0 -39
  333. package/dist/templates/copilot/prompts/brainstorm.prompt.md +0 -13
  334. package/dist/templates/copilot/prompts/break-loop.prompt.md +0 -129
  335. package/dist/templates/copilot/prompts/check-cross-layer.prompt.md +0 -170
  336. package/dist/templates/copilot/prompts/check.prompt.md +0 -110
  337. package/dist/templates/copilot/prompts/create-command.prompt.md +0 -116
  338. package/dist/templates/copilot/prompts/finish-work.prompt.md +0 -22
  339. package/dist/templates/copilot/prompts/integrate-skill.prompt.md +0 -223
  340. package/dist/templates/copilot/prompts/onboard.prompt.md +0 -362
  341. package/dist/templates/copilot/prompts/record-session.prompt.md +0 -58
  342. package/dist/templates/copilot/prompts/start.prompt.md +0 -65
  343. package/dist/templates/copilot/prompts/update-spec.prompt.md +0 -358
@@ -14,10 +14,14 @@ coordination_mode
14
14
  ```
15
15
 
16
16
  The plan also freezes the Teamwork Session, batch, deadline, protected targets,
17
- and ordered `assignments`. Each assignment has an `assignment_id`, brief path,
18
- role, provider, optional profile and model, scope, lens, source digest,
19
- acceptance criteria, and an explicit retry budget. The CLI validates the plan
20
- and the immutable brief before dispatch.
17
+ and ordered `assignments`. Each assignment has an `assignment_id`, selected
18
+ profile/configuration, selection reason, task input, scope, optional lens,
19
+ source digest, acceptance criteria, and an explicit retry budget. The native
20
+ constructor resolves the effective provider/model/effort/options and common
21
+ plus professional instructions, then publishes schema-2 plan and briefs.
22
+ Claims also use schema 2; new launches freeze `reportVersion: 2`. Historical
23
+ frozen launches without it continue to read schema-1 reports. Do not hand-author frozen
24
+ execution objects, role or capability digests, claims, or plan hashes.
21
25
 
22
26
  Use the native task lifecycle for task status and acceptance. Teamwork records
23
27
  coordination facts and teammate reports; it does not write `current_phase_id`,
@@ -39,40 +43,168 @@ specs, and the generic teammate role card. Freeze the input revision and route
39
43
  revision after the coordinator has selected the scope. If those values change,
40
44
  construct a new plan rather than mixing results from different task inputs.
41
45
 
42
- The public dispatch entry point is:
46
+ Construct and run through the native entry points:
43
47
 
44
48
  ```bash
45
- trellis teamwork batch <plan-path>
49
+ trellis teamwork config --profile review --mode advisor
50
+ trellis teamwork plan <draft.json> --task <task-dir> --output <task-dir>/plan.json --dry-run
51
+ trellis teamwork plan <draft.json> --task <task-dir> --output <task-dir>/plan.json
52
+ trellis teamwork batch <task-dir>/plan.json --task <task-dir> --preflight
53
+ trellis teamwork batch <task-dir>/plan.json --task <task-dir> --json
46
54
  ```
47
55
 
48
- The command validates the plan, then the coordinator owns dispatch, waiting,
49
- report acceptance, and the terminal receipt. The coordinating agent does not
50
- manually refill slots or create a second retry loop.
56
+ The draft is a JSON object with `schema_version: 2`, the binding fields above,
57
+ safe `batch_id` and `session_id`, `deadline`, optional `requested_capacity`
58
+ and `protected_targets`, and explicit `assignments`. A minimal member is:
59
+
60
+ ```json
61
+ {
62
+ "assignment_id": "review-a",
63
+ "profile": "review",
64
+ "configuration": "codex-sol",
65
+ "selection_reason": "Use the configured source reviewer",
66
+ "summary": "Review the selected change",
67
+ "scope": "src/example.ts",
68
+ "input": "Inspect the assigned source and return evidence in the requested report.",
69
+ "source_digest": "<SHA-256 of the selected source evidence>",
70
+ "acceptance": ["Cite precise source locations and explain observable impact"],
71
+ "max_retries": 0
72
+ }
73
+ ```
74
+
75
+ Optional member overrides are `provider`, `model`, `reasoning_effort`, and
76
+ adapter-supported `options`; context comes from `context_files` and
77
+ `context_manifests`. Committee members additionally need distinct `lens`
78
+ values and otherwise share the same task/evidence/acceptance contract. The
79
+ constructor creates their evaluation group. Read the configuration matrix
80
+ before choosing candidates. Output must be inside the selected task under
81
+ this project's `.trellis/tasks/`; existing immutable artifacts are preserved.
82
+
83
+ `--dry-run` validates all prepared briefs and paths without writing artifacts.
84
+ `--preflight` validates frozen inputs, current native task revisions and
85
+ capacity without launching a provider; `processProbe: not_run` means accounts,
86
+ models and transport have not been tested by that command. Actual dispatch
87
+ negotiates provider model and effort and fails explicitly if unsupported.
88
+
89
+ Invoke one foreground `trellis teamwork batch` command and wait for its
90
+ receipt. The CLI owns FIFO admission, capacity, provider waits, retries,
91
+ cancellation, report acceptance, and settlement. The main agent does not
92
+ schedule per-assignment waits or retries. A timeout continuation waits on the
93
+ same provider process under the frozen batch deadline; it does not send another
94
+ provider prompt or consume a full-attempt retry. At the batch deadline, the CLI
95
+ closes admission, marks undispatched FIFO work `FINAL_FAILED`, then cancels and
96
+ drains active attempts. Confirmed outcomes settle as `SETTLED_WITH_FAILURE`;
97
+ unconfirmed process exit requires reconciliation.
98
+
99
+ A valid `blocked` report with evidence ends only that assignment as
100
+ `FINAL_FAILED`; the CLI continues with the remaining FIFO work and preserves
101
+ the blocker report. Missing reports may use the assignment's declared retry
102
+ budget. A truncated report or report storage error is uncertain and requires
103
+ reconciliation. Other incomplete or rejected reports may retry only within the
104
+ declared attempt budget.
105
+
106
+ `run` and `spawn` operate interactive sessions and do not bypass batch
107
+ reconciliation. A restart returns a durable terminal receipt or
108
+ `RECONCILIATION_REQUIRED`; it never silently replays an uncertain attempt.
109
+ Before returning a recovered terminal receipt, the CLI checks the frozen plan,
110
+ all assignment dispositions, terminal attempt and teammate facts, capacity
111
+ leases, projection issues, and the exact receipt event. It may reconstruct a
112
+ missing receipt only from consistent terminal facts. Capacity reservations
113
+ survive a coordinator crash because a dead coordinator does not prove its
114
+ provider processes exited. Do not delete an unresolved reservation to make
115
+ another batch fit; inspect ownership and terminal evidence. An unreadable or
116
+ conflicting recovery state retains the reservation and original evidence; it
117
+ does not authorize a replacement dispatch.
51
118
 
52
119
  ## Teamwork Session and forum commands
53
120
 
54
121
  Create and inspect the durable runtime object with the native CLI:
55
122
 
56
123
  ```bash
57
- trellis teamwork create <name> --type chat|forum
124
+ trellis teamwork create <name> --type chat|forum \
125
+ --task .trellis/tasks/in_progress/<task-dir> --description "bounded discussion"
58
126
  trellis teamwork list [--scope project|global] [--all]
59
127
  trellis teamwork messages <name> [--raw]
60
- trellis teamwork wait <name> --as <agent> --kind done,turn_finished
128
+ trellis teamwork wait <name> --as <agent> --from <worker> --json
61
129
  trellis teamwork forum <name>
62
130
  trellis teamwork thread <name> <thread-key>
63
131
  trellis teamwork context list <name> [--thread <thread-key>]
64
132
  ```
65
133
 
66
- Use `--context-file` and `--context-raw` for durable context. Use `--stdin` or
67
- `--text-file` for long message bodies. `--kind` selects runtime event kinds;
68
- it is not a user-defined tag. Read forum summaries and thread projections
69
- through the CLI before inspecting raw event storage.
134
+ Use `--scope global` only for a deliberately shared board; the default project
135
+ scope is isolated by the current project bucket. `create` also accepts
136
+ `--labels`, `--cwd`, `--by`, `--force`, `--context-file`, `--context-raw`, and
137
+ `--ephemeral`. Ephemeral sessions are hidden from `list` unless `--all` is
138
+ passed and are intended for short-lived coordination.
139
+
140
+ For a forum, append structured thread events with `opened`, `comment`,
141
+ `status`, or `summary` and inspect the reduced board or event timeline:
142
+
143
+ ```bash
144
+ trellis teamwork post <session> opened --as main --thread design \
145
+ --title "Design question" --description "What needs evidence?"
146
+ trellis teamwork post <session> comment --as reviewer --thread design \
147
+ --stdin
148
+ trellis teamwork post <session> status --as main --thread design --status open
149
+ trellis teamwork post <session> summary --as main --thread design \
150
+ --summary "Evidence collected"
151
+ trellis teamwork forum <session> --status open
152
+ trellis teamwork thread <session> design
153
+ trellis teamwork thread rename <session> design architecture --as main
154
+ ```
155
+
156
+ `post` can also replace labels or assignees and attach thread context with
157
+ `--context-file` / `--context-raw`. Session-level context uses
158
+ `teamwork context add|delete|list`; context deletion appends a durable
159
+ projection event rather than rewriting the event log. Use `title set` and
160
+ `title clear` for the display title.
161
+
162
+ Use `--stdin` or `--text-file` for long message and thread bodies. `messages`
163
+ supports `--raw`, `--follow`, `--last`, `--since`, `--kind`, `--from`, `--to`,
164
+ `--thread`, `--action`, and `--no-progress`. `--kind` selects runtime event
165
+ kinds; it is not a user-defined tag. Read forum summaries and thread
166
+ projections through the CLI before inspecting raw event storage.
167
+
168
+ Remove settled runtime state deliberately. `rm <name>` stops live teammates
169
+ before deleting one session. `prune` is a dry-run by default and supports one
170
+ of `--ephemeral`, `--empty`, `--idle <duration>`, or `--all`, plus `--keep`;
171
+ pass `--yes` to perform the deletion. Never use session cleanup as a task
172
+ archive operation.
70
173
 
71
174
  ## Result handling
72
175
 
176
+ Agent callers always request the machine view: `run --json`, `batch --json`,
177
+ or interactive `wait --json --from <one-worker>`. The common envelope has
178
+ `schemaVersion: 1`, `kind: trellis_result`, `mode`, `association`, `execution`,
179
+ `reports`, `semanticValidation: not_run`, and `disposition`. Execution facts
180
+ are distinct from report validation, model content status, and task acceptance.
181
+ `execution.stopped` describes confirmed process cleanup; a persistent wait
182
+ leaves its worker running. Parse stdout as one JSON object; diagnostics use
183
+ stderr. CLI argument-parser errors may precede this result contract.
184
+
185
+ Each new content report has `schema_version: 2`, `status` (complete, blocked,
186
+ incomplete, error), nonempty `answer`, nonempty `evidence` entries with
187
+ `id`, `locator`, `summary`, and arrays `limitations`, `unresolved`, `deviations`.
188
+ Interactive replies return this JSON directly, with no report file or invented
189
+ batch identity. Batch reports additionally copy the assigned task, batch,
190
+ assignment, attempt, teammate, plan, phase, route, input and source identities
191
+ into the exact report path. `done` is emitted by the adapter, not by the model.
192
+
193
+ Batch machine results expose validated report content, association, report path
194
+ and SHA-256. Missing or invalid accepted artifacts fail validation; historical
195
+ schema-1 content is explicitly `legacy`, never synthesized as a valid new
196
+ answer. Retention may remove failed-attempt artifacts. Main-agent semantic
197
+ review checks the answer and evidence against the acceptance criteria; shape
198
+ validation does not perform that review or change native task acceptance.
199
+
73
200
  The coordinator returns `ALL_ACCEPTED`, `SETTLED_WITH_FAILURE`, or
74
- `RECONCILIATION_REQUIRED`. A terminal receipt is a runtime fact. The main task
75
- then reviews reports against the phase contract, records durable evidence in
76
- the task-owned artifact, and uses the task's native acceptance gate before
77
- advancing. A formal session handoff is an independent, lower-priority
78
- continuity artifact and does not represent a phase transition.
201
+ `RECONCILIATION_REQUIRED`. For `ALL_ACCEPTED`, review every accepted report
202
+ against the phase contract, record the evidence in the task-owned artifact, and
203
+ use the native task acceptance gate before advancing. For
204
+ `SETTLED_WITH_FAILURE`, review the failure reports and blockers, do not accept
205
+ or advance the phase, and decide the next task-level action through the native
206
+ workflow. For `RECONCILIATION_REQUIRED`, stop dispatch, retry, and cleanup;
207
+ preserve the reported runtime evidence and reservation for explicit
208
+ reconciliation. A receipt is a runtime fact, not phase acceptance. A formal
209
+ session handoff is an independent, lower-priority continuity artifact and does
210
+ not represent a phase transition.
@@ -0,0 +1,14 @@
1
+ ---
2
+ name: trellis-worktree-delegation
3
+ description: 在 Trellis 已授权实施阶段,把完整结果包交由同机 Paseo 独立工作树执行,管理绑定、准备、返工、恢复及 owner 集成;不用于 Teamwork 只读审查或普通研究。
4
+ ---
5
+
6
+ # Paseo 并行协作(Paseo-based-parallelism)
7
+
8
+ 执行者称为 Paseo 委派 Agent(Paseo delegated-agent;复数 Paseo delegated-agents)。Trellis 团队协作(Trellis Teamwork)的执行者称为 Trellis 团队成员(Trellis teammate;复数 Trellis teammates)。两类机制、执行者和运行对象分别命名;本 Skill 的原生命名与 `task.py delegate-*` 命令保持不变。
9
+
10
+ 先读取 [操作合同](workflow.md)。此入口只编排已批准的完整工作包;任务阶段、授权和接受由主控 Trellis 维护,workspace、agent 和 provider thread 由 Paseo 维护。Teamwork 用于有界只读研究或审查,不获得源码实施权。
11
+
12
+ 主控按依赖与包大小选择可同时推进的结果包;不为每个普通实现步骤另建委派。目标可为独立仓库、submodule 或 linked worktree,可没有 Trellis。不要复制全局 AGENTS、安装目录或主控整个上下文。必要方法通过明确只读引用提供;没有目标项目资产不构成自动初始化许可。
13
+
14
+ 原生 `task.py delegate-*` 负责校验绑定与当前父授权;可选 `trellis-paseo-adapter` 只通过公开 SDK 操作同机 daemon。缺包、版本、身份或必需能力不符时停止相应动作,沿 Lifecycle 修复;不调用旧 start、不换 host/provider、不把弱角色提示词当兼容模式。创建/发送结果不明时 inspect 并核验原生资源,使用显式 recover 接回,不能重放未知操作。
@@ -0,0 +1,17 @@
1
+ # 主控操作合同
2
+
3
+ 使用项目原生 `python3 .trellis/scripts/task.py <command> --help` 核对参数。先核对父任务有效实施合同、父子链接、owner、当前路线的 Lifecycle/Paseo/Git 准入及证据。一个 controller task 是控制权威;节点不创建第二套阶段状态。
4
+
5
+ 1. 读取 adapter 的 capability(有界 stdin JSON `version=1, operation=capability, daemon_selector={}, payload={cwd:目标绝对路径}`),从实际可用 Codex 模型解析默认值并固定显式 model/effort。使用 mode `full-access`,sandbox/approval/reviewer/context 保留 `native_default`。固定角色为 `.trellis/agents/delegated-worktree-primary-agent.md`,节点方法为 `.trellis/agents/worktree-delegation-node.md`;两包共用同版正文。
6
+ 2. 在子任务记录 PRD、`settings.json`、`requirements.json`,通过原生 `task.py set-branch` 设置不存在的执行分支。settings 含 version=1、provider=codex、model、effort、mode=full-access;可指定同机 daemon_home。requirements 含 version=1、非空 allowed_paths、forbidden_paths、required_rules/required_skills/required_tools/checks/resources 字符串数组、可选 setup_ref、teamwork_permission(none/read_only)。声明准确来源、工具真实探测、测试端口/数据库等资源;setup_ref 指向已授权的原生准备动作。禁止副作用隐藏在 setup 中。
7
+ 3. `delegate-bind <child> --target-repo <确切 checkout> --integration-branch <owner 分支> --settings-ref settings.json --requirements-ref requirements.json` 使用 binding format 2 冻结 PRD、角色、节点方法、可选 setup 正文、设置与能力哈希、base、目标 Git 身份及父授权。派发与节点读取同时检查当前批准输入和 attempt 冻结快照;投影的正文引用不再指向主控实时文件。旧不完整绑定只能核验、取消及保全,核销后重新绑定,不静默升级。target 与 controller 可不同;integration 是该目标 owner 分支。主控在启动前检查项目原生 workspace setup/teardown,不允许未经批准的脚本;原生 autoArchiveAfterMerge 必须为 false。CLI 不修改 daemon 配置。
8
+ 4. `delegate-start <child>` 先持久化创建 intent,再创建 workspace 和 prepare agent。只授予准备许可;观察 native resources 与 bounded ready,核对当前源码 HEAD、完整必需能力、实际模型/effort/mode;不能只凭节点自报或 idle 就接受。主控检查 `delegate-inspect` 后,`delegate-execute` 发送实施指令。有并行包时分别准备、执行,按真实依赖集成后再派下游。
9
+ 5. `delegate-wait <child> --timeout-ms 3600000` 使用原生等待;主控还有独立工作就先推进。没有其他工作时持续原生等待,timeout 不是完成或批准。observe/inspect 不改结果接受;`delegate-followup --instructions-ref <子任务内文件>` 返工前重核当前绑定与实际设置。interrupt 仅请求取消,不证明 writer 已停止。
10
+ 6. 压缩/新主控恢复先 inspect,沿当前 task/binding/attempt/native ID 续接。未知创建使用 `delegate-reconcile --recover --workspace-id <完整ID> [--agent-id <完整ID>]` 预览,核验准确原生 workspace、cwd、Git common/branch/base、agent 标签后,显式 `--execute --reason ... --approval-ref ...` 接回。未知发送/取消还需要 `--delivery-evidence-ref`,引用主控实际检查的原生 timeline/turn 证据;不得把 idle 当交付证明。workspace 已映射而尚未发起 agent 时,恢复后 `delegate-start` 仅创建尚未发起的 agent。未知 agent 创建必须先找到准确 ID,不能再创建一个。
11
+ 若原生验证明确在创建前拒绝 agent,且包含后台/归档的全量检查确认没有当前 attempt agent,可使用 `--delivery-evidence-ref` 提交主控核验的原生拒绝与未创建证据,显式恢复到 workspace_created。仅“当前列表没看到”不充分;发现匹配 agent 时必须映射准确 ID,未知结果保留现场。
12
+ 7. owner 审查 result 的真实 commits/diff/checks、范围和控制面未被改动,依赖结果只能在集成后作为当前树事实。通过目标 owner 原生 merge/FF 集成,验证 accepted HEAD 是目标 integration branch 的祖先;禁止默认 cherry-pick。根侧 gitlink 集成单独记录。
13
+ 8. `delegate-reconcile --disposition integrated` 预览;确认原生 agent 无 active turn、结果和接受证据、源码保全、后台 writer 与测试服务已停后,使用 `--execute --reason ... --approval-ref ... --writer-evidence-ref <子任务内证据>` 核销。取消可用 retained,保留实际 checkout/HEAD/status 和候选;没有结果时也必须保留源码,不销毁未知 writer。核销仅结束控制记录,不自动 archive/delete。资源删除由原生 owner 另按已批准处置执行。
14
+
15
+ 退休尝试不能 execute/followup。父授权失效或输入漂移后,禁止准备、执行、返工、重新接管和 integrated 接受;已绑定身份下的 inspect/observe/interrupt 与 `reconcile --disposition retained` 仍可核验和保全旧资源,不刷新写许可。未知创建或发送保持现场,原生紧急取消不替代停止证据。正常先核销再离开第四阶段;第五阶段需要实施返工时由主控返回有效授权的第四阶段。
16
+
17
+ 新协议记录在 ignored `.trellis/.runtime/delegation/<child>/`;任务 PRD 和实施/接受证据仍在原生任务中。不要手写 record、映射或许可。旧 meta 记录只供旧 reconciliation/闭合,不能作为新协议启动成功证据。完成、取消、转移、解绑、移动及重命名前应核销活动委派;遇未知状态保留资源并报告。
@@ -16,4 +16,6 @@ Task lifecycle status and business phase are separate. A planning task may remai
16
16
 
17
17
  ## Phase operations
18
18
 
19
+ Resume the known unfinished action first. Reassess auxiliary methods only when the problem, phase, or available capabilities have changed; reuse still-valid Skill bodies and decisions. Select relevant host-declared methods directly, or use an available workflow router for unclear combinations. Do not restart discovery, preload a collection, infer paths from old summaries, or repeat settled questions. Auxiliary methods do not change task state or action permissions.
20
+
19
21
  Use the native task CLI for phase artifact revisions, acceptance, evidence-backed skips, waiting, blocking, resuming, returning to an earlier phase, route changes, implementation authorization, completion, and cancellation. Read task.py help for current arguments. Do not create a second status record or use formal session handoff to resume task work.
@@ -1,6 +1,6 @@
1
1
  # Start Session
2
2
 
3
- Load the current Trellis context and continue from the task record's current phase.
3
+ Load the session's Trellis context. Route a new request through `trellis-request-intake`; resume existing work through `trellis-continue` and the task record's current phase. Do not repeat initialization when context and ownership have already been established.
4
4
 
5
5
  ## Load context
6
6
 
@@ -12,7 +12,9 @@ Read the applicable spec indexes before editing code. The active phase breadcrum
12
12
 
13
13
  ## Route the current request
14
14
 
15
- - No active Trellis task: use the taskless route when the request is clear, low-risk, reversible, authorized, and immediately verifiable. Otherwise create the task with the user's consent and load `trellis-goal-exploration-and-requirements`.
15
+ After identifying the request and native phase, select only host-declared auxiliary Skills that fit the current problem. Direct matches need no router; unclear combinations or responsibilities may use an available workflow router. Do not preload all methods or require a particular optional collection. Reuse valid decisions and authorization, and return method results to the current request or phase.
16
+
17
+ - New request: use `trellis-request-intake` to determine whether it changes the current goal, is independent work, or qualifies for the taskless route. Reuse existing authorization and evidence.
16
18
  - Task with no initialized route: inspect its current requirements, choose the applicable ordered phases with evidence for omissions, then initialize the route through task.py phase init.
17
19
  - Goal Exploration and Requirements Confirmation Phase: load `trellis-goal-exploration-and-requirements`. Do not leave until the user confirms the current requirements artifact revision.
18
20
  - Decision Space Construction and Consolidation Phase: load `trellis-decision-space-construction-and-merging`.
@@ -2,10 +2,7 @@ Read the relevant development guidelines before starting your task.
2
2
 
3
3
  Execute these steps:
4
4
 
5
- 1. **Read current task artifacts**:
6
- - `prd.md` for requirements and acceptance criteria
7
- - `design.md` if present for technical design
8
- - `implement.md` if present for execution order and validation plan
5
+ 1. **Read the current native phase and its accepted implementation contract**, including referenced requirements, design, execution and validation artifacts. Use the actual references; `prd.md`, `design.md` and `implement.md` are common filenames, not proof of acceptance, freshness or implementation authorization. For the authorized taskless route, use its bounded request and applicable specs.
9
6
 
10
7
  2. **Discover packages and their spec layers**:
11
8
  ```bash
@@ -115,13 +115,7 @@ When multiple root causes are plausible and evidence is incomplete, update your
115
115
 
116
116
  Before investigating, state what you believe and why:
117
117
 
118
- | Hypothesis | Prior | Reasoning |
119
- |------------|-------|-----------|
120
- | H1: [cause A] | 40% | Most common for this pattern |
121
- | H2: [cause B] | 30% | Plausible given environment |
122
- | H3: [other] | 30% | Catch-all |
123
-
124
- Priors must sum to 100%. If you can't assign probabilities, investigate first.
118
+ List plausible hypotheses with current supporting and contradicting evidence, uncertainty and a discriminating check. Qualitative confidence is sufficient; do not invent numeric probabilities or require them to sum to 100%.
125
119
 
126
120
  ### Step 2: Observe Evidence
127
121
 
@@ -148,12 +142,7 @@ Don't gather more of the same. Find evidence that **differs strongly** between t
148
142
 
149
143
  ### Step 5: State Confidence
150
144
 
151
- | Confidence | Action |
152
- |------------|--------|
153
- | 90%+ | Proceed with fix, monitor |
154
- | 70-90% | Proceed, add fallback check |
155
- | 50-70% | Test hypothesis before committing |
156
- | <50% | Need more evidence, don't guess |
145
+ State which hypothesis the evidence supports, what it rules out, and which limits remain. Choose the next check or authorized fix based on consequences and uncertainty, not a numeric threshold. Do not add speculative fallbacks to compensate for an unverified cause.
157
146
 
158
147
  Never express binary certainty when evidence is incomplete. Use "most likely", "plausible but unlikely", "worth investigating".
159
148
 
@@ -169,16 +158,16 @@ Never express binary certainty when evidence is incomplete. Use "most likely", "
169
158
 
170
159
  ## After Analysis: Immediate Actions
171
160
 
172
- **IMPORTANT**: After completing the analysis above, you MUST immediately:
161
+ After analysis, preserve the reusable finding at its natural owner:
173
162
 
174
- 1. **Update spec/guides** - Don't just list TODOs, actually update the relevant files:
163
+ 1. **Update applicable spec/guides** when the finding establishes a reusable executable contract or thinking trigger within the task's authority:
175
164
  - If it's a cross-platform issue → update `cross-platform-thinking-guide.md`
176
165
  - If it's a cross-layer issue → update `cross-layer-thinking-guide.md`
177
166
  - If it's a code reuse issue → update `code-reuse-thinking-guide.md`
178
167
  - If it's domain-specific → update `backend/*.md` or `frontend/*.md`
179
168
 
180
- 2. **Sync templates** - After updating `.trellis/spec/`, sync to `src/templates/markdown/spec/`
169
+ 2. **Respect the source owner** — project specs do not automatically belong in Trellis's bundled templates. Update a component template only when that component owns the rule and the task authorizes that source change; use its native generation path for installed assets.
181
170
 
182
- 3. **Commit the spec updates** - This is the primary output, not just the analysis text
171
+ 3. **Record evidence and verification** in the current task or journal when no reusable spec change is justified. Commit only under the project's existing authorization; analysis does not grant commit, publication or installation authority.
183
172
 
184
- > **The analysis is worthless if it stays in chat. The value is in the updated specs.**
173
+ Keep the finding discoverable without manufacturing a spec change or a second task ledger.
@@ -13,11 +13,7 @@ git status
13
13
 
14
14
  ## Step 2: Read Task Artifacts and Applicable Specs
15
15
 
16
- Read the current task artifacts in order:
17
-
18
- - `prd.md`
19
- - `design.md` if present
20
- - `implement.md` if present
16
+ Read the current native phase, accepted contract and its actual artifact references for requirements, design, execution and validation. Common filenames such as `prd.md`, `design.md` and `implement.md` do not prove current acceptance or authorization. For taskless work, check the authorized bounded request.
21
17
 
22
18
  ```bash
23
19
  python3 ./.trellis/scripts/get_context.py --mode packages
@@ -33,7 +29,7 @@ Read the specific guideline files referenced — the index is a pointer, not the
33
29
 
34
30
  ## Step 3: Run Project Checks
35
31
 
36
- Run the project's lint, type-check, and test commands. Fix any failures before proceeding.
32
+ Run the applicable required project checks and verification appropriate to the changed behavior and risk. Investigate failures and fix those caused by the change within its authorization; record unrelated baseline failures and unavailable checks accurately. Do not silently expand the task to repair unrelated failures or claim checks passed when evidence is incomplete.
37
33
 
38
34
  ## Step 4: Review Against Checklist
39
35
 
@@ -47,9 +43,9 @@ Run the project's lint, type-check, and test commands. Fix any failures before p
47
43
 
48
44
  ### Test Coverage
49
45
 
50
- - [ ] New function → unit test added?
51
- - [ ] Bug fix → regression test added?
52
- - [ ] Changed behavior → existing tests updated?
46
+ - [ ] Non-trivial new behavior and risk covered by meaningful existing or new tests?
47
+ - [ ] Bug fix reproduced by a regression check at the actual entry path?
48
+ - [ ] Changed behavior reflected in tests without mirroring implementation details?
53
49
 
54
50
  ### Spec Sync
55
51
 
@@ -80,7 +76,7 @@ Skip this step if your change is confined to a single layer.
80
76
 
81
77
  - [ ] Searched for existing similar code before creating new?
82
78
  ```bash
83
- grep -r "pattern" src/
79
+ rg "pattern" src/
84
80
  ```
85
81
  - [ ] If the same value repeats, does it represent one stable concept whose callers must change together? Extract only then — two literals that merely happen to match today should stay separate.
86
82
  - [ ] After batch modification, all occurrences updated?
@@ -101,6 +97,6 @@ Skip this step if your change is confined to a single layer.
101
97
  Report every violation you find. Then:
102
98
 
103
99
  - Mechanical and local (lint nit, missing type, wrong import, dead branch, failing assertion) → fix in place, then re-run project checks.
104
- - Design or judgment (naming a shared concept, moving a module boundary, changing a public interface, reassigning where behavior lives) → record the evidence and your recommendation, and stop. Do not rewrite it silently.
100
+ - Local engineering judgment within the accepted contract → resolve it with evidence and continue. A material unresolved change to scope, public behavior, ownership, risk or acceptance → record the recommendation and pause dependent work for the project's decision process.
105
101
 
106
102
  If a fix would touch files outside the current task's scope, say so and stop instead of widening the change.
@@ -0,0 +1,25 @@
1
+ # Trellis Request Intake
2
+
3
+ Use this entry skill to route a new request. First check its relationship to the active task: a change to the same goal returns to the earliest affected phase; independent work needs its own intake. Do not put unrelated work into the active task or bypass its ownership and acceptance gates. To resume existing work, use trellis-continue and the current native task facts.
4
+
5
+ Reuse verified evidence and existing authorization. Follow the taskless route in workflow.md only when all of these are true: the goal is clear; the scope and owner are bounded; risk is controlled; the user has authorized the actual action; success can be verified in the current session; and the work needs no persistent route, coordination, design, review, release, installation, migration, external delivery, or dedicated rollback plan. A bounded irreversible action additionally needs exact target verification, an acceptable recovery or loss boundary, and a stop condition. User authorization alone is not sufficient. Read-only inspection, bounded diagnosis, low-impact native-owner maintenance or cleanup, small single-surface edits, and rerunning existing checks are examples, not an allowlist. Intake ends when the request reaches its appropriate phase; do not repeat session initialization or conduct a second requirements or planning workflow here.
6
+
7
+ ## Start the task
8
+
9
+ Choose auxiliary methods from the host's available Skills according to the actual business problem, including taskless requests. A clear match goes directly to that Skill; combinations or unclear ownership may use an available workflow router. Do not require the user to name a method, preload a collection, or create a task merely to use one. Method output returns to this intake or the current phase; it does not grant action permissions or replace Trellis acceptance and authorization.
10
+
11
+ 1. Inspect only evidence that can change the goal, scope, acceptance criteria, constraints, or route. Ask the user only for missing intent or a material user choice; use the project's decision method when needed.
12
+ 2. When the work needs a persistent route, coordination, design, review, release, installation, migration, external delivery, or a durable record, treat it as task-based. If the user did not explicitly ask to create a task, stop before the create command and ask for creation approval. State which taskless condition is not met, the proposed owner/scope/route, and the risk of proceeding without a task. An explicit user request to create or resume a task is already authorization for that lifecycle action only; it does not authorize implementation or delivery:
13
+
14
+ {{PYTHON_CMD}} ./.trellis/scripts/task.py create "<title>" --description "<summary>"
15
+
16
+ 3. After creation approval, initialize an ordered phase route that includes Goal Exploration and Requirements Confirmation Phase, then only the later phases the task needs:
17
+
18
+ {{PYTHON_CMD}} ./.trellis/scripts/task.py phase init <task> --task-kind <analysis|implementation|combined> --complexity <simple|standard|complex> --project-context <new|existing> --phase-ids <ordered-phase-ids>
19
+
20
+ 4. Load trellis-goal-exploration-and-requirements and its workflow.md. Record the current goal, scope, acceptance, constraints, evidence, and unresolved user decisions in the task artifacts.
21
+ 5. Obtain explicit user confirmation of the current requirements artifact revision before leaving Goal Exploration and Requirements Confirmation Phase. This confirmation does not approve a solution or authorize implementation.
22
+
23
+ Follow the active phase Skill after Goal Exploration and Requirements Confirmation Phase. Decision Space Construction and Consolidation Phase organizes material choices; Solution Design and Convergence Phase resolves decisions and accepts an analysis outcome or implementation contract. Task Implementation and Test Verification Phase requires a separate explicit authorization recorded through Trellis CLI. Delivery Review and On-Site Closeout Phase reviews delivery and controls task completion or cancellation.
24
+
25
+ Use repository evidence for facts and user input for user-owned decisions. Keep questions focused on unresolved choices, and keep artifacts limited to information needed for the route and acceptance.
@@ -23,9 +23,9 @@ Apply code-spec depth when the change includes any of:
23
23
  - Database schema/migration change
24
24
  - Infra integration (storage, queue, cache, secrets, env wiring)
25
25
 
26
- ### Mandatory Output (7 Sections)
26
+ ### Applicable Contract Coverage
27
27
 
28
- For triggered tasks, include all sections below:
28
+ For triggered tasks, cover the applicable contracts below in the existing document structure. Reuse current coverage and link it where sufficient; do not require seven headings, artificial examples or empty sections for every small API change:
29
29
  1. Scope / Trigger
30
30
  2. Signatures (command/API/DB)
31
31
  3. Contracts (request/response/env)
@@ -138,7 +138,7 @@ If you added a new section or the code-spec status changed, update the category'
138
138
 
139
139
  ## Update Templates
140
140
 
141
- ### Mandatory Template for Infra/Cross-Layer Work
141
+ ### Example Structure for Infra/Cross-Layer Work
142
142
 
143
143
  ```markdown
144
144
  ## Scenario: <name>
@@ -313,12 +313,10 @@ If you're unsure what to update, answer these prompts:
313
313
  Before finishing your code-spec update:
314
314
 
315
315
  - [ ] Is the content specific and actionable?
316
- - [ ] Did you include a code example?
316
+ - [ ] Are examples included where they clarify a real contract or failure?
317
317
  - [ ] Did you explain WHY, not just WHAT?
318
318
  - [ ] Did you include executable signatures/contracts?
319
- - [ ] Did you include validation and error matrix?
320
- - [ ] Did you include Good/Base/Bad cases?
321
- - [ ] Did you include required tests with assertion points?
319
+ - [ ] Are applicable validation, failure cases and verification assertions covered or linked?
322
320
  - [ ] Is it in the right code-spec file?
323
321
  - [ ] Does it duplicate existing content?
324
322
  - [ ] Would a new team member understand it?
@@ -231,8 +231,7 @@ def _get_task_status(trellis_dir: Path, hook_input: dict) -> str:
231
231
  if not active.task_path:
232
232
  return (
233
233
  "Status: NO ACTIVE TASK\n"
234
- "Next: Classify the current turn and ask for task-creation consent "
235
- "before creating any Trellis task."
234
+ "Next: Route through trellis-request-intake using the existing authorization and taskless contract."
236
235
  )
237
236
 
238
237
  task_ref = active.task_path
@@ -244,12 +243,10 @@ def _get_task_status(trellis_dir: Path, hook_input: dict) -> str:
244
243
  )
245
244
 
246
245
  task_json_path = task_dir / "task.json"
247
- task_data: dict = {}
248
- if task_json_path.is_file():
249
- try:
250
- task_data = json.loads(task_json_path.read_text(encoding="utf-8"))
251
- except (json.JSONDecodeError, PermissionError):
252
- pass # Optional task metadata; fall back to generic status.
246
+ from common.io import read_json_checked # type: ignore[import-not-found]
247
+ task_data, _reason = read_json_checked(task_json_path)
248
+ if task_data is None or task_data.get("status") not in ("planning", "in_progress", "completed", "cancelled"):
249
+ return f"Status: TASK_ERROR\nTask: {task_ref}\nNext: Repair the existing task record through its owner before continuing; do not create a replacement task."
253
250
 
254
251
  task_title = task_data.get("title", task_ref)
255
252
  task_status = task_data.get("status", "unknown")
@@ -379,13 +376,15 @@ def _build_compact_current_state(
379
376
  active = _resolve_active_task(trellis_dir, hook_input)
380
377
  if active.task_path:
381
378
  task_dir = _resolve_task_dir(trellis_dir, active.task_path)
382
- status = "unknown"
379
+ status = "task_error"
383
380
  task_json = task_dir / "task.json"
384
381
  if task_json.is_file():
385
382
  try:
386
383
  data = json.loads(task_json.read_text(encoding="utf-8"))
387
384
  if isinstance(data, dict):
388
- status = str(data.get("status") or "unknown")
385
+ value = data.get("status")
386
+ if value in ("planning", "in_progress", "completed", "cancelled"):
387
+ status = value
389
388
  except (json.JSONDecodeError, OSError):
390
389
  pass # Optional task metadata; fall back to generic status.
391
390
  lines.append(f"Current task: {_repo_relative(repo_root, task_dir)}; status={status}.")
@@ -503,11 +502,15 @@ def main() -> None:
503
502
  hook_input = json.loads(sys.stdin.read())
504
503
  if not isinstance(hook_input, dict):
505
504
  hook_input = {}
506
- project_dir = Path(_normalize_windows_shell_path(hook_input.get("cwd", "."))).resolve()
505
+ raw_cwd = hook_input.get("cwd")
506
+ project_dir = Path(_normalize_windows_shell_path(raw_cwd if isinstance(raw_cwd, str) and raw_cwd else ".")).resolve()
507
507
  except (json.JSONDecodeError, KeyError):
508
508
  hook_input = {}
509
509
  project_dir = Path(".").resolve()
510
510
 
511
+ project_dir = next((candidate for candidate in (project_dir, *project_dir.parents) if (candidate / ".trellis").is_dir()), None)
512
+ if project_dir is None or not (project_dir / ".trellis" / "scripts" / "common" / "active_task.py").is_file():
513
+ return
511
514
  configure_project_encoding(project_dir)
512
515
 
513
516
  trellis_dir = project_dir / ".trellis"
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Directory structure:
7
7
  * copilot/
8
- * ├── prompts/ # Slash-command prompts → .github/prompts/*.prompt.md
8
+ * Slash-command prompts come from common/commands via the configurator.
9
9
  * ├── hooks/ # Hook scripts → .github/copilot/hooks/
10
10
  * ├── hooks.json # Hooks config → .github/hooks/trellis.json
11
11
  * └── copilot-instructions.md → .github/copilot-instructions.md
@@ -17,12 +17,7 @@ export interface HookTemplate {
17
17
  name: string;
18
18
  content: string;
19
19
  }
20
- export interface PromptTemplate {
21
- name: string;
22
- content: string;
23
- }
24
20
  export declare function getAllHooks(): HookTemplate[];
25
21
  export declare function getHooksConfig(): string;
26
22
  export declare function getCopilotInstructions(): string;
27
- export declare function getAllPrompts(): PromptTemplate[];
28
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/copilot/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AASH,eAAO,MAAM,yBAAyB,oCAAoC,CAAC;AAC3E,eAAO,MAAM,gCAAgC,4CACF,CAAC;AAC5C,eAAO,MAAM,8BAA8B,0CACF,CAAC;AAc1C,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,WAAW,IAAI,YAAY,EAAE,CAW5C;AAED,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED,wBAAgB,sBAAsB,IAAI,MAAM,CAE/C;AAED,wBAAgB,aAAa,IAAI,cAAc,EAAE,CAchD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/copilot/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AASH,eAAO,MAAM,yBAAyB,oCAAoC,CAAC;AAC3E,eAAO,MAAM,gCAAgC,4CACF,CAAC;AAC5C,eAAO,MAAM,8BAA8B,0CACF,CAAC;AAc1C,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,WAAW,IAAI,YAAY,EAAE,CAW5C;AAED,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED,wBAAgB,sBAAsB,IAAI,MAAM,CAE/C"}
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Directory structure:
7
7
  * copilot/
8
- * ├── prompts/ # Slash-command prompts → .github/prompts/*.prompt.md
8
+ * Slash-command prompts come from common/commands via the configurator.
9
9
  * ├── hooks/ # Hook scripts → .github/copilot/hooks/
10
10
  * ├── hooks.json # Hooks config → .github/hooks/trellis.json
11
11
  * └── copilot-instructions.md → .github/copilot-instructions.md
@@ -45,17 +45,4 @@ export function getHooksConfig() {
45
45
  export function getCopilotInstructions() {
46
46
  return readTemplate("copilot-instructions.md");
47
47
  }
48
- export function getAllPrompts() {
49
- const prompts = [];
50
- for (const file of listFiles("prompts")) {
51
- if (!file.endsWith(".prompt.md")) {
52
- continue;
53
- }
54
- prompts.push({
55
- name: file.slice(0, -".prompt.md".length),
56
- content: readTemplate(`prompts/${file}`),
57
- });
58
- }
59
- return prompts;
60
- }
61
48
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/copilot/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,WAAW,EAAE,YAAY,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,MAAM,CAAC,MAAM,yBAAyB,GAAG,iCAAiC,CAAC;AAC3E,MAAM,CAAC,MAAM,gCAAgC,GAC3C,yCAAyC,CAAC;AAC5C,MAAM,CAAC,MAAM,8BAA8B,GACzC,uCAAuC,CAAC;AAE1C,SAAS,YAAY,CAAC,YAAoB;IACxC,OAAO,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC;AAED,SAAS,SAAS,CAAC,GAAW;IAC5B,IAAI,CAAC;QACH,OAAO,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAClD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAYD,MAAM,UAAU,WAAW;IACzB,MAAM,KAAK,GAAmB,EAAE,CAAC;IAEjC,KAAK,MAAM,IAAI,IAAI,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC;QACtC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1B,SAAS;QACX,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,CAAC,SAAS,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,cAAc;IAC5B,OAAO,YAAY,CAAC,YAAY,CAAC,CAAC;AACpC,CAAC;AAED,MAAM,UAAU,sBAAsB;IACpC,OAAO,YAAY,CAAC,yBAAyB,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,aAAa;IAC3B,MAAM,OAAO,GAAqB,EAAE,CAAC;IAErC,KAAK,MAAM,IAAI,IAAI,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC;QACxC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC;YACjC,SAAS;QACX,CAAC;QACD,OAAO,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC;YACzC,OAAO,EAAE,YAAY,CAAC,WAAW,IAAI,EAAE,CAAC;SACzC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/copilot/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,WAAW,EAAE,YAAY,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,MAAM,CAAC,MAAM,yBAAyB,GAAG,iCAAiC,CAAC;AAC3E,MAAM,CAAC,MAAM,gCAAgC,GAC3C,yCAAyC,CAAC;AAC5C,MAAM,CAAC,MAAM,8BAA8B,GACzC,uCAAuC,CAAC;AAE1C,SAAS,YAAY,CAAC,YAAoB;IACxC,OAAO,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,YAAY,CAAC,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC;AAED,SAAS,SAAS,CAAC,GAAW;IAC5B,IAAI,CAAC;QACH,OAAO,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAClD,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC;AAOD,MAAM,UAAU,WAAW;IACzB,MAAM,KAAK,GAAmB,EAAE,CAAC;IAEjC,KAAK,MAAM,IAAI,IAAI,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC;QACtC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1B,SAAS;QACX,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,CAAC,SAAS,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,cAAc;IAC5B,OAAO,YAAY,CAAC,YAAY,CAAC,CAAC;AACpC,CAAC;AAED,MAAM,UAAU,sBAAsB;IACpC,OAAO,YAAY,CAAC,yBAAyB,CAAC,CAAC;AACjD,CAAC"}
@@ -88,6 +88,10 @@ export async function copyTrellisDir(srcRelativePath, destPath, options) {
88
88
  async function copyDirRecursive(src, dest, options) {
89
89
  ensureDir(dest);
90
90
  for (const entry of fs.readdirSync(src)) {
91
+ if (entry === "__pycache__" ||
92
+ [".pyc", ".pyo"].includes(path.extname(entry))) {
93
+ continue;
94
+ }
91
95
  const srcPath = path.join(src, entry);
92
96
  const destPath = path.join(dest, entry);
93
97
  const stat = fs.statSync(srcPath);