@cleocode/cleo 2026.10.2 → 2026.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 -94607
  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/{Buaay_Q8.js → Btgeq_wq.js} +1 -1
  254. package/studio-dist/client/_app/immutable/chunks/{BJp57kf2.js → CgBjxmu6.js} +1 -1
  255. package/studio-dist/client/_app/immutable/chunks/{CLP4JZvZ.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.CczVILch.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.Zy2IsLEl.js → 0.nTXyRfc-.js} +1 -1
  260. package/studio-dist/client/_app/immutable/nodes/{1.DJN1QI3l.js → 1.4zrWeHtl.js} +1 -1
  261. package/studio-dist/client/_app/immutable/nodes/{15.B4rwqbHV.js → 15.D9mk4JyY.js} +1 -1
  262. package/studio-dist/client/_app/immutable/nodes/{16.jn-5BG_L.js → 16._-wt-sQf.js} +1 -1
  263. package/studio-dist/client/_app/immutable/nodes/{17.DnWGC4t9.js → 17.CUu6LQDj.js} +1 -1
  264. package/studio-dist/client/_app/immutable/nodes/{18.0zddLZOY.js → 18.Dz4QRTkX.js} +1 -1
  265. package/studio-dist/client/_app/immutable/nodes/{20.DEKHq9Tc.js → 20.CJ2_EB0U.js} +1 -1
  266. package/studio-dist/client/_app/immutable/nodes/{24.CQB9KP-p.js → 24.Igj2FS7k.js} +1 -1
  267. package/studio-dist/client/_app/immutable/nodes/{25.BaqToZD-.js → 25.BnATjVGN.js} +2 -2
  268. package/studio-dist/client/_app/immutable/nodes/{26.BiE1i4iE.js → 26.6iPyjT44.js} +1 -1
  269. package/studio-dist/client/_app/immutable/nodes/{3.BObAOu_-.js → 3.AA5GwNgP.js} +1 -1
  270. package/studio-dist/client/_app/version.json +1 -1
  271. package/studio-dist/server/chunks/{0-BmUoS2yd.js → 0-DGmsoBYm.js} +3 -3
  272. package/studio-dist/server/chunks/1-8PfxPvlK.js +9 -0
  273. package/studio-dist/server/chunks/{15-Dt4kqUxW.js → 15-Bg6YTndh.js} +3 -3
  274. package/studio-dist/server/chunks/{16-kgTLJvbO.js → 16-BObLwgyD.js} +3 -3
  275. package/studio-dist/server/chunks/{17-mRYB5141.js → 17-BNXGyAHX.js} +3 -3
  276. package/studio-dist/server/chunks/{18-BjZ325q5.js → 18-UqQFRIID.js} +3 -3
  277. package/studio-dist/server/chunks/{20-DQ2Vrujq.js → 20-CMn8a_yP.js} +3 -3
  278. package/studio-dist/server/chunks/{24-DAeuAfXN.js → 24-BuOTDzib.js} +3 -3
  279. package/studio-dist/server/chunks/{25-DGCNmzAS.js → 25-CIMSmjVx.js} +4 -4
  280. package/studio-dist/server/chunks/{26-CiN6bbmR.js → 26-DWGObn2T.js} +3 -3
  281. package/studio-dist/server/chunks/{3-BS2FXYjP.js → 3-CyiffdJZ.js} +3 -3
  282. package/studio-dist/server/chunks/{_layout.svelte-DJ_UWmGp.js → _layout.svelte-DYtClaIk.js} +4 -4
  283. package/studio-dist/server/chunks/{_page.svelte-WR6jUiQE.js → _page.svelte-1h9E6s_f.js} +3 -3
  284. package/studio-dist/server/chunks/{_page.svelte-BUq8_eQH.js → _page.svelte-BNNF62Nm.js} +3 -3
  285. package/studio-dist/server/chunks/{_page.svelte-CRnYa4cW.js → _page.svelte-BT1EUadj.js} +5 -5
  286. package/studio-dist/server/chunks/{_page.svelte-Dk0znswQ.js → _page.svelte-Bip079LT.js} +3 -3
  287. package/studio-dist/server/chunks/{_page.svelte-CcP_KW3Y.js → _page.svelte-CEATWp_5.js} +3 -3
  288. package/studio-dist/server/chunks/{_page.svelte-Ca7x-ZvH.js → _page.svelte-CV3xiD1y.js} +4 -4
  289. package/studio-dist/server/chunks/{_page.svelte-Cfv9tDBA.js → _page.svelte-Cv_KVJDV.js} +3 -3
  290. package/studio-dist/server/chunks/{_page.svelte-J4HjPhfO.js → _page.svelte-DSSy6LuK.js} +3 -3
  291. package/studio-dist/server/chunks/{_page.svelte-D8dLEr7O.js → _page.svelte-TF795TAS.js} +3 -3
  292. package/studio-dist/server/chunks/{_server.ts-Bih2-_5O.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-Cl295FWH.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-ajn1HNOb.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-D9MtKHIF.js → internal-CTULuLPB.js} +2 -2
  302. package/studio-dist/server/chunks/{stores-BlknvZ80.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/C3l-lTkq.js +0 -1
  306. package/studio-dist/client/_app/immutable/entry/start.D7gHmBNS.js +0 -1
  307. package/studio-dist/server/chunks/1-CTjj2MYz.js +0 -9
@@ -0,0 +1,107 @@
1
+ (() => {
2
+ const _installed = Symbol.for('cleocode.cli.sqliteWarningFilter');
3
+ if (globalThis[_installed]) return;
4
+ globalThis[_installed] = true;
5
+ const _origEmitWarning = process.emitWarning;
6
+ process.emitWarning = function(warning, type, code, ctor) {
7
+ if (typeof warning === 'object' && warning.name === 'ExperimentalWarning' && typeof warning.message === 'string' && /SQLite is an experimental feature/i.test(warning.message)) {
8
+ return;
9
+ }
10
+ if (typeof warning === 'string' && /SQLite is an experimental feature/i.test(warning)) {
11
+ return;
12
+ }
13
+ return _origEmitWarning.call(process, warning, type, code, ctor);
14
+ };
15
+ })();
16
+ import {
17
+ defineCommand
18
+ } from "./chunk-PKKZPOOP.js";
19
+ import {
20
+ cliError,
21
+ cliOutput
22
+ } from "./chunk-3ZO3M37V.js";
23
+
24
+ // packages/cleo/src/cli/commands/doctor-projects-registry.ts
25
+ import {
26
+ applyProjectRegistryRepair,
27
+ inspectProjectRegistry,
28
+ RegistryRepairError,
29
+ rollbackProjectRegistryRepair
30
+ } from "@cleocode/core/doctor/projects.js";
31
+ import { NexusRegistryReadError } from "@cleocode/core/nexus/registry-errors.js";
32
+ var positiveInt = (value) => {
33
+ const n = typeof value === "string" ? Number.parseInt(value, 10) : Number.NaN;
34
+ return Number.isFinite(n) && n > 0 ? n : void 0;
35
+ };
36
+ var doctorRegistryCommand = defineCommand({
37
+ meta: {
38
+ name: "projects",
39
+ description: "Machine-wide registry integrity: rebind moved projects by id, flag split identities, missing, temp and home/root rows, each with the exact remedy. Read-only by default; --apply writes a receipt, --rollback <receiptId> restores the prior rows."
40
+ },
41
+ args: {
42
+ "dry-run": { type: "boolean", description: "Report only (the default); write nothing" },
43
+ apply: { type: "boolean", description: "Rebind moved rows and record missing locations" },
44
+ rollback: { type: "string", description: "Restore the rows changed by this receipt id" },
45
+ roots: {
46
+ type: "string",
47
+ description: "Comma-separated extra directories to scan for .cleo/project-id"
48
+ },
49
+ "max-depth": { type: "string", description: "Scan depth below each root (default 2)" },
50
+ concurrency: { type: "string", description: "Filesystem reads in flight (default 16)" },
51
+ "timeout-ms": { type: "string", description: "Budget per filesystem probe (default 2000)" },
52
+ json: { type: "boolean", description: "Output as JSON" },
53
+ human: { type: "boolean", description: "Force human-readable output" },
54
+ quiet: { type: "boolean", description: "Suppress non-essential output" }
55
+ },
56
+ async run({ args }) {
57
+ const operation = args.rollback ? "doctor.projects.rollback" : args.apply && !args["dry-run"] ? "doctor.projects.apply" : "doctor.projects.inspect";
58
+ try {
59
+ if (typeof args.rollback === "string" && args.rollback.length > 0) {
60
+ const result = await rollbackProjectRegistryRepair(args.rollback);
61
+ cliOutput(result, { command: "doctor", operation });
62
+ return;
63
+ }
64
+ const opts = {
65
+ roots: typeof args.roots === "string" ? args.roots.split(",").map((root) => root.trim()).filter((root) => root.length > 0) : void 0,
66
+ maxDepth: positiveInt(args["max-depth"]),
67
+ concurrency: positiveInt(args.concurrency),
68
+ timeoutMs: positiveInt(args["timeout-ms"])
69
+ };
70
+ if (operation === "doctor.projects.apply") {
71
+ cliOutput(await applyProjectRegistryRepair(opts), { command: "doctor", operation });
72
+ return;
73
+ }
74
+ const report = await inspectProjectRegistry(opts);
75
+ cliOutput(report, { command: "doctor", operation });
76
+ if ((report.findings.some((f) => f.kind !== "other-device") || report.ambiguousAliases.length > 0) && (process.exitCode ?? 0) === 0)
77
+ process.exitCode = 1;
78
+ } catch (error) {
79
+ if (error instanceof NexusRegistryReadError) {
80
+ cliError(
81
+ error.message,
82
+ error.code,
83
+ { name: error.codeName, fix: error.fix, details: error.details },
84
+ { operation }
85
+ );
86
+ process.exitCode = error.code;
87
+ return;
88
+ }
89
+ const code = error instanceof RegistryRepairError ? error.code : "E_DOCTOR_PROJECTS_FAILED";
90
+ const exitCode = code === "E_NOT_FOUND" ? 4 : 1;
91
+ cliError(
92
+ error instanceof Error ? error.message : String(error),
93
+ exitCode,
94
+ { name: code },
95
+ {
96
+ operation
97
+ }
98
+ );
99
+ process.exitCode = exitCode;
100
+ }
101
+ }
102
+ });
103
+
104
+ export {
105
+ doctorRegistryCommand
106
+ };
107
+ //# sourceMappingURL=chunk-MNJRLSEQ.js.map
@@ -0,0 +1,91 @@
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-manifest-rows.ts
24
+ import {
25
+ listMalformedManifestRows,
26
+ listManifestIdentityProblems,
27
+ MANIFEST_ROW_APPLY_COMMAND,
28
+ MANIFEST_ROW_REPAIR_COMMAND,
29
+ repairMalformedManifestRows,
30
+ rollbackManifestRepair
31
+ } from "@cleocode/core/memory/pipeline-manifest-sqlite.js";
32
+ import { getProjectRoot } from "@cleocode/core/paths.js";
33
+ var doctorManifestRowsCommand = defineCommand({
34
+ meta: {
35
+ name: "manifest-rows",
36
+ description: "List manifest rows whose metadata violates the stored field contract, and (read-only) rows with an invalid id, linked task id or file reference. --repair shows the plan (writes nothing); --repair --apply moves each bad field under _malformed (nothing lost) with a receipt; --rollback <receipt> undoes it."
37
+ },
38
+ args: {
39
+ repair: {
40
+ type: "boolean",
41
+ description: "Plan the repair of every malformed row; writes nothing"
42
+ },
43
+ apply: {
44
+ type: "boolean",
45
+ description: "Write the repair (writes a receipt first); implies --repair"
46
+ },
47
+ "dry-run": {
48
+ type: "boolean",
49
+ description: "Plan only (the default for --repair); overrides --apply"
50
+ },
51
+ rollback: { type: "string", description: "Undo a repair from its receipt file" },
52
+ json: { type: "boolean", description: "Output as JSON" },
53
+ human: { type: "boolean", description: "Force human-readable output" },
54
+ quiet: { type: "boolean", description: "Suppress non-essential output" }
55
+ },
56
+ async run({ args }) {
57
+ const projectRoot = getProjectRoot();
58
+ if (typeof args.rollback === "string" && args.rollback !== "") {
59
+ const result = await rollbackManifestRepair(args.rollback, projectRoot);
60
+ cliOutput(result, { command: "doctor", operation: "doctor.manifest-rows.rollback" });
61
+ return;
62
+ }
63
+ if (args.repair === true || args.apply === true) {
64
+ const apply = args.apply === true && args["dry-run"] !== true;
65
+ const receipt = await repairMalformedManifestRows(projectRoot, { dryRun: !apply });
66
+ cliOutput(
67
+ apply ? receipt : { ...receipt, apply: receipt.changes.length > 0 ? MANIFEST_ROW_APPLY_COMMAND : null },
68
+ {
69
+ command: "doctor",
70
+ operation: apply ? "doctor.manifest-rows.apply" : "doctor.manifest-rows.plan"
71
+ }
72
+ );
73
+ return;
74
+ }
75
+ const rows = await listMalformedManifestRows(projectRoot);
76
+ const identity = await listManifestIdentityProblems(projectRoot);
77
+ cliOutput(
78
+ { rows, repair: rows.length > 0 ? MANIFEST_ROW_REPAIR_COMMAND : null, identity },
79
+ { command: "doctor", operation: "doctor.manifest-rows.run" }
80
+ );
81
+ const invalidIdentity = identity.some((r) => r.issues.some((i) => i.code === "E_VALIDATION"));
82
+ if ((rows.length > 0 || invalidIdentity) && (process.exitCode === void 0 || process.exitCode === 0)) {
83
+ process.exitCode = 1;
84
+ }
85
+ }
86
+ });
87
+
88
+ export {
89
+ doctorManifestRowsCommand
90
+ };
91
+ //# sourceMappingURL=chunk-NRKWJLMS.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-legacy-reaper.ts
24
+ import { scanLegacyReaper } from "@cleocode/core/doctor/legacy-reaper.js";
25
+ var doctorLegacyReaperCommand = defineCommand({
26
+ meta: {
27
+ name: "legacy-reaper",
28
+ description: "Detect the legacy cleo-mcp-reaper user timer that kills processes by generic `MainThread` comm \u2014 it terminates live Codex CLI sessions. --fix disables and masks it."
29
+ },
30
+ args: {
31
+ fix: { type: "boolean", description: "Disable and mask any legacy unit that can still fire" },
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
+ run({ args }) {
37
+ const report = scanLegacyReaper({ fix: args.fix === true });
38
+ cliOutput(report, { command: "doctor", operation: "doctor.legacy-reaper.run" });
39
+ if (report.armed && !report.remediated) {
40
+ if (process.exitCode === void 0 || process.exitCode === 0) process.exitCode = 1;
41
+ }
42
+ }
43
+ });
44
+
45
+ export {
46
+ doctorLegacyReaperCommand
47
+ };
48
+ //# sourceMappingURL=chunk-NSHV2JNM.js.map
@@ -0,0 +1,210 @@
1
+ (() => {
2
+ const _installed = Symbol.for('cleocode.cli.sqliteWarningFilter');
3
+ if (globalThis[_installed]) return;
4
+ globalThis[_installed] = true;
5
+ const _origEmitWarning = process.emitWarning;
6
+ process.emitWarning = function(warning, type, code, ctor) {
7
+ if (typeof warning === 'object' && warning.name === 'ExperimentalWarning' && typeof warning.message === 'string' && /SQLite is an experimental feature/i.test(warning.message)) {
8
+ return;
9
+ }
10
+ if (typeof warning === 'string' && /SQLite is an experimental feature/i.test(warning)) {
11
+ return;
12
+ }
13
+ return _origEmitWarning.call(process, warning, type, code, ctor);
14
+ };
15
+ })();
16
+ import {
17
+ defineCommand
18
+ } from "./chunk-PKKZPOOP.js";
19
+ import {
20
+ cliError
21
+ } from "./chunk-3ZO3M37V.js";
22
+
23
+ // packages/cleo/src/cli/commands/llm-stream.ts
24
+ async function buildSession(provider, model) {
25
+ const [{ resolveCredentialsAsync }, { ConcreteSession }, { ModelRunner }, { deriveApiWire }] = await Promise.all([
26
+ import(
27
+ /* webpackIgnore: true */
28
+ "@cleocode/core/llm/credentials.js"
29
+ ),
30
+ import(
31
+ /* webpackIgnore: true */
32
+ "@cleocode/core/llm/concrete-session.js"
33
+ ),
34
+ import(
35
+ /* webpackIgnore: true */
36
+ "@cleocode/core/llm/model-runner.js"
37
+ ),
38
+ import(
39
+ /* webpackIgnore: true */
40
+ "@cleocode/core/llm/api-mode.js"
41
+ )
42
+ ]);
43
+ const cred = await resolveCredentialsAsync(provider);
44
+ if (!cred.apiKey) {
45
+ throw new Error(
46
+ `No credential found for provider '${provider}'. Run \`cleo login ${provider}\` (for OAuth) or \`cleo llm add ${provider} <key>\` (for API key).`
47
+ );
48
+ }
49
+ const wire = deriveApiWire(provider, cred.authType);
50
+ const resolvedCredential = {
51
+ provider,
52
+ label: "default",
53
+ token: cred.apiKey,
54
+ authType: cred.authType,
55
+ expiresAt: null,
56
+ refreshToken: null,
57
+ extraHeaders: {},
58
+ baseUrl: wire.baseUrl,
59
+ awsProfile: null
60
+ };
61
+ const transport = ModelRunner.buildTransportFromCredential(
62
+ provider,
63
+ resolvedCredential,
64
+ wire.apiMode
65
+ );
66
+ return new ConcreteSession({ transport, model, credential: resolvedCredential });
67
+ }
68
+ async function getComputeCost() {
69
+ const { computeCost } = await import(
70
+ /* webpackIgnore: true */
71
+ "@cleocode/core/llm/usage-pricing"
72
+ );
73
+ return computeCost;
74
+ }
75
+ async function resolveDefaultModel(provider) {
76
+ const [{ getProviderProfile }, { IMPLICIT_FALLBACK_MODEL }] = await Promise.all([
77
+ import(
78
+ /* webpackIgnore: true */
79
+ "@cleocode/core/llm/provider-registry/index.js"
80
+ ),
81
+ import(
82
+ /* webpackIgnore: true */
83
+ "@cleocode/core/llm/role-resolver.js"
84
+ )
85
+ ]);
86
+ const profile = await getProviderProfile(provider);
87
+ return profile?.defaultModel ?? IMPLICIT_FALLBACK_MODEL;
88
+ }
89
+ async function runLlmStream(opts) {
90
+ const stdout = opts.stdout ?? process.stdout;
91
+ const stderr = opts.stderr ?? process.stderr;
92
+ const session = opts._sessionOverride ?? await buildSession(opts.provider, opts.model ?? await resolveDefaultModel(opts.provider));
93
+ const sendOpts = {
94
+ ...opts.system != null ? { systemSuffix: opts.system } : {}
95
+ };
96
+ const messages = [{ role: "user", content: opts.prompt }];
97
+ let finalUsage = { inputTokens: 0, outputTokens: 0, costUsd: null };
98
+ const stream = session.stream(messages, sendOpts);
99
+ for await (const delta of stream) {
100
+ if (delta.text) {
101
+ stdout.write(delta.text);
102
+ }
103
+ if (delta.reasoning && opts.showThink) {
104
+ stderr.write(delta.reasoning);
105
+ }
106
+ if (delta.usage !== null) {
107
+ const { inputTokens, outputTokens } = delta.usage;
108
+ let costUsd = null;
109
+ try {
110
+ const computeCost = await getComputeCost();
111
+ const raw = computeCost({ inputTokens, outputTokens }, session.model);
112
+ costUsd = raw === 0 ? null : raw;
113
+ } catch {
114
+ }
115
+ finalUsage = { inputTokens, outputTokens, costUsd };
116
+ }
117
+ }
118
+ stderr.write(`${JSON.stringify(finalUsage)}
119
+ `);
120
+ return finalUsage;
121
+ }
122
+ var streamCommand = defineCommand({
123
+ meta: {
124
+ name: "stream",
125
+ description: "Stream a single-prompt completion via LlmTransport.stream(). Text deltas are written to stdout incrementally. Reasoning/think blocks go to stderr (requires --think). A JSON usage summary is printed to stderr at stream end."
126
+ },
127
+ args: {
128
+ provider: {
129
+ type: "positional",
130
+ description: "Provider transport (anthropic | openai | gemini | moonshot | openrouter | \u2026)",
131
+ required: true
132
+ },
133
+ prompt: {
134
+ type: "positional",
135
+ description: "Prompt text to send to the model.",
136
+ required: true
137
+ },
138
+ model: {
139
+ type: "string",
140
+ description: "Model identifier override (e.g. 'claude-sonnet-4-6'). Uses provider default when omitted."
141
+ },
142
+ "max-tokens": {
143
+ type: "string",
144
+ description: "Maximum output tokens (default: 4096)."
145
+ },
146
+ temperature: {
147
+ type: "string",
148
+ description: "Sampling temperature in 0.0\u20131.0 (default: 0.7)."
149
+ },
150
+ think: {
151
+ type: "boolean",
152
+ description: "Emit reasoning/think blocks to stderr (default: off).",
153
+ default: false
154
+ },
155
+ system: {
156
+ type: "string",
157
+ description: "Optional system prompt prepended to the conversation."
158
+ }
159
+ },
160
+ async run({ args }) {
161
+ const a = args;
162
+ const provider = String(a["provider"] ?? "").trim();
163
+ const prompt = String(a["prompt"] ?? "").trim();
164
+ if (!provider) {
165
+ cliError(
166
+ "cleo llm stream: <provider> is required.",
167
+ 2,
168
+ { name: "E_VALIDATION", fix: "Pass a provider as the first positional argument." },
169
+ { operation: "llm.stream" }
170
+ );
171
+ process.exit(2);
172
+ }
173
+ if (!prompt) {
174
+ cliError(
175
+ "cleo llm stream: <prompt> is required.",
176
+ 2,
177
+ { name: "E_VALIDATION", fix: "Pass a prompt as the second positional argument." },
178
+ { operation: "llm.stream" }
179
+ );
180
+ process.exit(2);
181
+ }
182
+ const model = typeof a["model"] === "string" && a["model"] ? a["model"] : void 0;
183
+ const maxTokensRaw = typeof a["max-tokens"] === "string" ? Number(a["max-tokens"]) : void 0;
184
+ const maxTokens = maxTokensRaw !== void 0 && !Number.isNaN(maxTokensRaw) ? maxTokensRaw : void 0;
185
+ const tempRaw = typeof a["temperature"] === "string" ? parseFloat(a["temperature"]) : void 0;
186
+ const temperature = tempRaw !== void 0 && !Number.isNaN(tempRaw) ? tempRaw : void 0;
187
+ const showThink = a["think"] === true;
188
+ const system = typeof a["system"] === "string" && a["system"] ? a["system"] : void 0;
189
+ void maxTokens;
190
+ void temperature;
191
+ try {
192
+ await runLlmStream({ provider, prompt, model, maxTokens, temperature, showThink, system });
193
+ } catch (err) {
194
+ const msg = err instanceof Error ? err.message : String(err);
195
+ cliError(
196
+ `cleo llm stream: ${msg}`,
197
+ 1,
198
+ { name: "E_LLM_STREAM_FAILED" },
199
+ { operation: "llm.stream" }
200
+ );
201
+ process.exit(1);
202
+ }
203
+ }
204
+ });
205
+
206
+ export {
207
+ runLlmStream,
208
+ streamCommand
209
+ };
210
+ //# sourceMappingURL=chunk-NWTATTEQ.js.map
@@ -0,0 +1,89 @@
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-tool-locks.ts
24
+ import { CANONICAL_TOOLS } from "@cleocode/core/tasks/tool-resolver.js";
25
+ import { listSlotHolders, reapOrphanedSlots } from "@cleocode/core/tasks/tool-semaphore.js";
26
+ var doctorToolLocksCommand = defineCommand({
27
+ meta: {
28
+ name: "tool-locks",
29
+ description: "Inspect the machine-wide evidence-tool semaphore: which slots are held, by which pid, and whether that pid is still alive. Read-only; --reap frees provably-orphaned slots."
30
+ },
31
+ args: {
32
+ reap: {
33
+ type: "boolean",
34
+ description: "Free slots whose recorded holder is no longer running. Fails safe: an unknown holder, a holder on another host, or any error counts as ALIVE and is never reaped."
35
+ },
36
+ tool: {
37
+ type: "string",
38
+ description: "Restrict to one canonical tool (test, build, lint, typecheck, \u2026)."
39
+ },
40
+ json: { type: "boolean", description: "Output as JSON" },
41
+ human: { type: "boolean", description: "Force human-readable output" },
42
+ quiet: { type: "boolean", description: "Suppress non-essential output" }
43
+ },
44
+ async run({ args }) {
45
+ const requested = typeof args.tool === "string" && args.tool.length > 0 ? args.tool : null;
46
+ const tools = requested ? CANONICAL_TOOLS.filter((t) => t === requested) : [...CANONICAL_TOOLS];
47
+ if (requested && tools.length === 0) {
48
+ cliOutput(
49
+ { error: `Unknown canonical tool "${requested}"`, known: [...CANONICAL_TOOLS] },
50
+ { command: "doctor", operation: "doctor.tool-locks.run" }
51
+ );
52
+ process.exitCode = 1;
53
+ return;
54
+ }
55
+ const reaped = [];
56
+ if (args.reap === true) {
57
+ for (const tool of tools) reaped.push(...reapOrphanedSlots(tool));
58
+ }
59
+ const slots = tools.flatMap(
60
+ (tool) => listSlotHolders(tool).map((row) => ({
61
+ tool,
62
+ slot: row.slot,
63
+ held: row.held,
64
+ alive: row.alive,
65
+ orphaned: row.held && !row.alive,
66
+ holder: row.holder
67
+ }))
68
+ );
69
+ const orphaned = slots.filter((s) => s.orphaned);
70
+ cliOutput(
71
+ {
72
+ slots,
73
+ heldCount: slots.filter((s) => s.held).length,
74
+ orphanedCount: orphaned.length,
75
+ reaped,
76
+ reapApplied: args.reap === true
77
+ },
78
+ { command: "doctor", operation: "doctor.tool-locks.run" }
79
+ );
80
+ if (orphaned.length > 0 && (process.exitCode ?? 0) === 0) {
81
+ process.exitCode = 1;
82
+ }
83
+ }
84
+ });
85
+
86
+ export {
87
+ doctorToolLocksCommand
88
+ };
89
+ //# sourceMappingURL=chunk-OAPN46TC.js.map
@@ -0,0 +1,59 @@
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/paths.ts
18
+ import { BRAIN_DB_FILENAME, CLEO_DIR_NAME, WORKFLOWS_SUBDIR } from "@cleocode/runtime/gateway";
19
+ var AGENTS_SUBDIR = "agents";
20
+ var CANT_AGENTS_SUBDIR = "cant/agents";
21
+ var TEMPLATES_SUBDIR = "templates";
22
+ var RESTORE_IMPORTED_SUBDIR = "restore-imported";
23
+ var TASKS_DB_FILENAME = "tasks.db";
24
+ var CONDUIT_DB_FILENAME = "conduit.db";
25
+ var NEXUS_DB_FILENAME = "nexus.db";
26
+ var SIGNALDOCK_DB_FILENAME = "signaldock.db";
27
+ var CONFIG_JSON = "config.json";
28
+ var PROJECT_INFO_JSON = "project-info.json";
29
+ var PROJECT_CONTEXT_JSON = "project-context.json";
30
+ var RESTORE_CONFLICTS_MD = "restore-conflicts.md";
31
+ var MIGRATE_MEMORY_HASHES_JSON = "migrate-memory-hashes.json";
32
+ var CLEO_INJECTION_MD = "CLEO-INJECTION.md";
33
+ var CLI_PROJECT_BACKUP_FILES = [
34
+ `${CLEO_DIR_NAME}/${TASKS_DB_FILENAME}`,
35
+ `${CLEO_DIR_NAME}/${BRAIN_DB_FILENAME}`,
36
+ `${CLEO_DIR_NAME}/${CONDUIT_DB_FILENAME}`,
37
+ `${CLEO_DIR_NAME}/${CONFIG_JSON}`,
38
+ `${CLEO_DIR_NAME}/${PROJECT_INFO_JSON}`,
39
+ `${CLEO_DIR_NAME}/${PROJECT_CONTEXT_JSON}`
40
+ ];
41
+ var CLI_GLOBAL_BACKUP_FILES = [NEXUS_DB_FILENAME, SIGNALDOCK_DB_FILENAME];
42
+ var RESTORE_DEFAULT_FILE = TASKS_DB_FILENAME;
43
+
44
+ export {
45
+ CLEO_DIR_NAME,
46
+ AGENTS_SUBDIR,
47
+ CANT_AGENTS_SUBDIR,
48
+ TEMPLATES_SUBDIR,
49
+ RESTORE_IMPORTED_SUBDIR,
50
+ CONFIG_JSON,
51
+ PROJECT_INFO_JSON,
52
+ RESTORE_CONFLICTS_MD,
53
+ MIGRATE_MEMORY_HASHES_JSON,
54
+ CLEO_INJECTION_MD,
55
+ CLI_PROJECT_BACKUP_FILES,
56
+ CLI_GLOBAL_BACKUP_FILES,
57
+ RESTORE_DEFAULT_FILE
58
+ };
59
+ //# sourceMappingURL=chunk-OGV57L4J.js.map