@luluyun/automd 1.0.0 → 1.0.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.
Files changed (370) hide show
  1. package/README.md +35 -164
  2. package/README_EN.md +48 -19
  3. package/dist/{chunk-wqrfjb54.js → chunk-02fkf4rq.js} +92 -90
  4. package/dist/{chunk-j0kzzyjd.js → chunk-05j005x1.js} +5 -5
  5. package/dist/{chunk-7knsym93.js → chunk-05zgndec.js} +61 -60
  6. package/dist/chunk-0dmd2mpw.js +185 -0
  7. package/dist/{chunk-ggpxa6pv.js → chunk-0e0fnngx.js} +63 -62
  8. package/dist/{chunk-13f7w7t7.js → chunk-0e4ag9rr.js} +21 -20
  9. package/dist/{chunk-hzaba6g1.js → chunk-0e8wgjsp.js} +59 -58
  10. package/dist/{chunk-z3gr6gsz.js → chunk-0gyxvax1.js} +9 -9
  11. package/dist/{chunk-acvbnx48.js → chunk-0k5p6654.js} +5 -5
  12. package/dist/{chunk-708j0sq4.js → chunk-0p0x4gae.js} +22 -21
  13. package/dist/{chunk-9jyzah2d.js → chunk-0tbgvq7v.js} +9 -7
  14. package/dist/{chunk-j68ya1wq.js → chunk-0we9kp01.js} +2 -2
  15. package/dist/{chunk-f31e900p.js → chunk-0wns5qyp.js} +26 -25
  16. package/dist/{chunk-qkj4k00m.js → chunk-0z071zh8.js} +1 -1
  17. package/dist/{chunk-k566ab0v.js → chunk-0z89myvm.js} +21 -20
  18. package/dist/{chunk-p1mdfgf4.js → chunk-11x0rbgg.js} +9 -8
  19. package/dist/{chunk-0nbcz4ss.js → chunk-15yhxf8x.js} +56 -55
  20. package/dist/{chunk-3wg497by.js → chunk-163tc8gd.js} +8 -6
  21. package/dist/{chunk-k398drqn.js → chunk-17nxsy85.js} +63 -62
  22. package/dist/{chunk-eg9c4vg6.js → chunk-1b9992s5.js} +57 -56
  23. package/dist/{chunk-n70fs18n.js → chunk-1bgrw378.js} +21 -20
  24. package/dist/{chunk-sf8drsdx.js → chunk-1cd4gzaj.js} +7 -5
  25. package/dist/{chunk-ngm4pavy.js → chunk-1gckjk86.js} +4 -4
  26. package/dist/{chunk-z2n64ef3.js → chunk-1khtzqrj.js} +5 -3
  27. package/dist/{chunk-ymtxxvt6.js → chunk-1nm9r801.js} +4 -4
  28. package/dist/{chunk-bbajeek4.js → chunk-1pdt2x2d.js} +10 -8
  29. package/dist/{chunk-9xnsynpm.js → chunk-1scbyvc1.js} +6 -4
  30. package/dist/{chunk-vr9y1psc.js → chunk-1sh5aytt.js} +2 -1
  31. package/dist/{chunk-j1xxwx0h.js → chunk-1vnf0twn.js} +8 -8
  32. package/dist/{chunk-yqk99a86.js → chunk-1waynmy2.js} +2 -2
  33. package/dist/{chunk-0z9rtar5.js → chunk-23se5q6e.js} +57 -56
  34. package/dist/{chunk-b7nkgbms.js → chunk-27gewfhk.js} +5 -4
  35. package/dist/{chunk-1g64f12t.js → chunk-27xwntmj.js} +27 -25
  36. package/dist/{chunk-ay7ert7t.js → chunk-2a34ra44.js} +54 -53
  37. package/dist/{chunk-7706wbz7.js → chunk-2f5tbdap.js} +1 -1
  38. package/dist/{chunk-5yfm0wv7.js → chunk-2h68686n.js} +100 -98
  39. package/dist/{chunk-av5hq58j.js → chunk-2hjse76m.js} +17 -17
  40. package/dist/{chunk-kfswbr9v.js → chunk-2y5y5jfw.js} +54 -53
  41. package/dist/{chunk-kv2tmk99.js → chunk-31prke86.js} +11 -9
  42. package/dist/{chunk-tne98r9y.js → chunk-39kkx62g.js} +55 -54
  43. package/dist/{chunk-17rhtdg6.js → chunk-3hhgzc1y.js} +2 -2
  44. package/dist/{chunk-9vbfgsj2.js → chunk-3q8w9bbc.js} +1 -1
  45. package/dist/{chunk-rsj1w4cv.js → chunk-3qcwwxdq.js} +55 -54
  46. package/dist/{chunk-adshwmsk.js → chunk-3qdknfrw.js} +3 -3
  47. package/dist/{chunk-0gctm20b.js → chunk-3v9vthmt.js} +5 -3
  48. package/dist/{chunk-bhva894j.js → chunk-3wcqe3q3.js} +10 -8
  49. package/dist/{chunk-37bk9h3n.js → chunk-40v25wtv.js} +1 -7
  50. package/dist/{chunk-164wnfy0.js → chunk-41a62ak5.js} +55 -54
  51. package/dist/{chunk-e434dqzf.js → chunk-44dnbs9c.js} +1 -1
  52. package/dist/{chunk-b8xxc1zm.js → chunk-454jf36w.js} +4 -4
  53. package/dist/{chunk-g4y9jq1x.js → chunk-490052nn.js} +5 -4
  54. package/dist/{chunk-3j7xjxa1.js → chunk-4ftbpd8r.js} +5 -3
  55. package/dist/{chunk-hxwr1814.js → chunk-4hq091bp.js} +56 -55
  56. package/dist/{chunk-e0kx60nq.js → chunk-4hvewn3z.js} +63 -61
  57. package/dist/{chunk-vz2a56z3.js → chunk-4n6yt26e.js} +21 -20
  58. package/dist/{chunk-mg27yq5g.js → chunk-4rp6tjmk.js} +57 -56
  59. package/dist/{chunk-r7hnnbw3.js → chunk-4scpe9pr.js} +8 -6
  60. package/dist/{chunk-fhejpaee.js → chunk-4sqa2pew.js} +63 -62
  61. package/dist/{chunk-w3fp57qz.js → chunk-4yphh40k.js} +3 -2
  62. package/dist/{chunk-zyjqv5c3.js → chunk-52rf6m28.js} +11 -10
  63. package/dist/{chunk-hyvnej21.js → chunk-5afzhmwr.js} +9 -9
  64. package/dist/{chunk-kkbavq92.js → chunk-5fm5fw28.js} +59 -58
  65. package/dist/{chunk-7jedqj9h.js → chunk-5k4h5gb0.js} +71 -70
  66. package/dist/{chunk-qbd4h5aj.js → chunk-5mnc9bp8.js} +22 -21
  67. package/dist/chunk-5ng2atdf.js +119 -0
  68. package/dist/{chunk-w9jpytt1.js → chunk-5pa2afng.js} +54 -53
  69. package/dist/{chunk-vakspmnq.js → chunk-5pjg9x2p.js} +64 -63
  70. package/dist/{chunk-eeankjhv.js → chunk-5qp1aws3.js} +58 -57
  71. package/dist/{chunk-7tef20gk.js → chunk-5r492jmn.js} +5 -5
  72. package/dist/{chunk-pfne5pc6.js → chunk-5rm8cgab.js} +54 -53
  73. package/dist/{chunk-7sspj7q7.js → chunk-62dg9msb.js} +57 -56
  74. package/dist/{chunk-wpbdb292.js → chunk-6425vd0s.js} +55 -54
  75. package/dist/{chunk-jtk7x4k0.js → chunk-67r6a7hj.js} +35 -33
  76. package/dist/{chunk-dahentrc.js → chunk-69hqv69w.js} +14 -12
  77. package/dist/{chunk-2zf7q833.js → chunk-6czgy6zc.js} +8 -6
  78. package/dist/{chunk-e7ty93hy.js → chunk-6hyfb6t7.js} +15 -13
  79. package/dist/{chunk-94bw60a7.js → chunk-6j11ch18.js} +56 -55
  80. package/dist/{chunk-268hmtet.js → chunk-6nan3emr.js} +55 -54
  81. package/dist/{chunk-fkct2yqq.js → chunk-6pvwk57y.js} +21 -20
  82. package/dist/{chunk-ap269m7m.js → chunk-6tjcj6fr.js} +12 -10
  83. package/dist/{chunk-w5r9c2qp.js → chunk-6tzdbrhg.js} +55 -54
  84. package/dist/{chunk-js3jewxx.js → chunk-6v95y20t.js} +1 -1
  85. package/dist/{chunk-q14y53q1.js → chunk-71k0z740.js} +9 -7
  86. package/dist/{chunk-9d9ez9r3.js → chunk-749j3qrz.js} +6 -6
  87. package/dist/{chunk-hbj8nfr8.js → chunk-7ajwdf5n.js} +55 -54
  88. package/dist/{chunk-604q83ks.js → chunk-7evk2t78.js} +2 -2
  89. package/dist/{chunk-h2n8s1re.js → chunk-7qpfj80s.js} +56 -55
  90. package/dist/{chunk-0tav8jts.js → chunk-7r07t6s7.js} +2 -2
  91. package/dist/{chunk-krjx63ge.js → chunk-7ssm0jkg.js} +1 -1
  92. package/dist/{chunk-dayaf02m.js → chunk-80t7v0nv.js} +35 -33
  93. package/dist/{chunk-js2mtdhx.js → chunk-82b7zhqs.js} +65 -64
  94. package/dist/{chunk-4v661jfp.js → chunk-84p825h2.js} +69 -68
  95. package/dist/{chunk-d12ja1w1.js → chunk-873p070x.js} +54 -53
  96. package/dist/{chunk-g6a24f3c.js → chunk-87deb06h.js} +54 -53
  97. package/dist/{chunk-whdhabrc.js → chunk-8dmb40wr.js} +58 -57
  98. package/dist/{chunk-ah18jasj.js → chunk-8jsr0dj7.js} +12 -10
  99. package/dist/{chunk-f7hfhp06.js → chunk-8kqbwzh6.js} +20 -19
  100. package/dist/{chunk-2a02pnrg.js → chunk-8n86c841.js} +54 -53
  101. package/dist/{chunk-d90r72sm.js → chunk-8ngrhgwn.js} +4 -4
  102. package/dist/{chunk-j7yr3vyy.js → chunk-8xj2jqzf.js} +23 -22
  103. package/dist/{chunk-1hsygdr1.js → chunk-90n52mzf.js} +55 -54
  104. package/dist/{chunk-cctc0ern.js → chunk-97wx555c.js} +15 -15
  105. package/dist/{chunk-gt5ephty.js → chunk-996s8ksq.js} +54 -53
  106. package/dist/{chunk-em0tcgcb.js → chunk-9ab5zprv.js} +14 -12
  107. package/dist/{chunk-4dy7571n.js → chunk-9cfmadk3.js} +55 -54
  108. package/dist/{chunk-023ch6fb.js → chunk-9crxyj90.js} +56 -55
  109. package/dist/{chunk-kfzv3z83.js → chunk-9jgyhh3d.js} +8 -6
  110. package/dist/{chunk-dpemqhf4.js → chunk-9nr7ef4a.js} +10 -9
  111. package/dist/{chunk-xg24xr82.js → chunk-9q3xsq4w.js} +54 -53
  112. package/dist/{chunk-72tamsb6.js → chunk-9s7wr60d.js} +55 -54
  113. package/dist/{chunk-bprg82eg.js → chunk-9w64jxn9.js} +58 -56
  114. package/dist/{chunk-ecwrcz5z.js → chunk-9z71ydnn.js} +1 -1
  115. package/dist/{chunk-g0708sxq.js → chunk-a1rb1b9p.js} +54 -53
  116. package/dist/{chunk-q6pc57m2.js → chunk-a2gw3scs.js} +5 -5
  117. package/dist/{chunk-zrwg85kf.js → chunk-a513bjea.js} +54 -53
  118. package/dist/{chunk-9ak75gr6.js → chunk-a8dstk5d.js} +22 -21
  119. package/dist/{chunk-3rwfjhjg.js → chunk-a8wtndgt.js} +24 -22
  120. package/dist/{chunk-gbc3hqxr.js → chunk-anfz28s8.js} +5 -5
  121. package/dist/chunk-anwd0djd.js +122 -0
  122. package/dist/{chunk-e3a12qcr.js → chunk-aq4qcxmz.js} +9 -7
  123. package/dist/{chunk-gg0tq2y9.js → chunk-awryn0q5.js} +2 -2
  124. package/dist/{chunk-vshwxbdt.js → chunk-ax4yzmcz.js} +55 -54
  125. package/dist/{chunk-rt9hmh7z.js → chunk-ayeex55r.js} +4 -4
  126. package/dist/{chunk-m6tjzhxk.js → chunk-azmq7wv3.js} +58 -56
  127. package/dist/{chunk-s0r332zb.js → chunk-b42qyjeb.js} +22 -20
  128. package/dist/{chunk-mfhhc5sm.js → chunk-b5p8mjaf.js} +5 -5
  129. package/dist/{chunk-7ggd0jz5.js → chunk-b72snxkp.js} +6 -6
  130. package/dist/{chunk-fbmq76bj.js → chunk-b8e6karn.js} +22 -21
  131. package/dist/{chunk-pvhffspb.js → chunk-babmgb65.js} +55 -54
  132. package/dist/{chunk-jwj3nj5b.js → chunk-bcc59511.js} +4 -3
  133. package/dist/{chunk-sepwzp6y.js → chunk-berrk2wz.js} +13 -518
  134. package/dist/{chunk-kzb38p8m.js → chunk-bftqkxtr.js} +26 -25
  135. package/dist/{chunk-57xh5nw2.js → chunk-bgbg3ab9.js} +11 -9
  136. package/dist/{chunk-2m5gxb4x.js → chunk-bmwmkvdt.js} +7 -6
  137. package/dist/{chunk-g3zggh5s.js → chunk-bp70q3hq.js} +63 -62
  138. package/dist/{chunk-g2c7g1rs.js → chunk-bsfk6vd1.js} +25 -25
  139. package/dist/{chunk-wfzajb4k.js → chunk-bxp02p84.js} +54 -53
  140. package/dist/{chunk-606nnckq.js → chunk-c07qp5fa.js} +55 -54
  141. package/dist/{chunk-hzpb0xmv.js → chunk-c7yvtnbx.js} +2 -2
  142. package/dist/{chunk-qfwkb701.js → chunk-c86t5vxw.js} +2 -2
  143. package/dist/{chunk-5k1k3d6m.js → chunk-c9e79x2r.js} +4 -4
  144. package/dist/{chunk-y0ragvhd.js → chunk-ckkn8hyr.js} +1 -1
  145. package/dist/{chunk-4g3mr6ey.js → chunk-cm5pgvw0.js} +7 -6
  146. package/dist/{chunk-48886h6r.js → chunk-d41g0g7a.js} +5 -3
  147. package/dist/{chunk-1wsxfmjh.js → chunk-d57wm0wg.js} +57 -56
  148. package/dist/{chunk-y0285awc.js → chunk-d68qc9aa.js} +19 -17
  149. package/dist/{chunk-qrrjjag5.js → chunk-dbamr8ac.js} +56 -55
  150. package/dist/{chunk-pgm8amfj.js → chunk-dcrgg1cf.js} +54 -53
  151. package/dist/{chunk-qgh9yenv.js → chunk-ddtxkntc.js} +55 -54
  152. package/dist/{chunk-55cdfz5s.js → chunk-djpkrjg4.js} +55 -54
  153. package/dist/{chunk-ajt9q255.js → chunk-dn9bhy8j.js} +9 -8
  154. package/dist/{chunk-2ts94cnh.js → chunk-dq8td2y9.js} +8 -6
  155. package/dist/{chunk-9pnst74f.js → chunk-drj31rap.js} +9 -7
  156. package/dist/{chunk-x9ntdxt7.js → chunk-dse23q9j.js} +58 -57
  157. package/dist/{chunk-ygqj2dzj.js → chunk-dsf56dpz.js} +5 -5
  158. package/dist/{chunk-74sqxz7f.js → chunk-e2xbc99w.js} +8 -6
  159. package/dist/{chunk-j48qr37t.js → chunk-e6hfygen.js} +7 -5
  160. package/dist/{chunk-7zszecca.js → chunk-e7w3xp25.js} +5 -5
  161. package/dist/{chunk-kme5xvp8.js → chunk-e8t8sdcc.js} +54 -53
  162. package/dist/{chunk-995kmmrz.js → chunk-eaahr2r4.js} +1 -1
  163. package/dist/{chunk-1qqh5vcy.js → chunk-ec5b6d27.js} +55 -54
  164. package/dist/{chunk-3bcs7meg.js → chunk-echftx28.js} +2 -2
  165. package/dist/{chunk-9g94a34g.js → chunk-eerve6r7.js} +54 -53
  166. package/dist/{chunk-03d70atn.js → chunk-en968ea4.js} +21 -20
  167. package/dist/{chunk-66dm3nwe.js → chunk-er0jn1pw.js} +886 -880
  168. package/dist/{chunk-d3h1vpsm.js → chunk-ervdjsdx.js} +9 -8
  169. package/dist/{chunk-3g9qc0r7.js → chunk-eswfqky8.js} +6 -6
  170. package/dist/{chunk-t9bjcy5g.js → chunk-etvcd8sg.js} +57 -56
  171. package/dist/{chunk-6xw0f15a.js → chunk-evznxn98.js} +20 -19
  172. package/dist/{chunk-m2w7bvy5.js → chunk-exmr6rxj.js} +4 -4
  173. package/dist/{chunk-m00kgtdv.js → chunk-ez112ddv.js} +60 -58
  174. package/dist/{chunk-caxnxf4z.js → chunk-ezjbaap1.js} +32 -30
  175. package/dist/{chunk-1x50ys1y.js → chunk-f4tfz2h1.js} +20 -19
  176. package/dist/{chunk-nd69zp7b.js → chunk-f5ya2nd6.js} +1 -1
  177. package/dist/{chunk-v0nhtzyr.js → chunk-f7w56m8s.js} +54 -53
  178. package/dist/{chunk-c772gc4k.js → chunk-fc0vs6ch.js} +11 -10
  179. package/dist/{chunk-3hr1832a.js → chunk-ffaw8f86.js} +4 -4
  180. package/dist/{chunk-p550m9ph.js → chunk-fg9g7ygq.js} +22 -21
  181. package/dist/{chunk-s8k5adwg.js → chunk-fgcfvg78.js} +9 -7
  182. package/dist/{chunk-vsaqhchc.js → chunk-fk10fr7d.js} +57 -56
  183. package/dist/{chunk-c5c0an9e.js → chunk-fkzzswdw.js} +57 -56
  184. package/dist/{chunk-rkd7svgz.js → chunk-fp0xccxz.js} +69 -68
  185. package/dist/{chunk-m2gkjypz.js → chunk-fs3wtkag.js} +57 -56
  186. package/dist/{chunk-nn0d1dcc.js → chunk-fvqb96nq.js} +55 -54
  187. package/dist/{chunk-nb6xj9yd.js → chunk-fw8qrzyg.js} +57 -56
  188. package/dist/{chunk-peta84gt.js → chunk-g3qdh1kt.js} +22 -21
  189. package/dist/{chunk-11b3qsgr.js → chunk-gacb5tvd.js} +1 -1
  190. package/dist/{chunk-h3bdc76z.js → chunk-gb827jxm.js} +54 -53
  191. package/dist/{chunk-7drmtgxp.js → chunk-gfq2xvrj.js} +1 -1
  192. package/dist/{chunk-a5r4y882.js → chunk-gjrsbd6a.js} +9 -7
  193. package/dist/{chunk-y3vzfy52.js → chunk-gt2w8ddc.js} +55 -54
  194. package/dist/{chunk-53j4whv1.js → chunk-gtth7j39.js} +3 -3
  195. package/dist/{chunk-xc3vycnq.js → chunk-gv3y6zn3.js} +54 -53
  196. package/dist/{chunk-mn8t4kb8.js → chunk-gvps4fhr.js} +1 -1
  197. package/dist/{chunk-mdtvwee6.js → chunk-gxwsqb2m.js} +6 -6
  198. package/dist/{chunk-58qm58st.js → chunk-h0780g95.js} +2 -2
  199. package/dist/{chunk-3xngbz05.js → chunk-h343atyv.js} +3 -3
  200. package/dist/{chunk-wfgdqbza.js → chunk-h3v6sxrb.js} +1 -1
  201. package/dist/{chunk-fkby609a.js → chunk-h73h2sew.js} +179 -177
  202. package/dist/chunk-h9wb45m6.js +119 -0
  203. package/dist/{chunk-qqynb587.js → chunk-hctzzsfw.js} +56 -55
  204. package/dist/{chunk-jdggam3k.js → chunk-hfs1qn55.js} +60 -59
  205. package/dist/{chunk-sqmkz226.js → chunk-hk2hvkfv.js} +6 -4
  206. package/dist/{chunk-1b0n2maf.js → chunk-ht4wwafp.js} +24 -23
  207. package/dist/{chunk-q1b5cjnw.js → chunk-hts80g90.js} +4 -3
  208. package/dist/{chunk-gfawgyha.js → chunk-j09wtjms.js} +2 -2
  209. package/dist/{chunk-c2fpsd31.js → chunk-j3rhm8e4.js} +1 -1
  210. package/dist/{chunk-gskba4cp.js → chunk-j5kkamkc.js} +56 -55
  211. package/dist/{chunk-jq3br2ep.js → chunk-j6f03zve.js} +1 -1
  212. package/dist/{chunk-jw6sawwy.js → chunk-j7bb9d57.js} +2 -2
  213. package/dist/{chunk-5fbc0x1x.js → chunk-jmqjxw4e.js} +10 -10
  214. package/dist/{chunk-aqts9eem.js → chunk-jnmjrt8q.js} +4 -4
  215. package/dist/{chunk-926f5m2d.js → chunk-jp7ty63j.js} +54 -53
  216. package/dist/{chunk-5zq1myse.js → chunk-jqvcragy.js} +7 -6
  217. package/dist/{chunk-2qc3g8pg.js → chunk-jwvwpjb2.js} +68 -66
  218. package/dist/{chunk-d2ydv73x.js → chunk-k21bnazf.js} +55 -54
  219. package/dist/chunk-k2aedy4h.js +494 -0
  220. package/dist/{chunk-833c36vk.js → chunk-k6sg9pke.js} +48 -46
  221. package/dist/{chunk-a9br06ma.js → chunk-kabkavdj.js} +22 -21
  222. package/dist/{chunk-zp5wzmcg.js → chunk-kb1bzmyx.js} +1 -1
  223. package/dist/{chunk-brgcwy2d.js → chunk-kcq8htsq.js} +10 -9
  224. package/dist/{chunk-yqm9qex5.js → chunk-kh97rer3.js} +61 -60
  225. package/dist/{chunk-2qgjf1zx.js → chunk-kj0crc29.js} +3 -3
  226. package/dist/{chunk-gttvs4dz.js → chunk-kmefbp1h.js} +10 -8
  227. package/dist/{chunk-x4ckp6p9.js → chunk-kncvh581.js} +1 -1
  228. package/dist/{chunk-94t681v2.js → chunk-knmfr8k6.js} +6 -4
  229. package/dist/{chunk-95qjskk2.js → chunk-kv0e91e6.js} +4 -4
  230. package/dist/{chunk-w04071n1.js → chunk-kvn29adk.js} +1 -8
  231. package/dist/{chunk-wb6qms6j.js → chunk-kxqj72pz.js} +8 -6
  232. package/dist/{chunk-4zvhmyca.js → chunk-kyrx6qdq.js} +54 -53
  233. package/dist/{chunk-5g220843.js → chunk-m5kyts1n.js} +62 -61
  234. package/dist/{chunk-3xq9hjtz.js → chunk-m620qbw1.js} +7 -7
  235. package/dist/{chunk-f54pn813.js → chunk-m7a8crzr.js} +21 -20
  236. package/dist/{chunk-s9cwh8jr.js → chunk-m8nawg6s.js} +4 -4
  237. package/dist/{chunk-7ma84vsd.js → chunk-ma7jeeye.js} +54 -53
  238. package/dist/{chunk-v8p9708x.js → chunk-mbxmf3wx.js} +3 -3
  239. package/dist/{chunk-f4epa3hc.js → chunk-md8papdp.js} +1 -1
  240. package/dist/{chunk-3jnsm9tj.js → chunk-mx1vkc5t.js} +55 -54
  241. package/dist/{chunk-h7mhp2mz.js → chunk-n1jaaxyq.js} +10 -8
  242. package/dist/{chunk-avwppas4.js → chunk-n2xw459x.js} +25 -24
  243. package/dist/{chunk-fxprxmrh.js → chunk-n7bmk9ph.js} +6 -6
  244. package/dist/{chunk-jfk454hh.js → chunk-n806rmdn.js} +1 -1
  245. package/dist/{chunk-he1psp6f.js → chunk-n883gxkr.js} +1 -1
  246. package/dist/{chunk-tc89z36b.js → chunk-nddsp9sy.js} +4 -4
  247. package/dist/{chunk-wzvsfwn9.js → chunk-nfh1w0ef.js} +1 -1
  248. package/dist/{chunk-j7gfqh8v.js → chunk-nfm5ndj4.js} +2 -2
  249. package/dist/{chunk-j676tme0.js → chunk-nj7tp8v8.js} +3 -3
  250. package/dist/{chunk-ejpegwgn.js → chunk-npha5j6f.js} +6 -6
  251. package/dist/{chunk-q2dcwd0s.js → chunk-nt1mpe2q.js} +21 -20
  252. package/dist/{chunk-d3tvytm9.js → chunk-ny264w3j.js} +54 -53
  253. package/dist/{chunk-595zqmhh.js → chunk-nywdgyrq.js} +60 -59
  254. package/dist/{chunk-fxdj4wxj.js → chunk-p03m963y.js} +54 -53
  255. package/dist/{chunk-k5j1eqdm.js → chunk-p352ea2q.js} +57 -56
  256. package/dist/{chunk-0wz695w4.js → chunk-pb7x469y.js} +9 -8
  257. package/dist/{chunk-rtkfbw0m.js → chunk-pe8xchx1.js} +21 -20
  258. package/dist/{chunk-n280s88s.js → chunk-pnwyawca.js} +1 -1
  259. package/dist/{chunk-nmwy4vdy.js → chunk-psqqxdb0.js} +2 -2
  260. package/dist/{chunk-dfxgqwz3.js → chunk-pvzb13fh.js} +21 -20
  261. package/dist/{chunk-3kgmjhey.js → chunk-pwajrasd.js} +9 -8
  262. package/dist/{chunk-cqck4p0r.js → chunk-q0j12fp2.js} +55 -54
  263. package/dist/{chunk-5jnsv9y8.js → chunk-q29yzen4.js} +2 -2
  264. package/dist/{chunk-zq8y3355.js → chunk-q3jh73k8.js} +1 -1
  265. package/dist/chunk-q57w2rzt.js +122 -0
  266. package/dist/{chunk-tsr13vfe.js → chunk-q60bz9y6.js} +5 -8
  267. package/dist/{chunk-0fgksm4v.js → chunk-q9g4b35m.js} +2 -2
  268. package/dist/{chunk-63mmec9v.js → chunk-qad4zcw9.js} +3 -3
  269. package/dist/{chunk-vvkcc1sc.js → chunk-qgymegzt.js} +56 -55
  270. package/dist/{chunk-72v17pwk.js → chunk-qhbczf7s.js} +54 -53
  271. package/dist/{chunk-zbcfjyw0.js → chunk-qj0n3f0a.js} +54 -53
  272. package/dist/{chunk-xzj1v56g.js → chunk-qqk0yxtr.js} +1 -1
  273. package/dist/{chunk-19d6p645.js → chunk-qqr3r9ht.js} +9 -7
  274. package/dist/{chunk-t2ey4g22.js → chunk-r0p0pn3t.js} +68 -67
  275. package/dist/{chunk-79a3qw9m.js → chunk-r0v67sy7.js} +21 -20
  276. package/dist/{chunk-22p30zkd.js → chunk-r2x4hwwv.js} +1 -1
  277. package/dist/{chunk-3qzmqejh.js → chunk-r3yjm8c0.js} +59 -58
  278. package/dist/{chunk-qcqnyy0q.js → chunk-r80t5k98.js} +6 -4
  279. package/dist/{chunk-yxgqz1e1.js → chunk-rd54f0sg.js} +54 -53
  280. package/dist/{chunk-zfqgxmcz.js → chunk-rh0e38e2.js} +1 -1
  281. package/dist/{chunk-25ckr5z4.js → chunk-rvfh2308.js} +65 -63
  282. package/dist/{chunk-zjcma7km.js → chunk-s1v256k5.js} +6 -5
  283. package/dist/{chunk-27mmaf0x.js → chunk-s5y0940f.js} +1 -1
  284. package/dist/{chunk-9rvaeawh.js → chunk-sag1jpeq.js} +20 -19
  285. package/dist/{chunk-009984kz.js → chunk-sbzdc14e.js} +60 -59
  286. package/dist/{chunk-pgw1hq7r.js → chunk-sf51dz8k.js} +57 -55
  287. package/dist/{chunk-kgyjrmz5.js → chunk-sjdn5srv.js} +10 -9
  288. package/dist/{chunk-hdydbd6n.js → chunk-ssqkwayr.js} +3 -3
  289. package/dist/{chunk-kwgrbr2j.js → chunk-sy990v9f.js} +59 -58
  290. package/dist/{chunk-q6pn7mdk.js → chunk-t0thms5j.js} +54 -53
  291. package/dist/{chunk-2nxg3smd.js → chunk-t29zf3d8.js} +116 -115
  292. package/dist/{chunk-agqw1abk.js → chunk-t2aq5s9d.js} +15 -13
  293. package/dist/{chunk-4z5e64cd.js → chunk-t3bk84ba.js} +55 -54
  294. package/dist/{chunk-szv4542t.js → chunk-t6nvymr7.js} +72 -70
  295. package/dist/{chunk-6p01yzbv.js → chunk-tb20a9h9.js} +1 -1
  296. package/dist/{chunk-pce5hv6g.js → chunk-tet3g4d9.js} +54 -53
  297. package/dist/{chunk-mk9avgv8.js → chunk-th76c4nv.js} +9 -7
  298. package/dist/{chunk-8j3t8sfh.js → chunk-ty0yf565.js} +2 -2
  299. package/dist/{chunk-8sa7hjcs.js → chunk-v168fxbg.js} +57 -56
  300. package/dist/{chunk-bdc7csmj.js → chunk-v5xg34na.js} +2 -2
  301. package/dist/{chunk-zhxkd4kj.js → chunk-vf9hpgsh.js} +3 -3
  302. package/dist/{chunk-4jjz11cv.js → chunk-vkdbh210.js} +16 -16
  303. package/dist/{chunk-gfp4h4yv.js → chunk-vxm4apxp.js} +8 -6
  304. package/dist/{chunk-474v72wq.js → chunk-vy73pt20.js} +6 -6
  305. package/dist/{chunk-pk919mxt.js → chunk-vym6ecc4.js} +1 -1
  306. package/dist/{chunk-ecnp0gg8.js → chunk-vz7s36ha.js} +6 -4
  307. package/dist/{chunk-1ydcbefn.js → chunk-w0vmqtw5.js} +1 -1
  308. package/dist/{chunk-p6y1yedy.js → chunk-w1s1cmsx.js} +58 -56
  309. package/dist/{chunk-6qf93p8j.js → chunk-w2fxc8e2.js} +3 -3
  310. package/dist/{chunk-g714v635.js → chunk-w3ej5bv0.js} +54 -53
  311. package/dist/{chunk-qgz20q4v.js → chunk-w3zv3mgw.js} +26 -26
  312. package/dist/{chunk-c89k5tac.js → chunk-w6rn27mf.js} +54 -53
  313. package/dist/{chunk-k1d8wfxs.js → chunk-w79hdb3p.js} +55 -54
  314. package/dist/{chunk-69fev66a.js → chunk-w9089f6m.js} +1 -1
  315. package/dist/{chunk-pbvewrys.js → chunk-w9kzwbwq.js} +13 -13
  316. package/dist/{chunk-z6a8xk3m.js → chunk-wcc7c9vt.js} +54 -53
  317. package/dist/{chunk-gy98csm9.js → chunk-we0jd7kd.js} +21 -20
  318. package/dist/{chunk-rbq3arh6.js → chunk-wfrj757m.js} +1 -1
  319. package/dist/{chunk-hbqf8gcx.js → chunk-wg8vqv8g.js} +22 -21
  320. package/dist/{chunk-edty0bmy.js → chunk-wgg5m77q.js} +5 -3
  321. package/dist/{chunk-jy5tdhvj.js → chunk-wktyrws7.js} +10 -8
  322. package/dist/{chunk-bxzqgj26.js → chunk-wqy7gmt2.js} +21 -20
  323. package/dist/{chunk-zasn6e6b.js → chunk-wxz27gvh.js} +57 -56
  324. package/dist/{chunk-0yq5hdc4.js → chunk-x0a984ae.js} +21 -20
  325. package/dist/{chunk-0392yj84.js → chunk-x271bma4.js} +8 -8
  326. package/dist/{chunk-s216t5fh.js → chunk-x5bpppd4.js} +2 -2
  327. package/dist/{chunk-mv72ye31.js → chunk-x7p24yzq.js} +7 -5
  328. package/dist/{chunk-g7eswh87.js → chunk-xd05rvy9.js} +3 -3
  329. package/dist/{chunk-7kf7bhsn.js → chunk-xgfpg8vs.js} +5 -5
  330. package/dist/{chunk-q26j42bk.js → chunk-xhxk90gr.js} +57 -56
  331. package/dist/{chunk-tkm3r9dx.js → chunk-xkcrbryy.js} +1 -1
  332. package/dist/{chunk-30t167rn.js → chunk-xqhnabp6.js} +24 -23
  333. package/dist/{chunk-jkrmwfzj.js → chunk-xve0r2tw.js} +54 -53
  334. package/dist/{chunk-1eth2p2m.js → chunk-xww754c2.js} +9 -8
  335. package/dist/{chunk-93y70e2n.js → chunk-xx2q5x4p.js} +11 -9
  336. package/dist/{chunk-kbt96bs4.js → chunk-y1fhmk40.js} +21 -17
  337. package/dist/{chunk-a5rhefy3.js → chunk-y1fxha1v.js} +59 -58
  338. package/dist/{chunk-pf1bvr99.js → chunk-y1gvgx5x.js} +1 -1
  339. package/dist/{chunk-rahbr3qv.js → chunk-y21vrkyb.js} +20 -19
  340. package/dist/{chunk-6kqp09yz.js → chunk-y66xy3zg.js} +2 -2
  341. package/dist/{chunk-21nz9nnc.js → chunk-y68r2pg9.js} +6 -6
  342. package/dist/{chunk-fwwfs5px.js → chunk-y7ncea00.js} +26 -24
  343. package/dist/{chunk-v5r0zytv.js → chunk-y8jz949v.js} +21 -20
  344. package/dist/{chunk-aeepqjh1.js → chunk-y92r0hrv.js} +3 -2
  345. package/dist/{chunk-rqy8a9zn.js → chunk-yb9tzp40.js} +22 -21
  346. package/dist/{chunk-j77j3xj5.js → chunk-ygfxem4c.js} +9 -7
  347. package/dist/{chunk-hf2kz9cy.js → chunk-ygn5psmw.js} +59 -57
  348. package/dist/{chunk-c001ecx7.js → chunk-yk441xjd.js} +2 -2
  349. package/dist/{chunk-2st57p4f.js → chunk-yq9t8xss.js} +8 -6
  350. package/dist/{chunk-xfpw9epw.js → chunk-yr1y8b1s.js} +56 -55
  351. package/dist/{chunk-r2p162kd.js → chunk-ywwph9m8.js} +56 -55
  352. package/dist/{chunk-zk3w50yj.js → chunk-z3gd3zja.js} +1 -1
  353. package/dist/{chunk-3dsq4e0v.js → chunk-z7r8raga.js} +57 -55
  354. package/dist/{chunk-nj4sav8f.js → chunk-z81682a5.js} +55 -54
  355. package/dist/{chunk-g6v738nc.js → chunk-z95rhwe3.js} +2 -2
  356. package/dist/{chunk-x5wr7tbp.js → chunk-zba3hqdz.js} +20 -19
  357. package/dist/{chunk-zhrd2qa9.js → chunk-zcbzv5nf.js} +2 -2
  358. package/dist/{chunk-yentky6k.js → chunk-zd4saf5k.js} +54 -53
  359. package/dist/{chunk-n12fkqm8.js → chunk-zmg2y3m0.js} +1 -1
  360. package/dist/{chunk-kkrpj15z.js → chunk-zqsh2a20.js} +54 -53
  361. package/dist/{chunk-m0a7dxqc.js → chunk-zs9em477.js} +20 -19
  362. package/dist/{chunk-e9q08z34.js → chunk-ztx6013k.js} +3 -3
  363. package/dist/cli.js +36 -36
  364. package/package.json +2 -2
  365. package/dist/chunk-0rv9hreq.js +0 -184
  366. package/dist/chunk-8nd0phkx.js +0 -121
  367. package/dist/chunk-adjzdv3w.js +0 -118
  368. package/dist/chunk-aej03dqk.js +0 -118
  369. package/dist/chunk-y1pf1gq2.js +0 -121
  370. 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
- APIUserAbortError,
50
- init_sdk
51
- } from "./chunk-g51z2hdg.js";
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, Buffer2, allocUnsafe, _cloneBuffer_default;
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
- Buffer2 = moduleExports ? _root_default.Buffer : undefined;
530
- allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined;
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, slowLogging, jsonParse = (text, reviver) => {
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 as dirname2, join as join2 } from "path";
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 = dirname2(path);
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 ?? join2(getAppConfigHomeDir(), "debug", `${getSessionId()}.txt`);
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 = dirname2(debugLogPath);
1524
- const latestSymlinkPath = join2(debugLogsDir, "latest");
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, ClaudeError, MalformedCommandError, AbortError, isAbortError, ConfigParseError, ShellError, TeleportOperationError, TelemetrySafeError_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS, hasExactErrorMessage, toError, errorMessage, getErrnoCode, isENOENT, getErrnoPath, isFsInaccessible, classifyAxiosError, init_errors, _defineProperty_default, init__defineProperty, _baseAssignValue_default, init__baseAssignValue, _assignValue_default, init__assignValue, _copyObject_default, init__copyObject, keysIn_default, init_keysIn, _cloneBuffer_default, init__cloneBuffer, _copyArray_default, init__copyArray, _getPrototype_default, init__getPrototype, _getAllKeysIn_default, init__getAllKeysIn, _cloneTypedArray_default, init__cloneTypedArray, _initCloneObject_default, init__initCloneObject, _baseClone_default, init__baseClone, cloneDeep_default, init_cloneDeep, slowLogging, jsonStringify, jsonParse, clone, writeFileSync_DEPRECATED, init_slowOperations, safeResolvePath, isDuplicatePath, getPathsForPermissionCheck, getFsImplementation, readFileRange, tailFile, readLinesReverse, init_fsOperations, getMinDebugLogLevel, isDebugMode, enableDebugLogging, getDebugFilter, isDebugToStdErr, getDebugFilePath, setHasFormattedOutput, getHasFormattedOutput, flushDebugLogs, logForDebugging, getDebugLogPath, logAntError, init_debug };
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 };