@opencode/core 0.0.0-dev-19814 → 0.0.0-dev-19815
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 +78 -78
- package/dist/aisdk-native.js +88 -88
- package/dist/aisdk.js +91 -91
- package/dist/app.js +9 -9
- package/dist/bus.js +68 -68
- package/dist/chunks/{aisdk-native-e9abyfmb.js → file-mutation-07nzwxsz.js} +9 -9
- package/dist/chunks/{aisdk-native-bak8mr3b.js → file-mutation-0eg4rpj5.js} +46 -46
- package/dist/chunks/{aisdk-native-s8d7rejh.js → file-mutation-0gdmqesm.js} +4 -4
- package/dist/chunks/{aisdk-native-0paq2nw3.js → file-mutation-0paq2nw3.js} +1 -1
- package/dist/chunks/{aisdk-native-7y7cnn6p.js → file-mutation-0pkscahp.js} +15 -15
- package/dist/chunks/{aisdk-native-0q0f95c6.js → file-mutation-0q0f95c6.js} +1 -1
- package/dist/chunks/{aisdk-native-0bnmk6v2.js → file-mutation-0q6eeezy.js} +5 -5
- package/dist/chunks/{aisdk-native-jmvtxc6a.js → file-mutation-0tg136y5.js} +6 -6
- package/dist/chunks/{aisdk-native-cfrmccbd.js → file-mutation-0x4jbnkh.js} +39 -39
- package/dist/chunks/{aisdk-native-mrqg3fqd.js → file-mutation-1awtappa.js} +23 -23
- package/dist/chunks/{aisdk-native-1dazxqgg.js → file-mutation-1dazxqgg.js} +2 -2
- package/dist/chunks/{aisdk-native-gcg66cf7.js → file-mutation-1tve5nz8.js} +8 -8
- package/dist/chunks/{aisdk-native-xz012fjz.js → file-mutation-1xebqrby.js} +41 -41
- package/dist/chunks/{aisdk-native-2egk0w3r.js → file-mutation-1xv6ggcd.js} +35 -35
- package/dist/chunks/{aisdk-native-93geh6gt.js → file-mutation-1yaa2472.js} +8 -8
- package/dist/chunks/{aisdk-native-21r38tys.js → file-mutation-21r38tys.js} +1 -1
- package/dist/chunks/{aisdk-native-r3axxf75.js → file-mutation-25835ps7.js} +20 -20
- package/dist/chunks/{aisdk-native-w763fc1z.js → file-mutation-25r2jws7.js} +12 -12
- package/dist/chunks/{aisdk-native-vh42dt1g.js → file-mutation-2680q31g.js} +25 -25
- package/dist/chunks/{aisdk-native-2haft7pr.js → file-mutation-272j0xxc.js} +7 -7
- package/dist/chunks/{aisdk-native-1eycq7v0.js → file-mutation-27hdnw63.js} +13 -13
- package/dist/chunks/{aisdk-native-29x78va6.js → file-mutation-29x78va6.js} +2 -2
- package/dist/chunks/{aisdk-native-m8tmq85a.js → file-mutation-2a234wtm.js} +26 -26
- package/dist/chunks/{aisdk-native-2a5m3afh.js → file-mutation-2a5m3afh.js} +1 -1
- package/dist/chunks/{aisdk-native-78z3hgz7.js → file-mutation-2r0aj5wh.js} +5 -5
- package/dist/chunks/{aisdk-native-a25fytbr.js → file-mutation-2vw86sre.js} +26 -26
- package/dist/chunks/{aisdk-native-pdm49dqy.js → file-mutation-349ahzma.js} +19 -19
- package/dist/chunks/{aisdk-native-3fc6dm20.js → file-mutation-3fc6dm20.js} +1 -1
- package/dist/chunks/{aisdk-native-p26stxcb.js → file-mutation-3hdyanjz.js} +4 -4
- package/dist/chunks/{aisdk-native-3hepkmqq.js → file-mutation-3hepkmqq.js} +1 -1
- package/dist/chunks/{aisdk-native-790tyfjj.js → file-mutation-3hn2t390.js} +27 -27
- package/dist/chunks/{aisdk-native-e0a154fg.js → file-mutation-3rqkssp8.js} +6 -6
- package/dist/chunks/{aisdk-native-3smtnn6g.js → file-mutation-3smtnn6g.js} +1 -1
- package/dist/chunks/{aisdk-native-3tvqynh2.js → file-mutation-3tvqynh2.js} +1 -1
- package/dist/chunks/{aisdk-native-jxf4tgs5.js → file-mutation-3wwmjj1e.js} +18 -18
- package/dist/chunks/{aisdk-native-2d0haajb.js → file-mutation-3yxkz7nw.js} +43 -43
- package/dist/chunks/{aisdk-native-ep9bxrrg.js → file-mutation-3zbb0e4x.js} +9 -9
- package/dist/chunks/{aisdk-native-1agxs8qz.js → file-mutation-42ybwkjg.js} +13 -13
- package/dist/chunks/{aisdk-native-k9kj6xed.js → file-mutation-44ke2mar.js} +6 -6
- package/dist/chunks/{aisdk-native-ffznjnm2.js → file-mutation-4dxew0jv.js} +3 -3
- package/dist/chunks/{aisdk-native-azzxr1zd.js → file-mutation-4khym028.js} +4 -4
- package/dist/chunks/{aisdk-native-66x8nh2j.js → file-mutation-4rys938p.js} +9 -9
- package/dist/chunks/{aisdk-native-fgzz64pf.js → file-mutation-4vg93jqq.js} +13 -13
- package/dist/chunks/{aisdk-native-73gf1wwg.js → file-mutation-4ym5jtja.js} +24 -24
- package/dist/chunks/{aisdk-native-92a4ap4w.js → file-mutation-510m7gjw.js} +5 -5
- package/dist/chunks/{aisdk-native-1ygqh575.js → file-mutation-56gdpj1q.js} +9 -9
- package/dist/chunks/{aisdk-native-07fw2bc3.js → file-mutation-5aj0q20a.js} +26 -26
- package/dist/chunks/{aisdk-native-5daktx2q.js → file-mutation-5daktx2q.js} +1 -1
- package/dist/chunks/{aisdk-native-nhpn0yqv.js → file-mutation-5ft7ers2.js} +11 -11
- package/dist/chunks/file-mutation-5fvgv7y0.js +26 -0
- package/dist/chunks/{aisdk-native-ebsh90pc.js → file-mutation-5jwj12zg.js} +4 -4
- package/dist/chunks/{aisdk-native-3ensn9wd.js → file-mutation-5jyrccsa.js} +27 -27
- package/dist/chunks/{aisdk-native-8p3z1z1q.js → file-mutation-5p7phca6.js} +41 -41
- package/dist/chunks/{aisdk-native-5t3nmthw.js → file-mutation-5t3nmthw.js} +2 -2
- package/dist/chunks/{aisdk-native-rg03pp26.js → file-mutation-5zrd1yp0.js} +10 -10
- package/dist/chunks/{aisdk-native-cxwwdtda.js → file-mutation-618kh5az.js} +170 -170
- package/dist/chunks/{aisdk-native-64kphnzf.js → file-mutation-64kphnzf.js} +1 -1
- package/dist/chunks/{aisdk-native-669tq793.js → file-mutation-669tq793.js} +1 -1
- package/dist/chunks/{aisdk-native-2402vzrj.js → file-mutation-6h73sxmp.js} +5 -5
- package/dist/chunks/file-mutation-6kdq0pjd.js +4 -0
- package/dist/chunks/{aisdk-native-6msgmcgs.js → file-mutation-6msgmcgs.js} +1 -1
- package/dist/chunks/{aisdk-native-fvfn927n.js → file-mutation-6pcefmbq.js} +25 -25
- package/dist/chunks/{aisdk-native-9m2snvh5.js → file-mutation-6vew141g.js} +5 -5
- package/dist/chunks/{aisdk-native-be9tjw7k.js → file-mutation-7a9f7nwj.js} +18 -18
- package/dist/chunks/{aisdk-native-7bmhse3q.js → file-mutation-7bmhse3q.js} +1 -1
- package/dist/chunks/{aisdk-native-fcrkznn8.js → file-mutation-7dqw4kz8.js} +5 -5
- package/dist/chunks/{aisdk-native-dqk33esk.js → file-mutation-7ea56vch.js} +9 -9
- package/dist/chunks/{aisdk-native-k6sp08p6.js → file-mutation-7ehb06f5.js} +19 -19
- package/dist/chunks/{aisdk-native-8xcy80v1.js → file-mutation-7hf3hesr.js} +4 -4
- package/dist/chunks/{aisdk-native-3a9n5gmg.js → file-mutation-7m15pt6c.js} +24 -24
- package/dist/chunks/{aisdk-native-4t5hftqh.js → file-mutation-7m9w9bvj.js} +10 -10
- package/dist/chunks/{aisdk-native-b1a1n7cj.js → file-mutation-7w99qc9d.js} +3 -3
- package/dist/chunks/{aisdk-native-jfqtm2ew.js → file-mutation-806j49yq.js} +4 -4
- package/dist/chunks/{aisdk-native-v1yx87k2.js → file-mutation-83w0rrj2.js} +29 -29
- package/dist/chunks/{aisdk-native-g7tbdc89.js → file-mutation-89sbf2tr.js} +3 -3
- package/dist/chunks/{aisdk-native-yvvvp4gn.js → file-mutation-8aaqm6qj.js} +8 -8
- package/dist/chunks/{aisdk-native-jqc73k12.js → file-mutation-8ar1z498.js} +13 -13
- package/dist/chunks/{aisdk-native-8d7r5vzw.js → file-mutation-8d7r5vzw.js} +1 -1
- package/dist/chunks/{aisdk-native-ttvr5j0k.js → file-mutation-8d81dgab.js} +11 -11
- package/dist/chunks/{aisdk-native-psfye3yz.js → file-mutation-8gwfkhjz.js} +10 -10
- package/dist/chunks/{aisdk-native-2k7w94xe.js → file-mutation-8hbb8fdq.js} +4 -4
- package/dist/chunks/{aisdk-native-112cr4rm.js → file-mutation-8hpm3er8.js} +34 -34
- package/dist/chunks/{aisdk-native-s4wkfnry.js → file-mutation-8hvq2ep8.js} +15 -15
- package/dist/chunks/{aisdk-native-vw9rkfa4.js → file-mutation-8mhg0p4j.js} +6 -6
- package/dist/chunks/{aisdk-native-8p4f9s12.js → file-mutation-8p4f9s12.js} +2 -2
- package/dist/chunks/{aisdk-native-4aphdq12.js → file-mutation-8q83d4tx.js} +9 -9
- package/dist/chunks/{aisdk-native-pm6sdbvh.js → file-mutation-8ymss7tz.js} +5 -5
- package/dist/chunks/{aisdk-native-wpah13ae.js → file-mutation-969z9wtq.js} +47 -47
- package/dist/chunks/{aisdk-native-n3r2v0yx.js → file-mutation-9d7xkn7g.js} +15 -15
- package/dist/chunks/{aisdk-native-ycszhq9a.js → file-mutation-9xw9w00h.js} +14 -14
- package/dist/chunks/{aisdk-native-x7rdhrf2.js → file-mutation-a0t9nbea.js} +3 -3
- package/dist/chunks/{aisdk-native-a1bz86dw.js → file-mutation-a1bz86dw.js} +3 -3
- package/dist/chunks/{aisdk-native-qrwrpt8e.js → file-mutation-a43a3g9h.js} +10 -10
- package/dist/chunks/{aisdk-native-11bbsyb4.js → file-mutation-a7h69g84.js} +66 -66
- package/dist/chunks/{aisdk-native-aaet6srn.js → file-mutation-aaet6srn.js} +2 -2
- package/dist/chunks/{aisdk-native-atcatw0c.js → file-mutation-aamtrqep.js} +7 -7
- package/dist/chunks/{aisdk-native-avm8jn6n.js → file-mutation-af04s6ss.js} +5 -5
- package/dist/chunks/{aisdk-native-ag9w8cw1.js → file-mutation-ag9w8cw1.js} +2 -2
- package/dist/chunks/{aisdk-native-5x835y8k.js → file-mutation-akrwbyqx.js} +35 -35
- package/dist/chunks/{aisdk-native-aefmpby3.js → file-mutation-an8v9wk2.js} +41 -41
- package/dist/chunks/{aisdk-native-tt6xt5e9.js → file-mutation-b0kddjqc.js} +82 -82
- package/dist/chunks/{aisdk-native-7fnse62p.js → file-mutation-b5a5chs4.js} +8 -8
- package/dist/chunks/{aisdk-native-b6gygkdw.js → file-mutation-b6gygkdw.js} +2 -2
- package/dist/chunks/{aisdk-native-mjncxbbh.js → file-mutation-bdqrk2vk.js} +6 -6
- package/dist/chunks/{aisdk-native-a58t5jn9.js → file-mutation-beq4zmjh.js} +6 -6
- package/dist/chunks/{aisdk-native-4qntw1nx.js → file-mutation-bew5cyq4.js} +30 -30
- package/dist/chunks/{aisdk-native-1c56g0tt.js → file-mutation-bzbtqdde.js} +1 -1
- package/dist/chunks/{aisdk-native-wch3b3hf.js → file-mutation-cbje66mk.js} +17 -17
- package/dist/chunks/{aisdk-native-cfpkc3c9.js → file-mutation-cfpkc3c9.js} +2 -2
- package/dist/chunks/{aisdk-native-5yzzbxa7.js → file-mutation-cmwkp3r5.js} +8 -8
- package/dist/chunks/{aisdk-native-ddct6w9p.js → file-mutation-cpbpaj6d.js} +19 -19
- package/dist/chunks/file-mutation-ctefx7dc.js +18 -0
- package/dist/chunks/{aisdk-native-t3mxyr11.js → file-mutation-cvkwxbsz.js} +26 -26
- package/dist/chunks/{aisdk-native-gz8mhd5a.js → file-mutation-cwe02ca0.js} +11 -11
- package/dist/chunks/{aisdk-native-2sejkfem.js → file-mutation-d4he2qe1.js} +9 -9
- package/dist/chunks/{aisdk-native-e9f2ej98.js → file-mutation-ddszz877.js} +5 -5
- package/dist/chunks/{aisdk-native-qs001aqx.js → file-mutation-dhwr7h25.js} +8 -8
- package/dist/chunks/{aisdk-native-k8ajmdky.js → file-mutation-dm5eaebf.js} +37 -37
- package/dist/chunks/{aisdk-native-dy466qfe.js → file-mutation-e1qag84x.js} +20 -20
- package/dist/chunks/file-mutation-e2h1d8z0.js +492 -0
- package/dist/chunks/{aisdk-native-f62qkzqr.js → file-mutation-e8qyrgb1.js} +5 -5
- package/dist/chunks/{aisdk-native-ef5x83kb.js → file-mutation-ef5x83kb.js} +1 -1
- package/dist/chunks/{aisdk-native-rkjc101m.js → file-mutation-emkv37r5.js} +14 -14
- package/dist/chunks/{aisdk-native-erw5rpbs.js → file-mutation-erw5rpbs.js} +2 -2
- package/dist/chunks/{aisdk-native-etq0c3wd.js → file-mutation-etq0c3wd.js} +1 -1
- package/dist/chunks/{aisdk-native-4t6vtd3e.js → file-mutation-ett7491z.js} +15 -15
- package/dist/chunks/{aisdk-native-t3dmpghz.js → file-mutation-eyrsk2wr.js} +17 -17
- package/dist/chunks/{aisdk-native-bnzay7e1.js → file-mutation-f3fzf6ct.js} +31 -31
- package/dist/chunks/{aisdk-native-kmgmy88r.js → file-mutation-f4zk55g1.js} +7 -7
- package/dist/chunks/{aisdk-native-f828m53h.js → file-mutation-f828m53h.js} +2 -2
- package/dist/chunks/{aisdk-native-s93p5fgj.js → file-mutation-fb10pz29.js} +20 -20
- package/dist/chunks/{aisdk-native-t15sgqra.js → file-mutation-ff2d2r5m.js} +17 -17
- package/dist/chunks/{aisdk-native-jw132d3y.js → file-mutation-fjvq75r9.js} +22 -22
- package/dist/chunks/{aisdk-native-te5bmdg3.js → file-mutation-fk7y4jkk.js} +11 -11
- package/dist/chunks/{aisdk-native-jek3y7zv.js → file-mutation-fradymh3.js} +8 -8
- package/dist/chunks/{aisdk-native-m214n8z9.js → file-mutation-ft2kdwr0.js} +42 -42
- package/dist/chunks/{aisdk-native-bk15tzr6.js → file-mutation-fvhrn3gk.js} +5 -5
- package/dist/chunks/{aisdk-native-fxbjtjnd.js → file-mutation-fxbjtjnd.js} +1 -1
- package/dist/chunks/{aisdk-native-3xyfw6wr.js → file-mutation-fz059jzw.js} +3 -3
- package/dist/chunks/{aisdk-native-qhj8jn65.js → file-mutation-fzw6vb94.js} +30 -30
- package/dist/chunks/{aisdk-native-mka4rcnv.js → file-mutation-g1q4s0jw.js} +18 -18
- package/dist/chunks/{aisdk-native-gd4qta3r.js → file-mutation-gd4qta3r.js} +1 -1
- package/dist/chunks/{aisdk-native-bgj4j950.js → file-mutation-gdaj5aat.js} +13 -13
- package/dist/chunks/{aisdk-native-wef24876.js → file-mutation-gdsttb99.js} +4 -4
- package/dist/chunks/{aisdk-native-q3c2jmmf.js → file-mutation-ghfgp0c3.js} +24 -24
- package/dist/chunks/{aisdk-native-4vy3dpyp.js → file-mutation-gpsxp3jx.js} +24 -24
- package/dist/chunks/{aisdk-native-rejdk2wv.js → file-mutation-grdqhvxd.js} +23 -23
- package/dist/chunks/{aisdk-native-gv6a8nnw.js → file-mutation-gv6a8nnw.js} +2 -2
- package/dist/chunks/{aisdk-native-46q6s1xt.js → file-mutation-h2g1afwd.js} +11 -11
- package/dist/chunks/{aisdk-native-dw5z7z4w.js → file-mutation-h2mtz7rf.js} +15 -15
- package/dist/chunks/{aisdk-native-893r7tvp.js → file-mutation-h53tpazp.js} +12 -12
- package/dist/chunks/{aisdk-native-v4jw97dc.js → file-mutation-h6jr292a.js} +4 -4
- package/dist/chunks/{aisdk-native-h6r3nrb9.js → file-mutation-h6r3nrb9.js} +1 -1
- package/dist/chunks/{aisdk-native-h6vf3j39.js → file-mutation-h6vf3j39.js} +1 -1
- package/dist/chunks/{aisdk-native-75my1bc5.js → file-mutation-h7w9m21h.js} +6 -6
- package/dist/chunks/{aisdk-native-5jma6wsm.js → file-mutation-hfbvy1sn.js} +16 -16
- package/dist/chunks/{aisdk-native-c24yqw6p.js → file-mutation-hfdv8wax.js} +6 -6
- package/dist/chunks/{aisdk-native-a8mcjsjd.js → file-mutation-hk26yxvn.js} +13 -13
- package/dist/chunks/{aisdk-native-mty1zc95.js → file-mutation-hm06wjfd.js} +87 -87
- package/dist/chunks/{aisdk-native-j56e64zr.js → file-mutation-j56e64zr.js} +1 -1
- package/dist/chunks/{aisdk-native-ykdn4ap7.js → file-mutation-jb05x9cx.js} +54 -54
- package/dist/chunks/{aisdk-native-00yvd0x7.js → file-mutation-jh7y3ak4.js} +6 -6
- package/dist/chunks/{aisdk-native-hp33agmj.js → file-mutation-jp61ynmd.js} +17 -17
- package/dist/chunks/{aisdk-native-nehj9kjw.js → file-mutation-jxt024yh.js} +9 -9
- package/dist/chunks/{aisdk-native-s76znbf7.js → file-mutation-jyzcxg5d.js} +17 -17
- package/dist/chunks/{aisdk-native-yk07gt9m.js → file-mutation-k1grr621.js} +25 -25
- package/dist/chunks/{aisdk-native-k3c624dm.js → file-mutation-k3c624dm.js} +3 -3
- package/dist/chunks/{aisdk-native-z761613z.js → file-mutation-kbgxh5wd.js} +10 -10
- package/dist/chunks/{aisdk-native-xt926x41.js → file-mutation-kdbxf4qp.js} +9 -9
- package/dist/chunks/{aisdk-native-pkj89tdt.js → file-mutation-khgmt31j.js} +14 -14
- package/dist/chunks/{aisdk-native-w1ad28wa.js → file-mutation-kjfdeayr.js} +8 -8
- package/dist/chunks/{aisdk-native-fy1zrqyn.js → file-mutation-kkhsm4n5.js} +28 -28
- package/dist/chunks/{aisdk-native-86qzxe6p.js → file-mutation-kkp8zx71.js} +4 -4
- package/dist/chunks/{aisdk-native-zav06jzw.js → file-mutation-kne8f3cn.js} +4 -4
- package/dist/chunks/{aisdk-native-m3fdjcah.js → file-mutation-m3fdjcah.js} +1 -1
- package/dist/chunks/{aisdk-native-m9w0rfyh.js → file-mutation-m9w0rfyh.js} +1 -1
- package/dist/chunks/{aisdk-native-phzsxtff.js → file-mutation-ma79mf5h.js} +24 -24
- package/dist/chunks/{aisdk-native-eby9q55s.js → file-mutation-mfk1rbdv.js} +27 -27
- package/dist/chunks/{aisdk-native-qzhapjzb.js → file-mutation-mgscsna9.js} +18 -18
- package/dist/chunks/{aisdk-native-2av99hgc.js → file-mutation-mn433rsw.js} +10 -10
- package/dist/chunks/{aisdk-native-rrzgzpdc.js → file-mutation-mrhf43mr.js} +13 -13
- package/dist/chunks/{aisdk-native-73tb2d7t.js → file-mutation-mvfsc1pv.js} +3 -3
- package/dist/chunks/{aisdk-native-h78yx8q2.js → file-mutation-mx4jkr8z.js} +9 -9
- package/dist/chunks/{aisdk-native-fk8xkx28.js → file-mutation-mx9vqzsb.js} +6 -6
- package/dist/chunks/{aisdk-native-ag13dntn.js → file-mutation-mzrbxmyd.js} +11 -11
- package/dist/chunks/{aisdk-native-tz061fqk.js → file-mutation-n0rcm67m.js} +17 -17
- package/dist/chunks/{aisdk-native-e0s4nb43.js → file-mutation-n22ydv4n.js} +8 -8
- package/dist/chunks/{aisdk-native-86kgpshc.js → file-mutation-nk6ab3nm.js} +16 -16
- package/dist/chunks/{aisdk-native-4vq28sgd.js → file-mutation-nng2ktcm.js} +2 -2
- package/dist/chunks/{aisdk-native-y8retmp5.js → file-mutation-npnjm836.js} +11 -11
- package/dist/chunks/{aisdk-native-eghc6w1b.js → file-mutation-nxp2ndre.js} +2 -2
- package/dist/chunks/{aisdk-native-p28j5sbe.js → file-mutation-p28j5sbe.js} +2 -2
- package/dist/chunks/{aisdk-native-7m9x3c92.js → file-mutation-pdb8ga4w.js} +12 -12
- package/dist/chunks/{aisdk-native-pjvnvgmy.js → file-mutation-pjvnvgmy.js} +1 -1
- package/dist/chunks/{aisdk-native-pknna89w.js → file-mutation-pknna89w.js} +1 -1
- package/dist/chunks/{aisdk-native-qg0jgkcp.js → file-mutation-pnv527nz.js} +9 -9
- package/dist/chunks/{aisdk-native-j21xqhbq.js → file-mutation-ptkbcdgn.js} +11 -11
- package/dist/chunks/{aisdk-native-81y7m6rg.js → file-mutation-q26d77qc.js} +9 -9
- package/dist/chunks/{aisdk-native-2nz9yxvz.js → file-mutation-q58h1swb.js} +18 -18
- package/dist/chunks/{aisdk-native-gtwa73tb.js → file-mutation-q5k1gk2r.js} +26 -26
- package/dist/chunks/{aisdk-native-pyy7gq1t.js → file-mutation-q643w91n.js} +5 -5
- package/dist/chunks/{aisdk-native-prbagxsk.js → file-mutation-q85fv5sm.js} +50 -50
- package/dist/chunks/{aisdk-native-914fvng1.js → file-mutation-qjj0dw3c.js} +35 -35
- package/dist/chunks/{aisdk-native-qsdy395h.js → file-mutation-qsdy395h.js} +1 -1
- package/dist/chunks/{aisdk-native-35agz59w.js → file-mutation-qz49fwgp.js} +6 -6
- package/dist/chunks/{aisdk-native-d6712et1.js → file-mutation-qz5dz7fn.js} +16 -16
- package/dist/chunks/{aisdk-native-eb3djvsg.js → file-mutation-r1q2hccy.js} +20 -20
- package/dist/chunks/{aisdk-native-ytynsydc.js → file-mutation-r2h83j2n.js} +7 -7
- package/dist/chunks/{aisdk-native-hz16zzfp.js → file-mutation-r98d5qx5.js} +9 -9
- package/dist/chunks/{aisdk-native-rdw6cm16.js → file-mutation-rdw6cm16.js} +1 -1
- package/dist/chunks/{aisdk-native-prh8wjy2.js → file-mutation-rk9tjfwx.js} +14 -14
- package/dist/chunks/{aisdk-native-prq7hedt.js → file-mutation-s1kvmffy.js} +9 -9
- package/dist/chunks/{aisdk-native-s4enseaf.js → file-mutation-s4enseaf.js} +2 -2
- package/dist/chunks/{aisdk-native-x3jj28dr.js → file-mutation-s8wea8bx.js} +12 -12
- package/dist/chunks/{aisdk-native-p23y0mz8.js → file-mutation-sbydz4ep.js} +3 -3
- package/dist/chunks/{aisdk-native-ge77k9jj.js → file-mutation-se8haf2r.js} +3 -3
- package/dist/chunks/{aisdk-native-nc2nfq0c.js → file-mutation-sm4ygxtf.js} +4 -4
- package/dist/chunks/{aisdk-native-ak612zyr.js → file-mutation-szbjyn1k.js} +12 -12
- package/dist/chunks/{aisdk-native-eh031js9.js → file-mutation-t9mj6jt2.js} +4 -4
- package/dist/chunks/{aisdk-native-tazgh4e4.js → file-mutation-tazgh4e4.js} +1 -1
- package/dist/chunks/{aisdk-native-tcezcvh9.js → file-mutation-tcezcvh9.js} +1 -1
- package/dist/chunks/{aisdk-native-tdstcens.js → file-mutation-tdstcens.js} +1 -1
- package/dist/chunks/{aisdk-native-5qjcaz6d.js → file-mutation-tf439zmr.js} +26 -26
- package/dist/chunks/{aisdk-native-kh4seyd8.js → file-mutation-tfthf431.js} +11 -11
- package/dist/chunks/{aisdk-native-t52mx0qx.js → file-mutation-tgkhkf8q.js} +5 -5
- package/dist/chunks/{aisdk-native-90cbbvgp.js → file-mutation-th6pfvs0.js} +33 -33
- package/dist/chunks/{aisdk-native-wf65n15g.js → file-mutation-tvs3qzmc.js} +22 -22
- package/dist/chunks/{aisdk-native-tvtrv512.js → file-mutation-tvtrv512.js} +1 -1
- package/dist/chunks/{aisdk-native-w7ng0qg3.js → file-mutation-tvzz1vvx.js} +30 -30
- package/dist/chunks/{aisdk-native-08b8veqf.js → file-mutation-tz0rw111.js} +35 -35
- package/dist/chunks/{aisdk-native-e7angbes.js → file-mutation-v3qe9rs0.js} +12 -12
- package/dist/chunks/{aisdk-native-j49xx98j.js → file-mutation-v9spj19e.js} +32 -32
- package/dist/chunks/{aisdk-native-2tr6bnzb.js → file-mutation-vackyeka.js} +10 -10
- package/dist/chunks/{aisdk-native-hm0evkep.js → file-mutation-vb0h7fes.js} +30 -30
- package/dist/chunks/{aisdk-native-dfe8djrf.js → file-mutation-ve4pfa0n.js} +4 -4
- package/dist/chunks/{aisdk-native-veqvce7d.js → file-mutation-veqvce7d.js} +1 -1
- package/dist/chunks/{aisdk-native-qgmd0z72.js → file-mutation-vf8xkcyd.js} +12 -12
- package/dist/chunks/{aisdk-native-qkvp0cth.js → file-mutation-vfmrq4xs.js} +4 -4
- package/dist/chunks/{aisdk-native-hfdr1yjj.js → file-mutation-vkxpz7g2.js} +4 -4
- package/dist/chunks/{aisdk-native-ca6j6eah.js → file-mutation-vndk1130.js} +18 -18
- package/dist/chunks/{aisdk-native-xdk9p2qn.js → file-mutation-vsp1fds9.js} +4 -4
- package/dist/chunks/{aisdk-native-twj7rfp0.js → file-mutation-vvqa46qn.js} +26 -26
- package/dist/chunks/{aisdk-native-bg2zrr75.js → file-mutation-vxfja19v.js} +3 -3
- package/dist/chunks/{aisdk-native-be2hac41.js → file-mutation-vynmvp9h.js} +9 -9
- package/dist/chunks/{aisdk-native-tm5b9rdb.js → file-mutation-vyxtkag7.js} +36 -36
- package/dist/chunks/{aisdk-native-vzcthcp8.js → file-mutation-vzcthcp8.js} +1 -1
- package/dist/chunks/{aisdk-native-66bpdn03.js → file-mutation-w15v5k7j.js} +5 -5
- package/dist/chunks/file-mutation-w1v3sb82.js +252 -0
- package/dist/chunks/{aisdk-native-w3wsvvr9.js → file-mutation-w3wsvvr9.js} +1 -1
- package/dist/chunks/{aisdk-native-1eys957h.js → file-mutation-w9jrmyp1.js} +24 -24
- package/dist/chunks/{aisdk-native-wd87259q.js → file-mutation-wd87259q.js} +1 -1
- package/dist/chunks/{aisdk-native-4nm3cgsd.js → file-mutation-whtqb0a0.js} +293 -293
- package/dist/chunks/{aisdk-native-kdezk8ga.js → file-mutation-wqexvhqz.js} +1 -1
- package/dist/chunks/{aisdk-native-wy8b5sm2.js → file-mutation-wy8b5sm2.js} +1 -1
- package/dist/chunks/{aisdk-native-x1ezjp6w.js → file-mutation-x1ezjp6w.js} +1 -1
- package/dist/chunks/{aisdk-native-cndx7de7.js → file-mutation-x2kz3kd9.js} +10 -10
- package/dist/chunks/{aisdk-native-phe6xc55.js → file-mutation-x2ncb56t.js} +22 -22
- package/dist/chunks/{aisdk-native-xfkkasph.js → file-mutation-xfkkasph.js} +1 -1
- package/dist/chunks/{aisdk-native-yj9cs6ej.js → file-mutation-xnetyx8p.js} +11 -11
- package/dist/chunks/{aisdk-native-7wh281p0.js → file-mutation-xpjszw2w.js} +11 -11
- package/dist/chunks/{aisdk-native-da31v1fa.js → file-mutation-xw3aqcjm.js} +15 -15
- package/dist/chunks/{aisdk-native-faxym4p7.js → file-mutation-xyd70p3w.js} +15 -15
- package/dist/chunks/{aisdk-native-y1fvbwt7.js → file-mutation-y1fvbwt7.js} +1 -1
- package/dist/chunks/{aisdk-native-dpkg50ah.js → file-mutation-y71avatq.js} +4 -4
- package/dist/chunks/{aisdk-native-ch95akqm.js → file-mutation-y8gdy8xa.js} +11 -11
- package/dist/chunks/{aisdk-native-yd82269j.js → file-mutation-yd2f7xje.js} +22 -22
- package/dist/chunks/{aisdk-native-kxchnaet.js → file-mutation-ye41kewf.js} +17 -17
- package/dist/chunks/{aisdk-native-apqrc77e.js → file-mutation-yjvamrjh.js} +23 -23
- package/dist/chunks/{aisdk-native-sejx4042.js → file-mutation-ymnk3hjs.js} +29 -29
- package/dist/chunks/{aisdk-native-y5sbkpav.js → file-mutation-ymw7bbdm.js} +9 -9
- package/dist/chunks/{aisdk-native-rhraev7y.js → file-mutation-yp2x3t23.js} +4 -4
- package/dist/chunks/{aisdk-native-6ma6tmn5.js → file-mutation-yq432fpn.js} +15 -15
- package/dist/chunks/{aisdk-native-yrhqyw5v.js → file-mutation-yrhqyw5v.js} +1 -1
- package/dist/chunks/{aisdk-native-xncgd71c.js → file-mutation-yw8t9dwe.js} +8 -8
- package/dist/chunks/{aisdk-native-7n1bk2y3.js → file-mutation-yxc72q6g.js} +15 -15
- package/dist/chunks/{aisdk-native-z0bkrqjs.js → file-mutation-z0bkrqjs.js} +1 -1
- package/dist/chunks/{aisdk-native-zeh9ct20.js → file-mutation-zeh9ct20.js} +2 -2
- package/dist/chunks/{aisdk-native-4yy7byfr.js → file-mutation-zgr90j8v.js} +48 -48
- package/dist/chunks/{aisdk-native-zr2ceqn5.js → file-mutation-zr2ceqn5.js} +1 -1
- package/dist/chunks/{aisdk-native-sznyev98.js → file-mutation-zw4pk1bw.js} +5 -5
- package/dist/chunks/{aisdk-native-aftgtdfq.js → file-mutation-zxfw9cda.js} +5 -5
- package/dist/chunks/{aisdk-native-zxq2ej10.js → file-mutation-zxq2ej10.js} +1 -1
- package/dist/chunks/{aisdk-native-6tkaswsb.js → file-mutation-zzm21s8t.js} +10 -10
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +80 -80
- package/dist/config/discovery.js +81 -81
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +105 -105
- package/dist/config/plugin/agent.js +124 -124
- package/dist/config/plugin/command.js +213 -213
- package/dist/config/plugin/compaction.js +161 -161
- package/dist/config/plugin/compatibility.js +140 -140
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +123 -123
- package/dist/config/plugin/image.js +122 -122
- package/dist/config/plugin/instruction.js +89 -89
- package/dist/config/plugin/location-watcher.js +122 -122
- package/dist/config/plugin/mcp.js +131 -131
- package/dist/config/plugin/policy.js +122 -122
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +124 -124
- package/dist/config/plugin/shell.js +122 -122
- package/dist/config/plugin/skill-file.js +101 -101
- package/dist/config/plugin/skill.js +143 -143
- package/dist/config/plugin/snapshot.js +122 -122
- package/dist/config/plugin/source.js +125 -125
- package/dist/config/plugin/tool-output.js +124 -124
- package/dist/config/plugin/websearch.js +121 -121
- package/dist/config/plugin/worktree.js +122 -122
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +125 -125
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +80 -80
- package/dist/database/database.js +65 -65
- 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.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- 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 +75 -75
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +368 -368
- 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 +92 -92
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +94 -94
- 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 +69 -69
- package/dist/file-access.js +103 -103
- package/dist/file-mutation.js +93 -93
- package/dist/file-retention.js +1 -1
- package/dist/file.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 +224 -224
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +96 -96
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +101 -101
- package/dist/form.js +77 -77
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +86 -86
- package/dist/generate.js +100 -100
- package/dist/git.js +10 -10
- 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 +90 -90
- 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 +359 -359
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +83 -83
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +131 -131
- package/dist/location-lifecycle.js +103 -103
- package/dist/location-mutation.js +103 -103
- package/dist/location-service-map.js +85 -85
- package/dist/location-services.js +356 -356
- package/dist/location.js +84 -84
- package/dist/mcp/client.js +90 -90
- package/dist/mcp/index.js +105 -105
- package/dist/mcp/instructions.js +125 -125
- package/dist/mcp/oauth.js +77 -77
- package/dist/mcp/stdio.js +89 -89
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +90 -90
- package/dist/model-resolver.js +95 -95
- package/dist/model.js +99 -99
- package/dist/models-dev.js +106 -106
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +77 -77
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +108 -108
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +87 -87
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +103 -103
- package/dist/plugin/command.js +100 -100
- package/dist/plugin/compaction.js +132 -132
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +217 -217
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +330 -330
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +95 -95
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +101 -101
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +89 -89
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +118 -118
- package/dist/plugin/provider/digitalocean.js +92 -92
- 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 +92 -92
- package/dist/plugin/provider/gitlab.js +90 -90
- package/dist/plugin/provider/google-vertex.js +89 -89
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +121 -121
- package/dist/plugin/provider/modal.js +91 -91
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +119 -119
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +92 -92
- package/dist/plugin/provider/openrouter.js +90 -90
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +77 -77
- package/dist/plugin/provider/prompt-cache-key.js +89 -89
- package/dist/plugin/provider/sap-ai-core.js +90 -90
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +121 -121
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +89 -89
- package/dist/plugin/provider/vllm.js +121 -121
- package/dist/plugin/provider/xai.js +90 -90
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +158 -158
- package/dist/plugin/sdk.js +75 -75
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +140 -140
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +349 -349
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +85 -85
- package/dist/plugin/vcs/hg.js +85 -85
- package/dist/plugin/warming.js +120 -120
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +228 -228
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +85 -85
- package/dist/provider.js +96 -96
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +93 -93
- package/dist/reference/instructions.js +86 -86
- package/dist/reference.js +90 -90
- package/dist/repository-cache.js +80 -80
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +94 -94
- package/dist/rpc.js +85 -85
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +151 -151
- package/dist/session/diff.js +87 -87
- 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 +220 -220
- package/dist/session/execution.js +123 -123
- package/dist/session/generate.js +150 -150
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +85 -85
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +76 -76
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +92 -92
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +118 -118
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +85 -85
- package/dist/session/prompt.js +104 -104
- package/dist/session/provider-context.js +1 -1
- package/dist/session/revert.js +89 -89
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +230 -230
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +97 -97
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +111 -111
- package/dist/session/runner/step.js +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +169 -169
- package/dist/session/shell.js +137 -137
- package/dist/session/skill.js +102 -102
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +72 -72
- package/dist/session/store.js +84 -84
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +209 -209
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +155 -155
- package/dist/session/to-session-error.js +110 -110
- package/dist/session/transfer.js +216 -216
- package/dist/session/usage.js +1 -1
- package/dist/session.js +215 -215
- 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 +11 -11
- package/dist/shell.js +139 -139
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +106 -106
- package/dist/skill.js +109 -109
- package/dist/snapshot.js +90 -90
- 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 +122 -122
- package/dist/tool/plugin/edit.js +117 -117
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +123 -123
- package/dist/tool/plugin/grep.js +123 -123
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +121 -121
- package/dist/tool/plugin/question.js +102 -102
- package/dist/tool/plugin/read.js +124 -124
- package/dist/tool/plugin/shell.js +214 -214
- package/dist/tool/plugin/skill.js +112 -112
- package/dist/tool/plugin/subagent.js +216 -216
- package/dist/tool/plugin/webfetch.js +111 -111
- package/dist/tool/plugin/websearch.js +111 -111
- package/dist/tool/plugin/write.js +121 -121
- package/dist/tool/read-filesystem.js +99 -99
- 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 +2 -2
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- 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 +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +91 -91
- 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 +90 -90
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +88 -88
- package/dist/websearch.js +83 -83
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +78 -78
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +79 -79
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +88 -88
- package/dist/worktree.js +93 -93
- package/package.json +8 -8
- package/dist/chunks/aisdk-native-0mesazry.js +0 -4
- package/dist/chunks/aisdk-native-3z6xp169.js +0 -492
- package/dist/chunks/aisdk-native-8zy7n5vr.js +0 -26
- package/dist/chunks/aisdk-native-rap9a73h.js +0 -18
- package/dist/chunks/aisdk-native-vcgb19sy.js +0 -252
- /package/dist/chunks/{aisdk-native-0qkdqm5v.js → file-mutation-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{aisdk-native-0zkw76rk.js → file-mutation-0zkw76rk.js} +0 -0
- /package/dist/chunks/{aisdk-native-17cy0kzp.js → file-mutation-17cy0kzp.js} +0 -0
- /package/dist/chunks/{aisdk-native-1cnp2v09.js → file-mutation-1cnp2v09.js} +0 -0
- /package/dist/chunks/{aisdk-native-1kg9ymc8.js → file-mutation-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{aisdk-native-24dcb14g.js → file-mutation-24dcb14g.js} +0 -0
- /package/dist/chunks/{aisdk-native-2710q6r3.js → file-mutation-2710q6r3.js} +0 -0
- /package/dist/chunks/{aisdk-native-2axfhc9x.js → file-mutation-2axfhc9x.js} +0 -0
- /package/dist/chunks/{aisdk-native-2c3vjs8z.js → file-mutation-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{aisdk-native-359p4xyc.js → file-mutation-359p4xyc.js} +0 -0
- /package/dist/chunks/{aisdk-native-3asan66x.js → file-mutation-3asan66x.js} +0 -0
- /package/dist/chunks/{aisdk-native-3v8g72cx.js → file-mutation-3v8g72cx.js} +0 -0
- /package/dist/chunks/{aisdk-native-3w5fmr99.js → file-mutation-3w5fmr99.js} +0 -0
- /package/dist/chunks/{aisdk-native-3wcehsnq.js → file-mutation-3wcehsnq.js} +0 -0
- /package/dist/chunks/{aisdk-native-43n2bw4t.js → file-mutation-43n2bw4t.js} +0 -0
- /package/dist/chunks/{aisdk-native-4knz6hnm.js → file-mutation-4knz6hnm.js} +0 -0
- /package/dist/chunks/{aisdk-native-4vcrnpx2.js → file-mutation-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{aisdk-native-4y7fprxs.js → file-mutation-4y7fprxs.js} +0 -0
- /package/dist/chunks/{aisdk-native-53557ph1.js → file-mutation-53557ph1.js} +0 -0
- /package/dist/chunks/{aisdk-native-550bvhaj.js → file-mutation-550bvhaj.js} +0 -0
- /package/dist/chunks/{aisdk-native-6prwharc.js → file-mutation-6prwharc.js} +0 -0
- /package/dist/chunks/{aisdk-native-7akdwqpd.js → file-mutation-7akdwqpd.js} +0 -0
- /package/dist/chunks/{aisdk-native-7m9af43g.js → file-mutation-7m9af43g.js} +0 -0
- /package/dist/chunks/{aisdk-native-822emrt2.js → file-mutation-822emrt2.js} +0 -0
- /package/dist/chunks/{aisdk-native-88xbtdfr.js → file-mutation-88xbtdfr.js} +0 -0
- /package/dist/chunks/{aisdk-native-8n3pysct.js → file-mutation-8n3pysct.js} +0 -0
- /package/dist/chunks/{aisdk-native-922hggd3.js → file-mutation-922hggd3.js} +0 -0
- /package/dist/chunks/{aisdk-native-9a4afbnw.js → file-mutation-9a4afbnw.js} +0 -0
- /package/dist/chunks/{aisdk-native-9rqn6x4v.js → file-mutation-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{aisdk-native-a6k6eb26.js → file-mutation-a6k6eb26.js} +0 -0
- /package/dist/chunks/{aisdk-native-af5trqkr.js → file-mutation-af5trqkr.js} +0 -0
- /package/dist/chunks/{aisdk-native-afrmfg78.js → file-mutation-afrmfg78.js} +0 -0
- /package/dist/chunks/{aisdk-native-aqzs7mqg.js → file-mutation-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{aisdk-native-atq7p7m5.js → file-mutation-atq7p7m5.js} +0 -0
- /package/dist/chunks/{aisdk-native-bkyjaxrp.js → file-mutation-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{aisdk-native-bmr6ed5q.js → file-mutation-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{aisdk-native-cf4snx6d.js → file-mutation-cf4snx6d.js} +0 -0
- /package/dist/chunks/{aisdk-native-cvy3z8tj.js → file-mutation-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{aisdk-native-d9fn303g.js → file-mutation-d9fn303g.js} +0 -0
- /package/dist/chunks/{aisdk-native-d9jj8t3e.js → file-mutation-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{aisdk-native-dajrwvna.js → file-mutation-dajrwvna.js} +0 -0
- /package/dist/chunks/{aisdk-native-dap0rakb.js → file-mutation-dap0rakb.js} +0 -0
- /package/dist/chunks/{aisdk-native-df08tz66.js → file-mutation-df08tz66.js} +0 -0
- /package/dist/chunks/{aisdk-native-dy18nga0.js → file-mutation-dy18nga0.js} +0 -0
- /package/dist/chunks/{aisdk-native-e3qxr5gk.js → file-mutation-e3qxr5gk.js} +0 -0
- /package/dist/chunks/{aisdk-native-e5kj55wp.js → file-mutation-e5kj55wp.js} +0 -0
- /package/dist/chunks/{aisdk-native-e73j6tqm.js → file-mutation-e73j6tqm.js} +0 -0
- /package/dist/chunks/{aisdk-native-ec1grn59.js → file-mutation-ec1grn59.js} +0 -0
- /package/dist/chunks/{aisdk-native-eh3zwz77.js → file-mutation-eh3zwz77.js} +0 -0
- /package/dist/chunks/{aisdk-native-emrn6kk6.js → file-mutation-emrn6kk6.js} +0 -0
- /package/dist/chunks/{aisdk-native-f0mxakyp.js → file-mutation-f0mxakyp.js} +0 -0
- /package/dist/chunks/{aisdk-native-f6n9ztr4.js → file-mutation-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{aisdk-native-faypxj3z.js → file-mutation-faypxj3z.js} +0 -0
- /package/dist/chunks/{aisdk-native-fd410y7t.js → file-mutation-fd410y7t.js} +0 -0
- /package/dist/chunks/{aisdk-native-fxgpk5d8.js → file-mutation-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{aisdk-native-g4wezp1m.js → file-mutation-g4wezp1m.js} +0 -0
- /package/dist/chunks/{aisdk-native-g86h250q.js → file-mutation-g86h250q.js} +0 -0
- /package/dist/chunks/{aisdk-native-gebd4c9n.js → file-mutation-gebd4c9n.js} +0 -0
- /package/dist/chunks/{aisdk-native-gftt206x.js → file-mutation-gftt206x.js} +0 -0
- /package/dist/chunks/{aisdk-native-hjbc5kem.js → file-mutation-hjbc5kem.js} +0 -0
- /package/dist/chunks/{aisdk-native-hk9envan.js → file-mutation-hk9envan.js} +0 -0
- /package/dist/chunks/{aisdk-native-j2ntwpah.js → file-mutation-j2ntwpah.js} +0 -0
- /package/dist/chunks/{aisdk-native-j5zkgpj8.js → file-mutation-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{aisdk-native-jjkms2e6.js → file-mutation-jjkms2e6.js} +0 -0
- /package/dist/chunks/{aisdk-native-jr7sbwjy.js → file-mutation-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{aisdk-native-jwfs4k6c.js → file-mutation-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{aisdk-native-jzg6c2d5.js → file-mutation-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{aisdk-native-mp448xyj.js → file-mutation-mp448xyj.js} +0 -0
- /package/dist/chunks/{aisdk-native-msx8hqn2.js → file-mutation-msx8hqn2.js} +0 -0
- /package/dist/chunks/{aisdk-native-n05xt0ee.js → file-mutation-n05xt0ee.js} +0 -0
- /package/dist/chunks/{aisdk-native-n3j8tn72.js → file-mutation-n3j8tn72.js} +0 -0
- /package/dist/chunks/{aisdk-native-njntx4h6.js → file-mutation-njntx4h6.js} +0 -0
- /package/dist/chunks/{aisdk-native-q3sfg36h.js → file-mutation-q3sfg36h.js} +0 -0
- /package/dist/chunks/{aisdk-native-q74kybfr.js → file-mutation-q74kybfr.js} +0 -0
- /package/dist/chunks/{aisdk-native-qaymkmh1.js → file-mutation-qaymkmh1.js} +0 -0
- /package/dist/chunks/{aisdk-native-qb87gjwd.js → file-mutation-qb87gjwd.js} +0 -0
- /package/dist/chunks/{aisdk-native-qfa1cgps.js → file-mutation-qfa1cgps.js} +0 -0
- /package/dist/chunks/{aisdk-native-qg3g05ea.js → file-mutation-qg3g05ea.js} +0 -0
- /package/dist/chunks/{aisdk-native-qrg20bc0.js → file-mutation-qrg20bc0.js} +0 -0
- /package/dist/chunks/{aisdk-native-rcb2kzg1.js → file-mutation-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{aisdk-native-sdp7kfr6.js → file-mutation-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{aisdk-native-sk3qaz4a.js → file-mutation-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{aisdk-native-ssg3fenm.js → file-mutation-ssg3fenm.js} +0 -0
- /package/dist/chunks/{aisdk-native-twg0f83k.js → file-mutation-twg0f83k.js} +0 -0
- /package/dist/chunks/{aisdk-native-w803qqfp.js → file-mutation-w803qqfp.js} +0 -0
- /package/dist/chunks/{aisdk-native-wc3fc9cn.js → file-mutation-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{aisdk-native-wer8tq1h.js → file-mutation-wer8tq1h.js} +0 -0
- /package/dist/chunks/{aisdk-native-wtztk69x.js → file-mutation-wtztk69x.js} +0 -0
- /package/dist/chunks/{aisdk-native-x0ckcb58.js → file-mutation-x0ckcb58.js} +0 -0
- /package/dist/chunks/{aisdk-native-x61499pn.js → file-mutation-x61499pn.js} +0 -0
- /package/dist/chunks/{aisdk-native-y44na4kk.js → file-mutation-y44na4kk.js} +0 -0
- /package/dist/chunks/{aisdk-native-y8cydn3q.js → file-mutation-y8cydn3q.js} +0 -0
- /package/dist/chunks/{aisdk-native-y8f7s663.js → file-mutation-y8f7s663.js} +0 -0
- /package/dist/chunks/{aisdk-native-ygaqb7jw.js → file-mutation-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{aisdk-native-ym463w8f.js → file-mutation-ym463w8f.js} +0 -0
- /package/dist/chunks/{aisdk-native-z9919s4g.js → file-mutation-z9919s4g.js} +0 -0
|
@@ -1,40 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service82,
|
|
3
3
|
node86
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-mutation-t9mj6jt2.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./file-mutation-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
10
|
+
ID16,
|
|
11
|
+
Service79,
|
|
12
|
+
node83,
|
|
13
|
+
Event19
|
|
14
|
+
} from "./file-mutation-fjvq75r9.js";
|
|
15
15
|
import {
|
|
16
16
|
key2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./file-mutation-h6r3nrb9.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
19
|
+
Service76,
|
|
20
|
+
node80
|
|
21
|
+
} from "./file-mutation-emkv37r5.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
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";
|
|
25
34
|
|
|
26
35
|
// src/provider.ts
|
|
27
36
|
var exports_provider3 = {};
|
|
28
37
|
__export(exports_provider3, {
|
|
29
38
|
AISDK_PREFIX: () => AISDK_PREFIX2,
|
|
30
39
|
Compaction: () => Compaction3,
|
|
31
|
-
Event: () =>
|
|
32
|
-
ID: () =>
|
|
40
|
+
Event: () => Event17,
|
|
41
|
+
ID: () => ID13,
|
|
33
42
|
Info: () => Info27,
|
|
34
43
|
LoadError: () => LoadError3,
|
|
35
44
|
Provider: () => exports_provider3,
|
|
36
45
|
Request: () => Request3,
|
|
37
|
-
Service: () =>
|
|
46
|
+
Service: () => Service75,
|
|
38
47
|
Settings: () => Settings2,
|
|
39
48
|
Transport: () => Transport2,
|
|
40
49
|
aisdk: () => aisdk2,
|
|
@@ -43,10 +52,10 @@ __export(exports_provider3, {
|
|
|
43
52
|
mergeHeaders: () => mergeHeaders2,
|
|
44
53
|
mergeOverlay: () => mergeOverlay2,
|
|
45
54
|
nativeSettings: () => nativeSettings2,
|
|
46
|
-
node: () =>
|
|
55
|
+
node: () => node79,
|
|
47
56
|
packageName: () => packageName2
|
|
48
57
|
});
|
|
49
|
-
import { Context, Effect
|
|
58
|
+
import { Context, Effect, Layer, Schema, Stream, Struct } from "effect";
|
|
50
59
|
import { Provider } from "@opencode/schema/provider";
|
|
51
60
|
import { Model } from "@opencode/schema/model";
|
|
52
61
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -54,255 +63,8 @@ import { isRecord } from "@opencode/ai/utils/record";
|
|
|
54
63
|
import { importModule, resolveModule } from "@opencode/util/runtime-import";
|
|
55
64
|
import { Credential } from "@opencode/schema/credential";
|
|
56
65
|
import { freeze } from "immer";
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
var exports_aisdk_native = {};
|
|
60
|
-
__export(exports_aisdk_native, {
|
|
61
|
-
AISDKNative: () => exports_aisdk_native,
|
|
62
|
-
native: () => native2,
|
|
63
|
-
rewrite: () => rewrite2
|
|
64
|
-
});
|
|
65
|
-
import { Effect, Option, Schema, Struct } from "effect";
|
|
66
|
-
function rewrite2(target, input) {
|
|
67
|
-
if (input.specifier === undefined)
|
|
68
|
-
return;
|
|
69
|
-
const plain = resolve(input.specifier, input);
|
|
70
|
-
if (!plain)
|
|
71
|
-
return;
|
|
72
|
-
const settings = decode(target.settings ?? {});
|
|
73
|
-
const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
|
|
74
|
-
const translated = options(replacement, input.modelID, settings);
|
|
75
|
-
if (target.package !== undefined || replacement !== input.specifier)
|
|
76
|
-
target.package = replacement;
|
|
77
|
-
target.settings = target.settings === undefined ? undefined : {
|
|
78
|
-
...translated.settings,
|
|
79
|
-
...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
|
|
80
|
-
};
|
|
81
|
-
target.headers = mergeHeaders2(translated.headers, target.headers);
|
|
82
|
-
target.body = mergeOverlay2(translated.body, target.body);
|
|
83
|
-
target.variants = target.variants?.map((variant) => {
|
|
84
|
-
const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
|
|
85
|
-
const headers = mergeHeaders2(overlay.headers, variant.headers);
|
|
86
|
-
const body = mergeOverlay2(overlay.body, variant.body);
|
|
87
|
-
return {
|
|
88
|
-
id: variant.id,
|
|
89
|
-
...variant.settings === undefined ? {} : { settings: overlay.settings },
|
|
90
|
-
...headers === undefined ? {} : { headers },
|
|
91
|
-
...body === undefined ? {} : { body }
|
|
92
|
-
};
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
var PACKAGES = {
|
|
96
|
-
"@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
|
|
97
|
-
"@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
|
|
98
|
-
"@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
|
|
99
|
-
"@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
|
|
100
|
-
"@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
|
|
101
|
-
"@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
|
|
102
|
-
"@ai-sdk/google": "@opencode/ai/providers/google",
|
|
103
|
-
"@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
|
|
104
|
-
"@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
|
|
105
|
-
"@ai-sdk/groq": "@opencode/ai/providers/groq",
|
|
106
|
-
"@ai-sdk/mistral": "@opencode/ai/providers/mistral",
|
|
107
|
-
"@ai-sdk/openai": "@opencode/ai/providers/openai",
|
|
108
|
-
"@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
|
|
109
|
-
"@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
|
|
110
|
-
"@ai-sdk/xai": "@opencode/ai/providers/xai",
|
|
111
|
-
"@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
|
|
112
|
-
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
113
|
-
};
|
|
114
|
-
var protocols = (name) => ({
|
|
115
|
-
"@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
|
|
116
|
-
"@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
|
|
117
|
-
"@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
|
|
118
|
-
});
|
|
119
|
-
var HOSTS = {
|
|
120
|
-
alibaba: protocols("alibaba"),
|
|
121
|
-
"alibaba-cn": protocols("alibaba"),
|
|
122
|
-
"alibaba-coding-plan": protocols("alibaba"),
|
|
123
|
-
"alibaba-coding-plan-cn": protocols("alibaba"),
|
|
124
|
-
"alibaba-token-plan": protocols("alibaba"),
|
|
125
|
-
"alibaba-token-plan-cn": protocols("alibaba"),
|
|
126
|
-
baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
|
|
127
|
-
"cloudflare-ai-gateway": {
|
|
128
|
-
"@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
129
|
-
"@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
130
|
-
"@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
131
|
-
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
132
|
-
},
|
|
133
|
-
"cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
|
|
134
|
-
deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
|
|
135
|
-
"fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
|
|
136
|
-
"google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
|
|
137
|
-
"kimi-for-coding": protocols("moonshot"),
|
|
138
|
-
meta: protocols("meta"),
|
|
139
|
-
minimax: protocols("minimax"),
|
|
140
|
-
"minimax-cn": protocols("minimax"),
|
|
141
|
-
"minimax-coding-plan": protocols("minimax"),
|
|
142
|
-
"minimax-cn-coding-plan": protocols("minimax"),
|
|
143
|
-
moonshotai: protocols("moonshot"),
|
|
144
|
-
"moonshotai-cn": protocols("moonshot"),
|
|
145
|
-
zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
146
|
-
"zai-coding-plan": protocols("zai-coding-plan"),
|
|
147
|
-
zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
148
|
-
"zhipuai-coding-plan": protocols("zai-coding-plan")
|
|
149
|
-
};
|
|
150
|
-
var NATIVE = new Set([
|
|
151
|
-
...Object.values(PACKAGES),
|
|
152
|
-
...Object.values(HOSTS).flatMap((host) => Object.values(host)),
|
|
153
|
-
"@opencode/ai/providers/azure/chat",
|
|
154
|
-
"@opencode/ai/providers/amazon-bedrock/mantle",
|
|
155
|
-
"@opencode/ai/providers/amazon-bedrock/mantle/chat",
|
|
156
|
-
"@opencode/ai/providers/amazon-bedrock/mantle/responses"
|
|
157
|
-
]);
|
|
158
|
-
function native2(npm, context) {
|
|
159
|
-
const host = HOSTS[context.providerID]?.[npm];
|
|
160
|
-
if (host)
|
|
161
|
-
return host;
|
|
162
|
-
if (npm === "@ai-sdk/amazon-bedrock/mantle")
|
|
163
|
-
return mantle(context.modelID);
|
|
164
|
-
if (npm === "@ai-sdk/azure" && context.settings?.useCompletionUrls === true)
|
|
165
|
-
return "@opencode/ai/providers/azure/chat";
|
|
166
|
-
return PACKAGES[npm];
|
|
167
|
-
}
|
|
168
|
-
var mantle = (modelID) => {
|
|
169
|
-
if (modelID === undefined)
|
|
170
|
-
return "@opencode/ai/providers/amazon-bedrock/mantle";
|
|
171
|
-
return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
|
|
172
|
-
};
|
|
173
|
-
function resolve(specifier, context) {
|
|
174
|
-
const npm = packageName2(specifier);
|
|
175
|
-
if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
|
|
176
|
-
return native2(npm, context);
|
|
177
|
-
if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
|
|
178
|
-
return mantle(context.modelID);
|
|
179
|
-
if (npm === "@opencode/ai/providers/azure/responses" && context.settings?.useCompletionUrls === true)
|
|
180
|
-
return "@opencode/ai/providers/azure/chat";
|
|
181
|
-
return NATIVE.has(npm) ? npm : undefined;
|
|
182
|
-
}
|
|
183
|
-
function options(replacement, modelID, settings) {
|
|
184
|
-
const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
|
|
185
|
-
const kept = Struct.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
|
|
186
|
-
return {
|
|
187
|
-
settings: replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
|
|
188
|
-
...settings.headers === undefined ? {} : { headers: settings.headers },
|
|
189
|
-
...settings.extraBody === undefined ? {} : { body: settings.extraBody },
|
|
190
|
-
...converse ? bedrockRequest(modelID, settings) : {},
|
|
191
|
-
...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
var BEDROCK_KEYS = [
|
|
195
|
-
"bearerToken",
|
|
196
|
-
"endpoint",
|
|
197
|
-
"credentials",
|
|
198
|
-
"credentialProvider",
|
|
199
|
-
"accessKeyId",
|
|
200
|
-
"secretAccessKey",
|
|
201
|
-
"sessionToken"
|
|
202
|
-
];
|
|
203
|
-
var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
|
|
204
|
-
function bedrockSettings(settings, converse) {
|
|
205
|
-
const region = settings.region ?? settings.credentials?.region;
|
|
206
|
-
const credentials = settings.credentials ?? settings;
|
|
207
|
-
const baseURL = settings.baseURL ?? settings.endpoint;
|
|
208
|
-
return {
|
|
209
|
-
...Struct.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
|
|
210
|
-
...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
|
|
211
|
-
...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
|
|
212
|
-
...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
|
|
213
|
-
credentials: {
|
|
214
|
-
...region === undefined ? {} : { region },
|
|
215
|
-
accessKeyId: credentials.accessKeyId,
|
|
216
|
-
secretAccessKey: credentials.secretAccessKey,
|
|
217
|
-
...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
function bedrockRequest(modelID, settings) {
|
|
223
|
-
const additional = settings.additionalModelRequestFields ?? {};
|
|
224
|
-
const reasoning = settings.reasoningConfig;
|
|
225
|
-
const anthropic = modelID?.includes("anthropic") ?? false;
|
|
226
|
-
const openai = modelID?.includes("openai.") ?? false;
|
|
227
|
-
const harmony = modelID?.includes("openai.gpt-oss") ?? false;
|
|
228
|
-
const effort = reasoning?.maxReasoningEffort;
|
|
229
|
-
const type = reasoning?.type;
|
|
230
|
-
const budget = reasoning?.budgetTokens;
|
|
231
|
-
const display = reasoning?.display;
|
|
232
|
-
const betas = settings.anthropicBeta ?? [];
|
|
233
|
-
const fields = mergeOverlay2(additional, {
|
|
234
|
-
...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
|
|
235
|
-
...anthropic && type === "enabled" && budget !== undefined ? { thinking: { type: "enabled", budget_tokens: budget } } : {},
|
|
236
|
-
...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
|
|
237
|
-
...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
|
|
238
|
-
...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
|
|
239
|
-
...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
|
|
240
|
-
...!anthropic && !openai && effort !== undefined ? {
|
|
241
|
-
reasoningConfig: {
|
|
242
|
-
...type === undefined || type === "adaptive" ? {} : { type },
|
|
243
|
-
...budget === undefined ? {} : { budgetTokens: budget },
|
|
244
|
-
maxReasoningEffort: effort
|
|
245
|
-
}
|
|
246
|
-
} : {}
|
|
247
|
-
});
|
|
248
|
-
const body = {
|
|
249
|
-
...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
|
|
250
|
-
...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
|
|
251
|
-
};
|
|
252
|
-
return Object.keys(body).length === 0 ? {} : { body };
|
|
253
|
-
}
|
|
254
|
-
var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
|
|
255
|
-
function openRouterRequest(settings) {
|
|
256
|
-
const headers = mergeHeaders2({
|
|
257
|
-
...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
|
|
258
|
-
...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
|
|
259
|
-
...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
|
|
260
|
-
}, settings.headers) ?? {};
|
|
261
|
-
return Object.keys(headers).length === 0 ? {} : { headers };
|
|
262
|
-
}
|
|
263
|
-
var lenient = (schema) => Schema.optional(Schema.UndefinedOr(schema).pipe(Schema.catchDecoding(() => Effect.succeed(Option.some(undefined)))));
|
|
264
|
-
var Credentials = Schema.Struct({
|
|
265
|
-
accessKeyId: Schema.String,
|
|
266
|
-
secretAccessKey: Schema.String,
|
|
267
|
-
sessionToken: lenient(Schema.String),
|
|
268
|
-
region: lenient(Schema.String)
|
|
269
|
-
});
|
|
270
|
-
var Legacy = Schema.StructWithRest(Schema.Struct({
|
|
271
|
-
apiKey: lenient(Schema.String),
|
|
272
|
-
baseURL: lenient(Schema.String),
|
|
273
|
-
headers: lenient(Schema.Record(Schema.String, Schema.String)),
|
|
274
|
-
extraBody: lenient(Schema.Record(Schema.String, Schema.Unknown)),
|
|
275
|
-
useCompletionUrls: lenient(Schema.Boolean),
|
|
276
|
-
auth: lenient(Schema.Literals(["bearer", "sigv4"])),
|
|
277
|
-
bearerToken: lenient(Schema.String),
|
|
278
|
-
endpoint: lenient(Schema.String),
|
|
279
|
-
region: lenient(Schema.String),
|
|
280
|
-
credentials: lenient(Credentials),
|
|
281
|
-
accessKeyId: lenient(Schema.String),
|
|
282
|
-
secretAccessKey: lenient(Schema.String),
|
|
283
|
-
sessionToken: lenient(Schema.String),
|
|
284
|
-
anthropicBeta: lenient(Schema.Array(Schema.String)),
|
|
285
|
-
serviceTier: lenient(Schema.String),
|
|
286
|
-
reasoningConfig: lenient(Schema.Struct({
|
|
287
|
-
type: lenient(Schema.String),
|
|
288
|
-
display: lenient(Schema.String),
|
|
289
|
-
maxReasoningEffort: lenient(Schema.String),
|
|
290
|
-
budgetTokens: lenient(Schema.Number)
|
|
291
|
-
})),
|
|
292
|
-
additionalModelRequestFields: lenient(Schema.StructWithRest(Schema.Struct({
|
|
293
|
-
anthropic_beta: lenient(Schema.Array(Schema.String)),
|
|
294
|
-
output_config: lenient(Schema.Record(Schema.String, Schema.Unknown)),
|
|
295
|
-
reasoning: lenient(Schema.Record(Schema.String, Schema.Unknown))
|
|
296
|
-
}), [Schema.Record(Schema.String, Schema.Unknown)])),
|
|
297
|
-
appName: lenient(Schema.String),
|
|
298
|
-
appUrl: lenient(Schema.String),
|
|
299
|
-
api_keys: lenient(Schema.Record(Schema.String, Schema.String))
|
|
300
|
-
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
301
|
-
var decode = Schema.decodeUnknownSync(Legacy);
|
|
302
|
-
|
|
303
|
-
// src/provider.ts
|
|
304
|
-
import { Event as Event16 } from "@opencode/schema/provider";
|
|
305
|
-
var ID12 = Provider.ID;
|
|
66
|
+
import { Event as Event17 } from "@opencode/schema/provider";
|
|
67
|
+
var ID13 = Provider.ID;
|
|
306
68
|
var AISDK_PREFIX2 = "aisdk:";
|
|
307
69
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
308
70
|
var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
|
|
@@ -313,12 +75,12 @@ function packageName2(value) {
|
|
|
313
75
|
return value;
|
|
314
76
|
return value.slice(AISDK_PREFIX2.length);
|
|
315
77
|
}
|
|
316
|
-
var JsonRecord =
|
|
317
|
-
var decodeJsonRecord =
|
|
78
|
+
var JsonRecord = Schema.Record(Schema.String, Schema.Json);
|
|
79
|
+
var decodeJsonRecord = Schema.decodeUnknownSync(JsonRecord);
|
|
318
80
|
|
|
319
|
-
class LoadError3 extends
|
|
320
|
-
package:
|
|
321
|
-
cause:
|
|
81
|
+
class LoadError3 extends Schema.TaggedError()("Provider.LoadError", {
|
|
82
|
+
package: Schema.String,
|
|
83
|
+
cause: Schema.Defect()
|
|
322
84
|
}) {
|
|
323
85
|
}
|
|
324
86
|
var packages = new Map;
|
|
@@ -379,12 +141,12 @@ var builtins = new Map([
|
|
|
379
141
|
() => import("@opencode/ai/providers/zai-coding-plan/responses")
|
|
380
142
|
]
|
|
381
143
|
]);
|
|
382
|
-
var loadPackage2 =
|
|
144
|
+
var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
|
|
383
145
|
const specifier = packageName2(input);
|
|
384
146
|
const builtin = builtins.get(specifier);
|
|
385
147
|
if (builtin)
|
|
386
148
|
return yield* importPackage(specifier, specifier, builtin);
|
|
387
|
-
const resolved = yield*
|
|
149
|
+
const resolved = yield* Effect.sync(() => {
|
|
388
150
|
if (specifier.startsWith("file://") || specifier.startsWith("@opencode/ai/"))
|
|
389
151
|
return specifier;
|
|
390
152
|
try {
|
|
@@ -403,8 +165,8 @@ var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
|
|
|
403
165
|
}
|
|
404
166
|
const parts = specifier.split("/");
|
|
405
167
|
const root = specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0] ?? specifier;
|
|
406
|
-
const installed = yield* npm.add(root).pipe(
|
|
407
|
-
const entrypoint = yield*
|
|
168
|
+
const installed = yield* npm.add(root).pipe(Effect.mapError((cause) => new LoadError3({ package: specifier, cause })));
|
|
169
|
+
const entrypoint = yield* Effect.try({
|
|
408
170
|
try: () => resolveModule(specifier, installed.directory),
|
|
409
171
|
catch: (cause) => new LoadError3({ package: specifier, cause })
|
|
410
172
|
});
|
|
@@ -412,7 +174,7 @@ var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
|
|
|
412
174
|
});
|
|
413
175
|
var CORE_KEYS = ["chunkTimeout", "compaction", "fetch", "timeout", "transport"];
|
|
414
176
|
function nativeSettings2(settings) {
|
|
415
|
-
return
|
|
177
|
+
return Struct.omit(settings, CORE_KEYS);
|
|
416
178
|
}
|
|
417
179
|
function mergeOverlay2(base, overlay) {
|
|
418
180
|
if (base === undefined)
|
|
@@ -445,7 +207,7 @@ var Transport2 = Provider.Transport;
|
|
|
445
207
|
var Settings2 = Provider.Settings;
|
|
446
208
|
var Info27 = Provider.Info;
|
|
447
209
|
|
|
448
|
-
class
|
|
210
|
+
class Service75 extends Context.Service()("@opencode/Provider") {
|
|
449
211
|
}
|
|
450
212
|
var definitions = new WeakMap;
|
|
451
213
|
function index(providerID, models) {
|
|
@@ -458,10 +220,10 @@ function index(providerID, models) {
|
|
|
458
220
|
definitions.set(models, indexes);
|
|
459
221
|
return result;
|
|
460
222
|
}
|
|
461
|
-
var layer = Layer.effect(
|
|
223
|
+
var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
462
224
|
const bus = yield* Service82;
|
|
463
|
-
const integrations = yield*
|
|
464
|
-
const location = yield*
|
|
225
|
+
const integrations = yield* Service79;
|
|
226
|
+
const location = yield* Service76;
|
|
465
227
|
const state = create3({
|
|
466
228
|
name: "provider",
|
|
467
229
|
initial: () => new Map,
|
|
@@ -540,9 +302,9 @@ var layer = Layer.effect(Service73, Effect2.gen(function* () {
|
|
|
540
302
|
},
|
|
541
303
|
notify: () => notify
|
|
542
304
|
});
|
|
543
|
-
yield*
|
|
305
|
+
yield* Effect.addFinalizer(() => shutdown2(state.reload()));
|
|
544
306
|
let cached;
|
|
545
|
-
const snapshot =
|
|
307
|
+
const snapshot = Effect.fn("Provider.snapshot")(function* () {
|
|
546
308
|
while (true) {
|
|
547
309
|
const revision = integrations.revision();
|
|
548
310
|
const records = state.get();
|
|
@@ -553,7 +315,7 @@ var layer = Layer.effect(Service73, Effect2.gen(function* () {
|
|
|
553
315
|
const available = Array.from(records.values()).filter((record) => {
|
|
554
316
|
if (record.provider.activation === "disabled")
|
|
555
317
|
return false;
|
|
556
|
-
const integration = byID.get(record.provider.integrationID ??
|
|
318
|
+
const integration = byID.get(record.provider.integrationID ?? ID16.make(record.provider.id));
|
|
557
319
|
if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
|
|
558
320
|
return false;
|
|
559
321
|
if (record.provider.activation === "enabled")
|
|
@@ -570,7 +332,7 @@ var layer = Layer.effect(Service73, Effect2.gen(function* () {
|
|
|
570
332
|
}
|
|
571
333
|
});
|
|
572
334
|
let published;
|
|
573
|
-
const notify =
|
|
335
|
+
const notify = Effect.gen(function* () {
|
|
574
336
|
const value = yield* snapshot();
|
|
575
337
|
if (value === published)
|
|
576
338
|
return;
|
|
@@ -579,19 +341,19 @@ var layer = Layer.effect(Service73, Effect2.gen(function* () {
|
|
|
579
341
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
580
342
|
});
|
|
581
343
|
});
|
|
582
|
-
yield* bus.subscribe([
|
|
583
|
-
return
|
|
344
|
+
yield* bus.subscribe([Event19.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
345
|
+
return Service75.of({
|
|
584
346
|
transform: state.transform,
|
|
585
347
|
reload: state.reload,
|
|
586
|
-
get:
|
|
587
|
-
all:
|
|
588
|
-
available:
|
|
348
|
+
get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
349
|
+
all: Effect.fn("Provider.all")(() => Effect.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
|
|
350
|
+
available: Effect.fn("Provider.available")(() => snapshot().pipe(Effect.map((value) => value.providers))),
|
|
589
351
|
snapshot
|
|
590
352
|
});
|
|
591
353
|
}));
|
|
592
|
-
var
|
|
593
|
-
var importPackage =
|
|
594
|
-
const module = yield*
|
|
354
|
+
var node79 = makeLocationNode({ service: Service75, layer, deps: [node86, node83, node80] });
|
|
355
|
+
var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
356
|
+
const module = yield* Effect.tryPromise({
|
|
595
357
|
try: () => {
|
|
596
358
|
const existing = packages.get(entrypoint);
|
|
597
359
|
if (existing)
|
|
@@ -611,4 +373,242 @@ var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, e
|
|
|
611
373
|
return module;
|
|
612
374
|
});
|
|
613
375
|
|
|
614
|
-
|
|
376
|
+
// src/aisdk-native.ts
|
|
377
|
+
function rewrite2(target, input) {
|
|
378
|
+
if (input.specifier === undefined)
|
|
379
|
+
return;
|
|
380
|
+
const plain = resolve(input.specifier, input);
|
|
381
|
+
if (!plain)
|
|
382
|
+
return;
|
|
383
|
+
const settings = decode(target.settings ?? {});
|
|
384
|
+
const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
|
|
385
|
+
const translated = options(replacement, input.modelID, settings);
|
|
386
|
+
if (target.package !== undefined || replacement !== input.specifier)
|
|
387
|
+
target.package = replacement;
|
|
388
|
+
target.settings = target.settings === undefined ? undefined : {
|
|
389
|
+
...translated.settings,
|
|
390
|
+
...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
|
|
391
|
+
};
|
|
392
|
+
target.headers = mergeHeaders2(translated.headers, target.headers);
|
|
393
|
+
target.body = mergeOverlay2(translated.body, target.body);
|
|
394
|
+
target.variants = target.variants?.map((variant) => {
|
|
395
|
+
const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
|
|
396
|
+
const headers = mergeHeaders2(overlay.headers, variant.headers);
|
|
397
|
+
const body = mergeOverlay2(overlay.body, variant.body);
|
|
398
|
+
return {
|
|
399
|
+
id: variant.id,
|
|
400
|
+
...variant.settings === undefined ? {} : { settings: overlay.settings },
|
|
401
|
+
...headers === undefined ? {} : { headers },
|
|
402
|
+
...body === undefined ? {} : { body }
|
|
403
|
+
};
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
var PACKAGES = {
|
|
407
|
+
"@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
|
|
408
|
+
"@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
|
|
409
|
+
"@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
|
|
410
|
+
"@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
|
|
411
|
+
"@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
|
|
412
|
+
"@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
|
|
413
|
+
"@ai-sdk/google": "@opencode/ai/providers/google",
|
|
414
|
+
"@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
|
|
415
|
+
"@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
|
|
416
|
+
"@ai-sdk/groq": "@opencode/ai/providers/groq",
|
|
417
|
+
"@ai-sdk/mistral": "@opencode/ai/providers/mistral",
|
|
418
|
+
"@ai-sdk/openai": "@opencode/ai/providers/openai",
|
|
419
|
+
"@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
|
|
420
|
+
"@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
|
|
421
|
+
"@ai-sdk/xai": "@opencode/ai/providers/xai",
|
|
422
|
+
"@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
|
|
423
|
+
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
424
|
+
};
|
|
425
|
+
var protocols = (name) => ({
|
|
426
|
+
"@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
|
|
427
|
+
"@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
|
|
428
|
+
"@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
|
|
429
|
+
});
|
|
430
|
+
var HOSTS = {
|
|
431
|
+
alibaba: protocols("alibaba"),
|
|
432
|
+
"alibaba-cn": protocols("alibaba"),
|
|
433
|
+
"alibaba-coding-plan": protocols("alibaba"),
|
|
434
|
+
"alibaba-coding-plan-cn": protocols("alibaba"),
|
|
435
|
+
"alibaba-token-plan": protocols("alibaba"),
|
|
436
|
+
"alibaba-token-plan-cn": protocols("alibaba"),
|
|
437
|
+
baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
|
|
438
|
+
"cloudflare-ai-gateway": {
|
|
439
|
+
"@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
440
|
+
"@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
441
|
+
"@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
442
|
+
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
443
|
+
},
|
|
444
|
+
"cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
|
|
445
|
+
deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
|
|
446
|
+
"fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
|
|
447
|
+
"google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
|
|
448
|
+
"kimi-for-coding": protocols("moonshot"),
|
|
449
|
+
meta: protocols("meta"),
|
|
450
|
+
minimax: protocols("minimax"),
|
|
451
|
+
"minimax-cn": protocols("minimax"),
|
|
452
|
+
"minimax-coding-plan": protocols("minimax"),
|
|
453
|
+
"minimax-cn-coding-plan": protocols("minimax"),
|
|
454
|
+
moonshotai: protocols("moonshot"),
|
|
455
|
+
"moonshotai-cn": protocols("moonshot"),
|
|
456
|
+
zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
457
|
+
"zai-coding-plan": protocols("zai-coding-plan"),
|
|
458
|
+
zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
459
|
+
"zhipuai-coding-plan": protocols("zai-coding-plan")
|
|
460
|
+
};
|
|
461
|
+
var NATIVE = new Set([
|
|
462
|
+
...Object.values(PACKAGES),
|
|
463
|
+
...Object.values(HOSTS).flatMap((host) => Object.values(host)),
|
|
464
|
+
"@opencode/ai/providers/azure/chat",
|
|
465
|
+
"@opencode/ai/providers/amazon-bedrock/mantle",
|
|
466
|
+
"@opencode/ai/providers/amazon-bedrock/mantle/chat",
|
|
467
|
+
"@opencode/ai/providers/amazon-bedrock/mantle/responses"
|
|
468
|
+
]);
|
|
469
|
+
function native2(npm, context) {
|
|
470
|
+
const host = HOSTS[context.providerID]?.[npm];
|
|
471
|
+
if (host)
|
|
472
|
+
return host;
|
|
473
|
+
if (npm === "@ai-sdk/amazon-bedrock/mantle")
|
|
474
|
+
return mantle(context.modelID);
|
|
475
|
+
if (npm === "@ai-sdk/azure" && context.settings?.useCompletionUrls === true)
|
|
476
|
+
return "@opencode/ai/providers/azure/chat";
|
|
477
|
+
return PACKAGES[npm];
|
|
478
|
+
}
|
|
479
|
+
var mantle = (modelID) => {
|
|
480
|
+
if (modelID === undefined)
|
|
481
|
+
return "@opencode/ai/providers/amazon-bedrock/mantle";
|
|
482
|
+
return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
|
|
483
|
+
};
|
|
484
|
+
function resolve(specifier, context) {
|
|
485
|
+
const npm = packageName2(specifier);
|
|
486
|
+
if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
|
|
487
|
+
return native2(npm, context);
|
|
488
|
+
if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
|
|
489
|
+
return mantle(context.modelID);
|
|
490
|
+
if (npm === "@opencode/ai/providers/azure/responses" && context.settings?.useCompletionUrls === true)
|
|
491
|
+
return "@opencode/ai/providers/azure/chat";
|
|
492
|
+
return NATIVE.has(npm) ? npm : undefined;
|
|
493
|
+
}
|
|
494
|
+
function options(replacement, modelID, settings) {
|
|
495
|
+
const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
|
|
496
|
+
const kept = Struct2.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
|
|
497
|
+
return {
|
|
498
|
+
settings: replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
|
|
499
|
+
...settings.headers === undefined ? {} : { headers: settings.headers },
|
|
500
|
+
...settings.extraBody === undefined ? {} : { body: settings.extraBody },
|
|
501
|
+
...converse ? bedrockRequest(modelID, settings) : {},
|
|
502
|
+
...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
|
|
503
|
+
};
|
|
504
|
+
}
|
|
505
|
+
var BEDROCK_KEYS = [
|
|
506
|
+
"bearerToken",
|
|
507
|
+
"endpoint",
|
|
508
|
+
"credentials",
|
|
509
|
+
"credentialProvider",
|
|
510
|
+
"accessKeyId",
|
|
511
|
+
"secretAccessKey",
|
|
512
|
+
"sessionToken"
|
|
513
|
+
];
|
|
514
|
+
var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
|
|
515
|
+
function bedrockSettings(settings, converse) {
|
|
516
|
+
const region = settings.region ?? settings.credentials?.region;
|
|
517
|
+
const credentials = settings.credentials ?? settings;
|
|
518
|
+
const baseURL = settings.baseURL ?? settings.endpoint;
|
|
519
|
+
return {
|
|
520
|
+
...Struct2.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
|
|
521
|
+
...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
|
|
522
|
+
...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
|
|
523
|
+
...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
|
|
524
|
+
credentials: {
|
|
525
|
+
...region === undefined ? {} : { region },
|
|
526
|
+
accessKeyId: credentials.accessKeyId,
|
|
527
|
+
secretAccessKey: credentials.secretAccessKey,
|
|
528
|
+
...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
function bedrockRequest(modelID, settings) {
|
|
534
|
+
const additional = settings.additionalModelRequestFields ?? {};
|
|
535
|
+
const reasoning = settings.reasoningConfig;
|
|
536
|
+
const anthropic = modelID?.includes("anthropic") ?? false;
|
|
537
|
+
const openai = modelID?.includes("openai.") ?? false;
|
|
538
|
+
const harmony = modelID?.includes("openai.gpt-oss") ?? false;
|
|
539
|
+
const effort = reasoning?.maxReasoningEffort;
|
|
540
|
+
const type = reasoning?.type;
|
|
541
|
+
const budget = reasoning?.budgetTokens;
|
|
542
|
+
const display = reasoning?.display;
|
|
543
|
+
const betas = settings.anthropicBeta ?? [];
|
|
544
|
+
const fields = mergeOverlay2(additional, {
|
|
545
|
+
...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
|
|
546
|
+
...anthropic && type === "enabled" && budget !== undefined ? { thinking: { type: "enabled", budget_tokens: budget } } : {},
|
|
547
|
+
...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
|
|
548
|
+
...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
|
|
549
|
+
...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
|
|
550
|
+
...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
|
|
551
|
+
...!anthropic && !openai && effort !== undefined ? {
|
|
552
|
+
reasoningConfig: {
|
|
553
|
+
...type === undefined || type === "adaptive" ? {} : { type },
|
|
554
|
+
...budget === undefined ? {} : { budgetTokens: budget },
|
|
555
|
+
maxReasoningEffort: effort
|
|
556
|
+
}
|
|
557
|
+
} : {}
|
|
558
|
+
});
|
|
559
|
+
const body = {
|
|
560
|
+
...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
|
|
561
|
+
...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
|
|
562
|
+
};
|
|
563
|
+
return Object.keys(body).length === 0 ? {} : { body };
|
|
564
|
+
}
|
|
565
|
+
var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
|
|
566
|
+
function openRouterRequest(settings) {
|
|
567
|
+
const headers = mergeHeaders2({
|
|
568
|
+
...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
|
|
569
|
+
...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
|
|
570
|
+
...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
|
|
571
|
+
}, settings.headers) ?? {};
|
|
572
|
+
return Object.keys(headers).length === 0 ? {} : { headers };
|
|
573
|
+
}
|
|
574
|
+
var lenient = (schema) => Schema2.optional(Schema2.UndefinedOr(schema).pipe(Schema2.catchDecoding(() => Effect2.succeed(Option.some(undefined)))));
|
|
575
|
+
var Credentials = Schema2.Struct({
|
|
576
|
+
accessKeyId: Schema2.String,
|
|
577
|
+
secretAccessKey: Schema2.String,
|
|
578
|
+
sessionToken: lenient(Schema2.String),
|
|
579
|
+
region: lenient(Schema2.String)
|
|
580
|
+
});
|
|
581
|
+
var Legacy = Schema2.StructWithRest(Schema2.Struct({
|
|
582
|
+
apiKey: lenient(Schema2.String),
|
|
583
|
+
baseURL: lenient(Schema2.String),
|
|
584
|
+
headers: lenient(Schema2.Record(Schema2.String, Schema2.String)),
|
|
585
|
+
extraBody: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
|
|
586
|
+
useCompletionUrls: lenient(Schema2.Boolean),
|
|
587
|
+
auth: lenient(Schema2.Literals(["bearer", "sigv4"])),
|
|
588
|
+
bearerToken: lenient(Schema2.String),
|
|
589
|
+
endpoint: lenient(Schema2.String),
|
|
590
|
+
region: lenient(Schema2.String),
|
|
591
|
+
credentials: lenient(Credentials),
|
|
592
|
+
accessKeyId: lenient(Schema2.String),
|
|
593
|
+
secretAccessKey: lenient(Schema2.String),
|
|
594
|
+
sessionToken: lenient(Schema2.String),
|
|
595
|
+
anthropicBeta: lenient(Schema2.Array(Schema2.String)),
|
|
596
|
+
serviceTier: lenient(Schema2.String),
|
|
597
|
+
reasoningConfig: lenient(Schema2.Struct({
|
|
598
|
+
type: lenient(Schema2.String),
|
|
599
|
+
display: lenient(Schema2.String),
|
|
600
|
+
maxReasoningEffort: lenient(Schema2.String),
|
|
601
|
+
budgetTokens: lenient(Schema2.Number)
|
|
602
|
+
})),
|
|
603
|
+
additionalModelRequestFields: lenient(Schema2.StructWithRest(Schema2.Struct({
|
|
604
|
+
anthropic_beta: lenient(Schema2.Array(Schema2.String)),
|
|
605
|
+
output_config: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
|
|
606
|
+
reasoning: lenient(Schema2.Record(Schema2.String, Schema2.Unknown))
|
|
607
|
+
}), [Schema2.Record(Schema2.String, Schema2.Unknown)])),
|
|
608
|
+
appName: lenient(Schema2.String),
|
|
609
|
+
appUrl: lenient(Schema2.String),
|
|
610
|
+
api_keys: lenient(Schema2.Record(Schema2.String, Schema2.String))
|
|
611
|
+
}), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
|
|
612
|
+
var decode = Schema2.decodeUnknownSync(Legacy);
|
|
613
|
+
|
|
614
|
+
export { rewrite2, native2, exports_aisdk_native, ID13, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info27, Service75, node79, exports_provider3, Event17 };
|