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,1711 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
init_process,
|
|
4
|
+
writeToStderr
|
|
5
|
+
} from "./chunk-fbv4apne.js";
|
|
6
|
+
import {
|
|
7
|
+
getClaudeConfigHomeDir,
|
|
8
|
+
init_envUtils,
|
|
9
|
+
isEnvTruthy
|
|
10
|
+
} from "./chunk-3r24h7t6.js";
|
|
11
|
+
import {
|
|
12
|
+
_Stack_default,
|
|
13
|
+
_Uint8Array_default,
|
|
14
|
+
_arrayLikeKeys_default,
|
|
15
|
+
_arrayPush_default,
|
|
16
|
+
_baseGetAllKeys_default,
|
|
17
|
+
_baseUnary_default,
|
|
18
|
+
_getAllKeys_default,
|
|
19
|
+
_getSymbols_default,
|
|
20
|
+
_getTag_default,
|
|
21
|
+
_isPrototype_default,
|
|
22
|
+
_nodeUtil_default,
|
|
23
|
+
_overArg_default,
|
|
24
|
+
getSessionId,
|
|
25
|
+
init__Stack,
|
|
26
|
+
init__Uint8Array,
|
|
27
|
+
init__arrayLikeKeys,
|
|
28
|
+
init__arrayPush,
|
|
29
|
+
init__baseGetAllKeys,
|
|
30
|
+
init__baseUnary,
|
|
31
|
+
init__getAllKeys,
|
|
32
|
+
init__getSymbols,
|
|
33
|
+
init__getTag,
|
|
34
|
+
init__isPrototype,
|
|
35
|
+
init__nodeUtil,
|
|
36
|
+
init__overArg,
|
|
37
|
+
init_isArray,
|
|
38
|
+
init_isArrayLike,
|
|
39
|
+
init_isBuffer,
|
|
40
|
+
init_isObjectLike,
|
|
41
|
+
init_keys,
|
|
42
|
+
init_state,
|
|
43
|
+
init_stubArray,
|
|
44
|
+
isArrayLike_default,
|
|
45
|
+
isArray_default,
|
|
46
|
+
isBuffer_default,
|
|
47
|
+
isObjectLike_default,
|
|
48
|
+
keys_default,
|
|
49
|
+
stubArray_default
|
|
50
|
+
} from "./chunk-qqfa0dqg.js";
|
|
51
|
+
import {
|
|
52
|
+
_Symbol_default,
|
|
53
|
+
_getNative_default,
|
|
54
|
+
_root_default,
|
|
55
|
+
eq_default,
|
|
56
|
+
init__Symbol,
|
|
57
|
+
init__getNative,
|
|
58
|
+
init__root,
|
|
59
|
+
init_eq,
|
|
60
|
+
init_isObject,
|
|
61
|
+
init_memoize,
|
|
62
|
+
isObject_default,
|
|
63
|
+
memoize_default
|
|
64
|
+
} from "./chunk-hqmz36b3.js";
|
|
65
|
+
import {
|
|
66
|
+
init_sdk
|
|
67
|
+
} from "./chunk-4g3v8y12.js";
|
|
68
|
+
import {
|
|
69
|
+
APIUserAbortError
|
|
70
|
+
} from "./chunk-7739pg2c.js";
|
|
71
|
+
import {
|
|
72
|
+
__callDispose,
|
|
73
|
+
__esm,
|
|
74
|
+
__export,
|
|
75
|
+
__using
|
|
76
|
+
} from "./chunk-qp2qdcda.js";
|
|
77
|
+
|
|
78
|
+
// src/utils/bufferedWriter.ts
|
|
79
|
+
function createBufferedWriter({
|
|
80
|
+
writeFn,
|
|
81
|
+
flushIntervalMs = 1000,
|
|
82
|
+
maxBufferSize = 100,
|
|
83
|
+
maxBufferBytes = Infinity,
|
|
84
|
+
immediateMode = false
|
|
85
|
+
}) {
|
|
86
|
+
let buffer = [];
|
|
87
|
+
let bufferBytes = 0;
|
|
88
|
+
let flushTimer = null;
|
|
89
|
+
let pendingOverflow = null;
|
|
90
|
+
function clearTimer() {
|
|
91
|
+
if (flushTimer) {
|
|
92
|
+
clearTimeout(flushTimer);
|
|
93
|
+
flushTimer = null;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function flush() {
|
|
97
|
+
if (pendingOverflow) {
|
|
98
|
+
writeFn(pendingOverflow.join(""));
|
|
99
|
+
pendingOverflow = null;
|
|
100
|
+
}
|
|
101
|
+
if (buffer.length === 0)
|
|
102
|
+
return;
|
|
103
|
+
writeFn(buffer.join(""));
|
|
104
|
+
buffer = [];
|
|
105
|
+
bufferBytes = 0;
|
|
106
|
+
clearTimer();
|
|
107
|
+
}
|
|
108
|
+
function scheduleFlush() {
|
|
109
|
+
if (!flushTimer) {
|
|
110
|
+
flushTimer = setTimeout(flush, flushIntervalMs);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
function flushDeferred() {
|
|
114
|
+
if (pendingOverflow) {
|
|
115
|
+
pendingOverflow.push(...buffer);
|
|
116
|
+
buffer = [];
|
|
117
|
+
bufferBytes = 0;
|
|
118
|
+
clearTimer();
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
const detached = buffer;
|
|
122
|
+
buffer = [];
|
|
123
|
+
bufferBytes = 0;
|
|
124
|
+
clearTimer();
|
|
125
|
+
pendingOverflow = detached;
|
|
126
|
+
setImmediate(() => {
|
|
127
|
+
const toWrite = pendingOverflow;
|
|
128
|
+
pendingOverflow = null;
|
|
129
|
+
if (toWrite)
|
|
130
|
+
writeFn(toWrite.join(""));
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
return {
|
|
134
|
+
write(content) {
|
|
135
|
+
if (immediateMode) {
|
|
136
|
+
writeFn(content);
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
buffer.push(content);
|
|
140
|
+
bufferBytes += content.length;
|
|
141
|
+
scheduleFlush();
|
|
142
|
+
if (buffer.length >= maxBufferSize || bufferBytes >= maxBufferBytes) {
|
|
143
|
+
flushDeferred();
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
flush,
|
|
147
|
+
dispose() {
|
|
148
|
+
flush();
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
var init_bufferedWriter = () => {};
|
|
153
|
+
|
|
154
|
+
// src/utils/cleanupRegistry.ts
|
|
155
|
+
function registerCleanup(cleanupFn) {
|
|
156
|
+
cleanupFunctions.add(cleanupFn);
|
|
157
|
+
return () => cleanupFunctions.delete(cleanupFn);
|
|
158
|
+
}
|
|
159
|
+
async function runCleanupFunctions() {
|
|
160
|
+
await Promise.all(Array.from(cleanupFunctions).map((fn) => fn()));
|
|
161
|
+
}
|
|
162
|
+
var cleanupFunctions;
|
|
163
|
+
var init_cleanupRegistry = __esm(() => {
|
|
164
|
+
cleanupFunctions = new Set;
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
// src/utils/errors.ts
|
|
168
|
+
function isAbortError(e) {
|
|
169
|
+
return e instanceof AbortError || e instanceof APIUserAbortError || e instanceof Error && e.name === "AbortError";
|
|
170
|
+
}
|
|
171
|
+
function hasExactErrorMessage(error, message) {
|
|
172
|
+
return error instanceof Error && error.message === message;
|
|
173
|
+
}
|
|
174
|
+
function toError(e) {
|
|
175
|
+
return e instanceof Error ? e : new Error(String(e));
|
|
176
|
+
}
|
|
177
|
+
function errorMessage(e) {
|
|
178
|
+
return e instanceof Error ? e.message : String(e);
|
|
179
|
+
}
|
|
180
|
+
function getErrnoCode(e) {
|
|
181
|
+
if (e && typeof e === "object" && "code" in e && typeof e.code === "string") {
|
|
182
|
+
return e.code;
|
|
183
|
+
}
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
function isENOENT(e) {
|
|
187
|
+
return getErrnoCode(e) === "ENOENT";
|
|
188
|
+
}
|
|
189
|
+
function getErrnoPath(e) {
|
|
190
|
+
if (e && typeof e === "object" && "path" in e && typeof e.path === "string") {
|
|
191
|
+
return e.path;
|
|
192
|
+
}
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
function isFsInaccessible(e) {
|
|
196
|
+
const code = getErrnoCode(e);
|
|
197
|
+
return code === "ENOENT" || code === "EACCES" || code === "EPERM" || code === "ENOTDIR" || code === "ELOOP";
|
|
198
|
+
}
|
|
199
|
+
function classifyAxiosError(e) {
|
|
200
|
+
const message = errorMessage(e);
|
|
201
|
+
if (!e || typeof e !== "object" || !("isAxiosError" in e) || !e.isAxiosError) {
|
|
202
|
+
return { kind: "other", message };
|
|
203
|
+
}
|
|
204
|
+
const err = e;
|
|
205
|
+
const status = err.response?.status;
|
|
206
|
+
if (status === 401 || status === 403)
|
|
207
|
+
return { kind: "auth", status, message };
|
|
208
|
+
if (err.code === "ECONNABORTED")
|
|
209
|
+
return { kind: "timeout", status, message };
|
|
210
|
+
if (err.code === "ECONNREFUSED" || err.code === "ENOTFOUND") {
|
|
211
|
+
return { kind: "network", status, message };
|
|
212
|
+
}
|
|
213
|
+
return { kind: "http", status, message };
|
|
214
|
+
}
|
|
215
|
+
var ClaudeError, MalformedCommandError, AbortError, ConfigParseError, ShellError, TeleportOperationError, TelemetrySafeError_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS;
|
|
216
|
+
var init_errors = __esm(() => {
|
|
217
|
+
init_sdk();
|
|
218
|
+
ClaudeError = class ClaudeError extends Error {
|
|
219
|
+
constructor(message) {
|
|
220
|
+
super(message);
|
|
221
|
+
this.name = this.constructor.name;
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
MalformedCommandError = class MalformedCommandError extends Error {
|
|
225
|
+
};
|
|
226
|
+
AbortError = class AbortError extends Error {
|
|
227
|
+
constructor(message) {
|
|
228
|
+
super(message);
|
|
229
|
+
this.name = "AbortError";
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
ConfigParseError = class ConfigParseError extends Error {
|
|
233
|
+
filePath;
|
|
234
|
+
defaultConfig;
|
|
235
|
+
constructor(message, filePath, defaultConfig) {
|
|
236
|
+
super(message);
|
|
237
|
+
this.name = "ConfigParseError";
|
|
238
|
+
this.filePath = filePath;
|
|
239
|
+
this.defaultConfig = defaultConfig;
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
ShellError = class ShellError extends Error {
|
|
243
|
+
stdout;
|
|
244
|
+
stderr;
|
|
245
|
+
code;
|
|
246
|
+
interrupted;
|
|
247
|
+
constructor(stdout, stderr, code, interrupted) {
|
|
248
|
+
super("Shell command failed");
|
|
249
|
+
this.stdout = stdout;
|
|
250
|
+
this.stderr = stderr;
|
|
251
|
+
this.code = code;
|
|
252
|
+
this.interrupted = interrupted;
|
|
253
|
+
this.name = "ShellError";
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
TeleportOperationError = class TeleportOperationError extends Error {
|
|
257
|
+
formattedMessage;
|
|
258
|
+
constructor(message, formattedMessage) {
|
|
259
|
+
super(message);
|
|
260
|
+
this.formattedMessage = formattedMessage;
|
|
261
|
+
this.name = "TeleportOperationError";
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
TelemetrySafeError_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = class TelemetrySafeError_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS extends Error {
|
|
265
|
+
telemetryMessage;
|
|
266
|
+
constructor(message, telemetryMessage) {
|
|
267
|
+
super(message);
|
|
268
|
+
this.name = "TelemetrySafeError";
|
|
269
|
+
this.telemetryMessage = telemetryMessage ?? message;
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
});
|
|
273
|
+
|
|
274
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayEach.js
|
|
275
|
+
function arrayEach(array, iteratee) {
|
|
276
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
277
|
+
while (++index < length) {
|
|
278
|
+
if (iteratee(array[index], index, array) === false) {
|
|
279
|
+
break;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
return array;
|
|
283
|
+
}
|
|
284
|
+
var _arrayEach_default;
|
|
285
|
+
var init__arrayEach = __esm(() => {
|
|
286
|
+
_arrayEach_default = arrayEach;
|
|
287
|
+
});
|
|
288
|
+
|
|
289
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.js
|
|
290
|
+
var defineProperty, _defineProperty_default;
|
|
291
|
+
var init__defineProperty = __esm(() => {
|
|
292
|
+
init__getNative();
|
|
293
|
+
defineProperty = function() {
|
|
294
|
+
try {
|
|
295
|
+
var func = _getNative_default(Object, "defineProperty");
|
|
296
|
+
func({}, "", {});
|
|
297
|
+
return func;
|
|
298
|
+
} catch (e) {}
|
|
299
|
+
}();
|
|
300
|
+
_defineProperty_default = defineProperty;
|
|
301
|
+
});
|
|
302
|
+
|
|
303
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignValue.js
|
|
304
|
+
function baseAssignValue(object, key, value) {
|
|
305
|
+
if (key == "__proto__" && _defineProperty_default) {
|
|
306
|
+
_defineProperty_default(object, key, {
|
|
307
|
+
configurable: true,
|
|
308
|
+
enumerable: true,
|
|
309
|
+
value,
|
|
310
|
+
writable: true
|
|
311
|
+
});
|
|
312
|
+
} else {
|
|
313
|
+
object[key] = value;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
var _baseAssignValue_default;
|
|
317
|
+
var init__baseAssignValue = __esm(() => {
|
|
318
|
+
init__defineProperty();
|
|
319
|
+
_baseAssignValue_default = baseAssignValue;
|
|
320
|
+
});
|
|
321
|
+
|
|
322
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assignValue.js
|
|
323
|
+
function assignValue(object, key, value) {
|
|
324
|
+
var objValue = object[key];
|
|
325
|
+
if (!(hasOwnProperty.call(object, key) && eq_default(objValue, value)) || value === undefined && !(key in object)) {
|
|
326
|
+
_baseAssignValue_default(object, key, value);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
var objectProto, hasOwnProperty, _assignValue_default;
|
|
330
|
+
var init__assignValue = __esm(() => {
|
|
331
|
+
init__baseAssignValue();
|
|
332
|
+
init_eq();
|
|
333
|
+
objectProto = Object.prototype;
|
|
334
|
+
hasOwnProperty = objectProto.hasOwnProperty;
|
|
335
|
+
_assignValue_default = assignValue;
|
|
336
|
+
});
|
|
337
|
+
|
|
338
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copyObject.js
|
|
339
|
+
function copyObject(source, props, object, customizer) {
|
|
340
|
+
var isNew = !object;
|
|
341
|
+
object || (object = {});
|
|
342
|
+
var index = -1, length = props.length;
|
|
343
|
+
while (++index < length) {
|
|
344
|
+
var key = props[index];
|
|
345
|
+
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined;
|
|
346
|
+
if (newValue === undefined) {
|
|
347
|
+
newValue = source[key];
|
|
348
|
+
}
|
|
349
|
+
if (isNew) {
|
|
350
|
+
_baseAssignValue_default(object, key, newValue);
|
|
351
|
+
} else {
|
|
352
|
+
_assignValue_default(object, key, newValue);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
return object;
|
|
356
|
+
}
|
|
357
|
+
var _copyObject_default;
|
|
358
|
+
var init__copyObject = __esm(() => {
|
|
359
|
+
init__assignValue();
|
|
360
|
+
init__baseAssignValue();
|
|
361
|
+
_copyObject_default = copyObject;
|
|
362
|
+
});
|
|
363
|
+
|
|
364
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssign.js
|
|
365
|
+
function baseAssign(object, source) {
|
|
366
|
+
return object && _copyObject_default(source, keys_default(source), object);
|
|
367
|
+
}
|
|
368
|
+
var _baseAssign_default;
|
|
369
|
+
var init__baseAssign = __esm(() => {
|
|
370
|
+
init__copyObject();
|
|
371
|
+
init_keys();
|
|
372
|
+
_baseAssign_default = baseAssign;
|
|
373
|
+
});
|
|
374
|
+
|
|
375
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeysIn.js
|
|
376
|
+
function nativeKeysIn(object) {
|
|
377
|
+
var result = [];
|
|
378
|
+
if (object != null) {
|
|
379
|
+
for (var key in Object(object)) {
|
|
380
|
+
result.push(key);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
return result;
|
|
384
|
+
}
|
|
385
|
+
var _nativeKeysIn_default;
|
|
386
|
+
var init__nativeKeysIn = __esm(() => {
|
|
387
|
+
_nativeKeysIn_default = nativeKeysIn;
|
|
388
|
+
});
|
|
389
|
+
|
|
390
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseKeysIn.js
|
|
391
|
+
function baseKeysIn(object) {
|
|
392
|
+
if (!isObject_default(object)) {
|
|
393
|
+
return _nativeKeysIn_default(object);
|
|
394
|
+
}
|
|
395
|
+
var isProto = _isPrototype_default(object), result = [];
|
|
396
|
+
for (var key in object) {
|
|
397
|
+
if (!(key == "constructor" && (isProto || !hasOwnProperty2.call(object, key)))) {
|
|
398
|
+
result.push(key);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
return result;
|
|
402
|
+
}
|
|
403
|
+
var objectProto2, hasOwnProperty2, _baseKeysIn_default;
|
|
404
|
+
var init__baseKeysIn = __esm(() => {
|
|
405
|
+
init_isObject();
|
|
406
|
+
init__isPrototype();
|
|
407
|
+
init__nativeKeysIn();
|
|
408
|
+
objectProto2 = Object.prototype;
|
|
409
|
+
hasOwnProperty2 = objectProto2.hasOwnProperty;
|
|
410
|
+
_baseKeysIn_default = baseKeysIn;
|
|
411
|
+
});
|
|
412
|
+
|
|
413
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keysIn.js
|
|
414
|
+
function keysIn(object) {
|
|
415
|
+
return isArrayLike_default(object) ? _arrayLikeKeys_default(object, true) : _baseKeysIn_default(object);
|
|
416
|
+
}
|
|
417
|
+
var keysIn_default;
|
|
418
|
+
var init_keysIn = __esm(() => {
|
|
419
|
+
init__arrayLikeKeys();
|
|
420
|
+
init__baseKeysIn();
|
|
421
|
+
init_isArrayLike();
|
|
422
|
+
keysIn_default = keysIn;
|
|
423
|
+
});
|
|
424
|
+
|
|
425
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignIn.js
|
|
426
|
+
function baseAssignIn(object, source) {
|
|
427
|
+
return object && _copyObject_default(source, keysIn_default(source), object);
|
|
428
|
+
}
|
|
429
|
+
var _baseAssignIn_default;
|
|
430
|
+
var init__baseAssignIn = __esm(() => {
|
|
431
|
+
init__copyObject();
|
|
432
|
+
init_keysIn();
|
|
433
|
+
_baseAssignIn_default = baseAssignIn;
|
|
434
|
+
});
|
|
435
|
+
|
|
436
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneBuffer.js
|
|
437
|
+
var exports__cloneBuffer = {};
|
|
438
|
+
__export(exports__cloneBuffer, {
|
|
439
|
+
default: () => _cloneBuffer_default
|
|
440
|
+
});
|
|
441
|
+
function cloneBuffer(buffer, isDeep) {
|
|
442
|
+
if (isDeep) {
|
|
443
|
+
return buffer.slice();
|
|
444
|
+
}
|
|
445
|
+
var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
|
446
|
+
buffer.copy(result);
|
|
447
|
+
return result;
|
|
448
|
+
}
|
|
449
|
+
var freeExports, freeModule, moduleExports, Buffer2, allocUnsafe, _cloneBuffer_default;
|
|
450
|
+
var init__cloneBuffer = __esm(() => {
|
|
451
|
+
init__root();
|
|
452
|
+
freeExports = typeof exports__cloneBuffer == "object" && exports__cloneBuffer && !exports__cloneBuffer.nodeType && exports__cloneBuffer;
|
|
453
|
+
freeModule = freeExports && typeof module__cloneBuffer == "object" && module__cloneBuffer && !module__cloneBuffer.nodeType && module__cloneBuffer;
|
|
454
|
+
moduleExports = freeModule && freeModule.exports === freeExports;
|
|
455
|
+
Buffer2 = moduleExports ? _root_default.Buffer : undefined;
|
|
456
|
+
allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined;
|
|
457
|
+
_cloneBuffer_default = cloneBuffer;
|
|
458
|
+
});
|
|
459
|
+
|
|
460
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copyArray.js
|
|
461
|
+
function copyArray(source, array) {
|
|
462
|
+
var index = -1, length = source.length;
|
|
463
|
+
array || (array = Array(length));
|
|
464
|
+
while (++index < length) {
|
|
465
|
+
array[index] = source[index];
|
|
466
|
+
}
|
|
467
|
+
return array;
|
|
468
|
+
}
|
|
469
|
+
var _copyArray_default;
|
|
470
|
+
var init__copyArray = __esm(() => {
|
|
471
|
+
_copyArray_default = copyArray;
|
|
472
|
+
});
|
|
473
|
+
|
|
474
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copySymbols.js
|
|
475
|
+
function copySymbols(source, object) {
|
|
476
|
+
return _copyObject_default(source, _getSymbols_default(source), object);
|
|
477
|
+
}
|
|
478
|
+
var _copySymbols_default;
|
|
479
|
+
var init__copySymbols = __esm(() => {
|
|
480
|
+
init__copyObject();
|
|
481
|
+
init__getSymbols();
|
|
482
|
+
_copySymbols_default = copySymbols;
|
|
483
|
+
});
|
|
484
|
+
|
|
485
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getPrototype.js
|
|
486
|
+
var getPrototype, _getPrototype_default;
|
|
487
|
+
var init__getPrototype = __esm(() => {
|
|
488
|
+
init__overArg();
|
|
489
|
+
getPrototype = _overArg_default(Object.getPrototypeOf, Object);
|
|
490
|
+
_getPrototype_default = getPrototype;
|
|
491
|
+
});
|
|
492
|
+
|
|
493
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getSymbolsIn.js
|
|
494
|
+
var nativeGetSymbols, getSymbolsIn, _getSymbolsIn_default;
|
|
495
|
+
var init__getSymbolsIn = __esm(() => {
|
|
496
|
+
init__arrayPush();
|
|
497
|
+
init__getPrototype();
|
|
498
|
+
init__getSymbols();
|
|
499
|
+
init_stubArray();
|
|
500
|
+
nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
501
|
+
getSymbolsIn = !nativeGetSymbols ? stubArray_default : function(object) {
|
|
502
|
+
var result = [];
|
|
503
|
+
while (object) {
|
|
504
|
+
_arrayPush_default(result, _getSymbols_default(object));
|
|
505
|
+
object = _getPrototype_default(object);
|
|
506
|
+
}
|
|
507
|
+
return result;
|
|
508
|
+
};
|
|
509
|
+
_getSymbolsIn_default = getSymbolsIn;
|
|
510
|
+
});
|
|
511
|
+
|
|
512
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copySymbolsIn.js
|
|
513
|
+
function copySymbolsIn(source, object) {
|
|
514
|
+
return _copyObject_default(source, _getSymbolsIn_default(source), object);
|
|
515
|
+
}
|
|
516
|
+
var _copySymbolsIn_default;
|
|
517
|
+
var init__copySymbolsIn = __esm(() => {
|
|
518
|
+
init__copyObject();
|
|
519
|
+
init__getSymbolsIn();
|
|
520
|
+
_copySymbolsIn_default = copySymbolsIn;
|
|
521
|
+
});
|
|
522
|
+
|
|
523
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeysIn.js
|
|
524
|
+
function getAllKeysIn(object) {
|
|
525
|
+
return _baseGetAllKeys_default(object, keysIn_default, _getSymbolsIn_default);
|
|
526
|
+
}
|
|
527
|
+
var _getAllKeysIn_default;
|
|
528
|
+
var init__getAllKeysIn = __esm(() => {
|
|
529
|
+
init__baseGetAllKeys();
|
|
530
|
+
init__getSymbolsIn();
|
|
531
|
+
init_keysIn();
|
|
532
|
+
_getAllKeysIn_default = getAllKeysIn;
|
|
533
|
+
});
|
|
534
|
+
|
|
535
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneArray.js
|
|
536
|
+
function initCloneArray(array) {
|
|
537
|
+
var length = array.length, result = new array.constructor(length);
|
|
538
|
+
if (length && typeof array[0] == "string" && hasOwnProperty3.call(array, "index")) {
|
|
539
|
+
result.index = array.index;
|
|
540
|
+
result.input = array.input;
|
|
541
|
+
}
|
|
542
|
+
return result;
|
|
543
|
+
}
|
|
544
|
+
var objectProto3, hasOwnProperty3, _initCloneArray_default;
|
|
545
|
+
var init__initCloneArray = __esm(() => {
|
|
546
|
+
objectProto3 = Object.prototype;
|
|
547
|
+
hasOwnProperty3 = objectProto3.hasOwnProperty;
|
|
548
|
+
_initCloneArray_default = initCloneArray;
|
|
549
|
+
});
|
|
550
|
+
|
|
551
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneArrayBuffer.js
|
|
552
|
+
function cloneArrayBuffer(arrayBuffer) {
|
|
553
|
+
var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
|
554
|
+
new _Uint8Array_default(result).set(new _Uint8Array_default(arrayBuffer));
|
|
555
|
+
return result;
|
|
556
|
+
}
|
|
557
|
+
var _cloneArrayBuffer_default;
|
|
558
|
+
var init__cloneArrayBuffer = __esm(() => {
|
|
559
|
+
init__Uint8Array();
|
|
560
|
+
_cloneArrayBuffer_default = cloneArrayBuffer;
|
|
561
|
+
});
|
|
562
|
+
|
|
563
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneDataView.js
|
|
564
|
+
function cloneDataView(dataView, isDeep) {
|
|
565
|
+
var buffer = isDeep ? _cloneArrayBuffer_default(dataView.buffer) : dataView.buffer;
|
|
566
|
+
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
|
567
|
+
}
|
|
568
|
+
var _cloneDataView_default;
|
|
569
|
+
var init__cloneDataView = __esm(() => {
|
|
570
|
+
init__cloneArrayBuffer();
|
|
571
|
+
_cloneDataView_default = cloneDataView;
|
|
572
|
+
});
|
|
573
|
+
|
|
574
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneRegExp.js
|
|
575
|
+
function cloneRegExp(regexp) {
|
|
576
|
+
var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
|
577
|
+
result.lastIndex = regexp.lastIndex;
|
|
578
|
+
return result;
|
|
579
|
+
}
|
|
580
|
+
var reFlags, _cloneRegExp_default;
|
|
581
|
+
var init__cloneRegExp = __esm(() => {
|
|
582
|
+
reFlags = /\w*$/;
|
|
583
|
+
_cloneRegExp_default = cloneRegExp;
|
|
584
|
+
});
|
|
585
|
+
|
|
586
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneSymbol.js
|
|
587
|
+
function cloneSymbol(symbol) {
|
|
588
|
+
return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
|
589
|
+
}
|
|
590
|
+
var symbolProto, symbolValueOf, _cloneSymbol_default;
|
|
591
|
+
var init__cloneSymbol = __esm(() => {
|
|
592
|
+
init__Symbol();
|
|
593
|
+
symbolProto = _Symbol_default ? _Symbol_default.prototype : undefined;
|
|
594
|
+
symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;
|
|
595
|
+
_cloneSymbol_default = cloneSymbol;
|
|
596
|
+
});
|
|
597
|
+
|
|
598
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneTypedArray.js
|
|
599
|
+
function cloneTypedArray(typedArray, isDeep) {
|
|
600
|
+
var buffer = isDeep ? _cloneArrayBuffer_default(typedArray.buffer) : typedArray.buffer;
|
|
601
|
+
return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
|
602
|
+
}
|
|
603
|
+
var _cloneTypedArray_default;
|
|
604
|
+
var init__cloneTypedArray = __esm(() => {
|
|
605
|
+
init__cloneArrayBuffer();
|
|
606
|
+
_cloneTypedArray_default = cloneTypedArray;
|
|
607
|
+
});
|
|
608
|
+
|
|
609
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneByTag.js
|
|
610
|
+
function initCloneByTag(object, tag, isDeep) {
|
|
611
|
+
var Ctor = object.constructor;
|
|
612
|
+
switch (tag) {
|
|
613
|
+
case arrayBufferTag:
|
|
614
|
+
return _cloneArrayBuffer_default(object);
|
|
615
|
+
case boolTag:
|
|
616
|
+
case dateTag:
|
|
617
|
+
return new Ctor(+object);
|
|
618
|
+
case dataViewTag:
|
|
619
|
+
return _cloneDataView_default(object, isDeep);
|
|
620
|
+
case float32Tag:
|
|
621
|
+
case float64Tag:
|
|
622
|
+
case int8Tag:
|
|
623
|
+
case int16Tag:
|
|
624
|
+
case int32Tag:
|
|
625
|
+
case uint8Tag:
|
|
626
|
+
case uint8ClampedTag:
|
|
627
|
+
case uint16Tag:
|
|
628
|
+
case uint32Tag:
|
|
629
|
+
return _cloneTypedArray_default(object, isDeep);
|
|
630
|
+
case mapTag:
|
|
631
|
+
return new Ctor;
|
|
632
|
+
case numberTag:
|
|
633
|
+
case stringTag:
|
|
634
|
+
return new Ctor(object);
|
|
635
|
+
case regexpTag:
|
|
636
|
+
return _cloneRegExp_default(object);
|
|
637
|
+
case setTag:
|
|
638
|
+
return new Ctor;
|
|
639
|
+
case symbolTag:
|
|
640
|
+
return _cloneSymbol_default(object);
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
var boolTag = "[object Boolean]", dateTag = "[object Date]", mapTag = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]", _initCloneByTag_default;
|
|
644
|
+
var init__initCloneByTag = __esm(() => {
|
|
645
|
+
init__cloneArrayBuffer();
|
|
646
|
+
init__cloneDataView();
|
|
647
|
+
init__cloneRegExp();
|
|
648
|
+
init__cloneSymbol();
|
|
649
|
+
init__cloneTypedArray();
|
|
650
|
+
_initCloneByTag_default = initCloneByTag;
|
|
651
|
+
});
|
|
652
|
+
|
|
653
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseCreate.js
|
|
654
|
+
var objectCreate, baseCreate, _baseCreate_default;
|
|
655
|
+
var init__baseCreate = __esm(() => {
|
|
656
|
+
init_isObject();
|
|
657
|
+
objectCreate = Object.create;
|
|
658
|
+
baseCreate = function() {
|
|
659
|
+
function object() {}
|
|
660
|
+
return function(proto) {
|
|
661
|
+
if (!isObject_default(proto)) {
|
|
662
|
+
return {};
|
|
663
|
+
}
|
|
664
|
+
if (objectCreate) {
|
|
665
|
+
return objectCreate(proto);
|
|
666
|
+
}
|
|
667
|
+
object.prototype = proto;
|
|
668
|
+
var result = new object;
|
|
669
|
+
object.prototype = undefined;
|
|
670
|
+
return result;
|
|
671
|
+
};
|
|
672
|
+
}();
|
|
673
|
+
_baseCreate_default = baseCreate;
|
|
674
|
+
});
|
|
675
|
+
|
|
676
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneObject.js
|
|
677
|
+
function initCloneObject(object) {
|
|
678
|
+
return typeof object.constructor == "function" && !_isPrototype_default(object) ? _baseCreate_default(_getPrototype_default(object)) : {};
|
|
679
|
+
}
|
|
680
|
+
var _initCloneObject_default;
|
|
681
|
+
var init__initCloneObject = __esm(() => {
|
|
682
|
+
init__baseCreate();
|
|
683
|
+
init__getPrototype();
|
|
684
|
+
init__isPrototype();
|
|
685
|
+
_initCloneObject_default = initCloneObject;
|
|
686
|
+
});
|
|
687
|
+
|
|
688
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMap.js
|
|
689
|
+
function baseIsMap(value) {
|
|
690
|
+
return isObjectLike_default(value) && _getTag_default(value) == mapTag2;
|
|
691
|
+
}
|
|
692
|
+
var mapTag2 = "[object Map]", _baseIsMap_default;
|
|
693
|
+
var init__baseIsMap = __esm(() => {
|
|
694
|
+
init__getTag();
|
|
695
|
+
init_isObjectLike();
|
|
696
|
+
_baseIsMap_default = baseIsMap;
|
|
697
|
+
});
|
|
698
|
+
|
|
699
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isMap.js
|
|
700
|
+
var nodeIsMap, isMap, isMap_default;
|
|
701
|
+
var init_isMap = __esm(() => {
|
|
702
|
+
init__baseIsMap();
|
|
703
|
+
init__baseUnary();
|
|
704
|
+
init__nodeUtil();
|
|
705
|
+
nodeIsMap = _nodeUtil_default && _nodeUtil_default.isMap;
|
|
706
|
+
isMap = nodeIsMap ? _baseUnary_default(nodeIsMap) : _baseIsMap_default;
|
|
707
|
+
isMap_default = isMap;
|
|
708
|
+
});
|
|
709
|
+
|
|
710
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsSet.js
|
|
711
|
+
function baseIsSet(value) {
|
|
712
|
+
return isObjectLike_default(value) && _getTag_default(value) == setTag2;
|
|
713
|
+
}
|
|
714
|
+
var setTag2 = "[object Set]", _baseIsSet_default;
|
|
715
|
+
var init__baseIsSet = __esm(() => {
|
|
716
|
+
init__getTag();
|
|
717
|
+
init_isObjectLike();
|
|
718
|
+
_baseIsSet_default = baseIsSet;
|
|
719
|
+
});
|
|
720
|
+
|
|
721
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSet.js
|
|
722
|
+
var nodeIsSet, isSet, isSet_default;
|
|
723
|
+
var init_isSet = __esm(() => {
|
|
724
|
+
init__baseIsSet();
|
|
725
|
+
init__baseUnary();
|
|
726
|
+
init__nodeUtil();
|
|
727
|
+
nodeIsSet = _nodeUtil_default && _nodeUtil_default.isSet;
|
|
728
|
+
isSet = nodeIsSet ? _baseUnary_default(nodeIsSet) : _baseIsSet_default;
|
|
729
|
+
isSet_default = isSet;
|
|
730
|
+
});
|
|
731
|
+
|
|
732
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseClone.js
|
|
733
|
+
function baseClone(value, bitmask, customizer, key, object, stack) {
|
|
734
|
+
var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG;
|
|
735
|
+
if (customizer) {
|
|
736
|
+
result = object ? customizer(value, key, object, stack) : customizer(value);
|
|
737
|
+
}
|
|
738
|
+
if (result !== undefined) {
|
|
739
|
+
return result;
|
|
740
|
+
}
|
|
741
|
+
if (!isObject_default(value)) {
|
|
742
|
+
return value;
|
|
743
|
+
}
|
|
744
|
+
var isArr = isArray_default(value);
|
|
745
|
+
if (isArr) {
|
|
746
|
+
result = _initCloneArray_default(value);
|
|
747
|
+
if (!isDeep) {
|
|
748
|
+
return _copyArray_default(value, result);
|
|
749
|
+
}
|
|
750
|
+
} else {
|
|
751
|
+
var tag = _getTag_default(value), isFunc = tag == funcTag || tag == genTag;
|
|
752
|
+
if (isBuffer_default(value)) {
|
|
753
|
+
return _cloneBuffer_default(value, isDeep);
|
|
754
|
+
}
|
|
755
|
+
if (tag == objectTag || tag == argsTag || isFunc && !object) {
|
|
756
|
+
result = isFlat || isFunc ? {} : _initCloneObject_default(value);
|
|
757
|
+
if (!isDeep) {
|
|
758
|
+
return isFlat ? _copySymbolsIn_default(value, _baseAssignIn_default(result, value)) : _copySymbols_default(value, _baseAssign_default(result, value));
|
|
759
|
+
}
|
|
760
|
+
} else {
|
|
761
|
+
if (!cloneableTags[tag]) {
|
|
762
|
+
return object ? value : {};
|
|
763
|
+
}
|
|
764
|
+
result = _initCloneByTag_default(value, tag, isDeep);
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
stack || (stack = new _Stack_default);
|
|
768
|
+
var stacked = stack.get(value);
|
|
769
|
+
if (stacked) {
|
|
770
|
+
return stacked;
|
|
771
|
+
}
|
|
772
|
+
stack.set(value, result);
|
|
773
|
+
if (isSet_default(value)) {
|
|
774
|
+
value.forEach(function(subValue) {
|
|
775
|
+
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
|
776
|
+
});
|
|
777
|
+
} else if (isMap_default(value)) {
|
|
778
|
+
value.forEach(function(subValue, key2) {
|
|
779
|
+
result.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
var keysFunc = isFull ? isFlat ? _getAllKeysIn_default : _getAllKeys_default : isFlat ? keysIn_default : keys_default;
|
|
783
|
+
var props = isArr ? undefined : keysFunc(value);
|
|
784
|
+
_arrayEach_default(props || value, function(subValue, key2) {
|
|
785
|
+
if (props) {
|
|
786
|
+
key2 = subValue;
|
|
787
|
+
subValue = value[key2];
|
|
788
|
+
}
|
|
789
|
+
_assignValue_default(result, key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
|
|
790
|
+
});
|
|
791
|
+
return result;
|
|
792
|
+
}
|
|
793
|
+
var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4, argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag2 = "[object Boolean]", dateTag2 = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag3 = "[object Map]", numberTag2 = "[object Number]", objectTag = "[object Object]", regexpTag2 = "[object RegExp]", setTag3 = "[object Set]", stringTag2 = "[object String]", symbolTag2 = "[object Symbol]", weakMapTag = "[object WeakMap]", arrayBufferTag2 = "[object ArrayBuffer]", dataViewTag2 = "[object DataView]", float32Tag2 = "[object Float32Array]", float64Tag2 = "[object Float64Array]", int8Tag2 = "[object Int8Array]", int16Tag2 = "[object Int16Array]", int32Tag2 = "[object Int32Array]", uint8Tag2 = "[object Uint8Array]", uint8ClampedTag2 = "[object Uint8ClampedArray]", uint16Tag2 = "[object Uint16Array]", uint32Tag2 = "[object Uint32Array]", cloneableTags, _baseClone_default;
|
|
794
|
+
var init__baseClone = __esm(() => {
|
|
795
|
+
init__Stack();
|
|
796
|
+
init__arrayEach();
|
|
797
|
+
init__assignValue();
|
|
798
|
+
init__baseAssign();
|
|
799
|
+
init__baseAssignIn();
|
|
800
|
+
init__cloneBuffer();
|
|
801
|
+
init__copyArray();
|
|
802
|
+
init__copySymbols();
|
|
803
|
+
init__copySymbolsIn();
|
|
804
|
+
init__getAllKeys();
|
|
805
|
+
init__getAllKeysIn();
|
|
806
|
+
init__getTag();
|
|
807
|
+
init__initCloneArray();
|
|
808
|
+
init__initCloneByTag();
|
|
809
|
+
init__initCloneObject();
|
|
810
|
+
init_isArray();
|
|
811
|
+
init_isBuffer();
|
|
812
|
+
init_isMap();
|
|
813
|
+
init_isObject();
|
|
814
|
+
init_isSet();
|
|
815
|
+
init_keys();
|
|
816
|
+
init_keysIn();
|
|
817
|
+
cloneableTags = {};
|
|
818
|
+
cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag2] = cloneableTags[dataViewTag2] = cloneableTags[boolTag2] = cloneableTags[dateTag2] = cloneableTags[float32Tag2] = cloneableTags[float64Tag2] = cloneableTags[int8Tag2] = cloneableTags[int16Tag2] = cloneableTags[int32Tag2] = cloneableTags[mapTag3] = cloneableTags[numberTag2] = cloneableTags[objectTag] = cloneableTags[regexpTag2] = cloneableTags[setTag3] = cloneableTags[stringTag2] = cloneableTags[symbolTag2] = cloneableTags[uint8Tag2] = cloneableTags[uint8ClampedTag2] = cloneableTags[uint16Tag2] = cloneableTags[uint32Tag2] = true;
|
|
819
|
+
cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
|
820
|
+
_baseClone_default = baseClone;
|
|
821
|
+
});
|
|
822
|
+
|
|
823
|
+
// node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.js
|
|
824
|
+
function cloneDeep(value) {
|
|
825
|
+
return _baseClone_default(value, CLONE_DEEP_FLAG2 | CLONE_SYMBOLS_FLAG2);
|
|
826
|
+
}
|
|
827
|
+
var CLONE_DEEP_FLAG2 = 1, CLONE_SYMBOLS_FLAG2 = 4, cloneDeep_default;
|
|
828
|
+
var init_cloneDeep = __esm(() => {
|
|
829
|
+
init__baseClone();
|
|
830
|
+
cloneDeep_default = cloneDeep;
|
|
831
|
+
});
|
|
832
|
+
|
|
833
|
+
// src/utils/debugFilter.ts
|
|
834
|
+
function extractDebugCategories(message) {
|
|
835
|
+
const categories = [];
|
|
836
|
+
const mcpMatch = message.match(/^MCP server ["']([^"']+)["']/);
|
|
837
|
+
if (mcpMatch && mcpMatch[1]) {
|
|
838
|
+
categories.push("mcp");
|
|
839
|
+
categories.push(mcpMatch[1].toLowerCase());
|
|
840
|
+
} else {
|
|
841
|
+
const prefixMatch = message.match(/^([^:[]+):/);
|
|
842
|
+
if (prefixMatch && prefixMatch[1]) {
|
|
843
|
+
categories.push(prefixMatch[1].trim().toLowerCase());
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
const bracketMatch = message.match(/^\[([^\]]+)]/);
|
|
847
|
+
if (bracketMatch && bracketMatch[1]) {
|
|
848
|
+
categories.push(bracketMatch[1].trim().toLowerCase());
|
|
849
|
+
}
|
|
850
|
+
if (message.toLowerCase().includes("1p event:")) {
|
|
851
|
+
categories.push("1p");
|
|
852
|
+
}
|
|
853
|
+
const secondaryMatch = message.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/);
|
|
854
|
+
if (secondaryMatch && secondaryMatch[1]) {
|
|
855
|
+
const secondary = secondaryMatch[1].trim().toLowerCase();
|
|
856
|
+
if (secondary.length < 30 && !secondary.includes(" ")) {
|
|
857
|
+
categories.push(secondary);
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
return Array.from(new Set(categories));
|
|
861
|
+
}
|
|
862
|
+
function shouldShowDebugCategories(categories, filter) {
|
|
863
|
+
if (!filter) {
|
|
864
|
+
return true;
|
|
865
|
+
}
|
|
866
|
+
if (categories.length === 0) {
|
|
867
|
+
return false;
|
|
868
|
+
}
|
|
869
|
+
if (filter.isExclusive) {
|
|
870
|
+
return !categories.some((cat) => filter.exclude.includes(cat));
|
|
871
|
+
} else {
|
|
872
|
+
return categories.some((cat) => filter.include.includes(cat));
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
function shouldShowDebugMessage(message, filter) {
|
|
876
|
+
if (!filter) {
|
|
877
|
+
return true;
|
|
878
|
+
}
|
|
879
|
+
const categories = extractDebugCategories(message);
|
|
880
|
+
return shouldShowDebugCategories(categories, filter);
|
|
881
|
+
}
|
|
882
|
+
var parseDebugFilter;
|
|
883
|
+
var init_debugFilter = __esm(() => {
|
|
884
|
+
init_memoize();
|
|
885
|
+
parseDebugFilter = memoize_default((filterString) => {
|
|
886
|
+
if (!filterString || filterString.trim() === "") {
|
|
887
|
+
return null;
|
|
888
|
+
}
|
|
889
|
+
const filters = filterString.split(",").map((f) => f.trim()).filter(Boolean);
|
|
890
|
+
if (filters.length === 0) {
|
|
891
|
+
return null;
|
|
892
|
+
}
|
|
893
|
+
const hasExclusive = filters.some((f) => f.startsWith("!"));
|
|
894
|
+
const hasInclusive = filters.some((f) => !f.startsWith("!"));
|
|
895
|
+
if (hasExclusive && hasInclusive) {
|
|
896
|
+
return null;
|
|
897
|
+
}
|
|
898
|
+
const cleanFilters = filters.map((f) => f.replace(/^!/, "").toLowerCase());
|
|
899
|
+
return {
|
|
900
|
+
include: hasExclusive ? [] : cleanFilters,
|
|
901
|
+
exclude: hasExclusive ? cleanFilters : [],
|
|
902
|
+
isExclusive: hasExclusive
|
|
903
|
+
};
|
|
904
|
+
});
|
|
905
|
+
});
|
|
906
|
+
|
|
907
|
+
// src/utils/fsOperations.ts
|
|
908
|
+
import * as fs from "fs";
|
|
909
|
+
import {
|
|
910
|
+
mkdir as mkdirPromise,
|
|
911
|
+
open,
|
|
912
|
+
readdir as readdirPromise,
|
|
913
|
+
readFile as readFilePromise,
|
|
914
|
+
rename as renamePromise,
|
|
915
|
+
rmdir as rmdirPromise,
|
|
916
|
+
rm as rmPromise,
|
|
917
|
+
stat as statPromise,
|
|
918
|
+
unlink as unlinkPromise
|
|
919
|
+
} from "fs/promises";
|
|
920
|
+
import { homedir } from "os";
|
|
921
|
+
import * as nodePath from "path";
|
|
922
|
+
function safeResolvePath(fs2, filePath) {
|
|
923
|
+
if (filePath.startsWith("//") || filePath.startsWith("\\\\")) {
|
|
924
|
+
return { resolvedPath: filePath, isSymlink: false, isCanonical: false };
|
|
925
|
+
}
|
|
926
|
+
try {
|
|
927
|
+
const stats = fs2.lstatSync(filePath);
|
|
928
|
+
if (stats.isFIFO() || stats.isSocket() || stats.isCharacterDevice() || stats.isBlockDevice()) {
|
|
929
|
+
return { resolvedPath: filePath, isSymlink: false, isCanonical: false };
|
|
930
|
+
}
|
|
931
|
+
const resolvedPath = fs2.realpathSync(filePath);
|
|
932
|
+
return {
|
|
933
|
+
resolvedPath,
|
|
934
|
+
isSymlink: resolvedPath !== filePath,
|
|
935
|
+
isCanonical: true
|
|
936
|
+
};
|
|
937
|
+
} catch (_error) {
|
|
938
|
+
return { resolvedPath: filePath, isSymlink: false, isCanonical: false };
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
function isDuplicatePath(fs2, filePath, loadedPaths) {
|
|
942
|
+
const { resolvedPath } = safeResolvePath(fs2, filePath);
|
|
943
|
+
if (loadedPaths.has(resolvedPath)) {
|
|
944
|
+
return true;
|
|
945
|
+
}
|
|
946
|
+
loadedPaths.add(resolvedPath);
|
|
947
|
+
return false;
|
|
948
|
+
}
|
|
949
|
+
function resolveDeepestExistingAncestorSync(fs2, absolutePath) {
|
|
950
|
+
let dir = absolutePath;
|
|
951
|
+
const segments = [];
|
|
952
|
+
while (dir !== nodePath.dirname(dir)) {
|
|
953
|
+
let st;
|
|
954
|
+
try {
|
|
955
|
+
st = fs2.lstatSync(dir);
|
|
956
|
+
} catch {
|
|
957
|
+
segments.unshift(nodePath.basename(dir));
|
|
958
|
+
dir = nodePath.dirname(dir);
|
|
959
|
+
continue;
|
|
960
|
+
}
|
|
961
|
+
if (st.isSymbolicLink()) {
|
|
962
|
+
try {
|
|
963
|
+
const resolved = fs2.realpathSync(dir);
|
|
964
|
+
return segments.length === 0 ? resolved : nodePath.join(resolved, ...segments);
|
|
965
|
+
} catch {
|
|
966
|
+
const target = fs2.readlinkSync(dir);
|
|
967
|
+
const absTarget = nodePath.isAbsolute(target) ? target : nodePath.resolve(nodePath.dirname(dir), target);
|
|
968
|
+
return segments.length === 0 ? absTarget : nodePath.join(absTarget, ...segments);
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
try {
|
|
972
|
+
const resolved = fs2.realpathSync(dir);
|
|
973
|
+
if (resolved !== dir) {
|
|
974
|
+
return segments.length === 0 ? resolved : nodePath.join(resolved, ...segments);
|
|
975
|
+
}
|
|
976
|
+
} catch {}
|
|
977
|
+
return;
|
|
978
|
+
}
|
|
979
|
+
return;
|
|
980
|
+
}
|
|
981
|
+
function getPathsForPermissionCheck(inputPath) {
|
|
982
|
+
let path = inputPath;
|
|
983
|
+
if (path === "~") {
|
|
984
|
+
path = homedir().normalize("NFC");
|
|
985
|
+
} else if (path.startsWith("~/")) {
|
|
986
|
+
path = nodePath.join(homedir().normalize("NFC"), path.slice(2));
|
|
987
|
+
}
|
|
988
|
+
const pathSet = new Set;
|
|
989
|
+
const fsImpl = getFsImplementation();
|
|
990
|
+
pathSet.add(path);
|
|
991
|
+
if (path.startsWith("//") || path.startsWith("\\\\")) {
|
|
992
|
+
return Array.from(pathSet);
|
|
993
|
+
}
|
|
994
|
+
try {
|
|
995
|
+
let currentPath = path;
|
|
996
|
+
const visited = new Set;
|
|
997
|
+
const maxDepth = 40;
|
|
998
|
+
for (let depth = 0;depth < maxDepth; depth++) {
|
|
999
|
+
if (visited.has(currentPath)) {
|
|
1000
|
+
break;
|
|
1001
|
+
}
|
|
1002
|
+
visited.add(currentPath);
|
|
1003
|
+
if (!fsImpl.existsSync(currentPath)) {
|
|
1004
|
+
if (currentPath === path) {
|
|
1005
|
+
const resolved = resolveDeepestExistingAncestorSync(fsImpl, path);
|
|
1006
|
+
if (resolved !== undefined) {
|
|
1007
|
+
pathSet.add(resolved);
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
break;
|
|
1011
|
+
}
|
|
1012
|
+
const stats = fsImpl.lstatSync(currentPath);
|
|
1013
|
+
if (stats.isFIFO() || stats.isSocket() || stats.isCharacterDevice() || stats.isBlockDevice()) {
|
|
1014
|
+
break;
|
|
1015
|
+
}
|
|
1016
|
+
if (!stats.isSymbolicLink()) {
|
|
1017
|
+
break;
|
|
1018
|
+
}
|
|
1019
|
+
const target = fsImpl.readlinkSync(currentPath);
|
|
1020
|
+
const absoluteTarget = nodePath.isAbsolute(target) ? target : nodePath.resolve(nodePath.dirname(currentPath), target);
|
|
1021
|
+
pathSet.add(absoluteTarget);
|
|
1022
|
+
currentPath = absoluteTarget;
|
|
1023
|
+
}
|
|
1024
|
+
} catch {}
|
|
1025
|
+
const { resolvedPath, isSymlink } = safeResolvePath(fsImpl, path);
|
|
1026
|
+
if (isSymlink && resolvedPath !== path) {
|
|
1027
|
+
pathSet.add(resolvedPath);
|
|
1028
|
+
}
|
|
1029
|
+
return Array.from(pathSet);
|
|
1030
|
+
}
|
|
1031
|
+
function getFsImplementation() {
|
|
1032
|
+
return activeFs;
|
|
1033
|
+
}
|
|
1034
|
+
async function readFileRange(path, offset, maxBytes) {
|
|
1035
|
+
let __stack = [];
|
|
1036
|
+
try {
|
|
1037
|
+
const fh = __using(__stack, await open(path, "r"), 1);
|
|
1038
|
+
const size = (await fh.stat()).size;
|
|
1039
|
+
if (size <= offset) {
|
|
1040
|
+
return null;
|
|
1041
|
+
}
|
|
1042
|
+
const bytesToRead = Math.min(size - offset, maxBytes);
|
|
1043
|
+
const buffer = Buffer.allocUnsafe(bytesToRead);
|
|
1044
|
+
let totalRead = 0;
|
|
1045
|
+
while (totalRead < bytesToRead) {
|
|
1046
|
+
const { bytesRead } = await fh.read(buffer, totalRead, bytesToRead - totalRead, offset + totalRead);
|
|
1047
|
+
if (bytesRead === 0) {
|
|
1048
|
+
break;
|
|
1049
|
+
}
|
|
1050
|
+
totalRead += bytesRead;
|
|
1051
|
+
}
|
|
1052
|
+
return {
|
|
1053
|
+
content: buffer.toString("utf8", 0, totalRead),
|
|
1054
|
+
bytesRead: totalRead,
|
|
1055
|
+
bytesTotal: size
|
|
1056
|
+
};
|
|
1057
|
+
} catch (_catch) {
|
|
1058
|
+
var _err = _catch, _hasErr = 1;
|
|
1059
|
+
} finally {
|
|
1060
|
+
var _promise = __callDispose(__stack, _err, _hasErr);
|
|
1061
|
+
_promise && await _promise;
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
async function tailFile(path, maxBytes) {
|
|
1065
|
+
let __stack = [];
|
|
1066
|
+
try {
|
|
1067
|
+
const fh = __using(__stack, await open(path, "r"), 1);
|
|
1068
|
+
const size = (await fh.stat()).size;
|
|
1069
|
+
if (size === 0) {
|
|
1070
|
+
return { content: "", bytesRead: 0, bytesTotal: 0 };
|
|
1071
|
+
}
|
|
1072
|
+
const offset = Math.max(0, size - maxBytes);
|
|
1073
|
+
const bytesToRead = size - offset;
|
|
1074
|
+
const buffer = Buffer.allocUnsafe(bytesToRead);
|
|
1075
|
+
let totalRead = 0;
|
|
1076
|
+
while (totalRead < bytesToRead) {
|
|
1077
|
+
const { bytesRead } = await fh.read(buffer, totalRead, bytesToRead - totalRead, offset + totalRead);
|
|
1078
|
+
if (bytesRead === 0) {
|
|
1079
|
+
break;
|
|
1080
|
+
}
|
|
1081
|
+
totalRead += bytesRead;
|
|
1082
|
+
}
|
|
1083
|
+
return {
|
|
1084
|
+
content: buffer.toString("utf8", 0, totalRead),
|
|
1085
|
+
bytesRead: totalRead,
|
|
1086
|
+
bytesTotal: size
|
|
1087
|
+
};
|
|
1088
|
+
} catch (_catch) {
|
|
1089
|
+
var _err = _catch, _hasErr = 1;
|
|
1090
|
+
} finally {
|
|
1091
|
+
var _promise = __callDispose(__stack, _err, _hasErr);
|
|
1092
|
+
_promise && await _promise;
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
async function* readLinesReverse(path) {
|
|
1096
|
+
const CHUNK_SIZE = 1024 * 4;
|
|
1097
|
+
const fileHandle = await open(path, "r");
|
|
1098
|
+
try {
|
|
1099
|
+
const stats = await fileHandle.stat();
|
|
1100
|
+
let position = stats.size;
|
|
1101
|
+
let remainder = Buffer.alloc(0);
|
|
1102
|
+
const buffer = Buffer.alloc(CHUNK_SIZE);
|
|
1103
|
+
while (position > 0) {
|
|
1104
|
+
const currentChunkSize = Math.min(CHUNK_SIZE, position);
|
|
1105
|
+
position -= currentChunkSize;
|
|
1106
|
+
await fileHandle.read(buffer, 0, currentChunkSize, position);
|
|
1107
|
+
const combined = Buffer.concat([
|
|
1108
|
+
buffer.subarray(0, currentChunkSize),
|
|
1109
|
+
remainder
|
|
1110
|
+
]);
|
|
1111
|
+
const firstNewline = combined.indexOf(10);
|
|
1112
|
+
if (firstNewline === -1) {
|
|
1113
|
+
remainder = combined;
|
|
1114
|
+
continue;
|
|
1115
|
+
}
|
|
1116
|
+
remainder = Buffer.from(combined.subarray(0, firstNewline));
|
|
1117
|
+
const lines = combined.toString("utf8", firstNewline + 1).split(`
|
|
1118
|
+
`);
|
|
1119
|
+
for (let i = lines.length - 1;i >= 0; i--) {
|
|
1120
|
+
const line = lines[i];
|
|
1121
|
+
if (line) {
|
|
1122
|
+
yield line;
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
if (remainder.length > 0) {
|
|
1127
|
+
yield remainder.toString("utf8");
|
|
1128
|
+
}
|
|
1129
|
+
} finally {
|
|
1130
|
+
await fileHandle.close();
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
var NodeFsOperations, activeFs;
|
|
1134
|
+
var init_fsOperations = __esm(() => {
|
|
1135
|
+
init_errors();
|
|
1136
|
+
init_slowOperations();
|
|
1137
|
+
NodeFsOperations = {
|
|
1138
|
+
cwd() {
|
|
1139
|
+
return process.cwd();
|
|
1140
|
+
},
|
|
1141
|
+
existsSync(fsPath) {
|
|
1142
|
+
let __stack = [];
|
|
1143
|
+
try {
|
|
1144
|
+
const _ = __using(__stack, slowLogging`fs.existsSync(${fsPath})`, 0);
|
|
1145
|
+
return fs.existsSync(fsPath);
|
|
1146
|
+
} catch (_catch) {
|
|
1147
|
+
var _err = _catch, _hasErr = 1;
|
|
1148
|
+
} finally {
|
|
1149
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1150
|
+
}
|
|
1151
|
+
},
|
|
1152
|
+
async stat(fsPath) {
|
|
1153
|
+
return statPromise(fsPath);
|
|
1154
|
+
},
|
|
1155
|
+
async readdir(fsPath) {
|
|
1156
|
+
return readdirPromise(fsPath, { withFileTypes: true });
|
|
1157
|
+
},
|
|
1158
|
+
async unlink(fsPath) {
|
|
1159
|
+
return unlinkPromise(fsPath);
|
|
1160
|
+
},
|
|
1161
|
+
async rmdir(fsPath) {
|
|
1162
|
+
return rmdirPromise(fsPath);
|
|
1163
|
+
},
|
|
1164
|
+
async rm(fsPath, options) {
|
|
1165
|
+
return rmPromise(fsPath, options);
|
|
1166
|
+
},
|
|
1167
|
+
async mkdir(dirPath, options) {
|
|
1168
|
+
try {
|
|
1169
|
+
await mkdirPromise(dirPath, { recursive: true, ...options });
|
|
1170
|
+
} catch (e) {
|
|
1171
|
+
if (getErrnoCode(e) !== "EEXIST")
|
|
1172
|
+
throw e;
|
|
1173
|
+
}
|
|
1174
|
+
},
|
|
1175
|
+
async readFile(fsPath, options) {
|
|
1176
|
+
return readFilePromise(fsPath, { encoding: options.encoding });
|
|
1177
|
+
},
|
|
1178
|
+
async rename(oldPath, newPath) {
|
|
1179
|
+
return renamePromise(oldPath, newPath);
|
|
1180
|
+
},
|
|
1181
|
+
statSync(fsPath) {
|
|
1182
|
+
let __stack = [];
|
|
1183
|
+
try {
|
|
1184
|
+
const _ = __using(__stack, slowLogging`fs.statSync(${fsPath})`, 0);
|
|
1185
|
+
return fs.statSync(fsPath);
|
|
1186
|
+
} catch (_catch) {
|
|
1187
|
+
var _err = _catch, _hasErr = 1;
|
|
1188
|
+
} finally {
|
|
1189
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1190
|
+
}
|
|
1191
|
+
},
|
|
1192
|
+
lstatSync(fsPath) {
|
|
1193
|
+
let __stack = [];
|
|
1194
|
+
try {
|
|
1195
|
+
const _ = __using(__stack, slowLogging`fs.lstatSync(${fsPath})`, 0);
|
|
1196
|
+
return fs.lstatSync(fsPath);
|
|
1197
|
+
} catch (_catch) {
|
|
1198
|
+
var _err = _catch, _hasErr = 1;
|
|
1199
|
+
} finally {
|
|
1200
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1201
|
+
}
|
|
1202
|
+
},
|
|
1203
|
+
readFileSync(fsPath, options) {
|
|
1204
|
+
let __stack = [];
|
|
1205
|
+
try {
|
|
1206
|
+
const _ = __using(__stack, slowLogging`fs.readFileSync(${fsPath})`, 0);
|
|
1207
|
+
return fs.readFileSync(fsPath, { encoding: options.encoding });
|
|
1208
|
+
} catch (_catch) {
|
|
1209
|
+
var _err = _catch, _hasErr = 1;
|
|
1210
|
+
} finally {
|
|
1211
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1212
|
+
}
|
|
1213
|
+
},
|
|
1214
|
+
readFileBytesSync(fsPath) {
|
|
1215
|
+
let __stack = [];
|
|
1216
|
+
try {
|
|
1217
|
+
const _ = __using(__stack, slowLogging`fs.readFileBytesSync(${fsPath})`, 0);
|
|
1218
|
+
return fs.readFileSync(fsPath);
|
|
1219
|
+
} catch (_catch) {
|
|
1220
|
+
var _err = _catch, _hasErr = 1;
|
|
1221
|
+
} finally {
|
|
1222
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1223
|
+
}
|
|
1224
|
+
},
|
|
1225
|
+
readSync(fsPath, options) {
|
|
1226
|
+
let __stack = [];
|
|
1227
|
+
try {
|
|
1228
|
+
const _ = __using(__stack, slowLogging`fs.readSync(${fsPath}, ${options.length} bytes)`, 0);
|
|
1229
|
+
let fd = undefined;
|
|
1230
|
+
try {
|
|
1231
|
+
fd = fs.openSync(fsPath, "r");
|
|
1232
|
+
const buffer = Buffer.alloc(options.length);
|
|
1233
|
+
const bytesRead = fs.readSync(fd, buffer, 0, options.length, 0);
|
|
1234
|
+
return { buffer, bytesRead };
|
|
1235
|
+
} finally {
|
|
1236
|
+
if (fd)
|
|
1237
|
+
fs.closeSync(fd);
|
|
1238
|
+
}
|
|
1239
|
+
} catch (_catch) {
|
|
1240
|
+
var _err = _catch, _hasErr = 1;
|
|
1241
|
+
} finally {
|
|
1242
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1243
|
+
}
|
|
1244
|
+
},
|
|
1245
|
+
appendFileSync(path, data, options) {
|
|
1246
|
+
let __stack = [];
|
|
1247
|
+
try {
|
|
1248
|
+
const _ = __using(__stack, slowLogging`fs.appendFileSync(${path}, ${data.length} chars)`, 0);
|
|
1249
|
+
if (options?.mode !== undefined) {
|
|
1250
|
+
try {
|
|
1251
|
+
const fd = fs.openSync(path, "ax", options.mode);
|
|
1252
|
+
try {
|
|
1253
|
+
fs.appendFileSync(fd, data);
|
|
1254
|
+
} finally {
|
|
1255
|
+
fs.closeSync(fd);
|
|
1256
|
+
}
|
|
1257
|
+
return;
|
|
1258
|
+
} catch (e) {
|
|
1259
|
+
if (getErrnoCode(e) !== "EEXIST")
|
|
1260
|
+
throw e;
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
fs.appendFileSync(path, data);
|
|
1264
|
+
} catch (_catch) {
|
|
1265
|
+
var _err = _catch, _hasErr = 1;
|
|
1266
|
+
} finally {
|
|
1267
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1268
|
+
}
|
|
1269
|
+
},
|
|
1270
|
+
copyFileSync(src, dest) {
|
|
1271
|
+
let __stack = [];
|
|
1272
|
+
try {
|
|
1273
|
+
const _ = __using(__stack, slowLogging`fs.copyFileSync(${src} \u2192 ${dest})`, 0);
|
|
1274
|
+
fs.copyFileSync(src, dest);
|
|
1275
|
+
} catch (_catch) {
|
|
1276
|
+
var _err = _catch, _hasErr = 1;
|
|
1277
|
+
} finally {
|
|
1278
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1279
|
+
}
|
|
1280
|
+
},
|
|
1281
|
+
unlinkSync(path) {
|
|
1282
|
+
let __stack = [];
|
|
1283
|
+
try {
|
|
1284
|
+
const _ = __using(__stack, slowLogging`fs.unlinkSync(${path})`, 0);
|
|
1285
|
+
fs.unlinkSync(path);
|
|
1286
|
+
} catch (_catch) {
|
|
1287
|
+
var _err = _catch, _hasErr = 1;
|
|
1288
|
+
} finally {
|
|
1289
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1290
|
+
}
|
|
1291
|
+
},
|
|
1292
|
+
renameSync(oldPath, newPath) {
|
|
1293
|
+
let __stack = [];
|
|
1294
|
+
try {
|
|
1295
|
+
const _ = __using(__stack, slowLogging`fs.renameSync(${oldPath} \u2192 ${newPath})`, 0);
|
|
1296
|
+
fs.renameSync(oldPath, newPath);
|
|
1297
|
+
} catch (_catch) {
|
|
1298
|
+
var _err = _catch, _hasErr = 1;
|
|
1299
|
+
} finally {
|
|
1300
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1301
|
+
}
|
|
1302
|
+
},
|
|
1303
|
+
linkSync(target, path) {
|
|
1304
|
+
let __stack = [];
|
|
1305
|
+
try {
|
|
1306
|
+
const _ = __using(__stack, slowLogging`fs.linkSync(${target} \u2192 ${path})`, 0);
|
|
1307
|
+
fs.linkSync(target, path);
|
|
1308
|
+
} catch (_catch) {
|
|
1309
|
+
var _err = _catch, _hasErr = 1;
|
|
1310
|
+
} finally {
|
|
1311
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1312
|
+
}
|
|
1313
|
+
},
|
|
1314
|
+
symlinkSync(target, path, type) {
|
|
1315
|
+
let __stack = [];
|
|
1316
|
+
try {
|
|
1317
|
+
const _ = __using(__stack, slowLogging`fs.symlinkSync(${target} \u2192 ${path})`, 0);
|
|
1318
|
+
fs.symlinkSync(target, path, type);
|
|
1319
|
+
} catch (_catch) {
|
|
1320
|
+
var _err = _catch, _hasErr = 1;
|
|
1321
|
+
} finally {
|
|
1322
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1323
|
+
}
|
|
1324
|
+
},
|
|
1325
|
+
readlinkSync(path) {
|
|
1326
|
+
let __stack = [];
|
|
1327
|
+
try {
|
|
1328
|
+
const _ = __using(__stack, slowLogging`fs.readlinkSync(${path})`, 0);
|
|
1329
|
+
return fs.readlinkSync(path);
|
|
1330
|
+
} catch (_catch) {
|
|
1331
|
+
var _err = _catch, _hasErr = 1;
|
|
1332
|
+
} finally {
|
|
1333
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1334
|
+
}
|
|
1335
|
+
},
|
|
1336
|
+
realpathSync(path) {
|
|
1337
|
+
let __stack = [];
|
|
1338
|
+
try {
|
|
1339
|
+
const _ = __using(__stack, slowLogging`fs.realpathSync(${path})`, 0);
|
|
1340
|
+
return fs.realpathSync(path).normalize("NFC");
|
|
1341
|
+
} catch (_catch) {
|
|
1342
|
+
var _err = _catch, _hasErr = 1;
|
|
1343
|
+
} finally {
|
|
1344
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1345
|
+
}
|
|
1346
|
+
},
|
|
1347
|
+
mkdirSync(dirPath, options) {
|
|
1348
|
+
let __stack = [];
|
|
1349
|
+
try {
|
|
1350
|
+
const _ = __using(__stack, slowLogging`fs.mkdirSync(${dirPath})`, 0);
|
|
1351
|
+
const mkdirOptions = {
|
|
1352
|
+
recursive: true
|
|
1353
|
+
};
|
|
1354
|
+
if (options?.mode !== undefined) {
|
|
1355
|
+
mkdirOptions.mode = options.mode;
|
|
1356
|
+
}
|
|
1357
|
+
try {
|
|
1358
|
+
fs.mkdirSync(dirPath, mkdirOptions);
|
|
1359
|
+
} catch (e) {
|
|
1360
|
+
if (getErrnoCode(e) !== "EEXIST")
|
|
1361
|
+
throw e;
|
|
1362
|
+
}
|
|
1363
|
+
} catch (_catch) {
|
|
1364
|
+
var _err = _catch, _hasErr = 1;
|
|
1365
|
+
} finally {
|
|
1366
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1367
|
+
}
|
|
1368
|
+
},
|
|
1369
|
+
readdirSync(dirPath) {
|
|
1370
|
+
let __stack = [];
|
|
1371
|
+
try {
|
|
1372
|
+
const _ = __using(__stack, slowLogging`fs.readdirSync(${dirPath})`, 0);
|
|
1373
|
+
return fs.readdirSync(dirPath, { withFileTypes: true });
|
|
1374
|
+
} catch (_catch) {
|
|
1375
|
+
var _err = _catch, _hasErr = 1;
|
|
1376
|
+
} finally {
|
|
1377
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1378
|
+
}
|
|
1379
|
+
},
|
|
1380
|
+
readdirStringSync(dirPath) {
|
|
1381
|
+
let __stack = [];
|
|
1382
|
+
try {
|
|
1383
|
+
const _ = __using(__stack, slowLogging`fs.readdirStringSync(${dirPath})`, 0);
|
|
1384
|
+
return fs.readdirSync(dirPath);
|
|
1385
|
+
} catch (_catch) {
|
|
1386
|
+
var _err = _catch, _hasErr = 1;
|
|
1387
|
+
} finally {
|
|
1388
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1389
|
+
}
|
|
1390
|
+
},
|
|
1391
|
+
isDirEmptySync(dirPath) {
|
|
1392
|
+
let __stack = [];
|
|
1393
|
+
try {
|
|
1394
|
+
const _ = __using(__stack, slowLogging`fs.isDirEmptySync(${dirPath})`, 0);
|
|
1395
|
+
const files = this.readdirSync(dirPath);
|
|
1396
|
+
return files.length === 0;
|
|
1397
|
+
} catch (_catch) {
|
|
1398
|
+
var _err = _catch, _hasErr = 1;
|
|
1399
|
+
} finally {
|
|
1400
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1401
|
+
}
|
|
1402
|
+
},
|
|
1403
|
+
rmdirSync(dirPath) {
|
|
1404
|
+
let __stack = [];
|
|
1405
|
+
try {
|
|
1406
|
+
const _ = __using(__stack, slowLogging`fs.rmdirSync(${dirPath})`, 0);
|
|
1407
|
+
fs.rmdirSync(dirPath);
|
|
1408
|
+
} catch (_catch) {
|
|
1409
|
+
var _err = _catch, _hasErr = 1;
|
|
1410
|
+
} finally {
|
|
1411
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1412
|
+
}
|
|
1413
|
+
},
|
|
1414
|
+
rmSync(path, options) {
|
|
1415
|
+
let __stack = [];
|
|
1416
|
+
try {
|
|
1417
|
+
const _ = __using(__stack, slowLogging`fs.rmSync(${path})`, 0);
|
|
1418
|
+
fs.rmSync(path, options);
|
|
1419
|
+
} catch (_catch) {
|
|
1420
|
+
var _err = _catch, _hasErr = 1;
|
|
1421
|
+
} finally {
|
|
1422
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1423
|
+
}
|
|
1424
|
+
},
|
|
1425
|
+
createWriteStream(path) {
|
|
1426
|
+
return fs.createWriteStream(path);
|
|
1427
|
+
},
|
|
1428
|
+
async readFileBytes(fsPath, maxBytes) {
|
|
1429
|
+
if (maxBytes === undefined) {
|
|
1430
|
+
return readFilePromise(fsPath);
|
|
1431
|
+
}
|
|
1432
|
+
const handle = await open(fsPath, "r");
|
|
1433
|
+
try {
|
|
1434
|
+
const { size } = await handle.stat();
|
|
1435
|
+
const readSize = Math.min(size, maxBytes);
|
|
1436
|
+
const buffer = Buffer.allocUnsafe(readSize);
|
|
1437
|
+
let offset = 0;
|
|
1438
|
+
while (offset < readSize) {
|
|
1439
|
+
const { bytesRead } = await handle.read(buffer, offset, readSize - offset, offset);
|
|
1440
|
+
if (bytesRead === 0)
|
|
1441
|
+
break;
|
|
1442
|
+
offset += bytesRead;
|
|
1443
|
+
}
|
|
1444
|
+
return offset < readSize ? buffer.subarray(0, offset) : buffer;
|
|
1445
|
+
} finally {
|
|
1446
|
+
await handle.close();
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
};
|
|
1450
|
+
activeFs = NodeFsOperations;
|
|
1451
|
+
});
|
|
1452
|
+
|
|
1453
|
+
// src/utils/debug.ts
|
|
1454
|
+
import { appendFile, mkdir, symlink, unlink } from "fs/promises";
|
|
1455
|
+
import { dirname as dirname2, join as join2 } from "path";
|
|
1456
|
+
function enableDebugLogging() {
|
|
1457
|
+
const wasActive = isDebugMode() || process.env.USER_TYPE === "ant";
|
|
1458
|
+
runtimeDebugEnabled = true;
|
|
1459
|
+
isDebugMode.cache.clear?.();
|
|
1460
|
+
return wasActive;
|
|
1461
|
+
}
|
|
1462
|
+
function shouldLogDebugMessage(message) {
|
|
1463
|
+
if (false) {}
|
|
1464
|
+
if (process.env.USER_TYPE !== "ant" && !isDebugMode()) {
|
|
1465
|
+
return false;
|
|
1466
|
+
}
|
|
1467
|
+
if (typeof process === "undefined" || typeof process.versions === "undefined" || typeof process.versions.node === "undefined") {
|
|
1468
|
+
return false;
|
|
1469
|
+
}
|
|
1470
|
+
const filter = getDebugFilter();
|
|
1471
|
+
return shouldShowDebugMessage(message, filter);
|
|
1472
|
+
}
|
|
1473
|
+
function setHasFormattedOutput(value) {
|
|
1474
|
+
hasFormattedOutput = value;
|
|
1475
|
+
}
|
|
1476
|
+
function getHasFormattedOutput() {
|
|
1477
|
+
return hasFormattedOutput;
|
|
1478
|
+
}
|
|
1479
|
+
async function appendAsync(needMkdir, dir, path, content) {
|
|
1480
|
+
if (needMkdir) {
|
|
1481
|
+
await mkdir(dir, { recursive: true }).catch(() => {});
|
|
1482
|
+
}
|
|
1483
|
+
await appendFile(path, content);
|
|
1484
|
+
updateLatestDebugLogSymlink();
|
|
1485
|
+
}
|
|
1486
|
+
function noop() {}
|
|
1487
|
+
function getDebugWriter() {
|
|
1488
|
+
if (!debugWriter) {
|
|
1489
|
+
let ensuredDir = null;
|
|
1490
|
+
debugWriter = createBufferedWriter({
|
|
1491
|
+
writeFn: (content) => {
|
|
1492
|
+
const path = getDebugLogPath();
|
|
1493
|
+
const dir = dirname2(path);
|
|
1494
|
+
const needMkdir = ensuredDir !== dir;
|
|
1495
|
+
ensuredDir = dir;
|
|
1496
|
+
if (isDebugMode()) {
|
|
1497
|
+
if (needMkdir) {
|
|
1498
|
+
try {
|
|
1499
|
+
getFsImplementation().mkdirSync(dir);
|
|
1500
|
+
} catch {}
|
|
1501
|
+
}
|
|
1502
|
+
getFsImplementation().appendFileSync(path, content);
|
|
1503
|
+
updateLatestDebugLogSymlink();
|
|
1504
|
+
return;
|
|
1505
|
+
}
|
|
1506
|
+
pendingWrite = pendingWrite.then(appendAsync.bind(null, needMkdir, dir, path, content)).catch(noop);
|
|
1507
|
+
},
|
|
1508
|
+
flushIntervalMs: 1000,
|
|
1509
|
+
maxBufferSize: 100,
|
|
1510
|
+
immediateMode: isDebugMode()
|
|
1511
|
+
});
|
|
1512
|
+
registerCleanup(async () => {
|
|
1513
|
+
debugWriter?.dispose();
|
|
1514
|
+
await pendingWrite;
|
|
1515
|
+
});
|
|
1516
|
+
}
|
|
1517
|
+
return debugWriter;
|
|
1518
|
+
}
|
|
1519
|
+
function logForDebugging(message, { level } = {
|
|
1520
|
+
level: "debug"
|
|
1521
|
+
}) {
|
|
1522
|
+
if (LEVEL_ORDER[level] < LEVEL_ORDER[getMinDebugLogLevel()]) {
|
|
1523
|
+
return;
|
|
1524
|
+
}
|
|
1525
|
+
if (!shouldLogDebugMessage(message)) {
|
|
1526
|
+
return;
|
|
1527
|
+
}
|
|
1528
|
+
if (hasFormattedOutput && message.includes(`
|
|
1529
|
+
`)) {
|
|
1530
|
+
message = jsonStringify(message);
|
|
1531
|
+
}
|
|
1532
|
+
const timestamp = new Date().toISOString();
|
|
1533
|
+
const output = `${timestamp} [${level.toUpperCase()}] ${message.trim()}
|
|
1534
|
+
`;
|
|
1535
|
+
if (isDebugToStdErr()) {
|
|
1536
|
+
writeToStderr(output);
|
|
1537
|
+
return;
|
|
1538
|
+
}
|
|
1539
|
+
getDebugWriter().write(output);
|
|
1540
|
+
}
|
|
1541
|
+
function getDebugLogPath() {
|
|
1542
|
+
return getDebugFilePath() ?? process.env.CLAUDE_CODE_DEBUG_LOGS_DIR ?? join2(getClaudeConfigHomeDir(), "debug", `${getSessionId()}.txt`);
|
|
1543
|
+
}
|
|
1544
|
+
function logAntError(context, error) {
|
|
1545
|
+
if (process.env.USER_TYPE !== "ant") {
|
|
1546
|
+
return;
|
|
1547
|
+
}
|
|
1548
|
+
if (error instanceof Error && error.stack) {
|
|
1549
|
+
logForDebugging(`[ANT-ONLY] ${context} stack trace:
|
|
1550
|
+
${error.stack}`, {
|
|
1551
|
+
level: "error"
|
|
1552
|
+
});
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
var LEVEL_ORDER, getMinDebugLogLevel, runtimeDebugEnabled = false, isDebugMode, getDebugFilter, isDebugToStdErr, getDebugFilePath, hasFormattedOutput = false, debugWriter = null, pendingWrite, updateLatestDebugLogSymlink;
|
|
1556
|
+
var init_debug = __esm(() => {
|
|
1557
|
+
init_memoize();
|
|
1558
|
+
init_state();
|
|
1559
|
+
init_bufferedWriter();
|
|
1560
|
+
init_cleanupRegistry();
|
|
1561
|
+
init_debugFilter();
|
|
1562
|
+
init_envUtils();
|
|
1563
|
+
init_fsOperations();
|
|
1564
|
+
init_process();
|
|
1565
|
+
init_slowOperations();
|
|
1566
|
+
LEVEL_ORDER = {
|
|
1567
|
+
verbose: 0,
|
|
1568
|
+
debug: 1,
|
|
1569
|
+
info: 2,
|
|
1570
|
+
warn: 3,
|
|
1571
|
+
error: 4
|
|
1572
|
+
};
|
|
1573
|
+
getMinDebugLogLevel = memoize_default(() => {
|
|
1574
|
+
const raw = process.env.CLAUDE_CODE_DEBUG_LOG_LEVEL?.toLowerCase().trim();
|
|
1575
|
+
if (raw && Object.hasOwn(LEVEL_ORDER, raw)) {
|
|
1576
|
+
return raw;
|
|
1577
|
+
}
|
|
1578
|
+
return "debug";
|
|
1579
|
+
});
|
|
1580
|
+
isDebugMode = memoize_default(() => {
|
|
1581
|
+
return runtimeDebugEnabled || isEnvTruthy(process.env.DEBUG) || isEnvTruthy(process.env.DEBUG_SDK) || process.argv.includes("--debug") || process.argv.includes("-d") || isDebugToStdErr() || process.argv.some((arg) => arg.startsWith("--debug=")) || getDebugFilePath() !== null;
|
|
1582
|
+
});
|
|
1583
|
+
getDebugFilter = memoize_default(() => {
|
|
1584
|
+
const debugArg = process.argv.find((arg) => arg.startsWith("--debug="));
|
|
1585
|
+
if (!debugArg) {
|
|
1586
|
+
return null;
|
|
1587
|
+
}
|
|
1588
|
+
const filterPattern = debugArg.substring("--debug=".length);
|
|
1589
|
+
return parseDebugFilter(filterPattern);
|
|
1590
|
+
});
|
|
1591
|
+
isDebugToStdErr = memoize_default(() => {
|
|
1592
|
+
return process.argv.includes("--debug-to-stderr") || process.argv.includes("-d2e");
|
|
1593
|
+
});
|
|
1594
|
+
getDebugFilePath = memoize_default(() => {
|
|
1595
|
+
for (let i = 0;i < process.argv.length; i++) {
|
|
1596
|
+
const arg = process.argv[i];
|
|
1597
|
+
if (arg.startsWith("--debug-file=")) {
|
|
1598
|
+
return arg.substring("--debug-file=".length);
|
|
1599
|
+
}
|
|
1600
|
+
if (arg === "--debug-file" && i + 1 < process.argv.length) {
|
|
1601
|
+
return process.argv[i + 1];
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
return null;
|
|
1605
|
+
});
|
|
1606
|
+
pendingWrite = Promise.resolve();
|
|
1607
|
+
updateLatestDebugLogSymlink = memoize_default(async () => {
|
|
1608
|
+
try {
|
|
1609
|
+
const debugLogPath = getDebugLogPath();
|
|
1610
|
+
const debugLogsDir = dirname2(debugLogPath);
|
|
1611
|
+
const latestSymlinkPath = join2(debugLogsDir, "latest");
|
|
1612
|
+
await unlink(latestSymlinkPath).catch(() => {});
|
|
1613
|
+
await symlink(debugLogPath, latestSymlinkPath);
|
|
1614
|
+
} catch {}
|
|
1615
|
+
});
|
|
1616
|
+
});
|
|
1617
|
+
|
|
1618
|
+
// src/utils/slowOperations.ts
|
|
1619
|
+
import {
|
|
1620
|
+
closeSync as closeSync2,
|
|
1621
|
+
writeFileSync as fsWriteFileSync,
|
|
1622
|
+
fsyncSync,
|
|
1623
|
+
openSync as openSync2
|
|
1624
|
+
} from "fs";
|
|
1625
|
+
function slowLoggingExternal() {
|
|
1626
|
+
return NOOP_LOGGER;
|
|
1627
|
+
}
|
|
1628
|
+
function jsonStringify(value, replacer, space) {
|
|
1629
|
+
let __stack = [];
|
|
1630
|
+
try {
|
|
1631
|
+
const _ = __using(__stack, slowLogging`JSON.stringify(${value})`, 0);
|
|
1632
|
+
return JSON.stringify(value, replacer, space);
|
|
1633
|
+
} catch (_catch) {
|
|
1634
|
+
var _err = _catch, _hasErr = 1;
|
|
1635
|
+
} finally {
|
|
1636
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
function clone(value, options) {
|
|
1640
|
+
let __stack = [];
|
|
1641
|
+
try {
|
|
1642
|
+
const _ = __using(__stack, slowLogging`structuredClone(${value})`, 0);
|
|
1643
|
+
return structuredClone(value, options);
|
|
1644
|
+
} catch (_catch) {
|
|
1645
|
+
var _err = _catch, _hasErr = 1;
|
|
1646
|
+
} finally {
|
|
1647
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
function writeFileSync_DEPRECATED(filePath, data, options) {
|
|
1651
|
+
let __stack = [];
|
|
1652
|
+
try {
|
|
1653
|
+
const _ = __using(__stack, slowLogging`fs.writeFileSync(${filePath}, ${data})`, 0);
|
|
1654
|
+
const needsFlush = options !== null && typeof options === "object" && "flush" in options && options.flush === true;
|
|
1655
|
+
if (needsFlush) {
|
|
1656
|
+
const encoding = typeof options === "object" && "encoding" in options ? options.encoding : undefined;
|
|
1657
|
+
const mode = typeof options === "object" && "mode" in options ? options.mode : undefined;
|
|
1658
|
+
let fd;
|
|
1659
|
+
try {
|
|
1660
|
+
fd = openSync2(filePath, "w", mode);
|
|
1661
|
+
fsWriteFileSync(fd, data, { encoding: encoding ?? undefined });
|
|
1662
|
+
fsyncSync(fd);
|
|
1663
|
+
} finally {
|
|
1664
|
+
if (fd !== undefined) {
|
|
1665
|
+
closeSync2(fd);
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
} else {
|
|
1669
|
+
fsWriteFileSync(filePath, data, options);
|
|
1670
|
+
}
|
|
1671
|
+
} catch (_catch) {
|
|
1672
|
+
var _err = _catch, _hasErr = 1;
|
|
1673
|
+
} finally {
|
|
1674
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
var SLOW_OPERATION_THRESHOLD_MS, NOOP_LOGGER, slowLogging, jsonParse = (text, reviver) => {
|
|
1678
|
+
let __stack = [];
|
|
1679
|
+
try {
|
|
1680
|
+
const _ = __using(__stack, slowLogging`JSON.parse(${text})`, 0);
|
|
1681
|
+
return typeof reviver === "undefined" ? JSON.parse(text) : JSON.parse(text, reviver);
|
|
1682
|
+
} catch (_catch) {
|
|
1683
|
+
var _err = _catch, _hasErr = 1;
|
|
1684
|
+
} finally {
|
|
1685
|
+
__callDispose(__stack, _err, _hasErr);
|
|
1686
|
+
}
|
|
1687
|
+
};
|
|
1688
|
+
var init_slowOperations = __esm(() => {
|
|
1689
|
+
init_state();
|
|
1690
|
+
init_debug();
|
|
1691
|
+
SLOW_OPERATION_THRESHOLD_MS = (() => {
|
|
1692
|
+
const envValue = process.env.CLAUDE_CODE_SLOW_OPERATION_THRESHOLD_MS;
|
|
1693
|
+
if (envValue !== undefined) {
|
|
1694
|
+
const parsed = Number(envValue);
|
|
1695
|
+
if (!Number.isNaN(parsed) && parsed >= 0) {
|
|
1696
|
+
return parsed;
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
if (true) {
|
|
1700
|
+
return 20;
|
|
1701
|
+
}
|
|
1702
|
+
if (process.env.USER_TYPE === "ant") {
|
|
1703
|
+
return 300;
|
|
1704
|
+
}
|
|
1705
|
+
return Infinity;
|
|
1706
|
+
})();
|
|
1707
|
+
NOOP_LOGGER = { [Symbol.dispose]() {} };
|
|
1708
|
+
slowLogging = slowLoggingExternal;
|
|
1709
|
+
});
|
|
1710
|
+
|
|
1711
|
+
export { createBufferedWriter, init_bufferedWriter, registerCleanup, runCleanupFunctions, init_cleanupRegistry, ClaudeError, MalformedCommandError, AbortError, isAbortError, ConfigParseError, ShellError, TeleportOperationError, TelemetrySafeError_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, hasExactErrorMessage, toError, errorMessage, getErrnoCode, isENOENT, getErrnoPath, isFsInaccessible, classifyAxiosError, init_errors, _defineProperty_default, init__defineProperty, _baseAssignValue_default, init__baseAssignValue, _assignValue_default, init__assignValue, _copyObject_default, init__copyObject, keysIn_default, init_keysIn, _cloneBuffer_default, init__cloneBuffer, _copyArray_default, init__copyArray, _getPrototype_default, init__getPrototype, _getAllKeysIn_default, init__getAllKeysIn, _cloneTypedArray_default, init__cloneTypedArray, _initCloneObject_default, init__initCloneObject, _baseClone_default, init__baseClone, cloneDeep_default, init_cloneDeep, slowLogging, jsonStringify, jsonParse, clone, writeFileSync_DEPRECATED, init_slowOperations, safeResolvePath, isDuplicatePath, getPathsForPermissionCheck, getFsImplementation, readFileRange, tailFile, readLinesReverse, init_fsOperations, isDebugMode, enableDebugLogging, isDebugToStdErr, setHasFormattedOutput, getHasFormattedOutput, logForDebugging, getDebugLogPath, logAntError, init_debug };
|