@cleocode/cleo 2026.10.3 → 2026.10.5-rc.ci.672
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/README.md +7 -0
- package/bin/cleo.js +11 -1
- package/dist/cli/adapter-OUQRSFZL.js +159 -0
- package/dist/cli/add-4SRRJL4U.js +443 -0
- package/dist/cli/add-batch-TSWICA5J.js +164 -0
- package/dist/cli/admin-L3F6CDYH.js +1428 -0
- package/dist/cli/admin-YMU55YCU.js +341 -0
- package/dist/cli/adr-XESRMFMP.js +172 -0
- package/dist/cli/agent-TAFPIYUU.js +2404 -0
- package/dist/cli/agent-outputs-HVJJIPS4.js +84 -0
- package/dist/cli/analyze-YQ22QVGW.js +49 -0
- package/dist/cli/archive-W5XX6AH7.js +65 -0
- package/dist/cli/archive-stats-HP2KPAJU.js +101 -0
- package/dist/cli/attention-7JBDCRZX.js +124 -0
- package/dist/cli/attention-ZXZANHKC.js +168 -0
- package/dist/cli/audit-ICA2SEFN.js +122 -0
- package/dist/cli/auth-DXIG5OG7.js +491 -0
- package/dist/cli/backfill-LBSYBWLR.js +156 -0
- package/dist/cli/backup-NUGBZ7NA.js +588 -0
- package/dist/cli/backup-inspect-PDRXI45A.js +26 -0
- package/dist/cli/backup-recover-TVKAPERB.js +29 -0
- package/dist/cli/blockers-ZOPCGHDW.js +55 -0
- package/dist/cli/brain-EJOBKL4A.js +397 -0
- package/dist/cli/briefing-RDQJ6WHS.js +213 -0
- package/dist/cli/caamp-Z3XPKEHB.js +181 -0
- package/dist/cli/cancel-S7EHLCJN.js +85 -0
- package/dist/cli/canon-NPF5RODM.js +142 -0
- package/dist/cli/canon-docs-2GTOLF7Y.js +26 -0
- package/dist/cli/cant-CHNN6O57.js +239 -0
- package/dist/cli/changeset-RYPHPN2B.js +246 -0
- package/dist/cli/check-C67YAU7W.js +759 -0
- package/dist/cli/check-DHMURGHC.js +924 -0
- package/dist/cli/checkpoint-UWDFOGYQ.js +128 -0
- package/dist/cli/chunk-22YPFZYB.js +91 -0
- package/dist/cli/chunk-2MGFDMDF.js +272 -0
- package/dist/cli/chunk-47JYZAMS.js +30 -0
- package/dist/cli/chunk-4JYHPP4C.js +76 -0
- package/dist/cli/chunk-4PEODTHY.js +278 -0
- package/dist/cli/chunk-4RGSNUUP.js +950 -0
- package/dist/cli/chunk-4VASFLUW.js +35 -0
- package/dist/cli/chunk-5PNI276X.js +124 -0
- package/dist/cli/chunk-6JSJNYH2.js +114 -0
- package/dist/cli/chunk-6N6WGLXE.js +63 -0
- package/dist/cli/chunk-75UH3BLS.js +210 -0
- package/dist/cli/chunk-7ACK4EIN.js +92 -0
- package/dist/cli/chunk-7NMKLVMI.js +107 -0
- package/dist/cli/chunk-7SINJXB6.js +110 -0
- package/dist/cli/chunk-7UARFJYS.js +46 -0
- package/dist/cli/chunk-7ZYPQV4N.js +90 -0
- package/dist/cli/chunk-AQCYT3L4.js +72 -0
- package/dist/cli/chunk-BQK6XTOH.js +57 -0
- package/dist/cli/chunk-C3B7C43W.js +16 -0
- package/dist/cli/chunk-CAPAGD5E.js +98 -0
- package/dist/cli/chunk-CHGEDCKG.js +77 -0
- package/dist/cli/chunk-COXFJ3PT.js +74 -0
- package/dist/cli/chunk-D7BAQNV2.js +55 -0
- package/dist/cli/chunk-EIUXVHNF.js +258 -0
- package/dist/cli/chunk-EUGB6P5V.js +173 -0
- package/dist/cli/chunk-EW2CKNNZ.js +304 -0
- package/dist/cli/chunk-FSKN4DWC.js +108 -0
- package/dist/cli/chunk-FVKLULL7.js +48 -0
- package/dist/cli/chunk-GAGUBU4Z.js +280 -0
- package/dist/cli/chunk-GKRFH2YG.js +171 -0
- package/dist/cli/chunk-GRU74UE4.js +270 -0
- package/dist/cli/chunk-GZFVDR44.js +320 -0
- package/dist/cli/chunk-HFLLZE6A.js +83 -0
- package/dist/cli/chunk-HXRXT3XU.js +78 -0
- package/dist/cli/chunk-IIOGUY3B.js +258 -0
- package/dist/cli/chunk-ILWWL462.js +60 -0
- package/dist/cli/chunk-J5USPJKZ.js +48 -0
- package/dist/cli/chunk-KEQS36GD.js +88 -0
- package/dist/cli/chunk-L7ONYSV6.js +2497 -0
- package/dist/cli/chunk-LVGIFMCV.js +163 -0
- package/dist/cli/chunk-NEFMQYLE.js +656 -0
- package/dist/cli/chunk-NU6CQQVB.js +4501 -0
- package/dist/cli/chunk-OILHT47L.js +252 -0
- package/dist/cli/chunk-PKKZPOOP.js +352 -0
- package/dist/cli/chunk-PN4WW5VX.js +66 -0
- package/dist/cli/chunk-PSJ33WVO.js +56 -0
- package/dist/cli/chunk-QA6T2LQ5.js +71 -0
- package/dist/cli/chunk-QJJWWCIC.js +288 -0
- package/dist/cli/chunk-QKMBWYAS.js +93 -0
- package/dist/cli/chunk-QWNKLLLG.js +84 -0
- package/dist/cli/chunk-QWUFFDL3.js +85 -0
- package/dist/cli/chunk-QY76BRUZ.js +35 -0
- package/dist/cli/chunk-R45KVF5Y.js +117 -0
- package/dist/cli/chunk-RRKP7HLU.js +66 -0
- package/dist/cli/chunk-SXXOC6KZ.js +209 -0
- package/dist/cli/chunk-T6GZJYL3.js +108 -0
- package/dist/cli/chunk-TLQ37HRE.js +67 -0
- package/dist/cli/chunk-TPTNEJZJ.js +52 -0
- package/dist/cli/chunk-TYC7G5LF.js +100 -0
- package/dist/cli/chunk-UWCZY52R.js +766 -0
- package/dist/cli/chunk-VB3LDPL5.js +46 -0
- package/dist/cli/chunk-VLEYOOPH.js +31 -0
- package/dist/cli/chunk-W3JLYKKY.js +140 -0
- package/dist/cli/chunk-WWCYZYSN.js +56 -0
- package/dist/cli/chunk-XA5WISNV.js +52 -0
- package/dist/cli/chunk-XHRZ7OYZ.js +132 -0
- package/dist/cli/chunk-XLPMIGJJ.js +148 -0
- package/dist/cli/chunk-YY66LFZF.js +29 -0
- package/dist/cli/chunk-ZMGDZMSJ.js +210 -0
- package/dist/cli/claim-IGOG2QOC.js +97 -0
- package/dist/cli/classify-MG4N7GMQ.js +117 -0
- package/dist/cli/cli-A23Q335V.js +51 -0
- package/dist/cli/cloud-SILYJVKO.js +731 -0
- package/dist/cli/cockpit-RZKLGYPN.js +790 -0
- package/dist/cli/code-H2FQCVMW.js +178 -0
- package/dist/cli/complete-JLX7NBI4.js +35 -0
- package/dist/cli/complexity-OKV7PVZH.js +57 -0
- package/dist/cli/compliance-QMGZHJNQ.js +277 -0
- package/dist/cli/conduit-4H32UYEA.js +308 -0
- package/dist/cli/conduit-EY54WTZA.js +535 -0
- package/dist/cli/config-TDYOC7XO.js +519 -0
- package/dist/cli/consensus-4XCOFPPT.js +122 -0
- package/dist/cli/context-FN4YTGHD.js +142 -0
- package/dist/cli/contribution-7RWFBJLC.js +112 -0
- package/dist/cli/curator-HKZJCVRL.js +139 -0
- package/dist/cli/current-B2NU7V3G.js +43 -0
- package/dist/cli/daemon-GBD4TVCD.js +452 -0
- package/dist/cli/dash-IGDANIE5.js +71 -0
- package/dist/cli/decide-26SXC2V6.js +416 -0
- package/dist/cli/decompose-LQ76TEZG.js +78 -0
- package/dist/cli/decomposition-WFRWNUSJ.js +122 -0
- package/dist/cli/delete-T5DUQHOX.js +69 -0
- package/dist/cli/deps-UTPZJBXL.js +462 -0
- package/dist/cli/detect-FFZSMVDT.js +46 -0
- package/dist/cli/detect-drift-TVCJOFYJ.js +408 -0
- package/dist/cli/diagnostics-GN5CVD3N.js +93 -0
- package/dist/cli/diagnostics-ZNBKH6GX.js +133 -0
- package/dist/cli/docs-CLQKEEUK.js +1710 -0
- package/dist/cli/docs-DPPDFTWR.js +3098 -0
- package/dist/cli/doctor-GPENOP4N.js +1270 -0
- package/dist/cli/doctor-ac-bindings-S3IOEFP4.js +26 -0
- package/dist/cli/doctor-acceptance-drift-VNFKPBSQ.js +26 -0
- package/dist/cli/doctor-credentials-A5H4JMTF.js +26 -0
- package/dist/cli/doctor-db-substrate-FGCISE4Z.js +27 -0
- package/dist/cli/doctor-dep-cycles-BKKKHHYG.js +26 -0
- package/dist/cli/doctor-exodus-ND2DH2KP.js +26 -0
- package/dist/cli/doctor-exodus-residue-4EMRYMEQ.js +26 -0
- package/dist/cli/doctor-fk-check-VY3RIQV3.js +26 -0
- package/dist/cli/doctor-global-delivery-JN6IGHUL.js +26 -0
- package/dist/cli/doctor-heavy-command-hook-XSN44WXU.js +26 -0
- package/dist/cli/doctor-legacy-backups-QAG5NHYP.js +26 -0
- package/dist/cli/doctor-legacy-reaper-CIRGFE6R.js +26 -0
- package/dist/cli/doctor-malformed-ids-WL7HT4TB.js +26 -0
- package/dist/cli/doctor-manifest-rows-SMQCKJ2T.js +26 -0
- package/dist/cli/doctor-memory-guard-LJDOJG76.js +26 -0
- package/dist/cli/doctor-migrations-ETQPFNUP.js +26 -0
- package/dist/cli/doctor-nexus-residency-A4JMKBEJ.js +26 -0
- package/dist/cli/doctor-project-identity-FFQJ5LNX.js +26 -0
- package/dist/cli/doctor-projects-MFUTKRHP.js +30 -0
- package/dist/cli/doctor-projects-registry-76X6VTGM.js +26 -0
- package/dist/cli/doctor-release-readiness-QJCOPFTK.js +26 -0
- package/dist/cli/doctor-repair-AU76FIKY.js +26 -0
- package/dist/cli/doctor-row-identity-KW6JYZQE.js +26 -0
- package/dist/cli/doctor-skill-fixtures-G3T7JUHS.js +26 -0
- package/dist/cli/doctor-split-brain-FUW6L7FS.js +26 -0
- package/dist/cli/doctor-superseded-store-DUHGSBLC.js +26 -0
- package/dist/cli/doctor-sync-journal-SXMUIKF7.js +26 -0
- package/dist/cli/doctor-sync-triggers-6WNJZFRM.js +26 -0
- package/dist/cli/doctor-tool-locks-66LSLUBN.js +26 -0
- package/dist/cli/doctor-twin-collapse-AYBYBFC4.js +26 -0
- package/dist/cli/doctor-worktree-stores-C5XEH5OG.js +26 -0
- package/dist/cli/done-R64XRZ32.js +196 -0
- package/dist/cli/dynamic-RR4HB7BB.js +29 -0
- package/dist/cli/entities-3JIHDIOK.js +361 -0
- package/dist/cli/event-45KEWV5H.js +372 -0
- package/dist/cli/exists-BEDZS5RI.js +65 -0
- package/dist/cli/exodus-DUX62344.js +401 -0
- package/dist/cli/export-C5PQIQ5O.js +93 -0
- package/dist/cli/export-tasks-CUXDZPJB.js +97 -0
- package/dist/cli/federation-ESM35EGG.js +145 -0
- package/dist/cli/find-5EUZHHQJ.js +178 -0
- package/dist/cli/focus-6AH4KLRO.js +368 -0
- package/dist/cli/focus-ANKAIRO5.js +56 -0
- package/dist/cli/gateway-2GW2KTK3.js +77 -0
- package/dist/cli/gateway-auto-start-EDK7XI6E.js +36 -0
- package/dist/cli/gc-CTOQLUSA.js +291 -0
- package/dist/cli/go-YJPNHHYT.js +206 -0
- package/dist/cli/goal-4GW4G77D.js +213 -0
- package/dist/cli/grade-25WSZH4X.js +57 -0
- package/dist/cli/graph-JUO3TMF3.js +879 -0
- package/dist/cli/history-NACNUQTC.js +138 -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-7ESGL5SS.js +89 -0
- package/dist/cli/import-tasks-FLE2RPBR.js +109 -0
- package/dist/cli/index.js +601 -94637
- package/dist/cli/init-AN4DZ2XO.js +40 -0
- package/dist/cli/inject-HQWA5GWY.js +83 -0
- package/dist/cli/install-global-YQV4W5OG.js +95 -0
- package/dist/cli/intelligence-OFFNQGHE.js +238 -0
- package/dist/cli/intelligence-QIC4SN4X.js +182 -0
- package/dist/cli/issue-P5RNMRDG.js +159 -0
- package/dist/cli/janitor-ZNCFQ7E3.js +111 -0
- package/dist/cli/labels-ORBM3T57.js +88 -0
- package/dist/cli/lifecycle-MHR22TVI.js +273 -0
- package/dist/cli/list-LB6GCYYU.js +109 -0
- package/dist/cli/llm-H7LZWQKX.js +130 -0
- package/dist/cli/llm-OTJWPMGI.js +704 -0
- package/dist/cli/llm-cost-MLMXEAR4.js +25 -0
- package/dist/cli/llm-stream-AAEUNKRP.js +27 -0
- package/dist/cli/log-W2A5M2NA.js +76 -0
- package/dist/cli/login-SIXFFZSP.js +45 -0
- package/dist/cli/logout-G3KVLQQM.js +74 -0
- package/dist/cli/manifest-G4T6EBSI.js +354 -0
- package/dist/cli/map-VU5M72TK.js +53 -0
- package/dist/cli/memory-2E27G2G5.js +1952 -0
- package/dist/cli/memory-IAEYKXG6.js +1895 -0
- package/dist/cli/migrate-agents-v2-A52QIYNJ.js +33 -0
- package/dist/cli/migrate-claude-mem-TPDW3R4Z.js +206 -0
- package/dist/cli/next-SVH4LIDY.js +57 -0
- package/dist/cli/nexus-FPQV2EAF.js +1059 -0
- package/dist/cli/nexus-XSFXN5E6.js +2924 -0
- package/dist/cli/ops-K6LHY5J6.js +52 -0
- package/dist/cli/orchestrate-CZ2J6W3L.js +1650 -0
- package/dist/cli/orchestrate-HURUCQFT.js +950 -0
- package/dist/cli/otel-JCNPVJLZ.js +188 -0
- package/dist/cli/phase-VDFRASSO.js +221 -0
- package/dist/cli/pipeline-TCZPOEDR.js +697 -0
- package/dist/cli/pivot-V5MSQZ7L.js +88 -0
- package/dist/cli/plan-SQUGCKSM.js +49 -0
- package/dist/cli/playbook-L47GLDQD.js +230 -0
- package/dist/cli/playbook-NJVO4R6P.js +33 -0
- package/dist/cli/project-YZEC7GYF.js +331 -0
- package/dist/cli/promote-FINF4HVK.js +53 -0
- package/dist/cli/provenance-3TUWVBFR.js +141 -0
- package/dist/cli/provenance-YZG33JGM.js +129 -0
- package/dist/cli/provider-23JVLLG3.js +213 -0
- package/dist/cli/reason-FHN54O7O.js +138 -0
- package/dist/cli/reconcile-MOM5T4AX.js +128 -0
- package/dist/cli/refresh-memory-3OSTRAVK.js +45 -0
- package/dist/cli/relates-6FWUFUS2.js +260 -0
- package/dist/cli/release-G2DPSG5M.js +347 -0
- package/dist/cli/release-URX6JHZ2.js +525 -0
- package/dist/cli/remote-VIULU2T5.js +279 -0
- package/dist/cli/renderers-TGSW77J4.js +37 -0
- package/dist/cli/reorder-UIPN6TQY.js +87 -0
- package/dist/cli/reparent-ALOWWUIU.js +59 -0
- package/dist/cli/req-RH2Y3H7A.js +130 -0
- package/dist/cli/research-G2Y72HRC.js +366 -0
- package/dist/cli/restore-VBR5XNML.js +470 -0
- package/dist/cli/revert-32LDNSGP.js +240 -0
- package/dist/cli/roadmap-LFU3AG7D.js +62 -0
- package/dist/cli/run-HXRILSR7.js +245 -0
- package/dist/cli/safestop-Z5UC7NGQ.js +89 -0
- package/dist/cli/saga-Y6FZS6AM.js +286 -0
- package/dist/cli/schema-OOOKLWUE.js +195 -0
- package/dist/cli/self-update-26SOTJMH.js +504 -0
- package/dist/cli/selfimprove-4SMOCLUV.js +89 -0
- package/dist/cli/selfimprove-EB4RQLP4.js +139 -0
- package/dist/cli/sentient-QPETVE53.js +254 -0
- package/dist/cli/sentient-RGMWR4XJ.js +1088 -0
- package/dist/cli/sequence-H7DSAJPF.js +94 -0
- package/dist/cli/service-EK5MGB2D.js +156 -0
- package/dist/cli/service-GLOMZWPQ.js +437 -0
- package/dist/cli/session-HYUXAQGC.js +708 -0
- package/dist/cli/session-N5ISU56W.js +568 -0
- package/dist/cli/setup-L3YYV53D.js +323 -0
- package/dist/cli/show-364V3KY2.js +123 -0
- package/dist/cli/skill-F2KR6HW5.js +84 -0
- package/dist/cli/skills-FS3DCP6E.js +929 -0
- package/dist/cli/smoke-provider-SKUFMZXU.js +218 -0
- package/dist/cli/snapshot-EGXEQ5PR.js +120 -0
- package/dist/cli/src-LYLXHXHH.js +80 -0
- package/dist/cli/start-6DXOCCKL.js +68 -0
- package/dist/cli/stats-UVUQEGYC.js +96 -0
- package/dist/cli/status-XLKYLN42.js +157 -0
- package/dist/cli/sticky-VSTQ2I2O.js +264 -0
- package/dist/cli/sticky-XZXZDCFW.js +339 -0
- package/dist/cli/stop-VNOAFWNB.js +43 -0
- package/dist/cli/sync-YYPARW3A.js +155 -0
- package/dist/cli/tasks-C24KHTFF.js +1118 -0
- package/dist/cli/tasks-LBJC7CZV.js +175 -0
- package/dist/cli/telemetry-CU7W5WAY.js +120 -0
- package/dist/cli/templates-G42JBUY4.js +609 -0
- package/dist/cli/testing-HSRITHEY.js +147 -0
- package/dist/cli/token-J74E7TSU.js +221 -0
- package/dist/cli/tools-BI74W7VE.js +652 -0
- package/dist/cli/transcript-RGK7RSGQ.js +440 -0
- package/dist/cli/tui-BPUFHYKK.js +51 -0
- package/dist/cli/update-2KQWA27S.js +478 -0
- package/dist/cli/update-check-entry.js +124 -0
- package/dist/cli/update-notice-6SQ6WPQG.js +68 -0
- package/dist/cli/upgrade-E2MJAPC7.js +136 -0
- package/dist/cli/upgrade-XRSQ4RWH.js +243 -0
- package/dist/cli/verify-WASRGDBA.js +191 -0
- package/dist/cli/web-NJ3P67EU.js +275 -0
- package/dist/cli/workgraph-OHJ2VKJD.js +232 -0
- package/dist/cli/worktree-FVQLORFY.js +371 -0
- package/dist/cli/worktree-ZJ6JTQNG.js +287 -0
- package/package.json +13 -13
- package/studio-dist/client/_app/immutable/chunks/{DMj27Pxj.js → AH7dIemv.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{Dc2owyvE.js → BDgH40i3.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/BXDCSJ7U.js +1 -0
- package/studio-dist/client/_app/immutable/chunks/{qq3pe1aT.js → Gg4iYl59.js} +1 -1
- package/studio-dist/client/_app/immutable/entry/{app.CHWXLeE9.js → app.DUDNK-37.js} +2 -2
- package/studio-dist/client/_app/immutable/entry/start.DNmZ0pA4.js +1 -0
- package/studio-dist/client/_app/immutable/nodes/{0.DmKQGvFh.js → 0.DWqP3ail.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{1.DqJk_REO.js → 1.CZGVUP5B.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{15.GUy6kdW1.js → 15.DGaflZRS.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{16.CcnKZ8f9.js → 16.uYlarGXl.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{17.DAlQF3lQ.js → 17.CZMR0E47.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{18.vQFr-vFj.js → 18.CBC-AKH_.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{20.GVOj5j_r.js → 20.BGi43MvQ.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{24.2-wC6DOh.js → 24.Dv8ftCyR.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/25.DQPVlTDQ.js +39 -0
- package/studio-dist/client/_app/immutable/nodes/{26.C3rNqzZF.js → 26.Cl800304.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{3.b-7pzc3M.js → 3.D_fQKj9f.js} +1 -1
- package/studio-dist/client/_app/version.json +1 -1
- package/studio-dist/server/chunks/{0-BaCce-O1.js → 0-BpOagOst.js} +3 -3
- package/studio-dist/server/chunks/1-D0oRGR-C.js +9 -0
- package/studio-dist/server/chunks/{15-DRMOSIC9.js → 15-BcjHz7Tv.js} +3 -3
- package/studio-dist/server/chunks/{16-BulXhoZZ.js → 16-CXm8TUk7.js} +3 -3
- package/studio-dist/server/chunks/{17-DUEOCM0H.js → 17-mSgUK-cp.js} +3 -3
- package/studio-dist/server/chunks/{18-DP7Q8zPs.js → 18-BtfnIw1d.js} +3 -3
- package/studio-dist/server/chunks/{20-9ta6MI7q.js → 20-By1e4QDS.js} +3 -3
- package/studio-dist/server/chunks/{24-DysdL1ab.js → 24-0i2YLVxG.js} +3 -3
- package/studio-dist/server/chunks/{dist-CdoCt9zT.js → 25-DPsrqbrh.js} +797 -10736
- package/studio-dist/server/chunks/{26-Df4YXgg0.js → 26-P0XkOibm.js} +3 -3
- package/studio-dist/server/chunks/{3-BEhOhYpL.js → 3-WudjUK7e.js} +3 -3
- package/studio-dist/server/chunks/{_layout.svelte-CnLcXYG-.js → _layout.svelte-D9m81Rle.js} +4 -4
- package/studio-dist/server/chunks/{_page.svelte-DGhXqeRc.js → _page.svelte-2PDLOF83.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-Dv8tmDEC.js → _page.svelte-BjE3jm2K.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-C0qgUvzA.js → _page.svelte-Clc0vmiZ.js} +4 -4
- package/studio-dist/server/chunks/{_page.svelte-ui7LnWkL.js → _page.svelte-DABdRT3h.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-HUqTICJR.js → _page.svelte-DG3PjiHj.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-DzcZljiy.js → _page.svelte-Edy9CaE8.js} +20 -7
- package/studio-dist/server/chunks/{_page.svelte-DOl0DGOO.js → _page.svelte-Hrf3-ZR8.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-Da4q5l93.js → _page.svelte-VB4O4Nl5.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-CbyEPj2j.js → _page.svelte-d3jEgjsI.js} +3 -3
- package/studio-dist/server/chunks/{_server.ts-P4wVVksg.js → _server.ts-BcRFsyo3.js} +4 -5
- package/studio-dist/server/chunks/{_server.ts-Cr57EKWf.js → _server.ts-CEWpIFrj.js} +6 -5
- package/studio-dist/server/chunks/{_server.ts-CnKVmf_s.js → _server.ts-CLVdVIF9.js} +2 -2
- package/studio-dist/server/chunks/{_server.ts-C0evMKCk.js → _server.ts-D_j7aSy5.js} +6 -5
- package/studio-dist/server/chunks/{_server.ts-2BazvYRP.js → _server.ts-QEZF8h2q.js} +4 -5
- package/studio-dist/server/chunks/{client-CPM4LrO2.js → client-Kp1dP1od.js} +2 -2
- package/studio-dist/server/chunks/{error.svelte-ShcZo43D.js → error.svelte-WOCioJVX.js} +3 -3
- package/studio-dist/server/chunks/{hooks.server-D2qbf3Zp.js → hooks.server-DH9zkIrJ.js} +3 -1
- package/studio-dist/server/chunks/{http-BiQjEmVU.js → http-DT5kxaWk.js} +5 -4
- package/studio-dist/server/chunks/{internal-Cgsrya1j.js → internal-z0vqd5_u.js} +3 -3
- package/studio-dist/server/chunks/operations-registry-DdzmYzqX.js +10584 -0
- package/studio-dist/server/chunks/{stores-BGrpEDMK.js → stores-s2kaL315.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/client/_app/immutable/nodes/25.D1vYaH8g.js +0 -39
- package/studio-dist/server/chunks/1-CVo7Nk6d.js +0 -9
- package/studio-dist/server/chunks/25-CYsps38R.js +0 -366
|
@@ -0,0 +1,323 @@
|
|
|
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
|
+
makeOAuthAcquirer
|
|
18
|
+
} from "./chunk-UWCZY52R.js";
|
|
19
|
+
import {
|
|
20
|
+
ReadlineWizardIO,
|
|
21
|
+
StdinClosedError
|
|
22
|
+
} from "./chunk-GZFVDR44.js";
|
|
23
|
+
import "./chunk-GRU74UE4.js";
|
|
24
|
+
import "./chunk-47JYZAMS.js";
|
|
25
|
+
import "./chunk-C3B7C43W.js";
|
|
26
|
+
import {
|
|
27
|
+
defineCommand
|
|
28
|
+
} from "./chunk-PKKZPOOP.js";
|
|
29
|
+
import {
|
|
30
|
+
cliError,
|
|
31
|
+
cliOutput
|
|
32
|
+
} from "./chunk-4RGSNUUP.js";
|
|
33
|
+
import "./chunk-6JSJNYH2.js";
|
|
34
|
+
|
|
35
|
+
// packages/cleo/src/cli/commands/setup.ts
|
|
36
|
+
import {
|
|
37
|
+
createDefaultWizardRunner,
|
|
38
|
+
mergeConfigJson,
|
|
39
|
+
printWhoamiSummaryAndOfferTui,
|
|
40
|
+
SetupConfigJsonError,
|
|
41
|
+
WizardInterruptError
|
|
42
|
+
} from "@cleocode/core/setup";
|
|
43
|
+
function buildWizardOptions(args) {
|
|
44
|
+
const out = {};
|
|
45
|
+
const configJsonRaw = args["config-json"] ?? args["configJson"];
|
|
46
|
+
if (typeof configJsonRaw === "string" && configJsonRaw !== "") {
|
|
47
|
+
let parsed;
|
|
48
|
+
try {
|
|
49
|
+
parsed = JSON.parse(configJsonRaw);
|
|
50
|
+
} catch {
|
|
51
|
+
}
|
|
52
|
+
if (parsed !== null && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
53
|
+
mergeConfigJson(parsed, out);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
if (args["non-interactive"] === true || args["nonInteractive"] === true) {
|
|
57
|
+
out.nonInteractive = true;
|
|
58
|
+
}
|
|
59
|
+
if (args["reset"] === true) {
|
|
60
|
+
out.reset = true;
|
|
61
|
+
}
|
|
62
|
+
if (typeof args["provider"] === "string" && args["provider"] !== "") {
|
|
63
|
+
out.provider = args["provider"];
|
|
64
|
+
}
|
|
65
|
+
if (typeof args["api-key"] === "string" && args["api-key"] !== "") {
|
|
66
|
+
out.apiKey = args["api-key"];
|
|
67
|
+
} else if (typeof args["apiKey"] === "string" && args["apiKey"] !== "") {
|
|
68
|
+
out.apiKey = args["apiKey"];
|
|
69
|
+
}
|
|
70
|
+
if (typeof args["label"] === "string" && args["label"] !== "") {
|
|
71
|
+
out.label = args["label"];
|
|
72
|
+
}
|
|
73
|
+
if (typeof args["agent-name"] === "string" && args["agent-name"] !== "") {
|
|
74
|
+
out.agentName = args["agent-name"];
|
|
75
|
+
} else if (typeof args["agentName"] === "string" && args["agentName"] !== "") {
|
|
76
|
+
out.agentName = args["agentName"];
|
|
77
|
+
}
|
|
78
|
+
if (typeof args["strictness"] === "string" && args["strictness"] !== "") {
|
|
79
|
+
const s = args["strictness"];
|
|
80
|
+
if (s === "strict" || s === "standard" || s === "minimal") {
|
|
81
|
+
out.strictness = s;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
if (typeof args["project-root"] === "string" && args["project-root"] !== "") {
|
|
85
|
+
out.projectRoot = args["project-root"];
|
|
86
|
+
}
|
|
87
|
+
if (typeof args["harness"] === "string" && args["harness"] !== "") {
|
|
88
|
+
const h = args["harness"];
|
|
89
|
+
if (h === "pi" || h === "claude-code") {
|
|
90
|
+
out.harness = h;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
if (typeof args["brain-bridge-mode"] === "string" && args["brain-bridge-mode"] !== "") {
|
|
94
|
+
const b = args["brain-bridge-mode"];
|
|
95
|
+
if (b === "digest" || b === "file" || b === "disabled") {
|
|
96
|
+
out.brainBridgeMode = b;
|
|
97
|
+
}
|
|
98
|
+
} else if (typeof args["brainBridgeMode"] === "string" && args["brainBridgeMode"] !== "") {
|
|
99
|
+
const b = args["brainBridgeMode"];
|
|
100
|
+
if (b === "digest" || b === "file" || b === "disabled") {
|
|
101
|
+
out.brainBridgeMode = b;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
if (typeof args["retention-days"] === "string" && args["retention-days"] !== "") {
|
|
105
|
+
const days = Number.parseInt(args["retention-days"], 10);
|
|
106
|
+
if (!Number.isNaN(days) && days >= 0) {
|
|
107
|
+
out.brainRetentionDays = days;
|
|
108
|
+
}
|
|
109
|
+
} else if (typeof args["retentionDays"] === "number") {
|
|
110
|
+
const days = args["retentionDays"];
|
|
111
|
+
if (Number.isInteger(days) && days >= 0) {
|
|
112
|
+
out.brainRetentionDays = days;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
if (typeof args["sentient"] === "string" && args["sentient"] !== "") {
|
|
116
|
+
const s = args["sentient"];
|
|
117
|
+
if (s === "on") out.sentientEnabled = true;
|
|
118
|
+
else if (s === "off") out.sentientEnabled = false;
|
|
119
|
+
}
|
|
120
|
+
if (typeof args["tier2"] === "string" && args["tier2"] !== "") {
|
|
121
|
+
const t = args["tier2"];
|
|
122
|
+
if (t === "on") out.tier2Enabled = true;
|
|
123
|
+
else if (t === "off") out.tier2Enabled = false;
|
|
124
|
+
}
|
|
125
|
+
if (args["signaldock-enabled"] === true) {
|
|
126
|
+
out.signaldockEnabled = true;
|
|
127
|
+
} else if (args["signaldock-enabled"] === false) {
|
|
128
|
+
out.signaldockEnabled = false;
|
|
129
|
+
}
|
|
130
|
+
if (typeof args["signaldock-endpoint"] === "string" && args["signaldock-endpoint"] !== "") {
|
|
131
|
+
out.signaldockEndpoint = args["signaldock-endpoint"];
|
|
132
|
+
}
|
|
133
|
+
if (args["studio-enabled"] === true) {
|
|
134
|
+
out.studioEnabled = true;
|
|
135
|
+
} else if (args["studio-enabled"] === false) {
|
|
136
|
+
out.studioEnabled = false;
|
|
137
|
+
}
|
|
138
|
+
if (typeof args["default-model"] === "string" && args["default-model"] !== "") {
|
|
139
|
+
out.defaultModel = args["default-model"];
|
|
140
|
+
} else if (typeof args["defaultModel"] === "string" && args["defaultModel"] !== "") {
|
|
141
|
+
out.defaultModel = args["defaultModel"];
|
|
142
|
+
}
|
|
143
|
+
const roleBindingsRaw = args["role-bindings"] ?? args["roleBindings"];
|
|
144
|
+
if (typeof roleBindingsRaw === "string" && roleBindingsRaw !== "") {
|
|
145
|
+
try {
|
|
146
|
+
const parsed = JSON.parse(roleBindingsRaw);
|
|
147
|
+
if (parsed !== null && typeof parsed === "object" && !Array.isArray(parsed)) {
|
|
148
|
+
out.roleBindings = parsed;
|
|
149
|
+
}
|
|
150
|
+
} catch {
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
return out;
|
|
154
|
+
}
|
|
155
|
+
function wrapSingleSection(name, result) {
|
|
156
|
+
return {
|
|
157
|
+
sectionsRun: [name],
|
|
158
|
+
summary: [`${name}: ${result.summary}`],
|
|
159
|
+
// Single-section runs never trigger the full first-run completion flow.
|
|
160
|
+
firstRunComplete: false
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
function isOk(result) {
|
|
164
|
+
return !result.summary.some((line) => /:\s*failed:/i.test(line));
|
|
165
|
+
}
|
|
166
|
+
async function runSetup(args, io) {
|
|
167
|
+
const options = buildWizardOptions(args);
|
|
168
|
+
const runner = createDefaultWizardRunner({ oauthAcquirer: makeOAuthAcquirer(options.label) });
|
|
169
|
+
const sectionArg = typeof args["section"] === "string" ? args["section"] : null;
|
|
170
|
+
let runResult;
|
|
171
|
+
if (sectionArg) {
|
|
172
|
+
const known = runner.list().map((r) => r.section);
|
|
173
|
+
if (!known.includes(sectionArg)) {
|
|
174
|
+
throw new Error(`cleo setup: unknown section '${sectionArg}'. Known: ${known.join(", ")}`);
|
|
175
|
+
}
|
|
176
|
+
const single = await runner.runSection(sectionArg, io, options);
|
|
177
|
+
runResult = wrapSingleSection(sectionArg, single);
|
|
178
|
+
} else {
|
|
179
|
+
runResult = await runner.run(io, options);
|
|
180
|
+
}
|
|
181
|
+
return {
|
|
182
|
+
sectionsRun: runResult.sectionsRun,
|
|
183
|
+
summary: runResult.summary,
|
|
184
|
+
ok: isOk(runResult),
|
|
185
|
+
firstRunComplete: runResult.firstRunComplete
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
var setupCommand = defineCommand({
|
|
189
|
+
meta: {
|
|
190
|
+
name: "setup",
|
|
191
|
+
description: "Interactive setup wizard \u2014 runs every section in canonical order (llm \u2192 system-one \u2192 models-roles \u2192 identity \u2192 sentient \u2192 project-conventions \u2192 harness \u2192 brain \u2192 integrations \u2192 telemetry \u2192 verification); system-one is optional. Use --section <name> for a single section, --non-interactive with section-specific flags to configure without prompts, --config-json for fully scripted setup, or --reset to reconfigure already-set sections."
|
|
192
|
+
},
|
|
193
|
+
args: {
|
|
194
|
+
section: {
|
|
195
|
+
type: "string",
|
|
196
|
+
description: "Run only one named section. Valid: llm | system-one | models-roles | identity | sentient | harness | brain | project-conventions | integrations | nexus-account | telemetry | verification"
|
|
197
|
+
},
|
|
198
|
+
"non-interactive": {
|
|
199
|
+
type: "boolean",
|
|
200
|
+
description: "Skip prompts. Requires section-specific flags (e.g. --provider/--api-key for llm, --harness for harness, --brain-bridge-mode for brain, --sentient/--tier2 for sentient, --signaldock-enabled/--signaldock-endpoint/--studio-enabled for integrations). Missing required flags emit E_SETUP_MISSING_FLAG."
|
|
201
|
+
},
|
|
202
|
+
provider: {
|
|
203
|
+
type: "string",
|
|
204
|
+
description: "LLM provider id when --non-interactive (anthropic, openai, gemini, openrouter, moonshot, deepseek, xai, groq, ollama)."
|
|
205
|
+
},
|
|
206
|
+
"api-key": {
|
|
207
|
+
type: "string",
|
|
208
|
+
description: "API key used when --non-interactive --provider is set."
|
|
209
|
+
},
|
|
210
|
+
label: {
|
|
211
|
+
type: "string",
|
|
212
|
+
description: "Optional credential label override (defaults to 'cli-input')."
|
|
213
|
+
},
|
|
214
|
+
"agent-name": {
|
|
215
|
+
type: "string",
|
|
216
|
+
description: "Override agent display name for the identity section."
|
|
217
|
+
},
|
|
218
|
+
strictness: {
|
|
219
|
+
type: "string",
|
|
220
|
+
description: "Project-conventions strictness preset: 'strict' | 'standard' | 'minimal'."
|
|
221
|
+
},
|
|
222
|
+
"project-root": {
|
|
223
|
+
type: "string",
|
|
224
|
+
description: "Override project root path (defaults to process.cwd())."
|
|
225
|
+
},
|
|
226
|
+
harness: {
|
|
227
|
+
type: "string",
|
|
228
|
+
description: "Active harness for the harness section when --non-interactive: 'pi' | 'claude-code'."
|
|
229
|
+
},
|
|
230
|
+
"brain-bridge-mode": {
|
|
231
|
+
type: "string",
|
|
232
|
+
description: "BRAIN memory bridge mode for the brain section when --non-interactive: 'digest' | 'file' | 'disabled'."
|
|
233
|
+
},
|
|
234
|
+
sentient: {
|
|
235
|
+
type: "string",
|
|
236
|
+
description: "Enable or disable the sentient daemon for the sentient section when --non-interactive: 'on' | 'off'."
|
|
237
|
+
},
|
|
238
|
+
tier2: {
|
|
239
|
+
type: "string",
|
|
240
|
+
description: "Enable or disable Tier-2 proposals for the sentient section when --non-interactive: 'on' | 'off'."
|
|
241
|
+
},
|
|
242
|
+
"config-json": {
|
|
243
|
+
type: "string",
|
|
244
|
+
description: `JSON bag of per-section options. Keys are section IDs ('identity', 'llm', 'brain', 'sentient', 'harness', 'project-conventions', 'integrations', 'verification'), values are WizardOptions sub-objects. Example: '{"identity":{"agentName":"Atlas"},"llm":{"provider":"anthropic","apiKey":"sk-ant-..."}}'. Explicit CLI flags take precedence over configJson values.`
|
|
245
|
+
},
|
|
246
|
+
reset: {
|
|
247
|
+
type: "boolean",
|
|
248
|
+
description: "Clear the 'already configured' sentinel before running \u2014 forces all sections to re-run even if they report isConfigured()=true. Does NOT clear the credential pool; use 'cleo llm remove' for that."
|
|
249
|
+
},
|
|
250
|
+
"retention-days": {
|
|
251
|
+
type: "string",
|
|
252
|
+
description: "BRAIN retention days for the brain section when --non-interactive (0 = retain forever, default 0). Must be a non-negative integer."
|
|
253
|
+
},
|
|
254
|
+
"signaldock-enabled": {
|
|
255
|
+
type: "boolean",
|
|
256
|
+
description: "Enable (true) or disable (false) the SignalDock transport. Used by the integrations section."
|
|
257
|
+
},
|
|
258
|
+
"signaldock-endpoint": {
|
|
259
|
+
type: "string",
|
|
260
|
+
description: "SignalDock endpoint URL for the integrations section (e.g. http://localhost:4000). Must be a valid HTTP(S) URL."
|
|
261
|
+
},
|
|
262
|
+
"studio-enabled": {
|
|
263
|
+
type: "boolean",
|
|
264
|
+
description: "Enable (true) or disable (false) the Studio web UI. Used by the integrations section."
|
|
265
|
+
},
|
|
266
|
+
"default-model": {
|
|
267
|
+
type: "string",
|
|
268
|
+
description: "Default model id for the global binding (models-roles section, --non-interactive). Equivalent to `cleo llm use --model`."
|
|
269
|
+
},
|
|
270
|
+
"role-bindings": {
|
|
271
|
+
type: "string",
|
|
272
|
+
description: `JSON map of per-role profile pins for the models-roles section (--non-interactive). Keys are role names (extraction|consolidation|derivation|hygiene|judgement); values are {provider, model?, credentialLabel?}. Example: '{"extraction":{"provider":"anthropic","model":"claude-..."}}'.`
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
async run({ args }) {
|
|
276
|
+
const io = new ReadlineWizardIO(process.stdin, process.stderr);
|
|
277
|
+
let result;
|
|
278
|
+
try {
|
|
279
|
+
result = await runSetup(args, io);
|
|
280
|
+
} catch (err) {
|
|
281
|
+
io.close();
|
|
282
|
+
if (err instanceof WizardInterruptError || err?.isWizardInterruptError) {
|
|
283
|
+
process.stderr.write("Setup interrupted. Run 'cleo setup' to continue.\n");
|
|
284
|
+
process.exit(130);
|
|
285
|
+
}
|
|
286
|
+
if (err instanceof WizardInterruptError) {
|
|
287
|
+
process.stderr.write("Setup interrupted. Run 'cleo setup' to continue.\n");
|
|
288
|
+
process.exit(130);
|
|
289
|
+
}
|
|
290
|
+
if (err instanceof SetupConfigJsonError) {
|
|
291
|
+
cliError(err.message, 6, { name: err.codeName, fix: err.fix });
|
|
292
|
+
process.exit(6);
|
|
293
|
+
}
|
|
294
|
+
if (StdinClosedError.is(err)) {
|
|
295
|
+
cliError(err.message, 1, {
|
|
296
|
+
name: err.codeName,
|
|
297
|
+
fix: "Run cleo setup interactively (with a TTY) or use --non-interactive flags."
|
|
298
|
+
});
|
|
299
|
+
process.exit(1);
|
|
300
|
+
}
|
|
301
|
+
throw err;
|
|
302
|
+
} finally {
|
|
303
|
+
io.close();
|
|
304
|
+
}
|
|
305
|
+
cliOutput(result, {
|
|
306
|
+
command: "setup",
|
|
307
|
+
operation: "setup.run",
|
|
308
|
+
message: result.ok ? `Setup completed (${result.sectionsRun.length} section(s)).` : `Setup finished with errors (${result.sectionsRun.length} section(s)).`
|
|
309
|
+
});
|
|
310
|
+
if (result.ok && result.firstRunComplete) {
|
|
311
|
+
await printWhoamiSummaryAndOfferTui(io);
|
|
312
|
+
}
|
|
313
|
+
if (!result.ok) {
|
|
314
|
+
process.exit(1);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
export {
|
|
319
|
+
buildWizardOptions,
|
|
320
|
+
runSetup,
|
|
321
|
+
setupCommand
|
|
322
|
+
};
|
|
323
|
+
//# sourceMappingURL=setup-L3YYV53D.js.map
|
|
@@ -0,0 +1,123 @@
|
|
|
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
|
+
getOperationParams,
|
|
18
|
+
paramsToCittyArgs
|
|
19
|
+
} from "./chunk-RRKP7HLU.js";
|
|
20
|
+
import {
|
|
21
|
+
dispatchFromCli,
|
|
22
|
+
dispatchRaw
|
|
23
|
+
} from "./chunk-L7ONYSV6.js";
|
|
24
|
+
import "./chunk-6N6WGLXE.js";
|
|
25
|
+
import "./chunk-4VASFLUW.js";
|
|
26
|
+
import {
|
|
27
|
+
defineCommand
|
|
28
|
+
} from "./chunk-PKKZPOOP.js";
|
|
29
|
+
import "./chunk-QKMBWYAS.js";
|
|
30
|
+
import {
|
|
31
|
+
cliOutput
|
|
32
|
+
} from "./chunk-4RGSNUUP.js";
|
|
33
|
+
import "./chunk-6JSJNYH2.js";
|
|
34
|
+
import "./chunk-D7BAQNV2.js";
|
|
35
|
+
import "./chunk-TYC7G5LF.js";
|
|
36
|
+
|
|
37
|
+
// packages/cleo/src/cli/commands/show.ts
|
|
38
|
+
var showCommand = defineCommand({
|
|
39
|
+
meta: {
|
|
40
|
+
name: "show",
|
|
41
|
+
description: "Show task details by ID. Accepts SEVERAL ids \u2014 `cleo show T1 T2 T3` returns them in one envelope and pays CLI startup once instead of per task (gh#1207). MVI-projected (id + title + status + key metadata) by default; pass --verbose / --full to receive the complete record with description, acceptance, verification, evidence, etc. (T9922)"
|
|
42
|
+
},
|
|
43
|
+
args: {
|
|
44
|
+
...paramsToCittyArgs(getOperationParams("query", "tasks", "show")),
|
|
45
|
+
// T9922 — MVI record projection opt-out flags. The global parser in
|
|
46
|
+
// cli/index.ts reads these too; the declarations here surface them in
|
|
47
|
+
// `cleo show --help` and document the contract for agents.
|
|
48
|
+
verbose: {
|
|
49
|
+
type: "boolean",
|
|
50
|
+
description: "Return the full task record (description, acceptance, verification, evidence) instead of the MVI projection. T9922."
|
|
51
|
+
},
|
|
52
|
+
full: {
|
|
53
|
+
type: "boolean",
|
|
54
|
+
description: "Alias for --verbose. T9922."
|
|
55
|
+
},
|
|
56
|
+
// T9932 — 1-line summary render. Global flag; parsed by cli/index.ts.
|
|
57
|
+
summary: {
|
|
58
|
+
type: "boolean",
|
|
59
|
+
description: 'Render the task as a single line "<id> [<status>] <title-truncated-60>". Composes with --output: --output {id|table|count|silent} wins. T9932.'
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
async run({ args }) {
|
|
63
|
+
const shared = {
|
|
64
|
+
history: args["history"] === true,
|
|
65
|
+
ivtrHistory: args["ivtr-history"] === true,
|
|
66
|
+
relations: args["relations"] === true
|
|
67
|
+
};
|
|
68
|
+
const ids = collectTaskIds(args);
|
|
69
|
+
if (ids.length <= 1) {
|
|
70
|
+
await dispatchFromCli(
|
|
71
|
+
"query",
|
|
72
|
+
"tasks",
|
|
73
|
+
"show",
|
|
74
|
+
{ taskId: args["taskId"], ...shared },
|
|
75
|
+
{ command: "show" }
|
|
76
|
+
);
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
const tasks = [];
|
|
80
|
+
const notFound = [];
|
|
81
|
+
for (const taskId of ids) {
|
|
82
|
+
const res = await dispatchRaw("query", "tasks", "show", { taskId, ...shared });
|
|
83
|
+
if (res.success) {
|
|
84
|
+
tasks.push(unwrapShowRecord(res.data));
|
|
85
|
+
} else {
|
|
86
|
+
notFound.push({
|
|
87
|
+
taskId,
|
|
88
|
+
reason: res.error?.message ?? "not found"
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
cliOutput(
|
|
93
|
+
{ tasks, count: tasks.length, requested: ids.length, notFound },
|
|
94
|
+
{ command: "show", operation: "tasks.show.batch" }
|
|
95
|
+
);
|
|
96
|
+
if (notFound.length > 0 && (process.exitCode ?? 0) === 0) {
|
|
97
|
+
process.exitCode = 1;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
function unwrapShowRecord(data) {
|
|
102
|
+
if (typeof data !== "object" || data === null || !("task" in data)) return data;
|
|
103
|
+
const wrapped = data;
|
|
104
|
+
return typeof wrapped.task === "object" && wrapped.task !== null ? wrapped.task : data;
|
|
105
|
+
}
|
|
106
|
+
function collectTaskIds(args) {
|
|
107
|
+
const out = [];
|
|
108
|
+
const push = (v) => {
|
|
109
|
+
if (typeof v !== "string") return;
|
|
110
|
+
const id = v.trim();
|
|
111
|
+
if (id.length === 0 || id.startsWith("-")) return;
|
|
112
|
+
if (!out.includes(id)) out.push(id);
|
|
113
|
+
};
|
|
114
|
+
push(args["taskId"]);
|
|
115
|
+
const rest = args["_"];
|
|
116
|
+
if (Array.isArray(rest)) for (const v of rest) push(v);
|
|
117
|
+
return out;
|
|
118
|
+
}
|
|
119
|
+
export {
|
|
120
|
+
showCommand,
|
|
121
|
+
unwrapShowRecord
|
|
122
|
+
};
|
|
123
|
+
//# sourceMappingURL=show-364V3KY2.js.map
|
|
@@ -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
|
+
isSubCommandDispatch
|
|
18
|
+
} from "./chunk-YY66LFZF.js";
|
|
19
|
+
import {
|
|
20
|
+
defineCommand
|
|
21
|
+
} from "./chunk-PKKZPOOP.js";
|
|
22
|
+
import {
|
|
23
|
+
cliError,
|
|
24
|
+
cliOutput
|
|
25
|
+
} from "./chunk-4RGSNUUP.js";
|
|
26
|
+
import "./chunk-6JSJNYH2.js";
|
|
27
|
+
|
|
28
|
+
// packages/cleo/src/cli/commands/skill.ts
|
|
29
|
+
var restoreCommand = defineCommand({
|
|
30
|
+
meta: {
|
|
31
|
+
name: "restore",
|
|
32
|
+
description: "Restore a previously-archived skill from ~/.cleo/skills/.archive/"
|
|
33
|
+
},
|
|
34
|
+
args: {
|
|
35
|
+
"skill-name": {
|
|
36
|
+
type: "positional",
|
|
37
|
+
description: "Name of the archived skill to restore",
|
|
38
|
+
required: true
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
async run({ args }) {
|
|
42
|
+
const name = args["skill-name"];
|
|
43
|
+
try {
|
|
44
|
+
const { restoreSkillFromArchive } = await import("@cleocode/core/sentient/curator.js");
|
|
45
|
+
const result = await restoreSkillFromArchive(name);
|
|
46
|
+
cliOutput(
|
|
47
|
+
{
|
|
48
|
+
name: result.name,
|
|
49
|
+
restoredTo: result.restoredTo,
|
|
50
|
+
restoredFrom: result.restoredFrom,
|
|
51
|
+
restoredAt: result.restoredAt
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
command: "skill restore",
|
|
55
|
+
operation: "skill.restore",
|
|
56
|
+
message: `restored ${result.name} \u2192 ${result.restoredTo}`
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
} catch (error) {
|
|
60
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
61
|
+
cliError(message, "E_RESTORE_FAILED", void 0, { operation: "skill.restore" });
|
|
62
|
+
process.exit(1);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
var skillCommand = defineCommand({
|
|
67
|
+
meta: {
|
|
68
|
+
name: "skill",
|
|
69
|
+
description: "Single-skill operations (restore, \u2026)"
|
|
70
|
+
},
|
|
71
|
+
subCommands: {
|
|
72
|
+
restore: restoreCommand
|
|
73
|
+
},
|
|
74
|
+
async run({ cmd, rawArgs }) {
|
|
75
|
+
if (isSubCommandDispatch(rawArgs, cmd.subCommands)) return;
|
|
76
|
+
process.stdout.write(
|
|
77
|
+
"usage: cleo skill restore <name>\n see `cleo skill --help` for the full list of single-skill verbs.\n"
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
export {
|
|
82
|
+
skillCommand
|
|
83
|
+
};
|
|
84
|
+
//# sourceMappingURL=skill-F2KR6HW5.js.map
|