@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-hk4phsaw.js
DELETED
|
@@ -1,388 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
checkInstall,
|
|
4
|
-
init_nativeInstaller
|
|
5
|
-
} from "./chunk-jz71gv95.js";
|
|
6
|
-
import {
|
|
7
|
-
getSettingsWithAllErrors,
|
|
8
|
-
init_allErrors
|
|
9
|
-
} from "./chunk-awrgzpk6.js";
|
|
10
|
-
import {
|
|
11
|
-
getDoctorDiagnostic,
|
|
12
|
-
init_doctorDiagnostic
|
|
13
|
-
} from "./chunk-ta3jyvxs.js";
|
|
14
|
-
import {
|
|
15
|
-
MAX_MEMORY_CHARACTER_COUNT,
|
|
16
|
-
SandboxManager,
|
|
17
|
-
getIdeClientName,
|
|
18
|
-
getLargeMemoryFiles,
|
|
19
|
-
getMemoryFiles,
|
|
20
|
-
init_claudemd,
|
|
21
|
-
init_ide,
|
|
22
|
-
init_sandbox_adapter,
|
|
23
|
-
isJetBrainsIde,
|
|
24
|
-
toIDEDisplayName
|
|
25
|
-
} from "./chunk-gnpt1t6q.js";
|
|
26
|
-
import {
|
|
27
|
-
getAPIProvider,
|
|
28
|
-
init_model,
|
|
29
|
-
init_providers,
|
|
30
|
-
modelDisplayString
|
|
31
|
-
} from "./chunk-5pysjah8.js";
|
|
32
|
-
import {
|
|
33
|
-
getMTLSConfig,
|
|
34
|
-
getProxyUrl,
|
|
35
|
-
init_mtls,
|
|
36
|
-
init_proxy
|
|
37
|
-
} from "./chunk-pgtnj1mt.js";
|
|
38
|
-
import {
|
|
39
|
-
getAccountInformation,
|
|
40
|
-
getDisplayPath,
|
|
41
|
-
getEnabledSettingSources,
|
|
42
|
-
getManagedFileSettingsPresence,
|
|
43
|
-
getPolicySettingsOrigin,
|
|
44
|
-
getSettingSourceDisplayNameCapitalized,
|
|
45
|
-
getSettingsForSource,
|
|
46
|
-
init_auth,
|
|
47
|
-
init_constants,
|
|
48
|
-
init_file,
|
|
49
|
-
init_settings1 as init_settings
|
|
50
|
-
} from "./chunk-dfq6pbq7.js";
|
|
51
|
-
import {
|
|
52
|
-
formatNumber,
|
|
53
|
-
init_format
|
|
54
|
-
} from "./chunk-fqak69ft.js";
|
|
55
|
-
import {
|
|
56
|
-
ThemedText,
|
|
57
|
-
color,
|
|
58
|
-
init_src
|
|
59
|
-
} from "./chunk-c7jwbe76.js";
|
|
60
|
-
import {
|
|
61
|
-
require_jsx_dev_runtime
|
|
62
|
-
} from "./chunk-7sgtxrsc.js";
|
|
63
|
-
import {
|
|
64
|
-
figures_default,
|
|
65
|
-
init_figures
|
|
66
|
-
} from "./chunk-qajrkk97.js";
|
|
67
|
-
import {
|
|
68
|
-
__esm,
|
|
69
|
-
__toESM
|
|
70
|
-
} from "./chunk-qp2qdcda.js";
|
|
71
|
-
|
|
72
|
-
// src/utils/status.tsx
|
|
73
|
-
function buildSandboxProperties() {
|
|
74
|
-
if (process.env.USER_TYPE !== "ant") {
|
|
75
|
-
return [];
|
|
76
|
-
}
|
|
77
|
-
const isSandboxed = SandboxManager.isSandboxingEnabled();
|
|
78
|
-
return [
|
|
79
|
-
{
|
|
80
|
-
label: "Bash Sandbox",
|
|
81
|
-
value: isSandboxed ? "Enabled" : "Disabled"
|
|
82
|
-
}
|
|
83
|
-
];
|
|
84
|
-
}
|
|
85
|
-
function buildIDEProperties(mcpClients, ideInstallationStatus = null, theme) {
|
|
86
|
-
const ideClient = mcpClients?.find((client) => client.name === "ide");
|
|
87
|
-
if (ideInstallationStatus) {
|
|
88
|
-
const ideName = toIDEDisplayName(ideInstallationStatus.ideType);
|
|
89
|
-
const pluginOrExtension = isJetBrainsIde(ideInstallationStatus.ideType) ? "plugin" : "extension";
|
|
90
|
-
if (ideInstallationStatus.error) {
|
|
91
|
-
return [
|
|
92
|
-
{
|
|
93
|
-
label: "IDE",
|
|
94
|
-
value: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
95
|
-
children: [
|
|
96
|
-
color("error", theme)(figures_default.cross),
|
|
97
|
-
" Error installing ",
|
|
98
|
-
ideName,
|
|
99
|
-
" ",
|
|
100
|
-
pluginOrExtension,
|
|
101
|
-
": ",
|
|
102
|
-
ideInstallationStatus.error,
|
|
103
|
-
`
|
|
104
|
-
`,
|
|
105
|
-
"Please restart your IDE and try again."
|
|
106
|
-
]
|
|
107
|
-
}, undefined, true, undefined, this)
|
|
108
|
-
}
|
|
109
|
-
];
|
|
110
|
-
}
|
|
111
|
-
if (ideInstallationStatus.installed) {
|
|
112
|
-
if (ideClient && ideClient.type === "connected") {
|
|
113
|
-
if (ideInstallationStatus.installedVersion !== ideClient.serverInfo?.version) {
|
|
114
|
-
return [
|
|
115
|
-
{
|
|
116
|
-
label: "IDE",
|
|
117
|
-
value: `Connected to ${ideName} ${pluginOrExtension} version ${ideInstallationStatus.installedVersion} (server version: ${ideClient.serverInfo?.version})`
|
|
118
|
-
}
|
|
119
|
-
];
|
|
120
|
-
} else {
|
|
121
|
-
return [
|
|
122
|
-
{
|
|
123
|
-
label: "IDE",
|
|
124
|
-
value: `Connected to ${ideName} ${pluginOrExtension} version ${ideInstallationStatus.installedVersion}`
|
|
125
|
-
}
|
|
126
|
-
];
|
|
127
|
-
}
|
|
128
|
-
} else {
|
|
129
|
-
return [
|
|
130
|
-
{
|
|
131
|
-
label: "IDE",
|
|
132
|
-
value: `Installed ${ideName} ${pluginOrExtension}`
|
|
133
|
-
}
|
|
134
|
-
];
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
} else if (ideClient) {
|
|
138
|
-
const ideName = getIdeClientName(ideClient) ?? "IDE";
|
|
139
|
-
if (ideClient.type === "connected") {
|
|
140
|
-
return [
|
|
141
|
-
{
|
|
142
|
-
label: "IDE",
|
|
143
|
-
value: `Connected to ${ideName} extension`
|
|
144
|
-
}
|
|
145
|
-
];
|
|
146
|
-
} else {
|
|
147
|
-
return [
|
|
148
|
-
{
|
|
149
|
-
label: "IDE",
|
|
150
|
-
value: `${color("error", theme)(figures_default.cross)} Not connected to ${ideName}`
|
|
151
|
-
}
|
|
152
|
-
];
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
return [];
|
|
156
|
-
}
|
|
157
|
-
function buildMcpProperties(clients = [], theme) {
|
|
158
|
-
const servers = clients.filter((client) => client.name !== "ide");
|
|
159
|
-
if (!servers.length) {
|
|
160
|
-
return [];
|
|
161
|
-
}
|
|
162
|
-
const byState = { connected: 0, pending: 0, needsAuth: 0, failed: 0 };
|
|
163
|
-
for (const s of servers) {
|
|
164
|
-
if (s.type === "connected")
|
|
165
|
-
byState.connected++;
|
|
166
|
-
else if (s.type === "pending")
|
|
167
|
-
byState.pending++;
|
|
168
|
-
else if (s.type === "needs-auth")
|
|
169
|
-
byState.needsAuth++;
|
|
170
|
-
else
|
|
171
|
-
byState.failed++;
|
|
172
|
-
}
|
|
173
|
-
const parts = [];
|
|
174
|
-
if (byState.connected)
|
|
175
|
-
parts.push(color("success", theme)(`${byState.connected} connected`));
|
|
176
|
-
if (byState.needsAuth)
|
|
177
|
-
parts.push(color("warning", theme)(`${byState.needsAuth} need auth`));
|
|
178
|
-
if (byState.pending)
|
|
179
|
-
parts.push(color("inactive", theme)(`${byState.pending} pending`));
|
|
180
|
-
if (byState.failed)
|
|
181
|
-
parts.push(color("error", theme)(`${byState.failed} failed`));
|
|
182
|
-
return [
|
|
183
|
-
{
|
|
184
|
-
label: "MCP servers",
|
|
185
|
-
value: `${parts.join(", ")} ${color("inactive", theme)("\xB7 /mcp")}`
|
|
186
|
-
}
|
|
187
|
-
];
|
|
188
|
-
}
|
|
189
|
-
async function buildMemoryDiagnostics() {
|
|
190
|
-
const files = await getMemoryFiles();
|
|
191
|
-
const largeFiles = getLargeMemoryFiles(files);
|
|
192
|
-
const diagnostics = [];
|
|
193
|
-
largeFiles.forEach((file) => {
|
|
194
|
-
const displayPath = getDisplayPath(file.path);
|
|
195
|
-
diagnostics.push(`Large ${displayPath} will impact performance (${formatNumber(file.content.length)} chars > ${formatNumber(MAX_MEMORY_CHARACTER_COUNT)})`);
|
|
196
|
-
});
|
|
197
|
-
return diagnostics;
|
|
198
|
-
}
|
|
199
|
-
function buildSettingSourcesProperties() {
|
|
200
|
-
const enabledSources = getEnabledSettingSources();
|
|
201
|
-
const sourcesWithSettings = enabledSources.filter((source) => {
|
|
202
|
-
const settings = getSettingsForSource(source);
|
|
203
|
-
return settings !== null && Object.keys(settings).length > 0;
|
|
204
|
-
});
|
|
205
|
-
const sourceNames = sourcesWithSettings.map((source) => {
|
|
206
|
-
if (source === "policySettings") {
|
|
207
|
-
const origin = getPolicySettingsOrigin();
|
|
208
|
-
if (origin === null) {
|
|
209
|
-
return null;
|
|
210
|
-
}
|
|
211
|
-
switch (origin) {
|
|
212
|
-
case "remote":
|
|
213
|
-
return "Enterprise managed settings (remote)";
|
|
214
|
-
case "plist":
|
|
215
|
-
return "Enterprise managed settings (plist)";
|
|
216
|
-
case "hklm":
|
|
217
|
-
return "Enterprise managed settings (HKLM)";
|
|
218
|
-
case "file": {
|
|
219
|
-
const { hasBase, hasDropIns } = getManagedFileSettingsPresence();
|
|
220
|
-
if (hasBase && hasDropIns) {
|
|
221
|
-
return "Enterprise managed settings (file + drop-ins)";
|
|
222
|
-
}
|
|
223
|
-
if (hasDropIns) {
|
|
224
|
-
return "Enterprise managed settings (drop-ins)";
|
|
225
|
-
}
|
|
226
|
-
return "Enterprise managed settings (file)";
|
|
227
|
-
}
|
|
228
|
-
case "hkcu":
|
|
229
|
-
return "Enterprise managed settings (HKCU)";
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
return getSettingSourceDisplayNameCapitalized(source);
|
|
233
|
-
}).filter((name) => name !== null);
|
|
234
|
-
return [
|
|
235
|
-
{
|
|
236
|
-
label: "Setting sources",
|
|
237
|
-
value: sourceNames
|
|
238
|
-
}
|
|
239
|
-
];
|
|
240
|
-
}
|
|
241
|
-
async function buildInstallationDiagnostics() {
|
|
242
|
-
const installWarnings = await checkInstall();
|
|
243
|
-
return installWarnings.map((warning) => warning.message);
|
|
244
|
-
}
|
|
245
|
-
async function buildInstallationHealthDiagnostics() {
|
|
246
|
-
const diagnostic = await getDoctorDiagnostic();
|
|
247
|
-
const items = [];
|
|
248
|
-
const { errors: validationErrors } = getSettingsWithAllErrors();
|
|
249
|
-
if (validationErrors.length > 0) {
|
|
250
|
-
const invalidFiles = Array.from(new Set(validationErrors.map((error) => error.file)));
|
|
251
|
-
const fileList = invalidFiles.join(", ");
|
|
252
|
-
items.push(`Found invalid settings files: ${fileList}. They will be ignored.`);
|
|
253
|
-
}
|
|
254
|
-
diagnostic.warnings.forEach((warning) => {
|
|
255
|
-
items.push(warning.issue);
|
|
256
|
-
});
|
|
257
|
-
if (diagnostic.hasUpdatePermissions === false) {
|
|
258
|
-
items.push("No write permissions for auto-updates (requires sudo)");
|
|
259
|
-
}
|
|
260
|
-
return items;
|
|
261
|
-
}
|
|
262
|
-
function buildAccountProperties() {
|
|
263
|
-
const accountInfo = getAccountInformation();
|
|
264
|
-
if (!accountInfo) {
|
|
265
|
-
return [];
|
|
266
|
-
}
|
|
267
|
-
const properties = [];
|
|
268
|
-
if (accountInfo.subscription) {
|
|
269
|
-
properties.push({
|
|
270
|
-
label: "Login method",
|
|
271
|
-
value: `${accountInfo.subscription} Account`
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
if (accountInfo.tokenSource) {
|
|
275
|
-
properties.push({
|
|
276
|
-
label: "Auth token",
|
|
277
|
-
value: accountInfo.tokenSource
|
|
278
|
-
});
|
|
279
|
-
}
|
|
280
|
-
if (accountInfo.apiKeySource) {
|
|
281
|
-
properties.push({
|
|
282
|
-
label: "API key",
|
|
283
|
-
value: accountInfo.apiKeySource
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
if (accountInfo.organization && !process.env.IS_DEMO) {
|
|
287
|
-
properties.push({
|
|
288
|
-
label: "Organization",
|
|
289
|
-
value: accountInfo.organization
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
if (accountInfo.email && !process.env.IS_DEMO) {
|
|
293
|
-
properties.push({
|
|
294
|
-
label: "Email",
|
|
295
|
-
value: accountInfo.email
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
return properties;
|
|
299
|
-
}
|
|
300
|
-
function buildAPIProviderProperties() {
|
|
301
|
-
const apiProvider = getAPIProvider();
|
|
302
|
-
const properties = [];
|
|
303
|
-
if (apiProvider !== "firstParty") {
|
|
304
|
-
const providerLabel = {
|
|
305
|
-
bedrock: "AWS Bedrock",
|
|
306
|
-
vertex: "Google Vertex AI",
|
|
307
|
-
foundry: "Microsoft Foundry",
|
|
308
|
-
gemini: "Gemini API",
|
|
309
|
-
grok: "Grok API",
|
|
310
|
-
openai: "OpenAI API"
|
|
311
|
-
}[apiProvider];
|
|
312
|
-
properties.push({
|
|
313
|
-
label: "API provider",
|
|
314
|
-
value: providerLabel
|
|
315
|
-
});
|
|
316
|
-
}
|
|
317
|
-
if (apiProvider === "firstParty") {
|
|
318
|
-
const anthropicBaseUrl = process.env.ANTHROPIC_BASE_URL;
|
|
319
|
-
if (anthropicBaseUrl) {
|
|
320
|
-
properties.push({
|
|
321
|
-
label: "Anthropic base URL",
|
|
322
|
-
value: anthropicBaseUrl
|
|
323
|
-
});
|
|
324
|
-
}
|
|
325
|
-
} else if (apiProvider === "openai") {
|
|
326
|
-
const openaiBaseUrl = process.env.OPENAI_BASE_URL;
|
|
327
|
-
properties.push({
|
|
328
|
-
label: "OpenAI base URL",
|
|
329
|
-
value: openaiBaseUrl
|
|
330
|
-
});
|
|
331
|
-
}
|
|
332
|
-
const proxyUrl = getProxyUrl();
|
|
333
|
-
if (proxyUrl) {
|
|
334
|
-
properties.push({
|
|
335
|
-
label: "Proxy",
|
|
336
|
-
value: proxyUrl
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
|
-
const mtlsConfig = getMTLSConfig();
|
|
340
|
-
if (process.env.NODE_EXTRA_CA_CERTS) {
|
|
341
|
-
properties.push({
|
|
342
|
-
label: "Additional CA cert(s)",
|
|
343
|
-
value: process.env.NODE_EXTRA_CA_CERTS
|
|
344
|
-
});
|
|
345
|
-
}
|
|
346
|
-
if (mtlsConfig) {
|
|
347
|
-
if (mtlsConfig.cert && process.env.CLAUDE_CODE_CLIENT_CERT) {
|
|
348
|
-
properties.push({
|
|
349
|
-
label: "mTLS client cert",
|
|
350
|
-
value: process.env.CLAUDE_CODE_CLIENT_CERT
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
if (mtlsConfig.key && process.env.CLAUDE_CODE_CLIENT_KEY) {
|
|
354
|
-
properties.push({
|
|
355
|
-
label: "mTLS client key",
|
|
356
|
-
value: process.env.CLAUDE_CODE_CLIENT_KEY
|
|
357
|
-
});
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
return properties;
|
|
361
|
-
}
|
|
362
|
-
function getModelDisplayLabel(mainLoopModel) {
|
|
363
|
-
let modelLabel = modelDisplayString(mainLoopModel);
|
|
364
|
-
return modelLabel;
|
|
365
|
-
}
|
|
366
|
-
var jsx_dev_runtime;
|
|
367
|
-
var init_status = __esm(() => {
|
|
368
|
-
init_figures();
|
|
369
|
-
init_src();
|
|
370
|
-
init_auth();
|
|
371
|
-
init_claudemd();
|
|
372
|
-
init_doctorDiagnostic();
|
|
373
|
-
init_file();
|
|
374
|
-
init_format();
|
|
375
|
-
init_ide();
|
|
376
|
-
init_model();
|
|
377
|
-
init_providers();
|
|
378
|
-
init_mtls();
|
|
379
|
-
init_nativeInstaller();
|
|
380
|
-
init_proxy();
|
|
381
|
-
init_sandbox_adapter();
|
|
382
|
-
init_allErrors();
|
|
383
|
-
init_constants();
|
|
384
|
-
init_settings();
|
|
385
|
-
jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
|
|
386
|
-
});
|
|
387
|
-
|
|
388
|
-
export { buildSandboxProperties, buildIDEProperties, buildMcpProperties, buildMemoryDiagnostics, buildSettingSourcesProperties, buildInstallationDiagnostics, buildInstallationHealthDiagnostics, buildAccountProperties, buildAPIProviderProperties, getModelDisplayLabel, init_status };
|
package/dist/chunk-hph1bmqw.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
exports_prompt,
|
|
4
|
-
getFeatureValue_CACHED_MAY_BE_STALE,
|
|
5
|
-
init_constants1 as init_constants,
|
|
6
|
-
init_growthbook,
|
|
7
|
-
init_prompt1 as init_prompt
|
|
8
|
-
} from "./chunk-dfq6pbq7.js";
|
|
9
|
-
import {
|
|
10
|
-
init_state
|
|
11
|
-
} from "./chunk-k8vp0atq.js";
|
|
12
|
-
import {
|
|
13
|
-
__esm,
|
|
14
|
-
__toCommonJS
|
|
15
|
-
} from "./chunk-qp2qdcda.js";
|
|
16
|
-
|
|
17
|
-
// src/tools/ToolSearchTool/constants.ts
|
|
18
|
-
var TOOL_SEARCH_TOOL_NAME = "ToolSearch";
|
|
19
|
-
var init_constants2 = () => {};
|
|
20
|
-
|
|
21
|
-
// src/tools/ToolSearchTool/prompt.ts
|
|
22
|
-
function getToolLocationHint() {
|
|
23
|
-
const deltaEnabled = process.env.USER_TYPE === "ant" || getFeatureValue_CACHED_MAY_BE_STALE("tengu_glacier_2xr", false);
|
|
24
|
-
return deltaEnabled ? "Deferred tools appear by name in <system-reminder> messages." : "Deferred tools appear by name in <available-deferred-tools> messages.";
|
|
25
|
-
}
|
|
26
|
-
function isDeferredTool(tool) {
|
|
27
|
-
if (tool.alwaysLoad === true)
|
|
28
|
-
return false;
|
|
29
|
-
if (tool.isMcp === true)
|
|
30
|
-
return true;
|
|
31
|
-
if (tool.name === TOOL_SEARCH_TOOL_NAME)
|
|
32
|
-
return false;
|
|
33
|
-
if (false) {}
|
|
34
|
-
if (BRIEF_TOOL_NAME && tool.name === BRIEF_TOOL_NAME) {
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
if (false) {}
|
|
38
|
-
return tool.shouldDefer === true;
|
|
39
|
-
}
|
|
40
|
-
function formatDeferredToolLine(tool) {
|
|
41
|
-
return tool.name;
|
|
42
|
-
}
|
|
43
|
-
function getPrompt() {
|
|
44
|
-
return PROMPT_HEAD + getToolLocationHint() + PROMPT_TAIL;
|
|
45
|
-
}
|
|
46
|
-
var BRIEF_TOOL_NAME, PROMPT_HEAD = `Fetches full schema definitions for deferred tools so they can be called.
|
|
47
|
-
|
|
48
|
-
`, PROMPT_TAIL = ` Until fetched, only the name is known \u2014 there is no parameter schema, so the tool cannot be invoked. This tool takes a query, matches it against the deferred tool list, and returns the matched tools' complete JSONSchema definitions inside a <functions> block. Once a tool's schema appears in that result, it is callable exactly like any tool defined at the top of the prompt.
|
|
49
|
-
|
|
50
|
-
Result format: each matched tool appears as one <function>{"description": "...", "name": "...", "parameters": {...}}</function> line inside the <functions> block \u2014 the same encoding as the tool list at the top of this prompt.
|
|
51
|
-
|
|
52
|
-
Query forms:
|
|
53
|
-
- "select:Read,Edit,Grep" \u2014 fetch these exact tools by name
|
|
54
|
-
- "notebook jupyter" \u2014 keyword search, up to max_results best matches
|
|
55
|
-
- "+slack send" \u2014 require "slack" in the name, rank by remaining terms`;
|
|
56
|
-
var init_prompt2 = __esm(() => {
|
|
57
|
-
init_state();
|
|
58
|
-
init_growthbook();
|
|
59
|
-
init_constants();
|
|
60
|
-
init_constants2();
|
|
61
|
-
init_constants2();
|
|
62
|
-
BRIEF_TOOL_NAME = (init_prompt(), __toCommonJS(exports_prompt)).BRIEF_TOOL_NAME;
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
export { TOOL_SEARCH_TOOL_NAME, isDeferredTool, formatDeferredToolLine, getPrompt, init_prompt2 as init_prompt };
|
package/dist/chunk-hvnztnp3.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
_baseEach_default,
|
|
4
|
-
init__baseEach
|
|
5
|
-
} from "./chunk-gnpt1t6q.js";
|
|
6
|
-
import {
|
|
7
|
-
_baseIteratee_default,
|
|
8
|
-
init__baseIteratee,
|
|
9
|
-
init_isArray,
|
|
10
|
-
isArray_default
|
|
11
|
-
} from "./chunk-k8vp0atq.js";
|
|
12
|
-
import {
|
|
13
|
-
__esm
|
|
14
|
-
} from "./chunk-qp2qdcda.js";
|
|
15
|
-
|
|
16
|
-
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayAggregator.js
|
|
17
|
-
function arrayAggregator(array, setter, iteratee, accumulator) {
|
|
18
|
-
var index = -1, length = array == null ? 0 : array.length;
|
|
19
|
-
while (++index < length) {
|
|
20
|
-
var value = array[index];
|
|
21
|
-
setter(accumulator, value, iteratee(value), array);
|
|
22
|
-
}
|
|
23
|
-
return accumulator;
|
|
24
|
-
}
|
|
25
|
-
var _arrayAggregator_default;
|
|
26
|
-
var init__arrayAggregator = __esm(() => {
|
|
27
|
-
_arrayAggregator_default = arrayAggregator;
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAggregator.js
|
|
31
|
-
function baseAggregator(collection, setter, iteratee, accumulator) {
|
|
32
|
-
_baseEach_default(collection, function(value, key, collection2) {
|
|
33
|
-
setter(accumulator, value, iteratee(value), collection2);
|
|
34
|
-
});
|
|
35
|
-
return accumulator;
|
|
36
|
-
}
|
|
37
|
-
var _baseAggregator_default;
|
|
38
|
-
var init__baseAggregator = __esm(() => {
|
|
39
|
-
init__baseEach();
|
|
40
|
-
_baseAggregator_default = baseAggregator;
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_createAggregator.js
|
|
44
|
-
function createAggregator(setter, initializer) {
|
|
45
|
-
return function(collection, iteratee) {
|
|
46
|
-
var func = isArray_default(collection) ? _arrayAggregator_default : _baseAggregator_default, accumulator = initializer ? initializer() : {};
|
|
47
|
-
return func(collection, setter, _baseIteratee_default(iteratee, 2), accumulator);
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
var _createAggregator_default;
|
|
51
|
-
var init__createAggregator = __esm(() => {
|
|
52
|
-
init__arrayAggregator();
|
|
53
|
-
init__baseAggregator();
|
|
54
|
-
init__baseIteratee();
|
|
55
|
-
init_isArray();
|
|
56
|
-
_createAggregator_default = createAggregator;
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/partition.js
|
|
60
|
-
var partition, partition_default;
|
|
61
|
-
var init_partition = __esm(() => {
|
|
62
|
-
init__createAggregator();
|
|
63
|
-
partition = _createAggregator_default(function(result, value, key) {
|
|
64
|
-
result[key ? 0 : 1].push(value);
|
|
65
|
-
}, function() {
|
|
66
|
-
return [[], []];
|
|
67
|
-
});
|
|
68
|
-
partition_default = partition;
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
export { partition_default, init_partition };
|
package/dist/chunk-hwfknpxv.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
clearBetaHeaderLatches,
|
|
4
|
-
clearSystemPromptSectionState,
|
|
5
|
-
getSystemPromptSectionCache,
|
|
6
|
-
init_state,
|
|
7
|
-
setSystemPromptSectionCacheEntry
|
|
8
|
-
} from "./chunk-k8vp0atq.js";
|
|
9
|
-
import {
|
|
10
|
-
__esm
|
|
11
|
-
} from "./chunk-qp2qdcda.js";
|
|
12
|
-
|
|
13
|
-
// src/constants/systemPromptSections.ts
|
|
14
|
-
function systemPromptSection(name, compute) {
|
|
15
|
-
return { name, compute, cacheBreak: false };
|
|
16
|
-
}
|
|
17
|
-
function DANGEROUS_uncachedSystemPromptSection(name, compute, _reason) {
|
|
18
|
-
return { name, compute, cacheBreak: true };
|
|
19
|
-
}
|
|
20
|
-
async function resolveSystemPromptSections(sections) {
|
|
21
|
-
const cache = getSystemPromptSectionCache();
|
|
22
|
-
return Promise.all(sections.map(async (s) => {
|
|
23
|
-
if (!s.cacheBreak && cache.has(s.name)) {
|
|
24
|
-
return cache.get(s.name) ?? null;
|
|
25
|
-
}
|
|
26
|
-
const value = await s.compute();
|
|
27
|
-
setSystemPromptSectionCacheEntry(s.name, value);
|
|
28
|
-
return value;
|
|
29
|
-
}));
|
|
30
|
-
}
|
|
31
|
-
function clearSystemPromptSections() {
|
|
32
|
-
clearSystemPromptSectionState();
|
|
33
|
-
clearBetaHeaderLatches();
|
|
34
|
-
}
|
|
35
|
-
var init_systemPromptSections = __esm(() => {
|
|
36
|
-
init_state();
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
export { systemPromptSection, DANGEROUS_uncachedSystemPromptSection, resolveSystemPromptSections, clearSystemPromptSections, init_systemPromptSections };
|