@cleocode/cleo 2026.10.3 → 2026.10.4
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/bin/cleo.js +11 -1
- package/dist/cli/adapter-LVXHFBC4.js +158 -0
- package/dist/cli/add-WUAV7LDT.js +443 -0
- package/dist/cli/add-batch-U2DLKAQC.js +163 -0
- package/dist/cli/admin-I7BQYVZD.js +340 -0
- package/dist/cli/adr-K2THMQBS.js +171 -0
- package/dist/cli/agent-WQ6XY2DW.js +2366 -0
- package/dist/cli/agent-outputs-BJIYLVTU.js +84 -0
- package/dist/cli/analyze-PGQZWGOC.js +48 -0
- package/dist/cli/archive-5LZPF7C3.js +64 -0
- package/dist/cli/archive-stats-U6CYC6JM.js +100 -0
- package/dist/cli/attention-SOURWCNI.js +167 -0
- package/dist/cli/audit-FO2Y4LH2.js +122 -0
- package/dist/cli/auth-ED7TAIXI.js +491 -0
- package/dist/cli/backfill-32TRAYRD.js +156 -0
- package/dist/cli/backup-LEJMZJKL.js +587 -0
- package/dist/cli/backup-inspect-6HPLUEI2.js +26 -0
- package/dist/cli/backup-recover-2BTYBZU2.js +29 -0
- package/dist/cli/blockers-5JULUJTV.js +54 -0
- package/dist/cli/brain-273N3FW4.js +400 -0
- package/dist/cli/briefing-7H6OLECX.js +212 -0
- package/dist/cli/caamp-MFQVN6VU.js +181 -0
- package/dist/cli/cancel-SCMJTXZB.js +84 -0
- package/dist/cli/canon-NPF5RODM.js +142 -0
- package/dist/cli/canon-docs-2GTOLF7Y.js +26 -0
- package/dist/cli/cant-46XCUP4P.js +239 -0
- package/dist/cli/changeset-32NMBGG2.js +248 -0
- package/dist/cli/check-RWJLBCI2.js +907 -0
- package/dist/cli/checkpoint-37HMMKD7.js +128 -0
- package/dist/cli/chunk-2JIJD2I7.js +108 -0
- package/dist/cli/chunk-37NU2XDP.js +171 -0
- package/dist/cli/chunk-3IOQVUO7.js +17308 -0
- package/dist/cli/chunk-3PGH67MT.js +175 -0
- package/dist/cli/chunk-3ZO3M37V.js +1002 -0
- package/dist/cli/chunk-47JYZAMS.js +30 -0
- package/dist/cli/chunk-5J2VH3BC.js +66 -0
- package/dist/cli/chunk-5ZFFUFH7.js +92 -0
- package/dist/cli/chunk-6JSJNYH2.js +114 -0
- package/dist/cli/chunk-7INMKEAD.js +85 -0
- package/dist/cli/chunk-A2IUEIM5.js +278 -0
- package/dist/cli/chunk-AWCQH2W5.js +35 -0
- package/dist/cli/chunk-AYA6F4ZT.js +56 -0
- package/dist/cli/chunk-BCEXRFA2.js +76 -0
- package/dist/cli/chunk-BPEVD37G.js +124 -0
- package/dist/cli/chunk-C3B7C43W.js +16 -0
- package/dist/cli/chunk-DVTPIZJM.js +72 -0
- package/dist/cli/chunk-DYABOIHB.js +96 -0
- package/dist/cli/chunk-EBRZ76HS.js +51 -0
- package/dist/cli/chunk-EGOTK2HA.js +57 -0
- package/dist/cli/chunk-EOPQFCSR.js +148 -0
- package/dist/cli/chunk-FORFDPP5.js +288 -0
- package/dist/cli/chunk-GFGLLDXX.js +110 -0
- package/dist/cli/chunk-GH37QXW5.js +280 -0
- package/dist/cli/chunk-GZFVDR44.js +320 -0
- package/dist/cli/chunk-I3CRQQAD.js +225 -0
- package/dist/cli/chunk-J3ZFM3UQ.js +754 -0
- package/dist/cli/chunk-JNZJPIPJ.js +90 -0
- package/dist/cli/chunk-KHB52JNB.js +209 -0
- package/dist/cli/chunk-KJDWWQFY.js +46 -0
- package/dist/cli/chunk-LKNUA3SB.js +83 -0
- package/dist/cli/chunk-LVGIFMCV.js +163 -0
- package/dist/cli/chunk-LWQBJQSE.js +67 -0
- package/dist/cli/chunk-MNJRLSEQ.js +107 -0
- package/dist/cli/chunk-NRKWJLMS.js +91 -0
- package/dist/cli/chunk-NSHV2JNM.js +48 -0
- package/dist/cli/chunk-NWTATTEQ.js +210 -0
- package/dist/cli/chunk-OAPN46TC.js +89 -0
- package/dist/cli/chunk-OGV57L4J.js +59 -0
- package/dist/cli/chunk-OILHT47L.js +252 -0
- package/dist/cli/chunk-OPTEQKBB.js +258 -0
- package/dist/cli/chunk-PKKZPOOP.js +352 -0
- package/dist/cli/chunk-QA6T2LQ5.js +71 -0
- package/dist/cli/chunk-QFFQSKRC.js +4497 -0
- package/dist/cli/chunk-QPUY2HQZ.js +74 -0
- package/dist/cli/chunk-REUTEW3O.js +258 -0
- package/dist/cli/chunk-S24YI723.js +88 -0
- package/dist/cli/chunk-SXXOC6KZ.js +209 -0
- package/dist/cli/chunk-ULN4OKQQ.js +259 -0
- package/dist/cli/chunk-V5GBGOGM.js +46 -0
- package/dist/cli/chunk-VLEYOOPH.js +31 -0
- package/dist/cli/chunk-W33Q3FBH.js +66 -0
- package/dist/cli/chunk-W3JLYKKY.js +140 -0
- package/dist/cli/chunk-XRAX6XFP.js +48 -0
- package/dist/cli/chunk-YGKEECTI.js +78 -0
- package/dist/cli/chunk-YUZJI67I.js +108 -0
- package/dist/cli/chunk-YY66LFZF.js +29 -0
- package/dist/cli/chunk-ZBISIPCK.js +78 -0
- package/dist/cli/chunk-ZZTHTMQP.js +77 -0
- package/dist/cli/claim-KPENYHIQ.js +96 -0
- package/dist/cli/classify-DRVMCFQU.js +117 -0
- package/dist/cli/cli-T3CR7J57.js +48 -0
- package/dist/cli/cloud-PPQ4O5TX.js +565 -0
- package/dist/cli/cockpit-RZKLGYPN.js +790 -0
- package/dist/cli/code-Z5CTMVTD.js +178 -0
- package/dist/cli/complete-UBOCOBRB.js +34 -0
- package/dist/cli/complexity-BV2AGQRZ.js +56 -0
- package/dist/cli/compliance-32PD5Y47.js +276 -0
- package/dist/cli/conduit-VDKCH33F.js +307 -0
- package/dist/cli/config-I72JAXK4.js +516 -0
- package/dist/cli/consensus-LFILLSTK.js +121 -0
- package/dist/cli/context-XUUVFVTP.js +141 -0
- package/dist/cli/contribution-37NQ4N5R.js +111 -0
- package/dist/cli/curator-TFDXU2EX.js +139 -0
- package/dist/cli/current-C4SN5BWV.js +42 -0
- package/dist/cli/daemon-DV25JQ62.js +451 -0
- package/dist/cli/dash-TFU4RLQW.js +70 -0
- package/dist/cli/decide-5VPMNTSI.js +419 -0
- package/dist/cli/decompose-KOYEZNJL.js +77 -0
- package/dist/cli/decomposition-7OHUFIQN.js +121 -0
- package/dist/cli/delete-Q7YCAFY5.js +68 -0
- package/dist/cli/deps-6UZKLDGJ.js +463 -0
- package/dist/cli/detect-FERY35UL.js +45 -0
- package/dist/cli/detect-drift-UL2JTPUK.js +408 -0
- package/dist/cli/diagnostics-TI5QAZXR.js +132 -0
- package/dist/cli/docs-QI2PRN3T.js +3095 -0
- package/dist/cli/doctor-AX5TICQO.js +1253 -0
- package/dist/cli/doctor-ac-bindings-YPMYHU2G.js +26 -0
- package/dist/cli/doctor-acceptance-drift-PYNFGMKB.js +26 -0
- package/dist/cli/doctor-credentials-UZRIADKM.js +26 -0
- package/dist/cli/doctor-db-substrate-Q2TOYM2S.js +27 -0
- package/dist/cli/doctor-dep-cycles-GCVYZY6F.js +26 -0
- package/dist/cli/doctor-exodus-RO5SUTC2.js +26 -0
- package/dist/cli/doctor-exodus-residue-EM2AWQXP.js +26 -0
- package/dist/cli/doctor-fk-check-Q3FOLECE.js +26 -0
- package/dist/cli/doctor-global-delivery-TNOAQ3NP.js +26 -0
- package/dist/cli/doctor-heavy-command-hook-IO3QAQLG.js +26 -0
- package/dist/cli/doctor-legacy-backups-O2YH5VLS.js +26 -0
- package/dist/cli/doctor-legacy-reaper-VSEJEIFA.js +26 -0
- package/dist/cli/doctor-malformed-ids-LQ766V5K.js +26 -0
- package/dist/cli/doctor-manifest-rows-6FQDNHLH.js +26 -0
- package/dist/cli/doctor-memory-guard-J4PSEKB5.js +26 -0
- package/dist/cli/doctor-migrations-ONOH56YM.js +26 -0
- package/dist/cli/doctor-nexus-residency-FUQAX7PV.js +26 -0
- package/dist/cli/doctor-project-identity-GUDK3HYX.js +26 -0
- package/dist/cli/doctor-projects-7L3BNL4O.js +30 -0
- package/dist/cli/doctor-projects-registry-TEAVHFQU.js +26 -0
- package/dist/cli/doctor-release-readiness-IEGHX6SL.js +26 -0
- package/dist/cli/doctor-repair-NBONOSZU.js +26 -0
- package/dist/cli/doctor-skill-fixtures-7Y6L34A3.js +26 -0
- package/dist/cli/doctor-split-brain-TUKIGVHF.js +26 -0
- package/dist/cli/doctor-superseded-store-BHZY2B2L.js +26 -0
- package/dist/cli/doctor-tool-locks-REQMIVYK.js +26 -0
- package/dist/cli/doctor-twin-collapse-222GOSPE.js +26 -0
- package/dist/cli/doctor-worktree-stores-J7TCRVJ3.js +26 -0
- package/dist/cli/done-V3AOO65B.js +195 -0
- package/dist/cli/dynamic-RR4HB7BB.js +29 -0
- package/dist/cli/event-EGNPGE5A.js +372 -0
- package/dist/cli/exists-H4SDCBPL.js +65 -0
- package/dist/cli/exodus-KALO3B3X.js +401 -0
- package/dist/cli/export-ROFOCG4M.js +92 -0
- package/dist/cli/export-tasks-US3WBIEQ.js +96 -0
- package/dist/cli/federation-SUIB5QWT.js +145 -0
- package/dist/cli/find-YICG4BG6.js +177 -0
- package/dist/cli/focus-TKCZPKOM.js +55 -0
- package/dist/cli/gateway-H4HFDC3E.js +77 -0
- package/dist/cli/gateway-auto-start-EDK7XI6E.js +36 -0
- package/dist/cli/gc-5R2TUY5T.js +291 -0
- package/dist/cli/go-PRQFK5YG.js +206 -0
- package/dist/cli/goal-7CZRMLHC.js +212 -0
- package/dist/cli/grade-PY2YRPUS.js +56 -0
- package/dist/cli/graph-XIXMCFKG.js +878 -0
- package/dist/cli/history-EIXADPAD.js +137 -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-R73SO444.js +88 -0
- package/dist/cli/import-tasks-O22FZJ4U.js +108 -0
- package/dist/cli/index.js +419 -94612
- package/dist/cli/init-IHEJDQWU.js +40 -0
- package/dist/cli/inject-LSRVWNCP.js +82 -0
- package/dist/cli/install-global-4AZUCH6U.js +95 -0
- package/dist/cli/intelligence-2OSFOGD2.js +181 -0
- package/dist/cli/issue-IIWEDNFC.js +158 -0
- package/dist/cli/janitor-GPMC7VOR.js +111 -0
- package/dist/cli/labels-5NPOIQXN.js +87 -0
- package/dist/cli/lifecycle-4FFS2K2T.js +272 -0
- package/dist/cli/list-47KEUGPQ.js +108 -0
- package/dist/cli/llm-G5B3I6GD.js +703 -0
- package/dist/cli/llm-cost-S7RS6BVA.js +25 -0
- package/dist/cli/llm-stream-24A45NTS.js +27 -0
- package/dist/cli/log-XF6H2XSD.js +75 -0
- package/dist/cli/login-LBPLGHYG.js +43 -0
- package/dist/cli/logout-SX4JSJIV.js +74 -0
- package/dist/cli/manifest-NMCW4PIW.js +353 -0
- package/dist/cli/map-BU72KMGF.js +52 -0
- package/dist/cli/memory-UHYIVGVM.js +1956 -0
- package/dist/cli/migrate-agents-v2-OO7OILZK.js +33 -0
- package/dist/cli/migrate-claude-mem-EDNYUY3K.js +201 -0
- package/dist/cli/next-RZFRG5X7.js +56 -0
- package/dist/cli/nexus-4S4Z5EVU.js +2923 -0
- package/dist/cli/ops-KR7AWCG3.js +51 -0
- package/dist/cli/orchestrate-HOYZY3VX.js +948 -0
- package/dist/cli/otel-U7IIRBCT.js +188 -0
- package/dist/cli/phase-NYZFHUE5.js +220 -0
- package/dist/cli/pivot-FF2CVUZL.js +87 -0
- package/dist/cli/plan-3SL2NTRV.js +48 -0
- package/dist/cli/playbook-2FCBV7N3.js +229 -0
- package/dist/cli/project-WDX2TGMC.js +330 -0
- package/dist/cli/promote-YINYFBZY.js +52 -0
- package/dist/cli/provenance-C7AYD7WG.js +128 -0
- package/dist/cli/provider-QLJEDQBR.js +212 -0
- package/dist/cli/reason-JF5BHBM5.js +137 -0
- package/dist/cli/reconcile-NMISHDGX.js +127 -0
- package/dist/cli/refresh-memory-EY5YNICV.js +45 -0
- package/dist/cli/relates-R3ZPICAY.js +259 -0
- package/dist/cli/release-4ZJTMUUT.js +524 -0
- package/dist/cli/remote-QSONJDIK.js +279 -0
- package/dist/cli/renderers-64OR3IWX.js +37 -0
- package/dist/cli/reorder-J3DOE7ST.js +86 -0
- package/dist/cli/reparent-2OUMKEZX.js +58 -0
- package/dist/cli/req-TZB7OFKO.js +129 -0
- package/dist/cli/research-MTD7EX45.js +365 -0
- package/dist/cli/restore-VEUOX7NF.js +423 -0
- package/dist/cli/revert-3YF2IL5G.js +240 -0
- package/dist/cli/roadmap-7OOQLXKG.js +61 -0
- package/dist/cli/run-2U5NZV5Z.js +211 -0
- package/dist/cli/safestop-VR4VK56D.js +88 -0
- package/dist/cli/saga-SEWPIOX2.js +285 -0
- package/dist/cli/schema-C52WZ35V.js +195 -0
- package/dist/cli/self-update-GQIGUDPS.js +504 -0
- package/dist/cli/selfimprove-3Y5L4ECT.js +88 -0
- package/dist/cli/sentient-M4YMAVGV.js +1088 -0
- package/dist/cli/sequence-6UBMA4IF.js +93 -0
- package/dist/cli/service-5R7SILZ7.js +155 -0
- package/dist/cli/session-3C6AAC4Y.js +707 -0
- package/dist/cli/setup-BTUBW5PU.js +323 -0
- package/dist/cli/show-MXT2V7TF.js +122 -0
- package/dist/cli/skill-GFUZOU2C.js +84 -0
- package/dist/cli/skills-EDWLKAF3.js +928 -0
- package/dist/cli/smoke-provider-SKUFMZXU.js +218 -0
- package/dist/cli/snapshot-GUWMURCM.js +119 -0
- package/dist/cli/src-66GAKPXR.js +80 -0
- package/dist/cli/start-QFG56RGN.js +67 -0
- package/dist/cli/stats-GW55P7RR.js +95 -0
- package/dist/cli/status-46HTKNRR.js +157 -0
- package/dist/cli/sticky-2DUZOUGI.js +338 -0
- package/dist/cli/stop-J2QEUKHX.js +42 -0
- package/dist/cli/sync-GJP2QYT5.js +154 -0
- package/dist/cli/tasks-BNXTM7PB.js +174 -0
- package/dist/cli/telemetry-55Z2XJWL.js +120 -0
- package/dist/cli/templates-7O77TKPV.js +611 -0
- package/dist/cli/testing-37YTBNKP.js +146 -0
- package/dist/cli/token-UAVJMNUI.js +220 -0
- package/dist/cli/transcript-LORQTV5Z.js +440 -0
- package/dist/cli/tui-BPUFHYKK.js +51 -0
- package/dist/cli/update-NVCYV2FT.js +476 -0
- package/dist/cli/upgrade-OXJXOGEF.js +243 -0
- package/dist/cli/verify-LYLDHPT2.js +190 -0
- package/dist/cli/web-QP2RP266.js +275 -0
- package/dist/cli/workgraph-FXBSZDQE.js +232 -0
- package/dist/cli/worktree-6RXAJIST.js +370 -0
- package/package.json +13 -13
- package/studio-dist/client/_app/immutable/chunks/{DMj27Pxj.js → Btgeq_wq.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{qq3pe1aT.js → CgBjxmu6.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{Dc2owyvE.js → DgEKqO6r.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/t81h7afa.js +1 -0
- package/studio-dist/client/_app/immutable/entry/{app.CHWXLeE9.js → app.a02HWaRB.js} +2 -2
- package/studio-dist/client/_app/immutable/entry/start.BreMSngo.js +1 -0
- package/studio-dist/client/_app/immutable/nodes/{0.DmKQGvFh.js → 0.nTXyRfc-.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{1.DqJk_REO.js → 1.4zrWeHtl.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{15.GUy6kdW1.js → 15.D9mk4JyY.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{16.CcnKZ8f9.js → 16._-wt-sQf.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{17.DAlQF3lQ.js → 17.CUu6LQDj.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{18.vQFr-vFj.js → 18.Dz4QRTkX.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{20.GVOj5j_r.js → 20.CJ2_EB0U.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{24.2-wC6DOh.js → 24.Igj2FS7k.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{25.D1vYaH8g.js → 25.BnATjVGN.js} +2 -2
- package/studio-dist/client/_app/immutable/nodes/{26.C3rNqzZF.js → 26.6iPyjT44.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{3.b-7pzc3M.js → 3.AA5GwNgP.js} +1 -1
- package/studio-dist/client/_app/version.json +1 -1
- package/studio-dist/server/chunks/{0-BaCce-O1.js → 0-DGmsoBYm.js} +3 -3
- package/studio-dist/server/chunks/1-8PfxPvlK.js +9 -0
- package/studio-dist/server/chunks/{15-DRMOSIC9.js → 15-Bg6YTndh.js} +3 -3
- package/studio-dist/server/chunks/{16-BulXhoZZ.js → 16-BObLwgyD.js} +3 -3
- package/studio-dist/server/chunks/{17-DUEOCM0H.js → 17-BNXGyAHX.js} +3 -3
- package/studio-dist/server/chunks/{18-DP7Q8zPs.js → 18-UqQFRIID.js} +3 -3
- package/studio-dist/server/chunks/{20-9ta6MI7q.js → 20-CMn8a_yP.js} +3 -3
- package/studio-dist/server/chunks/{24-DysdL1ab.js → 24-BuOTDzib.js} +3 -3
- package/studio-dist/server/chunks/{25-CYsps38R.js → 25-CIMSmjVx.js} +4 -4
- package/studio-dist/server/chunks/{26-Df4YXgg0.js → 26-DWGObn2T.js} +3 -3
- package/studio-dist/server/chunks/{3-BEhOhYpL.js → 3-CyiffdJZ.js} +3 -3
- package/studio-dist/server/chunks/{_layout.svelte-CnLcXYG-.js → _layout.svelte-DYtClaIk.js} +4 -4
- package/studio-dist/server/chunks/{_page.svelte-HUqTICJR.js → _page.svelte-1h9E6s_f.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-DOl0DGOO.js → _page.svelte-BNNF62Nm.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-DzcZljiy.js → _page.svelte-BT1EUadj.js} +5 -5
- package/studio-dist/server/chunks/{_page.svelte-Dv8tmDEC.js → _page.svelte-Bip079LT.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-DGhXqeRc.js → _page.svelte-CEATWp_5.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-C0qgUvzA.js → _page.svelte-CV3xiD1y.js} +4 -4
- package/studio-dist/server/chunks/{_page.svelte-CbyEPj2j.js → _page.svelte-Cv_KVJDV.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-ui7LnWkL.js → _page.svelte-DSSy6LuK.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-Da4q5l93.js → _page.svelte-TF795TAS.js} +3 -3
- package/studio-dist/server/chunks/{_server.ts-CnKVmf_s.js → _server.ts-BlhRFLY3.js} +2 -2
- package/studio-dist/server/chunks/{_server.ts-Cr57EKWf.js → _server.ts-C4w6UdU0.js} +3 -3
- package/studio-dist/server/chunks/{_server.ts-P4wVVksg.js → _server.ts-CzrwbhkQ.js} +3 -3
- package/studio-dist/server/chunks/{_server.ts-2BazvYRP.js → _server.ts-DWt8Dziu.js} +3 -3
- package/studio-dist/server/chunks/{_server.ts-C0evMKCk.js → _server.ts-Db6mEile.js} +3 -3
- package/studio-dist/server/chunks/{client-CPM4LrO2.js → client-D8f2k-H_.js} +2 -2
- package/studio-dist/server/chunks/{dist-CdoCt9zT.js → dist-B8xbIrdB.js} +3 -1
- package/studio-dist/server/chunks/{error.svelte-ShcZo43D.js → error.svelte-DbbOwIme.js} +3 -3
- package/studio-dist/server/chunks/{http-BiQjEmVU.js → http-1ftNGTs5.js} +2 -2
- package/studio-dist/server/chunks/{internal-Cgsrya1j.js → internal-CTULuLPB.js} +2 -2
- package/studio-dist/server/chunks/{stores-BGrpEDMK.js → stores-CS5XOReX.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/server/chunks/1-CVo7Nk6d.js +0 -9
|
@@ -0,0 +1,128 @@
|
|
|
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
|
+
} from "./chunk-3ZO3M37V.js";
|
|
23
|
+
import "./chunk-6JSJNYH2.js";
|
|
24
|
+
|
|
25
|
+
// packages/cleo/src/cli/commands/checkpoint.ts
|
|
26
|
+
import { ExitCode } from "@cleocode/contracts";
|
|
27
|
+
import {
|
|
28
|
+
CleoError,
|
|
29
|
+
formatError,
|
|
30
|
+
getCleoDir,
|
|
31
|
+
gitCheckpoint,
|
|
32
|
+
gitCheckpointStatus,
|
|
33
|
+
isCleoGitInitialized
|
|
34
|
+
} from "@cleocode/core/internal";
|
|
35
|
+
function isGitRepo() {
|
|
36
|
+
try {
|
|
37
|
+
const cleoDir = getCleoDir();
|
|
38
|
+
return isCleoGitInitialized(cleoDir);
|
|
39
|
+
} catch {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
var checkpointCommand = defineCommand({
|
|
44
|
+
meta: {
|
|
45
|
+
name: "checkpoint",
|
|
46
|
+
description: "Git checkpoint for CLEO state files (commits to isolated .cleo/.git repo)"
|
|
47
|
+
},
|
|
48
|
+
args: {
|
|
49
|
+
status: {
|
|
50
|
+
type: "boolean",
|
|
51
|
+
description: "Show configuration and last checkpoint time"
|
|
52
|
+
},
|
|
53
|
+
"dry-run": {
|
|
54
|
+
type: "boolean",
|
|
55
|
+
description: "Show what files would be committed"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
async run({ args }) {
|
|
59
|
+
try {
|
|
60
|
+
if (!isGitRepo()) {
|
|
61
|
+
throw new CleoError(ExitCode.GENERAL_ERROR, ".cleo/.git not initialized. Run: cleo init");
|
|
62
|
+
}
|
|
63
|
+
if (args.status) {
|
|
64
|
+
const status = await gitCheckpointStatus();
|
|
65
|
+
cliOutput(
|
|
66
|
+
{
|
|
67
|
+
config: status.config,
|
|
68
|
+
lastCheckpoint: status.status.lastCheckpoint,
|
|
69
|
+
pendingFiles: status.status.pendingChanges,
|
|
70
|
+
isGitRepo: status.status.isGitRepo
|
|
71
|
+
},
|
|
72
|
+
{ command: "checkpoint" }
|
|
73
|
+
);
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
if (args["dry-run"]) {
|
|
77
|
+
const status = await gitCheckpointStatus();
|
|
78
|
+
const count = status.status.pendingChanges;
|
|
79
|
+
cliOutput(
|
|
80
|
+
{
|
|
81
|
+
dryRun: true,
|
|
82
|
+
fileCount: count
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
command: "checkpoint",
|
|
86
|
+
message: count === 0 ? "No CLEO files to checkpoint" : `Would checkpoint ${count} file(s)`
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
const before = await gitCheckpointStatus();
|
|
92
|
+
if (!before.config.enabled) {
|
|
93
|
+
cliOutput(
|
|
94
|
+
{ enabled: false },
|
|
95
|
+
{
|
|
96
|
+
command: "checkpoint",
|
|
97
|
+
message: "Git checkpoint is disabled. Enable with: cleo config set gitCheckpoint.enabled true"
|
|
98
|
+
}
|
|
99
|
+
);
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
if (before.status.pendingChanges === 0) {
|
|
103
|
+
cliOutput(
|
|
104
|
+
{ noChange: true },
|
|
105
|
+
{ command: "checkpoint", message: "No CLEO files to checkpoint" }
|
|
106
|
+
);
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
await gitCheckpoint("manual");
|
|
110
|
+
cliOutput(
|
|
111
|
+
{
|
|
112
|
+
checkpointed: before.status.pendingChanges
|
|
113
|
+
},
|
|
114
|
+
{ command: "checkpoint", message: "Checkpoint complete" }
|
|
115
|
+
);
|
|
116
|
+
} catch (err) {
|
|
117
|
+
if (err instanceof CleoError) {
|
|
118
|
+
cliError(formatError(err), err.code, { name: "E_CHECKPOINT_FAILED" });
|
|
119
|
+
process.exit(err.code);
|
|
120
|
+
}
|
|
121
|
+
throw err;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
export {
|
|
126
|
+
checkpointCommand
|
|
127
|
+
};
|
|
128
|
+
//# sourceMappingURL=checkpoint-37HMMKD7.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-3ZO3M37V.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-2JIJD2I7.js.map
|
|
@@ -0,0 +1,171 @@
|
|
|
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
|
+
} from "./chunk-3ZO3M37V.js";
|
|
23
|
+
|
|
24
|
+
// packages/cleo/src/cli/commands/doctor-twin-collapse.ts
|
|
25
|
+
import {
|
|
26
|
+
inspectProjectTwinCollapse,
|
|
27
|
+
recoverTwinCollapse,
|
|
28
|
+
releaseProjectTwinCollapseSnapshot,
|
|
29
|
+
retryTwinCollapse,
|
|
30
|
+
rollbackTwinCollapse
|
|
31
|
+
} from "@cleocode/core/doctor/twin-collapse.js";
|
|
32
|
+
import { CleoError } from "@cleocode/core/errors";
|
|
33
|
+
import { getProjectRoot } from "@cleocode/core/paths.js";
|
|
34
|
+
var doctorTwinCollapseCommand = defineCommand({
|
|
35
|
+
meta: {
|
|
36
|
+
name: "twin-collapse",
|
|
37
|
+
description: "Report the twin collapses (bare schema_meta / sticky_tags kept in step with their prefixed twins): state, last failure, snapshot path and space needed. --retry re-runs them; --recover restores what 2026.9.21 dropped; --release-snapshot lets a checked snapshot rotate."
|
|
38
|
+
},
|
|
39
|
+
args: {
|
|
40
|
+
retry: {
|
|
41
|
+
type: "boolean",
|
|
42
|
+
description: "Run the collapse once now (after clearing the reported cause)"
|
|
43
|
+
},
|
|
44
|
+
recover: {
|
|
45
|
+
type: "boolean",
|
|
46
|
+
description: "Restore twin values a 2026.9.21 collapse dropped or replaced, from its pinned pre-collapse snapshot, into twin_collapse_archive:* (T12727). Combine with --dry-run"
|
|
47
|
+
},
|
|
48
|
+
"dry-run": {
|
|
49
|
+
type: "boolean",
|
|
50
|
+
description: "With --recover: print the plan, write nothing"
|
|
51
|
+
},
|
|
52
|
+
"pin-snapshot": {
|
|
53
|
+
type: "boolean",
|
|
54
|
+
description: "With --recover: pin an unpinned pre-collapse snapshot (its .meta.json sidecar only) before applying"
|
|
55
|
+
},
|
|
56
|
+
rollback: {
|
|
57
|
+
type: "string",
|
|
58
|
+
description: "Undo one --recover apply by its receipt id (twin_collapse_recovery:<recoveredAt>)"
|
|
59
|
+
},
|
|
60
|
+
"release-snapshot": {
|
|
61
|
+
type: "string",
|
|
62
|
+
description: "Release a pre-collapse snapshot (backup id, e.g. migration-20260928-153200) after a verified recovery or a no-recovery-needed check, so it rotates normally. Needs --confirm; --dry-run shows the bytes reclaimed"
|
|
63
|
+
},
|
|
64
|
+
confirm: {
|
|
65
|
+
type: "boolean",
|
|
66
|
+
description: "With --release-snapshot: the owner's decision to release (obtained by the calling agent; the CLI never prompts)"
|
|
67
|
+
},
|
|
68
|
+
"confirm-owner-store": {
|
|
69
|
+
type: "boolean",
|
|
70
|
+
description: "From a git worktree: allow --recover, --rollback or --retry to write the owning project's live store"
|
|
71
|
+
},
|
|
72
|
+
json: { type: "boolean", description: "Output as JSON" },
|
|
73
|
+
human: { type: "boolean", description: "Force human-readable output" },
|
|
74
|
+
quiet: { type: "boolean", description: "Suppress non-essential output" }
|
|
75
|
+
},
|
|
76
|
+
async run({ args }) {
|
|
77
|
+
const projectRoot = getProjectRoot();
|
|
78
|
+
const guard = { cwd: process.cwd(), confirmOwnerStore: args["confirm-owner-store"] === true };
|
|
79
|
+
const actions = twinCollapseActions(args);
|
|
80
|
+
if (actions.length > 1) {
|
|
81
|
+
cliError(
|
|
82
|
+
`E_INVALID_INPUT: ${actions.join(" and ")} are separate actions; run them one at a time (--recover before --release-snapshot)`,
|
|
83
|
+
"E_INVALID_INPUT",
|
|
84
|
+
{ name: "Error", fix: "cleo doctor twin-collapse --recover --dry-run" }
|
|
85
|
+
);
|
|
86
|
+
process.exitCode = 2;
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
try {
|
|
90
|
+
if (typeof args.rollback === "string" && args.rollback.length > 0) {
|
|
91
|
+
const result = await rollbackTwinCollapse(projectRoot, args.rollback, guard);
|
|
92
|
+
cliOutput(
|
|
93
|
+
{ kind: "generic", ...result },
|
|
94
|
+
{ command: "doctor", operation: "doctor.twin-collapse.rollback" }
|
|
95
|
+
);
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
if (typeof args["release-snapshot"] === "string" && args["release-snapshot"].length > 0) {
|
|
99
|
+
const result = await releaseProjectTwinCollapseSnapshot(
|
|
100
|
+
projectRoot,
|
|
101
|
+
args["release-snapshot"],
|
|
102
|
+
{
|
|
103
|
+
...guard,
|
|
104
|
+
dryRun: args["dry-run"] === true,
|
|
105
|
+
confirm: args.confirm === true
|
|
106
|
+
}
|
|
107
|
+
);
|
|
108
|
+
cliOutput(
|
|
109
|
+
{ kind: "generic", ...result },
|
|
110
|
+
{ command: "doctor", operation: "doctor.twin-collapse.release-snapshot" }
|
|
111
|
+
);
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
if (args.recover === true) {
|
|
115
|
+
const result = await recoverTwinCollapse(projectRoot, {
|
|
116
|
+
...guard,
|
|
117
|
+
dryRun: args["dry-run"] === true,
|
|
118
|
+
pinSnapshot: args["pin-snapshot"] === true
|
|
119
|
+
});
|
|
120
|
+
cliOutput(
|
|
121
|
+
{ kind: "generic", ...result },
|
|
122
|
+
{ command: "doctor", operation: "doctor.twin-collapse.recover" }
|
|
123
|
+
);
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
if (args.retry === true) {
|
|
127
|
+
const receipts = await retryTwinCollapse(projectRoot, guard);
|
|
128
|
+
cliOutput(
|
|
129
|
+
{ kind: "generic", receipts },
|
|
130
|
+
{ command: "doctor", operation: "doctor.twin-collapse.retry" }
|
|
131
|
+
);
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
} catch (error) {
|
|
135
|
+
reportTwinCollapseError(error, args.retry === true);
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
const report = inspectProjectTwinCollapse(projectRoot);
|
|
139
|
+
cliOutput(report, { command: "doctor", operation: "doctor.twin-collapse.run" });
|
|
140
|
+
const failed = report.pairs.some((p) => p.state === "failed") || report.preflight?.ok === false;
|
|
141
|
+
if (failed && (process.exitCode === void 0 || process.exitCode === 0)) {
|
|
142
|
+
process.exitCode = 1;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
function reportTwinCollapseError(error, retry) {
|
|
147
|
+
if (retry && !(error instanceof CleoError)) throw error;
|
|
148
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
149
|
+
const named = /^(E_[A-Z_]+):/.exec(message)?.[1];
|
|
150
|
+
const code = named ?? (retry ? "E_TWIN_COLLAPSE_FAILED" : "E_TWIN_COLLAPSE_RECOVER");
|
|
151
|
+
cliError(message, code, {
|
|
152
|
+
name: error instanceof CleoError ? "CleoError" : "Error",
|
|
153
|
+
fix: error instanceof CleoError ? error.fix : void 0,
|
|
154
|
+
details: error instanceof CleoError ? error.details : void 0
|
|
155
|
+
});
|
|
156
|
+
process.exitCode = error instanceof CleoError ? error.code : 1;
|
|
157
|
+
}
|
|
158
|
+
function twinCollapseActions(args) {
|
|
159
|
+
const named = (key) => typeof args[key] === "string" && args[key].length > 0;
|
|
160
|
+
return [
|
|
161
|
+
args.recover === true ? "--recover" : "",
|
|
162
|
+
named("release-snapshot") ? "--release-snapshot" : "",
|
|
163
|
+
named("rollback") ? "--rollback" : "",
|
|
164
|
+
args.retry === true ? "--retry" : ""
|
|
165
|
+
].filter(Boolean);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export {
|
|
169
|
+
doctorTwinCollapseCommand
|
|
170
|
+
};
|
|
171
|
+
//# sourceMappingURL=chunk-37NU2XDP.js.map
|