@opencode/core 0.0.0-dev-20334 → 0.0.0-dev-20336
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/dist/account/sql.js +1 -1
- package/dist/agent.js +79 -79
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +69 -69
- package/dist/chunks/{vcs-rzsaep27.js → job-05nz9j8w.js} +50 -50
- package/dist/chunks/{vcs-fykmemb9.js → job-0b1jg2q1.js} +3 -3
- package/dist/chunks/{vcs-r51ay0vc.js → job-0mv8j8k9.js} +1 -1
- package/dist/chunks/{vcs-prs5dgzg.js → job-0pa63p4t.js} +11 -11
- package/dist/chunks/{vcs-0paq2nw3.js → job-0paq2nw3.js} +1 -1
- package/dist/chunks/{vcs-3v65wvvj.js → job-1385q6zt.js} +16 -16
- package/dist/chunks/{vcs-wvgd2jmw.js → job-150yg2gd.js} +5 -5
- package/dist/chunks/{vcs-f2n192rq.js → job-1acjjqhc.js} +4 -4
- package/dist/chunks/{vcs-5dkn69vz.js → job-1b4m0bzf.js} +4 -4
- package/dist/chunks/{vcs-fjvydvzm.js → job-1d626cn7.js} +7 -7
- package/dist/chunks/{vcs-1dazxqgg.js → job-1dazxqgg.js} +2 -2
- package/dist/chunks/{vcs-tfq99j1t.js → job-1qqp8se9.js} +37 -37
- package/dist/chunks/{vcs-v501w5tf.js → job-20khx3m5.js} +40 -40
- package/dist/chunks/{vcs-21r38tys.js → job-21r38tys.js} +1 -1
- package/dist/chunks/{vcs-29x78va6.js → job-29x78va6.js} +2 -2
- package/dist/chunks/{vcs-2a5m3afh.js → job-2a5m3afh.js} +1 -1
- package/dist/chunks/{vcs-nmjwjdz3.js → job-2asns5vc.js} +6 -6
- package/dist/chunks/{vcs-9pg9yh83.js → job-2d4k9jj7.js} +33 -33
- package/dist/chunks/{vcs-3zfdkf60.js → job-2dxnkfqe.js} +16 -16
- package/dist/chunks/{vcs-1j2jwavt.js → job-2gjr1rky.js} +8 -8
- package/dist/chunks/{vcs-h5w29vws.js → job-325sge2s.js} +1 -1
- package/dist/chunks/{vcs-eb1e8gar.js → job-33k2ehp8.js} +2 -2
- package/dist/chunks/{vcs-skcqx5gn.js → job-346y6mfm.js} +6 -6
- package/dist/chunks/{vcs-3fc6dm20.js → job-3fc6dm20.js} +1 -1
- package/dist/chunks/{vcs-3hepkmqq.js → job-3hepkmqq.js} +1 -1
- package/dist/chunks/{vcs-73p1106n.js → job-3hgf9tpp.js} +22 -22
- package/dist/chunks/{vcs-zp64n39g.js → job-3mhv727s.js} +7 -7
- package/dist/chunks/{vcs-3smtnn6g.js → job-3smtnn6g.js} +1 -1
- package/dist/chunks/{vcs-3tvqynh2.js → job-3tvqynh2.js} +1 -1
- package/dist/chunks/{vcs-byk2kb5w.js → job-3v2cpxt2.js} +11 -11
- package/dist/chunks/{vcs-8ww8exwk.js → job-3x2zyzfp.js} +13 -13
- package/dist/chunks/{vcs-3zsf4n22.js → job-3zsf4n22.js} +1 -1
- package/dist/chunks/{vcs-zta4ze2y.js → job-41vqc9dz.js} +11 -11
- package/dist/chunks/{vcs-82y02698.js → job-428rdfbk.js} +7 -7
- package/dist/chunks/{vcs-p4crwqdd.js → job-43j300tq.js} +12 -12
- package/dist/chunks/{vcs-ftadth4t.js → job-43ngz610.js} +14 -14
- package/dist/chunks/{vcs-ywd0xnxg.js → job-4mgk6c50.js} +16 -16
- package/dist/chunks/{vcs-7yn8cp0p.js → job-4ppwc1fw.js} +28 -28
- package/dist/chunks/{vcs-qte5z7bc.js → job-510m7gjw.js} +5 -5
- package/dist/chunks/{vcs-54ma36ye.js → job-54ma36ye.js} +1 -1
- package/dist/chunks/{vcs-ykvd5j0p.js → job-54rsvzdv.js} +12 -12
- package/dist/chunks/{vcs-54tcyq79.js → job-54tcyq79.js} +2 -2
- package/dist/chunks/{vcs-nm2ve9qd.js → job-55c455mf.js} +1 -1
- package/dist/chunks/{vcs-57ez7d0k.js → job-57ez7d0k.js} +2 -2
- package/dist/chunks/{vcs-xakhm4tn.js → job-58acdtj6.js} +11 -11
- package/dist/chunks/{vcs-p50j01q6.js → job-594rwtqg.js} +81 -81
- package/dist/chunks/{vcs-5k130xag.js → job-5cgcf55e.js} +324 -324
- package/dist/chunks/{vcs-cwa6csj7.js → job-5d607bsg.js} +9 -9
- package/dist/chunks/{vcs-5daktx2q.js → job-5daktx2q.js} +1 -1
- package/dist/chunks/{vcs-h78xxny7.js → job-5r5k3c40.js} +32 -32
- package/dist/chunks/{vcs-5t3nmthw.js → job-5t3nmthw.js} +2 -2
- package/dist/chunks/{vcs-qjbfxdfa.js → job-60fbsqnd.js} +4 -4
- package/dist/chunks/{vcs-669tq793.js → job-669tq793.js} +1 -1
- package/dist/chunks/{vcs-59xx2ca3.js → job-6hq6h515.js} +22 -22
- package/dist/chunks/{vcs-6msgmcgs.js → job-6msgmcgs.js} +1 -1
- package/dist/chunks/{vcs-v3340t34.js → job-6pf2q9rn.js} +7 -7
- package/dist/chunks/{vcs-jdrazh6s.js → job-6qjftq9w.js} +27 -27
- package/dist/chunks/{vcs-dh6d6547.js → job-6tz19gyx.js} +20 -20
- package/dist/chunks/{vcs-d5kn232k.js → job-75csm02s.js} +14 -14
- package/dist/chunks/{vcs-sb7d9p7d.js → job-7a3m00ed.js} +28 -28
- package/dist/chunks/{vcs-7bmhse3q.js → job-7bmhse3q.js} +1 -1
- package/dist/chunks/{vcs-0gaj4617.js → job-7ebn0nc0.js} +4 -4
- package/dist/chunks/{vcs-v7qqwbza.js → job-7grbyccc.js} +2 -2
- package/dist/chunks/{vcs-mtft99cd.js → job-7gvwkz6m.js} +5 -5
- package/dist/chunks/{vcs-6kgc56n8.js → job-7q3qvr3d.js} +6 -6
- package/dist/chunks/{vcs-30p433p7.js → job-7rj9kkae.js} +293 -293
- package/dist/chunks/job-7sn92kxj.js +252 -0
- package/dist/chunks/{vcs-crpnb3tq.js → job-7vbwhngw.js} +3 -3
- package/dist/chunks/{vcs-aw20npjr.js → job-7vw9mcmm.js} +15 -15
- package/dist/chunks/{vcs-3faa98at.js → job-80mwyjq3.js} +8 -8
- package/dist/chunks/{vcs-9b1cam74.js → job-83a48ncz.js} +46 -46
- package/dist/chunks/{vcs-84txncab.js → job-84txncab.js} +1 -1
- package/dist/chunks/{vcs-8w7wh2t6.js → job-86w17476.js} +38 -38
- package/dist/chunks/{vcs-1x3v6h42.js → job-88y100z1.js} +15 -15
- package/dist/chunks/{vcs-zr5gmss4.js → job-8c0jss2t.js} +3 -3
- package/dist/chunks/{vcs-xsxzmn3v.js → job-8d0p2m37.js} +6 -6
- package/dist/chunks/{vcs-8d7r5vzw.js → job-8d7r5vzw.js} +1 -1
- package/dist/chunks/{vcs-3kr4fhtq.js → job-8te14jf7.js} +15 -15
- package/dist/chunks/{vcs-8z2rcb83.js → job-8z3rc051.js} +6 -6
- package/dist/chunks/{vcs-ee4t0ep0.js → job-95axr1yr.js} +24 -24
- package/dist/chunks/{vcs-gfaekswr.js → job-9aheh86c.js} +13 -13
- package/dist/chunks/{vcs-dz14cmaq.js → job-9b6x747e.js} +19 -19
- package/dist/chunks/{vcs-w6x651eg.js → job-9k8ccm24.js} +17 -17
- package/dist/chunks/{vcs-j0qe0af1.js → job-9n0gwwx1.js} +34 -34
- package/dist/chunks/job-9q1v9n4z.js +26 -0
- package/dist/chunks/{vcs-0xjjk5b6.js → job-9thnk5ps.js} +19 -19
- package/dist/chunks/{vcs-ha0kh7py.js → job-a57rzqkn.js} +4 -4
- package/dist/chunks/{vcs-g6fwv5kp.js → job-a78s9db2.js} +20 -20
- package/dist/chunks/{vcs-v481zamz.js → job-a8w7s6c8.js} +3 -3
- package/dist/chunks/{vcs-wmnjdatz.js → job-aa96q7pf.js} +25 -25
- package/dist/chunks/{vcs-aaet6srn.js → job-aaet6srn.js} +2 -2
- package/dist/chunks/{vcs-4mpncgky.js → job-aakp3cxj.js} +8 -8
- package/dist/chunks/{vcs-c602bgff.js → job-ad13vv04.js} +17 -17
- package/dist/chunks/{vcs-62t14kdm.js → job-adkeyyk9.js} +11 -11
- package/dist/chunks/{vcs-17j7xjjx.js → job-ap89vq3r.js} +22 -22
- package/dist/chunks/{vcs-3w1s0g20.js → job-ass7ydek.js} +5 -5
- package/dist/chunks/{vcs-xsgxn7h5.js → job-aw67y148.js} +11 -11
- package/dist/chunks/{vcs-c83erg16.js → job-ax7kbht8.js} +26 -26
- package/dist/chunks/{vcs-vsp1fds9.js → job-axmvebxj.js} +4 -4
- package/dist/chunks/{vcs-5csd2dzg.js → job-b3bcnazv.js} +8 -8
- package/dist/chunks/{vcs-b6gygkdw.js → job-b6gygkdw.js} +2 -2
- package/dist/chunks/{vcs-9m0b2epc.js → job-b9acg77r.js} +25 -25
- package/dist/chunks/{vcs-7jekz0sf.js → job-bcbyy22v.js} +11 -11
- package/dist/chunks/{vcs-bjtzbw4r.js → job-bjtzbw4r.js} +3 -3
- package/dist/chunks/{vcs-rbzcmxc9.js → job-bpecpa4s.js} +10 -10
- package/dist/chunks/{vcs-yz3fv4p6.js → job-bqnbcz94.js} +37 -37
- package/dist/chunks/{vcs-p31v0gj9.js → job-br36vpfw.js} +8 -8
- package/dist/chunks/{vcs-4jqr2b2y.js → job-br7skqp4.js} +32 -32
- package/dist/chunks/{vcs-prq7hedt.js → job-bzgcn0jp.js} +9 -9
- package/dist/chunks/{vcs-maxnyjw6.js → job-c0m0cb4z.js} +16 -16
- package/dist/chunks/{vcs-txtbj48a.js → job-c6wc5rke.js} +11 -11
- package/dist/chunks/{vcs-6fvhqekt.js → job-cnj87pjj.js} +10 -10
- package/dist/chunks/{vcs-k2yzvxgs.js → job-cq5z9zk7.js} +16 -16
- package/dist/chunks/{vcs-v9g4r50y.js → job-cwghwexs.js} +14 -14
- package/dist/chunks/{vcs-p37cw4rj.js → job-czfptnv9.js} +8 -8
- package/dist/chunks/{vcs-gweyv2dv.js → job-d4str853.js} +33 -33
- package/dist/chunks/{vcs-x4d5q8t7.js → job-d7eda4mw.js} +9 -9
- package/dist/chunks/{vcs-xkntkrq7.js → job-dmqcgk4z.js} +5 -5
- package/dist/chunks/{vcs-dnxkq42g.js → job-dnxkq42g.js} +1 -1
- package/dist/chunks/{vcs-607q5haz.js → job-dq0v80fr.js} +5 -5
- package/dist/chunks/{vcs-9g87yrc5.js → job-dsxds9jb.js} +13 -13
- package/dist/chunks/{vcs-gn7xagw0.js → job-dvqtpf6s.js} +14 -14
- package/dist/chunks/{vcs-p3t4a9dj.js → job-eb35tzb0.js} +15 -15
- package/dist/chunks/{vcs-ecfe7b91.js → job-ecfe7b91.js} +2 -2
- package/dist/chunks/{vcs-ef5x83kb.js → job-ef5x83kb.js} +1 -1
- package/dist/chunks/{vcs-vqfzq50h.js → job-eqkxs06z.js} +6 -6
- package/dist/chunks/{vcs-etq0c3wd.js → job-etq0c3wd.js} +1 -1
- package/dist/chunks/{vcs-z4zaedpe.js → job-f32czd11.js} +8 -8
- package/dist/chunks/{vcs-k1qrnqst.js → job-f5gy8qwh.js} +8 -8
- package/dist/chunks/{vcs-bqq1gwvm.js → job-fh75rate.js} +1 -1
- package/dist/chunks/{vcs-d87ppnb3.js → job-fpmq6gma.js} +5 -5
- package/dist/chunks/{vcs-mn7havxm.js → job-fsgfmda0.js} +7 -7
- package/dist/chunks/{vcs-g2yz86wh.js → job-g2yz86wh.js} +2 -2
- package/dist/chunks/{vcs-s2hz1kr4.js → job-g4888p5f.js} +19 -19
- package/dist/chunks/{vcs-e30mydyk.js → job-g4xer9vd.js} +12 -12
- package/dist/chunks/{vcs-qy7chpjw.js → job-g6dneb80.js} +36 -36
- package/dist/chunks/{vcs-26kt6rhw.js → job-g9vavm7g.js} +2 -2
- package/dist/chunks/{vcs-gd4qta3r.js → job-gd4qta3r.js} +1 -1
- package/dist/chunks/{vcs-gfvb90ym.js → job-gfvb90ym.js} +2 -2
- package/dist/chunks/{vcs-dyj34840.js → job-ghxhxmvq.js} +4 -4
- package/dist/chunks/{vcs-gv6a8nnw.js → job-gv6a8nnw.js} +2 -2
- package/dist/chunks/{vcs-nd82pmrw.js → job-gvx451f5.js} +13 -13
- package/dist/chunks/{vcs-hwg0j3cs.js → job-gx0n0a9z.js} +13 -13
- package/dist/chunks/{vcs-09ymrm59.js → job-gzasaysv.js} +30 -30
- package/dist/chunks/{vcs-8zgg7vh0.js → job-h5psk01r.js} +7 -7
- package/dist/chunks/{vcs-z0s2kx6j.js → job-h66gqtfn.js} +1 -1
- package/dist/chunks/{vcs-h6vf3j39.js → job-h6vf3j39.js} +1 -1
- package/dist/chunks/{vcs-90kmczhd.js → job-h6z2539c.js} +24 -24
- package/dist/chunks/{vcs-zz39n6j9.js → job-h9c5bhzr.js} +33 -33
- package/dist/chunks/{vcs-97ydf025.js → job-hbqjxvpe.js} +9 -9
- package/dist/chunks/{vcs-vm7w724s.js → job-hggwccpy.js} +10 -10
- package/dist/chunks/{vcs-jv8egdf5.js → job-hvfrsctp.js} +27 -27
- package/dist/chunks/{vcs-yr6kv76e.js → job-j1432g81.js} +130 -130
- package/dist/chunks/{vcs-yth77m6w.js → job-j14t79n7.js} +4 -4
- package/dist/chunks/{vcs-zxv822en.js → job-j2hkd4k9.js} +35 -33
- package/dist/chunks/{vcs-g437nraw.js → job-j3d0mbdc.js} +21 -21
- package/dist/chunks/{vcs-j56e64zr.js → job-j56e64zr.js} +1 -1
- package/dist/chunks/{vcs-3feczvy4.js → job-jb5gz6q5.js} +5 -5
- package/dist/chunks/{vcs-87972gfc.js → job-jf6zf2rn.js} +10 -10
- package/dist/chunks/{vcs-rh9mbwcq.js → job-jqc5y2ba.js} +13 -13
- package/dist/chunks/{vcs-nzks3jc8.js → job-k3c624dm.js} +3 -3
- package/dist/chunks/{vcs-dr3mn59c.js → job-kbdnyrzf.js} +9 -9
- package/dist/chunks/{vcs-9hb3wz9g.js → job-khwh3fyq.js} +8 -8
- package/dist/chunks/{vcs-vswsk95g.js → job-kj3jrt41.js} +25 -25
- package/dist/chunks/{vcs-beagn649.js → job-kxwsagv1.js} +6 -6
- package/dist/chunks/{vcs-0mm9aq32.js → job-ky6yw5g0.js} +13 -13
- package/dist/chunks/{vcs-m3fdjcah.js → job-m3fdjcah.js} +1 -1
- package/dist/chunks/{vcs-7ysams8v.js → job-m4c9d9r4.js} +29 -29
- package/dist/chunks/{vcs-88vq6jx2.js → job-m5dccm3z.js} +18 -18
- package/dist/chunks/{vcs-m9w0rfyh.js → job-m9w0rfyh.js} +1 -1
- package/dist/chunks/{vcs-1ygqh575.js → job-mfqp6xfm.js} +6 -6
- package/dist/chunks/{vcs-w1g80d9f.js → job-mk4tcgbc.js} +20 -20
- package/dist/chunks/{vcs-8qh6anns.js → job-mnbh32fx.js} +6 -6
- package/dist/chunks/{vcs-73tb2d7t.js → job-mvfsc1pv.js} +3 -3
- package/dist/chunks/{vcs-2336b01z.js → job-n2kah95r.js} +5 -5
- package/dist/chunks/{vcs-pnv527nz.js → job-n35d2xk4.js} +9 -9
- package/dist/chunks/{vcs-wbxssg5z.js → job-ndkpbsgf.js} +6 -6
- package/dist/chunks/{vcs-k1gkpfdk.js → job-ngts6ef0.js} +8 -8
- package/dist/chunks/{vcs-ghte986y.js → job-nkht507p.js} +1 -1
- package/dist/chunks/{vcs-qjbnh5k0.js → job-nkwkaxf1.js} +10 -10
- package/dist/chunks/{vcs-6kb5nayr.js → job-nrgqgta6.js} +20 -20
- package/dist/chunks/{vcs-d4r6bf00.js → job-nvw9amg7.js} +5 -5
- package/dist/chunks/{vcs-p9z8jh8h.js → job-nwd3z7e8.js} +48 -48
- package/dist/chunks/{vcs-mqsshzbw.js → job-p7afssgn.js} +8 -8
- package/dist/chunks/{vcs-zxfxywrx.js → job-p9g6edyn.js} +11 -11
- package/dist/chunks/{vcs-v7z2bvyd.js → job-pgp1nwjn.js} +4 -4
- package/dist/chunks/{vcs-yd58c7k2.js → job-pgvyfn9b.js} +31 -31
- package/dist/chunks/{vcs-81yj1zj9.js → job-phhdajc1.js} +8 -8
- package/dist/chunks/{vcs-pjvnvgmy.js → job-pjvnvgmy.js} +1 -1
- package/dist/chunks/{vcs-pknna89w.js → job-pknna89w.js} +1 -1
- package/dist/chunks/{vcs-psazpmmj.js → job-psazpmmj.js} +2 -2
- package/dist/chunks/{vcs-7fkffz83.js → job-py3kkmfq.js} +4 -4
- package/dist/chunks/{vcs-888bdhzw.js → job-q3njkd70.js} +20 -20
- package/dist/chunks/{vcs-0m1283ft.js → job-q4q3htsk.js} +15 -15
- package/dist/chunks/{vcs-06x8he3q.js → job-q5asdkn4.js} +4 -4
- package/dist/chunks/{vcs-r1w74d6m.js → job-q8ghk9ne.js} +9 -9
- package/dist/chunks/{vcs-1q5awywt.js → job-qa7075pb.js} +5 -5
- package/dist/chunks/{vcs-6dpb430c.js → job-qeg61qyy.js} +3 -3
- package/dist/chunks/{vcs-7dqw4kz8.js → job-qgn6gcr1.js} +5 -5
- package/dist/chunks/{vcs-0bt028bs.js → job-qk2y8k3x.js} +1 -1
- package/dist/chunks/{vcs-qsdy395h.js → job-qsdy395h.js} +1 -1
- package/dist/chunks/{vcs-vpfzym8t.js → job-qv2280dq.js} +17 -17
- package/dist/chunks/{vcs-qfybyazx.js → job-qyq6e5qz.js} +43 -43
- package/dist/chunks/{vcs-sew39fqd.js → job-qzm2e7xh.js} +6 -6
- package/dist/chunks/{vcs-bjaap57j.js → job-r76nadcw.js} +2 -2
- package/dist/chunks/{vcs-t72j4zw8.js → job-r7ytkdzw.js} +21 -21
- package/dist/chunks/job-rap9a73h.js +18 -0
- package/dist/chunks/{vcs-9vsjd1qn.js → job-rbdzqrp0.js} +32 -32
- package/dist/chunks/{vcs-rdw6cm16.js → job-rdw6cm16.js} +1 -1
- package/dist/chunks/{vcs-r1htaf9c.js → job-rk32hc8c.js} +3 -3
- package/dist/chunks/{vcs-awv95mqd.js → job-rmvhjvxm.js} +9 -9
- package/dist/chunks/{vcs-t899d7vy.js → job-rpdjsxb2.js} +14 -14
- package/dist/chunks/{vcs-pyajmvxg.js → job-rss0fqwj.js} +5 -5
- package/dist/chunks/{vcs-nx8ggh41.js → job-rxbadc90.js} +18 -18
- package/dist/chunks/{vcs-91p1v22t.js → job-rzs3gq0x.js} +8 -8
- package/dist/chunks/{vcs-s4enseaf.js → job-s4enseaf.js} +2 -2
- package/dist/chunks/{vcs-rhjbct0v.js → job-s8d7rejh.js} +4 -4
- package/dist/chunks/{vcs-ak879dmn.js → job-spxtaarx.js} +24 -24
- package/dist/chunks/{vcs-wjq7t41n.js → job-sstpnqq8.js} +4 -4
- package/dist/chunks/{vcs-rr5jes33.js → job-t3rymwwm.js} +9 -9
- package/dist/chunks/{vcs-fmqw8cxe.js → job-t6etr70n.js} +71 -71
- package/dist/chunks/{vcs-z4n6550m.js → job-ta3krhcf.js} +20 -20
- package/dist/chunks/{vcs-tazgh4e4.js → job-tazgh4e4.js} +1 -1
- package/dist/chunks/{vcs-tcezcvh9.js → job-tcezcvh9.js} +1 -1
- package/dist/chunks/{vcs-tdstcens.js → job-tdstcens.js} +1 -1
- package/dist/chunks/{vcs-d858xzj7.js → job-tfzngn12.js} +4 -4
- package/dist/chunks/{vcs-ptzxwrkk.js → job-th0s0f4m.js} +82 -82
- package/dist/chunks/{vcs-d8x1pm9j.js → job-tnyr0z2a.js} +21 -21
- package/dist/chunks/{vcs-2c6shbwg.js → job-tq0aja3g.js} +26 -26
- package/dist/chunks/{vcs-vpa4aasm.js → job-tqxmj6gx.js} +12 -12
- package/dist/chunks/{vcs-tvtrv512.js → job-tvtrv512.js} +1 -1
- package/dist/chunks/{vcs-5yz86fj5.js → job-tx577je4.js} +10 -10
- package/dist/chunks/{vcs-xsfmm66d.js → job-v8y396jm.js} +16 -16
- package/dist/chunks/{vcs-xvp1j2dc.js → job-vd7rzxqf.js} +5 -5
- package/dist/chunks/{vcs-3j8sdtpz.js → job-ve4pfa0n.js} +4 -4
- package/dist/chunks/{vcs-veqvce7d.js → job-veqvce7d.js} +1 -1
- package/dist/chunks/{vcs-np2nb0tx.js → job-vj9emm8g.js} +20 -20
- package/dist/chunks/{vcs-w1q4avx6.js → job-vwhw76dt.js} +27 -27
- package/dist/chunks/{vcs-0nc7c8jg.js → job-vwyyqzd7.js} +6 -6
- package/dist/chunks/{vcs-xqhx4jgm.js → job-vxexwmjt.js} +45 -45
- package/dist/chunks/{vcs-4wwqnvbr.js → job-vxzh5eqq.js} +4 -4
- package/dist/chunks/{vcs-9ty0dtba.js → job-vyf876zv.js} +12 -12
- package/dist/chunks/{vcs-mc33kzj8.js → job-vz7a7mkg.js} +8 -8
- package/dist/chunks/{vcs-vzcthcp8.js → job-vzcthcp8.js} +1 -1
- package/dist/chunks/{vcs-vzs5sf6e.js → job-vzs5sf6e.js} +1 -1
- package/dist/chunks/{vcs-qzv3kn2w.js → job-w3jyfp25.js} +9 -9
- package/dist/chunks/{vcs-w3wsvvr9.js → job-w3wsvvr9.js} +1 -1
- package/dist/chunks/{vcs-jnxkj5z7.js → job-w8yd187f.js} +25 -25
- package/dist/chunks/{vcs-dg3h7qmn.js → job-w9k9pd4w.js} +18 -18
- package/dist/chunks/{vcs-wd87259q.js → job-wd87259q.js} +1 -1
- package/dist/chunks/{vcs-x1ezjp6w.js → job-x1ezjp6w.js} +1 -1
- package/dist/chunks/{vcs-yfrfdky7.js → job-x7900zzk.js} +13 -13
- package/dist/chunks/{vcs-c3pz5err.js → job-x8mwn2ty.js} +40 -40
- package/dist/chunks/{vcs-73gmm198.js → job-xb02k0wq.js} +4 -4
- package/dist/chunks/{vcs-a5qbg7vh.js → job-xcae95h5.js} +3 -3
- package/dist/chunks/{vcs-qqeeq2t9.js → job-xfkkasph.js} +7 -7
- package/dist/chunks/{vcs-6gj5awe5.js → job-xh1ma9n3.js} +6 -6
- package/dist/chunks/{vcs-kpvz85tg.js → job-xnyj4tg8.js} +11 -11
- package/dist/chunks/{vcs-9bksq1g1.js → job-xq6sg5pm.js} +20 -20
- package/dist/chunks/{vcs-ey1pw6q6.js → job-xr9x2h9h.js} +39 -39
- package/dist/chunks/{vcs-1smgh9n6.js → job-xs1p5wmh.js} +11 -11
- package/dist/chunks/{vcs-q0raz0xt.js → job-xsgk3b13.js} +9 -9
- package/dist/chunks/{vcs-bw02v0jt.js → job-xwvjf3ce.js} +11 -11
- package/dist/chunks/{vcs-y1fvbwt7.js → job-y1fvbwt7.js} +1 -1
- package/dist/chunks/{vcs-csqrn7a8.js → job-y4ny5ahf.js} +25 -25
- package/dist/chunks/{vcs-dpkg50ah.js → job-y71avatq.js} +4 -4
- package/dist/chunks/{vcs-j3db3ybt.js → job-yaqxtwvd.js} +3 -3
- package/dist/chunks/{vcs-a7kgcqrw.js → job-yf26cq0g.js} +5 -5
- package/dist/chunks/{vcs-h40sfsrg.js → job-ym4mtytv.js} +18 -18
- package/dist/chunks/{vcs-yrhqyw5v.js → job-yrhqyw5v.js} +1 -1
- package/dist/chunks/{vcs-jss641gn.js → job-yv6ca32c.js} +18 -18
- package/dist/chunks/{vcs-1zqzw3br.js → job-z06kv680.js} +24 -24
- package/dist/chunks/{vcs-z0bkrqjs.js → job-z0bkrqjs.js} +1 -1
- package/dist/chunks/{vcs-k7gc26zy.js → job-z4kpbbmy.js} +24 -24
- package/dist/chunks/{vcs-zeh9ct20.js → job-zeh9ct20.js} +2 -2
- package/dist/chunks/{vcs-ppjhm20f.js → job-zf229rdw.js} +8 -8
- package/dist/chunks/{vcs-d8cw0a7r.js → job-zph2bqh4.js} +4 -4
- package/dist/chunks/{vcs-z5y17b97.js → job-zpxvft8s.js} +15 -15
- package/dist/chunks/{vcs-zr2ceqn5.js → job-zr2ceqn5.js} +1 -1
- package/dist/chunks/{vcs-yqqw0v8e.js → job-zs1hc5s2.js} +13 -13
- package/dist/chunks/{vcs-x1kk24fb.js → job-ztsxb9dj.js} +11 -11
- package/dist/chunks/{vcs-w8br9f4a.js → job-ztt4fm57.js} +8 -8
- package/dist/chunks/{vcs-x3zqwmch.js → job-zwnps6g2.js} +24 -24
- package/dist/chunks/{vcs-zbjeptwf.js → job-zxapkpa5.js} +12 -12
- package/dist/chunks/{vcs-zxq2ej10.js → job-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +125 -125
- package/dist/config/plugin/command.js +215 -215
- package/dist/config/plugin/compaction.js +161 -161
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +124 -124
- package/dist/config/plugin/image.js +123 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +125 -125
- package/dist/config/plugin/mcp.js +132 -132
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +125 -125
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +144 -144
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +126 -126
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +124 -124
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +128 -128
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +77 -77
- package/dist/database/database.js +66 -66
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +372 -372
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +70 -70
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +228 -228
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +95 -95
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +100 -100
- package/dist/form.js +74 -74
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +105 -105
- package/dist/git.js +6 -6
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +91 -91
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/id/id.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +363 -363
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +81 -81
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +132 -132
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +360 -360
- package/dist/location.js +81 -81
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +129 -129
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +96 -96
- package/dist/model.js +96 -96
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +107 -107
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +104 -104
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +219 -219
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +335 -335
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +122 -122
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +122 -122
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +122 -122
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +95 -95
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +122 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +163 -163
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +352 -352
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +121 -121
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +230 -230
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +80 -80
- package/dist/provider.js +93 -93
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +89 -89
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +93 -93
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +135 -135
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +222 -222
- package/dist/session/execution.js +126 -126
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +90 -90
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +232 -232
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +1 -1
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +138 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +209 -209
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +213 -213
- package/dist/session/usage.js +1 -1
- package/dist/session.js +213 -213
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +15 -15
- package/dist/shell.js +140 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +110 -110
- package/dist/snapshot.js +91 -91
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +126 -126
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +119 -119
- package/dist/tool/plugin/shell.js +218 -218
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +218 -218
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +14 -14
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +14 -14
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +79 -79
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +98 -98
- package/package.json +8 -8
- package/dist/chunks/vcs-0hjz4wff.js +0 -26
- package/dist/chunks/vcs-4v7qdvcn.js +0 -18
- package/dist/chunks/vcs-cjfqmng4.js +0 -252
- /package/dist/chunks/{vcs-0qkdqm5v.js → job-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{vcs-0zkw76rk.js → job-0zkw76rk.js} +0 -0
- /package/dist/chunks/{vcs-17cy0kzp.js → job-17cy0kzp.js} +0 -0
- /package/dist/chunks/{vcs-1cnp2v09.js → job-1cnp2v09.js} +0 -0
- /package/dist/chunks/{vcs-1kg9ymc8.js → job-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{vcs-24dcb14g.js → job-24dcb14g.js} +0 -0
- /package/dist/chunks/{vcs-2710q6r3.js → job-2710q6r3.js} +0 -0
- /package/dist/chunks/{vcs-2axfhc9x.js → job-2axfhc9x.js} +0 -0
- /package/dist/chunks/{vcs-2c3vjs8z.js → job-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{vcs-34c7v6d4.js → job-34c7v6d4.js} +0 -0
- /package/dist/chunks/{vcs-359p4xyc.js → job-359p4xyc.js} +0 -0
- /package/dist/chunks/{vcs-3asan66x.js → job-3asan66x.js} +0 -0
- /package/dist/chunks/{vcs-3v8g72cx.js → job-3v8g72cx.js} +0 -0
- /package/dist/chunks/{vcs-3w5fmr99.js → job-3w5fmr99.js} +0 -0
- /package/dist/chunks/{vcs-3wcehsnq.js → job-3wcehsnq.js} +0 -0
- /package/dist/chunks/{vcs-43n2bw4t.js → job-43n2bw4t.js} +0 -0
- /package/dist/chunks/{vcs-4knz6hnm.js → job-4knz6hnm.js} +0 -0
- /package/dist/chunks/{vcs-4vcrnpx2.js → job-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{vcs-4y7fprxs.js → job-4y7fprxs.js} +0 -0
- /package/dist/chunks/{vcs-53557ph1.js → job-53557ph1.js} +0 -0
- /package/dist/chunks/{vcs-550bvhaj.js → job-550bvhaj.js} +0 -0
- /package/dist/chunks/{vcs-6prwharc.js → job-6prwharc.js} +0 -0
- /package/dist/chunks/{vcs-7akdwqpd.js → job-7akdwqpd.js} +0 -0
- /package/dist/chunks/{vcs-7m9af43g.js → job-7m9af43g.js} +0 -0
- /package/dist/chunks/{vcs-822emrt2.js → job-822emrt2.js} +0 -0
- /package/dist/chunks/{vcs-88xbtdfr.js → job-88xbtdfr.js} +0 -0
- /package/dist/chunks/{vcs-8n3pysct.js → job-8n3pysct.js} +0 -0
- /package/dist/chunks/{vcs-8wj87zfr.js → job-8wj87zfr.js} +0 -0
- /package/dist/chunks/{vcs-922hggd3.js → job-922hggd3.js} +0 -0
- /package/dist/chunks/{vcs-9a4afbnw.js → job-9a4afbnw.js} +0 -0
- /package/dist/chunks/{vcs-9rqn6x4v.js → job-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{vcs-a6k6eb26.js → job-a6k6eb26.js} +0 -0
- /package/dist/chunks/{vcs-af5trqkr.js → job-af5trqkr.js} +0 -0
- /package/dist/chunks/{vcs-afrmfg78.js → job-afrmfg78.js} +0 -0
- /package/dist/chunks/{vcs-aqzs7mqg.js → job-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{vcs-atq7p7m5.js → job-atq7p7m5.js} +0 -0
- /package/dist/chunks/{vcs-bkyjaxrp.js → job-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{vcs-bmr6ed5q.js → job-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{vcs-cf4snx6d.js → job-cf4snx6d.js} +0 -0
- /package/dist/chunks/{vcs-cvy3z8tj.js → job-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{vcs-d9fn303g.js → job-d9fn303g.js} +0 -0
- /package/dist/chunks/{vcs-d9jj8t3e.js → job-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{vcs-dajrwvna.js → job-dajrwvna.js} +0 -0
- /package/dist/chunks/{vcs-dap0rakb.js → job-dap0rakb.js} +0 -0
- /package/dist/chunks/{vcs-df08tz66.js → job-df08tz66.js} +0 -0
- /package/dist/chunks/{vcs-dy18nga0.js → job-dy18nga0.js} +0 -0
- /package/dist/chunks/{vcs-e3qxr5gk.js → job-e3qxr5gk.js} +0 -0
- /package/dist/chunks/{vcs-e5kj55wp.js → job-e5kj55wp.js} +0 -0
- /package/dist/chunks/{vcs-e73j6tqm.js → job-e73j6tqm.js} +0 -0
- /package/dist/chunks/{vcs-ec1grn59.js → job-ec1grn59.js} +0 -0
- /package/dist/chunks/{vcs-eh3zwz77.js → job-eh3zwz77.js} +0 -0
- /package/dist/chunks/{vcs-emrn6kk6.js → job-emrn6kk6.js} +0 -0
- /package/dist/chunks/{vcs-f0mxakyp.js → job-f0mxakyp.js} +0 -0
- /package/dist/chunks/{vcs-f6n9ztr4.js → job-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{vcs-faypxj3z.js → job-faypxj3z.js} +0 -0
- /package/dist/chunks/{vcs-fd410y7t.js → job-fd410y7t.js} +0 -0
- /package/dist/chunks/{vcs-fxgpk5d8.js → job-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{vcs-g4wezp1m.js → job-g4wezp1m.js} +0 -0
- /package/dist/chunks/{vcs-g86h250q.js → job-g86h250q.js} +0 -0
- /package/dist/chunks/{vcs-gebd4c9n.js → job-gebd4c9n.js} +0 -0
- /package/dist/chunks/{vcs-gftt206x.js → job-gftt206x.js} +0 -0
- /package/dist/chunks/{vcs-hjbc5kem.js → job-hjbc5kem.js} +0 -0
- /package/dist/chunks/{vcs-hk9envan.js → job-hk9envan.js} +0 -0
- /package/dist/chunks/{vcs-j2ntwpah.js → job-j2ntwpah.js} +0 -0
- /package/dist/chunks/{vcs-j5zkgpj8.js → job-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{vcs-jjkms2e6.js → job-jjkms2e6.js} +0 -0
- /package/dist/chunks/{vcs-jr7sbwjy.js → job-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{vcs-jwfs4k6c.js → job-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{vcs-jzg6c2d5.js → job-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{vcs-mp448xyj.js → job-mp448xyj.js} +0 -0
- /package/dist/chunks/{vcs-msx8hqn2.js → job-msx8hqn2.js} +0 -0
- /package/dist/chunks/{vcs-n05xt0ee.js → job-n05xt0ee.js} +0 -0
- /package/dist/chunks/{vcs-n3j8tn72.js → job-n3j8tn72.js} +0 -0
- /package/dist/chunks/{vcs-njntx4h6.js → job-njntx4h6.js} +0 -0
- /package/dist/chunks/{vcs-q3sfg36h.js → job-q3sfg36h.js} +0 -0
- /package/dist/chunks/{vcs-q74kybfr.js → job-q74kybfr.js} +0 -0
- /package/dist/chunks/{vcs-qaymkmh1.js → job-qaymkmh1.js} +0 -0
- /package/dist/chunks/{vcs-qb87gjwd.js → job-qb87gjwd.js} +0 -0
- /package/dist/chunks/{vcs-qfa1cgps.js → job-qfa1cgps.js} +0 -0
- /package/dist/chunks/{vcs-qg3g05ea.js → job-qg3g05ea.js} +0 -0
- /package/dist/chunks/{vcs-qrg20bc0.js → job-qrg20bc0.js} +0 -0
- /package/dist/chunks/{vcs-rcb2kzg1.js → job-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{vcs-sdp7kfr6.js → job-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{vcs-sk3qaz4a.js → job-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{vcs-ssg3fenm.js → job-ssg3fenm.js} +0 -0
- /package/dist/chunks/{vcs-w803qqfp.js → job-w803qqfp.js} +0 -0
- /package/dist/chunks/{vcs-wc3fc9cn.js → job-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{vcs-wer8tq1h.js → job-wer8tq1h.js} +0 -0
- /package/dist/chunks/{vcs-wtztk69x.js → job-wtztk69x.js} +0 -0
- /package/dist/chunks/{vcs-x0ckcb58.js → job-x0ckcb58.js} +0 -0
- /package/dist/chunks/{vcs-x61499pn.js → job-x61499pn.js} +0 -0
- /package/dist/chunks/{vcs-xkhfjrgz.js → job-xkhfjrgz.js} +0 -0
- /package/dist/chunks/{vcs-y44na4kk.js → job-y44na4kk.js} +0 -0
- /package/dist/chunks/{vcs-y8cydn3q.js → job-y8cydn3q.js} +0 -0
- /package/dist/chunks/{vcs-y8f7s663.js → job-y8f7s663.js} +0 -0
- /package/dist/chunks/{vcs-ygaqb7jw.js → job-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{vcs-ym463w8f.js → job-ym463w8f.js} +0 -0
- /package/dist/chunks/{vcs-z9919s4g.js → job-z9919s4g.js} +0 -0
|
@@ -1,36 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./job-a57rzqkn.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./job-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
10
|
key2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./job-dnxkq42g.js";
|
|
12
12
|
import {
|
|
13
13
|
ID14,
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
Service76,
|
|
15
|
+
node80,
|
|
16
16
|
Event18
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./job-w9k9pd4w.js";
|
|
18
18
|
import {
|
|
19
19
|
Service80,
|
|
20
20
|
node84
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./job-7grbyccc.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
25
|
-
|
|
26
|
-
// src/aisdk-native.ts
|
|
27
|
-
var exports_aisdk_native = {};
|
|
28
|
-
__export(exports_aisdk_native, {
|
|
29
|
-
AISDKNative: () => exports_aisdk_native,
|
|
30
|
-
native: () => native2,
|
|
31
|
-
rewrite: () => rewrite2
|
|
32
|
-
});
|
|
33
|
-
import { Effect as Effect2, Option, Schema as Schema2, Struct as Struct2 } from "effect";
|
|
24
|
+
} from "./job-9rqn6x4v.js";
|
|
34
25
|
|
|
35
26
|
// src/provider.ts
|
|
36
27
|
var exports_provider3 = {};
|
|
@@ -43,7 +34,7 @@ __export(exports_provider3, {
|
|
|
43
34
|
LoadError: () => LoadError3,
|
|
44
35
|
Provider: () => exports_provider3,
|
|
45
36
|
Request: () => Request3,
|
|
46
|
-
Service: () =>
|
|
37
|
+
Service: () => Service75,
|
|
47
38
|
Settings: () => Settings2,
|
|
48
39
|
Transport: () => Transport2,
|
|
49
40
|
aisdk: () => aisdk2,
|
|
@@ -53,10 +44,10 @@ __export(exports_provider3, {
|
|
|
53
44
|
mergeOverlay: () => mergeOverlay2,
|
|
54
45
|
modelSettings: () => modelSettings2,
|
|
55
46
|
nativeSettings: () => nativeSettings2,
|
|
56
|
-
node: () =>
|
|
47
|
+
node: () => node79,
|
|
57
48
|
packageName: () => packageName2
|
|
58
49
|
});
|
|
59
|
-
import { Context, Effect, Layer, Schema, Stream, Struct } from "effect";
|
|
50
|
+
import { Context, Effect as Effect2, Layer, Schema as Schema2, Stream, Struct as Struct2 } from "effect";
|
|
60
51
|
import { Provider } from "@opencode/schema/provider";
|
|
61
52
|
import { Model } from "@opencode/schema/model";
|
|
62
53
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -64,6 +55,262 @@ import { isRecord } from "@opencode/ai/utils/record";
|
|
|
64
55
|
import { importModule, resolveModule } from "@opencode/util/runtime-import";
|
|
65
56
|
import { Credential } from "@opencode/schema/credential";
|
|
66
57
|
import { freeze } from "immer";
|
|
58
|
+
|
|
59
|
+
// src/aisdk-native.ts
|
|
60
|
+
var exports_aisdk_native = {};
|
|
61
|
+
__export(exports_aisdk_native, {
|
|
62
|
+
AISDKNative: () => exports_aisdk_native,
|
|
63
|
+
native: () => native2,
|
|
64
|
+
rewrite: () => rewrite2
|
|
65
|
+
});
|
|
66
|
+
import { Effect, Option, Schema, Struct } from "effect";
|
|
67
|
+
function rewrite2(target, input) {
|
|
68
|
+
if (input.specifier === undefined)
|
|
69
|
+
return;
|
|
70
|
+
const plain = resolve(input.specifier, input);
|
|
71
|
+
if (!plain)
|
|
72
|
+
return;
|
|
73
|
+
const settings = decode(target.settings ?? {});
|
|
74
|
+
const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
|
|
75
|
+
const translated = options(replacement, input.modelID, settings);
|
|
76
|
+
if (target.package !== undefined || replacement !== input.specifier)
|
|
77
|
+
target.package = replacement;
|
|
78
|
+
target.settings = target.settings === undefined ? undefined : {
|
|
79
|
+
...translated.settings,
|
|
80
|
+
...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
|
|
81
|
+
};
|
|
82
|
+
target.headers = mergeHeaders2(translated.headers, target.headers);
|
|
83
|
+
target.body = mergeOverlay2(translated.body, target.body);
|
|
84
|
+
target.variants = target.variants?.map((variant) => {
|
|
85
|
+
const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
|
|
86
|
+
const headers = mergeHeaders2(overlay.headers, variant.headers);
|
|
87
|
+
const body = mergeOverlay2(overlay.body, variant.body);
|
|
88
|
+
return {
|
|
89
|
+
id: variant.id,
|
|
90
|
+
...variant.settings === undefined ? {} : { settings: overlay.settings },
|
|
91
|
+
...headers === undefined ? {} : { headers },
|
|
92
|
+
...body === undefined ? {} : { body }
|
|
93
|
+
};
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
var PACKAGES = {
|
|
97
|
+
"@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
|
|
98
|
+
"@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
|
|
99
|
+
"@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
|
|
100
|
+
"@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
|
|
101
|
+
"@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
|
|
102
|
+
"@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
|
|
103
|
+
"@ai-sdk/google": "@opencode/ai/providers/google",
|
|
104
|
+
"@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
|
|
105
|
+
"@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
|
|
106
|
+
"@ai-sdk/groq": "@opencode/ai/providers/groq",
|
|
107
|
+
"@ai-sdk/mistral": "@opencode/ai/providers/mistral",
|
|
108
|
+
"@ai-sdk/openai": "@opencode/ai/providers/openai",
|
|
109
|
+
"@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
|
|
110
|
+
"@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
|
|
111
|
+
"@ai-sdk/xai": "@opencode/ai/providers/xai",
|
|
112
|
+
"@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
|
|
113
|
+
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
114
|
+
};
|
|
115
|
+
var protocols = (name) => ({
|
|
116
|
+
"@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
|
|
117
|
+
"@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
|
|
118
|
+
"@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
|
|
119
|
+
});
|
|
120
|
+
var HOSTS = {
|
|
121
|
+
alibaba: protocols("alibaba"),
|
|
122
|
+
"alibaba-cn": protocols("alibaba"),
|
|
123
|
+
"alibaba-coding-plan": protocols("alibaba"),
|
|
124
|
+
"alibaba-coding-plan-cn": protocols("alibaba"),
|
|
125
|
+
"alibaba-token-plan": protocols("alibaba"),
|
|
126
|
+
"alibaba-token-plan-cn": protocols("alibaba"),
|
|
127
|
+
baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
|
|
128
|
+
"cloudflare-ai-gateway": {
|
|
129
|
+
"@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
130
|
+
"@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
131
|
+
"@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
132
|
+
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
133
|
+
},
|
|
134
|
+
"cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
|
|
135
|
+
deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
|
|
136
|
+
"fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
|
|
137
|
+
"google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
|
|
138
|
+
"kimi-for-coding": protocols("moonshot"),
|
|
139
|
+
meta: protocols("meta"),
|
|
140
|
+
minimax: protocols("minimax"),
|
|
141
|
+
"minimax-cn": protocols("minimax"),
|
|
142
|
+
"minimax-coding-plan": protocols("minimax"),
|
|
143
|
+
"minimax-cn-coding-plan": protocols("minimax"),
|
|
144
|
+
moonshotai: protocols("moonshot"),
|
|
145
|
+
"moonshotai-cn": protocols("moonshot"),
|
|
146
|
+
zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
147
|
+
"zai-coding-plan": protocols("zai-coding-plan"),
|
|
148
|
+
zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
149
|
+
"zhipuai-coding-plan": protocols("zai-coding-plan")
|
|
150
|
+
};
|
|
151
|
+
var NATIVE = new Set([
|
|
152
|
+
...Object.values(PACKAGES),
|
|
153
|
+
...Object.values(HOSTS).flatMap((host) => Object.values(host)),
|
|
154
|
+
"@opencode/ai/providers/azure/chat",
|
|
155
|
+
"@opencode/ai/providers/amazon-bedrock/mantle",
|
|
156
|
+
"@opencode/ai/providers/amazon-bedrock/mantle/chat",
|
|
157
|
+
"@opencode/ai/providers/amazon-bedrock/mantle/responses"
|
|
158
|
+
]);
|
|
159
|
+
function native2(npm, context) {
|
|
160
|
+
const host = HOSTS[context.providerID]?.[npm];
|
|
161
|
+
if (host)
|
|
162
|
+
return host;
|
|
163
|
+
if (npm === "@ai-sdk/amazon-bedrock/mantle")
|
|
164
|
+
return mantle(context.modelID);
|
|
165
|
+
if (npm === "@ai-sdk/azure" && context.settings?.useCompletionUrls === true)
|
|
166
|
+
return "@opencode/ai/providers/azure/chat";
|
|
167
|
+
return PACKAGES[npm];
|
|
168
|
+
}
|
|
169
|
+
var mantle = (modelID) => {
|
|
170
|
+
if (modelID === undefined)
|
|
171
|
+
return "@opencode/ai/providers/amazon-bedrock/mantle";
|
|
172
|
+
return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
|
|
173
|
+
};
|
|
174
|
+
function resolve(specifier, context) {
|
|
175
|
+
const npm = packageName2(specifier);
|
|
176
|
+
if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
|
|
177
|
+
return native2(npm, context);
|
|
178
|
+
if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
|
|
179
|
+
return mantle(context.modelID);
|
|
180
|
+
if (npm === "@opencode/ai/providers/azure/responses" && context.settings?.useCompletionUrls === true)
|
|
181
|
+
return "@opencode/ai/providers/azure/chat";
|
|
182
|
+
return NATIVE.has(npm) ? npm : undefined;
|
|
183
|
+
}
|
|
184
|
+
function options(replacement, modelID, settings) {
|
|
185
|
+
const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
|
|
186
|
+
const kept = Struct.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
|
|
187
|
+
const thinking = converse ? bedrockThinking(modelID, settings) : undefined;
|
|
188
|
+
return {
|
|
189
|
+
settings: {
|
|
190
|
+
...replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
|
|
191
|
+
...thinking === undefined ? {} : { thinking }
|
|
192
|
+
},
|
|
193
|
+
...settings.headers === undefined ? {} : { headers: settings.headers },
|
|
194
|
+
...settings.extraBody === undefined ? {} : { body: settings.extraBody },
|
|
195
|
+
...converse ? bedrockRequest(modelID, settings) : {},
|
|
196
|
+
...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
var BEDROCK_KEYS = [
|
|
200
|
+
"bearerToken",
|
|
201
|
+
"endpoint",
|
|
202
|
+
"credentials",
|
|
203
|
+
"credentialProvider",
|
|
204
|
+
"accessKeyId",
|
|
205
|
+
"secretAccessKey",
|
|
206
|
+
"sessionToken"
|
|
207
|
+
];
|
|
208
|
+
var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
|
|
209
|
+
function bedrockSettings(settings, converse) {
|
|
210
|
+
const region = settings.region ?? settings.credentials?.region;
|
|
211
|
+
const credentials = settings.credentials ?? settings;
|
|
212
|
+
const baseURL = settings.baseURL ?? settings.endpoint;
|
|
213
|
+
return {
|
|
214
|
+
...Struct.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
|
|
215
|
+
...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
|
|
216
|
+
...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
|
|
217
|
+
...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
|
|
218
|
+
credentials: {
|
|
219
|
+
...region === undefined ? {} : { region },
|
|
220
|
+
accessKeyId: credentials.accessKeyId,
|
|
221
|
+
secretAccessKey: credentials.secretAccessKey,
|
|
222
|
+
...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
function bedrockThinking(modelID, settings) {
|
|
228
|
+
const reasoning = settings.reasoningConfig;
|
|
229
|
+
if (!modelID?.includes("anthropic") || reasoning?.type !== "enabled" || reasoning.budgetTokens === undefined)
|
|
230
|
+
return;
|
|
231
|
+
return { type: "enabled", budgetTokens: reasoning.budgetTokens };
|
|
232
|
+
}
|
|
233
|
+
function bedrockRequest(modelID, settings) {
|
|
234
|
+
const additional = settings.additionalModelRequestFields ?? {};
|
|
235
|
+
const reasoning = settings.reasoningConfig;
|
|
236
|
+
const anthropic = modelID?.includes("anthropic") ?? false;
|
|
237
|
+
const openai = modelID?.includes("openai.") ?? false;
|
|
238
|
+
const harmony = modelID?.includes("openai.gpt-oss") ?? false;
|
|
239
|
+
const effort = reasoning?.maxReasoningEffort;
|
|
240
|
+
const type = reasoning?.type;
|
|
241
|
+
const budget = reasoning?.budgetTokens;
|
|
242
|
+
const display = reasoning?.display;
|
|
243
|
+
const betas = settings.anthropicBeta ?? [];
|
|
244
|
+
const fields = mergeOverlay2(additional, {
|
|
245
|
+
...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
|
|
246
|
+
...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
|
|
247
|
+
...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
|
|
248
|
+
...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
|
|
249
|
+
...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
|
|
250
|
+
...!anthropic && !openai && effort !== undefined ? {
|
|
251
|
+
reasoningConfig: {
|
|
252
|
+
...type === undefined || type === "adaptive" ? {} : { type },
|
|
253
|
+
...budget === undefined ? {} : { budgetTokens: budget },
|
|
254
|
+
maxReasoningEffort: effort
|
|
255
|
+
}
|
|
256
|
+
} : {}
|
|
257
|
+
});
|
|
258
|
+
const body = {
|
|
259
|
+
...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
|
|
260
|
+
...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
|
|
261
|
+
};
|
|
262
|
+
return Object.keys(body).length === 0 ? {} : { body };
|
|
263
|
+
}
|
|
264
|
+
var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
|
|
265
|
+
function openRouterRequest(settings) {
|
|
266
|
+
const headers = mergeHeaders2({
|
|
267
|
+
...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
|
|
268
|
+
...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
|
|
269
|
+
...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
|
|
270
|
+
}, settings.headers) ?? {};
|
|
271
|
+
return Object.keys(headers).length === 0 ? {} : { headers };
|
|
272
|
+
}
|
|
273
|
+
var lenient = (schema) => Schema.optional(Schema.UndefinedOr(schema).pipe(Schema.catchDecoding(() => Effect.succeed(Option.some(undefined)))));
|
|
274
|
+
var Credentials = Schema.Struct({
|
|
275
|
+
accessKeyId: Schema.String,
|
|
276
|
+
secretAccessKey: Schema.String,
|
|
277
|
+
sessionToken: lenient(Schema.String),
|
|
278
|
+
region: lenient(Schema.String)
|
|
279
|
+
});
|
|
280
|
+
var Legacy = Schema.StructWithRest(Schema.Struct({
|
|
281
|
+
apiKey: lenient(Schema.String),
|
|
282
|
+
baseURL: lenient(Schema.String),
|
|
283
|
+
headers: lenient(Schema.Record(Schema.String, Schema.String)),
|
|
284
|
+
extraBody: lenient(Schema.Record(Schema.String, Schema.Unknown)),
|
|
285
|
+
useCompletionUrls: lenient(Schema.Boolean),
|
|
286
|
+
auth: lenient(Schema.Literals(["bearer", "sigv4"])),
|
|
287
|
+
bearerToken: lenient(Schema.String),
|
|
288
|
+
endpoint: lenient(Schema.String),
|
|
289
|
+
region: lenient(Schema.String),
|
|
290
|
+
credentials: lenient(Credentials),
|
|
291
|
+
accessKeyId: lenient(Schema.String),
|
|
292
|
+
secretAccessKey: lenient(Schema.String),
|
|
293
|
+
sessionToken: lenient(Schema.String),
|
|
294
|
+
anthropicBeta: lenient(Schema.Array(Schema.String)),
|
|
295
|
+
serviceTier: lenient(Schema.String),
|
|
296
|
+
reasoningConfig: lenient(Schema.Struct({
|
|
297
|
+
type: lenient(Schema.String),
|
|
298
|
+
display: lenient(Schema.String),
|
|
299
|
+
maxReasoningEffort: lenient(Schema.String),
|
|
300
|
+
budgetTokens: lenient(Schema.Number)
|
|
301
|
+
})),
|
|
302
|
+
additionalModelRequestFields: lenient(Schema.StructWithRest(Schema.Struct({
|
|
303
|
+
anthropic_beta: lenient(Schema.Array(Schema.String)),
|
|
304
|
+
output_config: lenient(Schema.Record(Schema.String, Schema.Unknown)),
|
|
305
|
+
reasoning: lenient(Schema.Record(Schema.String, Schema.Unknown))
|
|
306
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)])),
|
|
307
|
+
appName: lenient(Schema.String),
|
|
308
|
+
appUrl: lenient(Schema.String),
|
|
309
|
+
api_keys: lenient(Schema.Record(Schema.String, Schema.String))
|
|
310
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
311
|
+
var decode = Schema.decodeUnknownSync(Legacy);
|
|
312
|
+
|
|
313
|
+
// src/provider.ts
|
|
67
314
|
import { Event as Event17 } from "@opencode/schema/provider";
|
|
68
315
|
var ID13 = Provider.ID;
|
|
69
316
|
var AISDK_PREFIX2 = "aisdk:";
|
|
@@ -76,12 +323,12 @@ function packageName2(value) {
|
|
|
76
323
|
return value;
|
|
77
324
|
return value.slice(AISDK_PREFIX2.length);
|
|
78
325
|
}
|
|
79
|
-
var JsonRecord =
|
|
80
|
-
var decodeJsonRecord =
|
|
326
|
+
var JsonRecord = Schema2.Record(Schema2.String, Schema2.Json);
|
|
327
|
+
var decodeJsonRecord = Schema2.decodeUnknownSync(JsonRecord);
|
|
81
328
|
|
|
82
|
-
class LoadError3 extends
|
|
83
|
-
package:
|
|
84
|
-
cause:
|
|
329
|
+
class LoadError3 extends Schema2.TaggedError()("Provider.LoadError", {
|
|
330
|
+
package: Schema2.String,
|
|
331
|
+
cause: Schema2.Defect()
|
|
85
332
|
}) {
|
|
86
333
|
}
|
|
87
334
|
var packages = new Map;
|
|
@@ -142,12 +389,12 @@ var builtins = new Map([
|
|
|
142
389
|
() => import("@opencode/ai/providers/zai-coding-plan/responses")
|
|
143
390
|
]
|
|
144
391
|
]);
|
|
145
|
-
var loadPackage2 =
|
|
392
|
+
var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
|
|
146
393
|
const specifier = packageName2(input);
|
|
147
394
|
const builtin = builtins.get(specifier);
|
|
148
395
|
if (builtin)
|
|
149
396
|
return yield* importPackage(specifier, specifier, builtin);
|
|
150
|
-
const resolved = yield*
|
|
397
|
+
const resolved = yield* Effect2.sync(() => {
|
|
151
398
|
if (specifier.startsWith("file://") || specifier.startsWith("@opencode/ai/"))
|
|
152
399
|
return specifier;
|
|
153
400
|
try {
|
|
@@ -166,8 +413,8 @@ var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
|
|
|
166
413
|
}
|
|
167
414
|
const parts = specifier.split("/");
|
|
168
415
|
const root = specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0] ?? specifier;
|
|
169
|
-
const installed = yield* npm.add(root).pipe(
|
|
170
|
-
const entrypoint = yield*
|
|
416
|
+
const installed = yield* npm.add(root).pipe(Effect2.mapError((cause) => new LoadError3({ package: specifier, cause })));
|
|
417
|
+
const entrypoint = yield* Effect2.try({
|
|
171
418
|
try: () => resolveModule(specifier, installed.directory),
|
|
172
419
|
catch: (cause) => new LoadError3({ package: specifier, cause })
|
|
173
420
|
});
|
|
@@ -176,10 +423,10 @@ var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
|
|
|
176
423
|
var CORE_KEYS = ["chunkTimeout", "compaction", "fetch", "timeout", "transport"];
|
|
177
424
|
var PROVIDER_ONLY_KEYS = ["chunkTimeout", "timeout", "transport"];
|
|
178
425
|
function nativeSettings2(settings) {
|
|
179
|
-
return
|
|
426
|
+
return Struct2.omit(settings, CORE_KEYS);
|
|
180
427
|
}
|
|
181
428
|
function modelSettings2(settings) {
|
|
182
|
-
return settings &&
|
|
429
|
+
return settings && Struct2.omit(settings, PROVIDER_ONLY_KEYS);
|
|
183
430
|
}
|
|
184
431
|
function mergeOverlay2(base, overlay) {
|
|
185
432
|
if (base === undefined)
|
|
@@ -212,7 +459,7 @@ var Transport2 = Provider.Transport;
|
|
|
212
459
|
var Settings2 = Provider.Settings;
|
|
213
460
|
var Info27 = Provider.Info;
|
|
214
461
|
|
|
215
|
-
class
|
|
462
|
+
class Service75 extends Context.Service()("@opencode/Provider") {
|
|
216
463
|
}
|
|
217
464
|
var definitions = new WeakMap;
|
|
218
465
|
function index(providerID, models) {
|
|
@@ -225,9 +472,9 @@ function index(providerID, models) {
|
|
|
225
472
|
definitions.set(models, indexes);
|
|
226
473
|
return result;
|
|
227
474
|
}
|
|
228
|
-
var layer = Layer.effect(
|
|
475
|
+
var layer = Layer.effect(Service75, Effect2.gen(function* () {
|
|
229
476
|
const bus = yield* Service83;
|
|
230
|
-
const integrations = yield*
|
|
477
|
+
const integrations = yield* Service76;
|
|
231
478
|
const location = yield* Service80;
|
|
232
479
|
const state = create3({
|
|
233
480
|
name: "provider",
|
|
@@ -307,9 +554,9 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
307
554
|
},
|
|
308
555
|
notify: () => notify
|
|
309
556
|
});
|
|
310
|
-
yield*
|
|
557
|
+
yield* Effect2.addFinalizer(() => shutdown2(state.reload()));
|
|
311
558
|
let cached;
|
|
312
|
-
const snapshot =
|
|
559
|
+
const snapshot = Effect2.fn("Provider.snapshot")(function* () {
|
|
313
560
|
while (true) {
|
|
314
561
|
const revision = integrations.revision();
|
|
315
562
|
const records = state.get();
|
|
@@ -337,7 +584,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
337
584
|
}
|
|
338
585
|
});
|
|
339
586
|
let published;
|
|
340
|
-
const notify =
|
|
587
|
+
const notify = Effect2.gen(function* () {
|
|
341
588
|
const value = yield* snapshot();
|
|
342
589
|
if (value === published)
|
|
343
590
|
return;
|
|
@@ -346,19 +593,19 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
346
593
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
347
594
|
});
|
|
348
595
|
});
|
|
349
|
-
yield* bus.subscribe([Event18.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify),
|
|
350
|
-
return
|
|
596
|
+
yield* bus.subscribe([Event18.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect2.forkScoped({ startImmediately: true }));
|
|
597
|
+
return Service75.of({
|
|
351
598
|
transform: state.transform,
|
|
352
599
|
reload: state.reload,
|
|
353
|
-
get:
|
|
354
|
-
all:
|
|
355
|
-
available:
|
|
600
|
+
get: Effect2.fn("Provider.get")((id) => Effect2.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
601
|
+
all: Effect2.fn("Provider.all")(() => Effect2.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
|
|
602
|
+
available: Effect2.fn("Provider.available")(() => snapshot().pipe(Effect2.map((value) => value.providers))),
|
|
356
603
|
snapshot
|
|
357
604
|
});
|
|
358
605
|
}));
|
|
359
|
-
var
|
|
360
|
-
var importPackage =
|
|
361
|
-
const module = yield*
|
|
606
|
+
var node79 = makeLocationNode({ service: Service75, layer, deps: [node87, node80, node84] });
|
|
607
|
+
var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
608
|
+
const module = yield* Effect2.tryPromise({
|
|
362
609
|
try: () => {
|
|
363
610
|
const existing = packages.get(entrypoint);
|
|
364
611
|
if (existing)
|
|
@@ -378,251 +625,4 @@ var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, en
|
|
|
378
625
|
return module;
|
|
379
626
|
});
|
|
380
627
|
|
|
381
|
-
|
|
382
|
-
function rewrite2(target, input) {
|
|
383
|
-
if (input.specifier === undefined)
|
|
384
|
-
return;
|
|
385
|
-
const plain = resolve(input.specifier, input);
|
|
386
|
-
if (!plain)
|
|
387
|
-
return;
|
|
388
|
-
const settings = decode(target.settings ?? {});
|
|
389
|
-
const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
|
|
390
|
-
const translated = options(replacement, input.modelID, settings);
|
|
391
|
-
if (target.package !== undefined || replacement !== input.specifier)
|
|
392
|
-
target.package = replacement;
|
|
393
|
-
target.settings = target.settings === undefined ? undefined : {
|
|
394
|
-
...translated.settings,
|
|
395
|
-
...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
|
|
396
|
-
};
|
|
397
|
-
target.headers = mergeHeaders2(translated.headers, target.headers);
|
|
398
|
-
target.body = mergeOverlay2(translated.body, target.body);
|
|
399
|
-
target.variants = target.variants?.map((variant) => {
|
|
400
|
-
const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
|
|
401
|
-
const headers = mergeHeaders2(overlay.headers, variant.headers);
|
|
402
|
-
const body = mergeOverlay2(overlay.body, variant.body);
|
|
403
|
-
return {
|
|
404
|
-
id: variant.id,
|
|
405
|
-
...variant.settings === undefined ? {} : { settings: overlay.settings },
|
|
406
|
-
...headers === undefined ? {} : { headers },
|
|
407
|
-
...body === undefined ? {} : { body }
|
|
408
|
-
};
|
|
409
|
-
});
|
|
410
|
-
}
|
|
411
|
-
var PACKAGES = {
|
|
412
|
-
"@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
|
|
413
|
-
"@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
|
|
414
|
-
"@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
|
|
415
|
-
"@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
|
|
416
|
-
"@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
|
|
417
|
-
"@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
|
|
418
|
-
"@ai-sdk/google": "@opencode/ai/providers/google",
|
|
419
|
-
"@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
|
|
420
|
-
"@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
|
|
421
|
-
"@ai-sdk/groq": "@opencode/ai/providers/groq",
|
|
422
|
-
"@ai-sdk/mistral": "@opencode/ai/providers/mistral",
|
|
423
|
-
"@ai-sdk/openai": "@opencode/ai/providers/openai",
|
|
424
|
-
"@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
|
|
425
|
-
"@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
|
|
426
|
-
"@ai-sdk/xai": "@opencode/ai/providers/xai",
|
|
427
|
-
"@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
|
|
428
|
-
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
429
|
-
};
|
|
430
|
-
var protocols = (name) => ({
|
|
431
|
-
"@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
|
|
432
|
-
"@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
|
|
433
|
-
"@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
|
|
434
|
-
});
|
|
435
|
-
var HOSTS = {
|
|
436
|
-
alibaba: protocols("alibaba"),
|
|
437
|
-
"alibaba-cn": protocols("alibaba"),
|
|
438
|
-
"alibaba-coding-plan": protocols("alibaba"),
|
|
439
|
-
"alibaba-coding-plan-cn": protocols("alibaba"),
|
|
440
|
-
"alibaba-token-plan": protocols("alibaba"),
|
|
441
|
-
"alibaba-token-plan-cn": protocols("alibaba"),
|
|
442
|
-
baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
|
|
443
|
-
"cloudflare-ai-gateway": {
|
|
444
|
-
"@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
445
|
-
"@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
446
|
-
"@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
447
|
-
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
448
|
-
},
|
|
449
|
-
"cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
|
|
450
|
-
deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
|
|
451
|
-
"fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
|
|
452
|
-
"google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
|
|
453
|
-
"kimi-for-coding": protocols("moonshot"),
|
|
454
|
-
meta: protocols("meta"),
|
|
455
|
-
minimax: protocols("minimax"),
|
|
456
|
-
"minimax-cn": protocols("minimax"),
|
|
457
|
-
"minimax-coding-plan": protocols("minimax"),
|
|
458
|
-
"minimax-cn-coding-plan": protocols("minimax"),
|
|
459
|
-
moonshotai: protocols("moonshot"),
|
|
460
|
-
"moonshotai-cn": protocols("moonshot"),
|
|
461
|
-
zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
462
|
-
"zai-coding-plan": protocols("zai-coding-plan"),
|
|
463
|
-
zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
464
|
-
"zhipuai-coding-plan": protocols("zai-coding-plan")
|
|
465
|
-
};
|
|
466
|
-
var NATIVE = new Set([
|
|
467
|
-
...Object.values(PACKAGES),
|
|
468
|
-
...Object.values(HOSTS).flatMap((host) => Object.values(host)),
|
|
469
|
-
"@opencode/ai/providers/azure/chat",
|
|
470
|
-
"@opencode/ai/providers/amazon-bedrock/mantle",
|
|
471
|
-
"@opencode/ai/providers/amazon-bedrock/mantle/chat",
|
|
472
|
-
"@opencode/ai/providers/amazon-bedrock/mantle/responses"
|
|
473
|
-
]);
|
|
474
|
-
function native2(npm, context) {
|
|
475
|
-
const host = HOSTS[context.providerID]?.[npm];
|
|
476
|
-
if (host)
|
|
477
|
-
return host;
|
|
478
|
-
if (npm === "@ai-sdk/amazon-bedrock/mantle")
|
|
479
|
-
return mantle(context.modelID);
|
|
480
|
-
if (npm === "@ai-sdk/azure" && context.settings?.useCompletionUrls === true)
|
|
481
|
-
return "@opencode/ai/providers/azure/chat";
|
|
482
|
-
return PACKAGES[npm];
|
|
483
|
-
}
|
|
484
|
-
var mantle = (modelID) => {
|
|
485
|
-
if (modelID === undefined)
|
|
486
|
-
return "@opencode/ai/providers/amazon-bedrock/mantle";
|
|
487
|
-
return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
|
|
488
|
-
};
|
|
489
|
-
function resolve(specifier, context) {
|
|
490
|
-
const npm = packageName2(specifier);
|
|
491
|
-
if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
|
|
492
|
-
return native2(npm, context);
|
|
493
|
-
if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
|
|
494
|
-
return mantle(context.modelID);
|
|
495
|
-
if (npm === "@opencode/ai/providers/azure/responses" && context.settings?.useCompletionUrls === true)
|
|
496
|
-
return "@opencode/ai/providers/azure/chat";
|
|
497
|
-
return NATIVE.has(npm) ? npm : undefined;
|
|
498
|
-
}
|
|
499
|
-
function options(replacement, modelID, settings) {
|
|
500
|
-
const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
|
|
501
|
-
const kept = Struct2.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
|
|
502
|
-
const thinking = converse ? bedrockThinking(modelID, settings) : undefined;
|
|
503
|
-
return {
|
|
504
|
-
settings: {
|
|
505
|
-
...replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
|
|
506
|
-
...thinking === undefined ? {} : { thinking }
|
|
507
|
-
},
|
|
508
|
-
...settings.headers === undefined ? {} : { headers: settings.headers },
|
|
509
|
-
...settings.extraBody === undefined ? {} : { body: settings.extraBody },
|
|
510
|
-
...converse ? bedrockRequest(modelID, settings) : {},
|
|
511
|
-
...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
|
|
512
|
-
};
|
|
513
|
-
}
|
|
514
|
-
var BEDROCK_KEYS = [
|
|
515
|
-
"bearerToken",
|
|
516
|
-
"endpoint",
|
|
517
|
-
"credentials",
|
|
518
|
-
"credentialProvider",
|
|
519
|
-
"accessKeyId",
|
|
520
|
-
"secretAccessKey",
|
|
521
|
-
"sessionToken"
|
|
522
|
-
];
|
|
523
|
-
var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
|
|
524
|
-
function bedrockSettings(settings, converse) {
|
|
525
|
-
const region = settings.region ?? settings.credentials?.region;
|
|
526
|
-
const credentials = settings.credentials ?? settings;
|
|
527
|
-
const baseURL = settings.baseURL ?? settings.endpoint;
|
|
528
|
-
return {
|
|
529
|
-
...Struct2.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
|
|
530
|
-
...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
|
|
531
|
-
...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
|
|
532
|
-
...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
|
|
533
|
-
credentials: {
|
|
534
|
-
...region === undefined ? {} : { region },
|
|
535
|
-
accessKeyId: credentials.accessKeyId,
|
|
536
|
-
secretAccessKey: credentials.secretAccessKey,
|
|
537
|
-
...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
};
|
|
541
|
-
}
|
|
542
|
-
function bedrockThinking(modelID, settings) {
|
|
543
|
-
const reasoning = settings.reasoningConfig;
|
|
544
|
-
if (!modelID?.includes("anthropic") || reasoning?.type !== "enabled" || reasoning.budgetTokens === undefined)
|
|
545
|
-
return;
|
|
546
|
-
return { type: "enabled", budgetTokens: reasoning.budgetTokens };
|
|
547
|
-
}
|
|
548
|
-
function bedrockRequest(modelID, settings) {
|
|
549
|
-
const additional = settings.additionalModelRequestFields ?? {};
|
|
550
|
-
const reasoning = settings.reasoningConfig;
|
|
551
|
-
const anthropic = modelID?.includes("anthropic") ?? false;
|
|
552
|
-
const openai = modelID?.includes("openai.") ?? false;
|
|
553
|
-
const harmony = modelID?.includes("openai.gpt-oss") ?? false;
|
|
554
|
-
const effort = reasoning?.maxReasoningEffort;
|
|
555
|
-
const type = reasoning?.type;
|
|
556
|
-
const budget = reasoning?.budgetTokens;
|
|
557
|
-
const display = reasoning?.display;
|
|
558
|
-
const betas = settings.anthropicBeta ?? [];
|
|
559
|
-
const fields = mergeOverlay2(additional, {
|
|
560
|
-
...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
|
|
561
|
-
...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
|
|
562
|
-
...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
|
|
563
|
-
...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
|
|
564
|
-
...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
|
|
565
|
-
...!anthropic && !openai && effort !== undefined ? {
|
|
566
|
-
reasoningConfig: {
|
|
567
|
-
...type === undefined || type === "adaptive" ? {} : { type },
|
|
568
|
-
...budget === undefined ? {} : { budgetTokens: budget },
|
|
569
|
-
maxReasoningEffort: effort
|
|
570
|
-
}
|
|
571
|
-
} : {}
|
|
572
|
-
});
|
|
573
|
-
const body = {
|
|
574
|
-
...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
|
|
575
|
-
...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
|
|
576
|
-
};
|
|
577
|
-
return Object.keys(body).length === 0 ? {} : { body };
|
|
578
|
-
}
|
|
579
|
-
var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
|
|
580
|
-
function openRouterRequest(settings) {
|
|
581
|
-
const headers = mergeHeaders2({
|
|
582
|
-
...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
|
|
583
|
-
...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
|
|
584
|
-
...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
|
|
585
|
-
}, settings.headers) ?? {};
|
|
586
|
-
return Object.keys(headers).length === 0 ? {} : { headers };
|
|
587
|
-
}
|
|
588
|
-
var lenient = (schema) => Schema2.optional(Schema2.UndefinedOr(schema).pipe(Schema2.catchDecoding(() => Effect2.succeed(Option.some(undefined)))));
|
|
589
|
-
var Credentials = Schema2.Struct({
|
|
590
|
-
accessKeyId: Schema2.String,
|
|
591
|
-
secretAccessKey: Schema2.String,
|
|
592
|
-
sessionToken: lenient(Schema2.String),
|
|
593
|
-
region: lenient(Schema2.String)
|
|
594
|
-
});
|
|
595
|
-
var Legacy = Schema2.StructWithRest(Schema2.Struct({
|
|
596
|
-
apiKey: lenient(Schema2.String),
|
|
597
|
-
baseURL: lenient(Schema2.String),
|
|
598
|
-
headers: lenient(Schema2.Record(Schema2.String, Schema2.String)),
|
|
599
|
-
extraBody: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
|
|
600
|
-
useCompletionUrls: lenient(Schema2.Boolean),
|
|
601
|
-
auth: lenient(Schema2.Literals(["bearer", "sigv4"])),
|
|
602
|
-
bearerToken: lenient(Schema2.String),
|
|
603
|
-
endpoint: lenient(Schema2.String),
|
|
604
|
-
region: lenient(Schema2.String),
|
|
605
|
-
credentials: lenient(Credentials),
|
|
606
|
-
accessKeyId: lenient(Schema2.String),
|
|
607
|
-
secretAccessKey: lenient(Schema2.String),
|
|
608
|
-
sessionToken: lenient(Schema2.String),
|
|
609
|
-
anthropicBeta: lenient(Schema2.Array(Schema2.String)),
|
|
610
|
-
serviceTier: lenient(Schema2.String),
|
|
611
|
-
reasoningConfig: lenient(Schema2.Struct({
|
|
612
|
-
type: lenient(Schema2.String),
|
|
613
|
-
display: lenient(Schema2.String),
|
|
614
|
-
maxReasoningEffort: lenient(Schema2.String),
|
|
615
|
-
budgetTokens: lenient(Schema2.Number)
|
|
616
|
-
})),
|
|
617
|
-
additionalModelRequestFields: lenient(Schema2.StructWithRest(Schema2.Struct({
|
|
618
|
-
anthropic_beta: lenient(Schema2.Array(Schema2.String)),
|
|
619
|
-
output_config: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
|
|
620
|
-
reasoning: lenient(Schema2.Record(Schema2.String, Schema2.Unknown))
|
|
621
|
-
}), [Schema2.Record(Schema2.String, Schema2.Unknown)])),
|
|
622
|
-
appName: lenient(Schema2.String),
|
|
623
|
-
appUrl: lenient(Schema2.String),
|
|
624
|
-
api_keys: lenient(Schema2.Record(Schema2.String, Schema2.String))
|
|
625
|
-
}), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
|
|
626
|
-
var decode = Schema2.decodeUnknownSync(Legacy);
|
|
627
|
-
|
|
628
|
-
export { rewrite2, native2, exports_aisdk_native, ID13, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info27, Service76, node80, exports_provider3, Event17 };
|
|
628
|
+
export { ID13, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info27, Service75, node79, exports_provider3, Event17, rewrite2, native2, exports_aisdk_native };
|