@opencode/core 0.0.0-dev-20536 → 0.0.0-dev-20537
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +81 -81
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +73 -73
- package/dist/chunks/{bus-tzjwq995.js → location-services-090sd7ra.js} +13 -13
- package/dist/chunks/{bus-khnjxhph.js → location-services-09jrgjtk.js} +48 -48
- package/dist/chunks/{bus-zfs8ae4p.js → location-services-0dygnakk.js} +4 -4
- package/dist/chunks/{bus-0j77ygfz.js → location-services-0j77ygfz.js} +2 -2
- package/dist/chunks/{bus-s41274r5.js → location-services-0k1mtnc0.js} +1 -1
- package/dist/chunks/{bus-0paq2nw3.js → location-services-0paq2nw3.js} +1 -1
- package/dist/chunks/{bus-49phrcng.js → location-services-0qf096qr.js} +15 -15
- package/dist/chunks/{bus-0vbcp93d.js → location-services-0vbcp93d.js} +2 -2
- package/dist/chunks/location-services-0w8ae6hm.js +507 -0
- package/dist/chunks/{bus-xe51zch3.js → location-services-11b8m3jd.js} +5 -5
- package/dist/chunks/{bus-b4m41310.js → location-services-129m75gm.js} +11 -11
- package/dist/chunks/{bus-fzcec5e2.js → location-services-17ckmk6r.js} +12 -12
- package/dist/chunks/{bus-1acjjqhc.js → location-services-1acjjqhc.js} +1 -1
- package/dist/chunks/{bus-1dazxqgg.js → location-services-1dazxqgg.js} +2 -2
- package/dist/chunks/{bus-rabnegtx.js → location-services-1mfgke8q.js} +32 -32
- package/dist/chunks/{bus-7yrdpv1j.js → location-services-1r6k1529.js} +7 -7
- package/dist/chunks/{bus-7c08hygz.js → location-services-1xzpbkn4.js} +8 -8
- package/dist/chunks/{bus-e940t5dn.js → location-services-20bttqta.js} +19 -19
- package/dist/chunks/location-services-24ett5en.js +26 -0
- package/dist/chunks/{bus-0qpvcajx.js → location-services-2739wcbm.js} +17 -17
- package/dist/chunks/{bus-2a5m3afh.js → location-services-2a5m3afh.js} +1 -1
- package/dist/chunks/{bus-2ccvkpx1.js → location-services-2ccvkpx1.js} +2 -2
- package/dist/chunks/{bus-q85q7640.js → location-services-2evt5wtt.js} +3 -3
- package/dist/chunks/{bus-364kza10.js → location-services-2n111pse.js} +25 -25
- package/dist/chunks/{bus-fas7hgfq.js → location-services-2ppsxfje.js} +23 -23
- package/dist/chunks/{bus-n2mrbfpf.js → location-services-33qwye0g.js} +41 -41
- package/dist/chunks/{bus-1dq8jzyn.js → location-services-3akdnqww.js} +2 -2
- package/dist/chunks/{bus-h2b79v29.js → location-services-3cegwx68.js} +2 -2
- package/dist/chunks/{bus-3fc6dm20.js → location-services-3fc6dm20.js} +1 -1
- package/dist/chunks/{bus-3hepkmqq.js → location-services-3hepkmqq.js} +1 -1
- package/dist/chunks/{bus-st8gjnqv.js → location-services-3n8b61ny.js} +43 -43
- package/dist/chunks/{bus-8g5ayqkp.js → location-services-3ndk2zmb.js} +14 -14
- package/dist/chunks/{bus-gz0m67vm.js → location-services-3nxk1rwh.js} +19 -19
- package/dist/chunks/{bus-3smtnn6g.js → location-services-3smtnn6g.js} +1 -1
- package/dist/chunks/{bus-3tvqynh2.js → location-services-3tvqynh2.js} +1 -1
- package/dist/chunks/{bus-wdpd55qw.js → location-services-3wmkjx9q.js} +35 -35
- package/dist/chunks/{bus-3zsf4n22.js → location-services-3zsf4n22.js} +1 -1
- package/dist/chunks/{bus-zzqp698d.js → location-services-4148mqyb.js} +16 -16
- package/dist/chunks/{bus-ex2jr6wp.js → location-services-42cq3m4d.js} +310 -310
- package/dist/chunks/{bus-ydaa82v6.js → location-services-43kqwnna.js} +13 -13
- package/dist/chunks/{bus-ynscm4vs.js → location-services-445k6pmr.js} +28 -28
- package/dist/chunks/{bus-1a0ec517.js → location-services-44evqxhd.js} +16 -16
- package/dist/chunks/{bus-87qgbvjc.js → location-services-4650c2qw.js} +8 -8
- package/dist/chunks/{bus-k5btndkz.js → location-services-470y252s.js} +8 -8
- package/dist/chunks/{bus-vxmk6qhg.js → location-services-4bttz9j9.js} +3 -3
- package/dist/chunks/{bus-v17hgkfy.js → location-services-4f5nzdp7.js} +8 -8
- package/dist/chunks/{bus-8qxff7bj.js → location-services-4nq7jge7.js} +30 -30
- package/dist/chunks/{bus-s15sqcsm.js → location-services-4qn8jffq.js} +35 -35
- package/dist/chunks/{bus-aqvqqrwg.js → location-services-4vpyvh6w.js} +16 -16
- package/dist/chunks/{bus-xbrnje9f.js → location-services-4xhhjths.js} +8 -8
- package/dist/chunks/{bus-ekn5q80q.js → location-services-548zk78w.js} +9 -9
- package/dist/chunks/{bus-54ma36ye.js → location-services-54ma36ye.js} +1 -1
- package/dist/chunks/{bus-5daktx2q.js → location-services-5daktx2q.js} +1 -1
- package/dist/chunks/{bus-4z58m4b4.js → location-services-5dkn69vz.js} +4 -4
- package/dist/chunks/{bus-452wmbgb.js → location-services-5hn5gy8k.js} +14 -14
- package/dist/chunks/{bus-e7m0vwsw.js → location-services-5jgjtfet.js} +1 -1
- package/dist/chunks/{bus-gg3gj13y.js → location-services-5n5tsk4n.js} +9 -9
- package/dist/chunks/{bus-0jyvqp1f.js → location-services-5n9gernp.js} +10 -10
- package/dist/chunks/{bus-qfhc4gyc.js → location-services-5qmahpw7.js} +11 -11
- package/dist/chunks/{bus-fq1jpeb1.js → location-services-5rph54xz.js} +20 -20
- package/dist/chunks/{bus-5t3nmthw.js → location-services-5t3nmthw.js} +2 -2
- package/dist/chunks/{bus-92hj1t1y.js → location-services-5t943gfy.js} +9 -9
- package/dist/chunks/{bus-c20khjev.js → location-services-5wtwrezn.js} +4 -4
- package/dist/chunks/{bus-qh2fjgsd.js → location-services-5xpsk6ad.js} +46 -46
- package/dist/chunks/{bus-a5erg0b2.js → location-services-63zahdqd.js} +11 -11
- package/dist/chunks/{bus-669tq793.js → location-services-669tq793.js} +1 -1
- package/dist/chunks/{bus-8y0y710j.js → location-services-6g5dtey9.js} +6 -6
- package/dist/chunks/{bus-09fznkta.js → location-services-6z87w78t.js} +26 -26
- package/dist/chunks/{bus-pkhnmk3t.js → location-services-73racqam.js} +10 -10
- package/dist/chunks/{bus-7evavyec.js → location-services-7b4rfsm8.js} +49 -49
- package/dist/chunks/{bus-7bmhse3q.js → location-services-7bmhse3q.js} +1 -1
- package/dist/chunks/{bus-2ma8zt2e.js → location-services-7d4xdh6f.js} +2 -2
- package/dist/chunks/{bus-2k8khapm.js → location-services-7dqw4kz8.js} +5 -5
- package/dist/chunks/{bus-33smrnfj.js → location-services-7j0zjj68.js} +1 -1
- package/dist/chunks/{bus-8srq2cd9.js → location-services-7qwvpcev.js} +21 -21
- package/dist/chunks/{bus-8nypjabp.js → location-services-7rz9bx15.js} +6 -6
- package/dist/chunks/{bus-7bw64253.js → location-services-7zv2r0w0.js} +8 -8
- package/dist/chunks/{bus-1dvck2a7.js → location-services-84h8c373.js} +2 -2
- package/dist/chunks/{bus-84txncab.js → location-services-84txncab.js} +1 -1
- package/dist/chunks/{bus-5pyjqqve.js → location-services-85xxa1xb.js} +2 -2
- package/dist/chunks/{bus-17bmhmmj.js → location-services-880jzpzw.js} +11 -11
- package/dist/chunks/{bus-dx0ahrbs.js → location-services-8cw6acet.js} +11 -11
- package/dist/chunks/{bus-5ehnhnq5.js → location-services-8d37933j.js} +22 -22
- package/dist/chunks/{bus-8d7r5vzw.js → location-services-8d7r5vzw.js} +1 -1
- package/dist/chunks/{bus-bja1kbt7.js → location-services-8rvt4ayp.js} +35 -35
- package/dist/chunks/{bus-8jrg06sq.js → location-services-8z3f4xzs.js} +26 -26
- package/dist/chunks/{bus-92q1kttp.js → location-services-91d1afre.js} +8 -8
- package/dist/chunks/{bus-7x3zm5sf.js → location-services-9dkveqp9.js} +17 -17
- package/dist/chunks/{bus-tpw6cwsb.js → location-services-9hn6k4tm.js} +8 -8
- package/dist/chunks/{bus-9fgy035w.js → location-services-9n3ztkcb.js} +33 -33
- package/dist/chunks/{bus-vrm6ygbt.js → location-services-9q6kef8x.js} +18 -18
- package/dist/chunks/{bus-1d1h9naf.js → location-services-a4cqkne0.js} +2 -2
- package/dist/chunks/{bus-aaet6srn.js → location-services-aaet6srn.js} +2 -2
- package/dist/chunks/{bus-b7dd0p69.js → location-services-ajwrk4qv.js} +16 -16
- package/dist/chunks/{bus-qwjmgwmn.js → location-services-aq5y8b9e.js} +8 -8
- package/dist/chunks/{bus-kpvnmc5s.js → location-services-asxv3t3t.js} +8 -8
- package/dist/chunks/{bus-rgbf2t5s.js → location-services-aw6hx41n.js} +18 -18
- package/dist/chunks/{bus-zsc2fept.js → location-services-ax9bdc30.js} +21 -21
- package/dist/chunks/{bus-x96r6938.js → location-services-b0r77mt0.js} +27 -27
- package/dist/chunks/{bus-939wh0ff.js → location-services-b1wc7e3p.js} +23 -23
- package/dist/chunks/{bus-wecqtg5s.js → location-services-b3f8fkhc.js} +5 -5
- package/dist/chunks/{bus-b6gygkdw.js → location-services-b6gygkdw.js} +2 -2
- package/dist/chunks/{bus-s26mq5d1.js → location-services-b8qvr9pm.js} +4 -4
- package/dist/chunks/{bus-8vhr417e.js → location-services-b9387nfz.js} +32 -32
- package/dist/chunks/{bus-vx3jgdek.js → location-services-ba07h9gm.js} +3 -3
- package/dist/chunks/{bus-bxgqqbgp.js → location-services-bbhhp6a2.js} +24 -24
- package/dist/chunks/{bus-9k8khh75.js → location-services-bf4gbvg4.js} +8 -8
- package/dist/chunks/{bus-9z18kp50.js → location-services-bn9kxggd.js} +29 -29
- package/dist/chunks/{bus-5s8ss6c7.js → location-services-bqgt6scq.js} +35 -35
- package/dist/chunks/{bus-9n4yth9k.js → location-services-bqx0k4e8.js} +29 -29
- package/dist/chunks/{bus-dpz7bvge.js → location-services-c3jx7mjx.js} +11 -11
- package/dist/chunks/{bus-cjxqtvwp.js → location-services-cbh3s6fy.js} +15 -15
- package/dist/chunks/{bus-pgp1nwjn.js → location-services-cp937pt4.js} +4 -4
- package/dist/chunks/{bus-f3ev921j.js → location-services-crwbn2y9.js} +22 -22
- package/dist/chunks/{bus-ba97abkx.js → location-services-cvcz3nzr.js} +6 -6
- package/dist/chunks/{bus-fbq9vw6f.js → location-services-db4c6dbt.js} +10 -10
- package/dist/chunks/{bus-388z4gss.js → location-services-dfdc3x9j.js} +9 -9
- package/dist/chunks/{bus-djqc12a6.js → location-services-djbmhmfy.js} +13 -13
- package/dist/chunks/{bus-trtdezz0.js → location-services-e6emc0zd.js} +11 -11
- package/dist/chunks/{bus-1z18ck0n.js → location-services-eaezvagx.js} +6 -6
- package/dist/chunks/{bus-ef5x83kb.js → location-services-ef5x83kb.js} +1 -1
- package/dist/chunks/{bus-ke77zstc.js → location-services-ejkmb07p.js} +17 -17
- package/dist/chunks/{bus-2345ahvj.js → location-services-etcjgnrt.js} +83 -83
- package/dist/chunks/{bus-etq0c3wd.js → location-services-etq0c3wd.js} +1 -1
- package/dist/chunks/{bus-6n4ty2ve.js → location-services-ex32rbjv.js} +12 -12
- package/dist/chunks/{bus-ag2zta49.js → location-services-f0y7qn63.js} +12 -12
- package/dist/chunks/{bus-dms2p81q.js → location-services-f1hzxyh9.js} +4 -4
- package/dist/chunks/{bus-71az546q.js → location-services-f75zav2x.js} +2 -2
- package/dist/chunks/{bus-2bmw77gy.js → location-services-fdmc68hb.js} +13 -13
- package/dist/chunks/{bus-5myvgw2p.js → location-services-fg9zqne9.js} +27 -27
- package/dist/chunks/{bus-v0es1rhs.js → location-services-fpecnkgp.js} +9 -9
- package/dist/chunks/{bus-p694032b.js → location-services-fwsev3sk.js} +5 -5
- package/dist/chunks/{bus-9fm4x5nt.js → location-services-g1hwam99.js} +32 -32
- package/dist/chunks/{bus-0ag38bn7.js → location-services-g2wmft89.js} +141 -141
- package/dist/chunks/{bus-z5m9pnwf.js → location-services-g506agmk.js} +12 -12
- package/dist/chunks/{bus-m2ykgtqm.js → location-services-g87wfbfj.js} +12 -12
- package/dist/chunks/{bus-3zcjd5ba.js → location-services-g8gngdw1.js} +35 -35
- package/dist/chunks/{bus-tnw5c9p9.js → location-services-gat4fymv.js} +8 -8
- package/dist/chunks/{bus-fzh7zfb0.js → location-services-gctmrbvy.js} +15 -15
- package/dist/chunks/{bus-gd4qta3r.js → location-services-gd4qta3r.js} +1 -1
- package/dist/chunks/{bus-99gq6tqt.js → location-services-gg98c2f6.js} +8 -8
- package/dist/chunks/{bus-wpt7dsy0.js → location-services-gggfs0xk.js} +29 -29
- package/dist/chunks/{bus-83pvch2e.js → location-services-gyq2yz2w.js} +14 -14
- package/dist/chunks/{bus-3556dn8t.js → location-services-h5w29vws.js} +1 -1
- package/dist/chunks/{bus-h6vf3j39.js → location-services-h6vf3j39.js} +1 -1
- package/dist/chunks/{bus-57myy5jh.js → location-services-h83xjv7f.js} +5 -5
- package/dist/chunks/{bus-d1r5081s.js → location-services-h9rm1rrn.js} +5 -5
- package/dist/chunks/{bus-3rexwkpe.js → location-services-hafepx0m.js} +12 -12
- package/dist/chunks/{bus-eb4pf1x7.js → location-services-hfg95gcz.js} +11 -11
- package/dist/chunks/{bus-h06bmtst.js → location-services-hk3wdbzw.js} +22 -22
- package/dist/chunks/{bus-q43yz18s.js → location-services-hpcc46c6.js} +23 -23
- package/dist/chunks/{bus-vp5rkn34.js → location-services-hqe8rd4g.js} +27 -27
- package/dist/chunks/{bus-h9ye38ew.js → location-services-hvwcn4a1.js} +18 -18
- package/dist/chunks/{bus-p2vqafnj.js → location-services-hz101gtb.js} +1 -1
- package/dist/chunks/{bus-e7298r3y.js → location-services-j4xy0zyz.js} +5 -5
- package/dist/chunks/{bus-j56e64zr.js → location-services-j56e64zr.js} +1 -1
- package/dist/chunks/{bus-3g35pcv0.js → location-services-j5we9a9w.js} +4 -4
- package/dist/chunks/{bus-0brrs4gw.js → location-services-jb7rd38k.js} +27 -27
- package/dist/chunks/{bus-mx9vqzsb.js → location-services-jhf3jymm.js} +6 -6
- package/dist/chunks/{bus-1bef9cj1.js → location-services-jtbsf1wt.js} +14 -14
- package/dist/chunks/{bus-0ejaqacf.js → location-services-jwhjcbyp.js} +32 -32
- package/dist/chunks/{bus-6c7yw9pm.js → location-services-k1qrnqst.js} +8 -8
- package/dist/chunks/{bus-g31erja1.js → location-services-k70p9jzb.js} +9 -9
- package/dist/chunks/{bus-qxkxgbhy.js → location-services-k76ra5zq.js} +95 -95
- package/dist/chunks/{bus-npwy0cf6.js → location-services-k8hpw67k.js} +5 -5
- package/dist/chunks/{bus-d9sgy5v4.js → location-services-kb6gw2zp.js} +4 -4
- package/dist/chunks/{bus-9e5bzkjp.js → location-services-kb9j3d72.js} +3 -3
- package/dist/chunks/{bus-r257mg98.js → location-services-kdytkkzq.js} +51 -51
- package/dist/chunks/{bus-789gjyax.js → location-services-kfm85q5p.js} +19 -19
- package/dist/chunks/{bus-6800223a.js → location-services-kvy32pjh.js} +3 -3
- package/dist/chunks/{bus-pcz7h6qj.js → location-services-kwrp2cke.js} +33 -33
- package/dist/chunks/{bus-m3fdjcah.js → location-services-m3fdjcah.js} +1 -1
- package/dist/chunks/{bus-m9w0rfyh.js → location-services-m9w0rfyh.js} +1 -1
- package/dist/chunks/{bus-m79q5xaq.js → location-services-mbj50dcg.js} +44 -44
- package/dist/chunks/{bus-mfqp6xfm.js → location-services-mfqp6xfm.js} +2 -2
- package/dist/chunks/{bus-a1gpj94z.js → location-services-mhkvc446.js} +3 -3
- package/dist/chunks/{bus-8zhy3fv7.js → location-services-mhv2383a.js} +5 -5
- package/dist/chunks/{bus-qzcb8gaw.js → location-services-mkt1mhy8.js} +18 -18
- package/dist/chunks/{bus-zbqk2z4c.js → location-services-mn1v50y8.js} +15 -15
- package/dist/chunks/{bus-fzpf6kj6.js → location-services-mr715wtt.js} +3 -3
- package/dist/chunks/{bus-z7ryvv6k.js → location-services-n8de19aq.js} +11 -11
- package/dist/chunks/{bus-9eajprj6.js → location-services-na1b7yvn.js} +11 -11
- package/dist/chunks/{bus-y6mhz57t.js → location-services-nb9p6b26.js} +4 -4
- package/dist/chunks/{bus-s6355me1.js → location-services-nezfzpbw.js} +6 -6
- package/dist/chunks/{bus-g0cz14ke.js → location-services-nrxsaexs.js} +8 -8
- package/dist/chunks/{bus-dpkg50ah.js → location-services-nxm207yx.js} +4 -4
- package/dist/chunks/{bus-8a5mpsbk.js → location-services-nz9mxn4c.js} +11 -11
- package/dist/chunks/{bus-masaym1h.js → location-services-p1xe872z.js} +13 -13
- package/dist/chunks/{bus-4fs97eea.js → location-services-p5kwhr81.js} +22 -22
- package/dist/chunks/{bus-7s2tn799.js → location-services-pakcngh0.js} +8 -8
- package/dist/chunks/{bus-03tt90jk.js → location-services-pjcdc1eb.js} +6 -6
- package/dist/chunks/{bus-pjvnvgmy.js → location-services-pjvnvgmy.js} +1 -1
- package/dist/chunks/{bus-p7ah34cs.js → location-services-pkavez25.js} +24 -24
- package/dist/chunks/{bus-pknna89w.js → location-services-pknna89w.js} +1 -1
- package/dist/chunks/{bus-g660qtn0.js → location-services-pkxr7bz7.js} +29 -29
- package/dist/chunks/{bus-0qmg5gm1.js → location-services-pn8afmet.js} +17 -17
- package/dist/chunks/{bus-cfsekr6v.js → location-services-py3kkmfq.js} +2 -2
- package/dist/chunks/{bus-31pvnh6p.js → location-services-pzzj2s60.js} +29 -29
- package/dist/chunks/{bus-qdr56tr0.js → location-services-q3zyttkr.js} +6 -6
- package/dist/chunks/{bus-gctnkx5g.js → location-services-q59j7fqk.js} +35 -35
- package/dist/chunks/{bus-ze3my9xb.js → location-services-q701mbem.js} +7 -7
- package/dist/chunks/{bus-8x5dvemw.js → location-services-qdzbr9p9.js} +13 -13
- package/dist/chunks/{bus-nn87vc15.js → location-services-qg1twfqe.js} +10 -10
- package/dist/chunks/{bus-nzny4vc0.js → location-services-qjv6c2tj.js} +26 -26
- package/dist/chunks/{bus-qnc92qwc.js → location-services-qnc92qwc.js} +1 -1
- package/dist/chunks/{bus-qvz4s47d.js → location-services-qpeq7qy2.js} +14 -14
- package/dist/chunks/{bus-qsdy395h.js → location-services-qsdy395h.js} +1 -1
- package/dist/chunks/{bus-xe08wepw.js → location-services-qtxphjym.js} +20 -20
- package/dist/chunks/{bus-qxjc9qry.js → location-services-qxjc9qry.js} +3 -3
- package/dist/chunks/{bus-syb4ysvy.js → location-services-qzpdgcfa.js} +17 -17
- package/dist/chunks/{bus-ej4w77wd.js → location-services-r1es5mj9.js} +12 -12
- package/dist/chunks/{bus-wg9r4j5w.js → location-services-r287dkar.js} +9 -9
- package/dist/chunks/{bus-qmqgtz8f.js → location-services-r2m716tb.js} +9 -9
- package/dist/chunks/{bus-ttt7twvn.js → location-services-r3zgfvd7.js} +21 -21
- package/dist/chunks/{bus-fm2qvscf.js → location-services-ratrq7cm.js} +4 -4
- package/dist/chunks/{bus-yq0mmv71.js → location-services-raz05mm7.js} +15 -15
- package/dist/chunks/{bus-56yn5gwg.js → location-services-rb7qyrmw.js} +16 -16
- package/dist/chunks/{bus-rdw6cm16.js → location-services-rdw6cm16.js} +1 -1
- package/dist/chunks/{bus-rbaracaf.js → location-services-ret0wthz.js} +15 -15
- package/dist/chunks/{bus-trq2pbyk.js → location-services-rhdj7ksw.js} +6 -6
- package/dist/chunks/{bus-s8d7rejh.js → location-services-rhjbct0v.js} +4 -4
- package/dist/chunks/{bus-xtjxve4c.js → location-services-rmw490pv.js} +18 -18
- package/dist/chunks/{bus-78rts9ej.js → location-services-rv8748ta.js} +25 -25
- package/dist/chunks/{bus-exd7ezmd.js → location-services-sn7w05hg.js} +8 -8
- package/dist/chunks/{bus-bydnjh3t.js → location-services-svb96c7g.js} +9 -9
- package/dist/chunks/{bus-hr1by741.js → location-services-sz2mf85x.js} +22 -22
- package/dist/chunks/{bus-27ztzm6j.js → location-services-t0xtz55a.js} +9 -9
- package/dist/chunks/{bus-dbvre6p0.js → location-services-t289dnjq.js} +1 -1
- package/dist/chunks/{bus-1s8jzfn5.js → location-services-tapqjetq.js} +3 -3
- package/dist/chunks/{bus-tazgh4e4.js → location-services-tazgh4e4.js} +1 -1
- package/dist/chunks/{bus-tcezcvh9.js → location-services-tcezcvh9.js} +1 -1
- package/dist/chunks/{bus-tdstcens.js → location-services-tdstcens.js} +1 -1
- package/dist/chunks/{bus-h10yp9cw.js → location-services-tx18x5rj.js} +26 -26
- package/dist/chunks/{bus-w5ck0rke.js → location-services-tx3wpygc.js} +23 -23
- package/dist/chunks/{bus-jvf3yq6v.js → location-services-tz4n1mmd.js} +4 -4
- package/dist/chunks/{bus-k2seq1xy.js → location-services-tzhe3ffv.js} +72 -72
- package/dist/chunks/location-services-v1faaxn9.js +18 -0
- package/dist/chunks/{bus-veqvce7d.js → location-services-veqvce7d.js} +1 -1
- package/dist/chunks/{bus-z8888y9b.js → location-services-vfnbmqyf.js} +11 -11
- package/dist/chunks/{bus-efspjqjk.js → location-services-vvtpgvxg.js} +10 -10
- package/dist/chunks/{bus-vzcthcp8.js → location-services-vzcthcp8.js} +1 -1
- package/dist/chunks/{bus-vzs5sf6e.js → location-services-vzs5sf6e.js} +1 -1
- package/dist/chunks/{bus-c467z66n.js → location-services-w2570gnf.js} +13 -13
- package/dist/chunks/{bus-6n4b0dsb.js → location-services-w3nq1sqw.js} +9 -9
- package/dist/chunks/{bus-w3wsvvr9.js → location-services-w3wsvvr9.js} +1 -1
- package/dist/chunks/{bus-fzp8wpts.js → location-services-w98vwcdd.js} +58 -58
- package/dist/chunks/{bus-p5q5j63x.js → location-services-wbe193vw.js} +29 -29
- package/dist/chunks/{bus-wd87259q.js → location-services-wd87259q.js} +1 -1
- package/dist/chunks/{bus-98zydh9f.js → location-services-wdd0crct.js} +24 -24
- package/dist/chunks/{bus-9wdk9qm9.js → location-services-wfk00ms1.js} +6 -6
- package/dist/chunks/{bus-bexr6pad.js → location-services-wfvhjczk.js} +3 -3
- package/dist/chunks/{bus-9mm2tben.js → location-services-wm4sn3p9.js} +52 -52
- package/dist/chunks/{bus-61ysx92p.js → location-services-wpamggjr.js} +9 -9
- package/dist/chunks/{bus-eamzqf14.js → location-services-wr993p73.js} +18 -18
- package/dist/chunks/{bus-ej9mn2hm.js → location-services-wxrsqkpp.js} +8 -8
- package/dist/chunks/location-services-wyhevdkh.js +253 -0
- package/dist/chunks/{bus-x1ezjp6w.js → location-services-x1ezjp6w.js} +1 -1
- package/dist/chunks/{bus-0a3505t2.js → location-services-x5d957dr.js} +23 -23
- package/dist/chunks/{bus-addxnjmp.js → location-services-x661k3y3.js} +4 -4
- package/dist/chunks/{bus-21jacxa0.js → location-services-x7wv6h2t.js} +43 -43
- package/dist/chunks/{bus-jpj7wt0r.js → location-services-xfcdggm6.js} +16 -16
- package/dist/chunks/{bus-g5w8qwbj.js → location-services-xfkkasph.js} +4 -4
- package/dist/chunks/{bus-m9cxh46g.js → location-services-xgna4nns.js} +18 -18
- package/dist/chunks/{bus-xkntkrq7.js → location-services-xkntkrq7.js} +2 -2
- package/dist/chunks/{bus-9pzzpc4q.js → location-services-xmf0kd7c.js} +8 -8
- package/dist/chunks/{bus-37wq61k5.js → location-services-xrhtfqv1.js} +11 -11
- package/dist/chunks/{bus-y1fvbwt7.js → location-services-y1fvbwt7.js} +1 -1
- package/dist/chunks/{bus-n3gpv6q4.js → location-services-yrf0wz8x.js} +26 -26
- package/dist/chunks/{bus-yrhqyw5v.js → location-services-yrhqyw5v.js} +1 -1
- package/dist/chunks/{bus-s8awv0tb.js → location-services-yvdf1jk9.js} +4 -4
- package/dist/chunks/{bus-z0bkrqjs.js → location-services-z0bkrqjs.js} +1 -1
- package/dist/chunks/{bus-9btznmag.js → location-services-z21wbhwx.js} +1 -1
- package/dist/chunks/{bus-8r2stfs9.js → location-services-z3y2mqzw.js} +24 -24
- package/dist/chunks/{bus-zmr78fwr.js → location-services-zmr78fwr.js} +2 -2
- package/dist/chunks/{bus-zr2ceqn5.js → location-services-zr2ceqn5.js} +1 -1
- package/dist/chunks/{bus-bqdwdppz.js → location-services-zw2sat06.js} +6 -6
- package/dist/chunks/{bus-zxq2ej10.js → location-services-zxq2ej10.js} +1 -1
- package/dist/chunks/{bus-ckgr5b8p.js → location-services-zy7rccag.js} +37 -37
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +99 -99
- package/dist/config/plugin/agent.js +116 -116
- package/dist/config/plugin/command.js +205 -205
- package/dist/config/plugin/compaction.js +154 -154
- package/dist/config/plugin/compatibility.js +134 -134
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +123 -123
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +116 -116
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +135 -135
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +81 -81
- package/dist/database/database.js +66 -66
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +364 -364
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +93 -93
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +74 -74
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +220 -220
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +102 -102
- package/dist/form.js +82 -82
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +101 -101
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +91 -91
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +355 -355
- package/dist/instruction-discovery.js +81 -81
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +85 -85
- package/dist/job.js +76 -76
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +134 -134
- package/dist/location-lifecycle.js +105 -105
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +352 -352
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +127 -127
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +98 -98
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +109 -109
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +80 -80
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +102 -102
- package/dist/plugin/command.js +98 -98
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +211 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +327 -327
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +115 -115
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +115 -115
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +115 -115
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +96 -96
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +115 -115
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +156 -156
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +132 -132
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +346 -346
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +84 -84
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +216 -216
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +90 -90
- package/dist/provider.js +97 -97
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +97 -97
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +95 -95
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +217 -217
- package/dist/session/execution.js +125 -125
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +88 -88
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +224 -224
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +113 -113
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +164 -164
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -203
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +213 -213
- package/dist/session/usage.js +1 -1
- package/dist/session.js +211 -211
- 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 +13 -13
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +110 -110
- package/dist/snapshot.js +91 -91
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +128 -128
- package/dist/tool/plugin/edit.js +118 -118
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +116 -116
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +208 -208
- package/dist/tool/plugin/skill.js +109 -109
- package/dist/tool/plugin/subagent.js +204 -204
- package/dist/tool/plugin/webfetch.js +108 -108
- package/dist/tool/plugin/websearch.js +110 -110
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +2 -2
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +87 -87
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +98 -98
- package/package.json +8 -8
- package/dist/chunks/bus-4fmv3mdr.js +0 -26
- package/dist/chunks/bus-bkyazm6f.js +0 -253
- package/dist/chunks/bus-bry9ja57.js +0 -507
- package/dist/chunks/bus-jqh9b0xq.js +0 -18
- /package/dist/chunks/{bus-0qkdqm5v.js → location-services-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{bus-0zkw76rk.js → location-services-0zkw76rk.js} +0 -0
- /package/dist/chunks/{bus-17cy0kzp.js → location-services-17cy0kzp.js} +0 -0
- /package/dist/chunks/{bus-1cnp2v09.js → location-services-1cnp2v09.js} +0 -0
- /package/dist/chunks/{bus-1kg9ymc8.js → location-services-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{bus-24dcb14g.js → location-services-24dcb14g.js} +0 -0
- /package/dist/chunks/{bus-2710q6r3.js → location-services-2710q6r3.js} +0 -0
- /package/dist/chunks/{bus-2axfhc9x.js → location-services-2axfhc9x.js} +0 -0
- /package/dist/chunks/{bus-2c3vjs8z.js → location-services-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{bus-34c7v6d4.js → location-services-34c7v6d4.js} +0 -0
- /package/dist/chunks/{bus-359p4xyc.js → location-services-359p4xyc.js} +0 -0
- /package/dist/chunks/{bus-3asan66x.js → location-services-3asan66x.js} +0 -0
- /package/dist/chunks/{bus-3t0ybcrp.js → location-services-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{bus-3v8g72cx.js → location-services-3v8g72cx.js} +0 -0
- /package/dist/chunks/{bus-3w5fmr99.js → location-services-3w5fmr99.js} +0 -0
- /package/dist/chunks/{bus-3wcehsnq.js → location-services-3wcehsnq.js} +0 -0
- /package/dist/chunks/{bus-43n2bw4t.js → location-services-43n2bw4t.js} +0 -0
- /package/dist/chunks/{bus-4knz6hnm.js → location-services-4knz6hnm.js} +0 -0
- /package/dist/chunks/{bus-4vcrnpx2.js → location-services-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{bus-4y7fprxs.js → location-services-4y7fprxs.js} +0 -0
- /package/dist/chunks/{bus-53557ph1.js → location-services-53557ph1.js} +0 -0
- /package/dist/chunks/{bus-550bvhaj.js → location-services-550bvhaj.js} +0 -0
- /package/dist/chunks/{bus-6prwharc.js → location-services-6prwharc.js} +0 -0
- /package/dist/chunks/{bus-7akdwqpd.js → location-services-7akdwqpd.js} +0 -0
- /package/dist/chunks/{bus-7m9af43g.js → location-services-7m9af43g.js} +0 -0
- /package/dist/chunks/{bus-822emrt2.js → location-services-822emrt2.js} +0 -0
- /package/dist/chunks/{bus-88xbtdfr.js → location-services-88xbtdfr.js} +0 -0
- /package/dist/chunks/{bus-8n3pysct.js → location-services-8n3pysct.js} +0 -0
- /package/dist/chunks/{bus-8wj87zfr.js → location-services-8wj87zfr.js} +0 -0
- /package/dist/chunks/{bus-9a4afbnw.js → location-services-9a4afbnw.js} +0 -0
- /package/dist/chunks/{bus-9rqn6x4v.js → location-services-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{bus-a6k6eb26.js → location-services-a6k6eb26.js} +0 -0
- /package/dist/chunks/{bus-af5trqkr.js → location-services-af5trqkr.js} +0 -0
- /package/dist/chunks/{bus-afrmfg78.js → location-services-afrmfg78.js} +0 -0
- /package/dist/chunks/{bus-aqzs7mqg.js → location-services-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{bus-atq7p7m5.js → location-services-atq7p7m5.js} +0 -0
- /package/dist/chunks/{bus-bkyjaxrp.js → location-services-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{bus-bmr6ed5q.js → location-services-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{bus-cf4snx6d.js → location-services-cf4snx6d.js} +0 -0
- /package/dist/chunks/{bus-cvy3z8tj.js → location-services-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{bus-d9fn303g.js → location-services-d9fn303g.js} +0 -0
- /package/dist/chunks/{bus-d9jj8t3e.js → location-services-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{bus-dajrwvna.js → location-services-dajrwvna.js} +0 -0
- /package/dist/chunks/{bus-dap0rakb.js → location-services-dap0rakb.js} +0 -0
- /package/dist/chunks/{bus-df08tz66.js → location-services-df08tz66.js} +0 -0
- /package/dist/chunks/{bus-dy18nga0.js → location-services-dy18nga0.js} +0 -0
- /package/dist/chunks/{bus-e3qxr5gk.js → location-services-e3qxr5gk.js} +0 -0
- /package/dist/chunks/{bus-e5kj55wp.js → location-services-e5kj55wp.js} +0 -0
- /package/dist/chunks/{bus-e73j6tqm.js → location-services-e73j6tqm.js} +0 -0
- /package/dist/chunks/{bus-ec1grn59.js → location-services-ec1grn59.js} +0 -0
- /package/dist/chunks/{bus-eh3zwz77.js → location-services-eh3zwz77.js} +0 -0
- /package/dist/chunks/{bus-emrn6kk6.js → location-services-emrn6kk6.js} +0 -0
- /package/dist/chunks/{bus-f0mxakyp.js → location-services-f0mxakyp.js} +0 -0
- /package/dist/chunks/{bus-f6n9ztr4.js → location-services-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{bus-faypxj3z.js → location-services-faypxj3z.js} +0 -0
- /package/dist/chunks/{bus-fd410y7t.js → location-services-fd410y7t.js} +0 -0
- /package/dist/chunks/{bus-fxgpk5d8.js → location-services-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{bus-g4wezp1m.js → location-services-g4wezp1m.js} +0 -0
- /package/dist/chunks/{bus-g86h250q.js → location-services-g86h250q.js} +0 -0
- /package/dist/chunks/{bus-gebd4c9n.js → location-services-gebd4c9n.js} +0 -0
- /package/dist/chunks/{bus-gftt206x.js → location-services-gftt206x.js} +0 -0
- /package/dist/chunks/{bus-hjbc5kem.js → location-services-hjbc5kem.js} +0 -0
- /package/dist/chunks/{bus-hk9envan.js → location-services-hk9envan.js} +0 -0
- /package/dist/chunks/{bus-j2ntwpah.js → location-services-j2ntwpah.js} +0 -0
- /package/dist/chunks/{bus-j5zkgpj8.js → location-services-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{bus-jjkms2e6.js → location-services-jjkms2e6.js} +0 -0
- /package/dist/chunks/{bus-jr7sbwjy.js → location-services-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{bus-jwfs4k6c.js → location-services-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{bus-jzg6c2d5.js → location-services-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{bus-mp448xyj.js → location-services-mp448xyj.js} +0 -0
- /package/dist/chunks/{bus-msx8hqn2.js → location-services-msx8hqn2.js} +0 -0
- /package/dist/chunks/{bus-n05xt0ee.js → location-services-n05xt0ee.js} +0 -0
- /package/dist/chunks/{bus-n3j8tn72.js → location-services-n3j8tn72.js} +0 -0
- /package/dist/chunks/{bus-njntx4h6.js → location-services-njntx4h6.js} +0 -0
- /package/dist/chunks/{bus-q3sfg36h.js → location-services-q3sfg36h.js} +0 -0
- /package/dist/chunks/{bus-q74kybfr.js → location-services-q74kybfr.js} +0 -0
- /package/dist/chunks/{bus-qaymkmh1.js → location-services-qaymkmh1.js} +0 -0
- /package/dist/chunks/{bus-qb87gjwd.js → location-services-qb87gjwd.js} +0 -0
- /package/dist/chunks/{bus-qfa1cgps.js → location-services-qfa1cgps.js} +0 -0
- /package/dist/chunks/{bus-qg3g05ea.js → location-services-qg3g05ea.js} +0 -0
- /package/dist/chunks/{bus-qrg20bc0.js → location-services-qrg20bc0.js} +0 -0
- /package/dist/chunks/{bus-rcb2kzg1.js → location-services-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{bus-sdp7kfr6.js → location-services-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{bus-ssg3fenm.js → location-services-ssg3fenm.js} +0 -0
- /package/dist/chunks/{bus-w803qqfp.js → location-services-w803qqfp.js} +0 -0
- /package/dist/chunks/{bus-wc3fc9cn.js → location-services-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{bus-wer8tq1h.js → location-services-wer8tq1h.js} +0 -0
- /package/dist/chunks/{bus-wtztk69x.js → location-services-wtztk69x.js} +0 -0
- /package/dist/chunks/{bus-x0ckcb58.js → location-services-x0ckcb58.js} +0 -0
- /package/dist/chunks/{bus-x61499pn.js → location-services-x61499pn.js} +0 -0
- /package/dist/chunks/{bus-y44na4kk.js → location-services-y44na4kk.js} +0 -0
- /package/dist/chunks/{bus-y8cydn3q.js → location-services-y8cydn3q.js} +0 -0
- /package/dist/chunks/{bus-y8f7s663.js → location-services-y8f7s663.js} +0 -0
- /package/dist/chunks/{bus-ygaqb7jw.js → location-services-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{bus-ym463w8f.js → location-services-ym463w8f.js} +0 -0
- /package/dist/chunks/{bus-z5v4ffb3.js → location-services-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{bus-z9919s4g.js → location-services-z9919s4g.js} +0 -0
|
@@ -1,27 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./location-services-17ckmk6r.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./location-services-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
10
|
key2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-services-x661k3y3.js";
|
|
12
12
|
import {
|
|
13
13
|
ID14,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
14
|
+
Service74,
|
|
15
|
+
node78,
|
|
16
|
+
Event17
|
|
17
|
+
} from "./location-services-6z87w78t.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
19
|
+
Service79,
|
|
20
|
+
node83
|
|
21
|
+
} from "./location-services-rb7qyrmw.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./location-services-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 = {};
|
|
@@ -29,13 +38,13 @@ __export(exports_provider3, {
|
|
|
29
38
|
AISDK_PREFIX: () => AISDK_PREFIX2,
|
|
30
39
|
Compaction: () => Compaction3,
|
|
31
40
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS3,
|
|
32
|
-
Event: () =>
|
|
41
|
+
Event: () => Event16,
|
|
33
42
|
ID: () => ID13,
|
|
34
|
-
Info: () =>
|
|
43
|
+
Info: () => Info21,
|
|
35
44
|
LoadError: () => LoadError3,
|
|
36
45
|
Provider: () => exports_provider3,
|
|
37
46
|
Request: () => Request3,
|
|
38
|
-
Service: () =>
|
|
47
|
+
Service: () => Service73,
|
|
39
48
|
Settings: () => Settings2,
|
|
40
49
|
Transport: () => Transport2,
|
|
41
50
|
aisdk: () => aisdk2,
|
|
@@ -45,12 +54,12 @@ __export(exports_provider3, {
|
|
|
45
54
|
mergeOverlay: () => mergeOverlay2,
|
|
46
55
|
modelSettings: () => modelSettings2,
|
|
47
56
|
nativeSettings: () => nativeSettings2,
|
|
48
|
-
node: () =>
|
|
57
|
+
node: () => node77,
|
|
49
58
|
packageName: () => packageName2,
|
|
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,266 +68,7 @@ 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
|
-
"@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
|
|
118
|
-
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
119
|
-
};
|
|
120
|
-
var protocols = (name) => ({
|
|
121
|
-
"@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
|
|
122
|
-
"@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
|
|
123
|
-
"@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
|
|
124
|
-
});
|
|
125
|
-
var HOSTS = {
|
|
126
|
-
alibaba: protocols("alibaba"),
|
|
127
|
-
"alibaba-cn": protocols("alibaba"),
|
|
128
|
-
"alibaba-coding-plan": protocols("alibaba"),
|
|
129
|
-
"alibaba-coding-plan-cn": protocols("alibaba"),
|
|
130
|
-
"alibaba-token-plan": protocols("alibaba"),
|
|
131
|
-
"alibaba-token-plan-cn": protocols("alibaba"),
|
|
132
|
-
baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
|
|
133
|
-
"cloudflare-ai-gateway": {
|
|
134
|
-
"@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
135
|
-
"@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
136
|
-
"@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
137
|
-
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
138
|
-
},
|
|
139
|
-
cohere: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cohere/chat" },
|
|
140
|
-
"cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
|
|
141
|
-
deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
|
|
142
|
-
digitalocean: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/digitalocean" },
|
|
143
|
-
"fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
|
|
144
|
-
"google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
|
|
145
|
-
"kimi-for-coding": protocols("moonshot"),
|
|
146
|
-
meta: protocols("meta"),
|
|
147
|
-
minimax: protocols("minimax"),
|
|
148
|
-
"minimax-cn": protocols("minimax"),
|
|
149
|
-
"minimax-coding-plan": protocols("minimax"),
|
|
150
|
-
"minimax-cn-coding-plan": protocols("minimax"),
|
|
151
|
-
moonshotai: protocols("moonshot"),
|
|
152
|
-
"moonshotai-cn": protocols("moonshot"),
|
|
153
|
-
zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
154
|
-
"zai-coding-plan": protocols("zai-coding-plan"),
|
|
155
|
-
zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
156
|
-
"zhipuai-coding-plan": protocols("zai-coding-plan")
|
|
157
|
-
};
|
|
158
|
-
var NATIVE = new Set([
|
|
159
|
-
...Object.values(PACKAGES),
|
|
160
|
-
...Object.values(HOSTS).flatMap((host) => Object.values(host)),
|
|
161
|
-
"@opencode/ai/providers/azure/chat",
|
|
162
|
-
"@opencode/ai/providers/amazon-bedrock/mantle",
|
|
163
|
-
"@opencode/ai/providers/amazon-bedrock/mantle/chat",
|
|
164
|
-
"@opencode/ai/providers/amazon-bedrock/mantle/responses"
|
|
165
|
-
]);
|
|
166
|
-
function native2(npm, context) {
|
|
167
|
-
const host = HOSTS[context.providerID]?.[npm];
|
|
168
|
-
if (host)
|
|
169
|
-
return host;
|
|
170
|
-
if (npm === "@ai-sdk/amazon-bedrock/mantle")
|
|
171
|
-
return mantle(context.modelID);
|
|
172
|
-
if (npm === "@ai-sdk/azure" && context.settings?.useCompletionUrls === true)
|
|
173
|
-
return "@opencode/ai/providers/azure/chat";
|
|
174
|
-
return PACKAGES[npm];
|
|
175
|
-
}
|
|
176
|
-
var mantle = (modelID) => {
|
|
177
|
-
if (modelID === undefined)
|
|
178
|
-
return "@opencode/ai/providers/amazon-bedrock/mantle";
|
|
179
|
-
return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
|
|
180
|
-
};
|
|
181
|
-
function resolve(specifier, context) {
|
|
182
|
-
const npm = packageName2(specifier);
|
|
183
|
-
if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
|
|
184
|
-
return native2(npm, context);
|
|
185
|
-
if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
|
|
186
|
-
return mantle(context.modelID);
|
|
187
|
-
if (npm === "@opencode/ai/providers/azure/responses" && context.settings?.useCompletionUrls === true)
|
|
188
|
-
return "@opencode/ai/providers/azure/chat";
|
|
189
|
-
return NATIVE.has(npm) ? npm : undefined;
|
|
190
|
-
}
|
|
191
|
-
function options(replacement, modelID, settings) {
|
|
192
|
-
const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
|
|
193
|
-
const kept = Struct.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
|
|
194
|
-
const thinking = converse ? bedrockThinking(modelID, settings) : undefined;
|
|
195
|
-
return {
|
|
196
|
-
settings: {
|
|
197
|
-
...replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
|
|
198
|
-
...thinking === undefined ? {} : { thinking }
|
|
199
|
-
},
|
|
200
|
-
...settings.headers === undefined ? {} : { headers: settings.headers },
|
|
201
|
-
...settings.extraBody === undefined ? {} : { body: settings.extraBody },
|
|
202
|
-
...converse ? bedrockRequest(modelID, settings) : {},
|
|
203
|
-
...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
var BEDROCK_KEYS = [
|
|
207
|
-
"bearerToken",
|
|
208
|
-
"endpoint",
|
|
209
|
-
"credentials",
|
|
210
|
-
"credentialProvider",
|
|
211
|
-
"accessKeyId",
|
|
212
|
-
"secretAccessKey",
|
|
213
|
-
"sessionToken"
|
|
214
|
-
];
|
|
215
|
-
var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
|
|
216
|
-
function bedrockSettings(settings, converse) {
|
|
217
|
-
const region = settings.region ?? settings.credentials?.region;
|
|
218
|
-
const credentials = settings.credentials ?? settings;
|
|
219
|
-
const baseURL = settings.baseURL ?? settings.endpoint;
|
|
220
|
-
return {
|
|
221
|
-
...Struct.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
|
|
222
|
-
...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
|
|
223
|
-
...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
|
|
224
|
-
...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
|
|
225
|
-
credentials: {
|
|
226
|
-
...region === undefined ? {} : { region },
|
|
227
|
-
accessKeyId: credentials.accessKeyId,
|
|
228
|
-
secretAccessKey: credentials.secretAccessKey,
|
|
229
|
-
...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
function bedrockThinking(modelID, settings) {
|
|
235
|
-
const reasoning = settings.reasoningConfig;
|
|
236
|
-
if (!modelID?.includes("anthropic") || reasoning?.type !== "enabled" || reasoning.budgetTokens === undefined)
|
|
237
|
-
return;
|
|
238
|
-
return { type: "enabled", budgetTokens: reasoning.budgetTokens };
|
|
239
|
-
}
|
|
240
|
-
function bedrockRequest(modelID, settings) {
|
|
241
|
-
const additional = settings.additionalModelRequestFields ?? {};
|
|
242
|
-
const reasoning = settings.reasoningConfig;
|
|
243
|
-
const anthropic = modelID?.includes("anthropic") ?? false;
|
|
244
|
-
const openai = modelID?.includes("openai.") ?? false;
|
|
245
|
-
const harmony = modelID?.includes("openai.gpt-oss") ?? false;
|
|
246
|
-
const effort = reasoning?.maxReasoningEffort;
|
|
247
|
-
const type = reasoning?.type;
|
|
248
|
-
const budget = reasoning?.budgetTokens;
|
|
249
|
-
const display = reasoning?.display;
|
|
250
|
-
const betas = settings.anthropicBeta ?? [];
|
|
251
|
-
const fields = mergeOverlay2(additional, {
|
|
252
|
-
...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
|
|
253
|
-
...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
|
|
254
|
-
...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
|
|
255
|
-
...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
|
|
256
|
-
...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
|
|
257
|
-
...!anthropic && !openai && effort !== undefined ? {
|
|
258
|
-
reasoningConfig: {
|
|
259
|
-
...type === undefined || type === "adaptive" ? {} : { type },
|
|
260
|
-
...budget === undefined ? {} : { budgetTokens: budget },
|
|
261
|
-
maxReasoningEffort: effort
|
|
262
|
-
}
|
|
263
|
-
} : {}
|
|
264
|
-
});
|
|
265
|
-
const body = {
|
|
266
|
-
...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
|
|
267
|
-
...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
|
|
268
|
-
};
|
|
269
|
-
return Object.keys(body).length === 0 ? {} : { body };
|
|
270
|
-
}
|
|
271
|
-
var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
|
|
272
|
-
function openRouterRequest(settings) {
|
|
273
|
-
const headers = mergeHeaders2({
|
|
274
|
-
...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
|
|
275
|
-
...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
|
|
276
|
-
...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
|
|
277
|
-
}, settings.headers) ?? {};
|
|
278
|
-
return Object.keys(headers).length === 0 ? {} : { headers };
|
|
279
|
-
}
|
|
280
|
-
var lenient = (schema) => Schema.optional(Schema.UndefinedOr(schema).pipe(Schema.catchDecoding(() => Effect.succeed(Option.some(undefined)))));
|
|
281
|
-
var Credentials = Schema.Struct({
|
|
282
|
-
accessKeyId: Schema.String,
|
|
283
|
-
secretAccessKey: Schema.String,
|
|
284
|
-
sessionToken: lenient(Schema.String),
|
|
285
|
-
region: lenient(Schema.String)
|
|
286
|
-
});
|
|
287
|
-
var Legacy = Schema.StructWithRest(Schema.Struct({
|
|
288
|
-
apiKey: lenient(Schema.String),
|
|
289
|
-
baseURL: lenient(Schema.String),
|
|
290
|
-
headers: lenient(Schema.Record(Schema.String, Schema.String)),
|
|
291
|
-
extraBody: lenient(Schema.Record(Schema.String, Schema.Unknown)),
|
|
292
|
-
useCompletionUrls: lenient(Schema.Boolean),
|
|
293
|
-
auth: lenient(Schema.Literals(["bearer", "sigv4"])),
|
|
294
|
-
bearerToken: lenient(Schema.String),
|
|
295
|
-
endpoint: lenient(Schema.String),
|
|
296
|
-
region: lenient(Schema.String),
|
|
297
|
-
credentials: lenient(Credentials),
|
|
298
|
-
accessKeyId: lenient(Schema.String),
|
|
299
|
-
secretAccessKey: lenient(Schema.String),
|
|
300
|
-
sessionToken: lenient(Schema.String),
|
|
301
|
-
anthropicBeta: lenient(Schema.Array(Schema.String)),
|
|
302
|
-
serviceTier: lenient(Schema.String),
|
|
303
|
-
reasoningConfig: lenient(Schema.Struct({
|
|
304
|
-
type: lenient(Schema.String),
|
|
305
|
-
display: lenient(Schema.String),
|
|
306
|
-
maxReasoningEffort: lenient(Schema.String),
|
|
307
|
-
budgetTokens: lenient(Schema.Number)
|
|
308
|
-
})),
|
|
309
|
-
additionalModelRequestFields: lenient(Schema.StructWithRest(Schema.Struct({
|
|
310
|
-
anthropic_beta: lenient(Schema.Array(Schema.String)),
|
|
311
|
-
output_config: lenient(Schema.Record(Schema.String, Schema.Unknown)),
|
|
312
|
-
reasoning: lenient(Schema.Record(Schema.String, Schema.Unknown))
|
|
313
|
-
}), [Schema.Record(Schema.String, Schema.Unknown)])),
|
|
314
|
-
appName: lenient(Schema.String),
|
|
315
|
-
appUrl: lenient(Schema.String),
|
|
316
|
-
api_keys: lenient(Schema.Record(Schema.String, Schema.String))
|
|
317
|
-
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
318
|
-
var decode = Schema.decodeUnknownSync(Legacy);
|
|
319
|
-
|
|
320
|
-
// src/provider.ts
|
|
321
|
-
import { Event as Event17 } from "@opencode/schema/provider";
|
|
71
|
+
import { Event as Event16 } from "@opencode/schema/provider";
|
|
322
72
|
var ID13 = Provider.ID;
|
|
323
73
|
var AISDK_PREFIX2 = "aisdk:";
|
|
324
74
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
@@ -330,12 +80,12 @@ function packageName2(value) {
|
|
|
330
80
|
return value;
|
|
331
81
|
return value.slice(AISDK_PREFIX2.length);
|
|
332
82
|
}
|
|
333
|
-
var JsonRecord =
|
|
334
|
-
var decodeJsonRecord =
|
|
83
|
+
var JsonRecord = Schema.Record(Schema.String, Schema.Json);
|
|
84
|
+
var decodeJsonRecord = Schema.decodeUnknownSync(JsonRecord);
|
|
335
85
|
|
|
336
|
-
class LoadError3 extends
|
|
337
|
-
package:
|
|
338
|
-
cause:
|
|
86
|
+
class LoadError3 extends Schema.TaggedError()("Provider.LoadError", {
|
|
87
|
+
package: Schema.String,
|
|
88
|
+
cause: Schema.Defect()
|
|
339
89
|
}) {
|
|
340
90
|
}
|
|
341
91
|
var packages = new Map;
|
|
@@ -400,12 +150,12 @@ var builtins = new Map([
|
|
|
400
150
|
() => import("@opencode/ai/providers/zai-coding-plan/responses")
|
|
401
151
|
]
|
|
402
152
|
]);
|
|
403
|
-
var loadPackage2 =
|
|
153
|
+
var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
|
|
404
154
|
const specifier = packageName2(input);
|
|
405
155
|
const builtin = builtins.get(specifier);
|
|
406
156
|
if (builtin)
|
|
407
157
|
return yield* importPackage(specifier, specifier, builtin);
|
|
408
|
-
const resolved = yield*
|
|
158
|
+
const resolved = yield* Effect.sync(() => {
|
|
409
159
|
if (specifier.startsWith("file://") || specifier.startsWith("@opencode/ai/"))
|
|
410
160
|
return specifier;
|
|
411
161
|
try {
|
|
@@ -424,8 +174,8 @@ var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
|
|
|
424
174
|
}
|
|
425
175
|
const parts = specifier.split("/");
|
|
426
176
|
const root = specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0] ?? specifier;
|
|
427
|
-
const installed = yield* npm.add(root).pipe(
|
|
428
|
-
const entrypoint = yield*
|
|
177
|
+
const installed = yield* npm.add(root).pipe(Effect.mapError((cause) => new LoadError3({ package: specifier, cause })));
|
|
178
|
+
const entrypoint = yield* Effect.try({
|
|
429
179
|
try: () => resolveModule(specifier, installed.directory),
|
|
430
180
|
catch: (cause) => new LoadError3({ package: specifier, cause })
|
|
431
181
|
});
|
|
@@ -434,15 +184,15 @@ var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
|
|
|
434
184
|
var CORE_KEYS = ["chunkTimeout", "compaction", "fetch", "headerTimeout", "timeout", "transport"];
|
|
435
185
|
var PROVIDER_ONLY_KEYS = ["chunkTimeout", "headerTimeout", "timeout", "transport"];
|
|
436
186
|
function nativeSettings2(settings) {
|
|
437
|
-
return
|
|
187
|
+
return Struct.omit(settings, CORE_KEYS);
|
|
438
188
|
}
|
|
439
189
|
function modelSettings2(settings) {
|
|
440
|
-
return settings &&
|
|
190
|
+
return settings && Struct.omit(settings, PROVIDER_ONLY_KEYS);
|
|
441
191
|
}
|
|
442
|
-
var decodeTimeout =
|
|
192
|
+
var decodeTimeout = Schema.decodeUnknownOption(HttpTimeout);
|
|
443
193
|
var DEFAULT_TIMEOUT_MS3 = 300000;
|
|
444
194
|
function timeout2(value) {
|
|
445
|
-
return
|
|
195
|
+
return Option.getOrUndefined(decodeTimeout(value));
|
|
446
196
|
}
|
|
447
197
|
function timeouts2(settings) {
|
|
448
198
|
return {
|
|
@@ -480,9 +230,9 @@ var Request3 = Provider.Request;
|
|
|
480
230
|
var Compaction3 = Provider.Compaction;
|
|
481
231
|
var Transport2 = Provider.Transport;
|
|
482
232
|
var Settings2 = Provider.Settings;
|
|
483
|
-
var
|
|
233
|
+
var Info21 = Provider.Info;
|
|
484
234
|
|
|
485
|
-
class
|
|
235
|
+
class Service73 extends Context.Service()("@opencode/Provider") {
|
|
486
236
|
}
|
|
487
237
|
var definitions = new WeakMap;
|
|
488
238
|
function index(providerID, models) {
|
|
@@ -495,10 +245,10 @@ function index(providerID, models) {
|
|
|
495
245
|
definitions.set(models, indexes);
|
|
496
246
|
return result;
|
|
497
247
|
}
|
|
498
|
-
var layer = Layer.effect(
|
|
499
|
-
const bus = yield*
|
|
500
|
-
const integrations = yield*
|
|
501
|
-
const location = yield*
|
|
248
|
+
var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
249
|
+
const bus = yield* Service83;
|
|
250
|
+
const integrations = yield* Service74;
|
|
251
|
+
const location = yield* Service79;
|
|
502
252
|
const state = create3({
|
|
503
253
|
name: "provider",
|
|
504
254
|
initial: () => new Map,
|
|
@@ -509,7 +259,7 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
|
|
|
509
259
|
const current = records.get(id);
|
|
510
260
|
if (current)
|
|
511
261
|
return current;
|
|
512
|
-
const added = { provider:
|
|
262
|
+
const added = { provider: Info21.empty(id), models: new Map };
|
|
513
263
|
records.set(id, added);
|
|
514
264
|
maps.add(added.models);
|
|
515
265
|
return added;
|
|
@@ -577,9 +327,9 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
|
|
|
577
327
|
},
|
|
578
328
|
notify: () => notify
|
|
579
329
|
});
|
|
580
|
-
yield*
|
|
330
|
+
yield* Effect.addFinalizer(() => shutdown2(state.reload()));
|
|
581
331
|
let cached;
|
|
582
|
-
const snapshot =
|
|
332
|
+
const snapshot = Effect.fn("Provider.snapshot")(function* () {
|
|
583
333
|
while (true) {
|
|
584
334
|
const revision = integrations.revision();
|
|
585
335
|
const records = state.get();
|
|
@@ -607,7 +357,7 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
|
|
|
607
357
|
}
|
|
608
358
|
});
|
|
609
359
|
let published;
|
|
610
|
-
const notify =
|
|
360
|
+
const notify = Effect.gen(function* () {
|
|
611
361
|
const value = yield* snapshot();
|
|
612
362
|
if (value === published)
|
|
613
363
|
return;
|
|
@@ -616,19 +366,19 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
|
|
|
616
366
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
617
367
|
});
|
|
618
368
|
});
|
|
619
|
-
yield* bus.subscribe([
|
|
620
|
-
return
|
|
369
|
+
yield* bus.subscribe([Event17.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
370
|
+
return Service73.of({
|
|
621
371
|
transform: state.transform,
|
|
622
372
|
reload: state.reload,
|
|
623
|
-
get:
|
|
624
|
-
all:
|
|
625
|
-
available:
|
|
373
|
+
get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
374
|
+
all: Effect.fn("Provider.all")(() => Effect.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
|
|
375
|
+
available: Effect.fn("Provider.available")(() => snapshot().pipe(Effect.map((value) => value.providers))),
|
|
626
376
|
snapshot
|
|
627
377
|
});
|
|
628
378
|
}));
|
|
629
|
-
var
|
|
630
|
-
var importPackage =
|
|
631
|
-
const module = yield*
|
|
379
|
+
var node77 = makeLocationNode({ service: Service73, layer, deps: [node87, node78, node83] });
|
|
380
|
+
var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
381
|
+
const module = yield* Effect.tryPromise({
|
|
632
382
|
try: () => {
|
|
633
383
|
const existing = packages.get(entrypoint);
|
|
634
384
|
if (existing)
|
|
@@ -648,4 +398,254 @@ var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, e
|
|
|
648
398
|
return module;
|
|
649
399
|
});
|
|
650
400
|
|
|
651
|
-
|
|
401
|
+
// src/aisdk-native.ts
|
|
402
|
+
function rewrite2(target, input) {
|
|
403
|
+
if (input.specifier === undefined)
|
|
404
|
+
return;
|
|
405
|
+
const plain = resolve(input.specifier, input);
|
|
406
|
+
if (!plain)
|
|
407
|
+
return;
|
|
408
|
+
const settings = decode(target.settings ?? {});
|
|
409
|
+
const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
|
|
410
|
+
const translated = options(replacement, input.modelID, settings);
|
|
411
|
+
if (target.package !== undefined || replacement !== input.specifier)
|
|
412
|
+
target.package = replacement;
|
|
413
|
+
target.settings = target.settings === undefined ? undefined : {
|
|
414
|
+
...translated.settings,
|
|
415
|
+
...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
|
|
416
|
+
};
|
|
417
|
+
target.headers = mergeHeaders2(translated.headers, target.headers);
|
|
418
|
+
target.body = mergeOverlay2(translated.body, target.body);
|
|
419
|
+
target.variants = target.variants?.map((variant) => {
|
|
420
|
+
const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
|
|
421
|
+
const headers = mergeHeaders2(overlay.headers, variant.headers);
|
|
422
|
+
const body = mergeOverlay2(overlay.body, variant.body);
|
|
423
|
+
return {
|
|
424
|
+
id: variant.id,
|
|
425
|
+
...variant.settings === undefined ? {} : { settings: overlay.settings },
|
|
426
|
+
...headers === undefined ? {} : { headers },
|
|
427
|
+
...body === undefined ? {} : { body }
|
|
428
|
+
};
|
|
429
|
+
});
|
|
430
|
+
}
|
|
431
|
+
var PACKAGES = {
|
|
432
|
+
"@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
|
|
433
|
+
"@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
|
|
434
|
+
"@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
|
|
435
|
+
"@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
|
|
436
|
+
"@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
|
|
437
|
+
"@ai-sdk/cohere": "@opencode/ai/providers/cohere",
|
|
438
|
+
"@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
|
|
439
|
+
"@ai-sdk/google": "@opencode/ai/providers/google",
|
|
440
|
+
"@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
|
|
441
|
+
"@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
|
|
442
|
+
"@ai-sdk/groq": "@opencode/ai/providers/groq",
|
|
443
|
+
"@ai-sdk/mistral": "@opencode/ai/providers/mistral",
|
|
444
|
+
"@ai-sdk/openai": "@opencode/ai/providers/openai",
|
|
445
|
+
"@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
|
|
446
|
+
"@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
|
|
447
|
+
"@ai-sdk/xai": "@opencode/ai/providers/xai",
|
|
448
|
+
"@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
|
|
449
|
+
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
450
|
+
};
|
|
451
|
+
var protocols = (name) => ({
|
|
452
|
+
"@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
|
|
453
|
+
"@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
|
|
454
|
+
"@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
|
|
455
|
+
});
|
|
456
|
+
var HOSTS = {
|
|
457
|
+
alibaba: protocols("alibaba"),
|
|
458
|
+
"alibaba-cn": protocols("alibaba"),
|
|
459
|
+
"alibaba-coding-plan": protocols("alibaba"),
|
|
460
|
+
"alibaba-coding-plan-cn": protocols("alibaba"),
|
|
461
|
+
"alibaba-token-plan": protocols("alibaba"),
|
|
462
|
+
"alibaba-token-plan-cn": protocols("alibaba"),
|
|
463
|
+
baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
|
|
464
|
+
"cloudflare-ai-gateway": {
|
|
465
|
+
"@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
466
|
+
"@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
467
|
+
"@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
468
|
+
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
469
|
+
},
|
|
470
|
+
cohere: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cohere/chat" },
|
|
471
|
+
"cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
|
|
472
|
+
deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
|
|
473
|
+
digitalocean: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/digitalocean" },
|
|
474
|
+
"fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
|
|
475
|
+
"google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
|
|
476
|
+
"kimi-for-coding": protocols("moonshot"),
|
|
477
|
+
meta: protocols("meta"),
|
|
478
|
+
minimax: protocols("minimax"),
|
|
479
|
+
"minimax-cn": protocols("minimax"),
|
|
480
|
+
"minimax-coding-plan": protocols("minimax"),
|
|
481
|
+
"minimax-cn-coding-plan": protocols("minimax"),
|
|
482
|
+
moonshotai: protocols("moonshot"),
|
|
483
|
+
"moonshotai-cn": protocols("moonshot"),
|
|
484
|
+
zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
485
|
+
"zai-coding-plan": protocols("zai-coding-plan"),
|
|
486
|
+
zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
487
|
+
"zhipuai-coding-plan": protocols("zai-coding-plan")
|
|
488
|
+
};
|
|
489
|
+
var NATIVE = new Set([
|
|
490
|
+
...Object.values(PACKAGES),
|
|
491
|
+
...Object.values(HOSTS).flatMap((host) => Object.values(host)),
|
|
492
|
+
"@opencode/ai/providers/azure/chat",
|
|
493
|
+
"@opencode/ai/providers/amazon-bedrock/mantle",
|
|
494
|
+
"@opencode/ai/providers/amazon-bedrock/mantle/chat",
|
|
495
|
+
"@opencode/ai/providers/amazon-bedrock/mantle/responses"
|
|
496
|
+
]);
|
|
497
|
+
function native2(npm, context) {
|
|
498
|
+
const host = HOSTS[context.providerID]?.[npm];
|
|
499
|
+
if (host)
|
|
500
|
+
return host;
|
|
501
|
+
if (npm === "@ai-sdk/amazon-bedrock/mantle")
|
|
502
|
+
return mantle(context.modelID);
|
|
503
|
+
if (npm === "@ai-sdk/azure" && context.settings?.useCompletionUrls === true)
|
|
504
|
+
return "@opencode/ai/providers/azure/chat";
|
|
505
|
+
return PACKAGES[npm];
|
|
506
|
+
}
|
|
507
|
+
var mantle = (modelID) => {
|
|
508
|
+
if (modelID === undefined)
|
|
509
|
+
return "@opencode/ai/providers/amazon-bedrock/mantle";
|
|
510
|
+
return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
|
|
511
|
+
};
|
|
512
|
+
function resolve(specifier, context) {
|
|
513
|
+
const npm = packageName2(specifier);
|
|
514
|
+
if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
|
|
515
|
+
return native2(npm, context);
|
|
516
|
+
if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
|
|
517
|
+
return mantle(context.modelID);
|
|
518
|
+
if (npm === "@opencode/ai/providers/azure/responses" && context.settings?.useCompletionUrls === true)
|
|
519
|
+
return "@opencode/ai/providers/azure/chat";
|
|
520
|
+
return NATIVE.has(npm) ? npm : undefined;
|
|
521
|
+
}
|
|
522
|
+
function options(replacement, modelID, settings) {
|
|
523
|
+
const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
|
|
524
|
+
const kept = Struct2.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
|
|
525
|
+
const thinking = converse ? bedrockThinking(modelID, settings) : undefined;
|
|
526
|
+
return {
|
|
527
|
+
settings: {
|
|
528
|
+
...replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
|
|
529
|
+
...thinking === undefined ? {} : { thinking }
|
|
530
|
+
},
|
|
531
|
+
...settings.headers === undefined ? {} : { headers: settings.headers },
|
|
532
|
+
...settings.extraBody === undefined ? {} : { body: settings.extraBody },
|
|
533
|
+
...converse ? bedrockRequest(modelID, settings) : {},
|
|
534
|
+
...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
|
|
535
|
+
};
|
|
536
|
+
}
|
|
537
|
+
var BEDROCK_KEYS = [
|
|
538
|
+
"bearerToken",
|
|
539
|
+
"endpoint",
|
|
540
|
+
"credentials",
|
|
541
|
+
"credentialProvider",
|
|
542
|
+
"accessKeyId",
|
|
543
|
+
"secretAccessKey",
|
|
544
|
+
"sessionToken"
|
|
545
|
+
];
|
|
546
|
+
var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
|
|
547
|
+
function bedrockSettings(settings, converse) {
|
|
548
|
+
const region = settings.region ?? settings.credentials?.region;
|
|
549
|
+
const credentials = settings.credentials ?? settings;
|
|
550
|
+
const baseURL = settings.baseURL ?? settings.endpoint;
|
|
551
|
+
return {
|
|
552
|
+
...Struct2.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
|
|
553
|
+
...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
|
|
554
|
+
...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
|
|
555
|
+
...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
|
|
556
|
+
credentials: {
|
|
557
|
+
...region === undefined ? {} : { region },
|
|
558
|
+
accessKeyId: credentials.accessKeyId,
|
|
559
|
+
secretAccessKey: credentials.secretAccessKey,
|
|
560
|
+
...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
function bedrockThinking(modelID, settings) {
|
|
566
|
+
const reasoning = settings.reasoningConfig;
|
|
567
|
+
if (!modelID?.includes("anthropic") || reasoning?.type !== "enabled" || reasoning.budgetTokens === undefined)
|
|
568
|
+
return;
|
|
569
|
+
return { type: "enabled", budgetTokens: reasoning.budgetTokens };
|
|
570
|
+
}
|
|
571
|
+
function bedrockRequest(modelID, settings) {
|
|
572
|
+
const additional = settings.additionalModelRequestFields ?? {};
|
|
573
|
+
const reasoning = settings.reasoningConfig;
|
|
574
|
+
const anthropic = modelID?.includes("anthropic") ?? false;
|
|
575
|
+
const openai = modelID?.includes("openai.") ?? false;
|
|
576
|
+
const harmony = modelID?.includes("openai.gpt-oss") ?? false;
|
|
577
|
+
const effort = reasoning?.maxReasoningEffort;
|
|
578
|
+
const type = reasoning?.type;
|
|
579
|
+
const budget = reasoning?.budgetTokens;
|
|
580
|
+
const display = reasoning?.display;
|
|
581
|
+
const betas = settings.anthropicBeta ?? [];
|
|
582
|
+
const fields = mergeOverlay2(additional, {
|
|
583
|
+
...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
|
|
584
|
+
...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
|
|
585
|
+
...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
|
|
586
|
+
...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
|
|
587
|
+
...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
|
|
588
|
+
...!anthropic && !openai && effort !== undefined ? {
|
|
589
|
+
reasoningConfig: {
|
|
590
|
+
...type === undefined || type === "adaptive" ? {} : { type },
|
|
591
|
+
...budget === undefined ? {} : { budgetTokens: budget },
|
|
592
|
+
maxReasoningEffort: effort
|
|
593
|
+
}
|
|
594
|
+
} : {}
|
|
595
|
+
});
|
|
596
|
+
const body = {
|
|
597
|
+
...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
|
|
598
|
+
...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
|
|
599
|
+
};
|
|
600
|
+
return Object.keys(body).length === 0 ? {} : { body };
|
|
601
|
+
}
|
|
602
|
+
var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
|
|
603
|
+
function openRouterRequest(settings) {
|
|
604
|
+
const headers = mergeHeaders2({
|
|
605
|
+
...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
|
|
606
|
+
...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
|
|
607
|
+
...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
|
|
608
|
+
}, settings.headers) ?? {};
|
|
609
|
+
return Object.keys(headers).length === 0 ? {} : { headers };
|
|
610
|
+
}
|
|
611
|
+
var lenient = (schema) => Schema2.optional(Schema2.UndefinedOr(schema).pipe(Schema2.catchDecoding(() => Effect2.succeed(Option2.some(undefined)))));
|
|
612
|
+
var Credentials = Schema2.Struct({
|
|
613
|
+
accessKeyId: Schema2.String,
|
|
614
|
+
secretAccessKey: Schema2.String,
|
|
615
|
+
sessionToken: lenient(Schema2.String),
|
|
616
|
+
region: lenient(Schema2.String)
|
|
617
|
+
});
|
|
618
|
+
var Legacy = Schema2.StructWithRest(Schema2.Struct({
|
|
619
|
+
apiKey: lenient(Schema2.String),
|
|
620
|
+
baseURL: lenient(Schema2.String),
|
|
621
|
+
headers: lenient(Schema2.Record(Schema2.String, Schema2.String)),
|
|
622
|
+
extraBody: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
|
|
623
|
+
useCompletionUrls: lenient(Schema2.Boolean),
|
|
624
|
+
auth: lenient(Schema2.Literals(["bearer", "sigv4"])),
|
|
625
|
+
bearerToken: lenient(Schema2.String),
|
|
626
|
+
endpoint: lenient(Schema2.String),
|
|
627
|
+
region: lenient(Schema2.String),
|
|
628
|
+
credentials: lenient(Credentials),
|
|
629
|
+
accessKeyId: lenient(Schema2.String),
|
|
630
|
+
secretAccessKey: lenient(Schema2.String),
|
|
631
|
+
sessionToken: lenient(Schema2.String),
|
|
632
|
+
anthropicBeta: lenient(Schema2.Array(Schema2.String)),
|
|
633
|
+
serviceTier: lenient(Schema2.String),
|
|
634
|
+
reasoningConfig: lenient(Schema2.Struct({
|
|
635
|
+
type: lenient(Schema2.String),
|
|
636
|
+
display: lenient(Schema2.String),
|
|
637
|
+
maxReasoningEffort: lenient(Schema2.String),
|
|
638
|
+
budgetTokens: lenient(Schema2.Number)
|
|
639
|
+
})),
|
|
640
|
+
additionalModelRequestFields: lenient(Schema2.StructWithRest(Schema2.Struct({
|
|
641
|
+
anthropic_beta: lenient(Schema2.Array(Schema2.String)),
|
|
642
|
+
output_config: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
|
|
643
|
+
reasoning: lenient(Schema2.Record(Schema2.String, Schema2.Unknown))
|
|
644
|
+
}), [Schema2.Record(Schema2.String, Schema2.Unknown)])),
|
|
645
|
+
appName: lenient(Schema2.String),
|
|
646
|
+
appUrl: lenient(Schema2.String),
|
|
647
|
+
api_keys: lenient(Schema2.Record(Schema2.String, Schema2.String))
|
|
648
|
+
}), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
|
|
649
|
+
var decode = Schema2.decodeUnknownSync(Legacy);
|
|
650
|
+
|
|
651
|
+
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, Info21, Service73, node77, exports_provider3, Event16 };
|