@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,84 @@
|
|
|
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/agent-outputs.ts
|
|
27
|
+
import { ExitCode } from "@cleocode/contracts";
|
|
28
|
+
import { searchDocs } from "@cleocode/core/internal";
|
|
29
|
+
var findCommand = defineCommand({
|
|
30
|
+
meta: {
|
|
31
|
+
name: "find",
|
|
32
|
+
description: "Search agent output documents by query (routed via DocsAccessor.searchDocs)"
|
|
33
|
+
},
|
|
34
|
+
args: {
|
|
35
|
+
query: {
|
|
36
|
+
type: "positional",
|
|
37
|
+
description: "Free-text search query to match against agent output documents",
|
|
38
|
+
required: true
|
|
39
|
+
},
|
|
40
|
+
limit: {
|
|
41
|
+
type: "string",
|
|
42
|
+
description: "Maximum number of results to return (default: 10)",
|
|
43
|
+
default: "10"
|
|
44
|
+
},
|
|
45
|
+
json: {
|
|
46
|
+
type: "boolean",
|
|
47
|
+
description: "Emit raw JSON envelope instead of human-readable table",
|
|
48
|
+
default: false
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
async run({ args }) {
|
|
52
|
+
try {
|
|
53
|
+
const limit = parseInt(String(args.limit), 10);
|
|
54
|
+
const query = String(args.query);
|
|
55
|
+
const result = await searchDocs(query, { limit: Number.isNaN(limit) ? 10 : limit });
|
|
56
|
+
cliOutput(result, {
|
|
57
|
+
command: "agent-outputs find",
|
|
58
|
+
operation: "docs.agent-outputs.find"
|
|
59
|
+
});
|
|
60
|
+
} catch (err) {
|
|
61
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
62
|
+
cliError(`agent-outputs find failed: ${message}`, ExitCode.GENERAL_ERROR);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
var agentOutputsCommand = defineCommand({
|
|
67
|
+
meta: {
|
|
68
|
+
name: "agent-outputs",
|
|
69
|
+
description: "Agent output document management \u2014 find/search via DocsAccessor (find subcommand)"
|
|
70
|
+
},
|
|
71
|
+
subCommands: {
|
|
72
|
+
find: findCommand
|
|
73
|
+
},
|
|
74
|
+
run({ rawArgs }) {
|
|
75
|
+
const sub = rawArgs?.find((a) => !a.startsWith("-"));
|
|
76
|
+
if (!sub) {
|
|
77
|
+
showUsage(agentOutputsCommand);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
export {
|
|
82
|
+
agentOutputsCommand
|
|
83
|
+
};
|
|
84
|
+
//# sourceMappingURL=agent-outputs-BJIYLVTU.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
const _installed = Symbol.for('cleocode.cli.sqliteWarningFilter');
|
|
3
|
+
if (globalThis[_installed]) return;
|
|
4
|
+
globalThis[_installed] = true;
|
|
5
|
+
const _origEmitWarning = process.emitWarning;
|
|
6
|
+
process.emitWarning = function(warning, type, code, ctor) {
|
|
7
|
+
if (typeof warning === 'object' && warning.name === 'ExperimentalWarning' && typeof warning.message === 'string' && /SQLite is an experimental feature/i.test(warning.message)) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (typeof warning === 'string' && /SQLite is an experimental feature/i.test(warning)) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
return _origEmitWarning.call(process, warning, type, code, ctor);
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import {
|
|
17
|
+
defineCommand
|
|
18
|
+
} from "./chunk-PKKZPOOP.js";
|
|
19
|
+
import {
|
|
20
|
+
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/analyze.ts
|
|
30
|
+
var analyzeCommand = defineCommand({
|
|
31
|
+
meta: {
|
|
32
|
+
name: "analyze",
|
|
33
|
+
description: "Task triage with leverage scoring and bottleneck detection"
|
|
34
|
+
},
|
|
35
|
+
args: {
|
|
36
|
+
"auto-start": {
|
|
37
|
+
type: "boolean",
|
|
38
|
+
description: "Automatically start working on recommended task"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
async run() {
|
|
42
|
+
await dispatchFromCli("query", "tasks", "analyze", {}, { command: "analyze" });
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
analyzeCommand
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=analyze-PGQZWGOC.js.map
|
|
@@ -0,0 +1,64 @@
|
|
|
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/archive.ts
|
|
30
|
+
var archiveCommand = defineCommand({
|
|
31
|
+
meta: { name: "archive", description: "Archive completed tasks" },
|
|
32
|
+
args: {
|
|
33
|
+
before: {
|
|
34
|
+
type: "string",
|
|
35
|
+
description: "Archive tasks completed before date (ISO format)"
|
|
36
|
+
},
|
|
37
|
+
tasks: {
|
|
38
|
+
type: "string",
|
|
39
|
+
description: "Specific task IDs to archive (comma-separated)"
|
|
40
|
+
},
|
|
41
|
+
cancelled: {
|
|
42
|
+
type: "boolean",
|
|
43
|
+
description: "Include cancelled tasks (use --no-cancelled to exclude)",
|
|
44
|
+
default: true
|
|
45
|
+
},
|
|
46
|
+
"dry-run": {
|
|
47
|
+
type: "boolean",
|
|
48
|
+
description: "Show what would be archived without making changes",
|
|
49
|
+
default: false
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
async run({ args }) {
|
|
53
|
+
const params = {};
|
|
54
|
+
if (args.before !== void 0) params["before"] = args.before;
|
|
55
|
+
if (args.tasks) params["taskIds"] = args.tasks.split(",").map((s) => s.trim());
|
|
56
|
+
if (args.cancelled === false) params["includeCancelled"] = false;
|
|
57
|
+
if (args["dry-run"]) params["dryRun"] = args["dry-run"];
|
|
58
|
+
await dispatchFromCli("mutate", "tasks", "archive", params, { command: "archive" });
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
export {
|
|
62
|
+
archiveCommand
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=archive-5LZPF7C3.js.map
|
|
@@ -0,0 +1,100 @@
|
|
|
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/archive-stats.ts
|
|
30
|
+
import { analyzeArchive } from "@cleocode/core/internal";
|
|
31
|
+
var archiveStatsCommand = defineCommand({
|
|
32
|
+
meta: {
|
|
33
|
+
name: "archive-stats",
|
|
34
|
+
description: "Generate analytics and insights from archived tasks"
|
|
35
|
+
},
|
|
36
|
+
args: {
|
|
37
|
+
summary: {
|
|
38
|
+
type: "boolean",
|
|
39
|
+
description: "Overview statistics (default)",
|
|
40
|
+
default: false
|
|
41
|
+
},
|
|
42
|
+
"by-phase": {
|
|
43
|
+
type: "boolean",
|
|
44
|
+
description: "Breakdown by project phase",
|
|
45
|
+
default: false
|
|
46
|
+
},
|
|
47
|
+
"by-label": {
|
|
48
|
+
type: "boolean",
|
|
49
|
+
description: "Breakdown by label",
|
|
50
|
+
default: false
|
|
51
|
+
},
|
|
52
|
+
"by-priority": {
|
|
53
|
+
type: "boolean",
|
|
54
|
+
description: "Breakdown by priority",
|
|
55
|
+
default: false
|
|
56
|
+
},
|
|
57
|
+
"cycle-times": {
|
|
58
|
+
type: "boolean",
|
|
59
|
+
description: "Analyze task completion cycle times",
|
|
60
|
+
default: false
|
|
61
|
+
},
|
|
62
|
+
trends: {
|
|
63
|
+
type: "boolean",
|
|
64
|
+
description: "Show archiving trends over time",
|
|
65
|
+
default: false
|
|
66
|
+
},
|
|
67
|
+
since: {
|
|
68
|
+
type: "string",
|
|
69
|
+
description: "Only include tasks archived since DATE (YYYY-MM-DD)"
|
|
70
|
+
},
|
|
71
|
+
until: {
|
|
72
|
+
type: "string",
|
|
73
|
+
description: "Only include tasks archived until DATE (YYYY-MM-DD)"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
async run({ args }) {
|
|
77
|
+
let report = "summary";
|
|
78
|
+
if (args["by-phase"]) report = "by-phase";
|
|
79
|
+
else if (args["by-label"]) report = "by-label";
|
|
80
|
+
else if (args["by-priority"]) report = "by-priority";
|
|
81
|
+
else if (args["cycle-times"]) report = "cycle-times";
|
|
82
|
+
else if (args.trends) report = "trends";
|
|
83
|
+
await dispatchFromCli(
|
|
84
|
+
"query",
|
|
85
|
+
"check",
|
|
86
|
+
"archive.stats",
|
|
87
|
+
{
|
|
88
|
+
report,
|
|
89
|
+
since: args.since,
|
|
90
|
+
until: args.until
|
|
91
|
+
},
|
|
92
|
+
{ command: "archive-stats" }
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
export {
|
|
97
|
+
archiveStatsCommand,
|
|
98
|
+
analyzeArchive as getArchiveStats
|
|
99
|
+
};
|
|
100
|
+
//# sourceMappingURL=archive-stats-U6CYC6JM.js.map
|
|
@@ -0,0 +1,167 @@
|
|
|
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
|
+
showUsage
|
|
20
|
+
} from "./chunk-PKKZPOOP.js";
|
|
21
|
+
import {
|
|
22
|
+
dispatchFromCli,
|
|
23
|
+
dispatchRaw,
|
|
24
|
+
handleRawError
|
|
25
|
+
} from "./chunk-3IOQVUO7.js";
|
|
26
|
+
import "./chunk-AWCQH2W5.js";
|
|
27
|
+
import "./chunk-OGV57L4J.js";
|
|
28
|
+
import "./chunk-ZBISIPCK.js";
|
|
29
|
+
import {
|
|
30
|
+
cliError,
|
|
31
|
+
cliOutput
|
|
32
|
+
} from "./chunk-3ZO3M37V.js";
|
|
33
|
+
import "./chunk-6JSJNYH2.js";
|
|
34
|
+
import "./chunk-QFFQSKRC.js";
|
|
35
|
+
|
|
36
|
+
// packages/cleo/src/cli/commands/attention.ts
|
|
37
|
+
import { ExitCode } from "@cleocode/contracts";
|
|
38
|
+
import { CleoError } from "@cleocode/core";
|
|
39
|
+
function parseTags(rawTag) {
|
|
40
|
+
if (!rawTag) return void 0;
|
|
41
|
+
const tags = rawTag.split(",").map((t) => t.trim()).filter(Boolean);
|
|
42
|
+
return tags.length > 0 ? [...new Set(tags)] : void 0;
|
|
43
|
+
}
|
|
44
|
+
var addCommand = defineCommand({
|
|
45
|
+
meta: { name: "add", description: "Record a scope-keyed working-memory jot" },
|
|
46
|
+
args: {
|
|
47
|
+
content: {
|
|
48
|
+
type: "positional",
|
|
49
|
+
description: "The jot content",
|
|
50
|
+
required: true
|
|
51
|
+
},
|
|
52
|
+
tag: {
|
|
53
|
+
type: "string",
|
|
54
|
+
description: 'Comma-separated tags (e.g. "bug,wal")'
|
|
55
|
+
},
|
|
56
|
+
scope: {
|
|
57
|
+
type: "string",
|
|
58
|
+
description: "Escalate scope: agent|task|epic|saga|session|global (default: narrowest)"
|
|
59
|
+
},
|
|
60
|
+
ttl: {
|
|
61
|
+
type: "string",
|
|
62
|
+
description: "Time-to-live in seconds (optional)"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
async run({ args }) {
|
|
66
|
+
try {
|
|
67
|
+
const ttlRaw = args.ttl;
|
|
68
|
+
const ttlSeconds = ttlRaw ? Number.parseInt(ttlRaw, 10) : void 0;
|
|
69
|
+
await dispatchFromCli(
|
|
70
|
+
"mutate",
|
|
71
|
+
"attention",
|
|
72
|
+
"add",
|
|
73
|
+
{
|
|
74
|
+
content: args.content,
|
|
75
|
+
tags: parseTags(args.tag),
|
|
76
|
+
scope: args.scope,
|
|
77
|
+
...ttlSeconds !== void 0 && !Number.isNaN(ttlSeconds) ? { ttlSeconds } : {}
|
|
78
|
+
},
|
|
79
|
+
{ command: "attention", operation: "attention.add" }
|
|
80
|
+
);
|
|
81
|
+
} catch (err) {
|
|
82
|
+
if (err instanceof CleoError) {
|
|
83
|
+
cliError(err.message, err.code, { name: "CleoError", fix: err.fix });
|
|
84
|
+
process.exit(err.code);
|
|
85
|
+
}
|
|
86
|
+
throw err;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
var showCommand = defineCommand({
|
|
91
|
+
meta: { name: "show", description: "Show open working-memory jots for the resolved scope" },
|
|
92
|
+
args: {
|
|
93
|
+
scope: {
|
|
94
|
+
type: "string",
|
|
95
|
+
description: "Restrict to one scope: agent|task|epic|saga|session|global"
|
|
96
|
+
},
|
|
97
|
+
tag: {
|
|
98
|
+
type: "string",
|
|
99
|
+
description: "Filter by tags (contains-ALL, comma-separated)"
|
|
100
|
+
},
|
|
101
|
+
all: {
|
|
102
|
+
type: "boolean",
|
|
103
|
+
description: "Include non-open (consolidated/discarded) items too"
|
|
104
|
+
},
|
|
105
|
+
limit: {
|
|
106
|
+
type: "string",
|
|
107
|
+
description: "Max results",
|
|
108
|
+
default: "50"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
async run({ args }) {
|
|
112
|
+
try {
|
|
113
|
+
const response = await dispatchRaw("query", "attention", "show", {
|
|
114
|
+
scope: args.scope,
|
|
115
|
+
tags: parseTags(args.tag),
|
|
116
|
+
includeAll: args.all === true,
|
|
117
|
+
limit: Number.parseInt(args.limit, 10)
|
|
118
|
+
});
|
|
119
|
+
if (!response.success) {
|
|
120
|
+
handleRawError(response, { command: "attention show", operation: "attention.show" });
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
const data = response.data;
|
|
124
|
+
if (!data?.items || data.items.length === 0) {
|
|
125
|
+
cliOutput(
|
|
126
|
+
{ items: [], total: 0 },
|
|
127
|
+
{
|
|
128
|
+
command: "attention show",
|
|
129
|
+
message: "No open attention items",
|
|
130
|
+
operation: "attention.show"
|
|
131
|
+
}
|
|
132
|
+
);
|
|
133
|
+
process.exit(ExitCode.NO_DATA);
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
cliOutput(data, { command: "attention show", operation: "attention.show" });
|
|
137
|
+
} catch (err) {
|
|
138
|
+
if (err instanceof CleoError) {
|
|
139
|
+
cliError(err.message, err.code, { name: "CleoError", fix: err.fix });
|
|
140
|
+
process.exit(err.code);
|
|
141
|
+
}
|
|
142
|
+
throw err;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
var attentionCommand = defineCommand({
|
|
147
|
+
meta: {
|
|
148
|
+
name: "attention",
|
|
149
|
+
description: "Tier-2 scope-keyed working memory \u2014 quick decaying jots (alias: jot)"
|
|
150
|
+
},
|
|
151
|
+
subCommands: {
|
|
152
|
+
add: addCommand,
|
|
153
|
+
jot: addCommand,
|
|
154
|
+
show: showCommand,
|
|
155
|
+
list: showCommand,
|
|
156
|
+
ls: showCommand
|
|
157
|
+
},
|
|
158
|
+
async run({ cmd, rawArgs }) {
|
|
159
|
+
const firstArg = rawArgs?.find((a) => !a.startsWith("-"));
|
|
160
|
+
if (firstArg && cmd.subCommands && firstArg in cmd.subCommands) return;
|
|
161
|
+
await showUsage(cmd);
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
export {
|
|
165
|
+
attentionCommand
|
|
166
|
+
};
|
|
167
|
+
//# sourceMappingURL=attention-SOURWCNI.js.map
|
|
@@ -0,0 +1,122 @@
|
|
|
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
|
+
isSubCommandDispatch
|
|
19
|
+
} from "./chunk-YY66LFZF.js";
|
|
20
|
+
import {
|
|
21
|
+
defineCommand,
|
|
22
|
+
showUsage
|
|
23
|
+
} from "./chunk-PKKZPOOP.js";
|
|
24
|
+
import {
|
|
25
|
+
cliError,
|
|
26
|
+
cliOutput
|
|
27
|
+
} from "./chunk-3ZO3M37V.js";
|
|
28
|
+
import "./chunk-6JSJNYH2.js";
|
|
29
|
+
|
|
30
|
+
// packages/cleo/src/cli/commands/audit.ts
|
|
31
|
+
import { reconstructLineage } from "@cleocode/core/audit/reconstruct";
|
|
32
|
+
import { getProjectRoot } from "@cleocode/core/project-scope";
|
|
33
|
+
import { renderAuditReconstruct } from "@cleocode/core/render/orchestration/audit-reconstruct";
|
|
34
|
+
var reconstructCommand = defineCommand({
|
|
35
|
+
meta: {
|
|
36
|
+
name: "reconstruct",
|
|
37
|
+
description: "Reconstruct git-backed lineage (commits + release tags) for a task"
|
|
38
|
+
},
|
|
39
|
+
args: {
|
|
40
|
+
taskId: {
|
|
41
|
+
type: "positional",
|
|
42
|
+
description: "Task ID to reconstruct (e.g. T991)",
|
|
43
|
+
required: true
|
|
44
|
+
},
|
|
45
|
+
json: {
|
|
46
|
+
type: "boolean",
|
|
47
|
+
description: "Emit raw JSON output instead of formatted summary",
|
|
48
|
+
default: false
|
|
49
|
+
},
|
|
50
|
+
"budget-ms": {
|
|
51
|
+
type: "string",
|
|
52
|
+
description: "Shared bounded assessment deadline in milliseconds",
|
|
53
|
+
default: "2000"
|
|
54
|
+
},
|
|
55
|
+
"max-output-bytes": {
|
|
56
|
+
type: "string",
|
|
57
|
+
description: "Combined Git capture byte ceiling",
|
|
58
|
+
default: "8388608"
|
|
59
|
+
},
|
|
60
|
+
"repo-root": {
|
|
61
|
+
type: "string",
|
|
62
|
+
description: "Path to the git repository root (defaults to current project root)"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
async run({ args }) {
|
|
66
|
+
const taskId = args.taskId.toUpperCase();
|
|
67
|
+
const budgetMs = Number(args["budget-ms"]);
|
|
68
|
+
const maxOutputBytes = Number(args["max-output-bytes"]);
|
|
69
|
+
const deadlineAt = Date.now() + budgetMs;
|
|
70
|
+
if (!/^T\d+$/.test(taskId) || !/^\d+$/.test(args["budget-ms"]) || !/^\d+$/.test(args["max-output-bytes"]) || !Number.isSafeInteger(budgetMs) || !Number.isSafeInteger(maxOutputBytes) || !Number.isSafeInteger(deadlineAt)) {
|
|
71
|
+
cliError(
|
|
72
|
+
"Task ID must be T followed by digits; budget-ms and max-output-bytes must be nonnegative safe integers.",
|
|
73
|
+
1,
|
|
74
|
+
{ name: "E_VALIDATION" },
|
|
75
|
+
{ operation: "audit.reconstruct" }
|
|
76
|
+
);
|
|
77
|
+
process.exitCode = 1;
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const repoRoot = args["repo-root"] ?? getProjectRoot(process.cwd()) ?? process.cwd();
|
|
81
|
+
const result = await reconstructLineage(taskId, repoRoot, {
|
|
82
|
+
execution: { deadlineAt },
|
|
83
|
+
maxOutputBytes
|
|
84
|
+
});
|
|
85
|
+
if (result.assessment?.coverage !== "current") {
|
|
86
|
+
process.exitCode = 1;
|
|
87
|
+
cliError(
|
|
88
|
+
renderAuditReconstruct({ ...result }, false),
|
|
89
|
+
1,
|
|
90
|
+
{
|
|
91
|
+
name: "E_AUDIT_INCOMPLETE",
|
|
92
|
+
details: result,
|
|
93
|
+
fix: "Inspect assessment diagnostics; request an explicit larger budget or restore missing evidence before retrying."
|
|
94
|
+
},
|
|
95
|
+
{ operation: "audit.reconstruct" }
|
|
96
|
+
);
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
cliOutput(result, {
|
|
100
|
+
command: "audit-reconstruct",
|
|
101
|
+
operation: "audit.reconstruct",
|
|
102
|
+
message: `Lineage for ${result.taskId}`
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
var auditCommand = defineCommand({
|
|
107
|
+
meta: {
|
|
108
|
+
name: "audit",
|
|
109
|
+
description: "Git-backed audit tooling (lineage reconstruction, integrity checks). Independent re-verification of task completion claims is handled by `cleo verify <taskId> --explain` which re-validates ADR-051 evidence atoms."
|
|
110
|
+
},
|
|
111
|
+
subCommands: {
|
|
112
|
+
reconstruct: reconstructCommand
|
|
113
|
+
},
|
|
114
|
+
async run({ cmd, rawArgs }) {
|
|
115
|
+
if (isSubCommandDispatch(rawArgs, cmd.subCommands)) return;
|
|
116
|
+
await showUsage(cmd);
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
export {
|
|
120
|
+
auditCommand
|
|
121
|
+
};
|
|
122
|
+
//# sourceMappingURL=audit-FO2Y4LH2.js.map
|