@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-k4dcreh0.js
DELETED
|
@@ -1,442 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
calculateShouldShowGrove,
|
|
4
|
-
getGroveNoticeConfig,
|
|
5
|
-
getGroveSettings,
|
|
6
|
-
init_grove,
|
|
7
|
-
markGroveNoticeViewed,
|
|
8
|
-
updateGroveSettings
|
|
9
|
-
} from "./chunk-4bh4qs70.js";
|
|
10
|
-
import {
|
|
11
|
-
Select,
|
|
12
|
-
init_CustomSelect
|
|
13
|
-
} from "./chunk-gnpt1t6q.js";
|
|
14
|
-
import {
|
|
15
|
-
Byline,
|
|
16
|
-
Dialog,
|
|
17
|
-
KeyboardShortcutHint,
|
|
18
|
-
Link,
|
|
19
|
-
ThemedBox_default,
|
|
20
|
-
ThemedText,
|
|
21
|
-
init_src,
|
|
22
|
-
use_input_default
|
|
23
|
-
} from "./chunk-c7jwbe76.js";
|
|
24
|
-
import {
|
|
25
|
-
require_jsx_dev_runtime,
|
|
26
|
-
require_react
|
|
27
|
-
} from "./chunk-7sgtxrsc.js";
|
|
28
|
-
import {
|
|
29
|
-
init_analytics,
|
|
30
|
-
logEvent
|
|
31
|
-
} from "./chunk-x8d2ehd7.js";
|
|
32
|
-
import {
|
|
33
|
-
__esm,
|
|
34
|
-
__toESM
|
|
35
|
-
} from "./chunk-qp2qdcda.js";
|
|
36
|
-
|
|
37
|
-
// src/components/grove/Grove.tsx
|
|
38
|
-
function GracePeriodContentBody() {
|
|
39
|
-
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(jsx_dev_runtime.Fragment, {
|
|
40
|
-
children: [
|
|
41
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
42
|
-
children: [
|
|
43
|
-
"An update to our Consumer Terms and Privacy Policy will take effect on",
|
|
44
|
-
" ",
|
|
45
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
46
|
-
bold: true,
|
|
47
|
-
children: "October 8, 2025"
|
|
48
|
-
}, undefined, false, undefined, this),
|
|
49
|
-
". You can accept the updated terms today."
|
|
50
|
-
]
|
|
51
|
-
}, undefined, true, undefined, this),
|
|
52
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
53
|
-
flexDirection: "column",
|
|
54
|
-
children: [
|
|
55
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
56
|
-
children: "What's changing?"
|
|
57
|
-
}, undefined, false, undefined, this),
|
|
58
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
59
|
-
paddingLeft: 1,
|
|
60
|
-
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
61
|
-
children: [
|
|
62
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
63
|
-
children: "\xB7 "
|
|
64
|
-
}, undefined, false, undefined, this),
|
|
65
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
66
|
-
bold: true,
|
|
67
|
-
children: "You can help improve Claude "
|
|
68
|
-
}, undefined, false, undefined, this),
|
|
69
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
70
|
-
children: [
|
|
71
|
-
"\u2014 Allow the use of your chats and coding sessions to train and improve Anthropic AI models. Change anytime in your Privacy Settings (",
|
|
72
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Link, {
|
|
73
|
-
url: "https://claude.ai/settings/data-privacy-controls"
|
|
74
|
-
}, undefined, false, undefined, this),
|
|
75
|
-
")."
|
|
76
|
-
]
|
|
77
|
-
}, undefined, true, undefined, this)
|
|
78
|
-
]
|
|
79
|
-
}, undefined, true, undefined, this)
|
|
80
|
-
}, undefined, false, undefined, this),
|
|
81
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
82
|
-
paddingLeft: 1,
|
|
83
|
-
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
84
|
-
children: [
|
|
85
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
86
|
-
children: "\xB7 "
|
|
87
|
-
}, undefined, false, undefined, this),
|
|
88
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
89
|
-
bold: true,
|
|
90
|
-
children: "Updates to data retention "
|
|
91
|
-
}, undefined, false, undefined, this),
|
|
92
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
93
|
-
children: "\u2014 To help us improve our AI models and safety protections, we're extending data retention to 5 years."
|
|
94
|
-
}, undefined, false, undefined, this)
|
|
95
|
-
]
|
|
96
|
-
}, undefined, true, undefined, this)
|
|
97
|
-
}, undefined, false, undefined, this)
|
|
98
|
-
]
|
|
99
|
-
}, undefined, true, undefined, this),
|
|
100
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
101
|
-
children: [
|
|
102
|
-
"Learn more (",
|
|
103
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Link, {
|
|
104
|
-
url: "https://www.anthropic.com/news/updates-to-our-consumer-terms"
|
|
105
|
-
}, undefined, false, undefined, this),
|
|
106
|
-
") or read the updated Consumer Terms (",
|
|
107
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Link, {
|
|
108
|
-
url: "https://anthropic.com/legal/terms"
|
|
109
|
-
}, undefined, false, undefined, this),
|
|
110
|
-
") and Privacy Policy (",
|
|
111
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Link, {
|
|
112
|
-
url: "https://anthropic.com/legal/privacy"
|
|
113
|
-
}, undefined, false, undefined, this),
|
|
114
|
-
")"
|
|
115
|
-
]
|
|
116
|
-
}, undefined, true, undefined, this)
|
|
117
|
-
]
|
|
118
|
-
}, undefined, true, undefined, this);
|
|
119
|
-
}
|
|
120
|
-
function PostGracePeriodContentBody() {
|
|
121
|
-
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(jsx_dev_runtime.Fragment, {
|
|
122
|
-
children: [
|
|
123
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
124
|
-
children: "We've updated our Consumer Terms and Privacy Policy."
|
|
125
|
-
}, undefined, false, undefined, this),
|
|
126
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
127
|
-
flexDirection: "column",
|
|
128
|
-
gap: 1,
|
|
129
|
-
children: [
|
|
130
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
131
|
-
children: "What's changing?"
|
|
132
|
-
}, undefined, false, undefined, this),
|
|
133
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
134
|
-
flexDirection: "column",
|
|
135
|
-
children: [
|
|
136
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
137
|
-
bold: true,
|
|
138
|
-
children: "Help improve Claude"
|
|
139
|
-
}, undefined, false, undefined, this),
|
|
140
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
141
|
-
children: "Allow the use of your chats and coding sessions to train and improve Anthropic AI models. You can change this anytime in Privacy Settings"
|
|
142
|
-
}, undefined, false, undefined, this),
|
|
143
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Link, {
|
|
144
|
-
url: "https://claude.ai/settings/data-privacy-controls"
|
|
145
|
-
}, undefined, false, undefined, this)
|
|
146
|
-
]
|
|
147
|
-
}, undefined, true, undefined, this),
|
|
148
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
149
|
-
flexDirection: "column",
|
|
150
|
-
children: [
|
|
151
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
152
|
-
bold: true,
|
|
153
|
-
children: "How this affects data retention"
|
|
154
|
-
}, undefined, false, undefined, this),
|
|
155
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
156
|
-
children: "Turning ON the improve Claude setting extends data retention from 30 days to 5 years. Turning it OFF keeps the default 30-day data retention. Delete data anytime."
|
|
157
|
-
}, undefined, false, undefined, this)
|
|
158
|
-
]
|
|
159
|
-
}, undefined, true, undefined, this)
|
|
160
|
-
]
|
|
161
|
-
}, undefined, true, undefined, this),
|
|
162
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
163
|
-
children: [
|
|
164
|
-
"Learn more (",
|
|
165
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Link, {
|
|
166
|
-
url: "https://www.anthropic.com/news/updates-to-our-consumer-terms"
|
|
167
|
-
}, undefined, false, undefined, this),
|
|
168
|
-
") or read the updated Consumer Terms (",
|
|
169
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Link, {
|
|
170
|
-
url: "https://anthropic.com/legal/terms"
|
|
171
|
-
}, undefined, false, undefined, this),
|
|
172
|
-
") and Privacy Policy (",
|
|
173
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Link, {
|
|
174
|
-
url: "https://anthropic.com/legal/privacy"
|
|
175
|
-
}, undefined, false, undefined, this),
|
|
176
|
-
")"
|
|
177
|
-
]
|
|
178
|
-
}, undefined, true, undefined, this)
|
|
179
|
-
]
|
|
180
|
-
}, undefined, true, undefined, this);
|
|
181
|
-
}
|
|
182
|
-
function GroveDialog({
|
|
183
|
-
showIfAlreadyViewed,
|
|
184
|
-
location,
|
|
185
|
-
onDone
|
|
186
|
-
}) {
|
|
187
|
-
const [shouldShowDialog, setShouldShowDialog] = import_react.useState(null);
|
|
188
|
-
const [groveConfig, setGroveConfig] = import_react.useState(null);
|
|
189
|
-
import_react.useEffect(() => {
|
|
190
|
-
async function checkGroveSettings() {
|
|
191
|
-
const [settingsResult, configResult] = await Promise.all([
|
|
192
|
-
getGroveSettings(),
|
|
193
|
-
getGroveNoticeConfig()
|
|
194
|
-
]);
|
|
195
|
-
const config = configResult.success ? configResult.data : null;
|
|
196
|
-
setGroveConfig(config);
|
|
197
|
-
const shouldShow = calculateShouldShowGrove(settingsResult, configResult, showIfAlreadyViewed);
|
|
198
|
-
setShouldShowDialog(shouldShow);
|
|
199
|
-
if (!shouldShow) {
|
|
200
|
-
onDone("skip_rendering");
|
|
201
|
-
return;
|
|
202
|
-
}
|
|
203
|
-
markGroveNoticeViewed();
|
|
204
|
-
logEvent("tengu_grove_policy_viewed", {
|
|
205
|
-
location,
|
|
206
|
-
dismissable: config?.notice_is_grace_period
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
checkGroveSettings();
|
|
210
|
-
}, [showIfAlreadyViewed, location, onDone]);
|
|
211
|
-
if (shouldShowDialog === null) {
|
|
212
|
-
return null;
|
|
213
|
-
}
|
|
214
|
-
if (!shouldShowDialog) {
|
|
215
|
-
return null;
|
|
216
|
-
}
|
|
217
|
-
async function onChange(value) {
|
|
218
|
-
switch (value) {
|
|
219
|
-
case "accept_opt_in": {
|
|
220
|
-
await updateGroveSettings(true);
|
|
221
|
-
logEvent("tengu_grove_policy_submitted", {
|
|
222
|
-
state: true,
|
|
223
|
-
dismissable: groveConfig?.notice_is_grace_period
|
|
224
|
-
});
|
|
225
|
-
break;
|
|
226
|
-
}
|
|
227
|
-
case "accept_opt_out": {
|
|
228
|
-
await updateGroveSettings(false);
|
|
229
|
-
logEvent("tengu_grove_policy_submitted", {
|
|
230
|
-
state: false,
|
|
231
|
-
dismissable: groveConfig?.notice_is_grace_period
|
|
232
|
-
});
|
|
233
|
-
break;
|
|
234
|
-
}
|
|
235
|
-
case "defer":
|
|
236
|
-
logEvent("tengu_grove_policy_dismissed", {
|
|
237
|
-
state: true
|
|
238
|
-
});
|
|
239
|
-
break;
|
|
240
|
-
case "escape":
|
|
241
|
-
logEvent("tengu_grove_policy_escaped", {});
|
|
242
|
-
break;
|
|
243
|
-
}
|
|
244
|
-
onDone(value);
|
|
245
|
-
}
|
|
246
|
-
const acceptOptions = groveConfig?.domain_excluded ? [
|
|
247
|
-
{
|
|
248
|
-
label: "Accept terms \xB7 Help improve Claude: OFF (for emails with your domain)",
|
|
249
|
-
value: "accept_opt_out"
|
|
250
|
-
}
|
|
251
|
-
] : [
|
|
252
|
-
{
|
|
253
|
-
label: "Accept terms \xB7 Help improve Claude: ON",
|
|
254
|
-
value: "accept_opt_in"
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
label: "Accept terms \xB7 Help improve Claude: OFF",
|
|
258
|
-
value: "accept_opt_out"
|
|
259
|
-
}
|
|
260
|
-
];
|
|
261
|
-
function handleCancel() {
|
|
262
|
-
if (groveConfig?.notice_is_grace_period) {
|
|
263
|
-
onChange("defer");
|
|
264
|
-
return;
|
|
265
|
-
}
|
|
266
|
-
onChange("escape");
|
|
267
|
-
}
|
|
268
|
-
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Dialog, {
|
|
269
|
-
title: "Updates to Consumer Terms and Policies",
|
|
270
|
-
color: "professionalBlue",
|
|
271
|
-
onCancel: handleCancel,
|
|
272
|
-
inputGuide: (exitState) => exitState.pending ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
273
|
-
children: [
|
|
274
|
-
"Press ",
|
|
275
|
-
exitState.keyName,
|
|
276
|
-
" again to exit"
|
|
277
|
-
]
|
|
278
|
-
}, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Byline, {
|
|
279
|
-
children: [
|
|
280
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(KeyboardShortcutHint, {
|
|
281
|
-
shortcut: "Enter",
|
|
282
|
-
action: "confirm"
|
|
283
|
-
}, undefined, false, undefined, this),
|
|
284
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(KeyboardShortcutHint, {
|
|
285
|
-
shortcut: "Esc",
|
|
286
|
-
action: "cancel"
|
|
287
|
-
}, undefined, false, undefined, this)
|
|
288
|
-
]
|
|
289
|
-
}, undefined, true, undefined, this),
|
|
290
|
-
children: [
|
|
291
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
292
|
-
flexDirection: "row",
|
|
293
|
-
children: [
|
|
294
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
295
|
-
flexDirection: "column",
|
|
296
|
-
gap: 1,
|
|
297
|
-
flexGrow: 1,
|
|
298
|
-
children: groveConfig?.notice_is_grace_period ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(GracePeriodContentBody, {}, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime.jsxDEV(PostGracePeriodContentBody, {}, undefined, false, undefined, this)
|
|
299
|
-
}, undefined, false, undefined, this),
|
|
300
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
301
|
-
flexShrink: 0,
|
|
302
|
-
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
303
|
-
color: "professionalBlue",
|
|
304
|
-
children: NEW_TERMS_ASCII
|
|
305
|
-
}, undefined, false, undefined, this)
|
|
306
|
-
}, undefined, false, undefined, this)
|
|
307
|
-
]
|
|
308
|
-
}, undefined, true, undefined, this),
|
|
309
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
310
|
-
flexDirection: "column",
|
|
311
|
-
gap: 1,
|
|
312
|
-
children: [
|
|
313
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
314
|
-
flexDirection: "column",
|
|
315
|
-
children: [
|
|
316
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
317
|
-
bold: true,
|
|
318
|
-
children: "Please select how you'd like to continue"
|
|
319
|
-
}, undefined, false, undefined, this),
|
|
320
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
321
|
-
children: "Your choice takes effect immediately upon confirmation."
|
|
322
|
-
}, undefined, false, undefined, this)
|
|
323
|
-
]
|
|
324
|
-
}, undefined, true, undefined, this),
|
|
325
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Select, {
|
|
326
|
-
options: [
|
|
327
|
-
...acceptOptions,
|
|
328
|
-
...groveConfig?.notice_is_grace_period ? [{ label: "Not now", value: "defer" }] : []
|
|
329
|
-
],
|
|
330
|
-
onChange: (value) => onChange(value),
|
|
331
|
-
onCancel: handleCancel
|
|
332
|
-
}, undefined, false, undefined, this)
|
|
333
|
-
]
|
|
334
|
-
}, undefined, true, undefined, this)
|
|
335
|
-
]
|
|
336
|
-
}, undefined, true, undefined, this);
|
|
337
|
-
}
|
|
338
|
-
function PrivacySettingsDialog({
|
|
339
|
-
settings,
|
|
340
|
-
domainExcluded,
|
|
341
|
-
onDone
|
|
342
|
-
}) {
|
|
343
|
-
const [groveEnabled, setGroveEnabled] = import_react.useState(settings.grove_enabled);
|
|
344
|
-
import_react.default.useEffect(() => {
|
|
345
|
-
logEvent("tengu_grove_privacy_settings_viewed", {});
|
|
346
|
-
}, []);
|
|
347
|
-
use_input_default(async (input, key) => {
|
|
348
|
-
if (!domainExcluded && (key.tab || key.return || input === " ")) {
|
|
349
|
-
const newValue = !groveEnabled;
|
|
350
|
-
setGroveEnabled(newValue);
|
|
351
|
-
await updateGroveSettings(newValue);
|
|
352
|
-
}
|
|
353
|
-
});
|
|
354
|
-
let valueComponent = /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
355
|
-
color: "error",
|
|
356
|
-
children: "false"
|
|
357
|
-
}, undefined, false, undefined, this);
|
|
358
|
-
if (domainExcluded) {
|
|
359
|
-
valueComponent = /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
360
|
-
color: "error",
|
|
361
|
-
children: "false (for emails with your domain)"
|
|
362
|
-
}, undefined, false, undefined, this);
|
|
363
|
-
} else if (groveEnabled) {
|
|
364
|
-
valueComponent = /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
365
|
-
color: "success",
|
|
366
|
-
children: "true"
|
|
367
|
-
}, undefined, false, undefined, this);
|
|
368
|
-
}
|
|
369
|
-
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Dialog, {
|
|
370
|
-
title: "Data Privacy",
|
|
371
|
-
color: "professionalBlue",
|
|
372
|
-
onCancel: onDone,
|
|
373
|
-
inputGuide: (exitState) => exitState.pending ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
374
|
-
children: [
|
|
375
|
-
"Press ",
|
|
376
|
-
exitState.keyName,
|
|
377
|
-
" again to exit"
|
|
378
|
-
]
|
|
379
|
-
}, undefined, true, undefined, this) : domainExcluded ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(KeyboardShortcutHint, {
|
|
380
|
-
shortcut: "Esc",
|
|
381
|
-
action: "cancel"
|
|
382
|
-
}, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Byline, {
|
|
383
|
-
children: [
|
|
384
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(KeyboardShortcutHint, {
|
|
385
|
-
shortcut: "Enter/Tab/Space",
|
|
386
|
-
action: "toggle"
|
|
387
|
-
}, undefined, false, undefined, this),
|
|
388
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(KeyboardShortcutHint, {
|
|
389
|
-
shortcut: "Esc",
|
|
390
|
-
action: "cancel"
|
|
391
|
-
}, undefined, false, undefined, this)
|
|
392
|
-
]
|
|
393
|
-
}, undefined, true, undefined, this),
|
|
394
|
-
children: [
|
|
395
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
396
|
-
children: [
|
|
397
|
-
"Review and manage your privacy settings at",
|
|
398
|
-
" ",
|
|
399
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Link, {
|
|
400
|
-
url: "https://claude.ai/settings/data-privacy-controls"
|
|
401
|
-
}, undefined, false, undefined, this)
|
|
402
|
-
]
|
|
403
|
-
}, undefined, true, undefined, this),
|
|
404
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
405
|
-
children: [
|
|
406
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
407
|
-
width: 44,
|
|
408
|
-
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
409
|
-
bold: true,
|
|
410
|
-
children: "Help improve Claude"
|
|
411
|
-
}, undefined, false, undefined, this)
|
|
412
|
-
}, undefined, false, undefined, this),
|
|
413
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
414
|
-
children: valueComponent
|
|
415
|
-
}, undefined, false, undefined, this)
|
|
416
|
-
]
|
|
417
|
-
}, undefined, true, undefined, this)
|
|
418
|
-
]
|
|
419
|
-
}, undefined, true, undefined, this);
|
|
420
|
-
}
|
|
421
|
-
var import_react, jsx_dev_runtime, NEW_TERMS_ASCII = ` _____________
|
|
422
|
-
| \\ \\
|
|
423
|
-
| NEW TERMS \\__\\
|
|
424
|
-
| |
|
|
425
|
-
| ---------- |
|
|
426
|
-
| ---------- |
|
|
427
|
-
| ---------- |
|
|
428
|
-
| ---------- |
|
|
429
|
-
| ---------- |
|
|
430
|
-
| |
|
|
431
|
-
|______________|`;
|
|
432
|
-
var init_Grove = __esm(() => {
|
|
433
|
-
init_analytics();
|
|
434
|
-
init_src();
|
|
435
|
-
init_grove();
|
|
436
|
-
init_CustomSelect();
|
|
437
|
-
init_src();
|
|
438
|
-
import_react = __toESM(require_react(), 1);
|
|
439
|
-
jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
|
|
440
|
-
});
|
|
441
|
-
|
|
442
|
-
export { GroveDialog, PrivacySettingsDialog, init_Grove };
|
package/dist/chunk-k7akhwkn.js
DELETED
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
init_useTerminalSize
|
|
4
|
-
} from "./chunk-gnpt1t6q.js";
|
|
5
|
-
import {
|
|
6
|
-
init_format,
|
|
7
|
-
truncatePathMiddle,
|
|
8
|
-
truncateToWidth
|
|
9
|
-
} from "./chunk-fqak69ft.js";
|
|
10
|
-
import {
|
|
11
|
-
ThemedBox_default,
|
|
12
|
-
ThemedText,
|
|
13
|
-
init_src,
|
|
14
|
-
stringWidth,
|
|
15
|
-
useTerminalSize
|
|
16
|
-
} from "./chunk-c7jwbe76.js";
|
|
17
|
-
import {
|
|
18
|
-
require_jsx_dev_runtime,
|
|
19
|
-
require_react
|
|
20
|
-
} from "./chunk-7sgtxrsc.js";
|
|
21
|
-
import {
|
|
22
|
-
__esm,
|
|
23
|
-
__toESM
|
|
24
|
-
} from "./chunk-qp2qdcda.js";
|
|
25
|
-
|
|
26
|
-
// src/components/PromptInput/PromptInputFooterSuggestions.tsx
|
|
27
|
-
function getIcon(itemId) {
|
|
28
|
-
if (itemId.startsWith("file-"))
|
|
29
|
-
return "+";
|
|
30
|
-
if (itemId.startsWith("mcp-resource-"))
|
|
31
|
-
return "\u25C7";
|
|
32
|
-
if (itemId.startsWith("agent-"))
|
|
33
|
-
return "*";
|
|
34
|
-
return "+";
|
|
35
|
-
}
|
|
36
|
-
function isUnifiedSuggestion(itemId) {
|
|
37
|
-
return itemId.startsWith("file-") || itemId.startsWith("mcp-resource-") || itemId.startsWith("agent-");
|
|
38
|
-
}
|
|
39
|
-
function PromptInputFooterSuggestions({
|
|
40
|
-
suggestions,
|
|
41
|
-
selectedSuggestion,
|
|
42
|
-
maxColumnWidth: maxColumnWidthProp,
|
|
43
|
-
overlay
|
|
44
|
-
}) {
|
|
45
|
-
const { rows } = useTerminalSize();
|
|
46
|
-
const maxVisibleItems = overlay ? OVERLAY_MAX_ITEMS : Math.min(6, Math.max(1, rows - 3));
|
|
47
|
-
if (suggestions.length === 0) {
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
const maxColumnWidth = maxColumnWidthProp ?? Math.max(...suggestions.map((item) => stringWidth(item.displayText))) + 5;
|
|
51
|
-
const startIndex = Math.max(0, Math.min(selectedSuggestion - Math.floor(maxVisibleItems / 2), suggestions.length - maxVisibleItems));
|
|
52
|
-
const endIndex = Math.min(startIndex + maxVisibleItems, suggestions.length);
|
|
53
|
-
const visibleItems = suggestions.slice(startIndex, endIndex);
|
|
54
|
-
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
55
|
-
flexDirection: "column",
|
|
56
|
-
justifyContent: overlay ? undefined : "flex-end",
|
|
57
|
-
children: visibleItems.map((item) => /* @__PURE__ */ jsx_dev_runtime.jsxDEV(SuggestionItemRow, {
|
|
58
|
-
item,
|
|
59
|
-
maxColumnWidth,
|
|
60
|
-
isSelected: item.id === suggestions[selectedSuggestion]?.id
|
|
61
|
-
}, item.id, false, undefined, this))
|
|
62
|
-
}, undefined, false, undefined, this);
|
|
63
|
-
}
|
|
64
|
-
var import_react, jsx_dev_runtime, OVERLAY_MAX_ITEMS = 5, SuggestionItemRow, PromptInputFooterSuggestions_default;
|
|
65
|
-
var init_PromptInputFooterSuggestions = __esm(() => {
|
|
66
|
-
init_useTerminalSize();
|
|
67
|
-
init_src();
|
|
68
|
-
init_format();
|
|
69
|
-
import_react = __toESM(require_react(), 1);
|
|
70
|
-
jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
|
|
71
|
-
SuggestionItemRow = import_react.memo(function SuggestionItemRow2({
|
|
72
|
-
item,
|
|
73
|
-
maxColumnWidth,
|
|
74
|
-
isSelected
|
|
75
|
-
}) {
|
|
76
|
-
const columns = useTerminalSize().columns;
|
|
77
|
-
const isUnified = isUnifiedSuggestion(item.id);
|
|
78
|
-
if (isUnified) {
|
|
79
|
-
const icon = getIcon(item.id);
|
|
80
|
-
const textColor2 = isSelected ? "suggestion" : undefined;
|
|
81
|
-
const dimColor = !isSelected;
|
|
82
|
-
const isFile = item.id.startsWith("file-");
|
|
83
|
-
const isMcpResource = item.id.startsWith("mcp-resource-");
|
|
84
|
-
const iconWidth = 2;
|
|
85
|
-
const paddingWidth = 4;
|
|
86
|
-
const separatorWidth = item.description ? 3 : 0;
|
|
87
|
-
let displayText2;
|
|
88
|
-
if (isFile) {
|
|
89
|
-
const descReserve = item.description ? Math.min(20, stringWidth(item.description)) : 0;
|
|
90
|
-
const maxPathLength = columns - iconWidth - paddingWidth - separatorWidth - descReserve;
|
|
91
|
-
displayText2 = truncatePathMiddle(item.displayText, maxPathLength);
|
|
92
|
-
} else if (isMcpResource) {
|
|
93
|
-
const maxDisplayTextLength = 30;
|
|
94
|
-
displayText2 = truncateToWidth(item.displayText, maxDisplayTextLength);
|
|
95
|
-
} else {
|
|
96
|
-
displayText2 = item.displayText;
|
|
97
|
-
}
|
|
98
|
-
const availableWidth = columns - iconWidth - stringWidth(displayText2) - separatorWidth - paddingWidth;
|
|
99
|
-
let lineContent;
|
|
100
|
-
if (item.description) {
|
|
101
|
-
const maxDescLength = Math.max(0, availableWidth);
|
|
102
|
-
const truncatedDesc = truncateToWidth(item.description.replace(/\s+/g, " "), maxDescLength);
|
|
103
|
-
lineContent = `${icon} ${displayText2} \u2013 ${truncatedDesc}`;
|
|
104
|
-
} else {
|
|
105
|
-
lineContent = `${icon} ${displayText2}`;
|
|
106
|
-
}
|
|
107
|
-
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
108
|
-
color: textColor2,
|
|
109
|
-
dimColor,
|
|
110
|
-
wrap: "truncate",
|
|
111
|
-
children: lineContent
|
|
112
|
-
}, undefined, false, undefined, this);
|
|
113
|
-
}
|
|
114
|
-
const maxNameWidth = Math.floor(columns * 0.4);
|
|
115
|
-
const displayTextWidth = Math.min(maxColumnWidth ?? stringWidth(item.displayText) + 5, maxNameWidth);
|
|
116
|
-
const textColor = item.color || (isSelected ? "suggestion" : undefined);
|
|
117
|
-
const shouldDim = !isSelected;
|
|
118
|
-
let displayText = item.displayText;
|
|
119
|
-
if (stringWidth(displayText) > displayTextWidth - 2) {
|
|
120
|
-
displayText = truncateToWidth(displayText, displayTextWidth - 2);
|
|
121
|
-
}
|
|
122
|
-
const paddedDisplayText = displayText + " ".repeat(Math.max(0, displayTextWidth - stringWidth(displayText)));
|
|
123
|
-
const tagText = item.tag ? `[${item.tag}] ` : "";
|
|
124
|
-
const tagWidth = stringWidth(tagText);
|
|
125
|
-
const descriptionWidth = Math.max(0, columns - displayTextWidth - tagWidth - 4);
|
|
126
|
-
const truncatedDescription = item.description ? truncateToWidth(item.description.replace(/\s+/g, " "), descriptionWidth) : "";
|
|
127
|
-
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
128
|
-
wrap: "truncate",
|
|
129
|
-
children: [
|
|
130
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
131
|
-
color: textColor,
|
|
132
|
-
dimColor: shouldDim,
|
|
133
|
-
children: paddedDisplayText
|
|
134
|
-
}, undefined, false, undefined, this),
|
|
135
|
-
tagText ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
136
|
-
color: item.tag === "local" ? "yellow" : undefined,
|
|
137
|
-
dimColor: item.tag !== "local",
|
|
138
|
-
children: tagText
|
|
139
|
-
}, undefined, false, undefined, this) : null,
|
|
140
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
141
|
-
color: isSelected ? "suggestion" : undefined,
|
|
142
|
-
dimColor: !isSelected,
|
|
143
|
-
children: truncatedDescription
|
|
144
|
-
}, undefined, false, undefined, this)
|
|
145
|
-
]
|
|
146
|
-
}, undefined, true, undefined, this);
|
|
147
|
-
});
|
|
148
|
-
PromptInputFooterSuggestions_default = import_react.memo(PromptInputFooterSuggestions);
|
|
149
|
-
});
|
|
150
|
-
|
|
151
|
-
export { PromptInputFooterSuggestions, PromptInputFooterSuggestions_default, init_PromptInputFooterSuggestions };
|