@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,25 @@
|
|
|
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
|
+
costCommand
|
|
18
|
+
} from "./chunk-BPEVD37G.js";
|
|
19
|
+
import "./chunk-PKKZPOOP.js";
|
|
20
|
+
import "./chunk-3ZO3M37V.js";
|
|
21
|
+
import "./chunk-6JSJNYH2.js";
|
|
22
|
+
export {
|
|
23
|
+
costCommand
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=llm-cost-S7RS6BVA.js.map
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
runLlmStream,
|
|
18
|
+
streamCommand
|
|
19
|
+
} from "./chunk-NWTATTEQ.js";
|
|
20
|
+
import "./chunk-PKKZPOOP.js";
|
|
21
|
+
import "./chunk-3ZO3M37V.js";
|
|
22
|
+
import "./chunk-6JSJNYH2.js";
|
|
23
|
+
export {
|
|
24
|
+
runLlmStream,
|
|
25
|
+
streamCommand
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=llm-stream-24A45NTS.js.map
|
|
@@ -0,0 +1,75 @@
|
|
|
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/log.ts
|
|
30
|
+
var logCommand = defineCommand({
|
|
31
|
+
meta: { name: "log", description: "View audit log entries (operations, timestamps, changes)" },
|
|
32
|
+
args: {
|
|
33
|
+
limit: {
|
|
34
|
+
type: "string",
|
|
35
|
+
description: "Maximum entries to show",
|
|
36
|
+
default: "20"
|
|
37
|
+
},
|
|
38
|
+
offset: {
|
|
39
|
+
type: "string",
|
|
40
|
+
description: "Skip N entries",
|
|
41
|
+
default: "0"
|
|
42
|
+
},
|
|
43
|
+
operation: {
|
|
44
|
+
type: "string",
|
|
45
|
+
description: "Filter by operation type"
|
|
46
|
+
},
|
|
47
|
+
task: {
|
|
48
|
+
type: "string",
|
|
49
|
+
description: "Filter by task ID"
|
|
50
|
+
},
|
|
51
|
+
since: {
|
|
52
|
+
type: "string",
|
|
53
|
+
description: "Filter entries since date"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
async run({ args }) {
|
|
57
|
+
await dispatchFromCli(
|
|
58
|
+
"query",
|
|
59
|
+
"admin",
|
|
60
|
+
"log",
|
|
61
|
+
{
|
|
62
|
+
limit: args.limit ? Number(args.limit) : 20,
|
|
63
|
+
offset: args.offset ? Number(args.offset) : 0,
|
|
64
|
+
operation: args.operation,
|
|
65
|
+
taskId: args.task,
|
|
66
|
+
since: args.since
|
|
67
|
+
},
|
|
68
|
+
{ command: "log", operation: "admin.log" }
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
export {
|
|
73
|
+
logCommand
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=log-XF6H2XSD.js.map
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
LOGIN_ARGS,
|
|
18
|
+
NEXUS_PICKER_LABEL,
|
|
19
|
+
emitLoginResult,
|
|
20
|
+
loginCommand,
|
|
21
|
+
loginPickerOptions,
|
|
22
|
+
makeOAuthAcquirer,
|
|
23
|
+
runLoginCommand,
|
|
24
|
+
runLoginFrontDoor
|
|
25
|
+
} from "./chunk-J3ZFM3UQ.js";
|
|
26
|
+
import "./chunk-GZFVDR44.js";
|
|
27
|
+
import "./chunk-ULN4OKQQ.js";
|
|
28
|
+
import "./chunk-47JYZAMS.js";
|
|
29
|
+
import "./chunk-C3B7C43W.js";
|
|
30
|
+
import "./chunk-PKKZPOOP.js";
|
|
31
|
+
import "./chunk-3ZO3M37V.js";
|
|
32
|
+
import "./chunk-6JSJNYH2.js";
|
|
33
|
+
export {
|
|
34
|
+
LOGIN_ARGS,
|
|
35
|
+
NEXUS_PICKER_LABEL,
|
|
36
|
+
emitLoginResult,
|
|
37
|
+
loginCommand,
|
|
38
|
+
loginPickerOptions,
|
|
39
|
+
makeOAuthAcquirer,
|
|
40
|
+
runLoginCommand,
|
|
41
|
+
runLoginFrontDoor
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=login-LBPLGHYG.js.map
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
emitLlmCredentialRemoval
|
|
18
|
+
} from "./chunk-7INMKEAD.js";
|
|
19
|
+
import {
|
|
20
|
+
NEXUS_API_URL_ARG,
|
|
21
|
+
runNexusDeviceLogout
|
|
22
|
+
} from "./chunk-ULN4OKQQ.js";
|
|
23
|
+
import "./chunk-47JYZAMS.js";
|
|
24
|
+
import "./chunk-C3B7C43W.js";
|
|
25
|
+
import {
|
|
26
|
+
defineCommand
|
|
27
|
+
} from "./chunk-PKKZPOOP.js";
|
|
28
|
+
import "./chunk-3ZO3M37V.js";
|
|
29
|
+
import "./chunk-6JSJNYH2.js";
|
|
30
|
+
|
|
31
|
+
// packages/cleo/src/cli/commands/logout.ts
|
|
32
|
+
import { NEXUS_LOGIN_TARGET } from "@cleocode/contracts";
|
|
33
|
+
var logoutCommand = defineCommand({
|
|
34
|
+
meta: {
|
|
35
|
+
name: "logout",
|
|
36
|
+
description: "Sign out. cleo logout [nexus] signs this machine out of Cleo Nexus (the device keeps its id for the next login; --revoke burns it), confirmed by the server; cleo logout <provider> [label] removes an LLM credential exactly like cleo auth remove (the label may be omitted when the provider has one credential)."
|
|
37
|
+
},
|
|
38
|
+
args: {
|
|
39
|
+
target: {
|
|
40
|
+
type: "positional",
|
|
41
|
+
description: "'nexus' (default) or an LLM provider id (e.g. anthropic).",
|
|
42
|
+
required: false
|
|
43
|
+
},
|
|
44
|
+
label: {
|
|
45
|
+
type: "positional",
|
|
46
|
+
description: "LLM credential label (optional when the provider has one credential).",
|
|
47
|
+
required: false
|
|
48
|
+
},
|
|
49
|
+
"api-url": NEXUS_API_URL_ARG,
|
|
50
|
+
revoke: {
|
|
51
|
+
type: "boolean",
|
|
52
|
+
description: "Hard-revoke this device: destroys its key grant and burns the device id; the next login enrols a new device. Without it, logout signs the device out and keeps it for the next login."
|
|
53
|
+
},
|
|
54
|
+
json: { type: "boolean", description: "Output as JSON envelope" }
|
|
55
|
+
},
|
|
56
|
+
async run({ args }) {
|
|
57
|
+
const a = args;
|
|
58
|
+
const target = typeof a["target"] === "string" && a["target"] ? a["target"] : NEXUS_LOGIN_TARGET;
|
|
59
|
+
if (target !== NEXUS_LOGIN_TARGET) {
|
|
60
|
+
const label = typeof a["label"] === "string" && a["label"] ? a["label"] : void 0;
|
|
61
|
+
const { removeLlmCredential } = await import(
|
|
62
|
+
/* webpackIgnore: true */
|
|
63
|
+
"@cleocode/core/llm/credential-remove-entry.js"
|
|
64
|
+
);
|
|
65
|
+
emitLlmCredentialRemoval(await removeLlmCredential(target, label), "logout", "logout.run");
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
await runNexusDeviceLogout(a);
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
export {
|
|
72
|
+
logoutCommand
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=logout-SX4JSJIV.js.map
|
|
@@ -0,0 +1,353 @@
|
|
|
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
|
+
showUsage
|
|
22
|
+
} from "./chunk-PKKZPOOP.js";
|
|
23
|
+
import {
|
|
24
|
+
dispatchFromCli
|
|
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
|
+
} from "./chunk-3ZO3M37V.js";
|
|
32
|
+
import "./chunk-6JSJNYH2.js";
|
|
33
|
+
import "./chunk-QFFQSKRC.js";
|
|
34
|
+
|
|
35
|
+
// packages/cleo/src/cli/commands/manifest.ts
|
|
36
|
+
import { buildManifestEntryFromShorthand } from "@cleocode/core/memory/manifest-builder.js";
|
|
37
|
+
var showCommand = defineCommand({
|
|
38
|
+
meta: {
|
|
39
|
+
name: "show",
|
|
40
|
+
description: "Show a manifest entry by ID"
|
|
41
|
+
},
|
|
42
|
+
args: {
|
|
43
|
+
id: {
|
|
44
|
+
type: "positional",
|
|
45
|
+
description: "Pipeline manifest entry ID",
|
|
46
|
+
required: true
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
async run({ args }) {
|
|
50
|
+
await dispatchFromCli(
|
|
51
|
+
"query",
|
|
52
|
+
"pipeline",
|
|
53
|
+
"manifest.show",
|
|
54
|
+
{ entryId: args.id },
|
|
55
|
+
{ command: "manifest show" }
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
var listCommand = defineCommand({
|
|
60
|
+
meta: {
|
|
61
|
+
name: "list",
|
|
62
|
+
description: "List manifest entries with optional filters"
|
|
63
|
+
},
|
|
64
|
+
args: {
|
|
65
|
+
filter: {
|
|
66
|
+
type: "string",
|
|
67
|
+
description: "Filter by status: active|archived|distilled|pending"
|
|
68
|
+
},
|
|
69
|
+
task: {
|
|
70
|
+
type: "string",
|
|
71
|
+
description: "Filter by task_id"
|
|
72
|
+
},
|
|
73
|
+
epic: {
|
|
74
|
+
type: "string",
|
|
75
|
+
description: "Filter by epic_id"
|
|
76
|
+
},
|
|
77
|
+
type: {
|
|
78
|
+
type: "string",
|
|
79
|
+
description: "Filter by entry type"
|
|
80
|
+
},
|
|
81
|
+
limit: {
|
|
82
|
+
type: "string",
|
|
83
|
+
description: "Maximum rows to return (default: 50, max: 500)"
|
|
84
|
+
},
|
|
85
|
+
offset: {
|
|
86
|
+
type: "string",
|
|
87
|
+
description: "Pagination offset (default: 0)"
|
|
88
|
+
},
|
|
89
|
+
json: {
|
|
90
|
+
type: "boolean",
|
|
91
|
+
description: "Output as JSON array (default: table)",
|
|
92
|
+
default: false
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
async run({ args }) {
|
|
96
|
+
const limit = args.limit ? Number.parseInt(args.limit, 10) : 50;
|
|
97
|
+
const offset = args.offset ? Number.parseInt(args.offset, 10) : 0;
|
|
98
|
+
await dispatchFromCli(
|
|
99
|
+
"query",
|
|
100
|
+
"pipeline",
|
|
101
|
+
"manifest.list",
|
|
102
|
+
{
|
|
103
|
+
filter: args.filter,
|
|
104
|
+
taskId: args.task,
|
|
105
|
+
epicId: args.epic,
|
|
106
|
+
type: args.type,
|
|
107
|
+
limit,
|
|
108
|
+
offset,
|
|
109
|
+
json: args.json
|
|
110
|
+
},
|
|
111
|
+
{ command: "manifest list" }
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
var findCommand = defineCommand({
|
|
116
|
+
meta: {
|
|
117
|
+
name: "find",
|
|
118
|
+
description: "Full-text search manifest entries"
|
|
119
|
+
},
|
|
120
|
+
args: {
|
|
121
|
+
query: {
|
|
122
|
+
type: "positional",
|
|
123
|
+
description: "Full-text search string",
|
|
124
|
+
required: true
|
|
125
|
+
},
|
|
126
|
+
limit: {
|
|
127
|
+
type: "string",
|
|
128
|
+
description: "Maximum rows to return (default: 20)"
|
|
129
|
+
},
|
|
130
|
+
json: {
|
|
131
|
+
type: "boolean",
|
|
132
|
+
description: "Output as JSON array",
|
|
133
|
+
default: false
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
async run({ args }) {
|
|
137
|
+
const limit = args.limit ? Number.parseInt(args.limit, 10) : 20;
|
|
138
|
+
await dispatchFromCli(
|
|
139
|
+
"query",
|
|
140
|
+
"pipeline",
|
|
141
|
+
"manifest.find",
|
|
142
|
+
{
|
|
143
|
+
query: args.query,
|
|
144
|
+
limit,
|
|
145
|
+
json: args.json
|
|
146
|
+
},
|
|
147
|
+
{ command: "manifest find" }
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
var statsCommand = defineCommand({
|
|
152
|
+
meta: {
|
|
153
|
+
name: "stats",
|
|
154
|
+
description: "Aggregate manifest statistics"
|
|
155
|
+
},
|
|
156
|
+
args: {
|
|
157
|
+
json: {
|
|
158
|
+
type: "boolean",
|
|
159
|
+
description: "Output as JSON object",
|
|
160
|
+
default: false
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
async run({ args }) {
|
|
164
|
+
await dispatchFromCli(
|
|
165
|
+
"query",
|
|
166
|
+
"pipeline",
|
|
167
|
+
"manifest.stats",
|
|
168
|
+
{
|
|
169
|
+
json: args.json
|
|
170
|
+
},
|
|
171
|
+
{ command: "manifest stats" }
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
var appendCommand = defineCommand({
|
|
176
|
+
meta: {
|
|
177
|
+
name: "append",
|
|
178
|
+
description: "Append a new manifest entry (pipeline_manifest table). Accepts either a full --entry JSON blob / --file / stdin, OR the shorthand --task + --type + --content flags which build a valid entry with sensible defaults for id/file/title/date/etc."
|
|
179
|
+
},
|
|
180
|
+
args: {
|
|
181
|
+
entry: {
|
|
182
|
+
type: "string",
|
|
183
|
+
description: "JSON string of entry fields (full ManifestEntry shape)"
|
|
184
|
+
},
|
|
185
|
+
task: {
|
|
186
|
+
type: "string",
|
|
187
|
+
description: "Task ID to associate \u2014 becomes linked_tasks[0] + id prefix (shorthand)"
|
|
188
|
+
},
|
|
189
|
+
type: {
|
|
190
|
+
type: "string",
|
|
191
|
+
description: "Entry type \u2014 becomes agent_type (e.g. research, implementation, decomposition) (shorthand)"
|
|
192
|
+
},
|
|
193
|
+
content: {
|
|
194
|
+
type: "string",
|
|
195
|
+
description: "One-paragraph summary \u2014 becomes key_findings[0] and title (first line) (shorthand)"
|
|
196
|
+
},
|
|
197
|
+
title: {
|
|
198
|
+
type: "string",
|
|
199
|
+
description: "Explicit title override for shorthand mode"
|
|
200
|
+
},
|
|
201
|
+
status: {
|
|
202
|
+
type: "string",
|
|
203
|
+
description: "Entry status: completed (default) | partial | blocked (shorthand)"
|
|
204
|
+
},
|
|
205
|
+
file: {
|
|
206
|
+
type: "string",
|
|
207
|
+
description: "Path to JSON file containing entry"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
async run({ args }) {
|
|
211
|
+
let entry;
|
|
212
|
+
const hasShorthand = Boolean(args.task || args.type || args.content);
|
|
213
|
+
if (args.entry) {
|
|
214
|
+
try {
|
|
215
|
+
entry = JSON.parse(args.entry);
|
|
216
|
+
} catch (_err) {
|
|
217
|
+
cliError("--entry must be valid JSON", 1, { name: "E_VALIDATION" });
|
|
218
|
+
process.exit(1);
|
|
219
|
+
}
|
|
220
|
+
} else if (args.file) {
|
|
221
|
+
try {
|
|
222
|
+
const fs = await import("node:fs");
|
|
223
|
+
const fileContent = fs.readFileSync(args.file, "utf-8");
|
|
224
|
+
entry = JSON.parse(fileContent);
|
|
225
|
+
} catch (_err) {
|
|
226
|
+
cliError(`failed to read or parse ${args.file}`, 1, { name: "E_VALIDATION" });
|
|
227
|
+
process.exit(1);
|
|
228
|
+
}
|
|
229
|
+
} else if (hasShorthand) {
|
|
230
|
+
entry = {
|
|
231
|
+
...buildManifestEntryFromShorthand({
|
|
232
|
+
task: args.task,
|
|
233
|
+
type: args.type,
|
|
234
|
+
content: args.content,
|
|
235
|
+
title: args.title,
|
|
236
|
+
status: args.status
|
|
237
|
+
})
|
|
238
|
+
};
|
|
239
|
+
} else {
|
|
240
|
+
const stdinData = await readStdin();
|
|
241
|
+
if (!stdinData) {
|
|
242
|
+
cliError(
|
|
243
|
+
"must provide --entry JSON, --file path, stdin, or shorthand (--task + --type + --content)",
|
|
244
|
+
1,
|
|
245
|
+
{ name: "E_VALIDATION" }
|
|
246
|
+
);
|
|
247
|
+
process.exit(1);
|
|
248
|
+
}
|
|
249
|
+
try {
|
|
250
|
+
entry = JSON.parse(stdinData);
|
|
251
|
+
} catch (_err) {
|
|
252
|
+
cliError("stdin must be valid JSON", 1, { name: "E_VALIDATION" });
|
|
253
|
+
process.exit(1);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
if ((args.entry || args.file) && hasShorthand) {
|
|
257
|
+
if (args.task) {
|
|
258
|
+
entry.linked_tasks = Array.isArray(entry.linked_tasks) ? [args.task, ...entry.linked_tasks.filter((t) => t !== args.task)] : [args.task];
|
|
259
|
+
}
|
|
260
|
+
if (args.type) {
|
|
261
|
+
entry.agent_type = args.type;
|
|
262
|
+
}
|
|
263
|
+
if (args.content && !entry.key_findings) {
|
|
264
|
+
entry.key_findings = [args.content];
|
|
265
|
+
}
|
|
266
|
+
if (args.title) {
|
|
267
|
+
entry.title = args.title;
|
|
268
|
+
}
|
|
269
|
+
if (args.status) {
|
|
270
|
+
entry.status = args.status;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
await dispatchFromCli(
|
|
274
|
+
"mutate",
|
|
275
|
+
"pipeline",
|
|
276
|
+
"manifest.append",
|
|
277
|
+
{ entry },
|
|
278
|
+
{ command: "manifest append" }
|
|
279
|
+
);
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
var archiveCommand = defineCommand({
|
|
283
|
+
meta: {
|
|
284
|
+
name: "archive",
|
|
285
|
+
description: "Archive manifest entries"
|
|
286
|
+
},
|
|
287
|
+
args: {
|
|
288
|
+
id: {
|
|
289
|
+
type: "positional",
|
|
290
|
+
description: "Entry ID to archive"
|
|
291
|
+
},
|
|
292
|
+
"before-date": {
|
|
293
|
+
type: "string",
|
|
294
|
+
description: "Archive all active entries created before ISO date (YYYY-MM-DD)"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
async run({ args }) {
|
|
298
|
+
if (!args.id && !args["before-date"]) {
|
|
299
|
+
cliError("must provide either <id> positional argument or --before-date flag", 1, {
|
|
300
|
+
name: "E_VALIDATION"
|
|
301
|
+
});
|
|
302
|
+
process.exit(1);
|
|
303
|
+
}
|
|
304
|
+
if (args.id && args["before-date"]) {
|
|
305
|
+
cliError("--before-date is mutually exclusive with <id> positional argument", 1, {
|
|
306
|
+
name: "E_VALIDATION"
|
|
307
|
+
});
|
|
308
|
+
process.exit(1);
|
|
309
|
+
}
|
|
310
|
+
const dispatchPayload = args.id ? { id: args.id } : { beforeDate: args["before-date"] };
|
|
311
|
+
await dispatchFromCli("mutate", "pipeline", "manifest.archive", dispatchPayload, {
|
|
312
|
+
command: "manifest archive"
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
async function readStdin() {
|
|
317
|
+
if (process.stdin.isTTY) {
|
|
318
|
+
return "";
|
|
319
|
+
}
|
|
320
|
+
return new Promise((resolve, reject) => {
|
|
321
|
+
let data = "";
|
|
322
|
+
process.stdin.setEncoding("utf-8");
|
|
323
|
+
process.stdin.on("data", (chunk) => {
|
|
324
|
+
data += chunk;
|
|
325
|
+
});
|
|
326
|
+
process.stdin.on("end", () => {
|
|
327
|
+
resolve(data.trim());
|
|
328
|
+
});
|
|
329
|
+
process.stdin.on("error", reject);
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
var manifestCommand = defineCommand({
|
|
333
|
+
meta: {
|
|
334
|
+
name: "manifest",
|
|
335
|
+
description: "Manifest operations (pipeline_manifest table)"
|
|
336
|
+
},
|
|
337
|
+
subCommands: {
|
|
338
|
+
show: showCommand,
|
|
339
|
+
list: listCommand,
|
|
340
|
+
find: findCommand,
|
|
341
|
+
stats: statsCommand,
|
|
342
|
+
append: appendCommand,
|
|
343
|
+
archive: archiveCommand
|
|
344
|
+
},
|
|
345
|
+
async run({ cmd, rawArgs }) {
|
|
346
|
+
if (isSubCommandDispatch(rawArgs, cmd.subCommands)) return;
|
|
347
|
+
await showUsage(cmd);
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
export {
|
|
351
|
+
manifestCommand
|
|
352
|
+
};
|
|
353
|
+
//# sourceMappingURL=manifest-NMCW4PIW.js.map
|
|
@@ -0,0 +1,52 @@
|
|
|
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/map.ts
|
|
30
|
+
var mapCommand = defineCommand({
|
|
31
|
+
meta: { name: "map", description: "Analyze codebase structure and return structured mapping" },
|
|
32
|
+
args: {
|
|
33
|
+
store: {
|
|
34
|
+
type: "boolean",
|
|
35
|
+
description: "Store findings to brain.db"
|
|
36
|
+
},
|
|
37
|
+
focus: {
|
|
38
|
+
type: "string",
|
|
39
|
+
description: "Focus on one area: stack, architecture, structure, conventions, testing, integrations, concerns"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
async run({ args }) {
|
|
43
|
+
const gateway = args.store ? "mutate" : "query";
|
|
44
|
+
const params = {};
|
|
45
|
+
if (args.focus) params.focus = args.focus;
|
|
46
|
+
await dispatchFromCli(gateway, "admin", "map", params, { command: "map" });
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
mapCommand
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=map-BU72KMGF.js.map
|