@namzu/cli 50.0.0 → 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 (300) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/chunks/{acp-GX5C46FS.js → acp-PFKCDYRZ.js} +279 -51
  4. package/dist/chunks/acp-PFKCDYRZ.js.map +6 -0
  5. package/dist/chunks/{activity-command-ALROOYA2.js → activity-command-VZNRTS4Y.js} +12 -12
  6. package/dist/chunks/{add-Y24XHCJZ.js → add-ILOY57M3.js} +19 -19
  7. package/dist/chunks/{agent-2UGJH5L2.js → agent-7XMB6YDL.js} +35 -35
  8. package/dist/chunks/agent-session-EJPBND2I.js +69 -0
  9. package/dist/chunks/{archive-BQVBBILN.js → archive-YUJITQ3K.js} +10 -10
  10. package/dist/chunks/{bin-main-LFD4MFRZ.js → bin-main-QQCDUNOU.js} +7 -7
  11. package/dist/chunks/{binding-7QVD3QFS.js → binding-QXY72MYE.js} +3 -3
  12. package/dist/chunks/{browser-L7XFOCFR.js → browser-T5M3N46O.js} +6 -6
  13. package/dist/chunks/{chat-J4HA4DHS.js → chat-H6P7555R.js} +15 -15
  14. package/dist/chunks/{chunk-RKYDGWUF.js → chunk-2BMVENUB.js} +2 -2
  15. package/dist/chunks/{chunk-F4HPFCP7.js → chunk-2FQ6QJIZ.js} +12 -12
  16. package/dist/chunks/{chunk-LMSDBH3N.js → chunk-424T6RL4.js} +2 -2
  17. package/dist/chunks/{chunk-7DITWYWT.js → chunk-45PI33XV.js} +3 -3
  18. package/dist/chunks/{chunk-YCJW5A7U.js → chunk-4IP74K5V.js} +2 -2
  19. package/dist/chunks/{chunk-N5H6BXSH.js → chunk-56WREK7X.js} +2 -2
  20. package/dist/chunks/{chunk-5XCRTM5D.js → chunk-57EJUGDT.js} +3 -3
  21. package/dist/chunks/{chunk-64LJS5ED.js → chunk-5WSDPQ3D.js} +4 -4
  22. package/dist/chunks/{chunk-3JUVHVOX.js → chunk-6X3NKVRL.js} +4 -4
  23. package/dist/chunks/{chunk-NIT2OAFM.js → chunk-7VXBUWVA.js} +2 -2
  24. package/dist/chunks/{chunk-TBQ7SPXV.js → chunk-AKXUNA4X.js} +6 -6
  25. package/dist/chunks/{chunk-24ZRB5EE.js → chunk-BIDU2JUB.js} +2 -2
  26. package/dist/chunks/{chunk-7F67RLOJ.js → chunk-C2PBNQYT.js} +10 -10
  27. package/dist/chunks/{chunk-IVBQSIVS.js → chunk-CFCULKSN.js} +2 -2
  28. package/dist/chunks/{chunk-K2JXGE24.js → chunk-CPWGSBBN.js} +3 -3
  29. package/dist/chunks/{chunk-VKYRVAQ4.js → chunk-CR23VYUE.js} +13 -13
  30. package/dist/chunks/{chunk-4DPAL2SS.js → chunk-D7W5LUXV.js} +3 -3
  31. package/dist/chunks/{chunk-YXWJD4GH.js → chunk-E6BNHEYX.js} +2 -2
  32. package/dist/chunks/{chunk-FLCSG33P.js → chunk-EPDDCCV5.js} +2 -2
  33. package/dist/chunks/{chunk-EMXHURNA.js → chunk-FGEJOOL4.js} +3 -3
  34. package/dist/chunks/{chunk-AVNUJT7M.js → chunk-FIIZZRMV.js} +3 -3
  35. package/dist/chunks/{chunk-QQZXB3E7.js → chunk-FM2QPMPK.js} +2 -2
  36. package/dist/chunks/{chunk-2QCCSP7N.js → chunk-FXAHVRUE.js} +3 -3
  37. package/dist/chunks/{chunk-I3CWCFIT.js → chunk-G5OCRPZF.js} +2 -2
  38. package/dist/chunks/{chunk-KWLUYAKG.js → chunk-GKPO6EGA.js} +2 -2
  39. package/dist/chunks/{chunk-VGUQOYPZ.js → chunk-GL6KSVMS.js} +9 -9
  40. package/dist/chunks/{chunk-ZXW2TTMW.js → chunk-GN424XZ3.js} +7 -7
  41. package/dist/chunks/{chunk-FWHZB37G.js → chunk-GWXAAFPJ.js} +2 -2
  42. package/dist/chunks/{chunk-VTBS7NVT.js → chunk-HDOYZYBW.js} +3 -3
  43. package/dist/chunks/{chunk-DRNABAHW.js → chunk-HNVUVSOI.js} +2 -2
  44. package/dist/chunks/{chunk-VL6NOKJF.js → chunk-HUKEVKWH.js} +3 -3
  45. package/dist/chunks/{chunk-NCI44BJE.js → chunk-HYUVSO4X.js} +4 -4
  46. package/dist/chunks/{chunk-WPEFWFO6.js → chunk-HYWVPQQD.js} +4 -4
  47. package/dist/chunks/{chunk-TCC7QRSV.js → chunk-IQPD7KYD.js} +3 -3
  48. package/dist/chunks/{chunk-P32KIQBD.js → chunk-ITNMS75R.js} +2 -2
  49. package/dist/chunks/{chunk-52KOLFPS.js → chunk-IXDECEIX.js} +4 -4
  50. package/dist/chunks/{chunk-FKNLXK7P.js → chunk-IXNUPR24.js} +33 -33
  51. package/dist/chunks/{chunk-HAV2WF6U.js → chunk-IZHREIZK.js} +6 -6
  52. package/dist/chunks/{chunk-MBFYU4BQ.js → chunk-JGYCZO6C.js} +2 -2
  53. package/dist/chunks/{chunk-P2NS5JPG.js → chunk-JQUAYX3B.js} +5 -5
  54. package/dist/chunks/{chunk-36G4OU2T.js → chunk-K4PPNYXR.js} +2 -2
  55. package/dist/chunks/{chunk-62ZRTAHT.js → chunk-KKEWKJVL.js} +3 -3
  56. package/dist/chunks/{chunk-4YFO2Q4F.js → chunk-MAMV7MUG.js} +9 -9
  57. package/dist/chunks/{chunk-INFXJ66V.js → chunk-MIJGXF3Z.js} +2 -2
  58. package/dist/chunks/chunk-NVZRRJJS.js +113 -0
  59. package/dist/chunks/chunk-NVZRRJJS.js.map +6 -0
  60. package/dist/chunks/{chunk-PH7RYICR.js → chunk-NXRUXNJ5.js} +2 -2
  61. package/dist/chunks/{chunk-AZLMME5T.js → chunk-P2E6HFIP.js} +2 -2
  62. package/dist/chunks/{chunk-FMXRUVQ3.js → chunk-P7NXR4OV.js} +4 -4
  63. package/dist/chunks/{chunk-BHYTFZYY.js → chunk-PCW42R33.js} +5 -5
  64. package/dist/chunks/{chunk-ZK6GFS2K.js → chunk-QNIHTTLG.js} +3 -3
  65. package/dist/chunks/{chunk-PT7CAL4N.js → chunk-QPREGR6U.js} +4 -4
  66. package/dist/chunks/{chunk-H2WOQGLW.js → chunk-RGUF5E22.js} +4 -4
  67. package/dist/chunks/{chunk-T5GYOXPH.js → chunk-RSAB3MPL.js} +11 -11
  68. package/dist/chunks/{chunk-4OGB5U5E.js → chunk-RZ6PDAMQ.js} +2 -2
  69. package/dist/chunks/{chunk-M3FCCQWN.js → chunk-S4Q4PC2L.js} +49 -3
  70. package/dist/chunks/chunk-S4Q4PC2L.js.map +6 -0
  71. package/dist/chunks/{chunk-EK4LUV4L.js → chunk-SAJGEVVD.js} +3 -3
  72. package/dist/chunks/{chunk-GXYFKGXC.js → chunk-SB3GBZ65.js} +3 -3
  73. package/dist/chunks/{chunk-O4RW4C5Q.js → chunk-SECKALTU.js} +2 -2
  74. package/dist/chunks/{chunk-3L3NHBFB.js → chunk-SFGTJCGU.js} +2 -2
  75. package/dist/chunks/{chunk-YXOWGENA.js → chunk-SSPDO3JT.js} +9 -9
  76. package/dist/chunks/{chunk-GL3SCBU5.js → chunk-SVB7IHBE.js} +3 -3
  77. package/dist/chunks/{chunk-BPKOUPPI.js → chunk-T2DRSTJV.js} +2 -2
  78. package/dist/chunks/{chunk-WSRGGVIM.js → chunk-T4BQXXZS.js} +5 -5
  79. package/dist/chunks/{chunk-DPS5H6YZ.js → chunk-UARXWUZO.js} +4 -4
  80. package/dist/chunks/{chunk-EKLFUD76.js → chunk-UBB7EIHC.js} +3 -3
  81. package/dist/chunks/{chunk-FELRB5DJ.js → chunk-URBIMXZN.js} +6 -6
  82. package/dist/chunks/{chunk-7L4LWYJL.js → chunk-UXXV6VCO.js} +3 -3
  83. package/dist/chunks/{chunk-P5BRE34M.js → chunk-VQ7FOO7M.js} +2 -2
  84. package/dist/chunks/{chunk-UI7WXHQL.js → chunk-WKW65PAC.js} +2 -2
  85. package/dist/chunks/{chunk-NBGCCPO2.js → chunk-WTMP5H7T.js} +4 -4
  86. package/dist/chunks/{chunk-M4CILTGF.js → chunk-XC6UYANY.js} +2 -2
  87. package/dist/chunks/{chunk-EQ6W5RYI.js → chunk-XXHZE4KV.js} +2 -2
  88. package/dist/chunks/{chunk-DPFRJK3R.js → chunk-Y22AUU3X.js} +4 -4
  89. package/dist/chunks/{chunk-4ZJEPJXK.js → chunk-Z3DTGVZS.js} +52 -34
  90. package/dist/chunks/chunk-Z3DTGVZS.js.map +6 -0
  91. package/dist/chunks/{chunk-S4YTXJTD.js → chunk-ZE6HLPD4.js} +766 -334
  92. package/dist/chunks/chunk-ZE6HLPD4.js.map +6 -0
  93. package/dist/chunks/{chunk-4E2XEBCA.js → chunk-ZJKISI2K.js} +4 -4
  94. package/dist/chunks/{cli-runtime-JHNUAZGX.js → cli-runtime-JXRGA4O7.js} +11 -11
  95. package/dist/chunks/{commands-QIB5PR4U.js → commands-3K6WWRUN.js} +5 -5
  96. package/dist/chunks/{crash-report-YKBMAI2C.js → crash-report-NTEADY4P.js} +6 -6
  97. package/dist/chunks/{dist-JU77OEQV.js → dist-43NXQHZ2.js} +2 -2
  98. package/dist/chunks/{dist-HX4CMQP7.js → dist-5ZAKSBZS.js} +2 -2
  99. package/dist/chunks/{dist-YKDCCBQG.js → dist-CRT6EQAR.js} +2 -2
  100. package/dist/chunks/{dist-BO4BUR4Z.js → dist-EHAGNOTG.js} +2 -2
  101. package/dist/chunks/{dist-OS52BKDN.js → dist-G2QITXMW.js} +2 -2
  102. package/dist/chunks/{dist-ONV5YXBC.js → dist-VEUKVTZP.js} +2 -2
  103. package/dist/chunks/{dist-TFGK7OXW.js → dist-WDRMCFAU.js} +2 -2
  104. package/dist/chunks/{dist-EGQG2CWK.js → dist-Z2QVC4OK.js} +2 -2
  105. package/dist/chunks/{doctor-GILJT2C6.js → doctor-UVX6YR2I.js} +16 -16
  106. package/dist/chunks/{drain-A65DSXV5.js → drain-URR6CUUH.js} +9 -9
  107. package/dist/chunks/{entry-S4CXG3N4.js → entry-WCWSORA2.js} +6 -6
  108. package/dist/chunks/{eval-7JFPRH2Z.js → eval-Y6FUUDCX.js} +2 -2
  109. package/dist/chunks/{exec-JKYNWA4S.js → exec-5BUTAYMJ.js} +34 -34
  110. package/dist/chunks/{home-TD3AGJSX.js → home-HDE3CFLB.js} +3 -3
  111. package/dist/chunks/{host-MRXWMOJP.js → host-TZ6GSDWP.js} +10 -10
  112. package/dist/chunks/{host-queries-77N4N7XL.js → host-queries-Y7A4XJ64.js} +15 -15
  113. package/dist/chunks/{learn-EEKKNN7B.js → learn-GYBZNIT3.js} +11 -11
  114. package/dist/chunks/{learn-builtin-DGQW6ZJ3.js → learn-builtin-EJXTHMX6.js} +14 -14
  115. package/dist/chunks/{lifecycle-5QSLVTIZ.js → lifecycle-5EM2QRFV.js} +28 -28
  116. package/dist/chunks/{list-G525YHRP.js → list-M34JU5AG.js} +11 -11
  117. package/dist/chunks/{live-Z4LVRXQJ.js → live-XMBIOII4.js} +15 -15
  118. package/dist/chunks/{login-V6COXMPE.js → login-NI3DFWOW.js} +13 -13
  119. package/dist/chunks/{logs-NM5XSBZ2.js → logs-OI6GZRRC.js} +4 -4
  120. package/dist/chunks/{mcp-NTFOOPLS.js → mcp-FK3OBBSJ.js} +29 -117
  121. package/dist/chunks/mcp-FK3OBBSJ.js.map +6 -0
  122. package/dist/chunks/{message-command-BBICY3ZH.js → message-command-CIYB47HZ.js} +41 -41
  123. package/dist/chunks/{open-EO6BERGC.js → open-XYGGZHXM.js} +8 -8
  124. package/dist/chunks/{operator-tools-EKYFPXNP.js → operator-tools-QSZS57PI.js} +13 -13
  125. package/dist/chunks/{output-schema-4QBMG2V3.js → output-schema-BTNJ6DL5.js} +3 -3
  126. package/dist/chunks/{pal-GGEP7A3C.js → pal-EQAAJBWP.js} +16 -16
  127. package/dist/chunks/{peers-XABPXXYU.js → peers-35H6CZOZ.js} +7 -7
  128. package/dist/chunks/{peers-NEFTEGGH.js → peers-KN4BGJHU.js} +6 -6
  129. package/dist/chunks/{providers-UR7PTSAU.js → providers-I2GONE3C.js} +11 -11
  130. package/dist/chunks/{pty-E6LOL7FL.js → pty-GZ4R2DCS.js} +3 -3
  131. package/dist/chunks/resume-4KW4GUYR.js +23 -0
  132. package/dist/chunks/{resume-command-SK376EH7.js → resume-command-TOAGIGZO.js} +4 -4
  133. package/dist/chunks/{schedule-LMZSBVLA.js → schedule-FU5WY3WV.js} +8 -8
  134. package/dist/chunks/{service-LXGEJ7SQ.js → service-3UYEV4JX.js} +28 -28
  135. package/dist/chunks/{skills-LKMGHUON.js → skills-4V2SBEY3.js} +8 -8
  136. package/dist/chunks/{start-check-VOPUK6AT.js → start-check-RBYWVZT4.js} +2 -2
  137. package/dist/chunks/{startup-failure-EICFG4GV.js → startup-failure-SST73T7Q.js} +2 -2
  138. package/dist/chunks/{state-JOIMBJVN.js → state-N46ZI3LZ.js} +2 -2
  139. package/dist/chunks/{store-ZZNUM66U.js → store-KA6NETSP.js} +3 -3
  140. package/dist/chunks/{store-JPIWK3PM.js → store-M56FSIZT.js} +6 -6
  141. package/dist/chunks/{store-CJQTON4J.js → store-R662Y2YQ.js} +10 -10
  142. package/dist/chunks/{store-22R5VPTI.js → store-RHAHG45U.js} +4 -4
  143. package/dist/chunks/{tui-7GUHLL4B.js → tui-TJNH67YO.js} +210 -177
  144. package/dist/chunks/tui-TJNH67YO.js.map +6 -0
  145. package/dist/chunks/{upgrade-WX6LVKEZ.js → upgrade-YNYPRYFI.js} +7 -7
  146. package/dist/chunks/{workspaces-LSNFONMM.js → workspaces-OITS2AZJ.js} +16 -16
  147. package/dist/chunks/{worktree-FPCQFFLT.js → worktree-DJW4XCBG.js} +12 -12
  148. package/dist/commands/acp.d.ts +14 -1
  149. package/dist/commands/acp.d.ts.map +1 -1
  150. package/dist/commands/desktop-host.d.ts +32 -0
  151. package/dist/commands/desktop-host.d.ts.map +1 -1
  152. package/dist/commands/desktop-outcome-feed.d.ts +36 -0
  153. package/dist/commands/desktop-outcome-feed.d.ts.map +1 -0
  154. package/dist/index.js +19 -19
  155. package/dist/integrations/mcp/server-listing.d.ts +53 -0
  156. package/dist/integrations/mcp/server-listing.d.ts.map +1 -0
  157. package/dist/integrations/sessions/checkpoint-view.d.ts.map +1 -1
  158. package/dist/tui/index.d.ts.map +1 -1
  159. package/dist/tui/paste-marker-guard.d.ts +77 -0
  160. package/dist/tui/paste-marker-guard.d.ts.map +1 -0
  161. package/package.json +4 -4
  162. package/dist/chunks/acp-GX5C46FS.js.map +0 -6
  163. package/dist/chunks/agent-session-UQXPM43X.js +0 -69
  164. package/dist/chunks/chunk-4ZJEPJXK.js.map +0 -6
  165. package/dist/chunks/chunk-M3FCCQWN.js.map +0 -6
  166. package/dist/chunks/chunk-S4YTXJTD.js.map +0 -6
  167. package/dist/chunks/mcp-NTFOOPLS.js.map +0 -6
  168. package/dist/chunks/resume-YVCJLRJM.js +0 -23
  169. package/dist/chunks/tui-7GUHLL4B.js.map +0 -6
  170. /package/dist/chunks/{activity-command-ALROOYA2.js.map → activity-command-VZNRTS4Y.js.map} +0 -0
  171. /package/dist/chunks/{add-Y24XHCJZ.js.map → add-ILOY57M3.js.map} +0 -0
  172. /package/dist/chunks/{agent-2UGJH5L2.js.map → agent-7XMB6YDL.js.map} +0 -0
  173. /package/dist/chunks/{agent-session-UQXPM43X.js.map → agent-session-EJPBND2I.js.map} +0 -0
  174. /package/dist/chunks/{archive-BQVBBILN.js.map → archive-YUJITQ3K.js.map} +0 -0
  175. /package/dist/chunks/{bin-main-LFD4MFRZ.js.map → bin-main-QQCDUNOU.js.map} +0 -0
  176. /package/dist/chunks/{binding-7QVD3QFS.js.map → binding-QXY72MYE.js.map} +0 -0
  177. /package/dist/chunks/{browser-L7XFOCFR.js.map → browser-T5M3N46O.js.map} +0 -0
  178. /package/dist/chunks/{chat-J4HA4DHS.js.map → chat-H6P7555R.js.map} +0 -0
  179. /package/dist/chunks/{chunk-RKYDGWUF.js.map → chunk-2BMVENUB.js.map} +0 -0
  180. /package/dist/chunks/{chunk-F4HPFCP7.js.map → chunk-2FQ6QJIZ.js.map} +0 -0
  181. /package/dist/chunks/{chunk-LMSDBH3N.js.map → chunk-424T6RL4.js.map} +0 -0
  182. /package/dist/chunks/{chunk-7DITWYWT.js.map → chunk-45PI33XV.js.map} +0 -0
  183. /package/dist/chunks/{chunk-YCJW5A7U.js.map → chunk-4IP74K5V.js.map} +0 -0
  184. /package/dist/chunks/{chunk-N5H6BXSH.js.map → chunk-56WREK7X.js.map} +0 -0
  185. /package/dist/chunks/{chunk-5XCRTM5D.js.map → chunk-57EJUGDT.js.map} +0 -0
  186. /package/dist/chunks/{chunk-64LJS5ED.js.map → chunk-5WSDPQ3D.js.map} +0 -0
  187. /package/dist/chunks/{chunk-3JUVHVOX.js.map → chunk-6X3NKVRL.js.map} +0 -0
  188. /package/dist/chunks/{chunk-NIT2OAFM.js.map → chunk-7VXBUWVA.js.map} +0 -0
  189. /package/dist/chunks/{chunk-TBQ7SPXV.js.map → chunk-AKXUNA4X.js.map} +0 -0
  190. /package/dist/chunks/{chunk-24ZRB5EE.js.map → chunk-BIDU2JUB.js.map} +0 -0
  191. /package/dist/chunks/{chunk-7F67RLOJ.js.map → chunk-C2PBNQYT.js.map} +0 -0
  192. /package/dist/chunks/{chunk-IVBQSIVS.js.map → chunk-CFCULKSN.js.map} +0 -0
  193. /package/dist/chunks/{chunk-K2JXGE24.js.map → chunk-CPWGSBBN.js.map} +0 -0
  194. /package/dist/chunks/{chunk-VKYRVAQ4.js.map → chunk-CR23VYUE.js.map} +0 -0
  195. /package/dist/chunks/{chunk-4DPAL2SS.js.map → chunk-D7W5LUXV.js.map} +0 -0
  196. /package/dist/chunks/{chunk-YXWJD4GH.js.map → chunk-E6BNHEYX.js.map} +0 -0
  197. /package/dist/chunks/{chunk-FLCSG33P.js.map → chunk-EPDDCCV5.js.map} +0 -0
  198. /package/dist/chunks/{chunk-EMXHURNA.js.map → chunk-FGEJOOL4.js.map} +0 -0
  199. /package/dist/chunks/{chunk-AVNUJT7M.js.map → chunk-FIIZZRMV.js.map} +0 -0
  200. /package/dist/chunks/{chunk-QQZXB3E7.js.map → chunk-FM2QPMPK.js.map} +0 -0
  201. /package/dist/chunks/{chunk-2QCCSP7N.js.map → chunk-FXAHVRUE.js.map} +0 -0
  202. /package/dist/chunks/{chunk-I3CWCFIT.js.map → chunk-G5OCRPZF.js.map} +0 -0
  203. /package/dist/chunks/{chunk-KWLUYAKG.js.map → chunk-GKPO6EGA.js.map} +0 -0
  204. /package/dist/chunks/{chunk-VGUQOYPZ.js.map → chunk-GL6KSVMS.js.map} +0 -0
  205. /package/dist/chunks/{chunk-ZXW2TTMW.js.map → chunk-GN424XZ3.js.map} +0 -0
  206. /package/dist/chunks/{chunk-FWHZB37G.js.map → chunk-GWXAAFPJ.js.map} +0 -0
  207. /package/dist/chunks/{chunk-VTBS7NVT.js.map → chunk-HDOYZYBW.js.map} +0 -0
  208. /package/dist/chunks/{chunk-DRNABAHW.js.map → chunk-HNVUVSOI.js.map} +0 -0
  209. /package/dist/chunks/{chunk-VL6NOKJF.js.map → chunk-HUKEVKWH.js.map} +0 -0
  210. /package/dist/chunks/{chunk-NCI44BJE.js.map → chunk-HYUVSO4X.js.map} +0 -0
  211. /package/dist/chunks/{chunk-WPEFWFO6.js.map → chunk-HYWVPQQD.js.map} +0 -0
  212. /package/dist/chunks/{chunk-TCC7QRSV.js.map → chunk-IQPD7KYD.js.map} +0 -0
  213. /package/dist/chunks/{chunk-P32KIQBD.js.map → chunk-ITNMS75R.js.map} +0 -0
  214. /package/dist/chunks/{chunk-52KOLFPS.js.map → chunk-IXDECEIX.js.map} +0 -0
  215. /package/dist/chunks/{chunk-FKNLXK7P.js.map → chunk-IXNUPR24.js.map} +0 -0
  216. /package/dist/chunks/{chunk-HAV2WF6U.js.map → chunk-IZHREIZK.js.map} +0 -0
  217. /package/dist/chunks/{chunk-MBFYU4BQ.js.map → chunk-JGYCZO6C.js.map} +0 -0
  218. /package/dist/chunks/{chunk-P2NS5JPG.js.map → chunk-JQUAYX3B.js.map} +0 -0
  219. /package/dist/chunks/{chunk-36G4OU2T.js.map → chunk-K4PPNYXR.js.map} +0 -0
  220. /package/dist/chunks/{chunk-62ZRTAHT.js.map → chunk-KKEWKJVL.js.map} +0 -0
  221. /package/dist/chunks/{chunk-4YFO2Q4F.js.map → chunk-MAMV7MUG.js.map} +0 -0
  222. /package/dist/chunks/{chunk-INFXJ66V.js.map → chunk-MIJGXF3Z.js.map} +0 -0
  223. /package/dist/chunks/{chunk-PH7RYICR.js.map → chunk-NXRUXNJ5.js.map} +0 -0
  224. /package/dist/chunks/{chunk-AZLMME5T.js.map → chunk-P2E6HFIP.js.map} +0 -0
  225. /package/dist/chunks/{chunk-FMXRUVQ3.js.map → chunk-P7NXR4OV.js.map} +0 -0
  226. /package/dist/chunks/{chunk-BHYTFZYY.js.map → chunk-PCW42R33.js.map} +0 -0
  227. /package/dist/chunks/{chunk-ZK6GFS2K.js.map → chunk-QNIHTTLG.js.map} +0 -0
  228. /package/dist/chunks/{chunk-PT7CAL4N.js.map → chunk-QPREGR6U.js.map} +0 -0
  229. /package/dist/chunks/{chunk-H2WOQGLW.js.map → chunk-RGUF5E22.js.map} +0 -0
  230. /package/dist/chunks/{chunk-T5GYOXPH.js.map → chunk-RSAB3MPL.js.map} +0 -0
  231. /package/dist/chunks/{chunk-4OGB5U5E.js.map → chunk-RZ6PDAMQ.js.map} +0 -0
  232. /package/dist/chunks/{chunk-EK4LUV4L.js.map → chunk-SAJGEVVD.js.map} +0 -0
  233. /package/dist/chunks/{chunk-GXYFKGXC.js.map → chunk-SB3GBZ65.js.map} +0 -0
  234. /package/dist/chunks/{chunk-O4RW4C5Q.js.map → chunk-SECKALTU.js.map} +0 -0
  235. /package/dist/chunks/{chunk-3L3NHBFB.js.map → chunk-SFGTJCGU.js.map} +0 -0
  236. /package/dist/chunks/{chunk-YXOWGENA.js.map → chunk-SSPDO3JT.js.map} +0 -0
  237. /package/dist/chunks/{chunk-GL3SCBU5.js.map → chunk-SVB7IHBE.js.map} +0 -0
  238. /package/dist/chunks/{chunk-BPKOUPPI.js.map → chunk-T2DRSTJV.js.map} +0 -0
  239. /package/dist/chunks/{chunk-WSRGGVIM.js.map → chunk-T4BQXXZS.js.map} +0 -0
  240. /package/dist/chunks/{chunk-DPS5H6YZ.js.map → chunk-UARXWUZO.js.map} +0 -0
  241. /package/dist/chunks/{chunk-EKLFUD76.js.map → chunk-UBB7EIHC.js.map} +0 -0
  242. /package/dist/chunks/{chunk-FELRB5DJ.js.map → chunk-URBIMXZN.js.map} +0 -0
  243. /package/dist/chunks/{chunk-7L4LWYJL.js.map → chunk-UXXV6VCO.js.map} +0 -0
  244. /package/dist/chunks/{chunk-P5BRE34M.js.map → chunk-VQ7FOO7M.js.map} +0 -0
  245. /package/dist/chunks/{chunk-UI7WXHQL.js.map → chunk-WKW65PAC.js.map} +0 -0
  246. /package/dist/chunks/{chunk-NBGCCPO2.js.map → chunk-WTMP5H7T.js.map} +0 -0
  247. /package/dist/chunks/{chunk-M4CILTGF.js.map → chunk-XC6UYANY.js.map} +0 -0
  248. /package/dist/chunks/{chunk-EQ6W5RYI.js.map → chunk-XXHZE4KV.js.map} +0 -0
  249. /package/dist/chunks/{chunk-DPFRJK3R.js.map → chunk-Y22AUU3X.js.map} +0 -0
  250. /package/dist/chunks/{chunk-4E2XEBCA.js.map → chunk-ZJKISI2K.js.map} +0 -0
  251. /package/dist/chunks/{cli-runtime-JHNUAZGX.js.map → cli-runtime-JXRGA4O7.js.map} +0 -0
  252. /package/dist/chunks/{commands-QIB5PR4U.js.map → commands-3K6WWRUN.js.map} +0 -0
  253. /package/dist/chunks/{crash-report-YKBMAI2C.js.map → crash-report-NTEADY4P.js.map} +0 -0
  254. /package/dist/chunks/{dist-JU77OEQV.js.map → dist-43NXQHZ2.js.map} +0 -0
  255. /package/dist/chunks/{dist-HX4CMQP7.js.map → dist-5ZAKSBZS.js.map} +0 -0
  256. /package/dist/chunks/{dist-YKDCCBQG.js.map → dist-CRT6EQAR.js.map} +0 -0
  257. /package/dist/chunks/{dist-BO4BUR4Z.js.map → dist-EHAGNOTG.js.map} +0 -0
  258. /package/dist/chunks/{dist-OS52BKDN.js.map → dist-G2QITXMW.js.map} +0 -0
  259. /package/dist/chunks/{dist-ONV5YXBC.js.map → dist-VEUKVTZP.js.map} +0 -0
  260. /package/dist/chunks/{dist-TFGK7OXW.js.map → dist-WDRMCFAU.js.map} +0 -0
  261. /package/dist/chunks/{dist-EGQG2CWK.js.map → dist-Z2QVC4OK.js.map} +0 -0
  262. /package/dist/chunks/{doctor-GILJT2C6.js.map → doctor-UVX6YR2I.js.map} +0 -0
  263. /package/dist/chunks/{drain-A65DSXV5.js.map → drain-URR6CUUH.js.map} +0 -0
  264. /package/dist/chunks/{entry-S4CXG3N4.js.map → entry-WCWSORA2.js.map} +0 -0
  265. /package/dist/chunks/{eval-7JFPRH2Z.js.map → eval-Y6FUUDCX.js.map} +0 -0
  266. /package/dist/chunks/{exec-JKYNWA4S.js.map → exec-5BUTAYMJ.js.map} +0 -0
  267. /package/dist/chunks/{home-TD3AGJSX.js.map → home-HDE3CFLB.js.map} +0 -0
  268. /package/dist/chunks/{host-MRXWMOJP.js.map → host-TZ6GSDWP.js.map} +0 -0
  269. /package/dist/chunks/{host-queries-77N4N7XL.js.map → host-queries-Y7A4XJ64.js.map} +0 -0
  270. /package/dist/chunks/{learn-EEKKNN7B.js.map → learn-GYBZNIT3.js.map} +0 -0
  271. /package/dist/chunks/{learn-builtin-DGQW6ZJ3.js.map → learn-builtin-EJXTHMX6.js.map} +0 -0
  272. /package/dist/chunks/{lifecycle-5QSLVTIZ.js.map → lifecycle-5EM2QRFV.js.map} +0 -0
  273. /package/dist/chunks/{list-G525YHRP.js.map → list-M34JU5AG.js.map} +0 -0
  274. /package/dist/chunks/{live-Z4LVRXQJ.js.map → live-XMBIOII4.js.map} +0 -0
  275. /package/dist/chunks/{login-V6COXMPE.js.map → login-NI3DFWOW.js.map} +0 -0
  276. /package/dist/chunks/{logs-NM5XSBZ2.js.map → logs-OI6GZRRC.js.map} +0 -0
  277. /package/dist/chunks/{message-command-BBICY3ZH.js.map → message-command-CIYB47HZ.js.map} +0 -0
  278. /package/dist/chunks/{open-EO6BERGC.js.map → open-XYGGZHXM.js.map} +0 -0
  279. /package/dist/chunks/{operator-tools-EKYFPXNP.js.map → operator-tools-QSZS57PI.js.map} +0 -0
  280. /package/dist/chunks/{output-schema-4QBMG2V3.js.map → output-schema-BTNJ6DL5.js.map} +0 -0
  281. /package/dist/chunks/{pal-GGEP7A3C.js.map → pal-EQAAJBWP.js.map} +0 -0
  282. /package/dist/chunks/{peers-XABPXXYU.js.map → peers-35H6CZOZ.js.map} +0 -0
  283. /package/dist/chunks/{peers-NEFTEGGH.js.map → peers-KN4BGJHU.js.map} +0 -0
  284. /package/dist/chunks/{providers-UR7PTSAU.js.map → providers-I2GONE3C.js.map} +0 -0
  285. /package/dist/chunks/{pty-E6LOL7FL.js.map → pty-GZ4R2DCS.js.map} +0 -0
  286. /package/dist/chunks/{resume-YVCJLRJM.js.map → resume-4KW4GUYR.js.map} +0 -0
  287. /package/dist/chunks/{resume-command-SK376EH7.js.map → resume-command-TOAGIGZO.js.map} +0 -0
  288. /package/dist/chunks/{schedule-LMZSBVLA.js.map → schedule-FU5WY3WV.js.map} +0 -0
  289. /package/dist/chunks/{service-LXGEJ7SQ.js.map → service-3UYEV4JX.js.map} +0 -0
  290. /package/dist/chunks/{skills-LKMGHUON.js.map → skills-4V2SBEY3.js.map} +0 -0
  291. /package/dist/chunks/{start-check-VOPUK6AT.js.map → start-check-RBYWVZT4.js.map} +0 -0
  292. /package/dist/chunks/{startup-failure-EICFG4GV.js.map → startup-failure-SST73T7Q.js.map} +0 -0
  293. /package/dist/chunks/{state-JOIMBJVN.js.map → state-N46ZI3LZ.js.map} +0 -0
  294. /package/dist/chunks/{store-22R5VPTI.js.map → store-KA6NETSP.js.map} +0 -0
  295. /package/dist/chunks/{store-CJQTON4J.js.map → store-M56FSIZT.js.map} +0 -0
  296. /package/dist/chunks/{store-JPIWK3PM.js.map → store-R662Y2YQ.js.map} +0 -0
  297. /package/dist/chunks/{store-ZZNUM66U.js.map → store-RHAHG45U.js.map} +0 -0
  298. /package/dist/chunks/{upgrade-WX6LVKEZ.js.map → upgrade-YNYPRYFI.js.map} +0 -0
  299. /package/dist/chunks/{workspaces-LSNFONMM.js.map → workspaces-OITS2AZJ.js.map} +0 -0
  300. /package/dist/chunks/{worktree-FPCQFFLT.js.map → worktree-DJW4XCBG.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @namzu/cli
2
2
 
3
+ ## 50.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d0aefd2: Namzu Desktop no longer shows things that lead nowhere. The rail drops the disabled Spaces, Scheduled and Plugins buttons until they exist (Plugins is still in the composer's + menu). A conversation that ended because Namzu was closed now offers "Ask Namzu to continue", which sends a new message (a turn cut off by closing cannot be resumed) and says what its actions finished. Settings, Tools lists the project's tool servers instead of "Not set": where each is defined and whether it is connected, waiting for your approval or failed, with a button that approves a waiting `.mcp.json` the way `namzu mcp approve` does. The search box also finds text inside replies and tool output and shows an excerpt of a reply (a match in tool output says only where it was found, never the text). The engine gains three host methods for this (`namzu/conversations/search`, `namzu/mcp/servers`, `namzu/mcp/approve`); nothing existing changes, and an older engine simply shows no list and no text search.
8
+
9
+ ### Patch Changes
10
+
11
+ - c44e10c: Desktop no longer hides a turn's bad news inside the folded "Worked" block. The header now says "1 command failed" or "1 action was not allowed" with a status mark, a failed command shows its last output lines under its row, a refused action shows its one-line reason, and a finished turn that changed files ends with one muted line built from the kernel's turn outcome record (what changed, and whether a check passed, failed, was not run, or had its exit status hidden by a pipe), in the same words the terminal uses. Nothing is shown for a turn that changed nothing. The CLI's desktop host sends the record as a new `namzu/session/outcome` notification and keeps it in the history snapshot (`outcome` on each turn); the SDK's `failure` tool fact gains an optional `note` (the refusal's reason). Additive only: a host that ignores the notification or the field is unchanged. A refused action shows a plain fixed sentence (the rule's own wording is hover text), and the line under a turn disappears once that turn's changes are undone.
12
+ - f0c8119: A long session costs less per turn, though it still grows with the log. In a 100-turn session against an instant model, CPU per turn at turns 91-100 fell from about 2.5 s to about 0.7 s; past about turn 120 per-turn CPU still rises (measured at 200 turns, see docs/sdk/session-log.md), and so does the heap, more slowly than before. Before, each turn re-read and re-verified the whole session log many times (once per stored checkpoint when choosing what to prune, several times when starting the turn, and on every evidence recall page), and every finished turn stayed in memory because it left a listener on the session's abort signal. Now those reads resume after the last record they folded and check that record against the file, so they read only what was appended; a log that no longer holds that record is read again from the start, with the same strict or tolerant behaviour as before. What is not fixed: the writer still reads and verifies the whole chain each time a turn takes the log, and compaction scoring grows with the history, so a very long session is still slower per turn than a short one.
13
+
14
+ Nothing to change for a caller: persisted records, resume, compaction and the content the model receives are the same, and aborting a session still aborts its running turn with the same reason. One behaviour is narrower: a byte altered in the middle of the log during a turn, with the newest record left alone, is now refused when the next turn takes the log rather than by the reads inside the turn that follows. Additive: `CheckpointLogView` has an optional `pruneFacts(scope, checkpointIds)` that answers both retention questions in one read; a view without it is still asked the two separate questions.
15
+
16
+ - 9c9f7a9: A paste no longer shows the end of its start or end marker as typed text (`[200~`, `[201~` in the message box) when the terminal delivers the marker in two pieces with a pause between them, which a slow or lossy remote connection can do. The unfinished marker is now held until the rest arrives (at most 200 ms when it could still be Alt+[ or the start of Insert, F9, F10 or another function key; at most 2 s for the prefixes `ESC [ 2 0`, which F9 shares, and `ESC [ 2 0 0` / `ESC [ 2 0 1`, which only a marker starts), then the paste is assembled as before, as one chip or as inline text, without submitting its newlines. The Escape key, arrow keys, Alt combinations and function keys that arrive whole are recognised on the same schedule as before. Two keys can arrive later than before: Alt+[, whose two bytes are also how a marker begins, by up to 200 ms; and an F9 that the connection itself splits, by up to 2 s. A function key split by the connection used to be typed as text and is now joined. A pause right after the first byte of the marker cannot be told from pressing Escape and is not repaired. Nothing to change on your side.
17
+ - Updated dependencies [c44e10c]
18
+ - Updated dependencies [f68f63b]
19
+ - Updated dependencies [f0c8119]
20
+ - @namzu/sdk@62.8.0
21
+
3
22
  ## 50.0.0
4
23
 
5
24
  ### Major Changes
package/dist/bin.js CHANGED
@@ -39,6 +39,6 @@ __name(suppressSqliteExperimentalWarning, "suppressSqliteExperimentalWarning");
39
39
  suppressSqliteExperimentalWarning();
40
40
 
41
41
  // src/bin.ts
42
- var { main } = await import("./chunks/bin-main-LFD4MFRZ.js");
42
+ var { main } = await import("./chunks/bin-main-QQCDUNOU.js");
43
43
  await main(fileURLToPath(new URL("./", import.meta.url).href + "bin.js"));
44
44
  //# sourceMappingURL=bin.js.map
@@ -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-YXOWGENA.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-P5BRE34M.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-M3FCCQWN.js";
15
- import "./chunk-WSRGGVIM.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-62ZRTAHT.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-4OGB5U5E.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-EMXHURNA.js";
46
+ } from "./chunk-FGEJOOL4.js";
42
47
  import {
43
48
  palSessionEnvironment
44
- } from "./chunk-7F67RLOJ.js";
49
+ } from "./chunk-C2PBNQYT.js";
45
50
  import {
46
51
  cliPalActivitySubscriptionPolicy,
47
52
  cliPalActivitySubscriptionStore,
48
53
  cliPalCommunicationPolicy,
49
54
  cliPalCommunicationStore
50
- } from "./chunk-FELRB5DJ.js";
55
+ } from "./chunk-URBIMXZN.js";
51
56
  import {
52
57
  claimPalConversation,
53
58
  listPalConversations,
54
59
  palConversationBinding
55
- } from "./chunk-NCI44BJE.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-4ZJEPJXK.js";
68
- import "./chunk-FMXRUVQ3.js";
69
- import "./chunk-ZK6GFS2K.js";
70
- import "./chunk-VTBS7NVT.js";
71
- import "./chunk-GL3SCBU5.js";
72
- import "./chunk-DPS5H6YZ.js";
73
- import "./chunk-3JUVHVOX.js";
74
- import "./chunk-MBFYU4BQ.js";
75
- import "./chunk-7DITWYWT.js";
76
- import "./chunk-64LJS5ED.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-YXWJD4GH.js";
83
+ import "./chunk-E6BNHEYX.js";
79
84
  import "./chunk-YOWYTBJS.js";
80
85
  import "./chunk-2IPDTDB3.js";
81
- import "./chunk-LMSDBH3N.js";
86
+ import "./chunk-424T6RL4.js";
82
87
  import "./chunk-IYUW2RAA.js";
83
- import "./chunk-5XCRTM5D.js";
88
+ import "./chunk-57EJUGDT.js";
84
89
  import "./chunk-ZWA2JRJV.js";
85
90
  import "./chunk-NUGPLXVK.js";
86
- import "./chunk-P2NS5JPG.js";
91
+ import "./chunk-JQUAYX3B.js";
87
92
  import {
88
93
  listProviderConnections,
89
94
  removeProviderKey,
90
95
  saveProviderKey,
91
96
  typedKeyProvider
92
- } from "./chunk-4DPAL2SS.js";
93
- import "./chunk-BHYTFZYY.js";
94
- import "./chunk-PT7CAL4N.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-HAV2WF6U.js";
113
- import "./chunk-AVNUJT7M.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,14 @@ import {
123
128
  listPals,
124
129
  palAtWorkspace,
125
130
  updatePal
126
- } from "./chunk-52KOLFPS.js";
131
+ } from "./chunk-IXDECEIX.js";
127
132
  import {
128
133
  isTrusted,
129
134
  isTrustedAtStateRoot,
130
135
  trustDir,
131
136
  untrustDir
132
- } from "./chunk-P32KIQBD.js";
133
- import "./chunk-INFXJ66V.js";
137
+ } from "./chunk-ITNMS75R.js";
138
+ import "./chunk-MIJGXF3Z.js";
134
139
  import {
135
140
  flushCompileCacheWhenIdle
136
141
  } from "./chunk-SOIP273Z.js";
@@ -141,12 +146,16 @@ import {
141
146
  CLI_VERSION
142
147
  } from "./chunk-HE7WUOX2.js";
143
148
  import "./chunk-GNBMKISG.js";
144
- import "./chunk-VL6NOKJF.js";
149
+ import "./chunk-HUKEVKWH.js";
145
150
  import "./chunk-OH6TB27S.js";
146
151
  import {
147
152
  ConfigValueError,
153
+ approveShownMcpServers,
154
+ fingerprintMcpServer,
155
+ loadConfig,
156
+ pendingProjectMcpServers,
148
157
  readConfigKey
149
- } from "./chunk-4E2XEBCA.js";
158
+ } from "./chunk-ZJKISI2K.js";
150
159
  import {
151
160
  require_dist
152
161
  } from "./chunk-KONYGNG6.js";
@@ -155,10 +164,10 @@ import {
155
164
  compilePermissionLayers,
156
165
  permissionLayersOf,
157
166
  warnLegacyMcpPermissionNames
158
- } from "./chunk-7L4LWYJL.js";
167
+ } from "./chunk-UXXV6VCO.js";
159
168
  import {
160
169
  cliLogger
161
- } from "./chunk-FLCSG33P.js";
170
+ } from "./chunk-EPDDCCV5.js";
162
171
  import "./chunk-SIG7WHBU.js";
163
172
  import "./chunk-LVVD32KJ.js";
164
173
  import "./chunk-6PWRKA5T.js";
@@ -175,28 +184,28 @@ import {
175
184
  loadHostPty,
176
185
  processesCarrying,
177
186
  quietConptyHelper
178
- } from "./chunk-PH7RYICR.js";
179
- import "./chunk-F4HPFCP7.js";
187
+ } from "./chunk-NXRUXNJ5.js";
188
+ import "./chunk-2FQ6QJIZ.js";
180
189
  import {
181
190
  automaticKind,
182
191
  canSelectModel,
183
192
  discoverProviders,
184
193
  isAnonymousZen
185
- } from "./chunk-DPFRJK3R.js";
194
+ } from "./chunk-Y22AUU3X.js";
186
195
  import {
187
196
  isOfferableModel
188
197
  } from "./chunk-4QIWRKJO.js";
189
198
  import "./chunk-G6YSAHKC.js";
190
199
  import "./chunk-KTPFUCRU.js";
191
200
  import "./chunk-RI2KAZJO.js";
192
- import "./chunk-EQ6W5RYI.js";
193
- import "./chunk-I3CWCFIT.js";
194
- import "./chunk-FWHZB37G.js";
201
+ import "./chunk-XXHZE4KV.js";
202
+ import "./chunk-G5OCRPZF.js";
203
+ import "./chunk-GWXAAFPJ.js";
195
204
  import {
196
205
  canonicalProjectPath
197
206
  } from "./chunk-JORONMD3.js";
198
- import "./chunk-DRNABAHW.js";
199
- import "./chunk-UI7WXHQL.js";
207
+ import "./chunk-HNVUVSOI.js";
208
+ import "./chunk-WKW65PAC.js";
200
209
  import {
201
210
  ACPServer,
202
211
  DiskLogMedium,
@@ -226,11 +235,12 @@ import {
226
235
  loadPluginManifest,
227
236
  mustAskPerson,
228
237
  openSessionIndex,
238
+ parseTurnOutcome,
229
239
  resolveNamzuHome,
230
240
  resolveWithinAnyReal,
231
241
  resolveWithinReal,
232
242
  selectAssistantText
233
- } from "./chunk-S4YTXJTD.js";
243
+ } from "./chunk-ZE6HLPD4.js";
234
244
  import {
235
245
  __name,
236
246
  __toESM
@@ -5320,6 +5330,72 @@ function writeSetting(change, opts = {}) {
5320
5330
  }
5321
5331
  __name(writeSetting, "writeSetting");
5322
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
+
5323
5399
  // src/pals/desktop-communication.ts
5324
5400
  import { randomUUID as randomUUID5 } from "node:crypto";
5325
5401
  import { lstatSync, realpathSync as realpathSync2 } from "node:fs";
@@ -6096,7 +6172,67 @@ async function projectPr(cwd, run = runCommand) {
6096
6172
  }
6097
6173
  __name(projectPr, "projectPr");
6098
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
+
6099
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");
6100
6236
  function text3(params, key, max = 400) {
6101
6237
  const value = params[key];
6102
6238
  if (typeof value !== "string" || !value.trim() || value.length > max)
@@ -6430,7 +6566,9 @@ function historyWork(records, rows) {
6430
6566
  } else if ("turnId" in record2 && typeof record2.turnId === "string") {
6431
6567
  const turn = turns.get(record2.turnId);
6432
6568
  if (!turn) continue;
6433
- 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") {
6434
6572
  turn.status = "paused";
6435
6573
  turn.reason = "paused";
6436
6574
  } else if (record2.type === "turn_resuming") {
@@ -6929,6 +7067,39 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
6929
7067
  if (currentPal) return listPalConversations(cwd, currentPal.id);
6930
7068
  return conversationRows(state, await listRecent(state, 100));
6931
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"),
6932
7103
  "namzu/conversations/archived": /* @__PURE__ */ __name(async (params = {}) => {
6933
7104
  if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).length > 0)
6934
7105
  throw new Error("Invalid archived conversations request.");
@@ -7160,6 +7331,30 @@ function createDesktopHostExtensions(runtime, directory, publishedSessionCwd, re
7160
7331
  if (!isTrusted(cwd)) return null;
7161
7332
  return projectGit(cwd);
7162
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"),
7163
7358
  "namzu/project/pr": /* @__PURE__ */ __name(async (params = {}) => {
7164
7359
  if (!params || typeof params !== "object" || Array.isArray(params) || Object.keys(params).length > 0)
7165
7360
  throw new Error("Invalid project pull request request.");
@@ -7719,6 +7914,14 @@ var DEFAULT_RUNTIME_DEPS = {
7719
7914
  };
7720
7915
  function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeOptions = {}) {
7721
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");
7722
7925
  const liveInputs = /* @__PURE__ */ new Map();
7723
7926
  const constructing = /* @__PURE__ */ new Map();
7724
7927
  const selections = /* @__PURE__ */ new Map();
@@ -7923,10 +8126,19 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
7923
8126
  throw new Error(hint);
7924
8127
  }
7925
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
+ );
7926
8137
  const failure = candidate.mcpFailed.map((entry) => `tool server "${entry.name}" is not available: ${entry.reason}`).join("\n");
7927
8138
  await closeCandidate();
7928
8139
  throw new Error(failure);
7929
8140
  }
8141
+ mcpFailures.delete(mcpKey(cwd));
7930
8142
  for (const [name, enabled] of pluginOverrides.get(sessionId) ?? []) {
7931
8143
  if (!candidate.plugins?.list().some((plugin) => plugin.name === name)) {
7932
8144
  throw new Error(
@@ -8537,6 +8749,16 @@ function createCliAcpRuntime(bootstrapCtx, deps = DEFAULT_RUNTIME_DEPS, runtimeO
8537
8749
  )
8538
8750
  });
8539
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"),
8540
8762
  setPluginEnabled: /* @__PURE__ */ __name(async (sessionId, name, enabled, cwd) => {
8541
8763
  if (!isEntityId(sessionId, "session") || typeof name !== "string" || !name.trim() || name.length > 400 || typeof enabled !== "boolean")
8542
8764
  throw new Error("Invalid plugin choice.");
@@ -8793,10 +9015,11 @@ __name(closeAcpResources, "closeAcpResources");
8793
9015
  async function runAcpCommand(ctx, desktop = false) {
8794
9016
  const transport = new ServerStdioTransport();
8795
9017
  let announcingUsage = true;
9018
+ const announce = /* @__PURE__ */ __name((method, params) => {
9019
+ if (announcingUsage) void transport.send({ jsonrpc: "2.0", method, params });
9020
+ }, "announce");
8796
9021
  const usageFeed = desktop ? createUsageFeed({
8797
- notify: /* @__PURE__ */ __name((method, params) => {
8798
- if (announcingUsage) void transport.send({ jsonrpc: "2.0", method, params });
8799
- }, "notify"),
9022
+ notify: announce,
8800
9023
  now: /* @__PURE__ */ __name(() => Date.now(), "now"),
8801
9024
  schedule: /* @__PURE__ */ __name((run, ms) => {
8802
9025
  const timer = setTimeout(run, ms);
@@ -8807,7 +9030,12 @@ async function runAcpCommand(ctx, desktop = false) {
8807
9030
  const runtime = withCliHarnesses(
8808
9031
  createCliAcpRuntime(ctx, DEFAULT_RUNTIME_DEPS, {
8809
9032
  computerUse: desktop,
8810
- ...usageFeed ? { observeEvent: /* @__PURE__ */ __name((id2, event) => usageFeed.observe(id2, event), "observeEvent") } : {}
9033
+ ...usageFeed ? {
9034
+ observeEvent: /* @__PURE__ */ __name((id2, event) => {
9035
+ usageFeed.observe(id2, event);
9036
+ announceOutcome(id2, event, announce);
9037
+ }, "observeEvent")
9038
+ } : {}
8811
9039
  }),
8812
9040
  process.cwd()
8813
9041
  );
@@ -8894,4 +9122,4 @@ export {
8894
9122
  resolveAcpSession,
8895
9123
  runAcpCommand
8896
9124
  };
8897
- //# sourceMappingURL=acp-GX5C46FS.js.map
9125
+ //# sourceMappingURL=acp-PFKCDYRZ.js.map