@caspian2026/agent-sdk 0.0.25 → 0.0.27
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/dist/gateway/index.js +98 -22
- package/dist/gateway/worker.js +1005 -982
- package/dist/sdk/query.cjs +2 -362
- package/dist/sdk/query.js +2 -367
- package/package.json +126 -128
- package/dist/chunk-04n4fe72.js +0 -107
- package/dist/chunk-04ys66ej.js +0 -344
- package/dist/chunk-07069jq1.js +0 -30
- package/dist/chunk-0731m51q.js +0 -8
- package/dist/chunk-086x4ct4.js +0 -26
- package/dist/chunk-0btqb97n.js +0 -295
- package/dist/chunk-0paqc2yw.js +0 -15
- package/dist/chunk-0r1rjydx.js +0 -145
- package/dist/chunk-0r5bb9j4.js +0 -477
- package/dist/chunk-0t81d427.js +0 -41
- package/dist/chunk-0teq2mz0.js +0 -420
- package/dist/chunk-0vkfrmqm.js +0 -690
- package/dist/chunk-0vp3wfab.js +0 -12
- package/dist/chunk-0warp8dx.js +0 -253
- package/dist/chunk-0xjaqda8.js +0 -1124
- package/dist/chunk-10gzv316.js +0 -62
- package/dist/chunk-11pq9n08.js +0 -168
- package/dist/chunk-1ae3nt9j.js +0 -31
- package/dist/chunk-1fmb0njn.js +0 -396
- package/dist/chunk-1gx78081.js +0 -66
- package/dist/chunk-1h2famwb.js +0 -49
- package/dist/chunk-1ng8xwxz.js +0 -276
- package/dist/chunk-1v7jp29h.js +0 -206
- package/dist/chunk-1xxy5zhb.js +0 -673
- package/dist/chunk-20b73w7w.js +0 -117
- package/dist/chunk-20qxd83a.js +0 -1161
- package/dist/chunk-2239ny9q.js +0 -90
- package/dist/chunk-22d4rnef.js +0 -226
- package/dist/chunk-26wtxbdc.js +0 -13870
- package/dist/chunk-27225bjh.js +0 -618
- package/dist/chunk-2b0e32an.js +0 -5822
- package/dist/chunk-2bfa9w1y.js +0 -323
- package/dist/chunk-2epq04w1.js +0 -63
- package/dist/chunk-2fwze72g.js +0 -24
- package/dist/chunk-2gzv8nrw.js +0 -205
- package/dist/chunk-2mexte1r.js +0 -349
- package/dist/chunk-2mzaqh5g.js +0 -338
- package/dist/chunk-2tb6mzfc.js +0 -81
- package/dist/chunk-2xq0g43w.js +0 -558
- package/dist/chunk-334aeqg9.js +0 -90
- package/dist/chunk-34jx4rjd.js +0 -995
- package/dist/chunk-35w5nhex.js +0 -132
- package/dist/chunk-3c25bcsw.js +0 -17
- package/dist/chunk-3eaxj8dg.js +0 -151
- package/dist/chunk-3fdgrwd2.js +0 -111
- package/dist/chunk-3jw0r58d.js +0 -121
- package/dist/chunk-3mgywd32.js +0 -8
- package/dist/chunk-3nk79af8.js +0 -8
- package/dist/chunk-3vy1jt9p.js +0 -1010
- package/dist/chunk-3x78pd4j.js +0 -153
- package/dist/chunk-47x3dsmn.js +0 -95
- package/dist/chunk-49pqt48n.js +0 -108
- package/dist/chunk-4f7m9fjw.js +0 -317
- package/dist/chunk-4jm600zv.js +0 -13
- package/dist/chunk-4k9d7gxv.js +0 -118
- package/dist/chunk-4net8san.js +0 -155
- package/dist/chunk-4pbx3g7s.js +0 -26
- package/dist/chunk-4v125j4z.js +0 -58
- package/dist/chunk-4vxkv5vz.js +0 -1438
- package/dist/chunk-51fqpjy3.js +0 -121
- package/dist/chunk-52e64f2h.js +0 -439
- package/dist/chunk-52e9mdjv.js +0 -684
- package/dist/chunk-55raexh7.js +0 -14358
- package/dist/chunk-59pq5122.js +0 -269
- package/dist/chunk-5bsj67v1.js +0 -349
- package/dist/chunk-5ccdsxgy.js +0 -74
- package/dist/chunk-5ekyhb1w.js +0 -422
- package/dist/chunk-5gcqdn8x.js +0 -867
- package/dist/chunk-5h5kx2jd.js +0 -34
- package/dist/chunk-5hf3werb.js +0 -193
- package/dist/chunk-5n1jc02d.js +0 -87
- package/dist/chunk-5wfxvxm8.js +0 -127
- package/dist/chunk-5wjebwmn.js +0 -89
- package/dist/chunk-5z28bqne.js +0 -6748
- package/dist/chunk-5zwsxpjn.js +0 -671
- package/dist/chunk-60phw466.js +0 -29
- package/dist/chunk-64c1avct.js +0 -13
- package/dist/chunk-64r16v22.js +0 -162
- package/dist/chunk-65t1r7zs.js +0 -418
- package/dist/chunk-66zry909.js +0 -11
- package/dist/chunk-67hxjjgc.js +0 -731
- package/dist/chunk-68ffk5qa.js +0 -14
- package/dist/chunk-69dr6rrd.js +0 -177
- package/dist/chunk-69n11zng.js +0 -436
- package/dist/chunk-6dj5t602.js +0 -341
- package/dist/chunk-6dngjwkh.js +0 -63
- package/dist/chunk-6dp8sz55.js +0 -3561
- package/dist/chunk-6hqgg0sv.js +0 -103
- package/dist/chunk-6nsd9606.js +0 -790
- package/dist/chunk-6p0hbwz3.js +0 -65
- package/dist/chunk-6ywdv5vg.js +0 -97
- package/dist/chunk-6zc758qw.js +0 -640
- package/dist/chunk-7aw745vx.js +0 -40175
- package/dist/chunk-7fxaphbq.js +0 -116
- package/dist/chunk-7sgtxrsc.js +0 -1059
- package/dist/chunk-7wm5s02e.js +0 -216
- package/dist/chunk-7xdk4109.js +0 -442
- package/dist/chunk-7xyswgjh.js +0 -8
- package/dist/chunk-83hfzbx3.js +0 -10
- package/dist/chunk-87m69h0v.js +0 -219
- package/dist/chunk-8g5pe1gr.js +0 -37
- package/dist/chunk-8jbw0fnf.js +0 -167
- package/dist/chunk-8jf9se66.js +0 -321
- package/dist/chunk-8p65embj.js +0 -875
- package/dist/chunk-8qrmaff1.js +0 -2669
- package/dist/chunk-8r975mwc.js +0 -93
- package/dist/chunk-8yhf030a.js +0 -69
- package/dist/chunk-93emz367.js +0 -107
- package/dist/chunk-948mn975.js +0 -460
- package/dist/chunk-99chkt7r.js +0 -54
- package/dist/chunk-9f7c1hzz.js +0 -50
- package/dist/chunk-9fk9ps1g.js +0 -178
- package/dist/chunk-9rh0k0aq.js +0 -90
- package/dist/chunk-9x5zgy22.js +0 -12
- package/dist/chunk-a0k2vj5b.js +0 -460
- package/dist/chunk-a0m57ssq.js +0 -325
- package/dist/chunk-a0nsmmz1.js +0 -133
- package/dist/chunk-a25jh1v4.js +0 -105
- package/dist/chunk-a4j5ekv0.js +0 -83
- package/dist/chunk-a8k3zf58.js +0 -313
- package/dist/chunk-ah0zarbq.js +0 -260
- package/dist/chunk-ase86y73.js +0 -15
- package/dist/chunk-b0kf00ff.js +0 -637
- package/dist/chunk-b1kcd3ss.js +0 -27
- package/dist/chunk-b8kcqqds.js +0 -93
- package/dist/chunk-bg4x9ex0.js +0 -21
- package/dist/chunk-bh5zqvyc.js +0 -36
- package/dist/chunk-bqrkfekw.js +0 -267
- package/dist/chunk-brjd9zmk.js +0 -42
- package/dist/chunk-byfawrfx.js +0 -121
- package/dist/chunk-c6sjhj89.js +0 -1284
- package/dist/chunk-c7e5yv0q.js +0 -212
- package/dist/chunk-c7jwbe76.js +0 -29030
- package/dist/chunk-cb5v8w7k.js +0 -289
- package/dist/chunk-cdef9v7b.js +0 -27
- package/dist/chunk-cdz5yb0r.js +0 -57
- package/dist/chunk-cgfdkzhb.js +0 -12
- package/dist/chunk-cgqw4x5z.js +0 -155
- package/dist/chunk-cnsj3vq2.js +0 -35
- package/dist/chunk-cqxm7ggc.js +0 -123
- package/dist/chunk-cxrktb5g.js +0 -51
- package/dist/chunk-d089t7dk.js +0 -312
- package/dist/chunk-d1z934cp.js +0 -71
- package/dist/chunk-d4mdda98.js +0 -94
- package/dist/chunk-d7xw8v91.js +0 -332
- package/dist/chunk-dc06c3rw.js +0 -1154
- package/dist/chunk-ddsjkqs4.js +0 -39
- package/dist/chunk-dfzkwynj.js +0 -5368
- package/dist/chunk-dnmp7s85.js +0 -20
- package/dist/chunk-dqqwjkv3.js +0 -8583
- package/dist/chunk-dt2mr4vf.js +0 -2962
- package/dist/chunk-dztm97gg.js +0 -150
- package/dist/chunk-e0abab5b.js +0 -445
- package/dist/chunk-e0ragz46.js +0 -209386
- package/dist/chunk-e9w9zc0g.js +0 -392
- package/dist/chunk-ebwskmsr.js +0 -107
- package/dist/chunk-efztk52j.js +0 -114
- package/dist/chunk-ehd8wacx.js +0 -40
- package/dist/chunk-ehtwnxpg.js +0 -1591
- package/dist/chunk-eqp1rfft.js +0 -17
- package/dist/chunk-etdt1xz3.js +0 -19
- package/dist/chunk-eva785x8.js +0 -88
- package/dist/chunk-ewadzrm8.js +0 -103
- package/dist/chunk-f2ajmcav.js +0 -92
- package/dist/chunk-fajg8x36.js +0 -8158
- package/dist/chunk-fbv4apne.js +0 -51
- package/dist/chunk-fcynwjpm.js +0 -1072
- package/dist/chunk-fev86f95.js +0 -1052
- package/dist/chunk-feyzykye.js +0 -10
- package/dist/chunk-ff85rwvc.js +0 -180
- package/dist/chunk-fk6ktvg2.js +0 -275
- package/dist/chunk-fqak69ft.js +0 -458
- package/dist/chunk-fqwas4jk.js +0 -281
- package/dist/chunk-fs35fdpj.js +0 -439
- package/dist/chunk-fvr3f9s3.js +0 -55
- package/dist/chunk-fyc5fepv.js +0 -10
- package/dist/chunk-g2g9cwt9.js +0 -54
- package/dist/chunk-g4znz46v.js +0 -2335
- package/dist/chunk-g5ts4e6k.js +0 -697
- package/dist/chunk-g6een9wr.js +0 -654
- package/dist/chunk-g7cmtx8r.js +0 -77
- package/dist/chunk-g9f19ttm.js +0 -15
- package/dist/chunk-gc7ap41t.js +0 -516
- package/dist/chunk-gdwdqewd.js +0 -19
- package/dist/chunk-gg14h3n4.js +0 -131
- package/dist/chunk-gg55fns0.js +0 -6440
- package/dist/chunk-gq7zab4e.js +0 -418
- package/dist/chunk-gydw3qy3.js +0 -169
- package/dist/chunk-gz1e8y1w.js +0 -33
- package/dist/chunk-h19r628d.js +0 -91
- package/dist/chunk-h2k8mt3z.js +0 -329
- package/dist/chunk-h9n54swm.js +0 -27
- package/dist/chunk-hakdhagh.js +0 -16606
- package/dist/chunk-hc2chp3g.js +0 -308
- package/dist/chunk-hemcv9t7.js +0 -153
- package/dist/chunk-hm62ntv3.js +0 -20
- package/dist/chunk-hmq09ytj.js +0 -100
- package/dist/chunk-hmv4hhqt.js +0 -2718
- package/dist/chunk-hwfknpxv.js +0 -39
- package/dist/chunk-j5bth84e.js +0 -97
- package/dist/chunk-j64ga6ta.js +0 -8035
- package/dist/chunk-j6v3w4yf.js +0 -244
- package/dist/chunk-jc29d2nm.js +0 -130
- package/dist/chunk-jd32zbps.js +0 -15
- package/dist/chunk-jd4sx4wh.js +0 -594
- package/dist/chunk-jha8n8b9.js +0 -33118
- package/dist/chunk-jj71qx7m.js +0 -122
- package/dist/chunk-jka9vpak.js +0 -114
- package/dist/chunk-jkf6ayv0.js +0 -32
- package/dist/chunk-jpz6t2tt.js +0 -61
- package/dist/chunk-jqt3sw12.js +0 -9114
- package/dist/chunk-jswd1q63.js +0 -101
- package/dist/chunk-jtc4aa2y.js +0 -1543
- package/dist/chunk-jyx3h86z.js +0 -635
- package/dist/chunk-jzthz1bx.js +0 -15
- package/dist/chunk-k0p9w03v.js +0 -4957
- package/dist/chunk-k6x3s7x5.js +0 -211
- package/dist/chunk-k7kmvnnx.js +0 -942
- package/dist/chunk-k8vp0atq.js +0 -2331
- package/dist/chunk-k9vm6x6z.js +0 -257
- package/dist/chunk-kb1edvhs.js +0 -120
- package/dist/chunk-kbhbe33q.js +0 -113
- package/dist/chunk-kgcgpp7z.js +0 -140
- package/dist/chunk-kvywbvqs.js +0 -261
- package/dist/chunk-kwekc97v.js +0 -18
- package/dist/chunk-kwyk9zp1.js +0 -74
- package/dist/chunk-ky1z78ve.js +0 -119
- package/dist/chunk-mcws22k3.js +0 -42
- package/dist/chunk-mr2z79r3.js +0 -1385
- package/dist/chunk-mst9nmns.js +0 -642
- package/dist/chunk-mswx2nma.js +0 -103
- package/dist/chunk-n1e3fjpz.js +0 -266
- package/dist/chunk-n6vjp9yg.js +0 -138
- package/dist/chunk-n84tqtvv.js +0 -120
- package/dist/chunk-n8ssddbw.js +0 -105
- package/dist/chunk-na35whkd.js +0 -227
- package/dist/chunk-netzwgv1.js +0 -154
- package/dist/chunk-ng7j0yy1.js +0 -100
- package/dist/chunk-nmgj86tt.js +0 -24
- package/dist/chunk-ns7x6xam.js +0 -22820
- package/dist/chunk-p7vkh4wx.js +0 -15
- package/dist/chunk-p8na2wwp.js +0 -14
- package/dist/chunk-pe3rkfp2.js +0 -74
- package/dist/chunk-pf0152j3.js +0 -40
- package/dist/chunk-pgtnj1mt.js +0 -705
- package/dist/chunk-ppwjyveh.js +0 -8
- package/dist/chunk-pq5qp2y4.js +0 -388
- package/dist/chunk-pqqxdk5f.js +0 -543
- package/dist/chunk-ps49ymvj.js +0 -43
- package/dist/chunk-pws8gq7m.js +0 -7422
- package/dist/chunk-pwwa7s62.js +0 -11
- package/dist/chunk-pyq0fabn.js +0 -860
- package/dist/chunk-q0p1m40t.js +0 -79
- package/dist/chunk-q0vhv550.js +0 -393
- package/dist/chunk-q7r0kt08.js +0 -1809
- package/dist/chunk-qajrkk97.js +0 -298
- package/dist/chunk-qatfdxvd.js +0 -34
- package/dist/chunk-qb6k2afy.js +0 -153
- package/dist/chunk-qg2qgx8h.js +0 -266
- package/dist/chunk-qkczt8cr.js +0 -24
- package/dist/chunk-qnfx3qtx.js +0 -617
- package/dist/chunk-qp2qdcda.js +0 -100
- package/dist/chunk-qtwgzej9.js +0 -85
- package/dist/chunk-r1dh0ymt.js +0 -91
- package/dist/chunk-r36xvgvv.js +0 -407
- package/dist/chunk-r48he8g3.js +0 -251
- package/dist/chunk-r63tqmtk.js +0 -146
- package/dist/chunk-rbdd3q5k.js +0 -101
- package/dist/chunk-rmbbmd3s.js +0 -68
- package/dist/chunk-rn0v1hk8.js +0 -34
- package/dist/chunk-rnxctq9p.js +0 -1646
- package/dist/chunk-rrs2mchs.js +0 -183
- package/dist/chunk-rtrybvnp.js +0 -209
- package/dist/chunk-rw2wkn45.js +0 -494
- package/dist/chunk-s4kzkdhd.js +0 -847
- package/dist/chunk-s7a0zn7b.js +0 -55
- package/dist/chunk-s8gy4ky9.js +0 -122
- package/dist/chunk-s8kj6ajy.js +0 -32
- package/dist/chunk-sag785ad.js +0 -283
- package/dist/chunk-scqjyben.js +0 -174
- package/dist/chunk-sd36yzx8.js +0 -954
- package/dist/chunk-sdtqm0nm.js +0 -374
- package/dist/chunk-sg60xg0x.js +0 -52
- package/dist/chunk-sgpmpn90.js +0 -35
- package/dist/chunk-sh02d2qn.js +0 -38
- package/dist/chunk-sz9y6z13.js +0 -61
- package/dist/chunk-szj5wvdy.js +0 -28
- package/dist/chunk-t29a6zb5.js +0 -45
- package/dist/chunk-t2b49hcf.js +0 -87
- package/dist/chunk-t2wqdppz.js +0 -445
- package/dist/chunk-t4khqff1.js +0 -16
- package/dist/chunk-t70t2gne.js +0 -121
- package/dist/chunk-t9p85zff.js +0 -24
- package/dist/chunk-tkrstmwz.js +0 -94
- package/dist/chunk-tnyb4exc.js +0 -74
- package/dist/chunk-tpn8jsvw.js +0 -71
- package/dist/chunk-tt7x5j1q.js +0 -111
- package/dist/chunk-tw1p628z.js +0 -984
- package/dist/chunk-twvdafcz.js +0 -528
- package/dist/chunk-tzwjafgn.js +0 -24
- package/dist/chunk-v140t8ay.js +0 -152
- package/dist/chunk-v1kzp02e.js +0 -785
- package/dist/chunk-v4t6dyyh.js +0 -9076
- package/dist/chunk-v78fj8by.js +0 -145
- package/dist/chunk-v8kjswxt.js +0 -61
- package/dist/chunk-v9smspw2.js +0 -4301
- package/dist/chunk-vcfbjkk9.js +0 -201
- package/dist/chunk-ve167rcs.js +0 -148
- package/dist/chunk-vf612n57.js +0 -472
- package/dist/chunk-vhffyae8.js +0 -895
- package/dist/chunk-vkhrrvfq.js +0 -44
- package/dist/chunk-vybkmfhf.js +0 -91
- package/dist/chunk-vyjeh50y.js +0 -2149
- package/dist/chunk-w6m6trzq.js +0 -58
- package/dist/chunk-w9b6kngq.js +0 -234
- package/dist/chunk-wa8yn2p0.js +0 -2007
- package/dist/chunk-wanceff6.js +0 -2840
- package/dist/chunk-wcze2nea.js +0 -336
- package/dist/chunk-wgk9sxk7.js +0 -329
- package/dist/chunk-wnxcgfsd.js +0 -253
- package/dist/chunk-wyjerrr6.js +0 -565
- package/dist/chunk-wz9brkq5.js +0 -60
- package/dist/chunk-x47h283a.js +0 -56
- package/dist/chunk-x59j3x9c.js +0 -98
- package/dist/chunk-x6r4v44b.js +0 -8
- package/dist/chunk-x7fdwq3d.js +0 -33
- package/dist/chunk-x8d2ehd7.js +0 -19
- package/dist/chunk-xeb6075z.js +0 -3435
- package/dist/chunk-xfw2pxwd.js +0 -223
- package/dist/chunk-xh06jc72.js +0 -200
- package/dist/chunk-xhfmdq1y.js +0 -147
- package/dist/chunk-xkwyg1d2.js +0 -195
- package/dist/chunk-xv3era3s.js +0 -8
- package/dist/chunk-xyapc58m.js +0 -87
- package/dist/chunk-xzgnc76g.js +0 -107
- package/dist/chunk-y1784krc.js +0 -19
- package/dist/chunk-y4ca9kqz.js +0 -3830
- package/dist/chunk-y9bhjjdz.js +0 -145
- package/dist/chunk-yb3bxv3w.js +0 -30
- package/dist/chunk-yddek6xk.js +0 -146
- package/dist/chunk-ypaq3d12.js +0 -4265
- package/dist/chunk-yq8z040g.js +0 -111
- package/dist/chunk-yqs481qq.js +0 -1163
- package/dist/chunk-ys9a9c9h.js +0 -105
- package/dist/chunk-yyex5gsf.js +0 -269
- package/dist/chunk-yzn396hn.js +0 -89
- package/dist/chunk-z2dp53wn.js +0 -17
- package/dist/chunk-zay4xp4n.js +0 -251
- package/dist/chunk-zc8bwy57.js +0 -212
- package/dist/chunk-zhx88cfx.js +0 -97
- package/dist/chunk-zkh6f4ct.js +0 -385
- package/dist/chunk-zq56gcca.js +0 -206
- package/dist/chunk-zrkefd22.js +0 -490
- package/dist/chunk-zs5p0yq1.js +0 -1030
- package/dist/chunk-zxh62ved.js +0 -31
- package/dist/chunk-zzm33q8x.js +0 -8
- package/dist/cli.js +0 -220
package/dist/chunk-zs5p0yq1.js
DELETED
|
@@ -1,1030 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
ValidationErrorsList,
|
|
4
|
-
init_ValidationErrorsList
|
|
5
|
-
} from "./chunk-bqrkfekw.js";
|
|
6
|
-
import {
|
|
7
|
-
PressEnterToContinue,
|
|
8
|
-
init_PressEnterToContinue
|
|
9
|
-
} from "./chunk-qatfdxvd.js";
|
|
10
|
-
import {
|
|
11
|
-
init_useSettingsErrors,
|
|
12
|
-
useSettingsErrors
|
|
13
|
-
} from "./chunk-2epq04w1.js";
|
|
14
|
-
import {
|
|
15
|
-
detectUnreachableRules,
|
|
16
|
-
init_shadowedRuleDetection
|
|
17
|
-
} from "./chunk-47x3dsmn.js";
|
|
18
|
-
import {
|
|
19
|
-
AGENT_DESCRIPTIONS_THRESHOLD,
|
|
20
|
-
getAgentDescriptionsTotalTokens,
|
|
21
|
-
init_statusNoticeHelpers
|
|
22
|
-
} from "./chunk-tzwjafgn.js";
|
|
23
|
-
import {
|
|
24
|
-
McpParsingWarnings,
|
|
25
|
-
init_McpParsingWarnings
|
|
26
|
-
} from "./chunk-rrs2mchs.js";
|
|
27
|
-
import {
|
|
28
|
-
cleanupStaleLocks,
|
|
29
|
-
getAllLockInfo,
|
|
30
|
-
getDoctorDiagnostic,
|
|
31
|
-
init_doctorDiagnostic,
|
|
32
|
-
init_pidLock,
|
|
33
|
-
isPidBasedLockingEnabled
|
|
34
|
-
} from "./chunk-tw1p628z.js";
|
|
35
|
-
import {
|
|
36
|
-
getXDGStateHome,
|
|
37
|
-
init_xdg
|
|
38
|
-
} from "./chunk-x7fdwq3d.js";
|
|
39
|
-
import {
|
|
40
|
-
BASH_MAX_OUTPUT_DEFAULT,
|
|
41
|
-
BASH_MAX_OUTPUT_UPPER_LIMIT,
|
|
42
|
-
MAX_MEMORY_CHARACTER_COUNT,
|
|
43
|
-
SandboxManager,
|
|
44
|
-
TASK_MAX_OUTPUT_DEFAULT,
|
|
45
|
-
TASK_MAX_OUTPUT_UPPER_LIMIT,
|
|
46
|
-
countMcpToolTokens,
|
|
47
|
-
getCachedKeybindingWarnings,
|
|
48
|
-
getKeybindingsPath,
|
|
49
|
-
getLargeMemoryFiles,
|
|
50
|
-
getMemoryFiles,
|
|
51
|
-
getPluginErrorMessage,
|
|
52
|
-
init_AppState,
|
|
53
|
-
init_analyzeContext,
|
|
54
|
-
init_claudemd,
|
|
55
|
-
init_envValidation,
|
|
56
|
-
init_loadUserBindings,
|
|
57
|
-
init_outputFormatting,
|
|
58
|
-
init_outputLimits,
|
|
59
|
-
init_plugin,
|
|
60
|
-
init_sandbox_adapter,
|
|
61
|
-
init_tokenEstimation,
|
|
62
|
-
isKeybindingCustomizationEnabled,
|
|
63
|
-
roughTokenCountEstimation,
|
|
64
|
-
useAppState,
|
|
65
|
-
validateBoundedIntEnvVar
|
|
66
|
-
} from "./chunk-e0ragz46.js";
|
|
67
|
-
import {
|
|
68
|
-
init_useExitOnCtrlCDWithKeybindings,
|
|
69
|
-
useExitOnCtrlCDWithKeybindings
|
|
70
|
-
} from "./chunk-4k9d7gxv.js";
|
|
71
|
-
import {
|
|
72
|
-
init_useKeybinding
|
|
73
|
-
} from "./chunk-68ffk5qa.js";
|
|
74
|
-
import {
|
|
75
|
-
getMainLoopModel,
|
|
76
|
-
getModelMaxOutputTokens,
|
|
77
|
-
init_context,
|
|
78
|
-
init_model
|
|
79
|
-
} from "./chunk-jtc4aa2y.js";
|
|
80
|
-
import {
|
|
81
|
-
getInitialSettings,
|
|
82
|
-
init_file,
|
|
83
|
-
init_permissionRuleParser,
|
|
84
|
-
init_settings1 as init_settings,
|
|
85
|
-
init_stringUtils,
|
|
86
|
-
pathExists,
|
|
87
|
-
permissionRuleValueToString,
|
|
88
|
-
plural
|
|
89
|
-
} from "./chunk-2b0e32an.js";
|
|
90
|
-
import {
|
|
91
|
-
Pane,
|
|
92
|
-
ThemedBox_default,
|
|
93
|
-
ThemedText,
|
|
94
|
-
init_src,
|
|
95
|
-
useKeybindings
|
|
96
|
-
} from "./chunk-c7jwbe76.js";
|
|
97
|
-
import {
|
|
98
|
-
require_jsx_dev_runtime,
|
|
99
|
-
require_react
|
|
100
|
-
} from "./chunk-7sgtxrsc.js";
|
|
101
|
-
import {
|
|
102
|
-
figures_default,
|
|
103
|
-
init_figures
|
|
104
|
-
} from "./chunk-qajrkk97.js";
|
|
105
|
-
import {
|
|
106
|
-
getClaudeConfigHomeDir,
|
|
107
|
-
init_envUtils
|
|
108
|
-
} from "./chunk-5n1jc02d.js";
|
|
109
|
-
import {
|
|
110
|
-
getOriginalCwd,
|
|
111
|
-
init_state
|
|
112
|
-
} from "./chunk-k8vp0atq.js";
|
|
113
|
-
import {
|
|
114
|
-
__esm,
|
|
115
|
-
__toESM
|
|
116
|
-
} from "./chunk-qp2qdcda.js";
|
|
117
|
-
|
|
118
|
-
// src/components/KeybindingWarnings.tsx
|
|
119
|
-
function KeybindingWarnings() {
|
|
120
|
-
if (!isKeybindingCustomizationEnabled()) {
|
|
121
|
-
return null;
|
|
122
|
-
}
|
|
123
|
-
const warnings = getCachedKeybindingWarnings();
|
|
124
|
-
if (warnings.length === 0) {
|
|
125
|
-
return null;
|
|
126
|
-
}
|
|
127
|
-
const errors = warnings.filter((w) => w.severity === "error");
|
|
128
|
-
const warns = warnings.filter((w) => w.severity === "warning");
|
|
129
|
-
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
130
|
-
flexDirection: "column",
|
|
131
|
-
marginTop: 1,
|
|
132
|
-
marginBottom: 1,
|
|
133
|
-
children: [
|
|
134
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
135
|
-
bold: true,
|
|
136
|
-
color: errors.length > 0 ? "error" : "warning",
|
|
137
|
-
children: "Keybinding Configuration Issues"
|
|
138
|
-
}, undefined, false, undefined, this),
|
|
139
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
140
|
-
children: [
|
|
141
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
142
|
-
dimColor: true,
|
|
143
|
-
children: "Location: "
|
|
144
|
-
}, undefined, false, undefined, this),
|
|
145
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
146
|
-
dimColor: true,
|
|
147
|
-
children: getKeybindingsPath()
|
|
148
|
-
}, undefined, false, undefined, this)
|
|
149
|
-
]
|
|
150
|
-
}, undefined, true, undefined, this),
|
|
151
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
152
|
-
marginLeft: 1,
|
|
153
|
-
flexDirection: "column",
|
|
154
|
-
marginTop: 1,
|
|
155
|
-
children: [
|
|
156
|
-
errors.map((error, i) => /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
157
|
-
flexDirection: "column",
|
|
158
|
-
children: [
|
|
159
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
160
|
-
children: [
|
|
161
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
162
|
-
dimColor: true,
|
|
163
|
-
children: "\u2514 "
|
|
164
|
-
}, undefined, false, undefined, this),
|
|
165
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
166
|
-
color: "error",
|
|
167
|
-
children: "[Error]"
|
|
168
|
-
}, undefined, false, undefined, this),
|
|
169
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
170
|
-
dimColor: true,
|
|
171
|
-
children: [
|
|
172
|
-
" ",
|
|
173
|
-
error.message
|
|
174
|
-
]
|
|
175
|
-
}, undefined, true, undefined, this)
|
|
176
|
-
]
|
|
177
|
-
}, undefined, true, undefined, this),
|
|
178
|
-
error.suggestion && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
179
|
-
marginLeft: 3,
|
|
180
|
-
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
181
|
-
dimColor: true,
|
|
182
|
-
children: [
|
|
183
|
-
"\u2192 ",
|
|
184
|
-
error.suggestion
|
|
185
|
-
]
|
|
186
|
-
}, undefined, true, undefined, this)
|
|
187
|
-
}, undefined, false, undefined, this)
|
|
188
|
-
]
|
|
189
|
-
}, `error-${i}`, true, undefined, this)),
|
|
190
|
-
warns.map((warning, i) => /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
191
|
-
flexDirection: "column",
|
|
192
|
-
children: [
|
|
193
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
194
|
-
children: [
|
|
195
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
196
|
-
dimColor: true,
|
|
197
|
-
children: "\u2514 "
|
|
198
|
-
}, undefined, false, undefined, this),
|
|
199
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
200
|
-
color: "warning",
|
|
201
|
-
children: "[Warning]"
|
|
202
|
-
}, undefined, false, undefined, this),
|
|
203
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
204
|
-
dimColor: true,
|
|
205
|
-
children: [
|
|
206
|
-
" ",
|
|
207
|
-
warning.message
|
|
208
|
-
]
|
|
209
|
-
}, undefined, true, undefined, this)
|
|
210
|
-
]
|
|
211
|
-
}, undefined, true, undefined, this),
|
|
212
|
-
warning.suggestion && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
213
|
-
marginLeft: 3,
|
|
214
|
-
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
215
|
-
dimColor: true,
|
|
216
|
-
children: [
|
|
217
|
-
"\u2192 ",
|
|
218
|
-
warning.suggestion
|
|
219
|
-
]
|
|
220
|
-
}, undefined, true, undefined, this)
|
|
221
|
-
}, undefined, false, undefined, this)
|
|
222
|
-
]
|
|
223
|
-
}, `warning-${i}`, true, undefined, this))
|
|
224
|
-
]
|
|
225
|
-
}, undefined, true, undefined, this)
|
|
226
|
-
]
|
|
227
|
-
}, undefined, true, undefined, this);
|
|
228
|
-
}
|
|
229
|
-
var jsx_dev_runtime;
|
|
230
|
-
var init_KeybindingWarnings = __esm(() => {
|
|
231
|
-
init_src();
|
|
232
|
-
init_loadUserBindings();
|
|
233
|
-
jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
|
|
234
|
-
});
|
|
235
|
-
|
|
236
|
-
// src/components/sandbox/SandboxDoctorSection.tsx
|
|
237
|
-
function SandboxDoctorSection() {
|
|
238
|
-
if (!SandboxManager.isSupportedPlatform()) {
|
|
239
|
-
return null;
|
|
240
|
-
}
|
|
241
|
-
if (!SandboxManager.isSandboxEnabledInSettings()) {
|
|
242
|
-
return null;
|
|
243
|
-
}
|
|
244
|
-
const depCheck = SandboxManager.checkDependencies();
|
|
245
|
-
const hasErrors = depCheck.errors.length > 0;
|
|
246
|
-
const hasWarnings = depCheck.warnings.length > 0;
|
|
247
|
-
if (!hasErrors && !hasWarnings) {
|
|
248
|
-
return null;
|
|
249
|
-
}
|
|
250
|
-
const statusColor = hasErrors ? "error" : "warning";
|
|
251
|
-
const statusText = hasErrors ? "Missing dependencies" : "Available (with warnings)";
|
|
252
|
-
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
253
|
-
flexDirection: "column",
|
|
254
|
-
children: [
|
|
255
|
-
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
256
|
-
bold: true,
|
|
257
|
-
children: "Sandbox"
|
|
258
|
-
}, undefined, false, undefined, this),
|
|
259
|
-
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
260
|
-
children: [
|
|
261
|
-
"\u2514 Status: ",
|
|
262
|
-
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
263
|
-
color: statusColor,
|
|
264
|
-
children: statusText
|
|
265
|
-
}, undefined, false, undefined, this)
|
|
266
|
-
]
|
|
267
|
-
}, undefined, true, undefined, this),
|
|
268
|
-
depCheck.errors.map((e, i) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
269
|
-
color: "error",
|
|
270
|
-
children: [
|
|
271
|
-
"\u2514 ",
|
|
272
|
-
e
|
|
273
|
-
]
|
|
274
|
-
}, i, true, undefined, this)),
|
|
275
|
-
depCheck.warnings.map((w, i) => /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
276
|
-
color: "warning",
|
|
277
|
-
children: [
|
|
278
|
-
"\u2514 ",
|
|
279
|
-
w
|
|
280
|
-
]
|
|
281
|
-
}, i, true, undefined, this)),
|
|
282
|
-
hasErrors && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
283
|
-
dimColor: true,
|
|
284
|
-
children: "\u2514 Run /sandbox for install instructions"
|
|
285
|
-
}, undefined, false, undefined, this)
|
|
286
|
-
]
|
|
287
|
-
}, undefined, true, undefined, this);
|
|
288
|
-
}
|
|
289
|
-
var jsx_dev_runtime2;
|
|
290
|
-
var init_SandboxDoctorSection = __esm(() => {
|
|
291
|
-
init_src();
|
|
292
|
-
init_sandbox_adapter();
|
|
293
|
-
jsx_dev_runtime2 = __toESM(require_jsx_dev_runtime(), 1);
|
|
294
|
-
});
|
|
295
|
-
|
|
296
|
-
// src/utils/doctorContextWarnings.ts
|
|
297
|
-
async function checkClaudeMdFiles() {
|
|
298
|
-
const largeFiles = getLargeMemoryFiles(await getMemoryFiles());
|
|
299
|
-
if (largeFiles.length === 0) {
|
|
300
|
-
return null;
|
|
301
|
-
}
|
|
302
|
-
const details = largeFiles.sort((a, b) => b.content.length - a.content.length).map((file) => `${file.path}: ${file.content.length.toLocaleString()} chars`);
|
|
303
|
-
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)`;
|
|
304
|
-
return {
|
|
305
|
-
type: "claudemd_files",
|
|
306
|
-
severity: "warning",
|
|
307
|
-
message,
|
|
308
|
-
details,
|
|
309
|
-
currentValue: largeFiles.length,
|
|
310
|
-
threshold: MAX_MEMORY_CHARACTER_COUNT
|
|
311
|
-
};
|
|
312
|
-
}
|
|
313
|
-
async function checkAgentDescriptions(agentInfo) {
|
|
314
|
-
if (!agentInfo) {
|
|
315
|
-
return null;
|
|
316
|
-
}
|
|
317
|
-
const totalTokens = getAgentDescriptionsTotalTokens(agentInfo);
|
|
318
|
-
if (totalTokens <= AGENT_DESCRIPTIONS_THRESHOLD) {
|
|
319
|
-
return null;
|
|
320
|
-
}
|
|
321
|
-
const agentTokens = agentInfo.activeAgents.filter((a) => a.source !== "built-in").map((agent) => {
|
|
322
|
-
const description = `${agent.agentType}: ${agent.whenToUse}`;
|
|
323
|
-
return {
|
|
324
|
-
name: agent.agentType,
|
|
325
|
-
tokens: roughTokenCountEstimation(description)
|
|
326
|
-
};
|
|
327
|
-
}).sort((a, b) => b.tokens - a.tokens);
|
|
328
|
-
const details = agentTokens.slice(0, 5).map((agent) => `${agent.name}: ~${agent.tokens.toLocaleString()} tokens`);
|
|
329
|
-
if (agentTokens.length > 5) {
|
|
330
|
-
details.push(`(${agentTokens.length - 5} more custom agents)`);
|
|
331
|
-
}
|
|
332
|
-
return {
|
|
333
|
-
type: "agent_descriptions",
|
|
334
|
-
severity: "warning",
|
|
335
|
-
message: `Large agent descriptions (~${totalTokens.toLocaleString()} tokens > ${AGENT_DESCRIPTIONS_THRESHOLD.toLocaleString()})`,
|
|
336
|
-
details,
|
|
337
|
-
currentValue: totalTokens,
|
|
338
|
-
threshold: AGENT_DESCRIPTIONS_THRESHOLD
|
|
339
|
-
};
|
|
340
|
-
}
|
|
341
|
-
async function checkMcpTools(tools, getToolPermissionContext, agentInfo) {
|
|
342
|
-
const mcpTools = tools.filter((tool) => tool.isMcp);
|
|
343
|
-
if (mcpTools.length === 0) {
|
|
344
|
-
return null;
|
|
345
|
-
}
|
|
346
|
-
try {
|
|
347
|
-
const model = getMainLoopModel();
|
|
348
|
-
const { mcpToolTokens, mcpToolDetails } = await countMcpToolTokens(tools, getToolPermissionContext, agentInfo, model);
|
|
349
|
-
if (mcpToolTokens <= MCP_TOOLS_THRESHOLD) {
|
|
350
|
-
return null;
|
|
351
|
-
}
|
|
352
|
-
const toolsByServer = new Map;
|
|
353
|
-
for (const tool of mcpToolDetails) {
|
|
354
|
-
const parts = tool.name.split("__");
|
|
355
|
-
const serverName = parts[1] || "unknown";
|
|
356
|
-
const current = toolsByServer.get(serverName) || { count: 0, tokens: 0 };
|
|
357
|
-
toolsByServer.set(serverName, {
|
|
358
|
-
count: current.count + 1,
|
|
359
|
-
tokens: current.tokens + tool.tokens
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
const sortedServers = Array.from(toolsByServer.entries()).sort((a, b) => b[1].tokens - a[1].tokens);
|
|
363
|
-
const details = sortedServers.slice(0, 5).map(([name, info]) => `${name}: ${info.count} tools (~${info.tokens.toLocaleString()} tokens)`);
|
|
364
|
-
if (sortedServers.length > 5) {
|
|
365
|
-
details.push(`(${sortedServers.length - 5} more servers)`);
|
|
366
|
-
}
|
|
367
|
-
return {
|
|
368
|
-
type: "mcp_tools",
|
|
369
|
-
severity: "warning",
|
|
370
|
-
message: `Large MCP tools context (~${mcpToolTokens.toLocaleString()} tokens > ${MCP_TOOLS_THRESHOLD.toLocaleString()})`,
|
|
371
|
-
details,
|
|
372
|
-
currentValue: mcpToolTokens,
|
|
373
|
-
threshold: MCP_TOOLS_THRESHOLD
|
|
374
|
-
};
|
|
375
|
-
} catch (_error) {
|
|
376
|
-
const estimatedTokens = mcpTools.reduce((total, tool) => {
|
|
377
|
-
const chars = (tool.name?.length || 0) + tool.description.length;
|
|
378
|
-
return total + roughTokenCountEstimation(chars.toString());
|
|
379
|
-
}, 0);
|
|
380
|
-
if (estimatedTokens <= MCP_TOOLS_THRESHOLD) {
|
|
381
|
-
return null;
|
|
382
|
-
}
|
|
383
|
-
return {
|
|
384
|
-
type: "mcp_tools",
|
|
385
|
-
severity: "warning",
|
|
386
|
-
message: `Large MCP tools context (~${estimatedTokens.toLocaleString()} tokens estimated > ${MCP_TOOLS_THRESHOLD.toLocaleString()})`,
|
|
387
|
-
details: [
|
|
388
|
-
`${mcpTools.length} MCP tools detected (token count estimated)`
|
|
389
|
-
],
|
|
390
|
-
currentValue: estimatedTokens,
|
|
391
|
-
threshold: MCP_TOOLS_THRESHOLD
|
|
392
|
-
};
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
async function checkUnreachableRules(getToolPermissionContext) {
|
|
396
|
-
const context = await getToolPermissionContext();
|
|
397
|
-
const sandboxAutoAllowEnabled = SandboxManager.isSandboxingEnabled() && SandboxManager.isAutoAllowBashIfSandboxedEnabled();
|
|
398
|
-
const unreachable = detectUnreachableRules(context, {
|
|
399
|
-
sandboxAutoAllowEnabled
|
|
400
|
-
});
|
|
401
|
-
if (unreachable.length === 0) {
|
|
402
|
-
return null;
|
|
403
|
-
}
|
|
404
|
-
const details = unreachable.flatMap((r) => [
|
|
405
|
-
`${permissionRuleValueToString(r.rule.ruleValue)}: ${r.reason}`,
|
|
406
|
-
` Fix: ${r.fix}`
|
|
407
|
-
]);
|
|
408
|
-
return {
|
|
409
|
-
type: "unreachable_rules",
|
|
410
|
-
severity: "warning",
|
|
411
|
-
message: `${unreachable.length} ${plural(unreachable.length, "unreachable permission rule")} detected`,
|
|
412
|
-
details,
|
|
413
|
-
currentValue: unreachable.length,
|
|
414
|
-
threshold: 0
|
|
415
|
-
};
|
|
416
|
-
}
|
|
417
|
-
async function checkContextWarnings(tools, agentInfo, getToolPermissionContext) {
|
|
418
|
-
const [claudeMdWarning, agentWarning, mcpWarning, unreachableRulesWarning] = await Promise.all([
|
|
419
|
-
checkClaudeMdFiles(),
|
|
420
|
-
checkAgentDescriptions(agentInfo),
|
|
421
|
-
checkMcpTools(tools, getToolPermissionContext, agentInfo),
|
|
422
|
-
checkUnreachableRules(getToolPermissionContext)
|
|
423
|
-
]);
|
|
424
|
-
return {
|
|
425
|
-
claudeMdWarning,
|
|
426
|
-
agentWarning,
|
|
427
|
-
mcpWarning,
|
|
428
|
-
unreachableRulesWarning
|
|
429
|
-
};
|
|
430
|
-
}
|
|
431
|
-
var MCP_TOOLS_THRESHOLD = 25000;
|
|
432
|
-
var init_doctorContextWarnings = __esm(() => {
|
|
433
|
-
init_tokenEstimation();
|
|
434
|
-
init_analyzeContext();
|
|
435
|
-
init_claudemd();
|
|
436
|
-
init_model();
|
|
437
|
-
init_permissionRuleParser();
|
|
438
|
-
init_shadowedRuleDetection();
|
|
439
|
-
init_sandbox_adapter();
|
|
440
|
-
init_statusNoticeHelpers();
|
|
441
|
-
init_stringUtils();
|
|
442
|
-
});
|
|
443
|
-
|
|
444
|
-
// src/screens/Doctor.tsx
|
|
445
|
-
import { join } from "path";
|
|
446
|
-
function DistTagsDisplay({
|
|
447
|
-
promise
|
|
448
|
-
}) {
|
|
449
|
-
const distTags = import_react.use(promise);
|
|
450
|
-
if (!distTags.latest) {
|
|
451
|
-
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
452
|
-
dimColor: true,
|
|
453
|
-
children: "\u2514 Failed to fetch versions"
|
|
454
|
-
}, undefined, false, undefined, this);
|
|
455
|
-
}
|
|
456
|
-
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(jsx_dev_runtime3.Fragment, {
|
|
457
|
-
children: [
|
|
458
|
-
distTags.stable && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
459
|
-
children: [
|
|
460
|
-
"\u2514 Stable version: ",
|
|
461
|
-
distTags.stable
|
|
462
|
-
]
|
|
463
|
-
}, undefined, true, undefined, this),
|
|
464
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
465
|
-
children: [
|
|
466
|
-
"\u2514 Latest version: ",
|
|
467
|
-
distTags.latest
|
|
468
|
-
]
|
|
469
|
-
}, undefined, true, undefined, this)
|
|
470
|
-
]
|
|
471
|
-
}, undefined, true, undefined, this);
|
|
472
|
-
}
|
|
473
|
-
function Doctor({ onDone }) {
|
|
474
|
-
const agentDefinitions = useAppState((s) => s.agentDefinitions);
|
|
475
|
-
const mcpTools = useAppState((s) => s.mcp.tools);
|
|
476
|
-
const toolPermissionContext = useAppState((s) => s.toolPermissionContext);
|
|
477
|
-
const pluginsErrors = useAppState((s) => s.plugins.errors);
|
|
478
|
-
useExitOnCtrlCDWithKeybindings();
|
|
479
|
-
const tools = import_react.useMemo(() => {
|
|
480
|
-
return mcpTools || [];
|
|
481
|
-
}, [mcpTools]);
|
|
482
|
-
const [diagnostic, setDiagnostic] = import_react.useState(null);
|
|
483
|
-
const [agentInfo, setAgentInfo] = import_react.useState(null);
|
|
484
|
-
const [contextWarnings, setContextWarnings] = import_react.useState(null);
|
|
485
|
-
const [versionLockInfo, setVersionLockInfo] = import_react.useState(null);
|
|
486
|
-
const validationErrors = useSettingsErrors();
|
|
487
|
-
const distTagsPromise = import_react.useMemo(() => getDoctorDiagnostic().then((diag) => {
|
|
488
|
-
const fetchDistTags = diag.installationType === "native" ? getGcsDistTags : getNpmDistTags;
|
|
489
|
-
return fetchDistTags().catch(() => ({ latest: null, stable: null }));
|
|
490
|
-
}), []);
|
|
491
|
-
const autoUpdatesChannel = getInitialSettings()?.autoUpdatesChannel ?? "latest";
|
|
492
|
-
const errorsExcludingMcp = validationErrors.filter((error) => error.mcpErrorMetadata === undefined);
|
|
493
|
-
const envValidationErrors = import_react.useMemo(() => {
|
|
494
|
-
const envVars = [
|
|
495
|
-
{
|
|
496
|
-
name: "BASH_MAX_OUTPUT_LENGTH",
|
|
497
|
-
default: BASH_MAX_OUTPUT_DEFAULT,
|
|
498
|
-
upperLimit: BASH_MAX_OUTPUT_UPPER_LIMIT
|
|
499
|
-
},
|
|
500
|
-
{
|
|
501
|
-
name: "TASK_MAX_OUTPUT_LENGTH",
|
|
502
|
-
default: TASK_MAX_OUTPUT_DEFAULT,
|
|
503
|
-
upperLimit: TASK_MAX_OUTPUT_UPPER_LIMIT
|
|
504
|
-
},
|
|
505
|
-
{
|
|
506
|
-
name: "CLAUDE_CODE_MAX_OUTPUT_TOKENS",
|
|
507
|
-
...getModelMaxOutputTokens("claude-opus-4-6")
|
|
508
|
-
}
|
|
509
|
-
];
|
|
510
|
-
return envVars.map((v) => {
|
|
511
|
-
const value = process.env[v.name];
|
|
512
|
-
const result = validateBoundedIntEnvVar(v.name, value, v.default, v.upperLimit);
|
|
513
|
-
return { name: v.name, ...result };
|
|
514
|
-
}).filter((v) => v.status !== "valid");
|
|
515
|
-
}, []);
|
|
516
|
-
import_react.useEffect(() => {
|
|
517
|
-
getDoctorDiagnostic().then(setDiagnostic);
|
|
518
|
-
(async () => {
|
|
519
|
-
const userAgentsDir = join(getClaudeConfigHomeDir(), "agents");
|
|
520
|
-
const projectAgentsDir = join(getOriginalCwd(), ".claude", "agents");
|
|
521
|
-
const { activeAgents, allAgents, failedFiles } = agentDefinitions;
|
|
522
|
-
const [userDirExists, projectDirExists] = await Promise.all([
|
|
523
|
-
pathExists(userAgentsDir),
|
|
524
|
-
pathExists(projectAgentsDir)
|
|
525
|
-
]);
|
|
526
|
-
const agentInfoData = {
|
|
527
|
-
activeAgents: activeAgents.map((a) => ({
|
|
528
|
-
agentType: a.agentType,
|
|
529
|
-
source: a.source
|
|
530
|
-
})),
|
|
531
|
-
userAgentsDir,
|
|
532
|
-
projectAgentsDir,
|
|
533
|
-
userDirExists,
|
|
534
|
-
projectDirExists,
|
|
535
|
-
failedFiles
|
|
536
|
-
};
|
|
537
|
-
setAgentInfo(agentInfoData);
|
|
538
|
-
const warnings = await checkContextWarnings(tools, {
|
|
539
|
-
activeAgents,
|
|
540
|
-
allAgents,
|
|
541
|
-
failedFiles
|
|
542
|
-
}, async () => toolPermissionContext);
|
|
543
|
-
setContextWarnings(warnings);
|
|
544
|
-
if (isPidBasedLockingEnabled()) {
|
|
545
|
-
const locksDir = join(getXDGStateHome(), "claude", "locks");
|
|
546
|
-
const staleLocksCleaned = cleanupStaleLocks(locksDir);
|
|
547
|
-
const locks = getAllLockInfo(locksDir);
|
|
548
|
-
setVersionLockInfo({
|
|
549
|
-
enabled: true,
|
|
550
|
-
locks,
|
|
551
|
-
locksDir,
|
|
552
|
-
staleLocksCleaned
|
|
553
|
-
});
|
|
554
|
-
} else {
|
|
555
|
-
setVersionLockInfo({
|
|
556
|
-
enabled: false,
|
|
557
|
-
locks: [],
|
|
558
|
-
locksDir: "",
|
|
559
|
-
staleLocksCleaned: 0
|
|
560
|
-
});
|
|
561
|
-
}
|
|
562
|
-
})();
|
|
563
|
-
}, [toolPermissionContext, tools, agentDefinitions]);
|
|
564
|
-
const handleDismiss = import_react.useCallback(() => {
|
|
565
|
-
onDone("Claude Code diagnostics dismissed", { display: "system" });
|
|
566
|
-
}, [onDone]);
|
|
567
|
-
useKeybindings({
|
|
568
|
-
"confirm:yes": handleDismiss,
|
|
569
|
-
"confirm:no": handleDismiss
|
|
570
|
-
}, { context: "Confirmation" });
|
|
571
|
-
if (!diagnostic) {
|
|
572
|
-
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Pane, {
|
|
573
|
-
children: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
574
|
-
dimColor: true,
|
|
575
|
-
children: "Checking installation status\u2026"
|
|
576
|
-
}, undefined, false, undefined, this)
|
|
577
|
-
}, undefined, false, undefined, this);
|
|
578
|
-
}
|
|
579
|
-
return /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Pane, {
|
|
580
|
-
children: [
|
|
581
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
582
|
-
flexDirection: "column",
|
|
583
|
-
children: [
|
|
584
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
585
|
-
bold: true,
|
|
586
|
-
children: "Diagnostics"
|
|
587
|
-
}, undefined, false, undefined, this),
|
|
588
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
589
|
-
children: [
|
|
590
|
-
"\u2514 Currently running: ",
|
|
591
|
-
diagnostic.installationType,
|
|
592
|
-
" (",
|
|
593
|
-
diagnostic.version,
|
|
594
|
-
")"
|
|
595
|
-
]
|
|
596
|
-
}, undefined, true, undefined, this),
|
|
597
|
-
diagnostic.packageManager && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
598
|
-
children: [
|
|
599
|
-
"\u2514 Package manager: ",
|
|
600
|
-
diagnostic.packageManager
|
|
601
|
-
]
|
|
602
|
-
}, undefined, true, undefined, this),
|
|
603
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
604
|
-
children: [
|
|
605
|
-
"\u2514 Path: ",
|
|
606
|
-
diagnostic.installationPath
|
|
607
|
-
]
|
|
608
|
-
}, undefined, true, undefined, this),
|
|
609
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
610
|
-
children: [
|
|
611
|
-
"\u2514 Invoked: ",
|
|
612
|
-
diagnostic.invokedBinary
|
|
613
|
-
]
|
|
614
|
-
}, undefined, true, undefined, this),
|
|
615
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
616
|
-
children: [
|
|
617
|
-
"\u2514 Config install method: ",
|
|
618
|
-
diagnostic.configInstallMethod
|
|
619
|
-
]
|
|
620
|
-
}, undefined, true, undefined, this),
|
|
621
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
622
|
-
children: [
|
|
623
|
-
"\u2514 Search: ",
|
|
624
|
-
diagnostic.ripgrepStatus.working ? "OK" : "Not working",
|
|
625
|
-
" (",
|
|
626
|
-
diagnostic.ripgrepStatus.mode === "embedded" ? "bundled" : diagnostic.ripgrepStatus.mode === "builtin" ? "vendor" : diagnostic.ripgrepStatus.systemPath || "system",
|
|
627
|
-
")"
|
|
628
|
-
]
|
|
629
|
-
}, undefined, true, undefined, this),
|
|
630
|
-
diagnostic.recommendation && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(jsx_dev_runtime3.Fragment, {
|
|
631
|
-
children: [
|
|
632
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {}, undefined, false, undefined, this),
|
|
633
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
634
|
-
color: "warning",
|
|
635
|
-
children: [
|
|
636
|
-
"Recommendation: ",
|
|
637
|
-
diagnostic.recommendation.split(`
|
|
638
|
-
`)[0]
|
|
639
|
-
]
|
|
640
|
-
}, undefined, true, undefined, this),
|
|
641
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
642
|
-
dimColor: true,
|
|
643
|
-
children: diagnostic.recommendation.split(`
|
|
644
|
-
`)[1]
|
|
645
|
-
}, undefined, false, undefined, this)
|
|
646
|
-
]
|
|
647
|
-
}, undefined, true, undefined, this),
|
|
648
|
-
diagnostic.multipleInstallations.length > 1 && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(jsx_dev_runtime3.Fragment, {
|
|
649
|
-
children: [
|
|
650
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {}, undefined, false, undefined, this),
|
|
651
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
652
|
-
color: "warning",
|
|
653
|
-
children: "Warning: Multiple installations found"
|
|
654
|
-
}, undefined, false, undefined, this),
|
|
655
|
-
diagnostic.multipleInstallations.map((install, i) => /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
656
|
-
children: [
|
|
657
|
-
"\u2514 ",
|
|
658
|
-
install.type,
|
|
659
|
-
" at ",
|
|
660
|
-
install.path
|
|
661
|
-
]
|
|
662
|
-
}, i, true, undefined, this))
|
|
663
|
-
]
|
|
664
|
-
}, undefined, true, undefined, this),
|
|
665
|
-
diagnostic.warnings.length > 0 && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(jsx_dev_runtime3.Fragment, {
|
|
666
|
-
children: [
|
|
667
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {}, undefined, false, undefined, this),
|
|
668
|
-
diagnostic.warnings.map((warning, i) => /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
669
|
-
flexDirection: "column",
|
|
670
|
-
children: [
|
|
671
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
672
|
-
color: "warning",
|
|
673
|
-
children: [
|
|
674
|
-
"Warning: ",
|
|
675
|
-
warning.issue
|
|
676
|
-
]
|
|
677
|
-
}, undefined, true, undefined, this),
|
|
678
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
679
|
-
children: [
|
|
680
|
-
"Fix: ",
|
|
681
|
-
warning.fix
|
|
682
|
-
]
|
|
683
|
-
}, undefined, true, undefined, this)
|
|
684
|
-
]
|
|
685
|
-
}, i, true, undefined, this))
|
|
686
|
-
]
|
|
687
|
-
}, undefined, true, undefined, this),
|
|
688
|
-
errorsExcludingMcp.length > 0 && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
689
|
-
flexDirection: "column",
|
|
690
|
-
marginTop: 1,
|
|
691
|
-
marginBottom: 1,
|
|
692
|
-
children: [
|
|
693
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
694
|
-
bold: true,
|
|
695
|
-
children: "Invalid Settings"
|
|
696
|
-
}, undefined, false, undefined, this),
|
|
697
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ValidationErrorsList, {
|
|
698
|
-
errors: errorsExcludingMcp
|
|
699
|
-
}, undefined, false, undefined, this)
|
|
700
|
-
]
|
|
701
|
-
}, undefined, true, undefined, this)
|
|
702
|
-
]
|
|
703
|
-
}, undefined, true, undefined, this),
|
|
704
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
705
|
-
flexDirection: "column",
|
|
706
|
-
children: [
|
|
707
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
708
|
-
bold: true,
|
|
709
|
-
children: "Updates"
|
|
710
|
-
}, undefined, false, undefined, this),
|
|
711
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
712
|
-
children: [
|
|
713
|
-
"\u2514 Auto-updates:",
|
|
714
|
-
" ",
|
|
715
|
-
diagnostic.packageManager ? "Managed by package manager" : diagnostic.autoUpdates
|
|
716
|
-
]
|
|
717
|
-
}, undefined, true, undefined, this),
|
|
718
|
-
diagnostic.hasUpdatePermissions !== null && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
719
|
-
children: [
|
|
720
|
-
"\u2514 Update permissions:",
|
|
721
|
-
" ",
|
|
722
|
-
diagnostic.hasUpdatePermissions ? "Yes" : "No (requires sudo)"
|
|
723
|
-
]
|
|
724
|
-
}, undefined, true, undefined, this),
|
|
725
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
726
|
-
children: [
|
|
727
|
-
"\u2514 Auto-update channel: ",
|
|
728
|
-
autoUpdatesChannel
|
|
729
|
-
]
|
|
730
|
-
}, undefined, true, undefined, this),
|
|
731
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(import_react.Suspense, {
|
|
732
|
-
fallback: null,
|
|
733
|
-
children: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(DistTagsDisplay, {
|
|
734
|
-
promise: distTagsPromise
|
|
735
|
-
}, undefined, false, undefined, this)
|
|
736
|
-
}, undefined, false, undefined, this)
|
|
737
|
-
]
|
|
738
|
-
}, undefined, true, undefined, this),
|
|
739
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(SandboxDoctorSection, {}, undefined, false, undefined, this),
|
|
740
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(McpParsingWarnings, {}, undefined, false, undefined, this),
|
|
741
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(KeybindingWarnings, {}, undefined, false, undefined, this),
|
|
742
|
-
envValidationErrors.length > 0 && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
743
|
-
flexDirection: "column",
|
|
744
|
-
children: [
|
|
745
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
746
|
-
bold: true,
|
|
747
|
-
children: "Environment Variables"
|
|
748
|
-
}, undefined, false, undefined, this),
|
|
749
|
-
envValidationErrors.map((validation, i) => /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
750
|
-
children: [
|
|
751
|
-
"\u2514 ",
|
|
752
|
-
validation.name,
|
|
753
|
-
":",
|
|
754
|
-
" ",
|
|
755
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
756
|
-
color: validation.status === "capped" ? "warning" : "error",
|
|
757
|
-
children: validation.message
|
|
758
|
-
}, undefined, false, undefined, this)
|
|
759
|
-
]
|
|
760
|
-
}, i, true, undefined, this))
|
|
761
|
-
]
|
|
762
|
-
}, undefined, true, undefined, this),
|
|
763
|
-
versionLockInfo?.enabled && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
764
|
-
flexDirection: "column",
|
|
765
|
-
children: [
|
|
766
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
767
|
-
bold: true,
|
|
768
|
-
children: "Version Locks"
|
|
769
|
-
}, undefined, false, undefined, this),
|
|
770
|
-
versionLockInfo.staleLocksCleaned > 0 && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
771
|
-
dimColor: true,
|
|
772
|
-
children: [
|
|
773
|
-
"\u2514 Cleaned ",
|
|
774
|
-
versionLockInfo.staleLocksCleaned,
|
|
775
|
-
" stale lock(s)"
|
|
776
|
-
]
|
|
777
|
-
}, undefined, true, undefined, this),
|
|
778
|
-
versionLockInfo.locks.length === 0 ? /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
779
|
-
dimColor: true,
|
|
780
|
-
children: "\u2514 No active version locks"
|
|
781
|
-
}, undefined, false, undefined, this) : versionLockInfo.locks.map((lock, i) => /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
782
|
-
children: [
|
|
783
|
-
"\u2514 ",
|
|
784
|
-
lock.version,
|
|
785
|
-
": PID ",
|
|
786
|
-
lock.pid,
|
|
787
|
-
" ",
|
|
788
|
-
lock.isProcessRunning ? /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
789
|
-
children: "(running)"
|
|
790
|
-
}, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
791
|
-
color: "warning",
|
|
792
|
-
children: "(stale)"
|
|
793
|
-
}, undefined, false, undefined, this)
|
|
794
|
-
]
|
|
795
|
-
}, i, true, undefined, this))
|
|
796
|
-
]
|
|
797
|
-
}, undefined, true, undefined, this),
|
|
798
|
-
agentInfo?.failedFiles && agentInfo.failedFiles.length > 0 && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
799
|
-
flexDirection: "column",
|
|
800
|
-
children: [
|
|
801
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
802
|
-
bold: true,
|
|
803
|
-
color: "error",
|
|
804
|
-
children: "Agent Parse Errors"
|
|
805
|
-
}, undefined, false, undefined, this),
|
|
806
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
807
|
-
color: "error",
|
|
808
|
-
children: [
|
|
809
|
-
"\u2514 Failed to parse ",
|
|
810
|
-
agentInfo.failedFiles.length,
|
|
811
|
-
" agent file(s):"
|
|
812
|
-
]
|
|
813
|
-
}, undefined, true, undefined, this),
|
|
814
|
-
agentInfo.failedFiles.map((file, i) => /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
815
|
-
dimColor: true,
|
|
816
|
-
children: [
|
|
817
|
-
" ",
|
|
818
|
-
"\u2514 ",
|
|
819
|
-
file.path,
|
|
820
|
-
": ",
|
|
821
|
-
file.error
|
|
822
|
-
]
|
|
823
|
-
}, i, true, undefined, this))
|
|
824
|
-
]
|
|
825
|
-
}, undefined, true, undefined, this),
|
|
826
|
-
pluginsErrors.length > 0 && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
827
|
-
flexDirection: "column",
|
|
828
|
-
children: [
|
|
829
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
830
|
-
bold: true,
|
|
831
|
-
color: "error",
|
|
832
|
-
children: "Plugin Errors"
|
|
833
|
-
}, undefined, false, undefined, this),
|
|
834
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
835
|
-
color: "error",
|
|
836
|
-
children: [
|
|
837
|
-
"\u2514 ",
|
|
838
|
-
pluginsErrors.length,
|
|
839
|
-
" plugin error(s) detected:"
|
|
840
|
-
]
|
|
841
|
-
}, undefined, true, undefined, this),
|
|
842
|
-
pluginsErrors.map((error, i) => /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
843
|
-
dimColor: true,
|
|
844
|
-
children: [
|
|
845
|
-
" ",
|
|
846
|
-
"\u2514 ",
|
|
847
|
-
error.source || "unknown",
|
|
848
|
-
"plugin" in error && error.plugin ? ` [${error.plugin}]` : "",
|
|
849
|
-
":",
|
|
850
|
-
" ",
|
|
851
|
-
getPluginErrorMessage(error)
|
|
852
|
-
]
|
|
853
|
-
}, i, true, undefined, this))
|
|
854
|
-
]
|
|
855
|
-
}, undefined, true, undefined, this),
|
|
856
|
-
contextWarnings?.unreachableRulesWarning && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
857
|
-
flexDirection: "column",
|
|
858
|
-
children: [
|
|
859
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
860
|
-
bold: true,
|
|
861
|
-
color: "warning",
|
|
862
|
-
children: "Unreachable Permission Rules"
|
|
863
|
-
}, undefined, false, undefined, this),
|
|
864
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
865
|
-
children: [
|
|
866
|
-
"\u2514",
|
|
867
|
-
" ",
|
|
868
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
869
|
-
color: "warning",
|
|
870
|
-
children: [
|
|
871
|
-
figures_default.warning,
|
|
872
|
-
" ",
|
|
873
|
-
contextWarnings.unreachableRulesWarning.message
|
|
874
|
-
]
|
|
875
|
-
}, undefined, true, undefined, this)
|
|
876
|
-
]
|
|
877
|
-
}, undefined, true, undefined, this),
|
|
878
|
-
contextWarnings.unreachableRulesWarning.details.map((detail, i) => /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
879
|
-
dimColor: true,
|
|
880
|
-
children: [
|
|
881
|
-
" ",
|
|
882
|
-
"\u2514 ",
|
|
883
|
-
detail
|
|
884
|
-
]
|
|
885
|
-
}, i, true, undefined, this))
|
|
886
|
-
]
|
|
887
|
-
}, undefined, true, undefined, this),
|
|
888
|
-
contextWarnings && (contextWarnings.claudeMdWarning || contextWarnings.agentWarning || contextWarnings.mcpWarning) && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
889
|
-
flexDirection: "column",
|
|
890
|
-
children: [
|
|
891
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
892
|
-
bold: true,
|
|
893
|
-
children: "Context Usage Warnings"
|
|
894
|
-
}, undefined, false, undefined, this),
|
|
895
|
-
contextWarnings.claudeMdWarning && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(jsx_dev_runtime3.Fragment, {
|
|
896
|
-
children: [
|
|
897
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
898
|
-
children: [
|
|
899
|
-
"\u2514",
|
|
900
|
-
" ",
|
|
901
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
902
|
-
color: "warning",
|
|
903
|
-
children: [
|
|
904
|
-
figures_default.warning,
|
|
905
|
-
" ",
|
|
906
|
-
contextWarnings.claudeMdWarning.message
|
|
907
|
-
]
|
|
908
|
-
}, undefined, true, undefined, this)
|
|
909
|
-
]
|
|
910
|
-
}, undefined, true, undefined, this),
|
|
911
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
912
|
-
children: [
|
|
913
|
-
" ",
|
|
914
|
-
"\u2514 Files:"
|
|
915
|
-
]
|
|
916
|
-
}, undefined, true, undefined, this),
|
|
917
|
-
contextWarnings.claudeMdWarning.details.map((detail, i) => /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
918
|
-
dimColor: true,
|
|
919
|
-
children: [
|
|
920
|
-
" ",
|
|
921
|
-
"\u2514 ",
|
|
922
|
-
detail
|
|
923
|
-
]
|
|
924
|
-
}, i, true, undefined, this))
|
|
925
|
-
]
|
|
926
|
-
}, undefined, true, undefined, this),
|
|
927
|
-
contextWarnings.agentWarning && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(jsx_dev_runtime3.Fragment, {
|
|
928
|
-
children: [
|
|
929
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
930
|
-
children: [
|
|
931
|
-
"\u2514",
|
|
932
|
-
" ",
|
|
933
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
934
|
-
color: "warning",
|
|
935
|
-
children: [
|
|
936
|
-
figures_default.warning,
|
|
937
|
-
" ",
|
|
938
|
-
contextWarnings.agentWarning.message
|
|
939
|
-
]
|
|
940
|
-
}, undefined, true, undefined, this)
|
|
941
|
-
]
|
|
942
|
-
}, undefined, true, undefined, this),
|
|
943
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
944
|
-
children: [
|
|
945
|
-
" ",
|
|
946
|
-
"\u2514 Top contributors:"
|
|
947
|
-
]
|
|
948
|
-
}, undefined, true, undefined, this),
|
|
949
|
-
contextWarnings.agentWarning.details.map((detail, i) => /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
950
|
-
dimColor: true,
|
|
951
|
-
children: [
|
|
952
|
-
" ",
|
|
953
|
-
"\u2514 ",
|
|
954
|
-
detail
|
|
955
|
-
]
|
|
956
|
-
}, i, true, undefined, this))
|
|
957
|
-
]
|
|
958
|
-
}, undefined, true, undefined, this),
|
|
959
|
-
contextWarnings.mcpWarning && /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(jsx_dev_runtime3.Fragment, {
|
|
960
|
-
children: [
|
|
961
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
962
|
-
children: [
|
|
963
|
-
"\u2514",
|
|
964
|
-
" ",
|
|
965
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
966
|
-
color: "warning",
|
|
967
|
-
children: [
|
|
968
|
-
figures_default.warning,
|
|
969
|
-
" ",
|
|
970
|
-
contextWarnings.mcpWarning.message
|
|
971
|
-
]
|
|
972
|
-
}, undefined, true, undefined, this)
|
|
973
|
-
]
|
|
974
|
-
}, undefined, true, undefined, this),
|
|
975
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
976
|
-
children: [
|
|
977
|
-
" ",
|
|
978
|
-
"\u2514 MCP servers:"
|
|
979
|
-
]
|
|
980
|
-
}, undefined, true, undefined, this),
|
|
981
|
-
contextWarnings.mcpWarning.details.map((detail, i) => /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
982
|
-
dimColor: true,
|
|
983
|
-
children: [
|
|
984
|
-
" ",
|
|
985
|
-
"\u2514 ",
|
|
986
|
-
detail
|
|
987
|
-
]
|
|
988
|
-
}, i, true, undefined, this))
|
|
989
|
-
]
|
|
990
|
-
}, undefined, true, undefined, this)
|
|
991
|
-
]
|
|
992
|
-
}, undefined, true, undefined, this),
|
|
993
|
-
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
994
|
-
children: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(PressEnterToContinue, {}, undefined, false, undefined, this)
|
|
995
|
-
}, undefined, false, undefined, this)
|
|
996
|
-
]
|
|
997
|
-
}, undefined, true, undefined, this);
|
|
998
|
-
}
|
|
999
|
-
var import_react, jsx_dev_runtime3, getGcsDistTags = async () => ({ latest: null, stable: null }), getNpmDistTags = async () => ({ latest: null, stable: null });
|
|
1000
|
-
var init_Doctor = __esm(() => {
|
|
1001
|
-
init_figures();
|
|
1002
|
-
init_KeybindingWarnings();
|
|
1003
|
-
init_McpParsingWarnings();
|
|
1004
|
-
init_context();
|
|
1005
|
-
init_envUtils();
|
|
1006
|
-
init_state();
|
|
1007
|
-
init_src();
|
|
1008
|
-
init_PressEnterToContinue();
|
|
1009
|
-
init_SandboxDoctorSection();
|
|
1010
|
-
init_ValidationErrorsList();
|
|
1011
|
-
init_useSettingsErrors();
|
|
1012
|
-
init_useExitOnCtrlCDWithKeybindings();
|
|
1013
|
-
init_src();
|
|
1014
|
-
init_useKeybinding();
|
|
1015
|
-
init_AppState();
|
|
1016
|
-
init_plugin();
|
|
1017
|
-
init_doctorContextWarnings();
|
|
1018
|
-
init_doctorDiagnostic();
|
|
1019
|
-
init_envValidation();
|
|
1020
|
-
init_file();
|
|
1021
|
-
init_pidLock();
|
|
1022
|
-
init_settings();
|
|
1023
|
-
init_outputLimits();
|
|
1024
|
-
init_outputFormatting();
|
|
1025
|
-
init_xdg();
|
|
1026
|
-
import_react = __toESM(require_react(), 1);
|
|
1027
|
-
jsx_dev_runtime3 = __toESM(require_jsx_dev_runtime(), 1);
|
|
1028
|
-
});
|
|
1029
|
-
|
|
1030
|
-
export { Doctor, init_Doctor };
|