@cleocode/cleo 2026.10.17 → 2026.10.18

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 (169) hide show
  1. package/bin/cleo.js +1 -1
  2. package/dist/cli/{adapter-NFEXDAM4.js → adapter-EB4BRBBY.js} +3 -3
  3. package/dist/cli/{add-UDOOG4AU.js → add-DDZZZVZD.js} +3 -3
  4. package/dist/cli/{add-batch-IGOQQOZV.js → add-batch-MN72KL5M.js} +3 -3
  5. package/dist/cli/{admin-7KJBA7PX.js → admin-HCXAR5VU.js} +3 -3
  6. package/dist/cli/{admin-N6Z2RFMF.js → admin-WZKECA5L.js} +3 -3
  7. package/dist/cli/{adr-DXH3PLJR.js → adr-OY7XITY5.js} +3 -3
  8. package/dist/cli/{analyze-36EZZ3YO.js → analyze-SYWVYGEV.js} +3 -3
  9. package/dist/cli/{archive-6NR5FTUW.js → archive-PXSIAUOZ.js} +3 -3
  10. package/dist/cli/{archive-stats-7F2OSQ6G.js → archive-stats-Q6IFJBPS.js} +3 -3
  11. package/dist/cli/{attention-QT3HJRQW.js → attention-SU5P25FZ.js} +3 -3
  12. package/dist/cli/{backup-56CHTAOL.js → backup-STSELIGS.js} +3 -3
  13. package/dist/cli/{blockers-PIZF57WG.js → blockers-UGZUMSKM.js} +3 -3
  14. package/dist/cli/{briefing-F4Q7G2LH.js → briefing-ZU7YZO3U.js} +3 -3
  15. package/dist/cli/{cancel-NV64DQT7.js → cancel-CYOH7BAE.js} +3 -3
  16. package/dist/cli/{check-W6AADKHX.js → check-GHJEH437.js} +2 -2
  17. package/dist/cli/{check-BW5DKLFZ.js → check-ZQYL6AU6.js} +3 -3
  18. package/dist/cli/{chunk-2RL7GFKZ.js → chunk-EELKU7NB.js} +10 -8
  19. package/dist/cli/{chunk-OXUJQVKJ.js → chunk-QC3IIDLX.js} +11 -11
  20. package/dist/cli/{chunk-JI744XW5.js → chunk-RGTIBYCQ.js} +2 -2
  21. package/dist/cli/{claim-W6JIUGXQ.js → claim-PWJB26MI.js} +3 -3
  22. package/dist/cli/{cli-LI7EWET3.js → cli-WM33BIC6.js} +3 -3
  23. package/dist/cli/{complete-FWTARJFR.js → complete-YHIJOF2M.js} +4 -4
  24. package/dist/cli/{complexity-CVOK57HH.js → complexity-ZJW4Z7GN.js} +3 -3
  25. package/dist/cli/{compliance-5XBQWGW7.js → compliance-E3UJB4MT.js} +3 -3
  26. package/dist/cli/{conduit-5SECWN2H.js → conduit-4OXX7X3G.js} +3 -3
  27. package/dist/cli/{config-DSMLLH6I.js → config-2UBWE57E.js} +3 -3
  28. package/dist/cli/{consensus-LM7VMDEH.js → consensus-IISJ5EPZ.js} +3 -3
  29. package/dist/cli/{context-MEMBPGJ6.js → context-B2OJ7LT4.js} +3 -3
  30. package/dist/cli/{contribution-SNI3BKKP.js → contribution-6VY4DLBS.js} +3 -3
  31. package/dist/cli/{current-3P2XGTZX.js → current-FPR6MQ4P.js} +3 -3
  32. package/dist/cli/{daemon-W64KHT6N.js → daemon-AADB5Z35.js} +3 -3
  33. package/dist/cli/{dash-EJNTGOL6.js → dash-3V2SUXOG.js} +3 -3
  34. package/dist/cli/{decompose-P2PDU72A.js → decompose-V472J22B.js} +3 -3
  35. package/dist/cli/{decomposition-47MX322I.js → decomposition-CZRX4FZD.js} +3 -3
  36. package/dist/cli/{delete-YLDYF6RD.js → delete-TTWHW6JX.js} +3 -3
  37. package/dist/cli/{deps-FFYJK6RC.js → deps-XPD5ZAHF.js} +3 -3
  38. package/dist/cli/{detect-4U4HTHEW.js → detect-YZYEVJWD.js} +3 -3
  39. package/dist/cli/{diagnostics-O2XXV7SA.js → diagnostics-QJQSNF5L.js} +3 -3
  40. package/dist/cli/{docs-DB7M5LHG.js → docs-JELVV27J.js} +2 -2
  41. package/dist/cli/{docs-Z2TQJUP2.js → docs-YG5ZMQ5F.js} +3 -3
  42. package/dist/cli/{doctor-BPTTEJJW.js → doctor-EWY4OP2V.js} +3 -3
  43. package/dist/cli/{done-OMXWIVBK.js → done-Z227ZDXQ.js} +12 -7
  44. package/dist/cli/{export-HOWCTZQW.js → export-YGDPY52V.js} +3 -3
  45. package/dist/cli/{export-tasks-WL7A6E7P.js → export-tasks-KDUKD6M6.js} +3 -3
  46. package/dist/cli/{find-GSX5Q5V7.js → find-D3KMIDFU.js} +3 -3
  47. package/dist/cli/{focus-HPSRWI2V.js → focus-ZKJTGRY5.js} +3 -3
  48. package/dist/cli/{goal-4GW4G77D.js → goal-DQHIX4HW.js} +93 -3
  49. package/dist/cli/{grade-3FB5ELFD.js → grade-U2EG6IS6.js} +3 -3
  50. package/dist/cli/{graph-MYK6YQFF.js → graph-PPTCVP7U.js} +3 -3
  51. package/dist/cli/{history-EB4D4KYI.js → history-7WBL7O35.js} +3 -3
  52. package/dist/cli/{hook-HFMCKPDG.js → hook-TQXXIWXR.js} +19 -1
  53. package/dist/cli/hook-entry.js +24 -1
  54. package/dist/cli/{import-E3GCYQHP.js → import-CQYUQJ2Q.js} +3 -3
  55. package/dist/cli/{import-tasks-SZZYFG3E.js → import-tasks-JK6BOMQ6.js} +3 -3
  56. package/dist/cli/index.js +105 -105
  57. package/dist/cli/{inject-KXYN6IMT.js → inject-A7OQWPFK.js} +3 -3
  58. package/dist/cli/{intelligence-VVKO2CD3.js → intelligence-ZDMPNMZC.js} +3 -3
  59. package/dist/cli/{issue-IJUAIS3N.js → issue-PZFXFIYP.js} +3 -3
  60. package/dist/cli/{labels-EKFCH7XJ.js → labels-OPDBIMOS.js} +3 -3
  61. package/dist/cli/{lean-N5QBMWCK.js → lean-KJPRFQ4Q.js} +25 -3
  62. package/dist/cli/{lifecycle-DE6M7PW4.js → lifecycle-PE2QVILM.js} +3 -3
  63. package/dist/cli/{list-FXAQVP2G.js → list-2GT4HHUU.js} +3 -3
  64. package/dist/cli/{llm-M2UPCKND.js → llm-ZDB66SOW.js} +3 -3
  65. package/dist/cli/{log-A4NO5C6R.js → log-SQNW2FKP.js} +3 -3
  66. package/dist/cli/{manifest-NA5AG3GY.js → manifest-I3SA3XSV.js} +3 -3
  67. package/dist/cli/{map-TWL2GD5U.js → map-AARUPEME.js} +3 -3
  68. package/dist/cli/{memory-VMUCOUWS.js → memory-DJJZHRCX.js} +2 -2
  69. package/dist/cli/{memory-S24RCQWS.js → memory-OENWJN3E.js} +3 -3
  70. package/dist/cli/{migrate-claude-mem-KSEYNQMR.js → migrate-claude-mem-A4Y6PJ6U.js} +3 -3
  71. package/dist/cli/{next-WFNFG5ZW.js → next-5OVPJMEV.js} +3 -3
  72. package/dist/cli/{nexus-OB2INM46.js → nexus-22VI2U4T.js} +3 -3
  73. package/dist/cli/{nexus-IWYILXYW.js → nexus-ZKI6NP6X.js} +2 -2
  74. package/dist/cli/{ops-B5EQF25T.js → ops-2AKJ4FJW.js} +3 -3
  75. package/dist/cli/{orchestrate-2UKLO5NY.js → orchestrate-PSMJ44IP.js} +3 -3
  76. package/dist/cli/{orchestrate-YBOIY3K3.js → orchestrate-RLR6XSDW.js} +2 -2
  77. package/dist/cli/{phase-S6NDQE76.js → phase-YRQA3DYR.js} +3 -3
  78. package/dist/cli/{pipeline-D7OPCN2Z.js → pipeline-TNTHTBVX.js} +2 -2
  79. package/dist/cli/{pivot-ELBFNWRA.js → pivot-EHYMCYO7.js} +3 -3
  80. package/dist/cli/{plan-WVESISR5.js → plan-HY26HGMF.js} +3 -3
  81. package/dist/cli/{playbook-3OHQFHOP.js → playbook-ZNMYOZEH.js} +3 -3
  82. package/dist/cli/{promote-ZSXMIDEB.js → promote-5BRIE2T4.js} +3 -3
  83. package/dist/cli/{provenance-ZZGAVMC5.js → provenance-H644NDFO.js} +3 -3
  84. package/dist/cli/{provider-KPSLSSXJ.js → provider-BJ6BNBIS.js} +3 -3
  85. package/dist/cli/{reason-PPACB54Y.js → reason-HBEO2753.js} +3 -3
  86. package/dist/cli/{reconcile-FFZWF4OI.js → reconcile-S6T5UHQN.js} +3 -3
  87. package/dist/cli/{relates-BVK76IHV.js → relates-NOSTPL4R.js} +3 -3
  88. package/dist/cli/{release-JFG257OF.js → release-OSCULE4Q.js} +3 -3
  89. package/dist/cli/{reorder-AAMVJBZE.js → reorder-X22N2FKV.js} +3 -3
  90. package/dist/cli/{reparent-AQCRESGK.js → reparent-CNM4XSPW.js} +3 -3
  91. package/dist/cli/{req-67XHW3V4.js → req-254BPPJU.js} +3 -3
  92. package/dist/cli/{research-JUAYXKVT.js → research-UG3DUDHM.js} +3 -3
  93. package/dist/cli/{restore-ZKRMBWDF.js → restore-M5P6MKE3.js} +3 -3
  94. package/dist/cli/{roadmap-7T5CQKJX.js → roadmap-M6TYY7I5.js} +3 -3
  95. package/dist/cli/{safestop-UHPN2QUM.js → safestop-N5L3XBKK.js} +3 -3
  96. package/dist/cli/{saga-S2TCK7SS.js → saga-M5UFDGZM.js} +3 -3
  97. package/dist/cli/{selfimprove-FGSYZBMY.js → selfimprove-A3XT2BHD.js} +2 -2
  98. package/dist/cli/{selfimprove-Y6NP4R4J.js → selfimprove-AGNCOXVU.js} +3 -3
  99. package/dist/cli/{sequence-5TTL4377.js → sequence-XXC2CCLF.js} +3 -3
  100. package/dist/cli/{service-V72SNIG7.js → service-ADRHYJBL.js} +3 -3
  101. package/dist/cli/{session-VI4CVLKS.js → session-6C5QVXAM.js} +2 -2
  102. package/dist/cli/{session-JD7CMIZL.js → session-IDKRJ6W4.js} +3 -3
  103. package/dist/cli/{show-O5Q5L7HL.js → show-SYSP55IB.js} +3 -3
  104. package/dist/cli/{skills-B7ITQOWV.js → skills-7SHZ4FC7.js} +3 -3
  105. package/dist/cli/{snapshot-ZSH6U6DM.js → snapshot-UNKPHSKL.js} +3 -3
  106. package/dist/cli/{start-6GXKWFBA.js → start-7WSQ4QGK.js} +3 -3
  107. package/dist/cli/{stats-HT6H7BFO.js → stats-2BYC4DHQ.js} +3 -3
  108. package/dist/cli/{sticky-XLZGKPFX.js → sticky-TTXZDPB2.js} +3 -3
  109. package/dist/cli/{stop-6D7DVI5X.js → stop-4TJ2NV7G.js} +3 -3
  110. package/dist/cli/stop-dispatch-entry-SD2OQH4F.js +175 -0
  111. package/dist/cli/{sync-YWQDFIR7.js → sync-ITL2DQTZ.js} +3 -3
  112. package/dist/cli/{tasks-NXURGHQ3.js → tasks-VEGD6UWL.js} +2 -2
  113. package/dist/cli/{tasks-OTDZSGYL.js → tasks-XZZDVJEU.js} +3 -3
  114. package/dist/cli/{testing-WQAD6X6I.js → testing-SIA74RU4.js} +3 -3
  115. package/dist/cli/{token-T27KIGLD.js → token-ERSSOPJK.js} +3 -3
  116. package/dist/cli/{update-AOCY2VK7.js → update-QRVDAUM4.js} +3 -3
  117. package/dist/cli/{verify-IR6DYFPH.js → verify-AZ4WZUCG.js} +3 -3
  118. package/dist/cli/{worktree-TUQAW3NM.js → worktree-AORS2DWF.js} +3 -3
  119. package/package.json +14 -14
  120. package/studio-dist/client/_app/immutable/chunks/{U2Kth38a.js → B2LpF4Un.js} +1 -1
  121. package/studio-dist/client/_app/immutable/chunks/{CEr9FPTj.js → BtNajhY5.js} +1 -1
  122. package/studio-dist/client/_app/immutable/chunks/{DpnaqGzz.js → CymtEX-h.js} +1 -1
  123. package/studio-dist/client/_app/immutable/chunks/o_cbWkPf.js +1 -0
  124. package/studio-dist/client/_app/immutable/entry/{app.iIbtOi1J.js → app.z7HoH3aa.js} +2 -2
  125. package/studio-dist/client/_app/immutable/entry/start.Ba7MpyOb.js +1 -0
  126. package/studio-dist/client/_app/immutable/nodes/{0.Bn5glIvI.js → 0.Cd2FPW_v.js} +1 -1
  127. package/studio-dist/client/_app/immutable/nodes/{1.BP-C6MXV.js → 1.CiQvRSyi.js} +1 -1
  128. package/studio-dist/client/_app/immutable/nodes/{15.SIV6bzqy.js → 15.DHJRLdX_.js} +1 -1
  129. package/studio-dist/client/_app/immutable/nodes/{16.DJSPz1fL.js → 16.V-OLXP78.js} +1 -1
  130. package/studio-dist/client/_app/immutable/nodes/{17.BuhsgcrS.js → 17.D6OCr9ay.js} +1 -1
  131. package/studio-dist/client/_app/immutable/nodes/{18.2CApl-xh.js → 18.D8fejEOP.js} +1 -1
  132. package/studio-dist/client/_app/immutable/nodes/{20.C0Yh0j9F.js → 20.CWDkzA-8.js} +1 -1
  133. package/studio-dist/client/_app/immutable/nodes/{24.C2ZjrYLC.js → 24.Bp5DCiL_.js} +1 -1
  134. package/studio-dist/client/_app/immutable/nodes/25.FDqhwpLG.js +39 -0
  135. package/studio-dist/client/_app/immutable/nodes/{26.BDRxZZb-.js → 26.jF5o2l_A.js} +1 -1
  136. package/studio-dist/client/_app/immutable/nodes/{3.Dyu1Mkzz.js → 3.BQOI1cnV.js} +1 -1
  137. package/studio-dist/client/_app/version.json +1 -1
  138. package/studio-dist/server/chunks/{0-azn_BNSi.js → 0-DonWUng4.js} +3 -3
  139. package/studio-dist/server/chunks/1-B4bOWYWI.js +9 -0
  140. package/studio-dist/server/chunks/{15-DHggO4kG.js → 15-TSfWXu_o.js} +3 -3
  141. package/studio-dist/server/chunks/{16-DBDtHtoF.js → 16-BO0cxoBu.js} +3 -3
  142. package/studio-dist/server/chunks/{17-BxolS6fy.js → 17-C6Se03iK.js} +3 -3
  143. package/studio-dist/server/chunks/{18-DQBaQ4u_.js → 18-DNGSK5Lj.js} +3 -3
  144. package/studio-dist/server/chunks/{20-BnBb-2tK.js → 20-CUgxt-F9.js} +3 -3
  145. package/studio-dist/server/chunks/{24-C3hjwTjp.js → 24-BAS-bXVN.js} +3 -3
  146. package/studio-dist/server/chunks/{25-CFsaSa_Z.js → 25-DfzOiH-v.js} +58 -4
  147. package/studio-dist/server/chunks/{26-Bj0eX091.js → 26-QZ0qPvXm.js} +3 -3
  148. package/studio-dist/server/chunks/{3-BySxZZfR.js → 3-C1KU7Jv5.js} +3 -3
  149. package/studio-dist/server/chunks/{_layout.svelte-Cgt2SeSG.js → _layout.svelte-CfNsm-gB.js} +4 -4
  150. package/studio-dist/server/chunks/{_page.svelte-D1pLjNVK.js → _page.svelte-B3cHMMCk.js} +3 -3
  151. package/studio-dist/server/chunks/{_page.svelte-DGoJN6j9.js → _page.svelte-BAzLdXr_.js} +5 -5
  152. package/studio-dist/server/chunks/{_page.svelte-BOfMCzaQ.js → _page.svelte-BaLy8nED.js} +3 -3
  153. package/studio-dist/server/chunks/{_page.svelte-D8OEP4Tu.js → _page.svelte-Cm7baYTO.js} +4 -4
  154. package/studio-dist/server/chunks/{_page.svelte-BpjDEpXp.js → _page.svelte-DAR7a-cL.js} +3 -3
  155. package/studio-dist/server/chunks/{_page.svelte-CGdwE0Oh.js → _page.svelte-D_YKs0-q.js} +3 -3
  156. package/studio-dist/server/chunks/{_page.svelte-DUHELc0i.js → _page.svelte-Dbwn5Vwl.js} +3 -3
  157. package/studio-dist/server/chunks/{_page.svelte-CM2ztG42.js → _page.svelte-KvLu4lkw.js} +3 -3
  158. package/studio-dist/server/chunks/{_page.svelte-OsiFT-sK.js → _page.svelte-gYvInO8m.js} +3 -3
  159. package/studio-dist/server/chunks/{_server.ts-BVDNjUg7.js → _server.ts-BYWRofhy.js} +2 -2
  160. package/studio-dist/server/chunks/{client-VRr-DXtW.js → client-Bp8Zz31o.js} +2 -2
  161. package/studio-dist/server/chunks/{error.svelte-CaKgewJE.js → error.svelte-DbOJOSFA.js} +3 -3
  162. package/studio-dist/server/chunks/{internal-nxgArn9V.js → internal-CgCkizDO.js} +2 -2
  163. package/studio-dist/server/chunks/{stores-CTb95GEE.js → stores-BYbOhDLg.js} +2 -2
  164. package/studio-dist/server/index.js +1 -1
  165. package/studio-dist/server/manifest.js +13 -13
  166. package/studio-dist/client/_app/immutable/chunks/B9LPC77c.js +0 -1
  167. package/studio-dist/client/_app/immutable/entry/start.BOWXo67i.js +0 -1
  168. package/studio-dist/client/_app/immutable/nodes/25.CX0SKezm.js +0 -39
  169. package/studio-dist/server/chunks/1-D-UzKQYN.js +0 -9
@@ -16,7 +16,7 @@
16
16
  import "./chunk-C3B7C43W.js";
17
17
  import {
18
18
  dispatchFromCli
19
- } from "./chunk-2RL7GFKZ.js";
19
+ } from "./chunk-EELKU7NB.js";
20
20
  import "./chunk-6N6WGLXE.js";
21
21
  import "./chunk-4VASFLUW.js";
22
22
  import {
@@ -30,7 +30,7 @@ import {
30
30
  } from "./chunk-4RGSNUUP.js";
31
31
  import "./chunk-6JSJNYH2.js";
32
32
  import "./chunk-D7BAQNV2.js";
33
- import "./chunk-OXUJQVKJ.js";
33
+ import "./chunk-QC3IIDLX.js";
34
34
 
35
35
  // packages/cleo/src/cli/commands/config.ts
36
36
  import { loadConfig } from "@cleocode/core/config";
@@ -516,4 +516,4 @@ var configCommand = defineCommand({
516
516
  export {
517
517
  configCommand
518
518
  };
519
- //# sourceMappingURL=config-DSMLLH6I.js.map
519
+ //# sourceMappingURL=config-2UBWE57E.js.map
@@ -15,7 +15,7 @@
15
15
  })();
16
16
  import {
17
17
  dispatchFromCli
18
- } from "./chunk-2RL7GFKZ.js";
18
+ } from "./chunk-EELKU7NB.js";
19
19
  import "./chunk-6N6WGLXE.js";
20
20
  import "./chunk-4VASFLUW.js";
21
21
  import {
@@ -26,7 +26,7 @@ import "./chunk-QKMBWYAS.js";
26
26
  import "./chunk-4RGSNUUP.js";
27
27
  import "./chunk-6JSJNYH2.js";
28
28
  import "./chunk-D7BAQNV2.js";
29
- import "./chunk-OXUJQVKJ.js";
29
+ import "./chunk-QC3IIDLX.js";
30
30
 
31
31
  // packages/cleo/src/cli/commands/consensus.ts
32
32
  var validateCommand = defineCommand({
@@ -119,4 +119,4 @@ var consensusCommand = defineCommand({
119
119
  export {
120
120
  consensusCommand
121
121
  };
122
- //# sourceMappingURL=consensus-LM7VMDEH.js.map
122
+ //# sourceMappingURL=consensus-IISJ5EPZ.js.map
@@ -17,7 +17,7 @@ import {
17
17
  dispatchFromCli,
18
18
  dispatchRaw,
19
19
  handleRawError
20
- } from "./chunk-2RL7GFKZ.js";
20
+ } from "./chunk-EELKU7NB.js";
21
21
  import "./chunk-6N6WGLXE.js";
22
22
  import "./chunk-4VASFLUW.js";
23
23
  import {
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-4RGSNUUP.js";
30
30
  import "./chunk-6JSJNYH2.js";
31
31
  import "./chunk-D7BAQNV2.js";
32
- import "./chunk-OXUJQVKJ.js";
32
+ import "./chunk-QC3IIDLX.js";
33
33
 
34
34
  // packages/cleo/src/cli/commands/context.ts
35
35
  import { ExitCode } from "@cleocode/contracts/exit-codes.js";
@@ -139,4 +139,4 @@ var contextCommand = defineCommand({
139
139
  export {
140
140
  contextCommand
141
141
  };
142
- //# sourceMappingURL=context-MEMBPGJ6.js.map
142
+ //# sourceMappingURL=context-B2OJ7LT4.js.map
@@ -15,7 +15,7 @@
15
15
  })();
16
16
  import {
17
17
  dispatchFromCli
18
- } from "./chunk-2RL7GFKZ.js";
18
+ } from "./chunk-EELKU7NB.js";
19
19
  import "./chunk-6N6WGLXE.js";
20
20
  import "./chunk-4VASFLUW.js";
21
21
  import {
@@ -26,7 +26,7 @@ import "./chunk-QKMBWYAS.js";
26
26
  import "./chunk-4RGSNUUP.js";
27
27
  import "./chunk-6JSJNYH2.js";
28
28
  import "./chunk-D7BAQNV2.js";
29
- import "./chunk-OXUJQVKJ.js";
29
+ import "./chunk-QC3IIDLX.js";
30
30
 
31
31
  // packages/cleo/src/cli/commands/contribution.ts
32
32
  var validateCommand = defineCommand({
@@ -109,4 +109,4 @@ var contributionCommand = defineCommand({
109
109
  export {
110
110
  contributionCommand
111
111
  };
112
- //# sourceMappingURL=contribution-SNI3BKKP.js.map
112
+ //# sourceMappingURL=contribution-6VY4DLBS.js.map
@@ -15,7 +15,7 @@
15
15
  })();
16
16
  import {
17
17
  dispatchFromCli
18
- } from "./chunk-2RL7GFKZ.js";
18
+ } from "./chunk-EELKU7NB.js";
19
19
  import "./chunk-6N6WGLXE.js";
20
20
  import "./chunk-4VASFLUW.js";
21
21
  import {
@@ -25,7 +25,7 @@ import "./chunk-QKMBWYAS.js";
25
25
  import "./chunk-4RGSNUUP.js";
26
26
  import "./chunk-6JSJNYH2.js";
27
27
  import "./chunk-D7BAQNV2.js";
28
- import "./chunk-OXUJQVKJ.js";
28
+ import "./chunk-QC3IIDLX.js";
29
29
 
30
30
  // packages/cleo/src/cli/commands/current.ts
31
31
  var currentCommand = defineCommand({
@@ -40,4 +40,4 @@ var currentCommand = defineCommand({
40
40
  export {
41
41
  currentCommand
42
42
  };
43
- //# sourceMappingURL=current-3P2XGTZX.js.map
43
+ //# sourceMappingURL=current-FPR6MQ4P.js.map
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-YY66LFZF.js";
22
22
  import {
23
23
  createCliGatewayHandler
24
- } from "./chunk-2RL7GFKZ.js";
24
+ } from "./chunk-EELKU7NB.js";
25
25
  import "./chunk-6N6WGLXE.js";
26
26
  import "./chunk-4VASFLUW.js";
27
27
  import {
@@ -34,7 +34,7 @@ import {
34
34
  } from "./chunk-4RGSNUUP.js";
35
35
  import "./chunk-6JSJNYH2.js";
36
36
  import "./chunk-D7BAQNV2.js";
37
- import "./chunk-OXUJQVKJ.js";
37
+ import "./chunk-QC3IIDLX.js";
38
38
 
39
39
  // packages/cleo/src/cli/commands/daemon.ts
40
40
  import { existsSync } from "node:fs";
@@ -449,4 +449,4 @@ var daemonCommand = defineCommand({
449
449
  export {
450
450
  daemonCommand
451
451
  };
452
- //# sourceMappingURL=daemon-W64KHT6N.js.map
452
+ //# sourceMappingURL=daemon-AADB5Z35.js.map
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-47JYZAMS.js";
19
19
  import {
20
20
  dispatchFromCli
21
- } from "./chunk-2RL7GFKZ.js";
21
+ } from "./chunk-EELKU7NB.js";
22
22
  import "./chunk-6N6WGLXE.js";
23
23
  import "./chunk-4VASFLUW.js";
24
24
  import {
@@ -30,7 +30,7 @@ import {
30
30
  } from "./chunk-4RGSNUUP.js";
31
31
  import "./chunk-6JSJNYH2.js";
32
32
  import "./chunk-D7BAQNV2.js";
33
- import "./chunk-OXUJQVKJ.js";
33
+ import "./chunk-QC3IIDLX.js";
34
34
 
35
35
  // packages/cleo/src/cli/commands/dash.ts
36
36
  var dashCommand = defineCommand({
@@ -68,4 +68,4 @@ var dashCommand = defineCommand({
68
68
  export {
69
69
  dashCommand
70
70
  };
71
- //# sourceMappingURL=dash-EJNTGOL6.js.map
71
+ //# sourceMappingURL=dash-3V2SUXOG.js.map
@@ -17,7 +17,7 @@ import "./chunk-C3B7C43W.js";
17
17
  import {
18
18
  dispatchRaw,
19
19
  handleRawError
20
- } from "./chunk-2RL7GFKZ.js";
20
+ } from "./chunk-EELKU7NB.js";
21
21
  import "./chunk-6N6WGLXE.js";
22
22
  import "./chunk-4VASFLUW.js";
23
23
  import {
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-4RGSNUUP.js";
30
30
  import "./chunk-6JSJNYH2.js";
31
31
  import "./chunk-D7BAQNV2.js";
32
- import "./chunk-OXUJQVKJ.js";
32
+ import "./chunk-QC3IIDLX.js";
33
33
 
34
34
  // packages/cleo/src/cli/commands/decompose.ts
35
35
  var decomposeCommand = defineCommand({
@@ -75,4 +75,4 @@ var decomposeCommand = defineCommand({
75
75
  export {
76
76
  decomposeCommand
77
77
  };
78
- //# sourceMappingURL=decompose-P2PDU72A.js.map
78
+ //# sourceMappingURL=decompose-V472J22B.js.map
@@ -15,7 +15,7 @@
15
15
  })();
16
16
  import {
17
17
  dispatchFromCli
18
- } from "./chunk-2RL7GFKZ.js";
18
+ } from "./chunk-EELKU7NB.js";
19
19
  import "./chunk-6N6WGLXE.js";
20
20
  import "./chunk-4VASFLUW.js";
21
21
  import {
@@ -26,7 +26,7 @@ import "./chunk-QKMBWYAS.js";
26
26
  import "./chunk-4RGSNUUP.js";
27
27
  import "./chunk-6JSJNYH2.js";
28
28
  import "./chunk-D7BAQNV2.js";
29
- import "./chunk-OXUJQVKJ.js";
29
+ import "./chunk-QC3IIDLX.js";
30
30
 
31
31
  // packages/cleo/src/cli/commands/decomposition.ts
32
32
  var validateCommand = defineCommand({
@@ -119,4 +119,4 @@ var decompositionCommand = defineCommand({
119
119
  export {
120
120
  decompositionCommand
121
121
  };
122
- //# sourceMappingURL=decomposition-47MX322I.js.map
122
+ //# sourceMappingURL=decomposition-CZRX4FZD.js.map
@@ -16,7 +16,7 @@
16
16
  import {
17
17
  dispatchRaw,
18
18
  handleRawError
19
- } from "./chunk-2RL7GFKZ.js";
19
+ } from "./chunk-EELKU7NB.js";
20
20
  import "./chunk-6N6WGLXE.js";
21
21
  import "./chunk-4VASFLUW.js";
22
22
  import {
@@ -28,7 +28,7 @@ import {
28
28
  } from "./chunk-4RGSNUUP.js";
29
29
  import "./chunk-6JSJNYH2.js";
30
30
  import "./chunk-D7BAQNV2.js";
31
- import "./chunk-OXUJQVKJ.js";
31
+ import "./chunk-QC3IIDLX.js";
32
32
 
33
33
  // packages/cleo/src/cli/commands/delete.ts
34
34
  var deleteCommand = defineCommand({
@@ -66,4 +66,4 @@ var deleteCommand = defineCommand({
66
66
  export {
67
67
  deleteCommand
68
68
  };
69
- //# sourceMappingURL=delete-YLDYF6RD.js.map
69
+ //# sourceMappingURL=delete-TTWHW6JX.js.map
@@ -23,7 +23,7 @@ import {
23
23
  renderLegend,
24
24
  renderSummary,
25
25
  renderTree
26
- } from "./chunk-2RL7GFKZ.js";
26
+ } from "./chunk-EELKU7NB.js";
27
27
  import "./chunk-6N6WGLXE.js";
28
28
  import "./chunk-4VASFLUW.js";
29
29
  import {
@@ -41,7 +41,7 @@ import {
41
41
  isQuiet
42
42
  } from "./chunk-6JSJNYH2.js";
43
43
  import "./chunk-D7BAQNV2.js";
44
- import "./chunk-OXUJQVKJ.js";
44
+ import "./chunk-QC3IIDLX.js";
45
45
 
46
46
  // packages/cleo/src/cli/commands/deps.ts
47
47
  import { ExitCode } from "@cleocode/contracts/exit-codes.js";
@@ -459,4 +459,4 @@ export {
459
459
  depsCommand,
460
460
  treeCommand
461
461
  };
462
- //# sourceMappingURL=deps-FFYJK6RC.js.map
462
+ //# sourceMappingURL=deps-XPD5ZAHF.js.map
@@ -15,7 +15,7 @@
15
15
  })();
16
16
  import {
17
17
  dispatchFromCli
18
- } from "./chunk-2RL7GFKZ.js";
18
+ } from "./chunk-EELKU7NB.js";
19
19
  import "./chunk-6N6WGLXE.js";
20
20
  import "./chunk-4VASFLUW.js";
21
21
  import {
@@ -25,7 +25,7 @@ import "./chunk-QKMBWYAS.js";
25
25
  import "./chunk-4RGSNUUP.js";
26
26
  import "./chunk-6JSJNYH2.js";
27
27
  import "./chunk-D7BAQNV2.js";
28
- import "./chunk-OXUJQVKJ.js";
28
+ import "./chunk-QC3IIDLX.js";
29
29
 
30
30
  // packages/cleo/src/cli/commands/detect.ts
31
31
  var detectCommand = defineCommand({
@@ -43,4 +43,4 @@ var detectCommand = defineCommand({
43
43
  export {
44
44
  detectCommand
45
45
  };
46
- //# sourceMappingURL=detect-4U4HTHEW.js.map
46
+ //# sourceMappingURL=detect-YZYEVJWD.js.map
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-47JYZAMS.js";
19
19
  import {
20
20
  dispatchFromCli
21
- } from "./chunk-2RL7GFKZ.js";
21
+ } from "./chunk-EELKU7NB.js";
22
22
  import "./chunk-6N6WGLXE.js";
23
23
  import "./chunk-4VASFLUW.js";
24
24
  import {
@@ -29,7 +29,7 @@ import "./chunk-QKMBWYAS.js";
29
29
  import "./chunk-4RGSNUUP.js";
30
30
  import "./chunk-6JSJNYH2.js";
31
31
  import "./chunk-D7BAQNV2.js";
32
- import "./chunk-OXUJQVKJ.js";
32
+ import "./chunk-QC3IIDLX.js";
33
33
 
34
34
  // packages/cleo/src/cli/commands/diagnostics.ts
35
35
  var enableCommand = defineCommand({
@@ -130,4 +130,4 @@ var diagnosticsCommand = defineCommand({
130
130
  export {
131
131
  diagnosticsCommand
132
132
  };
133
- //# sourceMappingURL=diagnostics-O2XXV7SA.js.map
133
+ //# sourceMappingURL=diagnostics-QJQSNF5L.js.map
@@ -15,7 +15,7 @@
15
15
  })();
16
16
  import {
17
17
  lazyOperation
18
- } from "./chunk-OXUJQVKJ.js";
18
+ } from "./chunk-QC3IIDLX.js";
19
19
  import {
20
20
  defineTypedHandler,
21
21
  lafsError,
@@ -1890,4 +1890,4 @@ var DocsHandler = class {
1890
1890
  export {
1891
1891
  DocsHandler
1892
1892
  };
1893
- //# sourceMappingURL=docs-DB7M5LHG.js.map
1893
+ //# sourceMappingURL=docs-JELVV27J.js.map
@@ -25,7 +25,7 @@ import {
25
25
  dispatchFromCli,
26
26
  dispatchRaw,
27
27
  handleRawError
28
- } from "./chunk-2RL7GFKZ.js";
28
+ } from "./chunk-EELKU7NB.js";
29
29
  import "./chunk-6N6WGLXE.js";
30
30
  import {
31
31
  resolve
@@ -49,7 +49,7 @@ import {
49
49
  } from "./chunk-4RGSNUUP.js";
50
50
  import "./chunk-6JSJNYH2.js";
51
51
  import "./chunk-D7BAQNV2.js";
52
- import "./chunk-OXUJQVKJ.js";
52
+ import "./chunk-QC3IIDLX.js";
53
53
 
54
54
  // packages/cleo/src/cli/commands/docs.ts
55
55
  import { appendFile, mkdir as mkdir3, readdir, readFile as readFile2, writeFile as writeFile2 } from "node:fs/promises";
@@ -2860,4 +2860,4 @@ export {
2860
2860
  _llmOutputCommand,
2861
2861
  docsCommand
2862
2862
  };
2863
- //# sourceMappingURL=docs-Z2TQJUP2.js.map
2863
+ //# sourceMappingURL=docs-YG5ZMQ5F.js.map
@@ -126,7 +126,7 @@ import {
126
126
  import {
127
127
  dispatchFromCli,
128
128
  dispatchRaw
129
- } from "./chunk-2RL7GFKZ.js";
129
+ } from "./chunk-EELKU7NB.js";
130
130
  import "./chunk-6N6WGLXE.js";
131
131
  import "./chunk-4VASFLUW.js";
132
132
  import {
@@ -140,7 +140,7 @@ import {
140
140
  } from "./chunk-4RGSNUUP.js";
141
141
  import "./chunk-6JSJNYH2.js";
142
142
  import "./chunk-D7BAQNV2.js";
143
- import "./chunk-OXUJQVKJ.js";
143
+ import "./chunk-QC3IIDLX.js";
144
144
 
145
145
  // packages/cleo/src/cli/commands/doctor.ts
146
146
  import { mkdirSync, writeFileSync } from "node:fs";
@@ -1276,4 +1276,4 @@ Dependency cycles: check skipped (${msg})`);
1276
1276
  export {
1277
1277
  doctorCommand
1278
1278
  };
1279
- //# sourceMappingURL=doctor-BPTTEJJW.js.map
1279
+ //# sourceMappingURL=doctor-EWY4OP2V.js.map
@@ -16,11 +16,11 @@
16
16
  import {
17
17
  completeCommandArgs,
18
18
  completeDispatchParams
19
- } from "./chunk-JI744XW5.js";
19
+ } from "./chunk-RGTIBYCQ.js";
20
20
  import "./chunk-C3B7C43W.js";
21
21
  import {
22
22
  dispatchRaw
23
- } from "./chunk-2RL7GFKZ.js";
23
+ } from "./chunk-EELKU7NB.js";
24
24
  import "./chunk-6N6WGLXE.js";
25
25
  import "./chunk-4VASFLUW.js";
26
26
  import {
@@ -35,10 +35,10 @@ import {
35
35
  withoutOutputPointer
36
36
  } from "./chunk-6JSJNYH2.js";
37
37
  import "./chunk-D7BAQNV2.js";
38
- import "./chunk-OXUJQVKJ.js";
38
+ import "./chunk-QC3IIDLX.js";
39
39
 
40
40
  // packages/cleo/src/cli/commands/done.ts
41
- async function batchEntry(taskId, result, args) {
41
+ async function doneBatchEntry(taskId, result, args) {
42
42
  if (!result.success) {
43
43
  const { code, message, fix } = result.error;
44
44
  return { taskId, completed: false, error: code, message, next: fix };
@@ -60,7 +60,7 @@ async function runBatchDone(taskIds, args, options, plan) {
60
60
  const { recordTasksDone } = await import("@cleocode/core/tasks/done-record.js");
61
61
  const results = [];
62
62
  for (const { taskId, result } of await recordTasksDone(taskIds, options)) {
63
- results.push(await batchEntry(taskId, result, args));
63
+ results.push(await doneBatchEntry(taskId, result, args));
64
64
  }
65
65
  const blocked = results.filter((r) => r.completed !== true);
66
66
  if (blocked.length === 0)
@@ -98,6 +98,10 @@ var doneCommand = defineCommand({
98
98
  type: "string",
99
99
  description: "The merged PR that implements the task (skips PR selection)"
100
100
  },
101
+ commit: {
102
+ type: "string",
103
+ description: "The commit that implements the task, already on the default branch, when no PR or branch cites it (T13799). Verified: it must exist and have landed, and its message must cite the task or its diff touch the task's declared files (a declared directory such as src/ accepts any commit under it; a glob ties only through the message); its own diff becomes the change set"
104
+ },
101
105
  "run-typed": {
102
106
  type: "boolean",
103
107
  description: "Execute the task's typed gates before recording. Without it cleo done executes no typed gate command: it uses passes cached by `cleo verify --run` (T13521)."
@@ -105,7 +109,7 @@ var doneCommand = defineCommand({
105
109
  },
106
110
  async run({ args }) {
107
111
  const { parseDoneOptions, planTaskDone } = await import("@cleocode/core/tasks/done-plan.js");
108
- const parsed = parseDoneOptions(args.satisfies, args.pr);
112
+ const parsed = parseDoneOptions(args.satisfies, args.pr, args.commit);
109
113
  if (!parsed.ok) {
110
114
  cliError(parsed.message, "E_INVALID_INPUT");
111
115
  process.exitCode = 2;
@@ -200,6 +204,7 @@ var doneCommand = defineCommand({
200
204
  }
201
205
  });
202
206
  export {
207
+ doneBatchEntry,
203
208
  doneCommand
204
209
  };
205
- //# sourceMappingURL=done-OMXWIVBK.js.map
210
+ //# sourceMappingURL=done-Z227ZDXQ.js.map
@@ -17,7 +17,7 @@ import {
17
17
  dispatchFromCli,
18
18
  dispatchRaw,
19
19
  handleRawError
20
- } from "./chunk-2RL7GFKZ.js";
20
+ } from "./chunk-EELKU7NB.js";
21
21
  import "./chunk-6N6WGLXE.js";
22
22
  import "./chunk-4VASFLUW.js";
23
23
  import {
@@ -27,7 +27,7 @@ import "./chunk-QKMBWYAS.js";
27
27
  import "./chunk-4RGSNUUP.js";
28
28
  import "./chunk-6JSJNYH2.js";
29
29
  import "./chunk-D7BAQNV2.js";
30
- import "./chunk-OXUJQVKJ.js";
30
+ import "./chunk-QC3IIDLX.js";
31
31
 
32
32
  // packages/cleo/src/cli/commands/export.ts
33
33
  var exportCommand = defineCommand({
@@ -90,4 +90,4 @@ var exportCommand = defineCommand({
90
90
  export {
91
91
  exportCommand
92
92
  };
93
- //# sourceMappingURL=export-HOWCTZQW.js.map
93
+ //# sourceMappingURL=export-YGDPY52V.js.map
@@ -17,7 +17,7 @@ import {
17
17
  dispatchFromCli,
18
18
  dispatchRaw,
19
19
  handleRawError
20
- } from "./chunk-2RL7GFKZ.js";
20
+ } from "./chunk-EELKU7NB.js";
21
21
  import "./chunk-6N6WGLXE.js";
22
22
  import "./chunk-4VASFLUW.js";
23
23
  import {
@@ -27,7 +27,7 @@ import "./chunk-QKMBWYAS.js";
27
27
  import "./chunk-4RGSNUUP.js";
28
28
  import "./chunk-6JSJNYH2.js";
29
29
  import "./chunk-D7BAQNV2.js";
30
- import "./chunk-OXUJQVKJ.js";
30
+ import "./chunk-QC3IIDLX.js";
31
31
 
32
32
  // packages/cleo/src/cli/commands/export-tasks.ts
33
33
  var exportTasksCommand = defineCommand({
@@ -94,4 +94,4 @@ var exportTasksCommand = defineCommand({
94
94
  export {
95
95
  exportTasksCommand
96
96
  };
97
- //# sourceMappingURL=export-tasks-WL7A6E7P.js.map
97
+ //# sourceMappingURL=export-tasks-KDUKD6M6.js.map
@@ -17,7 +17,7 @@ import {
17
17
  dispatchRaw,
18
18
  handleRawError,
19
19
  maybeEmitDescribe
20
- } from "./chunk-2RL7GFKZ.js";
20
+ } from "./chunk-EELKU7NB.js";
21
21
  import "./chunk-6N6WGLXE.js";
22
22
  import "./chunk-4VASFLUW.js";
23
23
  import {
@@ -29,7 +29,7 @@ import {
29
29
  } from "./chunk-4RGSNUUP.js";
30
30
  import "./chunk-6JSJNYH2.js";
31
31
  import "./chunk-D7BAQNV2.js";
32
- import "./chunk-OXUJQVKJ.js";
32
+ import "./chunk-QC3IIDLX.js";
33
33
 
34
34
  // packages/cleo/src/cli/commands/find.ts
35
35
  import { ExitCode } from "@cleocode/contracts/exit-codes.js";
@@ -175,4 +175,4 @@ var findCommand = defineCommand({
175
175
  export {
176
176
  findCommand
177
177
  };
178
- //# sourceMappingURL=find-GSX5Q5V7.js.map
178
+ //# sourceMappingURL=find-D3KMIDFU.js.map
@@ -15,7 +15,7 @@
15
15
  })();
16
16
  import {
17
17
  dispatchFromCli
18
- } from "./chunk-2RL7GFKZ.js";
18
+ } from "./chunk-EELKU7NB.js";
19
19
  import "./chunk-6N6WGLXE.js";
20
20
  import "./chunk-4VASFLUW.js";
21
21
  import {
@@ -25,7 +25,7 @@ import "./chunk-QKMBWYAS.js";
25
25
  import "./chunk-4RGSNUUP.js";
26
26
  import "./chunk-6JSJNYH2.js";
27
27
  import "./chunk-D7BAQNV2.js";
28
- import "./chunk-OXUJQVKJ.js";
28
+ import "./chunk-QC3IIDLX.js";
29
29
 
30
30
  // packages/cleo/src/cli/commands/focus.ts
31
31
  var focusCommand = defineCommand({
@@ -53,4 +53,4 @@ var focusCommand = defineCommand({
53
53
  export {
54
54
  focusCommand
55
55
  };
56
- //# sourceMappingURL=focus-HPSRWI2V.js.map
56
+ //# sourceMappingURL=focus-ZKJTGRY5.js.map
@@ -189,17 +189,107 @@ var appendCommand = defineCommand({
189
189
  cliOutput(record ?? { active: null }, { command: "goal append", operation: "goal.append" });
190
190
  }
191
191
  });
192
+ var draftCommand = defineCommand({
193
+ meta: {
194
+ name: "draft",
195
+ description: "Write a goal/v1 draft (goal.yaml) from tasks' acceptance criteria. Never starts a run or overwrites a file."
196
+ },
197
+ args: {
198
+ taskId: { type: "positional", description: "Primary task id (names the goal)" },
199
+ tasks: { type: "string", description: "More task ids the goal serves, comma-separated" },
200
+ out: {
201
+ type: "string",
202
+ description: "Output file <id>/goal.yaml inside the project; <id> becomes the goal id (default .opencode/goals/<slug>/goal.yaml)"
203
+ }
204
+ },
205
+ async run({ args }) {
206
+ const ids = [
207
+ ...new Set(
208
+ [String(args.taskId ?? ""), ...String(args.tasks ?? "").split(",")].map((s) => s.trim()).filter(Boolean)
209
+ )
210
+ ];
211
+ const { draftGoal } = await import("@cleocode/core/goal/draft.js");
212
+ const result = await draftGoal(ids, {
213
+ projectRoot: getProjectRoot(),
214
+ ...typeof args.out === "string" && args.out ? { out: args.out } : {}
215
+ });
216
+ if (!result.success) {
217
+ cliError(result.error.message, result.error.code, { fix: result.error.fix });
218
+ process.exitCode = result.error.exitCode ?? 1;
219
+ return;
220
+ }
221
+ cliOutput(result.data, { command: "goal draft", operation: "goal.draft" });
222
+ }
223
+ });
224
+ var closeCommand = defineCommand({
225
+ meta: {
226
+ name: "close",
227
+ description: "Record a goal run's per-AC evidence from its outcome file, then complete each task whose criteria are all proven (via cleo done)"
228
+ },
229
+ args: {
230
+ slug: { type: "positional", description: "Goal slug (.opencode/goals/<slug>/goal.yaml)" },
231
+ outcome: {
232
+ type: "string",
233
+ description: "Path of the goal-outcome/v1 JSON file",
234
+ required: true
235
+ }
236
+ },
237
+ async run({ args }) {
238
+ const slug = String(args.slug ?? "").trim();
239
+ if (!slug || typeof args.outcome !== "string" || !args.outcome) {
240
+ cliError("goal close needs <slug> and --outcome <file>", ExitCode.VALIDATION_ERROR, {
241
+ name: "E_VALIDATION"
242
+ });
243
+ return;
244
+ }
245
+ const projectRoot = getProjectRoot();
246
+ const { closeGoal } = await import("@cleocode/core/goal/close.js");
247
+ const closed = await closeGoal(slug, { projectRoot, outcomePath: args.outcome });
248
+ if (!closed.success) {
249
+ cliError(closed.error.message, closed.error.code, { fix: closed.error.fix });
250
+ process.exitCode = closed.error.exitCode ?? 1;
251
+ return;
252
+ }
253
+ const ready = closed.data.tasks.filter((t) => t.ready);
254
+ const completions = [];
255
+ if (ready.length > 0) {
256
+ const { recordTasksDone } = await import("@cleocode/core/tasks/done-record.js");
257
+ const { doneBatchEntry } = await import("./done-Z227ZDXQ.js");
258
+ for (const task of ready) {
259
+ const commit = task.completionCommit ? { commit: task.completionCommit } : {};
260
+ for (const { taskId, result } of await recordTasksDone([task.taskId], {
261
+ projectRoot,
262
+ ...commit
263
+ })) {
264
+ completions.push(await doneBatchEntry(taskId, result, { taskId }));
265
+ }
266
+ }
267
+ }
268
+ cliOutput(
269
+ {
270
+ ...closed.data,
271
+ tasks: closed.data.tasks.map((t) => ({
272
+ ...t,
273
+ completion: completions.find((c) => c.taskId === t.taskId) ?? null
274
+ }))
275
+ },
276
+ { command: "goal close", operation: "goal.close" }
277
+ );
278
+ }
279
+ });
192
280
  var goalCommand = defineCommand({
193
281
  meta: {
194
282
  name: "goal",
195
- description: "DB-persisted, per-agent, evidence-gate-aware goal loop (set/status/advance/subgoal/append)."
283
+ description: "Goal protocol (draft, close) and the per-agent goal loop (set/status/advance/subgoal/append)."
196
284
  },
197
285
  subCommands: {
198
286
  set: setCommand,
199
287
  status: statusCommand,
200
288
  advance: advanceCommand,
201
289
  subgoal: subgoalCommand,
202
- append: appendCommand
290
+ append: appendCommand,
291
+ draft: draftCommand,
292
+ close: closeCommand
203
293
  },
204
294
  async run({ cmd, rawArgs }) {
205
295
  const firstArg = rawArgs?.find((a) => !a.startsWith("-"));
@@ -210,4 +300,4 @@ var goalCommand = defineCommand({
210
300
  export {
211
301
  goalCommand
212
302
  };
213
- //# sourceMappingURL=goal-4GW4G77D.js.map
303
+ //# sourceMappingURL=goal-DQHIX4HW.js.map