@bkm016/basalt 0.1.29 → 0.1.31

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 (964) hide show
  1. package/README.md +3 -2
  2. package/chunk-04326385.js +39 -0
  3. package/chunk-0er07d2g.js +51 -0
  4. package/chunk-0ge4k9gq.js +2 -0
  5. package/chunk-11zc1b2w.js +3 -0
  6. package/chunk-12203fgm.js +2 -0
  7. package/chunk-194d4z7x.js +7 -0
  8. package/chunk-1apm7p2e.js +2 -0
  9. package/chunk-1t0yzkg7.js +4 -0
  10. package/chunk-2csz31nh.js +2 -0
  11. package/chunk-2rqpfv4h.js +3 -0
  12. package/chunk-39cfcar4.js +3 -0
  13. package/chunk-3gw871zb.js +2 -0
  14. package/chunk-4a5xttdp.js +3 -0
  15. package/chunk-4st5xeee.js +2 -0
  16. package/chunk-5h17n6g1.js +3 -0
  17. package/chunk-5rn18vrq.js +5 -0
  18. package/chunk-5tdnvdmz.js +2 -0
  19. package/chunk-6gzvp0f6.js +50 -0
  20. package/chunk-6qavr39k.js +2 -0
  21. package/chunk-6xn0r0dd.js +3 -0
  22. package/chunk-71pz02bd.js +8 -0
  23. package/chunk-7h76jrss.js +7 -0
  24. package/chunk-7hss4hs3.js +7 -0
  25. package/chunk-7vdq0wye.js +2 -0
  26. package/chunk-7w187ycz.js +10 -0
  27. package/chunk-81s7mvf2.js +16 -0
  28. package/chunk-8j8acxde.js +2 -0
  29. package/chunk-9nfz04yr.js +2 -0
  30. package/chunk-9nkb5q43.js +3 -0
  31. package/chunk-9zcfam20.js +2 -0
  32. package/chunk-a6zvmsbh.js +12 -0
  33. package/chunk-anr8aghq.js +59 -0
  34. package/chunk-av8zh9yp.js +2 -0
  35. package/chunk-bwv97dtf.js +2 -0
  36. package/chunk-cjy4rssa.js +10 -0
  37. package/chunk-dmdyqq1k.js +2 -0
  38. package/chunk-dzvq7vt6.js +2 -0
  39. package/chunk-ejrksf6g.js +3 -0
  40. package/chunk-erxka5vh.js +18 -0
  41. package/chunk-fc41dvhp.js +12 -0
  42. package/chunk-fdgrayj5.js +3 -0
  43. package/chunk-fsekbhqb.js +3 -0
  44. package/chunk-fwcqcecb.js +8 -0
  45. package/chunk-hhwnmhbb.js +2 -0
  46. package/chunk-jm2bn5mq.js +3 -0
  47. package/chunk-jm5j5jfy.js +3 -0
  48. package/chunk-jsvr3s4q.js +5 -0
  49. package/chunk-jwk5a5tk.js +25 -0
  50. package/chunk-khy3j5kp.js +63 -0
  51. package/chunk-mwc59w50.js +31 -0
  52. package/chunk-mypbpphn.js +3 -0
  53. package/chunk-ng5ncy65.js +2 -0
  54. package/chunk-nmvayfq3.js +3 -0
  55. package/chunk-nw4h0wm9.js +2 -0
  56. package/chunk-pxsgm6ff.js +2 -0
  57. package/chunk-r0gsb1qs.js +3 -0
  58. package/chunk-rbfpa63e.js +3 -0
  59. package/chunk-rsrh5dgx.js +2 -0
  60. package/chunk-s2pm97nk.js +286 -0
  61. package/chunk-s6tnmg6x.js +3 -0
  62. package/chunk-se548edt.js +20 -0
  63. package/chunk-tsdeeqb8.js +3 -0
  64. package/chunk-vnv3a6t2.js +3 -0
  65. package/chunk-vrsh8cx1.js +3 -0
  66. package/chunk-vx4v71t4.js +498 -0
  67. package/chunk-w3v8zahw.js +2 -0
  68. package/chunk-w6m8c4vf.js +11 -0
  69. package/chunk-wd7sj5cv.js +2 -0
  70. package/chunk-we8v9wkw.js +9 -0
  71. package/chunk-wvn68m5f.js +4058 -0
  72. package/chunk-x055cas0.js +5 -0
  73. package/chunk-x2ry671h.js +44 -0
  74. package/chunk-x5vrtxkj.js +3 -0
  75. package/chunk-xedzsj31.js +5 -0
  76. package/chunk-xp83v3zm.js +2 -0
  77. package/chunk-ykzm5g1b.js +25 -0
  78. package/chunk-yq2bwebb.js +3 -0
  79. package/chunk-yygcpnwc.js +3 -0
  80. package/chunk-zjf34acb.js +2 -0
  81. package/compiled.js +10 -10
  82. package/package.json +4 -1
  83. package/ui-test-worker.js +24 -24
  84. package/web/chunk-01mrggts.js +1 -0
  85. package/web/chunk-01mrggts.js.br +0 -0
  86. package/web/chunk-01mrggts.js.gz +0 -0
  87. package/web/chunk-0b25tje3.js +1 -0
  88. package/web/chunk-0b25tje3.js.br +0 -0
  89. package/web/chunk-0b25tje3.js.gz +0 -0
  90. package/web/chunk-0g46ww9d.js +1 -0
  91. package/web/chunk-0g46ww9d.js.br +0 -0
  92. package/web/chunk-0g46ww9d.js.gz +0 -0
  93. package/web/chunk-0grg8w51.js +200 -0
  94. package/web/chunk-0grg8w51.js.br +0 -0
  95. package/web/chunk-0grg8w51.js.gz +0 -0
  96. package/web/chunk-0qf3m69c.js +24 -0
  97. package/web/chunk-0qf3m69c.js.br +0 -0
  98. package/web/chunk-0qf3m69c.js.gz +0 -0
  99. package/web/chunk-14yejkcn.js +7 -0
  100. package/web/chunk-14yejkcn.js.br +0 -0
  101. package/web/chunk-14yejkcn.js.gz +0 -0
  102. package/web/chunk-1ffzwm6m.js +106 -0
  103. package/web/chunk-1ffzwm6m.js.br +0 -0
  104. package/web/chunk-1ffzwm6m.js.gz +0 -0
  105. package/web/chunk-1ncaw3hk.js +3 -0
  106. package/web/chunk-1ncaw3hk.js.br +0 -0
  107. package/web/chunk-1ncaw3hk.js.gz +0 -0
  108. package/web/chunk-1x2kh4he.js +1 -0
  109. package/web/chunk-1x2kh4he.js.br +0 -0
  110. package/web/chunk-1x2kh4he.js.gz +0 -0
  111. package/web/chunk-23atmwvk.js +2 -0
  112. package/web/chunk-23atmwvk.js.br +0 -0
  113. package/web/chunk-23atmwvk.js.gz +0 -0
  114. package/web/chunk-2gfgrjy6.js +142 -0
  115. package/web/chunk-2gfgrjy6.js.br +0 -0
  116. package/web/chunk-2gfgrjy6.js.gz +0 -0
  117. package/web/chunk-2ttatv42.js +2 -0
  118. package/web/chunk-2ttatv42.js.br +0 -0
  119. package/web/chunk-2ttatv42.js.gz +0 -0
  120. package/web/chunk-2vqn82nw.js +139 -0
  121. package/web/chunk-2vqn82nw.js.br +0 -0
  122. package/web/chunk-2vqn82nw.js.gz +0 -0
  123. package/web/chunk-2wzvn2ne.js +1 -0
  124. package/web/chunk-2wzvn2ne.js.br +0 -0
  125. package/web/chunk-2wzvn2ne.js.gz +0 -0
  126. package/web/chunk-3at8qbcv.js +89 -0
  127. package/web/chunk-3at8qbcv.js.br +0 -0
  128. package/web/chunk-3at8qbcv.js.gz +0 -0
  129. package/web/chunk-3b97pd97.js +120 -0
  130. package/web/chunk-3b97pd97.js.br +0 -0
  131. package/web/chunk-3b97pd97.js.gz +0 -0
  132. package/web/chunk-3q5j14ah.js +1 -0
  133. package/web/chunk-3q5j14ah.js.br +0 -0
  134. package/web/chunk-3q5j14ah.js.gz +0 -0
  135. package/web/chunk-45xqp3dn.js +1 -0
  136. package/web/chunk-45xqp3dn.js.br +0 -0
  137. package/web/chunk-45xqp3dn.js.gz +0 -0
  138. package/web/chunk-4fdgpye3.js +2 -0
  139. package/web/chunk-4fdgpye3.js.br +0 -0
  140. package/web/chunk-4fdgpye3.js.gz +0 -0
  141. package/web/chunk-4wpvkw6b.js +1141 -0
  142. package/web/chunk-4wpvkw6b.js.br +0 -0
  143. package/web/chunk-4wpvkw6b.js.gz +0 -0
  144. package/web/chunk-51m79xhr.js +2 -0
  145. package/web/chunk-51m79xhr.js.br +2 -0
  146. package/web/chunk-51m79xhr.js.gz +0 -0
  147. package/web/chunk-5c6q7asc.js +1 -0
  148. package/web/chunk-5c6q7asc.js.br +0 -0
  149. package/web/chunk-5c6q7asc.js.gz +0 -0
  150. package/web/chunk-5vbnqhs0.js +38 -0
  151. package/web/chunk-5vbnqhs0.js.br +0 -0
  152. package/web/chunk-5vbnqhs0.js.gz +0 -0
  153. package/web/chunk-688a15p4.js +2 -0
  154. package/web/chunk-688a15p4.js.br +0 -0
  155. package/web/chunk-688a15p4.js.gz +0 -0
  156. package/web/chunk-6f9btq4p.js +1 -0
  157. package/web/chunk-6f9btq4p.js.br +0 -0
  158. package/web/chunk-6f9btq4p.js.gz +0 -0
  159. package/web/chunk-6geede02.js +217 -0
  160. package/web/chunk-6geede02.js.br +0 -0
  161. package/web/chunk-6geede02.js.gz +0 -0
  162. package/web/chunk-6j37ynfq.js +1 -0
  163. package/web/chunk-6j37ynfq.js.br +0 -0
  164. package/web/chunk-6j37ynfq.js.gz +0 -0
  165. package/web/chunk-7j7btfha.js +292 -0
  166. package/web/chunk-7j7btfha.js.br +0 -0
  167. package/web/chunk-7j7btfha.js.gz +0 -0
  168. package/web/chunk-8299qcyc.js +1 -0
  169. package/web/chunk-8299qcyc.js.br +0 -0
  170. package/web/chunk-8299qcyc.js.gz +0 -0
  171. package/web/chunk-8mncz9c6.js +89 -0
  172. package/web/chunk-8mncz9c6.js.br +0 -0
  173. package/web/chunk-8mncz9c6.js.gz +0 -0
  174. package/web/chunk-8pygn7wf.js +1 -0
  175. package/web/chunk-8pygn7wf.js.br +0 -0
  176. package/web/chunk-8pygn7wf.js.gz +0 -0
  177. package/web/chunk-8ye62j8m.js +2 -0
  178. package/web/chunk-8ye62j8m.js.br +3 -0
  179. package/web/chunk-8ye62j8m.js.gz +0 -0
  180. package/web/chunk-982457hh.js +1 -0
  181. package/web/chunk-982457hh.js.br +2 -0
  182. package/web/chunk-982457hh.js.gz +0 -0
  183. package/web/chunk-9f9pp12b.js +1 -0
  184. package/web/chunk-9f9pp12b.js.br +0 -0
  185. package/web/chunk-9f9pp12b.js.gz +0 -0
  186. package/web/chunk-9j7v0e4v.js +2 -0
  187. package/web/chunk-9j7v0e4v.js.br +0 -0
  188. package/web/chunk-9j7v0e4v.js.gz +0 -0
  189. package/web/chunk-9k6d95ab.js +1 -0
  190. package/web/chunk-9k6d95ab.js.br +0 -0
  191. package/web/chunk-9k6d95ab.js.gz +0 -0
  192. package/web/chunk-9z4tf6fd.js +1 -0
  193. package/web/chunk-9z4tf6fd.js.br +0 -0
  194. package/web/chunk-9z4tf6fd.js.gz +0 -0
  195. package/web/chunk-a11ev6ff.js +1 -0
  196. package/web/chunk-a11ev6ff.js.br +0 -0
  197. package/web/chunk-a11ev6ff.js.gz +0 -0
  198. package/web/chunk-ayamka39.js +1 -0
  199. package/web/chunk-ayamka39.js.br +0 -0
  200. package/web/chunk-ayamka39.js.gz +0 -0
  201. package/web/chunk-b6k80wbw.js +1 -0
  202. package/web/chunk-b6k80wbw.js.br +0 -0
  203. package/web/chunk-b6k80wbw.js.gz +0 -0
  204. package/web/chunk-b6w2gmw0.js +2 -0
  205. package/web/chunk-b6w2gmw0.js.br +0 -0
  206. package/web/chunk-b6w2gmw0.js.gz +0 -0
  207. package/web/chunk-ba22js10.js +84 -0
  208. package/web/chunk-ba22js10.js.br +0 -0
  209. package/web/chunk-ba22js10.js.gz +0 -0
  210. package/web/chunk-bq7y294e.js +34 -0
  211. package/web/chunk-bq7y294e.js.br +0 -0
  212. package/web/chunk-bq7y294e.js.gz +0 -0
  213. package/web/chunk-bw9crrb4.js +1 -0
  214. package/web/chunk-bw9crrb4.js.br +0 -0
  215. package/web/chunk-bw9crrb4.js.gz +0 -0
  216. package/web/chunk-c0vc50pd.js +4 -0
  217. package/web/chunk-c0vc50pd.js.br +0 -0
  218. package/web/chunk-c0vc50pd.js.gz +0 -0
  219. package/web/chunk-c2vtzhbs.js +1 -0
  220. package/web/chunk-c2vtzhbs.js.br +0 -0
  221. package/web/chunk-c2vtzhbs.js.gz +0 -0
  222. package/web/chunk-cf9886tj.js +2 -0
  223. package/web/chunk-cf9886tj.js.br +0 -0
  224. package/web/chunk-cf9886tj.js.gz +0 -0
  225. package/web/chunk-cqf4fzk6.js +16 -0
  226. package/web/chunk-cqf4fzk6.js.br +0 -0
  227. package/web/chunk-cqf4fzk6.js.gz +0 -0
  228. package/web/chunk-ct9sq4ka.js +1 -0
  229. package/web/chunk-ct9sq4ka.js.br +0 -0
  230. package/web/chunk-ct9sq4ka.js.gz +0 -0
  231. package/web/chunk-cy60hc6q.js +2 -0
  232. package/web/chunk-cy60hc6q.js.br +0 -0
  233. package/web/chunk-cy60hc6q.js.gz +0 -0
  234. package/web/chunk-cygtgz2r.js +2 -0
  235. package/web/chunk-cygtgz2r.js.br +0 -0
  236. package/web/chunk-cygtgz2r.js.gz +0 -0
  237. package/web/chunk-dgf0f0er.js +214 -0
  238. package/web/chunk-dgf0f0er.js.br +0 -0
  239. package/web/chunk-dgf0f0er.js.gz +0 -0
  240. package/web/chunk-dscn4mpq.js +4 -0
  241. package/web/chunk-dscn4mpq.js.br +0 -0
  242. package/web/chunk-dscn4mpq.js.gz +0 -0
  243. package/web/chunk-e7683p83.js +1 -0
  244. package/web/chunk-e7683p83.js.br +0 -0
  245. package/web/chunk-e7683p83.js.gz +0 -0
  246. package/web/chunk-eanfvatc.js +1 -0
  247. package/web/chunk-eanfvatc.js.br +0 -0
  248. package/web/chunk-eanfvatc.js.gz +0 -0
  249. package/web/chunk-egfn5522.js +1 -0
  250. package/web/chunk-egfn5522.js.br +3 -0
  251. package/web/chunk-egfn5522.js.gz +0 -0
  252. package/web/chunk-ejk5ec5n.js +1 -0
  253. package/web/chunk-ejk5ec5n.js.br +0 -0
  254. package/web/chunk-ejk5ec5n.js.gz +0 -0
  255. package/web/chunk-en5n60qw.js +2 -0
  256. package/web/chunk-en5n60qw.js.br +0 -0
  257. package/web/chunk-en5n60qw.js.gz +0 -0
  258. package/web/chunk-fzffxer1.js +41 -0
  259. package/web/chunk-fzffxer1.js.br +0 -0
  260. package/web/chunk-fzffxer1.js.gz +0 -0
  261. package/web/chunk-g19dt2gr.js +55 -0
  262. package/web/chunk-g19dt2gr.js.br +0 -0
  263. package/web/chunk-g19dt2gr.js.gz +0 -0
  264. package/web/chunk-g6cj4czr.js +2 -0
  265. package/web/chunk-g6cj4czr.js.br +0 -0
  266. package/web/chunk-g6cj4czr.js.gz +0 -0
  267. package/web/chunk-gbv8v3z7.js +78 -0
  268. package/web/chunk-gbv8v3z7.js.br +0 -0
  269. package/web/chunk-gbv8v3z7.js.gz +0 -0
  270. package/web/chunk-h1w081tm.js +12 -0
  271. package/web/chunk-h1w081tm.js.br +0 -0
  272. package/web/chunk-h1w081tm.js.gz +0 -0
  273. package/web/chunk-h47k4j7f.js +1 -0
  274. package/web/chunk-h47k4j7f.js.br +0 -0
  275. package/web/chunk-h47k4j7f.js.gz +0 -0
  276. package/web/chunk-h87t8gsr.js +1 -0
  277. package/web/chunk-h87t8gsr.js.br +0 -0
  278. package/web/chunk-h87t8gsr.js.gz +0 -0
  279. package/web/chunk-haewrbm7.js +1 -0
  280. package/web/chunk-haewrbm7.js.br +0 -0
  281. package/web/chunk-haewrbm7.js.gz +0 -0
  282. package/web/chunk-hahz28y7.js +2 -0
  283. package/web/chunk-hahz28y7.js.br +0 -0
  284. package/web/chunk-hahz28y7.js.gz +0 -0
  285. package/web/chunk-hqz75fkz.js +1 -0
  286. package/web/chunk-hqz75fkz.js.br +0 -0
  287. package/web/chunk-hqz75fkz.js.gz +0 -0
  288. package/web/chunk-hr4fa514.js +2 -0
  289. package/web/chunk-hr4fa514.js.br +0 -0
  290. package/web/chunk-hr4fa514.js.gz +0 -0
  291. package/web/chunk-j7vtqbbc.js +1 -0
  292. package/web/chunk-j7vtqbbc.js.br +0 -0
  293. package/web/chunk-j7vtqbbc.js.gz +0 -0
  294. package/web/chunk-jt33d37t.js +1 -0
  295. package/web/chunk-jt33d37t.js.br +0 -0
  296. package/web/chunk-jt33d37t.js.gz +0 -0
  297. package/web/chunk-k3qt0rx5.js +2 -0
  298. package/web/chunk-k3qt0rx5.js.br +0 -0
  299. package/web/chunk-k3qt0rx5.js.gz +0 -0
  300. package/web/chunk-kgmw7sh4.js +1 -0
  301. package/web/chunk-kgmw7sh4.js.br +0 -0
  302. package/web/chunk-kgmw7sh4.js.gz +0 -0
  303. package/web/chunk-kjvk8prw.js +1 -0
  304. package/web/chunk-kjvk8prw.js.br +0 -0
  305. package/web/chunk-kjvk8prw.js.gz +0 -0
  306. package/web/chunk-kq7snx3t.js +1 -0
  307. package/web/chunk-kq7snx3t.js.br +0 -0
  308. package/web/chunk-kq7snx3t.js.gz +0 -0
  309. package/web/chunk-kvteqhz2.js +1 -0
  310. package/web/chunk-kvteqhz2.js.br +2 -0
  311. package/web/chunk-kvteqhz2.js.gz +0 -0
  312. package/web/chunk-kypct03a.js +169 -0
  313. package/web/chunk-kypct03a.js.br +0 -0
  314. package/web/chunk-kypct03a.js.gz +0 -0
  315. package/web/chunk-m4hz4v80.js +370 -0
  316. package/web/chunk-m4hz4v80.js.br +0 -0
  317. package/web/chunk-m4hz4v80.js.gz +0 -0
  318. package/web/chunk-m5k8jhya.js +40 -0
  319. package/web/chunk-m5k8jhya.js.br +0 -0
  320. package/web/chunk-m5k8jhya.js.gz +0 -0
  321. package/web/chunk-mfsdyw6v.js +2 -0
  322. package/web/chunk-mfsdyw6v.js.br +0 -0
  323. package/web/chunk-mfsdyw6v.js.gz +0 -0
  324. package/web/chunk-mr38k717.js +140 -0
  325. package/web/chunk-mr38k717.js.br +0 -0
  326. package/web/chunk-mr38k717.js.gz +0 -0
  327. package/web/chunk-mtcet6gc.js +2 -0
  328. package/web/chunk-mtcet6gc.js.br +0 -0
  329. package/web/chunk-mtcet6gc.js.gz +0 -0
  330. package/web/chunk-mtfv8gjh.js +291 -0
  331. package/web/chunk-mtfv8gjh.js.br +0 -0
  332. package/web/chunk-mtfv8gjh.js.gz +0 -0
  333. package/web/chunk-nnyjx4ef.js +1 -0
  334. package/web/chunk-nnyjx4ef.js.br +0 -0
  335. package/web/chunk-nnyjx4ef.js.gz +0 -0
  336. package/web/chunk-npn3fk69.js +1 -0
  337. package/web/chunk-npn3fk69.js.br +2 -0
  338. package/web/chunk-npn3fk69.js.gz +0 -0
  339. package/web/chunk-p2gdfpjs.js +2 -0
  340. package/web/chunk-p2gdfpjs.js.br +0 -0
  341. package/web/chunk-p2gdfpjs.js.gz +0 -0
  342. package/web/chunk-q0by2m1w.js +21 -0
  343. package/web/chunk-q0by2m1w.js.br +0 -0
  344. package/web/chunk-q0by2m1w.js.gz +0 -0
  345. package/web/chunk-q5hj3y5k.js +2 -0
  346. package/web/chunk-q5hj3y5k.js.br +0 -0
  347. package/web/chunk-q5hj3y5k.js.gz +0 -0
  348. package/web/chunk-q6k872kv.js +7 -0
  349. package/web/chunk-q6k872kv.js.br +0 -0
  350. package/web/chunk-q6k872kv.js.gz +0 -0
  351. package/web/chunk-q7krdwy7.js +332 -0
  352. package/web/chunk-q7krdwy7.js.br +0 -0
  353. package/web/chunk-q7krdwy7.js.gz +0 -0
  354. package/web/chunk-q7wbksg4.js +1 -0
  355. package/web/chunk-q7wbksg4.js.br +0 -0
  356. package/web/chunk-q7wbksg4.js.gz +0 -0
  357. package/web/chunk-qdxa0c4c.js +1 -0
  358. package/web/chunk-qdxa0c4c.js.br +0 -0
  359. package/web/chunk-qdxa0c4c.js.gz +0 -0
  360. package/web/chunk-r76we294.js +1 -0
  361. package/web/chunk-r76we294.js.br +0 -0
  362. package/web/chunk-r76we294.js.gz +0 -0
  363. package/web/chunk-r9m8jh7x.js +2 -0
  364. package/web/chunk-r9m8jh7x.js.br +0 -0
  365. package/web/chunk-r9m8jh7x.js.gz +0 -0
  366. package/web/chunk-rnhbck1h.js +99 -0
  367. package/web/chunk-rnhbck1h.js.br +0 -0
  368. package/web/chunk-rnhbck1h.js.gz +0 -0
  369. package/web/chunk-rxtzde6n.js +62 -0
  370. package/web/chunk-rxtzde6n.js.br +0 -0
  371. package/web/chunk-rxtzde6n.js.gz +0 -0
  372. package/web/chunk-ryds6qnb.js +2 -0
  373. package/web/chunk-ryds6qnb.js.br +0 -0
  374. package/web/chunk-ryds6qnb.js.gz +0 -0
  375. package/web/chunk-shc8bv2k.js +2 -0
  376. package/web/chunk-shc8bv2k.js.br +0 -0
  377. package/web/chunk-shc8bv2k.js.gz +0 -0
  378. package/web/chunk-stnwzrqv.js +98 -0
  379. package/web/chunk-stnwzrqv.js.br +0 -0
  380. package/web/chunk-stnwzrqv.js.gz +0 -0
  381. package/web/chunk-sy28z9pe.js +2 -0
  382. package/web/chunk-sy28z9pe.js.br +2 -0
  383. package/web/chunk-sy28z9pe.js.gz +0 -0
  384. package/web/chunk-t60hp0qs.js +36 -0
  385. package/web/chunk-t60hp0qs.js.br +0 -0
  386. package/web/chunk-t60hp0qs.js.gz +0 -0
  387. package/web/chunk-t9twwgfe.js +1 -0
  388. package/web/chunk-t9twwgfe.js.br +0 -0
  389. package/web/chunk-t9twwgfe.js.gz +0 -0
  390. package/web/chunk-tbgavq0t.js +2 -0
  391. package/web/chunk-tbgavq0t.js.br +0 -0
  392. package/web/chunk-tbgavq0t.js.gz +0 -0
  393. package/web/chunk-tjma3e4d.js +7 -0
  394. package/web/chunk-tjma3e4d.js.br +0 -0
  395. package/web/chunk-tjma3e4d.js.gz +0 -0
  396. package/web/chunk-tn39vbcz.js +2 -0
  397. package/web/chunk-tn39vbcz.js.br +0 -0
  398. package/web/chunk-tn39vbcz.js.gz +0 -0
  399. package/web/chunk-tv9rz73h.js +30 -0
  400. package/web/chunk-tv9rz73h.js.br +0 -0
  401. package/web/chunk-tv9rz73h.js.gz +0 -0
  402. package/web/chunk-twgzayjk.js +1 -0
  403. package/web/chunk-twgzayjk.js.br +0 -0
  404. package/web/chunk-twgzayjk.js.gz +0 -0
  405. package/web/chunk-tz4w2nh2.js +303 -0
  406. package/web/chunk-tz4w2nh2.js.br +0 -0
  407. package/web/chunk-tz4w2nh2.js.gz +0 -0
  408. package/web/chunk-v0egh6d3.js +1 -0
  409. package/web/chunk-v0egh6d3.js.br +0 -0
  410. package/web/chunk-v0egh6d3.js.gz +0 -0
  411. package/web/chunk-vcawg8d2.js +1 -0
  412. package/web/chunk-vcawg8d2.js.br +0 -0
  413. package/web/chunk-vcawg8d2.js.gz +0 -0
  414. package/web/chunk-vh8s2rek.js +1 -0
  415. package/web/chunk-vh8s2rek.js.br +2 -0
  416. package/web/chunk-vh8s2rek.js.gz +0 -0
  417. package/web/chunk-vns6bpqm.js +2 -0
  418. package/web/chunk-vns6bpqm.js.br +0 -0
  419. package/web/chunk-vns6bpqm.js.gz +0 -0
  420. package/web/chunk-vvbte0a5.css +1 -0
  421. package/web/chunk-vvbte0a5.css.br +0 -0
  422. package/web/chunk-vvbte0a5.css.gz +0 -0
  423. package/web/chunk-vxzw2t1r.js +1 -0
  424. package/web/chunk-vxzw2t1r.js.br +0 -0
  425. package/web/chunk-vxzw2t1r.js.gz +0 -0
  426. package/web/chunk-w40atygt.js +2 -0
  427. package/web/chunk-w40atygt.js.br +0 -0
  428. package/web/chunk-w40atygt.js.gz +0 -0
  429. package/web/chunk-w4bxgcwm.js +1 -0
  430. package/web/chunk-w4bxgcwm.js.br +0 -0
  431. package/web/chunk-w4bxgcwm.js.gz +0 -0
  432. package/web/chunk-w5t00pns.js +70 -0
  433. package/web/chunk-w5t00pns.js.br +0 -0
  434. package/web/chunk-w5t00pns.js.gz +0 -0
  435. package/web/chunk-wpmzdqba.js +324 -0
  436. package/web/chunk-wpmzdqba.js.br +0 -0
  437. package/web/chunk-wpmzdqba.js.gz +0 -0
  438. package/web/chunk-x9mexzav.js +2 -0
  439. package/web/chunk-x9mexzav.js.br +0 -0
  440. package/web/chunk-x9mexzav.js.gz +0 -0
  441. package/web/chunk-xc74f1nj.js +1 -0
  442. package/web/chunk-xc74f1nj.js.br +0 -0
  443. package/web/chunk-xc74f1nj.js.gz +0 -0
  444. package/web/chunk-xs4cyb71.js +1 -0
  445. package/web/chunk-xs4cyb71.js.br +0 -0
  446. package/web/chunk-xs4cyb71.js.gz +0 -0
  447. package/web/chunk-xthg4efe.js +1 -0
  448. package/web/chunk-xthg4efe.js.br +0 -0
  449. package/web/chunk-xthg4efe.js.gz +0 -0
  450. package/web/chunk-y48mj5d7.js +1 -0
  451. package/web/chunk-y48mj5d7.js.br +0 -0
  452. package/web/chunk-y48mj5d7.js.gz +0 -0
  453. package/web/chunk-yet0bbyh.js +1 -0
  454. package/web/chunk-yet0bbyh.js.br +0 -0
  455. package/web/chunk-yet0bbyh.js.gz +0 -0
  456. package/web/chunk-yzcxmqy3.js +1 -0
  457. package/web/chunk-yzcxmqy3.js.br +0 -0
  458. package/web/chunk-yzcxmqy3.js.gz +0 -0
  459. package/web/chunk-z2a9zwwx.js +24 -0
  460. package/web/chunk-z2a9zwwx.js.br +0 -0
  461. package/web/chunk-z2a9zwwx.js.gz +0 -0
  462. package/web/chunk-z8fgdsx5.js +1 -0
  463. package/web/chunk-z8fgdsx5.js.br +0 -0
  464. package/web/chunk-z8fgdsx5.js.gz +0 -0
  465. package/web/chunk-zeyw59b9.js +2 -0
  466. package/web/chunk-zeyw59b9.js.br +0 -0
  467. package/web/chunk-zeyw59b9.js.gz +0 -0
  468. package/web/chunk-zftk5ww7.js +8 -0
  469. package/web/chunk-zftk5ww7.js.br +0 -0
  470. package/web/chunk-zftk5ww7.js.gz +0 -0
  471. package/web/chunk-zmbp3phd.js +2 -0
  472. package/web/chunk-zmbp3phd.js.br +0 -0
  473. package/web/chunk-zmbp3phd.js.gz +0 -0
  474. package/web/chunk-zpxh70dj.js +1 -0
  475. package/web/chunk-zpxh70dj.js.br +0 -0
  476. package/web/chunk-zpxh70dj.js.gz +0 -0
  477. package/web/chunk-zqhdf12s.js +39 -0
  478. package/web/chunk-zqhdf12s.js.br +0 -0
  479. package/web/chunk-zqhdf12s.js.gz +0 -0
  480. package/web/chunk-zr2xst5w.js +1 -0
  481. package/web/chunk-zr2xst5w.js.br +0 -0
  482. package/web/chunk-zr2xst5w.js.gz +0 -0
  483. package/web/index.html +27 -2
  484. package/web/index.html.br +0 -0
  485. package/web/index.html.gz +0 -0
  486. package/web/sw.js +39 -24
  487. package/web/sw.js.br +0 -0
  488. package/web/sw.js.gz +0 -0
  489. package/worker.js +1 -1
  490. package/chunk-01fz0kzx.js +0 -2
  491. package/chunk-06k5mcmy.js +0 -4018
  492. package/chunk-14pg1g7b.js +0 -2
  493. package/chunk-1cvzbvsq.js +0 -2
  494. package/chunk-1pgj58dw.js +0 -20
  495. package/chunk-200cn72d.js +0 -16
  496. package/chunk-2nd8hvf3.js +0 -31
  497. package/chunk-39wsmkd7.js +0 -4
  498. package/chunk-54qc1d5t.js +0 -2
  499. package/chunk-59enxka6.js +0 -50
  500. package/chunk-5fs3331q.js +0 -3
  501. package/chunk-674kjaqz.js +0 -2
  502. package/chunk-6pqsx156.js +0 -12
  503. package/chunk-6rw1ex78.js +0 -2
  504. package/chunk-6vz0znf6.js +0 -8
  505. package/chunk-73z1fv3d.js +0 -9
  506. package/chunk-7dnq7g8f.js +0 -3
  507. package/chunk-7emc0sy7.js +0 -11
  508. package/chunk-7nsrfrmx.js +0 -2
  509. package/chunk-8hxsap9d.js +0 -5
  510. package/chunk-8kmtns4v.js +0 -5
  511. package/chunk-9dy56agy.js +0 -51
  512. package/chunk-9mt2k1a7.js +0 -5
  513. package/chunk-9sq7yxh7.js +0 -12
  514. package/chunk-9x1yprjh.js +0 -2
  515. package/chunk-a5k24aj6.js +0 -3
  516. package/chunk-ades3qy7.js +0 -10
  517. package/chunk-ag642nqs.js +0 -8
  518. package/chunk-aq6xkc1w.js +0 -3
  519. package/chunk-av3zmcd8.js +0 -3
  520. package/chunk-b1hdfsj4.js +0 -25
  521. package/chunk-b5448t3j.js +0 -2
  522. package/chunk-b6rvzkxg.js +0 -3
  523. package/chunk-b8acka7e.js +0 -2
  524. package/chunk-bh680te4.js +0 -2
  525. package/chunk-cb4rvanv.js +0 -2
  526. package/chunk-d6hcvbkh.js +0 -3
  527. package/chunk-dqxks09b.js +0 -3
  528. package/chunk-eg161ep9.js +0 -3
  529. package/chunk-et2s8y6a.js +0 -3
  530. package/chunk-exjytvzn.js +0 -2
  531. package/chunk-f6kg68bj.js +0 -3
  532. package/chunk-fcxdq1dy.js +0 -7
  533. package/chunk-fkjjadt4.js +0 -3
  534. package/chunk-fr1zvytp.js +0 -7
  535. package/chunk-fx3cc8nr.js +0 -3
  536. package/chunk-j01t6mnq.js +0 -3
  537. package/chunk-j24fq8ss.js +0 -2
  538. package/chunk-j55tyjct.js +0 -2
  539. package/chunk-jn0dhvkp.js +0 -2
  540. package/chunk-k9dw37w2.js +0 -3
  541. package/chunk-m6bm0739.js +0 -2
  542. package/chunk-mkfdzt82.js +0 -2
  543. package/chunk-nbm1tqvg.js +0 -3
  544. package/chunk-p5ga5as0.js +0 -25
  545. package/chunk-pmefr1ak.js +0 -490
  546. package/chunk-rf6t7zeb.js +0 -286
  547. package/chunk-s0ne3yb9.js +0 -2
  548. package/chunk-s8ybq82n.js +0 -5
  549. package/chunk-spv39wem.js +0 -7
  550. package/chunk-stgqqm7m.js +0 -59
  551. package/chunk-sykaz5bf.js +0 -18
  552. package/chunk-sz0jywpb.js +0 -39
  553. package/chunk-vcngwaee.js +0 -3
  554. package/chunk-vpvznxf4.js +0 -3
  555. package/chunk-vzh6e5f2.js +0 -2
  556. package/chunk-wkvrtjtc.js +0 -2
  557. package/chunk-wzd9b2qk.js +0 -2
  558. package/chunk-x1cva1gc.js +0 -2
  559. package/chunk-x83jcg3x.js +0 -3
  560. package/chunk-xdyee71m.js +0 -10
  561. package/chunk-xdygdssk.js +0 -3
  562. package/chunk-xjcg6cxc.js +0 -3
  563. package/chunk-xran6f0c.js +0 -2
  564. package/chunk-ymn1s2xs.js +0 -3
  565. package/chunk-ysqx0ye8.js +0 -2
  566. package/chunk-z58jafcm.js +0 -3
  567. package/chunk-zf1c6rj7.js +0 -63
  568. package/chunk-zgtahh10.js +0 -44
  569. package/web/chunk-0nt1mz09.js +0 -1
  570. package/web/chunk-0nt1mz09.js.br +0 -0
  571. package/web/chunk-0nt1mz09.js.gz +0 -0
  572. package/web/chunk-0yye7ex1.js +0 -1
  573. package/web/chunk-0yye7ex1.js.br +0 -0
  574. package/web/chunk-0yye7ex1.js.gz +0 -0
  575. package/web/chunk-1hmw1eaw.js +0 -1
  576. package/web/chunk-1hmw1eaw.js.br +0 -0
  577. package/web/chunk-1hmw1eaw.js.gz +0 -0
  578. package/web/chunk-20gcnbgn.js +0 -2
  579. package/web/chunk-20gcnbgn.js.br +0 -0
  580. package/web/chunk-20gcnbgn.js.gz +0 -0
  581. package/web/chunk-2nwvdqxm.js +0 -1
  582. package/web/chunk-2nwvdqxm.js.br +0 -0
  583. package/web/chunk-2nwvdqxm.js.gz +0 -0
  584. package/web/chunk-2wvgy7f4.js +0 -1
  585. package/web/chunk-2wvgy7f4.js.br +0 -0
  586. package/web/chunk-2wvgy7f4.js.gz +0 -0
  587. package/web/chunk-368znnfs.js +0 -1
  588. package/web/chunk-368znnfs.js.br +0 -0
  589. package/web/chunk-368znnfs.js.gz +0 -0
  590. package/web/chunk-3tx9tqfb.js +0 -291
  591. package/web/chunk-3tx9tqfb.js.br +0 -0
  592. package/web/chunk-3tx9tqfb.js.gz +0 -0
  593. package/web/chunk-414npx47.js +0 -1
  594. package/web/chunk-414npx47.js.br +0 -0
  595. package/web/chunk-414npx47.js.gz +0 -0
  596. package/web/chunk-46ht4dh6.js +0 -24
  597. package/web/chunk-46ht4dh6.js.br +0 -0
  598. package/web/chunk-46ht4dh6.js.gz +0 -0
  599. package/web/chunk-4c418rk9.js +0 -1
  600. package/web/chunk-4c418rk9.js.br +0 -2
  601. package/web/chunk-4c418rk9.js.gz +0 -0
  602. package/web/chunk-4p0sm8e7.js +0 -7
  603. package/web/chunk-4p0sm8e7.js.br +0 -0
  604. package/web/chunk-4p0sm8e7.js.gz +0 -0
  605. package/web/chunk-4zam960g.js +0 -1
  606. package/web/chunk-4zam960g.js.br +0 -0
  607. package/web/chunk-4zam960g.js.gz +0 -0
  608. package/web/chunk-5h63t21g.js +0 -1
  609. package/web/chunk-5h63t21g.js.br +0 -0
  610. package/web/chunk-5h63t21g.js.gz +0 -0
  611. package/web/chunk-5h7xm5mn.js +0 -1
  612. package/web/chunk-5h7xm5mn.js.br +0 -0
  613. package/web/chunk-5h7xm5mn.js.gz +0 -0
  614. package/web/chunk-6crex674.js +0 -89
  615. package/web/chunk-6crex674.js.br +0 -0
  616. package/web/chunk-6crex674.js.gz +0 -0
  617. package/web/chunk-6v031vc6.js +0 -21
  618. package/web/chunk-6v031vc6.js.br +0 -0
  619. package/web/chunk-6v031vc6.js.gz +0 -0
  620. package/web/chunk-782gfmtk.js +0 -38
  621. package/web/chunk-782gfmtk.js.br +0 -0
  622. package/web/chunk-782gfmtk.js.gz +0 -0
  623. package/web/chunk-7a6szg06.js +0 -2
  624. package/web/chunk-7a6szg06.js.br +0 -0
  625. package/web/chunk-7a6szg06.js.gz +0 -0
  626. package/web/chunk-7dvbxn34.js +0 -4
  627. package/web/chunk-7dvbxn34.js.br +0 -0
  628. package/web/chunk-7dvbxn34.js.gz +0 -0
  629. package/web/chunk-7g795nba.js +0 -1
  630. package/web/chunk-7g795nba.js.br +0 -2
  631. package/web/chunk-7g795nba.js.gz +0 -0
  632. package/web/chunk-8fymhvne.js +0 -1
  633. package/web/chunk-8fymhvne.js.br +0 -0
  634. package/web/chunk-8fymhvne.js.gz +0 -0
  635. package/web/chunk-8kcp1h63.js +0 -1
  636. package/web/chunk-8kcp1h63.js.br +0 -0
  637. package/web/chunk-8kcp1h63.js.gz +0 -0
  638. package/web/chunk-8vtr60yn.js +0 -2
  639. package/web/chunk-8vtr60yn.js.br +0 -0
  640. package/web/chunk-8vtr60yn.js.gz +0 -0
  641. package/web/chunk-8y14zggg.js +0 -2
  642. package/web/chunk-8y14zggg.js.br +0 -0
  643. package/web/chunk-8y14zggg.js.gz +0 -0
  644. package/web/chunk-8zg840m3.js +0 -1
  645. package/web/chunk-8zg840m3.js.br +0 -0
  646. package/web/chunk-8zg840m3.js.gz +0 -0
  647. package/web/chunk-940sc4ny.js +0 -7
  648. package/web/chunk-940sc4ny.js.br +0 -0
  649. package/web/chunk-940sc4ny.js.gz +0 -0
  650. package/web/chunk-94f4sz0m.js +0 -1
  651. package/web/chunk-94f4sz0m.js.br +0 -0
  652. package/web/chunk-94f4sz0m.js.gz +0 -0
  653. package/web/chunk-94jy9s3n.js +0 -55
  654. package/web/chunk-94jy9s3n.js.br +0 -0
  655. package/web/chunk-94jy9s3n.js.gz +0 -0
  656. package/web/chunk-97qfkg6n.js +0 -30
  657. package/web/chunk-97qfkg6n.js.br +0 -0
  658. package/web/chunk-97qfkg6n.js.gz +0 -0
  659. package/web/chunk-99c0h3v7.js +0 -1
  660. package/web/chunk-99c0h3v7.js.br +0 -0
  661. package/web/chunk-99c0h3v7.js.gz +0 -0
  662. package/web/chunk-99mgkmjb.js +0 -62
  663. package/web/chunk-99mgkmjb.js.br +0 -0
  664. package/web/chunk-99mgkmjb.js.gz +0 -0
  665. package/web/chunk-9afn27bs.js +0 -1
  666. package/web/chunk-9afn27bs.js.br +0 -2
  667. package/web/chunk-9afn27bs.js.gz +0 -0
  668. package/web/chunk-aan5qk6x.js +0 -1
  669. package/web/chunk-aan5qk6x.js.br +0 -0
  670. package/web/chunk-aan5qk6x.js.gz +0 -0
  671. package/web/chunk-aw4h94zp.js +0 -1
  672. package/web/chunk-aw4h94zp.js.br +0 -0
  673. package/web/chunk-aw4h94zp.js.gz +0 -0
  674. package/web/chunk-azdhgj11.js +0 -40
  675. package/web/chunk-azdhgj11.js.br +0 -0
  676. package/web/chunk-azdhgj11.js.gz +0 -0
  677. package/web/chunk-batey85v.js +0 -2
  678. package/web/chunk-batey85v.js.br +0 -0
  679. package/web/chunk-batey85v.js.gz +0 -0
  680. package/web/chunk-brbxfap5.js +0 -99
  681. package/web/chunk-brbxfap5.js.br +0 -0
  682. package/web/chunk-brbxfap5.js.gz +0 -0
  683. package/web/chunk-bxc8a663.js +0 -2
  684. package/web/chunk-bxc8a663.js.br +0 -0
  685. package/web/chunk-bxc8a663.js.gz +0 -0
  686. package/web/chunk-c2t7zyge.js +0 -169
  687. package/web/chunk-c2t7zyge.js.br +0 -0
  688. package/web/chunk-c2t7zyge.js.gz +0 -0
  689. package/web/chunk-c5bfa3rp.js +0 -1
  690. package/web/chunk-c5bfa3rp.js.br +0 -0
  691. package/web/chunk-c5bfa3rp.js.gz +0 -0
  692. package/web/chunk-c86a6am5.js +0 -2
  693. package/web/chunk-c86a6am5.js.br +0 -3
  694. package/web/chunk-c86a6am5.js.gz +0 -0
  695. package/web/chunk-d5n2yz4e.js +0 -2
  696. package/web/chunk-d5n2yz4e.js.br +0 -0
  697. package/web/chunk-d5n2yz4e.js.gz +0 -0
  698. package/web/chunk-dgtp38mj.js +0 -1
  699. package/web/chunk-dgtp38mj.js.br +0 -0
  700. package/web/chunk-dgtp38mj.js.gz +0 -0
  701. package/web/chunk-e4cwyn1g.js +0 -2
  702. package/web/chunk-e4cwyn1g.js.br +0 -0
  703. package/web/chunk-e4cwyn1g.js.gz +0 -0
  704. package/web/chunk-e4h4dg4y.js +0 -303
  705. package/web/chunk-e4h4dg4y.js.br +0 -0
  706. package/web/chunk-e4h4dg4y.js.gz +0 -0
  707. package/web/chunk-e5f8e2ta.js +0 -1
  708. package/web/chunk-e5f8e2ta.js.br +0 -0
  709. package/web/chunk-e5f8e2ta.js.gz +0 -0
  710. package/web/chunk-e7rwnv7e.js +0 -1
  711. package/web/chunk-e7rwnv7e.js.br +0 -0
  712. package/web/chunk-e7rwnv7e.js.gz +0 -0
  713. package/web/chunk-ef9tqrz4.js +0 -324
  714. package/web/chunk-ef9tqrz4.js.br +0 -0
  715. package/web/chunk-ef9tqrz4.js.gz +0 -0
  716. package/web/chunk-efjc9mga.js +0 -2
  717. package/web/chunk-efjc9mga.js.br +0 -0
  718. package/web/chunk-efjc9mga.js.gz +0 -0
  719. package/web/chunk-ekcnhcm0.js +0 -1
  720. package/web/chunk-ekcnhcm0.js.br +0 -0
  721. package/web/chunk-ekcnhcm0.js.gz +0 -0
  722. package/web/chunk-ekkdhece.js +0 -41
  723. package/web/chunk-ekkdhece.js.br +0 -0
  724. package/web/chunk-ekkdhece.js.gz +0 -0
  725. package/web/chunk-enbqe508.js +0 -36
  726. package/web/chunk-enbqe508.js.br +0 -0
  727. package/web/chunk-enbqe508.js.gz +0 -0
  728. package/web/chunk-ev517x0c.js +0 -1
  729. package/web/chunk-ev517x0c.js.br +0 -0
  730. package/web/chunk-ev517x0c.js.gz +0 -0
  731. package/web/chunk-ex47jeev.js +0 -1
  732. package/web/chunk-ex47jeev.js.br +0 -0
  733. package/web/chunk-ex47jeev.js.gz +0 -0
  734. package/web/chunk-f5wyg9zh.js +0 -2
  735. package/web/chunk-f5wyg9zh.js.br +0 -0
  736. package/web/chunk-f5wyg9zh.js.gz +0 -0
  737. package/web/chunk-ft9p7cr8.js +0 -8
  738. package/web/chunk-ft9p7cr8.js.br +0 -0
  739. package/web/chunk-ft9p7cr8.js.gz +0 -0
  740. package/web/chunk-ftdzs90e.js +0 -1
  741. package/web/chunk-ftdzs90e.js.br +0 -0
  742. package/web/chunk-ftdzs90e.js.gz +0 -0
  743. package/web/chunk-fybmc8p1.js +0 -1
  744. package/web/chunk-fybmc8p1.js.br +0 -0
  745. package/web/chunk-fybmc8p1.js.gz +0 -0
  746. package/web/chunk-g6e50kx0.js +0 -3
  747. package/web/chunk-g6e50kx0.js.br +0 -0
  748. package/web/chunk-g6e50kx0.js.gz +0 -0
  749. package/web/chunk-g6grehr5.css +0 -1
  750. package/web/chunk-g6grehr5.css.br +0 -0
  751. package/web/chunk-g6grehr5.css.gz +0 -0
  752. package/web/chunk-gbzfq3rg.js +0 -332
  753. package/web/chunk-gbzfq3rg.js.br +0 -0
  754. package/web/chunk-gbzfq3rg.js.gz +0 -0
  755. package/web/chunk-gsg8yq3m.js +0 -1
  756. package/web/chunk-gsg8yq3m.js.br +0 -0
  757. package/web/chunk-gsg8yq3m.js.gz +0 -0
  758. package/web/chunk-gvndjaan.js +0 -2
  759. package/web/chunk-gvndjaan.js.br +0 -0
  760. package/web/chunk-gvndjaan.js.gz +0 -0
  761. package/web/chunk-hgcgbxns.js +0 -1
  762. package/web/chunk-hgcgbxns.js.br +0 -0
  763. package/web/chunk-hgcgbxns.js.gz +0 -0
  764. package/web/chunk-hh8ck7sy.js +0 -2
  765. package/web/chunk-hh8ck7sy.js.br +0 -0
  766. package/web/chunk-hh8ck7sy.js.gz +0 -0
  767. package/web/chunk-hj18pw9f.js +0 -2
  768. package/web/chunk-hj18pw9f.js.br +0 -0
  769. package/web/chunk-hj18pw9f.js.gz +0 -0
  770. package/web/chunk-hk4jd2qq.js +0 -24
  771. package/web/chunk-hk4jd2qq.js.br +0 -0
  772. package/web/chunk-hk4jd2qq.js.gz +0 -0
  773. package/web/chunk-hrnx1576.js +0 -4
  774. package/web/chunk-hrnx1576.js.br +0 -0
  775. package/web/chunk-hrnx1576.js.gz +0 -0
  776. package/web/chunk-hzvff525.js +0 -2
  777. package/web/chunk-hzvff525.js.br +0 -0
  778. package/web/chunk-hzvff525.js.gz +0 -0
  779. package/web/chunk-j0ns5dyq.js +0 -120
  780. package/web/chunk-j0ns5dyq.js.br +0 -0
  781. package/web/chunk-j0ns5dyq.js.gz +0 -0
  782. package/web/chunk-j21a7pd1.js +0 -1
  783. package/web/chunk-j21a7pd1.js.br +0 -0
  784. package/web/chunk-j21a7pd1.js.gz +0 -0
  785. package/web/chunk-jbejy8k3.js +0 -1139
  786. package/web/chunk-jbejy8k3.js.br +0 -0
  787. package/web/chunk-jbejy8k3.js.gz +0 -0
  788. package/web/chunk-jeq99z4t.js +0 -70
  789. package/web/chunk-jeq99z4t.js.br +0 -0
  790. package/web/chunk-jeq99z4t.js.gz +0 -0
  791. package/web/chunk-jqq07zta.js +0 -1
  792. package/web/chunk-jqq07zta.js.br +0 -0
  793. package/web/chunk-jqq07zta.js.gz +0 -0
  794. package/web/chunk-k6m37v6k.js +0 -1
  795. package/web/chunk-k6m37v6k.js.br +0 -0
  796. package/web/chunk-k6m37v6k.js.gz +0 -0
  797. package/web/chunk-kajk2w5j.js +0 -217
  798. package/web/chunk-kajk2w5j.js.br +0 -0
  799. package/web/chunk-kajk2w5j.js.gz +0 -0
  800. package/web/chunk-kcrypnnf.js +0 -1
  801. package/web/chunk-kcrypnnf.js.br +0 -0
  802. package/web/chunk-kcrypnnf.js.gz +0 -0
  803. package/web/chunk-kyksv8an.js +0 -1
  804. package/web/chunk-kyksv8an.js.br +0 -2
  805. package/web/chunk-kyksv8an.js.gz +0 -0
  806. package/web/chunk-mkhcq6z6.js +0 -1
  807. package/web/chunk-mkhcq6z6.js.br +0 -0
  808. package/web/chunk-mkhcq6z6.js.gz +0 -0
  809. package/web/chunk-mqdvg55y.js +0 -2
  810. package/web/chunk-mqdvg55y.js.br +0 -0
  811. package/web/chunk-mqdvg55y.js.gz +0 -0
  812. package/web/chunk-mytypet0.js +0 -2
  813. package/web/chunk-mytypet0.js.br +0 -0
  814. package/web/chunk-mytypet0.js.gz +0 -0
  815. package/web/chunk-mzb086jr.js +0 -1
  816. package/web/chunk-mzb086jr.js.br +0 -0
  817. package/web/chunk-mzb086jr.js.gz +0 -0
  818. package/web/chunk-mzevfdmp.js +0 -1
  819. package/web/chunk-mzevfdmp.js.br +0 -0
  820. package/web/chunk-mzevfdmp.js.gz +0 -0
  821. package/web/chunk-n7c5sndg.js +0 -1
  822. package/web/chunk-n7c5sndg.js.br +0 -0
  823. package/web/chunk-n7c5sndg.js.gz +0 -0
  824. package/web/chunk-ned200k0.js +0 -84
  825. package/web/chunk-ned200k0.js.br +0 -0
  826. package/web/chunk-ned200k0.js.gz +0 -0
  827. package/web/chunk-ngcd5a3c.js +0 -1
  828. package/web/chunk-ngcd5a3c.js.br +0 -0
  829. package/web/chunk-ngcd5a3c.js.gz +0 -0
  830. package/web/chunk-ngsv0xfb.js +0 -1
  831. package/web/chunk-ngsv0xfb.js.br +0 -0
  832. package/web/chunk-ngsv0xfb.js.gz +0 -0
  833. package/web/chunk-nx14h1a6.js +0 -1
  834. package/web/chunk-nx14h1a6.js.br +0 -0
  835. package/web/chunk-nx14h1a6.js.gz +0 -0
  836. package/web/chunk-p3fv7nbz.js +0 -1
  837. package/web/chunk-p3fv7nbz.js.br +0 -0
  838. package/web/chunk-p3fv7nbz.js.gz +0 -0
  839. package/web/chunk-pktgtyf6.js +0 -1
  840. package/web/chunk-pktgtyf6.js.br +0 -0
  841. package/web/chunk-pktgtyf6.js.gz +0 -0
  842. package/web/chunk-pm504vps.js +0 -89
  843. package/web/chunk-pm504vps.js.br +0 -0
  844. package/web/chunk-pm504vps.js.gz +0 -0
  845. package/web/chunk-pnvkphs0.js +0 -12
  846. package/web/chunk-pnvkphs0.js.br +0 -0
  847. package/web/chunk-pnvkphs0.js.gz +0 -0
  848. package/web/chunk-ptvshaa0.js +0 -2
  849. package/web/chunk-ptvshaa0.js.br +0 -0
  850. package/web/chunk-ptvshaa0.js.gz +0 -0
  851. package/web/chunk-py4737sc.js +0 -39
  852. package/web/chunk-py4737sc.js.br +0 -0
  853. package/web/chunk-py4737sc.js.gz +0 -0
  854. package/web/chunk-pz5wcbdv.js +0 -139
  855. package/web/chunk-pz5wcbdv.js.br +0 -0
  856. package/web/chunk-pz5wcbdv.js.gz +0 -0
  857. package/web/chunk-q467b529.js +0 -1
  858. package/web/chunk-q467b529.js.br +0 -0
  859. package/web/chunk-q467b529.js.gz +0 -0
  860. package/web/chunk-qbvbfpx8.js +0 -1
  861. package/web/chunk-qbvbfpx8.js.br +0 -0
  862. package/web/chunk-qbvbfpx8.js.gz +0 -0
  863. package/web/chunk-qgfc4ptt.js +0 -7
  864. package/web/chunk-qgfc4ptt.js.br +0 -0
  865. package/web/chunk-qgfc4ptt.js.gz +0 -0
  866. package/web/chunk-qmmss130.js +0 -2
  867. package/web/chunk-qmmss130.js.br +0 -0
  868. package/web/chunk-qmmss130.js.gz +0 -0
  869. package/web/chunk-qqrzr444.js +0 -2
  870. package/web/chunk-qqrzr444.js.br +0 -0
  871. package/web/chunk-qqrzr444.js.gz +0 -0
  872. package/web/chunk-r2fjprkk.js +0 -1
  873. package/web/chunk-r2fjprkk.js.br +0 -0
  874. package/web/chunk-r2fjprkk.js.gz +0 -0
  875. package/web/chunk-rcn21n5e.js +0 -214
  876. package/web/chunk-rcn21n5e.js.br +0 -0
  877. package/web/chunk-rcn21n5e.js.gz +0 -0
  878. package/web/chunk-rj1rp0tc.js +0 -1
  879. package/web/chunk-rj1rp0tc.js.br +0 -0
  880. package/web/chunk-rj1rp0tc.js.gz +0 -0
  881. package/web/chunk-rpnw9xwe.js +0 -1
  882. package/web/chunk-rpnw9xwe.js.br +0 -0
  883. package/web/chunk-rpnw9xwe.js.gz +0 -0
  884. package/web/chunk-rv5h4d8w.js +0 -1
  885. package/web/chunk-rv5h4d8w.js.br +0 -0
  886. package/web/chunk-rv5h4d8w.js.gz +0 -0
  887. package/web/chunk-s00gxcxn.js +0 -2
  888. package/web/chunk-s00gxcxn.js.br +0 -0
  889. package/web/chunk-s00gxcxn.js.gz +0 -0
  890. package/web/chunk-s8e8gzvn.js +0 -16
  891. package/web/chunk-s8e8gzvn.js.br +0 -0
  892. package/web/chunk-s8e8gzvn.js.gz +0 -0
  893. package/web/chunk-sa57mndb.js +0 -1
  894. package/web/chunk-sa57mndb.js.br +0 -0
  895. package/web/chunk-sa57mndb.js.gz +0 -0
  896. package/web/chunk-sc90h9bd.js +0 -2
  897. package/web/chunk-sc90h9bd.js.br +0 -0
  898. package/web/chunk-sc90h9bd.js.gz +0 -0
  899. package/web/chunk-t44qa4yt.js +0 -200
  900. package/web/chunk-t44qa4yt.js.br +0 -0
  901. package/web/chunk-t44qa4yt.js.gz +0 -0
  902. package/web/chunk-t8b8cdak.js +0 -2
  903. package/web/chunk-t8b8cdak.js.br +0 -0
  904. package/web/chunk-t8b8cdak.js.gz +0 -0
  905. package/web/chunk-t9cgbcf2.js +0 -1
  906. package/web/chunk-t9cgbcf2.js.br +0 -0
  907. package/web/chunk-t9cgbcf2.js.gz +0 -0
  908. package/web/chunk-tk8kf0bf.js +0 -2
  909. package/web/chunk-tk8kf0bf.js.br +0 -0
  910. package/web/chunk-tk8kf0bf.js.gz +0 -0
  911. package/web/chunk-tntwwpyh.js +0 -2
  912. package/web/chunk-tntwwpyh.js.br +0 -0
  913. package/web/chunk-tntwwpyh.js.gz +0 -0
  914. package/web/chunk-tt3v857c.js +0 -106
  915. package/web/chunk-tt3v857c.js.br +0 -0
  916. package/web/chunk-tt3v857c.js.gz +0 -0
  917. package/web/chunk-vjnmqaam.js +0 -2
  918. package/web/chunk-vjnmqaam.js.br +0 -0
  919. package/web/chunk-vjnmqaam.js.gz +0 -0
  920. package/web/chunk-vndrjeyr.js +0 -2
  921. package/web/chunk-vndrjeyr.js.br +0 -0
  922. package/web/chunk-vndrjeyr.js.gz +0 -0
  923. package/web/chunk-vp5qf59s.js +0 -1
  924. package/web/chunk-vp5qf59s.js.br +0 -0
  925. package/web/chunk-vp5qf59s.js.gz +0 -0
  926. package/web/chunk-wdd9pasx.js +0 -1
  927. package/web/chunk-wdd9pasx.js.br +0 -0
  928. package/web/chunk-wdd9pasx.js.gz +0 -0
  929. package/web/chunk-wrax5wt5.js +0 -292
  930. package/web/chunk-wrax5wt5.js.br +0 -0
  931. package/web/chunk-wrax5wt5.js.gz +0 -0
  932. package/web/chunk-yarejzzs.js +0 -142
  933. package/web/chunk-yarejzzs.js.br +0 -0
  934. package/web/chunk-yarejzzs.js.gz +0 -0
  935. package/web/chunk-yg6ys554.js +0 -1
  936. package/web/chunk-yg6ys554.js.br +0 -0
  937. package/web/chunk-yg6ys554.js.gz +0 -0
  938. package/web/chunk-yq6xkb5w.js +0 -370
  939. package/web/chunk-yq6xkb5w.js.br +0 -0
  940. package/web/chunk-yq6xkb5w.js.gz +0 -0
  941. package/web/chunk-yw98mr7e.js +0 -2
  942. package/web/chunk-yw98mr7e.js.br +0 -0
  943. package/web/chunk-yw98mr7e.js.gz +0 -0
  944. package/web/chunk-z07kf12w.js +0 -78
  945. package/web/chunk-z07kf12w.js.br +0 -0
  946. package/web/chunk-z07kf12w.js.gz +0 -0
  947. package/web/chunk-z5sk390b.js +0 -2
  948. package/web/chunk-z5sk390b.js.br +0 -0
  949. package/web/chunk-z5sk390b.js.gz +0 -0
  950. package/web/chunk-zh2szkjy.js +0 -140
  951. package/web/chunk-zh2szkjy.js.br +0 -0
  952. package/web/chunk-zh2szkjy.js.gz +0 -0
  953. package/web/chunk-zrmm67mx.js +0 -34
  954. package/web/chunk-zrmm67mx.js.br +0 -0
  955. package/web/chunk-zrmm67mx.js.gz +0 -0
  956. package/web/chunk-zyfr25n1.js +0 -98
  957. package/web/chunk-zyfr25n1.js.br +0 -0
  958. package/web/chunk-zyfr25n1.js.gz +0 -0
  959. package/web/chunk-zykkmwba.js +0 -2
  960. package/web/chunk-zykkmwba.js.br +0 -0
  961. package/web/chunk-zykkmwba.js.gz +0 -0
  962. package/web/chunk-zzs4h31m.js +0 -2
  963. package/web/chunk-zzs4h31m.js.br +0 -0
  964. package/web/chunk-zzs4h31m.js.gz +0 -0
package/chunk-bh680te4.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{W}from"./chunk-7emc0sy7.js";import{_}from"./chunk-sykaz5bf.js";import{a}from"./chunk-xjcg6cxc.js";var m=a(W()),t=a(_());import{readFileSync as S}from"fs";var c=(e)=>async(s)=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:o,roleSessionName:r,webIdentityToken:i,providerId:n,policyArns:f,policy:g,durationSeconds:E}=e,{roleAssumerWithWebIdentity:l}=e;if(!l){let{getDefaultRoleAssumerWithWebIdentity:p}=await import("./chunk-jn0dhvkp.js");l=p({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...s?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return l({RoleArn:o,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:i,ProviderId:n,PolicyArns:f,Policy:g,DurationSeconds:E})};var d="AWS_WEB_IDENTITY_TOKEN_FILE",T="AWS_ROLE_ARN",N="AWS_ROLE_SESSION_NAME",I=(e={})=>async(s)=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let o=e?.webIdentityTokenFile??process.env[d],r=e?.roleArn??process.env[T],i=e?.roleSessionName??process.env[N];if(!o||!r)throw new t.CredentialsProviderError("Web identity configuration not specified",{logger:e.logger});let n=await c({...e,webIdentityToken:t.externalDataInterceptor?.getTokenRecord?.()[o]??S(o,{encoding:"ascii"}),roleArn:r,roleSessionName:i})(s);if(o===process.env[d])m.setCredentialFeature(n,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h");return n};export{I as fromTokenFile};
package/chunk-cb4rvanv.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{rn,er,Er,Ar,Tr,kr,nn,on,tr,sn,an,ln,cn,un,pn}from"./chunk-sz0jywpb.js";import{E}from"./chunk-fkjjadt4.js";import{ce}from"./chunk-54zpktrq.js";import{Q,ee}from"./chunk-fgpzy3fe.js";import{te}from"./chunk-b6rvzkxg.js";import{x}from"./chunk-et2s8y6a.js";import{Te}from"./chunk-eg161ep9.js";import{G,xe,me,Ke,ne,Y}from"./chunk-9sq7yxh7.js";import{j}from"./chunk-vpvznxf4.js";var b="v1",O="gcp-vertex-credentials",R=0,C=(e,o,t)=>{let i=new j,u=Ke(o);return(async()=>{let n={role:"assistant",content:[],api:"google-vertex",provider:e.provider,model:e.id,usage:{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},stopReason:"pending",timestamp:Date.now()};try{if(t?.fetch&&t.fetch!==globalThis.fetch)throw Error("Custom fetch is not supported by the Google Vertex adapter");let c=A(t),g=c?S(e,c,t?.headers):I(e,P(t),U(t),t?.headers,t?.env),h=D(e,u,t),m=await t?.onPayload?.(h,e);if(m!==void 0)h=m;let p=await pn(()=>g.models.generateContentStream(h),t);i.push({type:"start",partial:n});let r=null,f=n.content,l=()=>f.length-1;for await(let s of p){await t?.onProviderStreamEvent?.(s,e),n.responseId||=s.responseId;let k=s.candidates?.[0];if(k?.content?.parts)for(let a of k.content.parts){if(a.text!==void 0){let d=on(a);if(!r||d&&r.type!=="thinking"||!d&&r.type!=="text"){if(r)if(r.type==="text")i.push({type:"text_end",contentIndex:f.length-1,content:r.text,partial:n});else i.push({type:"thinking_end",contentIndex:l(),content:r.thinking,partial:n});if(d)r={type:"thinking",thinking:"",thinkingSignature:void 0},n.content.push(r),i.push({type:"thinking_start",contentIndex:l(),partial:n});else r={type:"text",text:""},n.content.push(r),i.push({type:"text_start",contentIndex:l(),partial:n})}if(r.type==="thinking")r.thinking+=a.text,r.thinkingSignature=tr(r.thinkingSignature,a.thoughtSignature),i.push({type:"thinking_delta",contentIndex:l(),delta:a.text,partial:n});else r.text+=a.text,r.textSignature=tr(r.textSignature,a.thoughtSignature),i.push({type:"text_delta",contentIndex:l(),delta:a.text,partial:n})}if(a.functionCall){if(r){if(r.type==="text")i.push({type:"text_end",contentIndex:l(),content:r.text,partial:n});else i.push({type:"thinking_end",contentIndex:l(),content:r.thinking,partial:n});r=null}let d=a.functionCall.id,y={type:"toolCall",id:!d||n.content.some((T)=>T.type==="toolCall"&&T.id===d)?`${a.functionCall.name}_${Date.now()}_${++R}`:d,name:a.functionCall.name||"",arguments:a.functionCall.args??{},...a.thoughtSignature&&{thoughtSignature:a.thoughtSignature}};n.content.push(y),i.push({type:"toolcall_start",contentIndex:l(),partial:n}),i.push({type:"toolcall_delta",contentIndex:l(),delta:JSON.stringify(y.arguments),partial:n}),i.push({type:"toolcall_end",contentIndex:l(),toolCall:y,partial:n})}}if(k?.finishReason){if(n.rawStopReason=k.finishReason,n.stopReason=un(k.finishReason),n.content.some((a)=>a.type==="toolCall")&&n.stopReason==="stop")n.stopReason="toolUse"}if(s.usageMetadata)n.usage={input:(s.usageMetadata.promptTokenCount||0)-(s.usageMetadata.cachedContentTokenCount||0),output:(s.usageMetadata.candidatesTokenCount||0)+(s.usageMetadata.thoughtsTokenCount||0),cacheRead:s.usageMetadata.cachedContentTokenCount||0,cacheWrite:0,reasoning:s.usageMetadata.thoughtsTokenCount||0,totalTokens:s.usageMetadata.totalTokenCount||0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},ne(e,n.usage)}if(r)if(r.type==="text")i.push({type:"text_end",contentIndex:l(),content:r.text,partial:n});else i.push({type:"thinking_end",contentIndex:l(),content:r.thinking,partial:n});if(t?.signal?.aborted)throw Error("Request was aborted");if(n.stopReason==="pending")throw Error("Google Vertex stream ended without a finish reason");if(n.stopReason==="aborted"||n.stopReason==="error"){let s=n.rawStopReason?`Provider stopped with: ${n.rawStopReason}`:"An unknown error occurred";throw Error(s)}i.push({type:"done",reason:n.stopReason,message:n}),i.end()}catch(c){for(let g of n.content)if("index"in g)delete g.index;n.stopReason=t?.signal?.aborted?"aborted":"error",n.errorMessage=ee(Q(c)),i.push({type:"error",reason:n.stopReason,error:n}),i.end()}})(),i},ae=(e,o,t)=>{let i={...te(e,o,t,void 0),toolChoice:t?.toolChoice};if(!t?.reasoning)return C(e,o,{...i,thinking:{enabled:!1}});let u=Y(e,t.reasoning);if(u==="off")return C(e,o,{...i,thinking:{enabled:!1}});let n=Er(e,u);if(Ar(e))return C(e,o,{...i,thinking:{enabled:!0,level:Tr(n)}});return C(e,o,{...i,thinking:{enabled:!0,budgetTokens:V(e,n,t.thinkingBudgets)}})};function I(e,o,t,i,u){let n=L(u);return new er({vertexai:!0,project:o,location:t,apiVersion:b,...n?{googleAuthOptions:n}:{},httpOptions:v(e,i)})}function S(e,o,t){return new er({vertexai:!0,apiKey:o,apiVersion:b,httpOptions:v(e,t)})}function v(e,o){let t={},i=w(e.baseUrl);if(i){if(t.baseUrl=i,t.baseUrlResourceScope=rn.COLLECTION,_(i))t.apiVersion=""}let u=Te({"User-Agent":ce(),...e.headers,...o});if(u)t.headers=u;return Object.keys(t).length>0?t:void 0}function w(e){let o=e.trim();if(!o||o.includes("{location}"))return;return o}function _(e){try{return new URL(e).pathname.split("/").some((t)=>/^v\d+(?:beta\d*)?$/.test(t))}catch{return/(?:^|\/)v\d+(?:beta\d*)?(?:\/|$)/.test(e)}}function L(e){let o=E("GOOGLE_APPLICATION_CREDENTIALS",e);return o?{keyFilename:o}:void 0}function A(e){let o=e?.apiKey?.trim();if(!o||o===O||M(o))return;return o}function M(e){return/^<[^>]+>$/.test(e)}function P(e){let o=e?.project||E("GOOGLE_CLOUD_PROJECT",e?.env)||E("GCLOUD_PROJECT",e?.env);if(!o)throw Error("Vertex AI requires a project ID. Set GOOGLE_CLOUD_PROJECT/GCLOUD_PROJECT or pass project in options.");return o}function U(e){let o=e?.location||E("GOOGLE_CLOUD_LOCATION",e?.env);if(!o)throw Error("Vertex AI requires a location. Set GOOGLE_CLOUD_LOCATION or pass location in options.");return o}function D(e,o,t={}){let i=sn(e,o),u=xe(o.messages),n=me(o.messages),c={};if(t.temperature!==void 0)c.temperature=t.temperature;if(t.maxTokens!==void 0)c.maxOutputTokens=t.maxTokens;let g=ln(e.id),h=n.length>0?cn(n,t.toolChoice,g):void 0,m=u?G(u):"",p={...Object.keys(c).length>0&&c,...m&&{systemInstruction:x(m)},...n.length>0&&{tools:an(n,!1,g)},...h!==void 0&&{toolConfig:{functionCallingConfig:{mode:h}}}};if(t.thinking?.enabled&&e.reasoning){let f={includeThoughts:!0};if(t.thinking.level!==void 0)f.thinkingLevel=kr(t.thinking.level);else if(t.thinking.budgetTokens!==void 0)f.thinkingBudget=t.thinking.budgetTokens;p.thinkingConfig=f}else if(e.reasoning&&t.thinking&&!t.thinking.enabled)p.thinkingConfig=nn(e);if(t.signal){if(t.signal.aborted)throw Error("Request aborted");p.abortSignal=t.signal}return{model:e.id,contents:i,config:p}}function V(e,o,t){if(t?.[o]!==void 0)return t[o];if(e.id.includes("2.5-pro"))return{minimal:128,low:2048,medium:8192,high:32768}[o];if(e.id.includes("2.5-flash"))return{minimal:128,low:2048,medium:8192,high:24576}[o];return-1}export{C as stream,ae as streamSimple};
package/chunk-d6hcvbkh.js DELETED
@@ -1,3 +0,0 @@
1
- // @bun
2
- function o(t,r,n,i,s){if(i==="m")throw TypeError("Private method is not writable");if(i==="a"&&!s)throw TypeError("Private accessor was defined without a setter");if(typeof r==="function"?t!==r||!s:!r.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?s.call(t,n):s?s.value=n:r.set(t,n),n}function e(t,r,n,i){if(n==="a"&&!i)throw TypeError("Private accessor was defined without a getter");if(typeof r==="function"?t!==r||!i:!r.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(t):i?i.value:r.get(t)}function dt(t){return typeof t==="object"&&t!==null&&(("name"in t)&&t.name==="AbortError"||("message"in t)&&String(t.message).includes("FetchRequestCanceledException"))}var sr=(t)=>{if(t instanceof Error)return t;if(typeof t==="object"&&t!==null){try{let r=Object.prototype.toString.call(t);if(r==="[object Error]"||r==="[object DOMException]"){let n=Error(t.message,t.cause?{cause:t.cause}:{});if(t.stack)n.stack=t.stack;if(t.cause&&!n.cause)n.cause=t.cause;if(t.name)n.name=t.name;return n}}catch{}try{return Error(JSON.stringify(t))}catch{}}return Error(t)};var p=(()=>{class t extends Error{}return t})();class le extends p{constructor(t,r,n,i,s){super(`${le.makeMessage(t,r,n)}`);this.status=t,this.headers=i,this.requestID=i?.get("request-id"),this.workspaceID=i?.get("anthropic-workspace-id"),this.error=r,this.type=s??null}static makeMessage(t,r,n){let i=r?.message?typeof r.message==="string"?r.message:JSON.stringify(r.message):r?JSON.stringify(r):n;if(t&&i)return`${t} ${i}`;if(t)return`${t} status code (no body)`;if(i)return i;return"(no status code or body)"}static generate(t,r,n,i){if(!t||!i)return new Ht({message:n,cause:sr(r)});let s=r,c=s?.error?.type;if(t===400)return new Co(t,s,n,i,c);if(t===401)return new Ro(t,s,n,i,c);if(t===403)return new Io(t,s,n,i,c);if(t===404)return new Mo(t,s,n,i,c);if(t===409)return new Oo(t,s,n,i,c);if(t===422)return new Lo(t,s,n,i,c);if(t===429)return new Do(t,s,n,i,c);if(t>=500)return new No(t,s,n,i,c);return new le(t,s,n,i,c)}}class Ue extends le{constructor({message:t}={}){super(void 0,void 0,t||"Request was aborted.",void 0)}}class Ht extends le{constructor({message:t,cause:r}){super(void 0,void 0,t||"Connection error.",void 0);if(r)this.cause=r}}class Po extends Ht{constructor({message:t}={}){super({message:t??"Request timed out."})}}class Vi extends p{constructor(t,{cause:r}={}){super(t??"Retryable error.");if(r!==void 0)this.cause=r}}class Co extends le{}class Ro extends le{}class Io extends le{}class Mo extends le{}class Oo extends le{}class Lo extends le{}class Do extends le{}class No extends le{}var b=/^[a-z][a-z0-9+.-]*:/i,Qs=(t)=>b.test(t),Oe=(t)=>(Oe=Array.isArray,Oe(t)),Ki=Oe;function kn(t){if(typeof t!=="object")return{};return t??{}}function Qi(t){if(!t)return!0;for(let r in t)return!1;return!0}function l(t,r){return Object.prototype.hasOwnProperty.call(t,r)}function Yi(t){return t!=null&&typeof t==="object"&&!Array.isArray(t)}var Uo=(t,r)=>{if(typeof r!=="number"||!Number.isInteger(r))throw new p(`${t} must be an integer`);if(r<0)throw new p(`${t} must be a positive integer`);return r};var Fo=(t)=>{try{return JSON.parse(t)}catch(r){return}};function zt(t){}var N=(t)=>{if(typeof globalThis.process<"u")return globalThis.process.env?.[t]?.trim()||void 0;if(typeof globalThis.Deno<"u")return globalThis.Deno.env?.get?.(t)?.trim()||void 0;return};function Ys(t){let r=0;for(let s of t)r+=s.length;let n=new Uint8Array(r),i=0;for(let s of t)n.set(s,i),i+=s.length;return n}var y;function ar(t){let r;return(y??(r=new globalThis.TextEncoder,y=r.encode.bind(r)))(t)}var w;function qt(t){let r;return(w??(r=new globalThis.TextDecoder,w=r.decode.bind(r)))(t)}var Pn="warn",a={off:0,error:200,warn:300,info:400,debug:500},Bo=(t,r,n)=>{if(!t)return;if(l(a,t))return t;n.warn(`${r} was set to ${JSON.stringify(t)}, expected one of ${JSON.stringify(Object.keys(a))}`);return};function u(){}function f(t,r,n){if(!r||a[t]>a[n])return u;else return r[t].bind(r)}var O={error:u,warn:u,info:u,debug:u},h=new WeakMap;function x(t,r){let n=h.get(t);if(n&&n[0]===r)return n[1];let i={error:f("error",t,r),warn:f("warn",t,r),info:f("info",t,r),debug:f("debug",t,r)};return h.set(t,[r,i]),i}function D(t){let r=t.logger,n=t.logLevel??"off";if(!r)return O;return x(r,n)}var m,d;function Xs(){let t=N("ANTHROPIC_LOG");if(!d||t!==m)m=t,d=x(console,Bo(t,"process.env['ANTHROPIC_LOG']",x(console,Pn))??Pn);return d}function _t(t,r,n){if(t.debug===u)return;t.debug(r,E(n))}var E=(t)=>{if(t.options)t.options={...t.options},delete t.options.headers;if(t.headers)t.headers=Object.fromEntries((t.headers instanceof Headers?[...t.headers]:Object.entries(t.headers)).map(([r,n])=>[r,r.toLowerCase()==="authorization"||r.toLowerCase()==="api-key"||r.toLowerCase()==="x-api-key"||r.toLowerCase()==="cookie"||r.toLowerCase()==="set-cookie"?"***":n]));if("retryOfRequestLogID"in t){if(t.retryOfRequestLogID)t.retryOf=t.retryOfRequestLogID;delete t.retryOfRequestLogID}return t};function we(t,r){return t instanceof le&&t.status===r}function T(t){return t instanceof le&&typeof t.status==="number"&&t.status>=400&&t.status<500}function lr(t){return T(t)&&!we(t,408)&&!we(t,409)&&!we(t,429)}function $o(t,r,n){return Math.min(r*2**t,n)}function Js(t,r){return t+Math.random()*(r-t)}function jo(t){return t*(1-Math.random()*0.25)}var I=(()=>{class t extends Error{constructor(r){let n=typeof r==="string"?r:r.map((i)=>{if(i.type==="text")return i.text;return`[${i.type}]`}).join(" ");super(n);this.name="ToolError",this.content=r}}return t})();var Xi=15000,g=5000;function Cn(t,r){if(!(t>=g))throw new p(`${r} must be at least ${g}ms (got ${t}); to run without memory sync, pass \`memorySyncIntervalMs: null\` to the worker instead`)}function cr(){let t,r;return{promise:new Promise((i,s)=>{t=i,r=s}),resolve:t,reject:r}}
3
- export{o,e,dt,sr,p,le,Ue,Ht,Po,Vi,Co,Ro,Io,Mo,Oo,Lo,Do,No,Qs,Oe,Ki,kn,Qi,Yi,Uo,Fo,zt,N,Ys,ar,qt,Pn,Bo,D,Xs,_t,we,lr,$o,Js,jo,I,Xi,Cn,cr};
package/chunk-dqxks09b.js DELETED
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{h,f,g}from"./chunk-k9dw37w2.js";import{ae}from"./chunk-9sq7yxh7.js";var c=function(t,i){if(typeof t==="string"&&/^\.\.?\//.test(t))return t.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(e,a,o,s,p){return a?i?".jsx":".js":o&&(!s||!p)?e:o+s+"."+p.toLowerCase()+"js"});return t},l=(t)=>{let i=import.meta.url.endsWith(".js")?t.replace(/\.ts$/,".js"):t;return import(c(i))},r;function Zs(t){r=t}var ea=()=>ae(async()=>r??await l("./bedrock-converse-stream.ts"));var n={"anthropic-messages":{"chat:claude-fable-5":{id:"claude-fable-5",name:"Claude Fable 5",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5},contextWindow:1e6,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsMidConvoSystemMessages:!0,forceAdaptiveThinking:!0},thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:claude-fable-5.1":{id:"claude-fable-5.1",name:"Claude Fable 5.1",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:0.25,cacheWrite:12.5},contextWindow:1e6,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsMidConvoSystemMessages:!0,forceAdaptiveThinking:!0},thinkingLevelMap:{off:null,xhigh:"xhigh",max:"max"},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5 (latest)",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:1,output:5,cacheRead:0.1,cacheWrite:1.25},contextWindow:200000,maxTokens:64000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsEagerToolInputStreaming:!1},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:claude-haiku-5.5":{id:"claude-haiku-5.5",name:"Claude Haiku 5.5",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:0.1,output:0.5,cacheRead:0.01,cacheWrite:0.125,tiers:[{inputTokensAbove:1e5,input:0.5,output:2.5,cacheRead:0.05,cacheWrite:0.625}]},contextWindow:1e6,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsMidConvoSystemMessages:!0,forceAdaptiveThinking:!0,supportsTemperature:!1},thinkingLevelMap:{xhigh:"xhigh",max:"max"},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:0.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:32000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{xhigh:"xhigh",max:"max",minimal:"low"},compat:{forceAdaptiveThinking:!0,supportsTemperature:!1},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:claude-opus-4.8":{id:"claude-opus-4.8",name:"Claude Opus 4.8",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:0.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:64000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsMidConvoSystemMessages:!0,forceAdaptiveThinking:!0,supportsTemperature:!1},thinkingLevelMap:{xhigh:"xhigh",max:"max",minimal:"low"},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:claude-opus-5":{id:"claude-opus-5",name:"Claude Opus 5",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:5,output:25,cacheRead:0.5,cacheWrite:6.25},contextWindow:1e6,maxTokens:64000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsMidConvoSystemMessages:!0,forceAdaptiveThinking:!0,supportsTemperature:!1},thinkingLevelMap:{xhigh:"xhigh",max:"max",minimal:"low"},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:claude-opus-5.5":{id:"claude-opus-5.5",name:"Claude Opus 5.5",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:4,output:20,cacheRead:0.2,cacheWrite:5},contextWindow:1e6,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsMidConvoSystemMessages:!0,forceAdaptiveThinking:!0,supportsTemperature:!1},thinkingLevelMap:{off:null,minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:"max"},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:0.3,cacheWrite:3.75},contextWindow:1e6,maxTokens:32000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{max:"max",minimal:"low"},compat:{forceAdaptiveThinking:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:claude-sonnet-5":{id:"claude-sonnet-5",name:"Claude Sonnet 5",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:0.2,cacheWrite:2.5},contextWindow:1e6,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{xhigh:"xhigh",max:"max"},compat:{forceAdaptiveThinking:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:claude-sonnet-5.5":{id:"claude-sonnet-5.5",name:"Claude Sonnet 5.5",api:"anthropic-messages",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:0.1,cacheWrite:2.5},contextWindow:1e6,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsMidConvoSystemMessages:!0,forceAdaptiveThinking:!0,supportsTemperature:!1},thinkingLevelMap:{xhigh:"xhigh",max:"max"},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"}},"openai-completions":{"chat:gemini-3.5-flash":{id:"gemini-3.5-flash",name:"Gemini 3.5 Flash",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:1.5,output:9,cacheRead:0.15,cacheWrite:0},contextWindow:200000,maxTokens:64000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsStrictMode:!0,supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gemini-3.6-flash":{id:"gemini-3.6-flash",name:"Gemini 3.6 Flash",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:0.75,output:3.75,cacheRead:0.075,cacheWrite:0},contextWindow:1e6,maxTokens:64000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsStrictMode:!0,supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gemini-3.7-flash":{id:"gemini-3.7-flash",name:"Gemini 3.7 Flash",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:0.75,output:3.75,cacheRead:0.075,cacheWrite:0},contextWindow:1e6,maxTokens:64000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsStrictMode:!0,supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gemini-3.8-flash":{id:"gemini-3.8-flash",name:"Gemini 3.8 Flash",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:0.75,output:3.75,cacheRead:0.075,cacheWrite:0},contextWindow:1e6,maxTokens:64000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsStrictMode:!0,supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:kimi-k2.7-code":{id:"kimi-k2.7-code",name:"Kimi K2.7 Code",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:0.95,output:4,cacheRead:0.19,cacheWrite:0},contextWindow:256000,maxTokens:32000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsStrictMode:!0,supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:kimi-k3":{id:"kimi-k3",name:"Kimi K3",api:"openai-completions",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:3,output:15,cacheRead:0.3,cacheWrite:0},contextWindow:1048576,maxTokens:131072,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},compat:{supportsStrictMode:!0,supportsStore:!1,supportsDeveloperRole:!1,supportsReasoningEffort:!1,supportsMidConvoSystemMessages:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"}},"openai-responses":{"chat:gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 Mini",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:0.25,output:2,cacheRead:0.025,cacheWrite:0},contextWindow:264000,maxTokens:64000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",low:"low",medium:"medium",high:"high",xhigh:null,max:null},compat:{supportsOpenAIGrammarTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.3-codex":{id:"gpt-5.3-codex",name:"GPT-5.3 Codex",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:1.75,output:14,cacheRead:0.175,cacheWrite:0},contextWindow:1e6,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:null},compat:{supportsOpenAIGrammarTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:2.5,output:15,cacheRead:0.25,cacheWrite:0,tiers:[{inputTokensAbove:272000,input:5,output:22.5,cacheRead:0.5,cacheWrite:0}]},contextWindow:1e6,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:null},compat:{supportsOpenAIGrammarTools:!0,supportsMidConvoSystemMessages:!0,supportsAdditionalTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.4-mini":{id:"gpt-5.4-mini",name:"GPT-5.4 mini",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:0.75,output:4.5,cacheRead:0.075,cacheWrite:0},contextWindow:400000,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:null},compat:{supportsOpenAIGrammarTools:!0,supportsMidConvoSystemMessages:!0,supportsAdditionalTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.4-nano":{id:"gpt-5.4-nano",name:"GPT-5.4 nano",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:0.2,output:1.25,cacheRead:0.02,cacheWrite:0},contextWindow:400000,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",xhigh:"xhigh"},compat:{supportsOpenAIGrammarTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:5,output:30,cacheRead:0.5,cacheWrite:0,tiers:[{inputTokensAbove:272000,input:10,output:45,cacheRead:1,cacheWrite:0}]},contextWindow:1e6,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:null},compat:{supportsOpenAIGrammarTools:!0,supportsMidConvoSystemMessages:!0,supportsAdditionalTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.6-luna":{id:"gpt-5.6-luna",name:"GPT-5.6 Luna",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:0.2,output:1.2,cacheRead:0.02,cacheWrite:0.25,tiers:[{inputTokensAbove:200000,input:0.4,output:1.8,cacheRead:0.04,cacheWrite:0.5}]},contextWindow:1050000,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:"max"},compat:{supportsOpenAIGrammarTools:!0,supportsMidConvoSystemMessages:!0,supportsAdditionalTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.6-sol":{id:"gpt-5.6-sol",name:"GPT-5.6 Sol",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:4,output:20,cacheRead:0.4,cacheWrite:5,tiers:[{inputTokensAbove:272000,input:8,output:30,cacheRead:0.8,cacheWrite:10}]},contextWindow:1050000,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:"max"},compat:{supportsOpenAIGrammarTools:!0,supportsMidConvoSystemMessages:!0,supportsAdditionalTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-5.6-terra":{id:"gpt-5.6-terra",name:"GPT-5.6 Terra",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:2,output:12,cacheRead:0.2,cacheWrite:2.5,tiers:[{inputTokensAbove:272000,input:4,output:18,cacheRead:0.4,cacheWrite:5}]},contextWindow:1050000,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:"low",low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:"max"},compat:{supportsOpenAIGrammarTools:!0,supportsMidConvoSystemMessages:!0,supportsAdditionalTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-6-astra":{id:"gpt-6-astra",name:"GPT-6 Astra",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:10,output:50,cacheRead:1,cacheWrite:12.5,tiers:[{inputTokensAbove:272000,input:20,output:75,cacheRead:2,cacheWrite:25}]},contextWindow:1e6,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:"max"},compat:{supportsOpenAIGrammarTools:!0,supportsMidConvoSystemMessages:!0,supportsAdditionalTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-6-luna":{id:"gpt-6-luna",name:"GPT-6 Luna",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:0.1,output:0.5,cacheRead:0.01,cacheWrite:0.125,tiers:[{inputTokensAbove:272000,input:0.2,output:0.75,cacheRead:0.02,cacheWrite:0.25}]},contextWindow:1e6,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:"none",minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:"max"},compat:{supportsOpenAIGrammarTools:!0,supportsMidConvoSystemMessages:!0,supportsAdditionalTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-6-sol":{id:"gpt-6-sol",name:"GPT-6 Sol",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:0.2,cacheWrite:2.5,tiers:[{inputTokensAbove:272000,input:4,output:15,cacheRead:0.4,cacheWrite:5}]},contextWindow:1e6,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:"none",minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:"max"},compat:{supportsOpenAIGrammarTools:!0,supportsMidConvoSystemMessages:!0,supportsAdditionalTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:gpt-6.1-sol":{id:"gpt-6.1-sol",name:"GPT-6.1 Sol",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:2,output:10,cacheRead:0.1,cacheWrite:2.5,tiers:[{inputTokensAbove:272000,input:4,output:15,cacheRead:0.2,cacheWrite:5}]},contextWindow:1050000,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:"max"},compat:{supportsOpenAIGrammarTools:!0,supportsMidConvoSystemMessages:!0,supportsAdditionalTools:!0},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:grok-4.5":{id:"grok-4.5",name:"Grok 4.5",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:2,output:6,cacheRead:0.5,cacheWrite:0,tiers:[{inputTokensAbove:200000,input:4,output:12,cacheRead:1,cacheWrite:0}]},contextWindow:500000,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:null,low:"low",medium:"medium",high:"high",xhigh:null,max:null},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:grok-4.6":{id:"grok-4.6",name:"Grok 4.6",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:2,output:6,cacheRead:0.5,cacheWrite:0,tiers:[{inputTokensAbove:200000,input:4,output:12,cacheRead:1,cacheWrite:0}]},contextWindow:500000,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:null},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:grok-4.7":{id:"grok-4.7",name:"Grok 4.7",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:2,output:6,cacheRead:0.5,cacheWrite:0,tiers:[{inputTokensAbove:200000,input:4,output:12,cacheRead:1,cacheWrite:0}]},contextWindow:500000,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:null,low:"low",medium:"medium",high:"high",xhigh:"xhigh",max:null},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"},"chat:mai-code-1-flash-picker":{id:"mai-code-1-flash-picker",name:"MAI-Code-1-Flash",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text"],cost:{input:0.75,output:4.5,cacheRead:0.075,cacheWrite:0},contextWindow:256000,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:null,low:"low",medium:"medium",high:"high",xhigh:null,max:null},type:"chat"},"chat:mai-code-1.1-flash":{id:"mai-code-1.1-flash",name:"MAI-Code-1.1-Flash",api:"openai-responses",provider:"github-copilot",baseUrl:"https://api.individual.githubcopilot.com",reasoning:!0,input:["text","image"],cost:{input:0.2,output:1.2,cacheRead:0.02,cacheWrite:0},contextWindow:256000,maxTokens:128000,headers:{"User-Agent":"GitHubCopilotChat/0.35.0","Editor-Version":"vscode/1.107.0","Editor-Plugin-Version":"copilot-chat/0.35.0","Copilot-Integration-Id":"vscode-chat"},thinkingLevelMap:{off:null,minimal:null,low:"low",medium:"medium",high:"high",xhigh:null,max:null},inputLimits:{images:{resize:{maxWidth:2000,maxHeight:2000,maxBytes:4718592,jpegQuality:80}}},type:"chat"}}};var In=h("github-copilot",n),T=f("github-copilot",n),w=g("github-copilot",n);var ts="https://radius.pi.dev";function m(t){if(typeof t!=="object"||t===null||Array.isArray(t))return!1;let i=t;return typeof i.id==="string"&&typeof i.name==="string"&&typeof i.reasoning==="boolean"&&Array.isArray(i.input)&&typeof i.cost==="object"&&i.cost!==null&&!Array.isArray(i.cost)&&typeof i.contextWindow==="number"&&typeof i.maxTokens==="number"}function u(t){if(typeof t!=="object"||t===null||Array.isArray(t))return;let{baseUrl:i,models:e}=t;if(typeof i!=="string"||!Array.isArray(e))return;return{baseUrl:i,models:e.filter(m).map((a)=>({...a}))}}function Lr(t){return(/^https?:\/\//iu.test(t)?t:`https://${t}`).replace(/\/+$/u,"")}function x(t){return u(t?.gatewayConfig)}function rs(t,i){return i.models.map((e)=>({...e,api:"pi-messages",provider:t,baseUrl:i.baseUrl}))}function ta(t,i){let e=x(i);return e?rs(t,e):[]}function v(t){let i=t.trim();return i.length>512?`${i.slice(0,512)}\u2026`:i}async function ra(t,i,e){let a={accept:"application/json"};if(i)a.authorization=`Bearer ${i}`;let o=await fetch(new URL("/v1/config",t),{headers:a,signal:e});if(!o.ok)throw Error(`Could not load Radius config from ${t}: ${o.status}: ${v(await o.text())}`);let s=u(await o.json());if(!s)throw Error(`Invalid Radius config from ${t}`);return s}
3
- export{Zs,ea,In,ts,Lr,rs,ta,ra};
package/chunk-eg161ep9.js DELETED
@@ -1,3 +0,0 @@
1
- // @bun
2
- function J(r){let e={};for(let[n,o]of r.entries())e[n]=o;return e}function Te(...r){let e=new Map;for(let n of r)for(let[o,t]of Object.entries(n??{})){let s=o.toLowerCase();if(e.delete(s),t!==null)e.set(s,[o,t])}return e.size>0?Object.fromEntries(e.values()):void 0}
3
- export{J,Te};
package/chunk-et2s8y6a.js DELETED
@@ -1,3 +0,0 @@
1
- // @bun
2
- function x(u){return u.replace(/[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?<![\uD800-\uDBFF])[\uDC00-\uDFFF]/g,"")}
3
- export{x};
package/chunk-exjytvzn.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{W}from"./chunk-7emc0sy7.js";import{_}from"./chunk-sykaz5bf.js";import{a}from"./chunk-xjcg6cxc.js";var i=a(_());var t=a(_());import{exec as w}from"child_process";import{promisify as P}from"util";var p=a(W()),f=(r,e,o)=>{if(e.Version!==1)throw Error(`Profile ${r} credential_process did not return Version 1.`);if(e.AccessKeyId===void 0||e.SecretAccessKey===void 0)throw Error(`Profile ${r} credential_process returned invalid credentials.`);if(e.Expiration){let d=new Date;if(new Date(e.Expiration)<d)throw Error(`Profile ${r} credential_process returned expired credentials.`)}let s=e.AccountId;if(!s&&o?.[r]?.aws_account_id)s=o[r].aws_account_id;let n={accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,...e.SessionToken&&{sessionToken:e.SessionToken},...e.Expiration&&{expiration:new Date(e.Expiration)},...e.CredentialScope&&{credentialScope:e.CredentialScope},...s&&{accountId:s}};return p.setCredentialFeature(n,"CREDENTIALS_PROCESS","w"),n};var u=async(r,e,o)=>{let s=e[r];if(e[r]){let n=s.credential_process;if(n!==void 0){let d=P(t.externalDataInterceptor?.getTokenRecord?.().exec??w);try{let{stdout:c}=await d(n),l;try{l=JSON.parse(c.trim())}catch{throw Error(`Profile ${r} credential_process returned invalid JSON.`)}return f(r,l,e)}catch(c){throw new t.CredentialsProviderError(c.message,{logger:o})}}else throw new t.CredentialsProviderError(`Profile ${r} did not contain credential_process.`,{logger:o})}else throw new t.CredentialsProviderError(`Profile ${r} could not be found in shared credentials file.`,{logger:o})};var m=(r={})=>async({callerClientConfig:e}={})=>{r.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let o=await i.parseKnownFiles(r);return u(i.getProfileName({profile:r.profile??e?.profile}),o,r.logger)};export{m as fromProcess};
package/chunk-f6kg68bj.js DELETED
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{W}from"./chunk-7emc0sy7.js";import{_}from"./chunk-sykaz5bf.js";import{a}from"./chunk-xjcg6cxc.js";var g=a(_());var H=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string");var v=a(W());var f=a(_());var U=300000,T="To refresh this SSO session run 'aws sso login' with the corresponding profile.";var j=async(e,o={},r)=>{let{SSOOIDCClient:t}=await import("./chunk-7nsrfrmx.js"),n=(p)=>o.clientConfig?.[p]??o.parentClientConfig?.[p]??r?.[p];return new t(Object.assign({},o.clientConfig??{},{region:e??o.clientConfig?.region,logger:n("logger"),userAgentAppId:n("userAgentAppId")}))};var q=async(e,o,r={},t)=>{let{CreateTokenCommand:n}=await import("./chunk-7nsrfrmx.js");return(await j(o,r,t)).send(new n({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))};var X=a(_());var N=(e)=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new X.TokenProviderError(`Token is expired. ${T}`,!1)};var z=a(_());var w=(e,o,r=!1)=>{if(typeof o>"u")throw new z.TokenProviderError(`Value not present for '${e}' in SSO Token${r?". Cannot refresh":""}. ${T}`,!1)};var J=a(_());import{promises as ee}from"fs";var{writeFile:oe}=ee,V=(e,o)=>{let r=J.getSSOTokenFilepath(e),t=JSON.stringify(o,null,2);return oe(r,t)};var Y=new Map,R=(e={})=>async({callerClientConfig:o}={})=>{e.logger?.debug("@aws-sdk/token-providers - fromSso");let r=await f.parseKnownFiles(e),t=f.getProfileName({profile:e.profile??o?.profile}),n=r[t];if(!n)throw new f.TokenProviderError(`Profile '${t}' could not be found in shared credentials file.`,!1);else if(!n.sso_session)throw new f.TokenProviderError(`Profile '${t}' is missing required property 'sso_session'.`);let i=n.sso_session,S=(await f.loadSsoSessionData(e))[i];if(!S)throw new f.TokenProviderError(`Sso session '${i}' could not be found in shared credentials file.`,!1);for(let c of["sso_start_url","sso_region"])if(!S[c])throw new f.TokenProviderError(`Sso session '${i}' is missing required property '${c}'.`,!1);let{sso_start_url:d,sso_region:E}=S,s;try{s=await f.getSSOTokenFromFile(i)}catch(c){throw new f.TokenProviderError(`The SSO session token associated with profile=${t} was not found or is invalid. ${T}`,!1)}w("accessToken",s.accessToken),w("expiresAt",s.expiresAt);let{accessToken:x,expiresAt:C}=s,l={token:x,expiration:new Date(C)};if(l.expiration.getTime()-Date.now()>U)return l;let m=Y.get(i)??0;if(Date.now()-m<30000)return N(l),l;w("clientId",s.clientId,!0),w("clientSecret",s.clientSecret,!0),w("refreshToken",s.refreshToken,!0);try{Y.set(i,Date.now());let c=await q(s,E,e,o);w("accessToken",c.accessToken),w("expiresIn",c.expiresIn);let O=new Date(Date.now()+c.expiresIn*1000);try{await V(i,{...s,accessToken:c.accessToken,expiresAt:O.toISOString(),refreshToken:c.refreshToken})}catch(u){}return{token:c.accessToken,expiration:O}}catch(c){return N(l),l}};var h=a(_()),y=!1,P=async({ssoStartUrl:e,ssoSession:o,ssoAccountId:r,ssoRegion:t,ssoRoleName:n,ssoClient:i,clientConfig:p,parentClientConfig:S,callerClientConfig:d,profile:E,filepath:s,configFilepath:x,ignoreCache:C,logger:l})=>{let m,c="To refresh this SSO session run aws sso login with the corresponding profile.";if(o)try{let k=await R({profile:E,filepath:s,configFilepath:x,ignoreCache:C,clientConfig:p,parentClientConfig:S,logger:l})({callerClientConfig:d});m={accessToken:k.token,expiresAt:new Date(k.expiration).toISOString()}}catch(k){throw new h.CredentialsProviderError(k.message,{tryNextLink:y,logger:l})}else try{m=await h.getSSOTokenFromFile(e)}catch(k){throw new h.CredentialsProviderError("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:y,logger:l})}if(new Date(m.expiresAt).getTime()-Date.now()<=0)throw new h.CredentialsProviderError("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:y,logger:l});let{accessToken:O}=m,{SSOClient:u,GetRoleCredentialsCommand:A}=await import("./chunk-1cvzbvsq.js"),Z=i||new u(Object.assign({},p??{},{logger:p?.logger??d?.logger??S?.logger,region:p?.region??t,userAgentAppId:p?.userAgentAppId??d?.userAgentAppId??S?.userAgentAppId})),F;try{F=await Z.send(new A({accountId:r,roleName:n,accessToken:O}))}catch(k){throw new h.CredentialsProviderError(k,{tryNextLink:y,logger:l})}let{roleCredentials:{accessKeyId:D,secretAccessKey:L,sessionToken:M,expiration:b,credentialScope:G,accountId:K}={}}=F;if(!D||!L||!M||!b)throw new h.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:y,logger:l});let I={accessKeyId:D,secretAccessKey:L,sessionToken:M,expiration:new Date(b),...G&&{credentialScope:G},...K&&{accountId:K}};if(o)v.setCredentialFeature(I,"CREDENTIALS_SSO","s");else v.setCredentialFeature(I,"CREDENTIALS_SSO_LEGACY","u");return I};var B=a(_()),Q=(e,o)=>{let{sso_start_url:r,sso_account_id:t,sso_region:n,sso_role_name:i}=e;if(!r||!t||!n||!i)throw new B.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
3
- Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:o});return e};var se=(e={})=>async({callerClientConfig:o}={})=>{e.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:r,ssoAccountId:t,ssoRegion:n,ssoRoleName:i,ssoSession:p}=e,{ssoClient:S}=e,d=g.getProfileName({profile:e.profile??o?.profile});if(!r&&!t&&!n&&!i&&!p){let s=(await g.parseKnownFiles(e))[d];if(!s)throw new g.CredentialsProviderError(`Profile ${d} was not found.`,{logger:e.logger});if(!H(s))throw new g.CredentialsProviderError(`Profile ${d} is not configured with SSO credentials.`,{logger:e.logger});if(s?.sso_session){let u=(await g.loadSsoSessionData(e))[s.sso_session],A=` configurations in profile ${d} and sso-session ${s.sso_session}`;if(n&&n!==u.sso_region)throw new g.CredentialsProviderError("Conflicting SSO region"+A,{tryNextLink:!1,logger:e.logger});if(r&&r!==u.sso_start_url)throw new g.CredentialsProviderError("Conflicting SSO start_url"+A,{tryNextLink:!1,logger:e.logger});s.sso_region=u.sso_region,s.sso_start_url=u.sso_start_url}let{sso_start_url:x,sso_account_id:C,sso_region:l,sso_role_name:m,sso_session:c}=Q(s,e.logger);return P({ssoStartUrl:x,ssoSession:c,ssoAccountId:C,ssoRegion:l,ssoRoleName:m,ssoClient:S,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:d,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})}else if(!r||!t||!n||!i)throw new g.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:e.logger});else return P({ssoStartUrl:r,ssoSession:p,ssoAccountId:t,ssoRegion:n,ssoRoleName:i,ssoClient:S,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:d,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})};export{se as fromSSO};
package/chunk-fcxdq1dy.js DELETED
@@ -1,7 +0,0 @@
1
- // @bun
2
- import{S}from"./chunk-2nd8hvf3.js";import{V}from"./chunk-9mt2k1a7.js";import{E}from"./chunk-fkjjadt4.js";import{pt}from"./chunk-aq6xkc1w.js";import{vt}from"./chunk-hvxc1wyv.js";import{Gt,Vt}from"./chunk-r49sxmnc.js";import{ce}from"./chunk-54zpktrq.js";import{ge}from"./chunk-2h2mvrw2.js";import{Q,ee}from"./chunk-fgpzy3fe.js";import{Ee,Mn,On,Se,Dr,Fe,Ot,te,os,is,Ae}from"./chunk-b6rvzkxg.js";import{x}from"./chunk-et2s8y6a.js";import{J}from"./chunk-eg161ep9.js";import{G,Ve,ue,Pe,Ce,ne,Y}from"./chunk-9sq7yxh7.js";import{j}from"./chunk-vpvznxf4.js";function W(e,n){if(!e)return!1;let t=n.toLowerCase();for(let[s,u]of Object.entries(e))if(s.toLowerCase()===t&&u!==null&&u.trim().length>0)return!0;return!1}function oe(e,n,t){if(n)return n;if(W(t,"authorization")||W(t,"cf-aig-authorization"))return"unused";throw Error(`No API key for provider: ${e}`)}function me(e){for(let n of e){if(n.role==="toolResult")return!0;if(n.role==="assistant"){if(n.content.some((t)=>t.type==="toolCall"))return!0}}return!1}function Z(e){return e.type==="text"}function ye(e){return e.type==="thinking"}function ke(e){return e.type==="toolCall"}function Te(e){return e.type==="image"}function Re(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)}function xe(e){return(e.id===void 0||e.id===null||typeof e.id==="string")&&(e.format===void 0||typeof e.format==="string")&&(e.index===void 0||typeof e.index==="number")}function N(e){if(!Re(e)||!xe(e))return!1;switch(e.type){case"reasoning.summary":return typeof e.summary==="string";case"reasoning.encrypted":return typeof e.data==="string";case"reasoning.text":return typeof e.text==="string"&&(e.signature===void 0||e.signature===null||typeof e.signature==="string");default:return!1}}function _e(e){if(!e)return;try{let n=JSON.parse(e);return Array.isArray(n)&&n.length>0&&n.every(N)?n:void 0}catch{return}}function ve(e){if(!e)return;try{let n=JSON.parse(e);return N(n)&&n.type==="reasoning.encrypted"&&typeof n.id==="string"&&n.id.length>0&&n.data.length>0?n:void 0}catch{return}}function X(e,n){e.id??=n.id,e.format||=n.format,e.index??=n.index}function Me(e,n){let t=e[e.length-1];if(n.type==="reasoning.text"&&t?.type==="reasoning.text"){t.text+=n.text,t.signature||=n.signature,X(t,n);return}if(n.type==="reasoning.summary"&&t?.type==="reasoning.summary"){t.summary+=n.summary,X(t,n);return}e.push({...n})}var Ie=["reasoning","reasoning_content","reasoning_text"];function we(e){return Ie.includes(e)}function ie(e,n){if(e)return e;if(E("PI_CACHE_RETENTION",n)==="long")return"long";return"short"}var Oe=(e,n,t)=>{let s=new j,u=ue(n,D(e).supportsMidConvoSystemMessages);return(async()=>{let r={role:"assistant",content:[],api:e.api,provider:e.provider,model:e.id,usage:{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},stopReason:"pending",timestamp:Date.now()},k,g=(R)=>{if(k!==void 0)R.thinkingSignature=JSON.stringify(k)};try{let R=oe(e.provider,t?.apiKey,t?.headers),a=D(e),T=Fe(Pe(u.messages),a.supportsOpenAIGrammarTools),p=ie(t?.cacheRetention,t?.env),d=p==="none"?void 0:t?.sessionId,o=be(e,u,R,t?.headers,t?.fetch,d,a),f=Be(e,u,t,a,p,T),h=await t?.onPayload?.(f,e);if(h!==void 0)f=h;let C={...t?.signal?{signal:t.signal}:{},...t?.timeoutMs!==void 0?{timeout:t.timeoutMs}:{},maxRetries:0},{data:M,response:P}=await ge(()=>o.chat.completions.create(f,C).withResponse(),{maxRetries:t?.maxRetries,maxRetryDelayMs:t?.maxRetryDelayMs,signal:t?.signal});await t?.onResponse?.({status:P.status,headers:J(P.headers)},e),s.push({type:"start",partial:r});let O=null,F=null,A=!1,b=new Map,L=new Map,l=r.content,I=(i)=>l.indexOf(i),K=(i)=>{let c=i.customInput?.property;if(c===void 0)return"";let _=i.arguments[c];return typeof _==="string"?_:""},H=(i,c,_)=>{let m=i.customInput;if(!m)return;let w=On(m.jsonBuffer,m.property,c,_);return i.arguments={[m.property]:c},w},le=(i)=>{let c=I(i);if(c===-1)return;if(i.type==="text")s.push({type:"text_end",contentIndex:c,content:i.text,partial:r});else if(i.type==="thinking")g(i),s.push({type:"thinking_end",contentIndex:c,content:i.thinking,partial:r});else if(i.type==="toolCall"){if(i.customInput){let _=H(i,K(i),!0);if(_!==void 0)s.push({type:"toolcall_delta",contentIndex:c,delta:_,partial:r})}else i.arguments=V(i.partialArgs);delete i.partialArgs,delete i.customInput,delete i.streamIndex,s.push({type:"toolcall_end",contentIndex:c,toolCall:i,partial:r})}},pe=()=>{if(!O)O={type:"text",text:""},l.push(O),s.push({type:"text_start",contentIndex:I(O),partial:r});return O},U=(i)=>{if(!F)F={type:"thinking",thinking:"",thinkingSignature:i},l.push(F),s.push({type:"thinking_start",contentIndex:I(F),partial:r});return F},de=(i)=>{let c=typeof i.index==="number"?i.index:void 0,_=i.function?.name??i.custom?.name??"",m=c!==void 0?b.get(c):void 0;if(!m&&i.id)m=L.get(i.id);if(!m){let w=i.custom&&!i.function?T.get(_)??"input":void 0,B=w!==void 0;if(m={type:"toolCall",id:i.id||"",name:_,arguments:B?{[w]:""}:{},partialArgs:B?void 0:"",customInput:B?{property:w,jsonBuffer:{input:"",started:!1,closed:!1}}:void 0,streamIndex:c},c!==void 0)b.set(c,m);if(i.id)L.set(i.id,m);l.push(m),s.push({type:"toolcall_start",contentIndex:I(m),partial:r})}if(c!==void 0&&m.streamIndex===void 0)m.streamIndex=c,b.set(c,m);if(i.id)L.set(i.id,m);if(!m.name&&_)m.name=_;if(i.custom&&!i.function&&!m.customInput){let w=T.get(m.name)??"input";m.arguments={[w]:""},m.customInput={property:w,jsonBuffer:{input:"",started:!1,closed:!1}},delete m.partialArgs}return m};for await(let i of M){if(await t?.onProviderStreamEvent?.(i,e),!i||typeof i!=="object")continue;if(r.responseId||=i.id,typeof i.model==="string"&&i.model.length>0&&i.model!==e.id)r.responseModel||=i.model;if(i.usage)r.usage=re(i.usage,e);let c=Array.isArray(i.choices)?i.choices[0]:void 0;if(!c)continue;if(!i.usage&&c.usage)r.usage=re(c.usage,e);if(c.finish_reason){r.rawStopReason=c.finish_reason;let _=We(c.finish_reason);if(r.stopReason=_.stopReason,_.errorMessage)r.errorMessage=_.errorMessage;A=!0}if(c.delta){if(c.delta.content!==null&&c.delta.content!==void 0&&c.delta.content.length>0){let y=pe();y.text+=c.delta.content,s.push({type:"text_delta",contentIndex:I(y),delta:c.delta.content,partial:r})}let _=["reasoning_content","reasoning","reasoning_text"],m=c.delta,w=null;for(let y of _){let v=m[y];if(typeof v==="string"&&v.length>0){w=y;break}}if(w){let y=m[w];if(typeof y==="string"&&y.length>0){let v=e.provider==="opencode-go"&&w==="reasoning"?"reasoning_content":w,q=U(v);q.thinking+=y,s.push({type:"thinking_delta",contentIndex:I(q),delta:y,partial:r})}}if(c?.delta?.tool_calls)for(let y of c.delta.tool_calls){let v=de(y);if(!v.id&&y.id)v.id=y.id,L.set(y.id,v);let q=y.function?.name??y.custom?.name;if(!v.name&&q)v.name=q;let z="";if(y.function?.arguments)z=y.function.arguments,v.partialArgs=(v.partialArgs??"")+y.function.arguments,v.arguments=V(v.partialArgs);else if(y.custom?.input){let he=K(v)+y.custom.input;z=H(v,he,!1)??""}s.push({type:"toolcall_delta",contentIndex:I(v),delta:z,partial:r})}let B=c.delta.reasoning_details;if(Array.isArray(B))for(let y of B){if(!N(y))continue;U(""),k??=[],Me(k,y)}}}for(let i of l)le(i);if(t?.signal?.aborted)throw Error("Request was aborted");if(r.stopReason==="aborted")throw Error("Request was aborted");if(!A&&!a.supportsFinishReason)r.stopReason=r.content.some((i)=>i.type==="toolCall")?"toolUse":"stop";if(r.stopReason==="error")throw Error(r.errorMessage||"Provider returned an error stop reason");if(a.supportsFinishReason&&!A||r.stopReason==="pending")throw Error("Stream ended without finish_reason");s.push({type:"done",reason:r.stopReason,message:r}),s.end()}catch(R){for(let T of r.content){if(T.type==="thinking")g(T);delete T.index,delete T.partialArgs,delete T.customInput,delete T.streamIndex}r.stopReason=t?.signal?.aborted?"aborted":"error",r.errorMessage=ee(Q(R));let a=R?.error?.metadata?.raw;if(a&&!r.errorMessage.includes(String(a)))r.errorMessage+=`
3
- ${a}`;s.push({type:"error",reason:r.stopReason,error:r}),s.end()}})(),s},ht=(e,n,t)=>{oe(e.provider,t?.apiKey,t?.headers);let s={...te(e,n,t,t?.apiKey),toolChoice:t?.toolChoice},u=t?.reasoning?Y(e,t.reasoning):void 0;return Oe(e,n,{...s,reasoningEffort:u==="off"?void 0:u,thinkingBudgets:t?.thinkingBudgets})};function be(e,n,t,s,u,r,k=D(e)){let g={"User-Agent":ce(),...e.headers};if(e.provider==="github-copilot"){let R=Gt(n.messages),a=Vt({messages:n.messages,hasImages:R});Object.assign(g,a)}if(r&&k.sendSessionAffinityHeaders)if(k.sessionAffinityFormat==="openrouter")g["x-session-id"]=r;else{if(k.sessionAffinityFormat==="openai")g.session_id=r;g["x-client-request-id"]=r,g["x-session-affinity"]=r}if(s)Object.assign(g,s);return new S({apiKey:t,baseURL:e.baseUrl,dangerouslyAllowBrowser:!0,fetch:u,defaultHeaders:g})}function Be(e,n,t,s=D(e),u=ie(t?.cacheRetention,t?.env),r=Fe(Pe(n.messages),s.supportsOpenAIGrammarTools)){let k=Ce(n.messages,s.supportsMidConvoSystemMessages===!0&&s.supportsMidConvoToolAdditions===!0),g=Ue(e,n,s,{grammarToolInputProperties:r}),R=ze(s,u),a={model:e.id,messages:g,stream:!0,prompt_cache_key:e.baseUrl.includes("api.openai.com")&&u!=="none"||u==="long"&&s.supportsLongCacheRetention?pt(t?.sessionId):void 0,prompt_cache_retention:u==="long"&&s.supportsLongCacheRetention?"24h":void 0};if(s.supportsUsageInStreaming!==!1)a.stream_options={include_usage:!0};if(s.supportsStore)a.store=!1;if(t?.maxTokens)if(s.maxTokensField==="max_tokens")a.max_tokens=t.maxTokens;else a.max_completion_tokens=t.maxTokens;if(t?.temperature!==void 0)a.temperature=t.temperature;if(k.requestTools.length>0){if(a.tools=fe(k.requestTools,s),s.zaiToolStream)a.tool_stream=!0}else if(me(n.messages))a.tools=[];if(R)Ge(g,a.tools,R);if(t?.toolChoice)a.tool_choice=t.toolChoice;if(s.vllmPriority!==void 0)a.priority=s.vllmPriority;let T=Le(s),p=qe(e,t,a);if(s.thinkingFormat==="zai"&&e.reasoning){let o=a;if(o.thinking=t?.reasoningEffort?{type:"enabled",clear_thinking:!1}:{type:"disabled"},t?.reasoningEffort&&s.supportsReasoningEffort){let f=e.thinkingLevelMap?.[t.reasoningEffort],h=f===void 0?t.reasoningEffort:f;if(typeof h==="string")o.reasoning_effort=h}}else if(s.thinkingFormat==="qwen"&&e.reasoning){if(a.enable_thinking=!!t?.reasoningEffort,t?.reasoningEffort&&s.supportsReasoningEffort){let o=e.thinkingLevelMap?.[t.reasoningEffort]??t.reasoningEffort;if(typeof o==="string")a.reasoning_effort=o}}else if(s.thinkingFormat==="qwen-chat-template"&&e.reasoning)a.chat_template_kwargs={enable_thinking:!!t?.reasoningEffort,preserve_thinking:!0};else if(s.thinkingFormat==="chat-template"&&e.reasoning){let o=se(e,t,s.chatTemplateKwargs,p);if(o)a.chat_template_kwargs=o}else if(s.thinkingFormat==="baseten"&&e.reasoning){let o=a,f=se(e,t,s.chatTemplateArgs,p);if(f)o.chat_template_args=f;if(s.supportsReasoningEffort){let h=t?.reasoningEffort,C=h?e.thinkingLevelMap?.[h]:e.thinkingLevelMap?.off,M=C===void 0?h:C;if(typeof M==="string")o.reasoning_effort=M}}else if(s.thinkingFormat==="deepseek"&&e.reasoning){if(t?.reasoningEffort)a.thinking={type:"enabled"};else if(e.thinkingLevelMap?.off!==null)a.thinking={type:"disabled"};if(t?.reasoningEffort&&s.supportsReasoningEffort)a.reasoning_effort=e.thinkingLevelMap?.[t.reasoningEffort]??t.reasoningEffort}else if(s.thinkingFormat==="openrouter"&&e.reasoning){let o=a;if(t?.reasoningEffort)o.reasoning={effort:e.thinkingLevelMap?.[t.reasoningEffort]??t.reasoningEffort};else if(e.thinkingLevelMap?.off!==null)o.reasoning={effort:e.thinkingLevelMap?.off??"none"}}else if(s.thinkingFormat==="ant-ling"&&e.reasoning&&t?.reasoningEffort){let o=e.thinkingLevelMap?.[t.reasoningEffort];if(typeof o==="string")a.reasoning={effort:o}}else if(s.thinkingFormat==="together"&&e.reasoning){let o=a;if(o.reasoning={enabled:!!t?.reasoningEffort},t?.reasoningEffort&&s.supportsReasoningEffort)o.reasoning_effort=e.thinkingLevelMap?.[t.reasoningEffort]??t.reasoningEffort}else if(s.thinkingFormat==="string-thinking"&&e.reasoning){let o=a;if(t?.reasoningEffort)o.thinking=e.thinkingLevelMap?.[t.reasoningEffort]??t.reasoningEffort;else if(e.thinkingLevelMap?.off!==null)o.thinking=e.thinkingLevelMap?.off??"none"}else if(t?.reasoningEffort&&e.reasoning&&s.supportsReasoningEffort)a.reasoning_effort=e.thinkingLevelMap?.[t.reasoningEffort]??t.reasoningEffort;else if(!t?.reasoningEffort&&e.reasoning&&s.supportsReasoningEffort){let o=e.thinkingLevelMap?.off;if(typeof o==="string")a.reasoning_effort=o}if(T&&p!==void 0)Object.assign(a,{[T]:p});if(e.compat?.openRouterRouting)a.provider=e.compat.openRouterRouting;if(e.compat?.vercelGatewayRouting){let o=e.compat.vercelGatewayRouting;if(o.only||o.order){let f={};if(o.only)f.only=o.only;if(o.order)f.order=o.order;a.providerOptions={gateway:f}}}let d=Ot(e,t?.reasoningEffort??"off",t?.samplingParams);if(d)Object.assign(a,d);return a}function Le(e){if(e.thinkingTokenBudgetField)return e.thinkingTokenBudgetField;if(e.supportsThinkingTokenBudget)return"thinking_token_budget";return}function qe(e,n,t){if(!n?.reasoningEffort||!e.reasoning)return;let s=t.max_tokens??t.max_completion_tokens??e.maxTokens,u=is(os(n.reasoningEffort,n.thinkingBudgets),s);return u>0?u:void 0}function se(e,n,t,s){let u={};for(let[r,k]of Object.entries(t)){let g=De(e,n,k,s);if(g!==void 0)u[r]=g}return Object.keys(u).length>0?u:void 0}function De(e,n,t,s){if(typeof t!=="object"||t===null)return t;let u=n?.reasoningEffort;if(!u&&t.omitWhenOff)return;if(t.$var==="thinking.enabled")return!!u;if(t.$var==="thinking.budget")return s;let r=u?e.thinkingLevelMap?.[u]:e.thinkingLevelMap?.off;return r===void 0?u:typeof r==="string"?r:void 0}function ze(e,n){if(e.cacheControlFormat!=="anthropic"||n==="none")return;let t=n==="long"&&e.supportsLongCacheRetention?"1h":void 0;return{type:"ephemeral",...t?{ttl:t}:{}}}function Ge(e,n,t){Ne(e,t),$e(n,t),je(e,t)}function Ne(e,n){for(let t of e)if(t.role==="system"||t.role==="developer"){Ke(t,n);return}}function je(e,n){for(let t=e.length-1;t>=0;t--){let s=e[t];if(s.role==="user"||s.role==="assistant"||s.role==="tool"){if(He(s,n))return}}}function $e(e,n){if(!e||e.length===0)return;let t=e[e.length-1];t.cache_control=n}function Ke(e,n){return ae(e,n)}function He(e,n){if(e.role==="user"||e.role==="assistant"||e.role==="tool")return ae(e,n);return!1}function ae(e,n){let t=e.content;if(typeof t==="string"){if(t.length===0)return!1;return e.content=[{type:"text",text:t,cache_control:n}],!0}if(!Array.isArray(t))return!1;for(let s=t.length-1;s>=0;s--){let u=t[s];if(u?.type==="text"){let r=u;return r.cache_control=n,!0}}return!1}function Ue(e,n,t,s){let u=ue(n,t.supportsMidConvoSystemMessages),r=[],k=(p)=>{if(p.includes("|")){let d=p.indexOf("|"),o=p.slice(0,d).replace(/[^a-zA-Z0-9_-]/g,"_"),f=p.slice(d+1).replace(/[^a-zA-Z0-9_-]/g,"_"),h=f.length>0?`${o}_${f}`:o;if(h.length<=40)return h;let C=vt(p).slice(0,8);return`${o.slice(0,Math.max(1,40-C.length-1))}_${C}`}if(e.provider==="openai")return p.length>40?p.slice(0,40):p;return p},g=Ae(u.messages,e,(p)=>k(p)),R=Ce(u.messages,t.supportsMidConvoSystemMessages===!0&&t.supportsMidConvoToolAdditions===!0),a=e.reasoning&&t.supportsDeveloperRole?"developer":"system",T=null;for(let p=0;p<g.length;p++){let d=g[p];if(t.requiresAssistantAfterToolResult&&T==="toolResult"&&d.role==="user")r.push({role:"assistant",content:"I have processed the tool results."});if(d.role==="system"){let o=p>0&&R.anchorsAdditions?d.toolsAdded??[]:[];if(o.length>0){let h={role:"system",tools:fe(o,t)};r.push(h)}let f=p===0?G(d):Ve(d);if(f.length>0)r.push({role:a,content:x(f)})}else if(d.role==="user")if(typeof d.content==="string")r.push({role:"user",content:x(d.content)});else{let o=d.content.filter((f)=>f.type!=="text"||f.text.length>0).map((f)=>{if(f.type==="text")return{type:"text",text:x(f.text)};else return{type:"image_url",image_url:{url:`data:${f.mimeType};base64,${f.data}`}}});if(o.length===0)continue;r.push({role:"user",content:o})}else if(d.role==="assistant"){let o={role:"assistant",content:t.requiresAssistantAfterToolResult?"":null},f=d.content.filter(Z).filter((l)=>l.text.trim().length>0).map((l)=>({type:"text",text:x(l.text)})),h=f.map((l)=>l.text).join(""),C=d.content.filter(ye),M=d.content.filter(ke),P=C.map((l)=>_e(l.thinkingSignature)).find((l)=>l!==void 0),O=M.map((l)=>ve(l.thoughtSignature)).filter((l)=>l!==void 0),F=P??(O.length>0?O:void 0),A=C.filter((l)=>l.thinking.trim().length>0);if(A.length>0)if(t.requiresThinkingAsText){let l=A.map((I)=>x(I.thinking)).join(`
4
-
5
- `);o.content=[{type:"text",text:l},...f]}else{if(h.length>0)o.content=h;if(!F){let l=A[0].thinkingSignature;if(e.provider==="opencode-go"&&l==="reasoning")l="reasoning_content";if(l&&we(l))o[l]=A.map((I)=>I.thinking).join(`
6
- `)}}else if(h.length>0)o.content=h;if(M.length>0)o.tool_calls=M.map((l)=>{let I=s?.grammarToolInputProperties?.get(l.name);if(I!==void 0)return{id:l.id,type:"custom",custom:{name:l.name,input:x(Mn(l.name,l.arguments,I))}};return{id:l.id,type:"function",function:{name:l.name,arguments:JSON.stringify(l.arguments)}}});if(F)o.reasoning_details=F;if(t.requiresReasoningContentOnAssistantMessages&&e.reasoning&&o.reasoning_content===void 0)o.reasoning_content="";let b=o.content;if(!(b!==null&&b!==void 0&&(typeof b==="string"?b.length>0:b.length>0))&&!o.tool_calls)continue;r.push(o)}else if(d.role==="toolResult"){let o=[],f=p;for(;f<g.length&&g[f].role==="toolResult";f++){let h=g[f],C=h.content.filter(Z).map((A)=>A.text).join(`
7
- `),M=h.content.some((A)=>A.type==="image"),O=C.length>0?C:M?"(see attached image)":"(no tool output)",F={role:"tool",content:x(O),tool_call_id:h.toolCallId};if(t.requiresToolResultName&&h.toolName)F.name=h.toolName;if(r.push(F),M&&e.input.includes("image")){for(let A of h.content)if(Te(A))o.push({type:"image_url",image_url:{url:`data:${A.mimeType};base64,${A.data}`}})}}if(p=f-1,o.length>0){if(t.requiresAssistantAfterToolResult)r.push({role:"assistant",content:"I have processed the tool results."});r.push({role:"user",content:[{type:"text",text:"Attached image(s) from tool result:"},...o]}),T="user"}else T="toolResult";continue}T=d.role}return r}function fe(e,n){return e.map((t)=>{let s=Dr(t,n.supportsOpenAIGrammarTools);if(s)return{type:"custom",custom:{name:t.name,description:t.description,format:{type:"grammar",grammar:{syntax:s.format,definition:s.definition}}}};let u=Se(t,n.supportsStrictMode!==!1);return{type:"function",function:{name:t.name,description:t.description,parameters:Ee(t,u),...n.supportsStrictMode!==!1&&{strict:u??!1}}}})}function re(e,n){let t=e.prompt_tokens||0,s=e.prompt_tokens_details?.cached_tokens??e.prompt_cache_hit_tokens??e.cached_tokens??0,u=e.prompt_tokens_details?.cache_write_tokens||0,r=Math.max(0,t-s-u),k=e.completion_tokens||0,g={input:r,output:k,cacheRead:s,cacheWrite:u,reasoning:e.completion_tokens_details?.reasoning_tokens||0,totalTokens:r+k+s+u,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}};return ne(n,g),g}function We(e){if(e===null)return{stopReason:"stop"};switch(e){case"stop":case"end":return{stopReason:"stop"};case"length":return{stopReason:"length"};case"function_call":case"tool_calls":return{stopReason:"toolUse"};case"content_filter":return{stopReason:"error",errorMessage:"Provider finish_reason: content_filter"};case"network_error":return{stopReason:"error",errorMessage:"Provider finish_reason: network_error"};default:return{stopReason:"error",errorMessage:`Provider finish_reason: ${e}`}}}function Je(e){let{provider:n,baseUrl:t}=e,s=n==="zai"||n==="zai-coding-cn"||t.includes("api.z.ai")||t.includes("open.bigmodel.cn"),u=n==="together"||t.includes("api.together.ai")||t.includes("api.together.xyz"),r=n==="moonshotai"||n==="moonshotai-cn"||t.includes("api.moonshot."),k=n==="openrouter"||t.includes("openrouter.ai"),g=n==="cloudflare-workers-ai"||t.includes("api.cloudflare.com"),R=n==="cloudflare-ai-gateway"||t.includes("gateway.ai.cloudflare.com"),a=n==="nvidia"||t.includes("integrate.api.nvidia.com"),T=n==="ant-ling"||t.includes("api.ant-ling.com"),p=n==="cerebras"||t.includes("cerebras.ai"),d=n==="deepseek"||t.toLowerCase().includes("deepseek.com"),o=a||p||n==="xai"||t.includes("api.x.ai")||u||t.includes("chutes.ai")||d||s||r||n==="opencode"||t.includes("opencode.ai")||g||R||T,f=t.includes("chutes.ai")||d||r||R||u||a||T||s,h=n==="xai"||t.includes("api.x.ai"),C=k&&(e.id.startsWith("anthropic/")||e.id.startsWith("openai/")),M=n==="openrouter"&&e.id.startsWith("anthropic/")?"anthropic":void 0;return{supportsStore:!o,supportsDeveloperRole:C||!o&&!k,supportsReasoningEffort:!h&&!s&&!r&&!u&&!R&&!a&&!T,supportsUsageInStreaming:!0,supportsFinishReason:!0,maxTokensField:f?"max_tokens":"max_completion_tokens",requiresToolResultName:!1,requiresAssistantAfterToolResult:!1,requiresThinkingAsText:!1,requiresReasoningContentOnAssistantMessages:d,thinkingFormat:d?"deepseek":s?"zai":u?"together":T?"ant-ling":k?"openrouter":"openai",openRouterRouting:{},vercelGatewayRouting:{},chatTemplateKwargs:{},chatTemplateArgs:{},zaiToolStream:!1,supportsThinkingTokenBudget:!1,thinkingTokenBudgetField:void 0,supportsStrictMode:!1,supportsOpenAIGrammarTools:!1,supportsMidConvoSystemMessages:!1,supportsMidConvoToolAdditions:!1,cacheControlFormat:M,sendSessionAffinityHeaders:k,sessionAffinityFormat:k?"openrouter":"openai",supportsLongCacheRetention:!(u||g||R||a||T)}}function D(e){let n=Je(e);if(!e.compat)return n;return{supportsStore:e.compat.supportsStore??n.supportsStore,supportsDeveloperRole:e.compat.supportsDeveloperRole??n.supportsDeveloperRole,supportsReasoningEffort:e.compat.supportsReasoningEffort??n.supportsReasoningEffort,supportsUsageInStreaming:e.compat.supportsUsageInStreaming??n.supportsUsageInStreaming,supportsFinishReason:e.compat.supportsFinishReason??n.supportsFinishReason,maxTokensField:e.compat.maxTokensField??n.maxTokensField,requiresToolResultName:e.compat.requiresToolResultName??n.requiresToolResultName,requiresAssistantAfterToolResult:e.compat.requiresAssistantAfterToolResult??n.requiresAssistantAfterToolResult,requiresThinkingAsText:e.compat.requiresThinkingAsText??n.requiresThinkingAsText,requiresReasoningContentOnAssistantMessages:e.compat.requiresReasoningContentOnAssistantMessages??n.requiresReasoningContentOnAssistantMessages,thinkingFormat:e.compat.thinkingFormat??n.thinkingFormat,openRouterRouting:e.compat.openRouterRouting??{},vercelGatewayRouting:e.compat.vercelGatewayRouting??n.vercelGatewayRouting,chatTemplateKwargs:e.compat.chatTemplateKwargs??n.chatTemplateKwargs,chatTemplateArgs:e.compat.chatTemplateArgs??n.chatTemplateArgs,zaiToolStream:e.compat.zaiToolStream??n.zaiToolStream,supportsThinkingTokenBudget:e.compat.supportsThinkingTokenBudget??n.supportsThinkingTokenBudget,thinkingTokenBudgetField:e.compat.thinkingTokenBudgetField??n.thinkingTokenBudgetField,supportsStrictMode:e.compat.supportsStrictMode??n.supportsStrictMode,supportsOpenAIGrammarTools:e.compat.supportsOpenAIGrammarTools??n.supportsOpenAIGrammarTools,supportsMidConvoSystemMessages:e.compat.supportsMidConvoSystemMessages??n.supportsMidConvoSystemMessages,supportsMidConvoToolAdditions:e.compat.supportsMidConvoToolAdditions??n.supportsMidConvoToolAdditions,cacheControlFormat:e.compat.cacheControlFormat??n.cacheControlFormat,sendSessionAffinityHeaders:e.compat.sendSessionAffinityHeaders??n.sendSessionAffinityHeaders,sessionAffinityFormat:e.compat.sessionAffinityFormat??n.sessionAffinityFormat,supportsLongCacheRetention:e.compat.supportsLongCacheRetention??n.supportsLongCacheRetention,vllmPriority:e.compat.vllmPriority}}export{Ue as convertMessages,Oe as stream,ht as streamSimple};
package/chunk-fkjjadt4.js DELETED
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{u}from"./chunk-xjcg6cxc.js";var n=null;function c(e){if(typeof process>"u"||!process.versions?.bun||Object.keys(process.env).length>0)return;if(n===null){n=new Map;try{let{readFileSync:t}=u("fs"),s=t("/proc/self/environ","utf-8");for(let r of s.split("\x00")){let o=r.indexOf("=");if(o>0)n.set(r.slice(0,o),r.slice(o+1))}}catch{}}return n.get(e)}function E(e,t){return t?.[e]||(typeof process<"u"?process.env[e]:void 0)||c(e)||void 0}
3
- export{E};
package/chunk-fr1zvytp.js DELETED
@@ -1,7 +0,0 @@
1
- // @bun
2
- import{r,u}from"./chunk-xjcg6cxc.js";var U=r(function(De,S){var y=1000,x=y*60,b=x*60,m=b*24,R=m*7,V=m*365.25;S.exports=function(e,s){s=s||{};var t=typeof e;if(t==="string"&&e.length>0)return X(e);else if(t==="number"&&isFinite(e))return s.long?ee(e):Y(e);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function X(e){if(e=String(e),e.length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!s)return;var t=parseFloat(s[1]),i=(s[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return t*V;case"weeks":case"week":case"w":return t*R;case"days":case"day":case"d":return t*m;case"hours":case"hour":case"hrs":case"hr":case"h":return t*b;case"minutes":case"minute":case"mins":case"min":case"m":return t*x;case"seconds":case"second":case"secs":case"sec":case"s":return t*y;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}function Y(e){var s=Math.abs(e);if(s>=m)return Math.round(e/m)+"d";if(s>=b)return Math.round(e/b)+"h";if(s>=x)return Math.round(e/x)+"m";if(s>=y)return Math.round(e/y)+"s";return e+"ms"}function ee(e){var s=Math.abs(e);if(s>=m)return A(e,s,m,"day");if(s>=b)return A(e,s,b,"hour");if(s>=x)return A(e,s,x,"minute");if(s>=y)return A(e,s,y,"second");return e+" ms"}function A(e,s,t,i){var d=s>=t*1.5;return Math.round(e/t)+" "+i+(d?"s":"")}});var E=r(function(Be,_){function te(e){t.debug=t,t.default=t,t.coerce=W,t.disable=P,t.enable=d,t.enabled=T,t.humanize=U(),t.destroy=Z,Object.keys(e).forEach((n)=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={};function s(n){let o=0;for(let c=0;c<n.length;c++)o=(o<<5)-o+n.charCodeAt(c),o|=0;return t.colors[Math.abs(o)%t.colors.length]}t.selectColor=s;function t(n){let o,c=null,a,g;function l(...f){if(!l.enabled)return;let h=l,v=Number(new Date),H=v-(o||v);if(h.diff=H,h.prev=o,h.curr=v,o=v,f[0]=t.coerce(f[0]),typeof f[0]!=="string")f.unshift("%O");let O=0;f[0]=f[0].replace(/%([a-zA-Z%])/g,(j,K)=>{if(j==="%%")return"%";O++;let M=t.formatters[K];if(typeof M==="function"){let Q=f[O];j=M.call(h,Q),f.splice(O,1),O--}return j}),t.formatArgs.call(h,f),(h.log||t.log).apply(h,f)}if(l.namespace=n,l.useColors=t.useColors(),l.color=t.selectColor(n),l.extend=i,l.destroy=t.destroy,Object.defineProperty(l,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(c!==null)return c;if(a!==t.namespaces)a=t.namespaces,g=t.enabled(n);return g},set:(f)=>{c=f}}),typeof t.init==="function")t.init(l);return l}function i(n,o){let c=t(this.namespace+(typeof o>"u"?":":o)+n);return c.log=this.log,c}function d(n){t.save(n),t.namespaces=n,t.names=[],t.skips=[];let o=(typeof n==="string"?n:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let c of o)if(c[0]==="-")t.skips.push(c.slice(1));else t.names.push(c)}function C(n,o){let c=0,a=0,g=-1,l=0;while(c<n.length)if(a<o.length&&(o[a]===n[c]||o[a]==="*"))if(o[a]==="*")g=a,l=c,a++;else c++,a++;else if(g!==-1)a=g+1,l++,c=l;else return!1;while(a<o.length&&o[a]==="*")a++;return a===o.length}function P(){let n=[...t.names,...t.skips.map((o)=>"-"+o)].join(",");return t.enable(""),n}function T(n){for(let o of t.skips)if(C(n,o))return!1;for(let o of t.names)if(C(n,o))return!0;return!1}function W(n){if(n instanceof Error)return n.stack||n.message;return n}function Z(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}_.exports=te});var z=r(function(D,I){D.formatArgs=se;D.save=ne;D.load=oe;D.useColors=re;D.storage=ie();D.destroy=(()=>{let e=!1;return()=>{if(!e)e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();D.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function re(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function se(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+I.exports.humanize(this.diff),!this.useColors)return;let s="color: "+this.color;e.splice(1,0,s,"color: inherit");let t=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(d)=>{if(d==="%%")return;if(t++,d==="%c")i=t}),e.splice(i,0,s)}D.log=console.debug||console.log||(()=>{});function ne(e){try{if(e)D.storage.setItem("debug",e);else D.storage.removeItem("debug")}catch(s){}}function oe(){let e;try{e=D.storage.getItem("debug")||D.storage.getItem("DEBUG")}catch(s){}if(!e&&typeof process<"u"&&"env"in process)e=process.env.DEBUG;return e}function ie(){try{return localStorage}catch(e){}}I.exports=E()(D);var{formatters:ce}=I.exports;ce.j=function(e){try{return JSON.stringify(e)}catch(s){return"[UnexpectedJSONParseError]: "+s.message}}});var J=r(function(B,k){var L=u("tty"),p=u("util");B.init=be;B.log=ge;B.formatArgs=me;B.save=ye;B.load=xe;B.useColors=he;B.destroy=p.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");B.colors=[6,2,3,4,5,1];try{let e=(()=>{throw new Error("Cannot require module "+"supports-color");})();if(e&&(e.stderr||e).level>=2)B.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch(e){}B.inspectOpts=Object.keys(process.env).filter((e)=>/^debug_/i.test(e)).reduce((e,s)=>{let t=s.substring(6).toLowerCase().replace(/_([a-z])/g,(d,C)=>C.toUpperCase()),i=process.env[s];if(/^(yes|on|true|enabled)$/i.test(i))i=!0;else if(/^(no|off|false|disabled)$/i.test(i))i=!1;else if(i==="null")i=null;else i=Number(i);return e[t]=i,e},{});function he(){return"colors"in B.inspectOpts?Boolean(B.inspectOpts.colors):L.isatty(process.stderr.fd)}function me(e){let{namespace:s,useColors:t}=this;if(t){let i=this.color,d="\x1B[3"+(i<8?i:"8;5;"+i),C=` ${d};1m${s} \x1B[0m`;e[0]=C+e[0].split(`
3
- `).join(`
4
- `+C),e.push(d+"m+"+k.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=Fe()+s+" "+e[0]}function Fe(){if(B.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function ge(...e){return process.stderr.write(p.formatWithOptions(B.inspectOpts,...e)+`
5
- `)}function ye(e){if(e)process.env.DEBUG=e;else delete process.env.DEBUG}function xe(){return process.env.DEBUG}function be(e){e.inspectOpts={};let s=Object.keys(B.inspectOpts);for(let t=0;t<s.length;t++)e.inspectOpts[s[t]]=B.inspectOpts[s[t]]}k.exports=E()(B);var{formatters:G}=k.exports;G.o=function(e){return this.inspectOpts.colors=this.useColors,p.inspect(e,this.inspectOpts).split(`
6
- `).map((s)=>s.trim()).join(" ")};G.O=function(e){return this.inspectOpts.colors=this.useColors,p.inspect(e,this.inspectOpts)}});var ur=r(function(Se,q){if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)q.exports=z();else q.exports=J()});
7
- export{ur};
package/chunk-fx3cc8nr.js DELETED
@@ -1,3 +0,0 @@
1
- // @bun
2
- import{be,Xe,_n,En}from"./chunk-xdygdssk.js";import{Q,ee}from"./chunk-fgpzy3fe.js";function a(r,o,s){if(!be(o))throw Error(`${r} returned invalid probabilities for ${s}`);return Object.fromEntries(Object.entries(o).map(([t,e])=>[t,Xe(r,e,`probability for ${s}.${t}`)]))}function f(r,o,s){if(!be(o))throw Error(`${r} returned an unexpected response`);let t=[];for(let[e,n]of Object.entries(s.questions)){let i=o[e];if(!be(i))throw Error(`${r} did not return an answer for ${e}`);if(n.type==="choice"){if(i.type!=="choice"||typeof i.choice!=="string")throw Error(`${r} did not return a choice answer for ${e}`);t.push([e,{type:"choice",choice:i.choice,probabilities:a(r,i.probabilities,e),confidence:Xe(r,i.confidence,`confidence for ${e}`)}])}else if(n.type==="score"){if(i.type!=="score")throw Error(`${r} did not return a score answer for ${e}`);t.push([e,{type:"score",score:Xe(r,i.score,`score for ${e}`),confidence:Xe(r,i.confidence,`confidence for ${e}`)}])}else{if(i.type!=="noul")throw Error(`${r} did not return a bool answer for ${e}`);t.push([e,{type:"bool",probability:Xe(r,i.noul,`probability for ${e}`)}])}}return Object.fromEntries(t)}function p(r){return{state:r.state,questions:Object.fromEntries(Object.entries(r.questions).map(([o,s])=>[o,s.type==="bool"?{...s,type:"noul"}:s]))}}async function vn(r,o,s,t){let e={api:o.api,provider:o.provider,model:o.id,answers:{},stopReason:"stop",timestamp:Date.now()};try{if(o.api!==r.api)throw Error(`Unsupported classifier API: ${o.api}`);if(s.images?.length)throw Error(`${r.label} does not support image input`);let n=await _n(r.label,r.url(o),o,r.payload(o,p(s)),t),i=r.output(n),c=En(i.usage,o);if(c)e.usage=c;return e.answers=f(r.label,i.answers,s),e}catch(n){return e.stopReason=t?.signal?.aborted?"aborted":"error",e.errorMessage=ee(Q(n),`${r.label} error`),e}}
3
- export{vn};
package/chunk-j01t6mnq.js DELETED
@@ -1,3 +0,0 @@
1
- // @bun
2
- var A=["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"],I=["content-type","cache-control","allow"];function p(e){let r=e.path;if(!r?.startsWith("/api/")||/[\\\r\n#]/.test(r))throw Error("request path must start with /api/");let n=new URL(r,"http://basalt.internal");if(n.origin!=="http://basalt.internal"||!n.pathname.startsWith("/api/"))throw Error("request path must stay within /api/");let o=e.method??"GET";if(!A.includes(o))throw Error("Unsupported request method");if(e.body!==void 0&&(!e.body||typeof e.body!=="object"||Array.isArray(e.body)))throw Error("request body must be a JSON object");if(e.body!==void 0&&(o==="GET"||o==="HEAD"))throw Error("GET and HEAD requests cannot have a body");let s=e.timeoutMs??1e4;if(!Number.isSafeInteger(s)||s<1||s>60000)throw Error("timeoutMs must be an integer between 1 and 60000");return{url:n,method:o,timeoutMs:s}}function g(e){let r={};for(let n of I){let o=e.headers.get(n);if(o)r[n]=o.slice(0,500)}return r}async function M(e,r){let n=e.getReader();r(()=>n.cancel());let o=[],s=0,i=!1;while(!0){let t=await n.read();if(t.done)break;let d=20480-s;if(o.push(t.value.subarray(0,d)),s+=Math.min(t.value.length,d),t.value.length>d){i=!0,await n.cancel();break}}let u=new Uint8Array(s),c=0;for(let t of o)u.set(t,c),c+=t.length;return{text:new TextDecoder().decode(u,{stream:i}),truncated:i}}async function Pr(e,r,n){let{url:o,method:s,timeoutMs:i}=p(r),u=e.http;if(!u)throw Error("HTTP API is not attached; start the Basalt server first");let c=new AbortController,t=n?AbortSignal.any([n,c.signal]):c.signal;t.throwIfAborted();let d,b=()=>{d?.().catch(()=>{})},E=async()=>{let h=r.body!==void 0,a=await u.request(new Request(o.toString(),{method:s,headers:h?{"content-type":"application/json"}:void 0,body:h?JSON.stringify(r.body):void 0,signal:t}));if(t.aborted)throw await a.body?.cancel(),Error("API request cancelled");let m=a.body?await M(a.body,(T)=>{d=T}):{text:"",truncated:!1};return{status:a.status,headers:g(a),body:m.text,truncated:m.truncated}},f,l,y=new Promise((h,a)=>{if(l=()=>{a(Error("API request cancelled")),b()},t.addEventListener("abort",l,{once:!0}),t.aborted)l()}),w=new Promise((h,a)=>{f=setTimeout(()=>{a(Error(`API request timed out after ${i}ms`)),c.abort(),b()},i)});try{return await Promise.race([E(),y,w])}finally{if(clearTimeout(f),l)t.removeEventListener("abort",l)}}
3
- export{Pr};
package/chunk-j24fq8ss.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import*as Hi from"child_process";import*as jt from"crypto";import*as Rt from"fs";import*as C from"path";import*as yo from"stream";import*as zi from"util";export{Hi,jt,Rt,C,yo,zi};
package/chunk-j55tyjct.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{W}from"./chunk-7emc0sy7.js";import{_,K}from"./chunk-sykaz5bf.js";import{a}from"./chunk-xjcg6cxc.js";var N=a(W()),p=a(_());var f=a(_()),A=a(K());import{createHash as L,createPrivateKey as O,createPublicKey as H,sign as v}from"crypto";import{promises as E}from"fs";import{homedir as B}from"os";import{dirname as q,join as P}from"path";class d{profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300000;constructor(e,t,s){this.profileData=e,this.init=t,this.callerClientConfig=s}async loadCredentials(){let e=await this.loadToken();if(!e)throw new f.CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let t=e.accessToken,s=Date.now();if(new Date(t.expiresAt).getTime()-s<=d.REFRESH_THRESHOLD)return this.refresh(e);return this.toCredentials(e.accessToken)}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}toCredentials(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken,accountId:e.accountId,expiration:new Date(e.expiresAt)}}async refresh(e){let t=await this.loadToken().catch(()=>e),s=Date.now(),r=new Date(t.accessToken.expiresAt).getTime(),n=new Date(e.accessToken.expiresAt).getTime(),o=r<=s&&n>s?e:t;if(new Date(o.accessToken.expiresAt).getTime()-Date.now()>d.REFRESH_THRESHOLD)return this.toCredentials(o.accessToken);let{SigninClient:h,CreateOAuth2TokenCommand:y}=await import("./chunk-ysqx0ye8.js"),{logger:m,userAgentAppId:T}=this.callerClientConfig??{},x=((i)=>i?.metadata?.handlerProtocol==="h2")(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,u=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,k=new h({credentials:{accessKeyId:"",secretAccessKey:""},region:u,requestHandler:x,logger:m,userAgentAppId:T,...this.init?.clientConfig});this.createDPoPInterceptor(k.middlewareStack);let D={tokenInput:{clientId:o.clientId,refreshToken:o.refreshToken,grantType:"refresh_token"}};try{let i=await k.send(new y(D)),{accessKeyId:l,secretAccessKey:w,sessionToken:g}=i.tokenOutput?.accessToken??{},{refreshToken:C,expiresIn:R}=i.tokenOutput??{};if(!l||!w||!g||!C)throw new f.CredentialsProviderError("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let b=(R??900)*1000,F=new Date(Date.now()+b),I={...o,accessToken:{...o.accessToken,accessKeyId:l,secretAccessKey:w,sessionToken:g,expiresAt:F.toISOString()},refreshToken:C};return await this.saveToken(I),this.toCredentials(I.accessToken)}catch(i){if(i.name==="AccessDeniedException"){let w=i.error,g;switch(w){case"TOKEN_EXPIRED":g="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":g="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":g="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:g=`Failed to refresh token: ${String(i)}. Please re-authenticate using \`aws login\``}throw new f.CredentialsProviderError(g,{logger:this.logger,tryNextLink:!1})}if(new Date(o.accessToken.expiresAt).getTime()>Date.now())return this.logger?.warn?.(`Failed to refresh token: ${String(i)}. Using existing token until expiry.`),this.toCredentials(o.accessToken);throw new f.CredentialsProviderError(`Failed to refresh token: ${String(i)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let t=await E.readFile(e,"utf8"),s=JSON.parse(t),r=["accessToken","clientId","refreshToken","dpopKey"].filter((n)=>!s[n]);if(!s.accessToken?.accountId)r.push("accountId");if(r.length>0)throw new f.CredentialsProviderError(`Token validation failed, missing fields: ${r.join(", ")}`,{logger:this.logger,tryNextLink:!1});return s}catch(t){throw new f.CredentialsProviderError(`Failed to load token from ${e}: ${String(t)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let t=this.getTokenFilePath(),s=q(t);try{await E.mkdir(s,{recursive:!0})}catch(r){}await E.writeFile(t,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??P(B(),".aws","login","cache"),t=Buffer.from(this.loginSession,"utf8"),s=L("sha256").update(t).digest("hex");return P(e,`${s}.json`)}derToRawSignature(e){let t=2;if(e[t]!==2)throw Error("Invalid DER signature");t++;let s=e[t++],r=e.subarray(t,t+s);if(t+=s,e[t]!==2)throw Error("Invalid DER signature");t++;let n=e[t++],o=e.subarray(t,t+n);r=r[0]===0?r.subarray(1):r,o=o[0]===0?o.subarray(1):o;let c=Buffer.concat([Buffer.alloc(32-r.length),r]),h=Buffer.concat([Buffer.alloc(32-o.length),o]);return Buffer.concat([c,h])}createDPoPInterceptor(e){e.add((t)=>async(s)=>{if(A.HttpRequest.isInstance(s.request)){let r=s.request,n=`${r.protocol}//${r.hostname}${r.port?`:${r.port}`:""}${r.path}`,o=await this.generateDpop(r.method,n);r.headers={...r.headers,DPoP:o}}return t(s)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",t){let s=await this.loadToken();try{let r=O({key:s.dpopKey,format:"pem",type:"sec1"}),o=H(r).export({format:"der",type:"spki"}),c=-1;for(let l=0;l<o.length;l++)if(o[l]===4){c=l;break}let h=o.slice(c+1,c+33),y=o.slice(c+33,c+65),m={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:h.toString("base64url"),y:y.toString("base64url")}},T={jti:crypto.randomUUID(),htm:e,htu:t,iat:Math.floor(Date.now()/1000)},S=Buffer.from(JSON.stringify(m)).toString("base64url"),x=Buffer.from(JSON.stringify(T)).toString("base64url"),u=`${S}.${x}`,k=v("sha256",Buffer.from(u),r),i=this.derToRawSignature(k).toString("base64url");return`${u}.${i}`}catch(r){throw new f.CredentialsProviderError(`Failed to generate Dpop proof: ${r instanceof Error?r.message:String(r)}`,{logger:this.logger,tryNextLink:!1})}}}var U=(e)=>async({callerClientConfig:t}={})=>{e?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let s=await p.parseKnownFiles(e||{}),r=p.getProfileName({profile:e?.profile??t?.profile}),n=s[r];if(!n?.login_session)throw new p.CredentialsProviderError(`Profile ${r} does not contain login_session.`,{tryNextLink:!0,logger:e?.logger});let c=await new d(n,e,t).loadCredentials();return N.setCredentialFeature(c,"CREDENTIALS_LOGIN","AD")};export{U as fromLoginCredentials};
package/chunk-jn0dhvkp.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{ks,tt,Pt}from"./chunk-1pgj58dw.js";import{rt}from"./chunk-8hxsap9d.js";import{lt,Ne,W}from"./chunk-7emc0sy7.js";import{Re,oe,_,Ie,ie,wt,K}from"./chunk-sykaz5bf.js";import{r}from"./chunk-xjcg6cxc.js";var Se=r(function(Dt){var{SignatureV4:kt,signatureV4aContainer:de}=ks(),O={CrtSignerV4:null},ge="X-Amz-S3session-Token".toLowerCase();class J extends kt{async signWithCredentials(e,t,s){let o=pe(t);e.headers[ge]=t.sessionToken;let n=this;return he(n,o),n.signRequest(e,s??{})}async presignWithCredentials(e,t,s){let o=pe(t);return delete e.headers[ge],e.headers["X-Amz-S3session-Token"]=t.sessionToken,e.query=e.query??{},e.query["X-Amz-S3session-Token"]=t.sessionToken,he(this,o),this.presign(e,s)}}function pe(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function he(e,t){let s=e.credentialProvider;e.credentialProvider=()=>(e.credentialProvider=s,Promise.resolve(t))}class me{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof O.CrtSignerV4==="function")return"crt";else if(typeof de.SignatureV4a==="function")return"js";return"none"}constructor(e){this.sigv4Signer=new J(e),this.signerOptions=e}async sign(e,t={}){if(t.signingRegion==="*")return this.getSigv4aSigner().sign(e,t);return this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,s={}){if(s.signingRegion==="*"){let o=this.getSigv4aSigner(),n=O.CrtSignerV4;if(n&&o instanceof n)return o.signWithCredentials(e,t,s);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,s)}async presign(e,t={}){if(t.signingRegion==="*"){let s=this.getSigv4aSigner(),o=O.CrtSignerV4;if(o&&s instanceof o)return s.presign(e,t);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,s={}){if(s.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,t,s)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=O.CrtSignerV4,t=de.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!t)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e==="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==="function")this.sigv4aSigner=new t({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!t||typeof t!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}}Dt.SignatureV4MultiRegion=me;Dt.SignatureV4SignWithCredentials=J;Dt.signatureV4CrtContainer=O});var{awsEndpointFunctions:Nt,emitWarningIfUnsupportedVersion:Wt,createDefaultUserAgentProvider:Ht,NODE_APP_ID_CONFIG_OPTIONS:Ut,getAwsRegionExtensionConfiguration:qt,resolveAwsRegionExtensionConfiguration:Ft,resolveUserAgentConfig:Vt,resolveHostHeaderConfig:Lt,getUserAgentPlugin:Kt,getHostHeaderPlugin:Mt,getLoggerPlugin:jt,getRecursionDetectionPlugin:zt,setCredentialFeature:ee,stsRegionDefaultResolver:Gt}=W(),{NoAuthSigner:_e,getHttpAuthSchemeEndpointRuleSetPlugin:Yt,DefaultIdentityProviderConfig:Qt,getHttpSigningPlugin:Bt}=Ne(),{normalizeProvider:xe,getSmithyContext:Te,ServiceException:Jt,NoOpLogger:Xt,emitWarningIfUnsupportedVersion:Zt,loadConfigsForDefaultMode:es,getDefaultExtensionConfiguration:ts,resolveDefaultRuntimeConfig:ss,Client:ke,makeBuilder:ns,createAggregatedClient:os}=oe(),{Command:rs}=oe();var ao=rs,co=ke;var{resolveDefaultsModeConfig:is,loadConfig:y,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:as,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:cs,NODE_REGION_CONFIG_OPTIONS:us,NODE_REGION_CONFIG_FILE_OPTIONS:ls,resolveRegionConfig:ds}=_(),{BinaryDecisionDiagram:gs,EndpointCache:ps,decideEndpoint:hs,customEndpointFunctions:ms,resolveParams:Ss,resolveEndpointConfig:vs,getEndpointPlugin:fs}=Ie(),{parseUrl:Ps,getHttpHandlerExtensionConfiguration:ys,resolveHttpHandlerRuntimeConfig:Es,getContentLengthPlugin:As}=K(),{DEFAULT_RETRY_MODE:Is,NODE_RETRY_MODE_CONFIG_OPTIONS:ws,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:Rs,resolveRetryConfig:Cs,getRetryPlugin:_s}=lt(),{TypeRegistry:De,getSchemaSerdePlugin:xs}=Re(),{resolveAwsSdkSigV4Config:Ts,resolveAwsSdkSigV4AConfig:Ds,AwsSdkSigV4Signer:be,AwsSdkSigV4ASigner:Oe,NODE_SIGV4A_CONFIG_OPTIONS:bs,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:Os}=tt(),{SignatureV4MultiRegion:$e}=Se(),{toUtf8:$s,fromUtf8:Ns,toBase64:Ws,fromBase64:Hs,calculateBodyLength:Us}=ie(),{streamCollector:qs,NodeHttpHandler:Fs}=rt(),{AwsQueryProtocol:Vs}=Pt(),{Sha256:Ls}=wt(),b="ref",I=-1,N=!0,ve="isSet",We="PartitionResult",H="booleanEquals",l="stringEquals",X="getAttr",fe="us-east-1",Pe="sigv4",ye="sts",Ee="https://sts.{Region}.{PartitionResult#dnsSuffix}",Ae={[b]:"Endpoint"},d={[b]:"Region"},Z={[b]:We},D={},we=[d],Ce={conditions:[[ve,[Ae]],[ve,we],["aws.partition",we,We],[H,[{[b]:"UseFIPS"},N]],[H,[{[b]:"UseDualStack"},N]],[l,[d,"aws-global"]],[H,[{[b]:"UseGlobalEndpoint"},N]],[l,[d,"eu-central-1"]],[H,[{fn:X,argv:[Z,"supportsDualStack"]},N]],[H,[{fn:X,argv:[Z,"supportsFIPS"]},N]],[l,[d,"ap-south-1"]],[l,[d,"eu-north-1"]],[l,[d,"eu-west-1"]],[l,[d,"eu-west-2"]],[l,[d,"eu-west-3"]],[l,[d,"sa-east-1"]],[l,[d,fe]],[l,[d,"us-east-2"]],[l,[d,"us-west-2"]],[l,[d,"us-west-1"]],[l,[d,"ca-central-1"]],[l,[d,"ap-southeast-1"]],[l,[d,"ap-northeast-1"]],[l,[d,"ap-southeast-2"]],[l,[{fn:X,argv:[Z,"name"]},"aws-us-gov"]]],results:[[I],["https://sts.amazonaws.com",{authSchemes:[{name:Pe,signingName:ye,signingRegion:fe}]}],[Ee,{authSchemes:[{name:Pe,signingName:ye,signingRegion:"{Region}"}]}],[I,"Invalid Configuration: FIPS and custom endpoint are not supported"],[I,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Ae,D],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",D],[I,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",D],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",D],[I,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",D],[I,"DualStack is enabled but this partition does not support DualStack"],[Ee,D],[I,"Invalid Configuration: Missing Region"]]},Ks=2,i=1e8,Ms=new Int32Array([-1,1,-1,0,30,3,1,4,i+14,2,5,i+14,3,25,6,4,24,7,5,i+1,8,6,9,i+13,7,i+1,10,10,i+1,11,11,i+1,12,12,i+1,13,13,i+1,14,14,i+1,15,15,i+1,16,16,i+1,17,17,i+1,18,18,i+1,19,19,i+1,20,20,i+1,21,21,i+1,22,22,i+1,23,23,i+1,i+2,8,i+11,i+12,4,28,26,9,27,i+10,24,i+8,i+9,8,29,i+7,9,i+6,i+7,3,i+3,31,4,i+4,i+5]),js=gs.from(Ms,Ks,Ce.conditions,Ce.results),zs=new ps({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),He=(e,t={})=>zs.get(e,()=>hs(js,{endpointParams:e,logger:t.logger}));ms.aws=Nt;var Gs=(e)=>async(t,s,o)=>{if(!o)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let n=await e(t,s,o),u=Te(s)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!u)throw Error(`getEndpointParameterInstructions() is not defined on '${s.commandName}'`);let a=await Ss(o,{getEndpointParameterInstructions:u},t);return Object.assign(n,a)},Ys=async(e,t,s)=>({operation:Te(t).operation,region:await xe(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),Qs=Gs(Ys);function Ue(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,s)=>({signingProperties:{config:t,context:s}})}}function te(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,s)=>({signingProperties:{config:t,context:s}})}}function qe(e){return{schemeId:"smithy.api#noAuth"}}var Bs=(e,t,s)=>(n)=>{let a=e(n).properties?.authSchemes;if(!a)return t(n);let g=[];for(let S of a){let{name:p,properties:v={},...A}=S,f=p.toLowerCase();if(p!==f)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${p}' to '${f}'`);let m;if(f==="sigv4a"){m="aws.auth#sigv4a";let Q=a.find((B)=>{let le=B.name.toLowerCase();return le!=="sigv4a"&&le.startsWith("sigv4")});if($e.sigv4aDependency()==="none"&&Q)continue}else if(f.startsWith("sigv4"))m="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${f}'`);let k=s[m];if(!k)throw Error(`Could not find HttpAuthOption create function for '${m}'`);let P=k(n);P.schemeId=m,P.signingProperties={...P.signingProperties||{},...A,...v},g.push(P)}return g},Js=(e)=>{let t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(qe()),t.push(te(e));break}default:t.push(Ue(e)),t.push(te(e))}return t},Xs=Bs(He,Js,{"aws.auth#sigv4":Ue,"aws.auth#sigv4a":te,"smithy.api#noAuth":qe}),Zs=(e)=>{let t=Ts(e),s=Ds(t);return Object.assign(s,{authSchemePreference:xe(e.authSchemePreference??[])})},en=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"}),tn={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},sn="3.997.47",nn={version:sn};class h extends Jt{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sts#STSServiceException";constructor(e){super(e);Object.setPrototypeOf(this,h.prototype)}}class q extends h{static shapeId="com.amazonaws.sts#ExpiredTokenException";name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,q.prototype)}}class F extends h{static shapeId="com.amazonaws.sts#MalformedPolicyDocumentException";name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});Object.setPrototypeOf(this,F.prototype)}}class V extends h{static shapeId="com.amazonaws.sts#PackedPolicyTooLargeException";name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});Object.setPrototypeOf(this,V.prototype)}}class L extends h{static shapeId="com.amazonaws.sts#RegionDisabledException";name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});Object.setPrototypeOf(this,L.prototype)}}class M extends h{static shapeId="com.amazonaws.sts#IDPRejectedClaimException";name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});Object.setPrototypeOf(this,M.prototype)}}class j extends h{static shapeId="com.amazonaws.sts#InvalidIdentityTokenException";name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});Object.setPrototypeOf(this,j.prototype)}}class z extends h{static shapeId="com.amazonaws.sts#IDPCommunicationErrorException";name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});Object.setPrototypeOf(this,z.prototype)}}var on="Arn",rn="AccessKeyId",an="AssumeRole",cn="AssumedRoleId",un="AssumeRoleRequest",ln="AssumeRoleResponse",se="AssumedRoleUser",dn="AssumeRoleWithWebIdentity",gn="AssumeRoleWithWebIdentityRequest",pn="AssumeRoleWithWebIdentityResponse",hn="Audience",ne="Credentials",mn="ContextAssertion",Fe="DurationSeconds",Sn="Expiration",vn="ExternalId",fn="ExpiredTokenException",Pn="IDPCommunicationErrorException",yn="IDPRejectedClaimException",En="InvalidIdentityTokenException",An="Key",In="MalformedPolicyDocumentException",Ve="MinimumSessionTokenSize",Le="Policy",Ke="PolicyArns",wn="ProviderArn",Rn="ProvidedContexts",Cn="ProvidedContextsListType",_n="ProvidedContext",xn="PolicyDescriptorType",Tn="ProviderId",Me="PackedPolicySize",kn="PackedPolicyTooLargeException",Dn="Provider",je="RoleArn",bn="RegionDisabledException",ze="RoleSessionName",On="SecretAccessKey",$n="SubjectFromWebIdentityToken",re="SourceIdentity",Nn="SerialNumber",Wn="SessionToken",Ge="SessionTokenSize",Ye="SessionTokenUtilization",Hn="Tags",Un="TokenCode",qn="TransitiveTagKeys",Fn="Tag",Vn="Value",Ln="WebIdentityToken",Kn="arn",Mn="accessKeySecretType",w="awsQueryError",R="client",jn="clientTokenType",C="error",x="httpError",T="message",zn="policyDescriptorListType",Qe="smithy.ts.sdk.synthetic.com.amazonaws.sts",Gn="tagListType",c="com.amazonaws.sts",Be=new De(Qe),Je=[-3,Qe,"STSServiceException",0,[],[]];Be.registerError(Je,h);var E=new De(c),Xe=[-3,c,fn,{[w]:["ExpiredTokenException",400],[C]:R,[x]:400},[T],[0]];E.registerError(Xe,q);var Ze=[-3,c,Pn,{[w]:["IDPCommunicationError",400],[C]:R,[x]:400},[T],[0]];E.registerError(Ze,z);var et=[-3,c,yn,{[w]:["IDPRejectedClaim",403],[C]:R,[x]:403},[T],[0]];E.registerError(et,M);var st=[-3,c,En,{[w]:["InvalidIdentityToken",400],[C]:R,[x]:400},[T],[0]];E.registerError(st,j);var nt=[-3,c,In,{[w]:["MalformedPolicyDocument",400],[C]:R,[x]:400},[T],[0]];E.registerError(nt,F);var ot=[-3,c,kn,{[w]:["PackedPolicyTooLarge",400],[C]:R,[x]:400},[T],[0]];E.registerError(ot,V);var it=[-3,c,bn,{[w]:["RegionDisabledException",403],[C]:R,[x]:403},[T],[0]];E.registerError(it,L);var at=[Be,E],Yn=[0,c,Mn,8,0],Qn=[0,c,jn,8,0],ae=[3,c,se,0,[cn,on],[0,0],2],ct=[3,c,un,0,[je,ze,Ke,Le,Fe,Hn,qn,vn,Nn,Un,re,Rn,Ve],[0,0,()=>St,0,1,()=>Jn,64,0,0,0,0,()=>Bn,1],2],ut=[3,c,ln,0,[ne,se,Me,re,Ye,Ge],[[()=>ce,0],()=>ae,1,0,1,1]],dt=[3,c,gn,0,[je,ze,Ln,Tn,Ke,Le,Fe,Ve],[0,0,[()=>Qn,0],0,()=>St,0,1,1],3],gt=[3,c,pn,0,[ne,$n,se,Me,Dn,hn,re,Ye,Ge],[[()=>ce,0],0,()=>ae,1,0,0,0,1,1]],ce=[3,c,ne,0,[rn,On,Wn,Sn],[0,[()=>Yn,0],0,4],4],pt=[3,c,xn,0,[Kn],[0]],ht=[3,c,_n,0,[wn,mn],[0,0]],mt=[3,c,Fn,0,[An,Vn],[0,0],2],St=[1,c,zn,0,()=>pt],Bn=[1,c,Cn,0,()=>ht],Jn=[1,c,Gn,0,()=>mt],vt=[9,c,an,0,()=>ct,()=>ut],ft=[9,c,dn,0,()=>dt,()=>gt],Xn=(e)=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??Hs,base64Encoder:e?.base64Encoder??Ws,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??He,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Xs,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new be},{schemeId:"aws.auth#sigv4a",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new Oe},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new _e}],logger:e?.logger??new Xt,protocol:e?.protocol??Vs,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:at,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",sha256:e?.sha256??Ls,signerConstructor:e?.signerConstructor??$e,urlParser:e?.urlParser??Ps,utf8Decoder:e?.utf8Decoder??Ns,utf8Encoder:e?.utf8Encoder??$s}),Zn=(e)=>{Zt(process.version);let t=is(e),s=()=>t().then(es),o=Xn(e);Wt(process.version);let n={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??y(Os,n),bodyLengthChecker:e?.bodyLengthChecker??Us,defaultUserAgentProvider:e?.defaultUserAgentProvider??Ht({serviceId:o.serviceId,clientVersion:nn.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(u)=>u.getIdentityProvider("aws.auth#sigv4")||(async(a)=>await e.credentialDefaultProvider(a?.__config||{})()),signer:new be},{schemeId:"aws.auth#sigv4a",identityProvider:(u)=>u.getIdentityProvider("aws.auth#sigv4a"),signer:new Oe},{schemeId:"smithy.api#noAuth",identityProvider:(u)=>u.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new _e}],maxAttempts:e?.maxAttempts??y(Rs,e),region:e?.region??y(us,{...ls,...n}),requestHandler:Fs.create(e?.requestHandler??s),retryMode:e?.retryMode??y({...ws,default:async()=>(await s()).retryMode||Is},e),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??y(bs,n),streamCollector:e?.streamCollector??qs,useDualstackEndpoint:e?.useDualstackEndpoint??y(cs,n),useFipsEndpoint:e?.useFipsEndpoint??y(as,n),userAgentAppId:e?.userAgentAppId??y(Ut,n)}},eo=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:s,credentials:o}=e;return{setHttpAuthScheme(n){let u=t.findIndex((a)=>a.schemeId===n.schemeId);if(u===-1)t.push(n);else t.splice(u,1,n)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(n){s=n},httpAuthSchemeProvider(){return s},setCredentials(n){o=n},credentials(){return o}}},to=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),so=(e,t)=>{let s=Object.assign(qt(e),ts(e),ys(e),eo(e));return t.forEach((o)=>o.configure(s)),Object.assign(e,Ft(s),ss(s),Es(s),to(s))};class U extends ke{config;constructor(...[e]){let t=Zn(e||{});super(t);this.initConfig=t;let s=en(t),o=Vt(s),n=Cs(o),u=ds(n),a=Lt(u),g=vs(a),S=Zs(g),p=so(S,e?.extensions||[]);this.config=p,this.middlewareStack.use(xs(this.config)),this.middlewareStack.use(Kt(this.config)),this.middlewareStack.use(_s(this.config)),this.middlewareStack.use(As(this.config)),this.middlewareStack.use(Mt(this.config)),this.middlewareStack.use(jt(this.config)),this.middlewareStack.use(zt(this.config)),this.middlewareStack.use(Yt(this.config,{httpAuthSchemeParametersProvider:Qs,identityProviderConfigProvider:async(v)=>new Qt({"aws.auth#sigv4":v.credentials,"aws.auth#sigv4a":v.credentials})})),this.middlewareStack.use(Bt(this.config))}destroy(){super.destroy()}}var yt=ns(tn,"AWSSecurityTokenServiceV20110615","STSClient",fs),Et={},At=(e,t,s,o)=>[];class G extends yt(Et,At,"AssumeRole",vt){}class Y extends yt(Et,At,"AssumeRoleWithWebIdentity",ft){}var no={AssumeRoleCommand:G,AssumeRoleWithWebIdentityCommand:Y};class ue extends U{}os(no,ue);var It=(e)=>{if(typeof e?.Arn==="string"){let t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}return},Rt=async(e,t,s,o={})=>{let n=typeof e==="function"?await e():e,u=typeof t==="function"?await t():t,a="",g=n??u??(a=await Gt(o)());return s?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${n} (credential provider clientConfig)`,`${u} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),g},oo=(e,t)=>{let s,o;return async(n,u)=>{if(o=n,!s){let{logger:v=e?.parentClientConfig?.logger,profile:A=e?.parentClientConfig?.profile,region:f,requestHandler:m=e?.parentClientConfig?.requestHandler,credentialProviderLogger:k,userAgentAppId:P=e?.parentClientConfig?.userAgentAppId}=e,Q=await Rt(f,e?.parentClientConfig?.region,k,{logger:v,profile:A}),B=!Ct(m);s=new t({...e,userAgentAppId:P,profile:A,credentialDefaultProvider:()=>async()=>o,region:Q,requestHandler:B?m:void 0,logger:v})}let{Credentials:a,AssumedRoleUser:g}=await s.send(new G(u));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${u.RoleArn}`);let S=It(g),p={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...S&&{accountId:S}};return ee(p,"CREDENTIALS_STS_ASSUME_ROLE","i"),p}},ro=(e,t)=>{let s;return async(o)=>{if(!s){let{logger:S=e?.parentClientConfig?.logger,profile:p=e?.parentClientConfig?.profile,region:v,requestHandler:A=e?.parentClientConfig?.requestHandler,credentialProviderLogger:f,userAgentAppId:m=e?.parentClientConfig?.userAgentAppId}=e,k=await Rt(v,e?.parentClientConfig?.region,f,{logger:S,profile:p}),P=!Ct(A);s=new t({...e,userAgentAppId:m,profile:p,region:k,requestHandler:P?A:void 0,logger:S})}let{Credentials:n,AssumedRoleUser:u}=await s.send(new Y(o));if(!n||!n.AccessKeyId||!n.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${o.RoleArn}`);let a=It(u),g={accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,sessionToken:n.SessionToken,expiration:n.Expiration,...n.CredentialScope&&{credentialScope:n.CredentialScope},...a&&{accountId:a}};if(a)ee(g,"RESOLVED_ACCOUNT_ID","T");return ee(g,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),g}},Ct=(e)=>e?.metadata?.handlerProtocol==="h2",_t=(e,t)=>{if(!t)return e;else return class extends e{constructor(o){super(o);for(let n of t)this.middlewareStack.use(n)}}},xt=(e={},t)=>oo(e,_t(U,t)),Tt=(e={},t)=>ro(e,_t(U,t)),io=(e)=>(t)=>e({roleAssumer:xt(t),roleAssumerWithWebIdentity:Tt(t),...t});var uo=vt,lo=G,go=ct,po=ut,ho=ft,mo=Y,So=dt,vo=gt,fo=ae,Po=ce,yo=q,Eo=Xe,Ao=z,Io=Ze,wo=M,Ro=et,Co=j,_o=st,xo=F,To=nt,ko=V,Do=ot,bo=pt,Oo=ht,$o=L,No=it,Wo=ue,Ho=U,Uo=h,qo=Je,Fo=mt,Vo=io,Lo=at,Ko=xt,Mo=Tt;export{ao as $Command,co as __Client,uo as AssumeRole$,lo as AssumeRoleCommand,go as AssumeRoleRequest$,po as AssumeRoleResponse$,ho as AssumeRoleWithWebIdentity$,mo as AssumeRoleWithWebIdentityCommand,So as AssumeRoleWithWebIdentityRequest$,vo as AssumeRoleWithWebIdentityResponse$,fo as AssumedRoleUser$,Po as Credentials$,yo as ExpiredTokenException,Eo as ExpiredTokenException$,Ao as IDPCommunicationErrorException,Io as IDPCommunicationErrorException$,wo as IDPRejectedClaimException,Ro as IDPRejectedClaimException$,Co as InvalidIdentityTokenException,_o as InvalidIdentityTokenException$,xo as MalformedPolicyDocumentException,To as MalformedPolicyDocumentException$,ko as PackedPolicyTooLargeException,Do as PackedPolicyTooLargeException$,bo as PolicyDescriptorType$,Oo as ProvidedContext$,$o as RegionDisabledException,No as RegionDisabledException$,Wo as STS,Ho as STSClient,Uo as STSServiceException,qo as STSServiceException$,Fo as Tag$,Vo as decorateDefaultCredentialProvider,Lo as errorTypeRegistries,Ko as getDefaultRoleAssumer,Mo as getDefaultRoleAssumerWithWebIdentity};
package/chunk-k9dw37w2.js DELETED
@@ -1,3 +0,0 @@
1
- // @bun
2
- function a(e,r){return Object.fromEntries(Object.values(e).flatMap((n)=>Object.values(n)).filter((n)=>n.type===r).map((n)=>[n.id,n]))}function h(e,r){return a(r,"chat")}function f(e,r){return a(r,"image")}function g(e,r){return a(r,"classifier")}var c=function(e,r){if(typeof e==="string"&&/^\.\.?\//.test(e))return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,p,i,u,s){return p?r?".jsx":".js":i&&(!u||!s)?n:i+u+"."+s.toLowerCase()+"js"});return e},o=(e)=>{let r=import.meta.url.endsWith(".js")?e.replace(/\.ts$/,".js"):e;return import(c(r))},t;function na(e){t=e}var oa=async()=>{if(t)return t.anthropic();return(await o("./anthropic.ts")).anthropicOAuth},ia=async()=>{if(t)return t.openaiCodex();return(await o("./openai-codex.ts")).openaiCodexOAuth},sa=async()=>{if(t)return t.openaiChatGPT();return(await o("./openai-chatgpt.ts")).openaiChatGPTOAuth},aa=async()=>{if(t)return t.githubCopilot();return(await o("./github-copilot.ts")).githubCopilotOAuth},la=async()=>{if(t)return t.openrouter();return(await o("./openrouter.ts")).openRouterOAuth},ca=async()=>{if(t)return t.kimiCoding();return(await o("./kimi-coding.ts")).kimiCodingOAuth},ua=async()=>{if(t)return t.meta();return(await o("./meta.ts")).metaOAuth},pa=async()=>{if(t)return t.xai();return(await o("./xai.ts")).xaiOAuth},da=async(e)=>{if(t)return t.radius(e);return(await o("./radius.ts")).createRadiusOAuth(e)};
3
- export{h,f,g,na,oa,ia,sa,aa,la,ca,ua,pa,da};
package/chunk-m6bm0739.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{bo}from"./chunk-2nd8hvf3.js";import"./chunk-fkjjadt4.js";import"./chunk-9mt2k1a7.js";import{xn,qs}from"./chunk-z58jafcm.js";import{It,xt,Mt}from"./chunk-6pqsx156.js";import{pt}from"./chunk-aq6xkc1w.js";import{ce}from"./chunk-54zpktrq.js";import{ge}from"./chunk-2h2mvrw2.js";import{Q,ee}from"./chunk-fgpzy3fe.js";import{Fe,Ot,te}from"./chunk-b6rvzkxg.js";import{J}from"./chunk-eg161ep9.js";import{ue,Pe,Ce,Y}from"./chunk-9sq7yxh7.js";import{j}from"./chunk-vpvznxf4.js";var g=new Set(["openai","openai-codex","opencode","azure"]),h=16;function y(r){return ee(Q(r),"Azure OpenAI API error")}var A=(r,a,e)=>{let t=new j,i=ue(a,r.compat?.supportsMidConvoSystemMessages);return(async()=>{let n=xn(r,e),s={role:"assistant",content:[],api:"azure-openai-responses",provider:r.provider,model:r.id,usage:{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},stopReason:"pending",timestamp:Date.now()};try{let p=e?.apiKey;if(!p)throw Error(`No API key for provider: ${r.provider}`);let c=R(r,p,e),o=Fe(Pe(i.messages),r.compat?.supportsOpenAIGrammarTools??!1),m=T(r,i,e,n,o),u=await e?.onPayload?.(m,r);if(u!==void 0)m=u;let f={...e?.signal?{signal:e.signal}:{},...e?.timeoutMs!==void 0?{timeout:e.timeoutMs}:{},maxRetries:0},{data:d,response:l}=await ge(()=>c.responses.create(m,f).withResponse(),{maxRetries:e?.maxRetries,maxRetryDelayMs:e?.maxRetryDelayMs,signal:e?.signal});if(await e?.onResponse?.({status:l.status,headers:J(l.headers)},r),t.push({type:"start",partial:s}),await Mt(d,s,t,r,{onProviderStreamEvent:e?.onProviderStreamEvent,grammarToolInputProperties:o}),e?.signal?.aborted)throw Error("Request was aborted");if(s.stopReason==="pending")throw Error("Azure OpenAI Responses stream ended without a stop reason");if(s.stopReason==="aborted"||s.stopReason==="error")throw Error(s.errorMessage||"An unknown error occurred");t.push({type:"done",reason:s.stopReason,message:s}),t.end()}catch(p){for(let c of s.content)delete c.index,delete c.partialJson,delete c.customInput;s.stopReason=e?.signal?.aborted?"aborted":"error",s.errorMessage=y(p),t.push({type:"error",reason:s.stopReason,error:s}),t.end()}})(),t},z=(r,a,e)=>{let t=e?.apiKey;if(!t)throw Error(`No API key for provider: ${r.provider}`);let i={...te(r,a,e,t),toolChoice:e?.toolChoice},n=e?.reasoning?Y(r,e.reasoning):void 0;return A(r,a,{...i,reasoningEffort:n==="off"?void 0:n})};function R(r,a,e){let t={"User-Agent":ce(),...r.headers};if(e?.headers)Object.assign(t,e.headers);let{baseUrl:i,apiVersion:n}=qs(r,e);return new bo({apiKey:a,apiVersion:n,dangerouslyAllowBrowser:!0,fetch:e?.fetch,defaultHeaders:t,baseURL:i})}function T(r,a,e,t,i=Fe(Pe(a.messages),r.compat?.supportsOpenAIGrammarTools??!1)){let n=r.compat?.supportsAdditionalTools??!1,s=r.compat?.supportsToolSearch??!1,p=Ce(a.messages,n||s),c=It(r,a,g,{grammarToolInputProperties:i,supportsMidConvoSystemMessages:r.compat?.supportsMidConvoSystemMessages??!1,supportsAdditionalTools:n,supportsToolSearch:s,toolOptions:{supportsStrictMode:r.compat?.supportsStrictMode??!0,supportsOpenAIGrammarTools:r.compat?.supportsOpenAIGrammarTools??!1}}),o={model:t,input:c,stream:!0,prompt_cache_key:pt(e?.sessionId),store:!1};if(e?.maxTokens)o.max_output_tokens=Math.max(e.maxTokens,h);if(e?.temperature!==void 0)o.temperature=e?.temperature;if(p.requestTools.length>0)o.tools=xt(p.requestTools,{supportsStrictMode:r.compat?.supportsStrictMode??!0,supportsOpenAIGrammarTools:r.compat?.supportsOpenAIGrammarTools??!1});if(e?.toolChoice!==void 0)o.tool_choice=e.toolChoice;let m=e?.reasoningEffort??(e?.reasoningSummary?"medium":void 0);if(r.reasoning){if(m){let f=e?.reasoningEffort?r.thinkingLevelMap?.[e.reasoningEffort]??e.reasoningEffort:m;o.reasoning={effort:f,summary:e?.reasoningSummary||"auto"},o.include=["reasoning.encrypted_content"]}else if(r.thinkingLevelMap?.off!==null)o.reasoning={effort:r.thinkingLevelMap?.off??"none"}}let u=Ot(r,m??"off",e?.samplingParams);if(u)Object.assign(o,u);return o}export{A as stream,z as streamSimple};
package/chunk-mkfdzt82.js DELETED
@@ -1,2 +0,0 @@
1
- // @bun
2
- import{Dn,Nn,zo}from"./chunk-wkvrtjtc.js";export{Dn as ENV_KEY,Nn as ENV_SECRET,zo as fromEnv};
package/chunk-nbm1tqvg.js DELETED
@@ -1,3 +0,0 @@
1
- // @bun
2
- var f=new Set;function fi(r){return f.add(r),()=>{f.delete(r)}}function Wa(r){let t=[];for(let s of f)try{s(r)}catch(e){t.push(e)}if(t.length>0)throw AggregateError(t,"Failed to cleanup session resources")}var a=(1n<<41n)-1n,u=-1,n;function Yn(r){let t=r??Date.now();if(!Number.isInteger(t)||t<0||t>281474976710655)throw RangeError("UUIDv7 timestamp must be an integer between 0 and 281474976710655");let s=r===void 0?Math.max(t,u):r;if(r===void 0)u=s;let e=new Uint8Array(16);if(globalThis.crypto.getRandomValues(e),n===void 0)n=BigInt(e[1])<<32n|BigInt(e[2])<<24n|BigInt(e[3])<<16n|BigInt(e[4])<<8n|BigInt(e[5]);else{if(n===a)throw RangeError("UUIDv7 generator sequence exhausted");n++}let c=BigInt(s);for(let o=5;o>=0;o--)e[o]=Number(c>>BigInt((5-o)*8))&255;e[6]=112|Number(n>>37n&0x0fn),e[7]=Number(n>>29n&0xffn),e[8]=128|Number(n>>23n&0x3fn),e[9]=Number(n>>15n&0xffn),e[10]=Number(n>>7n&0xffn),e[11]=Number((n&0x7fn)<<1n)|e[11]&1;let i=Array.from(e,(o)=>o.toString(16).padStart(2,"0"));return`${i.slice(0,4).join("")}-${i.slice(4,6).join("")}-${i.slice(6,8).join("")}-${i.slice(8,10).join("")}-${i.slice(10).join("")}`}
3
- export{fi,Wa,Yn};