@namzu/cli 49.1.1 → 50.1.0

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 (380) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/dist/bin.js +4 -46
  3. package/dist/bin.js.map +2 -2
  4. package/dist/chunks/{acp-MBBNHTFF.js → acp-PFKCDYRZ.js} +443 -51
  5. package/dist/chunks/acp-PFKCDYRZ.js.map +6 -0
  6. package/dist/chunks/{activity-command-W7V33K4I.js → activity-command-VZNRTS4Y.js} +12 -12
  7. package/dist/chunks/{add-FQUU7CPV.js → add-ILOY57M3.js} +21 -21
  8. package/dist/chunks/{agent-MJG43QEN.js → agent-7XMB6YDL.js} +37 -37
  9. package/dist/chunks/agent-session-EJPBND2I.js +69 -0
  10. package/dist/chunks/{archive-VOUK2Z7P.js → archive-YUJITQ3K.js} +10 -10
  11. package/dist/chunks/{bin-main-FMGPWUMO.js → bin-main-QQCDUNOU.js} +7 -7
  12. package/dist/chunks/{binding-CRYJQ7PU.js → binding-QXY72MYE.js} +3 -3
  13. package/dist/chunks/{browser-MSESQ5SY.js → browser-T5M3N46O.js} +6 -6
  14. package/dist/chunks/{chat-JK7GKOOT.js → chat-H6P7555R.js} +15 -15
  15. package/dist/chunks/{chunk-UEETLO7H.js → chunk-2BMVENUB.js} +2 -2
  16. package/dist/chunks/{chunk-KL3CLIA2.js → chunk-2FQ6QJIZ.js} +12 -12
  17. package/dist/chunks/{chunk-EQTOFC36.js → chunk-424T6RL4.js} +2 -2
  18. package/dist/chunks/{chunk-24VVQCMV.js → chunk-45PI33XV.js} +3 -3
  19. package/dist/chunks/{chunk-M2VJZ5G5.js → chunk-4IP74K5V.js} +2 -2
  20. package/dist/chunks/{chunk-XCECERRM.js → chunk-4QIWRKJO.js} +34 -5
  21. package/dist/chunks/chunk-4QIWRKJO.js.map +6 -0
  22. package/dist/chunks/{chunk-VJXFLYGQ.js → chunk-56WREK7X.js} +2 -2
  23. package/dist/chunks/{chunk-FDV7XIWK.js → chunk-57EJUGDT.js} +3 -3
  24. package/dist/chunks/{chunk-MVMP5SIL.js → chunk-5WSDPQ3D.js} +4 -4
  25. package/dist/chunks/{chunk-QCL4LFUZ.js → chunk-6X3NKVRL.js} +19 -12
  26. package/dist/chunks/{chunk-QCL4LFUZ.js.map → chunk-6X3NKVRL.js.map} +1 -1
  27. package/dist/chunks/{chunk-NZAFY2F4.js → chunk-7VXBUWVA.js} +2 -2
  28. package/dist/chunks/{chunk-3VMSB36D.js → chunk-AKXUNA4X.js} +6 -6
  29. package/dist/chunks/{chunk-26CZDEKO.js → chunk-BIDU2JUB.js} +2 -2
  30. package/dist/chunks/{chunk-6BRAEYBL.js → chunk-C2PBNQYT.js} +10 -10
  31. package/dist/chunks/{chunk-54NEBNV3.js → chunk-CFCULKSN.js} +2 -2
  32. package/dist/chunks/{chunk-SVRLQQMB.js → chunk-CPWGSBBN.js} +3 -3
  33. package/dist/chunks/{chunk-TGUXLYS2.js → chunk-CR23VYUE.js} +13 -13
  34. package/dist/chunks/{chunk-2JZ6O4JX.js → chunk-D7W5LUXV.js} +3 -3
  35. package/dist/chunks/{chunk-MJOO5EA4.js → chunk-E6BNHEYX.js} +4 -4
  36. package/dist/chunks/{chunk-XWMIL5WP.js → chunk-EPDDCCV5.js} +2 -2
  37. package/dist/chunks/{chunk-WEQDKDC3.js → chunk-FGEJOOL4.js} +3 -3
  38. package/dist/chunks/{chunk-EPMW4N5H.js → chunk-FIIZZRMV.js} +3 -3
  39. package/dist/chunks/{chunk-QZAYT5UR.js → chunk-FM2QPMPK.js} +2 -2
  40. package/dist/chunks/{chunk-NPRTOWXF.js → chunk-FXAHVRUE.js} +3 -3
  41. package/dist/chunks/{chunk-37JCXHFG.js → chunk-G5OCRPZF.js} +4 -4
  42. package/dist/chunks/{chunk-37JCXHFG.js.map → chunk-G5OCRPZF.js.map} +1 -1
  43. package/dist/chunks/{chunk-5PAU4A3K.js → chunk-GKPO6EGA.js} +2 -2
  44. package/dist/chunks/{chunk-JCP7GH4E.js → chunk-GL6KSVMS.js} +9 -9
  45. package/dist/chunks/{chunk-WH6LELNJ.js → chunk-GN424XZ3.js} +7 -7
  46. package/dist/chunks/{chunk-UNYSNMAQ.js → chunk-GWXAAFPJ.js} +2 -2
  47. package/dist/chunks/{chunk-XKRGL5Z5.js → chunk-HDOYZYBW.js} +16 -4
  48. package/dist/chunks/chunk-HDOYZYBW.js.map +6 -0
  49. package/dist/chunks/{chunk-DZBKO5XZ.js → chunk-HNVUVSOI.js} +2 -2
  50. package/dist/chunks/{chunk-GO3IILJG.js → chunk-HUKEVKWH.js} +3 -3
  51. package/dist/chunks/{chunk-2RWJX3XO.js → chunk-HYUVSO4X.js} +4 -4
  52. package/dist/chunks/{chunk-OS4QHE3D.js → chunk-HYWVPQQD.js} +4 -4
  53. package/dist/chunks/{chunk-XCGIZUMG.js → chunk-IQPD7KYD.js} +3 -3
  54. package/dist/chunks/{chunk-CCYLACZC.js → chunk-ITNMS75R.js} +2 -2
  55. package/dist/chunks/{chunk-3KLNVOTV.js → chunk-IXDECEIX.js} +4 -4
  56. package/dist/chunks/{chunk-Q6JWNB54.js → chunk-IXNUPR24.js} +33 -33
  57. package/dist/chunks/{chunk-2SBMVMTO.js → chunk-IZHREIZK.js} +6 -6
  58. package/dist/chunks/{chunk-R4SQ7YG2.js → chunk-JGYCZO6C.js} +2 -2
  59. package/dist/chunks/{chunk-LID7O2YP.js → chunk-JQUAYX3B.js} +5 -5
  60. package/dist/chunks/{chunk-BIV4ZVMQ.js → chunk-K4PPNYXR.js} +2 -2
  61. package/dist/chunks/{chunk-NIBYXC3H.js → chunk-KKEWKJVL.js} +3 -3
  62. package/dist/chunks/{chunk-B73OIFL6.js → chunk-KTPFUCRU.js} +3 -3
  63. package/dist/chunks/{chunk-JW67WBS2.js → chunk-MAMV7MUG.js} +9 -9
  64. package/dist/chunks/{chunk-BBESTSGG.js → chunk-MIJGXF3Z.js} +2 -2
  65. package/dist/chunks/chunk-NVZRRJJS.js +113 -0
  66. package/dist/chunks/chunk-NVZRRJJS.js.map +6 -0
  67. package/dist/chunks/{chunk-TUHTURON.js → chunk-NXRUXNJ5.js} +2 -2
  68. package/dist/chunks/{chunk-FAL6MHR7.js → chunk-P2E6HFIP.js} +2 -2
  69. package/dist/chunks/{chunk-5EOQWRBM.js → chunk-P7NXR4OV.js} +4 -4
  70. package/dist/chunks/{chunk-4DMJITJF.js → chunk-PCW42R33.js} +5 -5
  71. package/dist/chunks/{chunk-YZFC3GTH.js → chunk-QNIHTTLG.js} +3 -3
  72. package/dist/chunks/{chunk-PBGIIPSL.js → chunk-QPREGR6U.js} +4 -4
  73. package/dist/chunks/{chunk-QDWRNNKU.js → chunk-RGUF5E22.js} +4 -4
  74. package/dist/chunks/{chunk-6JGKF5CJ.js → chunk-RSAB3MPL.js} +11 -11
  75. package/dist/chunks/{chunk-JEIT4APA.js → chunk-RZ6PDAMQ.js} +2 -2
  76. package/dist/chunks/{chunk-QHGD7RLH.js → chunk-S4Q4PC2L.js} +49 -3
  77. package/dist/chunks/chunk-S4Q4PC2L.js.map +6 -0
  78. package/dist/chunks/{chunk-2BSKESPI.js → chunk-SAJGEVVD.js} +3 -3
  79. package/dist/chunks/{chunk-HVNC42NZ.js → chunk-SB3GBZ65.js} +3 -3
  80. package/dist/chunks/{chunk-Z2PZBUDP.js → chunk-SECKALTU.js} +2 -2
  81. package/dist/chunks/{chunk-IOCOFAL2.js → chunk-SFGTJCGU.js} +2 -2
  82. package/dist/chunks/chunk-SOIP273Z.js +75 -0
  83. package/dist/chunks/chunk-SOIP273Z.js.map +6 -0
  84. package/dist/chunks/{chunk-B47YGS45.js → chunk-SSPDO3JT.js} +9 -9
  85. package/dist/chunks/{chunk-6GOXVYVF.js → chunk-SVB7IHBE.js} +3 -3
  86. package/dist/chunks/{chunk-JFAQGZU4.js → chunk-T2DRSTJV.js} +2 -2
  87. package/dist/chunks/{chunk-NSPM2ALB.js → chunk-T4BQXXZS.js} +5 -5
  88. package/dist/chunks/{chunk-BTTD4VKX.js → chunk-UARXWUZO.js} +4 -4
  89. package/dist/chunks/{chunk-WG7E73KJ.js → chunk-UBB7EIHC.js} +3 -3
  90. package/dist/chunks/{chunk-GJABD7QF.js → chunk-URBIMXZN.js} +6 -6
  91. package/dist/chunks/{chunk-2HNRN4BZ.js → chunk-UXXV6VCO.js} +9 -3
  92. package/dist/chunks/chunk-UXXV6VCO.js.map +6 -0
  93. package/dist/chunks/{chunk-GVT765NL.js → chunk-VQ7FOO7M.js} +2 -2
  94. package/dist/chunks/{chunk-UVGXDFY5.js → chunk-WKW65PAC.js} +2 -2
  95. package/dist/chunks/{chunk-JPQSIROH.js → chunk-WTMP5H7T.js} +4 -4
  96. package/dist/chunks/{chunk-PF32FZUI.js → chunk-XC6UYANY.js} +2 -2
  97. package/dist/chunks/{chunk-EWMX4NYZ.js → chunk-XXHZE4KV.js} +22 -3
  98. package/dist/chunks/chunk-XXHZE4KV.js.map +6 -0
  99. package/dist/chunks/{chunk-KOTJVZ33.js → chunk-Y22AUU3X.js} +11 -10
  100. package/dist/chunks/chunk-Y22AUU3X.js.map +6 -0
  101. package/dist/chunks/{chunk-76DVKFKX.js → chunk-Z3DTGVZS.js} +785 -257
  102. package/dist/chunks/chunk-Z3DTGVZS.js.map +6 -0
  103. package/dist/chunks/{chunk-U73P6IJU.js → chunk-ZE6HLPD4.js} +5173 -2683
  104. package/dist/chunks/chunk-ZE6HLPD4.js.map +6 -0
  105. package/dist/chunks/{chunk-MUT6I5NR.js → chunk-ZJKISI2K.js} +63 -11
  106. package/dist/chunks/chunk-ZJKISI2K.js.map +6 -0
  107. package/dist/chunks/{cli-runtime-YAF6N4B4.js → cli-runtime-JXRGA4O7.js} +13 -13
  108. package/dist/chunks/{commands-UJGFQSQ4.js → commands-3K6WWRUN.js} +5 -5
  109. package/dist/chunks/{crash-report-YQOJKQCG.js → crash-report-NTEADY4P.js} +8 -8
  110. package/dist/chunks/{dist-2L7NSJJE.js → dist-43NXQHZ2.js} +2 -2
  111. package/dist/chunks/{dist-HYGOYQLL.js → dist-5ZAKSBZS.js} +2 -2
  112. package/dist/chunks/{dist-MF62HCKV.js → dist-CRT6EQAR.js} +2 -2
  113. package/dist/chunks/{dist-GL2VWTJS.js → dist-EHAGNOTG.js} +7 -2
  114. package/dist/chunks/{dist-GL2VWTJS.js.map → dist-EHAGNOTG.js.map} +1 -1
  115. package/dist/chunks/{dist-GETHBP7P.js → dist-G2QITXMW.js} +2 -2
  116. package/dist/chunks/{dist-B445LLNF.js → dist-VEUKVTZP.js} +3 -3
  117. package/dist/chunks/{dist-H6SCKMJX.js → dist-WDRMCFAU.js} +30 -2
  118. package/dist/chunks/{dist-AFI563E4.js → dist-Z2QVC4OK.js} +2 -2
  119. package/dist/chunks/{doctor-H27EQ5RE.js → doctor-UVX6YR2I.js} +18 -18
  120. package/dist/chunks/{drain-WO6UFXH4.js → drain-URR6CUUH.js} +9 -9
  121. package/dist/chunks/{entry-QFLKR4O3.js → entry-WCWSORA2.js} +6 -6
  122. package/dist/chunks/{eval-SKVWJKSU.js → eval-Y6FUUDCX.js} +2 -2
  123. package/dist/chunks/{exec-ZAXVBVTH.js → exec-5BUTAYMJ.js} +44 -38
  124. package/dist/chunks/exec-5BUTAYMJ.js.map +6 -0
  125. package/dist/chunks/{home-5EUINGKN.js → home-HDE3CFLB.js} +3 -3
  126. package/dist/chunks/{host-5EP6E23T.js → host-TZ6GSDWP.js} +10 -10
  127. package/dist/chunks/{host-queries-6NEPSEAS.js → host-queries-Y7A4XJ64.js} +15 -15
  128. package/dist/chunks/{learn-HJMN624W.js → learn-GYBZNIT3.js} +11 -11
  129. package/dist/chunks/{learn-builtin-VRTLHEQW.js → learn-builtin-EJXTHMX6.js} +14 -14
  130. package/dist/chunks/{lifecycle-MJTRWTCM.js → lifecycle-5EM2QRFV.js} +30 -30
  131. package/dist/chunks/{list-LFBLFIKV.js → list-M34JU5AG.js} +11 -11
  132. package/dist/chunks/{live-MOEHIAAF.js → live-XMBIOII4.js} +17 -17
  133. package/dist/chunks/login-NI3DFWOW.js +34 -0
  134. package/dist/chunks/{logs-EUKQL5B7.js → logs-OI6GZRRC.js} +4 -4
  135. package/dist/chunks/{mcp-CVG7FG6J.js → mcp-FK3OBBSJ.js} +31 -119
  136. package/dist/chunks/mcp-FK3OBBSJ.js.map +6 -0
  137. package/dist/chunks/{message-command-WCIE3455.js → message-command-CIYB47HZ.js} +43 -43
  138. package/dist/chunks/{open-ZY2THIE3.js → open-XYGGZHXM.js} +8 -8
  139. package/dist/chunks/{operator-tools-D6L7ASDD.js → operator-tools-QSZS57PI.js} +13 -13
  140. package/dist/chunks/{output-schema-GR4GYBPU.js → output-schema-BTNJ6DL5.js} +3 -3
  141. package/dist/chunks/{pal-O2V75KQK.js → pal-EQAAJBWP.js} +18 -18
  142. package/dist/chunks/{peers-TNGB6WQH.js → peers-35H6CZOZ.js} +7 -7
  143. package/dist/chunks/{peers-QB4HQ5PZ.js → peers-KN4BGJHU.js} +6 -6
  144. package/dist/chunks/{providers-5VUFH7IJ.js → providers-I2GONE3C.js} +13 -13
  145. package/dist/chunks/{pty-ORVEC6FI.js → pty-GZ4R2DCS.js} +3 -3
  146. package/dist/chunks/resume-4KW4GUYR.js +23 -0
  147. package/dist/chunks/{resume-command-26JB6FZZ.js → resume-command-TOAGIGZO.js} +4 -4
  148. package/dist/chunks/{schedule-LSM2OF24.js → schedule-FU5WY3WV.js} +8 -8
  149. package/dist/chunks/{service-V2BNTEB4.js → service-3UYEV4JX.js} +30 -30
  150. package/dist/chunks/{skills-T2ZYRYZF.js → skills-4V2SBEY3.js} +8 -8
  151. package/dist/chunks/{start-check-A4B3AXO2.js → start-check-RBYWVZT4.js} +2 -2
  152. package/dist/chunks/{startup-failure-YHDJI7YI.js → startup-failure-SST73T7Q.js} +2 -2
  153. package/dist/chunks/{state-OY6VG73L.js → state-N46ZI3LZ.js} +2 -2
  154. package/dist/chunks/{store-QPO2TZ42.js → store-KA6NETSP.js} +3 -3
  155. package/dist/chunks/{store-DBWWXNYV.js → store-M56FSIZT.js} +6 -6
  156. package/dist/chunks/{store-IVQVINSF.js → store-R662Y2YQ.js} +10 -10
  157. package/dist/chunks/{store-LEOLKXRN.js → store-RHAHG45U.js} +4 -4
  158. package/dist/chunks/{tui-VCNESTDO.js → tui-TJNH67YO.js} +167 -68
  159. package/dist/chunks/tui-TJNH67YO.js.map +6 -0
  160. package/dist/chunks/{upgrade-QQ665A7W.js → upgrade-YNYPRYFI.js} +7 -7
  161. package/dist/chunks/{workspaces-5JL7LPKW.js → workspaces-OITS2AZJ.js} +16 -16
  162. package/dist/chunks/{worktree-U2RO5D47.js → worktree-DJW4XCBG.js} +12 -12
  163. package/dist/commands/acp.d.ts +21 -2
  164. package/dist/commands/acp.d.ts.map +1 -1
  165. package/dist/commands/desktop-host.d.ts +32 -0
  166. package/dist/commands/desktop-host.d.ts.map +1 -1
  167. package/dist/commands/desktop-outcome-feed.d.ts +36 -0
  168. package/dist/commands/desktop-outcome-feed.d.ts.map +1 -0
  169. package/dist/commands/desktop-usage-feed.d.ts +41 -0
  170. package/dist/commands/desktop-usage-feed.d.ts.map +1 -0
  171. package/dist/commands/exec.d.ts.map +1 -1
  172. package/dist/compile-cache.d.ts +27 -0
  173. package/dist/compile-cache.d.ts.map +1 -1
  174. package/dist/config/load.d.ts +24 -1
  175. package/dist/config/load.d.ts.map +1 -1
  176. package/dist/config/schema.d.ts +17 -1
  177. package/dist/config/schema.d.ts.map +1 -1
  178. package/dist/config/settings-descriptors.d.ts +5 -0
  179. package/dist/config/settings-descriptors.d.ts.map +1 -1
  180. package/dist/config/turn-guards.d.ts +16 -0
  181. package/dist/config/turn-guards.d.ts.map +1 -1
  182. package/dist/context/environment.d.ts +5 -0
  183. package/dist/context/environment.d.ts.map +1 -1
  184. package/dist/index.js +21 -21
  185. package/dist/integrations/compaction/carried.d.ts +26 -0
  186. package/dist/integrations/compaction/carried.d.ts.map +1 -0
  187. package/dist/integrations/compaction/idle-compaction.d.ts +21 -0
  188. package/dist/integrations/compaction/idle-compaction.d.ts.map +1 -1
  189. package/dist/integrations/decision/memory.d.ts +2 -0
  190. package/dist/integrations/decision/memory.d.ts.map +1 -1
  191. package/dist/integrations/decision/notify.d.ts +2 -0
  192. package/dist/integrations/decision/notify.d.ts.map +1 -1
  193. package/dist/integrations/decision/points.d.ts +2 -0
  194. package/dist/integrations/decision/points.d.ts.map +1 -1
  195. package/dist/integrations/decision/route-history.d.ts +46 -0
  196. package/dist/integrations/decision/route-history.d.ts.map +1 -0
  197. package/dist/integrations/decision/routing.d.ts +3 -0
  198. package/dist/integrations/decision/routing.d.ts.map +1 -1
  199. package/dist/integrations/decision/setup.d.ts.map +1 -1
  200. package/dist/integrations/decision/skill.d.ts +2 -0
  201. package/dist/integrations/decision/skill.d.ts.map +1 -1
  202. package/dist/integrations/mcp/output.d.ts +9 -0
  203. package/dist/integrations/mcp/output.d.ts.map +1 -1
  204. package/dist/integrations/mcp/server-listing.d.ts +53 -0
  205. package/dist/integrations/mcp/server-listing.d.ts.map +1 -0
  206. package/dist/integrations/outcome/change-detector.d.ts +21 -0
  207. package/dist/integrations/outcome/change-detector.d.ts.map +1 -0
  208. package/dist/integrations/providers/discover.d.ts.map +1 -1
  209. package/dist/integrations/providers/harness-credentials.d.ts.map +1 -1
  210. package/dist/integrations/providers/zen-catalogue.d.ts +7 -0
  211. package/dist/integrations/providers/zen-catalogue.d.ts.map +1 -1
  212. package/dist/integrations/sessions/checkpoint-view.d.ts.map +1 -1
  213. package/dist/integrations/subagents/runtime.d.ts +5 -1
  214. package/dist/integrations/subagents/runtime.d.ts.map +1 -1
  215. package/dist/memory/anchors.d.ts +110 -0
  216. package/dist/memory/anchors.d.ts.map +1 -0
  217. package/dist/memory/curation-runtime.d.ts +17 -7
  218. package/dist/memory/curation-runtime.d.ts.map +1 -1
  219. package/dist/memory/curator.d.ts +7 -0
  220. package/dist/memory/curator.d.ts.map +1 -1
  221. package/dist/memory/lifecycle.d.ts +8 -0
  222. package/dist/memory/lifecycle.d.ts.map +1 -1
  223. package/dist/memory/manage.d.ts +3 -0
  224. package/dist/memory/manage.d.ts.map +1 -1
  225. package/dist/memory/sweep.d.ts +15 -1
  226. package/dist/memory/sweep.d.ts.map +1 -1
  227. package/dist/memory/usage.d.ts +9 -0
  228. package/dist/memory/usage.d.ts.map +1 -1
  229. package/dist/permissions/settings.d.ts +9 -0
  230. package/dist/permissions/settings.d.ts.map +1 -1
  231. package/dist/provider-retry.d.ts +4 -0
  232. package/dist/provider-retry.d.ts.map +1 -1
  233. package/dist/tui/App.d.ts.map +1 -1
  234. package/dist/tui/agent.d.ts +26 -1
  235. package/dist/tui/agent.d.ts.map +1 -1
  236. package/dist/tui/index.d.ts.map +1 -1
  237. package/dist/tui/outcome-line.d.ts +12 -0
  238. package/dist/tui/outcome-line.d.ts.map +1 -0
  239. package/dist/tui/paste-marker-guard.d.ts +77 -0
  240. package/dist/tui/paste-marker-guard.d.ts.map +1 -0
  241. package/package.json +6 -6
  242. package/dist/chunks/acp-MBBNHTFF.js.map +0 -6
  243. package/dist/chunks/agent-session-K5GXC7TI.js +0 -69
  244. package/dist/chunks/chunk-2HNRN4BZ.js.map +0 -6
  245. package/dist/chunks/chunk-76DVKFKX.js.map +0 -6
  246. package/dist/chunks/chunk-EWMX4NYZ.js.map +0 -6
  247. package/dist/chunks/chunk-KOTJVZ33.js.map +0 -6
  248. package/dist/chunks/chunk-MUT6I5NR.js.map +0 -6
  249. package/dist/chunks/chunk-QHGD7RLH.js.map +0 -6
  250. package/dist/chunks/chunk-U73P6IJU.js.map +0 -6
  251. package/dist/chunks/chunk-XCECERRM.js.map +0 -6
  252. package/dist/chunks/chunk-XKRGL5Z5.js.map +0 -6
  253. package/dist/chunks/exec-ZAXVBVTH.js.map +0 -6
  254. package/dist/chunks/login-4NTLCW7N.js +0 -34
  255. package/dist/chunks/mcp-CVG7FG6J.js.map +0 -6
  256. package/dist/chunks/resume-YK5YX2GP.js +0 -23
  257. package/dist/chunks/tui-VCNESTDO.js.map +0 -6
  258. /package/dist/chunks/{activity-command-W7V33K4I.js.map → activity-command-VZNRTS4Y.js.map} +0 -0
  259. /package/dist/chunks/{add-FQUU7CPV.js.map → add-ILOY57M3.js.map} +0 -0
  260. /package/dist/chunks/{agent-MJG43QEN.js.map → agent-7XMB6YDL.js.map} +0 -0
  261. /package/dist/chunks/{agent-session-K5GXC7TI.js.map → agent-session-EJPBND2I.js.map} +0 -0
  262. /package/dist/chunks/{archive-VOUK2Z7P.js.map → archive-YUJITQ3K.js.map} +0 -0
  263. /package/dist/chunks/{bin-main-FMGPWUMO.js.map → bin-main-QQCDUNOU.js.map} +0 -0
  264. /package/dist/chunks/{binding-CRYJQ7PU.js.map → binding-QXY72MYE.js.map} +0 -0
  265. /package/dist/chunks/{browser-MSESQ5SY.js.map → browser-T5M3N46O.js.map} +0 -0
  266. /package/dist/chunks/{chat-JK7GKOOT.js.map → chat-H6P7555R.js.map} +0 -0
  267. /package/dist/chunks/{chunk-UEETLO7H.js.map → chunk-2BMVENUB.js.map} +0 -0
  268. /package/dist/chunks/{chunk-KL3CLIA2.js.map → chunk-2FQ6QJIZ.js.map} +0 -0
  269. /package/dist/chunks/{chunk-EQTOFC36.js.map → chunk-424T6RL4.js.map} +0 -0
  270. /package/dist/chunks/{chunk-24VVQCMV.js.map → chunk-45PI33XV.js.map} +0 -0
  271. /package/dist/chunks/{chunk-M2VJZ5G5.js.map → chunk-4IP74K5V.js.map} +0 -0
  272. /package/dist/chunks/{chunk-VJXFLYGQ.js.map → chunk-56WREK7X.js.map} +0 -0
  273. /package/dist/chunks/{chunk-FDV7XIWK.js.map → chunk-57EJUGDT.js.map} +0 -0
  274. /package/dist/chunks/{chunk-MVMP5SIL.js.map → chunk-5WSDPQ3D.js.map} +0 -0
  275. /package/dist/chunks/{chunk-NZAFY2F4.js.map → chunk-7VXBUWVA.js.map} +0 -0
  276. /package/dist/chunks/{chunk-3VMSB36D.js.map → chunk-AKXUNA4X.js.map} +0 -0
  277. /package/dist/chunks/{chunk-26CZDEKO.js.map → chunk-BIDU2JUB.js.map} +0 -0
  278. /package/dist/chunks/{chunk-6BRAEYBL.js.map → chunk-C2PBNQYT.js.map} +0 -0
  279. /package/dist/chunks/{chunk-54NEBNV3.js.map → chunk-CFCULKSN.js.map} +0 -0
  280. /package/dist/chunks/{chunk-SVRLQQMB.js.map → chunk-CPWGSBBN.js.map} +0 -0
  281. /package/dist/chunks/{chunk-TGUXLYS2.js.map → chunk-CR23VYUE.js.map} +0 -0
  282. /package/dist/chunks/{chunk-2JZ6O4JX.js.map → chunk-D7W5LUXV.js.map} +0 -0
  283. /package/dist/chunks/{chunk-MJOO5EA4.js.map → chunk-E6BNHEYX.js.map} +0 -0
  284. /package/dist/chunks/{chunk-XWMIL5WP.js.map → chunk-EPDDCCV5.js.map} +0 -0
  285. /package/dist/chunks/{chunk-WEQDKDC3.js.map → chunk-FGEJOOL4.js.map} +0 -0
  286. /package/dist/chunks/{chunk-EPMW4N5H.js.map → chunk-FIIZZRMV.js.map} +0 -0
  287. /package/dist/chunks/{chunk-QZAYT5UR.js.map → chunk-FM2QPMPK.js.map} +0 -0
  288. /package/dist/chunks/{chunk-NPRTOWXF.js.map → chunk-FXAHVRUE.js.map} +0 -0
  289. /package/dist/chunks/{chunk-5PAU4A3K.js.map → chunk-GKPO6EGA.js.map} +0 -0
  290. /package/dist/chunks/{chunk-JCP7GH4E.js.map → chunk-GL6KSVMS.js.map} +0 -0
  291. /package/dist/chunks/{chunk-WH6LELNJ.js.map → chunk-GN424XZ3.js.map} +0 -0
  292. /package/dist/chunks/{chunk-UNYSNMAQ.js.map → chunk-GWXAAFPJ.js.map} +0 -0
  293. /package/dist/chunks/{chunk-DZBKO5XZ.js.map → chunk-HNVUVSOI.js.map} +0 -0
  294. /package/dist/chunks/{chunk-GO3IILJG.js.map → chunk-HUKEVKWH.js.map} +0 -0
  295. /package/dist/chunks/{chunk-2RWJX3XO.js.map → chunk-HYUVSO4X.js.map} +0 -0
  296. /package/dist/chunks/{chunk-OS4QHE3D.js.map → chunk-HYWVPQQD.js.map} +0 -0
  297. /package/dist/chunks/{chunk-XCGIZUMG.js.map → chunk-IQPD7KYD.js.map} +0 -0
  298. /package/dist/chunks/{chunk-CCYLACZC.js.map → chunk-ITNMS75R.js.map} +0 -0
  299. /package/dist/chunks/{chunk-3KLNVOTV.js.map → chunk-IXDECEIX.js.map} +0 -0
  300. /package/dist/chunks/{chunk-Q6JWNB54.js.map → chunk-IXNUPR24.js.map} +0 -0
  301. /package/dist/chunks/{chunk-2SBMVMTO.js.map → chunk-IZHREIZK.js.map} +0 -0
  302. /package/dist/chunks/{chunk-R4SQ7YG2.js.map → chunk-JGYCZO6C.js.map} +0 -0
  303. /package/dist/chunks/{chunk-LID7O2YP.js.map → chunk-JQUAYX3B.js.map} +0 -0
  304. /package/dist/chunks/{chunk-BIV4ZVMQ.js.map → chunk-K4PPNYXR.js.map} +0 -0
  305. /package/dist/chunks/{chunk-NIBYXC3H.js.map → chunk-KKEWKJVL.js.map} +0 -0
  306. /package/dist/chunks/{chunk-B73OIFL6.js.map → chunk-KTPFUCRU.js.map} +0 -0
  307. /package/dist/chunks/{chunk-JW67WBS2.js.map → chunk-MAMV7MUG.js.map} +0 -0
  308. /package/dist/chunks/{chunk-BBESTSGG.js.map → chunk-MIJGXF3Z.js.map} +0 -0
  309. /package/dist/chunks/{chunk-TUHTURON.js.map → chunk-NXRUXNJ5.js.map} +0 -0
  310. /package/dist/chunks/{chunk-FAL6MHR7.js.map → chunk-P2E6HFIP.js.map} +0 -0
  311. /package/dist/chunks/{chunk-5EOQWRBM.js.map → chunk-P7NXR4OV.js.map} +0 -0
  312. /package/dist/chunks/{chunk-4DMJITJF.js.map → chunk-PCW42R33.js.map} +0 -0
  313. /package/dist/chunks/{chunk-YZFC3GTH.js.map → chunk-QNIHTTLG.js.map} +0 -0
  314. /package/dist/chunks/{chunk-PBGIIPSL.js.map → chunk-QPREGR6U.js.map} +0 -0
  315. /package/dist/chunks/{chunk-QDWRNNKU.js.map → chunk-RGUF5E22.js.map} +0 -0
  316. /package/dist/chunks/{chunk-6JGKF5CJ.js.map → chunk-RSAB3MPL.js.map} +0 -0
  317. /package/dist/chunks/{chunk-JEIT4APA.js.map → chunk-RZ6PDAMQ.js.map} +0 -0
  318. /package/dist/chunks/{chunk-2BSKESPI.js.map → chunk-SAJGEVVD.js.map} +0 -0
  319. /package/dist/chunks/{chunk-HVNC42NZ.js.map → chunk-SB3GBZ65.js.map} +0 -0
  320. /package/dist/chunks/{chunk-Z2PZBUDP.js.map → chunk-SECKALTU.js.map} +0 -0
  321. /package/dist/chunks/{chunk-IOCOFAL2.js.map → chunk-SFGTJCGU.js.map} +0 -0
  322. /package/dist/chunks/{chunk-B47YGS45.js.map → chunk-SSPDO3JT.js.map} +0 -0
  323. /package/dist/chunks/{chunk-6GOXVYVF.js.map → chunk-SVB7IHBE.js.map} +0 -0
  324. /package/dist/chunks/{chunk-JFAQGZU4.js.map → chunk-T2DRSTJV.js.map} +0 -0
  325. /package/dist/chunks/{chunk-NSPM2ALB.js.map → chunk-T4BQXXZS.js.map} +0 -0
  326. /package/dist/chunks/{chunk-BTTD4VKX.js.map → chunk-UARXWUZO.js.map} +0 -0
  327. /package/dist/chunks/{chunk-WG7E73KJ.js.map → chunk-UBB7EIHC.js.map} +0 -0
  328. /package/dist/chunks/{chunk-GJABD7QF.js.map → chunk-URBIMXZN.js.map} +0 -0
  329. /package/dist/chunks/{chunk-GVT765NL.js.map → chunk-VQ7FOO7M.js.map} +0 -0
  330. /package/dist/chunks/{chunk-UVGXDFY5.js.map → chunk-WKW65PAC.js.map} +0 -0
  331. /package/dist/chunks/{chunk-JPQSIROH.js.map → chunk-WTMP5H7T.js.map} +0 -0
  332. /package/dist/chunks/{chunk-PF32FZUI.js.map → chunk-XC6UYANY.js.map} +0 -0
  333. /package/dist/chunks/{cli-runtime-YAF6N4B4.js.map → cli-runtime-JXRGA4O7.js.map} +0 -0
  334. /package/dist/chunks/{commands-UJGFQSQ4.js.map → commands-3K6WWRUN.js.map} +0 -0
  335. /package/dist/chunks/{crash-report-YQOJKQCG.js.map → crash-report-NTEADY4P.js.map} +0 -0
  336. /package/dist/chunks/{dist-2L7NSJJE.js.map → dist-43NXQHZ2.js.map} +0 -0
  337. /package/dist/chunks/{dist-HYGOYQLL.js.map → dist-5ZAKSBZS.js.map} +0 -0
  338. /package/dist/chunks/{dist-MF62HCKV.js.map → dist-CRT6EQAR.js.map} +0 -0
  339. /package/dist/chunks/{dist-GETHBP7P.js.map → dist-G2QITXMW.js.map} +0 -0
  340. /package/dist/chunks/{dist-B445LLNF.js.map → dist-VEUKVTZP.js.map} +0 -0
  341. /package/dist/chunks/{dist-H6SCKMJX.js.map → dist-WDRMCFAU.js.map} +0 -0
  342. /package/dist/chunks/{dist-AFI563E4.js.map → dist-Z2QVC4OK.js.map} +0 -0
  343. /package/dist/chunks/{doctor-H27EQ5RE.js.map → doctor-UVX6YR2I.js.map} +0 -0
  344. /package/dist/chunks/{drain-WO6UFXH4.js.map → drain-URR6CUUH.js.map} +0 -0
  345. /package/dist/chunks/{entry-QFLKR4O3.js.map → entry-WCWSORA2.js.map} +0 -0
  346. /package/dist/chunks/{eval-SKVWJKSU.js.map → eval-Y6FUUDCX.js.map} +0 -0
  347. /package/dist/chunks/{home-5EUINGKN.js.map → home-HDE3CFLB.js.map} +0 -0
  348. /package/dist/chunks/{host-5EP6E23T.js.map → host-TZ6GSDWP.js.map} +0 -0
  349. /package/dist/chunks/{host-queries-6NEPSEAS.js.map → host-queries-Y7A4XJ64.js.map} +0 -0
  350. /package/dist/chunks/{learn-HJMN624W.js.map → learn-GYBZNIT3.js.map} +0 -0
  351. /package/dist/chunks/{learn-builtin-VRTLHEQW.js.map → learn-builtin-EJXTHMX6.js.map} +0 -0
  352. /package/dist/chunks/{lifecycle-MJTRWTCM.js.map → lifecycle-5EM2QRFV.js.map} +0 -0
  353. /package/dist/chunks/{list-LFBLFIKV.js.map → list-M34JU5AG.js.map} +0 -0
  354. /package/dist/chunks/{live-MOEHIAAF.js.map → live-XMBIOII4.js.map} +0 -0
  355. /package/dist/chunks/{login-4NTLCW7N.js.map → login-NI3DFWOW.js.map} +0 -0
  356. /package/dist/chunks/{logs-EUKQL5B7.js.map → logs-OI6GZRRC.js.map} +0 -0
  357. /package/dist/chunks/{message-command-WCIE3455.js.map → message-command-CIYB47HZ.js.map} +0 -0
  358. /package/dist/chunks/{open-ZY2THIE3.js.map → open-XYGGZHXM.js.map} +0 -0
  359. /package/dist/chunks/{operator-tools-D6L7ASDD.js.map → operator-tools-QSZS57PI.js.map} +0 -0
  360. /package/dist/chunks/{output-schema-GR4GYBPU.js.map → output-schema-BTNJ6DL5.js.map} +0 -0
  361. /package/dist/chunks/{pal-O2V75KQK.js.map → pal-EQAAJBWP.js.map} +0 -0
  362. /package/dist/chunks/{peers-TNGB6WQH.js.map → peers-35H6CZOZ.js.map} +0 -0
  363. /package/dist/chunks/{peers-QB4HQ5PZ.js.map → peers-KN4BGJHU.js.map} +0 -0
  364. /package/dist/chunks/{providers-5VUFH7IJ.js.map → providers-I2GONE3C.js.map} +0 -0
  365. /package/dist/chunks/{pty-ORVEC6FI.js.map → pty-GZ4R2DCS.js.map} +0 -0
  366. /package/dist/chunks/{resume-YK5YX2GP.js.map → resume-4KW4GUYR.js.map} +0 -0
  367. /package/dist/chunks/{resume-command-26JB6FZZ.js.map → resume-command-TOAGIGZO.js.map} +0 -0
  368. /package/dist/chunks/{schedule-LSM2OF24.js.map → schedule-FU5WY3WV.js.map} +0 -0
  369. /package/dist/chunks/{service-V2BNTEB4.js.map → service-3UYEV4JX.js.map} +0 -0
  370. /package/dist/chunks/{skills-T2ZYRYZF.js.map → skills-4V2SBEY3.js.map} +0 -0
  371. /package/dist/chunks/{start-check-A4B3AXO2.js.map → start-check-RBYWVZT4.js.map} +0 -0
  372. /package/dist/chunks/{startup-failure-YHDJI7YI.js.map → startup-failure-SST73T7Q.js.map} +0 -0
  373. /package/dist/chunks/{state-OY6VG73L.js.map → state-N46ZI3LZ.js.map} +0 -0
  374. /package/dist/chunks/{store-DBWWXNYV.js.map → store-KA6NETSP.js.map} +0 -0
  375. /package/dist/chunks/{store-IVQVINSF.js.map → store-M56FSIZT.js.map} +0 -0
  376. /package/dist/chunks/{store-LEOLKXRN.js.map → store-R662Y2YQ.js.map} +0 -0
  377. /package/dist/chunks/{store-QPO2TZ42.js.map → store-RHAHG45U.js.map} +0 -0
  378. /package/dist/chunks/{upgrade-QQ665A7W.js.map → upgrade-YNYPRYFI.js.map} +0 -0
  379. /package/dist/chunks/{workspaces-5JL7LPKW.js.map → workspaces-OITS2AZJ.js.map} +0 -0
  380. /package/dist/chunks/{worktree-U2RO5D47.js.map → worktree-DJW4XCBG.js.map} +0 -0
@@ -2,30 +2,35 @@ import { createRequire as __namzuCreateRequire } from 'node:module';
2
2
  const require = __namzuCreateRequire(import.meta.url);
3
3
  import {
4
4
  dispatchCliPalMessages
5
- } from "./chunk-B47YGS45.js";
5
+ } from "./chunk-SSPDO3JT.js";
6
+ import {
7
+ readUserMcpServers,
8
+ summarizeUserMcpServer
9
+ } from "./chunk-NVZRRJJS.js";
6
10
  import {
7
11
  decideHeadlessTrust
8
- } from "./chunk-GVT765NL.js";
12
+ } from "./chunk-VQ7FOO7M.js";
9
13
  import {
10
14
  conversationMarkdown,
11
15
  lookupPr,
16
+ outcomeLine,
12
17
  runCommand,
13
18
  withKeyNote
14
- } from "./chunk-QHGD7RLH.js";
15
- import "./chunk-NSPM2ALB.js";
19
+ } from "./chunk-S4Q4PC2L.js";
20
+ import "./chunk-T4BQXXZS.js";
16
21
  import "./chunk-JETLWXUE.js";
17
22
  import {
18
23
  deleteUserConfigValue,
19
24
  setUserConfigValue,
20
25
  userConfigPath
21
- } from "./chunk-NIBYXC3H.js";
26
+ } from "./chunk-KKEWKJVL.js";
22
27
  import {
23
28
  HeadlessScreen
24
29
  } from "./chunk-GWGIAZLZ.js";
25
30
  import "./chunk-6HTC5TQ3.js";
26
31
  import {
27
32
  launchRefusal
28
- } from "./chunk-JEIT4APA.js";
33
+ } from "./chunk-RZ6PDAMQ.js";
29
34
  import {
30
35
  cliPalComputerStatus,
31
36
  cliPalScreen,
@@ -38,21 +43,21 @@ import {
38
43
  startCliPalComputer,
39
44
  stopCliPalComputer,
40
45
  takeOverCliPalComputer
41
- } from "./chunk-WEQDKDC3.js";
46
+ } from "./chunk-FGEJOOL4.js";
42
47
  import {
43
48
  palSessionEnvironment
44
- } from "./chunk-6BRAEYBL.js";
49
+ } from "./chunk-C2PBNQYT.js";
45
50
  import {
46
51
  cliPalActivitySubscriptionPolicy,
47
52
  cliPalActivitySubscriptionStore,
48
53
  cliPalCommunicationPolicy,
49
54
  cliPalCommunicationStore
50
- } from "./chunk-GJABD7QF.js";
55
+ } from "./chunk-URBIMXZN.js";
51
56
  import {
52
57
  claimPalConversation,
53
58
  listPalConversations,
54
59
  palConversationBinding
55
- } from "./chunk-2RWJX3XO.js";
60
+ } from "./chunk-HYUVSO4X.js";
56
61
  import {
57
62
  FileCheckpointStore,
58
63
  PluginSettingsStore,
@@ -64,34 +69,34 @@ import {
64
69
  sessionLogCheckpointView,
65
70
  validateComposerSendSettings,
66
71
  verifyCredential
67
- } from "./chunk-76DVKFKX.js";
68
- import "./chunk-5EOQWRBM.js";
69
- import "./chunk-YZFC3GTH.js";
70
- import "./chunk-XKRGL5Z5.js";
71
- import "./chunk-6GOXVYVF.js";
72
- import "./chunk-BTTD4VKX.js";
73
- import "./chunk-QCL4LFUZ.js";
74
- import "./chunk-R4SQ7YG2.js";
75
- import "./chunk-24VVQCMV.js";
76
- import "./chunk-MVMP5SIL.js";
72
+ } from "./chunk-Z3DTGVZS.js";
73
+ import "./chunk-P7NXR4OV.js";
74
+ import "./chunk-QNIHTTLG.js";
75
+ import "./chunk-HDOYZYBW.js";
76
+ import "./chunk-SVB7IHBE.js";
77
+ import "./chunk-UARXWUZO.js";
78
+ import "./chunk-6X3NKVRL.js";
79
+ import "./chunk-JGYCZO6C.js";
80
+ import "./chunk-45PI33XV.js";
81
+ import "./chunk-5WSDPQ3D.js";
77
82
  import "./chunk-WHODOMXA.js";
78
- import "./chunk-MJOO5EA4.js";
83
+ import "./chunk-E6BNHEYX.js";
79
84
  import "./chunk-YOWYTBJS.js";
80
85
  import "./chunk-2IPDTDB3.js";
81
- import "./chunk-EQTOFC36.js";
86
+ import "./chunk-424T6RL4.js";
82
87
  import "./chunk-IYUW2RAA.js";
83
- import "./chunk-FDV7XIWK.js";
88
+ import "./chunk-57EJUGDT.js";
84
89
  import "./chunk-ZWA2JRJV.js";
85
90
  import "./chunk-NUGPLXVK.js";
86
- import "./chunk-LID7O2YP.js";
91
+ import "./chunk-JQUAYX3B.js";
87
92
  import {
88
93
  listProviderConnections,
89
94
  removeProviderKey,
90
95
  saveProviderKey,
91
96
  typedKeyProvider
92
- } from "./chunk-2JZ6O4JX.js";
93
- import "./chunk-4DMJITJF.js";
94
- import "./chunk-PBGIIPSL.js";
97
+ } from "./chunk-D7W5LUXV.js";
98
+ import "./chunk-PCW42R33.js";
99
+ import "./chunk-QPREGR6U.js";
95
100
  import {
96
101
  archiveConversation,
97
102
  closeSessions,
@@ -109,8 +114,8 @@ import {
109
114
  refreshIndex,
110
115
  setTitle,
111
116
  unarchiveConversation
112
- } from "./chunk-2SBMVMTO.js";
113
- import "./chunk-EPMW4N5H.js";
117
+ } from "./chunk-IZHREIZK.js";
118
+ import "./chunk-FIIZZRMV.js";
114
119
  import {
115
120
  cliProjectRoot
116
121
  } from "./chunk-JQIBPPOL.js";
@@ -123,14 +128,17 @@ import {
123
128
  listPals,
124
129
  palAtWorkspace,
125
130
  updatePal
126
- } from "./chunk-3KLNVOTV.js";
131
+ } from "./chunk-IXDECEIX.js";
127
132
  import {
128
133
  isTrusted,
129
134
  isTrustedAtStateRoot,
130
135
  trustDir,
131
136
  untrustDir
132
- } from "./chunk-CCYLACZC.js";
133
- import "./chunk-BBESTSGG.js";
137
+ } from "./chunk-ITNMS75R.js";
138
+ import "./chunk-MIJGXF3Z.js";
139
+ import {
140
+ flushCompileCacheWhenIdle
141
+ } from "./chunk-SOIP273Z.js";
134
142
  import {
135
143
  resolveTrustedProjectContext
136
144
  } from "./chunk-CHIEVVQ2.js";
@@ -138,12 +146,16 @@ import {
138
146
  CLI_VERSION
139
147
  } from "./chunk-HE7WUOX2.js";
140
148
  import "./chunk-GNBMKISG.js";
141
- import "./chunk-GO3IILJG.js";
149
+ import "./chunk-HUKEVKWH.js";
142
150
  import "./chunk-OH6TB27S.js";
143
151
  import {
144
152
  ConfigValueError,
153
+ approveShownMcpServers,
154
+ fingerprintMcpServer,
155
+ loadConfig,
156
+ pendingProjectMcpServers,
145
157
  readConfigKey
146
- } from "./chunk-MUT6I5NR.js";
158
+ } from "./chunk-ZJKISI2K.js";
147
159
  import {
148
160
  require_dist
149
161
  } from "./chunk-KONYGNG6.js";
@@ -152,10 +164,10 @@ import {
152
164
  compilePermissionLayers,
153
165
  permissionLayersOf,
154
166
  warnLegacyMcpPermissionNames
155
- } from "./chunk-2HNRN4BZ.js";
167
+ } from "./chunk-UXXV6VCO.js";
156
168
  import {
157
169
  cliLogger
158
- } from "./chunk-XWMIL5WP.js";
170
+ } from "./chunk-EPDDCCV5.js";
159
171
  import "./chunk-SIG7WHBU.js";
160
172
  import "./chunk-LVVD32KJ.js";
161
173
  import "./chunk-6PWRKA5T.js";
@@ -172,28 +184,28 @@ import {
172
184
  loadHostPty,
173
185
  processesCarrying,
174
186
  quietConptyHelper
175
- } from "./chunk-TUHTURON.js";
176
- import "./chunk-KL3CLIA2.js";
187
+ } from "./chunk-NXRUXNJ5.js";
188
+ import "./chunk-2FQ6QJIZ.js";
177
189
  import {
178
190
  automaticKind,
179
191
  canSelectModel,
180
192
  discoverProviders,
181
193
  isAnonymousZen
182
- } from "./chunk-KOTJVZ33.js";
194
+ } from "./chunk-Y22AUU3X.js";
183
195
  import {
184
196
  isOfferableModel
185
- } from "./chunk-XCECERRM.js";
197
+ } from "./chunk-4QIWRKJO.js";
186
198
  import "./chunk-G6YSAHKC.js";
187
- import "./chunk-B73OIFL6.js";
199
+ import "./chunk-KTPFUCRU.js";
188
200
  import "./chunk-RI2KAZJO.js";
189
- import "./chunk-EWMX4NYZ.js";
190
- import "./chunk-37JCXHFG.js";
191
- import "./chunk-UNYSNMAQ.js";
201
+ import "./chunk-XXHZE4KV.js";
202
+ import "./chunk-G5OCRPZF.js";
203
+ import "./chunk-GWXAAFPJ.js";
192
204
  import {
193
205
  canonicalProjectPath
194
206
  } from "./chunk-JORONMD3.js";
195
- import "./chunk-DZBKO5XZ.js";
196
- import "./chunk-UVGXDFY5.js";
207
+ import "./chunk-HNVUVSOI.js";
208
+ import "./chunk-WKW65PAC.js";
197
209
  import {
198
210
  ACPServer,
199
211
  DiskLogMedium,
@@ -223,11 +235,12 @@ import {
223
235
  loadPluginManifest,
224
236
  mustAskPerson,
225
237
  openSessionIndex,
238
+ parseTurnOutcome,
226
239
  resolveNamzuHome,
227
240
  resolveWithinAnyReal,
228
241
  resolveWithinReal,
229
242
  selectAssistantText
230
- } from "./chunk-U73P6IJU.js";
243
+ } from "./chunk-ZE6HLPD4.js";
231
244
  import {
232
245
  __name,
233
246
  __toESM
@@ -4445,6 +4458,19 @@ var SETTING_DESCRIPTORS = [
4445
4458
  confirmWhen: "off"
4446
4459
  }
4447
4460
  ),
4461
+ d(
4462
+ "permissions.outsideRoot",
4463
+ "projects",
4464
+ "Paths outside the working folder",
4465
+ "Ask before reading or changing a file outside the working folder and the extra folders, or refuse without asking.",
4466
+ pick("ask", "refuse"),
4467
+ {
4468
+ defaultText: "ask",
4469
+ confirm: "Namzu will be able to ask about files outside the working folder again.",
4470
+ confirmValue: "ask",
4471
+ keywords: ["outside", "folder", "directory", "boundary", "refuse"]
4472
+ }
4473
+ ),
4448
4474
  d(
4449
4475
  "permissions",
4450
4476
  "projects",
@@ -4589,6 +4615,14 @@ var SETTING_DESCRIPTORS = [
4589
4615
  confirmWhen: "off"
4590
4616
  }
4591
4617
  ),
4618
+ d(
4619
+ "limits.maxHookRefusals",
4620
+ "agent",
4621
+ "Hook refusals before a turn ends",
4622
+ "How many times in a row a hook may refuse to let a turn end before Namzu ends it anyway. 0 means no limit.",
4623
+ num(0),
4624
+ { defaultText: "8 (0 for no limit)" }
4625
+ ),
4592
4626
  d("limits.maxIterations", "agent", "Most steps per task", "0 means no limit.", num(0), {
4593
4627
  defaultText: "no limit",
4594
4628
  confirm: "With no limit, a task can keep taking steps until it ends on its own.",
@@ -4745,6 +4779,14 @@ var SETTING_DESCRIPTORS = [
4745
4779
  on,
4746
4780
  { defaultText: "off" }
4747
4781
  ),
4782
+ d(
4783
+ "compaction.clearStaleResultsAfterIdle",
4784
+ "agent",
4785
+ "Shed old results after a long break",
4786
+ "When you return after the provider cache has expired, replace old, large tool results with a short note before the first request. They stay readable through the note.",
4787
+ on,
4788
+ { defaultText: "on" }
4789
+ ),
4748
4790
  d(
4749
4791
  "compaction.idleCompactionMinTokens",
4750
4792
  "agent",
@@ -5288,6 +5330,72 @@ function writeSetting(change, opts = {}) {
5288
5330
  }
5289
5331
  __name(writeSetting, "writeSetting");
5290
5332
 
5333
+ // src/integrations/mcp/server-listing.ts
5334
+ var ONE_LINE = /[\r\n\t]+/g;
5335
+ var clip = /* @__PURE__ */ __name((value, max) => value.replace(ONE_LINE, " ").trim().slice(0, max), "clip");
5336
+ function detailOf(name, spec) {
5337
+ const summary = summarizeUserMcpServer({ name, spec });
5338
+ const text4 = summary.transport === "http" ? summary.endpoint : summary.command;
5339
+ return text4 ? clip(text4, 200) : void 0;
5340
+ }
5341
+ __name(detailOf, "detailOf");
5342
+ function listMcpServers(options) {
5343
+ const { cwd, live } = options;
5344
+ let effective;
5345
+ let declared;
5346
+ let pending;
5347
+ let userNames;
5348
+ try {
5349
+ effective = loadConfig({ cwd }).mcpServers ?? {};
5350
+ const split = pendingProjectMcpServers({ cwd });
5351
+ declared = split.declared;
5352
+ pending = split.pending;
5353
+ userNames = new Set(readUserMcpServers().map((entry) => entry.name));
5354
+ } catch (error) {
5355
+ return {
5356
+ servers: [],
5357
+ error: clip(error instanceof Error ? error.message : "The settings could not be read.", 300)
5358
+ };
5359
+ }
5360
+ const failures = /* @__PURE__ */ new Map();
5361
+ for (const item of live.failed) {
5362
+ const now = effective[item.name];
5363
+ if (item.config !== void 0 && item.config !== JSON.stringify(now ?? null)) continue;
5364
+ failures.set(item.name, item.reason);
5365
+ }
5366
+ const connected = new Set(live.connected);
5367
+ const rows = [];
5368
+ const origin = /* @__PURE__ */ __name((name) => Object.hasOwn(declared, name) && !userNames.has(name) ? "project-file" : userNames.has(name) ? "your-config" : "this-project", "origin");
5369
+ for (const [name, spec] of Object.entries(effective)) {
5370
+ const detail = detailOf(name, spec);
5371
+ const failure = failures.get(name);
5372
+ rows.push({
5373
+ name,
5374
+ origin: origin(name),
5375
+ state: failure !== void 0 ? "failed" : connected.has(name) ? "connected" : "idle",
5376
+ ...failure !== void 0 ? { reason: clip(failure, 300) } : {},
5377
+ ...detail ? { detail } : {}
5378
+ });
5379
+ }
5380
+ for (const name of pending) {
5381
+ if (rows.some((row2) => row2.name === name)) continue;
5382
+ const detail = detailOf(name, declared[name]);
5383
+ rows.push({
5384
+ name,
5385
+ origin: "project-file",
5386
+ state: "waiting",
5387
+ fingerprint: fingerprintMcpServer(declared[name]),
5388
+ ...detail ? { detail } : {}
5389
+ });
5390
+ }
5391
+ return { servers: rows };
5392
+ }
5393
+ __name(listMcpServers, "listMcpServers");
5394
+ function approveListedMcpServers(cwd, shown) {
5395
+ return approveShownMcpServers(resolveNamzuHome(), cwd, shown);
5396
+ }
5397
+ __name(approveListedMcpServers, "approveListedMcpServers");
5398
+
5291
5399
  // src/pals/desktop-communication.ts
5292
5400
  import { randomUUID as randomUUID5 } from "node:crypto";
5293
5401
  import { lstatSync, realpathSync as realpathSync2 } from "node:fs";
@@ -6064,7 +6172,67 @@ async function projectPr(cwd, run = runCommand) {
6064
6172
  }
6065
6173
  __name(projectPr, "projectPr");
6066
6174
 
6175
+ // src/commands/desktop-outcome-feed.ts
6176
+ var OUTCOME_NOTIFICATION = "namzu/session/outcome";
6177
+ function outcomeNotification(sessionId, event) {
6178
+ if (event.type !== "turn_completed" && event.type !== "turn_failed") return void 0;
6179
+ const outcome = event.settlement.outcome;
6180
+ if (!outcome) return void 0;
6181
+ const line = outcomeLine(outcome);
6182
+ return {
6183
+ sessionId,
6184
+ turnId: event.turnId,
6185
+ verdict: outcome.verdict,
6186
+ ...line ? { line } : {},
6187
+ changed: outcome.changes.total,
6188
+ outcome
6189
+ };
6190
+ }
6191
+ __name(outcomeNotification, "outcomeNotification");
6192
+ function announceOutcome(sessionId, event, notify) {
6193
+ const body = outcomeNotification(sessionId, event);
6194
+ if (!body) return;
6195
+ try {
6196
+ notify(OUTCOME_NOTIFICATION, { ...body });
6197
+ } catch {
6198
+ }
6199
+ }
6200
+ __name(announceOutcome, "announceOutcome");
6201
+ function savedTurnOutcome(body) {
6202
+ const outcome = parseTurnOutcome(body);
6203
+ if (!outcome) return void 0;
6204
+ const line = outcomeLine(outcome);
6205
+ return {
6206
+ verdict: outcome.verdict,
6207
+ ...line ? { line } : {},
6208
+ changed: outcome.changes.total
6209
+ };
6210
+ }
6211
+ __name(savedTurnOutcome, "savedTurnOutcome");
6212
+
6067
6213
  // src/commands/desktop-host.ts
6214
+ var SEARCH_QUERY_MIN = 2;
6215
+ var SEARCH_QUERY_MAX = 200;
6216
+ var SEARCH_EVIDENCE_LIMIT = 300;
6217
+ function searchExcerpt(excerpt, query) {
6218
+ const flat = excerpt.replace(/\s+/g, " ").trim();
6219
+ const at = flat.toLowerCase().indexOf(query.toLowerCase());
6220
+ if (at < 0) return flat.length > 140 ? `${flat.slice(0, 139)}\u2026` : flat;
6221
+ let start = Math.max(0, at - 40);
6222
+ if (start > 0) {
6223
+ const space = flat.indexOf(" ", start);
6224
+ if (space !== -1 && space < at) start = space + 1;
6225
+ }
6226
+ const end = Math.min(flat.length, at + query.length + 80);
6227
+ return `${start > 0 ? "\u2026" : ""}${flat.slice(start, end)}${end < flat.length ? "\u2026" : ""}`;
6228
+ }
6229
+ __name(searchExcerpt, "searchExcerpt");
6230
+ function searchHitExcerpt(hit, query) {
6231
+ if (hit.source === "tool_completed" || hit.source.endsWith(":tool"))
6232
+ return hit.toolName ? `Found in what \u201C${hit.toolName}\u201D returned` : "Found in what a tool returned";
6233
+ return searchExcerpt(hit.excerpt, query);
6234
+ }
6235
+ __name(searchHitExcerpt, "searchHitExcerpt");
6068
6236
  function text3(params, key, max = 400) {
6069
6237
  const value = params[key];
6070
6238
  if (typeof value !== "string" || !value.trim() || value.length > max)
@@ -6398,7 +6566,9 @@ function historyWork(records, rows) {
6398
6566
  } else if ("turnId" in record2 && typeof record2.turnId === "string") {
6399
6567
  const turn = turns.get(record2.turnId);
6400
6568
  if (!turn) continue;
6401
- if (record2.type === "turn_paused") {
6569
+ if (record2.type === "turn_outcome_recorded") {
6570
+ turn.outcome = savedTurnOutcome(record2.outcome);
6571
+ } else if (record2.type === "turn_paused") {
6402
6572
  turn.status = "paused";
6403
6573
  turn.reason = "paused";
6404
6574
  } else if (record2.type === "turn_resuming") {
@@ -6897,6 +7067,39 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
6897
7067
  if (currentPal) return listPalConversations(cwd, currentPal.id);
6898
7068
  return conversationRows(state, await listRecent(state, 100));
6899
7069
  }), "namzu/conversations/list"),
7070
+ /**
7071
+ * Full-text search over what a conversation said and did (replies and tool output), through
7072
+ * the session index. One hit per conversation, newest index order, a short excerpt each.
7073
+ * Nothing here is logged: the query and the excerpts are conversation text.
7074
+ */
7075
+ "namzu/conversations/search": /* @__PURE__ */ __name(async (params = {}) => {
7076
+ if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).some((key) => key !== "query" && key !== "limit"))
7077
+ throw new Error("Invalid conversation search request.");
7078
+ const query = text3(params, "query", SEARCH_QUERY_MAX).trim();
7079
+ const limit = params.limit === void 0 ? 20 : params.limit;
7080
+ if (typeof limit !== "number" || !Number.isInteger(limit) || limit < 1 || limit > 50)
7081
+ throw new Error("A search returns between 1 and 50 conversations.");
7082
+ if (query.length < SEARCH_QUERY_MIN) return { hits: [] };
7083
+ return withState(async (state) => {
7084
+ if (pal()) return { hits: [] };
7085
+ const known = new Set((await listRecent(state, 100)).map((row2) => String(row2.id)));
7086
+ const found = await state.index.searchEvidence({
7087
+ query,
7088
+ caseSensitive: false,
7089
+ limit: SEARCH_EVIDENCE_LIMIT
7090
+ });
7091
+ const hits = [];
7092
+ const seen = /* @__PURE__ */ new Set();
7093
+ for (const hit of found) {
7094
+ const id2 = String(hit.sessionId);
7095
+ if (seen.has(id2) || !known.has(id2)) continue;
7096
+ seen.add(id2);
7097
+ hits.push({ sessionId: id2, excerpt: searchHitExcerpt(hit, query) });
7098
+ if (hits.length >= limit) break;
7099
+ }
7100
+ return { hits };
7101
+ });
7102
+ }, "namzu/conversations/search"),
6900
7103
  "namzu/conversations/archived": /* @__PURE__ */ __name(async (params = {}) => {
6901
7104
  if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).length > 0)
6902
7105
  throw new Error("Invalid archived conversations request.");
@@ -7128,6 +7331,30 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7128
7331
  if (!isTrusted(cwd)) return null;
7129
7332
  return projectGit(cwd);
7130
7333
  }, "namzu/project/git"),
7334
+ /** The tool servers this project knows and where each stands; reads files, starts nothing. */
7335
+ "namzu/mcp/servers": /* @__PURE__ */ __name(async (params = {}) => {
7336
+ if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).length > 0)
7337
+ throw new Error("Invalid tool servers request.");
7338
+ if (!isTrusted(cwd) || pal()) return { servers: [] };
7339
+ return listMcpServers({
7340
+ cwd,
7341
+ live: runtime.mcpStatus?.(cwd) ?? { connected: [], failed: [] }
7342
+ });
7343
+ }, "namzu/mcp/servers"),
7344
+ /** Approves servers `.mcp.json` declared, as they were listed, the way `namzu mcp approve` does. */
7345
+ "namzu/mcp/approve": /* @__PURE__ */ __name(async (params) => {
7346
+ if (!params || typeof params !== "object" || Object.keys(params).some((key) => key !== "servers"))
7347
+ throw new Error("Approving tool servers names only the servers.");
7348
+ if (!isTrusted(cwd) || pal()) throw new Error("Trust this folder first.");
7349
+ const shown = params.servers;
7350
+ if (!Array.isArray(shown) || shown.length === 0 || shown.length > 64)
7351
+ throw new Error("Choose the tool servers to approve.");
7352
+ const checked = shown.map((item) => {
7353
+ const row2 = item && typeof item === "object" ? item : {};
7354
+ return { name: text3(row2, "name", 64), fingerprint: text3(row2, "fingerprint", 128) };
7355
+ });
7356
+ return { approved: approveListedMcpServers(cwd, checked) };
7357
+ }, "namzu/mcp/approve"),
7131
7358
  "namzu/project/pr": /* @__PURE__ */ __name(async (params = {}) => {
7132
7359
  if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).length > 0)
7133
7360
  throw new Error("Invalid project pull request request.");
@@ -7315,6 +7542,116 @@ function desktopModelCatalogue(listing, defaultModel, currentModel, allowModel,
7315
7542
  }
7316
7543
  __name(desktopModelCatalogue, "desktopModelCatalogue");
7317
7544
 
7545
+ // src/commands/desktop-usage-feed.ts
7546
+ var USAGE_NOTIFICATION = "namzu/session/usage";
7547
+ var USAGE_COALESCE_MS = 400;
7548
+ var finite = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "finite");
7549
+ var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, v]) => v !== void 0)), "defined");
7550
+ function createUsageFeed(options) {
7551
+ const interval = options.intervalMs ?? USAGE_COALESCE_MS;
7552
+ const sessions = /* @__PURE__ */ new Map();
7553
+ let closed = false;
7554
+ const entry = /* @__PURE__ */ __name((sessionId) => {
7555
+ let found = sessions.get(sessionId);
7556
+ if (!found) {
7557
+ found = {
7558
+ snapshot: {},
7559
+ lastSentAt: void 0,
7560
+ cancel: void 0,
7561
+ dirty: false,
7562
+ ended: false
7563
+ };
7564
+ sessions.set(sessionId, found);
7565
+ }
7566
+ return found;
7567
+ }, "entry");
7568
+ const send = /* @__PURE__ */ __name((sessionId, pending, extra = {}) => {
7569
+ pending.cancel?.();
7570
+ pending.cancel = void 0;
7571
+ pending.dirty = false;
7572
+ pending.lastSentAt = options.now();
7573
+ const body = {
7574
+ sessionId,
7575
+ ...defined(pending.snapshot),
7576
+ ...extra
7577
+ };
7578
+ try {
7579
+ options.notify(USAGE_NOTIFICATION, { ...body });
7580
+ } catch {
7581
+ }
7582
+ }, "send");
7583
+ const usage = /* @__PURE__ */ __name((sessionId, pending) => {
7584
+ pending.dirty = true;
7585
+ const since = pending.lastSentAt === void 0 ? Number.POSITIVE_INFINITY : options.now() - pending.lastSentAt;
7586
+ if (since >= interval) {
7587
+ send(sessionId, pending);
7588
+ return;
7589
+ }
7590
+ if (pending.cancel) return;
7591
+ pending.cancel = options.schedule(() => {
7592
+ pending.cancel = void 0;
7593
+ if (!closed && pending.dirty) send(sessionId, pending);
7594
+ if (pending.ended && !pending.cancel && !pending.dirty) sessions.delete(sessionId);
7595
+ }, interval - since);
7596
+ }, "usage");
7597
+ return {
7598
+ observe(sessionId, event) {
7599
+ if (closed) return;
7600
+ if (event.type === "turn_completed" || event.type === "turn_failed" || event.type === "turn_paused") {
7601
+ const pending = sessions.get(sessionId);
7602
+ if (pending) {
7603
+ pending.ended = true;
7604
+ if (!pending.cancel && !pending.dirty) sessions.delete(sessionId);
7605
+ }
7606
+ return;
7607
+ }
7608
+ if (event.type === "token_usage_updated") {
7609
+ const pending = entry(sessionId);
7610
+ pending.ended = false;
7611
+ const snapshot = { ...pending.snapshot };
7612
+ if (finite(event.contextTokens)) snapshot.contextTokens = event.contextTokens;
7613
+ if (finite(event.contextWindowTokens) && event.contextWindowTokens > 0)
7614
+ snapshot.contextWindowTokens = event.contextWindowTokens;
7615
+ if (event.contextMeasuredBy) snapshot.contextMeasuredBy = event.contextMeasuredBy;
7616
+ if (finite(event.cost?.totalCost) && event.cost.totalCost > 0 && (event.cost.unpricedTokens ?? 0) === 0)
7617
+ snapshot.cost = event.cost.totalCost;
7618
+ else snapshot.cost = void 0;
7619
+ pending.snapshot = snapshot;
7620
+ usage(sessionId, pending);
7621
+ } else if (event.type === "compaction_started") {
7622
+ const pending = entry(sessionId);
7623
+ send(sessionId, pending, {
7624
+ compaction: "started",
7625
+ tokensBefore: event.tokensBefore,
7626
+ ...finite(event.contextWindowTokens) && event.contextWindowTokens > 0 ? { contextWindowTokens: event.contextWindowTokens } : {}
7627
+ });
7628
+ } else if (event.type === "compaction_completed") {
7629
+ const pending = entry(sessionId);
7630
+ if (finite(event.tokensAfter))
7631
+ pending.snapshot = {
7632
+ ...pending.snapshot,
7633
+ contextTokens: event.tokensAfter
7634
+ };
7635
+ send(sessionId, pending, {
7636
+ compaction: "finished",
7637
+ tokensBefore: event.tokensBefore,
7638
+ tokensAfter: event.tokensAfter
7639
+ });
7640
+ } else if (event.type === "compaction_tool_results_cleared" && event.reliefWasEnough) {
7641
+ send(sessionId, entry(sessionId), { compaction: "finished" });
7642
+ } else if (event.type === "compaction_failed") {
7643
+ send(sessionId, entry(sessionId), { compaction: "failed" });
7644
+ }
7645
+ },
7646
+ close() {
7647
+ closed = true;
7648
+ for (const pending of sessions.values()) pending.cancel?.();
7649
+ sessions.clear();
7650
+ }
7651
+ };
7652
+ }
7653
+ __name(createUsageFeed, "createUsageFeed");
7654
+
7318
7655
  // src/commands/permission-preview.ts
7319
7656
  import { readFile as readFile2, stat as stat5 } from "node:fs/promises";
7320
7657
  var PREVIEW_MAX_BYTES = 1024 * 1024;
@@ -7577,6 +7914,14 @@ var DEFAULT_RUNTIME_DEPS = {
7577
7914
  };
7578
7915
  function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeOptions = {}) {
7579
7916
  const records = /* @__PURE__ */ new Map();
7917
+ const mcpFailures = /* @__PURE__ */ new Map();
7918
+ const mcpKey = /* @__PURE__ */ __name((dir) => {
7919
+ try {
7920
+ return canonicalProjectPath(dir);
7921
+ } catch {
7922
+ return dir;
7923
+ }
7924
+ }, "mcpKey");
7580
7925
  const liveInputs = /* @__PURE__ */ new Map();
7581
7926
  const constructing = /* @__PURE__ */ new Map();
7582
7927
  const selections = /* @__PURE__ */ new Map();
@@ -7781,10 +8126,19 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
7781
8126
  throw new Error(hint);
7782
8127
  }
7783
8128
  if (candidate.mcpFailed.length > 0) {
8129
+ mcpFailures.set(
8130
+ mcpKey(cwd),
8131
+ candidate.mcpFailed.map(({ name, reason }) => ({
8132
+ name,
8133
+ reason,
8134
+ config: JSON.stringify(projectCtx.config.mcpServers?.[name] ?? null)
8135
+ }))
8136
+ );
7784
8137
  const failure = candidate.mcpFailed.map((entry) => `tool server "${entry.name}" is not available: ${entry.reason}`).join("\n");
7785
8138
  await closeCandidate();
7786
8139
  throw new Error(failure);
7787
8140
  }
8141
+ mcpFailures.delete(mcpKey(cwd));
7788
8142
  for (const [name, enabled] of pluginOverrides.get(sessionId) ?? []) {
7789
8143
  if (!candidate.plugins?.list().some((plugin) => plugin.name === name)) {
7790
8144
  throw new Error(
@@ -7876,6 +8230,10 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
7876
8230
  } finally {
7877
8231
  activeRecord = outer;
7878
8232
  }
8233
+ try {
8234
+ runtimeOptions.observeEvent?.(sessionId, event);
8235
+ } catch {
8236
+ }
7879
8237
  }, "routedEvent");
7880
8238
  record2.route = routedEvent;
7881
8239
  try {
@@ -8391,6 +8749,16 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
8391
8749
  )
8392
8750
  });
8393
8751
  }, "plugins"),
8752
+ mcpStatus: /* @__PURE__ */ __name((requestedCwd) => {
8753
+ const connected = /* @__PURE__ */ new Set();
8754
+ const key = mcpKey(requestedCwd);
8755
+ for (const record2 of records.values()) {
8756
+ if (mcpKey(record2.cwd) !== key) continue;
8757
+ for (const server of record2.session.mcpStatus?.().connected ?? [])
8758
+ connected.add(server.name);
8759
+ }
8760
+ return { connected: [...connected], failed: mcpFailures.get(key) ?? [] };
8761
+ }, "mcpStatus"),
8394
8762
  setPluginEnabled: /* @__PURE__ */ __name(async (sessionId, name, enabled, cwd) => {
8395
8763
  if (!isEntityId(sessionId, "session") || typeof name !== "string" || !name.trim() || name.length > 400 || typeof enabled !== "boolean")
8396
8764
  throw new Error("Invalid plugin choice.");
@@ -8645,11 +9013,32 @@ async function closeAcpResources(runtime, closePals = closeCliPalRuntime) {
8645
9013
  }
8646
9014
  __name(closeAcpResources, "closeAcpResources");
8647
9015
  async function runAcpCommand(ctx, desktop = false) {
9016
+ const transport = new ServerStdioTransport();
9017
+ let announcingUsage = true;
9018
+ const announce = /* @__PURE__ */ __name((method, params) => {
9019
+ if (announcingUsage) void transport.send({ jsonrpc: "2.0", method, params });
9020
+ }, "announce");
9021
+ const usageFeed = desktop ? createUsageFeed({
9022
+ notify: announce,
9023
+ now: /* @__PURE__ */ __name(() => Date.now(), "now"),
9024
+ schedule: /* @__PURE__ */ __name((run, ms) => {
9025
+ const timer = setTimeout(run, ms);
9026
+ timer.unref?.();
9027
+ return () => clearTimeout(timer);
9028
+ }, "schedule")
9029
+ }) : void 0;
8648
9030
  const runtime = withCliHarnesses(
8649
- createCliAcpRuntime(ctx, DEFAULT_RUNTIME_DEPS, { computerUse: desktop }),
9031
+ createCliAcpRuntime(ctx, DEFAULT_RUNTIME_DEPS, {
9032
+ computerUse: desktop,
9033
+ ...usageFeed ? {
9034
+ observeEvent: /* @__PURE__ */ __name((id2, event) => {
9035
+ usageFeed.observe(id2, event);
9036
+ announceOutcome(id2, event, announce);
9037
+ }, "observeEvent")
9038
+ } : {}
9039
+ }),
8650
9040
  process.cwd()
8651
9041
  );
8652
- const transport = new ServerStdioTransport();
8653
9042
  let announcing = true;
8654
9043
  const terminals = desktop ? createTerminalHost({
8655
9044
  cwd: process.cwd(),
@@ -8686,6 +9075,7 @@ async function runAcpCommand(ctx, desktop = false) {
8686
9075
  });
8687
9076
  await server.start();
8688
9077
  cliLogger().info("ACP protocol server started");
9078
+ flushCompileCacheWhenIdle();
8689
9079
  try {
8690
9080
  await new Promise((resolve4) => {
8691
9081
  const finish = /* @__PURE__ */ __name(() => {
@@ -8698,6 +9088,8 @@ async function runAcpCommand(ctx, desktop = false) {
8698
9088
  });
8699
9089
  } finally {
8700
9090
  announcing = false;
9091
+ announcingUsage = false;
9092
+ usageFeed?.close();
8701
9093
  try {
8702
9094
  await terminals?.close();
8703
9095
  await palInboxStart?.close();
@@ -8730,4 +9122,4 @@ export {
8730
9122
  resolveAcpSession,
8731
9123
  runAcpCommand
8732
9124
  };
8733
- //# sourceMappingURL=acp-MBBNHTFF.js.map
9125
+ //# sourceMappingURL=acp-PFKCDYRZ.js.map