jialing-code 1.1.0
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/README.md +97 -0
- package/dist/chunk-065m026w.js +97 -0
- package/dist/chunk-06saje2v.js +39 -0
- package/dist/chunk-0731m51q.js +8 -0
- package/dist/chunk-0975ccyw.js +265 -0
- package/dist/chunk-09n3fjx5.js +67 -0
- package/dist/chunk-0bdjdzew.js +41 -0
- package/dist/chunk-0ce6kd7y.js +212 -0
- package/dist/chunk-0e1xsncc.js +969 -0
- package/dist/chunk-0m2861gw.js +154 -0
- package/dist/chunk-0paqc2yw.js +15 -0
- package/dist/chunk-0rg6yrhy.js +99 -0
- package/dist/chunk-0sakxrcf.js +643 -0
- package/dist/chunk-0v9hwxvz.js +105 -0
- package/dist/chunk-0vkfrmqm.js +690 -0
- package/dist/chunk-0vvfnhhv.js +248 -0
- package/dist/chunk-0w4rsycj.js +145 -0
- package/dist/chunk-0x9b2nmd.js +63 -0
- package/dist/chunk-0xjaqda8.js +1124 -0
- package/dist/chunk-1141xmr4.js +8 -0
- package/dist/chunk-13d1842d.js +154 -0
- package/dist/chunk-1921a6yb.js +32 -0
- package/dist/chunk-1ad8mk9g.js +527 -0
- package/dist/chunk-1ax41pws.js +28 -0
- package/dist/chunk-1c8z1b5v.js +16 -0
- package/dist/chunk-1cbn5kxf.js +7 -0
- package/dist/chunk-1eapde8a.js +726 -0
- package/dist/chunk-1h2famwb.js +49 -0
- package/dist/chunk-1jggnf7z.js +85 -0
- package/dist/chunk-1k92pn9c.js +32 -0
- package/dist/chunk-1qakq4sn.js +802 -0
- package/dist/chunk-1rvz0433.js +722 -0
- package/dist/chunk-1xkekb9y.js +19 -0
- package/dist/chunk-238g70xa.js +36 -0
- package/dist/chunk-24ge0eqa.js +106 -0
- package/dist/chunk-278vghwm.js +5395 -0
- package/dist/chunk-27xc1csx.js +104 -0
- package/dist/chunk-2a42s11t.js +412 -0
- package/dist/chunk-2aa02aw6.js +438 -0
- package/dist/chunk-2eykm0j0.js +20 -0
- package/dist/chunk-2gzv8nrw.js +205 -0
- package/dist/chunk-2k995y2x.js +880 -0
- package/dist/chunk-2nayx6q1.js +63 -0
- package/dist/chunk-2sd2w2h4.js +44 -0
- package/dist/chunk-2tw2ve8h.js +145 -0
- package/dist/chunk-30rst83v.js +168 -0
- package/dist/chunk-3aavh06g.js +1581 -0
- package/dist/chunk-3b0yvt2h.js +469 -0
- package/dist/chunk-3be7ka25.js +56 -0
- package/dist/chunk-3c25bcsw.js +17 -0
- package/dist/chunk-3dyxka97.js +584 -0
- package/dist/chunk-3f7rypmf.js +16544 -0
- package/dist/chunk-3fsd7f51.js +93 -0
- package/dist/chunk-3gqdqmzb.js +75 -0
- package/dist/chunk-3h8a89gy.js +46 -0
- package/dist/chunk-3m84sret.js +71 -0
- package/dist/chunk-3nb7j3js.js +96 -0
- package/dist/chunk-3p08nvn2.js +98 -0
- package/dist/chunk-3r09htpc.js +318 -0
- package/dist/chunk-3r24h7t6.js +113 -0
- package/dist/chunk-3rkfxjtq.js +80 -0
- package/dist/chunk-3tmk7dc2.js +604 -0
- package/dist/chunk-3w6s9m5w.js +16 -0
- package/dist/chunk-43qjymy5.js +92 -0
- package/dist/chunk-44fpr6jq.js +434 -0
- package/dist/chunk-45kxdsp8.js +444 -0
- package/dist/chunk-495d85x1.js +8066 -0
- package/dist/chunk-4ba796se.js +1095 -0
- package/dist/chunk-4g3v8y12.js +23 -0
- package/dist/chunk-4h53xj8n.js +3445 -0
- package/dist/chunk-4jm600zv.js +13 -0
- package/dist/chunk-4jy9dtwk.js +116 -0
- package/dist/chunk-4p60dd45.js +55 -0
- package/dist/chunk-4z0jsrqg.js +81 -0
- package/dist/chunk-4zfkzkt6.js +37 -0
- package/dist/chunk-55wgxwa9.js +13877 -0
- package/dist/chunk-5dbk24zg.js +890 -0
- package/dist/chunk-5hzvp4va.js +115 -0
- package/dist/chunk-5kbt1mbt.js +500 -0
- package/dist/chunk-5pen7vr8.js +176 -0
- package/dist/chunk-5r280eng.js +198 -0
- package/dist/chunk-5srym52s.js +88 -0
- package/dist/chunk-600kg7k6.js +41 -0
- package/dist/chunk-616w0qj3.js +160 -0
- package/dist/chunk-62jw1t8c.js +94 -0
- package/dist/chunk-62xmt9mk.js +372 -0
- package/dist/chunk-64bvg7c3.js +229 -0
- package/dist/chunk-65yhe4s0.js +281 -0
- package/dist/chunk-6aewh27m.js +102 -0
- package/dist/chunk-6bd8brc4.js +48 -0
- package/dist/chunk-6dj5t602.js +341 -0
- package/dist/chunk-6exxdk1p.js +6956 -0
- package/dist/chunk-6f5j8fs0.js +752 -0
- package/dist/chunk-6g62sjpf.js +328 -0
- package/dist/chunk-6gecq2ta.js +1493 -0
- package/dist/chunk-6gr3c3w9.js +378 -0
- package/dist/chunk-6kpbgc5w.js +23 -0
- package/dist/chunk-6kseqw79.js +154 -0
- package/dist/chunk-6mxm1qd0.js +40764 -0
- package/dist/chunk-6n2qgm9v.js +8 -0
- package/dist/chunk-6tq2v3rk.js +186 -0
- package/dist/chunk-6wsdhj3v.js +93 -0
- package/dist/chunk-6zw9fhgb.js +4389 -0
- package/dist/chunk-71grc1mw.js +111 -0
- package/dist/chunk-73rpbt04.js +1947 -0
- package/dist/chunk-748feghg.js +604 -0
- package/dist/chunk-75e8gtg9.js +84 -0
- package/dist/chunk-75th4717.js +780 -0
- package/dist/chunk-760252na.js +101 -0
- package/dist/chunk-7739pg2c.js +4261 -0
- package/dist/chunk-778fnx46.js +472 -0
- package/dist/chunk-77g09znh.js +391 -0
- package/dist/chunk-7aw745vx.js +40175 -0
- package/dist/chunk-7m2nd8da.js +110 -0
- package/dist/chunk-7n35vjtw.js +444 -0
- package/dist/chunk-7n5ss4sh.js +144 -0
- package/dist/chunk-7rjnxcfe.js +107 -0
- package/dist/chunk-7sb5axvf.js +122 -0
- package/dist/chunk-7wm5s02e.js +216 -0
- package/dist/chunk-7ymfj7m3.js +151 -0
- package/dist/chunk-7z8j9qfn.js +121 -0
- package/dist/chunk-7zsapntc.js +216 -0
- package/dist/chunk-805fhkfh.js +908 -0
- package/dist/chunk-80k1nj24.js +253 -0
- package/dist/chunk-83hfzbx3.js +10 -0
- package/dist/chunk-85cypsdd.js +92 -0
- package/dist/chunk-8760caxf.js +2644 -0
- package/dist/chunk-88f6egg6.js +387 -0
- package/dist/chunk-88r7kwgj.js +22 -0
- package/dist/chunk-89e1v45e.js +463 -0
- package/dist/chunk-8bedvdm1.js +32 -0
- package/dist/chunk-8c4x4vdz.js +177 -0
- package/dist/chunk-8hq5kk3y.js +44 -0
- package/dist/chunk-8ngxagxq.js +18 -0
- package/dist/chunk-8tnsngw2.js +31 -0
- package/dist/chunk-8wjnca8h.js +307 -0
- package/dist/chunk-8y12jxg8.js +10 -0
- package/dist/chunk-8ymf4e6z.js +48 -0
- package/dist/chunk-90wp6wez.js +10510 -0
- package/dist/chunk-92bp5bnf.js +650 -0
- package/dist/chunk-92q8sx5z.js +90 -0
- package/dist/chunk-958rtmtx.js +10476 -0
- package/dist/chunk-9e2kqv5g.js +125 -0
- package/dist/chunk-9f4f1hy5.js +281 -0
- package/dist/chunk-9gbamk79.js +93 -0
- package/dist/chunk-9k5s3ryh.js +167 -0
- package/dist/chunk-9xzfqm15.js +97 -0
- package/dist/chunk-9zgdvbm6.js +110 -0
- package/dist/chunk-a0p3q8jw.js +24 -0
- package/dist/chunk-a22sayzp.js +220 -0
- package/dist/chunk-a8ejc632.js +3094 -0
- package/dist/chunk-a8gj9d9z.js +120 -0
- package/dist/chunk-a9vdeb6y.js +258 -0
- package/dist/chunk-a9yev47v.js +674 -0
- package/dist/chunk-a9zh40sj.js +48 -0
- package/dist/chunk-ack5mfba.js +105 -0
- package/dist/chunk-ae76ded0.js +30 -0
- package/dist/chunk-akjw4dh6.js +538 -0
- package/dist/chunk-asc6wz4q.js +1188 -0
- package/dist/chunk-atqejh3p.js +273 -0
- package/dist/chunk-atv2e6b7.js +61 -0
- package/dist/chunk-axvvkwz8.js +1551 -0
- package/dist/chunk-azgz7kj9.js +38 -0
- package/dist/chunk-b3zave8q.js +275 -0
- package/dist/chunk-b4wg70y1.js +54 -0
- package/dist/chunk-b8b13qn2.js +100 -0
- package/dist/chunk-bg3mt9bm.js +28 -0
- package/dist/chunk-bh4jvcjn.js +91 -0
- package/dist/chunk-bhdt6k7w.js +15 -0
- package/dist/chunk-bm1qb16p.js +17 -0
- package/dist/chunk-bpvsd1j1.js +266 -0
- package/dist/chunk-bqfnp99q.js +477 -0
- package/dist/chunk-bsbmmfyt.js +17 -0
- package/dist/chunk-bsbt34jm.js +42 -0
- package/dist/chunk-c78akdhr.js +458 -0
- package/dist/chunk-cdz5yb0r.js +57 -0
- package/dist/chunk-cfv996bs.js +22 -0
- package/dist/chunk-cgfdkzhb.js +12 -0
- package/dist/chunk-ckh4r5er.js +257 -0
- package/dist/chunk-cmgjnvn9.js +89 -0
- package/dist/chunk-cpjgvay8.js +687 -0
- package/dist/chunk-crfryjx9.js +276 -0
- package/dist/chunk-ctw5jwcd.js +213 -0
- package/dist/chunk-cvy3vntc.js +65 -0
- package/dist/chunk-cwbzz504.js +94 -0
- package/dist/chunk-cy2hswr1.js +15 -0
- package/dist/chunk-cyejkay3.js +222 -0
- package/dist/chunk-d18z9pna.js +106 -0
- package/dist/chunk-d5cq0n0v.js +162 -0
- package/dist/chunk-db45aryp.js +50 -0
- package/dist/chunk-de8nqh0z.js +790 -0
- package/dist/chunk-dfw6h350.js +2336 -0
- package/dist/chunk-dgqrcy74.js +48 -0
- package/dist/chunk-dn75ptgd.js +184 -0
- package/dist/chunk-dnh7jtpb.js +37 -0
- package/dist/chunk-dpshyv9m.js +90 -0
- package/dist/chunk-dt8cdvnm.js +642 -0
- package/dist/chunk-dtxby6fr.js +306 -0
- package/dist/chunk-dv1wfr85.js +6373 -0
- package/dist/chunk-dw363edx.js +1154 -0
- package/dist/chunk-dwrdacck.js +62 -0
- package/dist/chunk-dxnnv5e3.js +276 -0
- package/dist/chunk-e3g8q4cn.js +1646 -0
- package/dist/chunk-e3m9k9s2.js +542 -0
- package/dist/chunk-e4q49asn.js +155 -0
- package/dist/chunk-e5pntxye.js +37 -0
- package/dist/chunk-e7393td6.js +42 -0
- package/dist/chunk-ead42yrh.js +87 -0
- package/dist/chunk-eb90vwvr.js +152 -0
- package/dist/chunk-ecvwk9hg.js +250 -0
- package/dist/chunk-edjd6aay.js +173 -0
- package/dist/chunk-eg0h8mtm.js +130 -0
- package/dist/chunk-ehtwnxpg.js +1591 -0
- package/dist/chunk-ek686gx1.js +94 -0
- package/dist/chunk-eqp1rfft.js +17 -0
- package/dist/chunk-evhwt0ar.js +1015 -0
- package/dist/chunk-ewadzrm8.js +103 -0
- package/dist/chunk-ewsgsw9h.js +172291 -0
- package/dist/chunk-f0pa0r7e.js +3198 -0
- package/dist/chunk-f2mhrmww.js +62 -0
- package/dist/chunk-f39zxvwn.js +401 -0
- package/dist/chunk-f46z54tq.js +374 -0
- package/dist/chunk-f5ma3nh5.js +3436 -0
- package/dist/chunk-f60q23az.js +3038 -0
- package/dist/chunk-f6v2nz57.js +107 -0
- package/dist/chunk-f6yjan38.js +38 -0
- package/dist/chunk-fbv4apne.js +51 -0
- package/dist/chunk-fem4s778.js +70 -0
- package/dist/chunk-fezm1kn8.js +376 -0
- package/dist/chunk-fm1n3ysp.js +6108 -0
- package/dist/chunk-frg83bfw.js +225 -0
- package/dist/chunk-fscm8db0.js +692 -0
- package/dist/chunk-fyc5fepv.js +10 -0
- package/dist/chunk-g0j0t6qk.js +26 -0
- package/dist/chunk-g0nc1ftf.js +849 -0
- package/dist/chunk-g338npwr.js +1061 -0
- package/dist/chunk-g3t0act8.js +8 -0
- package/dist/chunk-g75w4hw3.js +26 -0
- package/dist/chunk-g8vp82en.js +1866 -0
- package/dist/chunk-gax0fcbx.js +182 -0
- package/dist/chunk-gsz4dh3y.js +606 -0
- package/dist/chunk-gtfffm7h.js +440 -0
- package/dist/chunk-gver9zb9.js +420 -0
- package/dist/chunk-gyj242zr.js +20 -0
- package/dist/chunk-h0qngp9w.js +157 -0
- package/dist/chunk-h14kemnk.js +123 -0
- package/dist/chunk-h8wj1a74.js +8960 -0
- package/dist/chunk-h9mcb2eg.js +87 -0
- package/dist/chunk-h9nh2980.js +91 -0
- package/dist/chunk-hakdhagh.js +16606 -0
- package/dist/chunk-hbc6ymdv.js +55 -0
- package/dist/chunk-hh7cmy4k.js +20 -0
- package/dist/chunk-hjhc4cpt.js +69 -0
- package/dist/chunk-hjwez8qc.js +5018 -0
- package/dist/chunk-hk9xz7gk.js +118 -0
- package/dist/chunk-hqmz36b3.js +552 -0
- package/dist/chunk-hrzerbfw.js +1299 -0
- package/dist/chunk-hs8ph4p8.js +8 -0
- package/dist/chunk-ht1xwrnd.js +716 -0
- package/dist/chunk-hvmfg2dc.js +338 -0
- package/dist/chunk-hx2tr4ep.js +7189 -0
- package/dist/chunk-hzhe8ygc.js +547 -0
- package/dist/chunk-j2k4p94p.js +55 -0
- package/dist/chunk-j3a4p81y.js +184 -0
- package/dist/chunk-j49g6g3s.js +57 -0
- package/dist/chunk-j5d5hp9h.js +71 -0
- package/dist/chunk-j64ga6ta.js +8035 -0
- package/dist/chunk-j7tyxan1.js +116 -0
- package/dist/chunk-j8v4774z.js +424 -0
- package/dist/chunk-jafes477.js +29 -0
- package/dist/chunk-jd32zbps.js +15 -0
- package/dist/chunk-jdgeec04.js +4249 -0
- package/dist/chunk-jftd4jq5.js +4521 -0
- package/dist/chunk-jkxqhv6y.js +812 -0
- package/dist/chunk-jmfr6h0n.js +120 -0
- package/dist/chunk-jn4aabmx.js +40 -0
- package/dist/chunk-jnhkref0.js +30 -0
- package/dist/chunk-jsbpm1gz.js +27 -0
- package/dist/chunk-jtcyjc3k.js +5802 -0
- package/dist/chunk-jx817w05.js +11 -0
- package/dist/chunk-jzmz18nn.js +65 -0
- package/dist/chunk-k0p9w03v.js +4957 -0
- package/dist/chunk-k3dcdnck.js +89 -0
- package/dist/chunk-k3wadzcd.js +88 -0
- package/dist/chunk-kaeshsk1.js +713 -0
- package/dist/chunk-kbkey9ed.js +522 -0
- package/dist/chunk-kcwfhqbb.js +196 -0
- package/dist/chunk-key6jr7p.js +224 -0
- package/dist/chunk-knay8cy9.js +173 -0
- package/dist/chunk-kr3rg2y1.js +95 -0
- package/dist/chunk-kwekc97v.js +18 -0
- package/dist/chunk-m06q12hg.js +61 -0
- package/dist/chunk-m2mcpbhk.js +43 -0
- package/dist/chunk-m8v220gz.js +71 -0
- package/dist/chunk-mgpqy78h.js +208 -0
- package/dist/chunk-mkejwh4t.js +16 -0
- package/dist/chunk-mptyw5n1.js +107 -0
- package/dist/chunk-mqajm0dp.js +66 -0
- package/dist/chunk-mrksbgxj.js +490 -0
- package/dist/chunk-msjfc5ba.js +246 -0
- package/dist/chunk-mt25echc.js +6157 -0
- package/dist/chunk-mt3jfnr8.js +277 -0
- package/dist/chunk-mtn242d4.js +9300 -0
- package/dist/chunk-mzfkvave.js +169 -0
- package/dist/chunk-n0qaeaa5.js +256 -0
- package/dist/chunk-n1erf6kh.js +22820 -0
- package/dist/chunk-n2avk1r2.js +61 -0
- package/dist/chunk-n6atnpcq.js +765 -0
- package/dist/chunk-n7ttdtk0.js +641 -0
- package/dist/chunk-ncnfzby5.js +822 -0
- package/dist/chunk-ncnr1jtf.js +2058 -0
- package/dist/chunk-nerv0jvx.js +74 -0
- package/dist/chunk-ngd2abep.js +90 -0
- package/dist/chunk-nka1g8f4.js +773 -0
- package/dist/chunk-nnaxkc2z.js +128 -0
- package/dist/chunk-npyrtj8j.js +691 -0
- package/dist/chunk-nq0fxyxh.js +752 -0
- package/dist/chunk-nrmffak7.js +114 -0
- package/dist/chunk-nsz546wq.js +1170 -0
- package/dist/chunk-nt837qt9.js +21 -0
- package/dist/chunk-nv64x1z5.js +86 -0
- package/dist/chunk-nxsh6de2.js +1711 -0
- package/dist/chunk-nz4getcr.js +40 -0
- package/dist/chunk-p1f607pa.js +83 -0
- package/dist/chunk-p2816w9z.js +1486 -0
- package/dist/chunk-p2d5nh3g.js +342 -0
- package/dist/chunk-p4r5y02t.js +90 -0
- package/dist/chunk-p7g7pf3f.js +336 -0
- package/dist/chunk-pb4ad8r2.js +110 -0
- package/dist/chunk-pbrhz0zr.js +716 -0
- package/dist/chunk-ps49ymvj.js +43 -0
- package/dist/chunk-pwnt3veb.js +103 -0
- package/dist/chunk-pwwa7s62.js +11 -0
- package/dist/chunk-px3w0kde.js +299 -0
- package/dist/chunk-pzn777jb.js +756 -0
- package/dist/chunk-q25bjaev.js +15 -0
- package/dist/chunk-q5by3da6.js +8 -0
- package/dist/chunk-q6av622g.js +38 -0
- package/dist/chunk-q6xkvtf2.js +1318 -0
- package/dist/chunk-q81jx1tq.js +476 -0
- package/dist/chunk-qehb6fk5.js +339 -0
- package/dist/chunk-qj1avx1q.js +87 -0
- package/dist/chunk-qn2dxr66.js +105 -0
- package/dist/chunk-qnfx3qtx.js +617 -0
- package/dist/chunk-qp18kd4h.js +48 -0
- package/dist/chunk-qp2qdcda.js +100 -0
- package/dist/chunk-qpjy9tcf.js +133 -0
- package/dist/chunk-qqfa0dqg.js +2343 -0
- package/dist/chunk-qwh3htcz.js +202 -0
- package/dist/chunk-qz2x630m.js +49145 -0
- package/dist/chunk-r3vakcs1.js +496 -0
- package/dist/chunk-r66hz8j6.js +34 -0
- package/dist/chunk-r6b58y3x.js +17 -0
- package/dist/chunk-rekp48rk.js +62 -0
- package/dist/chunk-rn0v1hk8.js +34 -0
- package/dist/chunk-rs1xrs6m.js +534 -0
- package/dist/chunk-rs45skes.js +123 -0
- package/dist/chunk-rzszqp82.js +524 -0
- package/dist/chunk-s274nv8k.js +8 -0
- package/dist/chunk-s3pzvdss.js +50 -0
- package/dist/chunk-s9mesaw0.js +26840 -0
- package/dist/chunk-sd36yzx8.js +954 -0
- package/dist/chunk-sdj9b9wh.js +782 -0
- package/dist/chunk-sdw2q69p.js +227 -0
- package/dist/chunk-sfgp9cc0.js +130 -0
- package/dist/chunk-spqaamnc.js +63 -0
- package/dist/chunk-spzrs4df.js +73 -0
- package/dist/chunk-sxkr7k43.js +55 -0
- package/dist/chunk-szj5wvdy.js +28 -0
- package/dist/chunk-t0rgmccj.js +39 -0
- package/dist/chunk-t1nnzjgg.js +17 -0
- package/dist/chunk-t94fcnt8.js +566 -0
- package/dist/chunk-tjaqa99q.js +125 -0
- package/dist/chunk-tjq2evtw.js +328 -0
- package/dist/chunk-ts2p6bv1.js +224 -0
- package/dist/chunk-ttk5dzz8.js +25 -0
- package/dist/chunk-tw0q7ynt.js +59 -0
- package/dist/chunk-v02jkvgy.js +131 -0
- package/dist/chunk-v084bqt3.js +1529 -0
- package/dist/chunk-v0amythm.js +164 -0
- package/dist/chunk-v1kzp02e.js +785 -0
- package/dist/chunk-v1mgv1et.js +15 -0
- package/dist/chunk-v399mzxk.js +58 -0
- package/dist/chunk-v3gm2day.js +8 -0
- package/dist/chunk-v43hrrxp.js +71 -0
- package/dist/chunk-v6aqb2aj.js +102 -0
- package/dist/chunk-v78fj8by.js +145 -0
- package/dist/chunk-v7qmhjdn.js +1921 -0
- package/dist/chunk-v9smspw2.js +4301 -0
- package/dist/chunk-vdw93s4h.js +2431 -0
- package/dist/chunk-vest0y6x.js +3830 -0
- package/dist/chunk-vf5sd1nq.js +12 -0
- package/dist/chunk-vratq94g.js +349 -0
- package/dist/chunk-vrz7t3m3.js +20 -0
- package/dist/chunk-vtb185z9.js +70 -0
- package/dist/chunk-vx01rvg8.js +654 -0
- package/dist/chunk-vyc0rjyx.js +31 -0
- package/dist/chunk-vyjeh50y.js +2149 -0
- package/dist/chunk-vzpffsza.js +269 -0
- package/dist/chunk-w2ef3kxk.js +3353 -0
- package/dist/chunk-w2z5pqd3.js +336 -0
- package/dist/chunk-w3whm4mn.js +432 -0
- package/dist/chunk-w7wgpqcp.js +157 -0
- package/dist/chunk-waa00cvb.js +301 -0
- package/dist/chunk-wb0qm4es.js +155 -0
- package/dist/chunk-wbkahkdc.js +27 -0
- package/dist/chunk-wfz0qffj.js +3939 -0
- package/dist/chunk-wn0cx0pt.js +283 -0
- package/dist/chunk-wv6gzt9c.js +726 -0
- package/dist/chunk-wx42ycm4.js +998 -0
- package/dist/chunk-wxkpgy05.js +268 -0
- package/dist/chunk-wzpdet3m.js +843 -0
- package/dist/chunk-x0mwzt38.js +714 -0
- package/dist/chunk-x592wbfh.js +244 -0
- package/dist/chunk-x5pqsp9r.js +100 -0
- package/dist/chunk-x679thag.js +825 -0
- package/dist/chunk-x8b7vft8.js +132 -0
- package/dist/chunk-x8cftch7.js +119 -0
- package/dist/chunk-x9q7r885.js +348 -0
- package/dist/chunk-xawkt0vb.js +1585 -0
- package/dist/chunk-xdw5dv00.js +8 -0
- package/dist/chunk-xe9cc860.js +287 -0
- package/dist/chunk-xjr9c3vt.js +101 -0
- package/dist/chunk-xk7zaqta.js +21933 -0
- package/dist/chunk-xktbmawc.js +678 -0
- package/dist/chunk-xn6yw46v.js +140 -0
- package/dist/chunk-xsq9ae7x.js +90 -0
- package/dist/chunk-xszk7n10.js +14358 -0
- package/dist/chunk-xt8a5r1t.js +84 -0
- package/dist/chunk-xydyndkv.js +195 -0
- package/dist/chunk-xzt10yc5.js +60 -0
- package/dist/chunk-y04y95dr.js +91 -0
- package/dist/chunk-y1784krc.js +19 -0
- package/dist/chunk-y1x32h3x.js +128 -0
- package/dist/chunk-y3s7aww5.js +99 -0
- package/dist/chunk-y47cg3kz.js +42 -0
- package/dist/chunk-y7kzvepn.js +469 -0
- package/dist/chunk-y89kbsyc.js +287 -0
- package/dist/chunk-yd87p1c3.js +159 -0
- package/dist/chunk-yf3yw8fw.js +105 -0
- package/dist/chunk-ygbf0ezx.js +1391 -0
- package/dist/chunk-yjbxnshv.js +208 -0
- package/dist/chunk-ynednmqd.js +192 -0
- package/dist/chunk-yvhez44y.js +259 -0
- package/dist/chunk-ywxd4qw4.js +22 -0
- package/dist/chunk-yzrmgpy4.js +117 -0
- package/dist/chunk-z0b2vb24.js +862 -0
- package/dist/chunk-z1zj044v.js +655 -0
- package/dist/chunk-z2dp53wn.js +17 -0
- package/dist/chunk-z3w0xasa.js +165 -0
- package/dist/chunk-z7ycmrb3.js +644 -0
- package/dist/chunk-zh11tdkb.js +347 -0
- package/dist/chunk-zk2wsm7d.js +15 -0
- package/dist/chunk-zqfqcf22.js +229 -0
- package/dist/chunk-zqk2j8px.js +699 -0
- package/dist/chunk-zqvsc10j.js +2833 -0
- package/dist/chunk-zsfxha74.js +17655 -0
- package/dist/chunk-zvc4snyb.js +117 -0
- package/dist/cli.js +194 -0
- package/package.json +173 -0
|
@@ -0,0 +1,1318 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
Tab,
|
|
4
|
+
Tabs,
|
|
5
|
+
init_Tabs,
|
|
6
|
+
useTabHeaderFocus
|
|
7
|
+
} from "./chunk-62xmt9mk.js";
|
|
8
|
+
import"./chunk-mzfkvave.js";
|
|
9
|
+
import {
|
|
10
|
+
SandboxManager,
|
|
11
|
+
Select,
|
|
12
|
+
addToExcludedCommands,
|
|
13
|
+
init_sandbox_adapter,
|
|
14
|
+
init_select,
|
|
15
|
+
shouldAllowManagedSandboxDomainsOnly
|
|
16
|
+
} from "./chunk-ewsgsw9h.js";
|
|
17
|
+
import"./chunk-z1zj044v.js";
|
|
18
|
+
import"./chunk-t0rgmccj.js";
|
|
19
|
+
import"./chunk-key6jr7p.js";
|
|
20
|
+
import"./chunk-0m2861gw.js";
|
|
21
|
+
import"./chunk-0x9b2nmd.js";
|
|
22
|
+
import"./chunk-89e1v45e.js";
|
|
23
|
+
import"./chunk-2gzv8nrw.js";
|
|
24
|
+
import"./chunk-ehtwnxpg.js";
|
|
25
|
+
import"./chunk-3be7ka25.js";
|
|
26
|
+
import"./chunk-x679thag.js";
|
|
27
|
+
import"./chunk-cgfdkzhb.js";
|
|
28
|
+
import"./chunk-bhdt6k7w.js";
|
|
29
|
+
import"./chunk-45kxdsp8.js";
|
|
30
|
+
import"./chunk-5dbk24zg.js";
|
|
31
|
+
import"./chunk-msjfc5ba.js";
|
|
32
|
+
import"./chunk-7zsapntc.js";
|
|
33
|
+
import"./chunk-0rg6yrhy.js";
|
|
34
|
+
import"./chunk-9gbamk79.js";
|
|
35
|
+
import"./chunk-x0mwzt38.js";
|
|
36
|
+
import"./chunk-9e2kqv5g.js";
|
|
37
|
+
import {
|
|
38
|
+
Pane,
|
|
39
|
+
init_Pane,
|
|
40
|
+
init_useKeybinding,
|
|
41
|
+
useKeybindings
|
|
42
|
+
} from "./chunk-1qakq4sn.js";
|
|
43
|
+
import {
|
|
44
|
+
Link,
|
|
45
|
+
ThemedBox_default,
|
|
46
|
+
ThemedText,
|
|
47
|
+
color,
|
|
48
|
+
init_ink,
|
|
49
|
+
require_compiler_runtime,
|
|
50
|
+
useTheme
|
|
51
|
+
} from "./chunk-s9mesaw0.js";
|
|
52
|
+
import"./chunk-7m2nd8da.js";
|
|
53
|
+
import"./chunk-ps49ymvj.js";
|
|
54
|
+
import {
|
|
55
|
+
require_jsx_dev_runtime
|
|
56
|
+
} from "./chunk-g338npwr.js";
|
|
57
|
+
import"./chunk-zk2wsm7d.js";
|
|
58
|
+
import"./chunk-tw0q7ynt.js";
|
|
59
|
+
import"./chunk-xe9cc860.js";
|
|
60
|
+
import"./chunk-m06q12hg.js";
|
|
61
|
+
import"./chunk-ygbf0ezx.js";
|
|
62
|
+
import"./chunk-spqaamnc.js";
|
|
63
|
+
import"./chunk-4jm600zv.js";
|
|
64
|
+
import"./chunk-qz2x630m.js";
|
|
65
|
+
import"./chunk-7sb5axvf.js";
|
|
66
|
+
import"./chunk-v9smspw2.js";
|
|
67
|
+
import {
|
|
68
|
+
getSettingsFilePathForSource,
|
|
69
|
+
getSettings_DEPRECATED,
|
|
70
|
+
init_settings1 as init_settings
|
|
71
|
+
} from "./chunk-3f7rypmf.js";
|
|
72
|
+
import"./chunk-e3g8q4cn.js";
|
|
73
|
+
import"./chunk-ctw5jwcd.js";
|
|
74
|
+
import"./chunk-0e1xsncc.js";
|
|
75
|
+
import"./chunk-vratq94g.js";
|
|
76
|
+
import"./chunk-g0j0t6qk.js";
|
|
77
|
+
import"./chunk-6kpbgc5w.js";
|
|
78
|
+
import"./chunk-3c25bcsw.js";
|
|
79
|
+
import {
|
|
80
|
+
getPlatform,
|
|
81
|
+
init_platform
|
|
82
|
+
} from "./chunk-tjaqa99q.js";
|
|
83
|
+
import"./chunk-55wgxwa9.js";
|
|
84
|
+
import"./chunk-w2z5pqd3.js";
|
|
85
|
+
import"./chunk-7ymfj7m3.js";
|
|
86
|
+
import"./chunk-f5ma3nh5.js";
|
|
87
|
+
import"./chunk-v1kzp02e.js";
|
|
88
|
+
import"./chunk-1eapde8a.js";
|
|
89
|
+
import"./chunk-p2816w9z.js";
|
|
90
|
+
import"./chunk-0vkfrmqm.js";
|
|
91
|
+
import"./chunk-0xjaqda8.js";
|
|
92
|
+
import"./chunk-1rvz0433.js";
|
|
93
|
+
import"./chunk-cdz5yb0r.js";
|
|
94
|
+
import"./chunk-f2mhrmww.js";
|
|
95
|
+
import"./chunk-7z8j9qfn.js";
|
|
96
|
+
import"./chunk-hrzerbfw.js";
|
|
97
|
+
import"./chunk-d18z9pna.js";
|
|
98
|
+
import"./chunk-qnfx3qtx.js";
|
|
99
|
+
import"./chunk-hjhc4cpt.js";
|
|
100
|
+
import"./chunk-vyc0rjyx.js";
|
|
101
|
+
import"./chunk-hx2tr4ep.js";
|
|
102
|
+
import"./chunk-p7g7pf3f.js";
|
|
103
|
+
import"./chunk-8tnsngw2.js";
|
|
104
|
+
import"./chunk-8bedvdm1.js";
|
|
105
|
+
import"./chunk-7wm5s02e.js";
|
|
106
|
+
import"./chunk-nxsh6de2.js";
|
|
107
|
+
import"./chunk-fbv4apne.js";
|
|
108
|
+
import"./chunk-3r24h7t6.js";
|
|
109
|
+
import {
|
|
110
|
+
getCwdState,
|
|
111
|
+
init_state
|
|
112
|
+
} from "./chunk-qqfa0dqg.js";
|
|
113
|
+
import"./chunk-hqmz36b3.js";
|
|
114
|
+
import"./chunk-4g3v8y12.js";
|
|
115
|
+
import"./chunk-7739pg2c.js";
|
|
116
|
+
import"./chunk-xszk7n10.js";
|
|
117
|
+
import"./chunk-sdj9b9wh.js";
|
|
118
|
+
import {
|
|
119
|
+
__esm,
|
|
120
|
+
__toESM
|
|
121
|
+
} from "./chunk-qp2qdcda.js";
|
|
122
|
+
|
|
123
|
+
// src/components/sandbox/SandboxConfigTab.tsx
|
|
124
|
+
function SandboxConfigTab() {
|
|
125
|
+
const $ = import_compiler_runtime.c(3);
|
|
126
|
+
const isEnabled = SandboxManager.isSandboxingEnabled();
|
|
127
|
+
let t0;
|
|
128
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
129
|
+
const depCheck = SandboxManager.checkDependencies();
|
|
130
|
+
t0 = depCheck.warnings.length > 0 ? /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
131
|
+
marginTop: 1,
|
|
132
|
+
flexDirection: "column",
|
|
133
|
+
children: depCheck.warnings.map(_temp)
|
|
134
|
+
}, undefined, false, undefined, this) : null;
|
|
135
|
+
$[0] = t0;
|
|
136
|
+
} else {
|
|
137
|
+
t0 = $[0];
|
|
138
|
+
}
|
|
139
|
+
const warningsNote = t0;
|
|
140
|
+
if (!isEnabled) {
|
|
141
|
+
let t12;
|
|
142
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
143
|
+
t12 = /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
144
|
+
flexDirection: "column",
|
|
145
|
+
paddingY: 1,
|
|
146
|
+
children: [
|
|
147
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
148
|
+
color: "subtle",
|
|
149
|
+
children: "Sandbox is not enabled"
|
|
150
|
+
}, undefined, false, undefined, this),
|
|
151
|
+
warningsNote
|
|
152
|
+
]
|
|
153
|
+
}, undefined, true, undefined, this);
|
|
154
|
+
$[1] = t12;
|
|
155
|
+
} else {
|
|
156
|
+
t12 = $[1];
|
|
157
|
+
}
|
|
158
|
+
return t12;
|
|
159
|
+
}
|
|
160
|
+
let t1;
|
|
161
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
162
|
+
const fsReadConfig = SandboxManager.getFsReadConfig();
|
|
163
|
+
const fsWriteConfig = SandboxManager.getFsWriteConfig();
|
|
164
|
+
const networkConfig = SandboxManager.getNetworkRestrictionConfig();
|
|
165
|
+
const allowUnixSockets = SandboxManager.getAllowUnixSockets();
|
|
166
|
+
const excludedCommands = SandboxManager.getExcludedCommands();
|
|
167
|
+
const globPatternWarnings = SandboxManager.getLinuxGlobPatternWarnings();
|
|
168
|
+
t1 = /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
169
|
+
flexDirection: "column",
|
|
170
|
+
paddingY: 1,
|
|
171
|
+
children: [
|
|
172
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
173
|
+
flexDirection: "column",
|
|
174
|
+
children: [
|
|
175
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
176
|
+
bold: true,
|
|
177
|
+
color: "permission",
|
|
178
|
+
children: "Excluded Commands:"
|
|
179
|
+
}, undefined, false, undefined, this),
|
|
180
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
181
|
+
dimColor: true,
|
|
182
|
+
children: excludedCommands.length > 0 ? excludedCommands.join(", ") : "None"
|
|
183
|
+
}, undefined, false, undefined, this)
|
|
184
|
+
]
|
|
185
|
+
}, undefined, true, undefined, this),
|
|
186
|
+
fsReadConfig.denyOnly.length > 0 && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
187
|
+
marginTop: 1,
|
|
188
|
+
flexDirection: "column",
|
|
189
|
+
children: [
|
|
190
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
191
|
+
bold: true,
|
|
192
|
+
color: "permission",
|
|
193
|
+
children: "Filesystem Read Restrictions:"
|
|
194
|
+
}, undefined, false, undefined, this),
|
|
195
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
196
|
+
dimColor: true,
|
|
197
|
+
children: [
|
|
198
|
+
"Denied: ",
|
|
199
|
+
fsReadConfig.denyOnly.join(", ")
|
|
200
|
+
]
|
|
201
|
+
}, undefined, true, undefined, this),
|
|
202
|
+
fsReadConfig.allowWithinDeny && fsReadConfig.allowWithinDeny.length > 0 && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
203
|
+
dimColor: true,
|
|
204
|
+
children: [
|
|
205
|
+
"Allowed within denied: ",
|
|
206
|
+
fsReadConfig.allowWithinDeny.join(", ")
|
|
207
|
+
]
|
|
208
|
+
}, undefined, true, undefined, this)
|
|
209
|
+
]
|
|
210
|
+
}, undefined, true, undefined, this),
|
|
211
|
+
fsWriteConfig.allowOnly.length > 0 && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
212
|
+
marginTop: 1,
|
|
213
|
+
flexDirection: "column",
|
|
214
|
+
children: [
|
|
215
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
216
|
+
bold: true,
|
|
217
|
+
color: "permission",
|
|
218
|
+
children: "Filesystem Write Restrictions:"
|
|
219
|
+
}, undefined, false, undefined, this),
|
|
220
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
221
|
+
dimColor: true,
|
|
222
|
+
children: [
|
|
223
|
+
"Allowed: ",
|
|
224
|
+
fsWriteConfig.allowOnly.join(", ")
|
|
225
|
+
]
|
|
226
|
+
}, undefined, true, undefined, this),
|
|
227
|
+
fsWriteConfig.denyWithinAllow.length > 0 && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
228
|
+
dimColor: true,
|
|
229
|
+
children: [
|
|
230
|
+
"Denied within allowed: ",
|
|
231
|
+
fsWriteConfig.denyWithinAllow.join(", ")
|
|
232
|
+
]
|
|
233
|
+
}, undefined, true, undefined, this)
|
|
234
|
+
]
|
|
235
|
+
}, undefined, true, undefined, this),
|
|
236
|
+
(networkConfig.allowedHosts && networkConfig.allowedHosts.length > 0 || networkConfig.deniedHosts && networkConfig.deniedHosts.length > 0) && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
237
|
+
marginTop: 1,
|
|
238
|
+
flexDirection: "column",
|
|
239
|
+
children: [
|
|
240
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
241
|
+
bold: true,
|
|
242
|
+
color: "permission",
|
|
243
|
+
children: [
|
|
244
|
+
"Network Restrictions",
|
|
245
|
+
shouldAllowManagedSandboxDomainsOnly() ? " (Managed)" : "",
|
|
246
|
+
":"
|
|
247
|
+
]
|
|
248
|
+
}, undefined, true, undefined, this),
|
|
249
|
+
networkConfig.allowedHosts && networkConfig.allowedHosts.length > 0 && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
250
|
+
dimColor: true,
|
|
251
|
+
children: [
|
|
252
|
+
"Allowed: ",
|
|
253
|
+
networkConfig.allowedHosts.join(", ")
|
|
254
|
+
]
|
|
255
|
+
}, undefined, true, undefined, this),
|
|
256
|
+
networkConfig.deniedHosts && networkConfig.deniedHosts.length > 0 && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
257
|
+
dimColor: true,
|
|
258
|
+
children: [
|
|
259
|
+
"Denied: ",
|
|
260
|
+
networkConfig.deniedHosts.join(", ")
|
|
261
|
+
]
|
|
262
|
+
}, undefined, true, undefined, this)
|
|
263
|
+
]
|
|
264
|
+
}, undefined, true, undefined, this),
|
|
265
|
+
allowUnixSockets && allowUnixSockets.length > 0 && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
266
|
+
marginTop: 1,
|
|
267
|
+
flexDirection: "column",
|
|
268
|
+
children: [
|
|
269
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
270
|
+
bold: true,
|
|
271
|
+
color: "permission",
|
|
272
|
+
children: "Allowed Unix Sockets:"
|
|
273
|
+
}, undefined, false, undefined, this),
|
|
274
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
275
|
+
dimColor: true,
|
|
276
|
+
children: allowUnixSockets.join(", ")
|
|
277
|
+
}, undefined, false, undefined, this)
|
|
278
|
+
]
|
|
279
|
+
}, undefined, true, undefined, this),
|
|
280
|
+
globPatternWarnings.length > 0 && /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedBox_default, {
|
|
281
|
+
marginTop: 1,
|
|
282
|
+
flexDirection: "column",
|
|
283
|
+
children: [
|
|
284
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
285
|
+
bold: true,
|
|
286
|
+
color: "warning",
|
|
287
|
+
children: "\u26A0 Warning: Glob patterns not fully supported on Linux"
|
|
288
|
+
}, undefined, false, undefined, this),
|
|
289
|
+
/* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
290
|
+
dimColor: true,
|
|
291
|
+
children: [
|
|
292
|
+
"The following patterns will be ignored:",
|
|
293
|
+
" ",
|
|
294
|
+
globPatternWarnings.slice(0, 3).join(", "),
|
|
295
|
+
globPatternWarnings.length > 3 && ` (${globPatternWarnings.length - 3} more)`
|
|
296
|
+
]
|
|
297
|
+
}, undefined, true, undefined, this)
|
|
298
|
+
]
|
|
299
|
+
}, undefined, true, undefined, this),
|
|
300
|
+
warningsNote
|
|
301
|
+
]
|
|
302
|
+
}, undefined, true, undefined, this);
|
|
303
|
+
$[2] = t1;
|
|
304
|
+
} else {
|
|
305
|
+
t1 = $[2];
|
|
306
|
+
}
|
|
307
|
+
return t1;
|
|
308
|
+
}
|
|
309
|
+
function _temp(w, i) {
|
|
310
|
+
return /* @__PURE__ */ jsx_dev_runtime.jsxDEV(ThemedText, {
|
|
311
|
+
dimColor: true,
|
|
312
|
+
children: w
|
|
313
|
+
}, i, false, undefined, this);
|
|
314
|
+
}
|
|
315
|
+
var import_compiler_runtime, jsx_dev_runtime;
|
|
316
|
+
var init_SandboxConfigTab = __esm(() => {
|
|
317
|
+
init_ink();
|
|
318
|
+
init_sandbox_adapter();
|
|
319
|
+
import_compiler_runtime = __toESM(require_compiler_runtime(), 1);
|
|
320
|
+
jsx_dev_runtime = __toESM(require_jsx_dev_runtime(), 1);
|
|
321
|
+
});
|
|
322
|
+
|
|
323
|
+
// src/components/sandbox/SandboxDependenciesTab.tsx
|
|
324
|
+
function SandboxDependenciesTab(t0) {
|
|
325
|
+
const $ = import_compiler_runtime2.c(24);
|
|
326
|
+
const {
|
|
327
|
+
depCheck
|
|
328
|
+
} = t0;
|
|
329
|
+
let t1;
|
|
330
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
331
|
+
t1 = getPlatform();
|
|
332
|
+
$[0] = t1;
|
|
333
|
+
} else {
|
|
334
|
+
t1 = $[0];
|
|
335
|
+
}
|
|
336
|
+
const platform = t1;
|
|
337
|
+
const isMac = platform === "macos";
|
|
338
|
+
let t2;
|
|
339
|
+
if ($[1] !== depCheck.errors) {
|
|
340
|
+
t2 = depCheck.errors.some(_temp6);
|
|
341
|
+
$[1] = depCheck.errors;
|
|
342
|
+
$[2] = t2;
|
|
343
|
+
} else {
|
|
344
|
+
t2 = $[2];
|
|
345
|
+
}
|
|
346
|
+
const rgMissing = t2;
|
|
347
|
+
let t3;
|
|
348
|
+
if ($[3] !== depCheck.errors) {
|
|
349
|
+
t3 = depCheck.errors.some(_temp2);
|
|
350
|
+
$[3] = depCheck.errors;
|
|
351
|
+
$[4] = t3;
|
|
352
|
+
} else {
|
|
353
|
+
t3 = $[4];
|
|
354
|
+
}
|
|
355
|
+
const bwrapMissing = t3;
|
|
356
|
+
let t4;
|
|
357
|
+
if ($[5] !== depCheck.errors) {
|
|
358
|
+
t4 = depCheck.errors.some(_temp3);
|
|
359
|
+
$[5] = depCheck.errors;
|
|
360
|
+
$[6] = t4;
|
|
361
|
+
} else {
|
|
362
|
+
t4 = $[6];
|
|
363
|
+
}
|
|
364
|
+
const socatMissing = t4;
|
|
365
|
+
const seccompMissing = depCheck.warnings.length > 0;
|
|
366
|
+
let t5;
|
|
367
|
+
if ($[7] !== bwrapMissing || $[8] !== depCheck.errors || $[9] !== rgMissing || $[10] !== seccompMissing || $[11] !== socatMissing) {
|
|
368
|
+
const otherErrors = depCheck.errors.filter(_temp4);
|
|
369
|
+
const rgInstallHint = isMac ? "brew install ripgrep" : "apt install ripgrep";
|
|
370
|
+
let t6;
|
|
371
|
+
if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
|
|
372
|
+
t6 = isMac && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
373
|
+
flexDirection: "column",
|
|
374
|
+
children: /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
375
|
+
children: [
|
|
376
|
+
"seatbelt: ",
|
|
377
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
378
|
+
color: "success",
|
|
379
|
+
children: "built-in (macOS)"
|
|
380
|
+
}, undefined, false, undefined, this)
|
|
381
|
+
]
|
|
382
|
+
}, undefined, true, undefined, this)
|
|
383
|
+
}, undefined, false, undefined, this);
|
|
384
|
+
$[13] = t6;
|
|
385
|
+
} else {
|
|
386
|
+
t6 = $[13];
|
|
387
|
+
}
|
|
388
|
+
let t7;
|
|
389
|
+
let t8;
|
|
390
|
+
if ($[14] !== rgMissing) {
|
|
391
|
+
t7 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
392
|
+
children: [
|
|
393
|
+
"ripgrep (rg):",
|
|
394
|
+
" ",
|
|
395
|
+
rgMissing ? /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
396
|
+
color: "error",
|
|
397
|
+
children: "not found"
|
|
398
|
+
}, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
399
|
+
color: "success",
|
|
400
|
+
children: "found"
|
|
401
|
+
}, undefined, false, undefined, this)
|
|
402
|
+
]
|
|
403
|
+
}, undefined, true, undefined, this);
|
|
404
|
+
t8 = rgMissing && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
405
|
+
dimColor: true,
|
|
406
|
+
children: [
|
|
407
|
+
" ",
|
|
408
|
+
"\xB7 ",
|
|
409
|
+
rgInstallHint
|
|
410
|
+
]
|
|
411
|
+
}, undefined, true, undefined, this);
|
|
412
|
+
$[14] = rgMissing;
|
|
413
|
+
$[15] = t7;
|
|
414
|
+
$[16] = t8;
|
|
415
|
+
} else {
|
|
416
|
+
t7 = $[15];
|
|
417
|
+
t8 = $[16];
|
|
418
|
+
}
|
|
419
|
+
let t9;
|
|
420
|
+
if ($[17] !== t7 || $[18] !== t8) {
|
|
421
|
+
t9 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
422
|
+
flexDirection: "column",
|
|
423
|
+
children: [
|
|
424
|
+
t7,
|
|
425
|
+
t8
|
|
426
|
+
]
|
|
427
|
+
}, undefined, true, undefined, this);
|
|
428
|
+
$[17] = t7;
|
|
429
|
+
$[18] = t8;
|
|
430
|
+
$[19] = t9;
|
|
431
|
+
} else {
|
|
432
|
+
t9 = $[19];
|
|
433
|
+
}
|
|
434
|
+
let t10;
|
|
435
|
+
if ($[20] !== bwrapMissing || $[21] !== seccompMissing || $[22] !== socatMissing) {
|
|
436
|
+
t10 = !isMac && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(jsx_dev_runtime2.Fragment, {
|
|
437
|
+
children: [
|
|
438
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
439
|
+
flexDirection: "column",
|
|
440
|
+
children: [
|
|
441
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
442
|
+
children: [
|
|
443
|
+
"bubblewrap (bwrap):",
|
|
444
|
+
" ",
|
|
445
|
+
bwrapMissing ? /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
446
|
+
color: "error",
|
|
447
|
+
children: "not installed"
|
|
448
|
+
}, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
449
|
+
color: "success",
|
|
450
|
+
children: "installed"
|
|
451
|
+
}, undefined, false, undefined, this)
|
|
452
|
+
]
|
|
453
|
+
}, undefined, true, undefined, this),
|
|
454
|
+
bwrapMissing && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
455
|
+
dimColor: true,
|
|
456
|
+
children: [
|
|
457
|
+
" ",
|
|
458
|
+
"\xB7 apt install bubblewrap"
|
|
459
|
+
]
|
|
460
|
+
}, undefined, true, undefined, this)
|
|
461
|
+
]
|
|
462
|
+
}, undefined, true, undefined, this),
|
|
463
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
464
|
+
flexDirection: "column",
|
|
465
|
+
children: [
|
|
466
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
467
|
+
children: [
|
|
468
|
+
"socat:",
|
|
469
|
+
" ",
|
|
470
|
+
socatMissing ? /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
471
|
+
color: "error",
|
|
472
|
+
children: "not installed"
|
|
473
|
+
}, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
474
|
+
color: "success",
|
|
475
|
+
children: "installed"
|
|
476
|
+
}, undefined, false, undefined, this)
|
|
477
|
+
]
|
|
478
|
+
}, undefined, true, undefined, this),
|
|
479
|
+
socatMissing && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
480
|
+
dimColor: true,
|
|
481
|
+
children: [
|
|
482
|
+
" ",
|
|
483
|
+
"\xB7 apt install socat"
|
|
484
|
+
]
|
|
485
|
+
}, undefined, true, undefined, this)
|
|
486
|
+
]
|
|
487
|
+
}, undefined, true, undefined, this),
|
|
488
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
489
|
+
flexDirection: "column",
|
|
490
|
+
children: [
|
|
491
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
492
|
+
children: [
|
|
493
|
+
"seccomp filter:",
|
|
494
|
+
" ",
|
|
495
|
+
seccompMissing ? /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
496
|
+
color: "warning",
|
|
497
|
+
children: "not installed"
|
|
498
|
+
}, undefined, false, undefined, this) : /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
499
|
+
color: "success",
|
|
500
|
+
children: "installed"
|
|
501
|
+
}, undefined, false, undefined, this),
|
|
502
|
+
seccompMissing && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
503
|
+
dimColor: true,
|
|
504
|
+
children: " (required to block unix domain sockets)"
|
|
505
|
+
}, undefined, false, undefined, this)
|
|
506
|
+
]
|
|
507
|
+
}, undefined, true, undefined, this),
|
|
508
|
+
seccompMissing && /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
509
|
+
flexDirection: "column",
|
|
510
|
+
children: [
|
|
511
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
512
|
+
dimColor: true,
|
|
513
|
+
children: [
|
|
514
|
+
" ",
|
|
515
|
+
"\xB7 npm install -g @anthropic-ai/sandbox-runtime"
|
|
516
|
+
]
|
|
517
|
+
}, undefined, true, undefined, this),
|
|
518
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
519
|
+
dimColor: true,
|
|
520
|
+
children: [
|
|
521
|
+
" ",
|
|
522
|
+
"\xB7 or copy vendor/seccomp/* from sandbox-runtime and set"
|
|
523
|
+
]
|
|
524
|
+
}, undefined, true, undefined, this),
|
|
525
|
+
/* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
526
|
+
dimColor: true,
|
|
527
|
+
children: [
|
|
528
|
+
" ",
|
|
529
|
+
"sandbox.seccomp.bpfPath and applyPath in settings.json"
|
|
530
|
+
]
|
|
531
|
+
}, undefined, true, undefined, this)
|
|
532
|
+
]
|
|
533
|
+
}, undefined, true, undefined, this)
|
|
534
|
+
]
|
|
535
|
+
}, undefined, true, undefined, this)
|
|
536
|
+
]
|
|
537
|
+
}, undefined, true, undefined, this);
|
|
538
|
+
$[20] = bwrapMissing;
|
|
539
|
+
$[21] = seccompMissing;
|
|
540
|
+
$[22] = socatMissing;
|
|
541
|
+
$[23] = t10;
|
|
542
|
+
} else {
|
|
543
|
+
t10 = $[23];
|
|
544
|
+
}
|
|
545
|
+
t5 = /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedBox_default, {
|
|
546
|
+
flexDirection: "column",
|
|
547
|
+
paddingY: 1,
|
|
548
|
+
gap: 1,
|
|
549
|
+
children: [
|
|
550
|
+
t6,
|
|
551
|
+
t9,
|
|
552
|
+
t10,
|
|
553
|
+
otherErrors.map(_temp5)
|
|
554
|
+
]
|
|
555
|
+
}, undefined, true, undefined, this);
|
|
556
|
+
$[7] = bwrapMissing;
|
|
557
|
+
$[8] = depCheck.errors;
|
|
558
|
+
$[9] = rgMissing;
|
|
559
|
+
$[10] = seccompMissing;
|
|
560
|
+
$[11] = socatMissing;
|
|
561
|
+
$[12] = t5;
|
|
562
|
+
} else {
|
|
563
|
+
t5 = $[12];
|
|
564
|
+
}
|
|
565
|
+
return t5;
|
|
566
|
+
}
|
|
567
|
+
function _temp5(err) {
|
|
568
|
+
return /* @__PURE__ */ jsx_dev_runtime2.jsxDEV(ThemedText, {
|
|
569
|
+
color: "error",
|
|
570
|
+
children: err
|
|
571
|
+
}, err, false, undefined, this);
|
|
572
|
+
}
|
|
573
|
+
function _temp4(e_2) {
|
|
574
|
+
return !e_2.includes("ripgrep") && !e_2.includes("bwrap") && !e_2.includes("socat");
|
|
575
|
+
}
|
|
576
|
+
function _temp3(e_1) {
|
|
577
|
+
return e_1.includes("socat");
|
|
578
|
+
}
|
|
579
|
+
function _temp2(e_0) {
|
|
580
|
+
return e_0.includes("bwrap");
|
|
581
|
+
}
|
|
582
|
+
function _temp6(e) {
|
|
583
|
+
return e.includes("ripgrep");
|
|
584
|
+
}
|
|
585
|
+
var import_compiler_runtime2, jsx_dev_runtime2;
|
|
586
|
+
var init_SandboxDependenciesTab = __esm(() => {
|
|
587
|
+
init_ink();
|
|
588
|
+
init_platform();
|
|
589
|
+
import_compiler_runtime2 = __toESM(require_compiler_runtime(), 1);
|
|
590
|
+
jsx_dev_runtime2 = __toESM(require_jsx_dev_runtime(), 1);
|
|
591
|
+
});
|
|
592
|
+
|
|
593
|
+
// src/components/sandbox/SandboxOverridesTab.tsx
|
|
594
|
+
function SandboxOverridesTab(t0) {
|
|
595
|
+
const $ = import_compiler_runtime3.c(5);
|
|
596
|
+
const {
|
|
597
|
+
onComplete
|
|
598
|
+
} = t0;
|
|
599
|
+
const isEnabled = SandboxManager.isSandboxingEnabled();
|
|
600
|
+
const isLocked = SandboxManager.areSandboxSettingsLockedByPolicy();
|
|
601
|
+
const currentAllowUnsandboxed = SandboxManager.areUnsandboxedCommandsAllowed();
|
|
602
|
+
if (!isEnabled) {
|
|
603
|
+
let t12;
|
|
604
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
605
|
+
t12 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
606
|
+
flexDirection: "column",
|
|
607
|
+
paddingY: 1,
|
|
608
|
+
children: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
609
|
+
color: "subtle",
|
|
610
|
+
children: "Sandbox is not enabled. Enable sandbox to configure override settings."
|
|
611
|
+
}, undefined, false, undefined, this)
|
|
612
|
+
}, undefined, false, undefined, this);
|
|
613
|
+
$[0] = t12;
|
|
614
|
+
} else {
|
|
615
|
+
t12 = $[0];
|
|
616
|
+
}
|
|
617
|
+
return t12;
|
|
618
|
+
}
|
|
619
|
+
if (isLocked) {
|
|
620
|
+
let t12;
|
|
621
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
622
|
+
t12 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
623
|
+
color: "subtle",
|
|
624
|
+
children: "Override settings are managed by a higher-priority configuration and cannot be changed locally."
|
|
625
|
+
}, undefined, false, undefined, this);
|
|
626
|
+
$[1] = t12;
|
|
627
|
+
} else {
|
|
628
|
+
t12 = $[1];
|
|
629
|
+
}
|
|
630
|
+
let t2;
|
|
631
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
632
|
+
t2 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
633
|
+
flexDirection: "column",
|
|
634
|
+
paddingY: 1,
|
|
635
|
+
children: [
|
|
636
|
+
t12,
|
|
637
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
638
|
+
marginTop: 1,
|
|
639
|
+
children: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
640
|
+
dimColor: true,
|
|
641
|
+
children: [
|
|
642
|
+
"Current setting:",
|
|
643
|
+
" ",
|
|
644
|
+
currentAllowUnsandboxed ? "Allow unsandboxed fallback" : "Strict sandbox mode"
|
|
645
|
+
]
|
|
646
|
+
}, undefined, true, undefined, this)
|
|
647
|
+
}, undefined, false, undefined, this)
|
|
648
|
+
]
|
|
649
|
+
}, undefined, true, undefined, this);
|
|
650
|
+
$[2] = t2;
|
|
651
|
+
} else {
|
|
652
|
+
t2 = $[2];
|
|
653
|
+
}
|
|
654
|
+
return t2;
|
|
655
|
+
}
|
|
656
|
+
let t1;
|
|
657
|
+
if ($[3] !== onComplete) {
|
|
658
|
+
t1 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(OverridesSelect, {
|
|
659
|
+
onComplete,
|
|
660
|
+
currentMode: currentAllowUnsandboxed ? "open" : "closed"
|
|
661
|
+
}, undefined, false, undefined, this);
|
|
662
|
+
$[3] = onComplete;
|
|
663
|
+
$[4] = t1;
|
|
664
|
+
} else {
|
|
665
|
+
t1 = $[4];
|
|
666
|
+
}
|
|
667
|
+
return t1;
|
|
668
|
+
}
|
|
669
|
+
function OverridesSelect(t0) {
|
|
670
|
+
const $ = import_compiler_runtime3.c(25);
|
|
671
|
+
const {
|
|
672
|
+
onComplete,
|
|
673
|
+
currentMode
|
|
674
|
+
} = t0;
|
|
675
|
+
const [theme] = useTheme();
|
|
676
|
+
const {
|
|
677
|
+
headerFocused,
|
|
678
|
+
focusHeader
|
|
679
|
+
} = useTabHeaderFocus();
|
|
680
|
+
let t1;
|
|
681
|
+
if ($[0] !== theme) {
|
|
682
|
+
t1 = color("success", theme)("(current)");
|
|
683
|
+
$[0] = theme;
|
|
684
|
+
$[1] = t1;
|
|
685
|
+
} else {
|
|
686
|
+
t1 = $[1];
|
|
687
|
+
}
|
|
688
|
+
const currentIndicator = t1;
|
|
689
|
+
const t2 = currentMode === "open" ? `Allow unsandboxed fallback ${currentIndicator}` : "Allow unsandboxed fallback";
|
|
690
|
+
let t3;
|
|
691
|
+
if ($[2] !== t2) {
|
|
692
|
+
t3 = {
|
|
693
|
+
label: t2,
|
|
694
|
+
value: "open"
|
|
695
|
+
};
|
|
696
|
+
$[2] = t2;
|
|
697
|
+
$[3] = t3;
|
|
698
|
+
} else {
|
|
699
|
+
t3 = $[3];
|
|
700
|
+
}
|
|
701
|
+
const t4 = currentMode === "closed" ? `Strict sandbox mode ${currentIndicator}` : "Strict sandbox mode";
|
|
702
|
+
let t5;
|
|
703
|
+
if ($[4] !== t4) {
|
|
704
|
+
t5 = {
|
|
705
|
+
label: t4,
|
|
706
|
+
value: "closed"
|
|
707
|
+
};
|
|
708
|
+
$[4] = t4;
|
|
709
|
+
$[5] = t5;
|
|
710
|
+
} else {
|
|
711
|
+
t5 = $[5];
|
|
712
|
+
}
|
|
713
|
+
let t6;
|
|
714
|
+
if ($[6] !== t3 || $[7] !== t5) {
|
|
715
|
+
t6 = [t3, t5];
|
|
716
|
+
$[6] = t3;
|
|
717
|
+
$[7] = t5;
|
|
718
|
+
$[8] = t6;
|
|
719
|
+
} else {
|
|
720
|
+
t6 = $[8];
|
|
721
|
+
}
|
|
722
|
+
const options = t6;
|
|
723
|
+
let t7;
|
|
724
|
+
if ($[9] !== onComplete) {
|
|
725
|
+
t7 = async function handleSelect2(value) {
|
|
726
|
+
const mode = value;
|
|
727
|
+
await SandboxManager.setSandboxSettings({
|
|
728
|
+
allowUnsandboxedCommands: mode === "open"
|
|
729
|
+
});
|
|
730
|
+
const message = mode === "open" ? "\u2713 Unsandboxed fallback allowed - commands can run outside sandbox when necessary" : "\u2713 Strict sandbox mode - all commands must run in sandbox or be excluded via the `excludedCommands` option";
|
|
731
|
+
onComplete(message);
|
|
732
|
+
};
|
|
733
|
+
$[9] = onComplete;
|
|
734
|
+
$[10] = t7;
|
|
735
|
+
} else {
|
|
736
|
+
t7 = $[10];
|
|
737
|
+
}
|
|
738
|
+
const handleSelect = t7;
|
|
739
|
+
let t8;
|
|
740
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
741
|
+
t8 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
742
|
+
marginBottom: 1,
|
|
743
|
+
children: /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
744
|
+
bold: true,
|
|
745
|
+
children: "Configure Overrides:"
|
|
746
|
+
}, undefined, false, undefined, this)
|
|
747
|
+
}, undefined, false, undefined, this);
|
|
748
|
+
$[11] = t8;
|
|
749
|
+
} else {
|
|
750
|
+
t8 = $[11];
|
|
751
|
+
}
|
|
752
|
+
let t9;
|
|
753
|
+
if ($[12] !== onComplete) {
|
|
754
|
+
t9 = () => onComplete(undefined, {
|
|
755
|
+
display: "skip"
|
|
756
|
+
});
|
|
757
|
+
$[12] = onComplete;
|
|
758
|
+
$[13] = t9;
|
|
759
|
+
} else {
|
|
760
|
+
t9 = $[13];
|
|
761
|
+
}
|
|
762
|
+
let t10;
|
|
763
|
+
if ($[14] !== focusHeader || $[15] !== handleSelect || $[16] !== headerFocused || $[17] !== options || $[18] !== t9) {
|
|
764
|
+
t10 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Select, {
|
|
765
|
+
options,
|
|
766
|
+
onChange: handleSelect,
|
|
767
|
+
onCancel: t9,
|
|
768
|
+
onUpFromFirstItem: focusHeader,
|
|
769
|
+
isDisabled: headerFocused
|
|
770
|
+
}, undefined, false, undefined, this);
|
|
771
|
+
$[14] = focusHeader;
|
|
772
|
+
$[15] = handleSelect;
|
|
773
|
+
$[16] = headerFocused;
|
|
774
|
+
$[17] = options;
|
|
775
|
+
$[18] = t9;
|
|
776
|
+
$[19] = t10;
|
|
777
|
+
} else {
|
|
778
|
+
t10 = $[19];
|
|
779
|
+
}
|
|
780
|
+
let t11;
|
|
781
|
+
if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
|
|
782
|
+
t11 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
783
|
+
dimColor: true,
|
|
784
|
+
children: [
|
|
785
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
786
|
+
bold: true,
|
|
787
|
+
dimColor: true,
|
|
788
|
+
children: "Allow unsandboxed fallback:"
|
|
789
|
+
}, undefined, false, undefined, this),
|
|
790
|
+
" ",
|
|
791
|
+
"When a command fails due to sandbox restrictions, Claude can retry with dangerouslyDisableSandbox to run outside the sandbox (falling back to default permissions)."
|
|
792
|
+
]
|
|
793
|
+
}, undefined, true, undefined, this);
|
|
794
|
+
$[20] = t11;
|
|
795
|
+
} else {
|
|
796
|
+
t11 = $[20];
|
|
797
|
+
}
|
|
798
|
+
let t12;
|
|
799
|
+
if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
|
|
800
|
+
t12 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
801
|
+
dimColor: true,
|
|
802
|
+
children: [
|
|
803
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
804
|
+
bold: true,
|
|
805
|
+
dimColor: true,
|
|
806
|
+
children: "Strict sandbox mode:"
|
|
807
|
+
}, undefined, false, undefined, this),
|
|
808
|
+
" ",
|
|
809
|
+
"All bash commands invoked by the model must run in the sandbox unless they are explicitly listed in excludedCommands."
|
|
810
|
+
]
|
|
811
|
+
}, undefined, true, undefined, this);
|
|
812
|
+
$[21] = t12;
|
|
813
|
+
} else {
|
|
814
|
+
t12 = $[21];
|
|
815
|
+
}
|
|
816
|
+
let t13;
|
|
817
|
+
if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
|
|
818
|
+
t13 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
819
|
+
flexDirection: "column",
|
|
820
|
+
marginTop: 1,
|
|
821
|
+
gap: 1,
|
|
822
|
+
children: [
|
|
823
|
+
t11,
|
|
824
|
+
t12,
|
|
825
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedText, {
|
|
826
|
+
dimColor: true,
|
|
827
|
+
children: [
|
|
828
|
+
"Learn more:",
|
|
829
|
+
" ",
|
|
830
|
+
/* @__PURE__ */ jsx_dev_runtime3.jsxDEV(Link, {
|
|
831
|
+
url: "https://code.claude.com/docs/en/sandboxing#configure-sandboxing",
|
|
832
|
+
children: "code.claude.com/docs/en/sandboxing#configure-sandboxing"
|
|
833
|
+
}, undefined, false, undefined, this)
|
|
834
|
+
]
|
|
835
|
+
}, undefined, true, undefined, this)
|
|
836
|
+
]
|
|
837
|
+
}, undefined, true, undefined, this);
|
|
838
|
+
$[22] = t13;
|
|
839
|
+
} else {
|
|
840
|
+
t13 = $[22];
|
|
841
|
+
}
|
|
842
|
+
let t14;
|
|
843
|
+
if ($[23] !== t10) {
|
|
844
|
+
t14 = /* @__PURE__ */ jsx_dev_runtime3.jsxDEV(ThemedBox_default, {
|
|
845
|
+
flexDirection: "column",
|
|
846
|
+
paddingY: 1,
|
|
847
|
+
children: [
|
|
848
|
+
t8,
|
|
849
|
+
t10,
|
|
850
|
+
t13
|
|
851
|
+
]
|
|
852
|
+
}, undefined, true, undefined, this);
|
|
853
|
+
$[23] = t10;
|
|
854
|
+
$[24] = t14;
|
|
855
|
+
} else {
|
|
856
|
+
t14 = $[24];
|
|
857
|
+
}
|
|
858
|
+
return t14;
|
|
859
|
+
}
|
|
860
|
+
var import_compiler_runtime3, jsx_dev_runtime3;
|
|
861
|
+
var init_SandboxOverridesTab = __esm(() => {
|
|
862
|
+
init_ink();
|
|
863
|
+
init_sandbox_adapter();
|
|
864
|
+
init_select();
|
|
865
|
+
init_Tabs();
|
|
866
|
+
import_compiler_runtime3 = __toESM(require_compiler_runtime(), 1);
|
|
867
|
+
jsx_dev_runtime3 = __toESM(require_jsx_dev_runtime(), 1);
|
|
868
|
+
});
|
|
869
|
+
|
|
870
|
+
// src/components/sandbox/SandboxSettings.tsx
|
|
871
|
+
function SandboxSettings(t0) {
|
|
872
|
+
const $ = import_compiler_runtime4.c(34);
|
|
873
|
+
const {
|
|
874
|
+
onComplete,
|
|
875
|
+
depCheck
|
|
876
|
+
} = t0;
|
|
877
|
+
const [theme] = useTheme();
|
|
878
|
+
const currentEnabled = SandboxManager.isSandboxingEnabled();
|
|
879
|
+
const currentAutoAllow = SandboxManager.isAutoAllowBashIfSandboxedEnabled();
|
|
880
|
+
const hasWarnings = depCheck.warnings.length > 0;
|
|
881
|
+
let t1;
|
|
882
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
883
|
+
t1 = getSettings_DEPRECATED();
|
|
884
|
+
$[0] = t1;
|
|
885
|
+
} else {
|
|
886
|
+
t1 = $[0];
|
|
887
|
+
}
|
|
888
|
+
const settings = t1;
|
|
889
|
+
const allowAllUnixSockets = settings.sandbox?.network?.allowAllUnixSockets;
|
|
890
|
+
const showSocketWarning = hasWarnings && !allowAllUnixSockets;
|
|
891
|
+
const getCurrentMode = () => {
|
|
892
|
+
if (!currentEnabled) {
|
|
893
|
+
return "disabled";
|
|
894
|
+
}
|
|
895
|
+
if (currentAutoAllow) {
|
|
896
|
+
return "auto-allow";
|
|
897
|
+
}
|
|
898
|
+
return "regular";
|
|
899
|
+
};
|
|
900
|
+
const currentMode = getCurrentMode();
|
|
901
|
+
let t2;
|
|
902
|
+
if ($[1] !== theme) {
|
|
903
|
+
t2 = color("success", theme)("(current)");
|
|
904
|
+
$[1] = theme;
|
|
905
|
+
$[2] = t2;
|
|
906
|
+
} else {
|
|
907
|
+
t2 = $[2];
|
|
908
|
+
}
|
|
909
|
+
const currentIndicator = t2;
|
|
910
|
+
const t3 = currentMode === "auto-allow" ? `Sandbox BashTool, with auto-allow ${currentIndicator}` : "Sandbox BashTool, with auto-allow";
|
|
911
|
+
let t4;
|
|
912
|
+
if ($[3] !== t3) {
|
|
913
|
+
t4 = {
|
|
914
|
+
label: t3,
|
|
915
|
+
value: "auto-allow"
|
|
916
|
+
};
|
|
917
|
+
$[3] = t3;
|
|
918
|
+
$[4] = t4;
|
|
919
|
+
} else {
|
|
920
|
+
t4 = $[4];
|
|
921
|
+
}
|
|
922
|
+
const t5 = currentMode === "regular" ? `Sandbox BashTool, with regular permissions ${currentIndicator}` : "Sandbox BashTool, with regular permissions";
|
|
923
|
+
let t6;
|
|
924
|
+
if ($[5] !== t5) {
|
|
925
|
+
t6 = {
|
|
926
|
+
label: t5,
|
|
927
|
+
value: "regular"
|
|
928
|
+
};
|
|
929
|
+
$[5] = t5;
|
|
930
|
+
$[6] = t6;
|
|
931
|
+
} else {
|
|
932
|
+
t6 = $[6];
|
|
933
|
+
}
|
|
934
|
+
const t7 = currentMode === "disabled" ? `No Sandbox ${currentIndicator}` : "No Sandbox";
|
|
935
|
+
let t8;
|
|
936
|
+
if ($[7] !== t7) {
|
|
937
|
+
t8 = {
|
|
938
|
+
label: t7,
|
|
939
|
+
value: "disabled"
|
|
940
|
+
};
|
|
941
|
+
$[7] = t7;
|
|
942
|
+
$[8] = t8;
|
|
943
|
+
} else {
|
|
944
|
+
t8 = $[8];
|
|
945
|
+
}
|
|
946
|
+
let t9;
|
|
947
|
+
if ($[9] !== t4 || $[10] !== t6 || $[11] !== t8) {
|
|
948
|
+
t9 = [t4, t6, t8];
|
|
949
|
+
$[9] = t4;
|
|
950
|
+
$[10] = t6;
|
|
951
|
+
$[11] = t8;
|
|
952
|
+
$[12] = t9;
|
|
953
|
+
} else {
|
|
954
|
+
t9 = $[12];
|
|
955
|
+
}
|
|
956
|
+
const options = t9;
|
|
957
|
+
let t10;
|
|
958
|
+
if ($[13] !== onComplete) {
|
|
959
|
+
t10 = async function handleSelect2(value) {
|
|
960
|
+
const mode = value;
|
|
961
|
+
bb33:
|
|
962
|
+
switch (mode) {
|
|
963
|
+
case "auto-allow": {
|
|
964
|
+
await SandboxManager.setSandboxSettings({
|
|
965
|
+
enabled: true,
|
|
966
|
+
autoAllowBashIfSandboxed: true
|
|
967
|
+
});
|
|
968
|
+
onComplete("\u2713 Sandbox enabled with auto-allow for bash commands");
|
|
969
|
+
break bb33;
|
|
970
|
+
}
|
|
971
|
+
case "regular": {
|
|
972
|
+
await SandboxManager.setSandboxSettings({
|
|
973
|
+
enabled: true,
|
|
974
|
+
autoAllowBashIfSandboxed: false
|
|
975
|
+
});
|
|
976
|
+
onComplete("\u2713 Sandbox enabled with regular bash permissions");
|
|
977
|
+
break bb33;
|
|
978
|
+
}
|
|
979
|
+
case "disabled": {
|
|
980
|
+
await SandboxManager.setSandboxSettings({
|
|
981
|
+
enabled: false,
|
|
982
|
+
autoAllowBashIfSandboxed: false
|
|
983
|
+
});
|
|
984
|
+
onComplete("\u25CB Sandbox disabled");
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
};
|
|
988
|
+
$[13] = onComplete;
|
|
989
|
+
$[14] = t10;
|
|
990
|
+
} else {
|
|
991
|
+
t10 = $[14];
|
|
992
|
+
}
|
|
993
|
+
const handleSelect = t10;
|
|
994
|
+
let t11;
|
|
995
|
+
if ($[15] !== onComplete) {
|
|
996
|
+
t11 = {
|
|
997
|
+
"confirm:no": () => onComplete(undefined, {
|
|
998
|
+
display: "skip"
|
|
999
|
+
})
|
|
1000
|
+
};
|
|
1001
|
+
$[15] = onComplete;
|
|
1002
|
+
$[16] = t11;
|
|
1003
|
+
} else {
|
|
1004
|
+
t11 = $[16];
|
|
1005
|
+
}
|
|
1006
|
+
let t12;
|
|
1007
|
+
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1008
|
+
t12 = {
|
|
1009
|
+
context: "Settings"
|
|
1010
|
+
};
|
|
1011
|
+
$[17] = t12;
|
|
1012
|
+
} else {
|
|
1013
|
+
t12 = $[17];
|
|
1014
|
+
}
|
|
1015
|
+
useKeybindings(t11, t12);
|
|
1016
|
+
let t13;
|
|
1017
|
+
if ($[18] !== handleSelect || $[19] !== onComplete || $[20] !== options || $[21] !== showSocketWarning) {
|
|
1018
|
+
t13 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Tab, {
|
|
1019
|
+
title: "Mode",
|
|
1020
|
+
children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(SandboxModeTab, {
|
|
1021
|
+
showSocketWarning,
|
|
1022
|
+
options,
|
|
1023
|
+
onSelect: handleSelect,
|
|
1024
|
+
onComplete
|
|
1025
|
+
}, undefined, false, undefined, this)
|
|
1026
|
+
}, "mode", false, undefined, this);
|
|
1027
|
+
$[18] = handleSelect;
|
|
1028
|
+
$[19] = onComplete;
|
|
1029
|
+
$[20] = options;
|
|
1030
|
+
$[21] = showSocketWarning;
|
|
1031
|
+
$[22] = t13;
|
|
1032
|
+
} else {
|
|
1033
|
+
t13 = $[22];
|
|
1034
|
+
}
|
|
1035
|
+
const modeTab = t13;
|
|
1036
|
+
let t14;
|
|
1037
|
+
if ($[23] !== onComplete) {
|
|
1038
|
+
t14 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Tab, {
|
|
1039
|
+
title: "Overrides",
|
|
1040
|
+
children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(SandboxOverridesTab, {
|
|
1041
|
+
onComplete
|
|
1042
|
+
}, undefined, false, undefined, this)
|
|
1043
|
+
}, "overrides", false, undefined, this);
|
|
1044
|
+
$[23] = onComplete;
|
|
1045
|
+
$[24] = t14;
|
|
1046
|
+
} else {
|
|
1047
|
+
t14 = $[24];
|
|
1048
|
+
}
|
|
1049
|
+
const overridesTab = t14;
|
|
1050
|
+
let t15;
|
|
1051
|
+
if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1052
|
+
t15 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Tab, {
|
|
1053
|
+
title: "Config",
|
|
1054
|
+
children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(SandboxConfigTab, {}, undefined, false, undefined, this)
|
|
1055
|
+
}, "config", false, undefined, this);
|
|
1056
|
+
$[25] = t15;
|
|
1057
|
+
} else {
|
|
1058
|
+
t15 = $[25];
|
|
1059
|
+
}
|
|
1060
|
+
const configTab = t15;
|
|
1061
|
+
const hasErrors = depCheck.errors.length > 0;
|
|
1062
|
+
let t16;
|
|
1063
|
+
if ($[26] !== depCheck || $[27] !== hasErrors || $[28] !== hasWarnings || $[29] !== modeTab || $[30] !== overridesTab) {
|
|
1064
|
+
t16 = hasErrors ? [/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Tab, {
|
|
1065
|
+
title: "Dependencies",
|
|
1066
|
+
children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(SandboxDependenciesTab, {
|
|
1067
|
+
depCheck
|
|
1068
|
+
}, undefined, false, undefined, this)
|
|
1069
|
+
}, "dependencies", false, undefined, this)] : [modeTab, ...hasWarnings ? [/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Tab, {
|
|
1070
|
+
title: "Dependencies",
|
|
1071
|
+
children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(SandboxDependenciesTab, {
|
|
1072
|
+
depCheck
|
|
1073
|
+
}, undefined, false, undefined, this)
|
|
1074
|
+
}, "dependencies", false, undefined, this)] : [], overridesTab, configTab];
|
|
1075
|
+
$[26] = depCheck;
|
|
1076
|
+
$[27] = hasErrors;
|
|
1077
|
+
$[28] = hasWarnings;
|
|
1078
|
+
$[29] = modeTab;
|
|
1079
|
+
$[30] = overridesTab;
|
|
1080
|
+
$[31] = t16;
|
|
1081
|
+
} else {
|
|
1082
|
+
t16 = $[31];
|
|
1083
|
+
}
|
|
1084
|
+
const tabs = t16;
|
|
1085
|
+
let t17;
|
|
1086
|
+
if ($[32] !== tabs) {
|
|
1087
|
+
t17 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Pane, {
|
|
1088
|
+
color: "permission",
|
|
1089
|
+
children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Tabs, {
|
|
1090
|
+
title: "Sandbox:",
|
|
1091
|
+
color: "permission",
|
|
1092
|
+
defaultTab: "Mode",
|
|
1093
|
+
children: tabs
|
|
1094
|
+
}, undefined, false, undefined, this)
|
|
1095
|
+
}, undefined, false, undefined, this);
|
|
1096
|
+
$[32] = tabs;
|
|
1097
|
+
$[33] = t17;
|
|
1098
|
+
} else {
|
|
1099
|
+
t17 = $[33];
|
|
1100
|
+
}
|
|
1101
|
+
return t17;
|
|
1102
|
+
}
|
|
1103
|
+
function SandboxModeTab(t0) {
|
|
1104
|
+
const $ = import_compiler_runtime4.c(16);
|
|
1105
|
+
const {
|
|
1106
|
+
showSocketWarning,
|
|
1107
|
+
options,
|
|
1108
|
+
onSelect,
|
|
1109
|
+
onComplete
|
|
1110
|
+
} = t0;
|
|
1111
|
+
const {
|
|
1112
|
+
headerFocused,
|
|
1113
|
+
focusHeader
|
|
1114
|
+
} = useTabHeaderFocus();
|
|
1115
|
+
let t1;
|
|
1116
|
+
if ($[0] !== showSocketWarning) {
|
|
1117
|
+
t1 = showSocketWarning && /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedBox_default, {
|
|
1118
|
+
marginBottom: 1,
|
|
1119
|
+
children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
|
|
1120
|
+
color: "warning",
|
|
1121
|
+
children: "Cannot block unix domain sockets (see Dependencies tab)"
|
|
1122
|
+
}, undefined, false, undefined, this)
|
|
1123
|
+
}, undefined, false, undefined, this);
|
|
1124
|
+
$[0] = showSocketWarning;
|
|
1125
|
+
$[1] = t1;
|
|
1126
|
+
} else {
|
|
1127
|
+
t1 = $[1];
|
|
1128
|
+
}
|
|
1129
|
+
let t2;
|
|
1130
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1131
|
+
t2 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedBox_default, {
|
|
1132
|
+
marginBottom: 1,
|
|
1133
|
+
children: /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
|
|
1134
|
+
bold: true,
|
|
1135
|
+
children: "Configure Mode:"
|
|
1136
|
+
}, undefined, false, undefined, this)
|
|
1137
|
+
}, undefined, false, undefined, this);
|
|
1138
|
+
$[2] = t2;
|
|
1139
|
+
} else {
|
|
1140
|
+
t2 = $[2];
|
|
1141
|
+
}
|
|
1142
|
+
let t3;
|
|
1143
|
+
if ($[3] !== onComplete) {
|
|
1144
|
+
t3 = () => onComplete(undefined, {
|
|
1145
|
+
display: "skip"
|
|
1146
|
+
});
|
|
1147
|
+
$[3] = onComplete;
|
|
1148
|
+
$[4] = t3;
|
|
1149
|
+
} else {
|
|
1150
|
+
t3 = $[4];
|
|
1151
|
+
}
|
|
1152
|
+
let t4;
|
|
1153
|
+
if ($[5] !== focusHeader || $[6] !== headerFocused || $[7] !== onSelect || $[8] !== options || $[9] !== t3) {
|
|
1154
|
+
t4 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Select, {
|
|
1155
|
+
options,
|
|
1156
|
+
onChange: onSelect,
|
|
1157
|
+
onCancel: t3,
|
|
1158
|
+
onUpFromFirstItem: focusHeader,
|
|
1159
|
+
isDisabled: headerFocused
|
|
1160
|
+
}, undefined, false, undefined, this);
|
|
1161
|
+
$[5] = focusHeader;
|
|
1162
|
+
$[6] = headerFocused;
|
|
1163
|
+
$[7] = onSelect;
|
|
1164
|
+
$[8] = options;
|
|
1165
|
+
$[9] = t3;
|
|
1166
|
+
$[10] = t4;
|
|
1167
|
+
} else {
|
|
1168
|
+
t4 = $[10];
|
|
1169
|
+
}
|
|
1170
|
+
let t5;
|
|
1171
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1172
|
+
t5 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
|
|
1173
|
+
dimColor: true,
|
|
1174
|
+
children: [
|
|
1175
|
+
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
|
|
1176
|
+
bold: true,
|
|
1177
|
+
dimColor: true,
|
|
1178
|
+
children: "Auto-allow mode:"
|
|
1179
|
+
}, undefined, false, undefined, this),
|
|
1180
|
+
" ",
|
|
1181
|
+
"Commands will try to run in the sandbox automatically, and attempts to run outside of the sandbox fallback to regular permissions. Explicit ask/deny rules are always respected."
|
|
1182
|
+
]
|
|
1183
|
+
}, undefined, true, undefined, this);
|
|
1184
|
+
$[11] = t5;
|
|
1185
|
+
} else {
|
|
1186
|
+
t5 = $[11];
|
|
1187
|
+
}
|
|
1188
|
+
let t6;
|
|
1189
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1190
|
+
t6 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedBox_default, {
|
|
1191
|
+
flexDirection: "column",
|
|
1192
|
+
marginTop: 1,
|
|
1193
|
+
gap: 1,
|
|
1194
|
+
children: [
|
|
1195
|
+
t5,
|
|
1196
|
+
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedText, {
|
|
1197
|
+
dimColor: true,
|
|
1198
|
+
children: [
|
|
1199
|
+
"Learn more:",
|
|
1200
|
+
" ",
|
|
1201
|
+
/* @__PURE__ */ jsx_dev_runtime4.jsxDEV(Link, {
|
|
1202
|
+
url: "https://code.claude.com/docs/en/sandboxing",
|
|
1203
|
+
children: "code.claude.com/docs/en/sandboxing"
|
|
1204
|
+
}, undefined, false, undefined, this)
|
|
1205
|
+
]
|
|
1206
|
+
}, undefined, true, undefined, this)
|
|
1207
|
+
]
|
|
1208
|
+
}, undefined, true, undefined, this);
|
|
1209
|
+
$[12] = t6;
|
|
1210
|
+
} else {
|
|
1211
|
+
t6 = $[12];
|
|
1212
|
+
}
|
|
1213
|
+
let t7;
|
|
1214
|
+
if ($[13] !== t1 || $[14] !== t4) {
|
|
1215
|
+
t7 = /* @__PURE__ */ jsx_dev_runtime4.jsxDEV(ThemedBox_default, {
|
|
1216
|
+
flexDirection: "column",
|
|
1217
|
+
paddingY: 1,
|
|
1218
|
+
children: [
|
|
1219
|
+
t1,
|
|
1220
|
+
t2,
|
|
1221
|
+
t4,
|
|
1222
|
+
t6
|
|
1223
|
+
]
|
|
1224
|
+
}, undefined, true, undefined, this);
|
|
1225
|
+
$[13] = t1;
|
|
1226
|
+
$[14] = t4;
|
|
1227
|
+
$[15] = t7;
|
|
1228
|
+
} else {
|
|
1229
|
+
t7 = $[15];
|
|
1230
|
+
}
|
|
1231
|
+
return t7;
|
|
1232
|
+
}
|
|
1233
|
+
var import_compiler_runtime4, jsx_dev_runtime4;
|
|
1234
|
+
var init_SandboxSettings = __esm(() => {
|
|
1235
|
+
init_ink();
|
|
1236
|
+
init_useKeybinding();
|
|
1237
|
+
init_sandbox_adapter();
|
|
1238
|
+
init_settings();
|
|
1239
|
+
init_select();
|
|
1240
|
+
init_Pane();
|
|
1241
|
+
init_Tabs();
|
|
1242
|
+
init_SandboxConfigTab();
|
|
1243
|
+
init_SandboxDependenciesTab();
|
|
1244
|
+
init_SandboxOverridesTab();
|
|
1245
|
+
import_compiler_runtime4 = __toESM(require_compiler_runtime(), 1);
|
|
1246
|
+
jsx_dev_runtime4 = __toESM(require_jsx_dev_runtime(), 1);
|
|
1247
|
+
});
|
|
1248
|
+
|
|
1249
|
+
// src/commands/sandbox-toggle/sandbox-toggle.tsx
|
|
1250
|
+
import { relative } from "path";
|
|
1251
|
+
async function call(onDone, _context, args) {
|
|
1252
|
+
const settings = getSettings_DEPRECATED();
|
|
1253
|
+
const themeName = settings.theme || "light";
|
|
1254
|
+
const platform = getPlatform();
|
|
1255
|
+
if (!SandboxManager.isSupportedPlatform()) {
|
|
1256
|
+
const errorMessage = platform === "wsl" ? "Error: Sandboxing requires WSL2. WSL1 is not supported." : "Error: Sandboxing is currently only supported on macOS, Linux, and WSL2.";
|
|
1257
|
+
const message = color("error", themeName)(errorMessage);
|
|
1258
|
+
onDone(message);
|
|
1259
|
+
return null;
|
|
1260
|
+
}
|
|
1261
|
+
const depCheck = SandboxManager.checkDependencies();
|
|
1262
|
+
if (!SandboxManager.isPlatformInEnabledList()) {
|
|
1263
|
+
const message = color("error", themeName)(`Error: Sandboxing is disabled for this platform (${platform}) via the enabledPlatforms setting.`);
|
|
1264
|
+
onDone(message);
|
|
1265
|
+
return null;
|
|
1266
|
+
}
|
|
1267
|
+
if (SandboxManager.areSandboxSettingsLockedByPolicy()) {
|
|
1268
|
+
const message = color("error", themeName)("Error: Sandbox settings are overridden by a higher-priority configuration and cannot be changed locally.");
|
|
1269
|
+
onDone(message);
|
|
1270
|
+
return null;
|
|
1271
|
+
}
|
|
1272
|
+
const trimmedArgs = args?.trim() || "";
|
|
1273
|
+
if (!trimmedArgs) {
|
|
1274
|
+
return /* @__PURE__ */ jsx_dev_runtime5.jsxDEV(SandboxSettings, {
|
|
1275
|
+
onComplete: onDone,
|
|
1276
|
+
depCheck
|
|
1277
|
+
}, undefined, false, undefined, this);
|
|
1278
|
+
}
|
|
1279
|
+
if (trimmedArgs) {
|
|
1280
|
+
const parts = trimmedArgs.split(" ");
|
|
1281
|
+
const subcommand = parts[0];
|
|
1282
|
+
if (subcommand === "exclude") {
|
|
1283
|
+
const commandPattern = trimmedArgs.slice("exclude ".length).trim();
|
|
1284
|
+
if (!commandPattern) {
|
|
1285
|
+
const message2 = color("error", themeName)('Error: Please provide a command pattern to exclude (e.g., /sandbox exclude "npm run test:*")');
|
|
1286
|
+
onDone(message2);
|
|
1287
|
+
return null;
|
|
1288
|
+
}
|
|
1289
|
+
const cleanPattern = commandPattern.replace(/^["']|["']$/g, "");
|
|
1290
|
+
addToExcludedCommands(cleanPattern);
|
|
1291
|
+
const localSettingsPath = getSettingsFilePathForSource("localSettings");
|
|
1292
|
+
const relativePath = localSettingsPath ? relative(getCwdState(), localSettingsPath) : ".claude/settings.local.json";
|
|
1293
|
+
const message = color("success", themeName)(`Added "${cleanPattern}" to excluded commands in ${relativePath}`);
|
|
1294
|
+
onDone(message);
|
|
1295
|
+
return null;
|
|
1296
|
+
} else {
|
|
1297
|
+
const message = color("error", themeName)(`Error: Unknown subcommand "${subcommand}". Available subcommand: exclude`);
|
|
1298
|
+
onDone(message);
|
|
1299
|
+
return null;
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
return null;
|
|
1303
|
+
}
|
|
1304
|
+
var jsx_dev_runtime5;
|
|
1305
|
+
var init_sandbox_toggle = __esm(() => {
|
|
1306
|
+
init_state();
|
|
1307
|
+
init_SandboxSettings();
|
|
1308
|
+
init_ink();
|
|
1309
|
+
init_platform();
|
|
1310
|
+
init_sandbox_adapter();
|
|
1311
|
+
init_settings();
|
|
1312
|
+
jsx_dev_runtime5 = __toESM(require_jsx_dev_runtime(), 1);
|
|
1313
|
+
});
|
|
1314
|
+
init_sandbox_toggle();
|
|
1315
|
+
|
|
1316
|
+
export {
|
|
1317
|
+
call
|
|
1318
|
+
};
|