@qitqode/qitqode-android-arm64 0.1.29 → 0.1.30

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 (386) hide show
  1. package/bundle/{chunk-fj7kd4gc.js → chunk-04tw0r4s.js} +1 -1
  2. package/bundle/{chunk-sbx9z70j.js → chunk-07g7cybt.js} +1 -1
  3. package/bundle/chunk-07ws99b1.js +2 -0
  4. package/bundle/chunk-09c4ngag.js +2 -0
  5. package/bundle/{chunk-j2zay4da.js → chunk-09kba1hg.js} +2 -2
  6. package/bundle/{chunk-dd3m74rc.js → chunk-0ch32p4c.js} +1 -1
  7. package/bundle/{chunk-2p2ch1k2.js → chunk-0df4kede.js} +1 -1
  8. package/bundle/{chunk-f29n7826.js → chunk-0fmbz83g.js} +1 -1
  9. package/bundle/{chunk-gd5stg49.js → chunk-0jgsp4c2.js} +1 -1
  10. package/bundle/chunk-0jgst767.js +2 -0
  11. package/bundle/chunk-0psrr9vp.js +2 -0
  12. package/bundle/{chunk-hn1f6rne.js → chunk-12bssxd4.js} +2 -2
  13. package/bundle/{chunk-a2qerqgd.js → chunk-1bhvt33f.js} +1 -1
  14. package/bundle/{chunk-3rt2k5sc.js → chunk-1dwcga8g.js} +1 -1
  15. package/bundle/{chunk-xn5v8wgh.js → chunk-1fbeendk.js} +1 -1
  16. package/bundle/chunk-1j73cnvz.js +2 -0
  17. package/bundle/{chunk-tqsx2m1j.js → chunk-1ngtxja9.js} +1 -1
  18. package/bundle/{chunk-p7h2qd7z.js → chunk-1qshjfzm.js} +1 -1
  19. package/bundle/{chunk-0626rvy2.js → chunk-1rp1cvmc.js} +1 -1
  20. package/bundle/{chunk-csdm3n24.js → chunk-1sgby720.js} +1 -1
  21. package/bundle/{chunk-6hmj972a.js → chunk-1t9jne14.js} +1 -1
  22. package/bundle/chunk-1yddn03z.js +2 -0
  23. package/bundle/{chunk-74zgcxeg.js → chunk-26nfphsg.js} +1 -1
  24. package/bundle/{chunk-71pmrpkc.js → chunk-27dgtm8r.js} +1 -1
  25. package/bundle/{chunk-n3t52cz2.js → chunk-27yxgy03.js} +1 -1
  26. package/bundle/{chunk-2hw0jzv4.js → chunk-2ahqhh4z.js} +1 -1
  27. package/bundle/{chunk-z5yrvg40.js → chunk-2bn4b42t.js} +1 -1
  28. package/bundle/{chunk-9kjj44cr.js → chunk-2dzk5txw.js} +1 -1
  29. package/bundle/chunk-2ec6ps8r.js +5 -0
  30. package/bundle/{chunk-q5363rr9.js → chunk-2gerf08b.js} +2 -2
  31. package/bundle/{chunk-2mjc44ev.js → chunk-2jmxt3fb.js} +1 -1
  32. package/bundle/{chunk-7926bzm7.js → chunk-2km50rd3.js} +1 -1
  33. package/bundle/{chunk-rptvpa1v.js → chunk-2q96x1t5.js} +1 -1
  34. package/bundle/{chunk-pg8dz1rq.js → chunk-2rs39vj2.js} +1 -1
  35. package/bundle/{chunk-3n49y4kh.js → chunk-2tnarng3.js} +1 -1
  36. package/bundle/{chunk-z160s5p5.js → chunk-2vepzgek.js} +1 -1
  37. package/bundle/{chunk-b9hstp7h.js → chunk-2y90ad1v.js} +1 -1
  38. package/bundle/{chunk-ed723mw1.js → chunk-371r2111.js} +1 -1
  39. package/bundle/{chunk-g06rv5fq.js → chunk-37n34pzd.js} +1 -1
  40. package/bundle/chunk-38g8yzw0.js +2 -0
  41. package/bundle/chunk-3bkd0ar3.js +2 -0
  42. package/bundle/{chunk-9atkgkaq.js → chunk-3bmzjznz.js} +1 -1
  43. package/bundle/chunk-3f4zht9e.js +2 -0
  44. package/bundle/{chunk-0yqbyres.js → chunk-3g1yz39h.js} +1 -1
  45. package/bundle/{chunk-k095hd3c.js → chunk-3n1324bt.js} +1 -1
  46. package/bundle/{chunk-ef2b07fm.js → chunk-3nwve06r.js} +1 -1
  47. package/bundle/{chunk-cev2qj7w.js → chunk-3nyqh1d6.js} +1 -1
  48. package/bundle/{chunk-p5360c2q.js → chunk-3pxnp6jb.js} +1 -1
  49. package/bundle/{chunk-94qmhz2p.js → chunk-3szwfy7w.js} +2 -2
  50. package/bundle/chunk-426dt7be.js +2 -0
  51. package/bundle/{chunk-6jewfaqa.js → chunk-42f7p0hq.js} +2 -2
  52. package/bundle/chunk-4amgp4yd.js +3 -0
  53. package/bundle/{chunk-3vmh2ge6.js → chunk-4p5e5tsz.js} +1 -1
  54. package/bundle/{chunk-nfzmvy30.js → chunk-4pjm21a5.js} +1 -1
  55. package/bundle/{chunk-6hdjkvr1.js → chunk-4qqkqrn9.js} +2 -2
  56. package/bundle/chunk-4sz3jbc5.js +2 -0
  57. package/bundle/{chunk-bsf6n350.js → chunk-4tbwha3m.js} +2 -2
  58. package/bundle/{chunk-qtsmgjk7.js → chunk-4xh1qm90.js} +1 -1
  59. package/bundle/{chunk-t3q7qakr.js → chunk-58x5seqn.js} +1 -1
  60. package/bundle/{chunk-thk93j3e.js → chunk-5a5t01ka.js} +1 -1
  61. package/bundle/{chunk-hhgjbag9.js → chunk-5fgx6fa4.js} +1 -1
  62. package/bundle/{chunk-n86s4fw4.js → chunk-5fz8tph5.js} +1 -1
  63. package/bundle/{chunk-n5sh2790.js → chunk-5qam3c8r.js} +1 -1
  64. package/bundle/{chunk-45jqjyk9.js → chunk-5v4py9p2.js} +1 -1
  65. package/bundle/{chunk-z44m19vm.js → chunk-5xe6x2rt.js} +1 -1
  66. package/bundle/chunk-618tmyx9.js +2 -0
  67. package/bundle/{chunk-zasd8cz8.js → chunk-61c62e5s.js} +1 -1
  68. package/bundle/chunk-6d9wsjxm.js +2 -0
  69. package/bundle/{chunk-zqxmr01r.js → chunk-6fp8a9ek.js} +1 -1
  70. package/bundle/{chunk-ndmrg80b.js → chunk-6hv59ere.js} +1 -1
  71. package/bundle/{chunk-yaj9ywvz.js → chunk-6nbzdb0r.js} +1 -1
  72. package/bundle/{chunk-k7dcfqjs.js → chunk-6qy1ghrx.js} +1 -1
  73. package/bundle/chunk-730a2d1k.js +2 -0
  74. package/bundle/{chunk-gf5pwww1.js → chunk-76wrw0cs.js} +1 -1
  75. package/bundle/chunk-7bd0x9vf.js +2 -0
  76. package/bundle/chunk-7czkntef.js +2 -0
  77. package/bundle/chunk-7ex57nyh.js +2 -0
  78. package/bundle/chunk-7gpczxbh.js +2 -0
  79. package/bundle/chunk-7j0bgeh2.js +2 -0
  80. package/bundle/{chunk-cfxjwfn4.js → chunk-7jbz3dgt.js} +1 -1
  81. package/bundle/{chunk-cjfgs1x8.js → chunk-7ppd2phw.js} +1 -1
  82. package/bundle/chunk-7py443fe.js +2 -0
  83. package/bundle/{chunk-v7deh7aj.js → chunk-7yrhe3xq.js} +1 -1
  84. package/bundle/{chunk-xhncwg5v.js → chunk-89q1y7tc.js} +1 -1
  85. package/bundle/{chunk-yn576pje.js → chunk-89v6dgpp.js} +2 -2
  86. package/bundle/chunk-8qkhddq3.js +8 -0
  87. package/bundle/chunk-90q5sae0.js +2 -0
  88. package/bundle/chunk-9amwe0ed.js +2 -0
  89. package/bundle/chunk-9grvepmd.js +2 -0
  90. package/bundle/chunk-9hrh15p2.js +2 -0
  91. package/bundle/{chunk-azx0zxnx.js → chunk-9j1qqdr2.js} +1 -1
  92. package/bundle/{chunk-s2za1n7h.js → chunk-a0v55ywn.js} +2 -2
  93. package/bundle/{chunk-a8p9aggx.js → chunk-a1p2f16h.js} +2 -2
  94. package/bundle/{chunk-8f0g7d7k.js → chunk-a1pw9r6f.js} +1 -1
  95. package/bundle/{chunk-95qs7wnz.js → chunk-a2qz9m10.js} +1 -1
  96. package/bundle/{chunk-az9hsk6z.js → chunk-ab6cabxh.js} +1 -1
  97. package/bundle/chunk-av6ezvxm.js +2 -0
  98. package/bundle/{chunk-yjj4cvqg.js → chunk-aztre27e.js} +1 -1
  99. package/bundle/{chunk-b4qd109w.js → chunk-b0syck9r.js} +1 -1
  100. package/bundle/{chunk-hevb7k95.js → chunk-b3dqcbsc.js} +1 -1
  101. package/bundle/{chunk-pq2prhb2.js → chunk-b3rpzkcb.js} +1 -1
  102. package/bundle/{chunk-tsb9g1nz.js → chunk-b8bytvka.js} +1 -1
  103. package/bundle/{chunk-awav98j0.js → chunk-b8tw709r.js} +1 -1
  104. package/bundle/{chunk-6528bthc.js → chunk-b9za12y1.js} +1 -1
  105. package/bundle/{chunk-fsy279s5.js → chunk-be216spx.js} +2 -2
  106. package/bundle/chunk-beksar7w.js +2 -0
  107. package/bundle/chunk-bg66rqrx.js +2 -0
  108. package/bundle/{chunk-a94s0jks.js → chunk-bn15mzd7.js} +1 -1
  109. package/bundle/{chunk-z29fwg61.js → chunk-bpbptx89.js} +1 -1
  110. package/bundle/{chunk-qzjpea91.js → chunk-bss414qz.js} +1 -1
  111. package/bundle/chunk-bt6yw07v.js +2 -0
  112. package/bundle/{chunk-d0qqgxs4.js → chunk-btz9jvec.js} +1 -1
  113. package/bundle/{chunk-ypthfv6d.js → chunk-bvkq0a5q.js} +1 -1
  114. package/bundle/{chunk-bx6kyvg7.js → chunk-c01z3cvg.js} +1 -1
  115. package/bundle/{chunk-s6me101a.js → chunk-c5e6sk9c.js} +1 -1
  116. package/bundle/{chunk-yn05n0az.js → chunk-cafzcmrg.js} +2 -2
  117. package/bundle/{chunk-2xxefrps.js → chunk-cdhmc0t0.js} +1 -1
  118. package/bundle/{chunk-qredfmch.js → chunk-chmrvbbj.js} +1 -1
  119. package/bundle/{chunk-b1ntb3dh.js → chunk-ct48575c.js} +1 -1
  120. package/bundle/{chunk-yp3dj4wh.js → chunk-cvdxgsq1.js} +1 -1
  121. package/bundle/chunk-cy9s1ma5.js +2 -0
  122. package/bundle/chunk-d0nkvp57.js +2 -0
  123. package/bundle/{chunk-abtn6nec.js → chunk-d5bxan80.js} +1 -1
  124. package/bundle/{chunk-5n4hpc4f.js → chunk-d6r4xwtg.js} +3 -3
  125. package/bundle/{chunk-xk1nh1ay.js → chunk-dcvatax2.js} +2 -2
  126. package/bundle/{chunk-m2ny1en7.js → chunk-ddnpx1yx.js} +4 -4
  127. package/bundle/{chunk-qzcfjz9g.js → chunk-dfnv7vkn.js} +1 -1
  128. package/bundle/{chunk-18vygvnc.js → chunk-dhjp0zx2.js} +1 -1
  129. package/bundle/{chunk-sv48x9h8.js → chunk-dq9kpj4a.js} +1 -1
  130. package/bundle/{chunk-88dhcv37.js → chunk-drs1gv2b.js} +1 -1
  131. package/bundle/{chunk-geccvf9d.js → chunk-ds69qc8b.js} +1 -1
  132. package/bundle/chunk-dvk2wwjj.js +2 -0
  133. package/bundle/chunk-dxe29jj6.js +2 -0
  134. package/bundle/chunk-e0jy9qxd.js +2 -0
  135. package/bundle/{chunk-fhdpp77n.js → chunk-eb9mytjq.js} +1 -1
  136. package/bundle/{chunk-c19t7e8s.js → chunk-ecn8gbtz.js} +1 -1
  137. package/bundle/chunk-eercqt72.js +2 -0
  138. package/bundle/{chunk-8jzjvmaz.js → chunk-efxd6b2k.js} +1 -1
  139. package/bundle/{chunk-hd2kb05a.js → chunk-ejjea8hh.js} +1 -1
  140. package/bundle/chunk-eneawsj8.js +2 -0
  141. package/bundle/{chunk-v9xnk9pz.js → chunk-ezja6njs.js} +1 -1
  142. package/bundle/{chunk-8kz3n8ye.js → chunk-f45tp3e3.js} +1 -1
  143. package/bundle/chunk-f72pppr7.js +2 -0
  144. package/bundle/chunk-feyphhxd.js +2 -0
  145. package/bundle/{chunk-2w20mhch.js → chunk-fjgyrsbw.js} +1 -1
  146. package/bundle/{chunk-v00cptj6.js → chunk-fkgv2hqd.js} +1 -1
  147. package/bundle/{chunk-8d2ddmf0.js → chunk-fnbpap62.js} +1 -1
  148. package/bundle/chunk-fnnch1e9.js +2 -0
  149. package/bundle/{chunk-7wthn44y.js → chunk-fqw4y7x0.js} +2 -2
  150. package/bundle/{chunk-yk8kk25c.js → chunk-ft93f33g.js} +1 -1
  151. package/bundle/{chunk-3q6650we.js → chunk-g1dwbvkg.js} +1 -1
  152. package/bundle/{chunk-mb4wvwfw.js → chunk-g3dhsmbt.js} +3 -3
  153. package/bundle/{chunk-1xw68zak.js → chunk-g7rjtehn.js} +1 -1
  154. package/bundle/{chunk-q0xzbad1.js → chunk-gf0pdgjs.js} +1 -1
  155. package/bundle/{chunk-gd45tjbd.js → chunk-ggqst87g.js} +1 -1
  156. package/bundle/{chunk-n34y5gp6.js → chunk-gj3hzx3d.js} +2 -2
  157. package/bundle/chunk-gk34kh8p.js +2 -0
  158. package/bundle/{chunk-pycjksh4.js → chunk-gm85xefs.js} +1 -1
  159. package/bundle/chunk-gn50xqbd.js +2 -0
  160. package/bundle/{chunk-89f8v2y8.js → chunk-h0rpmne5.js} +1 -1
  161. package/bundle/chunk-h6rv626m.js +2 -0
  162. package/bundle/chunk-h7s2w1e2.js +2 -0
  163. package/bundle/{chunk-yyqrbv2f.js → chunk-h9pvnp5c.js} +1 -1
  164. package/bundle/{chunk-hpfqnjfz.js → chunk-hj5y7fvk.js} +1 -1
  165. package/bundle/chunk-hmv2cdnz.js +2 -0
  166. package/bundle/chunk-ht81ensf.js +2 -0
  167. package/bundle/{chunk-44jpsp97.js → chunk-hw1dmx28.js} +1 -1
  168. package/bundle/{chunk-43ae3chd.js → chunk-hwbyqezq.js} +2 -2
  169. package/bundle/{chunk-97h0jx8y.js → chunk-hxpgs78j.js} +1 -1
  170. package/bundle/{chunk-yj73ehjd.js → chunk-hxz2rdjq.js} +1 -1
  171. package/bundle/chunk-j59ktwny.js +2 -0
  172. package/bundle/{chunk-cd867geb.js → chunk-j5kb0y1m.js} +1 -1
  173. package/bundle/{chunk-1rn0vmvv.js → chunk-j6emx6jn.js} +2 -2
  174. package/bundle/{chunk-ekndhwnn.js → chunk-j9pcnkkq.js} +2 -2
  175. package/bundle/{chunk-2p9py4rw.js → chunk-jje0srjq.js} +1 -1
  176. package/bundle/{chunk-kkae8ead.js → chunk-jm1ptn8n.js} +1 -1
  177. package/bundle/chunk-jmz2mq3t.js +2 -0
  178. package/bundle/{chunk-11d987sj.js → chunk-jvqbvgjy.js} +1 -1
  179. package/bundle/chunk-k309zez0.js +3 -0
  180. package/bundle/chunk-k3fn3yed.js +2 -0
  181. package/bundle/{chunk-1fz0383p.js → chunk-k7gq9bra.js} +1 -1
  182. package/bundle/{chunk-eqcd9k9p.js → chunk-k8ss3135.js} +130 -130
  183. package/bundle/{chunk-4fk4se02.js → chunk-kfsb2stm.js} +1 -1
  184. package/bundle/{chunk-b73s2h43.js → chunk-knpt9n8f.js} +1 -1
  185. package/bundle/chunk-kpw6nghv.js +2 -0
  186. package/bundle/{chunk-81h5f8ev.js → chunk-kqn9h2gk.js} +1 -1
  187. package/bundle/{chunk-jwtev7b7.js → chunk-m02zt1a3.js} +2 -2
  188. package/bundle/{chunk-ktqrbbkh.js → chunk-m1h5a4vg.js} +1 -1
  189. package/bundle/chunk-m5ghbt5y.js +2 -0
  190. package/bundle/{chunk-4vze3djr.js → chunk-m612agnk.js} +1 -1
  191. package/bundle/{chunk-hbtd620x.js → chunk-m67tcnk4.js} +1 -1
  192. package/bundle/{chunk-6bsgrr5h.js → chunk-mgk9sh16.js} +1 -1
  193. package/bundle/{chunk-wnwesaap.js → chunk-mj4bepvj.js} +1 -1
  194. package/bundle/{chunk-t3tkp1em.js → chunk-mk6cddvd.js} +1 -1
  195. package/bundle/chunk-mn41f9qv.js +2 -0
  196. package/bundle/chunk-mqjf9sbm.js +2 -0
  197. package/bundle/{chunk-r4mnbhe1.js → chunk-mrw279k3.js} +1 -1
  198. package/bundle/{chunk-qje3683x.js → chunk-msegx0t7.js} +1 -1
  199. package/bundle/{chunk-x6nbck7p.js → chunk-mskwkcgj.js} +1 -1
  200. package/bundle/{chunk-ce5t444d.js → chunk-my6sz5d6.js} +1 -1
  201. package/bundle/{chunk-scqxmv8k.js → chunk-n26yf3he.js} +1 -1
  202. package/bundle/chunk-n5gwrrbb.js +2 -0
  203. package/bundle/{chunk-6scqd8fh.js → chunk-n8h6x2en.js} +1 -1
  204. package/bundle/chunk-nfjhem1c.js +2 -0
  205. package/bundle/{chunk-h8chkene.js → chunk-ngchsw2g.js} +1 -1
  206. package/bundle/{chunk-rf524gez.js → chunk-ngytjdg2.js} +1 -1
  207. package/bundle/chunk-nj4d554m.js +11 -0
  208. package/bundle/chunk-nrc3bj9p.js +2 -0
  209. package/bundle/{chunk-0xm85ayc.js → chunk-nt4e3em9.js} +1 -1
  210. package/bundle/chunk-nxyyn2ra.js +2 -0
  211. package/bundle/{chunk-t35n89t9.js → chunk-nzehfpxp.js} +1 -1
  212. package/bundle/chunk-p5tceb4k.js +2 -0
  213. package/bundle/{chunk-js9wdh67.js → chunk-p68rwmhc.js} +1 -1
  214. package/bundle/{chunk-g0mbbysk.js → chunk-pekm54ce.js} +1 -1
  215. package/bundle/{chunk-yvqbewmc.js → chunk-phxrg7aw.js} +2 -2
  216. package/bundle/{chunk-3h4y7n1a.js → chunk-ppfjf7qx.js} +1 -1
  217. package/bundle/{chunk-d7t0bcvk.js → chunk-pvpy9kq1.js} +6 -6
  218. package/bundle/{chunk-k16s2dnx.js → chunk-q1v2pytx.js} +1 -1
  219. package/bundle/{chunk-svrxk3vf.js → chunk-q6ztpfcs.js} +2 -2
  220. package/bundle/{chunk-8k55xz7z.js → chunk-qhc90p4a.js} +1 -1
  221. package/bundle/chunk-qjgm3e2p.js +2 -0
  222. package/bundle/{chunk-4mrz9b6d.js → chunk-qjjch1zt.js} +2 -2
  223. package/bundle/{chunk-b20xjnpw.js → chunk-qjn86fc0.js} +1 -1
  224. package/bundle/{chunk-9epjgend.js → chunk-qrey2gwb.js} +2 -2
  225. package/bundle/chunk-qt80mhdn.js +2 -0
  226. package/bundle/chunk-qtw5nrr4.js +2 -0
  227. package/bundle/{chunk-xk7je9y8.js → chunk-qv2s39dv.js} +1 -1
  228. package/bundle/chunk-rc9ex3vt.js +2 -0
  229. package/bundle/{chunk-xn61fgrh.js → chunk-s07j8hfy.js} +1 -1
  230. package/bundle/{chunk-y212x7ws.js → chunk-s3yna2wm.js} +1 -1
  231. package/bundle/chunk-s9672vvv.js +2 -0
  232. package/bundle/chunk-sbyey0qb.js +2 -0
  233. package/bundle/{chunk-ps6jk326.js → chunk-scnz207s.js} +1 -1
  234. package/bundle/{chunk-k20nrwbg.js → chunk-sermjas1.js} +1 -1
  235. package/bundle/chunk-shpq6es1.js +3 -0
  236. package/bundle/chunk-sj5v361q.js +2 -0
  237. package/bundle/{chunk-qsszerj7.js → chunk-sn4nez18.js} +2 -2
  238. package/bundle/{chunk-t299e2aw.js → chunk-snm5q21k.js} +2 -2
  239. package/bundle/{chunk-yt2k9ga8.js → chunk-srh4xvsj.js} +1 -1
  240. package/bundle/{chunk-a2g69pv6.js → chunk-svvgv1s0.js} +1 -1
  241. package/bundle/{chunk-n4gjpgnk.js → chunk-szr0f7k2.js} +1 -1
  242. package/bundle/{chunk-4vemws1t.js → chunk-t12xrrfr.js} +2 -2
  243. package/bundle/chunk-ta3k9syc.js +2 -0
  244. package/bundle/{chunk-d86ma6zk.js → chunk-tj78jsp9.js} +1 -1
  245. package/bundle/chunk-tk5afan4.js +2 -0
  246. package/bundle/chunk-tpndnprb.js +2 -0
  247. package/bundle/{chunk-jkm54mha.js → chunk-tr8sf0dk.js} +1 -1
  248. package/bundle/{chunk-hgbkg85g.js → chunk-v2zp22r3.js} +1 -1
  249. package/bundle/{chunk-jntqzhxr.js → chunk-v4xcysh0.js} +1 -1
  250. package/bundle/{chunk-19sa03c1.js → chunk-v965rsr8.js} +2 -2
  251. package/bundle/{chunk-2ztdqtnk.js → chunk-vcmrrt8b.js} +1 -1
  252. package/bundle/chunk-vcrn3v70.js +2 -0
  253. package/bundle/{chunk-b9nwaaqs.js → chunk-vg2fmyje.js} +2 -2
  254. package/bundle/{chunk-98vfbn0h.js → chunk-vj62pc0h.js} +1 -1
  255. package/bundle/{chunk-g3ch14a1.js → chunk-vn7nkrqb.js} +1 -1
  256. package/bundle/chunk-vwxfgea7.js +2 -0
  257. package/bundle/chunk-w0kgcz1t.js +2 -0
  258. package/bundle/{chunk-50w28xj1.js → chunk-w87a3mzm.js} +1 -1
  259. package/bundle/{chunk-09j71kp6.js → chunk-wfs4pcwa.js} +3 -3
  260. package/bundle/{chunk-zqjp7jdd.js → chunk-wgpsmxqx.js} +1 -1
  261. package/bundle/{chunk-kw09hbrb.js → chunk-whcg14sc.js} +1 -1
  262. package/bundle/{chunk-20d0cd1j.js → chunk-whxjkz9a.js} +2 -2
  263. package/bundle/chunk-wksczmes.js +2 -0
  264. package/bundle/{chunk-m6wceqay.js → chunk-wnqwb6fd.js} +1 -1
  265. package/bundle/{chunk-7mc8nxve.js → chunk-wpajh5s5.js} +1 -1
  266. package/bundle/chunk-wsxta33r.js +2 -0
  267. package/bundle/{chunk-byc7ev8p.js → chunk-wsy0m70r.js} +1 -1
  268. package/bundle/{chunk-csyw14fj.js → chunk-wy46mbwt.js} +1 -1
  269. package/bundle/{chunk-0wdtbn59.js → chunk-wz0zcddf.js} +2 -2
  270. package/bundle/{chunk-gjvymdhp.js → chunk-x067eetw.js} +1 -1
  271. package/bundle/{chunk-s1sepxdp.js → chunk-xc5044tm.js} +1 -1
  272. package/bundle/{chunk-tj00kzk4.js → chunk-xck0sq3k.js} +1 -1
  273. package/bundle/chunk-xjyhtm8r.js +2 -0
  274. package/bundle/{chunk-rs1698xs.js → chunk-xm08fc2q.js} +1 -1
  275. package/bundle/{chunk-bv8pf0m1.js → chunk-xpc2zgj7.js} +2 -2
  276. package/bundle/{chunk-nxn4arcf.js → chunk-xs3xtz6x.js} +1 -1
  277. package/bundle/{chunk-6saj1dhz.js → chunk-y062spw2.js} +1 -1
  278. package/bundle/{chunk-qk9vccja.js → chunk-y2v09y71.js} +1 -1
  279. package/bundle/{chunk-61yatzp8.js → chunk-ydp0q1hk.js} +1 -1
  280. package/bundle/{chunk-z4nay2ef.js → chunk-yfkvjphe.js} +1 -1
  281. package/bundle/chunk-ygc5qegv.js +2 -0
  282. package/bundle/chunk-yjqmzm51.js +2 -0
  283. package/bundle/{chunk-nv2r4cns.js → chunk-yjtdgcq5.js} +1 -1
  284. package/bundle/{chunk-5z7mjwwa.js → chunk-yn6sbycg.js} +1 -1
  285. package/bundle/{chunk-4fspp5fg.js → chunk-yp0a8q29.js} +3 -3
  286. package/bundle/{chunk-bzrsnv2k.js → chunk-yq3m8190.js} +2 -2
  287. package/bundle/{chunk-7m8fdp5p.js → chunk-yy526n9c.js} +1 -1
  288. package/bundle/chunk-yzc53n88.js +2 -0
  289. package/bundle/{chunk-j0znryc6.js → chunk-yzjc15vp.js} +1 -1
  290. package/bundle/chunk-z7y9pdj7.js +2 -0
  291. package/bundle/{chunk-rqgcz2zr.js → chunk-z8g819cz.js} +1 -1
  292. package/bundle/{chunk-4kpvceap.js → chunk-z8r65yw3.js} +1 -1
  293. package/bundle/{chunk-31wxbws4.js → chunk-zb0me4kk.js} +1 -1
  294. package/bundle/{chunk-asmfntjm.js → chunk-zcm2jdr5.js} +1 -1
  295. package/bundle/chunk-zt1nbwmm.js +2 -0
  296. package/bundle/{chunk-zbq60sw6.js → chunk-ztc3gm8y.js} +1 -1
  297. package/bundle/{chunk-v9bmpndq.js → chunk-zv6pjtz1.js} +1 -1
  298. package/bundle/{chunk-1d9f53sk.js → chunk-zyhdxggp.js} +2 -2
  299. package/bundle/{chunk-ma0m6kpj.js → chunk-zz36xg2n.js} +1 -1
  300. package/bundle/index.js +3 -3
  301. package/bundle/parser.worker.js +2 -2
  302. package/bundle/worker.js +1 -1
  303. package/package.json +1 -1
  304. package/bundle/chunk-07c1mvy1.js +0 -2
  305. package/bundle/chunk-0p7qcm51.js +0 -2
  306. package/bundle/chunk-0pmb7zzh.js +0 -2
  307. package/bundle/chunk-1s9ctg0d.js +0 -2
  308. package/bundle/chunk-2f9fn9xr.js +0 -2
  309. package/bundle/chunk-2fhcvfyg.js +0 -2
  310. package/bundle/chunk-3mfj0x4p.js +0 -2
  311. package/bundle/chunk-3shnje9k.js +0 -2
  312. package/bundle/chunk-3tz1qhpt.js +0 -2
  313. package/bundle/chunk-4dtbdycg.js +0 -2
  314. package/bundle/chunk-4pz8av2y.js +0 -2
  315. package/bundle/chunk-4r4xh8a6.js +0 -2
  316. package/bundle/chunk-5hpq59t1.js +0 -2
  317. package/bundle/chunk-5s90ehww.js +0 -2
  318. package/bundle/chunk-63kcg127.js +0 -2
  319. package/bundle/chunk-6fejrpht.js +0 -2
  320. package/bundle/chunk-6zzdw7q1.js +0 -2
  321. package/bundle/chunk-78m8rayq.js +0 -2
  322. package/bundle/chunk-7j6p5j2g.js +0 -2
  323. package/bundle/chunk-7tjd6ba1.js +0 -2
  324. package/bundle/chunk-8d8efdry.js +0 -2
  325. package/bundle/chunk-93jxndr8.js +0 -2
  326. package/bundle/chunk-99ve54r6.js +0 -2
  327. package/bundle/chunk-9ksaqyb2.js +0 -2
  328. package/bundle/chunk-9p7t748e.js +0 -2
  329. package/bundle/chunk-a69jgepp.js +0 -2
  330. package/bundle/chunk-ar310tc3.js +0 -2
  331. package/bundle/chunk-at03h9eq.js +0 -2
  332. package/bundle/chunk-ay9p70xx.js +0 -2
  333. package/bundle/chunk-b6dsv601.js +0 -3
  334. package/bundle/chunk-bajtytm5.js +0 -2
  335. package/bundle/chunk-bh8v3mfg.js +0 -2
  336. package/bundle/chunk-bn0h9dny.js +0 -10
  337. package/bundle/chunk-bp8sxnrm.js +0 -2
  338. package/bundle/chunk-bw5e8thn.js +0 -2
  339. package/bundle/chunk-c8ajbhv3.js +0 -2
  340. package/bundle/chunk-c8n72r2k.js +0 -8
  341. package/bundle/chunk-ccddzk10.js +0 -2
  342. package/bundle/chunk-ch8cx9jn.js +0 -2
  343. package/bundle/chunk-cm4jtnkg.js +0 -2
  344. package/bundle/chunk-cq7j5tv5.js +0 -2
  345. package/bundle/chunk-cttqh20d.js +0 -2
  346. package/bundle/chunk-cvvfa1jf.js +0 -2
  347. package/bundle/chunk-dfja6dj6.js +0 -5
  348. package/bundle/chunk-e3qtndrt.js +0 -2
  349. package/bundle/chunk-e8cac405.js +0 -2
  350. package/bundle/chunk-ez92ah9y.js +0 -2
  351. package/bundle/chunk-fazvedgy.js +0 -2
  352. package/bundle/chunk-gtzcm5sb.js +0 -2
  353. package/bundle/chunk-kfgn4apg.js +0 -2
  354. package/bundle/chunk-kzrw6h8t.js +0 -2
  355. package/bundle/chunk-mjrvj2cg.js +0 -2
  356. package/bundle/chunk-mpebdv59.js +0 -2
  357. package/bundle/chunk-n20v44zr.js +0 -2
  358. package/bundle/chunk-nksathh4.js +0 -2
  359. package/bundle/chunk-q14890p6.js +0 -2
  360. package/bundle/chunk-q4n02cwv.js +0 -2
  361. package/bundle/chunk-q7s17j1b.js +0 -2
  362. package/bundle/chunk-qm07wesh.js +0 -2
  363. package/bundle/chunk-qrrg9v3d.js +0 -2
  364. package/bundle/chunk-rdqgss38.js +0 -2
  365. package/bundle/chunk-rzc528ym.js +0 -2
  366. package/bundle/chunk-sbv96mj0.js +0 -3
  367. package/bundle/chunk-th78zcds.js +0 -2
  368. package/bundle/chunk-tv26mwx5.js +0 -2
  369. package/bundle/chunk-v69n6mef.js +0 -2
  370. package/bundle/chunk-vegwb3t0.js +0 -2
  371. package/bundle/chunk-w9seyn69.js +0 -2
  372. package/bundle/chunk-wanf4se3.js +0 -2
  373. package/bundle/chunk-wdhzmk1b.js +0 -2
  374. package/bundle/chunk-wxqtda70.js +0 -2
  375. package/bundle/chunk-wzb6s9rk.js +0 -2
  376. package/bundle/chunk-x0dg9rg6.js +0 -2
  377. package/bundle/chunk-xmnzrzbs.js +0 -2
  378. package/bundle/chunk-xzf62kc6.js +0 -2
  379. package/bundle/chunk-yned6vmd.js +0 -3
  380. package/bundle/chunk-yra49yga.js +0 -2
  381. package/bundle/chunk-ytye0p7f.js +0 -2
  382. package/bundle/chunk-yv2mxxbq.js +0 -2
  383. package/bundle/chunk-z2fqqer0.js +0 -2
  384. package/bundle/chunk-z3qanc8m.js +0 -2
  385. package/bundle/chunk-zcagdtab.js +0 -2
  386. package/bundle/chunk-zervk6c5.js +0 -2
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{$k as yJ,Al as uX,Bk as KH,Bl as dX,Ck as QH,Cl as Y1,Dl as R$,Ek as qZ,Fk as FZ,Gk as pG,Jk as RZ,Kk as Q1,Lk as M8,Mk as d7,Nk as LZ,Ok as NZ,Pk as FX,Qk as IX,Rk as AX,Sk as SX,Tk as wX,Uk as fV,Vk as xV,Xj as P$,Xk as E$,Yk as VH,Zk as GH,al as TX,bl as kX,ck as Xq,cl as EX,dk as GV,ek as H7,el as a_,ik as J1,il as VX,jl as xX,kk as F0,lk as IJ,mk as f2,ml as L1,ol as z2,pk as b0,pl as WH,qk as z8,rl as B1,tk as kK,tl as k0,uk as EK,vk as R1,wk as EV,yk as D6,zk as YH}from"./chunk-d7t0bcvk.js";import{El as g9}from"./chunk-7mc8nxve.js";import{Rl as PG,Sl as bH,Vl as V0,Wl as e$,Xl as $1,Yl as JJ,bm as z$,cm as BJ,fm as U2,lm as H$,mm as i,om as O1}from"./chunk-dfja6dj6.js";import{qm as C9,rm as f6,sm as S1,tm as XJ,xm as Z0}from"./chunk-n34y5gp6.js";import{Am as XX,Nm as f1,Um as t0,Vm as i$,Wm as e0,Xm as b2,Ym as WX,_m as G$,an as _0,bn as NJ,dn as $Z,jn as h7,wn as m1,xn as O8}from"./chunk-bn0h9dny.js";import{Pn as g6}from"./chunk-7wthn44y.js";import{ho as ZZ,io as vV}from"./chunk-0xm85ayc.js";import{ko as r8,zo as e}from"./chunk-s2za1n7h.js";import{Ao as YZ,Co as U1}from"./chunk-19sa03c1.js";import{Do as T2}from"./chunk-csdm3n24.js";import{Eo as x$}from"./chunk-xk1nh1ay.js";import{Cq as ZH}from"./chunk-jwtev7b7.js";import{Mq as HZ}from"./chunk-qsszerj7.js";import{cr as G2,dr as $V,jr as v1,kr as X2}from"./chunk-6hdjkvr1.js";import{Tr as l9}from"./chunk-hn1f6rne.js";import{Vr as BH}from"./chunk-4kpvceap.js";import{$s as O$,As as jK,Ds as WZ,Ms as D0,Qs as H8,Rs as f$,Ss as k$,Wr as E2,Zr as d9,_r as tU,bs as eU,cs as $H,es as q9}from"./chunk-94qmhz2p.js";import{at as qG,et as MH,it as B9,lt as h9,ot as y2,pt as $$,tt as O0}from"./chunk-20d0cd1j.js";import{vt as F}from"./chunk-b6dsv601.js";import{$I as kG,AC as D$,FI as Z8,JN as HJ,MC as h2,PE as f,RN as l$,SM as F$,WE as EH,XD as n0,ZI as b1,bO as eQ,iF as xH,jE as H0,qH as G,sB as JH,sN as IU,tN as EG,vB as p1,wN as AU,yN as _Z,zE as UJ}from"./chunk-t299e2aw.js";import{wO as k3}from"./chunk-bv8pf0m1.js";import{CO as A9,DO as p,EO as o$,GO as u0,HO as S9,IO as w9}from"./chunk-yjj4cvqg.js";var wK=p((pS,P9)=>{function FK($){return Array.isArray($)?$:[$]}var w_=void 0,d6="",OK=" ",u6="\\",R_=/^\s+$/,L_=/(?:[^\\]|^)\\$/,N_=/^\\!/,y_=/^\\#/,T_=/\r?\n/g,k_=/^\.{0,2}\/|^\.{1,2}$/,E_=/\/$/,WJ="/",zK="node-ignore";if(typeof Symbol<"u")zK=Symbol.for("node-ignore");var CK=zK,jJ=($,J,Z)=>{return Object.defineProperty($,J,{value:Z}),Z},x_=/([0-z])-([0-z])/g,MK=()=>!1,b_=($)=>$.replace(x_,(J,Z,Y)=>Z.charCodeAt(0)<=Y.charCodeAt(0)?J:d6),v_=($)=>{let{length:J}=$;return $.slice(0,J-J%2)},h_=[[/^\uFEFF/,()=>d6],[/((?:\\\\)*?)(\\?\s+)$/,($,J,Z)=>J+(Z.indexOf("\\")===0?OK:d6)],[/(\\+?)\s/g,($,J)=>{let{length:Z}=J;return J.slice(0,Z-Z%2)+OK}],[/[\\$.|*+(){^]/g,($)=>`\\${$}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,($,J,Z)=>J+6<Z.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,($,J,Z)=>{let Y=Z.replace(/\\\*/g,"[^\\/]*");return J+Y}],[/\\\\\\(?=[$.|*+(){^])/g,()=>u6],[/\\\\/g,()=>u6],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,($,J,Z,Y,K)=>J===u6?`\\[${Z}${v_(Y)}${K}`:K==="]"?Y.length%2===0?`[${b_(Z)}${Y}]`:"[]":"[]"],[/(?:[^*])$/,($)=>/\/$/.test($)?`${$}$`:`${$}(?=$|\\/$)`]],g_=/(^|\\\/)?\\\*$/,Y8="regex",M9="checkRegex",qK="_",f_={[Y8]($,J){return`${J?`${J}[^/]+`:"[^/]*"}(?=$|\\/$)`},[M9]($,J){return`${J?`${J}[^/]*`:"[^/]*"}(?=$|\\/$)`}},m_=($)=>h_.reduce((J,[Z,Y])=>J.replace(Z,Y.bind($)),$),D9=($)=>typeof $==="string",u_=($)=>$&&D9($)&&!R_.test($)&&!L_.test($)&&$.indexOf("#")!==0,d_=($)=>$.split(T_).filter(Boolean);class DK{constructor($,J,Z,Y,K,Q){this.pattern=$,this.mark=J,this.negative=K,jJ(this,"body",Z),jJ(this,"ignoreCase",Y),jJ(this,"regexPrefix",Q)}get regex(){let $=qK+Y8;if(this[$])return this[$];return this._make(Y8,$)}get checkRegex(){let $=qK+M9;if(this[$])return this[$];return this._make(M9,$)}_make($,J){let Z=this.regexPrefix.replace(g_,f_[$]),Y=this.ignoreCase?new RegExp(Z,"i"):new RegExp(Z);return jJ(this,J,Y)}}var p_=({pattern:$,mark:J},Z)=>{let Y=!1,K=$;if(K.indexOf("!")===0)Y=!0,K=K.substr(1);K=K.replace(N_,"!").replace(y_,"#");let Q=m_(K);return new DK($,J,K,Z,Y,Q)};class PK{constructor($){this._ignoreCase=$,this._rules=[]}_add($){if($&&$[CK]){this._rules=this._rules.concat($._rules._rules),this._added=!0;return}if(D9($))$={pattern:$};if(u_($.pattern)){let J=p_($,this._ignoreCase);this._added=!0,this._rules.push(J)}}add($){return this._added=!1,FK(D9($)?d_($):$).forEach(this._add,this),this._added}test($,J,Z){let Y=!1,K=!1,Q;this._rules.forEach((X)=>{let{negative:W}=X;if(K===W&&Y!==K||W&&!Y&&!K&&!J)return;if(!X[Z].test($))return;Y=!W,K=W,Q=W?w_:X});let V={ignored:Y,unignored:K};if(Q)V.rule=Q;return V}}var c_=($,J)=>{throw new J($)},h1=($,J,Z)=>{if(!D9($))return Z(`path must be a string, but got \`${J}\``,TypeError);if(!$)return Z("path must not be empty",TypeError);if(h1.isNotRelative($))return Z(`path should be a \`path.relative()\`d string, but got "${J}"`,RangeError);return!0},IK=($)=>k_.test($);h1.isNotRelative=IK;h1.convert=($)=>$;class AK{constructor({ignorecase:$=!0,ignoreCase:J=$,allowRelativePaths:Z=!1}={}){jJ(this,CK,!0),this._rules=new PK(J),this._strictPathCheck=!Z,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add($){if(this._rules.add($))this._initCache();return this}addPattern($){return this.add($)}_test($,J,Z,Y){let K=$&&h1.convert($);return h1(K,$,this._strictPathCheck?c_:MK),this._t(K,J,Z,Y)}checkIgnore($){if(!E_.test($))return this.test($);let J=$.split(WJ).filter(Boolean);if(J.pop(),J.length){let Z=this._t(J.join(WJ)+WJ,this._testCache,!0,J);if(Z.ignored)return Z}return this._rules.test($,!1,M9)}_t($,J,Z,Y){if($ in J)return J[$];if(!Y)Y=$.split(WJ).filter(Boolean);if(Y.pop(),!Y.length)return J[$]=this._rules.test($,Z,Y8);let K=this._t(Y.join(WJ)+WJ,J,Z,Y);return J[$]=K.ignored?K:this._rules.test($,Z,Y8)}ignores($){return this._test($,this._ignoreCache,!1).ignored}createFilter(){return($)=>!this.ignores($)}filter($){return FK($).filter(this.createFilter())}test($){return this._test($,this._testCache,!0)}}var p6=($)=>new AK($),l_=($)=>h1($&&h1.convert($),$,MK),SK=()=>{let $=(Z)=>/^\\\\\?\\/.test(Z)||/["<>|\u0000-\u001F]+/u.test(Z)?Z:Z.replace(/\\/g,"/");h1.convert=$;let J=/^[a-z]:\//i;h1.isNotRelative=(Z)=>J.test(Z)||IK(Z)};if(typeof process<"u"&&process.platform==="win32")SK();P9.exports=p6;p6.default=p6;P9.exports.isPathValid=l_;jJ(P9.exports,Symbol.for("setupWindows"),SK)});var R9=p((q4)=>{q4.isInteger=($)=>{if(typeof $==="number")return Number.isInteger($);if(typeof $==="string"&&$.trim()!=="")return Number.isInteger(Number($));return!1};q4.find=($,J)=>$.nodes.find((Z)=>Z.type===J);q4.exceedsLimit=($,J,Z=1,Y)=>{if(Y===!1)return!1;if(!q4.isInteger($)||!q4.isInteger(J))return!1;return(Number(J)-Number($))/Number(Z)>=Y};q4.escapeNode=($,J=0,Z)=>{let Y=$.nodes[J];if(!Y)return;if(Z&&Y.type===Z||Y.type==="open"||Y.type==="close"){if(Y.escaped!==!0)Y.value="\\"+Y.value,Y.escaped=!0}};q4.encloseBrace=($)=>{if($.type!=="brace")return!1;if($.commas>>0+$.ranges>>0===0)return $.invalid=!0,!0;return!1};q4.isInvalidBrace=($)=>{if($.type!=="brace")return!1;if($.invalid===!0||$.dollar)return!0;if($.commas>>0+$.ranges>>0===0)return $.invalid=!0,!0;if($.open!==!0||$.close!==!0)return $.invalid=!0,!0;return!1};q4.isOpenOrClose=($)=>{if($.type==="open"||$.type==="close")return!0;return $.open===!0||$.close===!0};q4.reduce=($)=>$.reduce((J,Z)=>{if(Z.type==="text")J.push(Z.value);if(Z.type==="range")Z.type="text";return J},[]);q4.flatten=(...$)=>{let J=[],Z=(Y)=>{for(let K=0;K<Y.length;K++){let Q=Y[K];if(Array.isArray(Q)){Z(Q);continue}if(Q!==void 0)J.push(Q)}return J};return Z($),J}});var L9=p((Gw,gK)=>{var hK=R9();gK.exports=($,J={})=>{let Z=(Y,K={})=>{let Q=J.escapeInvalid&&hK.isInvalidBrace(K),V=Y.invalid===!0&&J.escapeInvalid===!0,X="";if(Y.value){if((Q||V)&&hK.isOpenOrClose(Y))return"\\"+Y.value;return Y.value}if(Y.value)return Y.value;if(Y.nodes)for(let W of Y.nodes)X+=Z(W);return X};return Z($)}});var mK=p((Xw,fK)=>{/*!
2
+ import{$k as yJ,Al as uX,Bk as KH,Bl as dX,Ck as QH,Cl as Y1,Dl as R$,Ek as qZ,Fk as FZ,Gk as pG,Jk as RZ,Kk as Q1,Lk as M8,Mk as d7,Nk as LZ,Ok as NZ,Pk as FX,Qk as IX,Rk as AX,Sk as SX,Tk as wX,Uk as fV,Vk as xV,Xj as P$,Xk as E$,Yk as VH,Zk as GH,al as TX,bl as kX,ck as Xq,cl as EX,dk as GV,ek as H7,el as a_,ik as J1,il as VX,jl as xX,kk as F0,lk as IJ,mk as f2,ml as L1,ol as z2,pk as b0,pl as WH,qk as z8,rl as B1,tk as kK,tl as k0,uk as EK,vk as R1,wk as EV,yk as D6,zk as YH}from"./chunk-pvpy9kq1.js";import{El as g9}from"./chunk-wpajh5s5.js";import{Rl as PG,Sl as bH,Vl as V0,Wl as e$,Xl as $1,Yl as JJ,bm as z$,cm as BJ,fm as U2,lm as H$,mm as i,om as O1}from"./chunk-2ec6ps8r.js";import{qm as C9,rm as f6,sm as S1,tm as XJ,xm as Z0}from"./chunk-gj3hzx3d.js";import{An as t0,Bn as i$,Cn as e0,Dn as b2,En as WX,Fm as XX,Gn as G$,In as _0,Jn as NJ,Ln as $Z,Rn as h7,co as m1,do as O8,en as f1}from"./chunk-nj4d554m.js";import{mp as g6}from"./chunk-fqw4y7x0.js";import{Gp as ZZ,Hp as vV}from"./chunk-nt4e3em9.js";import{Jp as r8,Yp as e}from"./chunk-a0v55ywn.js";import{$p as U1,Zp as YZ}from"./chunk-v965rsr8.js";import{aq as T2}from"./chunk-1sgby720.js";import{bq as x$}from"./chunk-dcvatax2.js";import{$r as ZH}from"./chunk-m02zt1a3.js";import{js as HZ}from"./chunk-sn4nez18.js";import{Bs as G2,Cs as $V,Is as v1,Js as X2}from"./chunk-4qqkqrn9.js";import{qt as l9}from"./chunk-12bssxd4.js";import{st as BH}from"./chunk-z8r65yw3.js";import{At as eU,Bt as $H,Dt as q9,Zt as jK,au as WZ,ju as D0,nu as H8,ou as f$,pu as k$,tt as E2,wt as d9,xt as tU,yu as O$}from"./chunk-3szwfy7w.js";import{Du as MH,Hu as B9,Ku as h9,Nu as y2,Ou as $$,Su as O0,zu as qG}from"./chunk-whxjkz9a.js";import{Uu as F}from"./chunk-k309zez0.js";import{AP as eQ,HG as xH,IF as H0,PI as G,RC as JH,RO as IU,SO as EG,UC as p1,VO as AU,XO as _Z,YF as UJ,ZD as D$,cK as Z8,gP as HJ,jE as h2,mG as f,oP as l$,pO as F$,tG as EH,uF as n0,wK as b1,yK as kG}from"./chunk-snm5q21k.js";import{VP as k3}from"./chunk-xpc2zgj7.js";import{$P as A9,aQ as p,bQ as o$,dQ as u0,eQ as S9,fQ as w9}from"./chunk-aztre27e.js";var wK=p((pS,P9)=>{function FK($){return Array.isArray($)?$:[$]}var w_=void 0,d6="",OK=" ",u6="\\",R_=/^\s+$/,L_=/(?:[^\\]|^)\\$/,N_=/^\\!/,y_=/^\\#/,T_=/\r?\n/g,k_=/^\.{0,2}\/|^\.{1,2}$/,E_=/\/$/,WJ="/",zK="node-ignore";if(typeof Symbol<"u")zK=Symbol.for("node-ignore");var CK=zK,jJ=($,J,Z)=>{return Object.defineProperty($,J,{value:Z}),Z},x_=/([0-z])-([0-z])/g,MK=()=>!1,b_=($)=>$.replace(x_,(J,Z,Y)=>Z.charCodeAt(0)<=Y.charCodeAt(0)?J:d6),v_=($)=>{let{length:J}=$;return $.slice(0,J-J%2)},h_=[[/^\uFEFF/,()=>d6],[/((?:\\\\)*?)(\\?\s+)$/,($,J,Z)=>J+(Z.indexOf("\\")===0?OK:d6)],[/(\\+?)\s/g,($,J)=>{let{length:Z}=J;return J.slice(0,Z-Z%2)+OK}],[/[\\$.|*+(){^]/g,($)=>`\\${$}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,($,J,Z)=>J+6<Z.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,($,J,Z)=>{let Y=Z.replace(/\\\*/g,"[^\\/]*");return J+Y}],[/\\\\\\(?=[$.|*+(){^])/g,()=>u6],[/\\\\/g,()=>u6],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,($,J,Z,Y,K)=>J===u6?`\\[${Z}${v_(Y)}${K}`:K==="]"?Y.length%2===0?`[${b_(Z)}${Y}]`:"[]":"[]"],[/(?:[^*])$/,($)=>/\/$/.test($)?`${$}$`:`${$}(?=$|\\/$)`]],g_=/(^|\\\/)?\\\*$/,Y8="regex",M9="checkRegex",qK="_",f_={[Y8]($,J){return`${J?`${J}[^/]+`:"[^/]*"}(?=$|\\/$)`},[M9]($,J){return`${J?`${J}[^/]*`:"[^/]*"}(?=$|\\/$)`}},m_=($)=>h_.reduce((J,[Z,Y])=>J.replace(Z,Y.bind($)),$),D9=($)=>typeof $==="string",u_=($)=>$&&D9($)&&!R_.test($)&&!L_.test($)&&$.indexOf("#")!==0,d_=($)=>$.split(T_).filter(Boolean);class DK{constructor($,J,Z,Y,K,Q){this.pattern=$,this.mark=J,this.negative=K,jJ(this,"body",Z),jJ(this,"ignoreCase",Y),jJ(this,"regexPrefix",Q)}get regex(){let $=qK+Y8;if(this[$])return this[$];return this._make(Y8,$)}get checkRegex(){let $=qK+M9;if(this[$])return this[$];return this._make(M9,$)}_make($,J){let Z=this.regexPrefix.replace(g_,f_[$]),Y=this.ignoreCase?new RegExp(Z,"i"):new RegExp(Z);return jJ(this,J,Y)}}var p_=({pattern:$,mark:J},Z)=>{let Y=!1,K=$;if(K.indexOf("!")===0)Y=!0,K=K.substr(1);K=K.replace(N_,"!").replace(y_,"#");let Q=m_(K);return new DK($,J,K,Z,Y,Q)};class PK{constructor($){this._ignoreCase=$,this._rules=[]}_add($){if($&&$[CK]){this._rules=this._rules.concat($._rules._rules),this._added=!0;return}if(D9($))$={pattern:$};if(u_($.pattern)){let J=p_($,this._ignoreCase);this._added=!0,this._rules.push(J)}}add($){return this._added=!1,FK(D9($)?d_($):$).forEach(this._add,this),this._added}test($,J,Z){let Y=!1,K=!1,Q;this._rules.forEach((X)=>{let{negative:W}=X;if(K===W&&Y!==K||W&&!Y&&!K&&!J)return;if(!X[Z].test($))return;Y=!W,K=W,Q=W?w_:X});let V={ignored:Y,unignored:K};if(Q)V.rule=Q;return V}}var c_=($,J)=>{throw new J($)},h1=($,J,Z)=>{if(!D9($))return Z(`path must be a string, but got \`${J}\``,TypeError);if(!$)return Z("path must not be empty",TypeError);if(h1.isNotRelative($))return Z(`path should be a \`path.relative()\`d string, but got "${J}"`,RangeError);return!0},IK=($)=>k_.test($);h1.isNotRelative=IK;h1.convert=($)=>$;class AK{constructor({ignorecase:$=!0,ignoreCase:J=$,allowRelativePaths:Z=!1}={}){jJ(this,CK,!0),this._rules=new PK(J),this._strictPathCheck=!Z,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add($){if(this._rules.add($))this._initCache();return this}addPattern($){return this.add($)}_test($,J,Z,Y){let K=$&&h1.convert($);return h1(K,$,this._strictPathCheck?c_:MK),this._t(K,J,Z,Y)}checkIgnore($){if(!E_.test($))return this.test($);let J=$.split(WJ).filter(Boolean);if(J.pop(),J.length){let Z=this._t(J.join(WJ)+WJ,this._testCache,!0,J);if(Z.ignored)return Z}return this._rules.test($,!1,M9)}_t($,J,Z,Y){if($ in J)return J[$];if(!Y)Y=$.split(WJ).filter(Boolean);if(Y.pop(),!Y.length)return J[$]=this._rules.test($,Z,Y8);let K=this._t(Y.join(WJ)+WJ,J,Z,Y);return J[$]=K.ignored?K:this._rules.test($,Z,Y8)}ignores($){return this._test($,this._ignoreCache,!1).ignored}createFilter(){return($)=>!this.ignores($)}filter($){return FK($).filter(this.createFilter())}test($){return this._test($,this._testCache,!0)}}var p6=($)=>new AK($),l_=($)=>h1($&&h1.convert($),$,MK),SK=()=>{let $=(Z)=>/^\\\\\?\\/.test(Z)||/["<>|\u0000-\u001F]+/u.test(Z)?Z:Z.replace(/\\/g,"/");h1.convert=$;let J=/^[a-z]:\//i;h1.isNotRelative=(Z)=>J.test(Z)||IK(Z)};if(typeof process<"u"&&process.platform==="win32")SK();P9.exports=p6;p6.default=p6;P9.exports.isPathValid=l_;jJ(P9.exports,Symbol.for("setupWindows"),SK)});var R9=p((q4)=>{q4.isInteger=($)=>{if(typeof $==="number")return Number.isInteger($);if(typeof $==="string"&&$.trim()!=="")return Number.isInteger(Number($));return!1};q4.find=($,J)=>$.nodes.find((Z)=>Z.type===J);q4.exceedsLimit=($,J,Z=1,Y)=>{if(Y===!1)return!1;if(!q4.isInteger($)||!q4.isInteger(J))return!1;return(Number(J)-Number($))/Number(Z)>=Y};q4.escapeNode=($,J=0,Z)=>{let Y=$.nodes[J];if(!Y)return;if(Z&&Y.type===Z||Y.type==="open"||Y.type==="close"){if(Y.escaped!==!0)Y.value="\\"+Y.value,Y.escaped=!0}};q4.encloseBrace=($)=>{if($.type!=="brace")return!1;if($.commas>>0+$.ranges>>0===0)return $.invalid=!0,!0;return!1};q4.isInvalidBrace=($)=>{if($.type!=="brace")return!1;if($.invalid===!0||$.dollar)return!0;if($.commas>>0+$.ranges>>0===0)return $.invalid=!0,!0;if($.open!==!0||$.close!==!0)return $.invalid=!0,!0;return!1};q4.isOpenOrClose=($)=>{if($.type==="open"||$.type==="close")return!0;return $.open===!0||$.close===!0};q4.reduce=($)=>$.reduce((J,Z)=>{if(Z.type==="text")J.push(Z.value);if(Z.type==="range")Z.type="text";return J},[]);q4.flatten=(...$)=>{let J=[],Z=(Y)=>{for(let K=0;K<Y.length;K++){let Q=Y[K];if(Array.isArray(Q)){Z(Q);continue}if(Q!==void 0)J.push(Q)}return J};return Z($),J}});var L9=p((Gw,gK)=>{var hK=R9();gK.exports=($,J={})=>{let Z=(Y,K={})=>{let Q=J.escapeInvalid&&hK.isInvalidBrace(K),V=Y.invalid===!0&&J.escapeInvalid===!0,X="";if(Y.value){if((Q||V)&&hK.isOpenOrClose(Y))return"\\"+Y.value;return Y.value}if(Y.value)return Y.value;if(Y.nodes)for(let W of Y.nodes)X+=Z(W);return X};return Z($)}});var mK=p((Xw,fK)=>{/*!
3
3
  * is-number <https://github.com/jonschlinkert/is-number>
4
4
  *
5
5
  * Copyright (c) 2014-present, Jon Schlinkert.
@@ -7204,7 +7204,7 @@ For full type signatures, all available fields, and more examples:
7204
7204
  - Cannot modify the permission system
7205
7205
  - Tool output truncated at 50KB / 2000 lines
7206
7206
  - Prefer small, composable extensions over monolithic ones
7207
- `}}}catch($){if($ instanceof ReferenceError)return jV();throw $}}var Oq=_q(),qq=O$.create({service:"skill.builtin"}),HV=G.fn("Skill.extractBuiltinBundle")(function*($){let J=UV.join(H8.data,"builtin_skills",E2),Z=UV.join(J,".extracted");return yield*m9({fsys:$,bundle:Oq,root:J,marker:Z,markerContent:E2,skipIfPresent:!d9,onExtracted:(Y)=>qq.info("extracted builtin skills",{root:Y})})});var B8=O$.create({service:"skill"}),Cq=[".claude",".agents",".codex",".opencode"],BV="skills/**/SKILL.md",Mq="{skill,skills}/**/SKILL.md",p9="**/SKILL.md",_V=F.object({name:F.string(),description:F.string(),location:F.string(),content:F.string(),hidden:F.boolean().optional()}),Dq=l9.create("SkillInvalidError",F.object({path:F.string(),message:F.string().optional(),issues:F.custom().optional()})),Pq=l9.create("SkillNameMismatchError",F.object({path:F.string(),expected:F.string(),actual:F.string()})),Iq=G.fnUntraced(function*($,J,Z){let Y=yield*G.tryPromise({try:()=>H7.parse(J),catch:(Q)=>Q}).pipe(G.catch(G.fnUntraced(function*(Q){let V=H7.FrontmatterError.isInstance(Q)?Q.data.message:`Failed to parse skill ${J}`,{Session:X}=yield*G.promise(()=>import("./chunk-zervk6c5.js"));yield*Z.publish(X.Event.Error,{error:new l9.Unknown({message:V}).toObject()}),B8.error("failed to load skill",{skill:J,err:Q});return})));if(!Y)return;let K=_V.pick({name:!0,description:!0,hidden:!0}).safeParse(Y.data);if(!K.success)return;if($.skills[K.data.name])B8.warn("duplicate skill name",{name:K.data.name,existing:$.skills[K.data.name].location,duplicate:J});$.dirs.add(zJ.dirname(J)),$.skills[K.data.name]={name:K.data.name,description:K.data.description,location:J,content:Y.content,hidden:K.data.hidden}}),x2=G.fnUntraced(function*($,J,Z,Y){let K=yield*G.tryPromise({try:()=>y2.scan(Z,{cwd:J,absolute:!0,include:"file",symlink:!0,dot:Y?.dot}),catch:(Q)=>Q}).pipe(G.catch((Q)=>{if(!Y?.scope)return G.die(Q);return B8.error(`failed to scan ${Y.scope} skills`,{dir:J,error:Q}),G.succeed([])}));for(let Q of K)$.matches.add(Q),$.dirs.add(zJ.dirname(Q))}),Aq=G.fnUntraced(function*($,J,Z,Y,K){let Q={matches:new Set,dirs:new Set};if(!k$.QITQODE_DISABLE_BUILTIN_SKILLS){let W=yield*HV(Z).pipe(G.catch(()=>G.succeed(void 0)));if(W&&(yield*Z.isDir(W)))yield*x2(Q,W,p9,{scope:"builtin"})}if(!k$.QITQODE_DISABLE_COMPOSE_SKILLS){let W=yield*WV(Z).pipe(G.catch(()=>G.succeed(void 0)));if(W&&(yield*Z.isDir(W)))yield*x2(Q,W,p9,{scope:"compose"})}if(!k$.QITQODE_DISABLE_EXTERNAL_SKILLS){let W=Cq.filter((j)=>{if(j===".claude"&&k$.QITQODE_DISABLE_CLAUDE_CODE_SKILLS)return!1;if(j===".codex"&&k$.QITQODE_DISABLE_CODEX_SKILLS)return!1;if(j===".opencode"&&k$.QITQODE_DISABLE_OPENCODE_SKILLS)return!1;return!0});for(let j of W){let _=zJ.join(f$.Path.home,j);if(!(yield*Z.isDir(_)))continue;yield*x2(Q,_,BV,{dot:!0,scope:"global"})}let B=yield*Z.up({targets:W,start:Y,stop:K}).pipe(G.catch(()=>G.succeed([])));for(let j of B)yield*x2(Q,j,BV,{dot:!0,scope:"project"})}let V=yield*$.directories();for(let W of V)yield*x2(Q,W,Mq);let X=yield*$.get();for(let W of X.skills?.paths??[]){let B=W.startsWith("~/")?zJ.join(Fq.homedir(),W.slice(2)):W,j=zJ.isAbsolute(B)?B:zJ.join(Y,B);if(!(yield*Z.isDir(j))){B8.warn("skill path not found",{path:j});continue}yield*x2(Q,j,p9)}for(let W of X.skills?.urls??[]){let B=yield*J.pull(W);for(let j of B)yield*x2(Q,j,p9)}return{matches:Array.from(Q.matches),dirs:Array.from(Q.dirs)}}),Sq=G.fnUntraced(function*($,J,Z){yield*G.forEach(J.matches,(Y)=>Iq($,Y,Z),{concurrency:16,discard:!0}),B8.info("init",{count:Object.keys($.skills).length})});class c9 extends D$.Service()("@qitqode/Skill"){}var OV=f.effect(c9,G.gen(function*(){let $=yield*FJ.Service,J=yield*R$.Service,Z=yield*P$.Service,Y=yield*$$.Service,K=yield*i.make(G.fn("Skill.discovery")(function*(_){return yield*Aq(J,$,Y,_.directory,_.worktree)})),Q=yield*i.make(G.fn("Skill.state")(function*(_){let q={skills:{},dirs:new Set};return yield*Sq(q,yield*i.get(K),Z),q})),V=G.fn("Skill.get")(function*(_){return(yield*i.get(Q)).skills[_]}),X=G.fn("Skill.all")(function*(){let _=yield*i.get(Q);return Object.values(_.skills)}),W=G.fn("Skill.dirs")(function*(){return(yield*i.get(K)).dirs}),B=G.fn("Skill.available")(function*(_){let q=yield*i.get(Q),H=Object.values(q.skills).filter((C)=>!C.hidden);if(H=H.toSorted((C,M)=>C.name.localeCompare(M.name)),!_)return H;return H.filter((C)=>E$.evaluate("skill",C.name,_.permission).action!=="deny")}),j=G.fn("Skill.reload")(function*(){yield*i.invalidate(K),yield*i.invalidate(Q)});return c9.of({get:V,all:X,dirs:W,available:B,reload:j})})),wq=OV.pipe(f.provide(FJ.defaultLayer),f.provide(R$.defaultLayer),f.provide(P$.layer),f.provide($$.defaultLayer));function Rq($,J){if($.length===0)return"No skills are currently available.";if(J.verbose)return["<available_skills>",...$.sort((Z,Y)=>Z.name.localeCompare(Y.name)).flatMap((Z)=>[" <skill>",` <name>${Z.name}</name>`,` <description>${Z.description}</description>`,` <location>${zq(Z.location).href}</location>`," </skill>"]),"</available_skills>"].join(`
7207
+ `}}}catch($){if($ instanceof ReferenceError)return jV();throw $}}var Oq=_q(),qq=O$.create({service:"skill.builtin"}),HV=G.fn("Skill.extractBuiltinBundle")(function*($){let J=UV.join(H8.data,"builtin_skills",E2),Z=UV.join(J,".extracted");return yield*m9({fsys:$,bundle:Oq,root:J,marker:Z,markerContent:E2,skipIfPresent:!d9,onExtracted:(Y)=>qq.info("extracted builtin skills",{root:Y})})});var B8=O$.create({service:"skill"}),Cq=[".claude",".agents",".codex",".opencode"],BV="skills/**/SKILL.md",Mq="{skill,skills}/**/SKILL.md",p9="**/SKILL.md",_V=F.object({name:F.string(),description:F.string(),location:F.string(),content:F.string(),hidden:F.boolean().optional()}),Dq=l9.create("SkillInvalidError",F.object({path:F.string(),message:F.string().optional(),issues:F.custom().optional()})),Pq=l9.create("SkillNameMismatchError",F.object({path:F.string(),expected:F.string(),actual:F.string()})),Iq=G.fnUntraced(function*($,J,Z){let Y=yield*G.tryPromise({try:()=>H7.parse(J),catch:(Q)=>Q}).pipe(G.catch(G.fnUntraced(function*(Q){let V=H7.FrontmatterError.isInstance(Q)?Q.data.message:`Failed to parse skill ${J}`,{Session:X}=yield*G.promise(()=>import("./chunk-rc9ex3vt.js"));yield*Z.publish(X.Event.Error,{error:new l9.Unknown({message:V}).toObject()}),B8.error("failed to load skill",{skill:J,err:Q});return})));if(!Y)return;let K=_V.pick({name:!0,description:!0,hidden:!0}).safeParse(Y.data);if(!K.success)return;if($.skills[K.data.name])B8.warn("duplicate skill name",{name:K.data.name,existing:$.skills[K.data.name].location,duplicate:J});$.dirs.add(zJ.dirname(J)),$.skills[K.data.name]={name:K.data.name,description:K.data.description,location:J,content:Y.content,hidden:K.data.hidden}}),x2=G.fnUntraced(function*($,J,Z,Y){let K=yield*G.tryPromise({try:()=>y2.scan(Z,{cwd:J,absolute:!0,include:"file",symlink:!0,dot:Y?.dot}),catch:(Q)=>Q}).pipe(G.catch((Q)=>{if(!Y?.scope)return G.die(Q);return B8.error(`failed to scan ${Y.scope} skills`,{dir:J,error:Q}),G.succeed([])}));for(let Q of K)$.matches.add(Q),$.dirs.add(zJ.dirname(Q))}),Aq=G.fnUntraced(function*($,J,Z,Y,K){let Q={matches:new Set,dirs:new Set};if(!k$.QITQODE_DISABLE_BUILTIN_SKILLS){let W=yield*HV(Z).pipe(G.catch(()=>G.succeed(void 0)));if(W&&(yield*Z.isDir(W)))yield*x2(Q,W,p9,{scope:"builtin"})}if(!k$.QITQODE_DISABLE_COMPOSE_SKILLS){let W=yield*WV(Z).pipe(G.catch(()=>G.succeed(void 0)));if(W&&(yield*Z.isDir(W)))yield*x2(Q,W,p9,{scope:"compose"})}if(!k$.QITQODE_DISABLE_EXTERNAL_SKILLS){let W=Cq.filter((j)=>{if(j===".claude"&&k$.QITQODE_DISABLE_CLAUDE_CODE_SKILLS)return!1;if(j===".codex"&&k$.QITQODE_DISABLE_CODEX_SKILLS)return!1;if(j===".opencode"&&k$.QITQODE_DISABLE_OPENCODE_SKILLS)return!1;return!0});for(let j of W){let _=zJ.join(f$.Path.home,j);if(!(yield*Z.isDir(_)))continue;yield*x2(Q,_,BV,{dot:!0,scope:"global"})}let B=yield*Z.up({targets:W,start:Y,stop:K}).pipe(G.catch(()=>G.succeed([])));for(let j of B)yield*x2(Q,j,BV,{dot:!0,scope:"project"})}let V=yield*$.directories();for(let W of V)yield*x2(Q,W,Mq);let X=yield*$.get();for(let W of X.skills?.paths??[]){let B=W.startsWith("~/")?zJ.join(Fq.homedir(),W.slice(2)):W,j=zJ.isAbsolute(B)?B:zJ.join(Y,B);if(!(yield*Z.isDir(j))){B8.warn("skill path not found",{path:j});continue}yield*x2(Q,j,p9)}for(let W of X.skills?.urls??[]){let B=yield*J.pull(W);for(let j of B)yield*x2(Q,j,p9)}return{matches:Array.from(Q.matches),dirs:Array.from(Q.dirs)}}),Sq=G.fnUntraced(function*($,J,Z){yield*G.forEach(J.matches,(Y)=>Iq($,Y,Z),{concurrency:16,discard:!0}),B8.info("init",{count:Object.keys($.skills).length})});class c9 extends D$.Service()("@qitqode/Skill"){}var OV=f.effect(c9,G.gen(function*(){let $=yield*FJ.Service,J=yield*R$.Service,Z=yield*P$.Service,Y=yield*$$.Service,K=yield*i.make(G.fn("Skill.discovery")(function*(_){return yield*Aq(J,$,Y,_.directory,_.worktree)})),Q=yield*i.make(G.fn("Skill.state")(function*(_){let q={skills:{},dirs:new Set};return yield*Sq(q,yield*i.get(K),Z),q})),V=G.fn("Skill.get")(function*(_){return(yield*i.get(Q)).skills[_]}),X=G.fn("Skill.all")(function*(){let _=yield*i.get(Q);return Object.values(_.skills)}),W=G.fn("Skill.dirs")(function*(){return(yield*i.get(K)).dirs}),B=G.fn("Skill.available")(function*(_){let q=yield*i.get(Q),H=Object.values(q.skills).filter((C)=>!C.hidden);if(H=H.toSorted((C,M)=>C.name.localeCompare(M.name)),!_)return H;return H.filter((C)=>E$.evaluate("skill",C.name,_.permission).action!=="deny")}),j=G.fn("Skill.reload")(function*(){yield*i.invalidate(K),yield*i.invalidate(Q)});return c9.of({get:V,all:X,dirs:W,available:B,reload:j})})),wq=OV.pipe(f.provide(FJ.defaultLayer),f.provide(R$.defaultLayer),f.provide(P$.layer),f.provide($$.defaultLayer));function Rq($,J){if($.length===0)return"No skills are currently available.";if(J.verbose)return["<available_skills>",...$.sort((Z,Y)=>Z.name.localeCompare(Y.name)).flatMap((Z)=>[" <skill>",` <name>${Z.name}</name>`,` <description>${Z.description}</description>`,` <location>${zq(Z.location).href}</location>`," </skill>"]),"</available_skills>"].join(`
7208
7208
  `);return["## Available Skills",...$.toSorted((Z,Y)=>Z.name.localeCompare(Y.name)).map((Z)=>`- **${Z.name}**: ${Z.description}`)].join(`
7209
7209
  `)}var g1={};o$(g1,{layer:()=>SV,defaultLayer:()=>gq,Service:()=>s9});import AV from"path";import hq from"os";import*as CJ from"fs/promises";import DV from"path";var q0=b2("memory_fts",{id:t0().primaryKey({autoIncrement:!0}),path:i$().notNull().unique(),scope:i$().notNull(),scope_id:i$().notNull().default(""),type:i$().notNull(),body:i$().notNull(),fingerprint:i$().notNull(),last_indexed_at:t0().notNull()},($)=>[e0("memory_fts_scope_idx").on($.scope,$.scope_id),e0("memory_fts_type_idx").on($.type)]);var Lq=["feedback","project","reference","user"],Nq=[{match:/^memory$/i,type:"memory"},{match:/^memory-/i,type:"memory"},{match:/^checkpoint$/,type:"checkpoint"},{match:/^checkpoint-/,type:"checkpoint"},{match:/^tasks\/[^/]+\/progress$/,type:"progress"},{match:/^tasks\/[^/]+\/notes$/,type:"notes"}];function yq($){for(let J of Nq)if(J.match.test($))return J.type;return"free"}function qV($){let Z=$.replaceAll("\\","/").match(/\/memory\/(global|projects|sessions)(?:\/([^/]+))?\/(.+)\.md$/);if(!Z)return null;let[,Y,K,Q]=Z,V=Y==="global"?"":K??"",X=Q;return{scope:Y,scope_id:V,type:yq(X),key:X}}var Tq=/\/\.claude\/projects\/([^/]+)\/memory\/(.+)\.md$/;function FV($){let J=$.replaceAll("\\","/").match(Tq);if(!J)return null;let[,Z,Y]=J;return{scope:"cc",scope_id:Z,type:"free",key:Y}}var kq=/^---\n([\s\S]*?)\n---\n/,Eq=/^[ \t]+type:[ \t]*(\w+)[ \t]*$/m;function zV($){let J=$.match(kq);if(!J)return null;let Y=J[1].match(Eq);if(!Y)return null;let K=Y[1];return Lq.includes(K)?K:null}var CV=O$.create({service:"memory.reconcile"});async function PV($){let J=[];async function Z(Y){let K=await CJ.readdir(Y,{withFileTypes:!0}).catch((Q)=>{if(Q.code==="ENOENT")return[];throw Q});for(let Q of K){let V=DV.join(Y,Q.name);if(Q.isDirectory())await Z(V);else if(Q.isFile()&&V.endsWith(".md"))J.push(V)}}return await Z($),J}async function xq($){let J=await CJ.readdir($,{withFileTypes:!0}).catch((Y)=>{if(Y.code==="ENOENT")return[];throw Y}),Z=[];for(let Y of J){if(!Y.isDirectory())continue;let K=DV.join($,Y.name,"memory");if(!await CJ.stat(K).then(()=>!0).catch(()=>!1))continue;let V=await PV(K);for(let X of V)Z.push(X)}return Z}async function MV($,J,Z,Y){let K=await CJ.stat($).catch((W)=>{if(W.code==="ENOENT")return null;throw W});if(!K)return"skipped";let Q=`${K.size}-${K.mtimeMs}`;if(Y===Q)return"hit";let V=await Bun.file($).text(),X=Z==="cc"?zV(V)??"free":J.type;return z$.use((W)=>W.insert(q0).values({path:$,scope:J.scope,scope_id:J.scope_id,type:X,body:V,fingerprint:Q,last_indexed_at:Date.now()}).onConflictDoUpdate({target:q0.path,set:{scope:J.scope,scope_id:J.scope_id,type:X,body:V,fingerprint:Q,last_indexed_at:Date.now()}}).run()),"updated"}async function B7($){let J=new Set(await PV($.qode)),Z=$.cc?new Set(await xq($.cc)):new Set,Y=new Set([...J,...Z]),K=new Map(z$.use((X)=>X.select({path:q0.path,fingerprint:q0.fingerprint}).from(q0).all()).map((X)=>[X.path,X.fingerprint])),Q=0;for(let X of K.keys())if(!Y.has(X))z$.use((W)=>W.delete(q0).where(G$(q0.path,X)).run()),Q++;let V=0;for(let X of J){let W=qV(X);if(!W){CV.warn("path outside memory layout, skipping",{path:X});continue}if(await MV(X,W,"qode",K.get(X))==="updated")V++}for(let X of Z){let W=FV(X);if(!W){CV.warn("CC path failed to parse, skipping",{path:X});continue}if(await MV(X,W,"cc",K.get(X))==="updated")V++}return{indexed:V,pruned:Q}}function o9($,J){let Z=$.match(/[\p{L}\p{N}_]+/gu)?.map((K)=>K.trim()).filter(Boolean)??[];if(Z.length===0)return null;return Z.map((K)=>`"${K.replaceAll('"',"")}"`).join(` ${J} `)}function IV($){return o9($,"OR")}var bq=64,vq=8,r9=4096;function i9($){let J=z$.Client().$client,Z=$.conditions.length>0?`WHERE ${$.conditions.join(" AND ")}`:"",Y=`
7210
7210
  WITH matched(fts_rowid, fts_score) AS (
@@ -7581,7 +7581,7 @@ IMPORTANT: The following identifiers already exist and must NOT be used: ${H.map
7581
7581
  ${F.prettifyError(J)}`;return`The ${$} tool was called with invalid arguments: ${J}.
7582
7582
  Please rewrite the input so it satisfies the expected schema.`}function SA($,J,Z,Y){return()=>G.gen(function*(){let K=typeof J==="function"?{...yield*J()}:{...J},Q=K.execute;return K.execute=(V,X)=>{let W={"tool.name":$,"session.id":X.sessionID,"message.id":X.messageID,...X.callID?{"tool.call_id":X.callID}:{}};return IA.info("tool call started",{...W}),G.gen(function*(){yield*G.try({try:()=>K.parameters.parse(V),catch:(q)=>{if(q instanceof F.ZodError&&K.formatValidationError)return new E0(K.formatValidationError(q),{cause:q});return new E0(AA($,q),{cause:q})}});let B=yield*K.timeout?Q(V,X).pipe(G.timeoutOrElse({duration:h2.millis(K.timeout),orElse:()=>G.die(new E0(`The ${$} tool timed out after ${K.timeout} ms. If this operation is expected to take longer, retry with a larger timeout value.`))})):Q(V,X);if(B.metadata.truncated!==void 0)return B;let j=yield*Y.get(X.agent),_=yield*Z.output(B.output,{},j);return{...B,output:_.content,metadata:{...B.metadata,truncated:_.truncated,..._.truncated&&{outputPath:_.outputPath}}}}).pipe(G.orDie,G.withSpan("Tool.execute",{attributes:W}))},K})}function B$($,J){return Object.assign(G.gen(function*(){let Z=yield*J,Y=yield*Z1,K=yield*p0.Service;return{id:$,init:SA($,Z,Y,K)}}),{id:$})}function n$($){return G.gen(function*(){return{...yield*$.init(),id:$.id}})}import QJ from"path";import{fileURLToPath as _H}from"url";var KJ={};o$(KJ,{preferred:()=>vA,posix:()=>bA,name:()=>i8,login:()=>xA,killTree:()=>yA,gitbash:()=>y3,acceptable:()=>hA,Shell:()=>KJ});import I6 from"path";import{spawn as wA}from"child_process";import{setTimeout as jH}from"timers/promises";var UH=200,RA=new Set(["fish","nu"]),LA=new Set(["bash","dash","fish","ksh","sh","zsh"]),NA=new Set(["bash","dash","ksh","sh","zsh"]);async function yA($,J){let Z=$.pid;if(!Z||J?.exited?.())return;if(process.platform==="win32"){await new Promise((Y)=>{let K=wA("taskkill",["/pid",String(Z),"/f","/t"],{stdio:"ignore",windowsHide:!0});K.once("exit",()=>Y()),K.once("error",()=>Y())});return}try{if(process.kill(-Z,"SIGTERM"),await jH(UH),!J?.exited?.())process.kill(-Z,"SIGKILL")}catch(Y){if($.kill("SIGTERM"),await jH(UH),!J?.exited?.())$.kill("SIGKILL")}}function TA($){if(process.platform!=="win32")return $;let J=O0.windowsPath($);if(I6.win32.dirname(J)!=="."){if(J.startsWith("/")&&i8(J)==="bash")return y3()||J;return J}return x$(J)||J}function kA(){let $=x$("pwsh.exe");if($)return $;let J=x$("powershell.exe");if(J)return J}function HH($,J){if($&&(!J?.acceptable||!RA.has(i8($))))return TA($);if(process.platform==="win32"){let Z=kA();if(Z)return Z}return EA()}function y3(){if(process.platform!=="win32")return;if(k$.QITQODE_GIT_BASH_PATH)return k$.QITQODE_GIT_BASH_PATH;let $=x$("git");if(!$)return;let J=I6.join($,"..","..","bin","bash.exe");if(O0.stat(J)?.size)return J}function EA(){if(process.platform==="win32"){let J=y3();if(J)return J;return process.env.COMSPEC||"cmd.exe"}if(process.platform==="darwin")return"/bin/zsh";let $=x$("bash");if($)return $;return"/bin/sh"}function i8($){if(process.platform==="win32")return I6.win32.parse(O0.windowsPath($)).name.toLowerCase();return I6.basename($).toLowerCase()}function xA($){return LA.has(i8($))}function bA($){return NA.has(i8($))}var vA=T2(()=>HH(process.env.SHELL)),hA=T2(()=>HH(process.env.SHELL,{acceptable:!0}));var s8={};o$(s8,{prefixWith:()=>gA,BashArity:()=>s8});function gA($,J){return BH.bashPrefixWith($,J)}var OH=30000,dA=k$.QITQODE_EXPERIMENTAL_BASH_DEFAULT_TIMEOUT_MS||120000,DH=new Set(["powershell","pwsh"]),PH=new Set(["cd","push-location","set-location"]),pA=new Set([...PH,"rm","cp","mv","mkdir","touch","chmod","chown","cat","get-content","set-content","add-content","copy-item","move-item","remove-item","new-item","rename-item"]),cA=new Set(["-destination","-literalpath","-path"]),lA=new Set(["-confirm","-debug","-force","-nonewline","-recurse","-verbose","-whatif"]),x3=O$.create({service:"bash-tool"}),T3=($)=>{if($.startsWith("file://"))return _H($);if($.startsWith("/")||/^[a-z]:/i.test($))return $;let J=new URL($,import.meta.url);return _H(J)};function oA($){let J=[];for(let Z=0;Z<$.childCount;Z++){let Y=$.child(Z);if(!Y)continue;if(Y.type==="command_elements"){for(let K=0;K<Y.childCount;K++){let Q=Y.child(K);if(!Q||Q.type==="command_argument_sep"||Q.type==="redirection")continue;J.push({type:Q.type,text:Q.text})}continue}if(Y.type!=="command_name"&&Y.type!=="command_name_expr"&&Y.type!=="word"&&Y.type!=="string"&&Y.type!=="raw_string"&&Y.type!=="concatenation")continue;J.push({type:Y.type,text:Y.text})}return J}function rA($){return($.parent?.type==="redirected_statement"?$.parent.text:$.text).trim()}function iA($){return $.descendantsOfType("command").filter((J)=>Boolean(J))}function IH($){if($.length<2)return $;let J=$[0],Z=$[$.length-1];if((J==='"'||J==="'")&&J===Z)return $.slice(1,-1);return $}function AH($){if($==="~")return E3.homedir();if($.startsWith("~/")||$.startsWith("~\\"))return QJ.join(E3.homedir(),$.slice(2));return $}function qH($){if(process.platform!=="win32")return process.env[$];let J=Object.keys(process.env).find((Z)=>Z.toLowerCase()===$.toLowerCase());return J?process.env[J]:void 0}function sA($,J,Z){let Y=$.toUpperCase();if(Y==="HOME")return E3.homedir();if(Y==="PWD")return J;if(Y==="PSHOME")return QJ.dirname(Z)}function nA($,J,Z){let Y=IH($).replace(/\$\{env:([^}]+)\}/gi,(K,Q)=>qH(Q)||"").replace(/\$env:([A-Za-z_][A-Za-z0-9_]*)/gi,(K,Q)=>qH(Q)||"").replace(/\$(HOME|PWD|PSHOME)(?=$|[\\/])/gi,(K,Q)=>sA(Q,J,Z)||"");return AH(Y)}function aA($){let J=$.match(/^([A-Za-z]+)::(.*)$/);if(J){if(J[1].toLowerCase()!=="filesystem")return;return J[2]}let Z=$.match(/^([A-Za-z]+):(.*)$/);if(!Z)return $;if(Z[1].length===1)return $;return}function tA($,J){if($.startsWith("(")||$.startsWith("@("))return!0;if($.includes("$(")||$.includes("${")||$.includes("`"))return!0;if(J)return/\$(?!env:)/i.test($);return $.includes("$")}function eA($){let J=/[?*[]/.exec($);if(!J)return $;if(J.index===0)return;return $.slice(0,J.index)}function $S($,J){if(!J)return $.slice(1).filter((K)=>!K.text.startsWith("-")&&!($[0]?.text==="chmod"&&K.text.startsWith("+"))).map((K)=>K.text);let Z=[],Y=!1;for(let K of $.slice(1)){if(Y){Z.push(K.text),Y=!1;continue}if(K.type==="command_parameter"){let Q=K.text.toLowerCase();if(lA.has(Q))continue;Y=cA.has(Q);continue}Z.push(K.text)}return Z}function FH($){if($.length<=OH)return $;return`...
7583
7583
 
7584
- `+$.slice(-OH)}var JS=/error|exception|failed|fatal|traceback|panic|exit code/i,zH=Math.floor(u1*0.7),CH=Math.floor(DJ*0.7),ZS=G.fn("BashTool.parse")(function*($,J){let Z=yield*G.promise(()=>QS().then((Y)=>(J?Y.ps:Y.bash).parse($)).catch((Y)=>{return x3.warn("tree-sitter parse of command failed",{error:String(Y)}),null}));if(!Z)throw Error("Failed to parse command");return Z.rootNode}),YS=G.fn("BashTool.ask")(function*($,J){if(J.dirs.size>0){let Z=Array.from(J.dirs).map((Y)=>{if(process.platform==="win32")return $$.normalizePathPattern(QJ.join(Y,"*"));return QJ.join(Y,"*")});yield*$.ask({permission:"external_directory",patterns:Z,always:Z,metadata:{}})}if(J.patterns.size===0)return;yield*$.ask({permission:"bash",patterns:Array.from(J.patterns),always:Array.from(J.always),metadata:{}})});function KS($,J,Z,Y,K){if(process.platform==="win32"&&DH.has(J))return S1.make($,["-NoLogo","-NoProfile","-NonInteractive","-Command",Z],{cwd:Y,env:K,stdin:"ignore",detached:!1});return S1.make(Z,[],{shell:$,cwd:Y,env:K,stdin:"ignore",detached:process.platform!=="win32"})}var QS=T2(async()=>{let{Parser:$}=await import("./chunk-2fhcvfyg.js"),{default:J}=await import("./chunk-ay9p70xx.js",{with:{type:"wasm"}}),Z=T3(J);await $.init({locateFile(){return Z}});let{default:Y}=await import("./chunk-gtzcm5sb.js",{with:{type:"wasm"}}),{default:K}=await import("./chunk-z3qanc8m.js",{with:{type:"wasm"}}),Q=T3(Y),V=T3(K),[X,W]=await Promise.all([k3.load(Q),k3.load(V)]),B=new $;B.setLanguage(X);let j=new $;return j.setLanguage(W),{bash:B,ps:j}}),rU=B$("bash",G.gen(function*(){let $=(yield*e.toolDescriptionEffect("bash"))??"",J=yield*C9,Z=yield*$$.Service,Y=yield*Z1,K=yield*z2.Service,Q=G.fn("BashTool.cygpath")(function*(_,q){let C=(yield*J.lines(S1.make(_,["-lc",'cygpath -w -- "$1"',"_",q])).pipe(G.catch(()=>G.succeed([]))))[0]?.trim();if(!C)return;return $$.normalizePath(C)}),V=G.fn("BashTool.resolvePath")(function*(_,q,H){if(process.platform==="win32"){if(KJ.posix(H)&&_.startsWith("/")&&$$.windowsPath(_)===_){let C=yield*Q(H,_);if(C)return C}return $$.normalizePath(QJ.resolve(q,$$.windowsPath(_)))}return QJ.resolve(q,_)}),X=G.fn("BashTool.argPath")(function*(_,q,H,C){let M=H?nA(_,q,C):AH(IH(_)),I=M&&eA(M);if(!I||tA(I,H))return;let z=H?aA(I):I;if(!z)return;return yield*V(z,q,C)}),W=G.fn("BashTool.collect")(function*(_,q,H,C){let M={dirs:new Set,patterns:new Set,always:new Set},I=yield*G.promise(()=>e.resolveBashArity());for(let z of iA(_)){let P=oA(z),D=P.map((R)=>R.text),L=H?D[0]?.toLowerCase():D[0];if(L&&pA.has(L))for(let R of $S(P,H)){let N=yield*X(R,q,H,C);if(x3.info("resolved path",{arg:R,resolved:N}),!N||H$.containsPath(N))continue;let x=(yield*Z.isDir(N))?N:QJ.dirname(N);M.dirs.add(x)}if(D.length&&(!L||!PH.has(L)))M.patterns.add(rA(z)),M.always.add(s8.prefixWith(I,D).join(" ")+" *")}return M}),B=G.fn("BashTool.shellEnv")(function*(_,q){let H=yield*K.trigger("shell.env",{cwd:q,sessionID:_.sessionID,callID:_.callID},{env:{}});return{...MH(),...H.env}}),j=G.fn("BashTool.run")(function*(_,q){let H=u1,C=DJ,M=H*2,I="",z="",P=[],D=0,L="",R,N=!1,x=!1,b=!1;yield*q.metadata({metadata:{output:"",description:_.description}});let v=yield*G.scoped(G.gen(function*(){let S=yield*J.spawn(KS(_.shell,_.name,_.command,_.cwd,_.env));yield*G.forkScoped(l$.runForEach(l$.decodeText(S.all),(s)=>{let J$=Buffer.byteLength(s,"utf-8");P.push({text:s,size:J$}),D+=J$;while(D>M&&P.length>1){let Z$=P.shift();if(!Z$)break;D-=Z$.size,N=!0}if(z=FH(z+s),L)R?.write(s);else if(I+=s,Buffer.byteLength(I,"utf-8")>H)return Y.write(I).pipe(G.andThen((Z$)=>G.sync(()=>{L=Z$,N=!0,R=fA(Z$,{flags:"a"}),I=""})),G.andThen(q.metadata({metadata:{output:z,description:_.description}})));return q.metadata({metadata:{output:z,description:_.description}})}));let T=G.callback((s)=>{if(q.abort.aborted)return s(G.void);let J$=()=>s(G.void);if(q.abort.addEventListener("abort",J$,{once:!0}),q.abort.aborted)J$();return G.sync(()=>q.abort.removeEventListener("abort",J$))}),k=G.sleep(`${_.timeout+100} millis`),A$=yield*G.raceAll([S.exitCode.pipe(G.map((s)=>({kind:"exit",code:s}))),T.pipe(G.map(()=>({kind:"abort",code:null}))),k.pipe(G.map(()=>({kind:"timeout",code:null})))]);if(A$.kind==="abort")b=!0,yield*S.kill({forceKillAfter:"3 seconds"}).pipe(G.orDie);if(A$.kind==="timeout")x=!0,yield*S.kill({forceKillAfter:"3 seconds"}).pipe(G.orDie);return A$.kind==="exit"?A$.code:null})).pipe(G.orDie),m=[];if(x)m.push(`bash tool terminated command after exceeding timeout ${_.timeout} ms. If this command is expected to take longer and is not waiting for interactive input, retry with a larger timeout value in milliseconds.`);if(b)m.push("User aborted the command");let A=P.map((S)=>S.text).join(""),u=M7(A,C,H);if(u.cut)N=!0;if(!L&&u.cut)L=yield*Y.write(A);let r=u.text;if(!r)r="(no output)";if(N&&L){let S=u.text.length>2048?u.text.slice(-2048):u.text;if(JS.test(S)){let k=yield*G.promise(async()=>{try{let A$=await uA(L),s=zH*2,J$=await mA(L,"r");try{let Z$=Math.min(Number(A$.size),s),W$=Buffer.alloc(Z$);await J$.read(W$,0,Z$,0);let y$=W$.toString("utf-8"),Q$=1;for(let n=0;n<y$.length;n++)if(y$.charCodeAt(n)===10)Q$++;let y=Q$<=CH+C;return{text:y$,overlaps:y}}finally{await J$.close()}}catch{return}});if(k){let A$=k.text;if(!k.overlaps){let s=C7(A$,CH,zH);r=`...output truncated (head+tail shown due to errors)...
7584
+ `+$.slice(-OH)}var JS=/error|exception|failed|fatal|traceback|panic|exit code/i,zH=Math.floor(u1*0.7),CH=Math.floor(DJ*0.7),ZS=G.fn("BashTool.parse")(function*($,J){let Z=yield*G.promise(()=>QS().then((Y)=>(J?Y.ps:Y.bash).parse($)).catch((Y)=>{return x3.warn("tree-sitter parse of command failed",{error:String(Y)}),null}));if(!Z)throw Error("Failed to parse command");return Z.rootNode}),YS=G.fn("BashTool.ask")(function*($,J){if(J.dirs.size>0){let Z=Array.from(J.dirs).map((Y)=>{if(process.platform==="win32")return $$.normalizePathPattern(QJ.join(Y,"*"));return QJ.join(Y,"*")});yield*$.ask({permission:"external_directory",patterns:Z,always:Z,metadata:{}})}if(J.patterns.size===0)return;yield*$.ask({permission:"bash",patterns:Array.from(J.patterns),always:Array.from(J.always),metadata:{}})});function KS($,J,Z,Y,K){if(process.platform==="win32"&&DH.has(J))return S1.make($,["-NoLogo","-NoProfile","-NonInteractive","-Command",Z],{cwd:Y,env:K,stdin:"ignore",detached:!1});return S1.make(Z,[],{shell:$,cwd:Y,env:K,stdin:"ignore",detached:process.platform!=="win32"})}var QS=T2(async()=>{let{Parser:$}=await import("./chunk-9hrh15p2.js"),{default:J}=await import("./chunk-j59ktwny.js",{with:{type:"wasm"}}),Z=T3(J);await $.init({locateFile(){return Z}});let{default:Y}=await import("./chunk-90q5sae0.js",{with:{type:"wasm"}}),{default:K}=await import("./chunk-f72pppr7.js",{with:{type:"wasm"}}),Q=T3(Y),V=T3(K),[X,W]=await Promise.all([k3.load(Q),k3.load(V)]),B=new $;B.setLanguage(X);let j=new $;return j.setLanguage(W),{bash:B,ps:j}}),rU=B$("bash",G.gen(function*(){let $=(yield*e.toolDescriptionEffect("bash"))??"",J=yield*C9,Z=yield*$$.Service,Y=yield*Z1,K=yield*z2.Service,Q=G.fn("BashTool.cygpath")(function*(_,q){let C=(yield*J.lines(S1.make(_,["-lc",'cygpath -w -- "$1"',"_",q])).pipe(G.catch(()=>G.succeed([]))))[0]?.trim();if(!C)return;return $$.normalizePath(C)}),V=G.fn("BashTool.resolvePath")(function*(_,q,H){if(process.platform==="win32"){if(KJ.posix(H)&&_.startsWith("/")&&$$.windowsPath(_)===_){let C=yield*Q(H,_);if(C)return C}return $$.normalizePath(QJ.resolve(q,$$.windowsPath(_)))}return QJ.resolve(q,_)}),X=G.fn("BashTool.argPath")(function*(_,q,H,C){let M=H?nA(_,q,C):AH(IH(_)),I=M&&eA(M);if(!I||tA(I,H))return;let z=H?aA(I):I;if(!z)return;return yield*V(z,q,C)}),W=G.fn("BashTool.collect")(function*(_,q,H,C){let M={dirs:new Set,patterns:new Set,always:new Set},I=yield*G.promise(()=>e.resolveBashArity());for(let z of iA(_)){let P=oA(z),D=P.map((R)=>R.text),L=H?D[0]?.toLowerCase():D[0];if(L&&pA.has(L))for(let R of $S(P,H)){let N=yield*X(R,q,H,C);if(x3.info("resolved path",{arg:R,resolved:N}),!N||H$.containsPath(N))continue;let x=(yield*Z.isDir(N))?N:QJ.dirname(N);M.dirs.add(x)}if(D.length&&(!L||!PH.has(L)))M.patterns.add(rA(z)),M.always.add(s8.prefixWith(I,D).join(" ")+" *")}return M}),B=G.fn("BashTool.shellEnv")(function*(_,q){let H=yield*K.trigger("shell.env",{cwd:q,sessionID:_.sessionID,callID:_.callID},{env:{}});return{...MH(),...H.env}}),j=G.fn("BashTool.run")(function*(_,q){let H=u1,C=DJ,M=H*2,I="",z="",P=[],D=0,L="",R,N=!1,x=!1,b=!1;yield*q.metadata({metadata:{output:"",description:_.description}});let v=yield*G.scoped(G.gen(function*(){let S=yield*J.spawn(KS(_.shell,_.name,_.command,_.cwd,_.env));yield*G.forkScoped(l$.runForEach(l$.decodeText(S.all),(s)=>{let J$=Buffer.byteLength(s,"utf-8");P.push({text:s,size:J$}),D+=J$;while(D>M&&P.length>1){let Z$=P.shift();if(!Z$)break;D-=Z$.size,N=!0}if(z=FH(z+s),L)R?.write(s);else if(I+=s,Buffer.byteLength(I,"utf-8")>H)return Y.write(I).pipe(G.andThen((Z$)=>G.sync(()=>{L=Z$,N=!0,R=fA(Z$,{flags:"a"}),I=""})),G.andThen(q.metadata({metadata:{output:z,description:_.description}})));return q.metadata({metadata:{output:z,description:_.description}})}));let T=G.callback((s)=>{if(q.abort.aborted)return s(G.void);let J$=()=>s(G.void);if(q.abort.addEventListener("abort",J$,{once:!0}),q.abort.aborted)J$();return G.sync(()=>q.abort.removeEventListener("abort",J$))}),k=G.sleep(`${_.timeout+100} millis`),A$=yield*G.raceAll([S.exitCode.pipe(G.map((s)=>({kind:"exit",code:s}))),T.pipe(G.map(()=>({kind:"abort",code:null}))),k.pipe(G.map(()=>({kind:"timeout",code:null})))]);if(A$.kind==="abort")b=!0,yield*S.kill({forceKillAfter:"3 seconds"}).pipe(G.orDie);if(A$.kind==="timeout")x=!0,yield*S.kill({forceKillAfter:"3 seconds"}).pipe(G.orDie);return A$.kind==="exit"?A$.code:null})).pipe(G.orDie),m=[];if(x)m.push(`bash tool terminated command after exceeding timeout ${_.timeout} ms. If this command is expected to take longer and is not waiting for interactive input, retry with a larger timeout value in milliseconds.`);if(b)m.push("User aborted the command");let A=P.map((S)=>S.text).join(""),u=M7(A,C,H);if(u.cut)N=!0;if(!L&&u.cut)L=yield*Y.write(A);let r=u.text;if(!r)r="(no output)";if(N&&L){let S=u.text.length>2048?u.text.slice(-2048):u.text;if(JS.test(S)){let k=yield*G.promise(async()=>{try{let A$=await uA(L),s=zH*2,J$=await mA(L,"r");try{let Z$=Math.min(Number(A$.size),s),W$=Buffer.alloc(Z$);await J$.read(W$,0,Z$,0);let y$=W$.toString("utf-8"),Q$=1;for(let n=0;n<y$.length;n++)if(y$.charCodeAt(n)===10)Q$++;let y=Q$<=CH+C;return{text:y$,overlaps:y}}finally{await J$.close()}}catch{return}});if(k){let A$=k.text;if(!k.overlaps){let s=C7(A$,CH,zH);r=`...output truncated (head+tail shown due to errors)...
7585
7585
 
7586
7586
  Full output saved to: ${L}
7587
7587
 
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{K as I}from"./chunk-yt3f3j35.js";import{L as i,N as r}from"./chunk-pq2prhb2.js";import{wd as c}from"./chunk-tge53d52.js";import{xd as g}from"./chunk-zfd70p01.js";import{yd as y}from"./chunk-j5ymkhry.js";import{zd as k}from"./chunk-xd3xc1vv.js";import{Ad as A}from"./chunk-bzgj60w4.js";import{Fd as w,Gd as u,Id as W,Jd as L,Kd as T,Md as p,Nd as o,Od as b,Pd as P}from"./chunk-2p9py4rw.js";import"./chunk-n3t52cz2.js";import{Rd as z}from"./chunk-yajd975f.js";import{Vf as Y}from"./chunk-cjfgs1x8.js";import{hh as M}from"./chunk-m2ny1en7.js";import"./chunk-09j71kp6.js";import"./chunk-js9wdh67.js";import"./chunk-0a0vat1h.js";import"./chunk-z8v2tsz2.js";import"./chunk-j8efst22.js";import"./chunk-8f0g7d7k.js";import"./chunk-abtn6nec.js";import{Dl as s,ol as a}from"./chunk-d7t0bcvk.js";import{Pl as V}from"./chunk-7mc8nxve.js";import{lm as n}from"./chunk-dfja6dj6.js";import"./chunk-n34y5gp6.js";import"./chunk-bn0h9dny.js";import"./chunk-q5363rr9.js";import"./chunk-7wthn44y.js";import"./chunk-a8p9aggx.js";import"./chunk-0xm85ayc.js";import{ko as R}from"./chunk-s2za1n7h.js";import"./chunk-19sa03c1.js";import"./chunk-csdm3n24.js";import"./chunk-xk1nh1ay.js";import"./chunk-bsf6n350.js";import"./chunk-4vze3djr.js";import"./chunk-bzrsnv2k.js";import"./chunk-d0qqgxs4.js";import"./chunk-cqtkxwd8.js";import"./chunk-v00cptj6.js";import"./chunk-1d9f53sk.js";import"./chunk-svrxk3vf.js";import"./chunk-kkae8ead.js";import"./chunk-s6me101a.js";import"./chunk-jwtev7b7.js";import"./chunk-b9nwaaqs.js";import"./chunk-qsszerj7.js";import"./chunk-6jewfaqa.js";import"./chunk-6hdjkvr1.js";import"./chunk-1rn0vmvv.js";import"./chunk-fsy279s5.js";import"./chunk-hn1f6rne.js";import"./chunk-4kpvceap.js";import{Rs as l,bs as v}from"./chunk-94qmhz2p.js";import{it as d}from"./chunk-20d0cd1j.js";import"./chunk-yn576pje.js";import"./chunk-b6dsv601.js";import"./chunk-j2zay4da.js";import"./chunk-4vemws1t.js";import"./chunk-yvqbewmc.js";import{qH as O}from"./chunk-t299e2aw.js";import"./chunk-bv8pf0m1.js";import"./chunk-4mrz9b6d.js";import{GO as H1}from"./chunk-yjj4cvqg.js";import f from"path";import{pathToFileURL as J1}from"url";import Q1 from"os";import{access as S1,readdir as X1}from"fs/promises";var q1={en:A,zh:k,ja:c,fr:y,ru:g},B1=q1[I()]??A;function U($,B){let J=B1[$]??A[$]??$;if(!B)return J;return J.replace(/\{(\w+)\}/g,(X,H)=>(H in B)?String(B[H]):`{${H}}`)}import{text as Z1}from"stream/consumers";var D=($,B)=>M.runPromise(O.gen(function*(){yield*(yield*R.Service).set($,B)}));async function t(){let $=await p({message:"Enter your API key",validate:(B)=>B&&B.length>0?void 0:"Required"});if(w($))throw new Y.CancelledError;return $}async function h($,B){let J=$.provider??B;if("refresh"in $){let{type:X,provider:H,refresh:Z,access:j,expires:q,metadata:S,...G}=$;await D(J,{type:"oauth",refresh:Z,access:j,expires:q,...G})}if("key"in $)await D(J,{type:"api",key:$.key,...$.metadata?{metadata:$.metadata}:{}})}async function x($,B,J){let X=0;if(J){let j=$.auth.methods.findIndex((q)=>q.label.toLowerCase()===J.toLowerCase());if(j===-1)W.error(`Unknown method "${J}" for ${B}. Available: ${$.auth.methods.map((q)=>q.label).join(", ")}`),process.exit(1);X=j}else if($.auth.methods.length>1){let j=await b({message:"Login method",options:$.auth.methods.map((q,S)=>({label:q.label,value:S.toString()}))});if(w(j))throw new Y.CancelledError;X=parseInt(j)}let H=$.auth.methods[X];await new Promise((j)=>setTimeout(j,10));let Z={};if(H.prompts)for(let j of H.prompts){if(j.when){let q=Z[j.when.key];if(q===void 0)continue;if(!(j.when.op==="eq"?q===j.when.value:q!==j.when.value))continue}if(j.condition&&!j.condition(Z))continue;if(j.type==="select"){let q=await b({message:j.message,options:j.options});if(w(q))throw new Y.CancelledError;Z[j.key]=q}else{let q=await P({message:j.message,placeholder:j.placeholder,validate:j.validate?(S)=>j.validate(S??""):void 0});if(w(q))throw new Y.CancelledError;Z[j.key]=q}}if(H.type==="oauth"){let j=await H.authorize(Z);if(j.url)W.info("Go to: "+j.url);if(j.method==="auto"){if(j.instructions)W.info(j.instructions);let q=o();q.start("Waiting for authorization...");let S=await j.callback();if(S.type==="failed")q.stop("Failed to authorize",1);if(S.type==="success")await h(S,B),q.stop("Login successful")}if(j.method==="code"){let q=await P({message:"Paste the authorization code here: ",validate:(G)=>G&&G.length>0?void 0:"Required"});if(w(q))throw new Y.CancelledError;let S=await j.callback(q);if(S.type==="failed")W.error("Failed to authorize");if(S.type==="success")await h(S,B),W.success("Login successful")}return T("Done"),!0}if(H.type==="api"){if(H.authorize){let j=await t(),q=await H.authorize(Z);if(q.type==="failed")W.error("Failed to authorize");if(q.type==="success"){let S=q.provider??B;await D(S,{type:"api",key:q.key??j}),W.success("Login successful")}return T("Done"),!0}}return!1}function G1($){let B=new Set,J=[];for(let X of $.hooks){if(!X.auth)continue;let H=X.auth.provider;if(B.has(H))continue;if(B.add(H),Object.hasOwn($.existingProviders,H))continue;if($.disabled.has(H))continue;if($.enabled&&!$.enabled.has(H))continue;J.push({id:H,name:$.providerNames[H]??H})}return J}function m($){let B=$?.loginExtension;if(!B||typeof B!=="object")return;let J=B;if(typeof J.id!=="string"||typeof J.run!=="function")return;return J}async function W1(){try{let J=await import("./chunk-wxqtda70.js");for(let X of Object.values(J.modules??{})){let H=m(X);if(H)return H}}catch{}let $=f.join(import.meta.dir,"..","..","ext");await S1($).catch(()=>{return});let B=await X1($).catch(()=>[]);for(let J of B.filter((X)=>X.endsWith(".ts")&&!X.endsWith(".d.ts")))try{let X=m(await import(J1(f.join($,J)).href));if(X)return X}catch{}return}var l1=z({command:"providers",aliases:["auth"],describe:"manage AI providers and credentials",builder:($)=>$.command(Y1).command(_1).command(F1).command(K1).demandCommand(),async handler(){}}),Y1=z({command:"list",aliases:["ls"],describe:"list providers and credentials",async handler($){Y.empty();let B=f.join(l.Path.data,"auth.json"),J=Q1.homedir(),X=B===J||B.startsWith(J+f.sep)?"~"+B.slice(J.length):B;L(`Credentials ${Y.Style.TEXT_DIM}${X}`);let H=await M.runPromise(O.gen(function*(){let q=yield*R.Service;return Object.entries(yield*q.all())})),Z=await V.get();for(let[q,S]of H){let G=Z[q]?.name||q;W.info(`${G} ${Y.Style.TEXT_DIM}${S.type}`)}T(`${H.length} credentials`);let j=[];for(let[q,S]of Object.entries(Z))for(let G of S.env)if(process.env[G])j.push({provider:S.name||q,envVar:G});if(j.length>0){Y.empty(),L("Environment");for(let{provider:q,envVar:S}of j)W.info(`${q} ${Y.Style.TEXT_DIM}${S}`);T(`${j.length} environment variable`+(j.length===1?"":"s"))}}}),_1=z({command:"login [url]",describe:"log in to a provider",builder:($)=>$.positional("url",{describe:"qitqode auth provider",type:"string"}).option("provider",{alias:["p"],describe:"provider id or name to log in to (skips provider selection)",type:"string"}).option("method",{alias:["m"],describe:"login method label (skips method selection)",type:"string"}),async handler($){await n.provide({directory:process.cwd(),async fn(){if(Y.empty(),L("Add credential"),$.url){let Q=$.url.replace(/\/+$/,""),_=await fetch(`${Q}/.well-known/opencode`).then((j1)=>j1.json());W.info(`Running \`${_.auth.command.join(" ")}\``);let F=d.spawn(_.auth.command,{stdout:"pipe"});if(!F.stdout){W.error("Failed"),T("Done");return}let[C,N]=await Promise.all([F.exited,Z1(F.stdout)]);if(C!==0){W.error("Failed"),T("Done");return}await D(Q,{type:"wellknown",key:_.auth.env,token:N.trim()}),W.success("Logged into "+Q),T("Done");return}await V.refresh(!0).catch(()=>{});let B=await M.runPromise(s.Service.use((Q)=>Q.get())),J=new Set(B.disabled_providers??[]),X=B.enabled_providers?new Set(B.enabled_providers):void 0,H=await V.get().then((Q)=>{let _={};for(let[F,C]of Object.entries(Q))if((X?X.has(F):!0)&&!J.has(F))_[F]=C;return _}),Z=await M.runPromise(O.gen(function*(){return yield*(yield*a.Service).list()})),j=i,q=G1({hooks:Z,existingProviders:H,disabled:J,enabled:X,providerNames:Object.fromEntries(Object.entries(B.provider??{}).map(([Q,_])=>[Q,_.name]))}),S=[...r(v(H),j,(Q)=>({openai:"ChatGPT Plus/Pro or API key"})[Q.id]),...q.map((Q)=>({label:Q.name,value:Q.id,hint:"plugin"}))],G=await W1(),e=G?[G.id,...G.aliases??[]]:[],K;if(G&&$.provider&&e.includes($.provider)){await G.run();return}else if($.provider){let Q=$.provider,_=S.find((N)=>N.value===Q),F=S.find((N)=>N.label.toLowerCase()===Q.toLowerCase()),C=_??F;if(!C)W.error(`Unknown provider "${Q}"`),process.exit(1);K=C.value}else{let Q=await b({message:U("cli.providers.select"),options:[...G?.menu?[{label:G.menu.label,value:G.id,hint:G.menu.hint}]:[],{label:U("cli.providers.other"),value:"__other__"}]});if(w(Q))throw new Y.CancelledError;if(G&&Q===G.id){await G.run();return}let _=await u({message:U("cli.providers.select"),maxItems:8,options:[...S,{value:"other",label:"Other"}]});if(w(_))throw new Y.CancelledError;K=_}let E=Z.findLast((Q)=>Q.auth?.provider===K);if(E&&E.auth){if(await x({auth:E.auth},K,$.method))return}if(K==="other"){let Q=await P({message:"Enter provider id",validate:(F)=>F&&F.match(/^[0-9a-z-]+$/)?void 0:"a-z, 0-9 and hyphens only"});if(w(Q))throw new Y.CancelledError;K=Q.replace(/^@ai-sdk\//,"");let _=Z.findLast((F)=>F.auth?.provider===K);if(_&&_.auth){if(await x({auth:_.auth},K,$.method))return}W.warn(`This only stores a credential for ${K} - you will need configure it in qitqode.json, check the docs for examples.`)}if(K==="amazon-bedrock")W.info(`Amazon Bedrock authentication priority:
2
+ import{K as I}from"./chunk-yt3f3j35.js";import{L as i,N as r}from"./chunk-b3rpzkcb.js";import{wd as c}from"./chunk-tge53d52.js";import{xd as g}from"./chunk-zfd70p01.js";import{yd as y}from"./chunk-j5ymkhry.js";import{zd as k}from"./chunk-xd3xc1vv.js";import{Ad as A}from"./chunk-bzgj60w4.js";import{Fd as w,Gd as u,Id as W,Jd as L,Kd as T,Md as p,Nd as o,Od as b,Pd as P}from"./chunk-jje0srjq.js";import"./chunk-27yxgy03.js";import{Rd as z}from"./chunk-yajd975f.js";import{Vf as Y}from"./chunk-7ppd2phw.js";import{hh as M}from"./chunk-ddnpx1yx.js";import"./chunk-wfs4pcwa.js";import"./chunk-p68rwmhc.js";import"./chunk-0a0vat1h.js";import"./chunk-z8v2tsz2.js";import"./chunk-j8efst22.js";import"./chunk-a1pw9r6f.js";import"./chunk-d5bxan80.js";import{Dl as s,ol as a}from"./chunk-pvpy9kq1.js";import{Pl as V}from"./chunk-wpajh5s5.js";import{lm as n}from"./chunk-2ec6ps8r.js";import"./chunk-gj3hzx3d.js";import"./chunk-nj4d554m.js";import"./chunk-2gerf08b.js";import"./chunk-fqw4y7x0.js";import"./chunk-a1p2f16h.js";import"./chunk-nt4e3em9.js";import{Jp as R}from"./chunk-a0v55ywn.js";import"./chunk-v965rsr8.js";import"./chunk-1sgby720.js";import"./chunk-dcvatax2.js";import"./chunk-4tbwha3m.js";import"./chunk-m612agnk.js";import"./chunk-yq3m8190.js";import"./chunk-btz9jvec.js";import"./chunk-cqtkxwd8.js";import"./chunk-fkgv2hqd.js";import"./chunk-zyhdxggp.js";import"./chunk-q6ztpfcs.js";import"./chunk-jm1ptn8n.js";import"./chunk-c5e6sk9c.js";import"./chunk-m02zt1a3.js";import"./chunk-vg2fmyje.js";import"./chunk-sn4nez18.js";import"./chunk-42f7p0hq.js";import"./chunk-4qqkqrn9.js";import"./chunk-j6emx6jn.js";import"./chunk-be216spx.js";import"./chunk-12bssxd4.js";import"./chunk-z8r65yw3.js";import{At as v,ou as l}from"./chunk-3szwfy7w.js";import{Hu as d}from"./chunk-whxjkz9a.js";import"./chunk-89v6dgpp.js";import"./chunk-k309zez0.js";import"./chunk-09kba1hg.js";import"./chunk-t12xrrfr.js";import"./chunk-phxrg7aw.js";import{PI as O}from"./chunk-snm5q21k.js";import"./chunk-xpc2zgj7.js";import"./chunk-qjjch1zt.js";import{dQ as H1}from"./chunk-aztre27e.js";import f from"path";import{pathToFileURL as J1}from"url";import Q1 from"os";import{access as S1,readdir as X1}from"fs/promises";var q1={en:A,zh:k,ja:c,fr:y,ru:g},B1=q1[I()]??A;function U($,B){let J=B1[$]??A[$]??$;if(!B)return J;return J.replace(/\{(\w+)\}/g,(X,H)=>(H in B)?String(B[H]):`{${H}}`)}import{text as Z1}from"stream/consumers";var D=($,B)=>M.runPromise(O.gen(function*(){yield*(yield*R.Service).set($,B)}));async function t(){let $=await p({message:"Enter your API key",validate:(B)=>B&&B.length>0?void 0:"Required"});if(w($))throw new Y.CancelledError;return $}async function h($,B){let J=$.provider??B;if("refresh"in $){let{type:X,provider:H,refresh:Z,access:j,expires:q,metadata:S,...G}=$;await D(J,{type:"oauth",refresh:Z,access:j,expires:q,...G})}if("key"in $)await D(J,{type:"api",key:$.key,...$.metadata?{metadata:$.metadata}:{}})}async function x($,B,J){let X=0;if(J){let j=$.auth.methods.findIndex((q)=>q.label.toLowerCase()===J.toLowerCase());if(j===-1)W.error(`Unknown method "${J}" for ${B}. Available: ${$.auth.methods.map((q)=>q.label).join(", ")}`),process.exit(1);X=j}else if($.auth.methods.length>1){let j=await b({message:"Login method",options:$.auth.methods.map((q,S)=>({label:q.label,value:S.toString()}))});if(w(j))throw new Y.CancelledError;X=parseInt(j)}let H=$.auth.methods[X];await new Promise((j)=>setTimeout(j,10));let Z={};if(H.prompts)for(let j of H.prompts){if(j.when){let q=Z[j.when.key];if(q===void 0)continue;if(!(j.when.op==="eq"?q===j.when.value:q!==j.when.value))continue}if(j.condition&&!j.condition(Z))continue;if(j.type==="select"){let q=await b({message:j.message,options:j.options});if(w(q))throw new Y.CancelledError;Z[j.key]=q}else{let q=await P({message:j.message,placeholder:j.placeholder,validate:j.validate?(S)=>j.validate(S??""):void 0});if(w(q))throw new Y.CancelledError;Z[j.key]=q}}if(H.type==="oauth"){let j=await H.authorize(Z);if(j.url)W.info("Go to: "+j.url);if(j.method==="auto"){if(j.instructions)W.info(j.instructions);let q=o();q.start("Waiting for authorization...");let S=await j.callback();if(S.type==="failed")q.stop("Failed to authorize",1);if(S.type==="success")await h(S,B),q.stop("Login successful")}if(j.method==="code"){let q=await P({message:"Paste the authorization code here: ",validate:(G)=>G&&G.length>0?void 0:"Required"});if(w(q))throw new Y.CancelledError;let S=await j.callback(q);if(S.type==="failed")W.error("Failed to authorize");if(S.type==="success")await h(S,B),W.success("Login successful")}return T("Done"),!0}if(H.type==="api"){if(H.authorize){let j=await t(),q=await H.authorize(Z);if(q.type==="failed")W.error("Failed to authorize");if(q.type==="success"){let S=q.provider??B;await D(S,{type:"api",key:q.key??j}),W.success("Login successful")}return T("Done"),!0}}return!1}function G1($){let B=new Set,J=[];for(let X of $.hooks){if(!X.auth)continue;let H=X.auth.provider;if(B.has(H))continue;if(B.add(H),Object.hasOwn($.existingProviders,H))continue;if($.disabled.has(H))continue;if($.enabled&&!$.enabled.has(H))continue;J.push({id:H,name:$.providerNames[H]??H})}return J}function m($){let B=$?.loginExtension;if(!B||typeof B!=="object")return;let J=B;if(typeof J.id!=="string"||typeof J.run!=="function")return;return J}async function W1(){try{let J=await import("./chunk-mn41f9qv.js");for(let X of Object.values(J.modules??{})){let H=m(X);if(H)return H}}catch{}let $=f.join(import.meta.dir,"..","..","ext");await S1($).catch(()=>{return});let B=await X1($).catch(()=>[]);for(let J of B.filter((X)=>X.endsWith(".ts")&&!X.endsWith(".d.ts")))try{let X=m(await import(J1(f.join($,J)).href));if(X)return X}catch{}return}var l1=z({command:"providers",aliases:["auth"],describe:"manage AI providers and credentials",builder:($)=>$.command(Y1).command(_1).command(F1).command(K1).demandCommand(),async handler(){}}),Y1=z({command:"list",aliases:["ls"],describe:"list providers and credentials",async handler($){Y.empty();let B=f.join(l.Path.data,"auth.json"),J=Q1.homedir(),X=B===J||B.startsWith(J+f.sep)?"~"+B.slice(J.length):B;L(`Credentials ${Y.Style.TEXT_DIM}${X}`);let H=await M.runPromise(O.gen(function*(){let q=yield*R.Service;return Object.entries(yield*q.all())})),Z=await V.get();for(let[q,S]of H){let G=Z[q]?.name||q;W.info(`${G} ${Y.Style.TEXT_DIM}${S.type}`)}T(`${H.length} credentials`);let j=[];for(let[q,S]of Object.entries(Z))for(let G of S.env)if(process.env[G])j.push({provider:S.name||q,envVar:G});if(j.length>0){Y.empty(),L("Environment");for(let{provider:q,envVar:S}of j)W.info(`${q} ${Y.Style.TEXT_DIM}${S}`);T(`${j.length} environment variable`+(j.length===1?"":"s"))}}}),_1=z({command:"login [url]",describe:"log in to a provider",builder:($)=>$.positional("url",{describe:"qitqode auth provider",type:"string"}).option("provider",{alias:["p"],describe:"provider id or name to log in to (skips provider selection)",type:"string"}).option("method",{alias:["m"],describe:"login method label (skips method selection)",type:"string"}),async handler($){await n.provide({directory:process.cwd(),async fn(){if(Y.empty(),L("Add credential"),$.url){let Q=$.url.replace(/\/+$/,""),_=await fetch(`${Q}/.well-known/opencode`).then((j1)=>j1.json());W.info(`Running \`${_.auth.command.join(" ")}\``);let F=d.spawn(_.auth.command,{stdout:"pipe"});if(!F.stdout){W.error("Failed"),T("Done");return}let[C,N]=await Promise.all([F.exited,Z1(F.stdout)]);if(C!==0){W.error("Failed"),T("Done");return}await D(Q,{type:"wellknown",key:_.auth.env,token:N.trim()}),W.success("Logged into "+Q),T("Done");return}await V.refresh(!0).catch(()=>{});let B=await M.runPromise(s.Service.use((Q)=>Q.get())),J=new Set(B.disabled_providers??[]),X=B.enabled_providers?new Set(B.enabled_providers):void 0,H=await V.get().then((Q)=>{let _={};for(let[F,C]of Object.entries(Q))if((X?X.has(F):!0)&&!J.has(F))_[F]=C;return _}),Z=await M.runPromise(O.gen(function*(){return yield*(yield*a.Service).list()})),j=i,q=G1({hooks:Z,existingProviders:H,disabled:J,enabled:X,providerNames:Object.fromEntries(Object.entries(B.provider??{}).map(([Q,_])=>[Q,_.name]))}),S=[...r(v(H),j,(Q)=>({openai:"ChatGPT Plus/Pro or API key"})[Q.id]),...q.map((Q)=>({label:Q.name,value:Q.id,hint:"plugin"}))],G=await W1(),e=G?[G.id,...G.aliases??[]]:[],K;if(G&&$.provider&&e.includes($.provider)){await G.run();return}else if($.provider){let Q=$.provider,_=S.find((N)=>N.value===Q),F=S.find((N)=>N.label.toLowerCase()===Q.toLowerCase()),C=_??F;if(!C)W.error(`Unknown provider "${Q}"`),process.exit(1);K=C.value}else{let Q=await b({message:U("cli.providers.select"),options:[...G?.menu?[{label:G.menu.label,value:G.id,hint:G.menu.hint}]:[],{label:U("cli.providers.other"),value:"__other__"}]});if(w(Q))throw new Y.CancelledError;if(G&&Q===G.id){await G.run();return}let _=await u({message:U("cli.providers.select"),maxItems:8,options:[...S,{value:"other",label:"Other"}]});if(w(_))throw new Y.CancelledError;K=_}let E=Z.findLast((Q)=>Q.auth?.provider===K);if(E&&E.auth){if(await x({auth:E.auth},K,$.method))return}if(K==="other"){let Q=await P({message:"Enter provider id",validate:(F)=>F&&F.match(/^[0-9a-z-]+$/)?void 0:"a-z, 0-9 and hyphens only"});if(w(Q))throw new Y.CancelledError;K=Q.replace(/^@ai-sdk\//,"");let _=Z.findLast((F)=>F.auth?.provider===K);if(_&&_.auth){if(await x({auth:_.auth},K,$.method))return}W.warn(`This only stores a credential for ${K} - you will need configure it in qitqode.json, check the docs for examples.`)}if(K==="amazon-bedrock")W.info(`Amazon Bedrock authentication priority:
3
3
  1. Bearer token (AWS_BEARER_TOKEN_BEDROCK or /connect)
4
4
  2. AWS credential chain (profile, access keys, IAM roles, EKS IRSA)
5
5
 
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{In as j,Jn as R,Kn as O,Ln as A,Rn as y,Wn as q,Xn as M,Zn as C,do as K}from"./chunk-7wthn44y.js";import{Os as v,Rs as D}from"./chunk-94qmhz2p.js";import{at as m,ct as b,it as I,tt as d}from"./chunk-20d0cd1j.js";import{HO as T,IO as _}from"./chunk-yjj4cvqg.js";import P from"path";function pt(t){let e=t&&typeof t==="object"&&"cause"in t?t.cause??t:t;if(!(e instanceof I.RunFailedError))return{error:e,detail:b(e),missing:!1};let r=e.stderr.toString().split(/\r?\n/).map((o)=>o.trim()).filter(Boolean),n=r.filter((o)=>o.startsWith("error:")).map((o)=>o.replace(/^error:\s*/,""));return{error:e,detail:n[0]??r.at(-1),missing:r.some((o)=>o.includes("No version matching"))}}var $={resolve:(t)=>q(t)},z={readText:(t)=>d.readText(t),write:async(t,e)=>{await d.write(t,e)},exists:(t)=>d.exists(t),files:(t,e)=>K(t,e)},G=z;function V(t){if(typeof t==="string")return t;if(!Array.isArray(t))return;if(typeof t[0]!=="string")return;return t[0]}function H(t){if(!t||typeof t!=="object"||Array.isArray(t))return;let e=t;if(!Array.isArray(e.plugin))return;return e.plugin}function Q(t){if(typeof t==="string"){let e=t.trim();if(e)return e;return}if(!m(t))return;for(let e of["import","default"]){let r=t[e];if(typeof r!=="string")continue;let n=r.trim();if(!n)continue;return n}}function U(t){if(!m(t))return;let e=t.config;if(!m(e))return;return e}function E(t,e){let r=t.exports;if(!m(r))return;let n=r[`./${e}`];if(!Q(n))return;return{opts:U(n)}}function X(t){let e=t.main;if(typeof e!=="string")return!1;return Boolean(e.trim())}function Y(t){let e=typeof t.json.name==="string"&&t.json.name.trim().length>0?t.json.name.trim():P.basename(t.dir),r=[],n=E(t.json,"server");if(n)r.push({kind:"server",opts:n.opts});else if(X(t.json))r.push({kind:"server"});let o=E(t.json,"tui");if(o)r.push({kind:"tui",opts:o.opts});if(!r.some((c)=>c.kind==="tui")&&C(e,t).length)r.push({kind:"tui"});return r}function g(t,e,r,n=!1){return A(t,O(t,e,r,{formattingOptions:{tabSize:2,insertSpaces:!0},isArrayInsertion:n}))}function Z(t,e,r,n,o=!1){let c=y(r).pkg,u=(e??[]).map((i,p)=>({item:i,i:p,spec:V(i)})).filter((i)=>{if(!i.spec)return!1;if(i.spec===r)return!0;if(i.spec.startsWith("file://"))return!1;return y(i.spec).pkg===c});if(!u.length){if(!e)return{mode:"add",text:g(t,["plugin"],[n])};return{mode:"add",text:g(t,["plugin",e.length],n,!0)}}if(!o)return{mode:"noop",text:t};let s=u[0];if(!s)return{mode:"noop",text:t};if(u.length===1&&s.spec===r)return{mode:"noop",text:t};let a=t;if(typeof s.item==="string")a=g(a,["plugin",s.i],n);if(Array.isArray(s.item)&&typeof s.item[0]==="string")a=g(a,["plugin",s.i,0],r);let l=u.map((i)=>i.i).filter((i)=>i!==s.i).sort((i,p)=>p-i);for(let i of l)a=g(a,["plugin",i],void 0);return{mode:"replace",text:a}}async function gt(t,e=$){let r=await e.resolve(t).then((n)=>({ok:!0,item:n}),(n)=>({ok:!1,error:n}));if(!r.ok)return{ok:!1,code:"install_failed",error:r.error};return{ok:!0,target:r.item}}async function dt(t){let e=await M(t).then((n)=>({ok:!0,item:n}),(n)=>({ok:!1,error:n}));if(!e.ok)return{ok:!1,code:"manifest_read_failed",file:t,error:e.error};let r=await Promise.resolve().then(()=>Y(e.item)).then((n)=>({ok:!0,item:n}),(n)=>({ok:!1,error:n}));if(!r.ok)return{ok:!1,code:"manifest_read_failed",file:e.item.pkg,error:r.error};if(!r.item.length)return{ok:!1,code:"manifest_no_targets",file:e.item.pkg};return{ok:!0,targets:r.item}}function tt(t){if(t.global)return t.config??D.Path.config;let r=t.vcs==="git"&&t.worktree!=="/"?t.worktree:t.directory;return P.join(r,".qitqode")}function et(t){if(t==="server")return"qitqode";return"tui"}async function rt(t,e,r,n,o){let x=[];try{let c=et(e.kind);const S=T(x,await v.acquire(`plug-config:${d.resolve(P.join(t,c))}`),1);let u=o.files(t,c);let s=u[0];for(let f of u){if(!await o.exists(f))continue;s=f;break}let a=await o.readText(s).catch((f)=>{if(f.code==="ENOENT")return"{}";return f});if(a instanceof Error)return{ok:!1,code:"patch_failed",kind:e.kind,error:a};let l=a.trim()?a:"{}";let i=[];let p=j(l,i,{allowTrailingComma:!0});if(i.length){let f=i[0],h=l.substring(0,f.offset).split(`
2
+ import{Cp as K,fp as j,gp as R,hp as O,ip as A,op as y,tp as q,up as M,wp as C}from"./chunk-fqw4y7x0.js";import{lu as v,ou as D}from"./chunk-3szwfy7w.js";import{Bu as b,Hu as I,Su as d,zu as m}from"./chunk-whxjkz9a.js";import{eQ as T,fQ as _}from"./chunk-aztre27e.js";import P from"path";function pt(t){let e=t&&typeof t==="object"&&"cause"in t?t.cause??t:t;if(!(e instanceof I.RunFailedError))return{error:e,detail:b(e),missing:!1};let r=e.stderr.toString().split(/\r?\n/).map((o)=>o.trim()).filter(Boolean),n=r.filter((o)=>o.startsWith("error:")).map((o)=>o.replace(/^error:\s*/,""));return{error:e,detail:n[0]??r.at(-1),missing:r.some((o)=>o.includes("No version matching"))}}var $={resolve:(t)=>q(t)},z={readText:(t)=>d.readText(t),write:async(t,e)=>{await d.write(t,e)},exists:(t)=>d.exists(t),files:(t,e)=>K(t,e)},G=z;function V(t){if(typeof t==="string")return t;if(!Array.isArray(t))return;if(typeof t[0]!=="string")return;return t[0]}function H(t){if(!t||typeof t!=="object"||Array.isArray(t))return;let e=t;if(!Array.isArray(e.plugin))return;return e.plugin}function Q(t){if(typeof t==="string"){let e=t.trim();if(e)return e;return}if(!m(t))return;for(let e of["import","default"]){let r=t[e];if(typeof r!=="string")continue;let n=r.trim();if(!n)continue;return n}}function U(t){if(!m(t))return;let e=t.config;if(!m(e))return;return e}function E(t,e){let r=t.exports;if(!m(r))return;let n=r[`./${e}`];if(!Q(n))return;return{opts:U(n)}}function X(t){let e=t.main;if(typeof e!=="string")return!1;return Boolean(e.trim())}function Y(t){let e=typeof t.json.name==="string"&&t.json.name.trim().length>0?t.json.name.trim():P.basename(t.dir),r=[],n=E(t.json,"server");if(n)r.push({kind:"server",opts:n.opts});else if(X(t.json))r.push({kind:"server"});let o=E(t.json,"tui");if(o)r.push({kind:"tui",opts:o.opts});if(!r.some((c)=>c.kind==="tui")&&C(e,t).length)r.push({kind:"tui"});return r}function g(t,e,r,n=!1){return A(t,O(t,e,r,{formattingOptions:{tabSize:2,insertSpaces:!0},isArrayInsertion:n}))}function Z(t,e,r,n,o=!1){let c=y(r).pkg,u=(e??[]).map((i,p)=>({item:i,i:p,spec:V(i)})).filter((i)=>{if(!i.spec)return!1;if(i.spec===r)return!0;if(i.spec.startsWith("file://"))return!1;return y(i.spec).pkg===c});if(!u.length){if(!e)return{mode:"add",text:g(t,["plugin"],[n])};return{mode:"add",text:g(t,["plugin",e.length],n,!0)}}if(!o)return{mode:"noop",text:t};let s=u[0];if(!s)return{mode:"noop",text:t};if(u.length===1&&s.spec===r)return{mode:"noop",text:t};let a=t;if(typeof s.item==="string")a=g(a,["plugin",s.i],n);if(Array.isArray(s.item)&&typeof s.item[0]==="string")a=g(a,["plugin",s.i,0],r);let l=u.map((i)=>i.i).filter((i)=>i!==s.i).sort((i,p)=>p-i);for(let i of l)a=g(a,["plugin",i],void 0);return{mode:"replace",text:a}}async function gt(t,e=$){let r=await e.resolve(t).then((n)=>({ok:!0,item:n}),(n)=>({ok:!1,error:n}));if(!r.ok)return{ok:!1,code:"install_failed",error:r.error};return{ok:!0,target:r.item}}async function dt(t){let e=await M(t).then((n)=>({ok:!0,item:n}),(n)=>({ok:!1,error:n}));if(!e.ok)return{ok:!1,code:"manifest_read_failed",file:t,error:e.error};let r=await Promise.resolve().then(()=>Y(e.item)).then((n)=>({ok:!0,item:n}),(n)=>({ok:!1,error:n}));if(!r.ok)return{ok:!1,code:"manifest_read_failed",file:e.item.pkg,error:r.error};if(!r.item.length)return{ok:!1,code:"manifest_no_targets",file:e.item.pkg};return{ok:!0,targets:r.item}}function tt(t){if(t.global)return t.config??D.Path.config;let r=t.vcs==="git"&&t.worktree!=="/"?t.worktree:t.directory;return P.join(r,".qitqode")}function et(t){if(t==="server")return"qitqode";return"tui"}async function rt(t,e,r,n,o){let x=[];try{let c=et(e.kind);const S=T(x,await v.acquire(`plug-config:${d.resolve(P.join(t,c))}`),1);let u=o.files(t,c);let s=u[0];for(let f of u){if(!await o.exists(f))continue;s=f;break}let a=await o.readText(s).catch((f)=>{if(f.code==="ENOENT")return"{}";return f});if(a instanceof Error)return{ok:!1,code:"patch_failed",kind:e.kind,error:a};let l=a.trim()?a:"{}";let i=[];let p=j(l,i,{allowTrailingComma:!0});if(i.length){let f=i[0],h=l.substring(0,f.offset).split(`
3
3
  `);return{ok:!1,code:"invalid_json",kind:e.kind,file:s,line:h.length,col:h[h.length-1].length+1,parse:R(f.error)}}let N=H(p);let F=e.opts?[r,e.opts]:r;let k=Z(l,N,r,F,n);if(k.mode==="noop")return{ok:!0,item:{kind:e.kind,mode:k.mode,file:s}};let w=await o.write(s,k.text).catch((f)=>f);if(w instanceof Error)return{ok:!1,code:"patch_failed",kind:e.kind,error:w};return{ok:!0,item:{kind:e.kind,mode:k.mode,file:s}}}catch(J){var B=J,L=1}finally{var W=_(x,B,L);W&&await W}}async function mt(t,e=G){let r=tt(t),n=[];for(let o of t.targets){let c=await rt(r,o,t.spec,Boolean(t.force),e);if(!c.ok)return{...c,dir:r};n.push(c.item)}return{ok:!0,dir:r,items:n}}
4
4
  export{pt as p,z as q,gt as r,dt as s,mt as t};