@opencode/core 0.0.0-dev-20623 → 0.0.0-dev-20625
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +83 -83
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +7 -7
- package/dist/bus.js +69 -69
- package/dist/chunks/{job-5sxenjh9.js → workspace-04792bgd.js} +11 -11
- package/dist/chunks/{job-8kv8ebkg.js → workspace-077cgkzg.js} +23 -23
- package/dist/chunks/{job-eqkxs06z.js → workspace-07w59vex.js} +5 -5
- package/dist/chunks/{job-wwnyx4q7.js → workspace-08t9thee.js} +5 -5
- package/dist/chunks/{job-1p6590hc.js → workspace-0cnpbvek.js} +15 -15
- package/dist/chunks/{job-r2dnqh6n.js → workspace-0dygnakk.js} +4 -4
- package/dist/chunks/{job-gdsng6kf.js → workspace-0gh43fvp.js} +19 -19
- package/dist/chunks/{job-qgn6gcr1.js → workspace-0jwsre1p.js} +5 -5
- package/dist/chunks/{job-dettcwny.js → workspace-0k0tdk4v.js} +17 -17
- package/dist/chunks/{job-0paq2nw3.js → workspace-0paq2nw3.js} +1 -1
- package/dist/chunks/{job-0vbcp93d.js → workspace-0vbcp93d.js} +2 -2
- package/dist/chunks/{job-pamfh9kz.js → workspace-0zm4vsbv.js} +17 -17
- package/dist/chunks/{job-y509g03m.js → workspace-16m64twp.js} +14 -14
- package/dist/chunks/{job-bjz1ntmn.js → workspace-1acz6075.js} +13 -13
- package/dist/chunks/{job-k3fvar80.js → workspace-1d4zkfab.js} +42 -42
- package/dist/chunks/{job-1dazxqgg.js → workspace-1dazxqgg.js} +2 -2
- package/dist/chunks/{job-k4p6we1j.js → workspace-1e10y0rh.js} +11 -11
- package/dist/chunks/{job-2jw3dvvd.js → workspace-1fhw6qp6.js} +26 -26
- package/dist/chunks/{job-mk172kdm.js → workspace-1v8896a1.js} +11 -11
- package/dist/chunks/{job-sv9xqrp4.js → workspace-24738xn5.js} +14 -14
- package/dist/chunks/{job-2a5m3afh.js → workspace-2a5m3afh.js} +1 -1
- package/dist/chunks/{job-8he8vm74.js → workspace-2cabk1b6.js} +2 -2
- package/dist/chunks/{job-fndtdcdb.js → workspace-2d4jh34x.js} +11 -11
- package/dist/chunks/{job-x40286x4.js → workspace-2eaaba8k.js} +29 -29
- package/dist/chunks/{job-tpgsh8y4.js → workspace-2g06r5p1.js} +17 -17
- package/dist/chunks/{job-x699frg5.js → workspace-2jygvae8.js} +10 -10
- package/dist/chunks/{job-7ara208x.js → workspace-2kapx5s0.js} +24 -24
- package/dist/chunks/workspace-2qxg5hny.js +253 -0
- package/dist/chunks/{job-g65n4bbv.js → workspace-30ak4e5k.js} +11 -11
- package/dist/chunks/{job-fsgfmda0.js → workspace-35vpxd0z.js} +7 -7
- package/dist/chunks/{job-66n2k59e.js → workspace-37gg4rjc.js} +8 -8
- package/dist/chunks/{job-3cegwx68.js → workspace-3cegwx68.js} +2 -2
- package/dist/chunks/{job-r5jvba2d.js → workspace-3d5pf0rw.js} +11 -11
- package/dist/chunks/{job-3fc6dm20.js → workspace-3fc6dm20.js} +1 -1
- package/dist/chunks/{job-3hepkmqq.js → workspace-3hepkmqq.js} +1 -1
- package/dist/chunks/{job-fw6p9fde.js → workspace-3qny4s1r.js} +12 -12
- package/dist/chunks/{job-1b4m0bzf.js → workspace-3sj8yt8v.js} +4 -4
- package/dist/chunks/{job-3smtnn6g.js → workspace-3smtnn6g.js} +1 -1
- package/dist/chunks/{job-3tvqynh2.js → workspace-3tvqynh2.js} +1 -1
- package/dist/chunks/{job-n9g5bfke.js → workspace-3wfp78gc.js} +6 -6
- package/dist/chunks/{job-3zsf4n22.js → workspace-3zsf4n22.js} +1 -1
- package/dist/chunks/{job-np5w9nrh.js → workspace-49494kth.js} +18 -18
- package/dist/chunks/{job-645feetr.js → workspace-4bf12bpw.js} +5 -5
- package/dist/chunks/{job-9exa0gxn.js → workspace-4ctbs581.js} +14 -14
- package/dist/chunks/{job-90y87qeq.js → workspace-4jcpse7m.js} +15 -15
- package/dist/chunks/{job-2ccvkpx1.js → workspace-4ts7tf6z.js} +2 -2
- package/dist/chunks/{job-54ma36ye.js → workspace-54ma36ye.js} +1 -1
- package/dist/chunks/{job-mfqp6xfm.js → workspace-56gdpj1q.js} +6 -6
- package/dist/chunks/{job-ysayqecx.js → workspace-56hrvcw3.js} +42 -42
- package/dist/chunks/{job-h98pyw8b.js → workspace-57nggxpn.js} +29 -29
- package/dist/chunks/{job-ycvyrgka.js → workspace-58twkbn2.js} +11 -11
- package/dist/chunks/{job-hhetnhwk.js → workspace-5ct8ze0w.js} +14 -14
- package/dist/chunks/{job-5daktx2q.js → workspace-5daktx2q.js} +1 -1
- package/dist/chunks/{job-52s9h3x5.js → workspace-5gjk7y31.js} +4 -4
- package/dist/chunks/{job-5m9w47nd.js → workspace-5m9w47nd.js} +1 -1
- package/dist/chunks/{job-e3qxr5gk.js → workspace-5qd3pb7m.js} +2 -2
- package/dist/chunks/{job-0fwpw2g3.js → workspace-5t0mhk5g.js} +3 -3
- package/dist/chunks/{job-5t3nmthw.js → workspace-5t3nmthw.js} +2 -2
- package/dist/chunks/{job-czfptnv9.js → workspace-5xtgfte3.js} +8 -8
- package/dist/chunks/{job-mpzph9xx.js → workspace-5xvy2j9s.js} +13 -13
- package/dist/chunks/workspace-619r8v3y.js +18 -0
- package/dist/chunks/{job-zp4yaed4.js → workspace-6b43n2qe.js} +23 -23
- package/dist/chunks/{job-aevh7yhk.js → workspace-6j68t7ds.js} +1 -1
- package/dist/chunks/{job-ay8ertzz.js → workspace-6kkym95p.js} +163 -163
- package/dist/chunks/{job-ypj7v0f9.js → workspace-6n6n0wbe.js} +20 -20
- package/dist/chunks/{job-wwee1v31.js → workspace-6qpyh92k.js} +20 -20
- package/dist/chunks/{job-6xb47vfp.js → workspace-6xb47vfp.js} +1 -1
- package/dist/chunks/{job-wdg51fbj.js → workspace-6ygyve09.js} +23 -23
- package/dist/chunks/{job-g0aa2qss.js → workspace-71tv947p.js} +15 -15
- package/dist/chunks/{job-mrcp6x86.js → workspace-74f6ffmn.js} +48 -48
- package/dist/chunks/{job-tpmga8np.js → workspace-7504msxf.js} +20 -20
- package/dist/chunks/{job-7bmhse3q.js → workspace-7bmhse3q.js} +1 -1
- package/dist/chunks/{job-w60tz3av.js → workspace-7e820gef.js} +32 -32
- package/dist/chunks/{job-bq5ttdwe.js → workspace-7naznwf1.js} +6 -6
- package/dist/chunks/{job-w5q6894q.js → workspace-7w38sh68.js} +21 -21
- package/dist/chunks/{job-84h8c373.js → workspace-84h8c373.js} +2 -2
- package/dist/chunks/{job-84txncab.js → workspace-84txncab.js} +1 -1
- package/dist/chunks/{job-v260t7sv.js → workspace-86km67cx.js} +9 -9
- package/dist/chunks/{job-fm95fzh1.js → workspace-86mjrc9q.js} +63 -63
- package/dist/chunks/{job-hb84g3y6.js → workspace-8a6ws7jr.js} +9 -9
- package/dist/chunks/{job-8d7r5vzw.js → workspace-8d7r5vzw.js} +1 -1
- package/dist/chunks/{job-0ezkecwa.js → workspace-8fkq3ra9.js} +16 -16
- package/dist/chunks/{job-6q8sj0et.js → workspace-8gm8r8mn.js} +18 -18
- package/dist/chunks/{job-zf25an6g.js → workspace-8p3g3wy0.js} +11 -11
- package/dist/chunks/{job-4wrkd8nn.js → workspace-8t5jjh5c.js} +8 -8
- package/dist/chunks/{job-mjqndqed.js → workspace-8z7vm853.js} +5 -5
- package/dist/chunks/{job-7sjw0gnk.js → workspace-94yy4jsn.js} +4 -4
- package/dist/chunks/{job-435nfkrq.js → workspace-9jq6257y.js} +25 -25
- package/dist/chunks/{job-fg309kkr.js → workspace-9rebvyz3.js} +4 -4
- package/dist/chunks/{job-anry1mdf.js → workspace-9vprb1nh.js} +12 -12
- package/dist/chunks/{job-20fp9fqe.js → workspace-a3zzg5mb.js} +26 -26
- package/dist/chunks/{job-6sr3ve8g.js → workspace-a8bn8zg0.js} +21 -21
- package/dist/chunks/{job-aaet6srn.js → workspace-aaet6srn.js} +2 -2
- package/dist/chunks/{job-kdqem1hb.js → workspace-aaqcndx2.js} +39 -39
- package/dist/chunks/{job-cr793czp.js → workspace-ap1jses2.js} +23 -23
- package/dist/chunks/{job-hwjyn0yt.js → workspace-atytsmf1.js} +5 -5
- package/dist/chunks/{job-tccrq8c6.js → workspace-aw1g0m68.js} +3 -3
- package/dist/chunks/{job-150yg2gd.js → workspace-axs6pdy0.js} +5 -5
- package/dist/chunks/{job-a8w7s6c8.js → workspace-b3vk0wha.js} +3 -3
- package/dist/chunks/{job-rdre3n7s.js → workspace-b61vcdbg.js} +9 -9
- package/dist/chunks/{job-b6gygkdw.js → workspace-b6gygkdw.js} +2 -2
- package/dist/chunks/{job-tfzngn12.js → workspace-bacyadyn.js} +4 -4
- package/dist/chunks/{job-3ff3hx9k.js → workspace-bf3ep3zf.js} +16 -16
- package/dist/chunks/{job-q7h5a6mq.js → workspace-bgnv3g07.js} +13 -13
- package/dist/chunks/{job-1y1sz04v.js → workspace-bj5ap212.js} +42 -42
- package/dist/chunks/{job-rx0kk0pc.js → workspace-bjz294g4.js} +18 -18
- package/dist/chunks/{job-b9dw0fep.js → workspace-bq7qaacb.js} +36 -36
- package/dist/chunks/{job-4cm5h7gg.js → workspace-bt43sfkk.js} +18 -18
- package/dist/chunks/{job-nwd3z7e8.js → workspace-bv2qvk3v.js} +48 -48
- package/dist/chunks/{job-6c2xcqh7.js → workspace-bvvmdrd3.js} +17 -17
- package/dist/chunks/{job-n8vdnqrc.js → workspace-bx0gyb4h.js} +5 -5
- package/dist/chunks/{job-fkayb3v0.js → workspace-bx4w3v62.js} +44 -44
- package/dist/chunks/{job-1s9j86bw.js → workspace-c1ka28h1.js} +5 -5
- package/dist/chunks/{job-922pj5h4.js → workspace-ca6v8khj.js} +322 -322
- package/dist/chunks/{job-jknk5b86.js → workspace-caf87exy.js} +311 -311
- package/dist/chunks/{job-rnejq3k9.js → workspace-cg7s6gpq.js} +28 -28
- package/dist/chunks/{job-q5asdkn4.js → workspace-ckf8nxjz.js} +4 -4
- package/dist/chunks/{job-5symgpsy.js → workspace-ckn890ey.js} +25 -25
- package/dist/chunks/{job-nnrc907a.js → workspace-cqqer672.js} +15 -15
- package/dist/chunks/{job-wd6yp0fc.js → workspace-cscmnd2v.js} +8 -8
- package/dist/chunks/{job-z6kenqfr.js → workspace-cvgbrmvq.js} +33 -33
- package/dist/chunks/{job-5d607bsg.js → workspace-cwa6csj7.js} +9 -9
- package/dist/chunks/{job-2rfx9vxm.js → workspace-d2ffjrg3.js} +5 -5
- package/dist/chunks/{job-7gt59paf.js → workspace-desgj5fn.js} +24 -24
- package/dist/chunks/{job-tyh57cyp.js → workspace-dwnnjgz6.js} +42 -42
- package/dist/chunks/{job-g9vavm7g.js → workspace-e107jb5k.js} +2 -2
- package/dist/chunks/{job-md3tm4xy.js → workspace-e2h0q4a9.js} +8 -8
- package/dist/chunks/{job-5t693q0p.js → workspace-e3gcztwa.js} +30 -30
- package/dist/chunks/{job-346y6mfm.js → workspace-easapccs.js} +9 -9
- package/dist/chunks/{job-ef5x83kb.js → workspace-ef5x83kb.js} +1 -1
- package/dist/chunks/{job-skkb0071.js → workspace-efbajcyc.js} +34 -34
- package/dist/chunks/{job-a78s9db2.js → workspace-ejgp49jg.js} +24 -24
- package/dist/chunks/{job-ka9hvfy0.js → workspace-emx6shzs.js} +24 -24
- package/dist/chunks/{job-etq0c3wd.js → workspace-etq0c3wd.js} +1 -1
- package/dist/chunks/{job-dtgbrhmq.js → workspace-ewx9y0me.js} +7 -7
- package/dist/chunks/{job-zg807ykv.js → workspace-f6626pn0.js} +12 -12
- package/dist/chunks/{job-f75zav2x.js → workspace-f75zav2x.js} +2 -2
- package/dist/chunks/{job-a41mf9eg.js → workspace-f7gr38pv.js} +5 -5
- package/dist/chunks/{job-gyyj3d9c.js → workspace-fte4edzz.js} +10 -10
- package/dist/chunks/{job-j7861s82.js → workspace-g38n4cbf.js} +11 -11
- package/dist/chunks/{job-y29yf60m.js → workspace-g6cj2pz3.js} +5 -5
- package/dist/chunks/{job-xsgk3b13.js → workspace-g762atc6.js} +9 -9
- package/dist/chunks/{job-2yh7qa3m.js → workspace-g79x7y0t.js} +11 -11
- package/dist/chunks/{job-c9hdk7an.js → workspace-gamkna2f.js} +32 -32
- package/dist/chunks/{job-gd4qta3r.js → workspace-gd4qta3r.js} +1 -1
- package/dist/chunks/{job-y2vfjhds.js → workspace-gr68n6sk.js} +7 -7
- package/dist/chunks/{job-32kg902r.js → workspace-grtn0enx.js} +4 -4
- package/dist/chunks/{job-f5gy8qwh.js → workspace-h275bwc7.js} +8 -8
- package/dist/chunks/{job-7sptvqh0.js → workspace-h2txwa5e.js} +9 -9
- package/dist/chunks/{job-7skj7b3t.js → workspace-h4ckqw4f.js} +11 -11
- package/dist/chunks/{job-h6vf3j39.js → workspace-h6vf3j39.js} +1 -1
- package/dist/chunks/{job-v03kc4w2.js → workspace-hd75z5fa.js} +16 -16
- package/dist/chunks/{job-k4t30sfg.js → workspace-heymn33v.js} +10 -10
- package/dist/chunks/{job-2fvqbc2a.js → workspace-hfr420wr.js} +26 -26
- package/dist/chunks/{job-t39gfvtp.js → workspace-hgnewnvf.js} +3 -3
- package/dist/chunks/{job-kgssxap2.js → workspace-hns92ys1.js} +10 -10
- package/dist/chunks/{job-s7ygvkb6.js → workspace-hp2fw5k6.js} +18 -18
- package/dist/chunks/{job-w5ystqj3.js → workspace-hqf62ytx.js} +3 -3
- package/dist/chunks/{job-1109kv5r.js → workspace-hr5bc81f.js} +8 -8
- package/dist/chunks/workspace-j49cp3s0.js +26 -0
- package/dist/chunks/{job-j56e64zr.js → workspace-j56e64zr.js} +1 -1
- package/dist/chunks/{job-e295ecsk.js → workspace-jdzksevj.js} +10 -10
- package/dist/chunks/{job-cfsekr6v.js → workspace-jktqzjpa.js} +8 -8
- package/dist/chunks/{job-efhc4xja.js → workspace-jvddzxac.js} +14 -14
- package/dist/chunks/{job-y6z5npq7.js → workspace-k2vb740h.js} +9 -9
- package/dist/chunks/{job-3h8vczdp.js → workspace-k30vhdc4.js} +12 -12
- package/dist/chunks/{job-vxzh5eqq.js → workspace-k3sn4jay.js} +4 -4
- package/dist/chunks/{job-war2b1z5.js → workspace-k471ddga.js} +42 -42
- package/dist/chunks/{job-mqgn1b7a.js → workspace-k569he40.js} +7 -7
- package/dist/chunks/{job-wph1zeeb.js → workspace-kaq877jq.js} +11 -11
- package/dist/chunks/{job-kb9j3d72.js → workspace-kb9j3d72.js} +3 -3
- package/dist/chunks/{job-1q5k8kch.js → workspace-kgzx153c.js} +3 -3
- package/dist/chunks/{job-hehnp1bq.js → workspace-km0c42ps.js} +11 -11
- package/dist/chunks/{job-rx003x33.js → workspace-kn0kwb9r.js} +22 -22
- package/dist/chunks/{job-snj8hhs2.js → workspace-kprvgbka.js} +3 -3
- package/dist/chunks/{job-t6m7svpx.js → workspace-kpv8xpp3.js} +23 -23
- package/dist/chunks/{job-ej9qsr91.js → workspace-kt4j6m51.js} +3 -3
- package/dist/chunks/{job-d1pvrw7r.js → workspace-kzykqk6j.js} +12 -12
- package/dist/chunks/{job-m3fdjcah.js → workspace-m3fdjcah.js} +1 -1
- package/dist/chunks/{job-3w9zm10v.js → workspace-m6f5ap24.js} +13 -13
- package/dist/chunks/{job-m9w0rfyh.js → workspace-m9w0rfyh.js} +1 -1
- package/dist/chunks/{job-zd7wpxs7.js → workspace-mbnxefga.js} +2 -2
- package/dist/chunks/{job-ap89vq3r.js → workspace-mh5wyt4r.js} +22 -22
- package/dist/chunks/{job-1yd7h3h8.js → workspace-mhnyy3p3.js} +11 -11
- package/dist/chunks/{job-1xdq8pgw.js → workspace-mq716n2q.js} +18 -18
- package/dist/chunks/{job-1cdqa284.js → workspace-msr7hntd.js} +4 -4
- package/dist/chunks/{job-mvfsc1pv.js → workspace-mvfsc1pv.js} +1 -1
- package/dist/chunks/{job-325sge2s.js → workspace-n2thn3nx.js} +1 -1
- package/dist/chunks/{job-42eybm5a.js → workspace-nex76z7d.js} +12 -12
- package/dist/chunks/{job-bv2vs0je.js → workspace-nfj32nd6.js} +9 -9
- package/dist/chunks/{job-w5j3waeq.js → workspace-nqsd8asp.js} +46 -46
- package/dist/chunks/{job-tkjfzrza.js → workspace-nvdeaskg.js} +24 -24
- package/dist/chunks/{job-dpkg50ah.js → workspace-nxm207yx.js} +4 -4
- package/dist/chunks/{job-zgy505th.js → workspace-p1f7zze4.js} +17 -17
- package/dist/chunks/{job-14wqdba8.js → workspace-p2wa0wpq.js} +28 -28
- package/dist/chunks/{job-gzh491n7.js → workspace-pbp90nbc.js} +26 -26
- package/dist/chunks/{job-kb6ssw1z.js → workspace-pghsmdqn.js} +4 -4
- package/dist/chunks/{job-pjvnvgmy.js → workspace-pjvnvgmy.js} +1 -1
- package/dist/chunks/{job-pknna89w.js → workspace-pknna89w.js} +1 -1
- package/dist/chunks/{job-2ywb9zjx.js → workspace-pqnryrb4.js} +9 -9
- package/dist/chunks/{job-0j77ygfz.js → workspace-q0xm7vwc.js} +6 -6
- package/dist/chunks/{job-9ffa4p95.js → workspace-q1v6wmhm.js} +10 -10
- package/dist/chunks/{job-n0g0nzgh.js → workspace-qagmmt9n.js} +33 -33
- package/dist/chunks/{job-e24p4dv1.js → workspace-qc4y4x1d.js} +24 -24
- package/dist/chunks/{job-f80nsjds.js → workspace-qhjkx6qf.js} +21 -21
- package/dist/chunks/{job-kf30vwx6.js → workspace-qj3j2ed4.js} +22 -22
- package/dist/chunks/{job-qnc92qwc.js → workspace-qnc92qwc.js} +1 -1
- package/dist/chunks/{job-qsdy395h.js → workspace-qsdy395h.js} +1 -1
- package/dist/chunks/{job-rzs3gq0x.js → workspace-qvb3nf84.js} +8 -8
- package/dist/chunks/{job-8k6dxcnf.js → workspace-qx4ps3zc.js} +23 -23
- package/dist/chunks/{job-xxk5ry2v.js → workspace-r01t9b5y.js} +6 -6
- package/dist/chunks/{job-hjp9qe4g.js → workspace-r3p59fwg.js} +4 -4
- package/dist/chunks/{job-r8xr0va3.js → workspace-r8xr0va3.js} +1 -1
- package/dist/chunks/{job-jxqesak3.js → workspace-r9htttdr.js} +12 -12
- package/dist/chunks/{job-sqty32ey.js → workspace-rd8yy9nb.js} +78 -78
- package/dist/chunks/{job-rdw6cm16.js → workspace-rdw6cm16.js} +1 -1
- package/dist/chunks/{job-153yncyt.js → workspace-rfmnp9jb.js} +4 -4
- package/dist/chunks/{job-9t7a50xb.js → workspace-rhjbct0v.js} +4 -4
- package/dist/chunks/{job-hnb1fd69.js → workspace-rksdhb0n.js} +18 -18
- package/dist/chunks/{job-dr7h7j05.js → workspace-rrn10n85.js} +8 -8
- package/dist/chunks/{job-xkhfjrgz.js → workspace-rrt0a0ha.js} +3 -3
- package/dist/chunks/{job-ngts6ef0.js → workspace-rvf0m9x6.js} +8 -8
- package/dist/chunks/{job-f2p39avw.js → workspace-s6rbynpa.js} +5 -5
- package/dist/chunks/{job-nx7wttm6.js → workspace-s76r9yk2.js} +13 -13
- package/dist/chunks/{job-b8f3723t.js → workspace-sb1pzkvh.js} +18 -18
- package/dist/chunks/{job-7dy9gh8b.js → workspace-se3n8wcd.js} +20 -20
- package/dist/chunks/{job-w9n5wj27.js → workspace-sfvft427.js} +11 -11
- package/dist/chunks/{job-r3kwrs46.js → workspace-sgcq822w.js} +5 -5
- package/dist/chunks/{job-ecs0kx5t.js → workspace-smq3dd2v.js} +31 -31
- package/dist/chunks/{job-h6s238kn.js → workspace-t13mbkgb.js} +19 -19
- package/dist/chunks/{job-r5wg57ya.js → workspace-t1fjxj08.js} +13 -13
- package/dist/chunks/{job-a46v4e4v.js → workspace-t2fc4mz5.js} +4 -4
- package/dist/chunks/{job-q4712sr9.js → workspace-t3039at6.js} +26 -26
- package/dist/chunks/{job-tazgh4e4.js → workspace-tazgh4e4.js} +1 -1
- package/dist/chunks/{job-tcezcvh9.js → workspace-tcezcvh9.js} +1 -1
- package/dist/chunks/{job-b5pnkgfz.js → workspace-tdj9jt6q.js} +11 -11
- package/dist/chunks/{job-tdstcens.js → workspace-tdstcens.js} +1 -1
- package/dist/chunks/{job-63s1r0wa.js → workspace-tdx4y9zn.js} +11 -11
- package/dist/chunks/{job-nvw9amg7.js → workspace-tqrjxmaf.js} +8 -8
- package/dist/chunks/{job-v2w4gvzq.js → workspace-ty9zft9p.js} +20 -20
- package/dist/chunks/{job-v0es1rhs.js → workspace-v0es1rhs.js} +2 -2
- package/dist/chunks/{job-vmfn30s8.js → workspace-v2fwckm2.js} +13 -13
- package/dist/chunks/{job-bbcqy7f7.js → workspace-v9t2f4tw.js} +24 -24
- package/dist/chunks/{job-78fcyxvp.js → workspace-vaxgn10g.js} +28 -28
- package/dist/chunks/{job-vdptz04f.js → workspace-vbrdpthe.js} +6 -6
- package/dist/chunks/{job-veqvce7d.js → workspace-veqvce7d.js} +1 -1
- package/dist/chunks/{job-34hg2p15.js → workspace-vgfxpara.js} +75 -75
- package/dist/chunks/{job-h4b3eg5p.js → workspace-vhvtqta5.js} +6 -6
- package/dist/chunks/{job-c2zwq45z.js → workspace-vjthrvv1.js} +9 -9
- package/dist/chunks/{job-5e15319b.js → workspace-vrpz8t5t.js} +5 -5
- package/dist/chunks/{job-vzs5sf6e.js → workspace-vzs5sf6e.js} +1 -1
- package/dist/chunks/{job-g5w8qwbj.js → workspace-w19d8598.js} +7 -7
- package/dist/chunks/{job-w2h15q85.js → workspace-w39jehkq.js} +5 -5
- package/dist/chunks/{job-w3wsvvr9.js → workspace-w3wsvvr9.js} +1 -1
- package/dist/chunks/{job-bd2gmdw6.js → workspace-w8jg2tm8.js} +38 -38
- package/dist/chunks/{job-wd87259q.js → workspace-wd87259q.js} +1 -1
- package/dist/chunks/{job-cyb6j5fd.js → workspace-wqzz8241.js} +8 -8
- package/dist/chunks/{job-7t4xepky.js → workspace-x07w92bc.js} +6 -6
- package/dist/chunks/{job-yryfr4df.js → workspace-x2bhny64.js} +7 -7
- package/dist/chunks/{job-pgp1nwjn.js → workspace-x3gqap9d.js} +4 -4
- package/dist/chunks/{job-addxnjmp.js → workspace-x661k3y3.js} +4 -4
- package/dist/chunks/{job-v3f705cw.js → workspace-xa1y625z.js} +20 -20
- package/dist/chunks/{job-sre3bhvf.js → workspace-xcjenepd.js} +35 -35
- package/dist/chunks/{job-nk9s9anj.js → workspace-xh51jhwy.js} +26 -26
- package/dist/chunks/{job-dmqcgk4z.js → workspace-xkntkrq7.js} +5 -5
- package/dist/chunks/{job-qxjc9qry.js → workspace-xyafkbt0.js} +3 -3
- package/dist/chunks/{job-y1fvbwt7.js → workspace-y1fvbwt7.js} +1 -1
- package/dist/chunks/{job-h9gbxm73.js → workspace-y2bx8ks4.js} +21 -21
- package/dist/chunks/{job-275vx67k.js → workspace-y2tx55zg.js} +5 -5
- package/dist/chunks/{job-dj2cc5b2.js → workspace-yvmkmgn5.js} +12 -12
- package/dist/chunks/{job-fh75rate.js → workspace-ywd8qmyg.js} +1 -1
- package/dist/chunks/{job-z0bkrqjs.js → workspace-z0bkrqjs.js} +1 -1
- package/dist/chunks/{job-svhcpc1c.js → workspace-z0cec5bd.js} +14 -14
- package/dist/chunks/{job-7mf9fqr3.js → workspace-z28g1vpv.js} +31 -31
- package/dist/chunks/{job-zr2ceqn5.js → workspace-zr2ceqn5.js} +1 -1
- package/dist/chunks/{job-m98vzp15.js → workspace-zrbek4sy.js} +4 -4
- package/dist/chunks/{job-zxq2ej10.js → workspace-zxq2ej10.js} +1 -1
- package/dist/chunks/{job-qygbw77c.js → workspace-zyk1yjk8.js} +5 -5
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +11 -11
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +81 -81
- 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 +118 -118
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +137 -137
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +117 -117
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +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 +77 -77
- 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 +361 -361
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +70 -70
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +220 -220
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +97 -97
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +102 -102
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +87 -87
- package/dist/generate.js +103 -103
- package/dist/git.js +6 -6
- 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 +3 -3
- package/dist/instance.js +352 -352
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +128 -128
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +351 -351
- package/dist/location.js +81 -81
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +105 -105
- package/dist/mcp/instructions.js +129 -129
- 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 +103 -103
- 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 +111 -111
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +86 -86
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +102 -102
- package/dist/plugin/command.js +100 -100
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +211 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +326 -326
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +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/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 +116 -116
- package/dist/plugin/provider/local.js +113 -113
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +116 -116
- package/dist/plugin/provider/openai.js +95 -95
- package/dist/plugin/provider/opencode.js +96 -96
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +116 -116
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +155 -155
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +345 -345
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +4 -4
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +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 +220 -220
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +80 -80
- package/dist/provider.js +99 -99
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +87 -87
- package/dist/reference.js +89 -89
- 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 +135 -135
- package/dist/session/context.js +151 -151
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +211 -211
- package/dist/session/execution.js +123 -123
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +88 -88
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +116 -116
- package/dist/session/model-transport.js +5 -5
- 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 +96 -96
- 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 +162 -162
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -203
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +207 -207
- 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 +15 -15
- 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 +126 -126
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +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 +122 -122
- package/dist/tool/plugin/question.js +101 -101
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +210 -210
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +210 -210
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +118 -118
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- 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 +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/job-3q73pyrh.js +0 -26
- package/dist/chunks/job-cf3y1dtk.js +0 -253
- package/dist/chunks/job-rap9a73h.js +0 -18
- /package/dist/chunks/{job-0qkdqm5v.js → workspace-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{job-0zkw76rk.js → workspace-0zkw76rk.js} +0 -0
- /package/dist/chunks/{job-17cy0kzp.js → workspace-17cy0kzp.js} +0 -0
- /package/dist/chunks/{job-1cnp2v09.js → workspace-1cnp2v09.js} +0 -0
- /package/dist/chunks/{job-1kg9ymc8.js → workspace-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{job-24dcb14g.js → workspace-24dcb14g.js} +0 -0
- /package/dist/chunks/{job-2710q6r3.js → workspace-2710q6r3.js} +0 -0
- /package/dist/chunks/{job-2axfhc9x.js → workspace-2axfhc9x.js} +0 -0
- /package/dist/chunks/{job-2c3vjs8z.js → workspace-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{job-34c7v6d4.js → workspace-34c7v6d4.js} +0 -0
- /package/dist/chunks/{job-359p4xyc.js → workspace-359p4xyc.js} +0 -0
- /package/dist/chunks/{job-3asan66x.js → workspace-3asan66x.js} +0 -0
- /package/dist/chunks/{job-3t0ybcrp.js → workspace-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{job-3v8g72cx.js → workspace-3v8g72cx.js} +0 -0
- /package/dist/chunks/{job-3w5fmr99.js → workspace-3w5fmr99.js} +0 -0
- /package/dist/chunks/{job-3wcehsnq.js → workspace-3wcehsnq.js} +0 -0
- /package/dist/chunks/{job-43n2bw4t.js → workspace-43n2bw4t.js} +0 -0
- /package/dist/chunks/{job-4knz6hnm.js → workspace-4knz6hnm.js} +0 -0
- /package/dist/chunks/{job-4vcrnpx2.js → workspace-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{job-4y7fprxs.js → workspace-4y7fprxs.js} +0 -0
- /package/dist/chunks/{job-53557ph1.js → workspace-53557ph1.js} +0 -0
- /package/dist/chunks/{job-550bvhaj.js → workspace-550bvhaj.js} +0 -0
- /package/dist/chunks/{job-6prwharc.js → workspace-6prwharc.js} +0 -0
- /package/dist/chunks/{job-6q2bdcd1.js → workspace-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{job-7akdwqpd.js → workspace-7akdwqpd.js} +0 -0
- /package/dist/chunks/{job-7m9af43g.js → workspace-7m9af43g.js} +0 -0
- /package/dist/chunks/{job-822emrt2.js → workspace-822emrt2.js} +0 -0
- /package/dist/chunks/{job-88xbtdfr.js → workspace-88xbtdfr.js} +0 -0
- /package/dist/chunks/{job-8n3pysct.js → workspace-8n3pysct.js} +0 -0
- /package/dist/chunks/{job-8wj87zfr.js → workspace-8wj87zfr.js} +0 -0
- /package/dist/chunks/{job-9a4afbnw.js → workspace-9a4afbnw.js} +0 -0
- /package/dist/chunks/{job-9rqn6x4v.js → workspace-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{job-a6k6eb26.js → workspace-a6k6eb26.js} +0 -0
- /package/dist/chunks/{job-af5trqkr.js → workspace-af5trqkr.js} +0 -0
- /package/dist/chunks/{job-afrmfg78.js → workspace-afrmfg78.js} +0 -0
- /package/dist/chunks/{job-aqzs7mqg.js → workspace-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{job-atq7p7m5.js → workspace-atq7p7m5.js} +0 -0
- /package/dist/chunks/{job-bkyjaxrp.js → workspace-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{job-bmr6ed5q.js → workspace-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{job-cf4snx6d.js → workspace-cf4snx6d.js} +0 -0
- /package/dist/chunks/{job-cvy3z8tj.js → workspace-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{job-d9fn303g.js → workspace-d9fn303g.js} +0 -0
- /package/dist/chunks/{job-d9jj8t3e.js → workspace-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{job-dajrwvna.js → workspace-dajrwvna.js} +0 -0
- /package/dist/chunks/{job-dap0rakb.js → workspace-dap0rakb.js} +0 -0
- /package/dist/chunks/{job-df08tz66.js → workspace-df08tz66.js} +0 -0
- /package/dist/chunks/{job-dy18nga0.js → workspace-dy18nga0.js} +0 -0
- /package/dist/chunks/{job-e5kj55wp.js → workspace-e5kj55wp.js} +0 -0
- /package/dist/chunks/{job-e73j6tqm.js → workspace-e73j6tqm.js} +0 -0
- /package/dist/chunks/{job-ec1grn59.js → workspace-ec1grn59.js} +0 -0
- /package/dist/chunks/{job-eh3zwz77.js → workspace-eh3zwz77.js} +0 -0
- /package/dist/chunks/{job-emrn6kk6.js → workspace-emrn6kk6.js} +0 -0
- /package/dist/chunks/{job-f0mxakyp.js → workspace-f0mxakyp.js} +0 -0
- /package/dist/chunks/{job-f6n9ztr4.js → workspace-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{job-faypxj3z.js → workspace-faypxj3z.js} +0 -0
- /package/dist/chunks/{job-fd410y7t.js → workspace-fd410y7t.js} +0 -0
- /package/dist/chunks/{job-fxgpk5d8.js → workspace-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{job-g4wezp1m.js → workspace-g4wezp1m.js} +0 -0
- /package/dist/chunks/{job-g86h250q.js → workspace-g86h250q.js} +0 -0
- /package/dist/chunks/{job-gebd4c9n.js → workspace-gebd4c9n.js} +0 -0
- /package/dist/chunks/{job-gftt206x.js → workspace-gftt206x.js} +0 -0
- /package/dist/chunks/{job-hk9envan.js → workspace-hk9envan.js} +0 -0
- /package/dist/chunks/{job-j2ntwpah.js → workspace-j2ntwpah.js} +0 -0
- /package/dist/chunks/{job-j5zkgpj8.js → workspace-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{job-jjkms2e6.js → workspace-jjkms2e6.js} +0 -0
- /package/dist/chunks/{job-jr7sbwjy.js → workspace-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{job-jwfs4k6c.js → workspace-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{job-jzg6c2d5.js → workspace-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{job-mp448xyj.js → workspace-mp448xyj.js} +0 -0
- /package/dist/chunks/{job-msx8hqn2.js → workspace-msx8hqn2.js} +0 -0
- /package/dist/chunks/{job-n05xt0ee.js → workspace-n05xt0ee.js} +0 -0
- /package/dist/chunks/{job-n3j8tn72.js → workspace-n3j8tn72.js} +0 -0
- /package/dist/chunks/{job-njntx4h6.js → workspace-njntx4h6.js} +0 -0
- /package/dist/chunks/{job-q3sfg36h.js → workspace-q3sfg36h.js} +0 -0
- /package/dist/chunks/{job-q74kybfr.js → workspace-q74kybfr.js} +0 -0
- /package/dist/chunks/{job-qaymkmh1.js → workspace-qaymkmh1.js} +0 -0
- /package/dist/chunks/{job-qb87gjwd.js → workspace-qb87gjwd.js} +0 -0
- /package/dist/chunks/{job-qfa1cgps.js → workspace-qfa1cgps.js} +0 -0
- /package/dist/chunks/{job-qg3g05ea.js → workspace-qg3g05ea.js} +0 -0
- /package/dist/chunks/{job-qrg20bc0.js → workspace-qrg20bc0.js} +0 -0
- /package/dist/chunks/{job-rcb2kzg1.js → workspace-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{job-sdp7kfr6.js → workspace-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{job-ssg3fenm.js → workspace-ssg3fenm.js} +0 -0
- /package/dist/chunks/{job-w803qqfp.js → workspace-w803qqfp.js} +0 -0
- /package/dist/chunks/{job-wc3fc9cn.js → workspace-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{job-wer8tq1h.js → workspace-wer8tq1h.js} +0 -0
- /package/dist/chunks/{job-wtztk69x.js → workspace-wtztk69x.js} +0 -0
- /package/dist/chunks/{job-x0ckcb58.js → workspace-x0ckcb58.js} +0 -0
- /package/dist/chunks/{job-x61499pn.js → workspace-x61499pn.js} +0 -0
- /package/dist/chunks/{job-y44na4kk.js → workspace-y44na4kk.js} +0 -0
- /package/dist/chunks/{job-y8cydn3q.js → workspace-y8cydn3q.js} +0 -0
- /package/dist/chunks/{job-y8f7s663.js → workspace-y8f7s663.js} +0 -0
- /package/dist/chunks/{job-ygaqb7jw.js → workspace-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{job-ym463w8f.js → workspace-ym463w8f.js} +0 -0
- /package/dist/chunks/{job-z5v4ffb3.js → workspace-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{job-z9919s4g.js → workspace-z9919s4g.js} +0 -0
|
@@ -1,27 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./workspace-rfmnp9jb.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./workspace-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
10
|
key2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./workspace-x661k3y3.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
13
|
+
ID13,
|
|
14
|
+
Service73,
|
|
15
|
+
node76,
|
|
16
|
+
Event17
|
|
17
|
+
} from "./workspace-hfr420wr.js";
|
|
18
18
|
import {
|
|
19
19
|
Service80,
|
|
20
20
|
node84
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./workspace-2cabk1b6.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./workspace-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: () =>
|
|
33
|
-
ID: () =>
|
|
34
|
-
Info: () =>
|
|
41
|
+
Event: () => Event16,
|
|
42
|
+
ID: () => ID12,
|
|
43
|
+
Info: () => Info21,
|
|
35
44
|
LoadError: () => LoadError3,
|
|
36
45
|
Provider: () => exports_provider3,
|
|
37
46
|
Request: () => Request3,
|
|
38
|
-
Service: () =>
|
|
47
|
+
Service: () => Service72,
|
|
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: () => node75,
|
|
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,270 +68,8 @@ 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
|
-
|
|
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
|
-
import { Event as Event17 } from "@opencode/schema/provider";
|
|
325
|
-
var ID13 = Provider.ID;
|
|
71
|
+
import { Event as Event16 } from "@opencode/schema/provider";
|
|
72
|
+
var ID12 = Provider.ID;
|
|
326
73
|
var AISDK_PREFIX2 = "aisdk:";
|
|
327
74
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
328
75
|
var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
|
|
@@ -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;
|
|
@@ -405,12 +152,12 @@ var builtins = new Map([
|
|
|
405
152
|
() => import("@opencode/ai/providers/zai-coding-plan/responses")
|
|
406
153
|
]
|
|
407
154
|
]);
|
|
408
|
-
var loadPackage2 =
|
|
155
|
+
var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
|
|
409
156
|
const specifier = packageName2(input);
|
|
410
157
|
const builtin = builtins.get(specifier);
|
|
411
158
|
if (builtin)
|
|
412
159
|
return yield* importPackage(specifier, specifier, builtin);
|
|
413
|
-
const resolved = yield*
|
|
160
|
+
const resolved = yield* Effect.sync(() => {
|
|
414
161
|
if (specifier.startsWith("file://") || specifier.startsWith("@opencode/ai/"))
|
|
415
162
|
return specifier;
|
|
416
163
|
try {
|
|
@@ -429,8 +176,8 @@ var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
|
|
|
429
176
|
}
|
|
430
177
|
const parts = specifier.split("/");
|
|
431
178
|
const root = specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0] ?? specifier;
|
|
432
|
-
const installed = yield* npm.add(root).pipe(
|
|
433
|
-
const entrypoint = yield*
|
|
179
|
+
const installed = yield* npm.add(root).pipe(Effect.mapError((cause) => new LoadError3({ package: specifier, cause })));
|
|
180
|
+
const entrypoint = yield* Effect.try({
|
|
434
181
|
try: () => resolveModule(specifier, installed.directory),
|
|
435
182
|
catch: (cause) => new LoadError3({ package: specifier, cause })
|
|
436
183
|
});
|
|
@@ -439,15 +186,15 @@ var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
|
|
|
439
186
|
var CORE_KEYS = ["chunkTimeout", "compaction", "fetch", "headerTimeout", "timeout", "transport"];
|
|
440
187
|
var PROVIDER_ONLY_KEYS = ["chunkTimeout", "headerTimeout", "timeout", "transport"];
|
|
441
188
|
function nativeSettings2(settings) {
|
|
442
|
-
return
|
|
189
|
+
return Struct.omit(settings, CORE_KEYS);
|
|
443
190
|
}
|
|
444
191
|
function modelSettings2(settings) {
|
|
445
|
-
return settings &&
|
|
192
|
+
return settings && Struct.omit(settings, PROVIDER_ONLY_KEYS);
|
|
446
193
|
}
|
|
447
|
-
var decodeTimeout =
|
|
194
|
+
var decodeTimeout = Schema.decodeUnknownOption(HttpTimeout);
|
|
448
195
|
var DEFAULT_TIMEOUT_MS3 = 300000;
|
|
449
196
|
function timeout2(value) {
|
|
450
|
-
return
|
|
197
|
+
return Option.getOrUndefined(decodeTimeout(value));
|
|
451
198
|
}
|
|
452
199
|
function timeouts2(settings) {
|
|
453
200
|
return {
|
|
@@ -485,9 +232,9 @@ var Request3 = Provider.Request;
|
|
|
485
232
|
var Compaction3 = Provider.Compaction;
|
|
486
233
|
var Transport2 = Provider.Transport;
|
|
487
234
|
var Settings2 = Provider.Settings;
|
|
488
|
-
var
|
|
235
|
+
var Info21 = Provider.Info;
|
|
489
236
|
|
|
490
|
-
class
|
|
237
|
+
class Service72 extends Context.Service()("@opencode/Provider") {
|
|
491
238
|
}
|
|
492
239
|
var definitions = new WeakMap;
|
|
493
240
|
function index(providerID, models) {
|
|
@@ -500,9 +247,9 @@ function index(providerID, models) {
|
|
|
500
247
|
definitions.set(models, indexes);
|
|
501
248
|
return result;
|
|
502
249
|
}
|
|
503
|
-
var layer = Layer.effect(
|
|
250
|
+
var layer = Layer.effect(Service72, Effect.gen(function* () {
|
|
504
251
|
const bus = yield* Service83;
|
|
505
|
-
const integrations = yield*
|
|
252
|
+
const integrations = yield* Service73;
|
|
506
253
|
const location = yield* Service80;
|
|
507
254
|
const state = create3({
|
|
508
255
|
name: "provider",
|
|
@@ -514,7 +261,7 @@ var layer = Layer.effect(Service75, Effect2.gen(function* () {
|
|
|
514
261
|
const current = records.get(id);
|
|
515
262
|
if (current)
|
|
516
263
|
return current;
|
|
517
|
-
const added = { provider:
|
|
264
|
+
const added = { provider: Info21.empty(id), models: new Map };
|
|
518
265
|
records.set(id, added);
|
|
519
266
|
maps.add(added.models);
|
|
520
267
|
return added;
|
|
@@ -582,9 +329,9 @@ var layer = Layer.effect(Service75, Effect2.gen(function* () {
|
|
|
582
329
|
},
|
|
583
330
|
notify: () => notify
|
|
584
331
|
});
|
|
585
|
-
yield*
|
|
332
|
+
yield* Effect.addFinalizer(() => shutdown2(state.reload()));
|
|
586
333
|
let cached;
|
|
587
|
-
const snapshot =
|
|
334
|
+
const snapshot = Effect.fn("Provider.snapshot")(function* () {
|
|
588
335
|
while (true) {
|
|
589
336
|
const revision = integrations.revision();
|
|
590
337
|
const records = state.get();
|
|
@@ -595,7 +342,7 @@ var layer = Layer.effect(Service75, Effect2.gen(function* () {
|
|
|
595
342
|
const available = Array.from(records.values()).filter((record) => {
|
|
596
343
|
if (record.provider.activation === "disabled")
|
|
597
344
|
return false;
|
|
598
|
-
const integration = byID.get(record.provider.integrationID ??
|
|
345
|
+
const integration = byID.get(record.provider.integrationID ?? ID13.make(record.provider.id));
|
|
599
346
|
if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
|
|
600
347
|
return false;
|
|
601
348
|
if (record.provider.activation === "enabled")
|
|
@@ -612,7 +359,7 @@ var layer = Layer.effect(Service75, Effect2.gen(function* () {
|
|
|
612
359
|
}
|
|
613
360
|
});
|
|
614
361
|
let published;
|
|
615
|
-
const notify =
|
|
362
|
+
const notify = Effect.gen(function* () {
|
|
616
363
|
const value = yield* snapshot();
|
|
617
364
|
if (value === published)
|
|
618
365
|
return;
|
|
@@ -621,19 +368,19 @@ var layer = Layer.effect(Service75, Effect2.gen(function* () {
|
|
|
621
368
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
622
369
|
});
|
|
623
370
|
});
|
|
624
|
-
yield* bus.subscribe([
|
|
625
|
-
return
|
|
371
|
+
yield* bus.subscribe([Event17.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
372
|
+
return Service72.of({
|
|
626
373
|
transform: state.transform,
|
|
627
374
|
reload: state.reload,
|
|
628
|
-
get:
|
|
629
|
-
all:
|
|
630
|
-
available:
|
|
375
|
+
get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
376
|
+
all: Effect.fn("Provider.all")(() => Effect.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
|
|
377
|
+
available: Effect.fn("Provider.available")(() => snapshot().pipe(Effect.map((value) => value.providers))),
|
|
631
378
|
snapshot
|
|
632
379
|
});
|
|
633
380
|
}));
|
|
634
|
-
var
|
|
635
|
-
var importPackage =
|
|
636
|
-
const module = yield*
|
|
381
|
+
var node75 = makeLocationNode({ service: Service72, layer, deps: [node87, node76, node84] });
|
|
382
|
+
var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
383
|
+
const module = yield* Effect.tryPromise({
|
|
637
384
|
try: () => {
|
|
638
385
|
const existing = packages.get(entrypoint);
|
|
639
386
|
if (existing)
|
|
@@ -653,4 +400,257 @@ var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, e
|
|
|
653
400
|
return module;
|
|
654
401
|
});
|
|
655
402
|
|
|
656
|
-
|
|
403
|
+
// src/aisdk-native.ts
|
|
404
|
+
function rewrite2(target, input) {
|
|
405
|
+
if (input.specifier === undefined)
|
|
406
|
+
return;
|
|
407
|
+
const plain = resolve(input.specifier, input);
|
|
408
|
+
if (!plain)
|
|
409
|
+
return;
|
|
410
|
+
const settings = decode(target.settings ?? {});
|
|
411
|
+
const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
|
|
412
|
+
const translated = options(replacement, input.modelID, settings);
|
|
413
|
+
if (target.package !== undefined || replacement !== input.specifier)
|
|
414
|
+
target.package = replacement;
|
|
415
|
+
target.settings = target.settings === undefined ? undefined : {
|
|
416
|
+
...translated.settings,
|
|
417
|
+
...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
|
|
418
|
+
};
|
|
419
|
+
target.headers = mergeHeaders2(translated.headers, target.headers);
|
|
420
|
+
target.body = mergeOverlay2(translated.body, target.body);
|
|
421
|
+
target.variants = target.variants?.map((variant) => {
|
|
422
|
+
const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
|
|
423
|
+
const headers = mergeHeaders2(overlay.headers, variant.headers);
|
|
424
|
+
const body = mergeOverlay2(overlay.body, variant.body);
|
|
425
|
+
return {
|
|
426
|
+
id: variant.id,
|
|
427
|
+
...variant.settings === undefined ? {} : { settings: overlay.settings },
|
|
428
|
+
...headers === undefined ? {} : { headers },
|
|
429
|
+
...body === undefined ? {} : { body }
|
|
430
|
+
};
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
var PACKAGES = {
|
|
434
|
+
"@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
|
|
435
|
+
"@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
|
|
436
|
+
"@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
|
|
437
|
+
"@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
|
|
438
|
+
"@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
|
|
439
|
+
"@ai-sdk/cohere": "@opencode/ai/providers/cohere",
|
|
440
|
+
"@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
|
|
441
|
+
"@ai-sdk/google": "@opencode/ai/providers/google",
|
|
442
|
+
"@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
|
|
443
|
+
"@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
|
|
444
|
+
"@ai-sdk/groq": "@opencode/ai/providers/groq",
|
|
445
|
+
"@ai-sdk/mistral": "@opencode/ai/providers/mistral",
|
|
446
|
+
"@ai-sdk/openai": "@opencode/ai/providers/openai",
|
|
447
|
+
"@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
|
|
448
|
+
"@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
|
|
449
|
+
"@ai-sdk/xai": "@opencode/ai/providers/xai",
|
|
450
|
+
"@ai-sdk/gateway": "@opencode/ai/providers/vercel-ai-gateway",
|
|
451
|
+
"@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
|
|
452
|
+
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
453
|
+
"venice-ai-sdk-provider": "@opencode/ai/providers/venice"
|
|
454
|
+
};
|
|
455
|
+
var protocols = (name) => ({
|
|
456
|
+
"@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
|
|
457
|
+
"@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
|
|
458
|
+
"@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
|
|
459
|
+
});
|
|
460
|
+
var HOSTS = {
|
|
461
|
+
alibaba: protocols("alibaba"),
|
|
462
|
+
"alibaba-cn": protocols("alibaba"),
|
|
463
|
+
"alibaba-coding-plan": protocols("alibaba"),
|
|
464
|
+
"alibaba-coding-plan-cn": protocols("alibaba"),
|
|
465
|
+
"alibaba-token-plan": protocols("alibaba"),
|
|
466
|
+
"alibaba-token-plan-cn": protocols("alibaba"),
|
|
467
|
+
baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
|
|
468
|
+
"cloudflare-ai-gateway": {
|
|
469
|
+
"@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
470
|
+
"@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
471
|
+
"@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
|
|
472
|
+
"ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
|
|
473
|
+
},
|
|
474
|
+
cohere: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cohere/chat" },
|
|
475
|
+
"cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
|
|
476
|
+
deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
|
|
477
|
+
digitalocean: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/digitalocean" },
|
|
478
|
+
"fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
|
|
479
|
+
"google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
|
|
480
|
+
"kimi-for-coding": protocols("moonshot"),
|
|
481
|
+
meta: protocols("meta"),
|
|
482
|
+
minimax: protocols("minimax"),
|
|
483
|
+
"minimax-cn": protocols("minimax"),
|
|
484
|
+
"minimax-coding-plan": protocols("minimax"),
|
|
485
|
+
"minimax-cn-coding-plan": protocols("minimax"),
|
|
486
|
+
moonshotai: protocols("moonshot"),
|
|
487
|
+
"moonshotai-cn": protocols("moonshot"),
|
|
488
|
+
zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
489
|
+
"zai-coding-plan": protocols("zai-coding-plan"),
|
|
490
|
+
zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
|
|
491
|
+
"zhipuai-coding-plan": protocols("zai-coding-plan")
|
|
492
|
+
};
|
|
493
|
+
var NATIVE = new Set([
|
|
494
|
+
...Object.values(PACKAGES),
|
|
495
|
+
...Object.values(HOSTS).flatMap((host) => Object.values(host)),
|
|
496
|
+
"@opencode/ai/providers/azure/chat",
|
|
497
|
+
"@opencode/ai/providers/amazon-bedrock/mantle",
|
|
498
|
+
"@opencode/ai/providers/amazon-bedrock/mantle/chat",
|
|
499
|
+
"@opencode/ai/providers/amazon-bedrock/mantle/responses"
|
|
500
|
+
]);
|
|
501
|
+
function native2(npm, context) {
|
|
502
|
+
const host = HOSTS[context.providerID]?.[npm];
|
|
503
|
+
if (host)
|
|
504
|
+
return host;
|
|
505
|
+
if (npm === "@ai-sdk/amazon-bedrock/mantle")
|
|
506
|
+
return mantle(context.modelID);
|
|
507
|
+
if (npm === "@ai-sdk/azure" && azureChat(context))
|
|
508
|
+
return "@opencode/ai/providers/azure/chat";
|
|
509
|
+
return PACKAGES[npm];
|
|
510
|
+
}
|
|
511
|
+
var azureChat = (context) => context.shape === "completions" || context.settings?.useCompletionUrls === true;
|
|
512
|
+
var mantle = (modelID) => {
|
|
513
|
+
if (modelID === undefined)
|
|
514
|
+
return "@opencode/ai/providers/amazon-bedrock/mantle";
|
|
515
|
+
return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
|
|
516
|
+
};
|
|
517
|
+
function resolve(specifier, context) {
|
|
518
|
+
const npm = packageName2(specifier);
|
|
519
|
+
if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
|
|
520
|
+
return native2(npm, context);
|
|
521
|
+
if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
|
|
522
|
+
return mantle(context.modelID);
|
|
523
|
+
if (npm === "@opencode/ai/providers/azure/responses" && azureChat(context))
|
|
524
|
+
return "@opencode/ai/providers/azure/chat";
|
|
525
|
+
return NATIVE.has(npm) ? npm : undefined;
|
|
526
|
+
}
|
|
527
|
+
function options(replacement, modelID, settings) {
|
|
528
|
+
const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
|
|
529
|
+
const kept = Struct2.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
|
|
530
|
+
const thinking = converse ? bedrockThinking(modelID, settings) : undefined;
|
|
531
|
+
return {
|
|
532
|
+
settings: {
|
|
533
|
+
...replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
|
|
534
|
+
...thinking === undefined ? {} : { thinking }
|
|
535
|
+
},
|
|
536
|
+
...settings.headers === undefined ? {} : { headers: settings.headers },
|
|
537
|
+
...settings.extraBody === undefined ? {} : { body: settings.extraBody },
|
|
538
|
+
...converse ? bedrockRequest(modelID, settings) : {},
|
|
539
|
+
...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
var BEDROCK_KEYS = [
|
|
543
|
+
"bearerToken",
|
|
544
|
+
"endpoint",
|
|
545
|
+
"credentials",
|
|
546
|
+
"credentialProvider",
|
|
547
|
+
"accessKeyId",
|
|
548
|
+
"secretAccessKey",
|
|
549
|
+
"sessionToken"
|
|
550
|
+
];
|
|
551
|
+
var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
|
|
552
|
+
function bedrockSettings(settings, converse) {
|
|
553
|
+
const region = settings.region ?? settings.credentials?.region;
|
|
554
|
+
const credentials = settings.credentials ?? settings;
|
|
555
|
+
const baseURL = settings.baseURL ?? settings.endpoint;
|
|
556
|
+
return {
|
|
557
|
+
...Struct2.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
|
|
558
|
+
...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
|
|
559
|
+
...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
|
|
560
|
+
...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
|
|
561
|
+
credentials: {
|
|
562
|
+
...region === undefined ? {} : { region },
|
|
563
|
+
accessKeyId: credentials.accessKeyId,
|
|
564
|
+
secretAccessKey: credentials.secretAccessKey,
|
|
565
|
+
...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
};
|
|
569
|
+
}
|
|
570
|
+
function bedrockThinking(modelID, settings) {
|
|
571
|
+
const reasoning = settings.reasoningConfig;
|
|
572
|
+
if (!modelID?.includes("anthropic") || reasoning?.type !== "enabled" || reasoning.budgetTokens === undefined)
|
|
573
|
+
return;
|
|
574
|
+
return { type: "enabled", budgetTokens: reasoning.budgetTokens };
|
|
575
|
+
}
|
|
576
|
+
function bedrockRequest(modelID, settings) {
|
|
577
|
+
const additional = settings.additionalModelRequestFields ?? {};
|
|
578
|
+
const reasoning = settings.reasoningConfig;
|
|
579
|
+
const anthropic = modelID?.includes("anthropic") ?? false;
|
|
580
|
+
const openai = modelID?.includes("openai.") ?? false;
|
|
581
|
+
const harmony = modelID?.includes("openai.gpt-oss") ?? false;
|
|
582
|
+
const effort = reasoning?.maxReasoningEffort;
|
|
583
|
+
const type = reasoning?.type;
|
|
584
|
+
const budget = reasoning?.budgetTokens;
|
|
585
|
+
const display = reasoning?.display;
|
|
586
|
+
const betas = settings.anthropicBeta ?? [];
|
|
587
|
+
const fields = mergeOverlay2(additional, {
|
|
588
|
+
...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
|
|
589
|
+
...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
|
|
590
|
+
...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
|
|
591
|
+
...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
|
|
592
|
+
...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
|
|
593
|
+
...!anthropic && !openai && effort !== undefined ? {
|
|
594
|
+
reasoningConfig: {
|
|
595
|
+
...type === undefined || type === "adaptive" ? {} : { type },
|
|
596
|
+
...budget === undefined ? {} : { budgetTokens: budget },
|
|
597
|
+
maxReasoningEffort: effort
|
|
598
|
+
}
|
|
599
|
+
} : {}
|
|
600
|
+
});
|
|
601
|
+
const body = {
|
|
602
|
+
...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
|
|
603
|
+
...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
|
|
604
|
+
};
|
|
605
|
+
return Object.keys(body).length === 0 ? {} : { body };
|
|
606
|
+
}
|
|
607
|
+
var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
|
|
608
|
+
function openRouterRequest(settings) {
|
|
609
|
+
const headers = mergeHeaders2({
|
|
610
|
+
...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
|
|
611
|
+
...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
|
|
612
|
+
...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
|
|
613
|
+
}, settings.headers) ?? {};
|
|
614
|
+
return Object.keys(headers).length === 0 ? {} : { headers };
|
|
615
|
+
}
|
|
616
|
+
var lenient = (schema) => Schema2.optional(Schema2.UndefinedOr(schema).pipe(Schema2.catchDecoding(() => Effect2.succeed(Option2.some(undefined)))));
|
|
617
|
+
var Credentials = Schema2.Struct({
|
|
618
|
+
accessKeyId: Schema2.String,
|
|
619
|
+
secretAccessKey: Schema2.String,
|
|
620
|
+
sessionToken: lenient(Schema2.String),
|
|
621
|
+
region: lenient(Schema2.String)
|
|
622
|
+
});
|
|
623
|
+
var Legacy = Schema2.StructWithRest(Schema2.Struct({
|
|
624
|
+
apiKey: lenient(Schema2.String),
|
|
625
|
+
baseURL: lenient(Schema2.String),
|
|
626
|
+
headers: lenient(Schema2.Record(Schema2.String, Schema2.String)),
|
|
627
|
+
extraBody: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
|
|
628
|
+
useCompletionUrls: lenient(Schema2.Boolean),
|
|
629
|
+
auth: lenient(Schema2.Literals(["bearer", "sigv4"])),
|
|
630
|
+
bearerToken: lenient(Schema2.String),
|
|
631
|
+
endpoint: lenient(Schema2.String),
|
|
632
|
+
region: lenient(Schema2.String),
|
|
633
|
+
credentials: lenient(Credentials),
|
|
634
|
+
accessKeyId: lenient(Schema2.String),
|
|
635
|
+
secretAccessKey: lenient(Schema2.String),
|
|
636
|
+
sessionToken: lenient(Schema2.String),
|
|
637
|
+
anthropicBeta: lenient(Schema2.Array(Schema2.String)),
|
|
638
|
+
serviceTier: lenient(Schema2.String),
|
|
639
|
+
reasoningConfig: lenient(Schema2.Struct({
|
|
640
|
+
type: lenient(Schema2.String),
|
|
641
|
+
display: lenient(Schema2.String),
|
|
642
|
+
maxReasoningEffort: lenient(Schema2.String),
|
|
643
|
+
budgetTokens: lenient(Schema2.Number)
|
|
644
|
+
})),
|
|
645
|
+
additionalModelRequestFields: lenient(Schema2.StructWithRest(Schema2.Struct({
|
|
646
|
+
anthropic_beta: lenient(Schema2.Array(Schema2.String)),
|
|
647
|
+
output_config: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
|
|
648
|
+
reasoning: lenient(Schema2.Record(Schema2.String, Schema2.Unknown))
|
|
649
|
+
}), [Schema2.Record(Schema2.String, Schema2.Unknown)])),
|
|
650
|
+
appName: lenient(Schema2.String),
|
|
651
|
+
appUrl: lenient(Schema2.String),
|
|
652
|
+
api_keys: lenient(Schema2.Record(Schema2.String, Schema2.String))
|
|
653
|
+
}), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
|
|
654
|
+
var decode = Schema2.decodeUnknownSync(Legacy);
|
|
655
|
+
|
|
656
|
+
export { rewrite2, native2, exports_aisdk_native, ID12, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, timeout2, timeouts2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info21, Service72, node75, exports_provider3, Event16 };
|