@caspian2026/agent-sdk 0.0.24 → 0.0.26
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 +196 -47
- package/dist/sdk/query.cjs +2 -362
- package/dist/sdk/query.js +2 -367
- package/package.json +4 -6
- package/dist/chunk-05kvhzd7.js +0 -3561
- package/dist/chunk-07069jq1.js +0 -30
- package/dist/chunk-0731m51q.js +0 -8
- package/dist/chunk-08bspa4b.js +0 -673
- package/dist/chunk-0brkf8q8.js +0 -89
- package/dist/chunk-0n843xh7.js +0 -261
- package/dist/chunk-0nbp5jwx.js +0 -8583
- package/dist/chunk-0nj16az9.js +0 -169
- package/dist/chunk-0paqc2yw.js +0 -15
- package/dist/chunk-0q6b50ps.js +0 -111
- package/dist/chunk-0r5bb9j4.js +0 -477
- package/dist/chunk-0rpz1wgn.js +0 -1030
- package/dist/chunk-0t81d427.js +0 -41
- package/dist/chunk-0vaw02wq.js +0 -24
- package/dist/chunk-0vkfrmqm.js +0 -690
- package/dist/chunk-0vp3wfab.js +0 -12
- package/dist/chunk-0vr10742.js +0 -1809
- package/dist/chunk-0xjaqda8.js +0 -1124
- package/dist/chunk-13ehyphg.js +0 -223
- package/dist/chunk-15jsw9bb.js +0 -349
- package/dist/chunk-16m7eyyw.js +0 -1385
- package/dist/chunk-1ae3nt9j.js +0 -31
- package/dist/chunk-1gq4r3v1.js +0 -308
- package/dist/chunk-1gx78081.js +0 -66
- package/dist/chunk-1h2famwb.js +0 -49
- package/dist/chunk-1n546sfg.js +0 -200
- package/dist/chunk-1qg06d60.js +0 -494
- package/dist/chunk-1t0rqstn.js +0 -146
- package/dist/chunk-1z8p2eqd.js +0 -40
- package/dist/chunk-1zjh9cc5.js +0 -266
- package/dist/chunk-20ahkkrb.js +0 -132
- package/dist/chunk-21pbfch8.js +0 -105
- package/dist/chunk-26wtxbdc.js +0 -13870
- package/dist/chunk-2fwze72g.js +0 -24
- package/dist/chunk-2gcbr1c7.js +0 -107
- package/dist/chunk-2grc1yr8.js +0 -654
- package/dist/chunk-2gzv8nrw.js +0 -205
- package/dist/chunk-2r212cvt.js +0 -253
- package/dist/chunk-2s74bt6e.js +0 -317
- package/dist/chunk-2v385w7r.js +0 -7422
- package/dist/chunk-2wtkvpp2.js +0 -167
- package/dist/chunk-31rsspfr.js +0 -418
- package/dist/chunk-3c25bcsw.js +0 -17
- package/dist/chunk-3jm08aaw.js +0 -91
- package/dist/chunk-3mgywd32.js +0 -8
- package/dist/chunk-3nk79af8.js +0 -8
- package/dist/chunk-3v4sk2py.js +0 -101
- package/dist/chunk-3vwft0eh.js +0 -349
- package/dist/chunk-3vy1jt9p.js +0 -1010
- package/dist/chunk-3wvqzq9w.js +0 -92
- package/dist/chunk-3wvv2s8d.js +0 -336
- package/dist/chunk-4060b3s2.js +0 -108
- package/dist/chunk-434e0vh4.js +0 -275
- package/dist/chunk-46dm23zs.js +0 -344
- package/dist/chunk-4bh4qs70.js +0 -209
- package/dist/chunk-4cxzbqws.js +0 -94
- package/dist/chunk-4jm600zv.js +0 -13
- package/dist/chunk-4k9d7gxv.js +0 -118
- package/dist/chunk-4nc3t6ms.js +0 -396
- package/dist/chunk-4pbx3g7s.js +0 -26
- package/dist/chunk-4qhh8bpa.js +0 -54
- package/dist/chunk-4v63px9y.js +0 -133
- package/dist/chunk-4xnnzt3j.js +0 -74
- package/dist/chunk-4zchh01h.js +0 -201
- package/dist/chunk-5216fha8.js +0 -1163
- package/dist/chunk-55raexh7.js +0 -14358
- package/dist/chunk-5bffhf64.js +0 -81
- package/dist/chunk-5ccdsxgy.js +0 -74
- package/dist/chunk-5ddh2hyn.js +0 -91
- package/dist/chunk-5e6ncq5j.js +0 -61
- package/dist/chunk-5ekyhb1w.js +0 -422
- package/dist/chunk-5fy4r8rv.js +0 -52
- package/dist/chunk-5h5kx2jd.js +0 -34
- package/dist/chunk-5mbgdvyz.js +0 -847
- package/dist/chunk-5n1jc02d.js +0 -87
- package/dist/chunk-5pysjah8.js +0 -1543
- package/dist/chunk-5ssfz438.js +0 -323
- package/dist/chunk-5z28bqne.js +0 -6748
- package/dist/chunk-603y0mmg.js +0 -50
- package/dist/chunk-62v5kkff.js +0 -90
- package/dist/chunk-64c1avct.js +0 -13
- package/dist/chunk-64r16v22.js +0 -162
- package/dist/chunk-64smdx4a.js +0 -418
- package/dist/chunk-66zry909.js +0 -11
- package/dist/chunk-68ffk5qa.js +0 -14
- package/dist/chunk-69n11zng.js +0 -436
- package/dist/chunk-6dj5t602.js +0 -341
- package/dist/chunk-6dngjwkh.js +0 -63
- package/dist/chunk-6nsd9606.js +0 -790
- package/dist/chunk-6pkh8frk.js +0 -253
- package/dist/chunk-6qcmt5eb.js +0 -251
- package/dist/chunk-6ww7451s.js +0 -60
- package/dist/chunk-6xgb0kqz.js +0 -90
- package/dist/chunk-72ys9m07.js +0 -121
- package/dist/chunk-741sgvtx.js +0 -121
- package/dist/chunk-7aw745vx.js +0 -40175
- package/dist/chunk-7c8b8cfb.js +0 -219
- package/dist/chunk-7mwt4e1z.js +0 -234
- package/dist/chunk-7sgtxrsc.js +0 -1059
- package/dist/chunk-7wm5s02e.js +0 -216
- package/dist/chunk-7xyswgjh.js +0 -8
- package/dist/chunk-80a197ez.js +0 -1438
- package/dist/chunk-83hfzbx3.js +0 -10
- package/dist/chunk-8akrsgad.js +0 -55
- package/dist/chunk-8g5pe1gr.js +0 -37
- package/dist/chunk-8s07t4k7.js +0 -40
- package/dist/chunk-8yhf030a.js +0 -69
- package/dist/chunk-928tzaa8.js +0 -107
- package/dist/chunk-949pjzj9.js +0 -266
- package/dist/chunk-9aycd4z9.js +0 -490
- package/dist/chunk-9bzqvsz5.js +0 -211
- package/dist/chunk-9q3xfy27.js +0 -460
- package/dist/chunk-9vzg1360.js +0 -153
- package/dist/chunk-9wbh8n1y.js +0 -63
- package/dist/chunk-9x5zgy22.js +0 -12
- package/dist/chunk-9zdj4ypz.js +0 -206
- package/dist/chunk-a0bvcgyd.js +0 -127
- package/dist/chunk-a4m3yr2q.js +0 -117
- package/dist/chunk-a8jd4gee.js +0 -227
- package/dist/chunk-ase86y73.js +0 -15
- package/dist/chunk-atfzpm6r.js +0 -325
- package/dist/chunk-awqsddp2.js +0 -338
- package/dist/chunk-awrgzpk6.js +0 -29
- package/dist/chunk-b0kf00ff.js +0 -637
- package/dist/chunk-b1kcd3ss.js +0 -27
- package/dist/chunk-b4hy21c4.js +0 -140
- package/dist/chunk-b9mkm8mg.js +0 -111
- package/dist/chunk-bdjx14rd.js +0 -594
- package/dist/chunk-bfb41q9h.js +0 -295
- package/dist/chunk-bg4x9ex0.js +0 -21
- package/dist/chunk-bh5zqvyc.js +0 -36
- package/dist/chunk-bn0zv2y2.js +0 -1154
- package/dist/chunk-bn7t681c.js +0 -2669
- package/dist/chunk-br4wgffc.js +0 -393
- package/dist/chunk-brjd9zmk.js +0 -42
- package/dist/chunk-byfawrfx.js +0 -121
- package/dist/chunk-c6sjhj89.js +0 -1284
- package/dist/chunk-c7jwbe76.js +0 -29030
- package/dist/chunk-cdef9v7b.js +0 -27
- package/dist/chunk-cdz5yb0r.js +0 -57
- package/dist/chunk-cevq1787.js +0 -2718
- package/dist/chunk-cgfdkzhb.js +0 -12
- package/dist/chunk-cgqw4x5z.js +0 -155
- package/dist/chunk-cmmmc8e0.js +0 -212
- package/dist/chunk-cnsj3vq2.js +0 -35
- package/dist/chunk-cxrktb5g.js +0 -51
- package/dist/chunk-cyhrb0bk.js +0 -251
- package/dist/chunk-d23rmn8r.js +0 -62
- package/dist/chunk-d4mdda98.js +0 -94
- package/dist/chunk-dcwp94cj.js +0 -152
- package/dist/chunk-ddsjkqs4.js +0 -39
- package/dist/chunk-ddv56j39.js +0 -148
- package/dist/chunk-dfq6pbq7.js +0 -5822
- package/dist/chunk-dfzkwynj.js +0 -5368
- package/dist/chunk-dkgkd8b7.js +0 -516
- package/dist/chunk-dpnmf0pq.js +0 -312
- package/dist/chunk-dygx7vcc.js +0 -226
- package/dist/chunk-e0abab5b.js +0 -445
- package/dist/chunk-e5qhvhjy.js +0 -168
- package/dist/chunk-e60y6r1n.js +0 -20
- package/dist/chunk-e68kgvcq.js +0 -79
- package/dist/chunk-e9w9zc0g.js +0 -392
- package/dist/chunk-ecj9w6tm.js +0 -558
- package/dist/chunk-ehtwnxpg.js +0 -1591
- package/dist/chunk-eqp1rfft.js +0 -17
- package/dist/chunk-etdt1xz3.js +0 -19
- package/dist/chunk-ewadzrm8.js +0 -103
- package/dist/chunk-f03s83vj.js +0 -91
- package/dist/chunk-f3kk0p3s.js +0 -150
- package/dist/chunk-f3pjerx4.js +0 -4265
- package/dist/chunk-f6h5weh6.js +0 -61
- package/dist/chunk-fajg8x36.js +0 -8158
- package/dist/chunk-fbv4apne.js +0 -51
- package/dist/chunk-fcynwjpm.js +0 -1072
- package/dist/chunk-fdvaf6nn.js +0 -20
- package/dist/chunk-feyzykye.js +0 -10
- package/dist/chunk-ff85rwvc.js +0 -180
- package/dist/chunk-fqak69ft.js +0 -458
- package/dist/chunk-fxdkbabd.js +0 -195
- package/dist/chunk-fyc5fepv.js +0 -10
- package/dist/chunk-g78c6ztj.js +0 -89
- package/dist/chunk-g8ee7yza.js +0 -105
- package/dist/chunk-g9f19ttm.js +0 -15
- package/dist/chunk-gcktsbxb.js +0 -77
- package/dist/chunk-gdwdqewd.js +0 -19
- package/dist/chunk-gg55fns0.js +0 -6440
- package/dist/chunk-gnpt1t6q.js +0 -209364
- package/dist/chunk-gsbw2j2b.js +0 -276
- package/dist/chunk-gybt680f.js +0 -9114
- package/dist/chunk-gz1e8y1w.js +0 -33
- package/dist/chunk-gz7vn2gg.js +0 -114
- package/dist/chunk-h0d5eat0.js +0 -101
- package/dist/chunk-h27tjbp3.js +0 -33118
- package/dist/chunk-h2yy8k4c.js +0 -58
- package/dist/chunk-h5acpdqt.js +0 -103
- package/dist/chunk-h63r8vps.js +0 -2840
- package/dist/chunk-h64x5b04.js +0 -860
- package/dist/chunk-h92snc84.js +0 -420
- package/dist/chunk-h9n54swm.js +0 -27
- package/dist/chunk-hafcrnpc.js +0 -145
- package/dist/chunk-hakdhagh.js +0 -16606
- package/dist/chunk-hk4phsaw.js +0 -388
- package/dist/chunk-hph1bmqw.js +0 -65
- package/dist/chunk-hvnztnp3.js +0 -71
- package/dist/chunk-hwfknpxv.js +0 -39
- package/dist/chunk-j2xxd002.js +0 -1052
- package/dist/chunk-j3qbygme.js +0 -105
- package/dist/chunk-j5bth84e.js +0 -97
- package/dist/chunk-j64ga6ta.js +0 -8035
- package/dist/chunk-jbwgyskk.js +0 -385
- package/dist/chunk-jd32zbps.js +0 -15
- package/dist/chunk-jdhkh2bb.js +0 -618
- package/dist/chunk-jeqcwgt7.js +0 -177
- package/dist/chunk-jf75p9ap.js +0 -445
- package/dist/chunk-jgvk0za1.js +0 -260
- package/dist/chunk-jhpaevah.js +0 -565
- package/dist/chunk-jmjwrbwd.js +0 -635
- package/dist/chunk-jpdbfwvq.js +0 -100
- package/dist/chunk-jps4m6sz.js +0 -183
- package/dist/chunk-jwf0s51s.js +0 -867
- package/dist/chunk-jxge4dgh.js +0 -83
- package/dist/chunk-jz71gv95.js +0 -1161
- package/dist/chunk-jzthz1bx.js +0 -15
- package/dist/chunk-jzvd2ycp.js +0 -120
- package/dist/chunk-k0p9w03v.js +0 -4957
- package/dist/chunk-k4dcreh0.js +0 -442
- package/dist/chunk-k7akhwkn.js +0 -151
- package/dist/chunk-k8vp0atq.js +0 -2331
- package/dist/chunk-kgd7gfvk.js +0 -407
- package/dist/chunk-km5ycg1j.js +0 -87
- package/dist/chunk-kvyrxzj8.js +0 -26
- package/dist/chunk-kwekc97v.js +0 -18
- package/dist/chunk-ky1z78ve.js +0 -119
- package/dist/chunk-mcws22k3.js +0 -42
- package/dist/chunk-mjazvyd8.js +0 -528
- package/dist/chunk-mswx2nma.js +0 -103
- package/dist/chunk-mz6a0phh.js +0 -2962
- package/dist/chunk-n2tg12hg.js +0 -374
- package/dist/chunk-n3fv4ya7.js +0 -146
- package/dist/chunk-n4eabmqd.js +0 -93
- package/dist/chunk-n4tx7baq.js +0 -193
- package/dist/chunk-n6g4jbeh.js +0 -289
- package/dist/chunk-n6wzfxf1.js +0 -100
- package/dist/chunk-ndcmqfkv.js +0 -244
- package/dist/chunk-netzwgv1.js +0 -154
- package/dist/chunk-nhcg04jt.js +0 -120
- package/dist/chunk-nhsm3ntd.js +0 -439
- package/dist/chunk-njev89d1.js +0 -2335
- 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-p97fd5af.js +0 -684
- package/dist/chunk-pe3rkfp2.js +0 -74
- package/dist/chunk-pgtnj1mt.js +0 -705
- package/dist/chunk-phmnkw9y.js +0 -283
- package/dist/chunk-pnds7g1q.js +0 -130
- package/dist/chunk-ppwjyveh.js +0 -8
- package/dist/chunk-pqqxdk5f.js +0 -543
- package/dist/chunk-ps49ymvj.js +0 -43
- package/dist/chunk-pwwa7s62.js +0 -11
- package/dist/chunk-q3hfrat2.js +0 -313
- package/dist/chunk-qajrkk97.js +0 -298
- package/dist/chunk-qatfdxvd.js +0 -34
- package/dist/chunk-qb5qcctj.js +0 -206
- package/dist/chunk-qb6k2afy.js +0 -153
- package/dist/chunk-qgk93a75.js +0 -85
- package/dist/chunk-qkczt8cr.js +0 -24
- package/dist/chunk-qn1be1vf.js +0 -267
- package/dist/chunk-qnfx3qtx.js +0 -617
- package/dist/chunk-qnwne2m4.js +0 -87
- package/dist/chunk-qp2qdcda.js +0 -100
- package/dist/chunk-qpp3wwh5.js +0 -697
- package/dist/chunk-r0bx1gc7.js +0 -174
- package/dist/chunk-radnwk8x.js +0 -107
- package/dist/chunk-rkv5jq0y.js +0 -71
- package/dist/chunk-rmbbmd3s.js +0 -68
- package/dist/chunk-rmgbs5an.js +0 -640
- package/dist/chunk-rn0v1hk8.js +0 -34
- package/dist/chunk-rnxctq9p.js +0 -1646
- package/dist/chunk-rtd39n81.js +0 -95
- package/dist/chunk-s8gy4ky9.js +0 -122
- package/dist/chunk-s8kj6ajy.js +0 -32
- package/dist/chunk-sd36yzx8.js +0 -954
- package/dist/chunk-sdenh194.js +0 -121
- package/dist/chunk-sdtqp75c.js +0 -55
- package/dist/chunk-sedbc8ep.js +0 -212
- package/dist/chunk-sfrb15b2.js +0 -321
- package/dist/chunk-sgpmpn90.js +0 -35
- package/dist/chunk-sh02d2qn.js +0 -38
- package/dist/chunk-shd4yhsf.js +0 -32
- package/dist/chunk-shkycj1q.js +0 -178
- package/dist/chunk-sk7h93je.js +0 -153
- package/dist/chunk-sm8g6fsm.js +0 -122
- package/dist/chunk-snrjy66h.js +0 -671
- package/dist/chunk-sq4a0yjh.js +0 -116
- package/dist/chunk-sr3t4thh.js +0 -895
- package/dist/chunk-srj6qnf6.js +0 -107
- package/dist/chunk-sz62n77p.js +0 -155
- package/dist/chunk-szj5wvdy.js +0 -28
- package/dist/chunk-t29a6zb5.js +0 -45
- package/dist/chunk-t2ecddwj.js +0 -731
- package/dist/chunk-t33hmmmm.js +0 -113
- package/dist/chunk-t4khqff1.js +0 -16
- package/dist/chunk-t9p85zff.js +0 -24
- package/dist/chunk-ta3jyvxs.js +0 -984
- package/dist/chunk-tkx5eec8.js +0 -54
- 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-vf612n57.js +0 -472
- package/dist/chunk-vkhrrvfq.js +0 -44
- package/dist/chunk-vt5wm07k.js +0 -74
- package/dist/chunk-vvvrv61g.js +0 -875
- package/dist/chunk-vyjeh50y.js +0 -2149
- package/dist/chunk-w0kxcv73.js +0 -97
- package/dist/chunk-w6m6trzq.js +0 -58
- package/dist/chunk-wa8yn2p0.js +0 -2007
- package/dist/chunk-wb18cecv.js +0 -995
- package/dist/chunk-wgk9sxk7.js +0 -329
- package/dist/chunk-wh0ev1bw.js +0 -111
- package/dist/chunk-wka1647p.js +0 -98
- package/dist/chunk-wnwfwyj4.js +0 -90
- package/dist/chunk-wpdchyy2.js +0 -97
- package/dist/chunk-x3g44n7k.js +0 -114
- package/dist/chunk-x47h283a.js +0 -56
- package/dist/chunk-x6r4v44b.js +0 -8
- package/dist/chunk-x7fdwq3d.js +0 -33
- package/dist/chunk-x8d2ehd7.js +0 -19
- package/dist/chunk-xbeg2hej.js +0 -257
- package/dist/chunk-xeb6075z.js +0 -3435
- package/dist/chunk-xhfmdq1y.js +0 -147
- package/dist/chunk-xhscn33a.js +0 -138
- package/dist/chunk-xv3era3s.js +0 -8
- package/dist/chunk-xz5gbhc3.js +0 -93
- package/dist/chunk-y1784krc.js +0 -19
- package/dist/chunk-y1vyezct.js +0 -123
- package/dist/chunk-y45ecntg.js +0 -942
- package/dist/chunk-y4ca9kqz.js +0 -3830
- package/dist/chunk-y9bhjjdz.js +0 -145
- package/dist/chunk-yb3bxv3w.js +0 -30
- package/dist/chunk-ye2q9gqj.js +0 -332
- package/dist/chunk-yfg3adfq.js +0 -88
- package/dist/chunk-yst0wmgw.js +0 -269
- package/dist/chunk-ywe9dbnz.js +0 -460
- package/dist/chunk-yyex5gsf.js +0 -269
- package/dist/chunk-yz2kzqk5.js +0 -439
- package/dist/chunk-z263ehpg.js +0 -131
- package/dist/chunk-z2dp53wn.js +0 -17
- package/dist/chunk-zaq348h2.js +0 -281
- package/dist/chunk-zr0qx9q0.js +0 -642
- package/dist/chunk-zxh62ved.js +0 -31
- package/dist/chunk-zy5vn8sd.js +0 -329
- package/dist/chunk-zzm33q8x.js +0 -8
- package/dist/cli.js +0 -91
package/dist/chunk-cyhrb0bk.js
DELETED
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
detectAndUninstallDelistedPlugins
|
|
4
|
-
} from "./chunk-qnwne2m4.js";
|
|
5
|
-
import {
|
|
6
|
-
getFlaggedPlugins,
|
|
7
|
-
init_pluginFlagging
|
|
8
|
-
} from "./chunk-1qg06d60.js";
|
|
9
|
-
import {
|
|
10
|
-
getPluginCommands,
|
|
11
|
-
init_AppState,
|
|
12
|
-
init_loadPluginAgents,
|
|
13
|
-
init_loadPluginCommands,
|
|
14
|
-
init_loadPluginHooks,
|
|
15
|
-
init_lspPluginIntegration,
|
|
16
|
-
init_manager,
|
|
17
|
-
init_mcpPluginIntegration,
|
|
18
|
-
init_notifications,
|
|
19
|
-
init_pluginLoader,
|
|
20
|
-
loadAllPlugins,
|
|
21
|
-
loadPluginAgents,
|
|
22
|
-
loadPluginHooks,
|
|
23
|
-
loadPluginLspServers,
|
|
24
|
-
loadPluginMcpServers,
|
|
25
|
-
reinitializeLspServerManager,
|
|
26
|
-
useAppState,
|
|
27
|
-
useNotifications,
|
|
28
|
-
useSetAppState
|
|
29
|
-
} from "./chunk-gnpt1t6q.js";
|
|
30
|
-
import {
|
|
31
|
-
count,
|
|
32
|
-
init_array
|
|
33
|
-
} from "./chunk-6nsd9606.js";
|
|
34
|
-
import {
|
|
35
|
-
require_react
|
|
36
|
-
} from "./chunk-7sgtxrsc.js";
|
|
37
|
-
import {
|
|
38
|
-
init_analytics,
|
|
39
|
-
logEvent
|
|
40
|
-
} from "./chunk-x8d2ehd7.js";
|
|
41
|
-
import {
|
|
42
|
-
init_diagLogs,
|
|
43
|
-
logForDiagnosticsNoPII
|
|
44
|
-
} from "./chunk-3vy1jt9p.js";
|
|
45
|
-
import {
|
|
46
|
-
init_debug,
|
|
47
|
-
init_errors,
|
|
48
|
-
init_log,
|
|
49
|
-
logError,
|
|
50
|
-
logForDebugging,
|
|
51
|
-
toError
|
|
52
|
-
} from "./chunk-gg55fns0.js";
|
|
53
|
-
import {
|
|
54
|
-
__toESM
|
|
55
|
-
} from "./chunk-qp2qdcda.js";
|
|
56
|
-
|
|
57
|
-
// src/hooks/useManagePlugins.ts
|
|
58
|
-
init_notifications();
|
|
59
|
-
init_analytics();
|
|
60
|
-
init_manager();
|
|
61
|
-
init_AppState();
|
|
62
|
-
init_array();
|
|
63
|
-
init_debug();
|
|
64
|
-
init_diagLogs();
|
|
65
|
-
init_errors();
|
|
66
|
-
init_log();
|
|
67
|
-
init_loadPluginAgents();
|
|
68
|
-
init_loadPluginCommands();
|
|
69
|
-
init_loadPluginHooks();
|
|
70
|
-
init_lspPluginIntegration();
|
|
71
|
-
init_mcpPluginIntegration();
|
|
72
|
-
var import_react = __toESM(require_react(), 1);
|
|
73
|
-
init_pluginFlagging();
|
|
74
|
-
init_pluginLoader();
|
|
75
|
-
function useManagePlugins({
|
|
76
|
-
enabled = true
|
|
77
|
-
} = {}) {
|
|
78
|
-
const setAppState = useSetAppState();
|
|
79
|
-
const needsRefresh = useAppState((s) => s.plugins.needsRefresh);
|
|
80
|
-
const { addNotification } = useNotifications();
|
|
81
|
-
const initialPluginLoad = import_react.useCallback(async () => {
|
|
82
|
-
try {
|
|
83
|
-
const { enabled: enabled2, disabled, errors } = await loadAllPlugins();
|
|
84
|
-
await detectAndUninstallDelistedPlugins();
|
|
85
|
-
const flagged = getFlaggedPlugins();
|
|
86
|
-
if (Object.keys(flagged).length > 0) {
|
|
87
|
-
addNotification({
|
|
88
|
-
key: "plugin-delisted-flagged",
|
|
89
|
-
text: "Plugins flagged. Check /plugins",
|
|
90
|
-
color: "warning",
|
|
91
|
-
priority: "high"
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
let commands = [];
|
|
95
|
-
let agents = [];
|
|
96
|
-
try {
|
|
97
|
-
commands = await getPluginCommands();
|
|
98
|
-
} catch (error) {
|
|
99
|
-
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
100
|
-
errors.push({
|
|
101
|
-
type: "generic-error",
|
|
102
|
-
source: "plugin-commands",
|
|
103
|
-
error: `Failed to load plugin commands: ${errorMessage}`
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
try {
|
|
107
|
-
agents = await loadPluginAgents();
|
|
108
|
-
} catch (error) {
|
|
109
|
-
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
110
|
-
errors.push({
|
|
111
|
-
type: "generic-error",
|
|
112
|
-
source: "plugin-agents",
|
|
113
|
-
error: `Failed to load plugin agents: ${errorMessage}`
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
try {
|
|
117
|
-
await loadPluginHooks();
|
|
118
|
-
} catch (error) {
|
|
119
|
-
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
120
|
-
errors.push({
|
|
121
|
-
type: "generic-error",
|
|
122
|
-
source: "plugin-hooks",
|
|
123
|
-
error: `Failed to load plugin hooks: ${errorMessage}`
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
const mcpServerCounts = await Promise.all(enabled2.map(async (p) => {
|
|
127
|
-
if (p.mcpServers)
|
|
128
|
-
return Object.keys(p.mcpServers).length;
|
|
129
|
-
const servers = await loadPluginMcpServers(p, errors);
|
|
130
|
-
if (servers)
|
|
131
|
-
p.mcpServers = servers;
|
|
132
|
-
return servers ? Object.keys(servers).length : 0;
|
|
133
|
-
}));
|
|
134
|
-
const mcp_count = mcpServerCounts.reduce((sum, n) => sum + n, 0);
|
|
135
|
-
const lspServerCounts = await Promise.all(enabled2.map(async (p) => {
|
|
136
|
-
if (p.lspServers)
|
|
137
|
-
return Object.keys(p.lspServers).length;
|
|
138
|
-
const servers = await loadPluginLspServers(p, errors);
|
|
139
|
-
if (servers)
|
|
140
|
-
p.lspServers = servers;
|
|
141
|
-
return servers ? Object.keys(servers).length : 0;
|
|
142
|
-
}));
|
|
143
|
-
const lsp_count = lspServerCounts.reduce((sum, n) => sum + n, 0);
|
|
144
|
-
reinitializeLspServerManager();
|
|
145
|
-
setAppState((prevState) => {
|
|
146
|
-
const existingLspErrors = prevState.plugins.errors.filter((e) => e.source === "lsp-manager" || e.source.startsWith("plugin:"));
|
|
147
|
-
const newErrorKeys = new Set(errors.map((e) => e.type === "generic-error" ? `generic-error:${e.source}:${e.error}` : `${e.type}:${e.source}`));
|
|
148
|
-
const filteredExisting = existingLspErrors.filter((e) => {
|
|
149
|
-
const key = e.type === "generic-error" ? `generic-error:${e.source}:${e.error}` : `${e.type}:${e.source}`;
|
|
150
|
-
return !newErrorKeys.has(key);
|
|
151
|
-
});
|
|
152
|
-
const mergedErrors = [...filteredExisting, ...errors];
|
|
153
|
-
return {
|
|
154
|
-
...prevState,
|
|
155
|
-
plugins: {
|
|
156
|
-
...prevState.plugins,
|
|
157
|
-
enabled: enabled2,
|
|
158
|
-
disabled,
|
|
159
|
-
commands,
|
|
160
|
-
errors: mergedErrors
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
});
|
|
164
|
-
logForDebugging(`Loaded plugins - Enabled: ${enabled2.length}, Disabled: ${disabled.length}, Commands: ${commands.length}, Agents: ${agents.length}, Errors: ${errors.length}`);
|
|
165
|
-
const hook_count = enabled2.reduce((sum, p) => {
|
|
166
|
-
if (!p.hooksConfig)
|
|
167
|
-
return sum;
|
|
168
|
-
return sum + Object.values(p.hooksConfig).reduce((s, matchers) => s + (matchers?.reduce((h, m) => h + m.hooks.length, 0) ?? 0), 0);
|
|
169
|
-
}, 0);
|
|
170
|
-
return {
|
|
171
|
-
enabled_count: enabled2.length,
|
|
172
|
-
disabled_count: disabled.length,
|
|
173
|
-
inline_count: count(enabled2, (p) => p.source.endsWith("@inline")),
|
|
174
|
-
marketplace_count: count(enabled2, (p) => !p.source.endsWith("@inline")),
|
|
175
|
-
error_count: errors.length,
|
|
176
|
-
skill_count: commands.length,
|
|
177
|
-
agent_count: agents.length,
|
|
178
|
-
hook_count,
|
|
179
|
-
mcp_count,
|
|
180
|
-
lsp_count,
|
|
181
|
-
ant_enabled_names: process.env.USER_TYPE === "ant" && enabled2.length > 0 ? enabled2.map((p) => p.name).sort().join(",") : undefined
|
|
182
|
-
};
|
|
183
|
-
} catch (error) {
|
|
184
|
-
const errorObj = toError(error);
|
|
185
|
-
logError(errorObj);
|
|
186
|
-
logForDebugging(`Error loading plugins: ${error}`);
|
|
187
|
-
setAppState((prevState) => {
|
|
188
|
-
const existingLspErrors = prevState.plugins.errors.filter((e) => e.source === "lsp-manager" || e.source.startsWith("plugin:"));
|
|
189
|
-
const newError = {
|
|
190
|
-
type: "generic-error",
|
|
191
|
-
source: "plugin-system",
|
|
192
|
-
error: errorObj.message
|
|
193
|
-
};
|
|
194
|
-
return {
|
|
195
|
-
...prevState,
|
|
196
|
-
plugins: {
|
|
197
|
-
...prevState.plugins,
|
|
198
|
-
enabled: [],
|
|
199
|
-
disabled: [],
|
|
200
|
-
commands: [],
|
|
201
|
-
errors: [...existingLspErrors, newError]
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
});
|
|
205
|
-
return {
|
|
206
|
-
enabled_count: 0,
|
|
207
|
-
disabled_count: 0,
|
|
208
|
-
inline_count: 0,
|
|
209
|
-
marketplace_count: 0,
|
|
210
|
-
error_count: 1,
|
|
211
|
-
skill_count: 0,
|
|
212
|
-
agent_count: 0,
|
|
213
|
-
hook_count: 0,
|
|
214
|
-
mcp_count: 0,
|
|
215
|
-
lsp_count: 0,
|
|
216
|
-
load_failed: true,
|
|
217
|
-
ant_enabled_names: undefined
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
}, [setAppState, addNotification]);
|
|
221
|
-
import_react.useEffect(() => {
|
|
222
|
-
if (!enabled)
|
|
223
|
-
return;
|
|
224
|
-
initialPluginLoad().then((metrics) => {
|
|
225
|
-
const { ant_enabled_names, ...baseMetrics } = metrics;
|
|
226
|
-
const allMetrics = {
|
|
227
|
-
...baseMetrics,
|
|
228
|
-
has_custom_plugin_cache_dir: !!process.env.CLAUDE_CODE_PLUGIN_CACHE_DIR
|
|
229
|
-
};
|
|
230
|
-
logEvent("tengu_plugins_loaded", {
|
|
231
|
-
...allMetrics,
|
|
232
|
-
...ant_enabled_names !== undefined && {
|
|
233
|
-
enabled_names: ant_enabled_names
|
|
234
|
-
}
|
|
235
|
-
});
|
|
236
|
-
logForDiagnosticsNoPII("info", "tengu_plugins_loaded", allMetrics);
|
|
237
|
-
});
|
|
238
|
-
}, [initialPluginLoad, enabled]);
|
|
239
|
-
import_react.useEffect(() => {
|
|
240
|
-
if (!enabled || !needsRefresh)
|
|
241
|
-
return;
|
|
242
|
-
addNotification({
|
|
243
|
-
key: "plugin-reload-pending",
|
|
244
|
-
text: "Plugins changed. Run /reload-plugins to activate.",
|
|
245
|
-
color: "suggestion",
|
|
246
|
-
priority: "low"
|
|
247
|
-
});
|
|
248
|
-
}, [enabled, needsRefresh, addNotification]);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export { useManagePlugins };
|
package/dist/chunk-d23rmn8r.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
getDefaultSubagentModel,
|
|
4
|
-
init_agent
|
|
5
|
-
} from "./chunk-gnpt1t6q.js";
|
|
6
|
-
import {
|
|
7
|
-
getSourceDisplayName,
|
|
8
|
-
init_constants
|
|
9
|
-
} from "./chunk-dfq6pbq7.js";
|
|
10
|
-
import {
|
|
11
|
-
__esm
|
|
12
|
-
} from "./chunk-qp2qdcda.js";
|
|
13
|
-
|
|
14
|
-
// src/tools/AgentTool/agentDisplay.ts
|
|
15
|
-
function resolveAgentOverrides(allAgents, activeAgents) {
|
|
16
|
-
const activeMap = new Map;
|
|
17
|
-
for (const agent of activeAgents) {
|
|
18
|
-
activeMap.set(agent.agentType, agent);
|
|
19
|
-
}
|
|
20
|
-
const seen = new Set;
|
|
21
|
-
const resolved = [];
|
|
22
|
-
for (const agent of allAgents) {
|
|
23
|
-
const key = `${agent.agentType}:${agent.source}`;
|
|
24
|
-
if (seen.has(key))
|
|
25
|
-
continue;
|
|
26
|
-
seen.add(key);
|
|
27
|
-
const active = activeMap.get(agent.agentType);
|
|
28
|
-
const overriddenBy = active && active.source !== agent.source ? active.source : undefined;
|
|
29
|
-
resolved.push({ ...agent, overriddenBy });
|
|
30
|
-
}
|
|
31
|
-
return resolved;
|
|
32
|
-
}
|
|
33
|
-
function resolveAgentModelDisplay(agent) {
|
|
34
|
-
const model = agent.model || getDefaultSubagentModel();
|
|
35
|
-
if (!model)
|
|
36
|
-
return;
|
|
37
|
-
return model === "inherit" ? "inherit" : model;
|
|
38
|
-
}
|
|
39
|
-
function getOverrideSourceLabel(source) {
|
|
40
|
-
return getSourceDisplayName(source).toLowerCase();
|
|
41
|
-
}
|
|
42
|
-
function compareAgentsByName(a, b) {
|
|
43
|
-
return a.agentType.localeCompare(b.agentType, undefined, {
|
|
44
|
-
sensitivity: "base"
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
var AGENT_SOURCE_GROUPS;
|
|
48
|
-
var init_agentDisplay = __esm(() => {
|
|
49
|
-
init_agent();
|
|
50
|
-
init_constants();
|
|
51
|
-
AGENT_SOURCE_GROUPS = [
|
|
52
|
-
{ label: "User agents", source: "userSettings" },
|
|
53
|
-
{ label: "Project agents", source: "projectSettings" },
|
|
54
|
-
{ label: "Local agents", source: "localSettings" },
|
|
55
|
-
{ label: "Managed agents", source: "policySettings" },
|
|
56
|
-
{ label: "Plugin agents", source: "plugin" },
|
|
57
|
-
{ label: "CLI arg agents", source: "flagSettings" },
|
|
58
|
-
{ label: "Built-in agents", source: "built-in" }
|
|
59
|
-
];
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
export { AGENT_SOURCE_GROUPS, resolveAgentOverrides, resolveAgentModelDisplay, getOverrideSourceLabel, compareAgentsByName, init_agentDisplay };
|
package/dist/chunk-d4mdda98.js
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
__esm
|
|
4
|
-
} from "./chunk-qp2qdcda.js";
|
|
5
|
-
|
|
6
|
-
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObject.js
|
|
7
|
-
function isObject(value) {
|
|
8
|
-
var type = typeof value;
|
|
9
|
-
return value != null && (type == "object" || type == "function");
|
|
10
|
-
}
|
|
11
|
-
var isObject_default;
|
|
12
|
-
var init_isObject = __esm(() => {
|
|
13
|
-
isObject_default = isObject;
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.js
|
|
17
|
-
var freeGlobal, _freeGlobal_default;
|
|
18
|
-
var init__freeGlobal = __esm(() => {
|
|
19
|
-
freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
20
|
-
_freeGlobal_default = freeGlobal;
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_root.js
|
|
24
|
-
var freeSelf, root, _root_default;
|
|
25
|
-
var init__root = __esm(() => {
|
|
26
|
-
init__freeGlobal();
|
|
27
|
-
freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
28
|
-
root = _freeGlobal_default || freeSelf || Function("return this")();
|
|
29
|
-
_root_default = root;
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.js
|
|
33
|
-
var Symbol, _Symbol_default;
|
|
34
|
-
var init__Symbol = __esm(() => {
|
|
35
|
-
init__root();
|
|
36
|
-
Symbol = _root_default.Symbol;
|
|
37
|
-
_Symbol_default = Symbol;
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.js
|
|
41
|
-
function getRawTag(value) {
|
|
42
|
-
var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
|
|
43
|
-
try {
|
|
44
|
-
value[symToStringTag] = undefined;
|
|
45
|
-
var unmasked = true;
|
|
46
|
-
} catch (e) {}
|
|
47
|
-
var result = nativeObjectToString.call(value);
|
|
48
|
-
if (unmasked) {
|
|
49
|
-
if (isOwn) {
|
|
50
|
-
value[symToStringTag] = tag;
|
|
51
|
-
} else {
|
|
52
|
-
delete value[symToStringTag];
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return result;
|
|
56
|
-
}
|
|
57
|
-
var objectProto, hasOwnProperty, nativeObjectToString, symToStringTag, _getRawTag_default;
|
|
58
|
-
var init__getRawTag = __esm(() => {
|
|
59
|
-
init__Symbol();
|
|
60
|
-
objectProto = Object.prototype;
|
|
61
|
-
hasOwnProperty = objectProto.hasOwnProperty;
|
|
62
|
-
nativeObjectToString = objectProto.toString;
|
|
63
|
-
symToStringTag = _Symbol_default ? _Symbol_default.toStringTag : undefined;
|
|
64
|
-
_getRawTag_default = getRawTag;
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.js
|
|
68
|
-
function objectToString(value) {
|
|
69
|
-
return nativeObjectToString2.call(value);
|
|
70
|
-
}
|
|
71
|
-
var objectProto2, nativeObjectToString2, _objectToString_default;
|
|
72
|
-
var init__objectToString = __esm(() => {
|
|
73
|
-
objectProto2 = Object.prototype;
|
|
74
|
-
nativeObjectToString2 = objectProto2.toString;
|
|
75
|
-
_objectToString_default = objectToString;
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.js
|
|
79
|
-
function baseGetTag(value) {
|
|
80
|
-
if (value == null) {
|
|
81
|
-
return value === undefined ? undefinedTag : nullTag;
|
|
82
|
-
}
|
|
83
|
-
return symToStringTag2 && symToStringTag2 in Object(value) ? _getRawTag_default(value) : _objectToString_default(value);
|
|
84
|
-
}
|
|
85
|
-
var nullTag = "[object Null]", undefinedTag = "[object Undefined]", symToStringTag2, _baseGetTag_default;
|
|
86
|
-
var init__baseGetTag = __esm(() => {
|
|
87
|
-
init__Symbol();
|
|
88
|
-
init__getRawTag();
|
|
89
|
-
init__objectToString();
|
|
90
|
-
symToStringTag2 = _Symbol_default ? _Symbol_default.toStringTag : undefined;
|
|
91
|
-
_baseGetTag_default = baseGetTag;
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
export { _freeGlobal_default, init__freeGlobal, _root_default, init__root, _Symbol_default, init__Symbol, _baseGetTag_default, init__baseGetTag, isObject_default, init_isObject };
|
package/dist/chunk-dcwp94cj.js
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
getChicagoEnabled,
|
|
4
|
-
getChicagoSubGates,
|
|
5
|
-
init_gates
|
|
6
|
-
} from "./chunk-tkx5eec8.js";
|
|
7
|
-
import {
|
|
8
|
-
createCliExecutor,
|
|
9
|
-
init_executor
|
|
10
|
-
} from "./chunk-dfzkwynj.js";
|
|
11
|
-
import {
|
|
12
|
-
init_swiftLoader,
|
|
13
|
-
requireComputerUseSwift
|
|
14
|
-
} from "./chunk-fcynwjpm.js";
|
|
15
|
-
import {
|
|
16
|
-
JSONRPCMessageSchema,
|
|
17
|
-
init_types
|
|
18
|
-
} from "./chunk-v4t6dyyh.js";
|
|
19
|
-
import {
|
|
20
|
-
COMPUTER_USE_MCP_SERVER_NAME,
|
|
21
|
-
init_common
|
|
22
|
-
} from "./chunk-cxrktb5g.js";
|
|
23
|
-
import {
|
|
24
|
-
init_debug,
|
|
25
|
-
logForDebugging
|
|
26
|
-
} from "./chunk-gg55fns0.js";
|
|
27
|
-
import {
|
|
28
|
-
__esm
|
|
29
|
-
} from "./chunk-qp2qdcda.js";
|
|
30
|
-
|
|
31
|
-
// src/services/analytics/datadog.ts
|
|
32
|
-
async function shutdownDatadog() {}
|
|
33
|
-
var init_datadog = () => {};
|
|
34
|
-
|
|
35
|
-
// src/utils/computerUse/hostAdapter.ts
|
|
36
|
-
import { format } from "util";
|
|
37
|
-
|
|
38
|
-
class DebugLogger {
|
|
39
|
-
silly(message, ...args) {
|
|
40
|
-
logForDebugging(format(message, ...args), { level: "debug" });
|
|
41
|
-
}
|
|
42
|
-
debug(message, ...args) {
|
|
43
|
-
logForDebugging(format(message, ...args), { level: "debug" });
|
|
44
|
-
}
|
|
45
|
-
info(message, ...args) {
|
|
46
|
-
logForDebugging(format(message, ...args), { level: "info" });
|
|
47
|
-
}
|
|
48
|
-
warn(message, ...args) {
|
|
49
|
-
logForDebugging(format(message, ...args), { level: "warn" });
|
|
50
|
-
}
|
|
51
|
-
error(message, ...args) {
|
|
52
|
-
logForDebugging(format(message, ...args), { level: "error" });
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
function checkAccessibilityJXA() {
|
|
56
|
-
try {
|
|
57
|
-
const result = Bun.spawnSync({
|
|
58
|
-
cmd: ["osascript", "-e", 'tell application "System Events" to get name of every process whose background only is false'],
|
|
59
|
-
stdout: "pipe",
|
|
60
|
-
stderr: "pipe"
|
|
61
|
-
});
|
|
62
|
-
return result.exitCode === 0;
|
|
63
|
-
} catch {
|
|
64
|
-
return false;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
function checkScreenRecordingJXA() {
|
|
68
|
-
try {
|
|
69
|
-
const result = Bun.spawnSync({
|
|
70
|
-
cmd: ["screencapture", "-x", "-R", "0,0,1,1", "/dev/null"],
|
|
71
|
-
stdout: "pipe",
|
|
72
|
-
stderr: "pipe"
|
|
73
|
-
});
|
|
74
|
-
return result.exitCode === 0;
|
|
75
|
-
} catch {
|
|
76
|
-
return false;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
function getComputerUseHostAdapter() {
|
|
80
|
-
if (cached)
|
|
81
|
-
return cached;
|
|
82
|
-
cached = {
|
|
83
|
-
serverName: COMPUTER_USE_MCP_SERVER_NAME,
|
|
84
|
-
logger: new DebugLogger,
|
|
85
|
-
executor: createCliExecutor({
|
|
86
|
-
getMouseAnimationEnabled: () => getChicagoSubGates().mouseAnimation,
|
|
87
|
-
getHideBeforeActionEnabled: () => getChicagoSubGates().hideBeforeAction
|
|
88
|
-
}),
|
|
89
|
-
ensureOsPermissions: async () => {
|
|
90
|
-
if (process.platform !== "darwin")
|
|
91
|
-
return { granted: true };
|
|
92
|
-
const cu = requireComputerUseSwift();
|
|
93
|
-
const tcc = cu.tcc;
|
|
94
|
-
if (tcc) {
|
|
95
|
-
const accessibility2 = tcc.checkAccessibility();
|
|
96
|
-
const screenRecording2 = tcc.checkScreenRecording();
|
|
97
|
-
return accessibility2 && screenRecording2 ? { granted: true } : { granted: false, accessibility: accessibility2, screenRecording: screenRecording2 };
|
|
98
|
-
}
|
|
99
|
-
const accessibility = checkAccessibilityJXA();
|
|
100
|
-
const screenRecording = checkScreenRecordingJXA();
|
|
101
|
-
return accessibility && screenRecording ? { granted: true } : { granted: false, accessibility, screenRecording };
|
|
102
|
-
},
|
|
103
|
-
isDisabled: () => !getChicagoEnabled(),
|
|
104
|
-
getSubGates: getChicagoSubGates,
|
|
105
|
-
getAutoUnhideEnabled: () => true,
|
|
106
|
-
cropRawPatch: () => null
|
|
107
|
-
};
|
|
108
|
-
return cached;
|
|
109
|
-
}
|
|
110
|
-
var cached;
|
|
111
|
-
var init_hostAdapter = __esm(() => {
|
|
112
|
-
init_debug();
|
|
113
|
-
init_common();
|
|
114
|
-
init_executor();
|
|
115
|
-
init_gates();
|
|
116
|
-
init_swiftLoader();
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
// node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js
|
|
120
|
-
class ReadBuffer {
|
|
121
|
-
append(chunk) {
|
|
122
|
-
this._buffer = this._buffer ? Buffer.concat([this._buffer, chunk]) : chunk;
|
|
123
|
-
}
|
|
124
|
-
readMessage() {
|
|
125
|
-
if (!this._buffer) {
|
|
126
|
-
return null;
|
|
127
|
-
}
|
|
128
|
-
const index = this._buffer.indexOf(`
|
|
129
|
-
`);
|
|
130
|
-
if (index === -1) {
|
|
131
|
-
return null;
|
|
132
|
-
}
|
|
133
|
-
const line = this._buffer.toString("utf8", 0, index).replace(/\r$/, "");
|
|
134
|
-
this._buffer = this._buffer.subarray(index + 1);
|
|
135
|
-
return deserializeMessage(line);
|
|
136
|
-
}
|
|
137
|
-
clear() {
|
|
138
|
-
this._buffer = undefined;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
function deserializeMessage(line) {
|
|
142
|
-
return JSONRPCMessageSchema.parse(JSON.parse(line));
|
|
143
|
-
}
|
|
144
|
-
function serializeMessage(message) {
|
|
145
|
-
return JSON.stringify(message) + `
|
|
146
|
-
`;
|
|
147
|
-
}
|
|
148
|
-
var init_stdio = __esm(() => {
|
|
149
|
-
init_types();
|
|
150
|
-
});
|
|
151
|
-
|
|
152
|
-
export { ReadBuffer, serializeMessage, init_stdio, shutdownDatadog, init_datadog, getComputerUseHostAdapter, init_hostAdapter };
|
package/dist/chunk-ddsjkqs4.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
cacheKeys,
|
|
4
|
-
init_fileStateCache
|
|
5
|
-
} from "./chunk-j5bth84e.js";
|
|
6
|
-
import"./chunk-qnfx3qtx.js";
|
|
7
|
-
import {
|
|
8
|
-
getCwd,
|
|
9
|
-
init_cwd
|
|
10
|
-
} from "./chunk-s8kj6ajy.js";
|
|
11
|
-
import"./chunk-k8vp0atq.js";
|
|
12
|
-
import"./chunk-vf612n57.js";
|
|
13
|
-
import"./chunk-07069jq1.js";
|
|
14
|
-
import"./chunk-d4mdda98.js";
|
|
15
|
-
import {
|
|
16
|
-
__esm
|
|
17
|
-
} from "./chunk-qp2qdcda.js";
|
|
18
|
-
|
|
19
|
-
// src/commands/files/files.ts
|
|
20
|
-
import { relative } from "path";
|
|
21
|
-
async function call(_args, context) {
|
|
22
|
-
const files = context.readFileState ? cacheKeys(context.readFileState) : [];
|
|
23
|
-
if (files.length === 0) {
|
|
24
|
-
return { type: "text", value: "No files in context" };
|
|
25
|
-
}
|
|
26
|
-
const fileList = files.map((file) => relative(getCwd(), file)).join(`
|
|
27
|
-
`);
|
|
28
|
-
return { type: "text", value: `Files in context:
|
|
29
|
-
${fileList}` };
|
|
30
|
-
}
|
|
31
|
-
var init_files = __esm(() => {
|
|
32
|
-
init_cwd();
|
|
33
|
-
init_fileStateCache();
|
|
34
|
-
});
|
|
35
|
-
init_files();
|
|
36
|
-
|
|
37
|
-
export {
|
|
38
|
-
call
|
|
39
|
-
};
|