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
@@ -0,0 +1,136 @@
1
+ import { usageError } from "../../cli/spec/errors.js";
2
+ export const releaseApplySpec = {
3
+ id: ["release", "apply"],
4
+ group: "Release",
5
+ summary: "Apply a prepared direct-mode release: bump versions, validate notes, commit, and tag.",
6
+ description: "Applies a release plan generated by `agentplane release plan` on the direct release route. This command does not author release notes; it expects a DOCS agent to have written docs/releases/vX.Y.Z.md. In branch_pr repositories, use `agentplane release candidate` on a dedicated non-base branch instead.",
7
+ options: [
8
+ {
9
+ kind: "string",
10
+ name: "plan",
11
+ valueHint: "<path>",
12
+ description: "Path to a release plan directory (defaults to the latest under .agentplane/.release/plan/).",
13
+ },
14
+ {
15
+ kind: "boolean",
16
+ name: "push",
17
+ default: false,
18
+ description: "Optional direct-push mode: push the release commit and tag immediately " +
19
+ "(requires --yes). This is for the direct release route only.",
20
+ },
21
+ {
22
+ kind: "string",
23
+ name: "remote",
24
+ valueHint: "<name>",
25
+ description: "Git remote to push to (default: origin).",
26
+ },
27
+ {
28
+ kind: "boolean",
29
+ name: "yes",
30
+ default: false,
31
+ description: "Approve minor/major bumps and allow pushing. Patch bumps can be applied without this flag.",
32
+ },
33
+ ],
34
+ parse: (raw) => {
35
+ return {
36
+ plan: raw.opts.plan,
37
+ push: raw.opts.push === true,
38
+ remote: raw.opts.remote ?? "origin",
39
+ yes: raw.opts.yes === true,
40
+ };
41
+ },
42
+ validate: (p) => {
43
+ if (p.push && p.yes !== true) {
44
+ throw usageError({
45
+ spec: releaseApplySpec,
46
+ command: "release apply",
47
+ message: "Option --push requires explicit approval. Re-run with --yes.",
48
+ });
49
+ }
50
+ if (!p.remote.trim()) {
51
+ throw usageError({
52
+ spec: releaseApplySpec,
53
+ command: "release apply",
54
+ message: "Option --remote must be non-empty.",
55
+ });
56
+ }
57
+ },
58
+ examples: [
59
+ {
60
+ cmd: "agentplane release apply",
61
+ why: "Apply the latest release plan locally (expects docs/releases/vX.Y.Z.md to exist).",
62
+ },
63
+ {
64
+ cmd: "agentplane release apply --plan .agentplane/.release/plan/<runId>",
65
+ why: "Apply a specific release plan directory.",
66
+ },
67
+ {
68
+ cmd: "agentplane release apply --push --yes",
69
+ why: "Apply and push the release commit+tag to the remote.",
70
+ },
71
+ ],
72
+ };
73
+ const releaseCandidateOptions = [
74
+ {
75
+ kind: "string",
76
+ name: "plan",
77
+ valueHint: "<path>",
78
+ description: "Path to a release plan directory (defaults to the latest under .agentplane/.release/plan/).",
79
+ },
80
+ {
81
+ kind: "boolean",
82
+ name: "push",
83
+ default: false,
84
+ description: "Optional candidate-push mode: push only the release candidate branch for hosted review and merge (requires --yes). The release tag is not created or pushed here.",
85
+ },
86
+ {
87
+ kind: "string",
88
+ name: "remote",
89
+ valueHint: "<name>",
90
+ description: "Git remote to push to (default: origin).",
91
+ },
92
+ {
93
+ kind: "boolean",
94
+ name: "yes",
95
+ default: false,
96
+ description: "Approve minor/major bumps and allow pushing. Patch bumps can be applied without this flag.",
97
+ },
98
+ ];
99
+ export const releaseCandidateSpec = {
100
+ id: ["release", "candidate"],
101
+ group: "Release",
102
+ summary: "Prepare a branch_pr release candidate: bump versions, validate notes, commit, and optionally push the candidate branch.",
103
+ description: "Prepares a release candidate from a generated release plan on a dedicated non-base branch in branch_pr mode. This command creates the candidate commit but intentionally does not create or push the release tag; final publication remains gated on merge to the protected base branch and hosted publish from main.",
104
+ options: releaseCandidateOptions,
105
+ parse: releaseApplySpec.parse,
106
+ validate: (p) => {
107
+ if (p.push && p.yes !== true) {
108
+ throw usageError({
109
+ spec: releaseCandidateSpec,
110
+ command: "release candidate",
111
+ message: "Option --push requires explicit approval. Re-run with --yes.",
112
+ });
113
+ }
114
+ if (!p.remote.trim()) {
115
+ throw usageError({
116
+ spec: releaseCandidateSpec,
117
+ command: "release candidate",
118
+ message: "Option --remote must be non-empty.",
119
+ });
120
+ }
121
+ },
122
+ examples: [
123
+ {
124
+ cmd: "agentplane release candidate",
125
+ why: "Prepare the latest release plan on the current branch_pr candidate branch.",
126
+ },
127
+ {
128
+ cmd: "agentplane release candidate --plan .agentplane/.release/plan/<runId>",
129
+ why: "Prepare a specific release plan on the current candidate branch.",
130
+ },
131
+ {
132
+ cmd: "agentplane release candidate --push --yes",
133
+ why: "Prepare and push only the release candidate branch for hosted review and merge.",
134
+ },
135
+ ],
136
+ };
@@ -1,4 +1,4 @@
1
- import type { ResolvedProject } from "@agentplaneorg/core";
1
+ import type { ResolvedProject } from "@agentplaneorg/core/project";
2
2
  export type BumpKind = "patch" | "minor" | "major";
3
3
  export type ReleaseApplyFlags = {
4
4
  plan?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"apply.types.d.ts","sourceRoot":"","sources":["../../../src/commands/release/apply.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAEnD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,OAAO,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;AAEnD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,gBAAgB,GAAG,mBAAmB,CAAC;IAC7C,aAAa,EAAE,QAAQ,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AAI,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;CAClF,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,eAAe,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,kBAAkB,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,iBAAiB,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,aAAa,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,CAAC,IAAI,EAAE;IAC/C,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;CACvB,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC"}
@@ -1,12 +1,5 @@
1
- import type { CommandHandler, CommandSpec } from "../../cli/spec/spec.js";
2
- type BumpKind = "patch" | "minor" | "major";
3
- export type ReleasePlanFlags = {
4
- bump: BumpKind;
5
- since?: string;
6
- yes: boolean;
7
- };
8
- export type ReleasePlanParsed = ReleasePlanFlags;
9
- export declare const releasePlanSpec: CommandSpec<ReleasePlanParsed>;
1
+ import type { CommandHandler } from "../../cli/spec/spec.js";
2
+ import type { ReleasePlanParsed } from "./plan.spec.js";
3
+ export { releasePlanSpec } from "./plan.spec.js";
10
4
  export declare const runReleasePlan: CommandHandler<ReleasePlanParsed>;
11
- export {};
12
5
  //# sourceMappingURL=plan.command.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plan.command.d.ts","sourceRoot":"","sources":["../../../src/commands/release/plan.command.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAO1E,KAAK,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAE5C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,OAAO,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC;AAkLjD,eAAO,MAAM,eAAe,EAAE,WAAW,CAAC,iBAAiB,CA4E1D,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,cAAc,CAAC,iBAAiB,CAiF5D,CAAC"}
1
+ {"version":3,"file":"plan.command.d.ts","sourceRoot":"","sources":["../../../src/commands/release/plan.command.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAK7D,OAAO,KAAK,EAAY,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAGlE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAkLjD,eAAO,MAAM,cAAc,EAAE,cAAc,CAAC,iBAAiB,CAiF5D,CAAC"}
@@ -1,12 +1,13 @@
1
1
  import { mkdir, readFile, writeFile } from "node:fs/promises";
2
2
  import path from "node:path";
3
- import { resolveProject } from "@agentplaneorg/core";
3
+ import { resolveProject } from "@agentplaneorg/core/project";
4
4
  import { createCliEmitter } from "../../cli/output.js";
5
- import { usageError } from "../../cli/spec/errors.js";
6
5
  import { exitCodeForError } from "../../cli/exit-codes.js";
7
6
  import { CliError } from "../../shared/errors.js";
8
- import { execFileAsync, gitEnv } from "../shared/git.js";
7
+ import { execFileAsync } from "@agentplaneorg/core/process";
8
+ import { gitEnv } from "@agentplaneorg/core/git";
9
9
  const output = createCliEmitter();
10
+ export { releasePlanSpec } from "./plan.spec.js";
10
11
  function parseSemver(version) {
11
12
  const m = /^(\d+)\.(\d+)\.(\d+)$/u.exec(version.trim());
12
13
  if (!m)
@@ -154,81 +155,6 @@ function releaseInstructions(opts) {
154
155
  `Inputs:\n` +
155
156
  `- \`changes.md\` and \`changes.json\` in this directory.\n`);
156
157
  }
157
- export const releasePlanSpec = {
158
- id: ["release", "plan"],
159
- group: "Release",
160
- summary: "Generate an agent-assisted release plan (changes list + next patch version).",
161
- description: "Generates a structured changes list since the last semver tag and writes a plan directory under .agentplane/.release/. This plan is intended for a DOCS agent to author release notes. By default, only patch bumps are allowed without explicit approval.",
162
- options: [
163
- {
164
- kind: "boolean",
165
- name: "patch",
166
- default: false,
167
- description: "Bump patch version (default).",
168
- },
169
- {
170
- kind: "boolean",
171
- name: "minor",
172
- default: false,
173
- description: "Bump minor version (requires --yes).",
174
- },
175
- {
176
- kind: "boolean",
177
- name: "major",
178
- default: false,
179
- description: "Bump major version (requires --yes).",
180
- },
181
- {
182
- kind: "string",
183
- name: "since",
184
- valueHint: "<tag>",
185
- description: "Override the starting tag/ref (defaults to the latest vX.Y.Z tag).",
186
- },
187
- {
188
- kind: "boolean",
189
- name: "yes",
190
- default: false,
191
- description: "Approve minor/major version bumps (required for --minor/--major).",
192
- },
193
- ],
194
- validateRaw: (raw) => {
195
- const count = [
196
- raw.opts.patch === true,
197
- raw.opts.minor === true,
198
- raw.opts.major === true,
199
- ].filter(Boolean).length;
200
- if (count > 1) {
201
- throw usageError({
202
- spec: releasePlanSpec,
203
- command: "release plan",
204
- message: "Options --patch/--minor/--major are mutually exclusive.",
205
- });
206
- }
207
- },
208
- parse: (raw) => {
209
- const bump = raw.opts.major === true ? "major" : raw.opts.minor === true ? "minor" : "patch";
210
- return { bump, since: raw.opts.since, yes: raw.opts.yes === true };
211
- },
212
- validate: (p) => {
213
- if ((p.bump === "minor" || p.bump === "major") && p.yes !== true) {
214
- throw usageError({
215
- spec: releasePlanSpec,
216
- command: "release plan",
217
- message: `Bump '${p.bump}' requires explicit approval. Re-run with --yes.`,
218
- });
219
- }
220
- },
221
- examples: [
222
- {
223
- cmd: "agentplane release plan",
224
- why: "Generate a plan for the next patch release and hand it to a DOCS agent to write release notes.",
225
- },
226
- {
227
- cmd: "agentplane release plan --minor --yes",
228
- why: "Generate a plan for the next minor release (explicit approval required).",
229
- },
230
- ],
231
- };
232
158
  export const runReleasePlan = async (ctx, flags) => {
233
159
  const resolved = await resolveProject({ cwd: ctx.cwd, rootOverride: ctx.rootOverride ?? null });
234
160
  const gitRoot = resolved.gitRoot;
@@ -0,0 +1,10 @@
1
+ import type { CommandSpec } from "../../cli/spec/spec.js";
2
+ export type BumpKind = "patch" | "minor" | "major";
3
+ export type ReleasePlanFlags = {
4
+ bump: BumpKind;
5
+ since?: string;
6
+ yes: boolean;
7
+ };
8
+ export type ReleasePlanParsed = ReleasePlanFlags;
9
+ export declare const releasePlanSpec: CommandSpec<ReleasePlanParsed>;
10
+ //# sourceMappingURL=plan.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plan.spec.d.ts","sourceRoot":"","sources":["../../../src/commands/release/plan.spec.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAEnD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,OAAO,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC;AAEjD,eAAO,MAAM,eAAe,EAAE,WAAW,CAAC,iBAAiB,CA4E1D,CAAC"}
@@ -0,0 +1,76 @@
1
+ import { usageError } from "../../cli/spec/errors.js";
2
+ export const releasePlanSpec = {
3
+ id: ["release", "plan"],
4
+ group: "Release",
5
+ summary: "Generate an agent-assisted release plan (changes list + next patch version).",
6
+ description: "Generates a structured changes list since the last semver tag and writes a plan directory under .agentplane/.release/. This plan is intended for a DOCS agent to author release notes. By default, only patch bumps are allowed without explicit approval.",
7
+ options: [
8
+ {
9
+ kind: "boolean",
10
+ name: "patch",
11
+ default: false,
12
+ description: "Bump patch version (default).",
13
+ },
14
+ {
15
+ kind: "boolean",
16
+ name: "minor",
17
+ default: false,
18
+ description: "Bump minor version (requires --yes).",
19
+ },
20
+ {
21
+ kind: "boolean",
22
+ name: "major",
23
+ default: false,
24
+ description: "Bump major version (requires --yes).",
25
+ },
26
+ {
27
+ kind: "string",
28
+ name: "since",
29
+ valueHint: "<tag>",
30
+ description: "Override the starting tag/ref (defaults to the latest vX.Y.Z tag).",
31
+ },
32
+ {
33
+ kind: "boolean",
34
+ name: "yes",
35
+ default: false,
36
+ description: "Approve minor/major version bumps (required for --minor/--major).",
37
+ },
38
+ ],
39
+ validateRaw: (raw) => {
40
+ const count = [
41
+ raw.opts.patch === true,
42
+ raw.opts.minor === true,
43
+ raw.opts.major === true,
44
+ ].filter(Boolean).length;
45
+ if (count > 1) {
46
+ throw usageError({
47
+ spec: releasePlanSpec,
48
+ command: "release plan",
49
+ message: "Options --patch/--minor/--major are mutually exclusive.",
50
+ });
51
+ }
52
+ },
53
+ parse: (raw) => {
54
+ const bump = raw.opts.major === true ? "major" : raw.opts.minor === true ? "minor" : "patch";
55
+ return { bump, since: raw.opts.since, yes: raw.opts.yes === true };
56
+ },
57
+ validate: (p) => {
58
+ if ((p.bump === "minor" || p.bump === "major") && p.yes !== true) {
59
+ throw usageError({
60
+ spec: releasePlanSpec,
61
+ command: "release plan",
62
+ message: `Bump '${p.bump}' requires explicit approval. Re-run with --yes.`,
63
+ });
64
+ }
65
+ },
66
+ examples: [
67
+ {
68
+ cmd: "agentplane release plan",
69
+ why: "Generate a plan for the next patch release and hand it to a DOCS agent to write release notes.",
70
+ },
71
+ {
72
+ cmd: "agentplane release plan --minor --yes",
73
+ why: "Generate a plan for the next minor release (explicit approval required).",
74
+ },
75
+ ],
76
+ };
@@ -1,7 +1,8 @@
1
- import type { CommandHandler, CommandSpec } from "../cli/spec/spec.js";
1
+ import type { CommandHandler } from "../cli/spec/spec.js";
2
2
  import { type GroupCommandParsed } from "../cli/group-command.js";
3
3
  import { type RepoCliVersionExpectation } from "../runtime/shared/repo-cli-version.js";
4
4
  import { type RuntimeSourceInfo } from "../runtime/shared/runtime-source.js";
5
+ import { type RuntimeExplainParsed } from "./runtime.spec.js";
5
6
  export type FrameworkDevWorkflow = {
6
7
  available: boolean;
7
8
  bootstrapCommand: string;
@@ -16,11 +17,7 @@ export type RuntimeExplainPayload = RuntimeSourceInfo & {
16
17
  frameworkDev: FrameworkDevWorkflow;
17
18
  repoCliExpectation: RepoCliVersionExpectation;
18
19
  };
19
- export type RuntimeExplainParsed = {
20
- json: boolean;
21
- };
22
- export declare const runtimeSpec: CommandSpec<GroupCommandParsed>;
23
- export declare const runtimeExplainSpec: CommandSpec<RuntimeExplainParsed>;
20
+ export { runtimeExplainSpec, runtimeSpec } from "./runtime.spec.js";
24
21
  export declare function buildFrameworkDevWorkflow(report: RuntimeSourceInfo): FrameworkDevWorkflow;
25
22
  export declare function renderRuntimeExplainText(report: RuntimeSourceInfo, repoCliExpectation: RepoCliVersionExpectation): string;
26
23
  export declare const runRuntime: CommandHandler<GroupCommandParsed>;
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.command.d.ts","sourceRoot":"","sources":["../../src/commands/runtime.command.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAIL,KAAK,kBAAkB,EACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,uCAAuC,CAAC;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AEL,KAAK,yBAAyB,EAC/B,MAAM,uCAAuC,CAAC;AAS/C,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAe,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAI3E,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,EAAE,OAAO,CAAC;IACnB,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,GAAG;IACtD,YAAY,EAAE,oBAAoB,CAAC;IACnC,kBAAkB,EAAE,yBAAyB,CAAC;CAC/C,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAMpE,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,iBAAiB,GAAG,oBAAoB,CAkCzF;AAgBD,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,iBAAiB,EACzB,kBAAkB,EAAE,yBAAyB,GAC5C,MAAM,CA+CR;AAyBD,eAAO,MAAM,UAAU,EAAE,cAAc,CAAC,kBAAkB,CAQzD,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAC,oBAAoB,CAkBlE,CAAC"}
@@ -1,40 +1,13 @@
1
- import { loadConfig, resolveProject } from "@agentplaneorg/core";
1
+ import { loadConfig } from "@agentplaneorg/core/config";
2
+ import { resolveProject } from "@agentplaneorg/core/project";
2
3
  import { createCliEmitter } from "../cli/output.js";
3
- import { loadDirectSubcommandNames, parseGroupCommand, throwGroupCommandUsage, } from "../cli/group-command.js";
4
+ import { loadDirectSubcommandNames, throwGroupCommandUsage, } from "../cli/group-command.js";
4
5
  import { evaluateRepoCliVersionExpectation, } from "../runtime/shared/repo-cli-version.js";
5
6
  import { FRAMEWORK_DEV_BOOTSTRAP_COMMAND, FRAMEWORK_DEV_FORCE_GLOBAL_EXAMPLE, FRAMEWORK_DEV_GLOBAL_VERIFY_COMMAND, FRAMEWORK_DEV_MANUAL_REPAIR_COMMANDS, FRAMEWORK_DEV_REINSTALL_SCRIPT, FRAMEWORK_DEV_REPO_LOCAL_VERIFY_COMMAND, } from "../../bin/framework-dev-contract.js";
6
7
  import { describeRuntimeMode, resolveRuntimeSourceInfo, } from "../runtime/shared/runtime-source.js";
8
+ import { runtimeSpec } from "./runtime.spec.js";
7
9
  const output = createCliEmitter();
8
- export const runtimeSpec = {
9
- id: ["runtime"],
10
- group: "Diagnostics",
11
- summary: "Inspect which agentplane runtime/binary/package sources are active.",
12
- synopsis: ["agentplane runtime <explain> [options]"],
13
- args: [{ name: "cmd", required: false, variadic: true, valueHint: "<cmd>" }],
14
- examples: [{ cmd: "agentplane runtime explain", why: "Show active runtime details." }],
15
- parse: (raw) => parseGroupCommand(raw),
16
- };
17
- export const runtimeExplainSpec = {
18
- id: ["runtime", "explain"],
19
- group: "Diagnostics",
20
- summary: "Explain the active binary, runtime mode, and resolved package roots.",
21
- options: [
22
- {
23
- kind: "boolean",
24
- name: "json",
25
- default: false,
26
- description: "Emit machine-readable runtime details.",
27
- },
28
- ],
29
- examples: [
30
- { cmd: "agentplane runtime explain", why: "Show the active runtime as readable text." },
31
- {
32
- cmd: "agentplane runtime explain --json",
33
- why: "Show runtime details for scripts and diagnostics tooling.",
34
- },
35
- ],
36
- parse: (raw) => ({ json: raw.opts.json === true }),
37
- };
10
+ export { runtimeExplainSpec, runtimeSpec } from "./runtime.spec.js";
38
11
  function renderPath(value) {
39
12
  return value ?? "unresolved";
40
13
  }
@@ -0,0 +1,8 @@
1
+ import { type GroupCommandParsed } from "../cli/group-command.js";
2
+ import type { CommandSpec } from "../cli/spec/spec.js";
3
+ export type RuntimeExplainParsed = {
4
+ json: boolean;
5
+ };
6
+ export declare const runtimeSpec: CommandSpec<GroupCommandParsed>;
7
+ export declare const runtimeExplainSpec: CommandSpec<RuntimeExplainParsed>;
8
+ //# sourceMappingURL=runtime.spec.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime.spec.d.ts","sourceRoot":"","sources":["../../src/commands/runtime.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,MAAM,oBAAoB,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC;AAErD,eAAO,MAAM,WAAW,EAAE,WAAW,CAAC,kBAAkB,CAQvD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAAC,oBAAoB,CAoBhE,CAAC"}
@@ -0,0 +1,31 @@
1
+ import { parseGroupCommand } from "../cli/group-command.js";
2
+ export const runtimeSpec = {
3
+ id: ["runtime"],
4
+ group: "Diagnostics",
5
+ summary: "Inspect which agentplane runtime/binary/package sources are active.",
6
+ synopsis: ["agentplane runtime <explain> [options]"],
7
+ args: [{ name: "cmd", required: false, variadic: true, valueHint: "<cmd>" }],
8
+ examples: [{ cmd: "agentplane runtime explain", why: "Show active runtime details." }],
9
+ parse: (raw) => parseGroupCommand(raw),
10
+ };
11
+ export const runtimeExplainSpec = {
12
+ id: ["runtime", "explain"],
13
+ group: "Diagnostics",
14
+ summary: "Explain the active binary, runtime mode, and resolved package roots.",
15
+ options: [
16
+ {
17
+ kind: "boolean",
18
+ name: "json",
19
+ default: false,
20
+ description: "Emit machine-readable runtime details.",
21
+ },
22
+ ],
23
+ examples: [
24
+ { cmd: "agentplane runtime explain", why: "Show the active runtime as readable text." },
25
+ {
26
+ cmd: "agentplane runtime explain --json",
27
+ why: "Show runtime details for scripts and diagnostics tooling.",
28
+ },
29
+ ],
30
+ parse: (raw) => ({ json: raw.opts.json === true }),
31
+ };
@@ -1,4 +1,4 @@
1
- import { resolveProject } from "@agentplaneorg/core";
1
+ import { resolveProject } from "@agentplaneorg/core/project";
2
2
  type RecipeToolRuntime = "node" | "bash";
3
3
  type RecipeToolInvocation = {
4
4
  command: string;
@@ -1 +1 @@
1
- {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../src/commands/scenario/impl/commands.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAoC,MAAM,qBAAqB,CAAC;AAiBvF,KAAK,iBAAiB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzC,KAAK,oBAAoB,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;AA0MF,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,iBAAiB,EAC1B,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,MAAM,EAAE,GACb,oBAAoB,CAGtB;AAED,wBAAsB,qBAAqB,CAAC,IAAI,EAAE;IAChD,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,OAAO,CAAC,MAAM,CAAC,CA4BlB;AAED,wBAAsB,qBAAqB,CAAC,IAAI,EAAE;IAChD,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB,GAAG,OAAO,CAAC,MAAM,CAAC,CAqClB;AAED,wBAAsB,iBAAiB,CAAC,IAAI,EAAE;IAC5C,OAAO,EAAE,iBAAiB,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM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AAsB,iBAAiB,CAAC,IAAI,EAAE;IAC5C,OAAO,EAAE,iBAAiB,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC7B,GAAG,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CA6ChE;AAED,wBAAsB,oBAAoB,CAAC,IAAI,EAAE;IAC/C,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC;CACvD,GAAG,OAAO,CAAC,MAAM,CAAC,CAuClB"}
@@ -1,5 +1,6 @@
1
1
  import path from "node:path";
2
- import { resolveProject, runProcess } from "@agentplaneorg/core";
2
+ import { resolveProject } from "@agentplaneorg/core/project";
3
+ import { runProcess } from "@agentplaneorg/core/process";
3
4
  import { mapCoreError } from "../../../cli/error-map.js";
4
5
  import { exitCodeForError } from "../../../cli/exit-codes.js";
5
6
  import { fileExists } from "../../../cli/fs-utils.js";
@@ -1,4 +1,4 @@
1
- import type { AgentplaneConfig } from "@agentplaneorg/core";
1
+ import type { AgentplaneConfig } from "@agentplaneorg/core/config";
2
2
  import type { PolicyActionId, PolicyApprovalKind } from "../../policy/taxonomy.js";
3
3
  import { type ApprovalRequirement } from "../../runtime/approvals/index.js";
4
4
  export type ApprovalAction = PolicyApprovalKind;
@@ -1 +1 @@
1
- {"version":3,"file":"approval-requirements.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/approval-requirements.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnF,OAAO,EAAyB,KAAK,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEnG,MAAM,MAAM,cAAc,GAAG,kBAAkB,CAAC;AAEhD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE;IAC5C,MAAM,EAAE,gBAAgB,CAAC;IACzB,MAAM,EAAE,cAAc,CAAC;CACxB,GAAG,mBAAmB,CAEtB;AAED,wBAAsB,oBAAoB,CAAC,IAAI,EAAE;IAC/C,MAAM,EAAE,cAAc,CAAC;IACvB,MAAM,EAAE,gBAAgB,CAAC;IACzB,GAAG,EAAE,OAAO,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,OAAO,CAAC,IAAI,CAAC,CAEhB"}
1
+ {"version":3,"file":"approval-requirements.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/approval-requirements.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnF,OAAO,EAAyB,KAAK,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEnG,MAAM,MAAM,cAAc,GAAG,kBAAkB,CAAC;AAEhD,wBAAgB,uBAAuB,CAAC,IAAI,EAAE;IAC5C,MAAM,EAAE,gBAAgB,CAAC;IACzB,MAAM,EAAE,cAAc,CAAC;CACxB,GAAG,mBAAmB,CAEtB;AAED,wBAAsB,oBAAoB,CAAC,IAAI,EAAE;IAC/C,MAAM,EAAE,cAAc,CAAC;IACvB,MAAM,EAAE,gBAAgB,CAAC;IACzB,GAAG,EAAE,OAAO,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,OAAO,CAAC,IAAI,CAAC,CAEhB"}
@@ -1,4 +1,4 @@
1
- import { type AgentplaneConfig } from "@agentplaneorg/core";
1
+ import type { AgentplaneConfig } from "@agentplaneorg/core/config";
2
2
  export declare function normalizeCommentBodyForCommit(body: string): string;
3
3
  export declare function splitSummaryAndDetails(text: string): {
4
4
  summary: string;
@@ -1 +1 @@
1
- {"version":3,"file":"comment-format.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/comment-format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAI5D,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAIlE;AAiCD,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAwB3F;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAgBzF"}
1
+ {"version":3,"file":"comment-format.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/comment-format.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAInE,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAIlE;AAiCD,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAwB3F;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAgBzF"}
@@ -1,4 +1,4 @@
1
- export { gitBranchExists, gitBranchUpstream, gitCurrentBranch, gitIsAncestor, gitListBranches, gitRevParse, gitAddPaths, gitCommit, gitInitRepo, gitStagedPaths, resolveInitBaseBranch, } from "@agentplaneorg/core";
1
+ export { gitBranchExists, gitBranchUpstream, gitCurrentBranch, gitIsAncestor, gitListBranches, gitRevParse, gitAddPaths, gitCommit, gitInitRepo, gitStagedPaths, resolveInitBaseBranch, } from "@agentplaneorg/core/git";
2
2
  export declare function promptInitBaseBranch(opts: {
3
3
  gitRoot: string;
4
4
  fallback: string;
@@ -1 +1 @@
1
- {"version":3,"file":"git-ops.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/git-ops.ts"],"names":[],"mappings":"AAeA,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,WAAW,EACX,WAAW,EACX,SAAS,EACT,WAAW,EACX,cAAc,EACd,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAE7B,wBAAsB,oBAAoB,CAAC,IAAI,EAAE;IAC/C,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,OAAO,CAAC,MAAM,CAAC,CAiDlB;AAED,wBAAsB,gBAAgB,CAAC,IAAI,EAAE;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;CACpB,GAAG,OAAO,CAAC,IAAI,CAAC,CAyChB"}
1
+ {"version":3,"file":"git-ops.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/git-ops.ts"],"names":[],"mappings":"AAeA,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,WAAW,EACX,WAAW,EACX,SAAS,EACT,WAAW,EACX,cAAc,EACd,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AAEjC,wBAAsB,oBAAoB,CAAC,IAAI,EAAE;IAC/C,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,OAAO,CAAC,MAAM,CAAC,CAiDlB;AAED,wBAAsB,gBAAgB,CAAC,IAAI,EAAE;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;CACpB,GAAG,OAAO,CAAC,IAAI,CAAC,CAyChB"}
@@ -1,9 +1,10 @@
1
- import { execFileAsync, gitBranchExists, gitCurrentBranch, gitAddPaths, gitCommit, gitListBranches, gitEnv, gitStagedPaths, setPinnedBaseBranch, } from "@agentplaneorg/core";
1
+ import { execFileAsync } from "@agentplaneorg/core/process";
2
+ import { gitBranchExists, gitCurrentBranch, gitAddPaths, gitCommit, gitListBranches, gitEnv, gitStagedPaths, setPinnedBaseBranch, } from "@agentplaneorg/core/git";
2
3
  import { exitCodeForError } from "../../cli/exit-codes.js";
3
4
  import { promptChoice, promptInput } from "../../cli/prompts.js";
4
5
  import { CliError } from "../../shared/errors.js";
5
6
  import { emitTraceEvent } from "../../shared/trace-events.js";
6
- export { gitBranchExists, gitBranchUpstream, gitCurrentBranch, gitIsAncestor, gitListBranches, gitRevParse, gitAddPaths, gitCommit, gitInitRepo, gitStagedPaths, resolveInitBaseBranch, } from "@agentplaneorg/core";
7
+ export { gitBranchExists, gitBranchUpstream, gitCurrentBranch, gitIsAncestor, gitListBranches, gitRevParse, gitAddPaths, gitCommit, gitInitRepo, gitStagedPaths, resolveInitBaseBranch, } from "@agentplaneorg/core/git";
7
8
  export async function promptInitBaseBranch(opts) {
8
9
  const branches = await gitListBranches(opts.gitRoot);
9
10
  let current = null;
@@ -1,6 +1,6 @@
1
- import { execFileAsync, gitEnv } from "./git.js";
1
+ import { execFileAsync } from "@agentplaneorg/core/process";
2
+ import { gitEnv, findWorktreeForBranch } from "@agentplaneorg/core/git";
2
3
  import { gitBranchExists } from "./git-ops.js";
3
- import { findWorktreeForBranch } from "./git-worktree.js";
4
4
  import { isPathWithin, resolvePathFallback } from "./path.js";
5
5
  export async function cleanupMergedLocalBranch(opts) {
6
6
  const repoRoot = await resolvePathFallback(opts.gitRoot);
@@ -1,4 +1,4 @@
1
- import type { AgentplaneConfig } from "@agentplaneorg/core";
1
+ import type { AgentplaneConfig } from "@agentplaneorg/core/config";
2
2
  import type { PolicyActionId } from "../../policy/taxonomy.js";
3
3
  export declare function ensureNetworkApproved(opts: {
4
4
  action?: PolicyActionId;
@@ -1 +1 @@
1
- {"version":3,"file":"network-approval.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/network-approval.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG/D,wBAAsB,qBAAqB,CAAC,IAAI,EAAE;IAChD,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE,gBAAgB,CAAC;IACzB,GAAG,EAAE,OAAO,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,OAAO,CAAC,IAAI,CAAC,CAQhB"}
1
+ {"version":3,"file":"network-approval.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/network-approval.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG/D,wBAAsB,qBAAqB,CAAC,IAAI,EAAE;IAChD,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE,gBAAgB,CAAC;IACzB,GAAG,EAAE,OAAO,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG,OAAO,CAAC,IAAI,CAAC,CAQhB"}
@@ -1 +1 @@
1
- {"version":3,"file":"post-commit-pr-artifacts.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/post-commit-pr-artifacts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AA2BhE,wBAAsB,uCAAuC,CAAC,IAAI,EAAE;IAClE,GAAG,EAAE,cAAc,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;CAChB,GAAG,OAAO,CAAC,IAAI,CAAC,CAmChB"}
1
+ {"version":3,"file":"post-commit-pr-artifacts.d.ts","sourceRoot":"","sources":["../../../src/commands/shared/post-commit-pr-artifacts.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AA2BhE,wBAAsB,uCAAuC,CAAC,IAAI,EAAE;IAClE,GAAG,EAAE,cAAc,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;CAChB,GAAG,OAAO,CAAC,IAAI,CAAC,CAmChB"}
@@ -1,6 +1,7 @@
1
1
  import { warnMessage } from "../../cli/output.js";
2
2
  import { normalizeGhTransportError } from "../shared/gh-transport.js";
3
- import { execFileAsync, gitEnv } from "../shared/git.js";
3
+ import { execFileAsync } from "@agentplaneorg/core/process";
4
+ import { gitEnv } from "@agentplaneorg/core/git";
4
5
  import { ensurePrArtifactsSynced } from "../pr/internal/sync.js";
5
6
  import { isTaskLocalOnlyAdvance } from "./task-local-freshness.js";
6
7
  function isUnknownRevisionError(err) {
@@ -1,4 +1,4 @@
1
- import { type TaskPrMeta } from "@agentplaneorg/core";
1
+ import type { TaskPrMeta } from "@agentplaneorg/core/schemas";
2
2
  export type PrMeta = TaskPrMeta;
3
3
  export type ObservedGithubPrState = {
4
4
  prNumber: number;