@caspian2026/agent-sdk 0.0.25 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gateway/index.js +98 -22
- package/dist/gateway/worker.js +1005 -982
- package/dist/sdk/query.cjs +2 -362
- package/dist/sdk/query.js +2 -367
- package/package.json +126 -128
- package/dist/chunk-04n4fe72.js +0 -107
- package/dist/chunk-04ys66ej.js +0 -344
- package/dist/chunk-07069jq1.js +0 -30
- package/dist/chunk-0731m51q.js +0 -8
- package/dist/chunk-086x4ct4.js +0 -26
- package/dist/chunk-0btqb97n.js +0 -295
- package/dist/chunk-0paqc2yw.js +0 -15
- package/dist/chunk-0r1rjydx.js +0 -145
- package/dist/chunk-0r5bb9j4.js +0 -477
- package/dist/chunk-0t81d427.js +0 -41
- package/dist/chunk-0teq2mz0.js +0 -420
- package/dist/chunk-0vkfrmqm.js +0 -690
- package/dist/chunk-0vp3wfab.js +0 -12
- package/dist/chunk-0warp8dx.js +0 -253
- package/dist/chunk-0xjaqda8.js +0 -1124
- package/dist/chunk-10gzv316.js +0 -62
- package/dist/chunk-11pq9n08.js +0 -168
- package/dist/chunk-1ae3nt9j.js +0 -31
- package/dist/chunk-1fmb0njn.js +0 -396
- package/dist/chunk-1gx78081.js +0 -66
- package/dist/chunk-1h2famwb.js +0 -49
- package/dist/chunk-1ng8xwxz.js +0 -276
- package/dist/chunk-1v7jp29h.js +0 -206
- package/dist/chunk-1xxy5zhb.js +0 -673
- package/dist/chunk-20b73w7w.js +0 -117
- package/dist/chunk-20qxd83a.js +0 -1161
- package/dist/chunk-2239ny9q.js +0 -90
- package/dist/chunk-22d4rnef.js +0 -226
- package/dist/chunk-26wtxbdc.js +0 -13870
- package/dist/chunk-27225bjh.js +0 -618
- package/dist/chunk-2b0e32an.js +0 -5822
- package/dist/chunk-2bfa9w1y.js +0 -323
- package/dist/chunk-2epq04w1.js +0 -63
- package/dist/chunk-2fwze72g.js +0 -24
- package/dist/chunk-2gzv8nrw.js +0 -205
- package/dist/chunk-2mexte1r.js +0 -349
- package/dist/chunk-2mzaqh5g.js +0 -338
- package/dist/chunk-2tb6mzfc.js +0 -81
- package/dist/chunk-2xq0g43w.js +0 -558
- package/dist/chunk-334aeqg9.js +0 -90
- package/dist/chunk-34jx4rjd.js +0 -995
- package/dist/chunk-35w5nhex.js +0 -132
- package/dist/chunk-3c25bcsw.js +0 -17
- package/dist/chunk-3eaxj8dg.js +0 -151
- package/dist/chunk-3fdgrwd2.js +0 -111
- package/dist/chunk-3jw0r58d.js +0 -121
- package/dist/chunk-3mgywd32.js +0 -8
- package/dist/chunk-3nk79af8.js +0 -8
- package/dist/chunk-3vy1jt9p.js +0 -1010
- package/dist/chunk-3x78pd4j.js +0 -153
- package/dist/chunk-47x3dsmn.js +0 -95
- package/dist/chunk-49pqt48n.js +0 -108
- package/dist/chunk-4f7m9fjw.js +0 -317
- package/dist/chunk-4jm600zv.js +0 -13
- package/dist/chunk-4k9d7gxv.js +0 -118
- package/dist/chunk-4net8san.js +0 -155
- package/dist/chunk-4pbx3g7s.js +0 -26
- package/dist/chunk-4v125j4z.js +0 -58
- package/dist/chunk-4vxkv5vz.js +0 -1438
- package/dist/chunk-51fqpjy3.js +0 -121
- package/dist/chunk-52e64f2h.js +0 -439
- package/dist/chunk-52e9mdjv.js +0 -684
- package/dist/chunk-55raexh7.js +0 -14358
- package/dist/chunk-59pq5122.js +0 -269
- package/dist/chunk-5bsj67v1.js +0 -349
- package/dist/chunk-5ccdsxgy.js +0 -74
- package/dist/chunk-5ekyhb1w.js +0 -422
- package/dist/chunk-5gcqdn8x.js +0 -867
- package/dist/chunk-5h5kx2jd.js +0 -34
- package/dist/chunk-5hf3werb.js +0 -193
- package/dist/chunk-5n1jc02d.js +0 -87
- package/dist/chunk-5wfxvxm8.js +0 -127
- package/dist/chunk-5wjebwmn.js +0 -89
- package/dist/chunk-5z28bqne.js +0 -6748
- package/dist/chunk-5zwsxpjn.js +0 -671
- package/dist/chunk-60phw466.js +0 -29
- package/dist/chunk-64c1avct.js +0 -13
- package/dist/chunk-64r16v22.js +0 -162
- package/dist/chunk-65t1r7zs.js +0 -418
- package/dist/chunk-66zry909.js +0 -11
- package/dist/chunk-67hxjjgc.js +0 -731
- package/dist/chunk-68ffk5qa.js +0 -14
- package/dist/chunk-69dr6rrd.js +0 -177
- package/dist/chunk-69n11zng.js +0 -436
- package/dist/chunk-6dj5t602.js +0 -341
- package/dist/chunk-6dngjwkh.js +0 -63
- package/dist/chunk-6dp8sz55.js +0 -3561
- package/dist/chunk-6hqgg0sv.js +0 -103
- package/dist/chunk-6nsd9606.js +0 -790
- package/dist/chunk-6p0hbwz3.js +0 -65
- package/dist/chunk-6ywdv5vg.js +0 -97
- package/dist/chunk-6zc758qw.js +0 -640
- package/dist/chunk-7aw745vx.js +0 -40175
- package/dist/chunk-7fxaphbq.js +0 -116
- package/dist/chunk-7sgtxrsc.js +0 -1059
- package/dist/chunk-7wm5s02e.js +0 -216
- package/dist/chunk-7xdk4109.js +0 -442
- package/dist/chunk-7xyswgjh.js +0 -8
- package/dist/chunk-83hfzbx3.js +0 -10
- package/dist/chunk-87m69h0v.js +0 -219
- package/dist/chunk-8g5pe1gr.js +0 -37
- package/dist/chunk-8jbw0fnf.js +0 -167
- package/dist/chunk-8jf9se66.js +0 -321
- package/dist/chunk-8p65embj.js +0 -875
- package/dist/chunk-8qrmaff1.js +0 -2669
- package/dist/chunk-8r975mwc.js +0 -93
- package/dist/chunk-8yhf030a.js +0 -69
- package/dist/chunk-93emz367.js +0 -107
- package/dist/chunk-948mn975.js +0 -460
- package/dist/chunk-99chkt7r.js +0 -54
- package/dist/chunk-9f7c1hzz.js +0 -50
- package/dist/chunk-9fk9ps1g.js +0 -178
- package/dist/chunk-9rh0k0aq.js +0 -90
- package/dist/chunk-9x5zgy22.js +0 -12
- package/dist/chunk-a0k2vj5b.js +0 -460
- package/dist/chunk-a0m57ssq.js +0 -325
- package/dist/chunk-a0nsmmz1.js +0 -133
- package/dist/chunk-a25jh1v4.js +0 -105
- package/dist/chunk-a4j5ekv0.js +0 -83
- package/dist/chunk-a8k3zf58.js +0 -313
- package/dist/chunk-ah0zarbq.js +0 -260
- package/dist/chunk-ase86y73.js +0 -15
- package/dist/chunk-b0kf00ff.js +0 -637
- package/dist/chunk-b1kcd3ss.js +0 -27
- package/dist/chunk-b8kcqqds.js +0 -93
- package/dist/chunk-bg4x9ex0.js +0 -21
- package/dist/chunk-bh5zqvyc.js +0 -36
- package/dist/chunk-bqrkfekw.js +0 -267
- package/dist/chunk-brjd9zmk.js +0 -42
- package/dist/chunk-byfawrfx.js +0 -121
- package/dist/chunk-c6sjhj89.js +0 -1284
- package/dist/chunk-c7e5yv0q.js +0 -212
- package/dist/chunk-c7jwbe76.js +0 -29030
- package/dist/chunk-cb5v8w7k.js +0 -289
- package/dist/chunk-cdef9v7b.js +0 -27
- package/dist/chunk-cdz5yb0r.js +0 -57
- package/dist/chunk-cgfdkzhb.js +0 -12
- package/dist/chunk-cgqw4x5z.js +0 -155
- package/dist/chunk-cnsj3vq2.js +0 -35
- package/dist/chunk-cqxm7ggc.js +0 -123
- package/dist/chunk-cxrktb5g.js +0 -51
- package/dist/chunk-d089t7dk.js +0 -312
- package/dist/chunk-d1z934cp.js +0 -71
- package/dist/chunk-d4mdda98.js +0 -94
- package/dist/chunk-d7xw8v91.js +0 -332
- package/dist/chunk-dc06c3rw.js +0 -1154
- package/dist/chunk-ddsjkqs4.js +0 -39
- package/dist/chunk-dfzkwynj.js +0 -5368
- package/dist/chunk-dnmp7s85.js +0 -20
- package/dist/chunk-dqqwjkv3.js +0 -8583
- package/dist/chunk-dt2mr4vf.js +0 -2962
- package/dist/chunk-dztm97gg.js +0 -150
- package/dist/chunk-e0abab5b.js +0 -445
- package/dist/chunk-e0ragz46.js +0 -209386
- package/dist/chunk-e9w9zc0g.js +0 -392
- package/dist/chunk-ebwskmsr.js +0 -107
- package/dist/chunk-efztk52j.js +0 -114
- package/dist/chunk-ehd8wacx.js +0 -40
- package/dist/chunk-ehtwnxpg.js +0 -1591
- package/dist/chunk-eqp1rfft.js +0 -17
- package/dist/chunk-etdt1xz3.js +0 -19
- package/dist/chunk-eva785x8.js +0 -88
- package/dist/chunk-ewadzrm8.js +0 -103
- package/dist/chunk-f2ajmcav.js +0 -92
- package/dist/chunk-fajg8x36.js +0 -8158
- package/dist/chunk-fbv4apne.js +0 -51
- package/dist/chunk-fcynwjpm.js +0 -1072
- package/dist/chunk-fev86f95.js +0 -1052
- package/dist/chunk-feyzykye.js +0 -10
- package/dist/chunk-ff85rwvc.js +0 -180
- package/dist/chunk-fk6ktvg2.js +0 -275
- package/dist/chunk-fqak69ft.js +0 -458
- package/dist/chunk-fqwas4jk.js +0 -281
- package/dist/chunk-fs35fdpj.js +0 -439
- package/dist/chunk-fvr3f9s3.js +0 -55
- package/dist/chunk-fyc5fepv.js +0 -10
- package/dist/chunk-g2g9cwt9.js +0 -54
- package/dist/chunk-g4znz46v.js +0 -2335
- package/dist/chunk-g5ts4e6k.js +0 -697
- package/dist/chunk-g6een9wr.js +0 -654
- package/dist/chunk-g7cmtx8r.js +0 -77
- package/dist/chunk-g9f19ttm.js +0 -15
- package/dist/chunk-gc7ap41t.js +0 -516
- package/dist/chunk-gdwdqewd.js +0 -19
- package/dist/chunk-gg14h3n4.js +0 -131
- package/dist/chunk-gg55fns0.js +0 -6440
- package/dist/chunk-gq7zab4e.js +0 -418
- package/dist/chunk-gydw3qy3.js +0 -169
- package/dist/chunk-gz1e8y1w.js +0 -33
- package/dist/chunk-h19r628d.js +0 -91
- package/dist/chunk-h2k8mt3z.js +0 -329
- package/dist/chunk-h9n54swm.js +0 -27
- package/dist/chunk-hakdhagh.js +0 -16606
- package/dist/chunk-hc2chp3g.js +0 -308
- package/dist/chunk-hemcv9t7.js +0 -153
- package/dist/chunk-hm62ntv3.js +0 -20
- package/dist/chunk-hmq09ytj.js +0 -100
- package/dist/chunk-hmv4hhqt.js +0 -2718
- package/dist/chunk-hwfknpxv.js +0 -39
- package/dist/chunk-j5bth84e.js +0 -97
- package/dist/chunk-j64ga6ta.js +0 -8035
- package/dist/chunk-j6v3w4yf.js +0 -244
- package/dist/chunk-jc29d2nm.js +0 -130
- package/dist/chunk-jd32zbps.js +0 -15
- package/dist/chunk-jd4sx4wh.js +0 -594
- package/dist/chunk-jha8n8b9.js +0 -33118
- package/dist/chunk-jj71qx7m.js +0 -122
- package/dist/chunk-jka9vpak.js +0 -114
- package/dist/chunk-jkf6ayv0.js +0 -32
- package/dist/chunk-jpz6t2tt.js +0 -61
- package/dist/chunk-jqt3sw12.js +0 -9114
- package/dist/chunk-jswd1q63.js +0 -101
- package/dist/chunk-jtc4aa2y.js +0 -1543
- package/dist/chunk-jyx3h86z.js +0 -635
- package/dist/chunk-jzthz1bx.js +0 -15
- package/dist/chunk-k0p9w03v.js +0 -4957
- package/dist/chunk-k6x3s7x5.js +0 -211
- package/dist/chunk-k7kmvnnx.js +0 -942
- package/dist/chunk-k8vp0atq.js +0 -2331
- package/dist/chunk-k9vm6x6z.js +0 -257
- package/dist/chunk-kb1edvhs.js +0 -120
- package/dist/chunk-kbhbe33q.js +0 -113
- package/dist/chunk-kgcgpp7z.js +0 -140
- package/dist/chunk-kvywbvqs.js +0 -261
- package/dist/chunk-kwekc97v.js +0 -18
- package/dist/chunk-kwyk9zp1.js +0 -74
- package/dist/chunk-ky1z78ve.js +0 -119
- package/dist/chunk-mcws22k3.js +0 -42
- package/dist/chunk-mr2z79r3.js +0 -1385
- package/dist/chunk-mst9nmns.js +0 -642
- package/dist/chunk-mswx2nma.js +0 -103
- package/dist/chunk-n1e3fjpz.js +0 -266
- package/dist/chunk-n6vjp9yg.js +0 -138
- package/dist/chunk-n84tqtvv.js +0 -120
- package/dist/chunk-n8ssddbw.js +0 -105
- package/dist/chunk-na35whkd.js +0 -227
- package/dist/chunk-netzwgv1.js +0 -154
- package/dist/chunk-ng7j0yy1.js +0 -100
- package/dist/chunk-nmgj86tt.js +0 -24
- package/dist/chunk-ns7x6xam.js +0 -22820
- package/dist/chunk-p7vkh4wx.js +0 -15
- package/dist/chunk-p8na2wwp.js +0 -14
- package/dist/chunk-pe3rkfp2.js +0 -74
- package/dist/chunk-pf0152j3.js +0 -40
- package/dist/chunk-pgtnj1mt.js +0 -705
- package/dist/chunk-ppwjyveh.js +0 -8
- package/dist/chunk-pq5qp2y4.js +0 -388
- package/dist/chunk-pqqxdk5f.js +0 -543
- package/dist/chunk-ps49ymvj.js +0 -43
- package/dist/chunk-pws8gq7m.js +0 -7422
- package/dist/chunk-pwwa7s62.js +0 -11
- package/dist/chunk-pyq0fabn.js +0 -860
- package/dist/chunk-q0p1m40t.js +0 -79
- package/dist/chunk-q0vhv550.js +0 -393
- package/dist/chunk-q7r0kt08.js +0 -1809
- package/dist/chunk-qajrkk97.js +0 -298
- package/dist/chunk-qatfdxvd.js +0 -34
- package/dist/chunk-qb6k2afy.js +0 -153
- package/dist/chunk-qg2qgx8h.js +0 -266
- package/dist/chunk-qkczt8cr.js +0 -24
- package/dist/chunk-qnfx3qtx.js +0 -617
- package/dist/chunk-qp2qdcda.js +0 -100
- package/dist/chunk-qtwgzej9.js +0 -85
- package/dist/chunk-r1dh0ymt.js +0 -91
- package/dist/chunk-r36xvgvv.js +0 -407
- package/dist/chunk-r48he8g3.js +0 -251
- package/dist/chunk-r63tqmtk.js +0 -146
- package/dist/chunk-rbdd3q5k.js +0 -101
- package/dist/chunk-rmbbmd3s.js +0 -68
- package/dist/chunk-rn0v1hk8.js +0 -34
- package/dist/chunk-rnxctq9p.js +0 -1646
- package/dist/chunk-rrs2mchs.js +0 -183
- package/dist/chunk-rtrybvnp.js +0 -209
- package/dist/chunk-rw2wkn45.js +0 -494
- package/dist/chunk-s4kzkdhd.js +0 -847
- package/dist/chunk-s7a0zn7b.js +0 -55
- package/dist/chunk-s8gy4ky9.js +0 -122
- package/dist/chunk-s8kj6ajy.js +0 -32
- package/dist/chunk-sag785ad.js +0 -283
- package/dist/chunk-scqjyben.js +0 -174
- package/dist/chunk-sd36yzx8.js +0 -954
- package/dist/chunk-sdtqm0nm.js +0 -374
- package/dist/chunk-sg60xg0x.js +0 -52
- package/dist/chunk-sgpmpn90.js +0 -35
- package/dist/chunk-sh02d2qn.js +0 -38
- package/dist/chunk-sz9y6z13.js +0 -61
- package/dist/chunk-szj5wvdy.js +0 -28
- package/dist/chunk-t29a6zb5.js +0 -45
- package/dist/chunk-t2b49hcf.js +0 -87
- package/dist/chunk-t2wqdppz.js +0 -445
- package/dist/chunk-t4khqff1.js +0 -16
- package/dist/chunk-t70t2gne.js +0 -121
- package/dist/chunk-t9p85zff.js +0 -24
- package/dist/chunk-tkrstmwz.js +0 -94
- package/dist/chunk-tnyb4exc.js +0 -74
- package/dist/chunk-tpn8jsvw.js +0 -71
- package/dist/chunk-tt7x5j1q.js +0 -111
- package/dist/chunk-tw1p628z.js +0 -984
- package/dist/chunk-twvdafcz.js +0 -528
- package/dist/chunk-tzwjafgn.js +0 -24
- package/dist/chunk-v140t8ay.js +0 -152
- package/dist/chunk-v1kzp02e.js +0 -785
- package/dist/chunk-v4t6dyyh.js +0 -9076
- package/dist/chunk-v78fj8by.js +0 -145
- package/dist/chunk-v8kjswxt.js +0 -61
- package/dist/chunk-v9smspw2.js +0 -4301
- package/dist/chunk-vcfbjkk9.js +0 -201
- package/dist/chunk-ve167rcs.js +0 -148
- package/dist/chunk-vf612n57.js +0 -472
- package/dist/chunk-vhffyae8.js +0 -895
- package/dist/chunk-vkhrrvfq.js +0 -44
- package/dist/chunk-vybkmfhf.js +0 -91
- package/dist/chunk-vyjeh50y.js +0 -2149
- package/dist/chunk-w6m6trzq.js +0 -58
- package/dist/chunk-w9b6kngq.js +0 -234
- package/dist/chunk-wa8yn2p0.js +0 -2007
- package/dist/chunk-wanceff6.js +0 -2840
- package/dist/chunk-wcze2nea.js +0 -336
- package/dist/chunk-wgk9sxk7.js +0 -329
- package/dist/chunk-wnxcgfsd.js +0 -253
- package/dist/chunk-wyjerrr6.js +0 -565
- package/dist/chunk-wz9brkq5.js +0 -60
- package/dist/chunk-x47h283a.js +0 -56
- package/dist/chunk-x59j3x9c.js +0 -98
- package/dist/chunk-x6r4v44b.js +0 -8
- package/dist/chunk-x7fdwq3d.js +0 -33
- package/dist/chunk-x8d2ehd7.js +0 -19
- package/dist/chunk-xeb6075z.js +0 -3435
- package/dist/chunk-xfw2pxwd.js +0 -223
- package/dist/chunk-xh06jc72.js +0 -200
- package/dist/chunk-xhfmdq1y.js +0 -147
- package/dist/chunk-xkwyg1d2.js +0 -195
- package/dist/chunk-xv3era3s.js +0 -8
- package/dist/chunk-xyapc58m.js +0 -87
- package/dist/chunk-xzgnc76g.js +0 -107
- package/dist/chunk-y1784krc.js +0 -19
- package/dist/chunk-y4ca9kqz.js +0 -3830
- package/dist/chunk-y9bhjjdz.js +0 -145
- package/dist/chunk-yb3bxv3w.js +0 -30
- package/dist/chunk-yddek6xk.js +0 -146
- package/dist/chunk-ypaq3d12.js +0 -4265
- package/dist/chunk-yq8z040g.js +0 -111
- package/dist/chunk-yqs481qq.js +0 -1163
- package/dist/chunk-ys9a9c9h.js +0 -105
- package/dist/chunk-yyex5gsf.js +0 -269
- package/dist/chunk-yzn396hn.js +0 -89
- package/dist/chunk-z2dp53wn.js +0 -17
- package/dist/chunk-zay4xp4n.js +0 -251
- package/dist/chunk-zc8bwy57.js +0 -212
- package/dist/chunk-zhx88cfx.js +0 -97
- package/dist/chunk-zkh6f4ct.js +0 -385
- package/dist/chunk-zq56gcca.js +0 -206
- package/dist/chunk-zrkefd22.js +0 -490
- package/dist/chunk-zs5p0yq1.js +0 -1030
- package/dist/chunk-zxh62ved.js +0 -31
- package/dist/chunk-zzm33q8x.js +0 -8
- package/dist/cli.js +0 -220
package/dist/chunk-mswx2nma.js
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
ThemedBox_default,
|
|
4
|
-
ThemedText,
|
|
5
|
-
init_src
|
|
6
|
-
} from "./chunk-c7jwbe76.js";
|
|
7
|
-
import {
|
|
8
|
-
require_jsx_dev_runtime
|
|
9
|
-
} from "./chunk-7sgtxrsc.js";
|
|
10
|
-
import {
|
|
11
|
-
__toESM
|
|
12
|
-
} from "./chunk-qp2qdcda.js";
|
|
13
|
-
|
|
14
|
-
// src/components/permissions/PermissionDialog.tsx
|
|
15
|
-
init_src();
|
|
16
|
-
|
|
17
|
-
// src/components/permissions/PermissionRequestTitle.tsx
|
|
18
|
-
init_src();
|
|
19
|
-
var jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
|
|
20
|
-
function PermissionRequestTitle({
|
|
21
|
-
title,
|
|
22
|
-
subtitle,
|
|
23
|
-
color = "permission",
|
|
24
|
-
workerBadge
|
|
25
|
-
}) {
|
|
26
|
-
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
27
|
-
flexDirection: "column",
|
|
28
|
-
children: [
|
|
29
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
30
|
-
flexDirection: "row",
|
|
31
|
-
gap: 1,
|
|
32
|
-
children: [
|
|
33
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
34
|
-
bold: true,
|
|
35
|
-
color,
|
|
36
|
-
children: title
|
|
37
|
-
}, undefined, false, undefined, this),
|
|
38
|
-
workerBadge && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
39
|
-
dimColor: true,
|
|
40
|
-
children: [
|
|
41
|
-
"\xB7 ",
|
|
42
|
-
"@",
|
|
43
|
-
workerBadge.name
|
|
44
|
-
]
|
|
45
|
-
}, undefined, true, undefined, this)
|
|
46
|
-
]
|
|
47
|
-
}, undefined, true, undefined, this),
|
|
48
|
-
subtitle != null && (typeof subtitle === "string" ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
49
|
-
dimColor: true,
|
|
50
|
-
wrap: "truncate-start",
|
|
51
|
-
children: subtitle
|
|
52
|
-
}, undefined, false, undefined, this) : subtitle)
|
|
53
|
-
]
|
|
54
|
-
}, undefined, true, undefined, this);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// src/components/permissions/PermissionDialog.tsx
|
|
58
|
-
var jsx_dev_runtime2 = __toESM(require_jsx_dev_runtime(), 1);
|
|
59
|
-
function PermissionDialog({
|
|
60
|
-
title,
|
|
61
|
-
subtitle,
|
|
62
|
-
color = "permission",
|
|
63
|
-
titleColor,
|
|
64
|
-
innerPaddingX = 1,
|
|
65
|
-
workerBadge,
|
|
66
|
-
titleRight,
|
|
67
|
-
children
|
|
68
|
-
}) {
|
|
69
|
-
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
70
|
-
flexDirection: "column",
|
|
71
|
-
borderStyle: "round",
|
|
72
|
-
borderColor: color,
|
|
73
|
-
borderLeft: false,
|
|
74
|
-
borderRight: false,
|
|
75
|
-
borderBottom: false,
|
|
76
|
-
marginTop: 1,
|
|
77
|
-
children: [
|
|
78
|
-
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
79
|
-
paddingX: 1,
|
|
80
|
-
flexDirection: "column",
|
|
81
|
-
children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
82
|
-
justifyContent: "space-between",
|
|
83
|
-
children: [
|
|
84
|
-
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(PermissionRequestTitle, {
|
|
85
|
-
title,
|
|
86
|
-
subtitle,
|
|
87
|
-
color: titleColor,
|
|
88
|
-
workerBadge
|
|
89
|
-
}, undefined, false, undefined, this),
|
|
90
|
-
titleRight
|
|
91
|
-
]
|
|
92
|
-
}, undefined, true, undefined, this)
|
|
93
|
-
}, undefined, false, undefined, this),
|
|
94
|
-
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
95
|
-
flexDirection: "column",
|
|
96
|
-
paddingX: innerPaddingX,
|
|
97
|
-
children
|
|
98
|
-
}, undefined, false, undefined, this)
|
|
99
|
-
]
|
|
100
|
-
}, undefined, true, undefined, this);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export { PermissionRequestTitle, PermissionDialog };
|
package/dist/chunk-n1e3fjpz.js
DELETED
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
StructuredDiff,
|
|
4
|
-
init_StructuredDiff
|
|
5
|
-
} from "./chunk-t2wqdppz.js";
|
|
6
|
-
import {
|
|
7
|
-
Select,
|
|
8
|
-
getColorModuleUnavailableReason,
|
|
9
|
-
getSyntaxTheme,
|
|
10
|
-
gracefulShutdown,
|
|
11
|
-
init_AppState,
|
|
12
|
-
init_CustomSelect,
|
|
13
|
-
init_KeybindingContext,
|
|
14
|
-
init_colorDiff,
|
|
15
|
-
init_gracefulShutdown,
|
|
16
|
-
init_useShortcutDisplay,
|
|
17
|
-
init_useTerminalSize,
|
|
18
|
-
useAppState,
|
|
19
|
-
useSetAppState,
|
|
20
|
-
useShortcutDisplay
|
|
21
|
-
} from "./chunk-e0ragz46.js";
|
|
22
|
-
import {
|
|
23
|
-
init_useExitOnCtrlCDWithKeybindings,
|
|
24
|
-
useExitOnCtrlCDWithKeybindings
|
|
25
|
-
} from "./chunk-4k9d7gxv.js";
|
|
26
|
-
import {
|
|
27
|
-
init_useKeybinding
|
|
28
|
-
} from "./chunk-68ffk5qa.js";
|
|
29
|
-
import {
|
|
30
|
-
init_settings1 as init_settings,
|
|
31
|
-
updateSettingsForSource
|
|
32
|
-
} from "./chunk-2b0e32an.js";
|
|
33
|
-
import {
|
|
34
|
-
Byline,
|
|
35
|
-
KeyboardShortcutHint,
|
|
36
|
-
ThemedBox_default,
|
|
37
|
-
ThemedText,
|
|
38
|
-
init_src,
|
|
39
|
-
useKeybinding,
|
|
40
|
-
usePreviewTheme,
|
|
41
|
-
useRegisterKeybindingContext,
|
|
42
|
-
useTerminalSize,
|
|
43
|
-
useTheme,
|
|
44
|
-
useThemeSetting
|
|
45
|
-
} from "./chunk-c7jwbe76.js";
|
|
46
|
-
import {
|
|
47
|
-
require_jsx_dev_runtime
|
|
48
|
-
} from "./chunk-7sgtxrsc.js";
|
|
49
|
-
import {
|
|
50
|
-
__esm,
|
|
51
|
-
__toESM
|
|
52
|
-
} from "./chunk-qp2qdcda.js";
|
|
53
|
-
|
|
54
|
-
// src/components/ThemePicker.tsx
|
|
55
|
-
function ThemePicker({
|
|
56
|
-
onThemeSelect,
|
|
57
|
-
showIntroText = false,
|
|
58
|
-
helpText = "",
|
|
59
|
-
showHelpTextBelow = false,
|
|
60
|
-
hideEscToCancel = false,
|
|
61
|
-
skipExitHandling = false,
|
|
62
|
-
onCancel: onCancelProp
|
|
63
|
-
}) {
|
|
64
|
-
const [theme] = useTheme();
|
|
65
|
-
const themeSetting = useThemeSetting();
|
|
66
|
-
const { columns } = useTerminalSize();
|
|
67
|
-
const colorModuleUnavailableReason = getColorModuleUnavailableReason();
|
|
68
|
-
const syntaxTheme = colorModuleUnavailableReason === null ? getSyntaxTheme(theme) : null;
|
|
69
|
-
const { setPreviewTheme, savePreview, cancelPreview } = usePreviewTheme();
|
|
70
|
-
const syntaxHighlightingDisabled = useAppState((s) => s.settings.syntaxHighlightingDisabled) ?? false;
|
|
71
|
-
const setAppState = useSetAppState();
|
|
72
|
-
useRegisterKeybindingContext("ThemePicker");
|
|
73
|
-
const syntaxToggleShortcut = useShortcutDisplay("theme:toggleSyntaxHighlighting", "ThemePicker", "ctrl+t");
|
|
74
|
-
useKeybinding("theme:toggleSyntaxHighlighting", () => {
|
|
75
|
-
if (colorModuleUnavailableReason === null) {
|
|
76
|
-
const newValue = !syntaxHighlightingDisabled;
|
|
77
|
-
updateSettingsForSource("userSettings", {
|
|
78
|
-
syntaxHighlightingDisabled: newValue
|
|
79
|
-
});
|
|
80
|
-
setAppState((prev) => ({
|
|
81
|
-
...prev,
|
|
82
|
-
settings: { ...prev.settings, syntaxHighlightingDisabled: newValue }
|
|
83
|
-
}));
|
|
84
|
-
}
|
|
85
|
-
}, { context: "ThemePicker" });
|
|
86
|
-
const exitState = useExitOnCtrlCDWithKeybindings(skipExitHandling ? () => {} : undefined);
|
|
87
|
-
const themeOptions = [
|
|
88
|
-
...[],
|
|
89
|
-
{ label: "Dark mode", value: "dark" },
|
|
90
|
-
{ label: "Light mode", value: "light" },
|
|
91
|
-
{
|
|
92
|
-
label: "Dark mode (colorblind-friendly)",
|
|
93
|
-
value: "dark-daltonized"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
label: "Light mode (colorblind-friendly)",
|
|
97
|
-
value: "light-daltonized"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
label: "Dark mode (ANSI colors only)",
|
|
101
|
-
value: "dark-ansi"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
label: "Light mode (ANSI colors only)",
|
|
105
|
-
value: "light-ansi"
|
|
106
|
-
}
|
|
107
|
-
];
|
|
108
|
-
const content = /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
109
|
-
flexDirection: "column",
|
|
110
|
-
gap: 1,
|
|
111
|
-
children: [
|
|
112
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
113
|
-
flexDirection: "column",
|
|
114
|
-
gap: 1,
|
|
115
|
-
children: [
|
|
116
|
-
showIntroText ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
117
|
-
children: "Let's get started."
|
|
118
|
-
}, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
119
|
-
bold: true,
|
|
120
|
-
color: "permission",
|
|
121
|
-
children: "Theme"
|
|
122
|
-
}, undefined, false, undefined, this),
|
|
123
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
124
|
-
flexDirection: "column",
|
|
125
|
-
children: [
|
|
126
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
127
|
-
bold: true,
|
|
128
|
-
children: "Choose the text style that looks best with your terminal"
|
|
129
|
-
}, undefined, false, undefined, this),
|
|
130
|
-
helpText && !showHelpTextBelow && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
131
|
-
dimColor: true,
|
|
132
|
-
children: helpText
|
|
133
|
-
}, undefined, false, undefined, this)
|
|
134
|
-
]
|
|
135
|
-
}, undefined, true, undefined, this),
|
|
136
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(Select, {
|
|
137
|
-
options: themeOptions,
|
|
138
|
-
onFocus: (setting) => {
|
|
139
|
-
setPreviewTheme(setting);
|
|
140
|
-
},
|
|
141
|
-
onChange: (setting) => {
|
|
142
|
-
savePreview();
|
|
143
|
-
onThemeSelect(setting);
|
|
144
|
-
},
|
|
145
|
-
onCancel: skipExitHandling ? () => {
|
|
146
|
-
cancelPreview();
|
|
147
|
-
onCancelProp?.();
|
|
148
|
-
} : async () => {
|
|
149
|
-
cancelPreview();
|
|
150
|
-
await gracefulShutdown(0);
|
|
151
|
-
},
|
|
152
|
-
visibleOptionCount: themeOptions.length,
|
|
153
|
-
defaultValue: themeSetting,
|
|
154
|
-
defaultFocusValue: themeSetting
|
|
155
|
-
}, undefined, false, undefined, this)
|
|
156
|
-
]
|
|
157
|
-
}, undefined, true, undefined, this),
|
|
158
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
159
|
-
flexDirection: "column",
|
|
160
|
-
width: "100%",
|
|
161
|
-
children: [
|
|
162
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
163
|
-
flexDirection: "column",
|
|
164
|
-
borderTop: true,
|
|
165
|
-
borderBottom: true,
|
|
166
|
-
borderLeft: false,
|
|
167
|
-
borderRight: false,
|
|
168
|
-
borderStyle: "dashed",
|
|
169
|
-
borderColor: "subtle",
|
|
170
|
-
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(StructuredDiff, {
|
|
171
|
-
patch: {
|
|
172
|
-
oldStart: 1,
|
|
173
|
-
newStart: 1,
|
|
174
|
-
oldLines: 3,
|
|
175
|
-
newLines: 3,
|
|
176
|
-
lines: [
|
|
177
|
-
" function greet() {",
|
|
178
|
-
'- console.log("Hello, World!");',
|
|
179
|
-
'+ console.log("Hello, Claude!");',
|
|
180
|
-
" }"
|
|
181
|
-
]
|
|
182
|
-
},
|
|
183
|
-
dim: false,
|
|
184
|
-
filePath: "demo.js",
|
|
185
|
-
firstLine: null,
|
|
186
|
-
width: columns
|
|
187
|
-
}, undefined, false, undefined, this)
|
|
188
|
-
}, undefined, false, undefined, this),
|
|
189
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
190
|
-
dimColor: true,
|
|
191
|
-
children: [
|
|
192
|
-
" ",
|
|
193
|
-
colorModuleUnavailableReason === "env" ? `Syntax highlighting disabled (via CLAUDE_CODE_SYNTAX_HIGHLIGHT=${process.env.CLAUDE_CODE_SYNTAX_HIGHLIGHT})` : syntaxHighlightingDisabled ? `Syntax highlighting disabled (${syntaxToggleShortcut} to enable)` : syntaxTheme ? `Syntax theme: ${syntaxTheme.theme}${syntaxTheme.source ? ` (from ${syntaxTheme.source})` : ""} (${syntaxToggleShortcut} to disable)` : `Syntax highlighting enabled (${syntaxToggleShortcut} to disable)`
|
|
194
|
-
]
|
|
195
|
-
}, undefined, true, undefined, this)
|
|
196
|
-
]
|
|
197
|
-
}, undefined, true, undefined, this)
|
|
198
|
-
]
|
|
199
|
-
}, undefined, true, undefined, this);
|
|
200
|
-
if (!showIntroText) {
|
|
201
|
-
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(jsx_dev_runtime.Fragment, {
|
|
202
|
-
children: [
|
|
203
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
204
|
-
flexDirection: "column",
|
|
205
|
-
children: content
|
|
206
|
-
}, undefined, false, undefined, this),
|
|
207
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
208
|
-
marginTop: 1,
|
|
209
|
-
children: [
|
|
210
|
-
showHelpTextBelow && helpText && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
211
|
-
marginLeft: 3,
|
|
212
|
-
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
213
|
-
dimColor: true,
|
|
214
|
-
children: helpText
|
|
215
|
-
}, undefined, false, undefined, this)
|
|
216
|
-
}, undefined, false, undefined, this),
|
|
217
|
-
!hideEscToCancel && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
218
|
-
children: /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
219
|
-
dimColor: true,
|
|
220
|
-
italic: true,
|
|
221
|
-
children: exitState.pending ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(jsx_dev_runtime.Fragment, {
|
|
222
|
-
children: [
|
|
223
|
-
"Press ",
|
|
224
|
-
exitState.keyName,
|
|
225
|
-
" again to exit"
|
|
226
|
-
]
|
|
227
|
-
}, undefined, true, undefined, this) : /* @__PURE__ */ jsx_dev_runtime.jsxDEV(Byline, {
|
|
228
|
-
children: [
|
|
229
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(KeyboardShortcutHint, {
|
|
230
|
-
shortcut: "Enter",
|
|
231
|
-
action: "select"
|
|
232
|
-
}, undefined, false, undefined, this),
|
|
233
|
-
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(KeyboardShortcutHint, {
|
|
234
|
-
shortcut: "Esc",
|
|
235
|
-
action: "cancel"
|
|
236
|
-
}, undefined, false, undefined, this)
|
|
237
|
-
]
|
|
238
|
-
}, undefined, true, undefined, this)
|
|
239
|
-
}, undefined, false, undefined, this)
|
|
240
|
-
}, undefined, false, undefined, this)
|
|
241
|
-
]
|
|
242
|
-
}, undefined, true, undefined, this)
|
|
243
|
-
]
|
|
244
|
-
}, undefined, true, undefined, this);
|
|
245
|
-
}
|
|
246
|
-
return content;
|
|
247
|
-
}
|
|
248
|
-
var jsx_dev_runtime;
|
|
249
|
-
var init_ThemePicker = __esm(() => {
|
|
250
|
-
init_useExitOnCtrlCDWithKeybindings();
|
|
251
|
-
init_useTerminalSize();
|
|
252
|
-
init_src();
|
|
253
|
-
init_KeybindingContext();
|
|
254
|
-
init_useKeybinding();
|
|
255
|
-
init_useShortcutDisplay();
|
|
256
|
-
init_AppState();
|
|
257
|
-
init_gracefulShutdown();
|
|
258
|
-
init_settings();
|
|
259
|
-
init_CustomSelect();
|
|
260
|
-
init_src();
|
|
261
|
-
init_colorDiff();
|
|
262
|
-
init_StructuredDiff();
|
|
263
|
-
jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
|
|
264
|
-
});
|
|
265
|
-
|
|
266
|
-
export { ThemePicker, init_ThemePicker };
|
package/dist/chunk-n6vjp9yg.js
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
clearAllCaches,
|
|
4
|
-
clearPluginCacheExclusions,
|
|
5
|
-
getAgentDefinitionsWithOverrides,
|
|
6
|
-
getPluginCommands,
|
|
7
|
-
init_cacheUtils,
|
|
8
|
-
init_loadAgentsDir,
|
|
9
|
-
init_loadPluginCommands,
|
|
10
|
-
init_loadPluginHooks,
|
|
11
|
-
init_lspPluginIntegration,
|
|
12
|
-
init_manager,
|
|
13
|
-
init_mcpPluginIntegration,
|
|
14
|
-
init_orphanedPluginFilter,
|
|
15
|
-
init_pluginLoader,
|
|
16
|
-
loadAllPlugins,
|
|
17
|
-
loadPluginHooks,
|
|
18
|
-
loadPluginLspServers,
|
|
19
|
-
loadPluginMcpServers,
|
|
20
|
-
reinitializeLspServerManager
|
|
21
|
-
} from "./chunk-e0ragz46.js";
|
|
22
|
-
import {
|
|
23
|
-
errorMessage,
|
|
24
|
-
init_debug,
|
|
25
|
-
init_errors,
|
|
26
|
-
init_log,
|
|
27
|
-
logError,
|
|
28
|
-
logForDebugging
|
|
29
|
-
} from "./chunk-gg55fns0.js";
|
|
30
|
-
import {
|
|
31
|
-
getOriginalCwd,
|
|
32
|
-
init_state
|
|
33
|
-
} from "./chunk-k8vp0atq.js";
|
|
34
|
-
import {
|
|
35
|
-
__esm
|
|
36
|
-
} from "./chunk-qp2qdcda.js";
|
|
37
|
-
|
|
38
|
-
// src/utils/plugins/refresh.ts
|
|
39
|
-
async function refreshActivePlugins(setAppState) {
|
|
40
|
-
logForDebugging("refreshActivePlugins: clearing all plugin caches");
|
|
41
|
-
clearAllCaches();
|
|
42
|
-
clearPluginCacheExclusions();
|
|
43
|
-
const pluginResult = await loadAllPlugins();
|
|
44
|
-
const [pluginCommands, agentDefinitions] = await Promise.all([
|
|
45
|
-
getPluginCommands(),
|
|
46
|
-
getAgentDefinitionsWithOverrides(getOriginalCwd())
|
|
47
|
-
]);
|
|
48
|
-
const { enabled, disabled, errors } = pluginResult;
|
|
49
|
-
const [mcpCounts, lspCounts] = await Promise.all([
|
|
50
|
-
Promise.all(enabled.map(async (p) => {
|
|
51
|
-
if (p.mcpServers)
|
|
52
|
-
return Object.keys(p.mcpServers).length;
|
|
53
|
-
const servers = await loadPluginMcpServers(p, errors);
|
|
54
|
-
if (servers)
|
|
55
|
-
p.mcpServers = servers;
|
|
56
|
-
return servers ? Object.keys(servers).length : 0;
|
|
57
|
-
})),
|
|
58
|
-
Promise.all(enabled.map(async (p) => {
|
|
59
|
-
if (p.lspServers)
|
|
60
|
-
return Object.keys(p.lspServers).length;
|
|
61
|
-
const servers = await loadPluginLspServers(p, errors);
|
|
62
|
-
if (servers)
|
|
63
|
-
p.lspServers = servers;
|
|
64
|
-
return servers ? Object.keys(servers).length : 0;
|
|
65
|
-
}))
|
|
66
|
-
]);
|
|
67
|
-
const mcp_count = mcpCounts.reduce((sum, n) => sum + n, 0);
|
|
68
|
-
const lsp_count = lspCounts.reduce((sum, n) => sum + n, 0);
|
|
69
|
-
setAppState((prev) => ({
|
|
70
|
-
...prev,
|
|
71
|
-
plugins: {
|
|
72
|
-
...prev.plugins,
|
|
73
|
-
enabled,
|
|
74
|
-
disabled,
|
|
75
|
-
commands: pluginCommands,
|
|
76
|
-
errors: mergePluginErrors(prev.plugins.errors, errors),
|
|
77
|
-
needsRefresh: false
|
|
78
|
-
},
|
|
79
|
-
agentDefinitions,
|
|
80
|
-
mcp: {
|
|
81
|
-
...prev.mcp,
|
|
82
|
-
pluginReconnectKey: prev.mcp.pluginReconnectKey + 1
|
|
83
|
-
}
|
|
84
|
-
}));
|
|
85
|
-
reinitializeLspServerManager();
|
|
86
|
-
let hook_load_failed = false;
|
|
87
|
-
try {
|
|
88
|
-
await loadPluginHooks();
|
|
89
|
-
} catch (e) {
|
|
90
|
-
hook_load_failed = true;
|
|
91
|
-
logError(e);
|
|
92
|
-
logForDebugging(`refreshActivePlugins: loadPluginHooks failed: ${errorMessage(e)}`);
|
|
93
|
-
}
|
|
94
|
-
const hook_count = enabled.reduce((sum, p) => {
|
|
95
|
-
if (!p.hooksConfig)
|
|
96
|
-
return sum;
|
|
97
|
-
return sum + Object.values(p.hooksConfig).reduce((s, matchers) => s + (matchers?.reduce((h, m) => h + m.hooks.length, 0) ?? 0), 0);
|
|
98
|
-
}, 0);
|
|
99
|
-
logForDebugging(`refreshActivePlugins: ${enabled.length} enabled, ${pluginCommands.length} commands, ${agentDefinitions.allAgents.length} agents, ${hook_count} hooks, ${mcp_count} MCP, ${lsp_count} LSP`);
|
|
100
|
-
return {
|
|
101
|
-
enabled_count: enabled.length,
|
|
102
|
-
disabled_count: disabled.length,
|
|
103
|
-
command_count: pluginCommands.length,
|
|
104
|
-
agent_count: agentDefinitions.allAgents.length,
|
|
105
|
-
hook_count,
|
|
106
|
-
mcp_count,
|
|
107
|
-
lsp_count,
|
|
108
|
-
error_count: errors.length + (hook_load_failed ? 1 : 0),
|
|
109
|
-
agentDefinitions,
|
|
110
|
-
pluginCommands
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
function mergePluginErrors(existing, fresh) {
|
|
114
|
-
const preserved = existing.filter((e) => e.source === "lsp-manager" || e.source.startsWith("plugin:"));
|
|
115
|
-
const freshKeys = new Set(fresh.map(errorKey));
|
|
116
|
-
const deduped = preserved.filter((e) => !freshKeys.has(errorKey(e)));
|
|
117
|
-
return [...deduped, ...fresh];
|
|
118
|
-
}
|
|
119
|
-
function errorKey(e) {
|
|
120
|
-
return e.type === "generic-error" ? `generic-error:${e.source}:${e.error}` : `${e.type}:${e.source}`;
|
|
121
|
-
}
|
|
122
|
-
var init_refresh = __esm(() => {
|
|
123
|
-
init_state();
|
|
124
|
-
init_manager();
|
|
125
|
-
init_loadAgentsDir();
|
|
126
|
-
init_debug();
|
|
127
|
-
init_errors();
|
|
128
|
-
init_log();
|
|
129
|
-
init_cacheUtils();
|
|
130
|
-
init_loadPluginCommands();
|
|
131
|
-
init_loadPluginHooks();
|
|
132
|
-
init_lspPluginIntegration();
|
|
133
|
-
init_mcpPluginIntegration();
|
|
134
|
-
init_orphanedPluginFilter();
|
|
135
|
-
init_pluginLoader();
|
|
136
|
-
});
|
|
137
|
-
|
|
138
|
-
export { refreshActivePlugins, init_refresh };
|
package/dist/chunk-n84tqtvv.js
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
getGlobalConfig,
|
|
4
|
-
init_config,
|
|
5
|
-
init_file,
|
|
6
|
-
pathExists,
|
|
7
|
-
saveGlobalConfig
|
|
8
|
-
} from "./chunk-2b0e32an.js";
|
|
9
|
-
import {
|
|
10
|
-
detectCurrentRepository,
|
|
11
|
-
init_detectRepository,
|
|
12
|
-
parseGitHubRepository
|
|
13
|
-
} from "./chunk-byfawrfx.js";
|
|
14
|
-
import {
|
|
15
|
-
findGitRoot,
|
|
16
|
-
getRemoteUrlForDir,
|
|
17
|
-
init_git,
|
|
18
|
-
init_gitFilesystem
|
|
19
|
-
} from "./chunk-3vy1jt9p.js";
|
|
20
|
-
import {
|
|
21
|
-
init_debug,
|
|
22
|
-
logForDebugging
|
|
23
|
-
} from "./chunk-gg55fns0.js";
|
|
24
|
-
import {
|
|
25
|
-
getOriginalCwd,
|
|
26
|
-
init_state
|
|
27
|
-
} from "./chunk-k8vp0atq.js";
|
|
28
|
-
|
|
29
|
-
// src/utils/githubRepoPathMapping.ts
|
|
30
|
-
init_state();
|
|
31
|
-
init_config();
|
|
32
|
-
init_debug();
|
|
33
|
-
init_detectRepository();
|
|
34
|
-
init_file();
|
|
35
|
-
init_gitFilesystem();
|
|
36
|
-
init_git();
|
|
37
|
-
import { realpath } from "fs/promises";
|
|
38
|
-
async function updateGithubRepoPathMapping() {
|
|
39
|
-
try {
|
|
40
|
-
const repo = await detectCurrentRepository();
|
|
41
|
-
if (!repo) {
|
|
42
|
-
logForDebugging("Not in a GitHub repository, skipping path mapping update");
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
const cwd = getOriginalCwd();
|
|
46
|
-
const gitRoot = findGitRoot(cwd);
|
|
47
|
-
const basePath = gitRoot ?? cwd;
|
|
48
|
-
let currentPath;
|
|
49
|
-
try {
|
|
50
|
-
currentPath = (await realpath(basePath)).normalize("NFC");
|
|
51
|
-
} catch {
|
|
52
|
-
currentPath = basePath;
|
|
53
|
-
}
|
|
54
|
-
const repoKey = repo.toLowerCase();
|
|
55
|
-
const config = getGlobalConfig();
|
|
56
|
-
const existingPaths = config.githubRepoPaths?.[repoKey] ?? [];
|
|
57
|
-
if (existingPaths[0] === currentPath) {
|
|
58
|
-
logForDebugging(`Path ${currentPath} already tracked for repo ${repoKey}`);
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
const withoutCurrent = existingPaths.filter((p) => p !== currentPath);
|
|
62
|
-
const updatedPaths = [currentPath, ...withoutCurrent];
|
|
63
|
-
saveGlobalConfig((current) => ({
|
|
64
|
-
...current,
|
|
65
|
-
githubRepoPaths: {
|
|
66
|
-
...current.githubRepoPaths,
|
|
67
|
-
[repoKey]: updatedPaths
|
|
68
|
-
}
|
|
69
|
-
}));
|
|
70
|
-
logForDebugging(`Added ${currentPath} to tracked paths for repo ${repoKey}`);
|
|
71
|
-
} catch (error) {
|
|
72
|
-
logForDebugging(`Error updating repo path mapping: ${error}`);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
function getKnownPathsForRepo(repo) {
|
|
76
|
-
const config = getGlobalConfig();
|
|
77
|
-
const repoKey = repo.toLowerCase();
|
|
78
|
-
return config.githubRepoPaths?.[repoKey] ?? [];
|
|
79
|
-
}
|
|
80
|
-
async function filterExistingPaths(paths) {
|
|
81
|
-
const results = await Promise.all(paths.map(pathExists));
|
|
82
|
-
return paths.filter((_, i) => results[i]);
|
|
83
|
-
}
|
|
84
|
-
async function validateRepoAtPath(path, expectedRepo) {
|
|
85
|
-
try {
|
|
86
|
-
const remoteUrl = await getRemoteUrlForDir(path);
|
|
87
|
-
if (!remoteUrl) {
|
|
88
|
-
return false;
|
|
89
|
-
}
|
|
90
|
-
const actualRepo = parseGitHubRepository(remoteUrl);
|
|
91
|
-
if (!actualRepo) {
|
|
92
|
-
return false;
|
|
93
|
-
}
|
|
94
|
-
return actualRepo.toLowerCase() === expectedRepo.toLowerCase();
|
|
95
|
-
} catch {
|
|
96
|
-
return false;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
function removePathFromRepo(repo, pathToRemove) {
|
|
100
|
-
const config = getGlobalConfig();
|
|
101
|
-
const repoKey = repo.toLowerCase();
|
|
102
|
-
const existingPaths = config.githubRepoPaths?.[repoKey] ?? [];
|
|
103
|
-
const updatedPaths = existingPaths.filter((path) => path !== pathToRemove);
|
|
104
|
-
if (updatedPaths.length === existingPaths.length) {
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
const updatedMapping = { ...config.githubRepoPaths };
|
|
108
|
-
if (updatedPaths.length === 0) {
|
|
109
|
-
delete updatedMapping[repoKey];
|
|
110
|
-
} else {
|
|
111
|
-
updatedMapping[repoKey] = updatedPaths;
|
|
112
|
-
}
|
|
113
|
-
saveGlobalConfig((current) => ({
|
|
114
|
-
...current,
|
|
115
|
-
githubRepoPaths: updatedMapping
|
|
116
|
-
}));
|
|
117
|
-
logForDebugging(`Removed ${pathToRemove} from tracked paths for repo ${repoKey}`);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export { updateGithubRepoPathMapping, getKnownPathsForRepo, filterExistingPaths, validateRepoAtPath, removePathFromRepo };
|