gong-code 0.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 +38 -0
- package/dist/SKILL-22jccbka.md +1 -0
- package/dist/chunk-01wdn84e.js +8 -0
- package/dist/chunk-04bc74vz.js +243 -0
- package/dist/chunk-05t2vqsb.js +490 -0
- package/dist/chunk-0727wret.js +159 -0
- package/dist/chunk-07rervty.js +200 -0
- package/dist/chunk-0b9nxvyg.js +478 -0
- package/dist/chunk-0e428b73.js +600 -0
- package/dist/chunk-0hqfheht.js +3439 -0
- package/dist/chunk-0pnk52c2.js +116 -0
- package/dist/chunk-0sbddf6m.js +68 -0
- package/dist/chunk-0vf7xb84.js +176 -0
- package/dist/chunk-0yz17yjy.js +1061 -0
- package/dist/chunk-0zscb6c7.js +10 -0
- package/dist/chunk-10p21kq6.js +378 -0
- package/dist/chunk-17k78pmz.js +120 -0
- package/dist/chunk-19jvvqzp.js +1390 -0
- package/dist/chunk-1d5czqnr.js +173 -0
- package/dist/chunk-1gjysfnf.js +13876 -0
- package/dist/chunk-1jjfv0wd.js +467 -0
- package/dist/chunk-1jjzp2pa.js +617 -0
- package/dist/chunk-1m38dj2k.js +155 -0
- package/dist/chunk-1pgttway.js +211 -0
- package/dist/chunk-1vvnx0gb.js +8035 -0
- package/dist/chunk-1ztm9yps.js +49145 -0
- package/dist/chunk-208x1t0m.js +88 -0
- package/dist/chunk-20xqs3yk.js +843 -0
- package/dist/chunk-2b2c0wnn.js +584 -0
- package/dist/chunk-2g07117j.js +541 -0
- package/dist/chunk-2g6p2t3w.js +780 -0
- package/dist/chunk-2kjeaeg7.js +28 -0
- package/dist/chunk-2n0s2dhc.js +12 -0
- package/dist/chunk-2p0hvt8k.js +785 -0
- package/dist/chunk-2qmxg9y7.js +40174 -0
- package/dist/chunk-2qpy8kne.js +28 -0
- package/dist/chunk-2rgbf62a.js +40 -0
- package/dist/chunk-2tx0s41y.js +150 -0
- package/dist/chunk-2x8zk5cz.js +101 -0
- package/dist/chunk-2yqy25z4.js +48 -0
- package/dist/chunk-318g78ty.js +552 -0
- package/dist/chunk-31gfg8tz.js +290 -0
- package/dist/chunk-32n0s532.js +1317 -0
- package/dist/chunk-35dw2r9g.js +137 -0
- package/dist/chunk-36b5zqvn.js +1865 -0
- package/dist/chunk-38kpx69j.js +97 -0
- package/dist/chunk-3b01vp8p.js +815 -0
- package/dist/chunk-3f76a1ek.js +317 -0
- package/dist/chunk-3fd1hkhh.js +4254 -0
- package/dist/chunk-3ffxa7zj.js +8 -0
- package/dist/chunk-3gcj7w95.js +8 -0
- package/dist/chunk-3jf3k40v.js +970 -0
- package/dist/chunk-3k51qfp9.js +9301 -0
- package/dist/chunk-3mhygd2v.js +1180 -0
- package/dist/chunk-3p6y0gvb.js +117 -0
- package/dist/chunk-3r60xdt5.js +93 -0
- package/dist/chunk-43agf6xv.js +8 -0
- package/dist/chunk-46zr418r.js +15 -0
- package/dist/chunk-48k2bs4w.js +118 -0
- package/dist/chunk-4p987a4z.js +84 -0
- package/dist/chunk-4px25pe0.js +776 -0
- package/dist/chunk-4s93jyky.js +113 -0
- package/dist/chunk-4xv8bedf.js +58 -0
- package/dist/chunk-4y382mzd.js +346 -0
- package/dist/chunk-52dzw4bc.js +246 -0
- package/dist/chunk-52qqmh5g.js +110 -0
- package/dist/chunk-53grnhp7.js +8 -0
- package/dist/chunk-59craaxx.js +4249 -0
- package/dist/chunk-5b833jqs.js +96 -0
- package/dist/chunk-5cp2q9sh.js +58 -0
- package/dist/chunk-5dbaxmts.js +87 -0
- package/dist/chunk-5f5sxgp0.js +96 -0
- package/dist/chunk-5mkfderj.js +195 -0
- package/dist/chunk-5qw0mpvq.js +389 -0
- package/dist/chunk-5rxmszm8.js +48 -0
- package/dist/chunk-5ygxa3hr.js +65 -0
- package/dist/chunk-61d5dqq2.js +71 -0
- package/dist/chunk-6350958y.js +272 -0
- package/dist/chunk-65z8hg8j.js +1337 -0
- package/dist/chunk-6aq85gdq.js +8 -0
- package/dist/chunk-6cjh9exg.js +40751 -0
- package/dist/chunk-6e41p5m6.js +187 -0
- package/dist/chunk-6jb6xcnq.js +10511 -0
- package/dist/chunk-6jta29r1.js +20 -0
- package/dist/chunk-6q7f2rrv.js +4757 -0
- package/dist/chunk-6sg0ec6v.js +41 -0
- package/dist/chunk-6v0rhx4e.js +328 -0
- package/dist/chunk-6x5mz95v.js +751 -0
- package/dist/chunk-6xqp51qr.js +87 -0
- package/dist/chunk-6xvyx1s9.js +6957 -0
- package/dist/chunk-6ywh7wgp.js +468 -0
- package/dist/chunk-75ne77gm.js +1920 -0
- package/dist/chunk-77cb06js.js +602 -0
- package/dist/chunk-78n9kfp8.js +1645 -0
- package/dist/chunk-7be87rww.js +277 -0
- package/dist/chunk-7e1qjk3s.js +125 -0
- package/dist/chunk-7e7nxnss.js +360 -0
- package/dist/chunk-7g8156qp.js +55 -0
- package/dist/chunk-7nz71s42.js +3353 -0
- package/dist/chunk-7r078t2x.js +113 -0
- package/dist/chunk-7shx41hj.js +3094 -0
- package/dist/chunk-7yexhdjs.js +216 -0
- package/dist/chunk-83kmfcjv.js +256 -0
- package/dist/chunk-846rr9n1.js +107 -0
- package/dist/chunk-84ncsm1r.js +183 -0
- package/dist/chunk-867x8aq0.js +8936 -0
- package/dist/chunk-8byh30kb.js +1947 -0
- package/dist/chunk-8c8f6gnt.js +432 -0
- package/dist/chunk-8gtdseev.js +454 -0
- package/dist/chunk-8jfh9rq6.js +642 -0
- package/dist/chunk-8n4n4m67.js +800 -0
- package/dist/chunk-8za61tze.js +847 -0
- package/dist/chunk-9029sbq1.js +57 -0
- package/dist/chunk-94dm5rrm.js +673 -0
- package/dist/chunk-9bs8n985.js +329 -0
- package/dist/chunk-9c23776j.js +763 -0
- package/dist/chunk-9e93g81n.js +298 -0
- package/dist/chunk-9f3d61y7.js +548 -0
- package/dist/chunk-9gc3andd.js +422 -0
- package/dist/chunk-9kn3tgpb.js +130 -0
- package/dist/chunk-9m5rn7hk.js +61 -0
- package/dist/chunk-9p4hsd6a.js +50 -0
- package/dist/chunk-9qasfk8n.js +758 -0
- package/dist/chunk-9snp5mn2.js +533 -0
- package/dist/chunk-9tcvras3.js +2331 -0
- package/dist/chunk-a0186ngk.js +57 -0
- package/dist/chunk-a2m8f0aj.js +268 -0
- package/dist/chunk-a2rcafav.js +716 -0
- package/dist/chunk-a9hjdzar.js +160 -0
- package/dist/chunk-aak6ts5n.js +526 -0
- package/dist/chunk-aca3w84n.js +267 -0
- package/dist/chunk-ae76ded0.js +30 -0
- package/dist/chunk-afnjhn3j.js +21933 -0
- package/dist/chunk-ahj70tf0.js +880 -0
- package/dist/chunk-apjsxssq.js +169 -0
- package/dist/chunk-av49wjj1.js +43 -0
- package/dist/chunk-axggebfy.js +206 -0
- package/dist/chunk-az7jpbv8.js +16 -0
- package/dist/chunk-azz7sep6.js +328 -0
- package/dist/chunk-b4tpz2g1.js +93 -0
- package/dist/chunk-bczf2eyq.js +115 -0
- package/dist/chunk-bd95f637.js +208 -0
- package/dist/chunk-bdhdmkya.js +10 -0
- package/dist/chunk-bp0ynk17.js +32 -0
- package/dist/chunk-bq75gxjs.js +90 -0
- package/dist/chunk-btk5jaq6.js +10464 -0
- package/dist/chunk-bv4c48a5.js +120 -0
- package/dist/chunk-byfb105n.js +341 -0
- package/dist/chunk-c0bdmy7w.js +4223 -0
- package/dist/chunk-c20aqkz8.js +641 -0
- package/dist/chunk-c4jg3s2c.js +163 -0
- package/dist/chunk-c61q5cer.js +258 -0
- package/dist/chunk-c9f761sy.js +386 -0
- package/dist/chunk-ca6jkz06.js +157 -0
- package/dist/chunk-ccyg9ap9.js +171374 -0
- package/dist/chunk-cfej8cc7.js +371 -0
- package/dist/chunk-cjqxdnf9.js +23 -0
- package/dist/chunk-ckrs789w.js +8 -0
- package/dist/chunk-cqeq13wg.js +48 -0
- package/dist/chunk-crfj3w5e.js +22821 -0
- package/dist/chunk-ct5x6z7g.js +8066 -0
- package/dist/chunk-cv5h8n8c.js +101 -0
- package/dist/chunk-cwe8h159.js +1563 -0
- package/dist/chunk-cwm234zz.js +908 -0
- package/dist/chunk-d1jkfp45.js +1580 -0
- package/dist/chunk-d3hb1qdr.js +126 -0
- package/dist/chunk-d70d0zer.js +713 -0
- package/dist/chunk-d91tx29f.js +105 -0
- package/dist/chunk-d952pymh.js +20 -0
- package/dist/chunk-d9af3z8k.js +720 -0
- package/dist/chunk-da1n53c2.js +47 -0
- package/dist/chunk-df5c1x8m.js +732 -0
- package/dist/chunk-dkv64xys.js +71 -0
- package/dist/chunk-dm7166v6.js +251 -0
- package/dist/chunk-dr0y5a61.js +258 -0
- package/dist/chunk-drzb0rrd.js +306 -0
- package/dist/chunk-dw1v1q7w.js +37 -0
- package/dist/chunk-e224qet4.js +348 -0
- package/dist/chunk-e50ckbv0.js +1099 -0
- package/dist/chunk-e5gn6by6.js +1165 -0
- package/dist/chunk-e7m3f74m.js +37 -0
- package/dist/chunk-e8ghgwaj.js +295 -0
- package/dist/chunk-ed8k4ya2.js +41 -0
- package/dist/chunk-eh0vnqdz.js +76 -0
- package/dist/chunk-epwrzr35.js +4301 -0
- package/dist/chunk-er9h6sw5.js +5379 -0
- package/dist/chunk-eta5aekm.js +79 -0
- package/dist/chunk-ev5gxscq.js +63 -0
- package/dist/chunk-evp72hv5.js +212 -0
- package/dist/chunk-ex41stfq.js +127 -0
- package/dist/chunk-ezpa510h.js +62 -0
- package/dist/chunk-f0fm6dey.js +477 -0
- package/dist/chunk-f239sbhc.js +152 -0
- package/dist/chunk-f2bj47xf.js +109 -0
- package/dist/chunk-f4t24rq4.js +258 -0
- package/dist/chunk-f9ghvzy8.js +106 -0
- package/dist/chunk-f9rahzgr.js +99 -0
- package/dist/chunk-ff75qzty.js +521 -0
- package/dist/chunk-fj0ctt6q.js +264 -0
- package/dist/chunk-fj7wxdt3.js +221 -0
- package/dist/chunk-fnnpqv92.js +714 -0
- package/dist/chunk-fpd3zzx1.js +26696 -0
- package/dist/chunk-fqv2cn76.js +227 -0
- package/dist/chunk-fqw9j3bj.js +439 -0
- package/dist/chunk-frbcqhz0.js +4984 -0
- package/dist/chunk-fzkj59sg.js +174 -0
- package/dist/chunk-fzpzbpbw.js +248 -0
- package/dist/chunk-g52cpmd1.js +686 -0
- package/dist/chunk-g98m2qe6.js +31 -0
- package/dist/chunk-g9zgq4vy.js +715 -0
- package/dist/chunk-gbpt7tm8.js +687 -0
- package/dist/chunk-gg52jka8.js +373 -0
- package/dist/chunk-gjttphax.js +5793 -0
- package/dist/chunk-gs7vjaas.js +65 -0
- package/dist/chunk-gv8n85j2.js +8 -0
- package/dist/chunk-gxdwm6pt.js +650 -0
- package/dist/chunk-gy8wajg2.js +1014 -0
- package/dist/chunk-gz3647m0.js +200 -0
- package/dist/chunk-gzg07mqh.js +16 -0
- package/dist/chunk-h3zc60tq.js +44 -0
- package/dist/chunk-h4p1qt16.js +74 -0
- package/dist/chunk-h8219f18.js +282 -0
- package/dist/chunk-h9agq92v.js +331 -0
- package/dist/chunk-hhjtpwbj.js +16 -0
- package/dist/chunk-hpgpwzra.js +548 -0
- package/dist/chunk-hsnjvn19.js +80 -0
- package/dist/chunk-hsp9qrry.js +417 -0
- package/dist/chunk-hwz6aq2m.js +3939 -0
- package/dist/chunk-hzph0hbh.js +272 -0
- package/dist/chunk-hzqkss6v.js +153 -0
- package/dist/chunk-j0t31f39.js +1149 -0
- package/dist/chunk-j1qm6n1v.js +30 -0
- package/dist/chunk-j6e4b522.js +81 -0
- package/dist/chunk-j7qfbvxk.js +84 -0
- package/dist/chunk-j7qv3hvm.js +1635 -0
- package/dist/chunk-j8mxc6k6.js +213 -0
- package/dist/chunk-jevj87jn.js +224 -0
- package/dist/chunk-jk2ps88q.js +815 -0
- package/dist/chunk-jz7tbdyv.js +1599 -0
- package/dist/chunk-k36jpjvh.js +300 -0
- package/dist/chunk-k4nmrt3w.js +61 -0
- package/dist/chunk-kavn03r9.js +16606 -0
- package/dist/chunk-kkgav8dm.js +54 -0
- package/dist/chunk-kkq26g5c.js +33 -0
- package/dist/chunk-kp6nepx4.js +106 -0
- package/dist/chunk-ksefybc8.js +1551 -0
- package/dist/chunk-kv147680.js +3436 -0
- package/dist/chunk-kya46axt.js +833 -0
- package/dist/chunk-kyz233ny.js +227 -0
- package/dist/chunk-kzs75xmj.js +143 -0
- package/dist/chunk-m0vrez9w.js +266 -0
- package/dist/chunk-m1wadav3.js +118 -0
- package/dist/chunk-m4rfx3cj.js +221 -0
- package/dist/chunk-mc9zaggs.js +6374 -0
- package/dist/chunk-mcg5ttj4.js +105 -0
- package/dist/chunk-mf4r7918.js +63 -0
- package/dist/chunk-mh9khrt4.js +286 -0
- package/dist/chunk-mhc4szw7.js +22 -0
- package/dist/chunk-mkq0yzp0.js +38 -0
- package/dist/chunk-mr58jv4w.js +256 -0
- package/dist/chunk-mrrx3bmt.js +168 -0
- package/dist/chunk-mtyk3zz6.js +87 -0
- package/dist/chunk-mvgxntv6.js +62 -0
- package/dist/chunk-mwnjydcm.js +102 -0
- package/dist/chunk-mwxt0m3f.js +862 -0
- package/dist/chunk-mz1pxck8.js +998 -0
- package/dist/chunk-n3agghys.js +214 -0
- package/dist/chunk-n6q02ya9.js +442 -0
- package/dist/chunk-nt3y91vh.js +443 -0
- package/dist/chunk-nt837qt9.js +21 -0
- package/dist/chunk-ntgmegfs.js +39 -0
- package/dist/chunk-nwk16bbd.js +30 -0
- package/dist/chunk-p367ay90.js +672 -0
- package/dist/chunk-p7m3x9qk.js +48 -0
- package/dist/chunk-pagmjwp5.js +132 -0
- package/dist/chunk-pbd4r8ek.js +161 -0
- package/dist/chunk-pdkpssgv.js +2422 -0
- package/dist/chunk-pf6z1e35.js +32 -0
- package/dist/chunk-pfzejvpt.js +213 -0
- package/dist/chunk-pktxyhvk.js +400 -0
- package/dist/chunk-pp5xhveq.js +124 -0
- package/dist/chunk-ppnd7a8x.js +38 -0
- package/dist/chunk-pqh2w7dr.js +2202 -0
- package/dist/chunk-pr878d0z.js +240 -0
- package/dist/chunk-psf0y7hy.js +140 -0
- package/dist/chunk-pz2zz2f7.js +1586 -0
- package/dist/chunk-q0xkrxy8.js +890 -0
- package/dist/chunk-q5b0kpr3.js +14369 -0
- package/dist/chunk-q7z3t531.js +334 -0
- package/dist/chunk-qdjjtgwt.js +3183 -0
- package/dist/chunk-qezv7msv.js +26 -0
- package/dist/chunk-qmxn7f86.js +2643 -0
- package/dist/chunk-qqc3b97c.js +15 -0
- package/dist/chunk-qwrp63wh.js +145 -0
- package/dist/chunk-qyvqbst3.js +537 -0
- package/dist/chunk-qztvd4hd.js +465 -0
- package/dist/chunk-r0bvez4y.js +235 -0
- package/dist/chunk-r3z0896k.js +2831 -0
- package/dist/chunk-r4cxb6t7.js +32 -0
- package/dist/chunk-rb8k68m7.js +118 -0
- package/dist/chunk-rdprgm4t.js +42 -0
- package/dist/chunk-rex82hys.js +1710 -0
- package/dist/chunk-rjjakkw2.js +2560 -0
- package/dist/chunk-rka6gcv3.js +304 -0
- package/dist/chunk-rkz12ghm.js +144 -0
- package/dist/chunk-rnc7m1qs.js +436 -0
- package/dist/chunk-rx6z23h0.js +165 -0
- package/dist/chunk-s76582j1.js +28 -0
- package/dist/chunk-sez03qd9.js +7140 -0
- package/dist/chunk-sjvdn2ep.js +130 -0
- package/dist/chunk-smwhyy8p.js +115 -0
- package/dist/chunk-snw7nh0d.js +695 -0
- package/dist/chunk-sqx9c057.js +193 -0
- package/dist/chunk-sscms68s.js +16 -0
- package/dist/chunk-stknnmsb.js +272 -0
- package/dist/chunk-sywdxbs6.js +853 -0
- package/dist/chunk-syxy4pf2.js +782 -0
- package/dist/chunk-t0hpqsqn.js +6157 -0
- package/dist/chunk-tjm70vnw.js +123 -0
- package/dist/chunk-trzh0msn.js +154 -0
- package/dist/chunk-v1z17cpg.js +723 -0
- package/dist/chunk-vsfj449x.js +333 -0
- package/dist/chunk-vvkq20tt.js +287 -0
- package/dist/chunk-vxgdzx6p.js +338 -0
- package/dist/chunk-vxqhjyfz.js +15 -0
- package/dist/chunk-vzsstfmb.js +80 -0
- package/dist/chunk-w1jew5sn.js +69 -0
- package/dist/chunk-w3kwr76v.js +789 -0
- package/dist/chunk-w40netr9.js +59 -0
- package/dist/chunk-w99cpfdg.js +559 -0
- package/dist/chunk-wacn14d2.js +271 -0
- package/dist/chunk-wbhrqrq3.js +3033 -0
- package/dist/chunk-wfg9g0p7.js +17612 -0
- package/dist/chunk-wj3vjsbx.js +93 -0
- package/dist/chunk-wjhq855a.js +372 -0
- package/dist/chunk-wr06gqxh.js +114 -0
- package/dist/chunk-ws0z2y1g.js +195 -0
- package/dist/chunk-wt62wqcj.js +98 -0
- package/dist/chunk-wx4v7ddx.js +42 -0
- package/dist/chunk-wy0t3vb2.js +6101 -0
- package/dist/chunk-wysz7qk4.js +280 -0
- package/dist/chunk-x63fx1vd.js +192 -0
- package/dist/chunk-x8b7vft8.js +132 -0
- package/dist/chunk-x8jhkgxb.js +346 -0
- package/dist/chunk-x9z4q5k5.js +275 -0
- package/dist/chunk-xjd7e9jq.js +126 -0
- package/dist/chunk-xjr0n27e.js +42 -0
- package/dist/chunk-xpwyw7cd.js +24 -0
- package/dist/chunk-xw4ycnyz.js +37 -0
- package/dist/chunk-y66bqywr.js +17303 -0
- package/dist/chunk-ycarry7d.js +157 -0
- package/dist/chunk-ycr0hp6v.js +1486 -0
- package/dist/chunk-yqmaw6hf.js +496 -0
- package/dist/chunk-yrtm7d23.js +602 -0
- package/dist/chunk-yts879rw.js +48 -0
- package/dist/chunk-yvmhx96e.js +347 -0
- package/dist/chunk-ywq00rg4.js +246 -0
- package/dist/chunk-yygeg5mj.js +752 -0
- package/dist/chunk-z0exw850.js +726 -0
- package/dist/chunk-z2dp53wn.js +17 -0
- package/dist/chunk-z4rzc9nd.js +103 -0
- package/dist/chunk-zb0akt77.js +684 -0
- package/dist/chunk-zb2xrj5t.js +1789 -0
- package/dist/chunk-zbptn0ky.js +423 -0
- package/dist/chunk-zd45wbmf.js +1090 -0
- package/dist/chunk-zjkvspz9.js +2050 -0
- package/dist/chunk-zke1sp3x.js +1524 -0
- package/dist/chunk-zv2cvfsv.js +58 -0
- package/dist/chunk-zy4tmqst.js +644 -0
- package/dist/chunk-zygzzzvk.js +192 -0
- package/dist/cli-21v3v6ny.md +1 -0
- package/dist/cli.js +246 -0
- package/dist/server-n5f2q89z.md +1 -0
- package/package.json +161 -0
|
@@ -0,0 +1,1563 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
ValidationErrorsList,
|
|
4
|
+
init_ValidationErrorsList
|
|
5
|
+
} from "./chunk-e8ghgwaj.js";
|
|
6
|
+
import {
|
|
7
|
+
init_useSettingsErrors,
|
|
8
|
+
useSettingsErrors
|
|
9
|
+
} from "./chunk-5b833jqs.js";
|
|
10
|
+
import {
|
|
11
|
+
PressEnterToContinue,
|
|
12
|
+
init_PressEnterToContinue
|
|
13
|
+
} from "./chunk-h3zc60tq.js";
|
|
14
|
+
import {
|
|
15
|
+
detectUnreachableRules,
|
|
16
|
+
init_shadowedRuleDetection
|
|
17
|
+
} from "./chunk-wj3vjsbx.js";
|
|
18
|
+
import {
|
|
19
|
+
AGENT_DESCRIPTIONS_THRESHOLD,
|
|
20
|
+
getAgentDescriptionsTotalTokens,
|
|
21
|
+
init_statusNoticeHelpers
|
|
22
|
+
} from "./chunk-xpwyw7cd.js";
|
|
23
|
+
import {
|
|
24
|
+
McpParsingWarnings,
|
|
25
|
+
init_McpParsingWarnings
|
|
26
|
+
} from "./chunk-e224qet4.js";
|
|
27
|
+
import"./chunk-jevj87jn.js";
|
|
28
|
+
import"./chunk-qztvd4hd.js";
|
|
29
|
+
import"./chunk-q0xkrxy8.js";
|
|
30
|
+
import"./chunk-52dzw4bc.js";
|
|
31
|
+
import"./chunk-n6q02ya9.js";
|
|
32
|
+
import"./chunk-b4tpz2g1.js";
|
|
33
|
+
import"./chunk-n3agghys.js";
|
|
34
|
+
import {
|
|
35
|
+
init_useExitOnCtrlCDWithKeybindings,
|
|
36
|
+
useExitOnCtrlCDWithKeybindings
|
|
37
|
+
} from "./chunk-f9rahzgr.js";
|
|
38
|
+
import"./chunk-ex41stfq.js";
|
|
39
|
+
import {
|
|
40
|
+
Pane,
|
|
41
|
+
init_Pane,
|
|
42
|
+
init_useKeybinding,
|
|
43
|
+
useKeybindings
|
|
44
|
+
} from "./chunk-8n4n4m67.js";
|
|
45
|
+
import"./chunk-xjr0n27e.js";
|
|
46
|
+
import {
|
|
47
|
+
require_jsx_dev_runtime,
|
|
48
|
+
require_react
|
|
49
|
+
} from "./chunk-0yz17yjy.js";
|
|
50
|
+
import"./chunk-9m5rn7hk.js";
|
|
51
|
+
import"./chunk-19jvvqzp.js";
|
|
52
|
+
import"./chunk-2n0s2dhc.js";
|
|
53
|
+
import"./chunk-epwrzr35.js";
|
|
54
|
+
import"./chunk-1ztm9yps.js";
|
|
55
|
+
import"./chunk-78n9kfp8.js";
|
|
56
|
+
import"./chunk-j8mxc6k6.js";
|
|
57
|
+
import"./chunk-z0exw850.js";
|
|
58
|
+
import"./chunk-3jf3k40v.js";
|
|
59
|
+
import"./chunk-yvmhx96e.js";
|
|
60
|
+
import"./chunk-qezv7msv.js";
|
|
61
|
+
import"./chunk-sscms68s.js";
|
|
62
|
+
import"./chunk-7e1qjk3s.js";
|
|
63
|
+
import"./chunk-1gjysfnf.js";
|
|
64
|
+
import"./chunk-vxgdzx6p.js";
|
|
65
|
+
import"./chunk-kv147680.js";
|
|
66
|
+
import"./chunk-2p0hvt8k.js";
|
|
67
|
+
import"./chunk-ycr0hp6v.js";
|
|
68
|
+
import"./chunk-zb2xrj5t.js";
|
|
69
|
+
import"./chunk-9029sbq1.js";
|
|
70
|
+
import"./chunk-ezpa510h.js";
|
|
71
|
+
import"./chunk-kp6nepx4.js";
|
|
72
|
+
import"./chunk-1jjzp2pa.js";
|
|
73
|
+
import"./chunk-w1jew5sn.js";
|
|
74
|
+
import"./chunk-g98m2qe6.js";
|
|
75
|
+
import {
|
|
76
|
+
figures_default,
|
|
77
|
+
init_figures
|
|
78
|
+
} from "./chunk-sez03qd9.js";
|
|
79
|
+
import"./chunk-vsfj449x.js";
|
|
80
|
+
import"./chunk-r4cxb6t7.js";
|
|
81
|
+
import"./chunk-bp0ynk17.js";
|
|
82
|
+
import"./chunk-7yexhdjs.js";
|
|
83
|
+
import"./chunk-rex82hys.js";
|
|
84
|
+
import {
|
|
85
|
+
getClaudeConfigHomeDir,
|
|
86
|
+
init_envUtils
|
|
87
|
+
} from "./chunk-4s93jyky.js";
|
|
88
|
+
import"./chunk-318g78ty.js";
|
|
89
|
+
import"./chunk-c0bdmy7w.js";
|
|
90
|
+
import"./chunk-syxy4pf2.js";
|
|
91
|
+
import {
|
|
92
|
+
__esm,
|
|
93
|
+
__toESM
|
|
94
|
+
} from "./chunk-eta5aekm.js";
|
|
95
|
+
import {
|
|
96
|
+
BASH_MAX_OUTPUT_DEFAULT,
|
|
97
|
+
BASH_MAX_OUTPUT_UPPER_LIMIT,
|
|
98
|
+
MAX_MEMORY_CHARACTER_COUNT,
|
|
99
|
+
SandboxManager,
|
|
100
|
+
TASK_MAX_OUTPUT_DEFAULT,
|
|
101
|
+
TASK_MAX_OUTPUT_UPPER_LIMIT,
|
|
102
|
+
cleanupStaleLocks,
|
|
103
|
+
countMcpToolTokens,
|
|
104
|
+
getAllLockInfo,
|
|
105
|
+
getCachedKeybindingWarnings,
|
|
106
|
+
getDoctorDiagnostic,
|
|
107
|
+
getGcsDistTags,
|
|
108
|
+
getKeybindingsPath,
|
|
109
|
+
getLargeMemoryFiles,
|
|
110
|
+
getMemoryFiles,
|
|
111
|
+
getNpmDistTags,
|
|
112
|
+
getPluginErrorMessage,
|
|
113
|
+
getXDGStateHome,
|
|
114
|
+
init_AppState,
|
|
115
|
+
init_analyzeContext,
|
|
116
|
+
init_autoUpdater,
|
|
117
|
+
init_claudemd,
|
|
118
|
+
init_doctorDiagnostic,
|
|
119
|
+
init_envValidation,
|
|
120
|
+
init_loadUserBindings,
|
|
121
|
+
init_outputFormatting,
|
|
122
|
+
init_outputLimits,
|
|
123
|
+
init_pidLock,
|
|
124
|
+
init_sandbox_adapter,
|
|
125
|
+
init_tokenEstimation,
|
|
126
|
+
init_xdg,
|
|
127
|
+
isKeybindingCustomizationEnabled,
|
|
128
|
+
isPidBasedLockingEnabled,
|
|
129
|
+
roughTokenCountEstimation,
|
|
130
|
+
useAppState,
|
|
131
|
+
validateBoundedIntEnvVar
|
|
132
|
+
} from "./chunk-ccyg9ap9.js";
|
|
133
|
+
import"./chunk-846rr9n1.js";
|
|
134
|
+
import"./chunk-fnnpqv92.js";
|
|
135
|
+
import"./chunk-2yqy25z4.js";
|
|
136
|
+
import"./chunk-zygzzzvk.js";
|
|
137
|
+
import"./chunk-evp72hv5.js";
|
|
138
|
+
import"./chunk-jz7tbdyv.js";
|
|
139
|
+
import"./chunk-vxqhjyfz.js";
|
|
140
|
+
import"./chunk-mf4r7918.js";
|
|
141
|
+
import"./chunk-sywdxbs6.js";
|
|
142
|
+
import"./chunk-cjqxdnf9.js";
|
|
143
|
+
import"./chunk-9qasfk8n.js";
|
|
144
|
+
import {
|
|
145
|
+
ThemedBox_default,
|
|
146
|
+
ThemedText,
|
|
147
|
+
init_ink,
|
|
148
|
+
require_compiler_runtime
|
|
149
|
+
} from "./chunk-fpd3zzx1.js";
|
|
150
|
+
import"./chunk-bv4c48a5.js";
|
|
151
|
+
import"./chunk-6jta29r1.js";
|
|
152
|
+
import"./chunk-z4rzc9nd.js";
|
|
153
|
+
import"./chunk-9bs8n985.js";
|
|
154
|
+
import"./chunk-6xqp51qr.js";
|
|
155
|
+
import"./chunk-35dw2r9g.js";
|
|
156
|
+
import {
|
|
157
|
+
getInitialSettings,
|
|
158
|
+
getMainLoopModel,
|
|
159
|
+
getModelMaxOutputTokens,
|
|
160
|
+
init_context,
|
|
161
|
+
init_file,
|
|
162
|
+
init_model,
|
|
163
|
+
init_permissionRuleParser,
|
|
164
|
+
init_settings1 as init_settings,
|
|
165
|
+
init_stringUtils,
|
|
166
|
+
pathExists,
|
|
167
|
+
permissionRuleValueToString,
|
|
168
|
+
plural
|
|
169
|
+
} from "./chunk-y66bqywr.js";
|
|
170
|
+
import"./chunk-nwk16bbd.js";
|
|
171
|
+
import"./chunk-rx6z23h0.js";
|
|
172
|
+
import"./chunk-df5c1x8m.js";
|
|
173
|
+
import"./chunk-qwrp63wh.js";
|
|
174
|
+
import"./chunk-65z8hg8j.js";
|
|
175
|
+
import"./chunk-5cp2q9sh.js";
|
|
176
|
+
import {
|
|
177
|
+
getOriginalCwd,
|
|
178
|
+
init_state
|
|
179
|
+
} from "./chunk-rjjakkw2.js";
|
|
180
|
+
import"./chunk-0sbddf6m.js";
|
|
181
|
+
import"./chunk-q5b0kpr3.js";
|
|
182
|
+
|
|
183
|
+
// src/components/KeybindingWarnings.tsx
|
|
184
|
+
function KeybindingWarnings() {
|
|
185
|
+
const $ = import_compiler_runtime.c(2);
|
|
186
|
+
if (!isKeybindingCustomizationEnabled()) {
|
|
187
|
+
return null;
|
|
188
|
+
}
|
|
189
|
+
let t0;
|
|
190
|
+
let t1;
|
|
191
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
192
|
+
t1 = Symbol.for("react.early_return_sentinel");
|
|
193
|
+
bb0: {
|
|
194
|
+
const warnings = getCachedKeybindingWarnings();
|
|
195
|
+
if (warnings.length === 0) {
|
|
196
|
+
t1 = null;
|
|
197
|
+
break bb0;
|
|
198
|
+
}
|
|
199
|
+
const errors = warnings.filter(_temp);
|
|
200
|
+
const warns = warnings.filter(_temp2);
|
|
201
|
+
t0 = /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
202
|
+
flexDirection: "column",
|
|
203
|
+
marginTop: 1,
|
|
204
|
+
marginBottom: 1,
|
|
205
|
+
children: [
|
|
206
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
207
|
+
bold: true,
|
|
208
|
+
color: errors.length > 0 ? "error" : "warning",
|
|
209
|
+
children: "Keybinding Configuration Issues"
|
|
210
|
+
}, undefined, false, undefined, this),
|
|
211
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
212
|
+
children: [
|
|
213
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
214
|
+
dimColor: true,
|
|
215
|
+
children: "Location: "
|
|
216
|
+
}, undefined, false, undefined, this),
|
|
217
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
218
|
+
dimColor: true,
|
|
219
|
+
children: getKeybindingsPath()
|
|
220
|
+
}, undefined, false, undefined, this)
|
|
221
|
+
]
|
|
222
|
+
}, undefined, true, undefined, this),
|
|
223
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
224
|
+
marginLeft: 1,
|
|
225
|
+
flexDirection: "column",
|
|
226
|
+
marginTop: 1,
|
|
227
|
+
children: [
|
|
228
|
+
errors.map(_temp3),
|
|
229
|
+
warns.map(_temp4)
|
|
230
|
+
]
|
|
231
|
+
}, undefined, true, undefined, this)
|
|
232
|
+
]
|
|
233
|
+
}, undefined, true, undefined, this);
|
|
234
|
+
}
|
|
235
|
+
$[0] = t0;
|
|
236
|
+
$[1] = t1;
|
|
237
|
+
} else {
|
|
238
|
+
t0 = $[0];
|
|
239
|
+
t1 = $[1];
|
|
240
|
+
}
|
|
241
|
+
if (t1 !== Symbol.for("react.early_return_sentinel")) {
|
|
242
|
+
return t1;
|
|
243
|
+
}
|
|
244
|
+
return t0;
|
|
245
|
+
}
|
|
246
|
+
function _temp4(warning, i_0) {
|
|
247
|
+
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
248
|
+
flexDirection: "column",
|
|
249
|
+
children: [
|
|
250
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
251
|
+
children: [
|
|
252
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
253
|
+
dimColor: true,
|
|
254
|
+
children: "\u2514 "
|
|
255
|
+
}, undefined, false, undefined, this),
|
|
256
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
257
|
+
color: "warning",
|
|
258
|
+
children: "[Warning]"
|
|
259
|
+
}, undefined, false, undefined, this),
|
|
260
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
261
|
+
dimColor: true,
|
|
262
|
+
children: [
|
|
263
|
+
" ",
|
|
264
|
+
warning.message
|
|
265
|
+
]
|
|
266
|
+
}, undefined, true, undefined, this)
|
|
267
|
+
]
|
|
268
|
+
}, undefined, true, undefined, this),
|
|
269
|
+
warning.suggestion && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
270
|
+
marginLeft: 3,
|
|
271
|
+
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
272
|
+
dimColor: true,
|
|
273
|
+
children: [
|
|
274
|
+
"\u2192 ",
|
|
275
|
+
warning.suggestion
|
|
276
|
+
]
|
|
277
|
+
}, undefined, true, undefined, this)
|
|
278
|
+
}, undefined, false, undefined, this)
|
|
279
|
+
]
|
|
280
|
+
}, `warning-${i_0}`, true, undefined, this);
|
|
281
|
+
}
|
|
282
|
+
function _temp3(error, i) {
|
|
283
|
+
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
284
|
+
flexDirection: "column",
|
|
285
|
+
children: [
|
|
286
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
287
|
+
children: [
|
|
288
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
289
|
+
dimColor: true,
|
|
290
|
+
children: "\u2514 "
|
|
291
|
+
}, undefined, false, undefined, this),
|
|
292
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
293
|
+
color: "error",
|
|
294
|
+
children: "[Error]"
|
|
295
|
+
}, undefined, false, undefined, this),
|
|
296
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
297
|
+
dimColor: true,
|
|
298
|
+
children: [
|
|
299
|
+
" ",
|
|
300
|
+
error.message
|
|
301
|
+
]
|
|
302
|
+
}, undefined, true, undefined, this)
|
|
303
|
+
]
|
|
304
|
+
}, undefined, true, undefined, this),
|
|
305
|
+
error.suggestion && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
306
|
+
marginLeft: 3,
|
|
307
|
+
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
308
|
+
dimColor: true,
|
|
309
|
+
children: [
|
|
310
|
+
"\u2192 ",
|
|
311
|
+
error.suggestion
|
|
312
|
+
]
|
|
313
|
+
}, undefined, true, undefined, this)
|
|
314
|
+
}, undefined, false, undefined, this)
|
|
315
|
+
]
|
|
316
|
+
}, `error-${i}`, true, undefined, this);
|
|
317
|
+
}
|
|
318
|
+
function _temp2(w_0) {
|
|
319
|
+
return w_0.severity === "warning";
|
|
320
|
+
}
|
|
321
|
+
function _temp(w) {
|
|
322
|
+
return w.severity === "error";
|
|
323
|
+
}
|
|
324
|
+
var import_compiler_runtime, jsx_dev_runtime;
|
|
325
|
+
var init_KeybindingWarnings = __esm(() => {
|
|
326
|
+
init_ink();
|
|
327
|
+
init_loadUserBindings();
|
|
328
|
+
import_compiler_runtime = __toESM(require_compiler_runtime(), 1);
|
|
329
|
+
jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
|
|
330
|
+
});
|
|
331
|
+
|
|
332
|
+
// src/components/sandbox/SandboxDoctorSection.tsx
|
|
333
|
+
function SandboxDoctorSection() {
|
|
334
|
+
const $ = import_compiler_runtime2.c(2);
|
|
335
|
+
if (!SandboxManager.isSupportedPlatform()) {
|
|
336
|
+
return null;
|
|
337
|
+
}
|
|
338
|
+
if (!SandboxManager.isSandboxEnabledInSettings()) {
|
|
339
|
+
return null;
|
|
340
|
+
}
|
|
341
|
+
let t0;
|
|
342
|
+
let t1;
|
|
343
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
344
|
+
t1 = Symbol.for("react.early_return_sentinel");
|
|
345
|
+
bb0: {
|
|
346
|
+
const depCheck = SandboxManager.checkDependencies();
|
|
347
|
+
const hasErrors = depCheck.errors.length > 0;
|
|
348
|
+
const hasWarnings = depCheck.warnings.length > 0;
|
|
349
|
+
if (!hasErrors && !hasWarnings) {
|
|
350
|
+
t1 = null;
|
|
351
|
+
break bb0;
|
|
352
|
+
}
|
|
353
|
+
const statusColor = hasErrors ? "error" : "warning";
|
|
354
|
+
const statusText = hasErrors ? "Missing dependencies" : "Available (with warnings)";
|
|
355
|
+
t0 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
356
|
+
flexDirection: "column",
|
|
357
|
+
children: [
|
|
358
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
359
|
+
bold: true,
|
|
360
|
+
children: "Sandbox"
|
|
361
|
+
}, undefined, false, undefined, this),
|
|
362
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
363
|
+
children: [
|
|
364
|
+
"\u2514 Status: ",
|
|
365
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
366
|
+
color: statusColor,
|
|
367
|
+
children: statusText
|
|
368
|
+
}, undefined, false, undefined, this)
|
|
369
|
+
]
|
|
370
|
+
}, undefined, true, undefined, this),
|
|
371
|
+
depCheck.errors.map(_temp5),
|
|
372
|
+
depCheck.warnings.map(_temp22),
|
|
373
|
+
hasErrors && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
374
|
+
dimColor: true,
|
|
375
|
+
children: "\u2514 Run /sandbox for install instructions"
|
|
376
|
+
}, undefined, false, undefined, this)
|
|
377
|
+
]
|
|
378
|
+
}, undefined, true, undefined, this);
|
|
379
|
+
}
|
|
380
|
+
$[0] = t0;
|
|
381
|
+
$[1] = t1;
|
|
382
|
+
} else {
|
|
383
|
+
t0 = $[0];
|
|
384
|
+
t1 = $[1];
|
|
385
|
+
}
|
|
386
|
+
if (t1 !== Symbol.for("react.early_return_sentinel")) {
|
|
387
|
+
return t1;
|
|
388
|
+
}
|
|
389
|
+
return t0;
|
|
390
|
+
}
|
|
391
|
+
function _temp22(w, i_0) {
|
|
392
|
+
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
393
|
+
color: "warning",
|
|
394
|
+
children: [
|
|
395
|
+
"\u2514 ",
|
|
396
|
+
w
|
|
397
|
+
]
|
|
398
|
+
}, i_0, true, undefined, this);
|
|
399
|
+
}
|
|
400
|
+
function _temp5(e, i) {
|
|
401
|
+
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
402
|
+
color: "error",
|
|
403
|
+
children: [
|
|
404
|
+
"\u2514 ",
|
|
405
|
+
e
|
|
406
|
+
]
|
|
407
|
+
}, i, true, undefined, this);
|
|
408
|
+
}
|
|
409
|
+
var import_compiler_runtime2, jsx_dev_runtime2;
|
|
410
|
+
var init_SandboxDoctorSection = __esm(() => {
|
|
411
|
+
init_ink();
|
|
412
|
+
init_sandbox_adapter();
|
|
413
|
+
import_compiler_runtime2 = __toESM(require_compiler_runtime(), 1);
|
|
414
|
+
jsx_dev_runtime2 = __toESM(require_jsx_dev_runtime(), 1);
|
|
415
|
+
});
|
|
416
|
+
|
|
417
|
+
// src/utils/doctorContextWarnings.ts
|
|
418
|
+
async function checkClaudeMdFiles() {
|
|
419
|
+
const largeFiles = getLargeMemoryFiles(await getMemoryFiles());
|
|
420
|
+
if (largeFiles.length === 0) {
|
|
421
|
+
return null;
|
|
422
|
+
}
|
|
423
|
+
const details = largeFiles.sort((a, b) => b.content.length - a.content.length).map((file) => `${file.path}: ${file.content.length.toLocaleString()} chars`);
|
|
424
|
+
const message = largeFiles.length === 1 ? `Large CLAUDE.md file detected (${largeFiles[0].content.length.toLocaleString()} chars > ${MAX_MEMORY_CHARACTER_COUNT.toLocaleString()})` : `${largeFiles.length} large CLAUDE.md files detected (each > ${MAX_MEMORY_CHARACTER_COUNT.toLocaleString()} chars)`;
|
|
425
|
+
return {
|
|
426
|
+
type: "claudemd_files",
|
|
427
|
+
severity: "warning",
|
|
428
|
+
message,
|
|
429
|
+
details,
|
|
430
|
+
currentValue: largeFiles.length,
|
|
431
|
+
threshold: MAX_MEMORY_CHARACTER_COUNT
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
async function checkAgentDescriptions(agentInfo) {
|
|
435
|
+
if (!agentInfo) {
|
|
436
|
+
return null;
|
|
437
|
+
}
|
|
438
|
+
const totalTokens = getAgentDescriptionsTotalTokens(agentInfo);
|
|
439
|
+
if (totalTokens <= AGENT_DESCRIPTIONS_THRESHOLD) {
|
|
440
|
+
return null;
|
|
441
|
+
}
|
|
442
|
+
const agentTokens = agentInfo.activeAgents.filter((a) => a.source !== "built-in").map((agent) => {
|
|
443
|
+
const description = `${agent.agentType}: ${agent.whenToUse}`;
|
|
444
|
+
return {
|
|
445
|
+
name: agent.agentType,
|
|
446
|
+
tokens: roughTokenCountEstimation(description)
|
|
447
|
+
};
|
|
448
|
+
}).sort((a, b) => b.tokens - a.tokens);
|
|
449
|
+
const details = agentTokens.slice(0, 5).map((agent) => `${agent.name}: ~${agent.tokens.toLocaleString()} tokens`);
|
|
450
|
+
if (agentTokens.length > 5) {
|
|
451
|
+
details.push(`(${agentTokens.length - 5} more custom agents)`);
|
|
452
|
+
}
|
|
453
|
+
return {
|
|
454
|
+
type: "agent_descriptions",
|
|
455
|
+
severity: "warning",
|
|
456
|
+
message: `Large agent descriptions (~${totalTokens.toLocaleString()} tokens > ${AGENT_DESCRIPTIONS_THRESHOLD.toLocaleString()})`,
|
|
457
|
+
details,
|
|
458
|
+
currentValue: totalTokens,
|
|
459
|
+
threshold: AGENT_DESCRIPTIONS_THRESHOLD
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
async function checkMcpTools(tools, getToolPermissionContext, agentInfo) {
|
|
463
|
+
const mcpTools = tools.filter((tool) => tool.isMcp);
|
|
464
|
+
if (mcpTools.length === 0) {
|
|
465
|
+
return null;
|
|
466
|
+
}
|
|
467
|
+
try {
|
|
468
|
+
const model = getMainLoopModel();
|
|
469
|
+
const { mcpToolTokens, mcpToolDetails } = await countMcpToolTokens(tools, getToolPermissionContext, agentInfo, model);
|
|
470
|
+
if (mcpToolTokens <= MCP_TOOLS_THRESHOLD) {
|
|
471
|
+
return null;
|
|
472
|
+
}
|
|
473
|
+
const toolsByServer = new Map;
|
|
474
|
+
for (const tool of mcpToolDetails) {
|
|
475
|
+
const parts = tool.name.split("__");
|
|
476
|
+
const serverName = parts[1] || "unknown";
|
|
477
|
+
const current = toolsByServer.get(serverName) || { count: 0, tokens: 0 };
|
|
478
|
+
toolsByServer.set(serverName, {
|
|
479
|
+
count: current.count + 1,
|
|
480
|
+
tokens: current.tokens + tool.tokens
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
const sortedServers = Array.from(toolsByServer.entries()).sort((a, b) => b[1].tokens - a[1].tokens);
|
|
484
|
+
const details = sortedServers.slice(0, 5).map(([name, info]) => `${name}: ${info.count} tools (~${info.tokens.toLocaleString()} tokens)`);
|
|
485
|
+
if (sortedServers.length > 5) {
|
|
486
|
+
details.push(`(${sortedServers.length - 5} more servers)`);
|
|
487
|
+
}
|
|
488
|
+
return {
|
|
489
|
+
type: "mcp_tools",
|
|
490
|
+
severity: "warning",
|
|
491
|
+
message: `Large MCP tools context (~${mcpToolTokens.toLocaleString()} tokens > ${MCP_TOOLS_THRESHOLD.toLocaleString()})`,
|
|
492
|
+
details,
|
|
493
|
+
currentValue: mcpToolTokens,
|
|
494
|
+
threshold: MCP_TOOLS_THRESHOLD
|
|
495
|
+
};
|
|
496
|
+
} catch (_error) {
|
|
497
|
+
const estimatedTokens = mcpTools.reduce((total, tool) => {
|
|
498
|
+
const chars = (tool.name?.length || 0) + tool.description.length;
|
|
499
|
+
return total + roughTokenCountEstimation(chars.toString());
|
|
500
|
+
}, 0);
|
|
501
|
+
if (estimatedTokens <= MCP_TOOLS_THRESHOLD) {
|
|
502
|
+
return null;
|
|
503
|
+
}
|
|
504
|
+
return {
|
|
505
|
+
type: "mcp_tools",
|
|
506
|
+
severity: "warning",
|
|
507
|
+
message: `Large MCP tools context (~${estimatedTokens.toLocaleString()} tokens estimated > ${MCP_TOOLS_THRESHOLD.toLocaleString()})`,
|
|
508
|
+
details: [
|
|
509
|
+
`${mcpTools.length} MCP tools detected (token count estimated)`
|
|
510
|
+
],
|
|
511
|
+
currentValue: estimatedTokens,
|
|
512
|
+
threshold: MCP_TOOLS_THRESHOLD
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
async function checkUnreachableRules(getToolPermissionContext) {
|
|
517
|
+
const context = await getToolPermissionContext();
|
|
518
|
+
const sandboxAutoAllowEnabled = SandboxManager.isSandboxingEnabled() && SandboxManager.isAutoAllowBashIfSandboxedEnabled();
|
|
519
|
+
const unreachable = detectUnreachableRules(context, {
|
|
520
|
+
sandboxAutoAllowEnabled
|
|
521
|
+
});
|
|
522
|
+
if (unreachable.length === 0) {
|
|
523
|
+
return null;
|
|
524
|
+
}
|
|
525
|
+
const details = unreachable.flatMap((r) => [
|
|
526
|
+
`${permissionRuleValueToString(r.rule.ruleValue)}: ${r.reason}`,
|
|
527
|
+
` Fix: ${r.fix}`
|
|
528
|
+
]);
|
|
529
|
+
return {
|
|
530
|
+
type: "unreachable_rules",
|
|
531
|
+
severity: "warning",
|
|
532
|
+
message: `${unreachable.length} ${plural(unreachable.length, "unreachable permission rule")} detected`,
|
|
533
|
+
details,
|
|
534
|
+
currentValue: unreachable.length,
|
|
535
|
+
threshold: 0
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
async function checkContextWarnings(tools, agentInfo, getToolPermissionContext) {
|
|
539
|
+
const [claudeMdWarning, agentWarning, mcpWarning, unreachableRulesWarning] = await Promise.all([
|
|
540
|
+
checkClaudeMdFiles(),
|
|
541
|
+
checkAgentDescriptions(agentInfo),
|
|
542
|
+
checkMcpTools(tools, getToolPermissionContext, agentInfo),
|
|
543
|
+
checkUnreachableRules(getToolPermissionContext)
|
|
544
|
+
]);
|
|
545
|
+
return {
|
|
546
|
+
claudeMdWarning,
|
|
547
|
+
agentWarning,
|
|
548
|
+
mcpWarning,
|
|
549
|
+
unreachableRulesWarning
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
var MCP_TOOLS_THRESHOLD = 25000;
|
|
553
|
+
var init_doctorContextWarnings = __esm(() => {
|
|
554
|
+
init_tokenEstimation();
|
|
555
|
+
init_analyzeContext();
|
|
556
|
+
init_claudemd();
|
|
557
|
+
init_model();
|
|
558
|
+
init_permissionRuleParser();
|
|
559
|
+
init_shadowedRuleDetection();
|
|
560
|
+
init_sandbox_adapter();
|
|
561
|
+
init_statusNoticeHelpers();
|
|
562
|
+
init_stringUtils();
|
|
563
|
+
});
|
|
564
|
+
|
|
565
|
+
// src/screens/Doctor.tsx
|
|
566
|
+
import { join } from "path";
|
|
567
|
+
function DistTagsDisplay(t0) {
|
|
568
|
+
const $ = import_compiler_runtime3.c(8);
|
|
569
|
+
const {
|
|
570
|
+
promise
|
|
571
|
+
} = t0;
|
|
572
|
+
const distTags = import_react.use(promise);
|
|
573
|
+
if (!distTags.latest) {
|
|
574
|
+
let t12;
|
|
575
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
576
|
+
t12 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
577
|
+
dimColor: true,
|
|
578
|
+
children: "\u2514 Failed to fetch versions"
|
|
579
|
+
}, undefined, false, undefined, this);
|
|
580
|
+
$[0] = t12;
|
|
581
|
+
} else {
|
|
582
|
+
t12 = $[0];
|
|
583
|
+
}
|
|
584
|
+
return t12;
|
|
585
|
+
}
|
|
586
|
+
let t1;
|
|
587
|
+
if ($[1] !== distTags.stable) {
|
|
588
|
+
t1 = distTags.stable && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
589
|
+
children: [
|
|
590
|
+
"\u2514 Stable version: ",
|
|
591
|
+
distTags.stable
|
|
592
|
+
]
|
|
593
|
+
}, undefined, true, undefined, this);
|
|
594
|
+
$[1] = distTags.stable;
|
|
595
|
+
$[2] = t1;
|
|
596
|
+
} else {
|
|
597
|
+
t1 = $[2];
|
|
598
|
+
}
|
|
599
|
+
let t2;
|
|
600
|
+
if ($[3] !== distTags.latest) {
|
|
601
|
+
t2 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
602
|
+
children: [
|
|
603
|
+
"\u2514 Latest version: ",
|
|
604
|
+
distTags.latest
|
|
605
|
+
]
|
|
606
|
+
}, undefined, true, undefined, this);
|
|
607
|
+
$[3] = distTags.latest;
|
|
608
|
+
$[4] = t2;
|
|
609
|
+
} else {
|
|
610
|
+
t2 = $[4];
|
|
611
|
+
}
|
|
612
|
+
let t3;
|
|
613
|
+
if ($[5] !== t1 || $[6] !== t2) {
|
|
614
|
+
t3 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(jsx_dev_runtime3.Fragment, {
|
|
615
|
+
children: [
|
|
616
|
+
t1,
|
|
617
|
+
t2
|
|
618
|
+
]
|
|
619
|
+
}, undefined, true, undefined, this);
|
|
620
|
+
$[5] = t1;
|
|
621
|
+
$[6] = t2;
|
|
622
|
+
$[7] = t3;
|
|
623
|
+
} else {
|
|
624
|
+
t3 = $[7];
|
|
625
|
+
}
|
|
626
|
+
return t3;
|
|
627
|
+
}
|
|
628
|
+
function Doctor(t0) {
|
|
629
|
+
const $ = import_compiler_runtime3.c(84);
|
|
630
|
+
const {
|
|
631
|
+
onDone
|
|
632
|
+
} = t0;
|
|
633
|
+
const agentDefinitions = useAppState(_temp19);
|
|
634
|
+
const mcpTools = useAppState(_temp23);
|
|
635
|
+
const toolPermissionContext = useAppState(_temp32);
|
|
636
|
+
const pluginsErrors = useAppState(_temp42);
|
|
637
|
+
useExitOnCtrlCDWithKeybindings();
|
|
638
|
+
let t1;
|
|
639
|
+
if ($[0] !== mcpTools) {
|
|
640
|
+
t1 = mcpTools || [];
|
|
641
|
+
$[0] = mcpTools;
|
|
642
|
+
$[1] = t1;
|
|
643
|
+
} else {
|
|
644
|
+
t1 = $[1];
|
|
645
|
+
}
|
|
646
|
+
const tools = t1;
|
|
647
|
+
const [diagnostic, setDiagnostic] = import_react.useState(null);
|
|
648
|
+
const [agentInfo, setAgentInfo] = import_react.useState(null);
|
|
649
|
+
const [contextWarnings, setContextWarnings] = import_react.useState(null);
|
|
650
|
+
const [versionLockInfo, setVersionLockInfo] = import_react.useState(null);
|
|
651
|
+
const validationErrors = useSettingsErrors();
|
|
652
|
+
let t2;
|
|
653
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
654
|
+
t2 = getDoctorDiagnostic().then(_temp6);
|
|
655
|
+
$[2] = t2;
|
|
656
|
+
} else {
|
|
657
|
+
t2 = $[2];
|
|
658
|
+
}
|
|
659
|
+
const distTagsPromise = t2;
|
|
660
|
+
const autoUpdatesChannel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
661
|
+
let t3;
|
|
662
|
+
if ($[3] !== validationErrors) {
|
|
663
|
+
t3 = validationErrors.filter(_temp7);
|
|
664
|
+
$[3] = validationErrors;
|
|
665
|
+
$[4] = t3;
|
|
666
|
+
} else {
|
|
667
|
+
t3 = $[4];
|
|
668
|
+
}
|
|
669
|
+
const errorsExcludingMcp = t3;
|
|
670
|
+
let t4;
|
|
671
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
672
|
+
const envVars = [{
|
|
673
|
+
name: "BASH_MAX_OUTPUT_LENGTH",
|
|
674
|
+
default: BASH_MAX_OUTPUT_DEFAULT,
|
|
675
|
+
upperLimit: BASH_MAX_OUTPUT_UPPER_LIMIT
|
|
676
|
+
}, {
|
|
677
|
+
name: "TASK_MAX_OUTPUT_LENGTH",
|
|
678
|
+
default: TASK_MAX_OUTPUT_DEFAULT,
|
|
679
|
+
upperLimit: TASK_MAX_OUTPUT_UPPER_LIMIT
|
|
680
|
+
}, {
|
|
681
|
+
name: "CLAUDE_CODE_MAX_OUTPUT_TOKENS",
|
|
682
|
+
...getModelMaxOutputTokens("claude-opus-4-6")
|
|
683
|
+
}];
|
|
684
|
+
t4 = envVars.map(_temp8).filter(_temp9);
|
|
685
|
+
$[5] = t4;
|
|
686
|
+
} else {
|
|
687
|
+
t4 = $[5];
|
|
688
|
+
}
|
|
689
|
+
const envValidationErrors = t4;
|
|
690
|
+
let t5;
|
|
691
|
+
let t6;
|
|
692
|
+
if ($[6] !== agentDefinitions || $[7] !== toolPermissionContext || $[8] !== tools) {
|
|
693
|
+
t5 = () => {
|
|
694
|
+
getDoctorDiagnostic().then(setDiagnostic);
|
|
695
|
+
(async () => {
|
|
696
|
+
const userAgentsDir = join(getClaudeConfigHomeDir(), "agents");
|
|
697
|
+
const projectAgentsDir = join(getOriginalCwd(), ".claude", "agents");
|
|
698
|
+
const {
|
|
699
|
+
activeAgents,
|
|
700
|
+
allAgents,
|
|
701
|
+
failedFiles
|
|
702
|
+
} = agentDefinitions;
|
|
703
|
+
const [userDirExists, projectDirExists] = await Promise.all([pathExists(userAgentsDir), pathExists(projectAgentsDir)]);
|
|
704
|
+
const agentInfoData = {
|
|
705
|
+
activeAgents: activeAgents.map(_temp0),
|
|
706
|
+
userAgentsDir,
|
|
707
|
+
projectAgentsDir,
|
|
708
|
+
userDirExists,
|
|
709
|
+
projectDirExists,
|
|
710
|
+
failedFiles
|
|
711
|
+
};
|
|
712
|
+
setAgentInfo(agentInfoData);
|
|
713
|
+
const warnings = await checkContextWarnings(tools, {
|
|
714
|
+
activeAgents,
|
|
715
|
+
allAgents,
|
|
716
|
+
failedFiles
|
|
717
|
+
}, async () => toolPermissionContext);
|
|
718
|
+
setContextWarnings(warnings);
|
|
719
|
+
if (isPidBasedLockingEnabled()) {
|
|
720
|
+
const locksDir = join(getXDGStateHome(), "claude", "locks");
|
|
721
|
+
const staleLocksCleaned = cleanupStaleLocks(locksDir);
|
|
722
|
+
const locks = getAllLockInfo(locksDir);
|
|
723
|
+
setVersionLockInfo({
|
|
724
|
+
enabled: true,
|
|
725
|
+
locks,
|
|
726
|
+
locksDir,
|
|
727
|
+
staleLocksCleaned
|
|
728
|
+
});
|
|
729
|
+
} else {
|
|
730
|
+
setVersionLockInfo({
|
|
731
|
+
enabled: false,
|
|
732
|
+
locks: [],
|
|
733
|
+
locksDir: "",
|
|
734
|
+
staleLocksCleaned: 0
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
})();
|
|
738
|
+
};
|
|
739
|
+
t6 = [toolPermissionContext, tools, agentDefinitions];
|
|
740
|
+
$[6] = agentDefinitions;
|
|
741
|
+
$[7] = toolPermissionContext;
|
|
742
|
+
$[8] = tools;
|
|
743
|
+
$[9] = t5;
|
|
744
|
+
$[10] = t6;
|
|
745
|
+
} else {
|
|
746
|
+
t5 = $[9];
|
|
747
|
+
t6 = $[10];
|
|
748
|
+
}
|
|
749
|
+
import_react.useEffect(t5, t6);
|
|
750
|
+
let t7;
|
|
751
|
+
if ($[11] !== onDone) {
|
|
752
|
+
t7 = () => {
|
|
753
|
+
onDone("Claude Code diagnostics dismissed", {
|
|
754
|
+
display: "system"
|
|
755
|
+
});
|
|
756
|
+
};
|
|
757
|
+
$[11] = onDone;
|
|
758
|
+
$[12] = t7;
|
|
759
|
+
} else {
|
|
760
|
+
t7 = $[12];
|
|
761
|
+
}
|
|
762
|
+
const handleDismiss = t7;
|
|
763
|
+
let t8;
|
|
764
|
+
if ($[13] !== handleDismiss) {
|
|
765
|
+
t8 = {
|
|
766
|
+
"confirm:yes": handleDismiss,
|
|
767
|
+
"confirm:no": handleDismiss
|
|
768
|
+
};
|
|
769
|
+
$[13] = handleDismiss;
|
|
770
|
+
$[14] = t8;
|
|
771
|
+
} else {
|
|
772
|
+
t8 = $[14];
|
|
773
|
+
}
|
|
774
|
+
let t9;
|
|
775
|
+
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
776
|
+
t9 = {
|
|
777
|
+
context: "Confirmation"
|
|
778
|
+
};
|
|
779
|
+
$[15] = t9;
|
|
780
|
+
} else {
|
|
781
|
+
t9 = $[15];
|
|
782
|
+
}
|
|
783
|
+
useKeybindings(t8, t9);
|
|
784
|
+
if (!diagnostic) {
|
|
785
|
+
let t102;
|
|
786
|
+
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
787
|
+
t102 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Pane, {
|
|
788
|
+
children: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
789
|
+
dimColor: true,
|
|
790
|
+
children: "Checking installation status\u2026"
|
|
791
|
+
}, undefined, false, undefined, this)
|
|
792
|
+
}, undefined, false, undefined, this);
|
|
793
|
+
$[16] = t102;
|
|
794
|
+
} else {
|
|
795
|
+
t102 = $[16];
|
|
796
|
+
}
|
|
797
|
+
return t102;
|
|
798
|
+
}
|
|
799
|
+
let t10;
|
|
800
|
+
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
801
|
+
t10 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
802
|
+
bold: true,
|
|
803
|
+
children: "Diagnostics"
|
|
804
|
+
}, undefined, false, undefined, this);
|
|
805
|
+
$[17] = t10;
|
|
806
|
+
} else {
|
|
807
|
+
t10 = $[17];
|
|
808
|
+
}
|
|
809
|
+
let t11;
|
|
810
|
+
if ($[18] !== diagnostic.installationType || $[19] !== diagnostic.version) {
|
|
811
|
+
t11 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
812
|
+
children: [
|
|
813
|
+
"\u2514 Currently running: ",
|
|
814
|
+
diagnostic.installationType,
|
|
815
|
+
" (",
|
|
816
|
+
diagnostic.version,
|
|
817
|
+
")"
|
|
818
|
+
]
|
|
819
|
+
}, undefined, true, undefined, this);
|
|
820
|
+
$[18] = diagnostic.installationType;
|
|
821
|
+
$[19] = diagnostic.version;
|
|
822
|
+
$[20] = t11;
|
|
823
|
+
} else {
|
|
824
|
+
t11 = $[20];
|
|
825
|
+
}
|
|
826
|
+
let t12;
|
|
827
|
+
if ($[21] !== diagnostic.packageManager) {
|
|
828
|
+
t12 = diagnostic.packageManager && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
829
|
+
children: [
|
|
830
|
+
"\u2514 Package manager: ",
|
|
831
|
+
diagnostic.packageManager
|
|
832
|
+
]
|
|
833
|
+
}, undefined, true, undefined, this);
|
|
834
|
+
$[21] = diagnostic.packageManager;
|
|
835
|
+
$[22] = t12;
|
|
836
|
+
} else {
|
|
837
|
+
t12 = $[22];
|
|
838
|
+
}
|
|
839
|
+
let t13;
|
|
840
|
+
if ($[23] !== diagnostic.installationPath) {
|
|
841
|
+
t13 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
842
|
+
children: [
|
|
843
|
+
"\u2514 Path: ",
|
|
844
|
+
diagnostic.installationPath
|
|
845
|
+
]
|
|
846
|
+
}, undefined, true, undefined, this);
|
|
847
|
+
$[23] = diagnostic.installationPath;
|
|
848
|
+
$[24] = t13;
|
|
849
|
+
} else {
|
|
850
|
+
t13 = $[24];
|
|
851
|
+
}
|
|
852
|
+
let t14;
|
|
853
|
+
if ($[25] !== diagnostic.invokedBinary) {
|
|
854
|
+
t14 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
855
|
+
children: [
|
|
856
|
+
"\u2514 Invoked: ",
|
|
857
|
+
diagnostic.invokedBinary
|
|
858
|
+
]
|
|
859
|
+
}, undefined, true, undefined, this);
|
|
860
|
+
$[25] = diagnostic.invokedBinary;
|
|
861
|
+
$[26] = t14;
|
|
862
|
+
} else {
|
|
863
|
+
t14 = $[26];
|
|
864
|
+
}
|
|
865
|
+
let t15;
|
|
866
|
+
if ($[27] !== diagnostic.configInstallMethod) {
|
|
867
|
+
t15 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
868
|
+
children: [
|
|
869
|
+
"\u2514 Config install method: ",
|
|
870
|
+
diagnostic.configInstallMethod
|
|
871
|
+
]
|
|
872
|
+
}, undefined, true, undefined, this);
|
|
873
|
+
$[27] = diagnostic.configInstallMethod;
|
|
874
|
+
$[28] = t15;
|
|
875
|
+
} else {
|
|
876
|
+
t15 = $[28];
|
|
877
|
+
}
|
|
878
|
+
const t16 = diagnostic.ripgrepStatus.working ? "OK" : "Not working";
|
|
879
|
+
const t17 = diagnostic.ripgrepStatus.mode === "embedded" ? "bundled" : diagnostic.ripgrepStatus.mode === "builtin" ? "vendor" : diagnostic.ripgrepStatus.systemPath || "system";
|
|
880
|
+
let t18;
|
|
881
|
+
if ($[29] !== t16 || $[30] !== t17) {
|
|
882
|
+
t18 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
883
|
+
children: [
|
|
884
|
+
"\u2514 Search: ",
|
|
885
|
+
t16,
|
|
886
|
+
" (",
|
|
887
|
+
t17,
|
|
888
|
+
")"
|
|
889
|
+
]
|
|
890
|
+
}, undefined, true, undefined, this);
|
|
891
|
+
$[29] = t16;
|
|
892
|
+
$[30] = t17;
|
|
893
|
+
$[31] = t18;
|
|
894
|
+
} else {
|
|
895
|
+
t18 = $[31];
|
|
896
|
+
}
|
|
897
|
+
let t19;
|
|
898
|
+
if ($[32] !== diagnostic.recommendation) {
|
|
899
|
+
t19 = diagnostic.recommendation && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(jsx_dev_runtime3.Fragment, {
|
|
900
|
+
children: [
|
|
901
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {}, undefined, false, undefined, this),
|
|
902
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
903
|
+
color: "warning",
|
|
904
|
+
children: [
|
|
905
|
+
"Recommendation: ",
|
|
906
|
+
diagnostic.recommendation.split(`
|
|
907
|
+
`)[0]
|
|
908
|
+
]
|
|
909
|
+
}, undefined, true, undefined, this),
|
|
910
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
911
|
+
dimColor: true,
|
|
912
|
+
children: diagnostic.recommendation.split(`
|
|
913
|
+
`)[1]
|
|
914
|
+
}, undefined, false, undefined, this)
|
|
915
|
+
]
|
|
916
|
+
}, undefined, true, undefined, this);
|
|
917
|
+
$[32] = diagnostic.recommendation;
|
|
918
|
+
$[33] = t19;
|
|
919
|
+
} else {
|
|
920
|
+
t19 = $[33];
|
|
921
|
+
}
|
|
922
|
+
let t20;
|
|
923
|
+
if ($[34] !== diagnostic.multipleInstallations) {
|
|
924
|
+
t20 = diagnostic.multipleInstallations.length > 1 && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(jsx_dev_runtime3.Fragment, {
|
|
925
|
+
children: [
|
|
926
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {}, undefined, false, undefined, this),
|
|
927
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
928
|
+
color: "warning",
|
|
929
|
+
children: "Warning: Multiple installations found"
|
|
930
|
+
}, undefined, false, undefined, this),
|
|
931
|
+
diagnostic.multipleInstallations.map(_temp1)
|
|
932
|
+
]
|
|
933
|
+
}, undefined, true, undefined, this);
|
|
934
|
+
$[34] = diagnostic.multipleInstallations;
|
|
935
|
+
$[35] = t20;
|
|
936
|
+
} else {
|
|
937
|
+
t20 = $[35];
|
|
938
|
+
}
|
|
939
|
+
let t21;
|
|
940
|
+
if ($[36] !== diagnostic.warnings) {
|
|
941
|
+
t21 = diagnostic.warnings.length > 0 && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(jsx_dev_runtime3.Fragment, {
|
|
942
|
+
children: [
|
|
943
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {}, undefined, false, undefined, this),
|
|
944
|
+
diagnostic.warnings.map(_temp10)
|
|
945
|
+
]
|
|
946
|
+
}, undefined, true, undefined, this);
|
|
947
|
+
$[36] = diagnostic.warnings;
|
|
948
|
+
$[37] = t21;
|
|
949
|
+
} else {
|
|
950
|
+
t21 = $[37];
|
|
951
|
+
}
|
|
952
|
+
let t22;
|
|
953
|
+
if ($[38] !== errorsExcludingMcp) {
|
|
954
|
+
t22 = errorsExcludingMcp.length > 0 && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
955
|
+
flexDirection: "column",
|
|
956
|
+
marginTop: 1,
|
|
957
|
+
marginBottom: 1,
|
|
958
|
+
children: [
|
|
959
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
960
|
+
bold: true,
|
|
961
|
+
children: "Invalid Settings"
|
|
962
|
+
}, undefined, false, undefined, this),
|
|
963
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ValidationErrorsList, {
|
|
964
|
+
errors: errorsExcludingMcp
|
|
965
|
+
}, undefined, false, undefined, this)
|
|
966
|
+
]
|
|
967
|
+
}, undefined, true, undefined, this);
|
|
968
|
+
$[38] = errorsExcludingMcp;
|
|
969
|
+
$[39] = t22;
|
|
970
|
+
} else {
|
|
971
|
+
t22 = $[39];
|
|
972
|
+
}
|
|
973
|
+
let t23;
|
|
974
|
+
if ($[40] !== t11 || $[41] !== t12 || $[42] !== t13 || $[43] !== t14 || $[44] !== t15 || $[45] !== t18 || $[46] !== t19 || $[47] !== t20 || $[48] !== t21 || $[49] !== t22) {
|
|
975
|
+
t23 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
976
|
+
flexDirection: "column",
|
|
977
|
+
children: [
|
|
978
|
+
t10,
|
|
979
|
+
t11,
|
|
980
|
+
t12,
|
|
981
|
+
t13,
|
|
982
|
+
t14,
|
|
983
|
+
t15,
|
|
984
|
+
t18,
|
|
985
|
+
t19,
|
|
986
|
+
t20,
|
|
987
|
+
t21,
|
|
988
|
+
t22
|
|
989
|
+
]
|
|
990
|
+
}, undefined, true, undefined, this);
|
|
991
|
+
$[40] = t11;
|
|
992
|
+
$[41] = t12;
|
|
993
|
+
$[42] = t13;
|
|
994
|
+
$[43] = t14;
|
|
995
|
+
$[44] = t15;
|
|
996
|
+
$[45] = t18;
|
|
997
|
+
$[46] = t19;
|
|
998
|
+
$[47] = t20;
|
|
999
|
+
$[48] = t21;
|
|
1000
|
+
$[49] = t22;
|
|
1001
|
+
$[50] = t23;
|
|
1002
|
+
} else {
|
|
1003
|
+
t23 = $[50];
|
|
1004
|
+
}
|
|
1005
|
+
let t24;
|
|
1006
|
+
if ($[51] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1007
|
+
t24 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1008
|
+
bold: true,
|
|
1009
|
+
children: "Updates"
|
|
1010
|
+
}, undefined, false, undefined, this);
|
|
1011
|
+
$[51] = t24;
|
|
1012
|
+
} else {
|
|
1013
|
+
t24 = $[51];
|
|
1014
|
+
}
|
|
1015
|
+
const t25 = diagnostic.packageManager ? "Managed by package manager" : diagnostic.autoUpdates;
|
|
1016
|
+
let t26;
|
|
1017
|
+
if ($[52] !== t25) {
|
|
1018
|
+
t26 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1019
|
+
children: [
|
|
1020
|
+
"\u2514 Auto-updates:",
|
|
1021
|
+
" ",
|
|
1022
|
+
t25
|
|
1023
|
+
]
|
|
1024
|
+
}, undefined, true, undefined, this);
|
|
1025
|
+
$[52] = t25;
|
|
1026
|
+
$[53] = t26;
|
|
1027
|
+
} else {
|
|
1028
|
+
t26 = $[53];
|
|
1029
|
+
}
|
|
1030
|
+
let t27;
|
|
1031
|
+
if ($[54] !== diagnostic.hasUpdatePermissions) {
|
|
1032
|
+
t27 = diagnostic.hasUpdatePermissions !== null && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1033
|
+
children: [
|
|
1034
|
+
"\u2514 Update permissions:",
|
|
1035
|
+
" ",
|
|
1036
|
+
diagnostic.hasUpdatePermissions ? "Yes" : "No (requires sudo)"
|
|
1037
|
+
]
|
|
1038
|
+
}, undefined, true, undefined, this);
|
|
1039
|
+
$[54] = diagnostic.hasUpdatePermissions;
|
|
1040
|
+
$[55] = t27;
|
|
1041
|
+
} else {
|
|
1042
|
+
t27 = $[55];
|
|
1043
|
+
}
|
|
1044
|
+
let t28;
|
|
1045
|
+
if ($[56] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1046
|
+
t28 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1047
|
+
children: [
|
|
1048
|
+
"\u2514 Auto-update channel: ",
|
|
1049
|
+
autoUpdatesChannel
|
|
1050
|
+
]
|
|
1051
|
+
}, undefined, true, undefined, this);
|
|
1052
|
+
$[56] = t28;
|
|
1053
|
+
} else {
|
|
1054
|
+
t28 = $[56];
|
|
1055
|
+
}
|
|
1056
|
+
let t29;
|
|
1057
|
+
if ($[57] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1058
|
+
t29 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(import_react.Suspense, {
|
|
1059
|
+
fallback: null,
|
|
1060
|
+
children: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(DistTagsDisplay, {
|
|
1061
|
+
promise: distTagsPromise
|
|
1062
|
+
}, undefined, false, undefined, this)
|
|
1063
|
+
}, undefined, false, undefined, this);
|
|
1064
|
+
$[57] = t29;
|
|
1065
|
+
} else {
|
|
1066
|
+
t29 = $[57];
|
|
1067
|
+
}
|
|
1068
|
+
let t30;
|
|
1069
|
+
if ($[58] !== t26 || $[59] !== t27) {
|
|
1070
|
+
t30 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
1071
|
+
flexDirection: "column",
|
|
1072
|
+
children: [
|
|
1073
|
+
t24,
|
|
1074
|
+
t26,
|
|
1075
|
+
t27,
|
|
1076
|
+
t28,
|
|
1077
|
+
t29
|
|
1078
|
+
]
|
|
1079
|
+
}, undefined, true, undefined, this);
|
|
1080
|
+
$[58] = t26;
|
|
1081
|
+
$[59] = t27;
|
|
1082
|
+
$[60] = t30;
|
|
1083
|
+
} else {
|
|
1084
|
+
t30 = $[60];
|
|
1085
|
+
}
|
|
1086
|
+
let t31;
|
|
1087
|
+
let t32;
|
|
1088
|
+
let t33;
|
|
1089
|
+
let t34;
|
|
1090
|
+
if ($[61] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1091
|
+
t31 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(SandboxDoctorSection, {}, undefined, false, undefined, this);
|
|
1092
|
+
t32 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(McpParsingWarnings, {}, undefined, false, undefined, this);
|
|
1093
|
+
t33 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(KeybindingWarnings, {}, undefined, false, undefined, this);
|
|
1094
|
+
t34 = envValidationErrors.length > 0 && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
1095
|
+
flexDirection: "column",
|
|
1096
|
+
children: [
|
|
1097
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1098
|
+
bold: true,
|
|
1099
|
+
children: "Environment Variables"
|
|
1100
|
+
}, undefined, false, undefined, this),
|
|
1101
|
+
envValidationErrors.map(_temp11)
|
|
1102
|
+
]
|
|
1103
|
+
}, undefined, true, undefined, this);
|
|
1104
|
+
$[61] = t31;
|
|
1105
|
+
$[62] = t32;
|
|
1106
|
+
$[63] = t33;
|
|
1107
|
+
$[64] = t34;
|
|
1108
|
+
} else {
|
|
1109
|
+
t31 = $[61];
|
|
1110
|
+
t32 = $[62];
|
|
1111
|
+
t33 = $[63];
|
|
1112
|
+
t34 = $[64];
|
|
1113
|
+
}
|
|
1114
|
+
let t35;
|
|
1115
|
+
if ($[65] !== versionLockInfo) {
|
|
1116
|
+
t35 = versionLockInfo?.enabled && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
1117
|
+
flexDirection: "column",
|
|
1118
|
+
children: [
|
|
1119
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1120
|
+
bold: true,
|
|
1121
|
+
children: "Version Locks"
|
|
1122
|
+
}, undefined, false, undefined, this),
|
|
1123
|
+
versionLockInfo.staleLocksCleaned > 0 && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1124
|
+
dimColor: true,
|
|
1125
|
+
children: [
|
|
1126
|
+
"\u2514 Cleaned ",
|
|
1127
|
+
versionLockInfo.staleLocksCleaned,
|
|
1128
|
+
" stale lock(s)"
|
|
1129
|
+
]
|
|
1130
|
+
}, undefined, true, undefined, this),
|
|
1131
|
+
versionLockInfo.locks.length === 0 ? /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1132
|
+
dimColor: true,
|
|
1133
|
+
children: "\u2514 No active version locks"
|
|
1134
|
+
}, undefined, false, undefined, this) : versionLockInfo.locks.map(_temp12)
|
|
1135
|
+
]
|
|
1136
|
+
}, undefined, true, undefined, this);
|
|
1137
|
+
$[65] = versionLockInfo;
|
|
1138
|
+
$[66] = t35;
|
|
1139
|
+
} else {
|
|
1140
|
+
t35 = $[66];
|
|
1141
|
+
}
|
|
1142
|
+
let t36;
|
|
1143
|
+
if ($[67] !== agentInfo) {
|
|
1144
|
+
t36 = agentInfo?.failedFiles && agentInfo.failedFiles.length > 0 && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
1145
|
+
flexDirection: "column",
|
|
1146
|
+
children: [
|
|
1147
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1148
|
+
bold: true,
|
|
1149
|
+
color: "error",
|
|
1150
|
+
children: "Agent Parse Errors"
|
|
1151
|
+
}, undefined, false, undefined, this),
|
|
1152
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1153
|
+
color: "error",
|
|
1154
|
+
children: [
|
|
1155
|
+
"\u2514 Failed to parse ",
|
|
1156
|
+
agentInfo.failedFiles.length,
|
|
1157
|
+
" agent file(s):"
|
|
1158
|
+
]
|
|
1159
|
+
}, undefined, true, undefined, this),
|
|
1160
|
+
agentInfo.failedFiles.map(_temp13)
|
|
1161
|
+
]
|
|
1162
|
+
}, undefined, true, undefined, this);
|
|
1163
|
+
$[67] = agentInfo;
|
|
1164
|
+
$[68] = t36;
|
|
1165
|
+
} else {
|
|
1166
|
+
t36 = $[68];
|
|
1167
|
+
}
|
|
1168
|
+
let t37;
|
|
1169
|
+
if ($[69] !== pluginsErrors) {
|
|
1170
|
+
t37 = pluginsErrors.length > 0 && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
1171
|
+
flexDirection: "column",
|
|
1172
|
+
children: [
|
|
1173
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1174
|
+
bold: true,
|
|
1175
|
+
color: "error",
|
|
1176
|
+
children: "Plugin Errors"
|
|
1177
|
+
}, undefined, false, undefined, this),
|
|
1178
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1179
|
+
color: "error",
|
|
1180
|
+
children: [
|
|
1181
|
+
"\u2514 ",
|
|
1182
|
+
pluginsErrors.length,
|
|
1183
|
+
" plugin error(s) detected:"
|
|
1184
|
+
]
|
|
1185
|
+
}, undefined, true, undefined, this),
|
|
1186
|
+
pluginsErrors.map(_temp14)
|
|
1187
|
+
]
|
|
1188
|
+
}, undefined, true, undefined, this);
|
|
1189
|
+
$[69] = pluginsErrors;
|
|
1190
|
+
$[70] = t37;
|
|
1191
|
+
} else {
|
|
1192
|
+
t37 = $[70];
|
|
1193
|
+
}
|
|
1194
|
+
let t38;
|
|
1195
|
+
if ($[71] !== contextWarnings) {
|
|
1196
|
+
t38 = contextWarnings?.unreachableRulesWarning && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
1197
|
+
flexDirection: "column",
|
|
1198
|
+
children: [
|
|
1199
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1200
|
+
bold: true,
|
|
1201
|
+
color: "warning",
|
|
1202
|
+
children: "Unreachable Permission Rules"
|
|
1203
|
+
}, undefined, false, undefined, this),
|
|
1204
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1205
|
+
children: [
|
|
1206
|
+
"\u2514",
|
|
1207
|
+
" ",
|
|
1208
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1209
|
+
color: "warning",
|
|
1210
|
+
children: [
|
|
1211
|
+
figures_default.warning,
|
|
1212
|
+
" ",
|
|
1213
|
+
contextWarnings.unreachableRulesWarning.message
|
|
1214
|
+
]
|
|
1215
|
+
}, undefined, true, undefined, this)
|
|
1216
|
+
]
|
|
1217
|
+
}, undefined, true, undefined, this),
|
|
1218
|
+
contextWarnings.unreachableRulesWarning.details.map(_temp15)
|
|
1219
|
+
]
|
|
1220
|
+
}, undefined, true, undefined, this);
|
|
1221
|
+
$[71] = contextWarnings;
|
|
1222
|
+
$[72] = t38;
|
|
1223
|
+
} else {
|
|
1224
|
+
t38 = $[72];
|
|
1225
|
+
}
|
|
1226
|
+
let t39;
|
|
1227
|
+
if ($[73] !== contextWarnings) {
|
|
1228
|
+
t39 = contextWarnings && (contextWarnings.claudeMdWarning || contextWarnings.agentWarning || contextWarnings.mcpWarning) && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
1229
|
+
flexDirection: "column",
|
|
1230
|
+
children: [
|
|
1231
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1232
|
+
bold: true,
|
|
1233
|
+
children: "Context Usage Warnings"
|
|
1234
|
+
}, undefined, false, undefined, this),
|
|
1235
|
+
contextWarnings.claudeMdWarning && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(jsx_dev_runtime3.Fragment, {
|
|
1236
|
+
children: [
|
|
1237
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1238
|
+
children: [
|
|
1239
|
+
"\u2514",
|
|
1240
|
+
" ",
|
|
1241
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1242
|
+
color: "warning",
|
|
1243
|
+
children: [
|
|
1244
|
+
figures_default.warning,
|
|
1245
|
+
" ",
|
|
1246
|
+
contextWarnings.claudeMdWarning.message
|
|
1247
|
+
]
|
|
1248
|
+
}, undefined, true, undefined, this)
|
|
1249
|
+
]
|
|
1250
|
+
}, undefined, true, undefined, this),
|
|
1251
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1252
|
+
children: [
|
|
1253
|
+
" ",
|
|
1254
|
+
"\u2514 Files:"
|
|
1255
|
+
]
|
|
1256
|
+
}, undefined, true, undefined, this),
|
|
1257
|
+
contextWarnings.claudeMdWarning.details.map(_temp16)
|
|
1258
|
+
]
|
|
1259
|
+
}, undefined, true, undefined, this),
|
|
1260
|
+
contextWarnings.agentWarning && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(jsx_dev_runtime3.Fragment, {
|
|
1261
|
+
children: [
|
|
1262
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1263
|
+
children: [
|
|
1264
|
+
"\u2514",
|
|
1265
|
+
" ",
|
|
1266
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1267
|
+
color: "warning",
|
|
1268
|
+
children: [
|
|
1269
|
+
figures_default.warning,
|
|
1270
|
+
" ",
|
|
1271
|
+
contextWarnings.agentWarning.message
|
|
1272
|
+
]
|
|
1273
|
+
}, undefined, true, undefined, this)
|
|
1274
|
+
]
|
|
1275
|
+
}, undefined, true, undefined, this),
|
|
1276
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1277
|
+
children: [
|
|
1278
|
+
" ",
|
|
1279
|
+
"\u2514 Top contributors:"
|
|
1280
|
+
]
|
|
1281
|
+
}, undefined, true, undefined, this),
|
|
1282
|
+
contextWarnings.agentWarning.details.map(_temp17)
|
|
1283
|
+
]
|
|
1284
|
+
}, undefined, true, undefined, this),
|
|
1285
|
+
contextWarnings.mcpWarning && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(jsx_dev_runtime3.Fragment, {
|
|
1286
|
+
children: [
|
|
1287
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1288
|
+
children: [
|
|
1289
|
+
"\u2514",
|
|
1290
|
+
" ",
|
|
1291
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1292
|
+
color: "warning",
|
|
1293
|
+
children: [
|
|
1294
|
+
figures_default.warning,
|
|
1295
|
+
" ",
|
|
1296
|
+
contextWarnings.mcpWarning.message
|
|
1297
|
+
]
|
|
1298
|
+
}, undefined, true, undefined, this)
|
|
1299
|
+
]
|
|
1300
|
+
}, undefined, true, undefined, this),
|
|
1301
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1302
|
+
children: [
|
|
1303
|
+
" ",
|
|
1304
|
+
"\u2514 MCP servers:"
|
|
1305
|
+
]
|
|
1306
|
+
}, undefined, true, undefined, this),
|
|
1307
|
+
contextWarnings.mcpWarning.details.map(_temp18)
|
|
1308
|
+
]
|
|
1309
|
+
}, undefined, true, undefined, this)
|
|
1310
|
+
]
|
|
1311
|
+
}, undefined, true, undefined, this);
|
|
1312
|
+
$[73] = contextWarnings;
|
|
1313
|
+
$[74] = t39;
|
|
1314
|
+
} else {
|
|
1315
|
+
t39 = $[74];
|
|
1316
|
+
}
|
|
1317
|
+
let t40;
|
|
1318
|
+
if ($[75] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1319
|
+
t40 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
1320
|
+
children: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(PressEnterToContinue, {}, undefined, false, undefined, this)
|
|
1321
|
+
}, undefined, false, undefined, this);
|
|
1322
|
+
$[75] = t40;
|
|
1323
|
+
} else {
|
|
1324
|
+
t40 = $[75];
|
|
1325
|
+
}
|
|
1326
|
+
let t41;
|
|
1327
|
+
if ($[76] !== t23 || $[77] !== t30 || $[78] !== t35 || $[79] !== t36 || $[80] !== t37 || $[81] !== t38 || $[82] !== t39) {
|
|
1328
|
+
t41 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Pane, {
|
|
1329
|
+
children: [
|
|
1330
|
+
t23,
|
|
1331
|
+
t30,
|
|
1332
|
+
t31,
|
|
1333
|
+
t32,
|
|
1334
|
+
t33,
|
|
1335
|
+
t34,
|
|
1336
|
+
t35,
|
|
1337
|
+
t36,
|
|
1338
|
+
t37,
|
|
1339
|
+
t38,
|
|
1340
|
+
t39,
|
|
1341
|
+
t40
|
|
1342
|
+
]
|
|
1343
|
+
}, undefined, true, undefined, this);
|
|
1344
|
+
$[76] = t23;
|
|
1345
|
+
$[77] = t30;
|
|
1346
|
+
$[78] = t35;
|
|
1347
|
+
$[79] = t36;
|
|
1348
|
+
$[80] = t37;
|
|
1349
|
+
$[81] = t38;
|
|
1350
|
+
$[82] = t39;
|
|
1351
|
+
$[83] = t41;
|
|
1352
|
+
} else {
|
|
1353
|
+
t41 = $[83];
|
|
1354
|
+
}
|
|
1355
|
+
return t41;
|
|
1356
|
+
}
|
|
1357
|
+
function _temp18(detail_2, i_8) {
|
|
1358
|
+
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1359
|
+
dimColor: true,
|
|
1360
|
+
children: [
|
|
1361
|
+
" ",
|
|
1362
|
+
"\u2514 ",
|
|
1363
|
+
detail_2
|
|
1364
|
+
]
|
|
1365
|
+
}, i_8, true, undefined, this);
|
|
1366
|
+
}
|
|
1367
|
+
function _temp17(detail_1, i_7) {
|
|
1368
|
+
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1369
|
+
dimColor: true,
|
|
1370
|
+
children: [
|
|
1371
|
+
" ",
|
|
1372
|
+
"\u2514 ",
|
|
1373
|
+
detail_1
|
|
1374
|
+
]
|
|
1375
|
+
}, i_7, true, undefined, this);
|
|
1376
|
+
}
|
|
1377
|
+
function _temp16(detail_0, i_6) {
|
|
1378
|
+
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1379
|
+
dimColor: true,
|
|
1380
|
+
children: [
|
|
1381
|
+
" ",
|
|
1382
|
+
"\u2514 ",
|
|
1383
|
+
detail_0
|
|
1384
|
+
]
|
|
1385
|
+
}, i_6, true, undefined, this);
|
|
1386
|
+
}
|
|
1387
|
+
function _temp15(detail, i_5) {
|
|
1388
|
+
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1389
|
+
dimColor: true,
|
|
1390
|
+
children: [
|
|
1391
|
+
" ",
|
|
1392
|
+
"\u2514 ",
|
|
1393
|
+
detail
|
|
1394
|
+
]
|
|
1395
|
+
}, i_5, true, undefined, this);
|
|
1396
|
+
}
|
|
1397
|
+
function _temp14(error_0, i_4) {
|
|
1398
|
+
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1399
|
+
dimColor: true,
|
|
1400
|
+
children: [
|
|
1401
|
+
" ",
|
|
1402
|
+
"\u2514 ",
|
|
1403
|
+
error_0.source || "unknown",
|
|
1404
|
+
"plugin" in error_0 && error_0.plugin ? ` [${error_0.plugin}]` : "",
|
|
1405
|
+
":",
|
|
1406
|
+
" ",
|
|
1407
|
+
getPluginErrorMessage(error_0)
|
|
1408
|
+
]
|
|
1409
|
+
}, i_4, true, undefined, this);
|
|
1410
|
+
}
|
|
1411
|
+
function _temp13(file, i_3) {
|
|
1412
|
+
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1413
|
+
dimColor: true,
|
|
1414
|
+
children: [
|
|
1415
|
+
" ",
|
|
1416
|
+
"\u2514 ",
|
|
1417
|
+
file.path,
|
|
1418
|
+
": ",
|
|
1419
|
+
file.error
|
|
1420
|
+
]
|
|
1421
|
+
}, i_3, true, undefined, this);
|
|
1422
|
+
}
|
|
1423
|
+
function _temp12(lock, i_2) {
|
|
1424
|
+
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1425
|
+
children: [
|
|
1426
|
+
"\u2514 ",
|
|
1427
|
+
lock.version,
|
|
1428
|
+
": PID ",
|
|
1429
|
+
lock.pid,
|
|
1430
|
+
" ",
|
|
1431
|
+
lock.isProcessRunning ? /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1432
|
+
children: "(running)"
|
|
1433
|
+
}, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1434
|
+
color: "warning",
|
|
1435
|
+
children: "(stale)"
|
|
1436
|
+
}, undefined, false, undefined, this)
|
|
1437
|
+
]
|
|
1438
|
+
}, i_2, true, undefined, this);
|
|
1439
|
+
}
|
|
1440
|
+
function _temp11(validation, i_1) {
|
|
1441
|
+
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1442
|
+
children: [
|
|
1443
|
+
"\u2514 ",
|
|
1444
|
+
validation.name,
|
|
1445
|
+
":",
|
|
1446
|
+
" ",
|
|
1447
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1448
|
+
color: validation.status === "capped" ? "warning" : "error",
|
|
1449
|
+
children: validation.message
|
|
1450
|
+
}, undefined, false, undefined, this)
|
|
1451
|
+
]
|
|
1452
|
+
}, i_1, true, undefined, this);
|
|
1453
|
+
}
|
|
1454
|
+
function _temp10(warning, i_0) {
|
|
1455
|
+
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
1456
|
+
flexDirection: "column",
|
|
1457
|
+
children: [
|
|
1458
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1459
|
+
color: "warning",
|
|
1460
|
+
children: [
|
|
1461
|
+
"Warning: ",
|
|
1462
|
+
warning.issue
|
|
1463
|
+
]
|
|
1464
|
+
}, undefined, true, undefined, this),
|
|
1465
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1466
|
+
children: [
|
|
1467
|
+
"Fix: ",
|
|
1468
|
+
warning.fix
|
|
1469
|
+
]
|
|
1470
|
+
}, undefined, true, undefined, this)
|
|
1471
|
+
]
|
|
1472
|
+
}, i_0, true, undefined, this);
|
|
1473
|
+
}
|
|
1474
|
+
function _temp1(install, i) {
|
|
1475
|
+
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
1476
|
+
children: [
|
|
1477
|
+
"\u2514 ",
|
|
1478
|
+
install.type,
|
|
1479
|
+
" at ",
|
|
1480
|
+
install.path
|
|
1481
|
+
]
|
|
1482
|
+
}, i, true, undefined, this);
|
|
1483
|
+
}
|
|
1484
|
+
function _temp0(a) {
|
|
1485
|
+
return {
|
|
1486
|
+
agentType: a.agentType,
|
|
1487
|
+
source: a.source
|
|
1488
|
+
};
|
|
1489
|
+
}
|
|
1490
|
+
function _temp9(v_0) {
|
|
1491
|
+
return v_0.status !== "valid";
|
|
1492
|
+
}
|
|
1493
|
+
function _temp8(v) {
|
|
1494
|
+
const value = process.env[v.name];
|
|
1495
|
+
const result = validateBoundedIntEnvVar(v.name, value, v.default, v.upperLimit);
|
|
1496
|
+
return {
|
|
1497
|
+
name: v.name,
|
|
1498
|
+
...result
|
|
1499
|
+
};
|
|
1500
|
+
}
|
|
1501
|
+
function _temp7(error) {
|
|
1502
|
+
return error.mcpErrorMetadata === undefined;
|
|
1503
|
+
}
|
|
1504
|
+
function _temp6(diag) {
|
|
1505
|
+
const fetchDistTags = diag.installationType === "native" ? getGcsDistTags : getNpmDistTags;
|
|
1506
|
+
return fetchDistTags().catch(_temp52);
|
|
1507
|
+
}
|
|
1508
|
+
function _temp52() {
|
|
1509
|
+
return {
|
|
1510
|
+
latest: null,
|
|
1511
|
+
stable: null
|
|
1512
|
+
};
|
|
1513
|
+
}
|
|
1514
|
+
function _temp42(s_2) {
|
|
1515
|
+
return s_2.plugins.errors;
|
|
1516
|
+
}
|
|
1517
|
+
function _temp32(s_1) {
|
|
1518
|
+
return s_1.toolPermissionContext;
|
|
1519
|
+
}
|
|
1520
|
+
function _temp23(s_0) {
|
|
1521
|
+
return s_0.mcp.tools;
|
|
1522
|
+
}
|
|
1523
|
+
function _temp19(s) {
|
|
1524
|
+
return s.agentDefinitions;
|
|
1525
|
+
}
|
|
1526
|
+
var import_compiler_runtime3, import_react, jsx_dev_runtime3;
|
|
1527
|
+
var init_Doctor = __esm(() => {
|
|
1528
|
+
init_figures();
|
|
1529
|
+
init_KeybindingWarnings();
|
|
1530
|
+
init_McpParsingWarnings();
|
|
1531
|
+
init_context();
|
|
1532
|
+
init_envUtils();
|
|
1533
|
+
init_state();
|
|
1534
|
+
init_Pane();
|
|
1535
|
+
init_PressEnterToContinue();
|
|
1536
|
+
init_SandboxDoctorSection();
|
|
1537
|
+
init_ValidationErrorsList();
|
|
1538
|
+
init_useSettingsErrors();
|
|
1539
|
+
init_useExitOnCtrlCDWithKeybindings();
|
|
1540
|
+
init_ink();
|
|
1541
|
+
init_useKeybinding();
|
|
1542
|
+
init_AppState();
|
|
1543
|
+
init_autoUpdater();
|
|
1544
|
+
init_doctorContextWarnings();
|
|
1545
|
+
init_doctorDiagnostic();
|
|
1546
|
+
init_envValidation();
|
|
1547
|
+
init_file();
|
|
1548
|
+
init_pidLock();
|
|
1549
|
+
init_settings();
|
|
1550
|
+
init_outputLimits();
|
|
1551
|
+
init_outputFormatting();
|
|
1552
|
+
init_xdg();
|
|
1553
|
+
import_compiler_runtime3 = __toESM(require_compiler_runtime(), 1);
|
|
1554
|
+
import_react = __toESM(require_react(), 1);
|
|
1555
|
+
jsx_dev_runtime3 = __toESM(require_jsx_dev_runtime(), 1);
|
|
1556
|
+
});
|
|
1557
|
+
init_Doctor();
|
|
1558
|
+
|
|
1559
|
+
export {
|
|
1560
|
+
Doctor
|
|
1561
|
+
};
|
|
1562
|
+
|
|
1563
|
+
export { Doctor, init_Doctor };
|