@qitqode/qitqode-android-arm64 0.1.24 → 0.1.26

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 (420) hide show
  1. package/bundle/{chunk-gn9p1d50.js → chunk-01gwb793.js} +1 -1
  2. package/bundle/{chunk-4kse3awh.js → chunk-0304b7xg.js} +1 -1
  3. package/bundle/{chunk-k9d927xe.js → chunk-05amr7y9.js} +1 -1
  4. package/bundle/{chunk-am73j1bt.js → chunk-06x1p3t4.js} +1 -1
  5. package/bundle/{chunk-9798jffg.js → chunk-07net7s8.js} +1 -1
  6. package/bundle/chunk-08y06vgt.js +3 -0
  7. package/bundle/chunk-09ecxdmd.js +2 -0
  8. package/bundle/{chunk-6mscvf6y.js → chunk-0cehm5fn.js} +1 -1
  9. package/bundle/chunk-0jaj2g7x.js +2 -0
  10. package/bundle/{chunk-7gczzccz.js → chunk-0m2tj2h9.js} +1 -1
  11. package/bundle/{chunk-srf73nm4.js → chunk-0mekr486.js} +1 -1
  12. package/bundle/{chunk-gen6f3dn.js → chunk-0ndvy0nh.js} +2 -2
  13. package/bundle/chunk-0nr2925m.js +2 -0
  14. package/bundle/chunk-0vqrakhw.js +3 -0
  15. package/bundle/{chunk-vf1r5ckp.js → chunk-0w5npkgr.js} +1 -1
  16. package/bundle/chunk-0wbq1y92.js +2 -0
  17. package/bundle/chunk-12pxszgn.js +2 -0
  18. package/bundle/chunk-1337582e.js +2 -0
  19. package/bundle/{chunk-hxgb0y1w.js → chunk-14ag9ea0.js} +1 -1
  20. package/bundle/chunk-182jf8fz.js +2 -0
  21. package/bundle/chunk-1ht3zcsh.js +2 -0
  22. package/bundle/{chunk-fhng5her.js → chunk-1n4w8dya.js} +2 -2
  23. package/bundle/{chunk-g7vkkmsk.js → chunk-1qbm1k9y.js} +3 -3
  24. package/bundle/{chunk-apq38bt4.js → chunk-1xkwm21b.js} +3 -3
  25. package/bundle/{chunk-3tkp27x7.js → chunk-1xpx1t40.js} +2 -2
  26. package/bundle/{chunk-w1atxyz0.js → chunk-1yx4jesj.js} +1 -1
  27. package/bundle/chunk-25zkavr0.js +2 -0
  28. package/bundle/{chunk-4k149ews.js → chunk-28vnspd4.js} +1 -1
  29. package/bundle/chunk-2cm91ktc.js +3 -0
  30. package/bundle/chunk-2jfd82jk.js +2 -0
  31. package/bundle/{chunk-ve5gb789.js → chunk-2jn2hd12.js} +2 -2
  32. package/bundle/chunk-2k7bbzj2.js +2 -0
  33. package/bundle/{chunk-7yf15a3a.js → chunk-2kdn66xt.js} +1 -1
  34. package/bundle/{chunk-99n6czag.js → chunk-2q76qax6.js} +2 -2
  35. package/bundle/{chunk-8pe047p0.js → chunk-2sy1wx99.js} +1 -1
  36. package/bundle/{chunk-8651hq0k.js → chunk-2yb59jwr.js} +1 -1
  37. package/bundle/chunk-30081kwd.js +2 -0
  38. package/bundle/{chunk-g0v9g37f.js → chunk-32zrch7h.js} +1 -1
  39. package/bundle/{chunk-7y3y3j51.js → chunk-3bb7y9pq.js} +2 -2
  40. package/bundle/{chunk-jz3aav8a.js → chunk-3kdhvq0p.js} +2 -2
  41. package/bundle/{chunk-m8djypsy.js → chunk-3rgct4bd.js} +1 -1
  42. package/bundle/{chunk-frdc3ysq.js → chunk-3s0d17xe.js} +1 -1
  43. package/bundle/chunk-3vag59se.js +2 -0
  44. package/bundle/{chunk-j1a64ade.js → chunk-3w64fpwn.js} +2 -2
  45. package/bundle/chunk-3x5v6sjw.js +2 -0
  46. package/bundle/{chunk-hqg5qbxk.js → chunk-3zn71txs.js} +1 -1
  47. package/bundle/{chunk-3vbtra1j.js → chunk-41ftye7w.js} +1 -1
  48. package/bundle/chunk-43ep9d7a.js +2 -0
  49. package/bundle/chunk-48j09m6e.js +3 -0
  50. package/bundle/{chunk-6szvs3k9.js → chunk-4920vf6a.js} +1 -1
  51. package/bundle/{chunk-wa2ce2sg.js → chunk-49tqzsy0.js} +2 -2
  52. package/bundle/{chunk-cvchztkc.js → chunk-49ypxzfx.js} +1 -1
  53. package/bundle/{chunk-6nhje520.js → chunk-4k70wrhf.js} +1 -1
  54. package/bundle/{chunk-tk3bve0x.js → chunk-4nck07pc.js} +2 -2
  55. package/bundle/chunk-4qqja22v.js +2 -0
  56. package/bundle/{chunk-23geekk5.js → chunk-54pk7nna.js} +1 -1
  57. package/bundle/{chunk-ewyk4py6.js → chunk-56pwz1kk.js} +1 -1
  58. package/bundle/{chunk-2y8qz8te.js → chunk-56qm8xpt.js} +1 -1
  59. package/bundle/{chunk-y3n31nnx.js → chunk-58gp7wbg.js} +2 -2
  60. package/bundle/{chunk-9easaxy7.js → chunk-5dm3p5r6.js} +1 -1
  61. package/bundle/chunk-5gazgxt5.js +2 -0
  62. package/bundle/{chunk-0ae5q6ck.js → chunk-5jtd006j.js} +2 -2
  63. package/bundle/{chunk-t488d66k.js → chunk-5mec6cde.js} +1 -1
  64. package/bundle/{chunk-gvzfffr4.js → chunk-5yaahmjb.js} +1 -1
  65. package/bundle/{chunk-jbd9k041.js → chunk-5ymj2q6j.js} +2 -2
  66. package/bundle/{chunk-ebjhggdw.js → chunk-613kegcn.js} +1 -1
  67. package/bundle/chunk-63znhwx0.js +2 -0
  68. package/bundle/{chunk-zavtsfxz.js → chunk-6fpfr8tk.js} +1 -1
  69. package/bundle/{chunk-0pvbk8ks.js → chunk-6h2faxs9.js} +2 -2
  70. package/bundle/chunk-6hmyy7n6.js +2 -0
  71. package/bundle/{chunk-78bajmqm.js → chunk-6nk3wx6f.js} +1 -1
  72. package/bundle/{chunk-1jsywey3.js → chunk-6nkcfncg.js} +1 -1
  73. package/bundle/{chunk-ps543k72.js → chunk-6s2f5sv4.js} +1 -1
  74. package/bundle/{chunk-dcx8hjbs.js → chunk-6vb26adv.js} +1 -1
  75. package/bundle/{chunk-r48g0kaq.js → chunk-6wdwwpsc.js} +2 -2
  76. package/bundle/{chunk-8r79zf3y.js → chunk-77e1wh0j.js} +2 -2
  77. package/bundle/chunk-7dyddrpk.js +2 -0
  78. package/bundle/{chunk-4d1a547n.js → chunk-7e1aw8rw.js} +1 -1
  79. package/bundle/{chunk-ac202abt.js → chunk-7ez3ye6e.js} +1 -1
  80. package/bundle/{chunk-wfnk2vsd.js → chunk-7fmy4cvn.js} +1 -1
  81. package/bundle/{chunk-82gs5cmn.js → chunk-7n2kpqh5.js} +1 -1
  82. package/bundle/chunk-7penjsgq.js +2 -0
  83. package/bundle/chunk-7qxn24qa.js +3 -0
  84. package/bundle/{chunk-4q9w2yve.js → chunk-7rxsj310.js} +2 -2
  85. package/bundle/{chunk-dkv2mg97.js → chunk-7ryv0f5h.js} +1 -1
  86. package/bundle/chunk-7t5gzkj6.js +2 -0
  87. package/bundle/{chunk-84gnbzky.js → chunk-7tbvr236.js} +1 -1
  88. package/bundle/{chunk-8cr7ks31.js → chunk-81engf0t.js} +1 -1
  89. package/bundle/{chunk-cy2586rv.js → chunk-880msfsd.js} +1 -1
  90. package/bundle/chunk-89vgt8vq.js +2 -0
  91. package/bundle/{chunk-vftqwdpg.js → chunk-8ahpk8td.js} +1 -1
  92. package/bundle/{chunk-9f7y0dj0.js → chunk-8bzwgcjb.js} +1 -1
  93. package/bundle/chunk-8e8n82f9.js +2 -0
  94. package/bundle/{chunk-xj73j10a.js → chunk-91khd3fq.js} +1 -1
  95. package/bundle/chunk-97exhw9j.js +2 -0
  96. package/bundle/chunk-9cvkaht5.js +2 -0
  97. package/bundle/{chunk-1jh5p5qw.js → chunk-9p83me3p.js} +2 -2
  98. package/bundle/{chunk-ygj1cy0n.js → chunk-9qtf8khv.js} +1 -1
  99. package/bundle/{chunk-kaeyhw2n.js → chunk-9wm41z2f.js} +2 -2
  100. package/bundle/chunk-9zrwbxx0.js +3 -0
  101. package/bundle/{chunk-q6fbyvpq.js → chunk-admgf65a.js} +1 -1
  102. package/bundle/{chunk-spm1yy6w.js → chunk-afhg3w2j.js} +1 -1
  103. package/bundle/chunk-akdvstd9.js +2 -0
  104. package/bundle/{chunk-w7p2x973.js → chunk-atbm0pnt.js} +2 -2
  105. package/bundle/chunk-ave2e4sa.js +2 -0
  106. package/bundle/chunk-axnwehc7.js +2 -0
  107. package/bundle/{chunk-ns0pswww.js → chunk-b79k456s.js} +1 -1
  108. package/bundle/chunk-bmzyxspj.js +2 -0
  109. package/bundle/{chunk-9sy9ws1w.js → chunk-bse8p94q.js} +1 -1
  110. package/bundle/chunk-bvaqpfv8.js +2 -0
  111. package/bundle/{chunk-gf4ek7rv.js → chunk-c0k8j498.js} +1 -1
  112. package/bundle/{chunk-pyq01301.js → chunk-cbmw8fy2.js} +1 -1
  113. package/bundle/{chunk-cesrhm09.js → chunk-cn10hn58.js} +1 -1
  114. package/bundle/{chunk-gc9q0x8z.js → chunk-cqhpbfcn.js} +3 -3
  115. package/bundle/{chunk-jegn6jc3.js → chunk-cr06m77n.js} +2 -2
  116. package/bundle/{chunk-3wzqs241.js → chunk-crap29f6.js} +1 -1
  117. package/bundle/chunk-cxb05cdg.js +2 -0
  118. package/bundle/chunk-cxe92z5c.js +2 -0
  119. package/bundle/{chunk-b643cra9.js → chunk-cyjzqa5p.js} +195 -195
  120. package/bundle/{chunk-0w4v0fbs.js → chunk-d2n09yvh.js} +2 -2
  121. package/bundle/{chunk-fm4xa6yx.js → chunk-d31yrcrn.js} +2 -2
  122. package/bundle/chunk-d5wp85kw.js +2 -0
  123. package/bundle/{chunk-6j0365q3.js → chunk-dazye86e.js} +2 -2
  124. package/bundle/chunk-dm5xnb4t.js +2 -0
  125. package/bundle/chunk-dpeqsvan.js +2 -0
  126. package/bundle/chunk-drxtmg5c.js +2 -0
  127. package/bundle/{chunk-k16hzy2q.js → chunk-dv5zf5gz.js} +1 -1
  128. package/bundle/{chunk-2qcndbxv.js → chunk-e57d1he9.js} +1 -1
  129. package/bundle/{chunk-1d64dywx.js → chunk-e58pdw5k.js} +2 -2
  130. package/bundle/chunk-e9pfdjcy.js +2 -0
  131. package/bundle/chunk-ejn5hfzd.js +2 -0
  132. package/bundle/{chunk-hg563h5r.js → chunk-ek1fawsj.js} +2 -2
  133. package/bundle/{chunk-rvvfs9ps.js → chunk-eq33vmze.js} +1 -1
  134. package/bundle/{chunk-6sdh1q7g.js → chunk-eqaym8gm.js} +1 -1
  135. package/bundle/chunk-ernd18jb.js +2 -0
  136. package/bundle/{chunk-evqxvhdb.js → chunk-ewvgbg68.js} +1 -1
  137. package/bundle/{chunk-wf09j72q.js → chunk-f3c9667r.js} +2 -2
  138. package/bundle/{chunk-9nx8hm57.js → chunk-f3rrd2p6.js} +1 -1
  139. package/bundle/chunk-f416n3mp.js +14 -0
  140. package/bundle/{chunk-hh3w51wp.js → chunk-f6y7a5w3.js} +2 -2
  141. package/bundle/{chunk-zeh481tm.js → chunk-fd9zrmhr.js} +2 -2
  142. package/bundle/chunk-ff9b4cg8.js +2 -0
  143. package/bundle/{chunk-bas6x25m.js → chunk-fffj9447.js} +2 -2
  144. package/bundle/{chunk-5y8efy5b.js → chunk-fk3praj7.js} +1 -1
  145. package/bundle/{chunk-ecwz9nhs.js → chunk-fk8cctjy.js} +2 -2
  146. package/bundle/{chunk-1y9t7nxn.js → chunk-fkat2pw6.js} +1 -1
  147. package/bundle/chunk-fpff6a4q.js +2 -0
  148. package/bundle/chunk-fvy5w4dh.js +7 -0
  149. package/bundle/{chunk-2gxjjqfx.js → chunk-fx7w497c.js} +1 -1
  150. package/bundle/{chunk-5rkmhzq0.js → chunk-fxb6vjcb.js} +2 -2
  151. package/bundle/{chunk-9xvctnjr.js → chunk-g4qwkcdv.js} +1 -1
  152. package/bundle/{chunk-2eardzxs.js → chunk-g6dgc5af.js} +1 -1
  153. package/bundle/{chunk-2mmspnr3.js → chunk-g7vahvkz.js} +1 -1
  154. package/bundle/chunk-g8wvr7a1.js +3 -0
  155. package/bundle/{chunk-21ejqv4v.js → chunk-gaxbbxk6.js} +1 -1
  156. package/bundle/chunk-gq361kdt.js +2 -0
  157. package/bundle/{chunk-n1chdwrs.js → chunk-gxa2r4zc.js} +1 -1
  158. package/bundle/{chunk-p54bzjtv.js → chunk-h56jxxvj.js} +1 -1
  159. package/bundle/{chunk-2z6fzwyc.js → chunk-hb4d06q0.js} +2 -2
  160. package/bundle/chunk-hbagpppv.js +2 -0
  161. package/bundle/chunk-hf473xav.js +2 -0
  162. package/bundle/{chunk-gff87y4n.js → chunk-hjratj6g.js} +1 -1
  163. package/bundle/{chunk-y2jmtfdh.js → chunk-hk8j5ht8.js} +2 -2
  164. package/bundle/{chunk-jr8qcf99.js → chunk-hkmb3zer.js} +2 -2
  165. package/bundle/chunk-hr88054m.js +2 -0
  166. package/bundle/{chunk-ep8zn49w.js → chunk-hybq019j.js} +2 -2
  167. package/bundle/{chunk-1xyn0sp2.js → chunk-hyckncza.js} +2 -2
  168. package/bundle/{chunk-wj6aq50n.js → chunk-hz1hd1bd.js} +1 -1
  169. package/bundle/{chunk-zp2ffbc2.js → chunk-j0ftbmex.js} +2 -2
  170. package/bundle/chunk-j3czd7v2.js +28 -0
  171. package/bundle/{chunk-0w0jfzb4.js → chunk-j7zs1yg2.js} +1 -1
  172. package/bundle/{chunk-xv8gnkh5.js → chunk-j87bvp1b.js} +1 -1
  173. package/bundle/chunk-j9m2d6t5.js +2 -0
  174. package/bundle/chunk-jd9edy2s.js +2 -0
  175. package/bundle/{chunk-4tn69nqs.js → chunk-jdkxeqw5.js} +1 -1
  176. package/bundle/chunk-jwtdbx31.js +2 -0
  177. package/bundle/chunk-jzcz92pq.js +8 -0
  178. package/bundle/{chunk-5h2hcp46.js → chunk-k7h6tfzj.js} +1 -1
  179. package/bundle/{chunk-dann9gfq.js → chunk-kbg3k1az.js} +1 -1
  180. package/bundle/{chunk-va4davgy.js → chunk-kbjwdv1x.js} +259 -253
  181. package/bundle/{chunk-j1veq3zr.js → chunk-kbyk7hyn.js} +2 -2
  182. package/bundle/{chunk-jr9xnvjq.js → chunk-kfk1zqc1.js} +1 -1
  183. package/bundle/{chunk-9jf67xb0.js → chunk-kkdgzeva.js} +2 -2
  184. package/bundle/{chunk-9rqrm9y8.js → chunk-kn318ev4.js} +1 -1
  185. package/bundle/{chunk-pv8jcpnf.js → chunk-kp84yba1.js} +1 -1
  186. package/bundle/{chunk-b8ag61vj.js → chunk-kpnfndkg.js} +1 -1
  187. package/bundle/chunk-krkxrej2.js +2 -0
  188. package/bundle/{chunk-ms1fd6h4.js → chunk-kvz0vzsn.js} +1 -1
  189. package/bundle/chunk-m26mcy8p.js +2 -0
  190. package/bundle/chunk-m62wgqp1.js +2 -0
  191. package/bundle/chunk-m7txgh5w.js +2 -0
  192. package/bundle/chunk-m84cn9c6.js +2 -0
  193. package/bundle/{chunk-kr0fsqas.js → chunk-md7vpe1e.js} +1 -1
  194. package/bundle/{chunk-yz7rqzby.js → chunk-mg239rc3.js} +3 -3
  195. package/bundle/chunk-mvc7pvtq.js +2 -0
  196. package/bundle/{chunk-tsn1jkr7.js → chunk-n07rsssz.js} +1 -1
  197. package/bundle/{chunk-8717htya.js → chunk-n10atvac.js} +1 -1
  198. package/bundle/chunk-nfp9xtca.js +3 -0
  199. package/bundle/{chunk-fdezde1z.js → chunk-ngz5xw45.js} +1 -1
  200. package/bundle/{chunk-7mhffm9f.js → chunk-njzpswgt.js} +183 -183
  201. package/bundle/{chunk-najzfhb2.js → chunk-nszqy06d.js} +1 -1
  202. package/bundle/{chunk-q3x4x2tq.js → chunk-nxjbbq5h.js} +1 -1
  203. package/bundle/{chunk-jmjg8d8a.js → chunk-p0k4sv89.js} +4 -4
  204. package/bundle/{chunk-bf146hz2.js → chunk-p31yg62z.js} +2 -2
  205. package/bundle/chunk-p5t9mq8r.js +2 -0
  206. package/bundle/chunk-pfbykat1.js +2 -0
  207. package/bundle/{chunk-bd21p9zz.js → chunk-pfn1db1m.js} +2 -2
  208. package/bundle/{chunk-1fnmkm0z.js → chunk-pjbbdm96.js} +2 -2
  209. package/bundle/{chunk-k9g77a02.js → chunk-pnj8s20t.js} +1 -1
  210. package/bundle/{chunk-a5zjrwqy.js → chunk-ppvmy940.js} +2 -2
  211. package/bundle/{chunk-r3yqe7x0.js → chunk-ptf09vmp.js} +1 -1
  212. package/bundle/{chunk-sjrmhd3e.js → chunk-q2exgz82.js} +1 -1
  213. package/bundle/{chunk-te1zfpzv.js → chunk-qan3kwbv.js} +1 -1
  214. package/bundle/{chunk-7tgm8wp5.js → chunk-qb5qemtp.js} +1 -1
  215. package/bundle/chunk-qd0nvn4z.js +2 -0
  216. package/bundle/chunk-qh99kv2j.js +2 -0
  217. package/bundle/{chunk-kc3hpmr2.js → chunk-qkwhgfjt.js} +2 -2
  218. package/bundle/{chunk-5kmfnkzv.js → chunk-qm9ezq93.js} +1 -1
  219. package/bundle/chunk-qmhcbdkg.js +8 -0
  220. package/bundle/{chunk-7a6p7dfx.js → chunk-qngs31yf.js} +1 -1
  221. package/bundle/{chunk-hbnr0j7h.js → chunk-qpv4438m.js} +2 -2
  222. package/bundle/{chunk-hv4nhx6q.js → chunk-qq71akpw.js} +2 -2
  223. package/bundle/chunk-qyrafh4m.js +2 -0
  224. package/bundle/{chunk-17ggas8k.js → chunk-r1yqmd4y.js} +1 -1
  225. package/bundle/chunk-rc37cw86.js +2 -0
  226. package/bundle/{chunk-xccs5c50.js → chunk-rf625fxx.js} +1 -1
  227. package/bundle/chunk-rmpty636.js +2 -0
  228. package/bundle/{chunk-9pe4agdz.js → chunk-rs0nx844.js} +2 -2
  229. package/bundle/{chunk-9vcw33dv.js → chunk-rvrjw0fy.js} +1 -1
  230. package/bundle/{chunk-jpygkh1c.js → chunk-rz54qjew.js} +1 -1
  231. package/bundle/{chunk-a9y27zd2.js → chunk-rze20q68.js} +1 -1
  232. package/bundle/{chunk-hg9nk090.js → chunk-s1h0k1yj.js} +1 -1
  233. package/bundle/{chunk-hh4c02fh.js → chunk-s2za1y84.js} +1 -1
  234. package/bundle/chunk-s3wjwxme.js +2 -0
  235. package/bundle/chunk-s4ncnbgd.js +2 -0
  236. package/bundle/{chunk-p4hpr8d7.js → chunk-s54c8fpf.js} +1 -1
  237. package/bundle/{chunk-0pbt75ev.js → chunk-s5krbdvd.js} +1 -1
  238. package/bundle/{chunk-wmw2gne9.js → chunk-s86fj82v.js} +2 -2
  239. package/bundle/{chunk-qywwj58s.js → chunk-sdsggxm4.js} +2 -2
  240. package/bundle/{chunk-r7xp0xcn.js → chunk-se195e52.js} +2 -2
  241. package/bundle/chunk-snz3w30x.js +2 -0
  242. package/bundle/chunk-srw748gr.js +2 -0
  243. package/bundle/{chunk-mj24ntn9.js → chunk-st74db4c.js} +1 -1
  244. package/bundle/{chunk-0rtshz2r.js → chunk-t1vtdgd6.js} +1 -1
  245. package/bundle/{chunk-6dxaty1v.js → chunk-t6xm49ea.js} +1 -1
  246. package/bundle/{chunk-f819a7ec.js → chunk-t7tstr83.js} +1 -1
  247. package/bundle/{chunk-v2kyarwz.js → chunk-tedrfa7d.js} +2 -2
  248. package/bundle/{chunk-zfnbk5gy.js → chunk-tfggzzqw.js} +1 -1
  249. package/bundle/chunk-tn167yyz.js +2 -0
  250. package/bundle/{chunk-d56zc21w.js → chunk-txty44v2.js} +1 -1
  251. package/bundle/{chunk-b6m4yyww.js → chunk-tyy4gx61.js} +1 -1
  252. package/bundle/chunk-v1xwe58d.js +2 -0
  253. package/bundle/{chunk-vvypb02q.js → chunk-vh05n2x3.js} +1 -1
  254. package/bundle/{chunk-agdfqncf.js → chunk-vpqd0t8a.js} +2 -2
  255. package/bundle/chunk-vrfegg5f.js +2 -0
  256. package/bundle/{chunk-tzc4jkzg.js → chunk-vthm5q05.js} +1 -1
  257. package/bundle/{chunk-6g3m7yxf.js → chunk-vw673y0t.js} +2 -2
  258. package/bundle/{chunk-3tdqsm5c.js → chunk-vx837ete.js} +1 -1
  259. package/bundle/{chunk-hjbks7r9.js → chunk-vy9xre57.js} +1 -1
  260. package/bundle/{chunk-x6z2b63w.js → chunk-vyjsng14.js} +1 -1
  261. package/bundle/{chunk-ftk58wxe.js → chunk-vztxv9dj.js} +1 -1
  262. package/bundle/{chunk-1p34bx7c.js → chunk-w01gjnty.js} +2 -2
  263. package/bundle/chunk-w12tky28.js +2 -0
  264. package/bundle/{chunk-t6w96xq2.js → chunk-w2gpgapp.js} +1 -1
  265. package/bundle/{chunk-gn7xgd4c.js → chunk-w3pzv615.js} +1 -1
  266. package/bundle/chunk-w4hbw37v.js +3 -0
  267. package/bundle/chunk-w9ct698t.js +2 -0
  268. package/bundle/{chunk-8ace31r2.js → chunk-wefjbwv6.js} +1 -1
  269. package/bundle/{chunk-sgtgvzv6.js → chunk-wg42cxrw.js} +1 -1
  270. package/bundle/{chunk-02txthqv.js → chunk-wg5dv21f.js} +2 -2
  271. package/bundle/chunk-wms4skr9.js +11 -0
  272. package/bundle/chunk-wr5hdsst.js +9 -0
  273. package/bundle/chunk-wxnqgh8t.js +2 -0
  274. package/bundle/chunk-wzmte7sy.js +3 -0
  275. package/bundle/chunk-x0h1jdxt.js +2 -0
  276. package/bundle/{chunk-ha1w0xzh.js → chunk-x36jhtex.js} +1 -1
  277. package/bundle/{chunk-yzdty5t9.js → chunk-x3931we7.js} +2 -2
  278. package/bundle/{chunk-v7r9np94.js → chunk-x3z8q0ep.js} +1 -1
  279. package/bundle/chunk-x6hsmnhz.js +2 -0
  280. package/bundle/{chunk-fkvccmgk.js → chunk-xak2r993.js} +2 -2
  281. package/bundle/{chunk-c31k8yh0.js → chunk-xc3fadkh.js} +1 -1
  282. package/bundle/{chunk-hh9a709t.js → chunk-xcs2jbz9.js} +1 -1
  283. package/bundle/{chunk-qw2hgs5b.js → chunk-xdv9xt0y.js} +2 -2
  284. package/bundle/{chunk-dgzyn27r.js → chunk-xdwej3ae.js} +1 -1
  285. package/bundle/chunk-xg9e0enb.js +2 -0
  286. package/bundle/{chunk-pfhp78cr.js → chunk-xqxpjbqk.js} +1 -1
  287. package/bundle/chunk-xtxxb25n.js +2 -0
  288. package/bundle/{chunk-8h9r6c8g.js → chunk-y2ch07yv.js} +2 -2
  289. package/bundle/chunk-y3s7sh1e.js +2 -0
  290. package/bundle/chunk-ydvheqw9.js +2 -0
  291. package/bundle/{chunk-0z3z0gk1.js → chunk-ygwe0vf1.js} +2 -2
  292. package/bundle/{chunk-58enbars.js → chunk-ykxde207.js} +2 -2
  293. package/bundle/{chunk-dkm7x8rj.js → chunk-ynfbz3sz.js} +2 -2
  294. package/bundle/{chunk-2wp1w8cy.js → chunk-yqtfvgrp.js} +1 -1
  295. package/bundle/{chunk-edvcz2gd.js → chunk-yt1yk4j1.js} +1 -1
  296. package/bundle/{chunk-yh174jhg.js → chunk-yvj021eg.js} +2 -2
  297. package/bundle/chunk-yxnq0d7k.js +2 -0
  298. package/bundle/{chunk-e346x00p.js → chunk-z2m09m4w.js} +1 -1
  299. package/bundle/{chunk-f3kjp838.js → chunk-z2q3mg73.js} +2 -2
  300. package/bundle/chunk-z2raegj9.js +2 -0
  301. package/bundle/{chunk-y1srca0c.js → chunk-z3hj5bfd.js} +2 -2
  302. package/bundle/chunk-z3pyhmg6.js +2 -0
  303. package/bundle/{chunk-3nhqd8wg.js → chunk-z4ae6jmb.js} +3 -3
  304. package/bundle/{chunk-7dckfame.js → chunk-z559gc3n.js} +1 -1
  305. package/bundle/chunk-z7pg6sw1.js +2 -0
  306. package/bundle/chunk-z84376c6.js +2 -0
  307. package/bundle/{chunk-ktmazmas.js → chunk-ze00x1xb.js} +2 -2
  308. package/bundle/{chunk-pb7rnkke.js → chunk-zjvzc0my.js} +1 -1
  309. package/bundle/chunk-zn8th65r.js +2 -0
  310. package/bundle/{chunk-sswbfqcq.js → chunk-zna6neq5.js} +1 -1
  311. package/bundle/chunk-ztv1brgn.js +2 -0
  312. package/bundle/{chunk-s9amvacw.js → chunk-zvsafnkp.js} +2 -2
  313. package/bundle/chunk-zyxvd9fj.js +2 -0
  314. package/bundle/index.js +16 -16
  315. package/bundle/parser.worker.js +2 -2
  316. package/bundle/worker.js +1 -1
  317. package/package.json +1 -1
  318. package/bundle/chunk-0bvde0cx.js +0 -2
  319. package/bundle/chunk-0kbxnazj.js +0 -2
  320. package/bundle/chunk-19z5q33z.js +0 -2
  321. package/bundle/chunk-1a0wnwna.js +0 -2
  322. package/bundle/chunk-1ddm2wxv.js +0 -2
  323. package/bundle/chunk-1fk4vsmc.js +0 -2
  324. package/bundle/chunk-1j2f9nd5.js +0 -2
  325. package/bundle/chunk-27s736an.js +0 -2
  326. package/bundle/chunk-2j17xrzj.js +0 -2
  327. package/bundle/chunk-2zca3nak.js +0 -2
  328. package/bundle/chunk-2zcvcfq4.js +0 -2
  329. package/bundle/chunk-38hwkfj5.js +0 -2
  330. package/bundle/chunk-3afqxvsn.js +0 -2
  331. package/bundle/chunk-3avc1ppg.js +0 -7
  332. package/bundle/chunk-3v4vtah1.js +0 -2
  333. package/bundle/chunk-3ypk0j2f.js +0 -2
  334. package/bundle/chunk-3z1y040p.js +0 -3
  335. package/bundle/chunk-4aykrj51.js +0 -9
  336. package/bundle/chunk-4dtbmqmq.js +0 -2
  337. package/bundle/chunk-4zjb6rps.js +0 -2
  338. package/bundle/chunk-5hkcjgwh.js +0 -2
  339. package/bundle/chunk-5snrz263.js +0 -2
  340. package/bundle/chunk-653c0mxr.js +0 -11
  341. package/bundle/chunk-6av7hrrk.js +0 -7
  342. package/bundle/chunk-6bswn7w5.js +0 -2
  343. package/bundle/chunk-6epghftw.js +0 -2
  344. package/bundle/chunk-6jjhxh8p.js +0 -2
  345. package/bundle/chunk-6ws7xyc5.js +0 -2
  346. package/bundle/chunk-7g28zhar.js +0 -2
  347. package/bundle/chunk-7v02b2ms.js +0 -2
  348. package/bundle/chunk-7vmp2034.js +0 -2
  349. package/bundle/chunk-7wxrypkr.js +0 -2
  350. package/bundle/chunk-8kk9gvdy.js +0 -2
  351. package/bundle/chunk-8ygpp4y3.js +0 -2
  352. package/bundle/chunk-95q60g1p.js +0 -2
  353. package/bundle/chunk-9mjbenja.js +0 -2
  354. package/bundle/chunk-9vn1gy8h.js +0 -2
  355. package/bundle/chunk-ajp3f08k.js +0 -2
  356. package/bundle/chunk-aptkpdkc.js +0 -2
  357. package/bundle/chunk-bky5a42k.js +0 -3
  358. package/bundle/chunk-bry94ar5.js +0 -2
  359. package/bundle/chunk-btzyvqkf.js +0 -2
  360. package/bundle/chunk-c94pjdfh.js +0 -2
  361. package/bundle/chunk-cct9ds5c.js +0 -2
  362. package/bundle/chunk-czn535v0.js +0 -2
  363. package/bundle/chunk-d7wd5hz1.js +0 -2
  364. package/bundle/chunk-d86cmjrp.js +0 -2
  365. package/bundle/chunk-dnq65xvn.js +0 -2
  366. package/bundle/chunk-dpqv8rtn.js +0 -2
  367. package/bundle/chunk-e9mh7s3z.js +0 -2
  368. package/bundle/chunk-ek2y5f6g.js +0 -2
  369. package/bundle/chunk-epdsay73.js +0 -2
  370. package/bundle/chunk-f89gntcy.js +0 -3
  371. package/bundle/chunk-ffnsn7tv.js +0 -2
  372. package/bundle/chunk-fkezc7ew.js +0 -2
  373. package/bundle/chunk-fsxddgj0.js +0 -2
  374. package/bundle/chunk-gbcsfg6v.js +0 -2
  375. package/bundle/chunk-gfmz85hp.js +0 -2
  376. package/bundle/chunk-gk63k4t6.js +0 -2
  377. package/bundle/chunk-j0vf8s12.js +0 -2
  378. package/bundle/chunk-j1bxt69x.js +0 -2
  379. package/bundle/chunk-jcem8s30.js +0 -2
  380. package/bundle/chunk-jjwjb9w0.js +0 -3
  381. package/bundle/chunk-jpham2a3.js +0 -2
  382. package/bundle/chunk-jzkymnr5.js +0 -2
  383. package/bundle/chunk-k0qtwnhb.js +0 -2
  384. package/bundle/chunk-k2rsky7z.js +0 -2
  385. package/bundle/chunk-kcetcysa.js +0 -2
  386. package/bundle/chunk-kjfc5v3s.js +0 -2
  387. package/bundle/chunk-kkvb2c2z.js +0 -8
  388. package/bundle/chunk-km2ayfyf.js +0 -2
  389. package/bundle/chunk-knrh89eb.js +0 -2
  390. package/bundle/chunk-ksqfjawv.js +0 -2
  391. package/bundle/chunk-mjhb1q0n.js +0 -3
  392. package/bundle/chunk-mxcger73.js +0 -2
  393. package/bundle/chunk-nazkrkeb.js +0 -2
  394. package/bundle/chunk-nk01s49e.js +0 -2
  395. package/bundle/chunk-ns8b7rx1.js +0 -2
  396. package/bundle/chunk-ny6vpkx2.js +0 -2
  397. package/bundle/chunk-q0dd3ak6.js +0 -3
  398. package/bundle/chunk-q2s057bm.js +0 -2
  399. package/bundle/chunk-q5cqg2c0.js +0 -28
  400. package/bundle/chunk-qk2wnp2x.js +0 -2
  401. package/bundle/chunk-r012q335.js +0 -3
  402. package/bundle/chunk-rbdjbgkb.js +0 -2
  403. package/bundle/chunk-rxjprhgh.js +0 -2
  404. package/bundle/chunk-s3w9bmze.js +0 -2
  405. package/bundle/chunk-s3zste1a.js +0 -2
  406. package/bundle/chunk-sbt7qmwm.js +0 -3
  407. package/bundle/chunk-sf6h44pb.js +0 -2
  408. package/bundle/chunk-sgvzxs7m.js +0 -2
  409. package/bundle/chunk-sp9bndyh.js +0 -2
  410. package/bundle/chunk-vavrczqm.js +0 -3
  411. package/bundle/chunk-vg4styg5.js +0 -2
  412. package/bundle/chunk-vh09hhcs.js +0 -2
  413. package/bundle/chunk-vhktpm0n.js +0 -2
  414. package/bundle/chunk-vzjcmwry.js +0 -14
  415. package/bundle/chunk-wtp0yvqw.js +0 -2
  416. package/bundle/chunk-xmzs7q66.js +0 -2
  417. package/bundle/chunk-xv80476w.js +0 -2
  418. package/bundle/chunk-yjvr0et1.js +0 -2
  419. package/bundle/chunk-zk8n8hnh.js +0 -3
  420. package/bundle/chunk-zx3kcfkj.js +0 -2
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{CP as b,zP as q}from"./chunk-hh4c02fh.js";var z=q((f)=>{Object.defineProperty(f,"__esModule",{value:!0});f.execAsync=void 0;var v=b("child_process"),w=b("util");f.execAsync=w.promisify(v.exec)});
3
- export{z as wP};
2
+ import{DP as q,GP as b}from"./chunk-s2za1y84.js";var z=q((f)=>{Object.defineProperty(f,"__esModule",{value:!0});f.execAsync=void 0;var v=b("child_process"),w=b("util");f.execAsync=w.promisify(v.exec)});
3
+ export{z as AP};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
2
  var f={"language.en":"English","language.zh":"\u7B80\u4F53\u4E2D\u6587","language.zht":"\u7E41\u9AD4\u4E2D\u6587","language.ko":"\uD55C\uAD6D\uC5B4","language.de":"Deutsch","language.es":"Espa\xF1ol","language.fr":"Fran\xE7ais","language.da":"Dansk","language.ja":"\u65E5\u672C\u8A9E","language.pl":"Polski","language.ru":"\u0420\u0443\u0441\u0441\u043A\u0438\u0439","language.ar":"\u0627\u0644\u0639\u0631\u0628\u064A\u0629","language.no":"Norsk","language.br":"Portugu\xEAs (Brasil)","language.pt":"Portugu\xEAs","language.bs":"Bosanski","language.th":"\u0E44\u0E17\u0E22","language.tr":"T\xFCrk\xE7e","tui.prompt.placeholder.normal":'\u4F55\u3067\u3082\u805E\u3044\u3066\u304F\u3060\u3055\u3044... "{{example}}"',"tui.prompt.placeholder.shell":'\u30B3\u30DE\u30F3\u30C9\u3092\u5B9F\u884C... "{{example}}"',"tui.prompt.ghost":"{{prediction}} (Tab \u3067\u78BA\u5B9A)","tui.home.placeholder.example.todo":"\u30B3\u30FC\u30C9\u30D9\u30FC\u30B9\u5185\u306E TODO \u3092\u4FEE\u6B63","tui.home.placeholder.example.stack":"\u3053\u306E\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u6280\u8853\u30B9\u30BF\u30C3\u30AF\u306F\uFF1F","tui.home.placeholder.example.tests":"\u58CA\u308C\u305F\u30C6\u30B9\u30C8\u3092\u4FEE\u6B63","tui.home.agreement.prefix":"QitQode \u3092\u3054\u5229\u7528\u3044\u305F\u3060\u304F\u3053\u3068\u3067\u3001","tui.home.agreement.terms":"\u5229\u7528\u898F\u7D04","tui.home.agreement.separator":"\u304A\u3088\u3073","tui.home.agreement.privacy":"\u30D7\u30E9\u30A4\u30D0\u30B7\u30FC\u30DD\u30EA\u30B7\u30FC","tui.home.agreement.suffix":"\u306B\u540C\u610F\u3057\u305F\u3082\u306E\u3068\u307F\u306A\u3055\u308C\u307E\u3059","tui.prompt.hint.attach_file":"\u30D5\u30A1\u30A4\u30EB\u6DFB\u4ED8","tui.prompt.hint.subagent":"\u30B5\u30D6\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8","tui.prompt.hint.commands":"\u30B3\u30DE\u30F3\u30C9","tui.prompt.hint.switch_mode":"\u30E2\u30FC\u30C9\u5207\u66FF","tui.prompt.hint.settings":"\u8A2D\u5B9A","tui.tips.label":"\u30D2\u30F3\u30C8","tui.tips.plain_terminal":"iTerm \u307E\u305F\u306F VS Code \u30BF\u30FC\u30DF\u30CA\u30EB\u306E\u4F7F\u7528\u3092\u304A\u3059\u3059\u3081\u3057\u307E\u3059","tui.tips.attach_file":"{highlight}@{/highlight} \u306E\u5F8C\u306B\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u5165\u529B\u3059\u308B\u3068\u30D5\u30A1\u30B8\u30FC\u691C\u7D22\u3067\u30D5\u30A1\u30A4\u30EB\u3092\u6DFB\u4ED8\u3067\u304D\u307E\u3059","tui.tips.shell_prefix":"\u30E1\u30C3\u30BB\u30FC\u30B8\u3092 {highlight}!{/highlight} \u3067\u59CB\u3081\u308B\u3068\u30B7\u30A7\u30EB\u30B3\u30DE\u30F3\u30C9\u3092\u76F4\u63A5\u5B9F\u884C\u3067\u304D\u307E\u3059\uFF08\u4F8B\uFF1A{highlight}!ls -la{/highlight}\uFF09","tui.tips.tab_agent":"{highlight}Tab{/highlight} \u307E\u305F\u306F {highlight}Shift+Tab{/highlight} \u3067 Build / Plan / Compose \u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u3092\u5207\u308A\u66FF\u3048\u307E\u3059","tui.tips.theme_mode":"{highlight}/dark{/highlight} \u3067\u30C0\u30FC\u30AF\u30E2\u30FC\u30C9\u3001{highlight}/light{/highlight} \u3067\u30E9\u30A4\u30C8\u30E2\u30FC\u30C9\u306B\u5207\u308A\u66FF\u3048\u307E\u3059","tui.tips.doc":"{highlight}/doc{/highlight} \u3092\u5B9F\u884C\u3057\u3066\u30E6\u30FC\u30B6\u30FC\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u3092\u958B\u304D\u307E\u3059","tui.tips.undo":"{highlight}/undo{/highlight} \u3067\u76F4\u524D\u306E\u30E1\u30C3\u30BB\u30FC\u30B8\u3068\u30D5\u30A1\u30A4\u30EB\u5909\u66F4\u3092\u53D6\u308A\u6D88\u3057\u307E\u3059","tui.tips.redo":"{highlight}/redo{/highlight} \u3067\u53D6\u308A\u6D88\u3057\u305F\u30E1\u30C3\u30BB\u30FC\u30B8\u3068\u30D5\u30A1\u30A4\u30EB\u5909\u66F4\u3092\u5FA9\u5143\u3057\u307E\u3059","tui.tips.drag_drop":"\u753B\u50CF\u3084 PDF \u3092\u30BF\u30FC\u30DF\u30CA\u30EB\u306B\u30C9\u30E9\u30C3\u30B0\uFF06\u30C9\u30ED\u30C3\u30D7\u3057\u3066\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u306B\u8FFD\u52A0\u3067\u304D\u307E\u3059","tui.tips.paste_image":"{highlight}Ctrl+V{/highlight} \u3067\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u306E\u753B\u50CF\u3092\u30D7\u30ED\u30F3\u30D7\u30C8\u306B\u8CBC\u308A\u4ED8\u3051\u307E\u3059","tui.tips.editor":"{highlight}Ctrl+X E{/highlight} \u307E\u305F\u306F {highlight}/editor{/highlight} \u3067\u5916\u90E8\u30A8\u30C7\u30A3\u30BF\u304B\u3089\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u66F8\u3051\u307E\u3059","tui.tips.init":"{highlight}/init{/highlight} \u3092\u5B9F\u884C\u3059\u308B\u3068\u30B3\u30FC\u30C9\u30D9\u30FC\u30B9\u3092\u57FA\u306B\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u30EB\u30FC\u30EB\u3092\u81EA\u52D5\u751F\u6210\u3057\u307E\u3059","tui.tips.models":"{highlight}/models{/highlight} \u307E\u305F\u306F {highlight}Ctrl+X M{/highlight} \u3067\u5229\u7528\u53EF\u80FD\u306A\u30E2\u30C7\u30EB\u3092\u5207\u308A\u66FF\u3048\u307E\u3059","tui.tips.theme":'\u30BF\u30FC\u30DF\u30CA\u30EB\u306E\u80CC\u666F\u306B\u5408\u308F\u305B\u3066\u30C6\u30FC\u30DE\u30E2\u30FC\u30C9\u3092\u56FA\u5B9A\u3059\u308B\u306B\u306F\u3001\u30B3\u30DE\u30F3\u30C9\u30D1\u30EC\u30C3\u30C8\uFF08{highlight}Ctrl+P{/highlight}\uFF09\u3067 "lock" \u3092\u691C\u7D22\u3057\u307E\u3059',"tui.tips.new_session":"{highlight}Ctrl+X N{/highlight} \u307E\u305F\u306F {highlight}/new{/highlight} \u3067\u65B0\u3057\u3044\u4F1A\u8A71\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u958B\u59CB\u3057\u307E\u3059","tui.tips.sessions":"{highlight}/sessions{/highlight} \u307E\u305F\u306F {highlight}Ctrl+X L{/highlight} \u3067\u904E\u53BB\u306E\u4F1A\u8A71\u3092\u4E00\u89A7\u8868\u793A\u30FB\u7D99\u7D9A\u3057\u307E\u3059","tui.tips.compact":"{highlight}/compact{/highlight} \u3067\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u4E0A\u9650\u8FD1\u304F\u306E\u9577\u3044\u4F1A\u8A71\u3092\u8981\u7D04\u3067\u304D\u307E\u3059","tui.tips.export":"{highlight}Ctrl+X X{/highlight} \u307E\u305F\u306F {highlight}/export{/highlight} \u3067\u4F1A\u8A71\u3092 Markdown \u3068\u3057\u3066\u4FDD\u5B58\u3057\u307E\u3059","tui.tips.copy_last":"{highlight}Ctrl+X Y{/highlight} \u3067\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u306E\u6700\u5F8C\u306E\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u306B\u30B3\u30D4\u30FC\u3057\u307E\u3059","tui.tips.command_palette":"{highlight}Ctrl+P{/highlight} \u3067\u5229\u7528\u53EF\u80FD\u306A\u3059\u3079\u3066\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u8868\u793A\u3057\u307E\u3059","tui.tips.leader":"\u30EA\u30FC\u30C0\u30FC\u30AD\u30FC\u306F {highlight}Ctrl+X{/highlight}\u3002\u4ED6\u306E\u30AD\u30FC\u3068\u7D44\u307F\u5408\u308F\u305B\u3066\u30AF\u30A4\u30C3\u30AF\u64CD\u4F5C\u304C\u3067\u304D\u307E\u3059","tui.tips.f2":"{highlight}F2{/highlight} \u3067\u6700\u8FD1\u4F7F\u3063\u305F\u30E2\u30C7\u30EB\u3092\u7D20\u65E9\u304F\u5207\u308A\u66FF\u3048\u307E\u3059","tui.tips.sidebar":"{highlight}Ctrl+X B{/highlight} \u3067\u30B5\u30A4\u30C9\u30D0\u30FC\u30D1\u30CD\u30EB\u306E\u8868\u793A/\u975E\u8868\u793A\u3092\u5207\u308A\u66FF\u3048\u307E\u3059","tui.tips.history":"{highlight}PageUp{/highlight}/{highlight}PageDown{/highlight} \u3067\u4F1A\u8A71\u5C65\u6B74\u3092\u79FB\u52D5\u3057\u307E\u3059","tui.tips.jump_first":"{highlight}Ctrl+G{/highlight} \u307E\u305F\u306F {highlight}Home{/highlight} \u3067\u4F1A\u8A71\u306E\u5148\u982D\u306B\u30B8\u30E3\u30F3\u30D7\u3057\u307E\u3059","tui.tips.jump_last":"{highlight}Ctrl+Alt+G{/highlight} \u307E\u305F\u306F {highlight}End{/highlight} \u3067\u6700\u65B0\u30E1\u30C3\u30BB\u30FC\u30B8\u306B\u30B8\u30E3\u30F3\u30D7\u3057\u307E\u3059","tui.tips.newline":"{highlight}Shift+Enter{/highlight} \u307E\u305F\u306F {highlight}Ctrl+J{/highlight} \u3067\u30D7\u30ED\u30F3\u30D7\u30C8\u306B\u6539\u884C\u3092\u5165\u308C\u307E\u3059","tui.tips.clear_input":"\u5165\u529B\u4E2D\u306B {highlight}Ctrl+C{/highlight} \u3092\u62BC\u3059\u3068\u5165\u529B\u6B04\u3092\u30AF\u30EA\u30A2\u3057\u307E\u3059","tui.tips.escape":"{highlight}Escape{/highlight} \u3067 AI \u306E\u5FDC\u7B54\u3092\u9014\u4E2D\u3067\u505C\u6B62\u3057\u307E\u3059","tui.tips.plan_agent":"{highlight}Plan{/highlight} \u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306B\u5207\u308A\u66FF\u3048\u308B\u3068\u5B9F\u969B\u306E\u5909\u66F4\u306A\u3057\u3067\u63D0\u6848\u3060\u3051\u5F97\u3089\u308C\u307E\u3059","tui.tips.subagent":"\u30D7\u30ED\u30F3\u30D7\u30C8\u5185\u3067 {highlight}@agent-name{/highlight} \u3092\u4F7F\u3046\u3068\u5C02\u7528\u30B5\u30D6\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u3092\u547C\u3073\u51FA\u3057\u307E\u3059","tui.tips.cycle_sessions":"{highlight}Ctrl+X Right/Left{/highlight} \u3067\u89AA\u5B50\u30BB\u30C3\u30B7\u30E7\u30F3\u9593\u3092\u79FB\u52D5\u3057\u307E\u3059","tui.tips.config_files":"\u30B5\u30FC\u30D0\u8A2D\u5B9A\u306F {highlight}qitqode.json{/highlight}\u3001TUI \u8A2D\u5B9A\u306F {highlight}tui.json{/highlight} \u3092\u4F5C\u6210\u3057\u307E\u3059","tui.tips.global_config":"TUI \u8A2D\u5B9A\u3092\u30B0\u30ED\u30FC\u30D0\u30EB\u306B\u7F6E\u304F\u306A\u3089 {highlight}~/.config/qitqode/tui.json{/highlight} \u3092\u4F7F\u3044\u307E\u3059","tui.tips.schema":"\u8A2D\u5B9A\u306B {highlight}$schema{/highlight} \u3092\u52A0\u3048\u308B\u3068\u30A8\u30C7\u30A3\u30BF\u3067\u81EA\u52D5\u88DC\u5B8C\u3055\u308C\u307E\u3059","tui.tips.default_model":"\u8A2D\u5B9A\u306E {highlight}model{/highlight} \u3067\u30C7\u30D5\u30A9\u30EB\u30C8\u30E2\u30C7\u30EB\u3092\u6307\u5B9A\u3057\u307E\u3059","tui.tips.keybinds":"{highlight}tui.json{/highlight} \u306E {highlight}keybinds{/highlight} \u30BB\u30AF\u30B7\u30E7\u30F3\u3067\u4EFB\u610F\u306E\u30AD\u30FC\u30D0\u30A4\u30F3\u30C9\u3092\u4E0A\u66F8\u304D\u3067\u304D\u307E\u3059","tui.tips.disable_keybind":"\u4EFB\u610F\u306E\u30AD\u30FC\u30D0\u30A4\u30F3\u30C9\u3092 {highlight}none{/highlight} \u306B\u3059\u308B\u3068\u5B8C\u5168\u306B\u7121\u52B9\u5316\u3067\u304D\u307E\u3059","tui.tips.mcp_config":"{highlight}mcp{/highlight} \u8A2D\u5B9A\u30BB\u30AF\u30B7\u30E7\u30F3\u3067\u30ED\u30FC\u30AB\u30EB/\u30EA\u30E2\u30FC\u30C8 MCP \u30B5\u30FC\u30D0\u3092\u8A2D\u5B9A\u3057\u307E\u3059","tui.tips.mcp_oauth":"QitQode \u306F\u8A8D\u8A3C\u304C\u5FC5\u8981\u306A\u30EA\u30E2\u30FC\u30C8 MCP \u30B5\u30FC\u30D0\u306E OAuth \u3092\u81EA\u52D5\u51E6\u7406\u3057\u307E\u3059","tui.tips.custom_command":"{highlight}.qitqode/command/{/highlight} \u306B {highlight}.md{/highlight} \u30D5\u30A1\u30A4\u30EB\u3092\u8FFD\u52A0\u3059\u308B\u3068\u518D\u5229\u7528\u53EF\u80FD\u306A\u30AB\u30B9\u30BF\u30E0\u30D7\u30ED\u30F3\u30D7\u30C8\u3092\u5B9A\u7FA9\u3067\u304D\u307E\u3059","tui.tips.command_args":"\u30AB\u30B9\u30BF\u30E0\u30B3\u30DE\u30F3\u30C9\u3067 {highlight}$ARGUMENTS{/highlight}\u3001{highlight}$1{/highlight}\u3001{highlight}$2{/highlight} \u3092\u4F7F\u3046\u3068\u52D5\u7684\u306A\u5165\u529B\u3092\u53D7\u3051\u53D6\u308C\u307E\u3059","tui.tips.command_backticks":"\u30B3\u30DE\u30F3\u30C9\u5185\u3067\u30D0\u30C3\u30AF\u30AF\u30A9\u30FC\u30C8\u3092\u4F7F\u3046\u3068\u30B7\u30A7\u30EB\u51FA\u529B\u3092\u57CB\u3081\u8FBC\u3081\u307E\u3059\uFF08\u4F8B\uFF1A{highlight}`git status`{/highlight}\uFF09","tui.tips.custom_agent":"{highlight}.qitqode/agent/{/highlight} \u306B {highlight}.md{/highlight} \u30D5\u30A1\u30A4\u30EB\u3092\u8FFD\u52A0\u3057\u3066\u5C02\u7528 AI \u30DA\u30EB\u30BD\u30CA\u3092\u4F5C\u308C\u307E\u3059","tui.tips.agent_perms":"\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u3054\u3068\u306B {highlight}edit{/highlight}\u3001{highlight}bash{/highlight}\u3001{highlight}webfetch{/highlight} \u30C4\u30FC\u30EB\u306E\u6A29\u9650\u3092\u8A2D\u5B9A\u3067\u304D\u307E\u3059","tui.tips.bash_allow":'{highlight}"git *": "allow"{/highlight} \u306E\u3088\u3046\u306A\u30D1\u30BF\u30FC\u30F3\u3067 bash \u6A29\u9650\u3092\u7D30\u304B\u304F\u5236\u5FA1\u3067\u304D\u307E\u3059',"tui.tips.bash_deny":'{highlight}"rm -rf *": "deny"{/highlight} \u3092\u8A2D\u5B9A\u3057\u3066\u7834\u58CA\u7684\u306A\u30B3\u30DE\u30F3\u30C9\u3092\u30D6\u30ED\u30C3\u30AF\u3057\u307E\u3059',"tui.tips.bash_ask":'{highlight}"git push": "ask"{/highlight} \u3092\u8A2D\u5B9A\u3059\u308B\u3068 push \u524D\u306B\u627F\u8A8D\u3092\u6C42\u3081\u307E\u3059',"tui.tips.formatter":"QitQode \u306F prettier\u3001gofmt\u3001ruff \u306A\u3069\u3067\u30D5\u30A1\u30A4\u30EB\u3092\u81EA\u52D5\u6574\u5F62\u3057\u307E\u3059","tui.tips.disable_formatter":'\u8A2D\u5B9A\u3067 {highlight}"formatter": false{/highlight} \u306B\u3059\u308B\u3068\u3059\u3079\u3066\u306E\u81EA\u52D5\u6574\u5F62\u3092\u7121\u52B9\u5316\u3067\u304D\u307E\u3059',"tui.tips.custom_formatter":"\u62E1\u5F35\u5B50\u3054\u3068\u306E\u30AB\u30B9\u30BF\u30E0\u6574\u5F62\u30B3\u30DE\u30F3\u30C9\u3092\u8A2D\u5B9A\u3067\u5B9A\u7FA9\u3067\u304D\u307E\u3059","tui.tips.lsp":"QitQode \u306F\u30A4\u30F3\u30C6\u30EA\u30B8\u30A7\u30F3\u30C8\u306A\u30B3\u30FC\u30C9\u89E3\u6790\u306B LSP \u30B5\u30FC\u30D0\u3092\u4F7F\u3044\u307E\u3059","tui.tips.custom_tool":"{highlight}.qitqode/tools/{/highlight} \u306B {highlight}.ts{/highlight} \u30D5\u30A1\u30A4\u30EB\u3092\u4F5C\u3063\u3066\u65B0\u3057\u3044 LLM \u30C4\u30FC\u30EB\u3092\u5B9A\u7FA9\u3057\u307E\u3059","tui.tips.tool_scripts":"\u30C4\u30FC\u30EB\u5B9A\u7FA9\u304B\u3089 Python\u3001Go \u306A\u3069\u306E\u30B9\u30AF\u30EA\u30D7\u30C8\u3092\u547C\u3073\u51FA\u305B\u307E\u3059","tui.tips.plugins":"{highlight}.qitqode/plugin/{/highlight} \u306B {highlight}.ts{/highlight} \u30D5\u30A1\u30A4\u30EB\u3092\u8FFD\u52A0\u3057\u3066\u30A4\u30D9\u30F3\u30C8\u30D5\u30C3\u30AF\u3092\u5B9F\u88C5\u3067\u304D\u307E\u3059","tui.tips.plugin_notify":"\u30D7\u30E9\u30B0\u30A4\u30F3\u3067\u30BB\u30C3\u30B7\u30E7\u30F3\u5B8C\u4E86\u6642\u306B OS \u901A\u77E5\u3092\u9001\u308C\u307E\u3059","tui.tips.plugin_protect":"\u30D7\u30E9\u30B0\u30A4\u30F3\u3092\u66F8\u3044\u3066 QitQode \u304C\u6A5F\u5BC6\u30D5\u30A1\u30A4\u30EB\u3092\u8AAD\u307E\u306A\u3044\u3088\u3046\u306B\u3067\u304D\u307E\u3059","tui.tips.run":"{highlight}qitqode run{/highlight} \u3067\u975E\u5BFE\u8A71\u7684\u306A\u30B9\u30AF\u30EA\u30D7\u30C8\u5B9F\u884C\u304C\u3067\u304D\u307E\u3059","tui.tips.continue":"{highlight}qitqode --continue{/highlight} \u3067\u524D\u56DE\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u518D\u958B\u3057\u307E\u3059","tui.tips.attach_cli":"{highlight}qitqode run -f file.ts{/highlight} \u3067 CLI \u304B\u3089\u30D5\u30A1\u30A4\u30EB\u3092\u6DFB\u4ED8\u3067\u304D\u307E\u3059","tui.tips.format_json":"{highlight}--format json{/highlight} \u3092\u4F7F\u3046\u3068\u30B9\u30AF\u30EA\u30D7\u30C8\u3067\u6A5F\u68B0\u53EF\u8AAD\u306A\u51FA\u529B\u3092\u5F97\u3089\u308C\u307E\u3059","tui.tips.auth_list":"{highlight}qitqode auth status{/highlight} \u3067\u73FE\u5728\u306E\u30B5\u30A4\u30F3\u30A4\u30F3\u72B6\u614B\u3092\u78BA\u8A8D\u3057\u307E\u3059","tui.tips.agent_create":"{highlight}qitqode agent create{/highlight} \u3067\u30AC\u30A4\u30C9\u4ED8\u304D\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u4F5C\u6210\u3092\u884C\u3044\u307E\u3059","tui.tips.theme_system":'{highlight}"theme": "system"{/highlight} \u3067\u30BF\u30FC\u30DF\u30CA\u30EB\u306E\u914D\u8272\u306B\u5408\u308F\u305B\u307E\u3059',"tui.tips.theme_files":"{highlight}.qitqode/themes/{/highlight} \u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u306B JSON \u30C6\u30FC\u30DE\u30D5\u30A1\u30A4\u30EB\u3092\u4F5C\u6210\u3057\u307E\u3059","tui.tips.theme_variants":"\u30C6\u30FC\u30DE\u306F\u30C0\u30FC\u30AF/\u30E9\u30A4\u30C8\u306E\u30D0\u30EA\u30A2\u30F3\u30C8\u3092\u30B5\u30DD\u30FC\u30C8\u3057\u307E\u3059","tui.tips.theme_ansi":"\u30AB\u30B9\u30BF\u30E0\u30C6\u30FC\u30DE\u3067 ANSI \u30AB\u30E9\u30FC 0-255 \u3092\u53C2\u7167\u3067\u304D\u307E\u3059","tui.tips.env_var":"\u8A2D\u5B9A\u3067 {highlight}{env:VAR_NAME}{/highlight} \u69CB\u6587\u3092\u4F7F\u3046\u3068\u74B0\u5883\u5909\u6570\u3092\u53C2\u7167\u3067\u304D\u307E\u3059","tui.tips.file_var":"{highlight}{file:path}{/highlight} \u3067\u8A2D\u5B9A\u5024\u306B\u30D5\u30A1\u30A4\u30EB\u5185\u5BB9\u3092\u57CB\u3081\u8FBC\u3081\u307E\u3059","tui.tips.instructions":"\u8A2D\u5B9A\u306E {highlight}instructions{/highlight} \u3067\u8FFD\u52A0\u306E\u30EB\u30FC\u30EB\u30D5\u30A1\u30A4\u30EB\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u3059","tui.tips.temperature":"\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306E {highlight}temperature{/highlight} \u3092 0.0\uFF08\u53B3\u5BC6\uFF09\u304B\u3089 1.0\uFF08\u5275\u9020\u7684\uFF09\u307E\u3067\u8ABF\u6574\u3057\u307E\u3059","tui.tips.steps":"{highlight}steps{/highlight} \u3092\u8A2D\u5B9A\u3059\u308B\u3068\u30EA\u30AF\u30A8\u30B9\u30C8\u3054\u3068\u306E\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u53CD\u5FA9\u56DE\u6570\u3092\u5236\u9650\u3057\u307E\u3059","tui.tips.disable_tool":'{highlight}"tools": {"bash": false}{/highlight} \u3067\u7279\u5B9A\u306E\u30C4\u30FC\u30EB\u3092\u7121\u52B9\u5316\u3067\u304D\u307E\u3059',"tui.tips.disable_mcp_tools":'{highlight}"mcp_*": false{/highlight} \u3067 MCP \u30B5\u30FC\u30D0\u7531\u6765\u306E\u30C4\u30FC\u30EB\u3092\u3059\u3079\u3066\u7121\u52B9\u5316\u3067\u304D\u307E\u3059',"tui.tips.tool_override":"\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u3054\u3068\u306E\u8A2D\u5B9A\u3067\u30B0\u30ED\u30FC\u30D0\u30EB\u306A\u30C4\u30FC\u30EB\u8A2D\u5B9A\u3092\u4E0A\u66F8\u304D\u3067\u304D\u307E\u3059","tui.tips.doom_loop":"\u6A29\u9650 {highlight}doom_loop{/highlight} \u304C\u30C4\u30FC\u30EB\u547C\u3073\u51FA\u3057\u306E\u7121\u9650\u30EB\u30FC\u30D7\u3092\u9632\u304E\u307E\u3059","tui.tips.external_dir":"\u6A29\u9650 {highlight}external_directory{/highlight} \u304C\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u5916\u306E\u30D5\u30A1\u30A4\u30EB\u3092\u4FDD\u8B77\u3057\u307E\u3059","tui.tips.debug_config":"{highlight}qitqode debug config{/highlight} \u3067\u8A2D\u5B9A\u306E\u554F\u984C\u3092\u8ABF\u67FB\u3057\u307E\u3059","tui.tips.print_logs":"{highlight}--print-logs{/highlight} \u30D5\u30E9\u30B0\u3067 stderr \u306B\u8A73\u7D30\u30ED\u30B0\u3092\u51FA\u529B\u3057\u307E\u3059","tui.tips.timeline":"{highlight}Ctrl+X G{/highlight} \u307E\u305F\u306F {highlight}/timeline{/highlight} \u3067\u7279\u5B9A\u306E\u30E1\u30C3\u30BB\u30FC\u30B8\u306B\u30B8\u30E3\u30F3\u30D7\u3057\u307E\u3059","tui.tips.toggle_code":"{highlight}Ctrl+X H{/highlight} \u3067\u30E1\u30C3\u30BB\u30FC\u30B8\u5185\u30B3\u30FC\u30C9\u30D6\u30ED\u30C3\u30AF\u306E\u8868\u793A\u3092\u5207\u308A\u66FF\u3048\u307E\u3059","tui.tips.status":"{highlight}Ctrl+X S{/highlight} \u307E\u305F\u306F {highlight}/status{/highlight} \u3067\u30B7\u30B9\u30C6\u30E0\u72B6\u614B\u3092\u8868\u793A\u3057\u307E\u3059","tui.tips.scroll_accel":"{highlight}tui.json{/highlight} \u306E {highlight}scroll_acceleration{/highlight} \u3092\u6709\u52B9\u306B\u3059\u308B\u3068 macOS \u98A8\u306E\u306A\u3081\u3089\u304B\u306A\u30B9\u30AF\u30ED\u30FC\u30EB\u306B\u306A\u308A\u307E\u3059","tui.tips.agents_md":"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E {highlight}AGENTS.md{/highlight} \u3092 Git \u306B\u30B3\u30DF\u30C3\u30C8\u3057\u3066\u30C1\u30FC\u30E0\u3067\u5171\u6709\u3057\u307E\u3059","tui.tips.review":"{highlight}/review{/highlight} \u3067\u672A\u30B3\u30DF\u30C3\u30C8\u5909\u66F4\u3001\u30D6\u30E9\u30F3\u30C1\u3001PR \u3092\u30EC\u30D3\u30E5\u30FC\u3057\u307E\u3059","tui.tips.help":"{highlight}/help{/highlight} \u307E\u305F\u306F {highlight}Ctrl+X H{/highlight} \u3067\u30D8\u30EB\u30D7\u3092\u8868\u793A\u3057\u307E\u3059","tui.tips.rename":"{highlight}/rename{/highlight} \u3067\u73FE\u5728\u306E\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u30EA\u30CD\u30FC\u30E0\u3057\u307E\u3059","tui.tips.suspend.unix":"{highlight}Ctrl+Z{/highlight} \u3067\u30BF\u30FC\u30DF\u30CA\u30EB\u3092\u30B5\u30B9\u30DA\u30F3\u30C9\u3057\u30B7\u30A7\u30EB\u306B\u623B\u308A\u307E\u3059","tui.tips.suspend.win":"{highlight}Ctrl+Z{/highlight} \u3067\u30D7\u30ED\u30F3\u30D7\u30C8\u306E\u5165\u529B\u3092\u53D6\u308A\u6D88\u3057\u307E\u3059","tui.command.palette.title":"\u30B3\u30DE\u30F3\u30C9","tui.command.palette.suggested":"\u304A\u3059\u3059\u3081","tui.command.category.session":"\u30BB\u30C3\u30B7\u30E7\u30F3","tui.command.category.agent":"\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8","tui.command.category.provider":"\u30D7\u30ED\u30D0\u30A4\u30C0","tui.command.category.system":"\u30B7\u30B9\u30C6\u30E0","tui.command.category.prompt":"\u30D7\u30ED\u30F3\u30D7\u30C8","tui.command.category.internal":"\u7D44\u307F\u8FBC\u307F","tui.command.category.external":"\u5916\u90E8","tui.slash.init.description":"AGENTS.md \u3092\u30AC\u30A4\u30C9\u4ED8\u304D\u3067\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7","tui.slash.review.description":"\u5909\u66F4\u3092\u30EC\u30D3\u30E5\u30FC [commit|branch|pr]\u3001\u30C7\u30D5\u30A9\u30EB\u30C8\u306F\u672A\u30B3\u30DF\u30C3\u30C8","tui.slash.dream.description":"memory \u30D5\u30A1\u30A4\u30EB\u3068\u751F\u306E\u8ECC\u8DE1\u304B\u3089\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u30E1\u30E2\u30EA\u3092\u624B\u52D5\u3067\u7D71\u5408","tui.slash.distill.description":"\u6700\u8FD1\u306E\u4F5C\u696D\u304B\u3089\u7E70\u308A\u8FD4\u3057\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u898B\u3064\u3051\u3001skill\u30FB\u30B5\u30D6\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u30FB\u30B3\u30DE\u30F3\u30C9\u306B\u30D1\u30C3\u30B1\u30FC\u30B8\u5316","tui.slash.goal.description":"\u505C\u6B62\u6761\u4EF6\u4ED8\u304D\u30B4\u30FC\u30EB\u3092\u8A2D\u5B9A\uFF1B\u5224\u5B9A\u304C\u9054\u6210\u3068\u8A00\u3046\u307E\u3067\u5B9F\u884C\u3002/goal clear \u3067\u4E2D\u6B62","tui.slash.deep-research.description":"\u6DF1\u3044\u591A\u30BD\u30FC\u30B9\u30FB\u30D5\u30A1\u30AF\u30C8\u30C1\u30A7\u30C3\u30AF\u6E08\u307F\u8ABF\u67FB\u30EC\u30DD\u30FC\u30C8\uFF08deep-research \u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u5B9F\u884C\uFF09","tui.command.language.switch.title":"\u8A00\u8A9E\u3092\u5207\u308A\u66FF\u3048","tui.command.language.switch.description":"\u8868\u793A\u8A00\u8A9E\u3092\u5909\u66F4\u3057\u307E\u3059","tui.command.language.dialog.title":"\u8A00\u8A9E\u3092\u5207\u308A\u66FF\u3048","tui.language.auto":"\u81EA\u52D5\uFF08\u30B7\u30B9\u30C6\u30E0\uFF09","tui.language.current":"\u73FE\u5728","tui.command.session.list.title":"\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u5207\u308A\u66FF\u3048","tui.command.session.new.title":"\u65B0\u898F\u30BB\u30C3\u30B7\u30E7\u30F3","tui.command.workflow.list.title":"\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC","tui.command.model.list.title":"\u30E2\u30C7\u30EB\u3092\u5207\u308A\u66FF\u3048","tui.command.model.cycle_recent.title":"\u30E2\u30C7\u30EB\u3092\u5FAA\u74B0","tui.command.model.cycle_recent_reverse.title":"\u30E2\u30C7\u30EB\u3092\u9006\u5FAA\u74B0","tui.command.model.cycle_favorite.title":"\u304A\u6C17\u306B\u5165\u308A\u3092\u5FAA\u74B0","tui.command.model.cycle_favorite_reverse.title":"\u304A\u6C17\u306B\u5165\u308A\u3092\u9006\u5FAA\u74B0","tui.command.agent.list.title":"\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u3092\u5207\u308A\u66FF\u3048","tui.command.mcp.list.title":"MCP \u3092\u5207\u308A\u66FF\u3048","tui.command.never_ask.title_on":"\u8CEA\u554F\u3057\u306A\u3044\uFF1A\u30AA\u30F3\uFF08\u81EA\u52D5\u5224\u65AD\u3001\u6A29\u9650\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u9664\u304F\uFF09 \u2014 \u30AF\u30EA\u30C3\u30AF\u3067\u30AA\u30D5\u306B","tui.command.never_ask.title_off":"\u8CEA\u554F\u3057\u306A\u3044\uFF1A\u30AA\u30D5 \u2014 \u30AF\u30EA\u30C3\u30AF\u3067\u30AA\u30F3\u306B\uFF08\u81EA\u52D5\u5224\u65AD\u3001\u6A29\u9650\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u9664\u304F\uFF09","tui.command.never_ask.toast_on":"\u8CEA\u554F\u3057\u306A\u3044\u3092\u30AA\u30F3\u306B\u3057\u307E\u3057\u305F \u2014 \u3042\u306A\u305F\u306B\u8CEA\u554F\u305B\u305A\u3001\u30AA\u30D5\u306B\u3059\u308B\uFF08/never-ask\uFF09\u307E\u3067\u81EA\u5206\u3067\u6700\u9069\u306A\u9078\u629E\u80A2\u3092\u9078\u3073\u307E\u3059\u3002\u6A29\u9650\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u5F15\u304D\u7D9A\u304D\u3042\u306A\u305F\u306E\u627F\u8A8D\u304C\u5FC5\u8981\u3067\u3059\u3002","tui.command.never_ask.toast_off":"\u8CEA\u554F\u3057\u306A\u3044\u3092\u30AA\u30D5\u306B\u3057\u307E\u3057\u305F \u2014 \u5224\u65AD\u30DD\u30A4\u30F3\u30C8\u3067\u518D\u3073\u3042\u306A\u305F\u306B\u8CEA\u554F\u3057\u307E\u3059\u3002","tui.command.agent.cycle.title":"\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u3092\u5FAA\u74B0","tui.command.variant.cycle.title":"\u30D0\u30EA\u30A2\u30F3\u30C8\u3092\u5FAA\u74B0","tui.command.variant.list.title":"\u30E2\u30C7\u30EB\u30D0\u30EA\u30A2\u30F3\u30C8\u3092\u5207\u308A\u66FF\u3048","tui.command.agent.cycle.reverse.title":"\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u3092\u9006\u5FAA\u74B0","tui.command.provider.login.title":"\u30ED\u30B0\u30A4\u30F3","tui.command.provider.logout.title":"\u30ED\u30B0\u30A2\u30A6\u30C8","tui.command.console.org.switch.title":"\u7D44\u7E54\u3092\u5207\u308A\u66FF\u3048","tui.command.qitqode.status.title":"\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u8868\u793A","tui.command.theme.switch.title":"\u30C6\u30FC\u30DE\u3092\u5207\u308A\u66FF\u3048","tui.command.theme.switch_mode.to_light":"\u30E9\u30A4\u30C8\u30E2\u30FC\u30C9\u306B\u5207\u66FF","tui.command.theme.switch_mode.to_dark":"\u30C0\u30FC\u30AF\u30E2\u30FC\u30C9\u306B\u5207\u66FF","tui.command.theme.mode.unlock":"\u30C6\u30FC\u30DE\u30E2\u30FC\u30C9\u306E\u30ED\u30C3\u30AF\u89E3\u9664","tui.command.theme.mode.lock":"\u30C6\u30FC\u30DE\u30E2\u30FC\u30C9\u3092\u30ED\u30C3\u30AF","tui.command.help.show.title":"\u30D8\u30EB\u30D7","tui.dialog.help.close_hint":"esc/enter/space","tui.dialog.help.accessibility":"\u30A2\u30AF\u30BB\u30B7\u30D3\u30EA\u30C6\u30A3: \u30B3\u30DE\u30F3\u30C9\u30EA\u30B9\u30C8\u304B\u3089\u30A2\u30CB\u30E1\u30FC\u30B7\u30E7\u30F3\u3068\u30B5\u30A6\u30F3\u30C9\u3092\u5207\u308A\u66FF\u3048\u3089\u308C\u307E\u3059\u3002\u74B0\u5883\u5909\u6570: NO_COLOR, QITQODE_TUI_ACCESSIBLE, QITQODE_REDUCE_MOTION, QITQODE_TUI_SOUND\u3002","tui.dialog.help.announcements":"\u30A2\u30CA\u30A6\u30F3\u30B9: \u30A2\u30AF\u30BB\u30B7\u30D6\u30EB\u30E2\u30FC\u30C9\u3067\u306F\u3001\u30B9\u30AF\u30EA\u30FC\u30F3\u30EA\u30FC\u30C0\u30FC\u5411\u3051\u30A2\u30CA\u30A6\u30F3\u30B9\u306E\u8A73\u7D30\u5EA6(\u7C21\u6F54\u30FB\u6A19\u6E96\u30FB\u8A73\u7D30)\u3092\u30B3\u30DE\u30F3\u30C9\u30EA\u30B9\u30C8\u307E\u305F\u306F QITQODE_TUI_ANNOUNCEMENTS \u3067\u9078\u3079\u307E\u3059\u3002\u30A8\u30E9\u30FC\u306F\u5E38\u306B\u8AAD\u307F\u4E0A\u3052\u3089\u308C\u307E\u3059\u3002","tui.dialog.help.dialog_keys":"\u30C0\u30A4\u30A2\u30ED\u30B0: \u3059\u3079\u3066\u306E\u30C0\u30A4\u30A2\u30ED\u30B0\u306F\u30AD\u30FC\u30DC\u30FC\u30C9\u3060\u3051\u3067\u64CD\u4F5C\u3067\u304D\u307E\u3059 \u2014 Esc \u3067\u9589\u3058\u308B\u3001Tab \u3084\u77E2\u5370\u30AD\u30FC\u3067\u30D5\u30A9\u30FC\u30AB\u30B9\u79FB\u52D5\u3001Enter \u307E\u305F\u306F Space \u3067\u9078\u629E\u4E2D\u306E\u9805\u76EE\u3092\u5B9F\u884C\u3057\u307E\u3059\u3002","tui.command.app.announcements.cycle":"\u30A2\u30CA\u30A6\u30F3\u30B9: {{level}}(\u9078\u629E\u3057\u3066\u5909\u66F4)","tui.announcements.level.quiet":"\u7C21\u6F54","tui.announcements.level.normal":"\u6A19\u6E96","tui.announcements.level.verbose":"\u8A73\u7D30","tui.app.terminal_too_small":"\u30BF\u30FC\u30DF\u30CA\u30EB\u304C\u5C0F\u3055\u3059\u304E\u307E\u3059 ({{width}}x{{height}})\u300240x8 \u4EE5\u4E0A\u306B\u30EA\u30B5\u30A4\u30BA\u3057\u3066\u304F\u3060\u3055\u3044\u3002","tui.dialog.help.command_list":"{{keybind}} \u3092\u62BC\u3059\u3068\u3001\u4EFB\u610F\u306E\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u3067\u5229\u7528\u3067\u304D\u308B\u3059\u3079\u3066\u306E\u64CD\u4F5C\u3068\u30B3\u30DE\u30F3\u30C9\u3092\u8868\u793A\u3067\u304D\u307E\u3059\u3002","tui.dialog.help.ok":"OK","tui.dialog.close_hint":"esc","tui.dialog.document.scroll_hint":"\u2191/\u2193 \u30B9\u30AF\u30ED\u30FC\u30EB \xB7 PgUp/PgDn \u30DA\u30FC\u30B8 \xB7 esc \u9589\u3058\u308B","tui.dialog.ok":"OK","tui.dialog.confirm.cancel":"\u30AD\u30E3\u30F3\u30BB\u30EB","tui.dialog.confirm.confirm":"\u78BA\u8A8D","tui.dialog.agreement.title":"\u5229\u7528\u898F\u7D04\u3068\u30D7\u30E9\u30A4\u30D0\u30B7\u30FC","tui.dialog.agreement.message":"\u5185\u5BB9\u3092\u78BA\u8A8D\u3057\u3001\u540C\u610F\u306E\u3046\u3048\u3067\u7D9A\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002","tui.dialog.agreement.confirm":"\u540C\u610F\u3057\u3066\u7D9A\u884C","tui.command.docs.terms.title":"\u5229\u7528\u898F\u7D04\u3092\u8868\u793A","tui.command.docs.privacy.title":"\u30D7\u30E9\u30A4\u30D0\u30B7\u30FC\u30DD\u30EA\u30B7\u30FC\u3092\u8868\u793A","tui.command.consent.revoke.title":"\u7121\u6599\u30E2\u30C7\u30EB\u306E\u540C\u610F\u3092\u53D6\u308A\u6D88\u3059","tui.consent.revoked":"\u7121\u6599\u30E2\u30C7\u30EB\u306E\u540C\u610F\u3092\u53D6\u308A\u6D88\u3057\u307E\u3057\u305F \u2014 \u6B21\u56DE\u5229\u7528\u6642\u306B\u518D\u5EA6\u540C\u610F\u3092\u6C42\u3081\u307E\u3059","tui.dialog.select.placeholder":"\u691C\u7D22","tui.dialog.select.no_results":"\u7D50\u679C\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093","tui.dialog.prompt.placeholder":"\u30C6\u30AD\u30B9\u30C8\u3092\u5165\u529B","tui.dialog.prompt.busy":"\u51E6\u7406\u4E2D...","tui.dialog.prompt.processing":"\u51E6\u7406\u4E2D...","tui.dialog.prompt.submit_key":"enter","tui.dialog.prompt.submit_action":"\u9001\u4FE1","tui.dialog.export.title":"\u30A8\u30AF\u30B9\u30DD\u30FC\u30C8\u30AA\u30D7\u30B7\u30E7\u30F3","tui.dialog.export.filename":"\u30D5\u30A1\u30A4\u30EB\u540D:","tui.dialog.export.filename_placeholder":"\u30D5\u30A1\u30A4\u30EB\u540D\u3092\u5165\u529B","tui.dialog.export.include_thinking":"\u601D\u8003\u904E\u7A0B\u3092\u542B\u3081\u308B","tui.dialog.export.include_tool_details":"\u30C4\u30FC\u30EB\u8A73\u7D30\u3092\u542B\u3081\u308B","tui.dialog.export.include_assistant_metadata":"\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u30E1\u30BF\u30C7\u30FC\u30BF\u3092\u542B\u3081\u308B","tui.dialog.export.open_without_saving":"\u4FDD\u5B58\u305B\u305A\u306B\u958B\u304F","tui.dialog.export.hint.toggle_prefix":"\u62BC\u3059","tui.dialog.export.hint.toggle_action":"\u5207\u308A\u66FF\u3048","tui.dialog.export.hint.confirm_action":"\u78BA\u8A8D","tui.dialog.export.hint.options_action":"\u30AA\u30D7\u30B7\u30E7\u30F3","tui.toast.copied_to_clipboard":"\u30AF\u30EA\u30C3\u30D7\u30DC\u30FC\u30C9\u306B\u30B3\u30D4\u30FC\u3057\u307E\u3057\u305F","tui.toast.instructions_loaded":"{{files}} \u3092\u8AAD\u307F\u8FBC\u307F\u307E\u3057\u305F","tui.toast.update_available.title":"\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u304C\u3042\u308A\u307E\u3059","tui.toast.update_available.confirm":"\u65B0\u3057\u3044\u30D0\u30FC\u30B8\u30E7\u30F3 v{{version}} \u304C\u5229\u7528\u53EF\u80FD\u3067\u3059\u3002\u4ECA\u3059\u3050\u66F4\u65B0\u3057\u307E\u3059\u304B\uFF1F","tui.toast.update_available.updating":"v{{version}} \u306B\u66F4\u65B0\u4E2D...","tui.toast.update_available.failed":"\u66F4\u65B0\u306B\u5931\u6557\u3057\u307E\u3057\u305F","tui.toast.update_available.success":"QitQode v{{version}} \u306B\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u3092\u518D\u8D77\u52D5\u3057\u3066\u304F\u3060\u3055\u3044\u3002","tui.toast.updated.title":"\u81EA\u52D5\u66F4\u65B0\u6E08\u307F","tui.toast.updated.message":"\u30D1\u30C3\u30C1\u66F4\u65B0\u3092\u81EA\u52D5\u9069\u7528\u3057\u307E\u3057\u305F\uFF1Av{{version}}\u3002\u518D\u8D77\u52D5\u5F8C\u306B\u6709\u52B9\u306B\u306A\u308A\u307E\u3059\u3002\u8A2D\u5B9A\u3067 autoupdate: false \u3092\u6307\u5B9A\u3059\u308B\u3068\u7121\u52B9\u306B\u3067\u304D\u307E\u3059\u3002","tui.sidebar.instructions":"\u30A4\u30F3\u30B9\u30C8\u30E9\u30AF\u30B7\u30E7\u30F3","tui.sidebar.cwd":"\u4F5C\u696D\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA","tui.toast.unknown_error":"\u4E0D\u660E\u306A\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F","tui.command.docs.open.title":"\u30C9\u30AD\u30E5\u30E1\u30F3\u30C8\u3092\u958B\u304F","tui.command.app.exit.title":"\u30A2\u30D7\u30EA\u3092\u7D42\u4E86","tui.command.app.debug.title":"\u30C7\u30D0\u30C3\u30B0\u30D1\u30CD\u30EB\u3092\u5207\u66FF","tui.command.app.console.title":"\u30B3\u30F3\u30BD\u30FC\u30EB\u3092\u5207\u66FF","tui.command.app.heap_snapshot.title":"\u30D2\u30FC\u30D7\u30B9\u30CA\u30C3\u30D7\u30B7\u30E7\u30C3\u30C8\u3092\u66F8\u304D\u51FA\u3057","tui.command.terminal.suspend.title":"\u30BF\u30FC\u30DF\u30CA\u30EB\u3092\u30B5\u30B9\u30DA\u30F3\u30C9","tui.command.terminal.title.disable":"\u30BF\u30FC\u30DF\u30CA\u30EB\u30BF\u30A4\u30C8\u30EB\u3092\u7121\u52B9\u5316","tui.command.terminal.title.enable":"\u30BF\u30FC\u30DF\u30CA\u30EB\u30BF\u30A4\u30C8\u30EB\u3092\u6709\u52B9\u5316","tui.command.app.toggle.animations.disable":"\u30A2\u30CB\u30E1\u30FC\u30B7\u30E7\u30F3\u3092\u7121\u52B9\u5316","tui.command.app.toggle.animations.enable":"\u30A2\u30CB\u30E1\u30FC\u30B7\u30E7\u30F3\u3092\u6709\u52B9\u5316","tui.command.app.toggle.diffwrap.disable":"diff \u306E\u6298\u308A\u8FD4\u3057\u3092\u7121\u52B9\u5316","tui.command.app.toggle.diffwrap.enable":"diff \u306E\u6298\u308A\u8FD4\u3057\u3092\u6709\u52B9\u5316","tui.command.app.toggle.sound.disable":"\u30B5\u30A6\u30F3\u30C9\u3092\u7121\u52B9\u5316","tui.command.app.toggle.sound.enable":"\u30B5\u30A6\u30F3\u30C9\u3092\u6709\u52B9\u5316","tui.command.logout.toast":"\u30ED\u30B0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F","tui.command.session.share.title":"\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u5171\u6709","tui.command.session.share.copy_link":"\u5171\u6709\u30EA\u30F3\u30AF\u3092\u30B3\u30D4\u30FC","tui.command.session.rename.title":"\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u30EA\u30CD\u30FC\u30E0","tui.command.session.timeline.title":"\u30E1\u30C3\u30BB\u30FC\u30B8\u306B\u30B8\u30E3\u30F3\u30D7","tui.command.session.fork.title":"\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u5206\u5C90","tui.command.session.compact.title":"\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u5727\u7E2E","tui.command.session.unshare.title":"\u5171\u6709\u3092\u89E3\u9664","tui.command.session.undo.title":"\u76F4\u524D\u306E\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u53D6\u308A\u6D88\u3059","tui.command.session.redo.title":"\u3084\u308A\u76F4\u3057","tui.command.session.sidebar.show":"\u30B5\u30A4\u30C9\u30D0\u30FC\u3092\u8868\u793A","tui.command.session.sidebar.hide":"\u30B5\u30A4\u30C9\u30D0\u30FC\u3092\u975E\u8868\u793A","tui.command.session.conceal.disable":"\u30B3\u30FC\u30C9\u96A0\u853D\u3092\u7121\u52B9\u5316","tui.command.session.conceal.enable":"\u30B3\u30FC\u30C9\u96A0\u853D\u3092\u6709\u52B9\u5316","tui.command.session.timestamps.show":"\u30BF\u30A4\u30E0\u30B9\u30BF\u30F3\u30D7\u3092\u8868\u793A","tui.command.session.timestamps.hide":"\u30BF\u30A4\u30E0\u30B9\u30BF\u30F3\u30D7\u3092\u975E\u8868\u793A","tui.command.session.thinking.expand":"\u601D\u8003\u904E\u7A0B\u3092\u5C55\u958B","tui.command.session.thinking.collapse":"\u601D\u8003\u904E\u7A0B\u3092\u6298\u308A\u305F\u305F\u3080","tui.command.session.tool_details.show":"\u30C4\u30FC\u30EB\u8A73\u7D30\u3092\u8868\u793A","tui.command.session.tool_details.hide":"\u30C4\u30FC\u30EB\u8A73\u7D30\u3092\u975E\u8868\u793A","tui.command.session.scrollbar.toggle":"\u30BB\u30C3\u30B7\u30E7\u30F3\u306E\u30B9\u30AF\u30ED\u30FC\u30EB\u30D0\u30FC\u3092\u5207\u66FF","tui.command.session.generic_tool_output.show":"\u6C4E\u7528\u30C4\u30FC\u30EB\u51FA\u529B\u3092\u8868\u793A","tui.command.session.generic_tool_output.hide":"\u6C4E\u7528\u30C4\u30FC\u30EB\u51FA\u529B\u3092\u975E\u8868\u793A","tui.command.session.page_up.title":"1 \u30DA\u30FC\u30B8\u4E0A","tui.command.session.page_down.title":"1 \u30DA\u30FC\u30B8\u4E0B","tui.command.session.line_up.title":"1 \u884C\u4E0A","tui.command.session.line_down.title":"1 \u884C\u4E0B","tui.command.session.half_page_up.title":"\u534A\u30DA\u30FC\u30B8\u4E0A","tui.command.session.half_page_down.title":"\u534A\u30DA\u30FC\u30B8\u4E0B","tui.command.session.first.title":"\u6700\u521D\u306E\u30E1\u30C3\u30BB\u30FC\u30B8","tui.command.session.last.title":"\u6700\u5F8C\u306E\u30E1\u30C3\u30BB\u30FC\u30B8","tui.command.session.last_user.title":"\u6700\u5F8C\u306E\u30E6\u30FC\u30B6\u30FC\u30E1\u30C3\u30BB\u30FC\u30B8\u3078","tui.command.session.message_next.title":"\u6B21\u306E\u30E1\u30C3\u30BB\u30FC\u30B8","tui.command.session.message_previous.title":"\u524D\u306E\u30E1\u30C3\u30BB\u30FC\u30B8","tui.command.messages.copy.title":"\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u306E\u6700\u5F8C\u306E\u30E1\u30C3\u30BB\u30FC\u30B8\u3092\u30B3\u30D4\u30FC","tui.command.session.copy.title":"\u30BB\u30C3\u30B7\u30E7\u30F3\u306E\u30C8\u30E9\u30F3\u30B9\u30AF\u30EA\u30D7\u30C8\u3092\u30B3\u30D4\u30FC","tui.command.session.export.title":"\u30BB\u30C3\u30B7\u30E7\u30F3\u306E\u30C8\u30E9\u30F3\u30B9\u30AF\u30EA\u30D7\u30C8\u3092\u30A8\u30AF\u30B9\u30DD\u30FC\u30C8","tui.command.session.child_first.title":"\u5B50\u30BB\u30C3\u30B7\u30E7\u30F3\u3078\u79FB\u52D5","tui.command.session.parent.title":"\u89AA\u30BB\u30C3\u30B7\u30E7\u30F3\u3078\u623B\u308B","tui.command.session.child_next.title":"\u6B21\u306E\u5B50\u30BB\u30C3\u30B7\u30E7\u30F3","tui.command.session.child_previous.title":"\u524D\u306E\u5B50\u30BB\u30C3\u30B7\u30E7\u30F3","tui.command.prompt.clear.title":"\u30D7\u30ED\u30F3\u30D7\u30C8\u3092\u30AF\u30EA\u30A2","tui.command.prompt.submit.title":"\u30D7\u30ED\u30F3\u30D7\u30C8\u3092\u9001\u4FE1","tui.command.prompt.paste.title":"\u8CBC\u308A\u4ED8\u3051","tui.command.session.interrupt.title":"\u30BB\u30C3\u30B7\u30E7\u30F3\u3092\u4E2D\u65AD","tui.command.prompt.editor.title":"\u30A8\u30C7\u30A3\u30BF\u3092\u958B\u304F","tui.command.prompt.skills.title":"\u30B9\u30AD\u30EB","tui.command.voice.toggle.title":"\u97F3\u58F0\u5165\u529B\u306E\u5207\u308A\u66FF\u3048","tui.command.voice.toggle.title_on":"\u97F3\u58F0\u5165\u529B\uFF1A\u6709\u52B9 \u2014 \u30AF\u30EA\u30C3\u30AF\u3067\u7121\u52B9\u5316","tui.command.voice.toggle.title_off":"\u97F3\u58F0\u5165\u529B\uFF1A\u7121\u52B9 \u2014 \u30AF\u30EA\u30C3\u30AF\u3067\u6709\u52B9\u5316","tui.voice.enabled":"\u97F3\u58F0\u5165\u529B\u304C\u6709\u52B9\u306B\u306A\u308A\u307E\u3057\u305F\uFF08\u4E2D\u56FD\u8A9E/\u82F1\u8A9E\uFF09\u2014 [Voice] \u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u9332\u97F3","tui.voice.disabled":"\u97F3\u58F0\u5165\u529B\u304C\u7121\u52B9\u306B\u306A\u308A\u307E\u3057\u305F","tui.voice.send.enabled":'\u97F3\u58F0\u9001\u4FE1\u304C\u6709\u52B9 \u2014 \u300C\u53D1\u9001\u300D\u307E\u305F\u306F "send it" \u3067\u9001\u4FE1',"tui.voice.send.disabled":"\u97F3\u58F0\u9001\u4FE1\u304C\u7121\u52B9\u306B\u306A\u308A\u307E\u3057\u305F","tui.command.voice.send.title":"\u97F3\u58F0\u9001\u4FE1\u3092\u5207\u308A\u66FF\u3048","tui.command.voice.send.title_on":"\u97F3\u58F0\u9001\u4FE1\uFF1A\u6709\u52B9 \u2014 \u30AF\u30EA\u30C3\u30AF\u3067\u7121\u52B9\u5316","tui.command.voice.send.title_off":"\u97F3\u58F0\u9001\u4FE1\uFF1A\u7121\u52B9 \u2014 \u30AF\u30EA\u30C3\u30AF\u3067\u6709\u52B9\u5316","tui.voice.control.enabled":"\u97F3\u58F0\u5236\u5FA1\u304C\u6709\u52B9 \u2014 \u30DE\u30EB\u30C1\u30E2\u30FC\u30C0\u30EB\u30E2\u30C7\u30EB\u306B\u3088\u308B\u30A4\u30F3\u30C6\u30EA\u30B8\u30A7\u30F3\u30C8\u7DE8\u96C6\uFF08\u9045\u3081\uFF09","tui.voice.control.disabled":"\u97F3\u58F0\u5236\u5FA1\u304C\u7121\u52B9 \u2014 \u9AD8\u901FASR\u8EE2\u5199\u3092\u4F7F\u7528","tui.command.voice.control.title":"\u97F3\u58F0\u5236\u5FA1\u3092\u5207\u308A\u66FF\u3048\uFF08\u30DE\u30EB\u30C1\u30E2\u30FC\u30C0\u30EB\uFF09","tui.command.voice.control.title_on":"\u97F3\u58F0\u5236\u5FA1\uFF1A\u6709\u52B9\uFF08\u30DE\u30EB\u30C1\u30E2\u30FC\u30C0\u30EB\uFF09 \u2014 \u30AF\u30EA\u30C3\u30AF\u3067\u7121\u52B9\u5316","tui.command.voice.control.title_off":"\u97F3\u58F0\u5236\u5FA1\uFF1A\u7121\u52B9\uFF08\u9AD8\u901FASR\uFF09 \u2014 \u30AF\u30EA\u30C3\u30AF\u3067\u6709\u52B9\u5316","tui.voice.error.no_auth":"/connect \u3067 QitQode \u30A2\u30AB\u30A6\u30F3\u30C8\u306B\u63A5\u7D9A\u3059\u308B\u304B\u3001voice.asr_model \u3067\u5225\u306E\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u3092\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044","tui.voice.error.no_auth_provider":"\u97F3\u58F0\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u300C{{provider}}\u300D\u304C\u8A8D\u8A3C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002apiKey \u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044","tui.voice.error.provider_not_found":"\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u300C{{provider}}\u300D\u304C\u5229\u7528\u3067\u304D\u307E\u305B\u3093 \u2014 /connect \u3067\u63A5\u7D9A\u3059\u308B\u304B\u3001\u30AB\u30B9\u30BF\u30E0\u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8\u306E\u5834\u5408\u306F\u8A2D\u5B9A\u3067 models \u3092\u5BA3\u8A00\u3057\u3066\u304F\u3060\u3055\u3044","tui.voice.error.no_url":"\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u300C{{provider}}\u300D\u306B baseURL \u304C\u8A2D\u5B9A\u3055\u308C\u3066\u3044\u307E\u305B\u3093 \u2014 options.baseURL \u3092\u6307\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044","tui.voice.error.no_device":"\u30DE\u30A4\u30AF/\u30AA\u30FC\u30C7\u30A3\u30AA\u30C7\u30D0\u30A4\u30B9\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093 \u2014 \u30B7\u30B9\u30C6\u30E0\u306E\u30AA\u30FC\u30C7\u30A3\u30AA\u8A2D\u5B9A\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044","tui.voice.error.recorder_failed":"\u9332\u97F3\u306B\u5931\u6557\u3057\u307E\u3057\u305F","tui.voice.error.no_recorder":"\u9332\u97F3\u30C4\u30FC\u30EB\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093\u3002sox \u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u3066\u304F\u3060\u3055\u3044","tui.voice.error.too_short":"\u9332\u97F3\u6642\u9593\u304C\u77ED\u3059\u304E\u307E\u3059","tui.voice.error.network":"\u6587\u5B57\u8D77\u3053\u3057\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044","tui.command.prompt.stash.title":"\u30D7\u30ED\u30F3\u30D7\u30C8\u3092\u9000\u907F","tui.command.prompt.stash.pop.title":"\u9000\u907F\u304B\u3089\u5FA9\u5143","tui.command.prompt.stash.list.title":"\u9000\u907F\u4E00\u89A7","tui.command.tips.toggle.show":"\u30D2\u30F3\u30C8\u3092\u8868\u793A","tui.command.tips.toggle.hide":"\u30D2\u30F3\u30C8\u3092\u975E\u8868\u793A","tui.command.plugins.list.title":"\u30D7\u30E9\u30B0\u30A4\u30F3","tui.command.plugins.install.title":"\u30D7\u30E9\u30B0\u30A4\u30F3\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB","cli.providers.select":"\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u3092\u9078\u629E","cli.providers.other":"\u305D\u306E\u4ED6\u306E\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC","tui.question.plan_enter.question":"\u69CB\u9020\u5316\u3055\u308C\u305F\u8A08\u753B\u306E\u305F\u3081\u306B plan \u30E2\u30FC\u30C9\u306B\u5207\u308A\u66FF\u3048\u307E\u3059\u304B\uFF1F","tui.question.plan_enter.header":"\u8A08\u753B\u958B\u59CB","tui.question.plan_enter.option.0.label":"\u306F\u3044","tui.question.plan_enter.option.0.description":"\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u306E\u8A08\u753B\u306E\u305F\u3081\u306B plan \u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306B\u5207\u308A\u66FF\u3048","tui.question.plan_enter.option.1.label":"\u3044\u3044\u3048","tui.question.plan_enter.option.1.description":"\u73FE\u5728\u306E\u30E2\u30FC\u30C9\u306B\u3068\u3069\u307E\u308B","tui.question.plan_exit.question":"{{plan}} \u306E\u8A08\u753B\u304C\u5B8C\u4E86\u3057\u307E\u3057\u305F\u3002build \u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306B\u5207\u308A\u66FF\u3048\u3066\u5B9F\u88C5\u3092\u958B\u59CB\u3057\u307E\u3059\u304B\uFF1F","tui.question.plan_exit.header":"\u8A08\u753B\u7D42\u4E86","tui.question.plan_exit.option.0.label":"\u306F\u3044","tui.question.plan_exit.option.0.description":"build \u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306B\u5207\u308A\u66FF\u3048\u3066\u8A08\u753B\u306E\u5B9F\u88C5\u3092\u958B\u59CB","tui.question.plan_exit.option.1.label":"\u3044\u3044\u3048","tui.question.plan_exit.option.1.description":"plan \u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u3067\u8A08\u753B\u306E\u6539\u5584\u3092\u7D9A\u3051\u308B","tui.session.badge.auto":"\u81EA\u52D5","trust.title":"\u30EF\u30FC\u30AF\u30B9\u30DA\u30FC\u30B9\u306B\u30A2\u30AF\u30BB\u30B9\u4E2D\uFF1A","trust.safety_check":"\u5B89\u5168\u78BA\u8A8D\uFF1A\u3053\u308C\u306F\u3042\u306A\u305F\u304C\u4F5C\u6210\u3057\u305F\u3001\u307E\u305F\u306F\u4FE1\u983C\u3057\u3066\u3044\u308B\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3067\u3059\u304B\uFF1F\uFF08\u81EA\u5206\u306E\u30B3\u30FC\u30C9\u3001\u6709\u540D\u306A\u30AA\u30FC\u30D7\u30F3\u30BD\u30FC\u30B9\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3001\u30C1\u30FC\u30E0\u306E\u4F5C\u696D\u306A\u3069\uFF09\u3002\u305D\u3046\u3067\u306A\u3044\u5834\u5408\u306F\u3001\u307E\u305A\u3053\u306E\u30D5\u30A9\u30EB\u30C0\u306E\u5185\u5BB9\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002","trust.capabilities":"QitQode \u306F\u3053\u3053\u3067\u30D5\u30A1\u30A4\u30EB\u306E\u8AAD\u307F\u53D6\u308A\u3001\u7DE8\u96C6\u3001\u5B9F\u884C\u304C\u53EF\u80FD\u306B\u306A\u308A\u307E\u3059\u3002","trust.plugin_warn":"\u3053\u306E\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u306B\u60AA\u610F\u3042\u308B\u30D7\u30E9\u30B0\u30A4\u30F3\u304C\u5B58\u5728\u3059\u308B\u5834\u5408\u3001\u4EFB\u610F\u306E\u30B3\u30FC\u30C9\u3092\u5B9F\u884C\u3057\u3001\u30D5\u30A1\u30A4\u30EB\u3092\u8AAD\u307F\u53D6\u308A\u3001\u5909\u66F4\u3001\u307E\u305F\u306F\u6D41\u51FA\u3055\u305B\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002","trust.option.yes":"\u306F\u3044\u3001\u3053\u306E\u30D5\u30A9\u30EB\u30C0\u3092\u4FE1\u983C\u3057\u307E\u3059","trust.option.no":"\u3044\u3044\u3048\u3001\u7D42\u4E86","trust.dangerous.title_home":"\u8B66\u544A\uFF1A\u30DB\u30FC\u30E0\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u3092\u958B\u3053\u3046\u3068\u3057\u3066\u3044\u307E\u3059\u3002","trust.dangerous.title_root":"\u8B66\u544A\uFF1A\u30D5\u30A1\u30A4\u30EB\u30B7\u30B9\u30C6\u30E0\u306E\u30EB\u30FC\u30C8\u3092\u958B\u3053\u3046\u3068\u3057\u3066\u3044\u307E\u3059\u3002","trust.dangerous.body_home":"\u30E2\u30C7\u30EB\u304C\u30DB\u30FC\u30E0\u30D5\u30A9\u30EB\u30C0\u914D\u4E0B\u306E\u3059\u3079\u3066\u306E\u500B\u4EBA\u30D5\u30A1\u30A4\u30EB\uFF08SSH\u9375\u3001\u8A8D\u8A3C\u60C5\u5831\u3001\u30D6\u30E9\u30A6\u30B6\u30D7\u30ED\u30D5\u30A1\u30A4\u30EB\u306A\u3069\uFF09\u306B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u308B\u3088\u3046\u306B\u306A\u308A\u307E\u3059\u3002","trust.dangerous.body_root":"\u30E2\u30C7\u30EB\u304C\u30D5\u30A1\u30A4\u30EB\u30B7\u30B9\u30C6\u30E0\u5168\u4F53\uFF08\u30B7\u30B9\u30C6\u30E0\u30D5\u30A1\u30A4\u30EB\u3001\u5168\u30E6\u30FC\u30B6\u30FC\u30C7\u30FC\u30BF\u3001\u8A8D\u8A3C\u60C5\u5831\u3001\u3053\u306E\u30DE\u30B7\u30F3\u4E0A\u306E\u3059\u3079\u3066\uFF09\u306B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u308B\u3088\u3046\u306B\u306A\u308A\u307E\u3059\u3002","trust.dangerous.advice_home":"\u660E\u78BA\u306A\u7406\u7531\u304C\u306A\u3044\u9650\u308A\u3001\u30DB\u30FC\u30E0\u30C7\u30A3\u30EC\u30AF\u30C8\u30EA\u5168\u4F53\u3092\u4FE1\u983C\u3057\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002","trust.dangerous.advice_root":"\u660E\u78BA\u306A\u7406\u7531\u304C\u306A\u3044\u9650\u308A\u3001\u30D5\u30A1\u30A4\u30EB\u30B7\u30B9\u30C6\u30E0\u306E\u30EB\u30FC\u30C8\u3092\u4FE1\u983C\u3057\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002","trust.dangerous.option.yes":"\u30EA\u30B9\u30AF\u3092\u7406\u89E3\u3057\u305F\u4E0A\u3067\u3001\u4ECA\u56DE\u306E\u307F\u4FE1\u983C\u3059\u308B","trust.dangerous.option.no":"\u7D42\u4E86\uFF08\u63A8\u5968\uFF09"};
3
- export{f as ud};
3
+ export{f as vd};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Cd as y}from"./chunk-jz3aav8a.js";import{Pd as L}from"./chunk-9xvctnjr.js";import{Wg as N,sh as w}from"./chunk-va4davgy.js";import"./chunk-hg563h5r.js";import"./chunk-j1a64ade.js";import"./chunk-bd21p9zz.js";import"./chunk-p54bzjtv.js";import"./chunk-ha1w0xzh.js";import"./chunk-ecwz9nhs.js";import"./chunk-5rkmhzq0.js";import{Vk as q,cl as v}from"./chunk-7mhffm9f.js";import"./chunk-r012q335.js";import{Dl as k,Nl as O,vl as V,wl as A,xl as E}from"./chunk-0z3z0gk1.js";import"./chunk-g7vkkmsk.js";import"./chunk-m8djypsy.js";import"./chunk-w7p2x973.js";import"./chunk-wmw2gne9.js";import"./chunk-y3n31nnx.js";import"./chunk-3z1y040p.js";import"./chunk-kkvb2c2z.js";import"./chunk-3tdqsm5c.js";import"./chunk-a5zjrwqy.js";import"./chunk-fhng5her.js";import"./chunk-dkv2mg97.js";import"./chunk-bf146hz2.js";import"./chunk-t488d66k.js";import"./chunk-cqtkxwd8.js";import"./chunk-srf73nm4.js";import"./chunk-yzdty5t9.js";import"./chunk-1p34bx7c.js";import"./chunk-q3x4x2tq.js";import"./chunk-7dckfame.js";import"./chunk-j1veq3zr.js";import"./chunk-0pvbk8ks.js";import"./chunk-tk3bve0x.js";import"./chunk-0w4v0fbs.js";import"./chunk-wf09j72q.js";import"./chunk-hbnr0j7h.js";import"./chunk-ep8zn49w.js";import"./chunk-f3kjp838.js";import"./chunk-tsn1jkr7.js";import"./chunk-zk8n8hnh.js";import{Tt as P}from"./chunk-1jh5p5qw.js";import"./chunk-kaeyhw2n.js";import"./chunk-f89gntcy.js";import"./chunk-bky5a42k.js";import"./chunk-r7xp0xcn.js";import"./chunk-6g3m7yxf.js";import"./chunk-v2kyarwz.js";import"./chunk-dkm7x8rj.js";import"./chunk-9pe4agdz.js";import"./chunk-kc3hpmr2.js";import"./chunk-hh4c02fh.js";import{EOL as X}from"os";function U(C){let G=C.match(/^https?:\/\/[^/]+\/share\/([a-zA-Z0-9_-]+)$/);return G?G[1]:null}function M(C,G){try{return new URL(C).origin===new URL(G).origin}catch{return!1}}function S(C){let G=C.find((z)=>z.type==="session");if(!G)return null;let Z=new Map,Q=new Map;for(let z of C)if(z.type==="message")Z.set(z.data.id,z.data);else if(z.type==="part"){if(!Q.has(z.data.messageID))Q.set(z.data.messageID,[]);Q.get(z.data.messageID).push(z.data)}if(Z.size===0)return null;return{info:G.data,messages:Array.from(Z.values()).map((z)=>({info:z,parts:Q.get(z.id)??[]}))}}var m=L({command:"import <file>",describe:"import session data from JSON file or URL",builder:(C)=>{return C.positional("file",{describe:"path to JSON file or share URL",type:"string",demandOption:!0})},handler:async(C)=>{await y(process.cwd(),async()=>{let G;if(C.file.startsWith("http://")||C.file.startsWith("https://")){let J=U(C.file);if(!J){let Y=await w.runPromise(N.Service.use((R)=>R.url()));process.stdout.write(`Invalid URL format. Expected: ${Y}/share/<slug>`),process.stdout.write(X);return}let _=new URL(C.file).origin,$=await w.runPromise(N.Service.use((Y)=>Y.request())),j=M(C.file,$.baseUrl)?$.headers:{},W=$.api.data(J),K=await fetch(`${_}${W}`,{headers:j});if(!K.ok&&W!==`/api/share/${J}/data`)K=await fetch(`${_}/api/share/${J}/data`,{headers:j});if(!K.ok){process.stdout.write(`Failed to fetch share data: ${K.statusText}`),process.stdout.write(X);return}let H=await K.json(),B=S(H);if(!B){process.stdout.write(`Share not found or empty: ${J}`),process.stdout.write(X);return}G=B}else if(G=await P.readJson(C.file).catch(()=>{return}),!G){process.stdout.write(`File not found: ${C.file}`),process.stdout.write(X);return}if(!G){process.stdout.write("Failed to read session data"),process.stdout.write(X);return}let Q=v.Info.parse({...G.info,projectID:O.project.id}),z=v.toRow(Q);k.use((J)=>J.insert(V).values(z).onConflictDoUpdate({target:V.id,set:{project_id:z.project_id}}).run());for(let J of G.messages){let F=q.Info.parse(J.info),{id:_,sessionID:$,...j}=F;k.use((W)=>W.insert(A).values({id:_,session_id:z.id,time_created:F.time?.created??Date.now(),data:j}).onConflictDoNothing().run());for(let W of J.parts){let K=q.Part.parse(W),{id:H,sessionID:B,messageID:Y,...R}=K;k.use((T)=>T.insert(E).values({id:H,message_id:Y,session_id:z.id,data:R}).onConflictDoNothing().run())}}process.stdout.write(`Imported session: ${G.info.id}`),process.stdout.write(X)})}});export{S as transformShareData,M as shouldAttachShareAuthHeaders,U as parseShareUrl,m as ImportCommand};
2
+ import{Dd as y}from"./chunk-3kdhvq0p.js";import{Qd as L}from"./chunk-g4qwkcdv.js";import{Yg as N,uh as w}from"./chunk-kbjwdv1x.js";import"./chunk-ek1fawsj.js";import"./chunk-3w64fpwn.js";import"./chunk-pfn1db1m.js";import"./chunk-h56jxxvj.js";import"./chunk-x36jhtex.js";import"./chunk-fk8cctjy.js";import"./chunk-fxb6vjcb.js";import{Wk as q,dl as v}from"./chunk-njzpswgt.js";import"./chunk-2cm91ktc.js";import{El as k,Ol as O,wl as V,xl as A,yl as E}from"./chunk-ygwe0vf1.js";import"./chunk-1qbm1k9y.js";import"./chunk-3rgct4bd.js";import"./chunk-atbm0pnt.js";import"./chunk-s86fj82v.js";import"./chunk-58gp7wbg.js";import"./chunk-w4hbw37v.js";import"./chunk-qmhcbdkg.js";import"./chunk-7qxn24qa.js";import"./chunk-vx837ete.js";import"./chunk-ppvmy940.js";import"./chunk-1n4w8dya.js";import"./chunk-7ryv0f5h.js";import"./chunk-p31yg62z.js";import"./chunk-5mec6cde.js";import"./chunk-cqtkxwd8.js";import"./chunk-0mekr486.js";import"./chunk-x3931we7.js";import"./chunk-w01gjnty.js";import"./chunk-nxjbbq5h.js";import"./chunk-z559gc3n.js";import"./chunk-kbyk7hyn.js";import"./chunk-6h2faxs9.js";import"./chunk-4nck07pc.js";import"./chunk-d2n09yvh.js";import"./chunk-f3c9667r.js";import"./chunk-qpv4438m.js";import"./chunk-hybq019j.js";import"./chunk-z2q3mg73.js";import"./chunk-n07rsssz.js";import"./chunk-08y06vgt.js";import{tu as P}from"./chunk-9p83me3p.js";import"./chunk-9wm41z2f.js";import"./chunk-48j09m6e.js";import"./chunk-se195e52.js";import"./chunk-vw673y0t.js";import"./chunk-tedrfa7d.js";import"./chunk-ynfbz3sz.js";import"./chunk-rs0nx844.js";import"./chunk-qkwhgfjt.js";import"./chunk-s2za1y84.js";import{EOL as X}from"os";function U(C){let G=C.match(/^https?:\/\/[^/]+\/share\/([a-zA-Z0-9_-]+)$/);return G?G[1]:null}function M(C,G){try{return new URL(C).origin===new URL(G).origin}catch{return!1}}function S(C){let G=C.find((z)=>z.type==="session");if(!G)return null;let Z=new Map,Q=new Map;for(let z of C)if(z.type==="message")Z.set(z.data.id,z.data);else if(z.type==="part"){if(!Q.has(z.data.messageID))Q.set(z.data.messageID,[]);Q.get(z.data.messageID).push(z.data)}if(Z.size===0)return null;return{info:G.data,messages:Array.from(Z.values()).map((z)=>({info:z,parts:Q.get(z.id)??[]}))}}var m=L({command:"import <file>",describe:"import session data from JSON file or URL",builder:(C)=>{return C.positional("file",{describe:"path to JSON file or share URL",type:"string",demandOption:!0})},handler:async(C)=>{await y(process.cwd(),async()=>{let G;if(C.file.startsWith("http://")||C.file.startsWith("https://")){let J=U(C.file);if(!J){let Y=await w.runPromise(N.Service.use((R)=>R.url()));process.stdout.write(`Invalid URL format. Expected: ${Y}/share/<slug>`),process.stdout.write(X);return}let _=new URL(C.file).origin,$=await w.runPromise(N.Service.use((Y)=>Y.request())),j=M(C.file,$.baseUrl)?$.headers:{},W=$.api.data(J),K=await fetch(`${_}${W}`,{headers:j});if(!K.ok&&W!==`/api/share/${J}/data`)K=await fetch(`${_}/api/share/${J}/data`,{headers:j});if(!K.ok){process.stdout.write(`Failed to fetch share data: ${K.statusText}`),process.stdout.write(X);return}let H=await K.json(),B=S(H);if(!B){process.stdout.write(`Share not found or empty: ${J}`),process.stdout.write(X);return}G=B}else if(G=await P.readJson(C.file).catch(()=>{return}),!G){process.stdout.write(`File not found: ${C.file}`),process.stdout.write(X);return}if(!G){process.stdout.write("Failed to read session data"),process.stdout.write(X);return}let Q=v.Info.parse({...G.info,projectID:O.project.id}),z=v.toRow(Q);k.use((J)=>J.insert(V).values(z).onConflictDoUpdate({target:V.id,set:{project_id:z.project_id}}).run());for(let J of G.messages){let F=q.Info.parse(J.info),{id:_,sessionID:$,...j}=F;k.use((W)=>W.insert(A).values({id:_,session_id:z.id,time_created:F.time?.created??Date.now(),data:j}).onConflictDoNothing().run());for(let W of J.parts){let K=q.Part.parse(W),{id:H,sessionID:B,messageID:Y,...R}=K;k.use((T)=>T.insert(E).values({id:H,message_id:Y,session_id:z.id,data:R}).onConflictDoNothing().run())}}process.stdout.write(`Imported session: ${G.info.id}`),process.stdout.write(X)})}});export{S as transformShareData,M as shouldAttachShareAuthHeaders,U as parseShareUrl,m as ImportCommand};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Vf as a,Wf as b}from"./chunk-hb4d06q0.js";import"./chunk-08y06vgt.js";import"./chunk-9p83me3p.js";import"./chunk-9wm41z2f.js";import"./chunk-48j09m6e.js";import"./chunk-se195e52.js";import"./chunk-vw673y0t.js";import"./chunk-tedrfa7d.js";import"./chunk-ynfbz3sz.js";import"./chunk-s2za1y84.js";export{a as start,b as Heap};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Be as u,Ce as f,De as _}from"./chunk-qw2hgs5b.js";import{Ee as z,Ge as C,Ke as U,Le as I,Ne as v,Qe as b,Ze as R,_e as T,bf as S,df as h,ff as k}from"./chunk-1fnmkm0z.js";import"./chunk-t488d66k.js";import"./chunk-cqtkxwd8.js";import"./chunk-srf73nm4.js";import{Pu as V}from"./chunk-r7xp0xcn.js";import"./chunk-6g3m7yxf.js";import"./chunk-hh4c02fh.js";var m=class{constructor(j,G){this.modelId=j,this.config=G,this.specificationVersion="v3",this.maxImagesPerCall=1}get provider(){return this.config.provider}async doGenerate({prompt:j,n:G,size:P,aspectRatio:W,seed:N,providerOptions:K,headers:Y,abortSignal:X,files:Q,mask:q}){var F,Z,J,A,D;let $=[],B=(J=(Z=(F=this.config._internal)==null?void 0:F.currentDate)==null?void 0:Z.call(F))!=null?J:new Date;if(Q!=null&&Q.length>0){let{value:y,responseHeaders:c}=await T({url:this.getEditUrl(),headers:z(this.config.headers(),Y),formData:U({model:this.modelId,prompt:j,image:await Promise.all(Q.map((H)=>w(H))),mask:q!=null?await w(q):void 0,n:G,size:P,...(A=K.deepinfra)!=null?A:{}},{useArrayBrackets:!1}),failedResponseHandler:S({errorSchema:t,errorToMessage:(H)=>{var x,M;return(M=(x=H.error)==null?void 0:x.message)!=null?M:"Unknown error"}}),successfulResponseHandler:h(d),abortSignal:X,fetch:this.config.fetch});return{images:y.data.map((H)=>H.b64_json),warnings:$,response:{timestamp:B,modelId:this.modelId,headers:c}}}let E=P==null?void 0:P.split("x"),{value:L,responseHeaders:O}=await R({url:`${this.config.baseURL}/${this.modelId}`,headers:z(this.config.headers(),Y),body:{prompt:j,num_images:G,...W&&{aspect_ratio:W},...E&&{width:E[0],height:E[1]},...N!=null&&{seed:N},...(D=K.deepinfra)!=null?D:{}},failedResponseHandler:S({errorSchema:g,errorToMessage:(y)=>y.detail.error}),successfulResponseHandler:h(p),abortSignal:X,fetch:this.config.fetch});return{images:L.images.map((y)=>y.replace(/^data:image\/\w+;base64,/,"")),warnings:$,response:{timestamp:B,modelId:this.modelId,headers:O}}}getEditUrl(){return`${this.config.baseURL.replace("/inference","/openai")}/images/edits`}},g=V.object({detail:V.object({error:V.string()})}),p=V.object({images:V.array(V.string())}),t=V.object({error:V.object({message:V.string()}).optional()}),d=V.object({data:V.array(V.object({b64_json:V.string()}))});async function w(j){if(j.type==="url")return I(j.url);let G=j.data instanceof Uint8Array?j.data:C(j.data);return new Blob([G],{type:j.mediaType})}var l=class extends u{constructor(j,G){super(j,G)}fixUsageForGeminiModels(j){var G,P;if(!j||!((G=j.completion_tokens_details)==null?void 0:G.reasoning_tokens))return j;let W=(P=j.completion_tokens)!=null?P:0,N=j.completion_tokens_details.reasoning_tokens;if(N>W){let K=W+N;return{...j,completion_tokens:K,total_tokens:j.total_tokens!=null?j.total_tokens+N:void 0}}return j}async doGenerate(j){var G,P,W,N,K,Y,X;let Q=await super.doGenerate(j);if((G=Q.usage)==null?void 0:G.raw){let q=this.fixUsageForGeminiModels(Q.usage.raw);if(q!==Q.usage.raw){let F=(P=q.prompt_tokens)!=null?P:0,Z=(W=q.completion_tokens)!=null?W:0,J=(K=(N=q.prompt_tokens_details)==null?void 0:N.cached_tokens)!=null?K:0,A=(X=(Y=q.completion_tokens_details)==null?void 0:Y.reasoning_tokens)!=null?X:0;return{...Q,usage:{inputTokens:{total:F,noCache:F-J,cacheRead:J,cacheWrite:void 0},outputTokens:{total:Z,text:Z-A,reasoning:A},raw:q}}}}return Q}async doStream(j){let G=await super.doStream(j),P=G.stream,W=this.fixUsageForGeminiModels.bind(this),N=new ReadableStream({async start(K){var Y,X,Q,q,F,Z,J;let A=P.getReader();try{while(!0){let{done:D,value:$}=await A.read();if(D)break;if($.type==="finish"&&((Y=$.usage)==null?void 0:Y.raw)){let B=W($.usage.raw);if(B!==$.usage.raw){let E=(X=B.prompt_tokens)!=null?X:0,L=(Q=B.completion_tokens)!=null?Q:0,O=(F=(q=B.prompt_tokens_details)==null?void 0:q.cached_tokens)!=null?F:0,y=(J=(Z=B.completion_tokens_details)==null?void 0:Z.reasoning_tokens)!=null?J:0;K.enqueue({...$,usage:{inputTokens:{total:E,noCache:E-O,cacheRead:O,cacheWrite:void 0},outputTokens:{total:L,text:L-y,reasoning:y},raw:B}})}else K.enqueue($)}else K.enqueue($)}K.close()}catch(D){K.error(D)}}});return{...G,stream:N}}},n="2.0.41";function i(j={}){var G;let P=k((G=j.baseURL)!=null?G:"https://api.deepinfra.com/v1"),W=()=>v({Authorization:`Bearer ${b({apiKey:j.apiKey,environmentVariableName:"DEEPINFRA_API_KEY",description:"DeepInfra's API key"})}`,...j.headers},`ai-sdk/deepinfra/${n}`),N=(F)=>({provider:`deepinfra.${F}`,url:({path:Z})=>`${P}/openai${Z}`,headers:W,fetch:j.fetch}),K=(F)=>{return new l(F,N("chat"))},Y=(F)=>new f(F,N("completion")),X=(F)=>new _(F,N("embedding")),Q=(F)=>new m(F,{...N("image"),baseURL:P?`${P}/inference`:"https://api.deepinfra.com/v1/inference"}),q=(F)=>K(F);return q.specificationVersion="v3",q.completionModel=Y,q.chatModel=K,q.image=Q,q.imageModel=Q,q.languageModel=K,q.embeddingModel=X,q.textEmbeddingModel=X,q}var jj=i();export{jj as deepinfra,i as createDeepInfra,n as VERSION};
2
+ import{Ce as u,De as f,Ee as _}from"./chunk-xdv9xt0y.js";import{$e as T,Fe as z,He as C,Le as U,Me as I,Oe as v,Re as b,_e as R,cf as S,ef as h,gf as k}from"./chunk-pjbbdm96.js";import"./chunk-5mec6cde.js";import"./chunk-cqtkxwd8.js";import"./chunk-0mekr486.js";import{Tu as V}from"./chunk-se195e52.js";import"./chunk-vw673y0t.js";import"./chunk-s2za1y84.js";var m=class{constructor(j,G){this.modelId=j,this.config=G,this.specificationVersion="v3",this.maxImagesPerCall=1}get provider(){return this.config.provider}async doGenerate({prompt:j,n:G,size:P,aspectRatio:W,seed:N,providerOptions:K,headers:Y,abortSignal:X,files:Q,mask:q}){var F,Z,J,A,D;let $=[],B=(J=(Z=(F=this.config._internal)==null?void 0:F.currentDate)==null?void 0:Z.call(F))!=null?J:new Date;if(Q!=null&&Q.length>0){let{value:y,responseHeaders:c}=await T({url:this.getEditUrl(),headers:z(this.config.headers(),Y),formData:U({model:this.modelId,prompt:j,image:await Promise.all(Q.map((H)=>w(H))),mask:q!=null?await w(q):void 0,n:G,size:P,...(A=K.deepinfra)!=null?A:{}},{useArrayBrackets:!1}),failedResponseHandler:S({errorSchema:t,errorToMessage:(H)=>{var x,M;return(M=(x=H.error)==null?void 0:x.message)!=null?M:"Unknown error"}}),successfulResponseHandler:h(d),abortSignal:X,fetch:this.config.fetch});return{images:y.data.map((H)=>H.b64_json),warnings:$,response:{timestamp:B,modelId:this.modelId,headers:c}}}let E=P==null?void 0:P.split("x"),{value:L,responseHeaders:O}=await R({url:`${this.config.baseURL}/${this.modelId}`,headers:z(this.config.headers(),Y),body:{prompt:j,num_images:G,...W&&{aspect_ratio:W},...E&&{width:E[0],height:E[1]},...N!=null&&{seed:N},...(D=K.deepinfra)!=null?D:{}},failedResponseHandler:S({errorSchema:g,errorToMessage:(y)=>y.detail.error}),successfulResponseHandler:h(p),abortSignal:X,fetch:this.config.fetch});return{images:L.images.map((y)=>y.replace(/^data:image\/\w+;base64,/,"")),warnings:$,response:{timestamp:B,modelId:this.modelId,headers:O}}}getEditUrl(){return`${this.config.baseURL.replace("/inference","/openai")}/images/edits`}},g=V.object({detail:V.object({error:V.string()})}),p=V.object({images:V.array(V.string())}),t=V.object({error:V.object({message:V.string()}).optional()}),d=V.object({data:V.array(V.object({b64_json:V.string()}))});async function w(j){if(j.type==="url")return I(j.url);let G=j.data instanceof Uint8Array?j.data:C(j.data);return new Blob([G],{type:j.mediaType})}var l=class extends u{constructor(j,G){super(j,G)}fixUsageForGeminiModels(j){var G,P;if(!j||!((G=j.completion_tokens_details)==null?void 0:G.reasoning_tokens))return j;let W=(P=j.completion_tokens)!=null?P:0,N=j.completion_tokens_details.reasoning_tokens;if(N>W){let K=W+N;return{...j,completion_tokens:K,total_tokens:j.total_tokens!=null?j.total_tokens+N:void 0}}return j}async doGenerate(j){var G,P,W,N,K,Y,X;let Q=await super.doGenerate(j);if((G=Q.usage)==null?void 0:G.raw){let q=this.fixUsageForGeminiModels(Q.usage.raw);if(q!==Q.usage.raw){let F=(P=q.prompt_tokens)!=null?P:0,Z=(W=q.completion_tokens)!=null?W:0,J=(K=(N=q.prompt_tokens_details)==null?void 0:N.cached_tokens)!=null?K:0,A=(X=(Y=q.completion_tokens_details)==null?void 0:Y.reasoning_tokens)!=null?X:0;return{...Q,usage:{inputTokens:{total:F,noCache:F-J,cacheRead:J,cacheWrite:void 0},outputTokens:{total:Z,text:Z-A,reasoning:A},raw:q}}}}return Q}async doStream(j){let G=await super.doStream(j),P=G.stream,W=this.fixUsageForGeminiModels.bind(this),N=new ReadableStream({async start(K){var Y,X,Q,q,F,Z,J;let A=P.getReader();try{while(!0){let{done:D,value:$}=await A.read();if(D)break;if($.type==="finish"&&((Y=$.usage)==null?void 0:Y.raw)){let B=W($.usage.raw);if(B!==$.usage.raw){let E=(X=B.prompt_tokens)!=null?X:0,L=(Q=B.completion_tokens)!=null?Q:0,O=(F=(q=B.prompt_tokens_details)==null?void 0:q.cached_tokens)!=null?F:0,y=(J=(Z=B.completion_tokens_details)==null?void 0:Z.reasoning_tokens)!=null?J:0;K.enqueue({...$,usage:{inputTokens:{total:E,noCache:E-O,cacheRead:O,cacheWrite:void 0},outputTokens:{total:L,text:L-y,reasoning:y},raw:B}})}else K.enqueue($)}else K.enqueue($)}K.close()}catch(D){K.error(D)}}});return{...G,stream:N}}},n="2.0.41";function i(j={}){var G;let P=k((G=j.baseURL)!=null?G:"https://api.deepinfra.com/v1"),W=()=>v({Authorization:`Bearer ${b({apiKey:j.apiKey,environmentVariableName:"DEEPINFRA_API_KEY",description:"DeepInfra's API key"})}`,...j.headers},`ai-sdk/deepinfra/${n}`),N=(F)=>({provider:`deepinfra.${F}`,url:({path:Z})=>`${P}/openai${Z}`,headers:W,fetch:j.fetch}),K=(F)=>{return new l(F,N("chat"))},Y=(F)=>new f(F,N("completion")),X=(F)=>new _(F,N("embedding")),Q=(F)=>new m(F,{...N("image"),baseURL:P?`${P}/inference`:"https://api.deepinfra.com/v1/inference"}),q=(F)=>K(F);return q.specificationVersion="v3",q.completionModel=Y,q.chatModel=K,q.image=Q,q.imageModel=Q,q.languageModel=K,q.embeddingModel=X,q.textEmbeddingModel=X,q}var jj=i();export{jj as deepinfra,i as createDeepInfra,n as VERSION};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{th as r}from"./chunk-hg563h5r.js";import{Mj as e}from"./chunk-7mhffm9f.js";import{Zl as t}from"./chunk-g7vkkmsk.js";import{kp as l}from"./chunk-3z1y040p.js";import{Vt as a}from"./chunk-f89gntcy.js";import{ON as o}from"./chunk-dkm7x8rj.js";var S={PromptAppend:t.define("tui.prompt.append",a.object({text:a.string()})),CommandExecute:t.define("tui.command.execute",a.object({command:a.union([a.enum(["session.list","session.new","session.share","session.interrupt","session.compact","session.page.up","session.page.down","session.line.up","session.line.down","session.half.page.up","session.half.page.down","session.first","session.last","prompt.clear","prompt.submit","agent.cycle"]),a.string()])})),ToastShow:t.define("tui.toast.show",a.object({title:a.string().optional(),message:a.string(),variant:a.enum(["info","success","warning","error"]),duration:a.number().default(5000).optional().describe("Duration in milliseconds")})),SessionSelect:t.define("tui.session.select",a.object({sessionID:e.zod.describe("Session ID to navigate to")})),InstructionsLoaded:r};class m extends o.Class("ConsoleState")({consoleManagedProviders:o.mutable(o.Array(o.String)),activeOrgName:o.optional(o.String),switchableOrgCount:o.Number}){static zod=l(this)}var f=m.make({consoleManagedProviders:[],activeOrgName:void 0,switchableOrgCount:0});
3
- export{S as ng,m as og,f as pg};
2
+ import{vh as r}from"./chunk-ek1fawsj.js";import{Nj as e}from"./chunk-njzpswgt.js";import{_l as t}from"./chunk-1qbm1k9y.js";import{Cp as l}from"./chunk-7qxn24qa.js";import{vu as a}from"./chunk-48j09m6e.js";import{SN as o}from"./chunk-ynfbz3sz.js";var S={PromptAppend:t.define("tui.prompt.append",a.object({text:a.string()})),CommandExecute:t.define("tui.command.execute",a.object({command:a.union([a.enum(["session.list","session.new","session.share","session.interrupt","session.compact","session.page.up","session.page.down","session.line.up","session.line.down","session.half.page.up","session.half.page.down","session.first","session.last","prompt.clear","prompt.submit","agent.cycle"]),a.string()])})),ToastShow:t.define("tui.toast.show",a.object({title:a.string().optional(),message:a.string(),variant:a.enum(["info","success","warning","error"]),duration:a.number().default(5000).optional().describe("Duration in milliseconds")})),SessionSelect:t.define("tui.session.select",a.object({sessionID:e.zod.describe("Session ID to navigate to")})),InstructionsLoaded:r};class m extends o.Class("ConsoleState")({consoleManagedProviders:o.mutable(o.Array(o.String)),activeOrgName:o.optional(o.String),switchableOrgCount:o.Number}){static zod=l(this)}var f=m.make({consoleManagedProviders:[],activeOrgName:void 0,switchableOrgCount:0});
3
+ export{S as og,m as pg,f as qg};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Yg as D,eh as E,sh as x}from"./chunk-va4davgy.js";import{Nl as w}from"./chunk-0z3z0gk1.js";import{zt as z}from"./chunk-zk8n8hnh.js";var H=z.create({service:"cli.bootstrap"});async function P(F,G){return w.provide({directory:F,init:()=>x.runPromise(D),fn:async()=>{try{return await G()}finally{await x.runPromise(E.Service.use((q)=>q.drainWriters())).catch((q)=>H.warn("checkpoint drain failed",{error:String(q)})),await w.dispose()}}})}
3
- export{P as Cd};
2
+ import{_g as D,gh as E,uh as x}from"./chunk-kbjwdv1x.js";import{Ol as w}from"./chunk-ygwe0vf1.js";import{$t as z}from"./chunk-08y06vgt.js";var H=z.create({service:"cli.bootstrap"});async function P(F,G){return w.provide({directory:F,init:()=>x.runPromise(D),fn:async()=>{try{return await G()}finally{await x.runPromise(E.Service.use((q)=>q.drainWriters())).catch((q)=>H.warn("checkpoint drain failed",{error:String(q)})),await w.dispose()}}})}
3
+ export{P as Dd};
@@ -8,4 +8,4 @@ Hint: you can specify "alias" on both sides of the relation with the same value`
8
8
  created_at numeric,
9
9
  name text,
10
10
  applied_at TEXT
11
- )`;Y.run(z)}let H=Y.all(W`SELECT id, hash, created_at, name FROM ${W.identifier($)}`);if(typeof Z==="object"&&Z.init){if(H.length)return{exitCode:"databaseMigrations"};if(X.length>1)return{exitCode:"localMigrations"};let[z]=X;if(!z)return;Y.run(W`insert into ${W.identifier($)} ("hash", "created_at", "name", "applied_at") values(${z.hash}, ${z.folderMillis}, ${z.name}, ${new Date().toISOString()})`);return}let _=nZ({localMigrations:X,dbMigrations:H});Y.run(W`BEGIN`);try{for(let z of _){for(let O of z.sql)Y.run(W.raw(O));Y.run(W`INSERT INTO ${W.identifier($)} ("hash", "created_at", "name", "applied_at") values(${z.hash}, ${z.folderMillis}, ${z.name}, ${new Date().toISOString()})`)}Y.run(W`COMMIT`)}catch(z){throw Y.run(W`ROLLBACK`),z}}};var ZX=class{static[J]="SQLiteQueryBuilder";dialect;dialectConfig;constructor(X){this.dialect=D(X,KX)?X:void 0,this.dialectConfig=D(X,KX)?void 0:X}$with=(X,Y)=>{let Z=this;return{as:(G)=>{if(typeof G==="function")G=G(Z);return new Proxy(new JX(G.getSQL(),Y??("getSelectedFields"in G?G.getSelectedFields()??{}:{}),X,!0),new m({alias:X,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}}};with(...X){let Y=this;function Z(G){return new Y1({fields:G??void 0,session:void 0,dialect:Y.getDialect(),withList:X})}function $(G){return new Y1({fields:G??void 0,session:void 0,dialect:Y.getDialect(),withList:X,distinct:!0})}return{select:Z,selectDistinct:$}}select(X){return new Y1({fields:X??void 0,session:void 0,dialect:this.getDialect()})}selectDistinct(X){return new Y1({fields:X??void 0,session:void 0,dialect:this.getDialect(),distinct:!0})}getDialect(){if(!this.dialect)this.dialect=new kX(this.dialectConfig);return this.dialect}};var NX=class{static[J]="SQLiteInsertBuilder";constructor(X,Y,Z,$){this.table=X,this.session=Y,this.dialect=Z,this.withList=$}values(X){if(X=Array.isArray(X)?X:[X],X.length===0)throw Error("values() must be called with at least one value");let Y=X.map((Z)=>{let $={},G=this.table[A.Symbol.Columns];for(let H of Object.keys(Z)){let _=Z[H];$[H]=D(_,x)?_:new c(_,G[H])}return $});return new iX(this.table,Y,this.session,this.dialect,this.withList)}select(X){let Y=typeof X==="function"?X(new ZX):X;if(!D(Y,x)&&!v1(this.table[t],Y._.selectedFields))throw Error("Insert select error: selected fields are not the same or are in a different order compared to the table definition");return new iX(this.table,Y,this.session,this.dialect,this.withList,!0)}},iX=class extends r{static[J]="SQLiteInsert";config;constructor(X,Y,Z,$,G,H){super();this.session=Z,this.dialect=$,this.config={table:X,values:Y,withList:G,select:H}}returning(X=this.config.table[f.Symbol.Columns]){return this.config.returning=i(X),this}onConflictDoNothing(X={}){if(!this.config.onConflict)this.config.onConflict=[];if(X.target===void 0)this.config.onConflict.push(W` on conflict do nothing`);else{let Y=Array.isArray(X.target)?W`${X.target}`:W`${[X.target]}`,Z=X.where?W` where ${X.where}`:W``;this.config.onConflict.push(W` on conflict ${Y} do nothing${Z}`)}return this}onConflictDoUpdate(X){if(X.where&&(X.targetWhere||X.setWhere))throw Error('You cannot use both "where" and "targetWhere"/"setWhere" at the same time - "where" is deprecated, use "targetWhere" or "setWhere" instead.');if(!this.config.onConflict)this.config.onConflict=[];let Y=X.where?W` where ${X.where}`:void 0,Z=X.targetWhere?W` where ${X.targetWhere}`:void 0,$=X.setWhere?W` where ${X.setWhere}`:void 0,G=Array.isArray(X.target)?W`${X.target}`:W`${[X.target]}`,H=this.dialect.buildUpdateSet(this.config.table,HX(this.config.table,X.set));return this.config.onConflict.push(W` on conflict ${G}${Z} do update set ${H}${Y}${$}`),this}getSQL(){return this.dialect.buildInsertQuery(this.config)}toSQL(){let{typings:X,...Y}=this.dialect.sqlToQuery(this.getSQL());return Y}_prepare(X=!0){return this.session[X?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),this.config.returning,this.config.returning?"all":"run",!0,void 0,{type:"insert",tables:X1(this.config.table)})}prepare(){return this._prepare(!1)}run=(X)=>{return this._prepare().run(X)};all=(X)=>{return this._prepare().all(X)};get=(X)=>{return this._prepare().get(X)};values=(X)=>{return this._prepare().values(X)};async execute(){return this.config.returning?this.all():this.run()}$dynamic(){return this}};var RX=class{static[J]="SQLiteUpdateBuilder";constructor(X,Y,Z,$){this.table=X,this.session=Y,this.dialect=Z,this.withList=$}set(X){return new eZ(this.table,HX(this.table,X),this.session,this.dialect,this.withList)}},eZ=class extends r{static[J]="SQLiteUpdate";config;constructor(X,Y,Z,$,G){super();this.session=Z,this.dialect=$,this.config={set:Y,table:X,withList:G,joins:[]}}from(X){return this.config.from=X,this}createJoin(X){return(Y,Z)=>{let $=h1(Y);if(typeof $==="string"&&this.config.joins.some((G)=>G.alias===$))throw Error(`Alias "${$}" is already used in this query`);if(typeof Z==="function"){let G=this.config.from?D(Y,f)?Y[A.Symbol.Columns]:D(Y,q)?Y._.selectedFields:D(Y,B1)?Y[w].selectedFields:void 0:void 0;Z=Z(new Proxy(this.config.table[A.Symbol.Columns],new m({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})),G&&new Proxy(G,new m({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))}return this.config.joins.push({on:Z,table:Y,joinType:X,alias:$}),this}}leftJoin=this.createJoin("left");rightJoin=this.createJoin("right");innerJoin=this.createJoin("inner");fullJoin=this.createJoin("full");where(X){return this.config.where=X,this}orderBy(...X){if(typeof X[0]==="function"){let Y=X[0](new Proxy(this.config.table[A.Symbol.Columns],new m({sqlAliasedBehavior:"alias",sqlBehavior:"sql"}))),Z=Array.isArray(Y)?Y:[Y];this.config.orderBy=Z}else{let Y=X;this.config.orderBy=Y}return this}limit(X){return this.config.limit=X,this}returning(X=this.config.table[f.Symbol.Columns]){return this.config.returning=i(X),this}getSQL(){return this.dialect.buildUpdateQuery(this.config)}toSQL(){let{typings:X,...Y}=this.dialect.sqlToQuery(this.getSQL());return Y}_prepare(X=!0){return this.session[X?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),this.config.returning,this.config.returning?"all":"run",!0,void 0,{type:"insert",tables:X1(this.config.table)})}prepare(){return this._prepare(!1)}run=(X)=>{return this._prepare().run(X)};all=(X)=>{return this._prepare().all(X)};get=(X)=>{return this._prepare().get(X)};values=(X)=>{return this._prepare().values(X)};async execute(){return this.config.returning?this.all():this.run()}$dynamic(){return this}};var wX=class{static[J]="BaseSQLiteDatabase";_query;query;constructor(X,Y,Z,$,G,H,_){this.resultKind=X,this.dialect=Y,this.session=Z,this.rowModeRQB=H,this.forbidJsonb=_,this._=G?{schema:G.schema,fullSchema:G.fullSchema,tableNamesMap:G.tableNamesMap,relations:$}:{schema:void 0,fullSchema:{},tableNamesMap:{},relations:$},this._query={};let z=this._query;if(this._.schema)for(let[O,E]of Object.entries(this._.schema))z[O]=new TZ(X,G.fullSchema,this._.schema,this._.tableNamesMap,G.fullSchema[O],E,Y,Z);this.query={};for(let[O,E]of Object.entries($))this.query[O]=new mZ(X,$,$[E.name].table,E,Y,Z,H,_);this.$cache={invalidate:async(O)=>{}}}$with=(X,Y)=>{let Z=this;return{as:(G)=>{if(typeof G==="function")G=G(new ZX(Z.dialect));return new Proxy(new JX(G.getSQL(),Y??("getSelectedFields"in G?G.getSelectedFields()??{}:{}),X,!0),new m({alias:X,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}}};$count(X,Y){return new SZ({source:X,filters:Y,session:this.session})}with(...X){let Y=this;function Z(z){return new Y1({fields:z??void 0,session:Y.session,dialect:Y.dialect,withList:X})}function $(z){return new Y1({fields:z??void 0,session:Y.session,dialect:Y.dialect,withList:X,distinct:!0})}function G(z){return new RX(z,Y.session,Y.dialect,X)}function H(z){return new NX(z,Y.session,Y.dialect,X)}function _(z){return new MX(z,Y.session,Y.dialect,X)}return{select:Z,selectDistinct:$,update:G,insert:H,delete:_}}select(X){return new Y1({fields:X??void 0,session:this.session,dialect:this.dialect})}selectDistinct(X){return new Y1({fields:X??void 0,session:this.session,dialect:this.dialect,distinct:!0})}update(X){return new RX(X,this.session,this.dialect)}$cache;insert(X){return new NX(X,this.session,this.dialect)}delete(X){return new MX(X,this.session,this.dialect)}run(X){let Y=typeof X==="string"?W.raw(X):X.getSQL();if(this.resultKind==="async")return new YX(async()=>this.session.run(Y),()=>Y,"run",this.dialect,this.session.extractRawRunValueFromBatchResult.bind(this.session));return this.session.run(Y)}all(X){let Y=typeof X==="string"?W.raw(X):X.getSQL();if(this.resultKind==="async")return new YX(async()=>this.session.all(Y),()=>Y,"all",this.dialect,this.session.extractRawAllValueFromBatchResult.bind(this.session));return this.session.all(Y)}get(X){let Y=typeof X==="string"?W.raw(X):X.getSQL();if(this.resultKind==="async")return new YX(async()=>this.session.get(Y),()=>Y,"get",this.dialect,this.session.extractRawGetValueFromBatchResult.bind(this.session));return this.session.get(Y)}values(X){let Y=typeof X==="string"?W.raw(X):X.getSQL();if(this.resultKind==="async")return new YX(async()=>this.session.values(Y),()=>Y,"values",this.dialect,this.session.extractRawValuesValueFromBatchResult.bind(this.session));return this.session.values(Y)}transaction(X,Y){return this.session.transaction(X,Y)}};var b2=class{static[J]="Cache"},X0=class extends b2{static[J]="NoopCache";strategy(){return"all"}async get(X){}async put(X,Y,Z,$){}async onMutate(X){}};async function lX(X,Y){let Z=`${X}-${JSON.stringify(Y,(H,_)=>typeof _==="bigint"?`${_}n`:_)}`,$=new TextEncoder().encode(Z),G=await crypto.subtle.digest("SHA-256",$);return[...new Uint8Array(G)].map((H)=>H.toString(16).padStart(2,"0")).join("")}var Y0=class extends r{static[J]="ExecuteResultSync";constructor(X){super();this.resultCb=X}async execute(){return this.resultCb()}sync(){return this.resultCb()}},aX=class{static[J]="PreparedQuery";joinsNotNullableMap;constructor(X,Y,Z,$,G,H){if(this.mode=X,this.executeMethod=Y,this.query=Z,this.cache=$,this.queryMetadata=G,this.cacheConfig=H,$&&$.strategy()==="all"&&H===void 0)this.cacheConfig={enabled:!0,autoInvalidate:!0};if(!this.cacheConfig?.enabled)this.cacheConfig=void 0}async queryWithCache(X,Y,Z){if(this.cache===void 0||D(this.cache,X0)||this.queryMetadata===void 0)try{return await Z()}catch($){throw new x1(X,Y,$)}if(this.cacheConfig&&!this.cacheConfig.enabled)try{return await Z()}catch($){throw new x1(X,Y,$)}if((this.queryMetadata.type==="insert"||this.queryMetadata.type==="update"||this.queryMetadata.type==="delete")&&this.queryMetadata.tables.length>0)try{let[$]=await Promise.all([Z(),this.cache.onMutate({tables:this.queryMetadata.tables})]);return $}catch($){throw new x1(X,Y,$)}if(!this.cacheConfig)try{return await Z()}catch($){throw new x1(X,Y,$)}if(this.queryMetadata.type==="select"){let $=await this.cache.get(this.cacheConfig.tag??await lX(X,Y),this.queryMetadata.tables,this.cacheConfig.tag!==void 0,this.cacheConfig.autoInvalidate);if($===void 0){let G;try{G=await Z()}catch(H){throw new x1(X,Y,H)}return await this.cache.put(this.cacheConfig.tag??await lX(X,Y),G,this.cacheConfig.autoInvalidate?this.queryMetadata.tables:[],this.cacheConfig.tag!==void 0,this.cacheConfig.config),G}return $}try{return await Z()}catch($){throw new x1(X,Y,$)}}getQuery(){return this.query}mapRunResult(X,Y){return X}mapAllResult(X,Y){throw Error("Not implemented")}mapGetResult(X,Y){throw Error("Not implemented")}execute(X){if(this.mode==="async")return this[this.executeMethod](X);return new Y0(()=>this[this.executeMethod](X))}mapResult(X,Y){switch(this.executeMethod){case"run":return this.mapRunResult(X,Y);case"all":return this.mapAllResult(X,Y);case"get":return this.mapGetResult(X,Y)}}},eX=class{static[J]="SQLiteSession";constructor(X){this.dialect=X}prepareOneTimeQuery(X,Y,Z,$,G,H,_){return this.prepareQuery(X,Y,Z,$,G,H,_)}prepareOneTimeRelationalQuery(X,Y,Z,$){return this.prepareRelationalQuery(X,Y,Z,$)}run(X){let Y=this.dialect.sqlToQuery(X);try{return this.prepareOneTimeQuery(Y,void 0,"run",!1).run()}catch(Z){throw new W1({cause:Z,message:`Failed to run the query '${Y.sql}'`})}}extractRawRunValueFromBatchResult(X){return X}all(X){return this.prepareOneTimeQuery(this.dialect.sqlToQuery(X),void 0,"run",!1).all()}extractRawAllValueFromBatchResult(X){throw Error("Not implemented")}get(X){return this.prepareOneTimeQuery(this.dialect.sqlToQuery(X),void 0,"run",!1).get()}extractRawGetValueFromBatchResult(X){throw Error("Not implemented")}values(X){return this.prepareOneTimeQuery(this.dialect.sqlToQuery(X),void 0,"run",!1).values()}async count(X){return(await this.values(X))[0][0]}extractRawValuesValueFromBatchResult(X){throw Error("Not implemented")}},XY=class extends wX{static[J]="SQLiteTransaction";constructor(X,Y,Z,$,G,H=0,_,z){super(X,Y,Z,$,G,_,z);this.relations=$,this.schema=G,this.nestedIndex=H}rollback(){throw new qZ}};var ZY=class extends eX{static[J]="SQLiteBunSession";logger;constructor(X,Y,Z,$,G={}){super(Y);this.client=X,this.relations=Z,this.schema=$,this.logger=G.logger??new AY}exec(X){this.client.exec(X)}prepareQuery(X,Y,Z,$,G){return new YY(this.client.prepare(X.sql),X,this.logger,Y,Z,$,G)}prepareRelationalQuery(X,Y,Z,$){return new YY(this.client.prepare(X.sql),X,this.logger,Y,Z,!1,$,!0)}transaction(X,Y={}){let Z=new Z0("sync",this.dialect,this,this.relations,this.schema),$;return this.client.transaction(()=>{$=X(Z)})[Y.behavior??"deferred"](),$}},Z0=class X extends XY{static[J]="SQLiteBunTransaction";transaction(Y){let Z=`sp${this.nestedIndex}`,$=new X("sync",this.dialect,this.session,this.relations,this.schema,this.nestedIndex+1);this.session.run(W.raw(`savepoint ${Z}`));try{let G=Y($);return this.session.run(W.raw(`release savepoint ${Z}`)),G}catch(G){throw this.session.run(W.raw(`rollback to savepoint ${Z}`)),G}}},YY=class extends aX{static[J]="SQLiteBunPreparedQuery";constructor(X,Y,Z,$,G,H,_,z){super("sync",G,Y);this.stmt=X,this.logger=Z,this.fields=$,this._isResponseInArrayMode=H,this.customResultMapper=_,this.isRqbV2Query=z}run(X){let Y=D1(this.query.params,X??{});return this.logger.logQuery(this.query.sql,Y),this.stmt.run(...Y)}all(X){if(this.isRqbV2Query)return this.allRqbV2(X);let{fields:Y,query:Z,logger:$,joinsNotNullableMap:G,stmt:H,customResultMapper:_}=this;if(!Y&&!_){let O=D1(Z.params,X??{});return $.logQuery(Z.sql,O),H.all(...O)}let z=this.values(X);if(_)return _(z);return z.map((O)=>TX(Y,O,G))}get(X){if(this.isRqbV2Query)return this.getRqbV2(X);let Y=D1(this.query.params,X??{});this.logger.logQuery(this.query.sql,Y);let{fields:Z,joinsNotNullableMap:$,customResultMapper:G}=this;if(!Z&&!G){let _=this.stmt.get(...Y);if(!_)return;return _}let H=this.stmt.values(...Y)[0];if(!H)return;if(G)return G([H]);return TX(Z,H,$)}allRqbV2(X){let{query:Y,logger:Z,stmt:$,customResultMapper:G}=this,H=D1(Y.params,X??{});return Z.logQuery(Y.sql,H),G($.all(...H))}getRqbV2(X){let Y=D1(this.query.params,X??{});this.logger.logQuery(this.query.sql,Y);let{stmt:Z,customResultMapper:$}=this,G=Z.get(...Y);if(!G)return;return $([G])}values(X){let Y=D1(this.query.params,X??{});return this.logger.logQuery(this.query.sql,Y),this.stmt.values(...Y)}isResponseInArrayMode(){return this._isResponseInArrayMode}};import{Database as QX}from"bun:sqlite";var $0=class extends wX{static[J]="SQLiteBunDatabase"};function $X(X,Y={}){let Z=new kX({casing:Y.casing}),$;if(Y.logger===!0)$=new UY;else if(Y.logger!==!1)$=Y.logger;let G;if(Y.schema){let z=PZ(Y.schema,BZ);G={fullSchema:Y.schema,schema:z.tables,tableNamesMap:z.tableNamesMap}}let H=Y.relations??{},_=new $0("sync",Z,new ZY(X,Z,H,G,{logger:$}),H,G);return _.$client=X,_}function $Y(...X){if(X[0]===void 0||typeof X[0]==="string")return $X(X[0]===void 0?new QX:new QX(X[0]),X[1]);let{connection:Y,client:Z,...$}=X[0];if(Z)return $X(Z,$);if(typeof Y==="object"){let{source:G,...H}=Y;return $X(new QX(G,Object.values(H).filter((_)=>_!==void 0).length?H:void 0),$)}return $X(new QX(Y),$)}(function(X){function Y(Z){return $X({},Z)}X.mock=Y})($Y||($Y={}));export{J as _l,d2 as $l,D as am,R as bm,r2 as cm,d3 as dm,VY as em,A0 as fm,G1 as gm,t as hm,JY as im,U1 as jm,LX as km,_1 as lm,HY as mm,A as nm,l2 as om,z1 as pm,A1 as qm,q as rm,JX as sm,w as tm,J0 as um,E1 as vm,b as wm,x as xm,C1 as ym,_0 as zm,BX as Am,q1 as Bm,jX as Cm,z0 as Dm,c as Em,E0 as Fm,W as Gm,l as Hm,D0 as Im,D1 as Jm,y as Km,O0 as Lm,F0 as Mm,TX as Nm,i as Om,v1 as Pm,HX as Qm,OY as Rm,FY as Sm,L3 as Tm,B3 as Um,h1 as Vm,k as Wm,j3 as Xm,SX as Ym,T3 as Zm,S3 as _m,C3 as $m,CX as an,qX as bn,V0 as cn,v0 as dn,h0 as en,p as fn,a as gn,p1 as hn,u as in,V1 as jn,I1 as kn,y1 as ln,f1 as mn,b1 as nn,d1 as on,g1 as pn,m1 as qn,c1 as rn,u1 as sn,N1 as tn,R1 as un,r1 as vn,o1 as wn,s1 as xn,t1 as yn,n1 as zn,i1 as An,hX as Bn,pX as Cn,yX as Dn,M1 as En,l1 as Fn,r as Gn,Q1 as Hn,CZ as In,UX as Jn,k2 as Kn,N2 as Ln,e as Mn,R2 as Nn,_W as On,Z1 as Pn,rX as Qn,e1 as Rn,XX as Sn,W1 as Tn,x1 as Un,qZ as Vn,vZ as Wn,w2 as Xn,Q2 as Yn,P1 as Zn,IX as _n,P2 as $n,L2 as ao,B2 as bo,L1 as co,hZ as do,LW as eo,VX as fo,j2 as go,T2 as ho,S2 as io,C2 as jo,pZ as ko,yZ as lo,BW as mo,jW as no,fZ as oo,J1 as po,bZ as qo,dZ as ro,oX as so,K1 as to,mJ as uo,U0 as vo,UY as wo,AY as xo,ZY as yo,Z0 as zo,YY as Ao,$0 as Bo,$Y as Co};
11
+ )`;Y.run(z)}let H=Y.all(W`SELECT id, hash, created_at, name FROM ${W.identifier($)}`);if(typeof Z==="object"&&Z.init){if(H.length)return{exitCode:"databaseMigrations"};if(X.length>1)return{exitCode:"localMigrations"};let[z]=X;if(!z)return;Y.run(W`insert into ${W.identifier($)} ("hash", "created_at", "name", "applied_at") values(${z.hash}, ${z.folderMillis}, ${z.name}, ${new Date().toISOString()})`);return}let _=nZ({localMigrations:X,dbMigrations:H});Y.run(W`BEGIN`);try{for(let z of _){for(let O of z.sql)Y.run(W.raw(O));Y.run(W`INSERT INTO ${W.identifier($)} ("hash", "created_at", "name", "applied_at") values(${z.hash}, ${z.folderMillis}, ${z.name}, ${new Date().toISOString()})`)}Y.run(W`COMMIT`)}catch(z){throw Y.run(W`ROLLBACK`),z}}};var ZX=class{static[J]="SQLiteQueryBuilder";dialect;dialectConfig;constructor(X){this.dialect=D(X,KX)?X:void 0,this.dialectConfig=D(X,KX)?void 0:X}$with=(X,Y)=>{let Z=this;return{as:(G)=>{if(typeof G==="function")G=G(Z);return new Proxy(new JX(G.getSQL(),Y??("getSelectedFields"in G?G.getSelectedFields()??{}:{}),X,!0),new m({alias:X,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}}};with(...X){let Y=this;function Z(G){return new Y1({fields:G??void 0,session:void 0,dialect:Y.getDialect(),withList:X})}function $(G){return new Y1({fields:G??void 0,session:void 0,dialect:Y.getDialect(),withList:X,distinct:!0})}return{select:Z,selectDistinct:$}}select(X){return new Y1({fields:X??void 0,session:void 0,dialect:this.getDialect()})}selectDistinct(X){return new Y1({fields:X??void 0,session:void 0,dialect:this.getDialect(),distinct:!0})}getDialect(){if(!this.dialect)this.dialect=new kX(this.dialectConfig);return this.dialect}};var NX=class{static[J]="SQLiteInsertBuilder";constructor(X,Y,Z,$){this.table=X,this.session=Y,this.dialect=Z,this.withList=$}values(X){if(X=Array.isArray(X)?X:[X],X.length===0)throw Error("values() must be called with at least one value");let Y=X.map((Z)=>{let $={},G=this.table[A.Symbol.Columns];for(let H of Object.keys(Z)){let _=Z[H];$[H]=D(_,x)?_:new c(_,G[H])}return $});return new iX(this.table,Y,this.session,this.dialect,this.withList)}select(X){let Y=typeof X==="function"?X(new ZX):X;if(!D(Y,x)&&!v1(this.table[t],Y._.selectedFields))throw Error("Insert select error: selected fields are not the same or are in a different order compared to the table definition");return new iX(this.table,Y,this.session,this.dialect,this.withList,!0)}},iX=class extends r{static[J]="SQLiteInsert";config;constructor(X,Y,Z,$,G,H){super();this.session=Z,this.dialect=$,this.config={table:X,values:Y,withList:G,select:H}}returning(X=this.config.table[f.Symbol.Columns]){return this.config.returning=i(X),this}onConflictDoNothing(X={}){if(!this.config.onConflict)this.config.onConflict=[];if(X.target===void 0)this.config.onConflict.push(W` on conflict do nothing`);else{let Y=Array.isArray(X.target)?W`${X.target}`:W`${[X.target]}`,Z=X.where?W` where ${X.where}`:W``;this.config.onConflict.push(W` on conflict ${Y} do nothing${Z}`)}return this}onConflictDoUpdate(X){if(X.where&&(X.targetWhere||X.setWhere))throw Error('You cannot use both "where" and "targetWhere"/"setWhere" at the same time - "where" is deprecated, use "targetWhere" or "setWhere" instead.');if(!this.config.onConflict)this.config.onConflict=[];let Y=X.where?W` where ${X.where}`:void 0,Z=X.targetWhere?W` where ${X.targetWhere}`:void 0,$=X.setWhere?W` where ${X.setWhere}`:void 0,G=Array.isArray(X.target)?W`${X.target}`:W`${[X.target]}`,H=this.dialect.buildUpdateSet(this.config.table,HX(this.config.table,X.set));return this.config.onConflict.push(W` on conflict ${G}${Z} do update set ${H}${Y}${$}`),this}getSQL(){return this.dialect.buildInsertQuery(this.config)}toSQL(){let{typings:X,...Y}=this.dialect.sqlToQuery(this.getSQL());return Y}_prepare(X=!0){return this.session[X?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),this.config.returning,this.config.returning?"all":"run",!0,void 0,{type:"insert",tables:X1(this.config.table)})}prepare(){return this._prepare(!1)}run=(X)=>{return this._prepare().run(X)};all=(X)=>{return this._prepare().all(X)};get=(X)=>{return this._prepare().get(X)};values=(X)=>{return this._prepare().values(X)};async execute(){return this.config.returning?this.all():this.run()}$dynamic(){return this}};var RX=class{static[J]="SQLiteUpdateBuilder";constructor(X,Y,Z,$){this.table=X,this.session=Y,this.dialect=Z,this.withList=$}set(X){return new eZ(this.table,HX(this.table,X),this.session,this.dialect,this.withList)}},eZ=class extends r{static[J]="SQLiteUpdate";config;constructor(X,Y,Z,$,G){super();this.session=Z,this.dialect=$,this.config={set:Y,table:X,withList:G,joins:[]}}from(X){return this.config.from=X,this}createJoin(X){return(Y,Z)=>{let $=h1(Y);if(typeof $==="string"&&this.config.joins.some((G)=>G.alias===$))throw Error(`Alias "${$}" is already used in this query`);if(typeof Z==="function"){let G=this.config.from?D(Y,f)?Y[A.Symbol.Columns]:D(Y,q)?Y._.selectedFields:D(Y,B1)?Y[w].selectedFields:void 0:void 0;Z=Z(new Proxy(this.config.table[A.Symbol.Columns],new m({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})),G&&new Proxy(G,new m({sqlAliasedBehavior:"sql",sqlBehavior:"sql"})))}return this.config.joins.push({on:Z,table:Y,joinType:X,alias:$}),this}}leftJoin=this.createJoin("left");rightJoin=this.createJoin("right");innerJoin=this.createJoin("inner");fullJoin=this.createJoin("full");where(X){return this.config.where=X,this}orderBy(...X){if(typeof X[0]==="function"){let Y=X[0](new Proxy(this.config.table[A.Symbol.Columns],new m({sqlAliasedBehavior:"alias",sqlBehavior:"sql"}))),Z=Array.isArray(Y)?Y:[Y];this.config.orderBy=Z}else{let Y=X;this.config.orderBy=Y}return this}limit(X){return this.config.limit=X,this}returning(X=this.config.table[f.Symbol.Columns]){return this.config.returning=i(X),this}getSQL(){return this.dialect.buildUpdateQuery(this.config)}toSQL(){let{typings:X,...Y}=this.dialect.sqlToQuery(this.getSQL());return Y}_prepare(X=!0){return this.session[X?"prepareOneTimeQuery":"prepareQuery"](this.dialect.sqlToQuery(this.getSQL()),this.config.returning,this.config.returning?"all":"run",!0,void 0,{type:"insert",tables:X1(this.config.table)})}prepare(){return this._prepare(!1)}run=(X)=>{return this._prepare().run(X)};all=(X)=>{return this._prepare().all(X)};get=(X)=>{return this._prepare().get(X)};values=(X)=>{return this._prepare().values(X)};async execute(){return this.config.returning?this.all():this.run()}$dynamic(){return this}};var wX=class{static[J]="BaseSQLiteDatabase";_query;query;constructor(X,Y,Z,$,G,H,_){this.resultKind=X,this.dialect=Y,this.session=Z,this.rowModeRQB=H,this.forbidJsonb=_,this._=G?{schema:G.schema,fullSchema:G.fullSchema,tableNamesMap:G.tableNamesMap,relations:$}:{schema:void 0,fullSchema:{},tableNamesMap:{},relations:$},this._query={};let z=this._query;if(this._.schema)for(let[O,E]of Object.entries(this._.schema))z[O]=new TZ(X,G.fullSchema,this._.schema,this._.tableNamesMap,G.fullSchema[O],E,Y,Z);this.query={};for(let[O,E]of Object.entries($))this.query[O]=new mZ(X,$,$[E.name].table,E,Y,Z,H,_);this.$cache={invalidate:async(O)=>{}}}$with=(X,Y)=>{let Z=this;return{as:(G)=>{if(typeof G==="function")G=G(new ZX(Z.dialect));return new Proxy(new JX(G.getSQL(),Y??("getSelectedFields"in G?G.getSelectedFields()??{}:{}),X,!0),new m({alias:X,sqlAliasedBehavior:"alias",sqlBehavior:"error"}))}}};$count(X,Y){return new SZ({source:X,filters:Y,session:this.session})}with(...X){let Y=this;function Z(z){return new Y1({fields:z??void 0,session:Y.session,dialect:Y.dialect,withList:X})}function $(z){return new Y1({fields:z??void 0,session:Y.session,dialect:Y.dialect,withList:X,distinct:!0})}function G(z){return new RX(z,Y.session,Y.dialect,X)}function H(z){return new NX(z,Y.session,Y.dialect,X)}function _(z){return new MX(z,Y.session,Y.dialect,X)}return{select:Z,selectDistinct:$,update:G,insert:H,delete:_}}select(X){return new Y1({fields:X??void 0,session:this.session,dialect:this.dialect})}selectDistinct(X){return new Y1({fields:X??void 0,session:this.session,dialect:this.dialect,distinct:!0})}update(X){return new RX(X,this.session,this.dialect)}$cache;insert(X){return new NX(X,this.session,this.dialect)}delete(X){return new MX(X,this.session,this.dialect)}run(X){let Y=typeof X==="string"?W.raw(X):X.getSQL();if(this.resultKind==="async")return new YX(async()=>this.session.run(Y),()=>Y,"run",this.dialect,this.session.extractRawRunValueFromBatchResult.bind(this.session));return this.session.run(Y)}all(X){let Y=typeof X==="string"?W.raw(X):X.getSQL();if(this.resultKind==="async")return new YX(async()=>this.session.all(Y),()=>Y,"all",this.dialect,this.session.extractRawAllValueFromBatchResult.bind(this.session));return this.session.all(Y)}get(X){let Y=typeof X==="string"?W.raw(X):X.getSQL();if(this.resultKind==="async")return new YX(async()=>this.session.get(Y),()=>Y,"get",this.dialect,this.session.extractRawGetValueFromBatchResult.bind(this.session));return this.session.get(Y)}values(X){let Y=typeof X==="string"?W.raw(X):X.getSQL();if(this.resultKind==="async")return new YX(async()=>this.session.values(Y),()=>Y,"values",this.dialect,this.session.extractRawValuesValueFromBatchResult.bind(this.session));return this.session.values(Y)}transaction(X,Y){return this.session.transaction(X,Y)}};var b2=class{static[J]="Cache"},X0=class extends b2{static[J]="NoopCache";strategy(){return"all"}async get(X){}async put(X,Y,Z,$){}async onMutate(X){}};async function lX(X,Y){let Z=`${X}-${JSON.stringify(Y,(H,_)=>typeof _==="bigint"?`${_}n`:_)}`,$=new TextEncoder().encode(Z),G=await crypto.subtle.digest("SHA-256",$);return[...new Uint8Array(G)].map((H)=>H.toString(16).padStart(2,"0")).join("")}var Y0=class extends r{static[J]="ExecuteResultSync";constructor(X){super();this.resultCb=X}async execute(){return this.resultCb()}sync(){return this.resultCb()}},aX=class{static[J]="PreparedQuery";joinsNotNullableMap;constructor(X,Y,Z,$,G,H){if(this.mode=X,this.executeMethod=Y,this.query=Z,this.cache=$,this.queryMetadata=G,this.cacheConfig=H,$&&$.strategy()==="all"&&H===void 0)this.cacheConfig={enabled:!0,autoInvalidate:!0};if(!this.cacheConfig?.enabled)this.cacheConfig=void 0}async queryWithCache(X,Y,Z){if(this.cache===void 0||D(this.cache,X0)||this.queryMetadata===void 0)try{return await Z()}catch($){throw new x1(X,Y,$)}if(this.cacheConfig&&!this.cacheConfig.enabled)try{return await Z()}catch($){throw new x1(X,Y,$)}if((this.queryMetadata.type==="insert"||this.queryMetadata.type==="update"||this.queryMetadata.type==="delete")&&this.queryMetadata.tables.length>0)try{let[$]=await Promise.all([Z(),this.cache.onMutate({tables:this.queryMetadata.tables})]);return $}catch($){throw new x1(X,Y,$)}if(!this.cacheConfig)try{return await Z()}catch($){throw new x1(X,Y,$)}if(this.queryMetadata.type==="select"){let $=await this.cache.get(this.cacheConfig.tag??await lX(X,Y),this.queryMetadata.tables,this.cacheConfig.tag!==void 0,this.cacheConfig.autoInvalidate);if($===void 0){let G;try{G=await Z()}catch(H){throw new x1(X,Y,H)}return await this.cache.put(this.cacheConfig.tag??await lX(X,Y),G,this.cacheConfig.autoInvalidate?this.queryMetadata.tables:[],this.cacheConfig.tag!==void 0,this.cacheConfig.config),G}return $}try{return await Z()}catch($){throw new x1(X,Y,$)}}getQuery(){return this.query}mapRunResult(X,Y){return X}mapAllResult(X,Y){throw Error("Not implemented")}mapGetResult(X,Y){throw Error("Not implemented")}execute(X){if(this.mode==="async")return this[this.executeMethod](X);return new Y0(()=>this[this.executeMethod](X))}mapResult(X,Y){switch(this.executeMethod){case"run":return this.mapRunResult(X,Y);case"all":return this.mapAllResult(X,Y);case"get":return this.mapGetResult(X,Y)}}},eX=class{static[J]="SQLiteSession";constructor(X){this.dialect=X}prepareOneTimeQuery(X,Y,Z,$,G,H,_){return this.prepareQuery(X,Y,Z,$,G,H,_)}prepareOneTimeRelationalQuery(X,Y,Z,$){return this.prepareRelationalQuery(X,Y,Z,$)}run(X){let Y=this.dialect.sqlToQuery(X);try{return this.prepareOneTimeQuery(Y,void 0,"run",!1).run()}catch(Z){throw new W1({cause:Z,message:`Failed to run the query '${Y.sql}'`})}}extractRawRunValueFromBatchResult(X){return X}all(X){return this.prepareOneTimeQuery(this.dialect.sqlToQuery(X),void 0,"run",!1).all()}extractRawAllValueFromBatchResult(X){throw Error("Not implemented")}get(X){return this.prepareOneTimeQuery(this.dialect.sqlToQuery(X),void 0,"run",!1).get()}extractRawGetValueFromBatchResult(X){throw Error("Not implemented")}values(X){return this.prepareOneTimeQuery(this.dialect.sqlToQuery(X),void 0,"run",!1).values()}async count(X){return(await this.values(X))[0][0]}extractRawValuesValueFromBatchResult(X){throw Error("Not implemented")}},XY=class extends wX{static[J]="SQLiteTransaction";constructor(X,Y,Z,$,G,H=0,_,z){super(X,Y,Z,$,G,_,z);this.relations=$,this.schema=G,this.nestedIndex=H}rollback(){throw new qZ}};var ZY=class extends eX{static[J]="SQLiteBunSession";logger;constructor(X,Y,Z,$,G={}){super(Y);this.client=X,this.relations=Z,this.schema=$,this.logger=G.logger??new AY}exec(X){this.client.exec(X)}prepareQuery(X,Y,Z,$,G){return new YY(this.client.prepare(X.sql),X,this.logger,Y,Z,$,G)}prepareRelationalQuery(X,Y,Z,$){return new YY(this.client.prepare(X.sql),X,this.logger,Y,Z,!1,$,!0)}transaction(X,Y={}){let Z=new Z0("sync",this.dialect,this,this.relations,this.schema),$;return this.client.transaction(()=>{$=X(Z)})[Y.behavior??"deferred"](),$}},Z0=class X extends XY{static[J]="SQLiteBunTransaction";transaction(Y){let Z=`sp${this.nestedIndex}`,$=new X("sync",this.dialect,this.session,this.relations,this.schema,this.nestedIndex+1);this.session.run(W.raw(`savepoint ${Z}`));try{let G=Y($);return this.session.run(W.raw(`release savepoint ${Z}`)),G}catch(G){throw this.session.run(W.raw(`rollback to savepoint ${Z}`)),G}}},YY=class extends aX{static[J]="SQLiteBunPreparedQuery";constructor(X,Y,Z,$,G,H,_,z){super("sync",G,Y);this.stmt=X,this.logger=Z,this.fields=$,this._isResponseInArrayMode=H,this.customResultMapper=_,this.isRqbV2Query=z}run(X){let Y=D1(this.query.params,X??{});return this.logger.logQuery(this.query.sql,Y),this.stmt.run(...Y)}all(X){if(this.isRqbV2Query)return this.allRqbV2(X);let{fields:Y,query:Z,logger:$,joinsNotNullableMap:G,stmt:H,customResultMapper:_}=this;if(!Y&&!_){let O=D1(Z.params,X??{});return $.logQuery(Z.sql,O),H.all(...O)}let z=this.values(X);if(_)return _(z);return z.map((O)=>TX(Y,O,G))}get(X){if(this.isRqbV2Query)return this.getRqbV2(X);let Y=D1(this.query.params,X??{});this.logger.logQuery(this.query.sql,Y);let{fields:Z,joinsNotNullableMap:$,customResultMapper:G}=this;if(!Z&&!G){let _=this.stmt.get(...Y);if(!_)return;return _}let H=this.stmt.values(...Y)[0];if(!H)return;if(G)return G([H]);return TX(Z,H,$)}allRqbV2(X){let{query:Y,logger:Z,stmt:$,customResultMapper:G}=this,H=D1(Y.params,X??{});return Z.logQuery(Y.sql,H),G($.all(...H))}getRqbV2(X){let Y=D1(this.query.params,X??{});this.logger.logQuery(this.query.sql,Y);let{stmt:Z,customResultMapper:$}=this,G=Z.get(...Y);if(!G)return;return $([G])}values(X){let Y=D1(this.query.params,X??{});return this.logger.logQuery(this.query.sql,Y),this.stmt.values(...Y)}isResponseInArrayMode(){return this._isResponseInArrayMode}};import{Database as QX}from"bun:sqlite";var $0=class extends wX{static[J]="SQLiteBunDatabase"};function $X(X,Y={}){let Z=new kX({casing:Y.casing}),$;if(Y.logger===!0)$=new UY;else if(Y.logger!==!1)$=Y.logger;let G;if(Y.schema){let z=PZ(Y.schema,BZ);G={fullSchema:Y.schema,schema:z.tables,tableNamesMap:z.tableNamesMap}}let H=Y.relations??{},_=new $0("sync",Z,new ZY(X,Z,H,G,{logger:$}),H,G);return _.$client=X,_}function $Y(...X){if(X[0]===void 0||typeof X[0]==="string")return $X(X[0]===void 0?new QX:new QX(X[0]),X[1]);let{connection:Y,client:Z,...$}=X[0];if(Z)return $X(Z,$);if(typeof Y==="object"){let{source:G,...H}=Y;return $X(new QX(G,Object.values(H).filter((_)=>_!==void 0).length?H:void 0),$)}return $X(new QX(Y),$)}(function(X){function Y(Z){return $X({},Z)}X.mock=Y})($Y||($Y={}));export{J as $l,d2 as am,D as bm,R as cm,r2 as dm,d3 as em,VY as fm,A0 as gm,G1 as hm,t as im,JY as jm,U1 as km,LX as lm,_1 as mm,HY as nm,A as om,l2 as pm,z1 as qm,A1 as rm,q as sm,JX as tm,w as um,J0 as vm,E1 as wm,b as xm,x as ym,C1 as zm,_0 as Am,BX as Bm,q1 as Cm,jX as Dm,z0 as Em,c as Fm,E0 as Gm,W as Hm,l as Im,D0 as Jm,D1 as Km,y as Lm,O0 as Mm,F0 as Nm,TX as Om,i as Pm,v1 as Qm,HX as Rm,OY as Sm,FY as Tm,L3 as Um,B3 as Vm,h1 as Wm,k as Xm,j3 as Ym,SX as Zm,T3 as _m,S3 as $m,C3 as an,CX as bn,qX as cn,V0 as dn,v0 as en,h0 as fn,p as gn,a as hn,p1 as in,u as jn,V1 as kn,I1 as ln,y1 as mn,f1 as nn,b1 as on,d1 as pn,g1 as qn,m1 as rn,c1 as sn,u1 as tn,N1 as un,R1 as vn,r1 as wn,o1 as xn,s1 as yn,t1 as zn,n1 as An,i1 as Bn,hX as Cn,pX as Dn,yX as En,M1 as Fn,l1 as Gn,r as Hn,Q1 as In,CZ as Jn,UX as Kn,k2 as Ln,N2 as Mn,e as Nn,R2 as On,_W as Pn,Z1 as Qn,rX as Rn,e1 as Sn,XX as Tn,W1 as Un,x1 as Vn,qZ as Wn,vZ as Xn,w2 as Yn,Q2 as Zn,P1 as _n,IX as $n,P2 as ao,L2 as bo,B2 as co,L1 as do,hZ as eo,LW as fo,VX as go,j2 as ho,T2 as io,S2 as jo,C2 as ko,pZ as lo,yZ as mo,BW as no,jW as oo,fZ as po,J1 as qo,bZ as ro,dZ as so,oX as to,K1 as uo,mJ as vo,U0 as wo,UY as xo,AY as yo,ZY as zo,Z0 as Ao,YY as Bo,$0 as Co,$Y as Do};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{Cf as M}from"./chunk-hh3w51wp.js";import"./chunk-0pvbk8ks.js";import{xP as B}from"./chunk-kc3hpmr2.js";import{CP as V,yP as b,zP as X}from"./chunk-hh4c02fh.js";var a=X((l)=>{Object.defineProperty(l,"__esModule",{value:!0});l.OTLPExporterBase=void 0;class p{_delegate;constructor(Z){this._delegate=Z}export(Z,$){this._delegate.export(Z,$)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}l.OTLPExporterBase=p});var R=X((t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.OTLPExporterError=void 0;class n extends Error{code;name="OTLPExporterError";data;constructor(Z,$,Y){super(Z);this.data=Y,this.code=$}}t.OTLPExporterError=n});var H=X((r)=>{Object.defineProperty(r,"__esModule",{value:!0});r.getSharedConfigurationDefaults=r.mergeOtlpSharedConfigurationWithDefaults=r.wrapStaticHeadersInFunction=r.validateTimeoutMillis=void 0;function o(Z){if(Number.isFinite(Z)&&Z>0)return Z;throw Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${Z}')`)}r.validateTimeoutMillis=o;function I0(Z){if(Z==null)return;return async()=>Z}r.wrapStaticHeadersInFunction=I0;function P0(Z,$,Y){return{timeoutMillis:o(Z.timeoutMillis??$.timeoutMillis??Y.timeoutMillis),concurrencyLimit:Z.concurrencyLimit??$.concurrencyLimit??Y.concurrencyLimit,compression:Z.compression??$.compression??Y.compression}}r.mergeOtlpSharedConfigurationWithDefaults=P0;function S0(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}r.getSharedConfigurationDefaults=S0});var $Z=X((ZZ)=>{Object.defineProperty(ZZ,"__esModule",{value:!0});ZZ.CompressionAlgorithm=void 0;var T0;(function(Z){Z.NONE="none",Z.GZIP="gzip"})(T0=ZZ.CompressionAlgorithm||(ZZ.CompressionAlgorithm={}))});var _=X((GZ)=>{Object.defineProperty(GZ,"__esModule",{value:!0});GZ.createBoundedQueueExportPromiseHandler=void 0;class YZ{_concurrencyLimit;_sendingPromises=[];constructor(Z){this._concurrencyLimit=Z}pushPromise(Z){if(this.hasReachedLimit())throw Error("Concurrency Limit reached");this._sendingPromises.push(Z);let $=()=>{let Y=this._sendingPromises.indexOf(Z);this._sendingPromises.splice(Y,1)};Z.then($,$)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function k0(Z){return new YZ(Z.concurrencyLimit)}GZ.createBoundedQueueExportPromiseHandler=k0});var XZ=X((WZ)=>{Object.defineProperty(WZ,"__esModule",{value:!0});WZ.createLoggingPartialSuccessResponseHandler=void 0;var E0=B();function y0(Z){return Object.prototype.hasOwnProperty.call(Z,"partialSuccess")}function x0(){return{handleResponse(Z){if(Z==null||!y0(Z)||Z.partialSuccess==null||Object.keys(Z.partialSuccess).length===0)return;E0.diag.warn("Received Partial Success response:",JSON.stringify(Z.partialSuccess))}}}WZ.createLoggingPartialSuccessResponseHandler=x0});var v=X((zZ)=>{Object.defineProperty(zZ,"__esModule",{value:!0});zZ.createOtlpExportDelegate=void 0;var q=M(),KZ=R(),h0=XZ(),C0=B();class wZ{_diagLogger;_transport;_serializer;_responseHandler;_promiseQueue;_timeout;constructor(Z,$,Y,G,Q){this._transport=Z,this._serializer=$,this._responseHandler=Y,this._promiseQueue=G,this._timeout=Q,this._diagLogger=C0.diag.createComponentLogger({namespace:"OTLPExportDelegate"})}export(Z,$){if(this._diagLogger.debug("items to be sent",Z),this._promiseQueue.hasReachedLimit()){$({code:q.ExportResultCode.FAILED,error:Error("Concurrent export limit reached")});return}let Y=this._serializer.serializeRequest(Z);if(Y==null){$({code:q.ExportResultCode.FAILED,error:Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(Y,this._timeout).then((G)=>{if(G.status==="success"){if(G.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(G.data))}catch(Q){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",Q,G.data)}$({code:q.ExportResultCode.SUCCESS});return}else if(G.status==="failure"&&G.error){$({code:q.ExportResultCode.FAILED,error:G.error});return}else if(G.status==="retryable")$({code:q.ExportResultCode.FAILED,error:G.error??new KZ.OTLPExporterError("Export failed with retryable status")});else $({code:q.ExportResultCode.FAILED,error:new KZ.OTLPExporterError("Export failed with unknown error")})},(G)=>$({code:q.ExportResultCode.FAILED,error:G})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function _0(Z,$){return new wZ(Z.transport,Z.serializer,(0,h0.createLoggingPartialSuccessResponseHandler)(),Z.promiseHandler,$.timeout)}zZ.createOtlpExportDelegate=_0});var NZ=X((FZ)=>{Object.defineProperty(FZ,"__esModule",{value:!0});FZ.createOtlpNetworkExportDelegate=void 0;var v0=_(),m0=v();function f0(Z,$,Y){return(0,m0.createOtlpExportDelegate)({transport:Y,serializer:$,promiseHandler:(0,v0.createBoundedQueueExportPromiseHandler)(Z)},{timeout:Z.timeoutMillis})}FZ.createOtlpNetworkExportDelegate=f0});var jZ=X((N)=>{Object.defineProperty(N,"__esModule",{value:!0});N.createOtlpNetworkExportDelegate=N.CompressionAlgorithm=N.getSharedConfigurationDefaults=N.mergeOtlpSharedConfigurationWithDefaults=N.OTLPExporterError=N.OTLPExporterBase=void 0;var g0=a();Object.defineProperty(N,"OTLPExporterBase",{enumerable:!0,get:function(){return g0.OTLPExporterBase}});var d0=R();Object.defineProperty(N,"OTLPExporterError",{enumerable:!0,get:function(){return d0.OTLPExporterError}});var VZ=H();Object.defineProperty(N,"mergeOtlpSharedConfigurationWithDefaults",{enumerable:!0,get:function(){return VZ.mergeOtlpSharedConfigurationWithDefaults}});Object.defineProperty(N,"getSharedConfigurationDefaults",{enumerable:!0,get:function(){return VZ.getSharedConfigurationDefaults}});var c0=$Z();Object.defineProperty(N,"CompressionAlgorithm",{enumerable:!0,get:function(){return c0.CompressionAlgorithm}});var u0=NZ();Object.defineProperty(N,"createOtlpNetworkExportDelegate",{enumerable:!0,get:function(){return u0.createOtlpNetworkExportDelegate}})});var MZ=X((SZ)=>{Object.defineProperty(SZ,"__esModule",{value:!0});SZ.validateAndNormalizeHeaders=void 0;var Y3=B();function G3(Z){let $={};return Object.entries(Z??{}).forEach(([Y,G])=>{if(typeof G<"u")$[Y]=String(G);else Y3.diag.warn(`Header "${Y}" has invalid value (${G}) and will be ignored`)}),$}SZ.validateAndNormalizeHeaders=G3});var EZ=X((TZ)=>{Object.defineProperty(TZ,"__esModule",{value:!0});TZ.getHttpConfigurationDefaults=TZ.mergeOtlpHttpConfigurationWithDefaults=void 0;var bZ=H(),Q3=MZ();function W3(Z,$,Y){return async()=>{let G={...await Y()},Q={};if($!=null)Object.assign(Q,await $());if(Z!=null)Object.assign(Q,(0,Q3.validateAndNormalizeHeaders)(await Z()));return Object.assign(Q,G)}}function J3(Z){if(Z==null)return;try{let $=globalThis.location?.href;return new URL(Z,$).href}catch{throw Error(`Configuration: Could not parse user-provided export URL: '${Z}'`)}}function X3(Z,$,Y){return{...(0,bZ.mergeOtlpSharedConfigurationWithDefaults)(Z,$,Y),headers:W3(Z.headers,$.headers,Y.headers),url:J3(Z.url)??$.url??Y.url}}TZ.mergeOtlpHttpConfigurationWithDefaults=X3;function K3(Z,$){return{...(0,bZ.getSharedConfigurationDefaults)(),headers:async()=>Z,url:"http://localhost:4318/"+$}}TZ.getHttpConfigurationDefaults=K3});var k=X((hZ)=>{Object.defineProperty(hZ,"__esModule",{value:!0});hZ.getNodeHttpConfigurationDefaults=hZ.mergeOtlpNodeHttpConfigurationWithDefaults=hZ.httpAgentFactoryFromOptions=void 0;var yZ=EZ();function xZ(Z){return async($)=>{let Y=$==="http:",G=Y?import("http"):import("https"),{Agent:Q}=await G;if(Y){let{ca:W,cert:U,key:z,...K}=Z;return new Q(K)}return new Q(Z)}}hZ.httpAgentFactoryFromOptions=xZ;function z3(Z,$,Y){return{...(0,yZ.mergeOtlpHttpConfigurationWithDefaults)(Z,$,Y),agentFactory:Z.agentFactory??$.agentFactory??Y.agentFactory,userAgent:Z.userAgent}}hZ.mergeOtlpNodeHttpConfigurationWithDefaults=z3;function D3(Z,$){return{...(0,yZ.getHttpConfigurationDefaults)(Z,$),agentFactory:xZ({keepAlive:!0})}}hZ.getNodeHttpConfigurationDefaults=D3});var mZ=X((_Z)=>{Object.defineProperty(_Z,"__esModule",{value:!0});_Z.parseRetryAfterToMills=_Z.isExportHTTPErrorRetryable=void 0;function N3(Z){return Z===429||Z===502||Z===503||Z===504}_Z.isExportHTTPErrorRetryable=N3;function V3(Z){if(Z==null)return;let $=Number.parseInt(Z,10);if(Number.isInteger($))return $>0?$*1000:-1;let Y=new Date(Z).getTime()-Date.now();if(Y>=0)return Y;return 0}_Z.parseRetryAfterToMills=V3});var dZ=X((fZ)=>{Object.defineProperty(fZ,"__esModule",{value:!0});fZ.VERSION=void 0;fZ.VERSION="0.220.0"});var iZ=X((pZ)=>{Object.defineProperty(pZ,"__esModule",{value:!0});pZ.compressAndSend=pZ.sendWithHttp=pZ.MAX_RESPONSE_BODY_SIZE=void 0;var q3=V("zlib"),U3=V("stream"),E=mZ(),O3=R(),L3=dZ(),cZ=`OTel-OTLP-Exporter-JavaScript/${L3.VERSION}`;pZ.MAX_RESPONSE_BODY_SIZE=4194304;function H3(Z,$,Y,G,Q,W,U,z){return new Promise((K)=>{let I=new URL($);if(Q)Y["User-Agent"]=`${Q} ${cZ}`;else Y["User-Agent"]=cZ;let j=Z(I,{method:"POST",headers:Y,agent:W},(J)=>{let F=[],S=0;J.on("data",(D)=>{if(S+=D.length,S>pZ.MAX_RESPONSE_BODY_SIZE){let A0=Error(`OTLP export response body exceeded size limit of ${pZ.MAX_RESPONSE_BODY_SIZE} bytes`);K({status:"failure",error:A0}),J.destroy();return}F.push(D)}),J.on("end",()=>{if(J.statusCode&&J.statusCode<=299)K({status:"success",data:Buffer.concat(F)});else if(J.statusCode&&(0,E.isExportHTTPErrorRetryable)(J.statusCode))K({status:"retryable",retryInMillis:(0,E.parseRetryAfterToMills)(J.headers["retry-after"])});else{let D=new O3.OTLPExporterError(J.statusMessage,J.statusCode,Buffer.concat(F).toString());K({status:"failure",error:D})}}),J.on("error",(D)=>{if(J.statusCode&&J.statusCode<=299)K({status:"success"});else if(J.statusCode&&(0,E.isExportHTTPErrorRetryable)(J.statusCode))K({status:"retryable",error:D,retryInMillis:(0,E.parseRetryAfterToMills)(J.headers["retry-after"])});else K({status:"failure",error:D})})});j.setTimeout(z,()=>{j.destroy(),K({status:"retryable",error:Error("Request timed out")})}),j.on("error",(J)=>{if(I3(J))K({status:"retryable",error:J});else K({status:"failure",error:J})}),uZ(j,G,U,(J)=>{K({status:"failure",error:J})})})}pZ.sendWithHttp=H3;function uZ(Z,$,Y,G){let Q=A3(Y);if($==="gzip")Z.setHeader("Content-Encoding","gzip"),Q=Q.on("error",G).pipe(q3.createGzip()).on("error",G);Q.pipe(Z).on("error",G)}pZ.compressAndSend=uZ;function A3(Z){let $=new U3.Readable;return $.push(Z),$.push(null),$}function I3(Z){let $=new Set(["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT","EAI_AGAIN","ENOTFOUND","ENETUNREACH","EHOSTUNREACH"]);if("code"in Z&&typeof Z.code==="string")return $.has(Z.code);return!1}});var sZ=X((nZ)=>{Object.defineProperty(nZ,"__esModule",{value:!0});nZ.createHttpExporterTransport=void 0;var S3=iZ();class aZ{_utils=null;_parameters;constructor(Z){this._parameters=Z}async send(Z,$){let{agent:Y,request:G}=await this._loadUtils(),Q=await this._parameters.headers();return(0,S3.sendWithHttp)(G,this._parameters.url,Q,this._parameters.compression,this._parameters.userAgent,Y,Z,$)}shutdown(){}async _loadUtils(){let Z=this._utils;if(Z===null){let $=new URL(this._parameters.url).protocol,[Y,G]=await Promise.all([this._parameters.agentFactory($),R3($)]);Z=this._utils={agent:Y,request:G}}return Z}}async function R3(Z){let $=Z==="http:"?import("http"):import("https"),{request:Y}=await $;return Y}function M3(Z){return new aZ(Z)}nZ.createHttpExporterTransport=M3});var $0=X((eZ)=>{Object.defineProperty(eZ,"__esModule",{value:!0});eZ.createRetryingTransport=void 0;var A=B(),g=5,b3=1000,T3=5000,k3=1.5,oZ=0.2;function E3(){return Math.random()*(2*oZ)-oZ}class rZ{_transport;constructor(Z){this._transport=Z}retry(Z,$,Y){return new Promise((G,Q)=>{setTimeout(()=>{this._transport.send(Z,$).then(G,Q)},Y)})}async send(Z,$){let Y=g,G=b3,Q=Date.now()+$,W=await this._transport.send(Z,$);while(W.status==="retryable"&&Y>0){Y--;let U=Math.max(Math.min(G*(1+E3()),T3),0);G=G*k3;let z=W.retryInMillis??U,K=Q-Date.now();if(z>K)return A.diag.info(`Export retry time ${Math.round(z)}ms exceeds remaining timeout ${Math.round(K)}ms, not retrying further.`),W;A.diag.verbose(`Scheduling export retry in ${Math.round(z)}ms`),W=await this.retry(Z,K,z)}if(W.status==="success")A.diag.verbose(`Export succeeded after ${g-Y} retry attempts.`);else if(W.status==="retryable")A.diag.info(`Export failed after maximum retry attempts (${g}).`);else A.diag.info(`Export failed with non-retryable error: ${W.error}`);return W}shutdown(){return this._transport.shutdown()}}function y3(Z){return new rZ(Z.transport)}eZ.createRetryingTransport=y3});var Q0=X((Y0)=>{Object.defineProperty(Y0,"__esModule",{value:!0});Y0.createOtlpHttpExportDelegate=void 0;var x3=v(),h3=sZ(),C3=_(),_3=$0();function v3(Z,$){return(0,x3.createOtlpExportDelegate)({transport:(0,_3.createRetryingTransport)({transport:(0,h3.createHttpExporterTransport)(Z)}),serializer:$,promiseHandler:(0,C3.createBoundedQueueExportPromiseHandler)(Z)},{timeout:Z.timeoutMillis})}Y0.createOtlpHttpExportDelegate=v3});var d=X((w0)=>{Object.defineProperty(w0,"__esModule",{value:!0});w0.getSharedConfigurationFromEnvironment=void 0;var X0=M(),K0=B();function W0(Z){let $=(0,X0.getNumberFromEnv)(Z);if($!=null){if(Number.isFinite($)&&$>0)return $;K0.diag.warn(`Configuration: ${Z} is invalid, expected number greater than 0 (actual: ${$})`)}return}function m3(Z){let $=W0(`OTEL_EXPORTER_OTLP_${Z}_TIMEOUT`),Y=W0("OTEL_EXPORTER_OTLP_TIMEOUT");return $??Y}function J0(Z){let $=(0,X0.getStringFromEnv)(Z)?.trim();if($==null||$==="none"||$==="gzip")return $;K0.diag.warn(`Configuration: ${Z} is invalid, expected 'none' or 'gzip' (actual: '${$}')`);return}function f3(Z){let $=J0(`OTEL_EXPORTER_OTLP_${Z}_COMPRESSION`),Y=J0("OTEL_EXPORTER_OTLP_COMPRESSION");return $??Y}function g3(Z){return{timeoutMillis:m3(Z),compression:f3(Z)}}w0.getSharedConfigurationFromEnvironment=g3});var B0=X((D0)=>{Object.defineProperty(D0,"__esModule",{value:!0});D0.getNodeHttpConfigurationFromEnvironment=void 0;var d3=V("fs"),c3=V("path"),w=M(),y=B(),u3=d(),p3=H(),l3=k();function i3(Z){let $=(0,w.getStringFromEnv)(`OTEL_EXPORTER_OTLP_${Z}_HEADERS`),Y=(0,w.getStringFromEnv)("OTEL_EXPORTER_OTLP_HEADERS"),G=(0,w.parseKeyPairsIntoRecord)($),Q=(0,w.parseKeyPairsIntoRecord)(Y);if(Object.keys(G).length===0&&Object.keys(Q).length===0)return;return Object.assign({},(0,w.parseKeyPairsIntoRecord)(Y),(0,w.parseKeyPairsIntoRecord)($))}function a3(Z){try{return new URL(Z).toString()}catch{y.diag.warn(`Configuration: Could not parse environment-provided export URL: '${Z}', falling back to undefined`);return}}function n3(Z,$){try{new URL(Z)}catch{y.diag.warn(`Configuration: Could not parse environment-provided export URL: '${Z}', falling back to undefined`);return}if(!Z.endsWith("/"))Z=Z+"/";Z+=$;try{new URL(Z)}catch{y.diag.warn(`Configuration: Provided URL appended with '${$}' is not a valid URL, using 'undefined' instead of '${Z}'`);return}return Z}function t3(Z){let $=(0,w.getStringFromEnv)("OTEL_EXPORTER_OTLP_ENDPOINT");if($===void 0)return;return n3($,Z)}function s3(Z){let $=(0,w.getStringFromEnv)(`OTEL_EXPORTER_OTLP_${Z}_ENDPOINT`);if($===void 0)return;return a3($)}function c(Z,$,Y){let G=(0,w.getStringFromEnv)(Z),Q=(0,w.getStringFromEnv)($),W=G??Q;if(W!=null)try{return d3.readFileSync(c3.resolve(process.cwd(),W))}catch{y.diag.warn(Y);return}else return}function o3(Z){return c(`OTEL_EXPORTER_OTLP_${Z}_CLIENT_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE","Failed to read client certificate chain file")}function r3(Z){return c(`OTEL_EXPORTER_OTLP_${Z}_CLIENT_KEY`,"OTEL_EXPORTER_OTLP_CLIENT_KEY","Failed to read client certificate private key file")}function e3(Z){return c(`OTEL_EXPORTER_OTLP_${Z}_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CERTIFICATE","Failed to read root certificate file")}function Z4(Z,$){return{...(0,u3.getSharedConfigurationFromEnvironment)(Z),url:s3(Z)??t3($),headers:(0,p3.wrapStaticHeadersInFunction)(i3(Z)),agentFactory:(0,l3.httpAgentFactoryFromOptions)({keepAlive:!0,ca:e3(Z),cert:o3(Z),key:r3(Z)})}}D0.getNodeHttpConfigurationFromEnvironment=Z4});var j0=X((N0)=>{Object.defineProperty(N0,"__esModule",{value:!0});N0.convertLegacyHeaders=void 0;var $4=H();function Y4(Z){if(typeof Z.headers==="function")return Z.headers;return(0,$4.wrapStaticHeadersInFunction)(Z.headers)}N0.convertLegacyHeaders=Y4});var L0=X((U0)=>{Object.defineProperty(U0,"__esModule",{value:!0});U0.convertLegacyHttpOptions=void 0;var G4=B(),q0=k(),Q4=u(),W4=B0(),J4=j0();function X4(Z){if(typeof Z.httpAgentOptions==="function")return Z.httpAgentOptions;let $=Z.httpAgentOptions;if(Z.keepAlive!=null)$={keepAlive:Z.keepAlive,...$};if($!=null)return(0,Q4.httpAgentFactoryFromOptions)($);else return}function K4(Z,$,Y,G){if(Z.metadata)G4.diag.warn("Metadata cannot be set when using http");return(0,q0.mergeOtlpNodeHttpConfigurationWithDefaults)({url:Z.url,headers:(0,J4.convertLegacyHeaders)(Z),concurrencyLimit:Z.concurrencyLimit,timeoutMillis:Z.timeoutMillis,compression:Z.compression,agentFactory:X4(Z),userAgent:Z.userAgent},(0,W4.getNodeHttpConfigurationFromEnvironment)($,Y),(0,q0.getNodeHttpConfigurationDefaults)(G,Y))}U0.convertLegacyHttpOptions=K4});var u=X((L)=>{Object.defineProperty(L,"__esModule",{value:!0});L.convertLegacyHttpOptions=L.getSharedConfigurationFromEnvironment=L.createOtlpHttpExportDelegate=L.httpAgentFactoryFromOptions=void 0;var w4=k();Object.defineProperty(L,"httpAgentFactoryFromOptions",{enumerable:!0,get:function(){return w4.httpAgentFactoryFromOptions}});var z4=Q0();Object.defineProperty(L,"createOtlpHttpExportDelegate",{enumerable:!0,get:function(){return z4.createOtlpHttpExportDelegate}});var D4=d();Object.defineProperty(L,"getSharedConfigurationFromEnvironment",{enumerable:!0,get:function(){return D4.getSharedConfigurationFromEnvironment}});var F4=L0();Object.defineProperty(L,"convertLegacyHttpOptions",{enumerable:!0,get:function(){return F4.convertLegacyHttpOptions}})});var H0=b(jZ(),1);function qZ(Z,$){let Y={attributes:O(Z.attributes,$),droppedAttributesCount:0},G=Z.schemaUrl;if(G&&G!=="")Y.schemaUrl=G;return Y}function UZ(Z,$){let Y={name:Z.name,version:Z.version};if(Z.attributes&&Object.keys(Z.attributes).length>0)Y.attributes=O(Z.attributes,$),Y.droppedAttributesCount=Z.droppedAttributesCount??0;return Y}function O(Z,$){return Object.keys(Z).map((Y)=>l0(Y,Z[Y],$))}function l0(Z,$,Y){return{key:Z,value:m($,Y)}}function m(Z,$){let Y=typeof Z;if(Y==="string")return{stringValue:Z};if(Y==="number"){if(!Number.isInteger(Z))return{doubleValue:Z};return{intValue:Z}}if(Y==="boolean")return{boolValue:Z};if(Z instanceof Uint8Array)return{bytesValue:$.encodeUint8Array(Z)};if(Array.isArray(Z)){let G=Array(Z.length);for(let Q=0;Q<Z.length;Q++)G[Q]=m(Z[Q],$);return{arrayValue:{values:G}}}if(Y==="object"&&Z!=null){let G=Object.keys(Z),Q=Array(G.length);for(let W=0;W<G.length;W++)Q[W]={key:G[W],value:m(Z[G[W]],$)};return{kvlistValue:{values:Q}}}return{}}var i0=256,a0=512;function OZ(Z,$){let Y=Z&255|i0;if($)Y|=a0;return Y}function n0(Z,$){let Y=Z.spanContext(),G=Z.status,Q=Z.parentSpanContext?.spanId?$.encodeSpanContext(Z.parentSpanContext?.spanId):void 0;return{traceId:$.encodeSpanContext(Y.traceId),spanId:$.encodeSpanContext(Y.spanId),parentSpanId:Q,traceState:Y.traceState?.serialize(),name:Z.name,kind:Z.kind==null?0:Z.kind+1,startTimeUnixNano:$.encodeHrTime(Z.startTime),endTimeUnixNano:$.encodeHrTime(Z.endTime),attributes:O(Z.attributes,$),droppedAttributesCount:Z.droppedAttributesCount,events:Z.events.map((W)=>s0(W,$)),droppedEventsCount:Z.droppedEventsCount,status:{code:G.code,message:G.message},links:Z.links.map((W)=>t0(W,$)),droppedLinksCount:Z.droppedLinksCount,flags:OZ(Y.traceFlags,Z.parentSpanContext?.isRemote)}}function t0(Z,$){return{attributes:Z.attributes?O(Z.attributes,$):[],spanId:$.encodeSpanContext(Z.context.spanId),traceId:$.encodeSpanContext(Z.context.traceId),traceState:Z.context.traceState?.serialize(),droppedAttributesCount:Z.droppedAttributesCount||0,flags:OZ(Z.context.traceFlags,Z.context.isRemote)}}function s0(Z,$){return{attributes:Z.attributes?O(Z.attributes,$):[],name:Z.name,timeUnixNano:$.encodeHrTime(Z.time),droppedAttributesCount:Z.droppedAttributesCount||0}}function LZ(Z,$){return{resourceSpans:r0(Z,$)}}function o0(Z){let $=new Map;for(let Y of Z){let G=$.get(Y.resource);if(!G)G=new Map,$.set(Y.resource,G);let Q=`${Y.instrumentationScope.name}@${Y.instrumentationScope.version||""}:${Y.instrumentationScope.schemaUrl||""}`,W=G.get(Q);if(!W)W=[],G.set(Q,W);W.push(Y)}return $}function r0(Z,$){let Y=o0(Z),G=[],Q=Y.entries(),W=Q.next();while(!W.done){let[U,z]=W.value,K=[],I=z.values(),P=I.next();while(!P.done){let F=P.value;if(F.length>0){let S=F.map((D)=>n0(D,$));K.push({scope:UZ(F[0].instrumentationScope,$),spans:S,schemaUrl:F[0].instrumentationScope.schemaUrl})}P=I.next()}let j=qZ(U,$),J={resource:j,scopeSpans:K,schemaUrl:j.schemaUrl};G.push(J),W=Q.next()}return G}var AZ=b(M(),1);function e0(Z){let $=BigInt(1e9);return BigInt(Math.trunc(Z[0]))*$+BigInt(Math.trunc(Z[1]))}function Z3(Z){return e0(Z).toString()}var $3=typeof BigInt<"u"?Z3:AZ.hrTimeToNanoseconds;function HZ(Z){return Z}var IZ={encodeHrTime:$3,encodeSpanContext:HZ,encodeOptionalSpanContext:HZ,encodeUint8Array:(Z)=>{if(typeof Buffer<"u")return Buffer.from(Z).toString("base64");let $=Array(Z.length);for(let Y=0;Y<Z.length;Y++)$[Y]=String.fromCharCode(Z[Y]);return btoa($.join(""))}};var PZ=b(B(),1),T={serializeRequest:(Z)=>{let $=LZ(Z,IZ);return new TextEncoder().encode(JSON.stringify($))},deserializeResponse:(Z)=>{if(Z.length===0)return{};let $=new TextDecoder;try{return JSON.parse($.decode(Z))}catch(Y){return PZ.diag.warn(`Failed to parse trace export response: ${Y.message}. Returning empty response`),{}}}};var x=b(u(),1);class h extends H0.OTLPExporterBase{constructor(Z={}){super(x.createOtlpHttpExportDelegate(x.convertLegacyHttpOptions(Z,"TRACES","v1/traces",{"Content-Type":"application/json"}),T))}}export{h as OTLPTraceExporter};
2
+ import{Df as M}from"./chunk-f6y7a5w3.js";import"./chunk-6h2faxs9.js";import{BP as B}from"./chunk-qkwhgfjt.js";import{CP as b,DP as X,GP as V}from"./chunk-s2za1y84.js";var a=X((l)=>{Object.defineProperty(l,"__esModule",{value:!0});l.OTLPExporterBase=void 0;class p{_delegate;constructor(Z){this._delegate=Z}export(Z,$){this._delegate.export(Z,$)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}l.OTLPExporterBase=p});var R=X((t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.OTLPExporterError=void 0;class n extends Error{code;name="OTLPExporterError";data;constructor(Z,$,Y){super(Z);this.data=Y,this.code=$}}t.OTLPExporterError=n});var H=X((r)=>{Object.defineProperty(r,"__esModule",{value:!0});r.getSharedConfigurationDefaults=r.mergeOtlpSharedConfigurationWithDefaults=r.wrapStaticHeadersInFunction=r.validateTimeoutMillis=void 0;function o(Z){if(Number.isFinite(Z)&&Z>0)return Z;throw Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${Z}')`)}r.validateTimeoutMillis=o;function I0(Z){if(Z==null)return;return async()=>Z}r.wrapStaticHeadersInFunction=I0;function P0(Z,$,Y){return{timeoutMillis:o(Z.timeoutMillis??$.timeoutMillis??Y.timeoutMillis),concurrencyLimit:Z.concurrencyLimit??$.concurrencyLimit??Y.concurrencyLimit,compression:Z.compression??$.compression??Y.compression}}r.mergeOtlpSharedConfigurationWithDefaults=P0;function S0(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}r.getSharedConfigurationDefaults=S0});var $Z=X((ZZ)=>{Object.defineProperty(ZZ,"__esModule",{value:!0});ZZ.CompressionAlgorithm=void 0;var T0;(function(Z){Z.NONE="none",Z.GZIP="gzip"})(T0=ZZ.CompressionAlgorithm||(ZZ.CompressionAlgorithm={}))});var _=X((GZ)=>{Object.defineProperty(GZ,"__esModule",{value:!0});GZ.createBoundedQueueExportPromiseHandler=void 0;class YZ{_concurrencyLimit;_sendingPromises=[];constructor(Z){this._concurrencyLimit=Z}pushPromise(Z){if(this.hasReachedLimit())throw Error("Concurrency Limit reached");this._sendingPromises.push(Z);let $=()=>{let Y=this._sendingPromises.indexOf(Z);this._sendingPromises.splice(Y,1)};Z.then($,$)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function k0(Z){return new YZ(Z.concurrencyLimit)}GZ.createBoundedQueueExportPromiseHandler=k0});var XZ=X((WZ)=>{Object.defineProperty(WZ,"__esModule",{value:!0});WZ.createLoggingPartialSuccessResponseHandler=void 0;var E0=B();function y0(Z){return Object.prototype.hasOwnProperty.call(Z,"partialSuccess")}function x0(){return{handleResponse(Z){if(Z==null||!y0(Z)||Z.partialSuccess==null||Object.keys(Z.partialSuccess).length===0)return;E0.diag.warn("Received Partial Success response:",JSON.stringify(Z.partialSuccess))}}}WZ.createLoggingPartialSuccessResponseHandler=x0});var v=X((zZ)=>{Object.defineProperty(zZ,"__esModule",{value:!0});zZ.createOtlpExportDelegate=void 0;var q=M(),KZ=R(),h0=XZ(),C0=B();class wZ{_diagLogger;_transport;_serializer;_responseHandler;_promiseQueue;_timeout;constructor(Z,$,Y,G,Q){this._transport=Z,this._serializer=$,this._responseHandler=Y,this._promiseQueue=G,this._timeout=Q,this._diagLogger=C0.diag.createComponentLogger({namespace:"OTLPExportDelegate"})}export(Z,$){if(this._diagLogger.debug("items to be sent",Z),this._promiseQueue.hasReachedLimit()){$({code:q.ExportResultCode.FAILED,error:Error("Concurrent export limit reached")});return}let Y=this._serializer.serializeRequest(Z);if(Y==null){$({code:q.ExportResultCode.FAILED,error:Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(Y,this._timeout).then((G)=>{if(G.status==="success"){if(G.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(G.data))}catch(Q){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",Q,G.data)}$({code:q.ExportResultCode.SUCCESS});return}else if(G.status==="failure"&&G.error){$({code:q.ExportResultCode.FAILED,error:G.error});return}else if(G.status==="retryable")$({code:q.ExportResultCode.FAILED,error:G.error??new KZ.OTLPExporterError("Export failed with retryable status")});else $({code:q.ExportResultCode.FAILED,error:new KZ.OTLPExporterError("Export failed with unknown error")})},(G)=>$({code:q.ExportResultCode.FAILED,error:G})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function _0(Z,$){return new wZ(Z.transport,Z.serializer,(0,h0.createLoggingPartialSuccessResponseHandler)(),Z.promiseHandler,$.timeout)}zZ.createOtlpExportDelegate=_0});var NZ=X((FZ)=>{Object.defineProperty(FZ,"__esModule",{value:!0});FZ.createOtlpNetworkExportDelegate=void 0;var v0=_(),m0=v();function f0(Z,$,Y){return(0,m0.createOtlpExportDelegate)({transport:Y,serializer:$,promiseHandler:(0,v0.createBoundedQueueExportPromiseHandler)(Z)},{timeout:Z.timeoutMillis})}FZ.createOtlpNetworkExportDelegate=f0});var jZ=X((N)=>{Object.defineProperty(N,"__esModule",{value:!0});N.createOtlpNetworkExportDelegate=N.CompressionAlgorithm=N.getSharedConfigurationDefaults=N.mergeOtlpSharedConfigurationWithDefaults=N.OTLPExporterError=N.OTLPExporterBase=void 0;var g0=a();Object.defineProperty(N,"OTLPExporterBase",{enumerable:!0,get:function(){return g0.OTLPExporterBase}});var d0=R();Object.defineProperty(N,"OTLPExporterError",{enumerable:!0,get:function(){return d0.OTLPExporterError}});var VZ=H();Object.defineProperty(N,"mergeOtlpSharedConfigurationWithDefaults",{enumerable:!0,get:function(){return VZ.mergeOtlpSharedConfigurationWithDefaults}});Object.defineProperty(N,"getSharedConfigurationDefaults",{enumerable:!0,get:function(){return VZ.getSharedConfigurationDefaults}});var c0=$Z();Object.defineProperty(N,"CompressionAlgorithm",{enumerable:!0,get:function(){return c0.CompressionAlgorithm}});var u0=NZ();Object.defineProperty(N,"createOtlpNetworkExportDelegate",{enumerable:!0,get:function(){return u0.createOtlpNetworkExportDelegate}})});var MZ=X((SZ)=>{Object.defineProperty(SZ,"__esModule",{value:!0});SZ.validateAndNormalizeHeaders=void 0;var Y3=B();function G3(Z){let $={};return Object.entries(Z??{}).forEach(([Y,G])=>{if(typeof G<"u")$[Y]=String(G);else Y3.diag.warn(`Header "${Y}" has invalid value (${G}) and will be ignored`)}),$}SZ.validateAndNormalizeHeaders=G3});var EZ=X((TZ)=>{Object.defineProperty(TZ,"__esModule",{value:!0});TZ.getHttpConfigurationDefaults=TZ.mergeOtlpHttpConfigurationWithDefaults=void 0;var bZ=H(),Q3=MZ();function W3(Z,$,Y){return async()=>{let G={...await Y()},Q={};if($!=null)Object.assign(Q,await $());if(Z!=null)Object.assign(Q,(0,Q3.validateAndNormalizeHeaders)(await Z()));return Object.assign(Q,G)}}function J3(Z){if(Z==null)return;try{let $=globalThis.location?.href;return new URL(Z,$).href}catch{throw Error(`Configuration: Could not parse user-provided export URL: '${Z}'`)}}function X3(Z,$,Y){return{...(0,bZ.mergeOtlpSharedConfigurationWithDefaults)(Z,$,Y),headers:W3(Z.headers,$.headers,Y.headers),url:J3(Z.url)??$.url??Y.url}}TZ.mergeOtlpHttpConfigurationWithDefaults=X3;function K3(Z,$){return{...(0,bZ.getSharedConfigurationDefaults)(),headers:async()=>Z,url:"http://localhost:4318/"+$}}TZ.getHttpConfigurationDefaults=K3});var k=X((hZ)=>{Object.defineProperty(hZ,"__esModule",{value:!0});hZ.getNodeHttpConfigurationDefaults=hZ.mergeOtlpNodeHttpConfigurationWithDefaults=hZ.httpAgentFactoryFromOptions=void 0;var yZ=EZ();function xZ(Z){return async($)=>{let Y=$==="http:",G=Y?import("http"):import("https"),{Agent:Q}=await G;if(Y){let{ca:W,cert:U,key:z,...K}=Z;return new Q(K)}return new Q(Z)}}hZ.httpAgentFactoryFromOptions=xZ;function z3(Z,$,Y){return{...(0,yZ.mergeOtlpHttpConfigurationWithDefaults)(Z,$,Y),agentFactory:Z.agentFactory??$.agentFactory??Y.agentFactory,userAgent:Z.userAgent}}hZ.mergeOtlpNodeHttpConfigurationWithDefaults=z3;function D3(Z,$){return{...(0,yZ.getHttpConfigurationDefaults)(Z,$),agentFactory:xZ({keepAlive:!0})}}hZ.getNodeHttpConfigurationDefaults=D3});var mZ=X((_Z)=>{Object.defineProperty(_Z,"__esModule",{value:!0});_Z.parseRetryAfterToMills=_Z.isExportHTTPErrorRetryable=void 0;function N3(Z){return Z===429||Z===502||Z===503||Z===504}_Z.isExportHTTPErrorRetryable=N3;function V3(Z){if(Z==null)return;let $=Number.parseInt(Z,10);if(Number.isInteger($))return $>0?$*1000:-1;let Y=new Date(Z).getTime()-Date.now();if(Y>=0)return Y;return 0}_Z.parseRetryAfterToMills=V3});var dZ=X((fZ)=>{Object.defineProperty(fZ,"__esModule",{value:!0});fZ.VERSION=void 0;fZ.VERSION="0.220.0"});var iZ=X((pZ)=>{Object.defineProperty(pZ,"__esModule",{value:!0});pZ.compressAndSend=pZ.sendWithHttp=pZ.MAX_RESPONSE_BODY_SIZE=void 0;var q3=V("zlib"),U3=V("stream"),E=mZ(),O3=R(),L3=dZ(),cZ=`OTel-OTLP-Exporter-JavaScript/${L3.VERSION}`;pZ.MAX_RESPONSE_BODY_SIZE=4194304;function H3(Z,$,Y,G,Q,W,U,z){return new Promise((K)=>{let I=new URL($);if(Q)Y["User-Agent"]=`${Q} ${cZ}`;else Y["User-Agent"]=cZ;let j=Z(I,{method:"POST",headers:Y,agent:W},(J)=>{let F=[],S=0;J.on("data",(D)=>{if(S+=D.length,S>pZ.MAX_RESPONSE_BODY_SIZE){let A0=Error(`OTLP export response body exceeded size limit of ${pZ.MAX_RESPONSE_BODY_SIZE} bytes`);K({status:"failure",error:A0}),J.destroy();return}F.push(D)}),J.on("end",()=>{if(J.statusCode&&J.statusCode<=299)K({status:"success",data:Buffer.concat(F)});else if(J.statusCode&&(0,E.isExportHTTPErrorRetryable)(J.statusCode))K({status:"retryable",retryInMillis:(0,E.parseRetryAfterToMills)(J.headers["retry-after"])});else{let D=new O3.OTLPExporterError(J.statusMessage,J.statusCode,Buffer.concat(F).toString());K({status:"failure",error:D})}}),J.on("error",(D)=>{if(J.statusCode&&J.statusCode<=299)K({status:"success"});else if(J.statusCode&&(0,E.isExportHTTPErrorRetryable)(J.statusCode))K({status:"retryable",error:D,retryInMillis:(0,E.parseRetryAfterToMills)(J.headers["retry-after"])});else K({status:"failure",error:D})})});j.setTimeout(z,()=>{j.destroy(),K({status:"retryable",error:Error("Request timed out")})}),j.on("error",(J)=>{if(I3(J))K({status:"retryable",error:J});else K({status:"failure",error:J})}),uZ(j,G,U,(J)=>{K({status:"failure",error:J})})})}pZ.sendWithHttp=H3;function uZ(Z,$,Y,G){let Q=A3(Y);if($==="gzip")Z.setHeader("Content-Encoding","gzip"),Q=Q.on("error",G).pipe(q3.createGzip()).on("error",G);Q.pipe(Z).on("error",G)}pZ.compressAndSend=uZ;function A3(Z){let $=new U3.Readable;return $.push(Z),$.push(null),$}function I3(Z){let $=new Set(["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT","EAI_AGAIN","ENOTFOUND","ENETUNREACH","EHOSTUNREACH"]);if("code"in Z&&typeof Z.code==="string")return $.has(Z.code);return!1}});var sZ=X((nZ)=>{Object.defineProperty(nZ,"__esModule",{value:!0});nZ.createHttpExporterTransport=void 0;var S3=iZ();class aZ{_utils=null;_parameters;constructor(Z){this._parameters=Z}async send(Z,$){let{agent:Y,request:G}=await this._loadUtils(),Q=await this._parameters.headers();return(0,S3.sendWithHttp)(G,this._parameters.url,Q,this._parameters.compression,this._parameters.userAgent,Y,Z,$)}shutdown(){}async _loadUtils(){let Z=this._utils;if(Z===null){let $=new URL(this._parameters.url).protocol,[Y,G]=await Promise.all([this._parameters.agentFactory($),R3($)]);Z=this._utils={agent:Y,request:G}}return Z}}async function R3(Z){let $=Z==="http:"?import("http"):import("https"),{request:Y}=await $;return Y}function M3(Z){return new aZ(Z)}nZ.createHttpExporterTransport=M3});var $0=X((eZ)=>{Object.defineProperty(eZ,"__esModule",{value:!0});eZ.createRetryingTransport=void 0;var A=B(),g=5,b3=1000,T3=5000,k3=1.5,oZ=0.2;function E3(){return Math.random()*(2*oZ)-oZ}class rZ{_transport;constructor(Z){this._transport=Z}retry(Z,$,Y){return new Promise((G,Q)=>{setTimeout(()=>{this._transport.send(Z,$).then(G,Q)},Y)})}async send(Z,$){let Y=g,G=b3,Q=Date.now()+$,W=await this._transport.send(Z,$);while(W.status==="retryable"&&Y>0){Y--;let U=Math.max(Math.min(G*(1+E3()),T3),0);G=G*k3;let z=W.retryInMillis??U,K=Q-Date.now();if(z>K)return A.diag.info(`Export retry time ${Math.round(z)}ms exceeds remaining timeout ${Math.round(K)}ms, not retrying further.`),W;A.diag.verbose(`Scheduling export retry in ${Math.round(z)}ms`),W=await this.retry(Z,K,z)}if(W.status==="success")A.diag.verbose(`Export succeeded after ${g-Y} retry attempts.`);else if(W.status==="retryable")A.diag.info(`Export failed after maximum retry attempts (${g}).`);else A.diag.info(`Export failed with non-retryable error: ${W.error}`);return W}shutdown(){return this._transport.shutdown()}}function y3(Z){return new rZ(Z.transport)}eZ.createRetryingTransport=y3});var Q0=X((Y0)=>{Object.defineProperty(Y0,"__esModule",{value:!0});Y0.createOtlpHttpExportDelegate=void 0;var x3=v(),h3=sZ(),C3=_(),_3=$0();function v3(Z,$){return(0,x3.createOtlpExportDelegate)({transport:(0,_3.createRetryingTransport)({transport:(0,h3.createHttpExporterTransport)(Z)}),serializer:$,promiseHandler:(0,C3.createBoundedQueueExportPromiseHandler)(Z)},{timeout:Z.timeoutMillis})}Y0.createOtlpHttpExportDelegate=v3});var d=X((w0)=>{Object.defineProperty(w0,"__esModule",{value:!0});w0.getSharedConfigurationFromEnvironment=void 0;var X0=M(),K0=B();function W0(Z){let $=(0,X0.getNumberFromEnv)(Z);if($!=null){if(Number.isFinite($)&&$>0)return $;K0.diag.warn(`Configuration: ${Z} is invalid, expected number greater than 0 (actual: ${$})`)}return}function m3(Z){let $=W0(`OTEL_EXPORTER_OTLP_${Z}_TIMEOUT`),Y=W0("OTEL_EXPORTER_OTLP_TIMEOUT");return $??Y}function J0(Z){let $=(0,X0.getStringFromEnv)(Z)?.trim();if($==null||$==="none"||$==="gzip")return $;K0.diag.warn(`Configuration: ${Z} is invalid, expected 'none' or 'gzip' (actual: '${$}')`);return}function f3(Z){let $=J0(`OTEL_EXPORTER_OTLP_${Z}_COMPRESSION`),Y=J0("OTEL_EXPORTER_OTLP_COMPRESSION");return $??Y}function g3(Z){return{timeoutMillis:m3(Z),compression:f3(Z)}}w0.getSharedConfigurationFromEnvironment=g3});var B0=X((D0)=>{Object.defineProperty(D0,"__esModule",{value:!0});D0.getNodeHttpConfigurationFromEnvironment=void 0;var d3=V("fs"),c3=V("path"),w=M(),y=B(),u3=d(),p3=H(),l3=k();function i3(Z){let $=(0,w.getStringFromEnv)(`OTEL_EXPORTER_OTLP_${Z}_HEADERS`),Y=(0,w.getStringFromEnv)("OTEL_EXPORTER_OTLP_HEADERS"),G=(0,w.parseKeyPairsIntoRecord)($),Q=(0,w.parseKeyPairsIntoRecord)(Y);if(Object.keys(G).length===0&&Object.keys(Q).length===0)return;return Object.assign({},(0,w.parseKeyPairsIntoRecord)(Y),(0,w.parseKeyPairsIntoRecord)($))}function a3(Z){try{return new URL(Z).toString()}catch{y.diag.warn(`Configuration: Could not parse environment-provided export URL: '${Z}', falling back to undefined`);return}}function n3(Z,$){try{new URL(Z)}catch{y.diag.warn(`Configuration: Could not parse environment-provided export URL: '${Z}', falling back to undefined`);return}if(!Z.endsWith("/"))Z=Z+"/";Z+=$;try{new URL(Z)}catch{y.diag.warn(`Configuration: Provided URL appended with '${$}' is not a valid URL, using 'undefined' instead of '${Z}'`);return}return Z}function t3(Z){let $=(0,w.getStringFromEnv)("OTEL_EXPORTER_OTLP_ENDPOINT");if($===void 0)return;return n3($,Z)}function s3(Z){let $=(0,w.getStringFromEnv)(`OTEL_EXPORTER_OTLP_${Z}_ENDPOINT`);if($===void 0)return;return a3($)}function c(Z,$,Y){let G=(0,w.getStringFromEnv)(Z),Q=(0,w.getStringFromEnv)($),W=G??Q;if(W!=null)try{return d3.readFileSync(c3.resolve(process.cwd(),W))}catch{y.diag.warn(Y);return}else return}function o3(Z){return c(`OTEL_EXPORTER_OTLP_${Z}_CLIENT_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE","Failed to read client certificate chain file")}function r3(Z){return c(`OTEL_EXPORTER_OTLP_${Z}_CLIENT_KEY`,"OTEL_EXPORTER_OTLP_CLIENT_KEY","Failed to read client certificate private key file")}function e3(Z){return c(`OTEL_EXPORTER_OTLP_${Z}_CERTIFICATE`,"OTEL_EXPORTER_OTLP_CERTIFICATE","Failed to read root certificate file")}function Z4(Z,$){return{...(0,u3.getSharedConfigurationFromEnvironment)(Z),url:s3(Z)??t3($),headers:(0,p3.wrapStaticHeadersInFunction)(i3(Z)),agentFactory:(0,l3.httpAgentFactoryFromOptions)({keepAlive:!0,ca:e3(Z),cert:o3(Z),key:r3(Z)})}}D0.getNodeHttpConfigurationFromEnvironment=Z4});var j0=X((N0)=>{Object.defineProperty(N0,"__esModule",{value:!0});N0.convertLegacyHeaders=void 0;var $4=H();function Y4(Z){if(typeof Z.headers==="function")return Z.headers;return(0,$4.wrapStaticHeadersInFunction)(Z.headers)}N0.convertLegacyHeaders=Y4});var L0=X((U0)=>{Object.defineProperty(U0,"__esModule",{value:!0});U0.convertLegacyHttpOptions=void 0;var G4=B(),q0=k(),Q4=u(),W4=B0(),J4=j0();function X4(Z){if(typeof Z.httpAgentOptions==="function")return Z.httpAgentOptions;let $=Z.httpAgentOptions;if(Z.keepAlive!=null)$={keepAlive:Z.keepAlive,...$};if($!=null)return(0,Q4.httpAgentFactoryFromOptions)($);else return}function K4(Z,$,Y,G){if(Z.metadata)G4.diag.warn("Metadata cannot be set when using http");return(0,q0.mergeOtlpNodeHttpConfigurationWithDefaults)({url:Z.url,headers:(0,J4.convertLegacyHeaders)(Z),concurrencyLimit:Z.concurrencyLimit,timeoutMillis:Z.timeoutMillis,compression:Z.compression,agentFactory:X4(Z),userAgent:Z.userAgent},(0,W4.getNodeHttpConfigurationFromEnvironment)($,Y),(0,q0.getNodeHttpConfigurationDefaults)(G,Y))}U0.convertLegacyHttpOptions=K4});var u=X((L)=>{Object.defineProperty(L,"__esModule",{value:!0});L.convertLegacyHttpOptions=L.getSharedConfigurationFromEnvironment=L.createOtlpHttpExportDelegate=L.httpAgentFactoryFromOptions=void 0;var w4=k();Object.defineProperty(L,"httpAgentFactoryFromOptions",{enumerable:!0,get:function(){return w4.httpAgentFactoryFromOptions}});var z4=Q0();Object.defineProperty(L,"createOtlpHttpExportDelegate",{enumerable:!0,get:function(){return z4.createOtlpHttpExportDelegate}});var D4=d();Object.defineProperty(L,"getSharedConfigurationFromEnvironment",{enumerable:!0,get:function(){return D4.getSharedConfigurationFromEnvironment}});var F4=L0();Object.defineProperty(L,"convertLegacyHttpOptions",{enumerable:!0,get:function(){return F4.convertLegacyHttpOptions}})});var H0=b(jZ(),1);function qZ(Z,$){let Y={attributes:O(Z.attributes,$),droppedAttributesCount:0},G=Z.schemaUrl;if(G&&G!=="")Y.schemaUrl=G;return Y}function UZ(Z,$){let Y={name:Z.name,version:Z.version};if(Z.attributes&&Object.keys(Z.attributes).length>0)Y.attributes=O(Z.attributes,$),Y.droppedAttributesCount=Z.droppedAttributesCount??0;return Y}function O(Z,$){return Object.keys(Z).map((Y)=>l0(Y,Z[Y],$))}function l0(Z,$,Y){return{key:Z,value:m($,Y)}}function m(Z,$){let Y=typeof Z;if(Y==="string")return{stringValue:Z};if(Y==="number"){if(!Number.isInteger(Z))return{doubleValue:Z};return{intValue:Z}}if(Y==="boolean")return{boolValue:Z};if(Z instanceof Uint8Array)return{bytesValue:$.encodeUint8Array(Z)};if(Array.isArray(Z)){let G=Array(Z.length);for(let Q=0;Q<Z.length;Q++)G[Q]=m(Z[Q],$);return{arrayValue:{values:G}}}if(Y==="object"&&Z!=null){let G=Object.keys(Z),Q=Array(G.length);for(let W=0;W<G.length;W++)Q[W]={key:G[W],value:m(Z[G[W]],$)};return{kvlistValue:{values:Q}}}return{}}var i0=256,a0=512;function OZ(Z,$){let Y=Z&255|i0;if($)Y|=a0;return Y}function n0(Z,$){let Y=Z.spanContext(),G=Z.status,Q=Z.parentSpanContext?.spanId?$.encodeSpanContext(Z.parentSpanContext?.spanId):void 0;return{traceId:$.encodeSpanContext(Y.traceId),spanId:$.encodeSpanContext(Y.spanId),parentSpanId:Q,traceState:Y.traceState?.serialize(),name:Z.name,kind:Z.kind==null?0:Z.kind+1,startTimeUnixNano:$.encodeHrTime(Z.startTime),endTimeUnixNano:$.encodeHrTime(Z.endTime),attributes:O(Z.attributes,$),droppedAttributesCount:Z.droppedAttributesCount,events:Z.events.map((W)=>s0(W,$)),droppedEventsCount:Z.droppedEventsCount,status:{code:G.code,message:G.message},links:Z.links.map((W)=>t0(W,$)),droppedLinksCount:Z.droppedLinksCount,flags:OZ(Y.traceFlags,Z.parentSpanContext?.isRemote)}}function t0(Z,$){return{attributes:Z.attributes?O(Z.attributes,$):[],spanId:$.encodeSpanContext(Z.context.spanId),traceId:$.encodeSpanContext(Z.context.traceId),traceState:Z.context.traceState?.serialize(),droppedAttributesCount:Z.droppedAttributesCount||0,flags:OZ(Z.context.traceFlags,Z.context.isRemote)}}function s0(Z,$){return{attributes:Z.attributes?O(Z.attributes,$):[],name:Z.name,timeUnixNano:$.encodeHrTime(Z.time),droppedAttributesCount:Z.droppedAttributesCount||0}}function LZ(Z,$){return{resourceSpans:r0(Z,$)}}function o0(Z){let $=new Map;for(let Y of Z){let G=$.get(Y.resource);if(!G)G=new Map,$.set(Y.resource,G);let Q=`${Y.instrumentationScope.name}@${Y.instrumentationScope.version||""}:${Y.instrumentationScope.schemaUrl||""}`,W=G.get(Q);if(!W)W=[],G.set(Q,W);W.push(Y)}return $}function r0(Z,$){let Y=o0(Z),G=[],Q=Y.entries(),W=Q.next();while(!W.done){let[U,z]=W.value,K=[],I=z.values(),P=I.next();while(!P.done){let F=P.value;if(F.length>0){let S=F.map((D)=>n0(D,$));K.push({scope:UZ(F[0].instrumentationScope,$),spans:S,schemaUrl:F[0].instrumentationScope.schemaUrl})}P=I.next()}let j=qZ(U,$),J={resource:j,scopeSpans:K,schemaUrl:j.schemaUrl};G.push(J),W=Q.next()}return G}var AZ=b(M(),1);function e0(Z){let $=BigInt(1e9);return BigInt(Math.trunc(Z[0]))*$+BigInt(Math.trunc(Z[1]))}function Z3(Z){return e0(Z).toString()}var $3=typeof BigInt<"u"?Z3:AZ.hrTimeToNanoseconds;function HZ(Z){return Z}var IZ={encodeHrTime:$3,encodeSpanContext:HZ,encodeOptionalSpanContext:HZ,encodeUint8Array:(Z)=>{if(typeof Buffer<"u")return Buffer.from(Z).toString("base64");let $=Array(Z.length);for(let Y=0;Y<Z.length;Y++)$[Y]=String.fromCharCode(Z[Y]);return btoa($.join(""))}};var PZ=b(B(),1),T={serializeRequest:(Z)=>{let $=LZ(Z,IZ);return new TextEncoder().encode(JSON.stringify($))},deserializeResponse:(Z)=>{if(Z.length===0)return{};let $=new TextDecoder;try{return JSON.parse($.decode(Z))}catch(Y){return PZ.diag.warn(`Failed to parse trace export response: ${Y.message}. Returning empty response`),{}}}};var x=b(u(),1);class h extends H0.OTLPExporterBase{constructor(Z={}){super(x.createOtlpHttpExportDelegate(x.convertLegacyHttpOptions(Z,"TRACES","v1/traces",{"Content-Type":"application/json"}),T))}}export{h as OTLPTraceExporter};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import"./chunk-s2za1y84.js";var E="./tree-sitter-markdown_inline-j5349f42.wasm";export{E as default};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{mr as C}from"./chunk-1p34bx7c.js";import{spawn as E}from"child_process";async function H(z){if(process.platform==="linux"){if(await new Promise((D)=>{let A=!1,x=(j)=>{if(A)return;A=!0,D(j)};try{let j=E("xdg-open",[z],{stdio:"ignore",detached:!0});j.once("error",()=>x(!1)),j.once("spawn",()=>{j.unref(),x(!0)})}catch{x(!1)}}))return!0}try{let q=await C(z);if(!q)return!1;return q.once("error",()=>{}),!0}catch{return!1}}
3
- export{H as Ch};
2
+ import{pr as C}from"./chunk-w01gjnty.js";import{spawn as E}from"child_process";async function H(z){if(process.platform==="linux"){if(await new Promise((D)=>{let A=!1,x=(j)=>{if(A)return;A=!0,D(j)};try{let j=E("xdg-open",[z],{stdio:"ignore",detached:!0});j.once("error",()=>x(!1)),j.once("spawn",()=>{j.unref(),x(!0)})}catch{x(!1)}}))return!0}try{let q=await C(z);if(!q)return!1;return q.once("error",()=>{}),!0}catch{return!1}}
3
+ export{H as Eh};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import"./chunk-s2za1y84.js";var _="./libopentui-0r5w9btr.so";export{_ as default};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{xP as q}from"./chunk-kc3hpmr2.js";import{zP as k}from"./chunk-hh4c02fh.js";var z=k((b)=>{Object.defineProperty(b,"__esModule",{value:!0});b.getMachineId=void 0;var v=q();async function w(){v.diag.debug("could not read machine-id: unsupported platform");return}b.getMachineId=w});export default z();
2
+ import{BP as q}from"./chunk-qkwhgfjt.js";import{DP as k}from"./chunk-s2za1y84.js";var z=k((b)=>{Object.defineProperty(b,"__esModule",{value:!0});b.getMachineId=void 0;var v=q();async function w(){v.diag.debug("could not read machine-id: unsupported platform");return}b.getMachineId=w});export default z();
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Dd as y,Fd as T,Gd as t,Hd as O,Id as l,Kd as v,Ld as Q,Md as X,Nd as J}from"./chunk-8h9r6c8g.js";import"./chunk-9jf67xb0.js";import{Pd as w}from"./chunk-9xvctnjr.js";import{Tf as f}from"./chunk-gen6f3dn.js";import{Ng as Y,Og as mt,Pg as pt,Qg as st,Rg as et,Sg as ft,Tg as E,sh as q}from"./chunk-va4davgy.js";import{uh as Mt}from"./chunk-hg563h5r.js";import"./chunk-j1a64ade.js";import"./chunk-bd21p9zz.js";import"./chunk-p54bzjtv.js";import"./chunk-ha1w0xzh.js";import"./chunk-ecwz9nhs.js";import"./chunk-5rkmhzq0.js";import{Dj as L,dl as F,wj as nt}from"./chunk-7mhffm9f.js";import"./chunk-r012q335.js";import{Nl as $}from"./chunk-0z3z0gk1.js";import"./chunk-g7vkkmsk.js";import"./chunk-m8djypsy.js";import"./chunk-w7p2x973.js";import{Jo as P,Ko as h}from"./chunk-wmw2gne9.js";import"./chunk-y3n31nnx.js";import"./chunk-3z1y040p.js";import"./chunk-kkvb2c2z.js";import"./chunk-3tdqsm5c.js";import"./chunk-a5zjrwqy.js";import"./chunk-fhng5her.js";import"./chunk-dkv2mg97.js";import"./chunk-bf146hz2.js";import"./chunk-t488d66k.js";import"./chunk-cqtkxwd8.js";import"./chunk-srf73nm4.js";import"./chunk-yzdty5t9.js";import"./chunk-1p34bx7c.js";import"./chunk-q3x4x2tq.js";import"./chunk-7dckfame.js";import"./chunk-j1veq3zr.js";import"./chunk-0pvbk8ks.js";import"./chunk-tk3bve0x.js";import"./chunk-0w4v0fbs.js";import"./chunk-wf09j72q.js";import"./chunk-hbnr0j7h.js";import"./chunk-ep8zn49w.js";import"./chunk-f3kjp838.js";import"./chunk-tsn1jkr7.js";import{Ts as g,pt as A}from"./chunk-zk8n8hnh.js";import{Tt as D}from"./chunk-1jh5p5qw.js";import"./chunk-kaeyhw2n.js";import"./chunk-f89gntcy.js";import"./chunk-bky5a42k.js";import"./chunk-r7xp0xcn.js";import"./chunk-6g3m7yxf.js";import"./chunk-v2kyarwz.js";import{mI as a}from"./chunk-dkm7x8rj.js";import"./chunk-9pe4agdz.js";import"./chunk-kc3hpmr2.js";import{yP as ut}from"./chunk-hh4c02fh.js";import W from"path";function G(o){switch(o){case"authenticated":return"\u2713";case"expired":return"\u26A0";case"not_authenticated":return"\u2717"}}function H(o){switch(o){case"authenticated":return"authenticated";case"expired":return"expired";case"not_authenticated":return"not authenticated"}}function N(o){return typeof o==="object"&&o!==null&&"type"in o}function k(o){return N(o)&&o.type==="remote"}function B(o){return Object.entries(o.mcp??{}).filter((e)=>N(e[1]))}function U(o,e){let r=o.mcp_origins?.[e];if(!r)return"qitqode";let i=A.Path.home,m=r.source===i?"~":r.source.startsWith(i+W.sep)?"~"+r.source.slice(i.length):r.source;return`${r.type}:${m}`}function C(o){return B(o).filter((e)=>k(e[1])&&e[1].oauth!==!1)}async function I(){return q.runPromise(a.gen(function*(){let o=yield*F.Service,e=yield*E.Service,r=yield*o.get(),i=yield*e.status(),m=yield*a.all(Object.fromEntries(B(r).map(([p])=>[p,e.hasStoredTokens(p)])),{concurrency:"unbounded"});return{config:r,statuses:i,stored:m}}))}async function S(){return q.runPromise(a.gen(function*(){let o=yield*F.Service,e=yield*E.Service,r=yield*o.get(),i=yield*a.all(Object.fromEntries(C(r).map(([m])=>[m,e.getAuthStatus(m)])),{concurrency:"unbounded"});return{config:r,auth:i}}))}async function V(o,e=!1){let r=[W.join(o,"qitqode.json"),W.join(o,"qitqode.jsonc")];if(!e)r.push(W.join(o,".qitqode","qitqode.json"),W.join(o,".qitqode","qitqode.jsonc"));for(let i of r)if(await D.exists(i))return i;return r[0]}async function R(o,e,r){let i="{}";if(await D.exists(r))i=await D.readText(r);let m=P(i,["mcp",o],e,{formattingOptions:{tabSize:2,insertSpaces:!0}});return await D.write(r,h(i,m)),r}var tt=ut(Mt(),1);function yt(o){let e=tt.parse(o);if(!e.every((r)=>typeof r==="string"))throw Error("Shell operators are not supported; enter only the command and its arguments");if(e.length===0)throw Error("Command is required");return e}var ot=w({command:"add",describe:"add an MCP server",async handler(){await $.provide({directory:process.cwd(),async fn(){f.empty(),O("Add MCP server");let o=$.project,[e,r]=await Promise.all([V($.worktree),V(A.Path.config,!0)]),i=r;if(o.vcs==="git"){let c=await X({message:"Location",options:[{label:"Current project",value:e,hint:e},{label:"Global",value:r,hint:r}]});if(y(c))throw new f.CancelledError;i=c}let m=await J({message:"Enter MCP server name",validate:(c)=>c&&c.length>0?void 0:"Required"});if(y(m))throw new f.CancelledError;let p=await X({message:"Select MCP server type",options:[{label:"Local",value:"local",hint:"Run a local command"},{label:"Remote",value:"remote",hint:"Connect to a remote URL"}]});if(y(p))throw new f.CancelledError;if(p==="local"){let c=await J({message:"Enter command to run",placeholder:"e.g., qode x @modelcontextprotocol/server-filesystem",validate:(s)=>s&&s.length>0?void 0:"Required"});if(y(c))throw new f.CancelledError;let u;try{u=yt(c)}catch(s){t.error(s instanceof Error?s.message:"Invalid command"),l("MCP server was not added");return}await R(m,{type:"local",command:u},i),t.success(`MCP server "${m}" added to ${i}`),l("MCP server added successfully");return}if(p==="remote"){let c=await J({message:"Enter MCP server URL",placeholder:"e.g., https://example.com/mcp",validate:(s)=>{if(!s)return"Required";if(s.length===0)return"Required";return URL.canParse(s)?void 0:"Invalid URL"}});if(y(c))throw new f.CancelledError;let u=await T({message:"Does this server require OAuth authentication?",initialValue:!1});if(y(u))throw new f.CancelledError;let n;if(u){let s=await T({message:"Do you have a pre-registered client ID?",initialValue:!1});if(y(s))throw new f.CancelledError;if(s){let d=await J({message:"Enter client ID",validate:(j)=>j&&j.length>0?void 0:"Required"});if(y(d))throw new f.CancelledError;let M=await T({message:"Do you have a client secret?",initialValue:!1});if(y(M))throw new f.CancelledError;let _;if(M){let j=await v({message:"Enter client secret"});if(y(j))throw new f.CancelledError;_=j}n={type:"remote",url:c,oauth:{clientId:d,..._&&{clientSecret:_}}}}else n={type:"remote",url:c,oauth:{}}}else n={type:"remote",url:c,oauth:!1};await R(m,n,i),t.success(`MCP server "${m}" added to ${i}`)}l("MCP server added successfully")}})}});var it=w({command:"list",aliases:["ls"],describe:"list MCP servers and their status",async handler(){await $.provide({directory:process.cwd(),async fn(){f.empty(),O("MCP Servers");let{config:o,statuses:e,stored:r}=await I(),i=B(o);if(i.length===0){t.warn("No MCP servers configured"),l("Add servers with: qode mcp add");return}for(let[m,p]of i){let c=e[m],u=k(p)&&p.oauth!==!1,n=r[m],s,d,M="";if(!c)s="\u25CB",d="not initialized";else if(c.status==="connected"){if(s="\u2713",d="connected",u&&n)M=" (OAuth)"}else if(c.status==="disabled")s="\u25CB",d="disabled";else if(c.status==="pending")s="\u25CB",d="pending approval";else if(c.status==="needs_auth")s="\u26A0",d="needs authentication";else if(c.status==="needs_client_registration")s="\u2717",d="needs client registration",M=`
2
+ import{Ed as y,Gd as T,Hd as t,Id as O,Jd as l,Ld as v,Md as Q,Nd as X,Od as J}from"./chunk-y2ch07yv.js";import"./chunk-kkdgzeva.js";import{Qd as w}from"./chunk-g4qwkcdv.js";import{Uf as f}from"./chunk-0ndvy0nh.js";import{Pg as Y,Qg as mt,Rg as pt,Sg as st,Tg as et,Ug as ft,Vg as E,uh as q}from"./chunk-kbjwdv1x.js";import{wh as Mt}from"./chunk-ek1fawsj.js";import"./chunk-3w64fpwn.js";import"./chunk-pfn1db1m.js";import"./chunk-h56jxxvj.js";import"./chunk-x36jhtex.js";import"./chunk-fk8cctjy.js";import"./chunk-fxb6vjcb.js";import{Ej as L,el as F,yj as nt}from"./chunk-njzpswgt.js";import"./chunk-2cm91ktc.js";import{Ol as $}from"./chunk-ygwe0vf1.js";import"./chunk-1qbm1k9y.js";import"./chunk-3rgct4bd.js";import"./chunk-atbm0pnt.js";import{Ko as P,Lo as h}from"./chunk-s86fj82v.js";import"./chunk-58gp7wbg.js";import"./chunk-w4hbw37v.js";import"./chunk-qmhcbdkg.js";import"./chunk-7qxn24qa.js";import"./chunk-vx837ete.js";import"./chunk-ppvmy940.js";import"./chunk-1n4w8dya.js";import"./chunk-7ryv0f5h.js";import"./chunk-p31yg62z.js";import"./chunk-5mec6cde.js";import"./chunk-cqtkxwd8.js";import"./chunk-0mekr486.js";import"./chunk-x3931we7.js";import"./chunk-w01gjnty.js";import"./chunk-nxjbbq5h.js";import"./chunk-z559gc3n.js";import"./chunk-kbyk7hyn.js";import"./chunk-6h2faxs9.js";import"./chunk-4nck07pc.js";import"./chunk-d2n09yvh.js";import"./chunk-f3c9667r.js";import"./chunk-qpv4438m.js";import"./chunk-hybq019j.js";import"./chunk-z2q3mg73.js";import"./chunk-n07rsssz.js";import{Rt as A,Ws as g}from"./chunk-08y06vgt.js";import{tu as D}from"./chunk-9p83me3p.js";import"./chunk-9wm41z2f.js";import"./chunk-48j09m6e.js";import"./chunk-se195e52.js";import"./chunk-vw673y0t.js";import"./chunk-tedrfa7d.js";import{qI as a}from"./chunk-ynfbz3sz.js";import"./chunk-rs0nx844.js";import"./chunk-qkwhgfjt.js";import{CP as ut}from"./chunk-s2za1y84.js";import W from"path";function G(o){switch(o){case"authenticated":return"\u2713";case"expired":return"\u26A0";case"not_authenticated":return"\u2717"}}function H(o){switch(o){case"authenticated":return"authenticated";case"expired":return"expired";case"not_authenticated":return"not authenticated"}}function N(o){return typeof o==="object"&&o!==null&&"type"in o}function k(o){return N(o)&&o.type==="remote"}function B(o){return Object.entries(o.mcp??{}).filter((e)=>N(e[1]))}function U(o,e){let r=o.mcp_origins?.[e];if(!r)return"qitqode";let i=A.Path.home,m=r.source===i?"~":r.source.startsWith(i+W.sep)?"~"+r.source.slice(i.length):r.source;return`${r.type}:${m}`}function C(o){return B(o).filter((e)=>k(e[1])&&e[1].oauth!==!1)}async function I(){return q.runPromise(a.gen(function*(){let o=yield*F.Service,e=yield*E.Service,r=yield*o.get(),i=yield*e.status(),m=yield*a.all(Object.fromEntries(B(r).map(([p])=>[p,e.hasStoredTokens(p)])),{concurrency:"unbounded"});return{config:r,statuses:i,stored:m}}))}async function S(){return q.runPromise(a.gen(function*(){let o=yield*F.Service,e=yield*E.Service,r=yield*o.get(),i=yield*a.all(Object.fromEntries(C(r).map(([m])=>[m,e.getAuthStatus(m)])),{concurrency:"unbounded"});return{config:r,auth:i}}))}async function V(o,e=!1){let r=[W.join(o,"qitqode.json"),W.join(o,"qitqode.jsonc")];if(!e)r.push(W.join(o,".qitqode","qitqode.json"),W.join(o,".qitqode","qitqode.jsonc"));for(let i of r)if(await D.exists(i))return i;return r[0]}async function R(o,e,r){let i="{}";if(await D.exists(r))i=await D.readText(r);let m=P(i,["mcp",o],e,{formattingOptions:{tabSize:2,insertSpaces:!0}});return await D.write(r,h(i,m)),r}var tt=ut(Mt(),1);function yt(o){let e=tt.parse(o);if(!e.every((r)=>typeof r==="string"))throw Error("Shell operators are not supported; enter only the command and its arguments");if(e.length===0)throw Error("Command is required");return e}var ot=w({command:"add",describe:"add an MCP server",async handler(){await $.provide({directory:process.cwd(),async fn(){f.empty(),O("Add MCP server");let o=$.project,[e,r]=await Promise.all([V($.worktree),V(A.Path.config,!0)]),i=r;if(o.vcs==="git"){let c=await X({message:"Location",options:[{label:"Current project",value:e,hint:e},{label:"Global",value:r,hint:r}]});if(y(c))throw new f.CancelledError;i=c}let m=await J({message:"Enter MCP server name",validate:(c)=>c&&c.length>0?void 0:"Required"});if(y(m))throw new f.CancelledError;let p=await X({message:"Select MCP server type",options:[{label:"Local",value:"local",hint:"Run a local command"},{label:"Remote",value:"remote",hint:"Connect to a remote URL"}]});if(y(p))throw new f.CancelledError;if(p==="local"){let c=await J({message:"Enter command to run",placeholder:"e.g., qode x @modelcontextprotocol/server-filesystem",validate:(s)=>s&&s.length>0?void 0:"Required"});if(y(c))throw new f.CancelledError;let u;try{u=yt(c)}catch(s){t.error(s instanceof Error?s.message:"Invalid command"),l("MCP server was not added");return}await R(m,{type:"local",command:u},i),t.success(`MCP server "${m}" added to ${i}`),l("MCP server added successfully");return}if(p==="remote"){let c=await J({message:"Enter MCP server URL",placeholder:"e.g., https://example.com/mcp",validate:(s)=>{if(!s)return"Required";if(s.length===0)return"Required";return URL.canParse(s)?void 0:"Invalid URL"}});if(y(c))throw new f.CancelledError;let u=await T({message:"Does this server require OAuth authentication?",initialValue:!1});if(y(u))throw new f.CancelledError;let n;if(u){let s=await T({message:"Do you have a pre-registered client ID?",initialValue:!1});if(y(s))throw new f.CancelledError;if(s){let d=await J({message:"Enter client ID",validate:(j)=>j&&j.length>0?void 0:"Required"});if(y(d))throw new f.CancelledError;let M=await T({message:"Do you have a client secret?",initialValue:!1});if(y(M))throw new f.CancelledError;let _;if(M){let j=await v({message:"Enter client secret"});if(y(j))throw new f.CancelledError;_=j}n={type:"remote",url:c,oauth:{clientId:d,..._&&{clientSecret:_}}}}else n={type:"remote",url:c,oauth:{}}}else n={type:"remote",url:c,oauth:!1};await R(m,n,i),t.success(`MCP server "${m}" added to ${i}`)}l("MCP server added successfully")}})}});var it=w({command:"list",aliases:["ls"],describe:"list MCP servers and their status",async handler(){await $.provide({directory:process.cwd(),async fn(){f.empty(),O("MCP Servers");let{config:o,statuses:e,stored:r}=await I(),i=B(o);if(i.length===0){t.warn("No MCP servers configured"),l("Add servers with: qode mcp add");return}for(let[m,p]of i){let c=e[m],u=k(p)&&p.oauth!==!1,n=r[m],s,d,M="";if(!c)s="\u25CB",d="not initialized";else if(c.status==="connected"){if(s="\u2713",d="connected",u&&n)M=" (OAuth)"}else if(c.status==="disabled")s="\u25CB",d="disabled";else if(c.status==="pending")s="\u25CB",d="pending approval";else if(c.status==="needs_auth")s="\u26A0",d="needs authentication";else if(c.status==="needs_client_registration")s="\u2717",d="needs client registration",M=`
3
3
  `+c.error;else s="\u2717",d="failed",M=`
4
4
  `+c.error;let _=p.type==="remote"?L.redactString(p.url):L.redactCommand(p.command).join(" ");t.info(`${s} ${m} ${f.Style.TEXT_DIM}${d} ${U(o,m)}${M}
5
5
  ${f.Style.TEXT_DIM}${_}`)}l(`${i.length} server(s)`)}})}});var dt=w({command:"auth [name]",describe:"authenticate with an OAuth-enabled MCP server",builder:(o)=>o.positional("name",{describe:"name of the MCP server",type:"string"}).command(ct),async handler(o){await $.provide({directory:process.cwd(),async fn(){f.empty(),O("MCP OAuth Authentication");let{config:e,auth:r}=await S(),i=e.mcp??{},m=C(e);if(m.length===0){t.warn("No OAuth-capable MCP servers configured"),t.info("Remote MCP servers support OAuth by default. Add a remote server in qitqode.json:"),t.info(`
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{GP as t}from"./chunk-s2za1y84.js";var e=await import("./chunk-97exhw9j.js",{with:{type:"file"}}),a=e.default;export{a as default};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ import{Tu as o}from"./chunk-se195e52.js";var e=o;
3
+ export{e as vu};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{xP as T}from"./chunk-kc3hpmr2.js";import{CP as J,zP as G}from"./chunk-hh4c02fh.js";var K=G((Q)=>{Object.defineProperty(Q,"__esModule",{value:!0});Q.AbstractAsyncHooksContextManager=void 0;var b=J("events"),f=["addListener","on","once","prependListener","prependOnceListener"];class P{bind(q,j){if(j instanceof b.EventEmitter)return this._bindEventEmitter(q,j);if(typeof j==="function")return this._bindFunction(q,j);return j}_bindFunction(q,j){let z=this,w=function(...B){return z.with(q,()=>j.apply(this,B))};return Object.defineProperty(w,"length",{enumerable:!1,configurable:!0,writable:!1,value:j.length}),w}_bindEventEmitter(q,j){if(this._getPatchMap(j)!==void 0)return j;if(this._createPatchMap(j),f.forEach((w)=>{if(j[w]===void 0)return;j[w]=this._patchAddListener(j,j[w],q)}),typeof j.removeListener==="function")j.removeListener=this._patchRemoveListener(j,j.removeListener);if(typeof j.off==="function")j.off=this._patchRemoveListener(j,j.off);if(typeof j.removeAllListeners==="function")j.removeAllListeners=this._patchRemoveAllListeners(j,j.removeAllListeners);return j}_patchRemoveListener(q,j){let z=this;return function(w,B){let D=z._getPatchMap(q)?.[w];if(D===void 0)return j.call(this,w,B);let E=D.get(B);return j.call(this,w,E||B)}}_patchRemoveAllListeners(q,j){let z=this;return function(w){let B=z._getPatchMap(q);if(B!==void 0){if(arguments.length===0)z._createPatchMap(q);else if(B[w]!==void 0)delete B[w]}return j.apply(this,arguments)}}_patchAddListener(q,j,z){let w=this;return function(B,D){if(w._wrapped)return j.call(this,B,D);let E=w._getPatchMap(q);if(E===void 0)E=w._createPatchMap(q);let F=E[B];if(F===void 0)F=new WeakMap,E[B]=F;let O=w.bind(z,D);F.set(D,O),w._wrapped=!0;try{return j.call(this,B,O)}finally{w._wrapped=!1}}}_createPatchMap(q){let j=Object.create(null);return q[this._kOtListeners]=j,j}_getPatchMap(q){return q[this._kOtListeners]}_kOtListeners=Symbol("OtListeners");_wrapped=!1}Q.AbstractAsyncHooksContextManager=P});var Y=G((V)=>{Object.defineProperty(V,"__esModule",{value:!0});V.AsyncHooksContextManager=void 0;var u=T(),L=J("async_hooks"),N=K();class U extends N.AbstractAsyncHooksContextManager{_asyncHook;_contexts=new Map;_stack=[];constructor(){super();this._asyncHook=L.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){return this._stack[this._stack.length-1]??u.ROOT_CONTEXT}with(q,j,z,...w){this._enterContext(q);try{return j.call(z,...w)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(q,j){if(j==="TIMERWRAP")return;let z=this._stack[this._stack.length-1];if(z!==void 0)this._contexts.set(q,z)}_destroy(q){this._contexts.delete(q)}_before(q){let j=this._contexts.get(q);if(j!==void 0)this._enterContext(j)}_after(){this._exitContext()}_enterContext(q){this._stack.push(q)}_exitContext(){this._stack.pop()}}V.AsyncHooksContextManager=U});var S=G(($)=>{Object.defineProperty($,"__esModule",{value:!0});$.AsyncLocalStorageContextManager=void 0;var H=T(),k=J("async_hooks"),_=K();class Z extends _.AbstractAsyncHooksContextManager{_asyncLocalStorage;constructor(){super();this._asyncLocalStorage=new k.AsyncLocalStorage}active(){return this._asyncLocalStorage.getStore()??H.ROOT_CONTEXT}with(q,j,z,...w){let B=z==null?j:j.bind(z);return this._asyncLocalStorage.run(q,B,...w)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}}$.AsyncLocalStorageContextManager=Z});var h=G((I)=>{Object.defineProperty(I,"__esModule",{value:!0});I.AsyncLocalStorageContextManager=I.AsyncHooksContextManager=void 0;var C=Y();Object.defineProperty(I,"AsyncHooksContextManager",{enumerable:!0,get:function(){return C.AsyncHooksContextManager}});var y=S();Object.defineProperty(I,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return y.AsyncLocalStorageContextManager}})});export default h();
2
+ import{BP as T}from"./chunk-qkwhgfjt.js";import{DP as G,GP as J}from"./chunk-s2za1y84.js";var K=G((Q)=>{Object.defineProperty(Q,"__esModule",{value:!0});Q.AbstractAsyncHooksContextManager=void 0;var b=J("events"),f=["addListener","on","once","prependListener","prependOnceListener"];class P{bind(q,j){if(j instanceof b.EventEmitter)return this._bindEventEmitter(q,j);if(typeof j==="function")return this._bindFunction(q,j);return j}_bindFunction(q,j){let z=this,w=function(...B){return z.with(q,()=>j.apply(this,B))};return Object.defineProperty(w,"length",{enumerable:!1,configurable:!0,writable:!1,value:j.length}),w}_bindEventEmitter(q,j){if(this._getPatchMap(j)!==void 0)return j;if(this._createPatchMap(j),f.forEach((w)=>{if(j[w]===void 0)return;j[w]=this._patchAddListener(j,j[w],q)}),typeof j.removeListener==="function")j.removeListener=this._patchRemoveListener(j,j.removeListener);if(typeof j.off==="function")j.off=this._patchRemoveListener(j,j.off);if(typeof j.removeAllListeners==="function")j.removeAllListeners=this._patchRemoveAllListeners(j,j.removeAllListeners);return j}_patchRemoveListener(q,j){let z=this;return function(w,B){let D=z._getPatchMap(q)?.[w];if(D===void 0)return j.call(this,w,B);let E=D.get(B);return j.call(this,w,E||B)}}_patchRemoveAllListeners(q,j){let z=this;return function(w){let B=z._getPatchMap(q);if(B!==void 0){if(arguments.length===0)z._createPatchMap(q);else if(B[w]!==void 0)delete B[w]}return j.apply(this,arguments)}}_patchAddListener(q,j,z){let w=this;return function(B,D){if(w._wrapped)return j.call(this,B,D);let E=w._getPatchMap(q);if(E===void 0)E=w._createPatchMap(q);let F=E[B];if(F===void 0)F=new WeakMap,E[B]=F;let O=w.bind(z,D);F.set(D,O),w._wrapped=!0;try{return j.call(this,B,O)}finally{w._wrapped=!1}}}_createPatchMap(q){let j=Object.create(null);return q[this._kOtListeners]=j,j}_getPatchMap(q){return q[this._kOtListeners]}_kOtListeners=Symbol("OtListeners");_wrapped=!1}Q.AbstractAsyncHooksContextManager=P});var Y=G((V)=>{Object.defineProperty(V,"__esModule",{value:!0});V.AsyncHooksContextManager=void 0;var u=T(),L=J("async_hooks"),N=K();class U extends N.AbstractAsyncHooksContextManager{_asyncHook;_contexts=new Map;_stack=[];constructor(){super();this._asyncHook=L.createHook({init:this._init.bind(this),before:this._before.bind(this),after:this._after.bind(this),destroy:this._destroy.bind(this),promiseResolve:this._destroy.bind(this)})}active(){return this._stack[this._stack.length-1]??u.ROOT_CONTEXT}with(q,j,z,...w){this._enterContext(q);try{return j.call(z,...w)}finally{this._exitContext()}}enable(){return this._asyncHook.enable(),this}disable(){return this._asyncHook.disable(),this._contexts.clear(),this._stack=[],this}_init(q,j){if(j==="TIMERWRAP")return;let z=this._stack[this._stack.length-1];if(z!==void 0)this._contexts.set(q,z)}_destroy(q){this._contexts.delete(q)}_before(q){let j=this._contexts.get(q);if(j!==void 0)this._enterContext(j)}_after(){this._exitContext()}_enterContext(q){this._stack.push(q)}_exitContext(){this._stack.pop()}}V.AsyncHooksContextManager=U});var S=G(($)=>{Object.defineProperty($,"__esModule",{value:!0});$.AsyncLocalStorageContextManager=void 0;var H=T(),k=J("async_hooks"),_=K();class Z extends _.AbstractAsyncHooksContextManager{_asyncLocalStorage;constructor(){super();this._asyncLocalStorage=new k.AsyncLocalStorage}active(){return this._asyncLocalStorage.getStore()??H.ROOT_CONTEXT}with(q,j,z,...w){let B=z==null?j:j.bind(z);return this._asyncLocalStorage.run(q,B,...w)}enable(){return this}disable(){return this._asyncLocalStorage.disable(),this}}$.AsyncLocalStorageContextManager=Z});var h=G((I)=>{Object.defineProperty(I,"__esModule",{value:!0});I.AsyncLocalStorageContextManager=I.AsyncHooksContextManager=void 0;var C=Y();Object.defineProperty(I,"AsyncHooksContextManager",{enumerable:!0,get:function(){return C.AsyncHooksContextManager}});var y=S();Object.defineProperty(I,"AsyncLocalStorageContextManager",{enumerable:!0,get:function(){return y.AsyncLocalStorageContextManager}})});export default h();
@@ -1,6 +1,6 @@
1
1
  // @bun
2
- import{we as M}from"./chunk-1xyn0sp2.js";import{ze as D}from"./chunk-3nhqd8wg.js";import{Ae as B}from"./chunk-fkvccmgk.js";import{uf as d,wf as w}from"./chunk-jbd9k041.js";import{yP as n}from"./chunk-hh4c02fh.js";var R=n(D(),1),i=n(d(),1),A=n(M(),1);import N from"fs/promises";var S=n(d(),1);var _="169.254.170.2",p="169.254.170.23",u="[fd00:ec2::23]",g=(e,c)=>{if(e.protocol==="https:")return;if(e.hostname===_||e.hostname===p||e.hostname===u)return;if(e.hostname.includes("[")){if(e.hostname==="[::1]"||e.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(e.hostname==="localhost")return;let a=e.hostname.split("."),r=(t)=>{let s=parseInt(t,10);return 0<=s&&s<=255};if(a[0]==="127"&&r(a[1])&&r(a[2])&&r(a[3])&&a.length===4)return}throw new S.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
2
+ import{xe as M}from"./chunk-hyckncza.js";import{Ae as D}from"./chunk-z4ae6jmb.js";import{Be as B}from"./chunk-xak2r993.js";import{vf as d,xf as w}from"./chunk-5ymj2q6j.js";import{CP as n}from"./chunk-s2za1y84.js";var R=n(D(),1),i=n(d(),1),A=n(M(),1);import N from"fs/promises";var S=n(d(),1);var _="169.254.170.2",p="169.254.170.23",u="[fd00:ec2::23]",g=(e,c)=>{if(e.protocol==="https:")return;if(e.hostname===_||e.hostname===p||e.hostname===u)return;if(e.hostname.includes("[")){if(e.hostname==="[::1]"||e.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(e.hostname==="localhost")return;let a=e.hostname.split("."),r=(t)=>{let s=parseInt(t,10);return 0<=s&&s<=255};if(a[0]==="127"&&r(a[1])&&r(a[2])&&r(a[3])&&a.length===4)return}throw new S.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
3
3
  - loopback CIDR 127.0.0.0/8 or [::1/128]
4
4
  - ECS container host 169.254.170.2
5
5
  - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:c})};var f=n(d(),1),I=n(B(),1),P=n(w(),1),K=n(w(),1);function x(e){return new I.HttpRequest({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((c,[a,r])=>{return c[a]=r,c},{}),fragment:e.hash})}async function E(e,c){let r=await K.sdkStreamMixin(e.body).transformToString();if(e.statusCode===200){let t=JSON.parse(r);if(typeof t.AccessKeyId!=="string"||typeof t.SecretAccessKey!=="string"||typeof t.Token!=="string"||typeof t.Expiration!=="string")throw new f.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:c});return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,sessionToken:t.Token,expiration:P.parseRfc3339DateTime(t.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let t={};try{t=JSON.parse(r)}catch(s){}throw Object.assign(new f.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:c}),{Code:t.Code,Message:t.Message})}throw new f.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:c})}var T=(e,c,a)=>{return async()=>{for(let r=0;r<c;++r)try{return await e()}catch(t){await new Promise((s)=>setTimeout(s,a))}return await e()}};var j="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",J="http://169.254.170.2",$="AWS_CONTAINER_CREDENTIALS_FULL_URI",G="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",H="AWS_CONTAINER_AUTHORIZATION_TOKEN",k=(e={})=>{e.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let c,a=e.awsContainerCredentialsRelativeUri??process.env[j],r=e.awsContainerCredentialsFullUri??process.env[$],t=e.awsContainerAuthorizationToken??process.env[H],s=e.awsContainerAuthorizationTokenFile??process.env[G],m=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?.warn?console.warn:e.logger.warn.bind(e.logger);if(a&&r)m("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),m("awsContainerCredentialsFullUri will take precedence.");if(t&&s)m("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),m("awsContainerAuthorizationToken will take precedence.");if(r)c=r;else if(a)c=`${J}${a}`;else throw new i.CredentialsProviderError(`No HTTP credential provider host provided.
6
- Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:e.logger});let y=new URL(c);g(y,e.logger);let C=A.NodeHttpHandler.create({connectionTimeout:e.timeout??1000}),O=e.timeout??1000,b=T(async()=>{let o=x(y);if(t)o.headers.Authorization=t;else if(s)o.headers.Authorization=(await N.readFile(s)).toString();try{let h=await C.handle(o,{requestTimeout:O});return E(h.response).then((v)=>R.setCredentialFeature(v,"CREDENTIALS_HTTP","z"))}catch(h){throw new i.CredentialsProviderError(String(h),{logger:e.logger})}},e.maxRetries??3,e.timeout??1000);return async()=>{try{return await b()}finally{C.destroy?.()}}};export{k as Zd};
6
+ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:e.logger});let y=new URL(c);g(y,e.logger);let C=A.NodeHttpHandler.create({connectionTimeout:e.timeout??1000}),O=e.timeout??1000,b=T(async()=>{let o=x(y);if(t)o.headers.Authorization=t;else if(s)o.headers.Authorization=(await N.readFile(s)).toString();try{let h=await C.handle(o,{requestTimeout:O});return E(h.response).then((v)=>R.setCredentialFeature(v,"CREDENTIALS_HTTP","z"))}catch(h){throw new i.CredentialsProviderError(String(h),{logger:e.logger})}},e.maxRetries??3,e.timeout??1000);return async()=>{try{return await b()}finally{C.destroy?.()}}};export{k as _d};