@opencode/core 0.0.0-dev-20476 → 0.0.0-dev-20481
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 +81 -81
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +73 -73
- package/dist/chunks/{instance-sdas1p27.js → git-02rta1p5.js} +4 -4
- package/dist/chunks/{instance-ss33t2y8.js → git-03xyy9gs.js} +8 -8
- package/dist/chunks/{instance-2e0rs3cs.js → git-0h87xbbz.js} +11 -11
- package/dist/chunks/{instance-0paq2nw3.js → git-0paq2nw3.js} +1 -1
- package/dist/chunks/{instance-wg3trc7r.js → git-0r7m21ea.js} +35 -35
- package/dist/chunks/{instance-0vbcp93d.js → git-0vbcp93d.js} +2 -2
- package/dist/chunks/{instance-r0apxah9.js → git-11schykf.js} +11 -11
- package/dist/chunks/{instance-qca96x6y.js → git-16tfmg9n.js} +13 -13
- package/dist/chunks/{instance-v4xdwztb.js → git-17xbj2z7.js} +8 -8
- package/dist/chunks/{instance-1acjjqhc.js → git-1acjjqhc.js} +1 -1
- package/dist/chunks/{instance-p42hj8p8.js → git-1ajx6rf5.js} +8 -8
- package/dist/chunks/{instance-n1zptjba.js → git-1bypmceh.js} +16 -16
- package/dist/chunks/{instance-1dazxqgg.js → git-1dazxqgg.js} +2 -2
- package/dist/chunks/{instance-84h8c373.js → git-1dvck2a7.js} +2 -2
- package/dist/chunks/{instance-eyz64kwr.js → git-1gpb38yh.js} +6 -6
- package/dist/chunks/{instance-jtrk7n88.js → git-1pfhqsc3.js} +22 -22
- package/dist/chunks/{instance-qq22e6m5.js → git-1x0zm3dp.js} +16 -16
- package/dist/chunks/{instance-ppbmff8h.js → git-1zn329az.js} +12 -12
- package/dist/chunks/{instance-dv3mmeeq.js → git-200bxkj7.js} +22 -22
- package/dist/chunks/{instance-0wk1nske.js → git-272ak889.js} +14 -14
- package/dist/chunks/{instance-2a5m3afh.js → git-2a5m3afh.js} +1 -1
- package/dist/chunks/{instance-3w2qwj5y.js → git-2bzy33zx.js} +18 -18
- package/dist/chunks/{instance-dpxaqvjw.js → git-2hstpqf3.js} +9 -9
- package/dist/chunks/{instance-prz49x53.js → git-2re9vmfy.js} +12 -12
- package/dist/chunks/{instance-ert7ja4f.js → git-327sg516.js} +16 -16
- package/dist/chunks/{instance-scwdmt5m.js → git-3382x40z.js} +4 -4
- package/dist/chunks/{instance-htn17qhj.js → git-386dse5s.js} +38 -38
- package/dist/chunks/{instance-3fc6dm20.js → git-3fc6dm20.js} +1 -1
- package/dist/chunks/{instance-w2gt052g.js → git-3gjywyz4.js} +9 -9
- package/dist/chunks/{instance-y3znqg9c.js → git-3gz5rark.js} +32 -32
- package/dist/chunks/{instance-3hepkmqq.js → git-3hepkmqq.js} +1 -1
- package/dist/chunks/{instance-g8jhgfrm.js → git-3q5fxme7.js} +11 -11
- package/dist/chunks/{instance-3smtnn6g.js → git-3smtnn6g.js} +1 -1
- package/dist/chunks/{instance-3tvqynh2.js → git-3tvqynh2.js} +1 -1
- package/dist/chunks/{instance-fr6zwza1.js → git-3wpc7sdy.js} +29 -29
- package/dist/chunks/{instance-3zsf4n22.js → git-3zsf4n22.js} +1 -1
- package/dist/chunks/{instance-80ggeeef.js → git-41vfag0n.js} +28 -28
- package/dist/chunks/{instance-01wg1yqz.js → git-42a4b5x3.js} +28 -28
- package/dist/chunks/{instance-j8tzgt58.js → git-470k3ke5.js} +21 -21
- package/dist/chunks/{instance-reg6q42h.js → git-4a6jpjer.js} +5 -5
- package/dist/chunks/{instance-2zmfhp2c.js → git-4ckgtqrh.js} +9 -9
- package/dist/chunks/{instance-f5brqk13.js → git-4mwhzqns.js} +34 -34
- package/dist/chunks/{instance-4ts7tf6z.js → git-4ts7tf6z.js} +2 -2
- package/dist/chunks/{instance-h9277kzw.js → git-4wrkd8nn.js} +10 -10
- package/dist/chunks/{instance-vxzh5eqq.js → git-4wx3j26j.js} +4 -4
- package/dist/chunks/{instance-1pxz8ven.js → git-4xpgt2w9.js} +5 -5
- package/dist/chunks/{instance-hdab2k61.js → git-51f5btjf.js} +6 -6
- package/dist/chunks/{instance-54ma36ye.js → git-54ma36ye.js} +1 -1
- package/dist/chunks/{instance-v6neg5j4.js → git-5azn87gq.js} +31 -31
- package/dist/chunks/{instance-5daktx2q.js → git-5daktx2q.js} +1 -1
- package/dist/chunks/{instance-7p8jtpv4.js → git-5hqve3aj.js} +6 -6
- package/dist/chunks/{instance-x5xbtv5g.js → git-5sqh9w00.js} +19 -19
- package/dist/chunks/{instance-5t3nmthw.js → git-5t3nmthw.js} +2 -2
- package/dist/chunks/{instance-8vpghwyk.js → git-5v41a74b.js} +9 -9
- package/dist/chunks/{instance-97251qbp.js → git-5zfwvp2h.js} +4 -4
- package/dist/chunks/{instance-p03w4rrh.js → git-62dyt405.js} +11 -11
- package/dist/chunks/{instance-669tq793.js → git-669tq793.js} +1 -1
- package/dist/chunks/{instance-25djnbww.js → git-6dmpadww.js} +28 -28
- package/dist/chunks/{instance-18ebv095.js → git-6gna983b.js} +11 -11
- package/dist/chunks/{instance-nw32y057.js → git-6pjm6hxh.js} +42 -42
- package/dist/chunks/{instance-f75zav2x.js → git-71az546q.js} +2 -2
- package/dist/chunks/{instance-vz19va3m.js → git-73pa4q01.js} +24 -24
- package/dist/chunks/{instance-7bmhse3q.js → git-7bmhse3q.js} +1 -1
- package/dist/chunks/{instance-zmgs3rk6.js → git-7dd52q06.js} +3 -3
- package/dist/chunks/{instance-bbbdzr42.js → git-7p313m06.js} +21 -21
- package/dist/chunks/{instance-zf5qc2da.js → git-7r82taj5.js} +18 -18
- package/dist/chunks/{instance-z3kgr7f9.js → git-83cqqva6.js} +19 -19
- package/dist/chunks/{instance-vzd0z6pq.js → git-8a37x1ax.js} +43 -43
- package/dist/chunks/{instance-8d7r5vzw.js → git-8d7r5vzw.js} +1 -1
- package/dist/chunks/{instance-g9hetd9t.js → git-8f060hg1.js} +9 -9
- package/dist/chunks/{instance-2j29jmpr.js → git-8khbh05p.js} +8 -8
- package/dist/chunks/{instance-3v5tjer0.js → git-8ndffx4j.js} +7 -7
- package/dist/chunks/{instance-snvf0g6c.js → git-8sme8jv8.js} +32 -32
- package/dist/chunks/{instance-hrvwh63m.js → git-92hpndrs.js} +9 -9
- package/dist/chunks/{instance-yr5j8c5n.js → git-9750y225.js} +6 -6
- package/dist/chunks/{instance-ezszgray.js → git-9bbmhm4m.js} +4 -4
- package/dist/chunks/{instance-kb9j3d72.js → git-9e5bzkjp.js} +3 -3
- package/dist/chunks/{instance-c593kggh.js → git-9em85dm2.js} +13 -13
- package/dist/chunks/{instance-rdcxwqtg.js → git-9fyj3hys.js} +8 -8
- package/dist/chunks/{instance-krrqp0kr.js → git-9nytgvc2.js} +8 -8
- package/dist/chunks/{instance-adnf1z0x.js → git-9qd58nx3.js} +24 -24
- package/dist/chunks/{instance-wv396vej.js → git-9t7a50xb.js} +6 -6
- package/dist/chunks/{instance-z0hf0jsk.js → git-9zybxyya.js} +5 -5
- package/dist/chunks/{instance-51xp84zw.js → git-a3txam13.js} +25 -25
- package/dist/chunks/{instance-ccankje6.js → git-aa8qew8f.js} +27 -27
- package/dist/chunks/{instance-aaet6srn.js → git-aaet6srn.js} +2 -2
- package/dist/chunks/{instance-9abh92c7.js → git-ap4zckht.js} +18 -18
- package/dist/chunks/{instance-qp96w36v.js → git-apaqd6gh.js} +1 -1
- package/dist/chunks/{instance-h8dark0n.js → git-apm8h6qx.js} +85 -85
- package/dist/chunks/{instance-qrgrefkk.js → git-b45szw8n.js} +12 -12
- package/dist/chunks/{instance-b6gygkdw.js → git-b6gygkdw.js} +2 -2
- package/dist/chunks/{instance-nm972z9d.js → git-b6reh3hn.js} +16 -16
- package/dist/chunks/{instance-fepyq996.js → git-bbw36kky.js} +22 -22
- package/dist/chunks/{instance-w3x9v1nk.js → git-bh0zzf2s.js} +8 -8
- package/dist/chunks/{instance-x2357nd8.js → git-bpkwba73.js} +48 -48
- package/dist/chunks/{instance-r00qyvb3.js → git-brvreg6p.js} +3 -3
- package/dist/chunks/{instance-xw2hpfvb.js → git-bt3d1ymw.js} +29 -37
- package/dist/chunks/{instance-n9j73x72.js → git-bydnjh3t.js} +9 -9
- package/dist/chunks/{instance-5a5z1rw4.js → git-bz7vn164.js} +8 -8
- package/dist/chunks/{instance-8ztq0vvp.js → git-c16f70nq.js} +8 -8
- package/dist/chunks/{instance-qe8bxjyt.js → git-c7x212x9.js} +5 -5
- package/dist/chunks/{instance-yvzmdd7n.js → git-cbyyef9c.js} +29 -29
- package/dist/chunks/{instance-cvekx5je.js → git-ccksxbyh.js} +38 -38
- package/dist/chunks/{instance-b4twkq7r.js → git-cfsekr6v.js} +6 -6
- package/dist/chunks/{instance-232eb19v.js → git-cgyy49aj.js} +15 -15
- package/dist/chunks/{instance-q1k75mjk.js → git-cjerh2x3.js} +10 -10
- package/dist/chunks/{instance-1hb1smca.js → git-cjthjsse.js} +32 -32
- package/dist/chunks/{instance-e7s1avkw.js → git-cr0y6bkk.js} +19 -19
- package/dist/chunks/{instance-g6q9qykm.js → git-cwa6csj7.js} +9 -9
- package/dist/chunks/{instance-6xk0jnn4.js → git-d819pdvd.js} +5 -5
- package/dist/chunks/{instance-k70bh5dh.js → git-dcs9hbsv.js} +11 -11
- package/dist/chunks/{instance-mkqzfx4b.js → git-dfrza52c.js} +10 -10
- package/dist/chunks/{instance-w9r1ynnv.js → git-dherjby8.js} +5 -5
- package/dist/chunks/{instance-xkntkrq7.js → git-dmqcgk4z.js} +5 -5
- package/dist/chunks/{instance-s6y4vwmw.js → git-dpe144tr.js} +13 -13
- package/dist/chunks/{instance-nxm207yx.js → git-dpkg50ah.js} +4 -4
- package/dist/chunks/{instance-9809j148.js → git-dqs0vcbf.js} +15 -15
- package/dist/chunks/{instance-sya75y6y.js → git-drnf6xwf.js} +2 -2
- package/dist/chunks/{instance-k1qrnqst.js → git-dvc89yjx.js} +8 -8
- package/dist/chunks/{instance-txb6s9yv.js → git-e351gv9y.js} +14 -14
- package/dist/chunks/{instance-jadz3b08.js → git-eaxsg860.js} +3 -3
- package/dist/chunks/{instance-cyd7m5m9.js → git-eeb28w8k.js} +9 -9
- package/dist/chunks/{instance-ef5x83kb.js → git-ef5x83kb.js} +1 -1
- package/dist/chunks/{instance-nbsy6p1t.js → git-eseyeb0w.js} +14 -14
- package/dist/chunks/{instance-etq0c3wd.js → git-etq0c3wd.js} +1 -1
- package/dist/chunks/{instance-6qz5skr7.js → git-f95rk2pr.js} +27 -27
- package/dist/chunks/git-fpbz0h82.js +252 -0
- package/dist/chunks/{instance-cxcvymjt.js → git-fr5pxeem.js} +33 -33
- package/dist/chunks/{instance-jd1ny4tp.js → git-fsfe74kd.js} +25 -25
- package/dist/chunks/{instance-hhrtmvyg.js → git-ftnv5kfd.js} +35 -35
- package/dist/chunks/{instance-2n6vf0pk.js → git-fz13pkzb.js} +294 -294
- package/dist/chunks/{instance-g5w8qwbj.js → git-g5w8qwbj.js} +1 -1
- package/dist/chunks/{instance-fh6v5ga4.js → git-g9tydsjn.js} +8 -8
- package/dist/chunks/{instance-1fy2xeby.js → git-gck3dpx1.js} +35 -35
- package/dist/chunks/{instance-gd4qta3r.js → git-gd4qta3r.js} +1 -1
- package/dist/chunks/{instance-zwb17bx0.js → git-gm6nnvxm.js} +28 -28
- package/dist/chunks/{instance-0eqhm7rh.js → git-gvzxnjjj.js} +12 -12
- package/dist/chunks/{instance-3cegwx68.js → git-h2b79v29.js} +2 -2
- package/dist/chunks/{instance-h6vf3j39.js → git-h6vf3j39.js} +1 -1
- package/dist/chunks/{instance-c43p3acc.js → git-habzs87j.js} +17 -17
- package/dist/chunks/{instance-gzy9xfrv.js → git-hc976vhp.js} +17 -17
- package/dist/chunks/{instance-vsf41ajb.js → git-hq153nby.js} +21 -21
- package/dist/chunks/{instance-1ry3jr5c.js → git-hs4apeen.js} +8 -8
- package/dist/chunks/{instance-pn4nth1p.js → git-hvjr2bj8.js} +41 -41
- package/dist/chunks/{instance-x8qq0baj.js → git-hy3hxqkj.js} +7 -7
- package/dist/chunks/{instance-xkfs854w.js → git-j1j89z9y.js} +310 -310
- package/dist/chunks/{instance-jv3dn8t5.js → git-j505r7f3.js} +20 -20
- package/dist/chunks/{instance-j56e64zr.js → git-j56e64zr.js} +1 -1
- package/dist/chunks/{instance-d7y20y2n.js → git-j712c6ve.js} +8 -8
- package/dist/chunks/{instance-0bz65bjs.js → git-j8rbgwqz.js} +44 -44
- package/dist/chunks/{instance-7tvha9pt.js → git-jf4axb2c.js} +3 -3
- package/dist/chunks/{instance-f00eh3k7.js → git-jrjafyr0.js} +14 -14
- package/dist/chunks/{instance-8gxqpgph.js → git-jvf3yq6v.js} +4 -4
- package/dist/chunks/{instance-746ykzny.js → git-jyt5y1qt.js} +2 -2
- package/dist/chunks/{instance-5gq2eeca.js → git-k0m5db98.js} +19 -19
- package/dist/chunks/{instance-zaf9x9e7.js → git-k2f9j3q2.js} +15 -15
- package/dist/chunks/{instance-se4agfh7.js → git-kaf4gepk.js} +58 -58
- package/dist/chunks/{instance-4jk0qxj4.js → git-m0ekd96m.js} +8 -8
- package/dist/chunks/{instance-m3fdjcah.js → git-m3fdjcah.js} +1 -1
- package/dist/chunks/{instance-nw4t76p1.js → git-m6x68w8h.js} +166 -166
- package/dist/chunks/{instance-8a71zkax.js → git-m9v4343w.js} +21 -21
- package/dist/chunks/{instance-m9w0rfyh.js → git-m9w0rfyh.js} +1 -1
- package/dist/chunks/{instance-mfqp6xfm.js → git-mfqp6xfm.js} +2 -2
- package/dist/chunks/{instance-a694798e.js → git-mjagy123.js} +5 -5
- package/dist/chunks/{instance-jw80jp6b.js → git-mjymc32g.js} +4 -4
- package/dist/chunks/{instance-r5x6zcsm.js → git-mvfsc1pv.js} +3 -3
- package/dist/chunks/{instance-x4vjby4r.js → git-mx9s3x0a.js} +9 -9
- package/dist/chunks/{instance-q3t37ft6.js → git-my4zabxr.js} +3 -3
- package/dist/chunks/{instance-xp46kt7b.js → git-n1n7d1bc.js} +28 -28
- package/dist/chunks/{instance-fk1cp8tx.js → git-nbbbwrsr.js} +51 -51
- package/dist/chunks/{instance-hekxc47r.js → git-ncnm8wen.js} +1 -1
- package/dist/chunks/{instance-e521br1y.js → git-nte0bfvv.js} +26 -26
- package/dist/chunks/{instance-bzz1zx5q.js → git-p35g2vpz.js} +22 -22
- package/dist/chunks/{instance-g8kt12y3.js → git-p558d1j2.js} +5 -5
- package/dist/chunks/{instance-xfff5fz6.js → git-p6tgyf45.js} +5 -5
- package/dist/chunks/{instance-0c9k0mz0.js → git-p8k3f31h.js} +79 -79
- package/dist/chunks/{instance-nkc75drr.js → git-p9yemd5w.js} +22 -22
- package/dist/chunks/{instance-b3vavpdr.js → git-pbcn5b8q.js} +17 -17
- package/dist/chunks/{instance-9vr3szkz.js → git-pbpv9gfz.js} +15 -15
- package/dist/chunks/{instance-pjvnvgmy.js → git-pjvnvgmy.js} +1 -1
- package/dist/chunks/{instance-pknna89w.js → git-pknna89w.js} +1 -1
- package/dist/chunks/{instance-kkf1yk8m.js → git-pkyzxqrp.js} +21 -21
- package/dist/chunks/{instance-7rsb2ppx.js → git-pt1c4k6y.js} +8 -8
- package/dist/chunks/{instance-m99xjc8s.js → git-py47m9dw.js} +5 -5
- package/dist/chunks/{instance-r9kcywd8.js → git-pzsynw2j.js} +8 -8
- package/dist/chunks/{instance-q0xm7vwc.js → git-q0xm7vwc.js} +2 -2
- package/dist/chunks/{instance-xegt7ebh.js → git-q2k9hrka.js} +17 -17
- package/dist/chunks/{instance-4mxhd8dc.js → git-q4zhjj5d.js} +17 -17
- package/dist/chunks/{instance-3hdwt0xa.js → git-qaeybh9m.js} +6 -6
- package/dist/chunks/git-qc068m1q.js +18 -0
- package/dist/chunks/{instance-2k8khapm.js → git-qgn6gcr1.js} +5 -5
- package/dist/chunks/{instance-tm20e9w4.js → git-qgrdwknr.js} +14 -14
- package/dist/chunks/{instance-qnc92qwc.js → git-qnc92qwc.js} +1 -1
- package/dist/chunks/{instance-shhkxfat.js → git-qpmwgr82.js} +9 -9
- package/dist/chunks/{instance-qsdy395h.js → git-qsdy395h.js} +1 -1
- package/dist/chunks/{instance-vjv7x8zx.js → git-qthf81rg.js} +11 -11
- package/dist/chunks/{instance-9x4b2052.js → git-qtxdpptr.js} +32 -32
- package/dist/chunks/{instance-s7t9xjzd.js → git-qvm0wtrp.js} +5 -5
- package/dist/chunks/{instance-qxjc9qry.js → git-qxjc9qry.js} +3 -3
- package/dist/chunks/{instance-sgmq1jmv.js → git-qy6g1rdh.js} +17 -17
- package/dist/chunks/{instance-m3j82fkz.js → git-qzx8p8d0.js} +23 -23
- package/dist/chunks/{instance-c4360nc7.js → git-r3hpgepr.js} +13 -13
- package/dist/chunks/{instance-ckcmchv9.js → git-r44petzp.js} +12 -12
- package/dist/chunks/{instance-ktndhprr.js → git-r4qc49wz.js} +13 -13
- package/dist/chunks/{instance-0v737x6s.js → git-r50xfagt.js} +13 -13
- package/dist/chunks/{instance-dy3ned2z.js → git-r63za8pc.js} +19 -19
- package/dist/chunks/{instance-m3j8y7ec.js → git-r86bf0fn.js} +1 -1
- package/dist/chunks/{instance-rdw6cm16.js → git-rdw6cm16.js} +1 -1
- package/dist/chunks/{instance-6mv4twmg.js → git-repk3emw.js} +8 -8
- package/dist/chunks/git-rkn1pe94.js +26 -0
- package/dist/chunks/{instance-vfjhn2wd.js → git-rpf1qvc3.js} +4 -4
- package/dist/chunks/{instance-dxxqjbv7.js → git-rzgz5kj8.js} +4 -4
- package/dist/chunks/{instance-80scg3y3.js → git-s26hbv8p.js} +4 -4
- package/dist/chunks/{instance-v0a0h8wg.js → git-s59ev0m2.js} +27 -27
- package/dist/chunks/{instance-a2qe2ev9.js → git-s5met55r.js} +8 -8
- package/dist/chunks/{instance-aq0y7818.js → git-s6tbk65m.js} +11 -11
- package/dist/chunks/{instance-egg9xjc7.js → git-sb1bm0qp.js} +59 -59
- package/dist/chunks/{instance-n78ae22e.js → git-shp8jhta.js} +1 -1
- package/dist/chunks/{instance-4b7cd9tp.js → git-srw1wyee.js} +17 -17
- package/dist/chunks/{instance-19vsgebf.js → git-sxtvyy3t.js} +8 -8
- package/dist/chunks/{instance-6nj48chv.js → git-t669c2kt.js} +7 -7
- package/dist/chunks/{instance-tazgh4e4.js → git-tazgh4e4.js} +1 -1
- package/dist/chunks/{instance-ga2czjs0.js → git-tcatf3b6.js} +37 -37
- package/dist/chunks/{instance-tcezcvh9.js → git-tcezcvh9.js} +1 -1
- package/dist/chunks/{instance-tdstcens.js → git-tdstcens.js} +1 -1
- package/dist/chunks/{instance-zz9bj52c.js → git-tg54efwz.js} +5 -5
- package/dist/chunks/{instance-5462znf8.js → git-thf4zxr8.js} +5 -5
- package/dist/chunks/{instance-6hh8tjw2.js → git-tkmwgdpd.js} +7 -7
- package/dist/chunks/{instance-ysns2405.js → git-trhjxf3d.js} +7 -7
- package/dist/chunks/{instance-c73sfpsx.js → git-txs8yy3n.js} +3 -3
- package/dist/chunks/{instance-aw9d3d2x.js → git-v252qd0j.js} +15 -15
- package/dist/chunks/{instance-akkfc5de.js → git-v31r4dph.js} +6 -6
- package/dist/chunks/{instance-a6t3fmq5.js → git-v4wtaekh.js} +29 -29
- package/dist/chunks/{instance-kqr04ykg.js → git-vd216s12.js} +15 -15
- package/dist/chunks/{instance-veqvce7d.js → git-veqvce7d.js} +1 -1
- package/dist/chunks/{instance-6jyara3m.js → git-vgwj7znc.js} +13 -13
- package/dist/chunks/{instance-kz3sz2wn.js → git-vj4f2rsj.js} +24 -24
- package/dist/chunks/{instance-k4g1x1vc.js → git-vjbsmafc.js} +23 -23
- package/dist/chunks/{instance-sqvzcy4n.js → git-vn72gsba.js} +4 -4
- package/dist/chunks/{instance-w869r1qx.js → git-vyt0kgkx.js} +36 -36
- package/dist/chunks/{instance-nd0j4rpa.js → git-vyys1dp9.js} +6 -6
- package/dist/chunks/{instance-g8ytx0e6.js → git-vzbxwz1d.js} +11 -11
- package/dist/chunks/{instance-vzcthcp8.js → git-vzcthcp8.js} +1 -1
- package/dist/chunks/{instance-vzs5sf6e.js → git-vzs5sf6e.js} +1 -1
- package/dist/chunks/{instance-84txncab.js → git-w1eejvng.js} +5 -5
- package/dist/chunks/{instance-w3wsvvr9.js → git-w3wsvvr9.js} +1 -1
- package/dist/chunks/{instance-p273wrj4.js → git-w4m5k0g7.js} +9 -9
- package/dist/chunks/{instance-tyvawhmd.js → git-w8cdx6rt.js} +13 -13
- package/dist/chunks/{instance-48e62kpt.js → git-wb7crd86.js} +8 -8
- package/dist/chunks/{instance-nxxntxbk.js → git-wcrrxam5.js} +60 -60
- package/dist/chunks/{instance-wd87259q.js → git-wd87259q.js} +1 -1
- package/dist/chunks/{instance-vhnpw4kp.js → git-wssnkxc5.js} +29 -29
- package/dist/chunks/{instance-x1ezjp6w.js → git-x1ezjp6w.js} +1 -1
- package/dist/chunks/{instance-addxnjmp.js → git-x661k3y3.js} +4 -4
- package/dist/chunks/{instance-fbxnhb59.js → git-xb4hcye0.js} +24 -24
- package/dist/chunks/{instance-t46zvw5b.js → git-xkmy9fvh.js} +18 -18
- package/dist/chunks/{instance-zbqfjb44.js → git-xv72df90.js} +42 -42
- package/dist/chunks/{instance-y1fvbwt7.js → git-y1fvbwt7.js} +1 -1
- package/dist/chunks/{instance-79fx3xr2.js → git-yemncvg3.js} +24 -24
- package/dist/chunks/{instance-ygdna4kr.js → git-ygdna4kr.js} +2 -2
- package/dist/chunks/{instance-mpzz8whs.js → git-yhakkn64.js} +11 -11
- package/dist/chunks/{instance-my0g8vxz.js → git-yn5e4dj4.js} +6 -6
- package/dist/chunks/{instance-yrhqyw5v.js → git-yrhqyw5v.js} +1 -1
- package/dist/chunks/{instance-bwtbar9r.js → git-yv9jqw96.js} +6 -6
- package/dist/chunks/{instance-k70p9jzb.js → git-yvq0e8sz.js} +9 -9
- package/dist/chunks/{instance-z0bkrqjs.js → git-z0bkrqjs.js} +1 -1
- package/dist/chunks/{instance-k4xgjck9.js → git-z8dbgj3m.js} +5 -5
- package/dist/chunks/{instance-v1spfc0f.js → git-z9j6250x.js} +35 -35
- package/dist/chunks/{instance-ps54kkyr.js → git-zct2699j.js} +6 -6
- package/dist/chunks/{instance-qwh1g3nc.js → git-zf3n64mb.js} +31 -31
- package/dist/chunks/{instance-36da6jvz.js → git-zqb7t9wr.js} +20 -20
- package/dist/chunks/{instance-zr2ceqn5.js → git-zr2ceqn5.js} +1 -1
- package/dist/chunks/{instance-p6wxjpka.js → git-zsr4wwhv.js} +4 -4
- package/dist/chunks/{instance-zrr02gce.js → git-ztzk91w7.js} +26 -26
- package/dist/chunks/{instance-wh3mwy9y.js → git-zvr8tn04.js} +8 -8
- package/dist/chunks/{instance-esc0t9mz.js → git-zw2wtcws.js} +24 -132
- package/dist/chunks/{instance-zxq2ej10.js → git-zxq2ej10.js} +1 -1
- package/dist/chunks/{instance-hdkng2sj.js → git-zyk1yjk8.js} +5 -5
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +85 -85
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +99 -106
- package/dist/config/plugin/agent.js +116 -123
- package/dist/config/plugin/command.js +205 -212
- package/dist/config/plugin/compaction.js +154 -161
- package/dist/config/plugin/compatibility.js +132 -139
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -124
- package/dist/config/plugin/image.js +116 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +118 -125
- package/dist/config/plugin/mcp.js +123 -130
- package/dist/config/plugin/policy.js +117 -124
- package/dist/config/plugin/provider.js +114 -121
- package/dist/config/plugin/reference.js +118 -125
- package/dist/config/plugin/shell.js +116 -123
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +135 -142
- package/dist/config/plugin/snapshot.js +116 -123
- package/dist/config/plugin/source.js +117 -124
- package/dist/config/plugin/tool-output.js +117 -124
- package/dist/config/plugin/websearch.js +115 -122
- package/dist/config/plugin/worktree.js +118 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -126
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- package/dist/database/database.js +66 -66
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +364 -371
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +74 -74
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +220 -227
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +101 -101
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +98 -98
- package/dist/form.js +78 -78
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +103 -103
- 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 +91 -91
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +355 -362
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +76 -76
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +134 -134
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +352 -359
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +103 -103
- package/dist/mcp/instructions.js +123 -123
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +96 -96
- package/dist/model.js +100 -100
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +115 -115
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +84 -84
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +100 -100
- package/dist/plugin/command.js +100 -100
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +211 -218
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +327 -334
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +117 -124
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +115 -122
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +115 -122
- package/dist/plugin/provider/openai.js +95 -95
- package/dist/plugin/provider/opencode.js +96 -96
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +115 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +156 -163
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +132 -139
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +344 -351
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +84 -84
- package/dist/plugin/vcs/hg.js +84 -84
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +114 -121
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +224 -231
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +86 -86
- package/dist/provider.js +95 -95
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +97 -97
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +95 -95
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +129 -129
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +214 -221
- package/dist/session/execution.js +125 -125
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +86 -86
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +118 -118
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +222 -229
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +113 -113
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +123 -123
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +164 -171
- package/dist/session/shell.js +130 -137
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +201 -208
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +151 -151
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +210 -217
- package/dist/session/usage.js +1 -1
- package/dist/session.js +207 -214
- 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 +132 -139
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +105 -105
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +85 -85
- 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 +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +122 -122
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +115 -115
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +208 -215
- package/dist/tool/plugin/skill.js +109 -109
- package/dist/tool/plugin/subagent.js +210 -217
- package/dist/tool/plugin/webfetch.js +108 -108
- package/dist/tool/plugin/websearch.js +106 -106
- package/dist/tool/plugin/write.js +120 -120
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/types/v1/config/migrate.d.ts +15 -319
- 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/command.js +5 -5
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +96 -96
- 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 +2 -2
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- 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 +85 -85
- package/dist/worktree.js +92 -92
- package/package.json +8 -8
- package/dist/chunks/instance-0v53mg2y.js +0 -21
- package/dist/chunks/instance-21r38tys.js +0 -14
- package/dist/chunks/instance-4n25jbh7.js +0 -34
- package/dist/chunks/instance-4vq385ec.js +0 -252
- package/dist/chunks/instance-5yeq06a0.js +0 -21
- package/dist/chunks/instance-619r8v3y.js +0 -18
- package/dist/chunks/instance-c74ypyny.js +0 -26
- package/dist/chunks/instance-mazbtkaa.js +0 -29
- package/dist/chunks/instance-pf2hb43r.js +0 -84
- package/dist/chunks/instance-v25z6dve.js +0 -194
- package/dist/types/v1/config/attachment.d.ts +0 -18
- package/dist/types/v1/config/config.d.ts +0 -1243
- package/dist/types/v1/config/formatter.d.ts +0 -15
- package/dist/types/v1/config/layout.d.ts +0 -4
- package/dist/types/v1/config/lsp.d.ts +0 -38
- package/dist/types/v1/config/server.d.ts +0 -10
- package/dist/types/v1/config/skills.d.ts +0 -7
- package/dist/v1/config/attachment.js +0 -11
- package/dist/v1/config/config.js +0 -23
- package/dist/v1/config/formatter.js +0 -10
- package/dist/v1/config/layout.js +0 -8
- package/dist/v1/config/lsp.js +0 -16
- package/dist/v1/config/server.js +0 -9
- package/dist/v1/config/skills.js +0 -8
- /package/dist/chunks/{instance-0qkdqm5v.js → git-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{instance-0zkw76rk.js → git-0zkw76rk.js} +0 -0
- /package/dist/chunks/{instance-17cy0kzp.js → git-17cy0kzp.js} +0 -0
- /package/dist/chunks/{instance-1cnp2v09.js → git-1cnp2v09.js} +0 -0
- /package/dist/chunks/{instance-1kg9ymc8.js → git-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{instance-24dcb14g.js → git-24dcb14g.js} +0 -0
- /package/dist/chunks/{instance-2710q6r3.js → git-2710q6r3.js} +0 -0
- /package/dist/chunks/{instance-2axfhc9x.js → git-2axfhc9x.js} +0 -0
- /package/dist/chunks/{instance-2c3vjs8z.js → git-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{instance-34c7v6d4.js → git-34c7v6d4.js} +0 -0
- /package/dist/chunks/{instance-359p4xyc.js → git-359p4xyc.js} +0 -0
- /package/dist/chunks/{instance-3asan66x.js → git-3asan66x.js} +0 -0
- /package/dist/chunks/{instance-3v8g72cx.js → git-3v8g72cx.js} +0 -0
- /package/dist/chunks/{instance-3w5fmr99.js → git-3w5fmr99.js} +0 -0
- /package/dist/chunks/{instance-3wcehsnq.js → git-3wcehsnq.js} +0 -0
- /package/dist/chunks/{instance-43n2bw4t.js → git-43n2bw4t.js} +0 -0
- /package/dist/chunks/{instance-4knz6hnm.js → git-4knz6hnm.js} +0 -0
- /package/dist/chunks/{instance-4vcrnpx2.js → git-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{instance-4y7fprxs.js → git-4y7fprxs.js} +0 -0
- /package/dist/chunks/{instance-53557ph1.js → git-53557ph1.js} +0 -0
- /package/dist/chunks/{instance-550bvhaj.js → git-550bvhaj.js} +0 -0
- /package/dist/chunks/{instance-5qd3pb7m.js → git-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{instance-6prwharc.js → git-6prwharc.js} +0 -0
- /package/dist/chunks/{instance-7akdwqpd.js → git-7akdwqpd.js} +0 -0
- /package/dist/chunks/{instance-7m9af43g.js → git-7m9af43g.js} +0 -0
- /package/dist/chunks/{instance-822emrt2.js → git-822emrt2.js} +0 -0
- /package/dist/chunks/{instance-88xbtdfr.js → git-88xbtdfr.js} +0 -0
- /package/dist/chunks/{instance-8n3pysct.js → git-8n3pysct.js} +0 -0
- /package/dist/chunks/{instance-8wj87zfr.js → git-8wj87zfr.js} +0 -0
- /package/dist/chunks/{instance-9a4afbnw.js → git-9a4afbnw.js} +0 -0
- /package/dist/chunks/{instance-9rqn6x4v.js → git-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{instance-a6k6eb26.js → git-a6k6eb26.js} +0 -0
- /package/dist/chunks/{instance-af5trqkr.js → git-af5trqkr.js} +0 -0
- /package/dist/chunks/{instance-afrmfg78.js → git-afrmfg78.js} +0 -0
- /package/dist/chunks/{instance-aqzs7mqg.js → git-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{instance-atq7p7m5.js → git-atq7p7m5.js} +0 -0
- /package/dist/chunks/{instance-bkyjaxrp.js → git-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{instance-bmr6ed5q.js → git-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{instance-cf4snx6d.js → git-cf4snx6d.js} +0 -0
- /package/dist/chunks/{instance-cvy3z8tj.js → git-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{instance-d9fn303g.js → git-d9fn303g.js} +0 -0
- /package/dist/chunks/{instance-d9jj8t3e.js → git-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{instance-dajrwvna.js → git-dajrwvna.js} +0 -0
- /package/dist/chunks/{instance-dap0rakb.js → git-dap0rakb.js} +0 -0
- /package/dist/chunks/{instance-df08tz66.js → git-df08tz66.js} +0 -0
- /package/dist/chunks/{instance-dy18nga0.js → git-dy18nga0.js} +0 -0
- /package/dist/chunks/{instance-e5kj55wp.js → git-e5kj55wp.js} +0 -0
- /package/dist/chunks/{instance-e73j6tqm.js → git-e73j6tqm.js} +0 -0
- /package/dist/chunks/{instance-ec1grn59.js → git-ec1grn59.js} +0 -0
- /package/dist/chunks/{instance-eh3zwz77.js → git-eh3zwz77.js} +0 -0
- /package/dist/chunks/{instance-emrn6kk6.js → git-emrn6kk6.js} +0 -0
- /package/dist/chunks/{instance-f0mxakyp.js → git-f0mxakyp.js} +0 -0
- /package/dist/chunks/{instance-f6n9ztr4.js → git-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{instance-faypxj3z.js → git-faypxj3z.js} +0 -0
- /package/dist/chunks/{instance-fd410y7t.js → git-fd410y7t.js} +0 -0
- /package/dist/chunks/{instance-fxgpk5d8.js → git-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{instance-g4wezp1m.js → git-g4wezp1m.js} +0 -0
- /package/dist/chunks/{instance-g86h250q.js → git-g86h250q.js} +0 -0
- /package/dist/chunks/{instance-gebd4c9n.js → git-gebd4c9n.js} +0 -0
- /package/dist/chunks/{instance-gftt206x.js → git-gftt206x.js} +0 -0
- /package/dist/chunks/{instance-hjbc5kem.js → git-hjbc5kem.js} +0 -0
- /package/dist/chunks/{instance-hk9envan.js → git-hk9envan.js} +0 -0
- /package/dist/chunks/{instance-j2ntwpah.js → git-j2ntwpah.js} +0 -0
- /package/dist/chunks/{instance-j5zkgpj8.js → git-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{instance-jjkms2e6.js → git-jjkms2e6.js} +0 -0
- /package/dist/chunks/{instance-jr7sbwjy.js → git-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{instance-jwfs4k6c.js → git-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{instance-jzg6c2d5.js → git-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{instance-mp448xyj.js → git-mp448xyj.js} +0 -0
- /package/dist/chunks/{instance-msx8hqn2.js → git-msx8hqn2.js} +0 -0
- /package/dist/chunks/{instance-n05xt0ee.js → git-n05xt0ee.js} +0 -0
- /package/dist/chunks/{instance-n3j8tn72.js → git-n3j8tn72.js} +0 -0
- /package/dist/chunks/{instance-njntx4h6.js → git-njntx4h6.js} +0 -0
- /package/dist/chunks/{instance-q3sfg36h.js → git-q3sfg36h.js} +0 -0
- /package/dist/chunks/{instance-q74kybfr.js → git-q74kybfr.js} +0 -0
- /package/dist/chunks/{instance-qaymkmh1.js → git-qaymkmh1.js} +0 -0
- /package/dist/chunks/{instance-qb87gjwd.js → git-qb87gjwd.js} +0 -0
- /package/dist/chunks/{instance-qfa1cgps.js → git-qfa1cgps.js} +0 -0
- /package/dist/chunks/{instance-qg3g05ea.js → git-qg3g05ea.js} +0 -0
- /package/dist/chunks/{instance-qrg20bc0.js → git-qrg20bc0.js} +0 -0
- /package/dist/chunks/{instance-rcb2kzg1.js → git-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{instance-sdp7kfr6.js → git-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{instance-sk3qaz4a.js → git-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{instance-ssg3fenm.js → git-ssg3fenm.js} +0 -0
- /package/dist/chunks/{instance-w803qqfp.js → git-w803qqfp.js} +0 -0
- /package/dist/chunks/{instance-wc3fc9cn.js → git-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{instance-wer8tq1h.js → git-wer8tq1h.js} +0 -0
- /package/dist/chunks/{instance-wtztk69x.js → git-wtztk69x.js} +0 -0
- /package/dist/chunks/{instance-x0ckcb58.js → git-x0ckcb58.js} +0 -0
- /package/dist/chunks/{instance-x61499pn.js → git-x61499pn.js} +0 -0
- /package/dist/chunks/{instance-y44na4kk.js → git-y44na4kk.js} +0 -0
- /package/dist/chunks/{instance-y8cydn3q.js → git-y8cydn3q.js} +0 -0
- /package/dist/chunks/{instance-y8f7s663.js → git-y8f7s663.js} +0 -0
- /package/dist/chunks/{instance-ygaqb7jw.js → git-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{instance-ym463w8f.js → git-ym463w8f.js} +0 -0
- /package/dist/chunks/{instance-z5v4ffb3.js → git-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{instance-z9919s4g.js → git-z9919s4g.js} +0 -0
|
@@ -1,36 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./git-gvzxnjjj.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./git-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
10
|
key2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./git-x661k3y3.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
13
|
+
ID14,
|
|
14
|
+
Service70,
|
|
15
|
+
node74,
|
|
16
|
+
Event16
|
|
17
|
+
} from "./git-fr5pxeem.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
19
|
+
Service76,
|
|
20
|
+
node80
|
|
21
|
+
} from "./git-1bypmceh.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 as Option2, Schema as Schema2, Struct as Struct2 } from "effect";
|
|
24
|
+
} from "./git-9rqn6x4v.js";
|
|
34
25
|
|
|
35
26
|
// src/provider.ts
|
|
36
27
|
var exports_provider3 = {};
|
|
@@ -39,11 +30,11 @@ __export(exports_provider3, {
|
|
|
39
30
|
Compaction: () => Compaction3,
|
|
40
31
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS3,
|
|
41
32
|
Event: () => Event14,
|
|
42
|
-
ID: () =>
|
|
43
|
-
Info: () =>
|
|
33
|
+
ID: () => ID12,
|
|
34
|
+
Info: () => Info21,
|
|
44
35
|
LoadError: () => LoadError3,
|
|
45
36
|
Provider: () => exports_provider3,
|
|
46
|
-
Request: () =>
|
|
37
|
+
Request: () => Request3,
|
|
47
38
|
Service: () => Service68,
|
|
48
39
|
Settings: () => Settings2,
|
|
49
40
|
Transport: () => Transport2,
|
|
@@ -59,7 +50,7 @@ __export(exports_provider3, {
|
|
|
59
50
|
timeout: () => timeout2,
|
|
60
51
|
timeouts: () => timeouts2
|
|
61
52
|
});
|
|
62
|
-
import { Context, Effect, Layer, Option, Schema, Stream, Struct } from "effect";
|
|
53
|
+
import { Context, Effect as Effect2, Layer, Option as Option2, Schema as Schema2, Stream, Struct as Struct2 } from "effect";
|
|
63
54
|
import { Provider } from "@opencode/schema/provider";
|
|
64
55
|
import { Model } from "@opencode/schema/model";
|
|
65
56
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -68,8 +59,267 @@ import { isRecord } from "@opencode/ai/utils/record";
|
|
|
68
59
|
import { importModule, resolveModule } from "@opencode/util/runtime-import";
|
|
69
60
|
import { Credential } from "@opencode/schema/credential";
|
|
70
61
|
import { freeze } from "immer";
|
|
62
|
+
|
|
63
|
+
// src/aisdk-native.ts
|
|
64
|
+
var exports_aisdk_native = {};
|
|
65
|
+
__export(exports_aisdk_native, {
|
|
66
|
+
AISDKNative: () => exports_aisdk_native,
|
|
67
|
+
native: () => native2,
|
|
68
|
+
rewrite: () => rewrite2
|
|
69
|
+
});
|
|
70
|
+
import { Effect, Option, Schema, Struct } from "effect";
|
|
71
|
+
function rewrite2(target, input) {
|
|
72
|
+
if (input.specifier === undefined)
|
|
73
|
+
return;
|
|
74
|
+
const plain = resolve(input.specifier, input);
|
|
75
|
+
if (!plain)
|
|
76
|
+
return;
|
|
77
|
+
const settings = decode(target.settings ?? {});
|
|
78
|
+
const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
|
|
79
|
+
const translated = options(replacement, input.modelID, settings);
|
|
80
|
+
if (target.package !== undefined || replacement !== input.specifier)
|
|
81
|
+
target.package = replacement;
|
|
82
|
+
target.settings = target.settings === undefined ? undefined : {
|
|
83
|
+
...translated.settings,
|
|
84
|
+
...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
|
|
85
|
+
};
|
|
86
|
+
target.headers = mergeHeaders2(translated.headers, target.headers);
|
|
87
|
+
target.body = mergeOverlay2(translated.body, target.body);
|
|
88
|
+
target.variants = target.variants?.map((variant) => {
|
|
89
|
+
const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
|
|
90
|
+
const headers = mergeHeaders2(overlay.headers, variant.headers);
|
|
91
|
+
const body = mergeOverlay2(overlay.body, variant.body);
|
|
92
|
+
return {
|
|
93
|
+
id: variant.id,
|
|
94
|
+
...variant.settings === undefined ? {} : { settings: overlay.settings },
|
|
95
|
+
...headers === undefined ? {} : { headers },
|
|
96
|
+
...body === undefined ? {} : { body }
|
|
97
|
+
};
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
var PACKAGES = {
|
|
101
|
+
"@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
|
|
102
|
+
"@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
|
|
103
|
+
"@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
|
|
104
|
+
"@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
|
|
105
|
+
"@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
|
|
106
|
+
"@ai-sdk/cohere": "@opencode/ai/providers/cohere",
|
|
107
|
+
"@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
|
|
108
|
+
"@ai-sdk/google": "@opencode/ai/providers/google",
|
|
109
|
+
"@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
|
|
110
|
+
"@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
|
|
111
|
+
"@ai-sdk/groq": "@opencode/ai/providers/groq",
|
|
112
|
+
"@ai-sdk/mistral": "@opencode/ai/providers/mistral",
|
|
113
|
+
"@ai-sdk/openai": "@opencode/ai/providers/openai",
|
|
114
|
+
"@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
|
|
115
|
+
"@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
|
|
116
|
+
"@ai-sdk/xai": "@opencode/ai/providers/xai",
|
|
117
|
+
"@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
|
|
118
|
+
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
119
|
+
};
|
|
120
|
+
var protocols = (name) => ({
|
|
121
|
+
"@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
|
|
122
|
+
"@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
|
|
123
|
+
"@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
|
|
124
|
+
});
|
|
125
|
+
var HOSTS = {
|
|
126
|
+
alibaba: protocols("alibaba"),
|
|
127
|
+
"alibaba-cn": protocols("alibaba"),
|
|
128
|
+
"alibaba-coding-plan": protocols("alibaba"),
|
|
129
|
+
"alibaba-coding-plan-cn": protocols("alibaba"),
|
|
130
|
+
"alibaba-token-plan": protocols("alibaba"),
|
|
131
|
+
"alibaba-token-plan-cn": protocols("alibaba"),
|
|
132
|
+
baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
|
|
133
|
+
"cloudflare-ai-gateway": {
|
|
134
|
+
"@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
135
|
+
"@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
136
|
+
"@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
137
|
+
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
138
|
+
},
|
|
139
|
+
cohere: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cohere/chat" },
|
|
140
|
+
"cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
|
|
141
|
+
deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
|
|
142
|
+
digitalocean: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/digitalocean" },
|
|
143
|
+
"fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
|
|
144
|
+
"google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
|
|
145
|
+
"kimi-for-coding": protocols("moonshot"),
|
|
146
|
+
meta: protocols("meta"),
|
|
147
|
+
minimax: protocols("minimax"),
|
|
148
|
+
"minimax-cn": protocols("minimax"),
|
|
149
|
+
"minimax-coding-plan": protocols("minimax"),
|
|
150
|
+
"minimax-cn-coding-plan": protocols("minimax"),
|
|
151
|
+
moonshotai: protocols("moonshot"),
|
|
152
|
+
"moonshotai-cn": protocols("moonshot"),
|
|
153
|
+
zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
154
|
+
"zai-coding-plan": protocols("zai-coding-plan"),
|
|
155
|
+
zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
156
|
+
"zhipuai-coding-plan": protocols("zai-coding-plan")
|
|
157
|
+
};
|
|
158
|
+
var NATIVE = new Set([
|
|
159
|
+
...Object.values(PACKAGES),
|
|
160
|
+
...Object.values(HOSTS).flatMap((host) => Object.values(host)),
|
|
161
|
+
"@opencode/ai/providers/azure/chat",
|
|
162
|
+
"@opencode/ai/providers/amazon-bedrock/mantle",
|
|
163
|
+
"@opencode/ai/providers/amazon-bedrock/mantle/chat",
|
|
164
|
+
"@opencode/ai/providers/amazon-bedrock/mantle/responses"
|
|
165
|
+
]);
|
|
166
|
+
function native2(npm, context) {
|
|
167
|
+
const host = HOSTS[context.providerID]?.[npm];
|
|
168
|
+
if (host)
|
|
169
|
+
return host;
|
|
170
|
+
if (npm === "@ai-sdk/amazon-bedrock/mantle")
|
|
171
|
+
return mantle(context.modelID);
|
|
172
|
+
if (npm === "@ai-sdk/azure" && context.settings?.useCompletionUrls === true)
|
|
173
|
+
return "@opencode/ai/providers/azure/chat";
|
|
174
|
+
return PACKAGES[npm];
|
|
175
|
+
}
|
|
176
|
+
var mantle = (modelID) => {
|
|
177
|
+
if (modelID === undefined)
|
|
178
|
+
return "@opencode/ai/providers/amazon-bedrock/mantle";
|
|
179
|
+
return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
|
|
180
|
+
};
|
|
181
|
+
function resolve(specifier, context) {
|
|
182
|
+
const npm = packageName2(specifier);
|
|
183
|
+
if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
|
|
184
|
+
return native2(npm, context);
|
|
185
|
+
if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
|
|
186
|
+
return mantle(context.modelID);
|
|
187
|
+
if (npm === "@opencode/ai/providers/azure/responses" && context.settings?.useCompletionUrls === true)
|
|
188
|
+
return "@opencode/ai/providers/azure/chat";
|
|
189
|
+
return NATIVE.has(npm) ? npm : undefined;
|
|
190
|
+
}
|
|
191
|
+
function options(replacement, modelID, settings) {
|
|
192
|
+
const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
|
|
193
|
+
const kept = Struct.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
|
|
194
|
+
const thinking = converse ? bedrockThinking(modelID, settings) : undefined;
|
|
195
|
+
return {
|
|
196
|
+
settings: {
|
|
197
|
+
...replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
|
|
198
|
+
...thinking === undefined ? {} : { thinking }
|
|
199
|
+
},
|
|
200
|
+
...settings.headers === undefined ? {} : { headers: settings.headers },
|
|
201
|
+
...settings.extraBody === undefined ? {} : { body: settings.extraBody },
|
|
202
|
+
...converse ? bedrockRequest(modelID, settings) : {},
|
|
203
|
+
...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
var BEDROCK_KEYS = [
|
|
207
|
+
"bearerToken",
|
|
208
|
+
"endpoint",
|
|
209
|
+
"credentials",
|
|
210
|
+
"credentialProvider",
|
|
211
|
+
"accessKeyId",
|
|
212
|
+
"secretAccessKey",
|
|
213
|
+
"sessionToken"
|
|
214
|
+
];
|
|
215
|
+
var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
|
|
216
|
+
function bedrockSettings(settings, converse) {
|
|
217
|
+
const region = settings.region ?? settings.credentials?.region;
|
|
218
|
+
const credentials = settings.credentials ?? settings;
|
|
219
|
+
const baseURL = settings.baseURL ?? settings.endpoint;
|
|
220
|
+
return {
|
|
221
|
+
...Struct.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
|
|
222
|
+
...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
|
|
223
|
+
...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
|
|
224
|
+
...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
|
|
225
|
+
credentials: {
|
|
226
|
+
...region === undefined ? {} : { region },
|
|
227
|
+
accessKeyId: credentials.accessKeyId,
|
|
228
|
+
secretAccessKey: credentials.secretAccessKey,
|
|
229
|
+
...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
function bedrockThinking(modelID, settings) {
|
|
235
|
+
const reasoning = settings.reasoningConfig;
|
|
236
|
+
if (!modelID?.includes("anthropic") || reasoning?.type !== "enabled" || reasoning.budgetTokens === undefined)
|
|
237
|
+
return;
|
|
238
|
+
return { type: "enabled", budgetTokens: reasoning.budgetTokens };
|
|
239
|
+
}
|
|
240
|
+
function bedrockRequest(modelID, settings) {
|
|
241
|
+
const additional = settings.additionalModelRequestFields ?? {};
|
|
242
|
+
const reasoning = settings.reasoningConfig;
|
|
243
|
+
const anthropic = modelID?.includes("anthropic") ?? false;
|
|
244
|
+
const openai = modelID?.includes("openai.") ?? false;
|
|
245
|
+
const harmony = modelID?.includes("openai.gpt-oss") ?? false;
|
|
246
|
+
const effort = reasoning?.maxReasoningEffort;
|
|
247
|
+
const type = reasoning?.type;
|
|
248
|
+
const budget = reasoning?.budgetTokens;
|
|
249
|
+
const display = reasoning?.display;
|
|
250
|
+
const betas = settings.anthropicBeta ?? [];
|
|
251
|
+
const fields = mergeOverlay2(additional, {
|
|
252
|
+
...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
|
|
253
|
+
...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
|
|
254
|
+
...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
|
|
255
|
+
...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
|
|
256
|
+
...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
|
|
257
|
+
...!anthropic && !openai && effort !== undefined ? {
|
|
258
|
+
reasoningConfig: {
|
|
259
|
+
...type === undefined || type === "adaptive" ? {} : { type },
|
|
260
|
+
...budget === undefined ? {} : { budgetTokens: budget },
|
|
261
|
+
maxReasoningEffort: effort
|
|
262
|
+
}
|
|
263
|
+
} : {}
|
|
264
|
+
});
|
|
265
|
+
const body = {
|
|
266
|
+
...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
|
|
267
|
+
...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
|
|
268
|
+
};
|
|
269
|
+
return Object.keys(body).length === 0 ? {} : { body };
|
|
270
|
+
}
|
|
271
|
+
var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
|
|
272
|
+
function openRouterRequest(settings) {
|
|
273
|
+
const headers = mergeHeaders2({
|
|
274
|
+
...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
|
|
275
|
+
...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
|
|
276
|
+
...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
|
|
277
|
+
}, settings.headers) ?? {};
|
|
278
|
+
return Object.keys(headers).length === 0 ? {} : { headers };
|
|
279
|
+
}
|
|
280
|
+
var lenient = (schema) => Schema.optional(Schema.UndefinedOr(schema).pipe(Schema.catchDecoding(() => Effect.succeed(Option.some(undefined)))));
|
|
281
|
+
var Credentials = Schema.Struct({
|
|
282
|
+
accessKeyId: Schema.String,
|
|
283
|
+
secretAccessKey: Schema.String,
|
|
284
|
+
sessionToken: lenient(Schema.String),
|
|
285
|
+
region: lenient(Schema.String)
|
|
286
|
+
});
|
|
287
|
+
var Legacy = Schema.StructWithRest(Schema.Struct({
|
|
288
|
+
apiKey: lenient(Schema.String),
|
|
289
|
+
baseURL: lenient(Schema.String),
|
|
290
|
+
headers: lenient(Schema.Record(Schema.String, Schema.String)),
|
|
291
|
+
extraBody: lenient(Schema.Record(Schema.String, Schema.Unknown)),
|
|
292
|
+
useCompletionUrls: lenient(Schema.Boolean),
|
|
293
|
+
auth: lenient(Schema.Literals(["bearer", "sigv4"])),
|
|
294
|
+
bearerToken: lenient(Schema.String),
|
|
295
|
+
endpoint: lenient(Schema.String),
|
|
296
|
+
region: lenient(Schema.String),
|
|
297
|
+
credentials: lenient(Credentials),
|
|
298
|
+
accessKeyId: lenient(Schema.String),
|
|
299
|
+
secretAccessKey: lenient(Schema.String),
|
|
300
|
+
sessionToken: lenient(Schema.String),
|
|
301
|
+
anthropicBeta: lenient(Schema.Array(Schema.String)),
|
|
302
|
+
serviceTier: lenient(Schema.String),
|
|
303
|
+
reasoningConfig: lenient(Schema.Struct({
|
|
304
|
+
type: lenient(Schema.String),
|
|
305
|
+
display: lenient(Schema.String),
|
|
306
|
+
maxReasoningEffort: lenient(Schema.String),
|
|
307
|
+
budgetTokens: lenient(Schema.Number)
|
|
308
|
+
})),
|
|
309
|
+
additionalModelRequestFields: lenient(Schema.StructWithRest(Schema.Struct({
|
|
310
|
+
anthropic_beta: lenient(Schema.Array(Schema.String)),
|
|
311
|
+
output_config: lenient(Schema.Record(Schema.String, Schema.Unknown)),
|
|
312
|
+
reasoning: lenient(Schema.Record(Schema.String, Schema.Unknown))
|
|
313
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)])),
|
|
314
|
+
appName: lenient(Schema.String),
|
|
315
|
+
appUrl: lenient(Schema.String),
|
|
316
|
+
api_keys: lenient(Schema.Record(Schema.String, Schema.String))
|
|
317
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
318
|
+
var decode = Schema.decodeUnknownSync(Legacy);
|
|
319
|
+
|
|
320
|
+
// src/provider.ts
|
|
71
321
|
import { Event as Event14 } from "@opencode/schema/provider";
|
|
72
|
-
var
|
|
322
|
+
var ID12 = Provider.ID;
|
|
73
323
|
var AISDK_PREFIX2 = "aisdk:";
|
|
74
324
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
75
325
|
var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
|
|
@@ -80,12 +330,12 @@ function packageName2(value) {
|
|
|
80
330
|
return value;
|
|
81
331
|
return value.slice(AISDK_PREFIX2.length);
|
|
82
332
|
}
|
|
83
|
-
var JsonRecord =
|
|
84
|
-
var decodeJsonRecord =
|
|
333
|
+
var JsonRecord = Schema2.Record(Schema2.String, Schema2.Json);
|
|
334
|
+
var decodeJsonRecord = Schema2.decodeUnknownSync(JsonRecord);
|
|
85
335
|
|
|
86
|
-
class LoadError3 extends
|
|
87
|
-
package:
|
|
88
|
-
cause:
|
|
336
|
+
class LoadError3 extends Schema2.TaggedError()("Provider.LoadError", {
|
|
337
|
+
package: Schema2.String,
|
|
338
|
+
cause: Schema2.Defect()
|
|
89
339
|
}) {
|
|
90
340
|
}
|
|
91
341
|
var packages = new Map;
|
|
@@ -149,12 +399,12 @@ var builtins = new Map([
|
|
|
149
399
|
() => import("@opencode/ai/providers/zai-coding-plan/responses")
|
|
150
400
|
]
|
|
151
401
|
]);
|
|
152
|
-
var loadPackage2 =
|
|
402
|
+
var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
|
|
153
403
|
const specifier = packageName2(input);
|
|
154
404
|
const builtin = builtins.get(specifier);
|
|
155
405
|
if (builtin)
|
|
156
406
|
return yield* importPackage(specifier, specifier, builtin);
|
|
157
|
-
const resolved = yield*
|
|
407
|
+
const resolved = yield* Effect2.sync(() => {
|
|
158
408
|
if (specifier.startsWith("file://") || specifier.startsWith("@opencode/ai/"))
|
|
159
409
|
return specifier;
|
|
160
410
|
try {
|
|
@@ -173,8 +423,8 @@ var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
|
|
|
173
423
|
}
|
|
174
424
|
const parts = specifier.split("/");
|
|
175
425
|
const root = specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0] ?? specifier;
|
|
176
|
-
const installed = yield* npm.add(root).pipe(
|
|
177
|
-
const entrypoint = yield*
|
|
426
|
+
const installed = yield* npm.add(root).pipe(Effect2.mapError((cause) => new LoadError3({ package: specifier, cause })));
|
|
427
|
+
const entrypoint = yield* Effect2.try({
|
|
178
428
|
try: () => resolveModule(specifier, installed.directory),
|
|
179
429
|
catch: (cause) => new LoadError3({ package: specifier, cause })
|
|
180
430
|
});
|
|
@@ -183,15 +433,15 @@ var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
|
|
|
183
433
|
var CORE_KEYS = ["chunkTimeout", "compaction", "fetch", "headerTimeout", "timeout", "transport"];
|
|
184
434
|
var PROVIDER_ONLY_KEYS = ["chunkTimeout", "headerTimeout", "timeout", "transport"];
|
|
185
435
|
function nativeSettings2(settings) {
|
|
186
|
-
return
|
|
436
|
+
return Struct2.omit(settings, CORE_KEYS);
|
|
187
437
|
}
|
|
188
438
|
function modelSettings2(settings) {
|
|
189
|
-
return settings &&
|
|
439
|
+
return settings && Struct2.omit(settings, PROVIDER_ONLY_KEYS);
|
|
190
440
|
}
|
|
191
|
-
var decodeTimeout =
|
|
441
|
+
var decodeTimeout = Schema2.decodeUnknownOption(HttpTimeout);
|
|
192
442
|
var DEFAULT_TIMEOUT_MS3 = 300000;
|
|
193
443
|
function timeout2(value) {
|
|
194
|
-
return
|
|
444
|
+
return Option2.getOrUndefined(decodeTimeout(value));
|
|
195
445
|
}
|
|
196
446
|
function timeouts2(settings) {
|
|
197
447
|
return {
|
|
@@ -225,11 +475,11 @@ function mergeHeaders2(base, overlay) {
|
|
|
225
475
|
return result;
|
|
226
476
|
}, new Map).values());
|
|
227
477
|
}
|
|
228
|
-
var
|
|
478
|
+
var Request3 = Provider.Request;
|
|
229
479
|
var Compaction3 = Provider.Compaction;
|
|
230
480
|
var Transport2 = Provider.Transport;
|
|
231
481
|
var Settings2 = Provider.Settings;
|
|
232
|
-
var
|
|
482
|
+
var Info21 = Provider.Info;
|
|
233
483
|
|
|
234
484
|
class Service68 extends Context.Service()("@opencode/Provider") {
|
|
235
485
|
}
|
|
@@ -244,10 +494,10 @@ function index(providerID, models) {
|
|
|
244
494
|
definitions.set(models, indexes);
|
|
245
495
|
return result;
|
|
246
496
|
}
|
|
247
|
-
var layer = Layer.effect(Service68,
|
|
248
|
-
const bus = yield*
|
|
249
|
-
const integrations = yield*
|
|
250
|
-
const location = yield*
|
|
497
|
+
var layer = Layer.effect(Service68, Effect2.gen(function* () {
|
|
498
|
+
const bus = yield* Service83;
|
|
499
|
+
const integrations = yield* Service70;
|
|
500
|
+
const location = yield* Service76;
|
|
251
501
|
const state = create3({
|
|
252
502
|
name: "provider",
|
|
253
503
|
initial: () => new Map,
|
|
@@ -258,7 +508,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
258
508
|
const current = records.get(id);
|
|
259
509
|
if (current)
|
|
260
510
|
return current;
|
|
261
|
-
const added = { provider:
|
|
511
|
+
const added = { provider: Info21.empty(id), models: new Map };
|
|
262
512
|
records.set(id, added);
|
|
263
513
|
maps.add(added.models);
|
|
264
514
|
return added;
|
|
@@ -326,9 +576,9 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
326
576
|
},
|
|
327
577
|
notify: () => notify
|
|
328
578
|
});
|
|
329
|
-
yield*
|
|
579
|
+
yield* Effect2.addFinalizer(() => shutdown2(state.reload()));
|
|
330
580
|
let cached;
|
|
331
|
-
const snapshot =
|
|
581
|
+
const snapshot = Effect2.fn("Provider.snapshot")(function* () {
|
|
332
582
|
while (true) {
|
|
333
583
|
const revision = integrations.revision();
|
|
334
584
|
const records = state.get();
|
|
@@ -339,7 +589,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
339
589
|
const available = Array.from(records.values()).filter((record) => {
|
|
340
590
|
if (record.provider.activation === "disabled")
|
|
341
591
|
return false;
|
|
342
|
-
const integration = byID.get(record.provider.integrationID ??
|
|
592
|
+
const integration = byID.get(record.provider.integrationID ?? ID14.make(record.provider.id));
|
|
343
593
|
if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
|
|
344
594
|
return false;
|
|
345
595
|
if (record.provider.activation === "enabled")
|
|
@@ -356,7 +606,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
356
606
|
}
|
|
357
607
|
});
|
|
358
608
|
let published;
|
|
359
|
-
const notify =
|
|
609
|
+
const notify = Effect2.gen(function* () {
|
|
360
610
|
const value = yield* snapshot();
|
|
361
611
|
if (value === published)
|
|
362
612
|
return;
|
|
@@ -365,19 +615,19 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
365
615
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
366
616
|
});
|
|
367
617
|
});
|
|
368
|
-
yield* bus.subscribe([
|
|
618
|
+
yield* bus.subscribe([Event16.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect2.forkScoped({ startImmediately: true }));
|
|
369
619
|
return Service68.of({
|
|
370
620
|
transform: state.transform,
|
|
371
621
|
reload: state.reload,
|
|
372
|
-
get:
|
|
373
|
-
all:
|
|
374
|
-
available:
|
|
622
|
+
get: Effect2.fn("Provider.get")((id) => Effect2.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
623
|
+
all: Effect2.fn("Provider.all")(() => Effect2.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
|
|
624
|
+
available: Effect2.fn("Provider.available")(() => snapshot().pipe(Effect2.map((value) => value.providers))),
|
|
375
625
|
snapshot
|
|
376
626
|
});
|
|
377
627
|
}));
|
|
378
|
-
var node72 = makeLocationNode({ service: Service68, layer, deps: [
|
|
379
|
-
var importPackage =
|
|
380
|
-
const module = yield*
|
|
628
|
+
var node72 = makeLocationNode({ service: Service68, layer, deps: [node87, node74, node80] });
|
|
629
|
+
var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
630
|
+
const module = yield* Effect2.tryPromise({
|
|
381
631
|
try: () => {
|
|
382
632
|
const existing = packages.get(entrypoint);
|
|
383
633
|
if (existing)
|
|
@@ -397,254 +647,4 @@ var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, en
|
|
|
397
647
|
return module;
|
|
398
648
|
});
|
|
399
649
|
|
|
400
|
-
|
|
401
|
-
function rewrite2(target, input) {
|
|
402
|
-
if (input.specifier === undefined)
|
|
403
|
-
return;
|
|
404
|
-
const plain = resolve(input.specifier, input);
|
|
405
|
-
if (!plain)
|
|
406
|
-
return;
|
|
407
|
-
const settings = decode(target.settings ?? {});
|
|
408
|
-
const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
|
|
409
|
-
const translated = options(replacement, input.modelID, settings);
|
|
410
|
-
if (target.package !== undefined || replacement !== input.specifier)
|
|
411
|
-
target.package = replacement;
|
|
412
|
-
target.settings = target.settings === undefined ? undefined : {
|
|
413
|
-
...translated.settings,
|
|
414
|
-
...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
|
|
415
|
-
};
|
|
416
|
-
target.headers = mergeHeaders2(translated.headers, target.headers);
|
|
417
|
-
target.body = mergeOverlay2(translated.body, target.body);
|
|
418
|
-
target.variants = target.variants?.map((variant) => {
|
|
419
|
-
const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
|
|
420
|
-
const headers = mergeHeaders2(overlay.headers, variant.headers);
|
|
421
|
-
const body = mergeOverlay2(overlay.body, variant.body);
|
|
422
|
-
return {
|
|
423
|
-
id: variant.id,
|
|
424
|
-
...variant.settings === undefined ? {} : { settings: overlay.settings },
|
|
425
|
-
...headers === undefined ? {} : { headers },
|
|
426
|
-
...body === undefined ? {} : { body }
|
|
427
|
-
};
|
|
428
|
-
});
|
|
429
|
-
}
|
|
430
|
-
var PACKAGES = {
|
|
431
|
-
"@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
|
|
432
|
-
"@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
|
|
433
|
-
"@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
|
|
434
|
-
"@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
|
|
435
|
-
"@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
|
|
436
|
-
"@ai-sdk/cohere": "@opencode/ai/providers/cohere",
|
|
437
|
-
"@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
|
|
438
|
-
"@ai-sdk/google": "@opencode/ai/providers/google",
|
|
439
|
-
"@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
|
|
440
|
-
"@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
|
|
441
|
-
"@ai-sdk/groq": "@opencode/ai/providers/groq",
|
|
442
|
-
"@ai-sdk/mistral": "@opencode/ai/providers/mistral",
|
|
443
|
-
"@ai-sdk/openai": "@opencode/ai/providers/openai",
|
|
444
|
-
"@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
|
|
445
|
-
"@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
|
|
446
|
-
"@ai-sdk/xai": "@opencode/ai/providers/xai",
|
|
447
|
-
"@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
|
|
448
|
-
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
449
|
-
};
|
|
450
|
-
var protocols = (name) => ({
|
|
451
|
-
"@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
|
|
452
|
-
"@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
|
|
453
|
-
"@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
|
|
454
|
-
});
|
|
455
|
-
var HOSTS = {
|
|
456
|
-
alibaba: protocols("alibaba"),
|
|
457
|
-
"alibaba-cn": protocols("alibaba"),
|
|
458
|
-
"alibaba-coding-plan": protocols("alibaba"),
|
|
459
|
-
"alibaba-coding-plan-cn": protocols("alibaba"),
|
|
460
|
-
"alibaba-token-plan": protocols("alibaba"),
|
|
461
|
-
"alibaba-token-plan-cn": protocols("alibaba"),
|
|
462
|
-
baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
|
|
463
|
-
"cloudflare-ai-gateway": {
|
|
464
|
-
"@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
465
|
-
"@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
466
|
-
"@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
467
|
-
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
468
|
-
},
|
|
469
|
-
cohere: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cohere/chat" },
|
|
470
|
-
"cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
|
|
471
|
-
deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
|
|
472
|
-
digitalocean: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/digitalocean" },
|
|
473
|
-
"fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
|
|
474
|
-
"google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
|
|
475
|
-
"kimi-for-coding": protocols("moonshot"),
|
|
476
|
-
meta: protocols("meta"),
|
|
477
|
-
minimax: protocols("minimax"),
|
|
478
|
-
"minimax-cn": protocols("minimax"),
|
|
479
|
-
"minimax-coding-plan": protocols("minimax"),
|
|
480
|
-
"minimax-cn-coding-plan": protocols("minimax"),
|
|
481
|
-
moonshotai: protocols("moonshot"),
|
|
482
|
-
"moonshotai-cn": protocols("moonshot"),
|
|
483
|
-
zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
484
|
-
"zai-coding-plan": protocols("zai-coding-plan"),
|
|
485
|
-
zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
486
|
-
"zhipuai-coding-plan": protocols("zai-coding-plan")
|
|
487
|
-
};
|
|
488
|
-
var NATIVE = new Set([
|
|
489
|
-
...Object.values(PACKAGES),
|
|
490
|
-
...Object.values(HOSTS).flatMap((host) => Object.values(host)),
|
|
491
|
-
"@opencode/ai/providers/azure/chat",
|
|
492
|
-
"@opencode/ai/providers/amazon-bedrock/mantle",
|
|
493
|
-
"@opencode/ai/providers/amazon-bedrock/mantle/chat",
|
|
494
|
-
"@opencode/ai/providers/amazon-bedrock/mantle/responses"
|
|
495
|
-
]);
|
|
496
|
-
function native2(npm, context) {
|
|
497
|
-
const host = HOSTS[context.providerID]?.[npm];
|
|
498
|
-
if (host)
|
|
499
|
-
return host;
|
|
500
|
-
if (npm === "@ai-sdk/amazon-bedrock/mantle")
|
|
501
|
-
return mantle(context.modelID);
|
|
502
|
-
if (npm === "@ai-sdk/azure" && context.settings?.useCompletionUrls === true)
|
|
503
|
-
return "@opencode/ai/providers/azure/chat";
|
|
504
|
-
return PACKAGES[npm];
|
|
505
|
-
}
|
|
506
|
-
var mantle = (modelID) => {
|
|
507
|
-
if (modelID === undefined)
|
|
508
|
-
return "@opencode/ai/providers/amazon-bedrock/mantle";
|
|
509
|
-
return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
|
|
510
|
-
};
|
|
511
|
-
function resolve(specifier, context) {
|
|
512
|
-
const npm = packageName2(specifier);
|
|
513
|
-
if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
|
|
514
|
-
return native2(npm, context);
|
|
515
|
-
if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
|
|
516
|
-
return mantle(context.modelID);
|
|
517
|
-
if (npm === "@opencode/ai/providers/azure/responses" && context.settings?.useCompletionUrls === true)
|
|
518
|
-
return "@opencode/ai/providers/azure/chat";
|
|
519
|
-
return NATIVE.has(npm) ? npm : undefined;
|
|
520
|
-
}
|
|
521
|
-
function options(replacement, modelID, settings) {
|
|
522
|
-
const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
|
|
523
|
-
const kept = Struct2.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
|
|
524
|
-
const thinking = converse ? bedrockThinking(modelID, settings) : undefined;
|
|
525
|
-
return {
|
|
526
|
-
settings: {
|
|
527
|
-
...replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
|
|
528
|
-
...thinking === undefined ? {} : { thinking }
|
|
529
|
-
},
|
|
530
|
-
...settings.headers === undefined ? {} : { headers: settings.headers },
|
|
531
|
-
...settings.extraBody === undefined ? {} : { body: settings.extraBody },
|
|
532
|
-
...converse ? bedrockRequest(modelID, settings) : {},
|
|
533
|
-
...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
|
|
534
|
-
};
|
|
535
|
-
}
|
|
536
|
-
var BEDROCK_KEYS = [
|
|
537
|
-
"bearerToken",
|
|
538
|
-
"endpoint",
|
|
539
|
-
"credentials",
|
|
540
|
-
"credentialProvider",
|
|
541
|
-
"accessKeyId",
|
|
542
|
-
"secretAccessKey",
|
|
543
|
-
"sessionToken"
|
|
544
|
-
];
|
|
545
|
-
var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
|
|
546
|
-
function bedrockSettings(settings, converse) {
|
|
547
|
-
const region = settings.region ?? settings.credentials?.region;
|
|
548
|
-
const credentials = settings.credentials ?? settings;
|
|
549
|
-
const baseURL = settings.baseURL ?? settings.endpoint;
|
|
550
|
-
return {
|
|
551
|
-
...Struct2.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
|
|
552
|
-
...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
|
|
553
|
-
...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
|
|
554
|
-
...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
|
|
555
|
-
credentials: {
|
|
556
|
-
...region === undefined ? {} : { region },
|
|
557
|
-
accessKeyId: credentials.accessKeyId,
|
|
558
|
-
secretAccessKey: credentials.secretAccessKey,
|
|
559
|
-
...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
};
|
|
563
|
-
}
|
|
564
|
-
function bedrockThinking(modelID, settings) {
|
|
565
|
-
const reasoning = settings.reasoningConfig;
|
|
566
|
-
if (!modelID?.includes("anthropic") || reasoning?.type !== "enabled" || reasoning.budgetTokens === undefined)
|
|
567
|
-
return;
|
|
568
|
-
return { type: "enabled", budgetTokens: reasoning.budgetTokens };
|
|
569
|
-
}
|
|
570
|
-
function bedrockRequest(modelID, settings) {
|
|
571
|
-
const additional = settings.additionalModelRequestFields ?? {};
|
|
572
|
-
const reasoning = settings.reasoningConfig;
|
|
573
|
-
const anthropic = modelID?.includes("anthropic") ?? false;
|
|
574
|
-
const openai = modelID?.includes("openai.") ?? false;
|
|
575
|
-
const harmony = modelID?.includes("openai.gpt-oss") ?? false;
|
|
576
|
-
const effort = reasoning?.maxReasoningEffort;
|
|
577
|
-
const type = reasoning?.type;
|
|
578
|
-
const budget = reasoning?.budgetTokens;
|
|
579
|
-
const display = reasoning?.display;
|
|
580
|
-
const betas = settings.anthropicBeta ?? [];
|
|
581
|
-
const fields = mergeOverlay2(additional, {
|
|
582
|
-
...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
|
|
583
|
-
...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
|
|
584
|
-
...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
|
|
585
|
-
...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
|
|
586
|
-
...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
|
|
587
|
-
...!anthropic && !openai && effort !== undefined ? {
|
|
588
|
-
reasoningConfig: {
|
|
589
|
-
...type === undefined || type === "adaptive" ? {} : { type },
|
|
590
|
-
...budget === undefined ? {} : { budgetTokens: budget },
|
|
591
|
-
maxReasoningEffort: effort
|
|
592
|
-
}
|
|
593
|
-
} : {}
|
|
594
|
-
});
|
|
595
|
-
const body = {
|
|
596
|
-
...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
|
|
597
|
-
...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
|
|
598
|
-
};
|
|
599
|
-
return Object.keys(body).length === 0 ? {} : { body };
|
|
600
|
-
}
|
|
601
|
-
var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
|
|
602
|
-
function openRouterRequest(settings) {
|
|
603
|
-
const headers = mergeHeaders2({
|
|
604
|
-
...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
|
|
605
|
-
...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
|
|
606
|
-
...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
|
|
607
|
-
}, settings.headers) ?? {};
|
|
608
|
-
return Object.keys(headers).length === 0 ? {} : { headers };
|
|
609
|
-
}
|
|
610
|
-
var lenient = (schema) => Schema2.optional(Schema2.UndefinedOr(schema).pipe(Schema2.catchDecoding(() => Effect2.succeed(Option2.some(undefined)))));
|
|
611
|
-
var Credentials = Schema2.Struct({
|
|
612
|
-
accessKeyId: Schema2.String,
|
|
613
|
-
secretAccessKey: Schema2.String,
|
|
614
|
-
sessionToken: lenient(Schema2.String),
|
|
615
|
-
region: lenient(Schema2.String)
|
|
616
|
-
});
|
|
617
|
-
var Legacy = Schema2.StructWithRest(Schema2.Struct({
|
|
618
|
-
apiKey: lenient(Schema2.String),
|
|
619
|
-
baseURL: lenient(Schema2.String),
|
|
620
|
-
headers: lenient(Schema2.Record(Schema2.String, Schema2.String)),
|
|
621
|
-
extraBody: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
|
|
622
|
-
useCompletionUrls: lenient(Schema2.Boolean),
|
|
623
|
-
auth: lenient(Schema2.Literals(["bearer", "sigv4"])),
|
|
624
|
-
bearerToken: lenient(Schema2.String),
|
|
625
|
-
endpoint: lenient(Schema2.String),
|
|
626
|
-
region: lenient(Schema2.String),
|
|
627
|
-
credentials: lenient(Credentials),
|
|
628
|
-
accessKeyId: lenient(Schema2.String),
|
|
629
|
-
secretAccessKey: lenient(Schema2.String),
|
|
630
|
-
sessionToken: lenient(Schema2.String),
|
|
631
|
-
anthropicBeta: lenient(Schema2.Array(Schema2.String)),
|
|
632
|
-
serviceTier: lenient(Schema2.String),
|
|
633
|
-
reasoningConfig: lenient(Schema2.Struct({
|
|
634
|
-
type: lenient(Schema2.String),
|
|
635
|
-
display: lenient(Schema2.String),
|
|
636
|
-
maxReasoningEffort: lenient(Schema2.String),
|
|
637
|
-
budgetTokens: lenient(Schema2.Number)
|
|
638
|
-
})),
|
|
639
|
-
additionalModelRequestFields: lenient(Schema2.StructWithRest(Schema2.Struct({
|
|
640
|
-
anthropic_beta: lenient(Schema2.Array(Schema2.String)),
|
|
641
|
-
output_config: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
|
|
642
|
-
reasoning: lenient(Schema2.Record(Schema2.String, Schema2.Unknown))
|
|
643
|
-
}), [Schema2.Record(Schema2.String, Schema2.Unknown)])),
|
|
644
|
-
appName: lenient(Schema2.String),
|
|
645
|
-
appUrl: lenient(Schema2.String),
|
|
646
|
-
api_keys: lenient(Schema2.Record(Schema2.String, Schema2.String))
|
|
647
|
-
}), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
|
|
648
|
-
var decode = Schema2.decodeUnknownSync(Legacy);
|
|
649
|
-
|
|
650
|
-
export { rewrite2, native2, exports_aisdk_native, ID8, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, timeout2, timeouts2, mergeOverlay2, mergeHeaders2, Request2, Compaction3, Transport2, Settings2, Info22, Service68, node72, exports_provider3, Event14 };
|
|
650
|
+
export { ID12, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, timeout2, timeouts2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info21, Service68, node72, exports_provider3, Event14, rewrite2, native2, exports_aisdk_native };
|