@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.
Files changed (370) hide show
  1. package/README.md +32 -167
  2. package/README_EN.md +42 -19
  3. package/dist/{chunk-kkrpj15z.js → chunk-03yhyp33.js} +54 -53
  4. package/dist/{chunk-1b0n2maf.js → chunk-049cr4p3.js} +24 -23
  5. package/dist/{chunk-g7eswh87.js → chunk-07m6ht7d.js} +3 -3
  6. package/dist/{chunk-606nnckq.js → chunk-07rz03vg.js} +55 -54
  7. package/dist/{chunk-tc89z36b.js → chunk-07vnzh77.js} +4 -4
  8. package/dist/{chunk-9g94a34g.js → chunk-0ckrqekf.js} +54 -53
  9. package/dist/{chunk-11b3qsgr.js → chunk-0d0gkvg8.js} +1 -1
  10. package/dist/{chunk-1qqh5vcy.js → chunk-0d6amtma.js} +55 -54
  11. package/dist/{chunk-v8p9708x.js → chunk-0ezhm4vc.js} +3 -3
  12. package/dist/{chunk-7drmtgxp.js → chunk-0fyx9hph.js} +1 -1
  13. package/dist/{chunk-009984kz.js → chunk-0htp168q.js} +60 -59
  14. package/dist/chunk-0j698zm0.js +122 -0
  15. package/dist/{chunk-y3vzfy52.js → chunk-0pwt7qjx.js} +55 -54
  16. package/dist/{chunk-p1mdfgf4.js → chunk-11x0rbgg.js} +9 -8
  17. package/dist/{chunk-3wg497by.js → chunk-163tc8gd.js} +8 -6
  18. package/dist/{chunk-wpbdb292.js → chunk-1896h0na.js} +55 -54
  19. package/dist/{chunk-cqck4p0r.js → chunk-18nc0ymb.js} +55 -54
  20. package/dist/{chunk-js2mtdhx.js → chunk-19s1686b.js} +65 -64
  21. package/dist/{chunk-rkd7svgz.js → chunk-19y1nvgy.js} +69 -68
  22. package/dist/{chunk-w5r9c2qp.js → chunk-1es18r7g.js} +55 -54
  23. package/dist/{chunk-z2n64ef3.js → chunk-1khtzqrj.js} +5 -3
  24. package/dist/{chunk-j68ya1wq.js → chunk-1m674djk.js} +2 -2
  25. package/dist/{chunk-kkbavq92.js → chunk-1n08xy3a.js} +59 -58
  26. package/dist/{chunk-d2ydv73x.js → chunk-1p34gh9f.js} +55 -54
  27. package/dist/{chunk-21nz9nnc.js → chunk-1pkd62xw.js} +6 -6
  28. package/dist/{chunk-7jedqj9h.js → chunk-1pvqx2gk.js} +71 -70
  29. package/dist/{chunk-jtk7x4k0.js → chunk-1ray0p0s.js} +35 -33
  30. package/dist/{chunk-9xnsynpm.js → chunk-1scbyvc1.js} +6 -4
  31. package/dist/{chunk-vr9y1psc.js → chunk-1sh5aytt.js} +2 -1
  32. package/dist/{chunk-2zf7q833.js → chunk-1v1fkw9y.js} +8 -6
  33. package/dist/{chunk-9ak75gr6.js → chunk-1vpvfxca.js} +22 -21
  34. package/dist/{chunk-yqk99a86.js → chunk-1waynmy2.js} +2 -2
  35. package/dist/{chunk-4v661jfp.js → chunk-1we0hsed.js} +69 -68
  36. package/dist/{chunk-q14y53q1.js → chunk-1zh1bmad.js} +9 -7
  37. package/dist/{chunk-k1d8wfxs.js → chunk-1zz9gcjv.js} +55 -54
  38. package/dist/{chunk-m0a7dxqc.js → chunk-26vc0ke5.js} +20 -19
  39. package/dist/{chunk-j77j3xj5.js → chunk-275z8v5m.js} +9 -7
  40. package/dist/{chunk-b7nkgbms.js → chunk-27gewfhk.js} +5 -4
  41. package/dist/{chunk-q26j42bk.js → chunk-27srbs9p.js} +57 -56
  42. package/dist/{chunk-7ma84vsd.js → chunk-29vz8fqt.js} +54 -53
  43. package/dist/{chunk-z6a8xk3m.js → chunk-2c404886.js} +54 -53
  44. package/dist/{chunk-he1psp6f.js → chunk-2k7fb0y2.js} +1 -1
  45. package/dist/{chunk-3xngbz05.js → chunk-2m3ex024.js} +3 -3
  46. package/dist/{chunk-7706wbz7.js → chunk-2mecpdm4.js} +1 -1
  47. package/dist/{chunk-kv2tmk99.js → chunk-31prke86.js} +11 -9
  48. package/dist/{chunk-rqy8a9zn.js → chunk-38ngqpnb.js} +22 -21
  49. package/dist/{chunk-sf8drsdx.js → chunk-3bzt2tme.js} +7 -5
  50. package/dist/{chunk-ngm4pavy.js → chunk-3ej354vb.js} +4 -4
  51. package/dist/{chunk-s0r332zb.js → chunk-3jd9y134.js} +22 -20
  52. package/dist/{chunk-9vbfgsj2.js → chunk-3q8w9bbc.js} +1 -1
  53. package/dist/{chunk-adshwmsk.js → chunk-3qdknfrw.js} +3 -3
  54. package/dist/{chunk-0gctm20b.js → chunk-3v9vthmt.js} +5 -3
  55. package/dist/{chunk-h7mhp2mz.js → chunk-3xqafqjv.js} +10 -8
  56. package/dist/{chunk-gttvs4dz.js → chunk-3y8s02bw.js} +10 -8
  57. package/dist/{chunk-37bk9h3n.js → chunk-40v25wtv.js} +1 -7
  58. package/dist/{chunk-e434dqzf.js → chunk-44dnbs9c.js} +1 -1
  59. package/dist/{chunk-x5wr7tbp.js → chunk-486tcv6d.js} +20 -19
  60. package/dist/{chunk-g4y9jq1x.js → chunk-490052nn.js} +5 -4
  61. package/dist/{chunk-7tef20gk.js → chunk-49kn4ttd.js} +5 -5
  62. package/dist/{chunk-k5j1eqdm.js → chunk-4ac29e5q.js} +57 -56
  63. package/dist/{chunk-j7yr3vyy.js → chunk-4csvvre0.js} +23 -22
  64. package/dist/{chunk-3j7xjxa1.js → chunk-4ftbpd8r.js} +5 -3
  65. package/dist/{chunk-n70fs18n.js → chunk-4hcasyaf.js} +21 -20
  66. package/dist/{chunk-268hmtet.js → chunk-4j1yte1a.js} +55 -54
  67. package/dist/{chunk-72tamsb6.js → chunk-4kg91jva.js} +55 -54
  68. package/dist/{chunk-ggpxa6pv.js → chunk-4mbd13g5.js} +63 -62
  69. package/dist/{chunk-3rwfjhjg.js → chunk-4nwfzwsr.js} +24 -22
  70. package/dist/{chunk-dfxgqwz3.js → chunk-4qtxtg58.js} +21 -20
  71. package/dist/{chunk-r7hnnbw3.js → chunk-4scpe9pr.js} +8 -6
  72. package/dist/{chunk-a9br06ma.js → chunk-4vrtv2dc.js} +22 -21
  73. package/dist/{chunk-zyjqv5c3.js → chunk-52rf6m28.js} +11 -10
  74. package/dist/{chunk-03d70atn.js → chunk-57pb8wj9.js} +21 -20
  75. package/dist/{chunk-fxprxmrh.js → chunk-59zfcfhx.js} +6 -6
  76. package/dist/{chunk-ejpegwgn.js → chunk-5f3s5jbj.js} +6 -6
  77. package/dist/{chunk-wfgdqbza.js → chunk-5fm2scps.js} +1 -1
  78. package/dist/{chunk-mv72ye31.js → chunk-5hmr2c99.js} +7 -5
  79. package/dist/{chunk-2qgjf1zx.js → chunk-5ppj3ekh.js} +3 -3
  80. package/dist/{chunk-58qm58st.js → chunk-6be3a2p7.js} +2 -2
  81. package/dist/{chunk-v5r0zytv.js → chunk-6c48e3zt.js} +21 -20
  82. package/dist/{chunk-kzb38p8m.js → chunk-6nn3p38n.js} +26 -25
  83. package/dist/{chunk-0z9rtar5.js → chunk-6p2nxwcg.js} +57 -56
  84. package/dist/{chunk-ymtxxvt6.js → chunk-6s7ve29n.js} +4 -4
  85. package/dist/{chunk-js3jewxx.js → chunk-6v95y20t.js} +1 -1
  86. package/dist/{chunk-vsaqhchc.js → chunk-71veamfj.js} +57 -56
  87. package/dist/{chunk-qgh9yenv.js → chunk-7chxdbhx.js} +55 -54
  88. package/dist/{chunk-gy98csm9.js → chunk-7eqvz3g8.js} +21 -20
  89. package/dist/{chunk-rsj1w4cv.js → chunk-7f200vcg.js} +55 -54
  90. package/dist/{chunk-6kqp09yz.js → chunk-7fkxk9by.js} +2 -2
  91. package/dist/{chunk-9pnst74f.js → chunk-7jz54fee.js} +9 -7
  92. package/dist/{chunk-474v72wq.js → chunk-7krt9z38.js} +6 -6
  93. package/dist/{chunk-rtkfbw0m.js → chunk-7sjk6100.js} +21 -20
  94. package/dist/{chunk-krjx63ge.js → chunk-7ssm0jkg.js} +1 -1
  95. package/dist/{chunk-ah18jasj.js → chunk-7svwcjtj.js} +12 -10
  96. package/dist/{chunk-nd69zp7b.js → chunk-813jv72j.js} +1 -1
  97. package/dist/{chunk-x9ntdxt7.js → chunk-8a573a8v.js} +58 -57
  98. package/dist/{chunk-0yq5hdc4.js → chunk-8ndk835h.js} +21 -20
  99. package/dist/{chunk-kwgrbr2j.js → chunk-8qr3gcz8.js} +59 -58
  100. package/dist/{chunk-27mmaf0x.js → chunk-8t14cjnx.js} +1 -1
  101. package/dist/{chunk-e7ty93hy.js → chunk-8xtzhpy9.js} +15 -13
  102. package/dist/{chunk-rahbr3qv.js → chunk-90cvnjgd.js} +20 -19
  103. package/dist/{chunk-595zqmhh.js → chunk-926b935w.js} +60 -59
  104. package/dist/{chunk-ay7ert7t.js → chunk-984wdqxh.js} +54 -53
  105. package/dist/{chunk-pgw1hq7r.js → chunk-98x2tswg.js} +57 -55
  106. package/dist/{chunk-szv4542t.js → chunk-9cfqyw0w.js} +72 -70
  107. package/dist/{chunk-5k1k3d6m.js → chunk-9ds0ercn.js} +4 -4
  108. package/dist/{chunk-rt9hmh7z.js → chunk-9dwzm332.js} +4 -4
  109. package/dist/{chunk-agqw1abk.js → chunk-9f8dr27m.js} +15 -13
  110. package/dist/{chunk-dpemqhf4.js → chunk-9nr7ef4a.js} +10 -9
  111. package/dist/{chunk-3hr1832a.js → chunk-9rnat1cm.js} +4 -4
  112. package/dist/{chunk-k566ab0v.js → chunk-9t728wrh.js} +21 -20
  113. package/dist/{chunk-m2gkjypz.js → chunk-9xcttsfw.js} +57 -56
  114. package/dist/{chunk-ecwrcz5z.js → chunk-9z71ydnn.js} +1 -1
  115. package/dist/{chunk-mfhhc5sm.js → chunk-a2m4jp23.js} +5 -5
  116. package/dist/{chunk-sqmkz226.js → chunk-actn9xy3.js} +6 -4
  117. package/dist/{chunk-w9jpytt1.js → chunk-ahxa2dfc.js} +54 -53
  118. package/dist/{chunk-h2n8s1re.js → chunk-aj5af2qt.js} +56 -55
  119. package/dist/{chunk-hxwr1814.js → chunk-ann1j62j.js} +56 -55
  120. package/dist/{chunk-a5r4y882.js → chunk-arqs4yec.js} +9 -7
  121. package/dist/{chunk-wqrfjb54.js → chunk-b36mgqc4.js} +92 -90
  122. package/dist/{chunk-023ch6fb.js → chunk-b3x0351w.js} +56 -55
  123. package/dist/{chunk-c89k5tac.js → chunk-b59znrc6.js} +54 -53
  124. package/dist/{chunk-tne98r9y.js → chunk-b6fqg2s3.js} +55 -54
  125. package/dist/{chunk-hyvnej21.js → chunk-b9e8647r.js} +9 -9
  126. package/dist/{chunk-pgm8amfj.js → chunk-bcqtgtgh.js} +54 -53
  127. package/dist/{chunk-sepwzp6y.js → chunk-berrk2wz.js} +13 -518
  128. package/dist/{chunk-3dsq4e0v.js → chunk-bhae604f.js} +57 -55
  129. package/dist/{chunk-mdtvwee6.js → chunk-bhqqn89c.js} +6 -6
  130. package/dist/{chunk-gt5ephty.js → chunk-bky485sf.js} +54 -53
  131. package/dist/{chunk-2m5gxb4x.js → chunk-bmwmkvdt.js} +7 -6
  132. package/dist/{chunk-bdc7csmj.js → chunk-c59zntr0.js} +2 -2
  133. package/dist/{chunk-qfwkb701.js → chunk-c86t5vxw.js} +2 -2
  134. package/dist/{chunk-y0ragvhd.js → chunk-ckkn8hyr.js} +1 -1
  135. package/dist/{chunk-4g3mr6ey.js → chunk-cm5pgvw0.js} +7 -6
  136. package/dist/{chunk-j48qr37t.js → chunk-cmxnw1av.js} +7 -5
  137. package/dist/{chunk-zhrd2qa9.js → chunk-ctpnv4gs.js} +2 -2
  138. package/dist/{chunk-hzaba6g1.js → chunk-czebmh3m.js} +59 -58
  139. package/dist/{chunk-74sqxz7f.js → chunk-d1pa6s33.js} +8 -6
  140. package/dist/{chunk-48886h6r.js → chunk-d41g0g7a.js} +5 -3
  141. package/dist/{chunk-93y70e2n.js → chunk-db02s4sh.js} +11 -9
  142. package/dist/{chunk-72v17pwk.js → chunk-dcxkw56m.js} +54 -53
  143. package/dist/{chunk-5g220843.js → chunk-dd743gjn.js} +62 -61
  144. package/dist/{chunk-ajt9q255.js → chunk-dn9bhy8j.js} +9 -8
  145. package/dist/{chunk-2ts94cnh.js → chunk-dq8td2y9.js} +8 -6
  146. package/dist/{chunk-qgz20q4v.js → chunk-dvwv7snv.js} +26 -26
  147. package/dist/{chunk-fbmq76bj.js → chunk-dxh3gytb.js} +22 -21
  148. package/dist/{chunk-zhxkd4kj.js → chunk-e966jd0k.js} +3 -3
  149. package/dist/{chunk-f4epa3hc.js → chunk-e9bez5dn.js} +1 -1
  150. package/dist/{chunk-995kmmrz.js → chunk-eaahr2r4.js} +1 -1
  151. package/dist/{chunk-164wnfy0.js → chunk-egs5jd5x.js} +55 -54
  152. package/dist/{chunk-j0kzzyjd.js → chunk-ej24wkkb.js} +5 -5
  153. package/dist/{chunk-d3h1vpsm.js → chunk-ervdjsdx.js} +9 -8
  154. package/dist/{chunk-m2w7bvy5.js → chunk-exmr6rxj.js} +4 -4
  155. package/dist/{chunk-7zszecca.js → chunk-ey2bdkkh.js} +5 -5
  156. package/dist/{chunk-9jyzah2d.js → chunk-eybanjf4.js} +9 -7
  157. package/dist/{chunk-jdggam3k.js → chunk-eyr9fq31.js} +60 -59
  158. package/dist/{chunk-bxzqgj26.js → chunk-eyrdjcn9.js} +21 -20
  159. package/dist/{chunk-4dy7571n.js → chunk-ez3jjzyw.js} +55 -54
  160. package/dist/{chunk-0nbcz4ss.js → chunk-f1ep2fhh.js} +56 -55
  161. package/dist/{chunk-qqynb587.js → chunk-f5t7hps2.js} +56 -55
  162. package/dist/{chunk-4z5e64cd.js → chunk-f8sm9vp2.js} +55 -54
  163. package/dist/{chunk-zk3w50yj.js → chunk-fav4kraz.js} +1 -1
  164. package/dist/{chunk-c772gc4k.js → chunk-fc0vs6ch.js} +11 -10
  165. package/dist/{chunk-95qjskk2.js → chunk-fjx8jpna.js} +4 -4
  166. package/dist/chunk-fq8vpp8s.js +185 -0
  167. package/dist/{chunk-4zvhmyca.js → chunk-ftxkjear.js} +54 -53
  168. package/dist/{chunk-833c36vk.js → chunk-fwb8h053.js} +48 -46
  169. package/dist/{chunk-1hsygdr1.js → chunk-fx4z8jhr.js} +55 -54
  170. package/dist/{chunk-6qf93p8j.js → chunk-g4qbshyq.js} +3 -3
  171. package/dist/{chunk-9d9ez9r3.js → chunk-g7q1asth.js} +6 -6
  172. package/dist/{chunk-yxgqz1e1.js → chunk-gb33nk84.js} +54 -53
  173. package/dist/{chunk-cctc0ern.js → chunk-ge14z4d6.js} +15 -15
  174. package/dist/{chunk-kfzv3z83.js → chunk-gnrhatd7.js} +8 -6
  175. package/dist/{chunk-f54pn813.js → chunk-gw6bs4pc.js} +21 -20
  176. package/dist/{chunk-hf2kz9cy.js → chunk-gw7em9ax.js} +59 -57
  177. package/dist/{chunk-bhva894j.js → chunk-gytve1pf.js} +10 -8
  178. package/dist/{chunk-hzpb0xmv.js → chunk-h19qy0q7.js} +2 -2
  179. package/dist/{chunk-0392yj84.js → chunk-h3av2qdd.js} +8 -8
  180. package/dist/{chunk-fkct2yqq.js → chunk-h5mst1mc.js} +21 -20
  181. package/dist/{chunk-ygqj2dzj.js → chunk-h7c6ccc8.js} +5 -5
  182. package/dist/chunk-h9z4ajv7.js +119 -0
  183. package/dist/{chunk-qrrjjag5.js → chunk-hcc8z63k.js} +56 -55
  184. package/dist/{chunk-94bw60a7.js → chunk-hgzzfp8e.js} +56 -55
  185. package/dist/{chunk-j1xxwx0h.js → chunk-hk2g8dns.js} +8 -8
  186. package/dist/{chunk-9rvaeawh.js → chunk-hkwassdn.js} +20 -19
  187. package/dist/{chunk-kgyjrmz5.js → chunk-hsz0vb28.js} +10 -9
  188. package/dist/{chunk-3jnsm9tj.js → chunk-ht7g8sna.js} +55 -54
  189. package/dist/{chunk-7ggd0jz5.js → chunk-htd64cb9.js} +6 -6
  190. package/dist/{chunk-q1b5cjnw.js → chunk-hts80g90.js} +4 -3
  191. package/dist/{chunk-gfp4h4yv.js → chunk-hvez228m.js} +8 -6
  192. package/dist/{chunk-25ckr5z4.js → chunk-hxd9gg36.js} +65 -63
  193. package/dist/{chunk-q6pc57m2.js → chunk-hxmhg1e5.js} +5 -5
  194. package/dist/{chunk-c5c0an9e.js → chunk-hys76hws.js} +57 -56
  195. package/dist/{chunk-gfawgyha.js → chunk-j09wtjms.js} +2 -2
  196. package/dist/{chunk-x4ckp6p9.js → chunk-j2ap635h.js} +1 -1
  197. package/dist/{chunk-c2fpsd31.js → chunk-j3rhm8e4.js} +1 -1
  198. package/dist/{chunk-57xh5nw2.js → chunk-j5ymrvfh.js} +11 -9
  199. package/dist/{chunk-pvhffspb.js → chunk-j6bmy7rr.js} +55 -54
  200. package/dist/{chunk-jq3br2ep.js → chunk-j6f03zve.js} +1 -1
  201. package/dist/{chunk-g3zggh5s.js → chunk-j70kn8a4.js} +63 -62
  202. package/dist/{chunk-jw6sawwy.js → chunk-j7bb9d57.js} +2 -2
  203. package/dist/{chunk-f7hfhp06.js → chunk-jbabv6h2.js} +20 -19
  204. package/dist/{chunk-tkm3r9dx.js → chunk-jczygw42.js} +1 -1
  205. package/dist/{chunk-fkby609a.js → chunk-jf50dy1a.js} +179 -177
  206. package/dist/{chunk-aqts9eem.js → chunk-jnmjrt8q.js} +4 -4
  207. package/dist/{chunk-yqm9qex5.js → chunk-jqhx74tb.js} +61 -60
  208. package/dist/{chunk-5zq1myse.js → chunk-jqvcragy.js} +7 -6
  209. package/dist/{chunk-mn8t4kb8.js → chunk-jtc5hc3v.js} +1 -1
  210. package/dist/chunk-k2aedy4h.js +494 -0
  211. package/dist/{chunk-4jjz11cv.js → chunk-k3fdvzs9.js} +16 -16
  212. package/dist/{chunk-zp5wzmcg.js → chunk-kb1bzmyx.js} +1 -1
  213. package/dist/{chunk-xg24xr82.js → chunk-kbfcbhnf.js} +54 -53
  214. package/dist/{chunk-0tav8jts.js → chunk-kbjdrctf.js} +2 -2
  215. package/dist/{chunk-brgcwy2d.js → chunk-kcq8htsq.js} +10 -9
  216. package/dist/{chunk-vz2a56z3.js → chunk-kesshk0v.js} +21 -20
  217. package/dist/{chunk-94t681v2.js → chunk-knmfr8k6.js} +6 -4
  218. package/dist/{chunk-d3tvytm9.js → chunk-kr605k2f.js} +54 -53
  219. package/dist/{chunk-w04071n1.js → chunk-kvn29adk.js} +1 -8
  220. package/dist/{chunk-wb6qms6j.js → chunk-kxqj72pz.js} +8 -6
  221. package/dist/{chunk-g6v738nc.js → chunk-kz7q0kzc.js} +2 -2
  222. package/dist/{chunk-em0tcgcb.js → chunk-mcrcmq41.js} +14 -12
  223. package/dist/{chunk-63mmec9v.js → chunk-md4k3zdj.js} +3 -3
  224. package/dist/{chunk-bbajeek4.js → chunk-me7t5g4j.js} +10 -8
  225. package/dist/{chunk-e0kx60nq.js → chunk-mh97drey.js} +63 -61
  226. package/dist/{chunk-2qc3g8pg.js → chunk-mky9qzjp.js} +68 -66
  227. package/dist/{chunk-y0285awc.js → chunk-mnb6dmek.js} +19 -17
  228. package/dist/{chunk-wzvsfwn9.js → chunk-ms52tsjt.js} +1 -1
  229. package/dist/{chunk-m6tjzhxk.js → chunk-mwqz6csw.js} +58 -56
  230. package/dist/{chunk-b8xxc1zm.js → chunk-n3aa4cb1.js} +4 -4
  231. package/dist/{chunk-j7gfqh8v.js → chunk-nfm5ndj4.js} +2 -2
  232. package/dist/{chunk-j676tme0.js → chunk-nj7tp8v8.js} +3 -3
  233. package/dist/{chunk-peta84gt.js → chunk-nmb01v4w.js} +22 -21
  234. package/dist/{chunk-19d6p645.js → chunk-p5xpj8v0.js} +9 -7
  235. package/dist/{chunk-g6a24f3c.js → chunk-p6fkxhjp.js} +54 -53
  236. package/dist/{chunk-fhejpaee.js → chunk-p7nf05sy.js} +63 -62
  237. package/dist/{chunk-e3a12qcr.js → chunk-p7x7hfq2.js} +9 -7
  238. package/dist/{chunk-vvkcc1sc.js → chunk-paem1yxq.js} +56 -55
  239. package/dist/{chunk-0wz695w4.js → chunk-pb7x469y.js} +9 -8
  240. package/dist/{chunk-nj4sav8f.js → chunk-pcfbtjt5.js} +55 -54
  241. package/dist/{chunk-3xq9hjtz.js → chunk-pcrbcd2b.js} +7 -7
  242. package/dist/{chunk-kfswbr9v.js → chunk-pdpseqc9.js} +54 -53
  243. package/dist/{chunk-926f5m2d.js → chunk-pjztxan3.js} +54 -53
  244. package/dist/{chunk-n280s88s.js → chunk-pnwyawca.js} +1 -1
  245. package/dist/{chunk-s8k5adwg.js → chunk-pp14gd6q.js} +9 -7
  246. package/dist/{chunk-nn0d1dcc.js → chunk-pp8jg9mv.js} +55 -54
  247. package/dist/{chunk-nmwy4vdy.js → chunk-psqqxdb0.js} +2 -2
  248. package/dist/{chunk-5jnsv9y8.js → chunk-pt0tf166.js} +2 -2
  249. package/dist/{chunk-m00kgtdv.js → chunk-pt509hh1.js} +60 -58
  250. package/dist/{chunk-3kgmjhey.js → chunk-pwajrasd.js} +9 -8
  251. package/dist/{chunk-dayaf02m.js → chunk-py5vaaaq.js} +35 -33
  252. package/dist/{chunk-1x50ys1y.js → chunk-q117re3g.js} +20 -19
  253. package/dist/{chunk-zq8y3355.js → chunk-q3jh73k8.js} +1 -1
  254. package/dist/{chunk-h3bdc76z.js → chunk-q5egc5ra.js} +54 -53
  255. package/dist/{chunk-tsr13vfe.js → chunk-q60bz9y6.js} +5 -8
  256. package/dist/{chunk-17rhtdg6.js → chunk-qawtymmw.js} +2 -2
  257. package/dist/{chunk-3qzmqejh.js → chunk-qbthzfym.js} +59 -58
  258. package/dist/{chunk-e9q08z34.js → chunk-qe2ppfda.js} +3 -3
  259. package/dist/{chunk-zbcfjyw0.js → chunk-qf96q4pz.js} +54 -53
  260. package/dist/{chunk-53j4whv1.js → chunk-qffsmp22.js} +3 -3
  261. package/dist/{chunk-av5hq58j.js → chunk-qj7zh2fe.js} +17 -17
  262. package/dist/{chunk-vakspmnq.js → chunk-qjzvsq8w.js} +64 -63
  263. package/dist/{chunk-q6pn7mdk.js → chunk-qna8h7pt.js} +54 -53
  264. package/dist/{chunk-6xw0f15a.js → chunk-qpg0hbn2.js} +20 -19
  265. package/dist/{chunk-g714v635.js → chunk-qprwfra0.js} +54 -53
  266. package/dist/{chunk-xzj1v56g.js → chunk-qqk0yxtr.js} +1 -1
  267. package/dist/{chunk-jfk454hh.js → chunk-qrcgmnxm.js} +1 -1
  268. package/dist/{chunk-nb6xj9yd.js → chunk-qvr6rjqq.js} +57 -56
  269. package/dist/{chunk-604q83ks.js → chunk-qyqw604q.js} +2 -2
  270. package/dist/{chunk-f31e900p.js → chunk-r0zznvhg.js} +26 -25
  271. package/dist/{chunk-whdhabrc.js → chunk-r6nc66q8.js} +58 -57
  272. package/dist/{chunk-qcqnyy0q.js → chunk-r80t5k98.js} +6 -4
  273. package/dist/{chunk-d12ja1w1.js → chunk-r94h1z5r.js} +54 -53
  274. package/dist/{chunk-qkj4k00m.js → chunk-rb4evejq.js} +1 -1
  275. package/dist/{chunk-zfqgxmcz.js → chunk-rh0e38e2.js} +1 -1
  276. package/dist/{chunk-22p30zkd.js → chunk-rhf1z7gc.js} +1 -1
  277. package/dist/{chunk-66dm3nwe.js → chunk-rr2hzer2.js} +886 -880
  278. package/dist/{chunk-zasn6e6b.js → chunk-rr43zswx.js} +57 -56
  279. package/dist/{chunk-8sa7hjcs.js → chunk-rr6qqq1v.js} +57 -56
  280. package/dist/{chunk-5yfm0wv7.js → chunk-rsezdx6w.js} +100 -98
  281. package/dist/{chunk-3bcs7meg.js → chunk-ry4h96fp.js} +2 -2
  282. package/dist/{chunk-zjcma7km.js → chunk-s1v256k5.js} +6 -5
  283. package/dist/{chunk-p6y1yedy.js → chunk-s3cexa82.js} +58 -56
  284. package/dist/{chunk-7sspj7q7.js → chunk-s3fbdhty.js} +57 -56
  285. package/dist/chunk-s51wc9yj.js +119 -0
  286. package/dist/{chunk-jwj3nj5b.js → chunk-s5g6cna1.js} +4 -3
  287. package/dist/{chunk-w3fp57qz.js → chunk-s5tfdnkv.js} +3 -2
  288. package/dist/{chunk-qbd4h5aj.js → chunk-s727qyst.js} +22 -21
  289. package/dist/{chunk-wfzajb4k.js → chunk-s81zfphq.js} +54 -53
  290. package/dist/{chunk-s9cwh8jr.js → chunk-s8a1er0k.js} +4 -4
  291. package/dist/{chunk-eeankjhv.js → chunk-sg1by608.js} +58 -57
  292. package/dist/{chunk-vshwxbdt.js → chunk-sm080rzr.js} +55 -54
  293. package/dist/{chunk-mg27yq5g.js → chunk-sr231sxa.js} +57 -56
  294. package/dist/{chunk-hdydbd6n.js → chunk-ssqkwayr.js} +3 -3
  295. package/dist/{chunk-fwwfs5px.js → chunk-sxw4cmwa.js} +26 -24
  296. package/dist/{chunk-3g9qc0r7.js → chunk-syb8q1a7.js} +6 -6
  297. package/dist/{chunk-6p01yzbv.js → chunk-sz369f7p.js} +1 -1
  298. package/dist/{chunk-55cdfz5s.js → chunk-tec2m8m9.js} +55 -54
  299. package/dist/{chunk-hbqf8gcx.js → chunk-th778mte.js} +22 -21
  300. package/dist/{chunk-69fev66a.js → chunk-tmxndttq.js} +1 -1
  301. package/dist/{chunk-8j3t8sfh.js → chunk-ty0yf565.js} +2 -2
  302. package/dist/{chunk-pfne5pc6.js → chunk-tzxm1qpd.js} +54 -53
  303. package/dist/{chunk-5fbc0x1x.js → chunk-v4h287k2.js} +10 -10
  304. package/dist/{chunk-7kf7bhsn.js → chunk-v8qxrewy.js} +5 -5
  305. package/dist/{chunk-gbc3hqxr.js → chunk-vekf3h3e.js} +5 -5
  306. package/dist/{chunk-13f7w7t7.js → chunk-vgmgqjdr.js} +21 -20
  307. package/dist/{chunk-v0nhtzyr.js → chunk-vhd3112j.js} +54 -53
  308. package/dist/{chunk-0fgksm4v.js → chunk-vn0s2f0t.js} +2 -2
  309. package/dist/{chunk-30t167rn.js → chunk-vrtkdk78.js} +24 -23
  310. package/dist/{chunk-hbj8nfr8.js → chunk-vs6jbwce.js} +55 -54
  311. package/dist/{chunk-pk919mxt.js → chunk-vym6ecc4.js} +1 -1
  312. package/dist/{chunk-ecnp0gg8.js → chunk-vz7s36ha.js} +6 -4
  313. package/dist/{chunk-t9bjcy5g.js → chunk-vzj5fr8q.js} +57 -56
  314. package/dist/{chunk-1ydcbefn.js → chunk-w0vmqtw5.js} +1 -1
  315. package/dist/{chunk-gg0tq2y9.js → chunk-w1b95wbx.js} +2 -2
  316. package/dist/{chunk-acvbnx48.js → chunk-w9v1v0zw.js} +5 -5
  317. package/dist/{chunk-eg9c4vg6.js → chunk-wd1vz4aq.js} +57 -56
  318. package/dist/{chunk-2a02pnrg.js → chunk-wdr8sk6s.js} +54 -53
  319. package/dist/{chunk-a5rhefy3.js → chunk-wfa6tv6q.js} +59 -58
  320. package/dist/{chunk-rbq3arh6.js → chunk-wfrj757m.js} +1 -1
  321. package/dist/{chunk-edty0bmy.js → chunk-wgg5m77q.js} +5 -3
  322. package/dist/chunk-wj7tkzgf.js +122 -0
  323. package/dist/{chunk-jy5tdhvj.js → chunk-wktyrws7.js} +10 -8
  324. package/dist/{chunk-7knsym93.js → chunk-wqb2gr1q.js} +61 -60
  325. package/dist/{chunk-jkrmwfzj.js → chunk-x258tnhw.js} +54 -53
  326. package/dist/{chunk-s216t5fh.js → chunk-x5bpppd4.js} +2 -2
  327. package/dist/{chunk-g2c7g1rs.js → chunk-xaje82s9.js} +25 -25
  328. package/dist/{chunk-xfpw9epw.js → chunk-xfkp0p02.js} +56 -55
  329. package/dist/{chunk-k398drqn.js → chunk-xhasgaxp.js} +63 -62
  330. package/dist/{chunk-708j0sq4.js → chunk-xnfp379r.js} +22 -21
  331. package/dist/{chunk-z3gr6gsz.js → chunk-xpzcbvcd.js} +9 -9
  332. package/dist/{chunk-r2p162kd.js → chunk-xs2y2sav.js} +56 -55
  333. package/dist/{chunk-pce5hv6g.js → chunk-xs4xpxjg.js} +54 -53
  334. package/dist/{chunk-79a3qw9m.js → chunk-xtfc0528.js} +21 -20
  335. package/dist/{chunk-1eth2p2m.js → chunk-xww754c2.js} +9 -8
  336. package/dist/{chunk-ap269m7m.js → chunk-xx0wk227.js} +12 -10
  337. package/dist/{chunk-kbt96bs4.js → chunk-y1fhmk40.js} +21 -17
  338. package/dist/{chunk-pf1bvr99.js → chunk-y1gvgx5x.js} +1 -1
  339. package/dist/{chunk-dahentrc.js → chunk-y230hx8v.js} +14 -12
  340. package/dist/{chunk-caxnxf4z.js → chunk-y56m5qyh.js} +32 -30
  341. package/dist/{chunk-aeepqjh1.js → chunk-y92r0hrv.js} +3 -2
  342. package/dist/{chunk-mk9avgv8.js → chunk-yf81mjer.js} +9 -7
  343. package/dist/{chunk-c001ecx7.js → chunk-yk441xjd.js} +2 -2
  344. package/dist/{chunk-t2ey4g22.js → chunk-yk6bb79v.js} +68 -67
  345. package/dist/{chunk-2st57p4f.js → chunk-yq9t8xss.js} +8 -6
  346. package/dist/{chunk-d90r72sm.js → chunk-yt85vdfb.js} +4 -4
  347. package/dist/{chunk-zrwg85kf.js → chunk-ytam595f.js} +54 -53
  348. package/dist/{chunk-xc3vycnq.js → chunk-yx1zay4h.js} +54 -53
  349. package/dist/{chunk-yentky6k.js → chunk-yyrs5wj8.js} +54 -53
  350. package/dist/{chunk-1g64f12t.js → chunk-z0khh7cw.js} +27 -25
  351. package/dist/{chunk-fxdj4wxj.js → chunk-z2jyv3za.js} +54 -53
  352. package/dist/{chunk-gskba4cp.js → chunk-z88xhqp8.js} +56 -55
  353. package/dist/{chunk-kme5xvp8.js → chunk-za5qp8vn.js} +54 -53
  354. package/dist/{chunk-p550m9ph.js → chunk-zb242aza.js} +22 -21
  355. package/dist/{chunk-avwppas4.js → chunk-zgepe2he.js} +25 -24
  356. package/dist/{chunk-2nxg3smd.js → chunk-zjnwa5a7.js} +116 -115
  357. package/dist/{chunk-pbvewrys.js → chunk-zk4649wd.js} +13 -13
  358. package/dist/{chunk-n12fkqm8.js → chunk-zmg2y3m0.js} +1 -1
  359. package/dist/{chunk-q2dcwd0s.js → chunk-zn0391k2.js} +21 -20
  360. package/dist/{chunk-g0708sxq.js → chunk-zr3vxx8f.js} +54 -53
  361. package/dist/{chunk-bprg82eg.js → chunk-zrk1k0n6.js} +58 -56
  362. package/dist/{chunk-1wsxfmjh.js → chunk-zwrzne74.js} +57 -56
  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
@@ -0,0 +1,494 @@
1
+ // @bun
2
+ import {
3
+ APIUserAbortError,
4
+ init_sdk
5
+ } from "./chunk-g51z2hdg.js";
6
+ import {
7
+ __esm
8
+ } from "./chunk-hhsxm2yr.js";
9
+
10
+ // src/utils/errors.ts
11
+ function isAbortError(e) {
12
+ return e instanceof AbortError || e instanceof APIUserAbortError || e instanceof Error && e.name === "AbortError";
13
+ }
14
+ function hasExactErrorMessage(error, message) {
15
+ return error instanceof Error && error.message === message;
16
+ }
17
+ function toError(e) {
18
+ return e instanceof Error ? e : new Error(String(e));
19
+ }
20
+ function errorMessage(e) {
21
+ return e instanceof Error ? e.message : String(e);
22
+ }
23
+ function getErrnoCode(e) {
24
+ if (e && typeof e === "object" && "code" in e && typeof e.code === "string") {
25
+ return e.code;
26
+ }
27
+ return;
28
+ }
29
+ function isENOENT(e) {
30
+ return getErrnoCode(e) === "ENOENT";
31
+ }
32
+ function getErrnoPath(e) {
33
+ if (e && typeof e === "object" && "path" in e && typeof e.path === "string") {
34
+ return e.path;
35
+ }
36
+ return;
37
+ }
38
+ function isFsInaccessible(e) {
39
+ const code = getErrnoCode(e);
40
+ return code === "ENOENT" || code === "EACCES" || code === "EPERM" || code === "ENOTDIR" || code === "ELOOP";
41
+ }
42
+ function classifyAxiosError(e) {
43
+ const message = errorMessage(e);
44
+ if (!e || typeof e !== "object" || !("isAxiosError" in e) || !e.isAxiosError) {
45
+ return { kind: "other", message };
46
+ }
47
+ const err = e;
48
+ const status = err.response?.status;
49
+ if (status === 401 || status === 403)
50
+ return { kind: "auth", status, message };
51
+ if (err.code === "ECONNABORTED")
52
+ return { kind: "timeout", status, message };
53
+ if (err.code === "ECONNREFUSED" || err.code === "ENOTFOUND") {
54
+ return { kind: "network", status, message };
55
+ }
56
+ return { kind: "http", status, message };
57
+ }
58
+ var ClaudeError, MalformedCommandError, AbortError, ConfigParseError, ShellError, TeleportOperationError, TelemetrySafeError_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS;
59
+ var init_errors = __esm(() => {
60
+ init_sdk();
61
+ ClaudeError = class ClaudeError extends Error {
62
+ constructor(message) {
63
+ super(message);
64
+ this.name = this.constructor.name;
65
+ }
66
+ };
67
+ MalformedCommandError = class MalformedCommandError extends Error {
68
+ };
69
+ AbortError = class AbortError extends Error {
70
+ constructor(message) {
71
+ super(message);
72
+ this.name = "AbortError";
73
+ }
74
+ };
75
+ ConfigParseError = class ConfigParseError extends Error {
76
+ filePath;
77
+ defaultConfig;
78
+ constructor(message, filePath, defaultConfig) {
79
+ super(message);
80
+ this.name = "ConfigParseError";
81
+ this.filePath = filePath;
82
+ this.defaultConfig = defaultConfig;
83
+ }
84
+ };
85
+ ShellError = class ShellError extends Error {
86
+ stdout;
87
+ stderr;
88
+ code;
89
+ interrupted;
90
+ constructor(stdout, stderr, code, interrupted) {
91
+ super("Shell command failed");
92
+ this.stdout = stdout;
93
+ this.stderr = stderr;
94
+ this.code = code;
95
+ this.interrupted = interrupted;
96
+ this.name = "ShellError";
97
+ }
98
+ };
99
+ TeleportOperationError = class TeleportOperationError extends Error {
100
+ formattedMessage;
101
+ constructor(message, formattedMessage) {
102
+ super(message);
103
+ this.formattedMessage = formattedMessage;
104
+ this.name = "TeleportOperationError";
105
+ }
106
+ };
107
+ TelemetrySafeError_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS = class TelemetrySafeError_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS extends Error {
108
+ telemetryMessage;
109
+ constructor(message, telemetryMessage) {
110
+ super(message);
111
+ this.name = "TelemetrySafeError";
112
+ this.telemetryMessage = telemetryMessage ?? message;
113
+ }
114
+ };
115
+ });
116
+
117
+ // src/utils/fsOperations.ts
118
+ import * as fs from "fs";
119
+ import {
120
+ mkdir as mkdirPromise,
121
+ open,
122
+ readdir as readdirPromise,
123
+ readFile as readFilePromise,
124
+ rename as renamePromise,
125
+ rmdir as rmdirPromise,
126
+ rm as rmPromise,
127
+ stat as statPromise,
128
+ unlink as unlinkPromise
129
+ } from "fs/promises";
130
+ import { homedir } from "os";
131
+ import * as nodePath from "path";
132
+ function safeResolvePath(fs2, filePath) {
133
+ if (filePath.startsWith("//") || filePath.startsWith("\\\\")) {
134
+ return { resolvedPath: filePath, isSymlink: false, isCanonical: false };
135
+ }
136
+ try {
137
+ const stats = fs2.lstatSync(filePath);
138
+ if (stats.isFIFO() || stats.isSocket() || stats.isCharacterDevice() || stats.isBlockDevice()) {
139
+ return { resolvedPath: filePath, isSymlink: false, isCanonical: false };
140
+ }
141
+ const resolvedPath = fs2.realpathSync(filePath);
142
+ return {
143
+ resolvedPath,
144
+ isSymlink: resolvedPath !== filePath,
145
+ isCanonical: true
146
+ };
147
+ } catch (_error) {
148
+ return { resolvedPath: filePath, isSymlink: false, isCanonical: false };
149
+ }
150
+ }
151
+ function isDuplicatePath(fs2, filePath, loadedPaths) {
152
+ const { resolvedPath } = safeResolvePath(fs2, filePath);
153
+ if (loadedPaths.has(resolvedPath)) {
154
+ return true;
155
+ }
156
+ loadedPaths.add(resolvedPath);
157
+ return false;
158
+ }
159
+ function resolveDeepestExistingAncestorSync(fs2, absolutePath) {
160
+ let dir = absolutePath;
161
+ const segments = [];
162
+ while (dir !== nodePath.dirname(dir)) {
163
+ let st;
164
+ try {
165
+ st = fs2.lstatSync(dir);
166
+ } catch {
167
+ segments.unshift(nodePath.basename(dir));
168
+ dir = nodePath.dirname(dir);
169
+ continue;
170
+ }
171
+ if (st.isSymbolicLink()) {
172
+ try {
173
+ const resolved = fs2.realpathSync(dir);
174
+ return segments.length === 0 ? resolved : nodePath.join(resolved, ...segments);
175
+ } catch {
176
+ const target = fs2.readlinkSync(dir);
177
+ const absTarget = nodePath.isAbsolute(target) ? target : nodePath.resolve(nodePath.dirname(dir), target);
178
+ return segments.length === 0 ? absTarget : nodePath.join(absTarget, ...segments);
179
+ }
180
+ }
181
+ try {
182
+ const resolved = fs2.realpathSync(dir);
183
+ if (resolved !== dir) {
184
+ return segments.length === 0 ? resolved : nodePath.join(resolved, ...segments);
185
+ }
186
+ } catch {}
187
+ return;
188
+ }
189
+ return;
190
+ }
191
+ function getPathsForPermissionCheck(inputPath) {
192
+ let path = inputPath;
193
+ if (path === "~") {
194
+ path = homedir().normalize("NFC");
195
+ } else if (path.startsWith("~/")) {
196
+ path = nodePath.join(homedir().normalize("NFC"), path.slice(2));
197
+ }
198
+ const pathSet = new Set;
199
+ const fsImpl = getFsImplementation();
200
+ pathSet.add(path);
201
+ if (path.startsWith("//") || path.startsWith("\\\\")) {
202
+ return Array.from(pathSet);
203
+ }
204
+ try {
205
+ let currentPath = path;
206
+ const visited = new Set;
207
+ const maxDepth = 40;
208
+ for (let depth = 0;depth < maxDepth; depth++) {
209
+ if (visited.has(currentPath)) {
210
+ break;
211
+ }
212
+ visited.add(currentPath);
213
+ if (!fsImpl.existsSync(currentPath)) {
214
+ if (currentPath === path) {
215
+ const resolved = resolveDeepestExistingAncestorSync(fsImpl, path);
216
+ if (resolved !== undefined) {
217
+ pathSet.add(resolved);
218
+ }
219
+ }
220
+ break;
221
+ }
222
+ const stats = fsImpl.lstatSync(currentPath);
223
+ if (stats.isFIFO() || stats.isSocket() || stats.isCharacterDevice() || stats.isBlockDevice()) {
224
+ break;
225
+ }
226
+ if (!stats.isSymbolicLink()) {
227
+ break;
228
+ }
229
+ const target = fsImpl.readlinkSync(currentPath);
230
+ const absoluteTarget = nodePath.isAbsolute(target) ? target : nodePath.resolve(nodePath.dirname(currentPath), target);
231
+ pathSet.add(absoluteTarget);
232
+ currentPath = absoluteTarget;
233
+ }
234
+ } catch {}
235
+ const { resolvedPath, isSymlink } = safeResolvePath(fsImpl, path);
236
+ if (isSymlink && resolvedPath !== path) {
237
+ pathSet.add(resolvedPath);
238
+ }
239
+ return Array.from(pathSet);
240
+ }
241
+ function getFsImplementation() {
242
+ return activeFs;
243
+ }
244
+ async function readFileRange(path, offset, maxBytes) {
245
+ const fh = await open(path, "r");
246
+ try {
247
+ const size = (await fh.stat()).size;
248
+ if (size <= offset) {
249
+ return null;
250
+ }
251
+ const bytesToRead = Math.min(size - offset, maxBytes);
252
+ const buffer = Buffer.allocUnsafe(bytesToRead);
253
+ let totalRead = 0;
254
+ while (totalRead < bytesToRead) {
255
+ const { bytesRead } = await fh.read(buffer, totalRead, bytesToRead - totalRead, offset + totalRead);
256
+ if (bytesRead === 0) {
257
+ break;
258
+ }
259
+ totalRead += bytesRead;
260
+ }
261
+ return {
262
+ content: buffer.toString("utf8", 0, totalRead),
263
+ bytesRead: totalRead,
264
+ bytesTotal: size
265
+ };
266
+ } finally {
267
+ await fh.close();
268
+ }
269
+ }
270
+ async function tailFile(path, maxBytes) {
271
+ const fh = await open(path, "r");
272
+ try {
273
+ const size = (await fh.stat()).size;
274
+ if (size === 0) {
275
+ return { content: "", bytesRead: 0, bytesTotal: 0 };
276
+ }
277
+ const offset = Math.max(0, size - maxBytes);
278
+ const bytesToRead = size - offset;
279
+ const buffer = Buffer.allocUnsafe(bytesToRead);
280
+ let totalRead = 0;
281
+ while (totalRead < bytesToRead) {
282
+ const { bytesRead } = await fh.read(buffer, totalRead, bytesToRead - totalRead, offset + totalRead);
283
+ if (bytesRead === 0) {
284
+ break;
285
+ }
286
+ totalRead += bytesRead;
287
+ }
288
+ return {
289
+ content: buffer.toString("utf8", 0, totalRead),
290
+ bytesRead: totalRead,
291
+ bytesTotal: size
292
+ };
293
+ } finally {
294
+ await fh.close();
295
+ }
296
+ }
297
+ async function* readLinesReverse(path) {
298
+ const CHUNK_SIZE = 1024 * 4;
299
+ const fileHandle = await open(path, "r");
300
+ try {
301
+ const stats = await fileHandle.stat();
302
+ let position = stats.size;
303
+ let remainder = Buffer.alloc(0);
304
+ const buffer = Buffer.alloc(CHUNK_SIZE);
305
+ while (position > 0) {
306
+ const currentChunkSize = Math.min(CHUNK_SIZE, position);
307
+ position -= currentChunkSize;
308
+ await fileHandle.read(buffer, 0, currentChunkSize, position);
309
+ const combined = Buffer.concat([
310
+ buffer.subarray(0, currentChunkSize),
311
+ remainder
312
+ ]);
313
+ const firstNewline = combined.indexOf(10);
314
+ if (firstNewline === -1) {
315
+ remainder = combined;
316
+ continue;
317
+ }
318
+ remainder = Buffer.from(combined.subarray(0, firstNewline));
319
+ const lines = combined.toString("utf8", firstNewline + 1).split(`
320
+ `);
321
+ for (let i = lines.length - 1;i >= 0; i--) {
322
+ const line = lines[i];
323
+ if (line) {
324
+ yield line;
325
+ }
326
+ }
327
+ }
328
+ if (remainder.length > 0) {
329
+ yield remainder.toString("utf8");
330
+ }
331
+ } finally {
332
+ await fileHandle.close();
333
+ }
334
+ }
335
+ var NodeFsOperations, activeFs;
336
+ var init_fsOperations = __esm(() => {
337
+ init_errors();
338
+ NodeFsOperations = {
339
+ cwd() {
340
+ return process.cwd();
341
+ },
342
+ existsSync(fsPath) {
343
+ return fs.existsSync(fsPath);
344
+ },
345
+ async stat(fsPath) {
346
+ return statPromise(fsPath);
347
+ },
348
+ async readdir(fsPath) {
349
+ return readdirPromise(fsPath, { withFileTypes: true });
350
+ },
351
+ async unlink(fsPath) {
352
+ return unlinkPromise(fsPath);
353
+ },
354
+ async rmdir(fsPath) {
355
+ return rmdirPromise(fsPath);
356
+ },
357
+ async rm(fsPath, options) {
358
+ return rmPromise(fsPath, options);
359
+ },
360
+ async mkdir(dirPath, options) {
361
+ try {
362
+ await mkdirPromise(dirPath, { recursive: true, ...options });
363
+ } catch (e) {
364
+ if (getErrnoCode(e) !== "EEXIST")
365
+ throw e;
366
+ }
367
+ },
368
+ async readFile(fsPath, options) {
369
+ return readFilePromise(fsPath, { encoding: options.encoding });
370
+ },
371
+ async rename(oldPath, newPath) {
372
+ return renamePromise(oldPath, newPath);
373
+ },
374
+ statSync(fsPath) {
375
+ return fs.statSync(fsPath);
376
+ },
377
+ lstatSync(fsPath) {
378
+ return fs.lstatSync(fsPath);
379
+ },
380
+ readFileSync(fsPath, options) {
381
+ return fs.readFileSync(fsPath, { encoding: options.encoding });
382
+ },
383
+ readFileBytesSync(fsPath) {
384
+ return fs.readFileSync(fsPath);
385
+ },
386
+ readSync(fsPath, options) {
387
+ let fd = undefined;
388
+ try {
389
+ fd = fs.openSync(fsPath, "r");
390
+ const buffer = Buffer.alloc(options.length);
391
+ const bytesRead = fs.readSync(fd, buffer, 0, options.length, 0);
392
+ return { buffer, bytesRead };
393
+ } finally {
394
+ if (fd)
395
+ fs.closeSync(fd);
396
+ }
397
+ },
398
+ appendFileSync(path, data, options) {
399
+ if (options?.mode !== undefined) {
400
+ try {
401
+ const fd = fs.openSync(path, "ax", options.mode);
402
+ try {
403
+ fs.appendFileSync(fd, data);
404
+ } finally {
405
+ fs.closeSync(fd);
406
+ }
407
+ return;
408
+ } catch (e) {
409
+ if (getErrnoCode(e) !== "EEXIST")
410
+ throw e;
411
+ }
412
+ }
413
+ fs.appendFileSync(path, data);
414
+ },
415
+ copyFileSync(src, dest) {
416
+ fs.copyFileSync(src, dest);
417
+ },
418
+ unlinkSync(path) {
419
+ fs.unlinkSync(path);
420
+ },
421
+ renameSync(oldPath, newPath) {
422
+ fs.renameSync(oldPath, newPath);
423
+ },
424
+ linkSync(target, path) {
425
+ fs.linkSync(target, path);
426
+ },
427
+ symlinkSync(target, path, type) {
428
+ fs.symlinkSync(target, path, type);
429
+ },
430
+ readlinkSync(path) {
431
+ return fs.readlinkSync(path);
432
+ },
433
+ realpathSync(path) {
434
+ return fs.realpathSync(path).normalize("NFC");
435
+ },
436
+ mkdirSync(dirPath, options) {
437
+ const mkdirOptions = {
438
+ recursive: true
439
+ };
440
+ if (options?.mode !== undefined) {
441
+ mkdirOptions.mode = options.mode;
442
+ }
443
+ try {
444
+ fs.mkdirSync(dirPath, mkdirOptions);
445
+ } catch (e) {
446
+ if (getErrnoCode(e) !== "EEXIST")
447
+ throw e;
448
+ }
449
+ },
450
+ readdirSync(dirPath) {
451
+ return fs.readdirSync(dirPath, { withFileTypes: true });
452
+ },
453
+ readdirStringSync(dirPath) {
454
+ return fs.readdirSync(dirPath);
455
+ },
456
+ isDirEmptySync(dirPath) {
457
+ const files = this.readdirSync(dirPath);
458
+ return files.length === 0;
459
+ },
460
+ rmdirSync(dirPath) {
461
+ fs.rmdirSync(dirPath);
462
+ },
463
+ rmSync(path, options) {
464
+ fs.rmSync(path, options);
465
+ },
466
+ createWriteStream(path) {
467
+ return fs.createWriteStream(path);
468
+ },
469
+ async readFileBytes(fsPath, maxBytes) {
470
+ if (maxBytes === undefined) {
471
+ return readFilePromise(fsPath);
472
+ }
473
+ const handle = await open(fsPath, "r");
474
+ try {
475
+ const { size } = await handle.stat();
476
+ const readSize = Math.min(size, maxBytes);
477
+ const buffer = Buffer.allocUnsafe(readSize);
478
+ let offset = 0;
479
+ while (offset < readSize) {
480
+ const { bytesRead } = await handle.read(buffer, offset, readSize - offset, offset);
481
+ if (bytesRead === 0)
482
+ break;
483
+ offset += bytesRead;
484
+ }
485
+ return offset < readSize ? buffer.subarray(0, offset) : buffer;
486
+ } finally {
487
+ await handle.close();
488
+ }
489
+ }
490
+ };
491
+ activeFs = NodeFsOperations;
492
+ });
493
+
494
+ export { 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, safeResolvePath, isDuplicatePath, getPathsForPermissionCheck, getFsImplementation, readFileRange, tailFile, readLinesReverse, init_fsOperations };
@@ -47,21 +47,21 @@ import {
47
47
  storeImages,
48
48
  toArray,
49
49
  useAppState
50
- } from "./chunk-66dm3nwe.js";
50
+ } from "./chunk-rr2hzer2.js";
51
51
  import {
52
52
  init_useExitOnCtrlCDWithKeybindings,
53
53
  useExitOnCtrlCDWithKeybindings
54
- } from "./chunk-9d9ez9r3.js";
54
+ } from "./chunk-g7q1asth.js";
55
55
  import {
56
56
  init_useKeybinding
57
- } from "./chunk-n12fkqm8.js";
57
+ } from "./chunk-zmg2y3m0.js";
58
58
  import {
59
59
  init_events,
60
60
  init_sessionTracing,
61
61
  logOTelEvent,
62
62
  redactIfDisabled,
63
63
  startInteractionSpan
64
- } from "./chunk-sqmkz226.js";
64
+ } from "./chunk-actn9xy3.js";
65
65
  import {
66
66
  AGENT_TOOL_NAME,
67
67
  LEGACY_AGENT_TOOL_NAME,
@@ -72,7 +72,7 @@ import {
72
72
  init_constants1 as init_constants,
73
73
  init_fastMode,
74
74
  init_settings
75
- } from "./chunk-jtk7x4k0.js";
75
+ } from "./chunk-1ray0p0s.js";
76
76
  import {
77
77
  count,
78
78
  init_array
@@ -81,7 +81,7 @@ import {
81
81
  formatRelativeTimeAgo,
82
82
  init_format,
83
83
  truncate
84
- } from "./chunk-9xnsynpm.js";
84
+ } from "./chunk-1scbyvc1.js";
85
85
  import {
86
86
  Divider,
87
87
  ThemedBox_default,
@@ -90,7 +90,7 @@ import {
90
90
  useKeybinding,
91
91
  useKeybindings,
92
92
  useTerminalSize
93
- } from "./chunk-6kp74mx0.js";
93
+ } from "./chunk-ejnxa6q2.js";
94
94
  import {
95
95
  require_jsx_dev_runtime,
96
96
  require_react
@@ -117,17 +117,17 @@ import {
117
117
  init_xml,
118
118
  logError,
119
119
  stripDisplayTags
120
- } from "./chunk-wb6qms6j.js";
121
- import {
122
- figures_default,
123
- init_figures
124
- } from "./chunk-c5g9shkw.js";
120
+ } from "./chunk-kxqj72pz.js";
125
121
  import {
126
122
  getSdkBetas,
127
123
  getSessionId,
128
124
  init_state,
129
125
  setPromptId
130
126
  } from "./chunk-6s8exf34.js";
127
+ import {
128
+ figures_default,
129
+ init_figures
130
+ } from "./chunk-c5g9shkw.js";
131
131
  import {
132
132
  __esm,
133
133
  __export,
@@ -1304,7 +1304,7 @@ async function processUserInputBase(input, mode, setToolJSX, context, pastedCont
1304
1304
  if (mode === "prompt" && !context.options.isNonInteractiveSession && inputString !== null && !effectiveSkipSlash && !inputString.startsWith("/") && !context.getAppState().ultraplanSessionUrl && !context.getAppState().ultraplanLaunching && hasUltraplanKeyword(preExpansionInput ?? inputString)) {
1305
1305
  logEvent("tengu_ultraplan_keyword", {});
1306
1306
  const rewritten = replaceUltraplanKeyword(inputString).trim();
1307
- const { processSlashCommand } = await import("./chunk-m00kgtdv.js");
1307
+ const { processSlashCommand } = await import("./chunk-pt509hh1.js");
1308
1308
  const slashResult = await processSlashCommand(`/ultraplan ${rewritten}`, precedingInputBlocks, imageContentBlocks, [], context, setToolJSX, uuid, isAlreadyProcessing, canUseTool);
1309
1309
  return addImageMetadataMessage(slashResult, imageMetadataTexts);
1310
1310
  }
@@ -1313,11 +1313,11 @@ async function processUserInputBase(input, mode, setToolJSX, context, pastedCont
1313
1313
  const attachmentMessages = shouldExtractAttachments ? await toArray(getAttachmentMessages(inputString, context, ideSelection ?? null, [], messages, querySource)) : [];
1314
1314
  queryCheckpoint("query_attachment_loading_end");
1315
1315
  if (inputString !== null && mode === "bash") {
1316
- const { processBashCommand } = await import("./chunk-r2p162kd.js");
1316
+ const { processBashCommand } = await import("./chunk-xs2y2sav.js");
1317
1317
  return addImageMetadataMessage(await processBashCommand(inputString, precedingInputBlocks, attachmentMessages, context, setToolJSX), imageMetadataTexts);
1318
1318
  }
1319
1319
  if (inputString !== null && !effectiveSkipSlash && inputString.startsWith("/")) {
1320
- const { processSlashCommand } = await import("./chunk-m00kgtdv.js");
1320
+ const { processSlashCommand } = await import("./chunk-pt509hh1.js");
1321
1321
  const slashResult = await processSlashCommand(inputString, precedingInputBlocks, imageContentBlocks, attachmentMessages, context, setToolJSX, uuid, isAlreadyProcessing, canUseTool);
1322
1322
  return addImageMetadataMessage(slashResult, imageMetadataTexts);
1323
1323
  }
@@ -1376,7 +1376,7 @@ function buildSystemInitMessage(inputs) {
1376
1376
  slash_commands: inputs.commands.filter((c) => c.userInvocable !== false).map((c) => c.name),
1377
1377
  apiKeySource: getAnthropicApiKeyWithSource().source,
1378
1378
  betas: getSdkBetas(),
1379
- claude_code_version: "1.8.0",
1379
+ claude_code_version: "1.0.1",
1380
1380
  output_style: outputStyle,
1381
1381
  agents: inputs.agents.map((agent) => agent.agentType),
1382
1382
  skills: inputs.skills.filter((s) => s.userInvocable !== false).map((skill) => skill.name),
@@ -5,7 +5,7 @@ import {
5
5
  root_default,
6
6
  stripAnsi,
7
7
  use_app_default
8
- } from "./chunk-6kp74mx0.js";
8
+ } from "./chunk-ejnxa6q2.js";
9
9
  import {
10
10
  require_jsx_dev_runtime,
11
11
  require_react