@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,40 @@
|
|
|
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
|
+
FIRST_RUN_LOGIN_NEXT_STEP,
|
|
18
|
+
getGitignoreTemplate,
|
|
19
|
+
getWorkflowTemplatesDir,
|
|
20
|
+
initCommand,
|
|
21
|
+
isCredentialPoolEmpty,
|
|
22
|
+
maybeNudgeFirstRunLogin
|
|
23
|
+
} from "./chunk-OPTEQKBB.js";
|
|
24
|
+
import "./chunk-J3ZFM3UQ.js";
|
|
25
|
+
import "./chunk-GZFVDR44.js";
|
|
26
|
+
import "./chunk-ULN4OKQQ.js";
|
|
27
|
+
import "./chunk-47JYZAMS.js";
|
|
28
|
+
import "./chunk-C3B7C43W.js";
|
|
29
|
+
import "./chunk-PKKZPOOP.js";
|
|
30
|
+
import "./chunk-3ZO3M37V.js";
|
|
31
|
+
import "./chunk-6JSJNYH2.js";
|
|
32
|
+
export {
|
|
33
|
+
FIRST_RUN_LOGIN_NEXT_STEP,
|
|
34
|
+
getGitignoreTemplate,
|
|
35
|
+
getWorkflowTemplatesDir,
|
|
36
|
+
initCommand,
|
|
37
|
+
isCredentialPoolEmpty,
|
|
38
|
+
maybeNudgeFirstRunLogin
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=init-IHEJDQWU.js.map
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
dispatchFromCli
|
|
21
|
+
} from "./chunk-3IOQVUO7.js";
|
|
22
|
+
import "./chunk-AWCQH2W5.js";
|
|
23
|
+
import "./chunk-OGV57L4J.js";
|
|
24
|
+
import "./chunk-ZBISIPCK.js";
|
|
25
|
+
import "./chunk-3ZO3M37V.js";
|
|
26
|
+
import "./chunk-6JSJNYH2.js";
|
|
27
|
+
import "./chunk-QFFQSKRC.js";
|
|
28
|
+
|
|
29
|
+
// packages/cleo/src/cli/commands/inject.ts
|
|
30
|
+
var injectCommand = defineCommand({
|
|
31
|
+
meta: { name: "inject", description: "Prepare tasks for external system injection" },
|
|
32
|
+
args: {
|
|
33
|
+
"max-tasks": {
|
|
34
|
+
type: "string",
|
|
35
|
+
description: "Maximum tasks to inject",
|
|
36
|
+
default: "8"
|
|
37
|
+
},
|
|
38
|
+
"focused-only": {
|
|
39
|
+
type: "boolean",
|
|
40
|
+
description: "Only inject the focused task",
|
|
41
|
+
default: false
|
|
42
|
+
},
|
|
43
|
+
phase: {
|
|
44
|
+
type: "string",
|
|
45
|
+
description: "Filter tasks to specific phase"
|
|
46
|
+
},
|
|
47
|
+
output: {
|
|
48
|
+
type: "string",
|
|
49
|
+
description: "Write to file instead of stdout"
|
|
50
|
+
},
|
|
51
|
+
"save-state": {
|
|
52
|
+
type: "boolean",
|
|
53
|
+
description: "Save session state for extraction",
|
|
54
|
+
default: true
|
|
55
|
+
},
|
|
56
|
+
"dry-run": {
|
|
57
|
+
type: "boolean",
|
|
58
|
+
description: "Preview without writing",
|
|
59
|
+
default: false
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
async run({ args }) {
|
|
63
|
+
await dispatchFromCli(
|
|
64
|
+
"mutate",
|
|
65
|
+
"admin",
|
|
66
|
+
"inject.generate",
|
|
67
|
+
{
|
|
68
|
+
maxTasks: Number.parseInt(args["max-tasks"], 10),
|
|
69
|
+
focusedOnly: args["focused-only"],
|
|
70
|
+
phase: args.phase,
|
|
71
|
+
output: args.output,
|
|
72
|
+
saveState: args["save-state"],
|
|
73
|
+
dryRun: args["dry-run"]
|
|
74
|
+
},
|
|
75
|
+
{ command: "inject" }
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
export {
|
|
80
|
+
injectCommand
|
|
81
|
+
};
|
|
82
|
+
//# sourceMappingURL=inject-LSRVWNCP.js.map
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
humanLine
|
|
22
|
+
} from "./chunk-3ZO3M37V.js";
|
|
23
|
+
import "./chunk-6JSJNYH2.js";
|
|
24
|
+
|
|
25
|
+
// packages/cleo/src/cli/commands/install-global.ts
|
|
26
|
+
import { bootstrapGlobalCleo } from "@cleocode/core/internal";
|
|
27
|
+
function renderBootstrapHuman(ctx, dryRun) {
|
|
28
|
+
if (dryRun) {
|
|
29
|
+
humanLine("Dry-run mode \u2014 no changes will be made.\n");
|
|
30
|
+
}
|
|
31
|
+
if (ctx.created.length > 0) {
|
|
32
|
+
humanLine(`${dryRun ? "Would create/update" : "Created/updated"}:`);
|
|
33
|
+
for (const item of ctx.created) {
|
|
34
|
+
humanLine(` + ${item}`);
|
|
35
|
+
}
|
|
36
|
+
humanLine("");
|
|
37
|
+
} else {
|
|
38
|
+
humanLine("No changes needed \u2014 everything is already up to date.\n");
|
|
39
|
+
}
|
|
40
|
+
if (ctx.warnings.length > 0) {
|
|
41
|
+
humanLine("Warnings:");
|
|
42
|
+
for (const w of ctx.warnings) {
|
|
43
|
+
humanLine(` ! ${w}`);
|
|
44
|
+
}
|
|
45
|
+
humanLine("");
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
var installGlobalCommand = defineCommand({
|
|
49
|
+
meta: {
|
|
50
|
+
name: "install-global",
|
|
51
|
+
description: "Run the global bootstrap manually (install templates, ~/.cleo symlink, agents, skills). Same as npm postinstall."
|
|
52
|
+
},
|
|
53
|
+
args: {
|
|
54
|
+
"dry-run": {
|
|
55
|
+
type: "boolean",
|
|
56
|
+
description: "Preview changes without applying them"
|
|
57
|
+
},
|
|
58
|
+
// Global output format flags — read directly from args (no optsWithGlobals in citty)
|
|
59
|
+
json: {
|
|
60
|
+
type: "boolean",
|
|
61
|
+
description: "Output as JSON"
|
|
62
|
+
},
|
|
63
|
+
human: {
|
|
64
|
+
type: "boolean",
|
|
65
|
+
description: "Force human-readable output"
|
|
66
|
+
},
|
|
67
|
+
quiet: {
|
|
68
|
+
type: "boolean",
|
|
69
|
+
description: "Suppress non-essential output"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
async run({ args }) {
|
|
73
|
+
const dryRun = args["dry-run"] === true;
|
|
74
|
+
const isHuman = args.human === true || !!process.stdout.isTTY && args.json !== true;
|
|
75
|
+
const ctx = await bootstrapGlobalCleo({ dryRun });
|
|
76
|
+
if (isHuman && args.quiet !== true) {
|
|
77
|
+
renderBootstrapHuman(ctx, dryRun);
|
|
78
|
+
}
|
|
79
|
+
cliOutput(
|
|
80
|
+
{
|
|
81
|
+
dryRun,
|
|
82
|
+
created: ctx.created,
|
|
83
|
+
warnings: ctx.warnings
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
command: "install-global",
|
|
87
|
+
message: dryRun ? `Dry-run complete \u2014 ${ctx.created.length} action(s) would be applied` : `Bootstrap complete \u2014 ${ctx.created.length} action(s) applied, ${ctx.warnings.length} warning(s)`
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
export {
|
|
93
|
+
installGlobalCommand
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=install-global-4AZUCH6U.js.map
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
const _installed = Symbol.for('cleocode.cli.sqliteWarningFilter');
|
|
3
|
+
if (globalThis[_installed]) return;
|
|
4
|
+
globalThis[_installed] = true;
|
|
5
|
+
const _origEmitWarning = process.emitWarning;
|
|
6
|
+
process.emitWarning = function(warning, type, code, ctor) {
|
|
7
|
+
if (typeof warning === 'object' && warning.name === 'ExperimentalWarning' && typeof warning.message === 'string' && /SQLite is an experimental feature/i.test(warning.message)) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (typeof warning === 'string' && /SQLite is an experimental feature/i.test(warning)) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
return _origEmitWarning.call(process, warning, type, code, ctor);
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import {
|
|
17
|
+
defineCommand,
|
|
18
|
+
showUsage
|
|
19
|
+
} from "./chunk-PKKZPOOP.js";
|
|
20
|
+
import {
|
|
21
|
+
dispatchFromCli
|
|
22
|
+
} from "./chunk-3IOQVUO7.js";
|
|
23
|
+
import "./chunk-AWCQH2W5.js";
|
|
24
|
+
import "./chunk-OGV57L4J.js";
|
|
25
|
+
import "./chunk-ZBISIPCK.js";
|
|
26
|
+
import "./chunk-3ZO3M37V.js";
|
|
27
|
+
import "./chunk-6JSJNYH2.js";
|
|
28
|
+
import "./chunk-QFFQSKRC.js";
|
|
29
|
+
|
|
30
|
+
// packages/cleo/src/cli/commands/intelligence.ts
|
|
31
|
+
var predictCommand = defineCommand({
|
|
32
|
+
meta: {
|
|
33
|
+
name: "predict",
|
|
34
|
+
description: "Calculate risk score for a task, or predict validation outcome for a stage"
|
|
35
|
+
},
|
|
36
|
+
args: {
|
|
37
|
+
task: {
|
|
38
|
+
type: "string",
|
|
39
|
+
description: "Task ID to assess",
|
|
40
|
+
required: true
|
|
41
|
+
},
|
|
42
|
+
stage: {
|
|
43
|
+
type: "string",
|
|
44
|
+
description: "Lifecycle stage for validation outcome prediction"
|
|
45
|
+
},
|
|
46
|
+
json: {
|
|
47
|
+
type: "boolean",
|
|
48
|
+
description: "Output as JSON",
|
|
49
|
+
default: false
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
async run({ args }) {
|
|
53
|
+
await dispatchFromCli(
|
|
54
|
+
"query",
|
|
55
|
+
"intelligence",
|
|
56
|
+
"predict",
|
|
57
|
+
{ taskId: args.task, stage: args.stage },
|
|
58
|
+
{ command: "intelligence", operation: "intelligence.predict" }
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
var suggestCommand = defineCommand({
|
|
63
|
+
meta: { name: "suggest", description: "Suggest verification gate focus for a task" },
|
|
64
|
+
args: {
|
|
65
|
+
task: {
|
|
66
|
+
type: "string",
|
|
67
|
+
description: "Task ID to analyze",
|
|
68
|
+
required: true
|
|
69
|
+
},
|
|
70
|
+
json: {
|
|
71
|
+
type: "boolean",
|
|
72
|
+
description: "Output as JSON",
|
|
73
|
+
default: false
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
async run({ args }) {
|
|
77
|
+
await dispatchFromCli(
|
|
78
|
+
"query",
|
|
79
|
+
"intelligence",
|
|
80
|
+
"suggest",
|
|
81
|
+
{ taskId: args.task },
|
|
82
|
+
{ command: "intelligence", operation: "intelligence.suggest" }
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
var learnErrorsCommand = defineCommand({
|
|
87
|
+
meta: {
|
|
88
|
+
name: "learn-errors",
|
|
89
|
+
description: "Extract recurring failure patterns from task and brain history"
|
|
90
|
+
},
|
|
91
|
+
args: {
|
|
92
|
+
limit: {
|
|
93
|
+
type: "string",
|
|
94
|
+
description: "Maximum number of patterns to return"
|
|
95
|
+
},
|
|
96
|
+
json: {
|
|
97
|
+
type: "boolean",
|
|
98
|
+
description: "Output as JSON",
|
|
99
|
+
default: false
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
async run({ args }) {
|
|
103
|
+
await dispatchFromCli(
|
|
104
|
+
"query",
|
|
105
|
+
"intelligence",
|
|
106
|
+
"learn-errors",
|
|
107
|
+
{ limit: args.limit !== void 0 ? Number.parseInt(args.limit, 10) : void 0 },
|
|
108
|
+
{ command: "intelligence", operation: "intelligence.learn-errors" }
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
var confidenceCommand = defineCommand({
|
|
113
|
+
meta: {
|
|
114
|
+
name: "confidence",
|
|
115
|
+
description: "Score verification confidence for a task based on its current gate state"
|
|
116
|
+
},
|
|
117
|
+
args: {
|
|
118
|
+
task: {
|
|
119
|
+
type: "string",
|
|
120
|
+
description: "Task ID to score",
|
|
121
|
+
required: true
|
|
122
|
+
},
|
|
123
|
+
json: {
|
|
124
|
+
type: "boolean",
|
|
125
|
+
description: "Output as JSON",
|
|
126
|
+
default: false
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
async run({ args }) {
|
|
130
|
+
await dispatchFromCli(
|
|
131
|
+
"query",
|
|
132
|
+
"intelligence",
|
|
133
|
+
"confidence",
|
|
134
|
+
{ taskId: args.task },
|
|
135
|
+
{ command: "intelligence", operation: "intelligence.confidence" }
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
var matchCommand = defineCommand({
|
|
140
|
+
meta: { name: "match", description: "Match known brain patterns against a task" },
|
|
141
|
+
args: {
|
|
142
|
+
task: {
|
|
143
|
+
type: "string",
|
|
144
|
+
description: "Task ID to match",
|
|
145
|
+
required: true
|
|
146
|
+
},
|
|
147
|
+
json: {
|
|
148
|
+
type: "boolean",
|
|
149
|
+
description: "Output as JSON",
|
|
150
|
+
default: false
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
async run({ args }) {
|
|
154
|
+
await dispatchFromCli(
|
|
155
|
+
"query",
|
|
156
|
+
"intelligence",
|
|
157
|
+
"match",
|
|
158
|
+
{ taskId: args.task },
|
|
159
|
+
{ command: "intelligence", operation: "intelligence.match" }
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
var intelligenceCommand = defineCommand({
|
|
164
|
+
meta: { name: "intelligence", description: "Predictive intelligence and quality analysis" },
|
|
165
|
+
subCommands: {
|
|
166
|
+
predict: predictCommand,
|
|
167
|
+
suggest: suggestCommand,
|
|
168
|
+
"learn-errors": learnErrorsCommand,
|
|
169
|
+
confidence: confidenceCommand,
|
|
170
|
+
match: matchCommand
|
|
171
|
+
},
|
|
172
|
+
async run({ cmd, rawArgs }) {
|
|
173
|
+
const firstArg = rawArgs?.find((a) => !a.startsWith("-"));
|
|
174
|
+
if (firstArg && cmd.subCommands && firstArg in cmd.subCommands) return;
|
|
175
|
+
await showUsage(cmd);
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
export {
|
|
179
|
+
intelligenceCommand
|
|
180
|
+
};
|
|
181
|
+
//# sourceMappingURL=intelligence-2OSFOGD2.js.map
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
const _installed = Symbol.for('cleocode.cli.sqliteWarningFilter');
|
|
3
|
+
if (globalThis[_installed]) return;
|
|
4
|
+
globalThis[_installed] = true;
|
|
5
|
+
const _origEmitWarning = process.emitWarning;
|
|
6
|
+
process.emitWarning = function(warning, type, code, ctor) {
|
|
7
|
+
if (typeof warning === 'object' && warning.name === 'ExperimentalWarning' && typeof warning.message === 'string' && /SQLite is an experimental feature/i.test(warning.message)) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (typeof warning === 'string' && /SQLite is an experimental feature/i.test(warning)) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
return _origEmitWarning.call(process, warning, type, code, ctor);
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import {
|
|
17
|
+
defineCommand,
|
|
18
|
+
showUsage
|
|
19
|
+
} from "./chunk-PKKZPOOP.js";
|
|
20
|
+
import {
|
|
21
|
+
dispatchFromCli
|
|
22
|
+
} from "./chunk-3IOQVUO7.js";
|
|
23
|
+
import "./chunk-AWCQH2W5.js";
|
|
24
|
+
import "./chunk-OGV57L4J.js";
|
|
25
|
+
import "./chunk-ZBISIPCK.js";
|
|
26
|
+
import {
|
|
27
|
+
cliError,
|
|
28
|
+
cliOutput
|
|
29
|
+
} from "./chunk-3ZO3M37V.js";
|
|
30
|
+
import "./chunk-6JSJNYH2.js";
|
|
31
|
+
import "./chunk-QFFQSKRC.js";
|
|
32
|
+
|
|
33
|
+
// packages/cleo/src/cli/commands/issue.ts
|
|
34
|
+
import { execFileSync } from "node:child_process";
|
|
35
|
+
import { addIssue, BUILD_CONFIG } from "@cleocode/core/internal";
|
|
36
|
+
var CLEO_REPO = BUILD_CONFIG.repository.fullName;
|
|
37
|
+
async function handleIssueType(issueType, opts) {
|
|
38
|
+
let result;
|
|
39
|
+
try {
|
|
40
|
+
result = addIssue({
|
|
41
|
+
issueType,
|
|
42
|
+
title: opts["title"],
|
|
43
|
+
body: opts["body"],
|
|
44
|
+
severity: opts["severity"],
|
|
45
|
+
area: opts["area"],
|
|
46
|
+
dryRun: !!opts["dryRun"]
|
|
47
|
+
});
|
|
48
|
+
} catch (err) {
|
|
49
|
+
cliError(`Failed to create issue: ${err instanceof Error ? err.message : String(err)}`, 1, {
|
|
50
|
+
name: "E_ISSUE_CREATE"
|
|
51
|
+
});
|
|
52
|
+
process.exitCode = 1;
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
if (opts["open"] && typeof result.url === "string" && result.url.startsWith("https://")) {
|
|
56
|
+
const issueNumber = result.url.match(/(\d+)$/)?.[1] ?? "unknown";
|
|
57
|
+
try {
|
|
58
|
+
execFileSync("gh", ["issue", "view", issueNumber, "--repo", CLEO_REPO, "--web"], {
|
|
59
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
60
|
+
});
|
|
61
|
+
} catch {
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
cliOutput(result, { command: "issue", operation: `tools.issue.add.${issueType}` });
|
|
65
|
+
}
|
|
66
|
+
var bugCommand = defineCommand({
|
|
67
|
+
meta: { name: "bug", description: "File a bug report" },
|
|
68
|
+
args: {
|
|
69
|
+
title: { type: "string", description: "Issue title", required: true },
|
|
70
|
+
body: { type: "string", description: "Issue description", required: true },
|
|
71
|
+
severity: {
|
|
72
|
+
type: "string",
|
|
73
|
+
description: "Severity level (Blocker, Major, Moderate, Minor)"
|
|
74
|
+
},
|
|
75
|
+
area: { type: "string", description: "Affected area (cli, dispatch, docs, tests, other)" },
|
|
76
|
+
open: { type: "boolean", description: "Open issue in browser after creation" },
|
|
77
|
+
"dry-run": { type: "boolean", description: "Preview without filing" }
|
|
78
|
+
},
|
|
79
|
+
async run({ args }) {
|
|
80
|
+
await handleIssueType("bug", {
|
|
81
|
+
title: args.title,
|
|
82
|
+
body: args.body,
|
|
83
|
+
severity: args.severity,
|
|
84
|
+
area: args.area,
|
|
85
|
+
open: args.open,
|
|
86
|
+
dryRun: args["dry-run"]
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
var featureCommand = defineCommand({
|
|
91
|
+
meta: { name: "feature", description: "Request a new feature" },
|
|
92
|
+
args: {
|
|
93
|
+
title: { type: "string", description: "Issue title", required: true },
|
|
94
|
+
body: { type: "string", description: "Issue description", required: true },
|
|
95
|
+
area: { type: "string", description: "Affected area" },
|
|
96
|
+
open: { type: "boolean", description: "Open issue in browser after creation" },
|
|
97
|
+
"dry-run": { type: "boolean", description: "Preview without filing" }
|
|
98
|
+
},
|
|
99
|
+
async run({ args }) {
|
|
100
|
+
await handleIssueType("feature", {
|
|
101
|
+
title: args.title,
|
|
102
|
+
body: args.body,
|
|
103
|
+
area: args.area,
|
|
104
|
+
open: args.open,
|
|
105
|
+
dryRun: args["dry-run"]
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
var helpCommand = defineCommand({
|
|
110
|
+
meta: { name: "help", description: "Ask a question" },
|
|
111
|
+
args: {
|
|
112
|
+
title: { type: "string", description: "Issue title", required: true },
|
|
113
|
+
body: { type: "string", description: "Issue description", required: true },
|
|
114
|
+
open: { type: "boolean", description: "Open issue in browser after creation" },
|
|
115
|
+
"dry-run": { type: "boolean", description: "Preview without filing" }
|
|
116
|
+
},
|
|
117
|
+
async run({ args }) {
|
|
118
|
+
await handleIssueType("help", {
|
|
119
|
+
title: args.title,
|
|
120
|
+
body: args.body,
|
|
121
|
+
open: args.open,
|
|
122
|
+
dryRun: args["dry-run"]
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
var diagnosticsCommand = defineCommand({
|
|
127
|
+
meta: { name: "diagnostics", description: "Show system diagnostics (no issue filed)" },
|
|
128
|
+
async run() {
|
|
129
|
+
await dispatchFromCli(
|
|
130
|
+
"query",
|
|
131
|
+
"tools",
|
|
132
|
+
"issue.diagnostics",
|
|
133
|
+
{},
|
|
134
|
+
{ command: "issue", operation: "tools.issue.diagnostics" }
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
var issueCommand = defineCommand({
|
|
139
|
+
meta: {
|
|
140
|
+
name: "issue",
|
|
141
|
+
description: "File bug reports, feature requests, or questions to CLEO GitHub repo"
|
|
142
|
+
},
|
|
143
|
+
subCommands: {
|
|
144
|
+
bug: bugCommand,
|
|
145
|
+
feature: featureCommand,
|
|
146
|
+
help: helpCommand,
|
|
147
|
+
diagnostics: diagnosticsCommand
|
|
148
|
+
},
|
|
149
|
+
async run({ cmd, rawArgs }) {
|
|
150
|
+
const firstArg = rawArgs?.find((a) => !a.startsWith("-"));
|
|
151
|
+
if (firstArg && cmd.subCommands && firstArg in cmd.subCommands) return;
|
|
152
|
+
await showUsage(cmd);
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
export {
|
|
156
|
+
issueCommand
|
|
157
|
+
};
|
|
158
|
+
//# sourceMappingURL=issue-IIWEDNFC.js.map
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
const _installed = Symbol.for('cleocode.cli.sqliteWarningFilter');
|
|
3
|
+
if (globalThis[_installed]) return;
|
|
4
|
+
globalThis[_installed] = true;
|
|
5
|
+
const _origEmitWarning = process.emitWarning;
|
|
6
|
+
process.emitWarning = function(warning, type, code, ctor) {
|
|
7
|
+
if (typeof warning === 'object' && warning.name === 'ExperimentalWarning' && typeof warning.message === 'string' && /SQLite is an experimental feature/i.test(warning.message)) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (typeof warning === 'string' && /SQLite is an experimental feature/i.test(warning)) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
return _origEmitWarning.call(process, warning, type, code, ctor);
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import {
|
|
17
|
+
defineCommand,
|
|
18
|
+
showUsage
|
|
19
|
+
} from "./chunk-PKKZPOOP.js";
|
|
20
|
+
import {
|
|
21
|
+
cliError,
|
|
22
|
+
cliOutput
|
|
23
|
+
} from "./chunk-3ZO3M37V.js";
|
|
24
|
+
import "./chunk-6JSJNYH2.js";
|
|
25
|
+
|
|
26
|
+
// packages/cleo/src/cli/commands/janitor.ts
|
|
27
|
+
import { runJanitor } from "@cleocode/core/gc/janitor.js";
|
|
28
|
+
import { resolveLegacyCleoDir } from "@cleocode/paths";
|
|
29
|
+
var runCommand = defineCommand({
|
|
30
|
+
meta: {
|
|
31
|
+
name: "run",
|
|
32
|
+
description: "Run the janitor sweep: reap orphan processes, stop dead scopes, reclaim stale locks, prune temp debris."
|
|
33
|
+
},
|
|
34
|
+
args: {
|
|
35
|
+
"cleo-dir": {
|
|
36
|
+
type: "string",
|
|
37
|
+
description: "Override .cleo/ directory path"
|
|
38
|
+
},
|
|
39
|
+
"dry-run": {
|
|
40
|
+
type: "boolean",
|
|
41
|
+
description: "Report planned actions without mutating anything",
|
|
42
|
+
default: false
|
|
43
|
+
},
|
|
44
|
+
"grace-min": {
|
|
45
|
+
type: "string",
|
|
46
|
+
description: "Minimum age (minutes) of an unregistered process before reap eligibility (default: 10)"
|
|
47
|
+
},
|
|
48
|
+
json: {
|
|
49
|
+
type: "boolean",
|
|
50
|
+
description: "Output result as JSON",
|
|
51
|
+
default: false
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
async run({ args }) {
|
|
55
|
+
const cleoDir = resolveLegacyCleoDir(args["cleo-dir"]);
|
|
56
|
+
const dryRun = args["dry-run"];
|
|
57
|
+
const graceMinRaw = args["grace-min"];
|
|
58
|
+
const gracePeriodMs = graceMinRaw !== void 0 ? Number(graceMinRaw) * 6e4 : void 0;
|
|
59
|
+
try {
|
|
60
|
+
const result = await runJanitor({ dryRun, cleoDir, gracePeriodMs });
|
|
61
|
+
const dryLabel = dryRun ? " (dry run)" : "";
|
|
62
|
+
const total = result.reaped + result.scopesStopped + result.locksReclaimed + result.semaphoreSlotsCleared + result.worktreesPruned + result.worktreesQuarantined + result.tmpRemoved + result.attachmentsRepaired + result.configsRepaired;
|
|
63
|
+
const humanMsg = `janitor${dryLabel} \u2014 ${total} action(s): ` + [
|
|
64
|
+
result.reaped > 0 && `${result.reaped} process(es) reaped`,
|
|
65
|
+
result.scopesStopped > 0 && `${result.scopesStopped} scope(s) stopped`,
|
|
66
|
+
result.locksReclaimed > 0 && `${result.locksReclaimed} lock(s) reclaimed`,
|
|
67
|
+
result.semaphoreSlotsCleared > 0 && `${result.semaphoreSlotsCleared} semaphore slot(s) cleared`,
|
|
68
|
+
result.worktreesPruned > 0 && `${result.worktreesPruned} worktree(s) pruned`,
|
|
69
|
+
result.worktreesQuarantined > 0 && `${result.worktreesQuarantined} quarantined`,
|
|
70
|
+
result.tmpRemoved > 0 && `${result.tmpRemoved} tmp dir(s) removed`,
|
|
71
|
+
result.attachmentsRepaired > 0 && `${result.attachmentsRepaired} attachment(s) repaired`,
|
|
72
|
+
result.configsRepaired > 0 && `${result.configsRepaired} config(s) repaired`,
|
|
73
|
+
result.errors > 0 && `${result.errors} error(s)`
|
|
74
|
+
].filter(Boolean).join(", ") || "nothing to do";
|
|
75
|
+
cliOutput(result, {
|
|
76
|
+
command: "janitor",
|
|
77
|
+
operation: "admin.janitor.run",
|
|
78
|
+
message: humanMsg
|
|
79
|
+
});
|
|
80
|
+
} catch (err) {
|
|
81
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
82
|
+
cliError(
|
|
83
|
+
`janitor run failed: ${message}`,
|
|
84
|
+
"E_INTERNAL",
|
|
85
|
+
{ name: "E_INTERNAL" },
|
|
86
|
+
{
|
|
87
|
+
operation: "admin.janitor.run"
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
process.exit(1);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
var janitorCommand = defineCommand({
|
|
95
|
+
meta: {
|
|
96
|
+
name: "janitor",
|
|
97
|
+
description: "Orphan process reaper and stale scope/lock/debris sweep (silent, idempotent)"
|
|
98
|
+
},
|
|
99
|
+
subCommands: {
|
|
100
|
+
run: runCommand
|
|
101
|
+
},
|
|
102
|
+
async run({ cmd, rawArgs }) {
|
|
103
|
+
const firstArg = rawArgs?.find((a) => !a.startsWith("-"));
|
|
104
|
+
if (firstArg && cmd.subCommands && firstArg in cmd.subCommands) return;
|
|
105
|
+
await showUsage(cmd);
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
export {
|
|
109
|
+
janitorCommand
|
|
110
|
+
};
|
|
111
|
+
//# sourceMappingURL=janitor-GPMC7VOR.js.map
|