@cleocode/cleo 2026.10.2 → 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 -94607
- 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/{Buaay_Q8.js → Btgeq_wq.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{BJp57kf2.js → CgBjxmu6.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{CLP4JZvZ.js → DgEKqO6r.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/t81h7afa.js +1 -0
- package/studio-dist/client/_app/immutable/entry/{app.CczVILch.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.Zy2IsLEl.js → 0.nTXyRfc-.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{1.DJN1QI3l.js → 1.4zrWeHtl.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{15.B4rwqbHV.js → 15.D9mk4JyY.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{16.jn-5BG_L.js → 16._-wt-sQf.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{17.DnWGC4t9.js → 17.CUu6LQDj.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{18.0zddLZOY.js → 18.Dz4QRTkX.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{20.DEKHq9Tc.js → 20.CJ2_EB0U.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{24.CQB9KP-p.js → 24.Igj2FS7k.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{25.BaqToZD-.js → 25.BnATjVGN.js} +2 -2
- package/studio-dist/client/_app/immutable/nodes/{26.BiE1i4iE.js → 26.6iPyjT44.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{3.BObAOu_-.js → 3.AA5GwNgP.js} +1 -1
- package/studio-dist/client/_app/version.json +1 -1
- package/studio-dist/server/chunks/{0-BmUoS2yd.js → 0-DGmsoBYm.js} +3 -3
- package/studio-dist/server/chunks/1-8PfxPvlK.js +9 -0
- package/studio-dist/server/chunks/{15-Dt4kqUxW.js → 15-Bg6YTndh.js} +3 -3
- package/studio-dist/server/chunks/{16-kgTLJvbO.js → 16-BObLwgyD.js} +3 -3
- package/studio-dist/server/chunks/{17-mRYB5141.js → 17-BNXGyAHX.js} +3 -3
- package/studio-dist/server/chunks/{18-BjZ325q5.js → 18-UqQFRIID.js} +3 -3
- package/studio-dist/server/chunks/{20-DQ2Vrujq.js → 20-CMn8a_yP.js} +3 -3
- package/studio-dist/server/chunks/{24-DAeuAfXN.js → 24-BuOTDzib.js} +3 -3
- package/studio-dist/server/chunks/{25-DGCNmzAS.js → 25-CIMSmjVx.js} +4 -4
- package/studio-dist/server/chunks/{26-CiN6bbmR.js → 26-DWGObn2T.js} +3 -3
- package/studio-dist/server/chunks/{3-BS2FXYjP.js → 3-CyiffdJZ.js} +3 -3
- package/studio-dist/server/chunks/{_layout.svelte-DJ_UWmGp.js → _layout.svelte-DYtClaIk.js} +4 -4
- package/studio-dist/server/chunks/{_page.svelte-WR6jUiQE.js → _page.svelte-1h9E6s_f.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-BUq8_eQH.js → _page.svelte-BNNF62Nm.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-CRnYa4cW.js → _page.svelte-BT1EUadj.js} +5 -5
- package/studio-dist/server/chunks/{_page.svelte-Dk0znswQ.js → _page.svelte-Bip079LT.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-CcP_KW3Y.js → _page.svelte-CEATWp_5.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-Ca7x-ZvH.js → _page.svelte-CV3xiD1y.js} +4 -4
- package/studio-dist/server/chunks/{_page.svelte-Cfv9tDBA.js → _page.svelte-Cv_KVJDV.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-J4HjPhfO.js → _page.svelte-DSSy6LuK.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-D8dLEr7O.js → _page.svelte-TF795TAS.js} +3 -3
- package/studio-dist/server/chunks/{_server.ts-Bih2-_5O.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-Cl295FWH.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-ajn1HNOb.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-D9MtKHIF.js → internal-CTULuLPB.js} +2 -2
- package/studio-dist/server/chunks/{stores-BlknvZ80.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/C3l-lTkq.js +0 -1
- package/studio-dist/client/_app/immutable/entry/start.D7gHmBNS.js +0 -1
- package/studio-dist/server/chunks/1-CTjj2MYz.js +0 -9
|
@@ -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
|
+
} from "./chunk-3ZO3M37V.js";
|
|
23
|
+
|
|
24
|
+
// packages/cleo/src/cli/commands/doctor-skill-fixtures.ts
|
|
25
|
+
import {
|
|
26
|
+
auditSkillFixtures,
|
|
27
|
+
repairSkillFixtures,
|
|
28
|
+
restoreSkillFixtures
|
|
29
|
+
} from "@cleocode/core/system/skill-fixtures.js";
|
|
30
|
+
var doctorSkillFixturesCommand = defineCommand({
|
|
31
|
+
meta: {
|
|
32
|
+
name: "skill-fixtures",
|
|
33
|
+
description: "Find caamp test fixtures left in the real skills root (UUID-named and known fixture dirs whose content matches the tests). Read-only; --repair quarantines them with a receipt (--dry-run to preview)."
|
|
34
|
+
},
|
|
35
|
+
args: {
|
|
36
|
+
repair: {
|
|
37
|
+
type: "boolean",
|
|
38
|
+
description: "Move every fixture into <cleoHome>/audit/skill-fixture-quarantine/<receiptId>/ and append a receipt. Unclassified entries are reported, never moved."
|
|
39
|
+
},
|
|
40
|
+
restore: {
|
|
41
|
+
type: "string",
|
|
42
|
+
description: "Move the entries quarantined by this repair receipt id back to their original paths (never over an occupied path). Appends a restored receipt."
|
|
43
|
+
},
|
|
44
|
+
"dry-run": {
|
|
45
|
+
type: "boolean",
|
|
46
|
+
description: "With --repair or --restore: report the receipt without touching disk"
|
|
47
|
+
},
|
|
48
|
+
json: { type: "boolean", description: "Output as JSON" },
|
|
49
|
+
human: { type: "boolean", description: "Force human-readable output" },
|
|
50
|
+
quiet: { type: "boolean", description: "Suppress non-essential output" }
|
|
51
|
+
},
|
|
52
|
+
async run({ args }) {
|
|
53
|
+
const dryRun = args["dry-run"] === true;
|
|
54
|
+
if (typeof args.restore === "string" && args.restore.length > 0) {
|
|
55
|
+
try {
|
|
56
|
+
const receipt = restoreSkillFixtures(args.restore, { dryRun });
|
|
57
|
+
cliOutput(
|
|
58
|
+
{ restore: receipt, audit: auditSkillFixtures() },
|
|
59
|
+
{ command: "doctor", operation: "doctor.skill-fixtures.run" }
|
|
60
|
+
);
|
|
61
|
+
if (receipt.skipped.length > 0 && !dryRun) process.exitCode = 1;
|
|
62
|
+
} catch (err) {
|
|
63
|
+
cliError(
|
|
64
|
+
err instanceof Error ? err.message : String(err),
|
|
65
|
+
1,
|
|
66
|
+
{
|
|
67
|
+
name: "E_SKILL_FIXTURE_RESTORE_FAILED",
|
|
68
|
+
fix: "Pass a receipt id from <cleoHome>/audit/skill-fixtures.jsonl whose repair finished and has not been restored. Entries restored before a failure are listed in that file; the rest stay in quarantine."
|
|
69
|
+
},
|
|
70
|
+
{ operation: "doctor.skill-fixtures.run" }
|
|
71
|
+
);
|
|
72
|
+
process.exitCode = 1;
|
|
73
|
+
}
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
let result = null;
|
|
77
|
+
if (args.repair === true) {
|
|
78
|
+
try {
|
|
79
|
+
result = repairSkillFixtures({ dryRun });
|
|
80
|
+
} catch (err) {
|
|
81
|
+
cliError(
|
|
82
|
+
err instanceof Error ? err.message : String(err),
|
|
83
|
+
1,
|
|
84
|
+
{
|
|
85
|
+
name: "E_SKILL_FIXTURE_REPAIR_FAILED",
|
|
86
|
+
fix: "Entries moved before the failure are in the quarantine dir named by the intent receipt in <cleoHome>/audit/skill-fixtures.jsonl; the rest are untouched. Re-run `cleo doctor skill-fixtures --repair`."
|
|
87
|
+
},
|
|
88
|
+
{ operation: "doctor.skill-fixtures.run" }
|
|
89
|
+
);
|
|
90
|
+
process.exitCode = 1;
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
const audit = result?.audit ?? auditSkillFixtures();
|
|
95
|
+
cliOutput(
|
|
96
|
+
{ ...audit, receipt: result?.receipt ?? null },
|
|
97
|
+
{ command: "doctor", operation: "doctor.skill-fixtures.run" }
|
|
98
|
+
);
|
|
99
|
+
if (!audit.healthy && !dryRun && (process.exitCode ?? 0) === 0) {
|
|
100
|
+
process.exitCode = 1;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
export {
|
|
106
|
+
doctorSkillFixturesCommand
|
|
107
|
+
};
|
|
108
|
+
//# sourceMappingURL=chunk-YUZJI67I.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
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/subcommand-guard.ts
|
|
18
|
+
function isSubCommandDispatch(rawArgs, subCommands) {
|
|
19
|
+
if (!rawArgs || !subCommands) return false;
|
|
20
|
+
const firstArg = rawArgs.find((a) => !a.startsWith("-"));
|
|
21
|
+
if (!firstArg) return false;
|
|
22
|
+
if (typeof subCommands !== "object") return false;
|
|
23
|
+
return firstArg in subCommands;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
isSubCommandDispatch
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=chunk-YY66LFZF.js.map
|
|
@@ -0,0 +1,78 @@
|
|
|
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/describe-context.ts
|
|
18
|
+
var describeRequested = false;
|
|
19
|
+
function setDescribeMode(requested) {
|
|
20
|
+
describeRequested = requested;
|
|
21
|
+
}
|
|
22
|
+
function isDescribeMode() {
|
|
23
|
+
return describeRequested;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// packages/cleo/src/cli/idempotency-context.ts
|
|
27
|
+
var currentIdempotencyKey;
|
|
28
|
+
function setIdempotencyKeyContext(key) {
|
|
29
|
+
currentIdempotencyKey = key;
|
|
30
|
+
}
|
|
31
|
+
function getIdempotencyKeyContext() {
|
|
32
|
+
return currentIdempotencyKey;
|
|
33
|
+
}
|
|
34
|
+
function extractIdempotencyKeyArg(argv) {
|
|
35
|
+
const sanitized = [];
|
|
36
|
+
let idempotencyKey;
|
|
37
|
+
for (let i = 0; i < argv.length; i++) {
|
|
38
|
+
const token = argv[i];
|
|
39
|
+
if (token === "--") {
|
|
40
|
+
sanitized.push(...argv.slice(i));
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
if (token === "--idempotency-key") {
|
|
44
|
+
const next = argv[i + 1];
|
|
45
|
+
if (next !== void 0 && !next.startsWith("--")) {
|
|
46
|
+
idempotencyKey = next;
|
|
47
|
+
i++;
|
|
48
|
+
}
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
if (token?.startsWith("--idempotency-key=")) {
|
|
52
|
+
idempotencyKey = token.slice("--idempotency-key=".length);
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
55
|
+
if (token !== void 0) sanitized.push(token);
|
|
56
|
+
}
|
|
57
|
+
return { argv: sanitized, idempotencyKey };
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// packages/cleo/src/cli/projection-context.ts
|
|
61
|
+
var currentOptOut = false;
|
|
62
|
+
function setProjectionOptOut(optOut) {
|
|
63
|
+
currentOptOut = optOut;
|
|
64
|
+
}
|
|
65
|
+
function getProjectionOptOut() {
|
|
66
|
+
return currentOptOut;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export {
|
|
70
|
+
setDescribeMode,
|
|
71
|
+
isDescribeMode,
|
|
72
|
+
setIdempotencyKeyContext,
|
|
73
|
+
getIdempotencyKeyContext,
|
|
74
|
+
extractIdempotencyKeyArg,
|
|
75
|
+
setProjectionOptOut,
|
|
76
|
+
getProjectionOptOut
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=chunk-ZBISIPCK.js.map
|
|
@@ -0,0 +1,77 @@
|
|
|
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-ac-bindings.ts
|
|
25
|
+
import { ExitCode } from "@cleocode/contracts";
|
|
26
|
+
import { scanOrphanAcBindings } from "@cleocode/core/doctor/orphan-ac-bindings.js";
|
|
27
|
+
import { getProjectRoot } from "@cleocode/core/paths.js";
|
|
28
|
+
var doctorAcBindingsCommand = defineCommand({
|
|
29
|
+
meta: {
|
|
30
|
+
name: "ac-bindings",
|
|
31
|
+
description: "Report evidence bindings whose acceptance criterion no longer exists (dangling tasks_evidence_ac_bindings rows). Read-only unless --fix is given; --fix removes them, recording each removed row in the task audit log (ac.bindings.pruned)."
|
|
32
|
+
},
|
|
33
|
+
args: {
|
|
34
|
+
fix: {
|
|
35
|
+
type: "boolean",
|
|
36
|
+
description: "Delete the orphan bindings in one transaction, after writing each row to the task audit log so binding history (alias-drift detection) is kept."
|
|
37
|
+
},
|
|
38
|
+
limit: {
|
|
39
|
+
type: "string",
|
|
40
|
+
description: "Maximum orphan rows echoed in the report (default 50; counts are exact)"
|
|
41
|
+
},
|
|
42
|
+
json: { type: "boolean", description: "Output as JSON" },
|
|
43
|
+
human: { type: "boolean", description: "Force human-readable output" },
|
|
44
|
+
quiet: { type: "boolean", description: "Suppress non-essential output" }
|
|
45
|
+
},
|
|
46
|
+
async run({ args }) {
|
|
47
|
+
let limit;
|
|
48
|
+
if (typeof args.limit === "string") {
|
|
49
|
+
if (!/^\d+$/.test(args.limit.trim())) {
|
|
50
|
+
cliError(
|
|
51
|
+
`--limit must be a non-negative integer (got '${args.limit}')`,
|
|
52
|
+
ExitCode.VALIDATION_ERROR,
|
|
53
|
+
{ name: "E_VALIDATION" }
|
|
54
|
+
);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
limit = Number.parseInt(args.limit, 10);
|
|
58
|
+
}
|
|
59
|
+
const report = await scanOrphanAcBindings(getProjectRoot(), {
|
|
60
|
+
fix: args.fix === true,
|
|
61
|
+
limit
|
|
62
|
+
});
|
|
63
|
+
cliOutput(report, {
|
|
64
|
+
command: "doctor",
|
|
65
|
+
operation: "doctor.ac-bindings.run"
|
|
66
|
+
});
|
|
67
|
+
const unresolved = report.orphanCount > report.removed;
|
|
68
|
+
if (unresolved && (process.exitCode === void 0 || process.exitCode === 0)) {
|
|
69
|
+
process.exitCode = 1;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export {
|
|
75
|
+
doctorAcBindingsCommand
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=chunk-ZZTHTMQP.js.map
|
|
@@ -0,0 +1,96 @@
|
|
|
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/claim.ts
|
|
30
|
+
var claimCommand = defineCommand({
|
|
31
|
+
meta: {
|
|
32
|
+
name: "claim",
|
|
33
|
+
description: "Take, renew (--renew) or override (--take-over expired, --force-claim live) your session's leased claim on a task"
|
|
34
|
+
},
|
|
35
|
+
args: {
|
|
36
|
+
taskId: { type: "positional", description: "Task ID to claim", required: true },
|
|
37
|
+
agent: {
|
|
38
|
+
type: "string",
|
|
39
|
+
description: "Agent ID recorded with the lease (default: the session's agent / CLEO_AGENT_ID)"
|
|
40
|
+
},
|
|
41
|
+
renew: { type: "boolean", description: "Renew your own lease on the task" },
|
|
42
|
+
"take-over": {
|
|
43
|
+
type: "boolean",
|
|
44
|
+
description: "Take over another session's EXPIRED lease (audited)"
|
|
45
|
+
},
|
|
46
|
+
"force-claim": {
|
|
47
|
+
type: "boolean",
|
|
48
|
+
description: "Take over another session's LIVE lease (audited)"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
async run({ args }) {
|
|
52
|
+
await dispatchFromCli(
|
|
53
|
+
"mutate",
|
|
54
|
+
"tasks",
|
|
55
|
+
"claim",
|
|
56
|
+
{
|
|
57
|
+
taskId: args.taskId,
|
|
58
|
+
...typeof args.agent === "string" && args.agent ? { agentId: args.agent } : {},
|
|
59
|
+
...args.renew === true ? { renew: true } : {},
|
|
60
|
+
...args["take-over"] === true ? { takeOver: true } : {},
|
|
61
|
+
...args["force-claim"] === true ? { forceClaim: true } : {}
|
|
62
|
+
},
|
|
63
|
+
{ command: "claim", operation: "tasks.claim" }
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
var unclaimCommand = defineCommand({
|
|
68
|
+
meta: {
|
|
69
|
+
name: "unclaim",
|
|
70
|
+
description: "Release your session's claim lease on a task (--force-claim: another session's)"
|
|
71
|
+
},
|
|
72
|
+
args: {
|
|
73
|
+
taskId: { type: "positional", description: "Task ID to unclaim", required: true },
|
|
74
|
+
"force-claim": {
|
|
75
|
+
type: "boolean",
|
|
76
|
+
description: "Release another session's lease (audited)"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
async run({ args }) {
|
|
80
|
+
await dispatchFromCli(
|
|
81
|
+
"mutate",
|
|
82
|
+
"tasks",
|
|
83
|
+
"unclaim",
|
|
84
|
+
{
|
|
85
|
+
taskId: args.taskId,
|
|
86
|
+
...args["force-claim"] === true ? { forceClaim: true } : {}
|
|
87
|
+
},
|
|
88
|
+
{ command: "unclaim", operation: "tasks.unclaim" }
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
export {
|
|
93
|
+
claimCommand,
|
|
94
|
+
unclaimCommand
|
|
95
|
+
};
|
|
96
|
+
//# sourceMappingURL=claim-KPENYHIQ.js.map
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
const _installed = Symbol.for('cleocode.cli.sqliteWarningFilter');
|
|
3
|
+
if (globalThis[_installed]) return;
|
|
4
|
+
globalThis[_installed] = true;
|
|
5
|
+
const _origEmitWarning = process.emitWarning;
|
|
6
|
+
process.emitWarning = function(warning, type, code, ctor) {
|
|
7
|
+
if (typeof warning === 'object' && warning.name === 'ExperimentalWarning' && typeof warning.message === 'string' && /SQLite is an experimental feature/i.test(warning.message)) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (typeof warning === 'string' && /SQLite is an experimental feature/i.test(warning)) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
return _origEmitWarning.call(process, warning, type, code, ctor);
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import "./chunk-C3B7C43W.js";
|
|
17
|
+
import {
|
|
18
|
+
defineCommand
|
|
19
|
+
} from "./chunk-PKKZPOOP.js";
|
|
20
|
+
import {
|
|
21
|
+
cliOutput
|
|
22
|
+
} from "./chunk-3ZO3M37V.js";
|
|
23
|
+
import "./chunk-6JSJNYH2.js";
|
|
24
|
+
|
|
25
|
+
// packages/cleo/src/cli/commands/classify.ts
|
|
26
|
+
import { classifyReadinessWithDecision, classifyTask, getProjectRoot } from "@cleocode/core";
|
|
27
|
+
var classifyCommand = defineCommand({
|
|
28
|
+
meta: {
|
|
29
|
+
name: "classify",
|
|
30
|
+
description: "Classify a task: readiness verdict (proceed|grill) + persona routing (agent, confidence)"
|
|
31
|
+
},
|
|
32
|
+
args: {
|
|
33
|
+
taskId: {
|
|
34
|
+
type: "positional",
|
|
35
|
+
description: "Task ID to classify (e.g. T1234)",
|
|
36
|
+
required: true
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
async run({ args }) {
|
|
40
|
+
const taskId = args.taskId;
|
|
41
|
+
const projectRoot = getProjectRoot();
|
|
42
|
+
const { getDb } = await import("@cleocode/core/store/sqlite.js");
|
|
43
|
+
const { tasks } = await import("@cleocode/core/store/tasks-schema");
|
|
44
|
+
const { eq } = await import("drizzle-orm");
|
|
45
|
+
const db = await getDb(projectRoot);
|
|
46
|
+
const row = await db.select().from(tasks).where(eq(tasks.id, taskId)).get();
|
|
47
|
+
if (!row) {
|
|
48
|
+
cliOutput(
|
|
49
|
+
{
|
|
50
|
+
success: false,
|
|
51
|
+
error: { code: "E_NOT_FOUND", message: `Task ${taskId} not found` }
|
|
52
|
+
},
|
|
53
|
+
{ command: "classify", operation: "classify.show" }
|
|
54
|
+
);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const labels = (() => {
|
|
58
|
+
try {
|
|
59
|
+
const parsed = JSON.parse(row.labelsJson ?? "[]");
|
|
60
|
+
return Array.isArray(parsed) ? parsed : [];
|
|
61
|
+
} catch {
|
|
62
|
+
return [];
|
|
63
|
+
}
|
|
64
|
+
})();
|
|
65
|
+
const acceptance = (() => {
|
|
66
|
+
try {
|
|
67
|
+
const parsed = JSON.parse(row.acceptanceJson ?? "[]");
|
|
68
|
+
return Array.isArray(parsed) ? parsed : [];
|
|
69
|
+
} catch {
|
|
70
|
+
return [];
|
|
71
|
+
}
|
|
72
|
+
})();
|
|
73
|
+
const task = {
|
|
74
|
+
id: row.id,
|
|
75
|
+
title: row.title,
|
|
76
|
+
description: row.description ?? "",
|
|
77
|
+
status: row.status,
|
|
78
|
+
priority: row.priority ?? "medium",
|
|
79
|
+
type: row.type ?? void 0,
|
|
80
|
+
kind: row.kind ?? void 0,
|
|
81
|
+
size: row.size ?? void 0,
|
|
82
|
+
pipelineStage: row.pipelineStage ?? void 0,
|
|
83
|
+
blockedBy: row.blockedBy ?? void 0,
|
|
84
|
+
phase: row.phase ?? void 0,
|
|
85
|
+
scope: row.scope ?? void 0,
|
|
86
|
+
labels,
|
|
87
|
+
acceptance,
|
|
88
|
+
createdAt: row.createdAt
|
|
89
|
+
};
|
|
90
|
+
const readiness = await classifyReadinessWithDecision(task, {}, { projectRoot });
|
|
91
|
+
const routing = classifyTask(task);
|
|
92
|
+
cliOutput(
|
|
93
|
+
{
|
|
94
|
+
taskId: row.id,
|
|
95
|
+
title: row.title,
|
|
96
|
+
readiness: {
|
|
97
|
+
verdict: readiness.verdict,
|
|
98
|
+
reason: readiness.reason,
|
|
99
|
+
triggers: readiness.triggers
|
|
100
|
+
},
|
|
101
|
+
routing: {
|
|
102
|
+
agentId: routing.agentId,
|
|
103
|
+
role: routing.role,
|
|
104
|
+
confidence: routing.confidence,
|
|
105
|
+
reason: routing.reason,
|
|
106
|
+
usedFallback: routing.usedFallback,
|
|
107
|
+
warning: routing.warning
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{ command: "classify", operation: "classify.show" }
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
export {
|
|
115
|
+
classifyCommand
|
|
116
|
+
};
|
|
117
|
+
//# sourceMappingURL=classify-DRVMCFQU.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
|
+
createCliDispatcher,
|
|
18
|
+
createCliGatewayHandler,
|
|
19
|
+
dispatchFromCli,
|
|
20
|
+
dispatchRaw,
|
|
21
|
+
getCliDispatcher,
|
|
22
|
+
handleRawError,
|
|
23
|
+
heartbeatCliSession,
|
|
24
|
+
lookupCliSession,
|
|
25
|
+
maybeEmitDescribe,
|
|
26
|
+
resetCliDispatcher,
|
|
27
|
+
warnUnboundMutation
|
|
28
|
+
} from "./chunk-3IOQVUO7.js";
|
|
29
|
+
import "./chunk-AWCQH2W5.js";
|
|
30
|
+
import "./chunk-OGV57L4J.js";
|
|
31
|
+
import "./chunk-ZBISIPCK.js";
|
|
32
|
+
import "./chunk-3ZO3M37V.js";
|
|
33
|
+
import "./chunk-6JSJNYH2.js";
|
|
34
|
+
import "./chunk-QFFQSKRC.js";
|
|
35
|
+
export {
|
|
36
|
+
createCliDispatcher,
|
|
37
|
+
createCliGatewayHandler,
|
|
38
|
+
dispatchFromCli,
|
|
39
|
+
dispatchRaw,
|
|
40
|
+
getCliDispatcher,
|
|
41
|
+
handleRawError,
|
|
42
|
+
heartbeatCliSession,
|
|
43
|
+
lookupCliSession,
|
|
44
|
+
maybeEmitDescribe,
|
|
45
|
+
resetCliDispatcher,
|
|
46
|
+
warnUnboundMutation
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=cli-T3CR7J57.js.map
|