@opencode/core 0.0.0-dev-20777 → 0.0.0-dev-20781
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +82 -82
- package/dist/aisdk-native.js +90 -90
- package/dist/aisdk.js +95 -95
- package/dist/app.js +9 -9
- package/dist/bus.js +74 -74
- package/dist/chunks/{location-j793y9ay.js → skill-03s39rhg.js} +31 -31
- package/dist/chunks/{location-ch3qpzfg.js → skill-081pqqr5.js} +9 -9
- package/dist/chunks/{location-6whpyrs3.js → skill-0982s1gm.js} +45 -45
- package/dist/chunks/{location-vn72gsba.js → skill-0dygnakk.js} +4 -4
- package/dist/chunks/{location-3pxsat6s.js → skill-0g9cdt2p.js} +27 -27
- package/dist/chunks/{location-0paq2nw3.js → skill-0paq2nw3.js} +1 -1
- package/dist/chunks/{location-47jkzegy.js → skill-0r3c1bmw.js} +5 -5
- package/dist/chunks/{location-v8jdkmfs.js → skill-0sqchc9v.js} +10 -10
- package/dist/chunks/{location-agg46hj7.js → skill-0v6g35my.js} +8 -8
- package/dist/chunks/{location-0vbcp93d.js → skill-0vbcp93d.js} +2 -2
- package/dist/chunks/{location-c00fv4ar.js → skill-0x93t62e.js} +20 -20
- package/dist/chunks/{location-vaskyz0h.js → skill-0yc8d83b.js} +20 -20
- package/dist/chunks/{location-2jy94dam.js → skill-101tmw0e.js} +13 -13
- package/dist/chunks/{location-1dazxqgg.js → skill-1dazxqgg.js} +2 -2
- package/dist/chunks/{location-n0kpyt58.js → skill-1epzdntc.js} +9 -9
- package/dist/chunks/{location-rf5ebq4s.js → skill-1fps8nz6.js} +23 -23
- package/dist/chunks/{location-sfe13qt9.js → skill-1ms888gb.js} +25 -25
- package/dist/chunks/{location-py3kkmfq.js → skill-1p07q0wb.js} +4 -4
- package/dist/chunks/{location-cvmt8rk0.js → skill-1pc8eaj9.js} +21 -21
- package/dist/chunks/{location-b69x7x7h.js → skill-1r17h9m8.js} +2 -2
- package/dist/chunks/skill-1y4eg5v6.js +253 -0
- package/dist/chunks/{location-wp8xfje7.js → skill-1y6tjs0p.js} +29 -29
- package/dist/chunks/{location-b8d9rq7p.js → skill-23rmqmtf.js} +32 -32
- package/dist/chunks/{location-2a5m3afh.js → skill-2a5m3afh.js} +1 -1
- package/dist/chunks/{location-08mjp3pt.js → skill-2ahkrezy.js} +49 -49
- package/dist/chunks/{location-8snddydh.js → skill-2e488er1.js} +13 -13
- package/dist/chunks/{location-2a084xpy.js → skill-2epmt5yx.js} +3 -3
- package/dist/chunks/{location-b3e58hyc.js → skill-2erbc2h3.js} +32 -32
- package/dist/chunks/{location-y7rk29wk.js → skill-2fb8egyg.js} +17 -17
- package/dist/chunks/{location-ejfryj65.js → skill-2fyzv3xc.js} +3 -3
- package/dist/chunks/{location-fcrkznn8.js → skill-2k8khapm.js} +5 -5
- package/dist/chunks/{location-fyb3fekh.js → skill-2kagsa96.js} +10 -10
- package/dist/chunks/{location-ey3qhexw.js → skill-2nhb9q09.js} +5 -5
- package/dist/chunks/{location-mw9b1c9f.js → skill-30h8y4wg.js} +13 -13
- package/dist/chunks/{location-h2b79v29.js → skill-3cegwx68.js} +2 -2
- package/dist/chunks/{location-3fc6dm20.js → skill-3fc6dm20.js} +1 -1
- package/dist/chunks/{location-3hepkmqq.js → skill-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-hfpbvkxs.js → skill-3jxdk58w.js} +16 -16
- package/dist/chunks/{location-mn8ry2gg.js → skill-3mnvf6p9.js} +17 -17
- package/dist/chunks/{location-8pfsh0gj.js → skill-3pp8k01h.js} +20 -20
- package/dist/chunks/{location-zg3gffzg.js → skill-3rcp1bkh.js} +4 -4
- package/dist/chunks/{location-3smtnn6g.js → skill-3smtnn6g.js} +1 -1
- package/dist/chunks/{location-3tvqynh2.js → skill-3tvqynh2.js} +1 -1
- package/dist/chunks/{location-rnffhph3.js → skill-3w6er6cj.js} +1 -1
- package/dist/chunks/{location-3zsf4n22.js → skill-3zsf4n22.js} +1 -1
- package/dist/chunks/{location-qa96c720.js → skill-40ptwz48.js} +6 -6
- package/dist/chunks/{location-5hps0jc8.js → skill-42nr671v.js} +23 -23
- package/dist/chunks/{location-pqxmmrpw.js → skill-44ntahsq.js} +49 -49
- package/dist/chunks/{location-4ts7tf6z.js → skill-4ts7tf6z.js} +2 -2
- package/dist/chunks/{location-ya99b1bg.js → skill-50vj6b7x.js} +143 -143
- package/dist/chunks/{location-54ma36ye.js → skill-54ma36ye.js} +1 -1
- package/dist/chunks/{location-w0pdyb55.js → skill-55ej53y0.js} +7 -7
- package/dist/chunks/{location-mfqp6xfm.js → skill-56gdpj1q.js} +6 -6
- package/dist/chunks/{location-xfkkasph.js → skill-57b9ws8p.js} +7 -7
- package/dist/chunks/{location-1h8se44f.js → skill-5fevf6pk.js} +7 -7
- package/dist/chunks/{location-5m9w47nd.js → skill-5m9w47nd.js} +1 -1
- package/dist/chunks/{location-5t3nmthw.js → skill-5t3nmthw.js} +2 -2
- package/dist/chunks/{location-hzfdd747.js → skill-5wdex9k6.js} +15 -15
- package/dist/chunks/{location-rmg8r6ny.js → skill-6ev121br.js} +9 -9
- package/dist/chunks/{location-6zztp22y.js → skill-6qcjx6jz.js} +43 -43
- package/dist/chunks/{location-6qv3krp1.js → skill-6rgya2y8.js} +18 -18
- package/dist/chunks/{location-6xb47vfp.js → skill-6xb47vfp.js} +1 -1
- package/dist/chunks/{location-xvf4b5tc.js → skill-6xbm3sg4.js} +30 -30
- package/dist/chunks/{location-4vvqa2vj.js → skill-6yj2dbmh.js} +90 -90
- package/dist/chunks/{location-rb6kc9en.js → skill-72tms615.js} +4 -4
- package/dist/chunks/{location-7bmhse3q.js → skill-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-thkbvcgx.js → skill-7my2nqf1.js} +2 -2
- package/dist/chunks/{location-9cwykwg4.js → skill-7n2amz1z.js} +29 -29
- package/dist/chunks/{location-dc34mbvf.js → skill-7nsmwq86.js} +2 -2
- package/dist/chunks/{location-dzt4t18k.js → skill-7wcwbeb7.js} +7 -7
- package/dist/chunks/{location-ds1wy84x.js → skill-806yr8y0.js} +27 -27
- package/dist/chunks/{location-1dvck2a7.js → skill-84h8c373.js} +2 -2
- package/dist/chunks/{location-pnaxc6j9.js → skill-8ank75fn.js} +8 -8
- package/dist/chunks/{location-kf8rbkby.js → skill-8btkd430.js} +31 -31
- package/dist/chunks/{location-8d7r5vzw.js → skill-8d7r5vzw.js} +1 -1
- package/dist/chunks/{location-b4m962yk.js → skill-8es2cp98.js} +22 -22
- package/dist/chunks/{location-1gmkcf0p.js → skill-8fxm663j.js} +9 -9
- package/dist/chunks/{location-h4ckqw4f.js → skill-8hkfkb27.js} +6 -6
- package/dist/chunks/{location-8m6m0r52.js → skill-8m6m0r52.js} +1 -1
- package/dist/chunks/{location-77392vks.js → skill-8m7g8697.js} +8 -8
- package/dist/chunks/{location-w0nqy3aq.js → skill-8qm83tfv.js} +9 -9
- package/dist/chunks/{location-mt74ad40.js → skill-8rhr56bn.js} +7 -7
- package/dist/chunks/{location-r58s4v78.js → skill-8s6c6m5s.js} +11 -11
- package/dist/chunks/{location-asvfb1gz.js → skill-8vhg3hp7.js} +28 -28
- package/dist/chunks/{location-xfgbrct6.js → skill-8yzx13cr.js} +14 -14
- package/dist/chunks/{location-2kw5qtk9.js → skill-99t05100.js} +35 -35
- package/dist/chunks/{location-spvg49p3.js → skill-9aaf7n3g.js} +32 -32
- package/dist/chunks/{location-jph2mfn8.js → skill-9g69dcg6.js} +15 -15
- package/dist/chunks/{location-sws9dtgm.js → skill-9nfy3y9e.js} +6 -6
- package/dist/chunks/{location-p3pp3bgs.js → skill-9pnhsxgt.js} +11 -11
- package/dist/chunks/{location-724avf7x.js → skill-9qtntmk8.js} +15 -15
- package/dist/chunks/{location-bmq95mvw.js → skill-9xn9atma.js} +3 -3
- package/dist/chunks/{location-qr0pk10y.js → skill-9xvep0td.js} +28 -28
- package/dist/chunks/{location-nqxj0yn4.js → skill-9y9sk2j9.js} +2 -2
- package/dist/chunks/{location-2fpnaz5h.js → skill-a46s6kbk.js} +18 -18
- package/dist/chunks/{location-7zz0tb2m.js → skill-a4pr5f9r.js} +326 -320
- package/dist/chunks/{location-a8bn8zg0.js → skill-a8bn8zg0.js} +1 -1
- package/dist/chunks/{location-aaet6srn.js → skill-aaet6srn.js} +2 -2
- package/dist/chunks/{location-addxnjmp.js → skill-addxnjmp.js} +1 -1
- package/dist/chunks/{location-na7ss97r.js → skill-ajgpa6nv.js} +23 -23
- package/dist/chunks/{location-fgkdc7jh.js → skill-aqwwqdgv.js} +10 -10
- package/dist/chunks/{location-arz7hw7x.js → skill-axe3mf62.js} +3 -3
- package/dist/chunks/{location-f2332hgj.js → skill-b3ynb7d3.js} +11 -11
- package/dist/chunks/{location-b6gygkdw.js → skill-b6gygkdw.js} +2 -2
- package/dist/chunks/{location-s1rrpmaa.js → skill-bamgg8ym.js} +31 -31
- package/dist/chunks/{location-1z20pv40.js → skill-bnxmcyee.js} +20 -20
- package/dist/chunks/{location-cp937pt4.js → skill-bp8fbaqn.js} +4 -4
- package/dist/chunks/{location-dhddhhrc.js → skill-bshzcw3h.js} +28 -16
- package/dist/chunks/{location-pbavp9d4.js → skill-c2158jrd.js} +23 -23
- package/dist/chunks/{location-t9xcwzrx.js → skill-c6ew2z36.js} +26 -26
- package/dist/chunks/{location-51f5btjf.js → skill-c8bydgjz.js} +6 -6
- package/dist/chunks/{location-4bar7sar.js → skill-caqpfbyt.js} +26 -26
- package/dist/chunks/{location-t5z5wvj2.js → skill-ctdc98gg.js} +4 -4
- package/dist/chunks/{location-ywcwnstf.js → skill-cx6aas0z.js} +12 -12
- package/dist/chunks/{location-etvz4dq0.js → skill-cytzxkff.js} +17 -17
- package/dist/chunks/{location-t2fc4mz5.js → skill-d216944b.js} +7 -7
- package/dist/chunks/{location-yrcj3v3g.js → skill-d2czbp48.js} +4 -4
- package/dist/chunks/{location-6tyzbyh4.js → skill-d49krybn.js} +15 -15
- package/dist/chunks/{location-qmqgtz8f.js → skill-d4he2qe1.js} +9 -9
- package/dist/chunks/{location-05p4mhbg.js → skill-d7j7my50.js} +9 -9
- package/dist/chunks/{location-zcrspsvn.js → skill-dhmh7aw6.js} +4 -4
- package/dist/chunks/{location-xpg5nf0s.js → skill-dnhkz8s3.js} +26 -26
- package/dist/chunks/{location-02609e96.js → skill-dp6nqh4c.js} +17 -17
- package/dist/chunks/{location-dpkg50ah.js → skill-dpkg50ah.js} +1 -1
- package/dist/chunks/{location-h72xck84.js → skill-dqt5g3hk.js} +24 -24
- package/dist/chunks/{location-ef5x83kb.js → skill-ef5x83kb.js} +1 -1
- package/dist/chunks/{location-22tdpft4.js → skill-ekmt4dkt.js} +20 -20
- package/dist/chunks/{location-efgnm1d6.js → skill-eknnx2sm.js} +12 -12
- package/dist/chunks/{location-mc5akg63.js → skill-ep81cf61.js} +41 -41
- package/dist/chunks/{location-etq0c3wd.js → skill-etq0c3wd.js} +1 -1
- package/dist/chunks/skill-ew6gp286.js +26 -0
- package/dist/chunks/{location-8b345ry2.js → skill-ewdzx310.js} +13 -13
- package/dist/chunks/{location-yjzd8xzf.js → skill-exxr552c.js} +17 -17
- package/dist/chunks/{location-qhqe7njz.js → skill-ez7zp3e7.js} +45 -45
- package/dist/chunks/{location-m46z4pcf.js → skill-ezxbem9w.js} +308 -304
- package/dist/chunks/{location-fzpqnkcj.js → skill-f2k9zecx.js} +1 -1
- package/dist/chunks/{location-4pedpz6c.js → skill-f49cms5k.js} +13 -13
- package/dist/chunks/{location-71az546q.js → skill-f75zav2x.js} +2 -2
- package/dist/chunks/{location-47r5a3mx.js → skill-f86e2e8r.js} +13 -13
- package/dist/chunks/{location-qmxh83kc.js → skill-f8fswb9c.js} +56 -56
- package/dist/chunks/{location-pjvjbv32.js → skill-fa0798qr.js} +11 -11
- package/dist/chunks/{location-mt66mygc.js → skill-fa1arg82.js} +13 -13
- package/dist/chunks/{location-50pnv838.js → skill-fhht6xq8.js} +28 -28
- package/dist/chunks/{location-yb1pbjke.js → skill-fqevmj86.js} +24 -24
- package/dist/chunks/{location-j97mndf0.js → skill-fr1cxyer.js} +6 -6
- package/dist/chunks/{location-ws2bx7td.js → skill-fr2jeztm.js} +3 -3
- package/dist/chunks/{location-83vepgva.js → skill-fredntnj.js} +31 -31
- package/dist/chunks/{location-6t1m34v8.js → skill-g4nx878d.js} +11 -11
- package/dist/chunks/{location-g6z45s58.js → skill-g8d7jebf.js} +18 -18
- package/dist/chunks/{location-gd4qta3r.js → skill-gd4qta3r.js} +1 -1
- package/dist/chunks/{location-ac3dnfkw.js → skill-ggzp6sfs.js} +7 -6
- package/dist/chunks/{location-bem8en1s.js → skill-gjfr9he2.js} +20 -20
- package/dist/chunks/{location-1v9scpnw.js → skill-gqmrynpn.js} +19 -19
- package/dist/chunks/{location-qxp4d2xp.js → skill-gvbf22kd.js} +22 -22
- package/dist/chunks/{location-gy1mt2vm.js → skill-gyfjdbw7.js} +15 -15
- package/dist/chunks/{location-42y5raaz.js → skill-gztrs2mc.js} +10 -10
- package/dist/chunks/{location-geyqfexr.js → skill-h5s09njq.js} +11 -11
- package/dist/chunks/{location-h788nv4n.js → skill-h6pmw8x2.js} +23 -23
- package/dist/chunks/{location-h6vf3j39.js → skill-h6vf3j39.js} +1 -1
- package/dist/chunks/{location-h7s7r6s9.js → skill-h7s7r6s9.js} +2 -2
- package/dist/chunks/{location-zyk1yjk8.js → skill-hdkng2sj.js} +5 -5
- package/dist/chunks/{location-cnwjz3s5.js → skill-hdv0vf09.js} +16 -16
- package/dist/chunks/{location-4b5b0vhn.js → skill-hmmv6qf0.js} +6 -6
- package/dist/chunks/{location-v7yprycd.js → skill-hnvvtk4g.js} +9 -9
- package/dist/chunks/{location-crvcnxkj.js → skill-hv3pvze4.js} +3 -3
- package/dist/chunks/{location-3jpnnrb4.js → skill-j3042cpm.js} +15 -15
- package/dist/chunks/{location-j56e64zr.js → skill-j56e64zr.js} +1 -1
- package/dist/chunks/{location-fsvxdad5.js → skill-j7e2g8sj.js} +4 -4
- package/dist/chunks/{location-3qb0mese.js → skill-j945ts23.js} +4 -4
- package/dist/chunks/{location-y0hnatt9.js → skill-j97ap7b3.js} +11 -11
- package/dist/chunks/{location-m55qy151.js → skill-j9px0aej.js} +10 -10
- package/dist/chunks/{location-57ehm7c4.js → skill-jtvmzzv1.js} +36 -36
- package/dist/chunks/{location-wbt9zsn3.js → skill-jvvc3tfq.js} +9 -9
- package/dist/chunks/{location-5h0p9j5c.js → skill-jzwe082a.js} +5 -5
- package/dist/chunks/{location-py28mc1m.js → skill-k4g4a3k8.js} +9 -9
- package/dist/chunks/{location-f4jsfm31.js → skill-k6zzyzjn.js} +39 -39
- package/dist/chunks/{location-k2v3a0tj.js → skill-k74v33jx.js} +22 -22
- package/dist/chunks/{location-ppc2pnsb.js → skill-kb5tjxj1.js} +4 -4
- package/dist/chunks/{location-9e5bzkjp.js → skill-kb9j3d72.js} +3 -3
- package/dist/chunks/{location-m3fdjcah.js → skill-m3fdjcah.js} +1 -1
- package/dist/chunks/{location-283v9wt3.js → skill-m6vfs9yf.js} +15 -15
- package/dist/chunks/{location-qww9nh48.js → skill-m8nz4hq1.js} +46 -46
- package/dist/chunks/{location-m9w0rfyh.js → skill-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-np6bm2as.js → skill-mb0ms3nf.js} +4 -4
- package/dist/chunks/{location-257vwa0c.js → skill-msyhh0fb.js} +23 -23
- package/dist/chunks/{location-4zxfccqq.js → skill-n3dgsn25.js} +9 -9
- package/dist/chunks/{location-xn2v0njk.js → skill-n6jn037m.js} +11 -11
- package/dist/chunks/skill-n95b3jav.js +18 -0
- package/dist/chunks/{location-7am7j62s.js → skill-nh8j4n7v.js} +9 -9
- package/dist/chunks/{location-t7cpp3m0.js → skill-nqvbngtv.js} +3 -3
- package/dist/chunks/{location-essarsw2.js → skill-nw07r3nn.js} +35 -35
- package/dist/chunks/{location-ta6y1msd.js → skill-p3sjvsty.js} +74 -74
- package/dist/chunks/{location-xpt096d7.js → skill-p8y6aqjf.js} +5 -5
- package/dist/chunks/{location-c5g770ce.js → skill-pacyqc5f.js} +8 -8
- package/dist/chunks/{location-t6wbbrfa.js → skill-phyzxvmd.js} +25 -25
- package/dist/chunks/{location-j8s9ab9g.js → skill-pjsqfx9m.js} +3 -3
- package/dist/chunks/{location-pjvnvgmy.js → skill-pjvnvgmy.js} +1 -1
- package/dist/chunks/{location-pknna89w.js → skill-pknna89w.js} +1 -1
- package/dist/chunks/{location-x2tcbxjk.js → skill-pnp2bzmq.js} +35 -35
- package/dist/chunks/{location-15xcwm9t.js → skill-pp12reev.js} +1 -1
- package/dist/chunks/{location-q0xm7vwc.js → skill-q0xm7vwc.js} +2 -2
- package/dist/chunks/{location-c26ps2t9.js → skill-q3n416rm.js} +14 -14
- package/dist/chunks/{location-ffa51ey5.js → skill-q6y5a10k.js} +5 -5
- package/dist/chunks/{location-8y8dfhw6.js → skill-q9cf9tqe.js} +11 -11
- package/dist/chunks/{location-nxpp2y2e.js → skill-qg49b3cx.js} +12 -12
- package/dist/chunks/{location-qnc92qwc.js → skill-qnc92qwc.js} +1 -1
- package/dist/chunks/{location-24skg3e0.js → skill-qpj0be80.js} +20 -20
- package/dist/chunks/{location-zdw14zwb.js → skill-qs3fcyw9.js} +9 -9
- package/dist/chunks/{location-qsdy395h.js → skill-qsdy395h.js} +1 -1
- package/dist/chunks/{location-k58rqv26.js → skill-qyy35tkn.js} +11 -11
- package/dist/chunks/{location-7yh4e7ss.js → skill-r5x6zcsm.js} +3 -3
- package/dist/chunks/{location-rdw6cm16.js → skill-rdw6cm16.js} +1 -1
- package/dist/chunks/{location-9t7a50xb.js → skill-rhjbct0v.js} +4 -4
- package/dist/chunks/{location-smz349yv.js → skill-rsydsym6.js} +34 -34
- package/dist/chunks/{location-7z0vcwsq.js → skill-rt6zmwqx.js} +10 -10
- package/dist/chunks/{location-wb7mg7fb.js → skill-rwkhrqfs.js} +8 -8
- package/dist/chunks/{location-7wpc5jwh.js → skill-ryhvpn5p.js} +13 -13
- package/dist/chunks/{location-y4eq9c7t.js → skill-ryrzae8t.js} +10 -10
- package/dist/chunks/{location-0t098hqn.js → skill-sfkj0ta1.js} +5 -5
- package/dist/chunks/{location-922xc4bs.js → skill-sk99bxzn.js} +16 -16
- package/dist/chunks/{location-k70p9jzb.js → skill-srq8z0b0.js} +9 -9
- package/dist/chunks/{location-xpfnkknw.js → skill-t1kwx79t.js} +32 -32
- package/dist/chunks/{location-by659cs7.js → skill-t4aysb4r.js} +16 -16
- package/dist/chunks/{location-tazgh4e4.js → skill-tazgh4e4.js} +1 -1
- package/dist/chunks/{location-tcezcvh9.js → skill-tcezcvh9.js} +1 -1
- package/dist/chunks/{location-tdstcens.js → skill-tdstcens.js} +1 -1
- package/dist/chunks/{location-tz3m3brz.js → skill-tg800t2p.js} +8 -8
- package/dist/chunks/{location-73gdyt7p.js → skill-tnc5t1gf.js} +22 -22
- package/dist/chunks/{location-44rac60e.js → skill-tp1xemq3.js} +11 -11
- package/dist/chunks/{location-pa8pe2x7.js → skill-tpw6cwsb.js} +8 -8
- package/dist/chunks/{location-v0es1rhs.js → skill-v0es1rhs.js} +2 -2
- package/dist/chunks/{location-7fyyg3d8.js → skill-v41s5yqp.js} +11 -11
- package/dist/chunks/{location-r5atvkz9.js → skill-v8xkm7fr.js} +8 -8
- package/dist/chunks/{location-veqvce7d.js → skill-veqvce7d.js} +1 -1
- package/dist/chunks/{location-m9an57nd.js → skill-vqv4cs72.js} +11 -11
- package/dist/chunks/{location-vzs5sf6e.js → skill-vzs5sf6e.js} +1 -1
- package/dist/chunks/{location-84txncab.js → skill-w1eejvng.js} +5 -5
- package/dist/chunks/{location-mye8z46x.js → skill-w23m87nk.js} +17 -17
- package/dist/chunks/{location-eba7m2bv.js → skill-w30nb1yc.js} +16 -16
- package/dist/chunks/{location-4xpgt2w9.js → skill-w39jehkq.js} +5 -5
- package/dist/chunks/{location-w3wsvvr9.js → skill-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-mq882t6m.js → skill-w4685zgx.js} +13 -13
- package/dist/chunks/{location-enppsyr8.js → skill-w8pg63ym.js} +1 -1
- package/dist/chunks/{location-xs12am9p.js → skill-was7srj9.js} +8 -8
- package/dist/chunks/{location-qh3vb1tn.js → skill-wbt93eb0.js} +5 -5
- package/dist/chunks/{location-wd87259q.js → skill-wd87259q.js} +1 -1
- package/dist/chunks/{location-yx4j6h9t.js → skill-wg5wmzb0.js} +88 -88
- package/dist/chunks/{location-ermxvwhp.js → skill-wj76ss2k.js} +4 -4
- package/dist/chunks/{location-ep4m400e.js → skill-wzyrkyja.js} +23 -23
- package/dist/chunks/{location-1ts7y3cx.js → skill-x4q7srnc.js} +11 -11
- package/dist/chunks/{location-p0cpcvwn.js → skill-x63k85f5.js} +15 -15
- package/dist/chunks/{location-1v74vwhm.js → skill-x80v0bpa.js} +15 -15
- package/dist/chunks/{location-ge2jb4mz.js → skill-xcajktjp.js} +15 -15
- package/dist/chunks/{location-tnr8ce74.js → skill-xfkhnva0.js} +33 -33
- package/dist/chunks/{location-3xqh13de.js → skill-xqrmy91b.js} +6 -6
- package/dist/chunks/{location-h2xnf45v.js → skill-xr3t68eq.js} +18 -18
- package/dist/chunks/{location-v9tbcfk2.js → skill-xrdh4s04.js} +13 -13
- package/dist/chunks/{location-n7yx15r7.js → skill-xrv71jf0.js} +5 -5
- package/dist/chunks/{location-qxjc9qry.js → skill-xyafkbt0.js} +3 -3
- package/dist/chunks/{location-pnzf6mjf.js → skill-xybefm6f.js} +1 -1
- package/dist/chunks/{location-y1fvbwt7.js → skill-y1fvbwt7.js} +1 -1
- package/dist/chunks/{location-y56ehv6b.js → skill-y56ehv6b.js} +2 -2
- package/dist/chunks/{location-hpfvhvya.js → skill-y72zmemf.js} +8 -8
- package/dist/chunks/{location-zzz4tyg8.js → skill-ydz57f2j.js} +29 -29
- package/dist/chunks/{location-z8nhrpf5.js → skill-ygyswz88.js} +26 -26
- package/dist/chunks/{location-1acjjqhc.js → skill-yp2x3t23.js} +4 -4
- package/dist/chunks/{location-z0bkrqjs.js → skill-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-f2mw6jyj.js → skill-z5pcptfa.js} +11 -11
- package/dist/chunks/{location-das60bkc.js → skill-z6pwme65.js} +14 -14
- package/dist/chunks/{location-nyqx1cb3.js → skill-zd30eb5w.js} +5 -5
- package/dist/chunks/{location-t9ew0xaf.js → skill-zfa7ynd8.js} +15 -15
- package/dist/chunks/{location-wt19589t.js → skill-zkbzm8m2.js} +6 -6
- package/dist/chunks/{location-zr2ceqn5.js → skill-zr2ceqn5.js} +1 -1
- package/dist/chunks/{location-sdq79vbt.js → skill-zwq0tthq.js} +28 -28
- package/dist/chunks/{location-1g5f91mn.js → skill-zx3dt1g9.js} +42 -42
- package/dist/chunks/{location-zxq2ej10.js → skill-zxq2ej10.js} +1 -1
- package/dist/chunks/{location-6hcrkmvd.js → skill-zz8g2j7n.js} +9 -9
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +86 -86
- package/dist/config/discovery.js +83 -83
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +100 -100
- package/dist/config/plugin/agent.js +117 -117
- package/dist/config/plugin/command.js +206 -206
- 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 +118 -118
- package/dist/config/plugin/image.js +117 -117
- package/dist/config/plugin/instruction.js +91 -91
- package/dist/config/plugin/location-watcher.js +117 -117
- package/dist/config/plugin/mcp.js +124 -124
- package/dist/config/plugin/policy.js +118 -118
- package/dist/config/plugin/provider.js +115 -115
- package/dist/config/plugin/reference.js +119 -119
- package/dist/config/plugin/shell.js +117 -117
- package/dist/config/plugin/skill-file.js +103 -103
- package/dist/config/plugin/skill.js +136 -136
- package/dist/config/plugin/snapshot.js +117 -117
- package/dist/config/plugin/source.js +114 -114
- package/dist/config/plugin/tool-output.js +118 -118
- package/dist/config/plugin/websearch.js +114 -114
- package/dist/config/plugin/worktree.js +119 -119
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +122 -122
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +76 -76
- package/dist/database/database.js +71 -71
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration.gen.js +50 -50
- package/dist/database/migration.js +52 -52
- 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 +80 -80
- 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 +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +94 -94
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +94 -94
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +75 -75
- package/dist/file-access.js +105 -105
- package/dist/file-mutation.js +95 -95
- 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 +219 -219
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +104 -104
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +101 -101
- package/dist/form.js +75 -75
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +88 -88
- package/dist/generate.js +100 -100
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +92 -92
- 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 +357 -357
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +88 -88
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +80 -80
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +74 -74
- package/dist/location-activity.js +133 -133
- package/dist/location-lifecycle.js +108 -108
- package/dist/location-service-map.js +85 -85
- package/dist/location-services.js +354 -354
- package/dist/location.js +84 -84
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +92 -92
- package/dist/mcp/index.js +102 -102
- package/dist/mcp/instructions.js +128 -128
- package/dist/mcp/oauth.js +79 -79
- package/dist/mcp/stdio.js +91 -91
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +92 -92
- package/dist/model-resolver.js +99 -99
- package/dist/model.js +103 -103
- package/dist/models-dev.js +108 -108
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +83 -83
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +110 -110
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +79 -79
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +76 -76
- package/dist/plugin/agent.js +75 -75
- package/dist/plugin/command.js +101 -101
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +214 -214
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +329 -329
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +97 -97
- package/dist/plugin/module.js +116 -116
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +103 -103
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +91 -91
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +95 -95
- package/dist/plugin/provider/cloudflare-ai-gateway.js +114 -114
- package/dist/plugin/provider/cloudflare-workers-ai.js +115 -115
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +113 -113
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +94 -94
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +96 -96
- package/dist/plugin/provider/gitlab.js +94 -94
- package/dist/plugin/provider/google-vertex.js +114 -114
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +79 -79
- package/dist/plugin/provider/lmstudio.js +117 -117
- package/dist/plugin/provider/local.js +114 -114
- package/dist/plugin/provider/modal.js +93 -93
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +117 -117
- package/dist/plugin/provider/openai.js +94 -94
- package/dist/plugin/provider/opencode.js +98 -98
- package/dist/plugin/provider/openrouter.js +92 -92
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +80 -80
- package/dist/plugin/provider/prompt-cache-key.js +91 -91
- package/dist/plugin/provider/sap-ai-core.js +92 -92
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +116 -116
- package/dist/plugin/provider/vercel.js +91 -91
- package/dist/plugin/provider/vllm.js +117 -117
- package/dist/plugin/provider/xai.js +92 -92
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +159 -159
- package/dist/plugin/sdk.js +75 -75
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +135 -135
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +344 -344
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +2 -2
- package/dist/plugin/vcs/git.js +87 -87
- package/dist/plugin/vcs/hg.js +87 -87
- package/dist/plugin/verbosity.js +94 -94
- package/dist/plugin/warming.js +115 -115
- 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 +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 +217 -217
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +85 -85
- package/dist/provider.js +92 -92
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +92 -92
- package/dist/reference/instructions.js +86 -86
- package/dist/reference.js +92 -92
- package/dist/repository-cache.js +82 -82
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +96 -96
- package/dist/rpc.js +87 -87
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +75 -75
- package/dist/session/compaction.js +134 -134
- package/dist/session/context.js +154 -154
- package/dist/session/diff.js +89 -89
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +218 -218
- package/dist/session/execution.js +126 -126
- package/dist/session/generate.js +153 -153
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +89 -89
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +80 -80
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +98 -98
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +119 -119
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +87 -87
- package/dist/session/prompt.js +106 -106
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +91 -91
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +225 -225
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +99 -99
- package/dist/session/runner/publish-llm-event.js +114 -114
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +124 -124
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +163 -163
- package/dist/session/shell.js +131 -131
- package/dist/session/skill.js +104 -104
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +76 -76
- package/dist/session/store.js +88 -88
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +206 -204
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +156 -156
- package/dist/session/to-session-error.js +112 -112
- package/dist/session/transfer.js +217 -217
- package/dist/session/usage.js +1 -1
- package/dist/session.js +208 -208
- 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 +9 -9
- package/dist/shell.js +133 -133
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +108 -108
- package/dist/skill.js +113 -113
- package/dist/snapshot.js +90 -90
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +125 -125
- package/dist/tool/plugin/edit.js +121 -121
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +123 -123
- package/dist/tool/plugin/grep.js +125 -125
- package/dist/tool/plugin/mcp-resource.js +118 -118
- package/dist/tool/plugin/opencode.js +110 -110
- package/dist/tool/plugin/patch.js +123 -123
- package/dist/tool/plugin/question.js +102 -102
- package/dist/tool/plugin/read.js +126 -126
- package/dist/tool/plugin/shell.js +209 -209
- package/dist/tool/plugin/skill.js +114 -114
- package/dist/tool/plugin/subagent.js +213 -213
- package/dist/tool/plugin/webfetch.js +111 -111
- package/dist/tool/plugin/websearch.js +113 -113
- package/dist/tool/plugin/write.js +121 -121
- package/dist/tool/read-filesystem.js +101 -101
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +12 -12
- package/dist/types/config/plugin/command.d.ts +2 -1
- package/dist/types/plugin/internal.d.ts +3 -2
- package/dist/types/session/subagent-job.d.ts +8 -4
- package/dist/types/tool/plugin/subagent.d.ts +2 -1
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +93 -93
- package/dist/v1/config/permission.js +1 -1
- 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 +94 -94
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +90 -90
- package/dist/websearch.js +83 -83
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +82 -82
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +79 -79
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +90 -90
- package/dist/worktree.js +97 -97
- package/package.json +8 -8
- package/dist/chunks/location-0gzjc7ft.js +0 -253
- package/dist/chunks/location-1fq0wp1e.js +0 -26
- package/dist/chunks/location-dxj72tfx.js +0 -18
- /package/dist/chunks/{location-0qkdqm5v.js → skill-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-0zkw76rk.js → skill-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-17cy0kzp.js → skill-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-1cnp2v09.js → skill-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-1kg9ymc8.js → skill-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{location-24dcb14g.js → skill-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-2710q6r3.js → skill-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-2axfhc9x.js → skill-2axfhc9x.js} +0 -0
- /package/dist/chunks/{location-2c3vjs8z.js → skill-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-34c7v6d4.js → skill-34c7v6d4.js} +0 -0
- /package/dist/chunks/{location-359p4xyc.js → skill-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-3asan66x.js → skill-3asan66x.js} +0 -0
- /package/dist/chunks/{location-3t0ybcrp.js → skill-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{location-3v8g72cx.js → skill-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-3w5fmr99.js → skill-3w5fmr99.js} +0 -0
- /package/dist/chunks/{location-3wcehsnq.js → skill-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-43n2bw4t.js → skill-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-4knz6hnm.js → skill-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-4vcrnpx2.js → skill-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-4y7fprxs.js → skill-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-53557ph1.js → skill-53557ph1.js} +0 -0
- /package/dist/chunks/{location-550bvhaj.js → skill-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-5qd3pb7m.js → skill-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{location-6prwharc.js → skill-6prwharc.js} +0 -0
- /package/dist/chunks/{location-6q2bdcd1.js → skill-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{location-7akdwqpd.js → skill-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-7m9af43g.js → skill-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-822emrt2.js → skill-822emrt2.js} +0 -0
- /package/dist/chunks/{location-84wd9syh.js → skill-84wd9syh.js} +0 -0
- /package/dist/chunks/{location-88xbtdfr.js → skill-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-8n3pysct.js → skill-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-8wj87zfr.js → skill-8wj87zfr.js} +0 -0
- /package/dist/chunks/{location-9a4afbnw.js → skill-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-9rqn6x4v.js → skill-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-a6k6eb26.js → skill-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-af5trqkr.js → skill-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-afrmfg78.js → skill-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-aqzs7mqg.js → skill-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-atq7p7m5.js → skill-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-bkyjaxrp.js → skill-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-bmr6ed5q.js → skill-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-bw78ga2c.js → skill-bw78ga2c.js} +0 -0
- /package/dist/chunks/{location-cf4snx6d.js → skill-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-cvy3z8tj.js → skill-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-d9fn303g.js → skill-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-d9jj8t3e.js → skill-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-dajrwvna.js → skill-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-dap0rakb.js → skill-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-df08tz66.js → skill-df08tz66.js} +0 -0
- /package/dist/chunks/{location-dy18nga0.js → skill-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-e5kj55wp.js → skill-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-e73j6tqm.js → skill-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-ec1grn59.js → skill-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-eh3zwz77.js → skill-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-emrn6kk6.js → skill-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-f0mxakyp.js → skill-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-f6n9ztr4.js → skill-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-faypxj3z.js → skill-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-fd410y7t.js → skill-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-fxgpk5d8.js → skill-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{location-g4wezp1m.js → skill-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-g86h250q.js → skill-g86h250q.js} +0 -0
- /package/dist/chunks/{location-gebd4c9n.js → skill-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-gftt206x.js → skill-gftt206x.js} +0 -0
- /package/dist/chunks/{location-hk9envan.js → skill-hk9envan.js} +0 -0
- /package/dist/chunks/{location-j2ntwpah.js → skill-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-j5zkgpj8.js → skill-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-jjkms2e6.js → skill-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-jr7sbwjy.js → skill-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-jwfs4k6c.js → skill-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-jzg6c2d5.js → skill-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-mp448xyj.js → skill-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-msx8hqn2.js → skill-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-n05xt0ee.js → skill-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-n3j8tn72.js → skill-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-njntx4h6.js → skill-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-q3sfg36h.js → skill-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-q74kybfr.js → skill-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-qaymkmh1.js → skill-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-qb87gjwd.js → skill-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-qfa1cgps.js → skill-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-qg3g05ea.js → skill-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-qrg20bc0.js → skill-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-rcb2kzg1.js → skill-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-sdp7kfr6.js → skill-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-ssg3fenm.js → skill-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-ve7vex1e.js → skill-ve7vex1e.js} +0 -0
- /package/dist/chunks/{location-w803qqfp.js → skill-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-wc3fc9cn.js → skill-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-wer8tq1h.js → skill-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-wtztk69x.js → skill-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-x0ckcb58.js → skill-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-x61499pn.js → skill-x61499pn.js} +0 -0
- /package/dist/chunks/{location-y44na4kk.js → skill-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-y8cydn3q.js → skill-y8cydn3q.js} +0 -0
- /package/dist/chunks/{location-y8f7s663.js → skill-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-ygaqb7jw.js → skill-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-ym463w8f.js → skill-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-z5v4ffb3.js → skill-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{location-z9919s4g.js → skill-z9919s4g.js} +0 -0
|
@@ -1,27 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service84,
|
|
3
|
+
node88
|
|
4
|
+
} from "./skill-t4aysb4r.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./skill-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
10
|
key2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./skill-addxnjmp.js";
|
|
12
12
|
import {
|
|
13
13
|
ID14,
|
|
14
|
-
|
|
14
|
+
Service78,
|
|
15
15
|
node81,
|
|
16
16
|
Event18
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./skill-a46s6kbk.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
Service81,
|
|
20
20
|
node84
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./skill-ryhvpn5p.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./skill-9rqn6x4v.js";
|
|
25
|
+
|
|
26
|
+
// src/aisdk-native.ts
|
|
27
|
+
var exports_aisdk_native = {};
|
|
28
|
+
__export(exports_aisdk_native, {
|
|
29
|
+
AISDKNative: () => exports_aisdk_native,
|
|
30
|
+
native: () => native2,
|
|
31
|
+
rewrite: () => rewrite2
|
|
32
|
+
});
|
|
33
|
+
import { Effect as Effect2, Option as Option2, Schema as Schema2, Struct as Struct2 } from "effect";
|
|
25
34
|
|
|
26
35
|
// src/provider.ts
|
|
27
36
|
var exports_provider3 = {};
|
|
@@ -35,7 +44,7 @@ __export(exports_provider3, {
|
|
|
35
44
|
LoadError: () => LoadError3,
|
|
36
45
|
Provider: () => exports_provider3,
|
|
37
46
|
Request: () => Request3,
|
|
38
|
-
Service: () =>
|
|
47
|
+
Service: () => Service77,
|
|
39
48
|
Settings: () => Settings2,
|
|
40
49
|
Transport: () => Transport2,
|
|
41
50
|
aisdk: () => aisdk2,
|
|
@@ -50,7 +59,7 @@ __export(exports_provider3, {
|
|
|
50
59
|
timeout: () => timeout2,
|
|
51
60
|
timeouts: () => timeouts2
|
|
52
61
|
});
|
|
53
|
-
import { Context, Effect
|
|
62
|
+
import { Context, Effect, Layer, Option, Schema, Stream, Struct } from "effect";
|
|
54
63
|
import { Provider } from "@opencode/schema/provider";
|
|
55
64
|
import { Model } from "@opencode/schema/model";
|
|
56
65
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -59,268 +68,6 @@ import { isRecord } from "@opencode/ai/utils/record";
|
|
|
59
68
|
import { importModule, resolveModule } from "@opencode/util/runtime-import";
|
|
60
69
|
import { Credential } from "@opencode/schema/credential";
|
|
61
70
|
import { freeze } from "immer";
|
|
62
|
-
|
|
63
|
-
// src/aisdk-native.ts
|
|
64
|
-
var exports_aisdk_native = {};
|
|
65
|
-
__export(exports_aisdk_native, {
|
|
66
|
-
AISDKNative: () => exports_aisdk_native,
|
|
67
|
-
native: () => native2,
|
|
68
|
-
rewrite: () => rewrite2
|
|
69
|
-
});
|
|
70
|
-
import { Effect, Option, Schema, Struct } from "effect";
|
|
71
|
-
function rewrite2(target, input) {
|
|
72
|
-
if (input.specifier === undefined)
|
|
73
|
-
return;
|
|
74
|
-
const plain = resolve(input.specifier, input);
|
|
75
|
-
if (!plain)
|
|
76
|
-
return;
|
|
77
|
-
const settings = decode(target.settings ?? {});
|
|
78
|
-
const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
|
|
79
|
-
const translated = options(replacement, input.modelID, settings);
|
|
80
|
-
if (target.package !== undefined || replacement !== input.specifier)
|
|
81
|
-
target.package = replacement;
|
|
82
|
-
target.settings = target.settings === undefined ? undefined : {
|
|
83
|
-
...translated.settings,
|
|
84
|
-
...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
|
|
85
|
-
};
|
|
86
|
-
target.headers = mergeHeaders2(translated.headers, target.headers);
|
|
87
|
-
target.body = mergeOverlay2(translated.body, target.body);
|
|
88
|
-
target.variants = target.variants?.map((variant) => {
|
|
89
|
-
const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
|
|
90
|
-
const headers = mergeHeaders2(overlay.headers, variant.headers);
|
|
91
|
-
const body = mergeOverlay2(overlay.body, variant.body);
|
|
92
|
-
return {
|
|
93
|
-
id: variant.id,
|
|
94
|
-
...variant.settings === undefined ? {} : { settings: overlay.settings },
|
|
95
|
-
...headers === undefined ? {} : { headers },
|
|
96
|
-
...body === undefined ? {} : { body }
|
|
97
|
-
};
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
var PACKAGES = {
|
|
101
|
-
"@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
|
|
102
|
-
"@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
|
|
103
|
-
"@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
|
|
104
|
-
"@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
|
|
105
|
-
"@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
|
|
106
|
-
"@ai-sdk/cohere": "@opencode/ai/providers/cohere",
|
|
107
|
-
"@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
|
|
108
|
-
"@ai-sdk/google": "@opencode/ai/providers/google",
|
|
109
|
-
"@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
|
|
110
|
-
"@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
|
|
111
|
-
"@ai-sdk/groq": "@opencode/ai/providers/groq",
|
|
112
|
-
"@ai-sdk/mistral": "@opencode/ai/providers/mistral",
|
|
113
|
-
"@ai-sdk/openai": "@opencode/ai/providers/openai",
|
|
114
|
-
"@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
|
|
115
|
-
"@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
|
|
116
|
-
"@ai-sdk/xai": "@opencode/ai/providers/xai",
|
|
117
|
-
"@ai-sdk/gateway": "@opencode/ai/providers/vercel-ai-gateway",
|
|
118
|
-
"@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
|
|
119
|
-
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
120
|
-
"venice-ai-sdk-provider": "@opencode/ai/providers/venice"
|
|
121
|
-
};
|
|
122
|
-
var protocols = (name) => ({
|
|
123
|
-
"@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
|
|
124
|
-
"@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
|
|
125
|
-
"@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
|
|
126
|
-
});
|
|
127
|
-
var HOSTS = {
|
|
128
|
-
alibaba: protocols("alibaba"),
|
|
129
|
-
"alibaba-cn": protocols("alibaba"),
|
|
130
|
-
"alibaba-coding-plan": protocols("alibaba"),
|
|
131
|
-
"alibaba-coding-plan-cn": protocols("alibaba"),
|
|
132
|
-
"alibaba-token-plan": protocols("alibaba"),
|
|
133
|
-
"alibaba-token-plan-cn": protocols("alibaba"),
|
|
134
|
-
baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
|
|
135
|
-
"cloudflare-ai-gateway": {
|
|
136
|
-
"@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
137
|
-
"@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
138
|
-
"@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
139
|
-
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
140
|
-
},
|
|
141
|
-
cohere: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cohere/chat" },
|
|
142
|
-
"cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
|
|
143
|
-
deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
|
|
144
|
-
digitalocean: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/digitalocean" },
|
|
145
|
-
"fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
|
|
146
|
-
"google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
|
|
147
|
-
"kimi-for-coding": protocols("moonshot"),
|
|
148
|
-
meta: protocols("meta"),
|
|
149
|
-
minimax: protocols("minimax"),
|
|
150
|
-
"minimax-cn": protocols("minimax"),
|
|
151
|
-
"minimax-coding-plan": protocols("minimax"),
|
|
152
|
-
"minimax-cn-coding-plan": protocols("minimax"),
|
|
153
|
-
moonshotai: protocols("moonshot"),
|
|
154
|
-
"moonshotai-cn": protocols("moonshot"),
|
|
155
|
-
zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
156
|
-
"zai-coding-plan": protocols("zai-coding-plan"),
|
|
157
|
-
zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
158
|
-
"zhipuai-coding-plan": protocols("zai-coding-plan")
|
|
159
|
-
};
|
|
160
|
-
var NATIVE = new Set([
|
|
161
|
-
...Object.values(PACKAGES),
|
|
162
|
-
...Object.values(HOSTS).flatMap((host) => Object.values(host)),
|
|
163
|
-
"@opencode/ai/providers/azure/chat",
|
|
164
|
-
"@opencode/ai/providers/amazon-bedrock/mantle",
|
|
165
|
-
"@opencode/ai/providers/amazon-bedrock/mantle/chat",
|
|
166
|
-
"@opencode/ai/providers/amazon-bedrock/mantle/responses"
|
|
167
|
-
]);
|
|
168
|
-
function native2(npm, context) {
|
|
169
|
-
const host = HOSTS[context.providerID]?.[npm];
|
|
170
|
-
if (host)
|
|
171
|
-
return host;
|
|
172
|
-
if (npm === "@ai-sdk/amazon-bedrock/mantle")
|
|
173
|
-
return mantle(context.modelID);
|
|
174
|
-
if (npm === "@ai-sdk/azure" && azureChat(context))
|
|
175
|
-
return "@opencode/ai/providers/azure/chat";
|
|
176
|
-
return PACKAGES[npm];
|
|
177
|
-
}
|
|
178
|
-
var azureChat = (context) => context.shape === "completions" || context.settings?.useCompletionUrls === true;
|
|
179
|
-
var mantle = (modelID) => {
|
|
180
|
-
if (modelID === undefined)
|
|
181
|
-
return "@opencode/ai/providers/amazon-bedrock/mantle";
|
|
182
|
-
return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
|
|
183
|
-
};
|
|
184
|
-
function resolve(specifier, context) {
|
|
185
|
-
const npm = packageName2(specifier);
|
|
186
|
-
if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
|
|
187
|
-
return native2(npm, context);
|
|
188
|
-
if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
|
|
189
|
-
return mantle(context.modelID);
|
|
190
|
-
if (npm === "@opencode/ai/providers/azure/responses" && azureChat(context))
|
|
191
|
-
return "@opencode/ai/providers/azure/chat";
|
|
192
|
-
return NATIVE.has(npm) ? npm : undefined;
|
|
193
|
-
}
|
|
194
|
-
function options(replacement, modelID, settings) {
|
|
195
|
-
const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
|
|
196
|
-
const kept = Struct.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
|
|
197
|
-
const thinking = converse ? bedrockThinking(modelID, settings) : undefined;
|
|
198
|
-
return {
|
|
199
|
-
settings: {
|
|
200
|
-
...replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
|
|
201
|
-
...thinking === undefined ? {} : { thinking }
|
|
202
|
-
},
|
|
203
|
-
...settings.headers === undefined ? {} : { headers: settings.headers },
|
|
204
|
-
...settings.extraBody === undefined ? {} : { body: settings.extraBody },
|
|
205
|
-
...converse ? bedrockRequest(modelID, settings) : {},
|
|
206
|
-
...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
var BEDROCK_KEYS = [
|
|
210
|
-
"bearerToken",
|
|
211
|
-
"endpoint",
|
|
212
|
-
"credentials",
|
|
213
|
-
"credentialProvider",
|
|
214
|
-
"accessKeyId",
|
|
215
|
-
"secretAccessKey",
|
|
216
|
-
"sessionToken"
|
|
217
|
-
];
|
|
218
|
-
var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
|
|
219
|
-
function bedrockSettings(settings, converse) {
|
|
220
|
-
const region = settings.region ?? settings.credentials?.region;
|
|
221
|
-
const credentials = settings.credentials ?? settings;
|
|
222
|
-
const baseURL = settings.baseURL ?? settings.endpoint;
|
|
223
|
-
return {
|
|
224
|
-
...Struct.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
|
|
225
|
-
...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
|
|
226
|
-
...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
|
|
227
|
-
...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
|
|
228
|
-
credentials: {
|
|
229
|
-
...region === undefined ? {} : { region },
|
|
230
|
-
accessKeyId: credentials.accessKeyId,
|
|
231
|
-
secretAccessKey: credentials.secretAccessKey,
|
|
232
|
-
...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
function bedrockThinking(modelID, settings) {
|
|
238
|
-
const reasoning = settings.reasoningConfig;
|
|
239
|
-
if (!modelID?.includes("anthropic") || reasoning?.type !== "enabled" || reasoning.budgetTokens === undefined)
|
|
240
|
-
return;
|
|
241
|
-
return { type: "enabled", budgetTokens: reasoning.budgetTokens };
|
|
242
|
-
}
|
|
243
|
-
function bedrockRequest(modelID, settings) {
|
|
244
|
-
const additional = settings.additionalModelRequestFields ?? {};
|
|
245
|
-
const reasoning = settings.reasoningConfig;
|
|
246
|
-
const anthropic = modelID?.includes("anthropic") ?? false;
|
|
247
|
-
const openai = modelID?.includes("openai.") ?? false;
|
|
248
|
-
const harmony = modelID?.includes("openai.gpt-oss") ?? false;
|
|
249
|
-
const effort = reasoning?.maxReasoningEffort;
|
|
250
|
-
const type = reasoning?.type;
|
|
251
|
-
const budget = reasoning?.budgetTokens;
|
|
252
|
-
const display = reasoning?.display;
|
|
253
|
-
const betas = settings.anthropicBeta ?? [];
|
|
254
|
-
const fields = mergeOverlay2(additional, {
|
|
255
|
-
...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
|
|
256
|
-
...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
|
|
257
|
-
...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
|
|
258
|
-
...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
|
|
259
|
-
...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
|
|
260
|
-
...!anthropic && !openai && effort !== undefined ? {
|
|
261
|
-
reasoningConfig: {
|
|
262
|
-
...type === undefined || type === "adaptive" ? {} : { type },
|
|
263
|
-
...budget === undefined ? {} : { budgetTokens: budget },
|
|
264
|
-
maxReasoningEffort: effort
|
|
265
|
-
}
|
|
266
|
-
} : {}
|
|
267
|
-
});
|
|
268
|
-
const body = {
|
|
269
|
-
...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
|
|
270
|
-
...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
|
|
271
|
-
};
|
|
272
|
-
return Object.keys(body).length === 0 ? {} : { body };
|
|
273
|
-
}
|
|
274
|
-
var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
|
|
275
|
-
function openRouterRequest(settings) {
|
|
276
|
-
const headers = mergeHeaders2({
|
|
277
|
-
...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
|
|
278
|
-
...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
|
|
279
|
-
...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
|
|
280
|
-
}, settings.headers) ?? {};
|
|
281
|
-
return Object.keys(headers).length === 0 ? {} : { headers };
|
|
282
|
-
}
|
|
283
|
-
var lenient = (schema) => Schema.optional(Schema.UndefinedOr(schema).pipe(Schema.catchDecoding(() => Effect.succeed(Option.some(undefined)))));
|
|
284
|
-
var Credentials = Schema.Struct({
|
|
285
|
-
accessKeyId: Schema.String,
|
|
286
|
-
secretAccessKey: Schema.String,
|
|
287
|
-
sessionToken: lenient(Schema.String),
|
|
288
|
-
region: lenient(Schema.String)
|
|
289
|
-
});
|
|
290
|
-
var Legacy = Schema.StructWithRest(Schema.Struct({
|
|
291
|
-
apiKey: lenient(Schema.String),
|
|
292
|
-
baseURL: lenient(Schema.String),
|
|
293
|
-
headers: lenient(Schema.Record(Schema.String, Schema.String)),
|
|
294
|
-
extraBody: lenient(Schema.Record(Schema.String, Schema.Unknown)),
|
|
295
|
-
useCompletionUrls: lenient(Schema.Boolean),
|
|
296
|
-
auth: lenient(Schema.Literals(["bearer", "sigv4"])),
|
|
297
|
-
bearerToken: lenient(Schema.String),
|
|
298
|
-
endpoint: lenient(Schema.String),
|
|
299
|
-
region: lenient(Schema.String),
|
|
300
|
-
credentials: lenient(Credentials),
|
|
301
|
-
accessKeyId: lenient(Schema.String),
|
|
302
|
-
secretAccessKey: lenient(Schema.String),
|
|
303
|
-
sessionToken: lenient(Schema.String),
|
|
304
|
-
anthropicBeta: lenient(Schema.Array(Schema.String)),
|
|
305
|
-
serviceTier: lenient(Schema.String),
|
|
306
|
-
reasoningConfig: lenient(Schema.Struct({
|
|
307
|
-
type: lenient(Schema.String),
|
|
308
|
-
display: lenient(Schema.String),
|
|
309
|
-
maxReasoningEffort: lenient(Schema.String),
|
|
310
|
-
budgetTokens: lenient(Schema.Number)
|
|
311
|
-
})),
|
|
312
|
-
additionalModelRequestFields: lenient(Schema.StructWithRest(Schema.Struct({
|
|
313
|
-
anthropic_beta: lenient(Schema.Array(Schema.String)),
|
|
314
|
-
output_config: lenient(Schema.Record(Schema.String, Schema.Unknown)),
|
|
315
|
-
reasoning: lenient(Schema.Record(Schema.String, Schema.Unknown))
|
|
316
|
-
}), [Schema.Record(Schema.String, Schema.Unknown)])),
|
|
317
|
-
appName: lenient(Schema.String),
|
|
318
|
-
appUrl: lenient(Schema.String),
|
|
319
|
-
api_keys: lenient(Schema.Record(Schema.String, Schema.String))
|
|
320
|
-
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
321
|
-
var decode = Schema.decodeUnknownSync(Legacy);
|
|
322
|
-
|
|
323
|
-
// src/provider.ts
|
|
324
71
|
import { Event as Event17 } from "@opencode/schema/provider";
|
|
325
72
|
var ID13 = Provider.ID;
|
|
326
73
|
var AISDK_PREFIX2 = "aisdk:";
|
|
@@ -333,12 +80,12 @@ function packageName2(value) {
|
|
|
333
80
|
return value;
|
|
334
81
|
return value.slice(AISDK_PREFIX2.length);
|
|
335
82
|
}
|
|
336
|
-
var JsonRecord =
|
|
337
|
-
var decodeJsonRecord =
|
|
83
|
+
var JsonRecord = Schema.Record(Schema.String, Schema.Json);
|
|
84
|
+
var decodeJsonRecord = Schema.decodeUnknownSync(JsonRecord);
|
|
338
85
|
|
|
339
|
-
class LoadError3 extends
|
|
340
|
-
package:
|
|
341
|
-
cause:
|
|
86
|
+
class LoadError3 extends Schema.TaggedError()("Provider.LoadError", {
|
|
87
|
+
package: Schema.String,
|
|
88
|
+
cause: Schema.Defect()
|
|
342
89
|
}) {
|
|
343
90
|
}
|
|
344
91
|
var packages = new Map;
|
|
@@ -378,6 +125,7 @@ var builtins = new Map([
|
|
|
378
125
|
["@opencode/ai/providers/google-vertex/chat", () => import("@opencode/ai/providers/google-vertex/chat")],
|
|
379
126
|
["@opencode/ai/providers/google-vertex/responses", () => import("@opencode/ai/providers/google-vertex/responses")],
|
|
380
127
|
["@opencode/ai/providers/google-vertex/messages", () => import("@opencode/ai/providers/google-vertex/messages")],
|
|
128
|
+
["@opencode/ai/providers/google-vertex/mistral", () => import("@opencode/ai/providers/google-vertex/mistral")],
|
|
381
129
|
["@opencode/ai/providers/groq", () => import("@opencode/ai/providers/groq")],
|
|
382
130
|
["@opencode/ai/providers/meta/chat", () => import("@opencode/ai/providers/meta/chat")],
|
|
383
131
|
["@opencode/ai/providers/meta/messages", () => import("@opencode/ai/providers/meta/messages")],
|
|
@@ -414,12 +162,12 @@ var builtins = new Map([
|
|
|
414
162
|
() => import("@opencode/ai/providers/zai-coding-plan/responses")
|
|
415
163
|
]
|
|
416
164
|
]);
|
|
417
|
-
var loadPackage2 =
|
|
165
|
+
var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
|
|
418
166
|
const specifier = packageName2(input);
|
|
419
167
|
const builtin = builtins.get(specifier);
|
|
420
168
|
if (builtin)
|
|
421
169
|
return yield* importPackage(specifier, specifier, builtin);
|
|
422
|
-
const resolved = yield*
|
|
170
|
+
const resolved = yield* Effect.sync(() => {
|
|
423
171
|
if (specifier.startsWith("file://") || specifier.startsWith("@opencode/ai/"))
|
|
424
172
|
return specifier;
|
|
425
173
|
try {
|
|
@@ -438,8 +186,8 @@ var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
|
|
|
438
186
|
}
|
|
439
187
|
const parts = specifier.split("/");
|
|
440
188
|
const root = specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0] ?? specifier;
|
|
441
|
-
const installed = yield* npm.add(root).pipe(
|
|
442
|
-
const entrypoint = yield*
|
|
189
|
+
const installed = yield* npm.add(root).pipe(Effect.mapError((cause) => new LoadError3({ package: specifier, cause })));
|
|
190
|
+
const entrypoint = yield* Effect.try({
|
|
443
191
|
try: () => resolveModule(specifier, installed.directory),
|
|
444
192
|
catch: (cause) => new LoadError3({ package: specifier, cause })
|
|
445
193
|
});
|
|
@@ -448,15 +196,15 @@ var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
|
|
|
448
196
|
var CORE_KEYS = ["chunkTimeout", "compaction", "fetch", "headerTimeout", "timeout", "transport"];
|
|
449
197
|
var PROVIDER_ONLY_KEYS = ["chunkTimeout", "headerTimeout", "timeout", "transport"];
|
|
450
198
|
function nativeSettings2(settings) {
|
|
451
|
-
return
|
|
199
|
+
return Struct.omit(settings, CORE_KEYS);
|
|
452
200
|
}
|
|
453
201
|
function modelSettings2(settings) {
|
|
454
|
-
return settings &&
|
|
202
|
+
return settings && Struct.omit(settings, PROVIDER_ONLY_KEYS);
|
|
455
203
|
}
|
|
456
|
-
var decodeTimeout =
|
|
204
|
+
var decodeTimeout = Schema.decodeUnknownOption(HttpTimeout);
|
|
457
205
|
var DEFAULT_TIMEOUT_MS3 = 300000;
|
|
458
206
|
function timeout2(value) {
|
|
459
|
-
return
|
|
207
|
+
return Option.getOrUndefined(decodeTimeout(value));
|
|
460
208
|
}
|
|
461
209
|
function timeouts2(settings) {
|
|
462
210
|
return {
|
|
@@ -496,7 +244,7 @@ var Transport2 = Provider.Transport;
|
|
|
496
244
|
var Settings2 = Provider.Settings;
|
|
497
245
|
var Info22 = Provider.Info;
|
|
498
246
|
|
|
499
|
-
class
|
|
247
|
+
class Service77 extends Context.Service()("@opencode/Provider") {
|
|
500
248
|
}
|
|
501
249
|
var definitions = new WeakMap;
|
|
502
250
|
function index(providerID, models) {
|
|
@@ -509,10 +257,10 @@ function index(providerID, models) {
|
|
|
509
257
|
definitions.set(models, indexes);
|
|
510
258
|
return result;
|
|
511
259
|
}
|
|
512
|
-
var layer = Layer.effect(
|
|
513
|
-
const bus = yield*
|
|
514
|
-
const integrations = yield*
|
|
515
|
-
const location = yield*
|
|
260
|
+
var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
261
|
+
const bus = yield* Service84;
|
|
262
|
+
const integrations = yield* Service78;
|
|
263
|
+
const location = yield* Service81;
|
|
516
264
|
const state = create3({
|
|
517
265
|
name: "provider",
|
|
518
266
|
initial: () => new Map,
|
|
@@ -591,9 +339,9 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
|
|
|
591
339
|
},
|
|
592
340
|
notify: () => notify
|
|
593
341
|
});
|
|
594
|
-
yield*
|
|
342
|
+
yield* Effect.addFinalizer(() => shutdown2(state.reload()));
|
|
595
343
|
let cached;
|
|
596
|
-
const snapshot =
|
|
344
|
+
const snapshot = Effect.fn("Provider.snapshot")(function* () {
|
|
597
345
|
while (true) {
|
|
598
346
|
const revision = integrations.revision();
|
|
599
347
|
const records = state.get();
|
|
@@ -621,7 +369,7 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
|
|
|
621
369
|
}
|
|
622
370
|
});
|
|
623
371
|
let published;
|
|
624
|
-
const notify =
|
|
372
|
+
const notify = Effect.gen(function* () {
|
|
625
373
|
const value = yield* snapshot();
|
|
626
374
|
if (value === published)
|
|
627
375
|
return;
|
|
@@ -630,19 +378,19 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
|
|
|
630
378
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
631
379
|
});
|
|
632
380
|
});
|
|
633
|
-
yield* bus.subscribe([Event18.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify),
|
|
634
|
-
return
|
|
381
|
+
yield* bus.subscribe([Event18.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
382
|
+
return Service77.of({
|
|
635
383
|
transform: state.transform,
|
|
636
384
|
reload: state.reload,
|
|
637
|
-
get:
|
|
638
|
-
all:
|
|
639
|
-
available:
|
|
385
|
+
get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
386
|
+
all: Effect.fn("Provider.all")(() => Effect.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
|
|
387
|
+
available: Effect.fn("Provider.available")(() => snapshot().pipe(Effect.map((value) => value.providers))),
|
|
640
388
|
snapshot
|
|
641
389
|
});
|
|
642
390
|
}));
|
|
643
|
-
var node80 = makeLocationNode({ service:
|
|
644
|
-
var importPackage =
|
|
645
|
-
const module = yield*
|
|
391
|
+
var node80 = makeLocationNode({ service: Service77, layer, deps: [node88, node81, node84] });
|
|
392
|
+
var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
393
|
+
const module = yield* Effect.tryPromise({
|
|
646
394
|
try: () => {
|
|
647
395
|
const existing = packages.get(entrypoint);
|
|
648
396
|
if (existing)
|
|
@@ -662,4 +410,260 @@ var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, e
|
|
|
662
410
|
return module;
|
|
663
411
|
});
|
|
664
412
|
|
|
665
|
-
|
|
413
|
+
// src/aisdk-native.ts
|
|
414
|
+
function rewrite2(target, input) {
|
|
415
|
+
if (input.specifier === undefined)
|
|
416
|
+
return;
|
|
417
|
+
const plain = resolve(input.specifier, input);
|
|
418
|
+
if (!plain)
|
|
419
|
+
return;
|
|
420
|
+
const settings = decode(target.settings ?? {});
|
|
421
|
+
const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
|
|
422
|
+
const translated = options(replacement, input.modelID, settings);
|
|
423
|
+
if (target.package !== undefined || replacement !== input.specifier)
|
|
424
|
+
target.package = replacement;
|
|
425
|
+
target.settings = target.settings === undefined ? undefined : {
|
|
426
|
+
...translated.settings,
|
|
427
|
+
...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
|
|
428
|
+
};
|
|
429
|
+
target.headers = mergeHeaders2(translated.headers, target.headers);
|
|
430
|
+
target.body = mergeOverlay2(translated.body, target.body);
|
|
431
|
+
target.variants = target.variants?.map((variant) => {
|
|
432
|
+
const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
|
|
433
|
+
const headers = mergeHeaders2(overlay.headers, variant.headers);
|
|
434
|
+
const body = mergeOverlay2(overlay.body, variant.body);
|
|
435
|
+
return {
|
|
436
|
+
id: variant.id,
|
|
437
|
+
...variant.settings === undefined ? {} : { settings: overlay.settings },
|
|
438
|
+
...headers === undefined ? {} : { headers },
|
|
439
|
+
...body === undefined ? {} : { body }
|
|
440
|
+
};
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
var PACKAGES = {
|
|
444
|
+
"@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
|
|
445
|
+
"@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
|
|
446
|
+
"@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
|
|
447
|
+
"@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
|
|
448
|
+
"@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
|
|
449
|
+
"@ai-sdk/cohere": "@opencode/ai/providers/cohere",
|
|
450
|
+
"@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
|
|
451
|
+
"@ai-sdk/google": "@opencode/ai/providers/google",
|
|
452
|
+
"@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
|
|
453
|
+
"@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
|
|
454
|
+
"@ai-sdk/groq": "@opencode/ai/providers/groq",
|
|
455
|
+
"@ai-sdk/mistral": "@opencode/ai/providers/mistral",
|
|
456
|
+
"@ai-sdk/openai": "@opencode/ai/providers/openai",
|
|
457
|
+
"@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
|
|
458
|
+
"@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
|
|
459
|
+
"@ai-sdk/xai": "@opencode/ai/providers/xai",
|
|
460
|
+
"@ai-sdk/gateway": "@opencode/ai/providers/vercel-ai-gateway",
|
|
461
|
+
"@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
|
|
462
|
+
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
463
|
+
"venice-ai-sdk-provider": "@opencode/ai/providers/venice"
|
|
464
|
+
};
|
|
465
|
+
var protocols = (name) => ({
|
|
466
|
+
"@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
|
|
467
|
+
"@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
|
|
468
|
+
"@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
|
|
469
|
+
});
|
|
470
|
+
var HOSTS = {
|
|
471
|
+
alibaba: protocols("alibaba"),
|
|
472
|
+
"alibaba-cn": protocols("alibaba"),
|
|
473
|
+
"alibaba-coding-plan": protocols("alibaba"),
|
|
474
|
+
"alibaba-coding-plan-cn": protocols("alibaba"),
|
|
475
|
+
"alibaba-token-plan": protocols("alibaba"),
|
|
476
|
+
"alibaba-token-plan-cn": protocols("alibaba"),
|
|
477
|
+
baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
|
|
478
|
+
"cloudflare-ai-gateway": {
|
|
479
|
+
"@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
480
|
+
"@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
481
|
+
"@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
482
|
+
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
483
|
+
},
|
|
484
|
+
cohere: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cohere/chat" },
|
|
485
|
+
"cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
|
|
486
|
+
deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
|
|
487
|
+
digitalocean: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/digitalocean" },
|
|
488
|
+
"fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
|
|
489
|
+
"google-vertex": {
|
|
490
|
+
"@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat",
|
|
491
|
+
"@ai-sdk/mistral": "@opencode/ai/providers/google-vertex/mistral"
|
|
492
|
+
},
|
|
493
|
+
"kimi-for-coding": protocols("moonshot"),
|
|
494
|
+
meta: protocols("meta"),
|
|
495
|
+
minimax: protocols("minimax"),
|
|
496
|
+
"minimax-cn": protocols("minimax"),
|
|
497
|
+
"minimax-coding-plan": protocols("minimax"),
|
|
498
|
+
"minimax-cn-coding-plan": protocols("minimax"),
|
|
499
|
+
moonshotai: protocols("moonshot"),
|
|
500
|
+
"moonshotai-cn": protocols("moonshot"),
|
|
501
|
+
zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
502
|
+
"zai-coding-plan": protocols("zai-coding-plan"),
|
|
503
|
+
zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
504
|
+
"zhipuai-coding-plan": protocols("zai-coding-plan")
|
|
505
|
+
};
|
|
506
|
+
var NATIVE = new Set([
|
|
507
|
+
...Object.values(PACKAGES),
|
|
508
|
+
...Object.values(HOSTS).flatMap((host) => Object.values(host)),
|
|
509
|
+
"@opencode/ai/providers/azure/chat",
|
|
510
|
+
"@opencode/ai/providers/amazon-bedrock/mantle",
|
|
511
|
+
"@opencode/ai/providers/amazon-bedrock/mantle/chat",
|
|
512
|
+
"@opencode/ai/providers/amazon-bedrock/mantle/responses"
|
|
513
|
+
]);
|
|
514
|
+
function native2(npm, context) {
|
|
515
|
+
const host = HOSTS[context.providerID]?.[npm];
|
|
516
|
+
if (host)
|
|
517
|
+
return host;
|
|
518
|
+
if (npm === "@ai-sdk/amazon-bedrock/mantle")
|
|
519
|
+
return mantle(context.modelID);
|
|
520
|
+
if (npm === "@ai-sdk/azure" && azureChat(context))
|
|
521
|
+
return "@opencode/ai/providers/azure/chat";
|
|
522
|
+
return PACKAGES[npm];
|
|
523
|
+
}
|
|
524
|
+
var azureChat = (context) => context.shape === "completions" || context.settings?.useCompletionUrls === true;
|
|
525
|
+
var mantle = (modelID) => {
|
|
526
|
+
if (modelID === undefined)
|
|
527
|
+
return "@opencode/ai/providers/amazon-bedrock/mantle";
|
|
528
|
+
return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
|
|
529
|
+
};
|
|
530
|
+
function resolve(specifier, context) {
|
|
531
|
+
const npm = packageName2(specifier);
|
|
532
|
+
if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
|
|
533
|
+
return native2(npm, context);
|
|
534
|
+
if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
|
|
535
|
+
return mantle(context.modelID);
|
|
536
|
+
if (npm === "@opencode/ai/providers/azure/responses" && azureChat(context))
|
|
537
|
+
return "@opencode/ai/providers/azure/chat";
|
|
538
|
+
return NATIVE.has(npm) ? npm : undefined;
|
|
539
|
+
}
|
|
540
|
+
function options(replacement, modelID, settings) {
|
|
541
|
+
const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
|
|
542
|
+
const kept = Struct2.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
|
|
543
|
+
const thinking = converse ? bedrockThinking(modelID, settings) : undefined;
|
|
544
|
+
return {
|
|
545
|
+
settings: {
|
|
546
|
+
...replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
|
|
547
|
+
...thinking === undefined ? {} : { thinking }
|
|
548
|
+
},
|
|
549
|
+
...settings.headers === undefined ? {} : { headers: settings.headers },
|
|
550
|
+
...settings.extraBody === undefined ? {} : { body: settings.extraBody },
|
|
551
|
+
...converse ? bedrockRequest(modelID, settings) : {},
|
|
552
|
+
...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
var BEDROCK_KEYS = [
|
|
556
|
+
"bearerToken",
|
|
557
|
+
"endpoint",
|
|
558
|
+
"credentials",
|
|
559
|
+
"credentialProvider",
|
|
560
|
+
"accessKeyId",
|
|
561
|
+
"secretAccessKey",
|
|
562
|
+
"sessionToken"
|
|
563
|
+
];
|
|
564
|
+
var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
|
|
565
|
+
function bedrockSettings(settings, converse) {
|
|
566
|
+
const region = settings.region ?? settings.credentials?.region;
|
|
567
|
+
const credentials = settings.credentials ?? settings;
|
|
568
|
+
const baseURL = settings.baseURL ?? settings.endpoint;
|
|
569
|
+
return {
|
|
570
|
+
...Struct2.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
|
|
571
|
+
...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
|
|
572
|
+
...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
|
|
573
|
+
...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
|
|
574
|
+
credentials: {
|
|
575
|
+
...region === undefined ? {} : { region },
|
|
576
|
+
accessKeyId: credentials.accessKeyId,
|
|
577
|
+
secretAccessKey: credentials.secretAccessKey,
|
|
578
|
+
...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
function bedrockThinking(modelID, settings) {
|
|
584
|
+
const reasoning = settings.reasoningConfig;
|
|
585
|
+
if (!modelID?.includes("anthropic") || reasoning?.type !== "enabled" || reasoning.budgetTokens === undefined)
|
|
586
|
+
return;
|
|
587
|
+
return { type: "enabled", budgetTokens: reasoning.budgetTokens };
|
|
588
|
+
}
|
|
589
|
+
function bedrockRequest(modelID, settings) {
|
|
590
|
+
const additional = settings.additionalModelRequestFields ?? {};
|
|
591
|
+
const reasoning = settings.reasoningConfig;
|
|
592
|
+
const anthropic = modelID?.includes("anthropic") ?? false;
|
|
593
|
+
const openai = modelID?.includes("openai.") ?? false;
|
|
594
|
+
const harmony = modelID?.includes("openai.gpt-oss") ?? false;
|
|
595
|
+
const effort = reasoning?.maxReasoningEffort;
|
|
596
|
+
const type = reasoning?.type;
|
|
597
|
+
const budget = reasoning?.budgetTokens;
|
|
598
|
+
const display = reasoning?.display;
|
|
599
|
+
const betas = settings.anthropicBeta ?? [];
|
|
600
|
+
const fields = mergeOverlay2(additional, {
|
|
601
|
+
...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
|
|
602
|
+
...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
|
|
603
|
+
...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
|
|
604
|
+
...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
|
|
605
|
+
...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
|
|
606
|
+
...!anthropic && !openai && effort !== undefined ? {
|
|
607
|
+
reasoningConfig: {
|
|
608
|
+
...type === undefined || type === "adaptive" ? {} : { type },
|
|
609
|
+
...budget === undefined ? {} : { budgetTokens: budget },
|
|
610
|
+
maxReasoningEffort: effort
|
|
611
|
+
}
|
|
612
|
+
} : {}
|
|
613
|
+
});
|
|
614
|
+
const body = {
|
|
615
|
+
...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
|
|
616
|
+
...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
|
|
617
|
+
};
|
|
618
|
+
return Object.keys(body).length === 0 ? {} : { body };
|
|
619
|
+
}
|
|
620
|
+
var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
|
|
621
|
+
function openRouterRequest(settings) {
|
|
622
|
+
const headers = mergeHeaders2({
|
|
623
|
+
...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
|
|
624
|
+
...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
|
|
625
|
+
...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
|
|
626
|
+
}, settings.headers) ?? {};
|
|
627
|
+
return Object.keys(headers).length === 0 ? {} : { headers };
|
|
628
|
+
}
|
|
629
|
+
var lenient = (schema) => Schema2.optional(Schema2.UndefinedOr(schema).pipe(Schema2.catchDecoding(() => Effect2.succeed(Option2.some(undefined)))));
|
|
630
|
+
var Credentials = Schema2.Struct({
|
|
631
|
+
accessKeyId: Schema2.String,
|
|
632
|
+
secretAccessKey: Schema2.String,
|
|
633
|
+
sessionToken: lenient(Schema2.String),
|
|
634
|
+
region: lenient(Schema2.String)
|
|
635
|
+
});
|
|
636
|
+
var Legacy = Schema2.StructWithRest(Schema2.Struct({
|
|
637
|
+
apiKey: lenient(Schema2.String),
|
|
638
|
+
baseURL: lenient(Schema2.String),
|
|
639
|
+
headers: lenient(Schema2.Record(Schema2.String, Schema2.String)),
|
|
640
|
+
extraBody: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
|
|
641
|
+
useCompletionUrls: lenient(Schema2.Boolean),
|
|
642
|
+
auth: lenient(Schema2.Literals(["bearer", "sigv4"])),
|
|
643
|
+
bearerToken: lenient(Schema2.String),
|
|
644
|
+
endpoint: lenient(Schema2.String),
|
|
645
|
+
region: lenient(Schema2.String),
|
|
646
|
+
credentials: lenient(Credentials),
|
|
647
|
+
accessKeyId: lenient(Schema2.String),
|
|
648
|
+
secretAccessKey: lenient(Schema2.String),
|
|
649
|
+
sessionToken: lenient(Schema2.String),
|
|
650
|
+
anthropicBeta: lenient(Schema2.Array(Schema2.String)),
|
|
651
|
+
serviceTier: lenient(Schema2.String),
|
|
652
|
+
reasoningConfig: lenient(Schema2.Struct({
|
|
653
|
+
type: lenient(Schema2.String),
|
|
654
|
+
display: lenient(Schema2.String),
|
|
655
|
+
maxReasoningEffort: lenient(Schema2.String),
|
|
656
|
+
budgetTokens: lenient(Schema2.Number)
|
|
657
|
+
})),
|
|
658
|
+
additionalModelRequestFields: lenient(Schema2.StructWithRest(Schema2.Struct({
|
|
659
|
+
anthropic_beta: lenient(Schema2.Array(Schema2.String)),
|
|
660
|
+
output_config: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
|
|
661
|
+
reasoning: lenient(Schema2.Record(Schema2.String, Schema2.Unknown))
|
|
662
|
+
}), [Schema2.Record(Schema2.String, Schema2.Unknown)])),
|
|
663
|
+
appName: lenient(Schema2.String),
|
|
664
|
+
appUrl: lenient(Schema2.String),
|
|
665
|
+
api_keys: lenient(Schema2.Record(Schema2.String, Schema2.String))
|
|
666
|
+
}), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
|
|
667
|
+
var decode = Schema2.decodeUnknownSync(Legacy);
|
|
668
|
+
|
|
669
|
+
export { rewrite2, native2, exports_aisdk_native, ID13, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, timeout2, timeouts2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info22, Service77, node80, exports_provider3, Event17 };
|