@opencode/core 0.0.0-dev-19884 → 0.0.0-dev-19886
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 +82 -82
- package/dist/aisdk-native.js +88 -88
- package/dist/aisdk.js +93 -93
- package/dist/app.js +9 -9
- package/dist/bus.js +72 -72
- package/dist/chunks/{ripgrep-wa8gayma.js → schema-00kf9hgr.js} +84 -84
- package/dist/chunks/{ripgrep-tvmycyz8.js → schema-0g5nqv50.js} +5 -5
- package/dist/chunks/{ripgrep-yh6dn83m.js → schema-0jpk42xm.js} +12 -12
- package/dist/chunks/{ripgrep-vzfyj1ka.js → schema-0jpvnn7p.js} +10 -10
- package/dist/chunks/schema-0mesazry.js +4 -0
- package/dist/chunks/{ripgrep-0paq2nw3.js → schema-0paq2nw3.js} +1 -1
- package/dist/chunks/{ripgrep-0q0f95c6.js → schema-0q0f95c6.js} +1 -1
- package/dist/chunks/{ripgrep-jkka0c6f.js → schema-0tzy42a9.js} +8 -8
- package/dist/chunks/{ripgrep-ap58tr72.js → schema-0vwe55z4.js} +17 -17
- package/dist/chunks/{ripgrep-zb5wqgkq.js → schema-0ztt3je3.js} +47 -47
- package/dist/chunks/{ripgrep-p51w04et.js → schema-14h2k2kq.js} +8 -8
- package/dist/chunks/schema-18yxx2zm.js +252 -0
- package/dist/chunks/schema-1d3x4d8x.js +26 -0
- package/dist/chunks/{ripgrep-1dazxqgg.js → schema-1dazxqgg.js} +2 -2
- package/dist/chunks/{ripgrep-naw1myqz.js → schema-1f65vsja.js} +22 -22
- package/dist/chunks/{ripgrep-21r38tys.js → schema-21r38tys.js} +1 -1
- package/dist/chunks/{ripgrep-0gaj4617.js → schema-23pqda6t.js} +6 -6
- package/dist/chunks/{ripgrep-2402vzrj.js → schema-2402vzrj.js} +1 -1
- package/dist/chunks/{ripgrep-bccb6npm.js → schema-26k5bknw.js} +4 -4
- package/dist/chunks/{ripgrep-rvtvfpzy.js → schema-27fda2dc.js} +6 -6
- package/dist/chunks/{ripgrep-8q3y7ehd.js → schema-27nsnsgt.js} +21 -21
- package/dist/chunks/{ripgrep-2a5m3afh.js → schema-2a5m3afh.js} +1 -1
- package/dist/chunks/{ripgrep-43h198y8.js → schema-2eegacq4.js} +8 -8
- package/dist/chunks/{ripgrep-w9k11mtt.js → schema-2ew1f5mw.js} +16 -16
- package/dist/chunks/{ripgrep-r83etpq8.js → schema-2hgcm4ge.js} +6 -6
- package/dist/chunks/{ripgrep-7dqw4kz8.js → schema-2k8khapm.js} +5 -5
- package/dist/chunks/{ripgrep-xrbsbc41.js → schema-2vvmycb5.js} +7 -7
- package/dist/chunks/{ripgrep-j68eznfn.js → schema-2zb4g7yy.js} +3 -3
- package/dist/chunks/{ripgrep-vfpvfcad.js → schema-31j0m047.js} +31 -31
- package/dist/chunks/{ripgrep-mfqp6xfm.js → schema-33w4ejhs.js} +9 -9
- package/dist/chunks/{ripgrep-m2cwgzsz.js → schema-35xpfejb.js} +25 -25
- package/dist/chunks/{ripgrep-3fc6dm20.js → schema-3fc6dm20.js} +1 -1
- package/dist/chunks/{ripgrep-3hepkmqq.js → schema-3hepkmqq.js} +1 -1
- package/dist/chunks/{ripgrep-4p8111z8.js → schema-3pjcshv1.js} +16 -16
- package/dist/chunks/{ripgrep-3smtnn6g.js → schema-3smtnn6g.js} +1 -1
- package/dist/chunks/{ripgrep-3tvqynh2.js → schema-3tvqynh2.js} +1 -1
- package/dist/chunks/{ripgrep-595ycqh3.js → schema-3xsz3272.js} +12 -12
- package/dist/chunks/{ripgrep-dmpxpvyd.js → schema-430xfz4c.js} +11 -11
- package/dist/chunks/{ripgrep-4dgbcxzg.js → schema-44h5tttr.js} +4 -4
- package/dist/chunks/{ripgrep-ydzmr5w4.js → schema-46dkj1aa.js} +24 -24
- package/dist/chunks/{ripgrep-hqh6p6yn.js → schema-49g14z3y.js} +4 -4
- package/dist/chunks/{ripgrep-00drppa2.js → schema-4ap4625a.js} +10 -10
- package/dist/chunks/{ripgrep-c8br9twv.js → schema-4dgwxax1.js} +19 -19
- package/dist/chunks/{ripgrep-fy1t25hs.js → schema-4dxzcd5q.js} +10 -10
- package/dist/chunks/{ripgrep-n91rd0qh.js → schema-4hndh7d1.js} +302 -302
- package/dist/chunks/{ripgrep-3e38qjvr.js → schema-4s8c6nrb.js} +22 -22
- package/dist/chunks/{ripgrep-xz99hjyp.js → schema-53614fhz.js} +8 -8
- package/dist/chunks/{ripgrep-57ez7d0k.js → schema-57ez7d0k.js} +2 -2
- package/dist/chunks/{ripgrep-9k4hstdt.js → schema-5cm2z16n.js} +42 -42
- package/dist/chunks/{ripgrep-5daktx2q.js → schema-5daktx2q.js} +1 -1
- package/dist/chunks/{ripgrep-p3jb5j7b.js → schema-5gz442hs.js} +33 -33
- package/dist/chunks/{ripgrep-bf0ztrs3.js → schema-5q02cxx3.js} +4 -4
- package/dist/chunks/{ripgrep-e3qxr5gk.js → schema-5qd3pb7m.js} +2 -2
- package/dist/chunks/{ripgrep-5t3nmthw.js → schema-5t3nmthw.js} +2 -2
- package/dist/chunks/{ripgrep-t0w9tswa.js → schema-61bj6qxp.js} +11 -11
- package/dist/chunks/{ripgrep-62cs28jb.js → schema-620c9p0e.js} +5 -5
- package/dist/chunks/{ripgrep-tv5x03kr.js → schema-62dkdkge.js} +33 -33
- package/dist/chunks/{ripgrep-vyrd71eq.js → schema-63zbbs1j.js} +11 -11
- package/dist/chunks/{ripgrep-669tq793.js → schema-669tq793.js} +1 -1
- package/dist/chunks/{ripgrep-0996nyz8.js → schema-6hjx5zpb.js} +5 -5
- package/dist/chunks/{ripgrep-5jbzwjgm.js → schema-6hwb3kgj.js} +17 -17
- package/dist/chunks/{ripgrep-6msgmcgs.js → schema-6msgmcgs.js} +1 -1
- package/dist/chunks/{ripgrep-tgaz0dtb.js → schema-6phpyabk.js} +5 -5
- package/dist/chunks/{ripgrep-p39gsrf5.js → schema-6ybjtjh6.js} +43 -43
- package/dist/chunks/{ripgrep-nyqx1cb3.js → schema-705e2ap1.js} +5 -5
- package/dist/chunks/{ripgrep-pzz9wtjp.js → schema-715jhr6j.js} +4 -4
- package/dist/chunks/{ripgrep-n06c4v83.js → schema-77dpymfj.js} +41 -41
- package/dist/chunks/{ripgrep-qfpwt3wt.js → schema-788gb7w8.js} +11 -11
- package/dist/chunks/{ripgrep-v19709j4.js → schema-7atvkj40.js} +30 -30
- package/dist/chunks/{ripgrep-7bmhse3q.js → schema-7bmhse3q.js} +1 -1
- package/dist/chunks/{ripgrep-wqkfmf7p.js → schema-7erxeq1k.js} +10 -10
- package/dist/chunks/{ripgrep-b46t8qcq.js → schema-7stb2mtn.js} +11 -11
- package/dist/chunks/{ripgrep-sh1v16f4.js → schema-82dy80yx.js} +30 -30
- package/dist/chunks/{ripgrep-xvyew5bh.js → schema-87sxhkrx.js} +296 -296
- package/dist/chunks/{ripgrep-ztyn76tz.js → schema-89kj8kbd.js} +12 -12
- package/dist/chunks/{ripgrep-8d7r5vzw.js → schema-8d7r5vzw.js} +1 -1
- package/dist/chunks/{ripgrep-f06c2dtw.js → schema-8gb5m816.js} +15 -15
- package/dist/chunks/{ripgrep-bpagpxd9.js → schema-8mrsjb6t.js} +9 -9
- package/dist/chunks/{ripgrep-dj2t23y0.js → schema-8p4f9s12.js} +2 -2
- package/dist/chunks/{ripgrep-g5xx7w73.js → schema-8pje5h6d.js} +13 -13
- package/dist/chunks/{ripgrep-xgw0etvz.js → schema-8z86kdgr.js} +2 -2
- package/dist/chunks/{ripgrep-dw1q9xcc.js → schema-8zxj1h0d.js} +30 -30
- package/dist/chunks/{ripgrep-9xbg11md.js → schema-96hmnfjn.js} +24 -24
- package/dist/chunks/{ripgrep-x8dfedm0.js → schema-99g1e68g.js} +5 -5
- package/dist/chunks/{ripgrep-y34kqq23.js → schema-9hhss0a2.js} +22 -22
- package/dist/chunks/{ripgrep-02kg8zjk.js → schema-9kn500pz.js} +30 -30
- package/dist/chunks/{ripgrep-mqc96y4z.js → schema-9vpczy1a.js} +11 -11
- package/dist/chunks/{ripgrep-7pnjd3fd.js → schema-9waxqwzk.js} +13 -13
- package/dist/chunks/{ripgrep-hyr91dj2.js → schema-9ydytpw2.js} +3 -3
- package/dist/chunks/{ripgrep-d2aac7k2.js → schema-a1a50ys5.js} +5 -5
- package/dist/chunks/{ripgrep-5c4hm403.js → schema-a1bz86dw.js} +3 -3
- package/dist/chunks/{ripgrep-bvvrmhe1.js → schema-a48qxba4.js} +17 -17
- package/dist/chunks/{ripgrep-g790jytp.js → schema-a67c24cf.js} +47 -47
- package/dist/chunks/{ripgrep-kk00bynn.js → schema-a8bn8zg0.js} +21 -21
- package/dist/chunks/{ripgrep-aaet6srn.js → schema-aaet6srn.js} +2 -2
- package/dist/chunks/{ripgrep-2k97ax98.js → schema-ac987dqs.js} +3 -3
- package/dist/chunks/{ripgrep-1yv162eq.js → schema-ajed71fh.js} +4 -4
- package/dist/chunks/{ripgrep-qdcqwhjs.js → schema-am548r7s.js} +20 -20
- package/dist/chunks/{ripgrep-ad9f3vzh.js → schema-asc6r62w.js} +18 -18
- package/dist/chunks/{ripgrep-1nrdxkt6.js → schema-aw4pcnvy.js} +20 -20
- package/dist/chunks/{ripgrep-jntbakwj.js → schema-awv3wa2m.js} +13 -13
- package/dist/chunks/{ripgrep-b6gygkdw.js → schema-b6gygkdw.js} +2 -2
- package/dist/chunks/{ripgrep-ryt7pzqc.js → schema-b97cbvw3.js} +1 -1
- package/dist/chunks/{ripgrep-bywg4f5n.js → schema-ba2a7ra8.js} +41 -41
- package/dist/chunks/{ripgrep-p1nm93x7.js → schema-bgxcxs0p.js} +5 -5
- package/dist/chunks/{ripgrep-jmphe03k.js → schema-bha4atvq.js} +4 -4
- package/dist/chunks/{ripgrep-txwbxve6.js → schema-bx5rv0r1.js} +16 -16
- package/dist/chunks/{ripgrep-8p9yqp1g.js → schema-by61nw3t.js} +20 -20
- package/dist/chunks/{ripgrep-qd7cft6p.js → schema-c47c9t6q.js} +9 -9
- package/dist/chunks/{ripgrep-zmgjwfd0.js → schema-c4h0rghh.js} +39 -39
- package/dist/chunks/{ripgrep-m0jqrx5p.js → schema-cfpkc3c9.js} +2 -2
- package/dist/chunks/{ripgrep-9dsm0yy8.js → schema-crd295za.js} +9 -9
- package/dist/chunks/{ripgrep-98cb2jh6.js → schema-crhmmv87.js} +168 -168
- package/dist/chunks/{ripgrep-jhewz3v4.js → schema-cv1ac0c6.js} +13 -13
- package/dist/chunks/{ripgrep-fm2qvscf.js → schema-d216944b.js} +7 -7
- package/dist/chunks/{ripgrep-4sra3427.js → schema-d8ekvs43.js} +14 -14
- package/dist/chunks/{ripgrep-47axers8.js → schema-d8j7pmpr.js} +23 -23
- package/dist/chunks/{ripgrep-wws8y0j5.js → schema-daqxfzz2.js} +7 -7
- package/dist/chunks/{ripgrep-x9ayx9my.js → schema-dcyzc3a4.js} +5 -5
- package/dist/chunks/{ripgrep-hvtp2efv.js → schema-dgkjxssa.js} +27 -27
- package/dist/chunks/{ripgrep-ena3twxc.js → schema-dhexvm6n.js} +33 -33
- package/dist/chunks/{ripgrep-sgwh5nyn.js → schema-dpahde6h.js} +8 -8
- package/dist/chunks/{ripgrep-p6r503wj.js → schema-dqd6nw8h.js} +26 -26
- package/dist/chunks/{ripgrep-qqeeq2t9.js → schema-drwq78ky.js} +7 -7
- package/dist/chunks/{ripgrep-erbxqsgg.js → schema-dvym74kg.js} +15 -15
- package/dist/chunks/{ripgrep-m6yarymk.js → schema-dzx47qqb.js} +24 -24
- package/dist/chunks/{ripgrep-dm8e8cqc.js → schema-e0vrtrrw.js} +14 -14
- package/dist/chunks/{ripgrep-0rrms05z.js → schema-e8f72s9g.js} +30 -30
- package/dist/chunks/{ripgrep-77b9qh7g.js → schema-e9j26s5a.js} +13 -13
- package/dist/chunks/{ripgrep-t550f9t1.js → schema-eaj1djv9.js} +8 -8
- package/dist/chunks/{ripgrep-ef5x83kb.js → schema-ef5x83kb.js} +1 -1
- package/dist/chunks/{ripgrep-j75a2xa8.js → schema-efx6pn78.js} +9 -9
- package/dist/chunks/{ripgrep-ranyrkk2.js → schema-eh3tg283.js} +11 -11
- package/dist/chunks/{ripgrep-a5ws9a8a.js → schema-epqfg76v.js} +13 -13
- package/dist/chunks/{ripgrep-erw5rpbs.js → schema-erw5rpbs.js} +2 -2
- package/dist/chunks/{ripgrep-etq0c3wd.js → schema-etq0c3wd.js} +1 -1
- package/dist/chunks/{ripgrep-3cfzdc8e.js → schema-evbgk2k8.js} +5 -5
- package/dist/chunks/{ripgrep-g5rgvkph.js → schema-f11mwxkr.js} +26 -26
- package/dist/chunks/{ripgrep-m3wcxb4h.js → schema-f1pvj740.js} +18 -18
- package/dist/chunks/{ripgrep-mw03hhna.js → schema-f68wk4tz.js} +18 -18
- package/dist/chunks/{ripgrep-hdnk95c8.js → schema-f828m53h.js} +2 -2
- package/dist/chunks/{ripgrep-tp9tgz8k.js → schema-fg4bngfk.js} +11 -11
- package/dist/chunks/{ripgrep-fxbjtjnd.js → schema-fxbjtjnd.js} +1 -1
- package/dist/chunks/{ripgrep-1ajx6rf5.js → schema-g0445xdp.js} +8 -8
- package/dist/chunks/{ripgrep-gd4qta3r.js → schema-gd4qta3r.js} +1 -1
- package/dist/chunks/{ripgrep-88fr6h4a.js → schema-gh1qyndc.js} +28 -28
- package/dist/chunks/{ripgrep-08qs2p70.js → schema-gmhayzrc.js} +28 -28
- package/dist/chunks/{ripgrep-gv6a8nnw.js → schema-gv6a8nnw.js} +2 -2
- package/dist/chunks/{ripgrep-t0ac4kqt.js → schema-gw0rdnge.js} +16 -16
- package/dist/chunks/{ripgrep-gc5ex385.js → schema-gwwb91fp.js} +14 -14
- package/dist/chunks/{ripgrep-h6vf3j39.js → schema-h6vf3j39.js} +1 -1
- package/dist/chunks/{ripgrep-ps7p92m4.js → schema-hag420rg.js} +11 -11
- package/dist/chunks/{ripgrep-fpnx24t4.js → schema-hbznj76v.js} +3 -3
- package/dist/chunks/{ripgrep-jvdt4jv7.js → schema-hg46y0kh.js} +6 -6
- package/dist/chunks/{ripgrep-hv38ezqz.js → schema-hw0zd49b.js} +30 -30
- package/dist/chunks/{ripgrep-3zh0859w.js → schema-hxgdaxe3.js} +13 -13
- package/dist/chunks/{ripgrep-j26cqbwq.js → schema-hztmyek9.js} +3 -3
- package/dist/chunks/{ripgrep-86cf9fw2.js → schema-j1x1vf2y.js} +11 -11
- package/dist/chunks/{ripgrep-j56e64zr.js → schema-j56e64zr.js} +1 -1
- package/dist/chunks/{ripgrep-p82qgwm6.js → schema-j59ym81b.js} +13 -13
- package/dist/chunks/{ripgrep-n8ha5vbr.js → schema-jagm69te.js} +55 -55
- package/dist/chunks/{ripgrep-fg7qhaex.js → schema-jhbs716j.js} +61 -61
- package/dist/chunks/{ripgrep-hv6rh1ah.js → schema-jkh6xme0.js} +27 -27
- package/dist/chunks/{ripgrep-7ye0eskq.js → schema-jy1h2w15.js} +5 -5
- package/dist/chunks/{ripgrep-h3qh9gwx.js → schema-k0nnn7te.js} +26 -26
- package/dist/chunks/{ripgrep-nzks3jc8.js → schema-k3c624dm.js} +3 -3
- package/dist/chunks/{ripgrep-pmryb5d7.js → schema-k3yens6r.js} +28 -28
- package/dist/chunks/{ripgrep-r51gqmb4.js → schema-kgaqkgqz.js} +4 -4
- package/dist/chunks/{ripgrep-777p5kr8.js → schema-kgczsn21.js} +21 -21
- package/dist/chunks/{ripgrep-mmr7bq34.js → schema-knb7evpn.js} +8 -8
- package/dist/chunks/{ripgrep-rqwcfhke.js → schema-kxxcztw2.js} +11 -11
- package/dist/chunks/{ripgrep-tfzngn12.js → schema-kzc3h1h3.js} +4 -4
- package/dist/chunks/{ripgrep-3mc0mxvn.js → schema-m0pezh0b.js} +6 -6
- package/dist/chunks/{ripgrep-7c7tqtfq.js → schema-m2gwkkre.js} +9 -9
- package/dist/chunks/{ripgrep-80nc4spm.js → schema-m31hrvtp.js} +20 -20
- package/dist/chunks/{ripgrep-m3fdjcah.js → schema-m3fdjcah.js} +1 -1
- package/dist/chunks/{ripgrep-7h053g4f.js → schema-m4d3rech.js} +15 -15
- package/dist/chunks/{ripgrep-w8ee3ykt.js → schema-m50cybhv.js} +28 -28
- package/dist/chunks/{ripgrep-f8mhce1d.js → schema-m63dm8t2.js} +9 -9
- package/dist/chunks/{ripgrep-m9w0rfyh.js → schema-m9w0rfyh.js} +1 -1
- package/dist/chunks/{ripgrep-73tb2d7t.js → schema-mhkvc446.js} +3 -3
- package/dist/chunks/{ripgrep-engkm2d6.js → schema-mjagy123.js} +5 -5
- package/dist/chunks/{ripgrep-hn3c4ey4.js → schema-mkry9cbt.js} +15 -15
- package/dist/chunks/{ripgrep-kv9ap8w1.js → schema-mtd9q3qz.js} +11 -11
- package/dist/chunks/{ripgrep-8jzekk46.js → schema-mwe9m6y1.js} +12 -12
- package/dist/chunks/{ripgrep-qrn1gxgv.js → schema-n41zvqn3.js} +85 -85
- package/dist/chunks/{ripgrep-t2az9yje.js → schema-n4r3xatb.js} +4 -4
- package/dist/chunks/{ripgrep-6yvbrjax.js → schema-nd17pecj.js} +25 -25
- package/dist/chunks/{ripgrep-3mc3a2sf.js → schema-nf9eh295.js} +23 -23
- package/dist/chunks/{ripgrep-bpcm8v83.js → schema-nfey5btx.js} +9 -9
- package/dist/chunks/{ripgrep-dbxp2k0j.js → schema-nrphw12n.js} +7 -7
- package/dist/chunks/{ripgrep-e34x8y7p.js → schema-nsarsp7q.js} +8 -8
- package/dist/chunks/{ripgrep-jjs74g98.js → schema-nscznvay.js} +9 -9
- package/dist/chunks/{ripgrep-taxxp7qa.js → schema-nw8j1rps.js} +28 -28
- package/dist/chunks/{ripgrep-pm5byaap.js → schema-nwmd1prx.js} +20 -20
- package/dist/chunks/{ripgrep-y3kqwzhp.js → schema-nwt3vm70.js} +9 -9
- package/dist/chunks/{ripgrep-yyaayjfj.js → schema-p24szhfn.js} +74 -74
- package/dist/chunks/{ripgrep-mh050mx3.js → schema-p42z03n1.js} +29 -29
- package/dist/chunks/{ripgrep-8s5tghjp.js → schema-p5m4wkry.js} +25 -25
- package/dist/chunks/{ripgrep-enx68je3.js → schema-p5wnv3kx.js} +17 -17
- package/dist/chunks/schema-pf31ssb9.js +18 -0
- package/dist/chunks/{ripgrep-pjvnvgmy.js → schema-pjvnvgmy.js} +1 -1
- package/dist/chunks/{ripgrep-pknna89w.js → schema-pknna89w.js} +1 -1
- package/dist/chunks/{ripgrep-nqjmnyjs.js → schema-pwkmx0nv.js} +11 -11
- package/dist/chunks/{ripgrep-jegn5rpz.js → schema-q01vrhz0.js} +44 -44
- package/dist/chunks/{ripgrep-pvwh1q8t.js → schema-q2k638zh.js} +25 -25
- package/dist/chunks/{ripgrep-94zshge0.js → schema-qd9qsd3y.js} +26 -26
- package/dist/chunks/{ripgrep-jbj27hk3.js → schema-qk3ss27q.js} +5 -5
- package/dist/chunks/{ripgrep-fyvg84yx.js → schema-qm9z9m0p.js} +15 -15
- package/dist/chunks/{ripgrep-cwa6csj7.js → schema-qmqgtz8f.js} +9 -9
- package/dist/chunks/{ripgrep-qsdy395h.js → schema-qsdy395h.js} +1 -1
- package/dist/chunks/{ripgrep-57z5z4v1.js → schema-r0e90pz6.js} +6 -6
- package/dist/chunks/{ripgrep-sdgam4xr.js → schema-r216a26w.js} +1 -1
- package/dist/chunks/{ripgrep-3wcxc2ne.js → schema-r7w93r7k.js} +8 -8
- package/dist/chunks/{ripgrep-f2n192rq.js → schema-r8xr0va3.js} +4 -4
- package/dist/chunks/{ripgrep-h3g2mynz.js → schema-ra56mcsr.js} +7 -7
- package/dist/chunks/{ripgrep-rdw6cm16.js → schema-rdw6cm16.js} +1 -1
- package/dist/chunks/{ripgrep-q970vn6j.js → schema-rp4sv622.js} +2 -2
- package/dist/chunks/{ripgrep-ysddpjww.js → schema-rpprv63a.js} +6 -6
- package/dist/chunks/{ripgrep-eae6hk2f.js → schema-rpz6drrn.js} +17 -17
- package/dist/chunks/{ripgrep-5a6ex2zm.js → schema-rrx9jv1h.js} +34 -34
- package/dist/chunks/{ripgrep-60bahft7.js → schema-rw3hxt2z.js} +11 -11
- package/dist/chunks/{ripgrep-xyssbcjp.js → schema-rxat3bmm.js} +8 -8
- package/dist/chunks/{ripgrep-762am0a2.js → schema-rz3ttxsc.js} +3 -3
- package/dist/chunks/{ripgrep-kh0v43c1.js → schema-s16nvs90.js} +7 -7
- package/dist/chunks/{ripgrep-kv8tb5ny.js → schema-s5vydnba.js} +20 -20
- package/dist/chunks/{ripgrep-a7q5ytqy.js → schema-smeb82kt.js} +10 -10
- package/dist/chunks/{ripgrep-emqpgmd6.js → schema-sqg1zh0r.js} +25 -25
- package/dist/chunks/{ripgrep-h47rfed7.js → schema-sqwknf6n.js} +26 -26
- package/dist/chunks/{ripgrep-4pjcr2w6.js → schema-svthz80f.js} +5 -5
- package/dist/chunks/{ripgrep-npch8yde.js → schema-sxqpj4ry.js} +39 -39
- package/dist/chunks/{ripgrep-96y38d67.js → schema-t8tjryy7.js} +40 -40
- package/dist/chunks/{ripgrep-7ak0evkr.js → schema-t9gmmc62.js} +4 -4
- package/dist/chunks/{ripgrep-tazgh4e4.js → schema-tazgh4e4.js} +1 -1
- package/dist/chunks/{ripgrep-p28j5sbe.js → schema-tbz0fdvh.js} +5 -5
- package/dist/chunks/{ripgrep-tcezcvh9.js → schema-tcezcvh9.js} +1 -1
- package/dist/chunks/{ripgrep-tdstcens.js → schema-tdstcens.js} +1 -1
- package/dist/chunks/{ripgrep-b5dg6b6d.js → schema-te5aq0s8.js} +19 -19
- package/dist/chunks/{ripgrep-9ae44cfy.js → schema-tegs1ycp.js} +6 -6
- package/dist/chunks/{ripgrep-eszpxc5c.js → schema-thp9hxey.js} +5 -5
- package/dist/chunks/{ripgrep-8wb0zfrh.js → schema-tkef11z1.js} +17 -17
- package/dist/chunks/{ripgrep-tvtrv512.js → schema-tvtrv512.js} +1 -1
- package/dist/chunks/{ripgrep-wsfhs49f.js → schema-v32h01d6.js} +3 -3
- package/dist/chunks/{ripgrep-npm9gzvc.js → schema-v4q4m78p.js} +1 -1
- package/dist/chunks/{ripgrep-veqvce7d.js → schema-veqvce7d.js} +1 -1
- package/dist/chunks/{ripgrep-576taz8z.js → schema-vkzh714j.js} +39 -39
- package/dist/chunks/{ripgrep-7arsjac4.js → schema-vwv45jwz.js} +11 -11
- package/dist/chunks/{ripgrep-vzcthcp8.js → schema-vzcthcp8.js} +1 -1
- package/dist/chunks/{ripgrep-3m25mxr5.js → schema-w16ahr6b.js} +47 -47
- package/dist/chunks/{ripgrep-w3wsvvr9.js → schema-w3wsvvr9.js} +1 -1
- package/dist/chunks/{ripgrep-5zv2xz0x.js → schema-w3xeasz5.js} +17 -17
- package/dist/chunks/{ripgrep-vspmzc2d.js → schema-w71eb5dq.js} +11 -11
- package/dist/chunks/{ripgrep-kw9xdzv2.js → schema-wd6nv646.js} +9 -9
- package/dist/chunks/{ripgrep-wd87259q.js → schema-wd87259q.js} +1 -1
- package/dist/chunks/{ripgrep-tynr2gr2.js → schema-wjj6t90t.js} +27 -27
- package/dist/chunks/{ripgrep-kkgwyedr.js → schema-wkayzp5j.js} +16 -16
- package/dist/chunks/{ripgrep-szb7x5e7.js → schema-wkehh1kx.js} +24 -24
- package/dist/chunks/{ripgrep-f4ysmyc6.js → schema-wn9776zt.js} +4 -4
- package/dist/chunks/{ripgrep-f2aqmkqm.js → schema-wv5rnem4.js} +11 -11
- package/dist/chunks/{ripgrep-xyb0jyg8.js → schema-wy0rv5a1.js} +9 -9
- package/dist/chunks/{ripgrep-9p41r4tx.js → schema-x1b0enpz.js} +25 -25
- package/dist/chunks/{ripgrep-x1ezjp6w.js → schema-x1ezjp6w.js} +1 -1
- package/dist/chunks/{ripgrep-6pc7fx7t.js → schema-x3h06d7w.js} +28 -28
- package/dist/chunks/{ripgrep-rxcdjwh1.js → schema-xnv6xhp0.js} +8 -8
- package/dist/chunks/{ripgrep-terq9fxp.js → schema-xptk6zwz.js} +26 -26
- package/dist/chunks/{ripgrep-y1fvbwt7.js → schema-y1fvbwt7.js} +1 -1
- package/dist/chunks/{ripgrep-hc7vac20.js → schema-y4ryaafw.js} +16 -16
- package/dist/chunks/{ripgrep-y71avatq.js → schema-y71avatq.js} +1 -1
- package/dist/chunks/{ripgrep-xb6f42dc.js → schema-y79g4z7g.js} +14 -14
- package/dist/chunks/{ripgrep-dbvccpaz.js → schema-ydbs56mh.js} +6 -6
- package/dist/chunks/{ripgrep-b7wj3gyt.js → schema-yfkgz838.js} +26 -26
- package/dist/chunks/{ripgrep-pjedbq3k.js → schema-yq2cczkq.js} +9 -9
- package/dist/chunks/{ripgrep-yrhqyw5v.js → schema-yrhqyw5v.js} +1 -1
- package/dist/chunks/{ripgrep-s4enseaf.js → schema-yrznvahk.js} +2 -2
- package/dist/chunks/{ripgrep-5d771mpt.js → schema-ysht8f4g.js} +4 -4
- package/dist/chunks/{ripgrep-yanrta8x.js → schema-yx64nkv6.js} +27 -27
- package/dist/chunks/{ripgrep-wdkpcg2j.js → schema-z07ec4ej.js} +24 -24
- package/dist/chunks/{ripgrep-z0bkrqjs.js → schema-z0bkrqjs.js} +1 -1
- package/dist/chunks/{ripgrep-29x78va6.js → schema-z63w68vq.js} +6 -6
- package/dist/chunks/{ripgrep-zeh9ct20.js → schema-zeh9ct20.js} +2 -2
- package/dist/chunks/{ripgrep-cdawn80v.js → schema-zfv3dwnm.js} +11 -11
- package/dist/chunks/{ripgrep-h6z8d5tn.js → schema-zj09a0ew.js} +4 -4
- package/dist/chunks/{ripgrep-zr2ceqn5.js → schema-zr2ceqn5.js} +1 -1
- package/dist/chunks/{ripgrep-zxq2ej10.js → schema-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +11 -11
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +84 -84
- 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 +124 -124
- 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 +124 -124
- 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 +123 -123
- package/dist/config/plugin/worktree.js +124 -124
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +127 -127
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +82 -82
- package/dist/database/database.js +71 -71
- 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 +1 -1
- 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 +71 -71
- 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 +226 -226
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +102 -102
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +105 -105
- package/dist/form.js +83 -83
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +88 -88
- package/dist/generate.js +100 -100
- package/dist/git.js +8 -8
- 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 +5 -5
- package/dist/integration/connection.js +3 -3
- 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 +132 -132
- package/dist/location-lifecycle.js +105 -105
- 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 +82 -82
- package/dist/mcp/client.js +90 -90
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +127 -127
- 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 +97 -97
- package/dist/model.js +97 -97
- package/dist/models-dev.js +106 -106
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +79 -79
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +118 -118
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +83 -83
- 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 +130 -130
- 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 +121 -121
- 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 +119 -119
- 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 +73 -73
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +138 -138
- 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 +4 -4
- 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 +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +228 -228
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +81 -81
- package/dist/provider.js +98 -98
- 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 +97 -97
- package/dist/reference/instructions.js +88 -88
- package/dist/reference.js +90 -90
- package/dist/repository-cache.js +80 -80
- package/dist/repository.js +1 -1
- 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 +131 -131
- 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 +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +218 -218
- package/dist/session/execution.js +125 -125
- package/dist/session/generate.js +150 -150
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +89 -89
- 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 +96 -96
- package/dist/session/message-updater.js +4 -4
- 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 +3 -3
- 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 +113 -113
- 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 +86 -86
- 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 +155 -155
- package/dist/session/to-session-error.js +110 -110
- package/dist/session/transfer.js +213 -213
- 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 +15 -15
- package/dist/shell.js +139 -139
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +106 -106
- package/dist/skill.js +111 -111
- 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 +126 -126
- package/dist/tool/plugin/edit.js +119 -119
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +121 -121
- 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 +216 -216
- package/dist/tool/plugin/skill.js +112 -112
- package/dist/tool/plugin/subagent.js +218 -218
- package/dist/tool/plugin/webfetch.js +111 -111
- package/dist/tool/plugin/websearch.js +113 -113
- package/dist/tool/plugin/write.js +117 -117
- 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 +7 -7
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/formatter.js +7 -7
- 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 +7 -7
- 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 +81 -81
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +80 -80
- package/dist/workspace/driver.js +7 -7
- 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 +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +88 -88
- package/dist/worktree.js +97 -97
- package/package.json +8 -8
- package/dist/chunks/ripgrep-1x11rq2a.js +0 -18
- package/dist/chunks/ripgrep-7bm43ve7.js +0 -252
- package/dist/chunks/ripgrep-cd7q2513.js +0 -26
- package/dist/chunks/ripgrep-h47he10w.js +0 -4
- /package/dist/chunks/{ripgrep-0qkdqm5v.js → schema-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{ripgrep-0zkw76rk.js → schema-0zkw76rk.js} +0 -0
- /package/dist/chunks/{ripgrep-17cy0kzp.js → schema-17cy0kzp.js} +0 -0
- /package/dist/chunks/{ripgrep-1cnp2v09.js → schema-1cnp2v09.js} +0 -0
- /package/dist/chunks/{ripgrep-1kg9ymc8.js → schema-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{ripgrep-24dcb14g.js → schema-24dcb14g.js} +0 -0
- /package/dist/chunks/{ripgrep-2710q6r3.js → schema-2710q6r3.js} +0 -0
- /package/dist/chunks/{ripgrep-2axfhc9x.js → schema-2axfhc9x.js} +0 -0
- /package/dist/chunks/{ripgrep-2c3vjs8z.js → schema-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{ripgrep-359p4xyc.js → schema-359p4xyc.js} +0 -0
- /package/dist/chunks/{ripgrep-3asan66x.js → schema-3asan66x.js} +0 -0
- /package/dist/chunks/{ripgrep-3v8g72cx.js → schema-3v8g72cx.js} +0 -0
- /package/dist/chunks/{ripgrep-3w5fmr99.js → schema-3w5fmr99.js} +0 -0
- /package/dist/chunks/{ripgrep-3wcehsnq.js → schema-3wcehsnq.js} +0 -0
- /package/dist/chunks/{ripgrep-43n2bw4t.js → schema-43n2bw4t.js} +0 -0
- /package/dist/chunks/{ripgrep-4knz6hnm.js → schema-4knz6hnm.js} +0 -0
- /package/dist/chunks/{ripgrep-4vcrnpx2.js → schema-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{ripgrep-4y7fprxs.js → schema-4y7fprxs.js} +0 -0
- /package/dist/chunks/{ripgrep-53557ph1.js → schema-53557ph1.js} +0 -0
- /package/dist/chunks/{ripgrep-550bvhaj.js → schema-550bvhaj.js} +0 -0
- /package/dist/chunks/{ripgrep-6prwharc.js → schema-6prwharc.js} +0 -0
- /package/dist/chunks/{ripgrep-7akdwqpd.js → schema-7akdwqpd.js} +0 -0
- /package/dist/chunks/{ripgrep-7m9af43g.js → schema-7m9af43g.js} +0 -0
- /package/dist/chunks/{ripgrep-822emrt2.js → schema-822emrt2.js} +0 -0
- /package/dist/chunks/{ripgrep-88xbtdfr.js → schema-88xbtdfr.js} +0 -0
- /package/dist/chunks/{ripgrep-8n3pysct.js → schema-8n3pysct.js} +0 -0
- /package/dist/chunks/{ripgrep-922hggd3.js → schema-922hggd3.js} +0 -0
- /package/dist/chunks/{ripgrep-9a4afbnw.js → schema-9a4afbnw.js} +0 -0
- /package/dist/chunks/{ripgrep-9rqn6x4v.js → schema-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{ripgrep-a6k6eb26.js → schema-a6k6eb26.js} +0 -0
- /package/dist/chunks/{ripgrep-af5trqkr.js → schema-af5trqkr.js} +0 -0
- /package/dist/chunks/{ripgrep-afrmfg78.js → schema-afrmfg78.js} +0 -0
- /package/dist/chunks/{ripgrep-aqzs7mqg.js → schema-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{ripgrep-atq7p7m5.js → schema-atq7p7m5.js} +0 -0
- /package/dist/chunks/{ripgrep-bkyjaxrp.js → schema-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{ripgrep-bmr6ed5q.js → schema-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{ripgrep-cf4snx6d.js → schema-cf4snx6d.js} +0 -0
- /package/dist/chunks/{ripgrep-cvy3z8tj.js → schema-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{ripgrep-d9fn303g.js → schema-d9fn303g.js} +0 -0
- /package/dist/chunks/{ripgrep-d9jj8t3e.js → schema-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{ripgrep-dajrwvna.js → schema-dajrwvna.js} +0 -0
- /package/dist/chunks/{ripgrep-dap0rakb.js → schema-dap0rakb.js} +0 -0
- /package/dist/chunks/{ripgrep-df08tz66.js → schema-df08tz66.js} +0 -0
- /package/dist/chunks/{ripgrep-dy18nga0.js → schema-dy18nga0.js} +0 -0
- /package/dist/chunks/{ripgrep-e5kj55wp.js → schema-e5kj55wp.js} +0 -0
- /package/dist/chunks/{ripgrep-e73j6tqm.js → schema-e73j6tqm.js} +0 -0
- /package/dist/chunks/{ripgrep-ec1grn59.js → schema-ec1grn59.js} +0 -0
- /package/dist/chunks/{ripgrep-eh3zwz77.js → schema-eh3zwz77.js} +0 -0
- /package/dist/chunks/{ripgrep-emrn6kk6.js → schema-emrn6kk6.js} +0 -0
- /package/dist/chunks/{ripgrep-f0mxakyp.js → schema-f0mxakyp.js} +0 -0
- /package/dist/chunks/{ripgrep-f6n9ztr4.js → schema-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{ripgrep-faypxj3z.js → schema-faypxj3z.js} +0 -0
- /package/dist/chunks/{ripgrep-fd410y7t.js → schema-fd410y7t.js} +0 -0
- /package/dist/chunks/{ripgrep-fxgpk5d8.js → schema-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{ripgrep-g4wezp1m.js → schema-g4wezp1m.js} +0 -0
- /package/dist/chunks/{ripgrep-g86h250q.js → schema-g86h250q.js} +0 -0
- /package/dist/chunks/{ripgrep-gebd4c9n.js → schema-gebd4c9n.js} +0 -0
- /package/dist/chunks/{ripgrep-gftt206x.js → schema-gftt206x.js} +0 -0
- /package/dist/chunks/{ripgrep-hjbc5kem.js → schema-hjbc5kem.js} +0 -0
- /package/dist/chunks/{ripgrep-hk9envan.js → schema-hk9envan.js} +0 -0
- /package/dist/chunks/{ripgrep-j2ntwpah.js → schema-j2ntwpah.js} +0 -0
- /package/dist/chunks/{ripgrep-j5zkgpj8.js → schema-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{ripgrep-jjkms2e6.js → schema-jjkms2e6.js} +0 -0
- /package/dist/chunks/{ripgrep-jr7sbwjy.js → schema-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{ripgrep-jwfs4k6c.js → schema-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{ripgrep-jzg6c2d5.js → schema-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{ripgrep-mp448xyj.js → schema-mp448xyj.js} +0 -0
- /package/dist/chunks/{ripgrep-msx8hqn2.js → schema-msx8hqn2.js} +0 -0
- /package/dist/chunks/{ripgrep-n05xt0ee.js → schema-n05xt0ee.js} +0 -0
- /package/dist/chunks/{ripgrep-n3j8tn72.js → schema-n3j8tn72.js} +0 -0
- /package/dist/chunks/{ripgrep-njntx4h6.js → schema-njntx4h6.js} +0 -0
- /package/dist/chunks/{ripgrep-q3sfg36h.js → schema-q3sfg36h.js} +0 -0
- /package/dist/chunks/{ripgrep-q74kybfr.js → schema-q74kybfr.js} +0 -0
- /package/dist/chunks/{ripgrep-qaymkmh1.js → schema-qaymkmh1.js} +0 -0
- /package/dist/chunks/{ripgrep-qb87gjwd.js → schema-qb87gjwd.js} +0 -0
- /package/dist/chunks/{ripgrep-qfa1cgps.js → schema-qfa1cgps.js} +0 -0
- /package/dist/chunks/{ripgrep-qg3g05ea.js → schema-qg3g05ea.js} +0 -0
- /package/dist/chunks/{ripgrep-qrg20bc0.js → schema-qrg20bc0.js} +0 -0
- /package/dist/chunks/{ripgrep-rcb2kzg1.js → schema-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{ripgrep-sdp7kfr6.js → schema-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{ripgrep-sk3qaz4a.js → schema-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{ripgrep-ssg3fenm.js → schema-ssg3fenm.js} +0 -0
- /package/dist/chunks/{ripgrep-twg0f83k.js → schema-twg0f83k.js} +0 -0
- /package/dist/chunks/{ripgrep-w803qqfp.js → schema-w803qqfp.js} +0 -0
- /package/dist/chunks/{ripgrep-wc3fc9cn.js → schema-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{ripgrep-wer8tq1h.js → schema-wer8tq1h.js} +0 -0
- /package/dist/chunks/{ripgrep-wtztk69x.js → schema-wtztk69x.js} +0 -0
- /package/dist/chunks/{ripgrep-x0ckcb58.js → schema-x0ckcb58.js} +0 -0
- /package/dist/chunks/{ripgrep-x61499pn.js → schema-x61499pn.js} +0 -0
- /package/dist/chunks/{ripgrep-y44na4kk.js → schema-y44na4kk.js} +0 -0
- /package/dist/chunks/{ripgrep-y8cydn3q.js → schema-y8cydn3q.js} +0 -0
- /package/dist/chunks/{ripgrep-y8f7s663.js → schema-y8f7s663.js} +0 -0
- /package/dist/chunks/{ripgrep-ygaqb7jw.js → schema-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{ripgrep-ym463w8f.js → schema-ym463w8f.js} +0 -0
- /package/dist/chunks/{ripgrep-z9919s4g.js → schema-z9919s4g.js} +0 -0
|
@@ -1,49 +1,40 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service82,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
node86
|
|
4
|
+
} from "./schema-hag420rg.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./schema-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
ID9,
|
|
11
|
+
Service69,
|
|
12
12
|
node73,
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Event16
|
|
14
|
+
} from "./schema-jkh6xme0.js";
|
|
15
15
|
import {
|
|
16
16
|
key2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./schema-44h5tttr.js";
|
|
18
18
|
import {
|
|
19
19
|
Service79,
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
node83
|
|
21
|
+
} from "./schema-2vvmycb5.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 "./schema-9rqn6x4v.js";
|
|
34
25
|
|
|
35
26
|
// src/provider.ts
|
|
36
27
|
var exports_provider3 = {};
|
|
37
28
|
__export(exports_provider3, {
|
|
38
29
|
AISDK_PREFIX: () => AISDK_PREFIX2,
|
|
39
30
|
Compaction: () => Compaction3,
|
|
40
|
-
Event: () =>
|
|
41
|
-
ID: () =>
|
|
42
|
-
Info: () =>
|
|
31
|
+
Event: () => Event15,
|
|
32
|
+
ID: () => ID8,
|
|
33
|
+
Info: () => Info23,
|
|
43
34
|
LoadError: () => LoadError3,
|
|
44
35
|
Provider: () => exports_provider3,
|
|
45
|
-
Request: () =>
|
|
46
|
-
Service: () =>
|
|
36
|
+
Request: () => Request2,
|
|
37
|
+
Service: () => Service68,
|
|
47
38
|
Settings: () => Settings2,
|
|
48
39
|
Transport: () => Transport2,
|
|
49
40
|
aisdk: () => aisdk2,
|
|
@@ -56,7 +47,7 @@ __export(exports_provider3, {
|
|
|
56
47
|
node: () => node72,
|
|
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,8 +55,255 @@ 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";
|
|
67
|
-
|
|
68
|
-
|
|
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
|
+
return {
|
|
188
|
+
settings: replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
|
|
189
|
+
...settings.headers === undefined ? {} : { headers: settings.headers },
|
|
190
|
+
...settings.extraBody === undefined ? {} : { body: settings.extraBody },
|
|
191
|
+
...converse ? bedrockRequest(modelID, settings) : {},
|
|
192
|
+
...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
var BEDROCK_KEYS = [
|
|
196
|
+
"bearerToken",
|
|
197
|
+
"endpoint",
|
|
198
|
+
"credentials",
|
|
199
|
+
"credentialProvider",
|
|
200
|
+
"accessKeyId",
|
|
201
|
+
"secretAccessKey",
|
|
202
|
+
"sessionToken"
|
|
203
|
+
];
|
|
204
|
+
var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
|
|
205
|
+
function bedrockSettings(settings, converse) {
|
|
206
|
+
const region = settings.region ?? settings.credentials?.region;
|
|
207
|
+
const credentials = settings.credentials ?? settings;
|
|
208
|
+
const baseURL = settings.baseURL ?? settings.endpoint;
|
|
209
|
+
return {
|
|
210
|
+
...Struct.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
|
|
211
|
+
...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
|
|
212
|
+
...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
|
|
213
|
+
...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
|
|
214
|
+
credentials: {
|
|
215
|
+
...region === undefined ? {} : { region },
|
|
216
|
+
accessKeyId: credentials.accessKeyId,
|
|
217
|
+
secretAccessKey: credentials.secretAccessKey,
|
|
218
|
+
...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
function bedrockRequest(modelID, settings) {
|
|
224
|
+
const additional = settings.additionalModelRequestFields ?? {};
|
|
225
|
+
const reasoning = settings.reasoningConfig;
|
|
226
|
+
const anthropic = modelID?.includes("anthropic") ?? false;
|
|
227
|
+
const openai = modelID?.includes("openai.") ?? false;
|
|
228
|
+
const harmony = modelID?.includes("openai.gpt-oss") ?? false;
|
|
229
|
+
const effort = reasoning?.maxReasoningEffort;
|
|
230
|
+
const type = reasoning?.type;
|
|
231
|
+
const budget = reasoning?.budgetTokens;
|
|
232
|
+
const display = reasoning?.display;
|
|
233
|
+
const betas = settings.anthropicBeta ?? [];
|
|
234
|
+
const fields = mergeOverlay2(additional, {
|
|
235
|
+
...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
|
|
236
|
+
...anthropic && type === "enabled" && budget !== undefined ? { thinking: { type: "enabled", budget_tokens: budget } } : {},
|
|
237
|
+
...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
|
|
238
|
+
...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
|
|
239
|
+
...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
|
|
240
|
+
...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
|
|
241
|
+
...!anthropic && !openai && effort !== undefined ? {
|
|
242
|
+
reasoningConfig: {
|
|
243
|
+
...type === undefined || type === "adaptive" ? {} : { type },
|
|
244
|
+
...budget === undefined ? {} : { budgetTokens: budget },
|
|
245
|
+
maxReasoningEffort: effort
|
|
246
|
+
}
|
|
247
|
+
} : {}
|
|
248
|
+
});
|
|
249
|
+
const body = {
|
|
250
|
+
...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
|
|
251
|
+
...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
|
|
252
|
+
};
|
|
253
|
+
return Object.keys(body).length === 0 ? {} : { body };
|
|
254
|
+
}
|
|
255
|
+
var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
|
|
256
|
+
function openRouterRequest(settings) {
|
|
257
|
+
const headers = mergeHeaders2({
|
|
258
|
+
...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
|
|
259
|
+
...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
|
|
260
|
+
...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
|
|
261
|
+
}, settings.headers) ?? {};
|
|
262
|
+
return Object.keys(headers).length === 0 ? {} : { headers };
|
|
263
|
+
}
|
|
264
|
+
var lenient = (schema) => Schema.optional(Schema.UndefinedOr(schema).pipe(Schema.catchDecoding(() => Effect.succeed(Option.some(undefined)))));
|
|
265
|
+
var Credentials = Schema.Struct({
|
|
266
|
+
accessKeyId: Schema.String,
|
|
267
|
+
secretAccessKey: Schema.String,
|
|
268
|
+
sessionToken: lenient(Schema.String),
|
|
269
|
+
region: lenient(Schema.String)
|
|
270
|
+
});
|
|
271
|
+
var Legacy = Schema.StructWithRest(Schema.Struct({
|
|
272
|
+
apiKey: lenient(Schema.String),
|
|
273
|
+
baseURL: lenient(Schema.String),
|
|
274
|
+
headers: lenient(Schema.Record(Schema.String, Schema.String)),
|
|
275
|
+
extraBody: lenient(Schema.Record(Schema.String, Schema.Unknown)),
|
|
276
|
+
useCompletionUrls: lenient(Schema.Boolean),
|
|
277
|
+
auth: lenient(Schema.Literals(["bearer", "sigv4"])),
|
|
278
|
+
bearerToken: lenient(Schema.String),
|
|
279
|
+
endpoint: lenient(Schema.String),
|
|
280
|
+
region: lenient(Schema.String),
|
|
281
|
+
credentials: lenient(Credentials),
|
|
282
|
+
accessKeyId: lenient(Schema.String),
|
|
283
|
+
secretAccessKey: lenient(Schema.String),
|
|
284
|
+
sessionToken: lenient(Schema.String),
|
|
285
|
+
anthropicBeta: lenient(Schema.Array(Schema.String)),
|
|
286
|
+
serviceTier: lenient(Schema.String),
|
|
287
|
+
reasoningConfig: lenient(Schema.Struct({
|
|
288
|
+
type: lenient(Schema.String),
|
|
289
|
+
display: lenient(Schema.String),
|
|
290
|
+
maxReasoningEffort: lenient(Schema.String),
|
|
291
|
+
budgetTokens: lenient(Schema.Number)
|
|
292
|
+
})),
|
|
293
|
+
additionalModelRequestFields: lenient(Schema.StructWithRest(Schema.Struct({
|
|
294
|
+
anthropic_beta: lenient(Schema.Array(Schema.String)),
|
|
295
|
+
output_config: lenient(Schema.Record(Schema.String, Schema.Unknown)),
|
|
296
|
+
reasoning: lenient(Schema.Record(Schema.String, Schema.Unknown))
|
|
297
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)])),
|
|
298
|
+
appName: lenient(Schema.String),
|
|
299
|
+
appUrl: lenient(Schema.String),
|
|
300
|
+
api_keys: lenient(Schema.Record(Schema.String, Schema.String))
|
|
301
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
302
|
+
var decode = Schema.decodeUnknownSync(Legacy);
|
|
303
|
+
|
|
304
|
+
// src/provider.ts
|
|
305
|
+
import { Event as Event15 } from "@opencode/schema/provider";
|
|
306
|
+
var ID8 = Provider.ID;
|
|
69
307
|
var AISDK_PREFIX2 = "aisdk:";
|
|
70
308
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
71
309
|
var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
|
|
@@ -76,12 +314,12 @@ function packageName2(value) {
|
|
|
76
314
|
return value;
|
|
77
315
|
return value.slice(AISDK_PREFIX2.length);
|
|
78
316
|
}
|
|
79
|
-
var JsonRecord =
|
|
80
|
-
var decodeJsonRecord =
|
|
317
|
+
var JsonRecord = Schema2.Record(Schema2.String, Schema2.Json);
|
|
318
|
+
var decodeJsonRecord = Schema2.decodeUnknownSync(JsonRecord);
|
|
81
319
|
|
|
82
|
-
class LoadError3 extends
|
|
83
|
-
package:
|
|
84
|
-
cause:
|
|
320
|
+
class LoadError3 extends Schema2.TaggedError()("Provider.LoadError", {
|
|
321
|
+
package: Schema2.String,
|
|
322
|
+
cause: Schema2.Defect()
|
|
85
323
|
}) {
|
|
86
324
|
}
|
|
87
325
|
var packages = new Map;
|
|
@@ -142,12 +380,12 @@ var builtins = new Map([
|
|
|
142
380
|
() => import("@opencode/ai/providers/zai-coding-plan/responses")
|
|
143
381
|
]
|
|
144
382
|
]);
|
|
145
|
-
var loadPackage2 =
|
|
383
|
+
var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
|
|
146
384
|
const specifier = packageName2(input);
|
|
147
385
|
const builtin = builtins.get(specifier);
|
|
148
386
|
if (builtin)
|
|
149
387
|
return yield* importPackage(specifier, specifier, builtin);
|
|
150
|
-
const resolved = yield*
|
|
388
|
+
const resolved = yield* Effect2.sync(() => {
|
|
151
389
|
if (specifier.startsWith("file://") || specifier.startsWith("@opencode/ai/"))
|
|
152
390
|
return specifier;
|
|
153
391
|
try {
|
|
@@ -166,8 +404,8 @@ var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
|
|
|
166
404
|
}
|
|
167
405
|
const parts = specifier.split("/");
|
|
168
406
|
const root = specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0] ?? specifier;
|
|
169
|
-
const installed = yield* npm.add(root).pipe(
|
|
170
|
-
const entrypoint = yield*
|
|
407
|
+
const installed = yield* npm.add(root).pipe(Effect2.mapError((cause) => new LoadError3({ package: specifier, cause })));
|
|
408
|
+
const entrypoint = yield* Effect2.try({
|
|
171
409
|
try: () => resolveModule(specifier, installed.directory),
|
|
172
410
|
catch: (cause) => new LoadError3({ package: specifier, cause })
|
|
173
411
|
});
|
|
@@ -176,10 +414,10 @@ var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
|
|
|
176
414
|
var CORE_KEYS = ["chunkTimeout", "compaction", "fetch", "timeout", "transport"];
|
|
177
415
|
var PROVIDER_ONLY_KEYS = ["chunkTimeout", "timeout", "transport"];
|
|
178
416
|
function nativeSettings2(settings) {
|
|
179
|
-
return
|
|
417
|
+
return Struct2.omit(settings, CORE_KEYS);
|
|
180
418
|
}
|
|
181
419
|
function modelSettings2(settings) {
|
|
182
|
-
return settings &&
|
|
420
|
+
return settings && Struct2.omit(settings, PROVIDER_ONLY_KEYS);
|
|
183
421
|
}
|
|
184
422
|
function mergeOverlay2(base, overlay) {
|
|
185
423
|
if (base === undefined)
|
|
@@ -206,13 +444,13 @@ function mergeHeaders2(base, overlay) {
|
|
|
206
444
|
return result;
|
|
207
445
|
}, new Map).values());
|
|
208
446
|
}
|
|
209
|
-
var
|
|
447
|
+
var Request2 = Provider.Request;
|
|
210
448
|
var Compaction3 = Provider.Compaction;
|
|
211
449
|
var Transport2 = Provider.Transport;
|
|
212
450
|
var Settings2 = Provider.Settings;
|
|
213
|
-
var
|
|
451
|
+
var Info23 = Provider.Info;
|
|
214
452
|
|
|
215
|
-
class
|
|
453
|
+
class Service68 extends Context.Service()("@opencode/Provider") {
|
|
216
454
|
}
|
|
217
455
|
var definitions = new WeakMap;
|
|
218
456
|
function index(providerID, models) {
|
|
@@ -225,9 +463,9 @@ function index(providerID, models) {
|
|
|
225
463
|
definitions.set(models, indexes);
|
|
226
464
|
return result;
|
|
227
465
|
}
|
|
228
|
-
var layer = Layer.effect(
|
|
466
|
+
var layer = Layer.effect(Service68, Effect2.gen(function* () {
|
|
229
467
|
const bus = yield* Service82;
|
|
230
|
-
const integrations = yield*
|
|
468
|
+
const integrations = yield* Service69;
|
|
231
469
|
const location = yield* Service79;
|
|
232
470
|
const state = create3({
|
|
233
471
|
name: "provider",
|
|
@@ -239,7 +477,7 @@ var layer = Layer.effect(Service70, Effect.gen(function* () {
|
|
|
239
477
|
const current = records.get(id);
|
|
240
478
|
if (current)
|
|
241
479
|
return current;
|
|
242
|
-
const added = { provider:
|
|
480
|
+
const added = { provider: Info23.empty(id), models: new Map };
|
|
243
481
|
records.set(id, added);
|
|
244
482
|
maps.add(added.models);
|
|
245
483
|
return added;
|
|
@@ -307,9 +545,9 @@ var layer = Layer.effect(Service70, Effect.gen(function* () {
|
|
|
307
545
|
},
|
|
308
546
|
notify: () => notify
|
|
309
547
|
});
|
|
310
|
-
yield*
|
|
548
|
+
yield* Effect2.addFinalizer(() => shutdown2(state.reload()));
|
|
311
549
|
let cached;
|
|
312
|
-
const snapshot =
|
|
550
|
+
const snapshot = Effect2.fn("Provider.snapshot")(function* () {
|
|
313
551
|
while (true) {
|
|
314
552
|
const revision = integrations.revision();
|
|
315
553
|
const records = state.get();
|
|
@@ -320,7 +558,7 @@ var layer = Layer.effect(Service70, Effect.gen(function* () {
|
|
|
320
558
|
const available = Array.from(records.values()).filter((record) => {
|
|
321
559
|
if (record.provider.activation === "disabled")
|
|
322
560
|
return false;
|
|
323
|
-
const integration = byID.get(record.provider.integrationID ??
|
|
561
|
+
const integration = byID.get(record.provider.integrationID ?? ID9.make(record.provider.id));
|
|
324
562
|
if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
|
|
325
563
|
return false;
|
|
326
564
|
if (record.provider.activation === "enabled")
|
|
@@ -337,7 +575,7 @@ var layer = Layer.effect(Service70, Effect.gen(function* () {
|
|
|
337
575
|
}
|
|
338
576
|
});
|
|
339
577
|
let published;
|
|
340
|
-
const notify =
|
|
578
|
+
const notify = Effect2.gen(function* () {
|
|
341
579
|
const value = yield* snapshot();
|
|
342
580
|
if (value === published)
|
|
343
581
|
return;
|
|
@@ -346,19 +584,19 @@ var layer = Layer.effect(Service70, Effect.gen(function* () {
|
|
|
346
584
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
347
585
|
});
|
|
348
586
|
});
|
|
349
|
-
yield* bus.subscribe([
|
|
350
|
-
return
|
|
587
|
+
yield* bus.subscribe([Event16.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect2.forkScoped({ startImmediately: true }));
|
|
588
|
+
return Service68.of({
|
|
351
589
|
transform: state.transform,
|
|
352
590
|
reload: state.reload,
|
|
353
|
-
get:
|
|
354
|
-
all:
|
|
355
|
-
available:
|
|
591
|
+
get: Effect2.fn("Provider.get")((id) => Effect2.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
592
|
+
all: Effect2.fn("Provider.all")(() => Effect2.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
|
|
593
|
+
available: Effect2.fn("Provider.available")(() => snapshot().pipe(Effect2.map((value) => value.providers))),
|
|
356
594
|
snapshot
|
|
357
595
|
});
|
|
358
596
|
}));
|
|
359
|
-
var node72 = makeLocationNode({ service:
|
|
360
|
-
var importPackage =
|
|
361
|
-
const module = yield*
|
|
597
|
+
var node72 = makeLocationNode({ service: Service68, layer, deps: [node86, node73, node83] });
|
|
598
|
+
var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
599
|
+
const module = yield* Effect2.tryPromise({
|
|
362
600
|
try: () => {
|
|
363
601
|
const existing = packages.get(entrypoint);
|
|
364
602
|
if (existing)
|
|
@@ -378,242 +616,4 @@ var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, en
|
|
|
378
616
|
return module;
|
|
379
617
|
});
|
|
380
618
|
|
|
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
|
-
return {
|
|
503
|
-
settings: replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
|
|
504
|
-
...settings.headers === undefined ? {} : { headers: settings.headers },
|
|
505
|
-
...settings.extraBody === undefined ? {} : { body: settings.extraBody },
|
|
506
|
-
...converse ? bedrockRequest(modelID, settings) : {},
|
|
507
|
-
...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
|
|
508
|
-
};
|
|
509
|
-
}
|
|
510
|
-
var BEDROCK_KEYS = [
|
|
511
|
-
"bearerToken",
|
|
512
|
-
"endpoint",
|
|
513
|
-
"credentials",
|
|
514
|
-
"credentialProvider",
|
|
515
|
-
"accessKeyId",
|
|
516
|
-
"secretAccessKey",
|
|
517
|
-
"sessionToken"
|
|
518
|
-
];
|
|
519
|
-
var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
|
|
520
|
-
function bedrockSettings(settings, converse) {
|
|
521
|
-
const region = settings.region ?? settings.credentials?.region;
|
|
522
|
-
const credentials = settings.credentials ?? settings;
|
|
523
|
-
const baseURL = settings.baseURL ?? settings.endpoint;
|
|
524
|
-
return {
|
|
525
|
-
...Struct2.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
|
|
526
|
-
...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
|
|
527
|
-
...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
|
|
528
|
-
...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
|
|
529
|
-
credentials: {
|
|
530
|
-
...region === undefined ? {} : { region },
|
|
531
|
-
accessKeyId: credentials.accessKeyId,
|
|
532
|
-
secretAccessKey: credentials.secretAccessKey,
|
|
533
|
-
...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
};
|
|
537
|
-
}
|
|
538
|
-
function bedrockRequest(modelID, settings) {
|
|
539
|
-
const additional = settings.additionalModelRequestFields ?? {};
|
|
540
|
-
const reasoning = settings.reasoningConfig;
|
|
541
|
-
const anthropic = modelID?.includes("anthropic") ?? false;
|
|
542
|
-
const openai = modelID?.includes("openai.") ?? false;
|
|
543
|
-
const harmony = modelID?.includes("openai.gpt-oss") ?? false;
|
|
544
|
-
const effort = reasoning?.maxReasoningEffort;
|
|
545
|
-
const type = reasoning?.type;
|
|
546
|
-
const budget = reasoning?.budgetTokens;
|
|
547
|
-
const display = reasoning?.display;
|
|
548
|
-
const betas = settings.anthropicBeta ?? [];
|
|
549
|
-
const fields = mergeOverlay2(additional, {
|
|
550
|
-
...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
|
|
551
|
-
...anthropic && type === "enabled" && budget !== undefined ? { thinking: { type: "enabled", budget_tokens: budget } } : {},
|
|
552
|
-
...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
|
|
553
|
-
...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
|
|
554
|
-
...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
|
|
555
|
-
...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
|
|
556
|
-
...!anthropic && !openai && effort !== undefined ? {
|
|
557
|
-
reasoningConfig: {
|
|
558
|
-
...type === undefined || type === "adaptive" ? {} : { type },
|
|
559
|
-
...budget === undefined ? {} : { budgetTokens: budget },
|
|
560
|
-
maxReasoningEffort: effort
|
|
561
|
-
}
|
|
562
|
-
} : {}
|
|
563
|
-
});
|
|
564
|
-
const body = {
|
|
565
|
-
...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
|
|
566
|
-
...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
|
|
567
|
-
};
|
|
568
|
-
return Object.keys(body).length === 0 ? {} : { body };
|
|
569
|
-
}
|
|
570
|
-
var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
|
|
571
|
-
function openRouterRequest(settings) {
|
|
572
|
-
const headers = mergeHeaders2({
|
|
573
|
-
...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
|
|
574
|
-
...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
|
|
575
|
-
...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
|
|
576
|
-
}, settings.headers) ?? {};
|
|
577
|
-
return Object.keys(headers).length === 0 ? {} : { headers };
|
|
578
|
-
}
|
|
579
|
-
var lenient = (schema) => Schema2.optional(Schema2.UndefinedOr(schema).pipe(Schema2.catchDecoding(() => Effect2.succeed(Option.some(undefined)))));
|
|
580
|
-
var Credentials = Schema2.Struct({
|
|
581
|
-
accessKeyId: Schema2.String,
|
|
582
|
-
secretAccessKey: Schema2.String,
|
|
583
|
-
sessionToken: lenient(Schema2.String),
|
|
584
|
-
region: lenient(Schema2.String)
|
|
585
|
-
});
|
|
586
|
-
var Legacy = Schema2.StructWithRest(Schema2.Struct({
|
|
587
|
-
apiKey: lenient(Schema2.String),
|
|
588
|
-
baseURL: lenient(Schema2.String),
|
|
589
|
-
headers: lenient(Schema2.Record(Schema2.String, Schema2.String)),
|
|
590
|
-
extraBody: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
|
|
591
|
-
useCompletionUrls: lenient(Schema2.Boolean),
|
|
592
|
-
auth: lenient(Schema2.Literals(["bearer", "sigv4"])),
|
|
593
|
-
bearerToken: lenient(Schema2.String),
|
|
594
|
-
endpoint: lenient(Schema2.String),
|
|
595
|
-
region: lenient(Schema2.String),
|
|
596
|
-
credentials: lenient(Credentials),
|
|
597
|
-
accessKeyId: lenient(Schema2.String),
|
|
598
|
-
secretAccessKey: lenient(Schema2.String),
|
|
599
|
-
sessionToken: lenient(Schema2.String),
|
|
600
|
-
anthropicBeta: lenient(Schema2.Array(Schema2.String)),
|
|
601
|
-
serviceTier: lenient(Schema2.String),
|
|
602
|
-
reasoningConfig: lenient(Schema2.Struct({
|
|
603
|
-
type: lenient(Schema2.String),
|
|
604
|
-
display: lenient(Schema2.String),
|
|
605
|
-
maxReasoningEffort: lenient(Schema2.String),
|
|
606
|
-
budgetTokens: lenient(Schema2.Number)
|
|
607
|
-
})),
|
|
608
|
-
additionalModelRequestFields: lenient(Schema2.StructWithRest(Schema2.Struct({
|
|
609
|
-
anthropic_beta: lenient(Schema2.Array(Schema2.String)),
|
|
610
|
-
output_config: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
|
|
611
|
-
reasoning: lenient(Schema2.Record(Schema2.String, Schema2.Unknown))
|
|
612
|
-
}), [Schema2.Record(Schema2.String, Schema2.Unknown)])),
|
|
613
|
-
appName: lenient(Schema2.String),
|
|
614
|
-
appUrl: lenient(Schema2.String),
|
|
615
|
-
api_keys: lenient(Schema2.Record(Schema2.String, Schema2.String))
|
|
616
|
-
}), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
|
|
617
|
-
var decode = Schema2.decodeUnknownSync(Legacy);
|
|
618
|
-
|
|
619
|
-
export { rewrite2, native2, exports_aisdk_native, ID11, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info26, Service70, node72, exports_provider3, Event17 };
|
|
619
|
+
export { ID8, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, mergeOverlay2, mergeHeaders2, Request2, Compaction3, Transport2, Settings2, Info23, Service68, node72, exports_provider3, Event15, rewrite2, native2, exports_aisdk_native };
|