@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,218 @@
|
|
|
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/dispatch/domains/admin/smoke-provider.ts
|
|
18
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
19
|
+
import { join } from "node:path";
|
|
20
|
+
import {
|
|
21
|
+
BRAIN_DB_FILENAME,
|
|
22
|
+
CLEO_DIR_NAME,
|
|
23
|
+
engineError,
|
|
24
|
+
engineSuccess
|
|
25
|
+
} from "@cleocode/runtime/gateway";
|
|
26
|
+
var VALID_PROVIDER_IDS = [
|
|
27
|
+
"claude-code",
|
|
28
|
+
"claude-sdk",
|
|
29
|
+
"codex",
|
|
30
|
+
"cursor",
|
|
31
|
+
"gemini-cli",
|
|
32
|
+
"kimi",
|
|
33
|
+
"openai-sdk",
|
|
34
|
+
"opencode",
|
|
35
|
+
"pi"
|
|
36
|
+
];
|
|
37
|
+
function isLocal(dbPath, projectCleoDir, cleoHome) {
|
|
38
|
+
return dbPath.startsWith(projectCleoDir) || dbPath.startsWith(cleoHome);
|
|
39
|
+
}
|
|
40
|
+
function classifySpawn(spawnSrcPath) {
|
|
41
|
+
if (!existsSync(spawnSrcPath)) return "no";
|
|
42
|
+
let src;
|
|
43
|
+
try {
|
|
44
|
+
src = readFileSync(spawnSrcPath, "utf-8");
|
|
45
|
+
} catch {
|
|
46
|
+
return "no";
|
|
47
|
+
}
|
|
48
|
+
const hasImpl = /\bspawn\b|\bexec\b|\bfork\b|\bchild_process\b|\bspawnSync\b/.test(src);
|
|
49
|
+
if (!hasImpl && /\bthrow\b/.test(src)) return "stub";
|
|
50
|
+
return "yes";
|
|
51
|
+
}
|
|
52
|
+
function countHookEvents(hooksSrcPath, canonicalEvents) {
|
|
53
|
+
if (!existsSync(hooksSrcPath)) return 0;
|
|
54
|
+
let src;
|
|
55
|
+
try {
|
|
56
|
+
src = readFileSync(hooksSrcPath, "utf-8");
|
|
57
|
+
} catch {
|
|
58
|
+
return 0;
|
|
59
|
+
}
|
|
60
|
+
let count = 0;
|
|
61
|
+
for (const event of canonicalEvents) {
|
|
62
|
+
if (src.includes(event)) count++;
|
|
63
|
+
}
|
|
64
|
+
return count;
|
|
65
|
+
}
|
|
66
|
+
function buildReport(partial) {
|
|
67
|
+
const sep = "\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550";
|
|
68
|
+
const lines = [
|
|
69
|
+
`CLEO Smoke Probe \u2014 provider: ${partial.providerId}`,
|
|
70
|
+
sep,
|
|
71
|
+
` Adapter loaded: ${partial.adapterLoaded ? "yes" : "no"}`
|
|
72
|
+
];
|
|
73
|
+
for (const db of partial.dbChecks) {
|
|
74
|
+
const label = ` ${db.name} local:`.padEnd(24);
|
|
75
|
+
lines.push(`${label}${db.local ? "yes" : "NO"} (${db.path})`);
|
|
76
|
+
}
|
|
77
|
+
lines.push(` Hooks declared: ${partial.hooksDeclared}`);
|
|
78
|
+
lines.push(` Spawn implementation: ${partial.spawnStatus}`);
|
|
79
|
+
lines.push(` Agent folder: ${partial.agentFolder ?? "(none \u2014 unknown provider)"}`);
|
|
80
|
+
lines.push("");
|
|
81
|
+
lines.push(
|
|
82
|
+
partial.passed ? "Result: PASS" : `Result: FAIL (${partial.failureReason ?? "invariant violated"})`
|
|
83
|
+
);
|
|
84
|
+
return lines.join("\n");
|
|
85
|
+
}
|
|
86
|
+
async function smokeProvider(providerId) {
|
|
87
|
+
if (!VALID_PROVIDER_IDS.includes(providerId)) {
|
|
88
|
+
return engineError(
|
|
89
|
+
"E_INVALID_INPUT",
|
|
90
|
+
`Unknown provider ID: "${providerId}". Valid IDs: ${VALID_PROVIDER_IDS.join(", ")}`
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
const coreInternal = await import("@cleocode/core/internal");
|
|
94
|
+
const projectRoot = (() => {
|
|
95
|
+
try {
|
|
96
|
+
return coreInternal.getProjectRoot();
|
|
97
|
+
} catch {
|
|
98
|
+
return process.env["CLEO_ROOT"] ?? process.cwd();
|
|
99
|
+
}
|
|
100
|
+
})();
|
|
101
|
+
const monorepoRoot = projectRoot;
|
|
102
|
+
const adapterDistPath = join(
|
|
103
|
+
monorepoRoot,
|
|
104
|
+
"packages",
|
|
105
|
+
"adapters",
|
|
106
|
+
"dist",
|
|
107
|
+
"providers",
|
|
108
|
+
providerId,
|
|
109
|
+
"index.js"
|
|
110
|
+
);
|
|
111
|
+
let adapterLoaded = false;
|
|
112
|
+
if (existsSync(adapterDistPath)) {
|
|
113
|
+
try {
|
|
114
|
+
const mod = await import(adapterDistPath);
|
|
115
|
+
const defaultExport = mod["default"];
|
|
116
|
+
if (typeof defaultExport === "function") {
|
|
117
|
+
const ctor = defaultExport;
|
|
118
|
+
try {
|
|
119
|
+
const instance = new ctor();
|
|
120
|
+
adapterLoaded = typeof instance.id === "string" && typeof instance.name === "string" && typeof instance.version === "string";
|
|
121
|
+
} catch {
|
|
122
|
+
adapterLoaded = existsSync(adapterDistPath);
|
|
123
|
+
}
|
|
124
|
+
} else {
|
|
125
|
+
adapterLoaded = typeof mod["id"] === "string" && typeof mod["name"] === "string";
|
|
126
|
+
}
|
|
127
|
+
} catch {
|
|
128
|
+
adapterLoaded = false;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
const cleoHome = coreInternal.getCleoHome();
|
|
132
|
+
const projectCleoDir = join(projectRoot, CLEO_DIR_NAME);
|
|
133
|
+
const taskDbPath = coreInternal.getTaskPath(projectRoot);
|
|
134
|
+
const brainPath = join(projectCleoDir, BRAIN_DB_FILENAME);
|
|
135
|
+
const conduitDbPath = coreInternal.getConduitDbPath(projectRoot);
|
|
136
|
+
const nexusDbPath = coreInternal.getNexusDbPath();
|
|
137
|
+
const dbChecks = [
|
|
138
|
+
{ name: "brain.db", local: isLocal(brainPath, projectCleoDir, cleoHome), path: brainPath },
|
|
139
|
+
{ name: "nexus.db", local: isLocal(nexusDbPath, projectCleoDir, cleoHome), path: nexusDbPath },
|
|
140
|
+
{
|
|
141
|
+
name: "conduit.db",
|
|
142
|
+
local: isLocal(conduitDbPath, projectCleoDir, cleoHome),
|
|
143
|
+
path: conduitDbPath
|
|
144
|
+
},
|
|
145
|
+
{ name: "tasks.db", local: isLocal(taskDbPath, projectCleoDir, cleoHome), path: taskDbPath }
|
|
146
|
+
];
|
|
147
|
+
let canonicalEvents = [];
|
|
148
|
+
try {
|
|
149
|
+
const caamp = await import("@cleocode/caamp");
|
|
150
|
+
canonicalEvents = caamp.CANONICAL_HOOK_EVENTS;
|
|
151
|
+
} catch {
|
|
152
|
+
canonicalEvents = [];
|
|
153
|
+
}
|
|
154
|
+
const hooksSrcPath = join(
|
|
155
|
+
monorepoRoot,
|
|
156
|
+
"packages",
|
|
157
|
+
"adapters",
|
|
158
|
+
"src",
|
|
159
|
+
"providers",
|
|
160
|
+
providerId,
|
|
161
|
+
"hooks.ts"
|
|
162
|
+
);
|
|
163
|
+
const hooksDeclared = countHookEvents(hooksSrcPath, canonicalEvents);
|
|
164
|
+
const spawnSrcPath = join(
|
|
165
|
+
monorepoRoot,
|
|
166
|
+
"packages",
|
|
167
|
+
"adapters",
|
|
168
|
+
"src",
|
|
169
|
+
"providers",
|
|
170
|
+
providerId,
|
|
171
|
+
"spawn.ts"
|
|
172
|
+
);
|
|
173
|
+
const spawnStatus = classifySpawn(spawnSrcPath);
|
|
174
|
+
let agentFolder = null;
|
|
175
|
+
try {
|
|
176
|
+
const { getProviderAgentFolder } = await import("@cleocode/caamp");
|
|
177
|
+
agentFolder = getProviderAgentFolder(providerId);
|
|
178
|
+
} catch {
|
|
179
|
+
agentFolder = null;
|
|
180
|
+
}
|
|
181
|
+
const dbsLocal = dbChecks.every((c) => c.local);
|
|
182
|
+
const failReasons = [];
|
|
183
|
+
if (!adapterLoaded) failReasons.push("adapter did not load or missing id/name/version");
|
|
184
|
+
if (!dbsLocal) {
|
|
185
|
+
const nonLocal = dbChecks.filter((c) => !c.local).map((c) => c.name).join(", ");
|
|
186
|
+
failReasons.push(`non-local DB paths: ${nonLocal}`);
|
|
187
|
+
}
|
|
188
|
+
if (agentFolder === null) failReasons.push("agent folder unresolvable (unknown provider)");
|
|
189
|
+
const passed = failReasons.length === 0;
|
|
190
|
+
const partial = {
|
|
191
|
+
providerId,
|
|
192
|
+
adapterLoaded,
|
|
193
|
+
dbChecks,
|
|
194
|
+
hooksDeclared,
|
|
195
|
+
spawnStatus,
|
|
196
|
+
agentFolder,
|
|
197
|
+
passed,
|
|
198
|
+
...passed ? {} : { failureReason: failReasons.join("; ") }
|
|
199
|
+
};
|
|
200
|
+
const report = buildReport(partial);
|
|
201
|
+
const result = { ...partial, report };
|
|
202
|
+
if (!passed) {
|
|
203
|
+
return {
|
|
204
|
+
success: false,
|
|
205
|
+
error: {
|
|
206
|
+
code: "E_SMOKE_PROVIDER_FAIL",
|
|
207
|
+
message: `ADR-049 probe FAILED for provider "${providerId}": ${partial.failureReason}`,
|
|
208
|
+
exitCode: 1,
|
|
209
|
+
details: { result }
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
return engineSuccess(result);
|
|
214
|
+
}
|
|
215
|
+
export {
|
|
216
|
+
smokeProvider
|
|
217
|
+
};
|
|
218
|
+
//# sourceMappingURL=smoke-provider-SKUFMZXU.js.map
|
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
dispatchRaw,
|
|
23
|
+
handleRawError
|
|
24
|
+
} from "./chunk-3IOQVUO7.js";
|
|
25
|
+
import "./chunk-AWCQH2W5.js";
|
|
26
|
+
import "./chunk-OGV57L4J.js";
|
|
27
|
+
import "./chunk-ZBISIPCK.js";
|
|
28
|
+
import "./chunk-3ZO3M37V.js";
|
|
29
|
+
import "./chunk-6JSJNYH2.js";
|
|
30
|
+
import "./chunk-QFFQSKRC.js";
|
|
31
|
+
|
|
32
|
+
// packages/cleo/src/cli/commands/snapshot.ts
|
|
33
|
+
var exportCommand = defineCommand({
|
|
34
|
+
meta: { name: "export", description: "Export current task state to a portable JSON snapshot" },
|
|
35
|
+
args: {
|
|
36
|
+
output: {
|
|
37
|
+
type: "string",
|
|
38
|
+
description: "Output file path (default: .cleo/snapshots/snapshot-<timestamp>.json)",
|
|
39
|
+
alias: "o"
|
|
40
|
+
},
|
|
41
|
+
stdout: {
|
|
42
|
+
type: "boolean",
|
|
43
|
+
description: "Write snapshot to stdout instead of file"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
async run({ args }) {
|
|
47
|
+
if (args.stdout) {
|
|
48
|
+
const response = await dispatchRaw("query", "admin", "export", { scope: "snapshot" });
|
|
49
|
+
handleRawError(response, { command: "snapshot", operation: "admin.export" });
|
|
50
|
+
const data = response.data;
|
|
51
|
+
if (data?.outputPath) {
|
|
52
|
+
const { readFile } = await import("node:fs/promises");
|
|
53
|
+
const content = await readFile(data.outputPath, "utf-8");
|
|
54
|
+
process.stdout.write(content);
|
|
55
|
+
if (!content.endsWith("\n")) process.stdout.write("\n");
|
|
56
|
+
}
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
await dispatchFromCli(
|
|
60
|
+
"query",
|
|
61
|
+
"admin",
|
|
62
|
+
"export",
|
|
63
|
+
{
|
|
64
|
+
scope: "snapshot",
|
|
65
|
+
output: args.output
|
|
66
|
+
},
|
|
67
|
+
{ command: "snapshot" }
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
var importCommand = defineCommand({
|
|
72
|
+
meta: {
|
|
73
|
+
name: "import",
|
|
74
|
+
description: "Import a task state snapshot into the local database"
|
|
75
|
+
},
|
|
76
|
+
args: {
|
|
77
|
+
file: {
|
|
78
|
+
type: "positional",
|
|
79
|
+
description: "Snapshot file to import",
|
|
80
|
+
required: true
|
|
81
|
+
},
|
|
82
|
+
"dry-run": {
|
|
83
|
+
type: "boolean",
|
|
84
|
+
description: "Preview import without making changes"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
async run({ args }) {
|
|
88
|
+
await dispatchFromCli(
|
|
89
|
+
"mutate",
|
|
90
|
+
"admin",
|
|
91
|
+
"import",
|
|
92
|
+
{
|
|
93
|
+
scope: "snapshot",
|
|
94
|
+
file: args.file,
|
|
95
|
+
dryRun: args["dry-run"]
|
|
96
|
+
},
|
|
97
|
+
{ command: "snapshot" }
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
var snapshotCommand = defineCommand({
|
|
102
|
+
meta: {
|
|
103
|
+
name: "snapshot",
|
|
104
|
+
description: "Export/import task state snapshots for multi-contributor sharing"
|
|
105
|
+
},
|
|
106
|
+
subCommands: {
|
|
107
|
+
export: exportCommand,
|
|
108
|
+
import: importCommand
|
|
109
|
+
},
|
|
110
|
+
async run({ cmd, rawArgs }) {
|
|
111
|
+
const firstArg = rawArgs?.find((a) => !a.startsWith("-"));
|
|
112
|
+
if (firstArg && cmd.subCommands && firstArg in cmd.subCommands) return;
|
|
113
|
+
await showUsage(cmd);
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
export {
|
|
117
|
+
snapshotCommand
|
|
118
|
+
};
|
|
119
|
+
//# sourceMappingURL=snapshot-GUWMURCM.js.map
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
DEFAULT_POLICY_RULES,
|
|
18
|
+
E_APPROVAL_ALREADY_DECIDED,
|
|
19
|
+
E_APPROVAL_NOT_FOUND,
|
|
20
|
+
E_PLAYBOOK_RESUME_BLOCKED,
|
|
21
|
+
E_PLAYBOOK_RUNTIME_INVALID,
|
|
22
|
+
PLAYBOOKS_PACKAGE_VERSION,
|
|
23
|
+
PlaybookParseError,
|
|
24
|
+
approveGate,
|
|
25
|
+
createApprovalGate,
|
|
26
|
+
createPlaybookApproval,
|
|
27
|
+
createPlaybookRun,
|
|
28
|
+
deletePlaybookRun,
|
|
29
|
+
evaluatePolicy,
|
|
30
|
+
executePlaybook,
|
|
31
|
+
generateResumeToken,
|
|
32
|
+
getPendingApprovals,
|
|
33
|
+
getPlaybookApprovalByToken,
|
|
34
|
+
getPlaybookRun,
|
|
35
|
+
getPlaybookSecret,
|
|
36
|
+
listPlaybookApprovals,
|
|
37
|
+
listPlaybookRuns,
|
|
38
|
+
migratePlaybook,
|
|
39
|
+
migratePlaybookFile,
|
|
40
|
+
parsePlaybook,
|
|
41
|
+
rejectGate,
|
|
42
|
+
resolveStepBindings,
|
|
43
|
+
resumePlaybook,
|
|
44
|
+
updatePlaybookApproval,
|
|
45
|
+
updatePlaybookRun,
|
|
46
|
+
validatePlaybookCompliance
|
|
47
|
+
} from "./chunk-QFFQSKRC.js";
|
|
48
|
+
export {
|
|
49
|
+
DEFAULT_POLICY_RULES,
|
|
50
|
+
E_APPROVAL_ALREADY_DECIDED,
|
|
51
|
+
E_APPROVAL_NOT_FOUND,
|
|
52
|
+
E_PLAYBOOK_RESUME_BLOCKED,
|
|
53
|
+
E_PLAYBOOK_RUNTIME_INVALID,
|
|
54
|
+
PLAYBOOKS_PACKAGE_VERSION,
|
|
55
|
+
PlaybookParseError,
|
|
56
|
+
approveGate,
|
|
57
|
+
createApprovalGate,
|
|
58
|
+
createPlaybookApproval,
|
|
59
|
+
createPlaybookRun,
|
|
60
|
+
deletePlaybookRun,
|
|
61
|
+
evaluatePolicy,
|
|
62
|
+
executePlaybook,
|
|
63
|
+
generateResumeToken,
|
|
64
|
+
getPendingApprovals,
|
|
65
|
+
getPlaybookApprovalByToken,
|
|
66
|
+
getPlaybookRun,
|
|
67
|
+
getPlaybookSecret,
|
|
68
|
+
listPlaybookApprovals,
|
|
69
|
+
listPlaybookRuns,
|
|
70
|
+
migratePlaybook,
|
|
71
|
+
migratePlaybookFile,
|
|
72
|
+
parsePlaybook,
|
|
73
|
+
rejectGate,
|
|
74
|
+
resolveStepBindings,
|
|
75
|
+
resumePlaybook,
|
|
76
|
+
updatePlaybookApproval,
|
|
77
|
+
updatePlaybookRun,
|
|
78
|
+
validatePlaybookCompliance
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=src-66GAKPXR.js.map
|
|
@@ -0,0 +1,67 @@
|
|
|
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/start.ts
|
|
30
|
+
var startCommand = defineCommand({
|
|
31
|
+
meta: {
|
|
32
|
+
name: "start",
|
|
33
|
+
description: "Start working on a task (sets it as the current task and takes your session's claim lease)"
|
|
34
|
+
},
|
|
35
|
+
args: {
|
|
36
|
+
taskId: {
|
|
37
|
+
type: "positional",
|
|
38
|
+
description: "ID of the task to start",
|
|
39
|
+
required: true
|
|
40
|
+
},
|
|
41
|
+
"take-over": {
|
|
42
|
+
type: "boolean",
|
|
43
|
+
description: "Take over another session's EXPIRED claim lease on the task (audited)"
|
|
44
|
+
},
|
|
45
|
+
"force-claim": {
|
|
46
|
+
type: "boolean",
|
|
47
|
+
description: "Take over another session's LIVE claim lease on the task (audited)"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
async run({ args }) {
|
|
51
|
+
await dispatchFromCli(
|
|
52
|
+
"mutate",
|
|
53
|
+
"tasks",
|
|
54
|
+
"start",
|
|
55
|
+
{
|
|
56
|
+
taskId: args.taskId,
|
|
57
|
+
...args["take-over"] === true ? { takeOver: true } : {},
|
|
58
|
+
...args["force-claim"] === true ? { forceClaim: true } : {}
|
|
59
|
+
},
|
|
60
|
+
{ command: "start" }
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
export {
|
|
65
|
+
startCommand
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=start-QFG56RGN.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
|
+
isSubCommandDispatch
|
|
18
|
+
} from "./chunk-YY66LFZF.js";
|
|
19
|
+
import {
|
|
20
|
+
defineCommand
|
|
21
|
+
} from "./chunk-PKKZPOOP.js";
|
|
22
|
+
import {
|
|
23
|
+
dispatchFromCli
|
|
24
|
+
} from "./chunk-3IOQVUO7.js";
|
|
25
|
+
import "./chunk-AWCQH2W5.js";
|
|
26
|
+
import "./chunk-OGV57L4J.js";
|
|
27
|
+
import "./chunk-ZBISIPCK.js";
|
|
28
|
+
import "./chunk-3ZO3M37V.js";
|
|
29
|
+
import "./chunk-6JSJNYH2.js";
|
|
30
|
+
import "./chunk-QFFQSKRC.js";
|
|
31
|
+
|
|
32
|
+
// packages/cleo/src/cli/commands/stats.ts
|
|
33
|
+
var complianceCommand = defineCommand({
|
|
34
|
+
meta: {
|
|
35
|
+
name: "compliance",
|
|
36
|
+
description: "Agent workflow compliance dashboard (WF-001 through WF-005)"
|
|
37
|
+
},
|
|
38
|
+
args: {
|
|
39
|
+
since: {
|
|
40
|
+
type: "string",
|
|
41
|
+
description: "Filter to tasks/events from this date (ISO 8601)"
|
|
42
|
+
},
|
|
43
|
+
json: {
|
|
44
|
+
type: "boolean",
|
|
45
|
+
description: "Output raw JSON instead of formatted dashboard"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
async run({ args }) {
|
|
49
|
+
await dispatchFromCli(
|
|
50
|
+
"query",
|
|
51
|
+
"check",
|
|
52
|
+
"workflow.compliance",
|
|
53
|
+
{
|
|
54
|
+
since: args.since,
|
|
55
|
+
json: args.json
|
|
56
|
+
},
|
|
57
|
+
{ command: "stats compliance", operation: "check.workflow.compliance" }
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
var statsCommand = defineCommand({
|
|
62
|
+
meta: { name: "stats", description: "Project statistics (counts, completion rates, velocity)" },
|
|
63
|
+
args: {
|
|
64
|
+
period: {
|
|
65
|
+
type: "string",
|
|
66
|
+
description: "Analysis period: today/week/month/quarter/year or days",
|
|
67
|
+
alias: "p",
|
|
68
|
+
default: "30"
|
|
69
|
+
},
|
|
70
|
+
verbose: {
|
|
71
|
+
type: "boolean",
|
|
72
|
+
description: "Show detailed breakdowns per category",
|
|
73
|
+
alias: "v"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
subCommands: {
|
|
77
|
+
compliance: complianceCommand
|
|
78
|
+
},
|
|
79
|
+
async run({ args, cmd, rawArgs }) {
|
|
80
|
+
if (isSubCommandDispatch(rawArgs, cmd.subCommands)) return;
|
|
81
|
+
await dispatchFromCli(
|
|
82
|
+
"query",
|
|
83
|
+
"admin",
|
|
84
|
+
"stats",
|
|
85
|
+
{
|
|
86
|
+
period: args.period ?? 30
|
|
87
|
+
},
|
|
88
|
+
{ command: "stats", operation: "admin.stats" }
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
export {
|
|
93
|
+
statsCommand
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=stats-GW55P7RR.js.map
|