@qitqode/qitqode-android-arm64 0.1.26 → 0.1.28

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 (418) hide show
  1. package/bundle/{chunk-3bb7y9pq.js → chunk-04h4afhf.js} +2 -2
  2. package/bundle/{chunk-x3z8q0ep.js → chunk-04tw0r4s.js} +1 -1
  3. package/bundle/chunk-066eeq5q.js +2 -0
  4. package/bundle/chunk-07ws99b1.js +2 -0
  5. package/bundle/chunk-09c4ngag.js +2 -0
  6. package/bundle/{chunk-se195e52.js → chunk-09kba1hg.js} +2 -2
  7. package/bundle/{chunk-pfn1db1m.js → chunk-0a0vat1h.js} +2 -2
  8. package/bundle/chunk-0jgst767.js +2 -0
  9. package/bundle/chunk-0nj8axbw.js +7610 -0
  10. package/bundle/chunk-0psrr9vp.js +2 -0
  11. package/bundle/{chunk-z2q3mg73.js → chunk-12bssxd4.js} +2 -2
  12. package/bundle/{chunk-6vb26adv.js → chunk-13hz1kvh.js} +1 -1
  13. package/bundle/{chunk-hz1hd1bd.js → chunk-1bhvt33f.js} +1 -1
  14. package/bundle/{chunk-49tqzsy0.js → chunk-1dwcga8g.js} +2 -2
  15. package/bundle/chunk-1etdhr36.js +11 -0
  16. package/bundle/{chunk-9qtf8khv.js → chunk-1fbeendk.js} +1 -1
  17. package/bundle/chunk-1j73cnvz.js +2 -0
  18. package/bundle/{chunk-tyy4gx61.js → chunk-1m2e2w1q.js} +1 -1
  19. package/bundle/{chunk-eqaym8gm.js → chunk-1qshjfzm.js} +1 -1
  20. package/bundle/{chunk-d31yrcrn.js → chunk-1rp1cvmc.js} +2 -2
  21. package/bundle/{chunk-vx837ete.js → chunk-1sgby720.js} +1 -1
  22. package/bundle/{chunk-atbm0pnt.js → chunk-1t6bvbgy.js} +2 -2
  23. package/bundle/{chunk-wefjbwv6.js → chunk-1t9jne14.js} +1 -1
  24. package/bundle/chunk-1yddn03z.js +2 -0
  25. package/bundle/{chunk-n07rsssz.js → chunk-24xc0dvv.js} +1 -1
  26. package/bundle/{chunk-qngs31yf.js → chunk-26nfphsg.js} +1 -1
  27. package/bundle/{chunk-kkdgzeva.js → chunk-27yxgy03.js} +2 -2
  28. package/bundle/{chunk-f416n3mp.js → chunk-288hw03f.js} +2 -2
  29. package/bundle/{chunk-qan3kwbv.js → chunk-2abdrqrx.js} +1 -1
  30. package/bundle/{chunk-b79k456s.js → chunk-2ahqhh4z.js} +1 -1
  31. package/bundle/{chunk-fx7w497c.js → chunk-2bn4b42t.js} +1 -1
  32. package/bundle/{chunk-4k70wrhf.js → chunk-2dzk5txw.js} +1 -1
  33. package/bundle/{chunk-56qm8xpt.js → chunk-2jmxt3fb.js} +1 -1
  34. package/bundle/{chunk-r1yqmd4y.js → chunk-2km50rd3.js} +1 -1
  35. package/bundle/{chunk-j87bvp1b.js → chunk-2q96x1t5.js} +1 -1
  36. package/bundle/{chunk-77e1wh0j.js → chunk-2rs39vj2.js} +2 -2
  37. package/bundle/{chunk-qb5qemtp.js → chunk-2tnarng3.js} +1 -1
  38. package/bundle/{chunk-cr06m77n.js → chunk-2vepzgek.js} +2 -2
  39. package/bundle/{chunk-k7h6tfzj.js → chunk-371r2111.js} +1 -1
  40. package/bundle/{chunk-5jtd006j.js → chunk-37n34pzd.js} +2 -2
  41. package/bundle/chunk-37s5hwtc.js +2 -0
  42. package/bundle/chunk-38g8yzw0.js +2 -0
  43. package/bundle/chunk-3bkd0ar3.js +2 -0
  44. package/bundle/{chunk-6nkcfncg.js → chunk-3bmzjznz.js} +1 -1
  45. package/bundle/{chunk-2jn2hd12.js → chunk-3dvd1bb6.js} +2 -2
  46. package/bundle/chunk-3fx5jda0.js +2 -0
  47. package/bundle/{chunk-cn10hn58.js → chunk-3j9hedmx.js} +1 -1
  48. package/bundle/{chunk-7n2kpqh5.js → chunk-3nwve06r.js} +1 -1
  49. package/bundle/{chunk-ptf09vmp.js → chunk-3nyqh1d6.js} +1 -1
  50. package/bundle/chunk-457y2816.js +2 -0
  51. package/bundle/{chunk-6s2f5sv4.js → chunk-48fvrggx.js} +1 -1
  52. package/bundle/chunk-4amgp4yd.js +3 -0
  53. package/bundle/{chunk-f3c9667r.js → chunk-4qqkqrn9.js} +2 -2
  54. package/bundle/chunk-4sk0rmw3.js +28 -0
  55. package/bundle/chunk-4sz3jbc5.js +2 -0
  56. package/bundle/{chunk-1n4w8dya.js → chunk-4tbwha3m.js} +2 -2
  57. package/bundle/{chunk-hb4d06q0.js → chunk-4yawrap2.js} +2 -2
  58. package/bundle/{chunk-dv5zf5gz.js → chunk-5a5t01ka.js} +1 -1
  59. package/bundle/{chunk-880msfsd.js → chunk-5fgx6fa4.js} +1 -1
  60. package/bundle/{chunk-t1vtdgd6.js → chunk-5fz8tph5.js} +1 -1
  61. package/bundle/{chunk-ppvmy940.js → chunk-5g8108nf.js} +2 -2
  62. package/bundle/{chunk-e57d1he9.js → chunk-5qam3c8r.js} +1 -1
  63. package/bundle/{chunk-1qbm1k9y.js → chunk-5syxjhg3.js} +3 -3
  64. package/bundle/chunk-612f97vv.js +616 -0
  65. package/bundle/{chunk-fffj9447.js → chunk-61c62e5s.js} +2 -2
  66. package/bundle/{chunk-kp84yba1.js → chunk-61zpnwv6.js} +1 -1
  67. package/bundle/chunk-6d9wsjxm.js +2 -0
  68. package/bundle/{chunk-f6y7a5w3.js → chunk-6fp8a9ek.js} +2 -2
  69. package/bundle/{chunk-st74db4c.js → chunk-6hv59ere.js} +1 -1
  70. package/bundle/{chunk-56pwz1kk.js → chunk-6nbzdb0r.js} +1 -1
  71. package/bundle/{chunk-8ahpk8td.js → chunk-6p7yg5sr.js} +1 -1
  72. package/bundle/chunk-6q87abbr.js +2 -0
  73. package/bundle/{chunk-kfk1zqc1.js → chunk-6qy1ghrx.js} +1 -1
  74. package/bundle/chunk-730a2d1k.js +2 -0
  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-w3pzv615.js → chunk-7jbz3dgt.js} +1 -1
  81. package/bundle/{chunk-0ndvy0nh.js → chunk-7ppd2phw.js} +2 -2
  82. package/bundle/chunk-7py443fe.js +2 -0
  83. package/bundle/{chunk-ykxde207.js → chunk-7yrhe3xq.js} +2 -2
  84. package/bundle/chunk-8815p61h.js +2 -0
  85. package/bundle/{chunk-3s0d17xe.js → chunk-89q1y7tc.js} +1 -1
  86. package/bundle/{chunk-9wm41z2f.js → chunk-89v6dgpp.js} +2 -2
  87. package/bundle/{chunk-njzpswgt.js → chunk-8tc8x27z.js} +7 -7
  88. package/bundle/chunk-90q5sae0.js +2 -0
  89. package/bundle/chunk-92d9469t.js +2 -0
  90. package/bundle/chunk-9grvepmd.js +2 -0
  91. package/bundle/chunk-9hrh15p2.js +2 -0
  92. package/bundle/{chunk-t7tstr83.js → chunk-9j1qqdr2.js} +1 -1
  93. package/bundle/{chunk-58gp7wbg.js → chunk-a1p2f16h.js} +2 -2
  94. package/bundle/{chunk-fk8cctjy.js → chunk-a1pw9r6f.js} +2 -2
  95. package/bundle/chunk-a2qz9m10.js +2 -0
  96. package/bundle/chunk-a7cxf56j.js +2 -0
  97. package/bundle/{chunk-0w5npkgr.js → chunk-ab6cabxh.js} +1 -1
  98. package/bundle/{chunk-sdsggxm4.js → chunk-anjg3mwn.js} +2 -2
  99. package/bundle/chunk-av6ezvxm.js +2 -0
  100. package/bundle/{chunk-s2za1y84.js → chunk-aztre27e.js} +1 -1
  101. package/bundle/{chunk-xdv9xt0y.js → chunk-b0syck9r.js} +2 -2
  102. package/bundle/{chunk-s1h0k1yj.js → chunk-b3dqcbsc.js} +1 -1
  103. package/bundle/{chunk-ewvgbg68.js → chunk-b8tw709r.js} +1 -1
  104. package/bundle/{chunk-7fmy4cvn.js → chunk-b9za12y1.js} +1 -1
  105. package/bundle/{chunk-hybq019j.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-bkbngcvc.js +2 -0
  109. package/bundle/{chunk-32zrch7h.js → chunk-bss414qz.js} +1 -1
  110. package/bundle/{chunk-vthm5q05.js → chunk-btneef3z.js} +1 -1
  111. package/bundle/{chunk-5mec6cde.js → chunk-btz9jvec.js} +1 -1
  112. package/bundle/{chunk-6nk3wx6f.js → chunk-bvkq0a5q.js} +1 -1
  113. package/bundle/{chunk-kn318ev4.js → chunk-c01z3cvg.js} +2 -2
  114. package/bundle/{chunk-z559gc3n.js → chunk-c5e6sk9c.js} +1 -1
  115. package/bundle/{chunk-453wpzg6.js → chunk-c8k32724.js} +1 -1
  116. package/bundle/{chunk-2q76qax6.js → chunk-cafzcmrg.js} +2 -2
  117. package/bundle/{chunk-g6dgc5af.js → chunk-cdhmc0t0.js} +1 -1
  118. package/bundle/{chunk-xc3fadkh.js → chunk-chmrvbbj.js} +1 -1
  119. package/bundle/{chunk-s86fj82v.js → chunk-cmbxrgyx.js} +2 -2
  120. package/bundle/{chunk-14ag9ea0.js → chunk-ct48575c.js} +1 -1
  121. package/bundle/{chunk-5ymj2q6j.js → chunk-cvdxgsq1.js} +2 -2
  122. package/bundle/{chunk-g8wvr7a1.js → chunk-cwqd48xt.js} +2 -2
  123. package/bundle/chunk-cy9s1ma5.js +2 -0
  124. package/bundle/chunk-cydewa1c.js +2 -0
  125. package/bundle/{chunk-fxb6vjcb.js → chunk-d5bxan80.js} +2 -2
  126. package/bundle/{chunk-p0k4sv89.js → chunk-d6r4xwtg.js} +4 -4
  127. package/bundle/chunk-d7qscj5p.js +2 -0
  128. package/bundle/{chunk-cyjzqa5p.js → chunk-dafbntks.js} +204 -202
  129. package/bundle/{chunk-dazye86e.js → chunk-df6a167w.js} +2 -2
  130. package/bundle/{chunk-rf625fxx.js → chunk-dfnv7vkn.js} +1 -1
  131. package/bundle/{chunk-06x1p3t4.js → chunk-dhjp0zx2.js} +1 -1
  132. package/bundle/chunk-dpkynwgm.js +3 -0
  133. package/bundle/{chunk-xak2r993.js → chunk-dq9kpj4a.js} +2 -2
  134. package/bundle/{chunk-7tbvr236.js → chunk-drs1gv2b.js} +1 -1
  135. package/bundle/{chunk-xqxpjbqk.js → chunk-ds69qc8b.js} +1 -1
  136. package/bundle/chunk-dvk2wwjj.js +2 -0
  137. package/bundle/{chunk-vpqd0t8a.js → chunk-e0152ayv.js} +2 -2
  138. package/bundle/chunk-e0jy9qxd.js +2 -0
  139. package/bundle/{chunk-t6xm49ea.js → chunk-eb9mytjq.js} +1 -1
  140. package/bundle/{chunk-fk3praj7.js → chunk-ebcv65e3.js} +1 -1
  141. package/bundle/{chunk-08y06vgt.js → chunk-ebrt1me3.js} +2 -2
  142. package/bundle/{chunk-hjratj6g.js → chunk-ecn8gbtz.js} +1 -1
  143. package/bundle/chunk-emtebxvs.js +3 -0
  144. package/bundle/chunk-erg0ske8.js +2 -0
  145. package/bundle/{chunk-txty44v2.js → chunk-f2tdfry8.js} +2 -2
  146. package/bundle/{chunk-afhg3w2j.js → chunk-f45tp3e3.js} +1 -1
  147. package/bundle/chunk-f72pppr7.js +2 -0
  148. package/bundle/{chunk-pnj8s20t.js → chunk-fff3151r.js} +1 -1
  149. package/bundle/{chunk-0mekr486.js → chunk-fkgv2hqd.js} +1 -1
  150. package/bundle/{chunk-zvsafnkp.js → chunk-fnbpap62.js} +2 -2
  151. package/bundle/{chunk-4nck07pc.js → chunk-fzna6jdj.js} +2 -2
  152. package/bundle/{chunk-wg5dv21f.js → chunk-g16zb3y1.js} +2 -2
  153. package/bundle/{chunk-5yaahmjb.js → chunk-g1dwbvkg.js} +1 -1
  154. package/bundle/{chunk-1xkwm21b.js → chunk-g3dhsmbt.js} +3 -3
  155. package/bundle/{chunk-c0k8j498.js → chunk-g7rjtehn.js} +1 -1
  156. package/bundle/{chunk-e58pdw5k.js → chunk-gf0pdgjs.js} +2 -2
  157. package/bundle/{chunk-0m2tj2h9.js → chunk-ggqst87g.js} +1 -1
  158. package/bundle/{chunk-9zrwbxx0.js → chunk-gj7y56y6.js} +2 -2
  159. package/bundle/chunk-gk34kh8p.js +2 -0
  160. package/bundle/{chunk-1yx4jesj.js → chunk-gm85xefs.js} +1 -1
  161. package/bundle/chunk-gn50xqbd.js +2 -0
  162. package/bundle/{chunk-wmrq9qqf.js → chunk-gsez13bg.js} +1 -1
  163. package/bundle/{chunk-s54c8fpf.js → chunk-h0rpmne5.js} +1 -1
  164. package/bundle/chunk-h602h2gx.js +2 -0
  165. package/bundle/chunk-h7s2w1e2.js +2 -0
  166. package/bundle/{chunk-91khd3fq.js → chunk-h9pvnp5c.js} +1 -1
  167. package/bundle/{chunk-07net7s8.js → chunk-hj5y7fvk.js} +1 -1
  168. package/bundle/{chunk-qmhcbdkg.js → chunk-hk698g9e.js} +2 -2
  169. package/bundle/chunk-hmv2cdnz.js +2 -0
  170. package/bundle/chunk-hnb8v476.js +2 -0
  171. package/bundle/chunk-ht81ensf.js +2 -0
  172. package/bundle/chunk-hxgs0d4t.js +2 -0
  173. package/bundle/chunk-j59ktwny.js +2 -0
  174. package/bundle/{chunk-3zn71txs.js → chunk-j5kb0y1m.js} +1 -1
  175. package/bundle/{chunk-qpv4438m.js → chunk-j6emx6jn.js} +2 -2
  176. package/bundle/{chunk-x36jhtex.js → chunk-j8efst22.js} +1 -1
  177. package/bundle/{chunk-z4ae6jmb.js → chunk-j9pcnkkq.js} +3 -3
  178. package/bundle/{chunk-y2ch07yv.js → chunk-jje0srjq.js} +2 -2
  179. package/bundle/{chunk-nxjbbq5h.js → chunk-jm1ptn8n.js} +1 -1
  180. package/bundle/chunk-jmz2mq3t.js +2 -0
  181. package/bundle/chunk-jr907144.js +2 -0
  182. package/bundle/{chunk-eq33vmze.js → chunk-jx27xrk1.js} +2 -2
  183. package/bundle/{chunk-m7txgh5w.js → chunk-k2tamnfv.js} +1 -1
  184. package/bundle/chunk-k309zez0.js +3 -0
  185. package/bundle/chunk-k3epfxmq.js +2 -0
  186. package/bundle/chunk-k3fn3yed.js +2 -0
  187. package/bundle/chunk-k5q52wdq.js +2 -0
  188. package/bundle/chunk-k7g3h9tn.js +3 -0
  189. package/bundle/{chunk-wg42cxrw.js → chunk-k7gq9bra.js} +1 -1
  190. package/bundle/{chunk-vyjsng14.js → chunk-kb6w3wbd.js} +1 -1
  191. package/bundle/{chunk-qm9ezq93.js → chunk-kdcnder5.js} +1 -1
  192. package/bundle/{chunk-28vnspd4.js → chunk-kfsb2stm.js} +1 -1
  193. package/bundle/chunk-kfsn9c7m.js +2 -0
  194. package/bundle/{chunk-kvz0vzsn.js → chunk-knpt9n8f.js} +1 -1
  195. package/bundle/chunk-kpw6nghv.js +2 -0
  196. package/bundle/{chunk-cbmw8fy2.js → chunk-kqn9h2gk.js} +1 -1
  197. package/bundle/chunk-krhkrca9.js +2 -0
  198. package/bundle/{chunk-kbyk7hyn.js → chunk-m02zt1a3.js} +2 -2
  199. package/bundle/{chunk-yqtfvgrp.js → chunk-m1h5a4vg.js} +1 -1
  200. package/bundle/chunk-m5ghbt5y.js +2 -0
  201. package/bundle/{chunk-7ryv0f5h.js → chunk-m612agnk.js} +1 -1
  202. package/bundle/{chunk-05amr7y9.js → chunk-m67tcnk4.js} +1 -1
  203. package/bundle/{chunk-2sy1wx99.js → chunk-m8yv4sd2.js} +1 -1
  204. package/bundle/{chunk-613kegcn.js → chunk-mgk9sh16.js} +1 -1
  205. package/bundle/{chunk-7e1aw8rw.js → chunk-mk6cddvd.js} +1 -1
  206. package/bundle/chunk-mn41f9qv.js +2 -0
  207. package/bundle/chunk-mqjf9sbm.js +2 -0
  208. package/bundle/{chunk-n10atvac.js → chunk-msegx0t7.js} +1 -1
  209. package/bundle/{chunk-8bzwgcjb.js → chunk-mskwkcgj.js} +1 -1
  210. package/bundle/chunk-my7mn79h.js +9 -0
  211. package/bundle/{chunk-7rxsj310.js → chunk-n0mygdfp.js} +2 -2
  212. package/bundle/chunk-n5gwrrbb.js +2 -0
  213. package/bundle/{chunk-1xpx1t40.js → chunk-n8h6x2en.js} +2 -2
  214. package/bundle/chunk-nfjhem1c.js +2 -0
  215. package/bundle/{chunk-j0ftbmex.js → chunk-ngchsw2g.js} +2 -2
  216. package/bundle/{chunk-3rgct4bd.js → chunk-nj4d554m.js} +1 -1
  217. package/bundle/{chunk-w4hbw37v.js → chunk-nt4e3em9.js} +1 -1
  218. package/bundle/chunk-nxyyn2ra.js +2 -0
  219. package/bundle/{chunk-md7vpe1e.js → chunk-nzehfpxp.js} +1 -1
  220. package/bundle/chunk-p5tceb4k.js +2 -0
  221. package/bundle/{chunk-3w64fpwn.js → chunk-p68rwmhc.js} +2 -2
  222. package/bundle/chunk-pdzpfkt0.js +3 -0
  223. package/bundle/{chunk-nszqy06d.js → chunk-pekm54ce.js} +1 -1
  224. package/bundle/{chunk-tedrfa7d.js → chunk-phxrg7aw.js} +2 -2
  225. package/bundle/{chunk-81engf0t.js → chunk-ppfjf7qx.js} +1 -1
  226. package/bundle/{chunk-41ftye7w.js → chunk-pxtqqmkc.js} +1 -1
  227. package/bundle/{chunk-s5krbdvd.js → chunk-q1v2pytx.js} +1 -1
  228. package/bundle/{chunk-w01gjnty.js → chunk-q6ztpfcs.js} +2 -2
  229. package/bundle/{chunk-z2m09m4w.js → chunk-qc1w4b12.js} +1 -1
  230. package/bundle/{chunk-yvj021eg.js → chunk-qhc90p4a.js} +2 -2
  231. package/bundle/chunk-qjgm3e2p.js +2 -0
  232. package/bundle/{chunk-qkwhgfjt.js → chunk-qjjch1zt.js} +2 -2
  233. package/bundle/{chunk-f3rrd2p6.js → chunk-qjn86fc0.js} +1 -1
  234. package/bundle/{chunk-qq71akpw.js → chunk-qrey2gwb.js} +2 -2
  235. package/bundle/{chunk-pjbbdm96.js → chunk-qv2s39dv.js} +2 -2
  236. package/bundle/{chunk-2yb59jwr.js → chunk-qvxvc2c2.js} +1 -1
  237. package/bundle/{chunk-ygwe0vf1.js → chunk-rmr38x2f.js} +2 -2
  238. package/bundle/chunk-s07j8hfy.js +2 -0
  239. package/bundle/chunk-s1cnzvb2.js +2 -0
  240. package/bundle/{chunk-01gwb793.js → chunk-s3yna2wm.js} +1 -1
  241. package/bundle/{chunk-0vqrakhw.js → chunk-s6bar2f9.js} +1 -1
  242. package/bundle/chunk-sbyey0qb.js +2 -0
  243. package/bundle/{chunk-ze00x1xb.js → chunk-scnz207s.js} +2 -2
  244. package/bundle/{chunk-xdwej3ae.js → chunk-scsf8r98.js} +1 -1
  245. package/bundle/{chunk-xcs2jbz9.js → chunk-sermjas1.js} +1 -1
  246. package/bundle/chunk-sj5v361q.js +2 -0
  247. package/bundle/{chunk-6wdwwpsc.js → chunk-smt14yjb.js} +2 -2
  248. package/bundle/{chunk-ynfbz3sz.js → chunk-snm5q21k.js} +2 -2
  249. package/bundle/{chunk-4920vf6a.js → chunk-srh4xvsj.js} +1 -1
  250. package/bundle/{chunk-g7vahvkz.js → chunk-szr0f7k2.js} +1 -1
  251. package/bundle/{chunk-vw673y0t.js → chunk-t12xrrfr.js} +2 -2
  252. package/bundle/{chunk-fvy5w4dh.js → chunk-t22jbw8x.js} +1 -1
  253. package/bundle/{chunk-hkmb3zer.js → chunk-t2tgz0rc.js} +2 -2
  254. package/bundle/{chunk-6fpfr8tk.js → chunk-tj78jsp9.js} +1 -1
  255. package/bundle/chunk-tpndnprb.js +2 -0
  256. package/bundle/{chunk-jdkxeqw5.js → chunk-tr8sf0dk.js} +1 -1
  257. package/bundle/{chunk-hyckncza.js → chunk-v2zp22r3.js} +2 -2
  258. package/bundle/{chunk-0cehm5fn.js → chunk-v4xcysh0.js} +1 -1
  259. package/bundle/{chunk-7qxn24qa.js → chunk-v965rsr8.js} +2 -2
  260. package/bundle/{chunk-0304b7xg.js → chunk-va316nee.js} +1 -1
  261. package/bundle/{chunk-6h2faxs9.js → chunk-vg2fmyje.js} +2 -2
  262. package/bundle/{chunk-yt1yk4j1.js → chunk-vj62pc0h.js} +1 -1
  263. package/bundle/{chunk-hk8j5ht8.js → chunk-vn7nkrqb.js} +2 -2
  264. package/bundle/chunk-vwxfgea7.js +2 -0
  265. package/bundle/chunk-w0kgcz1t.js +2 -0
  266. package/bundle/{chunk-zjvzc0my.js → chunk-w87a3mzm.js} +1 -1
  267. package/bundle/chunk-w9vh7rhg.js +2 -0
  268. package/bundle/{chunk-9p83me3p.js → chunk-whxjkz9a.js} +2 -2
  269. package/bundle/chunk-wksczmes.js +2 -0
  270. package/bundle/{chunk-2kdn66xt.js → chunk-wnqwb6fd.js} +1 -1
  271. package/bundle/chunk-wrfvqp2w.js +2 -0
  272. package/bundle/chunk-wsxta33r.js +2 -0
  273. package/bundle/{chunk-rvrjw0fy.js → chunk-wsy0m70r.js} +1 -1
  274. package/bundle/{chunk-w2gpgapp.js → chunk-wy46mbwt.js} +1 -1
  275. package/bundle/{chunk-cqhpbfcn.js → chunk-wz0zcddf.js} +3 -3
  276. package/bundle/{chunk-q2exgz82.js → chunk-x067eetw.js} +1 -1
  277. package/bundle/{chunk-d2n09yvh.js → chunk-x1rx6fm7.js} +2 -2
  278. package/bundle/{chunk-j7zs1yg2.js → chunk-x7ers083.js} +1 -1
  279. package/bundle/{chunk-admgf65a.js → chunk-x9s04nze.js} +1 -1
  280. package/bundle/{chunk-fkat2pw6.js → chunk-xc5044tm.js} +1 -1
  281. package/bundle/chunk-xck0sq3k.js +2 -0
  282. package/bundle/chunk-xjyhtm8r.js +2 -0
  283. package/bundle/{chunk-rs0nx844.js → chunk-xpc2zgj7.js} +2 -2
  284. package/bundle/{chunk-54pk7nna.js → chunk-xrxyrr00.js} +1 -1
  285. package/bundle/{chunk-zna6neq5.js → chunk-xs3xtz6x.js} +1 -1
  286. package/bundle/{chunk-kpnfndkg.js → chunk-xvfpzmrf.js} +1 -1
  287. package/bundle/{chunk-crap29f6.js → chunk-xxbqhg9n.js} +1 -1
  288. package/bundle/{chunk-gaxbbxk6.js → chunk-y062spw2.js} +1 -1
  289. package/bundle/{chunk-bse8p94q.js → chunk-y2v09y71.js} +1 -1
  290. package/bundle/{chunk-jzcz92pq.js → chunk-y88xh6w3.js} +2 -2
  291. package/bundle/{chunk-g4qwkcdv.js → chunk-yajd975f.js} +1 -1
  292. package/bundle/chunk-yc1jk3rm.js +2 -0
  293. package/bundle/{chunk-5dm3p5r6.js → chunk-ydp0q1hk.js} +1 -1
  294. package/bundle/{chunk-gxa2r4zc.js → chunk-yfkvjphe.js} +1 -1
  295. package/bundle/chunk-ygc5qegv.js +2 -0
  296. package/bundle/{chunk-kbg3k1az.js → chunk-yhk7d1j0.js} +1 -1
  297. package/bundle/chunk-yjqmzm51.js +2 -0
  298. package/bundle/{chunk-49ypxzfx.js → chunk-yjtdgcq5.js} +1 -1
  299. package/bundle/{chunk-mg239rc3.js → chunk-yp0a8q29.js} +3 -3
  300. package/bundle/{chunk-p31yg62z.js → chunk-yq3m8190.js} +2 -2
  301. package/bundle/{chunk-rze20q68.js → chunk-yt3f3j35.js} +1 -1
  302. package/bundle/{chunk-tfggzzqw.js → chunk-ywkvq7zb.js} +1 -1
  303. package/bundle/{chunk-z3hj5bfd.js → chunk-z37aqajx.js} +2 -2
  304. package/bundle/chunk-z4z8hk7e.js +2 -0
  305. package/bundle/{chunk-vy9xre57.js → chunk-z6dnv8g5.js} +1 -1
  306. package/bundle/chunk-z7y9pdj7.js +2 -0
  307. package/bundle/chunk-z8g819cz.js +2 -0
  308. package/bundle/{chunk-h56jxxvj.js → chunk-z8v2tsz2.js} +1 -1
  309. package/bundle/{chunk-vztxv9dj.js → chunk-zb0me4kk.js} +1 -1
  310. package/bundle/{chunk-7ez3ye6e.js → chunk-zcm2jdr5.js} +1 -1
  311. package/bundle/chunk-zqv7fx25.js +2 -0
  312. package/bundle/chunk-zt1nbwmm.js +2 -0
  313. package/bundle/{chunk-fd9zrmhr.js → chunk-ztc3gm8y.js} +2 -2
  314. package/bundle/chunk-zw0yh3dv.js +2 -0
  315. package/bundle/{chunk-x3931we7.js → chunk-zyhdxggp.js} +2 -2
  316. package/bundle/index.js +3 -3
  317. package/bundle/parser.worker.js +2 -2
  318. package/bundle/qffi.node +0 -0
  319. package/bundle/worker.js +1 -1
  320. package/package.json +1 -1
  321. package/bundle/chunk-09ecxdmd.js +0 -2
  322. package/bundle/chunk-0jaj2g7x.js +0 -2
  323. package/bundle/chunk-0nr2925m.js +0 -2
  324. package/bundle/chunk-0wbq1y92.js +0 -2
  325. package/bundle/chunk-12pxszgn.js +0 -2
  326. package/bundle/chunk-1337582e.js +0 -2
  327. package/bundle/chunk-182jf8fz.js +0 -2
  328. package/bundle/chunk-1ht3zcsh.js +0 -2
  329. package/bundle/chunk-25zkavr0.js +0 -2
  330. package/bundle/chunk-2cm91ktc.js +0 -3
  331. package/bundle/chunk-2jfd82jk.js +0 -2
  332. package/bundle/chunk-2k7bbzj2.js +0 -2
  333. package/bundle/chunk-30081kwd.js +0 -2
  334. package/bundle/chunk-3kdhvq0p.js +0 -3
  335. package/bundle/chunk-3vag59se.js +0 -2
  336. package/bundle/chunk-3x5v6sjw.js +0 -2
  337. package/bundle/chunk-43ep9d7a.js +0 -2
  338. package/bundle/chunk-48j09m6e.js +0 -3
  339. package/bundle/chunk-4qqja22v.js +0 -2
  340. package/bundle/chunk-5gazgxt5.js +0 -2
  341. package/bundle/chunk-63znhwx0.js +0 -2
  342. package/bundle/chunk-6hmyy7n6.js +0 -2
  343. package/bundle/chunk-7dyddrpk.js +0 -2
  344. package/bundle/chunk-7penjsgq.js +0 -2
  345. package/bundle/chunk-7t5gzkj6.js +0 -2
  346. package/bundle/chunk-89vgt8vq.js +0 -2
  347. package/bundle/chunk-8e8n82f9.js +0 -2
  348. package/bundle/chunk-97exhw9j.js +0 -2
  349. package/bundle/chunk-9cvkaht5.js +0 -2
  350. package/bundle/chunk-akdvstd9.js +0 -2
  351. package/bundle/chunk-ave2e4sa.js +0 -2
  352. package/bundle/chunk-axnwehc7.js +0 -2
  353. package/bundle/chunk-bmzyxspj.js +0 -2
  354. package/bundle/chunk-bvaqpfv8.js +0 -2
  355. package/bundle/chunk-cxb05cdg.js +0 -2
  356. package/bundle/chunk-cxe92z5c.js +0 -2
  357. package/bundle/chunk-d5wp85kw.js +0 -2
  358. package/bundle/chunk-dm5xnb4t.js +0 -2
  359. package/bundle/chunk-dpeqsvan.js +0 -2
  360. package/bundle/chunk-drxtmg5c.js +0 -2
  361. package/bundle/chunk-e9pfdjcy.js +0 -2
  362. package/bundle/chunk-ejn5hfzd.js +0 -2
  363. package/bundle/chunk-ek1fawsj.js +0 -3
  364. package/bundle/chunk-ernd18jb.js +0 -2
  365. package/bundle/chunk-ff9b4cg8.js +0 -2
  366. package/bundle/chunk-fpff6a4q.js +0 -2
  367. package/bundle/chunk-gq361kdt.js +0 -2
  368. package/bundle/chunk-hbagpppv.js +0 -2
  369. package/bundle/chunk-hf473xav.js +0 -2
  370. package/bundle/chunk-hr88054m.js +0 -2
  371. package/bundle/chunk-j3czd7v2.js +0 -28
  372. package/bundle/chunk-j9m2d6t5.js +0 -2
  373. package/bundle/chunk-jd9edy2s.js +0 -2
  374. package/bundle/chunk-jwtdbx31.js +0 -2
  375. package/bundle/chunk-kbjwdv1x.js +0 -8223
  376. package/bundle/chunk-krkxrej2.js +0 -2
  377. package/bundle/chunk-m26mcy8p.js +0 -2
  378. package/bundle/chunk-m62wgqp1.js +0 -2
  379. package/bundle/chunk-m84cn9c6.js +0 -2
  380. package/bundle/chunk-mvc7pvtq.js +0 -2
  381. package/bundle/chunk-nfp9xtca.js +0 -3
  382. package/bundle/chunk-ngz5xw45.js +0 -3
  383. package/bundle/chunk-p5t9mq8r.js +0 -2
  384. package/bundle/chunk-pfbykat1.js +0 -2
  385. package/bundle/chunk-qd0nvn4z.js +0 -2
  386. package/bundle/chunk-qh99kv2j.js +0 -2
  387. package/bundle/chunk-qyrafh4m.js +0 -2
  388. package/bundle/chunk-rc37cw86.js +0 -2
  389. package/bundle/chunk-rmpty636.js +0 -2
  390. package/bundle/chunk-rz54qjew.js +0 -2
  391. package/bundle/chunk-s3wjwxme.js +0 -2
  392. package/bundle/chunk-s4ncnbgd.js +0 -2
  393. package/bundle/chunk-snz3w30x.js +0 -2
  394. package/bundle/chunk-srw748gr.js +0 -2
  395. package/bundle/chunk-tn167yyz.js +0 -2
  396. package/bundle/chunk-v1xwe58d.js +0 -2
  397. package/bundle/chunk-vh05n2x3.js +0 -2
  398. package/bundle/chunk-vrfegg5f.js +0 -2
  399. package/bundle/chunk-w12tky28.js +0 -2
  400. package/bundle/chunk-w9ct698t.js +0 -2
  401. package/bundle/chunk-wms4skr9.js +0 -11
  402. package/bundle/chunk-wr5hdsst.js +0 -9
  403. package/bundle/chunk-wxnqgh8t.js +0 -2
  404. package/bundle/chunk-wzmte7sy.js +0 -3
  405. package/bundle/chunk-x0h1jdxt.js +0 -2
  406. package/bundle/chunk-x6hsmnhz.js +0 -2
  407. package/bundle/chunk-xg9e0enb.js +0 -2
  408. package/bundle/chunk-xtxxb25n.js +0 -2
  409. package/bundle/chunk-y3s7sh1e.js +0 -2
  410. package/bundle/chunk-ydvheqw9.js +0 -2
  411. package/bundle/chunk-yxnq0d7k.js +0 -2
  412. package/bundle/chunk-z2raegj9.js +0 -2
  413. package/bundle/chunk-z3pyhmg6.js +0 -2
  414. package/bundle/chunk-z7pg6sw1.js +0 -2
  415. package/bundle/chunk-z84376c6.js +0 -2
  416. package/bundle/chunk-zn8th65r.js +0 -2
  417. package/bundle/chunk-ztv1brgn.js +0 -2
  418. package/bundle/chunk-zyxvd9fj.js +0 -2
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{qf as u}from"./chunk-yvj021eg.js";import{DP as Q,GP as Kq}from"./chunk-s2za1y84.js";var D=Q((iq,j)=>{var{defineProperty:X,getOwnPropertyDescriptor:r,getOwnPropertyNames:o}=Object,a=Object.prototype.hasOwnProperty,t=(q,z)=>X(q,"name",{value:z,configurable:!0}),qq=(q,z)=>{for(var G in z)X(q,G,{get:z[G],enumerable:!0})},zq=(q,z,G,K)=>{if(z&&typeof z==="object"||typeof z==="function"){for(let I of o(z))if(!a.call(q,I)&&I!==G)X(q,I,{get:()=>z[I],enumerable:!(K=r(z,I))||K.enumerable})}return q},Gq=(q)=>zq(X({},"__esModule",{value:!0}),q),J={};qq(J,{isArrayBuffer:()=>Iq});j.exports=Gq(J);var Iq=t((q)=>typeof ArrayBuffer==="function"&&q instanceof ArrayBuffer||Object.prototype.toString.call(q)==="[object ArrayBuffer]","isArrayBuffer")});var O=Q((dq,R)=>{var{defineProperty:Y,getOwnPropertyDescriptor:Qq,getOwnPropertyNames:Vq}=Object,Wq=Object.prototype.hasOwnProperty,E=(q,z)=>Y(q,"name",{value:z,configurable:!0}),Xq=(q,z)=>{for(var G in z)Y(q,G,{get:z[G],enumerable:!0})},Yq=(q,z,G,K)=>{if(z&&typeof z==="object"||typeof z==="function"){for(let I of Vq(z))if(!Wq.call(q,I)&&I!==G)Y(q,I,{get:()=>z[I],enumerable:!(K=Qq(z,I))||K.enumerable})}return q},Zq=(q)=>Yq(Y({},"__esModule",{value:!0}),q),L={};Xq(L,{fromArrayBuffer:()=>Nq,fromString:()=>Fq});R.exports=Zq(L);var $q=D(),$=Kq("buffer"),Nq=E((q,z=0,G=q.byteLength-z)=>{if(!(0,$q.isArrayBuffer)(q))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof q} (${q})`);return $.Buffer.from(q,z,G)},"fromArrayBuffer"),Fq=E((q,z)=>{if(typeof q!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof q} (${q})`);return z?$.Buffer.from(q,z):$.Buffer.from(q)},"fromString")});var A=Q((mq,h)=>{var{defineProperty:Z,getOwnPropertyDescriptor:Hq,getOwnPropertyNames:Bq}=Object,Jq=Object.prototype.hasOwnProperty,N=(q,z)=>Z(q,"name",{value:z,configurable:!0}),jq=(q,z)=>{for(var G in z)Z(q,G,{get:z[G],enumerable:!0})},Dq=(q,z,G,K)=>{if(z&&typeof z==="object"||typeof z==="function"){for(let I of Bq(z))if(!Jq.call(q,I)&&I!==G)Z(q,I,{get:()=>z[I],enumerable:!(K=Hq(z,I))||K.enumerable})}return q},Eq=(q)=>Dq(Z({},"__esModule",{value:!0}),q),v={};jq(v,{fromUtf8:()=>S,toUint8Array:()=>Lq,toUtf8:()=>Rq});h.exports=Eq(v);var M=O(),S=N((q)=>{let z=(0,M.fromString)(q,"utf8");return new Uint8Array(z.buffer,z.byteOffset,z.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),Lq=N((q)=>{if(typeof q==="string")return S(q);if(ArrayBuffer.isView(q))return new Uint8Array(q.buffer,q.byteOffset,q.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(q)},"toUint8Array"),Rq=N((q)=>{if(typeof q==="string")return q;if(typeof q!=="object"||typeof q.byteOffset!=="number"||typeof q.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return(0,M.fromArrayBuffer)(q.buffer,q.byteOffset,q.byteLength).toString("utf8")},"toUtf8")});var w=Q((C)=>{Object.defineProperty(C,"__esModule",{value:!0});C.convertToBuffer=void 0;var Oq=A(),vq=typeof Buffer<"u"&&Buffer.from?function(q){return Buffer.from(q,"utf8")}:Oq.fromUtf8;function Mq(q){if(q instanceof Uint8Array)return q;if(typeof q==="string")return vq(q);if(ArrayBuffer.isView(q))return new Uint8Array(q.buffer,q.byteOffset,q.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(q)}C.convertToBuffer=Mq});var U=Q((P)=>{Object.defineProperty(P,"__esModule",{value:!0});P.isEmptyData=void 0;function Sq(q){if(typeof q==="string")return q.length===0;return q.byteLength===0}P.isEmptyData=Sq});var y=Q((b)=>{Object.defineProperty(b,"__esModule",{value:!0});b.numToUint8=void 0;function hq(q){return new Uint8Array([(q&4278190080)>>24,(q&16711680)>>16,(q&65280)>>8,q&255])}b.numToUint8=hq});var l=Q((x)=>{Object.defineProperty(x,"__esModule",{value:!0});x.uint32ArrayFrom=void 0;function Aq(q){if(!Uint32Array.from){var z=new Uint32Array(q.length),G=0;while(G<q.length)z[G]=q[G],G+=1;return z}return Uint32Array.from(q)}x.uint32ArrayFrom=Aq});var F=Q((V)=>{Object.defineProperty(V,"__esModule",{value:!0});V.uint32ArrayFrom=V.numToUint8=V.isEmptyData=V.convertToBuffer=void 0;var Cq=w();Object.defineProperty(V,"convertToBuffer",{enumerable:!0,get:function(){return Cq.convertToBuffer}});var Tq=U();Object.defineProperty(V,"isEmptyData",{enumerable:!0,get:function(){return Tq.isEmptyData}});var wq=y();Object.defineProperty(V,"numToUint8",{enumerable:!0,get:function(){return wq.numToUint8}});var Pq=l();Object.defineProperty(V,"uint32ArrayFrom",{enumerable:!0,get:function(){return Pq.uint32ArrayFrom}})});var m=Q((i)=>{Object.defineProperty(i,"__esModule",{value:!0});i.AwsCrc32=void 0;var s=u(),H=F(),f=n(),Uq=function(){function q(){this.crc32=new f.Crc32}return q.prototype.update=function(z){if((0,H.isEmptyData)(z))return;this.crc32.update((0,H.convertToBuffer)(z))},q.prototype.digest=function(){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(z){return[2,(0,H.numToUint8)(this.crc32.digest())]})})},q.prototype.reset=function(){this.crc32=new f.Crc32},q}();i.AwsCrc32=Uq});var n=Q((B)=>{Object.defineProperty(B,"__esModule",{value:!0});B.AwsCrc32=B.Crc32=B.crc32=void 0;var bq=u(),gq=F();function yq(q){return new p().update(q).digest()}B.crc32=yq;var p=function(){function q(){this.checksum=4294967295}return q.prototype.update=function(z){var G,K;try{for(var I=bq.__values(z),W=I.next();!W.done;W=I.next()){var _=W.value;this.checksum=this.checksum>>>8^cq[(this.checksum^_)&255]}}catch(e){G={error:e}}finally{try{if(W&&!W.done&&(K=I.return))K.call(I)}finally{if(G)throw G.error}}return this},q.prototype.digest=function(){return(this.checksum^4294967295)>>>0},q}();B.Crc32=p;var xq=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918000,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],cq=(0,gq.uint32ArrayFrom)(xq),lq=m();Object.defineProperty(B,"AwsCrc32",{enumerable:!0,get:function(){return lq.AwsCrc32}})});
3
- export{n as pf};
2
+ import{rf as u}from"./chunk-qhc90p4a.js";import{aQ as Q,dQ as Kq}from"./chunk-aztre27e.js";var D=Q((iq,j)=>{var{defineProperty:X,getOwnPropertyDescriptor:r,getOwnPropertyNames:o}=Object,a=Object.prototype.hasOwnProperty,t=(q,z)=>X(q,"name",{value:z,configurable:!0}),qq=(q,z)=>{for(var G in z)X(q,G,{get:z[G],enumerable:!0})},zq=(q,z,G,K)=>{if(z&&typeof z==="object"||typeof z==="function"){for(let I of o(z))if(!a.call(q,I)&&I!==G)X(q,I,{get:()=>z[I],enumerable:!(K=r(z,I))||K.enumerable})}return q},Gq=(q)=>zq(X({},"__esModule",{value:!0}),q),J={};qq(J,{isArrayBuffer:()=>Iq});j.exports=Gq(J);var Iq=t((q)=>typeof ArrayBuffer==="function"&&q instanceof ArrayBuffer||Object.prototype.toString.call(q)==="[object ArrayBuffer]","isArrayBuffer")});var O=Q((dq,R)=>{var{defineProperty:Y,getOwnPropertyDescriptor:Qq,getOwnPropertyNames:Vq}=Object,Wq=Object.prototype.hasOwnProperty,E=(q,z)=>Y(q,"name",{value:z,configurable:!0}),Xq=(q,z)=>{for(var G in z)Y(q,G,{get:z[G],enumerable:!0})},Yq=(q,z,G,K)=>{if(z&&typeof z==="object"||typeof z==="function"){for(let I of Vq(z))if(!Wq.call(q,I)&&I!==G)Y(q,I,{get:()=>z[I],enumerable:!(K=Qq(z,I))||K.enumerable})}return q},Zq=(q)=>Yq(Y({},"__esModule",{value:!0}),q),L={};Xq(L,{fromArrayBuffer:()=>Nq,fromString:()=>Fq});R.exports=Zq(L);var $q=D(),$=Kq("buffer"),Nq=E((q,z=0,G=q.byteLength-z)=>{if(!(0,$q.isArrayBuffer)(q))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof q} (${q})`);return $.Buffer.from(q,z,G)},"fromArrayBuffer"),Fq=E((q,z)=>{if(typeof q!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof q} (${q})`);return z?$.Buffer.from(q,z):$.Buffer.from(q)},"fromString")});var A=Q((mq,h)=>{var{defineProperty:Z,getOwnPropertyDescriptor:Hq,getOwnPropertyNames:Bq}=Object,Jq=Object.prototype.hasOwnProperty,N=(q,z)=>Z(q,"name",{value:z,configurable:!0}),jq=(q,z)=>{for(var G in z)Z(q,G,{get:z[G],enumerable:!0})},Dq=(q,z,G,K)=>{if(z&&typeof z==="object"||typeof z==="function"){for(let I of Bq(z))if(!Jq.call(q,I)&&I!==G)Z(q,I,{get:()=>z[I],enumerable:!(K=Hq(z,I))||K.enumerable})}return q},Eq=(q)=>Dq(Z({},"__esModule",{value:!0}),q),v={};jq(v,{fromUtf8:()=>S,toUint8Array:()=>Lq,toUtf8:()=>Rq});h.exports=Eq(v);var M=O(),S=N((q)=>{let z=(0,M.fromString)(q,"utf8");return new Uint8Array(z.buffer,z.byteOffset,z.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),Lq=N((q)=>{if(typeof q==="string")return S(q);if(ArrayBuffer.isView(q))return new Uint8Array(q.buffer,q.byteOffset,q.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(q)},"toUint8Array"),Rq=N((q)=>{if(typeof q==="string")return q;if(typeof q!=="object"||typeof q.byteOffset!=="number"||typeof q.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return(0,M.fromArrayBuffer)(q.buffer,q.byteOffset,q.byteLength).toString("utf8")},"toUtf8")});var w=Q((C)=>{Object.defineProperty(C,"__esModule",{value:!0});C.convertToBuffer=void 0;var Oq=A(),vq=typeof Buffer<"u"&&Buffer.from?function(q){return Buffer.from(q,"utf8")}:Oq.fromUtf8;function Mq(q){if(q instanceof Uint8Array)return q;if(typeof q==="string")return vq(q);if(ArrayBuffer.isView(q))return new Uint8Array(q.buffer,q.byteOffset,q.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(q)}C.convertToBuffer=Mq});var U=Q((P)=>{Object.defineProperty(P,"__esModule",{value:!0});P.isEmptyData=void 0;function Sq(q){if(typeof q==="string")return q.length===0;return q.byteLength===0}P.isEmptyData=Sq});var y=Q((b)=>{Object.defineProperty(b,"__esModule",{value:!0});b.numToUint8=void 0;function hq(q){return new Uint8Array([(q&4278190080)>>24,(q&16711680)>>16,(q&65280)>>8,q&255])}b.numToUint8=hq});var l=Q((x)=>{Object.defineProperty(x,"__esModule",{value:!0});x.uint32ArrayFrom=void 0;function Aq(q){if(!Uint32Array.from){var z=new Uint32Array(q.length),G=0;while(G<q.length)z[G]=q[G],G+=1;return z}return Uint32Array.from(q)}x.uint32ArrayFrom=Aq});var F=Q((V)=>{Object.defineProperty(V,"__esModule",{value:!0});V.uint32ArrayFrom=V.numToUint8=V.isEmptyData=V.convertToBuffer=void 0;var Cq=w();Object.defineProperty(V,"convertToBuffer",{enumerable:!0,get:function(){return Cq.convertToBuffer}});var Tq=U();Object.defineProperty(V,"isEmptyData",{enumerable:!0,get:function(){return Tq.isEmptyData}});var wq=y();Object.defineProperty(V,"numToUint8",{enumerable:!0,get:function(){return wq.numToUint8}});var Pq=l();Object.defineProperty(V,"uint32ArrayFrom",{enumerable:!0,get:function(){return Pq.uint32ArrayFrom}})});var m=Q((i)=>{Object.defineProperty(i,"__esModule",{value:!0});i.AwsCrc32=void 0;var s=u(),H=F(),f=n(),Uq=function(){function q(){this.crc32=new f.Crc32}return q.prototype.update=function(z){if((0,H.isEmptyData)(z))return;this.crc32.update((0,H.convertToBuffer)(z))},q.prototype.digest=function(){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(z){return[2,(0,H.numToUint8)(this.crc32.digest())]})})},q.prototype.reset=function(){this.crc32=new f.Crc32},q}();i.AwsCrc32=Uq});var n=Q((B)=>{Object.defineProperty(B,"__esModule",{value:!0});B.AwsCrc32=B.Crc32=B.crc32=void 0;var bq=u(),gq=F();function yq(q){return new p().update(q).digest()}B.crc32=yq;var p=function(){function q(){this.checksum=4294967295}return q.prototype.update=function(z){var G,K;try{for(var I=bq.__values(z),W=I.next();!W.done;W=I.next()){var _=W.value;this.checksum=this.checksum>>>8^cq[(this.checksum^_)&255]}}catch(e){G={error:e}}finally{try{if(W&&!W.done&&(K=I.return))K.call(I)}finally{if(G)throw G.error}}return this},q.prototype.digest=function(){return(this.checksum^4294967295)>>>0},q}();B.Crc32=p;var xq=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918000,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],cq=(0,gq.uint32ArrayFrom)(xq),lq=m();Object.defineProperty(B,"AwsCrc32",{enumerable:!0,get:function(){return lq.AwsCrc32}})});
3
+ export{n as qf};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import"./chunk-s2za1y84.js";var e={"ui.sessionReview.title":"Cambios de la sesi\xF3n","ui.sessionReview.title.lastTurn":"Cambios del \xFAltimo turno","ui.sessionReview.diffStyle.unified":"Unificado","ui.sessionReview.diffStyle.split":"Dividido","ui.sessionReview.openFile":"Abrir archivo","ui.sessionReview.selection.line":"l\xEDnea {{line}}","ui.sessionReview.selection.lines":"l\xEDneas {{start}}-{{end}}","ui.sessionReview.expandAll":"Expandir todo","ui.sessionReview.collapseAll":"Colapsar todo","ui.sessionReview.change.added":"A\xF1adido","ui.sessionReview.change.removed":"Eliminado","ui.sessionReview.change.modified":"Modificado","ui.sessionReview.image.loading":"Cargando...","ui.sessionReview.image.placeholder":"Imagen","ui.sessionReview.largeDiff.title":"Diff demasiado grande para renderizar","ui.sessionReview.largeDiff.meta":"L\xEDmite: {{limit}} l\xEDneas modificadas. Actual: {{current}} l\xEDneas modificadas.","ui.sessionReview.largeDiff.renderAnyway":"Renderizar de todos modos","ui.fileMedia.kind.image":"imagen","ui.fileMedia.kind.audio":"audio","ui.fileMedia.state.removed":"Archivo de {{kind}} eliminado","ui.fileMedia.state.loading":"Cargando archivo de {{kind}}","ui.fileMedia.state.error":"Error en el archivo de {{kind}}","ui.fileMedia.state.unavailable":"Archivo de {{kind}} no disponible","ui.fileMedia.binary.title":"Archivo binario","ui.fileMedia.binary.description.path":"No se puede mostrar {{path}} porque es un archivo binario.","ui.fileMedia.binary.description.default":"No se puede mostrar este archivo porque es un archivo binario.","ui.lineComment.label.prefix":"Comentar en ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"Comentando en ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"A\xF1adir comentario","ui.lineComment.submit":"Comentar","ui.sessionTurn.steps.show":"Mostrar pasos","ui.sessionTurn.steps.hide":"Ocultar pasos","ui.sessionTurn.summary.response":"Respuesta","ui.sessionTurn.diff.showMore":"Mostrar m\xE1s cambios ({{count}})","ui.sessionTurn.retry.retrying":"reintentando","ui.sessionTurn.retry.inSeconds":"en {{seconds}}s","ui.sessionTurn.retry.attempt":"intento #{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - intento #{{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini est\xE1 demasiado saturado","ui.sessionTurn.error.freeUsageExceeded":"L\xEDmite de uso gratuito excedido","ui.sessionTurn.error.addQredits":"A\xF1adir cr\xE9ditos","ui.sessionTurn.status.delegating":"Delegando trabajo","ui.sessionTurn.status.planning":"Planificando siguientes pasos","ui.sessionTurn.status.gatheringContext":"Explorando","ui.sessionTurn.status.gatheredContext":"Explorado","ui.sessionTurn.status.searchingCodebase":"Buscando en la base de c\xF3digo","ui.sessionTurn.status.searchingWeb":"Buscando en la web","ui.sessionTurn.status.makingEdits":"Realizando ediciones","ui.sessionTurn.status.runningCommands":"Ejecutando comandos","ui.sessionTurn.status.thinking":"Pensando","ui.sessionTurn.status.thinkingWithTopic":"Pensando - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"Recopilando pensamientos","ui.sessionTurn.status.consideringNextSteps":"Considerando siguientes pasos","ui.messagePart.questions.dismissed":"Preguntas descartadas","ui.messagePart.compaction":"Sesi\xF3n compactada","ui.messagePart.context.read.one":"{{count}} lectura","ui.messagePart.context.read.other":"{{count}} lecturas","ui.messagePart.context.search.one":"{{count}} b\xFAsqueda","ui.messagePart.context.search.other":"{{count}} b\xFAsquedas","ui.messagePart.context.list.one":"{{count}} lista","ui.messagePart.context.list.other":"{{count}} listas","ui.messagePart.diagnostic.error":"Error","ui.messagePart.title.edit":"Editar","ui.messagePart.title.write":"Escribir","ui.messagePart.option.typeOwnAnswer":"Escribe tu propia respuesta","ui.messagePart.review.title":"Revisa tus respuestas","ui.list.loading":"Cargando","ui.list.empty":"Sin resultados","ui.list.clearFilter":"Borrar filtro","ui.list.emptyWithFilter.prefix":"Sin resultados para","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"Nuevo mensaje","ui.textField.copyToClipboard":"Copiar al portapapeles","ui.textField.copyLink":"Copiar enlace","ui.textField.copied":"Copiado","ui.imagePreview.alt":"Vista previa de imagen","ui.scrollView.ariaLabel":"contenido desplazable","ui.tool.read":"Leer","ui.tool.loaded":"Cargado","ui.tool.list":"Listar","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Webfetch","ui.tool.websearch":"B\xFAsqueda web","ui.tool.codesearch":"B\xFAsqueda de c\xF3digo","ui.tool.shell":"Shell","ui.tool.patch":"Parche","ui.tool.todos":"Tareas","ui.tool.todos.read":"Leer tareas","ui.tool.questions":"Preguntas","ui.tool.agent":"Agente {{type}}","ui.tool.agent.default":"Agente","ui.common.file.one":"archivo","ui.common.file.other":"archivos","ui.common.question.one":"pregunta","ui.common.question.other":"preguntas","ui.common.add":"A\xF1adir","ui.common.back":"Atr\xE1s","ui.common.cancel":"Cancelar","ui.common.confirm":"Confirmar","ui.common.dismiss":"Descartar","ui.common.close":"Cerrar","ui.common.next":"Siguiente","ui.common.submit":"Enviar","ui.permission.deny":"Denegar","ui.permission.allowAlways":"Permitir siempre","ui.permission.allowOnce":"Permitir una vez","ui.message.expand":"Expandir mensaje","ui.message.collapse":"Colapsar mensaje","ui.message.copy":"Copiar","ui.message.copyMessage":"Copiar mensaje","ui.message.forkMessage":"Bifurcar a nueva sesi\xF3n","ui.message.revertMessage":"Restablecer a este punto","ui.message.copyResponse":"Copiar respuesta","ui.message.copied":"\xA1Copiado!","ui.message.interrupted":"Interrumpido","ui.message.queued":"En cola","ui.message.attachment.alt":"adjunto","ui.patch.action.deleted":"Eliminado","ui.patch.action.created":"Creado","ui.patch.action.moved":"Movido","ui.patch.action.patched":"Parcheado","ui.question.subtitle.answered":"{{count}} respondidas","ui.question.answer.none":"(sin respuesta)","ui.question.review.notAnswered":"(no respondida)","ui.question.multiHint":"Selecciona todas las que correspondan","ui.question.singleHint":"Selecciona una respuesta","ui.question.custom.placeholder":"Escribe tu respuesta...","ui.fileSearch.placeholder":"Buscar","ui.fileSearch.previousMatch":"Anterior","ui.fileSearch.nextMatch":"Siguiente","ui.fileSearch.close":"Cerrar b\xFAsqueda","ui.tool.task":"Tarea","ui.tool.skill":"Habilidad","ui.basicTool.called":"Llamado `{{tool}}`","ui.toolErrorCard.failed":"Fall\xF3","ui.toolErrorCard.copyError":"Copiar error","ui.message.duration.seconds":"{{count}}s","ui.message.duration.minutesSeconds":"{{minutes}}m {{seconds}}s"};export{e as dict};
2
+ import"./chunk-aztre27e.js";var e={"ui.sessionReview.title":"Cambios de la sesi\xF3n","ui.sessionReview.title.lastTurn":"Cambios del \xFAltimo turno","ui.sessionReview.diffStyle.unified":"Unificado","ui.sessionReview.diffStyle.split":"Dividido","ui.sessionReview.openFile":"Abrir archivo","ui.sessionReview.selection.line":"l\xEDnea {{line}}","ui.sessionReview.selection.lines":"l\xEDneas {{start}}-{{end}}","ui.sessionReview.expandAll":"Expandir todo","ui.sessionReview.collapseAll":"Colapsar todo","ui.sessionReview.change.added":"A\xF1adido","ui.sessionReview.change.removed":"Eliminado","ui.sessionReview.change.modified":"Modificado","ui.sessionReview.image.loading":"Cargando...","ui.sessionReview.image.placeholder":"Imagen","ui.sessionReview.largeDiff.title":"Diff demasiado grande para renderizar","ui.sessionReview.largeDiff.meta":"L\xEDmite: {{limit}} l\xEDneas modificadas. Actual: {{current}} l\xEDneas modificadas.","ui.sessionReview.largeDiff.renderAnyway":"Renderizar de todos modos","ui.fileMedia.kind.image":"imagen","ui.fileMedia.kind.audio":"audio","ui.fileMedia.state.removed":"Archivo de {{kind}} eliminado","ui.fileMedia.state.loading":"Cargando archivo de {{kind}}","ui.fileMedia.state.error":"Error en el archivo de {{kind}}","ui.fileMedia.state.unavailable":"Archivo de {{kind}} no disponible","ui.fileMedia.binary.title":"Archivo binario","ui.fileMedia.binary.description.path":"No se puede mostrar {{path}} porque es un archivo binario.","ui.fileMedia.binary.description.default":"No se puede mostrar este archivo porque es un archivo binario.","ui.lineComment.label.prefix":"Comentar en ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"Comentando en ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"A\xF1adir comentario","ui.lineComment.submit":"Comentar","ui.sessionTurn.steps.show":"Mostrar pasos","ui.sessionTurn.steps.hide":"Ocultar pasos","ui.sessionTurn.summary.response":"Respuesta","ui.sessionTurn.diff.showMore":"Mostrar m\xE1s cambios ({{count}})","ui.sessionTurn.retry.retrying":"reintentando","ui.sessionTurn.retry.inSeconds":"en {{seconds}}s","ui.sessionTurn.retry.attempt":"intento #{{attempt}}","ui.sessionTurn.retry.attemptLine":"{{line}} - intento #{{attempt}}","ui.sessionTurn.retry.geminiHot":"gemini est\xE1 demasiado saturado","ui.sessionTurn.error.freeUsageExceeded":"L\xEDmite de uso gratuito excedido","ui.sessionTurn.error.addQredits":"A\xF1adir cr\xE9ditos","ui.sessionTurn.status.delegating":"Delegando trabajo","ui.sessionTurn.status.planning":"Planificando siguientes pasos","ui.sessionTurn.status.gatheringContext":"Explorando","ui.sessionTurn.status.gatheredContext":"Explorado","ui.sessionTurn.status.searchingCodebase":"Buscando en la base de c\xF3digo","ui.sessionTurn.status.searchingWeb":"Buscando en la web","ui.sessionTurn.status.makingEdits":"Realizando ediciones","ui.sessionTurn.status.runningCommands":"Ejecutando comandos","ui.sessionTurn.status.thinking":"Pensando","ui.sessionTurn.status.thinkingWithTopic":"Pensando - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"Recopilando pensamientos","ui.sessionTurn.status.consideringNextSteps":"Considerando siguientes pasos","ui.messagePart.questions.dismissed":"Preguntas descartadas","ui.messagePart.compaction":"Sesi\xF3n compactada","ui.messagePart.context.read.one":"{{count}} lectura","ui.messagePart.context.read.other":"{{count}} lecturas","ui.messagePart.context.search.one":"{{count}} b\xFAsqueda","ui.messagePart.context.search.other":"{{count}} b\xFAsquedas","ui.messagePart.context.list.one":"{{count}} lista","ui.messagePart.context.list.other":"{{count}} listas","ui.messagePart.diagnostic.error":"Error","ui.messagePart.title.edit":"Editar","ui.messagePart.title.write":"Escribir","ui.messagePart.option.typeOwnAnswer":"Escribe tu propia respuesta","ui.messagePart.review.title":"Revisa tus respuestas","ui.list.loading":"Cargando","ui.list.empty":"Sin resultados","ui.list.clearFilter":"Borrar filtro","ui.list.emptyWithFilter.prefix":"Sin resultados para","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"Nuevo mensaje","ui.textField.copyToClipboard":"Copiar al portapapeles","ui.textField.copyLink":"Copiar enlace","ui.textField.copied":"Copiado","ui.imagePreview.alt":"Vista previa de imagen","ui.scrollView.ariaLabel":"contenido desplazable","ui.tool.read":"Leer","ui.tool.loaded":"Cargado","ui.tool.list":"Listar","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Webfetch","ui.tool.websearch":"B\xFAsqueda web","ui.tool.codesearch":"B\xFAsqueda de c\xF3digo","ui.tool.shell":"Shell","ui.tool.patch":"Parche","ui.tool.todos":"Tareas","ui.tool.todos.read":"Leer tareas","ui.tool.questions":"Preguntas","ui.tool.agent":"Agente {{type}}","ui.tool.agent.default":"Agente","ui.common.file.one":"archivo","ui.common.file.other":"archivos","ui.common.question.one":"pregunta","ui.common.question.other":"preguntas","ui.common.add":"A\xF1adir","ui.common.back":"Atr\xE1s","ui.common.cancel":"Cancelar","ui.common.confirm":"Confirmar","ui.common.dismiss":"Descartar","ui.common.close":"Cerrar","ui.common.next":"Siguiente","ui.common.submit":"Enviar","ui.permission.deny":"Denegar","ui.permission.allowAlways":"Permitir siempre","ui.permission.allowOnce":"Permitir una vez","ui.message.expand":"Expandir mensaje","ui.message.collapse":"Colapsar mensaje","ui.message.copy":"Copiar","ui.message.copyMessage":"Copiar mensaje","ui.message.forkMessage":"Bifurcar a nueva sesi\xF3n","ui.message.revertMessage":"Restablecer a este punto","ui.message.copyResponse":"Copiar respuesta","ui.message.copied":"\xA1Copiado!","ui.message.interrupted":"Interrumpido","ui.message.queued":"En cola","ui.message.attachment.alt":"adjunto","ui.patch.action.deleted":"Eliminado","ui.patch.action.created":"Creado","ui.patch.action.moved":"Movido","ui.patch.action.patched":"Parcheado","ui.question.subtitle.answered":"{{count}} respondidas","ui.question.answer.none":"(sin respuesta)","ui.question.review.notAnswered":"(no respondida)","ui.question.multiHint":"Selecciona todas las que correspondan","ui.question.singleHint":"Selecciona una respuesta","ui.question.custom.placeholder":"Escribe tu respuesta...","ui.fileSearch.placeholder":"Buscar","ui.fileSearch.previousMatch":"Anterior","ui.fileSearch.nextMatch":"Siguiente","ui.fileSearch.close":"Cerrar b\xFAsqueda","ui.tool.task":"Tarea","ui.tool.skill":"Habilidad","ui.basicTool.called":"Llamado `{{tool}}`","ui.toolErrorCard.failed":"Fall\xF3","ui.toolErrorCard.copyError":"Copiar error","ui.message.duration.seconds":"{{count}}s","ui.message.duration.minutesSeconds":"{{minutes}}m {{seconds}}s"};export{e as dict};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Eo as E,Fo as e,Go as I}from"./chunk-atbm0pnt.js";import{Io as b,Ko as g,Lo as n,Oo as i,Po as x,bp as _0,cp as O0,dp as G,ep as Z0}from"./chunk-s86fj82v.js";import{Cp as p}from"./chunk-7qxn24qa.js";import{$s as A,$t as q,Rt as T,St as X,Ws as t,Zs as y,et as c}from"./chunk-08y06vgt.js";import{au as s,pu as d,tu as Q}from"./chunk-9p83me3p.js";import{vu as w}from"./chunk-48j09m6e.js";import{AD as v,FJ as a,PF as o,SN as M,qI as B}from"./chunk-ynfbz3sz.js";import{EP as F}from"./chunk-s2za1y84.js";var h={};F(h,{waitForDependencies:()=>R0,layer:()=>$0,get:()=>C0,defaultLayer:()=>j0,TuiConfig:()=>h,Service:()=>C,Info:()=>W0});import r from"path";var D={};F(D,{Keybinds:()=>Q0,ConfigKeybinds:()=>D});var _=(O,Z)=>M.String.pipe(M.optional,M.withDecodingDefault(B.succeed(O))).annotate({description:Z}),B0=process.platform==="win32"?"ctrl+z,ctrl+-,super+z":"ctrl+-,super+z",K0=M.Struct({leader:_("ctrl+x","Leader key for keybind combinations"),app_exit:_("ctrl+c,ctrl+d,<leader>q","Exit the application"),editor_open:_("<leader>e","Open external editor"),theme_list:_("<leader>t","List available themes"),sidebar_toggle:_("<leader>b","Toggle sidebar"),scrollbar_toggle:_("none","Toggle session scrollbar"),status_view:_("<leader>s","View status"),session_export:_("<leader>x","Export session to editor"),session_new:_("<leader>n","Create a new session"),session_list:_("<leader>l","List all sessions"),session_timeline:_("<leader>g","Show session timeline"),session_fork:_("none","Fork session from message"),session_rename:_("ctrl+r","Rename session"),session_delete:_("ctrl+d","Delete session"),stash_delete:_("ctrl+d","Delete stash entry"),model_provider_list:_("ctrl+a","Open provider list from model dialog"),model_favorite_toggle:_("ctrl+f","Toggle model favorite status"),session_share:_("none","Share current session"),session_unshare:_("none","Unshare current session"),session_interrupt:_("escape","Interrupt current session"),session_compact:_("<leader>c","Compact the session"),messages_page_up:_("pageup,ctrl+alt+b","Scroll messages up by one page"),messages_page_down:_("pagedown,ctrl+alt+f","Scroll messages down by one page"),messages_line_up:_("ctrl+alt+y","Scroll messages up by one line"),messages_line_down:_("ctrl+alt+e","Scroll messages down by one line"),messages_half_page_up:_("ctrl+alt+u","Scroll messages up by half page"),messages_half_page_down:_("ctrl+alt+d","Scroll messages down by half page"),messages_first:_("ctrl+g,home","Navigate to first message"),messages_last:_("ctrl+alt+g,end","Navigate to last message"),messages_next:_("none","Navigate to next message"),messages_previous:_("none","Navigate to previous message"),messages_last_user:_("none","Navigate to last user message"),messages_copy:_("<leader>y","Copy message"),messages_undo:_("<leader>u","Undo message"),messages_redo:_("<leader>r","Redo message"),messages_toggle_conceal:_("<leader>h","Toggle code block concealment in messages"),tool_details:_("none","Toggle tool details visibility"),model_list:_("<leader>m","List available models"),model_cycle_recent:_("f2","Next recently used model"),model_cycle_recent_reverse:_("shift+f2","Previous recently used model"),model_cycle_favorite:_("none","Next favorite model"),model_cycle_favorite_reverse:_("none","Previous favorite model"),command_list:_("ctrl+p","List available commands"),agent_list:_("<leader>a","List agents"),agent_cycle:_("ctrl+space","Next agent"),agent_cycle_reverse:_("none","Previous agent"),variant_cycle:_("ctrl+t","Cycle model variants"),variant_list:_("none","List model variants"),input_clear:_("ctrl+c","Clear input field"),input_paste:_("super+v,ctrl+v","Paste from clipboard"),input_submit:_("return","Submit input"),input_newline:_("shift+return,ctrl+return,alt+return,ctrl+j","Insert newline in input"),input_move_left:_("left,ctrl+b","Move cursor left in input"),input_move_right:_("right,ctrl+f","Move cursor right in input"),input_move_up:_("up","Move cursor up in input"),input_move_down:_("down","Move cursor down in input"),input_select_left:_("shift+left","Select left in input"),input_select_right:_("shift+right","Select right in input"),input_select_up:_("shift+up","Select up in input"),input_select_down:_("shift+down","Select down in input"),input_line_home:_("ctrl+a","Move to start of line in input"),input_line_end:_("ctrl+e","Move to end of line in input"),input_select_line_home:_("ctrl+shift+a","Select to start of line in input"),input_select_line_end:_("ctrl+shift+e","Select to end of line in input"),input_visual_line_home:_("alt+a","Move to start of visual line in input"),input_visual_line_end:_("alt+e","Move to end of visual line in input"),input_select_visual_line_home:_("alt+shift+a","Select to start of visual line in input"),input_select_visual_line_end:_("alt+shift+e","Select to end of visual line in input"),input_buffer_home:_("home","Move to start of buffer in input"),input_buffer_end:_("end","Move to end of buffer in input"),input_select_buffer_home:_("shift+home","Select to start of buffer in input"),input_select_buffer_end:_("shift+end","Select to end of buffer in input"),input_delete_line:_("ctrl+shift+d","Delete line in input"),input_delete_to_line_end:_("ctrl+k","Delete to end of line in input"),input_delete_to_line_start:_("ctrl+u","Delete to start of line in input"),input_backspace:_("backspace,shift+backspace","Backspace in input"),input_delete:_("ctrl+d,delete,shift+delete","Delete character in input"),input_undo:_(B0,"Undo in input"),input_redo:_("ctrl+.,super+shift+z","Redo in input"),input_word_forward:_("alt+f,alt+right,ctrl+right","Move word forward in input"),input_word_backward:_("alt+b,alt+left,ctrl+left","Move word backward in input"),input_select_word_forward:_("alt+shift+f,alt+shift+right","Select word forward in input"),input_select_word_backward:_("alt+shift+b,alt+shift+left","Select word backward in input"),input_delete_word_forward:_("alt+d,alt+delete,ctrl+delete","Delete word forward in input"),input_delete_word_backward:_("ctrl+w,ctrl+backspace,alt+backspace","Delete word backward in input"),history_previous:_("up","Previous history item"),history_next:_("down","Next history item"),session_child_first:_("<leader>down","Go to first child session"),session_child_cycle:_("right","Go to next child session"),session_child_cycle_reverse:_("left","Go to previous child session"),session_parent:_("up","Go to parent session"),terminal_suspend:_("ctrl+z","Suspend terminal"),terminal_title_toggle:_("none","Toggle terminal title"),tips_toggle:_("<leader>h","Toggle tips on home screen"),plugin_manager:_("none","Open plugin manager dialog"),display_thinking:_("none","Toggle thinking blocks visibility")}).annotate({identifier:"KeybindsConfig"}),Q0=p(K0);var V0=w.object(Object.fromEntries(Object.keys(D.Keybinds.shape).map((O)=>[O,w.string().optional()]))).strict(),R=w.object({scroll_speed:w.number().min(0.001).optional().describe("TUI scroll speed"),scroll_acceleration:w.object({enabled:w.boolean().describe("Enable scroll acceleration")}).optional().describe("Scroll acceleration settings"),diff_style:w.enum(["auto","stacked"]).optional().describe("Control diff rendering style: 'auto' adapts to terminal width, 'stacked' always shows single column"),mouse:w.boolean().optional().describe("Enable or disable mouse capture (default: true on desktop, false on Android/Termux)"),accessible:w.boolean().optional().describe("Screen-reader friendly mode: linear main-screen rendering, no mouse capture, reduced motion, no sound (default: false)"),reduce_motion:w.boolean().optional().describe("Disable spinners and other animations, showing static text instead (default: false)"),sound:w.boolean().optional().describe("Enable or disable sound cues (default: true)"),announcements:w.enum(["quiet","normal","verbose"]).optional().describe("Verbosity of accessible-mode screen-reader announcements: 'quiet' announces only turn boundaries, errors, and stops; 'normal' adds tool-start lines; 'verbose' adds tool-completion lines (default: normal). Errors are always announced.")}),P=w.object({$schema:w.string().optional(),theme:w.string().optional(),keybinds:V0.optional(),plugin:I.Spec.zod.array().optional(),plugin_enabled:w.record(w.string(),w.boolean()).optional()}).extend(R.shape).strict();var H=q.create({service:"tui.migrate"}),Y0="https://qitqode.com/tui.json",D0=P.shape.theme.optional(),l=w.record(w.string(),w.unknown()).optional(),H0=w.object({scroll_speed:R.shape.scroll_speed.catch(void 0),scroll_acceleration:R.shape.scroll_acceleration.catch(void 0),diff_style:R.shape.diff_style.catch(void 0)}).strip();async function k(O){let Z=await G0(O);for(let W of Z){let j=await Q.readText(W).catch((m)=>{H.warn("failed to read config for tui migration",{path:W,error:m});return});if(!j)continue;let V=[],K=b(j,V,{allowTrailingComma:!0});if(V.length||!K||typeof K!=="object"||Array.isArray(K))continue;let $=D0.safeParse("theme"in K?K.theme:void 0),J=l.safeParse("keybinds"in K?K.keybinds:void 0),N=l.safeParse("tui"in K?K.tui:void 0),Y={theme:$.success?$.data:void 0,keybinds:J.success?J.data:void 0,tui:N.success?N.data:void 0},L=Y.tui?J0(Y.tui):void 0;if(Y.theme===void 0&&Y.keybinds===void 0&&!L)continue;let U=r.join(r.dirname(W),"tui.json");if(await Q.exists(U))continue;let z={$schema:Y0};if(Y.theme!==void 0)z.theme=Y.theme;if(Y.keybinds!==void 0)z.keybinds=Y.keybinds;if(L)Object.assign(z,L);if(!await Q.write(U,JSON.stringify(z,null,2)).then(()=>!0).catch((m)=>{return H.warn("failed to write tui migration target",{from:W,to:U,error:m}),!1}))continue;if(!await A0(W,j)){H.warn("tui config migrated but source file was not stripped",{from:W,to:U});continue}H.info("migrated tui config",{from:W,to:U})}}function J0(O){let Z=H0.parse(O);if(Z.scroll_speed===void 0&&Z.diff_style===void 0&&Z.scroll_acceleration===void 0)return;return Z}async function A0(O,Z){let W=O+".tui-migration.bak";if(!(await Q.exists(W)?!0:await Q.write(W,Z).then(()=>!0).catch(($)=>{return H.warn("failed to backup source config during tui migration",{path:O,backup:W,error:$}),!1})))return!1;let K=["theme","keybinds","tui"].reduce(($,J)=>{let N=g($,[J],void 0,{formattingOptions:{insertSpaces:!0,tabSize:2}});if(!N.length)return $;return n($,N)},Z);return Q.write(O,K).then(()=>{return H.info("stripped tui keys from server config",{path:O,backup:W}),!0}).catch(($)=>{return H.warn("failed to strip legacy tui keys from server config",{path:O,backup:W,error:$}),!1})}async function G0(O){let Z=[...G(T.Path.config,"qitqode"),...await Q.findUp(["qitqode.json","qitqode.jsonc"],O.cwd,void 0,{rootFirst:!0})];for(let j of A(O.directories))Z.push(...G(j,"qitqode"));if(X.QITQODE_CONFIG)Z.push(X.QITQODE_CONFIG);return(await Promise.all(A(Z).map(async(j)=>{return await Q.exists(j)?j:void 0}))).filter((j)=>!!j)}var f=v.Reference("CurrentWorkingDirectory",{defaultValue:()=>process.cwd()});var u=q.create({service:"tui.config"}),W0=P;class C extends v.Service()("@qitqode/TuiConfig"){}function N0(O,Z){if(Q.contains(Z.directory,O))return"local";return"global"}function U0(O){let Z={...O};if(!("tui"in Z))return Z;if(!s(Z.tui))return delete Z.tui,Z;let W=Z.tui;return delete Z.tui,{...W,...Z}}async function M0(O,Z){if(!O.plugin)return O;for(let W=0;W<O.plugin.length;W++)O.plugin[W]=await I.resolvePluginSpec(O.plugin[W],Z);return O}async function S(O,Z,W){let j=await z0(Z);if(O.result=c(O.result,j),!j.plugin?.length)return;let V=N0(Z,W),K=I.deduplicatePluginOrigins([...O.result.plugin_origins??[],...j.plugin.map(($)=>({spec:$,scope:V,source:Z}))]);O.result.plugin=K.map(($)=>$.spec),O.result.plugin_origins=K}var I0=B.fn("TuiConfig.loadState")(function*(O){let Z=yield*O0(O.directory);yield*B.promise(()=>k({directories:Z,cwd:O.directory}));let W=X.QITQODE_DISABLE_PROJECT_CONFIG?[]:yield*_0("tui",O.directory),j={result:{}};for(let $ of G(T.Path.config,"tui"))yield*B.promise(()=>S(j,$,O)).pipe(B.orDie);if(X.QITQODE_TUI_CONFIG){let $=X.QITQODE_TUI_CONFIG;yield*B.promise(()=>S(j,$,O)).pipe(B.orDie),u.debug("loaded custom tui config",{path:$})}for(let $ of W)yield*B.promise(()=>S(j,$,O)).pipe(B.orDie);let V=A(Z).filter(($)=>$.endsWith(".qitqode")||$===X.QITQODE_CONFIG_DIR);for(let $ of V){if(!$.endsWith(".qitqode")&&$!==X.QITQODE_CONFIG_DIR)continue;for(let J of G($,"tui"))yield*B.promise(()=>S(j,J,O)).pipe(B.orDie)}let K={...j.result.keybinds??{}};if(process.platform==="win32")K.terminal_suspend="none",K.input_undo??=A(["ctrl+z",...D.Keybinds.shape.input_undo.parse(void 0).split(",")]).join(",");return j.result.keybinds=D.Keybinds.parse(K),{config:j.result,dirs:j.result.plugin?.length?V:[]}}),$0=o.effect(C,B.gen(function*(){let O=yield*f,Z=yield*x.Service,W=yield*I0({directory:O}),j=yield*B.forEach(W.dirs,($)=>Z.install($,{add:[{name:"@qitqode/plugin",version:y?void 0:t}]}).pipe(B.forkScoped),{concurrency:"unbounded"}),V=B.fn("TuiConfig.get")(()=>B.succeed(W.config)),K=B.fn("TuiConfig.waitForDependencies")(()=>B.forEach(j,a.join,{concurrency:"unbounded"}).pipe(B.ignore(),B.asVoid));return C.of({get:V,waitForDependencies:K})}).pipe(B.withSpan("TuiConfig.layer"))),j0=$0.pipe(o.provide(x.defaultLayer),o.provide(d.defaultLayer)),{runPromise:w0}=i(C,j0);async function R0(){await w0((O)=>O.waitForDependencies())}async function C0(){return w0((O)=>O.get())}async function z0(O){let Z=await Z0(O);if(!Z)return{};return P0(Z,O).catch((W)=>{return u.warn("failed to load tui config",{path:O,error:W}),{}})}async function P0(O,Z){return e.substitute({text:O,type:"path",path:Z,missing:"empty"}).then((W)=>E.jsonc(W,Z)).then((W)=>{if(!s(W))return{};return E.schema(W0,U0(W),Z)}).then((W)=>M0(W,Z)).catch((W)=>{return u.warn("invalid tui config",{path:Z,error:W}),{}})}
3
- export{W0 as t,C as u,$0 as v,j0 as w,R0 as x,C0 as y,h as z};
2
+ import{bp as E,cp as e,dp as I}from"./chunk-1t6bvbgy.js";import{Ap as _0,Bp as O0,Cp as G,Dp as Z0,fp as b,hp as g,ip as n,lp as i,mp as x}from"./chunk-cmbxrgyx.js";import{$p as p}from"./chunk-v965rsr8.js";import{Dt as c,ou as T,pu as X,tt as t,wt as y,yt as A,yu as q}from"./chunk-ebrt1me3.js";import{Ou as d,Su as Q,zu as s}from"./chunk-whxjkz9a.js";import{Uu as w}from"./chunk-k309zez0.js";import{PI as B,ZD as v,cK as a,mG as o,pO as M}from"./chunk-snm5q21k.js";import{bQ as F}from"./chunk-aztre27e.js";var h={};F(h,{waitForDependencies:()=>R0,layer:()=>$0,get:()=>C0,defaultLayer:()=>j0,TuiConfig:()=>h,Service:()=>C,Info:()=>W0});import r from"path";var D={};F(D,{Keybinds:()=>Q0,ConfigKeybinds:()=>D});var _=(O,Z)=>M.String.pipe(M.optional,M.withDecodingDefault(B.succeed(O))).annotate({description:Z}),B0=process.platform==="win32"?"ctrl+z,ctrl+-,super+z":"ctrl+-,super+z",K0=M.Struct({leader:_("ctrl+x","Leader key for keybind combinations"),app_exit:_("ctrl+c,ctrl+d,<leader>q","Exit the application"),editor_open:_("<leader>e","Open external editor"),theme_list:_("<leader>t","List available themes"),sidebar_toggle:_("<leader>b","Toggle sidebar"),scrollbar_toggle:_("none","Toggle session scrollbar"),status_view:_("<leader>s","View status"),session_export:_("<leader>x","Export session to editor"),session_new:_("<leader>n","Create a new session"),session_list:_("<leader>l","List all sessions"),session_timeline:_("<leader>g","Show session timeline"),session_fork:_("none","Fork session from message"),session_rename:_("ctrl+r","Rename session"),session_delete:_("ctrl+d","Delete session"),stash_delete:_("ctrl+d","Delete stash entry"),model_provider_list:_("ctrl+a","Open provider list from model dialog"),model_favorite_toggle:_("ctrl+f","Toggle model favorite status"),session_share:_("none","Share current session"),session_unshare:_("none","Unshare current session"),session_interrupt:_("escape","Interrupt current session"),session_compact:_("<leader>c","Compact the session"),messages_page_up:_("pageup,ctrl+alt+b","Scroll messages up by one page"),messages_page_down:_("pagedown,ctrl+alt+f","Scroll messages down by one page"),messages_line_up:_("ctrl+alt+y","Scroll messages up by one line"),messages_line_down:_("ctrl+alt+e","Scroll messages down by one line"),messages_half_page_up:_("ctrl+alt+u","Scroll messages up by half page"),messages_half_page_down:_("ctrl+alt+d","Scroll messages down by half page"),messages_first:_("ctrl+g,home","Navigate to first message"),messages_last:_("ctrl+alt+g,end","Navigate to last message"),messages_next:_("none","Navigate to next message"),messages_previous:_("none","Navigate to previous message"),messages_last_user:_("none","Navigate to last user message"),messages_copy:_("<leader>y","Copy message"),messages_undo:_("<leader>u","Undo message"),messages_redo:_("<leader>r","Redo message"),messages_toggle_conceal:_("<leader>h","Toggle code block concealment in messages"),tool_details:_("none","Toggle tool details visibility"),model_list:_("<leader>m","List available models"),model_cycle_recent:_("f2","Next recently used model"),model_cycle_recent_reverse:_("shift+f2","Previous recently used model"),model_cycle_favorite:_("none","Next favorite model"),model_cycle_favorite_reverse:_("none","Previous favorite model"),command_list:_("ctrl+p","List available commands"),agent_list:_("<leader>a","List agents"),agent_cycle:_("ctrl+space","Next agent"),agent_cycle_reverse:_("none","Previous agent"),variant_cycle:_("ctrl+t","Cycle model variants"),variant_list:_("none","List model variants"),input_clear:_("ctrl+c","Clear input field"),input_paste:_("super+v,ctrl+v","Paste from clipboard"),input_submit:_("return","Submit input"),input_newline:_("shift+return,ctrl+return,alt+return,ctrl+j","Insert newline in input"),input_move_left:_("left,ctrl+b","Move cursor left in input"),input_move_right:_("right,ctrl+f","Move cursor right in input"),input_move_up:_("up","Move cursor up in input"),input_move_down:_("down","Move cursor down in input"),input_select_left:_("shift+left","Select left in input"),input_select_right:_("shift+right","Select right in input"),input_select_up:_("shift+up","Select up in input"),input_select_down:_("shift+down","Select down in input"),input_line_home:_("ctrl+a","Move to start of line in input"),input_line_end:_("ctrl+e","Move to end of line in input"),input_select_line_home:_("ctrl+shift+a","Select to start of line in input"),input_select_line_end:_("ctrl+shift+e","Select to end of line in input"),input_visual_line_home:_("alt+a","Move to start of visual line in input"),input_visual_line_end:_("alt+e","Move to end of visual line in input"),input_select_visual_line_home:_("alt+shift+a","Select to start of visual line in input"),input_select_visual_line_end:_("alt+shift+e","Select to end of visual line in input"),input_buffer_home:_("home","Move to start of buffer in input"),input_buffer_end:_("end","Move to end of buffer in input"),input_select_buffer_home:_("shift+home","Select to start of buffer in input"),input_select_buffer_end:_("shift+end","Select to end of buffer in input"),input_delete_line:_("ctrl+shift+d","Delete line in input"),input_delete_to_line_end:_("ctrl+k","Delete to end of line in input"),input_delete_to_line_start:_("ctrl+u","Delete to start of line in input"),input_backspace:_("backspace,shift+backspace","Backspace in input"),input_delete:_("ctrl+d,delete,shift+delete","Delete character in input"),input_undo:_(B0,"Undo in input"),input_redo:_("ctrl+.,super+shift+z","Redo in input"),input_word_forward:_("alt+f,alt+right,ctrl+right","Move word forward in input"),input_word_backward:_("alt+b,alt+left,ctrl+left","Move word backward in input"),input_select_word_forward:_("alt+shift+f,alt+shift+right","Select word forward in input"),input_select_word_backward:_("alt+shift+b,alt+shift+left","Select word backward in input"),input_delete_word_forward:_("alt+d,alt+delete,ctrl+delete","Delete word forward in input"),input_delete_word_backward:_("ctrl+w,ctrl+backspace,alt+backspace","Delete word backward in input"),history_previous:_("up","Previous history item"),history_next:_("down","Next history item"),session_child_first:_("<leader>down","Go to first child session"),session_child_cycle:_("right","Go to next child session"),session_child_cycle_reverse:_("left","Go to previous child session"),session_parent:_("up","Go to parent session"),terminal_suspend:_("ctrl+z","Suspend terminal"),terminal_title_toggle:_("none","Toggle terminal title"),tips_toggle:_("<leader>h","Toggle tips on home screen"),plugin_manager:_("none","Open plugin manager dialog"),display_thinking:_("none","Toggle thinking blocks visibility")}).annotate({identifier:"KeybindsConfig"}),Q0=p(K0);var V0=w.object(Object.fromEntries(Object.keys(D.Keybinds.shape).map((O)=>[O,w.string().optional()]))).strict(),R=w.object({scroll_speed:w.number().min(0.001).optional().describe("TUI scroll speed"),scroll_acceleration:w.object({enabled:w.boolean().describe("Enable scroll acceleration")}).optional().describe("Scroll acceleration settings"),diff_style:w.enum(["auto","stacked"]).optional().describe("Control diff rendering style: 'auto' adapts to terminal width, 'stacked' always shows single column"),mouse:w.boolean().optional().describe("Enable or disable mouse capture (default: true on desktop, false on Android/Termux)"),accessible:w.boolean().optional().describe("Screen-reader friendly mode: linear main-screen rendering, no mouse capture, reduced motion, no sound (default: false)"),reduce_motion:w.boolean().optional().describe("Disable spinners and other animations, showing static text instead (default: false)"),sound:w.boolean().optional().describe("Enable or disable sound cues (default: true)"),announcements:w.enum(["quiet","normal","verbose"]).optional().describe("Verbosity of accessible-mode screen-reader announcements: 'quiet' announces only turn boundaries, errors, and stops; 'normal' adds tool-start lines; 'verbose' adds tool-completion lines (default: normal). Errors are always announced.")}),P=w.object({$schema:w.string().optional(),theme:w.string().optional(),keybinds:V0.optional(),plugin:I.Spec.zod.array().optional(),plugin_enabled:w.record(w.string(),w.boolean()).optional()}).extend(R.shape).strict();var H=q.create({service:"tui.migrate"}),Y0="https://qitqode.com/tui.json",D0=P.shape.theme.optional(),l=w.record(w.string(),w.unknown()).optional(),H0=w.object({scroll_speed:R.shape.scroll_speed.catch(void 0),scroll_acceleration:R.shape.scroll_acceleration.catch(void 0),diff_style:R.shape.diff_style.catch(void 0)}).strip();async function k(O){let Z=await G0(O);for(let W of Z){let j=await Q.readText(W).catch((m)=>{H.warn("failed to read config for tui migration",{path:W,error:m});return});if(!j)continue;let V=[],K=b(j,V,{allowTrailingComma:!0});if(V.length||!K||typeof K!=="object"||Array.isArray(K))continue;let $=D0.safeParse("theme"in K?K.theme:void 0),J=l.safeParse("keybinds"in K?K.keybinds:void 0),N=l.safeParse("tui"in K?K.tui:void 0),Y={theme:$.success?$.data:void 0,keybinds:J.success?J.data:void 0,tui:N.success?N.data:void 0},L=Y.tui?J0(Y.tui):void 0;if(Y.theme===void 0&&Y.keybinds===void 0&&!L)continue;let U=r.join(r.dirname(W),"tui.json");if(await Q.exists(U))continue;let z={$schema:Y0};if(Y.theme!==void 0)z.theme=Y.theme;if(Y.keybinds!==void 0)z.keybinds=Y.keybinds;if(L)Object.assign(z,L);if(!await Q.write(U,JSON.stringify(z,null,2)).then(()=>!0).catch((m)=>{return H.warn("failed to write tui migration target",{from:W,to:U,error:m}),!1}))continue;if(!await A0(W,j)){H.warn("tui config migrated but source file was not stripped",{from:W,to:U});continue}H.info("migrated tui config",{from:W,to:U})}}function J0(O){let Z=H0.parse(O);if(Z.scroll_speed===void 0&&Z.diff_style===void 0&&Z.scroll_acceleration===void 0)return;return Z}async function A0(O,Z){let W=O+".tui-migration.bak";if(!(await Q.exists(W)?!0:await Q.write(W,Z).then(()=>!0).catch(($)=>{return H.warn("failed to backup source config during tui migration",{path:O,backup:W,error:$}),!1})))return!1;let K=["theme","keybinds","tui"].reduce(($,J)=>{let N=g($,[J],void 0,{formattingOptions:{insertSpaces:!0,tabSize:2}});if(!N.length)return $;return n($,N)},Z);return Q.write(O,K).then(()=>{return H.info("stripped tui keys from server config",{path:O,backup:W}),!0}).catch(($)=>{return H.warn("failed to strip legacy tui keys from server config",{path:O,backup:W,error:$}),!1})}async function G0(O){let Z=[...G(T.Path.config,"qitqode"),...await Q.findUp(["qitqode.json","qitqode.jsonc"],O.cwd,void 0,{rootFirst:!0})];for(let j of A(O.directories))Z.push(...G(j,"qitqode"));if(X.QITQODE_CONFIG)Z.push(X.QITQODE_CONFIG);return(await Promise.all(A(Z).map(async(j)=>{return await Q.exists(j)?j:void 0}))).filter((j)=>!!j)}var f=v.Reference("CurrentWorkingDirectory",{defaultValue:()=>process.cwd()});var u=q.create({service:"tui.config"}),W0=P;class C extends v.Service()("@qitqode/TuiConfig"){}function N0(O,Z){if(Q.contains(Z.directory,O))return"local";return"global"}function U0(O){let Z={...O};if(!("tui"in Z))return Z;if(!s(Z.tui))return delete Z.tui,Z;let W=Z.tui;return delete Z.tui,{...W,...Z}}async function M0(O,Z){if(!O.plugin)return O;for(let W=0;W<O.plugin.length;W++)O.plugin[W]=await I.resolvePluginSpec(O.plugin[W],Z);return O}async function S(O,Z,W){let j=await z0(Z);if(O.result=c(O.result,j),!j.plugin?.length)return;let V=N0(Z,W),K=I.deduplicatePluginOrigins([...O.result.plugin_origins??[],...j.plugin.map(($)=>({spec:$,scope:V,source:Z}))]);O.result.plugin=K.map(($)=>$.spec),O.result.plugin_origins=K}var I0=B.fn("TuiConfig.loadState")(function*(O){let Z=yield*O0(O.directory);yield*B.promise(()=>k({directories:Z,cwd:O.directory}));let W=X.QITQODE_DISABLE_PROJECT_CONFIG?[]:yield*_0("tui",O.directory),j={result:{}};for(let $ of G(T.Path.config,"tui"))yield*B.promise(()=>S(j,$,O)).pipe(B.orDie);if(X.QITQODE_TUI_CONFIG){let $=X.QITQODE_TUI_CONFIG;yield*B.promise(()=>S(j,$,O)).pipe(B.orDie),u.debug("loaded custom tui config",{path:$})}for(let $ of W)yield*B.promise(()=>S(j,$,O)).pipe(B.orDie);let V=A(Z).filter(($)=>$.endsWith(".qitqode")||$===X.QITQODE_CONFIG_DIR);for(let $ of V){if(!$.endsWith(".qitqode")&&$!==X.QITQODE_CONFIG_DIR)continue;for(let J of G($,"tui"))yield*B.promise(()=>S(j,J,O)).pipe(B.orDie)}let K={...j.result.keybinds??{}};if(process.platform==="win32")K.terminal_suspend="none",K.input_undo??=A(["ctrl+z",...D.Keybinds.shape.input_undo.parse(void 0).split(",")]).join(",");return j.result.keybinds=D.Keybinds.parse(K),{config:j.result,dirs:j.result.plugin?.length?V:[]}}),$0=o.effect(C,B.gen(function*(){let O=yield*f,Z=yield*x.Service,W=yield*I0({directory:O}),j=yield*B.forEach(W.dirs,($)=>Z.install($,{add:[{name:"@qitqode/plugin",version:y?void 0:t}]}).pipe(B.forkScoped),{concurrency:"unbounded"}),V=B.fn("TuiConfig.get")(()=>B.succeed(W.config)),K=B.fn("TuiConfig.waitForDependencies")(()=>B.forEach(j,a.join,{concurrency:"unbounded"}).pipe(B.ignore(),B.asVoid));return C.of({get:V,waitForDependencies:K})}).pipe(B.withSpan("TuiConfig.layer"))),j0=$0.pipe(o.provide(x.defaultLayer),o.provide(d.defaultLayer)),{runPromise:w0}=i(C,j0);async function R0(){await w0((O)=>O.waitForDependencies())}async function C0(){return w0((O)=>O.get())}async function z0(O){let Z=await Z0(O);if(!Z)return{};return P0(Z,O).catch((W)=>{return u.warn("failed to load tui config",{path:O,error:W}),{}})}async function P0(O,Z){return e.substitute({text:O,type:"path",path:Z,missing:"empty"}).then((W)=>E.jsonc(W,Z)).then((W)=>{if(!s(W))return{};return E.schema(W0,U0(W),Z)}).then((W)=>M0(W,Z)).catch((W)=>{return u.warn("invalid tui config",{path:Z,error:W}),{}})}
3
+ export{W0 as u,C as v,$0 as w,j0 as x,R0 as y,C0 as z,h as A};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Jg as t}from"./chunk-scnz207s.js";import{dQ as n}from"./chunk-aztre27e.js";async function a(){try{let{JSONSchema:e}=await import("./chunk-eb9mytjq.js");return(r)=>e.make(r)}catch{throw new t("effect")}}export{a as default};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{$v as ga,$w as gb,$x as fc,$y as fd,Av as H,Aw as Ha,Ax as Gb,Ay as Gc,Az as Gd,Bv as I,Bw as Ia,Bx as Hb,By as Hc,Bz as Hd,Cv as J,Cw as Ja,Cx as Ib,Cy as Ic,Cz as Id,Dv as K,Dw as Ka,Dx as Jb,Dy as Jc,Dz as Jd,Ev as L,Ew as La,Ex as Kb,Ey as Kc,Ez as Kd,Fv as M,Fw as Ma,Fx as Lb,Fy as Lc,Fz as Ld,Gv as N,Gw as Na,Gx as Mb,Gy as Mc,Gz as Md,Hv as O,Hw as Oa,Hx as Nb,Hy as Nc,Hz as Nd,Iv as P,Iw as Pa,Ix as Ob,Iy as Oc,Iz as Od,Jv as Q,Jw as Qa,Jx as Pb,Jy as Pc,Kv as R,Kw as Ra,Kx as Qb,Ky as Qc,Lv as S,Lw as Sa,Lx as Rb,Ly as Rc,Mv as T,Mw as Ta,Mx as Sb,My as Sc,Nv as U,Nw as Ua,Nx as Tb,Ny as Tc,Ov as V,Ow as Va,Ox as Ub,Oy as Uc,Pv as W,Pw as Wa,Px as Vb,Py as Vc,Qv as X,Qw as Xa,Qx as Wb,Qy as Wc,Rv as Y,Rw as Ya,Rx as Xb,Ry as Xc,Sv as Z,Sw as Za,Sx as Yb,Sy as Yc,Tv as _,Tw as _a,Tx as Zb,Ty as Zc,Uu as a,Uv as $,Uw as $a,Ux as _b,Uy as _c,Vu as b,Vv as aa,Vw as ab,Vx as $b,Vy as $c,Wu as c,Wv as ba,Ww as bb,Wx as ac,Wy as ad,Xu as d,Xv as ca,Xw as cb,Xx as bc,Xy as bd,Yu as e,Yv as da,Yw as db,Yx as cc,Yy as cd,Zu as f,Zv as ea,Zw as eb,Zx as dc,Zy as dd,_u as g,_v as fa,_w as fb,_x as ec,_y as ed,av as h,aw as ha,ax as hb,ay as gc,az as gd,bv as i,bw as ia,bx as ib,by as hc,bz as hd,cv as j,cw as ja,cx as jb,cy as ic,cz as id,dv as k,dw as ka,dx as kb,dy as jc,dz as jd,ev as l,ew as la,ex as lb,ey as kc,ez as kd,fv as m,fw as ma,fx as mb,fy as lc,fz as ld,gv as n,gw as na,gx as nb,gy as mc,gz as md,hv as o,hw as oa,hx as ob,hy as nc,hz as nd,iv as p,iw as pa,ix as pb,iy as oc,iz as od,jv as q,jw as qa,jx as qb,jy as pc,jz as pd,kv as r,kw as ra,kx as rb,ky as qc,kz as qd,lv as s,lw as sa,lx as sb,ly as rc,lz as rd,mv as t,mw as ta,mx as tb,my as sc,mz as sd,nv as u,nw as ua,nx as ub,ny as tc,nz as td,ov as v,ow as va,ox as vb,oy as uc,oz as ud,pv as w,pw as wa,px as wb,py as vc,pz as vd,qv as x,qw as xa,qx as xb,qy as wc,qz as wd,rv as y,rw as ya,rx as yb,ry as xc,rz as xd,sv as z,sw as za,sx as zb,sy as yc,sz as yd,tv as A,tw as Aa,tx as Ab,ty as zc,tz as zd,uv as B,uw as Ba,ux as Bb,uy as Ac,uz as Ad,vv as C,vw as Ca,vx as Cb,vy as Bc,vz as Bd,wv as D,ww as Da,wx as Db,wy as Cc,wz as Cd,xv as E,xw as Ea,xy as Dc,xz as Dd,yv as F,yw as Fa,yx as Eb,yy as Ec,yz as Ed,zv as G,zw as Ga,zx as Fb,zy as Fc,zz as Fd}from"./chunk-vw673y0t.js";import"./chunk-s2za1y84.js";export{ka as version,i as util,n as treeifyError,Nd as toJSONSchema,o as toDotPath,x as safeParseAsync,v as safeParse,L as safeEncodeAsync,H as safeEncode,N as safeDecodeAsync,J as safeDecode,Ib as registry,O as regexes,p as prettifyError,t as parseAsync,r as parse,Eb as locales,Ma as isValidJWT,Ja as isValidBase64URL,Ha as isValidBase64,Jb as globalRegistry,f as globalConfig,m as formatError,l as flattenError,D as encodeAsync,z as encode,F as decodeAsync,B as decode,g as config,h as clone,Yb as _xid,Ec as _void,Rb as _uuidv7,Qb as _uuidv6,Pb as _uuidv4,Ob as _uuid,Sb as _url,Zc as _uppercase,Cc as _unknown,jd as _union,zc as _undefined,Xb as _ulid,xc as _uint64,rc as _uint32,md as _tuple,fd as _trim,ud as _transform,hd as _toUpperCase,gd as _toLowerCase,Dd as _templateLiteral,yc as _symbol,Id as _superRefine,zd as _success,Kd as _stringbool,Ld as _stringFormat,Kb as _string,$c as _startsWith,Tc as _size,pd as _set,w as _safeParseAsync,u as _safeParse,K as _safeEncodeAsync,G as _safeEncode,M as _safeDecodeAsync,I as _safeDecode,Xc as _regex,Hd as _refine,nd as _record,Cd as _readonly,bd as _property,Fd as _promise,Mc as _positive,Bd as _pipe,s as _parseAsync,q as _parse,dd as _overwrite,vd as _optional,lc as _number,wd as _nullable,Ac as _null,ed as _normalize,Oc as _nonpositive,yd as _nonoptional,Pc as _nonnegative,Dc as _never,Nc as _negative,rd as _nativeEnum,Ub as _nanoid,Hc as _nan,Qc as _multipleOf,Sc as _minSize,Vc as _minLength,Lc as _min,cd as _mime,Rc as _maxSize,Uc as _maxLength,Jc as _max,od as _map,Jc as _lte,Ic as _lt,Yc as _lowercase,sd as _literal,Wc as _length,Ed as _lazy,Zb as _ksuid,fc as _jwt,jc as _isoTime,kc as _isoDuration,hc as _isoDateTime,ic as _isoDate,$b as _ipv6,_b as _ipv4,ld as _intersection,wc as _int64,qc as _int32,nc as _int,_c as _includes,Nb as _guid,Lc as _gte,Kc as _gt,pc as _float64,oc as _float32,td as _file,qd as _enum,ad as _endsWith,C as _encodeAsync,y as _encode,Tb as _emoji,Mb as _email,ec as _e164,kd as _discriminatedUnion,xd as _default,E as _decodeAsync,A as _decode,Fc as _date,Gd as _custom,Wb as _cuid2,Vb as _cuid,Lb as _coercedString,mc as _coercedNumber,Gc as _coercedDate,tc as _coercedBoolean,vc as _coercedBigint,bc as _cidrv6,ac as _cidrv4,Jd as _check,Ad as _catch,sc as _boolean,uc as _bigint,dc as _base64url,cc as _base64,id as _array,Bc as _any,gc as TimePrecision,a as NEVER,Md as JSONSchemaGenerator,Od as JSONSchema,ja as Doc,Fb as $output,Gb as $input,b as $constructor,c as $brand,xa as $ZodXID,_a as $ZodVoid,Ya as $ZodUnknown,db as $ZodUnion,Va as $ZodUndefined,pa as $ZodUUID,ra as $ZodURL,wa as $ZodULID,la as $ZodType,gb as $ZodTuple,nb as $ZodTransform,zb as $ZodTemplateLiteral,Ua as $ZodSymbol,tb as $ZodSuccess,na as $ZodStringFormat,ma as $ZodString,jb as $ZodSet,Hb as $ZodRegistry,hb as $ZodRecord,k as $ZodRealError,yb as $ZodReadonly,Bb as $ZodPromise,rb as $ZodPrefault,wb as $ZodPipe,ob as $ZodOptional,cb as $ZodObjectJIT,bb as $ZodObject,Qa as $ZodNumberFormat,Pa as $ZodNumber,pb as $ZodNullable,Wa as $ZodNull,sb as $ZodNonOptional,Za as $ZodNever,ta as $ZodNanoID,vb as $ZodNaN,ib as $ZodMap,lb as $ZodLiteral,Cb as $ZodLazy,ya as $ZodKSUID,Na as $ZodJWT,fb as $ZodIntersection,Ba as $ZodISOTime,Ca as $ZodISODuration,za as $ZodISODateTime,Aa as $ZodISODate,Ea as $ZodIPv6,Da as $ZodIPv4,oa as $ZodGUID,Ab as $ZodFunction,mb as $ZodFile,j as $ZodError,kb as $ZodEnum,e as $ZodEncodeError,sa as $ZodEmoji,qa as $ZodEmail,La as $ZodE164,eb as $ZodDiscriminatedUnion,qb as $ZodDefault,$a as $ZodDate,Oa as $ZodCustomStringFormat,Db as $ZodCustom,xb as $ZodCodec,ca as $ZodCheckUpperCase,$ as $ZodCheckStringFormat,ea as $ZodCheckStartsWith,X as $ZodCheckSizeEquals,aa as $ZodCheckRegex,ga as $ZodCheckProperty,ia as $ZodCheckOverwrite,T as $ZodCheckNumberFormat,S as $ZodCheckMultipleOf,W as $ZodCheckMinSize,Z as $ZodCheckMinLength,ha as $ZodCheckMimeType,V as $ZodCheckMaxSize,Y as $ZodCheckMaxLength,ba as $ZodCheckLowerCase,Q as $ZodCheckLessThan,_ as $ZodCheckLengthEquals,da as $ZodCheckIncludes,R as $ZodCheckGreaterThan,fa as $ZodCheckEndsWith,U as $ZodCheckBigIntFormat,P as $ZodCheck,ub as $ZodCatch,va as $ZodCUID2,ua as $ZodCUID,Ga as $ZodCIDRv6,Fa as $ZodCIDRv4,Ra as $ZodBoolean,Ta as $ZodBigIntFormat,Sa as $ZodBigInt,Ka as $ZodBase64URL,Ia as $ZodBase64,d as $ZodAsyncError,ab as $ZodArray,Xa as $ZodAny};
2
+ import{$v as J,$w as Ja,$x as Ib,$y as Ic,$z as Id,Av as i,Aw as ia,Ax as ib,Ay as hc,Az as hd,Bv as j,Bw as ja,Bx as jb,By as ic,Bz as id,Cv as k,Cw as ka,Cx as kb,Cy as jc,Cz as jd,Dv as l,Dw as la,Dx as lb,Dy as kc,Dz as kd,Ev as m,Ew as ma,Ex as mb,Ey as lc,Ez as ld,Fv as n,Fw as na,Fx as nb,Fy as mc,Fz as md,Gv as o,Gw as oa,Gx as ob,Gy as nc,Gz as nd,Hv as p,Hw as pa,Hx as pb,Hy as oc,Hz as od,Iv as q,Iw as qa,Ix as qb,Iy as pc,Iz as pd,Jv as r,Jw as ra,Jx as rb,Jy as qc,Jz as qd,Kv as s,Kw as sa,Kx as sb,Ky as rc,Kz as rd,Lv as t,Lw as ta,Lx as tb,Ly as sc,Lz as sd,Mv as u,Mw as ua,Mx as ub,My as tc,Mz as td,Nv as v,Nw as va,Nx as vb,Ny as uc,Nz as ud,Ov as w,Ow as wa,Ox as wb,Oy as vc,Oz as vd,Pv as x,Pw as xa,Px as xb,Py as wc,Pz as wd,Qv as y,Qw as ya,Qx as yb,Qy as xc,Qz as xd,Rv as z,Rw as za,Rx as zb,Ry as yc,Rz as yd,Sv as A,Sw as Aa,Sx as Ab,Sy as zc,Sz as zd,Tv as B,Tw as Ba,Tx as Bb,Ty as Ac,Tz as Ad,Uv as C,Uw as Ca,Ux as Cb,Uy as Bc,Uz as Bd,Vv as D,Vw as Da,Vx as Db,Vy as Cc,Vz as Cd,Wv as E,Ww as Ea,Wy as Dc,Wz as Dd,Xv as F,Xw as Fa,Xx as Eb,Xy as Ec,Xz as Ed,Yv as G,Yw as Ga,Yx as Fb,Yy as Fc,Yz as Fd,Zv as H,Zw as Ha,Zx as Gb,Zy as Gc,Zz as Gd,_v as I,_w as Ia,_x as Hb,_y as Hc,_z as Hd,aA as Jd,aw as K,ax as Ka,ay as Jb,az as Jc,bA as Kd,bw as L,bx as La,by as Kb,bz as Kc,cA as Ld,cw as M,cx as Ma,cy as Lb,cz as Lc,dA as Md,dw as N,dx as Na,dy as Mb,dz as Mc,eA as Nd,ew as O,ex as Oa,ey as Nb,ez as Nc,fA as Od,fw as P,fx as Pa,fy as Ob,fz as Oc,gw as Q,gx as Qa,gy as Pb,gz as Pc,hw as R,hx as Ra,hy as Qb,hz as Qc,iw as S,ix as Sa,iy as Rb,iz as Rc,jw as T,jx as Ta,jy as Sb,jz as Sc,kw as U,kx as Ua,ky as Tb,kz as Tc,lw as V,lx as Va,ly as Ub,lz as Uc,mw as W,mx as Wa,my as Vb,mz as Vc,nw as X,nx as Xa,ny as Wb,nz as Wc,ow as Y,ox as Ya,oy as Xb,oz as Xc,pw as Z,px as Za,py as Yb,pz as Yc,qw as _,qx as _a,qy as Zb,qz as Zc,rv as a,rw as $,rx as $a,ry as _b,rz as _c,sv as b,sw as aa,sx as ab,sy as $b,sz as $c,tv as c,tw as ba,tx as bb,ty as ac,tz as ad,uv as d,uw as ca,ux as cb,uy as bc,uz as bd,vv as e,vw as da,vx as db,vy as cc,vz as cd,wv as f,ww as ea,wx as eb,wy as dc,wz as dd,xv as g,xw as fa,xx as fb,xy as ec,xz as ed,yw as ga,yx as gb,yy as fc,yz as fd,zv as h,zw as ha,zx as hb,zy as gc,zz as gd}from"./chunk-t12xrrfr.js";import"./chunk-aztre27e.js";export{ka as version,i as util,n as treeifyError,Nd as toJSONSchema,o as toDotPath,x as safeParseAsync,v as safeParse,L as safeEncodeAsync,H as safeEncode,N as safeDecodeAsync,J as safeDecode,Ib as registry,O as regexes,p as prettifyError,t as parseAsync,r as parse,Eb as locales,Ma as isValidJWT,Ja as isValidBase64URL,Ha as isValidBase64,Jb as globalRegistry,f as globalConfig,m as formatError,l as flattenError,D as encodeAsync,z as encode,F as decodeAsync,B as decode,g as config,h as clone,Yb as _xid,Ec as _void,Rb as _uuidv7,Qb as _uuidv6,Pb as _uuidv4,Ob as _uuid,Sb as _url,Zc as _uppercase,Cc as _unknown,jd as _union,zc as _undefined,Xb as _ulid,xc as _uint64,rc as _uint32,md as _tuple,fd as _trim,ud as _transform,hd as _toUpperCase,gd as _toLowerCase,Dd as _templateLiteral,yc as _symbol,Id as _superRefine,zd as _success,Kd as _stringbool,Ld as _stringFormat,Kb as _string,$c as _startsWith,Tc as _size,pd as _set,w as _safeParseAsync,u as _safeParse,K as _safeEncodeAsync,G as _safeEncode,M as _safeDecodeAsync,I as _safeDecode,Xc as _regex,Hd as _refine,nd as _record,Cd as _readonly,bd as _property,Fd as _promise,Mc as _positive,Bd as _pipe,s as _parseAsync,q as _parse,dd as _overwrite,vd as _optional,lc as _number,wd as _nullable,Ac as _null,ed as _normalize,Oc as _nonpositive,yd as _nonoptional,Pc as _nonnegative,Dc as _never,Nc as _negative,rd as _nativeEnum,Ub as _nanoid,Hc as _nan,Qc as _multipleOf,Sc as _minSize,Vc as _minLength,Lc as _min,cd as _mime,Rc as _maxSize,Uc as _maxLength,Jc as _max,od as _map,Jc as _lte,Ic as _lt,Yc as _lowercase,sd as _literal,Wc as _length,Ed as _lazy,Zb as _ksuid,fc as _jwt,jc as _isoTime,kc as _isoDuration,hc as _isoDateTime,ic as _isoDate,$b as _ipv6,_b as _ipv4,ld as _intersection,wc as _int64,qc as _int32,nc as _int,_c as _includes,Nb as _guid,Lc as _gte,Kc as _gt,pc as _float64,oc as _float32,td as _file,qd as _enum,ad as _endsWith,C as _encodeAsync,y as _encode,Tb as _emoji,Mb as _email,ec as _e164,kd as _discriminatedUnion,xd as _default,E as _decodeAsync,A as _decode,Fc as _date,Gd as _custom,Wb as _cuid2,Vb as _cuid,Lb as _coercedString,mc as _coercedNumber,Gc as _coercedDate,tc as _coercedBoolean,vc as _coercedBigint,bc as _cidrv6,ac as _cidrv4,Jd as _check,Ad as _catch,sc as _boolean,uc as _bigint,dc as _base64url,cc as _base64,id as _array,Bc as _any,gc as TimePrecision,a as NEVER,Md as JSONSchemaGenerator,Od as JSONSchema,ja as Doc,Fb as $output,Gb as $input,b as $constructor,c as $brand,xa as $ZodXID,_a as $ZodVoid,Ya as $ZodUnknown,db as $ZodUnion,Va as $ZodUndefined,pa as $ZodUUID,ra as $ZodURL,wa as $ZodULID,la as $ZodType,gb as $ZodTuple,nb as $ZodTransform,zb as $ZodTemplateLiteral,Ua as $ZodSymbol,tb as $ZodSuccess,na as $ZodStringFormat,ma as $ZodString,jb as $ZodSet,Hb as $ZodRegistry,hb as $ZodRecord,k as $ZodRealError,yb as $ZodReadonly,Bb as $ZodPromise,rb as $ZodPrefault,wb as $ZodPipe,ob as $ZodOptional,cb as $ZodObjectJIT,bb as $ZodObject,Qa as $ZodNumberFormat,Pa as $ZodNumber,pb as $ZodNullable,Wa as $ZodNull,sb as $ZodNonOptional,Za as $ZodNever,ta as $ZodNanoID,vb as $ZodNaN,ib as $ZodMap,lb as $ZodLiteral,Cb as $ZodLazy,ya as $ZodKSUID,Na as $ZodJWT,fb as $ZodIntersection,Ba as $ZodISOTime,Ca as $ZodISODuration,za as $ZodISODateTime,Aa as $ZodISODate,Ea as $ZodIPv6,Da as $ZodIPv4,oa as $ZodGUID,Ab as $ZodFunction,mb as $ZodFile,j as $ZodError,kb as $ZodEnum,e as $ZodEncodeError,sa as $ZodEmoji,qa as $ZodEmail,La as $ZodE164,eb as $ZodDiscriminatedUnion,qb as $ZodDefault,$a as $ZodDate,Oa as $ZodCustomStringFormat,Db as $ZodCustom,xb as $ZodCodec,ca as $ZodCheckUpperCase,$ as $ZodCheckStringFormat,ea as $ZodCheckStartsWith,X as $ZodCheckSizeEquals,aa as $ZodCheckRegex,ga as $ZodCheckProperty,ia as $ZodCheckOverwrite,T as $ZodCheckNumberFormat,S as $ZodCheckMultipleOf,W as $ZodCheckMinSize,Z as $ZodCheckMinLength,ha as $ZodCheckMimeType,V as $ZodCheckMaxSize,Y as $ZodCheckMaxLength,ba as $ZodCheckLowerCase,Q as $ZodCheckLessThan,_ as $ZodCheckLengthEquals,da as $ZodCheckIncludes,R as $ZodCheckGreaterThan,fa as $ZodCheckEndsWith,U as $ZodCheckBigIntFormat,P as $ZodCheck,ub as $ZodCatch,va as $ZodCUID2,ua as $ZodCUID,Ga as $ZodCIDRv6,Fa as $ZodCIDRv4,Ra as $ZodBoolean,Ta as $ZodBigIntFormat,Sa as $ZodBigInt,Ka as $ZodBase64URL,Ia as $ZodBase64,d as $ZodAsyncError,ab as $ZodArray,Xa as $ZodAny};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{dQ as t}from"./chunk-aztre27e.js";var e=await import("./chunk-hmv2cdnz.js",{with:{type:"file"}}),a=e.default;export{a as default};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  function n(o){if(o.fork&&!o.continue&&!o.session)return"--fork requires --continue or --session";return}
3
- export{n as A};
3
+ export{n as B};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{rr as DG}from"./chunk-nxjbbq5h.js";import{uu as lb}from"./chunk-9wm41z2f.js";import{CP as oI,DP as jb,GP as zb}from"./chunk-s2za1y84.js";var tI=jb((Q1,pI)=>{var{PassThrough:Db}=zb("stream");pI.exports=function(){var I=[],G=new Db({objectMode:!0});return G.setMaxListeners(0),G.add=b,G.isEmpty=S,G.on("unpipe",$),Array.prototype.slice.call(arguments).forEach(b),G;function b(V){if(Array.isArray(V))return V.forEach(b),this;return I.push(V),V.once("end",$.bind(null,V)),V.once("error",G.emit.bind(G,"error")),V.pipe(G,{end:!1}),this}function S(){return I.length==0}function $(V){if(I=I.filter(function(H){return H!==V}),!I.length&&G.readable)G.end()}}});import zG from"process";var qG=oI(lb(),1);import{Buffer as ab}from"buffer";import ib from"path";import JI from"child_process";import u from"process";function l(I){let G=typeof I==="string"?`
2
+ import{Qr as DG}from"./chunk-jm1ptn8n.js";import{Tu as lb}from"./chunk-89v6dgpp.js";import{$P as oI,aQ as jb,dQ as zb}from"./chunk-aztre27e.js";var tI=jb((Q1,pI)=>{var{PassThrough:Db}=zb("stream");pI.exports=function(){var I=[],G=new Db({objectMode:!0});return G.setMaxListeners(0),G.add=b,G.isEmpty=S,G.on("unpipe",$),Array.prototype.slice.call(arguments).forEach(b),G;function b(V){if(Array.isArray(V))return V.forEach(b),this;return I.push(V),V.once("end",$.bind(null,V)),V.once("error",G.emit.bind(G,"error")),V.pipe(G,{end:!1}),this}function S(){return I.length==0}function $(V){if(I=I.filter(function(H){return H!==V}),!I.length&&G.readable)G.end()}}});import zG from"process";var qG=oI(lb(),1);import{Buffer as ab}from"buffer";import ib from"path";import JI from"child_process";import u from"process";function l(I){let G=typeof I==="string"?`
3
3
  `:`
4
4
  `.charCodeAt(),b=typeof I==="string"?"\r":"\r".charCodeAt();if(I[I.length-1]===G)I=I.slice(0,-1);if(I[I.length-1]===b)I=I.slice(0,-1);return I}import B from"process";import A from"path";import{fileURLToPath as yI}from"url";function O(I={}){let{env:G=process.env,platform:b=process.platform}=I;if(b!=="win32")return"PATH";return Object.keys(G).reverse().find((S)=>S.toUpperCase()==="PATH")||"Path"}var EG=({cwd:I=B.cwd(),path:G=B.env[O()],preferLocal:b=!0,execPath:S=B.execPath,addExecPath:$=!0}={})=>{let V=I instanceof URL?yI(I):I,H=A.resolve(V),U=[];if(b)OG(U,H);if($)BG(U,S,H);return[...U,G].join(A.delimiter)},OG=(I,G)=>{let b;while(b!==G)I.push(A.join(G,"node_modules/.bin")),b=G,G=A.resolve(G,"..")},BG=(I,G,b)=>{let S=G instanceof URL?yI(G):G;I.push(A.resolve(b,S,".."))},TI=({env:I=B.env,...G}={})=>{I={...I};let b=O({env:I});return G.path=I[b],I[b]=EG(G),I};var vG=(I,G,b,S)=>{if(b==="length"||b==="prototype")return;if(b==="arguments"||b==="caller")return;let $=Object.getOwnPropertyDescriptor(I,b),V=Object.getOwnPropertyDescriptor(G,b);if(!PG($,V)&&S)return;Object.defineProperty(I,b,V)},PG=function(I,G){return I===void 0||I.configurable||I.writable===G.writable&&I.enumerable===G.enumerable&&I.configurable===G.configurable&&(I.writable||I.value===G.value)},CG=(I,G)=>{let b=Object.getPrototypeOf(G);if(b===Object.getPrototypeOf(I))return;Object.setPrototypeOf(I,b)},wG=(I,G)=>`/* Wrapped ${I}*/
5
5
  ${G}`,xG=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),kG=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),cG=(I,G,b)=>{let S=b===""?"":`with ${b.trim()}() `,$=wG.bind(null,S,G.toString());Object.defineProperty($,"name",kG),Object.defineProperty(I,"toString",{...xG,value:$})};function a(I,G,{ignoreNonConfigurable:b=!1}={}){let{name:S}=I;for(let $ of Reflect.ownKeys(G))vG(I,G,$,b);return CG(I,G),cG(I,G,S),I}var v=new WeakMap,KI=(I,G={})=>{if(typeof I!=="function")throw TypeError("Expected a function");let b,S=0,$=I.displayName||I.name||"<anonymous>",V=function(...H){if(v.set(V,++S),S===1)b=I.apply(this,H),I=null;else if(G.throw===!0)throw Error(`Function \`${$}\` can only be called once`);return b};return a(V,I),v.set(V,S),V};KI.callCount=(I)=>{if(!v.has(I))throw Error(`The given function \`${I.name}\` is not wrapped by the \`onetime\` package`);return v.get(I)};var _I=KI;import iG from"process";import{constants as mG}from"os";var LI=()=>{let I=i-jI+1;return Array.from({length:I},fG)},fG=(I,G)=>({name:`SIGRT${G+1}`,number:jI+G,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),jI=34,i=64;import{constants as hG}from"os";var zI=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var p=()=>{let I=LI();return[...zI,...I].map(uG)},uG=({name:I,number:G,description:b,action:S,forced:$=!1,standard:V})=>{let{signals:{[I]:H}}=hG,U=H!==void 0;return{name:I,number:U?H:G,description:b,supported:U,action:S,forced:$,standard:V}};var gG=()=>{let I=p();return Object.fromEntries(I.map(dG))},dG=({name:I,number:G,description:b,supported:S,action:$,forced:V,standard:H})=>[I,{name:I,number:G,description:b,supported:S,action:$,forced:V,standard:H}],DI=gG(),nG=()=>{let I=p(),G=i+1,b=Array.from({length:G},(S,$)=>lG($,I));return Object.assign({},...b)},lG=(I,G)=>{let b=aG(I,G);if(b===void 0)return{};let{name:S,description:$,supported:V,action:H,forced:U,standard:W}=b;return{[I]:{name:S,number:I,description:$,supported:V,action:H,forced:U,standard:W}}},aG=(I,G)=>{let b=G.find(({name:S})=>mG.signals[S]===I);if(b!==void 0)return b;return G.find((S)=>S.number===I)},ES=nG();var pG=({timedOut:I,timeout:G,errorCode:b,signal:S,signalDescription:$,exitCode:V,isCanceled:H})=>{if(I)return`timed out after ${G} milliseconds`;if(H)return"was canceled";if(b!==void 0)return`failed with ${b}`;if(S!==void 0)return`was killed with ${S} (${$})`;if(V!==void 0)return`failed with exit code ${V}`;return"failed"},F=({stdout:I,stderr:G,all:b,error:S,signal:$,exitCode:V,command:H,escapedCommand:U,timedOut:W,isCanceled:Y,killed:q,parsed:{options:{timeout:L,cwd:N=iG.cwd()}}})=>{V=V===null?void 0:V,$=$===null?void 0:$;let Q=$===void 0?void 0:DI[$].description,J=S&&S.code,j=`Command ${pG({timedOut:W,timeout:L,errorCode:J,signal:$,signalDescription:Q,exitCode:V,isCanceled:Y})}: ${H}`,z=Object.prototype.toString.call(S)==="[object Error]",D=z?`${j}
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{qu as a,ru as b,su as c,tu as d,uu as e,vu as f,wu as g,xu as h}from"./chunk-ebrt1me3.js";import"./chunk-whxjkz9a.js";import"./chunk-89v6dgpp.js";import"./chunk-k309zez0.js";import"./chunk-09kba1hg.js";import"./chunk-t12xrrfr.js";import"./chunk-phxrg7aw.js";import"./chunk-snm5q21k.js";import"./chunk-aztre27e.js";export{g as redactValue,e as init,f as flush,d as file,b as enabled,h as create,a as Level,c as Default};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import"./chunk-aztre27e.js";var r="./highlights-eq9cgrbb.scm";export{r as default};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-s2za1y84.js";var ln=Object.defineProperty,br=(t)=>{throw TypeError(t)},we=(t,e)=>{for(var r in e)ln(t,r,{get:e[r],enumerable:!0})},Ar=(t,e,r)=>e.has(t)||br("Cannot "+r),$=(t,e,r)=>(Ar(t,e,"read from private field"),r?r.call(t):e.get(t)),Kt=(t,e,r)=>e.has(t)?br("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Y=(t,e,r,n)=>(Ar(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),Dr={};we(Dr,{languages:()=>ya,parsers:()=>zr,printers:()=>Du});var cn=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},vr=cn,Er="string",Cr="array",Sr="cursor",Be="indent",xe="align",kr="trim",Te="group",Ne="fill",Fe="if-break",wr="indent-if-break",Br="line-suffix",xr="line-suffix-boundary",wt="line",Tr="label",Pe="break-parent",Nr=new Set([Sr,Be,xe,kr,Te,Ne,Fe,wr,Br,xr,wt,Tr,Pe]),hn=(t,e,r)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},ht=hn;function pn(t){if(typeof t=="string")return Er;if(Array.isArray(t))return Cr;if(!t)return;let{type:e}=t;if(Nr.has(e))return e}var Fr=pn,dn=(t)=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function mn(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
2
+ import"./chunk-aztre27e.js";var ln=Object.defineProperty,br=(t)=>{throw TypeError(t)},we=(t,e)=>{for(var r in e)ln(t,r,{get:e[r],enumerable:!0})},Ar=(t,e,r)=>e.has(t)||br("Cannot "+r),$=(t,e,r)=>(Ar(t,e,"read from private field"),r?r.call(t):e.get(t)),Kt=(t,e,r)=>e.has(t)?br("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Y=(t,e,r,n)=>(Ar(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),Dr={};we(Dr,{languages:()=>ya,parsers:()=>zr,printers:()=>Du});var cn=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},vr=cn,Er="string",Cr="array",Sr="cursor",Be="indent",xe="align",kr="trim",Te="group",Ne="fill",Fe="if-break",wr="indent-if-break",Br="line-suffix",xr="line-suffix-boundary",wt="line",Tr="label",Pe="break-parent",Nr=new Set([Sr,Be,xe,kr,Te,Ne,Fe,wr,Br,xr,wt,Tr,Pe]),hn=(t,e,r)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},ht=hn;function pn(t){if(typeof t=="string")return Er;if(Array.isArray(t))return Cr;if(!t)return;let{type:e}=t;if(Nr.has(e))return e}var Fr=pn,dn=(t)=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function mn(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
3
3
  Expected it to be 'string' or 'object'.`;if(Fr(t))throw Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=dn([...Nr].map((a)=>`'${a}'`));return`Unexpected doc.type '${t.type}'.
4
4
  Expected it to be ${n}.`}var fn=class extends Error{name="InvalidDocError";constructor(t){super(mn(t)),this.doc=t}},gn=fn;function yn(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(u){if(r.has(u))return r.get(u);let i=a(u);return r.set(u,i),i}function a(u){switch(Fr(u)){case Cr:return e(u.map(n));case Ne:return e({...u,parts:u.parts.map(n)});case Fe:return e({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case Te:{let{expandedStates:i,contents:o}=u;return i?(i=i.map(n),o=i[0]):o=n(o),e({...u,contents:o,expandedStates:i})}case xe:case Be:case wr:case Tr:case Br:return e({...u,contents:n(u.contents)});case Er:case Sr:case kr:case xr:case wt:case Pe:return e(u);default:throw new gn(u)}}}function bn(t,e=Cn){return yn(t,(r)=>typeof r=="string"?It(e,r.split(`
5
5
  `)):r)}var Le=()=>{},St=Le,Pr=Le,An=Le;function q(t){return St(t),{type:Be,contents:t}}function Dn(t,e){return St(e),{type:xe,contents:e,n:t}}function O(t,e={}){return St(t),Pr(e.expandedStates,!0),{type:Te,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function ye(t){return Dn(-1,t)}function Ke(t){return An(t),{type:Ne,parts:t}}function Qe(t,e="",r={}){return St(t),e!==""&&St(e),{type:Fe,breakContents:t,flatContents:e,groupId:r.groupId}}var Lr={type:Pe},vn={type:wt,hard:!0},En={type:wt,hard:!0,literal:!0},N={type:wt},H={type:wt,soft:!0},mt=[vn,Lr],Cn=[En,Lr];function It(t,e){St(t),Pr(e);let r=[];for(let n=0;n<e.length;n++)n!==0&&r.push(t),r.push(e[n]);return r}var Ht="'",Je='"';function Sn(t,e){let r=e===!0||e===Ht?Ht:Je,n=r===Ht?Je:Ht,a=0,u=0;for(let i of t)i===r?a++:i===n&&u++;return a>u?n:r}var be=Sn;function kn(t){if(typeof t!="string")throw TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var R,wn=class{constructor(t){Kt(this,R),Y(this,R,new Set(t))}getLeadingWhitespaceCount(t){let e=$(this,R),r=0;for(let n=0;n<t.length&&e.has(t.charAt(n));n++)r++;return r}getTrailingWhitespaceCount(t){let e=$(this,R),r=0;for(let n=t.length-1;n>=0&&e.has(t.charAt(n));n--)r++;return r}getLeadingWhitespace(t){let e=this.getLeadingWhitespaceCount(t);return t.slice(0,e)}getTrailingWhitespace(t){let e=this.getTrailingWhitespaceCount(t);return t.slice(t.length-e)}hasLeadingWhitespace(t){return $(this,R).has(t.charAt(0))}hasTrailingWhitespace(t){return $(this,R).has(ht(!1,t,-1))}trimStart(t){let e=this.getLeadingWhitespaceCount(t);return t.slice(e)}trimEnd(t){let e=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-e)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,e=!1){let r=`[${kn([...$(this,R)].join(""))}]+`,n=new RegExp(e?`(${r})`:r,"u");return t.split(n)}hasWhitespaceCharacter(t){let e=$(this,R);return Array.prototype.some.call(t,(r)=>e.has(r))}hasNonWhitespaceCharacter(t){let e=$(this,R);return Array.prototype.some.call(t,(r)=>!e.has(r))}isWhitespaceOnly(t){let e=$(this,R);return Array.prototype.every.call(t,(r)=>e.has(r))}};R=new WeakMap;var Bn=wn,xn=["\t",`
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import"./chunk-s2za1y84.js";var e={"ui.sessionReview.title":"\uC138\uC158 \uBCC0\uACBD \uC0AC\uD56D","ui.sessionReview.title.lastTurn":"\uB9C8\uC9C0\uB9C9 \uD134 \uBCC0\uACBD \uC0AC\uD56D","ui.sessionReview.diffStyle.unified":"\uD1B5\uD569 \uBCF4\uAE30","ui.sessionReview.diffStyle.split":"\uBD84\uD560 \uBCF4\uAE30","ui.sessionReview.openFile":"\uD30C\uC77C \uC5F4\uAE30","ui.sessionReview.selection.line":"{{line}}\uBC88 \uC904","ui.sessionReview.selection.lines":"{{start}}-{{end}}\uBC88 \uC904","ui.sessionReview.expandAll":"\uBAA8\uB450 \uD3BC\uCE58\uAE30","ui.sessionReview.collapseAll":"\uBAA8\uB450 \uC811\uAE30","ui.sessionReview.change.added":"\uCD94\uAC00\uB428","ui.sessionReview.change.removed":"\uC0AD\uC81C\uB428","ui.sessionReview.change.modified":"\uC218\uC815\uB428","ui.sessionReview.image.loading":"\uB85C\uB529 \uC911...","ui.sessionReview.image.placeholder":"\uC774\uBBF8\uC9C0","ui.sessionReview.largeDiff.title":"\uCC28\uC774\uAC00 \uB108\uBB34 \uCEE4\uC11C \uB80C\uB354\uB9C1\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4","ui.sessionReview.largeDiff.meta":"\uC81C\uD55C: {{limit}} \uBCC0\uACBD \uC904. \uD604\uC7AC: {{current}} \uBCC0\uACBD \uC904.","ui.sessionReview.largeDiff.renderAnyway":"\uADF8\uB798\uB3C4 \uB80C\uB354\uB9C1","ui.fileMedia.kind.image":"\uC774\uBBF8\uC9C0","ui.fileMedia.kind.audio":"\uC624\uB514\uC624","ui.fileMedia.state.removed":"{{kind}} \uC81C\uAC70\uB428","ui.fileMedia.state.loading":"{{kind}} \uB85C\uB4DC \uC911...","ui.fileMedia.state.error":"{{kind}} \uB85C\uB4DC \uC624\uB958","ui.fileMedia.state.unavailable":"{{kind}} \uC0AC\uC6A9 \uBD88\uAC00","ui.fileMedia.binary.title":"\uBC14\uC774\uB108\uB9AC \uD30C\uC77C","ui.fileMedia.binary.description.path":"{{path}}\uC740(\uB294) \uBC14\uC774\uB108\uB9AC \uD30C\uC77C\uC774\uBBC0\uB85C \uD45C\uC2DC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.","ui.fileMedia.binary.description.default":"\uBC14\uC774\uB108\uB9AC \uD30C\uC77C\uC774\uBBC0\uB85C \uD45C\uC2DC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.","ui.lineComment.label.prefix":"","ui.lineComment.label.suffix":"\uC5D0 \uB313\uAE00 \uB2EC\uAE30","ui.lineComment.editorLabel.prefix":"","ui.lineComment.editorLabel.suffix":"\uC5D0 \uB313\uAE00 \uC791\uC131 \uC911","ui.lineComment.placeholder":"\uB313\uAE00 \uCD94\uAC00","ui.lineComment.submit":"\uB313\uAE00","ui.sessionTurn.steps.show":"\uB2E8\uACC4 \uD45C\uC2DC","ui.sessionTurn.steps.hide":"\uB2E8\uACC4 \uC228\uAE30\uAE30","ui.sessionTurn.summary.response":"\uC751\uB2F5","ui.sessionTurn.diff.showMore":"\uBCC0\uACBD \uC0AC\uD56D \uB354 \uBCF4\uAE30 ({{count}})","ui.sessionTurn.retry.retrying":"\uC7AC\uC2DC\uB3C4 \uC911","ui.sessionTurn.retry.inSeconds":"{{seconds}}\uCD08 \uD6C4","ui.sessionTurn.retry.attempt":"{{attempt}}\uBC88\uC9F8","ui.sessionTurn.retry.attemptLine":"{{line}} - {{attempt}}\uBC88\uC9F8","ui.sessionTurn.retry.geminiHot":"gemini\uAC00 \uD604\uC7AC \uACFC\uBD80\uD558 \uC0C1\uD0DC\uC785\uB2C8\uB2E4","ui.sessionTurn.error.freeUsageExceeded":"\uBB34\uB8CC \uC0AC\uC6A9\uB7C9 \uCD08\uACFC","ui.sessionTurn.error.addQredits":"\uD06C\uB808\uB527 \uCD94\uAC00","ui.sessionTurn.status.delegating":"\uC791\uC5C5 \uC704\uC784 \uC911","ui.sessionTurn.status.planning":"\uB2E4\uC74C \uB2E8\uACC4 \uACC4\uD68D \uC911","ui.sessionTurn.status.gatheringContext":"\uD0D0\uC0C9 \uC911","ui.sessionTurn.status.gatheredContext":"\uD0D0\uC0C9\uB428","ui.sessionTurn.status.searchingCodebase":"\uCF54\uB4DC\uBCA0\uC774\uC2A4 \uAC80\uC0C9 \uC911","ui.sessionTurn.status.searchingWeb":"\uC6F9 \uAC80\uC0C9 \uC911","ui.sessionTurn.status.makingEdits":"\uD3B8\uC9D1 \uC218\uD589 \uC911","ui.sessionTurn.status.runningCommands":"\uBA85\uB839\uC5B4 \uC2E4\uD589 \uC911","ui.sessionTurn.status.thinking":"\uC0DD\uAC01 \uC911","ui.sessionTurn.status.thinkingWithTopic":"\uC0DD\uAC01 \uC911 - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"\uC0DD\uAC01 \uC815\uB9AC \uC911","ui.sessionTurn.status.consideringNextSteps":"\uB2E4\uC74C \uB2E8\uACC4 \uACE0\uB824 \uC911","ui.messagePart.questions.dismissed":"\uC9C8\uBB38 \uBB34\uC2DC\uB428","ui.messagePart.compaction":"\uC138\uC158 \uC555\uCD95\uB428","ui.messagePart.context.read.one":"{{count}}\uAC1C \uC77D\uC74C","ui.messagePart.context.read.other":"{{count}}\uAC1C \uC77D\uC74C","ui.messagePart.context.search.one":"{{count}}\uAC1C \uAC80\uC0C9","ui.messagePart.context.search.other":"{{count}}\uAC1C \uAC80\uC0C9","ui.messagePart.context.list.one":"{{count}}\uAC1C \uBAA9\uB85D","ui.messagePart.context.list.other":"{{count}}\uAC1C \uBAA9\uB85D","ui.messagePart.diagnostic.error":"\uC624\uB958","ui.messagePart.title.edit":"\uD3B8\uC9D1","ui.messagePart.title.write":"\uC791\uC131","ui.messagePart.option.typeOwnAnswer":"\uC9C1\uC811 \uB2F5\uBCC0 \uC785\uB825","ui.messagePart.review.title":"\uB2F5\uBCC0 \uAC80\uD1A0","ui.list.loading":"\uB85C\uB529 \uC911","ui.list.empty":"\uACB0\uACFC \uC5C6\uC74C","ui.list.clearFilter":"\uD544\uD130 \uC9C0\uC6B0\uAE30","ui.list.emptyWithFilter.prefix":"\uB2E4\uC74C\uC5D0 \uB300\uD55C \uACB0\uACFC \uC5C6\uC74C: ","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"\uC0C8 \uBA54\uC2DC\uC9C0","ui.textField.copyToClipboard":"\uD074\uB9BD\uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC","ui.textField.copyLink":"\uB9C1\uD06C \uBCF5\uC0AC","ui.textField.copied":"\uBCF5\uC0AC\uB428","ui.imagePreview.alt":"\uC774\uBBF8\uC9C0 \uBBF8\uB9AC\uBCF4\uAE30","ui.scrollView.ariaLabel":"\uC2A4\uD06C\uB864 \uAC00\uB2A5\uD55C \uCF58\uD150\uCE20","ui.tool.read":"\uC77D\uAE30","ui.tool.loaded":"\uB85C\uB4DC\uB428","ui.tool.list":"\uBAA9\uB85D","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"\uC6F9 \uAC00\uC838\uC624\uAE30","ui.tool.websearch":"\uC6F9 \uAC80\uC0C9","ui.tool.codesearch":"\uCF54\uB4DC \uAC80\uC0C9","ui.tool.shell":"\uC178","ui.tool.patch":"\uD328\uCE58","ui.tool.todos":"\uD560 \uC77C","ui.tool.todos.read":"\uD560 \uC77C \uC77D\uAE30","ui.tool.questions":"\uC9C8\uBB38","ui.tool.agent":"{{type}} \uC5D0\uC774\uC804\uD2B8","ui.tool.agent.default":"\uC5D0\uC774\uC804\uD2B8","ui.common.file.one":"\uD30C\uC77C","ui.common.file.other":"\uD30C\uC77C","ui.common.question.one":"\uC9C8\uBB38","ui.common.question.other":"\uC9C8\uBB38","ui.common.add":"\uCD94\uAC00","ui.common.back":"\uB4A4\uB85C","ui.common.cancel":"\uCDE8\uC18C","ui.common.confirm":"\uD655\uC778","ui.common.dismiss":"\uB2EB\uAE30","ui.common.close":"\uB2EB\uAE30","ui.common.next":"\uB2E4\uC74C","ui.common.submit":"\uC81C\uCD9C","ui.permission.deny":"\uAC70\uBD80","ui.permission.allowAlways":"\uD56D\uC0C1 \uD5C8\uC6A9","ui.permission.allowOnce":"\uD55C \uBC88\uB9CC \uD5C8\uC6A9","ui.message.expand":"\uBA54\uC2DC\uC9C0 \uD3BC\uCE58\uAE30","ui.message.collapse":"\uBA54\uC2DC\uC9C0 \uC811\uAE30","ui.message.copy":"\uBCF5\uC0AC","ui.message.copyMessage":"\uBA54\uC2DC\uC9C0 \uBCF5\uC0AC","ui.message.forkMessage":"\uC0C8 \uC138\uC158\uC73C\uB85C \uBD84\uAE30","ui.message.revertMessage":"\uC774 \uC2DC\uC810\uC73C\uB85C \uCD08\uAE30\uD654","ui.message.copyResponse":"\uC751\uB2F5 \uBCF5\uC0AC","ui.message.copied":"\uBCF5\uC0AC\uB428!","ui.message.interrupted":"\uC911\uB2E8\uB428","ui.message.queued":"\uB300\uAE30 \uC911","ui.message.attachment.alt":"\uCCA8\uBD80 \uD30C\uC77C","ui.patch.action.deleted":"\uC0AD\uC81C\uB428","ui.patch.action.created":"\uC0DD\uC131\uB428","ui.patch.action.moved":"\uC774\uB3D9\uB428","ui.patch.action.patched":"\uD328\uCE58\uB428","ui.question.subtitle.answered":"{{count}}\uAC1C \uB2F5\uBCC0\uB428","ui.question.answer.none":"(\uB2F5\uBCC0 \uC5C6\uC74C)","ui.question.review.notAnswered":"(\uB2F5\uBCC0\uB418\uC9C0 \uC54A\uC74C)","ui.question.multiHint":"\uD574\uB2F9\uD558\uB294 \uD56D\uBAA9 \uBAA8\uB450 \uC120\uD0DD","ui.question.singleHint":"\uD558\uB098\uC758 \uB2F5\uBCC0\uC744 \uC120\uD0DD","ui.question.custom.placeholder":"\uB2F5\uBCC0 \uC785\uB825...","ui.fileSearch.placeholder":"\uCC3E\uAE30","ui.fileSearch.previousMatch":"\uC774\uC804 \uD56D\uBAA9","ui.fileSearch.nextMatch":"\uB2E4\uC74C \uD56D\uBAA9","ui.fileSearch.close":"\uAC80\uC0C9 \uB2EB\uAE30","ui.tool.task":"\uC791\uC5C5","ui.tool.skill":"\uC2A4\uD0AC","ui.basicTool.called":"`{{tool}}` \uD638\uCD9C\uB428","ui.toolErrorCard.failed":"\uC2E4\uD328","ui.toolErrorCard.copyError":"\uC624\uB958 \uBCF5\uC0AC","ui.message.duration.seconds":"{{count}}\uCD08","ui.message.duration.minutesSeconds":"{{minutes}}\uBD84 {{seconds}}\uCD08"};export{e as dict};
2
+ import"./chunk-aztre27e.js";var e={"ui.sessionReview.title":"\uC138\uC158 \uBCC0\uACBD \uC0AC\uD56D","ui.sessionReview.title.lastTurn":"\uB9C8\uC9C0\uB9C9 \uD134 \uBCC0\uACBD \uC0AC\uD56D","ui.sessionReview.diffStyle.unified":"\uD1B5\uD569 \uBCF4\uAE30","ui.sessionReview.diffStyle.split":"\uBD84\uD560 \uBCF4\uAE30","ui.sessionReview.openFile":"\uD30C\uC77C \uC5F4\uAE30","ui.sessionReview.selection.line":"{{line}}\uBC88 \uC904","ui.sessionReview.selection.lines":"{{start}}-{{end}}\uBC88 \uC904","ui.sessionReview.expandAll":"\uBAA8\uB450 \uD3BC\uCE58\uAE30","ui.sessionReview.collapseAll":"\uBAA8\uB450 \uC811\uAE30","ui.sessionReview.change.added":"\uCD94\uAC00\uB428","ui.sessionReview.change.removed":"\uC0AD\uC81C\uB428","ui.sessionReview.change.modified":"\uC218\uC815\uB428","ui.sessionReview.image.loading":"\uB85C\uB529 \uC911...","ui.sessionReview.image.placeholder":"\uC774\uBBF8\uC9C0","ui.sessionReview.largeDiff.title":"\uCC28\uC774\uAC00 \uB108\uBB34 \uCEE4\uC11C \uB80C\uB354\uB9C1\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4","ui.sessionReview.largeDiff.meta":"\uC81C\uD55C: {{limit}} \uBCC0\uACBD \uC904. \uD604\uC7AC: {{current}} \uBCC0\uACBD \uC904.","ui.sessionReview.largeDiff.renderAnyway":"\uADF8\uB798\uB3C4 \uB80C\uB354\uB9C1","ui.fileMedia.kind.image":"\uC774\uBBF8\uC9C0","ui.fileMedia.kind.audio":"\uC624\uB514\uC624","ui.fileMedia.state.removed":"{{kind}} \uC81C\uAC70\uB428","ui.fileMedia.state.loading":"{{kind}} \uB85C\uB4DC \uC911...","ui.fileMedia.state.error":"{{kind}} \uB85C\uB4DC \uC624\uB958","ui.fileMedia.state.unavailable":"{{kind}} \uC0AC\uC6A9 \uBD88\uAC00","ui.fileMedia.binary.title":"\uBC14\uC774\uB108\uB9AC \uD30C\uC77C","ui.fileMedia.binary.description.path":"{{path}}\uC740(\uB294) \uBC14\uC774\uB108\uB9AC \uD30C\uC77C\uC774\uBBC0\uB85C \uD45C\uC2DC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.","ui.fileMedia.binary.description.default":"\uBC14\uC774\uB108\uB9AC \uD30C\uC77C\uC774\uBBC0\uB85C \uD45C\uC2DC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.","ui.lineComment.label.prefix":"","ui.lineComment.label.suffix":"\uC5D0 \uB313\uAE00 \uB2EC\uAE30","ui.lineComment.editorLabel.prefix":"","ui.lineComment.editorLabel.suffix":"\uC5D0 \uB313\uAE00 \uC791\uC131 \uC911","ui.lineComment.placeholder":"\uB313\uAE00 \uCD94\uAC00","ui.lineComment.submit":"\uB313\uAE00","ui.sessionTurn.steps.show":"\uB2E8\uACC4 \uD45C\uC2DC","ui.sessionTurn.steps.hide":"\uB2E8\uACC4 \uC228\uAE30\uAE30","ui.sessionTurn.summary.response":"\uC751\uB2F5","ui.sessionTurn.diff.showMore":"\uBCC0\uACBD \uC0AC\uD56D \uB354 \uBCF4\uAE30 ({{count}})","ui.sessionTurn.retry.retrying":"\uC7AC\uC2DC\uB3C4 \uC911","ui.sessionTurn.retry.inSeconds":"{{seconds}}\uCD08 \uD6C4","ui.sessionTurn.retry.attempt":"{{attempt}}\uBC88\uC9F8","ui.sessionTurn.retry.attemptLine":"{{line}} - {{attempt}}\uBC88\uC9F8","ui.sessionTurn.retry.geminiHot":"gemini\uAC00 \uD604\uC7AC \uACFC\uBD80\uD558 \uC0C1\uD0DC\uC785\uB2C8\uB2E4","ui.sessionTurn.error.freeUsageExceeded":"\uBB34\uB8CC \uC0AC\uC6A9\uB7C9 \uCD08\uACFC","ui.sessionTurn.error.addQredits":"\uD06C\uB808\uB527 \uCD94\uAC00","ui.sessionTurn.status.delegating":"\uC791\uC5C5 \uC704\uC784 \uC911","ui.sessionTurn.status.planning":"\uB2E4\uC74C \uB2E8\uACC4 \uACC4\uD68D \uC911","ui.sessionTurn.status.gatheringContext":"\uD0D0\uC0C9 \uC911","ui.sessionTurn.status.gatheredContext":"\uD0D0\uC0C9\uB428","ui.sessionTurn.status.searchingCodebase":"\uCF54\uB4DC\uBCA0\uC774\uC2A4 \uAC80\uC0C9 \uC911","ui.sessionTurn.status.searchingWeb":"\uC6F9 \uAC80\uC0C9 \uC911","ui.sessionTurn.status.makingEdits":"\uD3B8\uC9D1 \uC218\uD589 \uC911","ui.sessionTurn.status.runningCommands":"\uBA85\uB839\uC5B4 \uC2E4\uD589 \uC911","ui.sessionTurn.status.thinking":"\uC0DD\uAC01 \uC911","ui.sessionTurn.status.thinkingWithTopic":"\uC0DD\uAC01 \uC911 - {{topic}}","ui.sessionTurn.status.gatheringThoughts":"\uC0DD\uAC01 \uC815\uB9AC \uC911","ui.sessionTurn.status.consideringNextSteps":"\uB2E4\uC74C \uB2E8\uACC4 \uACE0\uB824 \uC911","ui.messagePart.questions.dismissed":"\uC9C8\uBB38 \uBB34\uC2DC\uB428","ui.messagePart.compaction":"\uC138\uC158 \uC555\uCD95\uB428","ui.messagePart.context.read.one":"{{count}}\uAC1C \uC77D\uC74C","ui.messagePart.context.read.other":"{{count}}\uAC1C \uC77D\uC74C","ui.messagePart.context.search.one":"{{count}}\uAC1C \uAC80\uC0C9","ui.messagePart.context.search.other":"{{count}}\uAC1C \uAC80\uC0C9","ui.messagePart.context.list.one":"{{count}}\uAC1C \uBAA9\uB85D","ui.messagePart.context.list.other":"{{count}}\uAC1C \uBAA9\uB85D","ui.messagePart.diagnostic.error":"\uC624\uB958","ui.messagePart.title.edit":"\uD3B8\uC9D1","ui.messagePart.title.write":"\uC791\uC131","ui.messagePart.option.typeOwnAnswer":"\uC9C1\uC811 \uB2F5\uBCC0 \uC785\uB825","ui.messagePart.review.title":"\uB2F5\uBCC0 \uAC80\uD1A0","ui.list.loading":"\uB85C\uB529 \uC911","ui.list.empty":"\uACB0\uACFC \uC5C6\uC74C","ui.list.clearFilter":"\uD544\uD130 \uC9C0\uC6B0\uAE30","ui.list.emptyWithFilter.prefix":"\uB2E4\uC74C\uC5D0 \uB300\uD55C \uACB0\uACFC \uC5C6\uC74C: ","ui.list.emptyWithFilter.suffix":"","ui.messageNav.newMessage":"\uC0C8 \uBA54\uC2DC\uC9C0","ui.textField.copyToClipboard":"\uD074\uB9BD\uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC","ui.textField.copyLink":"\uB9C1\uD06C \uBCF5\uC0AC","ui.textField.copied":"\uBCF5\uC0AC\uB428","ui.imagePreview.alt":"\uC774\uBBF8\uC9C0 \uBBF8\uB9AC\uBCF4\uAE30","ui.scrollView.ariaLabel":"\uC2A4\uD06C\uB864 \uAC00\uB2A5\uD55C \uCF58\uD150\uCE20","ui.tool.read":"\uC77D\uAE30","ui.tool.loaded":"\uB85C\uB4DC\uB428","ui.tool.list":"\uBAA9\uB85D","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"\uC6F9 \uAC00\uC838\uC624\uAE30","ui.tool.websearch":"\uC6F9 \uAC80\uC0C9","ui.tool.codesearch":"\uCF54\uB4DC \uAC80\uC0C9","ui.tool.shell":"\uC178","ui.tool.patch":"\uD328\uCE58","ui.tool.todos":"\uD560 \uC77C","ui.tool.todos.read":"\uD560 \uC77C \uC77D\uAE30","ui.tool.questions":"\uC9C8\uBB38","ui.tool.agent":"{{type}} \uC5D0\uC774\uC804\uD2B8","ui.tool.agent.default":"\uC5D0\uC774\uC804\uD2B8","ui.common.file.one":"\uD30C\uC77C","ui.common.file.other":"\uD30C\uC77C","ui.common.question.one":"\uC9C8\uBB38","ui.common.question.other":"\uC9C8\uBB38","ui.common.add":"\uCD94\uAC00","ui.common.back":"\uB4A4\uB85C","ui.common.cancel":"\uCDE8\uC18C","ui.common.confirm":"\uD655\uC778","ui.common.dismiss":"\uB2EB\uAE30","ui.common.close":"\uB2EB\uAE30","ui.common.next":"\uB2E4\uC74C","ui.common.submit":"\uC81C\uCD9C","ui.permission.deny":"\uAC70\uBD80","ui.permission.allowAlways":"\uD56D\uC0C1 \uD5C8\uC6A9","ui.permission.allowOnce":"\uD55C \uBC88\uB9CC \uD5C8\uC6A9","ui.message.expand":"\uBA54\uC2DC\uC9C0 \uD3BC\uCE58\uAE30","ui.message.collapse":"\uBA54\uC2DC\uC9C0 \uC811\uAE30","ui.message.copy":"\uBCF5\uC0AC","ui.message.copyMessage":"\uBA54\uC2DC\uC9C0 \uBCF5\uC0AC","ui.message.forkMessage":"\uC0C8 \uC138\uC158\uC73C\uB85C \uBD84\uAE30","ui.message.revertMessage":"\uC774 \uC2DC\uC810\uC73C\uB85C \uCD08\uAE30\uD654","ui.message.copyResponse":"\uC751\uB2F5 \uBCF5\uC0AC","ui.message.copied":"\uBCF5\uC0AC\uB428!","ui.message.interrupted":"\uC911\uB2E8\uB428","ui.message.queued":"\uB300\uAE30 \uC911","ui.message.attachment.alt":"\uCCA8\uBD80 \uD30C\uC77C","ui.patch.action.deleted":"\uC0AD\uC81C\uB428","ui.patch.action.created":"\uC0DD\uC131\uB428","ui.patch.action.moved":"\uC774\uB3D9\uB428","ui.patch.action.patched":"\uD328\uCE58\uB428","ui.question.subtitle.answered":"{{count}}\uAC1C \uB2F5\uBCC0\uB428","ui.question.answer.none":"(\uB2F5\uBCC0 \uC5C6\uC74C)","ui.question.review.notAnswered":"(\uB2F5\uBCC0\uB418\uC9C0 \uC54A\uC74C)","ui.question.multiHint":"\uD574\uB2F9\uD558\uB294 \uD56D\uBAA9 \uBAA8\uB450 \uC120\uD0DD","ui.question.singleHint":"\uD558\uB098\uC758 \uB2F5\uBCC0\uC744 \uC120\uD0DD","ui.question.custom.placeholder":"\uB2F5\uBCC0 \uC785\uB825...","ui.fileSearch.placeholder":"\uCC3E\uAE30","ui.fileSearch.previousMatch":"\uC774\uC804 \uD56D\uBAA9","ui.fileSearch.nextMatch":"\uB2E4\uC74C \uD56D\uBAA9","ui.fileSearch.close":"\uAC80\uC0C9 \uB2EB\uAE30","ui.tool.task":"\uC791\uC5C5","ui.tool.skill":"\uC2A4\uD0AC","ui.basicTool.called":"`{{tool}}` \uD638\uCD9C\uB428","ui.toolErrorCard.failed":"\uC2E4\uD328","ui.toolErrorCard.copyError":"\uC624\uB958 \uBCF5\uC0AC","ui.message.duration.seconds":"{{count}}\uCD08","ui.message.duration.minutesSeconds":"{{minutes}}\uBD84 {{seconds}}\uCD08"};export{e as dict};
@@ -1,8 +1,8 @@
1
1
  // @bun
2
- import{Cp as s$}from"./chunk-7qxn24qa.js";import{Op as Z2,Pp as X2,Rp as J2}from"./chunk-7ryv0f5h.js";import{Vs as L$}from"./chunk-n07rsssz.js";import{$t as $2,Ot as g,Rt as l,St as F}from"./chunk-08y06vgt.js";import{pu as B$}from"./chunk-9p83me3p.js";import{uu as p2}from"./chunk-9wm41z2f.js";import{AD as r$,FC as M$,PF as K$,SN as Q,WC as Q$,qI as U}from"./chunk-ynfbz3sz.js";import{CP as n2,EP as j$,GP as U$}from"./chunk-s2za1y84.js";var _$={};j$(_$,{sweepStaleAuthTmp:()=>o$,layer:()=>a$,defaultLayer:()=>q2,WellKnown:()=>x$,Service:()=>J$,Oauth:()=>N$,OAUTH_DUMMY_KEY:()=>F2,Info:()=>t$,AuthError:()=>Y$,Auth:()=>_$,Api:()=>T$});import R2 from"path";var A={};j$(A,{setKeySequenceForTest:()=>x2,setKeyForTest:()=>T2,resetForTest:()=>N2,isEnvelope:()=>U2,encryptionKey:()=>B2,encrypt:()=>_2,decrypt:()=>w2,AuthKeyring:()=>A});import e from"crypto";import{execFile as Q2}from"child_process";var y="qitqode",m="auth-encryption-key",p$="__qitqode_encrypted__";function U2(Z){return typeof Z==="object"&&Z!==null&&Z[p$]===1&&Z.alg==="aes-256-gcm"}function c(Z,$,X){return new Promise((J)=>{let O=Q2(Z,$,{timeout:5000},(z,W)=>{let G=z?z.code??1:0;J({code:typeof G==="number"?G:1,stdout:W??""})});if(X!==void 0)O.stdin?.write(X),O.stdin?.end()})}async function n$(Z,$){return(await c(Z,$)).code===0}async function K2(){if(process.env.QITQODE_DISABLE_KEYRING)return;if(process.platform==="darwin"){if(!await n$("security",["help"]))return;return{async get(){let Z=await c("security",["find-generic-password","-s",y,"-a",m,"-w"]);return Z.code===0?Z.stdout.trim():void 0},async set(Z){return(await c("security",["add-generic-password","-U","-s",y,"-a",m,"-w",Z])).code===0}}}if(process.platform==="linux"){if(!await n$("secret-tool",["search","service",y])){let Z=await c("secret-tool",["lookup","service",y,"account",m]);if(Z.code!==0&&Z.code!==1)return}return{async get(){let Z=await c("secret-tool",["lookup","service",y,"account",m]);return Z.code===0&&Z.stdout.trim()?Z.stdout.trim():void 0},async set(Z){return(await c("secret-tool",["store","--label","QitQode auth encryption key","service",y,"account",m],Z)).code===0}}}return}var $$,u;function B2(){if(u!==void 0&&u.length>0)return Promise.resolve(u.shift());return $$??=(async()=>{let Z=await K2();if(!Z)return;let $=await Z.get();if($){let X=Buffer.from($,"base64");if(X.length===32)return X;return}return g.withLock("auth-keyring-init",async()=>{let X=await Z.get();if(X){let W=Buffer.from(X,"base64");return W.length===32?W:void 0}let J=e.randomBytes(32);if(!await Z.set(J.toString("base64")))return;let O=await Z.get();if(!O)return;let z=Buffer.from(O,"base64");return z.length===32?z:void 0})})(),$$}function N2(){$$=void 0,u=void 0}function T2(Z){$$=Promise.resolve(Z),u=void 0}function x2(Z){u=[...Z]}function _2(Z,$){let X=e.randomBytes(12),J=e.createCipheriv("aes-256-gcm",$,X),O=Buffer.concat([J.update(Z,"utf8"),J.final()]);return{[p$]:1,alg:"aes-256-gcm",iv:X.toString("base64"),tag:J.getAuthTag().toString("base64"),data:O.toString("base64")}}function w2(Z,$){let X=e.createDecipheriv("aes-256-gcm",$,Buffer.from(Z.iv,"base64"));return X.setAuthTag(Buffer.from(Z.tag,"base64")),Buffer.concat([X.update(Buffer.from(Z.data,"base64")),X.final()]).toString("utf8")}var F2="qitqode-oauth-dummy-key",X$=R2.join(l.Path.data,"auth.json"),S2=60000;async function o$(){let Z=X$+".tmp";try{let{stat:$,unlink:X}=await import("fs/promises"),J=await $(Z);if(Date.now()-J.mtimeMs>=S2)await X(Z).catch(()=>{return})}catch{}}var Z$=(Z)=>($)=>new Y$({message:Z,cause:$});class N$ extends Q.Class("OAuth")({type:Q.Literal("oauth"),refresh:Q.String,access:Q.String,expires:Q.Number,accountId:Q.optional(Q.String),enterpriseUrl:Q.optional(Q.String)}){}class T$ extends Q.Class("ApiAuth")({type:Q.Literal("api"),key:Q.String,metadata:Q.optional(Q.Record(Q.String,Q.String))}){}class x$ extends Q.Class("WellKnownAuth")({type:Q.Literal("wellknown"),key:Q.String,token:Q.String}){}var i$=Q.Union([N$,T$,x$]).annotate({discriminator:"type",identifier:"Auth"}),t$=Object.assign(i$,{zod:s$(i$)});class Y$ extends Q.TaggedErrorClass()("AuthError",{message:Q.String,cause:Q.optional(Q.Defect)}){}class J$ extends r$.Service()("@qitqode/Auth"){}var a$=K$.effect(J$,U.gen(function*(){let Z=yield*B$.Service,$=Q.decodeUnknownOption(t$);yield*U.promise(()=>o$());let X=U.fn("Auth.readFile")(function*(){let I=yield*Z.readJson(X$).pipe(U.orElseSucceed(()=>({})));if(!A.isEnvelope(I))return I;let D=yield*U.promise(()=>A.encryptionKey());if(!D)return yield*U.fail(new Y$({message:"auth.json is encrypted but the OS keyring is unavailable. Restore keyring access or delete auth.json and log in again."}));return yield*U.try({try:()=>JSON.parse(A.decrypt(I,D)),catch:Z$("Failed to decrypt auth data (keyring key mismatch?)")})}),J=U.fn("Auth.writeFile")(function*(I){let D=yield*U.promise(()=>A.encryptionKey()),L=D?A.encrypt(JSON.stringify(I),D):I,M=X$+".tmp";yield*Z.writeJson(M,L).pipe(U.mapError(Z$("Failed to write auth data"))),yield*Z.chmod(M,384).pipe(U.mapError(Z$("Failed to set auth file permissions"))),yield*Z.rename(M,X$).pipe(U.mapError(Z$("Failed to atomically replace auth data")))}),O=U.fn("Auth.all")(function*(){let I=yield*X(),D=Q$.filterMap(I,(L)=>M$.fromOption($(L),()=>{return}));if(process.env.QITQODE_AUTH_CONTENT)try{let L=JSON.parse(process.env.QITQODE_AUTH_CONTENT);return{...Q$.filterMap(L,(B)=>M$.fromOption($(B),()=>{return})),...D}}catch(L){console.error("[Auth] Failed to parse QITQODE_AUTH_CONTENT env var:",L)}return D}),z=U.fn("Auth.get")(function*(I){return(yield*O())[I]}),W="auth-file",G=U.fn("Auth.set")(function*(I,D){yield*U.scoped(U.gen(function*(){yield*g.effect(W);let L=I.replace(/\/+$/,""),M=yield*O();if(L!==I)delete M[I];delete M[L+"/"],yield*J({...M,[L]:D})}))}),V=U.fn("Auth.remove")(function*(I){yield*U.scoped(U.gen(function*(){yield*g.effect(W);let D=I.replace(/\/+$/,""),L=yield*O();delete L[I],delete L[D],yield*J(L)}))});return J$.of({get:z,all:O,set:G,remove:V})})),q2=a$.pipe(K$.provide(B$.defaultLayer));function e$({onRequest:Z,onSseError:$,onSseEvent:X,responseTransformer:J,responseValidator:O,sseDefaultRetryDelay:z,sseMaxRetryAttempts:W,sseMaxRetryDelay:G,sseSleepFn:V,url:I,...D}){let L,M=V??((K)=>new Promise((T)=>setTimeout(T,K)));return{stream:async function*(){let K=z??3000,T=0,R=D.signal??new AbortController().signal;while(!0){if(R.aborted)break;T++;let t=D.headers instanceof Headers?D.headers:new Headers(D.headers);if(L!==void 0)t.set("Last-Event-ID",L);try{let P={redirect:"follow",...D,body:D.serializedBody,headers:t,signal:R},h=new Request(I,P);if(Z)h=await Z(I,P);let x=await(D.fetch??globalThis.fetch)(h);if(!x.ok)throw Error(`SSE failed: ${x.status} ${x.statusText}`);if(!x.body)throw Error("No body in SSE response");let q=x.body.pipeThrough(new TextDecoderStream).getReader(),_="",c$=()=>{try{q.cancel()}catch{}};R.addEventListener("abort",c$);try{while(!0){let{done:L2,value:I2}=await q.read();if(L2)break;_+=I2,_=_.replace(/\r\n?/g,`
2
+ import{$p as s$}from"./chunk-v965rsr8.js";import{lq as Z2,mq as X2,oq as J2}from"./chunk-m612agnk.js";import{st as L$}from"./chunk-24xc0dvv.js";import{lu as g,ou as l,pu as F,yu as $2}from"./chunk-ebrt1me3.js";import{Ou as B$}from"./chunk-whxjkz9a.js";import{Tu as p2}from"./chunk-89v6dgpp.js";import{PI as U,ZD as r$,cD as M$,mG as K$,pO as Q,tD as Q$}from"./chunk-snm5q21k.js";import{$P as n2,bQ as j$,dQ as U$}from"./chunk-aztre27e.js";var _$={};j$(_$,{sweepStaleAuthTmp:()=>o$,layer:()=>a$,defaultLayer:()=>q2,WellKnown:()=>x$,Service:()=>J$,Oauth:()=>N$,OAUTH_DUMMY_KEY:()=>F2,Info:()=>t$,AuthError:()=>Y$,Auth:()=>_$,Api:()=>T$});import R2 from"path";var A={};j$(A,{setKeySequenceForTest:()=>x2,setKeyForTest:()=>T2,resetForTest:()=>N2,isEnvelope:()=>U2,encryptionKey:()=>B2,encrypt:()=>_2,decrypt:()=>w2,AuthKeyring:()=>A});import e from"crypto";import{execFile as Q2}from"child_process";var y="qitqode",m="auth-encryption-key",p$="__qitqode_encrypted__";function U2(Z){return typeof Z==="object"&&Z!==null&&Z[p$]===1&&Z.alg==="aes-256-gcm"}function c(Z,$,X){return new Promise((J)=>{let O=Q2(Z,$,{timeout:5000},(z,W)=>{let G=z?z.code??1:0;J({code:typeof G==="number"?G:1,stdout:W??""})});if(X!==void 0)O.stdin?.write(X),O.stdin?.end()})}async function n$(Z,$){return(await c(Z,$)).code===0}async function K2(){if(process.env.QITQODE_DISABLE_KEYRING)return;if(process.platform==="darwin"){if(!await n$("security",["help"]))return;return{async get(){let Z=await c("security",["find-generic-password","-s",y,"-a",m,"-w"]);return Z.code===0?Z.stdout.trim():void 0},async set(Z){return(await c("security",["add-generic-password","-U","-s",y,"-a",m,"-w",Z])).code===0}}}if(process.platform==="linux"){if(!await n$("secret-tool",["search","service",y])){let Z=await c("secret-tool",["lookup","service",y,"account",m]);if(Z.code!==0&&Z.code!==1)return}return{async get(){let Z=await c("secret-tool",["lookup","service",y,"account",m]);return Z.code===0&&Z.stdout.trim()?Z.stdout.trim():void 0},async set(Z){return(await c("secret-tool",["store","--label","QitQode auth encryption key","service",y,"account",m],Z)).code===0}}}return}var $$,u;function B2(){if(u!==void 0&&u.length>0)return Promise.resolve(u.shift());return $$??=(async()=>{let Z=await K2();if(!Z)return;let $=await Z.get();if($){let X=Buffer.from($,"base64");if(X.length===32)return X;return}return g.withLock("auth-keyring-init",async()=>{let X=await Z.get();if(X){let W=Buffer.from(X,"base64");return W.length===32?W:void 0}let J=e.randomBytes(32);if(!await Z.set(J.toString("base64")))return;let O=await Z.get();if(!O)return;let z=Buffer.from(O,"base64");return z.length===32?z:void 0})})(),$$}function N2(){$$=void 0,u=void 0}function T2(Z){$$=Promise.resolve(Z),u=void 0}function x2(Z){u=[...Z]}function _2(Z,$){let X=e.randomBytes(12),J=e.createCipheriv("aes-256-gcm",$,X),O=Buffer.concat([J.update(Z,"utf8"),J.final()]);return{[p$]:1,alg:"aes-256-gcm",iv:X.toString("base64"),tag:J.getAuthTag().toString("base64"),data:O.toString("base64")}}function w2(Z,$){let X=e.createDecipheriv("aes-256-gcm",$,Buffer.from(Z.iv,"base64"));return X.setAuthTag(Buffer.from(Z.tag,"base64")),Buffer.concat([X.update(Buffer.from(Z.data,"base64")),X.final()]).toString("utf8")}var F2="qitqode-oauth-dummy-key",X$=R2.join(l.Path.data,"auth.json"),S2=60000;async function o$(){let Z=X$+".tmp";try{let{stat:$,unlink:X}=await import("fs/promises"),J=await $(Z);if(Date.now()-J.mtimeMs>=S2)await X(Z).catch(()=>{return})}catch{}}var Z$=(Z)=>($)=>new Y$({message:Z,cause:$});class N$ extends Q.Class("OAuth")({type:Q.Literal("oauth"),refresh:Q.String,access:Q.String,expires:Q.Number,accountId:Q.optional(Q.String),enterpriseUrl:Q.optional(Q.String)}){}class T$ extends Q.Class("ApiAuth")({type:Q.Literal("api"),key:Q.String,metadata:Q.optional(Q.Record(Q.String,Q.String))}){}class x$ extends Q.Class("WellKnownAuth")({type:Q.Literal("wellknown"),key:Q.String,token:Q.String}){}var i$=Q.Union([N$,T$,x$]).annotate({discriminator:"type",identifier:"Auth"}),t$=Object.assign(i$,{zod:s$(i$)});class Y$ extends Q.TaggedErrorClass()("AuthError",{message:Q.String,cause:Q.optional(Q.Defect)}){}class J$ extends r$.Service()("@qitqode/Auth"){}var a$=K$.effect(J$,U.gen(function*(){let Z=yield*B$.Service,$=Q.decodeUnknownOption(t$);yield*U.promise(()=>o$());let X=U.fn("Auth.readFile")(function*(){let I=yield*Z.readJson(X$).pipe(U.orElseSucceed(()=>({})));if(!A.isEnvelope(I))return I;let D=yield*U.promise(()=>A.encryptionKey());if(!D)return yield*U.fail(new Y$({message:"auth.json is encrypted but the OS keyring is unavailable. Restore keyring access or delete auth.json and log in again."}));return yield*U.try({try:()=>JSON.parse(A.decrypt(I,D)),catch:Z$("Failed to decrypt auth data (keyring key mismatch?)")})}),J=U.fn("Auth.writeFile")(function*(I){let D=yield*U.promise(()=>A.encryptionKey()),L=D?A.encrypt(JSON.stringify(I),D):I,M=X$+".tmp";yield*Z.writeJson(M,L).pipe(U.mapError(Z$("Failed to write auth data"))),yield*Z.chmod(M,384).pipe(U.mapError(Z$("Failed to set auth file permissions"))),yield*Z.rename(M,X$).pipe(U.mapError(Z$("Failed to atomically replace auth data")))}),O=U.fn("Auth.all")(function*(){let I=yield*X(),D=Q$.filterMap(I,(L)=>M$.fromOption($(L),()=>{return}));if(process.env.QITQODE_AUTH_CONTENT)try{let L=JSON.parse(process.env.QITQODE_AUTH_CONTENT);return{...Q$.filterMap(L,(B)=>M$.fromOption($(B),()=>{return})),...D}}catch(L){console.error("[Auth] Failed to parse QITQODE_AUTH_CONTENT env var:",L)}return D}),z=U.fn("Auth.get")(function*(I){return(yield*O())[I]}),W="auth-file",G=U.fn("Auth.set")(function*(I,D){yield*U.scoped(U.gen(function*(){yield*g.effect(W);let L=I.replace(/\/+$/,""),M=yield*O();if(L!==I)delete M[I];delete M[L+"/"],yield*J({...M,[L]:D})}))}),V=U.fn("Auth.remove")(function*(I){yield*U.scoped(U.gen(function*(){yield*g.effect(W);let D=I.replace(/\/+$/,""),L=yield*O();delete L[I],delete L[D],yield*J(L)}))});return J$.of({get:z,all:O,set:G,remove:V})})),q2=a$.pipe(K$.provide(B$.defaultLayer));function e$({onRequest:Z,onSseError:$,onSseEvent:X,responseTransformer:J,responseValidator:O,sseDefaultRetryDelay:z,sseMaxRetryAttempts:W,sseMaxRetryDelay:G,sseSleepFn:V,url:I,...D}){let L,M=V??((K)=>new Promise((T)=>setTimeout(T,K)));return{stream:async function*(){let K=z??3000,T=0,R=D.signal??new AbortController().signal;while(!0){if(R.aborted)break;T++;let t=D.headers instanceof Headers?D.headers:new Headers(D.headers);if(L!==void 0)t.set("Last-Event-ID",L);try{let P={redirect:"follow",...D,body:D.serializedBody,headers:t,signal:R},h=new Request(I,P);if(Z)h=await Z(I,P);let x=await(D.fetch??globalThis.fetch)(h);if(!x.ok)throw Error(`SSE failed: ${x.status} ${x.statusText}`);if(!x.body)throw Error("No body in SSE response");let q=x.body.pipeThrough(new TextDecoderStream).getReader(),_="",c$=()=>{try{q.cancel()}catch{}};R.addEventListener("abort",c$);try{while(!0){let{done:L2,value:I2}=await q.read();if(L2)break;_+=I2,_=_.replace(/\r\n?/g,`
3
3
  `);let u$=_.split(`
4
4
 
5
5
  `);_=u$.pop()??"";for(let j2 of u$){let M2=j2.split(`
6
6
  `),a=[],d$;for(let H of M2)if(H.startsWith("data:"))a.push(H.replace(/^data:\s*/,""));else if(H.startsWith("event:"))d$=H.replace(/^event:\s*/,"");else if(H.startsWith("id:"))L=H.replace(/^id:\s*/,"");else if(H.startsWith("retry:")){let l$=Number.parseInt(H.replace(/^retry:\s*/,""),10);if(!Number.isNaN(l$))K=l$}let b,m$=!1;if(a.length){let H=a.join(`
7
7
  `);try{b=JSON.parse(H),m$=!0}catch{b=H}}if(m$){if(O)await O(b);if(J)b=await J(b)}if(X?.({data:b,event:d$,id:L,retry:K}),a.length)yield b}}}finally{R.removeEventListener("abort",c$),q.releaseLock()}break}catch(P){if($?.(P),W!==void 0&&T>=W)break;let h=Math.min(K*2**(T-1),G??30000);await M(h)}}}()}}var H2=(Z)=>{switch(Z){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},E2=(Z)=>{switch(Z){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},A2=(Z)=>{switch(Z){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},O$=({allowReserved:Z,explode:$,name:X,style:J,value:O})=>{if(!$){let G=(Z?O:O.map((V)=>encodeURIComponent(V))).join(E2(J));switch(J){case"label":return`.${G}`;case"matrix":return`;${X}=${G}`;case"simple":return G;default:return`${X}=${G}`}}let z=H2(J),W=O.map((G)=>{if(J==="label"||J==="simple")return Z?G:encodeURIComponent(G);return d({allowReserved:Z,name:X,value:G})}).join(z);return J==="label"||J==="matrix"?z+W:W},d=({allowReserved:Z,name:$,value:X})=>{if(X===void 0||X===null)return"";if(typeof X==="object")throw Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${$}=${Z?X:encodeURIComponent(X)}`},W$=({allowReserved:Z,explode:$,name:X,style:J,value:O,valueOnly:z})=>{if(O instanceof Date)return z?O.toISOString():`${X}=${O.toISOString()}`;if(J!=="deepObject"&&!$){let V=[];Object.entries(O).forEach(([D,L])=>{V=[...V,D,Z?L:encodeURIComponent(L)]});let I=V.join(",");switch(J){case"form":return`${X}=${I}`;case"label":return`.${I}`;case"matrix":return`;${X}=${I}`;default:return I}}let W=A2(J),G=Object.entries(O).map(([V,I])=>d({allowReserved:Z,name:J==="deepObject"?`${X}[${V}]`:V,value:I})).join(W);return J==="label"||J==="matrix"?W+G:G};var P2=/\{[^{}]+\}/g,g2=({path:Z,url:$})=>{let X=$,J=$.match(P2);if(J)for(let O of J){let z=!1,W=O.substring(1,O.length-1),G="simple";if(W.endsWith("*"))z=!0,W=W.substring(0,W.length-1);if(W.startsWith("."))W=W.substring(1),G="label";else if(W.startsWith(";"))W=W.substring(1),G="matrix";let V=Z[W];if(V===void 0||V===null)continue;if(Array.isArray(V)){X=X.replace(O,O$({explode:z,name:W,style:G,value:V}));continue}if(typeof V==="object"){X=X.replace(O,W$({explode:z,name:W,style:G,value:V,valueOnly:!0}));continue}if(G==="matrix"){X=X.replace(O,`;${d({name:W,value:V})}`);continue}let I=encodeURIComponent(G==="label"?`.${V}`:V);X=X.replace(O,I)}return X},$1=({baseUrl:Z,path:$,query:X,querySerializer:J,url:O})=>{let z=O.startsWith("/")?O:`/${O}`,W=(Z??"")+z;if($)W=g2({path:$,url:W});let G=X?J(X):"";if(G.startsWith("?"))G=G.substring(1);if(G)W+=`?${G}`;return W};function w$(Z){let $=Z.body!==void 0;if($&&Z.bodySerializer){if("serializedBody"in Z)return Z.serializedBody!==void 0&&Z.serializedBody!==""?Z.serializedBody:null;return Z.body!==""?Z.body:null}if($)return Z.body;return}var Z1=async(Z,$)=>{let X=typeof $==="function"?await $(Z):$;if(!X)return;if(Z.scheme==="bearer")return`Bearer ${X}`;if(Z.scheme==="basic")return`Basic ${btoa(X)}`;return X};var R$={bodySerializer:(Z)=>JSON.stringify(Z,($,X)=>typeof X==="bigint"?X.toString():X)};var X1=({parameters:Z={},...$}={})=>{return(J)=>{let O=[];if(J&&typeof J==="object")for(let z in J){let W=J[z];if(W===void 0||W===null)continue;let G=Z[z]||$;if(Array.isArray(W)){let V=O$({allowReserved:G.allowReserved,explode:!0,name:z,style:"form",value:W,...G.array});if(V)O.push(V)}else if(typeof W==="object"){let V=W$({allowReserved:G.allowReserved,explode:!0,name:z,style:"deepObject",value:W,...G.object});if(V)O.push(V)}else{let V=d({allowReserved:G.allowReserved,name:z,value:W});if(V)O.push(V)}}return O.join("&")}},J1=(Z)=>{if(!Z)return"stream";let $=Z.split(";")[0]?.trim();if(!$)return;if($.startsWith("application/json")||$.endsWith("+json"))return"json";if($==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((X)=>$.startsWith(X)))return"blob";if($.startsWith("text/"))return"text";return},k2=(Z,$)=>{if(!$)return!1;if(Z.headers.has($)||Z.query?.[$]||Z.headers.get("Cookie")?.includes(`${$}=`))return!0;return!1};async function Y1(Z){for(let $ of Z.security??[]){if(k2(Z,$.name))continue;let X=await Z1($,Z.auth);if(!X)continue;let J=$.name??"Authorization";switch($.in){case"query":if(!Z.query)Z.query={};Z.query[J]=X;break;case"cookie":Z.headers.append("Cookie",`${J}=${X}`);break;case"header":default:Z.headers.set(J,X);break}}}var F$=(Z)=>$1({baseUrl:Z.baseUrl,path:Z.path,query:Z.query,querySerializer:typeof Z.querySerializer==="function"?Z.querySerializer:X1(Z.querySerializer),url:Z.url}),S$=(Z,$)=>{let X={...Z,...$};if(X.baseUrl?.endsWith("/"))X.baseUrl=X.baseUrl.substring(0,X.baseUrl.length-1);return X.headers=V$(Z.headers,$.headers),X},h2=(Z)=>{let $=[];return Z.forEach((X,J)=>{$.push([J,X])}),$},V$=(...Z)=>{let $=new Headers;for(let X of Z){if(!X)continue;let J=X instanceof Headers?h2(X):Object.entries(X);for(let[O,z]of J)if(z===null)$.delete(O);else if(Array.isArray(z))for(let W of z)$.append(O,W);else if(z!==void 0)$.set(O,typeof z==="object"?JSON.stringify(z):z)}return $};class G${fns=[];clear(){this.fns=[]}eject(Z){let $=this.getInterceptorIndex(Z);if(this.fns[$])this.fns[$]=null}exists(Z){let $=this.getInterceptorIndex(Z);return Boolean(this.fns[$])}getInterceptorIndex(Z){if(typeof Z==="number")return this.fns[Z]?Z:-1;return this.fns.indexOf(Z)}update(Z,$){let X=this.getInterceptorIndex(Z);if(this.fns[X])return this.fns[X]=$,Z;return!1}use(Z){return this.fns.push(Z),this.fns.length-1}}var O1=()=>({error:new G$,request:new G$,response:new G$}),b2=X1({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),C2={"Content-Type":"application/json"},n=(Z={})=>({...R$,headers:C2,parseAs:"auto",querySerializer:b2,...Z});var p=(Z={})=>{let $=S$(n(),Z),X=()=>({...$}),J=(D)=>{return $=S$($,D),X()},O=O1(),z=async(D)=>{let L={...$,...D,fetch:D.fetch??$.fetch??globalThis.fetch,headers:V$($.headers,D.headers),serializedBody:void 0};if(L.security)await Y1(L);if(L.requestValidator)await L.requestValidator(L);if(L.body!==void 0&&L.bodySerializer)L.serializedBody=L.bodySerializer(L.body);if(L.body===void 0||L.serializedBody==="")L.headers.delete("Content-Type");let M=L,B=F$(M);return{opts:M,url:B}},W=async(D)=>{let L=D.throwOnError??$.throwOnError,M=D.responseStyle??$.responseStyle,B,N;try{let{opts:K,url:T}=await z(D),R={redirect:"follow",...K,body:w$(K)};B=new Request(T,R);for(let x of O.request.fns)if(x)B=await x(B,K);let t=K.fetch;N=await t(B);for(let x of O.response.fns)if(x)N=await x(N,B,K);let P={request:B,response:N};if(N.ok){let x=(K.parseAs==="auto"?J1(N.headers.get("Content-Type")):K.parseAs)??"json";if(N.status===204||N.headers.get("Content-Length")==="0"){let _;switch(x){case"arrayBuffer":case"blob":case"text":_=await N[x]();break;case"formData":_=new FormData;break;case"stream":_=N.body;break;case"json":default:_={};break}return K.responseStyle==="data"?_:{data:_,...P}}let q;switch(x){case"arrayBuffer":case"blob":case"formData":case"text":q=await N[x]();break;case"json":{let _=await N.text();q=_?JSON.parse(_):{};break}case"stream":return K.responseStyle==="data"?N.body:{data:N.body,...P}}if(x==="json"){if(K.responseValidator)await K.responseValidator(q);if(K.responseTransformer)q=await K.responseTransformer(q)}return K.responseStyle==="data"?q:{data:q,...P}}let h=await N.text(),I$;try{I$=JSON.parse(h)}catch{}throw I$??h}catch(K){let T=K;for(let R of O.error.fns)if(R)T=await R(T,N,B,D);if(T=T||{},L)throw T;return M==="data"?void 0:{error:T,request:B,response:N}}},G=(D)=>(L)=>W({...L,method:D}),V=(D)=>async(L)=>{let{opts:M,url:B}=await z(L);return e$({...M,body:M.body,method:D,onRequest:async(N,K)=>{let T=new Request(N,K);for(let R of O.request.fns)if(R)T=await R(T,M);return T},serializedBody:w$(M),url:B})};return{buildUrl:(D)=>F$({...$,...D}),connect:G("CONNECT"),delete:G("DELETE"),get:G("GET"),getConfig:X,head:G("HEAD"),interceptors:O,options:G("OPTIONS"),patch:G("PATCH"),post:G("POST"),put:G("PUT"),request:W,setConfig:J,sse:{connect:V("CONNECT"),delete:V("DELETE"),get:V("GET"),head:V("HEAD"),options:V("OPTIONS"),patch:V("PATCH"),post:V("POST"),put:V("PUT"),trace:V("TRACE")},trace:G("TRACE")}};var v2={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},f2=Object.entries(v2),W1=(Z,$)=>{if(!$)$=new Map;for(let X of Z)if("in"in X){if(X.key)$.set(X.key,{in:X.in,map:X.map})}else if("key"in X)$.set(X.key,{map:X.map});else if(X.args)W1(X.args,$);return $},y2=(Z)=>{for(let[$,X]of Object.entries(Z))if(X&&typeof X==="object"&&!Array.isArray(X)&&!Object.keys(X).length)delete Z[$]},Y=(Z,$)=>{let X={body:Object.create(null),headers:Object.create(null),path:Object.create(null),query:Object.create(null)},J=W1($),O;for(let[z,W]of Z.entries()){if($[z])O=$[z];if(!O)continue;if("in"in O)if(O.key){let G=J.get(O.key),V=G.map||O.key;if(G.in)X[G.in][V]=W}else X.body=W;else for(let[G,V]of Object.entries(W??{})){let I=J.get(G);if(I)if(I.in){let D=I.map||G;X[I.in][D]=V}else X[I.map]=V;else{let D=f2.find(([L])=>G.startsWith(L));if(D){let[L,M]=D;X[M][G.slice(L.length)]=V}else if("allowExtra"in O&&O.allowExtra){for(let[L,M]of Object.entries(O.allowExtra))if(M){X[L][G]=V;break}}}}}return y2(X),X};var G1=p(n({baseUrl:"http://localhost:4096"}));class j{client;constructor(Z){this.client=Z?.client??G1}}class V1{defaultKey="default";instances=new Map;get(Z){let $=this.instances.get(Z??this.defaultKey);if(!$)throw Error('No SDK client found. Create one with "new QitQodeClient()" to fix this error.');return $}set(Z,$){this.instances.set($??this.defaultKey,Z)}}class z1 extends j{get(Z){return(Z?.client??this.client).get({url:"/global/config",...Z})}update(Z,$){let X=Y([Z],[{args:[{key:"config",map:"body"}]}]);return($?.client??this.client).patch({url:"/global/config",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class D1 extends j{scan(Z){return(Z?.client??this.client).get({url:"/global/import/scan",...Z})}run(Z,$){let X=Y([Z],[{args:[{in:"body",key:"sources"},{in:"body",key:"force"}]}]);return($?.client??this.client).post({url:"/global/import/run",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class L1 extends j{health(Z){return(Z?.client??this.client).get({url:"/global/health",...Z})}event(Z){return(Z?.client??this.client).sse.get({url:"/global/event",...Z})}dispose(Z){return(Z?.client??this.client).post({url:"/global/dispose",...Z})}upgrade(Z,$){let X=Y([Z],[{args:[{in:"body",key:"target"}]}]);return($?.client??this.client).post({url:"/global/upgrade",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}_config;get config(){return this._config??=new z1({client:this.client})}_import;get import(){return this._import??=new D1({client:this.client})}}class I1 extends j{remove(Z,$){let X=Y([Z],[{args:[{in:"path",key:"providerID"}]}]);return($?.client??this.client).delete({url:"/auth/{providerID}",...$,...X})}set(Z,$){let X=Y([Z],[{args:[{in:"path",key:"providerID"},{key:"auth",map:"body"}]}]);return($?.client??this.client).put({url:"/auth/{providerID}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class j1 extends j{log(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"service"},{in:"body",key:"level"},{in:"body",key:"message"},{in:"body",key:"extra"}]}]);return($?.client??this.client).post({url:"/log",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}agents(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/agent",...$,...X})}skills(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/skill",...$,...X})}}class M1 extends j{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/workspace/adaptor",...$,...X})}}class Q1 extends j{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/workspace",...$,...X})}create(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"type"},{in:"body",key:"branch"},{in:"body",key:"extra"}]}]);return($?.client??this.client).post({url:"/experimental/workspace",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/workspace/status",...$,...X})}remove(Z,$){let X=Y([Z],[{args:[{in:"path",key:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/experimental/workspace/{id}",...$,...X})}sessionRestore(Z,$){let X=Y([Z],[{args:[{in:"path",key:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"sessionID"}]}]);return($?.client??this.client).post({url:"/experimental/workspace/{id}/session-restore",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}_adaptor;get adaptor(){return this._adaptor??=new M1({client:this.client})}}class U1 extends j{get(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/console",...$,...X})}listOrgs(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/console/orgs",...$,...X})}switchOrg(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"accountID"},{in:"body",key:"orgID"}]}]);return($?.client??this.client).post({url:"/experimental/console/switch",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class K1 extends j{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"roots"},{in:"query",key:"start"},{in:"query",key:"cursor"},{in:"query",key:"search"},{in:"query",key:"limit"},{in:"query",key:"archived"}]}]);return($?.client??this.client).get({url:"/experimental/session",...$,...X})}}class B1 extends j{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/resource",...$,...X})}}class N1 extends j{_workspace;get workspace(){return this._workspace??=new Q1({client:this.client})}_console;get console(){return this._console??=new U1({client:this.client})}_session;get session(){return this._session??=new K1({client:this.client})}_resource;get resource(){return this._resource??=new B1({client:this.client})}}class T1 extends j{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/project",...$,...X})}current(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/project/current",...$,...X})}initGit(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/project/git/init",...$,...X})}update(Z,$){let X=Y([Z],[{args:[{in:"path",key:"projectID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"name"},{in:"body",key:"icon"},{in:"body",key:"commands"}]}]);return($?.client??this.client).patch({url:"/project/{projectID}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class x1 extends j{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/pty",...$,...X})}create(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"command"},{in:"body",key:"args"},{in:"body",key:"cwd"},{in:"body",key:"title"},{in:"body",key:"env"}]}]);return($?.client??this.client).post({url:"/pty",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}remove(Z,$){let X=Y([Z],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/pty/{ptyID}",...$,...X})}get(Z,$){let X=Y([Z],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/pty/{ptyID}",...$,...X})}update(Z,$){let X=Y([Z],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"size"}]}]);return($?.client??this.client).put({url:"/pty/{ptyID}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}connectToken(Z,$){let X=Y([Z],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/pty/{ptyID}/connect-token",...$,...X})}connect(Z,$){let X=Y([Z],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/pty/{ptyID}/connect",...$,...X})}}class _1 extends j{get(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/config",...$,...X})}update(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"config",map:"body"}]}]);return($?.client??this.client).patch({url:"/config",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}providers(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/config/providers",...$,...X})}}class w1 extends j{ids(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/tool/ids",...$,...X})}list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"provider"},{in:"query",key:"model"}]}]);return($?.client??this.client).get({url:"/experimental/tool",...$,...X})}}class R1 extends j{remove(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeRemoveInput",map:"body"}]}]);return($?.client??this.client).delete({url:"/experimental/worktree",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/worktree",...$,...X})}create(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeCreateInput",map:"body"}]}]);return($?.client??this.client).post({url:"/experimental/worktree",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}reset(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeResetInput",map:"body"}]}]);return($?.client??this.client).post({url:"/experimental/worktree/reset",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class F1 extends j{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"roots"},{in:"query",key:"start"},{in:"query",key:"search"},{in:"query",key:"limit"}]}]);return($?.client??this.client).get({url:"/session",...$,...X})}create(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"parentID"},{in:"body",key:"contextFrom"},{in:"body",key:"contextWatermark"},{in:"body",key:"title"},{in:"body",key:"permission"},{in:"body",key:"workspaceID"}]}]);return($?.client??this.client).post({url:"/session",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/status",...$,...X})}delete(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/session/{sessionID}",...$,...X})}get(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}",...$,...X})}update(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"permission"},{in:"body",key:"time"}]}]);return($?.client??this.client).patch({url:"/session/{sessionID}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}children(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/children",...$,...X})}init(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"modelID"},{in:"body",key:"providerID"},{in:"body",key:"messageID"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/init",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}fork(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/fork",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}abort(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/abort",...$,...X})}actors(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/actors",...$,...X})}todo(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/todo",...$,...X})}task(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/task",...$,...X})}unshare(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/session/{sessionID}/share",...$,...X})}share(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/share",...$,...X})}diff(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"messageID"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/diff",...$,...X})}summarize(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"providerID"},{in:"body",key:"modelID"},{in:"body",key:"auto"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/summarize",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}revert(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"partID"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/revert",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}unrevert(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/unrevert",...$,...X})}messages(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"limit"},{in:"query",key:"before"},{in:"query",key:"agent_id"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/message",...$,...X})}prompt(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"model"},{in:"body",key:"modelRef"},{in:"body",key:"agent"},{in:"body",key:"agentID"},{in:"body",key:"task_id"},{in:"body",key:"source"},{in:"body",key:"provenance"},{in:"body",key:"noReply"},{in:"body",key:"tools"},{in:"body",key:"format"},{in:"body",key:"system"},{in:"body",key:"variant"},{in:"body",key:"parts"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/message",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}deleteMessage(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/session/{sessionID}/message/{messageID}",...$,...X})}message(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/message/{messageID}",...$,...X})}promptAsync(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"model"},{in:"body",key:"modelRef"},{in:"body",key:"agent"},{in:"body",key:"agentID"},{in:"body",key:"task_id"},{in:"body",key:"source"},{in:"body",key:"provenance"},{in:"body",key:"noReply"},{in:"body",key:"tools"},{in:"body",key:"format"},{in:"body",key:"system"},{in:"body",key:"variant"},{in:"body",key:"parts"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/prompt_async",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}command(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"arguments"},{in:"body",key:"command"},{in:"body",key:"variant"},{in:"body",key:"parts"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/command",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}predict(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/predict",...$,...X})}shell(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"modelRef"},{in:"body",key:"command"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/shell",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class S1 extends j{delete(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"path",key:"partID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/session/{sessionID}/message/{messageID}/part/{partID}",...$,...X})}update(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"path",key:"partID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"part",map:"body"}]}]);return($?.client??this.client).patch({url:"/session/{sessionID}/message/{messageID}/part/{partID}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class q1 extends j{respond(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"permissionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"response"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/permissions/{permissionID}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}reply(Z,$){let X=Y([Z],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"reply"},{in:"body",key:"message"}]}]);return($?.client??this.client).post({url:"/permission/{requestID}/reply",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/permission",...$,...X})}}class H1 extends j{balance(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/qredits/balance",...$,...X})}}class E1 extends j{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"sessionID"}]}]);return($?.client??this.client).get({url:"/workflows",...$,...X})}resume(Z,$){let X=Y([Z],[{args:[{in:"path",key:"runID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/workflows/{runID}/resume",...$,...X})}}class A1 extends j{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/question",...$,...X})}neverAsk(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/question/never-ask",...$,...X})}setNeverAsk(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"enabled"}]}]);return($?.client??this.client).post({url:"/question/never-ask",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}reply(Z,$){let X=Y([Z],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"answers"}]}]);return($?.client??this.client).post({url:"/question/{requestID}/reply",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}reject(Z,$){let X=Y([Z],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/question/{requestID}/reject",...$,...X})}}class P1 extends j{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/bash-interactive",...$,...X})}reply(Z,$){let X=Y([Z],[{args:[{in:"path",key:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"output"},{in:"body",key:"exitCode"}]}]);return($?.client??this.client).post({url:"/bash-interactive/{id}/reply",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class g1 extends j{_interactive;get interactive(){return this._interactive??=new P1({client:this.client})}}class k1 extends j{authorize(Z,$){let X=Y([Z],[{args:[{in:"path",key:"providerID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"method"},{in:"body",key:"inputs"}]}]);return($?.client??this.client).post({url:"/provider/{providerID}/oauth/authorize",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}callback(Z,$){let X=Y([Z],[{args:[{in:"path",key:"providerID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"method"},{in:"body",key:"code"}]}]);return($?.client??this.client).post({url:"/provider/{providerID}/oauth/callback",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class h1 extends j{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/provider",...$,...X})}auth(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/provider/auth",...$,...X})}_oauth;get oauth(){return this._oauth??=new k1({client:this.client})}}class b1 extends j{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return($?.client??this.client).post({url:"/sync/history",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class C1 extends j{start(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/sync/start",...$,...X})}replay(Z,$){let X=Y([Z],[{args:[{in:"query",key:"query_directory",map:"directory"},{in:"query",key:"workspace"},{in:"body",key:"body_directory",map:"directory"},{in:"body",key:"events"}]}]);return($?.client??this.client).post({url:"/sync/replay",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}_history;get history(){return this._history??=new b1({client:this.client})}}class v1 extends j{text(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"pattern"}]}]);return($?.client??this.client).get({url:"/find",...$,...X})}files(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"query"},{in:"query",key:"dirs"},{in:"query",key:"type"},{in:"query",key:"limit"}]}]);return($?.client??this.client).get({url:"/find/file",...$,...X})}symbols(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"query"}]}]);return($?.client??this.client).get({url:"/find/symbol",...$,...X})}}class f1 extends j{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"path"}]}]);return($?.client??this.client).get({url:"/file",...$,...X})}read(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"path"}]}]);return($?.client??this.client).get({url:"/file/content",...$,...X})}status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/file/status",...$,...X})}}class y1 extends j{subscribe(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).sse.get({url:"/event",...$,...X})}}class c1 extends j{remove(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/mcp/{name}/auth",...$,...X})}start(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/auth",...$,...X})}callback(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"code"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/auth/callback",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}authenticate(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/auth/authenticate",...$,...X})}}class u1 extends j{status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/mcp",...$,...X})}add(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"name"},{in:"body",key:"config"}]}]);return($?.client??this.client).post({url:"/mcp",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}connect(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/connect",...$,...X})}disconnect(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/disconnect",...$,...X})}_auth;get auth(){return this._auth??=new c1({client:this.client})}}class d1 extends j{next(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/tui/control/next",...$,...X})}response(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return($?.client??this.client).post({url:"/tui/control/response",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class m1 extends j{appendPrompt(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"text"}]}]);return($?.client??this.client).post({url:"/tui/append-prompt",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}openHelp(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/open-help",...$,...X})}openSessions(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/open-sessions",...$,...X})}openThemes(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/open-themes",...$,...X})}openModels(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/open-models",...$,...X})}submitPrompt(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/submit-prompt",...$,...X})}clearPrompt(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/clear-prompt",...$,...X})}executeCommand(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"command"}]}]);return($?.client??this.client).post({url:"/tui/execute-command",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}showToast(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"message"},{in:"body",key:"variant"},{in:"body",key:"duration"}]}]);return($?.client??this.client).post({url:"/tui/show-toast",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}publish(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return($?.client??this.client).post({url:"/tui/publish",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}selectSession(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"sessionID"}]}]);return($?.client??this.client).post({url:"/tui/select-session",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}_control;get control(){return this._control??=new d1({client:this.client})}}class l1 extends j{dispose(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/instance/dispose",...$,...X})}}class n1 extends j{get(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/path",...$,...X})}}class p1 extends j{get(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/vcs",...$,...X})}diff(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"mode"}]}]);return($?.client??this.client).get({url:"/vcs/diff",...$,...X})}}class i1 extends j{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/command",...$,...X})}}class r1 extends j{status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/lsp",...$,...X})}}class s1 extends j{status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/formatter",...$,...X})}}class z$ extends j{static __registry=new V1;constructor(Z){super(Z);z$.__registry.set(this,Z?.key)}_global;get global(){return this._global??=new L1({client:this.client})}_auth;get auth(){return this._auth??=new I1({client:this.client})}_app;get app(){return this._app??=new j1({client:this.client})}_experimental;get experimental(){return this._experimental??=new N1({client:this.client})}_project;get project(){return this._project??=new T1({client:this.client})}_pty;get pty(){return this._pty??=new x1({client:this.client})}_config;get config(){return this._config??=new _1({client:this.client})}_tool;get tool(){return this._tool??=new w1({client:this.client})}_worktree;get worktree(){return this._worktree??=new R1({client:this.client})}_session;get session(){return this._session??=new F1({client:this.client})}_part;get part(){return this._part??=new S1({client:this.client})}_permission;get permission(){return this._permission??=new q1({client:this.client})}_qredits;get qredits(){return this._qredits??=new H1({client:this.client})}_workflow;get workflow(){return this._workflow??=new E1({client:this.client})}_question;get question(){return this._question??=new A1({client:this.client})}_bash;get bash(){return this._bash??=new g1({client:this.client})}_provider;get provider(){return this._provider??=new h1({client:this.client})}_sync;get sync(){return this._sync??=new C1({client:this.client})}_find;get find(){return this._find??=new v1({client:this.client})}_file;get file(){return this._file??=new f1({client:this.client})}_event;get event(){return this._event??=new y1({client:this.client})}_mcp;get mcp(){return this._mcp??=new u1({client:this.client})}_tui;get tui(){return this._tui??=new m1({client:this.client})}_instance;get instance(){return this._instance??=new l1({client:this.client})}_path;get path(){return this._path??=new n1({client:this.client})}_vcs;get vcs(){return this._vcs??=new p1({client:this.client})}_command;get command(){return this._command??=new i1({client:this.client})}_lsp;get lsp(){return this._lsp??=new r1({client:this.client})}_formatter;get formatter(){return this._formatter??=new s1({client:this.client})}}function o1(Z){if(!Z?.fetch)Z={...Z,fetch:(X)=>{return X.timeout=!1,fetch(X)}};if(Z?.directory)Z.headers={...Z.headers,"x-qitqode-directory":encodeURIComponent(Z.directory)};return Z}function c2(Z,$,X){if(!Z)return;if(!$)return Z;if(Z===$)return $;if(X&&Z===X($))return $;return Z}function u2(Z,$){if(Z.method!=="GET"&&Z.method!=="HEAD")return Z;let X=new URL(Z.url),J=!1;for(let[z,W]of[["x-qitqode-directory","directory"],["x-qitqode-workspace","workspace"]]){let G=c2(Z.headers.get(z),W==="directory"?$.directory:$.workspace,W==="directory"?encodeURIComponent:void 0);if(!G)continue;if(!X.searchParams.has(W))X.searchParams.set(W,G);J=!0}if(!J)return Z;let O=new Request(X,Z);return O.headers.delete("x-qitqode-directory"),O.headers.delete("x-qitqode-workspace"),O}function d2(Z){if(Z=o1(Z),Z?.experimental_workspaceID)Z.headers={...Z.headers,"x-qitqode-workspace":Z.experimental_workspaceID};let $=p(Z);return $.interceptors.request.use((X)=>u2(X,{directory:Z?.directory,workspace:Z?.experimental_workspaceID})),$.interceptors.response.use((X)=>{if(X.headers.get("content-type")==="text/html")throw Error("Request is not supported by this version of QitQode Server (Server responded with text/html)");return X}),new z$({client:$})}var i2=n2(p2(),1);import a1 from"path";var s2="QITQODE_KEY was rejected by the server (401/403). Check that the key is correct and has not expired.",q$=`[qitqode] ${s2}`;function t1(Z){if(Z?.type!=="api"||typeof Z.key!=="string")return;let X=Z.metadata?.method==="api-key"?"api-key":"sso";return{key:Z.key,method:X}}async function i(){if(process.env.QITQODE_KEY)return{key:process.env.QITQODE_KEY,method:"api-key"};let Z=a1.join(l.Path.data,"auth.json");try{let{readFile:$}=await import("fs/promises"),X=await g.withLock("auth-file",async()=>{let J=await $(Z,"utf8"),O=JSON.parse(J);return t1(O?.forgewise)});if(X)return X}catch{}if(process.env.QITQODE_AUTH_CONTENT)try{let $=JSON.parse(process.env.QITQODE_AUTH_CONTENT);return t1($?.forgewise)}catch{}return}async function D$(){if(process.env.QITQODE_KEY)return;let Z=a1.join(l.Path.data,"auth.json"),{readFile:$,writeFile:X,chmod:J,rename:O}=await import("fs/promises");await g.withLock("auth-file",async()=>{let z=await $(Z,"utf8"),W=JSON.parse(z);if(!("forgewise"in W))return;delete W.forgewise;let G=Z+".tmp";await X(G,JSON.stringify(W,null,2),"utf8"),await J(G,384),await O(G,Z)})}function r(Z){return Z.method==="api-key"?{"x-api-key":Z.key}:{authorization:`Bearer ${Z.key}`}}var y$={};j$(y$,{toolDescriptionEffect:()=>OZ,resolveWorkflowSummaries:()=>XZ,resolveWorkflowSpec:()=>JZ,resolveToolManifest:()=>z2,resolveToolDescription:()=>D2,resolveTierRatings:()=>LZ,resolveSubmitBatch:()=>xZ,resolveRetrieveBatch:()=>_Z,resolvePrompt:()=>W2,resolveListTiers:()=>DZ,resolveGetHistory:()=>MZ,resolveGenerateInlineComments:()=>BZ,resolveGenerateDocumentation:()=>KZ,resolveForgewiseConfig:()=>zZ,resolveFetchQreditsBalance:()=>QZ,resolveCompressTrajectorySafe:()=>IZ,resolveChatCompletion:()=>TZ,resolveChatBoolean:()=>NZ,resolveBraveSearch:()=>jZ,resolveBashArity:()=>YZ,resolveAnalyzeCodeForIssues:()=>UZ,resolveAgentPrompt:()=>$Z,remoteStats:()=>S,isBackendBillingError:()=>o2,clearRemoteCache:()=>e2,beginIdempotentAttempt:()=>O2,BackendRemote:()=>y$,BackendRateLimitError:()=>o,BackendInsufficientBalanceError:()=>s,BackendAuthRejectedError:()=>k});import{createHash as Y2,randomUUID as e1}from"crypto";var w=$2.create({service:"backend.remote"}),h$=30000,b$=5000,v=new Map,S={failures:0,authRejections:0,missingPrompts:0,missingToolDescriptions:0},H$=new Set,E$=new Set;class k extends Error{name="BackendAuthRejectedError";constructor(Z){super(L$.copy().invalidCredentials(Z))}}class s extends Error{name="BackendInsufficientBalanceError";status=402;code;constructor(Z,$){super(L$.copy().insufficientBalance(Z));this.code=$}}class o extends Error{name="BackendRateLimitError";status=429;retryAfterMs;constructor(Z,$){let X=Z!==void 0?` Retry in about ${Math.max(1,Math.round(Z/1000))}s.`:"";super(L$.copy().rateLimit+X+($?` (${$})`:""));this.retryAfterMs=Z}}function o2(Z){return Z instanceof s||Z instanceof o}var t2=600000,C=new Map;function a2(Z,$){try{return Y2("sha256").update(`${Z}\x00${JSON.stringify($)}`).digest("hex").slice(0,16)}catch{return"unscoped"}}function O2(Z,$,X){let J=Date.now(),O;try{O=Y2("sha256").update(`${Z}\x00${$}\x00${JSON.stringify(X)??""}`).digest("hex")}catch{return{key:`${$}-${e1()}`,settle:()=>{}}}let z=()=>C.delete(O),W=C.get(O);if(W&&W.expires>J)return{key:W.key,settle:z};if(C.size>256){for(let[V,I]of C)if(I.expires<=J)C.delete(V)}let G=`${$}-${O.slice(0,16)}-${e1()}`;return C.set(O,{key:G,expires:J+t2}),{key:G,settle:z}}function e2(){v.clear(),g$.clear(),A$.clear(),H$.clear(),E$.clear(),C.clear()}async function f(Z,$){let X=F.QITQODE_BACKEND_URL,J=Date.now(),O=`${X}::${Z}`,z=v.get(O);if(z&&z.expires>J)return z.value;try{let W=await i(),G=W?r(W):void 0,I=await $(J2({baseUrl:X,headers:G,fetch:(D,L)=>fetch(D,{...L,signal:L?.signal??AbortSignal.timeout(b$)})}));return v.set(O,{value:I,expires:J+h$}),I}catch(W){if(W instanceof X2){if(S.authRejections++,await D$().catch(()=>{}),w.warn("backend rejected the credential; prompting re-auth",{cacheKey:Z,baseUrl:X,status:W.status}),process.env.QITQODE_KEY)w.error(q$),console.error(q$);throw new k(`HTTP ${W.status}`)}throw S.failures++,w.warn("backend request failed; surfacing error",{cacheKey:Z,baseUrl:X,error:W instanceof Error?W.message:String(W)}),W}}async function W2(Z){if(Z.indexOf("/")<=0)return;return f(`prompt:${Z}`,($)=>$.prompt(Z).then((X)=>X??void 0))}async function $Z(Z){let $=`agent/${Z}`,X=await W2($);if(X===void 0||X===""){if(!H$.has(Z))H$.add(Z),S.missingPrompts++,w.warn("backend served no content for agent prompt; running with an empty prompt",{prompt:$,baseUrl:F.QITQODE_BACKEND_URL,missingPrompts:S.missingPrompts})}return X}var A$=new Map;function P$(Z){let $=A$.get(Z);if(!$)$={unsupported:!1},A$.set(Z,$);return $}async function ZZ(){let Z=P$(F.QITQODE_BACKEND_URL);if(Z.inFlight)return Z.inFlight;let $=f("workflow.catalog",(X)=>X.workflowSpecs().then((J)=>J??void 0)).then((X)=>{let J=new Map;for(let O of X??[])if(O&&typeof O.name==="string"&&typeof O.script==="string")J.set(O.name,O);return J});Z.inFlight=$;try{return await $}finally{if(Z.inFlight===$)Z.inFlight=void 0}}async function G2(Z,$){let X=F.QITQODE_BACKEND_URL;if(!P$(X).unsupported)try{return Z(await ZZ())}catch(J){if(!V2(J))throw J;P$(X).unsupported=!0,w.warn("backend has no workflowSpecs route; falling back to per-name workflow lookups",{baseUrl:X})}return $()}async function XZ(){return G2((Z)=>[...Z.values()].map(({script:$,...X})=>X),()=>f("workflow.list",(Z)=>Z.workflowSummaries()))}async function JZ(Z){return G2(($)=>$.get(Z),()=>f(`workflow.get:${Z}`,($)=>$.workflowSpec(Z).then((X)=>X??void 0)))}async function YZ(){return f("permission.arity",(Z)=>Z.bashArity())}var g$=new Map;function k$(Z){let $=g$.get(Z);if(!$)$={unsupported:!1},g$.set(Z,$);return $}function V2(Z){return Z instanceof Z2&&(Z.status===404||Z.status===501)}async function z2(){let Z=k$(F.QITQODE_BACKEND_URL);if(Z.inFlight)return Z.inFlight;let $=f("tool.manifest",(X)=>X.toolManifest().then((J)=>J??void 0)).then((X)=>{let J=new Map;for(let O of X??[])if(O&&typeof O.id==="string"&&typeof O.description==="string")J.set(O.id,O.description);return J});Z.inFlight=$;try{return await $}finally{if(Z.inFlight===$)Z.inFlight=void 0}}async function D2(Z){let $=F.QITQODE_BACKEND_URL,X;if(!k$($).unsupported)try{X=(await z2()).get(Z)}catch(J){if(!V2(J))throw J;k$($).unsupported=!0,w.warn("backend has no toolManifest route; falling back to one request per tool description",{baseUrl:$})}if(X===void 0||X==="")X=await f(`tool.description:${Z}`,(J)=>J.toolDescription(Z).then((O)=>O??void 0));if(X===void 0||X===""){if(!E$.has(Z))E$.add(Z),S.missingToolDescriptions++,w.warn("backend served no content for tool description; running with an empty description",{tool:Z,baseUrl:F.QITQODE_BACKEND_URL,missingToolDescriptions:S.missingToolDescriptions})}return X}function OZ(Z){return U.promise(()=>D2(Z)).pipe(U.catchDefect(($)=>$ instanceof k?U.succeed(void 0):U.die($)))}function WZ(Z){if(!Z)return{};try{let $=JSON.parse(Z);if($&&typeof $==="object")return{code:typeof $.error==="string"?$.error:void 0,detail:typeof $.message==="string"?$.message:void 0}}catch{}return{detail:Z.slice(0,300)}}function GZ(Z){let $=Z.headers?.get?.("retry-after-ms");if($){let J=Number.parseFloat($);if(!Number.isNaN(J))return J}let X=Z.headers?.get?.("retry-after");if(X){let J=Number.parseFloat(X);if(!Number.isNaN(J))return Math.ceil(J*1000);let O=Date.parse(X)-Date.now();if(!Number.isNaN(O)&&O>0)return Math.ceil(O)}return}async function C$(Z,$){let X=await Z.text().catch(()=>""),{code:J,detail:O}=WZ(X);if(Z.status===402)return new s(O,J);if(Z.status===429)return new o(GZ(Z),O);let z=O?`: ${O}`:J?`: ${J}`:"";return Error(`${$} failed: ${Z.status}${z}`)}function v$(Z,$){let{error:X,message:J}=Z;if(X==="insufficient_balance")return new s(J,X);if(X==="rate_limited"||X==="too_many_requests")return new o(void 0,J);return Error(`${$} returned failure: ${X??"unknown error"}${J?` \u2014 ${J}`:""}`)}async function E(Z,$,X,J={}){let O=F.QITQODE_BACKEND_URL,z=`${O}::post:${Z}`;if(!J.noCache){let W=Date.now(),G=v.get(z);if(G&&G.expires>W)return G.value}try{let W=await i(),G=W?r(W):{},V=J.billable?O2(a2(O,G),$,X):void 0,I=V?{"x-idempotency-key":V.key}:{},D=await fetch(`${O}/${$}`,{method:"POST",headers:{"Content-Type":"application/json",...G,...I},body:JSON.stringify(X),signal:J.signal});if(D.status===401||D.status===403){V?.settle();let B=await D.text().catch(()=>"");if(B.includes("ERR_GATEWAY_REQUIRED"))throw Error(`Backend routing error: ${B}`);throw S.authRejections++,await D$().catch(()=>{}),w.warn("backend rejected the credential; prompting re-auth",{fnName:$,baseUrl:O,status:D.status}),new k(`HTTP ${D.status}`)}if(!D.ok){let B=await C$(D,`Backend POST /${$}`);if(D.status<500)V?.settle();throw B}let L=await D.json();if(!L.success)throw V?.settle(),v$(L,`Backend POST /${$}`);V?.settle();let M=L.data;if(!J.noCache)v.set(z,{value:M,expires:Date.now()+h$});return M}catch(W){if(W instanceof k)throw W;throw S.failures++,w.warn("backend POST request failed; surfacing error",{fnName:$,baseUrl:O,error:W instanceof Error?W.message:String(W)}),W}}async function f$(Z,$,X={}){let J=F.QITQODE_BACKEND_URL;try{let O=await i(),z=O?r(O):{},W=new URLSearchParams(Object.entries($).map(([D,L])=>[D,String(L)])).toString(),G=W?`${J}/${Z}?${W}`:`${J}/${Z}`,V=await fetch(G,{method:"GET",headers:{...z},signal:X.signal});if(V.status===401||V.status===403){let D=await V.text().catch(()=>"");if(D.includes("ERR_GATEWAY_REQUIRED"))throw Error(`Backend routing error: ${D}`);throw S.authRejections++,await D$().catch(()=>{}),w.warn("backend rejected the credential; prompting re-auth",{fnName:Z,baseUrl:J,status:V.status}),new k(`HTTP ${V.status}`)}if(!V.ok)throw await C$(V,`Backend GET /${Z}`);let I=await V.json();if(!I.success)throw v$(I,`Backend GET /${Z}`);return I.data}catch(O){if(O instanceof k)throw O;throw S.failures++,w.warn("backend GET request failed; surfacing error",{fnName:Z,baseUrl:J,error:O instanceof Error?O.message:String(O)}),O}}async function VZ(Z,$,X){let J=F.QITQODE_BACKEND_URL,O=`${J}::public:${Z}`,z=Date.now(),W=v.get(O);if(W&&W.expires>z)return W.value;try{let G=await fetch(`${J}/${$}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(X),signal:AbortSignal.timeout(b$)});if(!G.ok)throw await C$(G,`Backend public POST /${$}`);let V=await G.json();if(!V.success)throw v$(V,`Backend public POST /${$}`);let I=V.data;return v.set(O,{value:I,expires:z+h$}),I}catch(G){throw S.failures++,w.warn("backend public request failed; surfacing error",{fnName:$,baseUrl:J,error:G instanceof Error?G.message:String(G)}),G}}async function zZ(){try{return await VZ("forgewise.config","forgewiseConfig",{})}catch(Z){let $=await i().catch(()=>null);if(!$)throw Z;let X=F.QITQODE_BACKEND_URL,J=await fetch(`${X}/forgewiseConfig`,{method:"POST",headers:{"Content-Type":"application/json",...r($)},body:JSON.stringify({}),signal:AbortSignal.timeout(b$)}).catch(()=>null);if(!J?.ok)throw Z;let O=await J.json().catch(()=>null);if(!O?.success)throw Z;return O.data}}async function DZ(){return f$("listTiers",{}).then((Z)=>{if(!Array.isArray(Z))return[];return Z.flatMap(($)=>{if(typeof $==="string")return[{id:$}];if(!$||typeof $!=="object"||Array.isArray($))return[];let X=$;return typeof X.id==="string"?[{id:X.id,...typeof X.label==="string"?{label:X.label}:{},...typeof X.providerID==="string"?{providerID:X.providerID}:{},...typeof X.modelID==="string"?{modelID:X.modelID}:{}}]:[]})}).catch((Z)=>{return w.warn("listTiers fetch failed; using hardcoded tier fallback",{error:Z instanceof Error?Z.message:String(Z)}),[]})}async function LZ(){return f$("TIER_RATINGS",{}).catch((Z)=>{w.warn("TIER_RATINGS fetch failed; using hardcoded rating fallback",{error:Z instanceof Error?Z.message:String(Z)});return})}async function IZ(Z){return E("compaction.trajectory","compressTrajectorySafe",Z,{noCache:!0,billable:!0,signal:AbortSignal.timeout(120000)})}async function jZ(Z,$){let X=$?.timeoutMs??30000,J={query:Z};if($?.numResults)J.options={count:$.numResults};return E("brave.search","braveSearch",J,{noCache:!0,signal:AbortSignal.timeout(X)})}async function MZ(Z){return E("qredits.history","getHistory",Z,{noCache:!0})}async function QZ(Z){return E("forgewise.qredits.balance","fetchQreditsBalance",Z,{noCache:!0})}async function UZ(Z){return E(`code.analyze:${Z.filePath}`,"analyzeCodeForIssues",Z,{noCache:!0,billable:!0,signal:AbortSignal.timeout(60000)})}async function KZ(Z){return E(`code.docs:${Z.filePath}:${Z.functionName??""}`,"generateDocumentation",Z,{noCache:!0,billable:!0,signal:AbortSignal.timeout(60000)})}async function BZ(Z){return E(`code.comments:${Z.filePath}`,"generateInlineComments",Z,{noCache:!0,billable:!0,signal:AbortSignal.timeout(60000)})}async function NZ(Z,$,X){return E("chat.boolean","chatBoolean",{sample:Z,test:$},{noCache:!0,billable:!0,signal:AbortSignal.timeout(X?.timeoutMs??30000)})}async function TZ(Z,$){let X={message:Z},J={};if($?.provider!==void 0)J.provider=$.provider;if($?.temperature!==void 0)J.temperature=$.temperature;if($?.maxTokens!==void 0)J.maxTokens=$.maxTokens;if(Object.keys(J).length>0)X.options=J;return E("chat.completion","chatCompletion",X,{noCache:!0,billable:!0,signal:AbortSignal.timeout($?.timeoutMs??30000)})}async function xZ(Z){return E("batch.submit","submitBatch",Z,{noCache:!0,billable:!0,signal:AbortSignal.timeout(60000)})}async function _Z(Z){return f$("retrieveBatch",{batchId:Z.batchId},{signal:AbortSignal.timeout(30000)})}
8
- export{F2 as jp,_$ as kp,o1 as lp,d2 as mp,s2 as np,q$ as op,i as pp,D$ as qp,k as rp,s as sp,o as tp,zZ as up,DZ as vp,LZ as wp,MZ as xp,QZ as yp,y$ as zp};
8
+ export{F2 as Ip,_$ as Jp,o1 as Kp,d2 as Lp,s2 as Mp,q$ as Np,i as Op,D$ as Pp,k as Qp,s as Rp,o as Sp,zZ as Tp,DZ as Up,LZ as Vp,MZ as Wp,QZ as Xp,y$ as Yp};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import"./chunk-aztre27e.js";var R="./libopentui-c8ye7mqw.dylib";export{R as default};