@bkm016/basalt 0.1.33 → 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 (1001) hide show
  1. package/README.md +24 -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 +42 -42
  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-04326385.js +0 -39
  511. package/chunk-11zc1b2w.js +0 -3
  512. package/chunk-12203fgm.js +0 -2
  513. package/chunk-194d4z7x.js +0 -7
  514. package/chunk-1apm7p2e.js +0 -2
  515. package/chunk-2csz31nh.js +0 -2
  516. package/chunk-2rqpfv4h.js +0 -3
  517. package/chunk-39cfcar4.js +0 -3
  518. package/chunk-3j26jsy0.js +0 -51
  519. package/chunk-4a5xttdp.js +0 -3
  520. package/chunk-4st5xeee.js +0 -2
  521. package/chunk-54zpktrq.js +0 -3
  522. package/chunk-5ggyf53b.js +0 -50
  523. package/chunk-5h17n6g1.js +0 -3
  524. package/chunk-5rn18vrq.js +0 -5
  525. package/chunk-5tdnvdmz.js +0 -2
  526. package/chunk-6qavr39k.js +0 -2
  527. package/chunk-6xn0r0dd.js +0 -3
  528. package/chunk-7h76jrss.js +0 -7
  529. package/chunk-7hss4hs3.js +0 -7
  530. package/chunk-7vdq0wye.js +0 -2
  531. package/chunk-7w187ycz.js +0 -10
  532. package/chunk-81s7mvf2.js +0 -16
  533. package/chunk-8j8acxde.js +0 -2
  534. package/chunk-9nfz04yr.js +0 -2
  535. package/chunk-9vth0w8q.js +0 -2
  536. package/chunk-9zcfam20.js +0 -2
  537. package/chunk-a6zvmsbh.js +0 -12
  538. package/chunk-anr8aghq.js +0 -59
  539. package/chunk-av8zh9yp.js +0 -2
  540. package/chunk-bwv97dtf.js +0 -2
  541. package/chunk-cjy4rssa.js +0 -10
  542. package/chunk-dmdyqq1k.js +0 -2
  543. package/chunk-dzvq7vt6.js +0 -2
  544. package/chunk-ejrksf6g.js +0 -3
  545. package/chunk-erxka5vh.js +0 -18
  546. package/chunk-fb2ydc2s.js +0 -8
  547. package/chunk-fc41dvhp.js +0 -12
  548. package/chunk-fdgrayj5.js +0 -3
  549. package/chunk-fgpzy3fe.js +0 -3
  550. package/chunk-fwcqcecb.js +0 -8
  551. package/chunk-hhwnmhbb.js +0 -2
  552. package/chunk-hvxc1wyv.js +0 -3
  553. package/chunk-jm2bn5mq.js +0 -3
  554. package/chunk-jm5j5jfy.js +0 -3
  555. package/chunk-jqtdf0ym.js +0 -63
  556. package/chunk-jsvr3s4q.js +0 -5
  557. package/chunk-jwk5a5tk.js +0 -25
  558. package/chunk-mwc59w50.js +0 -31
  559. package/chunk-mypbpphn.js +0 -3
  560. package/chunk-n3hfhbe4.js +0 -498
  561. package/chunk-ng5ncy65.js +0 -2
  562. package/chunk-nkmvqcge.js +0 -4073
  563. package/chunk-nmvayfq3.js +0 -3
  564. package/chunk-nw4h0wm9.js +0 -2
  565. package/chunk-p23eqet9.js +0 -2
  566. package/chunk-pxsgm6ff.js +0 -2
  567. package/chunk-qqs9fqsy.js +0 -4
  568. package/chunk-r0gsb1qs.js +0 -3
  569. package/chunk-r49sxmnc.js +0 -3
  570. package/chunk-rbfpa63e.js +0 -3
  571. package/chunk-rsrh5dgx.js +0 -2
  572. package/chunk-s2pm97nk.js +0 -286
  573. package/chunk-s6tnmg6x.js +0 -3
  574. package/chunk-se548edt.js +0 -20
  575. package/chunk-tsdeeqb8.js +0 -3
  576. package/chunk-vnv3a6t2.js +0 -3
  577. package/chunk-vrsh8cx1.js +0 -3
  578. package/chunk-w3v8zahw.js +0 -2
  579. package/chunk-w6m8c4vf.js +0 -11
  580. package/chunk-wd7sj5cv.js +0 -2
  581. package/chunk-we8v9wkw.js +0 -9
  582. package/chunk-x055cas0.js +0 -5
  583. package/chunk-x5vrtxkj.js +0 -3
  584. package/chunk-x83syrhw.js +0 -44
  585. package/chunk-xedzsj31.js +0 -5
  586. package/chunk-xp83v3zm.js +0 -2
  587. package/chunk-ykzm5g1b.js +0 -25
  588. package/chunk-yq2bwebb.js +0 -3
  589. package/chunk-yygcpnwc.js +0 -3
  590. package/chunk-zjf34acb.js +0 -2
  591. package/web/chunk-07kt1zpn.js +0 -1
  592. package/web/chunk-07kt1zpn.js.br +0 -0
  593. package/web/chunk-07kt1zpn.js.gz +0 -0
  594. package/web/chunk-0d068bmj.js +0 -1
  595. package/web/chunk-0d068bmj.js.br +0 -0
  596. package/web/chunk-0d068bmj.js.gz +0 -0
  597. package/web/chunk-0m15ghn0.js +0 -2
  598. package/web/chunk-0m15ghn0.js.br +0 -0
  599. package/web/chunk-0m15ghn0.js.gz +0 -0
  600. package/web/chunk-0swykhgr.js +0 -2
  601. package/web/chunk-0swykhgr.js.br +0 -0
  602. package/web/chunk-0swykhgr.js.gz +0 -0
  603. package/web/chunk-100a4th6.js +0 -4
  604. package/web/chunk-100a4th6.js.br +0 -0
  605. package/web/chunk-100a4th6.js.gz +0 -0
  606. package/web/chunk-1mdvm20t.js +0 -140
  607. package/web/chunk-1mdvm20t.js.br +0 -0
  608. package/web/chunk-1mdvm20t.js.gz +0 -0
  609. package/web/chunk-1mkzfr1m.js +0 -2
  610. package/web/chunk-1mkzfr1m.js.br +0 -0
  611. package/web/chunk-1mkzfr1m.js.gz +0 -0
  612. package/web/chunk-1p7wa1rq.js +0 -1
  613. package/web/chunk-1p7wa1rq.js.br +0 -0
  614. package/web/chunk-1p7wa1rq.js.gz +0 -0
  615. package/web/chunk-20gcnbgn.js +0 -2
  616. package/web/chunk-20gcnbgn.js.br +0 -0
  617. package/web/chunk-20gcnbgn.js.gz +0 -0
  618. package/web/chunk-2grspw9t.js +0 -1
  619. package/web/chunk-2grspw9t.js.br +0 -0
  620. package/web/chunk-2grspw9t.js.gz +0 -0
  621. package/web/chunk-2nwvdqxm.js +0 -1
  622. package/web/chunk-2nwvdqxm.js.br +0 -0
  623. package/web/chunk-2nwvdqxm.js.gz +0 -0
  624. package/web/chunk-2zz8t49r.js +0 -1
  625. package/web/chunk-2zz8t49r.js.br +0 -0
  626. package/web/chunk-2zz8t49r.js.gz +0 -0
  627. package/web/chunk-34g2xrgq.js +0 -120
  628. package/web/chunk-34g2xrgq.js.br +0 -0
  629. package/web/chunk-34g2xrgq.js.gz +0 -0
  630. package/web/chunk-34q3az4b.js +0 -1
  631. package/web/chunk-34q3az4b.js.br +0 -0
  632. package/web/chunk-34q3az4b.js.gz +0 -0
  633. package/web/chunk-39jqdq4r.js +0 -1
  634. package/web/chunk-39jqdq4r.js.br +0 -0
  635. package/web/chunk-39jqdq4r.js.gz +0 -0
  636. package/web/chunk-3d2fm4qc.js +0 -1
  637. package/web/chunk-3d2fm4qc.js.br +0 -0
  638. package/web/chunk-3d2fm4qc.js.gz +0 -0
  639. package/web/chunk-3s16fbrf.js +0 -40
  640. package/web/chunk-3s16fbrf.js.br +0 -0
  641. package/web/chunk-3s16fbrf.js.gz +0 -0
  642. package/web/chunk-3vsey6mw.js +0 -1
  643. package/web/chunk-3vsey6mw.js.br +0 -0
  644. package/web/chunk-3vsey6mw.js.gz +0 -0
  645. package/web/chunk-3y29sc9c.js +0 -7
  646. package/web/chunk-3y29sc9c.js.br +0 -0
  647. package/web/chunk-3y29sc9c.js.gz +0 -0
  648. package/web/chunk-40f59ze9.js +0 -39
  649. package/web/chunk-40f59ze9.js.br +0 -0
  650. package/web/chunk-40f59ze9.js.gz +0 -0
  651. package/web/chunk-414npx47.js +0 -1
  652. package/web/chunk-414npx47.js.br +0 -0
  653. package/web/chunk-414npx47.js.gz +0 -0
  654. package/web/chunk-495sjpc6.js +0 -2
  655. package/web/chunk-495sjpc6.js.br +0 -0
  656. package/web/chunk-495sjpc6.js.gz +0 -0
  657. package/web/chunk-4ab1dv3g.js +0 -142
  658. package/web/chunk-4ab1dv3g.js.br +0 -0
  659. package/web/chunk-4ab1dv3g.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-58xhn7ry.js +0 -2
  667. package/web/chunk-58xhn7ry.js.br +0 -0
  668. package/web/chunk-58xhn7ry.js.gz +0 -0
  669. package/web/chunk-67pa4950.js +0 -1
  670. package/web/chunk-67pa4950.js.br +0 -0
  671. package/web/chunk-67pa4950.js.gz +0 -0
  672. package/web/chunk-690qxds4.js +0 -1
  673. package/web/chunk-690qxds4.js.br +0 -0
  674. package/web/chunk-690qxds4.js.gz +0 -0
  675. package/web/chunk-6ana63fs.js +0 -21
  676. package/web/chunk-6ana63fs.js.br +0 -0
  677. package/web/chunk-6ana63fs.js.gz +0 -0
  678. package/web/chunk-6ew54553.js +0 -2
  679. package/web/chunk-6ew54553.js.br +0 -0
  680. package/web/chunk-6ew54553.js.gz +0 -0
  681. package/web/chunk-6f1q0tjv.js +0 -1142
  682. package/web/chunk-6f1q0tjv.js.br +0 -0
  683. package/web/chunk-6f1q0tjv.js.gz +0 -0
  684. package/web/chunk-6gpzz5wm.js +0 -1
  685. package/web/chunk-6gpzz5wm.js.br +0 -0
  686. package/web/chunk-6gpzz5wm.js.gz +0 -0
  687. package/web/chunk-71g6vrx9.js +0 -62
  688. package/web/chunk-71g6vrx9.js.br +0 -0
  689. package/web/chunk-71g6vrx9.js.gz +0 -0
  690. package/web/chunk-77dnqrb6.js +0 -2
  691. package/web/chunk-77dnqrb6.js.br +0 -0
  692. package/web/chunk-77dnqrb6.js.gz +0 -0
  693. package/web/chunk-7fdrwy21.js +0 -1
  694. package/web/chunk-7fdrwy21.js.br +0 -0
  695. package/web/chunk-7fdrwy21.js.gz +0 -0
  696. package/web/chunk-84s7821x.js +0 -2
  697. package/web/chunk-84s7821x.js.br +0 -0
  698. package/web/chunk-84s7821x.js.gz +0 -0
  699. package/web/chunk-8e5qd73v.js +0 -7
  700. package/web/chunk-8e5qd73v.js.br +0 -0
  701. package/web/chunk-8e5qd73v.js.gz +0 -0
  702. package/web/chunk-8kyj945c.js +0 -2
  703. package/web/chunk-8kyj945c.js.br +0 -0
  704. package/web/chunk-8kyj945c.js.gz +0 -0
  705. package/web/chunk-9b0evht1.js +0 -292
  706. package/web/chunk-9b0evht1.js.br +0 -0
  707. package/web/chunk-9b0evht1.js.gz +0 -0
  708. package/web/chunk-9j7v0e4v.js +0 -2
  709. package/web/chunk-9j7v0e4v.js.br +0 -0
  710. package/web/chunk-9j7v0e4v.js.gz +0 -0
  711. package/web/chunk-9jb5xwya.js +0 -36
  712. package/web/chunk-9jb5xwya.js.br +0 -0
  713. package/web/chunk-9jb5xwya.js.gz +0 -0
  714. package/web/chunk-9kf8arqg.js +0 -1
  715. package/web/chunk-9kf8arqg.js.br +0 -0
  716. package/web/chunk-9kf8arqg.js.gz +0 -0
  717. package/web/chunk-9msmea44.js +0 -70
  718. package/web/chunk-9msmea44.js.br +0 -0
  719. package/web/chunk-9msmea44.js.gz +0 -0
  720. package/web/chunk-a7q85665.js +0 -3
  721. package/web/chunk-a7q85665.js.br +0 -0
  722. package/web/chunk-a7q85665.js.gz +0 -0
  723. package/web/chunk-aan5qk6x.js +0 -1
  724. package/web/chunk-aan5qk6x.js.br +0 -0
  725. package/web/chunk-aan5qk6x.js.gz +0 -0
  726. package/web/chunk-b9cjgxr1.js +0 -98
  727. package/web/chunk-b9cjgxr1.js.br +0 -0
  728. package/web/chunk-b9cjgxr1.js.gz +0 -0
  729. package/web/chunk-baaattjv.js +0 -2
  730. package/web/chunk-baaattjv.js.br +0 -0
  731. package/web/chunk-baaattjv.js.gz +0 -0
  732. package/web/chunk-bj9m08f9.js +0 -1
  733. package/web/chunk-bj9m08f9.js.br +0 -0
  734. package/web/chunk-bj9m08f9.js.gz +0 -0
  735. package/web/chunk-bm4fvq6q.js +0 -89
  736. package/web/chunk-bm4fvq6q.js.br +0 -0
  737. package/web/chunk-bm4fvq6q.js.gz +0 -0
  738. package/web/chunk-c4g2k9wp.js +0 -1
  739. package/web/chunk-c4g2k9wp.js.br +0 -0
  740. package/web/chunk-c4g2k9wp.js.gz +0 -0
  741. package/web/chunk-cnptxet3.js +0 -2
  742. package/web/chunk-cnptxet3.js.br +0 -0
  743. package/web/chunk-cnptxet3.js.gz +0 -0
  744. package/web/chunk-d5n2yz4e.js +0 -2
  745. package/web/chunk-d5n2yz4e.js.br +0 -0
  746. package/web/chunk-d5n2yz4e.js.gz +0 -0
  747. package/web/chunk-db2jge7w.js +0 -291
  748. package/web/chunk-db2jge7w.js.br +0 -0
  749. package/web/chunk-db2jge7w.js.gz +0 -0
  750. package/web/chunk-dfv95z6w.js +0 -1
  751. package/web/chunk-dfv95z6w.js.br +0 -0
  752. package/web/chunk-dfv95z6w.js.gz +0 -0
  753. package/web/chunk-dsxjv5an.js +0 -1
  754. package/web/chunk-dsxjv5an.js.br +0 -0
  755. package/web/chunk-dsxjv5an.js.gz +0 -0
  756. package/web/chunk-e362x35y.js +0 -1
  757. package/web/chunk-e362x35y.js.br +0 -0
  758. package/web/chunk-e362x35y.js.gz +0 -0
  759. package/web/chunk-e6jfnajp.js +0 -55
  760. package/web/chunk-e6jfnajp.js.br +0 -0
  761. package/web/chunk-e6jfnajp.js.gz +0 -0
  762. package/web/chunk-en5n60qw.js +0 -2
  763. package/web/chunk-en5n60qw.js.br +0 -0
  764. package/web/chunk-en5n60qw.js.gz +0 -0
  765. package/web/chunk-ex34kdxk.js +0 -217
  766. package/web/chunk-ex34kdxk.js.br +0 -0
  767. package/web/chunk-ex34kdxk.js.gz +0 -0
  768. package/web/chunk-exa2z1b4.js +0 -1
  769. package/web/chunk-exa2z1b4.js.br +0 -0
  770. package/web/chunk-exa2z1b4.js.gz +0 -0
  771. package/web/chunk-f5wyg9zh.js +0 -2
  772. package/web/chunk-f5wyg9zh.js.br +0 -0
  773. package/web/chunk-f5wyg9zh.js.gz +0 -0
  774. package/web/chunk-fjvd2dx2.js +0 -2
  775. package/web/chunk-fjvd2dx2.js.br +0 -0
  776. package/web/chunk-fjvd2dx2.js.gz +0 -0
  777. package/web/chunk-fs39pqet.js +0 -2
  778. package/web/chunk-fs39pqet.js.br +0 -0
  779. package/web/chunk-fs39pqet.js.gz +0 -0
  780. package/web/chunk-gvndjaan.js +0 -2
  781. package/web/chunk-gvndjaan.js.br +0 -0
  782. package/web/chunk-gvndjaan.js.gz +0 -0
  783. package/web/chunk-h3618s7t.js +0 -4
  784. package/web/chunk-h3618s7t.js.br +0 -0
  785. package/web/chunk-h3618s7t.js.gz +0 -0
  786. package/web/chunk-hks91ztk.js +0 -8
  787. package/web/chunk-hks91ztk.js.br +0 -0
  788. package/web/chunk-hks91ztk.js.gz +0 -0
  789. package/web/chunk-hqd97ez8.js +0 -200
  790. package/web/chunk-hqd97ez8.js.br +0 -0
  791. package/web/chunk-hqd97ez8.js.gz +0 -0
  792. package/web/chunk-hta68vm8.js +0 -2
  793. package/web/chunk-hta68vm8.js.br +0 -0
  794. package/web/chunk-hta68vm8.js.gz +0 -0
  795. package/web/chunk-jcbvhp3h.js +0 -1
  796. package/web/chunk-jcbvhp3h.js.br +0 -0
  797. package/web/chunk-jcbvhp3h.js.gz +0 -0
  798. package/web/chunk-jw6e38cy.js +0 -1
  799. package/web/chunk-jw6e38cy.js.br +0 -0
  800. package/web/chunk-jw6e38cy.js.gz +0 -0
  801. package/web/chunk-jzp1qd92.js +0 -1
  802. package/web/chunk-jzp1qd92.js.br +0 -0
  803. package/web/chunk-jzp1qd92.js.gz +0 -0
  804. package/web/chunk-kg39a24q.js +0 -16
  805. package/web/chunk-kg39a24q.js.br +0 -0
  806. package/web/chunk-kg39a24q.js.gz +0 -0
  807. package/web/chunk-kj75rme3.js +0 -1
  808. package/web/chunk-kj75rme3.js.br +0 -0
  809. package/web/chunk-kj75rme3.js.gz +0 -0
  810. package/web/chunk-kvxmwmen.js +0 -1
  811. package/web/chunk-kvxmwmen.js.br +0 -0
  812. package/web/chunk-kvxmwmen.js.gz +0 -0
  813. package/web/chunk-kzdmsaet.js +0 -1
  814. package/web/chunk-kzdmsaet.js.br +0 -0
  815. package/web/chunk-kzdmsaet.js.gz +0 -0
  816. package/web/chunk-m203pzza.js +0 -89
  817. package/web/chunk-m203pzza.js.br +0 -0
  818. package/web/chunk-m203pzza.js.gz +0 -0
  819. package/web/chunk-m3xw41vq.js +0 -1
  820. package/web/chunk-m3xw41vq.js.br +0 -0
  821. package/web/chunk-m3xw41vq.js.gz +0 -0
  822. package/web/chunk-m8jcx13t.js +0 -30
  823. package/web/chunk-m8jcx13t.js.br +0 -0
  824. package/web/chunk-m8jcx13t.js.gz +0 -0
  825. package/web/chunk-mpgz1bj6.js +0 -1
  826. package/web/chunk-mpgz1bj6.js.br +0 -0
  827. package/web/chunk-mpgz1bj6.js.gz +0 -0
  828. package/web/chunk-mzagmpq5.js +0 -1
  829. package/web/chunk-mzagmpq5.js.br +0 -0
  830. package/web/chunk-mzagmpq5.js.gz +0 -0
  831. package/web/chunk-n51q6d6e.js +0 -1
  832. package/web/chunk-n51q6d6e.js.br +0 -0
  833. package/web/chunk-n51q6d6e.js.gz +0 -0
  834. package/web/chunk-nbf2zaaj.js +0 -1
  835. package/web/chunk-nbf2zaaj.js.br +0 -0
  836. package/web/chunk-nbf2zaaj.js.gz +0 -0
  837. package/web/chunk-ngsv0xfb.js +0 -1
  838. package/web/chunk-ngsv0xfb.js.br +0 -0
  839. package/web/chunk-ngsv0xfb.js.gz +0 -0
  840. package/web/chunk-nxd7dn08.js +0 -1
  841. package/web/chunk-nxd7dn08.js.br +0 -0
  842. package/web/chunk-nxd7dn08.js.gz +0 -0
  843. package/web/chunk-p44ezwgh.js +0 -1
  844. package/web/chunk-p44ezwgh.js.br +0 -0
  845. package/web/chunk-p44ezwgh.js.gz +0 -0
  846. package/web/chunk-pdg3bxc0.js +0 -2
  847. package/web/chunk-pdg3bxc0.js.br +0 -0
  848. package/web/chunk-pdg3bxc0.js.gz +0 -0
  849. package/web/chunk-pjbp0xwn.css +0 -1
  850. package/web/chunk-pjbp0xwn.css.br +0 -0
  851. package/web/chunk-pjbp0xwn.css.gz +0 -0
  852. package/web/chunk-pkbyh261.js +0 -1
  853. package/web/chunk-pkbyh261.js.br +0 -0
  854. package/web/chunk-pkbyh261.js.gz +0 -0
  855. package/web/chunk-q3q25jr9.js +0 -324
  856. package/web/chunk-q3q25jr9.js.br +0 -0
  857. package/web/chunk-q3q25jr9.js.gz +0 -0
  858. package/web/chunk-q5nr5wjn.js +0 -169
  859. package/web/chunk-q5nr5wjn.js.br +0 -0
  860. package/web/chunk-q5nr5wjn.js.gz +0 -0
  861. package/web/chunk-qd9y8r3g.js +0 -84
  862. package/web/chunk-qd9y8r3g.js.br +0 -0
  863. package/web/chunk-qd9y8r3g.js.gz +0 -0
  864. package/web/chunk-qm039dan.js +0 -24
  865. package/web/chunk-qm039dan.js.br +0 -0
  866. package/web/chunk-qm039dan.js.gz +0 -0
  867. package/web/chunk-qqp31fyy.js +0 -1
  868. package/web/chunk-qqp31fyy.js.br +0 -0
  869. package/web/chunk-qqp31fyy.js.gz +0 -0
  870. package/web/chunk-r76we294.js +0 -1
  871. package/web/chunk-r76we294.js.br +0 -0
  872. package/web/chunk-r76we294.js.gz +0 -0
  873. package/web/chunk-r7st369j.js +0 -1
  874. package/web/chunk-r7st369j.js.br +0 -0
  875. package/web/chunk-r7st369j.js.gz +0 -0
  876. package/web/chunk-rc3sv7v4.js +0 -1
  877. package/web/chunk-rc3sv7v4.js.br +0 -0
  878. package/web/chunk-rc3sv7v4.js.gz +0 -0
  879. package/web/chunk-rj1rp0tc.js +0 -1
  880. package/web/chunk-rj1rp0tc.js.br +0 -0
  881. package/web/chunk-rj1rp0tc.js.gz +0 -0
  882. package/web/chunk-rtk95qme.js +0 -1
  883. package/web/chunk-rtk95qme.js.br +0 -0
  884. package/web/chunk-rtk95qme.js.gz +0 -0
  885. package/web/chunk-s4rfkyqn.js +0 -12
  886. package/web/chunk-s4rfkyqn.js.br +0 -0
  887. package/web/chunk-s4rfkyqn.js.gz +0 -0
  888. package/web/chunk-s6a0gfv3.js +0 -34
  889. package/web/chunk-s6a0gfv3.js.br +0 -0
  890. package/web/chunk-s6a0gfv3.js.gz +0 -0
  891. package/web/chunk-s7rwbxr5.js +0 -2
  892. package/web/chunk-s7rwbxr5.js.br +0 -0
  893. package/web/chunk-s7rwbxr5.js.gz +0 -0
  894. package/web/chunk-s8f6v2nn.js +0 -1
  895. package/web/chunk-s8f6v2nn.js.br +0 -0
  896. package/web/chunk-s8f6v2nn.js.gz +0 -0
  897. package/web/chunk-sawc81kc.js +0 -303
  898. package/web/chunk-sawc81kc.js.br +0 -0
  899. package/web/chunk-sawc81kc.js.gz +0 -0
  900. package/web/chunk-sex2gevj.js +0 -2
  901. package/web/chunk-sex2gevj.js.br +0 -0
  902. package/web/chunk-sex2gevj.js.gz +0 -0
  903. package/web/chunk-smmdqmcy.js +0 -1
  904. package/web/chunk-smmdqmcy.js.br +0 -0
  905. package/web/chunk-smmdqmcy.js.gz +0 -0
  906. package/web/chunk-tn39vbcz.js +0 -2
  907. package/web/chunk-tn39vbcz.js.br +0 -0
  908. package/web/chunk-tn39vbcz.js.gz +0 -0
  909. package/web/chunk-tntwwpyh.js +0 -2
  910. package/web/chunk-tntwwpyh.js.br +0 -0
  911. package/web/chunk-tntwwpyh.js.gz +0 -0
  912. package/web/chunk-tpzyyc2z.js +0 -2
  913. package/web/chunk-tpzyyc2z.js.br +0 -0
  914. package/web/chunk-tpzyyc2z.js.gz +0 -0
  915. package/web/chunk-txhvq81f.js +0 -106
  916. package/web/chunk-txhvq81f.js.br +0 -0
  917. package/web/chunk-txhvq81f.js.gz +0 -0
  918. package/web/chunk-txtm71rz.js +0 -41
  919. package/web/chunk-txtm71rz.js.br +0 -0
  920. package/web/chunk-txtm71rz.js.gz +0 -0
  921. package/web/chunk-tykcqm6v.js +0 -2
  922. package/web/chunk-tykcqm6v.js.br +0 -0
  923. package/web/chunk-tykcqm6v.js.gz +0 -0
  924. package/web/chunk-tyrmd7j6.js +0 -1
  925. package/web/chunk-tyrmd7j6.js.br +0 -0
  926. package/web/chunk-tyrmd7j6.js.gz +0 -0
  927. package/web/chunk-v6ebn3sf.js +0 -38
  928. package/web/chunk-v6ebn3sf.js.br +0 -0
  929. package/web/chunk-v6ebn3sf.js.gz +0 -0
  930. package/web/chunk-vbx7t0h5.js +0 -214
  931. package/web/chunk-vbx7t0h5.js.br +0 -0
  932. package/web/chunk-vbx7t0h5.js.gz +0 -0
  933. package/web/chunk-vj3wz0a2.js +0 -1
  934. package/web/chunk-vj3wz0a2.js.br +0 -0
  935. package/web/chunk-vj3wz0a2.js.gz +0 -0
  936. package/web/chunk-vndrjeyr.js +0 -2
  937. package/web/chunk-vndrjeyr.js.br +0 -0
  938. package/web/chunk-vndrjeyr.js.gz +0 -0
  939. package/web/chunk-vqgkd7q8.js +0 -1
  940. package/web/chunk-vqgkd7q8.js.br +0 -0
  941. package/web/chunk-vqgkd7q8.js.gz +0 -0
  942. package/web/chunk-vvsfwjrg.js +0 -1
  943. package/web/chunk-vvsfwjrg.js.br +0 -0
  944. package/web/chunk-vvsfwjrg.js.gz +0 -0
  945. package/web/chunk-w0k63gap.js +0 -2
  946. package/web/chunk-w0k63gap.js.br +0 -0
  947. package/web/chunk-w0k63gap.js.gz +0 -0
  948. package/web/chunk-wafwgky9.js +0 -1
  949. package/web/chunk-wafwgky9.js.br +0 -0
  950. package/web/chunk-wafwgky9.js.gz +0 -0
  951. package/web/chunk-wdd9pasx.js +0 -1
  952. package/web/chunk-wdd9pasx.js.br +0 -0
  953. package/web/chunk-wdd9pasx.js.gz +0 -0
  954. package/web/chunk-wk89vrvf.js +0 -78
  955. package/web/chunk-wk89vrvf.js.br +0 -0
  956. package/web/chunk-wk89vrvf.js.gz +0 -0
  957. package/web/chunk-wqjn3yz1.js +0 -370
  958. package/web/chunk-wqjn3yz1.js.br +0 -0
  959. package/web/chunk-wqjn3yz1.js.gz +0 -0
  960. package/web/chunk-wrej9qt0.js +0 -2
  961. package/web/chunk-wrej9qt0.js.br +0 -0
  962. package/web/chunk-wrej9qt0.js.gz +0 -0
  963. package/web/chunk-xbjv549c.js +0 -2
  964. package/web/chunk-xbjv549c.js.br +0 -0
  965. package/web/chunk-xbjv549c.js.gz +0 -0
  966. package/web/chunk-xmp1ag6z.js +0 -2
  967. package/web/chunk-xmp1ag6z.js.br +0 -0
  968. package/web/chunk-xmp1ag6z.js.gz +0 -0
  969. package/web/chunk-xsqd38a2.js +0 -332
  970. package/web/chunk-xsqd38a2.js.br +0 -0
  971. package/web/chunk-xsqd38a2.js.gz +0 -0
  972. package/web/chunk-y2fbz356.js +0 -1
  973. package/web/chunk-y2fbz356.js.br +0 -0
  974. package/web/chunk-y2fbz356.js.gz +0 -0
  975. package/web/chunk-y48mj5d7.js +0 -1
  976. package/web/chunk-y48mj5d7.js.br +0 -0
  977. package/web/chunk-y48mj5d7.js.gz +0 -0
  978. package/web/chunk-yebmbyrj.js +0 -1
  979. package/web/chunk-yebmbyrj.js.br +0 -2
  980. package/web/chunk-yebmbyrj.js.gz +0 -0
  981. package/web/chunk-ypytxmn6.js +0 -24
  982. package/web/chunk-ypytxmn6.js.br +0 -0
  983. package/web/chunk-ypytxmn6.js.gz +0 -0
  984. package/web/chunk-z6jy8edk.js +0 -99
  985. package/web/chunk-z6jy8edk.js.br +0 -0
  986. package/web/chunk-z6jy8edk.js.gz +0 -0
  987. package/web/chunk-zg5n1hx4.js +0 -1
  988. package/web/chunk-zg5n1hx4.js.br +0 -0
  989. package/web/chunk-zg5n1hx4.js.gz +0 -0
  990. package/web/chunk-zmrd0bnc.js +0 -139
  991. package/web/chunk-zmrd0bnc.js.br +0 -0
  992. package/web/chunk-zmrd0bnc.js.gz +0 -0
  993. package/web/chunk-zqm6n89p.js +0 -7
  994. package/web/chunk-zqm6n89p.js.br +0 -0
  995. package/web/chunk-zqm6n89p.js.gz +0 -0
  996. package/web/chunk-zvat895r.js +0 -1
  997. package/web/chunk-zvat895r.js.br +0 -0
  998. package/web/chunk-zvat895r.js.gz +0 -0
  999. package/web/chunk-zxt17pcp.js +0 -1
  1000. package/web/chunk-zxt17pcp.js.br +0 -0
  1001. package/web/chunk-zxt17pcp.js.gz +0 -0
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ function r(e){let t=e[e.length-1];return t&&t.role!=="user"?"agent":"user"}function tr(e){return e.some((t)=>{if(t.role==="user"&&Array.isArray(t.content))return t.content.some((n)=>n.type==="image");if(t.role==="toolResult"&&Array.isArray(t.content))return t.content.some((n)=>n.type==="image");return!1})}function rr(e){let t={"X-Initiator":r(e.messages),"Openai-Intent":"conversation-edits"};if(e.hasImages)t["Copilot-Vision-Request"]="true";return t}
3
+ export{tr,rr};
@@ -0,0 +1,60 @@
1
+ #!/usr/bin/env bun
2
+ // @bun
3
+ import{Ke}from"./chunk-s9p624fq.js";import{ze,js,yn,Ws,Ni,Hs,zs,qs,Gs,Vs,Ks,Qs}from"./chunk-sd8d792h.js";import{tt}from"./chunk-2xj51v3m.js";import{Ee}from"./chunk-8my52htr.js";import{mkdirSync as W}from"fs";import{dirname as F,join as z}from"path";import{parseArgs as Z}from"util";import{readFile as L}from"fs/promises";import{join as H}from"path";async function y(t,o){try{return await B(t,o),console.log(`Plugin ${o} reloaded`),0}catch(r){let a=(r instanceof Error?r.message:String(r)).replace(/[\p{Cc}\p{Cf}\p{Zl}\p{Zp}]+/gu," ");return console.error(`\u63D2\u4EF6\u91CD\u8F7D\u5931\u8D25\uFF1A${a}`),1}}async function B(t,o){if(!/^[a-zA-Z0-9][a-zA-Z0-9._-]{0,127}$/.test(o))throw Error("Invalid plugin id");let r=JSON.parse(await L(H(t,"server.json"),"utf8"));if(!r||typeof r!=="object"||!("url"in r)||typeof r.url!=="string")throw Error("Invalid server record; restart basalt");let a=new URL(r.url);if(a.username||a.password||a.protocol!=="https:"&&!(a.protocol==="http:"&&["localhost","127.0.0.1","[::1]"].includes(a.hostname)))throw Error("Plugin reload requires HTTPS or a local HTTP server");a.pathname=`/api/plugins/${encodeURIComponent(o)}/reload`,a.search="",a.hash="";let A=process.env.BASALT_TOKEN,c=await fetch(a,{method:"POST",redirect:"error",signal:AbortSignal.timeout(30000),headers:A?{Authorization:`Bearer ${A}`}:{}});if(!c.ok){let k=await c.text(),u="";try{let d=JSON.parse(k);if(d&&typeof d==="object"&&"error"in d){let l=d.error;if(typeof l==="string")u=l;else if(l&&typeof l==="object"&&"message"in l&&typeof l.message==="string")u=l.message}}catch{}let C=c.status===401?"\uFF1B\u8BF7\u8BBE\u7F6E BASALT_TOKEN \u4E3A\u5DF2\u914D\u5BF9\u8BBE\u5907\u4EE4\u724C\u540E\u91CD\u8BD5":"";throw Error(`HTTP ${c.status}${u?`\uFF1A${u}`:""}${C}`)}}import{appendFileSync as D,existsSync as P,mkdirSync as O,readFileSync as I}from"fs";import{homedir as T}from"os";import{basename as j,delimiter as U,dirname as S,join as p}from"path";var R=`
4
+ $dir = $env:BASALT_SETUP_DIR.TrimEnd('\\')
5
+ $current = [Environment]::GetEnvironmentVariable("Path", "User")
6
+ $parts = if ($current) { $current -split ';' } else { @() }
7
+ if ($parts | Where-Object { $_.TrimEnd('\\') -ieq $dir }) { Write-Output "exists"; exit 0 }
8
+ [Environment]::SetEnvironmentVariable("Path", (@($current, $dir) | Where-Object { $_ }) -join ';', "User")
9
+ Write-Output "added"
10
+ `;function K(t,o=process.env.SHELL,r=process.platform){let a=T();switch(j(o??"sh")){case"zsh":return{file:p(process.env.ZDOTDIR??a,".zshrc"),line:`export PATH="${t}:$PATH"`};case"bash":return{file:p(a,r==="darwin"?".bash_profile":".bashrc"),line:`export PATH="${t}:$PATH"`};case"fish":return{file:p(a,".config","fish","conf.d","basalt.fish"),line:`fish_add_path "${t}"`};default:return{file:p(a,".profile"),line:`export PATH="${t}:$PATH"`}}}function M(t){if(process.platform==="win32"){let a=Bun.spawnSync(["powershell","-NoProfile","-NonInteractive","-Command",R],{env:{...process.env,BASALT_SETUP_DIR:t},stderr:"pipe"});if(a.exitCode!==0)throw Error(`\u4FEE\u6539\u7528\u6237 PATH \u5931\u8D25\uFF1A${a.stderr.toString().trim()}`);return{status:a.stdout.toString().trim()==="added"?"added":"exists",target:"\u7528\u6237 PATH \u73AF\u5883\u53D8\u91CF"}}if(process.env.PATH?.split(U).includes(t))return{status:"exists",target:"\u5F53\u524D PATH"};let{file:o,line:r}=K(t);if(P(o)&&I(o,"utf8").includes(r))return{status:"exists",target:o};return O(S(o),{recursive:!0}),D(o,`
11
+ # Basalt
12
+ ${r}
13
+ `),{status:"added",target:o}}function v(t){let o;if(t.npmPackage){if(o=process.env.BUN_INSTALL_BIN??p(process.env.BUN_INSTALL??p(T(),".bun"),"bin"),!["basalt","basalt.exe","basalt.cmd"].some((a)=>P(p(o,a))))return console.error(`\u5728 ${o} \u91CC\u6CA1\u6709\u627E\u5230 basalt \u547D\u4EE4\u3002\u901A\u8FC7 npm \u5B89\u88C5\u65F6 npm \u7684\u5168\u5C40\u76EE\u5F55\u901A\u5E38\u5DF2\u5728 PATH \u4E2D\uFF0C\u65E0\u9700 setup\u3002`),1}else if(t.compiled)o=S(t.executable);else return console.error("\u4ECE\u6E90\u7801\u8FD0\u884C\u65F6\u65E0\u9700 setup"),1;try{let r=M(o);if(r.status==="exists")console.log(`${o} \u5DF2\u5728 ${r.target} \u4E2D\uFF0C\u65E0\u9700\u4FEE\u6539\u3002\u5982\u679C\u4ECD\u63D0\u793A\u627E\u4E0D\u5230 basalt\uFF0C\u8BF7\u91CD\u65B0\u6253\u5F00\u7EC8\u7AEF\u3002`);else console.log(`\u5DF2\u628A ${o} \u52A0\u5165 ${r.target}`),console.log("\u8BF7\u91CD\u65B0\u6253\u5F00\u7EC8\u7AEF\uFF0C\u4E4B\u540E\u53EF\u76F4\u63A5\u8FD0\u884C basalt");return 0}catch(r){return console.error(r instanceof Error?r.message:String(r)),1}}var G=`basalt \u2014 \u542F\u52A8\u5373\u670D\u52A1\u5668
14
+
15
+ \u7528\u6CD5: basalt [\u9009\u9879] \u540E\u53F0\u542F\u52A8\u670D\u52A1\uFF0C\u5C31\u7EEA\u540E\u8FD4\u56DE
16
+ basalt status \u67E5\u770B\u670D\u52A1\u72B6\u6001
17
+ basalt stop \u505C\u6B62\u670D\u52A1
18
+ basalt restart \u6309\u539F\u53C2\u6570\u91CD\u542F\u670D\u52A1
19
+ basalt logs \u67E5\u770B\u6700\u8FD1\u540E\u53F0\u65E5\u5FD7
20
+ basalt pair \u4E3A\u8FD0\u884C\u4E2D\u7684\u670D\u52A1\u751F\u6210\u65B0\u914D\u5BF9\u7801\u548C\u914D\u5BF9\u94FE\u63A5
21
+ basalt autostart <enable|disable|status> \u7BA1\u7406\u767B\u5F55\u81EA\u542F
22
+ basalt update \u7528\u5B89\u88C5\u65F6\u7684 npm/bun \u66F4\u65B0\u5230\u6700\u65B0\u7248\u672C\uFF08\u8FD0\u884C\u4E2D\u7684\u670D\u52A1\u7A7A\u95F2\u65F6\u81EA\u52A8\u91CD\u542F\uFF09
23
+ basalt setup \u628A basalt \u6240\u5728\u76EE\u5F55\u52A0\u5165 PATH\uFF08\u88C5\u5B8C\u63D0\u793A\u627E\u4E0D\u5230\u547D\u4EE4\u65F6\u7528\uFF09
24
+ basalt plugin reload <id> [--data <\u76EE\u5F55>]
25
+ basalt tunnel set <\u4E3B\u673A\u540D> [--token <\u4EE4\u724C>] [--aud <Audience> [--team <\u56E2\u961F\u57DF\u540D>]]
26
+ basalt tunnel off | status \u8FDC\u7A0B\u8BBF\u95EE\uFF08Cloudflare \u96A7\u9053\uFF0C\u89C1 README\uFF09
27
+ basalt run [\u9009\u9879] <\u63D0\u793A\u8BCD> \u65E0\u4EA4\u4E92\u8DD1\u5B8C\u4E00\u4E2A\u4EFB\u52A1\uFF1A\u4E0D\u542F\u52A8\u670D\u52A1\uFF0C\u6700\u7EC8\u56DE\u590D\u5199\u6807\u51C6\u8F93\u51FA\uFF0C\u8FC7\u7A0B\u5199\u6807\u51C6\u9519\u8BEF
28
+
29
+ --host <\u5730\u5740> \u76D1\u542C\u5730\u5740\uFF08\u9ED8\u8BA4 127.0.0.1\uFF1B\u5C40\u57DF\u7F51\u8BBE\u7F6E\u4EC5\u9644\u52A0\u79C1\u7F51\u76D1\u542C\uFF09
30
+ --port <\u7AEF\u53E3> \u76D1\u542C\u7AEF\u53E3\uFF08\u9ED8\u8BA4 7420\uFF09
31
+ --no-auth \u5173\u95ED\u8BA4\u8BC1\uFF08\u4EFB\u4F55\u80FD\u8FDE\u4E0A\u7684\u4EBA\u90FD\u80FD\u63A7\u5236\u8FD9\u53F0\u673A\u5668\uFF09
32
+ --no-tray \u4E0D\u663E\u793A\u7CFB\u7EDF\u6258\u76D8\u56FE\u6807
33
+ --insecure-http \u5141\u8BB8\u975E\u672C\u673A\u76D1\u542C\u4F7F\u7528\u660E\u6587 HTTP\uFF08\u4E0D\u63A8\u8350\uFF09
34
+ --allow-remote-no-auth \u5141\u8BB8\u975E\u672C\u673A\u76D1\u542C\u65F6\u5173\u95ED\u8BA4\u8BC1\uFF08\u6781\u4E0D\u5B89\u5168\uFF09
35
+ --allow-origin <\u6765\u6E90> \u5141\u8BB8\u8DE8\u57DF\u8BBF\u95EE\u7684 Web \u5730\u5740\uFF0C\u53EF\u91CD\u590D\uFF1B* \u8868\u793A\u4EFB\u610F
36
+ --allow-host <\u4E3B\u673A\u540D> \u5141\u8BB8\u53CD\u5411\u4EE3\u7406\u5165\u53E3\u4E3B\u673A\u540D\uFF0C\u53EF\u91CD\u590D\uFF1B\u4E0D\u542B\u534F\u8BAE\u6216\u7AEF\u53E3
37
+ --web-url <\u5730\u5740> \u914D\u5BF9\u94FE\u63A5\u4F7F\u7528\u7684 Web \u5730\u5740\uFF08\u9ED8\u8BA4\u670D\u52A1\u5668\u81EA\u5E26\u7684 Web\uFF09
38
+ --model <provider/id> \u542F\u52A8\u65F6\u4F7F\u7528\u7684\u6A21\u578B
39
+ --demo \u4F7F\u7528\u5185\u7F6E\u6F14\u793A\u6A21\u578B\uFF08\u4E0D\u9700\u8981\u4EFB\u4F55 API key\uFF09
40
+ --token <\u4EE4\u724C> tunnel set \u7528\uFF1A\u96A7\u9053\u4EE4\u724C\uFF08\u4E5F\u53EF\u8BBE BASALT_TUNNEL_TOKEN\uFF0C\u907F\u514D\u8FDB shell \u5386\u53F2\uFF09
41
+ --aud <Audience> tunnel set \u7528\uFF1AAccess \u5E94\u7528\u7684 Audience \u6807\u7B7E
42
+ --team <\u56E2\u961F\u57DF\u540D> tunnel set \u7528\uFF1AAccess \u56E2\u961F\u57DF\u540D\uFF08\u4E0D\u586B\u6309\u516C\u5171\u57DF\u540D\u7684\u767B\u5F55\u8DF3\u8F6C\u81EA\u52A8\u63A2\u6D4B\uFF09
43
+ --data <\u76EE\u5F55> \u6570\u636E\u76EE\u5F55\uFF08\u9ED8\u8BA4\u6309\u5E73\u53F0\u60EF\u4F8B\uFF0C\u6216 BASALT_HOME\uFF09
44
+ run \u4E13\u7528\uFF1A
45
+ --cwd <\u76EE\u5F55> \u5DE5\u4F5C\u76EE\u5F55\uFF08\u9ED8\u8BA4\u5F53\u524D\u76EE\u5F55\uFF09
46
+ --prompt-file <\u6587\u4EF6> \u4ECE\u6587\u4EF6\u8BFB\u53D6\u63D0\u793A\u8BCD\uFF1B\u90FD\u4E0D\u7ED9\u65F6\u8BFB\u6807\u51C6\u8F93\u5165
47
+ --timeout <\u79D2> \u8FD0\u884C\u65F6\u9650\uFF0C\u8D85\u65F6\u4E2D\u6B62\u5E76\u4EE5 124 \u9000\u51FA
48
+ --json \u6807\u51C6\u8F93\u51FA\u6539\u4E3A\u4E00\u4E2A JSON \u5BF9\u8C61\uFF08\u4F1A\u8BDD\u3001\u72B6\u6001\u3001\u6700\u7EC8\u56DE\u590D\u3001\u7528\u91CF\uFF09
49
+ --usage-file <\u6587\u4EF6> \u628A token \u7528\u91CF\u6C47\u603B\u5199\u6210 JSON \u6587\u4EF6\uFF08\u7ED3\u675F\u65F6\u4E5F\u4F1A\u5728\u6807\u51C6\u9519\u8BEF\u6253\u5370\u4E00\u884C\uFF09
50
+ --approve-all \u653E\u884C\u5371\u9669 git \u6307\u4EE4\uFF08\u65E0\u4EBA\u503C\u5B88\u9ED8\u8BA4\u62D2\u7EDD\uFF09
51
+ --base-url <\u5730\u5740> \u4E34\u65F6\u6A21\u578B\u670D\u52A1\u5546\u7684\u63A5\u53E3\u5730\u5740\uFF1B--model \u5199\u6210 <\u63D0\u4F9B\u65B9>/<\u6A21\u578B>\uFF0C\u5BC6\u94A5\u8BFB\u73AF\u5883\u53D8\u91CF BASALT_API_KEY
52
+ --protocol <\u534F\u8BAE> \u4E34\u65F6\u670D\u52A1\u5546\u534F\u8BAE\uFF1Aopenai-completions\uFF08\u9ED8\u8BA4\uFF09\u3001openai-responses\u3001anthropic-messages
53
+ --open \u542F\u52A8\u540E\u5728\u6D4F\u89C8\u5668\u91CC\u6253\u5F00\u5DE5\u4F5C\u53F0\uFF08\u5E26\u914D\u5BF9\u94FE\u63A5\uFF09
54
+ --foreground \u5728\u524D\u53F0\u8FD0\u884C\u670D\u52A1\uFF0C\u4F9B\u8C03\u8BD5\u3001launchd \u548C systemd \u4F7F\u7528
55
+ --replace \u5DF2\u6709\u5B9E\u4F8B\u5728\u8FD0\u884C\u65F6\u5148\u505C\u6389\u5B83\u518D\u542F\u52A8\uFF08\u5B89\u88C5\u548C\u66F4\u65B0\u7528\uFF09
56
+ --no-update-check \u4E0D\u81EA\u52A8\u68C0\u67E5\u548C\u5B89\u88C5\u65B0\u7248\u672C\uFF08\u4E5F\u53EF\u8BBE BASALT_NO_UPDATE_CHECK=1\uFF09
57
+ -v, --version \u663E\u793A\u7248\u672C
58
+ -h, --help \u663E\u793A\u5E2E\u52A9
59
+ `,{values:e,positionals:s}=Z({allowPositionals:!0,options:{host:{type:"string"},port:{type:"string"},"no-auth":{type:"boolean",default:!1},"no-tray":{type:"boolean",default:!1},"insecure-http":{type:"boolean",default:!1},"allow-remote-no-auth":{type:"boolean",default:!1},"allow-origin":{type:"string",multiple:!0,default:[]},"allow-host":{type:"string",multiple:!0,default:[]},"web-url":{type:"string"},model:{type:"string"},cwd:{type:"string"},"prompt-file":{type:"string"},"usage-file":{type:"string"},timeout:{type:"string"},json:{type:"boolean",default:!1},"approve-all":{type:"boolean",default:!1},"base-url":{type:"string"},protocol:{type:"string"},demo:{type:"boolean",default:!1},data:{type:"string"},token:{type:"string"},team:{type:"string"},aud:{type:"string"},open:{type:"boolean",default:!1},foreground:{type:"boolean",default:!1},replace:{type:"boolean",default:!1},"no-update-check":{type:"boolean",default:!1},version:{type:"boolean",short:"v",default:!1},help:{type:"boolean",short:"h",default:!1}}});if(e.help||s[0]==="help"&&s.length===1)console.log(G),process.exit(0);if(e.version)console.log(tt.version),process.exit(0);var m=process.argv.slice(2),x=z(Ke(),"instances"),n=e.data??(["status","stop","restart","logs","pair","plugin"].includes(s[0]??"")?await Ws(Ke(),x):Ke()),f=!0,g="@bkm016/basalt",h=f&&!g?[process.execPath]:[process.execPath,Bun.main],i=s[0],J=!e["no-update-check"]&&!process.env.BASALT_NO_UPDATE_CHECK,E=e.host===void 0||Ee(e.host),{portNumber:_,portSpecified:V}=js(e.port),b={loopback:E,insecureHttp:e["insecure-http"],noAuth:e["no-auth"],allowRemoteNoAuth:e["allow-remote-no-auth"],allowedHosts:e["allow-host"],allowedOrigins:e["allow-origin"],webUrl:e["web-url"]};if(i==="run"){let t=e.timeout===void 0?void 0:Number(e.timeout);if(t!==void 0&&!(t>0))console.error("--timeout \u5FC5\u987B\u662F\u6B63\u6570\uFF08\u79D2\uFF09"),process.exit(2);let{runCommand:o}=await import("./chunk-y218jsvc.js"),r=await o({prompt:s.slice(1).join(" "),promptFile:e["prompt-file"],dataDir:e.data,cwd:e.cwd,model:e.model,timeout:t,json:e.json,usageFile:e["usage-file"],approveAll:e["approve-all"],baseUrl:e["base-url"],protocol:e.protocol,defaultDataDir:n});process.exit(r)}if(i==="update"&&s.length===1)process.exit(await Qs(n,{packageDir:F(Bun.main),packageName:g,compiled:f}));if(i==="tunnel"){let{tunnelCommand:t}=await import("./chunk-hrt42rkh.js");process.exit(await t(n,s[1],s[2],{token:e.token,team:e.team,aud:e.aud,port:_}))}if(i==="setup"&&s.length===1)process.exit(v({compiled:f,npmPackage:g,executable:process.execPath}));if(i==="plugin"){let[,t,o]=s;if(t!=="reload"||!o||s.length!==3)console.error("\u7528\u6CD5: basalt plugin reload <id> [--data <\u76EE\u5F55>]"),process.exit(1);process.exit(await y(n,o))}if(i==="status"&&s.length===1)process.exit(await Hs(n));if(i==="stop"&&s.length===1)process.exit(await zs(n));if(i==="restart"&&s.length===1)process.exit(await qs({dataDir:n,rawArgs:m,launchCommand:h,open:e.open,validation:b}));if(i==="logs"&&s.length===1)process.exit(await Gs(n));if(i==="pair"&&s.length===1)process.exit(await Vs(n));if(i==="autostart"&&s.length===2)process.exit(await Ks({action:s[1]??"",dataDir:n,rawArgs:m,launchCommand:h,validation:b}));if(s.length)console.error(`\u672A\u77E5\u547D\u4EE4\uFF1A${s.join(" ")}
60
+ \u8FD0\u884C basalt --help \u67E5\u770B\u53EF\u7528\u547D\u4EE4`),process.exit(1);W(n,{recursive:!0});yn(b);var{NetworkManager:q,resolveNetworkHost:Y}=await import("./chunk-e2xqa46t.js"),w=new q(n);w.load();var N;try{N=Y(w.settings(),{host:e.host,auth:!e["no-auth"],insecureHttp:e["insecure-http"],allowRemoteNoAuth:e["allow-remote-no-auth"]})}catch(t){console.error(`\u62D2\u7EDD\u542F\u52A8\uFF1A${t instanceof Error?t.message:String(t)}`),process.exit(1)}if(!e.foreground){let t=await ze(n);if(t&&!e.replace){if(!e["no-tray"]&&typeof t.hwnd==="number"){let{notifyExistingTray:o}=await import("./chunk-28hye007.js");o(t.hwnd)}console.log(`basalt \u5DF2\u5728\u8FD0\u884C\uFF1A${t.url}`),process.exit(0)}process.exit(await Ni(h,m,n,process.cwd()))}var Q=Buffer.from(crypto.getRandomValues(new Uint8Array(32))).toString("base64url"),{startForegroundServer:X}=await import("./chunk-22k2be3e.js");await X({dataDir:n,instanceRegistry:x,rawArgs:m,launchCommand:h,compiled:f,npmPackage:g,portNumber:_,portSpecified:V,loopback:E,host:N,network:w,args:e,cliSecret:Q,autoUpdate:J});
@@ -0,0 +1,4 @@
1
+ // @bun
2
+ import"./chunk-s9p624fq.js";import"./chunk-emeb13nd.js";import"./chunk-x7tras0x.js";import"./chunk-2fmsw1c6.js";import"./chunk-d3xsmwbh.js";import"./chunk-a5wv2shs.js";import{Xt}from"./chunk-ctdtmwmd.js";async function u(o,n,s,t){let r=new Xt(o,{localPort:()=>t.port});try{if(n==="set"&&s){let e=t.token??process.env.BASALT_TUNNEL_TOKEN;if(t.team!==void 0&&t.aud===void 0)throw Error("Access \u6821\u9A8C\u9700\u8981 --aud\uFF1B--team \u53EF\u4EE5\u4E0D\u586B\uFF08\u4FDD\u5B58\u65F6\u4F1A\u81EA\u52A8\u63A2\u6D4B\u56E2\u961F\u57DF\u540D\uFF09");let a=await r.save({hostname:s,...e?{token:e}:{},...t.aud?{access:{...t.team?{teamDomain:t.team}:{},audience:t.aud}}:{}},{start:!1});return console.log(`\u5DF2\u4FDD\u5B58\uFF1A${a.publicURL}${a.access?"\uFF08\u5DF2\u542F\u7528 Access \u6821\u9A8C\uFF09":""}`),console.log(`Cloudflare \u91CC\u8BE5\u4E3B\u673A\u540D\u7684\u670D\u52A1\u8981\u6307\u5411 http://localhost:${t.port}`),console.log("\u4E0B\u6B21\u542F\u52A8 basalt \u65F6\u81EA\u52A8\u8FDE\u63A5\uFF1B\u5DF2\u5728\u8FD0\u884C\u7684 basalt \u8BF7\u5230 \u8BBE\u7F6E \u2192 \u670D\u52A1\u5668 \u2192 \u8FDC\u7A0B\u8BBF\u95EE \u91CC\u64CD\u4F5C\uFF0C\u6216\u52A0 --replace \u91CD\u542F\u3002"),0}if(n==="off")return await r.remove(),console.log("\u5DF2\u5220\u9664\u8FDC\u7A0B\u8BBF\u95EE\u914D\u7F6E"),0;if(n==="status"||n===void 0){let e=r.status();if(!e.configured)console.log("\u8FDC\u7A0B\u8BBF\u95EE\uFF1A\u672A\u914D\u7F6E\uFF08basalt tunnel set <\u4E3B\u673A\u540D> --token <\u4EE4\u724C>\uFF09");else console.log(`\u8FDC\u7A0B\u8BBF\u95EE\uFF1A${e.publicURL}
3
+ Access \u6821\u9A8C\uFF1A${e.access?e.access.teamDomain:"\u672A\u542F\u7528"}
4
+ \u4EE4\u724C\uFF1A\u5DF2\u4FDD\u5B58`);return 0}throw Error("\u7528\u6CD5\uFF1Abasalt tunnel set <\u4E3B\u673A\u540D> [--token <\u4EE4\u724C>] [--aud <Audience> [--team <\u56E2\u961F\u57DF\u540D>]] | off | status")}catch(e){return console.error(e instanceof Error?e.message:String(e)),1}}export{u as tunnelCommand};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ function ft(_){if(_===void 0)return;let n=Array.from(_);if(n.length<=64)return _;return n.slice(0,64).join("")}
3
+ export{ft};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{kn,fr,$r,jr,Wr,Hr,Pn,Rn,gr,Cn,In,Mn,On,Ln,Dn}from"./chunk-519eek65.js";import{A}from"./chunk-a5wv2shs.js";import{le}from"./chunk-zz9rj82y.js";import{Q,te}from"./chunk-tnay319j.js";import{re}from"./chunk-7mafj833.js";import{v}from"./chunk-fsekbhqb.js";import{ke}from"./chunk-9nkb5q43.js";import{G,ve,me,Je,oe,Y}from"./chunk-e67wqhzh.js";import{W}from"./chunk-ndt4jvh1.js";var T="v1",O="gcp-vertex-credentials",R=0,C=(e,o,t)=>{let i=new W,u=Je(o);return(async()=>{let n={role:"assistant",content:[],api:"google-vertex",provider:e.provider,model:e.id,usage:{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},stopReason:"pending",timestamp:Date.now()};try{if(t?.fetch&&t.fetch!==globalThis.fetch)throw Error("Custom fetch is not supported by the Google Vertex adapter");let c=L(t),g=c?S(e,c,t?.headers):I(e,P(t),U(t),t?.headers,t?.env),h=D(e,u,t),m=await t?.onPayload?.(h,e);if(m!==void 0)h=m;let p=await Dn(()=>g.models.generateContentStream(h),t);i.push({type:"start",partial:n});let r=null,f=n.content,l=()=>f.length-1;for await(let s of p){await t?.onProviderStreamEvent?.(s,e),n.responseId||=s.responseId;let k=s.candidates?.[0];if(k?.content?.parts)for(let a of k.content.parts){if(a.text!==void 0){let d=Rn(a);if(!r||d&&r.type!=="thinking"||!d&&r.type!=="text"){if(r)if(r.type==="text")i.push({type:"text_end",contentIndex:f.length-1,content:r.text,partial:n});else i.push({type:"thinking_end",contentIndex:l(),content:r.thinking,partial:n});if(d)r={type:"thinking",thinking:"",thinkingSignature:void 0},n.content.push(r),i.push({type:"thinking_start",contentIndex:l(),partial:n});else r={type:"text",text:""},n.content.push(r),i.push({type:"text_start",contentIndex:l(),partial:n})}if(r.type==="thinking")r.thinking+=a.text,r.thinkingSignature=gr(r.thinkingSignature,a.thoughtSignature),i.push({type:"thinking_delta",contentIndex:l(),delta:a.text,partial:n});else r.text+=a.text,r.textSignature=gr(r.textSignature,a.thoughtSignature),i.push({type:"text_delta",contentIndex:l(),delta:a.text,partial:n})}if(a.functionCall){if(r){if(r.type==="text")i.push({type:"text_end",contentIndex:l(),content:r.text,partial:n});else i.push({type:"thinking_end",contentIndex:l(),content:r.thinking,partial:n});r=null}let d=a.functionCall.id,y={type:"toolCall",id:!d||n.content.some((x)=>x.type==="toolCall"&&x.id===d)?`${a.functionCall.name}_${Date.now()}_${++R}`:d,name:a.functionCall.name||"",arguments:a.functionCall.args??{},...a.thoughtSignature&&{thoughtSignature:a.thoughtSignature}};n.content.push(y),i.push({type:"toolcall_start",contentIndex:l(),partial:n}),i.push({type:"toolcall_delta",contentIndex:l(),delta:JSON.stringify(y.arguments),partial:n}),i.push({type:"toolcall_end",contentIndex:l(),toolCall:y,partial:n})}}if(k?.finishReason){if(n.rawStopReason=k.finishReason,n.stopReason=Ln(k.finishReason),n.content.some((a)=>a.type==="toolCall")&&n.stopReason==="stop")n.stopReason="toolUse"}if(s.usageMetadata)n.usage={input:(s.usageMetadata.promptTokenCount||0)-(s.usageMetadata.cachedContentTokenCount||0),output:(s.usageMetadata.candidatesTokenCount||0)+(s.usageMetadata.thoughtsTokenCount||0),cacheRead:s.usageMetadata.cachedContentTokenCount||0,cacheWrite:0,reasoning:s.usageMetadata.thoughtsTokenCount||0,totalTokens:s.usageMetadata.totalTokenCount||0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},oe(e,n.usage)}if(r)if(r.type==="text")i.push({type:"text_end",contentIndex:l(),content:r.text,partial:n});else i.push({type:"thinking_end",contentIndex:l(),content:r.thinking,partial:n});if(t?.signal?.aborted)throw Error("Request was aborted");if(n.stopReason==="pending")throw Error("Google Vertex stream ended without a finish reason");if(n.stopReason==="aborted"||n.stopReason==="error"){let s=n.rawStopReason?`Provider stopped with: ${n.rawStopReason}`:"An unknown error occurred";throw Error(s)}i.push({type:"done",reason:n.stopReason,message:n}),i.end()}catch(c){for(let g of n.content)if("index"in g)delete g.index;n.stopReason=t?.signal?.aborted?"aborted":"error",n.errorMessage=te(Q(c)),i.push({type:"error",reason:n.stopReason,error:n}),i.end()}})(),i},ae=(e,o,t)=>{let i={...re(e,o,t,void 0),toolChoice:t?.toolChoice};if(!t?.reasoning)return C(e,o,{...i,thinking:{enabled:!1}});let u=Y(e,t.reasoning);if(u==="off")return C(e,o,{...i,thinking:{enabled:!1}});let n=$r(e,u);if(jr(e))return C(e,o,{...i,thinking:{enabled:!0,level:Wr(n)}});return C(e,o,{...i,thinking:{enabled:!0,budgetTokens:V(e,n,t.thinkingBudgets)}})};function I(e,o,t,i,u){let n=E(u);return new fr({vertexai:!0,project:o,location:t,apiVersion:T,...n?{googleAuthOptions:n}:{},httpOptions:b(e,i)})}function S(e,o,t){return new fr({vertexai:!0,apiKey:o,apiVersion:T,httpOptions:b(e,t)})}function b(e,o){let t={},i=w(e.baseUrl);if(i){if(t.baseUrl=i,t.baseUrlResourceScope=kn.COLLECTION,_(i))t.apiVersion=""}let u=ke({"User-Agent":le(),...e.headers,...o});if(u)t.headers=u;return Object.keys(t).length>0?t:void 0}function w(e){let o=e.trim();if(!o||o.includes("{location}"))return;return o}function _(e){try{return new URL(e).pathname.split("/").some((t)=>/^v\d+(?:beta\d*)?$/.test(t))}catch{return/(?:^|\/)v\d+(?:beta\d*)?(?:\/|$)/.test(e)}}function E(e){let o=A("GOOGLE_APPLICATION_CREDENTIALS",e);return o?{keyFilename:o}:void 0}function L(e){let o=e?.apiKey?.trim();if(!o||o===O||M(o))return;return o}function M(e){return/^<[^>]+>$/.test(e)}function P(e){let o=e?.project||A("GOOGLE_CLOUD_PROJECT",e?.env)||A("GCLOUD_PROJECT",e?.env);if(!o)throw Error("Vertex AI requires a project ID. Set GOOGLE_CLOUD_PROJECT/GCLOUD_PROJECT or pass project in options.");return o}function U(e){let o=e?.location||A("GOOGLE_CLOUD_LOCATION",e?.env);if(!o)throw Error("Vertex AI requires a location. Set GOOGLE_CLOUD_LOCATION or pass location in options.");return o}function D(e,o,t={}){let i=Cn(e,o),u=ve(o.messages),n=me(o.messages),c={};if(t.temperature!==void 0)c.temperature=t.temperature;if(t.maxTokens!==void 0)c.maxOutputTokens=t.maxTokens;let g=Mn(e.id),h=n.length>0?On(n,t.toolChoice,g):void 0,m=u?G(u):"",p={...Object.keys(c).length>0&&c,...m&&{systemInstruction:v(m)},...n.length>0&&{tools:In(n,!1,g)},...h!==void 0&&{toolConfig:{functionCallingConfig:{mode:h}}}};if(t.thinking?.enabled&&e.reasoning){let f={includeThoughts:!0};if(t.thinking.level!==void 0)f.thinkingLevel=Hr(t.thinking.level);else if(t.thinking.budgetTokens!==void 0)f.thinkingBudget=t.thinking.budgetTokens;p.thinkingConfig=f}else if(e.reasoning&&t.thinking&&!t.thinking.enabled)p.thinkingConfig=Pn(e);if(t.signal){if(t.signal.aborted)throw Error("Request aborted");p.abortSignal=t.signal}return{model:e.id,contents:i,config:p}}function V(e,o,t){if(t?.[o]!==void 0)return t[o];if(e.id.includes("2.5-pro"))return{minimal:128,low:2048,medium:8192,high:32768}[o];if(e.id.includes("2.5-flash"))return{minimal:128,low:2048,medium:8192,high:24576}[o];return-1}export{C as stream,ae as streamSimple};
@@ -0,0 +1,16 @@
1
+ // @bun
2
+ import{os,Qt,Ut,C,Co,is}from"./chunk-92mpgche.js";import{o,e,p,br,er,N,Se,M,ds,jn,Sr}from"./chunk-e5ccfgsk.js";import*as S from"fs/promises";import*as ne from"fs";import*as O from"path";import*as $e from"child_process";import*as at from"crypto";import*as ct from"readline";function D(a){if(a.inputSchema.type!=="object")throw Error(`JSON schema for tool "${a.name}" must be an object, but got ${a.inputSchema.type}`);return{type:"custom",name:a.name,input_schema:a.inputSchema,description:a.description,run:a.run,parse:(r)=>r,...a.close?{close:a.close}:{}}}var F=Ut.promises,J=448,pt=384;function ae(a,r){let t=C.relative(a,r);return t===""||!t.startsWith(".."+C.sep)&&t!==".."&&!C.isAbsolute(t)}async function Ee(a,r){for(let t of a)if(ae(await X(C.resolve(t)),r))return t;return}var yt=40;function Z(a){let r=a?.code;return typeof r==="string"?r:void 0}async function X(a){let r=[],t=a,i=0;for(;;){let n;try{n=await F.realpath(t)}catch(s){let c;try{c=(await F.lstat(t)).isSymbolicLink()}catch(l){let f=Z(l);if(f!=="ENOENT"&&f!=="ENOTDIR")throw l;let h=C.dirname(t);if(h===t)throw l;r.push(C.basename(t)),t=h;continue}if(!c)throw s;if(++i>yt)throw Object.assign(Error("too many levels of symbolic links"),{code:"ELOOP"});t=C.resolve(C.dirname(t),await F.readlink(t));continue}return r.length?C.join(n,...r.reverse()):n}}async function Ae(a,r,t){let i=t?.allowedRoots??[],n=await X(C.resolve(a)),s;try{s=await X(C.resolve(n,r))}catch(l){throw new M(q(l,`path ${JSON.stringify(r)}`))}if(ae(n,s)||await Ee(i,s)!==void 0)return s;let c=i.length?"the session's working directory and its other permitted directories":"the session's working directory";throw new M(`path ${JSON.stringify(r)} is outside ${c}`)}async function be(a,r){let t=C.dirname(a),i=C.join(t,`.tmp-${process.pid}-${Qt.randomUUID()}`),n=await F.stat(a).then((c)=>c.mode&511,()=>{return}),s;try{if(s=await F.open(i,"wx",pt),n!==void 0)await s.chmod(n);await s.writeFile(r,"utf-8"),await s.sync(),await s.close(),s=void 0,await F.rename(i,a)}catch(c){if(s)await s.close().catch(()=>{});throw await F.unlink(i).catch(()=>{}),c}}function q(a,r){let t=Z(a);switch(t){case"ENOENT":return`${r}: no such file or directory`;case"EACCES":case"EPERM":return`${r}: permission denied`;case"ENOTDIR":return`${r}: not a directory`;case"EISDIR":return`${r}: is a directory`;case"ELOOP":return`${r}: too many levels of symbolic links`;case"ENAMETOOLONG":return`${r}: file name too long`;case"ENOSPC":return`${r}: no space left on device`;case"EMFILE":case"ENFILE":return`${r}: too many open files`;default:return`${r}: ${t!==void 0?`i/o error (${t})`:"i/o error"}`}}var I=Ut.promises,wt=is.promisify(os.execFile);async function _t(a){let{client:r,sessionId:t}=a;if(!r)return async()=>{};let i=N(r),n=a.session;if(!n){if(t===void 0)return async()=>{};i.warn("AgentToolContext.sessionId is deprecated and costs an extra session fetch; fetch the session once and set `session` instead",{component:"agent-tool-context"}),n=await r.beta.sessions.retrieve(t)}let s=C.resolve(a.workdir,"skills"),c=[];for(let l of n.agent.skills)try{let f=await r.beta.skills.versions.retrieve(l.version,{skill_id:l.skill_id}),h=C.basename(f.name.trim());if(h===""||h==="."||h==="..")h=l.skill_id;let d=C.resolve(s,h);if(d!==s&&!d.startsWith(s+C.sep)){i.warn("skill name escapes the skills dir; skipping",{component:"agent-tool-context",name:f.name});continue}let m=await r.beta.skills.versions.download(f.id,{skill_id:l.skill_id});await I.rm(d,{recursive:!0,force:!0}),await I.mkdir(d,{recursive:!0,mode:J}),c.push(d),await Ce(m,d),i.info("downloaded skill",{component:"agent-tool-context",skill_id:l.skill_id,version:f.id,dest:d})}catch(f){i.warn("failed to download skill",{component:"agent-tool-context",skill_id:l.skill_id,error:String(f)})}return async()=>{for(let l of c)await I.rm(l,{recursive:!0,force:!0}).catch((f)=>{i.warn("failed to clean up skill",{component:"agent-tool-context",dest:l,error:String(f)})})}}function gt(a){for(let r of a){let t=r.trim();if(!t)continue;if(C.isAbsolute(t)||t.split(/[\\/]/).includes(".."))throw new p(`refusing to extract unsafe archive member: ${t}`)}}var Me="skill archive listing is inconsistent; refusing to extract",St={unzip:new Set(["-","d","?"]),tar:new Set(["-","d","C"])};function xe(a){let r=a.split(`
3
+ `);if(r[r.length-1]==="")r.pop();return r}function Et(a,r){return/^[\x20-\x7E]+$/.test(r)&&!/[\\^#]/.test(r)&&!(a==="unzip"&&r.startsWith("-"))}function bt(a,r,t){let i=xe(r),n=xe(t);if(i.length!==n.length)throw new p(Me);let s=[],c=[];return i.forEach((l,f)=>{if(St[a].has(n[f].charAt(0))){s.push(l);return}if(!Et(a,l))throw new p(`refusing to extract archive: cannot safely exclude member ${JSON.stringify(l)}`);c.push(l)}),{plain:s,special:c}}async function De(a){for(let r of await I.readdir(a,{withFileTypes:!0}))if(r.isDirectory())await De(C.join(a,r.name));else if(!r.isFile())throw new p(Me)}async function Oe(a,r){try{let{stdout:t}=await wt(a,r);return t}catch(t){if(Z(t)==="ENOENT")throw new p(`skill extraction requires the \`${a}\` command, but it was not found on PATH`);throw t}}function Ot(a){let r,t=!1;for(let i of a){let n=i.trim().split("/").filter((c)=>c!==""&&c!==".");if(n.length===0)continue;let s=n[0];if(r===void 0)r=s;else if(s!==r)return"";if(n.length>1)t=!0}return r!==void 0&&t?r:""}async function Ce(a,r){let t=C.join(r,`.skill-archive-${process.pid}-${Date.now()}`);if(!a.body)throw new p("skill download response had no body");await Co.promises.pipeline(Co.Readable.fromWeb(a.body),Ut.createWriteStream(t));let i=C.join(C.dirname(r),`.skill-stage-${process.pid}-${Date.now()}`),n=C.join(C.dirname(r),`.skill-exclude-${process.pid}-${Date.now()}`);try{let s=await vt(t,4),c=s.length>=4&&s[0]===80&&s[1]===75&&s[2]===3&&s[3]===4,l=c?"unzip":"tar",f=await Oe(l,c?["-Z1",t]:["-tf",t]),h=await Oe(l,c?["-Z","--h","--t",t]:["-tvf",t]),{plain:d,special:m}=bt(l,f,h);gt([...d,...m]);let _=Ot(d);if(await I.mkdir(i,{recursive:!0,mode:J}),d.length>0)await Oe(l,await Mt(l,t,i,m,n));await De(i);let E=_?C.join(i,_):i,x=await I.readdir(E).catch((v)=>{throw Z(v)==="ENOENT"?new p(Me):v});for(let v of x)await I.rename(C.join(E,v),C.join(r,v))}finally{await I.rm(t,{force:!0}),await I.rm(n,{force:!0}),await I.rm(i,{recursive:!0,force:!0})}}async function Mt(a,r,t,i,n){let s=i.map((c)=>c.replace(/[*?[\\]/g,"\\$&"));if(a==="unzip")return["-oq",r,"-d",t,...s.length>0?["-x",...s]:[]];if(s.length===0)return["-xf",r,"-C",t];return await I.writeFile(n,s.join(`
4
+ `)+`
5
+ `,{flag:"wx",mode:384}),["-xf",r,"-C",t,"-X",n]}async function vt(a,r){let t=await I.open(a,"r");try{let i=Buffer.alloc(r),{bytesRead:n}=await t.read(i,0,r,0);return i.subarray(0,n)}finally{await t.close()}}var g=Ut.promises,z=Ut.constants,Ue=448,kt=384,It=448,ke=z.O_NOFOLLOW??0,Rt=z.O_NONBLOCK??0,y=(()=>{class a extends Error{constructor(r,t){super(`path ${JSON.stringify(t)} ${r}`);this.name="FileStoreError",this.reason=r,this.relPath=t}}return a.ESCAPES_ROOT="escapes the store root",a.IS_A_SYMLINK="is a symlink",a.NOT_A_FILE="is not a regular file",a.NOT_A_DIRECTORY="is not a directory",a.NOT_UTF8="is not valid utf-8",a.MOVE_DESTINATION_EXISTS="already exists",a})();function Ie(a){return a.startsWith("/")&&!a.split("/").includes("..")}var ve=(()=>{class a{constructor(r,t,i=!1){this.hashes=new Map,this.rootPath=r,this.removedOnDispose=t,this.decoder=i?new TextDecoder("utf-8",{fatal:!0}):void 0}static async open(r,t){if(!Nt())throw Error("FileStore requires O_NOFOLLOW support on this platform");let i=!1;try{await g.lstat(r)}catch(n){if(n.code!=="ENOENT")throw n;i=!0}return new a(C.resolve(r),i,t?.utf8??!1)}async createRoot(){await Tt(this.rootPath)}root(){return{path:this.rootPath,removedOnDispose:this.removedOnDispose}}async dispose(){if(!this.removedOnDispose)return;await g.rm(this.rootPath,{recursive:!0,force:!0})}async put(r,t,i){let n=r.replace(/\\/g,"/");if(n.endsWith("/")||n.endsWith("/.")||n===""||n===".")throw new y(y.NOT_A_FILE,r);let s=this.resolveUnderRoot(r),c=typeof t==="string"?br(t):t;this.requireUtf8(r,c),await Fe(this.rootPath,C.dirname(s)),await Lt(s,c,i?.executable??!1)}async get(r){let t=this.resolveUnderRoot(r),i;try{i=await je(r,t)}catch(s){if(s.code==="ENOENT")return null;throw s}let n;try{let s=await i.readFile();n=new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}finally{await i.close()}return this.requireUtf8(r,n),n}async ls(r="/"){let t=this.resolveUnderRoot(r);return new Set((await Pe(this.rootPath,r,t)).map(([i])=>i))}async findSymlinks(r="/"){let t=this.resolveUnderRoot(r);return At(this.rootPath,r,t)}async hashtree(r="/"){let t=this.resolveUnderRoot(r),i=ce.nowNs(),n=Object.create(null);for(let[s,c]of await Pe(this.rootPath,r,t)){let l=await this.hashViaCache(s,c,i);if(l!==null)n[s]=l}return n}async hashFile(r){let t=this.resolveUnderRoot(r),i;try{i=await g.lstat(t,{bigint:!0})}catch(s){if(s.code==="ENOENT")return null;throw s}if(i.isSymbolicLink())throw new y(y.IS_A_SYMLINK,r);if(!i.isFile())throw new y(y.NOT_A_FILE,r);let n=C.relative(this.rootPath,t).split(C.sep).join("/");return this.hashViaCache(n,t,ce.nowNs())}async move(r,t){let i=this.resolveUnderRoot(r),n=this.resolveUnderRoot(t);if(i===this.rootPath||n===this.rootPath)return;if(await g.stat(n).then(()=>!0,()=>!1))throw new y(y.MOVE_DESTINATION_EXISTS,t);await Fe(this.rootPath,C.dirname(n)),await g.rename(i,n)}async remove(r){let t=this.resolveUnderRoot(r);if(t===this.rootPath)return;let i;try{i=await g.lstat(t,{bigint:!0})}catch(n){if(n.code==="ENOENT")return;throw n}if(i.isDirectory())await g.rm(t,{recursive:!0,force:!0});else try{await g.unlink(t)}catch(n){if(n.code!=="ENOENT")throw n}}resolveUnderRoot(r){let t=r.replace(/\\/g,"/").replace(/^\/+/,""),i=t.split("/").filter((n)=>n!==""&&n!==".");if(C.posix.isAbsolute(t)||i.includes(".."))throw new y(y.ESCAPES_ROOT,r);return i.length===0?this.rootPath:C.join(this.rootPath,...i)}requireUtf8(r,t){if(!this.decoder)return;try{this.decoder.decode(t)}catch{throw new y(y.NOT_UTF8,r)}}async hashViaCache(r,t,i){let n;try{n=await g.lstat(t,{bigint:!0})}catch(l){if(l.code==="ENOENT")return null;throw l}if(!n.isFile())return null;let s=this.hashes.get(r),c;if(s!==void 0&&Dt(s,n))c=s.sha;else try{c=await ce.hashFile(t)}catch(l){let f=l.code;if(f==="ENOENT"||l instanceof y)return null;if(f==="ELOOP"||f==="EMLINK")return null;throw l}if(Ct(n,i))this.hashes.set(r,{mtimeNs:n.mtimeNs,ctimeNs:n.ctimeNs,size:n.size,sha:c});return c}}return a.isPathLegal=Ie,a})();function Nt(){return ke!==0}async function Tt(a){let r=[],t=a;for(;;){try{await g.stat(t);break}catch(n){let s=n.code;if(s!=="ENOENT"&&s!=="ENOTDIR"&&s!=="ELOOP")throw n}r.push(t);let i=C.dirname(t);if(i===t)break;t=i}for(let i of r.reverse())try{await g.mkdir(i,{mode:Ue})}catch(n){if(n.code!=="EEXIST")throw n}}async function Fe(a,r){let t=C.relative(a,r);if(t==="")return;let i=a;for(let n of t.split(C.sep)){i=C.join(i,n);try{await g.mkdir(i,{mode:Ue})}catch(s){if(s.code!=="EEXIST")throw s}}}async function Lt(a,r,t){let i=t?It:kt,n=C.join(C.dirname(a),`.fs-${Qt.randomBytes(8).toString("hex")}.tmp`),s;try{s=await g.open(n,z.O_WRONLY|z.O_CREAT|z.O_EXCL|ke,i),await s.writeFile(r),await s.close(),s=void 0,await g.rename(n,a)}catch(c){if(s)await s.close().catch(()=>{});throw await g.unlink(n).catch(()=>{}),c}}async function je(a,r){let t;try{t=await g.open(r,z.O_RDONLY|ke|Rt)}catch(i){let n=i.code;if(n==="ELOOP"||n==="EMLINK")throw new y(y.IS_A_SYMLINK,a);throw i}try{if(!(await t.stat()).isFile())throw new y(y.NOT_A_FILE,a)}catch(i){throw await t.close().catch(()=>{}),i}return t}async function $t(a){let r=Qt.createHash("sha256"),t=await je(C.basename(a),a),i=new Uint8Array(1048576);try{for(;;){let{bytesRead:n}=await t.read(i,0,i.length);if(n===0)break;r.update(i.subarray(0,n))}}finally{await t.close()}return r.digest("hex")}async function Pe(a,r,t){if(!await xt(r,t))return[];let i=[];return await Be(t,(n,s)=>{if(s.isFile())i.push([C.relative(a,n).split(C.sep).join("/"),n])}),i.sort(),i}async function At(a,r,t){let i=(c)=>C.relative(a,c).split(C.sep).join("/"),n;try{n=await g.lstat(t,{bigint:!0})}catch(c){let l=c.code;if(l==="ENOENT"||l==="ENOTDIR")return new Set;throw c}if(n.isSymbolicLink())return new Set([i(t)]);if(!n.isDirectory())throw new y(y.NOT_A_DIRECTORY,r);let s=new Set;return await Be(t,(c,l)=>{if(l.isSymbolicLink())s.add(i(c))}),s}async function xt(a,r){let t;try{t=await g.lstat(r,{bigint:!0})}catch(i){let n=i.code;if(n==="ENOENT"||n==="ENOTDIR")return!1;throw i}if(!t.isDirectory())throw new y(y.NOT_A_DIRECTORY,a);return!0}async function Be(a,r){let t=[a];while(t.length){let i=t.pop(),n;try{n=await g.readdir(i,{withFileTypes:!0})}catch(s){if(s.code==="ENOENT")continue;throw s}for(let s of n){let c=C.join(i,s.name);if(r(c,s),s.isDirectory()&&!s.isSymbolicLink())t.push(c)}}}function Dt(a,r){return r.mtimeNs===a.mtimeNs&&r.ctimeNs===a.ctimeNs&&r.size===a.size}function Ct(a,r){return(a.mtimeNs>a.ctimeNs?a.mtimeNs:a.ctimeNs)<r-ce.timestampTrustMarginNs}var Ft=2000000000n,ce={hashFile:$t,timestampTrustMarginNs:Ft,nowNs:()=>BigInt(Date.now())*1000000n},Ye=ve,We=Symbol.asyncDispose;if(We)Object.defineProperty(ve.prototype,We,{value:ve.prototype.dispose,configurable:!0,writable:!0});var w,T,le,Q,fe,u,G,de,L,qe,he,ze,Ge,Re,Ne,He,Ke,Te,Ve,Xe,me,ue,Je,Ze,Pt=30000,K=".anthropic-memory-store",et=1;function Qe(a){return Qt.createHash("sha256").update(`version ${et}
6
+ ${a}`,"utf-8").digest("hex")}var Wt=30000,jt=100,Bt=20,Yt=16,qt=32,zt=8,Gt=50;class P extends p{constructor(a,r){super(a);if(this.name="SessionMemoryError",r!==void 0)this.cause=r}}class tt{constructor(a,r,t){this.mode=a,this.cap=r,this.waiveWindow=t,this.attempted=0,this.capped=0,this.suppressed=0}takeSlot(){if(this.attempted>=this.cap)return this.capped++,!1;return this.attempted++,!0}}var Ht=(()=>{class a{constructor(r,t){w.add(this),T.set(this,void 0),le.set(this,void 0),Q.set(this,void 0),fe.set(this,void 0),u.set(this,void 0),G.set(this,void 0),de.set(this,!1),L.set(this,[]),o(this,T,r,"f"),o(this,le,t.workdir,"f"),o(this,Q,t.syncIntervalMs??ds,"f"),jn(e(this,Q,"f"),"syncIntervalMs"),o(this,fe,t.syncDeletions??"enabled","f"),o(this,u,N(r),"f"),o(this,G,Date.now(),"f")}get roots(){return e(this,L,"f").map((r)=>r.files.root().path)}get readOnlyRoots(){return e(this,L,"f").filter((r)=>r.readOnly).map((r)=>r.files.root().path)}async download(r){for(let t of r.resources){if(t.type!=="memory_store")continue;let i=e(this,w,"m",qe).call(this,t),n;try{if(n={memoryStoreId:t.memory_store_id,files:await Ye.open(i,{utf8:!0}),readOnly:t.access==="read_only",baseline:new Map,refusedShas:new Map,pendingDeletes:new Map},!n.files.root().removedOnDispose)throw new P(`something already exists at the memory store's path: ${i} (memory_store_id=${t.memory_store_id}); it must not exist when the session starts`);try{await n.files.createRoot()}catch(s){if(!H(s))throw s;throw new P(`cannot create the memory store's folder: ${i} (memory_store_id=${t.memory_store_id}): ${s}; the worker host must make this mount path writable`,s)}await e(this,w,"m",Ne).call(this,n),e(this,u,"f").info("downloaded memories",{count:n.baseline.size,memory_store_id:n.memoryStoreId,dest:n.files.root().path}),e(this,L,"f").push(n)}catch(s){if(n)await n.files.dispose().catch(()=>{});if(s instanceof P)throw s;throw new P(`failed to download memory store memory_store_id=${t.memory_store_id}: ${s}`,s)}}o(this,G,Date.now(),"f")}async finish(){if(e(this,de,"f"))throw new p("finish() was already called: it is the session's last sync and runs once");o(this,de,!0,"f"),await this.syncAll(!0)}async syncAll(r){await Promise.all(e(this,L,"f").map((t)=>e(this,w,"m",ze).call(this,t,r))),o(this,G,Date.now(),"f")}async syncIfDue(){if(Date.now()-e(this,G,"f")<e(this,Q,"f"))return;await this.syncAll(!1)}async flushWrites(r){await Promise.all(e(this,L,"f").map((t)=>e(this,w,"m",Ge).call(this,t,r)))}async dispose(){for(let r of e(this,L,"f")){let t=r.files.root();try{let i=await e(this,w,"m",he).call(this,r);if(!i.markerOk&&Object.keys(i.files).length>0){e(this,u,"f").warn(`${i.distrustReason}; leaving the memory store folder on disk`,{root:t.path,memory_store_id:r.memoryStoreId});continue}await r.files.dispose()}catch(i){if(!(i instanceof y)&&!H(i))throw i;e(this,u,"f").warn("failed to remove the memory store folder",{root:r.files.root().path,memory_store_id:r.memoryStoreId,error:String(i)});continue}if(t.removedOnDispose)e(this,u,"f").info("removed memory store dir",{dest:t.path,memory_store_id:r.memoryStoreId})}}}return T=new WeakMap,le=new WeakMap,Q=new WeakMap,fe=new WeakMap,u=new WeakMap,G=new WeakMap,de=new WeakMap,L=new WeakMap,w=new WeakSet,qe=function(t){if(t.mount_path){if(!Ie(t.mount_path))throw new P(`memory store mount_path is not a clean absolute path: ${JSON.stringify(t.mount_path)} (memory_store_id=${t.memory_store_id})`);return t.mount_path}return C.join(e(this,le,"f"),"memory",t.name||t.memory_store_id)},he=async function(t){let i=await t.files.hashtree(),n=i[K];if(delete i[K],n===Qe(t.memoryStoreId))return{files:i,markerOk:!0,distrustReason:null};return{files:i,markerOk:!1,distrustReason:n!==void 0?"the marker file does not match this store":"the marker file is gone"}},ze=async function(t,i){try{let n=await e(this,w,"m",he).call(this,t),s=n.files;if(!n.markerOk){if(Object.keys(s).length>0){e(this,u,"f").warn(`${n.distrustReason}; leaving the memory store folder as found and not syncing`,{root:t.files.root().path,memory_store_id:t.memoryStoreId});return}await e(this,w,"m",Re).call(this,t,"the folder or its marker is gone");return}if(Object.keys(s).length===0&&t.baseline.size>1){await e(this,w,"m",Re).call(this,t,"every memory file is gone at once");return}let c=new Map;for await(let[m,_]of e(this,w,"m",me).call(this,t.memoryStoreId))c.set(m,_);let l=new tt(e(this,fe,"f"),Math.max(zt,Math.min(Gt,Math.floor(t.baseline.size/4))),i),f=[],h=new Map,d=[...new Set([...c.keys(),...Object.keys(s),...t.baseline.keys()])].sort();for(let m of d){let _=c.get(m),E=s[m],x=t.baseline.get(m),v;if(E===void 0&&x!==void 0&&_!==void 0&&_.content_sha256===x&&!t.readOnly)v=await e(this,w,"m",Je).call(this,t,m,_,x,l);else v=await e(this,w,"m",He).call(this,t,m,_,E,f);if(v!==void 0)h.set(m,v)}if(t.baseline=h,await e(this,w,"m",Ve).call(this,t,f),l.suppressed>0)e(this,u,"f").debug("remote deletes are disabled; locally deleted memories stay on the server",{count:l.suppressed,memory_store_id:t.memoryStoreId});if(l.capped>0)e(this,u,"f").warn(`delete cap reached: ${l.mode==="log_only"?"would send":"sent"} ${l.attempted} deletes, held ${l.capped} for later syncs`,{memory_store_id:t.memoryStoreId})}catch(n){e(this,u,"f").warn("memory sync failed",{memory_store_id:t.memoryStoreId,error:String(n)})}},Ge=async function(t,i){let n=new Map,s=new Set,c=async()=>{if(t.readOnly)return;let l=await e(this,w,"m",he).call(this,t);if(!l.markerOk){e(this,u,"f").warn(`${l.distrustReason}; not uploading anything from the memory store folder`,{root:t.files.root().path,memory_store_id:t.memoryStoreId});return}for(let[d,m]of Object.entries(l.files))if(m!==t.baseline.get(d)&&t.refusedShas.get(d)!==m)n.set(d,m),s.add(d);if(n.size===0||i?.aborted)return;let f=new Map;for await(let[d,m]of e(this,w,"m",me).call(this,t.memoryStoreId)){if(i?.aborted)return;f.set(d,m)}let h=[];for(let d of[...n.keys()].sort()){let m=n.get(d),_=t.baseline.get(d),E=f.get(d);if(E!==void 0&&E.content_sha256===m){t.baseline.set(d,E.content_sha256),s.delete(d);continue}if(E!==void 0&&E.content_sha256!==_){e(this,u,"f").warn("memory changed both locally and remotely; the flush leaves the remote version",{path:d,memory_store_id:t.memoryStoreId}),s.delete(d);continue}h.push([d,m,E])}await e(this,w,"m",Xe).call(this,t,h,s,i)};try{if(await Kt(c(),i),i?.aborted&&s.size>0)e(this,u,"f").warn(`memory flush cut off part-way; ${s.size} of ${n.size} changed files had not finished uploading`,{memory_store_id:t.memoryStoreId})}catch(l){e(this,u,"f").warn("memory flush failed",{memory_store_id:t.memoryStoreId,error:String(l)})}},Re=async function(t,i){e(this,u,"f").warn(`${i}; re-downloading the memory store folder instead of syncing`,{root:t.files.root().path,memory_store_id:t.memoryStoreId}),await t.files.createRoot(),await e(this,w,"m",Ne).call(this,t)},Ne=async function(t){t.baseline=new Map,t.pendingDeletes.clear(),await t.files.put(K,`version ${et}
7
+ ${t.memoryStoreId}`);for await(let[i,n]of e(this,w,"m",me).call(this,t.memoryStoreId,"full"))if(await e(this,w,"m",Te).call(this,t,i,n.content??""))t.baseline.set(i,n.content_sha256)},He=async function(t,i,n,s,c){let l=t.baseline.get(i);if(s!==void 0)t.pendingDeletes.delete(i);if(!n){if(s===void 0){t.pendingDeletes.delete(i);return}if(l!==void 0){if(s===l){let _=await e(this,w,"m",Ke).call(this,t,i,l);if(_===void 0)return;if(_===l)return l;s=_}if(t.readOnly)e(this,u,"f").warn("memory deleted remotely but edited locally; keeping the file, which a read-only store cannot push",{path:i,memory_store_id:t.memoryStoreId});else if(t.refusedShas.get(i)!==s)e(this,u,"f").info("memory deleted remotely but edited locally; re-creating it from the file",{path:i,memory_store_id:t.memoryStoreId})}if(t.readOnly)return;if(t.refusedShas.get(i)===s)return;return await e(this,w,"m",ue).call(this,t,i,s,void 0)}let f=n.content_sha256,h=f!==l,d=s!==void 0&&s!==l&&s!==f,m=!t.readOnly&&d;if(s===void 0&&l!==void 0){if(h)e(this,u,"f").warn("memory deleted locally but changed remotely; restoring the remote version",{path:i,memory_store_id:t.memoryStoreId}),t.pendingDeletes.delete(i),c.push([i,n]);return l}if(h){if(s===f)return f;if(d)e(this,u,"f").warn("memory changed both locally and remotely; keeping the remote version",{path:i,memory_store_id:t.memoryStoreId});return c.push([i,n]),l}if(m){if(t.refusedShas.get(i)===s)return f;return await e(this,w,"m",ue).call(this,t,i,s,n)??f}return f},Ke=async function(t,i,n){let s;try{s=await t.files.hashFile(i)}catch(c){if(!(c instanceof y)&&!H(c))throw c;return n}if(s===null)return;if(s!==n)return s;try{await t.files.remove(i)}catch(c){if(!(c instanceof y)&&!H(c))throw c;return e(this,u,"f").warn("failed to remove memory deleted remotely",{path:i,memory_store_id:t.memoryStoreId,error:String(c)}),n}return},Te=async function(t,i,n){try{await t.files.put(i,n)}catch(s){if(!(s instanceof y)&&!H(s))throw s;return e(this,u,"f").warn("failed to write memory",{path:i,memory_store_id:t.memoryStoreId,error:String(s)}),!1}return!0},Ve=async function(t,i){if(i.length===0)return;let n=async(l,f)=>{let h;try{h=await e(this,T,"f").beta.memoryStores.memories.retrieve(f.id,{memory_store_id:t.memoryStoreId,view:"full"})}catch(d){if(Se(d,404))return;e(this,u,"f").warn("failed to fetch memory content",{path:l,memory_store_id:t.memoryStoreId,error:String(d)});return}if(await e(this,w,"m",Te).call(this,t,l,h.content??""))t.baseline.set(l,h.content_sha256)},s=i[Symbol.iterator](),c=async()=>{for(let[l,f]of s)await n(l,f)};await Promise.all(Array.from({length:Math.min(Yt,i.length)},c))},Xe=async function(t,i,n,s){let c=i[Symbol.iterator](),l=async()=>{for(let[f,h,d]of c){if(s?.aborted)return;let m=await e(this,w,"m",ue).call(this,t,f,h,d);if(n.delete(f),m!==void 0)t.baseline.set(f,m)}};await Promise.all(Array.from({length:Math.min(qt,i.length)},l))},me=async function*(t,i="basic"){let n=i==="basic"?jt:Bt;for await(let s of e(this,T,"f").beta.memoryStores.memories.list(t,{view:i,limit:n})){if(s.type!=="memory")continue;let c=s.path.replace(/^\/+/,"");if(c===K){e(this,u,"f").warn("the server listed the reserved marker path; skipping",{path:s.path,memory_store_id:t});continue}yield[c,s]}},ue=async function r(t,i,n,s){try{let c=await t.files.get(i);if(c===null)return;let l=er(c),f=s?await e(this,T,"f").beta.memoryStores.memories.update(s.id,{memory_store_id:t.memoryStoreId,content:l,precondition:{type:"content_sha256",content_sha256:s.content_sha256}}):await e(this,T,"f").beta.memoryStores.memories.create(t.memoryStoreId,{path:"/"+i,content:l});return t.refusedShas.delete(i),f.content_sha256}catch(c){if(s&&Se(c,404))return await e(this,w,"m",r).call(this,t,i,n,void 0);let l=c instanceof y||Se(c,400)||Se(c,413);if(s&&Se(c,409))e(this,u,"f").warn("memory changed both locally and remotely; the upload was refused and the local edit loses",{path:i,memory_store_id:t.memoryStoreId});else if(l&&n!==void 0)t.refusedShas.set(i,n),e(this,u,"f").warn("the server rejected this memory file, so it stays un-synced until its content changes",{path:i,memory_store_id:t.memoryStoreId,rejection:String(c)});else e(this,u,"f").warn("failed to upload memory",{path:i,memory_store_id:t.memoryStoreId,error:String(c)});return}},Je=async function(t,i,n,s,c){if(c.mode==="disabled")return c.suppressed++,s;let l=t.pendingDeletes.get(i);if(l===void 0)l=Date.now(),t.pendingDeletes.set(i,l);if(!c.waiveWindow&&Date.now()-l<Wt)return s;let f,h;try{f=await t.files.hashFile(K)===Qe(t.memoryStoreId),h=await t.files.hashFile(i)===null}catch(m){if(!(m instanceof y)&&!H(m))throw m;f=h=!1}if(!f)return s;if(!h)return t.pendingDeletes.delete(i),s;if(!c.takeSlot())return s;if(c.mode==="log_only")return e(this,u,"f").info("log-only: sync would delete this memory on the server",{path:i,memory_store_id:t.memoryStoreId}),s;let d=await e(this,w,"m",Ze).call(this,t,i,n,s);if(d===void 0)t.pendingDeletes.delete(i);return d},Ze=async function(t,i,n,s){try{await e(this,T,"f").beta.memoryStores.memories.delete(n.id,{memory_store_id:t.memoryStoreId,expected_content_sha256:s})}catch(c){if(Se(c,404))return;if(Se(c,409)||Se(c,412))e(this,u,"f").warn("memory deleted locally but changed remotely; keeping the remote version",{path:i,memory_store_id:t.memoryStoreId});else e(this,u,"f").warn("failed to delete memory",{path:i,memory_store_id:t.memoryStoreId,error:String(c)});return s}e(this,u,"f").info("propagated local deletion",{path:i,memory_store_id:t.memoryStoreId});return},a})();function H(a){return typeof a==="object"&&a!==null&&typeof a.code==="string"}async function Kt(a,r){if(!r){await a;return}let t,i=new Promise((n)=>{if(t=n,r.aborted)n()});r.addEventListener("abort",t,{once:!0});try{await Promise.race([a,i])}finally{r.removeEventListener("abort",t)}}var pe,b,k,ee,W,R,Le,ye,te,we,_e,U,j,V,B,re,A,rt,it,nt=102400,lt=120000,Vt=262144,Xt=65536,ot=Buffer.from(`
8
+ `),ie=102400,Jt=2000,Zt=200;class ft extends p{constructor(a){super(`bash command timed out after ${a}ms`);this.name="BashTimeoutError",this.timeoutMs=a}}var tr=/\x1b\[[0-9;?]*[ -/]*[@-~]/g,rr=S.glob;function dt(a){return a===void 0?Vt:a}function Y(a){if(a===void 0)return;throw new p("The `unrestrictedPaths` option you passed to the agent toolset (AgentToolContext) is no longer supported. The toolset's file tools (read, write, edit, glob, grep) are now always confined to the working directory plus the directories listed in `allowedRoots`. Remove `unrestrictedPaths` from your context; to let the file tools reach any other directory, add it to `allowedRoots`.")}function Vr(a){return[or(a),sr(a),lr(a),fr(a),hr(a),mr(a)]}async function oe(a,r){return Y(a.unrestrictedPaths),Ae(a.workdir,r,{allowedRoots:a.allowedRoots??[]})}function ht(a,r){return Ee(a.readOnlyRoots??[],r)}function ir(){let a={};for(let[r,t]of Object.entries(process.env)){if(r.startsWith("ANTHROPIC_"))continue;a[r]=t}return a}var nr=(()=>{class a{constructor(r,t=ir()){pe.add(this),b.set(this,void 0),k.set(this,""),ee.set(this,!1),W.set(this,!1),R.set(this,null),o(this,b,$e.spawn("/bin/bash",["--noprofile","--norc"],{cwd:r,env:{...t,PS1:"",PS2:"",TERM:"dumb"},stdio:["pipe","pipe","pipe"],detached:!0}),"f"),e(this,b,"f").stdout.setEncoding("utf8"),e(this,b,"f").stderr.setEncoding("utf8"),e(this,b,"f").stdout.on("data",(i)=>e(this,pe,"m",Le).call(this,i)),e(this,b,"f").stderr.on("data",(i)=>e(this,pe,"m",Le).call(this,i)),e(this,b,"f").once("close",()=>{o(this,W,!0,"f");let i=e(this,R,"f");o(this,R,null,"f"),i?.resolve()})}get closed(){return e(this,W,"f")}async exec(r,t={}){if(e(this,W,"f"))throw new p("bash session terminated");let i=t.timeoutMs??lt,n=t.signal;n?.throwIfAborted(),o(this,k,"","f"),o(this,ee,!1,"f");let s=`__ANT_CMD_${at.randomUUID()}_DONE__`,c=`${s.slice(0,8)}''${s.slice(8)}`,l=`{ ${r}
9
+ } </dev/null 2>&1; printf '\\n${c}%d\\n' $?
10
+ `;if(e(this,b,"f").stdin.write(l),e(this,k,"f").indexOf(s)<0){let{promise:E,resolve:x}=Sr();o(this,R,{sentinel:s,resolve:x},"f");let v,se;try{await Promise.race([E,new Promise((ut,ge)=>{v=setTimeout(()=>ge(new ft(i)),i)}),new Promise((ut,ge)=>{if(!n)return;se=()=>ge(n.reason),n.addEventListener("abort",se,{once:!0})})])}finally{if(v)clearTimeout(v);if(se&&n)n.removeEventListener("abort",se);o(this,R,null,"f")}}let f=e(this,k,"f").indexOf(s);if(f<0)throw new p("bash session terminated");let d=e(this,k,"f").slice(f+s.length).match(/^(-?\d+)/),m=d?parseInt(d[1],10):-1,_=e(this,k,"f").slice(0,f).replace(tr,"").replace(/\n+$/,"");if(e(this,ee,"f"))_=`[output truncated]
11
+ ${_}`;return{output:_,exitCode:m}}close(){if(e(this,W,"f"))return;o(this,W,!0,"f");let r=e(this,R,"f");o(this,R,null,"f"),r?.resolve(),e(this,b,"f").stdout.destroy(),e(this,b,"f").stderr.destroy(),e(this,b,"f").stdin.destroy();try{process.kill(-e(this,b,"f").pid,"SIGKILL")}catch{e(this,b,"f").kill("SIGKILL")}e(this,b,"f").unref()}}return b=new WeakMap,k=new WeakMap,ee=new WeakMap,W=new WeakMap,R=new WeakMap,pe=new WeakSet,Le=function(t){if(o(this,k,e(this,k,"f")+t,"f"),e(this,k,"f").length>nt)o(this,k,e(this,k,"f").slice(e(this,k,"f").length-nt),"f"),o(this,ee,!0,"f");if(e(this,R,"f")&&e(this,k,"f").indexOf(e(this,R,"f").sentinel)>=0){let i=e(this,R,"f");o(this,R,null,"f"),i.resolve()}},a})();function or(a){Y(a.unrestrictedPaths);let r,t=Promise.resolve();return D({name:"bash",description:"Run a bash command in a persistent shell. State (cwd, env vars) persists across calls.",inputSchema:{type:"object",properties:{command:{type:"string",description:"The command to run"},restart:{type:"boolean",description:"Restart the persistent shell before running"},timeout_ms:{type:"integer",description:"Per-call timeout in milliseconds"}}},run:async({command:i,restart:n,timeout_ms:s},c)=>{let l=t,f=Sr();t=f.promise;try{await l}catch{}try{if(n)r?.close(),r=void 0;if(!i){if(n)return"bash session restarted";throw new M("bash: command is required")}r??(r=new nr(a.workdir,a.env));try{let{output:h,exitCode:d}=await r.exec(i,{timeoutMs:s??lt,signal:c?.signal});if(d!==0)throw new M(h||`exit ${d}`);return h}catch(h){if(h instanceof M)throw h;throw r.close(),r=void 0,new M(`bash: ${h instanceof Error?h.message:String(h)}`)}}finally{f.resolve()}},close:()=>{r?.close(),r=void 0}})}function sr(a){return Y(a.unrestrictedPaths),D({name:"read",description:"Read a UTF-8 text file relative to the workdir.",inputSchema:{type:"object",properties:{file_path:{type:"string"},view_range:{type:"array",items:{type:"integer"},description:"[start_line, end_line] 1-indexed inclusive"}},required:["file_path"]},run:async({file_path:r,view_range:t})=>{if(!r)throw new M("read: file_path is required");let i=await oe(a,r);if(t?.length&&t.length!==2)throw new M("read: view_range must be [start_line, end_line]");let n;try{let d=await S.stat(i);if(!d.isFile())throw new M(`read: ${r} is not a regular file`);let m=dt(a.maxFileBytes);if(m!==null&&d.size>m){if(!t?.length)throw new M(`read: ${r} is ${d.size} bytes, exceeds ${m}-byte limit. Use the view_range parameter to read specific line ranges, e.g. view_range: [1, 500].`);let[_,E]=t;return await ar(i,r,_,E,m)}n=await S.readFile(i,"utf8")}catch(d){if(d instanceof M)throw d;throw new M(`read: ${q(d,r)}`)}if(!t?.length)return n;let[s,c]=t,l=n.split(`
12
+ `),f=Math.max(0,s-1),h=c>0?c:l.length;return l.slice(f,h).join(`
13
+ `)}})}async function ar(a,r,t,i,n){let s=new cr(r,t,i,n);if(s.rangeIsEmpty())return"";let c=ne.createReadStream(a,{highWaterMark:Xt});try{for await(let l of c)if(s.collectFrom(l),s.rangeIsCollected())break}finally{c.destroy()}return s.text()}var cr=(()=>{class a{constructor(r,t,i,n){ye.add(this),te.set(this,void 0),we.set(this,void 0),_e.set(this,void 0),U.set(this,void 0),j.set(this,void 0),V.set(this,void 0),B.set(this,0),re.set(this,[]),A.set(this,0),o(this,te,r,"f"),o(this,we,t,"f"),o(this,_e,i,"f"),o(this,U,Math.max(0,t-1),"f"),o(this,j,i>0?i:1/0,"f"),o(this,V,n,"f")}rangeIsEmpty(){return e(this,j,"f")<=e(this,U,"f")}rangeIsCollected(){return e(this,B,"f")>=e(this,j,"f")}collectFrom(r){var t;let i=0;while(i<r.length&&!this.rangeIsCollected()){let n=r.indexOf(10,i),s=n<0?r.length:n;if(e(this,B,"f")>=e(this,U,"f"))e(this,ye,"m",rt).call(this,r.subarray(i,s),n>=0);if(n<0)break;o(this,B,(t=e(this,B,"f"),t++,t),"f"),i=n+1}}text(){return Buffer.concat(e(this,re,"f"),e(this,A,"f")).toString("utf8")}}return te=new WeakMap,we=new WeakMap,_e=new WeakMap,U=new WeakMap,j=new WeakMap,V=new WeakMap,B=new WeakMap,re=new WeakMap,A=new WeakMap,ye=new WeakSet,rt=function(t,i){if(e(this,re,"f").push(t),o(this,A,e(this,A,"f")+t.length,"f"),i&&e(this,B,"f")+1<e(this,j,"f"))e(this,re,"f").push(ot),o(this,A,e(this,A,"f")+ot.length,"f");if(e(this,A,"f")>e(this,V,"f"))throw e(this,ye,"m",it).call(this)},it=function(){if(e(this,j,"f")-e(this,U,"f")===1)return new M(`read: line ${e(this,U,"f")+1} of ${e(this,te,"f")} alone exceeds ${e(this,V,"f")}-byte limit. The read tool cannot return part of a line, so view_range cannot narrow this further.`);return new M(`read: view_range [${e(this,we,"f")}, ${e(this,_e,"f")}] of ${e(this,te,"f")} exceeds ${e(this,V,"f")}-byte limit. Narrow the view_range to read a smaller portion.`)},a})();function lr(a){return Y(a.unrestrictedPaths),D({name:"write",description:"Write a UTF-8 text file relative to the workdir, creating parent directories as needed.",inputSchema:{type:"object",properties:{file_path:{type:"string"},content:{type:"string"}},required:["file_path","content"]},run:async({file_path:r,content:t})=>{if(!r)throw new M("write: file_path is required");let i=await oe(a,r),n=await ht(a,i);if(n!==void 0)throw new M(`write: ${r} is inside read-only directory ${n}`);try{await S.mkdir(O.dirname(i),{recursive:!0,mode:J}),await be(i,t??"")}catch(s){throw new M(`write: ${q(s,r)}`)}return`wrote ${Buffer.byteLength(t??"")} bytes to ${r}`}})}function fr(a){return Y(a.unrestrictedPaths),D({name:"edit",description:"Replace old_string with new_string in a file. old_string must be unique unless replace_all.",inputSchema:{type:"object",properties:{file_path:{type:"string"},old_string:{type:"string"},new_string:{type:"string"},replace_all:{type:"boolean"}},required:["file_path","old_string","new_string"]},run:async({file_path:r,old_string:t,new_string:i,replace_all:n})=>{if(!r)throw new M("edit: file_path is required");if(!t)throw new M("edit: old_string is required");let s=await oe(a,r),c=await ht(a,s);if(c!==void 0)throw new M(`edit: ${r} is inside read-only directory ${c}`);let l;try{let d=await S.stat(s);if(!d.isFile())throw new M(`edit: ${r} is not a regular file`);let m=dt(a.maxFileBytes);if(m!==null&&d.size>m)throw new M(`edit: ${r} is ${d.size} bytes, exceeds ${m}-byte limit. The edit tool loads the whole file and cannot modify a file this large.`);l=await S.readFile(s,"utf8")}catch(d){if(d instanceof M)throw d;throw new M(`edit: ${q(d,r)}`)}let f=l.split(t).length-1;if(f===0)throw new M(`edit: old_string not found in ${r}`);let h;if(n)h=l.split(t).join(i);else{if(f>1)throw new M(`edit: old_string appears ${f} times in ${r} (must be unique)`);h=l.replace(t,()=>i)}try{await be(s,h)}catch(d){throw new M(`edit: write: ${q(d,r)}`)}return`edited ${r} (${n?f:1} replacement(s))`}})}function dr(a){return a.split(/[\\/{},]/).includes("..")}function hr(a){return Y(a.unrestrictedPaths),D({name:"glob",description:"Match files under the workdir against a glob pattern. Results are mtime-sorted, newest first.",inputSchema:{type:"object",properties:{pattern:{type:"string"},path:{type:"string",description:"Directory to search in. Defaults to the workdir."}},required:["pattern"]},run:async({pattern:r,path:t})=>{if(!r)throw new M("glob: pattern is required");if(O.isAbsolute(r))throw new M("glob: absolute pattern not permitted; pass a relative pattern (and optionally path)");if(dr(r))throw new M('glob: ".." is not permitted in the pattern');let i=t?await oe(a,t):O.resolve(a.workdir),n=t?i:await X(i),s=[],c=mt;try{for await(let l of rr(r,{cwd:i,withFileTypes:!0,exclude:(f)=>f.name===".git"||f.name==="node_modules"})){if(c--<=0)break;if(!l.isFile())continue;let f=O.join(l.parentPath,l.name),h;try{h=await S.realpath(f)}catch{continue}if(!ae(n,h))continue;let d=0;try{d=(await S.stat(f)).mtimeMs}catch{}s.push({path:f,mtime:d})}}catch(l){throw new M(`glob: ${l instanceof Error?l.message:String(l)}`)}if(s.length===0)return"no matches";return s.sort((l,f)=>f.mtime-l.mtime),s.slice(0,Zt).map((l)=>l.path).join(`
14
+ `)}})}function mr(a){return Y(a.unrestrictedPaths),D({name:"grep",description:"Search file contents for a regex. Uses ripgrep if available, otherwise a built-in walker.",inputSchema:{type:"object",properties:{pattern:{type:"string"},path:{type:"string"}},required:["pattern"]},run:async({pattern:r,path:t},i)=>{if(!r)throw new M("grep: pattern is required");let n=O.resolve(a.workdir);if(t)n=await oe(a,t);let s=await _r();return s?ur(s,r,n,i?.signal):pr(r,n,i?.signal)}})}function ur(a,r,t,i){return new Promise((n,s)=>{let c=$e.spawn(a,["-n","--no-heading","-e",r,"--",t],{...i?{signal:i}:{}}),l="",f="",h=!1;c.stdout.on("data",(d)=>{if(h)return;if(l+=d,l.length>ie)h=!0,l=l.slice(0,ie),c.kill("SIGKILL")}),c.stderr.on("data",(d)=>f+=d),c.on("close",(d)=>{if(i?.aborted)return s(new M("grep: aborted"));if(h)return n(l+`
15
+ [output truncated at ${ie} bytes]`);if(d===0)return n(l);if(d===1)return n("no matches");s(new M(`grep: rg failed: ${f||`exit ${d}`}`))}),c.on("error",(d)=>{if(i?.aborted)return s(new M("grep: aborted"));s(new M(`grep: rg failed: ${d.message}`))})})}async function pr(a,r,t){let i;try{i=new RegExp(a)}catch(f){throw new M(`grep: invalid regex: ${f instanceof Error?f.message:String(f)}`)}let n=[],s=ie,c=(f)=>{if(s-=f.length+1,s<0)return n.push(`[output truncated at ${ie} bytes]`),!1;return n.push(f),!0};if((await S.stat(r).catch(()=>null))?.isFile())await st(r,i,c);else await wr(r,"",(f)=>st(O.join(r,f),i,c),t);if(t?.aborted)throw new M("grep: aborted");if(n.length===0)return"no matches";return n.join(`
16
+ `)}async function st(a,r,t){let i=ne.createReadStream(a,{encoding:"utf8"}),n=ct.createInterface({input:i,crlfDelay:1/0}),s=0;try{for await(let c of n){if(s++,c.length>Jt)continue;if(r.test(c)&&!t(`${a}:${s}:${c}`))return!1}}catch{}finally{i.destroy()}return!0}var yr=40,mt=50000;async function wr(a,r,t,i){let n=mt;async function s(c,l){if(l>yr)return!0;if(i?.aborted)return!1;let f;try{f=await S.readdir(O.join(a,c),{withFileTypes:!0})}catch{return!0}for(let h of f){if(h.name===".git"||h.name==="node_modules")continue;if(n--<=0)return!1;if(i?.aborted)return!1;let d=c?O.join(c,h.name):h.name;if(h.isDirectory()){if(!await s(d,l+1))return!1}else if(h.isFile()){if(await t(d)===!1)return!1}}return!0}await s(r,0)}async function _r(){let a=(process.env.PATH??"").split(O.delimiter);for(let r of a){let t=O.join(r,"rg");try{return await S.access(t,ne.constants.X_OK),t}catch{}}return null}export{Pt as MEMORY_FLUSH_TIMEOUT_MS,P as SessionMemoryError,Ht as SessionMemoryStores,Vr as betaAgentToolset20260401,_t as setupSkills};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{_e,ct,hr}from"./chunk-7v1sqn9k.js";export{_e as UnauthorizedError,ct as auth,hr as extractWWWAuthenticateParams};
@@ -0,0 +1,7 @@
1
+ // @bun
2
+ import{r,u}from"./chunk-sqbnt2t1.js";var U=r(function(De,S){var y=1000,x=y*60,b=x*60,m=b*24,R=m*7,V=m*365.25;S.exports=function(e,s){s=s||{};var t=typeof e;if(t==="string"&&e.length>0)return X(e);else if(t==="number"&&isFinite(e))return s.long?ee(e):Y(e);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function X(e){if(e=String(e),e.length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!s)return;var t=parseFloat(s[1]),i=(s[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return t*V;case"weeks":case"week":case"w":return t*R;case"days":case"day":case"d":return t*m;case"hours":case"hour":case"hrs":case"hr":case"h":return t*b;case"minutes":case"minute":case"mins":case"min":case"m":return t*x;case"seconds":case"second":case"secs":case"sec":case"s":return t*y;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}function Y(e){var s=Math.abs(e);if(s>=m)return Math.round(e/m)+"d";if(s>=b)return Math.round(e/b)+"h";if(s>=x)return Math.round(e/x)+"m";if(s>=y)return Math.round(e/y)+"s";return e+"ms"}function ee(e){var s=Math.abs(e);if(s>=m)return A(e,s,m,"day");if(s>=b)return A(e,s,b,"hour");if(s>=x)return A(e,s,x,"minute");if(s>=y)return A(e,s,y,"second");return e+" ms"}function A(e,s,t,i){var d=s>=t*1.5;return Math.round(e/t)+" "+i+(d?"s":"")}});var E=r(function(Be,_){function te(e){t.debug=t,t.default=t,t.coerce=W,t.disable=P,t.enable=d,t.enabled=T,t.humanize=U(),t.destroy=Z,Object.keys(e).forEach((n)=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={};function s(n){let o=0;for(let c=0;c<n.length;c++)o=(o<<5)-o+n.charCodeAt(c),o|=0;return t.colors[Math.abs(o)%t.colors.length]}t.selectColor=s;function t(n){let o,c=null,a,g;function l(...f){if(!l.enabled)return;let h=l,v=Number(new Date),H=v-(o||v);if(h.diff=H,h.prev=o,h.curr=v,o=v,f[0]=t.coerce(f[0]),typeof f[0]!=="string")f.unshift("%O");let O=0;f[0]=f[0].replace(/%([a-zA-Z%])/g,(j,K)=>{if(j==="%%")return"%";O++;let M=t.formatters[K];if(typeof M==="function"){let Q=f[O];j=M.call(h,Q),f.splice(O,1),O--}return j}),t.formatArgs.call(h,f),(h.log||t.log).apply(h,f)}if(l.namespace=n,l.useColors=t.useColors(),l.color=t.selectColor(n),l.extend=i,l.destroy=t.destroy,Object.defineProperty(l,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(c!==null)return c;if(a!==t.namespaces)a=t.namespaces,g=t.enabled(n);return g},set:(f)=>{c=f}}),typeof t.init==="function")t.init(l);return l}function i(n,o){let c=t(this.namespace+(typeof o>"u"?":":o)+n);return c.log=this.log,c}function d(n){t.save(n),t.namespaces=n,t.names=[],t.skips=[];let o=(typeof n==="string"?n:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let c of o)if(c[0]==="-")t.skips.push(c.slice(1));else t.names.push(c)}function C(n,o){let c=0,a=0,g=-1,l=0;while(c<n.length)if(a<o.length&&(o[a]===n[c]||o[a]==="*"))if(o[a]==="*")g=a,l=c,a++;else c++,a++;else if(g!==-1)a=g+1,l++,c=l;else return!1;while(a<o.length&&o[a]==="*")a++;return a===o.length}function P(){let n=[...t.names,...t.skips.map((o)=>"-"+o)].join(",");return t.enable(""),n}function T(n){for(let o of t.skips)if(C(n,o))return!1;for(let o of t.names)if(C(n,o))return!0;return!1}function W(n){if(n instanceof Error)return n.stack||n.message;return n}function Z(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return t.enable(t.load()),t}_.exports=te});var z=r(function(D,I){D.formatArgs=se;D.save=ne;D.load=oe;D.useColors=re;D.storage=ie();D.destroy=(()=>{let e=!1;return()=>{if(!e)e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();D.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function re(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function se(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+I.exports.humanize(this.diff),!this.useColors)return;let s="color: "+this.color;e.splice(1,0,s,"color: inherit");let t=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(d)=>{if(d==="%%")return;if(t++,d==="%c")i=t}),e.splice(i,0,s)}D.log=console.debug||console.log||(()=>{});function ne(e){try{if(e)D.storage.setItem("debug",e);else D.storage.removeItem("debug")}catch(s){}}function oe(){let e;try{e=D.storage.getItem("debug")||D.storage.getItem("DEBUG")}catch(s){}if(!e&&typeof process<"u"&&"env"in process)e=process.env.DEBUG;return e}function ie(){try{return localStorage}catch(e){}}I.exports=E()(D);var{formatters:ce}=I.exports;ce.j=function(e){try{return JSON.stringify(e)}catch(s){return"[UnexpectedJSONParseError]: "+s.message}}});var J=r(function(B,k){var L=u("tty"),p=u("util");B.init=be;B.log=ge;B.formatArgs=me;B.save=ye;B.load=xe;B.useColors=he;B.destroy=p.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");B.colors=[6,2,3,4,5,1];try{let e=(()=>{throw new Error("Cannot require module "+"supports-color");})();if(e&&(e.stderr||e).level>=2)B.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch(e){}B.inspectOpts=Object.keys(process.env).filter((e)=>/^debug_/i.test(e)).reduce((e,s)=>{let t=s.substring(6).toLowerCase().replace(/_([a-z])/g,(d,C)=>C.toUpperCase()),i=process.env[s];if(/^(yes|on|true|enabled)$/i.test(i))i=!0;else if(/^(no|off|false|disabled)$/i.test(i))i=!1;else if(i==="null")i=null;else i=Number(i);return e[t]=i,e},{});function he(){return"colors"in B.inspectOpts?Boolean(B.inspectOpts.colors):L.isatty(process.stderr.fd)}function me(e){let{namespace:s,useColors:t}=this;if(t){let i=this.color,d="\x1B[3"+(i<8?i:"8;5;"+i),C=` ${d};1m${s} \x1B[0m`;e[0]=C+e[0].split(`
3
+ `).join(`
4
+ `+C),e.push(d+"m+"+k.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=Fe()+s+" "+e[0]}function Fe(){if(B.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function ge(...e){return process.stderr.write(p.formatWithOptions(B.inspectOpts,...e)+`
5
+ `)}function ye(e){if(e)process.env.DEBUG=e;else delete process.env.DEBUG}function xe(){return process.env.DEBUG}function be(e){e.inspectOpts={};let s=Object.keys(B.inspectOpts);for(let t=0;t<s.length;t++)e.inspectOpts[s[t]]=B.inspectOpts[s[t]]}k.exports=E()(B);var{formatters:G}=k.exports;G.o=function(e){return this.inspectOpts.colors=this.useColors,p.inspect(e,this.inspectOpts).split(`
6
+ `).map((s)=>s.trim()).join(" ")};G.O=function(e){return this.inspectOpts.colors=this.useColors,p.inspect(e,this.inspectOpts)}});var xr=r(function(Se,q){if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)q.exports=z();else q.exports=J()});
7
+ export{xr};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{st,Dt}from"./chunk-xpj8fcjp.js";import{at}from"./chunk-twqwer9t.js";import{mt,Fe,H}from"./chunk-z3h9ydyr.js";import{Me,ie,E,Oe,se,_t,K}from"./chunk-tbehe5ky.js";var{awsEndpointFunctions:Y,emitWarningIfUnsupportedVersion:J,createDefaultUserAgentProvider:X,NODE_APP_ID_CONFIG_OPTIONS:Z,getAwsRegionExtensionConfiguration:ee,resolveAwsRegionExtensionConfiguration:te,resolveUserAgentConfig:oe,resolveHostHeaderConfig:ne,getUserAgentPlugin:re,getHostHeaderPlugin:ae,getLoggerPlugin:ce,getRecursionDetectionPlugin:ue}=H(),{NoAuthSigner:de,getHttpAuthSchemeEndpointRuleSetPlugin:pe,DefaultIdentityProviderConfig:le,getHttpSigningPlugin:he}=Fe(),{normalizeProvider:F,getSmithyContext:ge,ServiceException:me,NoOpLogger:Se,emitWarningIfUnsupportedVersion:_e,loadConfigsForDefaultMode:Ee,getDefaultExtensionConfiguration:fe,resolveDefaultRuntimeConfig:Pe,Client:ve,makeBuilder:Re,createAggregatedClient:xe}=ie(),{Command:Es}=ie();var{resolveDefaultsModeConfig:Ce,loadConfig:a,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:Ie,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:ye,NODE_REGION_CONFIG_OPTIONS:Ae,NODE_REGION_CONFIG_FILE_OPTIONS:we,resolveRegionConfig:Te}=E(),{BinaryDecisionDiagram:Ne,EndpointCache:De,decideEndpoint:ke,customEndpointFunctions:be,resolveEndpointConfig:qe,getEndpointPlugin:$e}=Oe(),{parseUrl:He,getHttpHandlerExtensionConfiguration:Ue,resolveHttpHandlerRuntimeConfig:Ge,getContentLengthPlugin:ze}=K(),{DEFAULT_RETRY_MODE:je,NODE_RETRY_MODE_CONFIG_OPTIONS:Le,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:Ke,resolveRetryConfig:Ve,getRetryPlugin:Be}=mt(),{TypeRegistry:q,getSchemaSerdePlugin:We}=Me(),{resolveAwsSdkSigV4Config:Qe,AwsSdkSigV4Signer:Ye,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:Je}=st(),{toUtf8:Xe,fromUtf8:Ze,toBase64:et,fromBase64:tt,calculateBodyLength:ot}=se(),{streamCollector:nt,NodeHttpHandler:rt}=at(),{AwsRestJsonProtocol:it}=Dt(),{Sha256:ct}=_t(),ut=async(e,t,s)=>({operation:ge(t).operation,region:await F(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function dt(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(t,s)=>({signingProperties:{config:t,context:s}})}}function pt(e){return{schemeId:"smithy.api#noAuth"}}var lt=(e)=>{let t=[];switch(e.operation){case"GetRoleCredentials":{t.push(pt());break}default:t.push(dt(e))}return t},ht=(e)=>{let t=Qe(e);return Object.assign(t,{authSchemePreference:F(e.authSchemePreference??[])})},gt=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}),St={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Et="3.997.47",ft={version:Et},p="ref",c=-1,g=!0,T="isSet",U="PartitionResult",m="booleanEquals",R="getAttr",N={[p]:"Endpoint"},x={[p]:U},d={},D=[{[p]:"Region"}],k={conditions:[[T,[N]],[T,D],["aws.partition",D,U],[m,[{[p]:"UseFIPS"},g]],[m,[{[p]:"UseDualStack"},g]],[m,[{fn:R,argv:[x,"supportsDualStack"]},g]],[m,[{fn:R,argv:[x,"supportsFIPS"]},g]],["stringEquals",[{fn:R,argv:[x,"name"]},"aws-us-gov"]]],results:[[c],[c,"Invalid Configuration: FIPS and custom endpoint are not supported"],[c,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[N,d],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",d],[c,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",d],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",d],[c,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",d],[c,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",d],[c,"Invalid Configuration: Missing Region"]]},Pt=2,n=1e8,vt=new Int32Array([-1,1,-1,0,13,3,1,4,n+12,2,5,n+12,3,8,6,4,7,n+11,5,n+9,n+10,4,11,9,6,10,n+8,7,n+6,n+7,5,12,n+5,6,n+4,n+5,3,n+1,14,4,n+2,n+3]),Rt=Ne.from(vt,Pt,k.conditions,k.results),xt=new De({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Ct=(e,t={})=>xt.get(e,()=>ke(Rt,{endpointParams:e,logger:t.logger}));be.aws=Y;class u extends me{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sso#SSOServiceException";constructor(e){super(e);Object.setPrototypeOf(this,u.prototype)}}class C extends u{static shapeId="com.amazonaws.sso#InvalidRequestException";name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,C.prototype)}}class I extends u{static shapeId="com.amazonaws.sso#ResourceNotFoundException";name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,I.prototype)}}class y extends u{static shapeId="com.amazonaws.sso#TooManyRequestsException";name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});Object.setPrototypeOf(this,y.prototype)}}class A extends u{static shapeId="com.amazonaws.sso#UnauthorizedException";name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});Object.setPrototypeOf(this,A.prototype)}}var It="AccessTokenType",yt="GetRoleCredentials",At="GetRoleCredentialsRequest",Ot="GetRoleCredentialsResponse",wt="InvalidRequestException",Tt="RoleCredentials",Nt="ResourceNotFoundException",kt="SecretAccessKeyType",bt="SessionTokenType",Ft="TooManyRequestsException",qt="UnauthorizedException",$t="accountId",Ht="accessKeyId",Ut="accessToken",Gt="account_id",S="client",_="error",Mt="expiration",zt="http",f="httpError",jt="httpHeader",b="httpQuery",P="message",Lt="roleCredentials",Kt="roleName",Vt="role_name",G="smithy.ts.sdk.synthetic.com.amazonaws.sso",Bt="secretAccessKey",Wt="sessionToken",Qt="x-amz-sso_bearer_token",r="com.amazonaws.sso",M=new q(G),Yt=[-3,G,"SSOServiceException",0,[],[]];M.registerError(Yt,u);var l=new q(r),Jt=[-3,r,wt,{[_]:S,[f]:400},[P],[0]];l.registerError(Jt,C);var Xt=[-3,r,Nt,{[_]:S,[f]:404},[P],[0]];l.registerError(Xt,I);var Zt=[-3,r,Ft,{[_]:S,[f]:429},[P],[0]];l.registerError(Zt,y);var es=[-3,r,qt,{[_]:S,[f]:401},[P],[0]];l.registerError(es,A);var ts=[M,l],ss=[0,r,It,8,0],os=[0,r,kt,8,0],ns=[0,r,bt,8,0],rs=[3,r,At,0,[Kt,$t,Ut],[[0,{[b]:Vt}],[0,{[b]:Gt}],[()=>ss,{[jt]:Qt}]],3],is=[3,r,Ot,0,[Lt],[[()=>as,0]]],as=[3,r,Tt,0,[Ht,Bt,Wt,Mt],[0,[()=>os,0],[()=>ns,0],1]],cs=[9,r,yt,{[zt]:["GET","/federation/credentials",200]},()=>rs,()=>is],us=(e)=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??tt,base64Encoder:e?.base64Encoder??et,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Ct,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??lt,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new Ye},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new de}],logger:e?.logger??new Se,protocol:e?.protocol??it,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:ts,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:e?.serviceId??"SSO",sha256:e?.sha256??ct,urlParser:e?.urlParser??He,utf8Decoder:e?.utf8Decoder??Ze,utf8Encoder:e?.utf8Encoder??Xe}),ds=(e)=>{_e(process.version);let t=Ce(e),s=()=>t().then(Ee),i=us(e);J(process.version);let o={profile:e?.profile,logger:i.logger};return{...i,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??a(Je,o),bodyLengthChecker:e?.bodyLengthChecker??ot,defaultUserAgentProvider:e?.defaultUserAgentProvider??X({serviceId:i.serviceId,clientVersion:ft.version}),maxAttempts:e?.maxAttempts??a(Ke,e),region:e?.region??a(Ae,{...we,...o}),requestHandler:rt.create(e?.requestHandler??s),retryMode:e?.retryMode??a({...Le,default:async()=>(await s()).retryMode||je},e),streamCollector:e?.streamCollector??nt,useDualstackEndpoint:e?.useDualstackEndpoint??a(ye,o),useFipsEndpoint:e?.useFipsEndpoint??a(Ie,o),userAgentAppId:e?.userAgentAppId??a(Z,o)}},ps=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:s,credentials:i}=e;return{setHttpAuthScheme(o){let h=t.findIndex((v)=>v.schemeId===o.schemeId);if(h===-1)t.push(o);else t.splice(h,1,o)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(o){s=o},httpAuthSchemeProvider(){return s},setCredentials(o){i=o},credentials(){return i}}},ls=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),hs=(e,t)=>{let s=Object.assign(ee(e),fe(e),Ue(e),ps(e));return t.forEach((i)=>i.configure(s)),Object.assign(e,te(s),Pe(s),Ge(s),ls(s))};class O extends ve{config;constructor(...[e]){let t=ds(e||{});super(t);this.initConfig=t;let s=gt(t),i=oe(s),o=Ve(i),h=Te(o),v=ne(h),V=qe(v),B=ht(V),W=hs(B,e?.extensions||[]);this.config=W,this.middlewareStack.use(We(this.config)),this.middlewareStack.use(re(this.config)),this.middlewareStack.use(Be(this.config)),this.middlewareStack.use(ze(this.config)),this.middlewareStack.use(ae(this.config)),this.middlewareStack.use(ce(this.config)),this.middlewareStack.use(ue(this.config)),this.middlewareStack.use(pe(this.config,{httpAuthSchemeParametersProvider:ut,identityProviderConfigProvider:async(Q)=>new le({"aws.auth#sigv4":Q.credentials})})),this.middlewareStack.use(he(this.config))}destroy(){super.destroy()}}var gs=Re(St,"SWBPortalService","SSOClient",$e),ms={},Ss=(e,t,s,i)=>[];class w extends gs(ms,Ss,"GetRoleCredentials",cs){}var _s={GetRoleCredentialsCommand:w};class z extends O{}xe(_s,z);var j=w;var L=O;export{j as GetRoleCredentialsCommand,L as SSOClient};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ class n{incoming=[];outgoing=[];get length(){return this.incoming.length+this.outgoing.length}enqueue(e){this.incoming.push(e)}dequeue(){if(this.outgoing.length===0)while(this.incoming.length>0)this.outgoing.push(this.incoming.pop());return this.outgoing.pop()}}class Mi{queue=new n;waiting=new n;done=!1;finalResultPromise;resolveFinalResult;isComplete;extractResult;constructor(e,t){this.isComplete=e,this.extractResult=t,this.finalResultPromise=new Promise((i)=>{this.resolveFinalResult=i})}push(e){if(this.done)return;if(this.isComplete(e))this.done=!0,this.resolveFinalResult(this.extractResult(e));let t=this.waiting.dequeue();if(t)t({value:e,done:!1});else this.queue.enqueue(e)}end(e){if(this.done=!0,e!==void 0)this.resolveFinalResult(e);while(this.waiting.length>0)this.waiting.dequeue()({value:void 0,done:!0})}async*[Symbol.asyncIterator](){while(!0)if(this.queue.length>0)yield this.queue.dequeue();else if(this.done)return;else{let e=await new Promise((t)=>this.waiting.enqueue(t));if(e.done)return;yield e.value}}result(){return this.finalResultPromise}}class W extends Mi{#t=Date.now();#i=performance.now();constructor(){super((e)=>e.type==="done"||e.type==="error",(e)=>{if(e.type==="done")return e.message;else if(e.type==="error")return e.error;throw Error("Unexpected event type for final result")})}push(e){if(e.type==="done")this.#e(e.message);else if(e.type==="error")this.#e(e.error);super.push(e)}end(e){if(e!==void 0)this.#e(e);super.end(e)}#e(e){if(this.done||e.durationMs!==void 0||e.timestamp<this.#t)return;e.durationMs=Math.max(0,Math.round(performance.now()-this.#i))}}function Oi(){return new W}function St(e){if(e instanceof Error)return e.message||e.name;if(typeof e==="string")return e;return String(e)}function Ga(e){if(!(e instanceof Error))return{name:"ThrownValue",message:St(e)};let t=e.code;return{name:e.name||void 0,message:e.message||e.name,stack:e.stack,code:typeof t==="string"||typeof t==="number"?t:void 0}}function Lr(e,t,i){return{type:e,timestamp:Date.now(),error:Ga(t),details:i}}function He(e,t){e.diagnostics=[...e.diagnostics??[],t]}
3
+ export{Mi,W,Oi,St,Ga,Lr,He};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ var f=new Set;function Ti(r){return f.add(r),()=>{f.delete(r)}}function Ja(r){let t=[];for(let s of f)try{s(r)}catch(e){t.push(e)}if(t.length>0)throw AggregateError(t,"Failed to cleanup session resources")}var a=(1n<<41n)-1n,u=-1,n;function co(r){let t=r??Date.now();if(!Number.isInteger(t)||t<0||t>281474976710655)throw RangeError("UUIDv7 timestamp must be an integer between 0 and 281474976710655");let s=r===void 0?Math.max(t,u):r;if(r===void 0)u=s;let e=new Uint8Array(16);if(globalThis.crypto.getRandomValues(e),n===void 0)n=BigInt(e[1])<<32n|BigInt(e[2])<<24n|BigInt(e[3])<<16n|BigInt(e[4])<<8n|BigInt(e[5]);else{if(n===a)throw RangeError("UUIDv7 generator sequence exhausted");n++}let c=BigInt(s);for(let o=5;o>=0;o--)e[o]=Number(c>>BigInt((5-o)*8))&255;e[6]=112|Number(n>>37n&0x0fn),e[7]=Number(n>>29n&0xffn),e[8]=128|Number(n>>23n&0x3fn),e[9]=Number(n>>15n&0xffn),e[10]=Number(n>>7n&0xffn),e[11]=Number((n&0x7fn)<<1n)|e[11]&1;let i=Array.from(e,(o)=>o.toString(16).padStart(2,"0"));return`${i.slice(0,4).join("")}-${i.slice(4,6).join("")}-${i.slice(6,8).join("")}-${i.slice(8,10).join("")}-${i.slice(10).join("")}`}
3
+ export{Ti,Ja,co};
@@ -0,0 +1,2 @@
1
+ // @bun
2
+ import{H}from"./chunk-z3h9ydyr.js";import{E,K}from"./chunk-tbehe5ky.js";import{c}from"./chunk-sqbnt2t1.js";var R=c(H()),p=c(E());var f=c(E()),N=c(K());import{createHash as O,createPrivateKey as _,createPublicKey as v,sign as B}from"crypto";import{promises as S}from"fs";import{homedir as q}from"os";import{dirname as U,join as A}from"path";class d{profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300000;constructor(e,t,s){this.profileData=e,this.init=t,this.callerClientConfig=s}async loadCredentials(){let e=await this.loadToken();if(!e)throw new f.CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let t=e.accessToken,s=Date.now();if(new Date(t.expiresAt).getTime()-s<=d.REFRESH_THRESHOLD)return this.refresh(e);return this.toCredentials(e.accessToken)}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}toCredentials(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,sessionToken:e.sessionToken,accountId:e.accountId,expiration:new Date(e.expiresAt)}}async refresh(e){let t=await this.loadToken().catch(()=>e),s=Date.now(),r=new Date(t.accessToken.expiresAt).getTime(),n=new Date(e.accessToken.expiresAt).getTime(),o=r<=s&&n>s?e:t;if(new Date(o.accessToken.expiresAt).getTime()-Date.now()>d.REFRESH_THRESHOLD)return this.toCredentials(o.accessToken);let{SigninClient:h,CreateOAuth2TokenCommand:y}=await import("./chunk-ezqvx0hm.js"),{logger:m,userAgentAppId:T}=this.callerClientConfig??{},x=((i)=>i?.metadata?.handlerProtocol==="h2")(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,u=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,k=new h({credentials:{accessKeyId:"",secretAccessKey:""},region:u,requestHandler:x,logger:m,userAgentAppId:T,...this.init?.clientConfig});this.createDPoPInterceptor(k.middlewareStack);let C={tokenInput:{clientId:o.clientId,refreshToken:o.refreshToken,grantType:"refresh_token"}};try{let i=await k.send(new y(C)),{accessKeyId:l,secretAccessKey:w,sessionToken:g}=i.tokenOutput?.accessToken??{},{refreshToken:I,expiresIn:b}=i.tokenOutput??{};if(!l||!w||!g||!I)throw new f.CredentialsProviderError("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let F=(b??900)*1000,L=new Date(Date.now()+F),P={...o,accessToken:{...o.accessToken,accessKeyId:l,secretAccessKey:w,sessionToken:g,expiresAt:L.toISOString()},refreshToken:I};return await this.saveToken(P),this.toCredentials(P.accessToken)}catch(i){if(i.name==="AccessDeniedException"){let w=i.error,g;switch(w){case"TOKEN_EXPIRED":g="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":g="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":g="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:g=`Failed to refresh token: ${String(i)}. Please re-authenticate using \`aws login\``}throw new f.CredentialsProviderError(g,{logger:this.logger,tryNextLink:!1})}if(new Date(o.accessToken.expiresAt).getTime()>Date.now())return this.logger?.warn?.(`Failed to refresh token: ${String(i)}. Using existing token until expiry.`),this.toCredentials(o.accessToken);throw new f.CredentialsProviderError(`Failed to refresh token: ${String(i)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let t=await S.readFile(e,"utf8"),s=JSON.parse(t),r=["accessToken","clientId","refreshToken","dpopKey"].filter((n)=>!s[n]);if(!s.accessToken?.accountId)r.push("accountId");if(r.length>0)throw new f.CredentialsProviderError(`Token validation failed, missing fields: ${r.join(", ")}`,{logger:this.logger,tryNextLink:!1});return s}catch(t){throw new f.CredentialsProviderError(`Failed to load token from ${e}: ${String(t)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let t=this.getTokenFilePath(),s=U(t);try{await S.mkdir(s,{recursive:!0})}catch(r){}await S.writeFile(t,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??A(q(),".aws","login","cache"),t=Buffer.from(this.loginSession,"utf8"),s=O("sha256").update(t).digest("hex");return A(e,`${s}.json`)}derToRawSignature(e){let t=2;if(e[t]!==2)throw Error("Invalid DER signature");t++;let s=e[t++],r=e.subarray(t,t+s);if(t+=s,e[t]!==2)throw Error("Invalid DER signature");t++;let n=e[t++],o=e.subarray(t,t+n);r=r[0]===0?r.subarray(1):r,o=o[0]===0?o.subarray(1):o;let a=Buffer.concat([Buffer.alloc(32-r.length),r]),h=Buffer.concat([Buffer.alloc(32-o.length),o]);return Buffer.concat([a,h])}createDPoPInterceptor(e){e.add((t)=>async(s)=>{if(N.HttpRequest.isInstance(s.request)){let r=s.request,n=`${r.protocol}//${r.hostname}${r.port?`:${r.port}`:""}${r.path}`,o=await this.generateDpop(r.method,n);r.headers={...r.headers,DPoP:o}}return t(s)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",t){let s=await this.loadToken();try{let r=_({key:s.dpopKey,format:"pem",type:"sec1"}),o=v(r).export({format:"der",type:"spki"}),a=-1;for(let l=0;l<o.length;l++)if(o[l]===4){a=l;break}let h=o.slice(a+1,a+33),y=o.slice(a+33,a+65),m={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:h.toString("base64url"),y:y.toString("base64url")}},T={jti:crypto.randomUUID(),htm:e,htu:t,iat:Math.floor(Date.now()/1000)},D=Buffer.from(JSON.stringify(m)).toString("base64url"),x=Buffer.from(JSON.stringify(T)).toString("base64url"),u=`${D}.${x}`,k=B("sha256",Buffer.from(u),r),i=this.derToRawSignature(k).toString("base64url");return`${u}.${i}`}catch(r){throw new f.CredentialsProviderError(`Failed to generate Dpop proof: ${r instanceof Error?r.message:String(r)}`,{logger:this.logger,tryNextLink:!1})}}}var j=(e)=>async({callerClientConfig:t}={})=>{e?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let s=await p.parseKnownFiles(e||{}),r=p.getProfileName({profile:e?.profile??t?.profile}),n=s[r];if(!n?.login_session)throw new p.CredentialsProviderError(`Profile ${r} does not contain login_session.`,{tryNextLink:!0,logger:e?.logger});let a=await new d(n,e,t).loadCredentials();return R.setCredentialFeature(a,"CREDENTIALS_LOGIN","AD")};export{j as fromLoginCredentials};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ import{be,rt,Nn,Un}from"./chunk-ezq0fnz6.js";import{Q,te}from"./chunk-tnay319j.js";function a(r,o,s){if(!be(o))throw Error(`${r} returned invalid probabilities for ${s}`);return Object.fromEntries(Object.entries(o).map(([t,e])=>[t,rt(r,e,`probability for ${s}.${t}`)]))}function f(r,o,s){if(!be(o))throw Error(`${r} returned an unexpected response`);let t=[];for(let[e,n]of Object.entries(s.questions)){let i=o[e];if(!be(i))throw Error(`${r} did not return an answer for ${e}`);if(n.type==="choice"){if(i.type!=="choice"||typeof i.choice!=="string")throw Error(`${r} did not return a choice answer for ${e}`);t.push([e,{type:"choice",choice:i.choice,probabilities:a(r,i.probabilities,e),confidence:rt(r,i.confidence,`confidence for ${e}`)}])}else if(n.type==="score"){if(i.type!=="score")throw Error(`${r} did not return a score answer for ${e}`);t.push([e,{type:"score",score:rt(r,i.score,`score for ${e}`),confidence:rt(r,i.confidence,`confidence for ${e}`)}])}else{if(i.type!=="noul")throw Error(`${r} did not return a bool answer for ${e}`);t.push([e,{type:"bool",probability:rt(r,i.noul,`probability for ${e}`)}])}}return Object.fromEntries(t)}function p(r){return{state:r.state,questions:Object.fromEntries(Object.entries(r.questions).map(([o,s])=>[o,s.type==="bool"?{...s,type:"noul"}:s]))}}async function Tn(r,o,s,t){let e={api:o.api,provider:o.provider,model:o.id,answers:{},stopReason:"stop",timestamp:Date.now()};try{if(o.api!==r.api)throw Error(`Unsupported classifier API: ${o.api}`);if(s.images?.length)throw Error(`${r.label} does not support image input`);let n=await Nn(r.label,r.url(o),o,r.payload(o,p(s)),t),i=r.output(n),c=Un(i.usage,o);if(c)e.usage=c;return e.answers=f(r.label,i.answers,s),e}catch(n){return e.stopReason=t?.signal?.aborted?"aborted":"error",e.errorMessage=te(Q(n),`${r.label} error`),e}}
3
+ export{Tn};