@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,252 @@
|
|
|
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
|
+
|
|
17
|
+
// packages/cleo/src/cli/lib/did-you-mean.ts
|
|
18
|
+
function levenshteinDistance(input, candidate) {
|
|
19
|
+
const inputLen = input.length;
|
|
20
|
+
const candidateLen = candidate.length;
|
|
21
|
+
const matrix = Array.from({ length: inputLen + 1 }, (_, i) => [i]);
|
|
22
|
+
for (let j = 1; j <= candidateLen; j++) {
|
|
23
|
+
matrix[0][j] = j;
|
|
24
|
+
}
|
|
25
|
+
for (let i = 1; i <= inputLen; i++) {
|
|
26
|
+
for (let j = 1; j <= candidateLen; j++) {
|
|
27
|
+
const cost = input[i - 1] === candidate[j - 1] ? 0 : 1;
|
|
28
|
+
matrix[i][j] = Math.min(
|
|
29
|
+
matrix[i - 1][j] + 1,
|
|
30
|
+
// deletion
|
|
31
|
+
matrix[i][j - 1] + 1,
|
|
32
|
+
// insertion
|
|
33
|
+
matrix[i - 1][j - 1] + cost
|
|
34
|
+
// substitution
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return matrix[inputLen][candidateLen];
|
|
39
|
+
}
|
|
40
|
+
function didYouMean(input, candidates, maxDistance = 2) {
|
|
41
|
+
const suggestions = candidates.map((candidate) => ({
|
|
42
|
+
command: candidate,
|
|
43
|
+
distance: levenshteinDistance(input, candidate)
|
|
44
|
+
})).filter((item) => item.distance <= maxDistance).sort((a, b) => {
|
|
45
|
+
if (a.distance !== b.distance) {
|
|
46
|
+
return a.distance - b.distance;
|
|
47
|
+
}
|
|
48
|
+
return a.command.localeCompare(b.command);
|
|
49
|
+
}).map((item) => item.command);
|
|
50
|
+
return suggestions;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// packages/cleo/src/cli/lib/strict-args.ts
|
|
54
|
+
var E_UNKNOWN_FLAG = "E_UNKNOWN_FLAG";
|
|
55
|
+
var RETIRED_FLAG_GUIDANCE = /* @__PURE__ */ new Map([
|
|
56
|
+
[
|
|
57
|
+
"complete",
|
|
58
|
+
/* @__PURE__ */ new Map([
|
|
59
|
+
[
|
|
60
|
+
"--force",
|
|
61
|
+
'--force was removed by ADR-051. Record evidence instead: `cleo verify <id> --gate <gate> --evidence "<atoms>"`, then `cleo complete <id>`. For an audited emergency bypass, set CLEO_OWNER_OVERRIDE=1 on verify.'
|
|
62
|
+
]
|
|
63
|
+
])
|
|
64
|
+
]
|
|
65
|
+
]);
|
|
66
|
+
var RETIRED_FLAG_ALIASES = /* @__PURE__ */ new Map([["done", "complete"]]);
|
|
67
|
+
function retiredGuidanceFor(commandName, flag) {
|
|
68
|
+
const key = RETIRED_FLAG_ALIASES.get(commandName) ?? commandName;
|
|
69
|
+
return RETIRED_FLAG_GUIDANCE.get(key)?.get(flag);
|
|
70
|
+
}
|
|
71
|
+
var CLI_GLOBAL_FLAGS = Object.freeze([
|
|
72
|
+
"--json",
|
|
73
|
+
"--human",
|
|
74
|
+
"--quiet",
|
|
75
|
+
"--field",
|
|
76
|
+
"--fields",
|
|
77
|
+
"--mvi",
|
|
78
|
+
"--verbose",
|
|
79
|
+
"--full",
|
|
80
|
+
"--output",
|
|
81
|
+
"--summary",
|
|
82
|
+
"--describe",
|
|
83
|
+
"--idempotency-key",
|
|
84
|
+
"--help",
|
|
85
|
+
"--version"
|
|
86
|
+
]);
|
|
87
|
+
var CLI_GLOBAL_VALUE_FLAGS = Object.freeze([
|
|
88
|
+
"--field",
|
|
89
|
+
"--fields",
|
|
90
|
+
"--mvi",
|
|
91
|
+
"--output"
|
|
92
|
+
]);
|
|
93
|
+
function normalizeGlobalValueFlags(argv) {
|
|
94
|
+
const normalized = [];
|
|
95
|
+
for (let i = 0; i < argv.length; i++) {
|
|
96
|
+
const token = argv[i];
|
|
97
|
+
if (token === "--") {
|
|
98
|
+
normalized.push(...argv.slice(i));
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
if (token !== void 0 && CLI_GLOBAL_VALUE_FLAGS.includes(token) && i + 1 < argv.length) {
|
|
102
|
+
normalized.push(`${token}=${argv[i + 1]}`);
|
|
103
|
+
i++;
|
|
104
|
+
continue;
|
|
105
|
+
}
|
|
106
|
+
if (token !== void 0) {
|
|
107
|
+
normalized.push(token);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return normalized;
|
|
111
|
+
}
|
|
112
|
+
var UnknownFlagError = class extends Error {
|
|
113
|
+
/** Stable LAFS error code string for envelope emission. */
|
|
114
|
+
code = E_UNKNOWN_FLAG;
|
|
115
|
+
/** The unknown flag token as it appeared in `rawArgs` (e.g. `--titel`, `-X`). */
|
|
116
|
+
flag;
|
|
117
|
+
/** Human-readable command label (e.g. `'docs add'`). */
|
|
118
|
+
command;
|
|
119
|
+
/** Did-you-mean suggestions, sorted by Levenshtein distance ascending. */
|
|
120
|
+
suggestions;
|
|
121
|
+
/** The full list of known flags accepted by the command (long form + short). */
|
|
122
|
+
knownFlags;
|
|
123
|
+
/** Suggested fix string for {@link CliErrorDetails.fix}. */
|
|
124
|
+
fix;
|
|
125
|
+
/** Set when the flag was REMOVED rather than mistyped. @task T12139 */
|
|
126
|
+
retiredGuidance;
|
|
127
|
+
/**
|
|
128
|
+
* @param input - Structured failure context: offending flag, command
|
|
129
|
+
* label, ranked suggestions, and the full known-flag set.
|
|
130
|
+
*/
|
|
131
|
+
constructor(input) {
|
|
132
|
+
const suggestionPart = input.suggestions.length > 0 ? ` Did you mean: ${input.suggestions.join(", ")}?` : "";
|
|
133
|
+
super(
|
|
134
|
+
`${E_UNKNOWN_FLAG}: unknown flag '${input.flag}' for '${input.command}'.${suggestionPart}`
|
|
135
|
+
);
|
|
136
|
+
this.name = "UnknownFlagError";
|
|
137
|
+
this.flag = input.flag;
|
|
138
|
+
this.command = input.command;
|
|
139
|
+
this.suggestions = input.suggestions;
|
|
140
|
+
this.knownFlags = input.knownFlags;
|
|
141
|
+
this.retiredGuidance = input.retiredGuidance;
|
|
142
|
+
this.fix = input.retiredGuidance ? input.retiredGuidance : input.suggestions.length > 0 ? `Try one of: ${input.suggestions.join(", ")}. Run \`cleo ${input.command} --help\` for the full flag list.` : `Run \`cleo ${input.command} --help\` for the full flag list.`;
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
function collectKnownLongFlags(schema) {
|
|
146
|
+
const known = /* @__PURE__ */ new Set();
|
|
147
|
+
for (const [name, def] of Object.entries(schema)) {
|
|
148
|
+
if (!def) continue;
|
|
149
|
+
known.add(`--${name}`);
|
|
150
|
+
if (def.type === "positional") continue;
|
|
151
|
+
if (def.type === "boolean") {
|
|
152
|
+
known.add(`--no-${name}`);
|
|
153
|
+
}
|
|
154
|
+
const alias = def.alias;
|
|
155
|
+
if (typeof alias === "string" && alias.length > 0) {
|
|
156
|
+
known.add(alias.length === 1 ? `-${alias}` : `--${alias}`);
|
|
157
|
+
} else if (Array.isArray(alias)) {
|
|
158
|
+
for (const a of alias) {
|
|
159
|
+
if (typeof a !== "string" || a.length === 0) continue;
|
|
160
|
+
known.add(a.length === 1 ? `-${a}` : `--${a}`);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
return known;
|
|
165
|
+
}
|
|
166
|
+
function collectSuggestionCandidates(schema) {
|
|
167
|
+
const candidates = [];
|
|
168
|
+
for (const [name, def] of Object.entries(schema)) {
|
|
169
|
+
if (!def || def.type === "positional") continue;
|
|
170
|
+
candidates.push(`--${name}`);
|
|
171
|
+
}
|
|
172
|
+
return candidates.sort();
|
|
173
|
+
}
|
|
174
|
+
function assertKnownFlags(rawArgs, schema, commandName) {
|
|
175
|
+
if (!rawArgs || rawArgs.length === 0) return;
|
|
176
|
+
if (schema === void 0) return;
|
|
177
|
+
if (typeof schema === "function" || typeof schema === "object" && schema !== null && "then" in schema) {
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
const resolved = schema;
|
|
181
|
+
const known = collectKnownLongFlags(resolved);
|
|
182
|
+
for (const global of CLI_GLOBAL_FLAGS) known.add(global);
|
|
183
|
+
const candidates = collectSuggestionCandidates(resolved);
|
|
184
|
+
for (let i = 0; i < rawArgs.length; i++) {
|
|
185
|
+
const token = rawArgs[i];
|
|
186
|
+
if (token === void 0) continue;
|
|
187
|
+
if (token === "--") break;
|
|
188
|
+
if (!token.startsWith("-")) continue;
|
|
189
|
+
if (token === "-") continue;
|
|
190
|
+
if (token.startsWith("--")) {
|
|
191
|
+
const eqIdx = token.indexOf("=");
|
|
192
|
+
const flagName = eqIdx >= 0 ? token.slice(0, eqIdx) : token;
|
|
193
|
+
if (!known.has(flagName)) {
|
|
194
|
+
throw new UnknownFlagError({
|
|
195
|
+
retiredGuidance: retiredGuidanceFor(commandName, flagName),
|
|
196
|
+
flag: flagName,
|
|
197
|
+
command: commandName,
|
|
198
|
+
suggestions: didYouMean(flagName, candidates, 3),
|
|
199
|
+
knownFlags: [...known].sort()
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
} else {
|
|
203
|
+
const eqIdx = token.indexOf("=");
|
|
204
|
+
const body = eqIdx >= 0 ? token.slice(1, eqIdx) : token.slice(1);
|
|
205
|
+
const first = `-${body[0]}`;
|
|
206
|
+
if (!known.has(first)) {
|
|
207
|
+
throw new UnknownFlagError({
|
|
208
|
+
flag: first,
|
|
209
|
+
command: commandName,
|
|
210
|
+
suggestions: didYouMean(first, candidates, 3),
|
|
211
|
+
knownFlags: [...known].sort()
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
if (eqIdx < 0 && body.length > 1) {
|
|
215
|
+
const isBooleanShort = isBooleanAlias(resolved, body[0]);
|
|
216
|
+
if (isBooleanShort) {
|
|
217
|
+
for (let k = 1; k < body.length; k++) {
|
|
218
|
+
const ch = body[k];
|
|
219
|
+
if (ch === void 0) continue;
|
|
220
|
+
const short = `-${ch}`;
|
|
221
|
+
if (!known.has(short)) {
|
|
222
|
+
throw new UnknownFlagError({
|
|
223
|
+
flag: short,
|
|
224
|
+
command: commandName,
|
|
225
|
+
suggestions: didYouMean(short, candidates, 3),
|
|
226
|
+
knownFlags: [...known].sort()
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
function isBooleanAlias(schema, letter) {
|
|
236
|
+
if (!letter) return false;
|
|
237
|
+
for (const def of Object.values(schema)) {
|
|
238
|
+
if (!def || def.type !== "boolean") continue;
|
|
239
|
+
const alias = def.alias;
|
|
240
|
+
if (alias === letter) return true;
|
|
241
|
+
if (Array.isArray(alias) && alias.includes(letter)) return true;
|
|
242
|
+
}
|
|
243
|
+
return false;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export {
|
|
247
|
+
didYouMean,
|
|
248
|
+
normalizeGlobalValueFlags,
|
|
249
|
+
UnknownFlagError,
|
|
250
|
+
assertKnownFlags
|
|
251
|
+
};
|
|
252
|
+
//# sourceMappingURL=chunk-OILHT47L.js.map
|
|
@@ -0,0 +1,352 @@
|
|
|
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
|
+
|
|
17
|
+
// node_modules/.pnpm/citty@0.2.1/node_modules/citty/dist/_chunks/libs/scule.mjs
|
|
18
|
+
var NUMBER_CHAR_RE = /\d/;
|
|
19
|
+
var STR_SPLITTERS = [
|
|
20
|
+
"-",
|
|
21
|
+
"_",
|
|
22
|
+
"/",
|
|
23
|
+
"."
|
|
24
|
+
];
|
|
25
|
+
function isUppercase(char = "") {
|
|
26
|
+
if (NUMBER_CHAR_RE.test(char)) return;
|
|
27
|
+
return char !== char.toLowerCase();
|
|
28
|
+
}
|
|
29
|
+
function splitByCase(str, separators) {
|
|
30
|
+
const splitters = separators ?? STR_SPLITTERS;
|
|
31
|
+
const parts = [];
|
|
32
|
+
if (!str || typeof str !== "string") return parts;
|
|
33
|
+
let buff = "";
|
|
34
|
+
let previousUpper;
|
|
35
|
+
let previousSplitter;
|
|
36
|
+
for (const char of str) {
|
|
37
|
+
const isSplitter = splitters.includes(char);
|
|
38
|
+
if (isSplitter === true) {
|
|
39
|
+
parts.push(buff);
|
|
40
|
+
buff = "";
|
|
41
|
+
previousUpper = void 0;
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
const isUpper = isUppercase(char);
|
|
45
|
+
if (previousSplitter === false) {
|
|
46
|
+
if (previousUpper === false && isUpper === true) {
|
|
47
|
+
parts.push(buff);
|
|
48
|
+
buff = char;
|
|
49
|
+
previousUpper = isUpper;
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
if (previousUpper === true && isUpper === false && buff.length > 1) {
|
|
53
|
+
const lastChar = buff.at(-1);
|
|
54
|
+
parts.push(buff.slice(0, Math.max(0, buff.length - 1)));
|
|
55
|
+
buff = lastChar + char;
|
|
56
|
+
previousUpper = isUpper;
|
|
57
|
+
continue;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
buff += char;
|
|
61
|
+
previousUpper = isUpper;
|
|
62
|
+
previousSplitter = isSplitter;
|
|
63
|
+
}
|
|
64
|
+
parts.push(buff);
|
|
65
|
+
return parts;
|
|
66
|
+
}
|
|
67
|
+
function upperFirst(str) {
|
|
68
|
+
return str ? str[0].toUpperCase() + str.slice(1) : "";
|
|
69
|
+
}
|
|
70
|
+
function lowerFirst(str) {
|
|
71
|
+
return str ? str[0].toLowerCase() + str.slice(1) : "";
|
|
72
|
+
}
|
|
73
|
+
function pascalCase(str, opts) {
|
|
74
|
+
return str ? (Array.isArray(str) ? str : splitByCase(str)).map((p) => upperFirst(opts?.normalize ? p.toLowerCase() : p)).join("") : "";
|
|
75
|
+
}
|
|
76
|
+
function camelCase(str, opts) {
|
|
77
|
+
return lowerFirst(pascalCase(str || "", opts));
|
|
78
|
+
}
|
|
79
|
+
function kebabCase(str, joiner) {
|
|
80
|
+
return str ? (Array.isArray(str) ? str : splitByCase(str)).map((p) => p.toLowerCase()).join(joiner ?? "-") : "";
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// node_modules/.pnpm/citty@0.2.1/node_modules/citty/dist/index.mjs
|
|
84
|
+
import { parseArgs as parseArgs$1 } from "node:util";
|
|
85
|
+
function toArray(val) {
|
|
86
|
+
if (Array.isArray(val)) return val;
|
|
87
|
+
return val === void 0 ? [] : [val];
|
|
88
|
+
}
|
|
89
|
+
function formatLineColumns(lines, linePrefix = "") {
|
|
90
|
+
const maxLength = [];
|
|
91
|
+
for (const line of lines) for (const [i, element] of line.entries()) maxLength[i] = Math.max(maxLength[i] || 0, element.length);
|
|
92
|
+
return lines.map((l) => l.map((c, i) => linePrefix + c[i === 0 ? "padStart" : "padEnd"](maxLength[i])).join(" ")).join("\n");
|
|
93
|
+
}
|
|
94
|
+
function resolveValue(input) {
|
|
95
|
+
return typeof input === "function" ? input() : input;
|
|
96
|
+
}
|
|
97
|
+
var CLIError = class extends Error {
|
|
98
|
+
code;
|
|
99
|
+
constructor(message, code) {
|
|
100
|
+
super(message);
|
|
101
|
+
this.name = "CLIError";
|
|
102
|
+
this.code = code;
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
function parseRawArgs(args = [], opts = {}) {
|
|
106
|
+
const booleans = new Set(opts.boolean || []);
|
|
107
|
+
const strings = new Set(opts.string || []);
|
|
108
|
+
const aliasMap = opts.alias || {};
|
|
109
|
+
const defaults = opts.default || {};
|
|
110
|
+
const aliasToMain = /* @__PURE__ */ new Map();
|
|
111
|
+
const mainToAliases = /* @__PURE__ */ new Map();
|
|
112
|
+
for (const [key, value] of Object.entries(aliasMap)) {
|
|
113
|
+
const targets = value;
|
|
114
|
+
for (const target of targets) {
|
|
115
|
+
aliasToMain.set(key, target);
|
|
116
|
+
if (!mainToAliases.has(target)) mainToAliases.set(target, []);
|
|
117
|
+
mainToAliases.get(target).push(key);
|
|
118
|
+
aliasToMain.set(target, key);
|
|
119
|
+
if (!mainToAliases.has(key)) mainToAliases.set(key, []);
|
|
120
|
+
mainToAliases.get(key).push(target);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
const options = {};
|
|
124
|
+
function getType(name) {
|
|
125
|
+
if (booleans.has(name)) return "boolean";
|
|
126
|
+
const aliases = mainToAliases.get(name) || [];
|
|
127
|
+
for (const alias of aliases) if (booleans.has(alias)) return "boolean";
|
|
128
|
+
return "string";
|
|
129
|
+
}
|
|
130
|
+
const allOptions = /* @__PURE__ */ new Set([
|
|
131
|
+
...booleans,
|
|
132
|
+
...strings,
|
|
133
|
+
...Object.keys(aliasMap),
|
|
134
|
+
...Object.values(aliasMap).flat(),
|
|
135
|
+
...Object.keys(defaults)
|
|
136
|
+
]);
|
|
137
|
+
for (const name of allOptions) if (!options[name]) options[name] = {
|
|
138
|
+
type: getType(name),
|
|
139
|
+
default: defaults[name]
|
|
140
|
+
};
|
|
141
|
+
for (const [alias, main] of aliasToMain.entries()) if (alias.length === 1 && options[main] && !options[main].short) options[main].short = alias;
|
|
142
|
+
const processedArgs = [];
|
|
143
|
+
const negatedFlags = {};
|
|
144
|
+
for (let i = 0; i < args.length; i++) {
|
|
145
|
+
const arg = args[i];
|
|
146
|
+
if (arg === "--") {
|
|
147
|
+
processedArgs.push(...args.slice(i));
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
if (arg.startsWith("--no-")) {
|
|
151
|
+
const flagName = arg.slice(5);
|
|
152
|
+
negatedFlags[flagName] = true;
|
|
153
|
+
continue;
|
|
154
|
+
}
|
|
155
|
+
processedArgs.push(arg);
|
|
156
|
+
}
|
|
157
|
+
let parsed;
|
|
158
|
+
try {
|
|
159
|
+
parsed = parseArgs$1({
|
|
160
|
+
args: processedArgs,
|
|
161
|
+
options: Object.keys(options).length > 0 ? options : void 0,
|
|
162
|
+
allowPositionals: true,
|
|
163
|
+
strict: false
|
|
164
|
+
});
|
|
165
|
+
} catch {
|
|
166
|
+
parsed = {
|
|
167
|
+
values: {},
|
|
168
|
+
positionals: processedArgs
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
const out = { _: [] };
|
|
172
|
+
out._ = parsed.positionals;
|
|
173
|
+
for (const [key, value] of Object.entries(parsed.values)) out[key] = value;
|
|
174
|
+
for (const [name] of Object.entries(negatedFlags)) {
|
|
175
|
+
out[name] = false;
|
|
176
|
+
const mainName = aliasToMain.get(name);
|
|
177
|
+
if (mainName) out[mainName] = false;
|
|
178
|
+
const aliases = mainToAliases.get(name);
|
|
179
|
+
if (aliases) for (const alias of aliases) out[alias] = false;
|
|
180
|
+
}
|
|
181
|
+
for (const [alias, main] of aliasToMain.entries()) {
|
|
182
|
+
if (out[alias] !== void 0 && out[main] === void 0) out[main] = out[alias];
|
|
183
|
+
if (out[main] !== void 0 && out[alias] === void 0) out[alias] = out[main];
|
|
184
|
+
}
|
|
185
|
+
return out;
|
|
186
|
+
}
|
|
187
|
+
var noColor = /* @__PURE__ */ (() => {
|
|
188
|
+
const env = globalThis.process?.env ?? {};
|
|
189
|
+
return env.NO_COLOR === "1" || env.TERM === "dumb" || env.TEST || env.CI;
|
|
190
|
+
})();
|
|
191
|
+
var _c = (c, r = 39) => (t) => noColor ? t : `\x1B[${c}m${t}\x1B[${r}m`;
|
|
192
|
+
var bold = /* @__PURE__ */ _c(1, 22);
|
|
193
|
+
var cyan = /* @__PURE__ */ _c(36);
|
|
194
|
+
var gray = /* @__PURE__ */ _c(90);
|
|
195
|
+
var underline = /* @__PURE__ */ _c(4, 24);
|
|
196
|
+
function parseArgs(rawArgs, argsDef) {
|
|
197
|
+
const parseOptions = {
|
|
198
|
+
boolean: [],
|
|
199
|
+
string: [],
|
|
200
|
+
alias: {},
|
|
201
|
+
default: {}
|
|
202
|
+
};
|
|
203
|
+
const args = resolveArgs(argsDef);
|
|
204
|
+
for (const arg of args) {
|
|
205
|
+
if (arg.type === "positional") continue;
|
|
206
|
+
if (arg.type === "string" || arg.type === "enum") parseOptions.string.push(arg.name);
|
|
207
|
+
else if (arg.type === "boolean") parseOptions.boolean.push(arg.name);
|
|
208
|
+
if (arg.default !== void 0) parseOptions.default[arg.name] = arg.default;
|
|
209
|
+
if (arg.alias) parseOptions.alias[arg.name] = arg.alias;
|
|
210
|
+
const camelName = camelCase(arg.name);
|
|
211
|
+
const kebabName = kebabCase(arg.name);
|
|
212
|
+
if (camelName !== arg.name || kebabName !== arg.name) {
|
|
213
|
+
const existingAliases = toArray(parseOptions.alias[arg.name] || []);
|
|
214
|
+
if (camelName !== arg.name && !existingAliases.includes(camelName)) existingAliases.push(camelName);
|
|
215
|
+
if (kebabName !== arg.name && !existingAliases.includes(kebabName)) existingAliases.push(kebabName);
|
|
216
|
+
if (existingAliases.length > 0) parseOptions.alias[arg.name] = existingAliases;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
const parsed = parseRawArgs(rawArgs, parseOptions);
|
|
220
|
+
const [...positionalArguments] = parsed._;
|
|
221
|
+
const parsedArgsProxy = new Proxy(parsed, { get(target, prop) {
|
|
222
|
+
return target[prop] ?? target[camelCase(prop)] ?? target[kebabCase(prop)];
|
|
223
|
+
} });
|
|
224
|
+
for (const [, arg] of args.entries()) if (arg.type === "positional") {
|
|
225
|
+
const nextPositionalArgument = positionalArguments.shift();
|
|
226
|
+
if (nextPositionalArgument !== void 0) parsedArgsProxy[arg.name] = nextPositionalArgument;
|
|
227
|
+
else if (arg.default === void 0 && arg.required !== false) throw new CLIError(`Missing required positional argument: ${arg.name.toUpperCase()}`, "EARG");
|
|
228
|
+
else parsedArgsProxy[arg.name] = arg.default;
|
|
229
|
+
} else if (arg.type === "enum") {
|
|
230
|
+
const argument = parsedArgsProxy[arg.name];
|
|
231
|
+
const options = arg.options || [];
|
|
232
|
+
if (argument !== void 0 && options.length > 0 && !options.includes(argument)) throw new CLIError(`Invalid value for argument: ${cyan(`--${arg.name}`)} (${cyan(argument)}). Expected one of: ${options.map((o) => cyan(o)).join(", ")}.`, "EARG");
|
|
233
|
+
} else if (arg.required && parsedArgsProxy[arg.name] === void 0) throw new CLIError(`Missing required argument: --${arg.name}`, "EARG");
|
|
234
|
+
return parsedArgsProxy;
|
|
235
|
+
}
|
|
236
|
+
function resolveArgs(argsDef) {
|
|
237
|
+
const args = [];
|
|
238
|
+
for (const [name, argDef] of Object.entries(argsDef || {})) args.push({
|
|
239
|
+
...argDef,
|
|
240
|
+
name,
|
|
241
|
+
alias: toArray(argDef.alias)
|
|
242
|
+
});
|
|
243
|
+
return args;
|
|
244
|
+
}
|
|
245
|
+
function defineCommand(def) {
|
|
246
|
+
return def;
|
|
247
|
+
}
|
|
248
|
+
async function runCommand(cmd, opts) {
|
|
249
|
+
const cmdArgs = await resolveValue(cmd.args || {});
|
|
250
|
+
const parsedArgs = parseArgs(opts.rawArgs, cmdArgs);
|
|
251
|
+
const context = {
|
|
252
|
+
rawArgs: opts.rawArgs,
|
|
253
|
+
args: parsedArgs,
|
|
254
|
+
data: opts.data,
|
|
255
|
+
cmd
|
|
256
|
+
};
|
|
257
|
+
if (typeof cmd.setup === "function") await cmd.setup(context);
|
|
258
|
+
let result;
|
|
259
|
+
try {
|
|
260
|
+
const subCommands = await resolveValue(cmd.subCommands);
|
|
261
|
+
if (subCommands && Object.keys(subCommands).length > 0) {
|
|
262
|
+
const subCommandArgIndex = opts.rawArgs.findIndex((arg) => !arg.startsWith("-"));
|
|
263
|
+
const subCommandName = opts.rawArgs[subCommandArgIndex];
|
|
264
|
+
if (subCommandName) {
|
|
265
|
+
if (!subCommands[subCommandName]) throw new CLIError(`Unknown command ${cyan(subCommandName)}`, "E_UNKNOWN_COMMAND");
|
|
266
|
+
const subCommand = await resolveValue(subCommands[subCommandName]);
|
|
267
|
+
if (subCommand) await runCommand(subCommand, { rawArgs: opts.rawArgs.slice(subCommandArgIndex + 1) });
|
|
268
|
+
} else if (!cmd.run) throw new CLIError(`No command specified.`, "E_NO_COMMAND");
|
|
269
|
+
}
|
|
270
|
+
if (typeof cmd.run === "function") result = await cmd.run(context);
|
|
271
|
+
} finally {
|
|
272
|
+
if (typeof cmd.cleanup === "function") await cmd.cleanup(context);
|
|
273
|
+
}
|
|
274
|
+
return { result };
|
|
275
|
+
}
|
|
276
|
+
async function showUsage(cmd, parent) {
|
|
277
|
+
try {
|
|
278
|
+
console.log(await renderUsage(cmd, parent) + "\n");
|
|
279
|
+
} catch (error) {
|
|
280
|
+
console.error(error);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
var negativePrefixRe = /^no[-A-Z]/;
|
|
284
|
+
async function renderUsage(cmd, parent) {
|
|
285
|
+
const cmdMeta = await resolveValue(cmd.meta || {});
|
|
286
|
+
const cmdArgs = resolveArgs(await resolveValue(cmd.args || {}));
|
|
287
|
+
const parentMeta = await resolveValue(parent?.meta || {});
|
|
288
|
+
const commandName = `${parentMeta.name ? `${parentMeta.name} ` : ""}` + (cmdMeta.name || process.argv[1]);
|
|
289
|
+
const argLines = [];
|
|
290
|
+
const posLines = [];
|
|
291
|
+
const commandsLines = [];
|
|
292
|
+
const usageLine = [];
|
|
293
|
+
for (const arg of cmdArgs) if (arg.type === "positional") {
|
|
294
|
+
const name = arg.name.toUpperCase();
|
|
295
|
+
const isRequired = arg.required !== false && arg.default === void 0;
|
|
296
|
+
const defaultHint = arg.default ? `="${arg.default}"` : "";
|
|
297
|
+
posLines.push([
|
|
298
|
+
cyan(name + defaultHint),
|
|
299
|
+
arg.description || "",
|
|
300
|
+
arg.valueHint ? `<${arg.valueHint}>` : ""
|
|
301
|
+
]);
|
|
302
|
+
usageLine.push(isRequired ? `<${name}>` : `[${name}]`);
|
|
303
|
+
} else {
|
|
304
|
+
const isRequired = arg.required === true && arg.default === void 0;
|
|
305
|
+
const argStr = [...(arg.alias || []).map((a) => `-${a}`), `--${arg.name}`].join(", ") + (arg.type === "string" && (arg.valueHint || arg.default) ? `=${arg.valueHint ? `<${arg.valueHint}>` : `"${arg.default || ""}"`}` : "") + (arg.type === "enum" && arg.options ? `=<${arg.options.join("|")}>` : "");
|
|
306
|
+
argLines.push([cyan(argStr + (isRequired ? " (required)" : "")), arg.description || ""]);
|
|
307
|
+
if (arg.type === "boolean" && (arg.default === true || arg.negativeDescription) && !negativePrefixRe.test(arg.name)) {
|
|
308
|
+
const negativeArgStr = [...(arg.alias || []).map((a) => `--no-${a}`), `--no-${arg.name}`].join(", ");
|
|
309
|
+
argLines.push([cyan(negativeArgStr + (isRequired ? " (required)" : "")), arg.negativeDescription || ""]);
|
|
310
|
+
}
|
|
311
|
+
if (isRequired) usageLine.push(argStr);
|
|
312
|
+
}
|
|
313
|
+
if (cmd.subCommands) {
|
|
314
|
+
const commandNames = [];
|
|
315
|
+
const subCommands = await resolveValue(cmd.subCommands);
|
|
316
|
+
for (const [name, sub] of Object.entries(subCommands)) {
|
|
317
|
+
const meta = await resolveValue((await resolveValue(sub))?.meta);
|
|
318
|
+
if (meta?.hidden) continue;
|
|
319
|
+
commandsLines.push([cyan(name), meta?.description || ""]);
|
|
320
|
+
commandNames.push(name);
|
|
321
|
+
}
|
|
322
|
+
usageLine.push(commandNames.join("|"));
|
|
323
|
+
}
|
|
324
|
+
const usageLines = [];
|
|
325
|
+
const version = cmdMeta.version || parentMeta.version;
|
|
326
|
+
usageLines.push(gray(`${cmdMeta.description} (${commandName + (version ? ` v${version}` : "")})`), "");
|
|
327
|
+
const hasOptions = argLines.length > 0 || posLines.length > 0;
|
|
328
|
+
usageLines.push(`${underline(bold("USAGE"))} ${cyan(`${commandName}${hasOptions ? " [OPTIONS]" : ""} ${usageLine.join(" ")}`)}`, "");
|
|
329
|
+
if (posLines.length > 0) {
|
|
330
|
+
usageLines.push(underline(bold("ARGUMENTS")), "");
|
|
331
|
+
usageLines.push(formatLineColumns(posLines, " "));
|
|
332
|
+
usageLines.push("");
|
|
333
|
+
}
|
|
334
|
+
if (argLines.length > 0) {
|
|
335
|
+
usageLines.push(underline(bold("OPTIONS")), "");
|
|
336
|
+
usageLines.push(formatLineColumns(argLines, " "));
|
|
337
|
+
usageLines.push("");
|
|
338
|
+
}
|
|
339
|
+
if (commandsLines.length > 0) {
|
|
340
|
+
usageLines.push(underline(bold("COMMANDS")), "");
|
|
341
|
+
usageLines.push(formatLineColumns(commandsLines, " "));
|
|
342
|
+
usageLines.push("", `Use ${cyan(`${commandName} <command> --help`)} for more information about a command.`);
|
|
343
|
+
}
|
|
344
|
+
return usageLines.filter((l) => typeof l === "string").join("\n");
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export {
|
|
348
|
+
defineCommand,
|
|
349
|
+
runCommand,
|
|
350
|
+
showUsage
|
|
351
|
+
};
|
|
352
|
+
//# sourceMappingURL=chunk-PKKZPOOP.js.map
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
} from "./chunk-PKKZPOOP.js";
|
|
19
|
+
import {
|
|
20
|
+
cliOutput
|
|
21
|
+
} from "./chunk-4RGSNUUP.js";
|
|
22
|
+
|
|
23
|
+
// packages/cleo/src/cli/commands/doctor-project-identity.ts
|
|
24
|
+
import {
|
|
25
|
+
inspectProjectIdentity,
|
|
26
|
+
inspectProjectNameDrift,
|
|
27
|
+
resolveProjectIdentity
|
|
28
|
+
} from "@cleocode/core/doctor/project-identity.js";
|
|
29
|
+
import { getProjectRoot } from "@cleocode/core/project-scope";
|
|
30
|
+
var doctorProjectIdentityCommand = defineCommand({
|
|
31
|
+
meta: {
|
|
32
|
+
name: "project-identity",
|
|
33
|
+
description: "Check .cleo/project.json, its legacy .cleo/project-id mirror and the project-info.json cache (legacy / missing / conflict / invalid / untracked) plus registry-name drift, and print the exact remedy. --resolve applies it: it migrates a legacy project to .cleo/project.json (no id changes) and re-keys a conflict to the tracked id through the alias table, losing no registry rows; add --dry-run to see the plan first."
|
|
34
|
+
},
|
|
35
|
+
args: {
|
|
36
|
+
resolve: { type: "boolean", description: "Apply the remedy for the reported state" },
|
|
37
|
+
"dry-run": { type: "boolean", description: "With --resolve: print the plan, write nothing" },
|
|
38
|
+
json: { type: "boolean", description: "Output as JSON" },
|
|
39
|
+
human: { type: "boolean", description: "Force human-readable output" },
|
|
40
|
+
quiet: { type: "boolean", description: "Suppress non-essential output" }
|
|
41
|
+
},
|
|
42
|
+
async run({ args }) {
|
|
43
|
+
const projectRoot = getProjectRoot();
|
|
44
|
+
if (!args.resolve) {
|
|
45
|
+
const report = inspectProjectIdentity(projectRoot);
|
|
46
|
+
const nameDrift = await inspectProjectNameDrift(projectRoot);
|
|
47
|
+
cliOutput(
|
|
48
|
+
{ ...report, nameDrift },
|
|
49
|
+
{ command: "doctor", operation: "doctor.project-identity.inspect" }
|
|
50
|
+
);
|
|
51
|
+
const drifted = nameDrift.state === "drift" || nameDrift.state === "taken";
|
|
52
|
+
if ((report.state !== "ok" || drifted) && (process.exitCode === void 0 || process.exitCode === 0))
|
|
53
|
+
process.exitCode = 1;
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const result = await resolveProjectIdentity(projectRoot, { dryRun: !!args["dry-run"] });
|
|
57
|
+
cliOutput(result, { command: "doctor", operation: "doctor.project-identity.resolve" });
|
|
58
|
+
if (result.refused && result.before.state !== "ok" && (process.exitCode ?? 0) === 0)
|
|
59
|
+
process.exitCode = 1;
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export {
|
|
64
|
+
doctorProjectIdentityCommand
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=chunk-PN4WW5VX.js.map
|