@opencode/core 0.0.0-dev-19659 → 0.0.0-dev-19661
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/agent.js +68 -68
- package/dist/aisdk-native.js +70 -70
- package/dist/aisdk.js +75 -75
- package/dist/app.js +7 -7
- package/dist/bus.js +57 -57
- package/dist/chunks/{aisdk-native-k51e4aw5.js → aisdk-native-023zadcs.js} +26 -26
- package/dist/chunks/{aisdk-native-g2wezmb8.js → aisdk-native-05r0pd4k.js} +22 -22
- package/dist/chunks/{aisdk-native-808kc461.js → aisdk-native-0cmdsdny.js} +4 -4
- package/dist/chunks/{aisdk-native-t550f9t1.js → aisdk-native-0gdmqesm.js} +3 -3
- package/dist/chunks/{aisdk-native-wje5afyb.js → aisdk-native-0n0zwxbt.js} +13 -13
- package/dist/chunks/{aisdk-native-m9rcy9e9.js → aisdk-native-0yxn2y41.js} +22 -22
- package/dist/chunks/{aisdk-native-fgxf6epx.js → aisdk-native-17ev268x.js} +4 -4
- package/dist/chunks/{aisdk-native-af9v6wdb.js → aisdk-native-182gb95e.js} +21 -21
- package/dist/chunks/{aisdk-native-73tb2d7t.js → aisdk-native-1bbkgx8g.js} +2 -2
- package/dist/chunks/{aisdk-native-yy5xejng.js → aisdk-native-1n2wahs4.js} +34 -34
- package/dist/chunks/{aisdk-native-451pjvrk.js → aisdk-native-1sfz7hzv.js} +10 -10
- package/dist/chunks/{aisdk-native-56gdpj1q.js → aisdk-native-1ygqh575.js} +7 -7
- package/dist/chunks/{aisdk-native-0hxaqekr.js → aisdk-native-2379zrkh.js} +16 -16
- package/dist/chunks/{aisdk-native-nfgpg7sz.js → aisdk-native-238t0ktd.js} +7 -7
- package/dist/chunks/{aisdk-native-6h73sxmp.js → aisdk-native-2402vzrj.js} +4 -4
- package/dist/chunks/{aisdk-native-xk747vep.js → aisdk-native-24dd53tp.js} +7 -7
- package/dist/chunks/{aisdk-native-qyknhhpm.js → aisdk-native-254jv3j6.js} +30 -30
- package/dist/chunks/{aisdk-native-nt0hfq1t.js → aisdk-native-297pfj8a.js} +19 -19
- package/dist/chunks/{aisdk-native-erpj0ymn.js → aisdk-native-2nsfm9h9.js} +12 -12
- package/dist/chunks/{aisdk-native-ejzsabnb.js → aisdk-native-2nzzx6r4.js} +22 -22
- package/dist/chunks/{aisdk-native-hd29hty9.js → aisdk-native-2qbt9ft8.js} +7 -7
- package/dist/chunks/{aisdk-native-hyv2nsj8.js → aisdk-native-2rnv70v8.js} +47 -47
- package/dist/chunks/{aisdk-native-kx9pe8v3.js → aisdk-native-344v8r7k.js} +22 -22
- package/dist/chunks/{aisdk-native-yv8wa7ky.js → aisdk-native-347x7wat.js} +36 -36
- package/dist/chunks/{aisdk-native-2f0bjgcj.js → aisdk-native-37s12vcn.js} +3 -3
- package/dist/chunks/{aisdk-native-2x2s87dx.js → aisdk-native-3ge5fqnw.js} +8 -8
- package/dist/chunks/{aisdk-native-wa0ja8bs.js → aisdk-native-3jbc3g36.js} +9 -9
- package/dist/chunks/{aisdk-native-1m0ke9tc.js → aisdk-native-3s810fg1.js} +7 -7
- package/dist/chunks/{aisdk-native-4w5f3qm5.js → aisdk-native-428ep8fh.js} +7 -7
- package/dist/chunks/{aisdk-native-67cjjfz3.js → aisdk-native-434kh90e.js} +20 -20
- package/dist/chunks/{aisdk-native-h6r3nrb9.js → aisdk-native-4dgbcxzg.js} +3 -3
- package/dist/chunks/{aisdk-native-y9ag30cx.js → aisdk-native-4f5m37fg.js} +7 -7
- package/dist/chunks/{aisdk-native-p0dy5qgw.js → aisdk-native-4kqw78yy.js} +177 -175
- package/dist/chunks/{aisdk-native-abbd0srp.js → aisdk-native-4rega36x.js} +30 -30
- package/dist/chunks/{aisdk-native-3kbz71ch.js → aisdk-native-556432ga.js} +3 -3
- package/dist/chunks/{aisdk-native-6x0h2hvg.js → aisdk-native-57ez7d0k.js} +7 -7
- package/dist/chunks/{aisdk-native-ycwrzegc.js → aisdk-native-5c90fea2.js} +3 -3
- package/dist/chunks/{aisdk-native-j4dhk6n6.js → aisdk-native-5cytww3c.js} +16 -16
- package/dist/chunks/{aisdk-native-wbt9zsn3.js → aisdk-native-5e1pzs32.js} +7 -7
- package/dist/chunks/{aisdk-native-3jsa4rg6.js → aisdk-native-5fq5rnmr.js} +16 -16
- package/dist/chunks/{aisdk-native-9kmbd9mt.js → aisdk-native-5frpvc34.js} +1 -1
- package/dist/chunks/{aisdk-native-7jt1dbyr.js → aisdk-native-5g2yzyfh.js} +14 -14
- package/dist/chunks/{aisdk-native-e3qxr5gk.js → aisdk-native-5qd3pb7m.js} +2 -2
- package/dist/chunks/{aisdk-native-ehb2gjf8.js → aisdk-native-5smky6em.js} +11 -11
- package/dist/chunks/{aisdk-native-rgax8w17.js → aisdk-native-5tvsfswc.js} +45 -45
- package/dist/chunks/{aisdk-native-3cx7b8c9.js → aisdk-native-69f01smw.js} +25 -25
- package/dist/chunks/{aisdk-native-s7z13rzp.js → aisdk-native-6k39b1y0.js} +17 -17
- package/dist/chunks/{aisdk-native-wse8x4gb.js → aisdk-native-6mbb5s1t.js} +13 -13
- package/dist/chunks/{aisdk-native-nr3rnpny.js → aisdk-native-6nnym848.js} +10 -10
- package/dist/chunks/{aisdk-native-qdsfqex4.js → aisdk-native-6wqj81eb.js} +15 -15
- package/dist/chunks/{aisdk-native-c0ff335f.js → aisdk-native-6yyyp1at.js} +17 -17
- package/dist/chunks/{aisdk-native-60m4dpxp.js → aisdk-native-706cadxd.js} +14 -14
- package/dist/chunks/{aisdk-native-24xf3npk.js → aisdk-native-70yndaw4.js} +6 -6
- package/dist/chunks/{aisdk-native-8f6haeyf.js → aisdk-native-71anqpyy.js} +26 -26
- package/dist/chunks/{aisdk-native-rdbxvgxv.js → aisdk-native-73wr5j5n.js} +9 -9
- package/dist/chunks/{aisdk-native-7nv2t5e7.js → aisdk-native-74v01gcw.js} +22 -22
- package/dist/chunks/{aisdk-native-wpfw97x8.js → aisdk-native-77gdyk7k.js} +12 -12
- package/dist/chunks/{aisdk-native-nshkq49p.js → aisdk-native-7d579zsz.js} +48 -48
- package/dist/chunks/{aisdk-native-96waysmg.js → aisdk-native-82wqn8fy.js} +11 -11
- package/dist/chunks/{aisdk-native-70kjzvqh.js → aisdk-native-864rq62z.js} +13 -13
- package/dist/chunks/{aisdk-native-baxt3tw0.js → aisdk-native-86tgy61v.js} +26 -26
- package/dist/chunks/{aisdk-native-7bq24f4k.js → aisdk-native-86wxc0s5.js} +13 -13
- package/dist/chunks/{aisdk-native-8v8qk05p.js → aisdk-native-89f3rvt3.js} +1 -1
- package/dist/chunks/{aisdk-native-kmb9ebe8.js → aisdk-native-8b9a1vnb.js} +30 -30
- package/dist/chunks/aisdk-native-8mc8rrk5.js +478 -0
- package/dist/chunks/{aisdk-native-ctzssw83.js → aisdk-native-8mfdap3f.js} +4 -4
- package/dist/chunks/{aisdk-native-0dsywrch.js → aisdk-native-8n473qvc.js} +19 -19
- package/dist/chunks/{aisdk-native-mf9m2v67.js → aisdk-native-8q7cq0y1.js} +2 -2
- package/dist/chunks/{aisdk-native-aydjvc15.js → aisdk-native-9a44ktbt.js} +17 -17
- package/dist/chunks/{aisdk-native-v2cfd9mg.js → aisdk-native-9cn34y8n.js} +16 -16
- package/dist/chunks/{aisdk-native-p37cw4rj.js → aisdk-native-9hn6k4tm.js} +7 -7
- package/dist/chunks/aisdk-native-9tp0xrnc.js +247 -0
- package/dist/chunks/{aisdk-native-kq0bb674.js → aisdk-native-9v9a7nyh.js} +18 -18
- package/dist/chunks/{aisdk-native-thz469sg.js → aisdk-native-9wkb9m04.js} +8 -8
- package/dist/chunks/{aisdk-native-6t298p2h.js → aisdk-native-ab8cnxkj.js} +8 -8
- package/dist/chunks/{aisdk-native-9efavmn1.js → aisdk-native-ahkm7jtq.js} +9 -9
- package/dist/chunks/{aisdk-native-888n06p8.js → aisdk-native-avcdwqa3.js} +7 -7
- package/dist/chunks/{aisdk-native-2gns7qzp.js → aisdk-native-b3fjr4a5.js} +9 -9
- package/dist/chunks/{aisdk-native-wna5sgbh.js → aisdk-native-bghmh87t.js} +19 -19
- package/dist/chunks/{aisdk-native-2cdbads6.js → aisdk-native-bje848qr.js} +6 -6
- package/dist/chunks/{aisdk-native-v30t9zn6.js → aisdk-native-bn6tr5ps.js} +6 -6
- package/dist/chunks/{aisdk-native-gp08z3nw.js → aisdk-native-bn7wsp1y.js} +4 -4
- package/dist/chunks/{aisdk-native-tddjggae.js → aisdk-native-bn8xvxc9.js} +15 -15
- package/dist/chunks/{aisdk-native-bpvf94qg.js → aisdk-native-bqcmh1d5.js} +25 -25
- package/dist/chunks/{aisdk-native-r3jjmetn.js → aisdk-native-bwq9mt9g.js} +6 -6
- package/dist/chunks/{aisdk-native-gwasxxyt.js → aisdk-native-c1a6g7fn.js} +26 -26
- package/dist/chunks/{aisdk-native-ae7djn2q.js → aisdk-native-c24azjc2.js} +12 -12
- package/dist/chunks/{aisdk-native-6jjmcewh.js → aisdk-native-c3g32xz6.js} +22 -22
- package/dist/chunks/{aisdk-native-jz717kwe.js → aisdk-native-c3tze8y7.js} +21 -21
- package/dist/chunks/{aisdk-native-hn0kr74v.js → aisdk-native-ccq8grnq.js} +25 -25
- package/dist/chunks/{aisdk-native-7y4g93zh.js → aisdk-native-cft9s2sz.js} +10 -10
- package/dist/chunks/{aisdk-native-gwqc9hw0.js → aisdk-native-crgeygmk.js} +19 -19
- package/dist/chunks/{aisdk-native-16zmxd5d.js → aisdk-native-czwyyt0b.js} +7 -7
- package/dist/chunks/{aisdk-native-4c2trx4e.js → aisdk-native-d0szqk1h.js} +3 -3
- package/dist/chunks/{aisdk-native-v23ngtav.js → aisdk-native-d295vwqg.js} +81 -81
- package/dist/chunks/{aisdk-native-7m61546t.js → aisdk-native-d70tcw3y.js} +8 -8
- package/dist/chunks/{aisdk-native-5nygbceh.js → aisdk-native-dbgsewpx.js} +7 -7
- package/dist/chunks/{aisdk-native-4fnbdv1x.js → aisdk-native-dfyaxeae.js} +1 -1
- package/dist/chunks/{aisdk-native-k074j3w6.js → aisdk-native-dm4njmma.js} +39 -39
- package/dist/chunks/{aisdk-native-359m9qke.js → aisdk-native-dn2z7ew9.js} +21 -21
- package/dist/chunks/{aisdk-native-y71avatq.js → aisdk-native-dpkg50ah.js} +3 -3
- package/dist/chunks/{aisdk-native-hx2g52bz.js → aisdk-native-dskzymh2.js} +4 -4
- package/dist/chunks/{aisdk-native-hcz3zddy.js → aisdk-native-e6hmchc5.js} +3 -3
- package/dist/chunks/{aisdk-native-byvpkk98.js → aisdk-native-edevpfks.js} +9 -9
- package/dist/chunks/{aisdk-native-9m87xy8c.js → aisdk-native-et90nqeb.js} +6 -6
- package/dist/chunks/{aisdk-native-0hna0z05.js → aisdk-native-evavga5b.js} +83 -83
- package/dist/chunks/{aisdk-native-m3sg1ew5.js → aisdk-native-ewc7fmt2.js} +6 -6
- package/dist/chunks/{aisdk-native-vfmr2m2j.js → aisdk-native-eyy1x1gz.js} +15 -15
- package/dist/chunks/{aisdk-native-4hv83k1t.js → aisdk-native-eztanwtt.js} +22 -22
- package/dist/chunks/{aisdk-native-yp2x3t23.js → aisdk-native-f2n192rq.js} +3 -3
- package/dist/chunks/{aisdk-native-pkkve4e3.js → aisdk-native-f31jkx3n.js} +5 -5
- package/dist/chunks/{aisdk-native-q13p9eja.js → aisdk-native-fakqx81w.js} +7 -7
- package/dist/chunks/{aisdk-native-b27vhd2z.js → aisdk-native-fdv30zvt.js} +6 -6
- package/dist/chunks/{aisdk-native-eswk50af.js → aisdk-native-fp088skr.js} +7 -7
- package/dist/chunks/{aisdk-native-zvfby6ng.js → aisdk-native-fveggg5b.js} +8 -8
- package/dist/chunks/{aisdk-native-nf5c5hdx.js → aisdk-native-g03q4hs5.js} +21 -21
- package/dist/chunks/{aisdk-native-axmvebxj.js → aisdk-native-g190xswt.js} +20 -20
- package/dist/chunks/{aisdk-native-agas1js3.js → aisdk-native-g29ecd2d.js} +5 -5
- package/dist/chunks/{aisdk-native-fc8gtdz2.js → aisdk-native-g6r9s5ra.js} +1 -1
- package/dist/chunks/{aisdk-native-r330a857.js → aisdk-native-ghb1r91n.js} +18 -15
- package/dist/chunks/{aisdk-native-79qaa2kf.js → aisdk-native-gjwgx2c5.js} +7 -7
- package/dist/chunks/aisdk-native-grr7jzxk.js +26 -0
- package/dist/chunks/{aisdk-native-xj33pkwb.js → aisdk-native-gx4b9ghh.js} +24 -24
- package/dist/chunks/{aisdk-native-v4wfwvtq.js → aisdk-native-gxr1dr9e.js} +6 -6
- package/dist/chunks/{aisdk-native-hy20qw0x.js → aisdk-native-gxv64e4w.js} +12 -12
- package/dist/chunks/{aisdk-native-xrjwjpzr.js → aisdk-native-gxv7kf4z.js} +1 -1
- package/dist/chunks/{aisdk-native-ydyy4a51.js → aisdk-native-gym91fzb.js} +7 -7
- package/dist/chunks/{aisdk-native-jp1wq4j5.js → aisdk-native-h6304w3t.js} +4 -4
- package/dist/chunks/{aisdk-native-qskfz9c0.js → aisdk-native-hcveegta.js} +32 -32
- package/dist/chunks/{aisdk-native-f96rndfk.js → aisdk-native-he5mgen4.js} +8 -8
- package/dist/chunks/{aisdk-native-m2e5j58z.js → aisdk-native-hffbynf2.js} +14 -14
- package/dist/chunks/{aisdk-native-e2hdwa5k.js → aisdk-native-hgsgykfd.js} +13 -13
- package/dist/chunks/{aisdk-native-dh7xq6zm.js → aisdk-native-hryj0jt1.js} +3 -3
- package/dist/chunks/{aisdk-native-ahvgrgdh.js → aisdk-native-j161s2v3.js} +17 -17
- package/dist/chunks/{aisdk-native-an7cqtb7.js → aisdk-native-j83byb14.js} +3 -3
- package/dist/chunks/{aisdk-native-23sxaqwc.js → aisdk-native-j8zzr2am.js} +3 -3
- package/dist/chunks/{aisdk-native-9yccxaet.js → aisdk-native-jmyhth9t.js} +50 -50
- package/dist/chunks/{aisdk-native-z45k2q9b.js → aisdk-native-jx560d4n.js} +12 -12
- package/dist/chunks/{aisdk-native-x01x7vs9.js → aisdk-native-k05gtj6k.js} +2 -2
- package/dist/chunks/{aisdk-native-b2da4m4w.js → aisdk-native-k5721584.js} +3 -3
- package/dist/chunks/{aisdk-native-748zbz0t.js → aisdk-native-kaqsmsnp.js} +40 -40
- package/dist/chunks/{aisdk-native-wasmnp9g.js → aisdk-native-kb2qx9e9.js} +2 -2
- package/dist/chunks/{aisdk-native-ywhsgpfh.js → aisdk-native-kbpq3c4q.js} +22 -22
- package/dist/chunks/{aisdk-native-e2335xen.js → aisdk-native-kdjz9kg3.js} +8 -8
- package/dist/chunks/{aisdk-native-6rtfy69a.js → aisdk-native-kg4jxx0b.js} +7 -7
- package/dist/chunks/{aisdk-native-0dxrdgf8.js → aisdk-native-kwhemyxj.js} +6 -6
- package/dist/chunks/{aisdk-native-n11baakf.js → aisdk-native-kz12zc3c.js} +10 -10
- package/dist/chunks/{aisdk-native-n0kdxk8f.js → aisdk-native-kz3knr4j.js} +10 -10
- package/dist/chunks/{aisdk-native-qe4vt3fh.js → aisdk-native-m09t7skk.js} +4 -4
- package/dist/chunks/{aisdk-native-ak2as40b.js → aisdk-native-m2m0mav4.js} +12 -12
- package/dist/chunks/{aisdk-native-rjt1w22v.js → aisdk-native-m3ta9d82.js} +4 -4
- package/dist/chunks/{aisdk-native-hh9m7f5s.js → aisdk-native-m7g9ty3v.js} +31 -31
- package/dist/chunks/{aisdk-native-331hptqa.js → aisdk-native-m7w5bw68.js} +1 -1
- package/dist/chunks/{aisdk-native-pqkjy9pg.js → aisdk-native-m83dfgrj.js} +25 -25
- package/dist/chunks/{aisdk-native-zgfg11tk.js → aisdk-native-m9h2htwt.js} +43 -43
- package/dist/chunks/{aisdk-native-qbxewh6p.js → aisdk-native-md88ay8y.js} +39 -39
- package/dist/chunks/{aisdk-native-t63nzm9r.js → aisdk-native-mq22jzzd.js} +29 -29
- package/dist/chunks/{aisdk-native-88sz8qcd.js → aisdk-native-msq0jde0.js} +3 -3
- package/dist/chunks/{aisdk-native-pbqf8yzy.js → aisdk-native-mzjqrkme.js} +4 -4
- package/dist/chunks/{aisdk-native-f6n9ymec.js → aisdk-native-n6fvx0v7.js} +23 -23
- package/dist/chunks/{aisdk-native-rn5qsgpz.js → aisdk-native-nf10vtm1.js} +1 -1
- package/dist/chunks/{aisdk-native-xf3xt1ha.js → aisdk-native-nntat7jz.js} +2 -2
- package/dist/chunks/{aisdk-native-geznyajv.js → aisdk-native-pb76g505.js} +23 -23
- package/dist/chunks/{aisdk-native-1wabnfeb.js → aisdk-native-pbbas732.js} +3 -3
- package/dist/chunks/{aisdk-native-7bc5tj51.js → aisdk-native-pf5z211q.js} +14 -14
- package/dist/chunks/{aisdk-native-7eexgf6y.js → aisdk-native-pfm0mfps.js} +11 -11
- package/dist/chunks/{aisdk-native-5vzxx5bm.js → aisdk-native-pp8ahakx.js} +16 -16
- package/dist/chunks/{aisdk-native-scq4khx8.js → aisdk-native-pstg3rfm.js} +1 -1
- package/dist/chunks/{aisdk-native-0wafeyhj.js → aisdk-native-q12gc53x.js} +4 -4
- package/dist/chunks/{aisdk-native-ht9hrq0m.js → aisdk-native-q8cmhkcw.js} +21 -21
- package/dist/chunks/{aisdk-native-msfpjnen.js → aisdk-native-qaz9f4ck.js} +21 -21
- package/dist/chunks/{aisdk-native-jcefac6b.js → aisdk-native-qbfny5ar.js} +44 -44
- package/dist/chunks/{aisdk-native-2k8khapm.js → aisdk-native-qgn6gcr1.js} +4 -4
- package/dist/chunks/{aisdk-native-86nf6q4d.js → aisdk-native-qhm3qz41.js} +16 -16
- package/dist/chunks/{aisdk-native-jnzjsk2z.js → aisdk-native-qnqvzbpj.js} +33 -33
- package/dist/chunks/{aisdk-native-9fz2jzqv.js → aisdk-native-r04jyq6d.js} +16 -16
- package/dist/chunks/{aisdk-native-kp8q1t60.js → aisdk-native-r9w3djhf.js} +8 -8
- package/dist/chunks/{aisdk-native-0gj0evhw.js → aisdk-native-rpg6kbz8.js} +9 -9
- package/dist/chunks/{aisdk-native-x16ewxve.js → aisdk-native-rqq8xd54.js} +15 -15
- package/dist/chunks/{aisdk-native-j5x2gm5w.js → aisdk-native-rsjan7rq.js} +3 -3
- package/dist/chunks/{aisdk-native-e248x3jn.js → aisdk-native-rtd6da40.js} +8 -8
- package/dist/chunks/{aisdk-native-mp6d0dty.js → aisdk-native-rzs3gq0x.js} +7 -7
- package/dist/chunks/{aisdk-native-nxhqveyz.js → aisdk-native-s8zy8myc.js} +3 -3
- package/dist/chunks/{aisdk-native-ppegfhjd.js → aisdk-native-sqr3fkms.js} +7 -7
- package/dist/chunks/{aisdk-native-scavptnn.js → aisdk-native-szxaz7kb.js} +19 -19
- package/dist/chunks/{aisdk-native-sxzvkvgj.js → aisdk-native-tcay1cqt.js} +5 -5
- package/dist/chunks/{aisdk-native-jjke4x7z.js → aisdk-native-tm9sbs98.js} +12 -12
- package/dist/chunks/{aisdk-native-nhhcxfy5.js → aisdk-native-tnmp8ffe.js} +23 -23
- package/dist/chunks/{aisdk-native-v7zr17ek.js → aisdk-native-tz3y59f8.js} +3 -3
- package/dist/chunks/{aisdk-native-1x11rq2a.js → aisdk-native-v1faaxn9.js} +4 -4
- package/dist/chunks/{aisdk-native-b1r5pdk4.js → aisdk-native-v1kmkjnd.js} +17 -17
- package/dist/chunks/{aisdk-native-wfszgscg.js → aisdk-native-vfn2zzmw.js} +26 -26
- package/dist/chunks/{aisdk-native-bajakh74.js → aisdk-native-vkxpz7g2.js} +1 -1
- package/dist/chunks/{aisdk-native-50p7p4wm.js → aisdk-native-vnbtwqd9.js} +5 -5
- package/dist/chunks/{aisdk-native-jkv0zw5y.js → aisdk-native-w3sncgk8.js} +24 -24
- package/dist/chunks/{aisdk-native-23pqda6t.js → aisdk-native-w4arg62q.js} +3 -3
- package/dist/chunks/{aisdk-native-e3ayzqwh.js → aisdk-native-w4axh9wz.js} +5 -5
- package/dist/chunks/{aisdk-native-wbghmt8t.js → aisdk-native-we30fdbd.js} +19 -19
- package/dist/chunks/{aisdk-native-xdce8axh.js → aisdk-native-wktpt5qp.js} +5 -5
- package/dist/chunks/{aisdk-native-bjn91642.js → aisdk-native-x0511brf.js} +3 -3
- package/dist/chunks/{aisdk-native-vdd4sn1x.js → aisdk-native-x90pca9b.js} +6 -6
- package/dist/chunks/{aisdk-native-9q3gb9j3.js → aisdk-native-xa98q82c.js} +12 -12
- package/dist/chunks/{aisdk-native-3mhvwx4s.js → aisdk-native-xak7szdq.js} +9 -9
- package/dist/chunks/{aisdk-native-hrywwc1n.js → aisdk-native-xk8kmkj3.js} +12 -12
- package/dist/chunks/{aisdk-native-n4xd5mbw.js → aisdk-native-xs2jpm2x.js} +7 -7
- package/dist/chunks/{aisdk-native-z84mk0fk.js → aisdk-native-yafv6bxz.js} +13 -13
- package/dist/chunks/{aisdk-native-f8pwhm1g.js → aisdk-native-ym5ee435.js} +25 -25
- package/dist/chunks/{aisdk-native-zctbk1s6.js → aisdk-native-ynk1nd5w.js} +36 -36
- package/dist/chunks/{aisdk-native-s4enseaf.js → aisdk-native-yrznvahk.js} +1 -1
- package/dist/chunks/{aisdk-native-4xr2831z.js → aisdk-native-z2x1npkm.js} +8 -8
- package/dist/chunks/{aisdk-native-hh7agjhc.js → aisdk-native-z4305a57.js} +34 -34
- package/dist/chunks/{aisdk-native-6z9sgxqn.js → aisdk-native-z4zm4h76.js} +39 -39
- package/dist/chunks/{aisdk-native-e1pmx1t0.js → aisdk-native-z63k4sg0.js} +13 -13
- package/dist/chunks/{aisdk-native-29x78va6.js → aisdk-native-z63w68vq.js} +4 -4
- package/dist/chunks/{aisdk-native-h0h5wsmg.js → aisdk-native-zdhkzmh8.js} +15 -15
- package/dist/chunks/{aisdk-native-tdbz4xj3.js → aisdk-native-zf7xdvsm.js} +4 -4
- package/dist/chunks/{aisdk-native-h610k8s8.js → aisdk-native-zjcf0rqn.js} +14 -14
- package/dist/chunks/{aisdk-native-28e4y2hv.js → aisdk-native-zjym0m08.js} +10 -10
- package/dist/chunks/{aisdk-native-pfzt5ex6.js → aisdk-native-zrt42jaw.js} +5 -5
- package/dist/chunks/{aisdk-native-34q1q4g3.js → aisdk-native-ztctrtvz.js} +1 -1
- package/dist/chunks/{aisdk-native-0f0361zd.js → aisdk-native-ztm0qtrx.js} +37 -37
- package/dist/chunks/{aisdk-native-2vs2nh1n.js → aisdk-native-zvt5dnpc.js} +3 -3
- package/dist/codemode/instructions.js +4 -4
- package/dist/command.js +72 -72
- package/dist/config/discovery.js +63 -63
- package/dist/config/normalize.js +85 -85
- package/dist/config/plugin/agent.js +100 -100
- package/dist/config/plugin/command.js +181 -181
- package/dist/config/plugin/compaction.js +127 -127
- package/dist/config/plugin/compatibility.js +116 -116
- package/dist/config/plugin/formatter.js +99 -99
- package/dist/config/plugin/image.js +98 -98
- package/dist/config/plugin/instruction.js +70 -70
- package/dist/config/plugin/location-watcher.js +100 -100
- package/dist/config/plugin/mcp.js +106 -106
- package/dist/config/plugin/policy.js +98 -98
- package/dist/config/plugin/provider.js +98 -98
- package/dist/config/plugin/reference.js +100 -100
- package/dist/config/plugin/shell.js +98 -98
- package/dist/config/plugin/skill-file.js +78 -78
- package/dist/config/plugin/skill.js +119 -119
- package/dist/config/plugin/snapshot.js +98 -98
- package/dist/config/plugin/source.js +101 -101
- package/dist/config/plugin/tool-output.js +100 -100
- package/dist/config/plugin/websearch.js +97 -97
- package/dist/config/plugin/worktree.js +100 -100
- package/dist/config/variable.js +2 -2
- package/dist/config.js +104 -104
- package/dist/credential.js +69 -69
- package/dist/database/database.js +55 -55
- package/dist/database/drizzle/effect-sqlite/driver.js +10 -10
- package/dist/database/drizzle/effect-sqlite/index.js +6 -6
- package/dist/database/drizzle/effect-sqlite/session.js +7 -7
- package/dist/database/drizzle/index.js +11 -11
- package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
- package/dist/database/drizzle.js +11 -11
- package/dist/database/migration.gen.js +39 -39
- package/dist/database/migration.js +40 -40
- package/dist/database/v1-migration.bun.js +9 -9
- package/dist/effect/app-node-builder.js +233 -233
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/environment/environment.js +71 -71
- package/dist/environment/index.js +73 -73
- package/dist/event-logger.js +10 -10
- package/dist/file-access.js +81 -81
- package/dist/file-mutation.js +72 -72
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +194 -194
- package/dist/filesystem/search.js +73 -73
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +14 -14
- package/dist/filesystem.js +78 -78
- package/dist/form.js +70 -70
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +68 -68
- package/dist/generate.js +84 -84
- package/dist/git.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +3 -3
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +80 -80
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +311 -311
- package/dist/instruction-discovery.js +72 -72
- package/dist/instructions/builtins.js +68 -68
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +70 -70
- package/dist/job.js +63 -63
- package/dist/kv.js +60 -60
- package/dist/location-activity.js +54 -54
- package/dist/location-mutation.js +31 -31
- package/dist/location-service-map.js +67 -67
- package/dist/location-services.js +309 -309
- package/dist/location.js +68 -68
- package/dist/mcp/client.js +18 -18
- package/dist/mcp/index.js +82 -82
- package/dist/mcp/instructions.js +100 -100
- package/dist/mcp/oauth.js +14 -14
- package/dist/mcp/stdio.js +68 -68
- package/dist/modal/models.js +80 -80
- package/dist/model-resolver.js +79 -79
- package/dist/model.js +81 -81
- package/dist/models-dev.js +87 -87
- package/dist/permission/saved.js +64 -64
- package/dist/permission.js +90 -90
- package/dist/persistent-pty/index.js +70 -70
- package/dist/persistent-pty.js +60 -60
- package/dist/plugin/agent.js +81 -81
- package/dist/plugin/command.js +79 -79
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +185 -185
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +288 -288
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +76 -76
- package/dist/plugin/module.js +3 -3
- package/dist/plugin/plan.js +79 -79
- package/dist/plugin/provider/amazon-bedrock.js +71 -71
- package/dist/plugin/provider/azure.js +97 -97
- package/dist/plugin/provider/cloudflare-ai-gateway.js +96 -96
- package/dist/plugin/provider/cloudflare-workers-ai.js +96 -96
- package/dist/plugin/provider/configured.js +95 -95
- package/dist/plugin/provider/digitalocean.js +73 -73
- package/dist/plugin/provider/github-copilot.js +74 -74
- package/dist/plugin/provider/gitlab.js +72 -72
- package/dist/plugin/provider/google-vertex.js +71 -71
- package/dist/plugin/provider/llmgateway.js +63 -63
- package/dist/plugin/provider/lmstudio.js +96 -96
- package/dist/plugin/provider/modal.js +73 -73
- package/dist/plugin/provider/ollama.js +96 -96
- package/dist/plugin/provider/openai.js +72 -72
- package/dist/plugin/provider/opencode.js +73 -73
- package/dist/plugin/provider/openrouter.js +72 -72
- package/dist/plugin/provider/poe.js +63 -63
- package/dist/plugin/provider/prompt-cache-key.js +71 -71
- package/dist/plugin/provider/sap-ai-core.js +71 -71
- package/dist/plugin/provider/snowflake-cortex.js +97 -97
- package/dist/plugin/provider/vercel.js +71 -71
- package/dist/plugin/provider/vllm.js +96 -96
- package/dist/plugin/provider/xai.js +72 -72
- package/dist/plugin/provider.js +129 -129
- package/dist/plugin/sdk.js +64 -64
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +117 -117
- package/dist/plugin/supervisor.js +302 -302
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +67 -67
- package/dist/plugin/vcs/hg.js +67 -67
- package/dist/plugin/warming.js +97 -97
- package/dist/plugin/websearch/exa.js +4 -4
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +5 -5
- package/dist/plugin/websearch/parallel.js +7 -7
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +7 -7
- package/dist/plugin.js +192 -192
- package/dist/project/schema.js +7 -7
- package/dist/project.js +71 -71
- package/dist/provider.js +78 -78
- package/dist/pty.js +73 -73
- package/dist/reference/instructions.js +72 -72
- package/dist/reference.js +74 -74
- package/dist/repository-cache.js +65 -65
- package/dist/repository.js +3 -3
- package/dist/ripgrep.js +74 -74
- package/dist/rpc.js +67 -67
- package/dist/session/command.js +61 -61
- package/dist/session/compaction.js +100 -100
- package/dist/session/context.js +124 -124
- package/dist/session/diff.js +67 -67
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +6 -6
- package/dist/session/execution/restart.js +119 -119
- package/dist/session/execution.js +105 -105
- package/dist/session/generate.js +125 -125
- package/dist/session/history.js +8 -8
- package/dist/session/inbox.js +69 -69
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +61 -61
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +71 -71
- package/dist/session/model-request.js +91 -91
- package/dist/session/model-transport.js +5 -5
- package/dist/session/move.js +106 -106
- package/dist/session/projector.js +66 -66
- package/dist/session/prompt.js +81 -81
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +69 -69
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +192 -192
- package/dist/session/runner/model.js +79 -79
- package/dist/session/runner/retry.js +91 -91
- package/dist/session/runner/step.js +99 -99
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +143 -143
- package/dist/session/shell.js +111 -111
- package/dist/session/skill.js +80 -80
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +69 -69
- package/dist/session/subagent-job.js +178 -178
- package/dist/session/title.js +121 -121
- package/dist/session/to-session-error.js +88 -88
- package/dist/session/transfer.js +114 -114
- package/dist/session.js +185 -185
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +10 -10
- package/dist/shell.js +114 -114
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +84 -84
- package/dist/skill.js +87 -87
- package/dist/snapshot.js +72 -72
- package/dist/tool/mcp.js +97 -97
- package/dist/tool/plugin/edit.js +94 -94
- package/dist/tool/plugin/glob.js +98 -98
- package/dist/tool/plugin/grep.js +96 -96
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +96 -96
- package/dist/tool/plugin/question.js +78 -78
- package/dist/tool/plugin/read.js +98 -98
- package/dist/tool/plugin/shell.js +184 -184
- package/dist/tool/plugin/skill.js +90 -90
- package/dist/tool/plugin/subagent.js +187 -187
- package/dist/tool/plugin/webfetch.js +85 -85
- package/dist/tool/plugin/websearch.js +89 -89
- package/dist/tool/plugin/write.js +96 -96
- package/dist/tool/read-filesystem.js +72 -72
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +9 -9
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +14 -14
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +72 -72
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/v1/config/skills.js +3 -3
- package/dist/variant.js +74 -74
- package/dist/vcs.js +68 -68
- package/dist/websearch.js +66 -66
- package/dist/wellknown/plugin.js +62 -62
- package/dist/wellknown.js +67 -67
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +66 -66
- package/dist/worktree/git.js +6 -6
- package/dist/worktree/strategies.js +69 -69
- package/dist/worktree.js +75 -75
- package/package.json +8 -8
- package/dist/chunks/aisdk-native-4144tsc8.js +0 -26
- package/dist/chunks/aisdk-native-esph3pet.js +0 -478
- package/dist/chunks/aisdk-native-vy5gba4s.js +0 -247
- /package/dist/chunks/{aisdk-native-gx8hye9g.js → aisdk-native-4vp46et4.js} +0 -0
- /package/dist/chunks/{aisdk-native-1cfb3ja4.js → aisdk-native-94s48bjb.js} +0 -0
- /package/dist/chunks/{aisdk-native-nyvrwfsp.js → aisdk-native-98c88b32.js} +0 -0
- /package/dist/chunks/{aisdk-native-79k2e49w.js → aisdk-native-e6tgtk7f.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service81
|
|
3
|
-
} from "./aisdk-native-
|
|
3
|
+
} from "./aisdk-native-kb2qx9e9.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./aisdk-native-
|
|
5
|
+
Service67,
|
|
6
|
+
Event15
|
|
7
|
+
} from "./aisdk-native-347x7wat.js";
|
|
8
8
|
|
|
9
9
|
// src/plugin/models-dev.ts
|
|
10
10
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -29,7 +29,7 @@ var BEDROCK_PROFILE_ONLY_IDS = [
|
|
|
29
29
|
var ModelsDevPlugin2 = define({
|
|
30
30
|
id: "opencode.models.dev",
|
|
31
31
|
effect: Effect.fn(function* (ctx) {
|
|
32
|
-
const modelsDev = yield*
|
|
32
|
+
const modelsDev = yield* Service67;
|
|
33
33
|
const bus = yield* Service81;
|
|
34
34
|
const loaded = { data: snapshots(yield* modelsDev.get()) };
|
|
35
35
|
yield* ctx.integration.transform((integrations) => {
|
|
@@ -59,7 +59,7 @@ var ModelsDevPlugin2 = define({
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
|
-
yield* bus.subscribe(
|
|
62
|
+
yield* bus.subscribe(Event15.Refreshed).pipe(Stream.runForEach(() => modelsDev.get().pipe(Effect.tap((data) => Effect.sync(() => loaded.data = snapshots(data))), Effect.andThen(ctx.integration.reload()), Effect.andThen(ctx.provider.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
63
63
|
})
|
|
64
64
|
});
|
|
65
65
|
function environmentNames(provider) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mergeOverlay2,
|
|
3
3
|
mergeHeaders2
|
|
4
|
-
} from "./aisdk-native-
|
|
4
|
+
} from "./aisdk-native-gx4b9ghh.js";
|
|
5
5
|
import {
|
|
6
6
|
latest2,
|
|
7
|
-
|
|
8
|
-
} from "./aisdk-native-
|
|
7
|
+
Service40
|
|
8
|
+
} from "./aisdk-native-kaqsmsnp.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./aisdk-native-
|
|
10
|
+
resolve4
|
|
11
|
+
} from "./aisdk-native-g29ecd2d.js";
|
|
12
12
|
import {
|
|
13
13
|
observe2
|
|
14
14
|
} from "./aisdk-native-qsdy395h.js";
|
|
@@ -20,15 +20,15 @@ import {
|
|
|
20
20
|
var exports_provider = {};
|
|
21
21
|
__export(exports_provider, {
|
|
22
22
|
ConfigProviderPlugin: () => exports_provider,
|
|
23
|
-
Plugin: () =>
|
|
23
|
+
Plugin: () => Plugin35
|
|
24
24
|
});
|
|
25
25
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
26
26
|
import { Money } from "@opencode/schema/money";
|
|
27
27
|
import { Effect } from "effect";
|
|
28
|
-
var
|
|
28
|
+
var Plugin35 = define({
|
|
29
29
|
id: "opencode.config.provider",
|
|
30
30
|
effect: Effect.fn(function* (ctx) {
|
|
31
|
-
const config = yield*
|
|
31
|
+
const config = yield* Service40;
|
|
32
32
|
const loaded = yield* observe2(config, ctx.event, ctx.integration.reload().pipe(Effect.andThen(ctx.provider.reload())));
|
|
33
33
|
yield* ctx.integration.transform((integrations) => {
|
|
34
34
|
for (const [id, provider] of configuredProviders(loaded.entries)) {
|
|
@@ -185,7 +185,7 @@ var Plugin24 = define({
|
|
|
185
185
|
if (config.variants === undefined && !source?.base)
|
|
186
186
|
models.update(providerID, id, (model) => {
|
|
187
187
|
model.variants = [
|
|
188
|
-
...
|
|
188
|
+
...resolve4({
|
|
189
189
|
...model,
|
|
190
190
|
package: model.package ?? models.provider.get(providerID)?.provider.package
|
|
191
191
|
})
|
|
@@ -200,4 +200,4 @@ function configuredProviders(entries) {
|
|
|
200
200
|
return entries.filter((entry) => entry.type === "document").flatMap((file) => Object.entries(file.info.providers ?? {}));
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
-
export {
|
|
203
|
+
export { Plugin35, exports_provider };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service81,
|
|
3
3
|
node85
|
|
4
|
-
} from "./aisdk-native-
|
|
4
|
+
} from "./aisdk-native-kb2qx9e9.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./aisdk-native-
|
|
6
|
+
Service78,
|
|
7
|
+
node82
|
|
8
|
+
} from "./aisdk-native-bn8xvxc9.js";
|
|
9
9
|
import {
|
|
10
10
|
SessionEvent2
|
|
11
11
|
} from "./aisdk-native-ec1grn59.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./aisdk-native-
|
|
13
|
+
Service60,
|
|
14
|
+
node62
|
|
15
|
+
} from "./aisdk-native-hffbynf2.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
18
|
} from "./aisdk-native-9rqn6x4v.js";
|
|
@@ -37,8 +37,8 @@ class Service11 extends Context.Service()("@opencode/SessionInstructions") {
|
|
|
37
37
|
var layer = Layer.effect(Service11, Effect.gen(function* () {
|
|
38
38
|
const bus = yield* Service81;
|
|
39
39
|
const fs = yield* FSUtil.Service;
|
|
40
|
-
const store = yield*
|
|
41
|
-
const location = yield*
|
|
40
|
+
const store = yield* Service60;
|
|
41
|
+
const location = yield* Service78;
|
|
42
42
|
const root = yield* fs.resolve(location.project.directory);
|
|
43
43
|
const inFlight = yield* Ref.make(new Map);
|
|
44
44
|
const load = Effect.fn("SessionInstructions.load")(function* (input) {
|
|
@@ -98,7 +98,7 @@ function describePath(root, path) {
|
|
|
98
98
|
var node13 = makeLocationNode({
|
|
99
99
|
name: "session-instructions",
|
|
100
100
|
layer,
|
|
101
|
-
deps: [node85, FSUtil.node,
|
|
101
|
+
deps: [node85, FSUtil.node, node82, node62]
|
|
102
102
|
});
|
|
103
103
|
|
|
104
104
|
export { Service11, node13, exports_instructions };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./aisdk-native-
|
|
3
|
+
} from "./aisdk-native-xs2jpm2x.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./aisdk-native-
|
|
5
|
+
ID12
|
|
6
|
+
} from "./aisdk-native-gx4b9ghh.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/gitlab.ts
|
|
9
9
|
import os from "os";
|
|
@@ -33,7 +33,7 @@ var GitLabPlugin2 = define({
|
|
|
33
33
|
});
|
|
34
34
|
}));
|
|
35
35
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
36
|
-
if (evt.model.providerID !==
|
|
36
|
+
if (evt.model.providerID !== ID12.gitlab)
|
|
37
37
|
return;
|
|
38
38
|
const featureFlags = typeof evt.options.featureFlags === "object" && evt.options.featureFlags ? evt.options.featureFlags : {};
|
|
39
39
|
const id = evt.model.modelID ?? evt.model.id;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./aisdk-native-
|
|
2
|
+
Service40
|
|
3
|
+
} from "./aisdk-native-kaqsmsnp.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./aisdk-native-
|
|
5
|
+
Service30
|
|
6
|
+
} from "./aisdk-native-qbfny5ar.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./aisdk-native-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/config/plugin/mcp.ts
|
|
12
|
-
var
|
|
13
|
-
__export(
|
|
14
|
-
ConfigMcpPlugin: () =>
|
|
15
|
-
Plugin: () =>
|
|
12
|
+
var exports_mcp2 = {};
|
|
13
|
+
__export(exports_mcp2, {
|
|
14
|
+
ConfigMcpPlugin: () => exports_mcp2,
|
|
15
|
+
Plugin: () => Plugin32,
|
|
16
16
|
register: () => register2
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Stream } from "effect";
|
|
20
|
-
var
|
|
20
|
+
var Plugin32 = define({
|
|
21
21
|
id: "opencode.config.mcp",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
23
|
yield* register2(ctx.event.subscribe());
|
|
24
24
|
})
|
|
25
25
|
});
|
|
26
26
|
var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
|
|
27
|
-
const config = yield*
|
|
28
|
-
const mcp = yield*
|
|
27
|
+
const config = yield* Service40;
|
|
28
|
+
const mcp = yield* Service30;
|
|
29
29
|
const loaded = { entries: [] };
|
|
30
30
|
yield* events.pipe(Stream.filter((event) => event.type === "config.updated"), Stream.runForEach(() => config.entries().pipe(Effect.tap((entries) => Effect.sync(() => loaded.entries = entries)), Effect.andThen(mcp.reload()), Effect.catchCause((cause) => Effect.logError("failed to reload MCP config", { cause })))), Effect.ignore, Effect.forkScoped({ startImmediately: true }));
|
|
31
31
|
loaded.entries = yield* config.entries();
|
|
@@ -46,4 +46,4 @@ var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
|
|
|
46
46
|
});
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { Plugin32, register2, exports_mcp2 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlockedError2
|
|
3
|
-
} from "./aisdk-native-
|
|
3
|
+
} from "./aisdk-native-2rnv70v8.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./aisdk-native-9rqn6x4v.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
var exports_plan = {};
|
|
10
10
|
__export(exports_plan, {
|
|
11
11
|
PlanPlugin: () => exports_plan,
|
|
12
|
-
Plugin: () =>
|
|
12
|
+
Plugin: () => Plugin10
|
|
13
13
|
});
|
|
14
14
|
import { Message, ToolFailure } from "@opencode/ai";
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -29,7 +29,7 @@ You remain in Plan mode until the user switches agents. If the user asks you to
|
|
|
29
29
|
var leave = `<system-reminder>
|
|
30
30
|
You are NO LONGER in Plan mode. The previous Plan restrictions no longer apply. Any Plan mode instructions from earlier in this conversation are no longer active.
|
|
31
31
|
</system-reminder>`;
|
|
32
|
-
var
|
|
32
|
+
var Plugin10 = define({
|
|
33
33
|
id: "opencode.plan",
|
|
34
34
|
effect: Effect.fn(function* (ctx) {
|
|
35
35
|
const global = yield* Global.Service;
|
|
@@ -106,4 +106,4 @@ function lastReminder(messages, enterReminder) {
|
|
|
106
106
|
}, undefined);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
export {
|
|
109
|
+
export { Plugin10, exports_plan };
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service81,
|
|
3
3
|
node85
|
|
4
|
-
} from "./aisdk-native-
|
|
4
|
+
} from "./aisdk-native-kb2qx9e9.js";
|
|
5
|
+
import {
|
|
6
|
+
Service80,
|
|
7
|
+
node84
|
|
8
|
+
} from "./aisdk-native-ab8cnxkj.js";
|
|
5
9
|
import {
|
|
6
10
|
Service78,
|
|
7
11
|
node82
|
|
8
|
-
} from "./aisdk-native-
|
|
9
|
-
import {
|
|
10
|
-
Service76,
|
|
11
|
-
node80
|
|
12
|
-
} from "./aisdk-native-tddjggae.js";
|
|
12
|
+
} from "./aisdk-native-bn8xvxc9.js";
|
|
13
13
|
import {
|
|
14
14
|
awaitActivation2
|
|
15
|
-
} from "./aisdk-native-
|
|
15
|
+
} from "./aisdk-native-v1faaxn9.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./aisdk-native-
|
|
17
|
+
Service41,
|
|
18
|
+
node44
|
|
19
|
+
} from "./aisdk-native-74v01gcw.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./aisdk-native-
|
|
21
|
+
node19
|
|
22
|
+
} from "./aisdk-native-r04jyq6d.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./aisdk-native-
|
|
24
|
+
Service9,
|
|
25
|
+
node10
|
|
26
|
+
} from "./aisdk-native-gjwgx2c5.js";
|
|
27
27
|
import {
|
|
28
28
|
__export
|
|
29
29
|
} from "./aisdk-native-9rqn6x4v.js";
|
|
30
30
|
|
|
31
31
|
// src/filesystem/location-watcher.ts
|
|
32
|
-
var
|
|
33
|
-
__export(
|
|
34
|
-
LocationWatcher: () =>
|
|
35
|
-
Service: () =>
|
|
36
|
-
node: () =>
|
|
32
|
+
var exports_location_watcher2 = {};
|
|
33
|
+
__export(exports_location_watcher2, {
|
|
34
|
+
LocationWatcher: () => exports_location_watcher2,
|
|
35
|
+
Service: () => Service8,
|
|
36
|
+
node: () => node9
|
|
37
37
|
});
|
|
38
38
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
39
39
|
import { Cause, Context, Effect, Exit, Layer, Scope, Semaphore, Stream } from "effect";
|
|
40
40
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
41
41
|
import path from "path";
|
|
42
42
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
43
|
-
class
|
|
43
|
+
class Service8 extends Context.Service()("@opencode/LocationWatcher") {
|
|
44
44
|
}
|
|
45
|
-
var layer = Layer.effect(
|
|
46
|
-
const location = yield*
|
|
47
|
-
const watcher = yield*
|
|
45
|
+
var layer = Layer.effect(Service8, Effect.gen(function* () {
|
|
46
|
+
const location = yield* Service78;
|
|
47
|
+
const watcher = yield* Service41;
|
|
48
48
|
const bus = yield* Service81;
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
51
|
-
const policy = yield*
|
|
50
|
+
const git = yield* Service80;
|
|
51
|
+
const policy = yield* Service9;
|
|
52
52
|
const publish = (update) => bus.publish(FileSystem.Event.Changed, {
|
|
53
53
|
file: update.path,
|
|
54
54
|
event: update.type === "create" ? "add" : update.type === "update" ? "change" : "unlink"
|
|
@@ -100,12 +100,12 @@ var layer = Layer.effect(Service2, Effect.gen(function* () {
|
|
|
100
100
|
yield* awaitActivation2;
|
|
101
101
|
yield* reconcile();
|
|
102
102
|
}).pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logError("failed to start location watcher", { cause })), Effect.forkScoped({ startImmediately: true }));
|
|
103
|
-
return
|
|
103
|
+
return Service8.of({});
|
|
104
104
|
}));
|
|
105
|
-
var
|
|
106
|
-
service:
|
|
105
|
+
var node9 = makeLocationNode({
|
|
106
|
+
service: Service8,
|
|
107
107
|
layer,
|
|
108
|
-
deps: [
|
|
108
|
+
deps: [node44, FSUtil.node, node82, node84, node85, node19, node10]
|
|
109
109
|
});
|
|
110
110
|
|
|
111
|
-
export {
|
|
111
|
+
export { Service8, node9, exports_location_watcher2 };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service82,
|
|
3
3
|
node86
|
|
4
|
-
} from "./aisdk-native-
|
|
4
|
+
} from "./aisdk-native-nntat7jz.js";
|
|
5
5
|
import {
|
|
6
6
|
Service81,
|
|
7
7
|
node85
|
|
8
|
-
} from "./aisdk-native-
|
|
8
|
+
} from "./aisdk-native-kb2qx9e9.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
11
|
} from "./aisdk-native-pknna89w.js";
|
|
@@ -20,44 +20,44 @@ import {
|
|
|
20
20
|
var exports_credential = {};
|
|
21
21
|
__export(exports_credential, {
|
|
22
22
|
Credential: () => exports_credential,
|
|
23
|
-
Event: () =>
|
|
24
|
-
ID: () =>
|
|
25
|
-
Info: () =>
|
|
23
|
+
Event: () => Event19,
|
|
24
|
+
ID: () => ID14,
|
|
25
|
+
Info: () => Info29,
|
|
26
26
|
Key: () => Key4,
|
|
27
27
|
OAuth: () => OAuth3,
|
|
28
|
-
Service: () =>
|
|
28
|
+
Service: () => Service72,
|
|
29
29
|
Value: () => Value2,
|
|
30
|
-
node: () =>
|
|
30
|
+
node: () => node75
|
|
31
31
|
});
|
|
32
32
|
import { asc, desc, eq } from "drizzle-orm";
|
|
33
33
|
import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
34
34
|
import { Credential } from "@opencode/schema/credential";
|
|
35
35
|
import { Integration } from "@opencode/schema/integration";
|
|
36
36
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
37
|
-
var
|
|
37
|
+
var ID14 = Credential.ID;
|
|
38
38
|
var OAuth3 = Credential.OAuth;
|
|
39
39
|
var Key4 = Credential.Key;
|
|
40
40
|
var Value2 = Credential.Value;
|
|
41
|
-
var
|
|
41
|
+
var Event19 = Credential.Event;
|
|
42
42
|
|
|
43
|
-
class
|
|
44
|
-
id:
|
|
43
|
+
class Info29 extends Schema.Class("Credential.Info")({
|
|
44
|
+
id: ID14,
|
|
45
45
|
integrationID: Integration.ID,
|
|
46
46
|
label: Schema.String,
|
|
47
47
|
value: Value2
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service72 extends Context.Service()("@opencode/Credential") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
53
|
+
var layer = Layer.effect(Service72, Effect.gen(function* () {
|
|
54
54
|
const db = (yield* Service82).db;
|
|
55
55
|
const bus = yield* Service81;
|
|
56
56
|
const decode = Schema.decodeUnknownSync(Value2);
|
|
57
57
|
const stored = (row) => {
|
|
58
58
|
if (!row.integration_id)
|
|
59
59
|
return;
|
|
60
|
-
return new
|
|
60
|
+
return new Info29({
|
|
61
61
|
id: row.id,
|
|
62
62
|
integrationID: row.integration_id,
|
|
63
63
|
label: row.label,
|
|
@@ -68,7 +68,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
68
68
|
const credential = stored(row);
|
|
69
69
|
return credential ? [credential] : [];
|
|
70
70
|
});
|
|
71
|
-
return
|
|
71
|
+
return Service72.of({
|
|
72
72
|
all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
73
73
|
list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
74
74
|
get: Effect.fn("Credential.get")(function* (id) {
|
|
@@ -76,8 +76,8 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
76
76
|
return row ? stored(row) : undefined;
|
|
77
77
|
}),
|
|
78
78
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
79
|
-
const credential = new
|
|
80
|
-
id:
|
|
79
|
+
const credential = new Info29({
|
|
80
|
+
id: ID14.create(),
|
|
81
81
|
integrationID: input.integrationID,
|
|
82
82
|
label: input.label ?? "default",
|
|
83
83
|
value: input.value
|
|
@@ -101,8 +101,8 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
101
101
|
integrationID: credential.integrationID,
|
|
102
102
|
type: credential.value.type
|
|
103
103
|
});
|
|
104
|
-
yield* bus.publish(
|
|
105
|
-
yield* bus.publish(
|
|
104
|
+
yield* bus.publish(Event19.Updated, {}, { global: true });
|
|
105
|
+
yield* bus.publish(Event19.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
106
106
|
return credential;
|
|
107
107
|
}),
|
|
108
108
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
122
122
|
})), Effect.orDie);
|
|
123
123
|
if (integrationID) {
|
|
124
124
|
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
125
|
-
yield* bus.publish(
|
|
125
|
+
yield* bus.publish(Event19.Switched, { integrationID, credentialID: id }, { global: true });
|
|
126
126
|
}
|
|
127
127
|
}),
|
|
128
128
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
@@ -154,7 +154,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
154
154
|
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
155
155
|
});
|
|
156
156
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
157
|
-
yield* bus.publish(
|
|
157
|
+
yield* bus.publish(Event19.Updated, {}, { global: true });
|
|
158
158
|
}),
|
|
159
159
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
160
160
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -187,12 +187,12 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
187
187
|
active: removed.switched,
|
|
188
188
|
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
189
189
|
});
|
|
190
|
-
yield* bus.publish(
|
|
190
|
+
yield* bus.publish(Event19.Updated, {}, { global: true });
|
|
191
191
|
if (removed.switched)
|
|
192
|
-
yield* bus.publish(
|
|
192
|
+
yield* bus.publish(Event19.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
193
193
|
})
|
|
194
194
|
});
|
|
195
195
|
}));
|
|
196
|
-
var
|
|
196
|
+
var node75 = makeGlobalNode({ service: Service72, layer, deps: [node86, node85] });
|
|
197
197
|
|
|
198
|
-
export {
|
|
198
|
+
export { ID14, OAuth3, Key4, Value2, Event19, Info29, Service72, node75, exports_credential };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ID14,
|
|
3
|
-
Service75,
|
|
4
|
-
node79
|
|
5
|
-
} from "./aisdk-native-359m9qke.js";
|
|
6
1
|
import {
|
|
7
2
|
ID13,
|
|
3
|
+
Service71,
|
|
4
|
+
node74
|
|
5
|
+
} from "./aisdk-native-dn2z7ew9.js";
|
|
6
|
+
import {
|
|
7
|
+
ID12,
|
|
8
8
|
isAISDK2,
|
|
9
9
|
packageName2,
|
|
10
10
|
loadPackage2,
|
|
11
11
|
nativeSettings2,
|
|
12
12
|
mergeOverlay2,
|
|
13
13
|
mergeHeaders2,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./aisdk-native-
|
|
14
|
+
Service70,
|
|
15
|
+
node73
|
|
16
|
+
} from "./aisdk-native-gx4b9ghh.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./aisdk-native-
|
|
18
|
+
Service52,
|
|
19
|
+
node54
|
|
20
|
+
} from "./aisdk-native-cft9s2sz.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
22
|
+
ID11,
|
|
23
23
|
VariantID2,
|
|
24
24
|
Ref2,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./aisdk-native-
|
|
25
|
+
Service68,
|
|
26
|
+
node71
|
|
27
|
+
} from "./aisdk-native-c1a6g7fn.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
30
|
} from "./aisdk-native-9rqn6x4v.js";
|
|
@@ -36,15 +36,15 @@ __export(exports_model_resolver, {
|
|
|
36
36
|
ModelConfigurationError: () => ModelConfigurationError3,
|
|
37
37
|
ModelInitializationError: () => ModelInitializationError3,
|
|
38
38
|
ModelResolver: () => exports_model_resolver,
|
|
39
|
-
Service: () =>
|
|
39
|
+
Service: () => Service51,
|
|
40
40
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError3,
|
|
41
41
|
UnsupportedCompactionError: () => UnsupportedCompactionError3,
|
|
42
42
|
UnsupportedPackageError: () => UnsupportedPackageError3,
|
|
43
43
|
VariantUnavailableError: () => VariantUnavailableError3,
|
|
44
44
|
fromCatalogModel: () => fromCatalogModel2,
|
|
45
45
|
hasPackage: () => hasPackage2,
|
|
46
|
-
layer: () =>
|
|
47
|
-
node: () =>
|
|
46
|
+
layer: () => layer21,
|
|
47
|
+
node: () => node53,
|
|
48
48
|
resolveModel: () => resolveModel2,
|
|
49
49
|
withVariant: () => withVariant2
|
|
50
50
|
});
|
|
@@ -54,8 +54,8 @@ import { Auth } from "@opencode/ai/route";
|
|
|
54
54
|
import { Context, Effect, Layer, Schema, Struct } from "effect";
|
|
55
55
|
import { Npm } from "@opencode/util/npm";
|
|
56
56
|
class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
|
|
57
|
-
providerID:
|
|
58
|
-
modelID:
|
|
57
|
+
providerID: ID12,
|
|
58
|
+
modelID: ID11,
|
|
59
59
|
variant: VariantID2
|
|
60
60
|
}) {
|
|
61
61
|
get message() {
|
|
@@ -64,8 +64,8 @@ class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
class UnsupportedPackageError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
|
|
67
|
-
providerID:
|
|
68
|
-
modelID:
|
|
67
|
+
providerID: ID12,
|
|
68
|
+
modelID: ID11,
|
|
69
69
|
package: Schema.String
|
|
70
70
|
}) {
|
|
71
71
|
get message() {
|
|
@@ -75,8 +75,8 @@ class UnsupportedPackageError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
75
75
|
var InitializationPhase2 = Schema.Literals(["load", "init", "construct"]);
|
|
76
76
|
|
|
77
77
|
class ModelConfigurationError3 extends Schema.TaggedError()("SessionRunnerModel.ModelConfigurationError", {
|
|
78
|
-
providerID:
|
|
79
|
-
modelID:
|
|
78
|
+
providerID: ID12,
|
|
79
|
+
modelID: ID11,
|
|
80
80
|
package: Schema.String,
|
|
81
81
|
detail: Schema.String
|
|
82
82
|
}) {
|
|
@@ -86,8 +86,8 @@ class ModelConfigurationError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
class ModelInitializationError3 extends Schema.TaggedError()("SessionRunnerModel.ModelInitializationError", {
|
|
89
|
-
providerID:
|
|
90
|
-
modelID:
|
|
89
|
+
providerID: ID12,
|
|
90
|
+
modelID: ID11,
|
|
91
91
|
package: Schema.String,
|
|
92
92
|
phase: InitializationPhase2,
|
|
93
93
|
detail: Schema.String
|
|
@@ -98,8 +98,8 @@ class ModelInitializationError3 extends Schema.TaggedError()("SessionRunnerModel
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
|
|
101
|
-
providerID:
|
|
102
|
-
modelID:
|
|
101
|
+
providerID: ID12,
|
|
102
|
+
modelID: ID11,
|
|
103
103
|
variables: Schema.Array(Schema.String)
|
|
104
104
|
}) {
|
|
105
105
|
get message() {
|
|
@@ -108,8 +108,8 @@ class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRun
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
|
|
111
|
-
providerID:
|
|
112
|
-
modelID:
|
|
111
|
+
providerID: ID12,
|
|
112
|
+
modelID: ID11,
|
|
113
113
|
route: Schema.String
|
|
114
114
|
}) {
|
|
115
115
|
get message() {
|
|
@@ -117,7 +117,7 @@ class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
class
|
|
120
|
+
class Service51 extends Context.Service()("@opencode/ModelResolver") {
|
|
121
121
|
}
|
|
122
122
|
var withVariant2 = (model, variantID) => {
|
|
123
123
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -257,15 +257,15 @@ var causeMessage = (cause) => {
|
|
|
257
257
|
};
|
|
258
258
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
259
259
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
260
|
-
var
|
|
261
|
-
const providers = yield*
|
|
262
|
-
const models = yield*
|
|
263
|
-
const integrations = yield*
|
|
260
|
+
var layer21 = Layer.effect(Service51, Effect.gen(function* () {
|
|
261
|
+
const providers = yield* Service70;
|
|
262
|
+
const models = yield* Service68;
|
|
263
|
+
const integrations = yield* Service71;
|
|
264
264
|
const npm = yield* Npm.Service;
|
|
265
|
-
const aisdk = yield*
|
|
265
|
+
const aisdk = yield* Service52;
|
|
266
266
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
267
267
|
const provider = yield* providers.get(selected.providerID);
|
|
268
|
-
const connection = yield* integrations.connection.active(provider?.integrationID ??
|
|
268
|
+
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID13.make(selected.providerID));
|
|
269
269
|
const credential = connection ? yield* integrations.connection.resolve(connection) : undefined;
|
|
270
270
|
const runtimeInfo = yield* withVariant2(selected, variant);
|
|
271
271
|
const model = yield* fromCatalogModel2(runtimeInfo, credential, {
|
|
@@ -287,7 +287,7 @@ var layer24 = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
287
287
|
transport: selected.transport
|
|
288
288
|
};
|
|
289
289
|
});
|
|
290
|
-
return
|
|
290
|
+
return Service51.of({
|
|
291
291
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
292
292
|
const selected = requested ? yield* models.get(requested.providerID, requested.id) : yield* models.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(models.available(), (models) => models.find(hasPackage2))));
|
|
293
293
|
if (!selected)
|
|
@@ -304,10 +304,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
304
304
|
const name = packageName2(packageName);
|
|
305
305
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
306
306
|
}
|
|
307
|
-
var
|
|
308
|
-
service:
|
|
309
|
-
layer:
|
|
310
|
-
deps: [
|
|
307
|
+
var node53 = makeLocationNode({
|
|
308
|
+
service: Service51,
|
|
309
|
+
layer: layer21,
|
|
310
|
+
deps: [node73, node71, node74, Npm.node, node54]
|
|
311
311
|
});
|
|
312
312
|
|
|
313
|
-
export { VariantUnavailableError3, UnsupportedPackageError3, InitializationPhase2, ModelConfigurationError3, ModelInitializationError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3,
|
|
313
|
+
export { VariantUnavailableError3, UnsupportedPackageError3, InitializationPhase2, ModelConfigurationError3, ModelInitializationError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3, Service51, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer21, node53, exports_model_resolver };
|