@opencode/core 0.0.0-dev-20480 → 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 +83 -83
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +69 -69
- package/dist/chunks/{location-activity-6mhjx4b6.js → git-02rta1p5.js} +2 -2
- package/dist/chunks/{location-activity-wg68nafb.js → git-03xyy9gs.js} +11 -11
- package/dist/chunks/{location-activity-y14bx9tm.js → git-0h87xbbz.js} +11 -11
- package/dist/chunks/{location-activity-0paq2nw3.js → git-0paq2nw3.js} +1 -1
- package/dist/chunks/{location-activity-n6nrhf01.js → git-0r7m21ea.js} +32 -32
- package/dist/chunks/{location-activity-0vbcp93d.js → git-0vbcp93d.js} +2 -2
- package/dist/chunks/{location-activity-8bm8gygk.js → git-11schykf.js} +18 -18
- package/dist/chunks/{location-activity-t6hpw5rz.js → git-16tfmg9n.js} +13 -13
- package/dist/chunks/{location-activity-5shwkg68.js → git-17xbj2z7.js} +2 -2
- package/dist/chunks/{location-activity-r8xr0va3.js → git-1acjjqhc.js} +4 -4
- package/dist/chunks/{location-activity-9hn6k4tm.js → git-1ajx6rf5.js} +8 -8
- package/dist/chunks/{location-activity-dmvmn2q0.js → git-1bypmceh.js} +16 -16
- package/dist/chunks/{location-activity-1dazxqgg.js → git-1dazxqgg.js} +2 -2
- package/dist/chunks/{location-activity-84h8c373.js → git-1dvck2a7.js} +2 -2
- package/dist/chunks/{location-activity-89za3yyg.js → git-1gpb38yh.js} +9 -9
- package/dist/chunks/{location-activity-gd1at56q.js → git-1pfhqsc3.js} +20 -20
- package/dist/chunks/{location-activity-p1h07j1p.js → git-1x0zm3dp.js} +20 -20
- package/dist/chunks/{location-activity-k2dbp69f.js → git-1zn329az.js} +10 -10
- package/dist/chunks/{location-activity-dc9hv6dn.js → git-200bxkj7.js} +20 -20
- package/dist/chunks/{location-activity-rvevwjzn.js → git-272ak889.js} +14 -14
- package/dist/chunks/{location-activity-2a5m3afh.js → git-2a5m3afh.js} +1 -1
- package/dist/chunks/{location-activity-adcymw1a.js → git-2bzy33zx.js} +18 -18
- package/dist/chunks/{location-activity-hntbmpkd.js → git-2hstpqf3.js} +9 -9
- package/dist/chunks/{location-activity-85bcdz65.js → git-2re9vmfy.js} +16 -16
- package/dist/chunks/{location-activity-md6w79y2.js → git-327sg516.js} +16 -16
- package/dist/chunks/{location-activity-ah6q2b7n.js → git-3382x40z.js} +4 -4
- package/dist/chunks/{location-activity-9ncrd2s7.js → git-386dse5s.js} +30 -30
- package/dist/chunks/{location-activity-3fc6dm20.js → git-3fc6dm20.js} +1 -1
- package/dist/chunks/{location-activity-yej8dt28.js → git-3gjywyz4.js} +11 -11
- package/dist/chunks/{location-activity-ekssatwp.js → git-3gz5rark.js} +35 -35
- package/dist/chunks/{location-activity-3hepkmqq.js → git-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-activity-1jktvbmr.js → git-3q5fxme7.js} +9 -9
- package/dist/chunks/{location-activity-3smtnn6g.js → git-3smtnn6g.js} +1 -1
- package/dist/chunks/{location-activity-3tvqynh2.js → git-3tvqynh2.js} +1 -1
- package/dist/chunks/{location-activity-5c258t51.js → git-3wpc7sdy.js} +27 -27
- package/dist/chunks/{location-activity-3zsf4n22.js → git-3zsf4n22.js} +1 -1
- package/dist/chunks/{location-activity-g4je1hn3.js → git-41vfag0n.js} +16 -16
- package/dist/chunks/{location-activity-3fwjzrvh.js → git-42a4b5x3.js} +30 -30
- package/dist/chunks/{location-activity-t0cz011w.js → git-470k3ke5.js} +18 -18
- package/dist/chunks/{location-activity-2p623br6.js → git-4a6jpjer.js} +5 -5
- package/dist/chunks/{location-activity-63kpjth9.js → git-4ckgtqrh.js} +9 -9
- package/dist/chunks/{location-activity-2wfefq25.js → git-4mwhzqns.js} +34 -34
- package/dist/chunks/{location-activity-2ccvkpx1.js → git-4ts7tf6z.js} +2 -2
- package/dist/chunks/{location-activity-vd5y62t1.js → git-4wrkd8nn.js} +11 -11
- package/dist/chunks/{location-activity-30krspkn.js → git-4wx3j26j.js} +4 -4
- package/dist/chunks/{location-activity-w2h15q85.js → git-4xpgt2w9.js} +5 -5
- package/dist/chunks/{location-activity-dzse07y5.js → git-51f5btjf.js} +6 -6
- package/dist/chunks/{location-activity-54ma36ye.js → git-54ma36ye.js} +1 -1
- package/dist/chunks/{location-activity-ajc4e5h8.js → git-5azn87gq.js} +28 -28
- package/dist/chunks/{location-activity-5daktx2q.js → git-5daktx2q.js} +1 -1
- package/dist/chunks/{location-activity-rjjes25b.js → git-5hqve3aj.js} +9 -9
- package/dist/chunks/{location-activity-e3qxr5gk.js → git-5qd3pb7m.js} +2 -2
- package/dist/chunks/{location-activity-hvp92dt9.js → git-5sqh9w00.js} +15 -15
- package/dist/chunks/{location-activity-5t3nmthw.js → git-5t3nmthw.js} +2 -2
- package/dist/chunks/{location-activity-tbd6cyzm.js → git-5v41a74b.js} +9 -9
- package/dist/chunks/{location-activity-ca8f65ss.js → git-5zfwvp2h.js} +6 -6
- package/dist/chunks/{location-activity-c2xhvt6h.js → git-62dyt405.js} +11 -11
- package/dist/chunks/{location-activity-669tq793.js → git-669tq793.js} +1 -1
- package/dist/chunks/{location-activity-7y5xt9fp.js → git-6dmpadww.js} +20 -20
- package/dist/chunks/{location-activity-zrbtt2np.js → git-6gna983b.js} +9 -9
- package/dist/chunks/{location-activity-dezvg7mv.js → git-6pjm6hxh.js} +41 -41
- package/dist/chunks/{location-activity-f75zav2x.js → git-71az546q.js} +2 -2
- package/dist/chunks/{location-activity-wg8gh26w.js → git-73pa4q01.js} +21 -21
- package/dist/chunks/{location-activity-7bmhse3q.js → git-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-activity-0930v272.js → git-7dd52q06.js} +3 -3
- package/dist/chunks/{location-activity-0q0bn7wt.js → git-7p313m06.js} +23 -23
- package/dist/chunks/{location-activity-9zdzxtry.js → git-7r82taj5.js} +18 -18
- package/dist/chunks/{location-activity-699ws4wq.js → git-83cqqva6.js} +17 -17
- package/dist/chunks/{location-activity-350srhaq.js → git-8a37x1ax.js} +50 -50
- package/dist/chunks/{location-activity-8d7r5vzw.js → git-8d7r5vzw.js} +1 -1
- package/dist/chunks/{location-activity-h4khw5px.js → git-8f060hg1.js} +11 -11
- package/dist/chunks/{location-activity-v0a4cbca.js → git-8khbh05p.js} +11 -11
- package/dist/chunks/{location-activity-v0es1rhs.js → git-8ndffx4j.js} +7 -7
- package/dist/chunks/{location-activity-h35v9yb6.js → git-8sme8jv8.js} +37 -37
- package/dist/chunks/{location-activity-nfg6fefr.js → git-92hpndrs.js} +9 -9
- package/dist/chunks/{location-activity-53sad93v.js → git-9750y225.js} +4 -4
- package/dist/chunks/{location-activity-yb8n5v0q.js → git-9bbmhm4m.js} +4 -4
- package/dist/chunks/{location-activity-kb9j3d72.js → git-9e5bzkjp.js} +3 -3
- package/dist/chunks/{location-activity-bcyfx9y6.js → git-9em85dm2.js} +15 -15
- package/dist/chunks/{location-activity-s7b7m8gm.js → git-9fyj3hys.js} +8 -8
- package/dist/chunks/{location-activity-v6eddqm0.js → git-9nytgvc2.js} +8 -8
- package/dist/chunks/{location-activity-182h7z1q.js → git-9qd58nx3.js} +24 -24
- package/dist/chunks/{location-activity-s8d7rejh.js → git-9t7a50xb.js} +4 -4
- package/dist/chunks/{location-activity-hge028m4.js → git-9zybxyya.js} +2 -2
- package/dist/chunks/{location-activity-agk43xgf.js → git-a3txam13.js} +23 -23
- package/dist/chunks/{location-activity-ce4acjxh.js → git-aa8qew8f.js} +22 -22
- package/dist/chunks/{location-activity-aaet6srn.js → git-aaet6srn.js} +2 -2
- package/dist/chunks/{location-activity-7qw5pe6x.js → git-ap4zckht.js} +15 -15
- package/dist/chunks/{location-activity-n6125c2f.js → git-apaqd6gh.js} +1 -1
- package/dist/chunks/{location-activity-9xtpzk6w.js → git-apm8h6qx.js} +85 -85
- package/dist/chunks/{location-activity-wdpy1g7d.js → git-b45szw8n.js} +12 -12
- package/dist/chunks/{location-activity-b6gygkdw.js → git-b6gygkdw.js} +2 -2
- package/dist/chunks/{location-activity-59g0s8dr.js → git-b6reh3hn.js} +16 -16
- package/dist/chunks/{location-activity-4s3tx91s.js → git-bbw36kky.js} +24 -24
- package/dist/chunks/{location-activity-y1qqcj8h.js → git-bh0zzf2s.js} +8 -8
- package/dist/chunks/{location-activity-pde12nfv.js → git-bpkwba73.js} +48 -48
- package/dist/chunks/{location-activity-sy19eeqe.js → git-brvreg6p.js} +1 -1
- package/dist/chunks/{location-activity-dbwd59jn.js → git-bt3d1ymw.js} +22 -19
- package/dist/chunks/{location-activity-yr715y08.js → git-bydnjh3t.js} +9 -9
- package/dist/chunks/{location-activity-9fcaedt7.js → git-bz7vn164.js} +8 -8
- package/dist/chunks/{location-activity-qebx1f20.js → git-c16f70nq.js} +10 -10
- package/dist/chunks/{location-activity-4de0x2wn.js → git-c7x212x9.js} +1 -1
- package/dist/chunks/{location-activity-6r3g6dz6.js → git-cbyyef9c.js} +31 -31
- package/dist/chunks/{location-activity-4hn8epdp.js → git-ccksxbyh.js} +28 -28
- package/dist/chunks/{location-activity-8sze2n9a.js → git-cfsekr6v.js} +6 -6
- package/dist/chunks/{location-activity-y2jnyesm.js → git-cgyy49aj.js} +11 -11
- package/dist/chunks/{location-activity-pg2wvq8g.js → git-cjerh2x3.js} +10 -10
- package/dist/chunks/{location-activity-n2nn37za.js → git-cjthjsse.js} +33 -33
- package/dist/chunks/{location-activity-cywz34g8.js → git-cr0y6bkk.js} +26 -26
- package/dist/chunks/{location-activity-cpneeje0.js → git-cwa6csj7.js} +9 -9
- package/dist/chunks/{location-activity-4y69q3w9.js → git-d819pdvd.js} +5 -5
- package/dist/chunks/{location-activity-14mdsyfv.js → git-dcs9hbsv.js} +21 -21
- package/dist/chunks/{location-activity-n11r83wc.js → git-dfrza52c.js} +11 -11
- package/dist/chunks/{location-activity-p9esxrs0.js → git-dherjby8.js} +5 -5
- package/dist/chunks/{location-activity-dmqcgk4z.js → git-dmqcgk4z.js} +2 -2
- package/dist/chunks/{location-activity-525retpn.js → git-dpe144tr.js} +13 -13
- package/dist/chunks/{location-activity-nxm207yx.js → git-dpkg50ah.js} +4 -4
- package/dist/chunks/{location-activity-3nmmjeqr.js → git-dqs0vcbf.js} +15 -15
- package/dist/chunks/{location-activity-drnf6xwf.js → git-drnf6xwf.js} +2 -2
- package/dist/chunks/{location-activity-k1qrnqst.js → git-dvc89yjx.js} +8 -8
- package/dist/chunks/{location-activity-mtjahv1a.js → git-e351gv9y.js} +11 -11
- package/dist/chunks/{location-activity-c1gcx4p7.js → git-eaxsg860.js} +3 -3
- package/dist/chunks/{location-activity-d4xa2c0j.js → git-eeb28w8k.js} +12 -12
- package/dist/chunks/{location-activity-ef5x83kb.js → git-ef5x83kb.js} +1 -1
- package/dist/chunks/{location-activity-116zdfxn.js → git-eseyeb0w.js} +14 -14
- package/dist/chunks/{location-activity-etq0c3wd.js → git-etq0c3wd.js} +1 -1
- package/dist/chunks/{location-activity-b24eg6ry.js → git-f95rk2pr.js} +23 -23
- package/dist/chunks/git-fpbz0h82.js +252 -0
- package/dist/chunks/{location-activity-f47cg35j.js → git-fr5pxeem.js} +23 -23
- package/dist/chunks/{location-activity-4rrx6bfz.js → git-fsfe74kd.js} +27 -27
- package/dist/chunks/{location-activity-8s0hbtb0.js → git-ftnv5kfd.js} +32 -32
- package/dist/chunks/git-fz13pkzb.js +507 -0
- package/dist/chunks/{location-activity-xfkkasph.js → git-g5w8qwbj.js} +4 -4
- package/dist/chunks/{location-activity-5wj0gyf6.js → git-g9tydsjn.js} +20 -20
- package/dist/chunks/{location-activity-0fve3x7k.js → git-gck3dpx1.js} +33 -33
- package/dist/chunks/{location-activity-gd4qta3r.js → git-gd4qta3r.js} +1 -1
- package/dist/chunks/{location-activity-adr463s0.js → git-gm6nnvxm.js} +24 -24
- package/dist/chunks/{location-activity-nsc4cbcy.js → git-gvzxnjjj.js} +4 -4
- package/dist/chunks/{location-activity-3cegwx68.js → git-h2b79v29.js} +2 -2
- package/dist/chunks/{location-activity-h6vf3j39.js → git-h6vf3j39.js} +1 -1
- package/dist/chunks/{location-activity-nh29y208.js → git-habzs87j.js} +18 -18
- package/dist/chunks/{location-activity-kef0s52w.js → git-hc976vhp.js} +15 -15
- package/dist/chunks/{location-activity-h1yvt719.js → git-hq153nby.js} +16 -16
- package/dist/chunks/{location-activity-zsrdwez2.js → git-hs4apeen.js} +10 -10
- package/dist/chunks/{location-activity-yqjd25qx.js → git-hvjr2bj8.js} +43 -43
- package/dist/chunks/{location-activity-3cg47sj7.js → git-hy3hxqkj.js} +10 -10
- package/dist/chunks/{location-activity-da11rmvm.js → git-j1j89z9y.js} +306 -306
- package/dist/chunks/{location-activity-bp279rdz.js → git-j505r7f3.js} +28 -28
- package/dist/chunks/{location-activity-j56e64zr.js → git-j56e64zr.js} +1 -1
- package/dist/chunks/{location-activity-hwrcrf3c.js → git-j712c6ve.js} +11 -11
- package/dist/chunks/{location-activity-w4mta7pp.js → git-j8rbgwqz.js} +43 -43
- package/dist/chunks/{location-activity-hfgdd62m.js → git-jf4axb2c.js} +3 -3
- package/dist/chunks/{location-activity-chrxq3ex.js → git-jrjafyr0.js} +11 -11
- package/dist/chunks/{location-activity-8gxqpgph.js → git-jvf3yq6v.js} +4 -4
- package/dist/chunks/{location-activity-656t1bz5.js → git-jyt5y1qt.js} +2 -2
- package/dist/chunks/{location-activity-1b3nhc4c.js → git-k0m5db98.js} +26 -26
- package/dist/chunks/{location-activity-wfx1w319.js → git-k2f9j3q2.js} +32 -32
- package/dist/chunks/{location-activity-2f0326dr.js → git-kaf4gepk.js} +54 -54
- package/dist/chunks/{location-activity-10kh9wpp.js → git-m0ekd96m.js} +6 -6
- package/dist/chunks/{location-activity-m3fdjcah.js → git-m3fdjcah.js} +1 -1
- package/dist/chunks/{location-activity-wx8f0816.js → git-m6x68w8h.js} +175 -175
- package/dist/chunks/{location-activity-x46ed3ah.js → git-m9v4343w.js} +14 -14
- package/dist/chunks/{location-activity-m9w0rfyh.js → git-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-activity-mfqp6xfm.js → git-mfqp6xfm.js} +2 -2
- package/dist/chunks/{location-activity-x6pyv2yz.js → git-mjagy123.js} +5 -5
- package/dist/chunks/{location-activity-p51p3jcg.js → git-mjymc32g.js} +21 -21
- package/dist/chunks/{location-activity-j028xdjb.js → git-mvfsc1pv.js} +3 -3
- package/dist/chunks/{location-activity-xn17k1w9.js → git-mx9s3x0a.js} +7 -7
- package/dist/chunks/{location-activity-0khjy9ec.js → git-n1n7d1bc.js} +33 -33
- package/dist/chunks/{location-activity-g8eyt1hc.js → git-nbbbwrsr.js} +46 -46
- package/dist/chunks/{location-activity-3556dn8t.js → git-ncnm8wen.js} +1 -1
- package/dist/chunks/{location-activity-wh506jg9.js → git-nte0bfvv.js} +18 -18
- package/dist/chunks/{location-activity-28zek266.js → git-p35g2vpz.js} +18 -18
- package/dist/chunks/{location-activity-bdn2jqxx.js → git-p558d1j2.js} +8 -8
- package/dist/chunks/{location-activity-567pkxz1.js → git-p6tgyf45.js} +5 -5
- package/dist/chunks/{location-activity-ck5rgqrb.js → git-p8k3f31h.js} +85 -85
- package/dist/chunks/{location-activity-8mk23zt3.js → git-p9yemd5w.js} +19 -19
- package/dist/chunks/{location-activity-kgnaaj8y.js → git-pbcn5b8q.js} +15 -15
- package/dist/chunks/{location-activity-f191dgah.js → git-pbpv9gfz.js} +9 -9
- package/dist/chunks/{location-activity-pjvnvgmy.js → git-pjvnvgmy.js} +1 -1
- package/dist/chunks/{location-activity-pknna89w.js → git-pknna89w.js} +1 -1
- package/dist/chunks/{location-activity-rm6495e7.js → git-pkyzxqrp.js} +20 -20
- package/dist/chunks/{location-activity-mdatewcv.js → git-pt1c4k6y.js} +21 -21
- package/dist/chunks/{location-activity-0ww7qdtd.js → git-py47m9dw.js} +10 -10
- package/dist/chunks/{location-activity-zxj9yazw.js → git-pzsynw2j.js} +8 -8
- package/dist/chunks/{location-activity-0j77ygfz.js → git-q0xm7vwc.js} +6 -6
- package/dist/chunks/{location-activity-y99drxtg.js → git-q2k9hrka.js} +20 -20
- package/dist/chunks/{location-activity-rge4jpvb.js → git-q4zhjj5d.js} +20 -20
- package/dist/chunks/{location-activity-2nv2m7pf.js → git-qaeybh9m.js} +6 -6
- package/dist/chunks/git-qc068m1q.js +18 -0
- package/dist/chunks/{location-activity-2k8khapm.js → git-qgn6gcr1.js} +5 -5
- package/dist/chunks/{location-activity-z6rdb9sr.js → git-qgrdwknr.js} +16 -16
- package/dist/chunks/{location-activity-qnc92qwc.js → git-qnc92qwc.js} +1 -1
- package/dist/chunks/{location-activity-9zv23tyg.js → git-qpmwgr82.js} +9 -9
- package/dist/chunks/{location-activity-qsdy395h.js → git-qsdy395h.js} +1 -1
- package/dist/chunks/{location-activity-yh2fg620.js → git-qthf81rg.js} +11 -11
- package/dist/chunks/{location-activity-qd4eqyk6.js → git-qtxdpptr.js} +32 -32
- package/dist/chunks/{location-activity-gda1r8ym.js → git-qvm0wtrp.js} +2 -2
- package/dist/chunks/{location-activity-qxjc9qry.js → git-qxjc9qry.js} +3 -3
- package/dist/chunks/{location-activity-y51nd170.js → git-qy6g1rdh.js} +17 -17
- package/dist/chunks/{location-activity-v7gwj56g.js → git-qzx8p8d0.js} +23 -23
- package/dist/chunks/{location-activity-jf6pjsy2.js → git-r3hpgepr.js} +26 -26
- package/dist/chunks/{location-activity-ep44p4pe.js → git-r44petzp.js} +12 -12
- package/dist/chunks/{location-activity-2jmxtyz7.js → git-r4qc49wz.js} +13 -13
- package/dist/chunks/{location-activity-19rp02gw.js → git-r50xfagt.js} +15 -15
- package/dist/chunks/{location-activity-5z2nh3x1.js → git-r63za8pc.js} +25 -25
- package/dist/chunks/{location-activity-mcm367ee.js → git-r86bf0fn.js} +3 -3
- package/dist/chunks/{location-activity-rdw6cm16.js → git-rdw6cm16.js} +1 -1
- package/dist/chunks/{location-activity-devvhrfz.js → git-repk3emw.js} +8 -8
- package/dist/chunks/git-rkn1pe94.js +26 -0
- package/dist/chunks/{location-activity-zy43x3f1.js → git-rpf1qvc3.js} +4 -4
- package/dist/chunks/{location-activity-9q5tzmyt.js → git-rzgz5kj8.js} +4 -4
- package/dist/chunks/{location-activity-z0aj456m.js → git-s26hbv8p.js} +4 -4
- package/dist/chunks/{location-activity-b2yqmgr8.js → git-s59ev0m2.js} +27 -27
- package/dist/chunks/{location-activity-qwjmgwmn.js → git-s5met55r.js} +8 -8
- package/dist/chunks/{location-activity-5824vx86.js → git-s6tbk65m.js} +11 -11
- package/dist/chunks/{location-activity-khw2gspr.js → git-sb1bm0qp.js} +71 -71
- package/dist/chunks/{location-activity-c0j408pk.js → git-shp8jhta.js} +1 -1
- package/dist/chunks/{location-activity-4w4aa4w4.js → git-srw1wyee.js} +17 -17
- package/dist/chunks/{location-activity-3t1wp6p2.js → git-sxtvyy3t.js} +10 -10
- package/dist/chunks/{location-activity-sy448gmp.js → git-t669c2kt.js} +7 -7
- package/dist/chunks/{location-activity-tazgh4e4.js → git-tazgh4e4.js} +1 -1
- package/dist/chunks/{location-activity-wjmvb2fm.js → git-tcatf3b6.js} +36 -36
- package/dist/chunks/{location-activity-tcezcvh9.js → git-tcezcvh9.js} +1 -1
- package/dist/chunks/{location-activity-tdstcens.js → git-tdstcens.js} +1 -1
- package/dist/chunks/{location-activity-qpjqjx5f.js → git-tg54efwz.js} +3 -3
- package/dist/chunks/{location-activity-3h2r7n3c.js → git-thf4zxr8.js} +5 -5
- package/dist/chunks/{location-activity-b27vhd2z.js → git-tkmwgdpd.js} +7 -7
- package/dist/chunks/{location-activity-4q9xksy6.js → git-trhjxf3d.js} +7 -7
- package/dist/chunks/{location-activity-xzjez30t.js → git-txs8yy3n.js} +1 -1
- package/dist/chunks/{location-activity-jdxg69hq.js → git-v252qd0j.js} +13 -13
- package/dist/chunks/{location-activity-f3d5htwy.js → git-v31r4dph.js} +8 -8
- package/dist/chunks/{location-activity-74ksxchy.js → git-v4wtaekh.js} +32 -32
- package/dist/chunks/{location-activity-2dnd7d20.js → git-vd216s12.js} +13 -13
- package/dist/chunks/{location-activity-veqvce7d.js → git-veqvce7d.js} +1 -1
- package/dist/chunks/{location-activity-xwd0acfk.js → git-vgwj7znc.js} +13 -13
- package/dist/chunks/{location-activity-vd3qs992.js → git-vj4f2rsj.js} +24 -24
- package/dist/chunks/{location-activity-adght6x0.js → git-vjbsmafc.js} +20 -20
- package/dist/chunks/{location-activity-rx9ava5n.js → git-vn72gsba.js} +4 -4
- package/dist/chunks/{location-activity-2w99apfa.js → git-vyt0kgkx.js} +33 -33
- package/dist/chunks/{location-activity-f8r3hpen.js → git-vyys1dp9.js} +11 -11
- package/dist/chunks/{location-activity-yegmnrcf.js → git-vzbxwz1d.js} +11 -11
- package/dist/chunks/{location-activity-vzcthcp8.js → git-vzcthcp8.js} +1 -1
- package/dist/chunks/{location-activity-vzs5sf6e.js → git-vzs5sf6e.js} +1 -1
- package/dist/chunks/{location-activity-84txncab.js → git-w1eejvng.js} +5 -5
- package/dist/chunks/{location-activity-w3wsvvr9.js → git-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-activity-4vp2zkv1.js → git-w4m5k0g7.js} +6 -6
- package/dist/chunks/{location-activity-2g406fp5.js → git-w8cdx6rt.js} +15 -15
- package/dist/chunks/{location-activity-za490t17.js → git-wb7crd86.js} +10 -10
- package/dist/chunks/{location-activity-k6ehc7p5.js → git-wcrrxam5.js} +57 -57
- package/dist/chunks/{location-activity-wd87259q.js → git-wd87259q.js} +1 -1
- package/dist/chunks/{location-activity-caseqyrv.js → git-wssnkxc5.js} +24 -24
- package/dist/chunks/{location-activity-x1ezjp6w.js → git-x1ezjp6w.js} +1 -1
- package/dist/chunks/{location-activity-x661k3y3.js → git-x661k3y3.js} +1 -1
- package/dist/chunks/{location-activity-82m24mh1.js → git-xb4hcye0.js} +24 -24
- package/dist/chunks/{location-activity-2k2r7q25.js → git-xkmy9fvh.js} +15 -15
- package/dist/chunks/{location-activity-ym76d0d6.js → git-xv72df90.js} +25 -25
- package/dist/chunks/{location-activity-y1fvbwt7.js → git-y1fvbwt7.js} +1 -1
- package/dist/chunks/{location-activity-snj9ksdw.js → git-yemncvg3.js} +24 -24
- package/dist/chunks/{location-activity-z6c3x22d.js → git-ygdna4kr.js} +5 -5
- package/dist/chunks/{location-activity-5sfjawpw.js → git-yhakkn64.js} +11 -11
- package/dist/chunks/{location-activity-5cd0f864.js → git-yn5e4dj4.js} +9 -9
- package/dist/chunks/{location-activity-yrhqyw5v.js → git-yrhqyw5v.js} +1 -1
- package/dist/chunks/{location-activity-0zsbm5jj.js → git-yv9jqw96.js} +6 -6
- package/dist/chunks/{location-activity-n8sna2wb.js → git-yvq0e8sz.js} +9 -9
- package/dist/chunks/{location-activity-z0bkrqjs.js → git-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-activity-mbjkcgq4.js → git-z8dbgj3m.js} +5 -5
- package/dist/chunks/{location-activity-0b06dnjj.js → git-z9j6250x.js} +30 -30
- package/dist/chunks/{location-activity-k371y6r1.js → git-zct2699j.js} +3 -3
- package/dist/chunks/{location-activity-k9ncgs0h.js → git-zf3n64mb.js} +25 -25
- package/dist/chunks/{location-activity-8767ctf1.js → git-zqb7t9wr.js} +24 -24
- package/dist/chunks/{location-activity-zr2ceqn5.js → git-zr2ceqn5.js} +1 -1
- package/dist/chunks/{location-activity-4z58m4b4.js → git-zsr4wwhv.js} +4 -4
- package/dist/chunks/{location-activity-hrhhvsst.js → git-ztzk91w7.js} +32 -32
- package/dist/chunks/{location-activity-2wts5qzq.js → git-zvr8tn04.js} +8 -8
- package/dist/chunks/{location-activity-5vx9e22b.js → git-zw2wtcws.js} +4 -4
- package/dist/chunks/{location-activity-zxq2ej10.js → git-zxq2ej10.js} +1 -1
- package/dist/chunks/{location-activity-b3f8fkhc.js → git-zyk1yjk8.js} +5 -5
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +85 -85
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +99 -99
- package/dist/config/plugin/agent.js +116 -116
- package/dist/config/plugin/command.js +205 -205
- package/dist/config/plugin/compaction.js +154 -154
- package/dist/config/plugin/compatibility.js +134 -134
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +123 -123
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +116 -116
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +135 -135
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +81 -81
- 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 -364
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +70 -70
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +218 -218
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +102 -102
- package/dist/form.js +78 -78
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- 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 +99 -99
- 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 -355
- package/dist/instruction-discovery.js +83 -83
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +85 -85
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +131 -131
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +352 -352
- 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 +109 -109
- package/dist/mcp/instructions.js +127 -127
- 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 +99 -99
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +102 -102
- package/dist/models-dev.js +103 -103
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +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 +86 -86
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +102 -102
- package/dist/plugin/command.js +100 -100
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +211 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +327 -327
- 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 +100 -100
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +117 -117
- 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 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- 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 -115
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +115 -115
- 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 -115
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +115 -115
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +156 -156
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +132 -132
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +346 -346
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +114 -114
- 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 +2 -2
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +224 -224
- 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 +133 -133
- 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 +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +214 -214
- package/dist/session/execution.js +125 -125
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +88 -88
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +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 +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +224 -224
- 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 +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +1 -1
- package/dist/session/session.js +164 -164
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +201 -201
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +208 -208
- package/dist/session/usage.js +1 -1
- package/dist/session.js +205 -205
- 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 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +108 -108
- package/dist/snapshot.js +91 -91
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +126 -126
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +122 -122
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +120 -120
- package/dist/tool/plugin/question.js +101 -101
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +208 -208
- package/dist/tool/plugin/skill.js +109 -109
- package/dist/tool/plugin/subagent.js +206 -206
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- 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/command.js +5 -5
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- 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/variant.js +91 -91
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +79 -79
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/location-activity-4v7qdvcn.js +0 -18
- package/dist/chunks/location-activity-m4mmr2p7.js +0 -26
- package/dist/chunks/location-activity-pz5pawm5.js +0 -507
- package/dist/chunks/location-activity-w7g85kp8.js +0 -252
- /package/dist/chunks/{location-activity-0qkdqm5v.js → git-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-activity-0zkw76rk.js → git-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-activity-17cy0kzp.js → git-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-activity-1cnp2v09.js → git-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-activity-1kg9ymc8.js → git-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{location-activity-24dcb14g.js → git-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-activity-2710q6r3.js → git-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-activity-2axfhc9x.js → git-2axfhc9x.js} +0 -0
- /package/dist/chunks/{location-activity-2c3vjs8z.js → git-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-activity-34c7v6d4.js → git-34c7v6d4.js} +0 -0
- /package/dist/chunks/{location-activity-359p4xyc.js → git-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-activity-3asan66x.js → git-3asan66x.js} +0 -0
- /package/dist/chunks/{location-activity-3v8g72cx.js → git-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-activity-3w5fmr99.js → git-3w5fmr99.js} +0 -0
- /package/dist/chunks/{location-activity-3wcehsnq.js → git-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-activity-43n2bw4t.js → git-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-activity-4knz6hnm.js → git-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-activity-4vcrnpx2.js → git-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-activity-4y7fprxs.js → git-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-activity-53557ph1.js → git-53557ph1.js} +0 -0
- /package/dist/chunks/{location-activity-550bvhaj.js → git-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-activity-6prwharc.js → git-6prwharc.js} +0 -0
- /package/dist/chunks/{location-activity-7akdwqpd.js → git-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-activity-7m9af43g.js → git-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-activity-822emrt2.js → git-822emrt2.js} +0 -0
- /package/dist/chunks/{location-activity-88xbtdfr.js → git-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-activity-8n3pysct.js → git-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-activity-8wj87zfr.js → git-8wj87zfr.js} +0 -0
- /package/dist/chunks/{location-activity-9a4afbnw.js → git-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-activity-9rqn6x4v.js → git-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-activity-a6k6eb26.js → git-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-activity-af5trqkr.js → git-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-activity-afrmfg78.js → git-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-activity-aqzs7mqg.js → git-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-activity-atq7p7m5.js → git-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-activity-bkyjaxrp.js → git-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-activity-bmr6ed5q.js → git-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-activity-cf4snx6d.js → git-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-activity-cvy3z8tj.js → git-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-activity-d9fn303g.js → git-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-activity-d9jj8t3e.js → git-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-activity-dajrwvna.js → git-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-activity-dap0rakb.js → git-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-activity-df08tz66.js → git-df08tz66.js} +0 -0
- /package/dist/chunks/{location-activity-dy18nga0.js → git-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-activity-e5kj55wp.js → git-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-activity-e73j6tqm.js → git-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-activity-ec1grn59.js → git-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-activity-eh3zwz77.js → git-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-activity-emrn6kk6.js → git-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-activity-f0mxakyp.js → git-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-activity-f6n9ztr4.js → git-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-activity-faypxj3z.js → git-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-activity-fd410y7t.js → git-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-activity-fxgpk5d8.js → git-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{location-activity-g4wezp1m.js → git-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-activity-g86h250q.js → git-g86h250q.js} +0 -0
- /package/dist/chunks/{location-activity-gebd4c9n.js → git-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-activity-gftt206x.js → git-gftt206x.js} +0 -0
- /package/dist/chunks/{location-activity-hjbc5kem.js → git-hjbc5kem.js} +0 -0
- /package/dist/chunks/{location-activity-hk9envan.js → git-hk9envan.js} +0 -0
- /package/dist/chunks/{location-activity-j2ntwpah.js → git-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-activity-j5zkgpj8.js → git-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-activity-jjkms2e6.js → git-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-activity-jr7sbwjy.js → git-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-activity-jwfs4k6c.js → git-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-activity-jzg6c2d5.js → git-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-activity-mp448xyj.js → git-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-activity-msx8hqn2.js → git-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-activity-my4zabxr.js → git-my4zabxr.js} +0 -0
- /package/dist/chunks/{location-activity-n05xt0ee.js → git-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-activity-n3j8tn72.js → git-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-activity-njntx4h6.js → git-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-activity-q3sfg36h.js → git-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-activity-q74kybfr.js → git-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-activity-qaymkmh1.js → git-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-activity-qb87gjwd.js → git-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-activity-qfa1cgps.js → git-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-activity-qg3g05ea.js → git-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-activity-qrg20bc0.js → git-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-activity-rcb2kzg1.js → git-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-activity-sdp7kfr6.js → git-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-activity-sk3qaz4a.js → git-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{location-activity-ssg3fenm.js → git-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-activity-w803qqfp.js → git-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-activity-wc3fc9cn.js → git-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-activity-wer8tq1h.js → git-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-activity-wtztk69x.js → git-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-activity-x0ckcb58.js → git-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-activity-x61499pn.js → git-x61499pn.js} +0 -0
- /package/dist/chunks/{location-activity-y44na4kk.js → git-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-activity-y8cydn3q.js → git-y8cydn3q.js} +0 -0
- /package/dist/chunks/{location-activity-y8f7s663.js → git-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-activity-ygaqb7jw.js → git-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-activity-ym463w8f.js → git-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-activity-z5v4ffb3.js → git-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{location-activity-z9919s4g.js → git-z9919s4g.js} +0 -0
|
@@ -1,36 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
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 = {};
|
|
@@ -38,13 +29,13 @@ __export(exports_provider3, {
|
|
|
38
29
|
AISDK_PREFIX: () => AISDK_PREFIX2,
|
|
39
30
|
Compaction: () => Compaction3,
|
|
40
31
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS3,
|
|
41
|
-
Event: () =>
|
|
32
|
+
Event: () => Event14,
|
|
42
33
|
ID: () => ID12,
|
|
43
34
|
Info: () => Info21,
|
|
44
35
|
LoadError: () => LoadError3,
|
|
45
36
|
Provider: () => exports_provider3,
|
|
46
37
|
Request: () => Request3,
|
|
47
|
-
Service: () =>
|
|
38
|
+
Service: () => Service68,
|
|
48
39
|
Settings: () => Settings2,
|
|
49
40
|
Transport: () => Transport2,
|
|
50
41
|
aisdk: () => aisdk2,
|
|
@@ -54,12 +45,12 @@ __export(exports_provider3, {
|
|
|
54
45
|
mergeOverlay: () => mergeOverlay2,
|
|
55
46
|
modelSettings: () => modelSettings2,
|
|
56
47
|
nativeSettings: () => nativeSettings2,
|
|
57
|
-
node: () =>
|
|
48
|
+
node: () => node72,
|
|
58
49
|
packageName: () => packageName2,
|
|
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,7 +59,266 @@ 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";
|
|
71
|
-
|
|
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
|
|
321
|
+
import { Event as Event14 } from "@opencode/schema/provider";
|
|
72
322
|
var ID12 = Provider.ID;
|
|
73
323
|
var AISDK_PREFIX2 = "aisdk:";
|
|
74
324
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
@@ -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 {
|
|
@@ -231,7 +481,7 @@ var Transport2 = Provider.Transport;
|
|
|
231
481
|
var Settings2 = Provider.Settings;
|
|
232
482
|
var Info21 = Provider.Info;
|
|
233
483
|
|
|
234
|
-
class
|
|
484
|
+
class Service68 extends Context.Service()("@opencode/Provider") {
|
|
235
485
|
}
|
|
236
486
|
var definitions = new WeakMap;
|
|
237
487
|
function index(providerID, models) {
|
|
@@ -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(
|
|
497
|
+
var layer = Layer.effect(Service68, Effect2.gen(function* () {
|
|
248
498
|
const bus = yield* Service83;
|
|
249
|
-
const integrations = yield*
|
|
250
|
-
const location = yield*
|
|
499
|
+
const integrations = yield* Service70;
|
|
500
|
+
const location = yield* Service76;
|
|
251
501
|
const state = create3({
|
|
252
502
|
name: "provider",
|
|
253
503
|
initial: () => new Map,
|
|
@@ -326,9 +576,9 @@ var layer = Layer.effect(Service73, 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(Service73, 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(Service73, 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(Service73, Effect.gen(function* () {
|
|
|
365
615
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
366
616
|
});
|
|
367
617
|
});
|
|
368
|
-
yield* bus.subscribe([
|
|
369
|
-
return
|
|
618
|
+
yield* bus.subscribe([Event16.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect2.forkScoped({ startImmediately: true }));
|
|
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
|
|
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, ID12, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, timeout2, timeouts2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info21, Service73, node77, exports_provider3, Event17 };
|
|
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 };
|