@rainhole/rain-code 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +172 -0
- package/dist/chunk-06b2745w.js +3583 -0
- package/dist/chunk-06saje2v.js +39 -0
- package/dist/chunk-07069jq1.js +30 -0
- package/dist/chunk-0731m51q.js +8 -0
- package/dist/chunk-0bs2528v.js +192 -0
- package/dist/chunk-0fj1d707.js +313 -0
- package/dist/chunk-0gdkvtx4.js +117 -0
- package/dist/chunk-0jd8rpt4.js +34257 -0
- package/dist/chunk-0paqc2yw.js +15 -0
- package/dist/chunk-0pk0w4j1.js +332 -0
- package/dist/chunk-0rpb2bdp.js +8 -0
- package/dist/chunk-0rvwew67.js +9300 -0
- package/dist/chunk-0sa1g8jf.js +318 -0
- package/dist/chunk-0vkfrmqm.js +690 -0
- package/dist/chunk-0xgxxqhr.js +708 -0
- package/dist/chunk-0xjaqda8.js +1124 -0
- package/dist/chunk-0zep39v0.js +81 -0
- package/dist/chunk-1141xmr4.js +8 -0
- package/dist/chunk-12hn2mhy.js +17 -0
- package/dist/chunk-12rjry89.js +81 -0
- package/dist/chunk-168xb8v1.js +436 -0
- package/dist/chunk-1cwdhk7a.js +969 -0
- package/dist/chunk-1cx0fd76.js +132 -0
- package/dist/chunk-1erfksyp.js +107 -0
- package/dist/chunk-1h1tc4mw.js +126 -0
- package/dist/chunk-1h2famwb.js +49 -0
- package/dist/chunk-1jnbys9f.js +1811 -0
- package/dist/chunk-1k4fp6ft.js +389 -0
- package/dist/chunk-1mjn8xxc.js +22 -0
- package/dist/chunk-1mn6r4y2.js +747 -0
- package/dist/chunk-1p8myfza.js +1568 -0
- package/dist/chunk-1vthytca.js +79 -0
- package/dist/chunk-1y32rx73.js +145 -0
- package/dist/chunk-200781fd.js +64 -0
- package/dist/chunk-205mmm67.js +100 -0
- package/dist/chunk-209eh6ak.js +9381 -0
- package/dist/chunk-21mfpnva.js +85 -0
- package/dist/chunk-238g70xa.js +36 -0
- package/dist/chunk-24k6t9fa.js +151 -0
- package/dist/chunk-29gg6hx0.js +2992 -0
- package/dist/chunk-2a42s11t.js +412 -0
- package/dist/chunk-2ekjxh7d.js +289 -0
- package/dist/chunk-2eykm0j0.js +20 -0
- package/dist/chunk-2fwze72g.js +24 -0
- package/dist/chunk-2gzv8nrw.js +205 -0
- package/dist/chunk-2k995y2x.js +880 -0
- package/dist/chunk-2nayx6q1.js +63 -0
- package/dist/chunk-2pg9pmvc.js +182 -0
- package/dist/chunk-2qp2hc02.js +36 -0
- package/dist/chunk-2rj0dnps.js +436 -0
- package/dist/chunk-2t0xa4dt.js +145 -0
- package/dist/chunk-2ym6tnww.js +216 -0
- package/dist/chunk-30bpz5m2.js +34 -0
- package/dist/chunk-30rst83v.js +168 -0
- package/dist/chunk-36b2q5fg.js +1299 -0
- package/dist/chunk-3c25bcsw.js +17 -0
- package/dist/chunk-3ewzhjyb.js +207 -0
- package/dist/chunk-3h8a89gy.js +46 -0
- package/dist/chunk-3nk79af8.js +8 -0
- package/dist/chunk-3sfr7j85.js +884 -0
- package/dist/chunk-3w6s9m5w.js +16 -0
- package/dist/chunk-3x52v1wb.js +660 -0
- package/dist/chunk-404qm8xt.js +1715 -0
- package/dist/chunk-42fjay4q.js +141 -0
- package/dist/chunk-48649h96.js +8590 -0
- package/dist/chunk-495d85x1.js +8066 -0
- package/dist/chunk-4anj5saq.js +111 -0
- package/dist/chunk-4asynmj4.js +259 -0
- package/dist/chunk-4ck9wve9.js +225 -0
- package/dist/chunk-4cp6193g.js +9076 -0
- package/dist/chunk-4g3v8y12.js +23 -0
- package/dist/chunk-4geyher8.js +244 -0
- package/dist/chunk-4hv90qcz.js +8 -0
- package/dist/chunk-4jhr03e7.js +61 -0
- package/dist/chunk-4jm600zv.js +13 -0
- package/dist/chunk-4nspekjp.js +69 -0
- package/dist/chunk-4ptqcw4p.js +16 -0
- package/dist/chunk-4qj8cqbh.js +173 -0
- package/dist/chunk-4wxsg6a0.js +122 -0
- package/dist/chunk-4zfkzkt6.js +37 -0
- package/dist/chunk-54dckh8a.js +1169 -0
- package/dist/chunk-54y13759.js +650 -0
- package/dist/chunk-54yf6e8d.js +91 -0
- package/dist/chunk-57qz90z8.js +154 -0
- package/dist/chunk-59k0mjnc.js +120 -0
- package/dist/chunk-59p9jye4.js +104 -0
- package/dist/chunk-5c753bd4.js +64 -0
- package/dist/chunk-5cw6zwep.js +106 -0
- package/dist/chunk-5eaf3j24.js +133 -0
- package/dist/chunk-5me7398b.js +81 -0
- package/dist/chunk-5pevjsyw.js +118 -0
- package/dist/chunk-5q3c2rf4.js +107 -0
- package/dist/chunk-5xwtnq4g.js +146 -0
- package/dist/chunk-5z28bqne.js +6748 -0
- package/dist/chunk-613f6fbv.js +63 -0
- package/dist/chunk-641hawvm.js +95 -0
- package/dist/chunk-64c1avct.js +13 -0
- package/dist/chunk-64hks9ax.js +456 -0
- package/dist/chunk-677as3nh.js +15 -0
- package/dist/chunk-6bd8brc4.js +48 -0
- package/dist/chunk-6cs6mmez.js +112 -0
- package/dist/chunk-6dj5t602.js +341 -0
- package/dist/chunk-6e8vht4y.js +780 -0
- package/dist/chunk-6gr3c3w9.js +378 -0
- package/dist/chunk-6hkd32eh.js +83 -0
- package/dist/chunk-6jqxvef0.js +198 -0
- package/dist/chunk-6mh3vfa4.js +115 -0
- package/dist/chunk-6mpw9h55.js +1071 -0
- package/dist/chunk-6p4cyhb3.js +16 -0
- package/dist/chunk-6qvgnepd.js +26 -0
- package/dist/chunk-6r2bhsvt.js +6956 -0
- package/dist/chunk-6tq2v3rk.js +186 -0
- package/dist/chunk-7316m01k.js +125 -0
- package/dist/chunk-73rpbt04.js +1947 -0
- package/dist/chunk-75zk7zr1.js +309 -0
- package/dist/chunk-760252na.js +101 -0
- package/dist/chunk-764ec4ja.js +173 -0
- package/dist/chunk-76vgnv24.js +108 -0
- package/dist/chunk-7739pg2c.js +4261 -0
- package/dist/chunk-7a7hxy3d.js +167 -0
- package/dist/chunk-7aw745vx.js +40175 -0
- package/dist/chunk-7b6bg1r4.js +16128 -0
- package/dist/chunk-7ca4qskp.js +99 -0
- package/dist/chunk-7deph26x.js +311 -0
- package/dist/chunk-7ds8zqar.js +108 -0
- package/dist/chunk-7fqxw3d2.js +479 -0
- package/dist/chunk-7nysf9yd.js +266 -0
- package/dist/chunk-7tascxe2.js +90 -0
- package/dist/chunk-7wm5s02e.js +216 -0
- package/dist/chunk-7xmw2tcz.js +277 -0
- package/dist/chunk-7xyswgjh.js +8 -0
- package/dist/chunk-7zkhadkb.js +220 -0
- package/dist/chunk-8225arm6.js +6374 -0
- package/dist/chunk-83hfzbx3.js +10 -0
- package/dist/chunk-85tag8nv.js +1391 -0
- package/dist/chunk-8bd8q5xw.js +359 -0
- package/dist/chunk-8bwqtasa.js +213 -0
- package/dist/chunk-8g5pe1gr.js +37 -0
- package/dist/chunk-8g747a8x.js +26 -0
- package/dist/chunk-8h6sdj66.js +447 -0
- package/dist/chunk-8mm8b6dd.js +19 -0
- package/dist/chunk-8ndwn6st.js +120 -0
- package/dist/chunk-8pn8tvgg.js +637 -0
- package/dist/chunk-8tnn9kcb.js +131 -0
- package/dist/chunk-8tnsngw2.js +31 -0
- package/dist/chunk-8x5w267y.js +112 -0
- package/dist/chunk-8y12jxg8.js +10 -0
- package/dist/chunk-8ymf4e6z.js +48 -0
- package/dist/chunk-90mt0m1w.js +102 -0
- package/dist/chunk-90wp6wez.js +10510 -0
- package/dist/chunk-91ew1d6f.js +2689 -0
- package/dist/chunk-97jsc1kn.js +231 -0
- package/dist/chunk-993pnm45.js +4521 -0
- package/dist/chunk-9a0rsdre.js +46 -0
- package/dist/chunk-9d7fmqkw.js +41 -0
- package/dist/chunk-9dgaq0g4.js +667 -0
- package/dist/chunk-9f52phb8.js +138 -0
- package/dist/chunk-9fbpqghc.js +105 -0
- package/dist/chunk-9hzxd5q3.js +122 -0
- package/dist/chunk-9kyrssch.js +28 -0
- package/dist/chunk-9q93n4w6.js +308 -0
- package/dist/chunk-9s0xs06y.js +581 -0
- package/dist/chunk-9x5zgy22.js +12 -0
- package/dist/chunk-9zdcb9jy.js +105 -0
- package/dist/chunk-a136cvvz.js +27 -0
- package/dist/chunk-a4psxnr1.js +224 -0
- package/dist/chunk-a4twdmhf.js +45 -0
- package/dist/chunk-a7rhvq9b.js +106 -0
- package/dist/chunk-a8ejc632.js +3094 -0
- package/dist/chunk-a9vdeb6y.js +258 -0
- package/dist/chunk-a9zh40sj.js +48 -0
- package/dist/chunk-aawg48hh.js +4102 -0
- package/dist/chunk-ad2f3890.js +65 -0
- package/dist/chunk-ae7ar1jk.js +105 -0
- package/dist/chunk-ak3hdbe4.js +234 -0
- package/dist/chunk-as4e9g8f.js +298 -0
- package/dist/chunk-ase86y73.js +15 -0
- package/dist/chunk-awb4vc41.js +69 -0
- package/dist/chunk-b4bep0aq.js +5041 -0
- package/dist/chunk-b4wg70y1.js +54 -0
- package/dist/chunk-b81hd3m6.js +32 -0
- package/dist/chunk-b9knmzt0.js +106 -0
- package/dist/chunk-besmz4ym.js +32 -0
- package/dist/chunk-bgpkemkg.js +65 -0
- package/dist/chunk-bj8x29tz.js +54 -0
- package/dist/chunk-bkqsnwrq.js +239 -0
- package/dist/chunk-bnf662he.js +359 -0
- package/dist/chunk-bq00fcsd.js +165 -0
- package/dist/chunk-brz2c4cq.js +275 -0
- package/dist/chunk-bsa118r4.js +502 -0
- package/dist/chunk-bsengrbt.js +2737 -0
- package/dist/chunk-bt64sq5y.js +19 -0
- package/dist/chunk-bxcfz5gy.js +56 -0
- package/dist/chunk-bxs2a71m.js +213 -0
- package/dist/chunk-byv2p9hn.js +397 -0
- package/dist/chunk-c03am3es.js +29 -0
- package/dist/chunk-c2ahb7yg.js +105 -0
- package/dist/chunk-c2qm0t6p.js +111 -0
- package/dist/chunk-c42h9gzx.js +71 -0
- package/dist/chunk-c47xbxqw.js +38 -0
- package/dist/chunk-c5vkve4j.js +68 -0
- package/dist/chunk-c6sjhj89.js +1284 -0
- package/dist/chunk-ca147npg.js +27 -0
- package/dist/chunk-caxx597g.js +71 -0
- package/dist/chunk-cbrt5vsb.js +31 -0
- package/dist/chunk-ce0z23ct.js +443 -0
- package/dist/chunk-cefsp8h1.js +155 -0
- package/dist/chunk-cfv996bs.js +22 -0
- package/dist/chunk-cgfdkzhb.js +12 -0
- package/dist/chunk-chsyvavm.js +3435 -0
- package/dist/chunk-cmsknj6n.js +28228 -0
- package/dist/chunk-cn8bkmvj.js +264 -0
- package/dist/chunk-crmjpsqe.js +68 -0
- package/dist/chunk-cthpw4pj.js +849 -0
- package/dist/chunk-cwy9nj4y.js +134 -0
- package/dist/chunk-cyagce56.js +155 -0
- package/dist/chunk-cynewytp.js +227 -0
- package/dist/chunk-cznf6k4g.js +46 -0
- package/dist/chunk-d0954t9j.js +267 -0
- package/dist/chunk-d1qhftze.js +118 -0
- package/dist/chunk-d4mdda98.js +94 -0
- package/dist/chunk-d4rnqevg.js +41 -0
- package/dist/chunk-d7886r6a.js +13870 -0
- package/dist/chunk-dd1qvamk.js +678 -0
- package/dist/chunk-dg4je8qj.js +183 -0
- package/dist/chunk-dggvswz1.js +104 -0
- package/dist/chunk-dgqrcy74.js +48 -0
- package/dist/chunk-dm3n2qgd.js +24 -0
- package/dist/chunk-dnh7jtpb.js +37 -0
- package/dist/chunk-dsenyfax.js +105 -0
- package/dist/chunk-dtf0a7rr.js +655 -0
- package/dist/chunk-dxdb7bs1.js +60 -0
- package/dist/chunk-e0pth8g7.js +79 -0
- package/dist/chunk-e36y0q82.js +109 -0
- package/dist/chunk-ef55cwrv.js +267 -0
- package/dist/chunk-efh644hv.js +915 -0
- package/dist/chunk-ehtwnxpg.js +1591 -0
- package/dist/chunk-ejahyhd8.js +120 -0
- package/dist/chunk-ejk1bpzz.js +472 -0
- package/dist/chunk-emef71ea.js +202 -0
- package/dist/chunk-en7v028t.js +333 -0
- package/dist/chunk-eqp1rfft.js +17 -0
- package/dist/chunk-ewadzrm8.js +103 -0
- package/dist/chunk-exh7z6tv.js +132 -0
- package/dist/chunk-f0npbgyf.js +340 -0
- package/dist/chunk-f2qkc8ce.js +229 -0
- package/dist/chunk-f49sb3q7.js +40 -0
- package/dist/chunk-f5ma3nh5.js +3436 -0
- package/dist/chunk-fbv4apne.js +51 -0
- package/dist/chunk-fday7sfg.js +269 -0
- package/dist/chunk-feyzykye.js +10 -0
- package/dist/chunk-fgqwr70t.js +241 -0
- package/dist/chunk-fhy7zs1w.js +943 -0
- package/dist/chunk-fmw3f68k.js +432 -0
- package/dist/chunk-fmwqvpqm.js +506 -0
- package/dist/chunk-fn1apgre.js +66 -0
- package/dist/chunk-fpy4nam9.js +21933 -0
- package/dist/chunk-fqy0erkw.js +908 -0
- package/dist/chunk-ftqwza3a.js +43 -0
- package/dist/chunk-fyc5fepv.js +10 -0
- package/dist/chunk-fz0ch109.js +329 -0
- package/dist/chunk-fzhn8z8j.js +253 -0
- package/dist/chunk-g12brv6y.js +321 -0
- package/dist/chunk-g338npwr.js +1061 -0
- package/dist/chunk-g5tpks28.js +795 -0
- package/dist/chunk-g63tgj4f.js +58 -0
- package/dist/chunk-g827r0mk.js +266 -0
- package/dist/chunk-g8wzsxgc.js +2534 -0
- package/dist/chunk-gey7mwcw.js +36 -0
- package/dist/chunk-gghb9pks.js +120 -0
- package/dist/chunk-grdpaf1p.js +606 -0
- package/dist/chunk-gx8016vp.js +125 -0
- package/dist/chunk-h0qngp9w.js +157 -0
- package/dist/chunk-h0rbjg6x.js +55 -0
- package/dist/chunk-h1mr3371.js +121 -0
- package/dist/chunk-h3xwdgpd.js +68 -0
- package/dist/chunk-h4b85amj.js +2331 -0
- package/dist/chunk-h6d137aa.js +20 -0
- package/dist/chunk-h9n7z00d.js +95 -0
- package/dist/chunk-hakdhagh.js +16606 -0
- package/dist/chunk-hd8531ec.js +685 -0
- package/dist/chunk-heq3rn8t.js +33068 -0
- package/dist/chunk-hfvxc9fd.js +542 -0
- package/dist/chunk-hgpd0qmm.js +371 -0
- package/dist/chunk-hh7cmy4k.js +20 -0
- package/dist/chunk-hhjs87wh.js +1407 -0
- package/dist/chunk-hjtvdvgj.js +208 -0
- package/dist/chunk-hk9xz7gk.js +118 -0
- package/dist/chunk-hknbjky3.js +160798 -0
- package/dist/chunk-htsbqyf9.js +338 -0
- package/dist/chunk-htx7jmxk.js +78 -0
- package/dist/chunk-hzhe8ygc.js +547 -0
- package/dist/chunk-j2k4p94p.js +55 -0
- package/dist/chunk-j3a4p81y.js +184 -0
- package/dist/chunk-j46rb9m9.js +544 -0
- package/dist/chunk-j5bth84e.js +97 -0
- package/dist/chunk-j64ga6ta.js +8035 -0
- package/dist/chunk-j6jh72hw.js +140 -0
- package/dist/chunk-j9gxwbe3.js +349 -0
- package/dist/chunk-jaaxk89e.js +113 -0
- package/dist/chunk-jd32zbps.js +15 -0
- package/dist/chunk-jdgeec04.js +4249 -0
- package/dist/chunk-jk826edv.js +174 -0
- package/dist/chunk-jnhkref0.js +30 -0
- package/dist/chunk-jsx72hep.js +208 -0
- package/dist/chunk-jx817w05.js +11 -0
- package/dist/chunk-jzmz18nn.js +65 -0
- package/dist/chunk-k0p9w03v.js +4957 -0
- package/dist/chunk-k3s4yk22.js +477 -0
- package/dist/chunk-kfd89dsd.js +21 -0
- package/dist/chunk-kgfz4522.js +126 -0
- package/dist/chunk-kn6zg6bd.js +524 -0
- package/dist/chunk-kp9vkzj6.js +120 -0
- package/dist/chunk-kraf793v.js +118 -0
- package/dist/chunk-kw0r30h3.js +208 -0
- package/dist/chunk-kwekc97v.js +18 -0
- package/dist/chunk-m2bcpk8j.js +30 -0
- package/dist/chunk-m2kp5f7p.js +4389 -0
- package/dist/chunk-m74w3187.js +164 -0
- package/dist/chunk-m88q4jmb.js +61 -0
- package/dist/chunk-man6wb4n.js +1456 -0
- package/dist/chunk-mdk3xgya.js +42 -0
- package/dist/chunk-mf4g439x.js +82 -0
- package/dist/chunk-mg8g0xqs.js +71 -0
- package/dist/chunk-mkwzrqvf.js +38 -0
- package/dist/chunk-mn61mk4v.js +351 -0
- package/dist/chunk-ms09sxcj.js +908 -0
- package/dist/chunk-mtn1anwe.js +2351 -0
- package/dist/chunk-mv0zm0qj.js +65 -0
- package/dist/chunk-mx28h61f.js +1147 -0
- package/dist/chunk-mxbf8ajn.js +1067 -0
- package/dist/chunk-n0qaeaa5.js +256 -0
- package/dist/chunk-n34z5cw8.js +74 -0
- package/dist/chunk-n55ehz77.js +120 -0
- package/dist/chunk-n7ttdtk0.js +641 -0
- package/dist/chunk-n9ktjngj.js +336 -0
- package/dist/chunk-nb2ntesh.js +149 -0
- package/dist/chunk-netzwgv1.js +154 -0
- package/dist/chunk-nh3cd07f.js +14358 -0
- package/dist/chunk-nka1g8f4.js +773 -0
- package/dist/chunk-nm97cw83.js +458 -0
- package/dist/chunk-nq0fxyxh.js +752 -0
- package/dist/chunk-nt837qt9.js +21 -0
- package/dist/chunk-nx87c0vw.js +250 -0
- package/dist/chunk-nxw6y6xm.js +862 -0
- package/dist/chunk-nzt717xg.js +32 -0
- package/dist/chunk-p2816w9z.js +1486 -0
- package/dist/chunk-p2d5nh3g.js +342 -0
- package/dist/chunk-p9cdykwf.js +72 -0
- package/dist/chunk-paxw1ryd.js +227 -0
- package/dist/chunk-ph5g4d1j.js +109 -0
- package/dist/chunk-pp42p8y3.js +574 -0
- package/dist/chunk-ppdn71n4.js +400 -0
- package/dist/chunk-ppwjyveh.js +8 -0
- package/dist/chunk-ps49ymvj.js +43 -0
- package/dist/chunk-pshjyzq4.js +17656 -0
- package/dist/chunk-pw8nf9rt.js +126 -0
- package/dist/chunk-pwwa7s62.js +11 -0
- package/dist/chunk-py3zxq5j.js +129 -0
- package/dist/chunk-pyz1qswz.js +300 -0
- package/dist/chunk-q50q8mc5.js +157 -0
- package/dist/chunk-q7tpyeb3.js +39 -0
- package/dist/chunk-q82r31er.js +151 -0
- package/dist/chunk-qajrkk97.js +298 -0
- package/dist/chunk-qcpxnyeh.js +110 -0
- package/dist/chunk-qeabchwr.js +132 -0
- package/dist/chunk-qm7nbd10.js +755 -0
- package/dist/chunk-qm8j7kxr.js +280 -0
- package/dist/chunk-qmwgg5zy.js +136 -0
- package/dist/chunk-qnfx3qtx.js +617 -0
- package/dist/chunk-qp2qdcda.js +100 -0
- package/dist/chunk-qphaajd7.js +305 -0
- package/dist/chunk-qt21xxgm.js +419 -0
- package/dist/chunk-qy2z2p0b.js +122 -0
- package/dist/chunk-qyz8q0dj.js +689 -0
- package/dist/chunk-qz2x630m.js +49145 -0
- package/dist/chunk-qzq5n1yn.js +76 -0
- package/dist/chunk-r0ya57xw.js +170 -0
- package/dist/chunk-r7j395t6.js +122 -0
- package/dist/chunk-r7trcrs7.js +62 -0
- package/dist/chunk-re4yh70t.js +1095 -0
- package/dist/chunk-rhte1r8g.js +272 -0
- package/dist/chunk-rhw4ayb1.js +6851 -0
- package/dist/chunk-rn0v1hk8.js +34 -0
- package/dist/chunk-rphakhme.js +281 -0
- package/dist/chunk-rrtzz2pv.js +32 -0
- package/dist/chunk-rtnjk8ge.js +726 -0
- package/dist/chunk-rwhswkma.js +87 -0
- package/dist/chunk-rxd4kn2g.js +308 -0
- package/dist/chunk-s083x8ry.js +2840 -0
- package/dist/chunk-s16sn02n.js +365 -0
- package/dist/chunk-s1s8qfdh.js +182 -0
- package/dist/chunk-s2bwz69v.js +473 -0
- package/dist/chunk-s3pzvdss.js +50 -0
- package/dist/chunk-s9y6t0mt.js +291 -0
- package/dist/chunk-sd36yzx8.js +954 -0
- package/dist/chunk-se8xzw8h.js +87 -0
- package/dist/chunk-sg66v252.js +1648 -0
- package/dist/chunk-sg7gf3hj.js +1585 -0
- package/dist/chunk-spx24x6j.js +98 -0
- package/dist/chunk-sybxpy18.js +73 -0
- package/dist/chunk-szj5wvdy.js +28 -0
- package/dist/chunk-t0gb304x.js +182 -0
- package/dist/chunk-t3fr4skc.js +165 -0
- package/dist/chunk-t58wfamm.js +5368 -0
- package/dist/chunk-t6s2kkm3.js +104 -0
- package/dist/chunk-t8hv0x81.js +116 -0
- package/dist/chunk-tezak8rx.js +6157 -0
- package/dist/chunk-th5y3hj5.js +189 -0
- package/dist/chunk-tj0d3870.js +180 -0
- package/dist/chunk-tjgsawpx.js +40 -0
- package/dist/chunk-ts2p6bv1.js +224 -0
- package/dist/chunk-ttk5dzz8.js +25 -0
- package/dist/chunk-tv9pcdnz.js +51 -0
- package/dist/chunk-ty99rgvw.js +122 -0
- package/dist/chunk-tzgp8av2.js +61 -0
- package/dist/chunk-v1kzp02e.js +785 -0
- package/dist/chunk-v2c9dq7t.js +275 -0
- package/dist/chunk-v3aq3heg.js +620 -0
- package/dist/chunk-v78fj8by.js +145 -0
- package/dist/chunk-v9smspw2.js +4301 -0
- package/dist/chunk-var1et7e.js +66 -0
- package/dist/chunk-vchrkvet.js +120 -0
- package/dist/chunk-vest0y6x.js +3830 -0
- package/dist/chunk-vf5sd1nq.js +12 -0
- package/dist/chunk-vf612n57.js +472 -0
- package/dist/chunk-vgpy9md6.js +339 -0
- package/dist/chunk-vkzt82ry.js +644 -0
- package/dist/chunk-vsh80y0c.js +100 -0
- package/dist/chunk-vxkdxhyk.js +103 -0
- package/dist/chunk-vxt6ywm9.js +485 -0
- package/dist/chunk-vyjeh50y.js +2149 -0
- package/dist/chunk-vytdzvqs.js +1181 -0
- package/dist/chunk-w0qks2ja.js +1030 -0
- package/dist/chunk-wfz0qffj.js +3939 -0
- package/dist/chunk-wp1568nt.js +828 -0
- package/dist/chunk-wpckhx7b.js +66 -0
- package/dist/chunk-wpvkvwvc.js +41 -0
- package/dist/chunk-ws5d6qs4.js +655 -0
- package/dist/chunk-wsnxrrb5.js +986 -0
- package/dist/chunk-wyavftcj.js +103 -0
- package/dist/chunk-wybh0bvv.js +121 -0
- package/dist/chunk-wzpdet3m.js +843 -0
- package/dist/chunk-x2dp18yj.js +74 -0
- package/dist/chunk-x6r4v44b.js +8 -0
- package/dist/chunk-x7r5k0hf.js +423 -0
- package/dist/chunk-xahk20z8.js +877 -0
- package/dist/chunk-xajwdaxm.js +295 -0
- package/dist/chunk-xkt36p6r.js +61 -0
- package/dist/chunk-xnav6j8h.js +490 -0
- package/dist/chunk-xrj294jg.js +440 -0
- package/dist/chunk-xsq9ae7x.js +90 -0
- package/dist/chunk-xt9z9t7b.js +40 -0
- package/dist/chunk-xv3era3s.js +8 -0
- package/dist/chunk-y1784krc.js +19 -0
- package/dist/chunk-y289fz8y.js +116 -0
- package/dist/chunk-y3r7v9pq.js +336 -0
- package/dist/chunk-y98z50mm.js +158 -0
- package/dist/chunk-yhce3x0q.js +64 -0
- package/dist/chunk-yhhf6n9p.js +338 -0
- package/dist/chunk-ykr34msh.js +411 -0
- package/dist/chunk-yks9ggzn.js +103 -0
- package/dist/chunk-ym5r3jnk.js +2007 -0
- package/dist/chunk-ypa349qq.js +148 -0
- package/dist/chunk-yzx3mhfd.js +110 -0
- package/dist/chunk-z1bs6d7k.js +24 -0
- package/dist/chunk-z2dp53wn.js +17 -0
- package/dist/chunk-z3k0k30d.js +882 -0
- package/dist/chunk-z42cqdtf.js +107 -0
- package/dist/chunk-z7asrz6j.js +259 -0
- package/dist/chunk-za09fhhh.js +716 -0
- package/dist/chunk-zae0t3p4.js +252 -0
- package/dist/chunk-zbsw794g.js +259 -0
- package/dist/chunk-ze6zvkg6.js +22820 -0
- package/dist/chunk-zejm280k.js +39 -0
- package/dist/chunk-zk2wsm7d.js +15 -0
- package/dist/chunk-znf2b75k.js +113 -0
- package/dist/chunk-zqpnvsdz.js +24 -0
- package/dist/chunk-zs2gdkj5.js +433 -0
- package/dist/chunk-zseb1639.js +37 -0
- package/dist/chunk-zsgha506.js +63 -0
- package/dist/chunk-zvsfgmq8.js +146 -0
- package/dist/chunk-zw5xd7m9.js +160 -0
- package/dist/chunk-zzm33q8x.js +8 -0
- package/dist/cli.js +97 -0
- package/dist/download-ripgrep.js +24821 -0
- package/dist/vendor/audio-capture/arm64-darwin/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/arm64-linux/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/arm64-win32/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-darwin/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-linux/audio-capture.node +0 -0
- package/dist/vendor/audio-capture/x64-win32/audio-capture.node +0 -0
- package/package.json +178 -0
- package/scripts/download-ripgrep.ts +335 -0
- package/scripts/postinstall.cjs +319 -0
|
@@ -0,0 +1,1181 @@
|
|
|
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-48649h96.js";
|
|
14
|
+
import"./chunk-cthpw4pj.js";
|
|
15
|
+
import {
|
|
16
|
+
init_MCPConnectionManager,
|
|
17
|
+
useMcpReconnect,
|
|
18
|
+
useMcpToggleEnabled
|
|
19
|
+
} from "./chunk-v3aq3heg.js";
|
|
20
|
+
import"./chunk-cefsp8h1.js";
|
|
21
|
+
import"./chunk-bsa118r4.js";
|
|
22
|
+
import"./chunk-vkzt82ry.js";
|
|
23
|
+
import"./chunk-jsx72hep.js";
|
|
24
|
+
import {
|
|
25
|
+
McpParsingWarnings,
|
|
26
|
+
init_McpParsingWarnings
|
|
27
|
+
} from "./chunk-dg4je8qj.js";
|
|
28
|
+
import"./chunk-21mfpnva.js";
|
|
29
|
+
import"./chunk-9q93n4w6.js";
|
|
30
|
+
import"./chunk-mv0zm0qj.js";
|
|
31
|
+
import"./chunk-z1bs6d7k.js";
|
|
32
|
+
import {
|
|
33
|
+
AuthenticationCancelledError,
|
|
34
|
+
ClaudeAuthProvider,
|
|
35
|
+
ConfigurableShortcutHint,
|
|
36
|
+
Select,
|
|
37
|
+
Spinner,
|
|
38
|
+
describeMcpConfigFilePath,
|
|
39
|
+
extractAgentMcpServers,
|
|
40
|
+
filterToolsByServer,
|
|
41
|
+
init_AppState,
|
|
42
|
+
init_ConfigurableShortcutHint,
|
|
43
|
+
init_CustomSelect,
|
|
44
|
+
init_Spinner,
|
|
45
|
+
init_auth,
|
|
46
|
+
init_utils,
|
|
47
|
+
performMCPOAuthFlow,
|
|
48
|
+
useAppState,
|
|
49
|
+
useAppStateStore
|
|
50
|
+
} from "./chunk-hknbjky3.js";
|
|
51
|
+
import {
|
|
52
|
+
getSessionIngressAuthToken,
|
|
53
|
+
init_sessionIngressAuth
|
|
54
|
+
} from "./chunk-a4psxnr1.js";
|
|
55
|
+
import"./chunk-613f6fbv.js";
|
|
56
|
+
import"./chunk-zejm280k.js";
|
|
57
|
+
import"./chunk-57qz90z8.js";
|
|
58
|
+
import"./chunk-4nspekjp.js";
|
|
59
|
+
import"./chunk-heq3rn8t.js";
|
|
60
|
+
import"./chunk-var1et7e.js";
|
|
61
|
+
import"./chunk-e0pth8g7.js";
|
|
62
|
+
import"./chunk-ws5d6qs4.js";
|
|
63
|
+
import"./chunk-bxcfz5gy.js";
|
|
64
|
+
import"./chunk-wp1568nt.js";
|
|
65
|
+
import"./chunk-2gzv8nrw.js";
|
|
66
|
+
import"./chunk-ehtwnxpg.js";
|
|
67
|
+
import"./chunk-cgfdkzhb.js";
|
|
68
|
+
import"./chunk-8h6sdj66.js";
|
|
69
|
+
import"./chunk-75zk7zr1.js";
|
|
70
|
+
import"./chunk-j5bth84e.js";
|
|
71
|
+
import"./chunk-qm7nbd10.js";
|
|
72
|
+
import"./chunk-5pevjsyw.js";
|
|
73
|
+
import {
|
|
74
|
+
init_useKeybinding,
|
|
75
|
+
useKeybinding,
|
|
76
|
+
useKeybindings
|
|
77
|
+
} from "./chunk-xnav6j8h.js";
|
|
78
|
+
import"./chunk-ps49ymvj.js";
|
|
79
|
+
import"./chunk-zk2wsm7d.js";
|
|
80
|
+
import"./chunk-2t0xa4dt.js";
|
|
81
|
+
import"./chunk-bgpkemkg.js";
|
|
82
|
+
import"./chunk-rrtzz2pv.js";
|
|
83
|
+
import"./chunk-zsgha506.js";
|
|
84
|
+
import"./chunk-4jm600zv.js";
|
|
85
|
+
import"./chunk-xkt36p6r.js";
|
|
86
|
+
import"./chunk-2ekjxh7d.js";
|
|
87
|
+
import"./chunk-85tag8nv.js";
|
|
88
|
+
import"./chunk-mx28h61f.js";
|
|
89
|
+
import"./chunk-kraf793v.js";
|
|
90
|
+
import"./chunk-bj8x29tz.js";
|
|
91
|
+
import"./chunk-zae0t3p4.js";
|
|
92
|
+
import"./chunk-t58wfamm.js";
|
|
93
|
+
import"./chunk-chsyvavm.js";
|
|
94
|
+
import"./chunk-6mpw9h55.js";
|
|
95
|
+
import {
|
|
96
|
+
capitalize,
|
|
97
|
+
init_stringUtils,
|
|
98
|
+
plural
|
|
99
|
+
} from "./chunk-7b6bg1r4.js";
|
|
100
|
+
import"./chunk-sg66v252.js";
|
|
101
|
+
import"./chunk-8bwqtasa.js";
|
|
102
|
+
import"./chunk-j9gxwbe3.js";
|
|
103
|
+
import"./chunk-1cwdhk7a.js";
|
|
104
|
+
import"./chunk-rtnjk8ge.js";
|
|
105
|
+
import"./chunk-64c1avct.js";
|
|
106
|
+
import"./chunk-8g5pe1gr.js";
|
|
107
|
+
import"./chunk-gx8016vp.js";
|
|
108
|
+
import"./chunk-4cp6193g.js";
|
|
109
|
+
import"./chunk-8g747a8x.js";
|
|
110
|
+
import"./chunk-d7886r6a.js";
|
|
111
|
+
import"./chunk-f5ma3nh5.js";
|
|
112
|
+
import"./chunk-qz2x630m.js";
|
|
113
|
+
import"./chunk-r7j395t6.js";
|
|
114
|
+
import"./chunk-tv9pcdnz.js";
|
|
115
|
+
import"./chunk-3c25bcsw.js";
|
|
116
|
+
import"./chunk-n9ktjngj.js";
|
|
117
|
+
import"./chunk-q82r31er.js";
|
|
118
|
+
import"./chunk-p2816w9z.js";
|
|
119
|
+
import"./chunk-v9smspw2.js";
|
|
120
|
+
import"./chunk-v1kzp02e.js";
|
|
121
|
+
import"./chunk-64hks9ax.js";
|
|
122
|
+
import"./chunk-crmjpsqe.js";
|
|
123
|
+
import {
|
|
124
|
+
Byline,
|
|
125
|
+
Dialog,
|
|
126
|
+
KeyboardShortcutHint,
|
|
127
|
+
Link,
|
|
128
|
+
ThemedBox_default,
|
|
129
|
+
ThemedText,
|
|
130
|
+
color,
|
|
131
|
+
init_src,
|
|
132
|
+
useTheme
|
|
133
|
+
} from "./chunk-cmsknj6n.js";
|
|
134
|
+
import {
|
|
135
|
+
require_jsx_dev_runtime,
|
|
136
|
+
require_react
|
|
137
|
+
} from "./chunk-g338npwr.js";
|
|
138
|
+
import"./chunk-h0rbjg6x.js";
|
|
139
|
+
import"./chunk-0vkfrmqm.js";
|
|
140
|
+
import"./chunk-0xjaqda8.js";
|
|
141
|
+
import"./chunk-h1mr3371.js";
|
|
142
|
+
import"./chunk-36b2q5fg.js";
|
|
143
|
+
import"./chunk-a7rhvq9b.js";
|
|
144
|
+
import"./chunk-qnfx3qtx.js";
|
|
145
|
+
import"./chunk-m74w3187.js";
|
|
146
|
+
import"./chunk-b81hd3m6.js";
|
|
147
|
+
import"./chunk-y3r7v9pq.js";
|
|
148
|
+
import"./chunk-8tnsngw2.js";
|
|
149
|
+
import"./chunk-awb4vc41.js";
|
|
150
|
+
import"./chunk-cbrt5vsb.js";
|
|
151
|
+
import"./chunk-5z28bqne.js";
|
|
152
|
+
import {
|
|
153
|
+
figures_default,
|
|
154
|
+
init_figures
|
|
155
|
+
} from "./chunk-qajrkk97.js";
|
|
156
|
+
import {
|
|
157
|
+
init_debug,
|
|
158
|
+
isDebugMode
|
|
159
|
+
} from "./chunk-404qm8xt.js";
|
|
160
|
+
import"./chunk-fbv4apne.js";
|
|
161
|
+
import"./chunk-jaaxk89e.js";
|
|
162
|
+
import"./chunk-h4b85amj.js";
|
|
163
|
+
import"./chunk-07069jq1.js";
|
|
164
|
+
import"./chunk-vf612n57.js";
|
|
165
|
+
import"./chunk-d4mdda98.js";
|
|
166
|
+
import"./chunk-7wm5s02e.js";
|
|
167
|
+
import"./chunk-4g3v8y12.js";
|
|
168
|
+
import"./chunk-7739pg2c.js";
|
|
169
|
+
import"./chunk-nh3cd07f.js";
|
|
170
|
+
import"./chunk-8pn8tvgg.js";
|
|
171
|
+
import"./chunk-netzwgv1.js";
|
|
172
|
+
import {
|
|
173
|
+
__esm,
|
|
174
|
+
__toESM
|
|
175
|
+
} from "./chunk-qp2qdcda.js";
|
|
176
|
+
|
|
177
|
+
// src/components/mcp/MCPAgentServerMenu.tsx
|
|
178
|
+
function MCPAgentServerMenu({
|
|
179
|
+
agentServer,
|
|
180
|
+
onCancel,
|
|
181
|
+
onComplete
|
|
182
|
+
}) {
|
|
183
|
+
const [theme] = useTheme();
|
|
184
|
+
const [isAuthenticating, setIsAuthenticating] = import_react.useState(false);
|
|
185
|
+
const [error, setError] = import_react.useState(null);
|
|
186
|
+
const [authorizationUrl, setAuthorizationUrl] = import_react.useState(null);
|
|
187
|
+
const authAbortControllerRef = import_react.useRef(null);
|
|
188
|
+
import_react.useEffect(() => () => authAbortControllerRef.current?.abort(), []);
|
|
189
|
+
const handleEscCancel = import_react.useCallback(() => {
|
|
190
|
+
if (isAuthenticating) {
|
|
191
|
+
authAbortControllerRef.current?.abort();
|
|
192
|
+
authAbortControllerRef.current = null;
|
|
193
|
+
setIsAuthenticating(false);
|
|
194
|
+
setAuthorizationUrl(null);
|
|
195
|
+
}
|
|
196
|
+
}, [isAuthenticating]);
|
|
197
|
+
useKeybinding("confirm:no", handleEscCancel, {
|
|
198
|
+
context: "Confirmation",
|
|
199
|
+
isActive: isAuthenticating
|
|
200
|
+
});
|
|
201
|
+
const handleAuthenticate = import_react.useCallback(async () => {
|
|
202
|
+
if (!agentServer.needsAuth || !agentServer.url) {
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
setIsAuthenticating(true);
|
|
206
|
+
setError(null);
|
|
207
|
+
const controller = new AbortController;
|
|
208
|
+
authAbortControllerRef.current = controller;
|
|
209
|
+
try {
|
|
210
|
+
const tempConfig = {
|
|
211
|
+
type: agentServer.transport,
|
|
212
|
+
url: agentServer.url
|
|
213
|
+
};
|
|
214
|
+
await performMCPOAuthFlow(agentServer.name, tempConfig, setAuthorizationUrl, controller.signal);
|
|
215
|
+
onComplete?.(`Authentication successful for ${agentServer.name}. The server will connect when the agent runs.`);
|
|
216
|
+
} catch (err) {
|
|
217
|
+
if (err instanceof Error && !(err instanceof AuthenticationCancelledError)) {
|
|
218
|
+
setError(err.message);
|
|
219
|
+
}
|
|
220
|
+
} finally {
|
|
221
|
+
setIsAuthenticating(false);
|
|
222
|
+
authAbortControllerRef.current = null;
|
|
223
|
+
}
|
|
224
|
+
}, [agentServer, onComplete]);
|
|
225
|
+
const capitalizedServerName = capitalize(String(agentServer.name));
|
|
226
|
+
if (isAuthenticating) {
|
|
227
|
+
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
228
|
+
flexDirection: "column",
|
|
229
|
+
gap: 1,
|
|
230
|
+
padding: 1,
|
|
231
|
+
children: [
|
|
232
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
233
|
+
color: "claude",
|
|
234
|
+
children: [
|
|
235
|
+
"Authenticating with ",
|
|
236
|
+
agentServer.name,
|
|
237
|
+
"\u2026"
|
|
238
|
+
]
|
|
239
|
+
}, undefined, true, undefined, this),
|
|
240
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
241
|
+
children: [
|
|
242
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Spinner, {}, undefined, false, undefined, this),
|
|
243
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
244
|
+
children: " A browser window will open for authentication"
|
|
245
|
+
}, undefined, false, undefined, this)
|
|
246
|
+
]
|
|
247
|
+
}, undefined, true, undefined, this),
|
|
248
|
+
authorizationUrl && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
249
|
+
flexDirection: "column",
|
|
250
|
+
children: [
|
|
251
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
252
|
+
dimColor: true,
|
|
253
|
+
children: "If your browser doesn't open automatically, copy this URL manually:"
|
|
254
|
+
}, undefined, false, undefined, this),
|
|
255
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Link, {
|
|
256
|
+
url: authorizationUrl
|
|
257
|
+
}, undefined, false, undefined, this)
|
|
258
|
+
]
|
|
259
|
+
}, undefined, true, undefined, this),
|
|
260
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
261
|
+
marginLeft: 3,
|
|
262
|
+
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
263
|
+
dimColor: true,
|
|
264
|
+
children: [
|
|
265
|
+
"Return here after authenticating in your browser.",
|
|
266
|
+
" ",
|
|
267
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ConfigurableShortcutHint, {
|
|
268
|
+
action: "confirm:no",
|
|
269
|
+
context: "Confirmation",
|
|
270
|
+
fallback: "Esc",
|
|
271
|
+
description: "go back"
|
|
272
|
+
}, undefined, false, undefined, this)
|
|
273
|
+
]
|
|
274
|
+
}, undefined, true, undefined, this)
|
|
275
|
+
}, undefined, false, undefined, this)
|
|
276
|
+
]
|
|
277
|
+
}, undefined, true, undefined, this);
|
|
278
|
+
}
|
|
279
|
+
const menuOptions = [];
|
|
280
|
+
if (agentServer.needsAuth) {
|
|
281
|
+
menuOptions.push({
|
|
282
|
+
label: agentServer.isAuthenticated ? "Re-authenticate" : "Authenticate",
|
|
283
|
+
value: "auth"
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
menuOptions.push({
|
|
287
|
+
label: "Back",
|
|
288
|
+
value: "back"
|
|
289
|
+
});
|
|
290
|
+
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Dialog, {
|
|
291
|
+
title: `${capitalizedServerName} MCP Server`,
|
|
292
|
+
subtitle: "agent-only",
|
|
293
|
+
onCancel,
|
|
294
|
+
inputGuide: (exitState) => exitState.pending ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
295
|
+
children: [
|
|
296
|
+
"Press ",
|
|
297
|
+
exitState.keyName,
|
|
298
|
+
" again to exit"
|
|
299
|
+
]
|
|
300
|
+
}, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Byline, {
|
|
301
|
+
children: [
|
|
302
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(KeyboardShortcutHint, {
|
|
303
|
+
shortcut: "\u2191\u2193",
|
|
304
|
+
action: "navigate"
|
|
305
|
+
}, undefined, false, undefined, this),
|
|
306
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(KeyboardShortcutHint, {
|
|
307
|
+
shortcut: "Enter",
|
|
308
|
+
action: "confirm"
|
|
309
|
+
}, undefined, false, undefined, this),
|
|
310
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ConfigurableShortcutHint, {
|
|
311
|
+
action: "confirm:no",
|
|
312
|
+
context: "Confirmation",
|
|
313
|
+
fallback: "Esc",
|
|
314
|
+
description: "go back"
|
|
315
|
+
}, undefined, false, undefined, this)
|
|
316
|
+
]
|
|
317
|
+
}, undefined, true, undefined, this),
|
|
318
|
+
children: [
|
|
319
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
320
|
+
flexDirection: "column",
|
|
321
|
+
gap: 0,
|
|
322
|
+
children: [
|
|
323
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
324
|
+
children: [
|
|
325
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
326
|
+
bold: true,
|
|
327
|
+
children: "Type: "
|
|
328
|
+
}, undefined, false, undefined, this),
|
|
329
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
330
|
+
dimColor: true,
|
|
331
|
+
children: agentServer.transport
|
|
332
|
+
}, undefined, false, undefined, this)
|
|
333
|
+
]
|
|
334
|
+
}, undefined, true, undefined, this),
|
|
335
|
+
agentServer.url && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
336
|
+
children: [
|
|
337
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
338
|
+
bold: true,
|
|
339
|
+
children: "URL: "
|
|
340
|
+
}, undefined, false, undefined, this),
|
|
341
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
342
|
+
dimColor: true,
|
|
343
|
+
children: agentServer.url
|
|
344
|
+
}, undefined, false, undefined, this)
|
|
345
|
+
]
|
|
346
|
+
}, undefined, true, undefined, this),
|
|
347
|
+
agentServer.command && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
348
|
+
children: [
|
|
349
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
350
|
+
bold: true,
|
|
351
|
+
children: "Command: "
|
|
352
|
+
}, undefined, false, undefined, this),
|
|
353
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
354
|
+
dimColor: true,
|
|
355
|
+
children: agentServer.command
|
|
356
|
+
}, undefined, false, undefined, this)
|
|
357
|
+
]
|
|
358
|
+
}, undefined, true, undefined, this),
|
|
359
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
360
|
+
children: [
|
|
361
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
362
|
+
bold: true,
|
|
363
|
+
children: "Used by: "
|
|
364
|
+
}, undefined, false, undefined, this),
|
|
365
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
366
|
+
dimColor: true,
|
|
367
|
+
children: agentServer.sourceAgents.join(", ")
|
|
368
|
+
}, undefined, false, undefined, this)
|
|
369
|
+
]
|
|
370
|
+
}, undefined, true, undefined, this),
|
|
371
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
372
|
+
marginTop: 1,
|
|
373
|
+
children: [
|
|
374
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
375
|
+
bold: true,
|
|
376
|
+
children: "Status: "
|
|
377
|
+
}, undefined, false, undefined, this),
|
|
378
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
379
|
+
children: [
|
|
380
|
+
color("inactive", theme)(figures_default.radioOff),
|
|
381
|
+
" not connected (agent-only)"
|
|
382
|
+
]
|
|
383
|
+
}, undefined, true, undefined, this)
|
|
384
|
+
]
|
|
385
|
+
}, undefined, true, undefined, this),
|
|
386
|
+
agentServer.needsAuth && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
387
|
+
children: [
|
|
388
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
389
|
+
bold: true,
|
|
390
|
+
children: "Auth: "
|
|
391
|
+
}, undefined, false, undefined, this),
|
|
392
|
+
agentServer.isAuthenticated ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
393
|
+
children: [
|
|
394
|
+
color("success", theme)(figures_default.tick),
|
|
395
|
+
" authenticated"
|
|
396
|
+
]
|
|
397
|
+
}, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
398
|
+
children: [
|
|
399
|
+
color("warning", theme)(figures_default.triangleUpOutline),
|
|
400
|
+
" may need authentication"
|
|
401
|
+
]
|
|
402
|
+
}, undefined, true, undefined, this)
|
|
403
|
+
]
|
|
404
|
+
}, undefined, true, undefined, this)
|
|
405
|
+
]
|
|
406
|
+
}, undefined, true, undefined, this),
|
|
407
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
408
|
+
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
409
|
+
dimColor: true,
|
|
410
|
+
children: "This server connects only when running the agent."
|
|
411
|
+
}, undefined, false, undefined, this)
|
|
412
|
+
}, undefined, false, undefined, this),
|
|
413
|
+
error && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
414
|
+
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
415
|
+
color: "error",
|
|
416
|
+
children: [
|
|
417
|
+
"Error: ",
|
|
418
|
+
error
|
|
419
|
+
]
|
|
420
|
+
}, undefined, true, undefined, this)
|
|
421
|
+
}, undefined, false, undefined, this),
|
|
422
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
423
|
+
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Select, {
|
|
424
|
+
options: menuOptions,
|
|
425
|
+
onChange: async (value) => {
|
|
426
|
+
switch (value) {
|
|
427
|
+
case "auth":
|
|
428
|
+
await handleAuthenticate();
|
|
429
|
+
break;
|
|
430
|
+
case "back":
|
|
431
|
+
onCancel();
|
|
432
|
+
break;
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
onCancel
|
|
436
|
+
}, undefined, false, undefined, this)
|
|
437
|
+
}, undefined, false, undefined, this)
|
|
438
|
+
]
|
|
439
|
+
}, undefined, true, undefined, this);
|
|
440
|
+
}
|
|
441
|
+
var import_react, jsx_dev_runtime;
|
|
442
|
+
var init_MCPAgentServerMenu = __esm(() => {
|
|
443
|
+
init_figures();
|
|
444
|
+
init_src();
|
|
445
|
+
init_useKeybinding();
|
|
446
|
+
init_auth();
|
|
447
|
+
init_stringUtils();
|
|
448
|
+
init_ConfigurableShortcutHint();
|
|
449
|
+
init_CustomSelect();
|
|
450
|
+
init_src();
|
|
451
|
+
init_Spinner();
|
|
452
|
+
import_react = __toESM(require_react(), 1);
|
|
453
|
+
jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
|
|
454
|
+
});
|
|
455
|
+
|
|
456
|
+
// src/components/mcp/MCPListPanel.tsx
|
|
457
|
+
function getScopeHeading(scope) {
|
|
458
|
+
switch (scope) {
|
|
459
|
+
case "project":
|
|
460
|
+
return { label: "Project MCPs", path: describeMcpConfigFilePath(scope) };
|
|
461
|
+
case "user":
|
|
462
|
+
return { label: "User MCPs", path: describeMcpConfigFilePath(scope) };
|
|
463
|
+
case "local":
|
|
464
|
+
return { label: "Local MCPs", path: describeMcpConfigFilePath(scope) };
|
|
465
|
+
case "enterprise":
|
|
466
|
+
return { label: "Enterprise MCPs" };
|
|
467
|
+
case "dynamic":
|
|
468
|
+
return { label: "Built-in MCPs", path: "always available" };
|
|
469
|
+
default:
|
|
470
|
+
return { label: scope };
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
function groupServersByScope(serverList) {
|
|
474
|
+
const groups = new Map;
|
|
475
|
+
for (const server of serverList) {
|
|
476
|
+
const scope = server.scope;
|
|
477
|
+
if (!groups.has(scope)) {
|
|
478
|
+
groups.set(scope, []);
|
|
479
|
+
}
|
|
480
|
+
groups.get(scope).push(server);
|
|
481
|
+
}
|
|
482
|
+
for (const [, groupServers] of groups) {
|
|
483
|
+
groupServers.sort((a, b) => a.name.localeCompare(b.name));
|
|
484
|
+
}
|
|
485
|
+
return groups;
|
|
486
|
+
}
|
|
487
|
+
function MCPListPanel({
|
|
488
|
+
servers,
|
|
489
|
+
agentServers = [],
|
|
490
|
+
onSelectServer,
|
|
491
|
+
onSelectAgentServer,
|
|
492
|
+
onComplete
|
|
493
|
+
}) {
|
|
494
|
+
const [theme] = useTheme();
|
|
495
|
+
const [selectedIndex, setSelectedIndex] = import_react2.useState(0);
|
|
496
|
+
const serversByScope = import_react2.default.useMemo(() => {
|
|
497
|
+
const regularServers = servers.filter((s) => s.client.config.type !== "claudeai-proxy");
|
|
498
|
+
return groupServersByScope(regularServers);
|
|
499
|
+
}, [servers]);
|
|
500
|
+
const claudeAiServers = import_react2.default.useMemo(() => servers.filter((s) => s.client.config.type === "claudeai-proxy").sort((a, b) => a.name.localeCompare(b.name)), [servers]);
|
|
501
|
+
const dynamicServers = import_react2.default.useMemo(() => (serversByScope.get("dynamic") ?? []).sort((a, b) => a.name.localeCompare(b.name)), [serversByScope]);
|
|
502
|
+
const dynamicHeading = getScopeHeading("dynamic");
|
|
503
|
+
const selectableItems = import_react2.default.useMemo(() => {
|
|
504
|
+
const items = [];
|
|
505
|
+
for (const scope of SCOPE_ORDER) {
|
|
506
|
+
const scopeServers = serversByScope.get(scope) ?? [];
|
|
507
|
+
for (const server of scopeServers) {
|
|
508
|
+
items.push({ type: "server", server });
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
for (const server of claudeAiServers) {
|
|
512
|
+
items.push({ type: "server", server });
|
|
513
|
+
}
|
|
514
|
+
for (const agentServer of agentServers) {
|
|
515
|
+
items.push({ type: "agent-server", agentServer });
|
|
516
|
+
}
|
|
517
|
+
for (const server of dynamicServers) {
|
|
518
|
+
items.push({ type: "server", server });
|
|
519
|
+
}
|
|
520
|
+
return items;
|
|
521
|
+
}, [serversByScope, claudeAiServers, agentServers, dynamicServers]);
|
|
522
|
+
const handleCancel = import_react2.useCallback(() => {
|
|
523
|
+
onComplete("MCP dialog dismissed", {
|
|
524
|
+
display: "system"
|
|
525
|
+
});
|
|
526
|
+
}, [onComplete]);
|
|
527
|
+
const handleSelect = import_react2.useCallback(() => {
|
|
528
|
+
const item = selectableItems[selectedIndex];
|
|
529
|
+
if (!item)
|
|
530
|
+
return;
|
|
531
|
+
if (item.type === "server") {
|
|
532
|
+
onSelectServer(item.server);
|
|
533
|
+
} else if (item.type === "agent-server" && onSelectAgentServer) {
|
|
534
|
+
onSelectAgentServer(item.agentServer);
|
|
535
|
+
}
|
|
536
|
+
}, [selectableItems, selectedIndex, onSelectServer, onSelectAgentServer]);
|
|
537
|
+
useKeybindings({
|
|
538
|
+
"confirm:previous": () => setSelectedIndex((prev) => prev === 0 ? selectableItems.length - 1 : prev - 1),
|
|
539
|
+
"confirm:next": () => setSelectedIndex((prev) => prev === selectableItems.length - 1 ? 0 : prev + 1),
|
|
540
|
+
"confirm:yes": handleSelect,
|
|
541
|
+
"confirm:no": handleCancel
|
|
542
|
+
}, { context: "Confirmation" });
|
|
543
|
+
const getServerIndex = (server) => {
|
|
544
|
+
return selectableItems.findIndex((item) => item.type === "server" && item.server === server);
|
|
545
|
+
};
|
|
546
|
+
const getAgentServerIndex = (agentServer) => {
|
|
547
|
+
return selectableItems.findIndex((item) => item.type === "agent-server" && item.agentServer === agentServer);
|
|
548
|
+
};
|
|
549
|
+
const debugMode = isDebugMode();
|
|
550
|
+
const hasFailedClients = servers.some((s) => s.client.type === "failed");
|
|
551
|
+
if (servers.length === 0 && agentServers.length === 0) {
|
|
552
|
+
return null;
|
|
553
|
+
}
|
|
554
|
+
const renderServerItem = (server) => {
|
|
555
|
+
const index = getServerIndex(server);
|
|
556
|
+
const isSelected = selectedIndex === index;
|
|
557
|
+
let statusIcon = "";
|
|
558
|
+
let statusText = "";
|
|
559
|
+
if (server.client.type === "disabled") {
|
|
560
|
+
statusIcon = color("inactive", theme)(figures_default.radioOff);
|
|
561
|
+
statusText = "disabled";
|
|
562
|
+
} else if (server.client.type === "connected") {
|
|
563
|
+
statusIcon = color("success", theme)(figures_default.tick);
|
|
564
|
+
statusText = "connected";
|
|
565
|
+
} else if (server.client.type === "pending") {
|
|
566
|
+
statusIcon = color("inactive", theme)(figures_default.radioOff);
|
|
567
|
+
const { reconnectAttempt, maxReconnectAttempts } = server.client;
|
|
568
|
+
if (reconnectAttempt && maxReconnectAttempts) {
|
|
569
|
+
statusText = `reconnecting (${reconnectAttempt}/${maxReconnectAttempts})\u2026`;
|
|
570
|
+
} else {
|
|
571
|
+
statusText = "connecting\u2026";
|
|
572
|
+
}
|
|
573
|
+
} else if (server.client.type === "needs-auth") {
|
|
574
|
+
statusIcon = color("warning", theme)(figures_default.triangleUpOutline);
|
|
575
|
+
statusText = "needs authentication";
|
|
576
|
+
} else {
|
|
577
|
+
statusIcon = color("error", theme)(figures_default.cross);
|
|
578
|
+
statusText = "failed";
|
|
579
|
+
}
|
|
580
|
+
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
581
|
+
children: [
|
|
582
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
583
|
+
color: isSelected ? "suggestion" : undefined,
|
|
584
|
+
children: isSelected ? `${figures_default.pointer} ` : " "
|
|
585
|
+
}, undefined, false, undefined, this),
|
|
586
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
587
|
+
color: isSelected ? "suggestion" : undefined,
|
|
588
|
+
children: server.name
|
|
589
|
+
}, undefined, false, undefined, this),
|
|
590
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
591
|
+
dimColor: !isSelected,
|
|
592
|
+
children: [
|
|
593
|
+
" \xB7 ",
|
|
594
|
+
statusIcon,
|
|
595
|
+
" "
|
|
596
|
+
]
|
|
597
|
+
}, undefined, true, undefined, this),
|
|
598
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
599
|
+
dimColor: !isSelected,
|
|
600
|
+
children: statusText
|
|
601
|
+
}, undefined, false, undefined, this)
|
|
602
|
+
]
|
|
603
|
+
}, `${server.name}-${index}`, true, undefined, this);
|
|
604
|
+
};
|
|
605
|
+
const renderAgentServerItem = (agentServer) => {
|
|
606
|
+
const index = getAgentServerIndex(agentServer);
|
|
607
|
+
const isSelected = selectedIndex === index;
|
|
608
|
+
const statusIcon = agentServer.needsAuth ? color("warning", theme)(figures_default.triangleUpOutline) : color("inactive", theme)(figures_default.radioOff);
|
|
609
|
+
const statusText = agentServer.needsAuth ? "may need auth" : "agent-only";
|
|
610
|
+
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
611
|
+
children: [
|
|
612
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
613
|
+
color: isSelected ? "suggestion" : undefined,
|
|
614
|
+
children: isSelected ? `${figures_default.pointer} ` : " "
|
|
615
|
+
}, undefined, false, undefined, this),
|
|
616
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
617
|
+
color: isSelected ? "suggestion" : undefined,
|
|
618
|
+
children: agentServer.name
|
|
619
|
+
}, undefined, false, undefined, this),
|
|
620
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
621
|
+
dimColor: !isSelected,
|
|
622
|
+
children: [
|
|
623
|
+
" \xB7 ",
|
|
624
|
+
statusIcon,
|
|
625
|
+
" "
|
|
626
|
+
]
|
|
627
|
+
}, undefined, true, undefined, this),
|
|
628
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
629
|
+
dimColor: !isSelected,
|
|
630
|
+
children: statusText
|
|
631
|
+
}, undefined, false, undefined, this)
|
|
632
|
+
]
|
|
633
|
+
}, `agent-${agentServer.name}-${index}`, true, undefined, this);
|
|
634
|
+
};
|
|
635
|
+
const totalServers = servers.length + agentServers.length;
|
|
636
|
+
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
637
|
+
flexDirection: "column",
|
|
638
|
+
children: [
|
|
639
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(McpParsingWarnings, {}, undefined, false, undefined, this),
|
|
640
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Dialog, {
|
|
641
|
+
title: "Manage MCP servers",
|
|
642
|
+
subtitle: `${totalServers} ${plural(totalServers, "server")}`,
|
|
643
|
+
onCancel: handleCancel,
|
|
644
|
+
hideInputGuide: true,
|
|
645
|
+
children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
646
|
+
flexDirection: "column",
|
|
647
|
+
children: [
|
|
648
|
+
SCOPE_ORDER.map((scope) => {
|
|
649
|
+
const scopeServers = serversByScope.get(scope);
|
|
650
|
+
if (!scopeServers || scopeServers.length === 0)
|
|
651
|
+
return null;
|
|
652
|
+
const heading = getScopeHeading(scope);
|
|
653
|
+
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
654
|
+
flexDirection: "column",
|
|
655
|
+
marginBottom: 1,
|
|
656
|
+
children: [
|
|
657
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
658
|
+
paddingLeft: 2,
|
|
659
|
+
children: [
|
|
660
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
661
|
+
bold: true,
|
|
662
|
+
children: heading.label
|
|
663
|
+
}, undefined, false, undefined, this),
|
|
664
|
+
heading.path && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
665
|
+
dimColor: true,
|
|
666
|
+
children: [
|
|
667
|
+
" (",
|
|
668
|
+
heading.path,
|
|
669
|
+
")"
|
|
670
|
+
]
|
|
671
|
+
}, undefined, true, undefined, this)
|
|
672
|
+
]
|
|
673
|
+
}, undefined, true, undefined, this),
|
|
674
|
+
scopeServers.map((server) => renderServerItem(server))
|
|
675
|
+
]
|
|
676
|
+
}, scope, true, undefined, this);
|
|
677
|
+
}),
|
|
678
|
+
claudeAiServers.length > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
679
|
+
flexDirection: "column",
|
|
680
|
+
marginBottom: 1,
|
|
681
|
+
children: [
|
|
682
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
683
|
+
paddingLeft: 2,
|
|
684
|
+
children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
685
|
+
bold: true,
|
|
686
|
+
children: "claude.ai"
|
|
687
|
+
}, undefined, false, undefined, this)
|
|
688
|
+
}, undefined, false, undefined, this),
|
|
689
|
+
claudeAiServers.map((server) => renderServerItem(server))
|
|
690
|
+
]
|
|
691
|
+
}, undefined, true, undefined, this),
|
|
692
|
+
agentServers.length > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
693
|
+
flexDirection: "column",
|
|
694
|
+
marginBottom: 1,
|
|
695
|
+
children: [
|
|
696
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
697
|
+
paddingLeft: 2,
|
|
698
|
+
children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
699
|
+
bold: true,
|
|
700
|
+
children: "Agent MCPs"
|
|
701
|
+
}, undefined, false, undefined, this)
|
|
702
|
+
}, undefined, false, undefined, this),
|
|
703
|
+
[...new Set(agentServers.flatMap((s) => s.sourceAgents))].map((agentName) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
704
|
+
flexDirection: "column",
|
|
705
|
+
marginTop: 1,
|
|
706
|
+
children: [
|
|
707
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
708
|
+
paddingLeft: 2,
|
|
709
|
+
children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
710
|
+
dimColor: true,
|
|
711
|
+
children: [
|
|
712
|
+
"@",
|
|
713
|
+
agentName
|
|
714
|
+
]
|
|
715
|
+
}, undefined, true, undefined, this)
|
|
716
|
+
}, undefined, false, undefined, this),
|
|
717
|
+
agentServers.filter((s) => s.sourceAgents.includes(agentName)).map((agentServer) => renderAgentServerItem(agentServer))
|
|
718
|
+
]
|
|
719
|
+
}, agentName, true, undefined, this))
|
|
720
|
+
]
|
|
721
|
+
}, undefined, true, undefined, this),
|
|
722
|
+
dynamicServers.length > 0 && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
723
|
+
flexDirection: "column",
|
|
724
|
+
marginBottom: 1,
|
|
725
|
+
children: [
|
|
726
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
727
|
+
paddingLeft: 2,
|
|
728
|
+
children: [
|
|
729
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
730
|
+
bold: true,
|
|
731
|
+
children: dynamicHeading.label
|
|
732
|
+
}, undefined, false, undefined, this),
|
|
733
|
+
dynamicHeading.path && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
734
|
+
dimColor: true,
|
|
735
|
+
children: [
|
|
736
|
+
" (",
|
|
737
|
+
dynamicHeading.path,
|
|
738
|
+
")"
|
|
739
|
+
]
|
|
740
|
+
}, undefined, true, undefined, this)
|
|
741
|
+
]
|
|
742
|
+
}, undefined, true, undefined, this),
|
|
743
|
+
dynamicServers.map((server) => renderServerItem(server))
|
|
744
|
+
]
|
|
745
|
+
}, undefined, true, undefined, this),
|
|
746
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
747
|
+
flexDirection: "column",
|
|
748
|
+
children: [
|
|
749
|
+
hasFailedClients && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
750
|
+
dimColor: true,
|
|
751
|
+
children: debugMode ? "\u203B Error logs shown inline with --debug" : "\u203B Run claude --debug to see error logs"
|
|
752
|
+
}, undefined, false, undefined, this),
|
|
753
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
754
|
+
dimColor: true,
|
|
755
|
+
children: [
|
|
756
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Link, {
|
|
757
|
+
url: "https://code.claude.com/docs/en/mcp",
|
|
758
|
+
children: "https://code.claude.com/docs/en/mcp"
|
|
759
|
+
}, undefined, false, undefined, this),
|
|
760
|
+
" ",
|
|
761
|
+
"for help"
|
|
762
|
+
]
|
|
763
|
+
}, undefined, true, undefined, this)
|
|
764
|
+
]
|
|
765
|
+
}, undefined, true, undefined, this)
|
|
766
|
+
]
|
|
767
|
+
}, undefined, true, undefined, this)
|
|
768
|
+
}, undefined, false, undefined, this),
|
|
769
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
770
|
+
paddingX: 1,
|
|
771
|
+
children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
772
|
+
dimColor: true,
|
|
773
|
+
italic: true,
|
|
774
|
+
children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(Byline, {
|
|
775
|
+
children: [
|
|
776
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(KeyboardShortcutHint, {
|
|
777
|
+
shortcut: "\u2191\u2193",
|
|
778
|
+
action: "navigate"
|
|
779
|
+
}, undefined, false, undefined, this),
|
|
780
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(KeyboardShortcutHint, {
|
|
781
|
+
shortcut: "Enter",
|
|
782
|
+
action: "confirm"
|
|
783
|
+
}, undefined, false, undefined, this),
|
|
784
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ConfigurableShortcutHint, {
|
|
785
|
+
action: "confirm:no",
|
|
786
|
+
context: "Confirmation",
|
|
787
|
+
fallback: "Esc",
|
|
788
|
+
description: "cancel"
|
|
789
|
+
}, undefined, false, undefined, this)
|
|
790
|
+
]
|
|
791
|
+
}, undefined, true, undefined, this)
|
|
792
|
+
}, undefined, false, undefined, this)
|
|
793
|
+
}, undefined, false, undefined, this)
|
|
794
|
+
]
|
|
795
|
+
}, undefined, true, undefined, this);
|
|
796
|
+
}
|
|
797
|
+
var import_react2, jsx_dev_runtime2, SCOPE_ORDER;
|
|
798
|
+
var init_MCPListPanel = __esm(() => {
|
|
799
|
+
init_figures();
|
|
800
|
+
init_src();
|
|
801
|
+
init_useKeybinding();
|
|
802
|
+
init_utils();
|
|
803
|
+
init_debug();
|
|
804
|
+
init_stringUtils();
|
|
805
|
+
init_ConfigurableShortcutHint();
|
|
806
|
+
init_src();
|
|
807
|
+
init_McpParsingWarnings();
|
|
808
|
+
import_react2 = __toESM(require_react(), 1);
|
|
809
|
+
jsx_dev_runtime2 = __toESM(require_jsx_dev_runtime(), 1);
|
|
810
|
+
SCOPE_ORDER = ["project", "local", "user", "enterprise"];
|
|
811
|
+
});
|
|
812
|
+
|
|
813
|
+
// src/components/mcp/MCPReconnect.tsx
|
|
814
|
+
function MCPReconnect({
|
|
815
|
+
serverName,
|
|
816
|
+
onComplete
|
|
817
|
+
}) {
|
|
818
|
+
const [theme] = useTheme();
|
|
819
|
+
const store = useAppStateStore();
|
|
820
|
+
const reconnectMcpServer = useMcpReconnect();
|
|
821
|
+
const [isReconnecting, setIsReconnecting] = import_react3.useState(true);
|
|
822
|
+
const [error, setError] = import_react3.useState(null);
|
|
823
|
+
import_react3.useEffect(() => {
|
|
824
|
+
async function attemptReconnect() {
|
|
825
|
+
try {
|
|
826
|
+
const server = store.getState().mcp.clients.find((c) => c.name === serverName);
|
|
827
|
+
if (!server) {
|
|
828
|
+
setError(`MCP server "${serverName}" not found`);
|
|
829
|
+
setIsReconnecting(false);
|
|
830
|
+
onComplete(`MCP server "${serverName}" not found`);
|
|
831
|
+
return;
|
|
832
|
+
}
|
|
833
|
+
const result = await reconnectMcpServer(serverName);
|
|
834
|
+
switch (result.client.type) {
|
|
835
|
+
case "connected":
|
|
836
|
+
setIsReconnecting(false);
|
|
837
|
+
onComplete(`Successfully reconnected to ${serverName}`);
|
|
838
|
+
break;
|
|
839
|
+
case "needs-auth":
|
|
840
|
+
setError(`${serverName} requires authentication`);
|
|
841
|
+
setIsReconnecting(false);
|
|
842
|
+
onComplete(`${serverName} requires authentication. Use /mcp to authenticate.`);
|
|
843
|
+
break;
|
|
844
|
+
case "pending":
|
|
845
|
+
case "failed":
|
|
846
|
+
case "disabled":
|
|
847
|
+
setError(`Failed to reconnect to ${serverName}`);
|
|
848
|
+
setIsReconnecting(false);
|
|
849
|
+
onComplete(`Failed to reconnect to ${serverName}`);
|
|
850
|
+
break;
|
|
851
|
+
}
|
|
852
|
+
} catch (err) {
|
|
853
|
+
const errorMessage = err instanceof Error ? err.message : String(err);
|
|
854
|
+
setError(errorMessage);
|
|
855
|
+
setIsReconnecting(false);
|
|
856
|
+
onComplete(`Error: ${errorMessage}`);
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
attemptReconnect();
|
|
860
|
+
}, [serverName, reconnectMcpServer, store, onComplete]);
|
|
861
|
+
if (isReconnecting) {
|
|
862
|
+
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
863
|
+
flexDirection: "column",
|
|
864
|
+
gap: 1,
|
|
865
|
+
padding: 1,
|
|
866
|
+
children: [
|
|
867
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
868
|
+
color: "text",
|
|
869
|
+
children: [
|
|
870
|
+
"Reconnecting to ",
|
|
871
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
872
|
+
bold: true,
|
|
873
|
+
children: serverName
|
|
874
|
+
}, undefined, false, undefined, this)
|
|
875
|
+
]
|
|
876
|
+
}, undefined, true, undefined, this),
|
|
877
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
878
|
+
children: [
|
|
879
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Spinner, {}, undefined, false, undefined, this),
|
|
880
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
881
|
+
children: " Establishing connection to MCP server"
|
|
882
|
+
}, undefined, false, undefined, this)
|
|
883
|
+
]
|
|
884
|
+
}, undefined, true, undefined, this)
|
|
885
|
+
]
|
|
886
|
+
}, undefined, true, undefined, this);
|
|
887
|
+
}
|
|
888
|
+
if (error) {
|
|
889
|
+
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
890
|
+
flexDirection: "column",
|
|
891
|
+
gap: 1,
|
|
892
|
+
padding: 1,
|
|
893
|
+
children: [
|
|
894
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
895
|
+
children: [
|
|
896
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
897
|
+
children: [
|
|
898
|
+
color("error", theme)(figures_default.cross),
|
|
899
|
+
" "
|
|
900
|
+
]
|
|
901
|
+
}, undefined, true, undefined, this),
|
|
902
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
903
|
+
color: "error",
|
|
904
|
+
children: [
|
|
905
|
+
"Failed to reconnect to ",
|
|
906
|
+
serverName
|
|
907
|
+
]
|
|
908
|
+
}, undefined, true, undefined, this)
|
|
909
|
+
]
|
|
910
|
+
}, undefined, true, undefined, this),
|
|
911
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
912
|
+
dimColor: true,
|
|
913
|
+
children: [
|
|
914
|
+
"Error: ",
|
|
915
|
+
error
|
|
916
|
+
]
|
|
917
|
+
}, undefined, true, undefined, this)
|
|
918
|
+
]
|
|
919
|
+
}, undefined, true, undefined, this);
|
|
920
|
+
}
|
|
921
|
+
return null;
|
|
922
|
+
}
|
|
923
|
+
var import_react3, jsx_dev_runtime3;
|
|
924
|
+
var init_MCPReconnect = __esm(() => {
|
|
925
|
+
init_figures();
|
|
926
|
+
init_src();
|
|
927
|
+
init_MCPConnectionManager();
|
|
928
|
+
init_AppState();
|
|
929
|
+
init_Spinner();
|
|
930
|
+
import_react3 = __toESM(require_react(), 1);
|
|
931
|
+
jsx_dev_runtime3 = __toESM(require_jsx_dev_runtime(), 1);
|
|
932
|
+
});
|
|
933
|
+
|
|
934
|
+
// src/components/mcp/MCPSettings.tsx
|
|
935
|
+
function MCPSettings({ onComplete }) {
|
|
936
|
+
const mcp = useAppState((s) => s.mcp);
|
|
937
|
+
const agentDefinitions = useAppState((s) => s.agentDefinitions);
|
|
938
|
+
const mcpClients = mcp.clients;
|
|
939
|
+
const [viewState, setViewState] = import_react4.default.useState({
|
|
940
|
+
type: "list"
|
|
941
|
+
});
|
|
942
|
+
const [servers, setServers] = import_react4.default.useState([]);
|
|
943
|
+
const agentMcpServers = import_react4.useMemo(() => extractAgentMcpServers(agentDefinitions.allAgents), [agentDefinitions.allAgents]);
|
|
944
|
+
const filteredClients = import_react4.default.useMemo(() => mcpClients.filter((client) => client.name !== "ide").sort((a, b) => a.name.localeCompare(b.name)), [mcpClients]);
|
|
945
|
+
import_react4.default.useEffect(() => {
|
|
946
|
+
let cancelled = false;
|
|
947
|
+
async function prepareServers() {
|
|
948
|
+
const serverInfos = await Promise.all(filteredClients.map(async (client) => {
|
|
949
|
+
const scope = client.config.scope;
|
|
950
|
+
const isSSE = client.config.type === "sse";
|
|
951
|
+
const isHTTP = client.config.type === "http";
|
|
952
|
+
const isClaudeAIProxy = client.config.type === "claudeai-proxy";
|
|
953
|
+
let isAuthenticated = undefined;
|
|
954
|
+
if (isSSE || isHTTP) {
|
|
955
|
+
const authProvider = new ClaudeAuthProvider(client.name, client.config);
|
|
956
|
+
const tokens = await authProvider.tokens();
|
|
957
|
+
const hasSessionAuth = getSessionIngressAuthToken() !== null && client.type === "connected";
|
|
958
|
+
const hasToolsAndConnected = client.type === "connected" && filterToolsByServer(mcp.tools, client.name).length > 0;
|
|
959
|
+
isAuthenticated = Boolean(tokens) || hasSessionAuth || hasToolsAndConnected;
|
|
960
|
+
}
|
|
961
|
+
const baseInfo = {
|
|
962
|
+
name: client.name,
|
|
963
|
+
client,
|
|
964
|
+
scope
|
|
965
|
+
};
|
|
966
|
+
if (isClaudeAIProxy) {
|
|
967
|
+
return {
|
|
968
|
+
...baseInfo,
|
|
969
|
+
transport: "claudeai-proxy",
|
|
970
|
+
isAuthenticated: false,
|
|
971
|
+
config: client.config
|
|
972
|
+
};
|
|
973
|
+
} else if (isSSE) {
|
|
974
|
+
return {
|
|
975
|
+
...baseInfo,
|
|
976
|
+
transport: "sse",
|
|
977
|
+
isAuthenticated,
|
|
978
|
+
config: client.config
|
|
979
|
+
};
|
|
980
|
+
} else if (isHTTP) {
|
|
981
|
+
return {
|
|
982
|
+
...baseInfo,
|
|
983
|
+
transport: "http",
|
|
984
|
+
isAuthenticated,
|
|
985
|
+
config: client.config
|
|
986
|
+
};
|
|
987
|
+
} else {
|
|
988
|
+
return {
|
|
989
|
+
...baseInfo,
|
|
990
|
+
transport: "stdio",
|
|
991
|
+
config: client.config
|
|
992
|
+
};
|
|
993
|
+
}
|
|
994
|
+
}));
|
|
995
|
+
if (cancelled)
|
|
996
|
+
return;
|
|
997
|
+
setServers(serverInfos);
|
|
998
|
+
}
|
|
999
|
+
prepareServers();
|
|
1000
|
+
return () => {
|
|
1001
|
+
cancelled = true;
|
|
1002
|
+
};
|
|
1003
|
+
}, [filteredClients, mcp.tools]);
|
|
1004
|
+
import_react4.useEffect(() => {
|
|
1005
|
+
if (servers.length === 0 && filteredClients.length > 0) {
|
|
1006
|
+
return;
|
|
1007
|
+
}
|
|
1008
|
+
if (servers.length === 0 && agentMcpServers.length === 0) {
|
|
1009
|
+
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.");
|
|
1010
|
+
}
|
|
1011
|
+
}, [
|
|
1012
|
+
servers.length,
|
|
1013
|
+
filteredClients.length,
|
|
1014
|
+
agentMcpServers.length,
|
|
1015
|
+
onComplete
|
|
1016
|
+
]);
|
|
1017
|
+
switch (viewState.type) {
|
|
1018
|
+
case "list":
|
|
1019
|
+
return /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(MCPListPanel, {
|
|
1020
|
+
servers,
|
|
1021
|
+
agentServers: agentMcpServers,
|
|
1022
|
+
onSelectServer: (server) => setViewState({ type: "server-menu", server }),
|
|
1023
|
+
onSelectAgentServer: (agentServer) => setViewState({ type: "agent-server-menu", agentServer }),
|
|
1024
|
+
onComplete,
|
|
1025
|
+
defaultTab: viewState.defaultTab
|
|
1026
|
+
}, undefined, false, undefined, this);
|
|
1027
|
+
case "server-menu": {
|
|
1028
|
+
const serverTools = filterToolsByServer(mcp.tools, viewState.server.name);
|
|
1029
|
+
const defaultTab = viewState.server.transport === "claudeai-proxy" ? "claude.ai" : "Claude Code";
|
|
1030
|
+
if (viewState.server.transport === "stdio") {
|
|
1031
|
+
return /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(MCPStdioServerMenu, {
|
|
1032
|
+
server: viewState.server,
|
|
1033
|
+
serverToolsCount: serverTools.length,
|
|
1034
|
+
onViewTools: () => setViewState({ type: "server-tools", server: viewState.server }),
|
|
1035
|
+
onCancel: () => setViewState({ type: "list", defaultTab }),
|
|
1036
|
+
onComplete
|
|
1037
|
+
}, undefined, false, undefined, this);
|
|
1038
|
+
} else {
|
|
1039
|
+
return /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(MCPRemoteServerMenu, {
|
|
1040
|
+
server: viewState.server,
|
|
1041
|
+
serverToolsCount: serverTools.length,
|
|
1042
|
+
onViewTools: () => setViewState({ type: "server-tools", server: viewState.server }),
|
|
1043
|
+
onCancel: () => setViewState({ type: "list", defaultTab }),
|
|
1044
|
+
onComplete
|
|
1045
|
+
}, undefined, false, undefined, this);
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
case "server-tools":
|
|
1049
|
+
return /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(MCPToolListView, {
|
|
1050
|
+
server: viewState.server,
|
|
1051
|
+
onSelectTool: (_, index) => setViewState({
|
|
1052
|
+
type: "server-tool-detail",
|
|
1053
|
+
server: viewState.server,
|
|
1054
|
+
toolIndex: index
|
|
1055
|
+
}),
|
|
1056
|
+
onBack: () => setViewState({ type: "server-menu", server: viewState.server })
|
|
1057
|
+
}, undefined, false, undefined, this);
|
|
1058
|
+
case "server-tool-detail": {
|
|
1059
|
+
const serverTools = filterToolsByServer(mcp.tools, viewState.server.name);
|
|
1060
|
+
const tool = serverTools[viewState.toolIndex];
|
|
1061
|
+
if (!tool) {
|
|
1062
|
+
setViewState({ type: "server-tools", server: viewState.server });
|
|
1063
|
+
return null;
|
|
1064
|
+
}
|
|
1065
|
+
return /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(MCPToolDetailView, {
|
|
1066
|
+
tool,
|
|
1067
|
+
server: viewState.server,
|
|
1068
|
+
onBack: () => setViewState({ type: "server-tools", server: viewState.server })
|
|
1069
|
+
}, undefined, false, undefined, this);
|
|
1070
|
+
}
|
|
1071
|
+
case "agent-server-menu":
|
|
1072
|
+
return /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(MCPAgentServerMenu, {
|
|
1073
|
+
agentServer: viewState.agentServer,
|
|
1074
|
+
onCancel: () => setViewState({ type: "list", defaultTab: "Agents" }),
|
|
1075
|
+
onComplete
|
|
1076
|
+
}, undefined, false, undefined, this);
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
var import_react4, jsx_dev_runtime4;
|
|
1080
|
+
var init_MCPSettings = __esm(() => {
|
|
1081
|
+
init_auth();
|
|
1082
|
+
init_utils();
|
|
1083
|
+
init_AppState();
|
|
1084
|
+
init_sessionIngressAuth();
|
|
1085
|
+
init_MCPAgentServerMenu();
|
|
1086
|
+
init_MCPListPanel();
|
|
1087
|
+
init_MCPRemoteServerMenu();
|
|
1088
|
+
init_MCPStdioServerMenu();
|
|
1089
|
+
init_MCPToolDetailView();
|
|
1090
|
+
init_MCPToolListView();
|
|
1091
|
+
import_react4 = __toESM(require_react(), 1);
|
|
1092
|
+
jsx_dev_runtime4 = __toESM(require_jsx_dev_runtime(), 1);
|
|
1093
|
+
});
|
|
1094
|
+
|
|
1095
|
+
// src/components/mcp/index.ts
|
|
1096
|
+
var init_mcp = __esm(() => {
|
|
1097
|
+
init_MCPAgentServerMenu();
|
|
1098
|
+
init_MCPListPanel();
|
|
1099
|
+
init_MCPReconnect();
|
|
1100
|
+
init_MCPRemoteServerMenu();
|
|
1101
|
+
init_MCPSettings();
|
|
1102
|
+
init_MCPStdioServerMenu();
|
|
1103
|
+
init_MCPToolDetailView();
|
|
1104
|
+
init_MCPToolListView();
|
|
1105
|
+
});
|
|
1106
|
+
|
|
1107
|
+
// src/commands/mcp/mcp.tsx
|
|
1108
|
+
function MCPToggle({
|
|
1109
|
+
action,
|
|
1110
|
+
target,
|
|
1111
|
+
onComplete
|
|
1112
|
+
}) {
|
|
1113
|
+
const mcpClients = useAppState((s) => s.mcp.clients);
|
|
1114
|
+
const toggleMcpServer = useMcpToggleEnabled();
|
|
1115
|
+
const didRun = import_react5.useRef(false);
|
|
1116
|
+
import_react5.useEffect(() => {
|
|
1117
|
+
if (didRun.current)
|
|
1118
|
+
return;
|
|
1119
|
+
didRun.current = true;
|
|
1120
|
+
const isEnabling = action === "enable";
|
|
1121
|
+
const clients = mcpClients.filter((c) => c.name !== "ide");
|
|
1122
|
+
const toToggle = target === "all" ? clients.filter((c) => isEnabling ? c.type === "disabled" : c.type !== "disabled") : clients.filter((c) => c.name === target);
|
|
1123
|
+
if (toToggle.length === 0) {
|
|
1124
|
+
onComplete(target === "all" ? `All MCP servers are already ${isEnabling ? "enabled" : "disabled"}` : `MCP server "${target}" not found`);
|
|
1125
|
+
return;
|
|
1126
|
+
}
|
|
1127
|
+
for (const s of toToggle) {
|
|
1128
|
+
toggleMcpServer(s.name);
|
|
1129
|
+
}
|
|
1130
|
+
onComplete(target === "all" ? `${isEnabling ? "Enabled" : "Disabled"} ${toToggle.length} MCP server(s)` : `MCP server "${target}" ${isEnabling ? "enabled" : "disabled"}`);
|
|
1131
|
+
}, [action, target, mcpClients, toggleMcpServer, onComplete]);
|
|
1132
|
+
return null;
|
|
1133
|
+
}
|
|
1134
|
+
async function call(onDone, _context, args) {
|
|
1135
|
+
if (args) {
|
|
1136
|
+
const parts = args.trim().split(/\s+/);
|
|
1137
|
+
if (parts[0] === "no-redirect") {
|
|
1138
|
+
return /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(MCPSettings, {
|
|
1139
|
+
onComplete: onDone
|
|
1140
|
+
}, undefined, false, undefined, this);
|
|
1141
|
+
}
|
|
1142
|
+
if (parts[0] === "reconnect" && parts[1]) {
|
|
1143
|
+
return /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(MCPReconnect, {
|
|
1144
|
+
serverName: parts.slice(1).join(" "),
|
|
1145
|
+
onComplete: onDone
|
|
1146
|
+
}, undefined, false, undefined, this);
|
|
1147
|
+
}
|
|
1148
|
+
if (parts[0] === "enable" || parts[0] === "disable") {
|
|
1149
|
+
return /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(MCPToggle, {
|
|
1150
|
+
action: parts[0],
|
|
1151
|
+
target: parts.length > 1 ? parts.slice(1).join(" ") : "all",
|
|
1152
|
+
onComplete: onDone
|
|
1153
|
+
}, undefined, false, undefined, this);
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
if (process.env.USER_TYPE === "ant") {
|
|
1157
|
+
return /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(PluginSettings, {
|
|
1158
|
+
onComplete: onDone,
|
|
1159
|
+
args: "manage",
|
|
1160
|
+
showMcpRedirectMessage: true
|
|
1161
|
+
}, undefined, false, undefined, this);
|
|
1162
|
+
}
|
|
1163
|
+
return /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(MCPSettings, {
|
|
1164
|
+
onComplete: onDone
|
|
1165
|
+
}, undefined, false, undefined, this);
|
|
1166
|
+
}
|
|
1167
|
+
var import_react5, jsx_dev_runtime5;
|
|
1168
|
+
var init_mcp2 = __esm(() => {
|
|
1169
|
+
init_mcp();
|
|
1170
|
+
init_MCPReconnect();
|
|
1171
|
+
init_MCPConnectionManager();
|
|
1172
|
+
init_AppState();
|
|
1173
|
+
init_PluginSettings();
|
|
1174
|
+
import_react5 = __toESM(require_react(), 1);
|
|
1175
|
+
jsx_dev_runtime5 = __toESM(require_jsx_dev_runtime(), 1);
|
|
1176
|
+
});
|
|
1177
|
+
init_mcp2();
|
|
1178
|
+
|
|
1179
|
+
export {
|
|
1180
|
+
call
|
|
1181
|
+
};
|