@namzu/cli 62.0.1 → 62.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 (496) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/chunks/{acp-XDHKC3S3.js → acp-6CGBHCQA.js} +144 -142
  4. package/dist/chunks/acp-6CGBHCQA.js.map +6 -0
  5. package/dist/chunks/{activity-command-IPUTIWSY.js → activity-command-LBFSBUTO.js} +15 -15
  6. package/dist/chunks/{add-V25Q5HXG.js → add-QKYYI3YT.js} +34 -34
  7. package/dist/chunks/{agent-I7EPRW2H.js → agent-JIYXK5JR.js} +59 -59
  8. package/dist/chunks/agent-session-NMIKA55B.js +103 -0
  9. package/dist/chunks/{apply-at-exit-FR464TY4.js → apply-at-exit-7RHQBQPY.js} +7 -7
  10. package/dist/chunks/{archive-XXGELXD4.js → archive-J4ZUAJ2G.js} +13 -13
  11. package/dist/chunks/{auth-MPYY5JGI.js → auth-UJVEA47C.js} +13 -13
  12. package/dist/chunks/{bin-main-XOHYP3G4.js → bin-main-ZH7BZUOM.js} +9 -9
  13. package/dist/chunks/{binding-5GGFSURJ.js → binding-3PCEKVOO.js} +3 -3
  14. package/dist/chunks/{browser-KGFFFY3K.js → browser-A67ROZXW.js} +7 -7
  15. package/dist/chunks/{chat-HPKRZNH3.js → chat-UU23NM3Q.js} +18 -18
  16. package/dist/chunks/{chunk-Z5Y4B2YZ.js → chunk-224LDNU5.js} +3 -3
  17. package/dist/chunks/{chunk-WUS3BMCC.js → chunk-25VC6FKF.js} +3 -3
  18. package/dist/chunks/{chunk-L3VPXYCF.js → chunk-2AMVNSDK.js} +4 -4
  19. package/dist/chunks/{chunk-Y7HOTNZR.js → chunk-33U2WYBU.js} +96 -85
  20. package/dist/chunks/chunk-33U2WYBU.js.map +6 -0
  21. package/dist/chunks/{chunk-HIQPFIIA.js → chunk-35JUKJRN.js} +2 -2
  22. package/dist/chunks/{chunk-T6C246EO.js → chunk-37ZR2RAN.js} +61 -13
  23. package/dist/chunks/chunk-37ZR2RAN.js.map +6 -0
  24. package/dist/chunks/{chunk-MAYUNNCO.js → chunk-3FYZVHC5.js} +6 -6
  25. package/dist/chunks/{chunk-3R2WLJTS.js → chunk-3L5ICOUV.js} +3 -3
  26. package/dist/chunks/{chunk-XFXDGALU.js → chunk-3LZDJBR4.js} +3 -3
  27. package/dist/chunks/{chunk-JIZVBGOC.js → chunk-3T2SSK3Z.js} +4 -4
  28. package/dist/chunks/{chunk-MHAHZX7U.js → chunk-46VWCTBU.js} +3 -3
  29. package/dist/chunks/{chunk-Q3XC7YNF.js → chunk-47HEFQUP.js} +2 -2
  30. package/dist/chunks/{chunk-BLAZEM4K.js → chunk-4EL7KEYZ.js} +3 -3
  31. package/dist/chunks/{chunk-RNWMX73V.js → chunk-4LHHK42J.js} +2 -2
  32. package/dist/chunks/{chunk-QR5CH34W.js → chunk-5CS5WG6N.js} +20 -20
  33. package/dist/chunks/{chunk-JAN5CCP6.js → chunk-5HRR6OQX.js} +7 -7
  34. package/dist/chunks/{chunk-R3PJX3K2.js → chunk-6MT5PLKV.js} +2 -2
  35. package/dist/chunks/{chunk-RY4DDC4G.js → chunk-6RDYLP52.js} +2 -2
  36. package/dist/chunks/{chunk-7L5SU6SJ.js → chunk-6W6ILBXE.js} +15 -9
  37. package/dist/chunks/chunk-6W6ILBXE.js.map +6 -0
  38. package/dist/chunks/{chunk-PM5FTMHH.js → chunk-72VCA33E.js} +2 -2
  39. package/dist/chunks/{chunk-PSWUXFIH.js → chunk-73QLEKJH.js} +6 -6
  40. package/dist/chunks/{chunk-MHJU6VYG.js → chunk-7BZZGFKW.js} +4 -4
  41. package/dist/chunks/{chunk-PD3HXBQJ.js → chunk-7ENFV3XO.js} +2 -2
  42. package/dist/chunks/{chunk-5CZ4LVMK.js → chunk-7P4QN2RO.js} +3 -3
  43. package/dist/chunks/{chunk-I3O2GYYO.js → chunk-7WU6QNGO.js} +2 -2
  44. package/dist/chunks/{chunk-2IK7T634.js → chunk-7ZEX6QP7.js} +3 -3
  45. package/dist/chunks/{chunk-Q3JPM2YR.js → chunk-AD7Z5UEB.js} +2 -2
  46. package/dist/chunks/{chunk-NZPMAK4R.js → chunk-AHFKN3F5.js} +2 -2
  47. package/dist/chunks/{chunk-4UX36WUG.js → chunk-AV3WM4TM.js} +17 -7
  48. package/dist/chunks/chunk-AV3WM4TM.js.map +6 -0
  49. package/dist/chunks/{chunk-ES5JVNIN.js → chunk-BXO7FXUF.js} +2 -2
  50. package/dist/chunks/{chunk-Z3334TMV.js → chunk-C56SXFLU.js} +10 -10
  51. package/dist/chunks/{chunk-F3DXPL7W.js → chunk-CN4W3FVM.js} +5 -5
  52. package/dist/chunks/{chunk-FPVI455T.js → chunk-CNTMRBQT.js} +2 -2
  53. package/dist/chunks/{chunk-VR26KRXW.js → chunk-DCNCIL5A.js} +4 -4
  54. package/dist/chunks/{chunk-FRID6OTI.js → chunk-DHRN4HVT.js} +6 -6
  55. package/dist/chunks/{chunk-ZF3PIJU3.js → chunk-E2LKNISN.js} +3 -3
  56. package/dist/chunks/{chunk-GI2HAEIZ.js → chunk-E6BMB5D4.js} +3 -3
  57. package/dist/chunks/{chunk-VRZQ35XP.js → chunk-EE4ROHCL.js} +5 -5
  58. package/dist/chunks/{chunk-X53XISBP.js → chunk-ENKSNZTO.js} +11 -3
  59. package/dist/chunks/{chunk-X53XISBP.js.map → chunk-ENKSNZTO.js.map} +1 -1
  60. package/dist/chunks/{chunk-DCGBINKP.js → chunk-EV7PYTOP.js} +2 -2
  61. package/dist/chunks/{chunk-5ZPOPPZS.js → chunk-FHR5FWGS.js} +4 -4
  62. package/dist/chunks/{chunk-KXT5I2IA.js → chunk-FPKL3N3J.js} +3 -3
  63. package/dist/chunks/{chunk-OFATBCW3.js → chunk-FSY26KLI.js} +3 -3
  64. package/dist/chunks/{chunk-RFW54PAJ.js → chunk-G3R447P4.js} +4 -4
  65. package/dist/chunks/{chunk-WD362LUZ.js → chunk-GPYNBNZV.js} +2 -2
  66. package/dist/chunks/{chunk-W2FQ5ZYB.js → chunk-GQU2MHNZ.js} +8 -8
  67. package/dist/chunks/{chunk-YCKZCLQS.js → chunk-H2FQ4QLS.js} +6 -6
  68. package/dist/chunks/{chunk-GQGUPWXT.js → chunk-H3763MSH.js} +3 -3
  69. package/dist/chunks/{chunk-F4VM5RP6.js → chunk-IWPDMUHJ.js} +2 -2
  70. package/dist/chunks/{chunk-UYEYPKTN.js → chunk-IX4KSPGQ.js} +5 -5
  71. package/dist/chunks/{chunk-BKVZRD7Z.js → chunk-J35W6BKJ.js} +2 -2
  72. package/dist/chunks/{chunk-6SQX7MYY.js → chunk-J3BP3W2N.js} +2 -2
  73. package/dist/chunks/{chunk-6VJLJOXM.js → chunk-J6XAYUON.js} +3 -3
  74. package/dist/chunks/{chunk-HHMZIAE7.js → chunk-JWZLFRII.js} +2 -2
  75. package/dist/chunks/{chunk-KQV475J4.js → chunk-K3PXRK3Z.js} +8 -8
  76. package/dist/chunks/{chunk-S7LDCBOF.js → chunk-K6M4OTHF.js} +3 -3
  77. package/dist/chunks/{chunk-ZPWHSJZL.js → chunk-KCEVJCGE.js} +11 -11
  78. package/dist/chunks/{chunk-YFH6PPLO.js → chunk-KID2I7VD.js} +2 -2
  79. package/dist/chunks/{chunk-MB5EOUEL.js → chunk-KK6CWJFZ.js} +2 -2
  80. package/dist/chunks/{chunk-NRIXMFMF.js → chunk-KKFKXDT4.js} +3 -3
  81. package/dist/chunks/{chunk-AVCIXXYB.js → chunk-KXGVJ55A.js} +5 -5
  82. package/dist/chunks/{chunk-3H4L2VND.js → chunk-L4QIJVNX.js} +4 -4
  83. package/dist/chunks/{chunk-HWYK5R5V.js → chunk-LAU4ESKV.js} +5 -4
  84. package/dist/chunks/chunk-LAU4ESKV.js.map +6 -0
  85. package/dist/chunks/{chunk-SIFGFAJK.js → chunk-LIX2TWWW.js} +64 -798
  86. package/dist/chunks/chunk-LIX2TWWW.js.map +6 -0
  87. package/dist/chunks/{chunk-FHFVXJYD.js → chunk-LJWCYIQV.js} +10 -10
  88. package/dist/chunks/{chunk-RJNQRL5C.js → chunk-LO7LBC5T.js} +2 -2
  89. package/dist/chunks/{chunk-FLSWKVLP.js → chunk-LPYA4GW7.js} +16 -16
  90. package/dist/chunks/{chunk-Y7GNAKOV.js → chunk-LUH7N5AG.js} +3 -3
  91. package/dist/chunks/{chunk-ZM5E5GJM.js → chunk-LWBPCNGV.js} +2 -2
  92. package/dist/chunks/{chunk-43GB5MUE.js → chunk-LYTU6DQ7.js} +2 -2
  93. package/dist/chunks/chunk-M3Z7V3DJ.js +568 -0
  94. package/dist/chunks/chunk-M3Z7V3DJ.js.map +6 -0
  95. package/dist/chunks/{chunk-WZPEJ7TC.js → chunk-MAFRPAQY.js} +13 -518
  96. package/dist/chunks/chunk-MAFRPAQY.js.map +6 -0
  97. package/dist/chunks/{chunk-5P3DXU4Y.js → chunk-MGU27EKU.js} +2 -2
  98. package/dist/chunks/{chunk-5CN3PILD.js → chunk-MNSSDI5Y.js} +3 -3
  99. package/dist/chunks/{chunk-DVIFMGRP.js → chunk-MYSCS3LD.js} +2 -2
  100. package/dist/chunks/{chunk-OT2R6PIV.js → chunk-MZWFJMIM.js} +5 -5
  101. package/dist/chunks/{chunk-HNLFFNCE.js → chunk-N7BCFEJJ.js} +2 -2
  102. package/dist/chunks/{chunk-NNFYDBI7.js → chunk-NE2J7UOC.js} +2 -2
  103. package/dist/chunks/{chunk-6NNRR7U5.js → chunk-NEAH7HVP.js} +26 -5
  104. package/dist/chunks/chunk-NEAH7HVP.js.map +6 -0
  105. package/dist/chunks/{chunk-HOPL46NH.js → chunk-NGGXYIAN.js} +4 -4
  106. package/dist/chunks/{chunk-ALONJM6J.js → chunk-NV3AX3OX.js} +4 -4
  107. package/dist/chunks/{chunk-JCXGOCDK.js → chunk-O4WK5FUN.js} +88 -60
  108. package/dist/chunks/chunk-O4WK5FUN.js.map +6 -0
  109. package/dist/chunks/{chunk-W2OTZAXB.js → chunk-ODPKECHM.js} +3 -3
  110. package/dist/chunks/{chunk-YC4FEFC6.js → chunk-OFUZHNUY.js} +5 -5
  111. package/dist/chunks/{chunk-VZTSMFNP.js → chunk-OICFYPUQ.js} +44 -44
  112. package/dist/chunks/{chunk-6LFX4W7C.js → chunk-ON7XQGDA.js} +4 -4
  113. package/dist/chunks/{chunk-HNR6STBM.js → chunk-ONKMPBPP.js} +2 -2
  114. package/dist/chunks/{chunk-CFVWDSLP.js → chunk-OT6WAUFD.js} +8 -8
  115. package/dist/chunks/{chunk-ID7UHZRL.js → chunk-OTVNG2RH.js} +3 -3
  116. package/dist/chunks/{chunk-5RAKWCRN.js → chunk-P72VIXPI.js} +2 -2
  117. package/dist/chunks/{chunk-I32DOGZZ.js → chunk-PH2VOYXI.js} +10 -9
  118. package/dist/chunks/chunk-PH2VOYXI.js.map +6 -0
  119. package/dist/chunks/{chunk-ODQMMH6C.js → chunk-PPXMVZZM.js} +3 -3
  120. package/dist/chunks/{chunk-IYTFRC6Q.js → chunk-PR3MVT6X.js} +6 -6
  121. package/dist/chunks/{chunk-IYTFRC6Q.js.map → chunk-PR3MVT6X.js.map} +1 -1
  122. package/dist/chunks/{chunk-54PRSLXD.js → chunk-Q3ZCXNLT.js} +4 -4
  123. package/dist/chunks/{chunk-6VAF56WU.js → chunk-Q4LY4V73.js} +5 -5
  124. package/dist/chunks/{chunk-67YA6NCA.js → chunk-QH55BL6G.js} +3 -3
  125. package/dist/chunks/{chunk-2XFMPGZR.js → chunk-QK3MI3SB.js} +49 -19
  126. package/dist/chunks/chunk-QK3MI3SB.js.map +6 -0
  127. package/dist/chunks/{chunk-4L67MGBK.js → chunk-QS3W6PHW.js} +7 -7
  128. package/dist/chunks/{chunk-OAJIF4BZ.js → chunk-RAD42QX6.js} +2 -2
  129. package/dist/chunks/{chunk-GI7I4Z3C.js → chunk-RF6XIV7O.js} +5 -5
  130. package/dist/chunks/{chunk-2DMP56LU.js → chunk-RLT3CQPF.js} +4 -4
  131. package/dist/chunks/{chunk-LJSMDUFY.js → chunk-S3MI73RJ.js} +3 -3
  132. package/dist/chunks/{chunk-DD4YRQRY.js → chunk-S4O2YFPC.js} +13 -13
  133. package/dist/chunks/{chunk-J72ATHQJ.js → chunk-S5XNNB36.js} +1313 -644
  134. package/dist/chunks/chunk-S5XNNB36.js.map +6 -0
  135. package/dist/chunks/{chunk-PPDREHTL.js → chunk-SIJ5UTXM.js} +3 -3
  136. package/dist/chunks/chunk-SJIDADHD.js +800 -0
  137. package/dist/chunks/chunk-SJIDADHD.js.map +6 -0
  138. package/dist/chunks/{chunk-NP7ZN2MJ.js → chunk-SOFHWWJH.js} +2 -2
  139. package/dist/chunks/{chunk-PPEFN2RU.js → chunk-SOUXHV54.js} +2 -2
  140. package/dist/chunks/{chunk-E7SV3COW.js → chunk-SRY4THD4.js} +9 -9
  141. package/dist/chunks/{chunk-2Y3AG5SV.js → chunk-ST23JVRU.js} +5 -5
  142. package/dist/chunks/{chunk-GHYEVNIG.js → chunk-SUR4OMA6.js} +9 -9
  143. package/dist/chunks/{chunk-DV6W7RWZ.js → chunk-SVQV6RXR.js} +3 -3
  144. package/dist/chunks/{chunk-ECWJCDCK.js → chunk-T7LGBJ3Y.js} +2 -2
  145. package/dist/chunks/{chunk-SXLTOS4V.js → chunk-T7WRPQ65.js} +2 -2
  146. package/dist/chunks/{chunk-WUGXLX6O.js → chunk-TIXLIDHF.js} +2 -2
  147. package/dist/chunks/{chunk-GL74BFJI.js → chunk-TJVM2KTD.js} +9 -9
  148. package/dist/chunks/{chunk-WAHSZG2X.js → chunk-TQGVEISD.js} +2 -2
  149. package/dist/chunks/{chunk-HJ7F7C73.js → chunk-UI7QTTM2.js} +6 -6
  150. package/dist/chunks/{chunk-GNTKC72Z.js → chunk-UM3XWJVJ.js} +2 -2
  151. package/dist/chunks/{chunk-WMFEVIDC.js → chunk-UOX7WH3J.js} +3 -3
  152. package/dist/chunks/{chunk-IWVZTMTO.js → chunk-UP77FF2W.js} +3 -3
  153. package/dist/chunks/{chunk-FEUHUXWS.js → chunk-VISMRN4J.js} +4 -4
  154. package/dist/chunks/{chunk-YLAWGDZY.js → chunk-VPWFFR5J.js} +2 -2
  155. package/dist/chunks/{chunk-TECFNZPY.js → chunk-VQN7GC3B.js} +12 -12
  156. package/dist/chunks/{chunk-C3JE4IVH.js → chunk-W7XW3NXA.js} +4 -4
  157. package/dist/chunks/{chunk-2PAS45UY.js → chunk-WSB2MCTI.js} +2 -2
  158. package/dist/chunks/{chunk-K3BICM3T.js → chunk-WSPWJYLQ.js} +7 -7
  159. package/dist/chunks/{chunk-D6D5D6UJ.js → chunk-XGEW2R3P.js} +2 -2
  160. package/dist/chunks/{chunk-JF3HXJFC.js → chunk-XVKQQTVV.js} +2 -2
  161. package/dist/chunks/{chunk-WDMO2XAW.js → chunk-XXXJOYTQ.js} +2 -2
  162. package/dist/chunks/{chunk-LCF3ZVDZ.js → chunk-Y24UJ26G.js} +3 -3
  163. package/dist/chunks/{chunk-MD6OIFFN.js → chunk-YFIKYLOB.js} +9 -9
  164. package/dist/chunks/{chunk-RFCS6LFH.js → chunk-YXQG466V.js} +3 -3
  165. package/dist/chunks/{chunk-L55M6CYI.js → chunk-ZACF6CVM.js} +2 -2
  166. package/dist/chunks/{cli-runtime-O6RCYI3Y.js → cli-runtime-RAHU2FF7.js} +24 -24
  167. package/dist/chunks/{commands-E5ZM2I2Z.js → commands-252QNZKK.js} +6 -6
  168. package/dist/chunks/{config-EBPES6V6.js → config-CX6PRTEY.js} +14 -14
  169. package/dist/chunks/{cost-QRWAQ3XB.js → cost-L3RROPK6.js} +5 -5
  170. package/dist/chunks/{crash-report-ANVLQYLO.js → crash-report-NND4WWJA.js} +6 -6
  171. package/dist/chunks/{desktop-host-schedule-tool-RG4EV45N.js → desktop-host-schedule-tool-IKWEHI4H.js} +33 -33
  172. package/dist/chunks/{dist-N32BP5B4.js → dist-2MHNJVOM.js} +14 -2
  173. package/dist/chunks/{dist-ROGRBORV.js → dist-3DMPFVGW.js} +3 -3
  174. package/dist/chunks/{dist-FVTPQX57.js → dist-7TMA3NQ7.js} +2 -2
  175. package/dist/chunks/{dist-TEJDPUVZ.js → dist-DFKDXC5Q.js} +2 -2
  176. package/dist/chunks/{dist-EKAXB5R5.js → dist-MFWZVDSA.js} +2 -2
  177. package/dist/chunks/{dist-CM4LL25P.js → dist-TH2HM2GH.js} +2 -2
  178. package/dist/chunks/{dist-Y3CNYMQK.js → dist-UAUXP4UC.js} +2 -2
  179. package/dist/chunks/{dist-ACZRXAK4.js → dist-YXOQEPCZ.js} +2 -2
  180. package/dist/chunks/{doctor-Y6STEUN5.js → doctor-O5OZR6YG.js} +49 -46
  181. package/dist/chunks/{drain-H6TQDCQI.js → drain-LUUO4FI3.js} +22 -22
  182. package/dist/chunks/{entry-4TMEDNAU.js → entry-XPFYPIDS.js} +6 -6
  183. package/dist/chunks/{eval-6O2RPJ35.js → eval-V4HUXXC2.js} +18 -12
  184. package/dist/chunks/{eval-6O2RPJ35.js.map → eval-V4HUXXC2.js.map} +1 -1
  185. package/dist/chunks/{exec-W5QZD5IX.js → exec-QYZKP6RS.js} +72 -54
  186. package/dist/chunks/exec-QYZKP6RS.js.map +6 -0
  187. package/dist/chunks/{extension-7PBXYICA.js → extension-AVJ2LV2G.js} +6 -6
  188. package/dist/chunks/{feed-FQKHFH3J.js → feed-UKN7XNCC.js} +4 -4
  189. package/dist/chunks/{home-5EQVZ7PU.js → home-A7434CUG.js} +3 -3
  190. package/dist/chunks/{homes-IIDNJKRK.js → homes-U4IALPDB.js} +5 -5
  191. package/dist/chunks/{hooks-NDWCMIVN.js → hooks-TQ7KEIX5.js} +24 -24
  192. package/dist/chunks/{hooks-report-CAWNXYJS.js → hooks-report-R6KBKZOI.js} +20 -20
  193. package/dist/chunks/{host-HGZEZXLB.js → host-S2OSQNIF.js} +12 -12
  194. package/dist/chunks/{host-queries-DOXYXFOD.js → host-queries-VKIZCSD3.js} +18 -18
  195. package/dist/chunks/{installed-list-OJNSGNIT.js → installed-list-VGP7FMFB.js} +4 -4
  196. package/dist/chunks/{launch-NVHWNZSA.js → launch-LWAQXYIA.js} +29 -29
  197. package/dist/chunks/{learn-FLJL53VN.js → learn-GIKQBJN5.js} +18 -18
  198. package/dist/chunks/{learn-builtin-XJLP6EZ3.js → learn-builtin-HOFMWHQP.js} +21 -21
  199. package/dist/chunks/{lifecycle-I5PHIQPV.js → lifecycle-4OBW7B42.js} +39 -39
  200. package/dist/chunks/{list-BAQT6SDH.js → list-O2I3ECME.js} +20 -20
  201. package/dist/chunks/{live-UXV3V4JM.js → live-DCRF5F6P.js} +49 -45
  202. package/dist/chunks/{load-WSB7ECXC.js → load-LHCKRZFB.js} +11 -11
  203. package/dist/chunks/{logs-WN65RRIX.js → logs-UMD7HBUO.js} +4 -4
  204. package/dist/chunks/{mcp-D3BUCLEX.js → mcp-35NTHODS.js} +27 -27
  205. package/dist/chunks/{mcp-serve-QRXGVK26.js → mcp-serve-PCEC55MI.js} +19 -19
  206. package/dist/chunks/{message-command-A4AEJCMT.js → message-command-34BVXT5R.js} +65 -65
  207. package/dist/chunks/{open-AOHMCTVP.js → open-DK276PG4.js} +8 -8
  208. package/dist/chunks/{operator-tools-LHXXEP4G.js → operator-tools-RG247DOI.js} +16 -16
  209. package/dist/chunks/{output-schema-QHSTBSFC.js → output-schema-WBFGDY7D.js} +3 -3
  210. package/dist/chunks/{pal-NI3NH6SX.js → pal-OBXTNMGX.js} +16 -16
  211. package/dist/chunks/{peers-3QLWWGWY.js → peers-RBR7QYPG.js} +9 -9
  212. package/dist/chunks/{peers-B5TCECUP.js → peers-ZSKWVLA4.js} +21 -21
  213. package/dist/chunks/{plugin-GUNR5UED.js → plugin-PBIAJSYH.js} +52 -51
  214. package/dist/chunks/plugin-PBIAJSYH.js.map +6 -0
  215. package/dist/chunks/{providers-A6Q444EB.js → providers-EW4LE5AZ.js} +11 -11
  216. package/dist/chunks/{providers-G2UTRKAK.js → providers-V4MMZ7X5.js} +18 -18
  217. package/dist/chunks/{pty-M4K6JLLS.js → pty-XV7IOHGX.js} +3 -3
  218. package/dist/chunks/resume-GA7INROY.js +27 -0
  219. package/dist/chunks/{resume-command-JUKPZVVL.js → resume-command-VABS2KGI.js} +4 -4
  220. package/dist/chunks/{running-ZPS6OB4K.js → running-LDQLXUGW.js} +4 -4
  221. package/dist/chunks/{schedule-PCKX74XC.js → schedule-L5AAS4JQ.js} +12 -12
  222. package/dist/chunks/{send-6R5NCGY5.js → send-2KB5VRUT.js} +20 -20
  223. package/dist/chunks/send-person-EFHYG2GX.js +34 -0
  224. package/dist/chunks/{servers-F23WQJDI.js → servers-WIKRFBKU.js} +8 -8
  225. package/dist/chunks/{service-NI642AJQ.js → service-LXQA5RI7.js} +40 -40
  226. package/dist/chunks/{session-options-CRFJNFLM.js → session-options-2LDJWGYZ.js} +5 -5
  227. package/dist/chunks/{setting-cli-QEUWWR2W.js → setting-cli-6T6H6TJ7.js} +14 -14
  228. package/dist/chunks/{skills-VDOUBAYU.js → skills-YAIICRGB.js} +28 -28
  229. package/dist/chunks/{source-deliveries-VWFHCFRQ.js → source-deliveries-VB4F2DV5.js} +18 -18
  230. package/dist/chunks/{start-check-K6BTRM72.js → start-check-TE3CE7NZ.js} +2 -2
  231. package/dist/chunks/{startup-failure-WREVDPC2.js → startup-failure-PBWJF4DV.js} +2 -2
  232. package/dist/chunks/{state-LJR3IEAF.js → state-UGZ334GT.js} +21 -21
  233. package/dist/chunks/{store-T7M3ICIS.js → store-3REZKYH5.js} +9 -9
  234. package/dist/chunks/{store-U5LOY365.js → store-75XB557Z.js} +13 -13
  235. package/dist/chunks/{store-C7SEV4YB.js → store-RV6QGLU2.js} +4 -4
  236. package/dist/chunks/{store-L7CJVHD7.js → store-VQ5OTKXT.js} +3 -3
  237. package/dist/chunks/{tui-5YVBMPEE.js → tui-IEPKJA46.js} +114 -108
  238. package/dist/chunks/tui-IEPKJA46.js.map +6 -0
  239. package/dist/chunks/{update-RO3UZBFM.js → update-NPWMEWAL.js} +8 -8
  240. package/dist/chunks/{watch-4CX3QMDL.js → watch-SI7TFFVA.js} +112 -111
  241. package/dist/chunks/watch-SI7TFFVA.js.map +6 -0
  242. package/dist/chunks/{windows-home-WVGVXCRL.js → windows-home-4XSPGUOR.js} +5 -5
  243. package/dist/chunks/{workspaces-B46MHVPJ.js → workspaces-UB6NF7LY.js} +17 -17
  244. package/dist/chunks/{worktree-57C3ECED.js → worktree-QCSW5VQC.js} +29 -29
  245. package/dist/commands/eval.d.ts.map +1 -1
  246. package/dist/commands/exec.d.ts.map +1 -1
  247. package/dist/config/hook-common-shape.d.ts.map +1 -1
  248. package/dist/config/hooks-report.d.ts +1 -1
  249. package/dist/config/hooks-report.d.ts.map +1 -1
  250. package/dist/config/load.d.ts.map +1 -1
  251. package/dist/index.js +49 -46
  252. package/dist/integrations/mcp/servers.d.ts +13 -0
  253. package/dist/integrations/mcp/servers.d.ts.map +1 -1
  254. package/dist/integrations/plugins/hook-entries.d.ts.map +1 -1
  255. package/dist/integrations/plugins/remote-marketplace.d.ts +12 -0
  256. package/dist/integrations/plugins/remote-marketplace.d.ts.map +1 -1
  257. package/dist/integrations/plugins/runtime.d.ts +1 -1
  258. package/dist/integrations/plugins/runtime.d.ts.map +1 -1
  259. package/dist/integrations/plugins/surface.d.ts +2 -2
  260. package/dist/integrations/plugins/surface.d.ts.map +1 -1
  261. package/dist/integrations/sessions/store.d.ts.map +1 -1
  262. package/dist/integrations/state/project-lookup.d.ts.map +1 -1
  263. package/dist/integrations/subagents/agent-hooks.d.ts.map +1 -1
  264. package/dist/integrations/subagents/worktree-driver.d.ts +11 -0
  265. package/dist/integrations/subagents/worktree-driver.d.ts.map +1 -1
  266. package/dist/integrations/trust/folder-grants.d.ts.map +1 -1
  267. package/dist/integrations/worktrees/managed.d.ts +35 -2
  268. package/dist/integrations/worktrees/managed.d.ts.map +1 -1
  269. package/dist/sdk-peer.js +13 -1
  270. package/dist/skills/skill-hooks.d.ts.map +1 -1
  271. package/dist/tui/agent.d.ts.map +1 -1
  272. package/dist/tui/index.d.ts.map +1 -1
  273. package/dist/tui/slashCommands.d.ts.map +1 -1
  274. package/dist/tui/status-line/run-command.d.ts +5 -1
  275. package/dist/tui/status-line/run-command.d.ts.map +1 -1
  276. package/package.json +3 -3
  277. package/dist/chunks/acp-XDHKC3S3.js.map +0 -6
  278. package/dist/chunks/agent-session-KUU5HEMJ.js +0 -103
  279. package/dist/chunks/chunk-2XFMPGZR.js.map +0 -6
  280. package/dist/chunks/chunk-4UX36WUG.js.map +0 -6
  281. package/dist/chunks/chunk-6NNRR7U5.js.map +0 -6
  282. package/dist/chunks/chunk-7L5SU6SJ.js.map +0 -6
  283. package/dist/chunks/chunk-BBTPD3DU.js +0 -19
  284. package/dist/chunks/chunk-BBTPD3DU.js.map +0 -6
  285. package/dist/chunks/chunk-HWYK5R5V.js.map +0 -6
  286. package/dist/chunks/chunk-I32DOGZZ.js.map +0 -6
  287. package/dist/chunks/chunk-J72ATHQJ.js.map +0 -6
  288. package/dist/chunks/chunk-JCXGOCDK.js.map +0 -6
  289. package/dist/chunks/chunk-SIFGFAJK.js.map +0 -6
  290. package/dist/chunks/chunk-T6C246EO.js.map +0 -6
  291. package/dist/chunks/chunk-WZPEJ7TC.js.map +0 -6
  292. package/dist/chunks/chunk-Y7HOTNZR.js.map +0 -6
  293. package/dist/chunks/exec-W5QZD5IX.js.map +0 -6
  294. package/dist/chunks/plugin-GUNR5UED.js.map +0 -6
  295. package/dist/chunks/resume-RXOBUAEA.js +0 -27
  296. package/dist/chunks/send-person-I7B6Y2V3.js +0 -34
  297. package/dist/chunks/tui-5YVBMPEE.js.map +0 -6
  298. package/dist/chunks/watch-4CX3QMDL.js.map +0 -6
  299. /package/dist/chunks/{activity-command-IPUTIWSY.js.map → activity-command-LBFSBUTO.js.map} +0 -0
  300. /package/dist/chunks/{add-V25Q5HXG.js.map → add-QKYYI3YT.js.map} +0 -0
  301. /package/dist/chunks/{agent-I7EPRW2H.js.map → agent-JIYXK5JR.js.map} +0 -0
  302. /package/dist/chunks/{agent-session-KUU5HEMJ.js.map → agent-session-NMIKA55B.js.map} +0 -0
  303. /package/dist/chunks/{apply-at-exit-FR464TY4.js.map → apply-at-exit-7RHQBQPY.js.map} +0 -0
  304. /package/dist/chunks/{archive-XXGELXD4.js.map → archive-J4ZUAJ2G.js.map} +0 -0
  305. /package/dist/chunks/{auth-MPYY5JGI.js.map → auth-UJVEA47C.js.map} +0 -0
  306. /package/dist/chunks/{bin-main-XOHYP3G4.js.map → bin-main-ZH7BZUOM.js.map} +0 -0
  307. /package/dist/chunks/{binding-5GGFSURJ.js.map → binding-3PCEKVOO.js.map} +0 -0
  308. /package/dist/chunks/{browser-KGFFFY3K.js.map → browser-A67ROZXW.js.map} +0 -0
  309. /package/dist/chunks/{chat-HPKRZNH3.js.map → chat-UU23NM3Q.js.map} +0 -0
  310. /package/dist/chunks/{chunk-Z5Y4B2YZ.js.map → chunk-224LDNU5.js.map} +0 -0
  311. /package/dist/chunks/{chunk-WUS3BMCC.js.map → chunk-25VC6FKF.js.map} +0 -0
  312. /package/dist/chunks/{chunk-L3VPXYCF.js.map → chunk-2AMVNSDK.js.map} +0 -0
  313. /package/dist/chunks/{chunk-HIQPFIIA.js.map → chunk-35JUKJRN.js.map} +0 -0
  314. /package/dist/chunks/{chunk-MAYUNNCO.js.map → chunk-3FYZVHC5.js.map} +0 -0
  315. /package/dist/chunks/{chunk-3R2WLJTS.js.map → chunk-3L5ICOUV.js.map} +0 -0
  316. /package/dist/chunks/{chunk-XFXDGALU.js.map → chunk-3LZDJBR4.js.map} +0 -0
  317. /package/dist/chunks/{chunk-JIZVBGOC.js.map → chunk-3T2SSK3Z.js.map} +0 -0
  318. /package/dist/chunks/{chunk-MHAHZX7U.js.map → chunk-46VWCTBU.js.map} +0 -0
  319. /package/dist/chunks/{chunk-Q3XC7YNF.js.map → chunk-47HEFQUP.js.map} +0 -0
  320. /package/dist/chunks/{chunk-BLAZEM4K.js.map → chunk-4EL7KEYZ.js.map} +0 -0
  321. /package/dist/chunks/{chunk-RNWMX73V.js.map → chunk-4LHHK42J.js.map} +0 -0
  322. /package/dist/chunks/{chunk-QR5CH34W.js.map → chunk-5CS5WG6N.js.map} +0 -0
  323. /package/dist/chunks/{chunk-JAN5CCP6.js.map → chunk-5HRR6OQX.js.map} +0 -0
  324. /package/dist/chunks/{chunk-R3PJX3K2.js.map → chunk-6MT5PLKV.js.map} +0 -0
  325. /package/dist/chunks/{chunk-RY4DDC4G.js.map → chunk-6RDYLP52.js.map} +0 -0
  326. /package/dist/chunks/{chunk-PM5FTMHH.js.map → chunk-72VCA33E.js.map} +0 -0
  327. /package/dist/chunks/{chunk-PSWUXFIH.js.map → chunk-73QLEKJH.js.map} +0 -0
  328. /package/dist/chunks/{chunk-MHJU6VYG.js.map → chunk-7BZZGFKW.js.map} +0 -0
  329. /package/dist/chunks/{chunk-PD3HXBQJ.js.map → chunk-7ENFV3XO.js.map} +0 -0
  330. /package/dist/chunks/{chunk-5CZ4LVMK.js.map → chunk-7P4QN2RO.js.map} +0 -0
  331. /package/dist/chunks/{chunk-I3O2GYYO.js.map → chunk-7WU6QNGO.js.map} +0 -0
  332. /package/dist/chunks/{chunk-2IK7T634.js.map → chunk-7ZEX6QP7.js.map} +0 -0
  333. /package/dist/chunks/{chunk-Q3JPM2YR.js.map → chunk-AD7Z5UEB.js.map} +0 -0
  334. /package/dist/chunks/{chunk-NZPMAK4R.js.map → chunk-AHFKN3F5.js.map} +0 -0
  335. /package/dist/chunks/{chunk-ES5JVNIN.js.map → chunk-BXO7FXUF.js.map} +0 -0
  336. /package/dist/chunks/{chunk-Z3334TMV.js.map → chunk-C56SXFLU.js.map} +0 -0
  337. /package/dist/chunks/{chunk-F3DXPL7W.js.map → chunk-CN4W3FVM.js.map} +0 -0
  338. /package/dist/chunks/{chunk-FPVI455T.js.map → chunk-CNTMRBQT.js.map} +0 -0
  339. /package/dist/chunks/{chunk-VR26KRXW.js.map → chunk-DCNCIL5A.js.map} +0 -0
  340. /package/dist/chunks/{chunk-FRID6OTI.js.map → chunk-DHRN4HVT.js.map} +0 -0
  341. /package/dist/chunks/{chunk-ZF3PIJU3.js.map → chunk-E2LKNISN.js.map} +0 -0
  342. /package/dist/chunks/{chunk-GI2HAEIZ.js.map → chunk-E6BMB5D4.js.map} +0 -0
  343. /package/dist/chunks/{chunk-VRZQ35XP.js.map → chunk-EE4ROHCL.js.map} +0 -0
  344. /package/dist/chunks/{chunk-DCGBINKP.js.map → chunk-EV7PYTOP.js.map} +0 -0
  345. /package/dist/chunks/{chunk-5ZPOPPZS.js.map → chunk-FHR5FWGS.js.map} +0 -0
  346. /package/dist/chunks/{chunk-KXT5I2IA.js.map → chunk-FPKL3N3J.js.map} +0 -0
  347. /package/dist/chunks/{chunk-OFATBCW3.js.map → chunk-FSY26KLI.js.map} +0 -0
  348. /package/dist/chunks/{chunk-RFW54PAJ.js.map → chunk-G3R447P4.js.map} +0 -0
  349. /package/dist/chunks/{chunk-WD362LUZ.js.map → chunk-GPYNBNZV.js.map} +0 -0
  350. /package/dist/chunks/{chunk-W2FQ5ZYB.js.map → chunk-GQU2MHNZ.js.map} +0 -0
  351. /package/dist/chunks/{chunk-YCKZCLQS.js.map → chunk-H2FQ4QLS.js.map} +0 -0
  352. /package/dist/chunks/{chunk-GQGUPWXT.js.map → chunk-H3763MSH.js.map} +0 -0
  353. /package/dist/chunks/{chunk-F4VM5RP6.js.map → chunk-IWPDMUHJ.js.map} +0 -0
  354. /package/dist/chunks/{chunk-UYEYPKTN.js.map → chunk-IX4KSPGQ.js.map} +0 -0
  355. /package/dist/chunks/{chunk-BKVZRD7Z.js.map → chunk-J35W6BKJ.js.map} +0 -0
  356. /package/dist/chunks/{chunk-6SQX7MYY.js.map → chunk-J3BP3W2N.js.map} +0 -0
  357. /package/dist/chunks/{chunk-6VJLJOXM.js.map → chunk-J6XAYUON.js.map} +0 -0
  358. /package/dist/chunks/{chunk-HHMZIAE7.js.map → chunk-JWZLFRII.js.map} +0 -0
  359. /package/dist/chunks/{chunk-KQV475J4.js.map → chunk-K3PXRK3Z.js.map} +0 -0
  360. /package/dist/chunks/{chunk-S7LDCBOF.js.map → chunk-K6M4OTHF.js.map} +0 -0
  361. /package/dist/chunks/{chunk-ZPWHSJZL.js.map → chunk-KCEVJCGE.js.map} +0 -0
  362. /package/dist/chunks/{chunk-YFH6PPLO.js.map → chunk-KID2I7VD.js.map} +0 -0
  363. /package/dist/chunks/{chunk-MB5EOUEL.js.map → chunk-KK6CWJFZ.js.map} +0 -0
  364. /package/dist/chunks/{chunk-NRIXMFMF.js.map → chunk-KKFKXDT4.js.map} +0 -0
  365. /package/dist/chunks/{chunk-AVCIXXYB.js.map → chunk-KXGVJ55A.js.map} +0 -0
  366. /package/dist/chunks/{chunk-3H4L2VND.js.map → chunk-L4QIJVNX.js.map} +0 -0
  367. /package/dist/chunks/{chunk-FHFVXJYD.js.map → chunk-LJWCYIQV.js.map} +0 -0
  368. /package/dist/chunks/{chunk-RJNQRL5C.js.map → chunk-LO7LBC5T.js.map} +0 -0
  369. /package/dist/chunks/{chunk-FLSWKVLP.js.map → chunk-LPYA4GW7.js.map} +0 -0
  370. /package/dist/chunks/{chunk-Y7GNAKOV.js.map → chunk-LUH7N5AG.js.map} +0 -0
  371. /package/dist/chunks/{chunk-ZM5E5GJM.js.map → chunk-LWBPCNGV.js.map} +0 -0
  372. /package/dist/chunks/{chunk-43GB5MUE.js.map → chunk-LYTU6DQ7.js.map} +0 -0
  373. /package/dist/chunks/{chunk-5P3DXU4Y.js.map → chunk-MGU27EKU.js.map} +0 -0
  374. /package/dist/chunks/{chunk-5CN3PILD.js.map → chunk-MNSSDI5Y.js.map} +0 -0
  375. /package/dist/chunks/{chunk-DVIFMGRP.js.map → chunk-MYSCS3LD.js.map} +0 -0
  376. /package/dist/chunks/{chunk-OT2R6PIV.js.map → chunk-MZWFJMIM.js.map} +0 -0
  377. /package/dist/chunks/{chunk-HNLFFNCE.js.map → chunk-N7BCFEJJ.js.map} +0 -0
  378. /package/dist/chunks/{chunk-NNFYDBI7.js.map → chunk-NE2J7UOC.js.map} +0 -0
  379. /package/dist/chunks/{chunk-HOPL46NH.js.map → chunk-NGGXYIAN.js.map} +0 -0
  380. /package/dist/chunks/{chunk-ALONJM6J.js.map → chunk-NV3AX3OX.js.map} +0 -0
  381. /package/dist/chunks/{chunk-W2OTZAXB.js.map → chunk-ODPKECHM.js.map} +0 -0
  382. /package/dist/chunks/{chunk-YC4FEFC6.js.map → chunk-OFUZHNUY.js.map} +0 -0
  383. /package/dist/chunks/{chunk-VZTSMFNP.js.map → chunk-OICFYPUQ.js.map} +0 -0
  384. /package/dist/chunks/{chunk-6LFX4W7C.js.map → chunk-ON7XQGDA.js.map} +0 -0
  385. /package/dist/chunks/{chunk-HNR6STBM.js.map → chunk-ONKMPBPP.js.map} +0 -0
  386. /package/dist/chunks/{chunk-CFVWDSLP.js.map → chunk-OT6WAUFD.js.map} +0 -0
  387. /package/dist/chunks/{chunk-ID7UHZRL.js.map → chunk-OTVNG2RH.js.map} +0 -0
  388. /package/dist/chunks/{chunk-5RAKWCRN.js.map → chunk-P72VIXPI.js.map} +0 -0
  389. /package/dist/chunks/{chunk-ODQMMH6C.js.map → chunk-PPXMVZZM.js.map} +0 -0
  390. /package/dist/chunks/{chunk-54PRSLXD.js.map → chunk-Q3ZCXNLT.js.map} +0 -0
  391. /package/dist/chunks/{chunk-6VAF56WU.js.map → chunk-Q4LY4V73.js.map} +0 -0
  392. /package/dist/chunks/{chunk-67YA6NCA.js.map → chunk-QH55BL6G.js.map} +0 -0
  393. /package/dist/chunks/{chunk-4L67MGBK.js.map → chunk-QS3W6PHW.js.map} +0 -0
  394. /package/dist/chunks/{chunk-OAJIF4BZ.js.map → chunk-RAD42QX6.js.map} +0 -0
  395. /package/dist/chunks/{chunk-GI7I4Z3C.js.map → chunk-RF6XIV7O.js.map} +0 -0
  396. /package/dist/chunks/{chunk-2DMP56LU.js.map → chunk-RLT3CQPF.js.map} +0 -0
  397. /package/dist/chunks/{chunk-LJSMDUFY.js.map → chunk-S3MI73RJ.js.map} +0 -0
  398. /package/dist/chunks/{chunk-DD4YRQRY.js.map → chunk-S4O2YFPC.js.map} +0 -0
  399. /package/dist/chunks/{chunk-PPDREHTL.js.map → chunk-SIJ5UTXM.js.map} +0 -0
  400. /package/dist/chunks/{chunk-NP7ZN2MJ.js.map → chunk-SOFHWWJH.js.map} +0 -0
  401. /package/dist/chunks/{chunk-PPEFN2RU.js.map → chunk-SOUXHV54.js.map} +0 -0
  402. /package/dist/chunks/{chunk-E7SV3COW.js.map → chunk-SRY4THD4.js.map} +0 -0
  403. /package/dist/chunks/{chunk-2Y3AG5SV.js.map → chunk-ST23JVRU.js.map} +0 -0
  404. /package/dist/chunks/{chunk-GHYEVNIG.js.map → chunk-SUR4OMA6.js.map} +0 -0
  405. /package/dist/chunks/{chunk-DV6W7RWZ.js.map → chunk-SVQV6RXR.js.map} +0 -0
  406. /package/dist/chunks/{chunk-ECWJCDCK.js.map → chunk-T7LGBJ3Y.js.map} +0 -0
  407. /package/dist/chunks/{chunk-SXLTOS4V.js.map → chunk-T7WRPQ65.js.map} +0 -0
  408. /package/dist/chunks/{chunk-WUGXLX6O.js.map → chunk-TIXLIDHF.js.map} +0 -0
  409. /package/dist/chunks/{chunk-GL74BFJI.js.map → chunk-TJVM2KTD.js.map} +0 -0
  410. /package/dist/chunks/{chunk-WAHSZG2X.js.map → chunk-TQGVEISD.js.map} +0 -0
  411. /package/dist/chunks/{chunk-HJ7F7C73.js.map → chunk-UI7QTTM2.js.map} +0 -0
  412. /package/dist/chunks/{chunk-GNTKC72Z.js.map → chunk-UM3XWJVJ.js.map} +0 -0
  413. /package/dist/chunks/{chunk-WMFEVIDC.js.map → chunk-UOX7WH3J.js.map} +0 -0
  414. /package/dist/chunks/{chunk-IWVZTMTO.js.map → chunk-UP77FF2W.js.map} +0 -0
  415. /package/dist/chunks/{chunk-FEUHUXWS.js.map → chunk-VISMRN4J.js.map} +0 -0
  416. /package/dist/chunks/{chunk-YLAWGDZY.js.map → chunk-VPWFFR5J.js.map} +0 -0
  417. /package/dist/chunks/{chunk-TECFNZPY.js.map → chunk-VQN7GC3B.js.map} +0 -0
  418. /package/dist/chunks/{chunk-C3JE4IVH.js.map → chunk-W7XW3NXA.js.map} +0 -0
  419. /package/dist/chunks/{chunk-2PAS45UY.js.map → chunk-WSB2MCTI.js.map} +0 -0
  420. /package/dist/chunks/{chunk-K3BICM3T.js.map → chunk-WSPWJYLQ.js.map} +0 -0
  421. /package/dist/chunks/{chunk-D6D5D6UJ.js.map → chunk-XGEW2R3P.js.map} +0 -0
  422. /package/dist/chunks/{chunk-JF3HXJFC.js.map → chunk-XVKQQTVV.js.map} +0 -0
  423. /package/dist/chunks/{chunk-WDMO2XAW.js.map → chunk-XXXJOYTQ.js.map} +0 -0
  424. /package/dist/chunks/{chunk-LCF3ZVDZ.js.map → chunk-Y24UJ26G.js.map} +0 -0
  425. /package/dist/chunks/{chunk-MD6OIFFN.js.map → chunk-YFIKYLOB.js.map} +0 -0
  426. /package/dist/chunks/{chunk-RFCS6LFH.js.map → chunk-YXQG466V.js.map} +0 -0
  427. /package/dist/chunks/{chunk-L55M6CYI.js.map → chunk-ZACF6CVM.js.map} +0 -0
  428. /package/dist/chunks/{cli-runtime-O6RCYI3Y.js.map → cli-runtime-RAHU2FF7.js.map} +0 -0
  429. /package/dist/chunks/{commands-E5ZM2I2Z.js.map → commands-252QNZKK.js.map} +0 -0
  430. /package/dist/chunks/{config-EBPES6V6.js.map → config-CX6PRTEY.js.map} +0 -0
  431. /package/dist/chunks/{cost-QRWAQ3XB.js.map → cost-L3RROPK6.js.map} +0 -0
  432. /package/dist/chunks/{crash-report-ANVLQYLO.js.map → crash-report-NND4WWJA.js.map} +0 -0
  433. /package/dist/chunks/{desktop-host-schedule-tool-RG4EV45N.js.map → desktop-host-schedule-tool-IKWEHI4H.js.map} +0 -0
  434. /package/dist/chunks/{dist-N32BP5B4.js.map → dist-2MHNJVOM.js.map} +0 -0
  435. /package/dist/chunks/{dist-ROGRBORV.js.map → dist-3DMPFVGW.js.map} +0 -0
  436. /package/dist/chunks/{dist-FVTPQX57.js.map → dist-7TMA3NQ7.js.map} +0 -0
  437. /package/dist/chunks/{dist-TEJDPUVZ.js.map → dist-DFKDXC5Q.js.map} +0 -0
  438. /package/dist/chunks/{dist-EKAXB5R5.js.map → dist-MFWZVDSA.js.map} +0 -0
  439. /package/dist/chunks/{dist-CM4LL25P.js.map → dist-TH2HM2GH.js.map} +0 -0
  440. /package/dist/chunks/{dist-Y3CNYMQK.js.map → dist-UAUXP4UC.js.map} +0 -0
  441. /package/dist/chunks/{dist-ACZRXAK4.js.map → dist-YXOQEPCZ.js.map} +0 -0
  442. /package/dist/chunks/{doctor-Y6STEUN5.js.map → doctor-O5OZR6YG.js.map} +0 -0
  443. /package/dist/chunks/{drain-H6TQDCQI.js.map → drain-LUUO4FI3.js.map} +0 -0
  444. /package/dist/chunks/{entry-4TMEDNAU.js.map → entry-XPFYPIDS.js.map} +0 -0
  445. /package/dist/chunks/{extension-7PBXYICA.js.map → extension-AVJ2LV2G.js.map} +0 -0
  446. /package/dist/chunks/{feed-FQKHFH3J.js.map → feed-UKN7XNCC.js.map} +0 -0
  447. /package/dist/chunks/{home-5EQVZ7PU.js.map → home-A7434CUG.js.map} +0 -0
  448. /package/dist/chunks/{homes-IIDNJKRK.js.map → homes-U4IALPDB.js.map} +0 -0
  449. /package/dist/chunks/{hooks-NDWCMIVN.js.map → hooks-TQ7KEIX5.js.map} +0 -0
  450. /package/dist/chunks/{hooks-report-CAWNXYJS.js.map → hooks-report-R6KBKZOI.js.map} +0 -0
  451. /package/dist/chunks/{host-HGZEZXLB.js.map → host-S2OSQNIF.js.map} +0 -0
  452. /package/dist/chunks/{host-queries-DOXYXFOD.js.map → host-queries-VKIZCSD3.js.map} +0 -0
  453. /package/dist/chunks/{installed-list-OJNSGNIT.js.map → installed-list-VGP7FMFB.js.map} +0 -0
  454. /package/dist/chunks/{launch-NVHWNZSA.js.map → launch-LWAQXYIA.js.map} +0 -0
  455. /package/dist/chunks/{learn-FLJL53VN.js.map → learn-GIKQBJN5.js.map} +0 -0
  456. /package/dist/chunks/{learn-builtin-XJLP6EZ3.js.map → learn-builtin-HOFMWHQP.js.map} +0 -0
  457. /package/dist/chunks/{lifecycle-I5PHIQPV.js.map → lifecycle-4OBW7B42.js.map} +0 -0
  458. /package/dist/chunks/{list-BAQT6SDH.js.map → list-O2I3ECME.js.map} +0 -0
  459. /package/dist/chunks/{live-UXV3V4JM.js.map → live-DCRF5F6P.js.map} +0 -0
  460. /package/dist/chunks/{load-WSB7ECXC.js.map → load-LHCKRZFB.js.map} +0 -0
  461. /package/dist/chunks/{logs-WN65RRIX.js.map → logs-UMD7HBUO.js.map} +0 -0
  462. /package/dist/chunks/{mcp-D3BUCLEX.js.map → mcp-35NTHODS.js.map} +0 -0
  463. /package/dist/chunks/{mcp-serve-QRXGVK26.js.map → mcp-serve-PCEC55MI.js.map} +0 -0
  464. /package/dist/chunks/{message-command-A4AEJCMT.js.map → message-command-34BVXT5R.js.map} +0 -0
  465. /package/dist/chunks/{open-AOHMCTVP.js.map → open-DK276PG4.js.map} +0 -0
  466. /package/dist/chunks/{operator-tools-LHXXEP4G.js.map → operator-tools-RG247DOI.js.map} +0 -0
  467. /package/dist/chunks/{output-schema-QHSTBSFC.js.map → output-schema-WBFGDY7D.js.map} +0 -0
  468. /package/dist/chunks/{pal-NI3NH6SX.js.map → pal-OBXTNMGX.js.map} +0 -0
  469. /package/dist/chunks/{peers-3QLWWGWY.js.map → peers-RBR7QYPG.js.map} +0 -0
  470. /package/dist/chunks/{peers-B5TCECUP.js.map → peers-ZSKWVLA4.js.map} +0 -0
  471. /package/dist/chunks/{providers-A6Q444EB.js.map → providers-EW4LE5AZ.js.map} +0 -0
  472. /package/dist/chunks/{providers-G2UTRKAK.js.map → providers-V4MMZ7X5.js.map} +0 -0
  473. /package/dist/chunks/{pty-M4K6JLLS.js.map → pty-XV7IOHGX.js.map} +0 -0
  474. /package/dist/chunks/{resume-RXOBUAEA.js.map → resume-GA7INROY.js.map} +0 -0
  475. /package/dist/chunks/{resume-command-JUKPZVVL.js.map → resume-command-VABS2KGI.js.map} +0 -0
  476. /package/dist/chunks/{running-ZPS6OB4K.js.map → running-LDQLXUGW.js.map} +0 -0
  477. /package/dist/chunks/{schedule-PCKX74XC.js.map → schedule-L5AAS4JQ.js.map} +0 -0
  478. /package/dist/chunks/{send-6R5NCGY5.js.map → send-2KB5VRUT.js.map} +0 -0
  479. /package/dist/chunks/{send-person-I7B6Y2V3.js.map → send-person-EFHYG2GX.js.map} +0 -0
  480. /package/dist/chunks/{servers-F23WQJDI.js.map → servers-WIKRFBKU.js.map} +0 -0
  481. /package/dist/chunks/{service-NI642AJQ.js.map → service-LXQA5RI7.js.map} +0 -0
  482. /package/dist/chunks/{session-options-CRFJNFLM.js.map → session-options-2LDJWGYZ.js.map} +0 -0
  483. /package/dist/chunks/{setting-cli-QEUWWR2W.js.map → setting-cli-6T6H6TJ7.js.map} +0 -0
  484. /package/dist/chunks/{skills-VDOUBAYU.js.map → skills-YAIICRGB.js.map} +0 -0
  485. /package/dist/chunks/{source-deliveries-VWFHCFRQ.js.map → source-deliveries-VB4F2DV5.js.map} +0 -0
  486. /package/dist/chunks/{start-check-K6BTRM72.js.map → start-check-TE3CE7NZ.js.map} +0 -0
  487. /package/dist/chunks/{startup-failure-WREVDPC2.js.map → startup-failure-PBWJF4DV.js.map} +0 -0
  488. /package/dist/chunks/{state-LJR3IEAF.js.map → state-UGZ334GT.js.map} +0 -0
  489. /package/dist/chunks/{store-C7SEV4YB.js.map → store-3REZKYH5.js.map} +0 -0
  490. /package/dist/chunks/{store-L7CJVHD7.js.map → store-75XB557Z.js.map} +0 -0
  491. /package/dist/chunks/{store-T7M3ICIS.js.map → store-RV6QGLU2.js.map} +0 -0
  492. /package/dist/chunks/{store-U5LOY365.js.map → store-VQ5OTKXT.js.map} +0 -0
  493. /package/dist/chunks/{update-RO3UZBFM.js.map → update-NPWMEWAL.js.map} +0 -0
  494. /package/dist/chunks/{windows-home-WVGVXCRL.js.map → windows-home-4XSPGUOR.js.map} +0 -0
  495. /package/dist/chunks/{workspaces-B46MHVPJ.js.map → workspaces-UB6NF7LY.js.map} +0 -0
  496. /package/dist/chunks/{worktree-57C3ECED.js.map → worktree-QCSW5VQC.js.map} +0 -0
@@ -7,45 +7,37 @@ import {
7
7
  import {
8
8
  listMarkdownNames,
9
9
  resolvePluginFileDirs
10
- } from "./chunk-7L5SU6SJ.js";
10
+ } from "./chunk-6W6ILBXE.js";
11
11
  import {
12
12
  ENTRY_SIDECAR_KEEPS,
13
13
  INSTALL_MANIFEST_VERSION,
14
14
  LOCAL_UPLOADS_MARKETPLACE,
15
- admissionScope,
16
- currentEnabledAnswer,
17
15
  installManifestPath,
18
- installedPluginRefusal,
19
- installedRefusalText,
20
16
  isConfigFile,
21
17
  isExecutablePath,
22
18
  isInsidePluginCache,
23
- loadInstalledManifest,
24
19
  manifestDigest,
25
20
  readCatalog,
26
21
  readInstallManifest,
27
- readLayers,
28
22
  readRecordLayer,
29
23
  recordLayerPath,
30
24
  resolveEntrySource,
31
25
  setEnabledPlugin,
32
26
  setExtraKnownMarketplace,
33
27
  sha256Hex,
34
- surfaceDigest,
35
- verifyInstalledCopy
36
- } from "./chunk-MHJU6VYG.js";
28
+ surfaceDigest
29
+ } from "./chunk-7BZZGFKW.js";
37
30
  import {
38
31
  readPluginHookEntriesOf
39
- } from "./chunk-IYTFRC6Q.js";
32
+ } from "./chunk-PR3MVT6X.js";
40
33
  import {
41
34
  readSkillHooks
42
- } from "./chunk-ZF3PIJU3.js";
35
+ } from "./chunk-E2LKNISN.js";
43
36
  import {
44
37
  PLUGIN_ID_PATTERN,
45
38
  installManifestsFolder,
46
39
  installedPluginDataFolder,
47
40
  installedPluginsPath,
48
- isPluginId,
49
41
  isReservedPluginDir,
50
42
  marketplacesFolder,
51
43
  pluginCacheFolder,
@@ -53,12 +45,11 @@ import {
53
45
  putInstallRecord,
54
46
  putKnownMarketplace,
55
47
  readInstalledPlugins,
56
- readKnownMarketplaces,
57
48
  realPathOrResolved,
58
49
  removeInstallRecord,
59
50
  samePath,
60
51
  splitPluginId
61
- } from "./chunk-D6D5D6UJ.js";
52
+ } from "./chunk-XGEW2R3P.js";
62
53
  import {
63
54
  describeSource,
64
55
  gitUrlOf,
@@ -67,21 +58,18 @@ import {
67
58
  isCommitId,
68
59
  repoPathProblem,
69
60
  sourceRefusal
70
- } from "./chunk-T6C246EO.js";
61
+ } from "./chunk-37ZR2RAN.js";
71
62
  import {
72
63
  parseSkillMarkdown
73
- } from "./chunk-MHAHZX7U.js";
64
+ } from "./chunk-46VWCTBU.js";
74
65
  import {
75
- StateFileBusyError,
76
- StateFileUnreadableError,
77
66
  unreadableStateFile,
78
67
  withStateFileLock
79
- } from "./chunk-Q3XC7YNF.js";
68
+ } from "./chunk-47HEFQUP.js";
80
69
  import {
81
70
  EXIT_DATAERR,
82
71
  EXIT_FAIL,
83
72
  EXIT_NOINPUT,
84
- EXIT_OK,
85
73
  EXIT_UNAVAILABLE,
86
74
  EXIT_UNTRUSTED,
87
75
  EXIT_USAGE
@@ -106,15 +94,11 @@ import {
106
94
  readCommonLayout,
107
95
  resolveWithinReal,
108
96
  scanHookModule
109
- } from "./chunk-J72ATHQJ.js";
97
+ } from "./chunk-S5XNNB36.js";
110
98
  import {
111
99
  __name
112
100
  } from "./chunk-76FLAFCG.js";
113
101
 
114
- // src/commands/plugin-records.ts
115
- import { lstatSync as lstatSync6, readdirSync as readdirSync5 } from "node:fs";
116
- import { join as join8, resolve as resolve2 } from "node:path";
117
-
118
102
  // src/integrations/plugins/manifest-details.ts
119
103
  import { readFile, stat } from "node:fs/promises";
120
104
  import { join } from "node:path";
@@ -161,19 +145,6 @@ async function readPluginManifestDetails(rootDir, given) {
161
145
  }
162
146
  __name(readPluginManifestDetails, "readPluginManifestDetails");
163
147
 
164
- // src/integrations/plugins/remote-marketplace.ts
165
- import { randomUUID as randomUUID3 } from "node:crypto";
166
- import { lstatSync as lstatSync5, mkdirSync as mkdirSync6, renameSync as renameSync3 } from "node:fs";
167
- import { isAbsolute as isAbsolute2, join as join7, relative as relative2 } from "node:path";
168
-
169
- // src/integrations/plugins/fetch/index.ts
170
- import { lstatSync as lstatSync2, mkdirSync as mkdirSync3, writeFileSync } from "node:fs";
171
- import { join as join3 } from "node:path";
172
-
173
- // src/integrations/plugins/fetch/archive.ts
174
- import { mkdirSync as mkdirSync2, rmSync as rmSync3 } from "node:fs";
175
- import { dirname as dirname2 } from "node:path";
176
-
177
148
  // src/integrations/plugins/fetch/git.ts
178
149
  import { execFile, spawn } from "node:child_process";
179
150
  import {
@@ -222,12 +193,12 @@ function gitTimeoutMs(env = process.env) {
222
193
  __name(gitTimeoutMs, "gitTimeoutMs");
223
194
  function killProcessTree(pid, platform) {
224
195
  if (platform === "win32") {
225
- return new Promise((resolve3) => {
196
+ return new Promise((resolve2) => {
226
197
  execFile(
227
198
  join2(process.env.SystemRoot ?? "C:\\Windows", "System32", "taskkill.exe"),
228
199
  ["/PID", String(pid), "/T", "/F"],
229
200
  { windowsHide: true, timeout: 5e3 },
230
- () => resolve3()
201
+ () => resolve2()
231
202
  );
232
203
  });
233
204
  }
@@ -242,7 +213,7 @@ function killProcessTree(pid, platform) {
242
213
  }
243
214
  __name(killProcessTree, "killProcessTree");
244
215
  function measureFolder(dir, maxFiles) {
245
- let bytes2 = 0;
216
+ let bytes = 0;
246
217
  let files = 0;
247
218
  const walk = /* @__PURE__ */ __name((path) => {
248
219
  let entries;
@@ -258,14 +229,14 @@ function measureFolder(dir, maxFiles) {
258
229
  else {
259
230
  files += 1;
260
231
  try {
261
- bytes2 += lstatSync(child).size;
232
+ bytes += lstatSync(child).size;
262
233
  } catch {
263
234
  }
264
235
  }
265
236
  }
266
237
  }, "walk");
267
238
  walk(dir);
268
- return { bytes: bytes2, files };
239
+ return { bytes, files };
269
240
  }
270
241
  __name(measureFolder, "measureFolder");
271
242
  var live = /* @__PURE__ */ new Map();
@@ -319,7 +290,7 @@ function createGitRunner(deps = {}) {
319
290
  const later = deps.setTimeout ?? ((fn, ms) => setTimeout(fn, ms));
320
291
  const cancel = deps.clearTimeout ?? ((handle) => clearTimeout(handle));
321
292
  const sizeOf = deps.sizeOf ?? measureFolder;
322
- return (args, options) => new Promise((resolve3) => {
293
+ return (args, options) => new Promise((resolve2) => {
323
294
  let stdout = "";
324
295
  let stderr = "";
325
296
  let done = false;
@@ -340,7 +311,7 @@ function createGitRunner(deps = {}) {
340
311
  live.delete(pid);
341
312
  if (live.size === 0) unhook();
342
313
  }
343
- resolve3({ code, stdout, stderr, timedOut, missing, ...oversize ? { oversize } : {} });
314
+ resolve2({ code, stdout, stderr, timedOut, missing, ...oversize ? { oversize } : {} });
344
315
  }, "finish");
345
316
  const stop = /* @__PURE__ */ __name(() => {
346
317
  if (stopping) return;
@@ -705,6 +676,14 @@ async function cloneRepository(request, options = {}) {
705
676
  }
706
677
  __name(cloneRepository, "cloneRepository");
707
678
 
679
+ // src/integrations/plugins/fetch/index.ts
680
+ import { lstatSync as lstatSync2, mkdirSync as mkdirSync3, writeFileSync } from "node:fs";
681
+ import { join as join3 } from "node:path";
682
+
683
+ // src/integrations/plugins/fetch/archive.ts
684
+ import { mkdirSync as mkdirSync2, rmSync as rmSync3 } from "node:fs";
685
+ import { dirname as dirname2 } from "node:path";
686
+
708
687
  // src/integrations/plugins/fetch/url.ts
709
688
  import { createHash } from "node:crypto";
710
689
  import { closeSync as closeSync2, openSync as openSync2, rmSync as rmSync2, writeSync } from "node:fs";
@@ -916,12 +895,12 @@ async function download(request, options = {}) {
916
895
  __name(download, "download");
917
896
  async function downloadToFile(request, dest, options = {}) {
918
897
  const hash = createHash("sha256");
919
- let bytes2 = 0;
898
+ let bytes = 0;
920
899
  const fd = openSync2(dest, "w", 384);
921
900
  try {
922
901
  await transfer(request, options, (chunk) => {
923
902
  hash.update(chunk);
924
- bytes2 += chunk.byteLength;
903
+ bytes += chunk.byteLength;
925
904
  let written = 0;
926
905
  while (written < chunk.byteLength)
927
906
  written += writeSync(fd, chunk, written, chunk.byteLength - written);
@@ -932,11 +911,11 @@ async function downloadToFile(request, dest, options = {}) {
932
911
  throw error;
933
912
  }
934
913
  closeSync2(fd);
935
- return { sha256: hash.digest("hex"), bytes: bytes2 };
914
+ return { sha256: hash.digest("hex"), bytes };
936
915
  }
937
916
  __name(downloadToFile, "downloadToFile");
938
917
  async function fetchCatalogText(url, options = {}) {
939
- const bytes2 = await download(
918
+ const bytes = await download(
940
919
  {
941
920
  url,
942
921
  maxBytes: CATALOG_DOWNLOAD_MAX_BYTES,
@@ -946,14 +925,14 @@ async function fetchCatalogText(url, options = {}) {
946
925
  },
947
926
  options
948
927
  );
949
- return bytes2.toString("utf8");
928
+ return bytes.toString("utf8");
950
929
  }
951
930
  __name(fetchCatalogText, "fetchCatalogText");
952
931
 
953
932
  // src/integrations/plugins/fetch/archive.ts
954
933
  async function downloadArchive(url, dest, expectedSha256, options = {}) {
955
934
  mkdirSync2(dirname2(dest), { recursive: true, mode: 448 });
956
- const { sha256, bytes: bytes2 } = await downloadToFile(
935
+ const { sha256, bytes } = await downloadToFile(
957
936
  {
958
937
  url,
959
938
  maxBytes: ARCHIVE_DOWNLOAD_MAX_BYTES,
@@ -972,7 +951,7 @@ async function downloadArchive(url, dest, expectedSha256, options = {}) {
972
951
  "digest"
973
952
  );
974
953
  }
975
- return { file: dest, sha256, bytes: bytes2 };
954
+ return { file: dest, sha256, bytes };
976
955
  }
977
956
  __name(downloadArchive, "downloadArchive");
978
957
 
@@ -1187,6 +1166,12 @@ function entryRow(event, entry) {
1187
1166
  type: "prompt",
1188
1167
  run: String(entry.prompt ?? "").replace(/\s+/g, " ").slice(0, 200)
1189
1168
  };
1169
+ if (entry.type === "mcp_tool")
1170
+ return {
1171
+ ...base,
1172
+ type: "mcp_tool",
1173
+ run: `${String(entry.server ?? "")}/${String(entry.tool ?? "")}`
1174
+ };
1190
1175
  const args = Array.isArray(entry.args) ? entry.args.map(String) : [];
1191
1176
  return { ...base, type: "command", run: [String(entry.command ?? ""), ...args].join(" ") };
1192
1177
  }
@@ -2122,8 +2107,8 @@ __name(listDirs, "listDirs");
2122
2107
  function findPrunable(home, now) {
2123
2108
  const records = readRecords(home);
2124
2109
  const used = /* @__PURE__ */ new Set();
2125
- for (const list2 of records.values())
2126
- for (const r of list2) used.add(realPathOrResolved(r.installPath));
2110
+ for (const list of records.values())
2111
+ for (const r of list) used.add(realPathOrResolved(r.installPath));
2127
2112
  const items = [];
2128
2113
  const kept = [];
2129
2114
  for (const market of listDirs(pluginCacheFolder(home)))
@@ -2194,6 +2179,9 @@ function prune(home, now, apply) {
2194
2179
  __name(prune, "prune");
2195
2180
 
2196
2181
  // src/integrations/plugins/remote-marketplace.ts
2182
+ import { randomUUID as randomUUID3 } from "node:crypto";
2183
+ import { lstatSync as lstatSync5, mkdirSync as mkdirSync6, renameSync as renameSync3 } from "node:fs";
2184
+ import { isAbsolute as isAbsolute2, join as join7, relative as relative2 } from "node:path";
2197
2185
  var oneLine = /* @__PURE__ */ __name((value) => terminalDisplayText(value).replace(/[\t\n\r]+/g, " "), "oneLine");
2198
2186
  var MARKETPLACE_NOTICE = [
2199
2187
  "Plugins from a marketplace can run programs on this computer, with access to",
@@ -2382,6 +2370,21 @@ function isInside(outer, inner) {
2382
2370
  return rel !== "" && !rel.startsWith("..") && !isAbsolute2(rel);
2383
2371
  }
2384
2372
  __name(isInside, "isInside");
2373
+ function marketplaceRefreshSkip(market, policy) {
2374
+ const kind = market.source.source;
2375
+ if (kind === "directory" || kind === "file") return void 0;
2376
+ const refusal = sourceRefusal(market.source, policy);
2377
+ if (refusal !== void 0)
2378
+ return {
2379
+ outcome: "failed",
2380
+ message: refusal === "blocked" ? "refreshing it is turned off in your settings." : "refreshing it is not allowed: your settings do not name it among the marketplaces that may be used."
2381
+ };
2382
+ const ref = typeof market.source.ref === "string" ? market.source.ref : void 0;
2383
+ if (ref !== void 0 && isCommitId(ref))
2384
+ return { outcome: "pinned", message: `pinned at ${ref.slice(0, 7)}` };
2385
+ return void 0;
2386
+ }
2387
+ __name(marketplaceRefreshSkip, "marketplaceRefreshSkip");
2385
2388
  async function refreshRemoteMarketplace(market, options) {
2386
2389
  const { home } = options;
2387
2390
  const describe = options.describe ?? failureText;
@@ -2393,19 +2396,11 @@ async function refreshRemoteMarketplace(market, options) {
2393
2396
  newer: [],
2394
2397
  ...partial
2395
2398
  }), "row");
2396
- const kind = market.source.source;
2397
- const refusal = sourceRefusal(market.source, {
2399
+ const skip = marketplaceRefreshSkip(market, {
2398
2400
  blocked: options.blockedMarketplaces,
2399
2401
  allowed: options.allowedMarketplaces
2400
2402
  });
2401
- if (refusal !== void 0)
2402
- return row({
2403
- outcome: "failed",
2404
- message: refusal === "blocked" ? "refreshing it is turned off in your settings." : "refreshing it is not allowed: your settings do not name it among the marketplaces that may be used."
2405
- });
2406
- const ref = typeof market.source.ref === "string" ? market.source.ref : void 0;
2407
- if ((kind === "github" || kind === "git") && ref !== void 0 && isCommitId(ref))
2408
- return row({ outcome: "pinned", message: `pinned at ${ref.slice(0, 7)}` });
2403
+ if (skip !== void 0) return row(skip);
2409
2404
  if (!isInside(marketplacesFolder(home), market.installLocation))
2410
2405
  return row({
2411
2406
  outcome: "failed",
@@ -2469,738 +2464,16 @@ function failureText(error) {
2469
2464
  }
2470
2465
  __name(failureText, "failureText");
2471
2466
 
2472
- // src/commands/plugin-records.ts
2473
- var PLUGIN_RECORD_VERBS = ["list", "details", "enable", "disable"];
2474
- var PLUGIN_RECORD_HELP = [
2475
- "Usage:",
2476
- " namzu plugin list [--cwd <dir>] [--json]",
2477
- " namzu plugin details <id> [--cwd <dir>] [--json]",
2478
- " namzu plugin enable <id> [--scope user|project|local] [--cwd <dir>] [--json]",
2479
- " namzu plugin disable <id> [--scope user|project|local] [--cwd <dir>] [--json]",
2480
- "",
2481
- "list The installed plugins that apply here: id, version, scope, on or off, and what needs attention.",
2482
- "details One plugin: what it brings by its exact names, the record, who turned it on, where its data is.",
2483
- "enable Record a yes for an installed plugin. It takes effect in new conversations.",
2484
- "disable Record a no. Nothing is removed; the plugin stays installed.",
2485
- "",
2486
- "An id is <name>@<marketplace>; a bare name works when only one installed plugin has it.",
2487
- "Without --scope a user plugin is changed in your own settings file, and a project plugin in",
2488
- "this computer\u2019s file for the folder (.namzu/settings.local.json), so a shared file is not",
2489
- "edited by a toggle. --scope project edits the shared .namzu/settings.json.",
2490
- "",
2491
- "Options:",
2492
- " --scope user|project|local The record to act on, and the settings file it is written to",
2493
- " --cwd <dir> The folder whose project plugins are meant (default: here)",
2494
- " --json Print one JSON object on standard output",
2495
- "",
2496
- "Exit status: 0 done, 1 something failed, 64 the command line is wrong,",
2497
- "66 not installed or a record could not be read, 77 the folder is not trusted."
2498
- ].join("\n");
2499
- function parseFlags(args) {
2500
- let json = false;
2501
- let scope;
2502
- let cwd;
2503
- const positional = [];
2504
- for (let i = 0; i < args.length; i++) {
2505
- const arg = args[i];
2506
- const value = /* @__PURE__ */ __name((name) => {
2507
- if (arg === name) return args[++i];
2508
- if (arg.startsWith(`${name}=`)) return arg.slice(name.length + 1);
2509
- return void 0;
2510
- }, "value");
2511
- if (arg === "--json") json = true;
2512
- else if (arg === "--scope" || arg.startsWith("--scope=")) {
2513
- const v = value("--scope");
2514
- if (v !== "user" && v !== "project" && v !== "local")
2515
- return { json, positional, error: "--scope is user, project or local." };
2516
- scope = v;
2517
- } else if (arg === "--cwd" || arg.startsWith("--cwd=")) {
2518
- const v = value("--cwd");
2519
- if (v === void 0 || v === "") return { json, positional, error: "--cwd needs a folder." };
2520
- cwd = v;
2521
- } else if (arg.startsWith("-") && arg !== "-")
2522
- return { json, positional, error: `unknown option: ${arg}` };
2523
- else positional.push(arg);
2524
- }
2525
- return { json, ...scope ? { scope } : {}, ...cwd ? { cwd } : {}, positional };
2526
- }
2527
- __name(parseFlags, "parseFlags");
2528
- function failure(deps, json, command, code, message, extra = {}) {
2529
- if (json) deps.out(`${JSON.stringify({ command, outcome: "failed", message, ...extra })}
2530
- `);
2531
- else deps.err(`${message}
2532
- `);
2533
- return code;
2534
- }
2535
- __name(failure, "failure");
2536
- function stateFailure(error) {
2537
- if (error instanceof StateFileUnreadableError)
2538
- return {
2539
- code: EXIT_NOINPUT,
2540
- message: `The install record could not be read, so nothing was changed: ${error.file}
2541
- ${error.sentence((p) => p)}`
2542
- };
2543
- if (error instanceof StateFileBusyError)
2544
- return { code: EXIT_FAIL, message: error.sentence((p) => p) };
2545
- return { code: EXIT_FAIL, message: error instanceof Error ? error.message : String(error) };
2546
- }
2547
- __name(stateFailure, "stateFailure");
2548
- function resolveId(deps, json, command, arg) {
2549
- const read = readInstalledPlugins(deps.namzuHome);
2550
- if (read.state === "unreadable")
2551
- return failure(
2552
- deps,
2553
- json,
2554
- command,
2555
- EXIT_NOINPUT,
2556
- `The install record could not be read, so nothing was changed: ${installedPluginsPath(deps.namzuHome)} (${read.reason}). Fix or remove the file, then try again.`
2557
- );
2558
- if (isPluginId(arg)) {
2559
- const records = read.plugins.get(arg);
2560
- if (!records)
2561
- return failure(
2562
- deps,
2563
- json,
2564
- command,
2565
- EXIT_NOINPUT,
2566
- `${arg} is not installed on this computer.`,
2567
- {
2568
- id: arg
2569
- }
2570
- );
2571
- return { id: arg, records };
2572
- }
2573
- if (arg.includes("@") || arg === "")
2574
- return failure(
2575
- deps,
2576
- json,
2577
- command,
2578
- EXIT_USAGE,
2579
- `"${arg}" is not a plugin id (name@marketplace).`
2580
- );
2581
- const matches = [...read.plugins.keys()].filter((id2) => splitPluginId(id2).name === arg);
2582
- if (matches.length === 0)
2583
- return failure(deps, json, command, EXIT_NOINPUT, `${arg} is not installed on this computer.`);
2584
- if (matches.length > 1)
2585
- return failure(
2586
- deps,
2587
- json,
2588
- command,
2589
- EXIT_USAGE,
2590
- `More than one installed plugin is named ${arg}: ${matches.join(", ")}. Name one of them.`,
2591
- { matches }
2592
- );
2593
- const id = matches[0];
2594
- return { id, records: read.plugins.get(id) };
2595
- }
2596
- __name(resolveId, "resolveId");
2597
- function applicable(records, cwd, trusted) {
2598
- const rank = { local: 3, project: 2, user: 1 };
2599
- const here = [];
2600
- let unread = 0;
2601
- for (const record of records) {
2602
- if (record.scope === "user") here.push(record);
2603
- else if (record.projectPath !== void 0 && samePath(record.projectPath, cwd)) {
2604
- if (trusted) here.push(record);
2605
- else unread++;
2606
- }
2607
- }
2608
- here.sort((a, b) => rank[b.scope] - rank[a.scope]);
2609
- return { here, unread };
2610
- }
2611
- __name(applicable, "applicable");
2612
- function contextOf(deps, flags) {
2613
- const cwd = resolve2(deps.cwd(), flags.cwd ?? ".");
2614
- return { cwd: realPathOrResolved(cwd), trusted: deps.isTrusted(cwd) };
2615
- }
2616
- __name(contextOf, "contextOf");
2617
- function layerSentence(by, answer) {
2618
- if (by === void 0) return "no setting says so";
2619
- return by === "user" ? `your settings say ${answer ? "yes" : "no"}` : by === "project" ? `the folder\u2019s shared settings say ${answer ? "yes" : "no"}` : `this computer\u2019s settings for the folder say ${answer ? "yes" : "no"}`;
2620
- }
2621
- __name(layerSentence, "layerSentence");
2622
- function candidateFor(id, record, answer) {
2623
- return {
2624
- id,
2625
- name: splitPluginId(id).name,
2626
- record,
2627
- scope: admissionScope(record.scope),
2628
- installPath: realPathOrResolved(record.installPath),
2629
- answer
2630
- };
2631
- }
2632
- __name(candidateFor, "candidateFor");
2633
- var CLASH_ALLOWED_SCOPES = ["project", "user"];
2634
- async function nameClashes(deps, ctx, plugins) {
2635
- const names = /* @__PURE__ */ new Set();
2636
- try {
2637
- const discovered = await discoverAllPluginDirs(ctx.cwd, {
2638
- enabled: true,
2639
- autoDiscovery: true,
2640
- allowedScopes: CLASH_ALLOWED_SCOPES,
2641
- userRoot: deps.namzuHome
2642
- });
2643
- for (const scope of CLASH_ALLOWED_SCOPES)
2644
- for (const dir of discovered[scope]) {
2645
- if (scope === "user" && isReservedPluginDir(deps.namzuHome, dir)) continue;
2646
- try {
2647
- names.add((await loadPluginManifest(dir, { skillsSupported: true })).name);
2648
- } catch {
2649
- }
2650
- }
2651
- } catch {
2652
- }
2653
- const candidates = [];
2654
- for (const [id, records] of plugins) {
2655
- const chosen = applicable(records, ctx.cwd, ctx.trusted).here[0];
2656
- if (chosen === void 0) continue;
2657
- if (!verifyInstalledCopy(deps.namzuHome, id, chosen.installPath, chosen.surfaceSha256).ok)
2658
- continue;
2659
- candidates.push({ id, at: chosen.installedAt ?? "" });
2660
- }
2661
- candidates.sort((a, b) => a.at.localeCompare(b.at) || a.id.localeCompare(b.id));
2662
- const clashes = /* @__PURE__ */ new Map();
2663
- for (const { id } of candidates) {
2664
- const { name } = splitPluginId(id);
2665
- if (names.has(name))
2666
- clashes.set(id, `${id} will not load: the name "${name}" is already used by another plugin.`);
2667
- else names.add(name);
2668
- }
2669
- return clashes;
2670
- }
2671
- __name(nameClashes, "nameClashes");
2672
- async function runList(deps, flags) {
2673
- const command = "plugin list";
2674
- if (flags.positional.length > 0)
2675
- return failure(deps, flags.json, command, EXIT_USAGE, "plugin list takes no arguments.");
2676
- const ctx = contextOf(deps, flags);
2677
- const read = readInstalledPlugins(deps.namzuHome);
2678
- if (read.state === "unreadable")
2679
- return failure(
2680
- deps,
2681
- flags.json,
2682
- command,
2683
- EXIT_NOINPUT,
2684
- `The install record could not be read: ${installedPluginsPath(deps.namzuHome)} (${read.reason}). Nothing was changed.`
2685
- );
2686
- const layers = readLayers(deps.namzuHome, ctx.cwd, ctx.trusted);
2687
- const problems = read.invalid.map((bad) => `${bad.id}: ${bad.reason}`);
2688
- for (const [layer, layerRead] of Object.entries(layers)) {
2689
- if (layerRead?.state === "unreadable")
2690
- problems.push(
2691
- `${recordLayerPath(layer, { home: deps.namzuHome, cwd: ctx.cwd })} could not be read (${layerRead.reason}), so what it says was not used`
2692
- );
2693
- }
2694
- const clashes = await nameClashes(deps, ctx, read.plugins);
2695
- const known = readKnownMarketplaces(deps.namzuHome);
2696
- const rows = [];
2697
- let unread = 0;
2698
- for (const [id, records] of [...read.plugins.entries()].sort(([a], [b]) => a.localeCompare(b))) {
2699
- const found = applicable(records, ctx.cwd, ctx.trusted);
2700
- unread += found.unread;
2701
- if (found.here.length === 0) continue;
2702
- const answer = currentEnabledAnswer(
2703
- { home: deps.namzuHome, cwd: ctx.cwd, projectTrusted: ctx.trusted },
2704
- id
2705
- );
2706
- for (const record of found.here) {
2707
- const verdict = verifyInstalledCopy(
2708
- deps.namzuHome,
2709
- id,
2710
- record.installPath,
2711
- record.surfaceSha256
2712
- );
2713
- const notes = record.findings.filter(
2714
- (f) => f.level === "notUsed" || f.level === "refused"
2715
- ).length;
2716
- const { name, marketplace } = splitPluginId(id);
2717
- const clash = verdict.ok ? clashes.get(id) : void 0;
2718
- const problem = verdict.ok ? clash : verdict.message;
2719
- rows.push({
2720
- id,
2721
- name,
2722
- marketplace,
2723
- version: record.version ?? null,
2724
- scope: record.scope,
2725
- ...record.projectPath ? { projectPath: record.projectPath } : {},
2726
- enabled: answer.on,
2727
- enabledBy: answer.by ?? null,
2728
- state: problem !== void 0 ? "blocked" : answer.on ? "on" : "off",
2729
- attention: notes + (problem !== void 0 ? 1 : 0),
2730
- ...problem !== void 0 ? { problem } : {},
2731
- source: known.state !== "unreadable" ? known.marketplaces.get(marketplace)?.source ?? null : null,
2732
- layout: record.layout ?? null,
2733
- installPath: record.installPath
2734
- });
2735
- }
2736
- }
2737
- const asked = [];
2738
- for (const layer of ["project", "local"]) {
2739
- const layerRead = layers[layer];
2740
- if (layerRead === void 0 || layerRead.state === "unreadable") continue;
2741
- for (const [id, value] of layerRead.enabledPlugins) {
2742
- if (!value) continue;
2743
- const have = rows.some((row) => row.id === id);
2744
- if (!have) asked.push({ id, layer, installed: false });
2745
- }
2746
- }
2747
- const declared = [];
2748
- for (const layer of ["project", "local"]) {
2749
- const layerRead = layers[layer];
2750
- if (layerRead === void 0 || layerRead.state === "unreadable") continue;
2751
- for (const market of layerRead.marketplaces.values())
2752
- declared.push({
2753
- name: market.name,
2754
- layer,
2755
- source: market.source,
2756
- added: known.state !== "unreadable" && known.marketplaces.has(market.name)
2757
- });
2758
- }
2759
- const notice = unread > 0 ? `${unread} plugin ${unread === 1 ? "record" : "records"} for this folder ${unread === 1 ? "was" : "were"} not read because the folder is not trusted yet.` : void 0;
2760
- if (flags.json) {
2761
- deps.out(
2762
- `${JSON.stringify({
2763
- command,
2764
- cwd: ctx.cwd,
2765
- trusted: ctx.trusted,
2766
- loading: deps.loadingOn ? "on" : "off",
2767
- plugins: rows,
2768
- asked,
2769
- declaredMarketplaces: declared,
2770
- problems,
2771
- ...notice ? { notice } : {}
2772
- })}
2773
- `
2774
- );
2775
- return EXIT_OK;
2776
- }
2777
- const lines = [];
2778
- if (rows.length === 0) lines.push("No plugins are installed here.");
2779
- else {
2780
- const width = /* @__PURE__ */ __name((pick) => Math.max(...rows.map((row) => pick(row).length)), "width");
2781
- const wId = width((r) => oneLine(r.id));
2782
- const wVer = width((r) => oneLine(r.version ?? "-"));
2783
- const wScope = width((r) => r.scope);
2784
- for (const row of rows) {
2785
- lines.push(
2786
- `${oneLine(row.id).padEnd(wId)} ${oneLine(row.version ?? "-").padEnd(wVer)} ${row.scope.padEnd(wScope)} ${row.state}${row.attention > 0 ? ` (${row.attention} to look at)` : ""}`
2787
- );
2788
- if (row.problem) lines.push(` ${oneLine(row.problem)}`);
2789
- }
2790
- }
2791
- for (const ask of asked)
2792
- lines.push(`${oneLine(ask.id)} is asked for here and is not installed on this computer.`);
2793
- for (const market of declared)
2794
- lines.push(
2795
- `${oneLine(market.name)} is declared by this project, ${market.added ? "and added" : "not added"}.`
2796
- );
2797
- for (const problem of problems) lines.push(`Not used: ${oneLine(problem)}`);
2798
- if (notice) lines.push(notice);
2799
- if (!deps.loadingOn && rows.length > 0)
2800
- lines.push(
2801
- "Plugin loading is off, so none of these run. Turn it on: namzu config set plugins.enabled true"
2802
- );
2803
- deps.out(`${lines.join("\n")}
2804
- `);
2805
- return EXIT_OK;
2806
- }
2807
- __name(runList, "runList");
2808
- function dataSize(path) {
2809
- let total = 0;
2810
- let seen = 0;
2811
- const walk = /* @__PURE__ */ __name((dir) => {
2812
- for (const entry of readdirSync5(dir)) {
2813
- if (++seen > 2e4) return;
2814
- const full = join8(dir, entry);
2815
- const stat2 = lstatSync6(full);
2816
- if (stat2.isDirectory()) walk(full);
2817
- else total += stat2.size;
2818
- }
2819
- }, "walk");
2820
- try {
2821
- if (!lstatSync6(path).isDirectory()) return null;
2822
- walk(path);
2823
- return total;
2824
- } catch {
2825
- return null;
2826
- }
2827
- }
2828
- __name(dataSize, "dataSize");
2829
- async function runDetails(deps, flags) {
2830
- const command = "plugin details";
2831
- if (flags.positional.length !== 1)
2832
- return failure(deps, flags.json, command, EXIT_USAGE, "plugin details takes one plugin id.");
2833
- const ctx = contextOf(deps, flags);
2834
- const resolved = resolveId(deps, flags.json, command, flags.positional[0]);
2835
- if (typeof resolved === "number") return resolved;
2836
- const { id } = resolved;
2837
- const found = applicable(resolved.records, ctx.cwd, ctx.trusted);
2838
- if (found.here.length === 0)
2839
- return failure(
2840
- deps,
2841
- flags.json,
2842
- command,
2843
- found.unread > 0 ? EXIT_UNTRUSTED : EXIT_NOINPUT,
2844
- found.unread > 0 ? "This folder is not trusted yet. Open it with namzu once, or use --scope user." : `${id} is not installed for this folder or for you.`,
2845
- { id }
2846
- );
2847
- const record = found.here[0];
2848
- const answer = currentEnabledAnswer(
2849
- { home: deps.namzuHome, cwd: ctx.cwd, projectTrusted: ctx.trusted },
2850
- id
2851
- );
2852
- const verdict = verifyInstalledCopy(deps.namzuHome, id, record.installPath, record.surfaceSha256);
2853
- const all = readInstalledPlugins(deps.namzuHome);
2854
- const clash = verdict.ok && all.state !== "unreadable" ? (await nameClashes(deps, ctx, all.plugins)).get(id) : void 0;
2855
- const blockedBy = verdict.ok ? clash : verdict.message;
2856
- const manifestRead = readInstallManifest(deps.namzuHome, id);
2857
- const { name, marketplace } = splitPluginId(id);
2858
- const known = readKnownMarketplaces(deps.namzuHome);
2859
- const source = known.state !== "unreadable" ? known.marketplaces.get(marketplace)?.source ?? null : null;
2860
- const dataPath = installedPluginDataFolder(deps.namzuHome, id);
2861
- let inventory;
2862
- if (verdict.ok) {
2863
- try {
2864
- const candidate = candidateFor(id, record, answer);
2865
- const manifest = await loadInstalledManifest(candidate, {
2866
- home: deps.namzuHome,
2867
- cwd: ctx.cwd,
2868
- installedNames: /* @__PURE__ */ new Set()
2869
- });
2870
- const details = await readPluginManifestDetails(candidate.installPath, manifest);
2871
- const prefix = `${manifest.name}__`;
2872
- const files = /* @__PURE__ */ __name((declared) => resolvePluginFileDirs(
2873
- manifest.name,
2874
- candidate.installPath,
2875
- declared,
2876
- manifest.layout
2877
- ).dirs.flatMap(
2878
- (source2) => listMarkdownNames(source2.dir, source2.only).map((file) => `${prefix}${file}`)
2879
- ), "files");
2880
- const hookRead = readPluginHookEntriesOf({ rootDir: candidate.installPath, manifest });
2881
- inventory = {
2882
- description: manifest.description,
2883
- hooks: Object.entries(hookRead.hooks).filter(([, entries]) => (entries?.length ?? 0) > 0).map(([event, entries]) => `${event} (${entries?.length ?? 0})`),
2884
- skills: (details.skills ?? []).map((skill) => skill.name),
2885
- commands: files(manifest.commands),
2886
- agents: files(manifest.agents),
2887
- servers: (manifest.mcpServers ?? []).map((server) => server.name),
2888
- ...details.author ? { author: details.author } : {}
2889
- };
2890
- } catch (error) {
2891
- inventory = { error: error instanceof Error ? error.message : String(error) };
2892
- }
2893
- }
2894
- const surface = manifestRead.state === "ok" ? manifestRead.manifest.surface : null;
2895
- const output = {
2896
- command,
2897
- id,
2898
- name,
2899
- marketplace,
2900
- enabled: answer.on,
2901
- enabledBy: answer.by ?? null,
2902
- verification: verdict.ok ? clash !== void 0 ? { ok: false, code: "name-clash", message: clash } : { ok: true } : { ok: false, code: verdict.code, message: verdict.message },
2903
- records: found.here.map((r) => ({
2904
- scope: r.scope,
2905
- ...r.projectPath ? { projectPath: r.projectPath } : {},
2906
- installPath: r.installPath,
2907
- version: r.version ?? null,
2908
- installedAt: r.installedAt ?? null,
2909
- lastUpdated: r.lastUpdated ?? null,
2910
- gitCommitSha: r.gitCommitSha ?? null,
2911
- layout: r.layout ?? null,
2912
- findings: r.findings
2913
- })),
2914
- origin: source ?? (manifestRead.state === "ok" ? manifestRead.manifest.installedFrom ?? null : null),
2915
- surface,
2916
- surfaceSha256: manifestRead.state === "ok" ? manifestRead.manifest.surfaceSha256 : null,
2917
- executableFiles: manifestRead.state === "ok" ? manifestRead.manifest.executable : [],
2918
- consent: manifestRead.state === "ok" ? manifestRead.manifest.consent ?? null : null,
2919
- data: { path: dataPath, bytes: dataSize(dataPath) },
2920
- inventory: inventory ?? null
2921
- };
2922
- if (flags.json) {
2923
- deps.out(`${JSON.stringify(output)}
2924
- `);
2925
- return EXIT_OK;
2926
- }
2927
- const lines = [`${oneLine(id)}${record.version ? ` ${oneLine(record.version)}` : ""}`];
2928
- const inv = inventory;
2929
- if (inv?.description) lines.push(oneLine(inv.description));
2930
- lines.push(
2931
- ` State: ${answer.on ? "on" : "off"} (${layerSentence(answer.by, answer.on)})`,
2932
- ` Scope: ${found.here.map((r) => r.scope).join(", ")}`,
2933
- ` Origin: ${source ? oneLine(JSON.stringify(source)) : `marketplace ${marketplace}`}`,
2934
- ` Folder: ${oneLine(record.installPath)}`,
2935
- ` Data: ${oneLine(dataPath)}${output.data.bytes === null ? " (none yet)" : ` (${output.data.bytes} bytes)`}`
2936
- );
2937
- if (blockedBy !== void 0) lines.push(` Blocked: ${oneLine(blockedBy)}`);
2938
- const listed = /* @__PURE__ */ __name((label, items) => {
2939
- if (Array.isArray(items) && items.length > 0)
2940
- lines.push(` ${label}${items.map((item) => oneLine(String(item))).join(", ")}`);
2941
- }, "listed");
2942
- if (inventory) {
2943
- listed("Skills: ", inventory.skills);
2944
- listed("Commands: ", inventory.commands);
2945
- listed("Agents: ", inventory.agents);
2946
- listed("Hooks: ", inventory.hooks);
2947
- listed("Servers: ", inventory.servers);
2948
- }
2949
- if (manifestRead.state === "ok") {
2950
- lines.push(
2951
- ` Checked before it loads: ${manifestRead.manifest.executable.length} ${manifestRead.manifest.executable.length === 1 ? "file" : "files"}, surface sha256:${manifestRead.manifest.surfaceSha256.slice(0, 12)}`
2952
- );
2953
- const consent = manifestRead.manifest.consent;
2954
- if (consent && typeof consent.at === "string")
2955
- lines.push(
2956
- ` Accepted: ${oneLine(consent.at)}${typeof consent.by === "string" ? ` by ${oneLine(consent.by)}` : ""}`
2957
- );
2958
- }
2959
- for (const finding of record.findings)
2960
- if (finding.level === "notUsed" || finding.level === "refused")
2961
- lines.push(
2962
- ` ${finding.level === "refused" ? "Refused" : "Not used"}: ${oneLine(finding.message)}`
2963
- );
2964
- deps.out(`${lines.join("\n")}
2965
- `);
2966
- return EXIT_OK;
2967
- }
2968
- __name(runDetails, "runDetails");
2969
- async function runToggle(deps, flags, enable) {
2970
- const command = enable ? "plugin enable" : "plugin disable";
2971
- const verb = enable ? "on" : "off";
2972
- if (flags.positional.length !== 1)
2973
- return failure(deps, flags.json, command, EXIT_USAGE, `${command} takes one plugin id.`);
2974
- const ctx = contextOf(deps, flags);
2975
- const untrusted = "This folder is not trusted yet. Open it with namzu once, or use --scope user.";
2976
- if (!ctx.trusted && (flags.scope === "project" || flags.scope === "local"))
2977
- return failure(deps, flags.json, command, EXIT_UNTRUSTED, untrusted);
2978
- const resolved = resolveId(deps, flags.json, command, flags.positional[0]);
2979
- if (typeof resolved === "number") return resolved;
2980
- const { id } = resolved;
2981
- const found = applicable(resolved.records, ctx.cwd, ctx.trusted);
2982
- const chosen = flags.scope ? found.here.find((r) => r.scope === flags.scope) : found.here[0];
2983
- if (chosen === void 0) {
2984
- if (!flags.scope && found.unread > 0)
2985
- return failure(deps, flags.json, command, EXIT_UNTRUSTED, untrusted, { id });
2986
- return failure(
2987
- deps,
2988
- flags.json,
2989
- command,
2990
- EXIT_NOINPUT,
2991
- flags.scope ? `${id} is not installed at scope ${flags.scope} here.` : `${id} is not installed for this folder or for you.`,
2992
- { id }
2993
- );
2994
- }
2995
- if (enable) {
2996
- const refusal = installedPluginRefusal(deps.namzuHome, id, {
2997
- blocked: deps.blockedMarketplaces,
2998
- allowed: deps.allowedMarketplaces
2999
- });
3000
- if (refusal !== void 0)
3001
- return failure(deps, flags.json, command, EXIT_UNTRUSTED, installedRefusalText(id, refusal), {
3002
- id
3003
- });
3004
- }
3005
- const layer = flags.scope ?? (chosen.scope === "user" ? "user" : "local");
3006
- const path = recordLayerPath(layer, { home: deps.namzuHome, cwd: ctx.cwd });
3007
- const own = readRecordLayer(path);
3008
- if (own.state === "unreadable")
3009
- return failure(
3010
- deps,
3011
- flags.json,
3012
- command,
3013
- EXIT_NOINPUT,
3014
- `The plugin records in ${path} could not be read (${own.reason}), so nothing was changed.`,
3015
- { id }
3016
- );
3017
- let changed = false;
3018
- if (own.enabledPlugins.get(id) !== enable) {
3019
- try {
3020
- setEnabledPlugin(path, deps.namzuHome, id, enable);
3021
- changed = true;
3022
- } catch (error) {
3023
- const failed = stateFailure(error);
3024
- return failure(deps, flags.json, command, failed.code, failed.message, { id });
3025
- }
3026
- }
3027
- const answer = currentEnabledAnswer(
3028
- { home: deps.namzuHome, cwd: ctx.cwd, projectTrusted: ctx.trusted },
3029
- id
3030
- );
3031
- const notes = [];
3032
- if (answer.on !== enable)
3033
- notes.push(
3034
- `It is still ${answer.on ? "on" : "off"} here: ${layerSentence(answer.by, answer.on)}.`
3035
- );
3036
- if (enable) {
3037
- const verdict = verifyInstalledCopy(
3038
- deps.namzuHome,
3039
- id,
3040
- chosen.installPath,
3041
- chosen.surfaceSha256
3042
- );
3043
- const all = readInstalledPlugins(deps.namzuHome);
3044
- const blocked = !verdict.ok ? verdict.message : all.state !== "unreadable" ? (await nameClashes(deps, ctx, all.plugins)).get(id) : void 0;
3045
- if (blocked !== void 0) notes.push(`It is still blocked and will not load: ${blocked}`);
3046
- }
3047
- if (enable && !deps.loadingOn)
3048
- notes.push(
3049
- "Plugin loading is off, so it will not run until you run: namzu config set plugins.enabled true"
3050
- );
3051
- const message = changed ? `Turned ${verb} ${id} (scope: ${layer}). It takes effect in new conversations.` : `${id} is already ${verb} at scope ${layer}.`;
3052
- if (flags.json)
3053
- deps.out(
3054
- `${JSON.stringify({
3055
- command,
3056
- outcome: changed ? enable ? "enabled" : "disabled" : "unchanged",
3057
- id,
3058
- scope: layer,
3059
- message,
3060
- effective: { enabled: answer.on, by: answer.by ?? null },
3061
- loading: deps.loadingOn ? "on" : "off",
3062
- ...notes.length > 0 ? { notes } : {}
3063
- })}
3064
- `
3065
- );
3066
- else deps.out(`${[message, ...notes].join("\n")}
3067
- `);
3068
- return EXIT_OK;
3069
- }
3070
- __name(runToggle, "runToggle");
3071
- async function runPluginRecords(verb, args, deps) {
3072
- const flags = parseFlags(args);
3073
- if (flags.error) return failure(deps, flags.json, `plugin ${verb}`, EXIT_USAGE, flags.error);
3074
- switch (verb) {
3075
- case "list":
3076
- return runList(deps, flags);
3077
- case "details":
3078
- return runDetails(deps, flags);
3079
- case "enable":
3080
- return runToggle(deps, flags, true);
3081
- case "disable":
3082
- return runToggle(deps, flags, false);
3083
- }
3084
- }
3085
- __name(runPluginRecords, "runPluginRecords");
3086
-
3087
- // src/integrations/plugins/install-preview.ts
3088
- var one = /* @__PURE__ */ __name((value) => terminalDisplayText(value).replace(/[\t\n\r]+/g, " "), "one");
3089
- function list(items) {
3090
- return items.map(one).join(", ");
3091
- }
3092
- __name(list, "list");
3093
- function bytes(count) {
3094
- return count < 1024 ? `${count} B` : `${(count / 1024).toFixed(1)} KB`;
3095
- }
3096
- __name(bytes, "bytes");
3097
- function runsLines(surface) {
3098
- const lines = [];
3099
- for (const hook2 of surface.hooks)
3100
- lines.push(
3101
- ` hook ${one(hook2.event)}${hook2.matcher !== void 0 ? ` ${one(hook2.matcher)}` : ""} -> ${hook2.type === "command" ? "" : `${hook2.type}: `}${one(hook2.run)}`
3102
- );
3103
- for (const hook2 of surface.fileHooks)
3104
- lines.push(
3105
- ` hook ${one(hook2.event)} in ${hook2.kind} ${one(hook2.name)} -> ${hook2.type === "command" ? "" : `${hook2.type}: `}${one(hook2.run)}`
3106
- );
3107
- for (const server of surface.mcpLocal)
3108
- lines.push(
3109
- ` server ${one(server.name)} -> ${one([server.command, ...server.args].join(" "))}${Object.keys(server.env).length > 0 ? ` (environment: ${list(Object.keys(server.env))})` : ""}${server.needsSetup === true ? " (needs setup: not started until its variables are set)" : ""}`
3110
- );
3111
- for (const server of surface.mcpRemote)
3112
- lines.push(
3113
- ` server ${one(server.name)} -> ${one(server.origin)} (asks you before it connects${server.sendsEnv.length > 0 ? `; would send ${server.sendsEnv.map((name) => `$${one(name)}`).join(", ")}` : ""}${server.headers.length > 0 ? `; headers: ${list(server.headers)}` : ""}${server.needsSetup === true ? "; needs setup" : ""})`
3114
- );
3115
- for (const module of surface.modules)
3116
- lines.push(
3117
- module.refused !== void 0 ? ` module ${one(module.path)} (not run: ${one(module.refused)}; a tool call is refused while it stays refused)` : module.tool === true ? ` module ${one(module.path)} (tools: JavaScript that runs inside the session when the plugin is turned on; what it declares is not read before it runs)` : module.isolated === true ? ` module ${one(module.path)} (runs in a worker with your permissions${module.declares !== void 0 && module.declares.length > 0 ? `; ${list(module.declares)}` : ""})` : ` module ${one(module.path)} (JavaScript that runs inside the session; what it declares is not read before it runs)`
3118
- );
3119
- const moduleTools = new Set(surface.modules.filter((m) => m.tool === true).map((m) => m.path));
3120
- for (const script of surface.scripts)
3121
- lines.push(
3122
- ` script ${one(script.path)} (${bytes(script.bytes)}${script.exec ? ", executable" : ""}${moduleTools.has(script.path) ? "; also imported as a module" : ""})`
3123
- );
3124
- return lines;
3125
- }
3126
- __name(runsLines, "runsLines");
3127
- function renderInstallPreview(plan, options) {
3128
- const lines = [
3129
- options.headline ?? `Install ${one(plan.name)} ${one(plan.version)} from ${one(plan.marketplace)}${plan.commit !== void 0 ? ` (commit ${plan.commit.slice(0, 7)})` : ""}? ${options.scopeLine}`,
3130
- ""
3131
- ];
3132
- if (options.changes !== void 0 && options.changes.length > 0) {
3133
- lines.push(" What changed since the version you have:");
3134
- for (const change of options.changes) lines.push(` ${one(change)}`);
3135
- lines.push("");
3136
- }
3137
- const { inventory, surface } = plan;
3138
- if (inventory.skills.length > 0)
3139
- lines.push(` Skills (${inventory.skills.length}): ${list(inventory.skills)}`);
3140
- if (inventory.commands.length > 0)
3141
- lines.push(
3142
- ` Commands (${inventory.commands.length}): ${inventory.commands.map((name) => `/${one(name)}`).join(", ")}`
3143
- );
3144
- if (inventory.agents.length > 0)
3145
- lines.push(` Agents (${inventory.agents.length}): ${list(inventory.agents)}`);
3146
- const runs = runsLines(surface);
3147
- lines.push(
3148
- runs.length > 0 ? " Runs on this computer:" : " Runs on this computer: nothing found."
3149
- );
3150
- lines.push(...runs);
3151
- if (surface.unpinnedDownload) lines.push(" This download is not pinned to a digest.");
3152
- for (const tools of surface.allowedTools)
3153
- lines.push(` Pre-approves tools: ${tools.kind} ${one(tools.name)} allows ${list(tools.tools)}`);
3154
- const listedElsewhere = /* @__PURE__ */ new Set(["mcp-server-remote", "mcp-needs-setup"]);
3155
- const notUsed = plan.findings.filter((f) => f.level === "notUsed" && !listedElsewhere.has(f.code));
3156
- if (notUsed.length > 0)
3157
- lines.push(
3158
- ` Not used by Namzu: ${[...new Set(notUsed.map((f) => f.field ?? f.code))].map(one).join(", ")}`
3159
- );
3160
- for (const finding of plan.findings.filter((f) => f.level === "refused"))
3161
- lines.push(` Left out: ${one(finding.message)}`);
3162
- for (const warning of plan.warnings) lines.push(` Note: ${one(warning)}`);
3163
- lines.push(
3164
- "",
3165
- "This plugin runs programs on your computer with your permissions. Namzu cannot",
3166
- "check what they do. Install only plugins you trust.",
3167
- `Surface: sha256:${plan.digest}`
3168
- );
3169
- return lines.join("\n");
3170
- }
3171
- __name(renderInstallPreview, "renderInstallPreview");
3172
-
3173
- // src/integrations/plugins/update-compare.ts
3174
- var OWN_MANIFESTS = /* @__PURE__ */ new Set([
3175
- PLUGIN_MANIFEST_FILENAME,
3176
- `${COMMON_MANIFEST_DIR}/${PLUGIN_MANIFEST_FILENAME}`
3177
- ]);
3178
- function compareUpdate(recorded, plan) {
3179
- const before = recorded.surface;
3180
- const changes = surfaceChanges(before, plan.surface);
3181
- const manifestChanged = recorded.manifestSha256 !== manifestDigest(plan.manifest);
3182
- const nothingRunsDifferently = JSON.stringify(before) === JSON.stringify(plan.surface) && [.../* @__PURE__ */ new Set([...Object.keys(plan.files), ...Object.keys(recorded.files)])].filter((path) => plan.files[path] !== recorded.files[path]).every((path) => {
3183
- if (path.split("/").pop() === PLUGIN_MANIFEST_FILENAME)
3184
- return OWN_MANIFESTS.has(path) && !manifestChanged;
3185
- return !isExecutablePath(path, 0) && !plan.surface.scripts.some((script) => script.path === path);
3186
- });
3187
- return {
3188
- changes: recorded.manifestSha256 !== void 0 && manifestChanged ? [...changes, "the plugin manifest changed"] : changes,
3189
- unchangedSurface: recorded.surfaceSha256 === plan.digest || nothingRunsDifferently
3190
- };
3191
- }
3192
- __name(compareUpdate, "compareUpdate");
3193
-
3194
2467
  export {
3195
2468
  readPluginManifestDetails,
3196
2469
  FetchError,
3197
2470
  fetchMarketplace,
3198
2471
  hashExecutableFiles,
2472
+ surfaceChanges,
3199
2473
  PlanRefusal,
3200
2474
  discardStaging,
3201
2475
  usedPluginNames,
3202
2476
  planInstall,
3203
- renderInstallPreview,
3204
2477
  SimulatedCrash,
3205
2478
  InstallConflict,
3206
2479
  trashFolder,
@@ -3227,14 +2500,7 @@ export {
3227
2500
  newerVersions,
3228
2501
  withBlockList,
3229
2502
  isInside,
3230
- refreshRemoteMarketplace,
3231
- compareUpdate,
3232
- PLUGIN_RECORD_VERBS,
3233
- PLUGIN_RECORD_HELP,
3234
- failure,
3235
- stateFailure,
3236
- resolveId,
3237
- applicable,
3238
- runPluginRecords
2503
+ marketplaceRefreshSkip,
2504
+ refreshRemoteMarketplace
3239
2505
  };
3240
- //# sourceMappingURL=chunk-SIFGFAJK.js.map
2506
+ //# sourceMappingURL=chunk-LIX2TWWW.js.map