claude-code-best 1.1.0 → 1.2.1

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 (542) hide show
  1. package/README.md +66 -75
  2. package/dist/chunk-03hxwxzh.js +344 -0
  3. package/dist/chunk-07069jq1.js +30 -0
  4. package/dist/{chunk-kq098bkj.js → chunk-08g51x43.js} +254 -320
  5. package/dist/{chunk-7tqhx6dr.js → chunk-093r60b7.js} +109 -213
  6. package/dist/{chunk-ahjgghpe.js → chunk-0aya4737.js} +1 -1
  7. package/dist/{chunk-b4mnbry0.js → chunk-0fsdxz74.js} +4 -4
  8. package/dist/chunk-0jzdwbdc.js +14 -0
  9. package/dist/chunk-0mbxeb5q.js +406 -0
  10. package/dist/chunk-0pryepme.js +66 -0
  11. package/dist/chunk-0qsm7jac.js +169 -0
  12. package/dist/{chunk-1cbn5kxf.js → chunk-0rpb2bdp.js} +3 -2
  13. package/dist/chunk-0se7sxd4.js +38 -0
  14. package/dist/{chunk-3m7ge6tj.js → chunk-0xnepnph.js} +14 -12
  15. package/dist/{chunk-q7tvkc86.js → chunk-0zsam7pn.js} +10 -115
  16. package/dist/{chunk-44fpr6jq.js → chunk-168xb8v1.js} +4 -2
  17. package/dist/{chunk-bj0rvnjw.js → chunk-19h3a9pw.js} +40 -30
  18. package/dist/chunk-19wjkpe7.js +115 -0
  19. package/dist/{chunk-wsqhnjj3.js → chunk-1atfzck5.js} +24 -24
  20. package/dist/{chunk-0e1xsncc.js → chunk-1cwdhk7a.js} +1 -1
  21. package/dist/{chunk-c8jv6rtj.js → chunk-1hq59w8z.js} +78 -69
  22. package/dist/chunk-1qzk963z.js +108 -0
  23. package/dist/{chunk-fk06pejm.js → chunk-1rrmvwjn.js} +9 -9
  24. package/dist/{chunk-d18z9pna.js → chunk-1thgdca1.js} +2 -2
  25. package/dist/chunk-1tjnmcw7.js +68 -0
  26. package/dist/chunk-1xj83yc8.js +219 -0
  27. package/dist/chunk-21j2jfen.js +435 -0
  28. package/dist/{chunk-wc6wwwyb.js → chunk-21z7acxh.js} +3 -3
  29. package/dist/chunk-22gbbc5x.js +313 -0
  30. package/dist/chunk-238g70xa.js +1 -1
  31. package/dist/{chunk-vpb723tx.js → chunk-23ad5t92.js} +5 -5
  32. package/dist/{chunk-vbbf707n.js → chunk-24r3gfks.js} +39 -29
  33. package/dist/chunk-24sahbec.js +71 -0
  34. package/dist/chunk-28az45r7.js +112 -0
  35. package/dist/{chunk-9g827w4j.js → chunk-2q39ej51.js} +6 -6
  36. package/dist/chunk-2qwgfjcj.js +5370 -0
  37. package/dist/{chunk-0cpnzx7t.js → chunk-2rgvd09y.js} +118 -151
  38. package/dist/chunk-2wq8q15s.js +475 -0
  39. package/dist/{chunk-bqq4zamw.js → chunk-2ys5wcxk.js} +3 -3
  40. package/dist/{chunk-t24ytdcw.js → chunk-31nce7eh.js} +12 -10
  41. package/dist/chunk-31q6p2ke.js +123 -0
  42. package/dist/chunk-3394wc12.js +1024 -0
  43. package/dist/{chunk-33khw5gy.js → chunk-365zvqv3.js} +7 -7
  44. package/dist/{chunk-9g2ncq68.js → chunk-36gkb95k.js} +124 -128
  45. package/dist/{chunk-khdjg2v9.js → chunk-37y42ayh.js} +39 -29
  46. package/dist/chunk-3816xd5p.js +195 -0
  47. package/dist/chunk-3a6bynts.js +656 -0
  48. package/dist/{chunk-qvd0k5dn.js → chunk-3avfhw6x.js} +190 -348
  49. package/dist/{chunk-660kcy7p.js → chunk-3b25ycrx.js} +14 -8
  50. package/dist/chunk-3b4xhwhp.js +113 -0
  51. package/dist/chunk-3fjzvf0e.js +128 -0
  52. package/dist/chunk-3fvc0a79.js +67 -0
  53. package/dist/chunk-3g50kcwk.js +513 -0
  54. package/dist/chunk-3jnmy0nd.js +114 -0
  55. package/dist/chunk-3jzsxj3v.js +310 -0
  56. package/dist/{chunk-frbv3xqa.js → chunk-3mpfxbab.js} +2 -2
  57. package/dist/{chunk-aqa7w38f.js → chunk-3v03e2kz.js} +5 -5
  58. package/dist/chunk-3x5hdd5g.js +1030 -0
  59. package/dist/{chunk-mecs0gpc.js → chunk-3xv7rjsy.js} +14 -11
  60. package/dist/{chunk-j3215c49.js → chunk-3ygnhge8.js} +232 -372
  61. package/dist/chunk-42x5tjk2.js +42 -0
  62. package/dist/chunk-430tvx8d.js +110 -0
  63. package/dist/{chunk-dh6c8y1j.js → chunk-43h8sw5x.js} +3 -3
  64. package/dist/chunk-44d150tz.js +1175 -0
  65. package/dist/chunk-45dj834r.js +115 -0
  66. package/dist/{chunk-yhd82045.js → chunk-46fcr28b.js} +30 -9
  67. package/dist/{chunk-wm2f2f1z.js → chunk-474y75ga.js} +2 -2
  68. package/dist/{chunk-6fkwz9yk.js → chunk-478rpnqm.js} +8 -8
  69. package/dist/{chunk-83z0wrnz.js → chunk-47j9e6m2.js} +2 -2
  70. package/dist/chunk-47wqjw88.js +112 -0
  71. package/dist/{chunk-v4t6dyyh.js → chunk-4cp6193g.js} +2 -2
  72. package/dist/chunk-4h102wt5.js +65 -0
  73. package/dist/{chunk-3mgywd32.js → chunk-4hv90qcz.js} +1 -1
  74. package/dist/chunk-4k2270je.js +295 -0
  75. package/dist/{chunk-2wcbcdky.js → chunk-4k842par.js} +5 -5
  76. package/dist/chunk-4nspekjp.js +69 -0
  77. package/dist/chunk-4pjqtps4.js +151 -0
  78. package/dist/chunk-4sehjy27.js +112 -0
  79. package/dist/{chunk-pgnnrm2v.js → chunk-4t86n23n.js} +21 -17
  80. package/dist/{chunk-2de1vaxf.js → chunk-4whfjn78.js} +68 -78
  81. package/dist/{chunk-41mpwc8h.js → chunk-53c9gb9c.js} +19 -15
  82. package/dist/chunk-53kt8caz.js +122 -0
  83. package/dist/chunk-5a6ahhvy.js +594 -0
  84. package/dist/{chunk-12pv5fez.js → chunk-5gbqknz6.js} +10 -8
  85. package/dist/{chunk-hfzj1m07.js → chunk-5kkvfgzs.js} +14 -5
  86. package/dist/{chunk-4ycz58wj.js → chunk-5pxygepg.js} +68 -8
  87. package/dist/{chunk-2w8633e3.js → chunk-5rgbq3kf.js} +61 -100
  88. package/dist/{chunk-ggqx30m9.js → chunk-5z28bqne.js} +23 -311
  89. package/dist/{chunk-7ejt5gqq.js → chunk-5z8w2q5k.js} +65 -48
  90. package/dist/chunk-60k6v40t.js +70 -0
  91. package/dist/{chunk-p7g7pf3f.js → chunk-61ahbn23.js} +8 -6
  92. package/dist/{chunk-rmbp2das.js → chunk-64pp4hsr.js} +21 -19
  93. package/dist/{chunk-0sb5scxx.js → chunk-652wnf1z.js} +5 -5
  94. package/dist/{chunk-q25bjaev.js → chunk-677as3nh.js} +2 -2
  95. package/dist/{chunk-xs0hwvpa.js → chunk-68pfxvxt.js} +14 -9
  96. package/dist/{chunk-epmheefa.js → chunk-69hys77v.js} +8 -8
  97. package/dist/{chunk-427m88ms.js → chunk-6p1cptq5.js} +9 -9
  98. package/dist/{chunk-0nqrscrr.js → chunk-6p3mtny2.js} +5 -5
  99. package/dist/{chunk-v1mgv1et.js → chunk-6p4cyhb3.js} +4 -3
  100. package/dist/{chunk-m17y8b22.js → chunk-6rxz872v.js} +39 -29
  101. package/dist/chunk-6sjxvthw.js +106 -0
  102. package/dist/{chunk-6mz58s8p.js → chunk-6xana182.js} +18 -14
  103. package/dist/{chunk-vaebptnz.js → chunk-6zn3fm1k.js} +39 -29
  104. package/dist/chunk-704jkbsp.js +183 -0
  105. package/dist/chunk-71sf47by.js +154 -0
  106. package/dist/chunk-73a5g713.js +78 -0
  107. package/dist/chunk-78p7h20f.js +259 -0
  108. package/dist/chunk-7a3b1d4s.js +75 -0
  109. package/dist/{chunk-fpf4cgbt.js → chunk-7bfach0x.js} +9 -9
  110. package/dist/{chunk-ckcagq32.js → chunk-7gqf9wej.js} +5 -5
  111. package/dist/{chunk-sa7nc0vv.js → chunk-7y25wk51.js} +1 -1
  112. package/dist/{chunk-vyd8jzde.js → chunk-81v55vtd.js} +96 -85
  113. package/dist/{chunk-dv1wfr85.js → chunk-8225arm6.js} +5 -4
  114. package/dist/chunk-86715d2d.js +186 -0
  115. package/dist/chunk-8ah9easf.js +365 -0
  116. package/dist/{chunk-rwexx5ns.js → chunk-8baq1s87.js} +1 -3
  117. package/dist/chunk-8fy8hx84.js +386 -0
  118. package/dist/{chunk-4pbx3g7s.js → chunk-8g747a8x.js} +1 -1
  119. package/dist/{chunk-xyqr1cww.js → chunk-8me0yq6v.js} +12 -12
  120. package/dist/{chunk-sdj9b9wh.js → chunk-8pn8tvgg.js} +9 -154
  121. package/dist/chunk-8qxyxgkb.js +161 -0
  122. package/dist/{chunk-ecsw41df.js → chunk-8xs4yp9x.js} +85 -77
  123. package/dist/{chunk-24x87knx.js → chunk-9000dg9h.js} +1327 -2882
  124. package/dist/{chunk-bmvb57qb.js → chunk-905d2hee.js} +5 -5
  125. package/dist/chunk-90qsc60s.js +378 -0
  126. package/dist/chunk-92x6xgex.js +265 -0
  127. package/dist/{chunk-jknt3rxg.js → chunk-9ctg4x6c.js} +7 -9
  128. package/dist/chunk-9e4z7dx7.js +389 -0
  129. package/dist/chunk-9hy6ejmp.js +151 -0
  130. package/dist/chunk-9jvggd30.js +173 -0
  131. package/dist/{chunk-z9tgzh90.js → chunk-9m729tsn.js} +46 -35
  132. package/dist/chunk-9r90d3jt.js +121 -0
  133. package/dist/chunk-9rx2m3cb.js +124 -0
  134. package/dist/chunk-9sr2etaw.js +110 -0
  135. package/dist/chunk-9z8hzgve.js +68 -0
  136. package/dist/{chunk-yxnwsp4f.js → chunk-9zy607vw.js} +8 -6
  137. package/dist/chunk-a0bz6g5e.js +63 -0
  138. package/dist/chunk-a136cvvz.js +27 -0
  139. package/dist/{chunk-n5t9m8h9.js → chunk-a1bjde7d.js} +7 -7
  140. package/dist/{chunk-mvss16tj.js → chunk-a2aj2mtb.js} +414 -636
  141. package/dist/{chunk-8hsyagr8.js → chunk-a3sfy6as.js} +1 -1
  142. package/dist/{chunk-8hq5kk3y.js → chunk-a4twdmhf.js} +3 -2
  143. package/dist/chunk-ae76ded0.js +30 -0
  144. package/dist/chunk-aegyxcne.js +111 -0
  145. package/dist/chunk-aj1dcvrh.js +131 -0
  146. package/dist/{chunk-1yabrspp.js → chunk-amxm6996.js} +2 -2
  147. package/dist/{chunk-t6h4wf3k.js → chunk-ar39mr9c.js} +11 -11
  148. package/dist/{chunk-r6b58y3x.js → chunk-ase86y73.js} +1 -3
  149. package/dist/chunk-asfxrz4f.js +94 -0
  150. package/dist/chunk-axj46c2c.js +196 -0
  151. package/dist/{chunk-m5eb5pt2.js → chunk-ayz6f38j.js} +6 -6
  152. package/dist/{chunk-5b7119h5.js → chunk-b00zd850.js} +8 -6
  153. package/dist/chunk-b2abjkf7.js +126 -0
  154. package/dist/{chunk-8bedvdm1.js → chunk-b81hd3m6.js} +1 -1
  155. package/dist/chunk-bcfd2zw7.js +20 -0
  156. package/dist/{chunk-n5516f5q.js → chunk-bd8zk9tn.js} +4 -4
  157. package/dist/chunk-bhdt6k7w.js +15 -0
  158. package/dist/{chunk-jy35mvy3.js → chunk-bmjmrk76.js} +7 -7
  159. package/dist/chunk-bqaqz1j1.js +126 -0
  160. package/dist/chunk-bsbmmfyt.js +17 -0
  161. package/dist/{chunk-snvypj85.js → chunk-bt64sq5y.js} +3 -2
  162. package/dist/{chunk-zq9xa1xe.js → chunk-bwevztsj.js} +109 -141
  163. package/dist/{chunk-vyc0rjyx.js → chunk-bwg7582d.js} +1 -1
  164. package/dist/{chunk-3be7ka25.js → chunk-bxcfz5gy.js} +1 -1
  165. package/dist/chunk-c2mn2fyg.js +1406 -0
  166. package/dist/chunk-c2tw0dep.js +1811 -0
  167. package/dist/{chunk-402jrnj6.js → chunk-c5bngssh.js} +8 -8
  168. package/dist/chunk-c6sjhj89.js +1284 -0
  169. package/dist/chunk-cb2hpe6k.js +443 -0
  170. package/dist/{chunk-91r0z5qq.js → chunk-ccr1s7qs.js} +1152 -1771
  171. package/dist/chunk-cewqh6rb.js +111 -0
  172. package/dist/{chunk-k9a8jemz.js → chunk-cg01f3ez.js} +7 -7
  173. package/dist/{chunk-f64npa3b.js → chunk-chsyvavm.js} +704 -4
  174. package/dist/{chunk-z8nbjar4.js → chunk-cmcbatgz.js} +7 -5
  175. package/dist/chunk-cnsj3vq2.js +35 -0
  176. package/dist/{chunk-rj86xm6z.js → chunk-cpwe0yw7.js} +1 -1
  177. package/dist/chunk-cqjmxeqv.js +269 -0
  178. package/dist/{chunk-qpm1tmzz.js → chunk-crefny3c.js} +125 -193
  179. package/dist/{chunk-ks0m9njy.js → chunk-d2jekryq.js} +8 -8
  180. package/dist/chunk-d4mdda98.js +94 -0
  181. package/dist/{chunk-26wtxbdc.js → chunk-d7886r6a.js} +6928 -6928
  182. package/dist/chunk-dfkgpfaj.js +135 -0
  183. package/dist/{chunk-9mfbqw9k.js → chunk-dm3n2qgd.js} +4 -4
  184. package/dist/chunk-dnj95atq.js +66 -0
  185. package/dist/{chunk-vjc1svpc.js → chunk-dqgzpb0q.js} +87 -77
  186. package/dist/chunk-drenq3c7.js +383 -0
  187. package/dist/chunk-drkm8yx2.js +34 -0
  188. package/dist/{chunk-ra8fbt9p.js → chunk-dvjzq9x9.js} +543 -874
  189. package/dist/{chunk-w7h2yphx.js → chunk-dwekpr47.js} +2 -2
  190. package/dist/{chunk-49k5ktrj.js → chunk-e18dg1md.js} +31 -16
  191. package/dist/chunk-e396ak46.js +111 -0
  192. package/dist/{chunk-r55r29js.js → chunk-e3c32vwa.js} +191 -276
  193. package/dist/chunk-e3m7kqkb.js +1185 -0
  194. package/dist/{chunk-9cc60ae5.js → chunk-ea9m4e0k.js} +79 -70
  195. package/dist/chunk-ecsa9nd5.js +63 -0
  196. package/dist/{chunk-cmdsbsb6.js → chunk-edzkkadh.js} +2 -2
  197. package/dist/chunk-ek1jasqg.js +142 -0
  198. package/dist/chunk-ep0hwv07.js +126 -0
  199. package/dist/{chunk-cs6y2pc9.js → chunk-ergam9ft.js} +5 -5
  200. package/dist/{chunk-ptwn7qw7.js → chunk-f2k8b4nd.js} +38 -10
  201. package/dist/{chunk-h0rbjg6x.js → chunk-f2mhrmww.js} +8 -1
  202. package/dist/{chunk-s84smrx4.js → chunk-f32cksgw.js} +155 -190
  203. package/dist/{chunk-vzqrbsd1.js → chunk-f69rgsm2.js} +5 -5
  204. package/dist/{chunk-f3bapa1x.js → chunk-f6rbj3gz.js} +12 -7
  205. package/dist/chunk-f7n3xete.js +113 -0
  206. package/dist/chunk-fbest4vx.js +109 -0
  207. package/dist/{chunk-v0wa5ref.js → chunk-fdtcb8qr.js} +13 -555
  208. package/dist/chunk-feh2j8m2.js +136 -0
  209. package/dist/chunk-feyzykye.js +10 -0
  210. package/dist/chunk-fkkysfev.js +158 -0
  211. package/dist/chunk-fn510gqw.js +216 -0
  212. package/dist/{chunk-ch53fgm5.js → chunk-ft9qsa01.js} +13 -11
  213. package/dist/chunk-fw0ckaxh.js +109 -0
  214. package/dist/{chunk-kd97kxjn.js → chunk-fz0ch109.js} +3 -2
  215. package/dist/{chunk-ks0dm6t3.js → chunk-fzn524wa.js} +17 -71
  216. package/dist/chunk-g1k68z1b.js +15 -0
  217. package/dist/{chunk-9t1x831d.js → chunk-g5nb4xhz.js} +86 -74
  218. package/dist/chunk-g82mdy27.js +429 -0
  219. package/dist/{chunk-68qevppc.js → chunk-g8sz060e.js} +82 -72
  220. package/dist/chunk-g9f19ttm.js +15 -0
  221. package/dist/{chunk-zz21rvr7.js → chunk-gdqxtdh4.js} +9 -6
  222. package/dist/chunk-get9fk3h.js +74 -0
  223. package/dist/{chunk-4x5ym4h2.js → chunk-gf6qjt7j.js} +130 -16
  224. package/dist/{chunk-bq6x1ehp.js → chunk-gpz0ddyz.js} +8 -8
  225. package/dist/{chunk-mwp7sj0q.js → chunk-gs5eeqmc.js} +110336 -114801
  226. package/dist/{chunk-qqfa0dqg.js → chunk-h4b85amj.js} +20 -32
  227. package/dist/{chunk-j4c8s7tn.js → chunk-h5zv78zq.js} +9 -6
  228. package/dist/{chunk-cgn27dqf.js → chunk-ha5d5zfj.js} +3 -3
  229. package/dist/{chunk-crr52hf4.js → chunk-han7cwc0.js} +14 -12
  230. package/dist/{chunk-dnyeb288.js → chunk-hbv0tk35.js} +74 -106
  231. package/dist/{chunk-nxsh6de2.js → chunk-hcgkak1j.js} +20 -125
  232. package/dist/{chunk-224x480q.js → chunk-hd1p4hrd.js} +8 -6
  233. package/dist/{chunk-tjaqa99q.js → chunk-hezj20qy.js} +3 -3
  234. package/dist/{chunk-z7pr85qw.js → chunk-hfdyez7b.js} +3 -3
  235. package/dist/chunk-hh7hqa2c.js +272 -0
  236. package/dist/chunk-hk4a2sks.js +83 -0
  237. package/dist/{chunk-5zh1fbrj.js → chunk-hq85v2s7.js} +3 -3
  238. package/dist/chunk-hr06142m.js +117 -0
  239. package/dist/chunk-j1b3r6v6.js +66 -0
  240. package/dist/{chunk-v8xem37v.js → chunk-j2fgn3kq.js} +8 -6
  241. package/dist/chunk-j2wgj22c.js +441 -0
  242. package/dist/{chunk-9gbamk79.js → chunk-j5bth84e.js} +5 -1
  243. package/dist/{chunk-vratq94g.js → chunk-j9gxwbe3.js} +1 -1
  244. package/dist/{chunk-cettj572.js → chunk-ja87jt56.js} +7 -131
  245. package/dist/{chunk-3r24h7t6.js → chunk-jaaxk89e.js} +1 -1
  246. package/dist/{chunk-f4jcw0ea.js → chunk-jaew3662.js} +18 -14
  247. package/dist/{chunk-e1ge9n4d.js → chunk-jb2nh0m0.js} +2 -2
  248. package/dist/{chunk-f9b4wb89.js → chunk-jb4fc073.js} +84 -75
  249. package/dist/chunk-jba8f3hz.js +108 -0
  250. package/dist/{chunk-er9vzjac.js → chunk-jbt0jgtc.js} +16 -14
  251. package/dist/{chunk-v399mzxk.js → chunk-jf0p00fz.js} +2 -2
  252. package/dist/{chunk-vygf94dw.js → chunk-jg4ge4de.js} +78 -69
  253. package/dist/chunk-jkvy2cmt.js +346 -0
  254. package/dist/{chunk-80qg1pzv.js → chunk-jmdy5vdy.js} +11 -9
  255. package/dist/{chunk-dqh7e4mt.js → chunk-jn08nxj8.js} +52 -42
  256. package/dist/{chunk-av73dywf.js → chunk-jna2tcvj.js} +8 -8
  257. package/dist/chunk-jwh384j5.js +126 -0
  258. package/dist/chunk-jwx2scxy.js +222 -0
  259. package/dist/{chunk-41xeh3t9.js → chunk-jy6c07wa.js} +4 -4
  260. package/dist/{chunk-ctmt7xh1.js → chunk-jy77nthd.js} +740 -907
  261. package/dist/{chunk-hzttn8j7.js → chunk-jyjpaqbt.js} +139 -135
  262. package/dist/chunk-jztjnw31.js +147 -0
  263. package/dist/chunk-k0jhzcwg.js +2540 -0
  264. package/dist/{chunk-myzwt5yw.js → chunk-k0kwfqr8.js} +9 -15
  265. package/dist/{chunk-bqfnp99q.js → chunk-k3s4yk22.js} +1 -1
  266. package/dist/{chunk-1dyeexvn.js → chunk-kd3mmsd2.js} +4 -4
  267. package/dist/{chunk-x51h62jq.js → chunk-ke78h68m.js} +78 -69
  268. package/dist/{chunk-1xkekb9y.js → chunk-kfd89dsd.js} +5 -3
  269. package/dist/chunk-ksvvwa9w.js +111 -0
  270. package/dist/{chunk-jy35z4n0.js → chunk-m1z5td19.js} +9 -9
  271. package/dist/{chunk-jafes477.js → chunk-m2bcpk8j.js} +4 -3
  272. package/dist/{chunk-n6fbyke9.js → chunk-m2mzpskw.js} +3 -3
  273. package/dist/{chunk-s2dmn3yg.js → chunk-m47q5mxt.js} +5 -5
  274. package/dist/{chunk-s7qj2hg5.js → chunk-m8vyp6rw.js} +2 -2
  275. package/dist/chunk-mm4m13ng.js +881 -0
  276. package/dist/{chunk-ghr4s9g6.js → chunk-mq1qrwhq.js} +79 -70
  277. package/dist/{chunk-45e9mkyr.js → chunk-mqqw60br.js} +43 -83
  278. package/dist/chunk-mtcdknc8.js +2842 -0
  279. package/dist/{chunk-cvge4pvp.js → chunk-mzd6frw6.js} +2 -2
  280. package/dist/{chunk-n2874aq5.js → chunk-n1neft0d.js} +13 -7
  281. package/dist/{chunk-bcrxtdcy.js → chunk-n2mysxn1.js} +40 -30
  282. package/dist/chunk-n4wkxbq0.js +365 -0
  283. package/dist/chunk-n57dw6h9.js +128 -0
  284. package/dist/chunk-n5wf3b82.js +118 -0
  285. package/dist/{chunk-zgrg0wk3.js → chunk-n7ce94nd.js} +27 -67
  286. package/dist/{chunk-me2ef6g4.js → chunk-n8mpqdje.js} +1 -1
  287. package/dist/{chunk-g5sg6y9q.js → chunk-na2e0dfj.js} +82 -72
  288. package/dist/chunk-netzwgv1.js +154 -0
  289. package/dist/{chunk-xszk7n10.js → chunk-nh3cd07f.js} +1 -1
  290. package/dist/{chunk-5tx8dsy0.js → chunk-npjsp3z3.js} +10493 -18453
  291. package/dist/{chunk-5hva0tsg.js → chunk-p2yv7m0g.js} +6 -6
  292. package/dist/chunk-p4rmbc1e.js +409 -0
  293. package/dist/chunk-p7jdncj4.js +122 -0
  294. package/dist/{chunk-zk2wsm7d.js → chunk-p7vkh4wx.js} +2 -2
  295. package/dist/{chunk-da4ve9t5.js → chunk-p8crqj70.js} +10 -10
  296. package/dist/{chunk-hy3g1nv8.js → chunk-prw4xz5q.js} +9 -7
  297. package/dist/{chunk-zsfxha74.js → chunk-pshjyzq4.js} +8 -7
  298. package/dist/{chunk-684kdqez.js → chunk-q08sb44h.js} +203 -304
  299. package/dist/{chunk-n7158r58.js → chunk-q78bgdtk.js} +79 -70
  300. package/dist/{chunk-e5pntxye.js → chunk-q7tpyeb3.js} +6 -4
  301. package/dist/{chunk-7ymfj7m3.js → chunk-q82r31er.js} +1 -1
  302. package/dist/chunk-qajrkk97.js +298 -0
  303. package/dist/chunk-qbrsmra3.js +23 -0
  304. package/dist/chunk-qhfn4vgv.js +66 -0
  305. package/dist/{chunk-d7mx1phm.js → chunk-qndzvkdx.js} +61 -103
  306. package/dist/{chunk-35y0r56v.js → chunk-qtfc6wdh.js} +1 -4
  307. package/dist/{chunk-v9y80148.js → chunk-qwcnwn5t.js} +100 -191
  308. package/dist/chunk-qwehvedn.js +440 -0
  309. package/dist/{chunk-2cgdr2n7.js → chunk-qwk9fq7r.js} +78 -69
  310. package/dist/chunk-qy75c2vm.js +70 -0
  311. package/dist/{chunk-rryx19hp.js → chunk-r2k2jy0y.js} +2 -2
  312. package/dist/chunk-r47p0ff0.js +61 -0
  313. package/dist/{chunk-t3bf8hcf.js → chunk-r5tk54yt.js} +2 -2
  314. package/dist/{chunk-bt9krt49.js → chunk-r8q993g6.js} +38 -32
  315. package/dist/{chunk-veb0gkcf.js → chunk-ra2rykps.js} +78 -69
  316. package/dist/{chunk-gbcqdr0x.js → chunk-rav5xp8h.js} +1 -1
  317. package/dist/chunk-rbe0tcn9.js +120 -0
  318. package/dist/chunk-rd5cfz3k.js +68 -0
  319. package/dist/{chunk-cenpqc2t.js → chunk-rdvaan98.js} +8 -6
  320. package/dist/{chunk-dr4qq42x.js → chunk-rgbbtszq.js} +9 -9
  321. package/dist/chunk-rjsb9s3q.js +206 -0
  322. package/dist/{chunk-fdwa7gem.js → chunk-rkak3kjw.js} +7 -7
  323. package/dist/{chunk-a6s8wnhe.js → chunk-rnam0xc5.js} +4 -4
  324. package/dist/chunk-rqkqbppr.js +112 -0
  325. package/dist/{chunk-ye18m1zb.js → chunk-rqvqqrpg.js} +38 -8
  326. package/dist/{chunk-rw466wqn.js → chunk-rvkvehat.js} +5284 -3093
  327. package/dist/chunk-s1baskk7.js +14 -0
  328. package/dist/{chunk-jt0pha6y.js → chunk-s5gnvx67.js} +227 -198
  329. package/dist/chunk-s7dtt7tw.js +109 -0
  330. package/dist/chunk-s9ftt1fh.js +135 -0
  331. package/dist/chunk-sc6sy490.js +240 -0
  332. package/dist/chunk-sh9er84d.js +1073 -0
  333. package/dist/{chunk-faycqscv.js → chunk-sk9xag9g.js} +2 -2
  334. package/dist/{chunk-zpc0kwkb.js → chunk-t0g8wbcq.js} +7 -7
  335. package/dist/chunk-tbgm1v8n.js +146 -0
  336. package/dist/{chunk-35b0ek0j.js → chunk-tcdv4gp8.js} +13 -9
  337. package/dist/{chunk-mt25echc.js → chunk-tezak8rx.js} +1 -1
  338. package/dist/chunk-thk6yn51.js +154 -0
  339. package/dist/{chunk-s2gm9vfk.js → chunk-tkf24yhv.js} +7 -7
  340. package/dist/{chunk-6td4c2eq.js → chunk-tkrjcekq.js} +54 -72
  341. package/dist/{chunk-9rcbyag3.js → chunk-tmdbrszg.js} +2 -2
  342. package/dist/chunk-tw2g1yhq.js +118 -0
  343. package/dist/chunk-twzjxwhf.js +182 -0
  344. package/dist/{chunk-m94pnhfa.js → chunk-v4e4f711.js} +39 -29
  345. package/dist/{chunk-b51jjfh5.js → chunk-v5k7zmqm.js} +43 -32
  346. package/dist/chunk-var1et7e.js +66 -0
  347. package/dist/chunk-vd11xbz3.js +304 -0
  348. package/dist/{chunk-hqmz36b3.js → chunk-vf612n57.js} +21 -101
  349. package/dist/chunk-vfhqj46w.js +144 -0
  350. package/dist/chunk-vkxx8ymr.js +2377 -0
  351. package/dist/{chunk-n9x557ea.js → chunk-vs094cby.js} +2332 -4220
  352. package/dist/{chunk-dxc7begm.js → chunk-vtb8z6as.js} +14 -10
  353. package/dist/{chunk-x51mdzqq.js → chunk-vzd3cjy9.js} +3 -3
  354. package/dist/chunk-w2es9743.js +439 -0
  355. package/dist/{chunk-8z039kef.js → chunk-w92b262y.js} +53 -54
  356. package/dist/chunk-wa1dpga1.js +236 -0
  357. package/dist/{chunk-qf2v384j.js → chunk-wbmacbfb.js} +9 -7
  358. package/dist/{chunk-ryj80g9p.js → chunk-wbn46nb4.js} +136 -178
  359. package/dist/{chunk-t9z6njcr.js → chunk-wtycm8km.js} +9 -9
  360. package/dist/{chunk-q6rax9kh.js → chunk-wymtgh88.js} +5 -5
  361. package/dist/{chunk-pa7saazk.js → chunk-x0aj8rh8.js} +28 -56
  362. package/dist/{chunk-1szr63w0.js → chunk-x69w7xr7.js} +86 -74
  363. package/dist/{chunk-k5gdea6r.js → chunk-x6qmm22r.js} +84 -75
  364. package/dist/{chunk-zrse3zpz.js → chunk-xbprynsc.js} +18 -46
  365. package/dist/chunk-xc0v11v6.js +914 -0
  366. package/dist/chunk-xed18bb5.js +233 -0
  367. package/dist/{chunk-gjyc3293.js → chunk-xj76qk4z.js} +288 -499
  368. package/dist/chunk-xmd9eezd.js +83 -0
  369. package/dist/chunk-xrzrbw0f.js +142 -0
  370. package/dist/{chunk-fzxg8v1y.js → chunk-xycy3c8q.js} +15 -12
  371. package/dist/chunk-y0m0rd5v.js +140 -0
  372. package/dist/chunk-y2vtmzre.js +137 -0
  373. package/dist/{chunk-vybkxr18.js → chunk-y5z1cjbk.js} +42 -32
  374. package/dist/chunk-y60q54ph.js +111 -0
  375. package/dist/{chunk-d7vv2ydf.js → chunk-y78t50v0.js} +2 -2
  376. package/dist/{chunk-xkr7as9h.js → chunk-y9bgt2k1.js} +13 -9
  377. package/dist/chunk-ycwdzwz5.js +233 -0
  378. package/dist/chunk-yfyc2y1v.js +136 -0
  379. package/dist/chunk-yg6gtf9j.js +152 -0
  380. package/dist/{chunk-kyer92r4.js → chunk-yk8vcecd.js} +33 -5
  381. package/dist/{chunk-hkn7tzgv.js → chunk-ym5r3jnk.js} +1 -1
  382. package/dist/chunk-yr6gqw17.js +132 -0
  383. package/dist/chunk-yw62vhjz.js +445 -0
  384. package/dist/{chunk-athjeyrt.js → chunk-yw79dz62.js} +4 -4
  385. package/dist/{chunk-5mrhhmas.js → chunk-yx64nmbh.js} +8 -5
  386. package/dist/chunk-yy232vtj.js +84 -0
  387. package/dist/chunk-z1bs6d7k.js +24 -0
  388. package/dist/chunk-z4mgvsdj.js +456 -0
  389. package/dist/chunk-z6e5jp2w.js +119 -0
  390. package/dist/{chunk-t7cbhqd2.js → chunk-z6zt2ns7.js} +111 -123
  391. package/dist/chunk-z735r3p2.js +114 -0
  392. package/dist/{chunk-rjz6btwk.js → chunk-z7ssqvt6.js} +4972 -4638
  393. package/dist/{chunk-bpts9jbq.js → chunk-z8nv1ah0.js} +39 -31
  394. package/dist/chunk-z9mbssbe.js +128 -0
  395. package/dist/chunk-zdctabq6.js +264 -0
  396. package/dist/{chunk-ve60fbtd.js → chunk-ze6zvkg6.js} +2 -2
  397. package/dist/{chunk-t0rgmccj.js → chunk-zejm280k.js} +1 -1
  398. package/dist/{chunk-krstc7m7.js → chunk-zfapazzd.js} +15 -11
  399. package/dist/{chunk-2j0j79p0.js → chunk-zg4ae27v.js} +8 -8
  400. package/dist/chunk-zqxe8qnw.js +3590 -0
  401. package/dist/{chunk-q6dpqj3z.js → chunk-zs2ddzfv.js} +10 -7
  402. package/dist/chunk-zy80g72r.js +512 -0
  403. package/dist/{chunk-g3t0act8.js → chunk-zzm33q8x.js} +1 -1
  404. package/dist/{chunk-s8fzxy94.js → chunk-zzzc1ead.js} +17 -13
  405. package/dist/cli.js +63 -11
  406. package/dist/vendor/audio-capture/arm64-darwin/audio-capture.node +0 -0
  407. package/dist/vendor/audio-capture/arm64-linux/audio-capture.node +0 -0
  408. package/dist/vendor/audio-capture/arm64-win32/audio-capture.node +0 -0
  409. package/dist/vendor/audio-capture/x64-darwin/audio-capture.node +0 -0
  410. package/dist/vendor/audio-capture/x64-linux/audio-capture.node +0 -0
  411. package/dist/vendor/audio-capture/x64-win32/audio-capture.node +0 -0
  412. package/package.json +8 -5
  413. package/scripts/postinstall.cjs +319 -0
  414. package/dist/chunk-0291smg3.js +0 -42
  415. package/dist/chunk-04g2ty3v.js +0 -104
  416. package/dist/chunk-069x95ne.js +0 -764
  417. package/dist/chunk-06x02eab.js +0 -655
  418. package/dist/chunk-09pjmga5.js +0 -713
  419. package/dist/chunk-0g90je6r.js +0 -145
  420. package/dist/chunk-0paqc2yw.js +0 -15
  421. package/dist/chunk-0rddv9vb.js +0 -328
  422. package/dist/chunk-162w6yv3.js +0 -756
  423. package/dist/chunk-1gjbaa3n.js +0 -128
  424. package/dist/chunk-23wg4mnt.js +0 -404
  425. package/dist/chunk-2gbjtg7c.js +0 -102
  426. package/dist/chunk-2v1q0ezq.js +0 -102
  427. package/dist/chunk-37n7jkxe.js +0 -436
  428. package/dist/chunk-38svjnh4.js +0 -158
  429. package/dist/chunk-3bg1089y.js +0 -616
  430. package/dist/chunk-3d8ck5ne.js +0 -112
  431. package/dist/chunk-3g6rf9sz.js +0 -106
  432. package/dist/chunk-3x3rr2n5.js +0 -57
  433. package/dist/chunk-4f6q3d38.js +0 -117
  434. package/dist/chunk-4h57km3m.js +0 -74
  435. package/dist/chunk-4kyh2618.js +0 -99
  436. package/dist/chunk-4w9vc9vc.js +0 -119
  437. package/dist/chunk-53hqpp5z.js +0 -208
  438. package/dist/chunk-5deqy8r0.js +0 -143
  439. package/dist/chunk-5m2rmc2k.js +0 -128
  440. package/dist/chunk-5wp9pkpt.js +0 -539
  441. package/dist/chunk-5ym9f6w3.js +0 -263
  442. package/dist/chunk-6f938733.js +0 -1027
  443. package/dist/chunk-6nenxecd.js +0 -115
  444. package/dist/chunk-6rja0h86.js +0 -1593
  445. package/dist/chunk-70q6dp4d.js +0 -96
  446. package/dist/chunk-7bn0wzs3.js +0 -1493
  447. package/dist/chunk-7e2e0bfm.js +0 -65
  448. package/dist/chunk-7ywadnax.js +0 -490
  449. package/dist/chunk-7z33j54s.js +0 -142
  450. package/dist/chunk-8yvfkzyh.js +0 -58
  451. package/dist/chunk-9abpx1kv.js +0 -2833
  452. package/dist/chunk-9ks2nswb.js +0 -114
  453. package/dist/chunk-9wrds5tr.js +0 -109
  454. package/dist/chunk-ab2twken.js +0 -102
  455. package/dist/chunk-abncjeag.js +0 -97
  456. package/dist/chunk-am6w4x6y.js +0 -103
  457. package/dist/chunk-b1xt9jqg.js +0 -28
  458. package/dist/chunk-b73bd7db.js +0 -496
  459. package/dist/chunk-bc7nvynh.js +0 -195
  460. package/dist/chunk-br17dhef.js +0 -103
  461. package/dist/chunk-c3k0sdey.js +0 -281
  462. package/dist/chunk-c909bmyv.js +0 -103
  463. package/dist/chunk-cftsv9w4.js +0 -129
  464. package/dist/chunk-cj1a7npk.js +0 -99
  465. package/dist/chunk-cpma9zs5.js +0 -335
  466. package/dist/chunk-cyscs4k5.js +0 -1330
  467. package/dist/chunk-czr7y063.js +0 -348
  468. package/dist/chunk-d93sndem.js +0 -372
  469. package/dist/chunk-ddz8xbpd.js +0 -481
  470. package/dist/chunk-dkhqx4hk.js +0 -84
  471. package/dist/chunk-dsrharmv.js +0 -359
  472. package/dist/chunk-eqmy5d05.js +0 -56
  473. package/dist/chunk-f2crxw2c.js +0 -5400
  474. package/dist/chunk-f8zga40p.js +0 -234
  475. package/dist/chunk-fbgm2ym6.js +0 -990
  476. package/dist/chunk-fcbbsswe.js +0 -119
  477. package/dist/chunk-fda654nt.js +0 -6121
  478. package/dist/chunk-ffmv9ezj.js +0 -104
  479. package/dist/chunk-fmjte7md.js +0 -38
  480. package/dist/chunk-fqtwqxxc.js +0 -293
  481. package/dist/chunk-g8k85nkd.js +0 -802
  482. package/dist/chunk-ge4ak7dj.js +0 -127
  483. package/dist/chunk-gpqemecy.js +0 -126
  484. package/dist/chunk-h19p6s3b.js +0 -131
  485. package/dist/chunk-j0sk1rct.js +0 -998
  486. package/dist/chunk-j1wfpa1a.js +0 -70
  487. package/dist/chunk-j829fx31.js +0 -3458
  488. package/dist/chunk-jqctzrvd.js +0 -722
  489. package/dist/chunk-jx817w05.js +0 -11
  490. package/dist/chunk-ka6sab33.js +0 -174
  491. package/dist/chunk-krjsvmwp.js +0 -101
  492. package/dist/chunk-kvpe50pm.js +0 -311
  493. package/dist/chunk-mez504fj.js +0 -113
  494. package/dist/chunk-mj6wbrae.js +0 -105
  495. package/dist/chunk-n0k8xrey.js +0 -319
  496. package/dist/chunk-n0pg2kpe.js +0 -122
  497. package/dist/chunk-n4qtqkp0.js +0 -295
  498. package/dist/chunk-n9meha2m.js +0 -73
  499. package/dist/chunk-ndk7q5n3.js +0 -169
  500. package/dist/chunk-ng6n9t4h.js +0 -56
  501. package/dist/chunk-p3pz13x2.js +0 -1933
  502. package/dist/chunk-p9ez6zgq.js +0 -2656
  503. package/dist/chunk-ph750kx1.js +0 -550
  504. package/dist/chunk-pxb99zqs.js +0 -117
  505. package/dist/chunk-q1yqc5n3.js +0 -100
  506. package/dist/chunk-q5b91nhh.js +0 -40
  507. package/dist/chunk-qtfqk0jr.js +0 -131
  508. package/dist/chunk-qzfmdh1t.js +0 -388
  509. package/dist/chunk-r3cv0j9n.js +0 -456
  510. package/dist/chunk-rx0pbgym.js +0 -97
  511. package/dist/chunk-s624rd5j.js +0 -531
  512. package/dist/chunk-satndwqj.js +0 -285
  513. package/dist/chunk-ssrxnkd1.js +0 -109
  514. package/dist/chunk-t2pgctqx.js +0 -106
  515. package/dist/chunk-t7sgwf31.js +0 -644
  516. package/dist/chunk-tth904tj.js +0 -53
  517. package/dist/chunk-typpbjhy.js +0 -128
  518. package/dist/chunk-vp6nrhdq.js +0 -102
  519. package/dist/chunk-vtjm53nt.js +0 -432
  520. package/dist/chunk-w412n7tq.js +0 -469
  521. package/dist/chunk-w4153rky.js +0 -1885
  522. package/dist/chunk-wdgv15as.js +0 -212
  523. package/dist/chunk-wgn9kydv.js +0 -58
  524. package/dist/chunk-whknbrk0.js +0 -184
  525. package/dist/chunk-x1k8e1xc.js +0 -56
  526. package/dist/chunk-x45xx6sc.js +0 -105
  527. package/dist/chunk-x4xvqbe5.js +0 -1166
  528. package/dist/chunk-x8b7vft8.js +0 -132
  529. package/dist/chunk-xaycc8qe.js +0 -44
  530. package/dist/chunk-xd4785ks.js +0 -73
  531. package/dist/chunk-xjxgmxhq.js +0 -463
  532. package/dist/chunk-xx2x3tz9.js +0 -166
  533. package/dist/chunk-y2j23eem.js +0 -101
  534. package/dist/chunk-y83j09wv.js +0 -123
  535. package/dist/chunk-yh8460pb.js +0 -119
  536. package/dist/chunk-z6nhchdb.js +0 -60
  537. package/dist/chunk-zbt73sj7.js +0 -192
  538. package/dist/chunk-zmwaatmq.js +0 -118
  539. package/dist/chunk-zvdg9tex.js +0 -135
  540. package/dist/chunk-zwa780cx.js +0 -584
  541. package/dist/{chunk-whvdag1y.js → chunk-3bfs3x0h.js} +9 -9
  542. 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
- };