claude-code-best 1.1.0 → 1.2.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 (514) hide show
  1. package/README.md +66 -75
  2. package/dist/{chunk-q5b91nhh.js → chunk-01qzvbp3.js} +8 -2
  3. package/dist/{chunk-f9b4wb89.js → chunk-053bj0m0.js} +79 -73
  4. package/dist/chunk-05tt9tt1.js +653 -0
  5. package/dist/chunk-06sq1vz3.js +403 -0
  6. package/dist/chunk-07069jq1.js +30 -0
  7. package/dist/chunk-0dac8msw.js +135 -0
  8. package/dist/{chunk-m5eb5pt2.js → chunk-0ja0y3at.js} +6 -6
  9. package/dist/chunk-0jzdwbdc.js +14 -0
  10. package/dist/chunk-0nrq46nf.js +313 -0
  11. package/dist/chunk-0qz705wz.js +192 -0
  12. package/dist/{chunk-m94pnhfa.js → chunk-0rn4v8sg.js} +38 -28
  13. package/dist/{chunk-1cbn5kxf.js → chunk-0rpb2bdp.js} +3 -2
  14. package/dist/{chunk-zz21rvr7.js → chunk-127cmycn.js} +8 -5
  15. package/dist/chunk-12vk6z7z.js +109 -0
  16. package/dist/{chunk-vybkxr18.js → chunk-15y014gg.js} +41 -31
  17. package/dist/{chunk-44fpr6jq.js → chunk-168xb8v1.js} +4 -2
  18. package/dist/{chunk-8hsyagr8.js → chunk-16bnxyz0.js} +1 -1
  19. package/dist/{chunk-wsqhnjj3.js → chunk-1atfzck5.js} +24 -24
  20. package/dist/chunk-1cbhkqxg.js +310 -0
  21. package/dist/chunk-1csq8bf1.js +295 -0
  22. package/dist/{chunk-0e1xsncc.js → chunk-1cwdhk7a.js} +1 -1
  23. package/dist/{chunk-c8jv6rtj.js → chunk-1ebqpwhn.js} +74 -68
  24. package/dist/{chunk-vyd8jzde.js → chunk-1mh5vt6v.js} +91 -83
  25. package/dist/chunk-1qf125vg.js +123 -0
  26. package/dist/{chunk-ryj80g9p.js → chunk-1sp6713v.js} +131 -176
  27. package/dist/{chunk-d18z9pna.js → chunk-1thgdca1.js} +2 -2
  28. package/dist/chunk-1z1gfx2c.js +443 -0
  29. package/dist/{chunk-wc6wwwyb.js → chunk-21z7acxh.js} +3 -3
  30. package/dist/chunk-229pcf6p.js +509 -0
  31. package/dist/chunk-238g70xa.js +1 -1
  32. package/dist/{chunk-vpb723tx.js → chunk-23ad5t92.js} +5 -5
  33. package/dist/chunk-28043j1k.js +68 -0
  34. package/dist/chunk-299r6d9v.js +141 -0
  35. package/dist/{chunk-a6s8wnhe.js → chunk-2bw5nqsw.js} +4 -4
  36. package/dist/chunk-2mxstrx5.js +445 -0
  37. package/dist/{chunk-9g827w4j.js → chunk-2q39ej51.js} +6 -6
  38. package/dist/chunk-2qwgfjcj.js +5370 -0
  39. package/dist/chunk-2ss23j0q.js +3587 -0
  40. package/dist/{chunk-hy3g1nv8.js → chunk-2wvxddsg.js} +9 -7
  41. package/dist/chunk-2x2aznpc.js +134 -0
  42. package/dist/{chunk-bqq4zamw.js → chunk-2ys5wcxk.js} +3 -3
  43. package/dist/{chunk-x51h62jq.js → chunk-3cvcwgsr.js} +74 -68
  44. package/dist/{chunk-mecs0gpc.js → chunk-3xv7rjsy.js} +14 -11
  45. package/dist/chunk-42x5tjk2.js +42 -0
  46. package/dist/{chunk-q6rax9kh.js → chunk-436r0x2n.js} +5 -5
  47. package/dist/{chunk-zgrg0wk3.js → chunk-44q4jkwa.js} +27 -67
  48. package/dist/{chunk-zq9xa1xe.js → chunk-44w22kyx.js} +104 -139
  49. package/dist/{chunk-yhd82045.js → chunk-46fcr28b.js} +30 -9
  50. package/dist/{chunk-wm2f2f1z.js → chunk-474y75ga.js} +2 -2
  51. package/dist/{chunk-6fkwz9yk.js → chunk-478rpnqm.js} +8 -8
  52. package/dist/{chunk-rj86xm6z.js → chunk-48w0df8a.js} +1 -1
  53. package/dist/{chunk-v4t6dyyh.js → chunk-4cp6193g.js} +2 -2
  54. package/dist/chunk-4d0de73v.js +436 -0
  55. package/dist/chunk-4eecm90d.js +1030 -0
  56. package/dist/{chunk-q7tvkc86.js → chunk-4f4ccg1h.js} +10 -115
  57. package/dist/chunk-4h102wt5.js +65 -0
  58. package/dist/{chunk-3mgywd32.js → chunk-4hv90qcz.js} +1 -1
  59. package/dist/{chunk-bcrxtdcy.js → chunk-4jcqmf9w.js} +39 -29
  60. package/dist/{chunk-v8xem37v.js → chunk-4kk7vxed.js} +8 -6
  61. package/dist/chunk-4nspekjp.js +69 -0
  62. package/dist/chunk-4xmb7bvy.js +125 -0
  63. package/dist/{chunk-427m88ms.js → chunk-4xy0c1dz.js} +8 -8
  64. package/dist/{chunk-41mpwc8h.js → chunk-53c9gb9c.js} +19 -15
  65. package/dist/{chunk-bpts9jbq.js → chunk-53zsn91p.js} +39 -31
  66. package/dist/{chunk-t7cbhqd2.js → chunk-548g1d6z.js} +104 -119
  67. package/dist/chunk-559yvwh1.js +63 -0
  68. package/dist/chunk-5a6ahhvy.js +594 -0
  69. package/dist/{chunk-5tx8dsy0.js → chunk-5c6man70.js} +9531 -18004
  70. package/dist/chunk-5hb5ev7b.js +74 -0
  71. package/dist/{chunk-ggqx30m9.js → chunk-5z28bqne.js} +23 -311
  72. package/dist/{chunk-p7g7pf3f.js → chunk-61ahbn23.js} +8 -6
  73. package/dist/{chunk-0sb5scxx.js → chunk-652wnf1z.js} +5 -5
  74. package/dist/{chunk-7tqhx6dr.js → chunk-66jkaz3q.js} +109 -213
  75. package/dist/{chunk-q25bjaev.js → chunk-677as3nh.js} +2 -2
  76. package/dist/chunk-68ksfahx.js +386 -0
  77. package/dist/{chunk-xs0hwvpa.js → chunk-68pfxvxt.js} +14 -9
  78. package/dist/{chunk-epmheefa.js → chunk-69hys77v.js} +8 -8
  79. package/dist/{chunk-9g2ncq68.js → chunk-6ayqcq3h.js} +120 -127
  80. package/dist/chunk-6kpbgc5w.js +23 -0
  81. package/dist/chunk-6mpsxxsf.js +362 -0
  82. package/dist/chunk-6nze0g86.js +119 -0
  83. package/dist/{chunk-v1mgv1et.js → chunk-6p4cyhb3.js} +4 -3
  84. package/dist/{chunk-2w8633e3.js → chunk-6t62dbnb.js} +61 -100
  85. package/dist/chunk-6t87a3q6.js +2842 -0
  86. package/dist/{chunk-6mz58s8p.js → chunk-6xana182.js} +18 -14
  87. package/dist/{chunk-fpf4cgbt.js → chunk-7bfach0x.js} +9 -9
  88. package/dist/{chunk-n7158r58.js → chunk-7f1ggjr2.js} +75 -69
  89. package/dist/chunk-7fxjmmfw.js +1172 -0
  90. package/dist/{chunk-ckcagq32.js → chunk-7gqf9wej.js} +5 -5
  91. package/dist/{chunk-b1xt9jqg.js → chunk-7j3dkjqq.js} +15 -5
  92. package/dist/chunk-7ns74x0q.js +475 -0
  93. package/dist/{chunk-ghr4s9g6.js → chunk-7qmknpkq.js} +75 -69
  94. package/dist/chunk-7rzepn9c.js +83 -0
  95. package/dist/chunk-7tdcwje9.js +68 -0
  96. package/dist/{chunk-b4mnbry0.js → chunk-8201tnhf.js} +4 -4
  97. package/dist/{chunk-dv1wfr85.js → chunk-8225arm6.js} +5 -4
  98. package/dist/chunk-822wfv88.js +70 -0
  99. package/dist/chunk-837tm8ht.js +183 -0
  100. package/dist/chunk-8a2ajt5d.js +878 -0
  101. package/dist/{chunk-bj0rvnjw.js → chunk-8bymxfn4.js} +39 -29
  102. package/dist/chunk-8cwbzk7h.js +118 -0
  103. package/dist/chunk-8d0ev0m2.js +111 -0
  104. package/dist/{chunk-4pbx3g7s.js → chunk-8g747a8x.js} +1 -1
  105. package/dist/chunk-8kfwb79z.js +436 -0
  106. package/dist/{chunk-xyqr1cww.js → chunk-8me0yq6v.js} +12 -12
  107. package/dist/{chunk-k5gdea6r.js → chunk-8n8285ax.js} +78 -72
  108. package/dist/{chunk-sdj9b9wh.js → chunk-8pn8tvgg.js} +9 -154
  109. package/dist/{chunk-d7mx1phm.js → chunk-8qhr4n77.js} +61 -103
  110. package/dist/{chunk-7ejt5gqq.js → chunk-8s9bbk3r.js} +58 -45
  111. package/dist/{chunk-bmvb57qb.js → chunk-905d2hee.js} +5 -5
  112. package/dist/{chunk-fk06pejm.js → chunk-91xq5y4a.js} +9 -9
  113. package/dist/{chunk-ahjgghpe.js → chunk-93xsyzsp.js} +1 -1
  114. package/dist/chunk-99pmbfqp.js +230 -0
  115. package/dist/{chunk-cgn27dqf.js → chunk-9f14bkn9.js} +3 -3
  116. package/dist/{chunk-sa7nc0vv.js → chunk-9m78gjpd.js} +1 -1
  117. package/dist/{chunk-kq098bkj.js → chunk-9pm2d2gv.js} +245 -316
  118. package/dist/chunk-a136cvvz.js +27 -0
  119. package/dist/{chunk-n5t9m8h9.js → chunk-a1bjde7d.js} +7 -7
  120. package/dist/chunk-a2evk7n1.js +168 -0
  121. package/dist/{chunk-khdjg2v9.js → chunk-a3k4w4cm.js} +38 -28
  122. package/dist/chunk-a3mcc1sb.js +1403 -0
  123. package/dist/{chunk-8hq5kk3y.js → chunk-a4twdmhf.js} +3 -2
  124. package/dist/chunk-a8eaey19.js +66 -0
  125. package/dist/chunk-abkb5pw6.js +426 -0
  126. package/dist/chunk-ae76ded0.js +30 -0
  127. package/dist/{chunk-660kcy7p.js → chunk-agx5w9ce.js} +14 -8
  128. package/dist/chunk-ah46h8rp.js +70 -0
  129. package/dist/chunk-aj3azy6z.js +409 -0
  130. package/dist/chunk-an6z4rzv.js +158 -0
  131. package/dist/{chunk-r6b58y3x.js → chunk-ase86y73.js} +1 -3
  132. package/dist/{chunk-v0wa5ref.js → chunk-avfjb6pd.js} +13 -555
  133. package/dist/{chunk-5mrhhmas.js → chunk-az5x70pn.js} +8 -5
  134. package/dist/{chunk-49k5ktrj.js → chunk-b6rg3egp.js} +30 -15
  135. package/dist/chunk-b73r6ngr.js +125 -0
  136. package/dist/{chunk-8bedvdm1.js → chunk-b81hd3m6.js} +1 -1
  137. package/dist/{chunk-z7pr85qw.js → chunk-b9mhpc0v.js} +3 -3
  138. package/dist/chunk-b9ndqcdv.js +139 -0
  139. package/dist/{chunk-n5516f5q.js → chunk-bd8zk9tn.js} +4 -4
  140. package/dist/chunk-bdy6n17s.js +343 -0
  141. package/dist/{chunk-r55r29js.js → chunk-bf1j3azq.js} +131 -111
  142. package/dist/{chunk-83z0wrnz.js → chunk-bfcet2mw.js} +2 -2
  143. package/dist/{chunk-jy35mvy3.js → chunk-bmjmrk76.js} +7 -7
  144. package/dist/{chunk-2j0j79p0.js → chunk-bsj8e2mb.js} +8 -8
  145. package/dist/{chunk-snvypj85.js → chunk-bt64sq5y.js} +3 -2
  146. package/dist/{chunk-vyc0rjyx.js → chunk-bwg7582d.js} +1 -1
  147. package/dist/{chunk-3be7ka25.js → chunk-bxcfz5gy.js} +1 -1
  148. package/dist/{chunk-mvss16tj.js → chunk-c1k9tg7h.js} +289 -624
  149. package/dist/{chunk-crr52hf4.js → chunk-c5pxerks.js} +13 -11
  150. package/dist/chunk-c6sjhj89.js +1284 -0
  151. package/dist/{chunk-q6dpqj3z.js → chunk-c9q0phsg.js} +9 -6
  152. package/dist/chunk-caj0ab74.js +129 -0
  153. package/dist/{chunk-f64npa3b.js → chunk-chsyvavm.js} +704 -4
  154. package/dist/{chunk-dqh7e4mt.js → chunk-cjpt035a.js} +51 -41
  155. package/dist/{chunk-z8nbjar4.js → chunk-cmcbatgz.js} +7 -5
  156. package/dist/chunk-cnsj3vq2.js +35 -0
  157. package/dist/chunk-cqjmxeqv.js +269 -0
  158. package/dist/{chunk-bt9krt49.js → chunk-cvb1v08x.js} +38 -32
  159. package/dist/{chunk-j3215c49.js → chunk-cxhvyf7c.js} +227 -370
  160. package/dist/{chunk-24x87knx.js → chunk-cxx0e4nv.js} +1326 -2881
  161. package/dist/chunk-cy2hswr1.js +15 -0
  162. package/dist/{chunk-mwp7sj0q.js → chunk-cy6ezb6j.js} +115140 -121540
  163. package/dist/{chunk-ks0m9njy.js → chunk-d2jekryq.js} +8 -8
  164. package/dist/chunk-d4mdda98.js +94 -0
  165. package/dist/{chunk-33khw5gy.js → chunk-d6ve5pze.js} +7 -7
  166. package/dist/{chunk-26wtxbdc.js → chunk-d7886r6a.js} +6928 -6928
  167. package/dist/{chunk-9t1x831d.js → chunk-d83tmb5h.js} +82 -73
  168. package/dist/{chunk-g5sg6y9q.js → chunk-d8meetqc.js} +78 -71
  169. package/dist/{chunk-ra8fbt9p.js → chunk-d8r0q4ps.js} +537 -871
  170. package/dist/chunk-d95k8xkm.js +84 -0
  171. package/dist/chunk-dd4m7t1v.js +112 -0
  172. package/dist/{chunk-er9vzjac.js → chunk-dekbr08w.js} +16 -14
  173. package/dist/{chunk-cvge4pvp.js → chunk-dk8287aa.js} +1 -1
  174. package/dist/{chunk-9mfbqw9k.js → chunk-dm3n2qgd.js} +4 -4
  175. package/dist/{chunk-n6fbyke9.js → chunk-dmxte86x.js} +3 -3
  176. package/dist/{chunk-t24ytdcw.js → chunk-dqvwn28p.js} +12 -10
  177. package/dist/chunk-drkm8yx2.js +34 -0
  178. package/dist/{chunk-ptwn7qw7.js → chunk-dsbewdgm.js} +38 -10
  179. package/dist/{chunk-w7h2yphx.js → chunk-dwekpr47.js} +2 -2
  180. package/dist/{chunk-ks0dm6t3.js → chunk-e3299veq.js} +16 -70
  181. package/dist/{chunk-4x5ym4h2.js → chunk-e5hcyxae.js} +129 -15
  182. package/dist/chunk-e7h0nd5w.js +106 -0
  183. package/dist/{chunk-s2dmn3yg.js → chunk-eaemyebz.js} +5 -5
  184. package/dist/{chunk-cmdsbsb6.js → chunk-edzkkadh.js} +2 -2
  185. package/dist/chunk-em99fnet.js +128 -0
  186. package/dist/{chunk-hfzj1m07.js → chunk-epyaq1z0.js} +13 -4
  187. package/dist/{chunk-v9y80148.js → chunk-eqmkajs4.js} +96 -189
  188. package/dist/{chunk-cs6y2pc9.js → chunk-ergam9ft.js} +5 -5
  189. package/dist/chunk-es2fdse0.js +63 -0
  190. package/dist/{chunk-cenpqc2t.js → chunk-esn3tgm2.js} +8 -6
  191. package/dist/{chunk-qf2v384j.js → chunk-et8ybmt2.js} +9 -7
  192. package/dist/{chunk-aqa7w38f.js → chunk-ew9rp41b.js} +5 -5
  193. package/dist/{chunk-1yabrspp.js → chunk-ewx6xfzb.js} +2 -2
  194. package/dist/chunk-eyjtbtt0.js +137 -0
  195. package/dist/{chunk-rmbp2das.js → chunk-f0jd2p9n.js} +20 -18
  196. package/dist/{chunk-vzqrbsd1.js → chunk-f69rgsm2.js} +5 -5
  197. package/dist/{chunk-f3bapa1x.js → chunk-f6rbj3gz.js} +12 -7
  198. package/dist/chunk-fbhyqxdg.js +1182 -0
  199. package/dist/chunk-feyzykye.js +10 -0
  200. package/dist/chunk-ffhejx56.js +107 -0
  201. package/dist/{chunk-vbbf707n.js → chunk-fhx6nt2a.js} +38 -28
  202. package/dist/chunk-fkkysfev.js +158 -0
  203. package/dist/chunk-fn510gqw.js +216 -0
  204. package/dist/chunk-ftsg8bjm.js +117 -0
  205. package/dist/{chunk-t3bf8hcf.js → chunk-fyts9grb.js} +2 -2
  206. package/dist/{chunk-kd97kxjn.js → chunk-fz0ch109.js} +3 -2
  207. package/dist/{chunk-ye18m1zb.js → chunk-g1jarkx9.js} +38 -8
  208. package/dist/chunk-g9f19ttm.js +15 -0
  209. package/dist/chunk-g9qte35t.js +341 -0
  210. package/dist/chunk-gaav53dc.js +105 -0
  211. package/dist/chunk-gfx3cwrk.js +75 -0
  212. package/dist/{chunk-z9tgzh90.js → chunk-gk2d1x2a.js} +44 -33
  213. package/dist/chunk-gkbat1p9.js +121 -0
  214. package/dist/{chunk-5b7119h5.js → chunk-gmnyk2t8.js} +8 -6
  215. package/dist/{chunk-qvd0k5dn.js → chunk-gnmdprq3.js} +184 -345
  216. package/dist/{chunk-bq6x1ehp.js → chunk-gpz0ddyz.js} +8 -8
  217. package/dist/{chunk-684kdqez.js → chunk-gv1csnc3.js} +198 -302
  218. package/dist/{chunk-x51mdzqq.js → chunk-gv37c8ax.js} +3 -3
  219. package/dist/{chunk-t6h4wf3k.js → chunk-gzr2601k.js} +9 -9
  220. package/dist/{chunk-45e9mkyr.js → chunk-h3pda469.js} +37 -82
  221. package/dist/{chunk-qqfa0dqg.js → chunk-h4b85amj.js} +20 -32
  222. package/dist/{chunk-j4c8s7tn.js → chunk-h5zv78zq.js} +9 -6
  223. package/dist/{chunk-2wcbcdky.js → chunk-h7edytkc.js} +5 -5
  224. package/dist/{chunk-402jrnj6.js → chunk-ha0wbzc3.js} +8 -8
  225. package/dist/{chunk-nxsh6de2.js → chunk-hcgkak1j.js} +20 -125
  226. package/dist/{chunk-tjaqa99q.js → chunk-hezj20qy.js} +3 -3
  227. package/dist/{chunk-kyer92r4.js → chunk-hf85ht0m.js} +2 -2
  228. package/dist/{chunk-m17y8b22.js → chunk-ht1nfygk.js} +38 -28
  229. package/dist/chunk-j316jjby.js +108 -0
  230. package/dist/chunk-j3fge71v.js +115 -0
  231. package/dist/{chunk-b51jjfh5.js → chunk-j4x0t6k2.js} +42 -31
  232. package/dist/{chunk-9gbamk79.js → chunk-j5bth84e.js} +5 -1
  233. package/dist/chunk-j783d5af.js +134 -0
  234. package/dist/chunk-j7pbwf9x.js +108 -0
  235. package/dist/{chunk-0cpnzx7t.js → chunk-j8rnrm5n.js} +114 -150
  236. package/dist/{chunk-vratq94g.js → chunk-j9gxwbe3.js} +1 -1
  237. package/dist/{chunk-3r24h7t6.js → chunk-jaaxk89e.js} +1 -1
  238. package/dist/{chunk-f4jcw0ea.js → chunk-jaew3662.js} +18 -14
  239. package/dist/{chunk-qpm1tmzz.js → chunk-jbbj16w2.js} +120 -191
  240. package/dist/chunk-jerew25v.js +148 -0
  241. package/dist/{chunk-v399mzxk.js → chunk-jf0p00fz.js} +2 -2
  242. package/dist/{chunk-91r0z5qq.js → chunk-jfsah2w3.js} +1059 -1756
  243. package/dist/{chunk-av73dywf.js → chunk-jna2tcvj.js} +8 -8
  244. package/dist/{chunk-jy35z4n0.js → chunk-jng0mb4r.js} +8 -8
  245. package/dist/chunk-jrrmwfp4.js +66 -0
  246. package/dist/{chunk-3m7ge6tj.js → chunk-jt6fa514.js} +14 -12
  247. package/dist/chunk-jvkyx1b7.js +911 -0
  248. package/dist/{chunk-41xeh3t9.js → chunk-jy6c07wa.js} +4 -4
  249. package/dist/chunk-k1fvb16y.js +269 -0
  250. package/dist/{chunk-bqfnp99q.js → chunk-k3s4yk22.js} +1 -1
  251. package/dist/{chunk-4ycz58wj.js → chunk-k46gxg21.js} +68 -8
  252. package/dist/chunk-k8wwyz2t.js +110 -0
  253. package/dist/{chunk-68qevppc.js → chunk-ka3fdfyb.js} +78 -71
  254. package/dist/{chunk-vaebptnz.js → chunk-ka4x7mhn.js} +38 -28
  255. package/dist/chunk-kb99zpps.js +216 -0
  256. package/dist/{chunk-1dyeexvn.js → chunk-kd3mmsd2.js} +4 -4
  257. package/dist/{chunk-1xkekb9y.js → chunk-kfd89dsd.js} +5 -3
  258. package/dist/{chunk-ecsw41df.js → chunk-km1wcchx.js} +81 -76
  259. package/dist/{chunk-dh6c8y1j.js → chunk-kmhwx18d.js} +3 -3
  260. package/dist/{chunk-224x480q.js → chunk-kq91dwkq.js} +8 -6
  261. package/dist/chunk-m17m84b7.js +111 -0
  262. package/dist/chunk-m1a0s9fd.js +1070 -0
  263. package/dist/{chunk-jafes477.js → chunk-m2bcpk8j.js} +4 -3
  264. package/dist/{chunk-veb0gkcf.js → chunk-m7jtn7dk.js} +74 -68
  265. package/dist/chunk-mq2mgyt9.js +103 -0
  266. package/dist/chunk-msv3w4qp.js +1811 -0
  267. package/dist/{chunk-ch53fgm5.js → chunk-mxe1f4jg.js} +13 -11
  268. package/dist/{chunk-hzttn8j7.js → chunk-mzwjvfr2.js} +124 -126
  269. package/dist/{chunk-2de1vaxf.js → chunk-n2n0sq7r.js} +67 -77
  270. package/dist/{chunk-me2ef6g4.js → chunk-n8mpqdje.js} +1 -1
  271. package/dist/chunk-n9e984ba.js +132 -0
  272. package/dist/chunk-netzwgv1.js +154 -0
  273. package/dist/{chunk-xszk7n10.js → chunk-nh3cd07f.js} +1 -1
  274. package/dist/chunk-njrz6mbe.js +66 -0
  275. package/dist/{chunk-e1ge9n4d.js → chunk-nv7pfr7k.js} +2 -2
  276. package/dist/{chunk-vygf94dw.js → chunk-nwd8pb55.js} +74 -68
  277. package/dist/{chunk-5hva0tsg.js → chunk-p2yv7m0g.js} +6 -6
  278. package/dist/chunk-p5t2vy90.js +259 -0
  279. package/dist/{chunk-zk2wsm7d.js → chunk-p7vkh4wx.js} +2 -2
  280. package/dist/{chunk-da4ve9t5.js → chunk-p8crqj70.js} +10 -10
  281. package/dist/{chunk-n2874aq5.js → chunk-pcngtzr8.js} +12 -6
  282. package/dist/{chunk-6td4c2eq.js → chunk-pdjem6h1.js} +53 -71
  283. package/dist/{chunk-zpc0kwkb.js → chunk-pmxdzjq0.js} +6 -6
  284. package/dist/{chunk-pa7saazk.js → chunk-pnkcecq2.js} +27 -55
  285. package/dist/{chunk-zsfxha74.js → chunk-pshjyzq4.js} +8 -7
  286. package/dist/chunk-pt1yj9zf.js +107 -0
  287. package/dist/{chunk-n9x557ea.js → chunk-py6b9d5b.js} +2312 -4200
  288. package/dist/chunk-q7n8d91g.js +67 -0
  289. package/dist/{chunk-e5pntxye.js → chunk-q7tpyeb3.js} +6 -4
  290. package/dist/{chunk-7ymfj7m3.js → chunk-q82r31er.js} +1 -1
  291. package/dist/chunk-qajrkk97.js +298 -0
  292. package/dist/chunk-qbrh24cn.js +119 -0
  293. package/dist/chunk-qd9ntz7c.js +230 -0
  294. package/dist/chunk-qfr5tcd5.js +2537 -0
  295. package/dist/chunk-qpzfmkct.js +456 -0
  296. package/dist/{chunk-35y0r56v.js → chunk-qtfc6wdh.js} +1 -4
  297. package/dist/chunk-r032587e.js +83 -0
  298. package/dist/{chunk-rryx19hp.js → chunk-r2k2jy0y.js} +2 -2
  299. package/dist/{chunk-pgnnrm2v.js → chunk-r4dnnggx.js} +21 -17
  300. package/dist/{chunk-k9a8jemz.js → chunk-r5n8fvw0.js} +7 -7
  301. package/dist/{chunk-jt0pha6y.js → chunk-r7kh03er.js} +222 -196
  302. package/dist/{chunk-n0k8xrey.js → chunk-rfs0mfg8.js} +140 -158
  303. package/dist/{chunk-dr4qq42x.js → chunk-rgbbtszq.js} +9 -9
  304. package/dist/{chunk-fdwa7gem.js → chunk-rkak3kjw.js} +7 -7
  305. package/dist/chunk-rp568bfw.js +111 -0
  306. package/dist/chunk-rtv718sv.js +146 -0
  307. package/dist/{chunk-rw466wqn.js → chunk-rvkvehat.js} +5284 -3093
  308. package/dist/chunk-s1baskk7.js +14 -0
  309. package/dist/{chunk-2cgdr2n7.js → chunk-s1eb67v3.js} +74 -68
  310. package/dist/{chunk-1szr63w0.js → chunk-s59kx26r.js} +81 -72
  311. package/dist/chunk-s6yk6m3b.js +109 -0
  312. package/dist/{chunk-80qg1pzv.js → chunk-sca71yv8.js} +11 -9
  313. package/dist/chunk-sfrwm87k.js +151 -0
  314. package/dist/chunk-sgaknx21.js +123 -0
  315. package/dist/{chunk-myzwt5yw.js → chunk-snyaz093.js} +9 -15
  316. package/dist/{chunk-rwexx5ns.js → chunk-sq8wkk3z.js} +1 -3
  317. package/dist/{chunk-faycqscv.js → chunk-sxqj7s2h.js} +2 -2
  318. package/dist/chunk-t2m6cjp1.js +264 -0
  319. package/dist/chunk-t6hmvb6k.js +1021 -0
  320. package/dist/chunk-t72x960a.js +125 -0
  321. package/dist/chunk-t9kashay.js +440 -0
  322. package/dist/chunk-t9wzf009.js +151 -0
  323. package/dist/chunk-ta1dgyj1.js +154 -0
  324. package/dist/{chunk-5deqy8r0.js → chunk-tavxhayf.js} +77 -71
  325. package/dist/{chunk-35b0ek0j.js → chunk-tcdv4gp8.js} +13 -9
  326. package/dist/chunk-td3b74vm.js +362 -0
  327. package/dist/{chunk-mt25echc.js → chunk-tezak8rx.js} +1 -1
  328. package/dist/chunk-tgcw0rzx.js +262 -0
  329. package/dist/{chunk-9rcbyag3.js → chunk-tmdbrszg.js} +2 -2
  330. package/dist/{chunk-jknt3rxg.js → chunk-v17qee2y.js} +7 -9
  331. package/dist/{chunk-frbv3xqa.js → chunk-v1jd31dw.js} +2 -2
  332. package/dist/chunk-var1et7e.js +66 -0
  333. package/dist/{chunk-cettj572.js → chunk-ve9wswz4.js} +7 -131
  334. package/dist/{chunk-hqmz36b3.js → chunk-vf612n57.js} +21 -101
  335. package/dist/chunk-vfhabc5j.js +109 -0
  336. package/dist/{chunk-s7qj2hg5.js → chunk-vgy0w6tt.js} +2 -2
  337. package/dist/chunk-vh02fvz1.js +375 -0
  338. package/dist/{chunk-ctmt7xh1.js → chunk-vm935era.js} +619 -887
  339. package/dist/{chunk-dxc7begm.js → chunk-vtb8z6as.js} +14 -10
  340. package/dist/chunk-w2kf9sxn.js +115 -0
  341. package/dist/chunk-w7trx259.js +132 -0
  342. package/dist/{chunk-8z039kef.js → chunk-w92b262y.js} +53 -54
  343. package/dist/chunk-w9zqjhvm.js +103 -0
  344. package/dist/{chunk-9cc60ae5.js → chunk-wb2fvy1k.js} +74 -68
  345. package/dist/chunk-ws2d81aj.js +123 -0
  346. package/dist/{chunk-5zh1fbrj.js → chunk-wssgdcck.js} +2 -2
  347. package/dist/{chunk-t9z6njcr.js → chunk-wtycm8km.js} +9 -9
  348. package/dist/chunk-wz0d8mna.js +108 -0
  349. package/dist/chunk-x01wtn3p.js +144 -0
  350. package/dist/{chunk-dnyeb288.js → chunk-x2sp7rcv.js} +73 -105
  351. package/dist/{chunk-zrse3zpz.js → chunk-xbprynsc.js} +18 -46
  352. package/dist/{chunk-yxnwsp4f.js → chunk-xext3y2y.js} +8 -6
  353. package/dist/{chunk-fzxg8v1y.js → chunk-xycy3c8q.js} +15 -12
  354. package/dist/{chunk-cpma9zs5.js → chunk-y01ys1vm.js} +20 -71
  355. package/dist/{chunk-d7vv2ydf.js → chunk-y78t50v0.js} +2 -2
  356. package/dist/{chunk-xkr7as9h.js → chunk-y9bgt2k1.js} +13 -9
  357. package/dist/{chunk-s2gm9vfk.js → chunk-ydm0nfsv.js} +5 -5
  358. package/dist/{chunk-gjyc3293.js → chunk-yetebjek.js} +282 -495
  359. package/dist/{chunk-hkn7tzgv.js → chunk-ym5r3jnk.js} +1 -1
  360. package/dist/chunk-ysks0ewj.js +237 -0
  361. package/dist/chunk-yv3evkgg.js +68 -0
  362. package/dist/{chunk-athjeyrt.js → chunk-yw79dz62.js} +4 -4
  363. package/dist/{chunk-s84smrx4.js → chunk-yy59gvs4.js} +151 -189
  364. package/dist/{chunk-12pv5fez.js → chunk-yyax4hdg.js} +10 -8
  365. package/dist/chunk-z0q85m5f.js +108 -0
  366. package/dist/chunk-z1bs6d7k.js +24 -0
  367. package/dist/chunk-z6e5jp2w.js +119 -0
  368. package/dist/{chunk-rjz6btwk.js → chunk-z7ssqvt6.js} +4972 -4638
  369. package/dist/chunk-z95yxwyb.js +61 -0
  370. package/dist/{chunk-0nqrscrr.js → chunk-z9aqj026.js} +5 -5
  371. package/dist/chunk-zc6dxhk9.js +169 -0
  372. package/dist/{chunk-ve60fbtd.js → chunk-ze6zvkg6.js} +2 -2
  373. package/dist/{chunk-t0rgmccj.js → chunk-zejm280k.js} +1 -1
  374. package/dist/{chunk-krstc7m7.js → chunk-zfapazzd.js} +15 -11
  375. package/dist/chunk-zj4fqmnc.js +219 -0
  376. package/dist/chunk-zkrpbswn.js +1608 -0
  377. package/dist/chunk-zktbb38m.js +112 -0
  378. package/dist/{chunk-vjc1svpc.js → chunk-zptcqa7t.js} +82 -75
  379. package/dist/{chunk-gbcqdr0x.js → chunk-zvnsjbt8.js} +1 -1
  380. package/dist/chunk-zwaanw8y.js +110 -0
  381. package/dist/{chunk-g3t0act8.js → chunk-zzm33q8x.js} +1 -1
  382. package/dist/{chunk-s8fzxy94.js → chunk-zzzc1ead.js} +17 -13
  383. package/dist/cli.js +34 -10
  384. package/dist/vendor/audio-capture/arm64-darwin/audio-capture.node +0 -0
  385. package/dist/vendor/audio-capture/arm64-linux/audio-capture.node +0 -0
  386. package/dist/vendor/audio-capture/arm64-win32/audio-capture.node +0 -0
  387. package/dist/vendor/audio-capture/x64-darwin/audio-capture.node +0 -0
  388. package/dist/vendor/audio-capture/x64-linux/audio-capture.node +0 -0
  389. package/dist/vendor/audio-capture/x64-win32/audio-capture.node +0 -0
  390. package/package.json +8 -5
  391. package/scripts/postinstall.cjs +319 -0
  392. package/dist/chunk-0291smg3.js +0 -42
  393. package/dist/chunk-04g2ty3v.js +0 -104
  394. package/dist/chunk-069x95ne.js +0 -764
  395. package/dist/chunk-06x02eab.js +0 -655
  396. package/dist/chunk-09pjmga5.js +0 -713
  397. package/dist/chunk-0g90je6r.js +0 -145
  398. package/dist/chunk-0rddv9vb.js +0 -328
  399. package/dist/chunk-162w6yv3.js +0 -756
  400. package/dist/chunk-1gjbaa3n.js +0 -128
  401. package/dist/chunk-23wg4mnt.js +0 -404
  402. package/dist/chunk-2gbjtg7c.js +0 -102
  403. package/dist/chunk-2v1q0ezq.js +0 -102
  404. package/dist/chunk-37n7jkxe.js +0 -436
  405. package/dist/chunk-38svjnh4.js +0 -158
  406. package/dist/chunk-3bg1089y.js +0 -616
  407. package/dist/chunk-3d8ck5ne.js +0 -112
  408. package/dist/chunk-3g6rf9sz.js +0 -106
  409. package/dist/chunk-3x3rr2n5.js +0 -57
  410. package/dist/chunk-4f6q3d38.js +0 -117
  411. package/dist/chunk-4h57km3m.js +0 -74
  412. package/dist/chunk-4kyh2618.js +0 -99
  413. package/dist/chunk-4w9vc9vc.js +0 -119
  414. package/dist/chunk-53hqpp5z.js +0 -208
  415. package/dist/chunk-5m2rmc2k.js +0 -128
  416. package/dist/chunk-5wp9pkpt.js +0 -539
  417. package/dist/chunk-5ym9f6w3.js +0 -263
  418. package/dist/chunk-6f938733.js +0 -1027
  419. package/dist/chunk-6nenxecd.js +0 -115
  420. package/dist/chunk-6rja0h86.js +0 -1593
  421. package/dist/chunk-70q6dp4d.js +0 -96
  422. package/dist/chunk-7bn0wzs3.js +0 -1493
  423. package/dist/chunk-7e2e0bfm.js +0 -65
  424. package/dist/chunk-7ywadnax.js +0 -490
  425. package/dist/chunk-7z33j54s.js +0 -142
  426. package/dist/chunk-8yvfkzyh.js +0 -58
  427. package/dist/chunk-9abpx1kv.js +0 -2833
  428. package/dist/chunk-9ks2nswb.js +0 -114
  429. package/dist/chunk-9wrds5tr.js +0 -109
  430. package/dist/chunk-ab2twken.js +0 -102
  431. package/dist/chunk-abncjeag.js +0 -97
  432. package/dist/chunk-am6w4x6y.js +0 -103
  433. package/dist/chunk-b73bd7db.js +0 -496
  434. package/dist/chunk-bc7nvynh.js +0 -195
  435. package/dist/chunk-br17dhef.js +0 -103
  436. package/dist/chunk-c3k0sdey.js +0 -281
  437. package/dist/chunk-c909bmyv.js +0 -103
  438. package/dist/chunk-cftsv9w4.js +0 -129
  439. package/dist/chunk-cj1a7npk.js +0 -99
  440. package/dist/chunk-cyscs4k5.js +0 -1330
  441. package/dist/chunk-czr7y063.js +0 -348
  442. package/dist/chunk-d93sndem.js +0 -372
  443. package/dist/chunk-ddz8xbpd.js +0 -481
  444. package/dist/chunk-dkhqx4hk.js +0 -84
  445. package/dist/chunk-dsrharmv.js +0 -359
  446. package/dist/chunk-eqmy5d05.js +0 -56
  447. package/dist/chunk-f2crxw2c.js +0 -5400
  448. package/dist/chunk-f8zga40p.js +0 -234
  449. package/dist/chunk-fbgm2ym6.js +0 -990
  450. package/dist/chunk-fcbbsswe.js +0 -119
  451. package/dist/chunk-fda654nt.js +0 -6121
  452. package/dist/chunk-ffmv9ezj.js +0 -104
  453. package/dist/chunk-fmjte7md.js +0 -38
  454. package/dist/chunk-fqtwqxxc.js +0 -293
  455. package/dist/chunk-g8k85nkd.js +0 -802
  456. package/dist/chunk-ge4ak7dj.js +0 -127
  457. package/dist/chunk-gpqemecy.js +0 -126
  458. package/dist/chunk-h19p6s3b.js +0 -131
  459. package/dist/chunk-j0sk1rct.js +0 -998
  460. package/dist/chunk-j1wfpa1a.js +0 -70
  461. package/dist/chunk-j829fx31.js +0 -3458
  462. package/dist/chunk-jqctzrvd.js +0 -722
  463. package/dist/chunk-jx817w05.js +0 -11
  464. package/dist/chunk-ka6sab33.js +0 -174
  465. package/dist/chunk-krjsvmwp.js +0 -101
  466. package/dist/chunk-kvpe50pm.js +0 -311
  467. package/dist/chunk-mez504fj.js +0 -113
  468. package/dist/chunk-mj6wbrae.js +0 -105
  469. package/dist/chunk-n0pg2kpe.js +0 -122
  470. package/dist/chunk-n4qtqkp0.js +0 -295
  471. package/dist/chunk-n9meha2m.js +0 -73
  472. package/dist/chunk-ndk7q5n3.js +0 -169
  473. package/dist/chunk-ng6n9t4h.js +0 -56
  474. package/dist/chunk-p3pz13x2.js +0 -1933
  475. package/dist/chunk-p9ez6zgq.js +0 -2656
  476. package/dist/chunk-ph750kx1.js +0 -550
  477. package/dist/chunk-pxb99zqs.js +0 -117
  478. package/dist/chunk-q1yqc5n3.js +0 -100
  479. package/dist/chunk-qtfqk0jr.js +0 -131
  480. package/dist/chunk-qzfmdh1t.js +0 -388
  481. package/dist/chunk-r3cv0j9n.js +0 -456
  482. package/dist/chunk-rx0pbgym.js +0 -97
  483. package/dist/chunk-s624rd5j.js +0 -531
  484. package/dist/chunk-satndwqj.js +0 -285
  485. package/dist/chunk-ssrxnkd1.js +0 -109
  486. package/dist/chunk-t2pgctqx.js +0 -106
  487. package/dist/chunk-t7sgwf31.js +0 -644
  488. package/dist/chunk-tth904tj.js +0 -53
  489. package/dist/chunk-typpbjhy.js +0 -128
  490. package/dist/chunk-vp6nrhdq.js +0 -102
  491. package/dist/chunk-vtjm53nt.js +0 -432
  492. package/dist/chunk-w412n7tq.js +0 -469
  493. package/dist/chunk-w4153rky.js +0 -1885
  494. package/dist/chunk-wdgv15as.js +0 -212
  495. package/dist/chunk-wgn9kydv.js +0 -58
  496. package/dist/chunk-whknbrk0.js +0 -184
  497. package/dist/chunk-x1k8e1xc.js +0 -56
  498. package/dist/chunk-x45xx6sc.js +0 -105
  499. package/dist/chunk-x4xvqbe5.js +0 -1166
  500. package/dist/chunk-x8b7vft8.js +0 -132
  501. package/dist/chunk-xaycc8qe.js +0 -44
  502. package/dist/chunk-xd4785ks.js +0 -73
  503. package/dist/chunk-xjxgmxhq.js +0 -463
  504. package/dist/chunk-xx2x3tz9.js +0 -166
  505. package/dist/chunk-y2j23eem.js +0 -101
  506. package/dist/chunk-y83j09wv.js +0 -123
  507. package/dist/chunk-yh8460pb.js +0 -119
  508. package/dist/chunk-z6nhchdb.js +0 -60
  509. package/dist/chunk-zbt73sj7.js +0 -192
  510. package/dist/chunk-zmwaatmq.js +0 -118
  511. package/dist/chunk-zvdg9tex.js +0 -135
  512. package/dist/chunk-zwa780cx.js +0 -584
  513. package/dist/{chunk-whvdag1y.js → chunk-3bfs3x0h.js} +9 -9
  514. package/dist/{chunk-27xc1csx.js → chunk-dggvswz1.js} +3 -3
@@ -1,1885 +0,0 @@
1
- // @bun
2
- import {
3
- MCPRemoteServerMenu,
4
- MCPStdioServerMenu,
5
- MCPToolDetailView,
6
- MCPToolListView,
7
- PluginSettings,
8
- init_MCPRemoteServerMenu,
9
- init_MCPStdioServerMenu,
10
- init_MCPToolDetailView,
11
- init_MCPToolListView,
12
- init_PluginSettings
13
- } from "./chunk-n9x557ea.js";
14
- import"./chunk-ch53fgm5.js";
15
- import {
16
- init_MCPConnectionManager,
17
- useMcpReconnect,
18
- useMcpToggleEnabled
19
- } from "./chunk-pa7saazk.js";
20
- import"./chunk-402jrnj6.js";
21
- import"./chunk-qf2v384j.js";
22
- import"./chunk-hy3g1nv8.js";
23
- import"./chunk-q6rax9kh.js";
24
- import {
25
- McpParsingWarnings,
26
- init_McpParsingWarnings
27
- } from "./chunk-czr7y063.js";
28
- import"./chunk-cettj572.js";
29
- import"./chunk-d93sndem.js";
30
- import"./chunk-ndk7q5n3.js";
31
- import {
32
- AuthenticationCancelledError,
33
- ClaudeAuthProvider,
34
- Select,
35
- Spinner,
36
- describeMcpConfigFilePath,
37
- extractAgentMcpServers,
38
- filterToolsByServer,
39
- init_AppState,
40
- init_CustomSelect,
41
- init_Spinner,
42
- init_auth,
43
- init_utils,
44
- performMCPOAuthFlow,
45
- useAppState,
46
- useAppStateStore
47
- } from "./chunk-mwp7sj0q.js";
48
- import"./chunk-t0rgmccj.js";
49
- import {
50
- getSessionIngressAuthToken,
51
- init_sessionIngressAuth
52
- } from "./chunk-ye18m1zb.js";
53
- import"./chunk-12pv5fez.js";
54
- import"./chunk-cgn27dqf.js";
55
- import"./chunk-dh6c8y1j.js";
56
- import {
57
- Byline,
58
- ConfigurableShortcutHint,
59
- Dialog,
60
- KeyboardShortcutHint,
61
- init_Byline,
62
- init_ConfigurableShortcutHint,
63
- init_Dialog,
64
- init_KeyboardShortcutHint
65
- } from "./chunk-xjxgmxhq.js";
66
- import"./chunk-2gzv8nrw.js";
67
- import"./chunk-ehtwnxpg.js";
68
- import"./chunk-n6fbyke9.js";
69
- import"./chunk-33khw5gy.js";
70
- import"./chunk-3be7ka25.js";
71
- import"./chunk-er9vzjac.js";
72
- import"./chunk-f3bapa1x.js";
73
- import"./chunk-cgfdkzhb.js";
74
- import"./chunk-4ycz58wj.js";
75
- import"./chunk-4kyh2618.js";
76
- import"./chunk-9gbamk79.js";
77
- import"./chunk-d7mx1phm.js";
78
- import"./chunk-hfzj1m07.js";
79
- import {
80
- init_useKeybinding,
81
- useKeybinding,
82
- useKeybindings
83
- } from "./chunk-g8k85nkd.js";
84
- import {
85
- Link,
86
- ThemedBox_default,
87
- ThemedText,
88
- color,
89
- init_ink,
90
- require_compiler_runtime,
91
- useTheme
92
- } from "./chunk-rw466wqn.js";
93
- import"./chunk-yhd82045.js";
94
- import"./chunk-ps49ymvj.js";
95
- import {
96
- require_jsx_dev_runtime,
97
- require_react
98
- } from "./chunk-g338npwr.js";
99
- import"./chunk-zk2wsm7d.js";
100
- import"./chunk-z8nbjar4.js";
101
- import"./chunk-660kcy7p.js";
102
- import"./chunk-rj86xm6z.js";
103
- import"./chunk-d7vv2ydf.js";
104
- import"./chunk-4jm600zv.js";
105
- import"./chunk-me2ef6g4.js";
106
- import"./chunk-t24ytdcw.js";
107
- import"./chunk-cenpqc2t.js";
108
- import"./chunk-mx28h61f.js";
109
- import"./chunk-ptwn7qw7.js";
110
- import"./chunk-b4mnbry0.js";
111
- import"./chunk-faycqscv.js";
112
- import"./chunk-fbgm2ym6.js";
113
- import"./chunk-f64npa3b.js";
114
- import"./chunk-8z039kef.js";
115
- import {
116
- capitalize,
117
- init_stringUtils,
118
- plural
119
- } from "./chunk-mvss16tj.js";
120
- import"./chunk-bmvb57qb.js";
121
- import"./chunk-fdwa7gem.js";
122
- import"./chunk-vratq94g.js";
123
- import"./chunk-5hva0tsg.js";
124
- import"./chunk-0e1xsncc.js";
125
- import"./chunk-64c1avct.js";
126
- import"./chunk-8g5pe1gr.js";
127
- import"./chunk-tjaqa99q.js";
128
- import"./chunk-v4t6dyyh.js";
129
- import"./chunk-4pbx3g7s.js";
130
- import"./chunk-26wtxbdc.js";
131
- import"./chunk-f5ma3nh5.js";
132
- import"./chunk-qz2x630m.js";
133
- import"./chunk-cvge4pvp.js";
134
- import"./chunk-rryx19hp.js";
135
- import"./chunk-3c25bcsw.js";
136
- import"./chunk-9g827w4j.js";
137
- import"./chunk-7ymfj7m3.js";
138
- import"./chunk-p2816w9z.js";
139
- import"./chunk-v9smspw2.js";
140
- import"./chunk-v1kzp02e.js";
141
- import"./chunk-0vkfrmqm.js";
142
- import"./chunk-0xjaqda8.js";
143
- import"./chunk-jqctzrvd.js";
144
- import"./chunk-crmjpsqe.js";
145
- import"./chunk-h0rbjg6x.js";
146
- import"./chunk-wc6wwwyb.js";
147
- import"./chunk-dr4qq42x.js";
148
- import"./chunk-d18z9pna.js";
149
- import"./chunk-qnfx3qtx.js";
150
- import"./chunk-athjeyrt.js";
151
- import"./chunk-8bedvdm1.js";
152
- import"./chunk-p7g7pf3f.js";
153
- import"./chunk-8tnsngw2.js";
154
- import"./chunk-cmdsbsb6.js";
155
- import"./chunk-vyc0rjyx.js";
156
- import {
157
- figures_default,
158
- init_figures
159
- } from "./chunk-ggqx30m9.js";
160
- import"./chunk-7wm5s02e.js";
161
- import {
162
- init_debug,
163
- isDebugMode
164
- } from "./chunk-nxsh6de2.js";
165
- import"./chunk-fbv4apne.js";
166
- import"./chunk-3r24h7t6.js";
167
- import"./chunk-qqfa0dqg.js";
168
- import"./chunk-hqmz36b3.js";
169
- import"./chunk-4g3v8y12.js";
170
- import"./chunk-7739pg2c.js";
171
- import"./chunk-xszk7n10.js";
172
- import"./chunk-sdj9b9wh.js";
173
- import {
174
- __esm,
175
- __toESM
176
- } from "./chunk-qp2qdcda.js";
177
-
178
- // src/components/mcp/MCPAgentServerMenu.tsx
179
- function MCPAgentServerMenu({
180
- agentServer,
181
- onCancel,
182
- onComplete
183
- }) {
184
- const [theme] = useTheme();
185
- const [isAuthenticating, setIsAuthenticating] = import_react.useState(false);
186
- const [error, setError] = import_react.useState(null);
187
- const [authorizationUrl, setAuthorizationUrl] = import_react.useState(null);
188
- const authAbortControllerRef = import_react.useRef(null);
189
- import_react.useEffect(() => () => authAbortControllerRef.current?.abort(), []);
190
- const handleEscCancel = import_react.useCallback(() => {
191
- if (isAuthenticating) {
192
- authAbortControllerRef.current?.abort();
193
- authAbortControllerRef.current = null;
194
- setIsAuthenticating(false);
195
- setAuthorizationUrl(null);
196
- }
197
- }, [isAuthenticating]);
198
- useKeybinding("confirm:no", handleEscCancel, {
199
- context: "Confirmation",
200
- isActive: isAuthenticating
201
- });
202
- const handleAuthenticate = import_react.useCallback(async () => {
203
- if (!agentServer.needsAuth || !agentServer.url) {
204
- return;
205
- }
206
- setIsAuthenticating(true);
207
- setError(null);
208
- const controller = new AbortController;
209
- authAbortControllerRef.current = controller;
210
- try {
211
- const tempConfig = {
212
- type: agentServer.transport,
213
- url: agentServer.url
214
- };
215
- await performMCPOAuthFlow(agentServer.name, tempConfig, setAuthorizationUrl, controller.signal);
216
- onComplete?.(`Authentication successful for ${agentServer.name}. The server will connect when the agent runs.`);
217
- } catch (err) {
218
- if (err instanceof Error && !(err instanceof AuthenticationCancelledError)) {
219
- setError(err.message);
220
- }
221
- } finally {
222
- setIsAuthenticating(false);
223
- authAbortControllerRef.current = null;
224
- }
225
- }, [agentServer, onComplete]);
226
- const capitalizedServerName = capitalize(String(agentServer.name));
227
- if (isAuthenticating) {
228
- return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
229
- flexDirection: "column",
230
- gap: 1,
231
- padding: 1,
232
- children: [
233
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
234
- color: "claude",
235
- children: [
236
- "Authenticating with ",
237
- agentServer.name,
238
- "\u2026"
239
- ]
240
- }, undefined, true, undefined, this),
241
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
242
- children: [
243
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Spinner, {}, undefined, false, undefined, this),
244
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
245
- children: " A browser window will open for authentication"
246
- }, undefined, false, undefined, this)
247
- ]
248
- }, undefined, true, undefined, this),
249
- authorizationUrl && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
250
- flexDirection: "column",
251
- children: [
252
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
253
- dimColor: true,
254
- children: "If your browser doesn't open automatically, copy this URL manually:"
255
- }, undefined, false, undefined, this),
256
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Link, {
257
- url: authorizationUrl
258
- }, undefined, false, undefined, this)
259
- ]
260
- }, undefined, true, undefined, this),
261
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
262
- marginLeft: 3,
263
- children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
264
- dimColor: true,
265
- children: [
266
- "Return here after authenticating in your browser.",
267
- " ",
268
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ConfigurableShortcutHint, {
269
- action: "confirm:no",
270
- context: "Confirmation",
271
- fallback: "Esc",
272
- description: "go back"
273
- }, undefined, false, undefined, this)
274
- ]
275
- }, undefined, true, undefined, this)
276
- }, undefined, false, undefined, this)
277
- ]
278
- }, undefined, true, undefined, this);
279
- }
280
- const menuOptions = [];
281
- if (agentServer.needsAuth) {
282
- menuOptions.push({
283
- label: agentServer.isAuthenticated ? "Re-authenticate" : "Authenticate",
284
- value: "auth"
285
- });
286
- }
287
- menuOptions.push({
288
- label: "Back",
289
- value: "back"
290
- });
291
- return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Dialog, {
292
- title: `${capitalizedServerName} MCP Server`,
293
- subtitle: "agent-only",
294
- onCancel,
295
- inputGuide: (exitState) => exitState.pending ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
296
- children: [
297
- "Press ",
298
- exitState.keyName,
299
- " again to exit"
300
- ]
301
- }, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Byline, {
302
- children: [
303
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(KeyboardShortcutHint, {
304
- shortcut: "\u2191\u2193",
305
- action: "navigate"
306
- }, undefined, false, undefined, this),
307
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(KeyboardShortcutHint, {
308
- shortcut: "Enter",
309
- action: "confirm"
310
- }, undefined, false, undefined, this),
311
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ConfigurableShortcutHint, {
312
- action: "confirm:no",
313
- context: "Confirmation",
314
- fallback: "Esc",
315
- description: "go back"
316
- }, undefined, false, undefined, this)
317
- ]
318
- }, undefined, true, undefined, this),
319
- children: [
320
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
321
- flexDirection: "column",
322
- gap: 0,
323
- children: [
324
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
325
- children: [
326
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
327
- bold: true,
328
- children: "Type: "
329
- }, undefined, false, undefined, this),
330
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
331
- dimColor: true,
332
- children: agentServer.transport
333
- }, undefined, false, undefined, this)
334
- ]
335
- }, undefined, true, undefined, this),
336
- agentServer.url && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
337
- children: [
338
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
339
- bold: true,
340
- children: "URL: "
341
- }, undefined, false, undefined, this),
342
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
343
- dimColor: true,
344
- children: agentServer.url
345
- }, undefined, false, undefined, this)
346
- ]
347
- }, undefined, true, undefined, this),
348
- agentServer.command && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
349
- children: [
350
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
351
- bold: true,
352
- children: "Command: "
353
- }, undefined, false, undefined, this),
354
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
355
- dimColor: true,
356
- children: agentServer.command
357
- }, undefined, false, undefined, this)
358
- ]
359
- }, undefined, true, undefined, this),
360
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
361
- children: [
362
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
363
- bold: true,
364
- children: "Used by: "
365
- }, undefined, false, undefined, this),
366
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
367
- dimColor: true,
368
- children: agentServer.sourceAgents.join(", ")
369
- }, undefined, false, undefined, this)
370
- ]
371
- }, undefined, true, undefined, this),
372
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
373
- marginTop: 1,
374
- children: [
375
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
376
- bold: true,
377
- children: "Status: "
378
- }, undefined, false, undefined, this),
379
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
380
- children: [
381
- color("inactive", theme)(figures_default.radioOff),
382
- " not connected (agent-only)"
383
- ]
384
- }, undefined, true, undefined, this)
385
- ]
386
- }, undefined, true, undefined, this),
387
- agentServer.needsAuth && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
388
- children: [
389
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
390
- bold: true,
391
- children: "Auth: "
392
- }, undefined, false, undefined, this),
393
- agentServer.isAuthenticated ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
394
- children: [
395
- color("success", theme)(figures_default.tick),
396
- " authenticated"
397
- ]
398
- }, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
399
- children: [
400
- color("warning", theme)(figures_default.triangleUpOutline),
401
- " may need authentication"
402
- ]
403
- }, undefined, true, undefined, this)
404
- ]
405
- }, undefined, true, undefined, this)
406
- ]
407
- }, undefined, true, undefined, this),
408
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
409
- children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
410
- dimColor: true,
411
- children: "This server connects only when running the agent."
412
- }, undefined, false, undefined, this)
413
- }, undefined, false, undefined, this),
414
- error && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
415
- children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
416
- color: "error",
417
- children: [
418
- "Error: ",
419
- error
420
- ]
421
- }, undefined, true, undefined, this)
422
- }, undefined, false, undefined, this),
423
- /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
424
- children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Select, {
425
- options: menuOptions,
426
- onChange: async (value) => {
427
- switch (value) {
428
- case "auth":
429
- await handleAuthenticate();
430
- break;
431
- case "back":
432
- onCancel();
433
- break;
434
- }
435
- },
436
- onCancel
437
- }, undefined, false, undefined, this)
438
- }, undefined, false, undefined, this)
439
- ]
440
- }, undefined, true, undefined, this);
441
- }
442
- var import_react, jsx_dev_runtime;
443
- var init_MCPAgentServerMenu = __esm(() => {
444
- init_figures();
445
- init_ink();
446
- init_useKeybinding();
447
- init_auth();
448
- init_stringUtils();
449
- init_ConfigurableShortcutHint();
450
- init_CustomSelect();
451
- init_Byline();
452
- init_Dialog();
453
- init_KeyboardShortcutHint();
454
- init_Spinner();
455
- import_react = __toESM(require_react(), 1);
456
- jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
457
- });
458
-
459
- // src/components/mcp/MCPListPanel.tsx
460
- function getScopeHeading(scope) {
461
- switch (scope) {
462
- case "project":
463
- return {
464
- label: "Project MCPs",
465
- path: describeMcpConfigFilePath(scope)
466
- };
467
- case "user":
468
- return {
469
- label: "User MCPs",
470
- path: describeMcpConfigFilePath(scope)
471
- };
472
- case "local":
473
- return {
474
- label: "Local MCPs",
475
- path: describeMcpConfigFilePath(scope)
476
- };
477
- case "enterprise":
478
- return {
479
- label: "Enterprise MCPs"
480
- };
481
- case "dynamic":
482
- return {
483
- label: "Built-in MCPs",
484
- path: "always available"
485
- };
486
- default:
487
- return {
488
- label: scope
489
- };
490
- }
491
- }
492
- function groupServersByScope(serverList) {
493
- const groups = new Map;
494
- for (const server of serverList) {
495
- const scope = server.scope;
496
- if (!groups.has(scope)) {
497
- groups.set(scope, []);
498
- }
499
- groups.get(scope).push(server);
500
- }
501
- for (const [, groupServers] of groups) {
502
- groupServers.sort((a, b) => a.name.localeCompare(b.name));
503
- }
504
- return groups;
505
- }
506
- function MCPListPanel(t0) {
507
- const $ = import_compiler_runtime.c(78);
508
- const {
509
- servers,
510
- agentServers: t1,
511
- onSelectServer,
512
- onSelectAgentServer,
513
- onComplete
514
- } = t0;
515
- let t2;
516
- if ($[0] !== t1) {
517
- t2 = t1 === undefined ? [] : t1;
518
- $[0] = t1;
519
- $[1] = t2;
520
- } else {
521
- t2 = $[1];
522
- }
523
- const agentServers = t2;
524
- const [theme] = useTheme();
525
- const [selectedIndex, setSelectedIndex] = import_react2.useState(0);
526
- let t3;
527
- if ($[2] !== servers) {
528
- const regularServers = servers.filter(_temp);
529
- t3 = groupServersByScope(regularServers);
530
- $[2] = servers;
531
- $[3] = t3;
532
- } else {
533
- t3 = $[3];
534
- }
535
- const serversByScope = t3;
536
- let t4;
537
- if ($[4] !== servers) {
538
- t4 = servers.filter(_temp2).sort(_temp3);
539
- $[4] = servers;
540
- $[5] = t4;
541
- } else {
542
- t4 = $[5];
543
- }
544
- const claudeAiServers = t4;
545
- let t5;
546
- if ($[6] !== serversByScope) {
547
- t5 = (serversByScope.get("dynamic") ?? []).sort(_temp4);
548
- $[6] = serversByScope;
549
- $[7] = t5;
550
- } else {
551
- t5 = $[7];
552
- }
553
- const dynamicServers = t5;
554
- let t6;
555
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
556
- t6 = getScopeHeading("dynamic");
557
- $[8] = t6;
558
- } else {
559
- t6 = $[8];
560
- }
561
- const dynamicHeading = t6;
562
- let items;
563
- if ($[9] !== agentServers || $[10] !== claudeAiServers || $[11] !== dynamicServers || $[12] !== serversByScope) {
564
- items = [];
565
- for (const scope of SCOPE_ORDER) {
566
- const scopeServers = serversByScope.get(scope) ?? [];
567
- for (const server of scopeServers) {
568
- items.push({
569
- type: "server",
570
- server
571
- });
572
- }
573
- }
574
- for (const server_0 of claudeAiServers) {
575
- items.push({
576
- type: "server",
577
- server: server_0
578
- });
579
- }
580
- for (const agentServer of agentServers) {
581
- items.push({
582
- type: "agent-server",
583
- agentServer
584
- });
585
- }
586
- for (const server_1 of dynamicServers) {
587
- items.push({
588
- type: "server",
589
- server: server_1
590
- });
591
- }
592
- $[9] = agentServers;
593
- $[10] = claudeAiServers;
594
- $[11] = dynamicServers;
595
- $[12] = serversByScope;
596
- $[13] = items;
597
- } else {
598
- items = $[13];
599
- }
600
- const selectableItems = items;
601
- let t7;
602
- if ($[14] !== onComplete) {
603
- t7 = () => {
604
- onComplete("MCP dialog dismissed", {
605
- display: "system"
606
- });
607
- };
608
- $[14] = onComplete;
609
- $[15] = t7;
610
- } else {
611
- t7 = $[15];
612
- }
613
- const handleCancel = t7;
614
- let t8;
615
- if ($[16] !== onSelectAgentServer || $[17] !== onSelectServer || $[18] !== selectableItems || $[19] !== selectedIndex) {
616
- t8 = () => {
617
- const item = selectableItems[selectedIndex];
618
- if (!item) {
619
- return;
620
- }
621
- if (item.type === "server") {
622
- onSelectServer(item.server);
623
- } else {
624
- if (item.type === "agent-server" && onSelectAgentServer) {
625
- onSelectAgentServer(item.agentServer);
626
- }
627
- }
628
- };
629
- $[16] = onSelectAgentServer;
630
- $[17] = onSelectServer;
631
- $[18] = selectableItems;
632
- $[19] = selectedIndex;
633
- $[20] = t8;
634
- } else {
635
- t8 = $[20];
636
- }
637
- const handleSelect = t8;
638
- let t10;
639
- let t9;
640
- if ($[21] !== selectableItems) {
641
- t9 = () => setSelectedIndex((prev) => prev === 0 ? selectableItems.length - 1 : prev - 1);
642
- t10 = () => setSelectedIndex((prev_0) => prev_0 === selectableItems.length - 1 ? 0 : prev_0 + 1);
643
- $[21] = selectableItems;
644
- $[22] = t10;
645
- $[23] = t9;
646
- } else {
647
- t10 = $[22];
648
- t9 = $[23];
649
- }
650
- let t11;
651
- if ($[24] !== handleCancel || $[25] !== handleSelect || $[26] !== t10 || $[27] !== t9) {
652
- t11 = {
653
- "confirm:previous": t9,
654
- "confirm:next": t10,
655
- "confirm:yes": handleSelect,
656
- "confirm:no": handleCancel
657
- };
658
- $[24] = handleCancel;
659
- $[25] = handleSelect;
660
- $[26] = t10;
661
- $[27] = t9;
662
- $[28] = t11;
663
- } else {
664
- t11 = $[28];
665
- }
666
- let t12;
667
- if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
668
- t12 = {
669
- context: "Confirmation"
670
- };
671
- $[29] = t12;
672
- } else {
673
- t12 = $[29];
674
- }
675
- useKeybindings(t11, t12);
676
- let t13;
677
- if ($[30] !== selectableItems) {
678
- t13 = (server_2) => selectableItems.findIndex((item_0) => item_0.type === "server" && item_0.server === server_2);
679
- $[30] = selectableItems;
680
- $[31] = t13;
681
- } else {
682
- t13 = $[31];
683
- }
684
- const getServerIndex = t13;
685
- let t14;
686
- if ($[32] !== selectableItems) {
687
- t14 = (agentServer_0) => selectableItems.findIndex((item_1) => item_1.type === "agent-server" && item_1.agentServer === agentServer_0);
688
- $[32] = selectableItems;
689
- $[33] = t14;
690
- } else {
691
- t14 = $[33];
692
- }
693
- const getAgentServerIndex = t14;
694
- let t15;
695
- if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
696
- t15 = isDebugMode();
697
- $[34] = t15;
698
- } else {
699
- t15 = $[34];
700
- }
701
- const debugMode = t15;
702
- let t16;
703
- if ($[35] !== servers) {
704
- t16 = servers.some(_temp5);
705
- $[35] = servers;
706
- $[36] = t16;
707
- } else {
708
- t16 = $[36];
709
- }
710
- const hasFailedClients = t16;
711
- if (servers.length === 0 && agentServers.length === 0) {
712
- return null;
713
- }
714
- let t17;
715
- if ($[37] !== getServerIndex || $[38] !== selectedIndex || $[39] !== theme) {
716
- t17 = (server_3) => {
717
- const index = getServerIndex(server_3);
718
- const isSelected = selectedIndex === index;
719
- let statusIcon;
720
- let statusText;
721
- if (server_3.client.type === "disabled") {
722
- statusIcon = color("inactive", theme)(figures_default.radioOff);
723
- statusText = "disabled";
724
- } else {
725
- if (server_3.client.type === "connected") {
726
- statusIcon = color("success", theme)(figures_default.tick);
727
- statusText = "connected";
728
- } else {
729
- if (server_3.client.type === "pending") {
730
- statusIcon = color("inactive", theme)(figures_default.radioOff);
731
- const {
732
- reconnectAttempt,
733
- maxReconnectAttempts
734
- } = server_3.client;
735
- if (reconnectAttempt && maxReconnectAttempts) {
736
- statusText = `reconnecting (${reconnectAttempt}/${maxReconnectAttempts})\u2026`;
737
- } else {
738
- statusText = "connecting\u2026";
739
- }
740
- } else {
741
- if (server_3.client.type === "needs-auth") {
742
- statusIcon = color("warning", theme)(figures_default.triangleUpOutline);
743
- statusText = "needs authentication";
744
- } else {
745
- statusIcon = color("error", theme)(figures_default.cross);
746
- statusText = "failed";
747
- }
748
- }
749
- }
750
- }
751
- return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
752
- children: [
753
- /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
754
- color: isSelected ? "suggestion" : undefined,
755
- children: isSelected ? `${figures_default.pointer} ` : " "
756
- }, undefined, false, undefined, this),
757
- /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
758
- color: isSelected ? "suggestion" : undefined,
759
- children: server_3.name
760
- }, undefined, false, undefined, this),
761
- /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
762
- dimColor: !isSelected,
763
- children: [
764
- " \xB7 ",
765
- statusIcon,
766
- " "
767
- ]
768
- }, undefined, true, undefined, this),
769
- /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
770
- dimColor: !isSelected,
771
- children: statusText
772
- }, undefined, false, undefined, this)
773
- ]
774
- }, `${server_3.name}-${index}`, true, undefined, this);
775
- };
776
- $[37] = getServerIndex;
777
- $[38] = selectedIndex;
778
- $[39] = theme;
779
- $[40] = t17;
780
- } else {
781
- t17 = $[40];
782
- }
783
- const renderServerItem = t17;
784
- let t18;
785
- if ($[41] !== getAgentServerIndex || $[42] !== selectedIndex || $[43] !== theme) {
786
- t18 = (agentServer_1) => {
787
- const index_0 = getAgentServerIndex(agentServer_1);
788
- const isSelected_0 = selectedIndex === index_0;
789
- const statusIcon_0 = agentServer_1.needsAuth ? color("warning", theme)(figures_default.triangleUpOutline) : color("inactive", theme)(figures_default.radioOff);
790
- const statusText_0 = agentServer_1.needsAuth ? "may need auth" : "agent-only";
791
- return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
792
- children: [
793
- /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
794
- color: isSelected_0 ? "suggestion" : undefined,
795
- children: isSelected_0 ? `${figures_default.pointer} ` : " "
796
- }, undefined, false, undefined, this),
797
- /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
798
- color: isSelected_0 ? "suggestion" : undefined,
799
- children: agentServer_1.name
800
- }, undefined, false, undefined, this),
801
- /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
802
- dimColor: !isSelected_0,
803
- children: [
804
- " \xB7 ",
805
- statusIcon_0,
806
- " "
807
- ]
808
- }, undefined, true, undefined, this),
809
- /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
810
- dimColor: !isSelected_0,
811
- children: statusText_0
812
- }, undefined, false, undefined, this)
813
- ]
814
- }, `agent-${agentServer_1.name}-${index_0}`, true, undefined, this);
815
- };
816
- $[41] = getAgentServerIndex;
817
- $[42] = selectedIndex;
818
- $[43] = theme;
819
- $[44] = t18;
820
- } else {
821
- t18 = $[44];
822
- }
823
- const renderAgentServerItem = t18;
824
- const totalServers = servers.length + agentServers.length;
825
- let t19;
826
- if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
827
- t19 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(McpParsingWarnings, {}, undefined, false, undefined, this);
828
- $[45] = t19;
829
- } else {
830
- t19 = $[45];
831
- }
832
- let t20;
833
- if ($[46] !== totalServers) {
834
- t20 = plural(totalServers, "server");
835
- $[46] = totalServers;
836
- $[47] = t20;
837
- } else {
838
- t20 = $[47];
839
- }
840
- const t21 = `${totalServers} ${t20}`;
841
- let t22;
842
- if ($[48] !== renderServerItem || $[49] !== serversByScope) {
843
- t22 = SCOPE_ORDER.map((scope_0) => {
844
- const scopeServers_0 = serversByScope.get(scope_0);
845
- if (!scopeServers_0 || scopeServers_0.length === 0) {
846
- return null;
847
- }
848
- const heading = getScopeHeading(scope_0);
849
- return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
850
- flexDirection: "column",
851
- marginBottom: 1,
852
- children: [
853
- /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
854
- paddingLeft: 2,
855
- children: [
856
- /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
857
- bold: true,
858
- children: heading.label
859
- }, undefined, false, undefined, this),
860
- heading.path && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
861
- dimColor: true,
862
- children: [
863
- " (",
864
- heading.path,
865
- ")"
866
- ]
867
- }, undefined, true, undefined, this)
868
- ]
869
- }, undefined, true, undefined, this),
870
- scopeServers_0.map((server_4) => renderServerItem(server_4))
871
- ]
872
- }, scope_0, true, undefined, this);
873
- });
874
- $[48] = renderServerItem;
875
- $[49] = serversByScope;
876
- $[50] = t22;
877
- } else {
878
- t22 = $[50];
879
- }
880
- let t23;
881
- if ($[51] !== claudeAiServers || $[52] !== renderServerItem) {
882
- t23 = claudeAiServers.length > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
883
- flexDirection: "column",
884
- marginBottom: 1,
885
- children: [
886
- /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
887
- paddingLeft: 2,
888
- children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
889
- bold: true,
890
- children: "claude.ai"
891
- }, undefined, false, undefined, this)
892
- }, undefined, false, undefined, this),
893
- claudeAiServers.map((server_5) => renderServerItem(server_5))
894
- ]
895
- }, undefined, true, undefined, this);
896
- $[51] = claudeAiServers;
897
- $[52] = renderServerItem;
898
- $[53] = t23;
899
- } else {
900
- t23 = $[53];
901
- }
902
- let t24;
903
- if ($[54] !== agentServers || $[55] !== renderAgentServerItem) {
904
- t24 = agentServers.length > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
905
- flexDirection: "column",
906
- marginBottom: 1,
907
- children: [
908
- /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
909
- paddingLeft: 2,
910
- children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
911
- bold: true,
912
- children: "Agent MCPs"
913
- }, undefined, false, undefined, this)
914
- }, undefined, false, undefined, this),
915
- [...new Set(agentServers.flatMap(_temp6))].map((agentName) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
916
- flexDirection: "column",
917
- marginTop: 1,
918
- children: [
919
- /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
920
- paddingLeft: 2,
921
- children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
922
- dimColor: true,
923
- children: [
924
- "@",
925
- agentName
926
- ]
927
- }, undefined, true, undefined, this)
928
- }, undefined, false, undefined, this),
929
- agentServers.filter((s_3) => s_3.sourceAgents.includes(agentName)).map((agentServer_2) => renderAgentServerItem(agentServer_2))
930
- ]
931
- }, agentName, true, undefined, this))
932
- ]
933
- }, undefined, true, undefined, this);
934
- $[54] = agentServers;
935
- $[55] = renderAgentServerItem;
936
- $[56] = t24;
937
- } else {
938
- t24 = $[56];
939
- }
940
- let t25;
941
- if ($[57] !== dynamicServers || $[58] !== renderServerItem) {
942
- t25 = dynamicServers.length > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
943
- flexDirection: "column",
944
- marginBottom: 1,
945
- children: [
946
- /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
947
- paddingLeft: 2,
948
- children: [
949
- /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
950
- bold: true,
951
- children: dynamicHeading.label
952
- }, undefined, false, undefined, this),
953
- dynamicHeading.path && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
954
- dimColor: true,
955
- children: [
956
- " (",
957
- dynamicHeading.path,
958
- ")"
959
- ]
960
- }, undefined, true, undefined, this)
961
- ]
962
- }, undefined, true, undefined, this),
963
- dynamicServers.map((server_6) => renderServerItem(server_6))
964
- ]
965
- }, undefined, true, undefined, this);
966
- $[57] = dynamicServers;
967
- $[58] = renderServerItem;
968
- $[59] = t25;
969
- } else {
970
- t25 = $[59];
971
- }
972
- let t26;
973
- if ($[60] !== hasFailedClients) {
974
- t26 = hasFailedClients && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
975
- dimColor: true,
976
- children: debugMode ? "\u203B Error logs shown inline with --debug" : "\u203B Run claude --debug to see error logs"
977
- }, undefined, false, undefined, this);
978
- $[60] = hasFailedClients;
979
- $[61] = t26;
980
- } else {
981
- t26 = $[61];
982
- }
983
- let t27;
984
- if ($[62] === Symbol.for("react.memo_cache_sentinel")) {
985
- t27 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
986
- dimColor: true,
987
- children: [
988
- /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Link, {
989
- url: "https://code.claude.com/docs/en/mcp",
990
- children: "https://code.claude.com/docs/en/mcp"
991
- }, undefined, false, undefined, this),
992
- " ",
993
- "for help"
994
- ]
995
- }, undefined, true, undefined, this);
996
- $[62] = t27;
997
- } else {
998
- t27 = $[62];
999
- }
1000
- let t28;
1001
- if ($[63] !== t26) {
1002
- t28 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
1003
- flexDirection: "column",
1004
- children: [
1005
- t26,
1006
- t27
1007
- ]
1008
- }, undefined, true, undefined, this);
1009
- $[63] = t26;
1010
- $[64] = t28;
1011
- } else {
1012
- t28 = $[64];
1013
- }
1014
- let t29;
1015
- if ($[65] !== t22 || $[66] !== t23 || $[67] !== t24 || $[68] !== t25 || $[69] !== t28) {
1016
- t29 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
1017
- flexDirection: "column",
1018
- children: [
1019
- t22,
1020
- t23,
1021
- t24,
1022
- t25,
1023
- t28
1024
- ]
1025
- }, undefined, true, undefined, this);
1026
- $[65] = t22;
1027
- $[66] = t23;
1028
- $[67] = t24;
1029
- $[68] = t25;
1030
- $[69] = t28;
1031
- $[70] = t29;
1032
- } else {
1033
- t29 = $[70];
1034
- }
1035
- let t30;
1036
- if ($[71] !== handleCancel || $[72] !== t21 || $[73] !== t29) {
1037
- t30 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Dialog, {
1038
- title: "Manage MCP servers",
1039
- subtitle: t21,
1040
- onCancel: handleCancel,
1041
- hideInputGuide: true,
1042
- children: t29
1043
- }, undefined, false, undefined, this);
1044
- $[71] = handleCancel;
1045
- $[72] = t21;
1046
- $[73] = t29;
1047
- $[74] = t30;
1048
- } else {
1049
- t30 = $[74];
1050
- }
1051
- let t31;
1052
- if ($[75] === Symbol.for("react.memo_cache_sentinel")) {
1053
- t31 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
1054
- paddingX: 1,
1055
- children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
1056
- dimColor: true,
1057
- italic: true,
1058
- children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Byline, {
1059
- children: [
1060
- /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(KeyboardShortcutHint, {
1061
- shortcut: "\u2191\u2193",
1062
- action: "navigate"
1063
- }, undefined, false, undefined, this),
1064
- /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(KeyboardShortcutHint, {
1065
- shortcut: "Enter",
1066
- action: "confirm"
1067
- }, undefined, false, undefined, this),
1068
- /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ConfigurableShortcutHint, {
1069
- action: "confirm:no",
1070
- context: "Confirmation",
1071
- fallback: "Esc",
1072
- description: "cancel"
1073
- }, undefined, false, undefined, this)
1074
- ]
1075
- }, undefined, true, undefined, this)
1076
- }, undefined, false, undefined, this)
1077
- }, undefined, false, undefined, this);
1078
- $[75] = t31;
1079
- } else {
1080
- t31 = $[75];
1081
- }
1082
- let t32;
1083
- if ($[76] !== t30) {
1084
- t32 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
1085
- flexDirection: "column",
1086
- children: [
1087
- t19,
1088
- t30,
1089
- t31
1090
- ]
1091
- }, undefined, true, undefined, this);
1092
- $[76] = t30;
1093
- $[77] = t32;
1094
- } else {
1095
- t32 = $[77];
1096
- }
1097
- return t32;
1098
- }
1099
- function _temp6(s_2) {
1100
- return s_2.sourceAgents;
1101
- }
1102
- function _temp5(s_1) {
1103
- return s_1.client.type === "failed";
1104
- }
1105
- function _temp4(a_0, b_0) {
1106
- return a_0.name.localeCompare(b_0.name);
1107
- }
1108
- function _temp3(a, b) {
1109
- return a.name.localeCompare(b.name);
1110
- }
1111
- function _temp2(s_0) {
1112
- return s_0.client.config.type === "claudeai-proxy";
1113
- }
1114
- function _temp(s) {
1115
- return s.client.config.type !== "claudeai-proxy";
1116
- }
1117
- var import_compiler_runtime, import_react2, jsx_dev_runtime2, SCOPE_ORDER;
1118
- var init_MCPListPanel = __esm(() => {
1119
- init_figures();
1120
- init_ink();
1121
- init_useKeybinding();
1122
- init_utils();
1123
- init_debug();
1124
- init_stringUtils();
1125
- init_ConfigurableShortcutHint();
1126
- init_Byline();
1127
- init_Dialog();
1128
- init_KeyboardShortcutHint();
1129
- init_McpParsingWarnings();
1130
- import_compiler_runtime = __toESM(require_compiler_runtime(), 1);
1131
- import_react2 = __toESM(require_react(), 1);
1132
- jsx_dev_runtime2 = __toESM(require_jsx_dev_runtime(), 1);
1133
- SCOPE_ORDER = ["project", "local", "user", "enterprise"];
1134
- });
1135
-
1136
- // src/components/mcp/MCPReconnect.tsx
1137
- function MCPReconnect(t0) {
1138
- const $ = import_compiler_runtime2.c(25);
1139
- const {
1140
- serverName,
1141
- onComplete
1142
- } = t0;
1143
- const [theme] = useTheme();
1144
- const store = useAppStateStore();
1145
- const reconnectMcpServer = useMcpReconnect();
1146
- const [isReconnecting, setIsReconnecting] = import_react3.useState(true);
1147
- const [error, setError] = import_react3.useState(null);
1148
- let t1;
1149
- let t2;
1150
- if ($[0] !== onComplete || $[1] !== reconnectMcpServer || $[2] !== serverName || $[3] !== store) {
1151
- t1 = () => {
1152
- const attemptReconnect = async function attemptReconnect2() {
1153
- try {
1154
- const server = store.getState().mcp.clients.find((c) => c.name === serverName);
1155
- if (!server) {
1156
- setError(`MCP server "${serverName}" not found`);
1157
- setIsReconnecting(false);
1158
- onComplete(`MCP server "${serverName}" not found`);
1159
- return;
1160
- }
1161
- const result = await reconnectMcpServer(serverName);
1162
- bb43:
1163
- switch (result.client.type) {
1164
- case "connected": {
1165
- setIsReconnecting(false);
1166
- onComplete(`Successfully reconnected to ${serverName}`);
1167
- break bb43;
1168
- }
1169
- case "needs-auth": {
1170
- setError(`${serverName} requires authentication`);
1171
- setIsReconnecting(false);
1172
- onComplete(`${serverName} requires authentication. Use /mcp to authenticate.`);
1173
- break bb43;
1174
- }
1175
- case "pending":
1176
- case "failed":
1177
- case "disabled": {
1178
- setError(`Failed to reconnect to ${serverName}`);
1179
- setIsReconnecting(false);
1180
- onComplete(`Failed to reconnect to ${serverName}`);
1181
- }
1182
- }
1183
- } catch (t3) {
1184
- const err = t3;
1185
- const errorMessage = err instanceof Error ? err.message : String(err);
1186
- setError(errorMessage);
1187
- setIsReconnecting(false);
1188
- onComplete(`Error: ${errorMessage}`);
1189
- }
1190
- };
1191
- attemptReconnect();
1192
- };
1193
- t2 = [serverName, reconnectMcpServer, store, onComplete];
1194
- $[0] = onComplete;
1195
- $[1] = reconnectMcpServer;
1196
- $[2] = serverName;
1197
- $[3] = store;
1198
- $[4] = t1;
1199
- $[5] = t2;
1200
- } else {
1201
- t1 = $[4];
1202
- t2 = $[5];
1203
- }
1204
- import_react3.useEffect(t1, t2);
1205
- if (isReconnecting) {
1206
- let t3;
1207
- if ($[6] !== serverName) {
1208
- t3 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
1209
- color: "text",
1210
- children: [
1211
- "Reconnecting to ",
1212
- /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
1213
- bold: true,
1214
- children: serverName
1215
- }, undefined, false, undefined, this)
1216
- ]
1217
- }, undefined, true, undefined, this);
1218
- $[6] = serverName;
1219
- $[7] = t3;
1220
- } else {
1221
- t3 = $[7];
1222
- }
1223
- let t4;
1224
- if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
1225
- t4 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
1226
- children: [
1227
- /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Spinner, {}, undefined, false, undefined, this),
1228
- /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
1229
- children: " Establishing connection to MCP server"
1230
- }, undefined, false, undefined, this)
1231
- ]
1232
- }, undefined, true, undefined, this);
1233
- $[8] = t4;
1234
- } else {
1235
- t4 = $[8];
1236
- }
1237
- let t5;
1238
- if ($[9] !== t3) {
1239
- t5 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
1240
- flexDirection: "column",
1241
- gap: 1,
1242
- padding: 1,
1243
- children: [
1244
- t3,
1245
- t4
1246
- ]
1247
- }, undefined, true, undefined, this);
1248
- $[9] = t3;
1249
- $[10] = t5;
1250
- } else {
1251
- t5 = $[10];
1252
- }
1253
- return t5;
1254
- }
1255
- if (error) {
1256
- let t3;
1257
- if ($[11] !== theme) {
1258
- t3 = color("error", theme)(figures_default.cross);
1259
- $[11] = theme;
1260
- $[12] = t3;
1261
- } else {
1262
- t3 = $[12];
1263
- }
1264
- let t4;
1265
- if ($[13] !== t3) {
1266
- t4 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
1267
- children: [
1268
- t3,
1269
- " "
1270
- ]
1271
- }, undefined, true, undefined, this);
1272
- $[13] = t3;
1273
- $[14] = t4;
1274
- } else {
1275
- t4 = $[14];
1276
- }
1277
- let t5;
1278
- if ($[15] !== serverName) {
1279
- t5 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
1280
- color: "error",
1281
- children: [
1282
- "Failed to reconnect to ",
1283
- serverName
1284
- ]
1285
- }, undefined, true, undefined, this);
1286
- $[15] = serverName;
1287
- $[16] = t5;
1288
- } else {
1289
- t5 = $[16];
1290
- }
1291
- let t6;
1292
- if ($[17] !== t4 || $[18] !== t5) {
1293
- t6 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
1294
- children: [
1295
- t4,
1296
- t5
1297
- ]
1298
- }, undefined, true, undefined, this);
1299
- $[17] = t4;
1300
- $[18] = t5;
1301
- $[19] = t6;
1302
- } else {
1303
- t6 = $[19];
1304
- }
1305
- let t7;
1306
- if ($[20] !== error) {
1307
- t7 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
1308
- dimColor: true,
1309
- children: [
1310
- "Error: ",
1311
- error
1312
- ]
1313
- }, undefined, true, undefined, this);
1314
- $[20] = error;
1315
- $[21] = t7;
1316
- } else {
1317
- t7 = $[21];
1318
- }
1319
- let t8;
1320
- if ($[22] !== t6 || $[23] !== t7) {
1321
- t8 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
1322
- flexDirection: "column",
1323
- gap: 1,
1324
- padding: 1,
1325
- children: [
1326
- t6,
1327
- t7
1328
- ]
1329
- }, undefined, true, undefined, this);
1330
- $[22] = t6;
1331
- $[23] = t7;
1332
- $[24] = t8;
1333
- } else {
1334
- t8 = $[24];
1335
- }
1336
- return t8;
1337
- }
1338
- return null;
1339
- }
1340
- var import_compiler_runtime2, import_react3, jsx_dev_runtime3;
1341
- var init_MCPReconnect = __esm(() => {
1342
- init_figures();
1343
- init_ink();
1344
- init_MCPConnectionManager();
1345
- init_AppState();
1346
- init_Spinner();
1347
- import_compiler_runtime2 = __toESM(require_compiler_runtime(), 1);
1348
- import_react3 = __toESM(require_react(), 1);
1349
- jsx_dev_runtime3 = __toESM(require_jsx_dev_runtime(), 1);
1350
- });
1351
-
1352
- // src/components/mcp/MCPSettings.tsx
1353
- function MCPSettings(t0) {
1354
- const $ = import_compiler_runtime3.c(66);
1355
- const {
1356
- onComplete
1357
- } = t0;
1358
- const mcp = useAppState(_temp7);
1359
- const agentDefinitions = useAppState(_temp22);
1360
- const mcpClients = mcp.clients;
1361
- let t1;
1362
- if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
1363
- t1 = {
1364
- type: "list"
1365
- };
1366
- $[0] = t1;
1367
- } else {
1368
- t1 = $[0];
1369
- }
1370
- const [viewState, setViewState] = import_react4.default.useState(t1);
1371
- let t2;
1372
- if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
1373
- t2 = [];
1374
- $[1] = t2;
1375
- } else {
1376
- t2 = $[1];
1377
- }
1378
- const [servers, setServers] = import_react4.default.useState(t2);
1379
- let t3;
1380
- if ($[2] !== agentDefinitions.allAgents) {
1381
- t3 = extractAgentMcpServers(agentDefinitions.allAgents);
1382
- $[2] = agentDefinitions.allAgents;
1383
- $[3] = t3;
1384
- } else {
1385
- t3 = $[3];
1386
- }
1387
- const agentMcpServers = t3;
1388
- let t4;
1389
- if ($[4] !== mcpClients) {
1390
- t4 = mcpClients.filter(_temp32).sort(_temp42);
1391
- $[4] = mcpClients;
1392
- $[5] = t4;
1393
- } else {
1394
- t4 = $[5];
1395
- }
1396
- const filteredClients = t4;
1397
- let t5;
1398
- let t6;
1399
- if ($[6] !== filteredClients || $[7] !== mcp.tools) {
1400
- t5 = () => {
1401
- let cancelled = false;
1402
- const prepareServers = async function prepareServers2() {
1403
- const serverInfos = await Promise.all(filteredClients.map(async (client_0) => {
1404
- const scope = client_0.config.scope;
1405
- const isSSE = client_0.config.type === "sse";
1406
- const isHTTP = client_0.config.type === "http";
1407
- const isClaudeAIProxy = client_0.config.type === "claudeai-proxy";
1408
- let isAuthenticated = undefined;
1409
- if (isSSE || isHTTP) {
1410
- const authProvider = new ClaudeAuthProvider(client_0.name, client_0.config);
1411
- const tokens = await authProvider.tokens();
1412
- const hasSessionAuth = getSessionIngressAuthToken() !== null && client_0.type === "connected";
1413
- const hasToolsAndConnected = client_0.type === "connected" && filterToolsByServer(mcp.tools, client_0.name).length > 0;
1414
- isAuthenticated = Boolean(tokens) || hasSessionAuth || hasToolsAndConnected;
1415
- }
1416
- const baseInfo = {
1417
- name: client_0.name,
1418
- client: client_0,
1419
- scope
1420
- };
1421
- if (isClaudeAIProxy) {
1422
- return {
1423
- ...baseInfo,
1424
- transport: "claudeai-proxy",
1425
- isAuthenticated: false,
1426
- config: client_0.config
1427
- };
1428
- } else {
1429
- if (isSSE) {
1430
- return {
1431
- ...baseInfo,
1432
- transport: "sse",
1433
- isAuthenticated,
1434
- config: client_0.config
1435
- };
1436
- } else {
1437
- if (isHTTP) {
1438
- return {
1439
- ...baseInfo,
1440
- transport: "http",
1441
- isAuthenticated,
1442
- config: client_0.config
1443
- };
1444
- } else {
1445
- return {
1446
- ...baseInfo,
1447
- transport: "stdio",
1448
- config: client_0.config
1449
- };
1450
- }
1451
- }
1452
- }
1453
- }));
1454
- if (cancelled) {
1455
- return;
1456
- }
1457
- setServers(serverInfos);
1458
- };
1459
- prepareServers();
1460
- return () => {
1461
- cancelled = true;
1462
- };
1463
- };
1464
- t6 = [filteredClients, mcp.tools];
1465
- $[6] = filteredClients;
1466
- $[7] = mcp.tools;
1467
- $[8] = t5;
1468
- $[9] = t6;
1469
- } else {
1470
- t5 = $[8];
1471
- t6 = $[9];
1472
- }
1473
- import_react4.default.useEffect(t5, t6);
1474
- let t7;
1475
- let t8;
1476
- if ($[10] !== agentMcpServers.length || $[11] !== filteredClients.length || $[12] !== onComplete || $[13] !== servers.length) {
1477
- t7 = () => {
1478
- if (servers.length === 0 && filteredClients.length > 0) {
1479
- return;
1480
- }
1481
- if (servers.length === 0 && agentMcpServers.length === 0) {
1482
- onComplete("No MCP servers configured. Please run /doctor if this is unexpected. Otherwise, run `claude mcp --help` or visit https://code.claude.com/docs/en/mcp to learn more.");
1483
- }
1484
- };
1485
- t8 = [servers.length, filteredClients.length, agentMcpServers.length, onComplete];
1486
- $[10] = agentMcpServers.length;
1487
- $[11] = filteredClients.length;
1488
- $[12] = onComplete;
1489
- $[13] = servers.length;
1490
- $[14] = t7;
1491
- $[15] = t8;
1492
- } else {
1493
- t7 = $[14];
1494
- t8 = $[15];
1495
- }
1496
- import_react4.useEffect(t7, t8);
1497
- switch (viewState.type) {
1498
- case "list": {
1499
- let t10;
1500
- let t9;
1501
- if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
1502
- t9 = (server) => setViewState({
1503
- type: "server-menu",
1504
- server
1505
- });
1506
- t10 = (agentServer) => setViewState({
1507
- type: "agent-server-menu",
1508
- agentServer
1509
- });
1510
- $[16] = t10;
1511
- $[17] = t9;
1512
- } else {
1513
- t10 = $[16];
1514
- t9 = $[17];
1515
- }
1516
- let t11;
1517
- if ($[18] !== agentMcpServers || $[19] !== onComplete || $[20] !== servers || $[21] !== viewState.defaultTab) {
1518
- t11 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(MCPListPanel, {
1519
- servers,
1520
- agentServers: agentMcpServers,
1521
- onSelectServer: t9,
1522
- onSelectAgentServer: t10,
1523
- onComplete,
1524
- defaultTab: viewState.defaultTab
1525
- }, undefined, false, undefined, this);
1526
- $[18] = agentMcpServers;
1527
- $[19] = onComplete;
1528
- $[20] = servers;
1529
- $[21] = viewState.defaultTab;
1530
- $[22] = t11;
1531
- } else {
1532
- t11 = $[22];
1533
- }
1534
- return t11;
1535
- }
1536
- case "server-menu": {
1537
- let t9;
1538
- if ($[23] !== mcp.tools || $[24] !== viewState.server.name) {
1539
- t9 = filterToolsByServer(mcp.tools, viewState.server.name);
1540
- $[23] = mcp.tools;
1541
- $[24] = viewState.server.name;
1542
- $[25] = t9;
1543
- } else {
1544
- t9 = $[25];
1545
- }
1546
- const serverTools_0 = t9;
1547
- const defaultTab = viewState.server.transport === "claudeai-proxy" ? "claude.ai" : "Claude Code";
1548
- if (viewState.server.transport === "stdio") {
1549
- let t10;
1550
- if ($[26] !== viewState.server) {
1551
- t10 = () => setViewState({
1552
- type: "server-tools",
1553
- server: viewState.server
1554
- });
1555
- $[26] = viewState.server;
1556
- $[27] = t10;
1557
- } else {
1558
- t10 = $[27];
1559
- }
1560
- let t11;
1561
- if ($[28] !== defaultTab) {
1562
- t11 = () => setViewState({
1563
- type: "list",
1564
- defaultTab
1565
- });
1566
- $[28] = defaultTab;
1567
- $[29] = t11;
1568
- } else {
1569
- t11 = $[29];
1570
- }
1571
- let t12;
1572
- if ($[30] !== onComplete || $[31] !== serverTools_0.length || $[32] !== t10 || $[33] !== t11 || $[34] !== viewState.server) {
1573
- t12 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(MCPStdioServerMenu, {
1574
- server: viewState.server,
1575
- serverToolsCount: serverTools_0.length,
1576
- onViewTools: t10,
1577
- onCancel: t11,
1578
- onComplete
1579
- }, undefined, false, undefined, this);
1580
- $[30] = onComplete;
1581
- $[31] = serverTools_0.length;
1582
- $[32] = t10;
1583
- $[33] = t11;
1584
- $[34] = viewState.server;
1585
- $[35] = t12;
1586
- } else {
1587
- t12 = $[35];
1588
- }
1589
- return t12;
1590
- } else {
1591
- let t10;
1592
- if ($[36] !== viewState.server) {
1593
- t10 = () => setViewState({
1594
- type: "server-tools",
1595
- server: viewState.server
1596
- });
1597
- $[36] = viewState.server;
1598
- $[37] = t10;
1599
- } else {
1600
- t10 = $[37];
1601
- }
1602
- let t11;
1603
- if ($[38] !== defaultTab) {
1604
- t11 = () => setViewState({
1605
- type: "list",
1606
- defaultTab
1607
- });
1608
- $[38] = defaultTab;
1609
- $[39] = t11;
1610
- } else {
1611
- t11 = $[39];
1612
- }
1613
- let t12;
1614
- if ($[40] !== onComplete || $[41] !== serverTools_0.length || $[42] !== t10 || $[43] !== t11 || $[44] !== viewState.server) {
1615
- t12 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(MCPRemoteServerMenu, {
1616
- server: viewState.server,
1617
- serverToolsCount: serverTools_0.length,
1618
- onViewTools: t10,
1619
- onCancel: t11,
1620
- onComplete
1621
- }, undefined, false, undefined, this);
1622
- $[40] = onComplete;
1623
- $[41] = serverTools_0.length;
1624
- $[42] = t10;
1625
- $[43] = t11;
1626
- $[44] = viewState.server;
1627
- $[45] = t12;
1628
- } else {
1629
- t12 = $[45];
1630
- }
1631
- return t12;
1632
- }
1633
- }
1634
- case "server-tools": {
1635
- let t10;
1636
- let t9;
1637
- if ($[46] !== viewState.server) {
1638
- t9 = (_, index) => setViewState({
1639
- type: "server-tool-detail",
1640
- server: viewState.server,
1641
- toolIndex: index
1642
- });
1643
- t10 = () => setViewState({
1644
- type: "server-menu",
1645
- server: viewState.server
1646
- });
1647
- $[46] = viewState.server;
1648
- $[47] = t10;
1649
- $[48] = t9;
1650
- } else {
1651
- t10 = $[47];
1652
- t9 = $[48];
1653
- }
1654
- let t11;
1655
- if ($[49] !== t10 || $[50] !== t9 || $[51] !== viewState.server) {
1656
- t11 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(MCPToolListView, {
1657
- server: viewState.server,
1658
- onSelectTool: t9,
1659
- onBack: t10
1660
- }, undefined, false, undefined, this);
1661
- $[49] = t10;
1662
- $[50] = t9;
1663
- $[51] = viewState.server;
1664
- $[52] = t11;
1665
- } else {
1666
- t11 = $[52];
1667
- }
1668
- return t11;
1669
- }
1670
- case "server-tool-detail": {
1671
- let t9;
1672
- if ($[53] !== mcp.tools || $[54] !== viewState.server.name) {
1673
- t9 = filterToolsByServer(mcp.tools, viewState.server.name);
1674
- $[53] = mcp.tools;
1675
- $[54] = viewState.server.name;
1676
- $[55] = t9;
1677
- } else {
1678
- t9 = $[55];
1679
- }
1680
- const serverTools = t9;
1681
- const tool = serverTools[viewState.toolIndex];
1682
- if (!tool) {
1683
- setViewState({
1684
- type: "server-tools",
1685
- server: viewState.server
1686
- });
1687
- return null;
1688
- }
1689
- let t10;
1690
- if ($[56] !== viewState.server) {
1691
- t10 = () => setViewState({
1692
- type: "server-tools",
1693
- server: viewState.server
1694
- });
1695
- $[56] = viewState.server;
1696
- $[57] = t10;
1697
- } else {
1698
- t10 = $[57];
1699
- }
1700
- let t11;
1701
- if ($[58] !== t10 || $[59] !== tool || $[60] !== viewState.server) {
1702
- t11 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(MCPToolDetailView, {
1703
- tool,
1704
- server: viewState.server,
1705
- onBack: t10
1706
- }, undefined, false, undefined, this);
1707
- $[58] = t10;
1708
- $[59] = tool;
1709
- $[60] = viewState.server;
1710
- $[61] = t11;
1711
- } else {
1712
- t11 = $[61];
1713
- }
1714
- return t11;
1715
- }
1716
- case "agent-server-menu": {
1717
- let t9;
1718
- if ($[62] === Symbol.for("react.memo_cache_sentinel")) {
1719
- t9 = () => setViewState({
1720
- type: "list",
1721
- defaultTab: "Agents"
1722
- });
1723
- $[62] = t9;
1724
- } else {
1725
- t9 = $[62];
1726
- }
1727
- let t10;
1728
- if ($[63] !== onComplete || $[64] !== viewState.agentServer) {
1729
- t10 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(MCPAgentServerMenu, {
1730
- agentServer: viewState.agentServer,
1731
- onCancel: t9,
1732
- onComplete
1733
- }, undefined, false, undefined, this);
1734
- $[63] = onComplete;
1735
- $[64] = viewState.agentServer;
1736
- $[65] = t10;
1737
- } else {
1738
- t10 = $[65];
1739
- }
1740
- return t10;
1741
- }
1742
- }
1743
- }
1744
- function _temp42(a, b) {
1745
- return a.name.localeCompare(b.name);
1746
- }
1747
- function _temp32(client) {
1748
- return client.name !== "ide";
1749
- }
1750
- function _temp22(s_0) {
1751
- return s_0.agentDefinitions;
1752
- }
1753
- function _temp7(s) {
1754
- return s.mcp;
1755
- }
1756
- var import_compiler_runtime3, import_react4, jsx_dev_runtime4;
1757
- var init_MCPSettings = __esm(() => {
1758
- init_auth();
1759
- init_utils();
1760
- init_AppState();
1761
- init_sessionIngressAuth();
1762
- init_MCPAgentServerMenu();
1763
- init_MCPListPanel();
1764
- init_MCPRemoteServerMenu();
1765
- init_MCPStdioServerMenu();
1766
- init_MCPToolDetailView();
1767
- init_MCPToolListView();
1768
- import_compiler_runtime3 = __toESM(require_compiler_runtime(), 1);
1769
- import_react4 = __toESM(require_react(), 1);
1770
- jsx_dev_runtime4 = __toESM(require_jsx_dev_runtime(), 1);
1771
- });
1772
-
1773
- // src/components/mcp/index.ts
1774
- var init_mcp = __esm(() => {
1775
- init_MCPAgentServerMenu();
1776
- init_MCPListPanel();
1777
- init_MCPReconnect();
1778
- init_MCPRemoteServerMenu();
1779
- init_MCPSettings();
1780
- init_MCPStdioServerMenu();
1781
- init_MCPToolDetailView();
1782
- init_MCPToolListView();
1783
- });
1784
-
1785
- // src/commands/mcp/mcp.tsx
1786
- function MCPToggle(t0) {
1787
- const $ = import_compiler_runtime4.c(7);
1788
- const {
1789
- action,
1790
- target,
1791
- onComplete
1792
- } = t0;
1793
- const mcpClients = useAppState(_temp9);
1794
- const toggleMcpServer = useMcpToggleEnabled();
1795
- const didRun = import_react5.useRef(false);
1796
- let t1;
1797
- let t2;
1798
- if ($[0] !== action || $[1] !== mcpClients || $[2] !== onComplete || $[3] !== target || $[4] !== toggleMcpServer) {
1799
- t1 = () => {
1800
- if (didRun.current) {
1801
- return;
1802
- }
1803
- didRun.current = true;
1804
- const isEnabling = action === "enable";
1805
- const clients = mcpClients.filter(_temp23);
1806
- const toToggle = target === "all" ? clients.filter((c_0) => isEnabling ? c_0.type === "disabled" : c_0.type !== "disabled") : clients.filter((c_1) => c_1.name === target);
1807
- if (toToggle.length === 0) {
1808
- onComplete(target === "all" ? `All MCP servers are already ${isEnabling ? "enabled" : "disabled"}` : `MCP server "${target}" not found`);
1809
- return;
1810
- }
1811
- for (const s_0 of toToggle) {
1812
- toggleMcpServer(s_0.name);
1813
- }
1814
- onComplete(target === "all" ? `${isEnabling ? "Enabled" : "Disabled"} ${toToggle.length} MCP server(s)` : `MCP server "${target}" ${isEnabling ? "enabled" : "disabled"}`);
1815
- };
1816
- t2 = [action, target, mcpClients, toggleMcpServer, onComplete];
1817
- $[0] = action;
1818
- $[1] = mcpClients;
1819
- $[2] = onComplete;
1820
- $[3] = target;
1821
- $[4] = toggleMcpServer;
1822
- $[5] = t1;
1823
- $[6] = t2;
1824
- } else {
1825
- t1 = $[5];
1826
- t2 = $[6];
1827
- }
1828
- import_react5.useEffect(t1, t2);
1829
- return null;
1830
- }
1831
- function _temp23(c) {
1832
- return c.name !== "ide";
1833
- }
1834
- function _temp9(s) {
1835
- return s.mcp.clients;
1836
- }
1837
- async function call(onDone, _context, args) {
1838
- if (args) {
1839
- const parts = args.trim().split(/\s+/);
1840
- if (parts[0] === "no-redirect") {
1841
- return /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(MCPSettings, {
1842
- onComplete: onDone
1843
- }, undefined, false, undefined, this);
1844
- }
1845
- if (parts[0] === "reconnect" && parts[1]) {
1846
- return /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(MCPReconnect, {
1847
- serverName: parts.slice(1).join(" "),
1848
- onComplete: onDone
1849
- }, undefined, false, undefined, this);
1850
- }
1851
- if (parts[0] === "enable" || parts[0] === "disable") {
1852
- return /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(MCPToggle, {
1853
- action: parts[0],
1854
- target: parts.length > 1 ? parts.slice(1).join(" ") : "all",
1855
- onComplete: onDone
1856
- }, undefined, false, undefined, this);
1857
- }
1858
- }
1859
- if (process.env.USER_TYPE === "ant") {
1860
- return /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(PluginSettings, {
1861
- onComplete: onDone,
1862
- args: "manage",
1863
- showMcpRedirectMessage: true
1864
- }, undefined, false, undefined, this);
1865
- }
1866
- return /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(MCPSettings, {
1867
- onComplete: onDone
1868
- }, undefined, false, undefined, this);
1869
- }
1870
- var import_compiler_runtime4, import_react5, jsx_dev_runtime5;
1871
- var init_mcp2 = __esm(() => {
1872
- init_mcp();
1873
- init_MCPReconnect();
1874
- init_MCPConnectionManager();
1875
- init_AppState();
1876
- init_PluginSettings();
1877
- import_compiler_runtime4 = __toESM(require_compiler_runtime(), 1);
1878
- import_react5 = __toESM(require_react(), 1);
1879
- jsx_dev_runtime5 = __toESM(require_jsx_dev_runtime(), 1);
1880
- });
1881
- init_mcp2();
1882
-
1883
- export {
1884
- call
1885
- };