@luluyun/automd 1.0.0 → 1.0.1
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 +32 -167
- package/README_EN.md +42 -19
- package/dist/{chunk-kkrpj15z.js → chunk-03yhyp33.js} +54 -53
- package/dist/{chunk-1b0n2maf.js → chunk-049cr4p3.js} +24 -23
- package/dist/{chunk-g7eswh87.js → chunk-07m6ht7d.js} +3 -3
- package/dist/{chunk-606nnckq.js → chunk-07rz03vg.js} +55 -54
- package/dist/{chunk-tc89z36b.js → chunk-07vnzh77.js} +4 -4
- package/dist/{chunk-9g94a34g.js → chunk-0ckrqekf.js} +54 -53
- package/dist/{chunk-11b3qsgr.js → chunk-0d0gkvg8.js} +1 -1
- package/dist/{chunk-1qqh5vcy.js → chunk-0d6amtma.js} +55 -54
- package/dist/{chunk-v8p9708x.js → chunk-0ezhm4vc.js} +3 -3
- package/dist/{chunk-7drmtgxp.js → chunk-0fyx9hph.js} +1 -1
- package/dist/{chunk-009984kz.js → chunk-0htp168q.js} +60 -59
- package/dist/chunk-0j698zm0.js +122 -0
- package/dist/{chunk-y3vzfy52.js → chunk-0pwt7qjx.js} +55 -54
- package/dist/{chunk-p1mdfgf4.js → chunk-11x0rbgg.js} +9 -8
- package/dist/{chunk-3wg497by.js → chunk-163tc8gd.js} +8 -6
- package/dist/{chunk-wpbdb292.js → chunk-1896h0na.js} +55 -54
- package/dist/{chunk-cqck4p0r.js → chunk-18nc0ymb.js} +55 -54
- package/dist/{chunk-js2mtdhx.js → chunk-19s1686b.js} +65 -64
- package/dist/{chunk-rkd7svgz.js → chunk-19y1nvgy.js} +69 -68
- package/dist/{chunk-w5r9c2qp.js → chunk-1es18r7g.js} +55 -54
- package/dist/{chunk-z2n64ef3.js → chunk-1khtzqrj.js} +5 -3
- package/dist/{chunk-j68ya1wq.js → chunk-1m674djk.js} +2 -2
- package/dist/{chunk-kkbavq92.js → chunk-1n08xy3a.js} +59 -58
- package/dist/{chunk-d2ydv73x.js → chunk-1p34gh9f.js} +55 -54
- package/dist/{chunk-21nz9nnc.js → chunk-1pkd62xw.js} +6 -6
- package/dist/{chunk-7jedqj9h.js → chunk-1pvqx2gk.js} +71 -70
- package/dist/{chunk-jtk7x4k0.js → chunk-1ray0p0s.js} +35 -33
- package/dist/{chunk-9xnsynpm.js → chunk-1scbyvc1.js} +6 -4
- package/dist/{chunk-vr9y1psc.js → chunk-1sh5aytt.js} +2 -1
- package/dist/{chunk-2zf7q833.js → chunk-1v1fkw9y.js} +8 -6
- package/dist/{chunk-9ak75gr6.js → chunk-1vpvfxca.js} +22 -21
- package/dist/{chunk-yqk99a86.js → chunk-1waynmy2.js} +2 -2
- package/dist/{chunk-4v661jfp.js → chunk-1we0hsed.js} +69 -68
- package/dist/{chunk-q14y53q1.js → chunk-1zh1bmad.js} +9 -7
- package/dist/{chunk-k1d8wfxs.js → chunk-1zz9gcjv.js} +55 -54
- package/dist/{chunk-m0a7dxqc.js → chunk-26vc0ke5.js} +20 -19
- package/dist/{chunk-j77j3xj5.js → chunk-275z8v5m.js} +9 -7
- package/dist/{chunk-b7nkgbms.js → chunk-27gewfhk.js} +5 -4
- package/dist/{chunk-q26j42bk.js → chunk-27srbs9p.js} +57 -56
- package/dist/{chunk-7ma84vsd.js → chunk-29vz8fqt.js} +54 -53
- package/dist/{chunk-z6a8xk3m.js → chunk-2c404886.js} +54 -53
- package/dist/{chunk-he1psp6f.js → chunk-2k7fb0y2.js} +1 -1
- package/dist/{chunk-3xngbz05.js → chunk-2m3ex024.js} +3 -3
- package/dist/{chunk-7706wbz7.js → chunk-2mecpdm4.js} +1 -1
- package/dist/{chunk-kv2tmk99.js → chunk-31prke86.js} +11 -9
- package/dist/{chunk-rqy8a9zn.js → chunk-38ngqpnb.js} +22 -21
- package/dist/{chunk-sf8drsdx.js → chunk-3bzt2tme.js} +7 -5
- package/dist/{chunk-ngm4pavy.js → chunk-3ej354vb.js} +4 -4
- package/dist/{chunk-s0r332zb.js → chunk-3jd9y134.js} +22 -20
- package/dist/{chunk-9vbfgsj2.js → chunk-3q8w9bbc.js} +1 -1
- package/dist/{chunk-adshwmsk.js → chunk-3qdknfrw.js} +3 -3
- package/dist/{chunk-0gctm20b.js → chunk-3v9vthmt.js} +5 -3
- package/dist/{chunk-h7mhp2mz.js → chunk-3xqafqjv.js} +10 -8
- package/dist/{chunk-gttvs4dz.js → chunk-3y8s02bw.js} +10 -8
- package/dist/{chunk-37bk9h3n.js → chunk-40v25wtv.js} +1 -7
- package/dist/{chunk-e434dqzf.js → chunk-44dnbs9c.js} +1 -1
- package/dist/{chunk-x5wr7tbp.js → chunk-486tcv6d.js} +20 -19
- package/dist/{chunk-g4y9jq1x.js → chunk-490052nn.js} +5 -4
- package/dist/{chunk-7tef20gk.js → chunk-49kn4ttd.js} +5 -5
- package/dist/{chunk-k5j1eqdm.js → chunk-4ac29e5q.js} +57 -56
- package/dist/{chunk-j7yr3vyy.js → chunk-4csvvre0.js} +23 -22
- package/dist/{chunk-3j7xjxa1.js → chunk-4ftbpd8r.js} +5 -3
- package/dist/{chunk-n70fs18n.js → chunk-4hcasyaf.js} +21 -20
- package/dist/{chunk-268hmtet.js → chunk-4j1yte1a.js} +55 -54
- package/dist/{chunk-72tamsb6.js → chunk-4kg91jva.js} +55 -54
- package/dist/{chunk-ggpxa6pv.js → chunk-4mbd13g5.js} +63 -62
- package/dist/{chunk-3rwfjhjg.js → chunk-4nwfzwsr.js} +24 -22
- package/dist/{chunk-dfxgqwz3.js → chunk-4qtxtg58.js} +21 -20
- package/dist/{chunk-r7hnnbw3.js → chunk-4scpe9pr.js} +8 -6
- package/dist/{chunk-a9br06ma.js → chunk-4vrtv2dc.js} +22 -21
- package/dist/{chunk-zyjqv5c3.js → chunk-52rf6m28.js} +11 -10
- package/dist/{chunk-03d70atn.js → chunk-57pb8wj9.js} +21 -20
- package/dist/{chunk-fxprxmrh.js → chunk-59zfcfhx.js} +6 -6
- package/dist/{chunk-ejpegwgn.js → chunk-5f3s5jbj.js} +6 -6
- package/dist/{chunk-wfgdqbza.js → chunk-5fm2scps.js} +1 -1
- package/dist/{chunk-mv72ye31.js → chunk-5hmr2c99.js} +7 -5
- package/dist/{chunk-2qgjf1zx.js → chunk-5ppj3ekh.js} +3 -3
- package/dist/{chunk-58qm58st.js → chunk-6be3a2p7.js} +2 -2
- package/dist/{chunk-v5r0zytv.js → chunk-6c48e3zt.js} +21 -20
- package/dist/{chunk-kzb38p8m.js → chunk-6nn3p38n.js} +26 -25
- package/dist/{chunk-0z9rtar5.js → chunk-6p2nxwcg.js} +57 -56
- package/dist/{chunk-ymtxxvt6.js → chunk-6s7ve29n.js} +4 -4
- package/dist/{chunk-js3jewxx.js → chunk-6v95y20t.js} +1 -1
- package/dist/{chunk-vsaqhchc.js → chunk-71veamfj.js} +57 -56
- package/dist/{chunk-qgh9yenv.js → chunk-7chxdbhx.js} +55 -54
- package/dist/{chunk-gy98csm9.js → chunk-7eqvz3g8.js} +21 -20
- package/dist/{chunk-rsj1w4cv.js → chunk-7f200vcg.js} +55 -54
- package/dist/{chunk-6kqp09yz.js → chunk-7fkxk9by.js} +2 -2
- package/dist/{chunk-9pnst74f.js → chunk-7jz54fee.js} +9 -7
- package/dist/{chunk-474v72wq.js → chunk-7krt9z38.js} +6 -6
- package/dist/{chunk-rtkfbw0m.js → chunk-7sjk6100.js} +21 -20
- package/dist/{chunk-krjx63ge.js → chunk-7ssm0jkg.js} +1 -1
- package/dist/{chunk-ah18jasj.js → chunk-7svwcjtj.js} +12 -10
- package/dist/{chunk-nd69zp7b.js → chunk-813jv72j.js} +1 -1
- package/dist/{chunk-x9ntdxt7.js → chunk-8a573a8v.js} +58 -57
- package/dist/{chunk-0yq5hdc4.js → chunk-8ndk835h.js} +21 -20
- package/dist/{chunk-kwgrbr2j.js → chunk-8qr3gcz8.js} +59 -58
- package/dist/{chunk-27mmaf0x.js → chunk-8t14cjnx.js} +1 -1
- package/dist/{chunk-e7ty93hy.js → chunk-8xtzhpy9.js} +15 -13
- package/dist/{chunk-rahbr3qv.js → chunk-90cvnjgd.js} +20 -19
- package/dist/{chunk-595zqmhh.js → chunk-926b935w.js} +60 -59
- package/dist/{chunk-ay7ert7t.js → chunk-984wdqxh.js} +54 -53
- package/dist/{chunk-pgw1hq7r.js → chunk-98x2tswg.js} +57 -55
- package/dist/{chunk-szv4542t.js → chunk-9cfqyw0w.js} +72 -70
- package/dist/{chunk-5k1k3d6m.js → chunk-9ds0ercn.js} +4 -4
- package/dist/{chunk-rt9hmh7z.js → chunk-9dwzm332.js} +4 -4
- package/dist/{chunk-agqw1abk.js → chunk-9f8dr27m.js} +15 -13
- package/dist/{chunk-dpemqhf4.js → chunk-9nr7ef4a.js} +10 -9
- package/dist/{chunk-3hr1832a.js → chunk-9rnat1cm.js} +4 -4
- package/dist/{chunk-k566ab0v.js → chunk-9t728wrh.js} +21 -20
- package/dist/{chunk-m2gkjypz.js → chunk-9xcttsfw.js} +57 -56
- package/dist/{chunk-ecwrcz5z.js → chunk-9z71ydnn.js} +1 -1
- package/dist/{chunk-mfhhc5sm.js → chunk-a2m4jp23.js} +5 -5
- package/dist/{chunk-sqmkz226.js → chunk-actn9xy3.js} +6 -4
- package/dist/{chunk-w9jpytt1.js → chunk-ahxa2dfc.js} +54 -53
- package/dist/{chunk-h2n8s1re.js → chunk-aj5af2qt.js} +56 -55
- package/dist/{chunk-hxwr1814.js → chunk-ann1j62j.js} +56 -55
- package/dist/{chunk-a5r4y882.js → chunk-arqs4yec.js} +9 -7
- package/dist/{chunk-wqrfjb54.js → chunk-b36mgqc4.js} +92 -90
- package/dist/{chunk-023ch6fb.js → chunk-b3x0351w.js} +56 -55
- package/dist/{chunk-c89k5tac.js → chunk-b59znrc6.js} +54 -53
- package/dist/{chunk-tne98r9y.js → chunk-b6fqg2s3.js} +55 -54
- package/dist/{chunk-hyvnej21.js → chunk-b9e8647r.js} +9 -9
- package/dist/{chunk-pgm8amfj.js → chunk-bcqtgtgh.js} +54 -53
- package/dist/{chunk-sepwzp6y.js → chunk-berrk2wz.js} +13 -518
- package/dist/{chunk-3dsq4e0v.js → chunk-bhae604f.js} +57 -55
- package/dist/{chunk-mdtvwee6.js → chunk-bhqqn89c.js} +6 -6
- package/dist/{chunk-gt5ephty.js → chunk-bky485sf.js} +54 -53
- package/dist/{chunk-2m5gxb4x.js → chunk-bmwmkvdt.js} +7 -6
- package/dist/{chunk-bdc7csmj.js → chunk-c59zntr0.js} +2 -2
- package/dist/{chunk-qfwkb701.js → chunk-c86t5vxw.js} +2 -2
- package/dist/{chunk-y0ragvhd.js → chunk-ckkn8hyr.js} +1 -1
- package/dist/{chunk-4g3mr6ey.js → chunk-cm5pgvw0.js} +7 -6
- package/dist/{chunk-j48qr37t.js → chunk-cmxnw1av.js} +7 -5
- package/dist/{chunk-zhrd2qa9.js → chunk-ctpnv4gs.js} +2 -2
- package/dist/{chunk-hzaba6g1.js → chunk-czebmh3m.js} +59 -58
- package/dist/{chunk-74sqxz7f.js → chunk-d1pa6s33.js} +8 -6
- package/dist/{chunk-48886h6r.js → chunk-d41g0g7a.js} +5 -3
- package/dist/{chunk-93y70e2n.js → chunk-db02s4sh.js} +11 -9
- package/dist/{chunk-72v17pwk.js → chunk-dcxkw56m.js} +54 -53
- package/dist/{chunk-5g220843.js → chunk-dd743gjn.js} +62 -61
- package/dist/{chunk-ajt9q255.js → chunk-dn9bhy8j.js} +9 -8
- package/dist/{chunk-2ts94cnh.js → chunk-dq8td2y9.js} +8 -6
- package/dist/{chunk-qgz20q4v.js → chunk-dvwv7snv.js} +26 -26
- package/dist/{chunk-fbmq76bj.js → chunk-dxh3gytb.js} +22 -21
- package/dist/{chunk-zhxkd4kj.js → chunk-e966jd0k.js} +3 -3
- package/dist/{chunk-f4epa3hc.js → chunk-e9bez5dn.js} +1 -1
- package/dist/{chunk-995kmmrz.js → chunk-eaahr2r4.js} +1 -1
- package/dist/{chunk-164wnfy0.js → chunk-egs5jd5x.js} +55 -54
- package/dist/{chunk-j0kzzyjd.js → chunk-ej24wkkb.js} +5 -5
- package/dist/{chunk-d3h1vpsm.js → chunk-ervdjsdx.js} +9 -8
- package/dist/{chunk-m2w7bvy5.js → chunk-exmr6rxj.js} +4 -4
- package/dist/{chunk-7zszecca.js → chunk-ey2bdkkh.js} +5 -5
- package/dist/{chunk-9jyzah2d.js → chunk-eybanjf4.js} +9 -7
- package/dist/{chunk-jdggam3k.js → chunk-eyr9fq31.js} +60 -59
- package/dist/{chunk-bxzqgj26.js → chunk-eyrdjcn9.js} +21 -20
- package/dist/{chunk-4dy7571n.js → chunk-ez3jjzyw.js} +55 -54
- package/dist/{chunk-0nbcz4ss.js → chunk-f1ep2fhh.js} +56 -55
- package/dist/{chunk-qqynb587.js → chunk-f5t7hps2.js} +56 -55
- package/dist/{chunk-4z5e64cd.js → chunk-f8sm9vp2.js} +55 -54
- package/dist/{chunk-zk3w50yj.js → chunk-fav4kraz.js} +1 -1
- package/dist/{chunk-c772gc4k.js → chunk-fc0vs6ch.js} +11 -10
- package/dist/{chunk-95qjskk2.js → chunk-fjx8jpna.js} +4 -4
- package/dist/chunk-fq8vpp8s.js +185 -0
- package/dist/{chunk-4zvhmyca.js → chunk-ftxkjear.js} +54 -53
- package/dist/{chunk-833c36vk.js → chunk-fwb8h053.js} +48 -46
- package/dist/{chunk-1hsygdr1.js → chunk-fx4z8jhr.js} +55 -54
- package/dist/{chunk-6qf93p8j.js → chunk-g4qbshyq.js} +3 -3
- package/dist/{chunk-9d9ez9r3.js → chunk-g7q1asth.js} +6 -6
- package/dist/{chunk-yxgqz1e1.js → chunk-gb33nk84.js} +54 -53
- package/dist/{chunk-cctc0ern.js → chunk-ge14z4d6.js} +15 -15
- package/dist/{chunk-kfzv3z83.js → chunk-gnrhatd7.js} +8 -6
- package/dist/{chunk-f54pn813.js → chunk-gw6bs4pc.js} +21 -20
- package/dist/{chunk-hf2kz9cy.js → chunk-gw7em9ax.js} +59 -57
- package/dist/{chunk-bhva894j.js → chunk-gytve1pf.js} +10 -8
- package/dist/{chunk-hzpb0xmv.js → chunk-h19qy0q7.js} +2 -2
- package/dist/{chunk-0392yj84.js → chunk-h3av2qdd.js} +8 -8
- package/dist/{chunk-fkct2yqq.js → chunk-h5mst1mc.js} +21 -20
- package/dist/{chunk-ygqj2dzj.js → chunk-h7c6ccc8.js} +5 -5
- package/dist/chunk-h9z4ajv7.js +119 -0
- package/dist/{chunk-qrrjjag5.js → chunk-hcc8z63k.js} +56 -55
- package/dist/{chunk-94bw60a7.js → chunk-hgzzfp8e.js} +56 -55
- package/dist/{chunk-j1xxwx0h.js → chunk-hk2g8dns.js} +8 -8
- package/dist/{chunk-9rvaeawh.js → chunk-hkwassdn.js} +20 -19
- package/dist/{chunk-kgyjrmz5.js → chunk-hsz0vb28.js} +10 -9
- package/dist/{chunk-3jnsm9tj.js → chunk-ht7g8sna.js} +55 -54
- package/dist/{chunk-7ggd0jz5.js → chunk-htd64cb9.js} +6 -6
- package/dist/{chunk-q1b5cjnw.js → chunk-hts80g90.js} +4 -3
- package/dist/{chunk-gfp4h4yv.js → chunk-hvez228m.js} +8 -6
- package/dist/{chunk-25ckr5z4.js → chunk-hxd9gg36.js} +65 -63
- package/dist/{chunk-q6pc57m2.js → chunk-hxmhg1e5.js} +5 -5
- package/dist/{chunk-c5c0an9e.js → chunk-hys76hws.js} +57 -56
- package/dist/{chunk-gfawgyha.js → chunk-j09wtjms.js} +2 -2
- package/dist/{chunk-x4ckp6p9.js → chunk-j2ap635h.js} +1 -1
- package/dist/{chunk-c2fpsd31.js → chunk-j3rhm8e4.js} +1 -1
- package/dist/{chunk-57xh5nw2.js → chunk-j5ymrvfh.js} +11 -9
- package/dist/{chunk-pvhffspb.js → chunk-j6bmy7rr.js} +55 -54
- package/dist/{chunk-jq3br2ep.js → chunk-j6f03zve.js} +1 -1
- package/dist/{chunk-g3zggh5s.js → chunk-j70kn8a4.js} +63 -62
- package/dist/{chunk-jw6sawwy.js → chunk-j7bb9d57.js} +2 -2
- package/dist/{chunk-f7hfhp06.js → chunk-jbabv6h2.js} +20 -19
- package/dist/{chunk-tkm3r9dx.js → chunk-jczygw42.js} +1 -1
- package/dist/{chunk-fkby609a.js → chunk-jf50dy1a.js} +179 -177
- package/dist/{chunk-aqts9eem.js → chunk-jnmjrt8q.js} +4 -4
- package/dist/{chunk-yqm9qex5.js → chunk-jqhx74tb.js} +61 -60
- package/dist/{chunk-5zq1myse.js → chunk-jqvcragy.js} +7 -6
- package/dist/{chunk-mn8t4kb8.js → chunk-jtc5hc3v.js} +1 -1
- package/dist/chunk-k2aedy4h.js +494 -0
- package/dist/{chunk-4jjz11cv.js → chunk-k3fdvzs9.js} +16 -16
- package/dist/{chunk-zp5wzmcg.js → chunk-kb1bzmyx.js} +1 -1
- package/dist/{chunk-xg24xr82.js → chunk-kbfcbhnf.js} +54 -53
- package/dist/{chunk-0tav8jts.js → chunk-kbjdrctf.js} +2 -2
- package/dist/{chunk-brgcwy2d.js → chunk-kcq8htsq.js} +10 -9
- package/dist/{chunk-vz2a56z3.js → chunk-kesshk0v.js} +21 -20
- package/dist/{chunk-94t681v2.js → chunk-knmfr8k6.js} +6 -4
- package/dist/{chunk-d3tvytm9.js → chunk-kr605k2f.js} +54 -53
- package/dist/{chunk-w04071n1.js → chunk-kvn29adk.js} +1 -8
- package/dist/{chunk-wb6qms6j.js → chunk-kxqj72pz.js} +8 -6
- package/dist/{chunk-g6v738nc.js → chunk-kz7q0kzc.js} +2 -2
- package/dist/{chunk-em0tcgcb.js → chunk-mcrcmq41.js} +14 -12
- package/dist/{chunk-63mmec9v.js → chunk-md4k3zdj.js} +3 -3
- package/dist/{chunk-bbajeek4.js → chunk-me7t5g4j.js} +10 -8
- package/dist/{chunk-e0kx60nq.js → chunk-mh97drey.js} +63 -61
- package/dist/{chunk-2qc3g8pg.js → chunk-mky9qzjp.js} +68 -66
- package/dist/{chunk-y0285awc.js → chunk-mnb6dmek.js} +19 -17
- package/dist/{chunk-wzvsfwn9.js → chunk-ms52tsjt.js} +1 -1
- package/dist/{chunk-m6tjzhxk.js → chunk-mwqz6csw.js} +58 -56
- package/dist/{chunk-b8xxc1zm.js → chunk-n3aa4cb1.js} +4 -4
- package/dist/{chunk-j7gfqh8v.js → chunk-nfm5ndj4.js} +2 -2
- package/dist/{chunk-j676tme0.js → chunk-nj7tp8v8.js} +3 -3
- package/dist/{chunk-peta84gt.js → chunk-nmb01v4w.js} +22 -21
- package/dist/{chunk-19d6p645.js → chunk-p5xpj8v0.js} +9 -7
- package/dist/{chunk-g6a24f3c.js → chunk-p6fkxhjp.js} +54 -53
- package/dist/{chunk-fhejpaee.js → chunk-p7nf05sy.js} +63 -62
- package/dist/{chunk-e3a12qcr.js → chunk-p7x7hfq2.js} +9 -7
- package/dist/{chunk-vvkcc1sc.js → chunk-paem1yxq.js} +56 -55
- package/dist/{chunk-0wz695w4.js → chunk-pb7x469y.js} +9 -8
- package/dist/{chunk-nj4sav8f.js → chunk-pcfbtjt5.js} +55 -54
- package/dist/{chunk-3xq9hjtz.js → chunk-pcrbcd2b.js} +7 -7
- package/dist/{chunk-kfswbr9v.js → chunk-pdpseqc9.js} +54 -53
- package/dist/{chunk-926f5m2d.js → chunk-pjztxan3.js} +54 -53
- package/dist/{chunk-n280s88s.js → chunk-pnwyawca.js} +1 -1
- package/dist/{chunk-s8k5adwg.js → chunk-pp14gd6q.js} +9 -7
- package/dist/{chunk-nn0d1dcc.js → chunk-pp8jg9mv.js} +55 -54
- package/dist/{chunk-nmwy4vdy.js → chunk-psqqxdb0.js} +2 -2
- package/dist/{chunk-5jnsv9y8.js → chunk-pt0tf166.js} +2 -2
- package/dist/{chunk-m00kgtdv.js → chunk-pt509hh1.js} +60 -58
- package/dist/{chunk-3kgmjhey.js → chunk-pwajrasd.js} +9 -8
- package/dist/{chunk-dayaf02m.js → chunk-py5vaaaq.js} +35 -33
- package/dist/{chunk-1x50ys1y.js → chunk-q117re3g.js} +20 -19
- package/dist/{chunk-zq8y3355.js → chunk-q3jh73k8.js} +1 -1
- package/dist/{chunk-h3bdc76z.js → chunk-q5egc5ra.js} +54 -53
- package/dist/{chunk-tsr13vfe.js → chunk-q60bz9y6.js} +5 -8
- package/dist/{chunk-17rhtdg6.js → chunk-qawtymmw.js} +2 -2
- package/dist/{chunk-3qzmqejh.js → chunk-qbthzfym.js} +59 -58
- package/dist/{chunk-e9q08z34.js → chunk-qe2ppfda.js} +3 -3
- package/dist/{chunk-zbcfjyw0.js → chunk-qf96q4pz.js} +54 -53
- package/dist/{chunk-53j4whv1.js → chunk-qffsmp22.js} +3 -3
- package/dist/{chunk-av5hq58j.js → chunk-qj7zh2fe.js} +17 -17
- package/dist/{chunk-vakspmnq.js → chunk-qjzvsq8w.js} +64 -63
- package/dist/{chunk-q6pn7mdk.js → chunk-qna8h7pt.js} +54 -53
- package/dist/{chunk-6xw0f15a.js → chunk-qpg0hbn2.js} +20 -19
- package/dist/{chunk-g714v635.js → chunk-qprwfra0.js} +54 -53
- package/dist/{chunk-xzj1v56g.js → chunk-qqk0yxtr.js} +1 -1
- package/dist/{chunk-jfk454hh.js → chunk-qrcgmnxm.js} +1 -1
- package/dist/{chunk-nb6xj9yd.js → chunk-qvr6rjqq.js} +57 -56
- package/dist/{chunk-604q83ks.js → chunk-qyqw604q.js} +2 -2
- package/dist/{chunk-f31e900p.js → chunk-r0zznvhg.js} +26 -25
- package/dist/{chunk-whdhabrc.js → chunk-r6nc66q8.js} +58 -57
- package/dist/{chunk-qcqnyy0q.js → chunk-r80t5k98.js} +6 -4
- package/dist/{chunk-d12ja1w1.js → chunk-r94h1z5r.js} +54 -53
- package/dist/{chunk-qkj4k00m.js → chunk-rb4evejq.js} +1 -1
- package/dist/{chunk-zfqgxmcz.js → chunk-rh0e38e2.js} +1 -1
- package/dist/{chunk-22p30zkd.js → chunk-rhf1z7gc.js} +1 -1
- package/dist/{chunk-66dm3nwe.js → chunk-rr2hzer2.js} +886 -880
- package/dist/{chunk-zasn6e6b.js → chunk-rr43zswx.js} +57 -56
- package/dist/{chunk-8sa7hjcs.js → chunk-rr6qqq1v.js} +57 -56
- package/dist/{chunk-5yfm0wv7.js → chunk-rsezdx6w.js} +100 -98
- package/dist/{chunk-3bcs7meg.js → chunk-ry4h96fp.js} +2 -2
- package/dist/{chunk-zjcma7km.js → chunk-s1v256k5.js} +6 -5
- package/dist/{chunk-p6y1yedy.js → chunk-s3cexa82.js} +58 -56
- package/dist/{chunk-7sspj7q7.js → chunk-s3fbdhty.js} +57 -56
- package/dist/chunk-s51wc9yj.js +119 -0
- package/dist/{chunk-jwj3nj5b.js → chunk-s5g6cna1.js} +4 -3
- package/dist/{chunk-w3fp57qz.js → chunk-s5tfdnkv.js} +3 -2
- package/dist/{chunk-qbd4h5aj.js → chunk-s727qyst.js} +22 -21
- package/dist/{chunk-wfzajb4k.js → chunk-s81zfphq.js} +54 -53
- package/dist/{chunk-s9cwh8jr.js → chunk-s8a1er0k.js} +4 -4
- package/dist/{chunk-eeankjhv.js → chunk-sg1by608.js} +58 -57
- package/dist/{chunk-vshwxbdt.js → chunk-sm080rzr.js} +55 -54
- package/dist/{chunk-mg27yq5g.js → chunk-sr231sxa.js} +57 -56
- package/dist/{chunk-hdydbd6n.js → chunk-ssqkwayr.js} +3 -3
- package/dist/{chunk-fwwfs5px.js → chunk-sxw4cmwa.js} +26 -24
- package/dist/{chunk-3g9qc0r7.js → chunk-syb8q1a7.js} +6 -6
- package/dist/{chunk-6p01yzbv.js → chunk-sz369f7p.js} +1 -1
- package/dist/{chunk-55cdfz5s.js → chunk-tec2m8m9.js} +55 -54
- package/dist/{chunk-hbqf8gcx.js → chunk-th778mte.js} +22 -21
- package/dist/{chunk-69fev66a.js → chunk-tmxndttq.js} +1 -1
- package/dist/{chunk-8j3t8sfh.js → chunk-ty0yf565.js} +2 -2
- package/dist/{chunk-pfne5pc6.js → chunk-tzxm1qpd.js} +54 -53
- package/dist/{chunk-5fbc0x1x.js → chunk-v4h287k2.js} +10 -10
- package/dist/{chunk-7kf7bhsn.js → chunk-v8qxrewy.js} +5 -5
- package/dist/{chunk-gbc3hqxr.js → chunk-vekf3h3e.js} +5 -5
- package/dist/{chunk-13f7w7t7.js → chunk-vgmgqjdr.js} +21 -20
- package/dist/{chunk-v0nhtzyr.js → chunk-vhd3112j.js} +54 -53
- package/dist/{chunk-0fgksm4v.js → chunk-vn0s2f0t.js} +2 -2
- package/dist/{chunk-30t167rn.js → chunk-vrtkdk78.js} +24 -23
- package/dist/{chunk-hbj8nfr8.js → chunk-vs6jbwce.js} +55 -54
- package/dist/{chunk-pk919mxt.js → chunk-vym6ecc4.js} +1 -1
- package/dist/{chunk-ecnp0gg8.js → chunk-vz7s36ha.js} +6 -4
- package/dist/{chunk-t9bjcy5g.js → chunk-vzj5fr8q.js} +57 -56
- package/dist/{chunk-1ydcbefn.js → chunk-w0vmqtw5.js} +1 -1
- package/dist/{chunk-gg0tq2y9.js → chunk-w1b95wbx.js} +2 -2
- package/dist/{chunk-acvbnx48.js → chunk-w9v1v0zw.js} +5 -5
- package/dist/{chunk-eg9c4vg6.js → chunk-wd1vz4aq.js} +57 -56
- package/dist/{chunk-2a02pnrg.js → chunk-wdr8sk6s.js} +54 -53
- package/dist/{chunk-a5rhefy3.js → chunk-wfa6tv6q.js} +59 -58
- package/dist/{chunk-rbq3arh6.js → chunk-wfrj757m.js} +1 -1
- package/dist/{chunk-edty0bmy.js → chunk-wgg5m77q.js} +5 -3
- package/dist/chunk-wj7tkzgf.js +122 -0
- package/dist/{chunk-jy5tdhvj.js → chunk-wktyrws7.js} +10 -8
- package/dist/{chunk-7knsym93.js → chunk-wqb2gr1q.js} +61 -60
- package/dist/{chunk-jkrmwfzj.js → chunk-x258tnhw.js} +54 -53
- package/dist/{chunk-s216t5fh.js → chunk-x5bpppd4.js} +2 -2
- package/dist/{chunk-g2c7g1rs.js → chunk-xaje82s9.js} +25 -25
- package/dist/{chunk-xfpw9epw.js → chunk-xfkp0p02.js} +56 -55
- package/dist/{chunk-k398drqn.js → chunk-xhasgaxp.js} +63 -62
- package/dist/{chunk-708j0sq4.js → chunk-xnfp379r.js} +22 -21
- package/dist/{chunk-z3gr6gsz.js → chunk-xpzcbvcd.js} +9 -9
- package/dist/{chunk-r2p162kd.js → chunk-xs2y2sav.js} +56 -55
- package/dist/{chunk-pce5hv6g.js → chunk-xs4xpxjg.js} +54 -53
- package/dist/{chunk-79a3qw9m.js → chunk-xtfc0528.js} +21 -20
- package/dist/{chunk-1eth2p2m.js → chunk-xww754c2.js} +9 -8
- package/dist/{chunk-ap269m7m.js → chunk-xx0wk227.js} +12 -10
- package/dist/{chunk-kbt96bs4.js → chunk-y1fhmk40.js} +21 -17
- package/dist/{chunk-pf1bvr99.js → chunk-y1gvgx5x.js} +1 -1
- package/dist/{chunk-dahentrc.js → chunk-y230hx8v.js} +14 -12
- package/dist/{chunk-caxnxf4z.js → chunk-y56m5qyh.js} +32 -30
- package/dist/{chunk-aeepqjh1.js → chunk-y92r0hrv.js} +3 -2
- package/dist/{chunk-mk9avgv8.js → chunk-yf81mjer.js} +9 -7
- package/dist/{chunk-c001ecx7.js → chunk-yk441xjd.js} +2 -2
- package/dist/{chunk-t2ey4g22.js → chunk-yk6bb79v.js} +68 -67
- package/dist/{chunk-2st57p4f.js → chunk-yq9t8xss.js} +8 -6
- package/dist/{chunk-d90r72sm.js → chunk-yt85vdfb.js} +4 -4
- package/dist/{chunk-zrwg85kf.js → chunk-ytam595f.js} +54 -53
- package/dist/{chunk-xc3vycnq.js → chunk-yx1zay4h.js} +54 -53
- package/dist/{chunk-yentky6k.js → chunk-yyrs5wj8.js} +54 -53
- package/dist/{chunk-1g64f12t.js → chunk-z0khh7cw.js} +27 -25
- package/dist/{chunk-fxdj4wxj.js → chunk-z2jyv3za.js} +54 -53
- package/dist/{chunk-gskba4cp.js → chunk-z88xhqp8.js} +56 -55
- package/dist/{chunk-kme5xvp8.js → chunk-za5qp8vn.js} +54 -53
- package/dist/{chunk-p550m9ph.js → chunk-zb242aza.js} +22 -21
- package/dist/{chunk-avwppas4.js → chunk-zgepe2he.js} +25 -24
- package/dist/{chunk-2nxg3smd.js → chunk-zjnwa5a7.js} +116 -115
- package/dist/{chunk-pbvewrys.js → chunk-zk4649wd.js} +13 -13
- package/dist/{chunk-n12fkqm8.js → chunk-zmg2y3m0.js} +1 -1
- package/dist/{chunk-q2dcwd0s.js → chunk-zn0391k2.js} +21 -20
- package/dist/{chunk-g0708sxq.js → chunk-zr3vxx8f.js} +54 -53
- package/dist/{chunk-bprg82eg.js → chunk-zrk1k0n6.js} +58 -56
- package/dist/{chunk-1wsxfmjh.js → chunk-zwrzne74.js} +57 -56
- package/dist/cli.js +36 -36
- package/package.json +2 -2
- package/dist/chunk-0rv9hreq.js +0 -184
- package/dist/chunk-8nd0phkx.js +0 -121
- package/dist/chunk-adjzdv3w.js +0 -118
- package/dist/chunk-aej03dqk.js +0 -118
- package/dist/chunk-y1pf1gq2.js +0 -121
- package/dist/{chunk-6kp74mx0.js → chunk-ejnxa6q2.js} +4 -4
|
@@ -46,9 +46,9 @@ import {
|
|
|
46
46
|
isObjectLike_default
|
|
47
47
|
} from "./chunk-tj0dzck2.js";
|
|
48
48
|
import {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
} from "./chunk-
|
|
49
|
+
getFsImplementation,
|
|
50
|
+
init_fsOperations
|
|
51
|
+
} from "./chunk-k2aedy4h.js";
|
|
52
52
|
import {
|
|
53
53
|
getAppConfigHomeDir,
|
|
54
54
|
init_envUtils,
|
|
@@ -238,113 +238,6 @@ var init_debugFilter = __esm(() => {
|
|
|
238
238
|
});
|
|
239
239
|
});
|
|
240
240
|
|
|
241
|
-
// src/utils/errors.ts
|
|
242
|
-
function isAbortError(e) {
|
|
243
|
-
return e instanceof AbortError || e instanceof APIUserAbortError || e instanceof Error && e.name === "AbortError";
|
|
244
|
-
}
|
|
245
|
-
function hasExactErrorMessage(error, message) {
|
|
246
|
-
return error instanceof Error && error.message === message;
|
|
247
|
-
}
|
|
248
|
-
function toError(e) {
|
|
249
|
-
return e instanceof Error ? e : new Error(String(e));
|
|
250
|
-
}
|
|
251
|
-
function errorMessage(e) {
|
|
252
|
-
return e instanceof Error ? e.message : String(e);
|
|
253
|
-
}
|
|
254
|
-
function getErrnoCode(e) {
|
|
255
|
-
if (e && typeof e === "object" && "code" in e && typeof e.code === "string") {
|
|
256
|
-
return e.code;
|
|
257
|
-
}
|
|
258
|
-
return;
|
|
259
|
-
}
|
|
260
|
-
function isENOENT(e) {
|
|
261
|
-
return getErrnoCode(e) === "ENOENT";
|
|
262
|
-
}
|
|
263
|
-
function getErrnoPath(e) {
|
|
264
|
-
if (e && typeof e === "object" && "path" in e && typeof e.path === "string") {
|
|
265
|
-
return e.path;
|
|
266
|
-
}
|
|
267
|
-
return;
|
|
268
|
-
}
|
|
269
|
-
function isFsInaccessible(e) {
|
|
270
|
-
const code = getErrnoCode(e);
|
|
271
|
-
return code === "ENOENT" || code === "EACCES" || code === "EPERM" || code === "ENOTDIR" || code === "ELOOP";
|
|
272
|
-
}
|
|
273
|
-
function classifyAxiosError(e) {
|
|
274
|
-
const message = errorMessage(e);
|
|
275
|
-
if (!e || typeof e !== "object" || !("isAxiosError" in e) || !e.isAxiosError) {
|
|
276
|
-
return { kind: "other", message };
|
|
277
|
-
}
|
|
278
|
-
const err = e;
|
|
279
|
-
const status = err.response?.status;
|
|
280
|
-
if (status === 401 || status === 403)
|
|
281
|
-
return { kind: "auth", status, message };
|
|
282
|
-
if (err.code === "ECONNABORTED")
|
|
283
|
-
return { kind: "timeout", status, message };
|
|
284
|
-
if (err.code === "ECONNREFUSED" || err.code === "ENOTFOUND") {
|
|
285
|
-
return { kind: "network", status, message };
|
|
286
|
-
}
|
|
287
|
-
return { kind: "http", status, message };
|
|
288
|
-
}
|
|
289
|
-
var ClaudeError, MalformedCommandError, AbortError, ConfigParseError, ShellError, TeleportOperationError, TelemetrySafeError_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS;
|
|
290
|
-
var init_errors = __esm(() => {
|
|
291
|
-
init_sdk();
|
|
292
|
-
ClaudeError = class ClaudeError extends Error {
|
|
293
|
-
constructor(message) {
|
|
294
|
-
super(message);
|
|
295
|
-
this.name = this.constructor.name;
|
|
296
|
-
}
|
|
297
|
-
};
|
|
298
|
-
MalformedCommandError = class MalformedCommandError extends Error {
|
|
299
|
-
};
|
|
300
|
-
AbortError = class AbortError extends Error {
|
|
301
|
-
constructor(message) {
|
|
302
|
-
super(message);
|
|
303
|
-
this.name = "AbortError";
|
|
304
|
-
}
|
|
305
|
-
};
|
|
306
|
-
ConfigParseError = class ConfigParseError extends Error {
|
|
307
|
-
filePath;
|
|
308
|
-
defaultConfig;
|
|
309
|
-
constructor(message, filePath, defaultConfig) {
|
|
310
|
-
super(message);
|
|
311
|
-
this.name = "ConfigParseError";
|
|
312
|
-
this.filePath = filePath;
|
|
313
|
-
this.defaultConfig = defaultConfig;
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
|
-
ShellError = class ShellError extends Error {
|
|
317
|
-
stdout;
|
|
318
|
-
stderr;
|
|
319
|
-
code;
|
|
320
|
-
interrupted;
|
|
321
|
-
constructor(stdout, stderr, code, interrupted) {
|
|
322
|
-
super("Shell command failed");
|
|
323
|
-
this.stdout = stdout;
|
|
324
|
-
this.stderr = stderr;
|
|
325
|
-
this.code = code;
|
|
326
|
-
this.interrupted = interrupted;
|
|
327
|
-
this.name = "ShellError";
|
|
328
|
-
}
|
|
329
|
-
};
|
|
330
|
-
TeleportOperationError = class TeleportOperationError extends Error {
|
|
331
|
-
formattedMessage;
|
|
332
|
-
constructor(message, formattedMessage) {
|
|
333
|
-
super(message);
|
|
334
|
-
this.formattedMessage = formattedMessage;
|
|
335
|
-
this.name = "TeleportOperationError";
|
|
336
|
-
}
|
|
337
|
-
};
|
|
338
|
-
TelemetrySafeError_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = class TelemetrySafeError_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS extends Error {
|
|
339
|
-
telemetryMessage;
|
|
340
|
-
constructor(message, telemetryMessage) {
|
|
341
|
-
super(message);
|
|
342
|
-
this.name = "TelemetrySafeError";
|
|
343
|
-
this.telemetryMessage = telemetryMessage ?? message;
|
|
344
|
-
}
|
|
345
|
-
};
|
|
346
|
-
});
|
|
347
|
-
|
|
348
241
|
// node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js
|
|
349
242
|
function arrayEach(array, iteratee) {
|
|
350
243
|
var index = -1, length = array == null ? 0 : array.length;
|
|
@@ -520,14 +413,14 @@ function cloneBuffer(buffer, isDeep) {
|
|
|
520
413
|
buffer.copy(result);
|
|
521
414
|
return result;
|
|
522
415
|
}
|
|
523
|
-
var freeExports, freeModule, moduleExports,
|
|
416
|
+
var freeExports, freeModule, moduleExports, Buffer, allocUnsafe, _cloneBuffer_default;
|
|
524
417
|
var init__cloneBuffer = __esm(() => {
|
|
525
418
|
init__root();
|
|
526
419
|
freeExports = typeof exports__cloneBuffer == "object" && exports__cloneBuffer && !exports__cloneBuffer.nodeType && exports__cloneBuffer;
|
|
527
420
|
freeModule = freeExports && typeof module__cloneBuffer == "object" && module__cloneBuffer && !module__cloneBuffer.nodeType && module__cloneBuffer;
|
|
528
421
|
moduleExports = freeModule && freeModule.exports === freeExports;
|
|
529
|
-
|
|
530
|
-
allocUnsafe =
|
|
422
|
+
Buffer = moduleExports ? _root_default.Buffer : undefined;
|
|
423
|
+
allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined;
|
|
531
424
|
_cloneBuffer_default = cloneBuffer;
|
|
532
425
|
});
|
|
533
426
|
|
|
@@ -911,19 +804,13 @@ import {
|
|
|
911
804
|
fsyncSync,
|
|
912
805
|
openSync
|
|
913
806
|
} from "fs";
|
|
914
|
-
function slowLoggingExternal() {
|
|
915
|
-
return NOOP_LOGGER;
|
|
916
|
-
}
|
|
917
807
|
function jsonStringify(value, replacer, space) {
|
|
918
|
-
using _ = slowLogging`JSON.stringify(${value})`;
|
|
919
808
|
return JSON.stringify(value, replacer, space);
|
|
920
809
|
}
|
|
921
810
|
function clone(value, options) {
|
|
922
|
-
using _ = slowLogging`structuredClone(${value})`;
|
|
923
811
|
return structuredClone(value, options);
|
|
924
812
|
}
|
|
925
813
|
function writeFileSync_DEPRECATED(filePath, data, options) {
|
|
926
|
-
using _ = slowLogging`fs.writeFileSync(${filePath}, ${data})`;
|
|
927
814
|
const needsFlush = options !== null && typeof options === "object" && "flush" in options && options.flush === true;
|
|
928
815
|
if (needsFlush) {
|
|
929
816
|
const encoding = typeof options === "object" && "encoding" in options ? options.encoding : undefined;
|
|
@@ -942,8 +829,7 @@ function writeFileSync_DEPRECATED(filePath, data, options) {
|
|
|
942
829
|
fsWriteFileSync(filePath, data, options);
|
|
943
830
|
}
|
|
944
831
|
}
|
|
945
|
-
var SLOW_OPERATION_THRESHOLD_MS, NOOP_LOGGER,
|
|
946
|
-
using _ = slowLogging`JSON.parse(${text})`;
|
|
832
|
+
var SLOW_OPERATION_THRESHOLD_MS, NOOP_LOGGER, jsonParse = (text, reviver) => {
|
|
947
833
|
return typeof reviver === "undefined" ? JSON.parse(text) : JSON.parse(text, reviver);
|
|
948
834
|
};
|
|
949
835
|
var init_slowOperations = __esm(() => {
|
|
@@ -966,402 +852,11 @@ var init_slowOperations = __esm(() => {
|
|
|
966
852
|
return Infinity;
|
|
967
853
|
})();
|
|
968
854
|
NOOP_LOGGER = { [Symbol.dispose]() {} };
|
|
969
|
-
slowLogging = slowLoggingExternal;
|
|
970
|
-
});
|
|
971
|
-
|
|
972
|
-
// src/utils/fsOperations.ts
|
|
973
|
-
import * as fs from "fs";
|
|
974
|
-
import {
|
|
975
|
-
mkdir as mkdirPromise,
|
|
976
|
-
open,
|
|
977
|
-
readdir as readdirPromise,
|
|
978
|
-
readFile as readFilePromise,
|
|
979
|
-
rename as renamePromise,
|
|
980
|
-
rmdir as rmdirPromise,
|
|
981
|
-
rm as rmPromise,
|
|
982
|
-
stat as statPromise,
|
|
983
|
-
unlink as unlinkPromise
|
|
984
|
-
} from "fs/promises";
|
|
985
|
-
import { homedir } from "os";
|
|
986
|
-
import * as nodePath from "path";
|
|
987
|
-
function safeResolvePath(fs2, filePath) {
|
|
988
|
-
if (filePath.startsWith("//") || filePath.startsWith("\\\\")) {
|
|
989
|
-
return { resolvedPath: filePath, isSymlink: false, isCanonical: false };
|
|
990
|
-
}
|
|
991
|
-
try {
|
|
992
|
-
const stats = fs2.lstatSync(filePath);
|
|
993
|
-
if (stats.isFIFO() || stats.isSocket() || stats.isCharacterDevice() || stats.isBlockDevice()) {
|
|
994
|
-
return { resolvedPath: filePath, isSymlink: false, isCanonical: false };
|
|
995
|
-
}
|
|
996
|
-
const resolvedPath = fs2.realpathSync(filePath);
|
|
997
|
-
return {
|
|
998
|
-
resolvedPath,
|
|
999
|
-
isSymlink: resolvedPath !== filePath,
|
|
1000
|
-
isCanonical: true
|
|
1001
|
-
};
|
|
1002
|
-
} catch (_error) {
|
|
1003
|
-
return { resolvedPath: filePath, isSymlink: false, isCanonical: false };
|
|
1004
|
-
}
|
|
1005
|
-
}
|
|
1006
|
-
function isDuplicatePath(fs2, filePath, loadedPaths) {
|
|
1007
|
-
const { resolvedPath } = safeResolvePath(fs2, filePath);
|
|
1008
|
-
if (loadedPaths.has(resolvedPath)) {
|
|
1009
|
-
return true;
|
|
1010
|
-
}
|
|
1011
|
-
loadedPaths.add(resolvedPath);
|
|
1012
|
-
return false;
|
|
1013
|
-
}
|
|
1014
|
-
function resolveDeepestExistingAncestorSync(fs2, absolutePath) {
|
|
1015
|
-
let dir = absolutePath;
|
|
1016
|
-
const segments = [];
|
|
1017
|
-
while (dir !== nodePath.dirname(dir)) {
|
|
1018
|
-
let st;
|
|
1019
|
-
try {
|
|
1020
|
-
st = fs2.lstatSync(dir);
|
|
1021
|
-
} catch {
|
|
1022
|
-
segments.unshift(nodePath.basename(dir));
|
|
1023
|
-
dir = nodePath.dirname(dir);
|
|
1024
|
-
continue;
|
|
1025
|
-
}
|
|
1026
|
-
if (st.isSymbolicLink()) {
|
|
1027
|
-
try {
|
|
1028
|
-
const resolved = fs2.realpathSync(dir);
|
|
1029
|
-
return segments.length === 0 ? resolved : nodePath.join(resolved, ...segments);
|
|
1030
|
-
} catch {
|
|
1031
|
-
const target = fs2.readlinkSync(dir);
|
|
1032
|
-
const absTarget = nodePath.isAbsolute(target) ? target : nodePath.resolve(nodePath.dirname(dir), target);
|
|
1033
|
-
return segments.length === 0 ? absTarget : nodePath.join(absTarget, ...segments);
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
try {
|
|
1037
|
-
const resolved = fs2.realpathSync(dir);
|
|
1038
|
-
if (resolved !== dir) {
|
|
1039
|
-
return segments.length === 0 ? resolved : nodePath.join(resolved, ...segments);
|
|
1040
|
-
}
|
|
1041
|
-
} catch {}
|
|
1042
|
-
return;
|
|
1043
|
-
}
|
|
1044
|
-
return;
|
|
1045
|
-
}
|
|
1046
|
-
function getPathsForPermissionCheck(inputPath) {
|
|
1047
|
-
let path = inputPath;
|
|
1048
|
-
if (path === "~") {
|
|
1049
|
-
path = homedir().normalize("NFC");
|
|
1050
|
-
} else if (path.startsWith("~/")) {
|
|
1051
|
-
path = nodePath.join(homedir().normalize("NFC"), path.slice(2));
|
|
1052
|
-
}
|
|
1053
|
-
const pathSet = new Set;
|
|
1054
|
-
const fsImpl = getFsImplementation();
|
|
1055
|
-
pathSet.add(path);
|
|
1056
|
-
if (path.startsWith("//") || path.startsWith("\\\\")) {
|
|
1057
|
-
return Array.from(pathSet);
|
|
1058
|
-
}
|
|
1059
|
-
try {
|
|
1060
|
-
let currentPath = path;
|
|
1061
|
-
const visited = new Set;
|
|
1062
|
-
const maxDepth = 40;
|
|
1063
|
-
for (let depth = 0;depth < maxDepth; depth++) {
|
|
1064
|
-
if (visited.has(currentPath)) {
|
|
1065
|
-
break;
|
|
1066
|
-
}
|
|
1067
|
-
visited.add(currentPath);
|
|
1068
|
-
if (!fsImpl.existsSync(currentPath)) {
|
|
1069
|
-
if (currentPath === path) {
|
|
1070
|
-
const resolved = resolveDeepestExistingAncestorSync(fsImpl, path);
|
|
1071
|
-
if (resolved !== undefined) {
|
|
1072
|
-
pathSet.add(resolved);
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
break;
|
|
1076
|
-
}
|
|
1077
|
-
const stats = fsImpl.lstatSync(currentPath);
|
|
1078
|
-
if (stats.isFIFO() || stats.isSocket() || stats.isCharacterDevice() || stats.isBlockDevice()) {
|
|
1079
|
-
break;
|
|
1080
|
-
}
|
|
1081
|
-
if (!stats.isSymbolicLink()) {
|
|
1082
|
-
break;
|
|
1083
|
-
}
|
|
1084
|
-
const target = fsImpl.readlinkSync(currentPath);
|
|
1085
|
-
const absoluteTarget = nodePath.isAbsolute(target) ? target : nodePath.resolve(nodePath.dirname(currentPath), target);
|
|
1086
|
-
pathSet.add(absoluteTarget);
|
|
1087
|
-
currentPath = absoluteTarget;
|
|
1088
|
-
}
|
|
1089
|
-
} catch {}
|
|
1090
|
-
const { resolvedPath, isSymlink } = safeResolvePath(fsImpl, path);
|
|
1091
|
-
if (isSymlink && resolvedPath !== path) {
|
|
1092
|
-
pathSet.add(resolvedPath);
|
|
1093
|
-
}
|
|
1094
|
-
return Array.from(pathSet);
|
|
1095
|
-
}
|
|
1096
|
-
function getFsImplementation() {
|
|
1097
|
-
return activeFs;
|
|
1098
|
-
}
|
|
1099
|
-
async function readFileRange(path, offset, maxBytes) {
|
|
1100
|
-
await using fh = await open(path, "r");
|
|
1101
|
-
const size = (await fh.stat()).size;
|
|
1102
|
-
if (size <= offset) {
|
|
1103
|
-
return null;
|
|
1104
|
-
}
|
|
1105
|
-
const bytesToRead = Math.min(size - offset, maxBytes);
|
|
1106
|
-
const buffer = Buffer.allocUnsafe(bytesToRead);
|
|
1107
|
-
let totalRead = 0;
|
|
1108
|
-
while (totalRead < bytesToRead) {
|
|
1109
|
-
const { bytesRead } = await fh.read(buffer, totalRead, bytesToRead - totalRead, offset + totalRead);
|
|
1110
|
-
if (bytesRead === 0) {
|
|
1111
|
-
break;
|
|
1112
|
-
}
|
|
1113
|
-
totalRead += bytesRead;
|
|
1114
|
-
}
|
|
1115
|
-
return {
|
|
1116
|
-
content: buffer.toString("utf8", 0, totalRead),
|
|
1117
|
-
bytesRead: totalRead,
|
|
1118
|
-
bytesTotal: size
|
|
1119
|
-
};
|
|
1120
|
-
}
|
|
1121
|
-
async function tailFile(path, maxBytes) {
|
|
1122
|
-
await using fh = await open(path, "r");
|
|
1123
|
-
const size = (await fh.stat()).size;
|
|
1124
|
-
if (size === 0) {
|
|
1125
|
-
return { content: "", bytesRead: 0, bytesTotal: 0 };
|
|
1126
|
-
}
|
|
1127
|
-
const offset = Math.max(0, size - maxBytes);
|
|
1128
|
-
const bytesToRead = size - offset;
|
|
1129
|
-
const buffer = Buffer.allocUnsafe(bytesToRead);
|
|
1130
|
-
let totalRead = 0;
|
|
1131
|
-
while (totalRead < bytesToRead) {
|
|
1132
|
-
const { bytesRead } = await fh.read(buffer, totalRead, bytesToRead - totalRead, offset + totalRead);
|
|
1133
|
-
if (bytesRead === 0) {
|
|
1134
|
-
break;
|
|
1135
|
-
}
|
|
1136
|
-
totalRead += bytesRead;
|
|
1137
|
-
}
|
|
1138
|
-
return {
|
|
1139
|
-
content: buffer.toString("utf8", 0, totalRead),
|
|
1140
|
-
bytesRead: totalRead,
|
|
1141
|
-
bytesTotal: size
|
|
1142
|
-
};
|
|
1143
|
-
}
|
|
1144
|
-
async function* readLinesReverse(path) {
|
|
1145
|
-
const CHUNK_SIZE = 1024 * 4;
|
|
1146
|
-
const fileHandle = await open(path, "r");
|
|
1147
|
-
try {
|
|
1148
|
-
const stats = await fileHandle.stat();
|
|
1149
|
-
let position = stats.size;
|
|
1150
|
-
let remainder = Buffer.alloc(0);
|
|
1151
|
-
const buffer = Buffer.alloc(CHUNK_SIZE);
|
|
1152
|
-
while (position > 0) {
|
|
1153
|
-
const currentChunkSize = Math.min(CHUNK_SIZE, position);
|
|
1154
|
-
position -= currentChunkSize;
|
|
1155
|
-
await fileHandle.read(buffer, 0, currentChunkSize, position);
|
|
1156
|
-
const combined = Buffer.concat([
|
|
1157
|
-
buffer.subarray(0, currentChunkSize),
|
|
1158
|
-
remainder
|
|
1159
|
-
]);
|
|
1160
|
-
const firstNewline = combined.indexOf(10);
|
|
1161
|
-
if (firstNewline === -1) {
|
|
1162
|
-
remainder = combined;
|
|
1163
|
-
continue;
|
|
1164
|
-
}
|
|
1165
|
-
remainder = Buffer.from(combined.subarray(0, firstNewline));
|
|
1166
|
-
const lines = combined.toString("utf8", firstNewline + 1).split(`
|
|
1167
|
-
`);
|
|
1168
|
-
for (let i = lines.length - 1;i >= 0; i--) {
|
|
1169
|
-
const line = lines[i];
|
|
1170
|
-
if (line) {
|
|
1171
|
-
yield line;
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
if (remainder.length > 0) {
|
|
1176
|
-
yield remainder.toString("utf8");
|
|
1177
|
-
}
|
|
1178
|
-
} finally {
|
|
1179
|
-
await fileHandle.close();
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
var NodeFsOperations, activeFs;
|
|
1183
|
-
var init_fsOperations = __esm(() => {
|
|
1184
|
-
init_errors();
|
|
1185
|
-
init_slowOperations();
|
|
1186
|
-
NodeFsOperations = {
|
|
1187
|
-
cwd() {
|
|
1188
|
-
return process.cwd();
|
|
1189
|
-
},
|
|
1190
|
-
existsSync(fsPath) {
|
|
1191
|
-
using _ = slowLogging`fs.existsSync(${fsPath})`;
|
|
1192
|
-
return fs.existsSync(fsPath);
|
|
1193
|
-
},
|
|
1194
|
-
async stat(fsPath) {
|
|
1195
|
-
return statPromise(fsPath);
|
|
1196
|
-
},
|
|
1197
|
-
async readdir(fsPath) {
|
|
1198
|
-
return readdirPromise(fsPath, { withFileTypes: true });
|
|
1199
|
-
},
|
|
1200
|
-
async unlink(fsPath) {
|
|
1201
|
-
return unlinkPromise(fsPath);
|
|
1202
|
-
},
|
|
1203
|
-
async rmdir(fsPath) {
|
|
1204
|
-
return rmdirPromise(fsPath);
|
|
1205
|
-
},
|
|
1206
|
-
async rm(fsPath, options) {
|
|
1207
|
-
return rmPromise(fsPath, options);
|
|
1208
|
-
},
|
|
1209
|
-
async mkdir(dirPath, options) {
|
|
1210
|
-
try {
|
|
1211
|
-
await mkdirPromise(dirPath, { recursive: true, ...options });
|
|
1212
|
-
} catch (e) {
|
|
1213
|
-
if (getErrnoCode(e) !== "EEXIST")
|
|
1214
|
-
throw e;
|
|
1215
|
-
}
|
|
1216
|
-
},
|
|
1217
|
-
async readFile(fsPath, options) {
|
|
1218
|
-
return readFilePromise(fsPath, { encoding: options.encoding });
|
|
1219
|
-
},
|
|
1220
|
-
async rename(oldPath, newPath) {
|
|
1221
|
-
return renamePromise(oldPath, newPath);
|
|
1222
|
-
},
|
|
1223
|
-
statSync(fsPath) {
|
|
1224
|
-
using _ = slowLogging`fs.statSync(${fsPath})`;
|
|
1225
|
-
return fs.statSync(fsPath);
|
|
1226
|
-
},
|
|
1227
|
-
lstatSync(fsPath) {
|
|
1228
|
-
using _ = slowLogging`fs.lstatSync(${fsPath})`;
|
|
1229
|
-
return fs.lstatSync(fsPath);
|
|
1230
|
-
},
|
|
1231
|
-
readFileSync(fsPath, options) {
|
|
1232
|
-
using _ = slowLogging`fs.readFileSync(${fsPath})`;
|
|
1233
|
-
return fs.readFileSync(fsPath, { encoding: options.encoding });
|
|
1234
|
-
},
|
|
1235
|
-
readFileBytesSync(fsPath) {
|
|
1236
|
-
using _ = slowLogging`fs.readFileBytesSync(${fsPath})`;
|
|
1237
|
-
return fs.readFileSync(fsPath);
|
|
1238
|
-
},
|
|
1239
|
-
readSync(fsPath, options) {
|
|
1240
|
-
using _ = slowLogging`fs.readSync(${fsPath}, ${options.length} bytes)`;
|
|
1241
|
-
let fd = undefined;
|
|
1242
|
-
try {
|
|
1243
|
-
fd = fs.openSync(fsPath, "r");
|
|
1244
|
-
const buffer = Buffer.alloc(options.length);
|
|
1245
|
-
const bytesRead = fs.readSync(fd, buffer, 0, options.length, 0);
|
|
1246
|
-
return { buffer, bytesRead };
|
|
1247
|
-
} finally {
|
|
1248
|
-
if (fd)
|
|
1249
|
-
fs.closeSync(fd);
|
|
1250
|
-
}
|
|
1251
|
-
},
|
|
1252
|
-
appendFileSync(path, data, options) {
|
|
1253
|
-
using _ = slowLogging`fs.appendFileSync(${path}, ${data.length} chars)`;
|
|
1254
|
-
if (options?.mode !== undefined) {
|
|
1255
|
-
try {
|
|
1256
|
-
const fd = fs.openSync(path, "ax", options.mode);
|
|
1257
|
-
try {
|
|
1258
|
-
fs.appendFileSync(fd, data);
|
|
1259
|
-
} finally {
|
|
1260
|
-
fs.closeSync(fd);
|
|
1261
|
-
}
|
|
1262
|
-
return;
|
|
1263
|
-
} catch (e) {
|
|
1264
|
-
if (getErrnoCode(e) !== "EEXIST")
|
|
1265
|
-
throw e;
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
|
-
fs.appendFileSync(path, data);
|
|
1269
|
-
},
|
|
1270
|
-
copyFileSync(src, dest) {
|
|
1271
|
-
using _ = slowLogging`fs.copyFileSync(${src} \u2192 ${dest})`;
|
|
1272
|
-
fs.copyFileSync(src, dest);
|
|
1273
|
-
},
|
|
1274
|
-
unlinkSync(path) {
|
|
1275
|
-
using _ = slowLogging`fs.unlinkSync(${path})`;
|
|
1276
|
-
fs.unlinkSync(path);
|
|
1277
|
-
},
|
|
1278
|
-
renameSync(oldPath, newPath) {
|
|
1279
|
-
using _ = slowLogging`fs.renameSync(${oldPath} \u2192 ${newPath})`;
|
|
1280
|
-
fs.renameSync(oldPath, newPath);
|
|
1281
|
-
},
|
|
1282
|
-
linkSync(target, path) {
|
|
1283
|
-
using _ = slowLogging`fs.linkSync(${target} \u2192 ${path})`;
|
|
1284
|
-
fs.linkSync(target, path);
|
|
1285
|
-
},
|
|
1286
|
-
symlinkSync(target, path, type) {
|
|
1287
|
-
using _ = slowLogging`fs.symlinkSync(${target} \u2192 ${path})`;
|
|
1288
|
-
fs.symlinkSync(target, path, type);
|
|
1289
|
-
},
|
|
1290
|
-
readlinkSync(path) {
|
|
1291
|
-
using _ = slowLogging`fs.readlinkSync(${path})`;
|
|
1292
|
-
return fs.readlinkSync(path);
|
|
1293
|
-
},
|
|
1294
|
-
realpathSync(path) {
|
|
1295
|
-
using _ = slowLogging`fs.realpathSync(${path})`;
|
|
1296
|
-
return fs.realpathSync(path).normalize("NFC");
|
|
1297
|
-
},
|
|
1298
|
-
mkdirSync(dirPath, options) {
|
|
1299
|
-
using _ = slowLogging`fs.mkdirSync(${dirPath})`;
|
|
1300
|
-
const mkdirOptions = {
|
|
1301
|
-
recursive: true
|
|
1302
|
-
};
|
|
1303
|
-
if (options?.mode !== undefined) {
|
|
1304
|
-
mkdirOptions.mode = options.mode;
|
|
1305
|
-
}
|
|
1306
|
-
try {
|
|
1307
|
-
fs.mkdirSync(dirPath, mkdirOptions);
|
|
1308
|
-
} catch (e) {
|
|
1309
|
-
if (getErrnoCode(e) !== "EEXIST")
|
|
1310
|
-
throw e;
|
|
1311
|
-
}
|
|
1312
|
-
},
|
|
1313
|
-
readdirSync(dirPath) {
|
|
1314
|
-
using _ = slowLogging`fs.readdirSync(${dirPath})`;
|
|
1315
|
-
return fs.readdirSync(dirPath, { withFileTypes: true });
|
|
1316
|
-
},
|
|
1317
|
-
readdirStringSync(dirPath) {
|
|
1318
|
-
using _ = slowLogging`fs.readdirStringSync(${dirPath})`;
|
|
1319
|
-
return fs.readdirSync(dirPath);
|
|
1320
|
-
},
|
|
1321
|
-
isDirEmptySync(dirPath) {
|
|
1322
|
-
using _ = slowLogging`fs.isDirEmptySync(${dirPath})`;
|
|
1323
|
-
const files = this.readdirSync(dirPath);
|
|
1324
|
-
return files.length === 0;
|
|
1325
|
-
},
|
|
1326
|
-
rmdirSync(dirPath) {
|
|
1327
|
-
using _ = slowLogging`fs.rmdirSync(${dirPath})`;
|
|
1328
|
-
fs.rmdirSync(dirPath);
|
|
1329
|
-
},
|
|
1330
|
-
rmSync(path, options) {
|
|
1331
|
-
using _ = slowLogging`fs.rmSync(${path})`;
|
|
1332
|
-
fs.rmSync(path, options);
|
|
1333
|
-
},
|
|
1334
|
-
createWriteStream(path) {
|
|
1335
|
-
return fs.createWriteStream(path);
|
|
1336
|
-
},
|
|
1337
|
-
async readFileBytes(fsPath, maxBytes) {
|
|
1338
|
-
if (maxBytes === undefined) {
|
|
1339
|
-
return readFilePromise(fsPath);
|
|
1340
|
-
}
|
|
1341
|
-
const handle = await open(fsPath, "r");
|
|
1342
|
-
try {
|
|
1343
|
-
const { size } = await handle.stat();
|
|
1344
|
-
const readSize = Math.min(size, maxBytes);
|
|
1345
|
-
const buffer = Buffer.allocUnsafe(readSize);
|
|
1346
|
-
let offset = 0;
|
|
1347
|
-
while (offset < readSize) {
|
|
1348
|
-
const { bytesRead } = await handle.read(buffer, offset, readSize - offset, offset);
|
|
1349
|
-
if (bytesRead === 0)
|
|
1350
|
-
break;
|
|
1351
|
-
offset += bytesRead;
|
|
1352
|
-
}
|
|
1353
|
-
return offset < readSize ? buffer.subarray(0, offset) : buffer;
|
|
1354
|
-
} finally {
|
|
1355
|
-
await handle.close();
|
|
1356
|
-
}
|
|
1357
|
-
}
|
|
1358
|
-
};
|
|
1359
|
-
activeFs = NodeFsOperations;
|
|
1360
855
|
});
|
|
1361
856
|
|
|
1362
857
|
// src/utils/debug.ts
|
|
1363
858
|
import { appendFile, mkdir, symlink, unlink } from "fs/promises";
|
|
1364
|
-
import { dirname
|
|
859
|
+
import { dirname, join } from "path";
|
|
1365
860
|
function enableDebugLogging() {
|
|
1366
861
|
const wasActive = isDebugMode() || process.env.USER_TYPE === "ant";
|
|
1367
862
|
runtimeDebugEnabled = true;
|
|
@@ -1399,7 +894,7 @@ function getDebugWriter() {
|
|
|
1399
894
|
debugWriter = createBufferedWriter({
|
|
1400
895
|
writeFn: (content) => {
|
|
1401
896
|
const path = getDebugLogPath();
|
|
1402
|
-
const dir =
|
|
897
|
+
const dir = dirname(path);
|
|
1403
898
|
const needMkdir = ensuredDir !== dir;
|
|
1404
899
|
ensuredDir = dir;
|
|
1405
900
|
if (isDebugMode()) {
|
|
@@ -1452,7 +947,7 @@ function logForDebugging(message, { level } = {
|
|
|
1452
947
|
getDebugWriter().write(output);
|
|
1453
948
|
}
|
|
1454
949
|
function getDebugLogPath() {
|
|
1455
|
-
return getDebugFilePath() ?? process.env.CLAUDE_CODE_DEBUG_LOGS_DIR ??
|
|
950
|
+
return getDebugFilePath() ?? process.env.CLAUDE_CODE_DEBUG_LOGS_DIR ?? join(getAppConfigHomeDir(), "debug", `${getSessionId()}.txt`);
|
|
1456
951
|
}
|
|
1457
952
|
function logAntError(context, error) {
|
|
1458
953
|
if (process.env.USER_TYPE !== "ant") {
|
|
@@ -1520,12 +1015,12 @@ var init_debug = __esm(() => {
|
|
|
1520
1015
|
updateLatestDebugLogSymlink = memoize_default(async () => {
|
|
1521
1016
|
try {
|
|
1522
1017
|
const debugLogPath = getDebugLogPath();
|
|
1523
|
-
const debugLogsDir =
|
|
1524
|
-
const latestSymlinkPath =
|
|
1018
|
+
const debugLogsDir = dirname(debugLogPath);
|
|
1019
|
+
const latestSymlinkPath = join(debugLogsDir, "latest");
|
|
1525
1020
|
await unlink(latestSymlinkPath).catch(() => {});
|
|
1526
1021
|
await symlink(debugLogPath, latestSymlinkPath);
|
|
1527
1022
|
} catch {}
|
|
1528
1023
|
});
|
|
1529
1024
|
});
|
|
1530
1025
|
|
|
1531
|
-
export { createBufferedWriter, init_bufferedWriter, registerCleanup, runCleanupFunctions, init_cleanupRegistry,
|
|
1026
|
+
export { createBufferedWriter, init_bufferedWriter, registerCleanup, runCleanupFunctions, init_cleanupRegistry, _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, jsonStringify, jsonParse, clone, writeFileSync_DEPRECATED, init_slowOperations, getMinDebugLogLevel, isDebugMode, enableDebugLogging, getDebugFilter, isDebugToStdErr, getDebugFilePath, setHasFormattedOutput, getHasFormattedOutput, flushDebugLogs, logForDebugging, getDebugLogPath, logAntError, init_debug };
|