@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.
Files changed (307) hide show
  1. package/bin/cleo.js +11 -1
  2. package/dist/cli/adapter-LVXHFBC4.js +158 -0
  3. package/dist/cli/add-WUAV7LDT.js +443 -0
  4. package/dist/cli/add-batch-U2DLKAQC.js +163 -0
  5. package/dist/cli/admin-I7BQYVZD.js +340 -0
  6. package/dist/cli/adr-K2THMQBS.js +171 -0
  7. package/dist/cli/agent-WQ6XY2DW.js +2366 -0
  8. package/dist/cli/agent-outputs-BJIYLVTU.js +84 -0
  9. package/dist/cli/analyze-PGQZWGOC.js +48 -0
  10. package/dist/cli/archive-5LZPF7C3.js +64 -0
  11. package/dist/cli/archive-stats-U6CYC6JM.js +100 -0
  12. package/dist/cli/attention-SOURWCNI.js +167 -0
  13. package/dist/cli/audit-FO2Y4LH2.js +122 -0
  14. package/dist/cli/auth-ED7TAIXI.js +491 -0
  15. package/dist/cli/backfill-32TRAYRD.js +156 -0
  16. package/dist/cli/backup-LEJMZJKL.js +587 -0
  17. package/dist/cli/backup-inspect-6HPLUEI2.js +26 -0
  18. package/dist/cli/backup-recover-2BTYBZU2.js +29 -0
  19. package/dist/cli/blockers-5JULUJTV.js +54 -0
  20. package/dist/cli/brain-273N3FW4.js +400 -0
  21. package/dist/cli/briefing-7H6OLECX.js +212 -0
  22. package/dist/cli/caamp-MFQVN6VU.js +181 -0
  23. package/dist/cli/cancel-SCMJTXZB.js +84 -0
  24. package/dist/cli/canon-NPF5RODM.js +142 -0
  25. package/dist/cli/canon-docs-2GTOLF7Y.js +26 -0
  26. package/dist/cli/cant-46XCUP4P.js +239 -0
  27. package/dist/cli/changeset-32NMBGG2.js +248 -0
  28. package/dist/cli/check-RWJLBCI2.js +907 -0
  29. package/dist/cli/checkpoint-37HMMKD7.js +128 -0
  30. package/dist/cli/chunk-2JIJD2I7.js +108 -0
  31. package/dist/cli/chunk-37NU2XDP.js +171 -0
  32. package/dist/cli/chunk-3IOQVUO7.js +17308 -0
  33. package/dist/cli/chunk-3PGH67MT.js +175 -0
  34. package/dist/cli/chunk-3ZO3M37V.js +1002 -0
  35. package/dist/cli/chunk-47JYZAMS.js +30 -0
  36. package/dist/cli/chunk-5J2VH3BC.js +66 -0
  37. package/dist/cli/chunk-5ZFFUFH7.js +92 -0
  38. package/dist/cli/chunk-6JSJNYH2.js +114 -0
  39. package/dist/cli/chunk-7INMKEAD.js +85 -0
  40. package/dist/cli/chunk-A2IUEIM5.js +278 -0
  41. package/dist/cli/chunk-AWCQH2W5.js +35 -0
  42. package/dist/cli/chunk-AYA6F4ZT.js +56 -0
  43. package/dist/cli/chunk-BCEXRFA2.js +76 -0
  44. package/dist/cli/chunk-BPEVD37G.js +124 -0
  45. package/dist/cli/chunk-C3B7C43W.js +16 -0
  46. package/dist/cli/chunk-DVTPIZJM.js +72 -0
  47. package/dist/cli/chunk-DYABOIHB.js +96 -0
  48. package/dist/cli/chunk-EBRZ76HS.js +51 -0
  49. package/dist/cli/chunk-EGOTK2HA.js +57 -0
  50. package/dist/cli/chunk-EOPQFCSR.js +148 -0
  51. package/dist/cli/chunk-FORFDPP5.js +288 -0
  52. package/dist/cli/chunk-GFGLLDXX.js +110 -0
  53. package/dist/cli/chunk-GH37QXW5.js +280 -0
  54. package/dist/cli/chunk-GZFVDR44.js +320 -0
  55. package/dist/cli/chunk-I3CRQQAD.js +225 -0
  56. package/dist/cli/chunk-J3ZFM3UQ.js +754 -0
  57. package/dist/cli/chunk-JNZJPIPJ.js +90 -0
  58. package/dist/cli/chunk-KHB52JNB.js +209 -0
  59. package/dist/cli/chunk-KJDWWQFY.js +46 -0
  60. package/dist/cli/chunk-LKNUA3SB.js +83 -0
  61. package/dist/cli/chunk-LVGIFMCV.js +163 -0
  62. package/dist/cli/chunk-LWQBJQSE.js +67 -0
  63. package/dist/cli/chunk-MNJRLSEQ.js +107 -0
  64. package/dist/cli/chunk-NRKWJLMS.js +91 -0
  65. package/dist/cli/chunk-NSHV2JNM.js +48 -0
  66. package/dist/cli/chunk-NWTATTEQ.js +210 -0
  67. package/dist/cli/chunk-OAPN46TC.js +89 -0
  68. package/dist/cli/chunk-OGV57L4J.js +59 -0
  69. package/dist/cli/chunk-OILHT47L.js +252 -0
  70. package/dist/cli/chunk-OPTEQKBB.js +258 -0
  71. package/dist/cli/chunk-PKKZPOOP.js +352 -0
  72. package/dist/cli/chunk-QA6T2LQ5.js +71 -0
  73. package/dist/cli/chunk-QFFQSKRC.js +4497 -0
  74. package/dist/cli/chunk-QPUY2HQZ.js +74 -0
  75. package/dist/cli/chunk-REUTEW3O.js +258 -0
  76. package/dist/cli/chunk-S24YI723.js +88 -0
  77. package/dist/cli/chunk-SXXOC6KZ.js +209 -0
  78. package/dist/cli/chunk-ULN4OKQQ.js +259 -0
  79. package/dist/cli/chunk-V5GBGOGM.js +46 -0
  80. package/dist/cli/chunk-VLEYOOPH.js +31 -0
  81. package/dist/cli/chunk-W33Q3FBH.js +66 -0
  82. package/dist/cli/chunk-W3JLYKKY.js +140 -0
  83. package/dist/cli/chunk-XRAX6XFP.js +48 -0
  84. package/dist/cli/chunk-YGKEECTI.js +78 -0
  85. package/dist/cli/chunk-YUZJI67I.js +108 -0
  86. package/dist/cli/chunk-YY66LFZF.js +29 -0
  87. package/dist/cli/chunk-ZBISIPCK.js +78 -0
  88. package/dist/cli/chunk-ZZTHTMQP.js +77 -0
  89. package/dist/cli/claim-KPENYHIQ.js +96 -0
  90. package/dist/cli/classify-DRVMCFQU.js +117 -0
  91. package/dist/cli/cli-T3CR7J57.js +48 -0
  92. package/dist/cli/cloud-PPQ4O5TX.js +565 -0
  93. package/dist/cli/cockpit-RZKLGYPN.js +790 -0
  94. package/dist/cli/code-Z5CTMVTD.js +178 -0
  95. package/dist/cli/complete-UBOCOBRB.js +34 -0
  96. package/dist/cli/complexity-BV2AGQRZ.js +56 -0
  97. package/dist/cli/compliance-32PD5Y47.js +276 -0
  98. package/dist/cli/conduit-VDKCH33F.js +307 -0
  99. package/dist/cli/config-I72JAXK4.js +516 -0
  100. package/dist/cli/consensus-LFILLSTK.js +121 -0
  101. package/dist/cli/context-XUUVFVTP.js +141 -0
  102. package/dist/cli/contribution-37NQ4N5R.js +111 -0
  103. package/dist/cli/curator-TFDXU2EX.js +139 -0
  104. package/dist/cli/current-C4SN5BWV.js +42 -0
  105. package/dist/cli/daemon-DV25JQ62.js +451 -0
  106. package/dist/cli/dash-TFU4RLQW.js +70 -0
  107. package/dist/cli/decide-5VPMNTSI.js +419 -0
  108. package/dist/cli/decompose-KOYEZNJL.js +77 -0
  109. package/dist/cli/decomposition-7OHUFIQN.js +121 -0
  110. package/dist/cli/delete-Q7YCAFY5.js +68 -0
  111. package/dist/cli/deps-6UZKLDGJ.js +463 -0
  112. package/dist/cli/detect-FERY35UL.js +45 -0
  113. package/dist/cli/detect-drift-UL2JTPUK.js +408 -0
  114. package/dist/cli/diagnostics-TI5QAZXR.js +132 -0
  115. package/dist/cli/docs-QI2PRN3T.js +3095 -0
  116. package/dist/cli/doctor-AX5TICQO.js +1253 -0
  117. package/dist/cli/doctor-ac-bindings-YPMYHU2G.js +26 -0
  118. package/dist/cli/doctor-acceptance-drift-PYNFGMKB.js +26 -0
  119. package/dist/cli/doctor-credentials-UZRIADKM.js +26 -0
  120. package/dist/cli/doctor-db-substrate-Q2TOYM2S.js +27 -0
  121. package/dist/cli/doctor-dep-cycles-GCVYZY6F.js +26 -0
  122. package/dist/cli/doctor-exodus-RO5SUTC2.js +26 -0
  123. package/dist/cli/doctor-exodus-residue-EM2AWQXP.js +26 -0
  124. package/dist/cli/doctor-fk-check-Q3FOLECE.js +26 -0
  125. package/dist/cli/doctor-global-delivery-TNOAQ3NP.js +26 -0
  126. package/dist/cli/doctor-heavy-command-hook-IO3QAQLG.js +26 -0
  127. package/dist/cli/doctor-legacy-backups-O2YH5VLS.js +26 -0
  128. package/dist/cli/doctor-legacy-reaper-VSEJEIFA.js +26 -0
  129. package/dist/cli/doctor-malformed-ids-LQ766V5K.js +26 -0
  130. package/dist/cli/doctor-manifest-rows-6FQDNHLH.js +26 -0
  131. package/dist/cli/doctor-memory-guard-J4PSEKB5.js +26 -0
  132. package/dist/cli/doctor-migrations-ONOH56YM.js +26 -0
  133. package/dist/cli/doctor-nexus-residency-FUQAX7PV.js +26 -0
  134. package/dist/cli/doctor-project-identity-GUDK3HYX.js +26 -0
  135. package/dist/cli/doctor-projects-7L3BNL4O.js +30 -0
  136. package/dist/cli/doctor-projects-registry-TEAVHFQU.js +26 -0
  137. package/dist/cli/doctor-release-readiness-IEGHX6SL.js +26 -0
  138. package/dist/cli/doctor-repair-NBONOSZU.js +26 -0
  139. package/dist/cli/doctor-skill-fixtures-7Y6L34A3.js +26 -0
  140. package/dist/cli/doctor-split-brain-TUKIGVHF.js +26 -0
  141. package/dist/cli/doctor-superseded-store-BHZY2B2L.js +26 -0
  142. package/dist/cli/doctor-tool-locks-REQMIVYK.js +26 -0
  143. package/dist/cli/doctor-twin-collapse-222GOSPE.js +26 -0
  144. package/dist/cli/doctor-worktree-stores-J7TCRVJ3.js +26 -0
  145. package/dist/cli/done-V3AOO65B.js +195 -0
  146. package/dist/cli/dynamic-RR4HB7BB.js +29 -0
  147. package/dist/cli/event-EGNPGE5A.js +372 -0
  148. package/dist/cli/exists-H4SDCBPL.js +65 -0
  149. package/dist/cli/exodus-KALO3B3X.js +401 -0
  150. package/dist/cli/export-ROFOCG4M.js +92 -0
  151. package/dist/cli/export-tasks-US3WBIEQ.js +96 -0
  152. package/dist/cli/federation-SUIB5QWT.js +145 -0
  153. package/dist/cli/find-YICG4BG6.js +177 -0
  154. package/dist/cli/focus-TKCZPKOM.js +55 -0
  155. package/dist/cli/gateway-H4HFDC3E.js +77 -0
  156. package/dist/cli/gateway-auto-start-EDK7XI6E.js +36 -0
  157. package/dist/cli/gc-5R2TUY5T.js +291 -0
  158. package/dist/cli/go-PRQFK5YG.js +206 -0
  159. package/dist/cli/goal-7CZRMLHC.js +212 -0
  160. package/dist/cli/grade-PY2YRPUS.js +56 -0
  161. package/dist/cli/graph-XIXMCFKG.js +878 -0
  162. package/dist/cli/history-EIXADPAD.js +137 -0
  163. package/dist/cli/hook-UF7J7R6D.js +57 -0
  164. package/dist/cli/hook-entry.js +244 -19
  165. package/dist/cli/hygiene-3QZ2NI7P.js +55 -0
  166. package/dist/cli/import-R73SO444.js +88 -0
  167. package/dist/cli/import-tasks-O22FZJ4U.js +108 -0
  168. package/dist/cli/index.js +419 -94612
  169. package/dist/cli/init-IHEJDQWU.js +40 -0
  170. package/dist/cli/inject-LSRVWNCP.js +82 -0
  171. package/dist/cli/install-global-4AZUCH6U.js +95 -0
  172. package/dist/cli/intelligence-2OSFOGD2.js +181 -0
  173. package/dist/cli/issue-IIWEDNFC.js +158 -0
  174. package/dist/cli/janitor-GPMC7VOR.js +111 -0
  175. package/dist/cli/labels-5NPOIQXN.js +87 -0
  176. package/dist/cli/lifecycle-4FFS2K2T.js +272 -0
  177. package/dist/cli/list-47KEUGPQ.js +108 -0
  178. package/dist/cli/llm-G5B3I6GD.js +703 -0
  179. package/dist/cli/llm-cost-S7RS6BVA.js +25 -0
  180. package/dist/cli/llm-stream-24A45NTS.js +27 -0
  181. package/dist/cli/log-XF6H2XSD.js +75 -0
  182. package/dist/cli/login-LBPLGHYG.js +43 -0
  183. package/dist/cli/logout-SX4JSJIV.js +74 -0
  184. package/dist/cli/manifest-NMCW4PIW.js +353 -0
  185. package/dist/cli/map-BU72KMGF.js +52 -0
  186. package/dist/cli/memory-UHYIVGVM.js +1956 -0
  187. package/dist/cli/migrate-agents-v2-OO7OILZK.js +33 -0
  188. package/dist/cli/migrate-claude-mem-EDNYUY3K.js +201 -0
  189. package/dist/cli/next-RZFRG5X7.js +56 -0
  190. package/dist/cli/nexus-4S4Z5EVU.js +2923 -0
  191. package/dist/cli/ops-KR7AWCG3.js +51 -0
  192. package/dist/cli/orchestrate-HOYZY3VX.js +948 -0
  193. package/dist/cli/otel-U7IIRBCT.js +188 -0
  194. package/dist/cli/phase-NYZFHUE5.js +220 -0
  195. package/dist/cli/pivot-FF2CVUZL.js +87 -0
  196. package/dist/cli/plan-3SL2NTRV.js +48 -0
  197. package/dist/cli/playbook-2FCBV7N3.js +229 -0
  198. package/dist/cli/project-WDX2TGMC.js +330 -0
  199. package/dist/cli/promote-YINYFBZY.js +52 -0
  200. package/dist/cli/provenance-C7AYD7WG.js +128 -0
  201. package/dist/cli/provider-QLJEDQBR.js +212 -0
  202. package/dist/cli/reason-JF5BHBM5.js +137 -0
  203. package/dist/cli/reconcile-NMISHDGX.js +127 -0
  204. package/dist/cli/refresh-memory-EY5YNICV.js +45 -0
  205. package/dist/cli/relates-R3ZPICAY.js +259 -0
  206. package/dist/cli/release-4ZJTMUUT.js +524 -0
  207. package/dist/cli/remote-QSONJDIK.js +279 -0
  208. package/dist/cli/renderers-64OR3IWX.js +37 -0
  209. package/dist/cli/reorder-J3DOE7ST.js +86 -0
  210. package/dist/cli/reparent-2OUMKEZX.js +58 -0
  211. package/dist/cli/req-TZB7OFKO.js +129 -0
  212. package/dist/cli/research-MTD7EX45.js +365 -0
  213. package/dist/cli/restore-VEUOX7NF.js +423 -0
  214. package/dist/cli/revert-3YF2IL5G.js +240 -0
  215. package/dist/cli/roadmap-7OOQLXKG.js +61 -0
  216. package/dist/cli/run-2U5NZV5Z.js +211 -0
  217. package/dist/cli/safestop-VR4VK56D.js +88 -0
  218. package/dist/cli/saga-SEWPIOX2.js +285 -0
  219. package/dist/cli/schema-C52WZ35V.js +195 -0
  220. package/dist/cli/self-update-GQIGUDPS.js +504 -0
  221. package/dist/cli/selfimprove-3Y5L4ECT.js +88 -0
  222. package/dist/cli/sentient-M4YMAVGV.js +1088 -0
  223. package/dist/cli/sequence-6UBMA4IF.js +93 -0
  224. package/dist/cli/service-5R7SILZ7.js +155 -0
  225. package/dist/cli/session-3C6AAC4Y.js +707 -0
  226. package/dist/cli/setup-BTUBW5PU.js +323 -0
  227. package/dist/cli/show-MXT2V7TF.js +122 -0
  228. package/dist/cli/skill-GFUZOU2C.js +84 -0
  229. package/dist/cli/skills-EDWLKAF3.js +928 -0
  230. package/dist/cli/smoke-provider-SKUFMZXU.js +218 -0
  231. package/dist/cli/snapshot-GUWMURCM.js +119 -0
  232. package/dist/cli/src-66GAKPXR.js +80 -0
  233. package/dist/cli/start-QFG56RGN.js +67 -0
  234. package/dist/cli/stats-GW55P7RR.js +95 -0
  235. package/dist/cli/status-46HTKNRR.js +157 -0
  236. package/dist/cli/sticky-2DUZOUGI.js +338 -0
  237. package/dist/cli/stop-J2QEUKHX.js +42 -0
  238. package/dist/cli/sync-GJP2QYT5.js +154 -0
  239. package/dist/cli/tasks-BNXTM7PB.js +174 -0
  240. package/dist/cli/telemetry-55Z2XJWL.js +120 -0
  241. package/dist/cli/templates-7O77TKPV.js +611 -0
  242. package/dist/cli/testing-37YTBNKP.js +146 -0
  243. package/dist/cli/token-UAVJMNUI.js +220 -0
  244. package/dist/cli/transcript-LORQTV5Z.js +440 -0
  245. package/dist/cli/tui-BPUFHYKK.js +51 -0
  246. package/dist/cli/update-NVCYV2FT.js +476 -0
  247. package/dist/cli/upgrade-OXJXOGEF.js +243 -0
  248. package/dist/cli/verify-LYLDHPT2.js +190 -0
  249. package/dist/cli/web-QP2RP266.js +275 -0
  250. package/dist/cli/workgraph-FXBSZDQE.js +232 -0
  251. package/dist/cli/worktree-6RXAJIST.js +370 -0
  252. package/package.json +13 -13
  253. package/studio-dist/client/_app/immutable/chunks/{DMj27Pxj.js → Btgeq_wq.js} +1 -1
  254. package/studio-dist/client/_app/immutable/chunks/{qq3pe1aT.js → CgBjxmu6.js} +1 -1
  255. package/studio-dist/client/_app/immutable/chunks/{Dc2owyvE.js → DgEKqO6r.js} +1 -1
  256. package/studio-dist/client/_app/immutable/chunks/t81h7afa.js +1 -0
  257. package/studio-dist/client/_app/immutable/entry/{app.CHWXLeE9.js → app.a02HWaRB.js} +2 -2
  258. package/studio-dist/client/_app/immutable/entry/start.BreMSngo.js +1 -0
  259. package/studio-dist/client/_app/immutable/nodes/{0.DmKQGvFh.js → 0.nTXyRfc-.js} +1 -1
  260. package/studio-dist/client/_app/immutable/nodes/{1.DqJk_REO.js → 1.4zrWeHtl.js} +1 -1
  261. package/studio-dist/client/_app/immutable/nodes/{15.GUy6kdW1.js → 15.D9mk4JyY.js} +1 -1
  262. package/studio-dist/client/_app/immutable/nodes/{16.CcnKZ8f9.js → 16._-wt-sQf.js} +1 -1
  263. package/studio-dist/client/_app/immutable/nodes/{17.DAlQF3lQ.js → 17.CUu6LQDj.js} +1 -1
  264. package/studio-dist/client/_app/immutable/nodes/{18.vQFr-vFj.js → 18.Dz4QRTkX.js} +1 -1
  265. package/studio-dist/client/_app/immutable/nodes/{20.GVOj5j_r.js → 20.CJ2_EB0U.js} +1 -1
  266. package/studio-dist/client/_app/immutable/nodes/{24.2-wC6DOh.js → 24.Igj2FS7k.js} +1 -1
  267. package/studio-dist/client/_app/immutable/nodes/{25.D1vYaH8g.js → 25.BnATjVGN.js} +2 -2
  268. package/studio-dist/client/_app/immutable/nodes/{26.C3rNqzZF.js → 26.6iPyjT44.js} +1 -1
  269. package/studio-dist/client/_app/immutable/nodes/{3.b-7pzc3M.js → 3.AA5GwNgP.js} +1 -1
  270. package/studio-dist/client/_app/version.json +1 -1
  271. package/studio-dist/server/chunks/{0-BaCce-O1.js → 0-DGmsoBYm.js} +3 -3
  272. package/studio-dist/server/chunks/1-8PfxPvlK.js +9 -0
  273. package/studio-dist/server/chunks/{15-DRMOSIC9.js → 15-Bg6YTndh.js} +3 -3
  274. package/studio-dist/server/chunks/{16-BulXhoZZ.js → 16-BObLwgyD.js} +3 -3
  275. package/studio-dist/server/chunks/{17-DUEOCM0H.js → 17-BNXGyAHX.js} +3 -3
  276. package/studio-dist/server/chunks/{18-DP7Q8zPs.js → 18-UqQFRIID.js} +3 -3
  277. package/studio-dist/server/chunks/{20-9ta6MI7q.js → 20-CMn8a_yP.js} +3 -3
  278. package/studio-dist/server/chunks/{24-DysdL1ab.js → 24-BuOTDzib.js} +3 -3
  279. package/studio-dist/server/chunks/{25-CYsps38R.js → 25-CIMSmjVx.js} +4 -4
  280. package/studio-dist/server/chunks/{26-Df4YXgg0.js → 26-DWGObn2T.js} +3 -3
  281. package/studio-dist/server/chunks/{3-BEhOhYpL.js → 3-CyiffdJZ.js} +3 -3
  282. package/studio-dist/server/chunks/{_layout.svelte-CnLcXYG-.js → _layout.svelte-DYtClaIk.js} +4 -4
  283. package/studio-dist/server/chunks/{_page.svelte-HUqTICJR.js → _page.svelte-1h9E6s_f.js} +3 -3
  284. package/studio-dist/server/chunks/{_page.svelte-DOl0DGOO.js → _page.svelte-BNNF62Nm.js} +3 -3
  285. package/studio-dist/server/chunks/{_page.svelte-DzcZljiy.js → _page.svelte-BT1EUadj.js} +5 -5
  286. package/studio-dist/server/chunks/{_page.svelte-Dv8tmDEC.js → _page.svelte-Bip079LT.js} +3 -3
  287. package/studio-dist/server/chunks/{_page.svelte-DGhXqeRc.js → _page.svelte-CEATWp_5.js} +3 -3
  288. package/studio-dist/server/chunks/{_page.svelte-C0qgUvzA.js → _page.svelte-CV3xiD1y.js} +4 -4
  289. package/studio-dist/server/chunks/{_page.svelte-CbyEPj2j.js → _page.svelte-Cv_KVJDV.js} +3 -3
  290. package/studio-dist/server/chunks/{_page.svelte-ui7LnWkL.js → _page.svelte-DSSy6LuK.js} +3 -3
  291. package/studio-dist/server/chunks/{_page.svelte-Da4q5l93.js → _page.svelte-TF795TAS.js} +3 -3
  292. package/studio-dist/server/chunks/{_server.ts-CnKVmf_s.js → _server.ts-BlhRFLY3.js} +2 -2
  293. package/studio-dist/server/chunks/{_server.ts-Cr57EKWf.js → _server.ts-C4w6UdU0.js} +3 -3
  294. package/studio-dist/server/chunks/{_server.ts-P4wVVksg.js → _server.ts-CzrwbhkQ.js} +3 -3
  295. package/studio-dist/server/chunks/{_server.ts-2BazvYRP.js → _server.ts-DWt8Dziu.js} +3 -3
  296. package/studio-dist/server/chunks/{_server.ts-C0evMKCk.js → _server.ts-Db6mEile.js} +3 -3
  297. package/studio-dist/server/chunks/{client-CPM4LrO2.js → client-D8f2k-H_.js} +2 -2
  298. package/studio-dist/server/chunks/{dist-CdoCt9zT.js → dist-B8xbIrdB.js} +3 -1
  299. package/studio-dist/server/chunks/{error.svelte-ShcZo43D.js → error.svelte-DbbOwIme.js} +3 -3
  300. package/studio-dist/server/chunks/{http-BiQjEmVU.js → http-1ftNGTs5.js} +2 -2
  301. package/studio-dist/server/chunks/{internal-Cgsrya1j.js → internal-CTULuLPB.js} +2 -2
  302. package/studio-dist/server/chunks/{stores-BGrpEDMK.js → stores-CS5XOReX.js} +2 -2
  303. package/studio-dist/server/index.js +1 -1
  304. package/studio-dist/server/manifest.js +17 -17
  305. package/studio-dist/client/_app/immutable/chunks/Bw6J8NDM.js +0 -1
  306. package/studio-dist/client/_app/immutable/entry/start.C9bwPpvc.js +0 -1
  307. package/studio-dist/server/chunks/1-CVo7Nk6d.js +0 -9
@@ -0,0 +1,259 @@
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
+ negatedFlag
18
+ } from "./chunk-47JYZAMS.js";
19
+ import {
20
+ cliError,
21
+ cliOutput,
22
+ humanLine,
23
+ isHumanOutput
24
+ } from "./chunk-3ZO3M37V.js";
25
+
26
+ // packages/cleo/src/cli/lib/nexus-account-cli.ts
27
+ import { ExitCode } from "@cleocode/contracts";
28
+
29
+ // packages/cleo/src/cli/lib/device-code-prompt.ts
30
+ function writeDeviceCodePrompt(info, serviceName) {
31
+ process.stderr.write("\n");
32
+ process.stderr.write(` Visit: ${info.verificationUriComplete ?? info.verificationUri}
33
+ `);
34
+ process.stderr.write(` Enter code: ${info.userCode}
35
+ `);
36
+ process.stderr.write("\n");
37
+ process.stderr.write(
38
+ ` Waiting for ${serviceName} authorization (up to ${Math.round(info.expiresIn / 60)} min)...
39
+ `
40
+ );
41
+ }
42
+ function writeDeviceCodePending(elapsed) {
43
+ process.stderr.write(`\r Polling... ${elapsed}s elapsed`);
44
+ }
45
+ function writeDeviceCodeInterrupted() {
46
+ process.stderr.write("\n");
47
+ }
48
+ function writeDeviceCodeApproved(serviceName) {
49
+ process.stderr.write(`\r ${serviceName} authorization approved.
50
+
51
+ `);
52
+ }
53
+
54
+ // packages/cleo/src/cli/lib/nexus-account-cli.ts
55
+ var SERVICE_NAME = "Cleo Nexus";
56
+ var NEXUS_API_URL_ARG = {
57
+ type: "string",
58
+ description: "Cleo Nexus API URL (default: $CLEO_NEXUS_API_URL, else https://api.cleocode.dev; staging: https://api.staging.cleocode.dev)."
59
+ };
60
+ function nexusApiUrlArg(args) {
61
+ const raw = args["api-url"];
62
+ return typeof raw === "string" && raw !== "" ? raw : void 0;
63
+ }
64
+ var VAULT_REFUSAL_EXIT_CODES = {
65
+ E_NEXUS_VAULT_LEASE_HELD: ExitCode.LOCK_TIMEOUT,
66
+ E_NEXUS_VAULT_STORE_BUSY: ExitCode.LOCK_TIMEOUT,
67
+ E_NEXUS_VAULT_BEHIND: ExitCode.VERSION_CONFLICT,
68
+ E_NEXUS_VAULT_LOCAL_CHANGES: ExitCode.CONCURRENT_MODIFICATION,
69
+ E_NEXUS_VAULT_VERIFY_FAILED: ExitCode.CHECKSUM_MISMATCH,
70
+ E_NEXUS_VAULT_TARGET_OCCUPIED: ExitCode.ID_COLLISION,
71
+ // `cleo cloud restore <name>` (T13102).
72
+ E_NEXUS_PROJECT_NOT_FOUND: ExitCode.NOT_FOUND,
73
+ E_NEXUS_PROJECT_AMBIGUOUS: ExitCode.VALIDATION_ERROR
74
+ };
75
+ function failNexus(err, operation) {
76
+ const code = err instanceof Error && "code" in err && typeof err.code === "string" ? err.code : void 0;
77
+ const fix = err instanceof Error && "fix" in err && typeof err.fix === "string" ? err.fix : void 0;
78
+ const exitCode = code === "E_NEXUS_INVALID_API_URL" || code === "E_NEXUS_INVALID_LABEL" || code === "E_NEXUS_DEVICE_REQUIRED" || code === "E_VALIDATION" ? 6 : VAULT_REFUSAL_EXIT_CODES[code ?? ""] ?? 1;
79
+ const details = err instanceof Error && "publicDetails" in err && typeof err.publicDetails === "object" && err.publicDetails ? err.publicDetails : void 0;
80
+ cliError(
81
+ err instanceof Error ? err.message : String(err),
82
+ exitCode,
83
+ {
84
+ name: code ?? "E_NEXUS_REQUEST_FAILED",
85
+ ...fix ? { fix } : {},
86
+ ...details ? { details } : {}
87
+ },
88
+ { operation }
89
+ );
90
+ process.exit(exitCode);
91
+ }
92
+ function writeNexusWarnings(warnings) {
93
+ for (const warning of warnings) process.stderr.write(`warning: ${warning}
94
+ `);
95
+ }
96
+ function emitNexusResult(data, summary, command, operation) {
97
+ if (isHumanOutput()) humanLine(summary);
98
+ else cliOutput(data, { command, operation });
99
+ }
100
+ async function runNexusLogin(args, openBrowser) {
101
+ const { loginToNexus } = await import(
102
+ /* webpackIgnore: true */
103
+ "@cleocode/core/cloud/nexus-auth.js"
104
+ );
105
+ const { isNexusDeviceEnabled } = await import(
106
+ /* webpackIgnore: true */
107
+ "@cleocode/core/cloud/nexus-device.js"
108
+ );
109
+ const noBrowser = negatedFlag(args, "browser");
110
+ let codeShown = false;
111
+ const hooks = {
112
+ apiUrl: nexusApiUrlArg(args),
113
+ onCode: (code) => {
114
+ codeShown = true;
115
+ writeDeviceCodePrompt(code, SERVICE_NAME);
116
+ if (!noBrowser) openBrowser(code.verificationUriComplete ?? code.verificationUri);
117
+ },
118
+ onPending: writeDeviceCodePending
119
+ };
120
+ const readOnly = args["read-only"] === true;
121
+ const name = typeof args["name"] === "string" && args["name"] !== "" ? args["name"] : void 0;
122
+ if (readOnly && !isNexusDeviceEnabled()) {
123
+ throw Object.assign(
124
+ new Error(
125
+ "--read-only needs device credentials, which are not enabled; nothing was signed in"
126
+ ),
127
+ {
128
+ code: "E_NEXUS_DEVICE_REQUIRED",
129
+ fix: "unset CLEO_NEXUS_DEVICE (=0 turns device credentials off) to enrol a read-only device, or log in without --read-only"
130
+ }
131
+ );
132
+ }
133
+ try {
134
+ let result;
135
+ if (isNexusDeviceEnabled()) {
136
+ const { loginToNexusDevice } = await import(
137
+ /* webpackIgnore: true */
138
+ "@cleocode/core/cloud/nexus-enrol.js"
139
+ );
140
+ result = await loginToNexusDevice({
141
+ ...hooks,
142
+ readOnly,
143
+ ...name !== void 0 ? { name } : {}
144
+ });
145
+ if (!readOnly) {
146
+ const { attachNexusGlobalStore } = await import(
147
+ /* webpackIgnore: true */
148
+ "@cleocode/core/cloud/nexus-home.js"
149
+ );
150
+ try {
151
+ const global = await attachNexusGlobalStore({ apiUrl: hooks.apiUrl });
152
+ result = { ...result, warnings: [...result.warnings, ...global.warnings] };
153
+ } catch (err) {
154
+ result = {
155
+ ...result,
156
+ warnings: [
157
+ ...result.warnings,
158
+ `signed in, but attaching this device's global store failed (${err instanceof Error ? err.message : String(err)}); run \`cleo login nexus\` again`
159
+ ]
160
+ };
161
+ }
162
+ }
163
+ } else {
164
+ if (name !== void 0) {
165
+ process.stderr.write(
166
+ "warning: --name needs device credentials, which CLEO_NEXUS_DEVICE=0 turns off; ignored\n"
167
+ );
168
+ }
169
+ const { NEXUS_TEST_BEARER_ENV, W_NEXUS_TEST_BEARER_IGNORED } = await import(
170
+ /* webpackIgnore: true */
171
+ "@cleocode/core/cloud/nexus-enrol.js"
172
+ );
173
+ if ((process.env[NEXUS_TEST_BEARER_ENV]?.trim() ?? "") !== "") {
174
+ process.stderr.write(
175
+ `warning: ${W_NEXUS_TEST_BEARER_IGNORED}: ${NEXUS_TEST_BEARER_ENV} needs device credentials, which CLEO_NEXUS_DEVICE turns off; ignored
176
+ `
177
+ );
178
+ }
179
+ result = await loginToNexus(hooks);
180
+ }
181
+ if (codeShown) writeDeviceCodeApproved(SERVICE_NAME);
182
+ for (const warning of result.warnings) process.stderr.write(`warning: ${warning}
183
+ `);
184
+ return result;
185
+ } catch (err) {
186
+ writeDeviceCodeInterrupted();
187
+ throw err;
188
+ }
189
+ }
190
+ function nexusLoginSummary(r) {
191
+ const who = r.user?.email ?? "your account";
192
+ const org = r.organization ? ` (${r.organization.name})` : "";
193
+ const device = r.device ? ` This machine is device ${r.device.deviceId}${r.device.name ? ` (${r.device.name})` : ""}, profile ${r.device.profile ?? "unknown"}.` : "";
194
+ return `Signed in to ${r.apiUrl} as ${who}${org}.${device}${nexusAccountSetupLine(r)}`;
195
+ }
196
+ function nexusAccountSetupLine(r) {
197
+ const account = r.account;
198
+ if (account === void 0) return "";
199
+ switch (account.status) {
200
+ case "ready":
201
+ case "skipped":
202
+ return ` ${account.summary}`;
203
+ case "unsupported":
204
+ return " Encrypted backups are not available on this server (see warnings).";
205
+ case "failed":
206
+ return ` Encrypted backups are NOT set up: step ${account.step} failed (see warnings for the fix).`;
207
+ }
208
+ }
209
+ function nexusDeviceLogoutSummary(r) {
210
+ const count = (o) => r.devices.filter((d) => d.outcome === o).length;
211
+ const confirmed = count("confirmed");
212
+ const open = r.devices.length - confirmed;
213
+ const what = r.action === "revoke" ? "Revoke" : "Sign-out";
214
+ if (r.devices.length === 0 && r.session === null) {
215
+ return r.warnings.length > 0 ? `${what} on ${r.apiUrl}: nothing was sent (see warnings).` : `Not signed in to ${r.apiUrl}; nothing to do.`;
216
+ }
217
+ const parts = [];
218
+ if (r.devices.length > 0)
219
+ parts.push(`${confirmed} of ${r.devices.length} device request(s) confirmed`);
220
+ if (open > 0) parts.push(`${open} NOT confirmed (see warnings)`);
221
+ if (r.session !== null) parts.push(`9.24 session ${r.session.revocation}`);
222
+ const notConfirmed = open > 0 || r.devices.length > 0 && confirmed === 0 || r.session?.revocation === "failed";
223
+ const lead = notConfirmed ? `${what} NOT fully confirmed on` : `${what} confirmed on`;
224
+ return `${lead} ${r.apiUrl}: ${parts.join("; ")}.`;
225
+ }
226
+ async function runNexusDeviceLogout(args) {
227
+ let result;
228
+ try {
229
+ const { logoutNexusDevice } = await import(
230
+ /* webpackIgnore: true */
231
+ "@cleocode/core/cloud/nexus-logout.js"
232
+ );
233
+ result = await logoutNexusDevice({
234
+ apiUrl: nexusApiUrlArg(args),
235
+ revoke: args["revoke"] === true
236
+ });
237
+ } catch (err) {
238
+ failNexus(err, "logout.run");
239
+ }
240
+ for (const warning of result.warnings) process.stderr.write(`warning: ${warning}
241
+ `);
242
+ emitNexusResult(result, nexusDeviceLogoutSummary(result), "logout", "logout.run");
243
+ }
244
+
245
+ export {
246
+ writeDeviceCodePrompt,
247
+ writeDeviceCodePending,
248
+ writeDeviceCodeInterrupted,
249
+ writeDeviceCodeApproved,
250
+ NEXUS_API_URL_ARG,
251
+ nexusApiUrlArg,
252
+ failNexus,
253
+ writeNexusWarnings,
254
+ emitNexusResult,
255
+ runNexusLogin,
256
+ nexusLoginSummary,
257
+ runNexusDeviceLogout
258
+ };
259
+ //# sourceMappingURL=chunk-ULN4OKQQ.js.map
@@ -0,0 +1,46 @@
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
+
17
+ // packages/cleo/src/cli/renderers/colors.ts
18
+ import {
19
+ BLUE,
20
+ BOLD,
21
+ BOX,
22
+ CYAN,
23
+ DIM,
24
+ GREEN,
25
+ hRule,
26
+ MAGENTA,
27
+ NC,
28
+ priorityColor,
29
+ prioritySymbol,
30
+ RED,
31
+ shortDate,
32
+ statusColor,
33
+ statusSymbol,
34
+ YELLOW
35
+ } from "@cleocode/core";
36
+
37
+ export {
38
+ BOLD,
39
+ CYAN,
40
+ DIM,
41
+ GREEN,
42
+ NC,
43
+ RED,
44
+ YELLOW
45
+ };
46
+ //# sourceMappingURL=chunk-V5GBGOGM.js.map
@@ -0,0 +1,31 @@
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
+
17
+ // packages/cleo/src/cli/cleo-error-like.ts
18
+ function asCleoErrorLike(err) {
19
+ if (!(err instanceof Error)) return null;
20
+ const candidate = err;
21
+ return typeof candidate.code === "number" && Number.isInteger(candidate.code) && typeof candidate.toLAFSError === "function" ? candidate : null;
22
+ }
23
+ function cleoErrorCodeName(typed) {
24
+ return typeof typed.codeName === "string" && typed.codeName.length > 0 ? typed.codeName : typed.toLAFSError().code;
25
+ }
26
+
27
+ export {
28
+ asCleoErrorLike,
29
+ cleoErrorCodeName
30
+ };
31
+ //# sourceMappingURL=chunk-VLEYOOPH.js.map
@@ -0,0 +1,66 @@
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
+ OPERATIONS
18
+ } from "./chunk-AWCQH2W5.js";
19
+
20
+ // packages/cleo/src/cli/lib/registry-args.ts
21
+ import { paramsToCittyArgs } from "@cleocode/contracts";
22
+ var IDEMPOTENCY_KEY_PARAM = {
23
+ name: "idempotencyKey",
24
+ type: "string",
25
+ required: false,
26
+ description: "Optional retry token for safely replaying idempotent mutating commands.",
27
+ cli: { flag: "idempotency-key" }
28
+ };
29
+ function getOperationParams(gateway, domain, operation) {
30
+ const def = OPERATIONS.find(
31
+ (o) => o.gateway === gateway && o.domain === domain && o.operation === operation
32
+ );
33
+ const params = def?.params ?? [];
34
+ if (!def || def.gateway !== "mutate" || !def.idempotent) return params;
35
+ if (params.some((param) => param.name === IDEMPOTENCY_KEY_PARAM.name)) return params;
36
+ return [...params, IDEMPOTENCY_KEY_PARAM];
37
+ }
38
+ function registryParamsToDispatchPayload(params, args) {
39
+ const payload = {};
40
+ for (const param of params) {
41
+ const flag = param.cli?.flag ?? param.name;
42
+ const raw = args[flag];
43
+ if (raw === void 0 || raw === null) continue;
44
+ if (param.type === "number") {
45
+ payload[param.name] = typeof raw === "number" ? raw : Number(String(raw));
46
+ continue;
47
+ }
48
+ if (param.type === "boolean") {
49
+ payload[param.name] = typeof raw === "boolean" ? raw : String(raw) !== "false";
50
+ continue;
51
+ }
52
+ if (param.type === "array") {
53
+ payload[param.name] = Array.isArray(raw) ? raw : String(raw).split(",").map((part) => part.trim()).filter((part) => part.length > 0);
54
+ continue;
55
+ }
56
+ payload[param.name] = raw;
57
+ }
58
+ return payload;
59
+ }
60
+
61
+ export {
62
+ getOperationParams,
63
+ registryParamsToDispatchPayload,
64
+ paramsToCittyArgs
65
+ };
66
+ //# sourceMappingURL=chunk-W33Q3FBH.js.map
@@ -0,0 +1,140 @@
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
+ isQuiet
18
+ } from "./chunk-6JSJNYH2.js";
19
+
20
+ // packages/cleo/src/cli/progress.ts
21
+ import { stderr } from "node:process";
22
+ var ProgressTracker = class {
23
+ enabled;
24
+ prefix;
25
+ currentStep = 0;
26
+ totalSteps;
27
+ steps;
28
+ constructor(options) {
29
+ this.enabled = options.enabled;
30
+ this.prefix = options.prefix ?? "CLEO";
31
+ this.steps = options.steps;
32
+ this.totalSteps = options.steps.length;
33
+ }
34
+ /**
35
+ * Start the progress tracker.
36
+ */
37
+ start() {
38
+ if (!this.enabled || isQuiet()) return;
39
+ this.currentStep = 0;
40
+ stderr.write(`
41
+ ${this.prefix}: Starting...
42
+ `);
43
+ }
44
+ /**
45
+ * Update to a specific step.
46
+ */
47
+ step(index, message) {
48
+ if (!this.enabled || isQuiet()) return;
49
+ this.currentStep = index;
50
+ const stepName = this.steps[index] ?? message ?? "Working...";
51
+ const progress = `[${index + 1}/${this.totalSteps}]`;
52
+ stderr.write(` ${progress} ${stepName}...
53
+ `);
54
+ }
55
+ /**
56
+ * Move to next step.
57
+ */
58
+ next(message) {
59
+ this.step(this.currentStep + 1, message);
60
+ }
61
+ /**
62
+ * Mark as complete with optional summary.
63
+ *
64
+ * @remarks
65
+ * Writes to stderr (not stdout) so that progress messages never pollute
66
+ * the machine-readable JSON envelope on stdout. Stdout MUST contain exactly
67
+ * one JSON object per CLI invocation (ADR-039 / T927).
68
+ */
69
+ complete(summary) {
70
+ if (!this.enabled || isQuiet()) return;
71
+ if (summary) {
72
+ stderr.write(`
73
+ ${this.prefix}: \u2713 ${summary}
74
+
75
+ `);
76
+ } else {
77
+ stderr.write(`
78
+ ${this.prefix}: \u2713 Complete
79
+
80
+ `);
81
+ }
82
+ }
83
+ /**
84
+ * Report an error.
85
+ */
86
+ error(message) {
87
+ if (!this.enabled || isQuiet()) return;
88
+ stderr.write(`
89
+ ${this.prefix}: \u2717 ${message}
90
+
91
+ `);
92
+ }
93
+ };
94
+ function createSelfUpdateProgress(enabled) {
95
+ return new ProgressTracker({
96
+ enabled,
97
+ prefix: "CLEO",
98
+ steps: [
99
+ "Detecting installation type",
100
+ "Checking current version",
101
+ "Querying npm registry",
102
+ "Comparing versions",
103
+ "Running post-update checks",
104
+ "Finalizing"
105
+ ]
106
+ });
107
+ }
108
+ function createDoctorProgress(enabled) {
109
+ return new ProgressTracker({
110
+ enabled,
111
+ prefix: "CLEO Doctor",
112
+ steps: [
113
+ "Checking CLEO directory",
114
+ "Verifying tasks database",
115
+ "Checking configuration",
116
+ "Validating schemas",
117
+ "Running health checks"
118
+ ]
119
+ });
120
+ }
121
+ function createUpgradeProgress(enabled) {
122
+ return new ProgressTracker({
123
+ enabled,
124
+ prefix: "CLEO Upgrade",
125
+ steps: [
126
+ "Analyzing current state",
127
+ "Checking storage migration needs",
128
+ "Validating schemas",
129
+ "Applying fixes",
130
+ "Verifying results"
131
+ ]
132
+ });
133
+ }
134
+
135
+ export {
136
+ createSelfUpdateProgress,
137
+ createDoctorProgress,
138
+ createUpgradeProgress
139
+ };
140
+ //# sourceMappingURL=chunk-W3JLYKKY.js.map
@@ -0,0 +1,48 @@
1
+ (() => {
2
+ const _installed = Symbol.for('cleocode.cli.sqliteWarningFilter');
3
+ if (globalThis[_installed]) return;
4
+ globalThis[_installed] = true;
5
+ const _origEmitWarning = process.emitWarning;
6
+ process.emitWarning = function(warning, type, code, ctor) {
7
+ if (typeof warning === 'object' && warning.name === 'ExperimentalWarning' && typeof warning.message === 'string' && /SQLite is an experimental feature/i.test(warning.message)) {
8
+ return;
9
+ }
10
+ if (typeof warning === 'string' && /SQLite is an experimental feature/i.test(warning)) {
11
+ return;
12
+ }
13
+ return _origEmitWarning.call(process, warning, type, code, ctor);
14
+ };
15
+ })();
16
+ import {
17
+ defineCommand
18
+ } from "./chunk-PKKZPOOP.js";
19
+ import {
20
+ cliOutput
21
+ } from "./chunk-3ZO3M37V.js";
22
+
23
+ // packages/cleo/src/cli/commands/doctor-dep-cycles.ts
24
+ import { scanDependencyCycles } from "@cleocode/core/doctor/dependency-cycles.js";
25
+ import { getProjectRoot } from "@cleocode/core/paths.js";
26
+ var doctorDepCyclesCommand = defineCommand({
27
+ meta: {
28
+ name: "dep-cycles",
29
+ description: "Report task dependency cycles already stored (edges written before the T12886 cycle guard) with a repair plan: the edges whose removal breaks every cycle, each with its `cleo update <id> --remove-depends <dep>` command. Read-only; never removes an edge."
30
+ },
31
+ args: {
32
+ json: { type: "boolean", description: "Output as JSON" },
33
+ human: { type: "boolean", description: "Force human-readable output" },
34
+ quiet: { type: "boolean", description: "Suppress non-essential output" }
35
+ },
36
+ async run() {
37
+ const report = await scanDependencyCycles(getProjectRoot());
38
+ cliOutput(report, { command: "doctor", operation: "doctor.dep-cycles.run" });
39
+ if (report.cycleCount > 0 && (process.exitCode === void 0 || process.exitCode === 0)) {
40
+ process.exitCode = 2;
41
+ }
42
+ }
43
+ });
44
+
45
+ export {
46
+ doctorDepCyclesCommand
47
+ };
48
+ //# sourceMappingURL=chunk-XRAX6XFP.js.map
@@ -0,0 +1,78 @@
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
+ cliOutput
21
+ } from "./chunk-3ZO3M37V.js";
22
+
23
+ // packages/cleo/src/cli/commands/doctor-memory-guard.ts
24
+ import { spawnSync } from "node:child_process";
25
+ import {
26
+ auditMemoryGuard,
27
+ buildMemoryGuardFixCommands
28
+ } from "@cleocode/core/resources/memory-guard.js";
29
+ var doctorMemoryGuardCommand = defineCommand({
30
+ meta: {
31
+ name: "memory-guard",
32
+ description: "Audit the machine-wide memory guard that bounds test runs an agent starts OUTSIDE cleo (pnpm test / npx vitest). Read-only; --fix applies the recommended cgroup limits."
33
+ },
34
+ args: {
35
+ fix: {
36
+ type: "boolean",
37
+ description: "Apply the recommended MemoryHigh/MemoryMax to app.slice. Persists a systemd user drop-in and affects the whole desktop session."
38
+ },
39
+ json: { type: "boolean", description: "Output as JSON" },
40
+ human: { type: "boolean", description: "Force human-readable output" },
41
+ quiet: { type: "boolean", description: "Suppress non-essential output" }
42
+ },
43
+ async run({ args }) {
44
+ const audit = auditMemoryGuard();
45
+ const commands = buildMemoryGuardFixCommands(audit);
46
+ const applied = [];
47
+ if (args.fix === true) {
48
+ for (const argv of commands) {
49
+ const [cmd, ...rest] = argv;
50
+ const r = spawnSync(cmd, rest, { encoding: "utf8" });
51
+ applied.push({
52
+ command: argv.join(" "),
53
+ exitCode: r.status,
54
+ stderr: (r.stderr ?? "").trim()
55
+ });
56
+ }
57
+ }
58
+ const finalAudit = args.fix === true ? auditMemoryGuard() : audit;
59
+ cliOutput(
60
+ {
61
+ ...finalAudit,
62
+ fixApplied: args.fix === true,
63
+ recommendedCommands: commands.map((c) => c.join(" ")),
64
+ applied
65
+ },
66
+ { command: "doctor", operation: "doctor.memory-guard.run" }
67
+ );
68
+ const failed = applied.some((a) => a.exitCode !== 0);
69
+ if ((!finalAudit.guarded || failed) && (process.exitCode ?? 0) === 0) {
70
+ process.exitCode = 1;
71
+ }
72
+ }
73
+ });
74
+
75
+ export {
76
+ doctorMemoryGuardCommand
77
+ };
78
+ //# sourceMappingURL=chunk-YGKEECTI.js.map