@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,401 @@
|
|
|
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 "./chunk-C3B7C43W.js";
|
|
17
|
+
import {
|
|
18
|
+
isSubCommandDispatch
|
|
19
|
+
} from "./chunk-YY66LFZF.js";
|
|
20
|
+
import {
|
|
21
|
+
defineCommand
|
|
22
|
+
} from "./chunk-PKKZPOOP.js";
|
|
23
|
+
import {
|
|
24
|
+
cliError,
|
|
25
|
+
cliOutput,
|
|
26
|
+
humanInfo
|
|
27
|
+
} from "./chunk-4RGSNUUP.js";
|
|
28
|
+
import "./chunk-6JSJNYH2.js";
|
|
29
|
+
|
|
30
|
+
// packages/cleo/src/cli/commands/exodus.ts
|
|
31
|
+
import { existsSync } from "node:fs";
|
|
32
|
+
import { ExitCode } from "@cleocode/contracts/exit-codes.js";
|
|
33
|
+
import { resolveDualScopeDbPath } from "@cleocode/core/store/dual-scope-db.js";
|
|
34
|
+
import {
|
|
35
|
+
archiveMigratedSources,
|
|
36
|
+
buildExodusPlan,
|
|
37
|
+
hasExodusCompleteMarker,
|
|
38
|
+
runExodusMigrate,
|
|
39
|
+
runExodusStatus,
|
|
40
|
+
runExodusVerify,
|
|
41
|
+
sealExodus,
|
|
42
|
+
sourcesPresent,
|
|
43
|
+
verifyMigration
|
|
44
|
+
} from "@cleocode/core/store/exodus/index.js";
|
|
45
|
+
import { isDataContinuityOk } from "@cleocode/core/store/exodus/on-open.js";
|
|
46
|
+
function fmtBytes(n) {
|
|
47
|
+
if (n < 1024) return `${n} B`;
|
|
48
|
+
if (n < 1024 * 1024) return `${(n / 1024).toFixed(1)} KB`;
|
|
49
|
+
return `${(n / 1024 / 1024).toFixed(1)} MB`;
|
|
50
|
+
}
|
|
51
|
+
var migrateSubCommand = defineCommand({
|
|
52
|
+
meta: {
|
|
53
|
+
name: "migrate",
|
|
54
|
+
description: "Migrate legacy multi-DB fleet into consolidated dual-scope cleo.db"
|
|
55
|
+
},
|
|
56
|
+
args: {
|
|
57
|
+
"dry-run": {
|
|
58
|
+
type: "boolean",
|
|
59
|
+
description: "Preview migration plan without writing anything",
|
|
60
|
+
default: false
|
|
61
|
+
},
|
|
62
|
+
"force-cross-version": {
|
|
63
|
+
type: "boolean",
|
|
64
|
+
description: "Skip schema-version guard (AC9 \u2014 use with care)",
|
|
65
|
+
default: false
|
|
66
|
+
},
|
|
67
|
+
scope: {
|
|
68
|
+
type: "string",
|
|
69
|
+
description: "Which scope to migrate: 'global', 'project', or 'both' (default = full fleet)",
|
|
70
|
+
default: "both"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
async run({ args }) {
|
|
74
|
+
const dryRun = args["dry-run"] === true;
|
|
75
|
+
const forceCrossVersion = args["force-cross-version"] === true;
|
|
76
|
+
const scope = args.scope ?? "both";
|
|
77
|
+
if (scope !== "both" && scope !== "project" && scope !== "global") {
|
|
78
|
+
cliError(
|
|
79
|
+
`Invalid --scope '${scope}'. Use 'global', 'project', or 'both'.`,
|
|
80
|
+
ExitCode.VALIDATION_ERROR,
|
|
81
|
+
{ name: "E_INVALID_SCOPE" },
|
|
82
|
+
{ operation: "exodus.migrate" }
|
|
83
|
+
);
|
|
84
|
+
process.exitCode = ExitCode.VALIDATION_ERROR;
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
const fullPlan = buildExodusPlan(process.cwd());
|
|
88
|
+
const plan = scope === "both" ? fullPlan : { ...fullPlan, sources: fullPlan.sources.filter((s) => s.targetScope === scope) };
|
|
89
|
+
if (scope !== "both" && hasExodusCompleteMarker(scope) && !dryRun) {
|
|
90
|
+
cliOutput(
|
|
91
|
+
{ kind: "generic", ok: true, alreadySealed: true, scope },
|
|
92
|
+
{
|
|
93
|
+
command: "exodus migrate",
|
|
94
|
+
message: `Scope '${scope}' already migrated + sealed (completion marker present) \u2014 nothing to do.`
|
|
95
|
+
}
|
|
96
|
+
);
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
humanInfo(`Exodus migration plan:`);
|
|
100
|
+
humanInfo(
|
|
101
|
+
` Source DBs (${plan.sources.length} total, ${fmtBytes(plan.totalSourceBytes)} combined):`
|
|
102
|
+
);
|
|
103
|
+
for (const s of plan.sources) {
|
|
104
|
+
humanInfo(` [${s.targetScope.padEnd(7)}] ${s.name.padEnd(20)} ${s.path}`);
|
|
105
|
+
}
|
|
106
|
+
humanInfo(` Target project cleo.db: ${plan.projectDbPath}`);
|
|
107
|
+
humanInfo(` Target global cleo.db: ${plan.globalDbPath}`);
|
|
108
|
+
humanInfo(` Available disk: ${fmtBytes(plan.availableBytes)}`);
|
|
109
|
+
humanInfo(
|
|
110
|
+
` Required (1.2\xD7 largest ${fmtBytes(plan.largestSourceBytes)} + consolidated): ${fmtBytes(plan.requiredBytes)}`
|
|
111
|
+
);
|
|
112
|
+
humanInfo(` Disk pre-flight: ${plan.diskPreflight ? "PASS" : "FAIL"}`);
|
|
113
|
+
if (plan.resumeFromStaging) {
|
|
114
|
+
humanInfo(` Resuming from existing staging: ${plan.stagingDir}`);
|
|
115
|
+
}
|
|
116
|
+
if (dryRun) {
|
|
117
|
+
cliOutput(
|
|
118
|
+
{
|
|
119
|
+
kind: "generic",
|
|
120
|
+
dryRun: true,
|
|
121
|
+
plan: {
|
|
122
|
+
sources: plan.sources.map((s) => ({
|
|
123
|
+
name: s.name,
|
|
124
|
+
path: s.path,
|
|
125
|
+
targetScope: s.targetScope
|
|
126
|
+
})),
|
|
127
|
+
totalSourceBytes: plan.totalSourceBytes,
|
|
128
|
+
largestSourceBytes: plan.largestSourceBytes,
|
|
129
|
+
requiredBytes: plan.requiredBytes,
|
|
130
|
+
availableBytes: plan.availableBytes,
|
|
131
|
+
diskPreflight: plan.diskPreflight,
|
|
132
|
+
stagingDir: plan.stagingDir,
|
|
133
|
+
resumeFromStaging: plan.resumeFromStaging,
|
|
134
|
+
projectDbPath: plan.projectDbPath,
|
|
135
|
+
globalDbPath: plan.globalDbPath
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{ command: "exodus migrate" }
|
|
139
|
+
);
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
if (!sourcesPresent(plan.sources)) {
|
|
143
|
+
cliError(
|
|
144
|
+
"No legacy source DBs found. Nothing to migrate.",
|
|
145
|
+
ExitCode.NOT_FOUND,
|
|
146
|
+
{ name: "E_NO_SOURCES" },
|
|
147
|
+
{ operation: "exodus.migrate" }
|
|
148
|
+
);
|
|
149
|
+
process.exitCode = ExitCode.NOT_FOUND;
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
if (!plan.diskPreflight) {
|
|
153
|
+
const shortfall = Math.max(0, plan.requiredBytes - plan.availableBytes);
|
|
154
|
+
cliError(
|
|
155
|
+
`Insufficient disk space for exodus. Need \u2265${fmtBytes(plan.requiredBytes)} (\u22481.2\xD7 largest source ${fmtBytes(plan.largestSourceBytes)} + consolidated estimate ${fmtBytes(plan.totalSourceBytes)}), have ${fmtBytes(plan.availableBytes)} \u2014 ${fmtBytes(shortfall)} short. Free up space (e.g. \`cleo backup prune\`) or move .cleo/ to a larger volume.`,
|
|
156
|
+
ExitCode.VALIDATION_ERROR,
|
|
157
|
+
{ name: "E_DISK_PREFLIGHT_FAIL" },
|
|
158
|
+
{ operation: "exodus.migrate" }
|
|
159
|
+
);
|
|
160
|
+
process.exitCode = ExitCode.VALIDATION_ERROR;
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
humanInfo("Starting migration\u2026");
|
|
164
|
+
const result = await runExodusMigrate(plan, forceCrossVersion, (msg) => humanInfo(` ${msg}`));
|
|
165
|
+
if (!result.ok) {
|
|
166
|
+
cliError(
|
|
167
|
+
result.error ?? "Migration failed",
|
|
168
|
+
ExitCode.GENERAL_ERROR,
|
|
169
|
+
{ name: "E_EXODUS_MIGRATE_FAILED" },
|
|
170
|
+
{ operation: "exodus.migrate" }
|
|
171
|
+
);
|
|
172
|
+
process.exitCode = ExitCode.GENERAL_ERROR;
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
const copied = result.tables.filter((t) => !t.skipped).reduce((n, t) => n + t.rowsCopied, 0);
|
|
176
|
+
const skipped = result.tables.filter((t) => t.skipped).length;
|
|
177
|
+
const verifyResult = verifyMigration(
|
|
178
|
+
plan.sources,
|
|
179
|
+
plan.projectDbPath,
|
|
180
|
+
plan.globalDbPath,
|
|
181
|
+
(msg) => humanInfo(` verify: ${msg}`)
|
|
182
|
+
);
|
|
183
|
+
let archived = [];
|
|
184
|
+
if (isDataContinuityOk(verifyResult)) {
|
|
185
|
+
const consumed = plan.sources.filter((s) => existsSync(s.path));
|
|
186
|
+
const archiveResult = archiveMigratedSources(consumed, process.cwd());
|
|
187
|
+
archived = archiveResult.sources.filter((s) => s.action === "archived").map((s) => s.name);
|
|
188
|
+
humanInfo(
|
|
189
|
+
` Archived ${archived.length} legacy source DB(s) \u2192 _archive/ and sealed completion marker(s): ${archiveResult.markersWritten.join(", ")}`
|
|
190
|
+
);
|
|
191
|
+
} else {
|
|
192
|
+
humanInfo(
|
|
193
|
+
" Parity validation did NOT pass \u2014 legacy sources LEFT IN PLACE (not archived). Run `cleo exodus verify` to inspect."
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
cliOutput(
|
|
197
|
+
{
|
|
198
|
+
kind: "generic",
|
|
199
|
+
ok: true,
|
|
200
|
+
summary: {
|
|
201
|
+
tablesProcessed: result.tables.length,
|
|
202
|
+
rowsCopied: copied,
|
|
203
|
+
tablesSkipped: skipped,
|
|
204
|
+
stagingDir: result.stagingDir,
|
|
205
|
+
backupCount: result.backupPaths.length,
|
|
206
|
+
archivedSources: archived,
|
|
207
|
+
archived: archived.length > 0
|
|
208
|
+
},
|
|
209
|
+
tables: result.tables
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
command: "exodus migrate",
|
|
213
|
+
message: `Migration complete. ${result.tables.length} tables processed, ${copied} rows copied.`
|
|
214
|
+
}
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
var verifySubCommand = defineCommand({
|
|
219
|
+
meta: {
|
|
220
|
+
name: "verify",
|
|
221
|
+
description: "Verify row-level equivalence between legacy DBs and consolidated cleo.db"
|
|
222
|
+
},
|
|
223
|
+
args: {
|
|
224
|
+
"show-passing": {
|
|
225
|
+
type: "boolean",
|
|
226
|
+
description: "Include passing tables in human output (default: failures only)",
|
|
227
|
+
default: false
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
run({ args }) {
|
|
231
|
+
const showPassing = args["show-passing"] === true;
|
|
232
|
+
const plan = buildExodusPlan(process.cwd());
|
|
233
|
+
const projectDbPath = resolveDualScopeDbPath("project", process.cwd());
|
|
234
|
+
const globalDbPath = resolveDualScopeDbPath("global");
|
|
235
|
+
humanInfo("Running equivalence verification\u2026");
|
|
236
|
+
const result = runExodusVerify(
|
|
237
|
+
plan.sources,
|
|
238
|
+
projectDbPath,
|
|
239
|
+
globalDbPath,
|
|
240
|
+
(msg) => humanInfo(` ${msg}`)
|
|
241
|
+
);
|
|
242
|
+
if (!result.ok && result.error) {
|
|
243
|
+
cliError(
|
|
244
|
+
result.error,
|
|
245
|
+
ExitCode.GENERAL_ERROR,
|
|
246
|
+
{ name: "E_EXODUS_VERIFY_FAILED" },
|
|
247
|
+
{ operation: "exodus.verify" }
|
|
248
|
+
);
|
|
249
|
+
process.exitCode = ExitCode.GENERAL_ERROR;
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
const failures = result.tables.filter((t) => !t.countMatch || !t.hashMatch);
|
|
253
|
+
const passing = result.tables.filter((t) => t.countMatch && t.hashMatch);
|
|
254
|
+
if (failures.length > 0) {
|
|
255
|
+
humanInfo(`
|
|
256
|
+
Failed tables (${failures.length}):`);
|
|
257
|
+
for (const t of failures) {
|
|
258
|
+
humanInfo(
|
|
259
|
+
` FAIL [${t.scope}] ${t.tableName}: source=${t.sourceCount}, target=${t.targetCount}, hashMatch=${t.hashMatch}`
|
|
260
|
+
);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
if (showPassing && passing.length > 0) {
|
|
264
|
+
humanInfo(`
|
|
265
|
+
Passing tables (${passing.length}):`);
|
|
266
|
+
for (const t of passing) {
|
|
267
|
+
humanInfo(` OK [${t.scope}] ${t.tableName}: ${t.sourceCount} rows`);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
cliOutput(
|
|
271
|
+
{
|
|
272
|
+
kind: "generic",
|
|
273
|
+
ok: result.ok,
|
|
274
|
+
summary: {
|
|
275
|
+
totalTables: result.tables.length,
|
|
276
|
+
passing: passing.length,
|
|
277
|
+
failing: failures.length
|
|
278
|
+
},
|
|
279
|
+
failures,
|
|
280
|
+
...showPassing ? { passing } : {}
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
command: "exodus verify",
|
|
284
|
+
message: result.ok ? `All ${passing.length} tables verified \u2014 equivalence confirmed.` : `${failures.length} table(s) failed equivalence check.`
|
|
285
|
+
}
|
|
286
|
+
);
|
|
287
|
+
if (!result.ok) {
|
|
288
|
+
process.exitCode = ExitCode.GENERAL_ERROR;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
var sealSubCommand = defineCommand({
|
|
293
|
+
meta: {
|
|
294
|
+
name: "seal",
|
|
295
|
+
description: "Certify an already-migrated install: count-parity gate (no digest) \u2192 archive legacy source DBs (reversible) + write the completion marker so exodus-on-open stops re-firing."
|
|
296
|
+
},
|
|
297
|
+
args: {
|
|
298
|
+
scope: {
|
|
299
|
+
type: "string",
|
|
300
|
+
description: "Which scope to seal: 'global', 'project', or 'both' (default)",
|
|
301
|
+
default: "both"
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
run({ args }) {
|
|
305
|
+
const scope = args.scope ?? "both";
|
|
306
|
+
if (scope !== "both" && scope !== "project" && scope !== "global") {
|
|
307
|
+
cliError(
|
|
308
|
+
`Invalid --scope '${scope}'. Use 'global', 'project', or 'both'.`,
|
|
309
|
+
ExitCode.VALIDATION_ERROR,
|
|
310
|
+
{ name: "E_INVALID_SCOPE" },
|
|
311
|
+
{ operation: "exodus.seal" }
|
|
312
|
+
);
|
|
313
|
+
process.exitCode = ExitCode.VALIDATION_ERROR;
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
const plan = buildExodusPlan(process.cwd());
|
|
317
|
+
const result = sealExodus(plan, scope, process.cwd());
|
|
318
|
+
if (!result.ok) {
|
|
319
|
+
cliError(
|
|
320
|
+
result.refusedReason ?? "Seal refused \u2014 parity deficit.",
|
|
321
|
+
ExitCode.GENERAL_ERROR,
|
|
322
|
+
{ name: "E_EXODUS_SEAL_DEFICIT" },
|
|
323
|
+
{ operation: "exodus.seal" }
|
|
324
|
+
);
|
|
325
|
+
process.exitCode = ExitCode.GENERAL_ERROR;
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
for (const sc of result.scopes) {
|
|
329
|
+
const moved = sc.archived.filter((a) => a.action === "archived").length;
|
|
330
|
+
humanInfo(
|
|
331
|
+
` [${sc.scope}] ${sc.alreadySealed ? "re-sealed" : "sealed"} \u2014 archived ${moved} legacy DB(s), marker: ${sc.markerPath}`
|
|
332
|
+
);
|
|
333
|
+
}
|
|
334
|
+
cliOutput(
|
|
335
|
+
{
|
|
336
|
+
kind: "generic",
|
|
337
|
+
ok: true,
|
|
338
|
+
scopesSealed: result.scopes.map((s) => s.scope),
|
|
339
|
+
tablesVerified: result.parity.checked,
|
|
340
|
+
archived: result.scopes.flatMap(
|
|
341
|
+
(s) => s.archived.filter((a) => a.action === "archived").map((a) => ({ scope: s.scope, name: a.name, archivedTo: a.archivedTo }))
|
|
342
|
+
)
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
command: "exodus seal",
|
|
346
|
+
message: `Sealed ${result.scopes.map((s) => s.scope).join(
|
|
347
|
+
" + "
|
|
348
|
+
)} \u2014 ${result.parity.checked} tables count-verified, legacy DBs archived (reversible).`
|
|
349
|
+
}
|
|
350
|
+
);
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
function showStatus() {
|
|
354
|
+
const result = runExodusStatus(process.cwd());
|
|
355
|
+
humanInfo("Exodus status:");
|
|
356
|
+
humanInfo(` Staging dir present: ${result.hasStaging ? result.stagingDir ?? "yes" : "none"}`);
|
|
357
|
+
humanInfo(` Project cleo.db: ${result.projectDbExists ? "present" : "not yet created"}`);
|
|
358
|
+
humanInfo(` Global cleo.db: ${result.globalDbExists ? "present" : "not yet created"}`);
|
|
359
|
+
humanInfo("");
|
|
360
|
+
humanInfo(" Source DBs:");
|
|
361
|
+
for (const s of result.sources) {
|
|
362
|
+
const size = s.exists ? `${(s.bytes / 1024).toFixed(1)} KB` : "-";
|
|
363
|
+
humanInfo(` ${s.exists ? "\u2713" : "\u2717"} ${s.name.padEnd(22)} ${size.padStart(10)} ${s.path}`);
|
|
364
|
+
}
|
|
365
|
+
if (result.journal) {
|
|
366
|
+
const done = result.journal.tables.filter((t) => t.status === "done").length;
|
|
367
|
+
const total = result.journal.tables.length;
|
|
368
|
+
humanInfo("");
|
|
369
|
+
humanInfo(` Journal: ${done}/${total} tables done, started ${result.journal.startedAt}`);
|
|
370
|
+
}
|
|
371
|
+
cliOutput(result, { command: "exodus status" });
|
|
372
|
+
}
|
|
373
|
+
var statusSubCommand = defineCommand({
|
|
374
|
+
meta: {
|
|
375
|
+
name: "status",
|
|
376
|
+
description: "Show exodus migration status (staging, source DBs, target DBs)"
|
|
377
|
+
},
|
|
378
|
+
run() {
|
|
379
|
+
showStatus();
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
var exodusCommand = defineCommand({
|
|
383
|
+
meta: {
|
|
384
|
+
name: "exodus",
|
|
385
|
+
description: "[TRANSITIONAL] Migrate legacy multi-DB fleet to consolidated dual-scope cleo.db (SG-DB-SUBSTRATE-V2)"
|
|
386
|
+
},
|
|
387
|
+
subCommands: {
|
|
388
|
+
migrate: migrateSubCommand,
|
|
389
|
+
verify: verifySubCommand,
|
|
390
|
+
seal: sealSubCommand,
|
|
391
|
+
status: statusSubCommand
|
|
392
|
+
},
|
|
393
|
+
async run({ cmd, rawArgs }) {
|
|
394
|
+
if (isSubCommandDispatch(rawArgs, cmd.subCommands)) return;
|
|
395
|
+
showStatus();
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
export {
|
|
399
|
+
exodusCommand
|
|
400
|
+
};
|
|
401
|
+
//# sourceMappingURL=exodus-DUX62344.js.map
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
} from "./chunk-PKKZPOOP.js";
|
|
26
|
+
import "./chunk-QKMBWYAS.js";
|
|
27
|
+
import "./chunk-4RGSNUUP.js";
|
|
28
|
+
import "./chunk-6JSJNYH2.js";
|
|
29
|
+
import "./chunk-D7BAQNV2.js";
|
|
30
|
+
import "./chunk-TYC7G5LF.js";
|
|
31
|
+
|
|
32
|
+
// packages/cleo/src/cli/commands/export.ts
|
|
33
|
+
var exportCommand = defineCommand({
|
|
34
|
+
meta: { name: "export", description: "Export tasks to CSV, TSV, JSON, or markdown format" },
|
|
35
|
+
args: {
|
|
36
|
+
"export-format": {
|
|
37
|
+
type: "string",
|
|
38
|
+
description: "Export format: json, csv, tsv, markdown",
|
|
39
|
+
default: "json"
|
|
40
|
+
},
|
|
41
|
+
output: {
|
|
42
|
+
type: "string",
|
|
43
|
+
description: "Output file path (stdout if omitted)"
|
|
44
|
+
},
|
|
45
|
+
status: {
|
|
46
|
+
type: "string",
|
|
47
|
+
description: "Filter by status (comma-separated)"
|
|
48
|
+
},
|
|
49
|
+
parent: {
|
|
50
|
+
type: "string",
|
|
51
|
+
description: "Filter by parent task"
|
|
52
|
+
},
|
|
53
|
+
phase: {
|
|
54
|
+
type: "string",
|
|
55
|
+
description: "Filter by phase"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
async run({ args }) {
|
|
59
|
+
const hasOutput = !!args.output;
|
|
60
|
+
if (hasOutput) {
|
|
61
|
+
await dispatchFromCli(
|
|
62
|
+
"query",
|
|
63
|
+
"admin",
|
|
64
|
+
"export",
|
|
65
|
+
{
|
|
66
|
+
format: args["export-format"],
|
|
67
|
+
output: args.output,
|
|
68
|
+
status: args.status,
|
|
69
|
+
parent: args.parent,
|
|
70
|
+
phase: args.phase
|
|
71
|
+
},
|
|
72
|
+
{ command: "export" }
|
|
73
|
+
);
|
|
74
|
+
} else {
|
|
75
|
+
const response = await dispatchRaw("query", "admin", "export", {
|
|
76
|
+
format: args["export-format"],
|
|
77
|
+
status: args.status,
|
|
78
|
+
parent: args.parent,
|
|
79
|
+
phase: args.phase
|
|
80
|
+
});
|
|
81
|
+
handleRawError(response, { command: "export", operation: "admin.export" });
|
|
82
|
+
const data = response.data;
|
|
83
|
+
if (data?.content) {
|
|
84
|
+
process.stdout.write(data.content);
|
|
85
|
+
if (!data.content.endsWith("\n")) process.stdout.write("\n");
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
export {
|
|
91
|
+
exportCommand
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=export-C5PQIQ5O.js.map
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
} from "./chunk-PKKZPOOP.js";
|
|
26
|
+
import "./chunk-QKMBWYAS.js";
|
|
27
|
+
import "./chunk-4RGSNUUP.js";
|
|
28
|
+
import "./chunk-6JSJNYH2.js";
|
|
29
|
+
import "./chunk-D7BAQNV2.js";
|
|
30
|
+
import "./chunk-TYC7G5LF.js";
|
|
31
|
+
|
|
32
|
+
// packages/cleo/src/cli/commands/export-tasks.ts
|
|
33
|
+
var exportTasksCommand = defineCommand({
|
|
34
|
+
meta: {
|
|
35
|
+
name: "export-tasks",
|
|
36
|
+
description: "Export tasks to portable .cleo-export.json package for cross-project transfer"
|
|
37
|
+
},
|
|
38
|
+
args: {
|
|
39
|
+
taskIds: {
|
|
40
|
+
type: "positional",
|
|
41
|
+
description: "Task IDs to export (space-separated; omit to export all)",
|
|
42
|
+
required: false
|
|
43
|
+
},
|
|
44
|
+
output: {
|
|
45
|
+
type: "string",
|
|
46
|
+
description: "Output file path (stdout if omitted)",
|
|
47
|
+
alias: "o"
|
|
48
|
+
},
|
|
49
|
+
subtree: {
|
|
50
|
+
type: "boolean",
|
|
51
|
+
description: "Include all descendants of specified task(s)",
|
|
52
|
+
default: false
|
|
53
|
+
},
|
|
54
|
+
filter: {
|
|
55
|
+
type: "string",
|
|
56
|
+
description: "Filter tasks by criteria (key=value)"
|
|
57
|
+
},
|
|
58
|
+
"include-deps": {
|
|
59
|
+
type: "boolean",
|
|
60
|
+
description: "Auto-include task dependencies",
|
|
61
|
+
default: false
|
|
62
|
+
},
|
|
63
|
+
"dry-run": {
|
|
64
|
+
type: "boolean",
|
|
65
|
+
description: "Preview selection without creating export file",
|
|
66
|
+
default: false
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
async run({ args }) {
|
|
70
|
+
const hasOutput = !!args.output;
|
|
71
|
+
const dryRun = args["dry-run"];
|
|
72
|
+
const params = {
|
|
73
|
+
taskIds: args.taskIds ? [args.taskIds] : void 0,
|
|
74
|
+
output: args.output,
|
|
75
|
+
subtree: args.subtree,
|
|
76
|
+
filter: args.filter,
|
|
77
|
+
includeDeps: args["include-deps"],
|
|
78
|
+
dryRun,
|
|
79
|
+
scope: "tasks"
|
|
80
|
+
};
|
|
81
|
+
if (hasOutput || dryRun) {
|
|
82
|
+
await dispatchFromCli("query", "admin", "export", params, { command: "export-tasks" });
|
|
83
|
+
} else {
|
|
84
|
+
const response = await dispatchRaw("query", "admin", "export", params);
|
|
85
|
+
handleRawError(response, { command: "export-tasks", operation: "admin.export" });
|
|
86
|
+
const data = response.data;
|
|
87
|
+
if (data?.content) {
|
|
88
|
+
process.stdout.write(data.content);
|
|
89
|
+
if (!data.content.endsWith("\n")) process.stdout.write("\n");
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
export {
|
|
95
|
+
exportTasksCommand
|
|
96
|
+
};
|
|
97
|
+
//# sourceMappingURL=export-tasks-CUXDZPJB.js.map
|