agentplane 0.3.17 → 0.3.19

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 (639) hide show
  1. package/assets/policy/incidents.md +1 -0
  2. package/dist/.build-manifest.json +683 -593
  3. package/dist/adapters/git/git-context-adapter.d.ts +1 -1
  4. package/dist/adapters/git/git-context-adapter.d.ts.map +1 -1
  5. package/dist/agents/agents-template.d.ts.map +1 -1
  6. package/dist/agents/agents-template.js +23 -9
  7. package/dist/backends/task-backend/load.d.ts +2 -1
  8. package/dist/backends/task-backend/load.d.ts.map +1 -1
  9. package/dist/backends/task-backend/load.js +2 -1
  10. package/dist/backends/task-backend/local-backend-doc.d.ts.map +1 -1
  11. package/dist/backends/task-backend/local-backend-doc.js +2 -1
  12. package/dist/backends/task-backend/local-backend-read.d.ts.map +1 -1
  13. package/dist/backends/task-backend/local-backend-read.js +2 -1
  14. package/dist/backends/task-backend/local-backend-state.d.ts +1 -1
  15. package/dist/backends/task-backend/local-backend-state.d.ts.map +1 -1
  16. package/dist/backends/task-backend/local-backend-write.d.ts.map +1 -1
  17. package/dist/backends/task-backend/local-backend-write.js +2 -1
  18. package/dist/backends/task-backend/redmine/backend-cache-doc.js +1 -1
  19. package/dist/backends/task-backend/redmine/backend-report.js +1 -1
  20. package/dist/backends/task-backend/redmine/backend-sync/migration.js +1 -1
  21. package/dist/backends/task-backend/redmine/backend-sync/status.d.ts.map +1 -1
  22. package/dist/backends/task-backend/redmine/backend-sync/status.js +2 -1
  23. package/dist/backends/task-backend/redmine/backend-sync/write.js +1 -1
  24. package/dist/backends/task-backend/redmine/mapping.d.ts +1 -1
  25. package/dist/backends/task-backend/redmine/mapping.d.ts.map +1 -1
  26. package/dist/backends/task-backend/redmine/mapping.js +2 -2
  27. package/dist/backends/task-backend/redmine/parse.d.ts +1 -1
  28. package/dist/backends/task-backend/redmine/parse.d.ts.map +1 -1
  29. package/dist/backends/task-backend/redmine/state.js +1 -1
  30. package/dist/backends/task-backend/shared/constants.d.ts +1 -1
  31. package/dist/backends/task-backend/shared/constants.d.ts.map +1 -1
  32. package/dist/backends/task-backend/shared/constants.js +1 -1
  33. package/dist/backends/task-backend/shared/doc.js +1 -1
  34. package/dist/backends/task-backend/shared/export.d.ts +1 -1
  35. package/dist/backends/task-backend/shared/export.d.ts.map +1 -1
  36. package/dist/backends/task-backend/shared/export.js +3 -14
  37. package/dist/backends/task-backend/shared/id.js +1 -1
  38. package/dist/backends/task-backend/shared/record.d.ts +1 -1
  39. package/dist/backends/task-backend/shared/record.d.ts.map +1 -1
  40. package/dist/backends/task-backend/shared/record.js +2 -3
  41. package/dist/backends/task-backend/shared/types.d.ts +2 -2
  42. package/dist/backends/task-backend/shared/types.d.ts.map +1 -1
  43. package/dist/cli/archive.d.ts.map +1 -1
  44. package/dist/cli/archive.js +1 -1
  45. package/dist/cli/group-command.d.ts +1 -0
  46. package/dist/cli/group-command.d.ts.map +1 -1
  47. package/dist/cli/group-command.js +7 -3
  48. package/dist/cli/output.d.ts +1 -1
  49. package/dist/cli/output.d.ts.map +1 -1
  50. package/dist/cli/output.js +1 -1
  51. package/dist/cli/prompts.d.ts.map +1 -1
  52. package/dist/cli/prompts.js +8 -6
  53. package/dist/cli/run-cli/command-catalog/core.d.ts +1 -1
  54. package/dist/cli/run-cli/command-catalog/core.js +8 -8
  55. package/dist/cli/run-cli/command-catalog/{shared.d.ts → kernel.d.ts} +3 -2
  56. package/dist/cli/run-cli/command-catalog/kernel.d.ts.map +1 -0
  57. package/dist/cli/run-cli/command-catalog/lifecycle.d.ts +1 -1
  58. package/dist/cli/run-cli/command-catalog/lifecycle.js +3 -3
  59. package/dist/cli/run-cli/command-catalog/project.d.ts +1 -1
  60. package/dist/cli/run-cli/command-catalog/project.js +4 -4
  61. package/dist/cli/run-cli/command-catalog/task.d.ts +1 -1
  62. package/dist/cli/run-cli/command-catalog/task.js +3 -3
  63. package/dist/cli/run-cli/command-catalog.d.ts +2 -2
  64. package/dist/cli/run-cli/command-catalog.d.ts.map +1 -1
  65. package/dist/cli/run-cli/command-catalog.js +2 -0
  66. package/dist/cli/run-cli/command-loaders/core.d.ts +55 -0
  67. package/dist/cli/run-cli/command-loaders/core.d.ts.map +1 -0
  68. package/dist/cli/run-cli/command-loaders/core.js +27 -0
  69. package/dist/cli/run-cli/command-loaders/lifecycle.d.ts +19 -0
  70. package/dist/cli/run-cli/command-loaders/lifecycle.d.ts.map +1 -0
  71. package/dist/cli/run-cli/command-loaders/lifecycle.js +18 -0
  72. package/dist/cli/run-cli/command-loaders/project.d.ts +37 -0
  73. package/dist/cli/run-cli/command-loaders/project.d.ts.map +1 -0
  74. package/dist/cli/run-cli/command-loaders/project.js +36 -0
  75. package/dist/cli/run-cli/command-loaders/task.d.ts +65 -0
  76. package/dist/cli/run-cli/command-loaders/task.d.ts.map +1 -0
  77. package/dist/cli/run-cli/command-loaders/task.js +50 -0
  78. package/dist/cli/run-cli/commands/codex.d.ts +1 -1
  79. package/dist/cli/run-cli/commands/codex.d.ts.map +1 -1
  80. package/dist/cli/run-cli/commands/config.d.ts +1 -1
  81. package/dist/cli/run-cli/commands/config.d.ts.map +1 -1
  82. package/dist/cli/run-cli/commands/config.js +1 -1
  83. package/dist/cli/run-cli/commands/core/agent-profiles.js +1 -1
  84. package/dist/cli/run-cli/commands/core/agents.d.ts +1 -1
  85. package/dist/cli/run-cli/commands/core/agents.d.ts.map +1 -1
  86. package/dist/cli/run-cli/commands/core/preflight.d.ts.map +1 -1
  87. package/dist/cli/run-cli/commands/core/preflight.js +3 -2
  88. package/dist/cli/run-cli/commands/ide.d.ts +1 -1
  89. package/dist/cli/run-cli/commands/ide.d.ts.map +1 -1
  90. package/dist/cli/run-cli/commands/init/model.d.ts +2 -1
  91. package/dist/cli/run-cli/commands/init/model.d.ts.map +1 -1
  92. package/dist/cli/run-cli/commands/init/orchestrate-v2.d.ts +9 -0
  93. package/dist/cli/run-cli/commands/init/orchestrate-v2.d.ts.map +1 -0
  94. package/dist/cli/run-cli/commands/init/orchestrate-v2.js +266 -0
  95. package/dist/cli/run-cli/commands/init/orchestrate.d.ts.map +1 -1
  96. package/dist/cli/run-cli/commands/init/orchestrate.js +19 -23
  97. package/dist/cli/run-cli/commands/init/prompts-v2.d.ts +10 -0
  98. package/dist/cli/run-cli/commands/init/prompts-v2.d.ts.map +1 -0
  99. package/dist/cli/run-cli/commands/init/prompts-v2.js +26 -0
  100. package/dist/cli/run-cli/commands/init/recipes.d.ts +2 -1
  101. package/dist/cli/run-cli/commands/init/recipes.d.ts.map +1 -1
  102. package/dist/cli/run-cli/commands/init/recipes.js +3 -1
  103. package/dist/cli/run-cli/commands/init/spec.d.ts.map +1 -1
  104. package/dist/cli/run-cli/commands/init/spec.js +14 -0
  105. package/dist/cli/run-cli/commands/init/steps/advanced-settings.d.ts +9 -0
  106. package/dist/cli/run-cli/commands/init/steps/advanced-settings.d.ts.map +1 -0
  107. package/dist/cli/run-cli/commands/init/steps/advanced-settings.js +48 -0
  108. package/dist/cli/run-cli/commands/init/steps/apply.d.ts +30 -0
  109. package/dist/cli/run-cli/commands/init/steps/apply.d.ts.map +1 -0
  110. package/dist/cli/run-cli/commands/init/steps/apply.js +96 -0
  111. package/dist/cli/run-cli/commands/init/steps/backend.d.ts +8 -0
  112. package/dist/cli/run-cli/commands/init/steps/backend.d.ts.map +1 -0
  113. package/dist/cli/run-cli/commands/init/steps/backend.js +17 -0
  114. package/dist/cli/run-cli/commands/init/steps/conflict-resolver.d.ts +10 -0
  115. package/dist/cli/run-cli/commands/init/steps/conflict-resolver.d.ts.map +1 -0
  116. package/dist/cli/run-cli/commands/init/steps/conflict-resolver.js +41 -0
  117. package/dist/cli/run-cli/commands/init/steps/contracts.d.ts +57 -0
  118. package/dist/cli/run-cli/commands/init/steps/contracts.d.ts.map +1 -0
  119. package/dist/cli/run-cli/commands/init/steps/contracts.js +1 -0
  120. package/dist/cli/run-cli/commands/init/steps/ide.d.ts +8 -0
  121. package/dist/cli/run-cli/commands/init/steps/ide.d.ts.map +1 -0
  122. package/dist/cli/run-cli/commands/init/steps/ide.js +18 -0
  123. package/dist/cli/run-cli/commands/init/steps/index.d.ts +10 -0
  124. package/dist/cli/run-cli/commands/init/steps/index.d.ts.map +1 -0
  125. package/dist/cli/run-cli/commands/init/steps/index.js +9 -0
  126. package/dist/cli/run-cli/commands/init/steps/policy-gateway.d.ts +8 -0
  127. package/dist/cli/run-cli/commands/init/steps/policy-gateway.d.ts.map +1 -0
  128. package/dist/cli/run-cli/commands/init/steps/policy-gateway.js +17 -0
  129. package/dist/cli/run-cli/commands/init/steps/prompt-utils.d.ts +21 -0
  130. package/dist/cli/run-cli/commands/init/steps/prompt-utils.d.ts.map +1 -0
  131. package/dist/cli/run-cli/commands/init/steps/prompt-utils.js +36 -0
  132. package/dist/cli/run-cli/commands/init/steps/recipe-selection.d.ts +15 -0
  133. package/dist/cli/run-cli/commands/init/steps/recipe-selection.d.ts.map +1 -0
  134. package/dist/cli/run-cli/commands/init/steps/recipe-selection.js +35 -0
  135. package/dist/cli/run-cli/commands/init/steps/setup-profile.d.ts +8 -0
  136. package/dist/cli/run-cli/commands/init/steps/setup-profile.d.ts.map +1 -0
  137. package/dist/cli/run-cli/commands/init/steps/setup-profile.js +32 -0
  138. package/dist/cli/run-cli/commands/init/steps/workflow.d.ts +9 -0
  139. package/dist/cli/run-cli/commands/init/steps/workflow.d.ts.map +1 -0
  140. package/dist/cli/run-cli/commands/init/steps/workflow.js +48 -0
  141. package/dist/cli/run-cli/commands/init/ui-v2.d.ts +18 -0
  142. package/dist/cli/run-cli/commands/init/ui-v2.d.ts.map +1 -0
  143. package/dist/cli/run-cli/commands/init/ui-v2.js +50 -0
  144. package/dist/cli/run-cli/commands/init/write-agents.d.ts.map +1 -1
  145. package/dist/cli/run-cli/commands/init/write-agents.js +1 -1
  146. package/dist/cli/run-cli/commands/init/write-config.d.ts +2 -1
  147. package/dist/cli/run-cli/commands/init/write-config.d.ts.map +1 -1
  148. package/dist/cli/run-cli/commands/init/write-config.js +1 -1
  149. package/dist/cli/run-cli/registry.run.d.ts +1 -1
  150. package/dist/cli/run-cli/registry.run.d.ts.map +1 -1
  151. package/dist/cli/run-cli.d.ts.map +1 -1
  152. package/dist/cli/run-cli.js +2 -1
  153. package/dist/cli.js +684 -4
  154. package/dist/commands/branch/base.js +3 -1
  155. package/dist/commands/branch/cleanup-merged.d.ts.map +1 -1
  156. package/dist/commands/branch/cleanup-merged.js +4 -5
  157. package/dist/commands/branch/remove.d.ts.map +1 -1
  158. package/dist/commands/branch/remove.js +4 -2
  159. package/dist/commands/branch/status.d.ts.map +1 -1
  160. package/dist/commands/branch/status.js +3 -3
  161. package/dist/commands/branch/work-start.d.ts.map +1 -1
  162. package/dist/commands/branch/work-start.direct.d.ts.map +1 -1
  163. package/dist/commands/branch/work-start.direct.js +2 -1
  164. package/dist/commands/branch/work-start.git.d.ts +1 -1
  165. package/dist/commands/branch/work-start.git.d.ts.map +1 -1
  166. package/dist/commands/branch/work-start.git.js +2 -2
  167. package/dist/commands/branch/work-start.js +2 -1
  168. package/dist/commands/branch/work-start.materialize.d.ts.map +1 -1
  169. package/dist/commands/branch/work-start.materialize.js +2 -0
  170. package/dist/commands/codex/plugin-install.d.ts.map +1 -1
  171. package/dist/commands/codex/plugin-install.js +2 -1
  172. package/dist/commands/commit.command.js +1 -1
  173. package/dist/commands/doctor/archive.d.ts.map +1 -1
  174. package/dist/commands/doctor/archive.js +4 -3
  175. package/dist/commands/doctor/runtime.d.ts +1 -1
  176. package/dist/commands/doctor/runtime.d.ts.map +1 -1
  177. package/dist/commands/doctor/workflow.js +1 -1
  178. package/dist/commands/doctor/workspace.d.ts.map +1 -1
  179. package/dist/commands/doctor/workspace.js +7 -9
  180. package/dist/commands/doctor.run.d.ts.map +1 -1
  181. package/dist/commands/doctor.run.js +2 -1
  182. package/dist/commands/finish.run.js +1 -1
  183. package/dist/commands/guard/commit.command.d.ts +3 -16
  184. package/dist/commands/guard/commit.command.d.ts.map +1 -1
  185. package/dist/commands/guard/commit.command.js +1 -132
  186. package/dist/commands/guard/commit.spec.d.ts +17 -0
  187. package/dist/commands/guard/commit.spec.d.ts.map +1 -0
  188. package/dist/commands/guard/commit.spec.js +132 -0
  189. package/dist/commands/guard/impl/allow.js +2 -2
  190. package/dist/commands/guard/impl/close-dirt.d.ts.map +1 -1
  191. package/dist/commands/guard/impl/close-dirt.js +2 -3
  192. package/dist/commands/guard/impl/close-message.d.ts.map +1 -1
  193. package/dist/commands/guard/impl/close-message.js +5 -3
  194. package/dist/commands/guard/impl/comment-commit.d.ts +1 -1
  195. package/dist/commands/guard/impl/comment-commit.d.ts.map +1 -1
  196. package/dist/commands/guard/impl/comment-commit.js +1 -1
  197. package/dist/commands/guard/impl/commit.d.ts.map +1 -1
  198. package/dist/commands/guard/impl/commit.js +3 -2
  199. package/dist/commands/guard/impl/env.js +1 -1
  200. package/dist/commands/guard/impl/policy.js +1 -1
  201. package/dist/commands/guard/index.d.ts +3 -2
  202. package/dist/commands/guard/index.d.ts.map +1 -1
  203. package/dist/commands/guard/index.js +3 -2
  204. package/dist/commands/hooks/index.d.ts +1 -1
  205. package/dist/commands/hooks/index.d.ts.map +1 -1
  206. package/dist/commands/hooks/install.js +1 -1
  207. package/dist/commands/hooks/run.commit-msg.d.ts.map +1 -1
  208. package/dist/commands/hooks/run.commit-msg.js +3 -2
  209. package/dist/commands/hooks/run.post-merge.js +1 -1
  210. package/dist/commands/hooks/run.pre-commit.d.ts.map +1 -1
  211. package/dist/commands/hooks/run.pre-commit.js +3 -2
  212. package/dist/commands/hooks/run.pre-push.d.ts.map +1 -1
  213. package/dist/commands/hooks/run.pre-push.js +4 -3
  214. package/dist/commands/incidents/shared.d.ts +1 -2
  215. package/dist/commands/incidents/shared.d.ts.map +1 -1
  216. package/dist/commands/incidents/shared.js +2 -2
  217. package/dist/commands/integrate.command.d.ts +2 -11
  218. package/dist/commands/integrate.command.d.ts.map +1 -1
  219. package/dist/commands/integrate.command.js +1 -45
  220. package/dist/commands/integrate.spec.d.ts +12 -0
  221. package/dist/commands/integrate.spec.d.ts.map +1 -0
  222. package/dist/commands/integrate.spec.js +44 -0
  223. package/dist/commands/pr/check.js +1 -1
  224. package/dist/commands/pr/integrate/artifacts.js +1 -1
  225. package/dist/commands/pr/integrate/cmd.d.ts.map +1 -1
  226. package/dist/commands/pr/integrate/cmd.js +2 -1
  227. package/dist/commands/pr/integrate/internal/cleanup.d.ts +1 -1
  228. package/dist/commands/pr/integrate/internal/cleanup.d.ts.map +1 -1
  229. package/dist/commands/pr/integrate/internal/cleanup.js +1 -1
  230. package/dist/commands/pr/integrate/internal/finalize.d.ts.map +1 -1
  231. package/dist/commands/pr/integrate/internal/finalize.js +3 -2
  232. package/dist/commands/pr/integrate/internal/merge.js +3 -2
  233. package/dist/commands/pr/integrate/internal/post-integrate-bootstrap.d.ts +2 -1
  234. package/dist/commands/pr/integrate/internal/post-integrate-bootstrap.d.ts.map +1 -1
  235. package/dist/commands/pr/integrate/internal/post-integrate-bootstrap.js +1 -1
  236. package/dist/commands/pr/integrate/internal/pre-integrate-bootstrap.d.ts +2 -1
  237. package/dist/commands/pr/integrate/internal/pre-integrate-bootstrap.d.ts.map +1 -1
  238. package/dist/commands/pr/integrate/internal/pre-integrate-bootstrap.js +1 -1
  239. package/dist/commands/pr/integrate/internal/prepare.d.ts +2 -1
  240. package/dist/commands/pr/integrate/internal/prepare.d.ts.map +1 -1
  241. package/dist/commands/pr/integrate/internal/prepare.js +1 -3
  242. package/dist/commands/pr/integrate/internal/worktree.d.ts +2 -1
  243. package/dist/commands/pr/integrate/internal/worktree.d.ts.map +1 -1
  244. package/dist/commands/pr/integrate/internal/worktree.js +2 -2
  245. package/dist/commands/pr/internal/auto-commit.js +3 -3
  246. package/dist/commands/pr/internal/gh-api.js +2 -2
  247. package/dist/commands/pr/internal/pr-paths.d.ts +1 -1
  248. package/dist/commands/pr/internal/pr-paths.d.ts.map +1 -1
  249. package/dist/commands/pr/internal/pr-paths.js +3 -2
  250. package/dist/commands/pr/internal/review-template.js +1 -1
  251. package/dist/commands/pr/internal/sync-branch.d.ts.map +1 -1
  252. package/dist/commands/pr/internal/sync-branch.js +3 -4
  253. package/dist/commands/pr/internal/sync-github.js +1 -1
  254. package/dist/commands/pr/internal/sync-support.js +1 -1
  255. package/dist/commands/pr/internal/sync.d.ts.map +1 -1
  256. package/dist/commands/pr/internal/sync.js +2 -2
  257. package/dist/commands/pr/note.d.ts.map +1 -1
  258. package/dist/commands/pr/note.js +1 -1
  259. package/dist/commands/pr/open.d.ts.map +1 -1
  260. package/dist/commands/pr/open.js +2 -1
  261. package/dist/commands/pr/pr.command.d.ts +3 -37
  262. package/dist/commands/pr/pr.command.d.ts.map +1 -1
  263. package/dist/commands/pr/pr.command.js +9 -211
  264. package/dist/commands/pr/pr.spec.d.ts +38 -0
  265. package/dist/commands/pr/pr.spec.d.ts.map +1 -0
  266. package/dist/commands/pr/pr.spec.js +210 -0
  267. package/dist/commands/recipes/active.command.js +1 -1
  268. package/dist/commands/recipes/add.command.js +1 -1
  269. package/dist/commands/recipes/cache-prune.command.d.ts +1 -1
  270. package/dist/commands/recipes/cache-prune.command.d.ts.map +1 -1
  271. package/dist/commands/recipes/cache-prune.command.js +1 -1
  272. package/dist/commands/recipes/detach.command.js +1 -1
  273. package/dist/commands/recipes/disable.command.js +1 -1
  274. package/dist/commands/recipes/enable.command.js +1 -1
  275. package/dist/commands/recipes/explain-active.command.js +1 -1
  276. package/dist/commands/recipes/explain.command.js +1 -1
  277. package/dist/commands/recipes/impl/commands/active.js +1 -1
  278. package/dist/commands/recipes/impl/commands/add.d.ts.map +1 -1
  279. package/dist/commands/recipes/impl/commands/add.js +2 -1
  280. package/dist/commands/recipes/impl/commands/cache-prune.js +1 -1
  281. package/dist/commands/recipes/impl/commands/detach.d.ts.map +1 -1
  282. package/dist/commands/recipes/impl/commands/detach.js +2 -1
  283. package/dist/commands/recipes/impl/commands/disable.js +1 -1
  284. package/dist/commands/recipes/impl/commands/enable.js +1 -1
  285. package/dist/commands/recipes/impl/commands/explain-active.js +1 -1
  286. package/dist/commands/recipes/impl/commands/explain.js +1 -1
  287. package/dist/commands/recipes/impl/commands/install.d.ts.map +1 -1
  288. package/dist/commands/recipes/impl/commands/install.js +2 -1
  289. package/dist/commands/recipes/impl/commands/list-remote.js +1 -1
  290. package/dist/commands/recipes/impl/commands/remove.d.ts.map +1 -1
  291. package/dist/commands/recipes/impl/commands/remove.js +2 -1
  292. package/dist/commands/recipes/impl/commands/update.d.ts.map +1 -1
  293. package/dist/commands/recipes/impl/commands/update.js +2 -1
  294. package/dist/commands/recipes/impl/overlay-project.d.ts.map +1 -1
  295. package/dist/commands/recipes/impl/overlay-project.js +2 -1
  296. package/dist/commands/recipes/impl/project.js +1 -1
  297. package/dist/commands/recipes/impl/resolver.d.ts +1 -1
  298. package/dist/commands/recipes/impl/resolver.d.ts.map +1 -1
  299. package/dist/commands/recipes/info.command.js +1 -1
  300. package/dist/commands/recipes/install.run.js +1 -1
  301. package/dist/commands/recipes/install.spec.d.ts +1 -1
  302. package/dist/commands/recipes/install.spec.d.ts.map +1 -1
  303. package/dist/commands/recipes/list-remote.command.d.ts +1 -1
  304. package/dist/commands/recipes/list-remote.command.d.ts.map +1 -1
  305. package/dist/commands/recipes/list-remote.command.js +1 -1
  306. package/dist/commands/recipes/list.command.d.ts +1 -1
  307. package/dist/commands/recipes/list.command.d.ts.map +1 -1
  308. package/dist/commands/recipes/list.command.js +1 -1
  309. package/dist/commands/recipes/remove.command.js +1 -1
  310. package/dist/commands/recipes/update.command.js +1 -1
  311. package/dist/commands/release/apply.command.d.ts +2 -3
  312. package/dist/commands/release/apply.command.d.ts.map +1 -1
  313. package/dist/commands/release/apply.command.js +4 -137
  314. package/dist/commands/release/apply.mutation.js +4 -3
  315. package/dist/commands/release/apply.pipeline/finalize.d.ts.map +1 -1
  316. package/dist/commands/release/apply.pipeline/finalize.js +2 -1
  317. package/dist/commands/release/apply.pipeline/mutation.d.ts +1 -1
  318. package/dist/commands/release/apply.pipeline/mutation.d.ts.map +1 -1
  319. package/dist/commands/release/apply.pipeline/mutation.js +3 -4
  320. package/dist/commands/release/apply.pipeline/preflight.js +1 -1
  321. package/dist/commands/release/apply.pipeline/state.d.ts.map +1 -1
  322. package/dist/commands/release/apply.pipeline/state.js +2 -1
  323. package/dist/commands/release/apply.pipeline.d.ts +5 -1
  324. package/dist/commands/release/apply.pipeline.d.ts.map +1 -1
  325. package/dist/commands/release/apply.pipeline.js +4 -0
  326. package/dist/commands/release/apply.preflight.d.ts.map +1 -1
  327. package/dist/commands/release/apply.preflight.js +2 -1
  328. package/dist/commands/release/apply.reporting.d.ts.map +1 -1
  329. package/dist/commands/release/apply.reporting.js +2 -1
  330. package/dist/commands/release/apply.spec.d.ts +5 -0
  331. package/dist/commands/release/apply.spec.d.ts.map +1 -0
  332. package/dist/commands/release/apply.spec.js +136 -0
  333. package/dist/commands/release/apply.types.d.ts +1 -1
  334. package/dist/commands/release/apply.types.d.ts.map +1 -1
  335. package/dist/commands/release/plan.command.d.ts +3 -10
  336. package/dist/commands/release/plan.command.d.ts.map +1 -1
  337. package/dist/commands/release/plan.command.js +4 -78
  338. package/dist/commands/release/plan.spec.d.ts +10 -0
  339. package/dist/commands/release/plan.spec.d.ts.map +1 -0
  340. package/dist/commands/release/plan.spec.js +76 -0
  341. package/dist/commands/runtime.command.d.ts +3 -6
  342. package/dist/commands/runtime.command.d.ts.map +1 -1
  343. package/dist/commands/runtime.command.js +5 -32
  344. package/dist/commands/runtime.spec.d.ts +8 -0
  345. package/dist/commands/runtime.spec.d.ts.map +1 -0
  346. package/dist/commands/runtime.spec.js +31 -0
  347. package/dist/commands/scenario/impl/commands.d.ts +1 -1
  348. package/dist/commands/scenario/impl/commands.d.ts.map +1 -1
  349. package/dist/commands/scenario/impl/commands.js +2 -1
  350. package/dist/commands/shared/approval-requirements.d.ts +1 -1
  351. package/dist/commands/shared/approval-requirements.d.ts.map +1 -1
  352. package/dist/commands/shared/comment-format.d.ts +1 -1
  353. package/dist/commands/shared/comment-format.d.ts.map +1 -1
  354. package/dist/commands/shared/git-ops.d.ts +1 -1
  355. package/dist/commands/shared/git-ops.d.ts.map +1 -1
  356. package/dist/commands/shared/git-ops.js +3 -2
  357. package/dist/commands/shared/merged-branch-cleanup.js +2 -2
  358. package/dist/commands/shared/network-approval.d.ts +1 -1
  359. package/dist/commands/shared/network-approval.d.ts.map +1 -1
  360. package/dist/commands/shared/post-commit-pr-artifacts.d.ts.map +1 -1
  361. package/dist/commands/shared/post-commit-pr-artifacts.js +2 -1
  362. package/dist/commands/shared/pr-meta.d.ts +1 -1
  363. package/dist/commands/shared/pr-meta.d.ts.map +1 -1
  364. package/dist/commands/shared/pr-meta.js +2 -2
  365. package/dist/commands/shared/task-backend.d.ts +3 -2
  366. package/dist/commands/shared/task-backend.d.ts.map +1 -1
  367. package/dist/commands/shared/task-backend.js +3 -4
  368. package/dist/commands/shared/task-handoff.d.ts +1 -1
  369. package/dist/commands/shared/task-handoff.d.ts.map +1 -1
  370. package/dist/commands/shared/task-handoff.js +3 -2
  371. package/dist/commands/shared/task-local-freshness.js +1 -1
  372. package/dist/commands/shared/task-store/intents.js +1 -1
  373. package/dist/commands/shared/task-store/readme.d.ts.map +1 -1
  374. package/dist/commands/shared/task-store/readme.js +1 -1
  375. package/dist/commands/shared/task-store/types.d.ts +1 -1
  376. package/dist/commands/shared/task-store/types.d.ts.map +1 -1
  377. package/dist/commands/task/add.command.d.ts +2 -1
  378. package/dist/commands/task/add.command.d.ts.map +1 -1
  379. package/dist/commands/task/add.command.js +2 -1
  380. package/dist/commands/task/close-duplicate.d.ts.map +1 -1
  381. package/dist/commands/task/close-duplicate.js +2 -2
  382. package/dist/commands/task/close-shared.d.ts.map +1 -1
  383. package/dist/commands/task/close-shared.js +2 -1
  384. package/dist/commands/task/close-tail-state.d.ts.map +1 -1
  385. package/dist/commands/task/close-tail-state.js +3 -2
  386. package/dist/commands/task/derive.js +1 -1
  387. package/dist/commands/task/doc-template.js +1 -1
  388. package/dist/commands/task/doc.d.ts.map +1 -1
  389. package/dist/commands/task/doc.js +4 -2
  390. package/dist/commands/task/findings.d.ts +1 -1
  391. package/dist/commands/task/findings.d.ts.map +1 -1
  392. package/dist/commands/task/findings.js +1 -1
  393. package/dist/commands/task/finish-close.js +2 -2
  394. package/dist/commands/task/finish-shared.d.ts.map +1 -1
  395. package/dist/commands/task/finish-shared.js +6 -8
  396. package/dist/commands/task/handoff.shared.d.ts.map +1 -1
  397. package/dist/commands/task/handoff.shared.js +4 -5
  398. package/dist/commands/task/hosted-close-pr.command.d.ts +4 -0
  399. package/dist/commands/task/hosted-close-pr.command.d.ts.map +1 -1
  400. package/dist/commands/task/hosted-close-pr.command.js +4 -0
  401. package/dist/commands/task/hosted-close-pr.precheck.d.ts.map +1 -1
  402. package/dist/commands/task/hosted-close-pr.precheck.js +4 -4
  403. package/dist/commands/task/hosted-close.command.d.ts +3 -6
  404. package/dist/commands/task/hosted-close.command.d.ts.map +1 -1
  405. package/dist/commands/task/hosted-close.command.js +4 -41
  406. package/dist/commands/task/hosted-close.spec.d.ts +7 -0
  407. package/dist/commands/task/hosted-close.spec.d.ts.map +1 -0
  408. package/dist/commands/task/hosted-close.spec.js +39 -0
  409. package/dist/commands/task/hosted-merge-sync/builders.d.ts +1 -1
  410. package/dist/commands/task/hosted-merge-sync/builders.d.ts.map +1 -1
  411. package/dist/commands/task/hosted-merge-sync/builders.js +6 -6
  412. package/dist/commands/task/hosted-merge-sync/github.js +2 -2
  413. package/dist/commands/task/hosted-merge-sync/local-branch.d.ts.map +1 -1
  414. package/dist/commands/task/hosted-merge-sync/local-branch.js +5 -5
  415. package/dist/commands/task/hosted-merge-sync/model.d.ts +1 -1
  416. package/dist/commands/task/hosted-merge-sync/model.d.ts.map +1 -1
  417. package/dist/commands/task/hosted-merge-sync/pr-meta.d.ts +1 -1
  418. package/dist/commands/task/hosted-merge-sync/pr-meta.d.ts.map +1 -1
  419. package/dist/commands/task/index.d.ts +1 -1
  420. package/dist/commands/task/index.d.ts.map +1 -1
  421. package/dist/commands/task/index.js +1 -1
  422. package/dist/commands/task/lint.js +1 -1
  423. package/dist/commands/task/list.d.ts.map +1 -1
  424. package/dist/commands/task/list.js +2 -1
  425. package/dist/commands/task/migrate-doc.d.ts +2 -1
  426. package/dist/commands/task/migrate-doc.d.ts.map +1 -1
  427. package/dist/commands/task/migrate-doc.js +6 -2
  428. package/dist/commands/task/new.d.ts.map +1 -1
  429. package/dist/commands/task/new.js +6 -21
  430. package/dist/commands/task/normalize.d.ts.map +1 -1
  431. package/dist/commands/task/normalize.js +2 -1
  432. package/dist/commands/task/plan.d.ts.map +1 -1
  433. package/dist/commands/task/plan.js +1 -1
  434. package/dist/commands/task/ready.d.ts.map +1 -1
  435. package/dist/commands/task/ready.js +2 -1
  436. package/dist/commands/task/scaffold.d.ts.map +1 -1
  437. package/dist/commands/task/scaffold.js +1 -1
  438. package/dist/commands/task/shared/dependencies.d.ts.map +1 -1
  439. package/dist/commands/task/shared/dependencies.js +4 -3
  440. package/dist/commands/task/shared/docs.d.ts +1 -1
  441. package/dist/commands/task/shared/docs.d.ts.map +1 -1
  442. package/dist/commands/task/shared/docs.js +1 -1
  443. package/dist/commands/task/shared/listing.d.ts.map +1 -1
  444. package/dist/commands/task/shared/listing.js +3 -2
  445. package/dist/commands/task/shared/tags.d.ts +1 -1
  446. package/dist/commands/task/shared/tags.d.ts.map +1 -1
  447. package/dist/commands/task/shared/tags.js +4 -4
  448. package/dist/commands/task/shared/transition-rules.d.ts +28 -0
  449. package/dist/commands/task/shared/transition-rules.d.ts.map +1 -0
  450. package/dist/commands/task/shared/transition-rules.js +96 -0
  451. package/dist/commands/task/shared/transitions.d.ts +2 -27
  452. package/dist/commands/task/shared/transitions.d.ts.map +1 -1
  453. package/dist/commands/task/shared/transitions.js +5 -98
  454. package/dist/commands/task/shared/workflow-transition-service.d.ts +1 -1
  455. package/dist/commands/task/shared/workflow-transition-service.d.ts.map +1 -1
  456. package/dist/commands/task/shared/workflow-transition-service.js +6 -6
  457. package/dist/commands/task/shared.d.ts +2 -1
  458. package/dist/commands/task/shared.d.ts.map +1 -1
  459. package/dist/commands/task/shared.js +2 -1
  460. package/dist/commands/task/show.d.ts.map +1 -1
  461. package/dist/commands/task/show.js +1 -1
  462. package/dist/commands/upgrade/apply.js +3 -2
  463. package/dist/commands/upgrade/materialize.d.ts.map +1 -1
  464. package/dist/commands/upgrade/materialize.js +1 -1
  465. package/dist/commands/upgrade.command.d.ts +3 -4
  466. package/dist/commands/upgrade.command.d.ts.map +1 -1
  467. package/dist/commands/upgrade.command.js +1 -179
  468. package/dist/commands/upgrade.d.ts.map +1 -1
  469. package/dist/commands/upgrade.js +4 -2
  470. package/dist/commands/upgrade.spec.d.ts +5 -0
  471. package/dist/commands/upgrade.spec.d.ts.map +1 -0
  472. package/dist/commands/upgrade.spec.js +179 -0
  473. package/dist/commands/workflow-build.command.d.ts.map +1 -1
  474. package/dist/commands/workflow-build.command.js +2 -1
  475. package/dist/commands/workflow-playbook.command.d.ts +3 -6
  476. package/dist/commands/workflow-playbook.command.d.ts.map +1 -1
  477. package/dist/commands/workflow-playbook.command.js +6 -24
  478. package/dist/commands/workflow-playbook.spec.d.ts +6 -0
  479. package/dist/commands/workflow-playbook.spec.d.ts.map +1 -0
  480. package/dist/commands/workflow-playbook.spec.js +21 -0
  481. package/dist/commands/workflow-restore.command.js +1 -1
  482. package/dist/commands/workflow.d.ts +4 -5
  483. package/dist/commands/workflow.d.ts.map +1 -1
  484. package/dist/commands/workflow.js +4 -5
  485. package/dist/harness/hooks-lifecycle.js +1 -1
  486. package/dist/meta/release.d.ts.map +1 -1
  487. package/dist/meta/release.js +3 -5
  488. package/dist/meta/version.d.ts.map +1 -1
  489. package/dist/meta/version.js +2 -2
  490. package/dist/policy/engine.d.ts +1 -1
  491. package/dist/policy/engine.d.ts.map +1 -1
  492. package/dist/policy/model.d.ts +1 -1
  493. package/dist/policy/model.d.ts.map +1 -1
  494. package/dist/policy/rules/commit-subject.js +1 -1
  495. package/dist/runner/adapters/base.d.ts +1 -1
  496. package/dist/runner/adapters/base.d.ts.map +1 -1
  497. package/dist/runner/adapters/codex.d.ts.map +1 -1
  498. package/dist/runner/adapters/codex.js +35 -113
  499. package/dist/runner/adapters/custom-preparation.d.ts +1 -1
  500. package/dist/runner/adapters/custom-preparation.d.ts.map +1 -1
  501. package/dist/runner/adapters/custom.d.ts +1 -1
  502. package/dist/runner/adapters/custom.d.ts.map +1 -1
  503. package/dist/runner/adapters/custom.js +34 -115
  504. package/dist/runner/adapters/execute-supervised.d.ts +41 -0
  505. package/dist/runner/adapters/execute-supervised.d.ts.map +1 -0
  506. package/dist/runner/adapters/execute-supervised.js +108 -0
  507. package/dist/runner/adapters/index.d.ts +1 -1
  508. package/dist/runner/adapters/index.d.ts.map +1 -1
  509. package/dist/runner/adapters/shared.d.ts +1 -1
  510. package/dist/runner/adapters/shared.d.ts.map +1 -1
  511. package/dist/runner/artifacts.d.ts.map +1 -1
  512. package/dist/runner/artifacts.js +1 -1
  513. package/dist/runner/config.d.ts +1 -1
  514. package/dist/runner/config.d.ts.map +1 -1
  515. package/dist/runner/context/base-prompt-sources.d.ts.map +1 -1
  516. package/dist/runner/context/base-prompt-sources.js +26 -4
  517. package/dist/runner/context/prompt-block-shared.d.ts +1 -1
  518. package/dist/runner/context/prompt-block-shared.d.ts.map +1 -1
  519. package/dist/runner/context/prompt-block-shared.js +8 -2
  520. package/dist/runner/context/recipe-context.d.ts +1 -1
  521. package/dist/runner/context/recipe-context.d.ts.map +1 -1
  522. package/dist/runner/context/task-context.d.ts.map +1 -1
  523. package/dist/runner/context/task-context.js +1 -1
  524. package/dist/runner/process-supervision/buffered-file-writer.d.ts +10 -0
  525. package/dist/runner/process-supervision/buffered-file-writer.d.ts.map +1 -0
  526. package/dist/runner/process-supervision/buffered-file-writer.js +70 -0
  527. package/dist/runner/process-supervision/run.d.ts.map +1 -1
  528. package/dist/runner/process-supervision/run.js +22 -9
  529. package/dist/runner/process-supervision/signals.js +1 -1
  530. package/dist/runner/result-manifest.d.ts.map +1 -1
  531. package/dist/runner/result-manifest.js +1 -1
  532. package/dist/runner/task-state.js +1 -1
  533. package/dist/runner/trace-artifacts.d.ts.map +1 -1
  534. package/dist/runner/trace-artifacts.js +1 -1
  535. package/dist/runner/types.d.ts +2 -2
  536. package/dist/runner/types.d.ts.map +1 -1
  537. package/dist/runner/usecases/scenario-materialize-task.d.ts.map +1 -1
  538. package/dist/runner/usecases/scenario-materialize-task.js +1 -1
  539. package/dist/runner/usecases/task-run-lifecycle-cancel.d.ts.map +1 -1
  540. package/dist/runner/usecases/task-run-lifecycle-cancel.js +2 -1
  541. package/dist/runner/usecases/task-run-lifecycle-shared.d.ts.map +1 -1
  542. package/dist/runner/usecases/task-run-lifecycle-shared.js +3 -7
  543. package/dist/runner/usecases/task-run.d.ts.map +1 -1
  544. package/dist/runner/usecases/task-run.js +2 -3
  545. package/dist/runtime/approvals/model.d.ts +1 -1
  546. package/dist/runtime/approvals/model.d.ts.map +1 -1
  547. package/dist/runtime/approvals/runtime.d.ts +1 -1
  548. package/dist/runtime/approvals/runtime.d.ts.map +1 -1
  549. package/dist/runtime/execution-context.d.ts +2 -1
  550. package/dist/runtime/execution-context.d.ts.map +1 -1
  551. package/dist/runtime/execution-profile/model.d.ts +1 -1
  552. package/dist/runtime/execution-profile/model.d.ts.map +1 -1
  553. package/dist/runtime/execution-profile/resolve.d.ts +1 -1
  554. package/dist/runtime/execution-profile/resolve.d.ts.map +1 -1
  555. package/dist/runtime/execution-profile/resolve.js +1 -1
  556. package/dist/runtime/harness/resolve.d.ts +2 -1
  557. package/dist/runtime/harness/resolve.d.ts.map +1 -1
  558. package/dist/runtime/harness/resolve.js +1 -1
  559. package/dist/runtime/harness/types.d.ts +2 -1
  560. package/dist/runtime/harness/types.d.ts.map +1 -1
  561. package/dist/runtime/incidents/paths.d.ts +3 -0
  562. package/dist/runtime/incidents/paths.d.ts.map +1 -0
  563. package/dist/runtime/incidents/paths.js +2 -0
  564. package/dist/runtime/shared/repo-cli-version.d.ts +1 -1
  565. package/dist/runtime/shared/repo-cli-version.d.ts.map +1 -1
  566. package/dist/runtime/task-intake/types.d.ts +2 -1
  567. package/dist/runtime/task-intake/types.d.ts.map +1 -1
  568. package/dist/shared/package-paths.d.ts +8 -0
  569. package/dist/shared/package-paths.d.ts.map +1 -0
  570. package/dist/shared/package-paths.js +80 -0
  571. package/dist/shared/trace-events.d.ts +1 -1
  572. package/dist/shared/trace-events.d.ts.map +1 -1
  573. package/dist/shared/trace-events.js +1 -1
  574. package/dist/shared/write-if-changed.js +2 -1
  575. package/dist/task-doc/conflicts.js +1 -1
  576. package/dist/task-doc/state.d.ts +2 -2
  577. package/dist/task-doc/state.d.ts.map +1 -1
  578. package/dist/task-doc/state.js +1 -1
  579. package/dist/workflow-runtime/file-ops.js +1 -1
  580. package/dist/workflow-runtime/markdown.js +1 -1
  581. package/dist/workflow-runtime/validate.d.ts +1 -1
  582. package/dist/workflow-runtime/validate.d.ts.map +1 -1
  583. package/package.json +6 -4
  584. package/dist/cli/cli-error.d.ts +0 -9
  585. package/dist/cli/cli-error.d.ts.map +0 -1
  586. package/dist/cli/cli-error.js +0 -13
  587. package/dist/cli/run-cli/command-catalog/shared.d.ts.map +0 -1
  588. package/dist/cli/run-cli/command-loaders.d.ts +0 -170
  589. package/dist/cli/run-cli/command-loaders.d.ts.map +0 -1
  590. package/dist/cli/run-cli/command-loaders.js +0 -128
  591. package/dist/cli/run-cli/commands/init/ui.d.ts +0 -3
  592. package/dist/cli/run-cli/commands/init/ui.d.ts.map +0 -1
  593. package/dist/cli/run-cli/commands/init/ui.js +0 -58
  594. package/dist/cli/run-cli/commands/init.d.ts +0 -2
  595. package/dist/cli/run-cli/commands/init.d.ts.map +0 -1
  596. package/dist/cli/run-cli/commands/init.js +0 -1
  597. package/dist/commands/guard/impl/commands.d.ts +0 -5
  598. package/dist/commands/guard/impl/commands.d.ts.map +0 -1
  599. package/dist/commands/guard/impl/commands.js +0 -4
  600. package/dist/commands/pr/index.d.ts +0 -8
  601. package/dist/commands/pr/index.d.ts.map +0 -1
  602. package/dist/commands/pr/index.js +0 -7
  603. package/dist/commands/pr/integrate.d.ts +0 -2
  604. package/dist/commands/pr/integrate.d.ts.map +0 -1
  605. package/dist/commands/pr/integrate.js +0 -1
  606. package/dist/commands/scenario/execute.command.d.ts +0 -8
  607. package/dist/commands/scenario/execute.command.d.ts.map +0 -1
  608. package/dist/commands/scenario/execute.command.js +0 -117
  609. package/dist/commands/scenario/impl/report.d.ts +0 -38
  610. package/dist/commands/scenario/impl/report.d.ts.map +0 -1
  611. package/dist/commands/scenario/impl/report.js +0 -97
  612. package/dist/commands/scenario/scenario.command.d.ts +0 -5
  613. package/dist/commands/scenario/scenario.command.d.ts.map +0 -1
  614. package/dist/commands/scenario/scenario.command.js +0 -19
  615. package/dist/commands/shared/git-context.d.ts +0 -2
  616. package/dist/commands/shared/git-context.d.ts.map +0 -1
  617. package/dist/commands/shared/git-context.js +0 -1
  618. package/dist/commands/shared/git-diff.d.ts +0 -2
  619. package/dist/commands/shared/git-diff.d.ts.map +0 -1
  620. package/dist/commands/shared/git-diff.js +0 -1
  621. package/dist/commands/shared/git-worktree.d.ts +0 -2
  622. package/dist/commands/shared/git-worktree.d.ts.map +0 -1
  623. package/dist/commands/shared/git-worktree.js +0 -1
  624. package/dist/commands/shared/git.d.ts +0 -2
  625. package/dist/commands/shared/git.d.ts.map +0 -1
  626. package/dist/commands/shared/git.js +0 -1
  627. package/dist/commands/task/finish.d.ts +0 -2
  628. package/dist/commands/task/finish.d.ts.map +0 -1
  629. package/dist/commands/task/finish.js +0 -1
  630. package/dist/harness/index.d.ts +0 -9
  631. package/dist/harness/index.d.ts.map +0 -1
  632. package/dist/harness/index.js +0 -8
  633. package/dist/runner/index.d.ts +0 -12
  634. package/dist/runner/index.d.ts.map +0 -1
  635. package/dist/runner/index.js +0 -11
  636. package/dist/runner/process-supervision.d.ts +0 -6
  637. package/dist/runner/process-supervision.d.ts.map +0 -1
  638. package/dist/runner/process-supervision.js +0 -3
  639. /package/dist/cli/run-cli/command-catalog/{shared.js → kernel.js} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"command-loaders.d.ts","sourceRoot":"","sources":["../../../src/cli/run-cli/command-loaders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAE1E,eAAO,MAAM,gBAAgB,oNAAoD,CAAC;AAClF,eAAO,MAAM,0BAA0B,0NAEtC,CAAC;AACF,eAAO,MAAM,iCAAiC,0NAE7C,CAAC;AACF,eAAO,MAAM,8BAA8B,kOAE1C,CAAC;AACF,eAAO,MAAM,+BAA+B,wUAE3C,CAAC;AACF,eAAO,MAAM,0BAA0B,gOAEtC,CAAC;AACF,eAAO,MAAM,yBAAyB,8NAErC,CAAC;AACF,eAAO,MAAM,iBAAiB,6TAAqD,CAAC;AACpF,eAAO,MAAM,0BAA0B,kUAEtC,CAAC;AACF,eAAO,MAAM,qCAAqC,8NAEjD,CAAC;AACF,eAAO,MAAM,oBAAoB,oNAAyD,CAAC;AAC3F,eAAO,MAAM,qBAAqB,yMAA8D,CAAC;AACjG,eAAO,MAAM,2BAA2B,4NAEvC,CAAC;AACF,eAAO,MAAM,gCAAgC,sOAE5C,CAAC;AACF,eAAO,MAAM,kCAAkC,0OAE9C,CAAC;AACF,eAAO,MAAM,mCAAmC,wTAE/C,CAAC;AACF,eAAO,MAAM,0BAA0B,GAAI,MAAM,OAAO,8GAC6B,CAAC;AACtF,eAAO,MAAM,wBAAwB,GAAI,MAAM,OAAO;;;;sBAGnD,CAAC;AACJ,eAAO,MAAM,uBAAuB,GAAI,MAAM,OAAO;;;;;;;;sBAGlD,CAAC;AACJ,eAAO,MAAM,cAAc,GAAI,MAAM,OAAO;;GACmC,CAAC;AAChF,eAAO,MAAM,kBAAkB,GAAI,MAAM,OAAO;;GA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,MAAM,OAAO,qIAC6C,CAAC;AAC1F,eAAO,MAAM,aAAa,GAAI,MAAM,OAAO,sIACgD,CAAC;AAC5F,eAAO,MAAM,eAAe,GAAI,MAAM,OAAO,2IAG1C,CAAC;AACJ,eAAO,MAAM,sBAAsB,wOAElC,CAAC;AACF,eAAO,MAAM,eAAe,gRAE3B,CAAC;AACF,eAAO,MAAM,qBAAqB,GAAI,MAAM,OAAO,uJAGhD,CAAC;AACJ,eAAO,MAAM,yBAAyB,8OAErC,CAAC;AACF,eAAO,MAAM,mBAAmB,GAAI,MAAM,OAAO,mJAG9C,CAAC"}
@@ -1,128 +0,0 @@
1
- import { commandModule } from "./command-catalog/shared.js";
2
- export const fromCommandsInit = commandModule(() => import("./commands/init.js"));
3
- export const fromCommandsUpgradeCommand = commandModule(() => import("../../commands/upgrade.command.js"));
4
- export const fromCommandsReleaseReleaseCommand = commandModule(() => import("../../commands/release/release.command.js"));
5
- export const fromCommandsReleasePlanCommand = commandModule(() => import("../../commands/release/plan.command.js"));
6
- export const fromCommandsReleaseApplyCommand = commandModule(() => import("../../commands/release/apply.command.js"));
7
- export const fromCommandsCoreQuickstart = commandModule(() => import("./commands/core/quickstart.js"));
8
- export const fromCommandsCorePreflight = commandModule(() => import("./commands/core/preflight.js"));
9
- export const fromCommandsCodex = commandModule(() => import("./commands/codex.js"));
10
- export const fromCommandsRuntimeCommand = commandModule(() => import("../../commands/runtime.command.js"));
11
- export const fromCommandsIncidentsIncidentsCommand = commandModule(() => import("../../commands/incidents/incidents.command.js"));
12
- export const fromCommandsCoreRole = commandModule(() => import("./commands/core/role.js"));
13
- export const fromCommandsDoctorRun = commandModule(() => import("../../commands/doctor.run.js"));
14
- export const fromCommandsWorkflowCommand = commandModule(() => import("../../commands/workflow.command.js"));
15
- export const fromCommandsWorkflowBuildCommand = commandModule(() => import("../../commands/workflow-build.command.js"));
16
- export const fromCommandsWorkflowRestoreCommand = commandModule(() => import("../../commands/workflow-restore.command.js"));
17
- export const fromCommandsWorkflowPlaybookCommand = commandModule(() => import("../../commands/workflow-playbook.command.js"));
18
- export const loadCodexPluginInstallSpec = (deps) => import("./commands/codex.js").then((m) => m.makeRunCodexPluginInstallHandler(deps));
19
- export const loadIncidentsCollectSpec = (deps) => import("../../commands/incidents/collect.command.js").then((m) => m.makeRunIncidentsCollectHandler(deps.getCtx));
20
- export const loadIncidentsAdviseSpec = (deps) => import("../../commands/incidents/advise.command.js").then((m) => m.makeRunIncidentsAdviseHandler(deps.getCtx));
21
- export const loadAgentsSpec = (deps) => import("./commands/core/agents.js").then((m) => m.makeRunAgentsHandler(deps));
22
- export const loadConfigShowSpec = (deps) => import("./commands/config.js").then((m) => m.makeRunConfigShowHandler(deps));
23
- export const loadConfigSetSpec = (deps) => import("./commands/config.js").then((m) => m.makeRunConfigSetHandler(deps));
24
- export const loadModeGetSpec = (deps) => import("./commands/config.js").then((m) => m.makeRunModeGetHandler(deps));
25
- export const loadModeSetSpec = (deps) => import("./commands/config.js").then((m) => m.makeRunModeSetHandler(deps));
26
- export const loadProfileSetSpec = (deps) => import("./commands/config.js").then((m) => m.makeRunProfileSetHandler(deps));
27
- export const loadIdeSyncSpec = (deps) => import("./commands/ide.js").then((m) => m.makeRunIdeSyncHandler(deps));
28
- export const fromCommandsTaskTaskCommand = commandModule(() => import("../../commands/task/task.command.js"));
29
- export const fromCommandsTaskHandoffCommand = commandModule(() => import("../../commands/task/handoff.command.js"));
30
- export const fromCommandsTaskHandoffRecordCommand = commandModule(() => import("../../commands/task/handoff-record.command.js"));
31
- export const fromCommandsTaskRunShowCommand = commandModule(() => import("../../commands/task/run-show.command.js"));
32
- export const fromCommandsTaskRunTailCommand = commandModule(() => import("../../commands/task/run-tail.command.js"));
33
- export const fromCommandsTaskRunCancelCommand = commandModule(() => import("../../commands/task/run-cancel.command.js"));
34
- export const fromCommandsTaskRunRetryCommand = commandModule(() => import("../../commands/task/run-retry.command.js"));
35
- export const fromCommandsTaskFindingsCommand = commandModule(() => import("../../commands/task/findings.command.js"));
36
- export const fromCommandsTaskDocCommand = commandModule(() => import("../../commands/task/doc.command.js"));
37
- export const fromCommandsTaskLintCommand = commandModule(() => import("../../commands/task/lint.command.js"));
38
- export const fromCommandsTaskMigrateDocCommand = commandModule(() => import("../../commands/task/migrate-doc.command.js"));
39
- export const fromCommandsTaskVerifyCommand = commandModule(() => import("../../commands/task/verify.command.js"));
40
- export const fromCommandsTaskResumeContextCommand = commandModule(() => import("../../commands/task/resume-context.command.js"));
41
- export const fromTaskHandoffShowSpec = commandModule(() => import("../../commands/task/handoff-show.command.js"));
42
- export const loadTaskHostedCloseSpec = (deps) => import("../../commands/task/hosted-close.command.js").then((m) => m.makeRunTaskHostedCloseHandler(deps.getCtx));
43
- export const loadTaskHostedClosePrSpec = (deps) => import("../../commands/task/hosted-close-pr.command.js").then((m) => m.makeRunTaskHostedClosePrHandler(deps.getCtx));
44
- export const loadTaskListSpec = (deps) => import("../../commands/task/list.run.js").then((m) => m.makeRunTaskListHandler(deps.getCtx));
45
- export const loadTaskNextSpec = (deps) => import("../../commands/task/next.run.js").then((m) => m.makeRunTaskNextHandler(deps.getCtx));
46
- export const loadTaskSearchSpec = (deps) => import("../../commands/task/search.run.js").then((m) => m.makeRunTaskSearchHandler(deps.getCtx));
47
- export const loadTaskShowSpec = (deps) => import("../../commands/task/show.run.js").then((m) => m.makeRunTaskShowHandler(deps.getCtx));
48
- export const fromTaskRunTraceSpec = commandModule(() => import("../../commands/task/run-trace.command.js"));
49
- export const fromTaskRunSpec = commandModule(() => import("../../commands/task/run.command.js"));
50
- export const fromTaskRunResumeSpec = commandModule(() => import("../../commands/task/run-resume.command.js"));
51
- export const loadTaskNewSpec = (deps) => import("../../commands/task/new.command.js").then((m) => m.makeRunTaskNewHandler(deps.getCtx));
52
- export const loadTaskDeriveSpec = (deps) => import("../../commands/task/derive.command.js").then((m) => m.makeRunTaskDeriveHandler(deps.getCtx));
53
- export const loadTaskCloseDuplicateSpec = (deps) => import("../../commands/task/close-duplicate.command.js").then((m) => m.makeRunTaskCloseDuplicateHandler(deps.getCtx));
54
- export const loadTaskStartReadySpec = (deps) => import("../../commands/task/start-ready.command.js").then((m) => m.makeRunTaskStartReadyHandler(deps.getCtx));
55
- export const loadTaskCloseNoopSpec = (deps) => import("../../commands/task/close-noop.command.js").then((m) => m.makeRunTaskCloseNoopHandler(deps.getCtx));
56
- export const loadTaskAddSpec = (deps) => import("../../commands/task/add.command.js").then((m) => m.makeRunTaskAddHandler(deps.getCtx));
57
- export const loadTaskUpdateSpec = (deps) => import("../../commands/task/update.command.js").then((m) => m.makeRunTaskUpdateHandler(deps.getCtx));
58
- export const loadTaskCommentSpec = (deps) => import("../../commands/task/comment.command.js").then((m) => m.makeRunTaskCommentHandler(deps.getCtx));
59
- export const loadTaskSetStatusSpec = (deps) => import("../../commands/task/set-status.command.js").then((m) => m.makeRunTaskSetStatusHandler(deps.getCtx));
60
- export const loadTaskFindingsAddSpec = (deps) => import("../../commands/task/findings-add.command.js").then((m) => m.makeRunTaskFindingsAddHandler(deps.getCtx));
61
- export const loadTaskDocShowSpec = (deps) => import("../../commands/task/doc-show.command.js").then((m) => m.makeRunTaskDocShowHandler(deps.getCtx));
62
- export const loadTaskDocSetSpec = (deps) => import("../../commands/task/doc-set.command.js").then((m) => m.makeRunTaskDocSetHandler(deps.getCtx));
63
- export const loadTaskScrubSpec = (deps) => import("../../commands/task/scrub.command.js").then((m) => m.makeRunTaskScrubHandler(deps.getCtx));
64
- export const loadTaskScaffoldSpec = (deps) => import("../../commands/task/scaffold.command.js").then((m) => m.makeRunTaskScaffoldHandler(deps.getCtx));
65
- export const loadTaskNormalizeSpec = (deps) => import("../../commands/task/normalize.command.js").then((m) => m.makeRunTaskNormalizeHandler(deps.getCtx));
66
- export const loadTaskExportSpec = (deps) => import("../../commands/task/export.command.js").then((m) => m.makeRunTaskExportHandler(deps.getCtx));
67
- export const loadTaskMigrateSpec = (deps) => import("../../commands/task/migrate.command.js").then((m) => m.makeRunTaskMigrateHandler(deps.getCtx));
68
- export const fromTaskPlanSpec = commandModule(() => import("../../commands/task/plan.command.js"));
69
- export const loadTaskPlanSetSpec = (deps) => import("../../commands/task/plan-set.command.js").then((m) => m.makeRunTaskPlanSetHandler(deps.getCtx));
70
- export const loadTaskPlanApproveSpec = (deps) => import("../../commands/task/plan-approve.command.js").then((m) => m.makeRunTaskPlanApproveHandler(deps.getCtx));
71
- export const loadTaskPlanRejectSpec = (deps) => import("../../commands/task/plan-reject.command.js").then((m) => m.makeRunTaskPlanRejectHandler(deps.getCtx));
72
- export const loadTaskVerifyOkSpec = (deps) => import("../../commands/task/verify-ok.command.js").then((m) => m.makeRunTaskVerifyOkHandler(deps.getCtx));
73
- export const loadTaskVerifyReworkSpec = (deps) => import("../../commands/task/verify-rework.command.js").then((m) => m.makeRunTaskVerifyReworkHandler(deps.getCtx));
74
- export const loadTaskVerifyShowSpec = (deps) => import("../../commands/task/verify-show.command.js").then((m) => m.makeRunTaskVerifyShowHandler(deps.getCtx));
75
- export const loadTaskRebuildIndexSpec = (deps) => import("../../commands/task/rebuild-index.command.js").then((m) => m.makeRunTaskRebuildIndexHandler(deps.getCtx));
76
- export const fromTaskReclaimSpec = commandModule(() => import("../../commands/task/reclaim.command.js"));
77
- export const fromCommandsRecipesRecipesCommand = commandModule(() => import("../../commands/recipes/recipes.command.js"));
78
- export const fromCommandsRecipesCacheCommand = commandModule(() => import("../../commands/recipes/cache.command.js"));
79
- export const fromCommandsRecipesAddCommand = commandModule(() => import("../../commands/recipes/add.command.js"));
80
- export const fromCommandsRecipesListCommand = commandModule(() => import("../../commands/recipes/list.command.js"));
81
- export const fromCommandsRecipesListRemoteCommand = commandModule(() => import("../../commands/recipes/list-remote.command.js"));
82
- export const fromCommandsRecipesExplainCommand = commandModule(() => import("../../commands/recipes/explain.command.js"));
83
- export const fromCommandsRecipesEnableCommand = commandModule(() => import("../../commands/recipes/enable.command.js"));
84
- export const fromCommandsRecipesRemoveCommand = commandModule(() => import("../../commands/recipes/remove.command.js"));
85
- export const fromCommandsRecipesDetachCommand = commandModule(() => import("../../commands/recipes/detach.command.js"));
86
- export const fromCommandsRecipesInstallRun = commandModule(() => import("../../commands/recipes/install.run.js"));
87
- export const fromCommandsBranchBaseCommand = commandModule(() => import("../../commands/branch/base.command.js"));
88
- export const fromCommandsBranchStatusCommand = commandModule(() => import("../../commands/branch/status.command.js"));
89
- export const loadWorkStartSpec = (deps) => import("../../commands/branch/work-start.command.js").then((m) => m.makeRunWorkStartHandler(deps.getCtx));
90
- export const fromRecipesActiveSpec = commandModule(() => import("../../commands/recipes/active.command.js"));
91
- export const fromRecipesInfoSpec = commandModule(() => import("../../commands/recipes/info.command.js"));
92
- export const loadRecipesExplainActiveSpec = () => import("../../commands/recipes/explain-active.command.js").then((m) => m.runRecipesExplainActive);
93
- export const fromRecipesDisableSpec = commandModule(() => import("../../commands/recipes/disable.command.js"));
94
- export const fromRecipesUpdateSpec = commandModule(() => import("../../commands/recipes/update.command.js"));
95
- export const fromRecipesCachePruneSpec = commandModule(() => import("../../commands/recipes/cache-prune.command.js"));
96
- export const fromBranchBaseSetSpec = commandModule(() => import("../../commands/branch/base.command.js"));
97
- export const fromBranchBaseExplainSpec = commandModule(() => import("../../commands/branch/base.command.js"));
98
- export const fromBranchRemoveSpec = commandModule(() => import("../../commands/branch/remove.command.js"));
99
- export const loadBackendSpec = (deps) => import("../../commands/backend/sync.command.js").then((m) => m.makeRunBackendHandler(deps.getCtx));
100
- export const loadBackendSyncSpec = (deps) => import("../../commands/backend/sync.command.js").then((m) => m.makeRunBackendSyncHandler(deps.getCtx));
101
- export const loadBackendInspectSpec = (deps) => import("../../commands/backend/sync.command.js").then((m) => m.makeRunBackendInspectHandler(deps.getCtx));
102
- export const loadBackendMigrateCanonicalStateSpec = (deps) => import("../../commands/backend/sync.command.js").then((m) => m.makeRunBackendMigrateCanonicalStateHandler(deps.getCtx));
103
- export const loadSyncSpec = (deps) => import("../../commands/sync.command.js").then((m) => m.makeRunSyncHandler(deps.getCtx));
104
- export const loadPrSpec = (deps) => import("../../commands/pr/pr.command.js").then((m) => m.makeRunPrHandler(deps.getCtx));
105
- export const loadPrOpenSpec = (deps) => import("../../commands/pr/pr.command.js").then((m) => m.makeRunPrOpenHandler(deps.getCtx));
106
- export const loadPrUpdateSpec = (deps) => import("../../commands/pr/pr.command.js").then((m) => m.makeRunPrUpdateHandler(deps.getCtx));
107
- export const loadPrCheckSpec = (deps) => import("../../commands/pr/pr.command.js").then((m) => m.makeRunPrCheckHandler(deps.getCtx));
108
- export const loadPrCloseSpec = (deps) => import("../../commands/pr/pr.command.js").then((m) => m.makeRunPrCloseHandler(deps.getCtx));
109
- export const loadPrCloseSupersededSpec = (deps) => import("../../commands/pr/pr.command.js").then((m) => m.makeRunPrCloseSupersededHandler(deps.getCtx));
110
- export const loadPrNoteSpec = (deps) => import("../../commands/pr/pr.command.js").then((m) => m.makeRunPrNoteHandler(deps.getCtx));
111
- export const loadIntegrateSpec = (deps) => import("../../commands/integrate.command.js").then((m) => m.makeRunIntegrateHandler(deps.getCtx));
112
- export const fromCommandsHooksHooksCommand = commandModule(() => import("../../commands/hooks/hooks.command.js"));
113
- export const fromCommandsHooksInstallCommand = commandModule(() => import("../../commands/hooks/install.command.js"));
114
- export const fromCommandsHooksRunCommand = commandModule(() => import("../../commands/hooks/run.command.js"));
115
- export const fromCommandsGuardGuardCommand = commandModule(() => import("../../commands/guard/guard.command.js"));
116
- export const fromCommandsGuardCleanCommand = commandModule(() => import("../../commands/guard/clean.command.js"));
117
- export const loadCommitSpec = (deps) => import("../../commands/commit.command.js").then((m) => m.makeRunCommitHandler(deps.getCtx));
118
- export const loadStartSpec = (deps) => import("../../commands/start.run.js").then((m) => m.makeRunStartHandler(deps.getCtx));
119
- export const loadBlockSpec = (deps) => import("../../commands/block.run.js").then((m) => m.makeRunBlockHandler(deps.getCtx));
120
- export const loadVerifySpec = (deps) => import("../../commands/verify.run.js").then((m) => m.makeRunVerifyHandler(deps.getCtx));
121
- export const loadFinishSpec = (deps) => import("../../commands/finish.run.js").then((m) => m.makeRunFinishHandler(deps.getCtx));
122
- export const loadReadySpec = (deps) => import("../../commands/ready.command.js").then((m) => m.makeRunReadyHandler(deps.getCtx));
123
- export const loadDocsCliSpec = (deps) => import("../../commands/docs/cli.command.js").then((m) => m.makeRunDocsCliHandler(deps.getHelpJsonForDocs));
124
- export const fromHooksUninstallSpec = commandModule(() => import("../../commands/hooks/uninstall.command.js"));
125
- export const fromCleanupSpec = commandModule(() => import("../../commands/cleanup/merged.command.js"));
126
- export const loadCleanupMergedSpec = (deps) => import("../../commands/cleanup/merged.command.js").then((m) => m.makeRunCleanupMergedHandler(deps.getCtx));
127
- export const fromGuardSuggestAllowSpec = commandModule(() => import("../../commands/guard/suggest-allow.command.js"));
128
- export const loadGuardCommitSpec = (deps) => import("../../commands/guard/commit.command.js").then((m) => m.makeRunGuardCommitHandler(deps.getCtx));
@@ -1,3 +0,0 @@
1
- export declare function renderInitWelcome(): string;
2
- export declare function renderInitSection(title: string, description: string): string;
3
- //# sourceMappingURL=ui.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../../../../src/cli/run-cli/commands/init/ui.ts"],"names":[],"mappings":"AA4CA,wBAAgB,iBAAiB,IAAI,MAAM,CAc1C;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAO5E"}
@@ -1,58 +0,0 @@
1
- import { visibleLen } from "../../../shared/ansi.js";
2
- function useColor() {
3
- return process.stdout.isTTY === true && (process.env.TERM ?? "dumb") !== "dumb";
4
- }
5
- function color(text, code) {
6
- if (!useColor())
7
- return text;
8
- return `\u001B[${code}m${text}\u001B[0m`;
9
- }
10
- function muted(text) {
11
- return color(text, "90");
12
- }
13
- function accent(text) {
14
- return color(text, "36");
15
- }
16
- function heading(text) {
17
- return color(text, "1;33");
18
- }
19
- function body(text) {
20
- return color(text, "37");
21
- }
22
- function padLine(line, width) {
23
- const lineLen = visibleLen(line);
24
- if (lineLen >= width)
25
- return line;
26
- return `${line}${" ".repeat(width - lineLen)}`;
27
- }
28
- function framedRailCallout(titleText, lines) {
29
- const width = Math.max(visibleLen(titleText), ...lines.map((line) => visibleLen(line)), 0);
30
- const ruleLen = Math.max(1, width - visibleLen(titleText) + 1);
31
- const header = `${heading("◇")} ${heading(titleText)} ${accent("─".repeat(ruleLen))}${accent("╮")}`;
32
- const bodyLines = lines.map((line) => `${muted("│")} ${padLine(body(line), width)} ${muted("│")}`);
33
- const footer = `${muted("├")}${accent("─".repeat(width + 4))}${accent("╯")}`;
34
- return [muted("│"), header, ...bodyLines, footer].join("\n");
35
- }
36
- export function renderInitWelcome() {
37
- const logo = [
38
- "░█▀█░█▀▀░█▀▀░█▀█░▀█▀░░░█░█▀█░█░░░█▀█░█▀█░█▀▀",
39
- "░█▀█░█░█░█▀▀░█░█░░█░░▄▀░░█▀▀░█░░░█▀█░█░█░█▀▀",
40
- "░▀░▀░▀▀▀░▀▀▀░▀░▀░░▀░░▀░░░▀░░░▀▀▀░▀░▀░▀░▀░▀▀▀",
41
- ].map((line) => accent(line));
42
- const intro = framedRailCallout("Interactive Setup", [
43
- "",
44
- "Bootstrap an agent-first workflow in this repository.",
45
- "This interactive setup runs once; daily work is executed by agents.",
46
- "Follow the prompts below to choose policy, workflow, and safety defaults.",
47
- "",
48
- ]);
49
- return `${logo.join("\n")}\n\n${intro}\n\n`;
50
- }
51
- export function renderInitSection(title, description) {
52
- const lines = description.split("\n");
53
- const width = Math.max(visibleLen(title), ...lines.map((line) => visibleLen(line)), 0);
54
- const ruleLen = Math.max(1, width - visibleLen(title) + 1);
55
- const header = `${heading("◇")} ${heading(title)} ${accent("─".repeat(ruleLen))}`;
56
- const bodyLines = lines.map((line) => `${muted("│")} ${body(line)}`);
57
- return `${header}\n${bodyLines.join("\n")}\n${muted("│")}\n\n`;
58
- }
@@ -1,2 +0,0 @@
1
- export { initSpec, runInit } from "./init/spec.js";
2
- //# sourceMappingURL=init.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../src/cli/run-cli/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1 +0,0 @@
1
- export { initSpec, runInit } from "./init/spec.js";
@@ -1,5 +0,0 @@
1
- export { cmdCommit } from "./commit.js";
2
- export { cmdGuardClean } from "./clean.js";
3
- export { cmdGuardCommit } from "./guard-commit.js";
4
- export { cmdGuardSuggestAllow } from "./suggest.js";
5
- //# sourceMappingURL=commands.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../src/commands/guard/impl/commands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC"}
@@ -1,4 +0,0 @@
1
- export { cmdCommit } from "./commit.js";
2
- export { cmdGuardClean } from "./clean.js";
3
- export { cmdGuardCommit } from "./guard-commit.js";
4
- export { cmdGuardSuggestAllow } from "./suggest.js";
@@ -1,8 +0,0 @@
1
- export { cmdPrOpen } from "./open.js";
2
- export { cmdPrUpdate } from "./update.js";
3
- export { cmdPrCheck } from "./check.js";
4
- export { cmdPrNote } from "./note.js";
5
- export { cmdPrClose } from "./close.js";
6
- export { cmdPrCloseSuperseded } from "./close-superseded.js";
7
- export { cmdIntegrate } from "./integrate.js";
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/pr/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -1,7 +0,0 @@
1
- export { cmdPrOpen } from "./open.js";
2
- export { cmdPrUpdate } from "./update.js";
3
- export { cmdPrCheck } from "./check.js";
4
- export { cmdPrNote } from "./note.js";
5
- export { cmdPrClose } from "./close.js";
6
- export { cmdPrCloseSuperseded } from "./close-superseded.js";
7
- export { cmdIntegrate } from "./integrate.js";
@@ -1,2 +0,0 @@
1
- export { cmdIntegrate } from "./integrate/cmd.js";
2
- //# sourceMappingURL=integrate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"integrate.d.ts","sourceRoot":"","sources":["../../../src/commands/pr/integrate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
@@ -1 +0,0 @@
1
- export { cmdIntegrate } from "./integrate/cmd.js";
@@ -1,8 +0,0 @@
1
- import type { CommandHandler, CommandSpec } from "../../cli/spec/spec.js";
2
- export type ScenarioExecuteParsed = {
3
- recipeId: string;
4
- scenarioId: string;
5
- };
6
- export declare const scenarioExecuteSpec: CommandSpec<ScenarioExecuteParsed>;
7
- export declare const runScenarioExecute: CommandHandler<ScenarioExecuteParsed>;
8
- //# sourceMappingURL=execute.command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"execute.command.d.ts","sourceRoot":"","sources":["../../../src/commands/scenario/execute.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAa1E,MAAM,MAAM,qBAAqB,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC;AAG7E,eAAO,MAAM,mBAAmB,EAAE,WAAW,CAAC,qBAAqB,CAyBlE,CAAC;AAgBF,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAAC,qBAAqB,CAuEpE,CAAC"}
@@ -1,117 +0,0 @@
1
- import { usageError } from "../../cli/spec/errors.js";
2
- import { exitCodeForError } from "../../cli/exit-codes.js";
3
- import { mapBackendError } from "../../cli/error-map.js";
4
- import { createCliEmitter } from "../../cli/output.js";
5
- import { loadCommandContext } from "../shared/task-backend.js";
6
- import { executeTaskRunnerExecution } from "../../runner/usecases/task-run.js";
7
- import { materializeRecipeScenarioTask } from "../../runner/usecases/scenario-materialize-task.js";
8
- import { cmdTaskPlanApprove } from "../task/plan.js";
9
- import { cmdTaskStartReady } from "../task/start-ready.js";
10
- import { CliError } from "../../shared/errors.js";
11
- const output = createCliEmitter();
12
- export const scenarioExecuteSpec = {
13
- id: ["recipes", "scenario", "execute"],
14
- group: "Recipes",
15
- summary: "Materialize a recipe-backed task and execute it through the shared runner flow.",
16
- description: "Resolves a recipe scenario, materializes a task from its explicit task_template, and executes the shared runner with recipe context bundled alongside the created task.",
17
- args: [{ name: "id", required: true, valueHint: "<recipe:scenario>" }],
18
- examples: [
19
- {
20
- cmd: "agentplane recipes scenario execute viewer:demo",
21
- why: "Create a task from the scenario template and execute it through the configured runner.",
22
- },
23
- ],
24
- parse: (raw) => {
25
- const id = String(raw.args.id ?? "");
26
- const [recipeId, scenarioId] = id.split(":", 2);
27
- if (!recipeId || !scenarioId) {
28
- throw usageError({
29
- spec: scenarioExecuteSpec,
30
- command: "recipes scenario execute",
31
- message: `Invalid scenario id: ${id} (expected: <recipe:scenario>)`,
32
- });
33
- }
34
- return { recipeId, scenarioId };
35
- },
36
- };
37
- function renderScenarioExecuteStartBody(parsed, taskId) {
38
- return (`Start: execute recipe scenario ${parsed.recipeId}:${parsed.scenarioId} through the shared runner ` +
39
- `using materialized task ${taskId} and its explicit task_template.`);
40
- }
41
- function renderScenarioExecutePlanApprovalNote(parsed) {
42
- return (`Materialized from recipe scenario ${parsed.recipeId}:${parsed.scenarioId} ` +
43
- "for immediate shared-runner execution.");
44
- }
45
- export const runScenarioExecute = async (ctx, parsed) => {
46
- try {
47
- const commandCtx = await loadCommandContext({
48
- cwd: ctx.cwd,
49
- rootOverride: ctx.rootOverride ?? null,
50
- });
51
- const materialized = await materializeRecipeScenarioTask({
52
- ctx: commandCtx,
53
- cwd: ctx.cwd,
54
- rootOverride: ctx.rootOverride ?? null,
55
- recipe_id: parsed.recipeId,
56
- scenario_id: parsed.scenarioId,
57
- });
58
- await cmdTaskPlanApprove({
59
- ctx: commandCtx,
60
- cwd: ctx.cwd,
61
- rootOverride: ctx.rootOverride ?? undefined,
62
- taskId: materialized.task_id,
63
- by: "ORCHESTRATOR",
64
- note: renderScenarioExecutePlanApprovalNote(parsed),
65
- });
66
- await cmdTaskStartReady({
67
- ctx: commandCtx,
68
- cwd: ctx.cwd,
69
- rootOverride: ctx.rootOverride ?? undefined,
70
- taskId: materialized.task_id,
71
- author: materialized.task.owner,
72
- body: renderScenarioExecuteStartBody(parsed, materialized.task_id),
73
- force: false,
74
- yes: false,
75
- quiet: true,
76
- });
77
- const executed = await executeTaskRunnerExecution({
78
- ctx: commandCtx,
79
- cwd: ctx.cwd,
80
- rootOverride: ctx.rootOverride ?? null,
81
- task_id: materialized.task_id,
82
- run_id: materialized.run_id,
83
- recipe: materialized.recipe_context,
84
- target: {
85
- kind: "recipe_scenario",
86
- recipe_id: parsed.recipeId,
87
- scenario_id: parsed.scenarioId,
88
- task_id: materialized.task_id,
89
- },
90
- });
91
- output.info(`scenario executed: ${parsed.recipeId}:${parsed.scenarioId}`);
92
- output.line(`task_id: ${materialized.task_id}`);
93
- output.line(`run_id: ${executed.invocation.run_id}`);
94
- output.line(`state: ${executed.bundle.execution.artifact_paths.state_path}`);
95
- output.line(`events: ${executed.bundle.execution.artifact_paths.events_path}`);
96
- output.line(`status: ${executed.result.status}`);
97
- output.line(`runner_exit_code: ${executed.result.exit_code ?? "null"}`);
98
- if (executed.result.stdout_summary) {
99
- output.line(`stdout: ${executed.result.stdout_summary}`);
100
- }
101
- if (executed.result.stderr_summary) {
102
- output.line(`stderr: ${executed.result.stderr_summary}`, "stderr");
103
- }
104
- return executed.result.status === "success"
105
- ? 0
106
- : (executed.result.exit_code ?? exitCodeForError("E_RUNTIME"));
107
- }
108
- catch (err) {
109
- if (err instanceof CliError)
110
- throw err;
111
- throw mapBackendError(err, {
112
- command: scenarioExecuteSpec.id.join(" "),
113
- recipe_id: parsed.recipeId,
114
- scenario_id: parsed.scenarioId,
115
- });
116
- }
117
- };
@@ -1,38 +0,0 @@
1
- type ScenarioRunGitSummary = {
2
- diff_stat?: string;
3
- staged_stat?: string;
4
- status?: string[];
5
- };
6
- export type ScenarioRunReportStep = {
7
- step: number;
8
- tool: string;
9
- runtime: string;
10
- entrypoint: string;
11
- args: string[];
12
- env_keys: string[];
13
- evidence_files: string[];
14
- missing_evidence_files?: string[];
15
- exit_code: number;
16
- duration_ms: number;
17
- };
18
- type ScenarioRunEvidenceSummary = {
19
- required: boolean;
20
- expected_files: string[];
21
- missing_steps: number[];
22
- };
23
- export declare function redactArgs(args: string[]): string[];
24
- export declare function getGitDiffSummary(cwd: string): Promise<ScenarioRunGitSummary | undefined>;
25
- export declare function collectScenarioEnvKeys(stepEnv: Record<string, string> | undefined): string[];
26
- export declare function writeScenarioReport(opts: {
27
- runDir: string;
28
- recipeId: string;
29
- scenarioId: string;
30
- runId: string;
31
- startedAt: string;
32
- status: "success" | "failed";
33
- steps: ScenarioRunReportStep[];
34
- evidence: ScenarioRunEvidenceSummary;
35
- gitSummary?: ScenarioRunGitSummary;
36
- }): Promise<void>;
37
- export {};
38
- //# sourceMappingURL=report.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"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,SAAS,GAAG,QAAQ,CAAC;IAC7B,KAAK,EAAE,qBAAqB,EAAE,CAAC;IAC/B,QAAQ,EAAE,0BAA0B,CAAC;IACrC,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACpC,GAAG,OAAO,CAAC,IAAI,CAAC,CAkBhB"}
@@ -1,97 +0,0 @@
1
- import path from "node:path";
2
- import { atomicWriteFile, runProcess } from "@agentplaneorg/core";
3
- import { dedupeStrings } from "../../../shared/strings.js";
4
- const SCENARIO_REPORT_NAME = "report.json";
5
- const SENSITIVE_ARG_FLAGS = new Set([
6
- "--token",
7
- "--secret",
8
- "--password",
9
- "--api-key",
10
- "--apikey",
11
- "--access-key",
12
- "--client-secret",
13
- "--auth",
14
- "--authorization",
15
- "--bearer",
16
- ]);
17
- export function redactArgs(args) {
18
- const out = [...args];
19
- for (let i = 0; i < out.length; i++) {
20
- const arg = out[i];
21
- if (!arg)
22
- continue;
23
- const eqIndex = arg.indexOf("=");
24
- const flag = eqIndex === -1 ? arg : arg.slice(0, eqIndex);
25
- if (!SENSITIVE_ARG_FLAGS.has(flag))
26
- continue;
27
- if (eqIndex !== -1) {
28
- out[i] = `${flag}=<redacted>`;
29
- continue;
30
- }
31
- out[i] = flag;
32
- if (i + 1 < out.length && !out[i + 1]?.startsWith("-")) {
33
- out[i + 1] = "<redacted>";
34
- i += 1;
35
- }
36
- }
37
- return out;
38
- }
39
- function isNotGitRepoError(err) {
40
- if (err instanceof Error) {
41
- return err.message.startsWith("Not a git repository");
42
- }
43
- return false;
44
- }
45
- export async function getGitDiffSummary(cwd) {
46
- try {
47
- const [diff, staged, status] = await Promise.all([
48
- runProcess({ command: "git", args: ["diff", "--stat"], cwd }),
49
- runProcess({ command: "git", args: ["diff", "--stat", "--staged"], cwd }),
50
- runProcess({ command: "git", args: ["status", "--porcelain"], cwd }),
51
- ]);
52
- const diffStat = String(diff.stdout).trim();
53
- const stagedStat = String(staged.stdout).trim();
54
- const statusLines = String(status.stdout).trim();
55
- return {
56
- diff_stat: diffStat || undefined,
57
- staged_stat: stagedStat || undefined,
58
- status: statusLines
59
- ? statusLines
60
- .split("\n")
61
- .map((line) => line.trim())
62
- .filter(Boolean)
63
- : [],
64
- };
65
- }
66
- catch (err) {
67
- if (isNotGitRepoError(err))
68
- return undefined;
69
- return undefined;
70
- }
71
- }
72
- export function collectScenarioEnvKeys(stepEnv) {
73
- return dedupeStrings([
74
- ...Object.keys(stepEnv ?? {}),
75
- "AGENTPLANE_RUN_DIR",
76
- "AGENTPLANE_STEP_DIR",
77
- "AGENTPLANE_RECIPES_CACHE_DIR",
78
- "AGENTPLANE_RECIPE_ID",
79
- "AGENTPLANE_SCENARIO_ID",
80
- "AGENTPLANE_TOOL_ID",
81
- ]);
82
- }
83
- export async function writeScenarioReport(opts) {
84
- const report = {
85
- schema_version: 1,
86
- recipe: opts.recipeId,
87
- scenario: opts.scenarioId,
88
- run_id: opts.runId,
89
- started_at: opts.startedAt,
90
- ended_at: new Date().toISOString(),
91
- status: opts.status,
92
- steps: opts.steps,
93
- evidence: opts.evidence,
94
- git: opts.gitSummary,
95
- };
96
- await atomicWriteFile(path.join(opts.runDir, SCENARIO_REPORT_NAME), `${JSON.stringify(report, null, 2)}\n`, "utf8");
97
- }
@@ -1,5 +0,0 @@
1
- import type { CommandHandler, CommandSpec } from "../../cli/spec/spec.js";
2
- import { type GroupCommandParsed } from "../../cli/group-command.js";
3
- export declare const scenarioSpec: CommandSpec<GroupCommandParsed>;
4
- export declare const runScenario: CommandHandler<GroupCommandParsed>;
5
- //# sourceMappingURL=scenario.command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scenario.command.d.ts","sourceRoot":"","sources":["../../../src/commands/scenario/scenario.command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAc,MAAM,wBAAwB,CAAC;AACtF,OAAO,EAIL,KAAK,kBAAkB,EACxB,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAM,YAAY,EAAE,WAAW,CAAC,kBAAkB,CAOxD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,cAAc,CAAC,kBAAkB,CAY1D,CAAC"}
@@ -1,19 +0,0 @@
1
- import { loadDirectSubcommandNames, parseGroupCommand, throwGroupCommandUsage, } from "../../cli/group-command.js";
2
- export const scenarioSpec = {
3
- id: ["recipes", "scenario"],
4
- group: "Recipes",
5
- summary: "Recipe scenario commands.",
6
- synopsis: ["agentplane recipes scenario <subcommand> [options]"],
7
- args: [{ name: "subcommand", required: false, variadic: true, valueHint: "<subcommand>" }],
8
- parse: (raw) => parseGroupCommand(raw, "subcommand"),
9
- };
10
- export const runScenario = async (_ctx, p) => {
11
- throwGroupCommandUsage({
12
- spec: scenarioSpec,
13
- cmd: p.cmd,
14
- subcommands: await loadDirectSubcommandNames(["recipes", "scenario"]),
15
- command: "recipes scenario",
16
- missingMessage: "Missing recipes scenario subcommand.",
17
- unknownMessage: (subcommand) => `Unknown recipes scenario subcommand: ${subcommand}.`,
18
- });
19
- };
@@ -1,2 +0,0 @@
1
- export { GitContext } from "@agentplaneorg/core";
2
- //# sourceMappingURL=git-context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"git-context.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/git-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC"}
@@ -1 +0,0 @@
1
- export { GitContext } from "@agentplaneorg/core";
@@ -1,2 +0,0 @@
1
- export { gitAheadBehind, gitDiffNames, gitDiffStat, gitShowFile, toGitPath, } from "@agentplaneorg/core";
2
- //# sourceMappingURL=git-diff.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"git-diff.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/git-diff.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,YAAY,EACZ,WAAW,EACX,WAAW,EACX,SAAS,GACV,MAAM,qBAAqB,CAAC"}
@@ -1 +0,0 @@
1
- export { gitAheadBehind, gitDiffNames, gitDiffStat, gitShowFile, toGitPath, } from "@agentplaneorg/core";
@@ -1,2 +0,0 @@
1
- export { findWorktreeForBranch, gitListBranchesByPrefixes, gitListTaskBranches, listWorktrees, parseTaskIdFromBranch, parseTaskIdFromCloseBranch, } from "@agentplaneorg/core";
2
- //# sourceMappingURL=git-worktree.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"git-worktree.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/git-worktree.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,aAAa,EACb,qBAAqB,EACrB,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC"}
@@ -1 +0,0 @@
1
- export { findWorktreeForBranch, gitListBranchesByPrefixes, gitListTaskBranches, listWorktrees, parseTaskIdFromBranch, parseTaskIdFromCloseBranch, } from "@agentplaneorg/core";