@namzu/cli 62.0.0 → 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 (502) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/chunks/{acp-ZOYZKSSE.js → acp-6CGBHCQA.js} +144 -142
  4. package/dist/chunks/acp-6CGBHCQA.js.map +6 -0
  5. package/dist/chunks/{activity-command-6QJS2HHJ.js → activity-command-LBFSBUTO.js} +15 -15
  6. package/dist/chunks/{add-ODDH7BKR.js → add-QKYYI3YT.js} +34 -34
  7. package/dist/chunks/{agent-CJHQKHCT.js → agent-JIYXK5JR.js} +59 -59
  8. package/dist/chunks/agent-session-NMIKA55B.js +103 -0
  9. package/dist/chunks/{apply-at-exit-3CLS5UIJ.js → apply-at-exit-7RHQBQPY.js} +7 -7
  10. package/dist/chunks/{archive-7P2BFGJU.js → archive-J4ZUAJ2G.js} +13 -13
  11. package/dist/chunks/{auth-AJJVDYZS.js → auth-UJVEA47C.js} +13 -13
  12. package/dist/chunks/{bin-main-N4HEBMLG.js → bin-main-ZH7BZUOM.js} +9 -9
  13. package/dist/chunks/{binding-CR4HQSQ6.js → binding-3PCEKVOO.js} +3 -3
  14. package/dist/chunks/{browser-M3SO5WL7.js → browser-A67ROZXW.js} +7 -7
  15. package/dist/chunks/{chat-YZXLDJEA.js → chat-UU23NM3Q.js} +18 -18
  16. package/dist/chunks/{chunk-WNCN7H7N.js → chunk-224LDNU5.js} +3 -3
  17. package/dist/chunks/{chunk-PEHXWJ2M.js → chunk-25VC6FKF.js} +3 -3
  18. package/dist/chunks/{chunk-AA2WIPDO.js → chunk-2AMVNSDK.js} +4 -4
  19. package/dist/chunks/{chunk-BRQWRDRX.js → chunk-33U2WYBU.js} +97 -99
  20. package/dist/chunks/chunk-33U2WYBU.js.map +6 -0
  21. package/dist/chunks/{chunk-DOB3X7GV.js → chunk-35JUKJRN.js} +2 -2
  22. package/dist/chunks/{chunk-WNNRTDIR.js → chunk-37ZR2RAN.js} +61 -13
  23. package/dist/chunks/chunk-37ZR2RAN.js.map +6 -0
  24. package/dist/chunks/{chunk-2WVKPFUZ.js → chunk-3FYZVHC5.js} +6 -6
  25. package/dist/chunks/{chunk-NFSIMJV6.js → chunk-3L5ICOUV.js} +3 -3
  26. package/dist/chunks/{chunk-AYW6CLMU.js → chunk-3LZDJBR4.js} +3 -3
  27. package/dist/chunks/{chunk-POEF6EMV.js → chunk-3T2SSK3Z.js} +4 -4
  28. package/dist/chunks/{chunk-K427MVQW.js → chunk-46VWCTBU.js} +3 -3
  29. package/dist/chunks/{chunk-D52V2ESQ.js → chunk-47HEFQUP.js} +2 -2
  30. package/dist/chunks/{chunk-U3WWDJMM.js → chunk-4EL7KEYZ.js} +3 -3
  31. package/dist/chunks/{chunk-BUQ4PNJZ.js → chunk-4LHHK42J.js} +2 -2
  32. package/dist/chunks/{chunk-AX65J6BY.js → chunk-5CS5WG6N.js} +20 -20
  33. package/dist/chunks/{chunk-P7HBUWYJ.js → chunk-5HRR6OQX.js} +7 -7
  34. package/dist/chunks/{chunk-XEHRRJKG.js → chunk-6MT5PLKV.js} +2 -2
  35. package/dist/chunks/{chunk-J2T2CZH5.js → chunk-6RDYLP52.js} +2 -2
  36. package/dist/chunks/{chunk-BXCAFOOE.js → chunk-6W6ILBXE.js} +15 -9
  37. package/dist/chunks/chunk-6W6ILBXE.js.map +6 -0
  38. package/dist/chunks/{chunk-EZWVFGCN.js → chunk-72VCA33E.js} +2 -2
  39. package/dist/chunks/{chunk-C5BFHARA.js → chunk-73QLEKJH.js} +6 -6
  40. package/dist/chunks/{chunk-MSCXXLWD.js → chunk-7BZZGFKW.js} +4 -4
  41. package/dist/chunks/{chunk-VEN56GHK.js → chunk-7ENFV3XO.js} +2 -2
  42. package/dist/chunks/{chunk-QAQIHOU3.js → chunk-7P4QN2RO.js} +3 -3
  43. package/dist/chunks/{chunk-BEN46ZSV.js → chunk-7WU6QNGO.js} +2 -2
  44. package/dist/chunks/{chunk-2VXLC3R3.js → chunk-7ZEX6QP7.js} +3 -3
  45. package/dist/chunks/{chunk-OIGJLSDO.js → chunk-AD7Z5UEB.js} +2 -2
  46. package/dist/chunks/{chunk-KJMEQL42.js → chunk-AHFKN3F5.js} +2 -2
  47. package/dist/chunks/{chunk-US5WLUOG.js → chunk-AV3WM4TM.js} +19 -8
  48. package/dist/chunks/chunk-AV3WM4TM.js.map +6 -0
  49. package/dist/chunks/{chunk-KFFNADSK.js → chunk-BXO7FXUF.js} +2 -2
  50. package/dist/chunks/{chunk-A73AFEQT.js → chunk-C56SXFLU.js} +10 -10
  51. package/dist/chunks/{chunk-6I7M4QYH.js → chunk-CN4W3FVM.js} +5 -5
  52. package/dist/chunks/{chunk-RHAGQ36V.js → chunk-CNTMRBQT.js} +2 -2
  53. package/dist/chunks/{chunk-OCZ4VX2S.js → chunk-DCNCIL5A.js} +4 -4
  54. package/dist/chunks/{chunk-Q7LWS64N.js → chunk-DHRN4HVT.js} +6 -6
  55. package/dist/chunks/{chunk-42W3V7XG.js → chunk-E2LKNISN.js} +3 -3
  56. package/dist/chunks/{chunk-U64L35WP.js → chunk-E6BMB5D4.js} +3 -3
  57. package/dist/chunks/{chunk-FUNLX5HS.js → chunk-EE4ROHCL.js} +5 -5
  58. package/dist/chunks/{chunk-N3UAJR6E.js → chunk-ENKSNZTO.js} +11 -3
  59. package/dist/chunks/{chunk-N3UAJR6E.js.map → chunk-ENKSNZTO.js.map} +1 -1
  60. package/dist/chunks/{chunk-V5RAONF5.js → chunk-EV7PYTOP.js} +2 -2
  61. package/dist/chunks/{chunk-HT57JV6J.js → chunk-FHR5FWGS.js} +4 -4
  62. package/dist/chunks/{chunk-DV6RUBQX.js → chunk-FPKL3N3J.js} +3 -3
  63. package/dist/chunks/{chunk-TUFBZUQ6.js → chunk-FSY26KLI.js} +3 -3
  64. package/dist/chunks/{chunk-ADLC3X3H.js → chunk-G3R447P4.js} +4 -4
  65. package/dist/chunks/{chunk-OH2OQ23P.js → chunk-GPYNBNZV.js} +2 -2
  66. package/dist/chunks/{chunk-AMDHAFS7.js → chunk-GQU2MHNZ.js} +8 -8
  67. package/dist/chunks/{chunk-5PRXG5O4.js → chunk-H2FQ4QLS.js} +6 -6
  68. package/dist/chunks/{chunk-67SHGC27.js → chunk-H3763MSH.js} +3 -3
  69. package/dist/chunks/{chunk-6PTUG5RV.js → chunk-IWPDMUHJ.js} +2 -2
  70. package/dist/chunks/{chunk-H3B7QLDY.js → chunk-IX4KSPGQ.js} +5 -5
  71. package/dist/chunks/{chunk-QOSFSIVL.js → chunk-J35W6BKJ.js} +2 -2
  72. package/dist/chunks/{chunk-YW4543IU.js → chunk-J3BP3W2N.js} +2 -2
  73. package/dist/chunks/{chunk-72VM5GMJ.js → chunk-J6XAYUON.js} +3 -3
  74. package/dist/chunks/{chunk-D4XEV3XS.js → chunk-JWZLFRII.js} +2 -2
  75. package/dist/chunks/{chunk-CKR7247U.js → chunk-K3PXRK3Z.js} +8 -8
  76. package/dist/chunks/{chunk-5F72I2UH.js → chunk-K6M4OTHF.js} +3 -3
  77. package/dist/chunks/{chunk-OJHZBH75.js → chunk-KCEVJCGE.js} +11 -11
  78. package/dist/chunks/{chunk-NQ53XPIN.js → chunk-KID2I7VD.js} +2 -2
  79. package/dist/chunks/{chunk-ULUAX2JS.js → chunk-KK6CWJFZ.js} +2 -2
  80. package/dist/chunks/{chunk-QNIQAAX7.js → chunk-KKFKXDT4.js} +3 -3
  81. package/dist/chunks/{chunk-JJ7RB62R.js → chunk-KXGVJ55A.js} +5 -5
  82. package/dist/chunks/{chunk-ZH7MLQCI.js → chunk-L4QIJVNX.js} +4 -4
  83. package/dist/chunks/{chunk-TGAV3EAS.js → chunk-LAU4ESKV.js} +5 -4
  84. package/dist/chunks/chunk-LAU4ESKV.js.map +6 -0
  85. package/dist/chunks/{chunk-CJ3K2BSQ.js → chunk-LIX2TWWW.js} +64 -798
  86. package/dist/chunks/chunk-LIX2TWWW.js.map +6 -0
  87. package/dist/chunks/{chunk-MOJ2ELAF.js → chunk-LJWCYIQV.js} +10 -10
  88. package/dist/chunks/{chunk-DL3UT5SO.js → chunk-LO7LBC5T.js} +2 -2
  89. package/dist/chunks/{chunk-IULTYOEN.js → chunk-LPYA4GW7.js} +16 -16
  90. package/dist/chunks/{chunk-6PNYCYHO.js → chunk-LUH7N5AG.js} +3 -3
  91. package/dist/chunks/{chunk-XZ47DBWY.js → chunk-LWBPCNGV.js} +2 -2
  92. package/dist/chunks/{chunk-54PT3PJZ.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-KEFCK3KU.js → chunk-MAFRPAQY.js} +13 -518
  96. package/dist/chunks/chunk-MAFRPAQY.js.map +6 -0
  97. package/dist/chunks/{chunk-CPM223M5.js → chunk-MGU27EKU.js} +2 -2
  98. package/dist/chunks/{chunk-UX5OQJII.js → chunk-MNSSDI5Y.js} +3 -3
  99. package/dist/chunks/{chunk-TF4HDGCY.js → chunk-MYSCS3LD.js} +2 -2
  100. package/dist/chunks/{chunk-L64U2I4J.js → chunk-MZWFJMIM.js} +5 -5
  101. package/dist/chunks/{chunk-WFCKZ2IX.js → chunk-N7BCFEJJ.js} +2 -2
  102. package/dist/chunks/{chunk-JGF7X65K.js → chunk-NE2J7UOC.js} +2 -2
  103. package/dist/chunks/{chunk-S7XQVBC7.js → chunk-NEAH7HVP.js} +26 -5
  104. package/dist/chunks/chunk-NEAH7HVP.js.map +6 -0
  105. package/dist/chunks/{chunk-JAJRZSOH.js → chunk-NGGXYIAN.js} +4 -4
  106. package/dist/chunks/{chunk-AZX32C4J.js → chunk-NV3AX3OX.js} +4 -4
  107. package/dist/chunks/{chunk-Q7YWSR2R.js → chunk-O4WK5FUN.js} +88 -60
  108. package/dist/chunks/chunk-O4WK5FUN.js.map +6 -0
  109. package/dist/chunks/{chunk-AFU7WXAZ.js → chunk-ODPKECHM.js} +3 -3
  110. package/dist/chunks/{chunk-B6JUB5HZ.js → chunk-OFUZHNUY.js} +5 -5
  111. package/dist/chunks/{chunk-Q56NYYTR.js → chunk-OICFYPUQ.js} +44 -44
  112. package/dist/chunks/{chunk-BJBNTKB3.js → chunk-ON7XQGDA.js} +4 -4
  113. package/dist/chunks/{chunk-HH5VGFFN.js → chunk-ONKMPBPP.js} +2 -2
  114. package/dist/chunks/{chunk-DU5OE5ES.js → chunk-OT6WAUFD.js} +8 -8
  115. package/dist/chunks/{chunk-BUVIHQNI.js → chunk-OTVNG2RH.js} +3 -3
  116. package/dist/chunks/{chunk-YGGJK45A.js → chunk-P72VIXPI.js} +2 -2
  117. package/dist/chunks/{chunk-5S76UPIY.js → chunk-PH2VOYXI.js} +10 -9
  118. package/dist/chunks/chunk-PH2VOYXI.js.map +6 -0
  119. package/dist/chunks/{chunk-STGOHHWW.js → chunk-PPXMVZZM.js} +3 -3
  120. package/dist/chunks/{chunk-TUHSRGMP.js → chunk-PR3MVT6X.js} +6 -6
  121. package/dist/chunks/{chunk-TUHSRGMP.js.map → chunk-PR3MVT6X.js.map} +1 -1
  122. package/dist/chunks/{chunk-WYQAUERM.js → chunk-Q3ZCXNLT.js} +4 -4
  123. package/dist/chunks/{chunk-V64YKHJD.js → chunk-Q4LY4V73.js} +5 -5
  124. package/dist/chunks/{chunk-UJDNT44S.js → chunk-QH55BL6G.js} +3 -3
  125. package/dist/chunks/{chunk-7YNKZZ4E.js → chunk-QK3MI3SB.js} +49 -19
  126. package/dist/chunks/chunk-QK3MI3SB.js.map +6 -0
  127. package/dist/chunks/{chunk-C3LYWLXF.js → chunk-QS3W6PHW.js} +7 -7
  128. package/dist/chunks/{chunk-MWW6FVKA.js → chunk-RAD42QX6.js} +2 -2
  129. package/dist/chunks/{chunk-34BTV64A.js → chunk-RF6XIV7O.js} +5 -5
  130. package/dist/chunks/{chunk-P243T5OG.js → chunk-RLT3CQPF.js} +4 -4
  131. package/dist/chunks/{chunk-XF3HSQOR.js → chunk-S3MI73RJ.js} +3 -3
  132. package/dist/chunks/{chunk-OGDCTQSN.js → chunk-S4O2YFPC.js} +13 -13
  133. package/dist/chunks/{chunk-XPHJBBXH.js → chunk-S5XNNB36.js} +1409 -651
  134. package/dist/chunks/chunk-S5XNNB36.js.map +6 -0
  135. package/dist/chunks/{chunk-BMK5OURE.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-5AM3AURF.js → chunk-SOFHWWJH.js} +2 -2
  139. package/dist/chunks/{chunk-OKVCLTYB.js → chunk-SOUXHV54.js} +2 -2
  140. package/dist/chunks/{chunk-GQ3L6SJB.js → chunk-SRY4THD4.js} +9 -9
  141. package/dist/chunks/{chunk-OZ2C5MPW.js → chunk-ST23JVRU.js} +5 -5
  142. package/dist/chunks/{chunk-K6FQ5ZH6.js → chunk-SUR4OMA6.js} +9 -9
  143. package/dist/chunks/{chunk-FV6QX5N6.js → chunk-SVQV6RXR.js} +3 -3
  144. package/dist/chunks/{chunk-GSXJOUKF.js → chunk-T7LGBJ3Y.js} +2 -2
  145. package/dist/chunks/{chunk-K2LAFXS3.js → chunk-T7WRPQ65.js} +2 -2
  146. package/dist/chunks/{chunk-AEAJGPDR.js → chunk-TIXLIDHF.js} +2 -2
  147. package/dist/chunks/{chunk-FOZ2UUM3.js → chunk-TJVM2KTD.js} +9 -9
  148. package/dist/chunks/{chunk-S3HMURFS.js → chunk-TQGVEISD.js} +2 -2
  149. package/dist/chunks/{chunk-T6SBGDRT.js → chunk-UI7QTTM2.js} +6 -6
  150. package/dist/chunks/{chunk-I4U75RHE.js → chunk-UM3XWJVJ.js} +2 -2
  151. package/dist/chunks/{chunk-T4737SRH.js → chunk-UOX7WH3J.js} +3 -3
  152. package/dist/chunks/{chunk-HJ4K7D5N.js → chunk-UP77FF2W.js} +3 -3
  153. package/dist/chunks/{chunk-FCYLTB5A.js → chunk-VISMRN4J.js} +4 -4
  154. package/dist/chunks/{chunk-D4MTLAJN.js → chunk-VPWFFR5J.js} +2 -2
  155. package/dist/chunks/{chunk-YR325CKB.js → chunk-VQN7GC3B.js} +12 -12
  156. package/dist/chunks/{chunk-RKDRG4NX.js → chunk-W7XW3NXA.js} +4 -4
  157. package/dist/chunks/{chunk-XC4KZY2A.js → chunk-WSB2MCTI.js} +2 -2
  158. package/dist/chunks/{chunk-4ZGZJ6F5.js → chunk-WSPWJYLQ.js} +7 -7
  159. package/dist/chunks/{chunk-R7OKPWPT.js → chunk-XGEW2R3P.js} +2 -2
  160. package/dist/chunks/{chunk-5O4CABZS.js → chunk-XVKQQTVV.js} +2 -2
  161. package/dist/chunks/{chunk-55E3S7ZA.js → chunk-XXXJOYTQ.js} +2 -2
  162. package/dist/chunks/{chunk-WYYJJAXJ.js → chunk-Y24UJ26G.js} +3 -3
  163. package/dist/chunks/{chunk-KUXW74VV.js → chunk-YFIKYLOB.js} +9 -9
  164. package/dist/chunks/{chunk-2CPWLGHD.js → chunk-YXQG466V.js} +3 -3
  165. package/dist/chunks/{chunk-PILOWM4F.js → chunk-ZACF6CVM.js} +2 -2
  166. package/dist/chunks/{cli-runtime-KA4RC4V4.js → cli-runtime-RAHU2FF7.js} +24 -24
  167. package/dist/chunks/{commands-DXH5JRFP.js → commands-252QNZKK.js} +6 -6
  168. package/dist/chunks/{config-OOGXFNA3.js → config-CX6PRTEY.js} +14 -14
  169. package/dist/chunks/{cost-6KJARIGM.js → cost-L3RROPK6.js} +5 -5
  170. package/dist/chunks/{crash-report-3ZOEHHEI.js → crash-report-NND4WWJA.js} +6 -6
  171. package/dist/chunks/{desktop-host-schedule-tool-4RMIUJF6.js → desktop-host-schedule-tool-IKWEHI4H.js} +33 -33
  172. package/dist/chunks/{dist-4L2V72GD.js → dist-2MHNJVOM.js} +14 -2
  173. package/dist/chunks/{dist-NVBSFLTI.js → dist-3DMPFVGW.js} +3 -3
  174. package/dist/chunks/{dist-Y52DNARF.js → dist-7TMA3NQ7.js} +2 -2
  175. package/dist/chunks/{dist-L7TD2FDZ.js → dist-DFKDXC5Q.js} +2 -2
  176. package/dist/chunks/{dist-SIFEVDTY.js → dist-MFWZVDSA.js} +2 -2
  177. package/dist/chunks/{dist-5F5CZWFT.js → dist-TH2HM2GH.js} +2 -2
  178. package/dist/chunks/{dist-G7UUXIXJ.js → dist-UAUXP4UC.js} +2 -2
  179. package/dist/chunks/{dist-K72ZLN23.js → dist-YXOQEPCZ.js} +2 -2
  180. package/dist/chunks/{doctor-VNOAZO3I.js → doctor-O5OZR6YG.js} +49 -46
  181. package/dist/chunks/{drain-Y3SESO5B.js → drain-LUUO4FI3.js} +22 -22
  182. package/dist/chunks/{entry-YV4QH7DR.js → entry-XPFYPIDS.js} +6 -6
  183. package/dist/chunks/{eval-BVNJ4K5Y.js → eval-V4HUXXC2.js} +18 -12
  184. package/dist/chunks/{eval-BVNJ4K5Y.js.map → eval-V4HUXXC2.js.map} +1 -1
  185. package/dist/chunks/{exec-HY5HAUFA.js → exec-QYZKP6RS.js} +72 -54
  186. package/dist/chunks/exec-QYZKP6RS.js.map +6 -0
  187. package/dist/chunks/{extension-QCXFSOMC.js → extension-AVJ2LV2G.js} +6 -6
  188. package/dist/chunks/{feed-FWRV24AI.js → feed-UKN7XNCC.js} +4 -4
  189. package/dist/chunks/{home-RXA7GMAW.js → home-A7434CUG.js} +3 -3
  190. package/dist/chunks/{homes-RI3FTXOG.js → homes-U4IALPDB.js} +5 -5
  191. package/dist/chunks/{hooks-JPFB27RR.js → hooks-TQ7KEIX5.js} +24 -24
  192. package/dist/chunks/{hooks-report-KM6KRZRW.js → hooks-report-R6KBKZOI.js} +20 -20
  193. package/dist/chunks/{host-JZPZJICP.js → host-S2OSQNIF.js} +12 -12
  194. package/dist/chunks/{host-queries-3NYSJCGN.js → host-queries-VKIZCSD3.js} +18 -18
  195. package/dist/chunks/{installed-list-FT4FSKGM.js → installed-list-VGP7FMFB.js} +4 -4
  196. package/dist/chunks/{launch-UESAO3GK.js → launch-LWAQXYIA.js} +29 -29
  197. package/dist/chunks/{learn-3TU3ZLHJ.js → learn-GIKQBJN5.js} +18 -18
  198. package/dist/chunks/{learn-builtin-J2KRSGUB.js → learn-builtin-HOFMWHQP.js} +21 -21
  199. package/dist/chunks/{lifecycle-OWLUGMJN.js → lifecycle-4OBW7B42.js} +39 -39
  200. package/dist/chunks/{list-BIVADLIP.js → list-O2I3ECME.js} +20 -20
  201. package/dist/chunks/{live-MW4OA6OG.js → live-DCRF5F6P.js} +49 -45
  202. package/dist/chunks/{load-ZXUDPY34.js → load-LHCKRZFB.js} +11 -11
  203. package/dist/chunks/{logs-5ZGRVNF4.js → logs-UMD7HBUO.js} +4 -4
  204. package/dist/chunks/{mcp-DTMEZ6I6.js → mcp-35NTHODS.js} +27 -27
  205. package/dist/chunks/{mcp-serve-GMWIFBPW.js → mcp-serve-PCEC55MI.js} +19 -19
  206. package/dist/chunks/{message-command-KAJR3QEG.js → message-command-34BVXT5R.js} +65 -65
  207. package/dist/chunks/{open-3YROUC7F.js → open-DK276PG4.js} +8 -8
  208. package/dist/chunks/{operator-tools-6SDUBJON.js → operator-tools-RG247DOI.js} +16 -16
  209. package/dist/chunks/{output-schema-XV4RVXXK.js → output-schema-WBFGDY7D.js} +3 -3
  210. package/dist/chunks/{pal-RK5QZ4LQ.js → pal-OBXTNMGX.js} +16 -16
  211. package/dist/chunks/{peers-YQ4US53G.js → peers-RBR7QYPG.js} +9 -9
  212. package/dist/chunks/{peers-HLFUEQJJ.js → peers-ZSKWVLA4.js} +21 -21
  213. package/dist/chunks/{plugin-5RL3RPR3.js → plugin-PBIAJSYH.js} +52 -51
  214. package/dist/chunks/plugin-PBIAJSYH.js.map +6 -0
  215. package/dist/chunks/{providers-DEBQUBNW.js → providers-EW4LE5AZ.js} +11 -11
  216. package/dist/chunks/{providers-75MC4K7W.js → providers-V4MMZ7X5.js} +18 -18
  217. package/dist/chunks/{pty-GTQFDVCO.js → pty-XV7IOHGX.js} +3 -3
  218. package/dist/chunks/resume-GA7INROY.js +27 -0
  219. package/dist/chunks/{resume-command-6UAIWTCL.js → resume-command-VABS2KGI.js} +4 -4
  220. package/dist/chunks/{running-5YF7VHTF.js → running-LDQLXUGW.js} +4 -4
  221. package/dist/chunks/{schedule-D7NLKN4F.js → schedule-L5AAS4JQ.js} +12 -12
  222. package/dist/chunks/{send-IB7CNIDR.js → send-2KB5VRUT.js} +20 -20
  223. package/dist/chunks/send-person-EFHYG2GX.js +34 -0
  224. package/dist/chunks/{servers-ZP6DRGF2.js → servers-WIKRFBKU.js} +8 -8
  225. package/dist/chunks/{service-K4ZLR63R.js → service-LXQA5RI7.js} +40 -40
  226. package/dist/chunks/{session-options-TG26QZZ6.js → session-options-2LDJWGYZ.js} +5 -5
  227. package/dist/chunks/{setting-cli-IU6A6I6W.js → setting-cli-6T6H6TJ7.js} +14 -14
  228. package/dist/chunks/{skills-3HLNJWGS.js → skills-YAIICRGB.js} +28 -28
  229. package/dist/chunks/{source-deliveries-45TER3PU.js → source-deliveries-VB4F2DV5.js} +18 -18
  230. package/dist/chunks/{start-check-2WETAK5Z.js → start-check-TE3CE7NZ.js} +2 -2
  231. package/dist/chunks/{startup-failure-JMIJL67P.js → startup-failure-PBWJF4DV.js} +2 -2
  232. package/dist/chunks/{state-MJNHJ5FV.js → state-UGZ334GT.js} +21 -21
  233. package/dist/chunks/{store-E7VNPPQT.js → store-3REZKYH5.js} +9 -9
  234. package/dist/chunks/{store-U2O2Y22S.js → store-75XB557Z.js} +13 -13
  235. package/dist/chunks/{store-X3LC5BJX.js → store-RV6QGLU2.js} +4 -4
  236. package/dist/chunks/{store-SPOO5FU6.js → store-VQ5OTKXT.js} +3 -3
  237. package/dist/chunks/{tui-TVWSUSQH.js → tui-IEPKJA46.js} +202 -108
  238. package/dist/chunks/tui-IEPKJA46.js.map +6 -0
  239. package/dist/chunks/{update-3HG4RCUQ.js → update-NPWMEWAL.js} +8 -8
  240. package/dist/chunks/{watch-JHR5PG25.js → watch-SI7TFFVA.js} +112 -111
  241. package/dist/chunks/watch-SI7TFFVA.js.map +6 -0
  242. package/dist/chunks/{windows-home-6PZ2XTQH.js → windows-home-4XSPGUOR.js} +5 -5
  243. package/dist/chunks/{workspaces-PMOLQDFU.js → workspaces-UB6NF7LY.js} +17 -17
  244. package/dist/chunks/{worktree-NLBILYL2.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 +2 -0
  262. package/dist/integrations/sessions/store.d.ts.map +1 -1
  263. package/dist/integrations/state/project-lookup.d.ts.map +1 -1
  264. package/dist/integrations/subagents/agent-hooks.d.ts.map +1 -1
  265. package/dist/integrations/subagents/worktree-driver.d.ts +11 -0
  266. package/dist/integrations/subagents/worktree-driver.d.ts.map +1 -1
  267. package/dist/integrations/trust/folder-grants.d.ts.map +1 -1
  268. package/dist/integrations/worktrees/managed.d.ts +35 -2
  269. package/dist/integrations/worktrees/managed.d.ts.map +1 -1
  270. package/dist/sdk-peer.js +13 -1
  271. package/dist/skills/skill-hooks.d.ts.map +1 -1
  272. package/dist/tui/App.d.ts.map +1 -1
  273. package/dist/tui/StatusBar.d.ts +1 -5
  274. package/dist/tui/StatusBar.d.ts.map +1 -1
  275. package/dist/tui/agent.d.ts.map +1 -1
  276. package/dist/tui/index.d.ts.map +1 -1
  277. package/dist/tui/slashCommands.d.ts.map +1 -1
  278. package/dist/tui/status-line/run-command.d.ts +5 -1
  279. package/dist/tui/status-line/run-command.d.ts.map +1 -1
  280. package/dist/tui/terminal-reply-filter.d.ts +49 -0
  281. package/dist/tui/terminal-reply-filter.d.ts.map +1 -0
  282. package/package.json +2 -2
  283. package/dist/chunks/acp-ZOYZKSSE.js.map +0 -6
  284. package/dist/chunks/agent-session-LHCPW65J.js +0 -103
  285. package/dist/chunks/chunk-5S76UPIY.js.map +0 -6
  286. package/dist/chunks/chunk-7YNKZZ4E.js.map +0 -6
  287. package/dist/chunks/chunk-BBTPD3DU.js +0 -19
  288. package/dist/chunks/chunk-BBTPD3DU.js.map +0 -6
  289. package/dist/chunks/chunk-BRQWRDRX.js.map +0 -6
  290. package/dist/chunks/chunk-BXCAFOOE.js.map +0 -6
  291. package/dist/chunks/chunk-CJ3K2BSQ.js.map +0 -6
  292. package/dist/chunks/chunk-KEFCK3KU.js.map +0 -6
  293. package/dist/chunks/chunk-Q7YWSR2R.js.map +0 -6
  294. package/dist/chunks/chunk-S7XQVBC7.js.map +0 -6
  295. package/dist/chunks/chunk-TGAV3EAS.js.map +0 -6
  296. package/dist/chunks/chunk-US5WLUOG.js.map +0 -6
  297. package/dist/chunks/chunk-WNNRTDIR.js.map +0 -6
  298. package/dist/chunks/chunk-XPHJBBXH.js.map +0 -6
  299. package/dist/chunks/exec-HY5HAUFA.js.map +0 -6
  300. package/dist/chunks/plugin-5RL3RPR3.js.map +0 -6
  301. package/dist/chunks/resume-GWI4C4UT.js +0 -27
  302. package/dist/chunks/send-person-ELJOZHST.js +0 -34
  303. package/dist/chunks/tui-TVWSUSQH.js.map +0 -6
  304. package/dist/chunks/watch-JHR5PG25.js.map +0 -6
  305. /package/dist/chunks/{activity-command-6QJS2HHJ.js.map → activity-command-LBFSBUTO.js.map} +0 -0
  306. /package/dist/chunks/{add-ODDH7BKR.js.map → add-QKYYI3YT.js.map} +0 -0
  307. /package/dist/chunks/{agent-CJHQKHCT.js.map → agent-JIYXK5JR.js.map} +0 -0
  308. /package/dist/chunks/{agent-session-LHCPW65J.js.map → agent-session-NMIKA55B.js.map} +0 -0
  309. /package/dist/chunks/{apply-at-exit-3CLS5UIJ.js.map → apply-at-exit-7RHQBQPY.js.map} +0 -0
  310. /package/dist/chunks/{archive-7P2BFGJU.js.map → archive-J4ZUAJ2G.js.map} +0 -0
  311. /package/dist/chunks/{auth-AJJVDYZS.js.map → auth-UJVEA47C.js.map} +0 -0
  312. /package/dist/chunks/{bin-main-N4HEBMLG.js.map → bin-main-ZH7BZUOM.js.map} +0 -0
  313. /package/dist/chunks/{binding-CR4HQSQ6.js.map → binding-3PCEKVOO.js.map} +0 -0
  314. /package/dist/chunks/{browser-M3SO5WL7.js.map → browser-A67ROZXW.js.map} +0 -0
  315. /package/dist/chunks/{chat-YZXLDJEA.js.map → chat-UU23NM3Q.js.map} +0 -0
  316. /package/dist/chunks/{chunk-WNCN7H7N.js.map → chunk-224LDNU5.js.map} +0 -0
  317. /package/dist/chunks/{chunk-PEHXWJ2M.js.map → chunk-25VC6FKF.js.map} +0 -0
  318. /package/dist/chunks/{chunk-AA2WIPDO.js.map → chunk-2AMVNSDK.js.map} +0 -0
  319. /package/dist/chunks/{chunk-DOB3X7GV.js.map → chunk-35JUKJRN.js.map} +0 -0
  320. /package/dist/chunks/{chunk-2WVKPFUZ.js.map → chunk-3FYZVHC5.js.map} +0 -0
  321. /package/dist/chunks/{chunk-NFSIMJV6.js.map → chunk-3L5ICOUV.js.map} +0 -0
  322. /package/dist/chunks/{chunk-AYW6CLMU.js.map → chunk-3LZDJBR4.js.map} +0 -0
  323. /package/dist/chunks/{chunk-POEF6EMV.js.map → chunk-3T2SSK3Z.js.map} +0 -0
  324. /package/dist/chunks/{chunk-K427MVQW.js.map → chunk-46VWCTBU.js.map} +0 -0
  325. /package/dist/chunks/{chunk-D52V2ESQ.js.map → chunk-47HEFQUP.js.map} +0 -0
  326. /package/dist/chunks/{chunk-U3WWDJMM.js.map → chunk-4EL7KEYZ.js.map} +0 -0
  327. /package/dist/chunks/{chunk-BUQ4PNJZ.js.map → chunk-4LHHK42J.js.map} +0 -0
  328. /package/dist/chunks/{chunk-AX65J6BY.js.map → chunk-5CS5WG6N.js.map} +0 -0
  329. /package/dist/chunks/{chunk-P7HBUWYJ.js.map → chunk-5HRR6OQX.js.map} +0 -0
  330. /package/dist/chunks/{chunk-XEHRRJKG.js.map → chunk-6MT5PLKV.js.map} +0 -0
  331. /package/dist/chunks/{chunk-J2T2CZH5.js.map → chunk-6RDYLP52.js.map} +0 -0
  332. /package/dist/chunks/{chunk-EZWVFGCN.js.map → chunk-72VCA33E.js.map} +0 -0
  333. /package/dist/chunks/{chunk-C5BFHARA.js.map → chunk-73QLEKJH.js.map} +0 -0
  334. /package/dist/chunks/{chunk-MSCXXLWD.js.map → chunk-7BZZGFKW.js.map} +0 -0
  335. /package/dist/chunks/{chunk-VEN56GHK.js.map → chunk-7ENFV3XO.js.map} +0 -0
  336. /package/dist/chunks/{chunk-QAQIHOU3.js.map → chunk-7P4QN2RO.js.map} +0 -0
  337. /package/dist/chunks/{chunk-BEN46ZSV.js.map → chunk-7WU6QNGO.js.map} +0 -0
  338. /package/dist/chunks/{chunk-2VXLC3R3.js.map → chunk-7ZEX6QP7.js.map} +0 -0
  339. /package/dist/chunks/{chunk-OIGJLSDO.js.map → chunk-AD7Z5UEB.js.map} +0 -0
  340. /package/dist/chunks/{chunk-KJMEQL42.js.map → chunk-AHFKN3F5.js.map} +0 -0
  341. /package/dist/chunks/{chunk-KFFNADSK.js.map → chunk-BXO7FXUF.js.map} +0 -0
  342. /package/dist/chunks/{chunk-A73AFEQT.js.map → chunk-C56SXFLU.js.map} +0 -0
  343. /package/dist/chunks/{chunk-6I7M4QYH.js.map → chunk-CN4W3FVM.js.map} +0 -0
  344. /package/dist/chunks/{chunk-RHAGQ36V.js.map → chunk-CNTMRBQT.js.map} +0 -0
  345. /package/dist/chunks/{chunk-OCZ4VX2S.js.map → chunk-DCNCIL5A.js.map} +0 -0
  346. /package/dist/chunks/{chunk-Q7LWS64N.js.map → chunk-DHRN4HVT.js.map} +0 -0
  347. /package/dist/chunks/{chunk-42W3V7XG.js.map → chunk-E2LKNISN.js.map} +0 -0
  348. /package/dist/chunks/{chunk-U64L35WP.js.map → chunk-E6BMB5D4.js.map} +0 -0
  349. /package/dist/chunks/{chunk-FUNLX5HS.js.map → chunk-EE4ROHCL.js.map} +0 -0
  350. /package/dist/chunks/{chunk-V5RAONF5.js.map → chunk-EV7PYTOP.js.map} +0 -0
  351. /package/dist/chunks/{chunk-HT57JV6J.js.map → chunk-FHR5FWGS.js.map} +0 -0
  352. /package/dist/chunks/{chunk-DV6RUBQX.js.map → chunk-FPKL3N3J.js.map} +0 -0
  353. /package/dist/chunks/{chunk-TUFBZUQ6.js.map → chunk-FSY26KLI.js.map} +0 -0
  354. /package/dist/chunks/{chunk-ADLC3X3H.js.map → chunk-G3R447P4.js.map} +0 -0
  355. /package/dist/chunks/{chunk-OH2OQ23P.js.map → chunk-GPYNBNZV.js.map} +0 -0
  356. /package/dist/chunks/{chunk-AMDHAFS7.js.map → chunk-GQU2MHNZ.js.map} +0 -0
  357. /package/dist/chunks/{chunk-5PRXG5O4.js.map → chunk-H2FQ4QLS.js.map} +0 -0
  358. /package/dist/chunks/{chunk-67SHGC27.js.map → chunk-H3763MSH.js.map} +0 -0
  359. /package/dist/chunks/{chunk-6PTUG5RV.js.map → chunk-IWPDMUHJ.js.map} +0 -0
  360. /package/dist/chunks/{chunk-H3B7QLDY.js.map → chunk-IX4KSPGQ.js.map} +0 -0
  361. /package/dist/chunks/{chunk-QOSFSIVL.js.map → chunk-J35W6BKJ.js.map} +0 -0
  362. /package/dist/chunks/{chunk-YW4543IU.js.map → chunk-J3BP3W2N.js.map} +0 -0
  363. /package/dist/chunks/{chunk-72VM5GMJ.js.map → chunk-J6XAYUON.js.map} +0 -0
  364. /package/dist/chunks/{chunk-D4XEV3XS.js.map → chunk-JWZLFRII.js.map} +0 -0
  365. /package/dist/chunks/{chunk-CKR7247U.js.map → chunk-K3PXRK3Z.js.map} +0 -0
  366. /package/dist/chunks/{chunk-5F72I2UH.js.map → chunk-K6M4OTHF.js.map} +0 -0
  367. /package/dist/chunks/{chunk-OJHZBH75.js.map → chunk-KCEVJCGE.js.map} +0 -0
  368. /package/dist/chunks/{chunk-NQ53XPIN.js.map → chunk-KID2I7VD.js.map} +0 -0
  369. /package/dist/chunks/{chunk-ULUAX2JS.js.map → chunk-KK6CWJFZ.js.map} +0 -0
  370. /package/dist/chunks/{chunk-QNIQAAX7.js.map → chunk-KKFKXDT4.js.map} +0 -0
  371. /package/dist/chunks/{chunk-JJ7RB62R.js.map → chunk-KXGVJ55A.js.map} +0 -0
  372. /package/dist/chunks/{chunk-ZH7MLQCI.js.map → chunk-L4QIJVNX.js.map} +0 -0
  373. /package/dist/chunks/{chunk-MOJ2ELAF.js.map → chunk-LJWCYIQV.js.map} +0 -0
  374. /package/dist/chunks/{chunk-DL3UT5SO.js.map → chunk-LO7LBC5T.js.map} +0 -0
  375. /package/dist/chunks/{chunk-IULTYOEN.js.map → chunk-LPYA4GW7.js.map} +0 -0
  376. /package/dist/chunks/{chunk-6PNYCYHO.js.map → chunk-LUH7N5AG.js.map} +0 -0
  377. /package/dist/chunks/{chunk-XZ47DBWY.js.map → chunk-LWBPCNGV.js.map} +0 -0
  378. /package/dist/chunks/{chunk-54PT3PJZ.js.map → chunk-LYTU6DQ7.js.map} +0 -0
  379. /package/dist/chunks/{chunk-CPM223M5.js.map → chunk-MGU27EKU.js.map} +0 -0
  380. /package/dist/chunks/{chunk-UX5OQJII.js.map → chunk-MNSSDI5Y.js.map} +0 -0
  381. /package/dist/chunks/{chunk-TF4HDGCY.js.map → chunk-MYSCS3LD.js.map} +0 -0
  382. /package/dist/chunks/{chunk-L64U2I4J.js.map → chunk-MZWFJMIM.js.map} +0 -0
  383. /package/dist/chunks/{chunk-WFCKZ2IX.js.map → chunk-N7BCFEJJ.js.map} +0 -0
  384. /package/dist/chunks/{chunk-JGF7X65K.js.map → chunk-NE2J7UOC.js.map} +0 -0
  385. /package/dist/chunks/{chunk-JAJRZSOH.js.map → chunk-NGGXYIAN.js.map} +0 -0
  386. /package/dist/chunks/{chunk-AZX32C4J.js.map → chunk-NV3AX3OX.js.map} +0 -0
  387. /package/dist/chunks/{chunk-AFU7WXAZ.js.map → chunk-ODPKECHM.js.map} +0 -0
  388. /package/dist/chunks/{chunk-B6JUB5HZ.js.map → chunk-OFUZHNUY.js.map} +0 -0
  389. /package/dist/chunks/{chunk-Q56NYYTR.js.map → chunk-OICFYPUQ.js.map} +0 -0
  390. /package/dist/chunks/{chunk-BJBNTKB3.js.map → chunk-ON7XQGDA.js.map} +0 -0
  391. /package/dist/chunks/{chunk-HH5VGFFN.js.map → chunk-ONKMPBPP.js.map} +0 -0
  392. /package/dist/chunks/{chunk-DU5OE5ES.js.map → chunk-OT6WAUFD.js.map} +0 -0
  393. /package/dist/chunks/{chunk-BUVIHQNI.js.map → chunk-OTVNG2RH.js.map} +0 -0
  394. /package/dist/chunks/{chunk-YGGJK45A.js.map → chunk-P72VIXPI.js.map} +0 -0
  395. /package/dist/chunks/{chunk-STGOHHWW.js.map → chunk-PPXMVZZM.js.map} +0 -0
  396. /package/dist/chunks/{chunk-WYQAUERM.js.map → chunk-Q3ZCXNLT.js.map} +0 -0
  397. /package/dist/chunks/{chunk-V64YKHJD.js.map → chunk-Q4LY4V73.js.map} +0 -0
  398. /package/dist/chunks/{chunk-UJDNT44S.js.map → chunk-QH55BL6G.js.map} +0 -0
  399. /package/dist/chunks/{chunk-C3LYWLXF.js.map → chunk-QS3W6PHW.js.map} +0 -0
  400. /package/dist/chunks/{chunk-MWW6FVKA.js.map → chunk-RAD42QX6.js.map} +0 -0
  401. /package/dist/chunks/{chunk-34BTV64A.js.map → chunk-RF6XIV7O.js.map} +0 -0
  402. /package/dist/chunks/{chunk-P243T5OG.js.map → chunk-RLT3CQPF.js.map} +0 -0
  403. /package/dist/chunks/{chunk-XF3HSQOR.js.map → chunk-S3MI73RJ.js.map} +0 -0
  404. /package/dist/chunks/{chunk-OGDCTQSN.js.map → chunk-S4O2YFPC.js.map} +0 -0
  405. /package/dist/chunks/{chunk-BMK5OURE.js.map → chunk-SIJ5UTXM.js.map} +0 -0
  406. /package/dist/chunks/{chunk-5AM3AURF.js.map → chunk-SOFHWWJH.js.map} +0 -0
  407. /package/dist/chunks/{chunk-OKVCLTYB.js.map → chunk-SOUXHV54.js.map} +0 -0
  408. /package/dist/chunks/{chunk-GQ3L6SJB.js.map → chunk-SRY4THD4.js.map} +0 -0
  409. /package/dist/chunks/{chunk-OZ2C5MPW.js.map → chunk-ST23JVRU.js.map} +0 -0
  410. /package/dist/chunks/{chunk-K6FQ5ZH6.js.map → chunk-SUR4OMA6.js.map} +0 -0
  411. /package/dist/chunks/{chunk-FV6QX5N6.js.map → chunk-SVQV6RXR.js.map} +0 -0
  412. /package/dist/chunks/{chunk-GSXJOUKF.js.map → chunk-T7LGBJ3Y.js.map} +0 -0
  413. /package/dist/chunks/{chunk-K2LAFXS3.js.map → chunk-T7WRPQ65.js.map} +0 -0
  414. /package/dist/chunks/{chunk-AEAJGPDR.js.map → chunk-TIXLIDHF.js.map} +0 -0
  415. /package/dist/chunks/{chunk-FOZ2UUM3.js.map → chunk-TJVM2KTD.js.map} +0 -0
  416. /package/dist/chunks/{chunk-S3HMURFS.js.map → chunk-TQGVEISD.js.map} +0 -0
  417. /package/dist/chunks/{chunk-T6SBGDRT.js.map → chunk-UI7QTTM2.js.map} +0 -0
  418. /package/dist/chunks/{chunk-I4U75RHE.js.map → chunk-UM3XWJVJ.js.map} +0 -0
  419. /package/dist/chunks/{chunk-T4737SRH.js.map → chunk-UOX7WH3J.js.map} +0 -0
  420. /package/dist/chunks/{chunk-HJ4K7D5N.js.map → chunk-UP77FF2W.js.map} +0 -0
  421. /package/dist/chunks/{chunk-FCYLTB5A.js.map → chunk-VISMRN4J.js.map} +0 -0
  422. /package/dist/chunks/{chunk-D4MTLAJN.js.map → chunk-VPWFFR5J.js.map} +0 -0
  423. /package/dist/chunks/{chunk-YR325CKB.js.map → chunk-VQN7GC3B.js.map} +0 -0
  424. /package/dist/chunks/{chunk-RKDRG4NX.js.map → chunk-W7XW3NXA.js.map} +0 -0
  425. /package/dist/chunks/{chunk-XC4KZY2A.js.map → chunk-WSB2MCTI.js.map} +0 -0
  426. /package/dist/chunks/{chunk-4ZGZJ6F5.js.map → chunk-WSPWJYLQ.js.map} +0 -0
  427. /package/dist/chunks/{chunk-R7OKPWPT.js.map → chunk-XGEW2R3P.js.map} +0 -0
  428. /package/dist/chunks/{chunk-5O4CABZS.js.map → chunk-XVKQQTVV.js.map} +0 -0
  429. /package/dist/chunks/{chunk-55E3S7ZA.js.map → chunk-XXXJOYTQ.js.map} +0 -0
  430. /package/dist/chunks/{chunk-WYYJJAXJ.js.map → chunk-Y24UJ26G.js.map} +0 -0
  431. /package/dist/chunks/{chunk-KUXW74VV.js.map → chunk-YFIKYLOB.js.map} +0 -0
  432. /package/dist/chunks/{chunk-2CPWLGHD.js.map → chunk-YXQG466V.js.map} +0 -0
  433. /package/dist/chunks/{chunk-PILOWM4F.js.map → chunk-ZACF6CVM.js.map} +0 -0
  434. /package/dist/chunks/{cli-runtime-KA4RC4V4.js.map → cli-runtime-RAHU2FF7.js.map} +0 -0
  435. /package/dist/chunks/{commands-DXH5JRFP.js.map → commands-252QNZKK.js.map} +0 -0
  436. /package/dist/chunks/{config-OOGXFNA3.js.map → config-CX6PRTEY.js.map} +0 -0
  437. /package/dist/chunks/{cost-6KJARIGM.js.map → cost-L3RROPK6.js.map} +0 -0
  438. /package/dist/chunks/{crash-report-3ZOEHHEI.js.map → crash-report-NND4WWJA.js.map} +0 -0
  439. /package/dist/chunks/{desktop-host-schedule-tool-4RMIUJF6.js.map → desktop-host-schedule-tool-IKWEHI4H.js.map} +0 -0
  440. /package/dist/chunks/{dist-4L2V72GD.js.map → dist-2MHNJVOM.js.map} +0 -0
  441. /package/dist/chunks/{dist-NVBSFLTI.js.map → dist-3DMPFVGW.js.map} +0 -0
  442. /package/dist/chunks/{dist-Y52DNARF.js.map → dist-7TMA3NQ7.js.map} +0 -0
  443. /package/dist/chunks/{dist-L7TD2FDZ.js.map → dist-DFKDXC5Q.js.map} +0 -0
  444. /package/dist/chunks/{dist-SIFEVDTY.js.map → dist-MFWZVDSA.js.map} +0 -0
  445. /package/dist/chunks/{dist-5F5CZWFT.js.map → dist-TH2HM2GH.js.map} +0 -0
  446. /package/dist/chunks/{dist-G7UUXIXJ.js.map → dist-UAUXP4UC.js.map} +0 -0
  447. /package/dist/chunks/{dist-K72ZLN23.js.map → dist-YXOQEPCZ.js.map} +0 -0
  448. /package/dist/chunks/{doctor-VNOAZO3I.js.map → doctor-O5OZR6YG.js.map} +0 -0
  449. /package/dist/chunks/{drain-Y3SESO5B.js.map → drain-LUUO4FI3.js.map} +0 -0
  450. /package/dist/chunks/{entry-YV4QH7DR.js.map → entry-XPFYPIDS.js.map} +0 -0
  451. /package/dist/chunks/{extension-QCXFSOMC.js.map → extension-AVJ2LV2G.js.map} +0 -0
  452. /package/dist/chunks/{feed-FWRV24AI.js.map → feed-UKN7XNCC.js.map} +0 -0
  453. /package/dist/chunks/{home-RXA7GMAW.js.map → home-A7434CUG.js.map} +0 -0
  454. /package/dist/chunks/{homes-RI3FTXOG.js.map → homes-U4IALPDB.js.map} +0 -0
  455. /package/dist/chunks/{hooks-JPFB27RR.js.map → hooks-TQ7KEIX5.js.map} +0 -0
  456. /package/dist/chunks/{hooks-report-KM6KRZRW.js.map → hooks-report-R6KBKZOI.js.map} +0 -0
  457. /package/dist/chunks/{host-JZPZJICP.js.map → host-S2OSQNIF.js.map} +0 -0
  458. /package/dist/chunks/{host-queries-3NYSJCGN.js.map → host-queries-VKIZCSD3.js.map} +0 -0
  459. /package/dist/chunks/{installed-list-FT4FSKGM.js.map → installed-list-VGP7FMFB.js.map} +0 -0
  460. /package/dist/chunks/{launch-UESAO3GK.js.map → launch-LWAQXYIA.js.map} +0 -0
  461. /package/dist/chunks/{learn-3TU3ZLHJ.js.map → learn-GIKQBJN5.js.map} +0 -0
  462. /package/dist/chunks/{learn-builtin-J2KRSGUB.js.map → learn-builtin-HOFMWHQP.js.map} +0 -0
  463. /package/dist/chunks/{lifecycle-OWLUGMJN.js.map → lifecycle-4OBW7B42.js.map} +0 -0
  464. /package/dist/chunks/{list-BIVADLIP.js.map → list-O2I3ECME.js.map} +0 -0
  465. /package/dist/chunks/{live-MW4OA6OG.js.map → live-DCRF5F6P.js.map} +0 -0
  466. /package/dist/chunks/{load-ZXUDPY34.js.map → load-LHCKRZFB.js.map} +0 -0
  467. /package/dist/chunks/{logs-5ZGRVNF4.js.map → logs-UMD7HBUO.js.map} +0 -0
  468. /package/dist/chunks/{mcp-DTMEZ6I6.js.map → mcp-35NTHODS.js.map} +0 -0
  469. /package/dist/chunks/{mcp-serve-GMWIFBPW.js.map → mcp-serve-PCEC55MI.js.map} +0 -0
  470. /package/dist/chunks/{message-command-KAJR3QEG.js.map → message-command-34BVXT5R.js.map} +0 -0
  471. /package/dist/chunks/{open-3YROUC7F.js.map → open-DK276PG4.js.map} +0 -0
  472. /package/dist/chunks/{operator-tools-6SDUBJON.js.map → operator-tools-RG247DOI.js.map} +0 -0
  473. /package/dist/chunks/{output-schema-XV4RVXXK.js.map → output-schema-WBFGDY7D.js.map} +0 -0
  474. /package/dist/chunks/{pal-RK5QZ4LQ.js.map → pal-OBXTNMGX.js.map} +0 -0
  475. /package/dist/chunks/{peers-YQ4US53G.js.map → peers-RBR7QYPG.js.map} +0 -0
  476. /package/dist/chunks/{peers-HLFUEQJJ.js.map → peers-ZSKWVLA4.js.map} +0 -0
  477. /package/dist/chunks/{providers-DEBQUBNW.js.map → providers-EW4LE5AZ.js.map} +0 -0
  478. /package/dist/chunks/{providers-75MC4K7W.js.map → providers-V4MMZ7X5.js.map} +0 -0
  479. /package/dist/chunks/{pty-GTQFDVCO.js.map → pty-XV7IOHGX.js.map} +0 -0
  480. /package/dist/chunks/{resume-GWI4C4UT.js.map → resume-GA7INROY.js.map} +0 -0
  481. /package/dist/chunks/{resume-command-6UAIWTCL.js.map → resume-command-VABS2KGI.js.map} +0 -0
  482. /package/dist/chunks/{running-5YF7VHTF.js.map → running-LDQLXUGW.js.map} +0 -0
  483. /package/dist/chunks/{schedule-D7NLKN4F.js.map → schedule-L5AAS4JQ.js.map} +0 -0
  484. /package/dist/chunks/{send-IB7CNIDR.js.map → send-2KB5VRUT.js.map} +0 -0
  485. /package/dist/chunks/{send-person-ELJOZHST.js.map → send-person-EFHYG2GX.js.map} +0 -0
  486. /package/dist/chunks/{servers-ZP6DRGF2.js.map → servers-WIKRFBKU.js.map} +0 -0
  487. /package/dist/chunks/{service-K4ZLR63R.js.map → service-LXQA5RI7.js.map} +0 -0
  488. /package/dist/chunks/{session-options-TG26QZZ6.js.map → session-options-2LDJWGYZ.js.map} +0 -0
  489. /package/dist/chunks/{setting-cli-IU6A6I6W.js.map → setting-cli-6T6H6TJ7.js.map} +0 -0
  490. /package/dist/chunks/{skills-3HLNJWGS.js.map → skills-YAIICRGB.js.map} +0 -0
  491. /package/dist/chunks/{source-deliveries-45TER3PU.js.map → source-deliveries-VB4F2DV5.js.map} +0 -0
  492. /package/dist/chunks/{start-check-2WETAK5Z.js.map → start-check-TE3CE7NZ.js.map} +0 -0
  493. /package/dist/chunks/{startup-failure-JMIJL67P.js.map → startup-failure-PBWJF4DV.js.map} +0 -0
  494. /package/dist/chunks/{state-MJNHJ5FV.js.map → state-UGZ334GT.js.map} +0 -0
  495. /package/dist/chunks/{store-E7VNPPQT.js.map → store-3REZKYH5.js.map} +0 -0
  496. /package/dist/chunks/{store-SPOO5FU6.js.map → store-75XB557Z.js.map} +0 -0
  497. /package/dist/chunks/{store-U2O2Y22S.js.map → store-RV6QGLU2.js.map} +0 -0
  498. /package/dist/chunks/{store-X3LC5BJX.js.map → store-VQ5OTKXT.js.map} +0 -0
  499. /package/dist/chunks/{update-3HG4RCUQ.js.map → update-NPWMEWAL.js.map} +0 -0
  500. /package/dist/chunks/{windows-home-6PZ2XTQH.js.map → windows-home-4XSPGUOR.js.map} +0 -0
  501. /package/dist/chunks/{workspaces-PMOLQDFU.js.map → workspaces-UB6NF7LY.js.map} +0 -0
  502. /package/dist/chunks/{worktree-NLBILYL2.js.map → worktree-QCSW5VQC.js.map} +0 -0
@@ -0,0 +1,800 @@
1
+ import { createRequire as __namzuCreateRequire } from 'node:module';
2
+ const require = __namzuCreateRequire(import.meta.url);
3
+ import {
4
+ oneLine,
5
+ readPluginManifestDetails,
6
+ surfaceChanges
7
+ } from "./chunk-LIX2TWWW.js";
8
+ import {
9
+ listMarkdownNames,
10
+ resolvePluginFileDirs
11
+ } from "./chunk-6W6ILBXE.js";
12
+ import {
13
+ admissionScope,
14
+ currentEnabledAnswer,
15
+ installedPluginRefusal,
16
+ installedRefusalText,
17
+ isExecutablePath,
18
+ loadInstalledManifest,
19
+ manifestDigest,
20
+ readInstallManifest,
21
+ readLayers,
22
+ readRecordLayer,
23
+ recordLayerPath,
24
+ setEnabledPlugin,
25
+ verifyInstalledCopy
26
+ } from "./chunk-7BZZGFKW.js";
27
+ import {
28
+ readPluginHookEntriesOf
29
+ } from "./chunk-PR3MVT6X.js";
30
+ import {
31
+ installedPluginDataFolder,
32
+ installedPluginsPath,
33
+ isPluginId,
34
+ isReservedPluginDir,
35
+ readInstalledPlugins,
36
+ readKnownMarketplaces,
37
+ realPathOrResolved,
38
+ samePath,
39
+ splitPluginId
40
+ } from "./chunk-XGEW2R3P.js";
41
+ import {
42
+ StateFileBusyError,
43
+ StateFileUnreadableError
44
+ } from "./chunk-47HEFQUP.js";
45
+ import {
46
+ EXIT_FAIL,
47
+ EXIT_NOINPUT,
48
+ EXIT_OK,
49
+ EXIT_UNTRUSTED,
50
+ EXIT_USAGE
51
+ } from "./chunk-24V2WEKR.js";
52
+ import {
53
+ terminalDisplayText
54
+ } from "./chunk-I4GTRFPK.js";
55
+ import {
56
+ COMMON_MANIFEST_DIR,
57
+ PLUGIN_MANIFEST_FILENAME,
58
+ discoverAllPluginDirs,
59
+ loadPluginManifest
60
+ } from "./chunk-S5XNNB36.js";
61
+ import {
62
+ __name
63
+ } from "./chunk-76FLAFCG.js";
64
+
65
+ // src/commands/plugin-records.ts
66
+ import { lstatSync, readdirSync } from "node:fs";
67
+ import { join, resolve } from "node:path";
68
+ var PLUGIN_RECORD_VERBS = ["list", "details", "enable", "disable"];
69
+ var PLUGIN_RECORD_HELP = [
70
+ "Usage:",
71
+ " namzu plugin list [--cwd <dir>] [--json]",
72
+ " namzu plugin details <id> [--cwd <dir>] [--json]",
73
+ " namzu plugin enable <id> [--scope user|project|local] [--cwd <dir>] [--json]",
74
+ " namzu plugin disable <id> [--scope user|project|local] [--cwd <dir>] [--json]",
75
+ "",
76
+ "list The installed plugins that apply here: id, version, scope, on or off, and what needs attention.",
77
+ "details One plugin: what it brings by its exact names, the record, who turned it on, where its data is.",
78
+ "enable Record a yes for an installed plugin. It takes effect in new conversations.",
79
+ "disable Record a no. Nothing is removed; the plugin stays installed.",
80
+ "",
81
+ "An id is <name>@<marketplace>; a bare name works when only one installed plugin has it.",
82
+ "Without --scope a user plugin is changed in your own settings file, and a project plugin in",
83
+ "this computer\u2019s file for the folder (.namzu/settings.local.json), so a shared file is not",
84
+ "edited by a toggle. --scope project edits the shared .namzu/settings.json.",
85
+ "",
86
+ "Options:",
87
+ " --scope user|project|local The record to act on, and the settings file it is written to",
88
+ " --cwd <dir> The folder whose project plugins are meant (default: here)",
89
+ " --json Print one JSON object on standard output",
90
+ "",
91
+ "Exit status: 0 done, 1 something failed, 64 the command line is wrong,",
92
+ "66 not installed or a record could not be read, 77 the folder is not trusted."
93
+ ].join("\n");
94
+ function parseFlags(args) {
95
+ let json = false;
96
+ let scope;
97
+ let cwd;
98
+ const positional = [];
99
+ for (let i = 0; i < args.length; i++) {
100
+ const arg = args[i];
101
+ const value = /* @__PURE__ */ __name((name) => {
102
+ if (arg === name) return args[++i];
103
+ if (arg.startsWith(`${name}=`)) return arg.slice(name.length + 1);
104
+ return void 0;
105
+ }, "value");
106
+ if (arg === "--json") json = true;
107
+ else if (arg === "--scope" || arg.startsWith("--scope=")) {
108
+ const v = value("--scope");
109
+ if (v !== "user" && v !== "project" && v !== "local")
110
+ return { json, positional, error: "--scope is user, project or local." };
111
+ scope = v;
112
+ } else if (arg === "--cwd" || arg.startsWith("--cwd=")) {
113
+ const v = value("--cwd");
114
+ if (v === void 0 || v === "") return { json, positional, error: "--cwd needs a folder." };
115
+ cwd = v;
116
+ } else if (arg.startsWith("-") && arg !== "-")
117
+ return { json, positional, error: `unknown option: ${arg}` };
118
+ else positional.push(arg);
119
+ }
120
+ return { json, ...scope ? { scope } : {}, ...cwd ? { cwd } : {}, positional };
121
+ }
122
+ __name(parseFlags, "parseFlags");
123
+ function failure(deps, json, command, code, message, extra = {}) {
124
+ if (json) deps.out(`${JSON.stringify({ command, outcome: "failed", message, ...extra })}
125
+ `);
126
+ else deps.err(`${message}
127
+ `);
128
+ return code;
129
+ }
130
+ __name(failure, "failure");
131
+ function stateFailure(error) {
132
+ if (error instanceof StateFileUnreadableError)
133
+ return {
134
+ code: EXIT_NOINPUT,
135
+ message: `The install record could not be read, so nothing was changed: ${error.file}
136
+ ${error.sentence((p) => p)}`
137
+ };
138
+ if (error instanceof StateFileBusyError)
139
+ return { code: EXIT_FAIL, message: error.sentence((p) => p) };
140
+ return { code: EXIT_FAIL, message: error instanceof Error ? error.message : String(error) };
141
+ }
142
+ __name(stateFailure, "stateFailure");
143
+ function resolveId(deps, json, command, arg) {
144
+ const read = readInstalledPlugins(deps.namzuHome);
145
+ if (read.state === "unreadable")
146
+ return failure(
147
+ deps,
148
+ json,
149
+ command,
150
+ EXIT_NOINPUT,
151
+ `The install record could not be read, so nothing was changed: ${installedPluginsPath(deps.namzuHome)} (${read.reason}). Fix or remove the file, then try again.`
152
+ );
153
+ if (isPluginId(arg)) {
154
+ const records = read.plugins.get(arg);
155
+ if (!records)
156
+ return failure(
157
+ deps,
158
+ json,
159
+ command,
160
+ EXIT_NOINPUT,
161
+ `${arg} is not installed on this computer.`,
162
+ {
163
+ id: arg
164
+ }
165
+ );
166
+ return { id: arg, records };
167
+ }
168
+ if (arg.includes("@") || arg === "")
169
+ return failure(
170
+ deps,
171
+ json,
172
+ command,
173
+ EXIT_USAGE,
174
+ `"${arg}" is not a plugin id (name@marketplace).`
175
+ );
176
+ const matches = [...read.plugins.keys()].filter((id2) => splitPluginId(id2).name === arg);
177
+ if (matches.length === 0)
178
+ return failure(deps, json, command, EXIT_NOINPUT, `${arg} is not installed on this computer.`);
179
+ if (matches.length > 1)
180
+ return failure(
181
+ deps,
182
+ json,
183
+ command,
184
+ EXIT_USAGE,
185
+ `More than one installed plugin is named ${arg}: ${matches.join(", ")}. Name one of them.`,
186
+ { matches }
187
+ );
188
+ const id = matches[0];
189
+ return { id, records: read.plugins.get(id) };
190
+ }
191
+ __name(resolveId, "resolveId");
192
+ function applicable(records, cwd, trusted) {
193
+ const rank = { local: 3, project: 2, user: 1 };
194
+ const here = [];
195
+ let unread = 0;
196
+ for (const record of records) {
197
+ if (record.scope === "user") here.push(record);
198
+ else if (record.projectPath !== void 0 && samePath(record.projectPath, cwd)) {
199
+ if (trusted) here.push(record);
200
+ else unread++;
201
+ }
202
+ }
203
+ here.sort((a, b) => rank[b.scope] - rank[a.scope]);
204
+ return { here, unread };
205
+ }
206
+ __name(applicable, "applicable");
207
+ function contextOf(deps, flags) {
208
+ const cwd = resolve(deps.cwd(), flags.cwd ?? ".");
209
+ return { cwd: realPathOrResolved(cwd), trusted: deps.isTrusted(cwd) };
210
+ }
211
+ __name(contextOf, "contextOf");
212
+ function layerSentence(by, answer) {
213
+ if (by === void 0) return "no setting says so";
214
+ 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"}`;
215
+ }
216
+ __name(layerSentence, "layerSentence");
217
+ function candidateFor(id, record, answer) {
218
+ return {
219
+ id,
220
+ name: splitPluginId(id).name,
221
+ record,
222
+ scope: admissionScope(record.scope),
223
+ installPath: realPathOrResolved(record.installPath),
224
+ answer
225
+ };
226
+ }
227
+ __name(candidateFor, "candidateFor");
228
+ var CLASH_ALLOWED_SCOPES = ["project", "user"];
229
+ async function nameClashes(deps, ctx, plugins) {
230
+ const names = /* @__PURE__ */ new Set();
231
+ try {
232
+ const discovered = await discoverAllPluginDirs(ctx.cwd, {
233
+ enabled: true,
234
+ autoDiscovery: true,
235
+ allowedScopes: CLASH_ALLOWED_SCOPES,
236
+ userRoot: deps.namzuHome
237
+ });
238
+ for (const scope of CLASH_ALLOWED_SCOPES)
239
+ for (const dir of discovered[scope]) {
240
+ if (scope === "user" && isReservedPluginDir(deps.namzuHome, dir)) continue;
241
+ try {
242
+ names.add((await loadPluginManifest(dir, { skillsSupported: true })).name);
243
+ } catch {
244
+ }
245
+ }
246
+ } catch {
247
+ }
248
+ const candidates = [];
249
+ for (const [id, records] of plugins) {
250
+ const chosen = applicable(records, ctx.cwd, ctx.trusted).here[0];
251
+ if (chosen === void 0) continue;
252
+ if (!verifyInstalledCopy(deps.namzuHome, id, chosen.installPath, chosen.surfaceSha256).ok)
253
+ continue;
254
+ candidates.push({ id, at: chosen.installedAt ?? "" });
255
+ }
256
+ candidates.sort((a, b) => a.at.localeCompare(b.at) || a.id.localeCompare(b.id));
257
+ const clashes = /* @__PURE__ */ new Map();
258
+ for (const { id } of candidates) {
259
+ const { name } = splitPluginId(id);
260
+ if (names.has(name))
261
+ clashes.set(id, `${id} will not load: the name "${name}" is already used by another plugin.`);
262
+ else names.add(name);
263
+ }
264
+ return clashes;
265
+ }
266
+ __name(nameClashes, "nameClashes");
267
+ async function runList(deps, flags) {
268
+ const command = "plugin list";
269
+ if (flags.positional.length > 0)
270
+ return failure(deps, flags.json, command, EXIT_USAGE, "plugin list takes no arguments.");
271
+ const ctx = contextOf(deps, flags);
272
+ const read = readInstalledPlugins(deps.namzuHome);
273
+ if (read.state === "unreadable")
274
+ return failure(
275
+ deps,
276
+ flags.json,
277
+ command,
278
+ EXIT_NOINPUT,
279
+ `The install record could not be read: ${installedPluginsPath(deps.namzuHome)} (${read.reason}). Nothing was changed.`
280
+ );
281
+ const layers = readLayers(deps.namzuHome, ctx.cwd, ctx.trusted);
282
+ const problems = read.invalid.map((bad) => `${bad.id}: ${bad.reason}`);
283
+ for (const [layer, layerRead] of Object.entries(layers)) {
284
+ if (layerRead?.state === "unreadable")
285
+ problems.push(
286
+ `${recordLayerPath(layer, { home: deps.namzuHome, cwd: ctx.cwd })} could not be read (${layerRead.reason}), so what it says was not used`
287
+ );
288
+ }
289
+ const clashes = await nameClashes(deps, ctx, read.plugins);
290
+ const known = readKnownMarketplaces(deps.namzuHome);
291
+ const rows = [];
292
+ let unread = 0;
293
+ for (const [id, records] of [...read.plugins.entries()].sort(([a], [b]) => a.localeCompare(b))) {
294
+ const found = applicable(records, ctx.cwd, ctx.trusted);
295
+ unread += found.unread;
296
+ if (found.here.length === 0) continue;
297
+ const answer = currentEnabledAnswer(
298
+ { home: deps.namzuHome, cwd: ctx.cwd, projectTrusted: ctx.trusted },
299
+ id
300
+ );
301
+ for (const record of found.here) {
302
+ const verdict = verifyInstalledCopy(
303
+ deps.namzuHome,
304
+ id,
305
+ record.installPath,
306
+ record.surfaceSha256
307
+ );
308
+ const notes = record.findings.filter(
309
+ (f) => f.level === "notUsed" || f.level === "refused"
310
+ ).length;
311
+ const { name, marketplace } = splitPluginId(id);
312
+ const clash = verdict.ok ? clashes.get(id) : void 0;
313
+ const problem = verdict.ok ? clash : verdict.message;
314
+ rows.push({
315
+ id,
316
+ name,
317
+ marketplace,
318
+ version: record.version ?? null,
319
+ scope: record.scope,
320
+ ...record.projectPath ? { projectPath: record.projectPath } : {},
321
+ enabled: answer.on,
322
+ enabledBy: answer.by ?? null,
323
+ state: problem !== void 0 ? "blocked" : answer.on ? "on" : "off",
324
+ attention: notes + (problem !== void 0 ? 1 : 0),
325
+ ...problem !== void 0 ? { problem } : {},
326
+ source: known.state !== "unreadable" ? known.marketplaces.get(marketplace)?.source ?? null : null,
327
+ layout: record.layout ?? null,
328
+ installPath: record.installPath
329
+ });
330
+ }
331
+ }
332
+ const asked = [];
333
+ for (const layer of ["project", "local"]) {
334
+ const layerRead = layers[layer];
335
+ if (layerRead === void 0 || layerRead.state === "unreadable") continue;
336
+ for (const [id, value] of layerRead.enabledPlugins) {
337
+ if (!value) continue;
338
+ const have = rows.some((row) => row.id === id);
339
+ if (!have) asked.push({ id, layer, installed: false });
340
+ }
341
+ }
342
+ const declared = [];
343
+ for (const layer of ["project", "local"]) {
344
+ const layerRead = layers[layer];
345
+ if (layerRead === void 0 || layerRead.state === "unreadable") continue;
346
+ for (const market of layerRead.marketplaces.values())
347
+ declared.push({
348
+ name: market.name,
349
+ layer,
350
+ source: market.source,
351
+ added: known.state !== "unreadable" && known.marketplaces.has(market.name)
352
+ });
353
+ }
354
+ 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;
355
+ if (flags.json) {
356
+ deps.out(
357
+ `${JSON.stringify({
358
+ command,
359
+ cwd: ctx.cwd,
360
+ trusted: ctx.trusted,
361
+ loading: deps.loadingOn ? "on" : "off",
362
+ plugins: rows,
363
+ asked,
364
+ declaredMarketplaces: declared,
365
+ problems,
366
+ ...notice ? { notice } : {}
367
+ })}
368
+ `
369
+ );
370
+ return EXIT_OK;
371
+ }
372
+ const lines = [];
373
+ if (rows.length === 0) lines.push("No plugins are installed here.");
374
+ else {
375
+ const width = /* @__PURE__ */ __name((pick) => Math.max(...rows.map((row) => pick(row).length)), "width");
376
+ const wId = width((r) => oneLine(r.id));
377
+ const wVer = width((r) => oneLine(r.version ?? "-"));
378
+ const wScope = width((r) => r.scope);
379
+ for (const row of rows) {
380
+ lines.push(
381
+ `${oneLine(row.id).padEnd(wId)} ${oneLine(row.version ?? "-").padEnd(wVer)} ${row.scope.padEnd(wScope)} ${row.state}${row.attention > 0 ? ` (${row.attention} to look at)` : ""}`
382
+ );
383
+ if (row.problem) lines.push(` ${oneLine(row.problem)}`);
384
+ }
385
+ }
386
+ for (const ask of asked)
387
+ lines.push(`${oneLine(ask.id)} is asked for here and is not installed on this computer.`);
388
+ for (const market of declared)
389
+ lines.push(
390
+ `${oneLine(market.name)} is declared by this project, ${market.added ? "and added" : "not added"}.`
391
+ );
392
+ for (const problem of problems) lines.push(`Not used: ${oneLine(problem)}`);
393
+ if (notice) lines.push(notice);
394
+ if (!deps.loadingOn && rows.length > 0)
395
+ lines.push(
396
+ "Plugin loading is off, so none of these run. Turn it on: namzu config set plugins.enabled true"
397
+ );
398
+ deps.out(`${lines.join("\n")}
399
+ `);
400
+ return EXIT_OK;
401
+ }
402
+ __name(runList, "runList");
403
+ function dataSize(path) {
404
+ let total = 0;
405
+ let seen = 0;
406
+ const walk = /* @__PURE__ */ __name((dir) => {
407
+ for (const entry of readdirSync(dir)) {
408
+ if (++seen > 2e4) return;
409
+ const full = join(dir, entry);
410
+ const stat = lstatSync(full);
411
+ if (stat.isDirectory()) walk(full);
412
+ else total += stat.size;
413
+ }
414
+ }, "walk");
415
+ try {
416
+ if (!lstatSync(path).isDirectory()) return null;
417
+ walk(path);
418
+ return total;
419
+ } catch {
420
+ return null;
421
+ }
422
+ }
423
+ __name(dataSize, "dataSize");
424
+ async function runDetails(deps, flags) {
425
+ const command = "plugin details";
426
+ if (flags.positional.length !== 1)
427
+ return failure(deps, flags.json, command, EXIT_USAGE, "plugin details takes one plugin id.");
428
+ const ctx = contextOf(deps, flags);
429
+ const resolved = resolveId(deps, flags.json, command, flags.positional[0]);
430
+ if (typeof resolved === "number") return resolved;
431
+ const { id } = resolved;
432
+ const found = applicable(resolved.records, ctx.cwd, ctx.trusted);
433
+ if (found.here.length === 0)
434
+ return failure(
435
+ deps,
436
+ flags.json,
437
+ command,
438
+ found.unread > 0 ? EXIT_UNTRUSTED : EXIT_NOINPUT,
439
+ 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.`,
440
+ { id }
441
+ );
442
+ const record = found.here[0];
443
+ const answer = currentEnabledAnswer(
444
+ { home: deps.namzuHome, cwd: ctx.cwd, projectTrusted: ctx.trusted },
445
+ id
446
+ );
447
+ const verdict = verifyInstalledCopy(deps.namzuHome, id, record.installPath, record.surfaceSha256);
448
+ const all = readInstalledPlugins(deps.namzuHome);
449
+ const clash = verdict.ok && all.state !== "unreadable" ? (await nameClashes(deps, ctx, all.plugins)).get(id) : void 0;
450
+ const blockedBy = verdict.ok ? clash : verdict.message;
451
+ const manifestRead = readInstallManifest(deps.namzuHome, id);
452
+ const { name, marketplace } = splitPluginId(id);
453
+ const known = readKnownMarketplaces(deps.namzuHome);
454
+ const source = known.state !== "unreadable" ? known.marketplaces.get(marketplace)?.source ?? null : null;
455
+ const dataPath = installedPluginDataFolder(deps.namzuHome, id);
456
+ let inventory;
457
+ if (verdict.ok) {
458
+ try {
459
+ const candidate = candidateFor(id, record, answer);
460
+ const manifest = await loadInstalledManifest(candidate, {
461
+ home: deps.namzuHome,
462
+ cwd: ctx.cwd,
463
+ installedNames: /* @__PURE__ */ new Set()
464
+ });
465
+ const details = await readPluginManifestDetails(candidate.installPath, manifest);
466
+ const prefix = `${manifest.name}__`;
467
+ const files = /* @__PURE__ */ __name((declared) => resolvePluginFileDirs(
468
+ manifest.name,
469
+ candidate.installPath,
470
+ declared,
471
+ manifest.layout
472
+ ).dirs.flatMap(
473
+ (source2) => listMarkdownNames(source2.dir, source2.only).map((file) => `${prefix}${file}`)
474
+ ), "files");
475
+ const hookRead = readPluginHookEntriesOf({ rootDir: candidate.installPath, manifest });
476
+ inventory = {
477
+ description: manifest.description,
478
+ hooks: Object.entries(hookRead.hooks).filter(([, entries]) => (entries?.length ?? 0) > 0).map(([event, entries]) => `${event} (${entries?.length ?? 0})`),
479
+ skills: (details.skills ?? []).map((skill) => skill.name),
480
+ commands: files(manifest.commands),
481
+ agents: files(manifest.agents),
482
+ servers: (manifest.mcpServers ?? []).map((server) => server.name),
483
+ ...details.author ? { author: details.author } : {}
484
+ };
485
+ } catch (error) {
486
+ inventory = { error: error instanceof Error ? error.message : String(error) };
487
+ }
488
+ }
489
+ const surface = manifestRead.state === "ok" ? manifestRead.manifest.surface : null;
490
+ const output = {
491
+ command,
492
+ id,
493
+ name,
494
+ marketplace,
495
+ enabled: answer.on,
496
+ enabledBy: answer.by ?? null,
497
+ verification: verdict.ok ? clash !== void 0 ? { ok: false, code: "name-clash", message: clash } : { ok: true } : { ok: false, code: verdict.code, message: verdict.message },
498
+ records: found.here.map((r) => ({
499
+ scope: r.scope,
500
+ ...r.projectPath ? { projectPath: r.projectPath } : {},
501
+ installPath: r.installPath,
502
+ version: r.version ?? null,
503
+ installedAt: r.installedAt ?? null,
504
+ lastUpdated: r.lastUpdated ?? null,
505
+ gitCommitSha: r.gitCommitSha ?? null,
506
+ layout: r.layout ?? null,
507
+ findings: r.findings
508
+ })),
509
+ origin: source ?? (manifestRead.state === "ok" ? manifestRead.manifest.installedFrom ?? null : null),
510
+ surface,
511
+ surfaceSha256: manifestRead.state === "ok" ? manifestRead.manifest.surfaceSha256 : null,
512
+ executableFiles: manifestRead.state === "ok" ? manifestRead.manifest.executable : [],
513
+ consent: manifestRead.state === "ok" ? manifestRead.manifest.consent ?? null : null,
514
+ data: { path: dataPath, bytes: dataSize(dataPath) },
515
+ inventory: inventory ?? null
516
+ };
517
+ if (flags.json) {
518
+ deps.out(`${JSON.stringify(output)}
519
+ `);
520
+ return EXIT_OK;
521
+ }
522
+ const lines = [`${oneLine(id)}${record.version ? ` ${oneLine(record.version)}` : ""}`];
523
+ const inv = inventory;
524
+ if (inv?.description) lines.push(oneLine(inv.description));
525
+ lines.push(
526
+ ` State: ${answer.on ? "on" : "off"} (${layerSentence(answer.by, answer.on)})`,
527
+ ` Scope: ${found.here.map((r) => r.scope).join(", ")}`,
528
+ ` Origin: ${source ? oneLine(JSON.stringify(source)) : `marketplace ${marketplace}`}`,
529
+ ` Folder: ${oneLine(record.installPath)}`,
530
+ ` Data: ${oneLine(dataPath)}${output.data.bytes === null ? " (none yet)" : ` (${output.data.bytes} bytes)`}`
531
+ );
532
+ if (blockedBy !== void 0) lines.push(` Blocked: ${oneLine(blockedBy)}`);
533
+ const listed = /* @__PURE__ */ __name((label, items) => {
534
+ if (Array.isArray(items) && items.length > 0)
535
+ lines.push(` ${label}${items.map((item) => oneLine(String(item))).join(", ")}`);
536
+ }, "listed");
537
+ if (inventory) {
538
+ listed("Skills: ", inventory.skills);
539
+ listed("Commands: ", inventory.commands);
540
+ listed("Agents: ", inventory.agents);
541
+ listed("Hooks: ", inventory.hooks);
542
+ listed("Servers: ", inventory.servers);
543
+ }
544
+ if (manifestRead.state === "ok") {
545
+ lines.push(
546
+ ` Checked before it loads: ${manifestRead.manifest.executable.length} ${manifestRead.manifest.executable.length === 1 ? "file" : "files"}, surface sha256:${manifestRead.manifest.surfaceSha256.slice(0, 12)}`
547
+ );
548
+ const consent = manifestRead.manifest.consent;
549
+ if (consent && typeof consent.at === "string")
550
+ lines.push(
551
+ ` Accepted: ${oneLine(consent.at)}${typeof consent.by === "string" ? ` by ${oneLine(consent.by)}` : ""}`
552
+ );
553
+ }
554
+ for (const finding of record.findings)
555
+ if (finding.level === "notUsed" || finding.level === "refused")
556
+ lines.push(
557
+ ` ${finding.level === "refused" ? "Refused" : "Not used"}: ${oneLine(finding.message)}`
558
+ );
559
+ deps.out(`${lines.join("\n")}
560
+ `);
561
+ return EXIT_OK;
562
+ }
563
+ __name(runDetails, "runDetails");
564
+ async function runToggle(deps, flags, enable) {
565
+ const command = enable ? "plugin enable" : "plugin disable";
566
+ const verb = enable ? "on" : "off";
567
+ if (flags.positional.length !== 1)
568
+ return failure(deps, flags.json, command, EXIT_USAGE, `${command} takes one plugin id.`);
569
+ const ctx = contextOf(deps, flags);
570
+ const untrusted = "This folder is not trusted yet. Open it with namzu once, or use --scope user.";
571
+ if (!ctx.trusted && (flags.scope === "project" || flags.scope === "local"))
572
+ return failure(deps, flags.json, command, EXIT_UNTRUSTED, untrusted);
573
+ const resolved = resolveId(deps, flags.json, command, flags.positional[0]);
574
+ if (typeof resolved === "number") return resolved;
575
+ const { id } = resolved;
576
+ const found = applicable(resolved.records, ctx.cwd, ctx.trusted);
577
+ const chosen = flags.scope ? found.here.find((r) => r.scope === flags.scope) : found.here[0];
578
+ if (chosen === void 0) {
579
+ if (!flags.scope && found.unread > 0)
580
+ return failure(deps, flags.json, command, EXIT_UNTRUSTED, untrusted, { id });
581
+ return failure(
582
+ deps,
583
+ flags.json,
584
+ command,
585
+ EXIT_NOINPUT,
586
+ flags.scope ? `${id} is not installed at scope ${flags.scope} here.` : `${id} is not installed for this folder or for you.`,
587
+ { id }
588
+ );
589
+ }
590
+ if (enable) {
591
+ const refusal = installedPluginRefusal(deps.namzuHome, id, {
592
+ blocked: deps.blockedMarketplaces,
593
+ allowed: deps.allowedMarketplaces
594
+ });
595
+ if (refusal !== void 0)
596
+ return failure(deps, flags.json, command, EXIT_UNTRUSTED, installedRefusalText(id, refusal), {
597
+ id
598
+ });
599
+ }
600
+ const layer = flags.scope ?? (chosen.scope === "user" ? "user" : "local");
601
+ const path = recordLayerPath(layer, { home: deps.namzuHome, cwd: ctx.cwd });
602
+ const own = readRecordLayer(path);
603
+ if (own.state === "unreadable")
604
+ return failure(
605
+ deps,
606
+ flags.json,
607
+ command,
608
+ EXIT_NOINPUT,
609
+ `The plugin records in ${path} could not be read (${own.reason}), so nothing was changed.`,
610
+ { id }
611
+ );
612
+ let changed = false;
613
+ if (own.enabledPlugins.get(id) !== enable) {
614
+ try {
615
+ setEnabledPlugin(path, deps.namzuHome, id, enable);
616
+ changed = true;
617
+ } catch (error) {
618
+ const failed = stateFailure(error);
619
+ return failure(deps, flags.json, command, failed.code, failed.message, { id });
620
+ }
621
+ }
622
+ const answer = currentEnabledAnswer(
623
+ { home: deps.namzuHome, cwd: ctx.cwd, projectTrusted: ctx.trusted },
624
+ id
625
+ );
626
+ const notes = [];
627
+ if (answer.on !== enable)
628
+ notes.push(
629
+ `It is still ${answer.on ? "on" : "off"} here: ${layerSentence(answer.by, answer.on)}.`
630
+ );
631
+ if (enable) {
632
+ const verdict = verifyInstalledCopy(
633
+ deps.namzuHome,
634
+ id,
635
+ chosen.installPath,
636
+ chosen.surfaceSha256
637
+ );
638
+ const all = readInstalledPlugins(deps.namzuHome);
639
+ const blocked = !verdict.ok ? verdict.message : all.state !== "unreadable" ? (await nameClashes(deps, ctx, all.plugins)).get(id) : void 0;
640
+ if (blocked !== void 0) notes.push(`It is still blocked and will not load: ${blocked}`);
641
+ }
642
+ if (enable && !deps.loadingOn)
643
+ notes.push(
644
+ "Plugin loading is off, so it will not run until you run: namzu config set plugins.enabled true"
645
+ );
646
+ const message = changed ? `Turned ${verb} ${id} (scope: ${layer}). It takes effect in new conversations.` : `${id} is already ${verb} at scope ${layer}.`;
647
+ if (flags.json)
648
+ deps.out(
649
+ `${JSON.stringify({
650
+ command,
651
+ outcome: changed ? enable ? "enabled" : "disabled" : "unchanged",
652
+ id,
653
+ scope: layer,
654
+ message,
655
+ effective: { enabled: answer.on, by: answer.by ?? null },
656
+ loading: deps.loadingOn ? "on" : "off",
657
+ ...notes.length > 0 ? { notes } : {}
658
+ })}
659
+ `
660
+ );
661
+ else deps.out(`${[message, ...notes].join("\n")}
662
+ `);
663
+ return EXIT_OK;
664
+ }
665
+ __name(runToggle, "runToggle");
666
+ async function runPluginRecords(verb, args, deps) {
667
+ const flags = parseFlags(args);
668
+ if (flags.error) return failure(deps, flags.json, `plugin ${verb}`, EXIT_USAGE, flags.error);
669
+ switch (verb) {
670
+ case "list":
671
+ return runList(deps, flags);
672
+ case "details":
673
+ return runDetails(deps, flags);
674
+ case "enable":
675
+ return runToggle(deps, flags, true);
676
+ case "disable":
677
+ return runToggle(deps, flags, false);
678
+ }
679
+ }
680
+ __name(runPluginRecords, "runPluginRecords");
681
+
682
+ // src/integrations/plugins/install-preview.ts
683
+ var one = /* @__PURE__ */ __name((value) => terminalDisplayText(value).replace(/[\t\n\r]+/g, " "), "one");
684
+ function list(items) {
685
+ return items.map(one).join(", ");
686
+ }
687
+ __name(list, "list");
688
+ function bytes(count) {
689
+ return count < 1024 ? `${count} B` : `${(count / 1024).toFixed(1)} KB`;
690
+ }
691
+ __name(bytes, "bytes");
692
+ function runsLines(surface) {
693
+ const lines = [];
694
+ for (const hook of surface.hooks)
695
+ lines.push(
696
+ ` hook ${one(hook.event)}${hook.matcher !== void 0 ? ` ${one(hook.matcher)}` : ""} -> ${hook.type === "command" ? "" : `${hook.type}: `}${one(hook.run)}`
697
+ );
698
+ for (const hook of surface.fileHooks)
699
+ lines.push(
700
+ ` hook ${one(hook.event)} in ${hook.kind} ${one(hook.name)} -> ${hook.type === "command" ? "" : `${hook.type}: `}${one(hook.run)}`
701
+ );
702
+ for (const server of surface.mcpLocal)
703
+ lines.push(
704
+ ` 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)" : ""}`
705
+ );
706
+ for (const server of surface.mcpRemote)
707
+ lines.push(
708
+ ` 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" : ""})`
709
+ );
710
+ for (const module of surface.modules)
711
+ lines.push(
712
+ 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)`
713
+ );
714
+ const moduleTools = new Set(surface.modules.filter((m) => m.tool === true).map((m) => m.path));
715
+ for (const script of surface.scripts)
716
+ lines.push(
717
+ ` script ${one(script.path)} (${bytes(script.bytes)}${script.exec ? ", executable" : ""}${moduleTools.has(script.path) ? "; also imported as a module" : ""})`
718
+ );
719
+ return lines;
720
+ }
721
+ __name(runsLines, "runsLines");
722
+ function renderInstallPreview(plan, options) {
723
+ const lines = [
724
+ 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}`,
725
+ ""
726
+ ];
727
+ if (options.changes !== void 0 && options.changes.length > 0) {
728
+ lines.push(" What changed since the version you have:");
729
+ for (const change of options.changes) lines.push(` ${one(change)}`);
730
+ lines.push("");
731
+ }
732
+ const { inventory, surface } = plan;
733
+ if (inventory.skills.length > 0)
734
+ lines.push(` Skills (${inventory.skills.length}): ${list(inventory.skills)}`);
735
+ if (inventory.commands.length > 0)
736
+ lines.push(
737
+ ` Commands (${inventory.commands.length}): ${inventory.commands.map((name) => `/${one(name)}`).join(", ")}`
738
+ );
739
+ if (inventory.agents.length > 0)
740
+ lines.push(` Agents (${inventory.agents.length}): ${list(inventory.agents)}`);
741
+ const runs = runsLines(surface);
742
+ lines.push(
743
+ runs.length > 0 ? " Runs on this computer:" : " Runs on this computer: nothing found."
744
+ );
745
+ lines.push(...runs);
746
+ if (surface.unpinnedDownload) lines.push(" This download is not pinned to a digest.");
747
+ for (const tools of surface.allowedTools)
748
+ lines.push(` Pre-approves tools: ${tools.kind} ${one(tools.name)} allows ${list(tools.tools)}`);
749
+ const listedElsewhere = /* @__PURE__ */ new Set(["mcp-server-remote", "mcp-needs-setup"]);
750
+ const notUsed = plan.findings.filter((f) => f.level === "notUsed" && !listedElsewhere.has(f.code));
751
+ if (notUsed.length > 0)
752
+ lines.push(
753
+ ` Not used by Namzu: ${[...new Set(notUsed.map((f) => f.field ?? f.code))].map(one).join(", ")}`
754
+ );
755
+ for (const finding of plan.findings.filter((f) => f.level === "refused"))
756
+ lines.push(` Left out: ${one(finding.message)}`);
757
+ for (const warning of plan.warnings) lines.push(` Note: ${one(warning)}`);
758
+ lines.push(
759
+ "",
760
+ "This plugin runs programs on your computer with your permissions. Namzu cannot",
761
+ "check what they do. Install only plugins you trust.",
762
+ `Surface: sha256:${plan.digest}`
763
+ );
764
+ return lines.join("\n");
765
+ }
766
+ __name(renderInstallPreview, "renderInstallPreview");
767
+
768
+ // src/integrations/plugins/update-compare.ts
769
+ var OWN_MANIFESTS = /* @__PURE__ */ new Set([
770
+ PLUGIN_MANIFEST_FILENAME,
771
+ `${COMMON_MANIFEST_DIR}/${PLUGIN_MANIFEST_FILENAME}`
772
+ ]);
773
+ function compareUpdate(recorded, plan) {
774
+ const before = recorded.surface;
775
+ const changes = surfaceChanges(before, plan.surface);
776
+ const manifestChanged = recorded.manifestSha256 !== manifestDigest(plan.manifest);
777
+ 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) => {
778
+ if (path.split("/").pop() === PLUGIN_MANIFEST_FILENAME)
779
+ return OWN_MANIFESTS.has(path) && !manifestChanged;
780
+ return !isExecutablePath(path, 0) && !plan.surface.scripts.some((script) => script.path === path);
781
+ });
782
+ return {
783
+ changes: recorded.manifestSha256 !== void 0 && manifestChanged ? [...changes, "the plugin manifest changed"] : changes,
784
+ unchangedSurface: recorded.surfaceSha256 === plan.digest || nothingRunsDifferently
785
+ };
786
+ }
787
+ __name(compareUpdate, "compareUpdate");
788
+
789
+ export {
790
+ renderInstallPreview,
791
+ compareUpdate,
792
+ PLUGIN_RECORD_VERBS,
793
+ PLUGIN_RECORD_HELP,
794
+ failure,
795
+ stateFailure,
796
+ resolveId,
797
+ applicable,
798
+ runPluginRecords
799
+ };
800
+ //# sourceMappingURL=chunk-SJIDADHD.js.map