@costrict/csc 4.1.1 → 4.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-456jxy81.js → chunk-03g34taj.js} +55 -52
- package/dist/{chunk-mdmh4hh4.js → chunk-04h1dzn8.js} +58 -55
- package/dist/{chunk-3xwn1ww1.js → chunk-04js9982.js} +14 -14
- package/dist/{chunk-gfsh3syp.js → chunk-0cm9fcaq.js} +4 -4
- package/dist/{chunk-fnjqn6ez.js → chunk-0d8p649e.js} +200 -1296
- package/dist/{chunk-vtwf9pyn.js → chunk-0ftbdtb6.js} +2 -2
- package/dist/{chunk-7kznscxn.js → chunk-0kv76cch.js} +69 -66
- package/dist/{chunk-cp4da168.js → chunk-0q8601fc.js} +56 -53
- package/dist/{chunk-vhnm2h49.js → chunk-0s2qjxt0.js} +2 -2
- package/dist/{chunk-wvexwzsv.js → chunk-0vjhwg78.js} +4 -4
- package/dist/{chunk-wvh4g9jt.js → chunk-0wfby4jk.js} +55 -52
- package/dist/{chunk-d9tcjh43.js → chunk-0wzfz235.js} +55 -52
- package/dist/{chunk-8py19hja.js → chunk-0z3swktk.js} +58 -55
- package/dist/{chunk-na7nxj7y.js → chunk-0zwtzj7s.js} +4 -4
- package/dist/{chunk-304wjbyj.js → chunk-12b1dsca.js} +3 -3
- package/dist/{chunk-c05zaj6g.js → chunk-172aq1cm.js} +3 -3
- package/dist/{chunk-emvhjwh9.js → chunk-1928vvnf.js} +16 -16
- package/dist/{chunk-3yc8k84c.js → chunk-1gta3pqg.js} +26 -1390
- package/dist/{chunk-wn11yvgy.js → chunk-1hr30g9j.js} +56 -53
- package/dist/{chunk-hyptxmaj.js → chunk-1ta87008.js} +13 -13
- package/dist/{chunk-pjvthvm1.js → chunk-1tsg5bqp.js} +7 -7
- package/dist/{chunk-9ey1xvcm.js → chunk-1xdybmyp.js} +2 -2
- package/dist/{chunk-bz6pjkch.js → chunk-1xqh8b38.js} +2 -2
- package/dist/{chunk-p2r92sj1.js → chunk-1z6393pz.js} +55 -52
- package/dist/{chunk-js10hr63.js → chunk-20rdctr8.js} +59 -56
- package/dist/{chunk-78kph36p.js → chunk-2278qvvz.js} +82 -69
- package/dist/{chunk-krmmbjp9.js → chunk-27rca2qk.js} +14 -14
- package/dist/{chunk-b1my2ag9.js → chunk-28p3x5mq.js} +58 -55
- package/dist/{chunk-5nnjgn3n.js → chunk-29n8fs0h.js} +3 -3
- package/dist/{chunk-4xbk1cv1.js → chunk-2bahqsy8.js} +5 -5
- package/dist/{chunk-b0hjzm3t.js → chunk-2d4az1sb.js} +1051 -213
- package/dist/{chunk-bbm8cs3b.js → chunk-2dtsff0m.js} +2 -2
- package/dist/{chunk-hjfabpxk.js → chunk-2dvsb5m8.js} +3 -3
- package/dist/{chunk-fkjqakzs.js → chunk-2ea63hn5.js} +55 -52
- package/dist/{chunk-tbx1hn1a.js → chunk-2heyngx7.js} +55 -52
- package/dist/{chunk-cb3vp4tb.js → chunk-2n4jnkr3.js} +5 -5
- package/dist/{chunk-04fesxxb.js → chunk-2npy5n4d.js} +3 -3
- package/dist/{chunk-5bw23taw.js → chunk-2yz7ej7r.js} +3 -3
- package/dist/{chunk-naenwsts.js → chunk-347n8wrb.js} +56 -53
- package/dist/{chunk-qzwja18r.js → chunk-365z3p8q.js} +4 -4
- package/dist/{chunk-pathr6ec.js → chunk-3ax3g4ky.js} +5 -5
- package/dist/{chunk-6nqv04m4.js → chunk-3c22f5y8.js} +4 -4
- package/dist/{chunk-5x884kq9.js → chunk-3ed5qycn.js} +59 -56
- package/dist/{chunk-ctw9a4hh.js → chunk-3hw6pcqt.js} +12 -12
- package/dist/chunk-3j0f3yyd.js +20 -0
- package/dist/{chunk-g2r5nsx7.js → chunk-3keyh8d3.js} +2 -2
- package/dist/{chunk-hegr0s7q.js → chunk-3n8prx9k.js} +3 -3
- package/dist/{chunk-cqnfwapm.js → chunk-3tnabt1t.js} +2 -2
- package/dist/{chunk-837h4x1j.js → chunk-3ydfy1vc.js} +2 -2
- package/dist/{chunk-1qw175nj.js → chunk-41ncbfk7.js} +3 -3
- package/dist/{chunk-60731s4z.js → chunk-45ynv6r6.js} +2 -2
- package/dist/chunk-46sfycpp.js +125 -0
- package/dist/{chunk-cg0h6vpf.js → chunk-496449vy.js} +2 -2
- package/dist/{chunk-qhpnsf4r.js → chunk-49z79885.js} +3 -3
- package/dist/{chunk-25j8nzw3.js → chunk-4c8mdzm1.js} +4 -4
- package/dist/{chunk-3dkccqes.js → chunk-4f56n8y8.js} +4 -4
- package/dist/{chunk-1mft5mam.js → chunk-4ffz1d36.js} +4 -4
- package/dist/{chunk-4zqzdz62.js → chunk-4hgk89n9.js} +59 -56
- package/dist/{chunk-exag2njg.js → chunk-4k4kn7h2.js} +18 -18
- package/dist/{chunk-1yzryj0w.js → chunk-4ks3c21q.js} +64 -61
- package/dist/{chunk-e29wgmh7.js → chunk-4v3p8phf.js} +15 -15
- package/dist/chunk-4vzg1cn7.js +264 -0
- package/dist/{chunk-cxktxwv9.js → chunk-4xp653hr.js} +55 -52
- package/dist/{chunk-r1sfk1j6.js → chunk-4zvptd40.js} +60 -57
- package/dist/{chunk-v2gsemps.js → chunk-503675yy.js} +2 -2
- package/dist/{chunk-gf3t5h70.js → chunk-52d0caw3.js} +58 -55
- package/dist/{chunk-x0vsajns.js → chunk-56speggn.js} +3 -3
- package/dist/{chunk-rhndt0ek.js → chunk-58jcwxyh.js} +14 -14
- package/dist/{chunk-pv7jrynh.js → chunk-5bd0sf0q.js} +2 -2
- package/dist/chunk-5cxetff3.js +443 -0
- package/dist/{chunk-q0j190dz.js → chunk-5dm3xwms.js} +6 -6
- package/dist/{chunk-gn0d6g6p.js → chunk-5e4sk6wr.js} +3 -3
- package/dist/{chunk-a66xp7jk.js → chunk-5fny1a0a.js} +37 -13
- package/dist/{chunk-57h3kd2w.js → chunk-5hn85d4q.js} +58 -55
- package/dist/{chunk-jxefgv2b.js → chunk-5p3bwhcw.js} +5 -5
- package/dist/{chunk-09af0bmq.js → chunk-5r57a99p.js} +15 -15
- package/dist/{chunk-egv3k4gg.js → chunk-5thf5z45.js} +136 -44
- package/dist/chunk-5vbtjcd2.js +624 -0
- package/dist/{chunk-jpd98chs.js → chunk-5w9qcjjt.js} +61 -58
- package/dist/{chunk-wvevgh1a.js → chunk-5xj3z42h.js} +5 -5
- package/dist/{chunk-0hr0mh6d.js → chunk-62r8rxkw.js} +4 -4
- package/dist/chunk-64wm5777.js +85 -0
- package/dist/{chunk-sk9mmh7x.js → chunk-6a32d602.js} +55 -52
- package/dist/{chunk-1wxx3s6s.js → chunk-6aevda19.js} +2 -2
- package/dist/{chunk-2km8scdk.js → chunk-6bb0gyhh.js} +55 -52
- package/dist/{chunk-ancr20tb.js → chunk-6d9njm1w.js} +2 -2
- package/dist/{chunk-p3erbvbz.js → chunk-6fbvxhan.js} +3 -3
- package/dist/{chunk-7t9j97cz.js → chunk-6kddkcqk.js} +57 -54
- package/dist/{chunk-7nyptyee.js → chunk-6sytfk68.js} +5 -5
- package/dist/{chunk-8z5fmqh3.js → chunk-6ypvw68g.js} +55 -52
- package/dist/{chunk-z763jd56.js → chunk-6zkxtny0.js} +4 -4
- package/dist/{chunk-p60wnp9a.js → chunk-6zn0szv5.js} +19 -17
- package/dist/{chunk-s3tdz6j0.js → chunk-71053xes.js} +14 -14
- package/dist/chunk-758qmraw.js +66 -0
- package/dist/{chunk-25a6cm96.js → chunk-76g1m8sa.js} +16 -4
- package/dist/{chunk-xgjs3rkr.js → chunk-7b1ze28c.js} +55 -52
- package/dist/{chunk-a3m8brwc.js → chunk-7bq6az8b.js} +3 -3
- package/dist/{chunk-yjmtjd5c.js → chunk-7ckqn3c3.js} +55 -52
- package/dist/chunk-7d5gzxsx.js +145 -0
- package/dist/{chunk-rv57x1qr.js → chunk-7gyjd00q.js} +3 -3
- package/dist/{chunk-hn438x41.js → chunk-7hnmt967.js} +84 -80
- package/dist/{chunk-rmfp4mf2.js → chunk-7jbeh3g8.js} +3 -3
- package/dist/{chunk-kymq7j5k.js → chunk-7k0h27s8.js} +7 -7
- package/dist/{chunk-2fnpj7fv.js → chunk-7myptjaa.js} +5 -5
- package/dist/{chunk-s81bx611.js → chunk-7yq22pd2.js} +57 -54
- package/dist/{chunk-dk8te1zz.js → chunk-7zxvjs3d.js} +2 -2
- package/dist/{chunk-mwky1mwc.js → chunk-83v18n96.js} +14 -14
- package/dist/{chunk-f1az36w2.js → chunk-84a79s9g.js} +124 -150
- package/dist/{chunk-x0nt6xta.js → chunk-86n03xsk.js} +60 -57
- package/dist/{chunk-4aqc3s2f.js → chunk-87ddk39d.js} +6 -6
- package/dist/{chunk-vnsmwwcx.js → chunk-89jrgnx3.js} +15 -15
- package/dist/{chunk-3fs4xc9h.js → chunk-8dehkx39.js} +5 -5
- package/dist/{chunk-wwt8x57q.js → chunk-8fm77brm.js} +59 -56
- package/dist/{chunk-z9ezvde9.js → chunk-8fqa9v4h.js} +55 -52
- package/dist/{chunk-etqmgb7b.js → chunk-8pqe4w62.js} +62 -59
- package/dist/{chunk-xqzmd8rx.js → chunk-8qp0ytjr.js} +2 -2
- package/dist/{chunk-xt7g86gj.js → chunk-8v8n8gxv.js} +3 -3
- package/dist/{chunk-jq30e6rg.js → chunk-94jqjx3g.js} +59 -56
- package/dist/chunk-9663bsk0.js +18 -0
- package/dist/{chunk-dnp096zb.js → chunk-96gwphgv.js} +3 -3
- package/dist/{chunk-sq5fyhqd.js → chunk-9bf696cj.js} +95 -87
- package/dist/{chunk-eje4tzhm.js → chunk-9cw6etxe.js} +56 -53
- package/dist/{chunk-r7a5cqdw.js → chunk-9dwdn2sk.js} +7 -7
- package/dist/{chunk-ejfvtxhc.js → chunk-9ggwn844.js} +29 -64
- package/dist/{chunk-n08zma6t.js → chunk-9gxdrrd5.js} +55 -52
- package/dist/{chunk-cvr6at4f.js → chunk-9q952pw0.js} +2 -2
- package/dist/{chunk-ab8c2gs2.js → chunk-9qgzdk8y.js} +7 -7
- package/dist/{chunk-tjc1tx3q.js → chunk-9qj9t1g4.js} +2 -2
- package/dist/{chunk-hm9rq604.js → chunk-9sr5cheh.js} +55 -52
- package/dist/{chunk-3tm5sns7.js → chunk-9vvffdb6.js} +64 -61
- package/dist/chunk-a18ypbnr.js +151 -0
- package/dist/{chunk-80yycsam.js → chunk-a80y3b1p.js} +3 -3
- package/dist/{chunk-bdhx8k7k.js → chunk-a96dsyhm.js} +59 -56
- package/dist/{chunk-pgjmgh51.js → chunk-a97kj439.js} +2 -2
- package/dist/chunk-aggcq5pt.js +16 -0
- package/dist/{chunk-5wvcws9f.js → chunk-am5zfwnf.js} +19 -19
- package/dist/{chunk-56djb736.js → chunk-b21j3y4h.js} +2 -2
- package/dist/{chunk-jdvx0xe9.js → chunk-b52sketm.js} +55 -52
- package/dist/{chunk-xzw0ettz.js → chunk-b7fcydvv.js} +18 -18
- package/dist/{chunk-y90gh0z2.js → chunk-bb9h35x7.js} +55 -52
- package/dist/{chunk-07vfsvas.js → chunk-bbpnmz87.js} +2 -2
- package/dist/chunk-bcfd2zw7.js +23 -0
- package/dist/chunk-bdy3869e.js +35 -0
- package/dist/{chunk-g6vvs0w9.js → chunk-be8pcep0.js} +2 -2
- package/dist/{chunk-2vfcftww.js → chunk-bgpftrxc.js} +56 -53
- package/dist/{chunk-ne02d12y.js → chunk-bh4k9q9y.js} +4 -4
- package/dist/{chunk-841eka5g.js → chunk-bjc8f709.js} +62 -59
- package/dist/{chunk-00f3aac0.js → chunk-bm5370d5.js} +14 -14
- package/dist/{chunk-kfdgw9j2.js → chunk-br1qf4bc.js} +12 -21
- package/dist/{chunk-vempyean.js → chunk-bxmc7435.js} +7 -7
- package/dist/chunk-c36xznt7.js +1045 -0
- package/dist/{chunk-cjg9tm4d.js → chunk-c3z2f4aq.js} +58 -55
- package/dist/chunk-cchv4yn8.js +214 -0
- package/dist/{chunk-qdfqack5.js → chunk-cewbt8ah.js} +2 -2
- package/dist/{chunk-7npzwf36.js → chunk-cfeakba6.js} +55 -52
- package/dist/{chunk-5c1ym1nc.js → chunk-ckh1zt0n.js} +65 -62
- package/dist/{chunk-xcm658wm.js → chunk-ckq5d8ev.js} +3 -3
- package/dist/chunk-cnfzmqr8.js +115 -0
- package/dist/chunk-crchz5q8.js +16 -0
- package/dist/{chunk-mf1n757j.js → chunk-cwpxrn2d.js} +17 -17
- package/dist/chunk-cy223s48.js +881 -0
- package/dist/{chunk-7c4fsh0s.js → chunk-cydd546q.js} +57 -54
- package/dist/{chunk-a35q4knx.js → chunk-cz5ycdta.js} +3 -3
- package/dist/{chunk-k8a68cwg.js → chunk-da7f9a81.js} +105 -29
- package/dist/{chunk-kexhnah5.js → chunk-dfzfxt1y.js} +7 -7
- package/dist/{chunk-4c56f6d2.js → chunk-dj6y2sr8.js} +3 -3
- package/dist/{chunk-cph4yr50.js → chunk-djbawqmw.js} +55 -52
- package/dist/{chunk-17j9hb87.js → chunk-dpb1kvb9.js} +56 -53
- package/dist/{chunk-xn02xqxj.js → chunk-dt5c48mh.js} +2 -2
- package/dist/{chunk-yephhrfa.js → chunk-e1m95nec.js} +6 -6
- package/dist/{chunk-bxfv6aew.js → chunk-e26hypm4.js} +56 -53
- package/dist/{chunk-a9garrrp.js → chunk-e5kn4hwp.js} +56 -53
- package/dist/{chunk-tn5b34gd.js → chunk-e6dq8apj.js} +55 -52
- package/dist/{chunk-rqn40hvy.js → chunk-e6p5x2p4.js} +4 -4
- package/dist/{chunk-5yjm9yth.js → chunk-eb6x30zz.js} +57 -54
- package/dist/{chunk-352yw5fs.js → chunk-ebfv6acv.js} +12 -12
- package/dist/{chunk-1h952cez.js → chunk-egkwv0bp.js} +2 -2
- package/dist/{chunk-rqfzhr9m.js → chunk-ennzq1s5.js} +14 -4
- package/dist/{chunk-ec3vxfsp.js → chunk-envqyd27.js} +59 -55
- package/dist/{chunk-yk99hmx2.js → chunk-epprxdgg.js} +2 -2
- package/dist/{chunk-cea3mepz.js → chunk-et42fzf1.js} +22 -22
- package/dist/{chunk-h0rbjg6x.js → chunk-f2mhrmww.js} +10 -3
- package/dist/{chunk-rg3c0e6m.js → chunk-fb5ehysd.js} +57 -54
- package/dist/chunk-fbtp7vga.js +37 -0
- package/dist/{chunk-n3xd3ev4.js → chunk-fgna18nd.js} +6 -6
- package/dist/{chunk-26w1pqen.js → chunk-fknjgxt4.js} +56 -53
- package/dist/{chunk-xj7nr4b8.js → chunk-fpb43g1s.js} +6 -6
- package/dist/{chunk-d24kfzcv.js → chunk-ftfz2eh3.js} +2 -2
- package/dist/{chunk-xbc1xb90.js → chunk-fv94gm4h.js} +56 -53
- package/dist/{chunk-732ycv3a.js → chunk-fx7pr1g4.js} +13 -13
- package/dist/{chunk-fxg6tk9f.js → chunk-g0axk7cx.js} +56 -53
- package/dist/chunk-g6d9avms.js +205 -0
- package/dist/{chunk-vwpr34gb.js → chunk-g9caj6wj.js} +66 -63
- package/dist/{chunk-jjjrmgee.js → chunk-gbekxw41.js} +56 -53
- package/dist/{chunk-dawa3bxd.js → chunk-gcpc6b2z.js} +2 -2
- package/dist/{chunk-7qq9wgng.js → chunk-gfycetpg.js} +5 -5
- package/dist/{chunk-snjbtcsd.js → chunk-gn0ja3k5.js} +5 -5
- package/dist/{chunk-cf98rrym.js → chunk-gt9gwwdh.js} +5 -5
- package/dist/{chunk-1qdm27em.js → chunk-gz0nj0mm.js} +55 -52
- package/dist/{chunk-jcfp9q8e.js → chunk-gz6pze8f.js} +57 -54
- package/dist/{chunk-kankxtem.js → chunk-h1frxdrg.js} +56 -54
- package/dist/{chunk-t8bj4y17.js → chunk-h93ve2g2.js} +14 -14
- package/dist/{chunk-b00v4z7e.js → chunk-h9mr8ey4.js} +13 -13
- package/dist/{chunk-fgfvmggw.js → chunk-hd8ydnzq.js} +15 -15
- package/dist/{chunk-szkay129.js → chunk-hebz2z6z.js} +58 -55
- package/dist/chunk-hgxb4qn5.js +390 -0
- package/dist/{chunk-h1e34028.js → chunk-hh6kgtq5.js} +3 -3
- package/dist/{chunk-srrcngcy.js → chunk-hhcx2jjn.js} +3 -3
- package/dist/{chunk-dvp0xagf.js → chunk-hjp1yckp.js} +56 -53
- package/dist/{chunk-jsfytv0f.js → chunk-hjxz7a04.js} +58 -55
- package/dist/{chunk-zdnv8fvz.js → chunk-hkkz8rde.js} +55 -52
- package/dist/{chunk-677p38pg.js → chunk-hnms0snx.js} +2 -2
- package/dist/{chunk-yydr31ss.js → chunk-hq4jd1fy.js} +23 -23
- package/dist/{chunk-gqxam9dm.js → chunk-hthfhdty.js} +15 -15
- package/dist/{chunk-98204r0v.js → chunk-hy5vd50e.js} +3 -3
- package/dist/{chunk-ck1qvj5k.js → chunk-hyztfnyq.js} +463 -225
- package/dist/{chunk-m4wfythr.js → chunk-j5rnevxw.js} +62 -59
- package/dist/{chunk-eeee4v34.js → chunk-j74ctwq9.js} +3 -3
- package/dist/{chunk-d9tbq3h3.js → chunk-jcdv05ym.js} +33 -5
- package/dist/{chunk-ga5v18wb.js → chunk-jd5xs374.js} +55 -52
- package/dist/{chunk-rz56zge4.js → chunk-jgbz49jh.js} +6 -4
- package/dist/{chunk-y9g1ynzy.js → chunk-jhdtyhk5.js} +57 -54
- package/dist/{chunk-aq0t16sn.js → chunk-jkbkp0ek.js} +14 -14
- package/dist/{chunk-7nwehwa4.js → chunk-jkyn6ge9.js} +5 -5
- package/dist/{chunk-nb02zd8m.js → chunk-jn7qa13m.js} +3 -3
- package/dist/{chunk-evmvnppx.js → chunk-jt7ea6rq.js} +55 -52
- package/dist/{chunk-9khxkxz7.js → chunk-jt7wch8z.js} +2 -2
- package/dist/{chunk-0j3jy5jp.js → chunk-jv7tn7yh.js} +55 -52
- package/dist/chunk-jx80x2sn.js +267 -0
- package/dist/{chunk-03fdnx3e.js → chunk-jy13c47g.js} +5 -5
- package/dist/{chunk-75q1d027.js → chunk-k11m1rfc.js} +57 -54
- package/dist/{chunk-x7t8wrq1.js → chunk-k3mghke5.js} +57 -86
- package/dist/{chunk-jcd8qmcc.js → chunk-k5rrrd0q.js} +78 -75
- package/dist/{chunk-8zdrypte.js → chunk-kbbjfeb8.js} +2 -2
- package/dist/chunk-kcz5b7xv.js +73 -0
- package/dist/{chunk-87s3zt6w.js → chunk-khnxj5vx.js} +3 -3
- package/dist/{chunk-g6eqgh16.js → chunk-kkwym2b7.js} +5 -5
- package/dist/{chunk-hvve83a7.js → chunk-kn345s2x.js} +2 -2
- package/dist/{chunk-x07xwqrj.js → chunk-kpqx95pr.js} +2 -2
- package/dist/{chunk-wfyhm9cg.js → chunk-kszphewb.js} +63 -54
- package/dist/{chunk-5kcmmrbe.js → chunk-kxn6mzy3.js} +4 -4
- package/dist/{chunk-tc848afj.js → chunk-m0zzdgkt.js} +31 -26
- package/dist/{chunk-gmsb3jtb.js → chunk-m7qa1fqb.js} +3 -3
- package/dist/{chunk-qph8gdxy.js → chunk-mdm5cbxy.js} +55 -52
- package/dist/chunk-mnqvtfd5.js +78 -0
- package/dist/{chunk-fstr76j0.js → chunk-mp5km99q.js} +20 -20
- package/dist/{chunk-8ehewpj6.js → chunk-mpxcgg5f.js} +6 -6
- package/dist/{chunk-zffnk5t6.js → chunk-mqr18cwx.js} +4 -4
- package/dist/chunk-n014czx3.js +18 -0
- package/dist/{chunk-ytzqmbt0.js → chunk-n40kbp9f.js} +55 -52
- package/dist/{chunk-8n28z1eg.js → chunk-n51s6m60.js} +14 -14
- package/dist/{chunk-c9gga8sn.js → chunk-n87c314c.js} +56 -53
- package/dist/{chunk-7jkb3tck.js → chunk-nevf0mb9.js} +15 -15
- package/dist/{chunk-zxhtrvtt.js → chunk-nkeknzb2.js} +4 -4
- package/dist/{chunk-4fjgdmr9.js → chunk-nkgq6a5q.js} +28 -28
- package/dist/{chunk-9ds6nhgx.js → chunk-nmj9qx2x.js} +65 -62
- package/dist/{chunk-4pf098nn.js → chunk-nmyfe9j9.js} +57 -54
- package/dist/{chunk-b1dyfwm2.js → chunk-nmzy0qjn.js} +7 -7
- package/dist/{chunk-51pkqrja.js → chunk-np05dg07.js} +55 -52
- package/dist/{chunk-w51sng2s.js → chunk-npgyhaqc.js} +2 -2
- package/dist/{chunk-61008xjm.js → chunk-nr2skyv7.js} +56 -53
- package/dist/{chunk-w6x102n9.js → chunk-nv5rddp1.js} +55 -52
- package/dist/{chunk-naqmbswb.js → chunk-p10xajeq.js} +69 -66
- package/dist/{chunk-vgzdtvca.js → chunk-p1wxbhgj.js} +4 -4
- package/dist/{chunk-rs2skqcv.js → chunk-p6fhtt1h.js} +4 -4
- package/dist/{chunk-m5daf1hp.js → chunk-p8d1q69a.js} +55 -52
- package/dist/{chunk-t66dy38x.js → chunk-pbmy8ktp.js} +7 -7
- package/dist/{chunk-ssnp42gc.js → chunk-pqrb30bj.js} +2 -2
- package/dist/{chunk-6dhkeb6t.js → chunk-pr321r8d.js} +3 -3
- package/dist/{chunk-7d5yfjs6.js → chunk-psq9gtg7.js} +2 -2
- package/dist/{chunk-193vfma7.js → chunk-ptermrp1.js} +60 -57
- package/dist/{chunk-q9fppwnq.js → chunk-pyfrphvc.js} +57 -54
- package/dist/{chunk-vajyw4ea.js → chunk-pzb2zc4x.js} +6 -6
- package/dist/{chunk-k1pjc56n.js → chunk-q0w614e1.js} +3 -3
- package/dist/{chunk-34merw4c.js → chunk-q110twdj.js} +59 -116
- package/dist/{chunk-je4jw9pe.js → chunk-q72dtjqy.js} +2 -2
- package/dist/{chunk-551jxdwj.js → chunk-q90bcq6v.js} +59 -56
- package/dist/{chunk-sm0ak846.js → chunk-qavfmmqd.js} +6 -6
- package/dist/{chunk-qvzvzzdw.js → chunk-qjx52q61.js} +2 -2
- package/dist/{chunk-72cez8rw.js → chunk-qk2tvn8y.js} +56 -53
- package/dist/{chunk-mt0hyhtp.js → chunk-qm3k6vez.js} +13 -13
- package/dist/{chunk-fkpm0dka.js → chunk-qmp50hjb.js} +19 -19
- package/dist/{chunk-qezmm114.js → chunk-qnztz65r.js} +56 -53
- package/dist/{chunk-23nwpyay.js → chunk-qpatv1ep.js} +13 -13
- package/dist/{chunk-dsdbya1y.js → chunk-qwtfyr6d.js} +2 -2
- package/dist/{chunk-nz9rqw9y.js → chunk-qxp3d963.js} +2 -2
- package/dist/{chunk-xq92sh7h.js → chunk-qzp51m93.js} +3 -3
- package/dist/{chunk-8dtk8ma2.js → chunk-r3fadmd6.js} +5 -5
- package/dist/{chunk-9eervnn3.js → chunk-r4mec6w5.js} +3 -3
- package/dist/chunk-r6g3xx75.js +415 -0
- package/dist/{chunk-avaa7ds2.js → chunk-r8ywba1h.js} +14 -14
- package/dist/{chunk-raftjwkd.js → chunk-r974358t.js} +13 -13
- package/dist/{chunk-w4bqdhna.js → chunk-r9qnxgqt.js} +5 -5
- package/dist/{chunk-7v874g5h.js → chunk-rasdgp8g.js} +4 -4
- package/dist/{chunk-dwkc1vgf.js → chunk-rbr0tsrz.js} +55 -52
- package/dist/{chunk-63hz4ckd.js → chunk-re5p7q2e.js} +4 -4
- package/dist/{chunk-gytaebn1.js → chunk-rfvzhq5x.js} +55 -52
- package/dist/{chunk-s4akexsk.js → chunk-rfxctace.js} +3 -4
- package/dist/chunk-rhqffqzf.js +189 -0
- package/dist/{chunk-xb6r5wtg.js → chunk-rnjtkqzg.js} +4 -4
- package/dist/{chunk-wpm7sbfe.js → chunk-rqa3fz1t.js} +55 -52
- package/dist/{chunk-y7q1vtv4.js → chunk-rtgff67y.js} +63 -60
- package/dist/{chunk-q4v51jm6.js → chunk-rw1070pc.js} +4 -4
- package/dist/{chunk-cxkxps51.js → chunk-rzrm7j9x.js} +2 -2
- package/dist/{chunk-spd5z6xd.js → chunk-s262tfgm.js} +3 -3
- package/dist/{chunk-9tkrb3jy.js → chunk-s4pjm9jw.js} +55 -52
- package/dist/chunk-s5pnejsn.js +216 -0
- package/dist/{chunk-4157n57z.js → chunk-sczmmmvj.js} +2 -2
- package/dist/{chunk-7h13c72t.js → chunk-sd2g0s0k.js} +9 -9
- package/dist/{chunk-rnsws47e.js → chunk-sg5nsm4p.js} +3 -3
- package/dist/{chunk-7cgjgppb.js → chunk-stqsfa68.js} +3 -3
- package/dist/{chunk-hdx2p9h7.js → chunk-svb5eqfz.js} +14 -14
- package/dist/{chunk-ybzc4vyc.js → chunk-swr65v0j.js} +10 -10
- package/dist/{chunk-dkzq1yj3.js → chunk-swtk97hy.js} +14 -14
- package/dist/{chunk-qy3bd939.js → chunk-sx4gbak5.js} +56 -53
- package/dist/{chunk-p83fdzct.js → chunk-t12d6tby.js} +3 -3
- package/dist/{chunk-v91g64jx.js → chunk-t20f5mnk.js} +14 -14
- package/dist/{chunk-g410gawd.js → chunk-t408adb9.js} +56 -53
- package/dist/{chunk-4k2ztys5.js → chunk-t7434h4s.js} +55 -52
- package/dist/{chunk-0qa1hgxp.js → chunk-t7y6mg54.js} +13 -13
- package/dist/{chunk-a9pqw4tk.js → chunk-tdkwcv57.js} +4 -4
- package/dist/{chunk-sqnghamc.js → chunk-tfew976a.js} +55 -52
- package/dist/{chunk-83m8mxaj.js → chunk-thzmxfnt.js} +2 -2
- package/dist/{chunk-gwfv9a10.js → chunk-tmedrj3f.js} +4 -4
- package/dist/{chunk-j9q7p2m5.js → chunk-tmscbs2k.js} +4 -4
- package/dist/chunk-tnk7s4ed.js +22 -0
- package/dist/{chunk-dw1cwmt3.js → chunk-tnqjynvy.js} +14 -14
- package/dist/{chunk-ztqe8k2y.js → chunk-tq32b105.js} +3 -3
- package/dist/{chunk-hp6ym2xt.js → chunk-tr448vwb.js} +3 -3
- package/dist/{chunk-xdfcfm69.js → chunk-tr4hszme.js} +3 -3
- package/dist/{chunk-5nzjxkj9.js → chunk-traxf72w.js} +2 -2
- package/dist/{chunk-f2d9gmzw.js → chunk-ttzyw0y7.js} +17 -17
- package/dist/{chunk-y1cqsd0p.js → chunk-tw0b366n.js} +55 -52
- package/dist/{chunk-ng7nkgv1.js → chunk-txync4kd.js} +7 -7
- package/dist/chunk-v060k07j.js +416 -0
- package/dist/chunk-v1rkrwwv.js +146 -0
- package/dist/{chunk-0p6e05c5.js → chunk-v21ssxkp.js} +2 -2
- package/dist/{chunk-zpte5txk.js → chunk-v2vzfj4h.js} +55 -52
- package/dist/{chunk-3s7v8tsk.js → chunk-v4h7dscd.js} +26 -44
- package/dist/{chunk-90qefxa4.js → chunk-v522k1r4.js} +70 -67
- package/dist/{chunk-rdmen6bn.js → chunk-v9b2rh8h.js} +58 -55
- package/dist/{chunk-g8e4wwak.js → chunk-vacje5g9.js} +4 -4
- package/dist/{chunk-t2r4qham.js → chunk-vetj2j2n.js} +60 -57
- package/dist/{chunk-fr84aysg.js → chunk-vpn54vqg.js} +6 -6
- package/dist/{chunk-yvsb81fm.js → chunk-vqhgs52z.js} +7 -7
- package/dist/{chunk-t802hx06.js → chunk-vtnm80k9.js} +13 -13
- package/dist/{chunk-dmsc23kp.js → chunk-vvk6wx6b.js} +14 -14
- package/dist/{chunk-t9z3edw6.js → chunk-vym5zrn6.js} +4895 -2486
- package/dist/{chunk-pxzawaw7.js → chunk-vzxtxv4a.js} +56 -53
- package/dist/{chunk-x59dmzab.js → chunk-w3wdqhv0.js} +62 -59
- package/dist/{chunk-61xprjs1.js → chunk-w59jkye4.js} +56 -53
- package/dist/{chunk-amnaevyb.js → chunk-w60fa5cj.js} +65 -62
- package/dist/{chunk-16waz3fy.js → chunk-w8xchcwf.js} +3 -3
- package/dist/{chunk-fv8tcte1.js → chunk-w9fptpp9.js} +64 -61
- package/dist/{chunk-3d8ccn91.js → chunk-wa7g3yv7.js} +13 -13
- package/dist/{chunk-wbwzf5z4.js → chunk-wdn3pb9r.js} +3 -3
- package/dist/{chunk-ccqk19v9.js → chunk-wqk03hpc.js} +55 -52
- package/dist/{chunk-ycjjsnm4.js → chunk-wvs8wv8t.js} +2 -2
- package/dist/{chunk-6hnqaxvs.js → chunk-wwfe7gg7.js} +58 -55
- package/dist/{chunk-nmaxmbg9.js → chunk-wz18c465.js} +4 -4
- package/dist/{chunk-08wf7txh.js → chunk-wz34c685.js} +15 -15
- package/dist/{chunk-587dvnad.js → chunk-wzzaxwej.js} +2 -2
- package/dist/chunk-x1wk407b.js +516 -0
- package/dist/{chunk-jysm93mk.js → chunk-x2taqvwd.js} +5 -5
- package/dist/{chunk-dt0y1vkc.js → chunk-x41dz9y9.js} +2 -2
- package/dist/chunk-x48x54hx.js +3942 -0
- package/dist/{chunk-q0ks2prw.js → chunk-x6cjkxqe.js} +5 -5
- package/dist/{chunk-f6v5bq78.js → chunk-x89sscn0.js} +2 -2
- package/dist/chunk-x9qqj8wc.js +153 -0
- package/dist/{chunk-6ka2mh69.js → chunk-xa9xpah3.js} +3037 -2505
- package/dist/{chunk-644422j5.js → chunk-xcxcysx3.js} +2 -2
- package/dist/{chunk-0fq3smhy.js → chunk-xftqvncz.js} +9 -46
- package/dist/{chunk-hnh89cye.js → chunk-xhnmweqe.js} +64 -61
- package/dist/{chunk-7s3wyn34.js → chunk-xm6t6khx.js} +56 -53
- package/dist/chunk-xt65mfby.js +1395 -0
- package/dist/{chunk-31fcazbn.js → chunk-xvmtyz8q.js} +2 -2
- package/dist/{chunk-1mf9624z.js → chunk-xxfz08mf.js} +55 -52
- package/dist/{chunk-wgvazba2.js → chunk-y061xbn9.js} +5 -5
- package/dist/{chunk-mzh12ebc.js → chunk-y0z468z2.js} +56 -53
- package/dist/{chunk-7ghq231e.js → chunk-y3cshvgb.js} +2 -2
- package/dist/{chunk-kqt7same.js → chunk-y6ce2s1q.js} +59 -55
- package/dist/chunk-y9bpc4a6.js +97 -0
- package/dist/{chunk-8c4wbrma.js → chunk-y9mnawak.js} +4 -4
- package/dist/{chunk-whbkstfm.js → chunk-ycdbp5q4.js} +55 -52
- package/dist/{chunk-1dg4nrws.js → chunk-ycsh7pst.js} +13 -13
- package/dist/{chunk-s41zt5kj.js → chunk-yedzdc0a.js} +14 -8
- package/dist/{chunk-jw0ky94p.js → chunk-yrr4d26k.js} +56 -53
- package/dist/{chunk-myysj9vz.js → chunk-yt5gwdg5.js} +7 -60
- package/dist/{chunk-yaefwx7d.js → chunk-yteefw26.js} +55 -52
- package/dist/{chunk-rhjbecsk.js → chunk-yvjzex9w.js} +6 -82
- package/dist/{chunk-5n19f2r9.js → chunk-z124zj20.js} +4 -4
- package/dist/{chunk-sa5fj0d3.js → chunk-z92c7wdq.js} +4 -4
- package/dist/{chunk-etcypdxa.js → chunk-zb7ctc11.js} +55 -52
- package/dist/{chunk-2wbgexnn.js → chunk-zc2mfxy0.js} +58 -55
- package/dist/{chunk-hhdbv9eg.js → chunk-zdsqreyq.js} +3 -3
- package/dist/chunk-zf5btqc3.js +54 -0
- package/dist/{chunk-sxgc1sm1.js → chunk-zfwgjjde.js} +2 -2
- package/dist/{chunk-nfaj0b7z.js → chunk-zgvyn6yk.js} +55 -52
- package/dist/{chunk-gcrf35hk.js → chunk-zmj9sehj.js} +56 -53
- package/dist/{chunk-hq20dsgb.js → chunk-zr750mg3.js} +93 -57
- package/dist/{chunk-yjyaq9ja.js → chunk-zshw91dr.js} +5 -5
- package/dist/{chunk-azbndvdt.js → chunk-zyhpq0w1.js} +7 -4
- package/dist/{chunk-ky41ddym.js → chunk-zzac564h.js} +15 -15
- package/dist/cli.js +94 -28
- package/dist/services/rawDump/batchWorker.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-0paqc2yw.js +0 -18
- package/dist/chunk-ac3vxv72.js +0 -99
- package/dist/chunk-ctaxszne.js +0 -183
- package/dist/chunk-f9vf3z7d.js +0 -57
- package/dist/chunk-q2pkj7sp.js +0 -18
- package/dist/chunk-wmd102c3.js +0 -138
- package/dist/chunk-zzjq53z6.js +0 -198
|
@@ -0,0 +1,624 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
attachNdjsonFramer,
|
|
4
|
+
init_ndjsonFramer
|
|
5
|
+
} from "./chunk-758qmraw.js";
|
|
6
|
+
import {
|
|
7
|
+
init_log,
|
|
8
|
+
logError
|
|
9
|
+
} from "./chunk-vtcqe66h.js";
|
|
10
|
+
import {
|
|
11
|
+
errorMessage,
|
|
12
|
+
init_cleanupRegistry,
|
|
13
|
+
init_debug,
|
|
14
|
+
init_errors,
|
|
15
|
+
init_slowOperations,
|
|
16
|
+
jsonParse,
|
|
17
|
+
jsonStringify,
|
|
18
|
+
logForDebugging,
|
|
19
|
+
registerCleanup
|
|
20
|
+
} from "./chunk-dea6k409.js";
|
|
21
|
+
import {
|
|
22
|
+
getClaudeConfigHomeDir,
|
|
23
|
+
init_envUtils
|
|
24
|
+
} from "./chunk-hxhwzgnn.js";
|
|
25
|
+
import {
|
|
26
|
+
__esm,
|
|
27
|
+
__require
|
|
28
|
+
} from "./chunk-qp2qdcda.js";
|
|
29
|
+
|
|
30
|
+
// src/utils/udsResponseReader.ts
|
|
31
|
+
import { StringDecoder } from "string_decoder";
|
|
32
|
+
function getChunkBytes(chunk) {
|
|
33
|
+
return typeof chunk === "string" ? Buffer.byteLength(chunk, "utf8") : chunk.byteLength;
|
|
34
|
+
}
|
|
35
|
+
function parseResponseLine(line) {
|
|
36
|
+
try {
|
|
37
|
+
return jsonParse(line);
|
|
38
|
+
} catch {
|
|
39
|
+
throw new Error("Invalid UDS response frame");
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function attachUdsResponseReader(socket, options) {
|
|
43
|
+
let buffer = "";
|
|
44
|
+
let bufferBytes = 0;
|
|
45
|
+
let settled = false;
|
|
46
|
+
const decoder = new StringDecoder("utf8");
|
|
47
|
+
function cleanupListeners() {
|
|
48
|
+
socket.off("data", onData);
|
|
49
|
+
socket.off("error", onError);
|
|
50
|
+
socket.off("end", onEnd);
|
|
51
|
+
socket.off("close", onClose);
|
|
52
|
+
}
|
|
53
|
+
function finish(error) {
|
|
54
|
+
if (settled)
|
|
55
|
+
return;
|
|
56
|
+
settled = true;
|
|
57
|
+
buffer = "";
|
|
58
|
+
bufferBytes = 0;
|
|
59
|
+
cleanupListeners();
|
|
60
|
+
if (error) {
|
|
61
|
+
socket.destroy();
|
|
62
|
+
} else {
|
|
63
|
+
socket.end();
|
|
64
|
+
}
|
|
65
|
+
options.onSettled(error);
|
|
66
|
+
}
|
|
67
|
+
function onData(chunk) {
|
|
68
|
+
const decoded = decoder.write(chunk);
|
|
69
|
+
const decodedBytes = Buffer.byteLength(decoded, "utf8");
|
|
70
|
+
if (bufferBytes + decodedBytes > options.maxFrameBytes) {
|
|
71
|
+
finish(new Error("UDS response frame exceeded size limit"));
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
buffer += decoded;
|
|
75
|
+
bufferBytes += decodedBytes;
|
|
76
|
+
let newlineIndex = buffer.indexOf(`
|
|
77
|
+
`);
|
|
78
|
+
while (newlineIndex !== -1) {
|
|
79
|
+
const line = buffer.slice(0, newlineIndex);
|
|
80
|
+
const consumed = buffer.slice(0, newlineIndex + 1);
|
|
81
|
+
buffer = buffer.slice(newlineIndex + 1);
|
|
82
|
+
bufferBytes -= Buffer.byteLength(consumed, "utf8");
|
|
83
|
+
if (!line.trim()) {
|
|
84
|
+
newlineIndex = buffer.indexOf(`
|
|
85
|
+
`);
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
let response;
|
|
89
|
+
try {
|
|
90
|
+
response = parseResponseLine(line);
|
|
91
|
+
} catch (error) {
|
|
92
|
+
finish(error instanceof Error ? error : new Error(errorMessage(error)));
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
if (response.type === "response" || options.acceptPong === true && response.type === "pong") {
|
|
96
|
+
finish();
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
if (response.type === "error") {
|
|
100
|
+
finish(new Error(response.data ?? "UDS receiver rejected message"));
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
newlineIndex = buffer.indexOf(`
|
|
104
|
+
`);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
function onError(error) {
|
|
108
|
+
finish(options.formatSocketError?.(error) ?? (error instanceof Error ? error : new Error(errorMessage(error))));
|
|
109
|
+
}
|
|
110
|
+
function onEnd() {
|
|
111
|
+
finish(new Error("UDS socket ended before response"));
|
|
112
|
+
}
|
|
113
|
+
function onClose(hadError) {
|
|
114
|
+
if (hadError)
|
|
115
|
+
return;
|
|
116
|
+
finish(new Error("UDS socket closed before response"));
|
|
117
|
+
}
|
|
118
|
+
socket.on("data", onData);
|
|
119
|
+
socket.on("error", onError);
|
|
120
|
+
socket.on("end", onEnd);
|
|
121
|
+
socket.on("close", onClose);
|
|
122
|
+
}
|
|
123
|
+
var init_udsResponseReader = __esm(() => {
|
|
124
|
+
init_errors();
|
|
125
|
+
init_slowOperations();
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
// src/utils/udsMessaging.ts
|
|
129
|
+
import { createHash, randomBytes, timingSafeEqual } from "crypto";
|
|
130
|
+
import { createServer } from "net";
|
|
131
|
+
import {
|
|
132
|
+
chmod,
|
|
133
|
+
lstat,
|
|
134
|
+
mkdir,
|
|
135
|
+
open,
|
|
136
|
+
readFile,
|
|
137
|
+
rename,
|
|
138
|
+
unlink
|
|
139
|
+
} from "fs/promises";
|
|
140
|
+
import { dirname, join } from "path";
|
|
141
|
+
import { tmpdir } from "os";
|
|
142
|
+
function getDefaultUdsSocketPath() {
|
|
143
|
+
if (defaultSocketPath)
|
|
144
|
+
return defaultSocketPath;
|
|
145
|
+
const nonce = randomBytes(4).toString("hex");
|
|
146
|
+
if (process.platform === "win32") {
|
|
147
|
+
defaultSocketPath = `\\\\.\\pipe\\claude-code-${process.pid}-${nonce}`;
|
|
148
|
+
return defaultSocketPath;
|
|
149
|
+
}
|
|
150
|
+
defaultSocketPath = join(tmpdir(), `cc-${process.pid}-${nonce}.sock`);
|
|
151
|
+
return defaultSocketPath;
|
|
152
|
+
}
|
|
153
|
+
function getUdsMessagingSocketPath() {
|
|
154
|
+
return socketPath ?? undefined;
|
|
155
|
+
}
|
|
156
|
+
function formatUdsAddress(socket) {
|
|
157
|
+
return `uds:${socket}`;
|
|
158
|
+
}
|
|
159
|
+
function parseUdsTarget(target) {
|
|
160
|
+
if (target.includes("#token=")) {
|
|
161
|
+
throw new Error("UDS target must not include an inline auth token; use the ListPeers address");
|
|
162
|
+
}
|
|
163
|
+
return { socketPath: target };
|
|
164
|
+
}
|
|
165
|
+
function getCapabilityDir() {
|
|
166
|
+
return join(getClaudeConfigHomeDir(), "messaging-capabilities");
|
|
167
|
+
}
|
|
168
|
+
function getCapabilityPath(socket) {
|
|
169
|
+
const digest = createHash("sha256").update(socket).digest("hex");
|
|
170
|
+
return join(getCapabilityDir(), `${digest}.json`);
|
|
171
|
+
}
|
|
172
|
+
function isNotFound(error) {
|
|
173
|
+
return typeof error === "object" && error !== null && error.code === "ENOENT";
|
|
174
|
+
}
|
|
175
|
+
async function assertPrivateCapabilityDir(dir) {
|
|
176
|
+
let stat;
|
|
177
|
+
try {
|
|
178
|
+
stat = await lstat(dir);
|
|
179
|
+
} catch (error) {
|
|
180
|
+
if (!isNotFound(error))
|
|
181
|
+
throw error;
|
|
182
|
+
await mkdir(dir, { recursive: true, mode: 448 });
|
|
183
|
+
stat = await lstat(dir);
|
|
184
|
+
}
|
|
185
|
+
assertPrivateDirectory(stat, dir, "capability directory");
|
|
186
|
+
await chmod(dir, 448);
|
|
187
|
+
}
|
|
188
|
+
function assertPrivateDirectory(stat, dir, label) {
|
|
189
|
+
if (!stat.isDirectory() || stat.isSymbolicLink()) {
|
|
190
|
+
throw new Error(`[udsMessaging] ${label} is not a private directory: ${dir}`);
|
|
191
|
+
}
|
|
192
|
+
if (process.platform !== "win32") {
|
|
193
|
+
const broadMode = Number(stat.mode) & 63;
|
|
194
|
+
if (broadMode !== 0) {
|
|
195
|
+
throw new Error(`[udsMessaging] ${label} permissions are too broad: ${dir}`);
|
|
196
|
+
}
|
|
197
|
+
if (typeof process.getuid === "function" && Number(stat.uid) !== process.getuid()) {
|
|
198
|
+
throw new Error(`[udsMessaging] ${label} owner does not match current user: ${dir}`);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
async function writePrivateFileExclusive(path, content) {
|
|
203
|
+
const handle = await open(path, "wx", 384);
|
|
204
|
+
try {
|
|
205
|
+
await handle.writeFile(content, "utf-8");
|
|
206
|
+
} finally {
|
|
207
|
+
await handle.close();
|
|
208
|
+
}
|
|
209
|
+
await chmod(path, 384);
|
|
210
|
+
}
|
|
211
|
+
async function ensureSocketParent(path) {
|
|
212
|
+
const dir = dirname(path);
|
|
213
|
+
try {
|
|
214
|
+
const stat = await lstat(dir);
|
|
215
|
+
if (!stat.isDirectory() || stat.isSymbolicLink()) {
|
|
216
|
+
throw new Error(`[udsMessaging] socket parent is not a directory: ${dir}`);
|
|
217
|
+
}
|
|
218
|
+
assertPrivateDirectory(stat, dir, "socket parent");
|
|
219
|
+
return;
|
|
220
|
+
} catch (error) {
|
|
221
|
+
if (!isNotFound(error))
|
|
222
|
+
throw error;
|
|
223
|
+
}
|
|
224
|
+
await mkdir(dir, { recursive: true, mode: 448 });
|
|
225
|
+
await chmod(dir, 448);
|
|
226
|
+
}
|
|
227
|
+
async function writeCapabilityFile(socket, token) {
|
|
228
|
+
const dir = getCapabilityDir();
|
|
229
|
+
await assertPrivateCapabilityDir(dir);
|
|
230
|
+
const target = getCapabilityPath(socket);
|
|
231
|
+
const temp = `${target}.${process.pid}.${randomBytes(8).toString("hex")}.tmp`;
|
|
232
|
+
try {
|
|
233
|
+
await writePrivateFileExclusive(temp, jsonStringify({ socketPath: socket, authToken: token }));
|
|
234
|
+
await rename(temp, target);
|
|
235
|
+
} catch (error) {
|
|
236
|
+
try {
|
|
237
|
+
await unlink(temp);
|
|
238
|
+
} catch {}
|
|
239
|
+
throw error;
|
|
240
|
+
}
|
|
241
|
+
capabilityFilePath = target;
|
|
242
|
+
}
|
|
243
|
+
async function readUdsCapabilityToken(socket) {
|
|
244
|
+
try {
|
|
245
|
+
const parsed = jsonParse(await readFile(getCapabilityPath(socket), "utf-8"));
|
|
246
|
+
if (parsed.socketPath === socket && typeof parsed.authToken === "string") {
|
|
247
|
+
return parsed.authToken;
|
|
248
|
+
}
|
|
249
|
+
} catch {}
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
function setOnEnqueue(cb) {
|
|
253
|
+
onEnqueueCb = cb;
|
|
254
|
+
}
|
|
255
|
+
function drainInbox() {
|
|
256
|
+
const pending = inbox.splice(0, inbox.length);
|
|
257
|
+
inboxBytes = 0;
|
|
258
|
+
for (const entry of pending) {
|
|
259
|
+
entry.status = "processed";
|
|
260
|
+
}
|
|
261
|
+
return pending;
|
|
262
|
+
}
|
|
263
|
+
function getMessageBytes(message) {
|
|
264
|
+
return Buffer.byteLength(jsonStringify(message), "utf8");
|
|
265
|
+
}
|
|
266
|
+
function enqueueInboxEntry(entry) {
|
|
267
|
+
const entryBytes = getMessageBytes(entry.message);
|
|
268
|
+
if (entryBytes > MAX_UDS_FRAME_BYTES || inbox.length >= MAX_UDS_INBOX_ENTRIES || inboxBytes + entryBytes > MAX_UDS_INBOX_BYTES) {
|
|
269
|
+
logError(new Error(`[udsMessaging] inbox full (${inbox.length}/${MAX_UDS_INBOX_ENTRIES}, ${inboxBytes}/${MAX_UDS_INBOX_BYTES} bytes); dropping message type=${entry.message.type}`));
|
|
270
|
+
return false;
|
|
271
|
+
}
|
|
272
|
+
inbox.push(entry);
|
|
273
|
+
inboxBytes += entryBytes;
|
|
274
|
+
return true;
|
|
275
|
+
}
|
|
276
|
+
function ensureAuthToken() {
|
|
277
|
+
if (!authToken) {
|
|
278
|
+
authToken = randomBytes(32).toString("hex");
|
|
279
|
+
}
|
|
280
|
+
return authToken;
|
|
281
|
+
}
|
|
282
|
+
function getMessageAuthToken(message) {
|
|
283
|
+
const token = message.meta?.authToken;
|
|
284
|
+
return typeof token === "string" ? token : undefined;
|
|
285
|
+
}
|
|
286
|
+
function isAuthorizedMessage(message) {
|
|
287
|
+
const provided = getMessageAuthToken(message);
|
|
288
|
+
if (!provided || !authToken)
|
|
289
|
+
return false;
|
|
290
|
+
const providedBuffer = Buffer.from(provided, "utf8");
|
|
291
|
+
const expectedBuffer = Buffer.from(authToken, "utf8");
|
|
292
|
+
if (providedBuffer.length !== expectedBuffer.length)
|
|
293
|
+
return false;
|
|
294
|
+
return timingSafeEqual(providedBuffer, expectedBuffer);
|
|
295
|
+
}
|
|
296
|
+
function writeSocketMessage(socket, message) {
|
|
297
|
+
if (socket.destroyed)
|
|
298
|
+
return;
|
|
299
|
+
socket.write(jsonStringify(message) + `
|
|
300
|
+
`);
|
|
301
|
+
}
|
|
302
|
+
function writeSocketMessageAndDestroy(socket, message) {
|
|
303
|
+
if (socket.destroyed)
|
|
304
|
+
return;
|
|
305
|
+
socket.write(jsonStringify(message) + `
|
|
306
|
+
`, () => {
|
|
307
|
+
if (!socket.destroyed)
|
|
308
|
+
socket.destroy();
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
function writeSocketErrorAndDestroy(socket, data) {
|
|
312
|
+
writeSocketMessageAndDestroy(socket, {
|
|
313
|
+
type: "error",
|
|
314
|
+
data,
|
|
315
|
+
ts: new Date().toISOString()
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
function unrefTimer(timer) {
|
|
319
|
+
const maybeUnref = timer.unref;
|
|
320
|
+
if (typeof maybeUnref === "function") {
|
|
321
|
+
maybeUnref.call(timer);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
async function closeServer(serverToClose) {
|
|
325
|
+
await new Promise((resolve) => {
|
|
326
|
+
serverToClose.close(() => resolve());
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
async function removeSocketPath(path) {
|
|
330
|
+
if (process.platform === "win32")
|
|
331
|
+
return;
|
|
332
|
+
try {
|
|
333
|
+
await unlink(path);
|
|
334
|
+
} catch {}
|
|
335
|
+
}
|
|
336
|
+
function stripAuthToken(message) {
|
|
337
|
+
const { authToken: _authToken, ...metaWithoutAuth } = message.meta ?? {};
|
|
338
|
+
return {
|
|
339
|
+
...message,
|
|
340
|
+
meta: Object.keys(metaWithoutAuth).length > 0 ? metaWithoutAuth : undefined
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
function withRequestAuthToken(message, token) {
|
|
344
|
+
return {
|
|
345
|
+
...message,
|
|
346
|
+
meta: {
|
|
347
|
+
...message.meta,
|
|
348
|
+
authToken: token
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
}
|
|
352
|
+
async function startUdsMessaging(path, opts) {
|
|
353
|
+
if (server) {
|
|
354
|
+
logForDebugging("[udsMessaging] server already running, skipping start");
|
|
355
|
+
return;
|
|
356
|
+
}
|
|
357
|
+
if (process.platform !== "win32") {
|
|
358
|
+
await ensureSocketParent(path);
|
|
359
|
+
}
|
|
360
|
+
if (process.platform !== "win32") {
|
|
361
|
+
try {
|
|
362
|
+
await unlink(path);
|
|
363
|
+
} catch {}
|
|
364
|
+
}
|
|
365
|
+
const token = ensureAuthToken();
|
|
366
|
+
let startedServer = null;
|
|
367
|
+
let exportedSocketEnv = false;
|
|
368
|
+
try {
|
|
369
|
+
await new Promise((resolve, reject) => {
|
|
370
|
+
const srv = createServer((socket) => {
|
|
371
|
+
if (clients.size >= MAX_UDS_CLIENTS) {
|
|
372
|
+
logForDebugging(`[udsMessaging] rejected client: ${clients.size}/${MAX_UDS_CLIENTS} clients already connected`);
|
|
373
|
+
socket.destroy();
|
|
374
|
+
return;
|
|
375
|
+
}
|
|
376
|
+
clients.add(socket);
|
|
377
|
+
logForDebugging(`[udsMessaging] client connected (total: ${clients.size})`);
|
|
378
|
+
let authenticated = false;
|
|
379
|
+
let closing = false;
|
|
380
|
+
const closeWithError = (data) => {
|
|
381
|
+
if (closing || socket.destroyed)
|
|
382
|
+
return;
|
|
383
|
+
closing = true;
|
|
384
|
+
socket.pause();
|
|
385
|
+
writeSocketErrorAndDestroy(socket, data);
|
|
386
|
+
};
|
|
387
|
+
const authTimer = setTimeout(() => {
|
|
388
|
+
if (authenticated || socket.destroyed)
|
|
389
|
+
return;
|
|
390
|
+
logForDebugging("[udsMessaging] closing unauthenticated idle client");
|
|
391
|
+
closeWithError("authentication timeout");
|
|
392
|
+
}, UDS_AUTH_TIMEOUT_MS);
|
|
393
|
+
unrefTimer(authTimer);
|
|
394
|
+
socket.setTimeout(UDS_IDLE_TIMEOUT_MS, () => {
|
|
395
|
+
logForDebugging("[udsMessaging] closing idle client");
|
|
396
|
+
closeWithError("idle timeout");
|
|
397
|
+
});
|
|
398
|
+
attachNdjsonFramer(socket, (msg) => {
|
|
399
|
+
if (!isAuthorizedMessage(msg)) {
|
|
400
|
+
logForDebugging(`[udsMessaging] rejected unauthenticated message type=${msg.type}`);
|
|
401
|
+
closeWithError("unauthorized");
|
|
402
|
+
return;
|
|
403
|
+
}
|
|
404
|
+
if (!authenticated) {
|
|
405
|
+
authenticated = true;
|
|
406
|
+
clearTimeout(authTimer);
|
|
407
|
+
}
|
|
408
|
+
if (msg.type === "ping") {
|
|
409
|
+
writeSocketMessage(socket, {
|
|
410
|
+
type: "pong",
|
|
411
|
+
from: socketPath ?? undefined,
|
|
412
|
+
ts: new Date().toISOString()
|
|
413
|
+
});
|
|
414
|
+
return;
|
|
415
|
+
}
|
|
416
|
+
const sanitizedMessage = stripAuthToken(msg);
|
|
417
|
+
const entry = {
|
|
418
|
+
id: `uds-${nextId++}`,
|
|
419
|
+
message: sanitizedMessage,
|
|
420
|
+
receivedAt: Date.now(),
|
|
421
|
+
status: "pending"
|
|
422
|
+
};
|
|
423
|
+
if (!enqueueInboxEntry(entry)) {
|
|
424
|
+
closeWithError("inbox full");
|
|
425
|
+
return;
|
|
426
|
+
}
|
|
427
|
+
logForDebugging(`[udsMessaging] enqueued message type=${msg.type} from=${msg.from ?? "unknown"}`);
|
|
428
|
+
writeSocketMessage(socket, {
|
|
429
|
+
type: "response",
|
|
430
|
+
data: "ok",
|
|
431
|
+
ts: new Date().toISOString(),
|
|
432
|
+
meta: { id: entry.id }
|
|
433
|
+
});
|
|
434
|
+
onEnqueueCb?.();
|
|
435
|
+
}, (text) => jsonParse(text), {
|
|
436
|
+
maxFrameBytes: MAX_UDS_FRAME_BYTES,
|
|
437
|
+
onFrameError: (error) => {
|
|
438
|
+
logForDebugging(`[udsMessaging] ${error.message}`);
|
|
439
|
+
closeWithError(error.message);
|
|
440
|
+
},
|
|
441
|
+
onInvalidFrame: (error) => {
|
|
442
|
+
logForDebugging(`[udsMessaging] invalid client frame: ${errorMessage(error)}`);
|
|
443
|
+
closeWithError("invalid frame");
|
|
444
|
+
},
|
|
445
|
+
destroyOnFrameError: false
|
|
446
|
+
});
|
|
447
|
+
socket.on("close", () => {
|
|
448
|
+
clearTimeout(authTimer);
|
|
449
|
+
clients.delete(socket);
|
|
450
|
+
});
|
|
451
|
+
socket.on("error", (err) => {
|
|
452
|
+
clearTimeout(authTimer);
|
|
453
|
+
clients.delete(socket);
|
|
454
|
+
logForDebugging(`[udsMessaging] client error: ${errorMessage(err)}`);
|
|
455
|
+
});
|
|
456
|
+
});
|
|
457
|
+
const rejectBeforeListen = (error) => {
|
|
458
|
+
reject(error);
|
|
459
|
+
};
|
|
460
|
+
const logRuntimeError = (error) => {
|
|
461
|
+
logForDebugging(`[udsMessaging] server error on ${path}${opts?.isExplicit ? " (explicit)" : ""}: ${errorMessage(error)}`);
|
|
462
|
+
};
|
|
463
|
+
srv.once("error", rejectBeforeListen);
|
|
464
|
+
srv.listen(path, () => {
|
|
465
|
+
(async () => {
|
|
466
|
+
try {
|
|
467
|
+
if (process.platform !== "win32") {
|
|
468
|
+
try {
|
|
469
|
+
await chmod(path, 384);
|
|
470
|
+
} catch (err) {
|
|
471
|
+
if (!(err instanceof Error && err.code === "ENOENT")) {
|
|
472
|
+
throw err;
|
|
473
|
+
}
|
|
474
|
+
logForDebugging(`[udsMessaging] chmod skipped: socket file not yet visible at ${path}`);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
srv.off("error", rejectBeforeListen);
|
|
478
|
+
srv.on("error", logRuntimeError);
|
|
479
|
+
server = srv;
|
|
480
|
+
startedServer = srv;
|
|
481
|
+
resolve();
|
|
482
|
+
} catch (error) {
|
|
483
|
+
srv.off("error", rejectBeforeListen);
|
|
484
|
+
const closeError = error instanceof Error ? error : new Error(errorMessage(error));
|
|
485
|
+
let rejected = false;
|
|
486
|
+
const rejectOnce = () => {
|
|
487
|
+
if (rejected)
|
|
488
|
+
return;
|
|
489
|
+
rejected = true;
|
|
490
|
+
reject(closeError);
|
|
491
|
+
};
|
|
492
|
+
const fallback = setTimeout(rejectOnce, 1000);
|
|
493
|
+
unrefTimer(fallback);
|
|
494
|
+
srv.close(() => {
|
|
495
|
+
clearTimeout(fallback);
|
|
496
|
+
rejectOnce();
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
})();
|
|
500
|
+
});
|
|
501
|
+
});
|
|
502
|
+
await writeCapabilityFile(path, token);
|
|
503
|
+
socketPath = path;
|
|
504
|
+
process.env.CLAUDE_CODE_MESSAGING_SOCKET = path;
|
|
505
|
+
exportedSocketEnv = true;
|
|
506
|
+
logForDebugging(`[udsMessaging] server listening on ${path}${opts?.isExplicit ? " (explicit)" : ""}`);
|
|
507
|
+
} catch (error) {
|
|
508
|
+
if (capabilityFilePath) {
|
|
509
|
+
try {
|
|
510
|
+
await unlink(capabilityFilePath);
|
|
511
|
+
} catch {}
|
|
512
|
+
capabilityFilePath = null;
|
|
513
|
+
}
|
|
514
|
+
if (startedServer) {
|
|
515
|
+
await closeServer(startedServer);
|
|
516
|
+
}
|
|
517
|
+
if (server === startedServer) {
|
|
518
|
+
server = null;
|
|
519
|
+
}
|
|
520
|
+
await removeSocketPath(path);
|
|
521
|
+
if (exportedSocketEnv) {
|
|
522
|
+
delete process.env.CLAUDE_CODE_MESSAGING_SOCKET;
|
|
523
|
+
}
|
|
524
|
+
socketPath = null;
|
|
525
|
+
defaultSocketPath = null;
|
|
526
|
+
authToken = null;
|
|
527
|
+
throw error;
|
|
528
|
+
}
|
|
529
|
+
registerCleanup(async () => {
|
|
530
|
+
await stopUdsMessaging();
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
async function stopUdsMessaging() {
|
|
534
|
+
defaultSocketPath = null;
|
|
535
|
+
if (!server)
|
|
536
|
+
return;
|
|
537
|
+
for (const socket of clients) {
|
|
538
|
+
socket.destroy();
|
|
539
|
+
}
|
|
540
|
+
clients.clear();
|
|
541
|
+
await new Promise((resolve) => {
|
|
542
|
+
server.close(() => resolve());
|
|
543
|
+
});
|
|
544
|
+
server = null;
|
|
545
|
+
inbox.length = 0;
|
|
546
|
+
inboxBytes = 0;
|
|
547
|
+
onEnqueueCb = null;
|
|
548
|
+
if (socketPath) {
|
|
549
|
+
await removeSocketPath(socketPath);
|
|
550
|
+
delete process.env.CLAUDE_CODE_MESSAGING_SOCKET;
|
|
551
|
+
logForDebugging(`[udsMessaging] server stopped, socket removed: ${socketPath}`);
|
|
552
|
+
socketPath = null;
|
|
553
|
+
authToken = null;
|
|
554
|
+
}
|
|
555
|
+
if (capabilityFilePath) {
|
|
556
|
+
try {
|
|
557
|
+
await unlink(capabilityFilePath);
|
|
558
|
+
} catch {}
|
|
559
|
+
capabilityFilePath = null;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
async function sendUdsMessage(targetSocketPath, message, opts = {}) {
|
|
563
|
+
const { createConnection } = await import("net");
|
|
564
|
+
const token = opts.authToken ?? authToken;
|
|
565
|
+
if (!token) {
|
|
566
|
+
throw new Error("Cannot send UDS message without auth token");
|
|
567
|
+
}
|
|
568
|
+
const outbound = withRequestAuthToken({
|
|
569
|
+
...message,
|
|
570
|
+
from: message.from ?? socketPath ?? undefined,
|
|
571
|
+
ts: message.ts ?? new Date().toISOString()
|
|
572
|
+
}, token);
|
|
573
|
+
return new Promise((resolve, reject) => {
|
|
574
|
+
let settled = false;
|
|
575
|
+
let conn;
|
|
576
|
+
const finish = (error) => {
|
|
577
|
+
if (settled)
|
|
578
|
+
return;
|
|
579
|
+
settled = true;
|
|
580
|
+
if (error) {
|
|
581
|
+
conn.destroy(error);
|
|
582
|
+
reject(error);
|
|
583
|
+
} else {
|
|
584
|
+
conn.end();
|
|
585
|
+
resolve();
|
|
586
|
+
}
|
|
587
|
+
};
|
|
588
|
+
conn = createConnection(targetSocketPath, () => {
|
|
589
|
+
conn.write(jsonStringify(outbound) + `
|
|
590
|
+
`, (err) => {
|
|
591
|
+
if (err)
|
|
592
|
+
finish(err);
|
|
593
|
+
});
|
|
594
|
+
});
|
|
595
|
+
attachUdsResponseReader(conn, {
|
|
596
|
+
maxFrameBytes: MAX_UDS_FRAME_BYTES,
|
|
597
|
+
acceptPong: true,
|
|
598
|
+
onSettled: finish
|
|
599
|
+
});
|
|
600
|
+
conn.setTimeout(5000, () => {
|
|
601
|
+
finish(new Error("Connection timed out"));
|
|
602
|
+
});
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
var server = null, socketPath = null, onEnqueueCb = null, clients, inbox, nextId = 1, defaultSocketPath = null, authToken = null, capabilityFilePath = null, inboxBytes = 0, MAX_UDS_INBOX_ENTRIES = 1000, MAX_UDS_FRAME_BYTES, MAX_UDS_INBOX_BYTES, MAX_UDS_CLIENTS = 128, UDS_AUTH_TIMEOUT_MS = 2000, UDS_IDLE_TIMEOUT_MS = 30000;
|
|
606
|
+
var init_udsMessaging = __esm(() => {
|
|
607
|
+
init_cleanupRegistry();
|
|
608
|
+
init_debug();
|
|
609
|
+
init_errors();
|
|
610
|
+
init_envUtils();
|
|
611
|
+
init_ndjsonFramer();
|
|
612
|
+
init_udsResponseReader();
|
|
613
|
+
init_log();
|
|
614
|
+
init_slowOperations();
|
|
615
|
+
clients = new Set;
|
|
616
|
+
inbox = [];
|
|
617
|
+
MAX_UDS_FRAME_BYTES = 64 * 1024;
|
|
618
|
+
MAX_UDS_INBOX_BYTES = 2 * 1024 * 1024;
|
|
619
|
+
});
|
|
620
|
+
|
|
621
|
+
export { getChunkBytes, attachUdsResponseReader, init_udsResponseReader, MAX_UDS_INBOX_ENTRIES, MAX_UDS_FRAME_BYTES, MAX_UDS_INBOX_BYTES, MAX_UDS_CLIENTS, UDS_AUTH_TIMEOUT_MS, UDS_IDLE_TIMEOUT_MS, getDefaultUdsSocketPath, getUdsMessagingSocketPath, formatUdsAddress, parseUdsTarget, readUdsCapabilityToken, setOnEnqueue, drainInbox, startUdsMessaging, stopUdsMessaging, sendUdsMessage, init_udsMessaging };
|
|
622
|
+
|
|
623
|
+
//# debugId=0BFF4D376E7CE64E64756E2164756E21
|
|
624
|
+
//# sourceMappingURL=chunk-5vbtjcd2.js.map
|