@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,304 @@
|
|
|
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/update-notice.ts
|
|
18
|
+
import { spawn } from "node:child_process";
|
|
19
|
+
import {
|
|
20
|
+
closeSync,
|
|
21
|
+
existsSync,
|
|
22
|
+
mkdirSync,
|
|
23
|
+
openSync,
|
|
24
|
+
readFileSync,
|
|
25
|
+
statSync,
|
|
26
|
+
unlinkSync,
|
|
27
|
+
utimesSync,
|
|
28
|
+
writeFileSync
|
|
29
|
+
} from "node:fs";
|
|
30
|
+
import { dirname, join } from "node:path";
|
|
31
|
+
import { fileURLToPath } from "node:url";
|
|
32
|
+
import { getCleoStateDir } from "@cleocode/paths";
|
|
33
|
+
var CLEO_PACKAGE_NAME = "@cleocode/cleo";
|
|
34
|
+
var UPDATE_NOTICE_OPT_OUT_ENV = "CLEO_NO_UPDATE_NOTICE";
|
|
35
|
+
var UPDATE_NOTICE_FROM_SOURCE_ENV = "CLEO_UPDATE_NOTICE_FROM_SOURCE";
|
|
36
|
+
var DEFAULT_NPM_REGISTRY = "https://registry.npmjs.org/";
|
|
37
|
+
var UPDATE_CHECK_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
38
|
+
var UPDATE_CHECK_RETRY_MS = 60 * 60 * 1e3;
|
|
39
|
+
var UPDATE_NOTICE_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
40
|
+
var UPDATE_CHECK_LOCK_STALE_MS = 10 * 60 * 1e3;
|
|
41
|
+
var UPDATE_CACHE_FILE = "update-check.json";
|
|
42
|
+
var UPDATE_LOCK_FILE = "update-check.lock";
|
|
43
|
+
var UPDATE_NOTICE_STAMP_FILE = "update-notice.stamp";
|
|
44
|
+
var HOTFIX_NOTICE_INTERVAL_MS = 15 * 60 * 1e3;
|
|
45
|
+
var HOTFIX_NOTICE_STAMP_FILE = "update-notice-hotfix.stamp";
|
|
46
|
+
var UPDATE_CHECK_ENTRY = "update-check-entry.js";
|
|
47
|
+
var CI_ENV_VARS = [
|
|
48
|
+
"CI",
|
|
49
|
+
"CONTINUOUS_INTEGRATION",
|
|
50
|
+
"GITHUB_ACTIONS",
|
|
51
|
+
"GITLAB_CI",
|
|
52
|
+
"BUILDKITE",
|
|
53
|
+
"CIRCLECI",
|
|
54
|
+
"TF_BUILD",
|
|
55
|
+
"JENKINS_URL",
|
|
56
|
+
"TEAMCITY_VERSION",
|
|
57
|
+
"TRAVIS",
|
|
58
|
+
"APPVEYOR",
|
|
59
|
+
"CODEBUILD_BUILD_ID",
|
|
60
|
+
"BITBUCKET_BUILD_NUMBER",
|
|
61
|
+
"DRONE"
|
|
62
|
+
];
|
|
63
|
+
var VERSION_RE = /^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z.-]+)?$/;
|
|
64
|
+
function flagSet(value) {
|
|
65
|
+
if (value === void 0) return false;
|
|
66
|
+
const v = value.trim().toLowerCase();
|
|
67
|
+
return v !== "" && v !== "0" && v !== "false";
|
|
68
|
+
}
|
|
69
|
+
function isCiEnvironment(env) {
|
|
70
|
+
return CI_ENV_VARS.some((name) => flagSet(env[name]));
|
|
71
|
+
}
|
|
72
|
+
function parseVersion(version) {
|
|
73
|
+
const m = VERSION_RE.exec(version.trim());
|
|
74
|
+
if (!m) return null;
|
|
75
|
+
return {
|
|
76
|
+
core: [Number(m[1]), Number(m[2]), Number(m[3])],
|
|
77
|
+
pre: m[4] === void 0 ? [] : m[4].split(".")
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function comparePrerelease(a, b) {
|
|
81
|
+
if (a.length === 0 || b.length === 0) return b.length - a.length;
|
|
82
|
+
for (let i = 0; i < Math.min(a.length, b.length); i++) {
|
|
83
|
+
const x = a[i] ?? "";
|
|
84
|
+
const y = b[i] ?? "";
|
|
85
|
+
if (x === y) continue;
|
|
86
|
+
const xNum = /^\d+$/.test(x);
|
|
87
|
+
const yNum = /^\d+$/.test(y);
|
|
88
|
+
if (xNum && yNum) return Number(x) < Number(y) ? -1 : 1;
|
|
89
|
+
if (xNum !== yNum) return xNum ? -1 : 1;
|
|
90
|
+
return x < y ? -1 : 1;
|
|
91
|
+
}
|
|
92
|
+
return Math.sign(a.length - b.length);
|
|
93
|
+
}
|
|
94
|
+
function compareVersions(a, b) {
|
|
95
|
+
const pa = parseVersion(a);
|
|
96
|
+
const pb = parseVersion(b);
|
|
97
|
+
if (!pa || !pb) return null;
|
|
98
|
+
for (let i = 0; i < 3; i++) {
|
|
99
|
+
const x = pa.core[i] ?? 0;
|
|
100
|
+
const y = pb.core[i] ?? 0;
|
|
101
|
+
if (x !== y) return x < y ? -1 : 1;
|
|
102
|
+
}
|
|
103
|
+
const pre = comparePrerelease(pa.pre, pb.pre);
|
|
104
|
+
return pre === 0 ? 0 : pre < 0 ? -1 : 1;
|
|
105
|
+
}
|
|
106
|
+
function releaseChannelTag(version) {
|
|
107
|
+
const parsed = parseVersion(version);
|
|
108
|
+
if (!parsed) return null;
|
|
109
|
+
if (parsed.pre.length === 0) return "latest";
|
|
110
|
+
const tag = (parsed.pre[0] ?? "").toLowerCase();
|
|
111
|
+
if (tag.startsWith("beta") || tag.startsWith("rc")) return "beta";
|
|
112
|
+
return null;
|
|
113
|
+
}
|
|
114
|
+
function decideUpdateNotice(installed, distTags, hotfix) {
|
|
115
|
+
const channel = releaseChannelTag(installed);
|
|
116
|
+
if (channel === null) return null;
|
|
117
|
+
const target = distTags[channel];
|
|
118
|
+
if (target === void 0 || compareVersions(target, installed) !== 1) return null;
|
|
119
|
+
if (hotfix !== void 0 && compareVersions(hotfix, installed) === 1 && (compareVersions(hotfix, target) ?? 1) <= 0) {
|
|
120
|
+
return { kind: "hotfix", installed, target, hotfix };
|
|
121
|
+
}
|
|
122
|
+
return { kind: "update", installed, target };
|
|
123
|
+
}
|
|
124
|
+
function formatUpdateNotice(notice) {
|
|
125
|
+
const hide = `Set ${UPDATE_NOTICE_OPT_OUT_ENV}=1 to hide this.`;
|
|
126
|
+
if (notice.kind === "update") {
|
|
127
|
+
return `[cleo] Update available: ${notice.target} (installed ${notice.installed}). Run \`cleo self-update\`. ${hide}
|
|
128
|
+
`;
|
|
129
|
+
}
|
|
130
|
+
const release = notice.hotfix === notice.target ? `${notice.target} is a hotfix release` : `${notice.target} includes hotfix release ${notice.hotfix}`;
|
|
131
|
+
return `[cleo] HOTFIX available: ${release} for a defect in your installed ${notice.installed}. Run \`cleo self-update\` now. ${hide}
|
|
132
|
+
`;
|
|
133
|
+
}
|
|
134
|
+
function updateNoticeSuppression(argv, env, installedPackage) {
|
|
135
|
+
if (flagSet(env[UPDATE_NOTICE_OPT_OUT_ENV])) return UPDATE_NOTICE_OPT_OUT_ENV;
|
|
136
|
+
if (flagSet(env.NO_UPDATE_NOTIFIER)) return "NO_UPDATE_NOTIFIER";
|
|
137
|
+
if (isCiEnvironment(env)) return "ci";
|
|
138
|
+
if (!installedPackage && !flagSet(env[UPDATE_NOTICE_FROM_SOURCE_ENV])) return "source-checkout";
|
|
139
|
+
const command = argv.find((a) => !a.startsWith("-"));
|
|
140
|
+
if (command === "self-update" || command === "hook") return `command:${command}`;
|
|
141
|
+
return null;
|
|
142
|
+
}
|
|
143
|
+
function parseUpdateCache(raw) {
|
|
144
|
+
let value;
|
|
145
|
+
try {
|
|
146
|
+
value = JSON.parse(raw);
|
|
147
|
+
} catch {
|
|
148
|
+
return null;
|
|
149
|
+
}
|
|
150
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) return null;
|
|
151
|
+
const record = value;
|
|
152
|
+
if (record["schemaVersion"] !== 1) return null;
|
|
153
|
+
const checkedAt = record["checkedAt"];
|
|
154
|
+
if (typeof checkedAt !== "string" || Number.isNaN(Date.parse(checkedAt))) return null;
|
|
155
|
+
const tags = record["distTags"];
|
|
156
|
+
if (typeof tags !== "object" || tags === null || Array.isArray(tags)) return null;
|
|
157
|
+
const distTags = {};
|
|
158
|
+
for (const [tag, version] of Object.entries(tags)) {
|
|
159
|
+
if (typeof version === "string" && parseVersion(version)) distTags[tag] = version;
|
|
160
|
+
}
|
|
161
|
+
const hotfix = record["hotfix"];
|
|
162
|
+
return {
|
|
163
|
+
schemaVersion: 1,
|
|
164
|
+
checkedAt,
|
|
165
|
+
ok: record["ok"] === true,
|
|
166
|
+
distTags,
|
|
167
|
+
...typeof hotfix === "string" && parseVersion(hotfix) ? { hotfix } : {}
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
function updateCheckDue(cache, now) {
|
|
171
|
+
if (cache === null) return true;
|
|
172
|
+
const age = now - Date.parse(cache.checkedAt);
|
|
173
|
+
if (age < 0) return true;
|
|
174
|
+
return age >= (cache.ok ? UPDATE_CHECK_INTERVAL_MS : UPDATE_CHECK_RETRY_MS);
|
|
175
|
+
}
|
|
176
|
+
function claimUpdateCheck(lockPath, now) {
|
|
177
|
+
for (let attempt = 0; attempt < 2; attempt++) {
|
|
178
|
+
try {
|
|
179
|
+
closeSync(openSync(lockPath, "wx"));
|
|
180
|
+
return true;
|
|
181
|
+
} catch (err) {
|
|
182
|
+
if (err.code !== "EEXIST") return false;
|
|
183
|
+
try {
|
|
184
|
+
if (now - statSync(lockPath).mtimeMs < UPDATE_CHECK_LOCK_STALE_MS) return false;
|
|
185
|
+
unlinkSync(lockPath);
|
|
186
|
+
} catch {
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
return false;
|
|
191
|
+
}
|
|
192
|
+
function registryFrom(env) {
|
|
193
|
+
const configured = env.npm_config_registry ?? env.NPM_CONFIG_REGISTRY;
|
|
194
|
+
if (configured && /^https?:\/\//i.test(configured)) return configured;
|
|
195
|
+
return DEFAULT_NPM_REGISTRY;
|
|
196
|
+
}
|
|
197
|
+
function runsFromInstalledPackage() {
|
|
198
|
+
return /[\\/]node_modules[\\/]@cleocode[\\/]cleo[\\/]/.test(fileURLToPath(import.meta.url));
|
|
199
|
+
}
|
|
200
|
+
function spawnUpdateCheck(request, env) {
|
|
201
|
+
const entry = join(dirname(fileURLToPath(import.meta.url)), UPDATE_CHECK_ENTRY);
|
|
202
|
+
if (!existsSync(entry)) throw new Error(`update check entry missing: ${entry}`);
|
|
203
|
+
const childEnv = { ...env };
|
|
204
|
+
const proxied = ["HTTPS_PROXY", "https_proxy", "HTTP_PROXY", "http_proxy"].some((k) => env[k]);
|
|
205
|
+
if (proxied && childEnv.NODE_USE_ENV_PROXY === void 0) childEnv.NODE_USE_ENV_PROXY = "1";
|
|
206
|
+
const child = spawn(
|
|
207
|
+
process.execPath,
|
|
208
|
+
[entry, request.cachePath, request.lockPath, request.registry, request.packageName],
|
|
209
|
+
{ detached: true, stdio: "ignore", windowsHide: true, env: childEnv }
|
|
210
|
+
);
|
|
211
|
+
child.on("error", () => {
|
|
212
|
+
});
|
|
213
|
+
child.unref();
|
|
214
|
+
}
|
|
215
|
+
function showUpdateNotice(options) {
|
|
216
|
+
const env = options.env ?? process.env;
|
|
217
|
+
const suppressed = updateNoticeSuppression(
|
|
218
|
+
options.argv,
|
|
219
|
+
env,
|
|
220
|
+
options.installedPackage ?? runsFromInstalledPackage()
|
|
221
|
+
);
|
|
222
|
+
if (suppressed !== null) return { suppressed, checkStarted: false, shown: null };
|
|
223
|
+
let checkStarted = false;
|
|
224
|
+
let shown = null;
|
|
225
|
+
try {
|
|
226
|
+
const now = (options.now ?? Date.now)();
|
|
227
|
+
const stateDir = options.stateDir ?? getCleoStateDir();
|
|
228
|
+
const cachePath = join(stateDir, UPDATE_CACHE_FILE);
|
|
229
|
+
let cache = null;
|
|
230
|
+
try {
|
|
231
|
+
cache = parseUpdateCache(readFileSync(cachePath, "utf8"));
|
|
232
|
+
} catch {
|
|
233
|
+
}
|
|
234
|
+
if (updateCheckDue(cache, now)) {
|
|
235
|
+
mkdirSync(stateDir, { recursive: true });
|
|
236
|
+
const lockPath = join(stateDir, UPDATE_LOCK_FILE);
|
|
237
|
+
if (claimUpdateCheck(lockPath, now)) {
|
|
238
|
+
const request = {
|
|
239
|
+
cachePath,
|
|
240
|
+
lockPath,
|
|
241
|
+
registry: registryFrom(env),
|
|
242
|
+
packageName: CLEO_PACKAGE_NAME
|
|
243
|
+
};
|
|
244
|
+
try {
|
|
245
|
+
(options.startCheck ?? spawnUpdateCheck)(request, env);
|
|
246
|
+
checkStarted = true;
|
|
247
|
+
} catch {
|
|
248
|
+
try {
|
|
249
|
+
unlinkSync(lockPath);
|
|
250
|
+
} catch {
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
if (cache === null || options.quiet === true) {
|
|
256
|
+
return { suppressed: null, checkStarted, shown };
|
|
257
|
+
}
|
|
258
|
+
const notice = decideUpdateNotice(options.version, cache.distTags, cache.hotfix);
|
|
259
|
+
if (notice === null) return { suppressed: null, checkStarted, shown };
|
|
260
|
+
const hotfix = notice.kind === "hotfix";
|
|
261
|
+
const stampPath = join(stateDir, hotfix ? HOTFIX_NOTICE_STAMP_FILE : UPDATE_NOTICE_STAMP_FILE);
|
|
262
|
+
const interval = hotfix ? HOTFIX_NOTICE_INTERVAL_MS : UPDATE_NOTICE_INTERVAL_MS;
|
|
263
|
+
try {
|
|
264
|
+
const age = now - statSync(stampPath).mtimeMs;
|
|
265
|
+
if (age >= 0 && age < interval) return { suppressed: null, checkStarted, shown };
|
|
266
|
+
} catch {
|
|
267
|
+
}
|
|
268
|
+
writeFileSync(stampPath, `${notice.target}
|
|
269
|
+
`);
|
|
270
|
+
utimesSync(stampPath, new Date(now), new Date(now));
|
|
271
|
+
(options.stderr ?? process.stderr).write(formatUpdateNotice(notice));
|
|
272
|
+
shown = notice;
|
|
273
|
+
} catch {
|
|
274
|
+
}
|
|
275
|
+
return { suppressed: null, checkStarted, shown };
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export {
|
|
279
|
+
CLEO_PACKAGE_NAME,
|
|
280
|
+
UPDATE_NOTICE_OPT_OUT_ENV,
|
|
281
|
+
UPDATE_NOTICE_FROM_SOURCE_ENV,
|
|
282
|
+
DEFAULT_NPM_REGISTRY,
|
|
283
|
+
UPDATE_CHECK_INTERVAL_MS,
|
|
284
|
+
UPDATE_CHECK_RETRY_MS,
|
|
285
|
+
UPDATE_NOTICE_INTERVAL_MS,
|
|
286
|
+
UPDATE_CHECK_LOCK_STALE_MS,
|
|
287
|
+
UPDATE_CACHE_FILE,
|
|
288
|
+
UPDATE_LOCK_FILE,
|
|
289
|
+
UPDATE_NOTICE_STAMP_FILE,
|
|
290
|
+
HOTFIX_NOTICE_INTERVAL_MS,
|
|
291
|
+
HOTFIX_NOTICE_STAMP_FILE,
|
|
292
|
+
UPDATE_CHECK_ENTRY,
|
|
293
|
+
isCiEnvironment,
|
|
294
|
+
compareVersions,
|
|
295
|
+
releaseChannelTag,
|
|
296
|
+
decideUpdateNotice,
|
|
297
|
+
formatUpdateNotice,
|
|
298
|
+
updateNoticeSuppression,
|
|
299
|
+
parseUpdateCache,
|
|
300
|
+
updateCheckDue,
|
|
301
|
+
claimUpdateCheck,
|
|
302
|
+
showUpdateNotice
|
|
303
|
+
};
|
|
304
|
+
//# sourceMappingURL=chunk-EW2CKNNZ.js.map
|
|
@@ -0,0 +1,108 @@
|
|
|
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
|
+
cliError,
|
|
21
|
+
cliOutput,
|
|
22
|
+
humanInfo
|
|
23
|
+
} from "./chunk-4RGSNUUP.js";
|
|
24
|
+
|
|
25
|
+
// packages/cleo/src/cli/commands/doctor-fk-check.ts
|
|
26
|
+
import { repairForeignKeyViolations, verifyForeignKeyIntegrity } from "@cleocode/core/db";
|
|
27
|
+
var doctorFkCheckCommand = defineCommand({
|
|
28
|
+
meta: {
|
|
29
|
+
name: "fk-check",
|
|
30
|
+
description: "Verify foreign-key integrity of the consolidated project + global cleo.db (PRAGMA foreign_key_check). Read-only; exits non-zero on any violation."
|
|
31
|
+
},
|
|
32
|
+
args: {
|
|
33
|
+
scope: {
|
|
34
|
+
type: "string",
|
|
35
|
+
description: "Limit the check to one scope ('project' or 'global'). Default: both."
|
|
36
|
+
},
|
|
37
|
+
fix: {
|
|
38
|
+
type: "boolean",
|
|
39
|
+
description: "Delete orphan rows whose foreign key declares ON DELETE CASCADE (the schema already says they should not exist). Other violations are reported, never touched."
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
async run({ args }) {
|
|
43
|
+
const scopeArg = args.scope;
|
|
44
|
+
if (scopeArg !== void 0 && scopeArg !== "project" && scopeArg !== "global") {
|
|
45
|
+
cliError(`--scope must be 'project' or 'global' (received: ${scopeArg})`, "E_INVALID_INPUT", {
|
|
46
|
+
fix: "Run 'cleo doctor fk-check --scope project' or omit --scope to check both."
|
|
47
|
+
});
|
|
48
|
+
process.exitCode = 6;
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
const scopeOpt = scopeArg ? { scopes: [scopeArg] } : {};
|
|
52
|
+
if (args.fix === true) {
|
|
53
|
+
const fixReport = await repairForeignKeyViolations({ cwd: process.cwd(), ...scopeOpt });
|
|
54
|
+
humanInfo(
|
|
55
|
+
` foreign_key_check --fix: ${fixReport.found.length} found, ${fixReport.repaired.length} repaired, ${fixReport.skipped.length} skipped`
|
|
56
|
+
);
|
|
57
|
+
for (const v of fixReport.repaired) {
|
|
58
|
+
humanInfo(` repaired [${v.scope}] ${v.table} rowid=${v.rowid} \u2192 ${v.parent}`);
|
|
59
|
+
}
|
|
60
|
+
for (const v of fixReport.skipped) {
|
|
61
|
+
humanInfo(
|
|
62
|
+
` SKIPPED [${v.scope}] ${v.table} rowid=${v.rowid ?? "n/a"} \u2192 ${v.parent} (foreign key is not ON DELETE CASCADE \u2014 repair by hand)`
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
cliOutput(
|
|
66
|
+
{ kind: "generic", ...fixReport },
|
|
67
|
+
{
|
|
68
|
+
command: "doctor fk-check",
|
|
69
|
+
message: fixReport.ok ? `foreign_key_check: repaired ${fixReport.repaired.length} orphan(s); 0 violations remain.` : `foreign_key_check: ${fixReport.skipped.length} violation(s) remain after repair.`
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
if (!fixReport.ok) process.exitCode = 1;
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
const report = await verifyForeignKeyIntegrity({ cwd: process.cwd(), ...scopeOpt });
|
|
76
|
+
if (report.ok) {
|
|
77
|
+
humanInfo(` foreign_key_check: OK \u2014 0 violations across ${report.scopes.join(" + ")}`);
|
|
78
|
+
} else {
|
|
79
|
+
humanInfo(` foreign_key_check: ${report.violations.length} violation(s)`);
|
|
80
|
+
for (const v of report.violations) {
|
|
81
|
+
humanInfo(
|
|
82
|
+
` [${v.scope}] ${v.table} rowid=${v.rowid ?? "n/a"} \u2192 missing parent ${v.parent} (fk #${v.fkid})`
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
cliOutput(
|
|
87
|
+
{
|
|
88
|
+
kind: "generic",
|
|
89
|
+
ok: report.ok,
|
|
90
|
+
scopes: report.scopes,
|
|
91
|
+
violationCount: report.violations.length,
|
|
92
|
+
violations: report.violations
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
command: "doctor fk-check",
|
|
96
|
+
message: report.ok ? `foreign_key_check: OK \u2014 0 violations across ${report.scopes.join(" + ")}.` : `foreign_key_check: ${report.violations.length} violation(s) across ${report.scopes.join(" + ")}.`
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
if (!report.ok) {
|
|
100
|
+
process.exitCode = 1;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
export {
|
|
106
|
+
doctorFkCheckCommand
|
|
107
|
+
};
|
|
108
|
+
//# sourceMappingURL=chunk-FSKN4DWC.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
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-legacy-reaper.ts
|
|
24
|
+
import { scanLegacyReaper } from "@cleocode/core/doctor/legacy-reaper.js";
|
|
25
|
+
var doctorLegacyReaperCommand = defineCommand({
|
|
26
|
+
meta: {
|
|
27
|
+
name: "legacy-reaper",
|
|
28
|
+
description: "Detect the legacy cleo-mcp-reaper user timer that kills processes by generic `MainThread` comm \u2014 it terminates live Codex CLI sessions. --fix disables and masks it."
|
|
29
|
+
},
|
|
30
|
+
args: {
|
|
31
|
+
fix: { type: "boolean", description: "Disable and mask any legacy unit that can still fire" },
|
|
32
|
+
json: { type: "boolean", description: "Output as JSON" },
|
|
33
|
+
human: { type: "boolean", description: "Force human-readable output" },
|
|
34
|
+
quiet: { type: "boolean", description: "Suppress non-essential output" }
|
|
35
|
+
},
|
|
36
|
+
run({ args }) {
|
|
37
|
+
const report = scanLegacyReaper({ fix: args.fix === true });
|
|
38
|
+
cliOutput(report, { command: "doctor", operation: "doctor.legacy-reaper.run" });
|
|
39
|
+
if (report.armed && !report.remediated) {
|
|
40
|
+
if (process.exitCode === void 0 || process.exitCode === 0) process.exitCode = 1;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export {
|
|
46
|
+
doctorLegacyReaperCommand
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=chunk-FVKLULL7.js.map
|