@cleocode/cleo 2026.10.27 → 2026.11.1-canary.11

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 (356) hide show
  1. package/README.md +28 -365
  2. package/dist/.source-stamp.json +4 -0
  3. package/dist/cli/{adapter-ZIB3OAPD.js → adapter-JZET3CDA.js} +5 -5
  4. package/dist/cli/{add-TBJUMJW7.js → add-W23ZQJ2U.js} +5 -5
  5. package/dist/cli/{add-batch-GGKVPTS5.js → add-batch-MNLEUT24.js} +5 -5
  6. package/dist/cli/{admin-NGPG2LSO.js → admin-3NN6QIJE.js} +5 -5
  7. package/dist/cli/{admin-PEYBYMZN.js → admin-LOGL2TBY.js} +16 -6
  8. package/dist/cli/{adr-2XVNDYZ7.js → adr-QYUJRVHW.js} +5 -5
  9. package/dist/cli/{agent-B23GPWYM.js → agent-KKMNGKR2.js} +3 -548
  10. package/dist/cli/{agent-outputs-SZ45UZVC.js → agent-outputs-ZEKMONK2.js} +2 -2
  11. package/dist/cli/{analyze-A44RDCSX.js → analyze-VUEJUV24.js} +5 -5
  12. package/dist/cli/{archive-QQB6M2RF.js → archive-I2XT6DGU.js} +5 -5
  13. package/dist/cli/{archive-stats-K4YKKYQV.js → archive-stats-J5AMTF7W.js} +5 -5
  14. package/dist/cli/{attention-KAHDF6KD.js → attention-736TGLSO.js} +5 -5
  15. package/dist/cli/{audit-ALSFSHEI.js → audit-JTEHB556.js} +2 -2
  16. package/dist/cli/{auth-5L3XPCXL.js → auth-QNFL6SIX.js} +5 -5
  17. package/dist/cli/{backfill-5B2FWBIB.js → backfill-QCEV5ZJR.js} +2 -2
  18. package/dist/cli/{backup-IYFULQTM.js → backup-6D6Y7S4X.js} +39 -10
  19. package/dist/cli/{backup-inspect-SYI6JWYI.js → backup-inspect-YS4HJUFF.js} +3 -3
  20. package/dist/cli/{backup-recover-I64KKABA.js → backup-recover-6RRWTZUF.js} +3 -3
  21. package/dist/cli/{blockers-KYNJJKZQ.js → blockers-TXOHUIQZ.js} +5 -5
  22. package/dist/cli/{brain-3E6GWG33.js → brain-MPZZ73RR.js} +2 -2
  23. package/dist/cli/{briefing-J6PDDZ2C.js → briefing-HR7WKAP7.js} +5 -5
  24. package/dist/cli/{caamp-4GLHZPAB.js → caamp-6BHIZIRC.js} +2 -2
  25. package/dist/cli/{cancel-A4OCUVDI.js → cancel-RPBL7XNS.js} +16 -6
  26. package/dist/cli/{canon-NPF5RODM.js → canon-UQKCAL3J.js} +13 -8
  27. package/dist/cli/{chunk-SXXOC6KZ.js → canon-docs-ZXWC4AFI.js} +51 -4
  28. package/dist/cli/{cant-JZXHRLE2.js → cant-7YDYKDCE.js} +2 -2
  29. package/dist/cli/{changeset-WTR2KKML.js → changeset-XDMWUH4W.js} +2 -2
  30. package/dist/cli/{check-HHT4J5ZM.js → check-ALYB2DED.js} +43 -5
  31. package/dist/cli/{check-ZT6O5JDS.js → check-BNV2Z7NL.js} +45 -23
  32. package/dist/cli/{checkpoint-THR2KML7.js → checkpoint-WGT5Q4IV.js} +2 -2
  33. package/dist/cli/{chunk-6G43T2BO.js → chunk-2DRYEF4Q.js} +2 -2
  34. package/dist/cli/{chunk-4FO2MCCU.js → chunk-2EBQ2UPV.js} +2 -2
  35. package/dist/cli/{chunk-G63BB37P.js → chunk-2FVSEFH6.js} +3 -3
  36. package/dist/cli/{chunk-6N6WGLXE.js → chunk-2NXQCE4N.js} +10 -2
  37. package/dist/cli/{chunk-BXEMLY6P.js → chunk-367CXLZW.js} +2 -2
  38. package/dist/cli/{chunk-DNR7ZPOW.js → chunk-3C4ABVIM.js} +2 -2
  39. package/dist/cli/{chunk-YJQL26VS.js → chunk-3FLFKMKA.js} +3 -3
  40. package/dist/cli/{chunk-FBR2NQW4.js → chunk-4C4NJVR3.js} +2 -2
  41. package/dist/cli/{chunk-QITYNI2H.js → chunk-57YMZSNI.js} +2 -2
  42. package/dist/cli/{chunk-HQG5YZCJ.js → chunk-5D5EFJTJ.js} +2 -2
  43. package/dist/cli/{chunk-2LFWGSPE.js → chunk-5OFSGZLM.js} +2 -2
  44. package/dist/cli/{chunk-Y6FHWDNX.js → chunk-6KWKDXMT.js} +2 -2
  45. package/dist/cli/{chunk-RX5F2FUP.js → chunk-6VT7QNQH.js} +2 -2
  46. package/dist/cli/{chunk-D7QZ4WSJ.js → chunk-6ZCDCJB4.js} +2 -2
  47. package/dist/cli/{chunk-4QI7JOPI.js → chunk-762STE53.js} +2 -2
  48. package/dist/cli/{chunk-SP66YNWA.js → chunk-76QLAP54.js} +2 -2
  49. package/dist/cli/{chunk-7VRIP4MD.js → chunk-7AEZ35UT.js} +2 -2
  50. package/dist/cli/{chunk-64OLQ6OH.js → chunk-7VAYYOTQ.js} +2 -2
  51. package/dist/cli/{chunk-YM7QMFFW.js → chunk-AXFIVWJZ.js} +2 -2
  52. package/dist/cli/{chunk-AI4BE3MJ.js → chunk-B3NZQ2Y4.js} +2 -2
  53. package/dist/cli/{chunk-MLUCI3JC.js → chunk-BELA5D4T.js} +15 -6
  54. package/dist/cli/{chunk-2UQB3DWD.js → chunk-BJL3MZUI.js} +2 -2
  55. package/dist/cli/{chunk-UPFW3DRJ.js → chunk-BSIPR5S5.js} +2 -2
  56. package/dist/cli/{chunk-JRDAITPC.js → chunk-D75KPNMP.js} +18 -19
  57. package/dist/cli/{chunk-NBFD6HZX.js → chunk-DA7LGEOB.js} +2 -2
  58. package/dist/cli/{chunk-ESI6Q4OS.js → chunk-FD6EQLV7.js} +1 -2
  59. package/dist/cli/{chunk-5IFMSDWF.js → chunk-FJ5CWNTM.js} +2 -2
  60. package/dist/cli/{chunk-XSURVN6Y.js → chunk-FYS4D5VL.js} +2 -2
  61. package/dist/cli/chunk-HACZVXOL.js +92 -0
  62. package/dist/cli/{chunk-JBLHNKSK.js → chunk-HPRGQCRR.js} +2 -2
  63. package/dist/cli/{chunk-362WHUCT.js → chunk-IC33OPZA.js} +2 -2
  64. package/dist/cli/{chunk-TVNXFYOJ.js → chunk-ICFMF56Q.js} +4 -4
  65. package/dist/cli/{chunk-Y7ZNHNVQ.js → chunk-IDFVCC6T.js} +2 -2
  66. package/dist/cli/{chunk-NDN5LU2T.js → chunk-IDZSVRTW.js} +2 -2
  67. package/dist/cli/{chunk-SLNCIDY5.js → chunk-K3VVRO75.js} +2 -2
  68. package/dist/cli/{owner-override-cap-53HYZHIL.js → chunk-KA636FBJ.js} +45 -5
  69. package/dist/cli/{chunk-GNASLIE2.js → chunk-KNHQAYMR.js} +2 -2
  70. package/dist/cli/{chunk-THHPBHFL.js → chunk-LVPOIHUW.js} +2 -2
  71. package/dist/cli/{chunk-IYP3ACPP.js → chunk-M7L5XJYS.js} +2 -2
  72. package/dist/cli/{chunk-PGR4RWQL.js → chunk-MYBFLQT4.js} +8 -5
  73. package/dist/cli/{chunk-W56TDRLF.js → chunk-OMLSVE5U.js} +2 -2
  74. package/dist/cli/{chunk-TNLB7XJO.js → chunk-QZKOWHXO.js} +2 -2
  75. package/dist/cli/{chunk-5KN6IF7F.js → chunk-SKQG2E6A.js} +2 -2
  76. package/dist/cli/{chunk-J4ZSHCUO.js → chunk-TBIXOLSO.js} +2 -2
  77. package/dist/cli/{chunk-QWNKLLLG.js → chunk-TM72T27J.js} +2 -20
  78. package/dist/cli/{chunk-SHRGWWE2.js → chunk-TRUE5NCE.js} +12 -5
  79. package/dist/cli/{chunk-T2TE45UH.js → chunk-UAHZXF7P.js} +2 -2
  80. package/dist/cli/{chunk-3SWQFMWN.js → chunk-UGEJXSUY.js} +2 -2
  81. package/dist/cli/{chunk-NPEWU2LO.js → chunk-UYNMYQIG.js} +2 -2
  82. package/dist/cli/{chunk-S2IS4DXJ.js → chunk-VR6TPIRF.js} +2 -2
  83. package/dist/cli/{chunk-GL5GCK7T.js → chunk-VV65VS2B.js} +2 -2
  84. package/dist/cli/{chunk-OIS3BDSL.js → chunk-YNBEP6TJ.js} +23 -11
  85. package/dist/cli/{chunk-TUUKU4H7.js → chunk-YQQXHUUN.js} +15 -5
  86. package/dist/cli/{chunk-RBI6IBDF.js → chunk-Z24VFMRA.js} +2 -2
  87. package/dist/cli/{claim-MFFSWD64.js → claim-NJMCYE4S.js} +5 -5
  88. package/dist/cli/{classify-H3W4U76E.js → classify-KWJ3TFEC.js} +2 -2
  89. package/dist/cli/{cli-5PJ2B6ZH.js → cli-FIW3KVGU.js} +5 -5
  90. package/dist/cli/{cloud-IEDKFMLI.js → cloud-2H332MHX.js} +4 -4
  91. package/dist/cli/{code-IUDQNALE.js → code-NB4L5SQS.js} +2 -2
  92. package/dist/cli/{complete-2IN4YEWL.js → complete-ZVXR5WFT.js} +6 -6
  93. package/dist/cli/{complexity-JVEIZE5M.js → complexity-J7QTUVEQ.js} +5 -5
  94. package/dist/cli/{compliance-MC3X2M34.js → compliance-JA6VK45M.js} +5 -5
  95. package/dist/cli/{config-Z5BXGRZB.js → config-G7L2NAIX.js} +12 -7
  96. package/dist/cli/{consensus-T6UARQTD.js → consensus-TMDIZHXI.js} +5 -5
  97. package/dist/cli/{context-M4F3YXZE.js → context-6GLTMU2N.js} +5 -5
  98. package/dist/cli/{contribution-76FJYJKR.js → contribution-HPVDMKN6.js} +5 -5
  99. package/dist/cli/{curator-3YXUY4N7.js → curator-O2FXIQFI.js} +2 -2
  100. package/dist/cli/{current-EFRCVSWL.js → current-QFANPTZ4.js} +5 -5
  101. package/dist/cli/{daemon-UAAMDN6C.js → daemon-XTMW67JG.js} +5 -5
  102. package/dist/cli/{dash-ZEBYLYPV.js → dash-K25EK3MM.js} +5 -5
  103. package/dist/cli/{decide-GQTJOC55.js → decide-7JM6V3MS.js} +2 -2
  104. package/dist/cli/{decompose-XTK2DXSM.js → decompose-D2CI6H4Z.js} +5 -5
  105. package/dist/cli/{decomposition-ZDACSPOU.js → decomposition-HM2POZII.js} +5 -5
  106. package/dist/cli/{delete-6YZADILS.js → delete-WKIEMXKN.js} +5 -5
  107. package/dist/cli/{deps-WTASB2GB.js → deps-2X5EWRGY.js} +5 -5
  108. package/dist/cli/{detect-IITE5EBW.js → detect-SWEMXU4U.js} +5 -5
  109. package/dist/cli/{detect-drift-PVC7IPHL.js → detect-drift-M5C4RFJ5.js} +15 -12
  110. package/dist/cli/{diagnostics-MFUOSLSQ.js → diagnostics-6STQBKON.js} +5 -5
  111. package/dist/cli/{docs-AIZLN3ZE.js → docs-O5A34WJY.js} +172 -101
  112. package/dist/cli/{docs-NF5COLOB.js → docs-SI2YNPSG.js} +216 -30
  113. package/dist/cli/{doctor-4DWCNDOP.js → doctor-45UUXTVQ.js} +57 -52
  114. package/dist/cli/{doctor-ac-bindings-HPTG3DDJ.js → doctor-ac-bindings-PBJQ5AS6.js} +3 -3
  115. package/dist/cli/{doctor-acceptance-drift-P7DOAY54.js → doctor-acceptance-drift-FIV25NRE.js} +3 -3
  116. package/dist/cli/{doctor-credentials-TBRT7RAV.js → doctor-credentials-W7EGOG54.js} +3 -3
  117. package/dist/cli/{doctor-db-substrate-ZMLTPGQF.js → doctor-db-substrate-DQJDPL4K.js} +3 -3
  118. package/dist/cli/{doctor-dep-cycles-QWFYH2JK.js → doctor-dep-cycles-2RK2MAHL.js} +3 -3
  119. package/dist/cli/{doctor-exodus-FYBTDXNQ.js → doctor-exodus-SCIA5CZ5.js} +3 -3
  120. package/dist/cli/{doctor-exodus-residue-S7EKSTZS.js → doctor-exodus-residue-N7R3FRC5.js} +3 -3
  121. package/dist/cli/{doctor-fk-check-CNZCA74C.js → doctor-fk-check-5TND2DZH.js} +3 -3
  122. package/dist/cli/{doctor-global-delivery-FICIWVP6.js → doctor-global-delivery-ENAHOZF7.js} +3 -3
  123. package/dist/cli/{doctor-goal-runtime-UIPZRP5Y.js → doctor-goal-runtime-PN6LJFPN.js} +3 -3
  124. package/dist/cli/{doctor-heavy-command-hook-SJHLYWEI.js → doctor-heavy-command-hook-UK3PLJRM.js} +3 -3
  125. package/dist/cli/{doctor-hooks-GHQIAFOY.js → doctor-hooks-ABHXHN2C.js} +3 -3
  126. package/dist/cli/{doctor-legacy-backups-USISQQ5C.js → doctor-legacy-backups-6NXVR43I.js} +3 -3
  127. package/dist/cli/{doctor-legacy-reaper-54BUE5RK.js → doctor-legacy-reaper-SWQOAPNV.js} +3 -3
  128. package/dist/cli/{doctor-malformed-ids-LZNVED2E.js → doctor-malformed-ids-VPZE6A4O.js} +3 -3
  129. package/dist/cli/{doctor-manifest-rows-3L6RUH3C.js → doctor-manifest-rows-GHPAYQ6I.js} +3 -3
  130. package/dist/cli/{doctor-memory-guard-Z62J6U3O.js → doctor-memory-guard-Z6IMLQ5C.js} +3 -3
  131. package/dist/cli/{doctor-migrations-EYB6XSZ2.js → doctor-migrations-6HICMUH5.js} +3 -3
  132. package/dist/cli/{doctor-nexus-residency-GFS37HCL.js → doctor-nexus-residency-VEOZBSYZ.js} +3 -3
  133. package/dist/cli/{doctor-project-identity-A3C6ZWUQ.js → doctor-project-identity-UPRBKXXU.js} +3 -3
  134. package/dist/cli/{doctor-projects-73UHVECZ.js → doctor-projects-3BKEL6SE.js} +3 -3
  135. package/dist/cli/{doctor-projects-registry-5RGRJMCE.js → doctor-projects-registry-JQRWKMRP.js} +3 -3
  136. package/dist/cli/{doctor-release-readiness-7G3OGH2R.js → doctor-release-readiness-ZAK5RKP7.js} +3 -3
  137. package/dist/cli/{doctor-repair-IK6OSUHA.js → doctor-repair-KP66YRVA.js} +3 -3
  138. package/dist/cli/{doctor-row-identity-2CULRXQ2.js → doctor-row-identity-7BDE6BMR.js} +3 -3
  139. package/dist/cli/{doctor-skill-fixtures-OQ2RMIR6.js → doctor-skill-fixtures-MJQ7BJRE.js} +3 -3
  140. package/dist/cli/{doctor-split-brain-5YQGDVTY.js → doctor-split-brain-FFQ7U2FI.js} +3 -3
  141. package/dist/cli/{doctor-superseded-store-JLATIXXP.js → doctor-superseded-store-FQSFKMEX.js} +3 -3
  142. package/dist/cli/{doctor-sync-journal-MZM3WUIT.js → doctor-sync-journal-AM5M5RGO.js} +3 -3
  143. package/dist/cli/{doctor-sync-triggers-IZFC62D7.js → doctor-sync-triggers-4GSCFCL7.js} +3 -3
  144. package/dist/cli/{doctor-system-TJINX2M3.js → doctor-system-S7KYSUXW.js} +3 -3
  145. package/dist/cli/{doctor-tool-locks-VXKJZKAY.js → doctor-tool-locks-XRRQJ3MK.js} +3 -3
  146. package/dist/cli/{doctor-twin-collapse-C5GLUSAO.js → doctor-twin-collapse-SJM5LNAO.js} +3 -3
  147. package/dist/cli/doctor-type-matrix-6MJXOZI2.js +26 -0
  148. package/dist/cli/{doctor-worktree-stores-WZMB4ZHG.js → doctor-worktree-stores-TIR5ZDJ4.js} +3 -3
  149. package/dist/cli/{done-A7ITQSJT.js → done-TXCQGNT7.js} +91 -8
  150. package/dist/cli/{event-RD4EI52P.js → event-J2A7PIDI.js} +2 -2
  151. package/dist/cli/{exists-U33AFKXF.js → exists-NN5QNXFW.js} +2 -2
  152. package/dist/cli/{exodus-QHAQC5SH.js → exodus-VIV4AX54.js} +2 -2
  153. package/dist/cli/{export-OTDQUAQQ.js → export-T4YD6Q3U.js} +5 -5
  154. package/dist/cli/{export-tasks-BKVXMFLD.js → export-tasks-VB5U3YMC.js} +5 -5
  155. package/dist/cli/{federation-GZCJIYMK.js → federation-7WZTYIX7.js} +2 -2
  156. package/dist/cli/{find-BWKYKZEN.js → find-KMTKZ7FY.js} +5 -5
  157. package/dist/cli/{focus-772SYK7Z.js → focus-3BLWBLBG.js} +5 -5
  158. package/dist/cli/{focus-H5CBCFFV.js → focus-6ZYKBB3X.js} +2 -2
  159. package/dist/cli/{gateway-PJ2A6TNM.js → gateway-WVQ3QQFW.js} +2 -2
  160. package/dist/cli/{gc-KG3D2PSR.js → gc-PZGIBTWQ.js} +3 -3
  161. package/dist/cli/{go-AEDN2TNP.js → go-LK5WEP3M.js} +2 -2
  162. package/dist/cli/{goal-TG74GKBK.js → goal-IRTYU7XD.js} +3 -3
  163. package/dist/cli/{grade-BZYBWDA7.js → grade-GIXFAUVP.js} +5 -5
  164. package/dist/cli/{graph-LB2TBRH6.js → graph-SVPHG4VG.js} +8 -33
  165. package/dist/cli/{history-XIYAXOUF.js → history-LPGGTRI7.js} +5 -5
  166. package/dist/cli/{hook-GS5ZZX46.js → hook-VMFPDWVJ.js} +2 -2
  167. package/dist/cli/hook-entry.js +105 -7
  168. package/dist/cli/hygiene-NJD3GR56.js +142 -0
  169. package/dist/cli/{import-C2QISQC7.js → import-55RUOSXO.js} +5 -5
  170. package/dist/cli/{import-tasks-P6FYXAAS.js → import-tasks-RXPNEFPW.js} +5 -5
  171. package/dist/cli/index.js +256 -204
  172. package/dist/cli/{init-XLIT5JVO.js → init-KNRJ22RZ.js} +5 -5
  173. package/dist/cli/{inject-EDZVSPTW.js → inject-43VJCL2Y.js} +5 -5
  174. package/dist/cli/{install-global-FFNYQ366.js → install-global-GU4F2KKV.js} +2 -2
  175. package/dist/cli/{intelligence-OE7SIVR5.js → intelligence-36SGMEHH.js} +5 -5
  176. package/dist/cli/{issue-S67EZXN7.js → issue-VYWZG6BR.js} +5 -5
  177. package/dist/cli/{janitor-GMTGHNOZ.js → janitor-LU6EA55M.js} +2 -2
  178. package/dist/cli/{labels-M7GIBYAQ.js → labels-X6BEE5ZZ.js} +5 -5
  179. package/dist/cli/{lean-FNQ3D4VT.js → lean-GXLAUNNG.js} +2 -2
  180. package/dist/cli/{lifecycle-NO5QDJ2J.js → lifecycle-5P7AVPSI.js} +6 -6
  181. package/dist/cli/{list-VH6DPZ4V.js → list-5N73FV7H.js} +5 -5
  182. package/dist/cli/{llm-P35U52I5.js → llm-IO53XETC.js} +9 -9
  183. package/dist/cli/{llm-YVC5HL7D.js → llm-J3SYJEGB.js} +2 -2
  184. package/dist/cli/{llm-cost-CRIA3VMB.js → llm-cost-DYY7IC4W.js} +3 -3
  185. package/dist/cli/{llm-stream-YBT4FNWZ.js → llm-stream-G35ANQKL.js} +3 -3
  186. package/dist/cli/{log-XIPOX6UM.js → log-E7XZBG7W.js} +5 -5
  187. package/dist/cli/{login-SYEMTZXY.js → login-IRTRPQTX.js} +4 -4
  188. package/dist/cli/{logout-FVWR2AXZ.js → logout-XEL6AVVB.js} +4 -4
  189. package/dist/cli/{manifest-A5F2YD35.js → manifest-UZDHLWAN.js} +5 -5
  190. package/dist/cli/{map-AOMU72RY.js → map-6J27ZMSH.js} +5 -5
  191. package/dist/cli/{memory-4WNZWJG7.js → memory-CFG7P3MM.js} +65 -18
  192. package/dist/cli/{memory-GK5WDYWT.js → memory-Y2C7HYDJ.js} +4 -3
  193. package/dist/cli/merge-JCDDPQIX.js +65 -0
  194. package/dist/cli/{migrate-agents-v2-IX3IBBIT.js → migrate-agents-v2-4W4ZSHZM.js} +3 -3
  195. package/dist/cli/{migrate-claude-mem-OTSYHYBZ.js → migrate-claude-mem-MDBLLJ22.js} +6 -6
  196. package/dist/cli/{next-YUZ4X7NB.js → next-MSGFEI7M.js} +5 -5
  197. package/dist/cli/{nexus-RYH4IAG3.js → nexus-IK7QLEDF.js} +3 -11
  198. package/dist/cli/{nexus-YHPP3RZU.js → nexus-XULYITP6.js} +98 -63
  199. package/dist/cli/{nexus-vault-cli-2R6ALKUP.js → nexus-vault-cli-G7QY446L.js} +4 -4
  200. package/dist/cli/{ops-XPJK3WBN.js → ops-2XDAGO4L.js} +5 -5
  201. package/dist/cli/{orchestrate-AYBDAVOQ.js → orchestrate-BDU4ZLDN.js} +77 -346
  202. package/dist/cli/{orchestrate-TWV43SAR.js → orchestrate-SUOWHPIU.js} +147 -140
  203. package/dist/cli/{otel-TR54MLYU.js → otel-4AS22352.js} +2 -2
  204. package/dist/cli/owner-override-cap-5XAZD23U.js +31 -0
  205. package/dist/cli/{owner-password-GQO37FBV.js → owner-password-VBK5RHKP.js} +3 -3
  206. package/dist/cli/{phase-CFH2NZU5.js → phase-FF6OMRTY.js} +5 -5
  207. package/dist/cli/{pipeline-LW5HWLBI.js → pipeline-4ATMN26D.js} +3 -3
  208. package/dist/cli/{pivot-LEBKDG22.js → pivot-S6JDBRK4.js} +5 -5
  209. package/dist/cli/{plan-6VK5I4BT.js → plan-AY6CF5VB.js} +5 -5
  210. package/dist/cli/{playbook-YPGSNILZ.js → playbook-JDDX5F3H.js} +3 -3
  211. package/dist/cli/{playbook-4GKDYZYW.js → playbook-LJOLT6MX.js} +5 -5
  212. package/dist/cli/{project-QJM7P2HG.js → project-RCRORK6A.js} +3 -3
  213. package/dist/cli/project-hook-entry.js +1 -1
  214. package/dist/cli/{promote-4V4ZLAL3.js → promote-YAFPAZEH.js} +5 -5
  215. package/dist/cli/{provenance-2SFRY42O.js → provenance-2WVSVXNS.js} +5 -5
  216. package/dist/cli/{provider-G6MBFVHR.js → provider-GJD2MZOF.js} +5 -5
  217. package/dist/cli/{reason-2AYZ6SGZ.js → reason-QJZGRMSL.js} +5 -5
  218. package/dist/cli/{reconcile-7CBD7AHH.js → reconcile-JMYN3BON.js} +6 -5
  219. package/dist/cli/{refresh-memory-JTQYFIC7.js → refresh-memory-XVQE7B7L.js} +2 -2
  220. package/dist/cli/{relates-FP43JAOK.js → relates-NNOSVBIM.js} +5 -5
  221. package/dist/cli/{release-NW7XHRVB.js → release-DB23AFID.js} +136 -6
  222. package/dist/cli/{release-OWPFPUQG.js → release-EI72GMAM.js} +79 -96
  223. package/dist/cli/release-authorize-OPL262T6.js +84 -0
  224. package/dist/cli/{remote-ZCCQGM5A.js → remote-XJGF5MGU.js} +2 -2
  225. package/dist/cli/{renderers-37XPXD3K.js → renderers-AMSXAXLY.js} +2 -2
  226. package/dist/cli/{reorder-M457CQRR.js → reorder-HFTIHYBZ.js} +5 -5
  227. package/dist/cli/{reparent-53T6IUUS.js → reparent-JOBADCH5.js} +5 -5
  228. package/dist/cli/{req-ORMMU5PV.js → req-6JXMXBNA.js} +38 -5
  229. package/dist/cli/{research-LFGCGIEP.js → research-5GRWQLHM.js} +6 -6
  230. package/dist/cli/{restore-ZYRIZQUJ.js → restore-ZZH5EUTG.js} +12 -6
  231. package/dist/cli/{revert-XB7K5DR7.js → revert-2F3RPBGW.js} +2 -2
  232. package/dist/cli/review-LTRABBAL.js +162 -0
  233. package/dist/cli/{roadmap-EK6LXBQ4.js → roadmap-THEKOZ3A.js} +5 -5
  234. package/dist/cli/{run-PZJCIRFD.js → run-LH2KI2BV.js} +57 -4
  235. package/dist/cli/{safestop-NO57J3RK.js → safestop-3BH4GLOW.js} +5 -5
  236. package/dist/cli/{saga-NIJMIJE5.js → saga-SMAWF37G.js} +5 -5
  237. package/dist/cli/{schema-5SBTATBP.js → schema-J4UNFL5K.js} +2 -2
  238. package/dist/cli/{self-update-7747XBHR.js → self-update-OP7X4SV5.js} +2 -2
  239. package/dist/cli/{selfimprove-6HSEV3RG.js → selfimprove-MJXG7BIB.js} +5 -5
  240. package/dist/cli/{selfimprove-IYKG5PF4.js → selfimprove-MQ5WGGVO.js} +2 -2
  241. package/dist/cli/{sentient-U56VMS6D.js → sentient-B7TXJ2XI.js} +2 -2
  242. package/dist/cli/{sentient-Z7W7WO74.js → sentient-W3D6ATW5.js} +2 -2
  243. package/dist/cli/{sequence-T42KPEEQ.js → sequence-VUPNLIB3.js} +5 -5
  244. package/dist/cli/{service-CBEZWGHC.js → service-ZBMCSGAO.js} +5 -5
  245. package/dist/cli/{session-XDADM7O4.js → session-5JTABSZR.js} +6 -6
  246. package/dist/cli/{session-TFVW42XK.js → session-NN655K5R.js} +3 -3
  247. package/dist/cli/{setup-WZVYP7QA.js → setup-JQ3DFC5Q.js} +4 -4
  248. package/dist/cli/{show-I2TEU6MP.js → show-OKAPY3KE.js} +5 -6
  249. package/dist/cli/{skill-YUWT2LC6.js → skill-HOUTOSDX.js} +2 -2
  250. package/dist/cli/{skills-ZBYRPFRL.js → skills-CJ4UY4VG.js} +7 -7
  251. package/dist/cli/{snapshot-GMN7LZ4A.js → snapshot-5AUXE72Q.js} +5 -5
  252. package/dist/cli/{start-FQWDRGJE.js → start-ZB263BD4.js} +5 -5
  253. package/dist/cli/{stats-D2AU77GH.js → stats-QKNT3RCZ.js} +5 -5
  254. package/dist/cli/{status-TNLDBR7K.js → status-7BIMUOCS.js} +2 -2
  255. package/dist/cli/{sticky-FKZFQYNV.js → sticky-IDNWN3F6.js} +5 -5
  256. package/dist/cli/{sticky-EKL5FD2D.js → sticky-Z2BMRSAB.js} +2 -2
  257. package/dist/cli/{stop-ZCL7RZPH.js → stop-OCEFE7PM.js} +5 -5
  258. package/dist/cli/{sync-WM4JLGXF.js → sync-6DQ2OAMG.js} +6 -6
  259. package/dist/cli/{tasks-RU6AAJKD.js → tasks-BIZI4QJF.js} +30 -5
  260. package/dist/cli/{tasks-54WNYQZS.js → tasks-Q2XYKLX6.js} +5 -5
  261. package/dist/cli/{telemetry-RQFRJRBZ.js → telemetry-DCWQTH2I.js} +2 -2
  262. package/dist/cli/{templates-6H4CTUCW.js → templates-Q3QZQZ62.js} +2 -2
  263. package/dist/cli/{testing-S7FCPHW5.js → testing-PTDKLHX3.js} +5 -5
  264. package/dist/cli/{token-BDRGEO3E.js → token-BZEEYQHF.js} +5 -5
  265. package/dist/cli/{transcript-DVV4EFPG.js → transcript-ZY6UF3TU.js} +2 -2
  266. package/dist/cli/{update-BD77ORMO.js → update-E5PECNWK.js} +5 -5
  267. package/dist/cli/{upgrade-EDQ7F6OX.js → upgrade-E6M4ERKP.js} +5 -5
  268. package/dist/cli/{verify-VOJRQQE2.js → verify-474GA75M.js} +12 -7
  269. package/dist/cli/{web-BPCE3X2V.js → web-R7LXSDEG.js} +2 -2
  270. package/dist/cli/{workgraph-ZKOFWUUE.js → workgraph-LWSTY3JY.js} +6 -6
  271. package/dist/cli/{worktree-2UEPNBJC.js → worktree-3B5JR6N7.js} +4 -5
  272. package/dist/cli/{worktree-2HHJT5BS.js → worktree-ZCJAH23Z.js} +12 -14
  273. package/package.json +16 -14
  274. package/studio-dist/client/_app/immutable/chunks/{CwQ8nAoh.js → 6tOJRYtC.js} +1 -1
  275. package/studio-dist/client/_app/immutable/chunks/{C87Q3uxm.js → Bb5_AOYB.js} +1 -1
  276. package/studio-dist/client/_app/immutable/chunks/C2a5FdIt.js +1 -0
  277. package/studio-dist/client/_app/immutable/chunks/{Dv66614U.js → DdIqZ0F-.js} +1 -1
  278. package/studio-dist/client/_app/immutable/chunks/{Js_lZuOv.js → DtBpLaMM.js} +1 -1
  279. package/studio-dist/client/_app/immutable/chunks/{EZwHPWle.js → h4IOtB0S.js} +1 -1
  280. package/studio-dist/client/_app/immutable/entry/{app.C2oQiIiz.js → app.Bu2fyKEV.js} +2 -2
  281. package/studio-dist/client/_app/immutable/entry/start.CBBzjkal.js +1 -0
  282. package/studio-dist/client/_app/immutable/nodes/{0.DaE6eVaG.js → 0.D0Q67wN6.js} +1 -1
  283. package/studio-dist/client/_app/immutable/nodes/{1.D0Mb3i_7.js → 1.Cx9rAK7i.js} +1 -1
  284. package/studio-dist/client/_app/immutable/nodes/{15.ChRO-4dz.js → 15.DnOsli29.js} +1 -1
  285. package/studio-dist/client/_app/immutable/nodes/{16.fltF2wse.js → 16.CrxwCKGy.js} +1 -1
  286. package/studio-dist/client/_app/immutable/nodes/{17.DnYjMhyj.js → 17.Cdh0_9mm.js} +1 -1
  287. package/studio-dist/client/_app/immutable/nodes/{18.DYVIAC9a.js → 18.8GsoNI5O.js} +1 -1
  288. package/studio-dist/client/_app/immutable/nodes/{20.CVBcbjBW.js → 20.BJG6Nl3w.js} +1 -1
  289. package/studio-dist/client/_app/immutable/nodes/{24.Bfswm8Y5.js → 24.j8WC-gjA.js} +1 -1
  290. package/studio-dist/client/_app/immutable/nodes/25.BlW7cJd4.js +39 -0
  291. package/studio-dist/client/_app/immutable/nodes/{26.D3RoTHoD.js → 26.C5RluMQM.js} +1 -1
  292. package/studio-dist/client/_app/immutable/nodes/{28.D64RBcfs.js → 28.B9m_UNTl.js} +1 -1
  293. package/studio-dist/client/_app/immutable/nodes/{29.yfuBeH1x.js → 29.BLFaoK4P.js} +1 -1
  294. package/studio-dist/client/_app/immutable/nodes/{3.ezhkaJvt.js → 3.BhtcETod.js} +1 -1
  295. package/studio-dist/client/_app/version.json +1 -1
  296. package/studio-dist/server/chunks/{0-BKQLYEeE.js → 0-3ISI_Jd4.js} +3 -3
  297. package/studio-dist/server/chunks/1-CM2aVyEP.js +9 -0
  298. package/studio-dist/server/chunks/{15-DuSvkmiZ.js → 15-3X9-99yQ.js} +3 -3
  299. package/studio-dist/server/chunks/{16-DJVePzvS.js → 16-CpB7uymk.js} +3 -3
  300. package/studio-dist/server/chunks/{17-D8K9-EPJ.js → 17-BwPBOkXY.js} +3 -3
  301. package/studio-dist/server/chunks/{18-D5FUPGnv.js → 18-4rPYGgn2.js} +3 -3
  302. package/studio-dist/server/chunks/{2-DQaIET_o.js → 2-q7c9jKfs.js} +6 -6
  303. package/studio-dist/server/chunks/{20-CmHgNZFV.js → 20-BRURJXYm.js} +3 -3
  304. package/studio-dist/server/chunks/{23-D194DGVi.js → 23-DEuC4HS6.js} +3 -2
  305. package/studio-dist/server/chunks/{24-CfuHWHgd.js → 24-guuvcnQd.js} +5 -4
  306. package/studio-dist/server/chunks/{25-bm3BDSum.js → 25-Cu45aO6X.js} +618 -36
  307. package/studio-dist/server/chunks/{26-DRlhAbrf.js → 26-CbjqXxSv.js} +15 -14
  308. package/studio-dist/server/chunks/{28-DeYe2rpm.js → 28-CiVv4jji.js} +3 -3
  309. package/studio-dist/server/chunks/{29-d_lZvJg3.js → 29-CHrYKy9L.js} +6 -5
  310. package/studio-dist/server/chunks/{3-BrE1-gTA.js → 3-dGuWwuGL.js} +4 -4
  311. package/studio-dist/server/chunks/30-CZYg7-qi.js +94 -0
  312. package/studio-dist/server/chunks/{_layout.svelte-BeqNMCvk.js → _layout.svelte-BtFiGIEp.js} +4 -4
  313. package/studio-dist/server/chunks/{_page.svelte-Dm8y5a8S.js → _page.svelte-Bazc0M-R.js} +3 -3
  314. package/studio-dist/server/chunks/{_page.svelte-V7BTZinR.js → _page.svelte-C3zGtsso.js} +9 -8
  315. package/studio-dist/server/chunks/{_page.svelte-CJVF_ySt.js → _page.svelte-C7HQSp26.js} +3 -3
  316. package/studio-dist/server/chunks/{_page.svelte-Bchzzf-O.js → _page.svelte-CGmJXo2R.js} +3 -3
  317. package/studio-dist/server/chunks/{_page.svelte-CkXCx1iz.js → _page.svelte-CQVvPMmQ.js} +3 -3
  318. package/studio-dist/server/chunks/{_page.svelte-DIx7Hcw-.js → _page.svelte-CndKFWTU.js} +3 -3
  319. package/studio-dist/server/chunks/{_page.svelte-Ds0GMs_q.js → _page.svelte-CpWAUdOW.js} +5 -5
  320. package/studio-dist/server/chunks/{_page.svelte-DM-MP-Vl.js → _page.svelte-DWXNbjU9.js} +3 -3
  321. package/studio-dist/server/chunks/{_page.svelte-B7xxx6BP.js → _page.svelte-DciYSvHg.js} +4 -4
  322. package/studio-dist/server/chunks/{_page.svelte-DnmZYECG.js → _page.svelte-FsmVvOW2.js} +3 -3
  323. package/studio-dist/server/chunks/{_page.svelte-Cx9Ptecp.js → _page.svelte-_ePwQLv-.js} +2 -2
  324. package/studio-dist/server/chunks/{_server.ts-B5vYKkI6.js → _server.ts--7OuOtTn.js} +1 -2
  325. package/studio-dist/server/chunks/{_server.ts-Cd_KHxRr.js → _server.ts-BDyyTu-K.js} +2 -2
  326. package/studio-dist/server/chunks/{_server.ts-YtGAClvW.js → _server.ts-Bqqug0HB.js} +10 -8
  327. package/studio-dist/server/chunks/{_server.ts-CcQ0AQoo.js → _server.ts-C_2-lCv8.js} +6 -5
  328. package/studio-dist/server/chunks/{_server.ts-6A72NyG7.js → _server.ts-Cr0M7RVU.js} +2 -2
  329. package/studio-dist/server/chunks/{_server.ts-BKZlM7rp.js → _server.ts-Csp0H96s.js} +2 -2
  330. package/studio-dist/server/chunks/{_server.ts-DdCviCsN.js → _server.ts-CyTTBEcl.js} +4 -4
  331. package/studio-dist/server/chunks/{_server.ts-Ck-oreiA.js → _server.ts-D6VzZhEs.js} +3 -3
  332. package/studio-dist/server/chunks/{_server.ts-b2YIpIsi.js → _server.ts-D9u8o_fg.js} +3 -3
  333. package/studio-dist/server/chunks/{_server.ts-XLV5SvjH.js → _server.ts-NPYD7LXS.js} +2 -2
  334. package/studio-dist/server/chunks/{_server.ts-CqO357sV.js → _server.ts-Te-2tjen.js} +2 -2
  335. package/studio-dist/server/chunks/{_server.ts-OPrTc7WI.js → _server.ts-ZJufMUl-.js} +2 -2
  336. package/studio-dist/server/chunks/{client-DR3j81J8.js → client-DKCgIuPq.js} +2 -2
  337. package/studio-dist/server/chunks/{error.svelte-NY-X_Qdt.js → error.svelte-gYXatkJM.js} +3 -3
  338. package/studio-dist/server/chunks/{explorer-loader-CP09K03H.js → explorer-loader-fHkiu8Z4.js} +8 -6
  339. package/studio-dist/server/chunks/{http-Dz72j56i.js → http-elrAoEmj.js} +2 -2
  340. package/studio-dist/server/chunks/{internal-y7btLoII.js → internal-C4t8_O0Q.js} +2 -2
  341. package/studio-dist/server/chunks/{lane-transition-lM2ngbbc.js → lane-transition-tca216Ny.js} +10 -3
  342. package/studio-dist/server/chunks/{operations-registry-DKEHmggR.js → operations-registry-C9N47F53.js} +350 -471
  343. package/studio-dist/server/chunks/{stores-Cm-Qj76R.js → stores-CLlSxFBW.js} +2 -2
  344. package/studio-dist/server/chunks/{tasks-sWuEmiGW.js → tasks-Ch-fdBjA.js} +2 -2
  345. package/studio-dist/server/index.js +1 -1
  346. package/studio-dist/server/manifest.js +29 -29
  347. package/dist/cli/canon-docs-2GTOLF7Y.js +0 -26
  348. package/dist/cli/chunk-IGM44F43.js +0 -33
  349. package/dist/cli/conduit-STEBYJTU.js +0 -535
  350. package/dist/cli/conduit-XYYPJYUF.js +0 -319
  351. package/dist/cli/hygiene-QVIG57RZ.js +0 -55
  352. package/studio-dist/client/_app/immutable/chunks/BXnpxR_0.js +0 -1
  353. package/studio-dist/client/_app/immutable/entry/start.BolRa540.js +0 -1
  354. package/studio-dist/client/_app/immutable/nodes/25.B_7VqHJ6.js +0 -39
  355. package/studio-dist/server/chunks/1-ClOr3JN3.js +0 -9
  356. package/studio-dist/server/chunks/30-BHsj4oeh.js +0 -105
@@ -15,14 +15,14 @@
15
15
  })();
16
16
  import {
17
17
  lazyOperation
18
- } from "./chunk-JRDAITPC.js";
18
+ } from "./chunk-D75KPNMP.js";
19
19
  import {
20
20
  defineTypedHandler,
21
21
  lafsError,
22
22
  lafsSuccess,
23
23
  typedDispatch,
24
24
  wrapCoreResult
25
- } from "./chunk-QWNKLLLG.js";
25
+ } from "./chunk-TM72T27J.js";
26
26
  import {
27
27
  envelopeToEngineResult,
28
28
  errorResult,
@@ -64,6 +64,7 @@ var taskWorkHistory = lazyOperation(
64
64
  );
65
65
  var reqAdd = lazyOperation(async () => (await import("@cleocode/core/tasks/req")).reqAdd);
66
66
  var reqReplace = lazyOperation(async () => (await import("@cleocode/core/tasks/req")).reqReplace);
67
+ var reqMove = lazyOperation(async () => (await import("@cleocode/core/tasks/req")).reqMove);
67
68
  var reqList = lazyOperation(async () => (await import("@cleocode/core/tasks/req")).reqList);
68
69
  var reqMigrate = lazyOperation(async () => (await import("@cleocode/core/tasks/req")).reqMigrate);
69
70
  var tasksAddBatchOp = lazyOperation(
@@ -483,7 +484,9 @@ var _tasksTypedHandler = defineTypedHandler("tasks", {
483
484
  reparentTo: params.reparentTo,
484
485
  force: params.force,
485
486
  cascadeThreshold: params.cascadeThreshold,
486
- allowCascade: params.allowCascade
487
+ allowCascade: params.allowCascade,
488
+ kind: params.kind,
489
+ replacedBy: params.replacedBy
487
490
  }),
488
491
  "cancel"
489
492
  );
@@ -754,6 +757,7 @@ var MUTATE_OPS = /* @__PURE__ */ new Set([
754
757
  "saga.reconcile",
755
758
  "req.add",
756
759
  "req.replace",
760
+ "req.move",
757
761
  "req.migrate"
758
762
  ]);
759
763
  async function sagaCreate(params) {
@@ -929,7 +933,7 @@ var TasksHandler = class {
929
933
  return unsupportedOp("mutate", "tasks", operation, startTime);
930
934
  }
931
935
  try {
932
- if (operation === "req.add" || operation === "req.replace" || operation === "req.migrate") {
936
+ if (operation === "req.add" || operation === "req.replace" || operation === "req.move" || operation === "req.migrate") {
933
937
  if (typeof params?.taskId !== "string" || !params.taskId.trim()) {
934
938
  return errorResult(
935
939
  "mutate",
@@ -975,6 +979,26 @@ var TasksHandler = class {
975
979
  });
976
980
  return wrapResult({ success: true, data: data2 }, "mutate", "tasks", operation, startTime);
977
981
  }
982
+ if (operation === "req.move") {
983
+ if (typeof params.criterion !== "string" || !params.criterion.trim() || typeof params.to !== "string" || !params.to.trim()) {
984
+ return errorResult(
985
+ "mutate",
986
+ "tasks",
987
+ operation,
988
+ // @sync-invariant none:input-shape a missing criterion or target is refused before any read; nothing is written
989
+ "E_INVALID_INPUT",
990
+ "criterion (AC<n>) and to (target task) are required; use req move <task> <ACn> --to <task>",
991
+ startTime
992
+ );
993
+ }
994
+ const data2 = await reqMove(
995
+ getProjectRoot(),
996
+ params.taskId,
997
+ params.criterion,
998
+ params.to.trim()
999
+ );
1000
+ return wrapResult({ success: true, data: data2 }, "mutate", "tasks", operation, startTime);
1001
+ }
978
1002
  if (params.apply !== true) {
979
1003
  return errorResult(
980
1004
  "mutate",
@@ -1136,6 +1160,7 @@ var TasksHandler = class {
1136
1160
  "saga.reconcile",
1137
1161
  "req.add",
1138
1162
  "req.replace",
1163
+ "req.move",
1139
1164
  "req.migrate"
1140
1165
  ]
1141
1166
  };
@@ -1144,4 +1169,4 @@ var TasksHandler = class {
1144
1169
  export {
1145
1170
  TasksHandler
1146
1171
  };
1147
- //# sourceMappingURL=tasks-RU6AAJKD.js.map
1172
+ //# sourceMappingURL=tasks-BIZI4QJF.js.map
@@ -18,9 +18,9 @@ import {
18
18
  } from "./chunk-YY66LFZF.js";
19
19
  import {
20
20
  dispatchFromCli
21
- } from "./chunk-OIS3BDSL.js";
22
- import "./chunk-6N6WGLXE.js";
21
+ } from "./chunk-YNBEP6TJ.js";
23
22
  import "./chunk-4VASFLUW.js";
23
+ import "./chunk-2NXQCE4N.js";
24
24
  import {
25
25
  defineCommand
26
26
  } from "./chunk-IVN46UST.js";
@@ -28,10 +28,10 @@ import "./chunk-QKMBWYAS.js";
28
28
  import {
29
29
  cliError,
30
30
  cliOutput
31
- } from "./chunk-ESI6Q4OS.js";
31
+ } from "./chunk-FD6EQLV7.js";
32
32
  import "./chunk-6JSJNYH2.js";
33
33
  import "./chunk-D7BAQNV2.js";
34
- import "./chunk-JRDAITPC.js";
34
+ import "./chunk-D75KPNMP.js";
35
35
 
36
36
  // packages/cleo/src/cli/commands/tasks.ts
37
37
  var showSub = defineCommand({
@@ -210,4 +210,4 @@ var tasksCommand = defineCommand({
210
210
  export {
211
211
  tasksCommand
212
212
  };
213
- //# sourceMappingURL=tasks-54WNYQZS.js.map
213
+ //# sourceMappingURL=tasks-Q2XYKLX6.js.map
@@ -21,7 +21,7 @@ import {
21
21
  } from "./chunk-IVN46UST.js";
22
22
  import {
23
23
  cliOutput
24
- } from "./chunk-ESI6Q4OS.js";
24
+ } from "./chunk-FD6EQLV7.js";
25
25
  import "./chunk-6JSJNYH2.js";
26
26
 
27
27
  // packages/cleo/src/cli/commands/telemetry.ts
@@ -117,4 +117,4 @@ var telemetryCommand = defineCommand({
117
117
  export {
118
118
  telemetryCommand
119
119
  };
120
- //# sourceMappingURL=telemetry-RQFRJRBZ.js.map
120
+ //# sourceMappingURL=telemetry-DCWQTH2I.js.map
@@ -21,7 +21,7 @@ import {
21
21
  import {
22
22
  cliError,
23
23
  cliOutput
24
- } from "./chunk-ESI6Q4OS.js";
24
+ } from "./chunk-FD6EQLV7.js";
25
25
  import "./chunk-6JSJNYH2.js";
26
26
 
27
27
  // packages/cleo/src/cli/commands/templates/diff.ts
@@ -606,4 +606,4 @@ var templatesCommand = defineCommand({
606
606
  export {
607
607
  templatesCommand
608
608
  };
609
- //# sourceMappingURL=templates-6H4CTUCW.js.map
609
+ //# sourceMappingURL=templates-Q3QZQZ62.js.map
@@ -15,18 +15,18 @@
15
15
  })();
16
16
  import {
17
17
  dispatchFromCli
18
- } from "./chunk-OIS3BDSL.js";
19
- import "./chunk-6N6WGLXE.js";
18
+ } from "./chunk-YNBEP6TJ.js";
20
19
  import "./chunk-4VASFLUW.js";
20
+ import "./chunk-2NXQCE4N.js";
21
21
  import {
22
22
  defineCommand,
23
23
  showUsage
24
24
  } from "./chunk-IVN46UST.js";
25
25
  import "./chunk-QKMBWYAS.js";
26
- import "./chunk-ESI6Q4OS.js";
26
+ import "./chunk-FD6EQLV7.js";
27
27
  import "./chunk-6JSJNYH2.js";
28
28
  import "./chunk-D7BAQNV2.js";
29
- import "./chunk-JRDAITPC.js";
29
+ import "./chunk-D75KPNMP.js";
30
30
 
31
31
  // packages/cleo/src/cli/commands/testing.ts
32
32
  var validateCommand = defineCommand({
@@ -144,4 +144,4 @@ var testingCommand = defineCommand({
144
144
  export {
145
145
  testingCommand
146
146
  };
147
- //# sourceMappingURL=testing-S7FCPHW5.js.map
147
+ //# sourceMappingURL=testing-PTDKLHX3.js.map
@@ -15,9 +15,9 @@
15
15
  })();
16
16
  import {
17
17
  dispatchFromCli
18
- } from "./chunk-OIS3BDSL.js";
19
- import "./chunk-6N6WGLXE.js";
18
+ } from "./chunk-YNBEP6TJ.js";
20
19
  import "./chunk-4VASFLUW.js";
20
+ import "./chunk-2NXQCE4N.js";
21
21
  import {
22
22
  defineCommand,
23
23
  showUsage
@@ -25,10 +25,10 @@ import {
25
25
  import "./chunk-QKMBWYAS.js";
26
26
  import {
27
27
  cliOutput
28
- } from "./chunk-ESI6Q4OS.js";
28
+ } from "./chunk-FD6EQLV7.js";
29
29
  import "./chunk-6JSJNYH2.js";
30
30
  import "./chunk-D7BAQNV2.js";
31
- import "./chunk-JRDAITPC.js";
31
+ import "./chunk-D75KPNMP.js";
32
32
 
33
33
  // packages/cleo/src/cli/commands/token.ts
34
34
  import { readFileSync } from "node:fs";
@@ -218,4 +218,4 @@ var tokenCommand = defineCommand({
218
218
  export {
219
219
  tokenCommand
220
220
  };
221
- //# sourceMappingURL=token-BDRGEO3E.js.map
221
+ //# sourceMappingURL=token-BZEEYQHF.js.map
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  cliError,
22
22
  cliOutput
23
- } from "./chunk-ESI6Q4OS.js";
23
+ } from "./chunk-FD6EQLV7.js";
24
24
  import "./chunk-6JSJNYH2.js";
25
25
 
26
26
  // packages/cleo/src/cli/commands/transcript.ts
@@ -437,4 +437,4 @@ var transcriptCommand = defineCommand({
437
437
  export {
438
438
  transcriptCommand
439
439
  };
440
- //# sourceMappingURL=transcript-DVV4EFPG.js.map
440
+ //# sourceMappingURL=transcript-ZY6UF3TU.js.map
@@ -21,9 +21,9 @@ import {
21
21
  dispatchRaw,
22
22
  handleRawError,
23
23
  maybeEmitDescribe
24
- } from "./chunk-OIS3BDSL.js";
25
- import "./chunk-6N6WGLXE.js";
24
+ } from "./chunk-YNBEP6TJ.js";
26
25
  import "./chunk-4VASFLUW.js";
26
+ import "./chunk-2NXQCE4N.js";
27
27
  import {
28
28
  defineCommand,
29
29
  showUsage
@@ -32,10 +32,10 @@ import "./chunk-QKMBWYAS.js";
32
32
  import {
33
33
  cliError,
34
34
  cliOutput
35
- } from "./chunk-ESI6Q4OS.js";
35
+ } from "./chunk-FD6EQLV7.js";
36
36
  import "./chunk-6JSJNYH2.js";
37
37
  import "./chunk-D7BAQNV2.js";
38
- import "./chunk-JRDAITPC.js";
38
+ import "./chunk-D75KPNMP.js";
39
39
 
40
40
  // packages/cleo/src/cli/commands/update.ts
41
41
  import { TASK_SEVERITIES } from "@cleocode/contracts/enums.js";
@@ -475,4 +475,4 @@ var updateCommand = defineCommand({
475
475
  export {
476
476
  updateCommand
477
477
  };
478
- //# sourceMappingURL=update-BD77ORMO.js.map
478
+ //# sourceMappingURL=update-E5PECNWK.js.map
@@ -15,13 +15,13 @@
15
15
  })();
16
16
  import {
17
17
  getWorkflowTemplatesDir
18
- } from "./chunk-G63BB37P.js";
18
+ } from "./chunk-2FVSEFH6.js";
19
19
  import {
20
20
  createUpgradeProgress
21
21
  } from "./chunk-W3JLYKKY.js";
22
- import "./chunk-YJQL26VS.js";
22
+ import "./chunk-3FLFKMKA.js";
23
23
  import "./chunk-GZFVDR44.js";
24
- import "./chunk-64OLQ6OH.js";
24
+ import "./chunk-7VAYYOTQ.js";
25
25
  import {
26
26
  negatedFlag
27
27
  } from "./chunk-47JYZAMS.js";
@@ -32,7 +32,7 @@ import {
32
32
  import {
33
33
  cliError,
34
34
  cliOutput
35
- } from "./chunk-ESI6Q4OS.js";
35
+ } from "./chunk-FD6EQLV7.js";
36
36
  import "./chunk-6JSJNYH2.js";
37
37
 
38
38
  // packages/cleo/src/cli/commands/upgrade.ts
@@ -242,4 +242,4 @@ var upgradeCommand = defineCommand({
242
242
  export {
243
243
  upgradeCommand
244
244
  };
245
- //# sourceMappingURL=upgrade-EDQ7F6OX.js.map
245
+ //# sourceMappingURL=upgrade-E6M4ERKP.js.map
@@ -18,9 +18,9 @@ import {
18
18
  } from "./chunk-47JYZAMS.js";
19
19
  import {
20
20
  dispatchFromCli
21
- } from "./chunk-OIS3BDSL.js";
22
- import "./chunk-6N6WGLXE.js";
21
+ } from "./chunk-YNBEP6TJ.js";
23
22
  import "./chunk-4VASFLUW.js";
23
+ import "./chunk-2NXQCE4N.js";
24
24
  import {
25
25
  defineCommand,
26
26
  showUsage
@@ -29,10 +29,10 @@ import "./chunk-QKMBWYAS.js";
29
29
  import {
30
30
  cliError,
31
31
  cliOutput
32
- } from "./chunk-ESI6Q4OS.js";
32
+ } from "./chunk-FD6EQLV7.js";
33
33
  import "./chunk-6JSJNYH2.js";
34
34
  import "./chunk-D7BAQNV2.js";
35
- import "./chunk-JRDAITPC.js";
35
+ import "./chunk-D75KPNMP.js";
36
36
 
37
37
  // packages/cleo/src/cli/commands/verify.ts
38
38
  import { ExitCode } from "@cleocode/contracts";
@@ -67,7 +67,11 @@ var verifyCommand = defineCommand({
67
67
  },
68
68
  evidence: {
69
69
  type: "string",
70
- description: `Evidence for the gate (T832/ADR-051). Semicolon-separated atoms: 'commit:<sha>', 'files:<p1,p2>', 'test-run:<report.json>' (a runner's JSON report with test counts: vitest --reporter=json / jest --json numTotalTests,numPassedTests,numFailedTests; or a runner's summary {total,passed,failed,skipped}, e.g. {"total":43,"passed":42,"failed":0,"skipped":1}; or node --test {tests,pass,fail,skipped}; or a Playwright --reporter=json report, whose suites[].file are the files run; counts must be non-negative integers that add up to the total, and any failure refuses. Several test-run: atoms in one write cover the change together, e.g. a vitest and a Playwright report. It proves only what the file says: tool:test or ci:<pr> prove the run), 'qa-run:<receipt.json>' (qaPassed without re-running, one per check: {"kind":"typecheck"|"lint","command":[...],"exitCode":0,"diagnostics":{"errors":0},"roots":["src"],"startTime":<epoch ms>}; bound to the change like test-run), 'tool:<name>' (e.g. tool:test, tool:test-affected, tool:lint), 'url:<url>', 'note:<text>', 'ci:<pr>' (required CI green on the merged PR's merge commit; testsPassed/qaPassed, opt-in via evidence.ciSatisfies).`
70
+ description: `Evidence for the gate (T832/ADR-051). Semicolon-separated atoms: 'commit:<sha>', 'files:<p1,p2>', 'test-run:<report.json>' (a runner's JSON report with test counts: vitest --reporter=json / jest --json numTotalTests,numPassedTests,numFailedTests; or a runner's summary {total,passed,failed,skipped}, e.g. {"total":43,"passed":42,"failed":0,"skipped":1}; or node --test {tests,pass,fail,skipped}; or a Playwright --reporter=json report, whose suites[].file are the files run; or a JUnit XML report (cargo nextest, pytest --junitxml) or libtest JSON lines (cargo test --format json); counts must be non-negative integers that add up to the total, and any failure refuses. Several test-run: atoms in one write cover the change together, e.g. a vitest and a Playwright report. It proves only what the file says: tool:test or ci:<pr> prove the run), 'qa-run:<receipt.json>' (qaPassed without re-running, one per check: {"kind":"typecheck"|"lint","command":[...],"exitCode":0,"diagnostics":{"errors":0},"roots":["src"],"startTime":<epoch ms>}; bound to the change like test-run), 'tool:<name>' (e.g. tool:test, tool:test-affected, tool:lint), 'url:<url>', 'note:<text>', 'ci:<pr>' (required CI green on the merged PR's merge commit; testsPassed/qaPassed, opt-in via evidence.ciSatisfies), 'ci-run:<runId>' (a green run of .github/workflows/repeat-run.yml, dispatched on the default branch, that ran one test file N times; checked on GitHub and against its uploaded report; the test file must be one the task changed or one a linked criterion names, and the run commit must contain the change; links criteria that need a heavy or repeated run, never testsPassed on its own), 'deploy:<provider>/<deploymentId>@<sha>|<probe-url>' (CLEO GETs the probe URL: it must return 2xx and name the deployed SHA in an X-Commit/X-Version header or the body, and that SHA must contain the implemented commits; satisfies only the gates listed in evidence.deploySatisfies, none by default).`
71
+ },
72
+ criterion: {
73
+ type: "boolean",
74
+ description: "Record a per-criterion receipt instead of a gate (T14199): --evidence takes one satisfies:<id>#AC<n> naming this task's criterion and a decision:<id> or a files: atom naming stored documents. It covers only that criterion in the AC-coverage gate and never sets implemented, testsPassed or qaPassed. Refused for a criterion that names a code path."
71
75
  },
72
76
  explain: {
73
77
  type: "boolean",
@@ -111,7 +115,7 @@ var verifyCommand = defineCommand({
111
115
  await showUsage(cmd);
112
116
  return;
113
117
  }
114
- const isWrite = !!(args.gate || args.all || args.reset);
118
+ const isWrite = !!(args.gate || args.all || args.reset || args.criterion);
115
119
  const priorFresh = process.env["CLEO_EVIDENCE_FRESH"];
116
120
  if (args.fresh === true) process.env["CLEO_EVIDENCE_FRESH"] = "1";
117
121
  try {
@@ -195,6 +199,7 @@ var verifyCommand = defineCommand({
195
199
  evidence: args.evidence,
196
200
  ...typeof args.req === "string" ? { req: args.req } : {},
197
201
  sharedEvidence: args["shared-evidence"] ?? false,
202
+ ...args.criterion === true ? { criterion: true } : {},
198
203
  // T12621: citty turns `--no-run` into `run: false`; read it through the helper.
199
204
  ...isWrite && negatedFlag(args, "run") ? { noRun: true } : {},
200
205
  ...isWrite && args["run-typed"] === true ? { runTyped: true } : {}
@@ -212,4 +217,4 @@ var verifyCommand = defineCommand({
212
217
  export {
213
218
  verifyCommand
214
219
  };
215
- //# sourceMappingURL=verify-VOJRQQE2.js.map
220
+ //# sourceMappingURL=verify-474GA75M.js.map
@@ -31,7 +31,7 @@ import {
31
31
  } from "./chunk-IVN46UST.js";
32
32
  import {
33
33
  cliOutput
34
- } from "./chunk-ESI6Q4OS.js";
34
+ } from "./chunk-FD6EQLV7.js";
35
35
  import "./chunk-6JSJNYH2.js";
36
36
 
37
37
  // packages/cleo/src/cli/commands/web.ts
@@ -272,4 +272,4 @@ export {
272
272
  openBrowser,
273
273
  webCommand
274
274
  };
275
- //# sourceMappingURL=web-BPCE3X2V.js.map
275
+ //# sourceMappingURL=web-R7LXSDEG.js.map
@@ -36,7 +36,7 @@ var validateCommand = defineCommand({
36
36
  },
37
37
  async run({ args }) {
38
38
  const { validateWorkGraphScaffold } = await import("@cleocode/core/workgraph");
39
- const { cliOutput } = await import("./renderers-37XPXD3K.js");
39
+ const { cliOutput } = await import("./renderers-AMSXAXLY.js");
40
40
  const filePath = resolve(String(args.file));
41
41
  let raw;
42
42
  try {
@@ -81,7 +81,7 @@ var applyCommand = defineCommand({
81
81
  },
82
82
  async run({ args }) {
83
83
  const { applyWorkGraphScaffold } = await import("@cleocode/core/workgraph");
84
- const { cliOutput } = await import("./renderers-37XPXD3K.js");
84
+ const { cliOutput } = await import("./renderers-AMSXAXLY.js");
85
85
  const filePath = resolve(String(args.file));
86
86
  let raw;
87
87
  try {
@@ -128,7 +128,7 @@ var planCommand = defineCommand({
128
128
  async run({ args }) {
129
129
  const { generatePlanningDoc } = await import("@cleocode/core/workgraph");
130
130
  const { getProjectRoot } = await import("@cleocode/core");
131
- const { cliOutput } = await import("./renderers-37XPXD3K.js");
131
+ const { cliOutput } = await import("./renderers-AMSXAXLY.js");
132
132
  const projectRoot = getProjectRoot();
133
133
  const audience = String(args.audience) === "agent" ? "agent" : "maintainer";
134
134
  const result = await generatePlanningDoc(projectRoot, {
@@ -147,7 +147,7 @@ var structureCommand = defineCommand({
147
147
  const { validateWorkGraphStructure } = await import("@cleocode/core/workgraph");
148
148
  const { taskList } = await import("@cleocode/core/internal");
149
149
  const { getProjectRoot } = await import("@cleocode/core");
150
- const { cliOutput } = await import("./renderers-37XPXD3K.js");
150
+ const { cliOutput } = await import("./renderers-AMSXAXLY.js");
151
151
  const projectRoot = getProjectRoot();
152
152
  const listResult = await taskList(projectRoot, { limit: 5e3 });
153
153
  const tasks = listResult.success ? listResult.data?.tasks ?? [] : [];
@@ -168,7 +168,7 @@ var statusCommand = defineCommand({
168
168
  },
169
169
  async run() {
170
170
  const { sagas, getProjectRoot } = await import("@cleocode/core");
171
- const { cliOutput } = await import("./renderers-37XPXD3K.js");
171
+ const { cliOutput } = await import("./renderers-AMSXAXLY.js");
172
172
  const projectRoot = getProjectRoot();
173
173
  const listResult = await sagas.sagaList(projectRoot);
174
174
  if (!listResult.success) {
@@ -229,4 +229,4 @@ var workgraphCommand = defineCommand({
229
229
  export {
230
230
  workgraphCommand
231
231
  };
232
- //# sourceMappingURL=workgraph-ZKOFWUUE.js.map
232
+ //# sourceMappingURL=workgraph-LWSTY3JY.js.map
@@ -34,10 +34,9 @@ import {
34
34
  var log = getLogger("domain:worktree");
35
35
  var ALL_CATEGORIES = [
36
36
  "active",
37
- "stale",
38
- "merged",
39
- "orphan",
40
- "locked"
37
+ "redundant",
38
+ "keep",
39
+ "unknown"
41
40
  ];
42
41
  function coerceStatusFilter(value) {
43
42
  if (value === void 0 || value === null) return void 0;
@@ -284,4 +283,4 @@ var WorktreeHandler = class {
284
283
  export {
285
284
  WorktreeHandler
286
285
  };
287
- //# sourceMappingURL=worktree-2UEPNBJC.js.map
286
+ //# sourceMappingURL=worktree-3B5JR6N7.js.map
@@ -15,9 +15,9 @@
15
15
  })();
16
16
  import {
17
17
  dispatchFromCli
18
- } from "./chunk-OIS3BDSL.js";
19
- import "./chunk-6N6WGLXE.js";
18
+ } from "./chunk-YNBEP6TJ.js";
20
19
  import "./chunk-4VASFLUW.js";
20
+ import "./chunk-2NXQCE4N.js";
21
21
  import {
22
22
  defineCommand,
23
23
  showUsage
@@ -26,19 +26,19 @@ import "./chunk-QKMBWYAS.js";
26
26
  import {
27
27
  cliError,
28
28
  cliOutput
29
- } from "./chunk-ESI6Q4OS.js";
29
+ } from "./chunk-FD6EQLV7.js";
30
30
  import "./chunk-6JSJNYH2.js";
31
31
  import "./chunk-D7BAQNV2.js";
32
- import "./chunk-JRDAITPC.js";
32
+ import "./chunk-D75KPNMP.js";
33
33
 
34
34
  // packages/cleo/src/cli/commands/worktree.ts
35
35
  import readline from "node:readline";
36
36
  import { getProjectRoot, listWorktrees } from "@cleocode/core/internal";
37
- var VALID_STATUS_VALUES = ["active", "stale", "merged", "orphan", "locked"];
37
+ var VALID_STATUS_VALUES = ["active", "redundant", "keep", "unknown"];
38
38
  var listCommand = defineCommand({
39
39
  meta: {
40
40
  name: "list",
41
- description: "List worktrees attached to this project with status classification (active|stale|merged|orphan|locked)."
41
+ description: "List worktrees attached to this project with status classification (active|redundant|keep|unknown)."
42
42
  },
43
43
  args: {
44
44
  status: {
@@ -78,7 +78,7 @@ async function promptYesNo(question) {
78
78
  }
79
79
  function renderOrphanPreamble(wt) {
80
80
  return [
81
- "Orphaned worktree found:",
81
+ "Redundant worktree found:",
82
82
  ` Path: ${wt.path}`,
83
83
  ` Branch: ${wt.branch}${wt.isMerged ? " (merged to main)" : ""}`,
84
84
  ` Task status: ${wt.owningTaskStatus ?? "(missing)"}`,
@@ -89,12 +89,12 @@ function renderOrphanPreamble(wt) {
89
89
  var pruneCommand = defineCommand({
90
90
  meta: {
91
91
  name: "prune",
92
- description: "Remove orphan/merged worktrees with per-orphan Y/N confirmation."
92
+ description: "Remove redundant worktrees with per-worktree Y/N confirmation."
93
93
  },
94
94
  args: {
95
95
  orphaned: {
96
96
  type: "boolean",
97
- description: "Prune worktrees classified as orphan or merged (required).",
97
+ description: "Prune worktrees classified as redundant (required).",
98
98
  default: false
99
99
  },
100
100
  yes: {
@@ -141,9 +141,7 @@ var pruneCommand = defineCommand({
141
141
  process.exit(1);
142
142
  return;
143
143
  }
144
- const candidates = listResult.data.worktrees.filter(
145
- (w) => w.statusCategory === "orphan" || w.statusCategory === "merged"
146
- );
144
+ const candidates = listResult.data.worktrees.filter((w) => w.statusCategory === "redundant");
147
145
  if (candidates.length === 0) {
148
146
  cliOutput(
149
147
  {
@@ -152,7 +150,7 @@ var pruneCommand = defineCommand({
152
150
  outcomes: [],
153
151
  errors: [],
154
152
  dryRun,
155
- message: "No orphan or merged worktrees found."
153
+ message: "No redundant worktrees found."
156
154
  },
157
155
  { command: "worktree-prune", operation: "worktree.prune" }
158
156
  );
@@ -368,4 +366,4 @@ var worktreeCommand = defineCommand({
368
366
  export {
369
367
  worktreeCommand
370
368
  };
371
- //# sourceMappingURL=worktree-2HHJT5BS.js.map
369
+ //# sourceMappingURL=worktree-ZCJAH23Z.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleocode/cleo",
3
- "version": "2026.10.27",
3
+ "version": "2026.11.1-canary.11",
4
4
  "description": "CLEO CLI — the assembled product consuming @cleocode/core",
5
5
  "type": "module",
6
6
  "main": "./dist/cli/index.js",
@@ -31,18 +31,18 @@
31
31
  "tree-sitter-rust": "0.23.1",
32
32
  "tree-sitter-typescript": "^0.23.2",
33
33
  "yaml": "^2.8.3",
34
- "@cleocode/adapters": "2026.10.27",
35
- "@cleocode/animations": "2026.10.27",
36
- "@cleocode/cant": "2026.10.27",
37
- "@cleocode/caamp": "2026.10.27",
38
- "@cleocode/contracts": "2026.10.27",
39
- "@cleocode/core": "2026.10.27",
40
- "@cleocode/lafs": "2026.10.27",
41
- "@cleocode/nexus": "2026.10.27",
42
- "@cleocode/paths": "2026.10.27",
43
- "@cleocode/playbooks": "2026.10.27",
44
- "@cleocode/runtime": "2026.10.27",
45
- "@cleocode/worktree": "2026.10.27"
34
+ "@cleocode/animations": "2026.11.1-canary.11",
35
+ "@cleocode/adapters": "2026.11.1-canary.11",
36
+ "@cleocode/caamp": "2026.11.1-canary.11",
37
+ "@cleocode/contracts": "2026.11.1-canary.11",
38
+ "@cleocode/lafs": "2026.11.1-canary.11",
39
+ "@cleocode/nexus": "2026.11.1-canary.11",
40
+ "@cleocode/cant": "2026.11.1-canary.11",
41
+ "@cleocode/paths": "2026.11.1-canary.11",
42
+ "@cleocode/worktree": "2026.11.1-canary.11",
43
+ "@cleocode/runtime": "2026.11.1-canary.11",
44
+ "@cleocode/playbooks": "2026.11.1-canary.11",
45
+ "@cleocode/core": "2026.11.1-canary.11"
46
46
  },
47
47
  "engines": {
48
48
  "node": ">=24.16.0"
@@ -71,6 +71,9 @@
71
71
  "url": "https://github.com/kryptobaseddev/cleo",
72
72
  "directory": "packages/cleo"
73
73
  },
74
+ "cleo": {
75
+ "channel": "canary"
76
+ },
74
77
  "scripts": {
75
78
  "gen:manifest": "node scripts/generate-command-manifest.mjs",
76
79
  "prebuild": "node scripts/generate-command-manifest.mjs --check",
@@ -79,7 +82,6 @@
79
82
  "pretypecheck": "node scripts/generate-command-manifest.mjs --check",
80
83
  "typecheck": "tsc --noEmit",
81
84
  "test": "cd ../.. && vitest run packages/cleo/src",
82
- "test:integration": "cd ../.. && vitest run --config packages/cleo/vitest.integration.config.ts",
83
85
  "postinstall": "node bin/postinstall.js && node scripts/postinstall-check-core.mjs"
84
86
  }
85
87
  }
@@ -1 +1 @@
1
- import"./DGftG5oL.js";import{c as e,o as t,s as n}from"./Js_lZuOv.js";var r={get data(){return e.data},get error(){return e.error},get form(){return e.form},get params(){return e.params},get route(){return e.route},get state(){return e.state},get status(){return e.status},get url(){return e.url}};Object.defineProperty({get from(){return n.current?n.current.from:null},get to(){return n.current?n.current.to:null},get type(){return n.current?n.current.type:null},get willUnload(){return n.current?n.current.willUnload:null},get delta(){return n.current?n.current.delta:null},get complete(){return n.current?n.current.complete:null}},`current`,{get(){throw Error(`Replace navigating.current.<prop> with navigating.<prop>`)}}),t.updated.check;var i=r;export{i as t};
1
+ import"./DGftG5oL.js";import{c as e,o as t,s as n}from"./DtBpLaMM.js";var r={get data(){return e.data},get error(){return e.error},get form(){return e.form},get params(){return e.params},get route(){return e.route},get state(){return e.state},get status(){return e.status},get url(){return e.url}};Object.defineProperty({get from(){return n.current?n.current.from:null},get to(){return n.current?n.current.to:null},get type(){return n.current?n.current.type:null},get willUnload(){return n.current?n.current.willUnload:null},get delta(){return n.current?n.current.delta:null},get complete(){return n.current?n.current.complete:null}},`current`,{get(){throw Error(`Replace navigating.current.<prop> with navigating.<prop>`)}}),t.updated.check;var i=r;export{i as t};
@@ -1 +1 @@
1
- import{$ as e,A as t,D as n,E as r,F as i,H as a,I as o,J as s,M as c,N as l,O as u,P as d,Q as f,X as p,Y as m,Z as h,at as g,d as _,et as v,k as y,lt as b,ot as x,ut as S,v as C,w}from"./DGftG5oL.js";import"./B8WnZMYa.js";import{a as T}from"./DZrdToAH.js";import{o as E}from"./CTLGzgdN.js";import{s as D}from"./EZwHPWle.js";var O=[`backlog`,`ready`,`running`,`review`,`blocked`,`done`,`cancelled`],k={backlog:`Backlog`,ready:`Ready`,running:`Running`,review:`Review`,blocked:`Blocked`,done:`Done`,cancelled:`Cancelled`},A={backlog:`Pending — not yet eligible to dispatch`,ready:`Dependencies met — eligible to spawn`,running:`A worker is actively executing`,review:`Awaiting verification gates / PR merge`,blocked:`Held by a dependency, blocker, or HITL gate`,done:`Completed`,cancelled:`Abandoned`};function j(e){return e?e.implemented===!0&&e.testsPassed===!0&&e.qaPassed===!0:!1}function M(e){return typeof e.unmetDependsCount==`number`&&e.unmetDependsCount>0}function N(e){return(e.depends??[]).length===0?!0:e.unmetDependsCount===0}function P(e){return e.status===`cancelled`?`cancelled`:e.status===`done`?`done`:e.status===`blocked`||typeof e.blockedBy==`string`&&e.blockedBy.trim().length>0||e.hitlPending===!0||M(e)?`blocked`:e.readyToComplete===!0||e.prAwaiting===!0||j(e.gates)?`review`:e.workerActive===!0||e.status===`active`?`running`:e.status===`pending`&&N(e)&&e.nextAction===`spawn-worker`?`ready`:`backlog`}function F(e,t,n){let r=new Map;for(let e of t)r.set(e.id,[]);for(let t of e){let e=n(t),i=r.get(e);i&&i.push(t)}return t.map(e=>{let t=r.get(e.id)??[];return{lane:e,cards:t,count:t.length}})}var I=t(`<div class="lane-empty svelte-vm5i0v"><!></div>`),L=t(`<span class="worker-dot svelte-vm5i0v" aria-label="Worker active" title="Worker active"></span>`),R=t(`<div role="gridcell"><!> <!></div>`),z=t(`<div role="row"><header class="lane-head svelte-vm5i0v"><span class="head-label svelte-vm5i0v"> </span> <!></header> <div class="lane-body svelte-vm5i0v"><!></div></div>`),B=t(`<div class="board-scroll svelte-vm5i0v" role="grid" tabindex="0"><div class="board svelte-vm5i0v"></div></div>`);function V(t,l){x(l,!0);let h=v(()=>l.onMove!==void 0),O=e(null),k=e(null);function A(e,t){o(h)&&(f(O,t,!0),e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`text/plain`,t)))}function j(){f(O,null),f(k,null)}function M(e,t){!o(h)||o(O)===null||(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),f(k,t,!0))}function N(e,t){if(!o(h)||o(O)===null)return;e.preventDefault();let n=o(O),r=l.laneResolver(l.cards.find(e=>e.id===n));f(O,null),f(k,null),r!==t&&l.onMove?.(n,r,t)}let P=v(()=>F(l.cards,l.lanes,l.laneResolver)),V=v(()=>o(P).reduce((e,t)=>e+t.count,0)),H=e(0),U=e(0);function W(e){return{id:e.id,title:e.title,description:e.title,status:e.status,priority:e.priority,size:e.size??void 0,createdAt:``}}function G(e){l.onSelect?.(e)}function K(e){if(o(P).length!==0){if(e.key===`ArrowRight`)e.preventDefault(),f(H,Math.min(o(H)+1,o(P).length-1),!0),f(U,0);else if(e.key===`ArrowLeft`)e.preventDefault(),f(H,Math.max(o(H)-1,0),!0),f(U,0);else if(e.key===`ArrowDown`){e.preventDefault();let t=(o(P)[o(H)]?.cards.length??1)-1;f(U,Math.min(o(U)+1,Math.max(t,0)),!0)}else if(e.key===`ArrowUp`)e.preventDefault(),f(U,Math.max(o(U)-1,0),!0);else if(e.key===`Enter`||e.key===` `){let t=o(P)[o(H)]?.cards[o(U)];t&&(e.preventDefault(),G(t.id))}}}var q=B(),J=s(q);w(J,23,()=>o(P),e=>e.lane.id,(e,t,l)=>{var d=z();let f;_(d,`tabindex`,-1);var g=s(d),x=s(g),P=s(x,!0);S(x);var F=p(x,2);{let e=v(()=>o(t).count>0?`accent`:`neutral`);T(F,{get tone(){return o(e)},size:`sm`,children:(e,r)=>{b();var i=c();a(()=>n(i,o(t).count)),u(e,i)},$$slots:{default:!0}})}S(g);var B=p(g,2),V=s(B),K=e=>{var n=I(),r=s(n);{let e=v(()=>o(t).lane.hint??``);E(r,{title:`Empty`,get subtitle(){return o(e)}})}S(n),u(e,n)},q=e=>{var n=y();w(m(n),19,()=>o(t).cards,e=>e.id,(e,t,n)=>{var c=R();let d;_(c,`tabindex`,-1);var f=s(c),m=e=>{u(e,L())};r(f,e=>{o(t).workerActive&&e(m)});var g=p(f,2);{let e=v(()=>W(o(t))),r=v(()=>o(t).verificationJson??null),i=v(()=>o(l)===o(H)&&o(n)===o(U));D(g,{get task(){return o(e)},compact:!0,get verificationJson(){return o(r)},get focused(){return o(i)},onClick:()=>G(o(t).id)})}S(c),a(()=>{d=C(c,1,`card-wrap svelte-vm5i0v`,null,d,{"worker-active":o(t).workerActive,"is-focused":o(l)===o(H)&&o(n)===o(U),"is-dragging":o(O)===o(t).id,draggable:o(h)}),_(c,`draggable`,o(h))}),i(`dragstart`,c,e=>A(e,o(t).id)),i(`dragend`,c,j),u(e,c)}),u(e,n)};r(V,e=>{o(t).cards.length===0?e(K):e(q,-1)}),S(B),S(d),a(()=>{f=C(d,1,`lane svelte-vm5i0v`,null,f,{"is-focused":o(l)===o(H),"is-drop-target":o(k)===o(t).lane.id}),_(d,`data-lane`,o(t).lane.id),_(d,`aria-label`,`${o(t).lane.label} — ${o(t).count} tasks`),n(P,o(t).lane.label)}),i(`dragover`,d,e=>M(e,o(t).lane.id)),i(`drop`,d,e=>N(e,o(t).lane.id)),u(e,d)}),S(J),S(q),a(()=>_(q,`aria-label`,`Kanban board — ${o(V)} tasks across ${o(P).length} lanes. Use arrow keys to navigate, Enter to inspect.`)),d(`keydown`,q,K),u(t,q),g()}l([`keydown`]);async function H(e){let t;try{t=await e.json()}catch{return{ok:!1,code:`E_BAD_RESPONSE`,message:`Request failed (${e.status})`}}return e.ok&&t.success!==!1?{ok:!0,data:t.data??{}}:{ok:!1,code:t.error?.code??`E_HTTP_${e.status}`,message:t.error?.message??`Request failed (${e.status})`}}async function U(e,t,n,r){try{return await H(await e(t,{method:n,headers:{"content-type":`application/json`},...r===void 0?{}:{body:JSON.stringify(r)}}))}catch(e){return{ok:!1,code:`E_NETWORK`,message:e instanceof Error?e.message:`Network request failed`}}}function W(e=fetch){return{move(t){return U(e,`/api/tasks/${t.taskId}/transition`,`POST`,{fromLane:t.fromLane,toLane:t.toLane})},dispatch(t){return U(e,`/api/tasks/${t.taskId}/dispatch`,`POST`,{tier:t.tier})},create(t){return U(e,`/api/tasks`,`POST`,t)},patch(t){let{taskId:n,...r}=t;return U(e,`/api/tasks/${n}`,`PATCH`,r)},remove(t){return U(e,`/api/tasks/${t}`,`DELETE`)}}}var G=`/api/tasks/subscribe`;function K(e){return t=>{if(typeof EventSource>`u`)return{close(){}};let n=e?`${G}?root=${encodeURIComponent(e)}`:G,r=new EventSource(n);return r.onopen=()=>t.onConnectionChange?.(!0),r.onmessage=e=>{let n;try{n=JSON.parse(e.data)}catch{return}if(n.kind===`data`){let e=n.data!==null&&typeof n.data==`object`?n.data:{};t.onEvent({...e,seq:n.seq})}else n.kind===`done`&&t.onConnectionChange?.(!1)},r.onerror=()=>t.onConnectionChange?.(!1),{close(){r.close(),t.onConnectionChange?.(!1)}}}}function q(e){return{id:e.id,title:e.title,status:e.status,priority:e.priority,size:e.size,parentId:e.parent_id,verificationJson:e.verification_json}}function J(e=fetch){return{async hydrate(){let t=await e(`/api/tasks?limit=1000`);if(!t.ok)throw Error(`Failed to hydrate board snapshot (${t.status})`);let n=await t.json();return{rows:n.tasks.map(q),activeWorkerIds:n.views.filter(e=>e.status===`active`).map(e=>e.id)}}}}function Y(){return O.map(e=>({id:e,label:k[e],hint:A[e]}))}function X(e,t){return{status:e.status,blockedBy:null,depends:[],unmetDependsCount:0,gates:null,readyToComplete:!1,prAwaiting:!1,hitlPending:!1,workerActive:t}}function Z(e,t){return{id:e.id,title:e.title,status:e.status,priority:e.priority,size:e.size,verificationJson:e.verificationJson,workerActive:t}}var Q=class{lanes=Y();#e=e(h([]));#t=e(h(new Set));#n=e(h({}));#r=e(!1);#i=e(!1);#a=e(null);#o;#s;#c=null;constructor(e={}){this.#o={hydrator:e.hydrator??J(),commands:e.commands??W(),subscriptionFactory:e.subscriptionFactory??K(e.root)},this.#s=e.root}get connected(){return o(this.#r)}get loading(){return o(this.#i)}get error(){return o(this.#a)}get root(){return this.#s}#l=v(()=>o(this.#e).filter(e=>e.status!==`archived`&&e.status!==`proposed`).map(e=>{let t=o(this.#t).has(e.id),n=Z(e,t),r=P(X(e,t)),i=o(this.#n)[e.id]??r;return{...n,lane:i}}));get cards(){return o(this.#l)}set cards(e){f(this.#l,e)}#u=v(()=>{let e=new Map;for(let t of O)e.set(t,[]);for(let t of this.cards)e.get(t.lane)?.push(t);return this.lanes.map(t=>{let n=e.get(t.id)??[];return{lane:t,cards:n,count:n.length}})});get columns(){return o(this.#u)}set columns(e){f(this.#u,e)}#d=v(()=>this.cards.length);get total(){return o(this.#d)}set total(e){f(this.#d,e)}#f=v(()=>this.cards.filter(e=>e.workerActive).length);get runningCount(){return o(this.#f)}set runningCount(e){f(this.#f,e)}async hydrate(){f(this.#i,!0);try{let{rows:e,activeWorkerIds:t}=await this.#o.hydrator.hydrate();f(this.#e,e,!0),f(this.#t,new Set(t),!0),f(this.#n,{},!0),f(this.#a,null)}catch(e){f(this.#a,e instanceof Error?e.message:`Failed to load the board`,!0)}finally{f(this.#i,!1)}}connect(){this.disconnect(),this.#c=this.#o.subscriptionFactory({onEvent:e=>this.#p(e),onConnectionChange:e=>{f(this.#r,e,!0)}})}disconnect(){this.#c?.close(),this.#c=null,f(this.#r,!1)}#p(e){o(this.#i)||this.hydrate()}async move(e,t,n){f(this.#n,{...o(this.#n),[e]:n},!0);let r=await this.#o.commands.move({taskId:e,fromLane:t,toLane:n});if(!r.ok){let t={...o(this.#n)};delete t[e],f(this.#n,t,!0)}return r}async dispatch(e,t){let n=await this.#o.commands.dispatch({taskId:e,tier:t});return n.ok&&f(this.#n,{...o(this.#n),[e]:`running`},!0),n}async create(e){let t=await this.#o.commands.create(e);return t.ok&&await this.hydrate(),t}async patch(e,t){let n=await this.#o.commands.patch({taskId:e,...t});return n.ok&&await this.hydrate(),n}async remove(e){let t=await this.#o.commands.remove(e);return t.ok&&await this.hydrate(),t}};function $(e){return new Q(e)}export{V as n,$ as t};
1
+ import{$ as e,A as t,D as n,E as r,F as i,H as a,I as o,J as s,M as c,N as l,O as u,P as d,Q as f,X as p,Y as m,Z as h,at as g,d as _,et as v,k as y,lt as b,ot as x,ut as S,v as C,w}from"./DGftG5oL.js";import"./B8WnZMYa.js";import{a as T}from"./DZrdToAH.js";import{o as E}from"./CTLGzgdN.js";import{s as D}from"./h4IOtB0S.js";var O=[`backlog`,`ready`,`running`,`review`,`blocked`,`done`,`cancelled`],k={backlog:`Backlog`,ready:`Ready`,running:`Running`,review:`Review`,blocked:`Blocked`,done:`Done`,cancelled:`Cancelled`},A={backlog:`Pending — not yet eligible to dispatch`,ready:`Dependencies met — eligible to spawn`,running:`A worker is actively executing`,review:`Awaiting verification gates / PR merge`,blocked:`Held by a dependency, blocker, or HITL gate`,done:`Completed`,cancelled:`Abandoned`};function j(e){return e?e.implemented===!0&&e.testsPassed===!0&&e.qaPassed===!0:!1}function M(e){return typeof e.unmetDependsCount==`number`&&e.unmetDependsCount>0}function N(e){return(e.depends??[]).length===0?!0:e.unmetDependsCount===0}function P(e){return e.status===`cancelled`?`cancelled`:e.status===`done`?`done`:e.status===`blocked`||typeof e.blockedBy==`string`&&e.blockedBy.trim().length>0||e.hitlPending===!0||M(e)?`blocked`:e.readyToComplete===!0||e.prAwaiting===!0||j(e.gates)?`review`:e.workerActive===!0||e.status===`active`?`running`:e.status===`pending`&&N(e)&&e.nextAction===`spawn-worker`?`ready`:`backlog`}function F(e,t,n){let r=new Map;for(let e of t)r.set(e.id,[]);for(let t of e){let e=n(t),i=r.get(e);i&&i.push(t)}return t.map(e=>{let t=r.get(e.id)??[];return{lane:e,cards:t,count:t.length}})}var I=t(`<div class="lane-empty svelte-vm5i0v"><!></div>`),L=t(`<span class="worker-dot svelte-vm5i0v" aria-label="Worker active" title="Worker active"></span>`),R=t(`<div role="gridcell"><!> <!></div>`),z=t(`<div role="row"><header class="lane-head svelte-vm5i0v"><span class="head-label svelte-vm5i0v"> </span> <!></header> <div class="lane-body svelte-vm5i0v"><!></div></div>`),B=t(`<div class="board-scroll svelte-vm5i0v" role="grid" tabindex="0"><div class="board svelte-vm5i0v"></div></div>`);function V(t,l){x(l,!0);let h=v(()=>l.onMove!==void 0),O=e(null),k=e(null);function A(e,t){o(h)&&(f(O,t,!0),e.dataTransfer&&(e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`text/plain`,t)))}function j(){f(O,null),f(k,null)}function M(e,t){!o(h)||o(O)===null||(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),f(k,t,!0))}function N(e,t){if(!o(h)||o(O)===null)return;e.preventDefault();let n=o(O),r=l.laneResolver(l.cards.find(e=>e.id===n));f(O,null),f(k,null),r!==t&&l.onMove?.(n,r,t)}let P=v(()=>F(l.cards,l.lanes,l.laneResolver)),V=v(()=>o(P).reduce((e,t)=>e+t.count,0)),H=e(0),U=e(0);function W(e){return{id:e.id,title:e.title,description:e.title,status:e.status,priority:e.priority,size:e.size??void 0,createdAt:``}}function G(e){l.onSelect?.(e)}function K(e){if(o(P).length!==0){if(e.key===`ArrowRight`)e.preventDefault(),f(H,Math.min(o(H)+1,o(P).length-1),!0),f(U,0);else if(e.key===`ArrowLeft`)e.preventDefault(),f(H,Math.max(o(H)-1,0),!0),f(U,0);else if(e.key===`ArrowDown`){e.preventDefault();let t=(o(P)[o(H)]?.cards.length??1)-1;f(U,Math.min(o(U)+1,Math.max(t,0)),!0)}else if(e.key===`ArrowUp`)e.preventDefault(),f(U,Math.max(o(U)-1,0),!0);else if(e.key===`Enter`||e.key===` `){let t=o(P)[o(H)]?.cards[o(U)];t&&(e.preventDefault(),G(t.id))}}}var q=B(),J=s(q);w(J,23,()=>o(P),e=>e.lane.id,(e,t,l)=>{var d=z();let f;_(d,`tabindex`,-1);var g=s(d),x=s(g),P=s(x,!0);S(x);var F=p(x,2);{let e=v(()=>o(t).count>0?`accent`:`neutral`);T(F,{get tone(){return o(e)},size:`sm`,children:(e,r)=>{b();var i=c();a(()=>n(i,o(t).count)),u(e,i)},$$slots:{default:!0}})}S(g);var B=p(g,2),V=s(B),K=e=>{var n=I(),r=s(n);{let e=v(()=>o(t).lane.hint??``);E(r,{title:`Empty`,get subtitle(){return o(e)}})}S(n),u(e,n)},q=e=>{var n=y();w(m(n),19,()=>o(t).cards,e=>e.id,(e,t,n)=>{var c=R();let d;_(c,`tabindex`,-1);var f=s(c),m=e=>{u(e,L())};r(f,e=>{o(t).workerActive&&e(m)});var g=p(f,2);{let e=v(()=>W(o(t))),r=v(()=>o(t).verificationJson??null),i=v(()=>o(l)===o(H)&&o(n)===o(U));D(g,{get task(){return o(e)},compact:!0,get verificationJson(){return o(r)},get focused(){return o(i)},onClick:()=>G(o(t).id)})}S(c),a(()=>{d=C(c,1,`card-wrap svelte-vm5i0v`,null,d,{"worker-active":o(t).workerActive,"is-focused":o(l)===o(H)&&o(n)===o(U),"is-dragging":o(O)===o(t).id,draggable:o(h)}),_(c,`draggable`,o(h))}),i(`dragstart`,c,e=>A(e,o(t).id)),i(`dragend`,c,j),u(e,c)}),u(e,n)};r(V,e=>{o(t).cards.length===0?e(K):e(q,-1)}),S(B),S(d),a(()=>{f=C(d,1,`lane svelte-vm5i0v`,null,f,{"is-focused":o(l)===o(H),"is-drop-target":o(k)===o(t).lane.id}),_(d,`data-lane`,o(t).lane.id),_(d,`aria-label`,`${o(t).lane.label} — ${o(t).count} tasks`),n(P,o(t).lane.label)}),i(`dragover`,d,e=>M(e,o(t).lane.id)),i(`drop`,d,e=>N(e,o(t).lane.id)),u(e,d)}),S(J),S(q),a(()=>_(q,`aria-label`,`Kanban board — ${o(V)} tasks across ${o(P).length} lanes. Use arrow keys to navigate, Enter to inspect.`)),d(`keydown`,q,K),u(t,q),g()}l([`keydown`]);async function H(e){let t;try{t=await e.json()}catch{return{ok:!1,code:`E_BAD_RESPONSE`,message:`Request failed (${e.status})`}}return e.ok&&t.success!==!1?{ok:!0,data:t.data??{}}:{ok:!1,code:t.error?.code??`E_HTTP_${e.status}`,message:t.error?.message??`Request failed (${e.status})`}}async function U(e,t,n,r){try{return await H(await e(t,{method:n,headers:{"content-type":`application/json`},...r===void 0?{}:{body:JSON.stringify(r)}}))}catch(e){return{ok:!1,code:`E_NETWORK`,message:e instanceof Error?e.message:`Network request failed`}}}function W(e=fetch){return{move(t){return U(e,`/api/tasks/${t.taskId}/transition`,`POST`,{fromLane:t.fromLane,toLane:t.toLane})},dispatch(t){return U(e,`/api/tasks/${t.taskId}/dispatch`,`POST`,{tier:t.tier})},create(t){return U(e,`/api/tasks`,`POST`,t)},patch(t){let{taskId:n,...r}=t;return U(e,`/api/tasks/${n}`,`PATCH`,r)},remove(t){return U(e,`/api/tasks/${t}`,`DELETE`)}}}var G=`/api/tasks/subscribe`;function K(e){return t=>{if(typeof EventSource>`u`)return{close(){}};let n=e?`${G}?root=${encodeURIComponent(e)}`:G,r=new EventSource(n);return r.onopen=()=>t.onConnectionChange?.(!0),r.onmessage=e=>{let n;try{n=JSON.parse(e.data)}catch{return}if(n.kind===`data`){let e=n.data!==null&&typeof n.data==`object`?n.data:{};t.onEvent({...e,seq:n.seq})}else n.kind===`done`&&t.onConnectionChange?.(!1)},r.onerror=()=>t.onConnectionChange?.(!1),{close(){r.close(),t.onConnectionChange?.(!1)}}}}function q(e){return{id:e.id,title:e.title,status:e.status,priority:e.priority,size:e.size,parentId:e.parent_id,verificationJson:e.verification_json}}function J(e=fetch){return{async hydrate(){let t=await e(`/api/tasks?limit=1000`);if(!t.ok)throw Error(`Failed to hydrate board snapshot (${t.status})`);let n=await t.json();return{rows:n.tasks.map(q),activeWorkerIds:n.views.filter(e=>e.status===`active`).map(e=>e.id)}}}}function Y(){return O.map(e=>({id:e,label:k[e],hint:A[e]}))}function X(e,t){return{status:e.status,blockedBy:null,depends:[],unmetDependsCount:0,gates:null,readyToComplete:!1,prAwaiting:!1,hitlPending:!1,workerActive:t}}function Z(e,t){return{id:e.id,title:e.title,status:e.status,priority:e.priority,size:e.size,verificationJson:e.verificationJson,workerActive:t}}var Q=class{lanes=Y();#e=e(h([]));#t=e(h(new Set));#n=e(h({}));#r=e(!1);#i=e(!1);#a=e(null);#o;#s;#c=null;constructor(e={}){this.#o={hydrator:e.hydrator??J(),commands:e.commands??W(),subscriptionFactory:e.subscriptionFactory??K(e.root)},this.#s=e.root}get connected(){return o(this.#r)}get loading(){return o(this.#i)}get error(){return o(this.#a)}get root(){return this.#s}#l=v(()=>o(this.#e).filter(e=>e.status!==`archived`&&e.status!==`proposed`).map(e=>{let t=o(this.#t).has(e.id),n=Z(e,t),r=P(X(e,t)),i=o(this.#n)[e.id]??r;return{...n,lane:i}}));get cards(){return o(this.#l)}set cards(e){f(this.#l,e)}#u=v(()=>{let e=new Map;for(let t of O)e.set(t,[]);for(let t of this.cards)e.get(t.lane)?.push(t);return this.lanes.map(t=>{let n=e.get(t.id)??[];return{lane:t,cards:n,count:n.length}})});get columns(){return o(this.#u)}set columns(e){f(this.#u,e)}#d=v(()=>this.cards.length);get total(){return o(this.#d)}set total(e){f(this.#d,e)}#f=v(()=>this.cards.filter(e=>e.workerActive).length);get runningCount(){return o(this.#f)}set runningCount(e){f(this.#f,e)}async hydrate(){f(this.#i,!0);try{let{rows:e,activeWorkerIds:t}=await this.#o.hydrator.hydrate();f(this.#e,e,!0),f(this.#t,new Set(t),!0),f(this.#n,{},!0),f(this.#a,null)}catch(e){f(this.#a,e instanceof Error?e.message:`Failed to load the board`,!0)}finally{f(this.#i,!1)}}connect(){this.disconnect(),this.#c=this.#o.subscriptionFactory({onEvent:e=>this.#p(e),onConnectionChange:e=>{f(this.#r,e,!0)}})}disconnect(){this.#c?.close(),this.#c=null,f(this.#r,!1)}#p(e){o(this.#i)||this.hydrate()}async move(e,t,n){f(this.#n,{...o(this.#n),[e]:n},!0);let r=await this.#o.commands.move({taskId:e,fromLane:t,toLane:n});if(!r.ok){let t={...o(this.#n)};delete t[e],f(this.#n,t,!0)}return r}async dispatch(e,t){let n=await this.#o.commands.dispatch({taskId:e,tier:t});return n.ok&&f(this.#n,{...o(this.#n),[e]:`running`},!0),n}async create(e){let t=await this.#o.commands.create(e);return t.ok&&await this.hydrate(),t}async patch(e,t){let n=await this.#o.commands.patch({taskId:e,...t});return n.ok&&await this.hydrate(),n}async remove(e){let t=await this.#o.commands.remove(e);return t.ok&&await this.hydrate(),t}};function $(e){return new Q(e)}export{V as n,$ as t};
@@ -0,0 +1 @@
1
+ import"./DtBpLaMM.js";
@@ -1 +1 @@
1
- import"./DGftG5oL.js";import{o as e}from"./Js_lZuOv.js";var t=()=>{let t=e;return{page:{subscribe:t.page.subscribe},navigating:{subscribe:t.navigating.subscribe},updated:t.updated}},n={subscribe(e){return t().page.subscribe(e)}};export{n as t};
1
+ import"./DGftG5oL.js";import{o as e}from"./DtBpLaMM.js";var t=()=>{let t=e;return{page:{subscribe:t.page.subscribe},navigating:{subscribe:t.navigating.subscribe},updated:t.updated}},n={subscribe(e){return t().page.subscribe(e)}};export{n as t};