@bkm016/basalt 0.1.34 → 0.1.35

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 (1004) hide show
  1. package/README.md +1 -0
  2. package/chunk-10y5hvt2.js +2 -0
  3. package/chunk-22k2be3e.js +13 -0
  4. package/chunk-28hye007.js +2 -0
  5. package/chunk-2fmsw1c6.js +5 -0
  6. package/chunk-2xj51v3m.js +3 -0
  7. package/chunk-3x0wm92n.js +3 -0
  8. package/chunk-4fgsqb1e.js +2 -0
  9. package/chunk-519eek65.js +39 -0
  10. package/chunk-5qa4dean.js +2 -0
  11. package/chunk-5x256mz8.js +2 -0
  12. package/chunk-6n01sefp.js +8 -0
  13. package/chunk-74xtmwpw.js +2 -0
  14. package/chunk-7mafj833.js +3 -0
  15. package/chunk-7v1sqn9k.js +59 -0
  16. package/chunk-8my52htr.js +3 -0
  17. package/chunk-8vh98e46.js +2 -0
  18. package/chunk-92mpgche.js +2 -0
  19. package/chunk-9vacevyf.js +3 -0
  20. package/chunk-9y44m27k.js +5 -0
  21. package/chunk-a5wv2shs.js +3 -0
  22. package/chunk-a78qhb4t.js +5 -0
  23. package/chunk-axsxx67j.js +3 -0
  24. package/chunk-b49fzzzn.js +2 -0
  25. package/chunk-bc8awbnt.js +2 -0
  26. package/chunk-crxs0n0r.js +3 -0
  27. package/chunk-csed8fsv.js +3 -0
  28. package/chunk-cspx3bz9.js +2 -0
  29. package/chunk-ctdtmwmd.js +63 -0
  30. package/chunk-d3xsmwbh.js +25 -0
  31. package/chunk-dvwgpsfz.js +3 -0
  32. package/chunk-dzd8k6bw.js +3 -0
  33. package/chunk-e2xqa46t.js +2 -0
  34. package/chunk-e41mpwx9.js +9 -0
  35. package/chunk-e5ccfgsk.js +3 -0
  36. package/chunk-e67wqhzh.js +12 -0
  37. package/chunk-emeb13nd.js +25 -0
  38. package/chunk-ers9s2c4.js +31 -0
  39. package/chunk-ezq0fnz6.js +3 -0
  40. package/chunk-ezqvx0hm.js +2 -0
  41. package/chunk-f10ca9ma.js +12 -0
  42. package/chunk-f72jhcp8.js +2 -0
  43. package/chunk-fjv41a8r.js +4155 -0
  44. package/chunk-gj0dhgbg.js +3 -0
  45. package/chunk-h0ggc6pv.js +60 -0
  46. package/chunk-hrt42rkh.js +4 -0
  47. package/chunk-j7m36g5w.js +3 -0
  48. package/chunk-jhn30hjp.js +2 -0
  49. package/chunk-ka41gq1g.js +16 -0
  50. package/chunk-kcp9byws.js +2 -0
  51. package/chunk-me72k64f.js +7 -0
  52. package/chunk-n4jemqf1.js +2 -0
  53. package/chunk-ndt4jvh1.js +3 -0
  54. package/chunk-pyxn4wqj.js +3 -0
  55. package/chunk-rajb3566.js +2 -0
  56. package/chunk-rbq2gsar.js +3 -0
  57. package/chunk-rd98e7kg.js +10 -0
  58. package/chunk-rm5dbbsg.js +3 -0
  59. package/chunk-rztw3tgx.js +3 -0
  60. package/chunk-s4mn41eh.js +8 -0
  61. package/chunk-s9p624fq.js +44 -0
  62. package/chunk-sawrte7v.js +3 -0
  63. package/chunk-sd8d792h.js +51 -0
  64. package/chunk-sgvmxx0d.js +2 -0
  65. package/chunk-sqbnt2t1.js +3 -0
  66. package/chunk-t2bvj735.js +2 -0
  67. package/chunk-t8tkamx6.js +2 -0
  68. package/chunk-tbehe5ky.js +18 -0
  69. package/chunk-tnay319j.js +3 -0
  70. package/chunk-tsha69rv.js +7 -0
  71. package/chunk-twqwer9t.js +5 -0
  72. package/chunk-vr2rtqeh.js +2 -0
  73. package/chunk-vr6eej6b.js +3 -0
  74. package/chunk-w41gswj8.js +3 -0
  75. package/chunk-x7tras0x.js +498 -0
  76. package/chunk-xakmebnm.js +10 -0
  77. package/chunk-xj453mny.js +286 -0
  78. package/chunk-xmrw19xj.js +2 -0
  79. package/chunk-xpj8fcjp.js +20 -0
  80. package/chunk-y218jsvc.js +3 -0
  81. package/chunk-y33fkh8m.js +2 -0
  82. package/chunk-z3h9ydyr.js +11 -0
  83. package/chunk-zc51vfhr.js +2 -0
  84. package/chunk-zm88mnds.js +7 -0
  85. package/chunk-zz9rj82y.js +3 -0
  86. package/compiled.js +10 -10
  87. package/package.json +1 -1
  88. package/ui-test-worker.js +41 -41
  89. package/web/chunk-0b5vh2pt.js +2 -0
  90. package/web/chunk-0b5vh2pt.js.br +0 -0
  91. package/web/chunk-0b5vh2pt.js.gz +0 -0
  92. package/web/chunk-0hkdqhkv.js +1 -0
  93. package/web/chunk-0hkdqhkv.js.br +0 -0
  94. package/web/chunk-0hkdqhkv.js.gz +0 -0
  95. package/web/chunk-0v7wrb32.js +2 -0
  96. package/web/chunk-0v7wrb32.js.br +0 -0
  97. package/web/chunk-0v7wrb32.js.gz +0 -0
  98. package/web/chunk-0x2fgw1m.js +1 -0
  99. package/web/chunk-0x2fgw1m.js.br +0 -0
  100. package/web/chunk-0x2fgw1m.js.gz +0 -0
  101. package/web/chunk-0xctxqvv.js +2 -0
  102. package/web/chunk-0xctxqvv.js.br +0 -0
  103. package/web/chunk-0xctxqvv.js.gz +0 -0
  104. package/web/chunk-0y9tf0rt.js +89 -0
  105. package/web/chunk-0y9tf0rt.js.br +0 -0
  106. package/web/chunk-0y9tf0rt.js.gz +0 -0
  107. package/web/chunk-0yrp0f6x.js +1 -0
  108. package/web/chunk-0yrp0f6x.js.br +0 -0
  109. package/web/chunk-0yrp0f6x.js.gz +0 -0
  110. package/web/chunk-10jk2pn9.js +1 -0
  111. package/web/chunk-10jk2pn9.js.br +0 -0
  112. package/web/chunk-10jk2pn9.js.gz +0 -0
  113. package/web/chunk-15ka35m9.js +2 -0
  114. package/web/chunk-15ka35m9.js.br +0 -0
  115. package/web/chunk-15ka35m9.js.gz +0 -0
  116. package/web/chunk-1700cges.js +1 -0
  117. package/web/chunk-1700cges.js.br +0 -0
  118. package/web/chunk-1700cges.js.gz +0 -0
  119. package/web/chunk-1apw6pnk.css +1 -0
  120. package/web/chunk-1apw6pnk.css.br +0 -0
  121. package/web/chunk-1apw6pnk.css.gz +0 -0
  122. package/web/chunk-1b005nqw.js +139 -0
  123. package/web/chunk-1b005nqw.js.br +0 -0
  124. package/web/chunk-1b005nqw.js.gz +0 -0
  125. package/web/chunk-1c9khgyt.js +1 -0
  126. package/web/chunk-1c9khgyt.js.br +2 -0
  127. package/web/chunk-1c9khgyt.js.gz +0 -0
  128. package/web/chunk-1pr20x9x.js +1 -0
  129. package/web/chunk-1pr20x9x.js.br +0 -0
  130. package/web/chunk-1pr20x9x.js.gz +0 -0
  131. package/web/chunk-1sjgdggk.js +7 -0
  132. package/web/chunk-1sjgdggk.js.br +0 -0
  133. package/web/chunk-1sjgdggk.js.gz +0 -0
  134. package/web/chunk-1tt5ympp.js +1 -0
  135. package/web/chunk-1tt5ympp.js.br +0 -0
  136. package/web/chunk-1tt5ympp.js.gz +0 -0
  137. package/web/chunk-29fpfs5q.js +1142 -0
  138. package/web/chunk-29fpfs5q.js.br +0 -0
  139. package/web/chunk-29fpfs5q.js.gz +0 -0
  140. package/web/chunk-2gr7vwnp.js +24 -0
  141. package/web/chunk-2gr7vwnp.js.br +0 -0
  142. package/web/chunk-2gr7vwnp.js.gz +0 -0
  143. package/web/chunk-2p84jch3.js +1 -0
  144. package/web/chunk-2p84jch3.js.br +0 -0
  145. package/web/chunk-2p84jch3.js.gz +0 -0
  146. package/web/chunk-2qs283mh.js +2 -0
  147. package/web/chunk-2qs283mh.js.br +0 -0
  148. package/web/chunk-2qs283mh.js.gz +0 -0
  149. package/web/chunk-3gf2d852.js +1 -0
  150. package/web/chunk-3gf2d852.js.br +0 -0
  151. package/web/chunk-3gf2d852.js.gz +0 -0
  152. package/web/chunk-3hswqkb0.js +1 -0
  153. package/web/chunk-3hswqkb0.js.br +0 -0
  154. package/web/chunk-3hswqkb0.js.gz +0 -0
  155. package/web/chunk-46yjp1x4.js +2 -0
  156. package/web/chunk-46yjp1x4.js.br +0 -0
  157. package/web/chunk-46yjp1x4.js.gz +0 -0
  158. package/web/chunk-4ezd1rkc.js +84 -0
  159. package/web/chunk-4ezd1rkc.js.br +0 -0
  160. package/web/chunk-4ezd1rkc.js.gz +0 -0
  161. package/web/chunk-4v9ar0sf.js +142 -0
  162. package/web/chunk-4v9ar0sf.js.br +0 -0
  163. package/web/chunk-4v9ar0sf.js.gz +0 -0
  164. package/web/chunk-51z88j1t.js +21 -0
  165. package/web/chunk-51z88j1t.js.br +0 -0
  166. package/web/chunk-51z88j1t.js.gz +0 -0
  167. package/web/chunk-5f5zcfga.js +1 -0
  168. package/web/chunk-5f5zcfga.js.br +2 -0
  169. package/web/chunk-5f5zcfga.js.gz +0 -0
  170. package/web/chunk-5n61r0rr.js +36 -0
  171. package/web/chunk-5n61r0rr.js.br +0 -0
  172. package/web/chunk-5n61r0rr.js.gz +0 -0
  173. package/web/chunk-5vcdeenv.js +2 -0
  174. package/web/chunk-5vcdeenv.js.br +0 -0
  175. package/web/chunk-5vcdeenv.js.gz +0 -0
  176. package/web/chunk-5y7ks8c3.js +30 -0
  177. package/web/chunk-5y7ks8c3.js.br +0 -0
  178. package/web/chunk-5y7ks8c3.js.gz +0 -0
  179. package/web/chunk-60v8qwec.js +2 -0
  180. package/web/chunk-60v8qwec.js.br +0 -0
  181. package/web/chunk-60v8qwec.js.gz +0 -0
  182. package/web/chunk-61m5t9wg.js +200 -0
  183. package/web/chunk-61m5t9wg.js.br +0 -0
  184. package/web/chunk-61m5t9wg.js.gz +0 -0
  185. package/web/chunk-669n37qf.js +70 -0
  186. package/web/chunk-669n37qf.js.br +0 -0
  187. package/web/chunk-669n37qf.js.gz +0 -0
  188. package/web/chunk-6kf1xwz9.js +2 -0
  189. package/web/chunk-6kf1xwz9.js.br +0 -0
  190. package/web/chunk-6kf1xwz9.js.gz +0 -0
  191. package/web/chunk-6rw72jmj.js +2 -0
  192. package/web/chunk-6rw72jmj.js.br +0 -0
  193. package/web/chunk-6rw72jmj.js.gz +0 -0
  194. package/web/chunk-6wyxxd9h.js +2 -0
  195. package/web/chunk-6wyxxd9h.js.br +0 -0
  196. package/web/chunk-6wyxxd9h.js.gz +0 -0
  197. package/web/chunk-77vj65dc.js +1 -0
  198. package/web/chunk-77vj65dc.js.br +0 -0
  199. package/web/chunk-77vj65dc.js.gz +0 -0
  200. package/web/chunk-8ktz0w1x.js +120 -0
  201. package/web/chunk-8ktz0w1x.js.br +0 -0
  202. package/web/chunk-8ktz0w1x.js.gz +0 -0
  203. package/web/chunk-8rcfpj02.js +2 -0
  204. package/web/chunk-8rcfpj02.js.br +0 -0
  205. package/web/chunk-8rcfpj02.js.gz +0 -0
  206. package/web/chunk-8x4s1c9g.js +1 -0
  207. package/web/chunk-8x4s1c9g.js.br +2 -0
  208. package/web/chunk-8x4s1c9g.js.gz +0 -0
  209. package/web/chunk-8zf4cywy.js +1 -0
  210. package/web/chunk-8zf4cywy.js.br +0 -0
  211. package/web/chunk-8zf4cywy.js.gz +0 -0
  212. package/web/chunk-a18y5dmf.js +2 -0
  213. package/web/chunk-a18y5dmf.js.br +0 -0
  214. package/web/chunk-a18y5dmf.js.gz +0 -0
  215. package/web/chunk-a36sfjyk.js +1 -0
  216. package/web/chunk-a36sfjyk.js.br +0 -0
  217. package/web/chunk-a36sfjyk.js.gz +0 -0
  218. package/web/chunk-aahzqxq7.js +34 -0
  219. package/web/chunk-aahzqxq7.js.br +0 -0
  220. package/web/chunk-aahzqxq7.js.gz +0 -0
  221. package/web/chunk-b2gtwatf.js +370 -0
  222. package/web/chunk-b2gtwatf.js.br +0 -0
  223. package/web/chunk-b2gtwatf.js.gz +0 -0
  224. package/web/chunk-bdp4y1zg.js +1 -0
  225. package/web/chunk-bdp4y1zg.js.br +0 -0
  226. package/web/chunk-bdp4y1zg.js.gz +0 -0
  227. package/web/chunk-be67vfx1.js +1 -0
  228. package/web/chunk-be67vfx1.js.br +0 -0
  229. package/web/chunk-be67vfx1.js.gz +0 -0
  230. package/web/chunk-bt6r78y9.js +106 -0
  231. package/web/chunk-bt6r78y9.js.br +0 -0
  232. package/web/chunk-bt6r78y9.js.gz +0 -0
  233. package/web/chunk-c97th1x0.js +1 -0
  234. package/web/chunk-c97th1x0.js.br +0 -0
  235. package/web/chunk-c97th1x0.js.gz +0 -0
  236. package/web/chunk-cfkp7taw.js +1 -0
  237. package/web/chunk-cfkp7taw.js.br +0 -0
  238. package/web/chunk-cfkp7taw.js.gz +0 -0
  239. package/web/chunk-cvf9k1fy.js +140 -0
  240. package/web/chunk-cvf9k1fy.js.br +0 -0
  241. package/web/chunk-cvf9k1fy.js.gz +0 -0
  242. package/web/chunk-d33n9fsr.js +1 -0
  243. package/web/chunk-d33n9fsr.js.br +1 -0
  244. package/web/chunk-d33n9fsr.js.gz +0 -0
  245. package/web/chunk-e667nxc9.js +1 -0
  246. package/web/chunk-e667nxc9.js.br +0 -0
  247. package/web/chunk-e667nxc9.js.gz +0 -0
  248. package/web/chunk-eejjsqm1.js +303 -0
  249. package/web/chunk-eejjsqm1.js.br +0 -0
  250. package/web/chunk-eejjsqm1.js.gz +0 -0
  251. package/web/chunk-eg3qjy7a.js +2 -0
  252. package/web/chunk-eg3qjy7a.js.br +0 -0
  253. package/web/chunk-eg3qjy7a.js.gz +0 -0
  254. package/web/chunk-embvjvdj.js +12 -0
  255. package/web/chunk-embvjvdj.js.br +0 -0
  256. package/web/chunk-embvjvdj.js.gz +0 -0
  257. package/web/chunk-etjfr79m.js +2 -0
  258. package/web/chunk-etjfr79m.js.br +0 -0
  259. package/web/chunk-etjfr79m.js.gz +0 -0
  260. package/web/chunk-ez36gbz3.js +7 -0
  261. package/web/chunk-ez36gbz3.js.br +0 -0
  262. package/web/chunk-ez36gbz3.js.gz +0 -0
  263. package/web/chunk-f0vcm8mk.js +214 -0
  264. package/web/chunk-f0vcm8mk.js.br +0 -0
  265. package/web/chunk-f0vcm8mk.js.gz +0 -0
  266. package/web/chunk-f3t3ey83.js +1 -0
  267. package/web/chunk-f3t3ey83.js.br +0 -0
  268. package/web/chunk-f3t3ey83.js.gz +0 -0
  269. package/web/chunk-f84sngcq.js +2 -0
  270. package/web/chunk-f84sngcq.js.br +0 -0
  271. package/web/chunk-f84sngcq.js.gz +0 -0
  272. package/web/chunk-f97hz4v5.js +99 -0
  273. package/web/chunk-f97hz4v5.js.br +0 -0
  274. package/web/chunk-f97hz4v5.js.gz +0 -0
  275. package/web/chunk-fnkp6s0g.js +1 -0
  276. package/web/chunk-fnkp6s0g.js.br +0 -0
  277. package/web/chunk-fnkp6s0g.js.gz +0 -0
  278. package/web/chunk-fpdyzyn8.js +16 -0
  279. package/web/chunk-fpdyzyn8.js.br +0 -0
  280. package/web/chunk-fpdyzyn8.js.gz +0 -0
  281. package/web/chunk-g43z223a.js +2 -0
  282. package/web/chunk-g43z223a.js.br +0 -0
  283. package/web/chunk-g43z223a.js.gz +0 -0
  284. package/web/chunk-gcm82aj8.js +1 -0
  285. package/web/chunk-gcm82aj8.js.br +0 -0
  286. package/web/chunk-gcm82aj8.js.gz +0 -0
  287. package/web/chunk-gffb3p4z.js +2 -0
  288. package/web/chunk-gffb3p4z.js.br +0 -0
  289. package/web/chunk-gffb3p4z.js.gz +0 -0
  290. package/web/chunk-gnzg3krt.js +1 -0
  291. package/web/chunk-gnzg3krt.js.br +0 -0
  292. package/web/chunk-gnzg3krt.js.gz +0 -0
  293. package/web/chunk-grqtpfdp.js +2 -0
  294. package/web/chunk-grqtpfdp.js.br +0 -0
  295. package/web/chunk-grqtpfdp.js.gz +0 -0
  296. package/web/chunk-gsm8spf8.js +1 -0
  297. package/web/chunk-gsm8spf8.js.br +0 -0
  298. package/web/chunk-gsm8spf8.js.gz +0 -0
  299. package/web/chunk-h6ygrnd0.js +38 -0
  300. package/web/chunk-h6ygrnd0.js.br +0 -0
  301. package/web/chunk-h6ygrnd0.js.gz +0 -0
  302. package/web/chunk-h8n9w5th.js +169 -0
  303. package/web/chunk-h8n9w5th.js.br +0 -0
  304. package/web/chunk-h8n9w5th.js.gz +0 -0
  305. package/web/chunk-hmdvm5pp.js +2 -0
  306. package/web/chunk-hmdvm5pp.js.br +0 -0
  307. package/web/chunk-hmdvm5pp.js.gz +0 -0
  308. package/web/chunk-hrntwvx8.js +1 -0
  309. package/web/chunk-hrntwvx8.js.br +0 -0
  310. package/web/chunk-hrntwvx8.js.gz +0 -0
  311. package/web/chunk-hrys15jh.js +324 -0
  312. package/web/chunk-hrys15jh.js.br +0 -0
  313. package/web/chunk-hrys15jh.js.gz +0 -0
  314. package/web/chunk-j0ng7zdq.js +41 -0
  315. package/web/chunk-j0ng7zdq.js.br +0 -0
  316. package/web/chunk-j0ng7zdq.js.gz +0 -0
  317. package/web/chunk-j2t5ycte.js +78 -0
  318. package/web/chunk-j2t5ycte.js.br +0 -0
  319. package/web/chunk-j2t5ycte.js.gz +0 -0
  320. package/web/chunk-jkjd1y3p.js +3 -0
  321. package/web/chunk-jkjd1y3p.js.br +0 -0
  322. package/web/chunk-jkjd1y3p.js.gz +0 -0
  323. package/web/chunk-jweahmyy.js +1 -0
  324. package/web/chunk-jweahmyy.js.br +0 -0
  325. package/web/chunk-jweahmyy.js.gz +0 -0
  326. package/web/chunk-k56v8k7n.js +4 -0
  327. package/web/chunk-k56v8k7n.js.br +0 -0
  328. package/web/chunk-k56v8k7n.js.gz +0 -0
  329. package/web/chunk-k59sk88z.js +7 -0
  330. package/web/chunk-k59sk88z.js.br +0 -0
  331. package/web/chunk-k59sk88z.js.gz +0 -0
  332. package/web/chunk-k75a0fpt.js +62 -0
  333. package/web/chunk-k75a0fpt.js.br +0 -0
  334. package/web/chunk-k75a0fpt.js.gz +0 -0
  335. package/web/chunk-kfx9q7xv.js +2 -0
  336. package/web/chunk-kfx9q7xv.js.br +0 -0
  337. package/web/chunk-kfx9q7xv.js.gz +0 -0
  338. package/web/chunk-ksp1gg3v.js +1 -0
  339. package/web/chunk-ksp1gg3v.js.br +0 -0
  340. package/web/chunk-ksp1gg3v.js.gz +0 -0
  341. package/web/chunk-kxxp1mn4.js +2 -0
  342. package/web/chunk-kxxp1mn4.js.br +0 -0
  343. package/web/chunk-kxxp1mn4.js.gz +0 -0
  344. package/web/chunk-mapbxzsz.js +1 -0
  345. package/web/chunk-mapbxzsz.js.br +0 -0
  346. package/web/chunk-mapbxzsz.js.gz +0 -0
  347. package/web/chunk-msw43fnq.js +2 -0
  348. package/web/chunk-msw43fnq.js.br +0 -0
  349. package/web/chunk-msw43fnq.js.gz +0 -0
  350. package/web/chunk-mzzjg4sn.js +2 -0
  351. package/web/chunk-mzzjg4sn.js.br +0 -0
  352. package/web/chunk-mzzjg4sn.js.gz +0 -0
  353. package/web/chunk-n1bmcj13.js +2 -0
  354. package/web/chunk-n1bmcj13.js.br +0 -0
  355. package/web/chunk-n1bmcj13.js.gz +0 -0
  356. package/web/chunk-n5y4ar3e.js +1 -0
  357. package/web/chunk-n5y4ar3e.js.br +0 -0
  358. package/web/chunk-n5y4ar3e.js.gz +0 -0
  359. package/web/chunk-n9vszqw9.js +1 -0
  360. package/web/chunk-n9vszqw9.js.br +0 -0
  361. package/web/chunk-n9vszqw9.js.gz +0 -0
  362. package/web/chunk-nzzcmxq8.js +1 -0
  363. package/web/chunk-nzzcmxq8.js.br +0 -0
  364. package/web/chunk-nzzcmxq8.js.gz +0 -0
  365. package/web/chunk-p25eppk1.js +1 -0
  366. package/web/chunk-p25eppk1.js.br +0 -0
  367. package/web/chunk-p25eppk1.js.gz +0 -0
  368. package/web/chunk-p9352vpw.js +1 -0
  369. package/web/chunk-p9352vpw.js.br +0 -0
  370. package/web/chunk-p9352vpw.js.gz +0 -0
  371. package/web/chunk-pdvm4n6f.js +1 -0
  372. package/web/chunk-pdvm4n6f.js.br +2 -0
  373. package/web/chunk-pdvm4n6f.js.gz +0 -0
  374. package/web/chunk-pjm2t9da.js +1 -0
  375. package/web/chunk-pjm2t9da.js.br +0 -0
  376. package/web/chunk-pjm2t9da.js.gz +0 -0
  377. package/web/chunk-pka3qm06.js +98 -0
  378. package/web/chunk-pka3qm06.js.br +0 -0
  379. package/web/chunk-pka3qm06.js.gz +0 -0
  380. package/web/chunk-pkbcbta6.js +1 -0
  381. package/web/chunk-pkbcbta6.js.br +0 -0
  382. package/web/chunk-pkbcbta6.js.gz +0 -0
  383. package/web/chunk-pq4vn3zh.js +1 -0
  384. package/web/chunk-pq4vn3zh.js.br +0 -0
  385. package/web/chunk-pq4vn3zh.js.gz +0 -0
  386. package/web/chunk-prk9ks5j.js +1 -0
  387. package/web/chunk-prk9ks5j.js.br +0 -0
  388. package/web/chunk-prk9ks5j.js.gz +0 -0
  389. package/web/chunk-px68tdjm.js +1 -0
  390. package/web/chunk-px68tdjm.js.br +2 -0
  391. package/web/chunk-px68tdjm.js.gz +0 -0
  392. package/web/chunk-px8k5edz.js +24 -0
  393. package/web/chunk-px8k5edz.js.br +0 -0
  394. package/web/chunk-px8k5edz.js.gz +0 -0
  395. package/web/chunk-pz4g2bem.js +292 -0
  396. package/web/chunk-pz4g2bem.js.br +0 -0
  397. package/web/chunk-pz4g2bem.js.gz +0 -0
  398. package/web/chunk-q0gx75nf.js +55 -0
  399. package/web/chunk-q0gx75nf.js.br +0 -0
  400. package/web/chunk-q0gx75nf.js.gz +0 -0
  401. package/web/chunk-q9rpxfmm.js +1 -0
  402. package/web/chunk-q9rpxfmm.js.br +0 -0
  403. package/web/chunk-q9rpxfmm.js.gz +0 -0
  404. package/web/chunk-qpfhs1x0.js +1 -0
  405. package/web/chunk-qpfhs1x0.js.br +0 -0
  406. package/web/chunk-qpfhs1x0.js.gz +0 -0
  407. package/web/chunk-qredmg6m.js +1 -0
  408. package/web/chunk-qredmg6m.js.br +0 -0
  409. package/web/chunk-qredmg6m.js.gz +0 -0
  410. package/web/chunk-qtc9ar2m.js +2 -0
  411. package/web/chunk-qtc9ar2m.js.br +0 -0
  412. package/web/chunk-qtc9ar2m.js.gz +0 -0
  413. package/web/chunk-r5dsw56r.js +1 -0
  414. package/web/chunk-r5dsw56r.js.br +0 -0
  415. package/web/chunk-r5dsw56r.js.gz +0 -0
  416. package/web/chunk-rkaps675.js +1 -0
  417. package/web/chunk-rkaps675.js.br +0 -0
  418. package/web/chunk-rkaps675.js.gz +0 -0
  419. package/web/chunk-rp87pgcp.js +40 -0
  420. package/web/chunk-rp87pgcp.js.br +0 -0
  421. package/web/chunk-rp87pgcp.js.gz +0 -0
  422. package/web/chunk-rs1mtd35.js +2 -0
  423. package/web/chunk-rs1mtd35.js.br +0 -0
  424. package/web/chunk-rs1mtd35.js.gz +0 -0
  425. package/web/chunk-s31n33g5.js +2 -0
  426. package/web/chunk-s31n33g5.js.br +0 -0
  427. package/web/chunk-s31n33g5.js.gz +0 -0
  428. package/web/chunk-sbcyvn42.js +1 -0
  429. package/web/chunk-sbcyvn42.js.br +0 -0
  430. package/web/chunk-sbcyvn42.js.gz +0 -0
  431. package/web/chunk-sew9vfwy.js +1 -0
  432. package/web/chunk-sew9vfwy.js.br +0 -0
  433. package/web/chunk-sew9vfwy.js.gz +0 -0
  434. package/web/chunk-sgaw26nc.js +2 -0
  435. package/web/chunk-sgaw26nc.js.br +0 -0
  436. package/web/chunk-sgaw26nc.js.gz +0 -0
  437. package/web/chunk-t2ak4a9d.js +1 -0
  438. package/web/chunk-t2ak4a9d.js.br +0 -0
  439. package/web/chunk-t2ak4a9d.js.gz +0 -0
  440. package/web/chunk-ta0e3dk6.js +2 -0
  441. package/web/chunk-ta0e3dk6.js.br +0 -0
  442. package/web/chunk-ta0e3dk6.js.gz +0 -0
  443. package/web/chunk-tqax5mb6.js +217 -0
  444. package/web/chunk-tqax5mb6.js.br +0 -0
  445. package/web/chunk-tqax5mb6.js.gz +0 -0
  446. package/web/chunk-v1wxeq38.js +2 -0
  447. package/web/chunk-v1wxeq38.js.br +0 -0
  448. package/web/chunk-v1wxeq38.js.gz +0 -0
  449. package/web/chunk-v3kwg4zn.js +2 -0
  450. package/web/chunk-v3kwg4zn.js.br +0 -0
  451. package/web/chunk-v3kwg4zn.js.gz +0 -0
  452. package/web/chunk-vcpvhkxh.js +39 -0
  453. package/web/chunk-vcpvhkxh.js.br +0 -0
  454. package/web/chunk-vcpvhkxh.js.gz +0 -0
  455. package/web/chunk-vg9qv3aa.js +1 -0
  456. package/web/chunk-vg9qv3aa.js.br +0 -0
  457. package/web/chunk-vg9qv3aa.js.gz +0 -0
  458. package/web/chunk-vwxnt3nh.js +1 -0
  459. package/web/chunk-vwxnt3nh.js.br +0 -0
  460. package/web/chunk-vwxnt3nh.js.gz +0 -0
  461. package/web/chunk-w1xjqhwy.js +1 -0
  462. package/web/chunk-w1xjqhwy.js.br +2 -0
  463. package/web/chunk-w1xjqhwy.js.gz +0 -0
  464. package/web/chunk-w3nfxvzd.js +1 -0
  465. package/web/chunk-w3nfxvzd.js.br +0 -0
  466. package/web/chunk-w3nfxvzd.js.gz +0 -0
  467. package/web/chunk-w7h3x3ys.js +1 -0
  468. package/web/chunk-w7h3x3ys.js.br +0 -0
  469. package/web/chunk-w7h3x3ys.js.gz +0 -0
  470. package/web/chunk-wb0yn3r4.js +8 -0
  471. package/web/chunk-wb0yn3r4.js.br +0 -0
  472. package/web/chunk-wb0yn3r4.js.gz +0 -0
  473. package/web/chunk-wff6hqjf.js +1 -0
  474. package/web/chunk-wff6hqjf.js.br +0 -0
  475. package/web/chunk-wff6hqjf.js.gz +0 -0
  476. package/web/chunk-whj4e4sb.js +89 -0
  477. package/web/chunk-whj4e4sb.js.br +0 -0
  478. package/web/chunk-whj4e4sb.js.gz +0 -0
  479. package/web/chunk-wn3kdpj0.js +1 -0
  480. package/web/chunk-wn3kdpj0.js.br +0 -0
  481. package/web/chunk-wn3kdpj0.js.gz +0 -0
  482. package/web/chunk-wzq3qxpb.js +1 -0
  483. package/web/chunk-wzq3qxpb.js.br +0 -0
  484. package/web/chunk-wzq3qxpb.js.gz +0 -0
  485. package/web/chunk-x2tezwv1.js +4 -0
  486. package/web/chunk-x2tezwv1.js.br +0 -0
  487. package/web/chunk-x2tezwv1.js.gz +0 -0
  488. package/web/chunk-xmajh4qe.js +2 -0
  489. package/web/chunk-xmajh4qe.js.br +0 -0
  490. package/web/chunk-xmajh4qe.js.gz +0 -0
  491. package/web/chunk-xz7py7yx.js +1 -0
  492. package/web/chunk-xz7py7yx.js.br +0 -0
  493. package/web/chunk-xz7py7yx.js.gz +0 -0
  494. package/web/chunk-y4af9gsm.js +291 -0
  495. package/web/chunk-y4af9gsm.js.br +0 -0
  496. package/web/chunk-y4af9gsm.js.gz +0 -0
  497. package/web/chunk-y512gr5a.js +332 -0
  498. package/web/chunk-y512gr5a.js.br +0 -0
  499. package/web/chunk-y512gr5a.js.gz +0 -0
  500. package/web/chunk-ywg44m2b.js +2 -0
  501. package/web/chunk-ywg44m2b.js.br +0 -0
  502. package/web/chunk-ywg44m2b.js.gz +0 -0
  503. package/web/chunk-zhzp4fm1.js +2 -0
  504. package/web/chunk-zhzp4fm1.js.br +0 -0
  505. package/web/chunk-zhzp4fm1.js.gz +0 -0
  506. package/web/index.html +1 -1
  507. package/web/index.html.br +0 -0
  508. package/web/index.html.gz +0 -0
  509. package/worker.js +1 -1
  510. package/chunk-0tr0cc6f.js +0 -3
  511. package/chunk-1f0mnggp.js +0 -3
  512. package/chunk-1ntcq7ed.js +0 -2
  513. package/chunk-1xkxfddg.js +0 -286
  514. package/chunk-1zz6akcm.js +0 -3
  515. package/chunk-2cd3qzny.js +0 -3
  516. package/chunk-2sbmy31t.js +0 -2
  517. package/chunk-32s6agaj.js +0 -2
  518. package/chunk-37n62c4c.js +0 -3
  519. package/chunk-3w2902kg.js +0 -9
  520. package/chunk-43q7hq53.js +0 -2
  521. package/chunk-4ewh67qf.js +0 -25
  522. package/chunk-5277mfp2.js +0 -44
  523. package/chunk-54zpktrq.js +0 -3
  524. package/chunk-6f1zc4g6.js +0 -2
  525. package/chunk-6r4kw9x9.js +0 -60
  526. package/chunk-7qaavsga.js +0 -2
  527. package/chunk-88s6d1bz.js +0 -3
  528. package/chunk-9jw0km9r.js +0 -13
  529. package/chunk-a3h0mng1.js +0 -8
  530. package/chunk-acmtkg1q.js +0 -20
  531. package/chunk-adn9jbzj.js +0 -2
  532. package/chunk-anfhjdgv.js +0 -2
  533. package/chunk-apn5amfe.js +0 -498
  534. package/chunk-bsp6e8cv.js +0 -2
  535. package/chunk-bw2h35jd.js +0 -2
  536. package/chunk-bwx9m3ex.js +0 -51
  537. package/chunk-cezgvpja.js +0 -3
  538. package/chunk-cfhtmr6g.js +0 -31
  539. package/chunk-d5w3ntc3.js +0 -7
  540. package/chunk-dtks8c7v.js +0 -2
  541. package/chunk-e01g2yf9.js +0 -3
  542. package/chunk-e1rfd7jn.js +0 -3
  543. package/chunk-e8ehznx7.js +0 -2
  544. package/chunk-edp0svhf.js +0 -3
  545. package/chunk-evaew46c.js +0 -2
  546. package/chunk-ewhpfrgj.js +0 -3
  547. package/chunk-f7q6p7tp.js +0 -7
  548. package/chunk-fgpzy3fe.js +0 -3
  549. package/chunk-fm482h25.js +0 -3
  550. package/chunk-g3j6jdht.js +0 -39
  551. package/chunk-gejre6z5.js +0 -7
  552. package/chunk-gz5ssvjh.js +0 -3
  553. package/chunk-h32ca6cs.js +0 -11
  554. package/chunk-hab25nd9.js +0 -3
  555. package/chunk-jbfkv490.js +0 -8
  556. package/chunk-jem2kqdt.js +0 -3
  557. package/chunk-jrwezx0r.js +0 -16
  558. package/chunk-ka5dtn3w.js +0 -3
  559. package/chunk-kxmws6zx.js +0 -4068
  560. package/chunk-m0gk2b1f.js +0 -3
  561. package/chunk-mekgrca0.js +0 -25
  562. package/chunk-mkp20bwr.js +0 -2
  563. package/chunk-n4qxf40m.js +0 -2
  564. package/chunk-n9r9zzr4.js +0 -59
  565. package/chunk-ndca35jt.js +0 -5
  566. package/chunk-ng9vq9hy.js +0 -2
  567. package/chunk-nx1997s8.js +0 -2
  568. package/chunk-p99dt6kf.js +0 -12
  569. package/chunk-pnctvz58.js +0 -3
  570. package/chunk-ppgn9exm.js +0 -2
  571. package/chunk-pqq5znyp.js +0 -2
  572. package/chunk-q2429jd1.js +0 -3
  573. package/chunk-q3nmdtk4.js +0 -3
  574. package/chunk-q4r4nger.js +0 -3
  575. package/chunk-q6gq7g7m.js +0 -4
  576. package/chunk-qnejy3qp.js +0 -2
  577. package/chunk-sj0fqgjf.js +0 -10
  578. package/chunk-t5y3dqv3.js +0 -3
  579. package/chunk-t6vw73nv.js +0 -2
  580. package/chunk-t9zpdekw.js +0 -5
  581. package/chunk-v0xs5sy0.js +0 -2
  582. package/chunk-v8v2exqg.js +0 -2
  583. package/chunk-wgff8n0r.js +0 -2
  584. package/chunk-wpv679r1.js +0 -3
  585. package/chunk-wrw806wb.js +0 -3
  586. package/chunk-wsby70ce.js +0 -12
  587. package/chunk-xdbgpht7.js +0 -2
  588. package/chunk-y1b98tfk.js +0 -5
  589. package/chunk-y3m3w19s.js +0 -3
  590. package/chunk-y5p5jq48.js +0 -63
  591. package/chunk-ynf5sz68.js +0 -10
  592. package/chunk-zfk9az7y.js +0 -5
  593. package/chunk-zwse6b6t.js +0 -18
  594. package/web/chunk-016nkjwe.js +0 -2
  595. package/web/chunk-016nkjwe.js.br +0 -0
  596. package/web/chunk-016nkjwe.js.gz +0 -0
  597. package/web/chunk-0er8vdaw.js +0 -2
  598. package/web/chunk-0er8vdaw.js.br +0 -0
  599. package/web/chunk-0er8vdaw.js.gz +0 -0
  600. package/web/chunk-0sq0ed2h.js +0 -12
  601. package/web/chunk-0sq0ed2h.js.br +0 -0
  602. package/web/chunk-0sq0ed2h.js.gz +0 -0
  603. package/web/chunk-0w8swe64.js +0 -2
  604. package/web/chunk-0w8swe64.js.br +0 -0
  605. package/web/chunk-0w8swe64.js.gz +0 -0
  606. package/web/chunk-15pxdcz7.js +0 -1
  607. package/web/chunk-15pxdcz7.js.br +0 -0
  608. package/web/chunk-15pxdcz7.js.gz +0 -0
  609. package/web/chunk-1a1w9rth.js +0 -4
  610. package/web/chunk-1a1w9rth.js.br +0 -0
  611. package/web/chunk-1a1w9rth.js.gz +0 -0
  612. package/web/chunk-1e8tsn4c.js +0 -1
  613. package/web/chunk-1e8tsn4c.js.br +0 -0
  614. package/web/chunk-1e8tsn4c.js.gz +0 -0
  615. package/web/chunk-1jwp193e.js +0 -78
  616. package/web/chunk-1jwp193e.js.br +0 -0
  617. package/web/chunk-1jwp193e.js.gz +0 -0
  618. package/web/chunk-1wz0tepc.js +0 -106
  619. package/web/chunk-1wz0tepc.js.br +0 -0
  620. package/web/chunk-1wz0tepc.js.gz +0 -0
  621. package/web/chunk-20gcnbgn.js +0 -2
  622. package/web/chunk-20gcnbgn.js.br +0 -0
  623. package/web/chunk-20gcnbgn.js.gz +0 -0
  624. package/web/chunk-213m58wn.js +0 -1
  625. package/web/chunk-213m58wn.js.br +0 -0
  626. package/web/chunk-213m58wn.js.gz +0 -0
  627. package/web/chunk-2hat8cth.js +0 -1
  628. package/web/chunk-2hat8cth.js.br +0 -0
  629. package/web/chunk-2hat8cth.js.gz +0 -0
  630. package/web/chunk-2nwvdqxm.js +0 -1
  631. package/web/chunk-2nwvdqxm.js.br +0 -0
  632. package/web/chunk-2nwvdqxm.js.gz +0 -0
  633. package/web/chunk-3dj31vfh.js +0 -292
  634. package/web/chunk-3dj31vfh.js.br +0 -0
  635. package/web/chunk-3dj31vfh.js.gz +0 -0
  636. package/web/chunk-3g7waf75.js +0 -70
  637. package/web/chunk-3g7waf75.js.br +0 -0
  638. package/web/chunk-3g7waf75.js.gz +0 -0
  639. package/web/chunk-3x1zg1hk.js +0 -1
  640. package/web/chunk-3x1zg1hk.js.br +0 -0
  641. package/web/chunk-3x1zg1hk.js.gz +0 -0
  642. package/web/chunk-414npx47.js +0 -1
  643. package/web/chunk-414npx47.js.br +0 -0
  644. package/web/chunk-414npx47.js.gz +0 -0
  645. package/web/chunk-416ts17x.js +0 -2
  646. package/web/chunk-416ts17x.js.br +0 -0
  647. package/web/chunk-416ts17x.js.gz +0 -0
  648. package/web/chunk-47qwqp4f.js +0 -7
  649. package/web/chunk-47qwqp4f.js.br +0 -0
  650. package/web/chunk-47qwqp4f.js.gz +0 -0
  651. package/web/chunk-4k4c2se1.js +0 -2
  652. package/web/chunk-4k4c2se1.js.br +0 -0
  653. package/web/chunk-4k4c2se1.js.gz +0 -0
  654. package/web/chunk-4vsg8d4c.js +0 -4
  655. package/web/chunk-4vsg8d4c.js.br +0 -0
  656. package/web/chunk-4vsg8d4c.js.gz +0 -0
  657. package/web/chunk-53ag9hyw.js +0 -40
  658. package/web/chunk-53ag9hyw.js.br +0 -0
  659. package/web/chunk-53ag9hyw.js.gz +0 -0
  660. package/web/chunk-545zx869.js +0 -2
  661. package/web/chunk-545zx869.js.br +0 -0
  662. package/web/chunk-545zx869.js.gz +0 -0
  663. package/web/chunk-55mx05jg.js +0 -2
  664. package/web/chunk-55mx05jg.js.br +0 -0
  665. package/web/chunk-55mx05jg.js.gz +0 -0
  666. package/web/chunk-55phnzd7.js +0 -1
  667. package/web/chunk-55phnzd7.js.br +0 -0
  668. package/web/chunk-55phnzd7.js.gz +0 -0
  669. package/web/chunk-56a6njsk.js +0 -1
  670. package/web/chunk-56a6njsk.js.br +0 -0
  671. package/web/chunk-56a6njsk.js.gz +0 -0
  672. package/web/chunk-5hvs5kyx.js +0 -1
  673. package/web/chunk-5hvs5kyx.js.br +0 -0
  674. package/web/chunk-5hvs5kyx.js.gz +0 -0
  675. package/web/chunk-5nbyvd4t.js +0 -1
  676. package/web/chunk-5nbyvd4t.js.br +0 -0
  677. package/web/chunk-5nbyvd4t.js.gz +0 -0
  678. package/web/chunk-690qxds4.js +0 -1
  679. package/web/chunk-690qxds4.js.br +0 -0
  680. package/web/chunk-690qxds4.js.gz +0 -0
  681. package/web/chunk-6dr6eazd.js +0 -2
  682. package/web/chunk-6dr6eazd.js.br +0 -0
  683. package/web/chunk-6dr6eazd.js.gz +0 -0
  684. package/web/chunk-6nkegqxk.js +0 -139
  685. package/web/chunk-6nkegqxk.js.br +0 -0
  686. package/web/chunk-6nkegqxk.js.gz +0 -0
  687. package/web/chunk-6ypf5nq6.js +0 -140
  688. package/web/chunk-6ypf5nq6.js.br +0 -0
  689. package/web/chunk-6ypf5nq6.js.gz +0 -0
  690. package/web/chunk-70kws32b.js +0 -2
  691. package/web/chunk-70kws32b.js.br +0 -0
  692. package/web/chunk-70kws32b.js.gz +0 -0
  693. package/web/chunk-71tshjjr.js +0 -16
  694. package/web/chunk-71tshjjr.js.br +0 -0
  695. package/web/chunk-71tshjjr.js.gz +0 -0
  696. package/web/chunk-7fh9k75p.js +0 -1
  697. package/web/chunk-7fh9k75p.js.br +0 -0
  698. package/web/chunk-7fh9k75p.js.gz +0 -0
  699. package/web/chunk-7k8azd8z.js +0 -1
  700. package/web/chunk-7k8azd8z.js.br +0 -0
  701. package/web/chunk-7k8azd8z.js.gz +0 -0
  702. package/web/chunk-7mmebce4.js +0 -1
  703. package/web/chunk-7mmebce4.js.br +0 -0
  704. package/web/chunk-7mmebce4.js.gz +0 -0
  705. package/web/chunk-7mwghj09.js +0 -89
  706. package/web/chunk-7mwghj09.js.br +0 -0
  707. package/web/chunk-7mwghj09.js.gz +0 -0
  708. package/web/chunk-7y5kr56m.js +0 -1
  709. package/web/chunk-7y5kr56m.js.br +0 -0
  710. package/web/chunk-7y5kr56m.js.gz +0 -0
  711. package/web/chunk-8esqhp64.js +0 -1
  712. package/web/chunk-8esqhp64.js.br +0 -0
  713. package/web/chunk-8esqhp64.js.gz +0 -0
  714. package/web/chunk-8gxgpr3n.js +0 -214
  715. package/web/chunk-8gxgpr3n.js.br +0 -0
  716. package/web/chunk-8gxgpr3n.js.gz +0 -0
  717. package/web/chunk-8vnmk3y7.js +0 -1
  718. package/web/chunk-8vnmk3y7.js.br +0 -0
  719. package/web/chunk-8vnmk3y7.js.gz +0 -0
  720. package/web/chunk-99r862t8.js +0 -30
  721. package/web/chunk-99r862t8.js.br +0 -0
  722. package/web/chunk-99r862t8.js.gz +0 -0
  723. package/web/chunk-9cznsyf4.js +0 -7
  724. package/web/chunk-9cznsyf4.js.br +0 -0
  725. package/web/chunk-9cznsyf4.js.gz +0 -0
  726. package/web/chunk-9hmw91e9.js +0 -1
  727. package/web/chunk-9hmw91e9.js.br +0 -0
  728. package/web/chunk-9hmw91e9.js.gz +0 -0
  729. package/web/chunk-9j7v0e4v.js +0 -2
  730. package/web/chunk-9j7v0e4v.js.br +0 -0
  731. package/web/chunk-9j7v0e4v.js.gz +0 -0
  732. package/web/chunk-9pyad3tv.js +0 -1
  733. package/web/chunk-9pyad3tv.js.br +0 -0
  734. package/web/chunk-9pyad3tv.js.gz +0 -0
  735. package/web/chunk-9rf2smk2.js +0 -1142
  736. package/web/chunk-9rf2smk2.js.br +0 -0
  737. package/web/chunk-9rf2smk2.js.gz +0 -0
  738. package/web/chunk-aan5qk6x.js +0 -1
  739. package/web/chunk-aan5qk6x.js.br +0 -0
  740. package/web/chunk-aan5qk6x.js.gz +0 -0
  741. package/web/chunk-aaz4msca.js +0 -89
  742. package/web/chunk-aaz4msca.js.br +0 -0
  743. package/web/chunk-aaz4msca.js.gz +0 -0
  744. package/web/chunk-ag0ng2nt.js +0 -24
  745. package/web/chunk-ag0ng2nt.js.br +0 -0
  746. package/web/chunk-ag0ng2nt.js.gz +0 -0
  747. package/web/chunk-an9b0mhe.js +0 -55
  748. package/web/chunk-an9b0mhe.js.br +0 -0
  749. package/web/chunk-an9b0mhe.js.gz +0 -0
  750. package/web/chunk-apgvrfc2.js +0 -41
  751. package/web/chunk-apgvrfc2.js.br +0 -0
  752. package/web/chunk-apgvrfc2.js.gz +0 -0
  753. package/web/chunk-aq09zt1h.js +0 -332
  754. package/web/chunk-aq09zt1h.js.br +0 -0
  755. package/web/chunk-aq09zt1h.js.gz +0 -0
  756. package/web/chunk-ayy6rwm5.js +0 -1
  757. package/web/chunk-ayy6rwm5.js.br +0 -0
  758. package/web/chunk-ayy6rwm5.js.gz +0 -0
  759. package/web/chunk-azhw80d1.js +0 -1
  760. package/web/chunk-azhw80d1.js.br +0 -0
  761. package/web/chunk-azhw80d1.js.gz +0 -0
  762. package/web/chunk-b4bty1ns.js +0 -8
  763. package/web/chunk-b4bty1ns.js.br +0 -1
  764. package/web/chunk-b4bty1ns.js.gz +0 -0
  765. package/web/chunk-bs9934z7.js +0 -200
  766. package/web/chunk-bs9934z7.js.br +0 -0
  767. package/web/chunk-bs9934z7.js.gz +0 -0
  768. package/web/chunk-c9nwfxrp.js +0 -1
  769. package/web/chunk-c9nwfxrp.js.br +0 -0
  770. package/web/chunk-c9nwfxrp.js.gz +0 -0
  771. package/web/chunk-capfyqch.js +0 -1
  772. package/web/chunk-capfyqch.js.br +0 -0
  773. package/web/chunk-capfyqch.js.gz +0 -0
  774. package/web/chunk-ckev38zc.js +0 -36
  775. package/web/chunk-ckev38zc.js.br +0 -0
  776. package/web/chunk-ckev38zc.js.gz +0 -0
  777. package/web/chunk-cnkerjp4.js +0 -370
  778. package/web/chunk-cnkerjp4.js.br +0 -0
  779. package/web/chunk-cnkerjp4.js.gz +0 -0
  780. package/web/chunk-d3bgcz6q.js +0 -1
  781. package/web/chunk-d3bgcz6q.js.br +0 -0
  782. package/web/chunk-d3bgcz6q.js.gz +0 -0
  783. package/web/chunk-d5n2yz4e.js +0 -2
  784. package/web/chunk-d5n2yz4e.js.br +0 -0
  785. package/web/chunk-d5n2yz4e.js.gz +0 -0
  786. package/web/chunk-d5xqtvb1.js +0 -2
  787. package/web/chunk-d5xqtvb1.js.br +0 -0
  788. package/web/chunk-d5xqtvb1.js.gz +0 -0
  789. package/web/chunk-daqfnvaw.js +0 -1
  790. package/web/chunk-daqfnvaw.js.br +0 -0
  791. package/web/chunk-daqfnvaw.js.gz +0 -0
  792. package/web/chunk-dqz580pg.js +0 -1
  793. package/web/chunk-dqz580pg.js.br +0 -0
  794. package/web/chunk-dqz580pg.js.gz +0 -0
  795. package/web/chunk-e54b48p5.js +0 -2
  796. package/web/chunk-e54b48p5.js.br +0 -0
  797. package/web/chunk-e54b48p5.js.gz +0 -0
  798. package/web/chunk-e8bgrjps.js +0 -2
  799. package/web/chunk-e8bgrjps.js.br +0 -0
  800. package/web/chunk-e8bgrjps.js.gz +0 -0
  801. package/web/chunk-efdg5mjf.js +0 -217
  802. package/web/chunk-efdg5mjf.js.br +0 -0
  803. package/web/chunk-efdg5mjf.js.gz +0 -0
  804. package/web/chunk-efhyygba.js +0 -7
  805. package/web/chunk-efhyygba.js.br +0 -0
  806. package/web/chunk-efhyygba.js.gz +0 -0
  807. package/web/chunk-en5n60qw.js +0 -2
  808. package/web/chunk-en5n60qw.js.br +0 -0
  809. package/web/chunk-en5n60qw.js.gz +0 -0
  810. package/web/chunk-eq0vm9vw.js +0 -2
  811. package/web/chunk-eq0vm9vw.js.br +0 -0
  812. package/web/chunk-eq0vm9vw.js.gz +0 -0
  813. package/web/chunk-eznkbqms.js +0 -1
  814. package/web/chunk-eznkbqms.js.br +0 -0
  815. package/web/chunk-eznkbqms.js.gz +0 -0
  816. package/web/chunk-f5wyg9zh.js +0 -2
  817. package/web/chunk-f5wyg9zh.js.br +0 -0
  818. package/web/chunk-f5wyg9zh.js.gz +0 -0
  819. package/web/chunk-f9rv8b13.js +0 -1
  820. package/web/chunk-f9rv8b13.js.br +0 -0
  821. package/web/chunk-f9rv8b13.js.gz +0 -0
  822. package/web/chunk-fnzyprme.js +0 -142
  823. package/web/chunk-fnzyprme.js.br +0 -0
  824. package/web/chunk-fnzyprme.js.gz +0 -0
  825. package/web/chunk-g63m3g5y.js +0 -1
  826. package/web/chunk-g63m3g5y.js.br +0 -2
  827. package/web/chunk-g63m3g5y.js.gz +0 -0
  828. package/web/chunk-g6gb3wz7.js +0 -1
  829. package/web/chunk-g6gb3wz7.js.br +0 -2
  830. package/web/chunk-g6gb3wz7.js.gz +0 -0
  831. package/web/chunk-g7ec62te.js +0 -2
  832. package/web/chunk-g7ec62te.js.br +0 -0
  833. package/web/chunk-g7ec62te.js.gz +0 -0
  834. package/web/chunk-gkj2bbdx.js +0 -1
  835. package/web/chunk-gkj2bbdx.js.br +0 -0
  836. package/web/chunk-gkj2bbdx.js.gz +0 -0
  837. package/web/chunk-gnx30bed.css +0 -1
  838. package/web/chunk-gnx30bed.css.br +0 -0
  839. package/web/chunk-gnx30bed.css.gz +0 -0
  840. package/web/chunk-gvndjaan.js +0 -2
  841. package/web/chunk-gvndjaan.js.br +0 -0
  842. package/web/chunk-gvndjaan.js.gz +0 -0
  843. package/web/chunk-h391pq6j.js +0 -1
  844. package/web/chunk-h391pq6j.js.br +0 -0
  845. package/web/chunk-h391pq6j.js.gz +0 -0
  846. package/web/chunk-h3kdr5mz.js +0 -21
  847. package/web/chunk-h3kdr5mz.js.br +0 -0
  848. package/web/chunk-h3kdr5mz.js.gz +0 -0
  849. package/web/chunk-hjs5pyye.js +0 -1
  850. package/web/chunk-hjs5pyye.js.br +0 -0
  851. package/web/chunk-hjs5pyye.js.gz +0 -0
  852. package/web/chunk-hxgtek0e.js +0 -2
  853. package/web/chunk-hxgtek0e.js.br +0 -0
  854. package/web/chunk-hxgtek0e.js.gz +0 -0
  855. package/web/chunk-j5a3jhp0.js +0 -120
  856. package/web/chunk-j5a3jhp0.js.br +0 -0
  857. package/web/chunk-j5a3jhp0.js.gz +0 -0
  858. package/web/chunk-jgdways6.js +0 -39
  859. package/web/chunk-jgdways6.js.br +0 -0
  860. package/web/chunk-jgdways6.js.gz +0 -0
  861. package/web/chunk-jybmjakj.js +0 -1
  862. package/web/chunk-jybmjakj.js.br +0 -2
  863. package/web/chunk-jybmjakj.js.gz +0 -0
  864. package/web/chunk-kasv56qe.js +0 -303
  865. package/web/chunk-kasv56qe.js.br +0 -0
  866. package/web/chunk-kasv56qe.js.gz +0 -0
  867. package/web/chunk-kmhbkjqx.js +0 -2
  868. package/web/chunk-kmhbkjqx.js.br +0 -0
  869. package/web/chunk-kmhbkjqx.js.gz +0 -0
  870. package/web/chunk-m06zdhdz.js +0 -1
  871. package/web/chunk-m06zdhdz.js.br +0 -0
  872. package/web/chunk-m06zdhdz.js.gz +0 -0
  873. package/web/chunk-mrnnq8dv.js +0 -1
  874. package/web/chunk-mrnnq8dv.js.br +0 -0
  875. package/web/chunk-mrnnq8dv.js.gz +0 -0
  876. package/web/chunk-mx1e3jgh.js +0 -1
  877. package/web/chunk-mx1e3jgh.js.br +0 -0
  878. package/web/chunk-mx1e3jgh.js.gz +0 -0
  879. package/web/chunk-n0tehchs.js +0 -3
  880. package/web/chunk-n0tehchs.js.br +0 -0
  881. package/web/chunk-n0tehchs.js.gz +0 -0
  882. package/web/chunk-n449ebhn.js +0 -38
  883. package/web/chunk-n449ebhn.js.br +0 -0
  884. package/web/chunk-n449ebhn.js.gz +0 -0
  885. package/web/chunk-ngsv0xfb.js +0 -1
  886. package/web/chunk-ngsv0xfb.js.br +0 -0
  887. package/web/chunk-ngsv0xfb.js.gz +0 -0
  888. package/web/chunk-ngy730n0.js +0 -1
  889. package/web/chunk-ngy730n0.js.br +0 -0
  890. package/web/chunk-ngy730n0.js.gz +0 -0
  891. package/web/chunk-nj9dtqyd.js +0 -2
  892. package/web/chunk-nj9dtqyd.js.br +0 -0
  893. package/web/chunk-nj9dtqyd.js.gz +0 -0
  894. package/web/chunk-nzaq0yae.js +0 -2
  895. package/web/chunk-nzaq0yae.js.br +0 -0
  896. package/web/chunk-nzaq0yae.js.gz +0 -0
  897. package/web/chunk-pgnfj8ea.js +0 -2
  898. package/web/chunk-pgnfj8ea.js.br +0 -0
  899. package/web/chunk-pgnfj8ea.js.gz +0 -0
  900. package/web/chunk-qtgen5c5.js +0 -24
  901. package/web/chunk-qtgen5c5.js.br +0 -0
  902. package/web/chunk-qtgen5c5.js.gz +0 -0
  903. package/web/chunk-qzn05afn.js +0 -169
  904. package/web/chunk-qzn05afn.js.br +0 -0
  905. package/web/chunk-qzn05afn.js.gz +0 -0
  906. package/web/chunk-r76we294.js +0 -1
  907. package/web/chunk-r76we294.js.br +0 -0
  908. package/web/chunk-r76we294.js.gz +0 -0
  909. package/web/chunk-r7st369j.js +0 -1
  910. package/web/chunk-r7st369j.js.br +0 -0
  911. package/web/chunk-r7st369j.js.gz +0 -0
  912. package/web/chunk-rj1rp0tc.js +0 -1
  913. package/web/chunk-rj1rp0tc.js.br +0 -0
  914. package/web/chunk-rj1rp0tc.js.gz +0 -0
  915. package/web/chunk-sgy3c5m7.js +0 -62
  916. package/web/chunk-sgy3c5m7.js.br +0 -0
  917. package/web/chunk-sgy3c5m7.js.gz +0 -0
  918. package/web/chunk-t7s9xrxt.js +0 -34
  919. package/web/chunk-t7s9xrxt.js.br +0 -0
  920. package/web/chunk-t7s9xrxt.js.gz +0 -0
  921. package/web/chunk-tmf1jnqz.js +0 -2
  922. package/web/chunk-tmf1jnqz.js.br +0 -0
  923. package/web/chunk-tmf1jnqz.js.gz +0 -0
  924. package/web/chunk-tn39vbcz.js +0 -2
  925. package/web/chunk-tn39vbcz.js.br +0 -0
  926. package/web/chunk-tn39vbcz.js.gz +0 -0
  927. package/web/chunk-tntwwpyh.js +0 -2
  928. package/web/chunk-tntwwpyh.js.br +0 -0
  929. package/web/chunk-tntwwpyh.js.gz +0 -0
  930. package/web/chunk-tpzyyc2z.js +0 -2
  931. package/web/chunk-tpzyyc2z.js.br +0 -0
  932. package/web/chunk-tpzyyc2z.js.gz +0 -0
  933. package/web/chunk-v95eqx92.js +0 -84
  934. package/web/chunk-v95eqx92.js.br +0 -0
  935. package/web/chunk-v95eqx92.js.gz +0 -0
  936. package/web/chunk-vcj5m1xb.js +0 -1
  937. package/web/chunk-vcj5m1xb.js.br +0 -0
  938. package/web/chunk-vcj5m1xb.js.gz +0 -0
  939. package/web/chunk-vndrjeyr.js +0 -2
  940. package/web/chunk-vndrjeyr.js.br +0 -0
  941. package/web/chunk-vndrjeyr.js.gz +0 -0
  942. package/web/chunk-vq0zf16h.js +0 -1
  943. package/web/chunk-vq0zf16h.js.br +0 -0
  944. package/web/chunk-vq0zf16h.js.gz +0 -0
  945. package/web/chunk-vqhtph6r.js +0 -1
  946. package/web/chunk-vqhtph6r.js.br +0 -0
  947. package/web/chunk-vqhtph6r.js.gz +0 -0
  948. package/web/chunk-vvsfwjrg.js +0 -1
  949. package/web/chunk-vvsfwjrg.js.br +0 -0
  950. package/web/chunk-vvsfwjrg.js.gz +0 -0
  951. package/web/chunk-vz2mgxs7.js +0 -1
  952. package/web/chunk-vz2mgxs7.js.br +0 -0
  953. package/web/chunk-vz2mgxs7.js.gz +0 -0
  954. package/web/chunk-wdd9pasx.js +0 -1
  955. package/web/chunk-wdd9pasx.js.br +0 -0
  956. package/web/chunk-wdd9pasx.js.gz +0 -0
  957. package/web/chunk-wry3q68j.js +0 -1
  958. package/web/chunk-wry3q68j.js.br +0 -2
  959. package/web/chunk-wry3q68j.js.gz +0 -0
  960. package/web/chunk-wrz0gqnv.js +0 -1
  961. package/web/chunk-wrz0gqnv.js.br +0 -0
  962. package/web/chunk-wrz0gqnv.js.gz +0 -0
  963. package/web/chunk-wvapb3r6.js +0 -98
  964. package/web/chunk-wvapb3r6.js.br +0 -0
  965. package/web/chunk-wvapb3r6.js.gz +0 -0
  966. package/web/chunk-x6qva9zc.js +0 -324
  967. package/web/chunk-x6qva9zc.js.br +0 -0
  968. package/web/chunk-x6qva9zc.js.gz +0 -0
  969. package/web/chunk-xa2ngtyg.js +0 -2
  970. package/web/chunk-xa2ngtyg.js.br +0 -0
  971. package/web/chunk-xa2ngtyg.js.gz +0 -0
  972. package/web/chunk-xhjf5ye0.js +0 -1
  973. package/web/chunk-xhjf5ye0.js.br +0 -0
  974. package/web/chunk-xhjf5ye0.js.gz +0 -0
  975. package/web/chunk-xkqekh81.js +0 -2
  976. package/web/chunk-xkqekh81.js.br +0 -0
  977. package/web/chunk-xkqekh81.js.gz +0 -0
  978. package/web/chunk-xsjvamcy.js +0 -1
  979. package/web/chunk-xsjvamcy.js.br +0 -0
  980. package/web/chunk-xsjvamcy.js.gz +0 -0
  981. package/web/chunk-xyfnr395.js +0 -1
  982. package/web/chunk-xyfnr395.js.br +0 -0
  983. package/web/chunk-xyfnr395.js.gz +0 -0
  984. package/web/chunk-y48mj5d7.js +0 -1
  985. package/web/chunk-y48mj5d7.js.br +0 -0
  986. package/web/chunk-y48mj5d7.js.gz +0 -0
  987. package/web/chunk-y4x1g94q.js +0 -1
  988. package/web/chunk-y4x1g94q.js.br +0 -0
  989. package/web/chunk-y4x1g94q.js.gz +0 -0
  990. package/web/chunk-yzbp4vpe.js +0 -1
  991. package/web/chunk-yzbp4vpe.js.br +0 -0
  992. package/web/chunk-yzbp4vpe.js.gz +0 -0
  993. package/web/chunk-z601k790.js +0 -291
  994. package/web/chunk-z601k790.js.br +0 -0
  995. package/web/chunk-z601k790.js.gz +0 -0
  996. package/web/chunk-zc9mxd01.js +0 -99
  997. package/web/chunk-zc9mxd01.js.br +0 -0
  998. package/web/chunk-zc9mxd01.js.gz +0 -0
  999. package/web/chunk-zm1jfkcz.js +0 -2
  1000. package/web/chunk-zm1jfkcz.js.br +0 -0
  1001. package/web/chunk-zm1jfkcz.js.gz +0 -0
  1002. package/web/chunk-zz0d7377.js +0 -2
  1003. package/web/chunk-zz0d7377.js.br +0 -0
  1004. package/web/chunk-zz0d7377.js.gz +0 -0
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ import{f,g,y}from"./chunk-3x0wm92n.js";import{ae}from"./chunk-e67wqhzh.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},h=(t)=>{let i=import.meta.url.endsWith(".js")?t.replace(/\.ts$/,".js"):t;return import(c(i))},r;function pa(t){r=t}var da=()=>ae(async()=>r??await h("./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 Hn=f("github-copilot",n),T=g("github-copilot",n),w=y("github-copilot",n);var ms="https://radius.pi.dev";function d(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(d).map((a)=>({...a}))}}function Gr(t){return(/^https?:\/\//iu.test(t)?t:`https://${t}`).replace(/\/+$/u,"")}function m(t){return u(t?.gatewayConfig)}function hs(t,i){return i.models.map((e)=>({...e,api:"pi-messages",provider:t,baseUrl:i.baseUrl}))}function ma(t,i){let e=m(i);return e?hs(t,e):[]}function x(t){let i=t.trim();return i.length>512?`${i.slice(0,512)}\u2026`:i}async function ha(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}: ${x(await o.text())}`);let s=u(await o.json());if(!s)throw Error(`Invalid Radius config from ${t}`);return s}
3
+ export{pa,da,Hn,ms,Gr,hs,ma,ha};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ import{A}from"./chunk-a5wv2shs.js";var i="v1";function s(r){let e=new Map;if(!r)return e;for(let t of r.split(",")){let a=t.trim();if(!a)continue;let[n,o]=a.split("=",2);if(!n||!o)continue;e.set(n.trim(),o.trim())}return e}function An(r,e){if(e?.azureDeploymentName)return e.azureDeploymentName;return s(A("AZURE_OPENAI_DEPLOYMENT_NAME_MAP",e?.env)).get(r.id)||r.id}function m(r){let e=r.trim().replace(/\/+$/,""),t;try{t=new URL(e)}catch{throw Error(`Invalid Azure OpenAI base URL: ${r}`)}let a=t.hostname.endsWith(".openai.azure.com")||t.hostname.endsWith(".cognitiveservices.azure.com")||t.hostname.endsWith(".ai.azure.com"),n=t.pathname.replace(/\/+$/,"");if(a&&(n===""||n==="/"||n==="/openai"||n==="/openai/v1/responses"))t.pathname="/openai/v1",t.search="";return t.toString().replace(/\/+$/,"")}function u(r){return`https://${r}.openai.azure.com/openai/v1`}function ns(r,e){let t=e?.azureBaseUrl?.trim()||A("AZURE_OPENAI_BASE_URL",e?.env)?.trim()||void 0,a=e?.azureResourceName||A("AZURE_OPENAI_RESOURCE_NAME",e?.env),n=t;if(!n&&a)n=u(a);if(!n&&r.baseUrl)n=r.baseUrl;if(!n)throw Error("Azure OpenAI base URL is required. Set AZURE_OPENAI_BASE_URL or AZURE_OPENAI_RESOURCE_NAME, or pass azureBaseUrl, azureResourceName, or model.baseUrl.");return m(n)}function na(r,e){return{baseUrl:ns(r,e),apiVersion:e?.azureApiVersion||A("AZURE_OPENAI_API_VERSION",e?.env)||i}}
3
+ export{An,ns,na};
@@ -0,0 +1,8 @@
1
+ // @bun
2
+ import{V}from"./chunk-2fmsw1c6.js";import{A}from"./chunk-a5wv2shs.js";import{J,ke}from"./chunk-9nkb5q43.js";import{W,Lr,He}from"./chunk-ndt4jvh1.js";class u extends Error{code;diagnosticDetails;constructor(r,t,n){super(r);this.name="PiMessagesResponseError",this.code=t,this.diagnosticDetails=n}}function x(r){try{let t=JSON.parse(r),n=t?.error;return t&&typeof n==="object"&&n!==null&&!Array.isArray(n)?t:void 0}catch{return}}function m(r){return r.length>8192?`${r.slice(0,8192)}\u2026`:r}function y(r,t,n){let e=typeof n?.error?.message==="string"?n.error.message:void 0,s=typeof n?.error?.code==="string"?n.error.code:void 0,a=e??t,o=s?` (${s})`:"";return`${r.status} ${r.statusText}: ${a}${o}`}function k(r,t,n,e){let s=x(e),a=typeof s?.error?.code==="string"?s.error.code:void 0;return new u(y(n,e,s),a,{version:1,provider:r.provider,model:r.id,url:t.toString(),status:n.status,statusText:n.statusText,...s?.error===void 0?{}:{error:s.error},...s?{}:{body:m(e)},timestampMs:Date.now()})}function h(){return{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}}}function l(r,t){if(!t)return;He(r,{type:"pi_messages_rewrite",timestamp:Date.now(),details:{...t}})}function w(r){let t={role:"assistant",content:[],api:r.api,provider:r.provider,model:r.id,usage:h(),stopReason:"pending",timestamp:Date.now()},n=new Map;return(e)=>{switch(e.type){case"done":if(Object.assign(t,{stopReason:e.reason,usage:e.usage,responseId:e.responseId}),e.providerThinkingLevel!==void 0)t.providerThinkingLevel=e.providerThinkingLevel;return l(t,e.rewrite),{type:"done",reason:e.reason,message:t};case"error":if(Object.assign(t,{stopReason:e.reason,usage:e.usage,errorMessage:e.errorMessage,responseId:e.responseId}),e.providerThinkingLevel!==void 0)t.providerThinkingLevel=e.providerThinkingLevel;return l(t,e.rewrite),{type:"error",reason:e.reason,error:t};case"start":break;case"text_start":t.content[e.contentIndex]={type:"text",text:""};break;case"text_delta":t.content[e.contentIndex].text+=e.delta;break;case"text_end":Object.assign(t.content[e.contentIndex],{text:e.content,textSignature:e.contentSignature});break;case"thinking_start":t.content[e.contentIndex]={type:"thinking",thinking:""};break;case"thinking_delta":t.content[e.contentIndex].thinking+=e.delta;break;case"thinking_end":Object.assign(t.content[e.contentIndex],{thinking:e.content,thinkingSignature:e.contentSignature,redacted:e.redacted});break;case"toolcall_start":t.content[e.contentIndex]={type:"toolCall",id:e.id,name:e.toolName,arguments:{}},n.set(e.contentIndex,"");break;case"toolcall_delta":{let s=`${n.get(e.contentIndex)??""}${e.delta}`;n.set(e.contentIndex,s),t.content[e.contentIndex].arguments=V(s);break}case"toolcall_end":return Object.assign(t.content[e.contentIndex],e.toolCall),n.delete(e.contentIndex),{type:"toolcall_end",contentIndex:e.contentIndex,toolCall:t.content[e.contentIndex],partial:t}}return{...e,partial:t}}}async function*b(r){let t=new TextDecoder,n=r.getReader(),e="";try{while(!0){let{done:s,value:a}=await n.read();e+=s?t.decode():t.decode(a,{stream:!0}),e=e.replace(/\r\n/g,`
3
+ `);let o=e.indexOf(`
4
+
5
+ `);while(o!==-1){let c=f(e.slice(0,o));if(c)yield c;e=e.slice(o+2),o=e.indexOf(`
6
+
7
+ `)}if(s)break}if(e.trim()){let s=f(e);if(s)yield s}}finally{n.releaseLock()}}function f(r){let t=r.split(`
8
+ `).find((n)=>n.startsWith("data:"))?.slice(5).trim();return t&&t!=="[DONE]"?JSON.parse(t):void 0}function I(r,t,n){let e=n?"aborted":"error",s={role:"assistant",content:[],api:r.api,provider:r.provider,model:r.id,usage:h(),stopReason:e,errorMessage:t instanceof Error?t.message:String(t),timestamp:Date.now()};if(!n&&t instanceof u)He(s,Lr("pi_messages_response_failure",t,t.diagnosticDetails));return{type:"error",reason:e,error:s}}function E(r,t){if(r)return r;return A("PI_CACHE_RETENTION",t)==="long"?"long":void 0}var T=(r,t,n)=>{let e=new W,s=w(r);return(async()=>{try{let a=n?.apiKey;if(!a)throw Error(`No API key provided for provider "${r.provider}"`);let o=new URL(`${r.baseUrl.replace(/\/+$/u,"")}/messages`);if(n?.debug)o.searchParams.set("debug","1");let c={model:r.id,context:t,options:{temperature:n?.temperature,maxTokens:n?.maxTokens,reasoning:n?.reasoning,cacheRetention:E(n?.cacheRetention,n?.env),sessionId:n?.sessionId,toolChoice:n?.toolChoice}},p=await n?.onPayload?.(c,r);if(p!==void 0)c=p;let i=await(n?.fetch??globalThis.fetch)(o,{method:"POST",headers:{authorization:`Bearer ${a}`,accept:"text/event-stream","content-type":"application/json",...ke(n?.headers)},body:JSON.stringify(c),signal:n?.signal});if(await n?.onResponse?.({status:i.status,headers:J(i.headers)},r),!i.ok){let d=await i.text();throw k(r,o,i,d)}if(!i.body)throw Error(`${r.provider} response has no body`);for await(let d of b(i.body)){await n?.onProviderStreamEvent?.(d,r);let g=s(d);if(e.push(g),g.type==="done"||g.type==="error")return}throw Error(`${r.provider} stream ended without a terminal event`)}catch(a){e.push(I(r,a,n?.signal?.aborted??!1))}})(),e},O=(r,t,n)=>{let e=n;return T(r,t,{...n,reasoning:n?.reasoning,toolChoice:n?.toolChoice,debug:e?.debug})};export{u as PiMessagesResponseError,T as stream,O as streamSimple};
@@ -0,0 +1,44 @@
1
+ // @bun
2
+ import{posix as ye,win32 as xe}from"path";import{execFile as G,spawn as W}from"child_process";import{closeSync as z,existsSync as x,mkdirSync as K,mkdtempSync as X,openSync as V,writeFileSync as Y}from"fs";import{mkdir as v,open as _,readdir as I,readFile as J,realpath as Z,stat as Q,writeFile as ee}from"fs/promises";import{constants as te,homedir as re,tmpdir as O}from"os";import{delimiter as k,dirname as w,join as b,matchesGlob as ne,relative as oe}from"path";import{Readable as se}from"stream";var y;class T{info={platform:process.platform,arch:process.arch,env:process.env,home:re(),tmpdir:O(),pty:typeof Bun<"u",rg:D("rg"),get windowsBash(){if(process.platform!=="win32")return;if(y&&x(y))return y;if(y=pe(),y)me(y);return y}};async stat(e){try{let r=await Q(e);return{kind:r.isFile()?"file":r.isDirectory()?"directory":"other",size:r.size,mtimeMs:r.mtimeMs}}catch(r){if(E(r)==="ENOENT"||E(r)==="ENOTDIR")return;throw r}}realpath(e){return Z(e)}async readdir(e){return(await I(e,{withFileTypes:!0})).map((r)=>({name:r.name,directory:r.isDirectory()}))}async readFile(e,r){if(!r)return J(e);let n=await _(e,"r");try{let s=Buffer.alloc(Math.max(0,r.end-r.start)),o=await n.read(s,0,s.length,r.start);return s.subarray(0,o.bytesRead)}finally{await n.close()}}async writeFile(e,r){await v(w(e),{recursive:!0}),await ee(e,r)}async mkdir(e){await v(e,{recursive:!0})}async glob(e,r){if(typeof Bun<"u")return(await Array.fromAsync(new Bun.Glob(e).scan({cwd:r,dot:!0}))).map((o)=>o.replaceAll("\\","/"));let n=(o)=>o.replace(/(^|\/)\./g,"$1\x00");return(await I(r,{recursive:!0,withFileTypes:!0})).filter((o)=>o.isFile()).map((o)=>oe(r,b(o.parentPath,o.name)).replaceAll("\\","/")).filter((o)=>ne(n(o),n(e)))}spawn(e,r){let n=process.platform==="win32"&&e[0]==="bash"&&this.info.windowsBash?[this.info.windowsBash,...e.slice(1)]:e;return r.pty?ce(n,r,r.pty):ie(n,r)}close(){}}var q=new T;function ie(e,r){let n=process.platform==="win32",s=Date.now(),o=r.outputToFile?b(X(b(O(),"basalt-job-")),"output"):void 0,i=o?V(o,"a"):void 0,a=W(e[0]??"",e.slice(1),{cwd:r.cwd,env:M({...C(r.tmpdir),...r.env},r.inheritEnv),stdio:[r.stdin?"pipe":"ignore",i??"pipe",i??"pipe"],detached:Boolean(r.group)&&!n,windowsHide:!0});if(i!==void 0)z(i);let c=Date.now(),f,p=new Promise((l,u)=>{a.once("error",u),a.once("exit",(h,g)=>l(g?128+(te.signals[g]??0):h??0))});p.catch(()=>{});let m=(l)=>{try{return se.toWeb(l)}catch{return new ReadableStream({start:(u)=>u.close()})}};return{stdout:o?ae(o,p):m(a.stdout),stderr:o?new ReadableStream({start:(l)=>l.close()}):m(a.stderr),exited:p,write:(l)=>new Promise((u,h)=>{if(!a.stdin)return h(Error("stdin is not open"));a.stdin.write(l,(g)=>g?h(g):u())}),end:()=>new Promise((l)=>a.stdin?a.stdin.end(l):l()),kill:async()=>{if(a.pid===void 0)return;let l=a.exitCode!==null||a.signalCode!==null;if(n){if(l){if(await new Promise((u)=>setTimeout(u,50)),a.stdout?.readableEnded&&a.stderr?.readableEnded)return}f??=ue(a.pid,s,c).catch((u)=>{throw f=void 0,u}),await f;return}if(!r.group&&l)return;le(a.pid,Boolean(r.group),()=>a.kill("SIGKILL"))},resize:()=>{}}}function ae(e,r){let n=0,s=!1;return r.then(()=>{s=!0},()=>{s=!0}),new ReadableStream({async pull(o){while(!0){let i=s,a=await _(e,"r");try{let c=new Uint8Array(65536),{bytesRead:f}=await a.read(c,0,c.length,n);if(f>0){n+=f,o.enqueue(c.subarray(0,f));return}}finally{await a.close()}if(i)return o.close();await new Promise((c)=>setTimeout(c,50))}}})}function ce(e,r,n){if(typeof Bun>"u")throw Error("PTY requires the host to run on Bun");let s=new TransformStream,o=s.writable.getWriter(),i=Bun.spawn(e,{cwd:r.cwd,env:M({...C(r.tmpdir),...r.env},r.inheritEnv),terminal:{cols:n.cols,rows:n.rows,name:"xterm-256color",data:(c,f)=>void o.write(f),exit:()=>void o.close().catch(()=>{})}}),a=i.exited.then((c)=>(setTimeout(()=>{i.terminal?.close(),o.close().catch(()=>{})},1000),c));return{stdout:s.readable,stderr:new ReadableStream({start:(c)=>c.close()}),exited:a,write:async(c)=>{i.terminal?.write(c)},end:async()=>{},kill:async()=>{if(i.exitCode===null)i.kill()},resize:(c,f)=>i.terminal?.resize(c,f)}}function le(e,r,n){try{if(r)process.kill(-e,"SIGKILL");else n()}catch(s){if(E(s)!=="ESRCH")throw s}}async function ue(e,r,n){let s=`
3
+ $ErrorActionPreference = 'Stop'
4
+ $floor = [DateTimeOffset]::FromUnixTimeMilliseconds(${r}).UtcDateTime
5
+ $all = @(Get-CimInstance Win32_Process)
6
+ $root = $all | Where-Object { $_.ProcessId -eq ${e} }
7
+ $ceiling = [DateTimeOffset]::FromUnixTimeMilliseconds(${n+1}).UtcDateTime
8
+ if ($root -and ($root.CreationDate.ToUniversalTime() -lt $floor -or $root.CreationDate.ToUniversalTime() -ge $ceiling)) { throw 'Process identity changed' }
9
+ $tree = @{}
10
+ $tree[${e}] = $floor
11
+ do {
12
+ $changed = $false
13
+ foreach ($p in $all) {
14
+ $id = [int]$p.ProcessId
15
+ $parent = [int]$p.ParentProcessId
16
+ if (!$p.CreationDate) { continue }
17
+ $created = $p.CreationDate.ToUniversalTime()
18
+ if (!$tree.ContainsKey($id) -and $tree.ContainsKey($parent) -and $created -ge $tree[$parent]) {
19
+ $tree[$id] = $created
20
+ $changed = $true
21
+ }
22
+ }
23
+ } while ($changed)
24
+ foreach ($p in @($all | Where-Object { $tree.ContainsKey([int]$_.ProcessId) } | Sort-Object CreationDate -Descending)) {
25
+ $live = $null
26
+ try { $live = [System.Diagnostics.Process]::GetProcessById([int]$p.ProcessId) }
27
+ catch { continue }
28
+ try {
29
+ if ([Math]::Abs(($live.StartTime.ToUniversalTime() - $p.CreationDate.ToUniversalTime()).TotalMilliseconds) -ge 1) { throw 'Process identity changed' }
30
+ if (!$live.HasExited) {
31
+ & taskkill.exe /PID $live.Id /F | Out-Null
32
+ if ($LASTEXITCODE -ne 0 -and !$live.HasExited) { throw 'Process termination failed' }
33
+ }
34
+ if (!$live.WaitForExit(2000)) { throw 'Process did not exit' }
35
+ } finally { $live.Dispose() }
36
+ }
37
+ exit 0
38
+ `;await new Promise((o,i)=>{G("powershell.exe",["-NoProfile","-NonInteractive","-Command",s],{windowsHide:!0,timeout:1e4,maxBuffer:64000},(a)=>{if(a)i(Error(`\u65E0\u6CD5\u7EC8\u6B62 Windows \u8FDB\u7A0B\u6811 ${e}\uFF0C\u8BF7\u68C0\u67E5\u8FDB\u7A0B\u6743\u9650\u6216\u7CFB\u7EDF\u7BA1\u7406\u670D\u52A1`,{cause:a}));else o()})})}function C(e){if(!e)return{};try{K(e,{recursive:!0});let r=b(e,".gitignore");if(!x(r))Y(r,`*
39
+ !.gitignore
40
+ `);return{TMPDIR:e,TEMP:e,TMP:e}}catch{return{}}}function M(e={},r){let s={...r===void 0?process.env:Object.fromEntries(Object.entries(process.env).filter(([o,i])=>r.includes(o)&&!i?.startsWith("()"))),...e};return Object.fromEntries(Object.entries(s).filter((o)=>o[1]!==void 0))}function E(e){return e instanceof Error&&"code"in e?e.code:void 0}function D(e){if(typeof Bun<"u")return Bun.which(e)??void 0;let r=process.platform==="win32"?(process.env.PATHEXT??".EXE").split(";"):[""];for(let n of(process.env.PATH??"").split(k).filter(Boolean))for(let s of r)if(x(b(n,e+s)))return b(n,e+s);return}function pe(){let e=(process.env.PATH??"").split(";").map((o)=>o.trim()).filter(Boolean),r=(o)=>{let i=o.replaceAll("\\","/").toLowerCase();return/\/windows\/(system32|sysnative|syswow64)\/bash\.exe$/.test(i)||i.includes("/windowsapps/")},n=process.env.LOCALAPPDATA;return[...e.map((o)=>b(o,"bash.exe")).filter((o)=>!r(o)),...e.filter((o)=>x(b(o,"git.exe"))).flatMap((o)=>[b(w(o),"bin","bash.exe"),b(w(o),"usr","bin","bash.exe")]),"C:\\Program Files\\Git\\bin\\bash.exe","C:\\Program Files\\Git\\usr\\bin\\bash.exe","C:\\Program Files (x86)\\Git\\bin\\bash.exe","C:\\Program Files (x86)\\Git\\usr\\bin\\bash.exe",...n?[b(n,"Programs","Git","bin","bash.exe"),b(n,"Programs","Git","usr","bin","bash.exe")]:[],"C:\\msys64\\usr\\bin\\bash.exe"].find((o)=>x(o))}function me(e){if(D("git"))return;let r=b(e.replace(/[\\/](usr[\\/])?bin[\\/]bash\.exe$/i,""),"cmd");if(x(b(r,"git.exe")))process.env.PATH=`${r}${k}${process.env.PATH??""}`}import{join as he}from"path";class ln{channel;info;messages;nextID=0;calls=new Map;procs=new Map;closed;constructor(e,r,n){this.channel=e;this.info=r;this.messages=n;this.listen()}static async connect(e,r=30000){let n=fe(e.readable)[Symbol.asyncIterator](),s;try{let o=await Promise.race([n.next(),new Promise((i,a)=>{s=setTimeout(()=>a(Error("host handshake timed out")),r)})]);if(o.done||o.value.t!=="hello")throw Error("host process exited before it was ready");return new ln(e,o.value.info,n)}catch(o){throw e.close(),o}finally{clearTimeout(s)}}stat(e){return this.call("stat",e)}realpath(e){return this.call("realpath",e)}readdir(e){return this.call("readdir",e)}readFile(e,r){return this.call("readFile",e,r)}async writeFile(e,r){await this.call("writeFile",e,r)}async mkdir(e){await this.call("mkdir",e)}glob(e,r){return this.call("glob",e,r)}spawn(e,r){let n=this.nextID++,s=new H((o,...i)=>this.call(o,n,...i));if(this.closed)s.fail(this.closed);else{this.procs.set(n,s);let o=Object.entries(r.env??{}).filter(([,i])=>i===void 0).map(([i])=>i);this.send({t:"spawn",h:n,argv:e,options:r,unsetEnv:o})}return s}get connected(){return this.closed===void 0}close(){this.shutdown(Error("host connection closed"))}call(e,...r){if(this.closed)return Promise.reject(this.closed);let n=this.nextID++,s=Promise.withResolvers();return this.calls.set(n,s),this.send({t:"call",id:n,op:e,args:r.map(ge)}),s.promise}send(e){try{Promise.resolve(this.channel.write(`${JSON.stringify(e)}
41
+ `)).catch((r)=>{this.shutdown(r instanceof Error?r:Error(String(r)))})}catch(r){this.shutdown(r instanceof Error?r:Error(String(r)))}}async listen(){try{for(let e=await this.messages.next();!e.done;e=await this.messages.next()){let r=e.value;if(r.t==="info")Object.assign(this.info,r.info);if(r.t==="ret"||r.t==="err"){let o=this.calls.get(r.id);if(this.calls.delete(r.id),r.t==="ret")o?.resolve(L(r.value));else o?.reject(Object.assign(Error(r.message),{code:r.code}))}let n="h"in r?r.h:-1,s=this.procs.get(n);if(!s)continue;if(r.t==="out")s.push(r.s,L(r.d));if(r.t==="eof")s.eof(r.s);if(r.t==="exit"&&r.message!==void 0)s.fail(Object.assign(Error(r.message),{code:r.errorCode}));if(r.t==="exit"&&r.code!==void 0)s.exit(r.code);if(s.finished)this.procs.delete(n)}this.shutdown(Error("host process disconnected"))}catch(e){this.shutdown(e instanceof Error?e:Error(String(e)))}}shutdown(e){if(this.closed)return;this.closed=e;for(let r of this.calls.values())r.reject(e);this.calls.clear();for(let r of this.procs.values())r.fail(e);this.procs.clear(),this.channel.close()}}class H{control;stdout;stderr;sinks=[];done=Promise.withResolvers();exited=this.done.promise;constructor(e){this.control=e;this.stdout=new ReadableStream({start:(r)=>{this.sinks[1]=r}},{highWaterMark:8388608,size:(r)=>r?.byteLength??0}),this.stderr=new ReadableStream({start:(r)=>{this.sinks[2]=r}},{highWaterMark:8388608,size:(r)=>r?.byteLength??0}),this.exited.catch(()=>{})}async write(e){await this.control("write",e)}async end(){await this.control("end")}async kill(){await this.control("kill").catch((e)=>{if(!(e instanceof Error&&e.message==="process not found"))throw e})}resize(e,r){this.control("resize",e,r).catch(()=>{})}push(e,r){let n=this.sinks[e];if(n?.desiredSize!==null&&n?.desiredSize!==void 0&&r.byteLength>n.desiredSize){this.fail(Error("remote process output exceeded the 8 MiB unread buffer")),this.kill().catch(()=>{});return}try{n?.enqueue(r)}catch{}}open=2;ended=!1;get finished(){return this.ended&&this.open===0}eof(e){this.open--;try{this.sinks[e]?.close()}catch{}}exit(e){this.ended=!0,this.done.resolve(e)}fail(e){this.ended=!0,this.open=0;for(let r of this.sinks)try{r?.error(e)}catch{}this.done.reject(e)}}async function io(e,r=q.info.home){let n=q.spawn(e,{cwd:r,stdin:!0}),s=new Response(n.stderr).text();try{return await ln.connect({readable:n.stdout,write:(o)=>n.write(o),close:()=>void n.kill().catch(()=>{})})}catch(o){await n.kill().catch(()=>{});let i=(await Promise.race([s,Bun.sleep(1000).then(()=>"")])).trim();throw Error(i?`${o.message}: ${i}`:o.message)}}async function*fe(e){let r=new TextDecoder,n=[],s=100663296,o=0;for await(let i of e){let a=0;for(let c=i.indexOf(10);c!==-1;c=i.indexOf(10,a)){if(o+=c-a,o>100663296)throw Error("host protocol message exceeds 96 MiB");n.push(i.subarray(a,c));let f=r.decode(n.length===1?n[0]:Buffer.concat(n));if(n.length=0,o=0,a=c+1,f)yield JSON.parse(f)}if(a<i.length){if(o+=i.length-a,o>100663296)throw Error("host protocol message exceeds 96 MiB");n.push(i.subarray(a))}}}function ge(e){return e instanceof Uint8Array?{$b:Buffer.from(e).toString("base64")}:e}function L(e){return e&&typeof e==="object"&&"$b"in e&&typeof e.$b==="string"?new Uint8Array(Buffer.from(e.$b,"base64")):e}var P;function N(){return Promise.resolve('var x=require("node:child_process"),f=require("node:fs"),m=require("node:fs/promises"),y=require("node:os"),d=require("node:path"),T=require("node:stream"),g;class A{info={platform:process.platform,arch:process.arch,env:process.env,home:y.homedir(),tmpdir:y.tmpdir(),pty:typeof Bun<"u",rg:I("rg"),get windowsBash(){if(process.platform!=="win32")return;if(g&&f.existsSync(g))return g;if(g=L(),g)z(g);return g}};async stat(e){try{let t=await m.stat(e);return{kind:t.isFile()?"file":t.isDirectory()?"directory":"other",size:t.size,mtimeMs:t.mtimeMs}}catch(t){if(E(t)==="ENOENT"||E(t)==="ENOTDIR")return;throw t}}realpath(e){return m.realpath(e)}async readdir(e){return(await m.readdir(e,{withFileTypes:!0})).map((t)=>({name:t.name,directory:t.isDirectory()}))}async readFile(e,t){if(!t)return m.readFile(e);let r=await m.open(e,"r");try{let a=Buffer.alloc(Math.max(0,t.end-t.start)),n=await r.read(a,0,a.length,t.start);return a.subarray(0,n.bytesRead)}finally{await r.close()}}async writeFile(e,t){await m.mkdir(d.dirname(e),{recursive:!0}),await m.writeFile(e,t)}async mkdir(e){await m.mkdir(e,{recursive:!0})}async glob(e,t){if(typeof Bun<"u")return(await Array.fromAsync(new Bun.Glob(e).scan({cwd:t,dot:!0}))).map((n)=>n.replaceAll("\\\\","/"));let r=(n)=>n.replace(/(^|\\/)\\./g,"$1\\x00");return(await m.readdir(t,{recursive:!0,withFileTypes:!0})).filter((n)=>n.isFile()).map((n)=>d.relative(t,d.join(n.parentPath,n.name)).replaceAll("\\\\","/")).filter((n)=>d.matchesGlob(r(n),r(e)))}spawn(e,t){let r=process.platform==="win32"&&e[0]==="bash"&&this.info.windowsBash?[this.info.windowsBash,...e.slice(1)]:e;return t.pty?D(r,t,t.pty):B(r,t)}close(){}}var H=new A;function B(e,t){let r=process.platform==="win32",a=Date.now(),n=t.outputToFile?d.join(f.mkdtempSync(d.join(y.tmpdir(),"basalt-job-")),"output"):void 0,o=n?f.openSync(n,"a"):void 0,i=x.spawn(e[0]??"",e.slice(1),{cwd:t.cwd,env:C({...O(t.tmpdir),...t.env},t.inheritEnv),stdio:[t.stdin?"pipe":"ignore",o??"pipe",o??"pipe"],detached:Boolean(t.group)&&!r,windowsHide:!0});if(o!==void 0)f.closeSync(o);let l=Date.now(),h,v=new Promise((p,s)=>{i.once("error",s),i.once("exit",(u,c)=>p(c?128+(y.constants.signals[c]??0):u??0))});v.catch(()=>{});let P=(p)=>{try{return T.Readable.toWeb(p)}catch{return new ReadableStream({start:(s)=>s.close()})}};return{stdout:n?F(n,v):P(i.stdout),stderr:n?new ReadableStream({start:(p)=>p.close()}):P(i.stderr),exited:v,write:(p)=>new Promise((s,u)=>{if(!i.stdin)return u(Error("stdin is not open"));i.stdin.write(p,(c)=>c?u(c):s())}),end:()=>new Promise((p)=>i.stdin?i.stdin.end(p):p()),kill:async()=>{if(i.pid===void 0)return;let p=i.exitCode!==null||i.signalCode!==null;if(r){if(p){if(await new Promise((s)=>setTimeout(s,50)),i.stdout?.readableEnded&&i.stderr?.readableEnded)return}h??=j(i.pid,a,l).catch((s)=>{throw h=void 0,s}),await h;return}if(!t.group&&p)return;M(i.pid,Boolean(t.group),()=>i.kill("SIGKILL"))},resize:()=>{}}}function F(e,t){let r=0,a=!1;return t.then(()=>{a=!0},()=>{a=!0}),new ReadableStream({async pull(n){while(!0){let o=a,i=await m.open(e,"r");try{let l=new Uint8Array(65536),{bytesRead:h}=await i.read(l,0,l.length,r);if(h>0){r+=h,n.enqueue(l.subarray(0,h));return}}finally{await i.close()}if(o)return n.close();await new Promise((l)=>setTimeout(l,50))}}})}function D(e,t,r){if(typeof Bun>"u")throw Error("PTY requires the host to run on Bun");let a=new TransformStream,n=a.writable.getWriter(),o=Bun.spawn(e,{cwd:t.cwd,env:C({...O(t.tmpdir),...t.env},t.inheritEnv),terminal:{cols:r.cols,rows:r.rows,name:"xterm-256color",data:(l,h)=>void n.write(h),exit:()=>void n.close().catch(()=>{})}}),i=o.exited.then((l)=>(setTimeout(()=>{o.terminal?.close(),n.close().catch(()=>{})},1000),l));return{stdout:a.readable,stderr:new ReadableStream({start:(l)=>l.close()}),exited:i,write:async(l)=>{o.terminal?.write(l)},end:async()=>{},kill:async()=>{if(o.exitCode===null)o.kill()},resize:(l,h)=>o.terminal?.resize(l,h)}}function M(e,t,r){try{if(t)process.kill(-e,"SIGKILL");else r()}catch(a){if(E(a)!=="ESRCH")throw a}}async function j(e,t,r){let a=`\n$ErrorActionPreference = \'Stop\'\n$floor = [DateTimeOffset]::FromUnixTimeMilliseconds(${t}).UtcDateTime\n$all = @(Get-CimInstance Win32_Process)\n$root = $all | Where-Object { $_.ProcessId -eq ${e} }\n$ceiling = [DateTimeOffset]::FromUnixTimeMilliseconds(${r+1}).UtcDateTime\nif ($root -and ($root.CreationDate.ToUniversalTime() -lt $floor -or $root.CreationDate.ToUniversalTime() -ge $ceiling)) { throw \'Process identity changed\' }\n$tree = @{}\n$tree[${e}] = $floor\ndo {\n $changed = $false\n foreach ($p in $all) {\n $id = [int]$p.ProcessId\n $parent = [int]$p.ParentProcessId\n if (!$p.CreationDate) { continue }\n $created = $p.CreationDate.ToUniversalTime()\n if (!$tree.ContainsKey($id) -and $tree.ContainsKey($parent) -and $created -ge $tree[$parent]) {\n $tree[$id] = $created\n $changed = $true\n }\n }\n} while ($changed)\nforeach ($p in @($all | Where-Object { $tree.ContainsKey([int]$_.ProcessId) } | Sort-Object CreationDate -Descending)) {\n $live = $null\n try { $live = [System.Diagnostics.Process]::GetProcessById([int]$p.ProcessId) }\n catch { continue }\n try {\n if ([Math]::Abs(($live.StartTime.ToUniversalTime() - $p.CreationDate.ToUniversalTime()).TotalMilliseconds) -ge 1) { throw \'Process identity changed\' }\n if (!$live.HasExited) {\n & taskkill.exe /PID $live.Id /F | Out-Null\n if ($LASTEXITCODE -ne 0 -and !$live.HasExited) { throw \'Process termination failed\' }\n }\n if (!$live.WaitForExit(2000)) { throw \'Process did not exit\' }\n } finally { $live.Dispose() }\n}\nexit 0\n`;await new Promise((n,o)=>{x.execFile("powershell.exe",["-NoProfile","-NonInteractive","-Command",a],{windowsHide:!0,timeout:1e4,maxBuffer:64000},(i)=>{if(i)o(Error(`\u65E0\u6CD5\u7EC8\u6B62 Windows \u8FDB\u7A0B\u6811 ${e}\uFF0C\u8BF7\u68C0\u67E5\u8FDB\u7A0B\u6743\u9650\u6216\u7CFB\u7EDF\u7BA1\u7406\u670D\u52A1`,{cause:i}));else n()})})}function O(e){if(!e)return{};try{f.mkdirSync(e,{recursive:!0});let t=d.join(e,".gitignore");if(!f.existsSync(t))f.writeFileSync(t,`*\n!.gitignore\n`);return{TMPDIR:e,TEMP:e,TMP:e}}catch{return{}}}function C(e={},t){let a={...t===void 0?process.env:Object.fromEntries(Object.entries(process.env).filter(([n,o])=>t.includes(n)&&!o?.startsWith("()"))),...e};return Object.fromEntries(Object.entries(a).filter((n)=>n[1]!==void 0))}function E(e){return e instanceof Error&&"code"in e?e.code:void 0}function I(e){if(typeof Bun<"u")return Bun.which(e)??void 0;let t=process.platform==="win32"?(process.env.PATHEXT??".EXE").split(";"):[""];for(let r of(process.env.PATH??"").split(d.delimiter).filter(Boolean))for(let a of t)if(f.existsSync(d.join(r,e+a)))return d.join(r,e+a);return}function L(){let e=(process.env.PATH??"").split(";").map((n)=>n.trim()).filter(Boolean),t=(n)=>{let o=n.replaceAll("\\\\","/").toLowerCase();return/\\/windows\\/(system32|sysnative|syswow64)\\/bash\\.exe$/.test(o)||o.includes("/windowsapps/")},r=process.env.LOCALAPPDATA;return[...e.map((n)=>d.join(n,"bash.exe")).filter((n)=>!t(n)),...e.filter((n)=>f.existsSync(d.join(n,"git.exe"))).flatMap((n)=>[d.join(d.dirname(n),"bin","bash.exe"),d.join(d.dirname(n),"usr","bin","bash.exe")]),"C:\\\\Program Files\\\\Git\\\\bin\\\\bash.exe","C:\\\\Program Files\\\\Git\\\\usr\\\\bin\\\\bash.exe","C:\\\\Program Files (x86)\\\\Git\\\\bin\\\\bash.exe","C:\\\\Program Files (x86)\\\\Git\\\\usr\\\\bin\\\\bash.exe",...r?[d.join(r,"Programs","Git","bin","bash.exe"),d.join(r,"Programs","Git","usr","bin","bash.exe")]:[],"C:\\\\msys64\\\\usr\\\\bin\\\\bash.exe"].find((n)=>f.existsSync(n))}function z(e){if(I("git"))return;let t=d.join(e.replace(/[\\\\/](usr[\\\\/])?bin[\\\\/]bash\\.exe$/i,""),"cmd");if(f.existsSync(d.join(t,"git.exe")))process.env.PATH=`${t}${d.delimiter}${process.env.PATH??""}`}var G=["stat","realpath","readdir","readFile","writeFile","mkdir","glob"];async function R(e,t,r=H){let a=Promise.withResolvers(),n=async(s)=>{try{await t(`${JSON.stringify(s)}\n`)}catch(u){a.reject(u)}},o=new Map;a.promise.catch(()=>{});let i=()=>({...r.info,env:Object.fromEntries(Object.entries(r.info.env).filter(([s,u])=>["path","shell","lang"].includes(s.toLowerCase())&&!u?.startsWith("()")))}),l=i();await n({t:"hello",info:l});let h=()=>{let s=i();if(s.windowsBash===l.windowsBash)return;l=s,n({t:"info",info:s})},v=async(s,u)=>{if(G.includes(s))return r[s].apply(r,u);let c=o.get(u[0]);if(!c)throw Error("process not found");if(s==="write")return c.write(u[1]);if(s==="end")return c.end();if(s==="kill")return c.kill();if(s==="resize")return c.resize(u[1],u[2]);throw Error(`unknown op ${s}`)},P=async(s,u,c)=>{for await(let w of u)await n({t:"out",h:s,s:c,d:U(w)});await n({t:"eof",h:s,s:c})},p=(s,u,c)=>{try{let w=r.spawn(u,c);o.set(s,w);let b=Promise.all([P(s,w.stdout,1),P(s,w.stderr,2)]).catch(()=>{});w.exited.then((k)=>{n({t:"exit",h:s,code:k}),b.then(()=>o.delete(s))},(k)=>{o.delete(s),n({t:"exit",h:s,...S(k)})})}catch(w){n({t:"exit",h:s,...S(w)})}};try{let s=W(e)[Symbol.asyncIterator]();for(;;){let u=await Promise.race([s.next(),a.promise]);if(u.done)break;let c=u.value;if(c.t==="spawn"){let w={...c.options.env};for(let b of c.unsetEnv??[])w[b]=void 0;p(c.h,c.argv,{...c.options,env:w}),h()}if(c.t!=="call")continue;v(c.op,c.args.map(_)).then((w)=>n({t:"ret",id:c.id,value:U(w)}),(w)=>{let b=S(w);n({t:"err",id:c.id,message:b.message,code:b.errorCode})})}}finally{await Promise.all([...o.values()].map((s)=>s.kill().catch(()=>{})))}}async function*W(e){let t=new TextDecoder,r=[],a=100663296,n=0;for await(let o of e){let i=0;for(let l=o.indexOf(10);l!==-1;l=o.indexOf(10,i)){if(n+=l-i,n>100663296)throw Error("host protocol message exceeds 96 MiB");r.push(o.subarray(i,l));let h=t.decode(r.length===1?r[0]:Buffer.concat(r));if(r.length=0,n=0,i=l+1,h)yield JSON.parse(h)}if(i<o.length){if(n+=o.length-i,n>100663296)throw Error("host protocol message exceeds 96 MiB");r.push(o.subarray(i))}}}function U(e){return e instanceof Uint8Array?{$b:Buffer.from(e).toString("base64")}:e}function _(e){return e&&typeof e==="object"&&"$b"in e&&typeof e.$b==="string"?new Uint8Array(Buffer.from(e.$b,"base64")):e}function S(e){if(!(e instanceof Error))return{message:String(e)};return{message:e.message,errorCode:"code"in e&&typeof e.code==="string"?e.code:void 0}}R(process.stdin,(e)=>new Promise((t,r)=>{process.stdout.write(e,(a)=>a?r(a):t())})).then(()=>process.exit(0),(e)=>{console.error(e instanceof Error?e.message:String(e)),process.exit(1)});\n')}async function U(e,r="ssh"){if(!e.trim()||e.startsWith("-"))throw Error(`invalid ssh destination: ${e}`);let s=`import{createRequire}from"node:module";const require=createRequire(import.meta.url);eval(Buffer.from("${Buffer.from(await N()).toString("base64")}","base64").toString())`;return[r,"-T","-o","BatchMode=yes","-o","ForwardAgent=no","-o","ForwardX11=no","-o","ClearAllForwardings=yes","-o","ControlPath=none","-o","StrictHostKeyChecking=yes","-o","ConnectTimeout=15","-o","ServerAliveInterval=15","-o","ServerAliveCountMax=3",e,`sh -c '${'PATH="$HOME/.bun/bin:$PATH"; if command -v bun >/dev/null 2>&1; then exec bun -e "$0"; fi; if command -v node >/dev/null 2>&1; then exec node --input-type=module -e "$0"; fi; echo "basalt: bun or node is required on the remote host" >&2; exit 127'}' '${s}'`]}class dt{destination;connect;connection;snapshot;disposed=!1;constructor(e,r=async(n)=>io(await U(n))){this.destination=e;this.connect=r}get info(){if(!this.snapshot)throw Error(`remote host ${this.destination} is not connected yet`);return this.snapshot}async ready(){return await this.remote(),this}async stat(e){return(await this.remote()).stat(e)}async realpath(e){return(await this.remote()).realpath(e)}async readdir(e){return(await this.remote()).readdir(e)}async readFile(e,r){return(await this.remote()).readFile(e,r)}async writeFile(e,r){return(await this.remote()).writeFile(e,r)}async mkdir(e){return(await this.remote()).mkdir(e)}async glob(e,r){return(await this.remote()).glob(e,r)}spawn(e,r){return be(this.remote(),(n)=>n.spawn(e,r))}close(){this.disposed=!0;let e=this.connection;this.connection=void 0,e?.then((r)=>r.close()).catch(()=>{})}remote(){if(this.disposed)return Promise.reject(Error(`remote host ${this.destination} is closed`));let e=this.connection;if(e)return e.then((r)=>r.connected?r:this.reconnect(e));return this.reconnect(void 0)}reconnect(e){if(this.connection!==e&&this.connection)return this.remote();let r=this.connect(this.destination).then((n)=>{if(this.disposed)throw n.close(),Error(`remote host ${this.destination} is closed`);return this.snapshot=n.info,n});return this.connection=r,r.catch(()=>{if(this.connection===r)this.connection=void 0}),r}}function be(e,r){let n=!1,s,o=Promise.withResolvers(),i=Promise.race([e.then((p)=>{if(n)throw Error("process cancelled before start");return s=r(p),s}),o.promise]),a=new TransformStream,c=new TransformStream;i.then((p)=>{p.stdout.pipeTo(a.writable).catch(()=>{}),p.stderr.pipeTo(c.writable).catch(()=>{})},(p)=>{a.writable.abort(p).catch(()=>{}),c.writable.abort(p).catch(()=>{})});let f=i.then((p)=>p.exited);return f.catch(()=>{}),{stdout:a.readable,stderr:c.readable,exited:f,write:async(p)=>(await i).write(p),end:async()=>(await i).end(),kill:async()=>{if(n=!0,s)await s.kill();else o.reject(Error("process cancelled before start"))},resize:(p,m)=>void i.then((l)=>l.resize(p,m)).catch(()=>{})}}function de(e){return e.info.platform==="win32"?xe:ye}var Si="basalt.digest",xi="basalt.notice",cr="shell-guard",Ra=["done","error","aborted","interrupted","waiting_user"];class t extends Error{constructor(e){super(e);this.name="BadRequestError"}}class d extends Error{constructor(e){super(e);this.name="NotFoundError"}}var Ht="chatgpt:subscription";function B(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"")}function F(e){return new Set(e.toLowerCase().split(/[^a-z0-9]+/).filter(Boolean))}function Se(e,r){if(e===r)return 0;let n=Array.from({length:r.length+1},(s,o)=>o);for(let s=1;s<=e.length;s++){let o=n[0]??0;n[0]=s;for(let i=1;i<=r.length;i++){let a=n[i]??0;n[i]=Math.min((n[i]??0)+1,(n[i-1]??0)+1,o+(e[s-1]===r[i-1]?0:1)),o=a}}return n[r.length]??0}function j(e,r){let n=B(e);if(!n)return[];let s=F(e),o=[];for(let i of r){let a=i.id.indexOf("/"),c=a>=0?i.id.slice(a+1):"",p=[i.id,i.name,c].filter(Boolean).map((l)=>({compact:B(l),tokens:F(l)})).filter((l)=>l.compact.length>0),m=Number.POSITIVE_INFINITY;for(let l of p)if(l.compact===n)m=Math.min(m,0);else if(l.compact.includes(n)||n.includes(l.compact)){let u=Math.abs(l.compact.length-n.length);m=Math.min(m,1+u/Math.max(l.compact.length,n.length))}else{let u=0;for(let h of s)if(l.tokens.has(h))u++;if(u>0){let h=u/Math.max(s.size,l.tokens.size);m=Math.min(m,10+(1-h)*10)}}if(!Number.isFinite(m)&&n.length>=4){let l=Math.max(2,Math.floor(n.length*0.34));for(let u of p){if(Math.abs(u.compact.length-n.length)>l)continue;let h=Se(n,u.compact);if(h<=l)m=Math.min(m,100+h)}}if(Number.isFinite(m))o.push({model:i,score:m})}return o.sort((i,a)=>i.score-a.score||i.model.id.localeCompare(a.model.id))}function Ee(e,r,n=5){return j(e,r).slice(0,Math.max(1,n)).map((s)=>s.model)}function Ca(e,r){let n=j(e,r);if(n.length===0)return;let s=n.filter((i)=>i.score===0);if(s.length===1&&s[0])return s[0].model;if(s.length>1)return;let o=n.filter((i)=>i.score<10);if(o.length===1&&o[0])return o[0].model;return}function Ia(e,r){let n=[...r].sort((a,c)=>a.id.localeCompare(c.id)),s=(a)=>a.name===a.id?a.id:`${a.id} (${a.name})`,o=Ee(e,n).map(s),i=n.map(s);return[`unknown model ${e}`,`closest matches: ${o.length>0?o.join(", "):"none"}`,`available models (${i.length}): ${i.length>0?i.join(", "):"none"}`,"Use one of the listed provider/model IDs."].join(`
42
+ `)}var un=["openai-completions","openai-responses","anthropic-messages"];function so(e){if(typeof e==="number")return Number.isFinite(e)&&e>0?Math.round(e):void 0;if(typeof e!=="string")return;let r=e.trim().toLowerCase();if(!r)return;let n=r.match(/^(\d+(?:\.\d+)?)\s*(k|m)?(?:i?b|tokens?)?$/);if(!n)return;let s=Number.parseFloat(n[1]??"");if(!Number.isFinite(s)||s<=0)return;let o=n[2];if(o==="k")return Math.round(s*1000);if(o==="m")return Math.round(s*1e6);return Math.round(s)}function R(e){if(e>=1e6&&e%1e5===0)return`${e/1e6}m`;if(e>=1000&&e%1000===0)return`${e/1000}k`;return String(e)}function Te(e){let r=e.trim();if(!r)return;let n,s,o=r,i=o.match(/\s*\[(.*?)\]\s*$/);if(i&&i.index!==void 0){o=o.slice(0,i.index).trim();let m=i[1]?.split(",").map((u)=>u.trim()).filter(Boolean)??[],l=0;for(let u of m){let h=u.indexOf("=");if(h>=0){let g=u.slice(0,h).trim().toLowerCase(),A=so(u.slice(h+1).trim());if(g==="context"||g==="ctx"||g==="window"||g==="contextwindow")n=A;else if(g==="max"||g==="output"||g==="maxtokens")s=A}else{let g=so(u);if(l===0)n=g;else if(l===1)s=g;l++}}}else{let m=o.match(/^(.*?=.*?):(\d+(?:\.\d+)?[kmKM]?|\d{5,})\s*$/);if(m?.[1]&&m[2])o=m[1].trim(),n=so(m[2])}let a=o.indexOf("="),c,f;if(a<0)c=o.trim(),f=c;else c=o.slice(0,a).trim(),f=o.slice(a+1).trim()||c;if(!c)return;let p={id:c,name:f};if(n!==void 0)p.contextWindow=n;if(s!==void 0)p.maxTokens=s;return p}function pn(e){return e.split(/\r?\n/).map(Te).filter((r)=>r!==void 0)}function Ts(e){return e.map((r)=>{let n=r.name===r.id?r.id:`${r.id}=${r.name}`,s=[];if(r.contextWindow!==void 0)s.push(R(r.contextWindow));if(r.maxTokens!==void 0)if(r.contextWindow!==void 0)s.push(R(r.maxTokens));else s.push(`max=${R(r.maxTokens)}`);return s.length>0?`${n} [${s.join(", ")}]`:n}).join(`
43
+ `)}var Ma=["react","react-dom","react/jsx-runtime","react/jsx-dev-runtime","@basalt/plugin/web","@basalt/ui"];var Pe=["http","https"];var Oa="provider:",La="oauth:openai",dn="update:registry";function ks(e){let r=e.trim();if(!r)throw Error("\u8BF7\u8F93\u5165\u4EE3\u7406\u4E3B\u673A\u6216\u5B8C\u6574\u5730\u5740");let n;try{n=new URL(/^[a-z][a-z\d+.-]*:\/\//i.test(r)?r:`http://${r}`)}catch{throw Error("\u4EE3\u7406\u5730\u5740\u65E0\u6548")}if(!Re(n.protocol))throw Error("\u4EC5\u652F\u6301 http:// \u6216 https:// \u4EE3\u7406");if(n.username||n.password||n.pathname!=="/"||n.search||n.hash)throw Error("\u4EE3\u7406\u5730\u5740\u53EA\u80FD\u5305\u542B\u534F\u8BAE\u3001\u4E3B\u673A\u548C\u7AEF\u53E3\uFF1B\u8D26\u53F7\u5BC6\u7801\u8BF7\u5355\u72EC\u586B\u5199");return{protocol:n.protocol==="https:"?"https":"http",hostname:n.hostname.replace(/^\[|\]$/g,""),port:n.port?Number(n.port):n.protocol==="https:"?443:8080}}function Re(e){return Pe.some((r)=>`${r}:`===e)}function Da(e){return e.startsWith("provider:")&&e.length>9}var ao=["user","assistant","thinking","tool_input","tool_output","error","attachment","notice","extension","title"],Na=["text","regex"],Ua=["best","recent"],Fa=["session","none"];var Mr=4,Ba="https://basalt.work",$a=["https://basalt.work","https://www.basalt.work"],vi=7420;var Ps=["auto","bash","powershell","cmd"];var Rs=["active","archived","all"],ja="session.group";var _i=["pending","in_progress","completed"],Cs="basalt-session",Ei=["image","text","path"],Ot="@blob:";var Wa=["defer","always"],Ha=["global","tool","source"];function we(e,r){if(e.toLowerCase()!=="tool_call"||!r||typeof r!=="object")return{name:e,input:r};let n=r;if(typeof n.name!=="string"||!n.name.trim())return{name:e,input:r};if(n.arguments===void 0)return{name:n.name,input:{},source:{name:"tool_call",input:r}};if(!n.arguments||typeof n.arguments!=="object"||Array.isArray(n.arguments))return{name:e,input:r};return{name:n.name,input:n.arguments,source:{name:"tool_call",input:r}}}function za(e){return/eyJ[A-Za-z0-9+/=_-]{16,}/.exec(e)?.[0]}var Is="x-basalt-remote-authorization",Ai="cf-access-token";import{homedir as Ae}from"os";import{join as S}from"path";function Ke(e=process.env){if(e.BASALT_HOME)return e.BASALT_HOME;let r=Ae();if(process.platform==="win32")return S(e.LOCALAPPDATA??S(r,"AppData","Local"),"basalt");if(process.platform==="darwin")return S(r,"Library","Application Support","basalt");return S(e.XDG_DATA_HOME??S(r,".local","share"),"basalt")}function wi(e,r=q){return de(r).join(e,".basalt","tmp")}
44
+ export{q,ln,io,dt,de,Ke,wi,Si,xi,cr,Ra,t,d,Ht,Ca,Ia,un,so,pn,Ts,Ma,Oa,La,dn,ks,Da,ao,Na,Ua,Fa,Mr,Ba,$a,vi,Ps,Rs,ja,_i,Cs,Ei,Ot,Wa,Ha,we,za,Is,Ai};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ import{A}from"./chunk-a5wv2shs.js";var a={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function p(e,r){let o=e.toLowerCase(),t=e.toUpperCase();return r?.[o]||r?.[t]||A(o)||A(t)||""}function f(e){if(e instanceof URL)return e;try{return new URL(e)}catch{return}}function u(e){return e.startsWith("[")&&e.endsWith("]")?e.slice(1,-1):e}function l(e){let r=e.trim().toLowerCase();if(!r)return;if(r.startsWith("[")){let t=r.indexOf("]");if(t!==-1){let n=r.slice(1,t),c=r.slice(t+1);if(c.startsWith(":")){let s=Number.parseInt(c.slice(1),10);return{host:n,port:Number.isNaN(s)?0:s}}return{host:n,port:0}}}if(r.includes(":")&&r.split(":").length>2)return{host:r,port:0};let o=r.lastIndexOf(":");if(o!==-1&&o===r.indexOf(":")){let t=r.slice(0,o),n=Number.parseInt(r.slice(o+1),10);if(!Number.isNaN(n))return{host:t,port:n}}return{host:r,port:0}}function d(e,r,o){let t=p("no_proxy",o).toLowerCase();if(!t)return!0;if(t==="*")return!1;let n=u(e.toLowerCase());return t.split(/[,\s]/).every((c)=>{let s=l(c);if(!s)return!0;if(s.port&&s.port!==r)return!0;let i=u(s.host);if(i.startsWith("*."))i=i.slice(2);else if(i.startsWith(".")||i.startsWith("*"))i=i.slice(1);if(!i)return!0;if(n===i)return!1;if(n.endsWith(`.${i}`))return!1;return!0})}function h(e,r){let o=f(e);if(!o?.protocol||!o.host)return"";let t=o.protocol.split(":",1)[0],n=u(o.hostname||o.host.replace(/:\d*$/,"")),c=Number.parseInt(o.port,10)||a[t]||0;if(!d(n,c,r))return"";let s=p(`${t}_proxy`,r)||p("all_proxy",r);if(s&&!s.includes("://"))s=`${t}://${s}`;return s}var x="Unsupported proxy protocol. SOCKS and PAC proxy URLs are not supported; use an HTTP or HTTPS proxy URL.";function Wn(e,r){let o=h(e,r);if(!o)return;let t;try{t=new URL(o)}catch(n){throw Error(`Invalid proxy URL ${JSON.stringify(o)}: ${n instanceof Error?n.message:String(n)}`)}if(t.protocol!=="http:"&&t.protocol!=="https:")throw Error(`${x} Got ${t.protocol}`);return t}
3
+ export{Wn};
@@ -0,0 +1,51 @@
1
+ // @bun
2
+ import{tt}from"./chunk-2xj51v3m.js";import{dn,vi}from"./chunk-s9p624fq.js";import{mkdirSync as At}from"fs";import{join as vt}from"path";import{existsSync as d,mkdirSync as h,rmSync as f,writeFileSync as x}from"fs";import{homedir as R}from"os";import{dirname as P,join as l}from"path";import{closeSync as Z,existsSync as B,mkdirSync as J,openSync as q,readdirSync as K,readFileSync as p,rmSync as X,writeFileSync as Q}from"fs";import{join as g,resolve as N}from"path";var _=20000,rt=262144;function a(t){return g(t,"basalt.log")}function A(t){try{let r=JSON.parse(p(t,"utf8"));if(typeof r!=="object"||r===null)return;let e=r;if(typeof e.pid!=="number"||!Number.isInteger(e.pid)||e.pid<=0)return;if(typeof e.url!=="string")return;let n=new URL(e.url);if(n.protocol!=="http:"&&n.protocol!=="https:")return;let s=Array.isArray(e.argv)&&e.argv.every((i)=>typeof i==="string")?e.argv.map((i)=>String(i)):void 0;return{pid:e.pid,url:e.url,...typeof e.hwnd==="number"&&Number.isInteger(e.hwnd)&&e.hwnd>0?{hwnd:e.hwnd}:{},...s?{argv:s}:{},...typeof e.cwd==="string"&&e.cwd?{cwd:e.cwd}:{},...typeof e.secret==="string"&&e.secret?{secret:e.secret}:{}}}catch{return}}function v(t){try{return process.kill(t,0),!0}catch{return!1}}async function ze(t,r){let e=g(t,"server.json");if(!B(e))return;let n=A(e);if(!n||r!==void 0&&n.pid!==r)return;return T(n.pid)?n:void 0}async function I(t,r=1500){try{return(await fetch(`${t.url}/api/info`,{signal:AbortSignal.timeout(r)})).ok}catch{return!1}}function T(t){if(!u(t))return!1;let r=et(t);return r===void 0||/bun|basalt/i.test(r)}function u(t){if(!v(t))return!1;if(process.platform!=="linux")return!0;try{return p(`/proc/${t}/stat`,"utf8").split(") ")[1]?.[0]!=="Z"}catch{return!0}}function et(t){try{if(process.platform==="linux")return p(`/proc/${t}/cmdline`,"utf8");let r=process.platform==="win32"?Bun.spawnSync(["tasklist","/FI",`PID eq ${t}`,"/FO","CSV","/NH"],{windowsHide:!0}):Bun.spawnSync(["ps","-p",String(t),"-o","command="]);return r.success?r.stdout.toString():void 0}catch{return}}function $s(t,r){J(t,{recursive:!0});let e=g(t,`${process.pid}.json`);return Q(e,JSON.stringify({dataDir:N(r)})),e}async function j(t){if(!B(t))return[];let r=[];for(let e of K(t)){let n=/^(\d+)\.json$/.exec(e);if(!n)continue;let s=g(t,e),i=Number(n[1]);if(!u(i)){X(s,{force:!0});continue}let o;try{o=JSON.parse(p(s,"utf8"))}catch{continue}if(!o||typeof o!=="object"||!("dataDir"in o)||typeof o.dataDir!=="string")continue;let c=await ze(o.dataDir,i);if(c)r.push({dataDir:o.dataDir,service:c})}return r}async function hn(t,r){if(r?.secret&&r.pid===t){let e=new URL(r.url);if(["127.0.0.1","localhost","[::1]"].includes(e.hostname))try{if((await fetch(new URL("/api/server/shutdown",e),{method:"POST",headers:{authorization:`Bearer ${r.secret}`},redirect:"error",signal:AbortSignal.timeout(2000)})).ok){for(let s=0;s<220&&u(t);s++)await Bun.sleep(100);if(!u(t))return}}catch(n){if(u(t))console.warn("\u6B63\u5E38\u5173\u505C\u8BF7\u6C42\u5931\u8D25\uFF0C\u56DE\u9000\u5230\u8FDB\u7A0B\u4FE1\u53F7\uFF1A",n instanceof Error?n.message:String(n))}}try{process.kill(t,"SIGTERM")}catch{return}for(let e=0;e<50&&u(t);e++)await Bun.sleep(100);if(u(t)){try{process.kill(t,"SIGKILL")}catch(e){if(!(e instanceof Error&&("code"in e)&&e.code==="ESRCH"))console.error(`\u65E0\u6CD5\u5F3A\u5236\u7ED3\u675F\u8FDB\u7A0B ${t}\uFF1A`,e)}await Bun.sleep(200)}}function fn(t,r){let e=[];for(let n=0;n<t.length;n++){let s=t[n];if(s===void 0)continue;if(s==="--data"){n++;continue}if(s.startsWith("--data=")||s==="--open"||s==="--replace"||s==="--foreground")continue;e.push(s)}return[...e,"--data",N(r)]}async function H(t){if(t.command.length===0)throw Error("\u7F3A\u5C11\u540E\u53F0\u670D\u52A1\u542F\u52A8\u5165\u53E3");let r=q(a(t.dataDir),"a",384),e;try{e=Bun.spawn([...t.command,...t.args.filter((s)=>s!=="--foreground"),"--foreground"],{cwd:t.cwd??process.cwd(),detached:!0,stdio:["ignore",r,r],windowsHide:!0})}finally{Z(r)}e.unref();let n=Date.now()+_;while(Date.now()<n){if(e.exitCode!==null)throw Error(`\u670D\u52A1\u8FDB\u7A0B\u5728\u5C31\u7EEA\u524D\u9000\u51FA\uFF08\u9000\u51FA\u7801 ${e.exitCode}\uFF09`);let s=await ze(t.dataDir,e.pid);if(s)return s;await Bun.sleep(100)}throw await hn(e.pid),Error(`\u7B49\u5F85\u670D\u52A1\u5C31\u7EEA\u8D85\u65F6\uFF08${_/1000} \u79D2\uFF09`)}async function M(t){let r=Bun.file(a(t));if(!await r.exists()||r.size===0)return;let e=Math.max(0,r.size-rt),n=await r.slice(e).text();if(e>0){let s=n.indexOf(`
3
+ `);if(s>=0)n=n.slice(s+1)}return n||void 0}var W="work.basalt",S="basalt.service",nt=`
4
+ [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
5
+ $shell = New-Object -ComObject WScript.Shell
6
+ $link = $shell.CreateShortcut($env:BASALT_AUTOSTART_SHORTCUT)
7
+ $link.TargetPath = $env:BASALT_AUTOSTART_WSCRIPT
8
+ $link.Arguments = '"' + $env:BASALT_AUTOSTART_SCRIPT + '"'
9
+ $link.WorkingDirectory = $env:BASALT_AUTOSTART_CWD
10
+ $link.Description = "Basalt"
11
+ $link.Save()
12
+ `;function L(){let t=process.env.APPDATA??l(R(),"AppData","Roaming");return l(t,"Microsoft","Windows","Start Menu","Programs","Startup","Basalt.lnk")}function C(t){return l(t,"autostart.vbs")}function E(){return l(R(),"Library","LaunchAgents",`${W}.plist`)}function D(){let t=process.env.XDG_CONFIG_HOME??l(R(),".config");return l(t,"systemd","user",S)}function st(t){if(t&&!/[\s"]/.test(t))return t;let r='"',e=0;for(let n of t){if(n==="\\"){e++;continue}if(n==='"'){r+=`${"\\".repeat(e*2+1)}"`,e=0;continue}r+=`${"\\".repeat(e)}${n}`,e=0}return`${r}${"\\".repeat(e*2)}"`}function V(t){return`"${t.replaceAll('"','""')}"`}function it(t,r){let e=t.map(st).join(" ");return['Set shell = CreateObject("WScript.Shell")',`shell.CurrentDirectory = ${V(r)}`,`shell.Run ${V(e)}, 0, False`,""].join(`
13
+ `)}function m(t){return t.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&apos;")}function ot(t,r,e){let n=t.map((s)=>` <string>${m(s)}</string>`).join(`
14
+ `);return`<?xml version="1.0" encoding="UTF-8"?>
15
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
16
+ <plist version="1.0">
17
+ <dict>
18
+ <key>Label</key>
19
+ <string>${W}</string>
20
+ <key>ProgramArguments</key>
21
+ <array>
22
+ ${n}
23
+ </array>
24
+ <key>WorkingDirectory</key>
25
+ <string>${m(r)}</string>
26
+ <key>RunAtLoad</key>
27
+ <true/>
28
+ <key>StandardOutPath</key>
29
+ <string>${m(e)}</string>
30
+ <key>StandardErrorPath</key>
31
+ <string>${m(e)}</string>
32
+ </dict>
33
+ </plist>
34
+ `}function w(t){return`"${t.replaceAll("\\","\\\\").replaceAll('"',"\\\"").replaceAll(`
35
+ `,"\\n").replaceAll("\r","\\r").replaceAll("\t","\\t").replaceAll("%","%%")}"`}function at(t){return w(t.replaceAll("$","$$$$"))}function ct(t,r,e){return`[Unit]
36
+ Description=Basalt
37
+
38
+ [Service]
39
+ WorkingDirectory=${w(r)}
40
+ ExecStart=${t.map(at).join(" ")}
41
+ StandardInput=null
42
+ StandardOutput=${w(`append:${e}`)}
43
+ StandardError=${w(`append:${e}`)}
44
+
45
+ [Install]
46
+ WantedBy=default.target
47
+ `}function y(t){let r=(()=>{try{return Bun.spawnSync(["systemctl","--user",...t],{stdout:"pipe",stderr:"pipe"})}catch(e){throw Error(`\u65E0\u6CD5\u6267\u884C systemctl --user\uFF1A${e instanceof Error?e.message:String(e)}`)}})();if(r.exitCode!==0){let e=r.stderr.toString().trim()||r.stdout.toString().trim();throw Error(`systemctl --user ${t.join(" ")} \u5931\u8D25${e?`\uFF1A${e}`:""}`)}}function ut(t){let r=L(),e=C(t.dataDir),n=it([...t.command,...t.args],t.cwd);x(e,Buffer.from(`\uFEFF${n}`,"utf16le")),h(P(r),{recursive:!0});let s=l(process.env.SystemRoot??"C:/Windows","System32","wscript.exe"),i=Bun.spawnSync(["powershell","-NoProfile","-NonInteractive","-Command",nt],{env:{...process.env,BASALT_AUTOSTART_SHORTCUT:r,BASALT_AUTOSTART_WSCRIPT:s,BASALT_AUTOSTART_SCRIPT:e,BASALT_AUTOSTART_CWD:t.cwd},stdout:"pipe",stderr:"pipe",windowsHide:!0});if(i.exitCode!==0){let o=i.stderr.toString().trim();throw Error(`\u521B\u5EFA Windows \u767B\u5F55\u542F\u52A8\u9879\u5931\u8D25${o?`\uFF1A${o}`:""}`)}return r}function ho(t){if(t.command.length===0)throw Error("\u7F3A\u5C11\u81EA\u542F\u547D\u4EE4\u5165\u53E3");h(t.dataDir,{recursive:!0});let r=t.args.filter((n)=>n!=="--open"&&n!=="--replace"&&n!=="--foreground"),e=[...t.command,...r,"--foreground"];if(process.platform==="win32")return ut({...t,args:r});if(process.platform==="darwin"){let n=E();return h(P(n),{recursive:!0}),x(n,ot(e,t.cwd,a(t.dataDir)),"utf8"),n}if(process.platform==="linux"){let n=D();return h(P(n),{recursive:!0}),x(n,ct(e,t.cwd,a(t.dataDir))),y(["daemon-reload"]),y(["enable",S]),n}throw Error(`\u5F53\u524D\u5E73\u53F0 ${process.platform} \u6682\u4E0D\u652F\u6301\u767B\u5F55\u81EA\u542F`)}function fo(t){if(process.platform==="win32"){let r=L();return f(r,{force:!0}),f(C(t),{force:!0}),r}if(process.platform==="darwin"){let r=E();return f(r,{force:!0}),r}if(process.platform==="linux"){let r=D();if(d(r))y(["disable",S]),f(r,{force:!0}),y(["daemon-reload"]);return r}throw Error(`\u5F53\u524D\u5E73\u53F0 ${process.platform} \u6682\u4E0D\u652F\u6301\u767B\u5F55\u81EA\u542F`)}function gn(t){if(process.platform==="win32"){let r=L();return{enabled:d(r)&&d(C(t)),target:r}}if(process.platform==="darwin"){let r=E();return{enabled:d(r),target:r}}if(process.platform==="linux"){let r=D();if(!d(r))return{enabled:!1,target:r};let e=Bun.spawnSync(["systemctl","--user","is-enabled",S],{stdout:"pipe",stderr:"pipe"}),n=e.stdout.toString().trim();if(e.exitCode===0&&n==="enabled")return{enabled:!0,target:r};if(["disabled","not-found","masked","static","indirect"].includes(n))return{enabled:!1,target:r};let s=e.stderr.toString().trim()||n;throw Error(`\u65E0\u6CD5\u8BFB\u53D6 systemd \u81EA\u542F\u72B6\u6001${s?`\uFF1A${s}`:""}`)}throw Error(`\u5F53\u524D\u5E73\u53F0 ${process.platform} \u6682\u4E0D\u652F\u6301\u767B\u5F55\u81EA\u542F`)}import{readFileSync as lt,realpathSync as dt}from"fs";import{homedir as pt}from"os";import{isAbsolute as gt,join as k,relative as ft}from"path";var mt="https://registry.npmjs.org",ht=1e4,wt=21600000,yt=15000,St=300000,bt=/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/;function F(t,r){try{return Bun.semver.order(t.replace(/^v/,""),r.replace(/^v/,""))===1}catch{return!1}}function kt(t=process.env){let r=t.BUN_INSTALL_GLOBAL_DIR??k(t.BUN_INSTALL??k(pt(),".bun"),"install","global");return k(r,"node_modules")}function G(t,r){let e=ft(r,t);return e!==""&&!e.startsWith("..")&&!gt(e)}function z(t,r){if(G(t,r.bun))return"bun";if(r.npm&&G(t,r.npm))return"npm";return}function O(t){try{return dt(t)}catch{return t}}function b(t){return t instanceof Error?t.message:String(t)}async function $t(t,r){let e=Bun.spawn(t,{stdout:"pipe",stderr:"pipe",windowsHide:!0,timeout:St,env:r}),[n,s,i]=await Promise.all([e.exited,new Response(e.stdout).text(),new Response(e.stderr).text()]);return{exitCode:n,output:`${s}
48
+ ${i}`.trim()}}class U{options;latest;checkedAt;error;applying=!1;pulling=!1;installed;manager;unsupported;failed;pending;managerLookup;lastDiskVersion;hooks;autoInstall=!1;watching;checkTimer;watchTimer;fetch;run;constructor(t){this.options=t;this.fetch=t.fetch??fetch,this.run=t.run??((r)=>$t(r,t.env))}status(){let t=this.options.disabled??this.unsupported,r=this.installed??this.options.current,e=this.latest!==void 0&&F(this.latest,r);return{current:this.options.current,...this.latest?{latest:this.latest}:{},available:e,...this.options.packageName?{url:`https://www.npmjs.com/package/${this.options.packageName}`}:{},...this.checkedAt?{checkedAt:this.checkedAt}:{},...this.error?{error:this.error}:{},...this.manager?{manager:this.manager}:{},...this.installed?{installed:this.installed}:{},canApply:!t&&this.manager!==void 0&&!this.applying,...this.applying?{applying:!0}:{},...this.options.source?{source:!0}:{},...this.pulling?{pulling:!0}:{},...t?{disabled:t}:{}}}check(){let t=this.options.packageName;if(this.options.disabled||!t)return Promise.resolve(this.status());return this.pending??=this.resolveManager().then((r)=>r?this.fetchLatest(t):this.status()).finally(()=>{this.pending=void 0}),this.pending}start(t,r){if(this.options.disabled)return;if(this.hooks=t,this.autoInstall=r,this.watchTimer=setInterval(()=>void this.watch(),yt),this.watchTimer.unref?.(),!r)return;let e=async()=>{if(this.failed=void 0,(await this.check()).disabled)return;this.checkTimer=setTimeout(e,wt),this.checkTimer.unref?.()};this.checkTimer=setTimeout(e,ht),this.checkTimer.unref?.()}stop(){if(this.checkTimer)clearTimeout(this.checkTimer);if(this.watchTimer)clearInterval(this.watchTimer)}async apply(){if(this.applying)throw Error("\u66F4\u65B0\u6B63\u5728\u8FDB\u884C\u4E2D");let t=await this.check();if(!t.available||!t.latest)return t;let r=this.manager,e=this.options.packageName;if(t.disabled||!r||!e)throw Error(t.disabled??"\u5F53\u524D\u5B89\u88C5\u65B9\u5F0F\u4E0D\u652F\u6301\u81EA\u52A8\u66F4\u65B0");this.applying=!0;try{return await this.install(r,e,t.latest),this.installed=t.latest,this.error=void 0,this.status()}catch(n){throw this.error=`\u66F4\u65B0\u5931\u8D25\uFF1A${b(n)}`,n}finally{this.applying=!1}}async pull(){if(!this.options.source)throw Error("\u5F53\u524D\u5B89\u88C5\u65B9\u5F0F\u4E0D\u652F\u6301\u62C9\u53D6\u6E90\u7801");if(this.pulling)throw Error("\u6E90\u7801\u62C9\u53D6\u6B63\u5728\u8FDB\u884C\u4E2D");this.pulling=!0;try{let t=Bun.which("git");if(!t)throw Error("PATH \u4E2D\u627E\u4E0D\u5230 git");let r=await this.run([t,"-C",this.options.packageDir,"pull","--ff-only"]);if(r.exitCode!==0)throw Error(`git pull \u5931\u8D25\uFF08\u9000\u51FA\u7801 ${r.exitCode}\uFF09\uFF1A${r.output.slice(-500)}`);this.error=void 0}catch(t){throw this.error=`\u62C9\u53D6\u6E90\u7801\u5931\u8D25\uFF1A${b(t)}`,t}finally{this.pulling=!1}return this.status()}watch(){return this.watching??=this.watchOnce().finally(()=>{this.watching=void 0}),this.watching}async watchOnce(){let t=this.hooks;if(!t||this.applying)return;let r=this.diskVersion();if(r&&r===this.lastDiskVersion&&F(r,this.installed??this.options.current))this.installed=r;if(this.lastDiskVersion=r,!t.idle())return;let e=this.status();if(this.autoInstall&&e.available&&e.canApply&&e.latest!==this.failed){try{await this.apply()}catch(n){this.failed=e.latest,console.error(`\u81EA\u52A8\u66F4\u65B0\u5931\u8D25\uFF1A${b(n)}`);return}if(!t.idle())return}if(!this.installed||this.hooks!==t)return;this.stop(),this.hooks=void 0,t.restart(this.installed)}diskVersion(){try{let t=JSON.parse(lt(k(this.options.packageDir,"package.json"),"utf8"));if(t&&typeof t==="object"&&"version"in t&&typeof t.version==="string")return t.version}catch{}return}resolveManager(){return this.managerLookup??=(async()=>{let t=O(this.options.packageDir),r=O(kt()),e=z(t,{bun:r});if(!e){let n=Bun.which("npm"),s=n?await this.run([n,"root","-g"]).catch(()=>{return}):void 0,i=s?.exitCode===0?s.output.split(/\r?\n/)[0]?.trim():void 0;e=z(t,{bun:r,npm:i?O(i):void 0})}if(this.manager=e,!e){let n=this.options.packageName;this.unsupported=`\u4E0D\u662F npm \u6216 bun \u7684\u5168\u5C40\u5B89\u88C5\uFF08\u5982 npx\u3001bunx \u4E34\u65F6\u8FD0\u884C\uFF09\uFF0C\u65E0\u6CD5\u81EA\u52A8\u66F4\u65B0\uFF1B\u8BF7\u8FD0\u884C npm i -g ${n} \u6216 bun add -g ${n}`}return e})(),this.managerLookup}async fetchLatest(t){try{let r=await this.fetch(`${mt}/${t}/latest`,{headers:{accept:"application/json","user-agent":`basalt/${this.options.current}`},signal:AbortSignal.timeout(15000)});if(r.status===404)throw Error(`npm \u4E0A\u6CA1\u6709 ${t}`);if(!r.ok)throw Error(`npm registry \u8FD4\u56DE ${r.status}`);let e=await r.json();if(!e||typeof e!=="object"||!("version"in e)||typeof e.version!=="string")throw Error("npm registry \u8FD4\u56DE\u7684\u6570\u636E\u7F3A\u5C11\u7248\u672C\u53F7");if(!bt.test(e.version))throw Error("npm registry \u8FD4\u56DE\u7684\u7248\u672C\u53F7\u683C\u5F0F\u4E0D\u5408\u6CD5");this.latest=e.version,this.error=void 0}catch(r){this.error=`\u68C0\u67E5\u66F4\u65B0\u5931\u8D25\uFF1A${b(r)}`}return this.checkedAt=Date.now(),this.status()}async install(t,r,e){let n=`${r}@${e}`,s;if(t==="bun")s=[process.execPath,"add","-g",n];else{let c=Bun.which("npm");if(!c)throw Error("PATH \u4E2D\u627E\u4E0D\u5230 npm");s=[c,"install","-g",n]}let i=await this.run(s);if(i.exitCode!==0)throw Error(`${t} \u5B89\u88C5 ${n} \u5931\u8D25\uFF08\u9000\u51FA\u7801 ${i.exitCode}\uFF09\uFF1A${i.output.slice(-500)}`);let o=this.diskVersion();if(o!==e)throw Error(`${t} \u5B89\u88C5\u5B8C\u6210\uFF0C\u4F46 ${this.options.packageDir} \u4E2D\u7684\u7248\u672C\u662F ${o??"\u672A\u77E5"}`)}}async function go(t,r){let{ProxyManager:e}=await import("./chunk-t2bvj735.js"),n=new e(t);n.load();let s=new U({current:tt.version,packageName:r.packageName,packageDir:r.packageDir,fetch:n.createFetch(dn),env:n.providerOptions({},dn).env,source:!r.packageName&&!r.compiled,disabled:r.packageName?void 0:r.compiled?"\u5355\u6587\u4EF6\u7248\u4E0D\u652F\u6301\u81EA\u52A8\u66F4\u65B0\uFF0C\u8BF7\u6539\u7528 npm i -g @bkm016/basalt \u6216 bun add -g @bkm016/basalt \u5B89\u88C5":"\u4ECE\u6E90\u7801\u8FD0\u884C\uFF0C\u7528 git pull \u66F4\u65B0"});return{proxy:n,updater:s}}function js(t){let r=t!==void 0,e=r?Number(t):vi;if(r&&(!/^\d+$/.test(t??"")||e>65535))console.error(`\u7AEF\u53E3\u53C2\u6570\u65E0\u6548\uFF1A${t}\u3002--port \u5E94\u4E3A 0-65535 \u4E4B\u95F4\u7684\u6574\u6570\u3002`),process.exit(1);return{portNumber:e,portSpecified:r}}function yn(t){if(!t.loopback&&!t.insecureHttp)console.error("\u62D2\u7EDD\u542F\u52A8\uFF1A\u975E\u672C\u673A\u76D1\u542C\u5FC5\u987B\u901A\u8FC7 HTTPS/WSS\uFF0C\u6216\u663E\u5F0F\u4F20\u5165 --insecure-http\u3002"),process.exit(1);if(!t.loopback&&t.noAuth&&!t.allowRemoteNoAuth)console.error("\u62D2\u7EDD\u542F\u52A8\uFF1A\u975E\u672C\u673A\u76D1\u542C\u4E0D\u80FD\u5173\u95ED\u8BA4\u8BC1\uFF0C\u9664\u975E\u663E\u5F0F\u4F20\u5165 --allow-remote-no-auth\u3002"),process.exit(1);for(let r of t.allowedHosts)if(!/^(?:[a-zA-Z0-9](?:[a-zA-Z0-9.-]*[a-zA-Z0-9])?|\[[0-9a-fA-F:]+\])$/.test(r))console.error("--allow-host \u5FC5\u987B\u662F\u4E3B\u673A\u540D\uFF0C\u4E0D\u542B\u534F\u8BAE\u3001\u7AEF\u53E3\u3001\u8DEF\u5F84\u6216\u901A\u914D\u7B26\u3002"),process.exit(1);if(t.noAuth&&t.allowedOrigins.includes("*"))console.error("\u62D2\u7EDD\u542F\u52A8\uFF1A\u5173\u95ED\u8BA4\u8BC1\u65F6\u4E0D\u80FD\u7528 --allow-origin * \u653E\u5F00\u4EFB\u610F\u6765\u6E90\u3002\u53BB\u6389 --allow-origin *\uFF0C\u6216\u53BB\u6389 --no-auth\u3002"),process.exit(1);if(t.webUrl!==void 0){let r=URL.canParse(t.webUrl)?new URL(t.webUrl).protocol:void 0;if(r!=="http:"&&r!=="https:")console.error(`--web-url \u65E0\u6548\uFF1A${t.webUrl}\u3002\u5E94\u4E3A\u5B8C\u6574\u7684 http:// \u6216 https:// \u5730\u5740\u3002`),process.exit(1)}}function bn(t,r,e){let n=Buffer.from(JSON.stringify({server:r,code:e})).toString("base64url");return`${t.replace(/\/$/,"")}/#pair=${n}`}async function Ws(t,r){if(await ze(t))return t;let e=await j(r),n=e.length===1?e[0]:void 0;if(n)return n.dataDir;if(e.length>1){console.error("\u6709\u591A\u4E2A basalt \u5B9E\u4F8B\u5728\u8FD0\u884C\uFF0C\u7528 --data \u6307\u5B9A\u8981\u64CD\u4F5C\u7684\u4E00\u4E2A\uFF1A");for(let{dataDir:s,service:i}of e)console.error(` ${i.url} --data "${s}"`);process.exit(1)}return t}async function Y(t){if(await hn(t.pid,t),T(t.pid))return console.error(`\u65E0\u6CD5\u505C\u6B62 Basalt \u8FDB\u7A0B ${t.pid}`),!1;return!0}async function Ni(t,r,e,n){try{let s=await H({command:t,args:r,dataDir:e,cwd:n});return console.log(`basalt \u5DF2\u5728\u540E\u53F0\u8FD0\u884C\uFF1A${s.url}`),console.log(`\u65E5\u5FD7\uFF1A${a(e)}`),0}catch(s){return console.error(`\u540E\u53F0\u542F\u52A8\u5931\u8D25\uFF1A${s instanceof Error?s.message:String(s)}`),console.error(`\u65E5\u5FD7\uFF1A${a(e)}`),1}}async function Hs(t){let r=await ze(t);if(!r)return console.log("basalt \u672A\u8FD0\u884C"),1;let e=await I(r)?"":"\uFF0C\u6682\u65F6\u65E0\u54CD\u5E94\uFF0C\u53EF\u80FD\u6B63\u5FD9";return console.log(`basalt \u6B63\u5728\u8FD0\u884C\uFF1A${r.url}\uFF08PID ${r.pid}${e}\uFF09`),0}async function zs(t){let r=await ze(t);if(!r)return console.log("basalt \u672A\u8FD0\u884C"),0;if(!await Y(r))return 1;return console.log("basalt \u5DF2\u505C\u6B62"),0}async function qs(t){yn(t.validation),At(t.dataDir,{recursive:!0});let r=await ze(t.dataDir),e=fn(r?.argv??t.rawArgs.slice(1),t.dataDir),n=r?.cwd??process.cwd();if(r&&!await Y(r))return 1;if(t.open)e.push("--open");return Ni(t.launchCommand,e,t.dataDir,n)}async function Gs(t){let r=await M(t);if(!r)return console.error(`\u6CA1\u6709\u540E\u53F0\u65E5\u5FD7\uFF1A${a(t)}`),1;return process.stdout.write(r.endsWith(`
49
+ `)?r:`${r}
50
+ `),0}async function Vs(t){let r=await ze(t);if(!r)return console.error("basalt \u672A\u8FD0\u884C\uFF0C\u5148\u8FD0\u884C basalt \u542F\u52A8\u670D\u52A1"),1;if(!r.secret)return console.error("\u6B63\u5728\u8FD0\u884C\u7684\u670D\u52A1\u7248\u672C\u8FC7\u65E7\uFF0C\u4E0D\u652F\u6301\u8BE5\u547D\u4EE4\uFF1B\u8FD0\u884C basalt restart \u540E\u91CD\u8BD5"),1;let e;try{e=await fetch(`${r.url}/api/pair/code`,{method:"POST",redirect:"error",headers:{Authorization:`Bearer ${r.secret}`},signal:AbortSignal.timeout(1e4)})}catch(o){return console.error(`\u65E0\u6CD5\u8FDE\u63A5 ${r.url}\uFF1A${o instanceof Error?o.message:String(o)}`),1}if(!e.ok){let o=await e.json().catch(()=>{return}),c=o?.error?.message?`\uFF1A${o.error.message}`:"";return console.error(`\u83B7\u53D6\u914D\u5BF9\u7801\u5931\u8D25\uFF08HTTP ${e.status}\uFF09${c}`),1}let{code:n}=await e.json();console.log(`\u914D\u5BF9\u7801 ${n.slice(0,4)}-${n.slice(4)}\uFF0810 \u5206\u949F\u5185\u6709\u6548\uFF0C\u7528\u4E00\u6B21\u5373\u5931\u6548\uFF09`);let{TunnelManager:s}=await import("./chunk-e2xqa46t.js"),i=new s(t,{localPort:()=>vi}).publicURL();if(i)console.log(`\u8FDC\u7A0B\uFF1A${bn(i,i,n)}`);return console.log(`\u672C\u673A\uFF1A${bn(r.url,r.url,n)}`),0}async function Ks(t){try{if(t.action==="status"){let s=gn(t.dataDir);return console.log(s.enabled?`\u5DF2\u5F00\u542F\u767B\u5F55\u81EA\u542F\uFF1A${s.target}`:`\u672A\u5F00\u542F\u767B\u5F55\u81EA\u542F\uFF1A${s.target}`),0}if(t.action==="disable"){let s=fo(t.dataDir);return console.log(`\u5DF2\u5173\u95ED\u767B\u5F55\u81EA\u542F\uFF1A${s}`),0}if(t.action!=="enable")return console.error("\u7528\u6CD5\uFF1Abasalt autostart <enable|disable|status> [--data <\u76EE\u5F55>]"),1;yn(t.validation);let r=await ze(t.dataDir),e=fn(r?.argv??t.rawArgs.slice(2),t.dataDir),n=ho({command:t.launchCommand,args:e,dataDir:t.dataDir,cwd:r?.cwd??process.cwd()});return console.log(`\u5DF2\u5F00\u542F\u767B\u5F55\u81EA\u542F\uFF1A${n}`),console.log("\u5F53\u524D\u670D\u52A1\u4FDD\u6301\u4E0D\u53D8\uFF0C\u4E0B\u6B21\u767B\u5F55\u751F\u6548\u3002"),0}catch(r){return console.error(r instanceof Error?r.message:String(r)),1}}async function Qs(t,r){let{updater:e}=await go(t,r),n=await e.check();if(n.disabled)return console.error(n.disabled),1;if(n.error)return console.error(n.error),1;if(!n.available)return console.log(`\u5DF2\u662F\u6700\u65B0\u7248\u672C v${n.current}`),0;console.log(`\u6B63\u5728\u901A\u8FC7 ${n.manager} \u66F4\u65B0 v${n.current} \u2192 v${n.latest}\u2026`);try{await e.apply()}catch(i){return console.error(i instanceof Error?i.message:String(i)),1}let s=A(vt(t,"server.json"));if(s&&v(s.pid))console.log(`\u5DF2\u66F4\u65B0\u5230 v${n.latest}\uFF0C\u6B63\u5728\u8FD0\u884C\u7684 Basalt \u4F1A\u5728\u6240\u6709\u5BF9\u8BDD\u7A7A\u95F2\u540E\u81EA\u52A8\u91CD\u542F`);else console.log(`\u5DF2\u66F4\u65B0\u5230 v${n.latest}`);return 0}
51
+ export{ze,$s,hn,fn,ho,fo,gn,go,js,yn,bn,Ws,Ni,Hs,zs,qs,Gs,Vs,Ks,Qs};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{Io}from"./chunk-ers9s2c4.js";import"./chunk-a5wv2shs.js";import"./chunk-2fmsw1c6.js";import{An,na}from"./chunk-rztw3tgx.js";import{Ft,At,Bt}from"./chunk-f10ca9ma.js";import{ft}from"./chunk-j7m36g5w.js";import{le}from"./chunk-zz9rj82y.js";import{ge}from"./chunk-2h2mvrw2.js";import{Q,te}from"./chunk-tnay319j.js";import{$e,$t,re}from"./chunk-7mafj833.js";import{J}from"./chunk-9nkb5q43.js";import{ue,Ce,Ie,Y}from"./chunk-e67wqhzh.js";import{W}from"./chunk-ndt4jvh1.js";var g=new Set(["openai","openai-codex","opencode","azure"]),h=16;function y(r){return te(Q(r),"Azure OpenAI API error")}var A=(r,a,e)=>{let t=new W,i=ue(a,r.compat?.supportsMidConvoSystemMessages);return(async()=>{let n=An(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=$e(Ce(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 Bt(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={...re(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":le(),...r.headers};if(e?.headers)Object.assign(t,e.headers);let{baseUrl:i,apiVersion:n}=na(r,e);return new Io({apiKey:a,apiVersion:n,dangerouslyAllowBrowser:!0,fetch:e?.fetch,defaultHeaders:t,baseURL:i})}function T(r,a,e,t,i=$e(Ce(a.messages),r.compat?.supportsOpenAIGrammarTools??!1)){let n=r.compat?.supportsAdditionalTools??!1,s=r.compat?.supportsToolSearch??!1,p=Ie(a.messages,n||s),c=Ft(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:ft(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=At(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=$t(r,m??"off",e?.samplingParams);if(u)Object.assign(o,u);return o}export{A as stream,z as streamSimple};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ var l=Object.create;var{getPrototypeOf:m,defineProperty:g,getOwnPropertyNames:n}=Object;var k=Object.prototype.hasOwnProperty;function o(a){return this[a]}var p,q,c=(a,b,d)=>{var e=a!=null&&typeof a==="object";if(e){var i=b?p??=new WeakMap:q??=new WeakMap,j=i.get(a);if(j)return j}d=a!=null?l(m(a)):{};let f=b||!a||!a.__esModule||!k.call(a,"default")?g(d,"default",{value:a,enumerable:!0}):d;if(a&&typeof a==="object"||typeof a==="function"){for(let h of n(a))if(!k.call(f,h))g(f,h,{get:o.bind(a,h),enumerable:!0})}if(e)i.set(a,f);return f};var r=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var s=(a)=>a;function t(a,b){this[a]=s.bind(null,b)}var ht=(a,b)=>{for(var d in b)g(a,d,{get:b[d],enumerable:!0,configurable:!0,set:t.bind(b,d)})};var Dr=(a,b,d)=>{for(var e in b)g(a,e,{get:b[e],set:d[e],enumerable:!0,configurable:!0})},u=import.meta.require;
3
+ export{c,r,ht,Dr,u};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{tn,vr,Jn,ut,Pt,nt,nr,Ne,Er,ot,an,yt,T,oo,Pr,bi,bt,Ve,Mt,wt,ne,Wt}from"./chunk-x7tras0x.js";import{de,Ke,t,d}from"./chunk-s9p624fq.js";import"./chunk-2fmsw1c6.js";import"./chunk-emeb13nd.js";export{wt as ArchivedError,t as BadRequestError,ne as BusyError,nt as CloudflareClient,nr as FileCredentialStore,ut as MAX_ATTACHMENTS,d as NotFoundError,yt as PluginCheckError,oo as ProxyManager,Wt as Runtime,Mt as SessionSecrets,Er as answerShellApproval,Ke as dataDir,T as definePlugin,an as detectImageMimeType,ot as gateShellCommand,de as hostPaths,Ne as modelID,Pr as providerProxyScope,bi as proxyTargets,tn as readSearchCursor,vr as search,Jn as searchSuggestions,bt as secretEnvName,Ve as secretPlaceholder,Pt as validAttachment};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{ti,rc}from"./chunk-crxs0n0r.js";export{ti as runUIWorker,rc as uiTest};