@opencode/core 0.0.0-dev-21844 → 0.0.0-dev-21845
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 +62 -62
- package/dist/aisdk-native.js +72 -72
- package/dist/aisdk.js +77 -77
- package/dist/app.js +9 -9
- package/dist/bus.js +55 -55
- package/dist/chunks/{model-402jaq8j.js → model-013tddxk.js} +22 -22
- package/dist/chunks/{model-fkrw0yne.js → model-06npw4ea.js} +4 -4
- package/dist/chunks/{model-9revgexs.js → model-06s4d948.js} +27 -27
- package/dist/chunks/{model-m37sd98t.js → model-06w9ffrv.js} +6 -6
- package/dist/chunks/{model-vg9pdnzk.js → model-074yh523.js} +10 -10
- package/dist/chunks/{model-1vtrsweg.js → model-07zzdza0.js} +7 -7
- package/dist/chunks/{model-0fkemg5g.js → model-0avazfzn.js} +9 -9
- package/dist/chunks/{model-eh9fwdww.js → model-0jdv6s9h.js} +15 -15
- package/dist/chunks/{model-qk30m4sk.js → model-0q0mq65j.js} +27 -27
- package/dist/chunks/{model-731keyrx.js → model-0tpkjg9c.js} +3 -3
- package/dist/chunks/{model-0rdvx8mm.js → model-17n3exwy.js} +4 -4
- package/dist/chunks/{model-tpj42b92.js → model-17s4yebz.js} +12 -12
- package/dist/chunks/{model-b2v5bh0w.js → model-1cd8ske1.js} +1 -1
- package/dist/chunks/{model-27w5k9zf.js → model-1ep2p91f.js} +1 -1
- package/dist/chunks/{model-m12w7t7z.js → model-1jcs48vj.js} +20 -20
- package/dist/chunks/{model-78re1mwy.js → model-1jh4qr8c.js} +43 -43
- package/dist/chunks/{model-51dkjhxd.js → model-1npkc24w.js} +10 -10
- package/dist/chunks/{model-vk4kb8hn.js → model-1r26p0x0.js} +1 -1
- package/dist/chunks/{model-mshvsfxc.js → model-1t797f07.js} +9 -9
- package/dist/chunks/{model-p78d6nb1.js → model-1tmx6d4w.js} +12 -12
- package/dist/chunks/{model-z6a5rdjk.js → model-1wtzqdg9.js} +37 -37
- package/dist/chunks/{model-kdmmj2s1.js → model-239hgfhk.js} +332 -332
- package/dist/chunks/{model-64g0at16.js → model-2a76c6ad.js} +14 -14
- package/dist/chunks/{model-x8mwxtvw.js → model-2kx1ja8a.js} +10 -10
- package/dist/chunks/{model-0thmwexm.js → model-2rpkyssh.js} +16 -16
- package/dist/chunks/{model-kydjeqpp.js → model-344yvkvm.js} +14 -14
- package/dist/chunks/{model-16es53gj.js → model-3y91nzap.js} +1 -1
- package/dist/chunks/{model-4ezgq1x4.js → model-40vwnjgs.js} +20 -20
- package/dist/chunks/{model-t1dzyeae.js → model-4cxp2d2n.js} +22 -22
- package/dist/chunks/{model-83h65v0m.js → model-4dkagkf8.js} +16 -16
- package/dist/chunks/{model-hezje28m.js → model-4pwgqaz6.js} +8 -8
- package/dist/chunks/{model-7epxgbgt.js → model-4s5pdsz9.js} +4 -4
- package/dist/chunks/{model-npygb1ck.js → model-4v99rvbj.js} +39 -39
- package/dist/chunks/{model-f7d2s408.js → model-5067z2t4.js} +1 -1
- package/dist/chunks/{model-ar5gr77z.js → model-517h8a04.js} +14 -14
- package/dist/chunks/{model-sjwfx8gd.js → model-55x2dd8h.js} +25 -25
- package/dist/chunks/{model-hz64t7fz.js → model-5c2jv3bs.js} +19 -19
- package/dist/chunks/{model-jv29p3b2.js → model-5f9k77aj.js} +13 -13
- package/dist/chunks/{model-ke5mvtte.js → model-5gpknzzs.js} +6 -6
- package/dist/chunks/{model-nv7gks5s.js → model-5kx0spx3.js} +16 -16
- package/dist/chunks/{model-bpkn6vzp.js → model-5t0taa5t.js} +16 -16
- package/dist/chunks/{model-jbpvmnpb.js → model-5w7qse6t.js} +2 -2
- package/dist/chunks/{model-4h1tw5v6.js → model-5wa8msaj.js} +13 -13
- package/dist/chunks/{model-9p6bgy1n.js → model-61nbvadz.js} +21 -21
- package/dist/chunks/{model-7k1s1p1s.js → model-68sqyx0h.js} +9 -9
- package/dist/chunks/{model-cggmdc1q.js → model-6ah2hm3b.js} +11 -11
- package/dist/chunks/{model-9yp4nex6.js → model-6av68hmr.js} +13 -13
- package/dist/chunks/{model-2epr9161.js → model-6d6xnsqa.js} +3 -3
- package/dist/chunks/{model-kdzda3a0.js → model-6gqrrdq1.js} +2 -2
- package/dist/chunks/{model-2fawgvav.js → model-6jrjvs1q.js} +3 -3
- package/dist/chunks/{model-mdd67zeq.js → model-6qwcfsdb.js} +21 -21
- package/dist/chunks/{model-6g54p6vv.js → model-6sxj3h9v.js} +30 -30
- package/dist/chunks/{model-nammgbf3.js → model-6ypx34xn.js} +9 -9
- package/dist/chunks/{model-23c9q7k2.js → model-6zffjc3y.js} +20 -20
- package/dist/chunks/{model-5k0awfxt.js → model-71qqd1mm.js} +21 -21
- package/dist/chunks/{model-6wp6bfrs.js → model-7fxaydp2.js} +7 -7
- package/dist/chunks/{model-16wdtt3s.js → model-7pap5qv0.js} +10 -10
- package/dist/chunks/{model-ypmgnm5h.js → model-7rtchw7v.js} +21 -21
- package/dist/chunks/{model-7tya7q0k.js → model-7t90m43d.js} +24 -24
- package/dist/chunks/{model-ynbxcf5g.js → model-7texn7dm.js} +15 -15
- package/dist/chunks/{model-fxyrt7pt.js → model-7ybvcghj.js} +34 -34
- package/dist/chunks/{model-d77dj7jw.js → model-7yv5xa0k.js} +4 -4
- package/dist/chunks/{model-mk1nnq7z.js → model-7yzsmpy0.js} +16 -16
- package/dist/chunks/{model-jphwvgs8.js → model-81a9zpe2.js} +7 -7
- package/dist/chunks/{model-c795v49t.js → model-8rjeswr2.js} +12 -12
- package/dist/chunks/{model-md5wnt7s.js → model-8vy26t7y.js} +12 -12
- package/dist/chunks/{model-qc8k7t97.js → model-8wb0xjrc.js} +189 -189
- package/dist/chunks/{model-6y263vp8.js → model-8wc2fpae.js} +3 -3
- package/dist/chunks/{model-xzcr5bts.js → model-8z0derbe.js} +41 -41
- package/dist/chunks/{model-jn48zxs4.js → model-8zwekdex.js} +41 -41
- package/dist/chunks/{model-7sda5sp4.js → model-91vm8081.js} +17 -17
- package/dist/chunks/{model-wde7qgf4.js → model-95dpb2hs.js} +18 -18
- package/dist/chunks/{model-z4x76rn2.js → model-997kbpmn.js} +78 -78
- package/dist/chunks/{model-dvj9ct8m.js → model-998yhzzq.js} +1 -1
- package/dist/chunks/{model-wptrdbtg.js → model-9ayw3ng3.js} +23 -23
- package/dist/chunks/{model-0a386vbq.js → model-9eegv743.js} +14 -14
- package/dist/chunks/{model-cst19mf0.js → model-9p9tkha5.js} +1 -1
- package/dist/chunks/{model-dgk3rxyz.js → model-9wfy5dqd.js} +1 -1
- package/dist/chunks/{model-k8p71eb6.js → model-9whfcf9d.js} +9 -9
- package/dist/chunks/{model-8n9hptvh.js → model-9zvt316j.js} +7 -7
- package/dist/chunks/{model-q532msbf.js → model-a4zd03bm.js} +33 -33
- package/dist/chunks/{model-bw6x8991.js → model-a85cw3b8.js} +21 -21
- package/dist/chunks/{model-ssvsr732.js → model-a9fwsx2h.js} +13 -13
- package/dist/chunks/{model-g05c99nw.js → model-aadqys38.js} +18 -18
- package/dist/chunks/{model-9fecm269.js → model-aeqdbpyb.js} +3 -3
- package/dist/chunks/{model-yhbmf3r3.js → model-ahagnq8m.js} +15 -15
- package/dist/chunks/{model-v85ed5a0.js → model-awgvhhmb.js} +11 -11
- package/dist/chunks/{model-3cbjf1nt.js → model-ayjs7tqn.js} +1 -1
- package/dist/chunks/{model-d2887f8n.js → model-b1pn0vxn.js} +3 -3
- package/dist/chunks/{model-87f563jk.js → model-bcaznchz.js} +22 -22
- package/dist/chunks/{model-fpf4qn33.js → model-bg5kv5wd.js} +4 -4
- package/dist/chunks/{model-tndtbdsc.js → model-bj9pvvtr.js} +17 -17
- package/dist/chunks/{model-cs5ftkmn.js → model-c1bh859y.js} +82 -82
- package/dist/chunks/{model-srrx0f1t.js → model-cbpep9ws.js} +3 -3
- package/dist/chunks/{model-1985fcgx.js → model-cjhqq07p.js} +1 -1
- package/dist/chunks/{model-2azy8kv6.js → model-cpvd08na.js} +3 -3
- package/dist/chunks/{model-0rxj7185.js → model-cqsckrq7.js} +9 -9
- package/dist/chunks/{model-hzf7xk6p.js → model-d0cn4xf1.js} +5 -5
- package/dist/chunks/{model-zywtfy4s.js → model-dcmz9t73.js} +35 -35
- package/dist/chunks/{model-bjcz44tz.js → model-ddhyr0yf.js} +9 -9
- package/dist/chunks/{model-8pa2dj89.js → model-dkb543ed.js} +10 -10
- package/dist/chunks/{model-x0b87aqe.js → model-dmzdysgz.js} +2 -2
- package/dist/chunks/{model-nd89jxdt.js → model-dn2d8szr.js} +10 -10
- package/dist/chunks/{model-fe8dkmev.js → model-dw227c1f.js} +10 -10
- package/dist/chunks/{model-pnwsrq7c.js → model-dy9zc4pe.js} +6 -6
- package/dist/chunks/{model-r94gekwm.js → model-e07q2w5p.js} +3 -3
- package/dist/chunks/{model-v7jm5qwk.js → model-e77fbdv5.js} +10 -10
- package/dist/chunks/{model-06ezgrzy.js → model-e9fqtmvn.js} +5 -5
- package/dist/chunks/{model-2h78ty0q.js → model-eah0f417.js} +19 -19
- package/dist/chunks/{model-66ztx1wt.js → model-ebah8p59.js} +48 -48
- package/dist/chunks/{model-se9dde20.js → model-egfzyrh6.js} +7 -7
- package/dist/chunks/{model-ym8qy7cg.js → model-ej1k89v7.js} +15 -15
- package/dist/chunks/{model-tqx9c315.js → model-enkpkfwx.js} +7 -7
- package/dist/chunks/{model-ptxke91a.js → model-eq9v1gwe.js} +16 -16
- package/dist/chunks/{model-3mgb105e.js → model-eqh43b5v.js} +7 -7
- package/dist/chunks/{model-5ty2nrhd.js → model-esvjtfcf.js} +37 -37
- package/dist/chunks/{model-w468ve0r.js → model-evbwgfv9.js} +4 -4
- package/dist/chunks/{model-62s0mvmm.js → model-f25016qf.js} +5 -5
- package/dist/chunks/{model-384j55ww.js → model-f55ft9wv.js} +5 -5
- package/dist/chunks/{model-qy4ztezv.js → model-ffxn8jxv.js} +15 -15
- package/dist/chunks/{model-4detq15m.js → model-fjjq356h.js} +16 -16
- package/dist/chunks/{model-5v1kf3ra.js → model-fkhwkvg4.js} +9 -9
- package/dist/chunks/{model-7ae59qwn.js → model-frh258xe.js} +4 -4
- package/dist/chunks/{model-555mb07r.js → model-fx2893te.js} +29 -29
- package/dist/chunks/{model-vqyypdr4.js → model-g022fde4.js} +52 -52
- package/dist/chunks/{model-1a3w3mf1.js → model-g4mr61at.js} +33 -33
- package/dist/chunks/{model-ke72wgbq.js → model-g53j82me.js} +26 -26
- package/dist/chunks/{model-x1tjt3wq.js → model-g55x0rgz.js} +21 -21
- package/dist/chunks/{model-02f9ddfp.js → model-g95jm4cv.js} +4 -4
- package/dist/chunks/{model-eqm2ye17.js → model-gawwyhx0.js} +1 -1
- package/dist/chunks/{model-smfcvx02.js → model-gcjdgkn2.js} +7 -7
- package/dist/chunks/{model-az3w0f22.js → model-gmnsm0xm.js} +5 -5
- package/dist/chunks/{model-zxdyppha.js → model-h06hrdvc.js} +20 -20
- package/dist/chunks/{model-f79gn735.js → model-h1x8n12b.js} +10 -10
- package/dist/chunks/{model-nnwmz0bg.js → model-hcfepwe9.js} +17 -17
- package/dist/chunks/{model-vnrb1xg8.js → model-hd7kmee3.js} +32 -32
- package/dist/chunks/model-hnfvdbcv.js +26 -0
- package/dist/chunks/{model-xbhamkrx.js → model-j8gx4rjz.js} +3 -3
- package/dist/chunks/{model-qrwb3b8n.js → model-jc16a2xr.js} +7 -7
- package/dist/chunks/{model-3c61qp0f.js → model-jcnkegva.js} +33 -33
- package/dist/chunks/{model-ynrq1a8k.js → model-jefw9j3y.js} +3 -3
- package/dist/chunks/{model-rpqvhqw2.js → model-jg7z8f74.js} +16 -16
- package/dist/chunks/{model-j2hg2t1q.js → model-jjg5yz1h.js} +7 -7
- package/dist/chunks/{model-tdvp489x.js → model-jmg5mq7t.js} +11 -11
- package/dist/chunks/{model-kq9xbr9y.js → model-jqjcc2y2.js} +7 -7
- package/dist/chunks/{model-6svchydm.js → model-jtx526ja.js} +6 -6
- package/dist/chunks/{model-hbbp5z0j.js → model-jvxa89ah.js} +18 -18
- package/dist/chunks/{model-n8m8hryx.js → model-k03zy2hn.js} +7 -7
- package/dist/chunks/{model-s2wy8rbs.js → model-k2cxq7d4.js} +6 -6
- package/dist/chunks/{model-3vvd2cpm.js → model-k2jarxn6.js} +23 -23
- package/dist/chunks/{model-4jf84sc2.js → model-k71m6rcm.js} +9 -9
- package/dist/chunks/{model-qpfpj98j.js → model-kdc9scmy.js} +30 -30
- package/dist/chunks/{model-26exz8r1.js → model-kfbetxq5.js} +17 -17
- package/dist/chunks/{model-a8j79wtm.js → model-kmy9pf2x.js} +32 -32
- package/dist/chunks/{model-83ag44xd.js → model-kmycny1b.js} +9 -9
- package/dist/chunks/{model-bst7fw4e.js → model-kpmxgff8.js} +16 -16
- package/dist/chunks/{model-agqd6nxz.js → model-mj0wev1x.js} +3 -3
- package/dist/chunks/{model-6mdc5yts.js → model-mj8fxm36.js} +4 -4
- package/dist/chunks/{model-9be9zbyr.js → model-mk552aj1.js} +17 -17
- package/dist/chunks/{model-zmqg7qcc.js → model-mrf29jxn.js} +13 -13
- package/dist/chunks/{model-t0rkz25q.js → model-ms4pe9g0.js} +6 -6
- package/dist/chunks/{model-ce9hjw60.js → model-n4t59mcz.js} +31 -31
- package/dist/chunks/{model-v5ybz6p4.js → model-n9j61ap5.js} +6 -6
- package/dist/chunks/{model-xt78j2m2.js → model-nbfdmdkr.js} +13 -13
- package/dist/chunks/{model-sdvqmftd.js → model-nch7pp5e.js} +8 -8
- package/dist/chunks/model-nd8y4bs9.js +261 -0
- package/dist/chunks/{model-g1xkvxp8.js → model-nj2tkpbg.js} +7 -7
- package/dist/chunks/{model-tch8ap7x.js → model-ns70a8r5.js} +8 -8
- package/dist/chunks/{model-swma9ar2.js → model-nvhvwyw4.js} +18 -18
- package/dist/chunks/{model-6zz6a8nv.js → model-nwd6n5xv.js} +1 -1
- package/dist/chunks/{model-83bdf8f4.js → model-ny7dq850.js} +11 -11
- package/dist/chunks/{model-6fbjp8xj.js → model-p43hvp8m.js} +17 -17
- package/dist/chunks/{model-hn4sj8vd.js → model-p580ev26.js} +5 -5
- package/dist/chunks/{model-4dfkp8r1.js → model-pe0qgjpx.js} +4 -4
- package/dist/chunks/{model-kah4he31.js → model-pjwfm23k.js} +9 -9
- package/dist/chunks/{model-7w1pfhrs.js → model-pmy52rqq.js} +9 -9
- package/dist/chunks/{model-bex4xsk5.js → model-pre1sqds.js} +3 -3
- package/dist/chunks/{model-xd1a8f97.js → model-q1f29zd1.js} +16 -16
- package/dist/chunks/{model-5dpv3p9j.js → model-q55j0mkq.js} +1 -1
- package/dist/chunks/{model-vaanw6hb.js → model-qfan4vrq.js} +4 -4
- package/dist/chunks/{model-vpm8vpz0.js → model-qsee9sfb.js} +2 -2
- package/dist/chunks/{model-jx89vj1k.js → model-qyq8h28g.js} +2 -2
- package/dist/chunks/{model-rdwr32h5.js → model-r2z5h2ge.js} +8 -8
- package/dist/chunks/{model-ayat092r.js → model-rbjssvma.js} +23 -23
- package/dist/chunks/{model-t7seas5z.js → model-rwvkk097.js} +23 -23
- package/dist/chunks/{model-qb81m05d.js → model-rzx8gj4c.js} +44 -44
- package/dist/chunks/{model-a63a087g.js → model-s30kv3sw.js} +14 -14
- package/dist/chunks/{model-kv0eeqme.js → model-sjhm24t9.js} +17 -17
- package/dist/chunks/{model-jj43fz8d.js → model-sy6e38w3.js} +30 -30
- package/dist/chunks/{model-a6z537nd.js → model-t2k6bxxg.js} +25 -25
- package/dist/chunks/{model-7yect7x1.js → model-t5jqs5j7.js} +1 -1
- package/dist/chunks/{model-c227nech.js → model-t5k7yfgh.js} +4 -4
- package/dist/chunks/{model-n4m78tbr.js → model-t5rrrqvg.js} +11 -11
- package/dist/chunks/{model-twh8pfjr.js → model-t6sg7dcf.js} +8 -8
- package/dist/chunks/{model-k9qj3zpm.js → model-tm84tsqp.js} +14 -14
- package/dist/chunks/{model-9q8g9sv8.js → model-v0t96s7a.js} +3 -3
- package/dist/chunks/{model-h4hzeg9c.js → model-v3rpj7pd.js} +2 -2
- package/dist/chunks/{model-6nan9a7c.js → model-v9v4gv6c.js} +29 -29
- package/dist/chunks/{model-9kbgk87f.js → model-vbzvb4rg.js} +49 -49
- package/dist/chunks/{model-4gqc6sgb.js → model-veetryz8.js} +12 -12
- package/dist/chunks/{model-a8m8yj7e.js → model-vfy36k9m.js} +1 -1
- package/dist/chunks/{model-172d0k8s.js → model-vh56skz6.js} +4 -4
- package/dist/chunks/{model-0f8qr66c.js → model-vj9d8dr6.js} +30 -30
- package/dist/chunks/{model-0rc2e56d.js → model-vjnr9cnd.js} +16 -16
- package/dist/chunks/{model-2rycmej8.js → model-vx39scks.js} +10 -10
- package/dist/chunks/{model-agc6jdz6.js → model-w000bb6e.js} +28 -28
- package/dist/chunks/{model-5enarcya.js → model-w2eysc6j.js} +4 -4
- package/dist/chunks/{model-hxjdjmbk.js → model-w3mjsd54.js} +10 -10
- package/dist/chunks/{model-jns4gqy7.js → model-w9w8mt4n.js} +3 -3
- package/dist/chunks/{model-w76r9f4m.js → model-wd9dar1k.js} +2 -2
- package/dist/chunks/{model-36mvsa0r.js → model-wh0fenxb.js} +24 -24
- package/dist/chunks/{model-v0veydd8.js → model-wntksck6.js} +26 -26
- package/dist/chunks/{model-pt3m3pfg.js → model-wq05waba.js} +30 -30
- package/dist/chunks/{model-x80r8cj5.js → model-wtps8d4f.js} +20 -20
- package/dist/chunks/{model-9cv4rb9g.js → model-xhb3andn.js} +13 -13
- package/dist/chunks/{model-hdfrs5mg.js → model-y22f06tx.js} +7 -7
- package/dist/chunks/{model-f88pmnpv.js → model-yb10ee6p.js} +38 -38
- package/dist/chunks/{model-6h5mdx7b.js → model-yfxbc0kt.js} +7 -7
- package/dist/chunks/{model-mevm98qs.js → model-yg7sgxt8.js} +9 -9
- package/dist/chunks/{model-kzre842d.js → model-yk2twp5a.js} +23 -23
- package/dist/chunks/{model-wpx8mj87.js → model-yr4xnza0.js} +7 -7
- package/dist/chunks/{model-85gz5wh8.js → model-yvg25zy8.js} +2 -2
- package/dist/chunks/{model-79k5a3c3.js → model-z007v0dr.js} +16 -16
- package/dist/chunks/{model-v5tarvwe.js → model-z7mja6z7.js} +10 -10
- package/dist/chunks/{model-fkepzdfz.js → model-zgy84aax.js} +13 -13
- package/dist/chunks/{model-7m33tdqq.js → model-zhetkrg0.js} +36 -36
- package/dist/chunks/{model-ek2ecv40.js → model-zr1qzx10.js} +18 -18
- package/dist/chunks/{model-bjhzkqyk.js → model-zzdv5d93.js} +3 -3
- package/dist/codemode/instructions.js +6 -6
- package/dist/command.js +66 -66
- package/dist/config/discovery.js +65 -65
- package/dist/config/integration.js +3 -3
- package/dist/config/normalize.js +80 -80
- package/dist/config/plugin/agent.js +90 -90
- package/dist/config/plugin/command.js +171 -171
- package/dist/config/plugin/compaction.js +122 -122
- package/dist/config/plugin/compatibility.js +105 -105
- package/dist/config/plugin/formatter.js +91 -91
- package/dist/config/plugin/image.js +90 -90
- package/dist/config/plugin/instruction.js +91 -91
- package/dist/config/plugin/location-watcher.js +90 -90
- package/dist/config/plugin/mcp.js +93 -93
- package/dist/config/plugin/policy.js +89 -89
- package/dist/config/plugin/provider.js +91 -91
- package/dist/config/plugin/reference.js +91 -91
- package/dist/config/plugin/shell.js +90 -90
- package/dist/config/plugin/skill-file.js +81 -81
- package/dist/config/plugin/skill.js +106 -106
- package/dist/config/plugin/snapshot.js +90 -90
- package/dist/config/plugin/source.js +87 -87
- package/dist/config/plugin/tool-output.js +91 -91
- package/dist/config/plugin/websearch.js +89 -89
- package/dist/config/plugin/worktree.js +91 -91
- package/dist/config.js +92 -92
- package/dist/credential.js +66 -66
- package/dist/database/database.js +54 -54
- package/dist/database/drizzle/effect-sqlite/driver.js +8 -8
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +7 -7
- package/dist/database/drizzle/index.js +9 -9
- 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 +9 -9
- package/dist/database/migration.gen.js +42 -42
- package/dist/database/migration.js +44 -44
- package/dist/database/v1-migration.bun.js +23 -23
- package/dist/effect/app-node-builder.js +240 -240
- package/dist/environment/environment.js +71 -71
- package/dist/environment/index.js +71 -71
- package/dist/event-logger.js +9 -9
- package/dist/file-access.js +84 -84
- package/dist/file-mutation.js +72 -72
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +182 -182
- package/dist/filesystem/search.js +75 -75
- package/dist/filesystem/watcher.js +7 -7
- package/dist/filesystem.js +80 -80
- package/dist/form.js +68 -68
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +70 -70
- package/dist/generate.js +85 -85
- 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 +82 -82
- 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 +316 -316
- package/dist/instruction-discovery.js +69 -69
- package/dist/instructions/builtins.js +70 -70
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +72 -72
- package/dist/job.js +63 -63
- package/dist/kv.js +59 -59
- package/dist/location-activity.js +69 -69
- package/dist/location-lifecycle.js +87 -87
- package/dist/location-service-map.js +69 -69
- package/dist/location-services.js +312 -312
- package/dist/location.js +72 -72
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +19 -19
- package/dist/mcp/index.js +87 -87
- package/dist/mcp/instructions.js +110 -110
- package/dist/mcp/oauth.js +13 -13
- package/dist/mcp/stdio.js +68 -68
- package/dist/modal/models.js +82 -82
- package/dist/model-resolver.js +81 -81
- package/dist/model.js +79 -79
- package/dist/models-dev.js +83 -83
- package/dist/permission/saved.js +64 -64
- package/dist/permission/sql.js +3 -3
- package/dist/permission.js +87 -87
- package/dist/persistent-pty/index.js +72 -72
- package/dist/persistent-pty.js +58 -58
- package/dist/plugin/agent.js +59 -59
- package/dist/plugin/command.js +78 -78
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +181 -181
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +286 -286
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +78 -78
- package/dist/plugin/module.js +91 -91
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +82 -82
- package/dist/plugin/provider/amazon-bedrock.js +73 -73
- package/dist/plugin/provider/azure.js +91 -91
- package/dist/plugin/provider/chatgpt.js +89 -89
- package/dist/plugin/provider/cloudflare-ai-gateway.js +88 -88
- package/dist/plugin/provider/cloudflare-workers-ai.js +88 -88
- package/dist/plugin/provider/configured.js +87 -87
- package/dist/plugin/provider/digitalocean.js +75 -75
- package/dist/plugin/provider/github-copilot.js +77 -77
- package/dist/plugin/provider/gitlab.js +75 -75
- package/dist/plugin/provider/google-vertex.js +88 -88
- package/dist/plugin/provider/llmgateway.js +61 -61
- package/dist/plugin/provider/lmstudio.js +94 -94
- package/dist/plugin/provider/local.js +91 -91
- package/dist/plugin/provider/modal.js +75 -75
- package/dist/plugin/provider/ollama.js +94 -94
- package/dist/plugin/provider/openai-context-caps.js +73 -73
- package/dist/plugin/provider/openai.js +89 -89
- package/dist/plugin/provider/opencode-legacy.js +80 -80
- package/dist/plugin/provider/opencode.js +94 -94
- package/dist/plugin/provider/openrouter.js +74 -74
- package/dist/plugin/provider/poe.js +61 -61
- package/dist/plugin/provider/sap-ai-core.js +73 -73
- package/dist/plugin/provider/snowflake-cortex.js +89 -89
- package/dist/plugin/provider/vercel.js +73 -73
- package/dist/plugin/provider/vllm.js +92 -92
- package/dist/plugin/provider/xai.js +74 -74
- package/dist/plugin/provider.js +135 -135
- package/dist/plugin/sdk.js +62 -62
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +106 -106
- package/dist/plugin/supervisor.js +301 -301
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +5 -5
- package/dist/plugin/vcs/git.js +69 -69
- package/dist/plugin/vcs/hg.js +69 -69
- package/dist/plugin/verbosity.js +76 -76
- package/dist/plugin/warming.js +89 -89
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +3 -3
- 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 +191 -191
- package/dist/project/schema.js +7 -7
- package/dist/project/sql.js +2 -2
- package/dist/project.js +73 -73
- package/dist/provider.js +82 -82
- package/dist/pty.js +79 -79
- package/dist/reference/instructions.js +71 -71
- package/dist/reference.js +71 -71
- package/dist/repository-cache.js +64 -64
- package/dist/ripgrep.js +74 -74
- package/dist/rpc.js +69 -69
- package/dist/session/command.js +59 -59
- package/dist/session/compaction.js +112 -112
- package/dist/session/context.js +132 -132
- package/dist/session/diff.js +70 -70
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +113 -113
- package/dist/session/execution.js +105 -105
- package/dist/session/generate.js +134 -134
- package/dist/session/history.js +9 -9
- package/dist/session/inbox.js +75 -75
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +65 -65
- package/dist/session/instruction-state.js +5 -5
- package/dist/session/instructions.js +78 -78
- package/dist/session/model-request.js +99 -99
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +107 -107
- package/dist/session/projector.js +69 -69
- package/dist/session/prompt.js +84 -84
- package/dist/session/revert.js +75 -75
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +187 -187
- package/dist/session/runner/model.js +82 -82
- package/dist/session/runner/publish-llm-event.js +93 -93
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +102 -102
- package/dist/session/runner/to-llm-message.js +10 -10
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +130 -130
- package/dist/session/shell.js +99 -99
- package/dist/session/skill.js +83 -83
- package/dist/session/sql.js +3 -3
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +65 -65
- package/dist/session/subagent-job.js +172 -172
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +129 -129
- package/dist/session/to-session-error.js +92 -92
- package/dist/session/transfer.js +111 -111
- package/dist/session.js +181 -181
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +12 -12
- package/dist/shell.js +102 -102
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +87 -87
- package/dist/skill.js +92 -92
- package/dist/snapshot.js +74 -74
- package/dist/tool/mcp.js +107 -107
- package/dist/tool/plugin/edit.js +94 -94
- package/dist/tool/plugin/glob.js +97 -97
- package/dist/tool/plugin/grep.js +93 -93
- package/dist/tool/plugin/mcp-resource.js +96 -96
- package/dist/tool/plugin/opencode.js +87 -87
- package/dist/tool/plugin/patch.js +96 -96
- package/dist/tool/plugin/question.js +83 -83
- package/dist/tool/plugin/read.js +95 -95
- package/dist/tool/plugin/shell.js +176 -176
- package/dist/tool/plugin/skill.js +93 -93
- package/dist/tool/plugin/subagent.js +179 -179
- package/dist/tool/plugin/todo.js +105 -105
- package/dist/tool/plugin/webfetch.js +90 -90
- package/dist/tool/plugin/websearch.js +91 -91
- package/dist/tool/plugin/write.js +96 -96
- package/dist/tool/read-filesystem.js +77 -77
- package/dist/tool-output.js +6 -6
- package/dist/tool.js +12 -12
- package/dist/usage-limits.js +69 -69
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +74 -74
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/variant.js +74 -74
- package/dist/vcs.js +72 -72
- package/dist/voice.js +69 -69
- package/dist/websearch.js +68 -68
- package/dist/wellknown/plugin.js +60 -60
- package/dist/wellknown.js +65 -65
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +66 -66
- package/dist/worktree/git.js +6 -6
- package/dist/worktree/sql.js +3 -3
- package/dist/worktree/strategies.js +71 -71
- package/dist/worktree.js +79 -79
- package/package.json +8 -8
- package/dist/chunks/model-92c4h9tk.js +0 -26
- package/dist/chunks/model-dachzfaf.js +0 -261
- /package/dist/chunks/{model-aj7mw0zk.js → model-034tev2y.js} +0 -0
- /package/dist/chunks/{model-b0grxa7w.js → model-38ys11y3.js} +0 -0
- /package/dist/chunks/{model-m15ha2ry.js → model-78hmycys.js} +0 -0
- /package/dist/chunks/{model-jh2vxaya.js → model-fv7b5yex.js} +0 -0
- /package/dist/chunks/{model-4wnp65at.js → model-t0891ggs.js} +0 -0
|
@@ -4,26 +4,26 @@ import {
|
|
|
4
4
|
Failed2
|
|
5
5
|
} from "./model-zkg84ctx.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
} from "./model-
|
|
7
|
+
Service79
|
|
8
|
+
} from "./model-q1f29zd1.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./model-
|
|
10
|
+
Service75
|
|
11
|
+
} from "./model-5c2jv3bs.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./model-
|
|
13
|
+
Service20
|
|
14
|
+
} from "./model-5wa8msaj.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
Service74,
|
|
17
17
|
readText2,
|
|
18
18
|
syncTextBom2
|
|
19
|
-
} from "./model-
|
|
19
|
+
} from "./model-t5rrrqvg.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./model-
|
|
21
|
+
Service60
|
|
22
|
+
} from "./model-dcmz9t73.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
24
|
+
Service13,
|
|
25
25
|
resolvePath2
|
|
26
|
-
} from "./model-
|
|
26
|
+
} from "./model-jg7z8f74.js";
|
|
27
27
|
import {
|
|
28
28
|
fileDiff2
|
|
29
29
|
} from "./model-6prwharc.js";
|
|
@@ -35,12 +35,12 @@ import {
|
|
|
35
35
|
var exports_patch = {};
|
|
36
36
|
__export(exports_patch, {
|
|
37
37
|
Applied: () => Applied2,
|
|
38
|
-
Input: () =>
|
|
39
|
-
Output: () =>
|
|
38
|
+
Input: () => Input9,
|
|
39
|
+
Output: () => Output6,
|
|
40
40
|
PatchTool: () => exports_patch,
|
|
41
|
-
Plugin: () =>
|
|
42
|
-
name: () =>
|
|
43
|
-
toModelContent: () =>
|
|
41
|
+
Plugin: () => Plugin26,
|
|
42
|
+
name: () => name9,
|
|
43
|
+
toModelContent: () => toModelContent6
|
|
44
44
|
});
|
|
45
45
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
46
46
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
@@ -85,8 +85,8 @@ It is important to remember:
|
|
|
85
85
|
`;
|
|
86
86
|
|
|
87
87
|
// src/tool/plugin/patch.ts
|
|
88
|
-
var
|
|
89
|
-
var
|
|
88
|
+
var name9 = "patch";
|
|
89
|
+
var Input9 = Schema.Struct({
|
|
90
90
|
patchText: Schema.String.annotate({
|
|
91
91
|
description: "The full patch text describing add, update, and delete operations"
|
|
92
92
|
})
|
|
@@ -96,30 +96,30 @@ var Applied2 = Schema.Struct({
|
|
|
96
96
|
resource: Schema.String,
|
|
97
97
|
target: Schema.String
|
|
98
98
|
});
|
|
99
|
-
var
|
|
99
|
+
var Output6 = Schema.Struct({
|
|
100
100
|
applied: Schema.Array(Applied2),
|
|
101
101
|
files: Schema.Array(FileDiff.Info)
|
|
102
102
|
});
|
|
103
|
-
var
|
|
103
|
+
var toModelContent6 = (output) => [
|
|
104
104
|
"Success. Updated the following files:",
|
|
105
105
|
...output.applied.map((item) => `${item.type === "add" ? "A" : item.type === "delete" ? "D" : "M"} ${item.resource}`)
|
|
106
106
|
].join(`
|
|
107
107
|
`);
|
|
108
|
-
var
|
|
108
|
+
var Plugin26 = {
|
|
109
109
|
id: "opencode.tool.patch",
|
|
110
110
|
effect: Effect.fn("PatchTool.Plugin")(function* (ctx) {
|
|
111
|
-
const environment = yield*
|
|
112
|
-
const access = yield*
|
|
113
|
-
const fileMutation = yield*
|
|
114
|
-
const formatter = yield*
|
|
115
|
-
const location = yield*
|
|
116
|
-
const permission = yield*
|
|
111
|
+
const environment = yield* Service75;
|
|
112
|
+
const access = yield* Service13;
|
|
113
|
+
const fileMutation = yield* Service74;
|
|
114
|
+
const formatter = yield* Service20;
|
|
115
|
+
const location = yield* Service79;
|
|
116
|
+
const permission = yield* Service60;
|
|
117
117
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
118
|
-
name:
|
|
118
|
+
name: name9,
|
|
119
119
|
options: { codemode: false, permission: "edit" },
|
|
120
120
|
description: patch_default,
|
|
121
|
-
input:
|
|
122
|
-
output:
|
|
121
|
+
input: Input9,
|
|
122
|
+
output: Output6,
|
|
123
123
|
execute: (input, context) => {
|
|
124
124
|
const applied = [];
|
|
125
125
|
const parsed = Patch.parse(input.patchText);
|
|
@@ -266,7 +266,7 @@ var Plugin44 = {
|
|
|
266
266
|
return { applied, files };
|
|
267
267
|
}).pipe(fileMutation.withLock(lockTargets), Effect.map((output) => ({
|
|
268
268
|
output,
|
|
269
|
-
content:
|
|
269
|
+
content: toModelContent6(output),
|
|
270
270
|
metadata: { files: output.files }
|
|
271
271
|
})), Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: "Unable to apply patch", error })));
|
|
272
272
|
}
|
|
@@ -326,4 +326,4 @@ function trimDiff(diff) {
|
|
|
326
326
|
`);
|
|
327
327
|
}
|
|
328
328
|
|
|
329
|
-
export {
|
|
329
|
+
export { name9, Input9, Applied2, Output6, toModelContent6, Plugin26, exports_patch };
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
AbsolutePath2
|
|
3
3
|
} from "./model-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./model-
|
|
5
|
+
Service79
|
|
6
|
+
} from "./model-q1f29zd1.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./model-
|
|
8
|
+
Service13
|
|
9
|
+
} from "./model-jg7z8f74.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./model-
|
|
11
|
+
Service7
|
|
12
|
+
} from "./model-9eegv743.js";
|
|
13
13
|
import {
|
|
14
14
|
NotFound3
|
|
15
15
|
} from "./model-zkg84ctx.js";
|
|
@@ -22,8 +22,8 @@ import {
|
|
|
22
22
|
FileContent2,
|
|
23
23
|
TextPage2,
|
|
24
24
|
ListPage2,
|
|
25
|
-
|
|
26
|
-
} from "./model-
|
|
25
|
+
Service35
|
|
26
|
+
} from "./model-nvhvwyw4.js";
|
|
27
27
|
import {
|
|
28
28
|
__export
|
|
29
29
|
} from "./model-9rqn6x4v.js";
|
|
@@ -31,17 +31,17 @@ import {
|
|
|
31
31
|
// src/tool/plugin/read.ts
|
|
32
32
|
var exports_read = {};
|
|
33
33
|
__export(exports_read, {
|
|
34
|
-
Input: () =>
|
|
35
|
-
Plugin: () =>
|
|
34
|
+
Input: () => Input4,
|
|
35
|
+
Plugin: () => Plugin21,
|
|
36
36
|
ReadTool: () => exports_read,
|
|
37
|
-
name: () =>
|
|
37
|
+
name: () => name4,
|
|
38
38
|
toModelContent: () => toModelContent3
|
|
39
39
|
});
|
|
40
40
|
import { basename, dirname, join } from "path";
|
|
41
41
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
42
42
|
import { Effect, Schema } from "effect";
|
|
43
43
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
44
|
-
var
|
|
44
|
+
var name4 = "read";
|
|
45
45
|
var FILENAME = "AGENTS.md";
|
|
46
46
|
var LocationInput = Schema.Struct({
|
|
47
47
|
path: Schema.String.annotate({ description: "File or directory to read" }),
|
|
@@ -52,21 +52,21 @@ var LocationInput = Schema.Struct({
|
|
|
52
52
|
description: "The maximum number of lines or directory entries to read (defaults to and capped at 2000)"
|
|
53
53
|
})
|
|
54
54
|
});
|
|
55
|
-
var
|
|
55
|
+
var Input4 = LocationInput;
|
|
56
56
|
var Output = Schema.Union([FileContent2, TextPage2, ListPage2]);
|
|
57
|
-
var
|
|
57
|
+
var Plugin21 = {
|
|
58
58
|
id: "opencode.tool.read",
|
|
59
59
|
effect: Effect.fn("ReadTool.Plugin")(function* (ctx) {
|
|
60
|
-
const reader = yield*
|
|
61
|
-
const access = yield*
|
|
62
|
-
const sessionInstructions = yield*
|
|
60
|
+
const reader = yield* Service35;
|
|
61
|
+
const access = yield* Service13;
|
|
62
|
+
const sessionInstructions = yield* Service7;
|
|
63
63
|
const fs = yield* FSUtil.Service;
|
|
64
|
-
const location = yield*
|
|
64
|
+
const location = yield* Service79;
|
|
65
65
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
66
|
-
name:
|
|
66
|
+
name: name4,
|
|
67
67
|
options: { codemode: false },
|
|
68
68
|
description: "Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",
|
|
69
|
-
input:
|
|
69
|
+
input: Input4,
|
|
70
70
|
output: Output,
|
|
71
71
|
execute: (input, context) => {
|
|
72
72
|
return Effect.gen(function* () {
|
|
@@ -179,4 +179,4 @@ var toModelContent3 = (path, offset, output) => {
|
|
|
179
179
|
`);
|
|
180
180
|
};
|
|
181
181
|
|
|
182
|
-
export {
|
|
182
|
+
export { name4, Input4, Plugin21, toModelContent3, exports_read };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
Service57,
|
|
3
|
+
node60,
|
|
4
4
|
canonical3
|
|
5
|
-
} from "./model-
|
|
5
|
+
} from "./model-vx39scks.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./model-
|
|
7
|
+
Service52,
|
|
8
|
+
node55
|
|
9
|
+
} from "./model-p580ev26.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./model-
|
|
11
|
+
Service17
|
|
12
|
+
} from "./model-g4mr61at.js";
|
|
13
13
|
import {
|
|
14
14
|
layer2
|
|
15
|
-
} from "./model-
|
|
15
|
+
} from "./model-nd8y4bs9.js";
|
|
16
16
|
|
|
17
17
|
// src/location-services.ts
|
|
18
18
|
import { Context, Duration, Effect, Exit, Layer, LayerMap, MutableHashMap, Option } from "effect";
|
|
19
19
|
function buildLocationServiceMap2(replacements = []) {
|
|
20
|
-
return Layer.effect(
|
|
20
|
+
return Layer.effect(Service57, Effect.gen(function* () {
|
|
21
21
|
const owner = yield* Effect.scope;
|
|
22
22
|
const builds = MutableHashMap.empty();
|
|
23
23
|
const inner = yield* LayerMap.make((ref) => {
|
|
@@ -27,7 +27,7 @@ function buildLocationServiceMap2(replacements = []) {
|
|
|
27
27
|
const finish = Effect.suspend(() => {
|
|
28
28
|
if (Exit.isSuccess(exit)) {
|
|
29
29
|
return Effect.gen(function* () {
|
|
30
|
-
const lifecycle = Context.get(exit.value,
|
|
30
|
+
const lifecycle = Context.get(exit.value, Service17);
|
|
31
31
|
if (Option.getOrUndefined(MutableHashMap.get(builds, ref)) !== build)
|
|
32
32
|
return yield* lifecycle.shutdown;
|
|
33
33
|
build.close = lifecycle.shutdown;
|
|
@@ -54,11 +54,11 @@ function buildLocationServiceMap2(replacements = []) {
|
|
|
54
54
|
}).pipe(Effect.uninterruptible)
|
|
55
55
|
};
|
|
56
56
|
const bindings = [
|
|
57
|
-
|
|
57
|
+
node55.replace(Layer.succeed(Service52, {
|
|
58
58
|
provide: (session) => Effect.provide(map.get(session.location))
|
|
59
59
|
})),
|
|
60
60
|
...replacements,
|
|
61
|
-
|
|
61
|
+
node60.replace(Layer.succeed(Service57, map))
|
|
62
62
|
];
|
|
63
63
|
return map;
|
|
64
64
|
}));
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86
|
|
3
|
-
} from "./model-
|
|
3
|
+
} from "./model-1cd8ske1.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./model-
|
|
5
|
+
ID17,
|
|
6
|
+
Event19,
|
|
7
|
+
Service84
|
|
8
|
+
} from "./model-55x2dd8h.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./model-
|
|
10
|
+
ID13
|
|
11
|
+
} from "./model-w000bb6e.js";
|
|
12
12
|
import {
|
|
13
13
|
configuredSettings2
|
|
14
|
-
} from "./model-
|
|
14
|
+
} from "./model-k2cxq7d4.js";
|
|
15
15
|
|
|
16
16
|
// src/plugin/provider/google-vertex.ts
|
|
17
17
|
import { Effect, Option, Schema, Stream } from "effect";
|
|
@@ -41,7 +41,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
41
41
|
id: "opencode.provider.google.vertex",
|
|
42
42
|
effect: Effect.fn(function* (ctx) {
|
|
43
43
|
const fs = yield* FSUtil.Service;
|
|
44
|
-
const credentials = yield*
|
|
44
|
+
const credentials = yield* Service84;
|
|
45
45
|
const bus = yield* Service86;
|
|
46
46
|
const read = (file) => fs.readFileStringSafe(file).pipe(Effect.orElseSucceed(() => {
|
|
47
47
|
return;
|
|
@@ -51,7 +51,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
51
51
|
const configs = (yield* fs.readDirectory(path.join(gcloud, "configurations")).pipe(Effect.orElseSucceed(() => []))).filter((name) => name.startsWith("config_")).toSorted((a, b) => Number(b === active) - Number(a === active) || a.localeCompare(b));
|
|
52
52
|
const contents = yield* Effect.forEach(configs, (name) => read(path.join(gcloud, "configurations", name)));
|
|
53
53
|
const adcFile = yield* read(path.join(gcloud, "application_default_credentials.json"));
|
|
54
|
-
const configured = (yield* configuredSettings2(
|
|
54
|
+
const configured = (yield* configuredSettings2(ID13.googleVertex)) ?? {};
|
|
55
55
|
const projects = Array.from(new Set([
|
|
56
56
|
resolveProject(configured),
|
|
57
57
|
...contents.map((content) => content?.match(/^project\s*=\s*(\S+)/m)?.[1]),
|
|
@@ -65,8 +65,8 @@ var GoogleVertexPlugin2 = define({
|
|
|
65
65
|
...contents.flatMap((content) => Array.from((content ?? "").matchAll(/^region\s*=\s*(\S+)/gm), (match) => match[1]))
|
|
66
66
|
]));
|
|
67
67
|
const load = Effect.fn("GoogleVertexPlugin.load")(function* () {
|
|
68
|
-
const connection = yield* ctx.integration.connection.active(
|
|
69
|
-
const stored = connection?.type === "credential" ? yield* credentials.get(
|
|
68
|
+
const connection = yield* ctx.integration.connection.active(ID13.googleVertex);
|
|
69
|
+
const stored = connection?.type === "credential" ? yield* credentials.get(ID17.make(connection.id)) : undefined;
|
|
70
70
|
if (stored?.value.type !== "external" || stored.value.methodID !== ADC_METHOD)
|
|
71
71
|
return {};
|
|
72
72
|
return { project: stored.value.metadata?.project, location: stored.value.metadata?.location };
|
|
@@ -74,15 +74,15 @@ var GoogleVertexPlugin2 = define({
|
|
|
74
74
|
const selected = { settings: yield* load() };
|
|
75
75
|
const settingsFor = (provider) => ({
|
|
76
76
|
...provider.settings,
|
|
77
|
-
...(provider.integrationID ?? provider.id) ===
|
|
77
|
+
...(provider.integrationID ?? provider.id) === ID13.googleVertex ? selected.settings : {}
|
|
78
78
|
});
|
|
79
79
|
yield* ctx.integration.transform((editor) => {
|
|
80
80
|
editor.method.update({
|
|
81
|
-
integrationID:
|
|
81
|
+
integrationID: ID13.googleVertex,
|
|
82
82
|
method: { type: "env", names: ["GOOGLE_VERTEX_API_KEY"] }
|
|
83
83
|
});
|
|
84
84
|
editor.method.update({
|
|
85
|
-
integrationID:
|
|
85
|
+
integrationID: ID13.googleVertex,
|
|
86
86
|
method: {
|
|
87
87
|
id: ADC_METHOD,
|
|
88
88
|
type: "external",
|
|
@@ -120,7 +120,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
120
120
|
});
|
|
121
121
|
yield* ctx.provider.transform((evt) => {
|
|
122
122
|
for (const item of evt.list()) {
|
|
123
|
-
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id ===
|
|
123
|
+
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID13.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
|
|
124
124
|
continue;
|
|
125
125
|
const settings = settingsFor(item.provider);
|
|
126
126
|
const project = resolveProject(settings);
|
|
@@ -139,7 +139,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
139
139
|
});
|
|
140
140
|
yield* ctx.model.transform((models) => {
|
|
141
141
|
for (const item of models.provider.list()) {
|
|
142
|
-
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id ===
|
|
142
|
+
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID13.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
|
|
143
143
|
continue;
|
|
144
144
|
const settings = settingsFor(item.provider);
|
|
145
145
|
const project = resolveProject(settings);
|
|
@@ -157,7 +157,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
});
|
|
160
|
-
yield* bus.subscribe([
|
|
160
|
+
yield* bus.subscribe([Event19.Updated, Event19.Switched]).pipe(Stream.runForEach(() => Effect.gen(function* () {
|
|
161
161
|
const next = yield* load();
|
|
162
162
|
if (JSON.stringify(next) === JSON.stringify(selected.settings))
|
|
163
163
|
return;
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
AbsolutePath2
|
|
3
3
|
} from "./model-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./model-
|
|
5
|
+
Service79
|
|
6
|
+
} from "./model-q1f29zd1.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./model-9rqn6x4v.js";
|
|
@@ -54,7 +54,7 @@ function stripPreferenceMetadata2(json) {
|
|
|
54
54
|
var discover3 = Effect.fn("ConfigDiscovery.discover")(function* (options) {
|
|
55
55
|
const fs = yield* FSUtil.Service;
|
|
56
56
|
const global = yield* Global.Service;
|
|
57
|
-
const location = yield*
|
|
57
|
+
const location = yield* Service79;
|
|
58
58
|
const system = (() => {
|
|
59
59
|
if (options?.system === false)
|
|
60
60
|
return;
|
|
@@ -3,22 +3,22 @@ import {
|
|
|
3
3
|
} from "./model-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Action2
|
|
6
|
-
} from "./model-
|
|
6
|
+
} from "./model-v0t96s7a.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./model-
|
|
8
|
+
Info16
|
|
9
|
+
} from "./model-dy9zc4pe.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./model-
|
|
11
|
+
Info18
|
|
12
|
+
} from "./model-cpvd08na.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./model-
|
|
14
|
+
Info19
|
|
15
|
+
} from "./model-0tpkjg9c.js";
|
|
16
16
|
import {
|
|
17
17
|
Spec2
|
|
18
18
|
} from "./model-p7vhpwh8.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./model-
|
|
20
|
+
Info17
|
|
21
|
+
} from "./model-8wc2fpae.js";
|
|
22
22
|
import {
|
|
23
23
|
normalizeAction2,
|
|
24
24
|
migrateAgent2,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
migrateMcp2,
|
|
29
29
|
migrateProvider2,
|
|
30
30
|
providerID2
|
|
31
|
-
} from "./model-
|
|
31
|
+
} from "./model-6gqrrdq1.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
34
|
} from "./model-9rqn6x4v.js";
|
|
@@ -98,12 +98,12 @@ function normalize2(input) {
|
|
|
98
98
|
const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
|
|
99
99
|
const nativeReferences = decodeMap(input.references, ConfigReference.Entry, ["references"], diagnostics, decodeEncoded);
|
|
100
100
|
mergeMap(encoded, "references", legacyReferences, nativeReferences, isRecord(input.reference) || isRecord(input.references), diagnostics);
|
|
101
|
-
const legacyCommands = decodeMap(input.command,
|
|
101
|
+
const legacyCommands = decodeMap(input.command, Info18, ["command"], diagnostics, decodeValue);
|
|
102
102
|
diagnoseSelectionMap(input.command, ["command"], diagnostics);
|
|
103
103
|
const migratedCommands = mapValues(legacyCommands, (value) => canonical(ConfigCommand.Info, migrateCommand2(value)));
|
|
104
104
|
const nativeCommands = decodeMap(input.commands, ConfigCommand.Info, ["commands"], diagnostics, decodeEncoded);
|
|
105
105
|
mergeMap(encoded, "commands", migratedCommands, nativeCommands, isRecord(input.command) || isRecord(input.commands), diagnostics);
|
|
106
|
-
const legacyAgents = mapValues(decodeMap(input.agent,
|
|
106
|
+
const legacyAgents = mapValues(decodeMap(input.agent, Info16, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
|
|
107
107
|
const legacySmallModel = own(input, "small_model") ? decodeValue(Schema.String, input.small_model, ["small_model"], diagnostics) : undefined;
|
|
108
108
|
const migratedSmallModel = modelSelection2(legacySmallModel);
|
|
109
109
|
if (legacySmallModel && !migratedSmallModel)
|
|
@@ -117,7 +117,7 @@ function normalize2(input) {
|
|
|
117
117
|
model: migratedSmallModel,
|
|
118
118
|
...legacyAgents.title
|
|
119
119
|
};
|
|
120
|
-
const modeAgents = mapValues(decodeMap(input.mode,
|
|
120
|
+
const modeAgents = mapValues(decodeMap(input.mode, Info16, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
|
|
121
121
|
const migratedAgents = mergeMaps(legacyAgents, modeAgents, ["agents"], diagnostics);
|
|
122
122
|
const nativeAgents = decodeMap(input.agents, ConfigAgent.Info, ["agents"], diagnostics, decodeEncoded);
|
|
123
123
|
diagnoseAgentUnsupported(input.agent, ["agent"], diagnostics);
|
|
@@ -219,7 +219,7 @@ function normalizeMcp(input, encoded, diagnostics) {
|
|
|
219
219
|
normalizeMcpTimeout(typeof value === "number" ? migrateMcpTimeout2(value) : value, timeout, path, diagnostics);
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
222
|
-
const server = decodeValue(
|
|
222
|
+
const server = decodeValue(Info19, value, path, diagnostics);
|
|
223
223
|
if (server !== undefined)
|
|
224
224
|
setOwn(legacyServers, name, canonical(ConfigMCP.Server, migrateMcp2(server)));
|
|
225
225
|
});
|
|
@@ -440,7 +440,7 @@ function migrateProviders(value, diagnostics) {
|
|
|
440
440
|
diagnoseProviderUnsupported(raw, path, diagnostics);
|
|
441
441
|
if (invalidProviderOverlays(raw, path, diagnostics))
|
|
442
442
|
return [];
|
|
443
|
-
const provider = decodeValue(
|
|
443
|
+
const provider = decodeValue(Info17, raw, path, diagnostics);
|
|
444
444
|
if (provider === undefined)
|
|
445
445
|
return [];
|
|
446
446
|
const destination = providerID2(name);
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID9
|
|
3
|
-
} from "./model-
|
|
3
|
+
} from "./model-dn2d8szr.js";
|
|
4
4
|
import {
|
|
5
5
|
AbsolutePath2
|
|
6
6
|
} from "./model-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./model-
|
|
8
|
+
Info16
|
|
9
|
+
} from "./model-dy9zc4pe.js";
|
|
10
10
|
import {
|
|
11
11
|
migrateAgent2
|
|
12
|
-
} from "./model-
|
|
12
|
+
} from "./model-6gqrrdq1.js";
|
|
13
13
|
import {
|
|
14
14
|
latest2,
|
|
15
|
-
|
|
16
|
-
} from "./model-
|
|
15
|
+
Service68
|
|
16
|
+
} from "./model-yb10ee6p.js";
|
|
17
17
|
import {
|
|
18
18
|
parseOption2
|
|
19
19
|
} from "./model-e834z07m.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
var exports_agent = {};
|
|
26
26
|
__export(exports_agent, {
|
|
27
27
|
ConfigAgentPlugin: () => exports_agent,
|
|
28
|
-
Plugin: () =>
|
|
28
|
+
Plugin: () => Plugin12
|
|
29
29
|
});
|
|
30
30
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
31
31
|
import { Document, Info } from "@opencode/schema/config";
|
|
@@ -40,14 +40,14 @@ var legacySources = [
|
|
|
40
40
|
];
|
|
41
41
|
var sourceDirectories = ["agent", "agents", "mode", "modes"];
|
|
42
42
|
var decodeAgent = Schema.decodeUnknownOption(ConfigAgent.Info);
|
|
43
|
-
var decodeLegacyAgent = Schema.decodeUnknownOption(
|
|
43
|
+
var decodeLegacyAgent = Schema.decodeUnknownOption(Info16);
|
|
44
44
|
var pathActions = ["external_directory", "read", "edit"];
|
|
45
45
|
var agentKeys = new Set(["variant", ...Object.keys(ConfigAgent.Info.fields)]);
|
|
46
46
|
var nativeKeys = ["permissions", "request", "system", "disabled"];
|
|
47
|
-
var
|
|
47
|
+
var Plugin12 = define({
|
|
48
48
|
id: "opencode.config.agent",
|
|
49
49
|
effect: Effect.fn(function* (ctx) {
|
|
50
|
-
const config = yield*
|
|
50
|
+
const config = yield* Service68;
|
|
51
51
|
const fs = yield* FSUtil.Service;
|
|
52
52
|
const global = yield* Global.Service;
|
|
53
53
|
const loadEntry = Effect.fnUntraced(function* (entry) {
|
|
@@ -163,4 +163,4 @@ var decode = Effect.fnUntraced(function* (file, content) {
|
|
|
163
163
|
return new Document({ type: "document", path: AbsolutePath2.make(file.filepath), info });
|
|
164
164
|
});
|
|
165
165
|
|
|
166
|
-
export {
|
|
166
|
+
export { Plugin12, exports_agent };
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
var exports_run_coordinator = {};
|
|
7
7
|
__export(exports_run_coordinator, {
|
|
8
8
|
SessionRunCoordinator: () => exports_run_coordinator,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make19
|
|
10
10
|
});
|
|
11
11
|
import { Deferred, Effect, Fiber, FiberSet } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var make19 = (options) => Effect.gen(function* () {
|
|
13
13
|
const executions = new Map;
|
|
14
14
|
const fork = yield* FiberSet.makeRuntime();
|
|
15
15
|
const loop = (key, execution, force) => Effect.suspend(() => options.drain(key, force, execution.scope)).pipe(Effect.andThen(Effect.suspend(() => {
|
|
@@ -79,4 +79,4 @@ var make17 = (options) => Effect.gen(function* () {
|
|
|
79
79
|
return { active: Effect.sync(() => new Set(executions.keys())), isActive, run, wake, interrupt, awaitIdle };
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
-
export {
|
|
82
|
+
export { make19, exports_run_coordinator };
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
requestExecutor2
|
|
3
3
|
} from "./model-p015t6z3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./model-
|
|
5
|
+
ID16,
|
|
6
|
+
Service83,
|
|
7
|
+
node87
|
|
8
|
+
} from "./model-wntksck6.js";
|
|
9
9
|
import {
|
|
10
10
|
__export
|
|
11
11
|
} from "./model-9rqn6x4v.js";
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
var exports_voice = {};
|
|
15
15
|
__export(exports_voice, {
|
|
16
16
|
InvalidRequestError: () => InvalidRequestError2,
|
|
17
|
-
Service: () =>
|
|
18
|
-
UnavailableError: () =>
|
|
17
|
+
Service: () => Service19,
|
|
18
|
+
UnavailableError: () => UnavailableError3,
|
|
19
19
|
Voice: () => exports_voice,
|
|
20
|
-
layer: () =>
|
|
21
|
-
node: () =>
|
|
20
|
+
layer: () => layer12,
|
|
21
|
+
node: () => node21
|
|
22
22
|
});
|
|
23
23
|
import {
|
|
24
24
|
Realtime
|
|
@@ -31,18 +31,18 @@ class InvalidRequestError2 extends Schema.TaggedError()("Voice.InvalidRequestErr
|
|
|
31
31
|
}) {
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class UnavailableError3 extends Schema.TaggedError()("Voice.UnavailableError", {
|
|
35
35
|
message: Schema.String,
|
|
36
36
|
service: Schema.optional(Schema.String)
|
|
37
37
|
}) {
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
class
|
|
40
|
+
class Service19 extends Context.Service()("@opencode/Voice") {
|
|
41
41
|
}
|
|
42
|
-
var
|
|
42
|
+
var layer12 = Layer.effect(Service19, Effect.gen(function* () {
|
|
43
43
|
const executor = yield* RequestExecutor.Service;
|
|
44
|
-
const integrations = yield*
|
|
45
|
-
const findConnection = (provider, methods = ["key"]) => integrations.get(
|
|
44
|
+
const integrations = yield* Service83;
|
|
45
|
+
const findConnection = (provider, methods = ["key"]) => integrations.get(ID16.make(provider)).pipe(Effect.map((info) => info?.connections.find((item) => item.type === "env" || methods.includes(item.method))));
|
|
46
46
|
const source = Effect.fnUntraced(function* (engine) {
|
|
47
47
|
const connection = yield* findConnection(engine.provider);
|
|
48
48
|
if (connection)
|
|
@@ -67,10 +67,10 @@ var layer9 = Layer.effect(Service13, Effect.gen(function* () {
|
|
|
67
67
|
if (!engine)
|
|
68
68
|
return yield* new InvalidRequestError2({ message: `Unsupported voice model: ${input.model}` });
|
|
69
69
|
const found = yield* source(engine);
|
|
70
|
-
const credential = found ? yield* integrations.connection.resolve(found.connection).pipe(Effect.mapError((error) => new
|
|
70
|
+
const credential = found ? yield* integrations.connection.resolve(found.connection).pipe(Effect.mapError((error) => new UnavailableError3({ service: found.provider, message: error.message }))) : undefined;
|
|
71
71
|
const access = found && credential && sessionAccess(found.provider, credential);
|
|
72
72
|
if (found === undefined || access === undefined)
|
|
73
|
-
return yield* new
|
|
73
|
+
return yield* new UnavailableError3({
|
|
74
74
|
service: engine.provider,
|
|
75
75
|
message: engine.id === "openai-live" ? missingLiveKeyMessage : missingKeyMessage[engine.provider]
|
|
76
76
|
});
|
|
@@ -79,14 +79,14 @@ var layer9 = Layer.effect(Service13, Effect.gen(function* () {
|
|
|
79
79
|
session: input.session,
|
|
80
80
|
transport: input.transport,
|
|
81
81
|
...access
|
|
82
|
-
}).pipe(Effect.provideService(RequestExecutor.Service, executor), Effect.mapError((error) => error.reason._tag === "InvalidRequest" || error.reason._tag === "UnsupportedOperation" ? new InvalidRequestError2({ message: error.message }) : new
|
|
82
|
+
}).pipe(Effect.provideService(RequestExecutor.Service, executor), Effect.mapError((error) => error.reason._tag === "InvalidRequest" || error.reason._tag === "UnsupportedOperation" ? new InvalidRequestError2({ message: error.message }) : new UnavailableError3({ message: error.message, service: found.provider })));
|
|
83
83
|
});
|
|
84
|
-
return
|
|
84
|
+
return Service19.of({ models, session });
|
|
85
85
|
}));
|
|
86
|
-
var
|
|
87
|
-
service:
|
|
88
|
-
layer:
|
|
89
|
-
deps: [
|
|
86
|
+
var node21 = makeLocationNode({
|
|
87
|
+
service: Service19,
|
|
88
|
+
layer: layer12,
|
|
89
|
+
deps: [node87, requestExecutor2]
|
|
90
90
|
});
|
|
91
91
|
var openCodeLive = { provider: "opencode", baseURL: "https://opencode.ai/inference/openai/v1" };
|
|
92
92
|
var sessionAccess = (provider, credential) => {
|
|
@@ -108,4 +108,4 @@ var missingKeyMessage = {
|
|
|
108
108
|
google: "Voice needs a Google API key on the server (a stored key, GEMINI_API_KEY, GOOGLE_GENERATIVE_AI_API_KEY, or GOOGLE_API_KEY)."
|
|
109
109
|
};
|
|
110
110
|
|
|
111
|
-
export { InvalidRequestError2,
|
|
111
|
+
export { InvalidRequestError2, UnavailableError3, Service19, layer12, node21, exports_voice };
|