@namzu/cli 60.0.0 → 60.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 (564) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/chunks/{acp-QLIZHXKX.js → acp-6R4I2A3Q.js} +2060 -245
  4. package/dist/chunks/acp-6R4I2A3Q.js.map +6 -0
  5. package/dist/chunks/{activity-command-IVAID3QG.js → activity-command-JU4HLIQJ.js} +14 -14
  6. package/dist/chunks/{add-W4VXIXR3.js → add-S6JYKDI4.js} +24 -24
  7. package/dist/chunks/{agent-3VVUFK46.js → agent-E343AQV7.js} +53 -50
  8. package/dist/chunks/agent-session-D6JIOCON.js +95 -0
  9. package/dist/chunks/{apply-at-exit-UW5DQZED.js → apply-at-exit-MEOJMGNT.js} +7 -7
  10. package/dist/chunks/{archive-VGG3TNKD.js → archive-ZPWC7GZU.js} +13 -13
  11. package/dist/chunks/{auth-XUAD35SY.js → auth-6NX4TMIG.js} +12 -12
  12. package/dist/chunks/{bin-main-3A5QPUJN.js → bin-main-P3KAQDKC.js} +8 -8
  13. package/dist/chunks/{binding-743KPSRO.js → binding-6QZVGFQ5.js} +3 -3
  14. package/dist/chunks/{browser-Y6PS3RBO.js → browser-KK2U5524.js} +7 -7
  15. package/dist/chunks/{chat-P3OKHK34.js → chat-VEXJRSZN.js} +17 -17
  16. package/dist/chunks/{chunk-AXCSETAX.js → chunk-2DCOB33W.js} +6 -6
  17. package/dist/chunks/{chunk-24PN4KZ7.js → chunk-2KVQVPJ7.js} +5 -5
  18. package/dist/chunks/chunk-32OIBGYI.js +188 -0
  19. package/dist/chunks/chunk-32OIBGYI.js.map +6 -0
  20. package/dist/chunks/{chunk-ITFIXESL.js → chunk-42JIZXVL.js} +4 -4
  21. package/dist/chunks/{chunk-44V3FNMT.js → chunk-4473VICE.js} +3 -3
  22. package/dist/chunks/{chunk-D5ORLKON.js → chunk-44YG6EI4.js} +4 -4
  23. package/dist/chunks/{chunk-OTNW5ZO6.js → chunk-452SL2Y4.js} +2 -2
  24. package/dist/chunks/{chunk-SR4DQPOI.js → chunk-4BNCVR3U.js} +2 -2
  25. package/dist/chunks/{chunk-IGZGAC75.js → chunk-4CJ3HPOT.js} +2 -2
  26. package/dist/chunks/{chunk-WWMSEDXA.js → chunk-4DSUVT37.js} +13 -10
  27. package/dist/chunks/chunk-4DSUVT37.js.map +6 -0
  28. package/dist/chunks/{chunk-TSHMH45O.js → chunk-4ENL4VUO.js} +4 -4
  29. package/dist/chunks/{chunk-ONVEH4H7.js → chunk-4KVYTHY7.js} +3 -3
  30. package/dist/chunks/{chunk-KBIVQ5RH.js → chunk-4Y242BU4.js} +5 -5
  31. package/dist/chunks/{chunk-2P427DDU.js → chunk-5F4DSPZC.js} +10 -10
  32. package/dist/chunks/{chunk-QI6XNUH6.js → chunk-5IGEQN7L.js} +4 -4
  33. package/dist/chunks/{chunk-5Y455HIT.js → chunk-5ZLKTFU2.js} +3 -3
  34. package/dist/chunks/{chunk-SNKDM7FT.js → chunk-66QIFMEO.js} +2 -2
  35. package/dist/chunks/{chunk-ATL46ZCR.js → chunk-6HYK4DDB.js} +3 -3
  36. package/dist/chunks/{chunk-D3OHAYMX.js → chunk-6TUHWKXP.js} +15 -6
  37. package/dist/chunks/chunk-6TUHWKXP.js.map +6 -0
  38. package/dist/chunks/{chunk-FISBMAF4.js → chunk-6W3UGXGG.js} +4 -4
  39. package/dist/chunks/{chunk-P2PWTXHD.js → chunk-75YLZNZW.js} +3 -3
  40. package/dist/chunks/{chunk-37S6BVTN.js → chunk-AC5P6W3G.js} +2 -2
  41. package/dist/chunks/chunk-AMYP2WPW.js +1055 -0
  42. package/dist/chunks/chunk-AMYP2WPW.js.map +6 -0
  43. package/dist/chunks/{chunk-XNALFKQ2.js → chunk-AYMB4AOZ.js} +4 -4
  44. package/dist/chunks/{chunk-ZFEDNTIB.js → chunk-B4AOCHH6.js} +3 -3
  45. package/dist/chunks/{chunk-7PD3LHIR.js → chunk-BA7KUG6V.js} +2 -2
  46. package/dist/chunks/{chunk-3JCHJOU3.js → chunk-BHQHTM3Z.js} +5 -5
  47. package/dist/chunks/chunk-BJT37HR4.js +3644 -0
  48. package/dist/chunks/chunk-BJT37HR4.js.map +6 -0
  49. package/dist/chunks/{chunk-52T26DYZ.js → chunk-BNLIRJ3M.js} +4 -4
  50. package/dist/chunks/{chunk-ZHRBJT5B.js → chunk-BURGRQWO.js} +2 -2
  51. package/dist/chunks/{chunk-3P5TQ3VZ.js → chunk-BWD2TUI4.js} +5 -5
  52. package/dist/chunks/{chunk-LQFUO2RZ.js → chunk-BZR5PIFF.js} +300 -292
  53. package/dist/chunks/chunk-BZR5PIFF.js.map +6 -0
  54. package/dist/chunks/{chunk-OK3QKISP.js → chunk-C7E7YCRD.js} +5 -5
  55. package/dist/chunks/{chunk-YMVJOKBZ.js → chunk-CXW7I2S3.js} +2 -2
  56. package/dist/chunks/{chunk-4KRQ6EWL.js → chunk-D2R47LDH.js} +121 -8
  57. package/dist/chunks/chunk-D2R47LDH.js.map +6 -0
  58. package/dist/chunks/chunk-D4TXOX34.js +342 -0
  59. package/dist/chunks/chunk-D4TXOX34.js.map +6 -0
  60. package/dist/chunks/{chunk-BJWJPQ66.js → chunk-D6PB3Z7Q.js} +2 -2
  61. package/dist/chunks/{chunk-FOS5YJED.js → chunk-DEAG4G5J.js} +2 -2
  62. package/dist/chunks/{chunk-DHQJRU7E.js → chunk-DRSQTKDN.js} +3 -3
  63. package/dist/chunks/chunk-EBBT2I5S.js +153 -0
  64. package/dist/chunks/chunk-EBBT2I5S.js.map +6 -0
  65. package/dist/chunks/{chunk-JAPP6DFJ.js → chunk-EWPGU4HH.js} +10 -364
  66. package/dist/chunks/chunk-EWPGU4HH.js.map +6 -0
  67. package/dist/chunks/{chunk-HNSJJXIO.js → chunk-EXJJLYZK.js} +3 -3
  68. package/dist/chunks/{chunk-L7DZ2QPD.js → chunk-F5W4TNCR.js} +2 -2
  69. package/dist/chunks/{chunk-XIBT7TAZ.js → chunk-F7KOBJVW.js} +4 -4
  70. package/dist/chunks/{chunk-XLWFT4QC.js → chunk-FK4MAZV2.js} +5 -5
  71. package/dist/chunks/{chunk-NIHIVQJS.js → chunk-FMD4REZQ.js} +41 -41
  72. package/dist/chunks/{chunk-NIHIVQJS.js.map → chunk-FMD4REZQ.js.map} +1 -1
  73. package/dist/chunks/{chunk-J2AH4QK4.js → chunk-FPC3K4TT.js} +3 -3
  74. package/dist/chunks/{chunk-RE5EUO3F.js → chunk-FVIKYFYD.js} +2 -2
  75. package/dist/chunks/{chunk-TN7MDKW2.js → chunk-GPTYDM26.js} +8 -8
  76. package/dist/chunks/{chunk-3APHAS77.js → chunk-GT22EDUB.js} +6 -6
  77. package/dist/chunks/{chunk-PGD2EYI7.js → chunk-GTUTBTOV.js} +3 -3
  78. package/dist/chunks/{chunk-ZY7N242I.js → chunk-H6NTNPWD.js} +4 -4
  79. package/dist/chunks/{chunk-2X53RSPY.js → chunk-HCQGZPVT.js} +2 -2
  80. package/dist/chunks/{chunk-BBBVDHRH.js → chunk-HG2PPCAE.js} +3 -3
  81. package/dist/chunks/{chunk-JR66BLKY.js → chunk-HKRUNZVI.js} +3 -3
  82. package/dist/chunks/{chunk-BBBFPJV3.js → chunk-HM7L5PM2.js} +3 -3
  83. package/dist/chunks/{chunk-2CP6CJXJ.js → chunk-I4RC6KQQ.js} +19 -19
  84. package/dist/chunks/{chunk-GRCEOMSP.js → chunk-IL4Y3JGT.js} +13 -13
  85. package/dist/chunks/{chunk-RYV4P5CO.js → chunk-IMMUS7IW.js} +278 -7
  86. package/dist/chunks/chunk-IMMUS7IW.js.map +6 -0
  87. package/dist/chunks/{chunk-HT6A5LCI.js → chunk-IQ44C7Y3.js} +33 -9
  88. package/dist/chunks/chunk-IQ44C7Y3.js.map +6 -0
  89. package/dist/chunks/{chunk-VUKFKBOO.js → chunk-J4PL65DJ.js} +6 -6
  90. package/dist/chunks/chunk-JANK2R3L.js +402 -0
  91. package/dist/chunks/chunk-JANK2R3L.js.map +6 -0
  92. package/dist/chunks/{chunk-TYD5K7MT.js → chunk-JECLB23L.js} +6 -6
  93. package/dist/chunks/{chunk-XVML5P53.js → chunk-JJ72TLOA.js} +15 -15
  94. package/dist/chunks/{chunk-FQ3DUX7L.js → chunk-JRBFL6WT.js} +2 -2
  95. package/dist/chunks/{chunk-UCDXXMAD.js → chunk-K2EKXCLZ.js} +3 -3
  96. package/dist/chunks/{chunk-MN3CC4AF.js → chunk-K7YZJV2X.js} +248 -24
  97. package/dist/chunks/chunk-K7YZJV2X.js.map +6 -0
  98. package/dist/chunks/chunk-KF6IKSF2.js +472 -0
  99. package/dist/chunks/chunk-KF6IKSF2.js.map +6 -0
  100. package/dist/chunks/{chunk-XS6GGF4E.js → chunk-KSRN5Y2O.js} +64 -45
  101. package/dist/chunks/chunk-KSRN5Y2O.js.map +6 -0
  102. package/dist/chunks/{chunk-JCK6FM7F.js → chunk-ME4LETA3.js} +2 -2
  103. package/dist/chunks/{chunk-2FP2UHZO.js → chunk-MF3SFDBW.js} +3 -3
  104. package/dist/chunks/{chunk-HA46XY4I.js → chunk-MK42KB72.js} +4 -4
  105. package/dist/chunks/{chunk-EYF7VILP.js → chunk-MUSGZEFY.js} +2 -2
  106. package/dist/chunks/{chunk-XAMOWP2G.js → chunk-N5CCXOYK.js} +7 -7
  107. package/dist/chunks/{chunk-DFOULHWV.js → chunk-NBJ5PRAY.js} +3 -3
  108. package/dist/chunks/{chunk-ZPWWUTSR.js → chunk-NKHEBASJ.js} +2 -2
  109. package/dist/chunks/{chunk-R6WB34IP.js → chunk-NVWD5XDT.js} +2 -2
  110. package/dist/chunks/{chunk-CQNVNHRL.js → chunk-O45DCUNX.js} +2 -2
  111. package/dist/chunks/{chunk-7MC2ACNB.js → chunk-O4EILTV6.js} +111 -20
  112. package/dist/chunks/chunk-O4EILTV6.js.map +6 -0
  113. package/dist/chunks/{chunk-OVJOSPJ5.js → chunk-PAUMCJPX.js} +3 -3
  114. package/dist/chunks/{chunk-E5GQTEDW.js → chunk-PE4MWWUW.js} +3 -3
  115. package/dist/chunks/{chunk-3533PAJJ.js → chunk-PLCWCIL4.js} +2 -2
  116. package/dist/chunks/{chunk-G4XSQIFF.js → chunk-PRJO4XM3.js} +2 -2
  117. package/dist/chunks/{chunk-6V6MRHZZ.js → chunk-PRRX5LNR.js} +2 -2
  118. package/dist/chunks/{chunk-LONNSCMP.js → chunk-PS5SVAUJ.js} +2 -2
  119. package/dist/chunks/chunk-PZLPACNY.js +407 -0
  120. package/dist/chunks/chunk-PZLPACNY.js.map +6 -0
  121. package/dist/chunks/{chunk-EN2E63G6.js → chunk-PZWSRAE7.js} +6 -6
  122. package/dist/chunks/{chunk-S6LFXBVK.js → chunk-QBLHOG2F.js} +3 -3
  123. package/dist/chunks/{chunk-4FMBST2N.js → chunk-QCV3HH4P.js} +2 -2
  124. package/dist/chunks/{chunk-R2TBZK62.js → chunk-QGBR42TV.js} +7 -7
  125. package/dist/chunks/{chunk-TFOFFJNY.js → chunk-QNJXULU7.js} +2 -2
  126. package/dist/chunks/{chunk-IOTYZLY5.js → chunk-QQ4S6MNH.js} +13548 -4076
  127. package/dist/chunks/chunk-QQ4S6MNH.js.map +6 -0
  128. package/dist/chunks/{chunk-PIUHVCR3.js → chunk-R2KAESOM.js} +2 -2
  129. package/dist/chunks/{chunk-G52WH6JI.js → chunk-R6M6EIAH.js} +4 -4
  130. package/dist/chunks/{chunk-2PEIKBGP.js → chunk-RKKU2RE4.js} +2 -2
  131. package/dist/chunks/{chunk-YHFKTEU6.js → chunk-RMOTHWPV.js} +2 -2
  132. package/dist/chunks/{chunk-ZX5C2ELY.js → chunk-RQAY7REG.js} +3 -3
  133. package/dist/chunks/{chunk-MXLAVYBS.js → chunk-SLTJNYOU.js} +2 -2
  134. package/dist/chunks/{chunk-JARQ4I4Q.js → chunk-SXONHO4H.js} +9 -9
  135. package/dist/chunks/{chunk-YWBOZNDX.js → chunk-T7ILM666.js} +11 -11
  136. package/dist/chunks/{chunk-OOIVZ5PA.js → chunk-TBGKPWCL.js} +9 -9
  137. package/dist/chunks/{chunk-M4LHZRTX.js → chunk-TBJ6XU3T.js} +3 -3
  138. package/dist/chunks/{chunk-UI3ELYQU.js → chunk-TMPP2DEY.js} +4 -4
  139. package/dist/chunks/{chunk-DLMDCCO7.js → chunk-TSOZBRM6.js} +2 -2
  140. package/dist/chunks/{chunk-7XLZPKOT.js → chunk-TTFPWGIU.js} +2 -2
  141. package/dist/chunks/{chunk-NCPOOJD4.js → chunk-TTKMQW6B.js} +3 -3
  142. package/dist/chunks/{chunk-S5GKG5GV.js → chunk-UCML5ZXB.js} +3 -3
  143. package/dist/chunks/{chunk-HAIG4TLP.js → chunk-VG7245VJ.js} +6 -6
  144. package/dist/chunks/{chunk-IXJ6A2XE.js → chunk-VQZPXK4X.js} +3 -3
  145. package/dist/chunks/{chunk-2MEBOBOM.js → chunk-VWUTJ4EU.js} +3 -3
  146. package/dist/chunks/{chunk-VJFBRQZ4.js → chunk-WDKAL7EW.js} +2 -2
  147. package/dist/chunks/{chunk-2ED34AXP.js → chunk-WJ6QRVL6.js} +2 -2
  148. package/dist/chunks/{chunk-CKMF72VE.js → chunk-WOTA5FO5.js} +3 -3
  149. package/dist/chunks/{chunk-QUUDXDDL.js → chunk-WPGVZMSU.js} +2 -2
  150. package/dist/chunks/{chunk-ULJAPIOG.js → chunk-WYA4QWWE.js} +181 -7
  151. package/dist/chunks/chunk-WYA4QWWE.js.map +6 -0
  152. package/dist/chunks/{chunk-EVJKQAZM.js → chunk-XDUA6PBP.js} +2 -2
  153. package/dist/chunks/{chunk-GVHUHRGI.js → chunk-XE6XT6R6.js} +4 -4
  154. package/dist/chunks/{chunk-QFJ5IWYL.js → chunk-XNQY26AE.js} +31 -131
  155. package/dist/chunks/chunk-XNQY26AE.js.map +6 -0
  156. package/dist/chunks/{chunk-LGUIDOA7.js → chunk-YR3TWNIV.js} +9 -9
  157. package/dist/chunks/{chunk-K4APHATW.js → chunk-YWRRS7SO.js} +2 -2
  158. package/dist/chunks/{chunk-F6YNTG3K.js → chunk-Z5OG4HXI.js} +26 -22
  159. package/dist/chunks/chunk-Z5OG4HXI.js.map +6 -0
  160. package/dist/chunks/{chunk-ESLOAQRL.js → chunk-ZHEEG3NS.js} +2 -2
  161. package/dist/chunks/{cli-runtime-SL6YG4EX.js → cli-runtime-ZJKKIW4H.js} +22 -22
  162. package/dist/chunks/{commands-XRQOUFRE.js → commands-TQH5DD22.js} +6 -6
  163. package/dist/chunks/{computer-6P3GAOV2.js → computer-WOU5WIIR.js} +2 -2
  164. package/dist/chunks/{config-W3ABQG5K.js → config-APYUJ5UW.js} +13 -13
  165. package/dist/chunks/{cost-ZKKW4JSZ.js → cost-5YV27U7F.js} +5 -5
  166. package/dist/chunks/{crash-report-Q2WAKIU5.js → crash-report-QVXU2YVL.js} +6 -6
  167. package/dist/chunks/{dist-JY4FIVBZ.js → dist-2FSOLP72.js} +2 -2
  168. package/dist/chunks/{dist-O2QP5QCU.js → dist-AOT4CEP5.js} +2 -2
  169. package/dist/chunks/{dist-OXSKWJNB.js → dist-H7CAJ3ZW.js} +44 -2
  170. package/dist/chunks/{dist-IPR6EVQM.js → dist-IZGKRIWL.js} +2 -2
  171. package/dist/chunks/{dist-WI7EX7ZF.js → dist-J4UXFVYR.js} +2 -2
  172. package/dist/chunks/{dist-YE6ADUZP.js → dist-JHKRSGW6.js} +2 -2
  173. package/dist/chunks/{dist-R4PUUPXV.js → dist-PZYMYR7N.js} +3 -3
  174. package/dist/chunks/{dist-VT4VSQTO.js → dist-Z2HW2SJR.js} +2 -2
  175. package/dist/chunks/{doctor-EUH7WGN6.js → doctor-CM6UPXG5.js} +40 -38
  176. package/dist/chunks/{drain-3DDY42KQ.js → drain-X6RURKKC.js} +17 -17
  177. package/dist/chunks/{entry-FNHGVOQM.js → entry-QQDPY6ZL.js} +6 -6
  178. package/dist/chunks/{eval-CFKAWR3B.js → eval-GZA22B4I.js} +9 -9
  179. package/dist/chunks/{exec-BR6L3C3T.js → exec-3NE75Z6E.js} +46 -45
  180. package/dist/chunks/exec-3NE75Z6E.js.map +6 -0
  181. package/dist/chunks/{extension-4VR722KH.js → extension-N5IQNKVZ.js} +6 -5
  182. package/dist/chunks/{github-IF3JVVJF.js → github-AUOENJUY.js} +2 -2
  183. package/dist/chunks/{home-JCDINY64.js → home-I4FIB6FV.js} +3 -3
  184. package/dist/chunks/{homes-53P37RPB.js → homes-WTMMXQ6G.js} +5 -5
  185. package/dist/chunks/{hooks-6EV4IEHU.js → hooks-R42OTZDT.js} +22 -21
  186. package/dist/chunks/hooks-R42OTZDT.js.map +6 -0
  187. package/dist/chunks/{hooks-report-OK5PIOSF.js → hooks-report-K6VOPVBR.js} +18 -17
  188. package/dist/chunks/{host-KF63UW3T.js → host-65UFBZJV.js} +10 -10
  189. package/dist/chunks/host-queries-L4PYE2BW.js +37 -0
  190. package/dist/chunks/{installed-list-QLVA6XBV.js → installed-list-7QIWVKLQ.js} +4 -4
  191. package/dist/chunks/{learn-XNVRCNGV.js → learn-NZXLKYV4.js} +17 -17
  192. package/dist/chunks/{learn-builtin-XABWBGRU.js → learn-builtin-RC4XXVBS.js} +20 -20
  193. package/dist/chunks/{lifecycle-K7REDQBN.js → lifecycle-NLCZ6OPA.js} +30 -30
  194. package/dist/chunks/{list-US5UDLON.js → list-2U67CAWS.js} +18 -18
  195. package/dist/chunks/{live-DNA4UB2B.js → live-CWJ2NWUQ.js} +39 -37
  196. package/dist/chunks/{load-2WCYASMC.js → load-H52QQBVE.js} +13 -9
  197. package/dist/chunks/{logs-ZF7YJNOC.js → logs-ZIW3QFU4.js} +4 -4
  198. package/dist/chunks/{mcp-FBJXQJ6I.js → mcp-FNSMEMCM.js} +145 -35
  199. package/dist/chunks/mcp-FNSMEMCM.js.map +6 -0
  200. package/dist/chunks/{mcp-serve-TTZ33VMY.js → mcp-serve-ZC2OKIPP.js} +17 -17
  201. package/dist/chunks/{message-command-FMT4APFA.js → message-command-IHZWL5GI.js} +59 -56
  202. package/dist/chunks/message-command-IHZWL5GI.js.map +6 -0
  203. package/dist/chunks/{open-I4YKGQSW.js → open-AHDQMVXI.js} +7 -7
  204. package/dist/chunks/{operator-tools-FC5JFH42.js → operator-tools-P5R4TF6N.js} +15 -15
  205. package/dist/chunks/{output-schema-KMYL2UB6.js → output-schema-Q5RWHNKE.js} +3 -3
  206. package/dist/chunks/{pal-UZFR42OY.js → pal-T42HU4AK.js} +15 -15
  207. package/dist/chunks/{peers-NM5HJGSR.js → peers-5RYEA7IA.js} +7 -7
  208. package/dist/chunks/{peers-V7XCJUFZ.js → peers-7ZG3DEBO.js} +19 -19
  209. package/dist/chunks/plugin-DGEINYG5.js +2958 -0
  210. package/dist/chunks/plugin-DGEINYG5.js.map +6 -0
  211. package/dist/chunks/{providers-BQ25F6LA.js → providers-BXXIM7EW.js} +18 -18
  212. package/dist/chunks/{providers-VS37WA3E.js → providers-I24HYZXG.js} +10 -10
  213. package/dist/chunks/{pty-NWEV3DSP.js → pty-WVKM6ATI.js} +3 -3
  214. package/dist/chunks/resume-F7JEDBHI.js +25 -0
  215. package/dist/chunks/{resume-command-KEXAVL6P.js → resume-command-4I47WN7T.js} +4 -4
  216. package/dist/chunks/{running-JLMG6IL4.js → running-VID6BVT2.js} +4 -4
  217. package/dist/chunks/{schedule-6ERJJOA3.js → schedule-75IZH76Z.js} +12 -12
  218. package/dist/chunks/{send-UXJ7GXKN.js → send-QRYY2NCG.js} +19 -19
  219. package/dist/chunks/send-person-VADQNJBN.js +32 -0
  220. package/dist/chunks/{service-NYJZCLH2.js → service-B6BNESZB.js} +30 -30
  221. package/dist/chunks/{setting-cli-ILFKSR4D.js → setting-cli-O4YWOIU5.js} +12 -12
  222. package/dist/chunks/skills-PEMVX5C3.js +604 -0
  223. package/dist/chunks/skills-PEMVX5C3.js.map +6 -0
  224. package/dist/chunks/{start-check-7GBRCGVJ.js → start-check-EKRXJ5VE.js} +2 -2
  225. package/dist/chunks/{startup-failure-UA32GGJB.js → startup-failure-2UJKPNMR.js} +2 -2
  226. package/dist/chunks/{state-SSRHEX5K.js → state-X3MKUFYM.js} +20 -20
  227. package/dist/chunks/{store-2GFZ5XXW.js → store-4OXWHFS5.js} +12 -12
  228. package/dist/chunks/{store-ROR7VTZ2.js → store-MK5IYBE5.js} +8 -8
  229. package/dist/chunks/{store-WRRTTRBT.js → store-QFNY4BV4.js} +4 -4
  230. package/dist/chunks/{store-MP5EB266.js → store-VRKKFOYW.js} +3 -3
  231. package/dist/chunks/{tui-2JTNW2G7.js → tui-MI72TUST.js} +96 -92
  232. package/dist/chunks/tui-MI72TUST.js.map +6 -0
  233. package/dist/chunks/{update-32IRH5TG.js → update-ELZEXYIX.js} +8 -8
  234. package/dist/chunks/{watch-PXPP5QXP.js → watch-HPINGMZZ.js} +100 -96
  235. package/dist/chunks/watch-HPINGMZZ.js.map +6 -0
  236. package/dist/chunks/{workspaces-4YXZSENL.js → workspaces-3LB4SPPS.js} +15 -15
  237. package/dist/chunks/{worktree-DJHBLFHZ.js → worktree-5CWUUWNO.js} +26 -22
  238. package/dist/chunks/worktree-5CWUUWNO.js.map +6 -0
  239. package/dist/commands/acp.d.ts +4 -2
  240. package/dist/commands/acp.d.ts.map +1 -1
  241. package/dist/commands/actions/mcp.d.ts.map +1 -1
  242. package/dist/commands/actions/small.d.ts.map +1 -1
  243. package/dist/commands/desktop-host-plugins.d.ts +321 -0
  244. package/dist/commands/desktop-host-plugins.d.ts.map +1 -0
  245. package/dist/commands/desktop-host-skills.d.ts +103 -0
  246. package/dist/commands/desktop-host-skills.d.ts.map +1 -0
  247. package/dist/commands/desktop-host.d.ts +230 -18
  248. package/dist/commands/desktop-host.d.ts.map +1 -1
  249. package/dist/commands/manifest.d.ts.map +1 -1
  250. package/dist/commands/mcp.d.ts.map +1 -1
  251. package/dist/commands/plugin-install.d.ts +28 -0
  252. package/dist/commands/plugin-install.d.ts.map +1 -0
  253. package/dist/commands/plugin-records.d.ts +48 -0
  254. package/dist/commands/plugin-records.d.ts.map +1 -0
  255. package/dist/commands/plugin.d.ts.map +1 -1
  256. package/dist/commands/skills-manage.d.ts +32 -0
  257. package/dist/commands/skills-manage.d.ts.map +1 -0
  258. package/dist/commands/skills.d.ts.map +1 -1
  259. package/dist/config/load.d.ts +9 -0
  260. package/dist/config/load.d.ts.map +1 -1
  261. package/dist/config/schema.d.ts +7 -0
  262. package/dist/config/schema.d.ts.map +1 -1
  263. package/dist/config/settings-descriptors.d.ts.map +1 -1
  264. package/dist/index.js +40 -38
  265. package/dist/integrations/archive/zip.d.ts +36 -0
  266. package/dist/integrations/archive/zip.d.ts.map +1 -0
  267. package/dist/integrations/extensions/package.d.ts +7 -16
  268. package/dist/integrations/extensions/package.d.ts.map +1 -1
  269. package/dist/integrations/mcp/all-servers.d.ts +30 -0
  270. package/dist/integrations/mcp/all-servers.d.ts.map +1 -0
  271. package/dist/integrations/mcp/plugin-remote.d.ts +141 -0
  272. package/dist/integrations/mcp/plugin-remote.d.ts.map +1 -0
  273. package/dist/integrations/mcp/project-approval.d.ts +29 -1
  274. package/dist/integrations/mcp/project-approval.d.ts.map +1 -1
  275. package/dist/integrations/mcp/server-listing.d.ts +7 -3
  276. package/dist/integrations/mcp/server-listing.d.ts.map +1 -1
  277. package/dist/integrations/mcp/servers.d.ts +6 -0
  278. package/dist/integrations/mcp/servers.d.ts.map +1 -1
  279. package/dist/integrations/mcp/user-config.d.ts +10 -0
  280. package/dist/integrations/mcp/user-config.d.ts.map +1 -1
  281. package/dist/integrations/plugins/enabled-records.d.ts +78 -0
  282. package/dist/integrations/plugins/enabled-records.d.ts.map +1 -0
  283. package/dist/integrations/plugins/fetch/archive.d.ts +15 -0
  284. package/dist/integrations/plugins/fetch/archive.d.ts.map +1 -0
  285. package/dist/integrations/plugins/fetch/git.d.ts +145 -0
  286. package/dist/integrations/plugins/fetch/git.d.ts.map +1 -0
  287. package/dist/integrations/plugins/fetch/index.d.ts +33 -0
  288. package/dist/integrations/plugins/fetch/index.d.ts.map +1 -0
  289. package/dist/integrations/plugins/fetch/source.d.ts +107 -0
  290. package/dist/integrations/plugins/fetch/source.d.ts.map +1 -0
  291. package/dist/integrations/plugins/fetch/url.d.ts +34 -0
  292. package/dist/integrations/plugins/fetch/url.d.ts.map +1 -0
  293. package/dist/integrations/plugins/files.d.ts +15 -3
  294. package/dist/integrations/plugins/files.d.ts.map +1 -1
  295. package/dist/integrations/plugins/hook-entries.d.ts +2 -0
  296. package/dist/integrations/plugins/hook-entries.d.ts.map +1 -1
  297. package/dist/integrations/plugins/install-manifest.d.ts +70 -0
  298. package/dist/integrations/plugins/install-manifest.d.ts.map +1 -0
  299. package/dist/integrations/plugins/install-plan.d.ts +119 -0
  300. package/dist/integrations/plugins/install-plan.d.ts.map +1 -0
  301. package/dist/integrations/plugins/install-preview.d.ts +24 -0
  302. package/dist/integrations/plugins/install-preview.d.ts.map +1 -0
  303. package/dist/integrations/plugins/install.d.ts +118 -0
  304. package/dist/integrations/plugins/install.d.ts.map +1 -0
  305. package/dist/integrations/plugins/installed-source.d.ts +80 -0
  306. package/dist/integrations/plugins/installed-source.d.ts.map +1 -0
  307. package/dist/integrations/plugins/inventory.d.ts +2 -1
  308. package/dist/integrations/plugins/inventory.d.ts.map +1 -1
  309. package/dist/integrations/plugins/json-state.d.ts +52 -0
  310. package/dist/integrations/plugins/json-state.d.ts.map +1 -0
  311. package/dist/integrations/plugins/manifest-details.d.ts +23 -0
  312. package/dist/integrations/plugins/manifest-details.d.ts.map +1 -0
  313. package/dist/integrations/plugins/marketplace.d.ts +111 -0
  314. package/dist/integrations/plugins/marketplace.d.ts.map +1 -0
  315. package/dist/integrations/plugins/records.d.ts +127 -0
  316. package/dist/integrations/plugins/records.d.ts.map +1 -0
  317. package/dist/integrations/plugins/remote-marketplace.d.ts +100 -0
  318. package/dist/integrations/plugins/remote-marketplace.d.ts.map +1 -0
  319. package/dist/integrations/plugins/runtime.d.ts +28 -0
  320. package/dist/integrations/plugins/runtime.d.ts.map +1 -1
  321. package/dist/integrations/plugins/surface.d.ts +126 -0
  322. package/dist/integrations/plugins/surface.d.ts.map +1 -0
  323. package/dist/integrations/plugins/update-compare.d.ts +18 -0
  324. package/dist/integrations/plugins/update-compare.d.ts.map +1 -0
  325. package/dist/integrations/plugins/validate.d.ts +50 -1
  326. package/dist/integrations/plugins/validate.d.ts.map +1 -1
  327. package/dist/integrations/subagents/definitions.d.ts +4 -0
  328. package/dist/integrations/subagents/definitions.d.ts.map +1 -1
  329. package/dist/integrations/trust/folder-grants.d.ts +21 -1
  330. package/dist/integrations/trust/folder-grants.d.ts.map +1 -1
  331. package/dist/rounds/types.d.ts +5 -0
  332. package/dist/rounds/types.d.ts.map +1 -1
  333. package/dist/skills/add.d.ts +104 -0
  334. package/dist/skills/add.d.ts.map +1 -0
  335. package/dist/skills/audit.d.ts +7 -1
  336. package/dist/skills/audit.d.ts.map +1 -1
  337. package/dist/skills/create.d.ts +19 -0
  338. package/dist/skills/create.d.ts.map +1 -0
  339. package/dist/skills/desktop-catalog.d.ts +64 -0
  340. package/dist/skills/desktop-catalog.d.ts.map +1 -0
  341. package/dist/skills/install.d.ts +73 -0
  342. package/dist/skills/install.d.ts.map +1 -0
  343. package/dist/skills/remove.d.ts +38 -0
  344. package/dist/skills/remove.d.ts.map +1 -0
  345. package/dist/skills/save.d.ts +2 -27
  346. package/dist/skills/save.d.ts.map +1 -1
  347. package/dist/skills/validate.d.ts +57 -0
  348. package/dist/skills/validate.d.ts.map +1 -0
  349. package/dist/tui/App.d.ts.map +1 -1
  350. package/dist/tui/Composer.d.ts +6 -10
  351. package/dist/tui/Composer.d.ts.map +1 -1
  352. package/dist/tui/PendingInputPanel.d.ts +4 -4
  353. package/dist/tui/PendingInputPanel.d.ts.map +1 -1
  354. package/dist/tui/TrustPrompt.d.ts.map +1 -1
  355. package/dist/tui/agent.d.ts +11 -0
  356. package/dist/tui/agent.d.ts.map +1 -1
  357. package/dist/tui/slashCommands.d.ts.map +1 -1
  358. package/dist/user-commands/store.d.ts +12 -0
  359. package/dist/user-commands/store.d.ts.map +1 -1
  360. package/package.json +3 -3
  361. package/dist/chunks/acp-QLIZHXKX.js.map +0 -6
  362. package/dist/chunks/agent-session-TXDHPZJX.js +0 -92
  363. package/dist/chunks/chunk-4KRQ6EWL.js.map +0 -6
  364. package/dist/chunks/chunk-4YUR4SIL.js +0 -116
  365. package/dist/chunks/chunk-4YUR4SIL.js.map +0 -6
  366. package/dist/chunks/chunk-7MC2ACNB.js.map +0 -6
  367. package/dist/chunks/chunk-D3OHAYMX.js.map +0 -6
  368. package/dist/chunks/chunk-F6YNTG3K.js.map +0 -6
  369. package/dist/chunks/chunk-HT6A5LCI.js.map +0 -6
  370. package/dist/chunks/chunk-IOTYZLY5.js.map +0 -6
  371. package/dist/chunks/chunk-JAPP6DFJ.js.map +0 -6
  372. package/dist/chunks/chunk-LQFUO2RZ.js.map +0 -6
  373. package/dist/chunks/chunk-MN3CC4AF.js.map +0 -6
  374. package/dist/chunks/chunk-QFJ5IWYL.js.map +0 -6
  375. package/dist/chunks/chunk-RHJOIAFS.js +0 -201
  376. package/dist/chunks/chunk-RHJOIAFS.js.map +0 -6
  377. package/dist/chunks/chunk-RYV4P5CO.js.map +0 -6
  378. package/dist/chunks/chunk-ULJAPIOG.js.map +0 -6
  379. package/dist/chunks/chunk-WWMSEDXA.js.map +0 -6
  380. package/dist/chunks/chunk-XS6GGF4E.js.map +0 -6
  381. package/dist/chunks/exec-BR6L3C3T.js.map +0 -6
  382. package/dist/chunks/hooks-6EV4IEHU.js.map +0 -6
  383. package/dist/chunks/host-queries-5ZWYD4VD.js +0 -37
  384. package/dist/chunks/mcp-FBJXQJ6I.js.map +0 -6
  385. package/dist/chunks/message-command-FMT4APFA.js.map +0 -6
  386. package/dist/chunks/plugin-UEPWXCB4.js +0 -1132
  387. package/dist/chunks/plugin-UEPWXCB4.js.map +0 -6
  388. package/dist/chunks/resume-Y7P3TAVG.js +0 -25
  389. package/dist/chunks/send-person-DLJU45IU.js +0 -32
  390. package/dist/chunks/skills-4HM2LPS4.js +0 -350
  391. package/dist/chunks/skills-4HM2LPS4.js.map +0 -6
  392. package/dist/chunks/tui-2JTNW2G7.js.map +0 -6
  393. package/dist/chunks/watch-PXPP5QXP.js.map +0 -6
  394. package/dist/chunks/worktree-DJHBLFHZ.js.map +0 -6
  395. /package/dist/chunks/{activity-command-IVAID3QG.js.map → activity-command-JU4HLIQJ.js.map} +0 -0
  396. /package/dist/chunks/{add-W4VXIXR3.js.map → add-S6JYKDI4.js.map} +0 -0
  397. /package/dist/chunks/{agent-3VVUFK46.js.map → agent-E343AQV7.js.map} +0 -0
  398. /package/dist/chunks/{agent-session-TXDHPZJX.js.map → agent-session-D6JIOCON.js.map} +0 -0
  399. /package/dist/chunks/{apply-at-exit-UW5DQZED.js.map → apply-at-exit-MEOJMGNT.js.map} +0 -0
  400. /package/dist/chunks/{archive-VGG3TNKD.js.map → archive-ZPWC7GZU.js.map} +0 -0
  401. /package/dist/chunks/{auth-XUAD35SY.js.map → auth-6NX4TMIG.js.map} +0 -0
  402. /package/dist/chunks/{bin-main-3A5QPUJN.js.map → bin-main-P3KAQDKC.js.map} +0 -0
  403. /package/dist/chunks/{binding-743KPSRO.js.map → binding-6QZVGFQ5.js.map} +0 -0
  404. /package/dist/chunks/{browser-Y6PS3RBO.js.map → browser-KK2U5524.js.map} +0 -0
  405. /package/dist/chunks/{chat-P3OKHK34.js.map → chat-VEXJRSZN.js.map} +0 -0
  406. /package/dist/chunks/{chunk-AXCSETAX.js.map → chunk-2DCOB33W.js.map} +0 -0
  407. /package/dist/chunks/{chunk-24PN4KZ7.js.map → chunk-2KVQVPJ7.js.map} +0 -0
  408. /package/dist/chunks/{chunk-ITFIXESL.js.map → chunk-42JIZXVL.js.map} +0 -0
  409. /package/dist/chunks/{chunk-44V3FNMT.js.map → chunk-4473VICE.js.map} +0 -0
  410. /package/dist/chunks/{chunk-D5ORLKON.js.map → chunk-44YG6EI4.js.map} +0 -0
  411. /package/dist/chunks/{chunk-OTNW5ZO6.js.map → chunk-452SL2Y4.js.map} +0 -0
  412. /package/dist/chunks/{chunk-SR4DQPOI.js.map → chunk-4BNCVR3U.js.map} +0 -0
  413. /package/dist/chunks/{chunk-IGZGAC75.js.map → chunk-4CJ3HPOT.js.map} +0 -0
  414. /package/dist/chunks/{chunk-TSHMH45O.js.map → chunk-4ENL4VUO.js.map} +0 -0
  415. /package/dist/chunks/{chunk-ONVEH4H7.js.map → chunk-4KVYTHY7.js.map} +0 -0
  416. /package/dist/chunks/{chunk-KBIVQ5RH.js.map → chunk-4Y242BU4.js.map} +0 -0
  417. /package/dist/chunks/{chunk-2P427DDU.js.map → chunk-5F4DSPZC.js.map} +0 -0
  418. /package/dist/chunks/{chunk-QI6XNUH6.js.map → chunk-5IGEQN7L.js.map} +0 -0
  419. /package/dist/chunks/{chunk-5Y455HIT.js.map → chunk-5ZLKTFU2.js.map} +0 -0
  420. /package/dist/chunks/{chunk-SNKDM7FT.js.map → chunk-66QIFMEO.js.map} +0 -0
  421. /package/dist/chunks/{chunk-ATL46ZCR.js.map → chunk-6HYK4DDB.js.map} +0 -0
  422. /package/dist/chunks/{chunk-FISBMAF4.js.map → chunk-6W3UGXGG.js.map} +0 -0
  423. /package/dist/chunks/{chunk-P2PWTXHD.js.map → chunk-75YLZNZW.js.map} +0 -0
  424. /package/dist/chunks/{chunk-37S6BVTN.js.map → chunk-AC5P6W3G.js.map} +0 -0
  425. /package/dist/chunks/{chunk-XNALFKQ2.js.map → chunk-AYMB4AOZ.js.map} +0 -0
  426. /package/dist/chunks/{chunk-ZFEDNTIB.js.map → chunk-B4AOCHH6.js.map} +0 -0
  427. /package/dist/chunks/{chunk-7PD3LHIR.js.map → chunk-BA7KUG6V.js.map} +0 -0
  428. /package/dist/chunks/{chunk-3JCHJOU3.js.map → chunk-BHQHTM3Z.js.map} +0 -0
  429. /package/dist/chunks/{chunk-52T26DYZ.js.map → chunk-BNLIRJ3M.js.map} +0 -0
  430. /package/dist/chunks/{chunk-ZHRBJT5B.js.map → chunk-BURGRQWO.js.map} +0 -0
  431. /package/dist/chunks/{chunk-3P5TQ3VZ.js.map → chunk-BWD2TUI4.js.map} +0 -0
  432. /package/dist/chunks/{chunk-OK3QKISP.js.map → chunk-C7E7YCRD.js.map} +0 -0
  433. /package/dist/chunks/{chunk-YMVJOKBZ.js.map → chunk-CXW7I2S3.js.map} +0 -0
  434. /package/dist/chunks/{chunk-BJWJPQ66.js.map → chunk-D6PB3Z7Q.js.map} +0 -0
  435. /package/dist/chunks/{chunk-FOS5YJED.js.map → chunk-DEAG4G5J.js.map} +0 -0
  436. /package/dist/chunks/{chunk-DHQJRU7E.js.map → chunk-DRSQTKDN.js.map} +0 -0
  437. /package/dist/chunks/{chunk-HNSJJXIO.js.map → chunk-EXJJLYZK.js.map} +0 -0
  438. /package/dist/chunks/{chunk-L7DZ2QPD.js.map → chunk-F5W4TNCR.js.map} +0 -0
  439. /package/dist/chunks/{chunk-XIBT7TAZ.js.map → chunk-F7KOBJVW.js.map} +0 -0
  440. /package/dist/chunks/{chunk-XLWFT4QC.js.map → chunk-FK4MAZV2.js.map} +0 -0
  441. /package/dist/chunks/{chunk-J2AH4QK4.js.map → chunk-FPC3K4TT.js.map} +0 -0
  442. /package/dist/chunks/{chunk-RE5EUO3F.js.map → chunk-FVIKYFYD.js.map} +0 -0
  443. /package/dist/chunks/{chunk-TN7MDKW2.js.map → chunk-GPTYDM26.js.map} +0 -0
  444. /package/dist/chunks/{chunk-3APHAS77.js.map → chunk-GT22EDUB.js.map} +0 -0
  445. /package/dist/chunks/{chunk-PGD2EYI7.js.map → chunk-GTUTBTOV.js.map} +0 -0
  446. /package/dist/chunks/{chunk-ZY7N242I.js.map → chunk-H6NTNPWD.js.map} +0 -0
  447. /package/dist/chunks/{chunk-2X53RSPY.js.map → chunk-HCQGZPVT.js.map} +0 -0
  448. /package/dist/chunks/{chunk-BBBVDHRH.js.map → chunk-HG2PPCAE.js.map} +0 -0
  449. /package/dist/chunks/{chunk-JR66BLKY.js.map → chunk-HKRUNZVI.js.map} +0 -0
  450. /package/dist/chunks/{chunk-BBBFPJV3.js.map → chunk-HM7L5PM2.js.map} +0 -0
  451. /package/dist/chunks/{chunk-2CP6CJXJ.js.map → chunk-I4RC6KQQ.js.map} +0 -0
  452. /package/dist/chunks/{chunk-GRCEOMSP.js.map → chunk-IL4Y3JGT.js.map} +0 -0
  453. /package/dist/chunks/{chunk-VUKFKBOO.js.map → chunk-J4PL65DJ.js.map} +0 -0
  454. /package/dist/chunks/{chunk-TYD5K7MT.js.map → chunk-JECLB23L.js.map} +0 -0
  455. /package/dist/chunks/{chunk-XVML5P53.js.map → chunk-JJ72TLOA.js.map} +0 -0
  456. /package/dist/chunks/{chunk-FQ3DUX7L.js.map → chunk-JRBFL6WT.js.map} +0 -0
  457. /package/dist/chunks/{chunk-UCDXXMAD.js.map → chunk-K2EKXCLZ.js.map} +0 -0
  458. /package/dist/chunks/{chunk-JCK6FM7F.js.map → chunk-ME4LETA3.js.map} +0 -0
  459. /package/dist/chunks/{chunk-2FP2UHZO.js.map → chunk-MF3SFDBW.js.map} +0 -0
  460. /package/dist/chunks/{chunk-HA46XY4I.js.map → chunk-MK42KB72.js.map} +0 -0
  461. /package/dist/chunks/{chunk-EYF7VILP.js.map → chunk-MUSGZEFY.js.map} +0 -0
  462. /package/dist/chunks/{chunk-XAMOWP2G.js.map → chunk-N5CCXOYK.js.map} +0 -0
  463. /package/dist/chunks/{chunk-DFOULHWV.js.map → chunk-NBJ5PRAY.js.map} +0 -0
  464. /package/dist/chunks/{chunk-ZPWWUTSR.js.map → chunk-NKHEBASJ.js.map} +0 -0
  465. /package/dist/chunks/{chunk-R6WB34IP.js.map → chunk-NVWD5XDT.js.map} +0 -0
  466. /package/dist/chunks/{chunk-CQNVNHRL.js.map → chunk-O45DCUNX.js.map} +0 -0
  467. /package/dist/chunks/{chunk-OVJOSPJ5.js.map → chunk-PAUMCJPX.js.map} +0 -0
  468. /package/dist/chunks/{chunk-E5GQTEDW.js.map → chunk-PE4MWWUW.js.map} +0 -0
  469. /package/dist/chunks/{chunk-3533PAJJ.js.map → chunk-PLCWCIL4.js.map} +0 -0
  470. /package/dist/chunks/{chunk-G4XSQIFF.js.map → chunk-PRJO4XM3.js.map} +0 -0
  471. /package/dist/chunks/{chunk-6V6MRHZZ.js.map → chunk-PRRX5LNR.js.map} +0 -0
  472. /package/dist/chunks/{chunk-LONNSCMP.js.map → chunk-PS5SVAUJ.js.map} +0 -0
  473. /package/dist/chunks/{chunk-EN2E63G6.js.map → chunk-PZWSRAE7.js.map} +0 -0
  474. /package/dist/chunks/{chunk-S6LFXBVK.js.map → chunk-QBLHOG2F.js.map} +0 -0
  475. /package/dist/chunks/{chunk-4FMBST2N.js.map → chunk-QCV3HH4P.js.map} +0 -0
  476. /package/dist/chunks/{chunk-R2TBZK62.js.map → chunk-QGBR42TV.js.map} +0 -0
  477. /package/dist/chunks/{chunk-TFOFFJNY.js.map → chunk-QNJXULU7.js.map} +0 -0
  478. /package/dist/chunks/{chunk-PIUHVCR3.js.map → chunk-R2KAESOM.js.map} +0 -0
  479. /package/dist/chunks/{chunk-G52WH6JI.js.map → chunk-R6M6EIAH.js.map} +0 -0
  480. /package/dist/chunks/{chunk-2PEIKBGP.js.map → chunk-RKKU2RE4.js.map} +0 -0
  481. /package/dist/chunks/{chunk-YHFKTEU6.js.map → chunk-RMOTHWPV.js.map} +0 -0
  482. /package/dist/chunks/{chunk-ZX5C2ELY.js.map → chunk-RQAY7REG.js.map} +0 -0
  483. /package/dist/chunks/{chunk-MXLAVYBS.js.map → chunk-SLTJNYOU.js.map} +0 -0
  484. /package/dist/chunks/{chunk-JARQ4I4Q.js.map → chunk-SXONHO4H.js.map} +0 -0
  485. /package/dist/chunks/{chunk-YWBOZNDX.js.map → chunk-T7ILM666.js.map} +0 -0
  486. /package/dist/chunks/{chunk-OOIVZ5PA.js.map → chunk-TBGKPWCL.js.map} +0 -0
  487. /package/dist/chunks/{chunk-M4LHZRTX.js.map → chunk-TBJ6XU3T.js.map} +0 -0
  488. /package/dist/chunks/{chunk-UI3ELYQU.js.map → chunk-TMPP2DEY.js.map} +0 -0
  489. /package/dist/chunks/{chunk-DLMDCCO7.js.map → chunk-TSOZBRM6.js.map} +0 -0
  490. /package/dist/chunks/{chunk-7XLZPKOT.js.map → chunk-TTFPWGIU.js.map} +0 -0
  491. /package/dist/chunks/{chunk-NCPOOJD4.js.map → chunk-TTKMQW6B.js.map} +0 -0
  492. /package/dist/chunks/{chunk-S5GKG5GV.js.map → chunk-UCML5ZXB.js.map} +0 -0
  493. /package/dist/chunks/{chunk-HAIG4TLP.js.map → chunk-VG7245VJ.js.map} +0 -0
  494. /package/dist/chunks/{chunk-IXJ6A2XE.js.map → chunk-VQZPXK4X.js.map} +0 -0
  495. /package/dist/chunks/{chunk-2MEBOBOM.js.map → chunk-VWUTJ4EU.js.map} +0 -0
  496. /package/dist/chunks/{chunk-VJFBRQZ4.js.map → chunk-WDKAL7EW.js.map} +0 -0
  497. /package/dist/chunks/{chunk-2ED34AXP.js.map → chunk-WJ6QRVL6.js.map} +0 -0
  498. /package/dist/chunks/{chunk-CKMF72VE.js.map → chunk-WOTA5FO5.js.map} +0 -0
  499. /package/dist/chunks/{chunk-QUUDXDDL.js.map → chunk-WPGVZMSU.js.map} +0 -0
  500. /package/dist/chunks/{chunk-EVJKQAZM.js.map → chunk-XDUA6PBP.js.map} +0 -0
  501. /package/dist/chunks/{chunk-GVHUHRGI.js.map → chunk-XE6XT6R6.js.map} +0 -0
  502. /package/dist/chunks/{chunk-LGUIDOA7.js.map → chunk-YR3TWNIV.js.map} +0 -0
  503. /package/dist/chunks/{chunk-K4APHATW.js.map → chunk-YWRRS7SO.js.map} +0 -0
  504. /package/dist/chunks/{chunk-ESLOAQRL.js.map → chunk-ZHEEG3NS.js.map} +0 -0
  505. /package/dist/chunks/{cli-runtime-SL6YG4EX.js.map → cli-runtime-ZJKKIW4H.js.map} +0 -0
  506. /package/dist/chunks/{commands-XRQOUFRE.js.map → commands-TQH5DD22.js.map} +0 -0
  507. /package/dist/chunks/{computer-6P3GAOV2.js.map → computer-WOU5WIIR.js.map} +0 -0
  508. /package/dist/chunks/{config-W3ABQG5K.js.map → config-APYUJ5UW.js.map} +0 -0
  509. /package/dist/chunks/{cost-ZKKW4JSZ.js.map → cost-5YV27U7F.js.map} +0 -0
  510. /package/dist/chunks/{crash-report-Q2WAKIU5.js.map → crash-report-QVXU2YVL.js.map} +0 -0
  511. /package/dist/chunks/{dist-JY4FIVBZ.js.map → dist-2FSOLP72.js.map} +0 -0
  512. /package/dist/chunks/{dist-O2QP5QCU.js.map → dist-AOT4CEP5.js.map} +0 -0
  513. /package/dist/chunks/{dist-OXSKWJNB.js.map → dist-H7CAJ3ZW.js.map} +0 -0
  514. /package/dist/chunks/{dist-IPR6EVQM.js.map → dist-IZGKRIWL.js.map} +0 -0
  515. /package/dist/chunks/{dist-WI7EX7ZF.js.map → dist-J4UXFVYR.js.map} +0 -0
  516. /package/dist/chunks/{dist-YE6ADUZP.js.map → dist-JHKRSGW6.js.map} +0 -0
  517. /package/dist/chunks/{dist-R4PUUPXV.js.map → dist-PZYMYR7N.js.map} +0 -0
  518. /package/dist/chunks/{dist-VT4VSQTO.js.map → dist-Z2HW2SJR.js.map} +0 -0
  519. /package/dist/chunks/{doctor-EUH7WGN6.js.map → doctor-CM6UPXG5.js.map} +0 -0
  520. /package/dist/chunks/{drain-3DDY42KQ.js.map → drain-X6RURKKC.js.map} +0 -0
  521. /package/dist/chunks/{entry-FNHGVOQM.js.map → entry-QQDPY6ZL.js.map} +0 -0
  522. /package/dist/chunks/{eval-CFKAWR3B.js.map → eval-GZA22B4I.js.map} +0 -0
  523. /package/dist/chunks/{extension-4VR722KH.js.map → extension-N5IQNKVZ.js.map} +0 -0
  524. /package/dist/chunks/{github-IF3JVVJF.js.map → github-AUOENJUY.js.map} +0 -0
  525. /package/dist/chunks/{home-JCDINY64.js.map → home-I4FIB6FV.js.map} +0 -0
  526. /package/dist/chunks/{homes-53P37RPB.js.map → homes-WTMMXQ6G.js.map} +0 -0
  527. /package/dist/chunks/{hooks-report-OK5PIOSF.js.map → hooks-report-K6VOPVBR.js.map} +0 -0
  528. /package/dist/chunks/{host-KF63UW3T.js.map → host-65UFBZJV.js.map} +0 -0
  529. /package/dist/chunks/{host-queries-5ZWYD4VD.js.map → host-queries-L4PYE2BW.js.map} +0 -0
  530. /package/dist/chunks/{installed-list-QLVA6XBV.js.map → installed-list-7QIWVKLQ.js.map} +0 -0
  531. /package/dist/chunks/{learn-XNVRCNGV.js.map → learn-NZXLKYV4.js.map} +0 -0
  532. /package/dist/chunks/{learn-builtin-XABWBGRU.js.map → learn-builtin-RC4XXVBS.js.map} +0 -0
  533. /package/dist/chunks/{lifecycle-K7REDQBN.js.map → lifecycle-NLCZ6OPA.js.map} +0 -0
  534. /package/dist/chunks/{list-US5UDLON.js.map → list-2U67CAWS.js.map} +0 -0
  535. /package/dist/chunks/{live-DNA4UB2B.js.map → live-CWJ2NWUQ.js.map} +0 -0
  536. /package/dist/chunks/{load-2WCYASMC.js.map → load-H52QQBVE.js.map} +0 -0
  537. /package/dist/chunks/{logs-ZF7YJNOC.js.map → logs-ZIW3QFU4.js.map} +0 -0
  538. /package/dist/chunks/{mcp-serve-TTZ33VMY.js.map → mcp-serve-ZC2OKIPP.js.map} +0 -0
  539. /package/dist/chunks/{open-I4YKGQSW.js.map → open-AHDQMVXI.js.map} +0 -0
  540. /package/dist/chunks/{operator-tools-FC5JFH42.js.map → operator-tools-P5R4TF6N.js.map} +0 -0
  541. /package/dist/chunks/{output-schema-KMYL2UB6.js.map → output-schema-Q5RWHNKE.js.map} +0 -0
  542. /package/dist/chunks/{pal-UZFR42OY.js.map → pal-T42HU4AK.js.map} +0 -0
  543. /package/dist/chunks/{peers-NM5HJGSR.js.map → peers-5RYEA7IA.js.map} +0 -0
  544. /package/dist/chunks/{peers-V7XCJUFZ.js.map → peers-7ZG3DEBO.js.map} +0 -0
  545. /package/dist/chunks/{providers-BQ25F6LA.js.map → providers-BXXIM7EW.js.map} +0 -0
  546. /package/dist/chunks/{providers-VS37WA3E.js.map → providers-I24HYZXG.js.map} +0 -0
  547. /package/dist/chunks/{pty-NWEV3DSP.js.map → pty-WVKM6ATI.js.map} +0 -0
  548. /package/dist/chunks/{resume-Y7P3TAVG.js.map → resume-F7JEDBHI.js.map} +0 -0
  549. /package/dist/chunks/{resume-command-KEXAVL6P.js.map → resume-command-4I47WN7T.js.map} +0 -0
  550. /package/dist/chunks/{running-JLMG6IL4.js.map → running-VID6BVT2.js.map} +0 -0
  551. /package/dist/chunks/{schedule-6ERJJOA3.js.map → schedule-75IZH76Z.js.map} +0 -0
  552. /package/dist/chunks/{send-UXJ7GXKN.js.map → send-QRYY2NCG.js.map} +0 -0
  553. /package/dist/chunks/{send-person-DLJU45IU.js.map → send-person-VADQNJBN.js.map} +0 -0
  554. /package/dist/chunks/{service-NYJZCLH2.js.map → service-B6BNESZB.js.map} +0 -0
  555. /package/dist/chunks/{setting-cli-ILFKSR4D.js.map → setting-cli-O4YWOIU5.js.map} +0 -0
  556. /package/dist/chunks/{start-check-7GBRCGVJ.js.map → start-check-EKRXJ5VE.js.map} +0 -0
  557. /package/dist/chunks/{startup-failure-UA32GGJB.js.map → startup-failure-2UJKPNMR.js.map} +0 -0
  558. /package/dist/chunks/{state-SSRHEX5K.js.map → state-X3MKUFYM.js.map} +0 -0
  559. /package/dist/chunks/{store-2GFZ5XXW.js.map → store-4OXWHFS5.js.map} +0 -0
  560. /package/dist/chunks/{store-MP5EB266.js.map → store-MK5IYBE5.js.map} +0 -0
  561. /package/dist/chunks/{store-ROR7VTZ2.js.map → store-QFNY4BV4.js.map} +0 -0
  562. /package/dist/chunks/{store-WRRTTRBT.js.map → store-VRKKFOYW.js.map} +0 -0
  563. /package/dist/chunks/{update-32IRH5TG.js.map → update-ELZEXYIX.js.map} +0 -0
  564. /package/dist/chunks/{workspaces-4YXZSENL.js.map → workspaces-3LB4SPPS.js.map} +0 -0
@@ -0,0 +1,127 @@
1
+ /**
2
+ * The two install records under `<home>/plugins/`:
3
+ *
4
+ * - `known_marketplaces.json`: the marketplaces this computer has added.
5
+ * - `installed_plugins.json` (version 2): one list of records per plugin id,
6
+ * one record per (scope, folder).
7
+ *
8
+ * Both are read and written through `json-state.ts`, so a damaged file holds
9
+ * (it is kept, a recovery copy is named, nothing is replaced) and a key this
10
+ * Namzu does not know stays as it was written. An entry that does not read as
11
+ * a record is reported and left in the file; it never stops the others.
12
+ *
13
+ * Records are written by the install commands; nothing in this file fetches or
14
+ * runs anything.
15
+ */
16
+ export declare const INSTALLED_PLUGINS_VERSION = 2;
17
+ export type RecordScope = 'user' | 'project' | 'local';
18
+ export declare const RECORD_SCOPES: readonly RecordScope[];
19
+ /** `<plugin>@<marketplace>`: each half starts with a letter or digit. */
20
+ export declare const PLUGIN_ID_PATTERN: RegExp;
21
+ export declare const MARKETPLACE_NAME_PATTERN: RegExp;
22
+ export declare const MARKETPLACE_SOURCE_KINDS: readonly ["github", "git", "url", "directory", "file"];
23
+ export declare function isPluginId(value: unknown): boolean;
24
+ /** The plugin's name and the marketplace it came from. */
25
+ export declare function splitPluginId(id: string): {
26
+ readonly name: string;
27
+ readonly marketplace: string;
28
+ };
29
+ export declare function pluginsFolder(home: string): string;
30
+ export declare function knownMarketplacesPath(home: string): string;
31
+ /** Where marketplaces Namzu downloaded are kept, one folder per name. */
32
+ export declare function marketplacesFolder(home: string): string;
33
+ export declare function installedPluginsPath(home: string): string;
34
+ export declare function installManifestsFolder(home: string): string;
35
+ export declare function pluginCacheFolder(home: string): string;
36
+ /** `NAMZU_PLUGIN_DATA` of an installed plugin. */
37
+ export declare function installedPluginDataFolder(home: string, id: string): string;
38
+ /** The folders under `plugins/` that hold Namzu's own state, never a hand-placed plugin. */
39
+ export declare const RESERVED_PLUGIN_FOLDERS: readonly string[];
40
+ /** Whether `dir` is one of Namzu's own state folders directly under the user's `plugins/`. */
41
+ export declare function isReservedPluginDir(home: string, dir: string): boolean;
42
+ /** A path as the file system names it, so two spellings of one folder compare equal. */
43
+ export declare function realPathOrResolved(path: string): string;
44
+ export declare function samePath(a: string, b: string): boolean;
45
+ export interface RecordFinding {
46
+ readonly level: string;
47
+ readonly code: string;
48
+ readonly field?: string;
49
+ readonly message: string;
50
+ }
51
+ export interface InstallRecord {
52
+ readonly scope: RecordScope;
53
+ /** The folder the plugin runs from, under `plugins/cache/`. */
54
+ readonly installPath: string;
55
+ /** The folder a `project` or `local` record is for. */
56
+ readonly projectPath?: string;
57
+ readonly version?: string;
58
+ readonly installedAt?: string;
59
+ readonly lastUpdated?: string;
60
+ readonly gitCommitSha?: string;
61
+ readonly layout?: 'common' | 'namzu';
62
+ readonly surfaceSha256?: string;
63
+ readonly findings: readonly RecordFinding[];
64
+ }
65
+ export interface InstalledProblem {
66
+ readonly id: string;
67
+ readonly reason: string;
68
+ }
69
+ export type InstalledRead = {
70
+ readonly state: 'missing';
71
+ readonly plugins: ReadonlyMap<string, readonly InstallRecord[]>;
72
+ readonly invalid: readonly InstalledProblem[];
73
+ } | {
74
+ readonly state: 'ok';
75
+ readonly plugins: ReadonlyMap<string, readonly InstallRecord[]>;
76
+ readonly invalid: readonly InstalledProblem[];
77
+ } | {
78
+ readonly state: 'unreadable';
79
+ readonly reason: string;
80
+ };
81
+ /** One entry as a record, or why it is not one. */
82
+ export declare function parseInstallRecord(entry: unknown): InstallRecord | string;
83
+ export declare function readInstalledPlugins(home: string): InstalledRead;
84
+ /** The mapping of one record as written; fields the caller does not name are kept when it replaces one. */
85
+ export type RecordFields = Record<string, unknown> & {
86
+ scope: RecordScope;
87
+ installPath: string;
88
+ };
89
+ /**
90
+ * Add or replace the record for (scope, projectPath) under `id`. A replaced
91
+ * record keeps any key this Namzu does not know. One id may hold at most one
92
+ * record per scope and folder.
93
+ */
94
+ export declare function putInstallRecord(home: string, id: string, fields: RecordFields): void;
95
+ /** Remove the record for (scope, projectPath) under `id`; false when there was none. */
96
+ export declare function removeInstallRecord(home: string, id: string, which: {
97
+ scope: RecordScope;
98
+ projectPath?: string;
99
+ }): boolean;
100
+ export interface KnownMarketplace {
101
+ readonly name: string;
102
+ readonly source: Readonly<Record<string, unknown>> & {
103
+ readonly source: string;
104
+ };
105
+ readonly installLocation: string;
106
+ readonly lastUpdated?: string;
107
+ readonly autoUpdate?: boolean;
108
+ readonly commit?: string;
109
+ }
110
+ export type KnownMarketplacesRead = {
111
+ readonly state: 'missing' | 'ok';
112
+ readonly marketplaces: ReadonlyMap<string, KnownMarketplace>;
113
+ readonly invalid: readonly InstalledProblem[];
114
+ } | {
115
+ readonly state: 'unreadable';
116
+ readonly reason: string;
117
+ };
118
+ /** A marketplace `source` mapping, or why it is not one. */
119
+ export declare function parseMarketplaceSource(value: unknown): KnownMarketplace['source'] | string;
120
+ export declare function readKnownMarketplaces(home: string): KnownMarketplacesRead;
121
+ /** Add or replace one marketplace's entry; keys of an existing entry this Namzu does not know are kept. */
122
+ export declare function putKnownMarketplace(home: string, name: string, fields: Record<string, unknown> & {
123
+ source: unknown;
124
+ installLocation: string;
125
+ }): void;
126
+ export declare function removeKnownMarketplace(home: string, name: string): boolean;
127
+ //# sourceMappingURL=records.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"records.d.ts","sourceRoot":"","sources":["../../../src/integrations/plugins/records.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAOH,eAAO,MAAM,yBAAyB,IAAI,CAAA;AAC1C,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAA;AACtD,eAAO,MAAM,aAAa,EAAE,SAAS,WAAW,EAAiC,CAAA;AAEjF,yEAAyE;AACzE,eAAO,MAAM,iBAAiB,QAAsE,CAAA;AACpG,eAAO,MAAM,wBAAwB,QAAsC,CAAA;AAE3E,eAAO,MAAM,wBAAwB,wDAAyD,CAAA;AAE9F,w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,gBAAgB,CAAC,CAAA;IAC5D,QAAQ,CAAC,OAAO,EAAE,SAAS,gBAAgB,EAAE,CAAA;CAC5C,GACD;IAAE,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AAE5D,4DAA4D;AAC5D,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,gBAAgB,CAAC,QAAQ,CAAC,GAAG,MAAM,CAM1F;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,qBAAqB,CAiCzE;AAOD,2GAA2G;AAC3G,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAAE,MAAM,EAAE,OAAO,CAAC;IAAC,eAAe,EAAE,MAAM,CAAA;CAAE,GAC5E,IAAI,CAQN;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAM1E"}
@@ -0,0 +1,100 @@
1
+ /**
2
+ * What `namzu plugin marketplace add | update` and the Desktop's Customize page do with a marketplace
3
+ * that lives in a repository or at an https address, written once. The command line
4
+ * (`commands/plugin-install.ts`) and the desktop host (`commands/desktop-host-plugins.ts`) call
5
+ * these functions, so the consent text, the refusals, the pin rule and the way a fetched folder is
6
+ * moved into place cannot drift apart. Nothing here asks a question or prints: a caller does that.
7
+ */
8
+ import type { FetchOptions } from './fetch/git.js';
9
+ import { type FetchedMarketplace } from './fetch/index.js';
10
+ import { type MarketplaceSource, type RemoteEntrySource } from './fetch/source.js';
11
+ import { type Catalog, readCatalog } from './marketplace.js';
12
+ import { type KnownMarketplace, type RecordScope } from './records.js';
13
+ export declare const oneLine: (value: string) => string;
14
+ export declare const MARKETPLACE_NOTICE: string;
15
+ export declare const MARKETPLACE_BLOCKED = "Adding this marketplace is turned off in your settings.";
16
+ export declare const DOWNLOAD_BLOCKED = "Downloading from this marketplace is turned off in your settings.";
17
+ /** The sentence for a plugin that kept its version while its files changed: an update cannot apply it. */
18
+ export declare function sameVersionChanged(id: string, version: string): string;
19
+ /** A plain sentence for what adding a source will do, from the typed address alone. */
20
+ export declare function describeAddition(source: MarketplaceSource): string;
21
+ /** Whether two marketplace sources name the same thing. */
22
+ export declare function sameSource(a: Readonly<Record<string, unknown>>, b: Readonly<Record<string, unknown>>): boolean;
23
+ /** The refusal for a marketplace name that is already added from a different source; says so when only the ref or the sparse folders differ. */
24
+ export declare function anotherPlace(name: string, existing: Readonly<Record<string, unknown>>, wanted: Readonly<Record<string, unknown>>, remove?: string): string;
25
+ /** The text a person agrees to before a fetched marketplace is kept. */
26
+ export declare function marketplaceConsentText(name: string, display: string, catalog: Catalog, notInstallable: number, commit: string | undefined, ref: string | undefined): string;
27
+ /** How many of a catalog's plugins cannot be installed here (a source that is not a folder or a fetchable repository or archive). */
28
+ export declare function countNotInstallable(catalog: Catalog, hosted: boolean, allowFileProtocol: boolean): Promise<number>;
29
+ /** The marketplace source an entry's download comes from, as a block-list entry is compared with it. */
30
+ export declare function entryAddress(remote: RemoteEntrySource): {
31
+ source: string;
32
+ [key: string]: unknown;
33
+ };
34
+ /** Whether the settings forbid downloading a catalog entry: its marketplace or its own address is blocked. */
35
+ export declare function downloadBlocked(market: KnownMarketplace | undefined, remote: RemoteEntrySource, blocked: readonly string[] | undefined): boolean;
36
+ export type FetchedCatalog = {
37
+ readonly ok: true;
38
+ readonly catalog: Catalog;
39
+ } | {
40
+ readonly ok: false;
41
+ readonly message: string;
42
+ };
43
+ /** The catalog of a freshly fetched marketplace folder, or the sentence saying why it is not one. */
44
+ export declare function readFetchedCatalog(dir: string, display: string): FetchedCatalog;
45
+ /** Sentences a person should read about a fetched marketplace besides its own warnings. */
46
+ export declare function fetchNotes(fetched: FetchedMarketplace): string[];
47
+ export interface PlaceOptions {
48
+ readonly home: string;
49
+ /** The folder whose settings file the `project` and `local` scopes name. */
50
+ readonly cwd: string;
51
+ readonly scope: RecordScope;
52
+ readonly now: Date;
53
+ readonly by: 'cli' | 'desktop';
54
+ /** Writes the declaration in the scope's settings file. */
55
+ readonly layerPath: string;
56
+ }
57
+ /** Moves a fetched marketplace folder into Namzu's marketplaces folder and records the yes. */
58
+ export declare function placeMarketplace(catalog: Catalog, source: MarketplaceSource, fetched: FetchedMarketplace, options: PlaceOptions): void;
59
+ /** A staging folder for one fetch; the caller removes it with `discardStaging`. */
60
+ export declare function newStaging(home: string): string;
61
+ export declare function lstatExists(path: string): boolean;
62
+ export interface UpdateRow {
63
+ readonly name: string;
64
+ readonly outcome: 'updated' | 'up-to-date' | 'pinned' | 're-read' | 'failed';
65
+ readonly message: string;
66
+ readonly from?: string | null;
67
+ readonly to?: string | null;
68
+ readonly newPlugins: readonly string[];
69
+ readonly changedPlugins: readonly string[];
70
+ readonly newer: readonly {
71
+ id: string;
72
+ installed: string;
73
+ available: string;
74
+ }[];
75
+ }
76
+ export declare function diffCatalogs(before: ReturnType<typeof readCatalog>, after: Catalog): {
77
+ added: string[];
78
+ changed: string[];
79
+ };
80
+ /** Installed plugins of a marketplace whose catalog entry now names another version. */
81
+ export declare function newerVersions(home: string, name: string, catalog: Catalog): UpdateRow['newer'];
82
+ export declare function isInside(outer: string, inner: string): boolean;
83
+ export interface RefreshOptions {
84
+ readonly home: string;
85
+ readonly now: Date;
86
+ readonly blockedMarketplaces?: readonly string[];
87
+ readonly fetch?: FetchOptions;
88
+ /** The sentence for an error; the command line's own wording by default. */
89
+ readonly describe?: (error: unknown) => string;
90
+ }
91
+ /**
92
+ * Reads a remote marketplace again from where it came from: fetched aside, compared, then put in
93
+ * place of the old copy. A source pinned to one commit is not fetched, a blocked one is not
94
+ * touched, and a copy outside Namzu's marketplaces folder is not replaced. A fetch the person
95
+ * cancelled throws; every other failure is a `failed` row.
96
+ */
97
+ export declare function refreshRemoteMarketplace(market: KnownMarketplace, options: RefreshOptions): Promise<UpdateRow>;
98
+ /** The sentence for an error thrown while fetching or placing a marketplace. */
99
+ export declare function failureText(error: unknown): string;
100
+ //# sourceMappingURL=remote-marketplace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remote-marketplace.d.ts","sourceRoot":"","sources":["../../../src/integrations/plugins/remote-marketplace.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAUH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAClD,OAAO,EAAE,KAAK,kBAAkB,EAAoB,MAAM,kBAAkB,CAAA;AAC5E,OAAO,EACN,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EAItB,MAAM,mBAAmB,CAAA;AAG1B,OAAO,EAAE,KAAK,OAAO,EAAE,WAAW,EAAsB,MAAM,kBAAkB,CAAA;AAChF,OAAO,EACN,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAKhB,MAAM,cAAc,CAAA;AAErB,eAAO,MAAM,OAAO,GAAI,OAAO,MAAM,KAAG,MACc,CAAA;AAEtD,eAAO,MAAM,kBAAkB,QAInB,CAAA;AAEZ,eAAO,MAAM,mBAAmB,4DAA4D,CAAA;AAC5F,eAAO,MAAM,gBAAgB,sEAAsE,CAAA;AAEnG,0GAA0G;AAC1G,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAEtE;AAED,uFAAuF;AACvF,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAIlE;AAED,2DAA2D;AAC3D,wBAAgB,UAAU,CACzB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACpC,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAClC,OAAO,CAST;AAED,gJAAgJ;AAChJ,wBAAgB,YAAY,CAC3B,IAAI,EAAE,MAAM,EACZ,Q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AAC,SAAS,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAC/E;AAED,wBAAgB,YAAY,CAC3B,MAAM,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,EACtC,KAAK,EAAE,OAAO,GACZ;IAAE,KAAK,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAUxC;AAED,wFAAwF;AACxF,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC,CAa9F;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAG9D;AAED,MAAM,WAAW,cAAc;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAA;IAClB,QAAQ,CAAC,mBAAmB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAChD,QAAQ,CAAC,KAAK,CAAC,EAAE,YAAY,CAAA;IAC7B,4EAA4E;IAC5E,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,MAAM,CAAA;CAC9C;AAED;;;;;GAKG;AACH,wBAAsB,wBAAwB,CAC7C,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,cAAc,GACrB,OAAO,CAAC,SAAS,CAAC,CAoFpB;AAED,gFAAgF;AAChF,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAElD"}
@@ -1,6 +1,7 @@
1
1
  import { PluginLifecycleManager, type ShellHookOptions, SkillRegistry } from '@namzu/sdk';
2
2
  import type { HooksSwitch } from '../../config/hook-layers.js';
3
3
  import type { HookEntry, HooksConfig, PluginConfig, PluginScope } from '../../config/schema.js';
4
+ import { type PluginRemoteServer } from '../mcp/plugin-remote.js';
4
5
  import { type SessionHookActivity } from './hook-activity.js';
5
6
  import { type PluginHookProblem } from './hook-entries.js';
6
7
  /**
@@ -47,6 +48,14 @@ export interface CliPluginRuntime {
47
48
  */
48
49
  readonly hookActivity: SessionHookActivity;
49
50
  list(): readonly CliPluginInfo[];
51
+ /**
52
+ * Installed plugins that were not loaded, with the reason, so a listing can
53
+ * say so. A plugin that fails never stops the others.
54
+ */
55
+ installedProblems(): readonly {
56
+ readonly id: string | undefined;
57
+ readonly message: string;
58
+ }[];
50
59
  /** The JavaScript hooks plugins registered right now: the plugin's name and the event. */
51
60
  pluginHooks(): readonly {
52
61
  readonly plugin: string;
@@ -60,6 +69,16 @@ export interface CliPluginRuntime {
60
69
  })[];
61
70
  /** The lines the launch says once about those problems; each call returns what is new. */
62
71
  takePluginHookWarnings(): string[];
72
+ /**
73
+ * The remote tool servers of the installed plugins loaded here, on or off, with
74
+ * the ones that need setup. Nothing in the runtime connects to them: the
75
+ * session's remote host does, after the person's approval and while the plugin is on.
76
+ */
77
+ remoteServers(): readonly PluginRemoteServer[];
78
+ /** Whether the installed plugin with this id (`<plugin>@<marketplace>`) is on right now. */
79
+ isInstalledOn(installId: string): boolean;
80
+ /** Called after a plugin was turned on or off in this session. Returns the unsubscribe. */
81
+ onEnabledChange(listener: () => void): () => void;
63
82
  setEnabled(name: string, enabled: boolean): Promise<void>;
64
83
  rememberState(name: string): Promise<void>;
65
84
  close(): Promise<void>;
@@ -84,6 +103,10 @@ export interface CliPluginInfo {
84
103
  readonly commands: readonly string[];
85
104
  /** Agent files from the plugin's agent folders, as named to the model. */
86
105
  readonly agents: readonly string[];
106
+ /** `<plugin>@<marketplace>` of a plugin that was installed from a marketplace record. */
107
+ readonly installId?: string;
108
+ /** The scope of the install record the plugin was loaded from. */
109
+ readonly installScope?: 'user' | 'project' | 'local';
87
110
  }
88
111
  /**
89
112
  * Build the executable extension runtime owned by one agent session.
@@ -129,5 +152,10 @@ hookHost?: Pick<ShellHookOptions, 'transcriptPath' | 'permissionMode' | 'judge'>
129
152
  host?: {
130
153
  readonly keepForSkills?: boolean;
131
154
  readonly hooksSwitch?: HooksSwitch;
155
+ /**
156
+ * Whether `cwd` is a trusted folder. Only then are the folder's install
157
+ * records and its two settings files read. Absent: the trust list says.
158
+ */
159
+ readonly projectTrusted?: boolean;
132
160
  }): Promise<CliPluginRuntime | undefined>;
133
161
  //# sourceMappingURL=runtime.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../src/integrations/plugins/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,sBAAsB,EAItB,KAAK,gBAAgB,EACrB,aAAa,EAIb,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAI/F,OAAO,EAAE,KAAK,mBAAmB,EAA6B,MAAM,oBAAoB,CAAA;AACxF,OAAO,EACN,KAAK,iBAAiB,EAItB,MAAM,mBAAmB,CAAA;AAI1B;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,OAAQ,CAAA;AAKhD;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,GAAG,MAAM,CAQ7E;AAED,qEAAqE;AACrE,wBAAgB,eAAe,CAAC,IAAI,EAAE;IACrC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC1B,GAAG,MAAM,CAGT;AAED,2DAA2D;AAC3D,MAAM,WAAW,mBAAmB;IACnC,yBAAyB;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,SAAS,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gB,GAAG,gBAAgB,GAAG,OAAO,CAAC,GAAG;IAClF,4FAA4F;IAC5F,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,MAAM,CAAA;CACjC;AACD;;;;;;;;;;;;;GAaG;AACH,IAAI,CAAC,EAAE;IACN,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAA;IAChC,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,CAAA;IAClC;;;OAGG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAA;CACjC,GACC,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAiiBvC"}
@@ -0,0 +1,126 @@
1
+ /**
2
+ * The consent surface of a plugin: everything in it that can run, configure
3
+ * running or pre-approve a tool, listed so a person reads it before saying yes.
4
+ *
5
+ * Completeness is the point. A kind of runnable thing that is missing here is
6
+ * a thing a person never saw: hooks (with their event and what they run),
7
+ * hooks that skills, commands and agent files carry in their front matter,
8
+ * local servers (command, arguments, environment), remote servers (the origin
9
+ * they reach and the environment variables they would send), JavaScript
10
+ * modules, tools a skill or command pre-approves, and every script (a file with
11
+ * an execute bit, a program-like extension, or anything under `bin/`).
12
+ *
13
+ * Reading is static: no hook, server, module or script is started or imported.
14
+ */
15
+ import { type LayoutSetupServer, type PluginManifest, type PluginRemoteMCPServerConfig } from '@namzu/sdk';
16
+ import { isExecutablePath } from './install-manifest.js';
17
+ export { isExecutablePath };
18
+ export interface SurfaceHook {
19
+ readonly event: string;
20
+ readonly matcher?: string;
21
+ readonly type: 'command' | 'http' | 'prompt';
22
+ /** The command line, the address a request goes to, or the start of the prompt. */
23
+ readonly run: string;
24
+ /** The file inside the plugin the entry came from. */
25
+ readonly from?: string;
26
+ }
27
+ export interface SurfaceFileHook {
28
+ readonly kind: 'skill' | 'command' | 'agent';
29
+ readonly name: string;
30
+ readonly event: string;
31
+ readonly type: 'command' | 'http' | 'prompt';
32
+ readonly run: string;
33
+ }
34
+ export interface SurfaceLocalServer {
35
+ readonly name: string;
36
+ readonly command: string;
37
+ readonly args: readonly string[];
38
+ readonly env: Readonly<Record<string, string>>;
39
+ /** Set when a variable in it is not set here, so it is listed and not started. */
40
+ readonly needsSetup?: true;
41
+ }
42
+ export interface SurfaceRemoteServer {
43
+ readonly name: string;
44
+ readonly origin: string;
45
+ readonly url: string;
46
+ readonly transport: 'http' | 'sse';
47
+ /** Environment variables a `${NAME}` in the address or a header value would send, sorted. */
48
+ readonly sendsEnv: readonly string[];
49
+ /** Header names it would send. */
50
+ readonly headers: readonly string[];
51
+ /** Set when a variable in it is not set here, so it is listed and not connected. */
52
+ readonly needsSetup?: true;
53
+ }
54
+ export interface SurfaceAllowedTools {
55
+ readonly kind: 'skill' | 'command';
56
+ readonly name: string;
57
+ readonly tools: readonly string[];
58
+ }
59
+ export interface SurfaceScript {
60
+ readonly path: string;
61
+ readonly bytes: number;
62
+ readonly exec: boolean;
63
+ }
64
+ export interface SurfaceModule {
65
+ readonly path: string;
66
+ readonly declares?: readonly string[];
67
+ readonly isolated?: boolean;
68
+ readonly refused?: string;
69
+ }
70
+ export interface PluginSurface {
71
+ readonly hooks: readonly SurfaceHook[];
72
+ readonly fileHooks: readonly SurfaceFileHook[];
73
+ readonly mcpLocal: readonly SurfaceLocalServer[];
74
+ readonly mcpRemote: readonly SurfaceRemoteServer[];
75
+ /**
76
+ * Hook modules. A module the manifest lists as hooks runs inside the session
77
+ * and is not read before it runs. The hooks module a common-layout plugin
78
+ * names in its hooks file runs in an isolated worker (`isolated`); its source
79
+ * is scanned, and `declares` says what it hooks and reaches, or `refused` why
80
+ * it will not run.
81
+ */
82
+ readonly modules: readonly SurfaceModule[];
83
+ readonly allowedTools: readonly SurfaceAllowedTools[];
84
+ readonly scripts: readonly SurfaceScript[];
85
+ readonly unpinnedDownload: boolean;
86
+ }
87
+ export interface PluginFiles {
88
+ /** Paths with `/`, sorted. */
89
+ readonly executable: readonly string[];
90
+ /** sha256 (hex) of each executable file. */
91
+ readonly files: Readonly<Record<string, string>>;
92
+ readonly scripts: readonly SurfaceScript[];
93
+ }
94
+ /** Every regular file under `root` with its hash (the list keeps its old name). A link or a device is not followed and not listed. */
95
+ export declare function hashExecutableFiles(root: string): PluginFiles;
96
+ /** The path names a reader expands; a server read in the common layout carries the folders, so the surface turns them back. */
97
+ export interface Unexpander {
98
+ readonly root: string;
99
+ readonly dataSentinel: string;
100
+ readonly projectSentinel: string;
101
+ }
102
+ /** `allowed-tools` as written, split into one entry per tool: on commas and spaces outside parentheses. */
103
+ export declare function splitAllowedTools(written: string): string[];
104
+ export interface SurfaceInput {
105
+ readonly root: string;
106
+ readonly manifest: PluginManifest;
107
+ readonly remoteServers: readonly PluginRemoteMCPServerConfig[];
108
+ /** Servers read but not admitted because they need setup, as written. */
109
+ readonly setupServers?: readonly LayoutSetupServer[];
110
+ readonly scripts: readonly SurfaceScript[];
111
+ readonly unexpander?: Unexpander;
112
+ }
113
+ export interface SurfaceRead {
114
+ readonly surface: PluginSurface;
115
+ /** Things in the files that were refused or not read, in words, for the report. */
116
+ readonly problems: readonly {
117
+ readonly code: string;
118
+ readonly file: string;
119
+ readonly message: string;
120
+ }[];
121
+ }
122
+ /** The surface of the plugin folder at `input.root`, read without running anything. */
123
+ export declare function readSurface(input: SurfaceInput): SurfaceRead;
124
+ /** What changed between two surfaces, in words, for an update's preview. */
125
+ export declare function surfaceChanges(before: PluginSurface, after: PluginSurface): string[];
126
+ //# sourceMappingURL=surface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surface.d.ts","sourceRoot":"","sources":["../../../src/integrations/plugins/surface.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAKH,OAAO,EACN,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,2BAA2B,EAKhC,MAAM,YAAY,CAAA;AAMnB,OAAO,EAAgB,gBAAgB,EAAa,MAAM,uBAAuB,CAAA;AAEjF,OAAO,EAAE,gBAAgB,EAAE,CAAA;AAE3B,MAAM,WAAW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vF,wBAAgB,WAAW,CAAC,KAAK,EAAE,YAAY,GAAG,WAAW,CA6H5D;AAkBD,4EAA4E;AAC5E,wBAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,GAAG,MAAM,EAAE,CAqCpF"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * What an update changes in what a plugin runs, compared with what the person agreed to when it was
3
+ * installed. One reader for the command line and the desktop host, so both ask for a yes in exactly
4
+ * the same cases.
5
+ */
6
+ import type { InstallManifest } from './install-manifest.js';
7
+ import type { InstallPlan } from './install-plan.js';
8
+ export interface UpdateComparison {
9
+ /** One sentence per difference in what runs. */
10
+ readonly changes: readonly string[];
11
+ /**
12
+ * Nothing that runs changed: the same surface digest, or the same surface rows with only manifests
13
+ * and files that cannot run and configure nothing differing. Such an update needs no new yes.
14
+ */
15
+ readonly unchangedSurface: boolean;
16
+ }
17
+ export declare function compareUpdate(recorded: InstallManifest, plan: InstallPlan): UpdateComparison;
18
+ //# sourceMappingURL=update-compare.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-compare.d.ts","sourceRoot":"","sources":["../../../src/integrations/plugins/update-compare.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAGpD,MAAM,WAAW,gBAAgB;IAChC,gDAAgD;IAChD,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAA;IACnC;;;OAGG;IACH,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAA;CAClC;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,eAAe,EAAE,IAAI,EAAE,WAAW,GAAG,gBAAgB,CAkB5F"}
@@ -15,8 +15,11 @@
15
15
  * folder; a reference that leaves the folder is reported and not followed.
16
16
  * What that costs: a tool or hook module's exports are not checked (that takes
17
17
  * running it), so a module is checked for being a readable file inside the
18
- * folder and, as a warning, by what its text says.
18
+ * folder and, as a warning, by what its text says. The hooks module of a plugin
19
+ * in the common layout is parsed, never run: the report lists what it hooks and
20
+ * what it does (see {@link HooksModuleReport}).
19
21
  */
22
+ import { type CommonLayoutRead, type HookModuleSummary, type LayoutFinding } from '@namzu/sdk';
20
23
  /** The version of the JSON shape `namzu plugin validate --json` prints. */
21
24
  export declare const PLUGIN_VALIDATION_REPORT_VERSION = 1;
22
25
  /** Most bytes one file is read for; a larger one is reported, not read. */
@@ -46,6 +49,48 @@ export interface PluginPart {
46
49
  /** `error` when any of its problems is an error, `warning` when it has only warnings. */
47
50
  readonly status: 'ok' | 'warning' | 'error';
48
51
  }
52
+ /** What the common plugin layout reader found, when the folder is read in that layout. */
53
+ export interface PluginLayoutReport {
54
+ readonly source: CommonLayoutRead['source'];
55
+ /** Every finding, including the quiet `used` and `ignored` ones. */
56
+ readonly findings: readonly LayoutFinding[];
57
+ }
58
+ /**
59
+ * What the hooks module of a plugin in the common layout hooks and does, read
60
+ * from its source and never run. The same facts the trust screen and an install
61
+ * prompt show before the plugin is allowed to run it.
62
+ */
63
+ export interface HooksModuleReport {
64
+ /** The module, relative to the plugin. */
65
+ readonly entry: string;
66
+ /**
67
+ * `runs`: it loads and runs in a worker. `refused`: the scan refused it and it does not
68
+ * load. `empty`: it registers nothing Namzu runs, so it does not load either.
69
+ */
70
+ readonly status: 'runs' | 'refused' | 'empty';
71
+ /** Why it is refused, one line each; empty unless `status` is `refused`. */
72
+ /** One line per thing it does, ready to show. */
73
+ readonly lines: readonly string[];
74
+ readonly summary: HookModuleSummary;
75
+ /** Each pattern it registers, and whether Namzu runs it. */
76
+ readonly hooks: readonly {
77
+ readonly pattern: string;
78
+ readonly runs: boolean;
79
+ readonly matcher: boolean;
80
+ readonly catches: boolean;
81
+ readonly file: string;
82
+ readonly line: number;
83
+ }[];
84
+ /** Each call it makes on `$`, and whether Namzu answers it. */
85
+ readonly calls: readonly {
86
+ readonly call: string;
87
+ readonly supported: boolean;
88
+ readonly file: string;
89
+ readonly line: number;
90
+ }[];
91
+ /** The files it is made of. */
92
+ readonly files: readonly string[];
93
+ }
49
94
  export type PluginValidationStatus = 'clean' | 'warnings' | 'errors' | 'unreadable';
50
95
  export interface PluginValidationReport {
51
96
  readonly version: typeof PLUGIN_VALIDATION_REPORT_VERSION;
@@ -64,6 +109,10 @@ export interface PluginValidationReport {
64
109
  readonly errors: number;
65
110
  readonly warnings: number;
66
111
  };
112
+ /** Present when the folder has no `plugin.json` and was read in the common plugin layout. */
113
+ readonly layout?: PluginLayoutReport;
114
+ /** Present when the plugin names a hooks module: what the module hooks and does. */
115
+ readonly hooksModule?: HooksModuleReport;
67
116
  }
68
117
  /** The folder could not be opened as a folder at all. */
69
118
  export declare function unreadableReport(folder: string, readError: string): PluginValidationReport;
@@ -1 +1 @@
1
- {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../src/integrations/plugins/validate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AA6BH,2EAA2E;AAC3E,eAAO,MAAM,gCAAgC,IAAI,CAAA;AAEjD,2EAA2E;AAC3E,eAAO,MAAM,sBAAsB,QAAkB,CAAA;AAErD,qDAAqD;AACrD,eAAO,MAAM,4BAA4B,MAAM,CAAA;AAI/C,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,SAAS,CAAA;AAEpD,MAAM,MAAM,cAAc,GACvB,UAAU,GACV,MAAM,GACN,MAAM,GACN,OAAO,GACP,YAAY,GACZ,SAAS,GACT,OAAO,CAAA;AAEV,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,KAAK,EAAE,kBAAkB,CAAA;IAClC,+EAA+E;IAC/E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,8CAA8C;IAC9C,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,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AAM,EAAE,CAAA;CACjC;AAED,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,YAAY,CAAA;AAEnF,MAAM,WAAW,sBAAsB;IACtC,QAAQ,CAAC,OAAO,EAAE,OAAO,gCAAgC,CAAA;IACzD,+CAA+C;IAC/C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,MAAM,EAAE,sBAAsB,CAAA;IACvC,uEAAuE;IACvE,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,MAAM,EAAE;QAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACtE,QAAQ,CAAC,KAAK,EAAE,SAAS,UAAU,EAAE,CAAA;IACrC,QAAQ,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,CAAA;IAC3C,QAAQ,CAAC,OAAO,EAAE;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAA;IACxE,6FAA6F;IAC7F,QAAQ,CAAC,MAAM,CAAC,EAAE,kBAAkB,CAAA;IACpC,oFAAoF;IACpF,QAAQ,CAAC,WAAW,CAAC,EAAE,iBAAiB,CAAA;CACxC;AAsQD,yDAAyD;AACzD,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,sBAAsB,CAW1F;AAKD;;;GAGG;AACH,wBAAsB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAkE1F"}
@@ -46,6 +46,10 @@ export declare function discoverAgentDefinitions(opts: {
46
46
  readonly pluginAgentDirs?: readonly {
47
47
  readonly plugin: string;
48
48
  readonly dir: string;
49
+ /** One file of `dir` (its name without `.md`) when the plugin named a file, not a folder. */
50
+ readonly only?: string;
51
+ /** The plugin's folder, put in for `${NAMZU_PLUGIN_ROOT}` in the agent's text. */
52
+ readonly root?: string;
49
53
  }[];
50
54
  /**
51
55
  * What decides whether an agent file's hooks can attach. Absent: the hooks
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../src/integrations/subagents/definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAEN,KAAK,0BAA0B,EAK/B,MAAM,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAE1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAGpE,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,YAAY,EAAiB,MAAM,kBAAkB,CAAA;AAE3F,YAAY,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAEvE,wBAAgB,aAAa,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,2DAA2D;AAC3D,eAAO,MAAM,2BAA2B,EAAE,WAAW,CAAC,MAAM,CAG1D,CAAA;AAEF,yFAAyF;AACzF,MAAM,WAAW,sBAAuB,SAAQ,0BAA0B;IACzE,QAAQ,CAAC,aAAa,EAAE,SAAS;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACrF;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,SAAS,YAAY,EAAE,CAAA;IACzC,2DAA2D;IAC3D,QAAQ,CAAC,QAAQ,EAAE,SAAS,iBAAiB,EAAE,CAAA;CAC/C;AAED;;;;;;;GAO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What it runs or reaches: the command (and arguments), `POST <address>`, or the start of its prompt. */
27
27
  readonly runs: string;
28
28
  }
29
+ /** One plugin the folder's own settings files ask for, and whether this computer has it. */
30
+ export interface PluginRecordGrant {
31
+ readonly id: string;
32
+ /** The file that says it: the shared `.namzu/settings.json` or this computer's `.namzu/settings.local.json`. */
33
+ readonly layer: 'project' | 'local';
34
+ /** `true` asks for it to be on here; `false` turns it off here. */
35
+ readonly on: boolean;
36
+ /** A record on this computer exists for this folder, or the plugin is installed for the user. */
37
+ readonly installed: boolean;
38
+ }
39
+ /** A marketplace the folder's settings declare; a suggestion, never an add. */
40
+ export interface MarketplaceGrant {
41
+ readonly name: string;
42
+ /** Where it would come from, in a few words. */
43
+ readonly from: string;
44
+ }
29
45
  export interface FolderGrants {
30
46
  /** Allow rules in the order written, `tool` or `tool(pattern)`, each once. */
31
47
  readonly allowRules: readonly string[];
@@ -35,7 +51,11 @@ export interface FolderGrants {
35
51
  readonly toolServers: readonly ToolServerGrant[];
36
52
  /** Hooks the folder's own files declare, in file order; they run on events once the folder is trusted. */
37
53
  readonly hooks: readonly HookGrant[];
54
+ /** Plugins the folder's settings files turn on or off here. */
55
+ readonly pluginRecords?: readonly PluginRecordGrant[];
56
+ /** Marketplaces the folder's settings files declare. */
57
+ readonly marketplaces?: readonly MarketplaceGrant[];
38
58
  }
39
59
  /** The allow rules and added directories the folder's own config carries. */
40
- export declare function readFolderGrants(cwd: string): FolderGrants;
60
+ export declare function readFolderGrants(cwd: string, home?: string): FolderGrants;
41
61
  //# sourceMappingURL=folder-grants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"folder-grants.d.ts","sourceRoot":"","sources":["../../../src/integrations/trust/folder-grants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAeH,+CAA+C;AAC/C,eAAO,MAAM,qBAAqB,IAAI,CAAA;AAEtC,8EAA8E;AAC9E,MAAM,WAAW,eAAe;IAC/B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAA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