@cleocode/cleo 2026.10.3 → 2026.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cleo.js +11 -1
- package/dist/cli/adapter-LVXHFBC4.js +158 -0
- package/dist/cli/add-WUAV7LDT.js +443 -0
- package/dist/cli/add-batch-U2DLKAQC.js +163 -0
- package/dist/cli/admin-I7BQYVZD.js +340 -0
- package/dist/cli/adr-K2THMQBS.js +171 -0
- package/dist/cli/agent-WQ6XY2DW.js +2366 -0
- package/dist/cli/agent-outputs-BJIYLVTU.js +84 -0
- package/dist/cli/analyze-PGQZWGOC.js +48 -0
- package/dist/cli/archive-5LZPF7C3.js +64 -0
- package/dist/cli/archive-stats-U6CYC6JM.js +100 -0
- package/dist/cli/attention-SOURWCNI.js +167 -0
- package/dist/cli/audit-FO2Y4LH2.js +122 -0
- package/dist/cli/auth-ED7TAIXI.js +491 -0
- package/dist/cli/backfill-32TRAYRD.js +156 -0
- package/dist/cli/backup-LEJMZJKL.js +587 -0
- package/dist/cli/backup-inspect-6HPLUEI2.js +26 -0
- package/dist/cli/backup-recover-2BTYBZU2.js +29 -0
- package/dist/cli/blockers-5JULUJTV.js +54 -0
- package/dist/cli/brain-273N3FW4.js +400 -0
- package/dist/cli/briefing-7H6OLECX.js +212 -0
- package/dist/cli/caamp-MFQVN6VU.js +181 -0
- package/dist/cli/cancel-SCMJTXZB.js +84 -0
- package/dist/cli/canon-NPF5RODM.js +142 -0
- package/dist/cli/canon-docs-2GTOLF7Y.js +26 -0
- package/dist/cli/cant-46XCUP4P.js +239 -0
- package/dist/cli/changeset-32NMBGG2.js +248 -0
- package/dist/cli/check-RWJLBCI2.js +907 -0
- package/dist/cli/checkpoint-37HMMKD7.js +128 -0
- package/dist/cli/chunk-2JIJD2I7.js +108 -0
- package/dist/cli/chunk-37NU2XDP.js +171 -0
- package/dist/cli/chunk-3IOQVUO7.js +17308 -0
- package/dist/cli/chunk-3PGH67MT.js +175 -0
- package/dist/cli/chunk-3ZO3M37V.js +1002 -0
- package/dist/cli/chunk-47JYZAMS.js +30 -0
- package/dist/cli/chunk-5J2VH3BC.js +66 -0
- package/dist/cli/chunk-5ZFFUFH7.js +92 -0
- package/dist/cli/chunk-6JSJNYH2.js +114 -0
- package/dist/cli/chunk-7INMKEAD.js +85 -0
- package/dist/cli/chunk-A2IUEIM5.js +278 -0
- package/dist/cli/chunk-AWCQH2W5.js +35 -0
- package/dist/cli/chunk-AYA6F4ZT.js +56 -0
- package/dist/cli/chunk-BCEXRFA2.js +76 -0
- package/dist/cli/chunk-BPEVD37G.js +124 -0
- package/dist/cli/chunk-C3B7C43W.js +16 -0
- package/dist/cli/chunk-DVTPIZJM.js +72 -0
- package/dist/cli/chunk-DYABOIHB.js +96 -0
- package/dist/cli/chunk-EBRZ76HS.js +51 -0
- package/dist/cli/chunk-EGOTK2HA.js +57 -0
- package/dist/cli/chunk-EOPQFCSR.js +148 -0
- package/dist/cli/chunk-FORFDPP5.js +288 -0
- package/dist/cli/chunk-GFGLLDXX.js +110 -0
- package/dist/cli/chunk-GH37QXW5.js +280 -0
- package/dist/cli/chunk-GZFVDR44.js +320 -0
- package/dist/cli/chunk-I3CRQQAD.js +225 -0
- package/dist/cli/chunk-J3ZFM3UQ.js +754 -0
- package/dist/cli/chunk-JNZJPIPJ.js +90 -0
- package/dist/cli/chunk-KHB52JNB.js +209 -0
- package/dist/cli/chunk-KJDWWQFY.js +46 -0
- package/dist/cli/chunk-LKNUA3SB.js +83 -0
- package/dist/cli/chunk-LVGIFMCV.js +163 -0
- package/dist/cli/chunk-LWQBJQSE.js +67 -0
- package/dist/cli/chunk-MNJRLSEQ.js +107 -0
- package/dist/cli/chunk-NRKWJLMS.js +91 -0
- package/dist/cli/chunk-NSHV2JNM.js +48 -0
- package/dist/cli/chunk-NWTATTEQ.js +210 -0
- package/dist/cli/chunk-OAPN46TC.js +89 -0
- package/dist/cli/chunk-OGV57L4J.js +59 -0
- package/dist/cli/chunk-OILHT47L.js +252 -0
- package/dist/cli/chunk-OPTEQKBB.js +258 -0
- package/dist/cli/chunk-PKKZPOOP.js +352 -0
- package/dist/cli/chunk-QA6T2LQ5.js +71 -0
- package/dist/cli/chunk-QFFQSKRC.js +4497 -0
- package/dist/cli/chunk-QPUY2HQZ.js +74 -0
- package/dist/cli/chunk-REUTEW3O.js +258 -0
- package/dist/cli/chunk-S24YI723.js +88 -0
- package/dist/cli/chunk-SXXOC6KZ.js +209 -0
- package/dist/cli/chunk-ULN4OKQQ.js +259 -0
- package/dist/cli/chunk-V5GBGOGM.js +46 -0
- package/dist/cli/chunk-VLEYOOPH.js +31 -0
- package/dist/cli/chunk-W33Q3FBH.js +66 -0
- package/dist/cli/chunk-W3JLYKKY.js +140 -0
- package/dist/cli/chunk-XRAX6XFP.js +48 -0
- package/dist/cli/chunk-YGKEECTI.js +78 -0
- package/dist/cli/chunk-YUZJI67I.js +108 -0
- package/dist/cli/chunk-YY66LFZF.js +29 -0
- package/dist/cli/chunk-ZBISIPCK.js +78 -0
- package/dist/cli/chunk-ZZTHTMQP.js +77 -0
- package/dist/cli/claim-KPENYHIQ.js +96 -0
- package/dist/cli/classify-DRVMCFQU.js +117 -0
- package/dist/cli/cli-T3CR7J57.js +48 -0
- package/dist/cli/cloud-PPQ4O5TX.js +565 -0
- package/dist/cli/cockpit-RZKLGYPN.js +790 -0
- package/dist/cli/code-Z5CTMVTD.js +178 -0
- package/dist/cli/complete-UBOCOBRB.js +34 -0
- package/dist/cli/complexity-BV2AGQRZ.js +56 -0
- package/dist/cli/compliance-32PD5Y47.js +276 -0
- package/dist/cli/conduit-VDKCH33F.js +307 -0
- package/dist/cli/config-I72JAXK4.js +516 -0
- package/dist/cli/consensus-LFILLSTK.js +121 -0
- package/dist/cli/context-XUUVFVTP.js +141 -0
- package/dist/cli/contribution-37NQ4N5R.js +111 -0
- package/dist/cli/curator-TFDXU2EX.js +139 -0
- package/dist/cli/current-C4SN5BWV.js +42 -0
- package/dist/cli/daemon-DV25JQ62.js +451 -0
- package/dist/cli/dash-TFU4RLQW.js +70 -0
- package/dist/cli/decide-5VPMNTSI.js +419 -0
- package/dist/cli/decompose-KOYEZNJL.js +77 -0
- package/dist/cli/decomposition-7OHUFIQN.js +121 -0
- package/dist/cli/delete-Q7YCAFY5.js +68 -0
- package/dist/cli/deps-6UZKLDGJ.js +463 -0
- package/dist/cli/detect-FERY35UL.js +45 -0
- package/dist/cli/detect-drift-UL2JTPUK.js +408 -0
- package/dist/cli/diagnostics-TI5QAZXR.js +132 -0
- package/dist/cli/docs-QI2PRN3T.js +3095 -0
- package/dist/cli/doctor-AX5TICQO.js +1253 -0
- package/dist/cli/doctor-ac-bindings-YPMYHU2G.js +26 -0
- package/dist/cli/doctor-acceptance-drift-PYNFGMKB.js +26 -0
- package/dist/cli/doctor-credentials-UZRIADKM.js +26 -0
- package/dist/cli/doctor-db-substrate-Q2TOYM2S.js +27 -0
- package/dist/cli/doctor-dep-cycles-GCVYZY6F.js +26 -0
- package/dist/cli/doctor-exodus-RO5SUTC2.js +26 -0
- package/dist/cli/doctor-exodus-residue-EM2AWQXP.js +26 -0
- package/dist/cli/doctor-fk-check-Q3FOLECE.js +26 -0
- package/dist/cli/doctor-global-delivery-TNOAQ3NP.js +26 -0
- package/dist/cli/doctor-heavy-command-hook-IO3QAQLG.js +26 -0
- package/dist/cli/doctor-legacy-backups-O2YH5VLS.js +26 -0
- package/dist/cli/doctor-legacy-reaper-VSEJEIFA.js +26 -0
- package/dist/cli/doctor-malformed-ids-LQ766V5K.js +26 -0
- package/dist/cli/doctor-manifest-rows-6FQDNHLH.js +26 -0
- package/dist/cli/doctor-memory-guard-J4PSEKB5.js +26 -0
- package/dist/cli/doctor-migrations-ONOH56YM.js +26 -0
- package/dist/cli/doctor-nexus-residency-FUQAX7PV.js +26 -0
- package/dist/cli/doctor-project-identity-GUDK3HYX.js +26 -0
- package/dist/cli/doctor-projects-7L3BNL4O.js +30 -0
- package/dist/cli/doctor-projects-registry-TEAVHFQU.js +26 -0
- package/dist/cli/doctor-release-readiness-IEGHX6SL.js +26 -0
- package/dist/cli/doctor-repair-NBONOSZU.js +26 -0
- package/dist/cli/doctor-skill-fixtures-7Y6L34A3.js +26 -0
- package/dist/cli/doctor-split-brain-TUKIGVHF.js +26 -0
- package/dist/cli/doctor-superseded-store-BHZY2B2L.js +26 -0
- package/dist/cli/doctor-tool-locks-REQMIVYK.js +26 -0
- package/dist/cli/doctor-twin-collapse-222GOSPE.js +26 -0
- package/dist/cli/doctor-worktree-stores-J7TCRVJ3.js +26 -0
- package/dist/cli/done-V3AOO65B.js +195 -0
- package/dist/cli/dynamic-RR4HB7BB.js +29 -0
- package/dist/cli/event-EGNPGE5A.js +372 -0
- package/dist/cli/exists-H4SDCBPL.js +65 -0
- package/dist/cli/exodus-KALO3B3X.js +401 -0
- package/dist/cli/export-ROFOCG4M.js +92 -0
- package/dist/cli/export-tasks-US3WBIEQ.js +96 -0
- package/dist/cli/federation-SUIB5QWT.js +145 -0
- package/dist/cli/find-YICG4BG6.js +177 -0
- package/dist/cli/focus-TKCZPKOM.js +55 -0
- package/dist/cli/gateway-H4HFDC3E.js +77 -0
- package/dist/cli/gateway-auto-start-EDK7XI6E.js +36 -0
- package/dist/cli/gc-5R2TUY5T.js +291 -0
- package/dist/cli/go-PRQFK5YG.js +206 -0
- package/dist/cli/goal-7CZRMLHC.js +212 -0
- package/dist/cli/grade-PY2YRPUS.js +56 -0
- package/dist/cli/graph-XIXMCFKG.js +878 -0
- package/dist/cli/history-EIXADPAD.js +137 -0
- package/dist/cli/hook-UF7J7R6D.js +57 -0
- package/dist/cli/hook-entry.js +244 -19
- package/dist/cli/hygiene-3QZ2NI7P.js +55 -0
- package/dist/cli/import-R73SO444.js +88 -0
- package/dist/cli/import-tasks-O22FZJ4U.js +108 -0
- package/dist/cli/index.js +419 -94612
- package/dist/cli/init-IHEJDQWU.js +40 -0
- package/dist/cli/inject-LSRVWNCP.js +82 -0
- package/dist/cli/install-global-4AZUCH6U.js +95 -0
- package/dist/cli/intelligence-2OSFOGD2.js +181 -0
- package/dist/cli/issue-IIWEDNFC.js +158 -0
- package/dist/cli/janitor-GPMC7VOR.js +111 -0
- package/dist/cli/labels-5NPOIQXN.js +87 -0
- package/dist/cli/lifecycle-4FFS2K2T.js +272 -0
- package/dist/cli/list-47KEUGPQ.js +108 -0
- package/dist/cli/llm-G5B3I6GD.js +703 -0
- package/dist/cli/llm-cost-S7RS6BVA.js +25 -0
- package/dist/cli/llm-stream-24A45NTS.js +27 -0
- package/dist/cli/log-XF6H2XSD.js +75 -0
- package/dist/cli/login-LBPLGHYG.js +43 -0
- package/dist/cli/logout-SX4JSJIV.js +74 -0
- package/dist/cli/manifest-NMCW4PIW.js +353 -0
- package/dist/cli/map-BU72KMGF.js +52 -0
- package/dist/cli/memory-UHYIVGVM.js +1956 -0
- package/dist/cli/migrate-agents-v2-OO7OILZK.js +33 -0
- package/dist/cli/migrate-claude-mem-EDNYUY3K.js +201 -0
- package/dist/cli/next-RZFRG5X7.js +56 -0
- package/dist/cli/nexus-4S4Z5EVU.js +2923 -0
- package/dist/cli/ops-KR7AWCG3.js +51 -0
- package/dist/cli/orchestrate-HOYZY3VX.js +948 -0
- package/dist/cli/otel-U7IIRBCT.js +188 -0
- package/dist/cli/phase-NYZFHUE5.js +220 -0
- package/dist/cli/pivot-FF2CVUZL.js +87 -0
- package/dist/cli/plan-3SL2NTRV.js +48 -0
- package/dist/cli/playbook-2FCBV7N3.js +229 -0
- package/dist/cli/project-WDX2TGMC.js +330 -0
- package/dist/cli/promote-YINYFBZY.js +52 -0
- package/dist/cli/provenance-C7AYD7WG.js +128 -0
- package/dist/cli/provider-QLJEDQBR.js +212 -0
- package/dist/cli/reason-JF5BHBM5.js +137 -0
- package/dist/cli/reconcile-NMISHDGX.js +127 -0
- package/dist/cli/refresh-memory-EY5YNICV.js +45 -0
- package/dist/cli/relates-R3ZPICAY.js +259 -0
- package/dist/cli/release-4ZJTMUUT.js +524 -0
- package/dist/cli/remote-QSONJDIK.js +279 -0
- package/dist/cli/renderers-64OR3IWX.js +37 -0
- package/dist/cli/reorder-J3DOE7ST.js +86 -0
- package/dist/cli/reparent-2OUMKEZX.js +58 -0
- package/dist/cli/req-TZB7OFKO.js +129 -0
- package/dist/cli/research-MTD7EX45.js +365 -0
- package/dist/cli/restore-VEUOX7NF.js +423 -0
- package/dist/cli/revert-3YF2IL5G.js +240 -0
- package/dist/cli/roadmap-7OOQLXKG.js +61 -0
- package/dist/cli/run-2U5NZV5Z.js +211 -0
- package/dist/cli/safestop-VR4VK56D.js +88 -0
- package/dist/cli/saga-SEWPIOX2.js +285 -0
- package/dist/cli/schema-C52WZ35V.js +195 -0
- package/dist/cli/self-update-GQIGUDPS.js +504 -0
- package/dist/cli/selfimprove-3Y5L4ECT.js +88 -0
- package/dist/cli/sentient-M4YMAVGV.js +1088 -0
- package/dist/cli/sequence-6UBMA4IF.js +93 -0
- package/dist/cli/service-5R7SILZ7.js +155 -0
- package/dist/cli/session-3C6AAC4Y.js +707 -0
- package/dist/cli/setup-BTUBW5PU.js +323 -0
- package/dist/cli/show-MXT2V7TF.js +122 -0
- package/dist/cli/skill-GFUZOU2C.js +84 -0
- package/dist/cli/skills-EDWLKAF3.js +928 -0
- package/dist/cli/smoke-provider-SKUFMZXU.js +218 -0
- package/dist/cli/snapshot-GUWMURCM.js +119 -0
- package/dist/cli/src-66GAKPXR.js +80 -0
- package/dist/cli/start-QFG56RGN.js +67 -0
- package/dist/cli/stats-GW55P7RR.js +95 -0
- package/dist/cli/status-46HTKNRR.js +157 -0
- package/dist/cli/sticky-2DUZOUGI.js +338 -0
- package/dist/cli/stop-J2QEUKHX.js +42 -0
- package/dist/cli/sync-GJP2QYT5.js +154 -0
- package/dist/cli/tasks-BNXTM7PB.js +174 -0
- package/dist/cli/telemetry-55Z2XJWL.js +120 -0
- package/dist/cli/templates-7O77TKPV.js +611 -0
- package/dist/cli/testing-37YTBNKP.js +146 -0
- package/dist/cli/token-UAVJMNUI.js +220 -0
- package/dist/cli/transcript-LORQTV5Z.js +440 -0
- package/dist/cli/tui-BPUFHYKK.js +51 -0
- package/dist/cli/update-NVCYV2FT.js +476 -0
- package/dist/cli/upgrade-OXJXOGEF.js +243 -0
- package/dist/cli/verify-LYLDHPT2.js +190 -0
- package/dist/cli/web-QP2RP266.js +275 -0
- package/dist/cli/workgraph-FXBSZDQE.js +232 -0
- package/dist/cli/worktree-6RXAJIST.js +370 -0
- package/package.json +13 -13
- package/studio-dist/client/_app/immutable/chunks/{DMj27Pxj.js → Btgeq_wq.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{qq3pe1aT.js → CgBjxmu6.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/{Dc2owyvE.js → DgEKqO6r.js} +1 -1
- package/studio-dist/client/_app/immutable/chunks/t81h7afa.js +1 -0
- package/studio-dist/client/_app/immutable/entry/{app.CHWXLeE9.js → app.a02HWaRB.js} +2 -2
- package/studio-dist/client/_app/immutable/entry/start.BreMSngo.js +1 -0
- package/studio-dist/client/_app/immutable/nodes/{0.DmKQGvFh.js → 0.nTXyRfc-.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{1.DqJk_REO.js → 1.4zrWeHtl.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{15.GUy6kdW1.js → 15.D9mk4JyY.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{16.CcnKZ8f9.js → 16._-wt-sQf.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{17.DAlQF3lQ.js → 17.CUu6LQDj.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{18.vQFr-vFj.js → 18.Dz4QRTkX.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{20.GVOj5j_r.js → 20.CJ2_EB0U.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{24.2-wC6DOh.js → 24.Igj2FS7k.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{25.D1vYaH8g.js → 25.BnATjVGN.js} +2 -2
- package/studio-dist/client/_app/immutable/nodes/{26.C3rNqzZF.js → 26.6iPyjT44.js} +1 -1
- package/studio-dist/client/_app/immutable/nodes/{3.b-7pzc3M.js → 3.AA5GwNgP.js} +1 -1
- package/studio-dist/client/_app/version.json +1 -1
- package/studio-dist/server/chunks/{0-BaCce-O1.js → 0-DGmsoBYm.js} +3 -3
- package/studio-dist/server/chunks/1-8PfxPvlK.js +9 -0
- package/studio-dist/server/chunks/{15-DRMOSIC9.js → 15-Bg6YTndh.js} +3 -3
- package/studio-dist/server/chunks/{16-BulXhoZZ.js → 16-BObLwgyD.js} +3 -3
- package/studio-dist/server/chunks/{17-DUEOCM0H.js → 17-BNXGyAHX.js} +3 -3
- package/studio-dist/server/chunks/{18-DP7Q8zPs.js → 18-UqQFRIID.js} +3 -3
- package/studio-dist/server/chunks/{20-9ta6MI7q.js → 20-CMn8a_yP.js} +3 -3
- package/studio-dist/server/chunks/{24-DysdL1ab.js → 24-BuOTDzib.js} +3 -3
- package/studio-dist/server/chunks/{25-CYsps38R.js → 25-CIMSmjVx.js} +4 -4
- package/studio-dist/server/chunks/{26-Df4YXgg0.js → 26-DWGObn2T.js} +3 -3
- package/studio-dist/server/chunks/{3-BEhOhYpL.js → 3-CyiffdJZ.js} +3 -3
- package/studio-dist/server/chunks/{_layout.svelte-CnLcXYG-.js → _layout.svelte-DYtClaIk.js} +4 -4
- package/studio-dist/server/chunks/{_page.svelte-HUqTICJR.js → _page.svelte-1h9E6s_f.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-DOl0DGOO.js → _page.svelte-BNNF62Nm.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-DzcZljiy.js → _page.svelte-BT1EUadj.js} +5 -5
- package/studio-dist/server/chunks/{_page.svelte-Dv8tmDEC.js → _page.svelte-Bip079LT.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-DGhXqeRc.js → _page.svelte-CEATWp_5.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-C0qgUvzA.js → _page.svelte-CV3xiD1y.js} +4 -4
- package/studio-dist/server/chunks/{_page.svelte-CbyEPj2j.js → _page.svelte-Cv_KVJDV.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-ui7LnWkL.js → _page.svelte-DSSy6LuK.js} +3 -3
- package/studio-dist/server/chunks/{_page.svelte-Da4q5l93.js → _page.svelte-TF795TAS.js} +3 -3
- package/studio-dist/server/chunks/{_server.ts-CnKVmf_s.js → _server.ts-BlhRFLY3.js} +2 -2
- package/studio-dist/server/chunks/{_server.ts-Cr57EKWf.js → _server.ts-C4w6UdU0.js} +3 -3
- package/studio-dist/server/chunks/{_server.ts-P4wVVksg.js → _server.ts-CzrwbhkQ.js} +3 -3
- package/studio-dist/server/chunks/{_server.ts-2BazvYRP.js → _server.ts-DWt8Dziu.js} +3 -3
- package/studio-dist/server/chunks/{_server.ts-C0evMKCk.js → _server.ts-Db6mEile.js} +3 -3
- package/studio-dist/server/chunks/{client-CPM4LrO2.js → client-D8f2k-H_.js} +2 -2
- package/studio-dist/server/chunks/{dist-CdoCt9zT.js → dist-B8xbIrdB.js} +3 -1
- package/studio-dist/server/chunks/{error.svelte-ShcZo43D.js → error.svelte-DbbOwIme.js} +3 -3
- package/studio-dist/server/chunks/{http-BiQjEmVU.js → http-1ftNGTs5.js} +2 -2
- package/studio-dist/server/chunks/{internal-Cgsrya1j.js → internal-CTULuLPB.js} +2 -2
- package/studio-dist/server/chunks/{stores-BGrpEDMK.js → stores-CS5XOReX.js} +2 -2
- package/studio-dist/server/index.js +1 -1
- package/studio-dist/server/manifest.js +17 -17
- package/studio-dist/client/_app/immutable/chunks/Bw6J8NDM.js +0 -1
- package/studio-dist/client/_app/immutable/entry/start.C9bwPpvc.js +0 -1
- package/studio-dist/server/chunks/1-CVo7Nk6d.js +0 -9
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
const _installed = Symbol.for('cleocode.cli.sqliteWarningFilter');
|
|
3
|
+
if (globalThis[_installed]) return;
|
|
4
|
+
globalThis[_installed] = true;
|
|
5
|
+
const _origEmitWarning = process.emitWarning;
|
|
6
|
+
process.emitWarning = function(warning, type, code, ctor) {
|
|
7
|
+
if (typeof warning === 'object' && warning.name === 'ExperimentalWarning' && typeof warning.message === 'string' && /SQLite is an experimental feature/i.test(warning.message)) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
if (typeof warning === 'string' && /SQLite is an experimental feature/i.test(warning)) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
return _origEmitWarning.call(process, warning, type, code, ctor);
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
import {
|
|
17
|
+
defineCommand,
|
|
18
|
+
showUsage
|
|
19
|
+
} from "./chunk-PKKZPOOP.js";
|
|
20
|
+
import {
|
|
21
|
+
cliError,
|
|
22
|
+
cliOutput
|
|
23
|
+
} from "./chunk-3ZO3M37V.js";
|
|
24
|
+
import "./chunk-6JSJNYH2.js";
|
|
25
|
+
|
|
26
|
+
// packages/cleo/src/cli/commands/remote.ts
|
|
27
|
+
import { ExitCode } from "@cleocode/contracts";
|
|
28
|
+
import {
|
|
29
|
+
addRemote,
|
|
30
|
+
CleoError,
|
|
31
|
+
getRemoteSyncStatus as getRemoteGitStatus,
|
|
32
|
+
listRemotes,
|
|
33
|
+
pull,
|
|
34
|
+
push,
|
|
35
|
+
removeRemote
|
|
36
|
+
} from "@cleocode/core/internal";
|
|
37
|
+
var addRemoteCommand = defineCommand({
|
|
38
|
+
meta: { name: "add", description: "Add a git remote to .cleo/.git for shared state syncing" },
|
|
39
|
+
args: {
|
|
40
|
+
url: {
|
|
41
|
+
type: "positional",
|
|
42
|
+
description: "Remote URL to add",
|
|
43
|
+
required: true
|
|
44
|
+
},
|
|
45
|
+
name: {
|
|
46
|
+
type: "string",
|
|
47
|
+
description: "Remote name",
|
|
48
|
+
alias: "n",
|
|
49
|
+
default: "origin"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
async run({ args }) {
|
|
53
|
+
try {
|
|
54
|
+
const name = args.name ?? "origin";
|
|
55
|
+
await addRemote(args.url, name);
|
|
56
|
+
cliOutput(
|
|
57
|
+
{ added: true, name, url: args.url },
|
|
58
|
+
{ command: "remote", message: `Remote '${name}' added: ${args.url}` }
|
|
59
|
+
);
|
|
60
|
+
} catch (err) {
|
|
61
|
+
if (err instanceof CleoError) {
|
|
62
|
+
cliError(err.message, err.code, { name: "CleoError", fix: err.fix });
|
|
63
|
+
process.exit(err.code);
|
|
64
|
+
}
|
|
65
|
+
if (err instanceof Error) {
|
|
66
|
+
cliError(err.message, ExitCode.GENERAL_ERROR, { name: "E_GENERAL" });
|
|
67
|
+
process.exit(ExitCode.GENERAL_ERROR);
|
|
68
|
+
}
|
|
69
|
+
throw err;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
var removeRemoteCommand = defineCommand({
|
|
74
|
+
meta: { name: "remove", description: "Remove a git remote from .cleo/.git" },
|
|
75
|
+
args: {
|
|
76
|
+
name: {
|
|
77
|
+
type: "positional",
|
|
78
|
+
description: "Remote name to remove",
|
|
79
|
+
required: true
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
async run({ args }) {
|
|
83
|
+
try {
|
|
84
|
+
await removeRemote(args.name);
|
|
85
|
+
cliOutput(
|
|
86
|
+
{ removed: true, name: args.name },
|
|
87
|
+
{ command: "remote", message: `Remote '${args.name}' removed` }
|
|
88
|
+
);
|
|
89
|
+
} catch (err) {
|
|
90
|
+
if (err instanceof CleoError) {
|
|
91
|
+
cliError(err.message, err.code, { name: "CleoError", fix: err.fix });
|
|
92
|
+
process.exit(err.code);
|
|
93
|
+
}
|
|
94
|
+
if (err instanceof Error) {
|
|
95
|
+
cliError(err.message, ExitCode.GENERAL_ERROR, { name: "E_GENERAL" });
|
|
96
|
+
process.exit(ExitCode.GENERAL_ERROR);
|
|
97
|
+
}
|
|
98
|
+
throw err;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
var listRemoteCommand = defineCommand({
|
|
103
|
+
meta: { name: "list", description: "List configured .cleo/.git remotes" },
|
|
104
|
+
async run() {
|
|
105
|
+
try {
|
|
106
|
+
const remotes = await listRemotes();
|
|
107
|
+
cliOutput(
|
|
108
|
+
{ remotes, count: remotes.length },
|
|
109
|
+
{
|
|
110
|
+
command: "remote",
|
|
111
|
+
message: remotes.length === 0 ? "No remotes configured. Add one with: cleo remote add <url>" : `${remotes.length} remote(s) configured`
|
|
112
|
+
}
|
|
113
|
+
);
|
|
114
|
+
} catch (err) {
|
|
115
|
+
if (err instanceof CleoError) {
|
|
116
|
+
cliError(err.message, err.code, { name: "CleoError", fix: err.fix });
|
|
117
|
+
process.exit(err.code);
|
|
118
|
+
}
|
|
119
|
+
if (err instanceof Error) {
|
|
120
|
+
cliError(err.message, ExitCode.GENERAL_ERROR, { name: "E_GENERAL" });
|
|
121
|
+
process.exit(ExitCode.GENERAL_ERROR);
|
|
122
|
+
}
|
|
123
|
+
throw err;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
var statusRemoteCommand = defineCommand({
|
|
128
|
+
meta: {
|
|
129
|
+
name: "status",
|
|
130
|
+
description: "Show sync status between local .cleo/.git and remote"
|
|
131
|
+
},
|
|
132
|
+
args: {
|
|
133
|
+
remote: {
|
|
134
|
+
type: "string",
|
|
135
|
+
description: "Remote name",
|
|
136
|
+
alias: "r",
|
|
137
|
+
default: "origin"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
async run({ args }) {
|
|
141
|
+
try {
|
|
142
|
+
const remoteName = args.remote ?? "origin";
|
|
143
|
+
const status = await getRemoteGitStatus(remoteName);
|
|
144
|
+
let message;
|
|
145
|
+
if (status.ahead === 0 && status.behind === 0) {
|
|
146
|
+
message = `Up to date with ${remoteName}/${status.branch}`;
|
|
147
|
+
} else {
|
|
148
|
+
const parts = [];
|
|
149
|
+
if (status.ahead > 0) parts.push(`${status.ahead} ahead`);
|
|
150
|
+
if (status.behind > 0) parts.push(`${status.behind} behind`);
|
|
151
|
+
message = `${parts.join(", ")} ${remoteName}/${status.branch}`;
|
|
152
|
+
}
|
|
153
|
+
cliOutput({ ...status }, { command: "remote", message });
|
|
154
|
+
} catch (err) {
|
|
155
|
+
if (err instanceof CleoError) {
|
|
156
|
+
cliError(err.message, err.code, { name: "CleoError", fix: err.fix });
|
|
157
|
+
process.exit(err.code);
|
|
158
|
+
}
|
|
159
|
+
if (err instanceof Error) {
|
|
160
|
+
cliError(err.message, ExitCode.GENERAL_ERROR, { name: "E_GENERAL" });
|
|
161
|
+
process.exit(ExitCode.GENERAL_ERROR);
|
|
162
|
+
}
|
|
163
|
+
throw err;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
var remoteCommand = defineCommand({
|
|
168
|
+
meta: {
|
|
169
|
+
name: "remote",
|
|
170
|
+
description: "Manage .cleo/.git remotes for multi-contributor state sharing"
|
|
171
|
+
},
|
|
172
|
+
subCommands: {
|
|
173
|
+
add: addRemoteCommand,
|
|
174
|
+
remove: removeRemoteCommand,
|
|
175
|
+
list: listRemoteCommand,
|
|
176
|
+
status: statusRemoteCommand
|
|
177
|
+
},
|
|
178
|
+
async run({ cmd, rawArgs }) {
|
|
179
|
+
const firstArg = rawArgs?.find((a) => !a.startsWith("-"));
|
|
180
|
+
if (firstArg && cmd.subCommands && firstArg in cmd.subCommands) return;
|
|
181
|
+
await showUsage(cmd);
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
var pushCommand = defineCommand({
|
|
185
|
+
meta: { name: "push", description: "Push .cleo/ state to remote (operates on .cleo/.git)" },
|
|
186
|
+
args: {
|
|
187
|
+
remote: {
|
|
188
|
+
type: "string",
|
|
189
|
+
description: "Remote name",
|
|
190
|
+
alias: "r",
|
|
191
|
+
default: "origin"
|
|
192
|
+
},
|
|
193
|
+
"set-upstream": {
|
|
194
|
+
type: "boolean",
|
|
195
|
+
description: "Set upstream tracking branch",
|
|
196
|
+
alias: "u"
|
|
197
|
+
},
|
|
198
|
+
force: {
|
|
199
|
+
type: "boolean",
|
|
200
|
+
description: "Force push (overwrite remote)"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
async run({ args }) {
|
|
204
|
+
try {
|
|
205
|
+
const remoteName = args.remote ?? "origin";
|
|
206
|
+
const result = await push(remoteName, {
|
|
207
|
+
force: args.force ?? false,
|
|
208
|
+
setUpstream: args["set-upstream"] ?? false
|
|
209
|
+
});
|
|
210
|
+
if (!result.success) {
|
|
211
|
+
cliError(result.message, ExitCode.GENERAL_ERROR, { name: "E_PUSH_FAILED" });
|
|
212
|
+
process.exit(ExitCode.GENERAL_ERROR);
|
|
213
|
+
}
|
|
214
|
+
cliOutput(
|
|
215
|
+
{ pushed: true, branch: result.branch, remote: result.remote },
|
|
216
|
+
{ command: "push", message: result.message }
|
|
217
|
+
);
|
|
218
|
+
} catch (err) {
|
|
219
|
+
if (err instanceof CleoError) {
|
|
220
|
+
cliError(err.message, err.code, { name: "CleoError", fix: err.fix });
|
|
221
|
+
process.exit(err.code);
|
|
222
|
+
}
|
|
223
|
+
if (err instanceof Error) {
|
|
224
|
+
cliError(err.message, ExitCode.GENERAL_ERROR, { name: "E_GENERAL" });
|
|
225
|
+
process.exit(ExitCode.GENERAL_ERROR);
|
|
226
|
+
}
|
|
227
|
+
throw err;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
var pullCommand = defineCommand({
|
|
232
|
+
meta: { name: "pull", description: "Pull .cleo/ state from remote (operates on .cleo/.git)" },
|
|
233
|
+
args: {
|
|
234
|
+
remote: {
|
|
235
|
+
type: "string",
|
|
236
|
+
description: "Remote name",
|
|
237
|
+
alias: "r",
|
|
238
|
+
default: "origin"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
async run({ args }) {
|
|
242
|
+
try {
|
|
243
|
+
const remoteName = args.remote ?? "origin";
|
|
244
|
+
const result = await pull(remoteName);
|
|
245
|
+
if (!result.success) {
|
|
246
|
+
const details = {
|
|
247
|
+
pulled: false,
|
|
248
|
+
branch: result.branch,
|
|
249
|
+
remote: result.remote
|
|
250
|
+
};
|
|
251
|
+
if (result.hasConflicts) {
|
|
252
|
+
details["conflicts"] = result.conflictFiles;
|
|
253
|
+
}
|
|
254
|
+
cliError(result.message, ExitCode.GENERAL_ERROR, { details });
|
|
255
|
+
process.exit(ExitCode.GENERAL_ERROR);
|
|
256
|
+
}
|
|
257
|
+
cliOutput(
|
|
258
|
+
{ pulled: true, branch: result.branch, remote: result.remote },
|
|
259
|
+
{ command: "pull", message: result.message }
|
|
260
|
+
);
|
|
261
|
+
} catch (err) {
|
|
262
|
+
if (err instanceof CleoError) {
|
|
263
|
+
cliError(err.message, err.code, { name: "CleoError", fix: err.fix });
|
|
264
|
+
process.exit(err.code);
|
|
265
|
+
}
|
|
266
|
+
if (err instanceof Error) {
|
|
267
|
+
cliError(err.message, ExitCode.GENERAL_ERROR, { name: "E_GENERAL" });
|
|
268
|
+
process.exit(ExitCode.GENERAL_ERROR);
|
|
269
|
+
}
|
|
270
|
+
throw err;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
export {
|
|
275
|
+
pullCommand,
|
|
276
|
+
pushCommand,
|
|
277
|
+
remoteCommand
|
|
278
|
+
};
|
|
279
|
+
//# sourceMappingURL=remote-QSONJDIK.js.map
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
cliError,
|
|
18
|
+
cliOutput,
|
|
19
|
+
humanInfo,
|
|
20
|
+
humanLine,
|
|
21
|
+
humanProgress,
|
|
22
|
+
humanWarn,
|
|
23
|
+
isHumanOutput,
|
|
24
|
+
renderWaves
|
|
25
|
+
} from "./chunk-3ZO3M37V.js";
|
|
26
|
+
import "./chunk-6JSJNYH2.js";
|
|
27
|
+
export {
|
|
28
|
+
cliError,
|
|
29
|
+
cliOutput,
|
|
30
|
+
humanInfo,
|
|
31
|
+
humanLine,
|
|
32
|
+
humanProgress,
|
|
33
|
+
humanWarn,
|
|
34
|
+
isHumanOutput,
|
|
35
|
+
renderWaves
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=renderers-64OR3IWX.js.map
|
|
@@ -0,0 +1,86 @@
|
|
|
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 {
|
|
26
|
+
cliError
|
|
27
|
+
} from "./chunk-3ZO3M37V.js";
|
|
28
|
+
import "./chunk-6JSJNYH2.js";
|
|
29
|
+
import "./chunk-QFFQSKRC.js";
|
|
30
|
+
|
|
31
|
+
// packages/cleo/src/cli/commands/reorder.ts
|
|
32
|
+
var BOTTOM_POSITION = 999999;
|
|
33
|
+
var reorderCommand = defineCommand({
|
|
34
|
+
meta: { name: "reorder", description: "Change task position within sibling group" },
|
|
35
|
+
args: {
|
|
36
|
+
"task-id": {
|
|
37
|
+
type: "positional",
|
|
38
|
+
description: "Task ID to reorder",
|
|
39
|
+
required: true
|
|
40
|
+
},
|
|
41
|
+
position: {
|
|
42
|
+
type: "string",
|
|
43
|
+
description: "Move to specific zero-based position among siblings"
|
|
44
|
+
},
|
|
45
|
+
top: {
|
|
46
|
+
type: "boolean",
|
|
47
|
+
description: "Move to the top (position 0)"
|
|
48
|
+
},
|
|
49
|
+
bottom: {
|
|
50
|
+
type: "boolean",
|
|
51
|
+
description: "Move to the bottom"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
async run({ args }) {
|
|
55
|
+
const taskId = args["task-id"];
|
|
56
|
+
let position;
|
|
57
|
+
if (args.top) {
|
|
58
|
+
position = 0;
|
|
59
|
+
} else if (args.bottom) {
|
|
60
|
+
position = BOTTOM_POSITION;
|
|
61
|
+
} else if (args.position !== void 0) {
|
|
62
|
+
position = Number.parseInt(args.position, 10);
|
|
63
|
+
}
|
|
64
|
+
if (position === void 0) {
|
|
65
|
+
cliError(
|
|
66
|
+
"Must specify --position <n>, --top, or --bottom.",
|
|
67
|
+
2,
|
|
68
|
+
{ name: "E_INVALID_INPUT" },
|
|
69
|
+
{ operation: "tasks.reorder" }
|
|
70
|
+
);
|
|
71
|
+
process.exitCode = 2;
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
await dispatchFromCli(
|
|
75
|
+
"mutate",
|
|
76
|
+
"tasks",
|
|
77
|
+
"reorder",
|
|
78
|
+
{ taskId, position },
|
|
79
|
+
{ command: "reorder" }
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
export {
|
|
84
|
+
reorderCommand
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=reorder-J3DOE7ST.js.map
|
|
@@ -0,0 +1,58 @@
|
|
|
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/reparent.ts
|
|
30
|
+
var reparentCommand = defineCommand({
|
|
31
|
+
meta: { name: "reparent", description: "Move task to a different parent in hierarchy" },
|
|
32
|
+
args: {
|
|
33
|
+
taskId: {
|
|
34
|
+
type: "positional",
|
|
35
|
+
description: "ID of the task to reparent",
|
|
36
|
+
required: true
|
|
37
|
+
},
|
|
38
|
+
to: {
|
|
39
|
+
type: "string",
|
|
40
|
+
description: 'Target parent task ID (or "" to make root)',
|
|
41
|
+
required: true
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
async run({ args }) {
|
|
45
|
+
const newParentId = args.to || null;
|
|
46
|
+
await dispatchFromCli(
|
|
47
|
+
"mutate",
|
|
48
|
+
"tasks",
|
|
49
|
+
"reparent",
|
|
50
|
+
{ taskId: args.taskId, newParentId },
|
|
51
|
+
{ command: "reparent" }
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
export {
|
|
56
|
+
reparentCommand
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=reparent-2OUMKEZX.js.map
|
|
@@ -0,0 +1,129 @@
|
|
|
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 {
|
|
27
|
+
cliError
|
|
28
|
+
} from "./chunk-3ZO3M37V.js";
|
|
29
|
+
import "./chunk-6JSJNYH2.js";
|
|
30
|
+
import "./chunk-QFFQSKRC.js";
|
|
31
|
+
|
|
32
|
+
// packages/cleo/src/cli/commands/req.ts
|
|
33
|
+
var addCommand = defineCommand({
|
|
34
|
+
meta: {
|
|
35
|
+
name: "add",
|
|
36
|
+
description: "Add a typed AcceptanceGate (with REQ-ID) to a task's acceptance array"
|
|
37
|
+
},
|
|
38
|
+
args: {
|
|
39
|
+
"task-id": {
|
|
40
|
+
type: "positional",
|
|
41
|
+
description: "Task ID to add the gate to",
|
|
42
|
+
required: true
|
|
43
|
+
},
|
|
44
|
+
gate: {
|
|
45
|
+
type: "string",
|
|
46
|
+
description: 'AcceptanceGate JSON string (must match the AcceptanceGate schema; include "req" for a REQ-ID)',
|
|
47
|
+
required: true
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
async run({ args }) {
|
|
51
|
+
const taskId = args["task-id"];
|
|
52
|
+
const gate = args.gate;
|
|
53
|
+
if (!gate) {
|
|
54
|
+
cliError(
|
|
55
|
+
"--gate <json> is required.",
|
|
56
|
+
6,
|
|
57
|
+
{
|
|
58
|
+
name: "E_VALIDATION",
|
|
59
|
+
fix: `Example: cleo req add T42 --gate '{"kind":"test","command":"pnpm test","expect":"pass","description":"Tests pass","req":"TIMER-01"}'`
|
|
60
|
+
},
|
|
61
|
+
{ operation: "tasks.req.add" }
|
|
62
|
+
);
|
|
63
|
+
process.exit(6);
|
|
64
|
+
}
|
|
65
|
+
await dispatchFromCli("mutate", "tasks", "req.add", { taskId, gate }, { command: "req add" });
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
var listCommand = defineCommand({
|
|
69
|
+
meta: { name: "list", description: "List all REQ-ID-addressed acceptance gates on a task" },
|
|
70
|
+
args: {
|
|
71
|
+
"task-id": {
|
|
72
|
+
type: "positional",
|
|
73
|
+
description: "Task ID to list gates for",
|
|
74
|
+
required: true
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
async run({ args }) {
|
|
78
|
+
const taskId = args["task-id"];
|
|
79
|
+
await dispatchFromCli("query", "tasks", "req.list", { taskId }, { command: "req list" });
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
var migrateCommand = defineCommand({
|
|
83
|
+
meta: {
|
|
84
|
+
name: "migrate",
|
|
85
|
+
description: 'Heuristic migrator: propose (or apply) typed gate replacements for free-text acceptance strings. Heuristics: "tests pass" \u2192 test gate, "<file> exists" \u2192 file gate, "lint clean" \u2192 lint gate, "<cmd> returns 0" \u2192 command gate, otherwise \u2192 manual gate.'
|
|
86
|
+
},
|
|
87
|
+
args: {
|
|
88
|
+
"task-id": {
|
|
89
|
+
type: "positional",
|
|
90
|
+
description: "Task ID to migrate gates for",
|
|
91
|
+
required: true
|
|
92
|
+
},
|
|
93
|
+
apply: {
|
|
94
|
+
type: "boolean",
|
|
95
|
+
description: "Write the proposed typed gates back to the task (default: dry-run, print proposals only)"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
async run({ args }) {
|
|
99
|
+
const taskId = args["task-id"];
|
|
100
|
+
const apply = Boolean(args.apply);
|
|
101
|
+
await dispatchFromCli(
|
|
102
|
+
apply ? "mutate" : "query",
|
|
103
|
+
"tasks",
|
|
104
|
+
apply ? "req.migrate" : "req.migrate.preview",
|
|
105
|
+
{ taskId, apply },
|
|
106
|
+
{ command: "req migrate" }
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
var reqCommand = defineCommand({
|
|
111
|
+
meta: {
|
|
112
|
+
name: "req",
|
|
113
|
+
description: "Manage REQ-ID-addressable acceptance gates on tasks (in-task gates only). For cross-task dependency edges, use `cleo update <id> --add-depends <ids>` or `cleo update <id> --add-relates <id>:blocks` (gh-394)."
|
|
114
|
+
},
|
|
115
|
+
subCommands: {
|
|
116
|
+
add: addCommand,
|
|
117
|
+
list: listCommand,
|
|
118
|
+
migrate: migrateCommand
|
|
119
|
+
},
|
|
120
|
+
async run({ cmd, rawArgs }) {
|
|
121
|
+
const firstArg = rawArgs?.find((a) => !a.startsWith("-"));
|
|
122
|
+
if (firstArg && cmd.subCommands && firstArg in cmd.subCommands) return;
|
|
123
|
+
await showUsage(cmd);
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
export {
|
|
127
|
+
reqCommand
|
|
128
|
+
};
|
|
129
|
+
//# sourceMappingURL=req-TZB7OFKO.js.map
|