@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.
- package/README.md +24 -0
- package/chunk-10y5hvt2.js +2 -0
- package/chunk-22k2be3e.js +13 -0
- package/chunk-28hye007.js +2 -0
- package/chunk-2fmsw1c6.js +5 -0
- package/chunk-2xj51v3m.js +3 -0
- package/chunk-3x0wm92n.js +3 -0
- package/chunk-4fgsqb1e.js +2 -0
- package/chunk-519eek65.js +39 -0
- package/chunk-5qa4dean.js +2 -0
- package/chunk-5x256mz8.js +2 -0
- package/chunk-6n01sefp.js +8 -0
- package/chunk-74xtmwpw.js +2 -0
- package/chunk-7mafj833.js +3 -0
- package/chunk-7v1sqn9k.js +59 -0
- package/chunk-8my52htr.js +3 -0
- package/chunk-8vh98e46.js +2 -0
- package/chunk-92mpgche.js +2 -0
- package/chunk-9vacevyf.js +3 -0
- package/chunk-9y44m27k.js +5 -0
- package/chunk-a5wv2shs.js +3 -0
- package/chunk-a78qhb4t.js +5 -0
- package/chunk-axsxx67j.js +3 -0
- package/chunk-b49fzzzn.js +2 -0
- package/chunk-bc8awbnt.js +2 -0
- package/chunk-crxs0n0r.js +3 -0
- package/chunk-csed8fsv.js +3 -0
- package/chunk-cspx3bz9.js +2 -0
- package/chunk-ctdtmwmd.js +63 -0
- package/chunk-d3xsmwbh.js +25 -0
- package/chunk-dvwgpsfz.js +3 -0
- package/chunk-dzd8k6bw.js +3 -0
- package/chunk-e2xqa46t.js +2 -0
- package/chunk-e41mpwx9.js +9 -0
- package/chunk-e5ccfgsk.js +3 -0
- package/chunk-e67wqhzh.js +12 -0
- package/chunk-emeb13nd.js +25 -0
- package/chunk-ers9s2c4.js +31 -0
- package/chunk-ezq0fnz6.js +3 -0
- package/chunk-ezqvx0hm.js +2 -0
- package/chunk-f10ca9ma.js +12 -0
- package/chunk-f72jhcp8.js +2 -0
- package/chunk-fjv41a8r.js +4155 -0
- package/chunk-gj0dhgbg.js +3 -0
- package/chunk-h0ggc6pv.js +60 -0
- package/chunk-hrt42rkh.js +4 -0
- package/chunk-j7m36g5w.js +3 -0
- package/chunk-jhn30hjp.js +2 -0
- package/chunk-ka41gq1g.js +16 -0
- package/chunk-kcp9byws.js +2 -0
- package/chunk-me72k64f.js +7 -0
- package/chunk-n4jemqf1.js +2 -0
- package/chunk-ndt4jvh1.js +3 -0
- package/chunk-pyxn4wqj.js +3 -0
- package/chunk-rajb3566.js +2 -0
- package/chunk-rbq2gsar.js +3 -0
- package/chunk-rd98e7kg.js +10 -0
- package/chunk-rm5dbbsg.js +3 -0
- package/chunk-rztw3tgx.js +3 -0
- package/chunk-s4mn41eh.js +8 -0
- package/chunk-s9p624fq.js +44 -0
- package/chunk-sawrte7v.js +3 -0
- package/chunk-sd8d792h.js +51 -0
- package/chunk-sgvmxx0d.js +2 -0
- package/chunk-sqbnt2t1.js +3 -0
- package/chunk-t2bvj735.js +2 -0
- package/chunk-t8tkamx6.js +2 -0
- package/chunk-tbehe5ky.js +18 -0
- package/chunk-tnay319j.js +3 -0
- package/chunk-tsha69rv.js +7 -0
- package/chunk-twqwer9t.js +5 -0
- package/chunk-vr2rtqeh.js +2 -0
- package/chunk-vr6eej6b.js +3 -0
- package/chunk-w41gswj8.js +3 -0
- package/chunk-x7tras0x.js +498 -0
- package/chunk-xakmebnm.js +10 -0
- package/chunk-xj453mny.js +286 -0
- package/chunk-xmrw19xj.js +2 -0
- package/chunk-xpj8fcjp.js +20 -0
- package/chunk-y218jsvc.js +3 -0
- package/chunk-y33fkh8m.js +2 -0
- package/chunk-z3h9ydyr.js +11 -0
- package/chunk-zc51vfhr.js +2 -0
- package/chunk-zm88mnds.js +7 -0
- package/chunk-zz9rj82y.js +3 -0
- package/compiled.js +10 -10
- package/package.json +1 -1
- package/ui-test-worker.js +42 -42
- package/web/chunk-0b5vh2pt.js +2 -0
- package/web/chunk-0b5vh2pt.js.br +0 -0
- package/web/chunk-0b5vh2pt.js.gz +0 -0
- package/web/chunk-0hkdqhkv.js +1 -0
- package/web/chunk-0hkdqhkv.js.br +0 -0
- package/web/chunk-0hkdqhkv.js.gz +0 -0
- package/web/chunk-0v7wrb32.js +2 -0
- package/web/chunk-0v7wrb32.js.br +0 -0
- package/web/chunk-0v7wrb32.js.gz +0 -0
- package/web/chunk-0x2fgw1m.js +1 -0
- package/web/chunk-0x2fgw1m.js.br +0 -0
- package/web/chunk-0x2fgw1m.js.gz +0 -0
- package/web/chunk-0xctxqvv.js +2 -0
- package/web/chunk-0xctxqvv.js.br +0 -0
- package/web/chunk-0xctxqvv.js.gz +0 -0
- package/web/chunk-0y9tf0rt.js +89 -0
- package/web/chunk-0y9tf0rt.js.br +0 -0
- package/web/chunk-0y9tf0rt.js.gz +0 -0
- package/web/chunk-0yrp0f6x.js +1 -0
- package/web/chunk-0yrp0f6x.js.br +0 -0
- package/web/chunk-0yrp0f6x.js.gz +0 -0
- package/web/chunk-10jk2pn9.js +1 -0
- package/web/chunk-10jk2pn9.js.br +0 -0
- package/web/chunk-10jk2pn9.js.gz +0 -0
- package/web/chunk-15ka35m9.js +2 -0
- package/web/chunk-15ka35m9.js.br +0 -0
- package/web/chunk-15ka35m9.js.gz +0 -0
- package/web/chunk-1700cges.js +1 -0
- package/web/chunk-1700cges.js.br +0 -0
- package/web/chunk-1700cges.js.gz +0 -0
- package/web/chunk-1apw6pnk.css +1 -0
- package/web/chunk-1apw6pnk.css.br +0 -0
- package/web/chunk-1apw6pnk.css.gz +0 -0
- package/web/chunk-1b005nqw.js +139 -0
- package/web/chunk-1b005nqw.js.br +0 -0
- package/web/chunk-1b005nqw.js.gz +0 -0
- package/web/chunk-1c9khgyt.js +1 -0
- package/web/chunk-1c9khgyt.js.br +2 -0
- package/web/chunk-1c9khgyt.js.gz +0 -0
- package/web/chunk-1pr20x9x.js +1 -0
- package/web/chunk-1pr20x9x.js.br +0 -0
- package/web/chunk-1pr20x9x.js.gz +0 -0
- package/web/chunk-1sjgdggk.js +7 -0
- package/web/chunk-1sjgdggk.js.br +0 -0
- package/web/chunk-1sjgdggk.js.gz +0 -0
- package/web/chunk-1tt5ympp.js +1 -0
- package/web/chunk-1tt5ympp.js.br +0 -0
- package/web/chunk-1tt5ympp.js.gz +0 -0
- package/web/chunk-29fpfs5q.js +1142 -0
- package/web/chunk-29fpfs5q.js.br +0 -0
- package/web/chunk-29fpfs5q.js.gz +0 -0
- package/web/chunk-2gr7vwnp.js +24 -0
- package/web/chunk-2gr7vwnp.js.br +0 -0
- package/web/chunk-2gr7vwnp.js.gz +0 -0
- package/web/chunk-2p84jch3.js +1 -0
- package/web/chunk-2p84jch3.js.br +0 -0
- package/web/chunk-2p84jch3.js.gz +0 -0
- package/web/chunk-2qs283mh.js +2 -0
- package/web/chunk-2qs283mh.js.br +0 -0
- package/web/chunk-2qs283mh.js.gz +0 -0
- package/web/chunk-3gf2d852.js +1 -0
- package/web/chunk-3gf2d852.js.br +0 -0
- package/web/chunk-3gf2d852.js.gz +0 -0
- package/web/chunk-3hswqkb0.js +1 -0
- package/web/chunk-3hswqkb0.js.br +0 -0
- package/web/chunk-3hswqkb0.js.gz +0 -0
- package/web/chunk-46yjp1x4.js +2 -0
- package/web/chunk-46yjp1x4.js.br +0 -0
- package/web/chunk-46yjp1x4.js.gz +0 -0
- package/web/chunk-4ezd1rkc.js +84 -0
- package/web/chunk-4ezd1rkc.js.br +0 -0
- package/web/chunk-4ezd1rkc.js.gz +0 -0
- package/web/chunk-4v9ar0sf.js +142 -0
- package/web/chunk-4v9ar0sf.js.br +0 -0
- package/web/chunk-4v9ar0sf.js.gz +0 -0
- package/web/chunk-51z88j1t.js +21 -0
- package/web/chunk-51z88j1t.js.br +0 -0
- package/web/chunk-51z88j1t.js.gz +0 -0
- package/web/chunk-5f5zcfga.js +1 -0
- package/web/chunk-5f5zcfga.js.br +2 -0
- package/web/chunk-5f5zcfga.js.gz +0 -0
- package/web/chunk-5n61r0rr.js +36 -0
- package/web/chunk-5n61r0rr.js.br +0 -0
- package/web/chunk-5n61r0rr.js.gz +0 -0
- package/web/chunk-5vcdeenv.js +2 -0
- package/web/chunk-5vcdeenv.js.br +0 -0
- package/web/chunk-5vcdeenv.js.gz +0 -0
- package/web/chunk-5y7ks8c3.js +30 -0
- package/web/chunk-5y7ks8c3.js.br +0 -0
- package/web/chunk-5y7ks8c3.js.gz +0 -0
- package/web/chunk-60v8qwec.js +2 -0
- package/web/chunk-60v8qwec.js.br +0 -0
- package/web/chunk-60v8qwec.js.gz +0 -0
- package/web/chunk-61m5t9wg.js +200 -0
- package/web/chunk-61m5t9wg.js.br +0 -0
- package/web/chunk-61m5t9wg.js.gz +0 -0
- package/web/chunk-669n37qf.js +70 -0
- package/web/chunk-669n37qf.js.br +0 -0
- package/web/chunk-669n37qf.js.gz +0 -0
- package/web/chunk-6kf1xwz9.js +2 -0
- package/web/chunk-6kf1xwz9.js.br +0 -0
- package/web/chunk-6kf1xwz9.js.gz +0 -0
- package/web/chunk-6rw72jmj.js +2 -0
- package/web/chunk-6rw72jmj.js.br +0 -0
- package/web/chunk-6rw72jmj.js.gz +0 -0
- package/web/chunk-6wyxxd9h.js +2 -0
- package/web/chunk-6wyxxd9h.js.br +0 -0
- package/web/chunk-6wyxxd9h.js.gz +0 -0
- package/web/chunk-77vj65dc.js +1 -0
- package/web/chunk-77vj65dc.js.br +0 -0
- package/web/chunk-77vj65dc.js.gz +0 -0
- package/web/chunk-8ktz0w1x.js +120 -0
- package/web/chunk-8ktz0w1x.js.br +0 -0
- package/web/chunk-8ktz0w1x.js.gz +0 -0
- package/web/chunk-8rcfpj02.js +2 -0
- package/web/chunk-8rcfpj02.js.br +0 -0
- package/web/chunk-8rcfpj02.js.gz +0 -0
- package/web/chunk-8x4s1c9g.js +1 -0
- package/web/chunk-8x4s1c9g.js.br +2 -0
- package/web/chunk-8x4s1c9g.js.gz +0 -0
- package/web/chunk-8zf4cywy.js +1 -0
- package/web/chunk-8zf4cywy.js.br +0 -0
- package/web/chunk-8zf4cywy.js.gz +0 -0
- package/web/chunk-a18y5dmf.js +2 -0
- package/web/chunk-a18y5dmf.js.br +0 -0
- package/web/chunk-a18y5dmf.js.gz +0 -0
- package/web/chunk-a36sfjyk.js +1 -0
- package/web/chunk-a36sfjyk.js.br +0 -0
- package/web/chunk-a36sfjyk.js.gz +0 -0
- package/web/chunk-aahzqxq7.js +34 -0
- package/web/chunk-aahzqxq7.js.br +0 -0
- package/web/chunk-aahzqxq7.js.gz +0 -0
- package/web/chunk-b2gtwatf.js +370 -0
- package/web/chunk-b2gtwatf.js.br +0 -0
- package/web/chunk-b2gtwatf.js.gz +0 -0
- package/web/chunk-bdp4y1zg.js +1 -0
- package/web/chunk-bdp4y1zg.js.br +0 -0
- package/web/chunk-bdp4y1zg.js.gz +0 -0
- package/web/chunk-be67vfx1.js +1 -0
- package/web/chunk-be67vfx1.js.br +0 -0
- package/web/chunk-be67vfx1.js.gz +0 -0
- package/web/chunk-bt6r78y9.js +106 -0
- package/web/chunk-bt6r78y9.js.br +0 -0
- package/web/chunk-bt6r78y9.js.gz +0 -0
- package/web/chunk-c97th1x0.js +1 -0
- package/web/chunk-c97th1x0.js.br +0 -0
- package/web/chunk-c97th1x0.js.gz +0 -0
- package/web/chunk-cfkp7taw.js +1 -0
- package/web/chunk-cfkp7taw.js.br +0 -0
- package/web/chunk-cfkp7taw.js.gz +0 -0
- package/web/chunk-cvf9k1fy.js +140 -0
- package/web/chunk-cvf9k1fy.js.br +0 -0
- package/web/chunk-cvf9k1fy.js.gz +0 -0
- package/web/chunk-d33n9fsr.js +1 -0
- package/web/chunk-d33n9fsr.js.br +1 -0
- package/web/chunk-d33n9fsr.js.gz +0 -0
- package/web/chunk-e667nxc9.js +1 -0
- package/web/chunk-e667nxc9.js.br +0 -0
- package/web/chunk-e667nxc9.js.gz +0 -0
- package/web/chunk-eejjsqm1.js +303 -0
- package/web/chunk-eejjsqm1.js.br +0 -0
- package/web/chunk-eejjsqm1.js.gz +0 -0
- package/web/chunk-eg3qjy7a.js +2 -0
- package/web/chunk-eg3qjy7a.js.br +0 -0
- package/web/chunk-eg3qjy7a.js.gz +0 -0
- package/web/chunk-embvjvdj.js +12 -0
- package/web/chunk-embvjvdj.js.br +0 -0
- package/web/chunk-embvjvdj.js.gz +0 -0
- package/web/chunk-etjfr79m.js +2 -0
- package/web/chunk-etjfr79m.js.br +0 -0
- package/web/chunk-etjfr79m.js.gz +0 -0
- package/web/chunk-ez36gbz3.js +7 -0
- package/web/chunk-ez36gbz3.js.br +0 -0
- package/web/chunk-ez36gbz3.js.gz +0 -0
- package/web/chunk-f0vcm8mk.js +214 -0
- package/web/chunk-f0vcm8mk.js.br +0 -0
- package/web/chunk-f0vcm8mk.js.gz +0 -0
- package/web/chunk-f3t3ey83.js +1 -0
- package/web/chunk-f3t3ey83.js.br +0 -0
- package/web/chunk-f3t3ey83.js.gz +0 -0
- package/web/chunk-f84sngcq.js +2 -0
- package/web/chunk-f84sngcq.js.br +0 -0
- package/web/chunk-f84sngcq.js.gz +0 -0
- package/web/chunk-f97hz4v5.js +99 -0
- package/web/chunk-f97hz4v5.js.br +0 -0
- package/web/chunk-f97hz4v5.js.gz +0 -0
- package/web/chunk-fnkp6s0g.js +1 -0
- package/web/chunk-fnkp6s0g.js.br +0 -0
- package/web/chunk-fnkp6s0g.js.gz +0 -0
- package/web/chunk-fpdyzyn8.js +16 -0
- package/web/chunk-fpdyzyn8.js.br +0 -0
- package/web/chunk-fpdyzyn8.js.gz +0 -0
- package/web/chunk-g43z223a.js +2 -0
- package/web/chunk-g43z223a.js.br +0 -0
- package/web/chunk-g43z223a.js.gz +0 -0
- package/web/chunk-gcm82aj8.js +1 -0
- package/web/chunk-gcm82aj8.js.br +0 -0
- package/web/chunk-gcm82aj8.js.gz +0 -0
- package/web/chunk-gffb3p4z.js +2 -0
- package/web/chunk-gffb3p4z.js.br +0 -0
- package/web/chunk-gffb3p4z.js.gz +0 -0
- package/web/chunk-gnzg3krt.js +1 -0
- package/web/chunk-gnzg3krt.js.br +0 -0
- package/web/chunk-gnzg3krt.js.gz +0 -0
- package/web/chunk-grqtpfdp.js +2 -0
- package/web/chunk-grqtpfdp.js.br +0 -0
- package/web/chunk-grqtpfdp.js.gz +0 -0
- package/web/chunk-gsm8spf8.js +1 -0
- package/web/chunk-gsm8spf8.js.br +0 -0
- package/web/chunk-gsm8spf8.js.gz +0 -0
- package/web/chunk-h6ygrnd0.js +38 -0
- package/web/chunk-h6ygrnd0.js.br +0 -0
- package/web/chunk-h6ygrnd0.js.gz +0 -0
- package/web/chunk-h8n9w5th.js +169 -0
- package/web/chunk-h8n9w5th.js.br +0 -0
- package/web/chunk-h8n9w5th.js.gz +0 -0
- package/web/chunk-hmdvm5pp.js +2 -0
- package/web/chunk-hmdvm5pp.js.br +0 -0
- package/web/chunk-hmdvm5pp.js.gz +0 -0
- package/web/chunk-hrntwvx8.js +1 -0
- package/web/chunk-hrntwvx8.js.br +0 -0
- package/web/chunk-hrntwvx8.js.gz +0 -0
- package/web/chunk-hrys15jh.js +324 -0
- package/web/chunk-hrys15jh.js.br +0 -0
- package/web/chunk-hrys15jh.js.gz +0 -0
- package/web/chunk-j0ng7zdq.js +41 -0
- package/web/chunk-j0ng7zdq.js.br +0 -0
- package/web/chunk-j0ng7zdq.js.gz +0 -0
- package/web/chunk-j2t5ycte.js +78 -0
- package/web/chunk-j2t5ycte.js.br +0 -0
- package/web/chunk-j2t5ycte.js.gz +0 -0
- package/web/chunk-jkjd1y3p.js +3 -0
- package/web/chunk-jkjd1y3p.js.br +0 -0
- package/web/chunk-jkjd1y3p.js.gz +0 -0
- package/web/chunk-jweahmyy.js +1 -0
- package/web/chunk-jweahmyy.js.br +0 -0
- package/web/chunk-jweahmyy.js.gz +0 -0
- package/web/chunk-k56v8k7n.js +4 -0
- package/web/chunk-k56v8k7n.js.br +0 -0
- package/web/chunk-k56v8k7n.js.gz +0 -0
- package/web/chunk-k59sk88z.js +7 -0
- package/web/chunk-k59sk88z.js.br +0 -0
- package/web/chunk-k59sk88z.js.gz +0 -0
- package/web/chunk-k75a0fpt.js +62 -0
- package/web/chunk-k75a0fpt.js.br +0 -0
- package/web/chunk-k75a0fpt.js.gz +0 -0
- package/web/chunk-kfx9q7xv.js +2 -0
- package/web/chunk-kfx9q7xv.js.br +0 -0
- package/web/chunk-kfx9q7xv.js.gz +0 -0
- package/web/chunk-ksp1gg3v.js +1 -0
- package/web/chunk-ksp1gg3v.js.br +0 -0
- package/web/chunk-ksp1gg3v.js.gz +0 -0
- package/web/chunk-kxxp1mn4.js +2 -0
- package/web/chunk-kxxp1mn4.js.br +0 -0
- package/web/chunk-kxxp1mn4.js.gz +0 -0
- package/web/chunk-mapbxzsz.js +1 -0
- package/web/chunk-mapbxzsz.js.br +0 -0
- package/web/chunk-mapbxzsz.js.gz +0 -0
- package/web/chunk-msw43fnq.js +2 -0
- package/web/chunk-msw43fnq.js.br +0 -0
- package/web/chunk-msw43fnq.js.gz +0 -0
- package/web/chunk-mzzjg4sn.js +2 -0
- package/web/chunk-mzzjg4sn.js.br +0 -0
- package/web/chunk-mzzjg4sn.js.gz +0 -0
- package/web/chunk-n1bmcj13.js +2 -0
- package/web/chunk-n1bmcj13.js.br +0 -0
- package/web/chunk-n1bmcj13.js.gz +0 -0
- package/web/chunk-n5y4ar3e.js +1 -0
- package/web/chunk-n5y4ar3e.js.br +0 -0
- package/web/chunk-n5y4ar3e.js.gz +0 -0
- package/web/chunk-n9vszqw9.js +1 -0
- package/web/chunk-n9vszqw9.js.br +0 -0
- package/web/chunk-n9vszqw9.js.gz +0 -0
- package/web/chunk-nzzcmxq8.js +1 -0
- package/web/chunk-nzzcmxq8.js.br +0 -0
- package/web/chunk-nzzcmxq8.js.gz +0 -0
- package/web/chunk-p25eppk1.js +1 -0
- package/web/chunk-p25eppk1.js.br +0 -0
- package/web/chunk-p25eppk1.js.gz +0 -0
- package/web/chunk-p9352vpw.js +1 -0
- package/web/chunk-p9352vpw.js.br +0 -0
- package/web/chunk-p9352vpw.js.gz +0 -0
- package/web/chunk-pdvm4n6f.js +1 -0
- package/web/chunk-pdvm4n6f.js.br +2 -0
- package/web/chunk-pdvm4n6f.js.gz +0 -0
- package/web/chunk-pjm2t9da.js +1 -0
- package/web/chunk-pjm2t9da.js.br +0 -0
- package/web/chunk-pjm2t9da.js.gz +0 -0
- package/web/chunk-pka3qm06.js +98 -0
- package/web/chunk-pka3qm06.js.br +0 -0
- package/web/chunk-pka3qm06.js.gz +0 -0
- package/web/chunk-pkbcbta6.js +1 -0
- package/web/chunk-pkbcbta6.js.br +0 -0
- package/web/chunk-pkbcbta6.js.gz +0 -0
- package/web/chunk-pq4vn3zh.js +1 -0
- package/web/chunk-pq4vn3zh.js.br +0 -0
- package/web/chunk-pq4vn3zh.js.gz +0 -0
- package/web/chunk-prk9ks5j.js +1 -0
- package/web/chunk-prk9ks5j.js.br +0 -0
- package/web/chunk-prk9ks5j.js.gz +0 -0
- package/web/chunk-px68tdjm.js +1 -0
- package/web/chunk-px68tdjm.js.br +2 -0
- package/web/chunk-px68tdjm.js.gz +0 -0
- package/web/chunk-px8k5edz.js +24 -0
- package/web/chunk-px8k5edz.js.br +0 -0
- package/web/chunk-px8k5edz.js.gz +0 -0
- package/web/chunk-pz4g2bem.js +292 -0
- package/web/chunk-pz4g2bem.js.br +0 -0
- package/web/chunk-pz4g2bem.js.gz +0 -0
- package/web/chunk-q0gx75nf.js +55 -0
- package/web/chunk-q0gx75nf.js.br +0 -0
- package/web/chunk-q0gx75nf.js.gz +0 -0
- package/web/chunk-q9rpxfmm.js +1 -0
- package/web/chunk-q9rpxfmm.js.br +0 -0
- package/web/chunk-q9rpxfmm.js.gz +0 -0
- package/web/chunk-qpfhs1x0.js +1 -0
- package/web/chunk-qpfhs1x0.js.br +0 -0
- package/web/chunk-qpfhs1x0.js.gz +0 -0
- package/web/chunk-qredmg6m.js +1 -0
- package/web/chunk-qredmg6m.js.br +0 -0
- package/web/chunk-qredmg6m.js.gz +0 -0
- package/web/chunk-qtc9ar2m.js +2 -0
- package/web/chunk-qtc9ar2m.js.br +0 -0
- package/web/chunk-qtc9ar2m.js.gz +0 -0
- package/web/chunk-r5dsw56r.js +1 -0
- package/web/chunk-r5dsw56r.js.br +0 -0
- package/web/chunk-r5dsw56r.js.gz +0 -0
- package/web/chunk-rkaps675.js +1 -0
- package/web/chunk-rkaps675.js.br +0 -0
- package/web/chunk-rkaps675.js.gz +0 -0
- package/web/chunk-rp87pgcp.js +40 -0
- package/web/chunk-rp87pgcp.js.br +0 -0
- package/web/chunk-rp87pgcp.js.gz +0 -0
- package/web/chunk-rs1mtd35.js +2 -0
- package/web/chunk-rs1mtd35.js.br +0 -0
- package/web/chunk-rs1mtd35.js.gz +0 -0
- package/web/chunk-s31n33g5.js +2 -0
- package/web/chunk-s31n33g5.js.br +0 -0
- package/web/chunk-s31n33g5.js.gz +0 -0
- package/web/chunk-sbcyvn42.js +1 -0
- package/web/chunk-sbcyvn42.js.br +0 -0
- package/web/chunk-sbcyvn42.js.gz +0 -0
- package/web/chunk-sew9vfwy.js +1 -0
- package/web/chunk-sew9vfwy.js.br +0 -0
- package/web/chunk-sew9vfwy.js.gz +0 -0
- package/web/chunk-sgaw26nc.js +2 -0
- package/web/chunk-sgaw26nc.js.br +0 -0
- package/web/chunk-sgaw26nc.js.gz +0 -0
- package/web/chunk-t2ak4a9d.js +1 -0
- package/web/chunk-t2ak4a9d.js.br +0 -0
- package/web/chunk-t2ak4a9d.js.gz +0 -0
- package/web/chunk-ta0e3dk6.js +2 -0
- package/web/chunk-ta0e3dk6.js.br +0 -0
- package/web/chunk-ta0e3dk6.js.gz +0 -0
- package/web/chunk-tqax5mb6.js +217 -0
- package/web/chunk-tqax5mb6.js.br +0 -0
- package/web/chunk-tqax5mb6.js.gz +0 -0
- package/web/chunk-v1wxeq38.js +2 -0
- package/web/chunk-v1wxeq38.js.br +0 -0
- package/web/chunk-v1wxeq38.js.gz +0 -0
- package/web/chunk-v3kwg4zn.js +2 -0
- package/web/chunk-v3kwg4zn.js.br +0 -0
- package/web/chunk-v3kwg4zn.js.gz +0 -0
- package/web/chunk-vcpvhkxh.js +39 -0
- package/web/chunk-vcpvhkxh.js.br +0 -0
- package/web/chunk-vcpvhkxh.js.gz +0 -0
- package/web/chunk-vg9qv3aa.js +1 -0
- package/web/chunk-vg9qv3aa.js.br +0 -0
- package/web/chunk-vg9qv3aa.js.gz +0 -0
- package/web/chunk-vwxnt3nh.js +1 -0
- package/web/chunk-vwxnt3nh.js.br +0 -0
- package/web/chunk-vwxnt3nh.js.gz +0 -0
- package/web/chunk-w1xjqhwy.js +1 -0
- package/web/chunk-w1xjqhwy.js.br +2 -0
- package/web/chunk-w1xjqhwy.js.gz +0 -0
- package/web/chunk-w3nfxvzd.js +1 -0
- package/web/chunk-w3nfxvzd.js.br +0 -0
- package/web/chunk-w3nfxvzd.js.gz +0 -0
- package/web/chunk-w7h3x3ys.js +1 -0
- package/web/chunk-w7h3x3ys.js.br +0 -0
- package/web/chunk-w7h3x3ys.js.gz +0 -0
- package/web/chunk-wb0yn3r4.js +8 -0
- package/web/chunk-wb0yn3r4.js.br +0 -0
- package/web/chunk-wb0yn3r4.js.gz +0 -0
- package/web/chunk-wff6hqjf.js +1 -0
- package/web/chunk-wff6hqjf.js.br +0 -0
- package/web/chunk-wff6hqjf.js.gz +0 -0
- package/web/chunk-whj4e4sb.js +89 -0
- package/web/chunk-whj4e4sb.js.br +0 -0
- package/web/chunk-whj4e4sb.js.gz +0 -0
- package/web/chunk-wn3kdpj0.js +1 -0
- package/web/chunk-wn3kdpj0.js.br +0 -0
- package/web/chunk-wn3kdpj0.js.gz +0 -0
- package/web/chunk-wzq3qxpb.js +1 -0
- package/web/chunk-wzq3qxpb.js.br +0 -0
- package/web/chunk-wzq3qxpb.js.gz +0 -0
- package/web/chunk-x2tezwv1.js +4 -0
- package/web/chunk-x2tezwv1.js.br +0 -0
- package/web/chunk-x2tezwv1.js.gz +0 -0
- package/web/chunk-xmajh4qe.js +2 -0
- package/web/chunk-xmajh4qe.js.br +0 -0
- package/web/chunk-xmajh4qe.js.gz +0 -0
- package/web/chunk-xz7py7yx.js +1 -0
- package/web/chunk-xz7py7yx.js.br +0 -0
- package/web/chunk-xz7py7yx.js.gz +0 -0
- package/web/chunk-y4af9gsm.js +291 -0
- package/web/chunk-y4af9gsm.js.br +0 -0
- package/web/chunk-y4af9gsm.js.gz +0 -0
- package/web/chunk-y512gr5a.js +332 -0
- package/web/chunk-y512gr5a.js.br +0 -0
- package/web/chunk-y512gr5a.js.gz +0 -0
- package/web/chunk-ywg44m2b.js +2 -0
- package/web/chunk-ywg44m2b.js.br +0 -0
- package/web/chunk-ywg44m2b.js.gz +0 -0
- package/web/chunk-zhzp4fm1.js +2 -0
- package/web/chunk-zhzp4fm1.js.br +0 -0
- package/web/chunk-zhzp4fm1.js.gz +0 -0
- package/web/index.html +1 -1
- package/web/index.html.br +0 -0
- package/web/index.html.gz +0 -0
- package/worker.js +1 -1
- package/chunk-04326385.js +0 -39
- package/chunk-11zc1b2w.js +0 -3
- package/chunk-12203fgm.js +0 -2
- package/chunk-194d4z7x.js +0 -7
- package/chunk-1apm7p2e.js +0 -2
- package/chunk-2csz31nh.js +0 -2
- package/chunk-2rqpfv4h.js +0 -3
- package/chunk-39cfcar4.js +0 -3
- package/chunk-3j26jsy0.js +0 -51
- package/chunk-4a5xttdp.js +0 -3
- package/chunk-4st5xeee.js +0 -2
- package/chunk-54zpktrq.js +0 -3
- package/chunk-5ggyf53b.js +0 -50
- package/chunk-5h17n6g1.js +0 -3
- package/chunk-5rn18vrq.js +0 -5
- package/chunk-5tdnvdmz.js +0 -2
- package/chunk-6qavr39k.js +0 -2
- package/chunk-6xn0r0dd.js +0 -3
- package/chunk-7h76jrss.js +0 -7
- package/chunk-7hss4hs3.js +0 -7
- package/chunk-7vdq0wye.js +0 -2
- package/chunk-7w187ycz.js +0 -10
- package/chunk-81s7mvf2.js +0 -16
- package/chunk-8j8acxde.js +0 -2
- package/chunk-9nfz04yr.js +0 -2
- package/chunk-9vth0w8q.js +0 -2
- package/chunk-9zcfam20.js +0 -2
- package/chunk-a6zvmsbh.js +0 -12
- package/chunk-anr8aghq.js +0 -59
- package/chunk-av8zh9yp.js +0 -2
- package/chunk-bwv97dtf.js +0 -2
- package/chunk-cjy4rssa.js +0 -10
- package/chunk-dmdyqq1k.js +0 -2
- package/chunk-dzvq7vt6.js +0 -2
- package/chunk-ejrksf6g.js +0 -3
- package/chunk-erxka5vh.js +0 -18
- package/chunk-fb2ydc2s.js +0 -8
- package/chunk-fc41dvhp.js +0 -12
- package/chunk-fdgrayj5.js +0 -3
- package/chunk-fgpzy3fe.js +0 -3
- package/chunk-fwcqcecb.js +0 -8
- package/chunk-hhwnmhbb.js +0 -2
- package/chunk-hvxc1wyv.js +0 -3
- package/chunk-jm2bn5mq.js +0 -3
- package/chunk-jm5j5jfy.js +0 -3
- package/chunk-jqtdf0ym.js +0 -63
- package/chunk-jsvr3s4q.js +0 -5
- package/chunk-jwk5a5tk.js +0 -25
- package/chunk-mwc59w50.js +0 -31
- package/chunk-mypbpphn.js +0 -3
- package/chunk-n3hfhbe4.js +0 -498
- package/chunk-ng5ncy65.js +0 -2
- package/chunk-nkmvqcge.js +0 -4073
- package/chunk-nmvayfq3.js +0 -3
- package/chunk-nw4h0wm9.js +0 -2
- package/chunk-p23eqet9.js +0 -2
- package/chunk-pxsgm6ff.js +0 -2
- package/chunk-qqs9fqsy.js +0 -4
- package/chunk-r0gsb1qs.js +0 -3
- package/chunk-r49sxmnc.js +0 -3
- package/chunk-rbfpa63e.js +0 -3
- package/chunk-rsrh5dgx.js +0 -2
- package/chunk-s2pm97nk.js +0 -286
- package/chunk-s6tnmg6x.js +0 -3
- package/chunk-se548edt.js +0 -20
- package/chunk-tsdeeqb8.js +0 -3
- package/chunk-vnv3a6t2.js +0 -3
- package/chunk-vrsh8cx1.js +0 -3
- package/chunk-w3v8zahw.js +0 -2
- package/chunk-w6m8c4vf.js +0 -11
- package/chunk-wd7sj5cv.js +0 -2
- package/chunk-we8v9wkw.js +0 -9
- package/chunk-x055cas0.js +0 -5
- package/chunk-x5vrtxkj.js +0 -3
- package/chunk-x83syrhw.js +0 -44
- package/chunk-xedzsj31.js +0 -5
- package/chunk-xp83v3zm.js +0 -2
- package/chunk-ykzm5g1b.js +0 -25
- package/chunk-yq2bwebb.js +0 -3
- package/chunk-yygcpnwc.js +0 -3
- package/chunk-zjf34acb.js +0 -2
- package/web/chunk-07kt1zpn.js +0 -1
- package/web/chunk-07kt1zpn.js.br +0 -0
- package/web/chunk-07kt1zpn.js.gz +0 -0
- package/web/chunk-0d068bmj.js +0 -1
- package/web/chunk-0d068bmj.js.br +0 -0
- package/web/chunk-0d068bmj.js.gz +0 -0
- package/web/chunk-0m15ghn0.js +0 -2
- package/web/chunk-0m15ghn0.js.br +0 -0
- package/web/chunk-0m15ghn0.js.gz +0 -0
- package/web/chunk-0swykhgr.js +0 -2
- package/web/chunk-0swykhgr.js.br +0 -0
- package/web/chunk-0swykhgr.js.gz +0 -0
- package/web/chunk-100a4th6.js +0 -4
- package/web/chunk-100a4th6.js.br +0 -0
- package/web/chunk-100a4th6.js.gz +0 -0
- package/web/chunk-1mdvm20t.js +0 -140
- package/web/chunk-1mdvm20t.js.br +0 -0
- package/web/chunk-1mdvm20t.js.gz +0 -0
- package/web/chunk-1mkzfr1m.js +0 -2
- package/web/chunk-1mkzfr1m.js.br +0 -0
- package/web/chunk-1mkzfr1m.js.gz +0 -0
- package/web/chunk-1p7wa1rq.js +0 -1
- package/web/chunk-1p7wa1rq.js.br +0 -0
- package/web/chunk-1p7wa1rq.js.gz +0 -0
- package/web/chunk-20gcnbgn.js +0 -2
- package/web/chunk-20gcnbgn.js.br +0 -0
- package/web/chunk-20gcnbgn.js.gz +0 -0
- package/web/chunk-2grspw9t.js +0 -1
- package/web/chunk-2grspw9t.js.br +0 -0
- package/web/chunk-2grspw9t.js.gz +0 -0
- package/web/chunk-2nwvdqxm.js +0 -1
- package/web/chunk-2nwvdqxm.js.br +0 -0
- package/web/chunk-2nwvdqxm.js.gz +0 -0
- package/web/chunk-2zz8t49r.js +0 -1
- package/web/chunk-2zz8t49r.js.br +0 -0
- package/web/chunk-2zz8t49r.js.gz +0 -0
- package/web/chunk-34g2xrgq.js +0 -120
- package/web/chunk-34g2xrgq.js.br +0 -0
- package/web/chunk-34g2xrgq.js.gz +0 -0
- package/web/chunk-34q3az4b.js +0 -1
- package/web/chunk-34q3az4b.js.br +0 -0
- package/web/chunk-34q3az4b.js.gz +0 -0
- package/web/chunk-39jqdq4r.js +0 -1
- package/web/chunk-39jqdq4r.js.br +0 -0
- package/web/chunk-39jqdq4r.js.gz +0 -0
- package/web/chunk-3d2fm4qc.js +0 -1
- package/web/chunk-3d2fm4qc.js.br +0 -0
- package/web/chunk-3d2fm4qc.js.gz +0 -0
- package/web/chunk-3s16fbrf.js +0 -40
- package/web/chunk-3s16fbrf.js.br +0 -0
- package/web/chunk-3s16fbrf.js.gz +0 -0
- package/web/chunk-3vsey6mw.js +0 -1
- package/web/chunk-3vsey6mw.js.br +0 -0
- package/web/chunk-3vsey6mw.js.gz +0 -0
- package/web/chunk-3y29sc9c.js +0 -7
- package/web/chunk-3y29sc9c.js.br +0 -0
- package/web/chunk-3y29sc9c.js.gz +0 -0
- package/web/chunk-40f59ze9.js +0 -39
- package/web/chunk-40f59ze9.js.br +0 -0
- package/web/chunk-40f59ze9.js.gz +0 -0
- package/web/chunk-414npx47.js +0 -1
- package/web/chunk-414npx47.js.br +0 -0
- package/web/chunk-414npx47.js.gz +0 -0
- package/web/chunk-495sjpc6.js +0 -2
- package/web/chunk-495sjpc6.js.br +0 -0
- package/web/chunk-495sjpc6.js.gz +0 -0
- package/web/chunk-4ab1dv3g.js +0 -142
- package/web/chunk-4ab1dv3g.js.br +0 -0
- package/web/chunk-4ab1dv3g.js.gz +0 -0
- package/web/chunk-545zx869.js +0 -2
- package/web/chunk-545zx869.js.br +0 -0
- package/web/chunk-545zx869.js.gz +0 -0
- package/web/chunk-55mx05jg.js +0 -2
- package/web/chunk-55mx05jg.js.br +0 -0
- package/web/chunk-55mx05jg.js.gz +0 -0
- package/web/chunk-58xhn7ry.js +0 -2
- package/web/chunk-58xhn7ry.js.br +0 -0
- package/web/chunk-58xhn7ry.js.gz +0 -0
- package/web/chunk-67pa4950.js +0 -1
- package/web/chunk-67pa4950.js.br +0 -0
- package/web/chunk-67pa4950.js.gz +0 -0
- package/web/chunk-690qxds4.js +0 -1
- package/web/chunk-690qxds4.js.br +0 -0
- package/web/chunk-690qxds4.js.gz +0 -0
- package/web/chunk-6ana63fs.js +0 -21
- package/web/chunk-6ana63fs.js.br +0 -0
- package/web/chunk-6ana63fs.js.gz +0 -0
- package/web/chunk-6ew54553.js +0 -2
- package/web/chunk-6ew54553.js.br +0 -0
- package/web/chunk-6ew54553.js.gz +0 -0
- package/web/chunk-6f1q0tjv.js +0 -1142
- package/web/chunk-6f1q0tjv.js.br +0 -0
- package/web/chunk-6f1q0tjv.js.gz +0 -0
- package/web/chunk-6gpzz5wm.js +0 -1
- package/web/chunk-6gpzz5wm.js.br +0 -0
- package/web/chunk-6gpzz5wm.js.gz +0 -0
- package/web/chunk-71g6vrx9.js +0 -62
- package/web/chunk-71g6vrx9.js.br +0 -0
- package/web/chunk-71g6vrx9.js.gz +0 -0
- package/web/chunk-77dnqrb6.js +0 -2
- package/web/chunk-77dnqrb6.js.br +0 -0
- package/web/chunk-77dnqrb6.js.gz +0 -0
- package/web/chunk-7fdrwy21.js +0 -1
- package/web/chunk-7fdrwy21.js.br +0 -0
- package/web/chunk-7fdrwy21.js.gz +0 -0
- package/web/chunk-84s7821x.js +0 -2
- package/web/chunk-84s7821x.js.br +0 -0
- package/web/chunk-84s7821x.js.gz +0 -0
- package/web/chunk-8e5qd73v.js +0 -7
- package/web/chunk-8e5qd73v.js.br +0 -0
- package/web/chunk-8e5qd73v.js.gz +0 -0
- package/web/chunk-8kyj945c.js +0 -2
- package/web/chunk-8kyj945c.js.br +0 -0
- package/web/chunk-8kyj945c.js.gz +0 -0
- package/web/chunk-9b0evht1.js +0 -292
- package/web/chunk-9b0evht1.js.br +0 -0
- package/web/chunk-9b0evht1.js.gz +0 -0
- package/web/chunk-9j7v0e4v.js +0 -2
- package/web/chunk-9j7v0e4v.js.br +0 -0
- package/web/chunk-9j7v0e4v.js.gz +0 -0
- package/web/chunk-9jb5xwya.js +0 -36
- package/web/chunk-9jb5xwya.js.br +0 -0
- package/web/chunk-9jb5xwya.js.gz +0 -0
- package/web/chunk-9kf8arqg.js +0 -1
- package/web/chunk-9kf8arqg.js.br +0 -0
- package/web/chunk-9kf8arqg.js.gz +0 -0
- package/web/chunk-9msmea44.js +0 -70
- package/web/chunk-9msmea44.js.br +0 -0
- package/web/chunk-9msmea44.js.gz +0 -0
- package/web/chunk-a7q85665.js +0 -3
- package/web/chunk-a7q85665.js.br +0 -0
- package/web/chunk-a7q85665.js.gz +0 -0
- package/web/chunk-aan5qk6x.js +0 -1
- package/web/chunk-aan5qk6x.js.br +0 -0
- package/web/chunk-aan5qk6x.js.gz +0 -0
- package/web/chunk-b9cjgxr1.js +0 -98
- package/web/chunk-b9cjgxr1.js.br +0 -0
- package/web/chunk-b9cjgxr1.js.gz +0 -0
- package/web/chunk-baaattjv.js +0 -2
- package/web/chunk-baaattjv.js.br +0 -0
- package/web/chunk-baaattjv.js.gz +0 -0
- package/web/chunk-bj9m08f9.js +0 -1
- package/web/chunk-bj9m08f9.js.br +0 -0
- package/web/chunk-bj9m08f9.js.gz +0 -0
- package/web/chunk-bm4fvq6q.js +0 -89
- package/web/chunk-bm4fvq6q.js.br +0 -0
- package/web/chunk-bm4fvq6q.js.gz +0 -0
- package/web/chunk-c4g2k9wp.js +0 -1
- package/web/chunk-c4g2k9wp.js.br +0 -0
- package/web/chunk-c4g2k9wp.js.gz +0 -0
- package/web/chunk-cnptxet3.js +0 -2
- package/web/chunk-cnptxet3.js.br +0 -0
- package/web/chunk-cnptxet3.js.gz +0 -0
- package/web/chunk-d5n2yz4e.js +0 -2
- package/web/chunk-d5n2yz4e.js.br +0 -0
- package/web/chunk-d5n2yz4e.js.gz +0 -0
- package/web/chunk-db2jge7w.js +0 -291
- package/web/chunk-db2jge7w.js.br +0 -0
- package/web/chunk-db2jge7w.js.gz +0 -0
- package/web/chunk-dfv95z6w.js +0 -1
- package/web/chunk-dfv95z6w.js.br +0 -0
- package/web/chunk-dfv95z6w.js.gz +0 -0
- package/web/chunk-dsxjv5an.js +0 -1
- package/web/chunk-dsxjv5an.js.br +0 -0
- package/web/chunk-dsxjv5an.js.gz +0 -0
- package/web/chunk-e362x35y.js +0 -1
- package/web/chunk-e362x35y.js.br +0 -0
- package/web/chunk-e362x35y.js.gz +0 -0
- package/web/chunk-e6jfnajp.js +0 -55
- package/web/chunk-e6jfnajp.js.br +0 -0
- package/web/chunk-e6jfnajp.js.gz +0 -0
- package/web/chunk-en5n60qw.js +0 -2
- package/web/chunk-en5n60qw.js.br +0 -0
- package/web/chunk-en5n60qw.js.gz +0 -0
- package/web/chunk-ex34kdxk.js +0 -217
- package/web/chunk-ex34kdxk.js.br +0 -0
- package/web/chunk-ex34kdxk.js.gz +0 -0
- package/web/chunk-exa2z1b4.js +0 -1
- package/web/chunk-exa2z1b4.js.br +0 -0
- package/web/chunk-exa2z1b4.js.gz +0 -0
- package/web/chunk-f5wyg9zh.js +0 -2
- package/web/chunk-f5wyg9zh.js.br +0 -0
- package/web/chunk-f5wyg9zh.js.gz +0 -0
- package/web/chunk-fjvd2dx2.js +0 -2
- package/web/chunk-fjvd2dx2.js.br +0 -0
- package/web/chunk-fjvd2dx2.js.gz +0 -0
- package/web/chunk-fs39pqet.js +0 -2
- package/web/chunk-fs39pqet.js.br +0 -0
- package/web/chunk-fs39pqet.js.gz +0 -0
- package/web/chunk-gvndjaan.js +0 -2
- package/web/chunk-gvndjaan.js.br +0 -0
- package/web/chunk-gvndjaan.js.gz +0 -0
- package/web/chunk-h3618s7t.js +0 -4
- package/web/chunk-h3618s7t.js.br +0 -0
- package/web/chunk-h3618s7t.js.gz +0 -0
- package/web/chunk-hks91ztk.js +0 -8
- package/web/chunk-hks91ztk.js.br +0 -0
- package/web/chunk-hks91ztk.js.gz +0 -0
- package/web/chunk-hqd97ez8.js +0 -200
- package/web/chunk-hqd97ez8.js.br +0 -0
- package/web/chunk-hqd97ez8.js.gz +0 -0
- package/web/chunk-hta68vm8.js +0 -2
- package/web/chunk-hta68vm8.js.br +0 -0
- package/web/chunk-hta68vm8.js.gz +0 -0
- package/web/chunk-jcbvhp3h.js +0 -1
- package/web/chunk-jcbvhp3h.js.br +0 -0
- package/web/chunk-jcbvhp3h.js.gz +0 -0
- package/web/chunk-jw6e38cy.js +0 -1
- package/web/chunk-jw6e38cy.js.br +0 -0
- package/web/chunk-jw6e38cy.js.gz +0 -0
- package/web/chunk-jzp1qd92.js +0 -1
- package/web/chunk-jzp1qd92.js.br +0 -0
- package/web/chunk-jzp1qd92.js.gz +0 -0
- package/web/chunk-kg39a24q.js +0 -16
- package/web/chunk-kg39a24q.js.br +0 -0
- package/web/chunk-kg39a24q.js.gz +0 -0
- package/web/chunk-kj75rme3.js +0 -1
- package/web/chunk-kj75rme3.js.br +0 -0
- package/web/chunk-kj75rme3.js.gz +0 -0
- package/web/chunk-kvxmwmen.js +0 -1
- package/web/chunk-kvxmwmen.js.br +0 -0
- package/web/chunk-kvxmwmen.js.gz +0 -0
- package/web/chunk-kzdmsaet.js +0 -1
- package/web/chunk-kzdmsaet.js.br +0 -0
- package/web/chunk-kzdmsaet.js.gz +0 -0
- package/web/chunk-m203pzza.js +0 -89
- package/web/chunk-m203pzza.js.br +0 -0
- package/web/chunk-m203pzza.js.gz +0 -0
- package/web/chunk-m3xw41vq.js +0 -1
- package/web/chunk-m3xw41vq.js.br +0 -0
- package/web/chunk-m3xw41vq.js.gz +0 -0
- package/web/chunk-m8jcx13t.js +0 -30
- package/web/chunk-m8jcx13t.js.br +0 -0
- package/web/chunk-m8jcx13t.js.gz +0 -0
- package/web/chunk-mpgz1bj6.js +0 -1
- package/web/chunk-mpgz1bj6.js.br +0 -0
- package/web/chunk-mpgz1bj6.js.gz +0 -0
- package/web/chunk-mzagmpq5.js +0 -1
- package/web/chunk-mzagmpq5.js.br +0 -0
- package/web/chunk-mzagmpq5.js.gz +0 -0
- package/web/chunk-n51q6d6e.js +0 -1
- package/web/chunk-n51q6d6e.js.br +0 -0
- package/web/chunk-n51q6d6e.js.gz +0 -0
- package/web/chunk-nbf2zaaj.js +0 -1
- package/web/chunk-nbf2zaaj.js.br +0 -0
- package/web/chunk-nbf2zaaj.js.gz +0 -0
- package/web/chunk-ngsv0xfb.js +0 -1
- package/web/chunk-ngsv0xfb.js.br +0 -0
- package/web/chunk-ngsv0xfb.js.gz +0 -0
- package/web/chunk-nxd7dn08.js +0 -1
- package/web/chunk-nxd7dn08.js.br +0 -0
- package/web/chunk-nxd7dn08.js.gz +0 -0
- package/web/chunk-p44ezwgh.js +0 -1
- package/web/chunk-p44ezwgh.js.br +0 -0
- package/web/chunk-p44ezwgh.js.gz +0 -0
- package/web/chunk-pdg3bxc0.js +0 -2
- package/web/chunk-pdg3bxc0.js.br +0 -0
- package/web/chunk-pdg3bxc0.js.gz +0 -0
- package/web/chunk-pjbp0xwn.css +0 -1
- package/web/chunk-pjbp0xwn.css.br +0 -0
- package/web/chunk-pjbp0xwn.css.gz +0 -0
- package/web/chunk-pkbyh261.js +0 -1
- package/web/chunk-pkbyh261.js.br +0 -0
- package/web/chunk-pkbyh261.js.gz +0 -0
- package/web/chunk-q3q25jr9.js +0 -324
- package/web/chunk-q3q25jr9.js.br +0 -0
- package/web/chunk-q3q25jr9.js.gz +0 -0
- package/web/chunk-q5nr5wjn.js +0 -169
- package/web/chunk-q5nr5wjn.js.br +0 -0
- package/web/chunk-q5nr5wjn.js.gz +0 -0
- package/web/chunk-qd9y8r3g.js +0 -84
- package/web/chunk-qd9y8r3g.js.br +0 -0
- package/web/chunk-qd9y8r3g.js.gz +0 -0
- package/web/chunk-qm039dan.js +0 -24
- package/web/chunk-qm039dan.js.br +0 -0
- package/web/chunk-qm039dan.js.gz +0 -0
- package/web/chunk-qqp31fyy.js +0 -1
- package/web/chunk-qqp31fyy.js.br +0 -0
- package/web/chunk-qqp31fyy.js.gz +0 -0
- package/web/chunk-r76we294.js +0 -1
- package/web/chunk-r76we294.js.br +0 -0
- package/web/chunk-r76we294.js.gz +0 -0
- package/web/chunk-r7st369j.js +0 -1
- package/web/chunk-r7st369j.js.br +0 -0
- package/web/chunk-r7st369j.js.gz +0 -0
- package/web/chunk-rc3sv7v4.js +0 -1
- package/web/chunk-rc3sv7v4.js.br +0 -0
- package/web/chunk-rc3sv7v4.js.gz +0 -0
- package/web/chunk-rj1rp0tc.js +0 -1
- package/web/chunk-rj1rp0tc.js.br +0 -0
- package/web/chunk-rj1rp0tc.js.gz +0 -0
- package/web/chunk-rtk95qme.js +0 -1
- package/web/chunk-rtk95qme.js.br +0 -0
- package/web/chunk-rtk95qme.js.gz +0 -0
- package/web/chunk-s4rfkyqn.js +0 -12
- package/web/chunk-s4rfkyqn.js.br +0 -0
- package/web/chunk-s4rfkyqn.js.gz +0 -0
- package/web/chunk-s6a0gfv3.js +0 -34
- package/web/chunk-s6a0gfv3.js.br +0 -0
- package/web/chunk-s6a0gfv3.js.gz +0 -0
- package/web/chunk-s7rwbxr5.js +0 -2
- package/web/chunk-s7rwbxr5.js.br +0 -0
- package/web/chunk-s7rwbxr5.js.gz +0 -0
- package/web/chunk-s8f6v2nn.js +0 -1
- package/web/chunk-s8f6v2nn.js.br +0 -0
- package/web/chunk-s8f6v2nn.js.gz +0 -0
- package/web/chunk-sawc81kc.js +0 -303
- package/web/chunk-sawc81kc.js.br +0 -0
- package/web/chunk-sawc81kc.js.gz +0 -0
- package/web/chunk-sex2gevj.js +0 -2
- package/web/chunk-sex2gevj.js.br +0 -0
- package/web/chunk-sex2gevj.js.gz +0 -0
- package/web/chunk-smmdqmcy.js +0 -1
- package/web/chunk-smmdqmcy.js.br +0 -0
- package/web/chunk-smmdqmcy.js.gz +0 -0
- package/web/chunk-tn39vbcz.js +0 -2
- package/web/chunk-tn39vbcz.js.br +0 -0
- package/web/chunk-tn39vbcz.js.gz +0 -0
- package/web/chunk-tntwwpyh.js +0 -2
- package/web/chunk-tntwwpyh.js.br +0 -0
- package/web/chunk-tntwwpyh.js.gz +0 -0
- package/web/chunk-tpzyyc2z.js +0 -2
- package/web/chunk-tpzyyc2z.js.br +0 -0
- package/web/chunk-tpzyyc2z.js.gz +0 -0
- package/web/chunk-txhvq81f.js +0 -106
- package/web/chunk-txhvq81f.js.br +0 -0
- package/web/chunk-txhvq81f.js.gz +0 -0
- package/web/chunk-txtm71rz.js +0 -41
- package/web/chunk-txtm71rz.js.br +0 -0
- package/web/chunk-txtm71rz.js.gz +0 -0
- package/web/chunk-tykcqm6v.js +0 -2
- package/web/chunk-tykcqm6v.js.br +0 -0
- package/web/chunk-tykcqm6v.js.gz +0 -0
- package/web/chunk-tyrmd7j6.js +0 -1
- package/web/chunk-tyrmd7j6.js.br +0 -0
- package/web/chunk-tyrmd7j6.js.gz +0 -0
- package/web/chunk-v6ebn3sf.js +0 -38
- package/web/chunk-v6ebn3sf.js.br +0 -0
- package/web/chunk-v6ebn3sf.js.gz +0 -0
- package/web/chunk-vbx7t0h5.js +0 -214
- package/web/chunk-vbx7t0h5.js.br +0 -0
- package/web/chunk-vbx7t0h5.js.gz +0 -0
- package/web/chunk-vj3wz0a2.js +0 -1
- package/web/chunk-vj3wz0a2.js.br +0 -0
- package/web/chunk-vj3wz0a2.js.gz +0 -0
- package/web/chunk-vndrjeyr.js +0 -2
- package/web/chunk-vndrjeyr.js.br +0 -0
- package/web/chunk-vndrjeyr.js.gz +0 -0
- package/web/chunk-vqgkd7q8.js +0 -1
- package/web/chunk-vqgkd7q8.js.br +0 -0
- package/web/chunk-vqgkd7q8.js.gz +0 -0
- package/web/chunk-vvsfwjrg.js +0 -1
- package/web/chunk-vvsfwjrg.js.br +0 -0
- package/web/chunk-vvsfwjrg.js.gz +0 -0
- package/web/chunk-w0k63gap.js +0 -2
- package/web/chunk-w0k63gap.js.br +0 -0
- package/web/chunk-w0k63gap.js.gz +0 -0
- package/web/chunk-wafwgky9.js +0 -1
- package/web/chunk-wafwgky9.js.br +0 -0
- package/web/chunk-wafwgky9.js.gz +0 -0
- package/web/chunk-wdd9pasx.js +0 -1
- package/web/chunk-wdd9pasx.js.br +0 -0
- package/web/chunk-wdd9pasx.js.gz +0 -0
- package/web/chunk-wk89vrvf.js +0 -78
- package/web/chunk-wk89vrvf.js.br +0 -0
- package/web/chunk-wk89vrvf.js.gz +0 -0
- package/web/chunk-wqjn3yz1.js +0 -370
- package/web/chunk-wqjn3yz1.js.br +0 -0
- package/web/chunk-wqjn3yz1.js.gz +0 -0
- package/web/chunk-wrej9qt0.js +0 -2
- package/web/chunk-wrej9qt0.js.br +0 -0
- package/web/chunk-wrej9qt0.js.gz +0 -0
- package/web/chunk-xbjv549c.js +0 -2
- package/web/chunk-xbjv549c.js.br +0 -0
- package/web/chunk-xbjv549c.js.gz +0 -0
- package/web/chunk-xmp1ag6z.js +0 -2
- package/web/chunk-xmp1ag6z.js.br +0 -0
- package/web/chunk-xmp1ag6z.js.gz +0 -0
- package/web/chunk-xsqd38a2.js +0 -332
- package/web/chunk-xsqd38a2.js.br +0 -0
- package/web/chunk-xsqd38a2.js.gz +0 -0
- package/web/chunk-y2fbz356.js +0 -1
- package/web/chunk-y2fbz356.js.br +0 -0
- package/web/chunk-y2fbz356.js.gz +0 -0
- package/web/chunk-y48mj5d7.js +0 -1
- package/web/chunk-y48mj5d7.js.br +0 -0
- package/web/chunk-y48mj5d7.js.gz +0 -0
- package/web/chunk-yebmbyrj.js +0 -1
- package/web/chunk-yebmbyrj.js.br +0 -2
- package/web/chunk-yebmbyrj.js.gz +0 -0
- package/web/chunk-ypytxmn6.js +0 -24
- package/web/chunk-ypytxmn6.js.br +0 -0
- package/web/chunk-ypytxmn6.js.gz +0 -0
- package/web/chunk-z6jy8edk.js +0 -99
- package/web/chunk-z6jy8edk.js.br +0 -0
- package/web/chunk-z6jy8edk.js.gz +0 -0
- package/web/chunk-zg5n1hx4.js +0 -1
- package/web/chunk-zg5n1hx4.js.br +0 -0
- package/web/chunk-zg5n1hx4.js.gz +0 -0
- package/web/chunk-zmrd0bnc.js +0 -139
- package/web/chunk-zmrd0bnc.js.br +0 -0
- package/web/chunk-zmrd0bnc.js.gz +0 -0
- package/web/chunk-zqm6n89p.js +0 -7
- package/web/chunk-zqm6n89p.js.br +0 -0
- package/web/chunk-zqm6n89p.js.gz +0 -0
- package/web/chunk-zvat895r.js +0 -1
- package/web/chunk-zvat895r.js.br +0 -0
- package/web/chunk-zvat895r.js.gz +0 -0
- package/web/chunk-zxt17pcp.js +0 -1
- package/web/chunk-zxt17pcp.js.br +0 -0
- package/web/chunk-zxt17pcp.js.gz +0 -0
package/chunk-81s7mvf2.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Gi,jt,Rt,C,So,Vi}from"./chunk-6qavr39k.js";import{o,e,p,lr,qt,D,Se,I,es,Rn,ur}from"./chunk-x5vrtxkj.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 x(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=Rt.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 I(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 I(`path ${JSON.stringify(r)} is outside ${c}`)}async function be(a,r){let t=C.dirname(a),i=C.join(t,`.tmp-${process.pid}-${jt.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 k=Rt.promises,wt=Vi.promisify(Gi.execFile);async function _t(a){let{client:r,sessionId:t}=a;if(!r)return async()=>{};let i=D(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 k.rm(d,{recursive:!0,force:!0}),await k.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 k.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 k.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 So.promises.pipeline(So.Readable.fromWeb(a.body),Rt.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 k.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,A=await k.readdir(E).catch((M)=>{throw Z(M)==="ENOENT"?new p(Me):M});for(let M of A)await k.rename(C.join(E,M),C.join(r,M))}finally{await k.rm(t,{force:!0}),await k.rm(n,{force:!0}),await k.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 k.writeFile(n,s.join(`
|
|
4
|
-
`)+`
|
|
5
|
-
`,{flag:"wx",mode:384}),["-xf",r,"-C",t,"-X",n]}async function vt(a,r){let t=await k.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=Rt.promises,z=Rt.constants,Ue=448,kt=384,It=448,ke=z.O_NOFOLLOW??0,Nt=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(!Tt())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 Lt(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"?lr(t):t;this.requireUtf8(r,c),await Fe(this.rootPath,C.dirname(s)),await $t(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 xt(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&&Ct(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(Ft(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 Tt(){return ke!==0}async function Lt(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 $t(a,r,t){let i=t?It:kt,n=C.join(C.dirname(a),`.fs-${jt.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|Nt)}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 At(a){let r=jt.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 Dt(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 xt(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 Dt(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 Ct(a,r){return r.mtimeNs===a.mtimeNs&&r.ctimeNs===a.ctimeNs&&r.size===a.size}function Ft(a,r){return(a.mtimeNs>a.ctimeNs?a.mtimeNs:a.ctimeNs)<r-ce.timestampTrustMarginNs}var Pt=2000000000n,ce={hashFile:At,timestampTrustMarginNs:Pt,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,N,le,Q,fe,u,G,de,T,qe,he,ze,Ge,Re,Ne,He,Ke,Te,Ve,Xe,me,ue,Je,Ze,Wt=30000,K=".anthropic-memory-store",et=1;function Qe(a){return jt.createHash("sha256").update(`version ${et}
|
|
6
|
-
${a}`,"utf-8").digest("hex")}var Ut=30000,Bt=100,Yt=20,zt=16,Gt=32,Ht=8,Kt=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 Vt=(()=>{class a{constructor(r,t){w.add(this),N.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),T.set(this,[]),o(this,N,r,"f"),o(this,le,t.workdir,"f"),o(this,Q,t.syncIntervalMs??es,"f"),Rn(e(this,Q,"f"),"syncIntervalMs"),o(this,fe,t.syncDeletions??"enabled","f"),o(this,u,D(r),"f"),o(this,G,Date.now(),"f")}get roots(){return e(this,T,"f").map((r)=>r.files.root().path)}get readOnlyRoots(){return e(this,T,"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,T,"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,T,"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,T,"f").map((t)=>e(this,w,"m",Ge).call(this,t,r)))}async dispose(){for(let r of e(this,T,"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 N=new WeakMap,le=new WeakMap,Q=new WeakMap,fe=new WeakMap,u=new WeakMap,G=new WeakMap,de=new WeakMap,T=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(Ht,Math.min(Kt,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],A=t.baseline.get(m),M;if(E===void 0&&A!==void 0&&_!==void 0&&_.content_sha256===A&&!t.readOnly)M=await e(this,w,"m",Je).call(this,t,m,_,A,l);else M=await e(this,w,"m",He).call(this,t,m,_,E,f);if(M!==void 0)h.set(m,M)}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 Xt(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,N,"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(zt,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(Gt,i.length)},l))},me=async function*(t,i="basic"){let n=i==="basic"?Bt:Yt;for await(let s of e(this,N,"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=qt(c),f=s?await e(this,N,"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,N,"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<Ut)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,N,"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 Xt(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,v,ee,W,R,Le,ye,te,we,_e,U,j,V,B,re,L,rt,it,nt=102400,lt=120000,Jt=262144,Zt=65536,ot=Buffer.from(`
|
|
8
|
-
`),ie=102400,Qt=2000,er=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?Jt: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),fr(a),dr(a),mr(a),pr(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),v.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,v,"","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,v,"f").indexOf(s)<0){let{promise:E,resolve:A}=ur();o(this,R,{sentinel:s,resolve:A},"f");let M,se;try{await Promise.race([E,new Promise((ut,ge)=>{M=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(M)clearTimeout(M);if(se&&n)n.removeEventListener("abort",se);o(this,R,null,"f")}}let f=e(this,v,"f").indexOf(s);if(f<0)throw new p("bash session terminated");let d=e(this,v,"f").slice(f+s.length).match(/^(-?\d+)/),m=d?parseInt(d[1],10):-1,_=e(this,v,"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,v=new WeakMap,ee=new WeakMap,W=new WeakMap,R=new WeakMap,pe=new WeakSet,Le=function(t){if(o(this,v,e(this,v,"f")+t,"f"),e(this,v,"f").length>nt)o(this,v,e(this,v,"f").slice(e(this,v,"f").length-nt),"f"),o(this,ee,!0,"f");if(e(this,R,"f")&&e(this,v,"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 x({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=ur();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 I("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 I(h||`exit ${d}`);return h}catch(h){if(h instanceof I)throw h;throw r.close(),r=void 0,new I(`bash: ${h instanceof Error?h.message:String(h)}`)}}finally{f.resolve()}},close:()=>{r?.close(),r=void 0}})}function sr(a){return Y(a.unrestrictedPaths),x({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 I("read: file_path is required");let i=await oe(a,r);if(t?.length&&t.length!==2)throw new I("read: view_range must be [start_line, end_line]");let n;try{let d=await S.stat(i);if(!d.isFile())throw new I(`read: ${r} is not a regular file`);let m=dt(a.maxFileBytes);if(m!==null&&d.size>m){if(!t?.length)throw new I(`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 I)throw d;throw new I(`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:Zt});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,[]),L.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,L,"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,L=new WeakMap,ye=new WeakSet,rt=function(t,i){if(e(this,re,"f").push(t),o(this,L,e(this,L,"f")+t.length,"f"),i&&e(this,B,"f")+1<e(this,j,"f"))e(this,re,"f").push(ot),o(this,L,e(this,L,"f")+ot.length,"f");if(e(this,L,"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 I(`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 I(`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 fr(a){return Y(a.unrestrictedPaths),x({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 I("write: file_path is required");let i=await oe(a,r),n=await ht(a,i);if(n!==void 0)throw new I(`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 I(`write: ${q(s,r)}`)}return`wrote ${Buffer.byteLength(t??"")} bytes to ${r}`}})}function dr(a){return Y(a.unrestrictedPaths),x({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 I("edit: file_path is required");if(!t)throw new I("edit: old_string is required");let s=await oe(a,r),c=await ht(a,s);if(c!==void 0)throw new I(`edit: ${r} is inside read-only directory ${c}`);let l;try{let d=await S.stat(s);if(!d.isFile())throw new I(`edit: ${r} is not a regular file`);let m=dt(a.maxFileBytes);if(m!==null&&d.size>m)throw new I(`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 I)throw d;throw new I(`edit: ${q(d,r)}`)}let f=l.split(t).length-1;if(f===0)throw new I(`edit: old_string not found in ${r}`);let h;if(n)h=l.split(t).join(i);else{if(f>1)throw new I(`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 I(`edit: write: ${q(d,r)}`)}return`edited ${r} (${n?f:1} replacement(s))`}})}function hr(a){return a.split(/[\\/{},]/).includes("..")}function mr(a){return Y(a.unrestrictedPaths),x({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 I("glob: pattern is required");if(O.isAbsolute(r))throw new I("glob: absolute pattern not permitted; pass a relative pattern (and optionally path)");if(hr(r))throw new I('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 I(`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,er).map((l)=>l.path).join(`
|
|
14
|
-
`)}})}function pr(a){return Y(a.unrestrictedPaths),x({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 I("grep: pattern is required");let n=O.resolve(a.workdir);if(t)n=await oe(a,t);let s=await Sr();return s?yr(s,r,n,i?.signal):wr(r,n,i?.signal)}})}function yr(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 I("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 I(`grep: rg failed: ${f||`exit ${d}`}`))}),c.on("error",(d)=>{if(i?.aborted)return s(new I("grep: aborted"));s(new I(`grep: rg failed: ${d.message}`))})})}async function wr(a,r,t){let i;try{i=new RegExp(a)}catch(f){throw new I(`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 gr(r,"",(f)=>st(O.join(r,f),i,c),t);if(t?.aborted)throw new I("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>Qt)continue;if(r.test(c)&&!t(`${a}:${s}:${c}`))return!1}}catch{}finally{i.destroy()}return!0}var _r=40,mt=50000;async function gr(a,r,t,i){let n=mt;async function s(c,l){if(l>_r)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 Sr(){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{Wt as MEMORY_FLUSH_TIMEOUT_MS,P as SessionMemoryError,Vt as SessionMemoryStores,Vr as betaAgentToolset20260401,_t as setupSkills};
|
package/chunk-8j8acxde.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{nn,tr,Tr,kr,Pr,Cr,on,sn,rr,an,ln,cn,un,pn,dn}from"./chunk-04326385.js";import{E}from"./chunk-vnv3a6t2.js";import{ce}from"./chunk-54zpktrq.js";import{Q,ee}from"./chunk-fgpzy3fe.js";import{te}from"./chunk-4a5xttdp.js";import{v}from"./chunk-fsekbhqb.js";import{ke}from"./chunk-9nkb5q43.js";import{G,ve,me,Ke,ne,Y}from"./chunk-fc41dvhp.js";import{W}from"./chunk-vrsh8cx1.js";var T="v1",O="gcp-vertex-credentials",R=0,C=(e,o,t)=>{let i=new W,u=Ke(o);return(async()=>{let n={role:"assistant",content:[],api:"google-vertex",provider:e.provider,model:e.id,usage:{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},stopReason:"pending",timestamp:Date.now()};try{if(t?.fetch&&t.fetch!==globalThis.fetch)throw Error("Custom fetch is not supported by the Google Vertex adapter");let c=A(t),g=c?S(e,c,t?.headers):I(e,P(t),U(t),t?.headers,t?.env),h=D(e,u,t),m=await t?.onPayload?.(h,e);if(m!==void 0)h=m;let p=await 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=sn(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=rr(r.thinkingSignature,a.thoughtSignature),i.push({type:"thinking_delta",contentIndex:l(),delta:a.text,partial:n});else r.text+=a.text,r.textSignature=rr(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=pn(k.finishReason),n.content.some((a)=>a.type==="toolCall")&&n.stopReason==="stop")n.stopReason="toolUse"}if(s.usageMetadata)n.usage={input:(s.usageMetadata.promptTokenCount||0)-(s.usageMetadata.cachedContentTokenCount||0),output:(s.usageMetadata.candidatesTokenCount||0)+(s.usageMetadata.thoughtsTokenCount||0),cacheRead:s.usageMetadata.cachedContentTokenCount||0,cacheWrite:0,reasoning:s.usageMetadata.thoughtsTokenCount||0,totalTokens:s.usageMetadata.totalTokenCount||0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},ne(e,n.usage)}if(r)if(r.type==="text")i.push({type:"text_end",contentIndex:l(),content:r.text,partial:n});else i.push({type:"thinking_end",contentIndex:l(),content:r.thinking,partial:n});if(t?.signal?.aborted)throw Error("Request was aborted");if(n.stopReason==="pending")throw Error("Google Vertex stream ended without a finish reason");if(n.stopReason==="aborted"||n.stopReason==="error"){let s=n.rawStopReason?`Provider stopped with: ${n.rawStopReason}`:"An unknown error occurred";throw Error(s)}i.push({type:"done",reason:n.stopReason,message:n}),i.end()}catch(c){for(let g of n.content)if("index"in g)delete g.index;n.stopReason=t?.signal?.aborted?"aborted":"error",n.errorMessage=ee(Q(c)),i.push({type:"error",reason:n.stopReason,error:n}),i.end()}})(),i},ae=(e,o,t)=>{let i={...te(e,o,t,void 0),toolChoice:t?.toolChoice};if(!t?.reasoning)return C(e,o,{...i,thinking:{enabled:!1}});let u=Y(e,t.reasoning);if(u==="off")return C(e,o,{...i,thinking:{enabled:!1}});let n=Tr(e,u);if(kr(e))return C(e,o,{...i,thinking:{enabled:!0,level:Pr(n)}});return C(e,o,{...i,thinking:{enabled:!0,budgetTokens:V(e,n,t.thinkingBudgets)}})};function I(e,o,t,i,u){let n=L(u);return new tr({vertexai:!0,project:o,location:t,apiVersion:T,...n?{googleAuthOptions:n}:{},httpOptions:b(e,i)})}function S(e,o,t){return new tr({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=nn.COLLECTION,_(i))t.apiVersion=""}let u=ke({"User-Agent":ce(),...e.headers,...o});if(u)t.headers=u;return Object.keys(t).length>0?t:void 0}function w(e){let o=e.trim();if(!o||o.includes("{location}"))return;return o}function _(e){try{return new URL(e).pathname.split("/").some((t)=>/^v\d+(?:beta\d*)?$/.test(t))}catch{return/(?:^|\/)v\d+(?:beta\d*)?(?:\/|$)/.test(e)}}function L(e){let o=E("GOOGLE_APPLICATION_CREDENTIALS",e);return o?{keyFilename:o}:void 0}function A(e){let o=e?.apiKey?.trim();if(!o||o===O||M(o))return;return o}function M(e){return/^<[^>]+>$/.test(e)}function P(e){let o=e?.project||E("GOOGLE_CLOUD_PROJECT",e?.env)||E("GCLOUD_PROJECT",e?.env);if(!o)throw Error("Vertex AI requires a project ID. Set GOOGLE_CLOUD_PROJECT/GCLOUD_PROJECT or pass project in options.");return o}function U(e){let o=e?.location||E("GOOGLE_CLOUD_LOCATION",e?.env);if(!o)throw Error("Vertex AI requires a location. Set GOOGLE_CLOUD_LOCATION or pass location in options.");return o}function D(e,o,t={}){let i=an(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=cn(e.id),h=n.length>0?un(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:ln(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=Cr(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=on(e);if(t.signal){if(t.signal.aborted)throw Error("Request aborted");p.abortSignal=t.signal}return{model:e.id,contents:i,config:p}}function V(e,o,t){if(t?.[o]!==void 0)return t[o];if(e.id.includes("2.5-pro"))return{minimal:128,low:2048,medium:8192,high:32768}[o];if(e.id.includes("2.5-flash"))return{minimal:128,low:2048,medium:8192,high:24576}[o];return-1}export{C as stream,ae as streamSimple};
|
package/chunk-9nfz04yr.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Rs,tt,Pt}from"./chunk-se548edt.js";import{rt}from"./chunk-jsvr3s4q.js";import{ct,Ue,H}from"./chunk-w6m8c4vf.js";import{Me,oe,_,Oe,ie,wt,K}from"./chunk-erxka5vh.js";import{r}from"./chunk-nmvayfq3.js";var Se=r(function(Dt){var{SignatureV4:kt,signatureV4aContainer:de}=Rs(),O={CrtSignerV4:null},ge="X-Amz-S3session-Token".toLowerCase();class J extends kt{async signWithCredentials(e,t,s){let o=pe(t);e.headers[ge]=t.sessionToken;let n=this;return he(n,o),n.signRequest(e,s??{})}async presignWithCredentials(e,t,s){let o=pe(t);return delete e.headers[ge],e.headers["X-Amz-S3session-Token"]=t.sessionToken,e.query=e.query??{},e.query["X-Amz-S3session-Token"]=t.sessionToken,he(this,o),this.presign(e,s)}}function pe(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function he(e,t){let s=e.credentialProvider;e.credentialProvider=()=>(e.credentialProvider=s,Promise.resolve(t))}class me{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof O.CrtSignerV4==="function")return"crt";else if(typeof de.SignatureV4a==="function")return"js";return"none"}constructor(e){this.sigv4Signer=new J(e),this.signerOptions=e}async sign(e,t={}){if(t.signingRegion==="*")return this.getSigv4aSigner().sign(e,t);return this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,s={}){if(s.signingRegion==="*"){let o=this.getSigv4aSigner(),n=O.CrtSignerV4;if(n&&o instanceof n)return o.signWithCredentials(e,t,s);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,s)}async presign(e,t={}){if(t.signingRegion==="*"){let s=this.getSigv4aSigner(),o=O.CrtSignerV4;if(o&&s instanceof o)return s.presign(e,t);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,s={}){if(s.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,t,s)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=O.CrtSignerV4,t=de.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!t)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e==="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==="function")this.sigv4aSigner=new t({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!t||typeof t!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}}Dt.SignatureV4MultiRegion=me;Dt.SignatureV4SignWithCredentials=J;Dt.signatureV4CrtContainer=O});var{awsEndpointFunctions:Nt,emitWarningIfUnsupportedVersion:Wt,createDefaultUserAgentProvider:Ht,NODE_APP_ID_CONFIG_OPTIONS:Ut,getAwsRegionExtensionConfiguration:qt,resolveAwsRegionExtensionConfiguration:Ft,resolveUserAgentConfig:Vt,resolveHostHeaderConfig:Lt,getUserAgentPlugin:Kt,getHostHeaderPlugin:Mt,getLoggerPlugin:jt,getRecursionDetectionPlugin:zt,setCredentialFeature:ee,stsRegionDefaultResolver:Gt}=H(),{NoAuthSigner:Re,getHttpAuthSchemeEndpointRuleSetPlugin:Yt,DefaultIdentityProviderConfig:Qt,getHttpSigningPlugin:Bt}=Ue(),{normalizeProvider:Ce,getSmithyContext:_e,ServiceException:Jt,NoOpLogger:Xt,emitWarningIfUnsupportedVersion:Zt,loadConfigsForDefaultMode:es,getDefaultExtensionConfiguration:ts,resolveDefaultRuntimeConfig:ss,Client:xe,makeBuilder:ns,createAggregatedClient:os}=oe(),{Command:rs}=oe();var ao=rs,co=xe;var{resolveDefaultsModeConfig:is,loadConfig:y,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:as,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:cs,NODE_REGION_CONFIG_OPTIONS:us,NODE_REGION_CONFIG_FILE_OPTIONS:ls,resolveRegionConfig:ds}=_(),{BinaryDecisionDiagram:gs,EndpointCache:ps,decideEndpoint:hs,customEndpointFunctions:ms,resolveParams:Ss,resolveEndpointConfig:vs,getEndpointPlugin:fs}=Oe(),{parseUrl:Ps,getHttpHandlerExtensionConfiguration:ys,resolveHttpHandlerRuntimeConfig:Es,getContentLengthPlugin:As}=K(),{DEFAULT_RETRY_MODE:Is,NODE_RETRY_MODE_CONFIG_OPTIONS:ws,NODE_MAX_ATTEMPT_CONFIG_OPTIONS:Cs,resolveRetryConfig:_s,getRetryPlugin:xs}=ct(),{TypeRegistry:Te,getSchemaSerdePlugin:Ts}=Me(),{resolveAwsSdkSigV4Config:ks,resolveAwsSdkSigV4AConfig:Ds,AwsSdkSigV4Signer:ke,AwsSdkSigV4ASigner:De,NODE_SIGV4A_CONFIG_OPTIONS:bs,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:Os}=tt(),{SignatureV4MultiRegion:be}=Se(),{toUtf8:$s,fromUtf8:Ns,toBase64:Ws,fromBase64:Hs,calculateBodyLength:Us}=ie(),{streamCollector:qs,NodeHttpHandler:Fs}=rt(),{AwsQueryProtocol:Vs}=Pt(),{Sha256:Ls}=wt(),b="ref",I=-1,N=!0,ve="isSet",$e="PartitionResult",W="booleanEquals",l="stringEquals",X="getAttr",fe="us-east-1",Pe="sigv4",ye="sts",Ee="https://sts.{Region}.{PartitionResult#dnsSuffix}",Ae={[b]:"Endpoint"},d={[b]:"Region"},Z={[b]:$e},D={},Ie=[d],we={conditions:[[ve,[Ae]],[ve,Ie],["aws.partition",Ie,$e],[W,[{[b]:"UseFIPS"},N]],[W,[{[b]:"UseDualStack"},N]],[l,[d,"aws-global"]],[W,[{[b]:"UseGlobalEndpoint"},N]],[l,[d,"eu-central-1"]],[W,[{fn:X,argv:[Z,"supportsDualStack"]},N]],[W,[{fn:X,argv:[Z,"supportsFIPS"]},N]],[l,[d,"ap-south-1"]],[l,[d,"eu-north-1"]],[l,[d,"eu-west-1"]],[l,[d,"eu-west-2"]],[l,[d,"eu-west-3"]],[l,[d,"sa-east-1"]],[l,[d,fe]],[l,[d,"us-east-2"]],[l,[d,"us-west-2"]],[l,[d,"us-west-1"]],[l,[d,"ca-central-1"]],[l,[d,"ap-southeast-1"]],[l,[d,"ap-northeast-1"]],[l,[d,"ap-southeast-2"]],[l,[{fn:X,argv:[Z,"name"]},"aws-us-gov"]]],results:[[I],["https://sts.amazonaws.com",{authSchemes:[{name:Pe,signingName:ye,signingRegion:fe}]}],[Ee,{authSchemes:[{name:Pe,signingName:ye,signingRegion:"{Region}"}]}],[I,"Invalid Configuration: FIPS and custom endpoint are not supported"],[I,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Ae,D],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",D],[I,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",D],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",D],[I,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",D],[I,"DualStack is enabled but this partition does not support DualStack"],[Ee,D],[I,"Invalid Configuration: Missing Region"]]},Ks=2,i=1e8,Ms=new Int32Array([-1,1,-1,0,30,3,1,4,i+14,2,5,i+14,3,25,6,4,24,7,5,i+1,8,6,9,i+13,7,i+1,10,10,i+1,11,11,i+1,12,12,i+1,13,13,i+1,14,14,i+1,15,15,i+1,16,16,i+1,17,17,i+1,18,18,i+1,19,19,i+1,20,20,i+1,21,21,i+1,22,22,i+1,23,23,i+1,i+2,8,i+11,i+12,4,28,26,9,27,i+10,24,i+8,i+9,8,29,i+7,9,i+6,i+7,3,i+3,31,4,i+4,i+5]),js=gs.from(Ms,Ks,we.conditions,we.results),zs=new ps({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),Ne=(e,t={})=>zs.get(e,()=>hs(js,{endpointParams:e,logger:t.logger}));ms.aws=Nt;var Gs=(e)=>async(t,s,o)=>{if(!o)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let n=await e(t,s,o),u=_e(s)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!u)throw Error(`getEndpointParameterInstructions() is not defined on '${s.commandName}'`);let a=await Ss(o,{getEndpointParameterInstructions:u},t);return Object.assign(n,a)},Ys=async(e,t,s)=>({operation:_e(t).operation,region:await Ce(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),Qs=Gs(Ys);function We(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,s)=>({signingProperties:{config:t,context:s}})}}function te(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,s)=>({signingProperties:{config:t,context:s}})}}function He(e){return{schemeId:"smithy.api#noAuth"}}var Bs=(e,t,s)=>(n)=>{let a=e(n).properties?.authSchemes;if(!a)return t(n);let g=[];for(let S of a){let{name:p,properties:v={},...A}=S,f=p.toLowerCase();if(p!==f)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${p}' to '${f}'`);let m;if(f==="sigv4a"){m="aws.auth#sigv4a";let Q=a.find((B)=>{let le=B.name.toLowerCase();return le!=="sigv4a"&&le.startsWith("sigv4")});if(be.sigv4aDependency()==="none"&&Q)continue}else if(f.startsWith("sigv4"))m="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${f}'`);let k=s[m];if(!k)throw Error(`Could not find HttpAuthOption create function for '${m}'`);let P=k(n);P.schemeId=m,P.signingProperties={...P.signingProperties||{},...A,...v},g.push(P)}return g},Js=(e)=>{let t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(He()),t.push(te(e));break}default:t.push(We(e)),t.push(te(e))}return t},Xs=Bs(Ne,Js,{"aws.auth#sigv4":We,"aws.auth#sigv4a":te,"smithy.api#noAuth":He}),Zs=(e)=>{let t=ks(e),s=Ds(t);return Object.assign(s,{authSchemePreference:Ce(e.authSchemePreference??[])})},en=(e)=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"}),tn={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},sn="3.997.47",nn={version:sn};class h extends Jt{static shapeId="smithy.ts.sdk.synthetic.com.amazonaws.sts#STSServiceException";constructor(e){super(e);Object.setPrototypeOf(this,h.prototype)}}class q extends h{static shapeId="com.amazonaws.sts#ExpiredTokenException";name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,q.prototype)}}class F extends h{static shapeId="com.amazonaws.sts#MalformedPolicyDocumentException";name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});Object.setPrototypeOf(this,F.prototype)}}class V extends h{static shapeId="com.amazonaws.sts#PackedPolicyTooLargeException";name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});Object.setPrototypeOf(this,V.prototype)}}class L extends h{static shapeId="com.amazonaws.sts#RegionDisabledException";name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});Object.setPrototypeOf(this,L.prototype)}}class M extends h{static shapeId="com.amazonaws.sts#IDPRejectedClaimException";name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});Object.setPrototypeOf(this,M.prototype)}}class j extends h{static shapeId="com.amazonaws.sts#InvalidIdentityTokenException";name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});Object.setPrototypeOf(this,j.prototype)}}class z extends h{static shapeId="com.amazonaws.sts#IDPCommunicationErrorException";name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});Object.setPrototypeOf(this,z.prototype)}}var on="Arn",rn="AccessKeyId",an="AssumeRole",cn="AssumedRoleId",un="AssumeRoleRequest",ln="AssumeRoleResponse",se="AssumedRoleUser",dn="AssumeRoleWithWebIdentity",gn="AssumeRoleWithWebIdentityRequest",pn="AssumeRoleWithWebIdentityResponse",hn="Audience",ne="Credentials",mn="ContextAssertion",qe="DurationSeconds",Sn="Expiration",vn="ExternalId",fn="ExpiredTokenException",Pn="IDPCommunicationErrorException",yn="IDPRejectedClaimException",En="InvalidIdentityTokenException",An="Key",In="MalformedPolicyDocumentException",Fe="MinimumSessionTokenSize",Ve="Policy",Le="PolicyArns",wn="ProviderArn",Rn="ProvidedContexts",Cn="ProvidedContextsListType",_n="ProvidedContext",xn="PolicyDescriptorType",Tn="ProviderId",Ke="PackedPolicySize",kn="PackedPolicyTooLargeException",Dn="Provider",je="RoleArn",bn="RegionDisabledException",ze="RoleSessionName",On="SecretAccessKey",$n="SubjectFromWebIdentityToken",re="SourceIdentity",Nn="SerialNumber",Wn="SessionToken",Ge="SessionTokenSize",Ye="SessionTokenUtilization",Hn="Tags",Un="TokenCode",qn="TransitiveTagKeys",Fn="Tag",Vn="Value",Ln="WebIdentityToken",Kn="arn",Mn="accessKeySecretType",w="awsQueryError",R="client",jn="clientTokenType",C="error",x="httpError",T="message",zn="policyDescriptorListType",Qe="smithy.ts.sdk.synthetic.com.amazonaws.sts",Gn="tagListType",c="com.amazonaws.sts",Be=new Te(Qe),Je=[-3,Qe,"STSServiceException",0,[],[]];Be.registerError(Je,h);var E=new Te(c),Xe=[-3,c,fn,{[w]:["ExpiredTokenException",400],[C]:R,[x]:400},[T],[0]];E.registerError(Xe,q);var Ze=[-3,c,Pn,{[w]:["IDPCommunicationError",400],[C]:R,[x]:400},[T],[0]];E.registerError(Ze,z);var et=[-3,c,yn,{[w]:["IDPRejectedClaim",403],[C]:R,[x]:403},[T],[0]];E.registerError(et,M);var st=[-3,c,En,{[w]:["InvalidIdentityToken",400],[C]:R,[x]:400},[T],[0]];E.registerError(st,j);var nt=[-3,c,In,{[w]:["MalformedPolicyDocument",400],[C]:R,[x]:400},[T],[0]];E.registerError(nt,F);var ot=[-3,c,kn,{[w]:["PackedPolicyTooLarge",400],[C]:R,[x]:400},[T],[0]];E.registerError(ot,V);var it=[-3,c,bn,{[w]:["RegionDisabledException",403],[C]:R,[x]:403},[T],[0]];E.registerError(it,L);var at=[Be,E],Yn=[0,c,Mn,8,0],Qn=[0,c,jn,8,0],ae=[3,c,se,0,[cn,on],[0,0],2],ut=[3,c,un,0,[je,ze,Le,Ve,qe,Hn,qn,vn,Nn,Un,re,Rn,Fe],[0,0,()=>St,0,1,()=>Jn,64,0,0,0,0,()=>Bn,1],2],lt=[3,c,ln,0,[ne,se,Ke,re,Ye,Ge],[[()=>ce,0],()=>ae,1,0,1,1]],dt=[3,c,gn,0,[je,ze,Ln,Tn,Le,Ve,qe,Fe],[0,0,[()=>Qn,0],0,()=>St,0,1,1],3],gt=[3,c,pn,0,[ne,$n,se,Ke,Dn,hn,re,Ye,Ge],[[()=>ce,0],0,()=>ae,1,0,0,0,1,1]],ce=[3,c,ne,0,[rn,On,Wn,Sn],[0,[()=>Yn,0],0,4],4],pt=[3,c,xn,0,[Kn],[0]],ht=[3,c,_n,0,[wn,mn],[0,0]],mt=[3,c,Fn,0,[An,Vn],[0,0],2],St=[1,c,zn,0,()=>pt],Bn=[1,c,Cn,0,()=>ht],Jn=[1,c,Gn,0,()=>mt],vt=[9,c,an,0,()=>ut,()=>lt],ft=[9,c,dn,0,()=>dt,()=>gt],Xn=(e)=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??Hs,base64Encoder:e?.base64Encoder??Ws,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Ne,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Xs,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new ke},{schemeId:"aws.auth#sigv4a",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new De},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Re}],logger:e?.logger??new Xt,protocol:e?.protocol??Vs,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:at,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",sha256:e?.sha256??Ls,signerConstructor:e?.signerConstructor??be,urlParser:e?.urlParser??Ps,utf8Decoder:e?.utf8Decoder??Ns,utf8Encoder:e?.utf8Encoder??$s}),Zn=(e)=>{Zt(process.version);let t=is(e),s=()=>t().then(es),o=Xn(e);Wt(process.version);let n={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??y(Os,n),bodyLengthChecker:e?.bodyLengthChecker??Us,defaultUserAgentProvider:e?.defaultUserAgentProvider??Ht({serviceId:o.serviceId,clientVersion:nn.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(u)=>u.getIdentityProvider("aws.auth#sigv4")||(async(a)=>await e.credentialDefaultProvider(a?.__config||{})()),signer:new ke},{schemeId:"aws.auth#sigv4a",identityProvider:(u)=>u.getIdentityProvider("aws.auth#sigv4a"),signer:new De},{schemeId:"smithy.api#noAuth",identityProvider:(u)=>u.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Re}],maxAttempts:e?.maxAttempts??y(Cs,e),region:e?.region??y(us,{...ls,...n}),requestHandler:Fs.create(e?.requestHandler??s),retryMode:e?.retryMode??y({...ws,default:async()=>(await s()).retryMode||Is},e),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??y(bs,n),streamCollector:e?.streamCollector??qs,useDualstackEndpoint:e?.useDualstackEndpoint??y(cs,n),useFipsEndpoint:e?.useFipsEndpoint??y(as,n),userAgentAppId:e?.userAgentAppId??y(Ut,n)}},eo=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:s,credentials:o}=e;return{setHttpAuthScheme(n){let u=t.findIndex((a)=>a.schemeId===n.schemeId);if(u===-1)t.push(n);else t.splice(u,1,n)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(n){s=n},httpAuthSchemeProvider(){return s},setCredentials(n){o=n},credentials(){return o}}},to=(e)=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),so=(e,t)=>{let s=Object.assign(qt(e),ts(e),ys(e),eo(e));return t.forEach((o)=>o.configure(s)),Object.assign(e,Ft(s),ss(s),Es(s),to(s))};class U extends xe{config;constructor(...[e]){let t=Zn(e||{});super(t);this.initConfig=t;let s=en(t),o=Vt(s),n=_s(o),u=ds(n),a=Lt(u),g=vs(a),S=Zs(g),p=so(S,e?.extensions||[]);this.config=p,this.middlewareStack.use(Ts(this.config)),this.middlewareStack.use(Kt(this.config)),this.middlewareStack.use(xs(this.config)),this.middlewareStack.use(As(this.config)),this.middlewareStack.use(Mt(this.config)),this.middlewareStack.use(jt(this.config)),this.middlewareStack.use(zt(this.config)),this.middlewareStack.use(Yt(this.config,{httpAuthSchemeParametersProvider:Qs,identityProviderConfigProvider:async(v)=>new Qt({"aws.auth#sigv4":v.credentials,"aws.auth#sigv4a":v.credentials})})),this.middlewareStack.use(Bt(this.config))}destroy(){super.destroy()}}var yt=ns(tn,"AWSSecurityTokenServiceV20110615","STSClient",fs),Et={},At=(e,t,s,o)=>[];class G extends yt(Et,At,"AssumeRole",vt){}class Y extends yt(Et,At,"AssumeRoleWithWebIdentity",ft){}var no={AssumeRoleCommand:G,AssumeRoleWithWebIdentityCommand:Y};class ue extends U{}os(no,ue);var It=(e)=>{if(typeof e?.Arn==="string"){let t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}return},Rt=async(e,t,s,o={})=>{let n=typeof e==="function"?await e():e,u=typeof t==="function"?await t():t,a="",g=n??u??(a=await Gt(o)());return s?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${n} (credential provider clientConfig)`,`${u} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),g},oo=(e,t)=>{let s,o;return async(n,u)=>{if(o=n,!s){let{logger:v=e?.parentClientConfig?.logger,profile:A=e?.parentClientConfig?.profile,region:f,requestHandler:m=e?.parentClientConfig?.requestHandler,credentialProviderLogger:k,userAgentAppId:P=e?.parentClientConfig?.userAgentAppId}=e,Q=await Rt(f,e?.parentClientConfig?.region,k,{logger:v,profile:A}),B=!Ct(m);s=new t({...e,userAgentAppId:P,profile:A,credentialDefaultProvider:()=>async()=>o,region:Q,requestHandler:B?m:void 0,logger:v})}let{Credentials:a,AssumedRoleUser:g}=await s.send(new G(u));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${u.RoleArn}`);let S=It(g),p={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...S&&{accountId:S}};return ee(p,"CREDENTIALS_STS_ASSUME_ROLE","i"),p}},ro=(e,t)=>{let s;return async(o)=>{if(!s){let{logger:S=e?.parentClientConfig?.logger,profile:p=e?.parentClientConfig?.profile,region:v,requestHandler:A=e?.parentClientConfig?.requestHandler,credentialProviderLogger:f,userAgentAppId:m=e?.parentClientConfig?.userAgentAppId}=e,k=await Rt(v,e?.parentClientConfig?.region,f,{logger:S,profile:p}),P=!Ct(A);s=new t({...e,userAgentAppId:m,profile:p,region:k,requestHandler:P?A:void 0,logger:S})}let{Credentials:n,AssumedRoleUser:u}=await s.send(new Y(o));if(!n||!n.AccessKeyId||!n.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${o.RoleArn}`);let a=It(u),g={accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,sessionToken:n.SessionToken,expiration:n.Expiration,...n.CredentialScope&&{credentialScope:n.CredentialScope},...a&&{accountId:a}};if(a)ee(g,"RESOLVED_ACCOUNT_ID","T");return ee(g,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),g}},Ct=(e)=>e?.metadata?.handlerProtocol==="h2",_t=(e,t)=>{if(!t)return e;else return class extends e{constructor(o){super(o);for(let n of t)this.middlewareStack.use(n)}}},xt=(e={},t)=>oo(e,_t(U,t)),Tt=(e={},t)=>ro(e,_t(U,t)),io=(e)=>(t)=>e({roleAssumer:xt(t),roleAssumerWithWebIdentity:Tt(t),...t});var uo=vt,lo=G,go=ut,po=lt,ho=ft,mo=Y,So=dt,vo=gt,fo=ae,Po=ce,yo=q,Eo=Xe,Ao=z,Io=Ze,wo=M,Ro=et,Co=j,_o=st,xo=F,To=nt,ko=V,Do=ot,bo=pt,Oo=ht,$o=L,No=it,Wo=ue,Ho=U,Uo=h,qo=Je,Fo=mt,Vo=io,Lo=at,Ko=xt,Mo=Tt;export{ao as $Command,co as __Client,uo as AssumeRole$,lo as AssumeRoleCommand,go as AssumeRoleRequest$,po as AssumeRoleResponse$,ho as AssumeRoleWithWebIdentity$,mo as AssumeRoleWithWebIdentityCommand,So as AssumeRoleWithWebIdentityRequest$,vo as AssumeRoleWithWebIdentityResponse$,fo as AssumedRoleUser$,Po as Credentials$,yo as ExpiredTokenException,Eo as ExpiredTokenException$,Ao as IDPCommunicationErrorException,Io as IDPCommunicationErrorException$,wo as IDPRejectedClaimException,Ro as IDPRejectedClaimException$,Co as InvalidIdentityTokenException,_o as InvalidIdentityTokenException$,xo as MalformedPolicyDocumentException,To as MalformedPolicyDocumentException$,ko as PackedPolicyTooLargeException,Do as PackedPolicyTooLargeException$,bo as PolicyDescriptorType$,Oo as ProvidedContext$,$o as RegionDisabledException,No as RegionDisabledException$,Wo as STS,Ho as STSClient,Uo as STSServiceException,qo as STSServiceException$,Fo as Tag$,Vo as decorateDefaultCredentialProvider,Lo as errorTypeRegistries,Ko as getDefaultRoleAssumer,Mo as getDefaultRoleAssumerWithWebIdentity};
|
package/chunk-9vth0w8q.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Tn,za,Qs,_o,kn,Wt,Eo}from"./chunk-jqtdf0ym.js";import"./chunk-ykzm5g1b.js";import"./chunk-vnv3a6t2.js";import"./chunk-n3hfhbe4.js";import"./chunk-x83syrhw.js";import"./chunk-x055cas0.js";import"./chunk-jwk5a5tk.js";export{Tn as ModelProviderManager,Qs as NetworkManager,kn as ProviderAuthManager,Wt as TunnelManager,_o as chatGPTProvider,za as resolveNetworkHost,Eo as startServer};
|
package/chunk-9zcfam20.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{tr,Tr,kr,Pr,Cr,on,sn,rr,an,ln,cn,un,pn,dn}from"./chunk-04326385.js";import{ce}from"./chunk-54zpktrq.js";import{Q,ee}from"./chunk-fgpzy3fe.js";import{te}from"./chunk-4a5xttdp.js";import{v}from"./chunk-fsekbhqb.js";import{ke}from"./chunk-9nkb5q43.js";import{G,ve,me,Ke,ne,Y}from"./chunk-fc41dvhp.js";import{W}from"./chunk-vrsh8cx1.js";var b=0,y=(n,a,t)=>{let o=new W,g=Ke(a);return(async()=>{let e={role:"assistant",content:[],api:"google-generative-ai",provider:n.provider,model:n.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 Generative AI adapter");let l=t?.apiKey;if(!l)throw Error(`No API key for provider: ${n.provider}`);let c=w(n,l,t?.headers),h=T(n,g,t),k=await t?.onPayload?.(h,n);if(k!==void 0)h=k;let p=await dn(()=>c.models.generateContentStream(h),t);o.push({type:"start",partial:e});let i=null,f=e.content,u=()=>f.length-1;for await(let s of p){await t?.onProviderStreamEvent?.(s,n),e.responseId||=s.responseId;let m=s.candidates?.[0];if(m?.content?.parts)for(let r of m.content.parts){if(r.text!==void 0){let d=sn(r);if(!i||d&&i.type!=="thinking"||!d&&i.type!=="text"){if(i)if(i.type==="text")o.push({type:"text_end",contentIndex:f.length-1,content:i.text,partial:e});else o.push({type:"thinking_end",contentIndex:u(),content:i.thinking,partial:e});if(d)i={type:"thinking",thinking:"",thinkingSignature:void 0},e.content.push(i),o.push({type:"thinking_start",contentIndex:u(),partial:e});else i={type:"text",text:""},e.content.push(i),o.push({type:"text_start",contentIndex:u(),partial:e})}if(i.type==="thinking")i.thinking+=r.text,i.thinkingSignature=rr(i.thinkingSignature,r.thoughtSignature),o.push({type:"thinking_delta",contentIndex:u(),delta:r.text,partial:e});else i.text+=r.text,i.textSignature=rr(i.textSignature,r.thoughtSignature),o.push({type:"text_delta",contentIndex:u(),delta:r.text,partial:e})}if(r.functionCall){if(i){if(i.type==="text")o.push({type:"text_end",contentIndex:u(),content:i.text,partial:e});else o.push({type:"thinking_end",contentIndex:u(),content:i.thinking,partial:e});i=null}let d=r.functionCall.id,C={type:"toolCall",id:!d||e.content.some((x)=>x.type==="toolCall"&&x.id===d)?`${r.functionCall.name}_${Date.now()}_${++b}`:d,name:r.functionCall.name||"",arguments:r.functionCall.args??{},...r.thoughtSignature&&{thoughtSignature:r.thoughtSignature}};e.content.push(C),o.push({type:"toolcall_start",contentIndex:u(),partial:e}),o.push({type:"toolcall_delta",contentIndex:u(),delta:JSON.stringify(C.arguments),partial:e}),o.push({type:"toolcall_end",contentIndex:u(),toolCall:C,partial:e})}}if(m?.finishReason){if(e.rawStopReason=m.finishReason,e.stopReason=pn(m.finishReason),e.content.some((r)=>r.type==="toolCall")&&e.stopReason==="stop")e.stopReason="toolUse"}if(s.usageMetadata)e.usage={input:(s.usageMetadata.promptTokenCount||0)-(s.usageMetadata.cachedContentTokenCount||0),output:(s.usageMetadata.candidatesTokenCount||0)+(s.usageMetadata.thoughtsTokenCount||0),cacheRead:s.usageMetadata.cachedContentTokenCount||0,cacheWrite:0,reasoning:s.usageMetadata.thoughtsTokenCount||0,totalTokens:s.usageMetadata.totalTokenCount||0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},ne(n,e.usage)}if(i)if(i.type==="text")o.push({type:"text_end",contentIndex:u(),content:i.text,partial:e});else o.push({type:"thinking_end",contentIndex:u(),content:i.thinking,partial:e});if(t?.signal?.aborted)throw Error("Request was aborted");if(e.stopReason==="pending")throw Error("Google stream ended without a finish reason");if(e.stopReason==="aborted"||e.stopReason==="error"){let s=e.rawStopReason?`Provider stopped with: ${e.rawStopReason}`:"An unknown error occurred";throw Error(s)}o.push({type:"done",reason:e.stopReason,message:e}),o.end()}catch(l){for(let c of e.content)if("index"in c)delete c.index;e.stopReason=t?.signal?.aborted?"aborted":"error",e.errorMessage=ee(Q(l)),o.push({type:"error",reason:e.stopReason,error:e}),o.end()}})(),o},q=(n,a,t)=>{let o=t?.apiKey;if(!o)throw Error(`No API key for provider: ${n.provider}`);let g={...te(n,a,t,o),toolChoice:t?.toolChoice};if(!t?.reasoning)return y(n,a,{...g,thinking:{enabled:!1}});let e=Y(n,t.reasoning);if(e==="off")return y(n,a,{...g,thinking:{enabled:!1}});let l=Tr(n,e);if(kr(n))return y(n,a,{...g,thinking:{enabled:!0,level:Pr(l)}});return y(n,a,{...g,thinking:{enabled:!0,budgetTokens:S(n,l,t.thinkingBudgets)}})};function w(n,a,t){let o={};if(n.baseUrl)o.baseUrl=n.baseUrl,o.apiVersion="";let g=ke({"User-Agent":ce(),...n.headers,...t});if(g)o.headers=g;return new tr({apiKey:a,httpOptions:Object.keys(o).length>0?o:void 0})}function T(n,a,t={}){let o=an(n,a),g=ve(a.messages),e=me(a.messages),l={};if(t.temperature!==void 0)l.temperature=t.temperature;if(t.maxTokens!==void 0)l.maxOutputTokens=t.maxTokens;let c=cn(n.id),h=e.length>0?un(e,t.toolChoice,c):void 0,k=g?G(g):"",p={...Object.keys(l).length>0&&l,...k&&{systemInstruction:v(k)},...e.length>0&&{tools:ln(e,!1,c)},...h!==void 0&&{toolConfig:{functionCallingConfig:{mode:h}}}};if(t.thinking?.enabled&&n.reasoning){let f={includeThoughts:!0};if(t.thinking.level!==void 0)f.thinkingLevel=Cr(t.thinking.level);else if(t.thinking.budgetTokens!==void 0)f.thinkingBudget=t.thinking.budgetTokens;p.thinkingConfig=f}else if(n.reasoning&&t.thinking&&!t.thinking.enabled)p.thinkingConfig=on(n);if(t.signal){if(t.signal.aborted)throw Error("Request aborted");p.abortSignal=t.signal}return{model:n.id,contents:o,config:p}}function S(n,a,t){if(t?.[a]!==void 0)return t[a];if(n.id.includes("2.5-pro"))return{minimal:128,low:2048,medium:8192,high:32768}[a];if(n.id.includes("2.5-flash-lite"))return{minimal:512,low:2048,medium:8192,high:24576}[a];if(n.id.includes("2.5-flash"))return{minimal:128,low:2048,medium:8192,high:24576}[a];return-1}export{y as stream,q as streamSimple};
|
package/chunk-a6zvmsbh.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{V}from"./chunk-x055cas0.js";import{vt}from"./chunk-hvxc1wyv.js";import{Ae,On,Ln,xe,Ur,Te}from"./chunk-4a5xttdp.js";import{v}from"./chunk-fsekbhqb.js";import{G,Ve,ue,Ie,ne}from"./chunk-fc41dvhp.js";function j(a,o){let l={v:1,id:a};if(o)l.phase=o;return JSON.stringify(l)}function E(a){if(!a)return;if(a.startsWith("{"))try{let o=JSON.parse(a);if(o.v===1&&typeof o.id==="string"){if(o.phase==="commentary"||o.phase==="final_answer")return{id:o.id,phase:o.phase};return{id:o.id}}}catch{}return{id:a}}function N(a,o){let l=o.filter((c)=>c.type==="text").map((c)=>c.text).join(`
|
|
3
|
-
`),d=o.filter((c)=>c.type==="image"),u=l.length>0;if(d.length===0||!a.input.includes("image"))return v(u?l:d.length>0?"(see attached image)":"(no tool output)");let p=[];if(u)p.push({type:"input_text",text:v(l)});for(let c of d)p.push({type:"input_image",detail:"auto",image_url:`data:${c.mimeType};base64,${c.data}`});return p}function It(a,o,l,d){let u=ue(o,d?.supportsMidConvoSystemMessages),p=[],c=(n)=>{let s=n.replace(/[^a-zA-Z0-9_-]/g,"_");return(s.length>64?s.slice(0,64):s).replace(/_+$/,"")},S=(n)=>{let s=`fc_${vt(n)}`;return s.length>64?s.slice(0,64):s},x=(n,s,i)=>{if(!l.has(a.provider))return c(n);if(!n.includes("|"))return c(n);let[r,g]=n.split("|"),h=c(r),y=i.provider!==a.provider||i.api!==a.api?S(g):c(g);if(!y.startsWith("fc_"))y=c(`fc_${y}`);return`${h}|${y}`},m=Te(u.messages,a,x),k=Ie(u.messages,(d?.supportsAdditionalTools??!1)||(d?.supportsToolSearch??!1)),T=(n,s)=>{let i=k.anchorsAdditions?n.toolsAdded??[]:[];if(i.length===0)return;if(d?.supportsAdditionalTools){p.push({type:"additional_tools",role:"developer",tools:xt(i,d.toolOptions)});return}if(!d?.supportsToolSearch)return;let r=i.map((h)=>h.name),g=`pi_tool_load_${vt(`${s}:${r.join(",")}`)}`;p.push({type:"tool_search_call",call_id:g,execution:"client",status:"completed",arguments:{query:r.join(" "),limit:r.length}}),p.push({type:"tool_search_output",call_id:g,execution:"client",status:"completed",tools:xt(i,{...d.toolOptions,toolSearchResult:!0})})},C=d?.includeSystemPrompt??!0,w=a.compat,M=a.reasoning&&w?.supportsDeveloperRole!==!1?"developer":"system",t=0,e=0;for(let n of m){let s=e++===0&&n.role==="system";if(n.role==="system"){if(!s)T(n,`system:${t}`);if(!s||C){let i=s?G(n):Ve(n);if(i.length>0)p.push({role:M,content:v(i)})}}else if(n.role==="user")if(typeof n.content==="string")p.push({role:"user",content:[{type:"input_text",text:v(n.content)}]});else{let i=n.content.map((r)=>{if(r.type==="text")return{type:"input_text",text:v(r.text)};return{type:"input_image",detail:"auto",image_url:`data:${r.mimeType};base64,${r.data}`}});if(i.length===0)continue;p.push({role:"user",content:i})}else if(n.role==="assistant"){let i=[],r=n,g=r.provider===a.provider&&r.api===a.api,h=g&&r.model===a.id,P=g&&r.model!==a.id,y=0;for(let I of n.content)if(I.type==="thinking"){if(I.thinkingSignature){let f=JSON.parse(I.thinkingSignature);i.push(f)}}else if(I.type==="text"){let f=I,b=E(f.textSignature),J=y===0?`msg_pi_${t}`:`msg_pi_${t}_${y}`;y++;let _=b?.id;if(!_)_=J;else if(_.length>64)_=`msg_${vt(_)}`;i.push({type:"message",role:"assistant",content:[{type:"output_text",text:v(f.text),annotations:[]}],status:"completed",id:_,phase:b?.phase})}else if(I.type==="toolCall"){let f=I,[b,J]=f.id.split("|"),_=d?.grammarToolInputProperties?.get(f.name),R=J,A=_===void 0?"fc_":"ctc_";if(P||!R?.startsWith(A))R=void 0;if(_!==void 0)i.push({type:"custom_tool_call",id:R,call_id:b,name:f.name,input:v(On(f.name,f.arguments,_)),...h&&f.namespace!==void 0?{namespace:f.namespace}:{}});else i.push({type:"function_call",id:R,call_id:b,name:f.name,arguments:JSON.stringify(f.arguments),...h&&f.namespace!==void 0?{namespace:f.namespace}:{}})}if(i.length===0)continue;p.push(...i)}else if(n.role==="toolResult"){let[i]=n.toolCallId.split("|"),r=N(a,n.content);if(d?.grammarToolInputProperties?.has(n.toolName))p.push({type:"custom_tool_call_output",call_id:i,output:r});else p.push({type:"function_call_output",call_id:i,output:r})}if(!s)t++}return p}function xt(a,o){let l=o?.strict===void 0?!1:o.strict,d=o?.supportsStrictMode??!0,u=o?.supportsOpenAIGrammarTools??!1;return a.map((p)=>{let c=Ur(p,u);if(c)return{type:"custom",name:p.name,description:p.description,format:{type:"grammar",syntax:c.format,definition:c.definition},...o?.toolSearchResult?{defer_loading:!0}:{}};let x=xe(p,d)??l,m={type:"function",name:p.name,description:p.description,parameters:Ae(p,x===!0),...o?.toolSearchResult?{defer_loading:!0}:{}};if(d)m.strict=x;return m})}function z(a){let o=a.customInput?.property;if(o===void 0)return"";let l=a.arguments[o];return typeof l==="string"?l:""}function O(a,o,l){let d=a.customInput;if(!d)return;let u=Ln(d.jsonBuffer,d.property,o,l);return a.arguments={[d.property]:o},u}async function Mt(a,o,l,d,u){let p=!1,c=new Map,S=new Map,x=(t)=>{if(t.type==="message"&&t.phase==="final_answer")o.stopReason="stop"},m=(t,e)=>{let n=c.get(t);return n?.type===e?n:void 0},k=(t,e)=>{if(e===void 0)return;l.push({type:"toolcall_delta",contentIndex:t.contentIndex,delta:e,partial:o})},T=(t,e)=>{if(e.type==="reasoning"){let n={type:"thinking",thinking:""};o.content.push(n);let s={type:"thinking",block:n,contentIndex:o.content.length-1};return c.set(t,s),l.push({type:"thinking_start",contentIndex:s.contentIndex,partial:o}),s}if(e.type==="message"){x(e);let n={type:"text",text:""};o.content.push(n);let s={type:"text",block:n,contentIndex:o.content.length-1};return c.set(t,s),l.push({type:"text_start",contentIndex:s.contentIndex,partial:o}),s}if(e.type==="function_call"){let n={type:"toolCall",id:`${e.call_id}|${e.id}`,name:e.name,arguments:{},...e.namespace!==void 0?{namespace:e.namespace}:{},partialJson:e.arguments||""};o.content.push(n);let s={type:"toolCall",block:n,contentIndex:o.content.length-1};return c.set(t,s),l.push({type:"toolcall_start",contentIndex:s.contentIndex,partial:o}),s}if(e.type==="custom_tool_call"){let n=u?.grammarToolInputProperties?.get(e.name)??"input",s=e.input||"",i={type:"toolCall",id:`${e.call_id}|${e.id}`,name:e.name,arguments:{[n]:s},...e.namespace!==void 0?{namespace:e.namespace}:{},customInput:{property:n,jsonBuffer:{input:"",started:!1,closed:!1}}};o.content.push(i);let r={type:"toolCall",block:i,contentIndex:o.content.length-1};return c.set(t,r),l.push({type:"toolcall_start",contentIndex:r.contentIndex,partial:o}),r}return},C=(t,e)=>c.get(t)??T(t,e),w=(t)=>{for(let e of t){if(e.type!=="reasoning"||!e.encrypted_content)continue;let n=S.get(e.id);if(!n?.thinkingSignature)continue;let s=JSON.parse(n.thinkingSignature);if(s.encrypted_content)continue;n.thinkingSignature=JSON.stringify({...s,encrypted_content:e.encrypted_content})}},M=(t)=>{if(p=!0,w(t.output??[]),t?.id)o.responseId=t.id;if(t?.usage){let r=t.usage.input_tokens_details,g=r?.cached_tokens||0,h=r?.cache_write_tokens||0;o.usage={input:Math.max(0,(t.usage.input_tokens||0)-g-h),output:t.usage.output_tokens||0,cacheRead:g,cacheWrite:h,reasoning:t.usage.output_tokens_details?.reasoning_tokens||0,totalTokens:t.usage.total_tokens||0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}}}if(ne(d,o.usage),u?.applyServiceTierPricing){let r=u.resolveServiceTier?u.resolveServiceTier(t?.service_tier,u.serviceTier):t?.service_tier??u.serviceTier;u.applyServiceTierPricing(o.usage,r)}let e=t?.status,n=t?.incomplete_details,s=typeof n?.reason==="string"?n.reason:void 0;o.rawStopReason=s?`${e}.${s}`:e;let i=W(e,s);if(o.stopReason=i.stopReason,i.errorMessage===void 0)delete o.errorMessage;else o.errorMessage=i.errorMessage;if(o.content.some((r)=>r.type==="toolCall")&&o.stopReason==="stop")o.stopReason="toolUse"};for await(let t of a)if(await u?.onProviderStreamEvent?.(t,d),t.type==="response.created")o.responseId=t.response.id;else if(t.type==="response.output_item.added")T(t.output_index,t.item);else if(t.type==="response.reasoning_summary_text.delta"){let e=m(t.output_index,"thinking");if(!e)continue;e.block.thinking+=t.delta,l.push({type:"thinking_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.reasoning_summary_part.done"){let e=m(t.output_index,"thinking");if(!e)continue;e.block.thinking+=`
|
|
4
|
-
|
|
5
|
-
`,l.push({type:"thinking_delta",contentIndex:e.contentIndex,delta:`
|
|
6
|
-
|
|
7
|
-
`,partial:o})}else if(t.type==="response.reasoning_text.delta"){let e=m(t.output_index,"thinking");if(!e)continue;e.block.thinking+=t.delta,l.push({type:"thinking_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.output_text.delta"){let e=m(t.output_index,"text");if(!e)continue;e.block.text+=t.delta,l.push({type:"text_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.refusal.delta"){let e=m(t.output_index,"text");if(!e)continue;e.block.text+=t.delta,l.push({type:"text_delta",contentIndex:e.contentIndex,delta:t.delta,partial:o})}else if(t.type==="response.function_call_arguments.delta"){let e=m(t.output_index,"toolCall");if(!e||e.block.partialJson===void 0)continue;e.block.partialJson+=t.delta,e.block.arguments=V(e.block.partialJson),k(e,t.delta)}else if(t.type==="response.function_call_arguments.done"){let e=m(t.output_index,"toolCall");if(!e||e.block.partialJson===void 0)continue;let n=e.block.partialJson;if(e.block.partialJson=t.arguments,e.block.arguments=V(e.block.partialJson),t.arguments.startsWith(n)){let s=t.arguments.slice(n.length);if(s.length>0)k(e,s)}}else if(t.type==="response.custom_tool_call_input.delta"){let e=m(t.output_index,"toolCall");if(!e||!e.block.customInput)continue;k(e,O(e.block,z(e.block)+t.delta,!1))}else if(t.type==="response.custom_tool_call_input.done"){let e=m(t.output_index,"toolCall");if(!e||!e.block.customInput)continue;k(e,O(e.block,t.input,!0))}else if(t.type==="response.output_item.done"){let e=t.item;x(e);let n=C(t.output_index,e);if(e.type==="reasoning"&&n?.type==="thinking"){let s=e.summary?.map((r)=>r.text).join(`
|
|
8
|
-
|
|
9
|
-
`)||"",i=e.content?.map((r)=>r.text).join(`
|
|
10
|
-
|
|
11
|
-
`)||"";n.block.thinking=s||i||n.block.thinking,n.block.thinkingSignature=JSON.stringify(e),S.set(e.id,n.block),l.push({type:"thinking_end",contentIndex:n.contentIndex,content:n.block.thinking,partial:o}),c.delete(t.output_index)}else if(e.type==="message"&&n?.type==="text")n.block.text=e.content?.map((s)=>s.type==="output_text"?s.text:s.refusal).join("")||"",n.block.textSignature=j(e.id,e.phase??void 0),l.push({type:"text_end",contentIndex:n.contentIndex,content:n.block.text,partial:o}),c.delete(t.output_index);else if(e.type==="function_call"&&n?.type==="toolCall"&&n.block.partialJson!==void 0){if(n.block.arguments=V(e.arguments||n.block.partialJson||"{}"),e.namespace!==void 0)n.block.namespace=e.namespace;delete n.block.partialJson,l.push({type:"toolcall_end",contentIndex:n.contentIndex,toolCall:n.block,partial:o}),c.delete(t.output_index)}else if(e.type==="custom_tool_call"&&n?.type==="toolCall"&&n.block.customInput){if(k(n,O(n.block,e.input??z(n.block),!0)),e.namespace!==void 0)n.block.namespace=e.namespace;delete n.block.customInput,l.push({type:"toolcall_end",contentIndex:n.contentIndex,toolCall:n.block,partial:o}),c.delete(t.output_index)}}else if(t.type==="response.completed"||t.type==="response.incomplete")M(t.response);else if(t.type==="error")throw Error(`Error Code ${t.code}: ${t.message}`||"Unknown error");else if(t.type==="response.failed"){p=!0,o.rawStopReason=t.response?.status;let e=t.response?.error,n=t.response?.incomplete_details,s=e?`${e.code||"unknown"}: ${e.message||"no message"}`:n?.reason?`incomplete: ${n.reason}`:"Unknown error (no error details in response)";throw Error(s)}if(!p)throw Error("OpenAI Responses stream ended before a terminal response event");if(o.stopReason==="toolUse")for(let t of o.content){if(t.type!=="toolCall")continue;let e=t;if(e.partialJson!==void 0||e.customInput!==void 0)throw Error(`OpenAI Responses stream completed with an unfinished tool call: ${e.name} (${e.id})`)}}function W(a,o){if(!a)return{stopReason:"stop"};switch(a){case"completed":return{stopReason:"stop"};case"incomplete":if(o==="max_output_tokens")return{stopReason:"length"};return{stopReason:"error",errorMessage:o?`Response incomplete: ${o}`:"Response incomplete without a provider reason"};case"failed":case"cancelled":return{stopReason:"error"};case"in_progress":case"queued":return{stopReason:"stop"};default:throw Error(`Unhandled stop reason: ${a}`)}}
|
|
12
|
-
export{It,xt,Mt};
|