@cleocode/cleo 2026.10.3 → 2026.10.5-rc.ci.672
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.
- package/README.md +7 -0
- package/bin/cleo.js +11 -1
- package/dist/cli/adapter-OUQRSFZL.js +159 -0
- package/dist/cli/add-4SRRJL4U.js +443 -0
- package/dist/cli/add-batch-TSWICA5J.js +164 -0
- package/dist/cli/admin-L3F6CDYH.js +1428 -0
- package/dist/cli/admin-YMU55YCU.js +341 -0
- package/dist/cli/adr-XESRMFMP.js +172 -0
- package/dist/cli/agent-TAFPIYUU.js +2404 -0
- package/dist/cli/agent-outputs-HVJJIPS4.js +84 -0
- package/dist/cli/analyze-YQ22QVGW.js +49 -0
- package/dist/cli/archive-W5XX6AH7.js +65 -0
- package/dist/cli/archive-stats-HP2KPAJU.js +101 -0
- package/dist/cli/attention-7JBDCRZX.js +124 -0
- package/dist/cli/attention-ZXZANHKC.js +168 -0
- package/dist/cli/audit-ICA2SEFN.js +122 -0
- package/dist/cli/auth-DXIG5OG7.js +491 -0
- package/dist/cli/backfill-LBSYBWLR.js +156 -0
- package/dist/cli/backup-NUGBZ7NA.js +588 -0
- package/dist/cli/backup-inspect-PDRXI45A.js +26 -0
- package/dist/cli/backup-recover-TVKAPERB.js +29 -0
- package/dist/cli/blockers-ZOPCGHDW.js +55 -0
- package/dist/cli/brain-EJOBKL4A.js +397 -0
- package/dist/cli/briefing-RDQJ6WHS.js +213 -0
- package/dist/cli/caamp-Z3XPKEHB.js +181 -0
- package/dist/cli/cancel-S7EHLCJN.js +85 -0
- package/dist/cli/canon-NPF5RODM.js +142 -0
- package/dist/cli/canon-docs-2GTOLF7Y.js +26 -0
- package/dist/cli/cant-CHNN6O57.js +239 -0
- package/dist/cli/changeset-RYPHPN2B.js +246 -0
- package/dist/cli/check-C67YAU7W.js +759 -0
- package/dist/cli/check-DHMURGHC.js +924 -0
- package/dist/cli/checkpoint-UWDFOGYQ.js +128 -0
- package/dist/cli/chunk-22YPFZYB.js +91 -0
- package/dist/cli/chunk-2MGFDMDF.js +272 -0
- package/dist/cli/chunk-47JYZAMS.js +30 -0
- package/dist/cli/chunk-4JYHPP4C.js +76 -0
- package/dist/cli/chunk-4PEODTHY.js +278 -0
- package/dist/cli/chunk-4RGSNUUP.js +950 -0
- package/dist/cli/chunk-4VASFLUW.js +35 -0
- package/dist/cli/chunk-5PNI276X.js +124 -0
- package/dist/cli/chunk-6JSJNYH2.js +114 -0
- package/dist/cli/chunk-6N6WGLXE.js +63 -0
- package/dist/cli/chunk-75UH3BLS.js +210 -0
- package/dist/cli/chunk-7ACK4EIN.js +92 -0
- package/dist/cli/chunk-7NMKLVMI.js +107 -0
- package/dist/cli/chunk-7SINJXB6.js +110 -0
- package/dist/cli/chunk-7UARFJYS.js +46 -0
- package/dist/cli/chunk-7ZYPQV4N.js +90 -0
- package/dist/cli/chunk-AQCYT3L4.js +72 -0
- package/dist/cli/chunk-BQK6XTOH.js +57 -0
- package/dist/cli/chunk-C3B7C43W.js +16 -0
- package/dist/cli/chunk-CAPAGD5E.js +98 -0
- package/dist/cli/chunk-CHGEDCKG.js +77 -0
- package/dist/cli/chunk-COXFJ3PT.js +74 -0
- package/dist/cli/chunk-D7BAQNV2.js +55 -0
- package/dist/cli/chunk-EIUXVHNF.js +258 -0
- package/dist/cli/chunk-EUGB6P5V.js +173 -0
- package/dist/cli/chunk-EW2CKNNZ.js +304 -0
- package/dist/cli/chunk-FSKN4DWC.js +108 -0
- package/dist/cli/chunk-FVKLULL7.js +48 -0
- package/dist/cli/chunk-GAGUBU4Z.js +280 -0
- package/dist/cli/chunk-GKRFH2YG.js +171 -0
- package/dist/cli/chunk-GRU74UE4.js +270 -0
- package/dist/cli/chunk-GZFVDR44.js +320 -0
- package/dist/cli/chunk-HFLLZE6A.js +83 -0
- package/dist/cli/chunk-HXRXT3XU.js +78 -0
- package/dist/cli/chunk-IIOGUY3B.js +258 -0
- package/dist/cli/chunk-ILWWL462.js +60 -0
- package/dist/cli/chunk-J5USPJKZ.js +48 -0
- package/dist/cli/chunk-KEQS36GD.js +88 -0
- package/dist/cli/chunk-L7ONYSV6.js +2497 -0
- package/dist/cli/chunk-LVGIFMCV.js +163 -0
- package/dist/cli/chunk-NEFMQYLE.js +656 -0
- package/dist/cli/chunk-NU6CQQVB.js +4501 -0
- package/dist/cli/chunk-OILHT47L.js +252 -0
- package/dist/cli/chunk-PKKZPOOP.js +352 -0
- package/dist/cli/chunk-PN4WW5VX.js +66 -0
- package/dist/cli/chunk-PSJ33WVO.js +56 -0
- package/dist/cli/chunk-QA6T2LQ5.js +71 -0
- package/dist/cli/chunk-QJJWWCIC.js +288 -0
- package/dist/cli/chunk-QKMBWYAS.js +93 -0
- package/dist/cli/chunk-QWNKLLLG.js +84 -0
- package/dist/cli/chunk-QWUFFDL3.js +85 -0
- package/dist/cli/chunk-QY76BRUZ.js +35 -0
- package/dist/cli/chunk-R45KVF5Y.js +117 -0
- package/dist/cli/chunk-RRKP7HLU.js +66 -0
- package/dist/cli/chunk-SXXOC6KZ.js +209 -0
- package/dist/cli/chunk-T6GZJYL3.js +108 -0
- package/dist/cli/chunk-TLQ37HRE.js +67 -0
- package/dist/cli/chunk-TPTNEJZJ.js +52 -0
- package/dist/cli/chunk-TYC7G5LF.js +100 -0
- package/dist/cli/chunk-UWCZY52R.js +766 -0
- package/dist/cli/chunk-VB3LDPL5.js +46 -0
- package/dist/cli/chunk-VLEYOOPH.js +31 -0
- package/dist/cli/chunk-W3JLYKKY.js +140 -0
- package/dist/cli/chunk-WWCYZYSN.js +56 -0
- package/dist/cli/chunk-XA5WISNV.js +52 -0
- package/dist/cli/chunk-XHRZ7OYZ.js +132 -0
- package/dist/cli/chunk-XLPMIGJJ.js +148 -0
- package/dist/cli/chunk-YY66LFZF.js +29 -0
- package/dist/cli/chunk-ZMGDZMSJ.js +210 -0
- package/dist/cli/claim-IGOG2QOC.js +97 -0
- package/dist/cli/classify-MG4N7GMQ.js +117 -0
- package/dist/cli/cli-A23Q335V.js +51 -0
- package/dist/cli/cloud-SILYJVKO.js +731 -0
- package/dist/cli/cockpit-RZKLGYPN.js +790 -0
- package/dist/cli/code-H2FQCVMW.js +178 -0
- package/dist/cli/complete-JLX7NBI4.js +35 -0
- package/dist/cli/complexity-OKV7PVZH.js +57 -0
- package/dist/cli/compliance-QMGZHJNQ.js +277 -0
- package/dist/cli/conduit-4H32UYEA.js +308 -0
- package/dist/cli/conduit-EY54WTZA.js +535 -0
- package/dist/cli/config-TDYOC7XO.js +519 -0
- package/dist/cli/consensus-4XCOFPPT.js +122 -0
- package/dist/cli/context-FN4YTGHD.js +142 -0
- package/dist/cli/contribution-7RWFBJLC.js +112 -0
- package/dist/cli/curator-HKZJCVRL.js +139 -0
- package/dist/cli/current-B2NU7V3G.js +43 -0
- package/dist/cli/daemon-GBD4TVCD.js +452 -0
- package/dist/cli/dash-IGDANIE5.js +71 -0
- package/dist/cli/decide-26SXC2V6.js +416 -0
- package/dist/cli/decompose-LQ76TEZG.js +78 -0
- package/dist/cli/decomposition-WFRWNUSJ.js +122 -0
- package/dist/cli/delete-T5DUQHOX.js +69 -0
- package/dist/cli/deps-UTPZJBXL.js +462 -0
- package/dist/cli/detect-FFZSMVDT.js +46 -0
- package/dist/cli/detect-drift-TVCJOFYJ.js +408 -0
- package/dist/cli/diagnostics-GN5CVD3N.js +93 -0
- package/dist/cli/diagnostics-ZNBKH6GX.js +133 -0
- package/dist/cli/docs-CLQKEEUK.js +1710 -0
- package/dist/cli/docs-DPPDFTWR.js +3098 -0
- package/dist/cli/doctor-GPENOP4N.js +1270 -0
- package/dist/cli/doctor-ac-bindings-S3IOEFP4.js +26 -0
- package/dist/cli/doctor-acceptance-drift-VNFKPBSQ.js +26 -0
- package/dist/cli/doctor-credentials-A5H4JMTF.js +26 -0
- package/dist/cli/doctor-db-substrate-FGCISE4Z.js +27 -0
- package/dist/cli/doctor-dep-cycles-BKKKHHYG.js +26 -0
- package/dist/cli/doctor-exodus-ND2DH2KP.js +26 -0
- package/dist/cli/doctor-exodus-residue-4EMRYMEQ.js +26 -0
- package/dist/cli/doctor-fk-check-VY3RIQV3.js +26 -0
- package/dist/cli/doctor-global-delivery-JN6IGHUL.js +26 -0
- package/dist/cli/doctor-heavy-command-hook-XSN44WXU.js +26 -0
- package/dist/cli/doctor-legacy-backups-QAG5NHYP.js +26 -0
- package/dist/cli/doctor-legacy-reaper-CIRGFE6R.js +26 -0
- package/dist/cli/doctor-malformed-ids-WL7HT4TB.js +26 -0
- package/dist/cli/doctor-manifest-rows-SMQCKJ2T.js +26 -0
- package/dist/cli/doctor-memory-guard-LJDOJG76.js +26 -0
- package/dist/cli/doctor-migrations-ETQPFNUP.js +26 -0
- package/dist/cli/doctor-nexus-residency-A4JMKBEJ.js +26 -0
- package/dist/cli/doctor-project-identity-FFQJ5LNX.js +26 -0
- package/dist/cli/doctor-projects-MFUTKRHP.js +30 -0
- package/dist/cli/doctor-projects-registry-76X6VTGM.js +26 -0
- package/dist/cli/doctor-release-readiness-QJCOPFTK.js +26 -0
- package/dist/cli/doctor-repair-AU76FIKY.js +26 -0
- package/dist/cli/doctor-row-identity-KW6JYZQE.js +26 -0
- package/dist/cli/doctor-skill-fixtures-G3T7JUHS.js +26 -0
- package/dist/cli/doctor-split-brain-FUW6L7FS.js +26 -0
- package/dist/cli/doctor-superseded-store-DUHGSBLC.js +26 -0
- package/dist/cli/doctor-sync-journal-SXMUIKF7.js +26 -0
- package/dist/cli/doctor-sync-triggers-6WNJZFRM.js +26 -0
- package/dist/cli/doctor-tool-locks-66LSLUBN.js +26 -0
- package/dist/cli/doctor-twin-collapse-AYBYBFC4.js +26 -0
- package/dist/cli/doctor-worktree-stores-C5XEH5OG.js +26 -0
- package/dist/cli/done-R64XRZ32.js +196 -0
- package/dist/cli/dynamic-RR4HB7BB.js +29 -0
- package/dist/cli/entities-3JIHDIOK.js +361 -0
- package/dist/cli/event-45KEWV5H.js +372 -0
- package/dist/cli/exists-BEDZS5RI.js +65 -0
- package/dist/cli/exodus-DUX62344.js +401 -0
- package/dist/cli/export-C5PQIQ5O.js +93 -0
- package/dist/cli/export-tasks-CUXDZPJB.js +97 -0
- package/dist/cli/federation-ESM35EGG.js +145 -0
- package/dist/cli/find-5EUZHHQJ.js +178 -0
- package/dist/cli/focus-6AH4KLRO.js +368 -0
- package/dist/cli/focus-ANKAIRO5.js +56 -0
- package/dist/cli/gateway-2GW2KTK3.js +77 -0
- package/dist/cli/gateway-auto-start-EDK7XI6E.js +36 -0
- package/dist/cli/gc-CTOQLUSA.js +291 -0
- package/dist/cli/go-YJPNHHYT.js +206 -0
- package/dist/cli/goal-4GW4G77D.js +213 -0
- package/dist/cli/grade-25WSZH4X.js +57 -0
- package/dist/cli/graph-JUO3TMF3.js +879 -0
- package/dist/cli/history-NACNUQTC.js +138 -0
- package/dist/cli/hook-UF7J7R6D.js +57 -0
- package/dist/cli/hook-entry.js +244 -19
- package/dist/cli/hygiene-3QZ2NI7P.js +55 -0
- package/dist/cli/import-7ESGL5SS.js +89 -0
- package/dist/cli/import-tasks-FLE2RPBR.js +109 -0
- package/dist/cli/index.js +601 -94637
- package/dist/cli/init-AN4DZ2XO.js +40 -0
- package/dist/cli/inject-HQWA5GWY.js +83 -0
- package/dist/cli/install-global-YQV4W5OG.js +95 -0
- package/dist/cli/intelligence-OFFNQGHE.js +238 -0
- package/dist/cli/intelligence-QIC4SN4X.js +182 -0
- package/dist/cli/issue-P5RNMRDG.js +159 -0
- package/dist/cli/janitor-ZNCFQ7E3.js +111 -0
- package/dist/cli/labels-ORBM3T57.js +88 -0
- package/dist/cli/lifecycle-MHR22TVI.js +273 -0
- package/dist/cli/list-LB6GCYYU.js +109 -0
- package/dist/cli/llm-H7LZWQKX.js +130 -0
- package/dist/cli/llm-OTJWPMGI.js +704 -0
- package/dist/cli/llm-cost-MLMXEAR4.js +25 -0
- package/dist/cli/llm-stream-AAEUNKRP.js +27 -0
- package/dist/cli/log-W2A5M2NA.js +76 -0
- package/dist/cli/login-SIXFFZSP.js +45 -0
- package/dist/cli/logout-G3KVLQQM.js +74 -0
- package/dist/cli/manifest-G4T6EBSI.js +354 -0
- package/dist/cli/map-VU5M72TK.js +53 -0
- package/dist/cli/memory-2E27G2G5.js +1952 -0
- package/dist/cli/memory-IAEYKXG6.js +1895 -0
- package/dist/cli/migrate-agents-v2-A52QIYNJ.js +33 -0
- package/dist/cli/migrate-claude-mem-TPDW3R4Z.js +206 -0
- package/dist/cli/next-SVH4LIDY.js +57 -0
- package/dist/cli/nexus-FPQV2EAF.js +1059 -0
- package/dist/cli/nexus-XSFXN5E6.js +2924 -0
- package/dist/cli/ops-K6LHY5J6.js +52 -0
- package/dist/cli/orchestrate-CZ2J6W3L.js +1650 -0
- package/dist/cli/orchestrate-HURUCQFT.js +950 -0
- package/dist/cli/otel-JCNPVJLZ.js +188 -0
- package/dist/cli/phase-VDFRASSO.js +221 -0
- package/dist/cli/pipeline-TCZPOEDR.js +697 -0
- package/dist/cli/pivot-V5MSQZ7L.js +88 -0
- package/dist/cli/plan-SQUGCKSM.js +49 -0
- package/dist/cli/playbook-L47GLDQD.js +230 -0
- package/dist/cli/playbook-NJVO4R6P.js +33 -0
- package/dist/cli/project-YZEC7GYF.js +331 -0
- package/dist/cli/promote-FINF4HVK.js +53 -0
- package/dist/cli/provenance-3TUWVBFR.js +141 -0
- package/dist/cli/provenance-YZG33JGM.js +129 -0
- package/dist/cli/provider-23JVLLG3.js +213 -0
- package/dist/cli/reason-FHN54O7O.js +138 -0
- package/dist/cli/reconcile-MOM5T4AX.js +128 -0
- package/dist/cli/refresh-memory-3OSTRAVK.js +45 -0
- package/dist/cli/relates-6FWUFUS2.js +260 -0
- package/dist/cli/release-G2DPSG5M.js +347 -0
- package/dist/cli/release-URX6JHZ2.js +525 -0
- package/dist/cli/remote-VIULU2T5.js +279 -0
- package/dist/cli/renderers-TGSW77J4.js +37 -0
- package/dist/cli/reorder-UIPN6TQY.js +87 -0
- package/dist/cli/reparent-ALOWWUIU.js +59 -0
- package/dist/cli/req-RH2Y3H7A.js +130 -0
- package/dist/cli/research-G2Y72HRC.js +366 -0
- package/dist/cli/restore-VBR5XNML.js +470 -0
- package/dist/cli/revert-32LDNSGP.js +240 -0
- package/dist/cli/roadmap-LFU3AG7D.js +62 -0
- package/dist/cli/run-HXRILSR7.js +245 -0
- package/dist/cli/safestop-Z5UC7NGQ.js +89 -0
- package/dist/cli/saga-Y6FZS6AM.js +286 -0
- package/dist/cli/schema-OOOKLWUE.js +195 -0
- package/dist/cli/self-update-26SOTJMH.js +504 -0
- package/dist/cli/selfimprove-4SMOCLUV.js +89 -0
- package/dist/cli/selfimprove-EB4RQLP4.js +139 -0
- package/dist/cli/sentient-QPETVE53.js +254 -0
- package/dist/cli/sentient-RGMWR4XJ.js +1088 -0
- package/dist/cli/sequence-H7DSAJPF.js +94 -0
- package/dist/cli/service-EK5MGB2D.js +156 -0
- package/dist/cli/service-GLOMZWPQ.js +437 -0
- package/dist/cli/session-HYUXAQGC.js +708 -0
- package/dist/cli/session-N5ISU56W.js +568 -0
- package/dist/cli/setup-L3YYV53D.js +323 -0
- package/dist/cli/show-364V3KY2.js +123 -0
- package/dist/cli/skill-F2KR6HW5.js +84 -0
- package/dist/cli/skills-FS3DCP6E.js +929 -0
- package/dist/cli/smoke-provider-SKUFMZXU.js +218 -0
- package/dist/cli/snapshot-EGXEQ5PR.js +120 -0
- package/dist/cli/src-LYLXHXHH.js +80 -0
- package/dist/cli/start-6DXOCCKL.js +68 -0
- package/dist/cli/stats-UVUQEGYC.js +96 -0
- package/dist/cli/status-XLKYLN42.js +157 -0
- package/dist/cli/sticky-VSTQ2I2O.js +264 -0
- package/dist/cli/sticky-XZXZDCFW.js +339 -0
- package/dist/cli/stop-VNOAFWNB.js +43 -0
- package/dist/cli/sync-YYPARW3A.js +155 -0
- package/dist/cli/tasks-C24KHTFF.js +1118 -0
- package/dist/cli/tasks-LBJC7CZV.js +175 -0
- package/dist/cli/telemetry-CU7W5WAY.js +120 -0
- package/dist/cli/templates-G42JBUY4.js +609 -0
- package/dist/cli/testing-HSRITHEY.js +147 -0
- package/dist/cli/token-J74E7TSU.js +221 -0
- package/dist/cli/tools-BI74W7VE.js +652 -0
- package/dist/cli/transcript-RGK7RSGQ.js +440 -0
- package/dist/cli/tui-BPUFHYKK.js +51 -0
- package/dist/cli/update-2KQWA27S.js +478 -0
- package/dist/cli/update-check-entry.js +124 -0
- package/dist/cli/update-notice-6SQ6WPQG.js +68 -0
- package/dist/cli/upgrade-E2MJAPC7.js +136 -0
- package/dist/cli/upgrade-XRSQ4RWH.js +243 -0
- package/dist/cli/verify-WASRGDBA.js +191 -0
- package/dist/cli/web-NJ3P67EU.js +275 -0
- package/dist/cli/workgraph-OHJ2VKJD.js +232 -0
- package/dist/cli/worktree-FVQLORFY.js +371 -0
- package/dist/cli/worktree-ZJ6JTQNG.js +287 -0
- package/package.json +13 -13
- package/studio-dist/client/_app/immutable/chunks/{DMj27Pxj.js → AH7dIemv.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{Dc2owyvE.js → BDgH40i3.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/BXDCSJ7U.js +1 -0
- package/studio-dist/client/_app/immutable/chunks/{qq3pe1aT.js → Gg4iYl59.js} +1 -1
- package/studio-dist/client/_app/immutable/entry/{app.CHWXLeE9.js → app.DUDNK-37.js} +2 -2
- package/studio-dist/client/_app/immutable/entry/start.DNmZ0pA4.js +1 -0
- package/studio-dist/client/_app/immutable/nodes/{0.DmKQGvFh.js → 0.DWqP3ail.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{1.DqJk_REO.js → 1.CZGVUP5B.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{15.GUy6kdW1.js → 15.DGaflZRS.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{16.CcnKZ8f9.js → 16.uYlarGXl.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{17.DAlQF3lQ.js → 17.CZMR0E47.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{18.vQFr-vFj.js → 18.CBC-AKH_.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{20.GVOj5j_r.js → 20.BGi43MvQ.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{24.2-wC6DOh.js → 24.Dv8ftCyR.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/25.DQPVlTDQ.js +39 -0
- package/studio-dist/client/_app/immutable/nodes/{26.C3rNqzZF.js → 26.Cl800304.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{3.b-7pzc3M.js → 3.D_fQKj9f.js} +1 -1
- package/studio-dist/client/_app/version.json +1 -1
- package/studio-dist/server/chunks/{0-BaCce-O1.js → 0-BpOagOst.js} +3 -3
- package/studio-dist/server/chunks/1-D0oRGR-C.js +9 -0
- package/studio-dist/server/chunks/{15-DRMOSIC9.js → 15-BcjHz7Tv.js} +3 -3
- package/studio-dist/server/chunks/{16-BulXhoZZ.js → 16-CXm8TUk7.js} +3 -3
- package/studio-dist/server/chunks/{17-DUEOCM0H.js → 17-mSgUK-cp.js} +3 -3
- package/studio-dist/server/chunks/{18-DP7Q8zPs.js → 18-BtfnIw1d.js} +3 -3
- package/studio-dist/server/chunks/{20-9ta6MI7q.js → 20-By1e4QDS.js} +3 -3
- package/studio-dist/server/chunks/{24-DysdL1ab.js → 24-0i2YLVxG.js} +3 -3
- package/studio-dist/server/chunks/{dist-CdoCt9zT.js → 25-DPsrqbrh.js} +797 -10736
- package/studio-dist/server/chunks/{26-Df4YXgg0.js → 26-P0XkOibm.js} +3 -3
- package/studio-dist/server/chunks/{3-BEhOhYpL.js → 3-WudjUK7e.js} +3 -3
- package/studio-dist/server/chunks/{_layout.svelte-CnLcXYG-.js → _layout.svelte-D9m81Rle.js} +4 -4
- package/studio-dist/server/chunks/{_page.svelte-DGhXqeRc.js → _page.svelte-2PDLOF83.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-Dv8tmDEC.js → _page.svelte-BjE3jm2K.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-C0qgUvzA.js → _page.svelte-Clc0vmiZ.js} +4 -4
- package/studio-dist/server/chunks/{_page.svelte-ui7LnWkL.js → _page.svelte-DABdRT3h.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-HUqTICJR.js → _page.svelte-DG3PjiHj.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-DzcZljiy.js → _page.svelte-Edy9CaE8.js} +20 -7
- package/studio-dist/server/chunks/{_page.svelte-DOl0DGOO.js → _page.svelte-Hrf3-ZR8.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-Da4q5l93.js → _page.svelte-VB4O4Nl5.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-CbyEPj2j.js → _page.svelte-d3jEgjsI.js} +3 -3
- package/studio-dist/server/chunks/{_server.ts-P4wVVksg.js → _server.ts-BcRFsyo3.js} +4 -5
- package/studio-dist/server/chunks/{_server.ts-Cr57EKWf.js → _server.ts-CEWpIFrj.js} +6 -5
- package/studio-dist/server/chunks/{_server.ts-CnKVmf_s.js → _server.ts-CLVdVIF9.js} +2 -2
- package/studio-dist/server/chunks/{_server.ts-C0evMKCk.js → _server.ts-D_j7aSy5.js} +6 -5
- package/studio-dist/server/chunks/{_server.ts-2BazvYRP.js → _server.ts-QEZF8h2q.js} +4 -5
- package/studio-dist/server/chunks/{client-CPM4LrO2.js → client-Kp1dP1od.js} +2 -2
- package/studio-dist/server/chunks/{error.svelte-ShcZo43D.js → error.svelte-WOCioJVX.js} +3 -3
- package/studio-dist/server/chunks/{hooks.server-D2qbf3Zp.js → hooks.server-DH9zkIrJ.js} +3 -1
- package/studio-dist/server/chunks/{http-BiQjEmVU.js → http-DT5kxaWk.js} +5 -4
- package/studio-dist/server/chunks/{internal-Cgsrya1j.js → internal-z0vqd5_u.js} +3 -3
- package/studio-dist/server/chunks/operations-registry-DdzmYzqX.js +10584 -0
- package/studio-dist/server/chunks/{stores-BGrpEDMK.js → stores-s2kaL315.js} +2 -2
- package/studio-dist/server/index.js +1 -1
- package/studio-dist/server/manifest.js +17 -17
- package/studio-dist/client/_app/immutable/chunks/Bw6J8NDM.js +0 -1
- package/studio-dist/client/_app/immutable/entry/start.C9bwPpvc.js +0 -1
- package/studio-dist/client/_app/immutable/nodes/25.D1vYaH8g.js +0 -39
- package/studio-dist/server/chunks/1-CVo7Nk6d.js +0 -9
- package/studio-dist/server/chunks/25-CYsps38R.js +0 -366
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
const _installed = Symbol.for('cleocode.cli.sqliteWarningFilter');
|
|
3
|
+
if (globalThis[_installed]) return;
|
|
4
|
+
globalThis[_installed] = true;
|
|
5
|
+
const _origEmitWarning = process.emitWarning;
|
|
6
|
+
process.emitWarning = function(warning, type, code, ctor) {
|
|
7
|
+
if (typeof warning === 'object' && warning.name === 'ExperimentalWarning' && typeof warning.message === 'string' && /SQLite is an experimental feature/i.test(warning.message)) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (typeof warning === 'string' && /SQLite is an experimental feature/i.test(warning)) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
return _origEmitWarning.call(process, warning, type, code, ctor);
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import {
|
|
17
|
+
dispatchFromCli
|
|
18
|
+
} from "./chunk-L7ONYSV6.js";
|
|
19
|
+
import "./chunk-6N6WGLXE.js";
|
|
20
|
+
import "./chunk-4VASFLUW.js";
|
|
21
|
+
import {
|
|
22
|
+
defineCommand,
|
|
23
|
+
showUsage
|
|
24
|
+
} from "./chunk-PKKZPOOP.js";
|
|
25
|
+
import "./chunk-QKMBWYAS.js";
|
|
26
|
+
import {
|
|
27
|
+
cliError,
|
|
28
|
+
cliOutput
|
|
29
|
+
} from "./chunk-4RGSNUUP.js";
|
|
30
|
+
import "./chunk-6JSJNYH2.js";
|
|
31
|
+
import "./chunk-D7BAQNV2.js";
|
|
32
|
+
import "./chunk-TYC7G5LF.js";
|
|
33
|
+
|
|
34
|
+
// packages/cleo/src/cli/commands/issue.ts
|
|
35
|
+
import { execFileSync } from "node:child_process";
|
|
36
|
+
import { addIssue, BUILD_CONFIG } from "@cleocode/core/internal";
|
|
37
|
+
var CLEO_REPO = BUILD_CONFIG.repository.fullName;
|
|
38
|
+
async function handleIssueType(issueType, opts) {
|
|
39
|
+
let result;
|
|
40
|
+
try {
|
|
41
|
+
result = addIssue({
|
|
42
|
+
issueType,
|
|
43
|
+
title: opts["title"],
|
|
44
|
+
body: opts["body"],
|
|
45
|
+
severity: opts["severity"],
|
|
46
|
+
area: opts["area"],
|
|
47
|
+
dryRun: !!opts["dryRun"]
|
|
48
|
+
});
|
|
49
|
+
} catch (err) {
|
|
50
|
+
cliError(`Failed to create issue: ${err instanceof Error ? err.message : String(err)}`, 1, {
|
|
51
|
+
name: "E_ISSUE_CREATE"
|
|
52
|
+
});
|
|
53
|
+
process.exitCode = 1;
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
if (opts["open"] && typeof result.url === "string" && result.url.startsWith("https://")) {
|
|
57
|
+
const issueNumber = result.url.match(/(\d+)$/)?.[1] ?? "unknown";
|
|
58
|
+
try {
|
|
59
|
+
execFileSync("gh", ["issue", "view", issueNumber, "--repo", CLEO_REPO, "--web"], {
|
|
60
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
61
|
+
});
|
|
62
|
+
} catch {
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
cliOutput(result, { command: "issue", operation: `tools.issue.add.${issueType}` });
|
|
66
|
+
}
|
|
67
|
+
var bugCommand = defineCommand({
|
|
68
|
+
meta: { name: "bug", description: "File a bug report" },
|
|
69
|
+
args: {
|
|
70
|
+
title: { type: "string", description: "Issue title", required: true },
|
|
71
|
+
body: { type: "string", description: "Issue description", required: true },
|
|
72
|
+
severity: {
|
|
73
|
+
type: "string",
|
|
74
|
+
description: "Severity level (Blocker, Major, Moderate, Minor)"
|
|
75
|
+
},
|
|
76
|
+
area: { type: "string", description: "Affected area (cli, dispatch, docs, tests, other)" },
|
|
77
|
+
open: { type: "boolean", description: "Open issue in browser after creation" },
|
|
78
|
+
"dry-run": { type: "boolean", description: "Preview without filing" }
|
|
79
|
+
},
|
|
80
|
+
async run({ args }) {
|
|
81
|
+
await handleIssueType("bug", {
|
|
82
|
+
title: args.title,
|
|
83
|
+
body: args.body,
|
|
84
|
+
severity: args.severity,
|
|
85
|
+
area: args.area,
|
|
86
|
+
open: args.open,
|
|
87
|
+
dryRun: args["dry-run"]
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
var featureCommand = defineCommand({
|
|
92
|
+
meta: { name: "feature", description: "Request a new feature" },
|
|
93
|
+
args: {
|
|
94
|
+
title: { type: "string", description: "Issue title", required: true },
|
|
95
|
+
body: { type: "string", description: "Issue description", required: true },
|
|
96
|
+
area: { type: "string", description: "Affected area" },
|
|
97
|
+
open: { type: "boolean", description: "Open issue in browser after creation" },
|
|
98
|
+
"dry-run": { type: "boolean", description: "Preview without filing" }
|
|
99
|
+
},
|
|
100
|
+
async run({ args }) {
|
|
101
|
+
await handleIssueType("feature", {
|
|
102
|
+
title: args.title,
|
|
103
|
+
body: args.body,
|
|
104
|
+
area: args.area,
|
|
105
|
+
open: args.open,
|
|
106
|
+
dryRun: args["dry-run"]
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
var helpCommand = defineCommand({
|
|
111
|
+
meta: { name: "help", description: "Ask a question" },
|
|
112
|
+
args: {
|
|
113
|
+
title: { type: "string", description: "Issue title", required: true },
|
|
114
|
+
body: { type: "string", description: "Issue description", required: true },
|
|
115
|
+
open: { type: "boolean", description: "Open issue in browser after creation" },
|
|
116
|
+
"dry-run": { type: "boolean", description: "Preview without filing" }
|
|
117
|
+
},
|
|
118
|
+
async run({ args }) {
|
|
119
|
+
await handleIssueType("help", {
|
|
120
|
+
title: args.title,
|
|
121
|
+
body: args.body,
|
|
122
|
+
open: args.open,
|
|
123
|
+
dryRun: args["dry-run"]
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
var diagnosticsCommand = defineCommand({
|
|
128
|
+
meta: { name: "diagnostics", description: "Show system diagnostics (no issue filed)" },
|
|
129
|
+
async run() {
|
|
130
|
+
await dispatchFromCli(
|
|
131
|
+
"query",
|
|
132
|
+
"tools",
|
|
133
|
+
"issue.diagnostics",
|
|
134
|
+
{},
|
|
135
|
+
{ command: "issue", operation: "tools.issue.diagnostics" }
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
var issueCommand = defineCommand({
|
|
140
|
+
meta: {
|
|
141
|
+
name: "issue",
|
|
142
|
+
description: "File bug reports, feature requests, or questions to CLEO GitHub repo"
|
|
143
|
+
},
|
|
144
|
+
subCommands: {
|
|
145
|
+
bug: bugCommand,
|
|
146
|
+
feature: featureCommand,
|
|
147
|
+
help: helpCommand,
|
|
148
|
+
diagnostics: diagnosticsCommand
|
|
149
|
+
},
|
|
150
|
+
async run({ cmd, rawArgs }) {
|
|
151
|
+
const firstArg = rawArgs?.find((a) => !a.startsWith("-"));
|
|
152
|
+
if (firstArg && cmd.subCommands && firstArg in cmd.subCommands) return;
|
|
153
|
+
await showUsage(cmd);
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
export {
|
|
157
|
+
issueCommand
|
|
158
|
+
};
|
|
159
|
+
//# sourceMappingURL=issue-P5RNMRDG.js.map
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
const _installed = Symbol.for('cleocode.cli.sqliteWarningFilter');
|
|
3
|
+
if (globalThis[_installed]) return;
|
|
4
|
+
globalThis[_installed] = true;
|
|
5
|
+
const _origEmitWarning = process.emitWarning;
|
|
6
|
+
process.emitWarning = function(warning, type, code, ctor) {
|
|
7
|
+
if (typeof warning === 'object' && warning.name === 'ExperimentalWarning' && typeof warning.message === 'string' && /SQLite is an experimental feature/i.test(warning.message)) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (typeof warning === 'string' && /SQLite is an experimental feature/i.test(warning)) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
return _origEmitWarning.call(process, warning, type, code, ctor);
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import {
|
|
17
|
+
defineCommand,
|
|
18
|
+
showUsage
|
|
19
|
+
} from "./chunk-PKKZPOOP.js";
|
|
20
|
+
import {
|
|
21
|
+
cliError,
|
|
22
|
+
cliOutput
|
|
23
|
+
} from "./chunk-4RGSNUUP.js";
|
|
24
|
+
import "./chunk-6JSJNYH2.js";
|
|
25
|
+
|
|
26
|
+
// packages/cleo/src/cli/commands/janitor.ts
|
|
27
|
+
import { runJanitor } from "@cleocode/core/gc/janitor.js";
|
|
28
|
+
import { resolveLegacyCleoDir } from "@cleocode/paths";
|
|
29
|
+
var runCommand = defineCommand({
|
|
30
|
+
meta: {
|
|
31
|
+
name: "run",
|
|
32
|
+
description: "Run the janitor sweep: reap orphan processes, stop dead scopes, reclaim stale locks, prune temp debris."
|
|
33
|
+
},
|
|
34
|
+
args: {
|
|
35
|
+
"cleo-dir": {
|
|
36
|
+
type: "string",
|
|
37
|
+
description: "Override .cleo/ directory path"
|
|
38
|
+
},
|
|
39
|
+
"dry-run": {
|
|
40
|
+
type: "boolean",
|
|
41
|
+
description: "Report planned actions without mutating anything",
|
|
42
|
+
default: false
|
|
43
|
+
},
|
|
44
|
+
"grace-min": {
|
|
45
|
+
type: "string",
|
|
46
|
+
description: "Minimum age (minutes) of an unregistered process before reap eligibility (default: 10)"
|
|
47
|
+
},
|
|
48
|
+
json: {
|
|
49
|
+
type: "boolean",
|
|
50
|
+
description: "Output result as JSON",
|
|
51
|
+
default: false
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
async run({ args }) {
|
|
55
|
+
const cleoDir = resolveLegacyCleoDir(args["cleo-dir"]);
|
|
56
|
+
const dryRun = args["dry-run"];
|
|
57
|
+
const graceMinRaw = args["grace-min"];
|
|
58
|
+
const gracePeriodMs = graceMinRaw !== void 0 ? Number(graceMinRaw) * 6e4 : void 0;
|
|
59
|
+
try {
|
|
60
|
+
const result = await runJanitor({ dryRun, cleoDir, gracePeriodMs });
|
|
61
|
+
const dryLabel = dryRun ? " (dry run)" : "";
|
|
62
|
+
const total = result.reaped + result.scopesStopped + result.locksReclaimed + result.semaphoreSlotsCleared + result.worktreesPruned + result.worktreesQuarantined + result.tmpRemoved + result.attachmentsRepaired + result.configsRepaired;
|
|
63
|
+
const humanMsg = `janitor${dryLabel} \u2014 ${total} action(s): ` + [
|
|
64
|
+
result.reaped > 0 && `${result.reaped} process(es) reaped`,
|
|
65
|
+
result.scopesStopped > 0 && `${result.scopesStopped} scope(s) stopped`,
|
|
66
|
+
result.locksReclaimed > 0 && `${result.locksReclaimed} lock(s) reclaimed`,
|
|
67
|
+
result.semaphoreSlotsCleared > 0 && `${result.semaphoreSlotsCleared} semaphore slot(s) cleared`,
|
|
68
|
+
result.worktreesPruned > 0 && `${result.worktreesPruned} worktree(s) pruned`,
|
|
69
|
+
result.worktreesQuarantined > 0 && `${result.worktreesQuarantined} quarantined`,
|
|
70
|
+
result.tmpRemoved > 0 && `${result.tmpRemoved} tmp dir(s) removed`,
|
|
71
|
+
result.attachmentsRepaired > 0 && `${result.attachmentsRepaired} attachment(s) repaired`,
|
|
72
|
+
result.configsRepaired > 0 && `${result.configsRepaired} config(s) repaired`,
|
|
73
|
+
result.errors > 0 && `${result.errors} error(s)`
|
|
74
|
+
].filter(Boolean).join(", ") || "nothing to do";
|
|
75
|
+
cliOutput(result, {
|
|
76
|
+
command: "janitor",
|
|
77
|
+
operation: "admin.janitor.run",
|
|
78
|
+
message: humanMsg
|
|
79
|
+
});
|
|
80
|
+
} catch (err) {
|
|
81
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
82
|
+
cliError(
|
|
83
|
+
`janitor run failed: ${message}`,
|
|
84
|
+
"E_INTERNAL",
|
|
85
|
+
{ name: "E_INTERNAL" },
|
|
86
|
+
{
|
|
87
|
+
operation: "admin.janitor.run"
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
process.exit(1);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
var janitorCommand = defineCommand({
|
|
95
|
+
meta: {
|
|
96
|
+
name: "janitor",
|
|
97
|
+
description: "Orphan process reaper and stale scope/lock/debris sweep (silent, idempotent)"
|
|
98
|
+
},
|
|
99
|
+
subCommands: {
|
|
100
|
+
run: runCommand
|
|
101
|
+
},
|
|
102
|
+
async run({ cmd, rawArgs }) {
|
|
103
|
+
const firstArg = rawArgs?.find((a) => !a.startsWith("-"));
|
|
104
|
+
if (firstArg && cmd.subCommands && firstArg in cmd.subCommands) return;
|
|
105
|
+
await showUsage(cmd);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
export {
|
|
109
|
+
janitorCommand
|
|
110
|
+
};
|
|
111
|
+
//# sourceMappingURL=janitor-ZNCFQ7E3.js.map
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
const _installed = Symbol.for('cleocode.cli.sqliteWarningFilter');
|
|
3
|
+
if (globalThis[_installed]) return;
|
|
4
|
+
globalThis[_installed] = true;
|
|
5
|
+
const _origEmitWarning = process.emitWarning;
|
|
6
|
+
process.emitWarning = function(warning, type, code, ctor) {
|
|
7
|
+
if (typeof warning === 'object' && warning.name === 'ExperimentalWarning' && typeof warning.message === 'string' && /SQLite is an experimental feature/i.test(warning.message)) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (typeof warning === 'string' && /SQLite is an experimental feature/i.test(warning)) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
return _origEmitWarning.call(process, warning, type, code, ctor);
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import {
|
|
17
|
+
dispatchFromCli
|
|
18
|
+
} from "./chunk-L7ONYSV6.js";
|
|
19
|
+
import "./chunk-6N6WGLXE.js";
|
|
20
|
+
import "./chunk-4VASFLUW.js";
|
|
21
|
+
import {
|
|
22
|
+
defineCommand
|
|
23
|
+
} from "./chunk-PKKZPOOP.js";
|
|
24
|
+
import "./chunk-QKMBWYAS.js";
|
|
25
|
+
import "./chunk-4RGSNUUP.js";
|
|
26
|
+
import "./chunk-6JSJNYH2.js";
|
|
27
|
+
import "./chunk-D7BAQNV2.js";
|
|
28
|
+
import "./chunk-TYC7G5LF.js";
|
|
29
|
+
|
|
30
|
+
// packages/cleo/src/cli/commands/labels.ts
|
|
31
|
+
var listCommand = defineCommand({
|
|
32
|
+
meta: { name: "list", description: "List all labels with task counts (default)" },
|
|
33
|
+
async run() {
|
|
34
|
+
await dispatchFromCli("query", "tasks", "label.list", {}, { command: "labels" });
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
var showCommand = defineCommand({
|
|
38
|
+
meta: { name: "show", description: "Show tasks with specific label" },
|
|
39
|
+
args: {
|
|
40
|
+
label: { type: "positional", description: "Label name to filter by", required: true }
|
|
41
|
+
},
|
|
42
|
+
async run({ args }) {
|
|
43
|
+
await dispatchFromCli("query", "tasks", "list", { label: args.label }, { command: "labels" });
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
var statsCommand = defineCommand({
|
|
47
|
+
meta: { name: "stats", description: "Show detailed label statistics" },
|
|
48
|
+
async run() {
|
|
49
|
+
await dispatchFromCli("query", "tasks", "label.list", {}, { command: "labels" });
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
var labelsCommand = defineCommand({
|
|
53
|
+
meta: {
|
|
54
|
+
name: "labels",
|
|
55
|
+
description: "List all labels (no args), or show tasks for a label (cleo labels <name>)"
|
|
56
|
+
},
|
|
57
|
+
args: {
|
|
58
|
+
// Optional positional — when present, dispatches to tasks.list with the
|
|
59
|
+
// label filter; when absent, falls through to the legacy label.list path.
|
|
60
|
+
// Required:false keeps the bare `cleo labels` invocation working.
|
|
61
|
+
name: {
|
|
62
|
+
type: "positional",
|
|
63
|
+
description: "Label name to filter tasks by (omit to list all labels)",
|
|
64
|
+
required: false
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
subCommands: {
|
|
68
|
+
list: listCommand,
|
|
69
|
+
show: showCommand,
|
|
70
|
+
stats: statsCommand
|
|
71
|
+
},
|
|
72
|
+
async run(ctx) {
|
|
73
|
+
const rawArgs = ctx.rawArgs ?? [];
|
|
74
|
+
if (rawArgs.some((a) => ["list", "show", "stats"].includes(a))) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
const name = ctx.args.name;
|
|
78
|
+
if (typeof name === "string" && name.length > 0) {
|
|
79
|
+
await dispatchFromCli("query", "tasks", "list", { label: name }, { command: "labels" });
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
await dispatchFromCli("query", "tasks", "label.list", {}, { command: "labels" });
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
export {
|
|
86
|
+
labelsCommand
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=labels-ORBM3T57.js.map
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
const _installed = Symbol.for('cleocode.cli.sqliteWarningFilter');
|
|
3
|
+
if (globalThis[_installed]) return;
|
|
4
|
+
globalThis[_installed] = true;
|
|
5
|
+
const _origEmitWarning = process.emitWarning;
|
|
6
|
+
process.emitWarning = function(warning, type, code, ctor) {
|
|
7
|
+
if (typeof warning === 'object' && warning.name === 'ExperimentalWarning' && typeof warning.message === 'string' && /SQLite is an experimental feature/i.test(warning.message)) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (typeof warning === 'string' && /SQLite is an experimental feature/i.test(warning)) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
return _origEmitWarning.call(process, warning, type, code, ctor);
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import {
|
|
17
|
+
dispatchFromCli,
|
|
18
|
+
dispatchRaw,
|
|
19
|
+
handleRawError
|
|
20
|
+
} from "./chunk-L7ONYSV6.js";
|
|
21
|
+
import "./chunk-6N6WGLXE.js";
|
|
22
|
+
import "./chunk-4VASFLUW.js";
|
|
23
|
+
import {
|
|
24
|
+
defineCommand,
|
|
25
|
+
showUsage
|
|
26
|
+
} from "./chunk-PKKZPOOP.js";
|
|
27
|
+
import "./chunk-QKMBWYAS.js";
|
|
28
|
+
import "./chunk-4RGSNUUP.js";
|
|
29
|
+
import "./chunk-6JSJNYH2.js";
|
|
30
|
+
import "./chunk-D7BAQNV2.js";
|
|
31
|
+
import "./chunk-TYC7G5LF.js";
|
|
32
|
+
|
|
33
|
+
// packages/cleo/src/cli/commands/lifecycle.ts
|
|
34
|
+
var VALID_STAGES = "research|consensus|architecture_decision|specification|decomposition|implementation|validation|testing|release|contribution";
|
|
35
|
+
var showCommand = defineCommand({
|
|
36
|
+
meta: { name: "show", description: "Show lifecycle state for an epic" },
|
|
37
|
+
args: {
|
|
38
|
+
epicId: { type: "positional", description: "Epic ID", required: true }
|
|
39
|
+
},
|
|
40
|
+
async run({ args }) {
|
|
41
|
+
await dispatchFromCli(
|
|
42
|
+
"query",
|
|
43
|
+
"pipeline",
|
|
44
|
+
"stage.status",
|
|
45
|
+
{ epicId: args.epicId },
|
|
46
|
+
{ command: "lifecycle" }
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
var startCommand = defineCommand({
|
|
51
|
+
meta: {
|
|
52
|
+
name: "start",
|
|
53
|
+
description: `Start a lifecycle stage. Valid stages: ${VALID_STAGES}`
|
|
54
|
+
},
|
|
55
|
+
args: {
|
|
56
|
+
epicId: { type: "positional", description: "Epic ID", required: true },
|
|
57
|
+
stage: { type: "positional", description: "Stage name", required: true }
|
|
58
|
+
},
|
|
59
|
+
async run({ args }) {
|
|
60
|
+
await dispatchFromCli(
|
|
61
|
+
"mutate",
|
|
62
|
+
"pipeline",
|
|
63
|
+
"stage.record",
|
|
64
|
+
{ taskId: args.epicId, stage: args.stage, status: "in_progress" },
|
|
65
|
+
{ command: "lifecycle" }
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
var completeCommand = defineCommand({
|
|
70
|
+
meta: {
|
|
71
|
+
name: "complete",
|
|
72
|
+
description: `Complete a lifecycle stage. Valid stages: ${VALID_STAGES}`
|
|
73
|
+
},
|
|
74
|
+
args: {
|
|
75
|
+
epicId: { type: "positional", description: "Epic ID", required: true },
|
|
76
|
+
stage: { type: "positional", description: "Stage name", required: true },
|
|
77
|
+
artifacts: { type: "string", description: "Comma-separated artifact paths" },
|
|
78
|
+
notes: { type: "string", description: "Completion notes" }
|
|
79
|
+
},
|
|
80
|
+
async run({ args }) {
|
|
81
|
+
await dispatchFromCli(
|
|
82
|
+
"mutate",
|
|
83
|
+
"pipeline",
|
|
84
|
+
"stage.record",
|
|
85
|
+
{
|
|
86
|
+
taskId: args.epicId,
|
|
87
|
+
stage: args.stage,
|
|
88
|
+
status: "completed",
|
|
89
|
+
notes: args.notes
|
|
90
|
+
},
|
|
91
|
+
{ command: "lifecycle" }
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
var skipCommand = defineCommand({
|
|
96
|
+
meta: {
|
|
97
|
+
name: "skip",
|
|
98
|
+
description: `Skip a lifecycle stage. Valid stages: ${VALID_STAGES}`
|
|
99
|
+
},
|
|
100
|
+
args: {
|
|
101
|
+
epicId: { type: "positional", description: "Epic ID", required: true },
|
|
102
|
+
stage: { type: "positional", description: "Stage name", required: true },
|
|
103
|
+
reason: { type: "string", description: "Reason for skipping", required: true }
|
|
104
|
+
},
|
|
105
|
+
async run({ args }) {
|
|
106
|
+
await dispatchFromCli(
|
|
107
|
+
"mutate",
|
|
108
|
+
"pipeline",
|
|
109
|
+
"stage.skip",
|
|
110
|
+
{ taskId: args.epicId, stage: args.stage, reason: args.reason },
|
|
111
|
+
{ command: "lifecycle" }
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
var gateCommand = defineCommand({
|
|
116
|
+
meta: { name: "gate", description: "Check lifecycle gate for a stage" },
|
|
117
|
+
args: {
|
|
118
|
+
epicId: { type: "positional", description: "Epic ID", required: true },
|
|
119
|
+
stage: { type: "positional", description: "Stage name", required: true }
|
|
120
|
+
},
|
|
121
|
+
async run({ args }) {
|
|
122
|
+
const result = await dispatchRaw("query", "pipeline", "stage.validate", {
|
|
123
|
+
epicId: args.epicId,
|
|
124
|
+
targetStage: args.stage
|
|
125
|
+
});
|
|
126
|
+
if (result.success) {
|
|
127
|
+
const { cliOutput } = await import("./renderers-TGSW77J4.js");
|
|
128
|
+
cliOutput(result.data, { command: "lifecycle" });
|
|
129
|
+
const data = result.data;
|
|
130
|
+
if (data && !data["canProgress"]) {
|
|
131
|
+
process.exit(80);
|
|
132
|
+
}
|
|
133
|
+
} else {
|
|
134
|
+
handleRawError(result, { command: "lifecycle", operation: "pipeline.stage.validate" });
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
var guidanceCommand = defineCommand({
|
|
139
|
+
meta: {
|
|
140
|
+
name: "guidance",
|
|
141
|
+
description: "Get stage-aware LLM prompt guidance (Phase 2). Pi extensions shell out to this on before_agent_start."
|
|
142
|
+
},
|
|
143
|
+
args: {
|
|
144
|
+
stage: { type: "positional", description: "Stage name (optional)", required: false },
|
|
145
|
+
epicId: {
|
|
146
|
+
type: "string",
|
|
147
|
+
description: "Resolve stage from current epic pipeline status if no stage arg"
|
|
148
|
+
},
|
|
149
|
+
format: { type: "string", description: "Output format: markdown | json", default: "markdown" }
|
|
150
|
+
},
|
|
151
|
+
async run({ args }) {
|
|
152
|
+
await dispatchFromCli(
|
|
153
|
+
"query",
|
|
154
|
+
"pipeline",
|
|
155
|
+
"stage.guidance",
|
|
156
|
+
{
|
|
157
|
+
stage: args.stage,
|
|
158
|
+
epicId: args.epicId,
|
|
159
|
+
format: args.format
|
|
160
|
+
},
|
|
161
|
+
{ command: "lifecycle" }
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
var historyCommand = defineCommand({
|
|
166
|
+
meta: { name: "history", description: "Show full lifecycle stage history for a task or epic" },
|
|
167
|
+
args: {
|
|
168
|
+
taskId: { type: "positional", description: "Task or epic ID", required: true }
|
|
169
|
+
},
|
|
170
|
+
async run({ args }) {
|
|
171
|
+
await dispatchFromCli(
|
|
172
|
+
"query",
|
|
173
|
+
"pipeline",
|
|
174
|
+
"stage.history",
|
|
175
|
+
{ taskId: args.taskId },
|
|
176
|
+
{ command: "lifecycle" }
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
var resetCommand = defineCommand({
|
|
181
|
+
meta: {
|
|
182
|
+
name: "reset",
|
|
183
|
+
description: `Reset a lifecycle stage back to pending. Valid stages: ${VALID_STAGES}`
|
|
184
|
+
},
|
|
185
|
+
args: {
|
|
186
|
+
epicId: { type: "positional", description: "Epic ID", required: true },
|
|
187
|
+
stage: { type: "positional", description: "Stage name", required: true },
|
|
188
|
+
reason: { type: "string", description: "Reason for resetting the stage", required: true }
|
|
189
|
+
},
|
|
190
|
+
async run({ args }) {
|
|
191
|
+
await dispatchFromCli(
|
|
192
|
+
"mutate",
|
|
193
|
+
"pipeline",
|
|
194
|
+
"stage.reset",
|
|
195
|
+
{ taskId: args.epicId, stage: args.stage, reason: args.reason },
|
|
196
|
+
{ command: "lifecycle" }
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
var gateRecordPassCommand = defineCommand({
|
|
201
|
+
meta: { name: "pass", description: "Record a gate as passed for a lifecycle stage" },
|
|
202
|
+
args: {
|
|
203
|
+
epicId: { type: "positional", description: "Epic ID", required: true },
|
|
204
|
+
gateName: { type: "positional", description: "Gate name", required: true },
|
|
205
|
+
agent: { type: "string", description: "Agent that performed the gate check" },
|
|
206
|
+
notes: { type: "string", description: "Notes on gate outcome" }
|
|
207
|
+
},
|
|
208
|
+
async run({ args }) {
|
|
209
|
+
await dispatchFromCli(
|
|
210
|
+
"mutate",
|
|
211
|
+
"pipeline",
|
|
212
|
+
"stage.gate.pass",
|
|
213
|
+
{
|
|
214
|
+
taskId: args.epicId,
|
|
215
|
+
gateName: args.gateName,
|
|
216
|
+
agent: args.agent,
|
|
217
|
+
notes: args.notes
|
|
218
|
+
},
|
|
219
|
+
{ command: "lifecycle" }
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
var gateRecordFailCommand = defineCommand({
|
|
224
|
+
meta: { name: "fail", description: "Record a gate as failed for a lifecycle stage" },
|
|
225
|
+
args: {
|
|
226
|
+
epicId: { type: "positional", description: "Epic ID", required: true },
|
|
227
|
+
gateName: { type: "positional", description: "Gate name", required: true },
|
|
228
|
+
reason: { type: "string", description: "Reason the gate failed" }
|
|
229
|
+
},
|
|
230
|
+
async run({ args }) {
|
|
231
|
+
await dispatchFromCli(
|
|
232
|
+
"mutate",
|
|
233
|
+
"pipeline",
|
|
234
|
+
"stage.gate.fail",
|
|
235
|
+
{
|
|
236
|
+
taskId: args.epicId,
|
|
237
|
+
gateName: args.gateName,
|
|
238
|
+
reason: args.reason
|
|
239
|
+
},
|
|
240
|
+
{ command: "lifecycle" }
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
var gateRecordCommand = defineCommand({
|
|
245
|
+
meta: { name: "gate-record", description: "Record a gate pass or fail for a lifecycle stage" },
|
|
246
|
+
subCommands: {
|
|
247
|
+
pass: gateRecordPassCommand,
|
|
248
|
+
fail: gateRecordFailCommand
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
var lifecycleCommand = defineCommand({
|
|
252
|
+
meta: { name: "lifecycle", description: "RCASD-IVTR+C lifecycle pipeline management" },
|
|
253
|
+
subCommands: {
|
|
254
|
+
show: showCommand,
|
|
255
|
+
start: startCommand,
|
|
256
|
+
complete: completeCommand,
|
|
257
|
+
skip: skipCommand,
|
|
258
|
+
gate: gateCommand,
|
|
259
|
+
guidance: guidanceCommand,
|
|
260
|
+
history: historyCommand,
|
|
261
|
+
reset: resetCommand,
|
|
262
|
+
"gate-record": gateRecordCommand
|
|
263
|
+
},
|
|
264
|
+
async run({ cmd, rawArgs }) {
|
|
265
|
+
const firstArg = rawArgs?.find((a) => !a.startsWith("-"));
|
|
266
|
+
if (firstArg && cmd.subCommands && firstArg in cmd.subCommands) return;
|
|
267
|
+
await showUsage(cmd);
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
export {
|
|
271
|
+
lifecycleCommand
|
|
272
|
+
};
|
|
273
|
+
//# sourceMappingURL=lifecycle-MHR22TVI.js.map
|