@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,178 @@
|
|
|
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
|
+
humanLine
|
|
22
|
+
} from "./chunk-3ZO3M37V.js";
|
|
23
|
+
import "./chunk-6JSJNYH2.js";
|
|
24
|
+
|
|
25
|
+
// packages/cleo/src/cli/commands/code.ts
|
|
26
|
+
async function requireTreeSitter() {
|
|
27
|
+
const { isTreeSitterAvailable } = await import("@cleocode/core/internal");
|
|
28
|
+
if (!isTreeSitterAvailable()) {
|
|
29
|
+
cliError(
|
|
30
|
+
"tree-sitter native module not available.\n\nThis usually means the native addon failed to build during install.\n\ntree-sitter and grammar packages are bundled dependencies that should\ninstall automatically. If this persists, run: cleo doctor",
|
|
31
|
+
7,
|
|
32
|
+
{
|
|
33
|
+
name: "E_SERVICE_UNAVAILABLE",
|
|
34
|
+
fix: "pnpm install (or npm install -g @cleocode/cleo)"
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
process.exit(7);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
var codeCommand = defineCommand({
|
|
41
|
+
meta: { name: "code", description: "Code analysis via tree-sitter AST" },
|
|
42
|
+
subCommands: {
|
|
43
|
+
/**
|
|
44
|
+
* Outline subcommand — extract file structure via tree-sitter.
|
|
45
|
+
*
|
|
46
|
+
* Shows all top-level symbols and nested methods/properties with signatures only
|
|
47
|
+
* (bodies collapsed). Provides ~1-2K token overview vs ~12K for full file read.
|
|
48
|
+
*
|
|
49
|
+
* Usage:
|
|
50
|
+
* cleo code outline packages/core/src/store/sqlite.ts
|
|
51
|
+
*
|
|
52
|
+
* @task T154, T157
|
|
53
|
+
*/
|
|
54
|
+
outline: defineCommand({
|
|
55
|
+
meta: { name: "outline", description: "Show file structural skeleton (signatures only)" },
|
|
56
|
+
args: {
|
|
57
|
+
file: { type: "positional", description: "Source file path", required: true }
|
|
58
|
+
},
|
|
59
|
+
async run({ args }) {
|
|
60
|
+
await requireTreeSitter();
|
|
61
|
+
const { smartOutline } = await import("@cleocode/core/internal");
|
|
62
|
+
const { join } = await import("node:path");
|
|
63
|
+
const root = process.cwd();
|
|
64
|
+
const absPath = args.file.startsWith("/") ? args.file : join(root, args.file);
|
|
65
|
+
const result = smartOutline(absPath, root);
|
|
66
|
+
if (result.errors.length > 0 && result.symbols.length === 0) {
|
|
67
|
+
cliError(result.errors.join(", "), 1, { name: "E_OUTLINE_FAILED" });
|
|
68
|
+
process.exit(1);
|
|
69
|
+
}
|
|
70
|
+
humanLine(`${result.filePath} (${result.language}, ~${result.estimatedTokens} tokens)
|
|
71
|
+
`);
|
|
72
|
+
for (const sym of result.symbols) {
|
|
73
|
+
const prefix = sym.exported ? "export " : "";
|
|
74
|
+
humanLine(`${prefix}${sym.kind} ${sym.name} [${sym.startLine}-${sym.endLine}]`);
|
|
75
|
+
if (sym.children.length > 0) {
|
|
76
|
+
for (const child of sym.children) {
|
|
77
|
+
humanLine(` ${child.kind} ${child.name} [${child.startLine}-${child.endLine}]`);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}),
|
|
83
|
+
/**
|
|
84
|
+
* Search subcommand — find symbols across codebase with relevance scoring.
|
|
85
|
+
*
|
|
86
|
+
* Walks directory tree, parses files by language, and matches symbols against
|
|
87
|
+
* query string with relevance scoring (exact > substring > fuzzy > path).
|
|
88
|
+
*
|
|
89
|
+
* Usage:
|
|
90
|
+
* cleo code search parseFile --lang typescript --max 10
|
|
91
|
+
* cleo code search smartOutline --path "src/**"
|
|
92
|
+
*
|
|
93
|
+
* @task T152, T157
|
|
94
|
+
*/
|
|
95
|
+
search: defineCommand({
|
|
96
|
+
meta: { name: "search", description: "Search for symbols across codebase" },
|
|
97
|
+
args: {
|
|
98
|
+
query: { type: "positional", description: "Search query", required: true },
|
|
99
|
+
lang: { type: "string", description: "Filter by language (e.g. typescript, python)" },
|
|
100
|
+
max: { type: "string", description: "Max results (default: 20)" },
|
|
101
|
+
path: { type: "string", description: "File pattern filter (e.g. src/**)" }
|
|
102
|
+
},
|
|
103
|
+
async run({ args }) {
|
|
104
|
+
await requireTreeSitter();
|
|
105
|
+
const { smartSearch } = await import("@cleocode/core/internal");
|
|
106
|
+
const root = process.cwd();
|
|
107
|
+
const opts = {
|
|
108
|
+
rootDir: root,
|
|
109
|
+
maxResults: args.max ? Number.parseInt(args.max, 10) : 20,
|
|
110
|
+
filePattern: args.path
|
|
111
|
+
};
|
|
112
|
+
if (args.lang) {
|
|
113
|
+
opts.language = args.lang;
|
|
114
|
+
}
|
|
115
|
+
const results = smartSearch(args.query, opts);
|
|
116
|
+
if (results.length === 0) {
|
|
117
|
+
humanLine(`No symbols found matching "${args.query}"`);
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
humanLine(`Found ${results.length} symbols:
|
|
121
|
+
`);
|
|
122
|
+
for (const r of results) {
|
|
123
|
+
humanLine(
|
|
124
|
+
` ${r.symbol.kind.padEnd(12)} ${r.symbol.name.padEnd(30)} ${r.symbol.filePath}:${r.symbol.startLine} (${r.matchType}, score: ${r.score})`
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}),
|
|
129
|
+
/**
|
|
130
|
+
* Unfold subcommand — extract complete symbol source code.
|
|
131
|
+
*
|
|
132
|
+
* Takes file path + symbol name, finds the symbol via tree-sitter AST,
|
|
133
|
+
* and extracts complete source including JSDoc/docstrings, decorators,
|
|
134
|
+
* and full body. AST boundaries guarantee no truncation.
|
|
135
|
+
*
|
|
136
|
+
* Usage:
|
|
137
|
+
* cleo code unfold packages/core/src/code/outline.ts smartOutline
|
|
138
|
+
* cleo code unfold packages/cleo/src/cli/commands/code.ts codeCommand
|
|
139
|
+
*
|
|
140
|
+
* @task T153, T157
|
|
141
|
+
*/
|
|
142
|
+
unfold: defineCommand({
|
|
143
|
+
meta: { name: "unfold", description: "Extract complete symbol source" },
|
|
144
|
+
args: {
|
|
145
|
+
file: { type: "positional", description: "Source file path", required: true },
|
|
146
|
+
symbol: {
|
|
147
|
+
type: "positional",
|
|
148
|
+
description: "Symbol name (e.g. parseFile or Class.method)",
|
|
149
|
+
required: true
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
async run({ args }) {
|
|
153
|
+
await requireTreeSitter();
|
|
154
|
+
const { smartUnfold } = await import("@cleocode/core/internal");
|
|
155
|
+
const { join } = await import("node:path");
|
|
156
|
+
const root = process.cwd();
|
|
157
|
+
const absPath = args.file.startsWith("/") ? args.file : join(root, args.file);
|
|
158
|
+
const result = smartUnfold(absPath, args.symbol, root);
|
|
159
|
+
if (!result.found) {
|
|
160
|
+
const errs = result.errors.length > 0 ? `: ${result.errors.join(", ")}` : "";
|
|
161
|
+
cliError(`Symbol "${args.symbol}" not found in ${args.file}${errs}`, 1, {
|
|
162
|
+
name: "E_NOT_FOUND"
|
|
163
|
+
});
|
|
164
|
+
process.exit(1);
|
|
165
|
+
}
|
|
166
|
+
humanLine(
|
|
167
|
+
`// ${result.filePath}:${result.startLine}-${result.endLine} (~${result.estimatedTokens} tokens)
|
|
168
|
+
`
|
|
169
|
+
);
|
|
170
|
+
humanLine(result.source);
|
|
171
|
+
}
|
|
172
|
+
})
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
export {
|
|
176
|
+
codeCommand
|
|
177
|
+
};
|
|
178
|
+
//# sourceMappingURL=code-Z5CTMVTD.js.map
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
completeCommand,
|
|
18
|
+
completeCommandArgs,
|
|
19
|
+
completeDispatchParams
|
|
20
|
+
} from "./chunk-EOPQFCSR.js";
|
|
21
|
+
import "./chunk-PKKZPOOP.js";
|
|
22
|
+
import "./chunk-3IOQVUO7.js";
|
|
23
|
+
import "./chunk-AWCQH2W5.js";
|
|
24
|
+
import "./chunk-OGV57L4J.js";
|
|
25
|
+
import "./chunk-ZBISIPCK.js";
|
|
26
|
+
import "./chunk-3ZO3M37V.js";
|
|
27
|
+
import "./chunk-6JSJNYH2.js";
|
|
28
|
+
import "./chunk-QFFQSKRC.js";
|
|
29
|
+
export {
|
|
30
|
+
completeCommand,
|
|
31
|
+
completeCommandArgs,
|
|
32
|
+
completeDispatchParams
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=complete-UBOCOBRB.js.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
const _installed = Symbol.for('cleocode.cli.sqliteWarningFilter');
|
|
3
|
+
if (globalThis[_installed]) return;
|
|
4
|
+
globalThis[_installed] = true;
|
|
5
|
+
const _origEmitWarning = process.emitWarning;
|
|
6
|
+
process.emitWarning = function(warning, type, code, ctor) {
|
|
7
|
+
if (typeof warning === 'object' && warning.name === 'ExperimentalWarning' && typeof warning.message === 'string' && /SQLite is an experimental feature/i.test(warning.message)) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (typeof warning === 'string' && /SQLite is an experimental feature/i.test(warning)) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
return _origEmitWarning.call(process, warning, type, code, ctor);
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import {
|
|
17
|
+
defineCommand,
|
|
18
|
+
showUsage
|
|
19
|
+
} from "./chunk-PKKZPOOP.js";
|
|
20
|
+
import {
|
|
21
|
+
dispatchFromCli
|
|
22
|
+
} from "./chunk-3IOQVUO7.js";
|
|
23
|
+
import "./chunk-AWCQH2W5.js";
|
|
24
|
+
import "./chunk-OGV57L4J.js";
|
|
25
|
+
import "./chunk-ZBISIPCK.js";
|
|
26
|
+
import "./chunk-3ZO3M37V.js";
|
|
27
|
+
import "./chunk-6JSJNYH2.js";
|
|
28
|
+
import "./chunk-QFFQSKRC.js";
|
|
29
|
+
|
|
30
|
+
// packages/cleo/src/cli/commands/complexity.ts
|
|
31
|
+
var complexityEstimateCommand = defineCommand({
|
|
32
|
+
meta: { name: "estimate", description: "Estimate complexity of a task (small / medium / large)" },
|
|
33
|
+
args: { taskId: { type: "positional", description: "Task ID to estimate", required: true } },
|
|
34
|
+
async run({ args }) {
|
|
35
|
+
await dispatchFromCli(
|
|
36
|
+
"query",
|
|
37
|
+
"tasks",
|
|
38
|
+
"complexity.estimate",
|
|
39
|
+
{ taskId: args.taskId },
|
|
40
|
+
{ command: "complexity", operation: "tasks.complexity.estimate" }
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
var complexityCommand = defineCommand({
|
|
45
|
+
meta: { name: "complexity", description: "Task complexity analysis" },
|
|
46
|
+
subCommands: { estimate: complexityEstimateCommand },
|
|
47
|
+
async run({ cmd, rawArgs }) {
|
|
48
|
+
const firstArg = rawArgs?.find((a) => !a.startsWith("-"));
|
|
49
|
+
if (firstArg && cmd.subCommands && firstArg in cmd.subCommands) return;
|
|
50
|
+
await showUsage(cmd);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
export {
|
|
54
|
+
complexityCommand
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=complexity-BV2AGQRZ.js.map
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
const _installed = Symbol.for('cleocode.cli.sqliteWarningFilter');
|
|
3
|
+
if (globalThis[_installed]) return;
|
|
4
|
+
globalThis[_installed] = true;
|
|
5
|
+
const _origEmitWarning = process.emitWarning;
|
|
6
|
+
process.emitWarning = function(warning, type, code, ctor) {
|
|
7
|
+
if (typeof warning === 'object' && warning.name === 'ExperimentalWarning' && typeof warning.message === 'string' && /SQLite is an experimental feature/i.test(warning.message)) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (typeof warning === 'string' && /SQLite is an experimental feature/i.test(warning)) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
return _origEmitWarning.call(process, warning, type, code, ctor);
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import {
|
|
17
|
+
defineCommand,
|
|
18
|
+
showUsage
|
|
19
|
+
} from "./chunk-PKKZPOOP.js";
|
|
20
|
+
import {
|
|
21
|
+
dispatchFromCli
|
|
22
|
+
} from "./chunk-3IOQVUO7.js";
|
|
23
|
+
import "./chunk-AWCQH2W5.js";
|
|
24
|
+
import "./chunk-OGV57L4J.js";
|
|
25
|
+
import "./chunk-ZBISIPCK.js";
|
|
26
|
+
import "./chunk-3ZO3M37V.js";
|
|
27
|
+
import "./chunk-6JSJNYH2.js";
|
|
28
|
+
import "./chunk-QFFQSKRC.js";
|
|
29
|
+
|
|
30
|
+
// packages/cleo/src/cli/commands/compliance.ts
|
|
31
|
+
var summaryCommand = defineCommand({
|
|
32
|
+
meta: { name: "summary", description: "Aggregate compliance stats (default)" },
|
|
33
|
+
args: {
|
|
34
|
+
since: {
|
|
35
|
+
type: "string",
|
|
36
|
+
description: "Filter metrics from this date (ISO 8601)"
|
|
37
|
+
},
|
|
38
|
+
agent: {
|
|
39
|
+
type: "string",
|
|
40
|
+
description: "Filter by agent/skill ID"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
async run({ args }) {
|
|
44
|
+
await dispatchFromCli(
|
|
45
|
+
"query",
|
|
46
|
+
"check",
|
|
47
|
+
"compliance.summary",
|
|
48
|
+
{
|
|
49
|
+
since: args.since,
|
|
50
|
+
agent: args.agent
|
|
51
|
+
},
|
|
52
|
+
{ command: "compliance" }
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
var violationsCommand = defineCommand({
|
|
57
|
+
meta: { name: "violations", description: "List compliance violations" },
|
|
58
|
+
args: {
|
|
59
|
+
severity: {
|
|
60
|
+
type: "string",
|
|
61
|
+
description: "Filter by severity (low|medium|high|critical)"
|
|
62
|
+
},
|
|
63
|
+
since: {
|
|
64
|
+
type: "string",
|
|
65
|
+
description: "Filter from date"
|
|
66
|
+
},
|
|
67
|
+
agent: {
|
|
68
|
+
type: "string",
|
|
69
|
+
description: "Filter by agent ID"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
async run({ args }) {
|
|
73
|
+
await dispatchFromCli(
|
|
74
|
+
"query",
|
|
75
|
+
"check",
|
|
76
|
+
"compliance.summary",
|
|
77
|
+
{
|
|
78
|
+
detail: true,
|
|
79
|
+
severity: args.severity,
|
|
80
|
+
since: args.since,
|
|
81
|
+
agent: args.agent
|
|
82
|
+
},
|
|
83
|
+
{ command: "compliance" }
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
var trendCommand = defineCommand({
|
|
88
|
+
meta: { name: "trend", description: "Show compliance trend over N days" },
|
|
89
|
+
args: {
|
|
90
|
+
days: {
|
|
91
|
+
type: "positional",
|
|
92
|
+
description: "Number of days to include (default: 7)",
|
|
93
|
+
required: false
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
async run({ args }) {
|
|
97
|
+
await dispatchFromCli(
|
|
98
|
+
"query",
|
|
99
|
+
"check",
|
|
100
|
+
"compliance.summary",
|
|
101
|
+
{
|
|
102
|
+
type: "trend",
|
|
103
|
+
days: args.days !== void 0 ? Number.parseInt(args.days, 10) : 7
|
|
104
|
+
},
|
|
105
|
+
{ command: "compliance" }
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
var auditCommand = defineCommand({
|
|
110
|
+
meta: {
|
|
111
|
+
name: "audit",
|
|
112
|
+
description: "Check compliance for a specific task and its subtasks"
|
|
113
|
+
},
|
|
114
|
+
args: {
|
|
115
|
+
taskId: {
|
|
116
|
+
type: "positional",
|
|
117
|
+
description: "Task ID to audit",
|
|
118
|
+
required: true
|
|
119
|
+
},
|
|
120
|
+
since: {
|
|
121
|
+
type: "string",
|
|
122
|
+
description: "Filter from date"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
async run({ args }) {
|
|
126
|
+
await dispatchFromCli(
|
|
127
|
+
"query",
|
|
128
|
+
"check",
|
|
129
|
+
"compliance.summary",
|
|
130
|
+
{
|
|
131
|
+
type: "audit",
|
|
132
|
+
taskId: args.taskId,
|
|
133
|
+
since: args.since
|
|
134
|
+
},
|
|
135
|
+
{ command: "compliance" }
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
var syncCommand = defineCommand({
|
|
140
|
+
meta: { name: "sync", description: "Sync project metrics to global aggregation" },
|
|
141
|
+
args: {
|
|
142
|
+
force: {
|
|
143
|
+
type: "boolean",
|
|
144
|
+
description: "Force full sync"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
async run({ args }) {
|
|
148
|
+
await dispatchFromCli(
|
|
149
|
+
"mutate",
|
|
150
|
+
"check",
|
|
151
|
+
"compliance.sync",
|
|
152
|
+
{
|
|
153
|
+
force: args.force
|
|
154
|
+
},
|
|
155
|
+
{ command: "compliance" }
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
var skillsCommand = defineCommand({
|
|
160
|
+
meta: { name: "skills", description: "Per-skill/agent reliability stats" },
|
|
161
|
+
args: {
|
|
162
|
+
global: {
|
|
163
|
+
type: "boolean",
|
|
164
|
+
description: "Use global metrics file"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
async run({ args }) {
|
|
168
|
+
await dispatchFromCli(
|
|
169
|
+
"query",
|
|
170
|
+
"check",
|
|
171
|
+
"compliance.summary",
|
|
172
|
+
{
|
|
173
|
+
type: "skills",
|
|
174
|
+
global: args.global
|
|
175
|
+
},
|
|
176
|
+
{ command: "compliance" }
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
var valueCommand = defineCommand({
|
|
181
|
+
meta: { name: "value", description: "VALUE PROOF: Token savings & validation impact" },
|
|
182
|
+
args: {
|
|
183
|
+
days: {
|
|
184
|
+
type: "positional",
|
|
185
|
+
description: "Number of days to include (default: 7)",
|
|
186
|
+
required: false
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
async run({ args }) {
|
|
190
|
+
await dispatchFromCli(
|
|
191
|
+
"query",
|
|
192
|
+
"check",
|
|
193
|
+
"compliance.summary",
|
|
194
|
+
{
|
|
195
|
+
type: "value",
|
|
196
|
+
days: args.days !== void 0 ? Number.parseInt(args.days, 10) : 7
|
|
197
|
+
},
|
|
198
|
+
{ command: "compliance" }
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
var recordCommand = defineCommand({
|
|
203
|
+
meta: {
|
|
204
|
+
name: "record",
|
|
205
|
+
description: "Record a compliance check result for a task (pass|fail|warning)"
|
|
206
|
+
},
|
|
207
|
+
args: {
|
|
208
|
+
taskId: {
|
|
209
|
+
type: "positional",
|
|
210
|
+
description: "Task ID to record result for",
|
|
211
|
+
required: true
|
|
212
|
+
},
|
|
213
|
+
result: {
|
|
214
|
+
type: "positional",
|
|
215
|
+
description: "Result value (pass|fail|warning)",
|
|
216
|
+
required: true
|
|
217
|
+
},
|
|
218
|
+
protocol: {
|
|
219
|
+
type: "string",
|
|
220
|
+
description: "Protocol name the check applies to (e.g. implementation)"
|
|
221
|
+
},
|
|
222
|
+
violation: {
|
|
223
|
+
type: "string",
|
|
224
|
+
description: 'Add a violation as "code:severity:message"'
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
async run({ args }) {
|
|
228
|
+
const rawViolation = args.violation;
|
|
229
|
+
const rawViolations = rawViolation !== void 0 ? [rawViolation] : [];
|
|
230
|
+
const violations = rawViolations.map((v) => {
|
|
231
|
+
const [code, severity, ...rest] = v.split(":");
|
|
232
|
+
return {
|
|
233
|
+
code: code ?? "",
|
|
234
|
+
severity: severity === "error" || severity === "warning" ? severity : "error",
|
|
235
|
+
message: rest.join(":")
|
|
236
|
+
};
|
|
237
|
+
}).filter((v) => v.code);
|
|
238
|
+
await dispatchFromCli(
|
|
239
|
+
"mutate",
|
|
240
|
+
"check",
|
|
241
|
+
"compliance.record",
|
|
242
|
+
{
|
|
243
|
+
taskId: args.taskId,
|
|
244
|
+
result: args.result,
|
|
245
|
+
protocol: args.protocol,
|
|
246
|
+
violations: violations.length > 0 ? violations : void 0
|
|
247
|
+
},
|
|
248
|
+
{ command: "compliance", operation: "check.compliance.record" }
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
var complianceCommand = defineCommand({
|
|
253
|
+
meta: {
|
|
254
|
+
name: "compliance",
|
|
255
|
+
description: "Monitor and report compliance metrics for orchestrator and agent outputs"
|
|
256
|
+
},
|
|
257
|
+
subCommands: {
|
|
258
|
+
summary: summaryCommand,
|
|
259
|
+
violations: violationsCommand,
|
|
260
|
+
trend: trendCommand,
|
|
261
|
+
audit: auditCommand,
|
|
262
|
+
sync: syncCommand,
|
|
263
|
+
skills: skillsCommand,
|
|
264
|
+
value: valueCommand,
|
|
265
|
+
record: recordCommand
|
|
266
|
+
},
|
|
267
|
+
async run({ cmd, rawArgs }) {
|
|
268
|
+
const firstArg = rawArgs?.find((a) => !a.startsWith("-"));
|
|
269
|
+
if (firstArg && cmd.subCommands && firstArg in cmd.subCommands) return;
|
|
270
|
+
await showUsage(cmd);
|
|
271
|
+
}
|
|
272
|
+
});
|
|
273
|
+
export {
|
|
274
|
+
complianceCommand
|
|
275
|
+
};
|
|
276
|
+
//# sourceMappingURL=compliance-32PD5Y47.js.map
|