@qitqode/qitqode-android-arm64 0.2.6 → 0.2.8

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 (408) hide show
  1. package/bundle/chunk-03zpnwk2.js +2 -0
  2. package/bundle/{chunk-p54bzjtv.js → chunk-060wbpz4.js} +1 -1
  3. package/bundle/{chunk-j0bwa5dk.js → chunk-0a4pmkc9.js} +2 -2
  4. package/bundle/chunk-0aqdzyar.js +2 -0
  5. package/bundle/{chunk-vygkwwjd.js → chunk-0egrckx0.js} +2 -2
  6. package/bundle/{chunk-bwbqkfv0.js → chunk-0ffmwhw7.js} +1 -1
  7. package/bundle/{chunk-953pqp3w.js → chunk-0tcggtwv.js} +1 -1
  8. package/bundle/{chunk-tkrwcjkr.js → chunk-0tm6589k.js} +2 -2
  9. package/bundle/{chunk-y7hgevfv.js → chunk-0w19vmd7.js} +2 -2
  10. package/bundle/{chunk-ehb4hd9c.js → chunk-0z1keh2w.js} +1 -1
  11. package/bundle/{chunk-at22twxx.js → chunk-1bxfzd6r.js} +2 -2
  12. package/bundle/{chunk-48r70n4s.js → chunk-1har4t9a.js} +1 -1
  13. package/bundle/{chunk-sfw5qddj.js → chunk-1p9s5jj1.js} +1 -1
  14. package/bundle/{chunk-2md6sx8d.js → chunk-1rgt2vmt.js} +1 -1
  15. package/bundle/{chunk-ksme3gj1.js → chunk-1v0khv7p.js} +1 -1
  16. package/bundle/{chunk-a7rp46yt.js → chunk-26cr51wa.js} +5 -5
  17. package/bundle/{chunk-fhqfqd5v.js → chunk-27saej0r.js} +2 -2
  18. package/bundle/{chunk-9hz56z6a.js → chunk-29gwtcey.js} +1 -1
  19. package/bundle/chunk-2a5gjgvp.js +2 -0
  20. package/bundle/{chunk-venprxdp.js → chunk-2caaqmec.js} +1 -1
  21. package/bundle/{chunk-ff548b0j.js → chunk-2kh0tg92.js} +2 -2
  22. package/bundle/{chunk-6evh2ke8.js → chunk-2nheahmq.js} +1 -1
  23. package/bundle/chunk-2pkfphgb.js +2 -0
  24. package/bundle/{chunk-99s035f0.js → chunk-2qm46qvn.js} +2 -2
  25. package/bundle/{chunk-8e4s6nc2.js → chunk-2t5yh25f.js} +1 -1
  26. package/bundle/{chunk-k1nh5sd2.js → chunk-2vaphpz0.js} +1 -1
  27. package/bundle/{chunk-f3zmdfqa.js → chunk-33ebjca6.js} +1 -1
  28. package/bundle/{chunk-2drzgtv3.js → chunk-35fj1sfm.js} +2 -2
  29. package/bundle/chunk-37cbrnke.js +8 -0
  30. package/bundle/{chunk-3kpse7zy.js → chunk-3bb4aqh9.js} +1 -1
  31. package/bundle/chunk-3cx4p07h.js +2 -0
  32. package/bundle/chunk-3f2cjzb4.js +2 -0
  33. package/bundle/chunk-3qvap1kv.js +2 -0
  34. package/bundle/{chunk-p6crzjtf.js → chunk-3va85mbe.js} +2 -2
  35. package/bundle/{chunk-y67kaj0b.js → chunk-3z2zn8rj.js} +1 -1
  36. package/bundle/{chunk-bzebyyfr.js → chunk-3zwma68w.js} +4 -4
  37. package/bundle/{chunk-4pshnq6g.js → chunk-4064rbtp.js} +1 -1
  38. package/bundle/chunk-42hvspe7.js +2 -0
  39. package/bundle/chunk-452tk6v3.js +2 -0
  40. package/bundle/{chunk-ejqzcdcx.js → chunk-48gap82w.js} +1 -1
  41. package/bundle/{chunk-ycvwpmd9.js → chunk-4aajzxm9.js} +2 -2
  42. package/bundle/chunk-4gqb1hps.js +2 -0
  43. package/bundle/{chunk-e8p92vz4.js → chunk-4pmvxnkj.js} +2 -2
  44. package/bundle/chunk-50qgz5ka.js +2 -0
  45. package/bundle/{chunk-zc0cdvcv.js → chunk-52xvhxek.js} +2 -2
  46. package/bundle/{chunk-y0527cg0.js → chunk-56wq8cqj.js} +1 -1
  47. package/bundle/{chunk-tzb26ntq.js → chunk-58f4y4b7.js} +3 -3
  48. package/bundle/{chunk-tr6rdr6h.js → chunk-59csnjc3.js} +2 -2
  49. package/bundle/chunk-5b0xyq5z.js +2 -0
  50. package/bundle/{chunk-mn9end71.js → chunk-5bv63rqj.js} +1 -1
  51. package/bundle/{chunk-w4synhfg.js → chunk-5cw8235e.js} +1 -1
  52. package/bundle/{chunk-5asx1706.js → chunk-5f0nhthe.js} +2 -2
  53. package/bundle/chunk-5j4nxpdy.js +2 -0
  54. package/bundle/{chunk-cbnkx933.js → chunk-5nmm1kvx.js} +2 -2
  55. package/bundle/chunk-5nxgk6hw.js +2 -0
  56. package/bundle/chunk-5qkvhr6y.js +2 -0
  57. package/bundle/{chunk-avefgbjg.js → chunk-5r7c6vvx.js} +2 -2
  58. package/bundle/{chunk-z6sbjvtv.js → chunk-5wx962mw.js} +1 -1
  59. package/bundle/{chunk-mhhtf0v3.js → chunk-5xkp27b1.js} +1 -1
  60. package/bundle/chunk-66qmmmdp.js +2 -0
  61. package/bundle/{chunk-3cr2p4mp.js → chunk-66wv82vf.js} +1 -1
  62. package/bundle/chunk-6dpdkzrk.js +2 -0
  63. package/bundle/chunk-6p6m5956.js +3 -0
  64. package/bundle/{chunk-dnsh1v42.js → chunk-6ps30qax.js} +2 -2
  65. package/bundle/{chunk-hqbbs9dm.js → chunk-6qwk6z87.js} +3 -3
  66. package/bundle/{chunk-khzzmyk2.js → chunk-6tqbnxar.js} +1 -1
  67. package/bundle/chunk-6yhn9syz.js +2 -0
  68. package/bundle/{chunk-m5dm7a1t.js → chunk-72crs18f.js} +1 -1
  69. package/bundle/{chunk-hwrrrbqd.js → chunk-7adsab4h.js} +1 -1
  70. package/bundle/{chunk-97q2t1yz.js → chunk-7b60whxm.js} +1 -1
  71. package/bundle/chunk-7g59hc61.js +2 -0
  72. package/bundle/{chunk-5pzs51sp.js → chunk-7jy53zqy.js} +1 -1
  73. package/bundle/chunk-7p88j56s.js +2 -0
  74. package/bundle/{chunk-3jf3jhrs.js → chunk-7thhd7ds.js} +1 -1
  75. package/bundle/chunk-7trngc9g.js +2 -0
  76. package/bundle/{chunk-5df5aja0.js → chunk-82xrfk5x.js} +2 -2
  77. package/bundle/{chunk-jqk3v8d6.js → chunk-85wh85pk.js} +1 -1
  78. package/bundle/chunk-8cebbmtf.js +2 -0
  79. package/bundle/chunk-8csas2jc.js +2 -0
  80. package/bundle/chunk-8g4jdqq1.js +2 -0
  81. package/bundle/chunk-8j1xcdmd.js +2 -0
  82. package/bundle/{chunk-7vmx8bg9.js → chunk-8jmb5bd4.js} +2 -2
  83. package/bundle/{chunk-8wwdrwf2.js → chunk-8p0t8qah.js} +1 -1
  84. package/bundle/{chunk-bbng1cea.js → chunk-8ysp6vf8.js} +1 -1
  85. package/bundle/{chunk-rn83r0js.js → chunk-8yzghzjq.js} +1 -1
  86. package/bundle/{chunk-q3nvzhyh.js → chunk-9009v4d0.js} +2 -2
  87. package/bundle/chunk-90r2z49k.js +2 -0
  88. package/bundle/{chunk-j164q40b.js → chunk-92r1gw2j.js} +2 -2
  89. package/bundle/chunk-94mjwy22.js +2 -0
  90. package/bundle/{chunk-xdteq9bd.js → chunk-9cf2ktyh.js} +1 -1
  91. package/bundle/{chunk-ngfxxfem.js → chunk-9cn8cmt0.js} +1 -1
  92. package/bundle/{chunk-55ykn8nz.js → chunk-a1z8rnq7.js} +4 -4
  93. package/bundle/{chunk-j9h1sp4g.js → chunk-a48mx917.js} +2 -2
  94. package/bundle/{chunk-et3804wr.js → chunk-a8bjcvda.js} +1 -1
  95. package/bundle/chunk-aenrd7dk.js +2 -0
  96. package/bundle/{chunk-cz5vta94.js → chunk-afr8m0q1.js} +1 -1
  97. package/bundle/{chunk-f31yvp20.js → chunk-ag8wxwwz.js} +1 -1
  98. package/bundle/chunk-ahmy80vb.js +2 -0
  99. package/bundle/chunk-avn12jkt.js +2 -0
  100. package/bundle/{chunk-6scf311w.js → chunk-ax64ngf2.js} +1 -1
  101. package/bundle/{chunk-43ttzy29.js → chunk-ayb3bdb7.js} +2 -2
  102. package/bundle/{chunk-dnnkq5y4.js → chunk-az3nss5m.js} +2 -2
  103. package/bundle/chunk-b7ncyat6.js +2 -0
  104. package/bundle/{chunk-g3wvtyw3.js → chunk-b7sr9rn3.js} +1 -1
  105. package/bundle/{chunk-24rkf2gk.js → chunk-bc2krtaf.js} +1 -1
  106. package/bundle/{chunk-gjd3wf8b.js → chunk-bjv1h2dq.js} +1 -1
  107. package/bundle/{chunk-cng61dby.js → chunk-bnaj2hh3.js} +1 -1
  108. package/bundle/{chunk-70q8qcb2.js → chunk-bpfq8fz4.js} +1 -1
  109. package/bundle/chunk-brk6bge4.js +3 -0
  110. package/bundle/{chunk-eg3syjtv.js → chunk-bwadggys.js} +2 -2
  111. package/bundle/chunk-c2a74stf.js +2 -0
  112. package/bundle/{chunk-q9tgdghx.js → chunk-c3yjbent.js} +1 -1
  113. package/bundle/{chunk-7x6yrtzn.js → chunk-c76cjhn0.js} +1 -1
  114. package/bundle/{chunk-21rq4592.js → chunk-ccf4pgkr.js} +2 -2
  115. package/bundle/chunk-ce5e7j62.js +2 -0
  116. package/bundle/{chunk-tm34qp8j.js → chunk-cf9m9m9q.js} +1 -1
  117. package/bundle/{chunk-39z96pc6.js → chunk-cfwz1hgr.js} +3 -3
  118. package/bundle/{chunk-jww55nk9.js → chunk-cghz0855.js} +1 -1
  119. package/bundle/{chunk-5c2438af.js → chunk-cr5tknvb.js} +1 -1
  120. package/bundle/chunk-cw1gwjx9.js +2 -0
  121. package/bundle/chunk-czw30fjs.js +2 -0
  122. package/bundle/{chunk-05ck7acg.js → chunk-d30k7dpf.js} +1 -1
  123. package/bundle/{chunk-mjjaezwq.js → chunk-d839fr0w.js} +2 -2
  124. package/bundle/{chunk-nmzrrqgb.js → chunk-ddx2pcr4.js} +1 -1
  125. package/bundle/{chunk-pmg53fdd.js → chunk-dgcannw0.js} +1 -1
  126. package/bundle/{chunk-vnrjk2be.js → chunk-dhvx9p54.js} +1 -1
  127. package/bundle/chunk-dmkgjf1v.js +3 -0
  128. package/bundle/{chunk-nj1ntakd.js → chunk-dt3bsmfe.js} +2 -2
  129. package/bundle/chunk-dwhsvpag.js +2 -0
  130. package/bundle/{chunk-0smnwqk6.js → chunk-dwkrqtbc.js} +2 -2
  131. package/bundle/chunk-e01jgnnm.js +2 -0
  132. package/bundle/chunk-e0hfpdje.js +2 -0
  133. package/bundle/{chunk-r9w0thdk.js → chunk-e0vrxetq.js} +1 -1
  134. package/bundle/{chunk-k4gsktts.js → chunk-e2wfj86b.js} +1 -1
  135. package/bundle/chunk-e5jk67xh.js +2 -0
  136. package/bundle/{chunk-wkg3c643.js → chunk-eacpc64g.js} +2 -2
  137. package/bundle/{chunk-47k5jy1p.js → chunk-eewe7tx1.js} +2 -2
  138. package/bundle/{chunk-y29ejqg2.js → chunk-eg1m81ax.js} +1 -1
  139. package/bundle/chunk-eg4pq4hv.js +2 -0
  140. package/bundle/{chunk-bne5w117.js → chunk-ejhhrece.js} +3 -3
  141. package/bundle/{chunk-d7nsd979.js → chunk-epmc4aht.js} +1 -1
  142. package/bundle/chunk-ew3yz97p.js +2 -0
  143. package/bundle/{chunk-32j0q58h.js → chunk-eyr5ymt8.js} +1 -1
  144. package/bundle/chunk-ezgfhy4e.js +2 -0
  145. package/bundle/{chunk-45a4n21f.js → chunk-f2v4g7t1.js} +1 -1
  146. package/bundle/chunk-f2yfyhh8.js +2 -0
  147. package/bundle/chunk-f30em1wx.js +2 -0
  148. package/bundle/{chunk-5w76kdjr.js → chunk-f4mnp6xd.js} +1 -1
  149. package/bundle/{chunk-bkct64rs.js → chunk-f81kk8ra.js} +1 -1
  150. package/bundle/{chunk-3ktzxj69.js → chunk-f8cae1ap.js} +1 -1
  151. package/bundle/{chunk-ybane1en.js → chunk-fa8pwdwv.js} +1 -1
  152. package/bundle/{chunk-wwdpw27v.js → chunk-fej5x648.js} +1 -1
  153. package/bundle/{chunk-8yvx3pgy.js → chunk-fge37dke.js} +1 -1
  154. package/bundle/{chunk-nty5z2cj.js → chunk-fh3d0wce.js} +1 -1
  155. package/bundle/{chunk-gszvgz76.js → chunk-fjftb2sz.js} +2 -2
  156. package/bundle/{chunk-c36p881g.js → chunk-fs1vb39f.js} +3 -3
  157. package/bundle/{chunk-0xrb12s8.js → chunk-ftvvm4r5.js} +2 -2
  158. package/bundle/{chunk-nrat6ncm.js → chunk-fw1f47de.js} +1 -1
  159. package/bundle/{chunk-m7ganre7.js → chunk-g26redah.js} +1 -1
  160. package/bundle/{chunk-7g66qc1v.js → chunk-g3n465ee.js} +2 -2
  161. package/bundle/{chunk-313zqzc1.js → chunk-g4tyaj0m.js} +1 -1
  162. package/bundle/{chunk-fjbv3jht.js → chunk-g6y2c5az.js} +1 -1
  163. package/bundle/{chunk-qnvsqnz5.js → chunk-g7v6sp3c.js} +2 -2
  164. package/bundle/{chunk-n23d0q00.js → chunk-g878zd6e.js} +1 -1
  165. package/bundle/{chunk-p5be5ddp.js → chunk-g9nwqwqp.js} +1 -1
  166. package/bundle/chunk-gbvm6dpv.js +2 -0
  167. package/bundle/{chunk-fsqses4g.js → chunk-gc5rhnht.js} +2 -2
  168. package/bundle/{chunk-kengqzja.js → chunk-gefx3n08.js} +2 -2
  169. package/bundle/{chunk-yz25607t.js → chunk-ggncq8w8.js} +1 -1
  170. package/bundle/{chunk-7mppvhv9.js → chunk-gsg6zn7e.js} +2 -2
  171. package/bundle/{chunk-5nrc5rhh.js → chunk-gznt3dv8.js} +1 -1
  172. package/bundle/{chunk-p169ee92.js → chunk-h1bvqstw.js} +1 -1
  173. package/bundle/{chunk-pe2xdkez.js → chunk-h4hs2rhf.js} +2 -2
  174. package/bundle/chunk-h5w91zr4.js +2 -0
  175. package/bundle/{chunk-d6jhs818.js → chunk-h8mfbbjh.js} +2 -2
  176. package/bundle/{chunk-hjt94wce.js → chunk-he9kpk9r.js} +282 -276
  177. package/bundle/chunk-hmpb3c21.js +2 -0
  178. package/bundle/{chunk-920z7g7j.js → chunk-hz02vrqs.js} +1 -1
  179. package/bundle/{chunk-68v3b6ns.js → chunk-j10a984e.js} +2 -2
  180. package/bundle/chunk-j32rr7rt.js +2 -0
  181. package/bundle/chunk-j871xzr7.js +2 -0
  182. package/bundle/{chunk-0qd3567w.js → chunk-jmmtcr2r.js} +1 -1
  183. package/bundle/{chunk-has2rz35.js → chunk-jpn9zfj5.js} +1 -1
  184. package/bundle/{chunk-vshycswk.js → chunk-jqj1ay7x.js} +1 -1
  185. package/bundle/{chunk-vsz4s6zt.js → chunk-jr80q31w.js} +1 -1
  186. package/bundle/chunk-k3hgwszx.js +2 -0
  187. package/bundle/{chunk-wy3a4cab.js → chunk-kckr30tf.js} +1 -1
  188. package/bundle/{chunk-z1932c3f.js → chunk-kgv68cpb.js} +1 -1
  189. package/bundle/{chunk-vkaa7k3e.js → chunk-khpfseej.js} +2 -2
  190. package/bundle/{chunk-bd21p9zz.js → chunk-kre93a89.js} +2 -2
  191. package/bundle/{chunk-smznrv7k.js → chunk-kveztc6k.js} +1 -1
  192. package/bundle/{chunk-jnrnncqc.js → chunk-kwfe4em6.js} +1 -1
  193. package/bundle/chunk-kx88qekb.js +2 -0
  194. package/bundle/{chunk-4agaj51z.js → chunk-m4r8sepw.js} +1 -1
  195. package/bundle/{chunk-bqn6bqws.js → chunk-m7tmgvh6.js} +1 -1
  196. package/bundle/{chunk-qp1n7kwe.js → chunk-makegrxs.js} +1 -1
  197. package/bundle/{chunk-yhj01dz9.js → chunk-mr17tppa.js} +2 -2
  198. package/bundle/{chunk-5pwv2p3s.js → chunk-mv7q6ach.js} +1 -1
  199. package/bundle/chunk-n61e0znt.js +2 -0
  200. package/bundle/{chunk-j8fcfhr2.js → chunk-n6tqtk6h.js} +2 -2
  201. package/bundle/chunk-n6v36np0.js +2 -0
  202. package/bundle/chunk-ndd4cn3z.js +2 -0
  203. package/bundle/{chunk-t5r3w9e1.js → chunk-nfafk3ts.js} +1 -1
  204. package/bundle/{chunk-kth84vdn.js → chunk-nga216dm.js} +1 -1
  205. package/bundle/{chunk-cj7r8w1e.js → chunk-njsmma3a.js} +1 -1
  206. package/bundle/chunk-nr2j8ytn.js +3 -0
  207. package/bundle/{chunk-rrv0n73b.js → chunk-ntr0ezf2.js} +1 -1
  208. package/bundle/chunk-nwj6mcxz.js +2 -0
  209. package/bundle/{chunk-t239rvej.js → chunk-p2fte9vz.js} +2 -2
  210. package/bundle/chunk-p5b5ekhh.js +2 -0
  211. package/bundle/{chunk-vf492zs6.js → chunk-p8ak162p.js} +1 -1
  212. package/bundle/chunk-pf23nw4z.js +2 -0
  213. package/bundle/{chunk-0428v6mw.js → chunk-phf37x1c.js} +1 -1
  214. package/bundle/{chunk-faee8zgc.js → chunk-phpxxd48.js} +1 -1
  215. package/bundle/{chunk-5tky3csh.js → chunk-pqg1wjb5.js} +1 -1
  216. package/bundle/chunk-pw3cv89g.js +2 -0
  217. package/bundle/{chunk-d51908mv.js → chunk-q3c8mfbq.js} +1 -1
  218. package/bundle/{chunk-ypdt9mmr.js → chunk-qbnt4ynd.js} +2 -2
  219. package/bundle/chunk-qc89yj61.js +2 -0
  220. package/bundle/{chunk-k5q9px67.js → chunk-qgek59e6.js} +1 -1
  221. package/bundle/{chunk-v6v9xn81.js → chunk-qgfbsmsx.js} +1 -1
  222. package/bundle/{chunk-450fef7h.js → chunk-qgkb6n8k.js} +2 -2
  223. package/bundle/{chunk-xe69cnsk.js → chunk-qk1jkc0n.js} +1 -1
  224. package/bundle/{chunk-w4brava0.js → chunk-qk5vy2pr.js} +1 -1
  225. package/bundle/chunk-qn8tz704.js +2 -0
  226. package/bundle/{chunk-k3dacdp5.js → chunk-qq9m8fxv.js} +7 -7
  227. package/bundle/{chunk-q3h42a94.js → chunk-qxdpgdfk.js} +2 -2
  228. package/bundle/chunk-qxre2gqn.js +2 -0
  229. package/bundle/chunk-rdk62809.js +2 -0
  230. package/bundle/chunk-rew6r516.js +2 -0
  231. package/bundle/chunk-rjhvdfn5.js +2 -0
  232. package/bundle/{chunk-wyj8cpx5.js → chunk-rk0fnvp5.js} +1 -1
  233. package/bundle/{chunk-mh19kwzw.js → chunk-rmsqb6r4.js} +1 -1
  234. package/bundle/{chunk-jg1ccs3j.js → chunk-rva2ekrt.js} +1 -1
  235. package/bundle/{chunk-ac7482n2.js → chunk-rwnwjm82.js} +2 -2
  236. package/bundle/{chunk-ggxzf22k.js → chunk-rye1yjnr.js} +1 -1
  237. package/bundle/{chunk-s4vx9x1v.js → chunk-ryrxgn6d.js} +1 -1
  238. package/bundle/{chunk-pxm4qvqk.js → chunk-s2tc3qs0.js} +2 -2
  239. package/bundle/{chunk-mhtxp66q.js → chunk-s8z7v1me.js} +2 -2
  240. package/bundle/{chunk-9zm6r55d.js → chunk-sa0rrreh.js} +2 -2
  241. package/bundle/{chunk-mmjgf680.js → chunk-sbjymf20.js} +2 -2
  242. package/bundle/{chunk-ptqk1j2r.js → chunk-scnbt714.js} +1 -1
  243. package/bundle/chunk-skgr9ypq.js +2 -0
  244. package/bundle/{chunk-tg226j37.js → chunk-sm1g81cv.js} +1 -1
  245. package/bundle/chunk-sv40pwe2.js +2 -0
  246. package/bundle/{chunk-3vvd7j14.js → chunk-sy9w1t2y.js} +1 -1
  247. package/bundle/{chunk-p4027t94.js → chunk-sz0favtz.js} +1 -1
  248. package/bundle/{chunk-g22e4gw7.js → chunk-t18ka1e7.js} +1 -1
  249. package/bundle/{chunk-7hvf9dgx.js → chunk-t3w43rft.js} +1 -1
  250. package/bundle/{chunk-5zkj5xv9.js → chunk-t6zz47zk.js} +2 -2
  251. package/bundle/{chunk-6m9jb0s9.js → chunk-t8fjgkp8.js} +2 -2
  252. package/bundle/{chunk-7bcm7gg1.js → chunk-tbx741en.js} +1 -1
  253. package/bundle/chunk-tfhpjmny.js +2 -0
  254. package/bundle/chunk-tnete6ye.js +2 -0
  255. package/bundle/chunk-tpyq7ycb.js +2 -0
  256. package/bundle/{chunk-ezrqhqkp.js → chunk-trstb8ee.js} +1 -1
  257. package/bundle/{chunk-h9wh48d0.js → chunk-tsmj98yf.js} +2 -2
  258. package/bundle/{chunk-m80v76m9.js → chunk-txkdt4ep.js} +1 -1
  259. package/bundle/chunk-v5h5wxw5.js +2 -0
  260. package/bundle/chunk-v6141yq1.js +2 -0
  261. package/bundle/{chunk-cmb62jkt.js → chunk-vbfej8ds.js} +2 -2
  262. package/bundle/chunk-vfd3azkp.js +3 -0
  263. package/bundle/chunk-vjs69r6x.js +2 -0
  264. package/bundle/{chunk-xy0gnpen.js → chunk-vkjqy92f.js} +1 -1
  265. package/bundle/chunk-vmhar83s.js +2 -0
  266. package/bundle/{chunk-24ygjbpf.js → chunk-vph4w4yy.js} +2 -2
  267. package/bundle/chunk-vqvnw12p.js +2 -0
  268. package/bundle/{chunk-h62chdmw.js → chunk-vr8nwzp0.js} +1 -1
  269. package/bundle/{chunk-w46g7kdq.js → chunk-vs3s49jw.js} +2 -2
  270. package/bundle/{chunk-n78f8hfk.js → chunk-vsqvnxbz.js} +1 -1
  271. package/bundle/{chunk-t8c4cs6z.js → chunk-w0nc0gcx.js} +1 -1
  272. package/bundle/{chunk-qkvqvgcx.js → chunk-w0sng8a9.js} +1 -1
  273. package/bundle/chunk-w0sztk4y.js +2 -0
  274. package/bundle/chunk-w6bb320d.js +2 -0
  275. package/bundle/{chunk-55fcmswd.js → chunk-w7a33cwa.js} +2 -2
  276. package/bundle/{chunk-fyhqp4pb.js → chunk-w9qh2479.js} +1 -1
  277. package/bundle/{chunk-xwdxgg16.js → chunk-waa1ggtj.js} +1 -1
  278. package/bundle/{chunk-fr34mnyg.js → chunk-wb05bp10.js} +2 -2
  279. package/bundle/{chunk-gy21fw82.js → chunk-wb47k8ah.js} +2 -2
  280. package/bundle/{chunk-dxdggn90.js → chunk-wd8f9r4k.js} +1 -1
  281. package/bundle/chunk-wf41m019.js +2 -0
  282. package/bundle/{chunk-r5zy4za0.js → chunk-wgkcyqn1.js} +2 -2
  283. package/bundle/{chunk-ph8hn1wt.js → chunk-wm9nh9nb.js} +2 -2
  284. package/bundle/{chunk-g42krp0z.js → chunk-wn63q3xp.js} +1 -1
  285. package/bundle/{chunk-73r8bjjz.js → chunk-wqk1v8t0.js} +2 -2
  286. package/bundle/chunk-wqw6yjrg.js +2 -0
  287. package/bundle/{chunk-qey1efpx.js → chunk-wr6rnxr5.js} +1 -1
  288. package/bundle/chunk-ws08rxge.js +2 -0
  289. package/bundle/{chunk-xdd3553a.js → chunk-wtt5wms9.js} +1 -1
  290. package/bundle/{chunk-pb30kkbs.js → chunk-wtxh5m6j.js} +3 -3
  291. package/bundle/chunk-wz3dvc3g.js +2 -0
  292. package/bundle/{chunk-p4b0s5td.js → chunk-x00hwy3x.js} +1 -1
  293. package/bundle/chunk-x2pmqvdc.js +2 -0
  294. package/bundle/chunk-x4wfq39v.js +2 -0
  295. package/bundle/{chunk-pt0xphq9.js → chunk-xs6v0r9m.js} +1 -1
  296. package/bundle/{chunk-d0x5pbkm.js → chunk-xy8arehp.js} +1 -1
  297. package/bundle/{chunk-0cnwsf8p.js → chunk-y0h3jfkj.js} +1 -1
  298. package/bundle/{chunk-pr7z5dj8.js → chunk-y3gy62q5.js} +1 -1
  299. package/bundle/chunk-yb6m08zj.js +2 -0
  300. package/bundle/chunk-ybcqkgs7.js +2 -0
  301. package/bundle/{chunk-vcygx6hs.js → chunk-ydgst3h8.js} +2 -2
  302. package/bundle/{chunk-qxcyz5hc.js → chunk-ykpj10nz.js} +2 -2
  303. package/bundle/{chunk-t0761rhq.js → chunk-ynf17943.js} +2 -2
  304. package/bundle/{chunk-da6kggv7.js → chunk-ytyzrqev.js} +2 -2
  305. package/bundle/{chunk-ztyy3ga3.js → chunk-z0kbyr00.js} +2 -2
  306. package/bundle/{chunk-65bmsp2t.js → chunk-zfrftgcy.js} +1 -1
  307. package/bundle/chunk-zj1jc1xt.js +2 -0
  308. package/bundle/chunk-zm0m0504.js +2 -0
  309. package/bundle/{chunk-w9gzfsy7.js → chunk-zqdjk4rf.js} +2 -2
  310. package/bundle/{chunk-ha1w0xzh.js → chunk-zrhw1szj.js} +1 -1
  311. package/bundle/{chunk-804vmbcd.js → chunk-zsg29gba.js} +1 -1
  312. package/bundle/{chunk-6ar91jvd.js → chunk-zwhmg9dj.js} +1 -1
  313. package/bundle/index.js +3 -3
  314. package/bundle/parser.worker.js +2 -2
  315. package/bundle/worker.js +1 -1
  316. package/package.json +1 -1
  317. package/bundle/chunk-0ppnq3a4.js +0 -2
  318. package/bundle/chunk-0te0vcdn.js +0 -2
  319. package/bundle/chunk-11h06z17.js +0 -2
  320. package/bundle/chunk-28yv4fqe.js +0 -2
  321. package/bundle/chunk-34a52hyr.js +0 -2
  322. package/bundle/chunk-3d73kfea.js +0 -2
  323. package/bundle/chunk-3n3gb3vd.js +0 -2
  324. package/bundle/chunk-3sq60y9f.js +0 -2
  325. package/bundle/chunk-49mbnqvc.js +0 -2
  326. package/bundle/chunk-4fr6kae9.js +0 -2
  327. package/bundle/chunk-516w1nc4.js +0 -2
  328. package/bundle/chunk-535nm66j.js +0 -2
  329. package/bundle/chunk-5kpxpm8e.js +0 -2
  330. package/bundle/chunk-5nm5s0h2.js +0 -2
  331. package/bundle/chunk-5ysbwr4x.js +0 -3
  332. package/bundle/chunk-6dvmyeg7.js +0 -2
  333. package/bundle/chunk-6ex981t8.js +0 -2
  334. package/bundle/chunk-6gpf2bjs.js +0 -2
  335. package/bundle/chunk-6jeg2r5j.js +0 -2
  336. package/bundle/chunk-6nry7tah.js +0 -2
  337. package/bundle/chunk-7bgzcpdw.js +0 -2
  338. package/bundle/chunk-7kjvcbwa.js +0 -2
  339. package/bundle/chunk-7x30x94y.js +0 -2
  340. package/bundle/chunk-86hsh44c.js +0 -3
  341. package/bundle/chunk-8jma2btf.js +0 -2
  342. package/bundle/chunk-8sbb95a4.js +0 -2
  343. package/bundle/chunk-93e0w75z.js +0 -2
  344. package/bundle/chunk-97gp818s.js +0 -2
  345. package/bundle/chunk-9epf2zbh.js +0 -2
  346. package/bundle/chunk-agv04nt7.js +0 -2
  347. package/bundle/chunk-be7smmar.js +0 -2
  348. package/bundle/chunk-bg1t0kke.js +0 -2
  349. package/bundle/chunk-bryx5cx9.js +0 -2
  350. package/bundle/chunk-c13rrw41.js +0 -2
  351. package/bundle/chunk-c2kkv619.js +0 -2
  352. package/bundle/chunk-c3zge8cg.js +0 -3
  353. package/bundle/chunk-c5xj1y5v.js +0 -2
  354. package/bundle/chunk-cfhfc86j.js +0 -8
  355. package/bundle/chunk-ckpm4dvv.js +0 -2
  356. package/bundle/chunk-cqkaamvn.js +0 -2
  357. package/bundle/chunk-ct8twng1.js +0 -2
  358. package/bundle/chunk-d38y7bvh.js +0 -2
  359. package/bundle/chunk-d6hxsfm6.js +0 -2
  360. package/bundle/chunk-descb9jz.js +0 -2
  361. package/bundle/chunk-dvr2b9r1.js +0 -2
  362. package/bundle/chunk-ea5fktnn.js +0 -2
  363. package/bundle/chunk-f0t7rryn.js +0 -3
  364. package/bundle/chunk-f4mf6tpp.js +0 -2
  365. package/bundle/chunk-f97k17t8.js +0 -2
  366. package/bundle/chunk-g4ehhdzp.js +0 -2
  367. package/bundle/chunk-gd6qpdjw.js +0 -2
  368. package/bundle/chunk-gdn91t9j.js +0 -2
  369. package/bundle/chunk-gehn9fd9.js +0 -2
  370. package/bundle/chunk-hhax4mxw.js +0 -2
  371. package/bundle/chunk-hjb1etf8.js +0 -2
  372. package/bundle/chunk-jvkzdap1.js +0 -2
  373. package/bundle/chunk-kg8fcv91.js +0 -2
  374. package/bundle/chunk-kgptyf7n.js +0 -3
  375. package/bundle/chunk-kjjjrjnb.js +0 -2
  376. package/bundle/chunk-ky88ba80.js +0 -2
  377. package/bundle/chunk-m5cfmhwh.js +0 -2
  378. package/bundle/chunk-m7qxxbns.js +0 -2
  379. package/bundle/chunk-n8wg5h5p.js +0 -2
  380. package/bundle/chunk-nvs0d8jg.js +0 -2
  381. package/bundle/chunk-p6hcj3kv.js +0 -2
  382. package/bundle/chunk-pexmns0j.js +0 -2
  383. package/bundle/chunk-pt603np4.js +0 -2
  384. package/bundle/chunk-pz1avwyt.js +0 -2
  385. package/bundle/chunk-qk5bfcv8.js +0 -2
  386. package/bundle/chunk-qr06byhp.js +0 -2
  387. package/bundle/chunk-r7sq3maz.js +0 -2
  388. package/bundle/chunk-rcrjbhaz.js +0 -2
  389. package/bundle/chunk-rmgs9nmj.js +0 -2
  390. package/bundle/chunk-rytavefg.js +0 -2
  391. package/bundle/chunk-sh9vjnsh.js +0 -2
  392. package/bundle/chunk-st0c5wwc.js +0 -2
  393. package/bundle/chunk-teb3k2sf.js +0 -2
  394. package/bundle/chunk-ts798jvf.js +0 -2
  395. package/bundle/chunk-tx5aj02v.js +0 -2
  396. package/bundle/chunk-v1t51rrq.js +0 -2
  397. package/bundle/chunk-vdrz2t9c.js +0 -2
  398. package/bundle/chunk-vh9ptqn0.js +0 -2
  399. package/bundle/chunk-vj4x8hvz.js +0 -2
  400. package/bundle/chunk-w72rctxz.js +0 -2
  401. package/bundle/chunk-wbw9zv3h.js +0 -2
  402. package/bundle/chunk-x6mw98c2.js +0 -2
  403. package/bundle/chunk-y6p57wgh.js +0 -2
  404. package/bundle/chunk-y6xs8v17.js +0 -2
  405. package/bundle/chunk-z3xsfpc6.js +0 -2
  406. package/bundle/chunk-zkm3yyyf.js +0 -2
  407. package/bundle/chunk-zn5pw733.js +0 -2
  408. package/bundle/chunk-zxwvnmea.js +0 -2
@@ -1,8 +0,0 @@
1
- // @bun
2
- import{Or as rZ}from"./chunk-mmjgf680.js";import{cs as X$}from"./chunk-vdrz2t9c.js";import{Ns as R,Ws as g}from"./chunk-tr6rdr6h.js";import{ht as f,kt as YZ}from"./chunk-at22twxx.js";import{eH as Z$}from"./chunk-qnvsqnz5.js";import{sO as iZ,uO as XZ,wO as GZ}from"./chunk-r9w0thdk.js";function X1({onRequest:Z,onSseError:$,onSseEvent:X,responseTransformer:J,responseValidator:G,sseDefaultRetryDelay:z,sseMaxRetryAttempts:W,sseMaxRetryDelay:V,sseSleepFn:O,url:Q,...D}){let M,L=O??((N)=>new Promise((j)=>setTimeout(j,N)));return{stream:async function*(){let N=z??3000,j=0,I=D.signal??new AbortController().signal;while(!0){if(I.aborted)break;j++;let F=D.headers instanceof Headers?D.headers:new Headers(D.headers);if(M!==void 0)F.set("Last-Event-ID",M);try{let P={redirect:"follow",...D,body:D.serializedBody,headers:F,signal:I},h=new Request(Q,P);if(Z)h=await Z(Q,P);let S=await(D.fetch??globalThis.fetch)(h);if(!S.ok)throw Error(`SSE failed: ${S.status} ${S.statusText}`);if(!S.body)throw Error("No body in SSE response");let T=S.body.pipeThrough(new TextDecoderStream).getReader(),x="",t$=()=>{try{T.cancel()}catch{}};I.addEventListener("abort",t$);try{while(!0){let{done:TZ,value:wZ}=await T.read();if(TZ)break;x+=wZ,x=x.replace(/\r\n?/g,`
3
- `);let o$=x.split(`
4
-
5
- `);x=o$.pop()??"";for(let FZ of o$){let HZ=FZ.split(`
6
- `),Y$=[],e$;for(let w of HZ)if(w.startsWith("data:"))Y$.push(w.replace(/^data:\s*/,""));else if(w.startsWith("event:"))e$=w.replace(/^event:\s*/,"");else if(w.startsWith("id:"))M=w.replace(/^id:\s*/,"");else if(w.startsWith("retry:")){let Z1=Number.parseInt(w.replace(/^retry:\s*/,""),10);if(!Number.isNaN(Z1))N=Z1}let b,$1=!1;if(Y$.length){let w=Y$.join(`
7
- `);try{b=JSON.parse(w),$1=!0}catch{b=w}}if($1){if(G)await G(b);if(J)b=await J(b)}if(X?.({data:b,event:e$,id:M,retry:N}),Y$.length)yield b}}}finally{I.removeEventListener("abort",t$),T.releaseLock()}break}catch(P){if($?.(P),W!==void 0&&j>=W)break;let h=Math.min(N*2**(j-1),V??30000);await L(h)}}}()}}var EZ=(Z)=>{switch(Z){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},AZ=(Z)=>{switch(Z){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},PZ=(Z)=>{switch(Z){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},W$=({allowReserved:Z,explode:$,name:X,style:J,value:G})=>{if(!$){let V=(Z?G:G.map((O)=>encodeURIComponent(O))).join(AZ(J));switch(J){case"label":return`.${V}`;case"matrix":return`;${X}=${V}`;case"simple":return V;default:return`${X}=${V}`}}let z=EZ(J),W=G.map((V)=>{if(J==="label"||J==="simple")return Z?V:encodeURIComponent(V);return c({allowReserved:Z,name:X,value:V})}).join(z);return J==="label"||J==="matrix"?z+W:W},c=({allowReserved:Z,name:$,value:X})=>{if(X===void 0||X===null)return"";if(typeof X==="object")throw Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");return`${$}=${Z?X:encodeURIComponent(X)}`},V$=({allowReserved:Z,explode:$,name:X,style:J,value:G,valueOnly:z})=>{if(G instanceof Date)return z?G.toISOString():`${X}=${G.toISOString()}`;if(J!=="deepObject"&&!$){let O=[];Object.entries(G).forEach(([D,M])=>{O=[...O,D,Z?M:encodeURIComponent(M)]});let Q=O.join(",");switch(J){case"form":return`${X}=${Q}`;case"label":return`.${Q}`;case"matrix":return`;${X}=${Q}`;default:return Q}}let W=PZ(J),V=Object.entries(G).map(([O,Q])=>c({allowReserved:Z,name:J==="deepObject"?`${X}[${O}]`:O,value:Q})).join(W);return J==="label"||J==="matrix"?W+V:V};var kZ=/\{[^{}]+\}/g,gZ=({path:Z,url:$})=>{let X=$,J=$.match(kZ);if(J)for(let G of J){let z=!1,W=G.substring(1,G.length-1),V="simple";if(W.endsWith("*"))z=!0,W=W.substring(0,W.length-1);if(W.startsWith("."))W=W.substring(1),V="label";else if(W.startsWith(";"))W=W.substring(1),V="matrix";let O=Z[W];if(O===void 0||O===null)continue;if(Array.isArray(O)){X=X.replace(G,W$({explode:z,name:W,style:V,value:O}));continue}if(typeof O==="object"){X=X.replace(G,V$({explode:z,name:W,style:V,value:O,valueOnly:!0}));continue}if(V==="matrix"){X=X.replace(G,`;${c({name:W,value:O})}`);continue}let Q=encodeURIComponent(V==="label"?`.${O}`:O);X=X.replace(G,Q)}return X},J1=({baseUrl:Z,path:$,query:X,querySerializer:J,url:G})=>{let z=G.startsWith("/")?G:`/${G}`,W=(Z??"")+z;if($)W=gZ({path:$,url:W});let V=X?J(X):"";if(V.startsWith("?"))V=V.substring(1);if(V)W+=`?${V}`;return W};function _$(Z){let $=Z.body!==void 0;if($&&Z.bodySerializer){if("serializedBody"in Z)return Z.serializedBody!==void 0&&Z.serializedBody!==""?Z.serializedBody:null;return Z.body!==""?Z.body:null}if($)return Z.body;return}var G1=async(Z,$)=>{let X=typeof $==="function"?await $(Z):$;if(!X)return;if(Z.scheme==="bearer")return`Bearer ${X}`;if(Z.scheme==="basic")return`Basic ${btoa(X)}`;return X};var q$={bodySerializer:(Z)=>JSON.stringify(Z,($,X)=>typeof X==="bigint"?X.toString():X)};var Y1=({parameters:Z={},...$}={})=>{return(J)=>{let G=[];if(J&&typeof J==="object")for(let z in J){let W=J[z];if(W===void 0||W===null)continue;let V=Z[z]||$;if(Array.isArray(W)){let O=W$({allowReserved:V.allowReserved,explode:!0,name:z,style:"form",value:W,...V.array});if(O)G.push(O)}else if(typeof W==="object"){let O=V$({allowReserved:V.allowReserved,explode:!0,name:z,style:"deepObject",value:W,...V.object});if(O)G.push(O)}else{let O=c({allowReserved:V.allowReserved,name:z,value:W});if(O)G.push(O)}}return G.join("&")}},W1=(Z)=>{if(!Z)return"stream";let $=Z.split(";")[0]?.trim();if(!$)return;if($.startsWith("application/json")||$.endsWith("+json"))return"json";if($==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((X)=>$.startsWith(X)))return"blob";if($.startsWith("text/"))return"text";return},CZ=(Z,$)=>{if(!$)return!1;if(Z.headers.has($)||Z.query?.[$]||Z.headers.get("Cookie")?.includes(`${$}=`))return!0;return!1};async function V1(Z){for(let $ of Z.security??[]){if(CZ(Z,$.name))continue;let X=await G1($,Z.auth);if(!X)continue;let J=$.name??"Authorization";switch($.in){case"query":if(!Z.query)Z.query={};Z.query[J]=X;break;case"cookie":Z.headers.append("Cookie",`${J}=${X}`);break;case"header":default:Z.headers.set(J,X);break}}}var T$=(Z)=>J1({baseUrl:Z.baseUrl,path:Z.path,query:Z.query,querySerializer:typeof Z.querySerializer==="function"?Z.querySerializer:Y1(Z.querySerializer),url:Z.url}),w$=(Z,$)=>{let X={...Z,...$};if(X.baseUrl?.endsWith("/"))X.baseUrl=X.baseUrl.substring(0,X.baseUrl.length-1);return X.headers=O$(Z.headers,$.headers),X},hZ=(Z)=>{let $=[];return Z.forEach((X,J)=>{$.push([J,X])}),$},O$=(...Z)=>{let $=new Headers;for(let X of Z){if(!X)continue;let J=X instanceof Headers?hZ(X):Object.entries(X);for(let[G,z]of J)if(z===null)$.delete(G);else if(Array.isArray(z))for(let W of z)$.append(G,W);else if(z!==void 0)$.set(G,typeof z==="object"?JSON.stringify(z):z)}return $};class z${fns=[];clear(){this.fns=[]}eject(Z){let $=this.getInterceptorIndex(Z);if(this.fns[$])this.fns[$]=null}exists(Z){let $=this.getInterceptorIndex(Z);return Boolean(this.fns[$])}getInterceptorIndex(Z){if(typeof Z==="number")return this.fns[Z]?Z:-1;return this.fns.indexOf(Z)}update(Z,$){let X=this.getInterceptorIndex(Z);if(this.fns[X])return this.fns[X]=$,Z;return!1}use(Z){return this.fns.push(Z),this.fns.length-1}}var z1=()=>({error:new z$,request:new z$,response:new z$}),bZ=Y1({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),fZ={"Content-Type":"application/json"},s=(Z={})=>({...q$,headers:fZ,parseAs:"auto",querySerializer:bZ,...Z});var a=(Z={})=>{let $=w$(s(),Z),X=()=>({...$}),J=(D)=>{return $=w$($,D),X()},G=z1(),z=async(D)=>{let M={...$,...D,fetch:D.fetch??$.fetch??globalThis.fetch,headers:O$($.headers,D.headers),serializedBody:void 0};if(M.security)await V1(M);if(M.requestValidator)await M.requestValidator(M);if(M.body!==void 0&&M.bodySerializer)M.serializedBody=M.bodySerializer(M.body);if(M.body===void 0||M.serializedBody==="")M.headers.delete("Content-Type");let L=M,K=T$(L);return{opts:L,url:K}},W=async(D)=>{let M=D.throwOnError??$.throwOnError,L=D.responseStyle??$.responseStyle,K,U;try{let{opts:N,url:j}=await z(D),I={redirect:"follow",...N,body:_$(N)};K=new Request(j,I);for(let S of G.request.fns)if(S)K=await S(K,N);let F=N.fetch;U=await F(K);for(let S of G.response.fns)if(S)U=await S(U,K,N);let P={request:K,response:U};if(U.ok){let S=(N.parseAs==="auto"?W1(U.headers.get("Content-Type")):N.parseAs)??"json";if(U.status===204||U.headers.get("Content-Length")==="0"){let x;switch(S){case"arrayBuffer":case"blob":case"text":x=await U[S]();break;case"formData":x=new FormData;break;case"stream":x=U.body;break;case"json":default:x={};break}return N.responseStyle==="data"?x:{data:x,...P}}let T;switch(S){case"arrayBuffer":case"blob":case"formData":case"text":T=await U[S]();break;case"json":{let x=await U.text();T=x?JSON.parse(x):{};break}case"stream":return N.responseStyle==="data"?U.body:{data:U.body,...P}}if(S==="json"){if(N.responseValidator)await N.responseValidator(T);if(N.responseTransformer)T=await N.responseTransformer(T)}return N.responseStyle==="data"?T:{data:T,...P}}let h=await U.text(),R$;try{R$=JSON.parse(h)}catch{}throw R$??h}catch(N){let j=N;for(let I of G.error.fns)if(I)j=await I(j,U,K,D);if(j=j||{},M)throw j;return L==="data"?void 0:{error:j,request:K,response:U}}},V=(D)=>(M)=>W({...M,method:D}),O=(D)=>async(M)=>{let{opts:L,url:K}=await z(M);return X1({...L,body:L.body,method:D,onRequest:async(U,N)=>{let j=new Request(U,N);for(let I of G.request.fns)if(I)j=await I(j,L);return j},serializedBody:_$(L),url:K})};return{buildUrl:(D)=>T$({...$,...D}),connect:V("CONNECT"),delete:V("DELETE"),get:V("GET"),getConfig:X,head:V("HEAD"),interceptors:G,options:V("OPTIONS"),patch:V("PATCH"),post:V("POST"),put:V("PUT"),request:W,setConfig:J,sse:{connect:O("CONNECT"),delete:O("DELETE"),get:O("GET"),head:O("HEAD"),options:O("OPTIONS"),patch:O("PATCH"),post:O("POST"),put:O("PUT"),trace:O("TRACE")},trace:V("TRACE")}};var vZ={$body_:"body",$headers_:"headers",$path_:"path",$query_:"query"},yZ=Object.entries(vZ),O1=(Z,$)=>{if(!$)$=new Map;for(let X of Z)if("in"in X){if(X.key)$.set(X.key,{in:X.in,map:X.map})}else if("key"in X)$.set(X.key,{map:X.map});else if(X.args)O1(X.args,$);return $},cZ=(Z)=>{for(let[$,X]of Object.entries(Z))if(X&&typeof X==="object"&&!Array.isArray(X)&&!Object.keys(X).length)delete Z[$]},Y=(Z,$)=>{let X={body:Object.create(null),headers:Object.create(null),path:Object.create(null),query:Object.create(null)},J=O1($),G;for(let[z,W]of Z.entries()){if($[z])G=$[z];if(!G)continue;if("in"in G)if(G.key){let V=J.get(G.key),O=V.map||G.key;if(V.in)X[V.in][O]=W}else X.body=W;else for(let[V,O]of Object.entries(W??{})){let Q=J.get(V);if(Q)if(Q.in){let D=Q.map||V;X[Q.in][D]=O}else X[Q.map]=O;else{let D=yZ.find(([M])=>V.startsWith(M));if(D){let[M,L]=D;X[L][V.slice(M.length)]=O}else if("allowExtra"in G&&G.allowExtra){for(let[M,L]of Object.entries(G.allowExtra))if(L){X[M][V]=O;break}}}}}return cZ(X),X};var L1=a(s({baseUrl:"http://localhost:4096"}));class B{client;constructor(Z){this.client=Z?.client??L1}}class D1{defaultKey="default";instances=new Map;get(Z){let $=this.instances.get(Z??this.defaultKey);if(!$)throw Error('No SDK client found. Create one with "new QitQodeClient()" to fix this error.');return $}set(Z,$){this.instances.set($??this.defaultKey,Z)}}class Q1 extends B{get(Z){return(Z?.client??this.client).get({url:"/global/config",...Z})}update(Z,$){let X=Y([Z],[{args:[{key:"config",map:"body"}]}]);return($?.client??this.client).patch({url:"/global/config",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class M1 extends B{scan(Z){return(Z?.client??this.client).get({url:"/global/import/scan",...Z})}run(Z,$){let X=Y([Z],[{args:[{in:"body",key:"sources"},{in:"body",key:"force"}]}]);return($?.client??this.client).post({url:"/global/import/run",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class B1 extends B{health(Z){return(Z?.client??this.client).get({url:"/global/health",...Z})}event(Z){return(Z?.client??this.client).sse.get({url:"/global/event",...Z})}dispose(Z){return(Z?.client??this.client).post({url:"/global/dispose",...Z})}upgrade(Z,$){let X=Y([Z],[{args:[{in:"body",key:"target"}]}]);return($?.client??this.client).post({url:"/global/upgrade",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}_config;get config(){return this._config??=new Q1({client:this.client})}_import;get import(){return this._import??=new M1({client:this.client})}}class K1 extends B{remove(Z,$){let X=Y([Z],[{args:[{in:"path",key:"providerID"}]}]);return($?.client??this.client).delete({url:"/auth/{providerID}",...$,...X})}set(Z,$){let X=Y([Z],[{args:[{in:"path",key:"providerID"},{key:"auth",map:"body"}]}]);return($?.client??this.client).put({url:"/auth/{providerID}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class N1 extends B{log(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"service"},{in:"body",key:"level"},{in:"body",key:"message"},{in:"body",key:"extra"}]}]);return($?.client??this.client).post({url:"/log",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}agents(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/agent",...$,...X})}skills(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/skill",...$,...X})}}class j1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/workspace/adaptor",...$,...X})}}class U1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/workspace",...$,...X})}create(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"id"},{in:"body",key:"type"},{in:"body",key:"branch"},{in:"body",key:"extra"}]}]);return($?.client??this.client).post({url:"/experimental/workspace",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/workspace/status",...$,...X})}remove(Z,$){let X=Y([Z],[{args:[{in:"path",key:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/experimental/workspace/{id}",...$,...X})}sessionRestore(Z,$){let X=Y([Z],[{args:[{in:"path",key:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"sessionID"}]}]);return($?.client??this.client).post({url:"/experimental/workspace/{id}/session-restore",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}_adaptor;get adaptor(){return this._adaptor??=new j1({client:this.client})}}class I1 extends B{get(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/console",...$,...X})}listOrgs(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/console/orgs",...$,...X})}switchOrg(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"accountID"},{in:"body",key:"orgID"}]}]);return($?.client??this.client).post({url:"/experimental/console/switch",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class S1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"roots"},{in:"query",key:"start"},{in:"query",key:"cursor"},{in:"query",key:"search"},{in:"query",key:"limit"},{in:"query",key:"archived"}]}]);return($?.client??this.client).get({url:"/experimental/session",...$,...X})}}class x1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/resource",...$,...X})}}class R1 extends B{_workspace;get workspace(){return this._workspace??=new U1({client:this.client})}_console;get console(){return this._console??=new I1({client:this.client})}_session;get session(){return this._session??=new S1({client:this.client})}_resource;get resource(){return this._resource??=new x1({client:this.client})}}class _1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/project",...$,...X})}current(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/project/current",...$,...X})}initGit(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/project/git/init",...$,...X})}update(Z,$){let X=Y([Z],[{args:[{in:"path",key:"projectID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"name"},{in:"body",key:"icon"},{in:"body",key:"commands"}]}]);return($?.client??this.client).patch({url:"/project/{projectID}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class q1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/pty",...$,...X})}create(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"command"},{in:"body",key:"args"},{in:"body",key:"cwd"},{in:"body",key:"title"},{in:"body",key:"env"}]}]);return($?.client??this.client).post({url:"/pty",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}remove(Z,$){let X=Y([Z],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/pty/{ptyID}",...$,...X})}get(Z,$){let X=Y([Z],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/pty/{ptyID}",...$,...X})}update(Z,$){let X=Y([Z],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"size"}]}]);return($?.client??this.client).put({url:"/pty/{ptyID}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}connectToken(Z,$){let X=Y([Z],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/pty/{ptyID}/connect-token",...$,...X})}connect(Z,$){let X=Y([Z],[{args:[{in:"path",key:"ptyID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/pty/{ptyID}/connect",...$,...X})}}class T1 extends B{get(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/config",...$,...X})}update(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"config",map:"body"}]}]);return($?.client??this.client).patch({url:"/config",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}providers(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/config/providers",...$,...X})}}class w1 extends B{ids(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/tool/ids",...$,...X})}list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"provider"},{in:"query",key:"model"}]}]);return($?.client??this.client).get({url:"/experimental/tool",...$,...X})}}class F1 extends B{remove(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeRemoveInput",map:"body"}]}]);return($?.client??this.client).delete({url:"/experimental/worktree",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/experimental/worktree",...$,...X})}create(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeCreateInput",map:"body"}]}]);return($?.client??this.client).post({url:"/experimental/worktree",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}reset(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"worktreeResetInput",map:"body"}]}]);return($?.client??this.client).post({url:"/experimental/worktree/reset",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class H1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"roots"},{in:"query",key:"start"},{in:"query",key:"search"},{in:"query",key:"limit"}]}]);return($?.client??this.client).get({url:"/session",...$,...X})}create(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"parentID"},{in:"body",key:"contextFrom"},{in:"body",key:"contextWatermark"},{in:"body",key:"title"},{in:"body",key:"permission"},{in:"body",key:"workspaceID"}]}]);return($?.client??this.client).post({url:"/session",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/status",...$,...X})}delete(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/session/{sessionID}",...$,...X})}get(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}",...$,...X})}update(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"permission"},{in:"body",key:"time"}]}]);return($?.client??this.client).patch({url:"/session/{sessionID}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}children(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/children",...$,...X})}init(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"modelID"},{in:"body",key:"providerID"},{in:"body",key:"messageID"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/init",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}fork(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/fork",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}abort(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/abort",...$,...X})}actors(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/actors",...$,...X})}todo(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/todo",...$,...X})}task(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/task",...$,...X})}unshare(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/session/{sessionID}/share",...$,...X})}share(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/share",...$,...X})}diff(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"messageID"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/diff",...$,...X})}summarize(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"providerID"},{in:"body",key:"modelID"},{in:"body",key:"auto"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/summarize",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}revert(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"partID"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/revert",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}unrevert(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/unrevert",...$,...X})}messages(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"limit"},{in:"query",key:"before"},{in:"query",key:"agent_id"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/message",...$,...X})}prompt(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"model"},{in:"body",key:"modelRef"},{in:"body",key:"agent"},{in:"body",key:"agentID"},{in:"body",key:"task_id"},{in:"body",key:"source"},{in:"body",key:"provenance"},{in:"body",key:"noReply"},{in:"body",key:"tools"},{in:"body",key:"format"},{in:"body",key:"system"},{in:"body",key:"variant"},{in:"body",key:"parts"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/message",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}deleteMessage(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/session/{sessionID}/message/{messageID}",...$,...X})}message(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/session/{sessionID}/message/{messageID}",...$,...X})}promptAsync(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"model"},{in:"body",key:"modelRef"},{in:"body",key:"agent"},{in:"body",key:"agentID"},{in:"body",key:"task_id"},{in:"body",key:"source"},{in:"body",key:"provenance"},{in:"body",key:"noReply"},{in:"body",key:"tools"},{in:"body",key:"format"},{in:"body",key:"system"},{in:"body",key:"variant"},{in:"body",key:"parts"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/prompt_async",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}command(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"arguments"},{in:"body",key:"command"},{in:"body",key:"variant"},{in:"body",key:"parts"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/command",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}predict(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/predict",...$,...X})}shell(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"messageID"},{in:"body",key:"agent"},{in:"body",key:"model"},{in:"body",key:"modelRef"},{in:"body",key:"command"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/shell",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class E1 extends B{delete(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"path",key:"partID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/session/{sessionID}/message/{messageID}/part/{partID}",...$,...X})}update(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"messageID"},{in:"path",key:"partID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"part",map:"body"}]}]);return($?.client??this.client).patch({url:"/session/{sessionID}/message/{messageID}/part/{partID}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class A1 extends B{respond(Z,$){let X=Y([Z],[{args:[{in:"path",key:"sessionID"},{in:"path",key:"permissionID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"response"}]}]);return($?.client??this.client).post({url:"/session/{sessionID}/permissions/{permissionID}",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}reply(Z,$){let X=Y([Z],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"reply"},{in:"body",key:"message"}]}]);return($?.client??this.client).post({url:"/permission/{requestID}/reply",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/permission",...$,...X})}}class P1 extends B{balance(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/qredits/balance",...$,...X})}}class k1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"sessionID"}]}]);return($?.client??this.client).get({url:"/workflows",...$,...X})}resume(Z,$){let X=Y([Z],[{args:[{in:"path",key:"runID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/workflows/{runID}/resume",...$,...X})}}class g1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/question",...$,...X})}neverAsk(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/question/never-ask",...$,...X})}setNeverAsk(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"enabled"}]}]);return($?.client??this.client).post({url:"/question/never-ask",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}reply(Z,$){let X=Y([Z],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"answers"}]}]);return($?.client??this.client).post({url:"/question/{requestID}/reply",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}reject(Z,$){let X=Y([Z],[{args:[{in:"path",key:"requestID"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/question/{requestID}/reject",...$,...X})}}class C1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/bash-interactive",...$,...X})}reply(Z,$){let X=Y([Z],[{args:[{in:"path",key:"id"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"output"},{in:"body",key:"exitCode"}]}]);return($?.client??this.client).post({url:"/bash-interactive/{id}/reply",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class h1 extends B{_interactive;get interactive(){return this._interactive??=new C1({client:this.client})}}class b1 extends B{authorize(Z,$){let X=Y([Z],[{args:[{in:"path",key:"providerID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"method"},{in:"body",key:"inputs"}]}]);return($?.client??this.client).post({url:"/provider/{providerID}/oauth/authorize",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}callback(Z,$){let X=Y([Z],[{args:[{in:"path",key:"providerID"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"method"},{in:"body",key:"code"}]}]);return($?.client??this.client).post({url:"/provider/{providerID}/oauth/callback",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class f1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/provider",...$,...X})}auth(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/provider/auth",...$,...X})}_oauth;get oauth(){return this._oauth??=new b1({client:this.client})}}class v1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return($?.client??this.client).post({url:"/sync/history",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class y1 extends B{start(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/sync/start",...$,...X})}replay(Z,$){let X=Y([Z],[{args:[{in:"query",key:"query_directory",map:"directory"},{in:"query",key:"workspace"},{in:"body",key:"body_directory",map:"directory"},{in:"body",key:"events"}]}]);return($?.client??this.client).post({url:"/sync/replay",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}_history;get history(){return this._history??=new v1({client:this.client})}}class c1 extends B{text(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"pattern"}]}]);return($?.client??this.client).get({url:"/find",...$,...X})}files(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"query"},{in:"query",key:"dirs"},{in:"query",key:"type"},{in:"query",key:"limit"}]}]);return($?.client??this.client).get({url:"/find/file",...$,...X})}symbols(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"query"}]}]);return($?.client??this.client).get({url:"/find/symbol",...$,...X})}}class u1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"path"}]}]);return($?.client??this.client).get({url:"/file",...$,...X})}read(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"path"}]}]);return($?.client??this.client).get({url:"/file/content",...$,...X})}status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/file/status",...$,...X})}}class d1 extends B{subscribe(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).sse.get({url:"/event",...$,...X})}}class m1 extends B{remove(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).delete({url:"/mcp/{name}/auth",...$,...X})}start(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/auth",...$,...X})}callback(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"code"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/auth/callback",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}authenticate(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/auth/authenticate",...$,...X})}}class l1 extends B{status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/mcp",...$,...X})}add(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"name"},{in:"body",key:"config"}]}]);return($?.client??this.client).post({url:"/mcp",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}connect(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/connect",...$,...X})}disconnect(Z,$){let X=Y([Z],[{args:[{in:"path",key:"name"},{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/mcp/{name}/disconnect",...$,...X})}_auth;get auth(){return this._auth??=new m1({client:this.client})}}class p1 extends B{next(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/tui/control/next",...$,...X})}response(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return($?.client??this.client).post({url:"/tui/control/response",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}}class n1 extends B{appendPrompt(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"text"}]}]);return($?.client??this.client).post({url:"/tui/append-prompt",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}openHelp(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/open-help",...$,...X})}openSessions(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/open-sessions",...$,...X})}openThemes(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/open-themes",...$,...X})}openModels(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/open-models",...$,...X})}submitPrompt(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/submit-prompt",...$,...X})}clearPrompt(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/tui/clear-prompt",...$,...X})}executeCommand(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"command"}]}]);return($?.client??this.client).post({url:"/tui/execute-command",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}showToast(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"title"},{in:"body",key:"message"},{in:"body",key:"variant"},{in:"body",key:"duration"}]}]);return($?.client??this.client).post({url:"/tui/show-toast",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}publish(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{key:"body",map:"body"}]}]);return($?.client??this.client).post({url:"/tui/publish",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}selectSession(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"body",key:"sessionID"}]}]);return($?.client??this.client).post({url:"/tui/select-session",...$,...X,headers:{"Content-Type":"application/json",...$?.headers,...X.headers}})}_control;get control(){return this._control??=new p1({client:this.client})}}class i1 extends B{dispose(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).post({url:"/instance/dispose",...$,...X})}}class r1 extends B{get(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/path",...$,...X})}}class s1 extends B{get(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/vcs",...$,...X})}diff(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"},{in:"query",key:"mode"}]}]);return($?.client??this.client).get({url:"/vcs/diff",...$,...X})}}class a1 extends B{list(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/command",...$,...X})}}class t1 extends B{status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/lsp",...$,...X})}}class o1 extends B{status(Z,$){let X=Y([Z],[{args:[{in:"query",key:"directory"},{in:"query",key:"workspace"}]}]);return($?.client??this.client).get({url:"/formatter",...$,...X})}}class L$ extends B{static __registry=new D1;constructor(Z){super(Z);L$.__registry.set(this,Z?.key)}_global;get global(){return this._global??=new B1({client:this.client})}_auth;get auth(){return this._auth??=new K1({client:this.client})}_app;get app(){return this._app??=new N1({client:this.client})}_experimental;get experimental(){return this._experimental??=new R1({client:this.client})}_project;get project(){return this._project??=new _1({client:this.client})}_pty;get pty(){return this._pty??=new q1({client:this.client})}_config;get config(){return this._config??=new T1({client:this.client})}_tool;get tool(){return this._tool??=new w1({client:this.client})}_worktree;get worktree(){return this._worktree??=new F1({client:this.client})}_session;get session(){return this._session??=new H1({client:this.client})}_part;get part(){return this._part??=new E1({client:this.client})}_permission;get permission(){return this._permission??=new A1({client:this.client})}_qredits;get qredits(){return this._qredits??=new P1({client:this.client})}_workflow;get workflow(){return this._workflow??=new k1({client:this.client})}_question;get question(){return this._question??=new g1({client:this.client})}_bash;get bash(){return this._bash??=new h1({client:this.client})}_provider;get provider(){return this._provider??=new f1({client:this.client})}_sync;get sync(){return this._sync??=new y1({client:this.client})}_find;get find(){return this._find??=new c1({client:this.client})}_file;get file(){return this._file??=new u1({client:this.client})}_event;get event(){return this._event??=new d1({client:this.client})}_mcp;get mcp(){return this._mcp??=new l1({client:this.client})}_tui;get tui(){return this._tui??=new n1({client:this.client})}_instance;get instance(){return this._instance??=new i1({client:this.client})}_path;get path(){return this._path??=new r1({client:this.client})}_vcs;get vcs(){return this._vcs??=new s1({client:this.client})}_command;get command(){return this._command??=new a1({client:this.client})}_lsp;get lsp(){return this._lsp??=new t1({client:this.client})}_formatter;get formatter(){return this._formatter??=new o1({client:this.client})}}function e1(Z){if(!Z?.fetch)Z={...Z,fetch:(X)=>{return X.timeout=!1,fetch(X)}};if(Z?.directory)Z.headers={...Z.headers,"x-qitqode-directory":encodeURIComponent(Z.directory)};return Z}function uZ(Z,$,X){if(!Z)return;if(!$)return Z;if(Z===$)return $;if(X&&Z===X($))return $;return Z}function dZ(Z,$){if(Z.method!=="GET"&&Z.method!=="HEAD")return Z;let X=new URL(Z.url),J=!1;for(let[z,W]of[["x-qitqode-directory","directory"],["x-qitqode-workspace","workspace"]]){let V=uZ(Z.headers.get(z),W==="directory"?$.directory:$.workspace,W==="directory"?encodeURIComponent:void 0);if(!V)continue;if(!X.searchParams.has(W))X.searchParams.set(W,V);J=!0}if(!J)return Z;let G=new Request(X,Z);return G.headers.delete("x-qitqode-directory"),G.headers.delete("x-qitqode-workspace"),G}function mZ(Z){if(Z=e1(Z),Z?.experimental_workspaceID)Z.headers={...Z.headers,"x-qitqode-workspace":Z.experimental_workspaceID};let $=a(Z);return $.interceptors.request.use((X)=>dZ(X,{directory:Z?.directory,workspace:Z?.experimental_workspaceID})),$.interceptors.response.use((X)=>{if(X.headers.get("content-type")==="text/html")throw Error("Request is not supported by this version of QitQode Server (Server responded with text/html)");return X}),new L$({client:$})}class D$ extends Error{name="BackendCallError";status;fn;constructor(Z,$,X){super(`backend function call failed (${Z}): ${$}${X?` ${X}`:""}`);this.status=Z,this.fn=$}}class Q$ extends Error{name="BackendAuthError";status;constructor(Z,$){super(`backend authentication rejected (${Z})${$?`: ${$}`:""}`);this.status=Z}}function lZ(Z){if(!Z)return!1;try{let $=JSON.parse(Z);if($&&$.code==="ERR_GATEWAY_REQUIRED")return!0}catch{}return Z.includes("ERR_GATEWAY_REQUIRED")}function $Z(Z){let $=Z.fetch??fetch,X=Z.baseUrl.replace(/\/+$/,"");async function J(G,z={}){let W=new Headers(Z.headers);W.set("content-type","application/json");let V=await $(`${X}/${G}`,{method:"POST",headers:W,body:JSON.stringify(z)});if(!V.ok){let Q=await V.text().catch(()=>"");if((V.status===401||V.status===403)&&!lZ(Q))throw new Q$(V.status,Q||void 0);throw new D$(V.status,G,Q||void 0)}let O=await V.json();if(!O.success)throw Error(`backend function call returned failure: ${G} \u2014 ${O.error??"unknown error"}`);return O.data}return{promptNames:()=>J("promptNames"),prompt:(G)=>J("prompt",{name:G}),tiers:()=>J("tiers"),workflowSummaries:()=>J("workflowSummaries"),workflowSpec:(G)=>J("workflowSpec",{name:G}),workflowSpecs:()=>J("workflowSpecs"),bashArity:()=>J("bashArity"),toolManifest:()=>J("toolManifest"),toolDescription:(G)=>J("toolDescription",{id:G})}}var sZ=iZ(rZ(),1);import W0 from"path";import V0 from"crypto";var k={};XZ(k,{setKeySequenceForTest:()=>J0,setKeyForTest:()=>X0,resetForTest:()=>Z0,isEnvelope:()=>oZ,encryptionKey:()=>$0,encrypt:()=>G0,decrypt:()=>Y0,AuthKeyring:()=>k});import M$ from"crypto";import{execFile as tZ}from"child_process";var u="qitqode",t="auth-encryption-key",JZ="__qitqode_encrypted__";function oZ(Z){return typeof Z==="object"&&Z!==null&&Z[JZ]===1&&Z.alg==="aes-256-gcm"}function d(Z,$,X){return new Promise((J)=>{let G=tZ(Z,$,{timeout:5000},(z,W)=>{let V=z?z.code??1:0;J({code:typeof V==="number"?V:1,stdout:W??""})});if(X!==void 0)G.stdin?.write(X),G.stdin?.end()})}async function ZZ(Z,$){return(await d(Z,$)).code===0}async function eZ(){if(process.env.QITQODE_DISABLE_KEYRING)return;if(process.platform==="darwin"){if(!await ZZ("security",["help"]))return;return{async get(){let Z=await d("security",["find-generic-password","-s",u,"-a",t,"-w"]);return Z.code===0?Z.stdout.trim():void 0},async set(Z){return(await d("security",["add-generic-password","-U","-s",u,"-a",t,"-w",Z])).code===0}}}if(process.platform==="linux"){if(!await ZZ("secret-tool",["search","service",u])){let Z=await d("secret-tool",["lookup","service",u,"account",t]);if(Z.code!==0&&Z.code!==1)return}return{async get(){let Z=await d("secret-tool",["lookup","service",u,"account",t]);return Z.code===0&&Z.stdout.trim()?Z.stdout.trim():void 0},async set(Z){return(await d("secret-tool",["store","--label","QitQode auth encryption key","service",u,"account",t],Z)).code===0}}}return}var B$,m;function $0(){if(m!==void 0&&m.length>0)return Promise.resolve(m.shift());return B$??=(async()=>{let Z=await eZ();if(!Z)return;let $=await Z.get();if($){let X=Buffer.from($,"base64");if(X.length===32)return X;return}return f.withLock("auth-keyring-init",async()=>{let X=await Z.get();if(X){let W=Buffer.from(X,"base64");return W.length===32?W:void 0}let J=M$.randomBytes(32);if(!await Z.set(J.toString("base64")))return;let G=await Z.get();if(!G)return;let z=Buffer.from(G,"base64");return z.length===32?z:void 0})})(),B$}function Z0(){B$=void 0,m=void 0}function X0(Z){B$=Promise.resolve(Z),m=void 0}function J0(Z){m=[...Z]}function G0(Z,$){let X=M$.randomBytes(12),J=M$.createCipheriv("aes-256-gcm",$,X),G=Buffer.concat([J.update(Z,"utf8"),J.final()]);return{[JZ]:1,alg:"aes-256-gcm",iv:X.toString("base64"),tag:J.getAuthTag().toString("base64"),data:G.toString("base64")}}function Y0(Z,$){let X=M$.createDecipheriv("aes-256-gcm",$,Buffer.from(Z.iv,"base64"));return X.setAuthTag(Buffer.from(Z.tag,"base64")),Buffer.concat([X.update(Buffer.from(Z.data,"base64")),X.final()]).toString("utf8")}var z0="The server rejected QITQODE_KEY and there is no signed-in Forgewise session on this machine to repair it with. Replace QITQODE_KEY, or run `qitqode auth login`.",F$=`[qitqode] ${z0}`,l="forgewise";function K$(Z){if(Z?.type!=="api"||typeof Z.key!=="string")return;let X=Z.metadata?.method==="api-key"?"api-key":"sso";return{key:Z.key,method:X}}function A(Z){if(!Z)return"none";return V0.createHash("sha256").update(`${Z.method}:${Z.key}`).digest("hex").slice(0,16)}var N$;function WZ(Z){N$=Z}async function j$(){let{readFile:Z}=await import("fs/promises"),$=JSON.parse(await Z(VZ(),"utf8"));if(!k.isEnvelope($))return{data:$,key:void 0};let X=await k.encryptionKey();if(!X)throw Error("auth.json is encrypted but the OS keyring is unavailable");return{data:JSON.parse(k.decrypt($,X)),key:X}}async function H$(Z){let{writeFile:$,chmod:X,rename:J}=await import("fs/promises"),G=Z.key?k.encrypt(JSON.stringify(Z.data),Z.key):Z.data,z=VZ(),W=z+".tmp";await $(W,JSON.stringify(G,null,2),"utf8"),await X(W,384),await J(W,z)}function VZ(){return W0.join(YZ.Path.data,"auth.json")}async function p(){if(N$)return N$;if(process.env.QITQODE_KEY)return{key:process.env.QITQODE_KEY,method:"api-key"};try{let Z=await f.withLock("auth-file",async()=>{let{data:$}=await j$();return K$($?.[l])});if(Z)return Z}catch{}if(process.env.QITQODE_AUTH_CONTENT)try{let Z=JSON.parse(process.env.QITQODE_AUTH_CONTENT);return K$(Z?.forgewise)}catch{}return}async function U$(){if(N$=void 0,process.env.QITQODE_KEY)return;await f.withLock("auth-file",async()=>{let Z=await j$();if(!(l in Z.data))return;delete Z.data[l],await H$(Z)})}function o(Z){return Z.method==="api-key"?{"x-api-key":Z.key}:{authorization:`Bearer ${Z.key}`}}var I$=g.create({service:"auth.forgewise.checkout"}),O0="qitqode",L0=5000;async function E$(Z){let X=`${new URL(R.QITQODE_BACKEND_URL).origin}/auth/keys/checkout`;try{let J=await fetch(X,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${Z}`},body:JSON.stringify({app:O0}),signal:AbortSignal.timeout(L0)});if(!J.ok)return I$.warn("API key checkout returned non-200; falling back to Bearer credential",{status:J.status,url:X}),null;let G=await J.json();if(typeof G?.key!=="string"||!G.key)return I$.warn("API key checkout response missing key field; falling back to Bearer credential",{url:X}),null;return I$.info("API key checkout succeeded; credential upgraded to api-key method",{url:X}),G.key}catch(J){return I$.warn("API key checkout failed; falling back to Bearer credential",{url:X,error:J instanceof Error?J.message:String(J)}),null}}var a$={};XZ(a$,{toolDescriptionEffect:()=>q0,resolveWorkflowSummaries:()=>x0,resolveWorkflowSpec:()=>R0,resolveToolManifest:()=>SZ,resolveToolDescription:()=>xZ,resolveTierRatings:()=>P0,resolveSubmitBatch:()=>u0,resolveRetrieveBatch:()=>d0,resolvePrompt:()=>jZ,resolveListTiers:()=>A0,resolveGetHistory:()=>C0,resolveGenerateInlineComments:()=>v0,resolveGenerateDocumentation:()=>f0,resolveForgewiseConfig:()=>s$,resolveFetchQreditsBalance:()=>h0,resolveCompressTrajectorySafe:()=>k0,resolveChatCompletion:()=>c0,resolveChatBoolean:()=>y0,resolveBraveSearch:()=>g0,resolveBashArity:()=>_0,resolveAnalyzeCodeForIssues:()=>b0,resolveAgentPrompt:()=>I0,remoteStats:()=>H,parseSseChatCompletion:()=>RZ,normalizeChatCompletionPayload:()=>_Z,isBackendBillingError:()=>K0,clearRemoteCache:()=>U0,beginIdempotentAttempt:()=>NZ,BackendRemote:()=>a$,BackendRateLimitError:()=>G$,BackendInsufficientBalanceError:()=>J$,BackendAuthRejectedError:()=>r,BackendAccountNotLinkedError:()=>l$});import{createHash as KZ,randomUUID as BZ}from"crypto";import A$ from"crypto";class q extends Error{cause;constructor(Z,$){super(Z);this.name="ForgewiseError",this.cause=$}}class n extends q{constructor(Z="Device flow is not supported by this issuer."){super(Z);this.name="DeviceFlowUnsupportedError"}}function zZ(Z,$,X){if(Z>=200&&Z<300)return{kind:"success"};let J=$?.error??"";if(J==="authorization_pending")return{kind:"wait",intervalMs:X};if(J==="slow_down")return{kind:"wait",intervalMs:X+5000};if(J==="access_denied")return{kind:"fatal",message:"Sign-in was denied in the browser."};if(J==="expired_token")return{kind:"fatal",message:"The sign-in code expired before it was approved. Try again."};return{kind:"fatal",message:`Device sign-in failed: ${$?.error_description||J||`HTTP ${Z}`}`}}var LZ="openid profile email",P$=(Z)=>Z.toString("base64url");function N9(){let Z=P$(A$.randomBytes(32)),$=P$(A$.createHash("sha256").update(Z).digest()),X=P$(A$.randomBytes(16));return{verifier:Z,challenge:$,state:X}}function j9(Z){let $=new URL(`${Z.issuer}/api/oauth/authorize`);return $.searchParams.set("response_type","code"),$.searchParams.set("client_id",Z.clientId),$.searchParams.set("redirect_uri",Z.redirectUri),$.searchParams.set("scope",LZ),$.searchParams.set("state",Z.state),$.searchParams.set("code_challenge",Z.challenge),$.searchParams.set("code_challenge_method","S256"),$.toString()}async function k$(Z,$){let X=await fetch(`${Z}/api/oauth/userinfo`,{headers:{Authorization:`Bearer ${$.access_token}`}});if(!X.ok)throw new q(`Failed to fetch user profile (${X.status})`);let J=await X.json();if(!J.sub)throw new q("Userinfo response is missing required 'sub' field \u2014 the server returned an invalid user profile.");return{sub:J.sub,name:J.name??"",email:J.email??"",access_token:$.access_token,expires_at:Date.now()+($.expires_in??3600)*1000,...$.refresh_token?{refresh_token:$.refresh_token}:{}}}async function U9(Z){let $=await fetch(`${Z.issuer}/api/oauth/token`,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"authorization_code",code:Z.code,redirect_uri:Z.redirectUri,client_id:Z.clientId,code_verifier:Z.verifier}).toString(),signal:Z.signal??null});if(!$.ok){let J=await $.text().catch(()=>"");throw new q(`Token exchange failed (${$.status}): ${J}`)}let X=await $.json();return k$(Z.issuer,X)}async function I9(Z,$,X=5000){let J=new AbortController,G=setTimeout(()=>J.abort(),X);try{let z=await fetch(`${Z}/api/oauth/userinfo`,{headers:{Authorization:`Bearer ${$}`},signal:J.signal});if(z.status===401||z.status===403)return!1;if(!z.ok)return null;return!0}catch{return null}finally{clearTimeout(G)}}async function g$(Z){let{issuer:$,clientId:X}=await OZ(),J;try{J=await fetch(`${$}/api/oauth/token`,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"refresh_token",client_id:X,refresh_token:Z}).toString()})}catch(z){throw new q(`Could not reach the sign-in server to refresh the session: ${z instanceof Error?z.message:String(z)}`,z)}if(!J.ok){let z=await J.json().catch(()=>{return});if(z?.error==="invalid_grant")return"invalid_grant";throw new q(`Token refresh failed (${J.status}): ${z?.error??""}`)}let G=await J.json();return{issuer:$,...G}}async function S9(Z){let $=await g$(Z);if($==="invalid_grant")return"invalid_grant";return k$($.issuer,$)}async function x9(Z){let $;try{$=await fetch(`${Z.issuer}/api/oauth/device_authorization`,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams({client_id:Z.clientId,scope:LZ}).toString(),signal:Z.signal??null})}catch{if(Z.signal?.aborted)throw new q("Login cancelled");throw new n}if($.status===404||$.status===405||$.status===501)throw new n;if(!$.ok){let J=await $.text().catch(()=>"");throw new q(`Device authorization failed (${$.status}): ${J}`)}let X;try{X=await $.json()}catch{throw new n}if(!X.device_code||!X.user_code||!X.verification_uri)throw new n;return{deviceCode:X.device_code,info:{userCode:X.user_code,verificationUri:X.verification_uri,verificationUriComplete:X.verification_uri_complete,expiresAt:Date.now()+(X.expires_in??900)*1000},intervalMs:Math.max(1,X.interval??5)*1000}}async function R9(Z){let $;try{$=await fetch(`${Z.issuer}/api/oauth/token`,{method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"urn:ietf:params:oauth:grant-type:device_code",device_code:Z.deviceCode,client_id:Z.clientId}).toString(),signal:Z.signal??null})}catch{if(Z.signal?.aborted)throw new q("Login cancelled");return{kind:"wait",intervalMs:Z.currentIntervalMs}}let X;try{X=await $.json()}catch{X=void 0}let J=zZ($.status,X,Z.currentIntervalMs);if(J.kind==="success"){if(!X?.access_token)throw new q("Token endpoint returned success without an access_token.");return{kind:"success",profile:await k$(Z.issuer,{access_token:X.access_token,expires_in:X.expires_in})}}if(J.kind==="fatal")throw new q(J.message);return{kind:"wait",intervalMs:J.intervalMs}}function DZ(Z,$){let X={sub:Z.sub,name:Z.name,email:Z.email,expires_at:String(Z.expires_at),...$.rotateRefreshToken&&Z.refresh_token?{refresh_token:Z.refresh_token}:{}};return{type:"api",key:Z.access_token,metadata:X}}function C$(Z,$){return{type:"api",key:$,metadata:{method:"api-key",sub:Z.sub,name:Z.name,email:Z.email,access_token:Z.access_token,access_token_expires_at:String(Z.expires_at),...Z.refresh_token?{refresh_token:Z.refresh_token}:{}}}}var i=g.create({service:"auth.recovery"}),D0=30000,Q0=5,e,$$=0,b$=new Set;async function MZ(Z){if(b$.has(A(Z)))return{kind:"definitive",reason:"the stored sign-in has already been established as no longer valid"};if(e)return e;if($$>=Q0)return i.warn("recovery budget exhausted for this process; reporting inconclusive",{attempts:$$}),{kind:"inconclusive",reason:`automatic sign-in repair was attempted ${$$} times in this session without success`};return e=M0(Z).finally(()=>{e=void 0}),e}function QZ(){$$++}async function M0(Z){let $=A(Z),X=process.env.QITQODE_KEY,J=!!X&&Z?.key===X;i.info("attempting automatic credential recovery",{rejected:$,source:J?"env":"file",attempt:$$});let G;try{G=await f.withLock("auth-file",()=>B0(Z,$,J))}catch(z){let W=z instanceof Error?z.message:String(z);return i.warn("credential recovery could not run",{error:W}),{kind:"inconclusive",reason:`automatic sign-in repair could not run (${W})`}}if(G.kind==="recovered"){if(J)WZ(G.credential);i.info("credential recovered",{from:$,to:A(G.credential),via:G.reason})}else if(G.kind==="definitive")await U$().catch(()=>{}),b$.add($),b$.add(A(void 0)),i.info("credential rejection is definitive; stored credential cleared",{reason:G.reason});return G}async function B0(Z,$,X){let J;try{J=await j$()}catch(L){if(L?.code==="ENOENT")return{kind:"definitive",reason:"no stored sign-in to repair"};let K=L instanceof Error?L.message:String(L);return i.warn("stored sign-in could not be read; treating the rejection as inconclusive",{error:K}),{kind:"inconclusive",reason:`the stored sign-in could not be read (${K})`}}let G=J.data[l],z=K$(G);if(!X&&z&&A(z)!==$)return{kind:"recovered",credential:z,reason:"adopted a credential rotated by another process"};let W=G?.metadata??{},V=(L)=>typeof L==="string"&&L?L:void 0,O=V(W.refresh_token),Q=V(W.access_token)??(z?.method==="sso"?z.key:void 0),D=Number(W.access_token_expires_at??W.expires_at??0),M={sub:V(W.sub)??"",name:V(W.name)??"",email:V(W.email)??""};if(Q&&Q!==Z?.key&&D>Date.now()+D0){QZ();let L=await E$(Q);if(L){let K={...M,access_token:Q,expires_at:D,...O?{refresh_token:O}:{}};return await h$(J,C$(K,L)),{kind:"recovered",credential:{key:L,method:"api-key"},reason:"minted a key from the SSO session"}}}if(O){let L;try{QZ(),L=await g$(O)}catch(j){return{kind:"inconclusive",reason:`could not reach the sign-in server (${j instanceof Error?j.message:String(j)})`}}if(L==="invalid_grant")return{kind:"definitive",reason:"the stored sign-in was revoked or has expired"};let K={...M,access_token:L.access_token,expires_at:Date.now()+(L.expires_in??3600)*1000,...L.refresh_token?{refresh_token:L.refresh_token}:{}},U=DZ(K,{rotateRefreshToken:!0});await h$(J,U);let N=await E$(K.access_token);if(N)return await h$(J,C$(K,N)),{kind:"recovered",credential:{key:N,method:"api-key"},reason:"refreshed the sign-in and minted a new key"};return{kind:"recovered",credential:{key:K.access_token,method:"sso"},reason:"refreshed the sign-in"}}return{kind:"definitive",reason:"the stored sign-in has no session left to renew"}}async function h$(Z,$){Z.data[l]=$,await H$(Z)}var _=g.create({service:"backend.remote"}),S$=30000,m$=5000,C=new Map,H={failures:0,authRejections:0,missingPrompts:0,missingToolDescriptions:0},f$=new Set,v$=new Set;class r extends Error{name="BackendAuthRejectedError";constructor(Z){super(X$.copy().invalidCredentials(Z))}}class J$ extends Error{name="BackendInsufficientBalanceError";status=402;code;constructor(Z,$){super(X$.copy().insufficientBalance(Z));this.code=$}}class G$ extends Error{name="BackendRateLimitError";status=429;retryAfterMs;constructor(Z,$){let X=Z!==void 0?` Retry in about ${Math.max(1,Math.round(Z/1000))}s.`:"";super(X$.copy().rateLimit+X+($?` (${$})`:""));this.retryAfterMs=Z}}class l$ extends Error{name="BackendAccountNotLinkedError";status=409;constructor(Z){super(X$.copy().accountNotLinked(Z))}}function K0(Z){return Z instanceof J$||Z instanceof G$}var N0=600000,v=new Map;function j0(Z,$){try{return KZ("sha256").update(`${Z}\x00${JSON.stringify($)}`).digest("hex").slice(0,16)}catch{return"unscoped"}}function NZ(Z,$,X){let J=Date.now(),G;try{G=KZ("sha256").update(`${Z}\x00${$}\x00${JSON.stringify(X)??""}`).digest("hex")}catch{return{key:`${$}-${BZ()}`,settle:()=>{}}}let z=()=>v.delete(G),W=v.get(G);if(W&&W.expires>J)return{key:W.key,settle:z};if(v.size>256){for(let[O,Q]of v)if(Q.expires<=J)v.delete(O)}let V=`${$}-${G.slice(0,16)}-${BZ()}`;return v.set(G,{key:V,expires:J+N0}),{key:V,settle:z}}function U0(){C.clear(),u$.clear(),y$.clear(),f$.clear(),v$.clear(),v.clear()}async function p$(Z){H.authRejections++;let{credential:$,status:X,label:J,baseUrl:G}=Z;if(!Z.repairSpent){let z=A($),W=await MZ($);if(W.kind==="recovered"&&A(W.credential)!==z)return _.info("backend rejected the credential; repaired it automatically and retrying",{label:J,baseUrl:G,status:X,via:W.reason}),{retry:!0};if(W.kind==="inconclusive")return _.warn("backend rejected the credential but repair was inconclusive; leaving it in place",{label:J,baseUrl:G,status:X,reason:W.reason}),{retry:!1,error:Error(`Backend auth check could not complete: ${W.reason}`)}}if(await U$().catch(()=>{}),_.warn("backend rejected the credential and it could not be repaired; prompting re-auth",{label:J,baseUrl:G,status:X}),process.env.QITQODE_KEY)_.error(F$),console.error(F$);return{retry:!1,error:new r(`HTTP ${X}`)}}async function y(Z,$){let X=R.QITQODE_BACKEND_URL,J=Date.now(),G=`${X}::${Z}`,z=C.get(G);if(z&&z.expires>J)return z.value;let W=!1;for(;;)try{let V=await p(),O=V?o(V):void 0,D=await $($Z({baseUrl:X,headers:O,fetch:(M,L)=>fetch(M,{...L,signal:L?.signal??AbortSignal.timeout(m$)})}));return C.set(G,{value:D,expires:Date.now()+S$}),D}catch(V){if(V instanceof Q$){let O=await p$({credential:await p(),status:V.status,label:Z,baseUrl:X,repairSpent:W});if(W=!0,O.retry)continue;throw O.error}throw H.failures++,_.warn("backend request failed; surfacing error",{cacheKey:Z,baseUrl:X,error:V instanceof Error?V.message:String(V)}),V}}async function jZ(Z){if(Z.indexOf("/")<=0)return;return y(`prompt:${Z}`,($)=>$.prompt(Z).then((X)=>X??void 0))}async function I0(Z){let $=`agent/${Z}`,X=await jZ($);if(X===void 0||X===""){if(!f$.has(Z))f$.add(Z),H.missingPrompts++,_.warn("backend served no content for agent prompt; running with an empty prompt",{prompt:$,baseUrl:R.QITQODE_BACKEND_URL,missingPrompts:H.missingPrompts})}return X}var y$=new Map;function c$(Z){let $=y$.get(Z);if(!$)$={unsupported:!1},y$.set(Z,$);return $}async function S0(){let Z=c$(R.QITQODE_BACKEND_URL);if(Z.inFlight)return Z.inFlight;let $=y("workflow.catalog",(X)=>X.workflowSpecs().then((J)=>J??void 0)).then((X)=>{let J=new Map;for(let G of X??[])if(G&&typeof G.name==="string"&&typeof G.script==="string")J.set(G.name,G);return J});Z.inFlight=$;try{return await $}finally{if(Z.inFlight===$)Z.inFlight=void 0}}async function UZ(Z,$){let X=R.QITQODE_BACKEND_URL;if(!c$(X).unsupported)try{return Z(await S0())}catch(J){if(!IZ(J))throw J;c$(X).unsupported=!0,_.warn("backend has no workflowSpecs route; falling back to per-name workflow lookups",{baseUrl:X})}return $()}async function x0(){return UZ((Z)=>[...Z.values()].map(({script:$,...X})=>X),()=>y("workflow.list",(Z)=>Z.workflowSummaries()))}async function R0(Z){return UZ(($)=>$.get(Z),()=>y(`workflow.get:${Z}`,($)=>$.workflowSpec(Z).then((X)=>X??void 0)))}async function _0(){return y("permission.arity",(Z)=>Z.bashArity())}var u$=new Map;function d$(Z){let $=u$.get(Z);if(!$)$={unsupported:!1},u$.set(Z,$);return $}function IZ(Z){return Z instanceof D$&&(Z.status===404||Z.status===501)}async function SZ(){let Z=d$(R.QITQODE_BACKEND_URL);if(Z.inFlight)return Z.inFlight;let $=y("tool.manifest",(X)=>X.toolManifest().then((J)=>J??void 0)).then((X)=>{let J=new Map;for(let G of X??[])if(G&&typeof G.id==="string"&&typeof G.description==="string")J.set(G.id,G.description);return J});Z.inFlight=$;try{return await $}finally{if(Z.inFlight===$)Z.inFlight=void 0}}async function xZ(Z){let $=R.QITQODE_BACKEND_URL,X;if(!d$($).unsupported)try{X=(await SZ()).get(Z)}catch(J){if(!IZ(J))throw J;d$($).unsupported=!0,_.warn("backend has no toolManifest route; falling back to one request per tool description",{baseUrl:$})}if(X===void 0||X==="")X=await y(`tool.description:${Z}`,(J)=>J.toolDescription(Z).then((G)=>G??void 0));if(X===void 0||X===""){if(!v$.has(Z))v$.add(Z),H.missingToolDescriptions++,_.warn("backend served no content for tool description; running with an empty description",{tool:Z,baseUrl:R.QITQODE_BACKEND_URL,missingToolDescriptions:H.missingToolDescriptions})}return X}function q0(Z){return Z$.promise(()=>xZ(Z)).pipe(Z$.catchDefect(($)=>$ instanceof r?Z$.succeed(void 0):Z$.die($)))}function T0(Z){if(!Z)return{};try{let $=JSON.parse(Z);if($&&typeof $==="object")return{code:typeof $.error==="string"?$.error:void 0,detail:typeof $.message==="string"?$.message:void 0}}catch{}return{detail:Z.slice(0,300)}}function w0(Z){let $=Z.headers?.get?.("retry-after-ms");if($){let J=Number.parseFloat($);if(!Number.isNaN(J))return J}let X=Z.headers?.get?.("retry-after");if(X){let J=Number.parseFloat(X);if(!Number.isNaN(J))return Math.ceil(J*1000);let G=Date.parse(X)-Date.now();if(!Number.isNaN(G)&&G>0)return Math.ceil(G)}return}async function n$(Z,$){let X=await Z.text().catch(()=>""),{code:J,detail:G}=T0(X);if(Z.status===402)return new J$(G,J);if(Z.status===409)return new l$(G);if(Z.status===429)return new G$(w0(Z),G);let z=G?`: ${G}`:J?`: ${J}`:"";return Error(`${$} failed: ${Z.status}${z}`)}function F0(Z){if(Z===null||typeof Z!=="object")return Z;if(Z.data!==void 0)return Z.data;let $={};for(let[X,J]of Object.entries(Z)){if(X==="success"||X==="data"||X==="error"||X==="message")continue;$[X]=J}return Object.keys($).length>0?$:void 0}function i$(Z,$){let{error:X,message:J}=Z;if(X==="insufficient_balance")return new J$(J,X);if(X==="rate_limited"||X==="too_many_requests")return new G$(void 0,J);return Error(`${$} returned failure: ${X??"unknown error"}${J?` \u2014 ${J}`:""}`)}function RZ(Z){let $="",X,J=!1;for(let G of Z.split(/\r?\n/)){if(!G.startsWith("data:"))continue;let z=G.slice(5).trim();if(!z)continue;if(z==="[DONE]"){J=!0;break}if(z.startsWith("[ERROR]"))throw Error(`chat completion stream error: ${z.slice(7).trim()||"unknown"}`);let W;try{W=JSON.parse(z)}catch{continue}if(W===null||typeof W!=="object")continue;let V=W,O=V.choices?.[0],Q=O?.delta?.content??O?.message?.content;if(typeof Q==="string")$+=Q;if(V.usage&&typeof V.usage==="object")X={promptTokens:V.usage.prompt_tokens,completionTokens:V.usage.completion_tokens,totalTokens:V.usage.total_tokens}}if(!J)throw Error("chat completion stream truncated: no [DONE] terminator");if(!$)throw Error("chat completion stream produced no content");return X?{content:$,usage:X}:{content:$}}function H0(Z,$){if(Z.headers?.get?.("content-type")?.includes("text/event-stream"))return!0;return $.trimStart().startsWith("data:")}async function E(Z,$,X,J={}){let G=R.QITQODE_BACKEND_URL,z=`${G}::post:${Z}`;if(!J.noCache){let O=Date.now(),Q=C.get(z);if(Q&&Q.expires>O)return Q.value}let W=!1,V=!1;do{V=!1;try{let O=await p(),Q=O?o(O):{},D=J.billable?NZ(j0(G,Q),$,X):void 0,M=D?{"x-idempotency-key":D.key}:{},L=await fetch(`${G}/${$}`,{method:"POST",headers:{"Content-Type":"application/json",...Q,...M},body:JSON.stringify(X),signal:J.signal});if(L.status===401||L.status===403){D?.settle();let I=await L.text().catch(()=>"");if(I.includes("ERR_GATEWAY_REQUIRED"))throw Error(`Backend routing error: ${I}`);let F=await p$({credential:O,status:L.status,label:$,baseUrl:G,repairSpent:W});if(W=!0,F.retry){V=!0;continue}throw F.error}if(!L.ok){let I=await n$(L,`Backend POST /${$}`);if(L.status<500)D?.settle();throw I}let K;if(J.sse){let I=await L.text();if(H0(L,I)){D?.settle();let F=RZ(I);if(!J.noCache)C.set(z,{value:F,expires:Date.now()+S$});return F}K=JSON.parse(I)}else K=await L.json();let U=K!==null&&typeof K==="object"&&typeof K.error==="string";if((!J.acceptTopLevel||typeof K?.success==="boolean"||U)&&!K.success)throw D?.settle(),i$(K,`Backend POST /${$}`);D?.settle();let j=J.acceptTopLevel?F0(K):K.data;if(!J.noCache)C.set(z,{value:j,expires:Date.now()+S$});return j}catch(O){if(O instanceof r)throw O;throw H.failures++,_.warn("backend POST request failed; surfacing error",{fnName:$,baseUrl:G,error:O instanceof Error?O.message:String(O)}),O}}while(V);throw Error(`Backend POST /${$} exhausted its auth retry without a verdict`)}async function r$(Z,$,X={}){let J=R.QITQODE_BACKEND_URL,G=!1,z=!1;do{z=!1;try{let W=await p(),V=W?o(W):{},O=new URLSearchParams(Object.entries($).map(([L,K])=>[L,String(K)])).toString(),Q=O?`${J}/${Z}?${O}`:`${J}/${Z}`,D=await fetch(Q,{method:"GET",headers:{...V},signal:X.signal});if(D.status===401||D.status===403){let L=await D.text().catch(()=>"");if(L.includes("ERR_GATEWAY_REQUIRED"))throw Error(`Backend routing error: ${L}`);let K=await p$({credential:W,status:D.status,label:Z,baseUrl:J,repairSpent:G});if(G=!0,K.retry){z=!0;continue}throw K.error}if(!D.ok)throw await n$(D,`Backend GET /${Z}`);let M=await D.json();if(!M.success)throw i$(M,`Backend GET /${Z}`);return M.data}catch(W){if(W instanceof r)throw W;throw H.failures++,_.warn("backend GET request failed; surfacing error",{fnName:Z,baseUrl:J,error:W instanceof Error?W.message:String(W)}),W}}while(z);throw Error(`Backend GET /${Z} exhausted its auth retry without a verdict`)}async function E0(Z,$,X){let J=R.QITQODE_BACKEND_URL,G=`${J}::public:${Z}`,z=Date.now(),W=C.get(G);if(W&&W.expires>z)return W.value;try{let V=await fetch(`${J}/${$}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(X),signal:AbortSignal.timeout(m$)});if(!V.ok)throw await n$(V,`Backend public POST /${$}`);let O=await V.json();if(!O.success)throw i$(O,`Backend public POST /${$}`);let Q=O.data;return C.set(G,{value:Q,expires:z+S$}),Q}catch(V){throw H.failures++,_.warn("backend public request failed; surfacing error",{fnName:$,baseUrl:J,error:V instanceof Error?V.message:String(V)}),V}}async function s$(){try{return await E0("forgewise.config","forgewiseConfig",{})}catch(Z){let $=await p().catch(()=>null);if(!$)throw Z;let X=R.QITQODE_BACKEND_URL,J=await fetch(`${X}/forgewiseConfig`,{method:"POST",headers:{"Content-Type":"application/json",...o($)},body:JSON.stringify({}),signal:AbortSignal.timeout(m$)}).catch(()=>null);if(!J?.ok)throw Z;let G=await J.json().catch(()=>null);if(!G?.success)throw Z;return G.data}}async function A0(){return r$("listTiers",{}).then((Z)=>{if(!Array.isArray(Z))return[];return Z.flatMap(($)=>{if(typeof $==="string")return[{id:$}];if(!$||typeof $!=="object"||Array.isArray($))return[];let X=$;return typeof X.id==="string"?[{id:X.id,...typeof X.label==="string"?{label:X.label}:{},...typeof X.providerID==="string"?{providerID:X.providerID}:{},...typeof X.modelID==="string"?{modelID:X.modelID}:{}}]:[]})}).catch((Z)=>{return _.warn("listTiers fetch failed; using hardcoded tier fallback",{error:Z instanceof Error?Z.message:String(Z)}),[]})}async function P0(){return r$("TIER_RATINGS",{}).catch((Z)=>{_.warn("TIER_RATINGS fetch failed; no tier ratings will be shown",{error:Z instanceof Error?Z.message:String(Z)});return})}async function k0(Z){return E("compaction.trajectory","compressTrajectorySafe",Z,{noCache:!0,billable:!0,signal:AbortSignal.timeout(120000)})}async function g0(Z,$){let X=$?.timeoutMs??30000,J={query:Z};if($?.numResults)J.options={count:$.numResults};return E("brave.search","braveSearch",J,{noCache:!0,signal:AbortSignal.timeout(X)})}async function C0(Z){return E("qredits.history","getHistory",Z,{noCache:!0})}async function h0(Z){return E("forgewise.qredits.balance","fetchQreditsBalance",Z,{noCache:!0,acceptTopLevel:!0})}async function b0(Z){return E(`code.analyze:${Z.filePath}`,"analyzeCodeForIssues",Z,{noCache:!0,billable:!0,signal:AbortSignal.timeout(60000)})}async function f0(Z){return E(`code.docs:${Z.filePath}:${Z.functionName??""}`,"generateDocumentation",Z,{noCache:!0,billable:!0,signal:AbortSignal.timeout(60000)})}async function v0(Z){return E(`code.comments:${Z.filePath}`,"generateInlineComments",Z,{noCache:!0,billable:!0,signal:AbortSignal.timeout(60000)})}async function y0(Z,$,X){return E("chat.boolean","chatBoolean",{sample:Z,test:$},{noCache:!0,billable:!0,signal:AbortSignal.timeout(X?.timeoutMs??30000)})}async function c0(Z,$){let X={message:Z},J={};if($?.provider!==void 0)J.provider=$.provider;if($?.temperature!==void 0)J.temperature=$.temperature;if($?.maxTokens!==void 0)J.maxTokens=$.maxTokens;if(Object.keys(J).length>0)X.options=J;let G=await E("chat.completion","chatCompletion",X,{noCache:!0,billable:!0,sse:!0,signal:AbortSignal.timeout($?.timeoutMs??30000)});return _Z(G)}function _Z(Z){if(typeof Z==="string")return{content:Z};if(Z!==null&&typeof Z==="object"){let $=Z,X=$.choices?.[0],J=typeof $.content==="string"?$.content:X?.message?.content??X?.delta?.content;if(typeof J==="string"){let G=$.usage,z=G?{promptTokens:G.promptTokens??G.prompt_tokens,completionTokens:G.completionTokens??G.completion_tokens,totalTokens:G.totalTokens??G.total_tokens}:void 0;return z?{content:J,usage:z}:{content:J}}}throw Error(`chatCompletion returned an unrecognized payload shape: ${JSON.stringify(Z)?.slice(0,300)}`)}async function u0(Z){return E("batch.submit","submitBatch",{tier:Z.tier,requests:Z.requests},{noCache:!0,billable:!0,signal:AbortSignal.timeout(60000)})}async function d0(Z){return r$("retrieveBatch",{batchId:Z.batchId,tier:Z.tier},{signal:AbortSignal.timeout(30000)})}var m0=g.create({service:"forgewise.config"}),l0="https://accounts.forgewise.tech",p0="forgewise-cli",qZ=!1,n0={defaultFallbacks:0};function x$(...Z){return Z.find(($)=>$!==void 0&&$.trim().length>0)}function d9(){return!!process.env.REPLIT_DEV_DOMAIN}async function OZ(){let Z=process.env.ACCOUNTS_ISSUER,$=process.env.FORGEWISE_CLIENT_ID;if(Z&&$)return{issuer:Z.replace(/\/+$/,""),clientId:$};let X,J;try{X=await s$()}catch(O){X=void 0,J=O}let G=x$(Z,X?.issuer,l0).replace(/\/+$/,""),z=x$($,X?.clientId,p0),W=x$(Z,X?.issuer)===void 0,V=x$($,X?.clientId)===void 0;if((W||V)&&!qZ)qZ=!0,n0.defaultFallbacks++,m0.warn("remote Forgewise coordinate lookup unavailable; falling back to baked-in defaults",{issuer:G,clientId:z,usedDefaultIssuer:W,usedDefaultClientId:V,remoteError:J instanceof Error?J.message:J?String(J):void 0});return{issuer:G,clientId:z}}
8
- export{k as _n,e1 as $n,mZ as ao,lZ as bo,$Z as co,z0 as do,F$ as eo,A as fo,p as go,U$ as ho,E$ as io,d9 as jo,OZ as ko,q as lo,n as mo,zZ as no,N9 as oo,j9 as po,U9 as qo,I9 as ro,S9 as so,x9 as to,R9 as uo,DZ as vo,C$ as wo,MZ as xo,r as yo,J$ as zo,G$ as Ao,l$ as Bo,A0 as Co,P0 as Do,C0 as Eo,h0 as Fo,a$ as Go};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{wO as t}from"./chunk-r9w0thdk.js";var e=await import("./chunk-n8wg5h5p.js",{with:{type:"file"}}),a=e.default;export{a as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{a,b,c,d,e,f,g}from"./chunk-cng61dby.js";import"./chunk-f3zmdfqa.js";import"./chunk-ehb4hd9c.js";import"./chunk-q9tgdghx.js";import"./chunk-ff548b0j.js";import"./chunk-zc0cdvcv.js";import"./chunk-5w76kdjr.js";import"./chunk-eg3syjtv.js";import"./chunk-pe2xdkez.js";import"./chunk-hjt94wce.js";import"./chunk-w46g7kdq.js";import"./chunk-bd21p9zz.js";import"./chunk-p54bzjtv.js";import"./chunk-ha1w0xzh.js";import"./chunk-6m9jb0s9.js";import"./chunk-vygkwwjd.js";import"./chunk-k3dacdp5.js";import"./chunk-99s035f0.js";import"./chunk-h9wh48d0.js";import"./chunk-tzb26ntq.js";import"./chunk-mh19kwzw.js";import"./chunk-q3h42a94.js";import"./chunk-hqbbs9dm.js";import"./chunk-9zm6r55d.js";import"./chunk-vcygx6hs.js";import"./chunk-khzzmyk2.js";import"./chunk-y7hgevfv.js";import"./chunk-47k5jy1p.js";import"./chunk-cfhfc86j.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-dnnkq5y4.js";import"./chunk-t239rvej.js";import"./chunk-yz25607t.js";import"./chunk-7hvf9dgx.js";import"./chunk-wkg3c643.js";import"./chunk-fhqfqd5v.js";import"./chunk-q3nvzhyh.js";import"./chunk-5df5aja0.js";import"./chunk-73r8bjjz.js";import"./chunk-xy0gnpen.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-nj1ntakd.js";import"./chunk-cmb62jkt.js";import"./chunk-tkrwcjkr.js";import"./chunk-vdrz2t9c.js";import"./chunk-fr34mnyg.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-pxm4qvqk.js";import"./chunk-j8fcfhr2.js";import"./chunk-r9w0thdk.js";export{f as statusEffect,a as resolveApiKeyFlag,e as logoutEffect,d as loginEffect,c as interactiveLogin,b as apiKeyLoginEffect,g as AuthCommand};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Kg as r}from"./chunk-450fef7h.js";import{wO as o}from"./chunk-r9w0thdk.js";var c=new r("zod v4");async function m(){return async(n,e)=>{let t;if("_zod"in n)try{t=(await import("./chunk-cz5vta94.js")).toJSONSchema}catch{throw c}else try{t=(await import("./chunk-g42krp0z.js")).zodToJsonSchema}catch{throw new r("zod-to-json-schema")}return t(n,e)}}export{m as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Hd as a}from"./chunk-bwbqkfv0.js";import"./chunk-wyj8cpx5.js";import"./chunk-r9w0thdk.js";export{a as dict};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{tf as a}from"./chunk-c36p881g.js";import"./chunk-r9w0thdk.js";export default a();
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-r9w0thdk.js";function n(){return(e)=>JSON.parse(JSON.stringify(e.Type()))}export{n as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{jt as a,kt as b}from"./chunk-at22twxx.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-r9w0thdk.js";export{a as Path,b as Global};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Of as k}from"./chunk-vf492zs6.js";import{Lg as f}from"./chunk-450fef7h.js";function z(){return async(l,b)=>k(await f(l,b.options),b)}export{z as Nf};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{wO as o}from"./chunk-r9w0thdk.js";var i=(t)=>`standard-openapi: ${t}`,s=new Map,r=async(t)=>{let e=s.get(t);if(e)return e;let a;switch(t){case"valibot":a=(await import("./chunk-313zqzc1.js")).default();break;case"zod":a=(await import("./chunk-kg8fcv91.js")).default();break;default:a=(await import("./chunk-m5cfmhwh.js")).default()}return s.set(t,a),a},d=async(t,e={})=>{let a=await r(t["~standard"].vendor),{components:n={},options:c}=e;return{schema:await a(t,{components:n,options:c}),components:Object.keys(n).length>0?n:void 0}};
3
- export{i as Ig,d as Jg};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ee as a,fe as b}from"./chunk-vnrjk2be.js";import"./chunk-bne5w117.js";import"./chunk-j0bwa5dk.js";import"./chunk-2drzgtv3.js";import"./chunk-r9w0thdk.js";export{a as fromWebToken,b as fromTokenFile};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{uf as a,vf as b,wf as c,xf as d,yf as e,zf as f}from"./chunk-w9gzfsy7.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-r9w0thdk.js";export{f as createOpenAICompatible,e as VERSION,d as OpenAICompatibleImageModel,c as OpenAICompatibleEmbeddingModel,b as OpenAICompatibleCompletionLanguageModel,a as OpenAICompatibleChatLanguageModel};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{wO as t}from"./chunk-r9w0thdk.js";var e=await import("./chunk-rmgs9nmj.js",{with:{type:"file"}}),a=e.default;export{a as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-r9w0thdk.js";var l="./tree-sitter-javascript-nd0q4pe9.wasm";export{l as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{A as g,u as a,v as b,w as c,x as d,y as e,z as f}from"./chunk-ngfxxfem.js";import"./chunk-q3h42a94.js";import"./chunk-hqbbs9dm.js";import"./chunk-9zm6r55d.js";import"./chunk-vcygx6hs.js";import"./chunk-5df5aja0.js";import"./chunk-73r8bjjz.js";import"./chunk-xy0gnpen.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-nj1ntakd.js";import"./chunk-tkrwcjkr.js";import"./chunk-fr34mnyg.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-r9w0thdk.js";export{e as waitForDependencies,c as layer,f as get,d as defaultLayer,g as TuiConfig,b as Service,a as Info};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-r9w0thdk.js";var E="./tree-sitter-markdown_inline-j5349f42.wasm";export{E as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-r9w0thdk.js";var r="./highlights-eq9cgrbb.scm";export{r as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{cl as a}from"./chunk-k3dacdp5.js";import"./chunk-99s035f0.js";import"./chunk-h9wh48d0.js";import"./chunk-tzb26ntq.js";import"./chunk-mh19kwzw.js";import"./chunk-q3h42a94.js";import"./chunk-hqbbs9dm.js";import"./chunk-9zm6r55d.js";import"./chunk-vcygx6hs.js";import"./chunk-khzzmyk2.js";import"./chunk-y7hgevfv.js";import"./chunk-47k5jy1p.js";import"./chunk-cfhfc86j.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-dnnkq5y4.js";import"./chunk-t239rvej.js";import"./chunk-yz25607t.js";import"./chunk-7hvf9dgx.js";import"./chunk-q3nvzhyh.js";import"./chunk-5df5aja0.js";import"./chunk-73r8bjjz.js";import"./chunk-xy0gnpen.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-nj1ntakd.js";import"./chunk-cmb62jkt.js";import"./chunk-tkrwcjkr.js";import"./chunk-vdrz2t9c.js";import"./chunk-fr34mnyg.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-j8fcfhr2.js";import"./chunk-r9w0thdk.js";export{a as Session};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{$m as a,an as b,bn as c,cn as d,dn as e}from"./chunk-mh19kwzw.js";import"./chunk-r9w0thdk.js";export{e as drizzle,b as SQLiteBunTransaction,a as SQLiteBunSession,d as SQLiteBunDatabase,c as PreparedQuery};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Nf as l}from"./chunk-ea5fktnn.js";import"./chunk-vf492zs6.js";import{Ig as q}from"./chunk-f0t7rryn.js";import"./chunk-nfg7nt13.js";import"./chunk-450fef7h.js";import{wO as C}from"./chunk-r9w0thdk.js";function J(){return async(f,b)=>{if("_zod"in f)return l()(f,{components:b.components,options:{io:"input",...b.options}});try{let{createSchema:w}=await import("./chunk-xdteq9bd.js"),{schema:B,components:k}=w(f,{schemaType:"input",...b.options});if(k)b.components.schemas={...b.components.schemas,...k};return B}catch{throw Error(q('Missing dependencies "zod-openapi v4".'))}}}export{J as default};
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{Jt as o}from"./chunk-j9h1sp4g.js";var e=o;
3
- export{e as lt};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Kd as a}from"./chunk-2md6sx8d.js";import"./chunk-wyj8cpx5.js";import"./chunk-r9w0thdk.js";export{a as dict};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Bl as s,Cl as t,Dl as u,Fl as v,Gl as w}from"./chunk-h9wh48d0.js";import"./chunk-tzb26ntq.js";import{Am as b,Bm as c,Cm as d,Dm as e,Em as f,Fm as g,Gm as h,Hm as i,Im as j,Jm as k,Lm as l,Mm as m,Nm as n,Pm as o,Rm as p,Ym as q,Zm as r,nm as a}from"./chunk-mh19kwzw.js";import"./chunk-vcygx6hs.js";import"./chunk-khzzmyk2.js";import"./chunk-y7hgevfv.js";import"./chunk-q3nvzhyh.js";import"./chunk-5df5aja0.js";import"./chunk-73r8bjjz.js";import"./chunk-xy0gnpen.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-cmb62jkt.js";import"./chunk-tkrwcjkr.js";import"./chunk-fr34mnyg.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-r9w0thdk.js";export{a as sql,e as or,f as not,c as ne,j as lte,i as lt,p as like,l as isNull,m as isNotNull,k as inArray,h as gte,g as gt,n as exists,b as eq,r as desc,t as count,o as between,q as asc,d as and,w as Storage,v as NotFoundError,s as JsonMigration,u as Database};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Nf as a}from"./chunk-ea5fktnn.js";import"./chunk-vf492zs6.js";import"./chunk-nfg7nt13.js";import"./chunk-450fef7h.js";import"./chunk-r9w0thdk.js";export{a as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-r9w0thdk.js";var e="./libopentui-c48jzvfh.so";export{e as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-r9w0thdk.js";var _="./libopentui-smaejjb8.so";export{_ as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Br as h,Cr as i,Dr as j,Er as k,Fr as l,Hr as m,Ir as n,xr as e,yr as f,zr as g}from"./chunk-xy0gnpen.js";import{Nr as d}from"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import{ys as c}from"./chunk-fr34mnyg.js";import"./chunk-r5zy4za0.js";import{Ws as b}from"./chunk-tr6rdr6h.js";import{ft as a}from"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-r9w0thdk.js";export{h as getEnvInfo,c as Wildcard,n as Token,m as Rpc,d as Process,b as Log,l as Lock,k as Locale,j as LocalContext,i as Keybind,a as Filesystem,g as EffectUtil,f as Color,e as Archive};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-r9w0thdk.js";var t="./highlights-r812a2qc.scm";export{t as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{wO as t}from"./chunk-r9w0thdk.js";var e=await import("./chunk-zxwvnmea.js",{with:{type:"file"}}),a=e.default;export{a as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-r9w0thdk.js";var A="./tree-sitter-zig-e78zbjpm.wasm";export{A as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Cg as i,Dg as j,Eg as k,Fg as l,Gg as m,Hg as n}from"./chunk-pe2xdkez.js";import"./chunk-w46g7kdq.js";import{io as a,jo as b,ko as c,lo as d,mo as e,no as f,ro as g,so as h}from"./chunk-cfhfc86j.js";import"./chunk-t239rvej.js";import"./chunk-yz25607t.js";import"./chunk-xy0gnpen.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-vdrz2t9c.js";import"./chunk-fr34mnyg.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-r9w0thdk.js";export{f as resolveDevicePoll,h as refreshAccessToken,g as probeToken,l as loginDevice,n as loginBrowser,m as login,b as isReplitEnv,j as isNearExpiry,c as getConfig,i as getCallbackUri,k as fetchQreditsBalance,a as checkoutApiKey,d as ForgewiseError,e as DeviceFlowUnsupportedError};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{hq as a,iq as b}from"./chunk-7hvf9dgx.js";import"./chunk-r9w0thdk.js";export{a as generateSecret,b as generateCodeChallengeFromVerifier};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Dh as b}from"./chunk-bd21p9zz.js";import"./chunk-p54bzjtv.js";import"./chunk-r9w0thdk.js";export{b as QuickJSAsyncWASMModule};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{be as a,ce as b,de as c}from"./chunk-qxcyz5hc.js";import"./chunk-bne5w117.js";import"./chunk-j0bwa5dk.js";import"./chunk-2drzgtv3.js";import"./chunk-r9w0thdk.js";export{b as validateSsoProfile,a as isSsoProfile,c as fromSSO};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Ah as a,Bh as b}from"./chunk-hjt94wce.js";import"./chunk-w46g7kdq.js";import"./chunk-bd21p9zz.js";import"./chunk-p54bzjtv.js";import"./chunk-ha1w0xzh.js";import"./chunk-6m9jb0s9.js";import"./chunk-vygkwwjd.js";import"./chunk-k3dacdp5.js";import"./chunk-99s035f0.js";import"./chunk-h9wh48d0.js";import"./chunk-tzb26ntq.js";import"./chunk-mh19kwzw.js";import"./chunk-q3h42a94.js";import"./chunk-hqbbs9dm.js";import"./chunk-9zm6r55d.js";import"./chunk-vcygx6hs.js";import"./chunk-khzzmyk2.js";import"./chunk-y7hgevfv.js";import"./chunk-47k5jy1p.js";import"./chunk-cfhfc86j.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-dnnkq5y4.js";import"./chunk-t239rvej.js";import"./chunk-yz25607t.js";import"./chunk-7hvf9dgx.js";import"./chunk-wkg3c643.js";import"./chunk-fhqfqd5v.js";import"./chunk-q3nvzhyh.js";import"./chunk-5df5aja0.js";import"./chunk-73r8bjjz.js";import"./chunk-xy0gnpen.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-nj1ntakd.js";import"./chunk-cmb62jkt.js";import"./chunk-tkrwcjkr.js";import"./chunk-vdrz2t9c.js";import"./chunk-fr34mnyg.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-pxm4qvqk.js";import"./chunk-j8fcfhr2.js";import"./chunk-r9w0thdk.js";export{b as AppRuntime,a as AppLayer};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-r9w0thdk.js";var L="./opentui-c5en9p2g.dll";export{L as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Kg as t}from"./chunk-450fef7h.js";import{wO as o}from"./chunk-r9w0thdk.js";async function e(){try{let{toJSONSchema:r}=await import("./chunk-jqk3v8d6.js");return r}catch{throw new t("sury")}}export{e as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Rn as a,Sn as b,Tn as c,Un as d,Vn as e,Wn as f,Xn as g,Yn as h,Zn as i}from"./chunk-47k5jy1p.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-dnnkq5y4.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-r9w0thdk.js";export{i as gateway,h as createGatewayProvider,h as createGateway,g as GatewayResponseError,d as GatewayRateLimitError,e as GatewayModelNotFoundError,c as GatewayInvalidRequestError,f as GatewayInternalServerError,a as GatewayError,b as GatewayAuthenticationError};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Os as a,Ps as b,Qs as c,Rs as d,Ss as e,Ts as f,Us as g,Vs as h}from"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-r9w0thdk.js";export{g as redactValue,e as init,f as flush,d as file,b as enabled,h as create,a as Level,c as Default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{wO as t}from"./chunk-r9w0thdk.js";var e=await import("./chunk-agv04nt7.js",{with:{type:"file"}}),a=e.default;export{a as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-r9w0thdk.js";var n="./highlights-hk7bwhj4.scm";export{n as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-r9w0thdk.js";var t="./injections-73j83es3.scm";export{t as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-r9w0thdk.js";function o(){return(e,n)=>e.toJsonSchema(n)}export{o as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{xs as P}from"./chunk-fr34mnyg.js";import{Js as w,Ks as O,Ls as b,Ms as B}from"./chunk-tr6rdr6h.js";import{uO as p}from"./chunk-r9w0thdk.js";var H={free:{providerID:"qlex",modelID:"free"},default:{providerID:"qlex",modelID:"default"},fast:{providerID:"qlex",modelID:"fast"},economical:{providerID:"qlex",modelID:"economical"},planner:{providerID:"qlex",modelID:"planner"},repair:{providerID:"qlex",modelID:"repair"},power:{providerID:"qlex",modelID:"power"},orchestrated:{providerID:"qlex",modelID:"orchestrated"}},V={free:"Free (no cost)",default:"Default",fast:"Fast",economical:"Economy",planner:"Planner",repair:"Repair",power:"Power",orchestrated:"Orchestrated"},Y={free:{output:128000,recommendedStep:32000,context:262144,reasoning:!0,reasoningReserve:8192,visibleOutputFloor:512,recommendedTotal:9600,viableTotalFloor:9600},fast:{output:65536,recommendedStep:50000,context:1048576,reasoning:!1,reasoningReserve:0,visibleOutputFloor:2048,recommendedTotal:50000,viableTotalFloor:2048},economical:{output:209715,recommendedStep:32000,context:1048576,reasoning:!0,reasoningReserve:8192,visibleOutputFloor:512,recommendedTotal:9600,viableTotalFloor:9600},default:{output:128000,recommendedStep:32000,context:1050000,reasoning:!1,reasoningReserve:0,visibleOutputFloor:2048,recommendedTotal:32000,viableTotalFloor:2048},planner:{output:128000,recommendedStep:32000,context:1050000,reasoning:!1,reasoningReserve:0,visibleOutputFloor:2048,recommendedTotal:32000,viableTotalFloor:2048},repair:{output:128000,recommendedStep:32000,context:1050000,reasoning:!1,reasoningReserve:0,visibleOutputFloor:2048,recommendedTotal:32000,viableTotalFloor:2048},power:{output:200000,recommendedStep:32000,context:200000,reasoning:!1,reasoningReserve:0,visibleOutputFloor:2048,recommendedTotal:32000,viableTotalFloor:2048},orchestrated:{output:128000,recommendedStep:32000,context:200000,reasoning:!1,reasoningReserve:0,visibleOutputFloor:2048,recommendedTotal:32000,viableTotalFloor:2048}},Z={},D="pending",X=new Set;function c(){return D}function C(){D="pending",F()}function M(x){return X.add(x),()=>X.delete(x)}function F(){for(let x of[...X])try{x()}catch{}}function q(){for(let x of Object.keys(Z))delete Z[x];D="unavailable",F()}function Q(x){return typeof x==="number"&&Number.isFinite(x)&&x>=0&&x<=10}function f(x){if(x===void 0){q();return}let K=x!==null&&typeof x==="object"&&!Array.isArray(x)?x:void 0;if(K?.success===!1){q();return}let J=K?.success===!0&&Object.prototype.hasOwnProperty.call(K,"data")?K.data:x,j={};if(J===null||typeof J!=="object"||Array.isArray(J)){q();return}for(let[W,$]of Object.entries(J)){if(!$||typeof $!=="object"||Array.isArray($)){q();return}let z=$;if(!Q(z.intelligence)||!Q(z.speed)||!Q(z.cost)){q();return}j[W]={intelligence:z.intelligence,speed:z.speed,cost:z.cost}}for(let W of Object.keys(Z))delete Z[W];Object.assign(Z,j),D="live",F()}function h(x){if(!Array.isArray(x)||x.length===0)return;let K={},J={};for(let j of x){let W=H[j.id];K[j.id]={providerID:j.providerID??W?.providerID??"qlex",modelID:j.modelID??W?.modelID??j.id},J[j.id]=j.label??V[j.id]??j.id}for(let j of Object.keys(H))delete H[j];Object.assign(H,K);for(let j of Object.keys(V))delete V[j];Object.assign(V,J)}var N={};p(N,{tiers:()=>L,tierRatingsState:()=>c,tierRatings:()=>_,tierBudgetFacts:()=>S,streamUrl:()=>G,streamBaseUrl:()=>E,sanitizeUpstreamError:()=>g,qlexProviderMeta:()=>v,onTierRatingsChange:()=>M,omniqueryBaseUrl:()=>o,mergeLiveTiers:()=>k,mergeLiveTierRatings:()=>u,markTierRatingsUnavailable:()=>q,loadLiveRatings:()=>A,evaluatePermission:()=>d,copy:()=>T,beginTierRatingsLoad:()=>C,bashPrefixWith:()=>I,TIER_RATINGS:()=>Z,AGENT_PROMPT_NAMES:()=>R});var m=3,U=[250,750];async function A(x){for(let K=0;K<m;K++){let J=await x();if(J!==void 0)return J;let j=U[K];if(j!==void 0)await new Promise((W)=>setTimeout(W,j))}return}function k(x){h(x)}function u(x){f(x)}function L(){return Object.entries(H).map(([x,K])=>({id:x,label:V[x]??x,providerID:K.providerID,modelID:K.modelID}))}function S(x){return Y[x]}function _(){return Z}function d(x,K,...J){return J.flat().findLast(($)=>P(x,$.permission)&&P(K,$.pattern))??{action:"ask",permission:x,pattern:"*"}}function I(x,K){for(let J=K.length;J>0;J--){let j=K.slice(0,J).join(" "),W=x[j];if(W!==void 0)return K.slice(0,W)}if(K.length===0)return[];return K.slice(0,1)}function y(){return(process.env.QITQODE_BACKEND_URL?.trim()||w).replace(/\/+$/,"")}function G(){return`${y()}/streamTier`}function E(){return new URL(G()).origin}function o(){return y()}function v(){return O}function g(x){return b(x)}function T(){return B}var R=["generate","explore","dream","distill","summary","compaction","title"];export{H as bs,N as cs};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-r9w0thdk.js";var t="./tree-sitter-3jzf13jk.wasm";export{t as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{n as a,o as b}from"./chunk-bzebyyfr.js";import"./chunk-v6v9xn81.js";import"./chunk-ngfxxfem.js";import"./chunk-c8k32724.js";import"./chunk-q9tgdghx.js";import"./chunk-d7nsd979.js";import"./chunk-gbkz04ke.js";import"./chunk-4pshnq6g.js";import"./chunk-55ykn8nz.js";import"./chunk-avefgbjg.js";import"./chunk-wyj8cpx5.js";import"./chunk-8wwdrwf2.js";import"./chunk-zc0cdvcv.js";import"./chunk-yhj01dz9.js";import"./chunk-d6jhs818.js";import"./chunk-mhtxp66q.js";import"./chunk-eg3syjtv.js";import"./chunk-43ttzy29.js";import"./chunk-pe2xdkez.js";import"./chunk-hjt94wce.js";import"./chunk-w46g7kdq.js";import"./chunk-bd21p9zz.js";import"./chunk-p54bzjtv.js";import"./chunk-ha1w0xzh.js";import"./chunk-6m9jb0s9.js";import"./chunk-vygkwwjd.js";import"./chunk-k3dacdp5.js";import"./chunk-99s035f0.js";import"./chunk-h9wh48d0.js";import"./chunk-tzb26ntq.js";import"./chunk-mh19kwzw.js";import"./chunk-q3h42a94.js";import"./chunk-hqbbs9dm.js";import"./chunk-9zm6r55d.js";import"./chunk-vcygx6hs.js";import"./chunk-khzzmyk2.js";import"./chunk-y7hgevfv.js";import"./chunk-47k5jy1p.js";import"./chunk-cfhfc86j.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-dnnkq5y4.js";import"./chunk-t239rvej.js";import"./chunk-yz25607t.js";import"./chunk-7hvf9dgx.js";import"./chunk-wkg3c643.js";import"./chunk-fhqfqd5v.js";import"./chunk-q3nvzhyh.js";import"./chunk-5df5aja0.js";import"./chunk-73r8bjjz.js";import"./chunk-xy0gnpen.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-nj1ntakd.js";import"./chunk-cmb62jkt.js";import"./chunk-7vmx8bg9.js";import"./chunk-tkrwcjkr.js";import"./chunk-vdrz2t9c.js";import"./chunk-fr34mnyg.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-pxm4qvqk.js";import"./chunk-j8fcfhr2.js";import"./chunk-r9w0thdk.js";export{b as tui,a as rendererConfig};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{wO as t}from"./chunk-r9w0thdk.js";var e=await import("./chunk-m7qxxbns.js",{with:{type:"file"}}),a=e.default;export{a as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-r9w0thdk.js";var t=Object.fromEntries([]);export{t as modules};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ke as a}from"./chunk-7g66qc1v.js";import"./chunk-68v3b6ns.js";import"./chunk-bne5w117.js";import"./chunk-j0bwa5dk.js";import"./chunk-2drzgtv3.js";import"./chunk-r9w0thdk.js";export{a as fromHttp};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-r9w0thdk.js";var h="./tree-sitter-typescript-zxjzwt75.wasm";export{h as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{wO as t}from"./chunk-r9w0thdk.js";var e=await import("./chunk-3sq60y9f.js",{with:{type:"file"}}),a=e.default;export{a as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-r9w0thdk.js";var G="./tree-sitter-bash-hq5s6fxb.wasm";export{G as default};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Mg as a}from"./chunk-ycvwpmd9.js";import{Bh as c,bh as t}from"./chunk-hjt94wce.js";import"./chunk-w46g7kdq.js";import"./chunk-bd21p9zz.js";import"./chunk-p54bzjtv.js";import"./chunk-ha1w0xzh.js";import"./chunk-6m9jb0s9.js";import"./chunk-vygkwwjd.js";import"./chunk-k3dacdp5.js";import"./chunk-99s035f0.js";import"./chunk-h9wh48d0.js";import"./chunk-tzb26ntq.js";import"./chunk-mh19kwzw.js";import"./chunk-q3h42a94.js";import"./chunk-hqbbs9dm.js";import"./chunk-9zm6r55d.js";import"./chunk-vcygx6hs.js";import"./chunk-khzzmyk2.js";import"./chunk-y7hgevfv.js";import"./chunk-47k5jy1p.js";import"./chunk-cfhfc86j.js";import"./chunk-ph8hn1wt.js";import"./chunk-ptqk1j2r.js";import"./chunk-cqtkxwd8.js";import"./chunk-pr7z5dj8.js";import"./chunk-dnnkq5y4.js";import"./chunk-t239rvej.js";import"./chunk-yz25607t.js";import"./chunk-7hvf9dgx.js";import"./chunk-wkg3c643.js";import"./chunk-fhqfqd5v.js";import"./chunk-q3nvzhyh.js";import"./chunk-5df5aja0.js";import"./chunk-73r8bjjz.js";import"./chunk-xy0gnpen.js";import"./chunk-ztyy3ga3.js";import"./chunk-mmjgf680.js";import"./chunk-nj1ntakd.js";import"./chunk-cmb62jkt.js";import"./chunk-tkrwcjkr.js";import"./chunk-vdrz2t9c.js";import"./chunk-fr34mnyg.js";import"./chunk-r5zy4za0.js";import"./chunk-tr6rdr6h.js";import"./chunk-at22twxx.js";import{lt as i}from"./chunk-kgptyf7n.js";import"./chunk-j9h1sp4g.js";import"./chunk-p6crzjtf.js";import"./chunk-55fcmswd.js";import"./chunk-qnvsqnz5.js";import"./chunk-pxm4qvqk.js";import"./chunk-j8fcfhr2.js";import"./chunk-r9w0thdk.js";var n=i.object({name:a.shape.name,branch:a.shape.branch.unwrap(),directory:a.shape.directory.unwrap()}),d={name:"Worktree",description:"Create a git worktree",async configure(e){let r=await c.runPromise(t.Service.use((o)=>o.makeWorktreeInfo()));return{...e,name:r.name,branch:r.branch,directory:r.directory}},async create(e){let r=n.parse(e);await c.runPromise(t.Service.use((o)=>o.createFromInfo({name:r.name,directory:r.directory,branch:r.branch})))},async remove(e){let r=n.parse(e);await c.runPromise(t.Service.use((o)=>o.remove({directory:r.directory})))},target(e){return{type:"local",directory:n.parse(e).directory}}};export{d as WorktreeAdaptor};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Id as a}from"./chunk-32j0q58h.js";import"./chunk-wyj8cpx5.js";import"./chunk-r9w0thdk.js";export{a as dict};
@@ -1,2 +0,0 @@
1
- // @bun
2
- import"./chunk-r9w0thdk.js";var k="./opentui-drfwd3v7.dll";export{k as default};