@opencode/core 0.0.0-dev-21557 → 0.0.0-dev-21559
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 +85 -85
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +97 -97
- package/dist/app.js +9 -9
- package/dist/bus.js +71 -71
- package/dist/chunks/{command-4z7vav0p.js → agent-01kz1ps7.js} +10 -10
- package/dist/chunks/{command-034tev2y.js → agent-034tev2y.js} +2 -2
- package/dist/chunks/{command-g6x66mca.js → agent-06xye173.js} +11 -11
- package/dist/chunks/{command-7d822byb.js → agent-0bg0bx69.js} +9 -9
- package/dist/chunks/{command-g970mz3v.js → agent-0c04ntqn.js} +37 -37
- package/dist/chunks/{command-1kxdjam0.js → agent-0cn9gq1n.js} +17 -17
- package/dist/chunks/{command-w4axh9wz.js → agent-0e181atj.js} +8 -8
- package/dist/chunks/{command-210p74nv.js → agent-0gcad0bv.js} +6 -6
- package/dist/chunks/{command-v9a132p0.js → agent-0rtpdasm.js} +22 -22
- package/dist/chunks/{command-0vbcp93d.js → agent-0vbcp93d.js} +2 -2
- package/dist/chunks/{command-1ep2p91f.js → agent-1ep2p91f.js} +2 -2
- package/dist/chunks/{command-bzeyqsqd.js → agent-1ep4rre3.js} +4 -4
- package/dist/chunks/{command-tx9w5tca.js → agent-1gfgk62c.js} +8 -8
- package/dist/chunks/{command-cvt24va3.js → agent-1qbbqxat.js} +48 -48
- package/dist/chunks/{command-dvmztg5v.js → agent-1waxmwv9.js} +46 -46
- package/dist/chunks/{command-7ta6mr36.js → agent-1wcsaky3.js} +19 -19
- package/dist/chunks/{command-ze3ntbvb.js → agent-1wy3gn7h.js} +7 -7
- package/dist/chunks/{command-tfzngn12.js → agent-277eer69.js} +4 -4
- package/dist/chunks/{command-nn416cd4.js → agent-2gs5rnc2.js} +6 -6
- package/dist/chunks/{command-m38q3wy3.js → agent-2rczfdfv.js} +14 -14
- package/dist/chunks/{command-8qcf7amm.js → agent-2vd2ww1t.js} +14 -14
- package/dist/chunks/{command-z9pbab2f.js → agent-30y6nqd9.js} +13 -13
- package/dist/chunks/{command-mjzferrs.js → agent-39n3vqkw.js} +3 -3
- package/dist/chunks/{command-3hepkmqq.js → agent-3hepkmqq.js} +1 -1
- package/dist/chunks/{command-3hwn7j4h.js → agent-3hwn7j4h.js} +2 -2
- package/dist/chunks/{command-5rk2deda.js → agent-3spbe93k.js} +25 -25
- package/dist/chunks/{command-3tvqynh2.js → agent-3tvqynh2.js} +1 -1
- package/dist/chunks/{command-qakj2yt3.js → agent-3zewz7xc.js} +3 -3
- package/dist/chunks/{command-3zsf4n22.js → agent-3zsf4n22.js} +1 -1
- package/dist/chunks/{command-v2x3p8dx.js → agent-4bqcy7j7.js} +32 -32
- package/dist/chunks/{command-1hfxmt0w.js → agent-4cpvsvst.js} +48 -48
- package/dist/chunks/{command-wak8pa62.js → agent-4rc13h46.js} +15 -15
- package/dist/chunks/{command-0ny45k08.js → agent-4w15n2v0.js} +23 -23
- package/dist/chunks/{command-fcyg4h47.js → agent-54cckf1a.js} +5 -5
- package/dist/chunks/{command-54ma36ye.js → agent-54ma36ye.js} +1 -1
- package/dist/chunks/agent-5d10wpg8.js +257 -0
- package/dist/chunks/{command-5m9w47nd.js → agent-5m9w47nd.js} +1 -1
- package/dist/chunks/{command-tp3hq1fz.js → agent-5mx90py9.js} +3 -3
- package/dist/chunks/{command-e3qxr5gk.js → agent-5qd3pb7m.js} +2 -2
- package/dist/chunks/{command-ft31182a.js → agent-5rr2xw51.js} +8 -8
- package/dist/chunks/{command-vj35nasm.js → agent-60ds0mnt.js} +68 -68
- package/dist/chunks/{command-smsqhasw.js → agent-64abga9g.js} +24 -24
- package/dist/chunks/{command-mjqjpb51.js → agent-658y71pm.js} +22 -22
- package/dist/chunks/{command-6827pfxn.js → agent-6827pfxn.js} +1 -1
- package/dist/chunks/{command-d97f9cxk.js → agent-6dxqerh2.js} +14 -14
- package/dist/chunks/{command-dsk8q8my.js → agent-6scxdq94.js} +26 -26
- package/dist/chunks/{command-mybp2pev.js → agent-6tphdy7g.js} +4 -4
- package/dist/chunks/{command-6xb47vfp.js → agent-6xb47vfp.js} +1 -1
- package/dist/chunks/{command-q1y8bwa4.js → agent-72ynmsqb.js} +188 -188
- package/dist/chunks/{command-z4a4venm.js → agent-7623g4n6.js} +16 -16
- package/dist/chunks/{command-xdhksg1q.js → agent-76cxhb07.js} +14 -14
- package/dist/chunks/{command-775gj3j1.js → agent-775gj3j1.js} +2 -2
- package/dist/chunks/{command-7bmhse3q.js → agent-7bmhse3q.js} +1 -1
- package/dist/chunks/{command-9hq0xw37.js → agent-7m0k4634.js} +15 -15
- package/dist/chunks/{command-zqsad2gs.js → agent-7qh4aqtb.js} +2 -2
- package/dist/chunks/{command-cb62p8s9.js → agent-8423s3gk.js} +28 -28
- package/dist/chunks/{command-axq5kh8y.js → agent-87bdh2h2.js} +10 -10
- package/dist/chunks/{command-tcezcvh9.js → agent-89znhe33.js} +4 -4
- package/dist/chunks/{command-svwczm27.js → agent-8a61520m.js} +11 -11
- package/dist/chunks/{command-rxmh8njq.js → agent-8bf1vej8.js} +32 -32
- package/dist/chunks/{command-zbak8g8s.js → agent-8gvnjk36.js} +5 -5
- package/dist/chunks/{command-d1r1vdjn.js → agent-8k49cjh1.js} +28 -28
- package/dist/chunks/{command-8m6m0r52.js → agent-8m6m0r52.js} +1 -1
- package/dist/chunks/{command-8mywswrd.js → agent-8mywswrd.js} +1 -1
- package/dist/chunks/{command-w92k2e0p.js → agent-8sze2n9a.js} +4 -4
- package/dist/chunks/{command-m26n4tkg.js → agent-8vd89vx3.js} +4 -4
- package/dist/chunks/{command-8qh1wvz2.js → agent-8w9gpa2a.js} +4 -4
- package/dist/chunks/{command-3p9s8f8r.js → agent-8ww2gede.js} +5 -5
- package/dist/chunks/{command-t3e98aec.js → agent-8x019s04.js} +15 -15
- package/dist/chunks/{command-6ftnd7nz.js → agent-92zns5dy.js} +28 -28
- package/dist/chunks/{command-qxhg3shq.js → agent-93yh5dc7.js} +11 -11
- package/dist/chunks/{command-egvdenqz.js → agent-97gt6j6v.js} +4 -4
- package/dist/chunks/{command-998yhzzq.js → agent-998yhzzq.js} +3 -3
- package/dist/chunks/{command-j86wn4pa.js → agent-9ava3as1.js} +30 -30
- package/dist/chunks/{command-pkz1gcrh.js → agent-9g9xrmrw.js} +14 -14
- package/dist/chunks/{command-1ajx6rf5.js → agent-9hn6k4tm.js} +8 -8
- package/dist/chunks/{command-dmn8f3fz.js → agent-9jtgc0ag.js} +34 -34
- package/dist/chunks/{command-fwr9p4fy.js → agent-9sbwc68p.js} +347 -347
- package/dist/chunks/{command-kkyxct86.js → agent-9tcm4z7n.js} +4 -4
- package/dist/chunks/{command-9wev2pgg.js → agent-9wev2pgg.js} +1 -1
- package/dist/chunks/{command-n6s6s5d0.js → agent-a3gjs1qw.js} +45 -45
- package/dist/chunks/{command-9zygn7h7.js → agent-a5x7x9kw.js} +18 -18
- package/dist/chunks/{command-mxvxcxwy.js → agent-addxnjmp.js} +4 -4
- package/dist/chunks/{command-r61qxybf.js → agent-ahd542yp.js} +8 -8
- package/dist/chunks/{command-3k3tgz1s.js → agent-aq6ssqh8.js} +38 -38
- package/dist/chunks/{command-rzsyqtcs.js → agent-aw089k6n.js} +21 -21
- package/dist/chunks/{command-6gmsgdx2.js → agent-awzqkd9p.js} +7 -7
- package/dist/chunks/{command-ayjs7tqn.js → agent-ayjs7tqn.js} +2 -2
- package/dist/chunks/{command-t718dtrh.js → agent-b0b1syqq.js} +46 -46
- package/dist/chunks/{command-6frn0zka.js → agent-b0nwj2n5.js} +43 -43
- package/dist/chunks/{command-0p5n951n.js → agent-b0xapsmc.js} +8 -8
- package/dist/chunks/{command-b11a7tx7.js → agent-b11a7tx7.js} +1 -1
- package/dist/chunks/{command-wn0xhw32.js → agent-b1wrcdv1.js} +24 -24
- package/dist/chunks/{command-xsq7pz40.js → agent-b2gqg30f.js} +16 -16
- package/dist/chunks/{command-acdn2y46.js → agent-b3gp8cby.js} +45 -45
- package/dist/chunks/{command-gryy9691.js → agent-b5efm14a.js} +11 -11
- package/dist/chunks/{command-4ezxk448.js → agent-b60a0p85.js} +53 -53
- package/dist/chunks/{command-r57we6b1.js → agent-b9312sca.js} +5 -5
- package/dist/chunks/{command-gawvjx7k.js → agent-bc7q5vrg.js} +13 -13
- package/dist/chunks/{command-twx1y9b4.js → agent-bhj7yhfp.js} +28 -28
- package/dist/chunks/{command-wjr9rjd7.js → agent-bjx1sjef.js} +6 -6
- package/dist/chunks/{command-n11rvh9p.js → agent-bnq8ffg3.js} +32 -32
- package/dist/chunks/{command-802megp1.js → agent-bqwheb6v.js} +7 -7
- package/dist/chunks/{command-et97578y.js → agent-btchm180.js} +24 -24
- package/dist/chunks/{command-jrvn3mqz.js → agent-c2ym5zbg.js} +30 -30
- package/dist/chunks/{command-kx57zey2.js → agent-c484vbkt.js} +11 -11
- package/dist/chunks/{command-dnkebwy9.js → agent-c4jysj7e.js} +11 -11
- package/dist/chunks/{command-46jxkehv.js → agent-c9scfykt.js} +18 -18
- package/dist/chunks/{command-cr9hweqv.js → agent-cr9hweqv.js} +2 -2
- package/dist/chunks/{command-8yr3zrx2.js → agent-cre9sv7v.js} +11 -11
- package/dist/chunks/{command-2mq1h16s.js → agent-cwa6csj7.js} +9 -9
- package/dist/chunks/{command-g69zc3wy.js → agent-cxchh17q.js} +36 -36
- package/dist/chunks/{command-pex2677d.js → agent-d5h0167e.js} +5 -5
- package/dist/chunks/{command-embw8kgh.js → agent-dhmh7aw6.js} +4 -4
- package/dist/chunks/{command-mdzseb04.js → agent-djb6c8mr.js} +20 -20
- package/dist/chunks/{command-6qf2y9ve.js → agent-dkase1ea.js} +34 -34
- package/dist/chunks/{command-ymgkxg7n.js → agent-dys7k0s0.js} +11 -11
- package/dist/chunks/{command-ysye7j36.js → agent-e0qjs091.js} +20 -20
- package/dist/chunks/{command-kv6t07rj.js → agent-e0tmjqd2.js} +16 -16
- package/dist/chunks/{command-bhfmjk30.js → agent-e654tkxv.js} +19 -19
- package/dist/chunks/{command-5g57z1ma.js → agent-e7gxy7fd.js} +4 -4
- package/dist/chunks/{command-eej6y6fw.js → agent-eej6y6fw.js} +2 -2
- package/dist/chunks/{command-ef5x83kb.js → agent-ef5x83kb.js} +1 -1
- package/dist/chunks/{command-pazb1tph.js → agent-ev0vvt40.js} +14 -14
- package/dist/chunks/{command-941r3f3m.js → agent-f06p7v79.js} +1 -1
- package/dist/chunks/{command-5smgpg59.js → agent-f4wgghpj.js} +15 -15
- package/dist/chunks/{command-zxn1czyk.js → agent-f8rdyd8z.js} +23 -23
- package/dist/chunks/{command-fcy631f0.js → agent-fcy631f0.js} +1 -1
- package/dist/chunks/{command-82rhge12.js → agent-fdms3n6w.js} +9 -9
- package/dist/chunks/{command-pv4gp5m4.js → agent-fmjx2h3e.js} +2 -2
- package/dist/chunks/{command-k98r0vz1.js → agent-fs73a89a.js} +27 -27
- package/dist/chunks/{command-dthc0v3v.js → agent-g2zwajds.js} +1 -1
- package/dist/chunks/{command-xewwdcxe.js → agent-g3b65czc.js} +17 -17
- package/dist/chunks/{command-vbamk4ns.js → agent-g3jry2r0.js} +35 -35
- package/dist/chunks/{command-57myy5jh.js → agent-g6yfr6ja.js} +5 -5
- package/dist/chunks/{command-02hctrc4.js → agent-g72yd4k4.js} +12 -12
- package/dist/chunks/{command-dzg2v16h.js → agent-gabnxzjb.js} +10 -10
- package/dist/chunks/{command-gd4qta3r.js → agent-gd4qta3r.js} +1 -1
- package/dist/chunks/{command-hpkegr1y.js → agent-gpnk9bds.js} +10 -10
- package/dist/chunks/{command-3tpbv33b.js → agent-gqc3hykc.js} +6 -6
- package/dist/chunks/{command-g38g0fz0.js → agent-gvk2e4nv.js} +14 -14
- package/dist/chunks/{command-t7bcp663.js → agent-gx42yg2y.js} +9 -9
- package/dist/chunks/agent-gyce5qg1.js +18 -0
- package/dist/chunks/{command-3qfe0xj5.js → agent-h22kh94c.js} +8 -8
- package/dist/chunks/{command-mgym7y53.js → agent-h3hta0fv.js} +50 -50
- package/dist/chunks/{command-yfxdcy39.js → agent-h5btj78v.js} +7 -7
- package/dist/chunks/{command-h6vf3j39.js → agent-h6vf3j39.js} +1 -1
- package/dist/chunks/{command-h8vwnyd8.js → agent-h8vwnyd8.js} +1 -1
- package/dist/chunks/{command-btbmdjwj.js → agent-h9pnpq88.js} +4 -4
- package/dist/chunks/{command-395q6j9z.js → agent-hbb7npd7.js} +6 -6
- package/dist/chunks/{command-sce0r76x.js → agent-hfbyhya8.js} +10 -10
- package/dist/chunks/{command-hgz4x7wa.js → agent-hgz4x7wa.js} +1 -1
- package/dist/chunks/{command-xdydn0yk.js → agent-hkd76wam.js} +16 -16
- package/dist/chunks/{command-khmqacep.js → agent-hq3c8me3.js} +4 -4
- package/dist/chunks/{command-48kw51zw.js → agent-hzrfc1p4.js} +3 -3
- package/dist/chunks/{command-mfj0sxs3.js → agent-j1eznksd.js} +28 -28
- package/dist/chunks/{command-he40rdb8.js → agent-j414fcmn.js} +17 -17
- package/dist/chunks/{command-jr0r6h1g.js → agent-jnpb6kqk.js} +3 -3
- package/dist/chunks/{command-1b1yf6g0.js → agent-k6hwnssb.js} +24 -24
- package/dist/chunks/{command-6a980ypm.js → agent-k7mbsg3c.js} +26 -26
- package/dist/chunks/{command-xexx9thr.js → agent-kby49ynp.js} +19 -19
- package/dist/chunks/{command-ahsb9kpf.js → agent-krdey6nc.js} +6 -6
- package/dist/chunks/{command-2q3kn6hv.js → agent-kt55wntw.js} +18 -18
- package/dist/chunks/{command-8zg8p5q1.js → agent-ktqrr5j9.js} +17 -17
- package/dist/chunks/{command-kwb1v3vj.js → agent-kwb1v3vj.js} +1 -1
- package/dist/chunks/{command-x6x33ar5.js → agent-m2bbs62m.js} +15 -15
- package/dist/chunks/agent-m3gkkj97.js +26 -0
- package/dist/chunks/{command-m9w0rfyh.js → agent-m9w0rfyh.js} +1 -1
- package/dist/chunks/{command-maspj1v3.js → agent-maspj1v3.js} +1 -1
- package/dist/chunks/{command-npm9b9zb.js → agent-mq3tyw2r.js} +5 -5
- package/dist/chunks/{command-w4mk1hws.js → agent-mvd2y75j.js} +20 -20
- package/dist/chunks/{command-yy8p69dz.js → agent-n4bxf1bq.js} +16 -16
- package/dist/chunks/{command-n6mrmtb3.js → agent-n6mrmtb3.js} +1 -1
- package/dist/chunks/{command-xe70zbdz.js → agent-n9kd73fy.js} +5 -5
- package/dist/chunks/{command-cng6dfxk.js → agent-n9tqm6c9.js} +11 -11
- package/dist/chunks/{command-3w35w3cz.js → agent-n9xp8ka0.js} +37 -37
- package/dist/chunks/{command-wn13chhe.js → agent-nd3tx038.js} +23 -23
- package/dist/chunks/{command-k7myrtme.js → agent-ndn5nttk.js} +9 -9
- package/dist/chunks/{command-kcme49p2.js → agent-ne0dd1rk.js} +21 -21
- package/dist/chunks/{command-1sqf9bkf.js → agent-ng3918dk.js} +5 -5
- package/dist/chunks/{command-02g7aebq.js → agent-ntcam9rv.js} +19 -19
- package/dist/chunks/{command-8sptrx30.js → agent-nw3tt376.js} +13 -13
- package/dist/chunks/{command-p51tpj98.js → agent-nwg5v2wf.js} +11 -11
- package/dist/chunks/{command-jr2eqasw.js → agent-nyxdgnr4.js} +7 -7
- package/dist/chunks/{command-4bz0312p.js → agent-p8vnz59a.js} +11 -11
- package/dist/chunks/{command-rv6zpw67.js → agent-p8z5pjn4.js} +25 -25
- package/dist/chunks/{command-3ct72kbc.js → agent-p9gx55xe.js} +17 -17
- package/dist/chunks/{command-pc1v25hk.js → agent-pc1v25hk.js} +1 -1
- package/dist/chunks/{command-x0g438en.js → agent-pfmyemp7.js} +84 -84
- package/dist/chunks/{command-z28rahrh.js → agent-pjtv5xgn.js} +27 -27
- package/dist/chunks/{command-pjvnvgmy.js → agent-pjvnvgmy.js} +1 -1
- package/dist/chunks/{command-pknna89w.js → agent-pknna89w.js} +1 -1
- package/dist/chunks/{command-tbjtr317.js → agent-pq7ehxfq.js} +18 -18
- package/dist/chunks/{command-y4g1qmba.js → agent-q20pbgba.js} +9 -9
- package/dist/chunks/{command-dz15z44q.js → agent-qcsawjgq.js} +9 -9
- package/dist/chunks/{command-0jwsre1p.js → agent-qgn6gcr1.js} +5 -5
- package/dist/chunks/{command-deq2yphe.js → agent-qkdq18ke.js} +15 -15
- package/dist/chunks/{command-6a9ggp3a.js → agent-qnzjvx7w.js} +3 -3
- package/dist/chunks/{command-qp7m8750.js → agent-qp7m8750.js} +3 -3
- package/dist/chunks/{command-zjr49qxn.js → agent-qrpk9c9k.js} +42 -42
- package/dist/chunks/{command-qsdy395h.js → agent-qsdy395h.js} +1 -1
- package/dist/chunks/{command-ew199m7p.js → agent-r2g6g664.js} +10 -10
- package/dist/chunks/{command-bacj9t34.js → agent-r70na3yp.js} +9 -9
- package/dist/chunks/{command-rdw6cm16.js → agent-rdw6cm16.js} +1 -1
- package/dist/chunks/{command-1hzj9kg1.js → agent-re229bga.js} +10 -10
- package/dist/chunks/{command-qsyf62v5.js → agent-rhrndxa2.js} +308 -308
- package/dist/chunks/{command-jbxhns51.js → agent-rm3b56at.js} +47 -47
- package/dist/chunks/{command-4ytg8f8f.js → agent-rxrz6b15.js} +2 -2
- package/dist/chunks/{command-drjmd517.js → agent-s59cy3r3.js} +21 -21
- package/dist/chunks/{command-gdc5cpct.js → agent-sb9w5nny.js} +5 -5
- package/dist/chunks/{command-ehsy592z.js → agent-sj1zydaf.js} +26 -26
- package/dist/chunks/{command-cqz7n2wt.js → agent-sk5011s6.js} +4 -4
- package/dist/chunks/{command-6pn57h68.js → agent-smqp6h5x.js} +33 -33
- package/dist/chunks/{command-4y1psmjm.js → agent-snvy5g5t.js} +10 -10
- package/dist/chunks/{command-epa6at65.js → agent-sp2b9xzv.js} +28 -28
- package/dist/chunks/{command-4znvr1ks.js → agent-sq7qz21n.js} +50 -50
- package/dist/chunks/{command-stq6srjr.js → agent-svdvx995.js} +33 -33
- package/dist/chunks/{command-rhjbct0v.js → agent-t550f9t1.js} +4 -4
- package/dist/chunks/{command-0t5b2y9d.js → agent-t93swj6g.js} +9 -9
- package/dist/chunks/{command-5kc27ehr.js → agent-tascwatk.js} +4 -4
- package/dist/chunks/{command-tazgh4e4.js → agent-tazgh4e4.js} +1 -1
- package/dist/chunks/{command-v8jfbz3g.js → agent-tcay1cqt.js} +6 -6
- package/dist/chunks/{command-tdstcens.js → agent-tdstcens.js} +1 -1
- package/dist/chunks/{command-p6d0b62k.js → agent-tjsfqyz1.js} +12 -12
- package/dist/chunks/{command-cemytqje.js → agent-tnypmhpx.js} +22 -22
- package/dist/chunks/{command-fmv8kpsp.js → agent-tr99e1w1.js} +4 -4
- package/dist/chunks/{command-xhmz0e2c.js → agent-ttxw2dcy.js} +11 -11
- package/dist/chunks/{command-bhk6njy6.js → agent-twy6e1pt.js} +19 -19
- package/dist/chunks/{command-tyytaxap.js → agent-tyytaxap.js} +1 -1
- package/dist/chunks/{command-ccy38syf.js → agent-v3sm3b29.js} +13 -13
- package/dist/chunks/{command-b27vhd2z.js → agent-v5dkyp31.js} +4 -4
- package/dist/chunks/{command-mvnn9g24.js → agent-v71mf45a.js} +20 -20
- package/dist/chunks/{command-v7p4zvkq.js → agent-v7p4zvkq.js} +2 -2
- package/dist/chunks/{command-9c1a4kmv.js → agent-vak4j5e1.js} +9 -9
- package/dist/chunks/{command-4j64n899.js → agent-vbgzaw66.js} +4 -4
- package/dist/chunks/{command-psphhya3.js → agent-vcykmhej.js} +11 -11
- package/dist/chunks/{command-veqvce7d.js → agent-veqvce7d.js} +1 -1
- package/dist/chunks/{command-gvpgbncv.js → agent-vgfdpj26.js} +18 -18
- package/dist/chunks/{command-m95xgvrp.js → agent-vgn4papj.js} +35 -35
- package/dist/chunks/{command-vzs5sf6e.js → agent-vzs5sf6e.js} +1 -1
- package/dist/chunks/{command-84txncab.js → agent-w1eejvng.js} +5 -5
- package/dist/chunks/{command-w3wsvvr9.js → agent-w3wsvvr9.js} +1 -1
- package/dist/chunks/{command-wakvkjy4.js → agent-wakvkjy4.js} +1 -1
- package/dist/chunks/{command-1j6m29mr.js → agent-waskdk5r.js} +9 -9
- package/dist/chunks/{command-9e9hzcd0.js → agent-wb1k0b0z.js} +14 -14
- package/dist/chunks/{command-wd87259q.js → agent-wd87259q.js} +1 -1
- package/dist/chunks/{command-qc148cpv.js → agent-wez96qer.js} +21 -21
- package/dist/chunks/{command-dedmnvkb.js → agent-ws4pm92m.js} +20 -20
- package/dist/chunks/{command-sfd6krag.js → agent-x395z3h3.js} +12 -12
- package/dist/chunks/{command-web3t9xy.js → agent-xaq53c1m.js} +4 -4
- package/dist/chunks/{command-p820w4f0.js → agent-xcs1qr88.js} +23 -23
- package/dist/chunks/{command-66gqgwkw.js → agent-xe9rh51h.js} +4 -4
- package/dist/chunks/{command-9c0aadwr.js → agent-xenxtz2r.js} +21 -21
- package/dist/chunks/{command-57b9ws8p.js → agent-xfkkasph.js} +7 -7
- package/dist/chunks/{command-zhdc5kpb.js → agent-xgyvc81b.js} +13 -13
- package/dist/chunks/{command-mdwjtjcb.js → agent-xj13yeyq.js} +16 -16
- package/dist/chunks/{command-ad8kq2nc.js → agent-xrt977hg.js} +3 -3
- package/dist/chunks/{command-3dhsd59m.js → agent-xs09rgb4.js} +20 -20
- package/dist/chunks/{command-s7cy65rz.js → agent-xshm6x7r.js} +18 -18
- package/dist/chunks/{command-y1fvbwt7.js → agent-y1fvbwt7.js} +1 -1
- package/dist/chunks/{command-pk1g9nse.js → agent-y1gbkt6d.js} +27 -27
- package/dist/chunks/{command-p3pg4pyc.js → agent-y1twntmg.js} +15 -15
- package/dist/chunks/{command-y71avatq.js → agent-y71avatq.js} +1 -1
- package/dist/chunks/{command-sjs7wga1.js → agent-y8k9ntag.js} +26 -26
- package/dist/chunks/{command-xr5vn762.js → agent-y9793g9a.js} +6 -6
- package/dist/chunks/{command-1t3hpytd.js → agent-yf6cfcxz.js} +82 -82
- package/dist/chunks/{command-wsmpk9jk.js → agent-yfb8499c.js} +5 -5
- package/dist/chunks/{command-tw1m0zds.js → agent-ypxwtm4x.js} +45 -45
- package/dist/chunks/{command-z0bkrqjs.js → agent-z0bkrqjs.js} +1 -1
- package/dist/chunks/{command-7vcph9c5.js → agent-z4dyzcgg.js} +12 -12
- package/dist/chunks/{command-zxqtx2gp.js → agent-zg5n0cvz.js} +33 -33
- package/dist/chunks/{command-vvg7my21.js → agent-zgq2zk3m.js} +17 -17
- package/dist/chunks/{command-kn6pff13.js → agent-zhj7pt8s.js} +21 -21
- package/dist/chunks/{command-yc2cz67n.js → agent-zk00g8zz.js} +32 -32
- package/dist/chunks/{command-3y689znq.js → agent-zk2rfxgs.js} +18 -18
- package/dist/chunks/{command-p3p972wa.js → agent-zk8c4w5t.js} +5 -5
- package/dist/chunks/{command-vk5kq5j8.js → agent-zmjze8as.js} +13 -13
- package/dist/chunks/{command-zr2ceqn5.js → agent-zr2ceqn5.js} +1 -1
- package/dist/chunks/{command-985ktdsx.js → agent-zwhbkwqf.js} +18 -18
- package/dist/chunks/{command-wrc6k2zh.js → agent-zwxs4smc.js} +13 -13
- package/dist/chunks/{command-zxq2ej10.js → agent-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +85 -85
- package/dist/config/discovery.js +86 -86
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +214 -214
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- 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 +116 -116
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +125 -125
- 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 +118 -118
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +138 -138
- 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 +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- 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 +14 -14
- 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/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- 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 +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +369 -369
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- 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 +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- 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 +227 -227
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +101 -101
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +106 -106
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +89 -89
- package/dist/generate.js +109 -109
- 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 +101 -101
- 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 +360 -360
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +85 -85
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +156 -156
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +357 -357
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +140 -140
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +101 -101
- package/dist/model-resolver.js +101 -101
- package/dist/model-retry.js +1 -1
- package/dist/model.js +104 -104
- package/dist/models-dev.js +109 -109
- 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 +90 -90
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +332 -332
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -117
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +116 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +113 -113
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai.js +116 -116
- package/dist/plugin/provider/opencode.js +103 -103
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +170 -170
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +351 -351
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +229 -229
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +92 -92
- package/dist/provider.js +99 -99
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +101 -101
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +93 -93
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +99 -99
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +138 -138
- package/dist/session/context.js +164 -164
- package/dist/session/diff.js +90 -90
- 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 +221 -221
- package/dist/session/execution.js +130 -130
- package/dist/session/generate.js +166 -166
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +95 -95
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- 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 +7 -7
- package/dist/session/move.js +132 -132
- package/dist/session/projector.js +91 -91
- package/dist/session/prompt.js +107 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +96 -96
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +101 -101
- package/dist/session/runner/publish-llm-event.js +116 -116
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +128 -128
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +163 -163
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +212 -212
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +168 -168
- package/dist/session/to-session-error.js +114 -114
- package/dist/session/transfer.js +217 -217
- package/dist/session/usage.js +1 -1
- package/dist/session.js +216 -216
- package/dist/shell/parse.js +8 -8
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +9 -9
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +95 -95
- 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 +139 -139
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +120 -120
- package/dist/tool/plugin/mcp-resource.js +126 -126
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +120 -120
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/todo.js +138 -138
- package/dist/tool/plugin/webfetch.js +113 -113
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +102 -102
- 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/git-executable.js +2 -2
- 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 +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- 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 +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +88 -88
- 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 +84 -84
- 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 +91 -91
- package/dist/worktree.js +100 -100
- package/package.json +8 -8
- package/dist/chunks/command-3q31v9sa.js +0 -257
- package/dist/chunks/command-dxj72tfx.js +0 -18
- package/dist/chunks/command-hqp5gz7t.js +0 -26
- /package/dist/chunks/{command-0qkdqm5v.js → agent-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{command-0zkw76rk.js → agent-0zkw76rk.js} +0 -0
- /package/dist/chunks/{command-17cy0kzp.js → agent-17cy0kzp.js} +0 -0
- /package/dist/chunks/{command-1cnp2v09.js → agent-1cnp2v09.js} +0 -0
- /package/dist/chunks/{command-24dcb14g.js → agent-24dcb14g.js} +0 -0
- /package/dist/chunks/{command-2710q6r3.js → agent-2710q6r3.js} +0 -0
- /package/dist/chunks/{command-2bv980vf.js → agent-2bv980vf.js} +0 -0
- /package/dist/chunks/{command-2c3vjs8z.js → agent-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{command-359p4xyc.js → agent-359p4xyc.js} +0 -0
- /package/dist/chunks/{command-3asan66x.js → agent-3asan66x.js} +0 -0
- /package/dist/chunks/{command-3v8g72cx.js → agent-3v8g72cx.js} +0 -0
- /package/dist/chunks/{command-3wcehsnq.js → agent-3wcehsnq.js} +0 -0
- /package/dist/chunks/{command-43n2bw4t.js → agent-43n2bw4t.js} +0 -0
- /package/dist/chunks/{command-4knz6hnm.js → agent-4knz6hnm.js} +0 -0
- /package/dist/chunks/{command-4vcrnpx2.js → agent-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{command-4y7fprxs.js → agent-4y7fprxs.js} +0 -0
- /package/dist/chunks/{command-53557ph1.js → agent-53557ph1.js} +0 -0
- /package/dist/chunks/{command-550bvhaj.js → agent-550bvhaj.js} +0 -0
- /package/dist/chunks/{command-5fjb7ams.js → agent-5fjb7ams.js} +0 -0
- /package/dist/chunks/{command-6prwharc.js → agent-6prwharc.js} +0 -0
- /package/dist/chunks/{command-6q2bdcd1.js → agent-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{command-7akdwqpd.js → agent-7akdwqpd.js} +0 -0
- /package/dist/chunks/{command-7m9af43g.js → agent-7m9af43g.js} +0 -0
- /package/dist/chunks/{command-822emrt2.js → agent-822emrt2.js} +0 -0
- /package/dist/chunks/{command-84wd9syh.js → agent-84wd9syh.js} +0 -0
- /package/dist/chunks/{command-88xbtdfr.js → agent-88xbtdfr.js} +0 -0
- /package/dist/chunks/{command-8n3pysct.js → agent-8n3pysct.js} +0 -0
- /package/dist/chunks/{command-8wj87zfr.js → agent-8wj87zfr.js} +0 -0
- /package/dist/chunks/{command-9a4afbnw.js → agent-9a4afbnw.js} +0 -0
- /package/dist/chunks/{command-9rqn6x4v.js → agent-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{command-a058387c.js → agent-a058387c.js} +0 -0
- /package/dist/chunks/{command-a6k6eb26.js → agent-a6k6eb26.js} +0 -0
- /package/dist/chunks/{command-af5trqkr.js → agent-af5trqkr.js} +0 -0
- /package/dist/chunks/{command-afrmfg78.js → agent-afrmfg78.js} +0 -0
- /package/dist/chunks/{command-aqzs7mqg.js → agent-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{command-atq7p7m5.js → agent-atq7p7m5.js} +0 -0
- /package/dist/chunks/{command-bkyjaxrp.js → agent-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{command-bmr6ed5q.js → agent-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{command-cf4snx6d.js → agent-cf4snx6d.js} +0 -0
- /package/dist/chunks/{command-cvy3z8tj.js → agent-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{command-d9fn303g.js → agent-d9fn303g.js} +0 -0
- /package/dist/chunks/{command-d9jj8t3e.js → agent-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{command-dajrwvna.js → agent-dajrwvna.js} +0 -0
- /package/dist/chunks/{command-dap0rakb.js → agent-dap0rakb.js} +0 -0
- /package/dist/chunks/{command-df08tz66.js → agent-df08tz66.js} +0 -0
- /package/dist/chunks/{command-dy18nga0.js → agent-dy18nga0.js} +0 -0
- /package/dist/chunks/{command-e5kj55wp.js → agent-e5kj55wp.js} +0 -0
- /package/dist/chunks/{command-e73j6tqm.js → agent-e73j6tqm.js} +0 -0
- /package/dist/chunks/{command-ec1grn59.js → agent-ec1grn59.js} +0 -0
- /package/dist/chunks/{command-eh3zwz77.js → agent-eh3zwz77.js} +0 -0
- /package/dist/chunks/{command-emrn6kk6.js → agent-emrn6kk6.js} +0 -0
- /package/dist/chunks/{command-f0mxakyp.js → agent-f0mxakyp.js} +0 -0
- /package/dist/chunks/{command-f6n9ztr4.js → agent-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{command-faypxj3z.js → agent-faypxj3z.js} +0 -0
- /package/dist/chunks/{command-fd410y7t.js → agent-fd410y7t.js} +0 -0
- /package/dist/chunks/{command-g4wezp1m.js → agent-g4wezp1m.js} +0 -0
- /package/dist/chunks/{command-g86h250q.js → agent-g86h250q.js} +0 -0
- /package/dist/chunks/{command-gebd4c9n.js → agent-gebd4c9n.js} +0 -0
- /package/dist/chunks/{command-gftt206x.js → agent-gftt206x.js} +0 -0
- /package/dist/chunks/{command-hcxmzztb.js → agent-hcxmzztb.js} +0 -0
- /package/dist/chunks/{command-hk9envan.js → agent-hk9envan.js} +0 -0
- /package/dist/chunks/{command-j2ntwpah.js → agent-j2ntwpah.js} +0 -0
- /package/dist/chunks/{command-j5zkgpj8.js → agent-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{command-jjkms2e6.js → agent-jjkms2e6.js} +0 -0
- /package/dist/chunks/{command-jr7sbwjy.js → agent-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{command-jwfs4k6c.js → agent-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{command-jze0r7bz.js → agent-jze0r7bz.js} +0 -0
- /package/dist/chunks/{command-jzg6c2d5.js → agent-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{command-m18g726c.js → agent-m18g726c.js} +0 -0
- /package/dist/chunks/{command-mp448xyj.js → agent-mp448xyj.js} +0 -0
- /package/dist/chunks/{command-msx8hqn2.js → agent-msx8hqn2.js} +0 -0
- /package/dist/chunks/{command-n05xt0ee.js → agent-n05xt0ee.js} +0 -0
- /package/dist/chunks/{command-n3j8tn72.js → agent-n3j8tn72.js} +0 -0
- /package/dist/chunks/{command-njntx4h6.js → agent-njntx4h6.js} +0 -0
- /package/dist/chunks/{command-pkyv6v7h.js → agent-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{command-q3sfg36h.js → agent-q3sfg36h.js} +0 -0
- /package/dist/chunks/{command-q74kybfr.js → agent-q74kybfr.js} +0 -0
- /package/dist/chunks/{command-qaymkmh1.js → agent-qaymkmh1.js} +0 -0
- /package/dist/chunks/{command-qb87gjwd.js → agent-qb87gjwd.js} +0 -0
- /package/dist/chunks/{command-qfa1cgps.js → agent-qfa1cgps.js} +0 -0
- /package/dist/chunks/{command-qg3g05ea.js → agent-qg3g05ea.js} +0 -0
- /package/dist/chunks/{command-qrg20bc0.js → agent-qrg20bc0.js} +0 -0
- /package/dist/chunks/{command-rcb2kzg1.js → agent-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{command-sdp7kfr6.js → agent-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{command-ssg3fenm.js → agent-ssg3fenm.js} +0 -0
- /package/dist/chunks/{command-ve7vex1e.js → agent-ve7vex1e.js} +0 -0
- /package/dist/chunks/{command-w803qqfp.js → agent-w803qqfp.js} +0 -0
- /package/dist/chunks/{command-wc3fc9cn.js → agent-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{command-wer8tq1h.js → agent-wer8tq1h.js} +0 -0
- /package/dist/chunks/{command-wjj7prxr.js → agent-wjj7prxr.js} +0 -0
- /package/dist/chunks/{command-wtztk69x.js → agent-wtztk69x.js} +0 -0
- /package/dist/chunks/{command-x0ckcb58.js → agent-x0ckcb58.js} +0 -0
- /package/dist/chunks/{command-x61499pn.js → agent-x61499pn.js} +0 -0
- /package/dist/chunks/{command-y44na4kk.js → agent-y44na4kk.js} +0 -0
- /package/dist/chunks/{command-y8f7s663.js → agent-y8f7s663.js} +0 -0
- /package/dist/chunks/{command-ygaqb7jw.js → agent-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{command-ym463w8f.js → agent-ym463w8f.js} +0 -0
- /package/dist/chunks/{command-z5v4ffb3.js → agent-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{command-z9919s4g.js → agent-z9919s4g.js} +0 -0
|
@@ -1,36 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./agent-tascwatk.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./agent-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
10
|
key2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./agent-addxnjmp.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ID13,
|
|
14
|
+
Service77,
|
|
15
|
+
node81,
|
|
16
16
|
Event17
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./agent-64abga9g.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
19
|
+
Service82,
|
|
20
|
+
node86
|
|
21
|
+
} from "./agent-e0tmjqd2.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 "./agent-9rqn6x4v.js";
|
|
34
25
|
|
|
35
26
|
// src/provider.ts
|
|
36
27
|
var exports_provider3 = {};
|
|
@@ -40,12 +31,12 @@ __export(exports_provider3, {
|
|
|
40
31
|
DEFAULT_CHUNK_TIMEOUT_MS: () => DEFAULT_CHUNK_TIMEOUT_MS2,
|
|
41
32
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS3,
|
|
42
33
|
Event: () => Event16,
|
|
43
|
-
ID: () =>
|
|
44
|
-
Info: () =>
|
|
34
|
+
ID: () => ID12,
|
|
35
|
+
Info: () => Info22,
|
|
45
36
|
LoadError: () => LoadError3,
|
|
46
37
|
Provider: () => exports_provider3,
|
|
47
38
|
Request: () => Request3,
|
|
48
|
-
Service: () =>
|
|
39
|
+
Service: () => Service76,
|
|
49
40
|
Settings: () => Settings2,
|
|
50
41
|
Transport: () => Transport2,
|
|
51
42
|
aisdk: () => aisdk2,
|
|
@@ -57,12 +48,12 @@ __export(exports_provider3, {
|
|
|
57
48
|
mergeOverlay: () => mergeOverlay2,
|
|
58
49
|
modelSettings: () => modelSettings2,
|
|
59
50
|
nativeSettings: () => nativeSettings2,
|
|
60
|
-
node: () =>
|
|
51
|
+
node: () => node80,
|
|
61
52
|
packageName: () => packageName2,
|
|
62
53
|
timeout: () => timeout2,
|
|
63
54
|
timeouts: () => timeouts2
|
|
64
55
|
});
|
|
65
|
-
import { Context, Effect, Layer, Option, Schema, Stream, Struct } from "effect";
|
|
56
|
+
import { Context, Effect as Effect2, Layer, Option as Option2, Schema as Schema2, Stream, Struct as Struct2 } from "effect";
|
|
66
57
|
import { Provider } from "@opencode/schema/provider";
|
|
67
58
|
import { Model } from "@opencode/schema/model";
|
|
68
59
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -71,8 +62,265 @@ import { isRecord } from "@opencode/ai/utils/record";
|
|
|
71
62
|
import { importModule, resolveModule } from "@opencode/util/runtime-import";
|
|
72
63
|
import { Credential } from "@opencode/schema/credential";
|
|
73
64
|
import { freeze } from "immer";
|
|
65
|
+
|
|
66
|
+
// src/aisdk-native.ts
|
|
67
|
+
var exports_aisdk_native = {};
|
|
68
|
+
__export(exports_aisdk_native, {
|
|
69
|
+
AISDKNative: () => exports_aisdk_native,
|
|
70
|
+
native: () => native2,
|
|
71
|
+
rewrite: () => rewrite2
|
|
72
|
+
});
|
|
73
|
+
import { Effect, Option, Schema, Struct } from "effect";
|
|
74
|
+
function rewrite2(target, input) {
|
|
75
|
+
if (input.specifier === undefined)
|
|
76
|
+
return;
|
|
77
|
+
const plain = resolve(input.specifier, input);
|
|
78
|
+
if (!plain)
|
|
79
|
+
return;
|
|
80
|
+
const settings = decode(target.settings ?? {});
|
|
81
|
+
const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
|
|
82
|
+
const translated = options(replacement, input.modelID, settings);
|
|
83
|
+
if (target.package !== undefined || replacement !== input.specifier)
|
|
84
|
+
target.package = replacement;
|
|
85
|
+
const identity = replacement === "@opencode/ai/providers/openai-compatible" && !builtinPackages2.has(input.specifier) ? { provider: input.canonical ?? input.providerID } : {};
|
|
86
|
+
target.settings = target.settings === undefined ? undefined : { ...translated.settings, ...identity };
|
|
87
|
+
target.headers = mergeHeaders2(translated.headers, target.headers);
|
|
88
|
+
target.body = mergeOverlay2(translated.body, target.body);
|
|
89
|
+
target.variants = target.variants?.map((variant) => {
|
|
90
|
+
const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
|
|
91
|
+
const headers = mergeHeaders2(overlay.headers, variant.headers);
|
|
92
|
+
const body = mergeOverlay2(overlay.body, variant.body);
|
|
93
|
+
return {
|
|
94
|
+
id: variant.id,
|
|
95
|
+
...variant.settings === undefined ? {} : { settings: overlay.settings },
|
|
96
|
+
...headers === undefined ? {} : { headers },
|
|
97
|
+
...body === undefined ? {} : { body }
|
|
98
|
+
};
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
var PACKAGES = {
|
|
102
|
+
"@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
|
|
103
|
+
"@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
|
|
104
|
+
"@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
|
|
105
|
+
"@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
|
|
106
|
+
"@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
|
|
107
|
+
"@ai-sdk/cohere": "@opencode/ai/providers/cohere",
|
|
108
|
+
"@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
|
|
109
|
+
"@ai-sdk/google": "@opencode/ai/providers/google",
|
|
110
|
+
"@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
|
|
111
|
+
"@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
|
|
112
|
+
"@ai-sdk/groq": "@opencode/ai/providers/groq",
|
|
113
|
+
"@ai-sdk/mistral": "@opencode/ai/providers/mistral",
|
|
114
|
+
"@ai-sdk/openai": "@opencode/ai/providers/openai",
|
|
115
|
+
"@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
|
|
116
|
+
"@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
|
|
117
|
+
"@ai-sdk/xai": "@opencode/ai/providers/xai",
|
|
118
|
+
"@ai-sdk/gateway": "@opencode/ai/providers/vercel-ai-gateway",
|
|
119
|
+
"@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
|
|
120
|
+
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
121
|
+
"venice-ai-sdk-provider": "@opencode/ai/providers/venice"
|
|
122
|
+
};
|
|
123
|
+
var protocols = (name) => ({
|
|
124
|
+
"@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
|
|
125
|
+
"@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
|
|
126
|
+
"@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
|
|
127
|
+
});
|
|
128
|
+
var HOSTS = {
|
|
129
|
+
alibaba: protocols("alibaba"),
|
|
130
|
+
"alibaba-cn": protocols("alibaba"),
|
|
131
|
+
"alibaba-coding-plan": protocols("alibaba"),
|
|
132
|
+
"alibaba-coding-plan-cn": protocols("alibaba"),
|
|
133
|
+
"alibaba-token-plan": protocols("alibaba"),
|
|
134
|
+
"alibaba-token-plan-cn": protocols("alibaba"),
|
|
135
|
+
baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
|
|
136
|
+
"cloudflare-ai-gateway": {
|
|
137
|
+
"@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
138
|
+
"@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
139
|
+
"@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
140
|
+
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
141
|
+
},
|
|
142
|
+
cohere: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cohere/chat" },
|
|
143
|
+
"cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
|
|
144
|
+
deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
|
|
145
|
+
digitalocean: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/digitalocean" },
|
|
146
|
+
"fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
|
|
147
|
+
"google-vertex": {
|
|
148
|
+
"@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat",
|
|
149
|
+
"@ai-sdk/mistral": "@opencode/ai/providers/google-vertex/mistral"
|
|
150
|
+
},
|
|
151
|
+
"kimi-for-coding": protocols("moonshot"),
|
|
152
|
+
meta: protocols("meta"),
|
|
153
|
+
minimax: protocols("minimax"),
|
|
154
|
+
"minimax-cn": protocols("minimax"),
|
|
155
|
+
"minimax-coding-plan": protocols("minimax"),
|
|
156
|
+
"minimax-cn-coding-plan": protocols("minimax"),
|
|
157
|
+
moonshotai: protocols("moonshot"),
|
|
158
|
+
"moonshotai-cn": protocols("moonshot"),
|
|
159
|
+
zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
160
|
+
"zai-coding-plan": protocols("zai-coding-plan"),
|
|
161
|
+
zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
162
|
+
"zhipuai-coding-plan": protocols("zai-coding-plan")
|
|
163
|
+
};
|
|
164
|
+
function native2(npm, context) {
|
|
165
|
+
const host = HOSTS[context.providerID]?.[npm];
|
|
166
|
+
if (host)
|
|
167
|
+
return host;
|
|
168
|
+
if (npm === "@ai-sdk/amazon-bedrock/mantle")
|
|
169
|
+
return mantle(context.modelID);
|
|
170
|
+
if (npm === "@ai-sdk/azure" && azureChat(context))
|
|
171
|
+
return "@opencode/ai/providers/azure/chat";
|
|
172
|
+
return PACKAGES[npm];
|
|
173
|
+
}
|
|
174
|
+
var azureChat = (context) => context.shape === "completions" || context.settings?.useCompletionUrls === true;
|
|
175
|
+
var mantle = (modelID) => {
|
|
176
|
+
if (modelID === undefined)
|
|
177
|
+
return "@opencode/ai/providers/amazon-bedrock/mantle";
|
|
178
|
+
if (modelID.includes("anthropic."))
|
|
179
|
+
return "@opencode/ai/providers/amazon-bedrock/mantle/messages";
|
|
180
|
+
return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
|
|
181
|
+
};
|
|
182
|
+
function resolve(specifier, context) {
|
|
183
|
+
const npm = packageName2(specifier);
|
|
184
|
+
if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
|
|
185
|
+
return native2(npm, context);
|
|
186
|
+
if (npm === "@opencode/ai/providers/amazon-bedrock/mantle" || npm === "@opencode/ai/providers/amazon-bedrock-mantle")
|
|
187
|
+
return mantle(context.modelID);
|
|
188
|
+
if ((npm === "@opencode/ai/providers/azure" || npm === "@opencode/ai/providers/azure/responses") && azureChat(context))
|
|
189
|
+
return "@opencode/ai/providers/azure/chat";
|
|
190
|
+
return builtinPackages2.has(npm) ? npm : undefined;
|
|
191
|
+
}
|
|
192
|
+
function options(replacement, modelID, settings) {
|
|
193
|
+
const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
|
|
194
|
+
const kept = Struct.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
|
|
195
|
+
const thinking = converse ? bedrockThinking(modelID, settings) : undefined;
|
|
196
|
+
return {
|
|
197
|
+
settings: {
|
|
198
|
+
...replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
|
|
199
|
+
...thinking === undefined ? {} : { thinking }
|
|
200
|
+
},
|
|
201
|
+
...settings.headers === undefined ? {} : { headers: settings.headers },
|
|
202
|
+
...settings.extraBody === undefined ? {} : { body: settings.extraBody },
|
|
203
|
+
...converse ? bedrockRequest(modelID, settings) : {},
|
|
204
|
+
...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
var BEDROCK_KEYS = [
|
|
208
|
+
"bearerToken",
|
|
209
|
+
"endpoint",
|
|
210
|
+
"credentials",
|
|
211
|
+
"credentialProvider",
|
|
212
|
+
"accessKeyId",
|
|
213
|
+
"secretAccessKey",
|
|
214
|
+
"sessionToken"
|
|
215
|
+
];
|
|
216
|
+
var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
|
|
217
|
+
function bedrockSettings(settings, converse) {
|
|
218
|
+
const region = settings.region ?? settings.credentials?.region;
|
|
219
|
+
const credentials = settings.credentials ?? settings;
|
|
220
|
+
const baseURL = settings.baseURL ?? settings.endpoint;
|
|
221
|
+
return {
|
|
222
|
+
...Struct.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
|
|
223
|
+
...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
|
|
224
|
+
...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
|
|
225
|
+
...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
|
|
226
|
+
credentials: {
|
|
227
|
+
...region === undefined ? {} : { region },
|
|
228
|
+
accessKeyId: credentials.accessKeyId,
|
|
229
|
+
secretAccessKey: credentials.secretAccessKey,
|
|
230
|
+
...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
function bedrockThinking(modelID, settings) {
|
|
236
|
+
const reasoning = settings.reasoningConfig;
|
|
237
|
+
if (!modelID?.includes("anthropic") || reasoning?.type !== "enabled" || reasoning.budgetTokens === undefined)
|
|
238
|
+
return;
|
|
239
|
+
return { type: "enabled", budgetTokens: reasoning.budgetTokens };
|
|
240
|
+
}
|
|
241
|
+
function bedrockRequest(modelID, settings) {
|
|
242
|
+
const additional = settings.additionalModelRequestFields ?? {};
|
|
243
|
+
const reasoning = settings.reasoningConfig;
|
|
244
|
+
const anthropic = modelID?.includes("anthropic") ?? false;
|
|
245
|
+
const openai = modelID?.includes("openai.") ?? false;
|
|
246
|
+
const harmony = modelID?.includes("openai.gpt-oss") ?? false;
|
|
247
|
+
const effort = reasoning?.maxReasoningEffort;
|
|
248
|
+
const type = reasoning?.type;
|
|
249
|
+
const budget = reasoning?.budgetTokens;
|
|
250
|
+
const display = reasoning?.display;
|
|
251
|
+
const betas = settings.anthropicBeta ?? [];
|
|
252
|
+
const fields = mergeOverlay2(additional, {
|
|
253
|
+
...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
|
|
254
|
+
...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
|
|
255
|
+
...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
|
|
256
|
+
...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
|
|
257
|
+
...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
|
|
258
|
+
...!anthropic && !openai && effort !== undefined ? {
|
|
259
|
+
reasoningConfig: {
|
|
260
|
+
...type === undefined || type === "adaptive" ? {} : { type },
|
|
261
|
+
...budget === undefined ? {} : { budgetTokens: budget },
|
|
262
|
+
maxReasoningEffort: effort
|
|
263
|
+
}
|
|
264
|
+
} : {}
|
|
265
|
+
});
|
|
266
|
+
const body = {
|
|
267
|
+
...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
|
|
268
|
+
...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
|
|
269
|
+
};
|
|
270
|
+
return Object.keys(body).length === 0 ? {} : { body };
|
|
271
|
+
}
|
|
272
|
+
var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
|
|
273
|
+
function openRouterRequest(settings) {
|
|
274
|
+
const headers = mergeHeaders2({
|
|
275
|
+
...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
|
|
276
|
+
...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
|
|
277
|
+
...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
|
|
278
|
+
}, settings.headers) ?? {};
|
|
279
|
+
return Object.keys(headers).length === 0 ? {} : { headers };
|
|
280
|
+
}
|
|
281
|
+
var lenient = (schema) => Schema.optional(Schema.UndefinedOr(schema).pipe(Schema.catchDecoding(() => Effect.succeed(Option.some(undefined)))));
|
|
282
|
+
var Credentials = Schema.Struct({
|
|
283
|
+
accessKeyId: Schema.String,
|
|
284
|
+
secretAccessKey: Schema.String,
|
|
285
|
+
sessionToken: lenient(Schema.String),
|
|
286
|
+
region: lenient(Schema.String)
|
|
287
|
+
});
|
|
288
|
+
var Legacy = Schema.StructWithRest(Schema.Struct({
|
|
289
|
+
apiKey: lenient(Schema.String),
|
|
290
|
+
baseURL: lenient(Schema.String),
|
|
291
|
+
headers: lenient(Schema.Record(Schema.String, Schema.String)),
|
|
292
|
+
extraBody: lenient(Schema.Record(Schema.String, Schema.Unknown)),
|
|
293
|
+
useCompletionUrls: lenient(Schema.Boolean),
|
|
294
|
+
auth: lenient(Schema.Literals(["bearer", "sigv4"])),
|
|
295
|
+
bearerToken: lenient(Schema.String),
|
|
296
|
+
endpoint: lenient(Schema.String),
|
|
297
|
+
region: lenient(Schema.String),
|
|
298
|
+
credentials: lenient(Credentials),
|
|
299
|
+
accessKeyId: lenient(Schema.String),
|
|
300
|
+
secretAccessKey: lenient(Schema.String),
|
|
301
|
+
sessionToken: lenient(Schema.String),
|
|
302
|
+
anthropicBeta: lenient(Schema.Array(Schema.String)),
|
|
303
|
+
serviceTier: lenient(Schema.String),
|
|
304
|
+
reasoningConfig: lenient(Schema.Struct({
|
|
305
|
+
type: lenient(Schema.String),
|
|
306
|
+
display: lenient(Schema.String),
|
|
307
|
+
maxReasoningEffort: lenient(Schema.String),
|
|
308
|
+
budgetTokens: lenient(Schema.Number)
|
|
309
|
+
})),
|
|
310
|
+
additionalModelRequestFields: lenient(Schema.StructWithRest(Schema.Struct({
|
|
311
|
+
anthropic_beta: lenient(Schema.Array(Schema.String)),
|
|
312
|
+
output_config: lenient(Schema.Record(Schema.String, Schema.Unknown)),
|
|
313
|
+
reasoning: lenient(Schema.Record(Schema.String, Schema.Unknown))
|
|
314
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)])),
|
|
315
|
+
appName: lenient(Schema.String),
|
|
316
|
+
appUrl: lenient(Schema.String),
|
|
317
|
+
api_keys: lenient(Schema.Record(Schema.String, Schema.String))
|
|
318
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
319
|
+
var decode = Schema.decodeUnknownSync(Legacy);
|
|
320
|
+
|
|
321
|
+
// src/provider.ts
|
|
74
322
|
import { Event as Event16 } from "@opencode/schema/provider";
|
|
75
|
-
var
|
|
323
|
+
var ID12 = Provider.ID;
|
|
76
324
|
var AISDK_PREFIX2 = "aisdk:";
|
|
77
325
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
78
326
|
var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
|
|
@@ -83,12 +331,12 @@ function packageName2(value) {
|
|
|
83
331
|
return value;
|
|
84
332
|
return value.slice(AISDK_PREFIX2.length);
|
|
85
333
|
}
|
|
86
|
-
var JsonRecord =
|
|
87
|
-
var decodeJsonRecord =
|
|
334
|
+
var JsonRecord = Schema2.Record(Schema2.String, Schema2.Json);
|
|
335
|
+
var decodeJsonRecord = Schema2.decodeUnknownSync(JsonRecord);
|
|
88
336
|
|
|
89
|
-
class LoadError3 extends
|
|
90
|
-
package:
|
|
91
|
-
cause:
|
|
337
|
+
class LoadError3 extends Schema2.TaggedError()("Provider.LoadError", {
|
|
338
|
+
package: Schema2.String,
|
|
339
|
+
cause: Schema2.Defect()
|
|
92
340
|
}) {
|
|
93
341
|
}
|
|
94
342
|
var packages = new Map;
|
|
@@ -198,12 +446,12 @@ var builtins = new Map([
|
|
|
198
446
|
]
|
|
199
447
|
]);
|
|
200
448
|
var builtinPackages2 = new Set(builtins.keys());
|
|
201
|
-
var loadPackage2 =
|
|
449
|
+
var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
|
|
202
450
|
const specifier = packageName2(input);
|
|
203
451
|
const builtin = builtins.get(specifier);
|
|
204
452
|
if (builtin)
|
|
205
453
|
return yield* importPackage(specifier, specifier, builtin);
|
|
206
|
-
const resolved = yield*
|
|
454
|
+
const resolved = yield* Effect2.sync(() => {
|
|
207
455
|
if (specifier.startsWith("file://") || specifier.startsWith("@opencode/ai/"))
|
|
208
456
|
return specifier;
|
|
209
457
|
try {
|
|
@@ -222,8 +470,8 @@ var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
|
|
|
222
470
|
}
|
|
223
471
|
const parts = specifier.split("/");
|
|
224
472
|
const root = specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0] ?? specifier;
|
|
225
|
-
const installed = yield* npm.add(root).pipe(
|
|
226
|
-
const entrypoint = yield*
|
|
473
|
+
const installed = yield* npm.add(root).pipe(Effect2.mapError((cause) => new LoadError3({ package: specifier, cause })));
|
|
474
|
+
const entrypoint = yield* Effect2.try({
|
|
227
475
|
try: () => resolveModule(specifier, installed.directory),
|
|
228
476
|
catch: (cause) => new LoadError3({ package: specifier, cause })
|
|
229
477
|
});
|
|
@@ -232,16 +480,16 @@ var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
|
|
|
232
480
|
var CORE_KEYS = ["chunkTimeout", "compaction", "encoding", "fetch", "headerTimeout", "timeout", "transport"];
|
|
233
481
|
var PROVIDER_ONLY_KEYS = ["chunkTimeout", "headerTimeout", "timeout", "transport"];
|
|
234
482
|
function nativeSettings2(settings) {
|
|
235
|
-
return
|
|
483
|
+
return Struct2.omit(settings, CORE_KEYS);
|
|
236
484
|
}
|
|
237
485
|
function modelSettings2(settings) {
|
|
238
|
-
return settings &&
|
|
486
|
+
return settings && Struct2.omit(settings, PROVIDER_ONLY_KEYS);
|
|
239
487
|
}
|
|
240
|
-
var decodeTimeout =
|
|
488
|
+
var decodeTimeout = Schema2.decodeUnknownOption(HttpTimeout);
|
|
241
489
|
var DEFAULT_TIMEOUT_MS3 = 300000;
|
|
242
490
|
var DEFAULT_CHUNK_TIMEOUT_MS2 = 900000;
|
|
243
491
|
function timeout2(value) {
|
|
244
|
-
return
|
|
492
|
+
return Option2.getOrUndefined(decodeTimeout(value));
|
|
245
493
|
}
|
|
246
494
|
function timeouts2(settings) {
|
|
247
495
|
return {
|
|
@@ -250,9 +498,9 @@ function timeouts2(settings) {
|
|
|
250
498
|
chunkTimeout: timeout2(settings.chunkTimeout) ?? DEFAULT_CHUNK_TIMEOUT_MS2
|
|
251
499
|
};
|
|
252
500
|
}
|
|
253
|
-
var decodeEncoding =
|
|
501
|
+
var decodeEncoding = Schema2.decodeUnknownOption(Provider.Encoding);
|
|
254
502
|
function encoding2(settings) {
|
|
255
|
-
return
|
|
503
|
+
return Option2.getOrUndefined(decodeEncoding(settings.encoding));
|
|
256
504
|
}
|
|
257
505
|
function mergeOverlay2(base, overlay) {
|
|
258
506
|
if (base === undefined)
|
|
@@ -286,9 +534,9 @@ var Request3 = Provider.Request;
|
|
|
286
534
|
var Compaction3 = Provider.Compaction;
|
|
287
535
|
var Transport2 = Provider.Transport;
|
|
288
536
|
var Settings2 = Provider.Settings;
|
|
289
|
-
var
|
|
537
|
+
var Info22 = Provider.Info;
|
|
290
538
|
|
|
291
|
-
class
|
|
539
|
+
class Service76 extends Context.Service()("@opencode/Provider") {
|
|
292
540
|
}
|
|
293
541
|
var definitions = new WeakMap;
|
|
294
542
|
function index(providerID, models) {
|
|
@@ -301,10 +549,10 @@ function index(providerID, models) {
|
|
|
301
549
|
definitions.set(models, indexes);
|
|
302
550
|
return result;
|
|
303
551
|
}
|
|
304
|
-
var layer = Layer.effect(
|
|
552
|
+
var layer = Layer.effect(Service76, Effect2.gen(function* () {
|
|
305
553
|
const bus = yield* Service85;
|
|
306
|
-
const integrations = yield*
|
|
307
|
-
const location = yield*
|
|
554
|
+
const integrations = yield* Service77;
|
|
555
|
+
const location = yield* Service82;
|
|
308
556
|
const state = create3({
|
|
309
557
|
name: "provider",
|
|
310
558
|
initial: () => new Map,
|
|
@@ -315,7 +563,7 @@ var layer = Layer.effect(Service72, Effect.gen(function* () {
|
|
|
315
563
|
const current = records.get(id);
|
|
316
564
|
if (current)
|
|
317
565
|
return current;
|
|
318
|
-
const added = { provider:
|
|
566
|
+
const added = { provider: Info22.empty(id), models: new Map };
|
|
319
567
|
records.set(id, added);
|
|
320
568
|
maps.add(added.models);
|
|
321
569
|
return added;
|
|
@@ -383,9 +631,9 @@ var layer = Layer.effect(Service72, Effect.gen(function* () {
|
|
|
383
631
|
},
|
|
384
632
|
notify: () => notify
|
|
385
633
|
});
|
|
386
|
-
yield*
|
|
634
|
+
yield* Effect2.addFinalizer(() => shutdown2(state.reload()));
|
|
387
635
|
let cached;
|
|
388
|
-
const snapshot =
|
|
636
|
+
const snapshot = Effect2.fn("Provider.snapshot")(function* () {
|
|
389
637
|
while (true) {
|
|
390
638
|
const revision = integrations.revision();
|
|
391
639
|
const records = state.get();
|
|
@@ -396,7 +644,7 @@ var layer = Layer.effect(Service72, Effect.gen(function* () {
|
|
|
396
644
|
const available = Array.from(records.values()).filter((record) => {
|
|
397
645
|
if (record.provider.activation === "disabled")
|
|
398
646
|
return false;
|
|
399
|
-
const integration = byID.get(record.provider.integrationID ??
|
|
647
|
+
const integration = byID.get(record.provider.integrationID ?? ID13.make(record.provider.id));
|
|
400
648
|
if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
|
|
401
649
|
return false;
|
|
402
650
|
if (record.provider.activation === "enabled")
|
|
@@ -413,7 +661,7 @@ var layer = Layer.effect(Service72, Effect.gen(function* () {
|
|
|
413
661
|
}
|
|
414
662
|
});
|
|
415
663
|
let published;
|
|
416
|
-
const notify =
|
|
664
|
+
const notify = Effect2.gen(function* () {
|
|
417
665
|
const value = yield* snapshot();
|
|
418
666
|
if (value === published)
|
|
419
667
|
return;
|
|
@@ -422,19 +670,19 @@ var layer = Layer.effect(Service72, Effect.gen(function* () {
|
|
|
422
670
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
423
671
|
});
|
|
424
672
|
});
|
|
425
|
-
yield* bus.subscribe([Event17.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify),
|
|
426
|
-
return
|
|
673
|
+
yield* bus.subscribe([Event17.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect2.forkScoped({ startImmediately: true }));
|
|
674
|
+
return Service76.of({
|
|
427
675
|
transform: state.transform,
|
|
428
676
|
reload: state.reload,
|
|
429
|
-
get:
|
|
430
|
-
all:
|
|
431
|
-
available:
|
|
677
|
+
get: Effect2.fn("Provider.get")((id) => Effect2.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
678
|
+
all: Effect2.fn("Provider.all")(() => Effect2.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
|
|
679
|
+
available: Effect2.fn("Provider.available")(() => snapshot().pipe(Effect2.map((value) => value.providers))),
|
|
432
680
|
snapshot
|
|
433
681
|
});
|
|
434
682
|
}));
|
|
435
|
-
var
|
|
436
|
-
var importPackage =
|
|
437
|
-
const module = yield*
|
|
683
|
+
var node80 = makeLocationNode({ service: Service76, layer, deps: [node89, node81, node86] });
|
|
684
|
+
var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
685
|
+
const module = yield* Effect2.tryPromise({
|
|
438
686
|
try: () => {
|
|
439
687
|
const existing = packages.get(entrypoint);
|
|
440
688
|
if (existing)
|
|
@@ -454,252 +702,4 @@ var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, en
|
|
|
454
702
|
return module;
|
|
455
703
|
});
|
|
456
704
|
|
|
457
|
-
|
|
458
|
-
function rewrite2(target, input) {
|
|
459
|
-
if (input.specifier === undefined)
|
|
460
|
-
return;
|
|
461
|
-
const plain = resolve(input.specifier, input);
|
|
462
|
-
if (!plain)
|
|
463
|
-
return;
|
|
464
|
-
const settings = decode(target.settings ?? {});
|
|
465
|
-
const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
|
|
466
|
-
const translated = options(replacement, input.modelID, settings);
|
|
467
|
-
if (target.package !== undefined || replacement !== input.specifier)
|
|
468
|
-
target.package = replacement;
|
|
469
|
-
const identity = replacement === "@opencode/ai/providers/openai-compatible" && !builtinPackages2.has(input.specifier) ? { provider: input.canonical ?? input.providerID } : {};
|
|
470
|
-
target.settings = target.settings === undefined ? undefined : { ...translated.settings, ...identity };
|
|
471
|
-
target.headers = mergeHeaders2(translated.headers, target.headers);
|
|
472
|
-
target.body = mergeOverlay2(translated.body, target.body);
|
|
473
|
-
target.variants = target.variants?.map((variant) => {
|
|
474
|
-
const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
|
|
475
|
-
const headers = mergeHeaders2(overlay.headers, variant.headers);
|
|
476
|
-
const body = mergeOverlay2(overlay.body, variant.body);
|
|
477
|
-
return {
|
|
478
|
-
id: variant.id,
|
|
479
|
-
...variant.settings === undefined ? {} : { settings: overlay.settings },
|
|
480
|
-
...headers === undefined ? {} : { headers },
|
|
481
|
-
...body === undefined ? {} : { body }
|
|
482
|
-
};
|
|
483
|
-
});
|
|
484
|
-
}
|
|
485
|
-
var PACKAGES = {
|
|
486
|
-
"@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
|
|
487
|
-
"@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
|
|
488
|
-
"@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
|
|
489
|
-
"@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
|
|
490
|
-
"@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
|
|
491
|
-
"@ai-sdk/cohere": "@opencode/ai/providers/cohere",
|
|
492
|
-
"@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
|
|
493
|
-
"@ai-sdk/google": "@opencode/ai/providers/google",
|
|
494
|
-
"@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
|
|
495
|
-
"@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
|
|
496
|
-
"@ai-sdk/groq": "@opencode/ai/providers/groq",
|
|
497
|
-
"@ai-sdk/mistral": "@opencode/ai/providers/mistral",
|
|
498
|
-
"@ai-sdk/openai": "@opencode/ai/providers/openai",
|
|
499
|
-
"@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
|
|
500
|
-
"@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
|
|
501
|
-
"@ai-sdk/xai": "@opencode/ai/providers/xai",
|
|
502
|
-
"@ai-sdk/gateway": "@opencode/ai/providers/vercel-ai-gateway",
|
|
503
|
-
"@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
|
|
504
|
-
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
505
|
-
"venice-ai-sdk-provider": "@opencode/ai/providers/venice"
|
|
506
|
-
};
|
|
507
|
-
var protocols = (name) => ({
|
|
508
|
-
"@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
|
|
509
|
-
"@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
|
|
510
|
-
"@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
|
|
511
|
-
});
|
|
512
|
-
var HOSTS = {
|
|
513
|
-
alibaba: protocols("alibaba"),
|
|
514
|
-
"alibaba-cn": protocols("alibaba"),
|
|
515
|
-
"alibaba-coding-plan": protocols("alibaba"),
|
|
516
|
-
"alibaba-coding-plan-cn": protocols("alibaba"),
|
|
517
|
-
"alibaba-token-plan": protocols("alibaba"),
|
|
518
|
-
"alibaba-token-plan-cn": protocols("alibaba"),
|
|
519
|
-
baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
|
|
520
|
-
"cloudflare-ai-gateway": {
|
|
521
|
-
"@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
522
|
-
"@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
523
|
-
"@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
524
|
-
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
525
|
-
},
|
|
526
|
-
cohere: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cohere/chat" },
|
|
527
|
-
"cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
|
|
528
|
-
deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
|
|
529
|
-
digitalocean: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/digitalocean" },
|
|
530
|
-
"fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
|
|
531
|
-
"google-vertex": {
|
|
532
|
-
"@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat",
|
|
533
|
-
"@ai-sdk/mistral": "@opencode/ai/providers/google-vertex/mistral"
|
|
534
|
-
},
|
|
535
|
-
"kimi-for-coding": protocols("moonshot"),
|
|
536
|
-
meta: protocols("meta"),
|
|
537
|
-
minimax: protocols("minimax"),
|
|
538
|
-
"minimax-cn": protocols("minimax"),
|
|
539
|
-
"minimax-coding-plan": protocols("minimax"),
|
|
540
|
-
"minimax-cn-coding-plan": protocols("minimax"),
|
|
541
|
-
moonshotai: protocols("moonshot"),
|
|
542
|
-
"moonshotai-cn": protocols("moonshot"),
|
|
543
|
-
zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
544
|
-
"zai-coding-plan": protocols("zai-coding-plan"),
|
|
545
|
-
zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
546
|
-
"zhipuai-coding-plan": protocols("zai-coding-plan")
|
|
547
|
-
};
|
|
548
|
-
function native2(npm, context) {
|
|
549
|
-
const host = HOSTS[context.providerID]?.[npm];
|
|
550
|
-
if (host)
|
|
551
|
-
return host;
|
|
552
|
-
if (npm === "@ai-sdk/amazon-bedrock/mantle")
|
|
553
|
-
return mantle(context.modelID);
|
|
554
|
-
if (npm === "@ai-sdk/azure" && azureChat(context))
|
|
555
|
-
return "@opencode/ai/providers/azure/chat";
|
|
556
|
-
return PACKAGES[npm];
|
|
557
|
-
}
|
|
558
|
-
var azureChat = (context) => context.shape === "completions" || context.settings?.useCompletionUrls === true;
|
|
559
|
-
var mantle = (modelID) => {
|
|
560
|
-
if (modelID === undefined)
|
|
561
|
-
return "@opencode/ai/providers/amazon-bedrock/mantle";
|
|
562
|
-
if (modelID.includes("anthropic."))
|
|
563
|
-
return "@opencode/ai/providers/amazon-bedrock/mantle/messages";
|
|
564
|
-
return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
|
|
565
|
-
};
|
|
566
|
-
function resolve(specifier, context) {
|
|
567
|
-
const npm = packageName2(specifier);
|
|
568
|
-
if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
|
|
569
|
-
return native2(npm, context);
|
|
570
|
-
if (npm === "@opencode/ai/providers/amazon-bedrock/mantle" || npm === "@opencode/ai/providers/amazon-bedrock-mantle")
|
|
571
|
-
return mantle(context.modelID);
|
|
572
|
-
if ((npm === "@opencode/ai/providers/azure" || npm === "@opencode/ai/providers/azure/responses") && azureChat(context))
|
|
573
|
-
return "@opencode/ai/providers/azure/chat";
|
|
574
|
-
return builtinPackages2.has(npm) ? npm : undefined;
|
|
575
|
-
}
|
|
576
|
-
function options(replacement, modelID, settings) {
|
|
577
|
-
const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
|
|
578
|
-
const kept = Struct2.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
|
|
579
|
-
const thinking = converse ? bedrockThinking(modelID, settings) : undefined;
|
|
580
|
-
return {
|
|
581
|
-
settings: {
|
|
582
|
-
...replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
|
|
583
|
-
...thinking === undefined ? {} : { thinking }
|
|
584
|
-
},
|
|
585
|
-
...settings.headers === undefined ? {} : { headers: settings.headers },
|
|
586
|
-
...settings.extraBody === undefined ? {} : { body: settings.extraBody },
|
|
587
|
-
...converse ? bedrockRequest(modelID, settings) : {},
|
|
588
|
-
...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
|
|
589
|
-
};
|
|
590
|
-
}
|
|
591
|
-
var BEDROCK_KEYS = [
|
|
592
|
-
"bearerToken",
|
|
593
|
-
"endpoint",
|
|
594
|
-
"credentials",
|
|
595
|
-
"credentialProvider",
|
|
596
|
-
"accessKeyId",
|
|
597
|
-
"secretAccessKey",
|
|
598
|
-
"sessionToken"
|
|
599
|
-
];
|
|
600
|
-
var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
|
|
601
|
-
function bedrockSettings(settings, converse) {
|
|
602
|
-
const region = settings.region ?? settings.credentials?.region;
|
|
603
|
-
const credentials = settings.credentials ?? settings;
|
|
604
|
-
const baseURL = settings.baseURL ?? settings.endpoint;
|
|
605
|
-
return {
|
|
606
|
-
...Struct2.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
|
|
607
|
-
...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
|
|
608
|
-
...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
|
|
609
|
-
...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
|
|
610
|
-
credentials: {
|
|
611
|
-
...region === undefined ? {} : { region },
|
|
612
|
-
accessKeyId: credentials.accessKeyId,
|
|
613
|
-
secretAccessKey: credentials.secretAccessKey,
|
|
614
|
-
...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
};
|
|
618
|
-
}
|
|
619
|
-
function bedrockThinking(modelID, settings) {
|
|
620
|
-
const reasoning = settings.reasoningConfig;
|
|
621
|
-
if (!modelID?.includes("anthropic") || reasoning?.type !== "enabled" || reasoning.budgetTokens === undefined)
|
|
622
|
-
return;
|
|
623
|
-
return { type: "enabled", budgetTokens: reasoning.budgetTokens };
|
|
624
|
-
}
|
|
625
|
-
function bedrockRequest(modelID, settings) {
|
|
626
|
-
const additional = settings.additionalModelRequestFields ?? {};
|
|
627
|
-
const reasoning = settings.reasoningConfig;
|
|
628
|
-
const anthropic = modelID?.includes("anthropic") ?? false;
|
|
629
|
-
const openai = modelID?.includes("openai.") ?? false;
|
|
630
|
-
const harmony = modelID?.includes("openai.gpt-oss") ?? false;
|
|
631
|
-
const effort = reasoning?.maxReasoningEffort;
|
|
632
|
-
const type = reasoning?.type;
|
|
633
|
-
const budget = reasoning?.budgetTokens;
|
|
634
|
-
const display = reasoning?.display;
|
|
635
|
-
const betas = settings.anthropicBeta ?? [];
|
|
636
|
-
const fields = mergeOverlay2(additional, {
|
|
637
|
-
...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
|
|
638
|
-
...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
|
|
639
|
-
...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
|
|
640
|
-
...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
|
|
641
|
-
...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
|
|
642
|
-
...!anthropic && !openai && effort !== undefined ? {
|
|
643
|
-
reasoningConfig: {
|
|
644
|
-
...type === undefined || type === "adaptive" ? {} : { type },
|
|
645
|
-
...budget === undefined ? {} : { budgetTokens: budget },
|
|
646
|
-
maxReasoningEffort: effort
|
|
647
|
-
}
|
|
648
|
-
} : {}
|
|
649
|
-
});
|
|
650
|
-
const body = {
|
|
651
|
-
...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
|
|
652
|
-
...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
|
|
653
|
-
};
|
|
654
|
-
return Object.keys(body).length === 0 ? {} : { body };
|
|
655
|
-
}
|
|
656
|
-
var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
|
|
657
|
-
function openRouterRequest(settings) {
|
|
658
|
-
const headers = mergeHeaders2({
|
|
659
|
-
...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
|
|
660
|
-
...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
|
|
661
|
-
...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
|
|
662
|
-
}, settings.headers) ?? {};
|
|
663
|
-
return Object.keys(headers).length === 0 ? {} : { headers };
|
|
664
|
-
}
|
|
665
|
-
var lenient = (schema) => Schema2.optional(Schema2.UndefinedOr(schema).pipe(Schema2.catchDecoding(() => Effect2.succeed(Option2.some(undefined)))));
|
|
666
|
-
var Credentials = Schema2.Struct({
|
|
667
|
-
accessKeyId: Schema2.String,
|
|
668
|
-
secretAccessKey: Schema2.String,
|
|
669
|
-
sessionToken: lenient(Schema2.String),
|
|
670
|
-
region: lenient(Schema2.String)
|
|
671
|
-
});
|
|
672
|
-
var Legacy = Schema2.StructWithRest(Schema2.Struct({
|
|
673
|
-
apiKey: lenient(Schema2.String),
|
|
674
|
-
baseURL: lenient(Schema2.String),
|
|
675
|
-
headers: lenient(Schema2.Record(Schema2.String, Schema2.String)),
|
|
676
|
-
extraBody: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
|
|
677
|
-
useCompletionUrls: lenient(Schema2.Boolean),
|
|
678
|
-
auth: lenient(Schema2.Literals(["bearer", "sigv4"])),
|
|
679
|
-
bearerToken: lenient(Schema2.String),
|
|
680
|
-
endpoint: lenient(Schema2.String),
|
|
681
|
-
region: lenient(Schema2.String),
|
|
682
|
-
credentials: lenient(Credentials),
|
|
683
|
-
accessKeyId: lenient(Schema2.String),
|
|
684
|
-
secretAccessKey: lenient(Schema2.String),
|
|
685
|
-
sessionToken: lenient(Schema2.String),
|
|
686
|
-
anthropicBeta: lenient(Schema2.Array(Schema2.String)),
|
|
687
|
-
serviceTier: lenient(Schema2.String),
|
|
688
|
-
reasoningConfig: lenient(Schema2.Struct({
|
|
689
|
-
type: lenient(Schema2.String),
|
|
690
|
-
display: lenient(Schema2.String),
|
|
691
|
-
maxReasoningEffort: lenient(Schema2.String),
|
|
692
|
-
budgetTokens: lenient(Schema2.Number)
|
|
693
|
-
})),
|
|
694
|
-
additionalModelRequestFields: lenient(Schema2.StructWithRest(Schema2.Struct({
|
|
695
|
-
anthropic_beta: lenient(Schema2.Array(Schema2.String)),
|
|
696
|
-
output_config: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
|
|
697
|
-
reasoning: lenient(Schema2.Record(Schema2.String, Schema2.Unknown))
|
|
698
|
-
}), [Schema2.Record(Schema2.String, Schema2.Unknown)])),
|
|
699
|
-
appName: lenient(Schema2.String),
|
|
700
|
-
appUrl: lenient(Schema2.String),
|
|
701
|
-
api_keys: lenient(Schema2.Record(Schema2.String, Schema2.String))
|
|
702
|
-
}), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
|
|
703
|
-
var decode = Schema2.decodeUnknownSync(Legacy);
|
|
704
|
-
|
|
705
|
-
export { rewrite2, native2, exports_aisdk_native, ID11, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, builtinPackages2, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, DEFAULT_CHUNK_TIMEOUT_MS2, timeout2, timeouts2, encoding2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info20, Service72, node75, exports_provider3, Event16 };
|
|
705
|
+
export { ID12, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, builtinPackages2, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, DEFAULT_CHUNK_TIMEOUT_MS2, timeout2, timeouts2, encoding2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info22, Service76, node80, exports_provider3, Event16, rewrite2, native2, exports_aisdk_native };
|