@opencode/core 0.0.0-dev-20406 → 0.0.0-dev-20409
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 +70 -70
- package/dist/aisdk-native.js +69 -69
- package/dist/aisdk.js +74 -74
- package/dist/app.js +7 -7
- package/dist/bus.js +61 -61
- package/dist/chunks/{shell-hadadgvf.js → shell-09vtkvs2.js} +8 -8
- package/dist/chunks/{shell-6033txqd.js → shell-0h1hke09.js} +20 -20
- package/dist/chunks/{shell-0pgf3wjz.js → shell-0mfvdt8p.js} +10 -10
- package/dist/chunks/{shell-3x602478.js → shell-0w0ygeyh.js} +15 -15
- package/dist/chunks/{shell-cebrzyqt.js → shell-11040j7v.js} +17 -17
- package/dist/chunks/{shell-v3a302k8.js → shell-1310s4tm.js} +5 -5
- package/dist/chunks/{shell-5gj63dwh.js → shell-1w0b4a26.js} +8 -8
- package/dist/chunks/{shell-rthp8kp4.js → shell-242bp3ky.js} +17 -17
- package/dist/chunks/{shell-cm8jqk38.js → shell-296c8m1w.js} +4 -4
- package/dist/chunks/{shell-z63w68vq.js → shell-29x78va6.js} +4 -4
- package/dist/chunks/{shell-1q4hgdtf.js → shell-29yjt9fr.js} +330 -330
- package/dist/chunks/{shell-m41nq2xm.js → shell-2ccbzhav.js} +12 -12
- package/dist/chunks/{shell-z4pb129a.js → shell-2cfbypp4.js} +3 -3
- package/dist/chunks/{shell-6anwy9fs.js → shell-2d57kztd.js} +3 -3
- package/dist/chunks/{shell-cxqfxpp1.js → shell-2etfsxvf.js} +6 -6
- package/dist/chunks/{shell-57ez7d0k.js → shell-2fgn2we9.js} +7 -7
- package/dist/chunks/{shell-3a1r704r.js → shell-2j558fvx.js} +6 -6
- package/dist/chunks/{shell-7dqw4kz8.js → shell-2k8khapm.js} +4 -4
- package/dist/chunks/{shell-24zydrzs.js → shell-2ypncbw6.js} +52 -52
- package/dist/chunks/{shell-q4g7nk9d.js → shell-2zbxyrg1.js} +9 -9
- package/dist/chunks/{shell-1rh4yqvv.js → shell-3b9qt4hj.js} +7 -7
- package/dist/chunks/{shell-jnps75af.js → shell-3czaqwkp.js} +11 -11
- package/dist/chunks/{shell-k0gdq8ga.js → shell-3k0nn0ne.js} +9 -9
- package/dist/chunks/{shell-t0fxg8b9.js → shell-3w0fmcng.js} +3 -3
- package/dist/chunks/{shell-n0x2a21q.js → shell-4238gvvk.js} +18 -18
- package/dist/chunks/{shell-027h9grx.js → shell-43y38rzh.js} +16 -16
- package/dist/chunks/{shell-dzrr9fx3.js → shell-461tr88a.js} +7 -7
- package/dist/chunks/{shell-wx3q8r90.js → shell-46w5102t.js} +8 -8
- package/dist/chunks/{shell-nsq97wxa.js → shell-48m56tyw.js} +13 -13
- package/dist/chunks/{shell-fqtvmpfq.js → shell-4e8vs6eh.js} +7 -7
- package/dist/chunks/{shell-dawgpkjz.js → shell-4j10ng35.js} +8 -8
- package/dist/chunks/{shell-wdt5kg7f.js → shell-55pt171s.js} +7 -7
- package/dist/chunks/{shell-33w4ejhs.js → shell-56gdpj1q.js} +4 -4
- package/dist/chunks/{shell-5bjd8ds0.js → shell-5785y2ep.js} +45 -45
- package/dist/chunks/{shell-hzazvw9e.js → shell-57spbz54.js} +42 -42
- package/dist/chunks/{shell-nmww7jyx.js → shell-59wg76sz.js} +2 -2
- package/dist/chunks/{shell-kqgb7ch4.js → shell-5h3x3awa.js} +5 -5
- package/dist/chunks/{shell-pk6jt4dn.js → shell-5mfsnars.js} +19 -19
- package/dist/chunks/{shell-92tzgrpg.js → shell-5w2qze6g.js} +20 -20
- package/dist/chunks/{shell-2mhsvxbb.js → shell-5xpznt2d.js} +1 -1
- package/dist/chunks/{shell-q3t37ft6.js → shell-6bsje7ws.js} +3 -3
- package/dist/chunks/{shell-fmb7ydzj.js → shell-6hbwvpvg.js} +18 -18
- package/dist/chunks/{shell-302sxsq7.js → shell-6pwzktg7.js} +8 -8
- package/dist/chunks/{shell-tqrmv6wh.js → shell-6rpwy5mc.js} +29 -29
- package/dist/chunks/{shell-tmvj6me9.js → shell-6wsfawph.js} +12 -12
- package/dist/chunks/{shell-sw0g5drg.js → shell-6z7hmy4t.js} +30 -30
- package/dist/chunks/{shell-zrfk4xcc.js → shell-6zck5j37.js} +33 -33
- package/dist/chunks/{shell-nwakhswj.js → shell-77bqxzzx.js} +35 -35
- package/dist/chunks/{shell-mhjvq9xf.js → shell-7jq0yyyf.js} +30 -30
- package/dist/chunks/{shell-mp6d0dty.js → shell-7rwqf82v.js} +7 -7
- package/dist/chunks/{shell-763zc42s.js → shell-7s9404gx.js} +25 -25
- package/dist/chunks/{shell-vxfrmkmy.js → shell-7v930722.js} +24 -24
- package/dist/chunks/{shell-ws227ysr.js → shell-7vvv5wyx.js} +6 -6
- package/dist/chunks/{shell-90xpxcvn.js → shell-7wyjaxt5.js} +9 -9
- package/dist/chunks/{shell-g5zc0msw.js → shell-80yzywcg.js} +1 -1
- package/dist/chunks/{shell-w1eejvng.js → shell-84txncab.js} +4 -4
- package/dist/chunks/{shell-d8cfvk62.js → shell-8558arf1.js} +12 -12
- package/dist/chunks/{shell-k0t8x34b.js → shell-8805xwn4.js} +1 -1
- package/dist/chunks/{shell-qvb81wqx.js → shell-8dwbst7y.js} +18 -18
- package/dist/chunks/{shell-m0rmv5bm.js → shell-90nab8ev.js} +6 -6
- package/dist/chunks/{shell-fm2qvscf.js → shell-a46v4e4v.js} +3 -3
- package/dist/chunks/{shell-2832djng.js → shell-a68erk2e.js} +10 -10
- package/dist/chunks/{shell-5t0mhrn0.js → shell-a9fh1xd3.js} +2 -2
- package/dist/chunks/{shell-em3h5ktn.js → shell-afjydgk3.js} +3 -3
- package/dist/chunks/{shell-6fhqajxq.js → shell-ahg1zghw.js} +8 -8
- package/dist/chunks/{shell-8x3ar29j.js → shell-ap9eas8m.js} +9 -9
- package/dist/chunks/{shell-hzk924x7.js → shell-aqmh106j.js} +18 -18
- package/dist/chunks/{shell-0f9afca0.js → shell-avm8jn6n.js} +3 -3
- package/dist/chunks/{shell-yq14pbr7.js → shell-axs6pdy0.js} +3 -3
- package/dist/chunks/{shell-3namxzrj.js → shell-b9x5zb31.js} +85 -85
- package/dist/chunks/{shell-b44gvvvr.js → shell-bbg4461y.js} +40 -40
- package/dist/chunks/{shell-11xytnza.js → shell-bbt4s1em.js} +33 -33
- package/dist/chunks/{shell-t9zs3egg.js → shell-bct739vz.js} +3 -3
- package/dist/chunks/{shell-ky96t3kz.js → shell-bcx2a56x.js} +10 -10
- package/dist/chunks/{shell-fq36cd5d.js → shell-bkwfsa8d.js} +14 -14
- package/dist/chunks/{shell-sgyq1qp9.js → shell-bms65qjn.js} +21 -21
- package/dist/chunks/{shell-qfc3y584.js → shell-bpnn7hyv.js} +9 -9
- package/dist/chunks/{shell-cs4k5zgq.js → shell-br5b6q5k.js} +8 -8
- package/dist/chunks/{shell-z41n5maa.js → shell-bweaxm80.js} +64 -64
- package/dist/chunks/{shell-v5me1390.js → shell-bybgwcct.js} +19 -19
- package/dist/chunks/{shell-z4h5d8ps.js → shell-c13z7sy5.js} +25 -25
- package/dist/chunks/{shell-r7srsjaq.js → shell-chrxq3ex.js} +5 -5
- package/dist/chunks/{shell-9m18q581.js → shell-cpbwv1ps.js} +11 -11
- package/dist/chunks/{shell-xh2bzhhz.js → shell-cr81t2vd.js} +6 -6
- package/dist/chunks/shell-d1z9x6fa.js +252 -0
- package/dist/chunks/{shell-4bjzyjqa.js → shell-dcfyjk12.js} +22 -22
- package/dist/chunks/{shell-er11akkf.js → shell-dezcy0y7.js} +16 -16
- package/dist/chunks/{shell-5v8k5syq.js → shell-dgt8mkj3.js} +22 -22
- package/dist/chunks/{shell-exq671fp.js → shell-dhdpfhyp.js} +6 -6
- package/dist/chunks/{shell-vq2r4xxp.js → shell-dm6v0cnj.js} +52 -52
- package/dist/chunks/{shell-nq7qbqzc.js → shell-dnszgtsj.js} +7 -7
- package/dist/chunks/{shell-x661k3y3.js → shell-dnxkq42g.js} +3 -3
- package/dist/chunks/{shell-5qd3pb7m.js → shell-e3qxr5gk.js} +2 -2
- package/dist/chunks/{shell-xky4w4my.js → shell-em9qgwr1.js} +31 -31
- package/dist/chunks/{shell-t34bv3bh.js → shell-f6z1vvb1.js} +6 -6
- package/dist/chunks/{shell-yrxdn3w6.js → shell-f7jve23h.js} +12 -12
- package/dist/chunks/{shell-vdmdzg77.js → shell-faan1wk1.js} +1 -1
- package/dist/chunks/{shell-4rt0ga34.js → shell-fd636bra.js} +7 -7
- package/dist/chunks/{shell-2a5svkms.js → shell-fe5bw3z3.js} +7 -7
- package/dist/chunks/{shell-jca4demv.js → shell-ff0svapt.js} +1 -1
- package/dist/chunks/{shell-mebcx2ev.js → shell-ffybh0wk.js} +4 -4
- package/dist/chunks/{shell-46gkbd0c.js → shell-fh0zj1e1.js} +24 -24
- package/dist/chunks/{shell-yfmq466m.js → shell-fn2vqynn.js} +11 -11
- package/dist/chunks/{shell-de6jgy4a.js → shell-fpkrmtmw.js} +37 -37
- package/dist/chunks/{shell-qmqgtz8f.js → shell-g6q9qykm.js} +7 -7
- package/dist/chunks/{shell-qwe7bsa3.js → shell-gahyzsq3.js} +20 -20
- package/dist/chunks/{shell-qdd0q08y.js → shell-gna9hx4h.js} +16 -16
- package/dist/chunks/{shell-gsgd9zjh.js → shell-gyae47ky.js} +19 -19
- package/dist/chunks/{shell-kg2zmxw6.js → shell-gyz7ndzc.js} +33 -33
- package/dist/chunks/{shell-rp3pg7vc.js → shell-h3j6n5en.js} +4 -4
- package/dist/chunks/{shell-kgc2xkc7.js → shell-h5r4kkc1.js} +1 -1
- package/dist/chunks/{shell-fy6cggrf.js → shell-h6b02349.js} +3 -3
- package/dist/chunks/{shell-5whaezv9.js → shell-h6wkafze.js} +25 -25
- package/dist/chunks/{shell-ng9nphe0.js → shell-h7k6fa17.js} +18 -18
- package/dist/chunks/{shell-pd7gvt3w.js → shell-h9wp8z5w.js} +3 -3
- package/dist/chunks/{shell-4hbxt91c.js → shell-hfkmhm74.js} +23 -23
- package/dist/chunks/{shell-f41jbqvm.js → shell-hn5cnzw3.js} +15 -15
- package/dist/chunks/{shell-d7xrmwxz.js → shell-hrxnr7fv.js} +12 -12
- package/dist/chunks/{shell-5kw0n2ma.js → shell-hz84tk5e.js} +7 -7
- package/dist/chunks/{shell-2yxkykh1.js → shell-hztfeys8.js} +29 -29
- package/dist/chunks/{shell-wzh9kx9c.js → shell-j81vay8t.js} +2 -2
- package/dist/chunks/{shell-s19nf2ge.js → shell-je2nd8qy.js} +6 -6
- package/dist/chunks/{shell-c1bwn9r9.js → shell-jen49w49.js} +15 -15
- package/dist/chunks/{shell-ps9psapg.js → shell-jhtb5f97.js} +37 -37
- package/dist/chunks/{shell-pmc1jkpx.js → shell-jqhg1hxk.js} +16 -16
- package/dist/chunks/{shell-gc7e05zt.js → shell-jt8t0ecz.js} +10 -10
- package/dist/chunks/{shell-cbntc203.js → shell-k01n324r.js} +3 -3
- package/dist/chunks/{shell-1y782dng.js → shell-k0v2pnh2.js} +18 -18
- package/dist/chunks/{shell-gce79w0q.js → shell-k8csyqq2.js} +14 -14
- package/dist/chunks/{shell-17dp9b3b.js → shell-k93zhc7s.js} +9 -9
- package/dist/chunks/{shell-3pqrab3r.js → shell-kc9hs6v2.js} +12 -12
- package/dist/chunks/{shell-agthfym9.js → shell-kkg080jf.js} +33 -33
- package/dist/chunks/{shell-e1vgqt98.js → shell-kmhtm0eh.js} +43 -43
- package/dist/chunks/{shell-0xqyf95c.js → shell-knevfgda.js} +3 -3
- package/dist/chunks/{shell-40ejgnmq.js → shell-m90ew7f1.js} +3 -3
- package/dist/chunks/{shell-dj3aa5wj.js → shell-mej20m9j.js} +3 -3
- package/dist/chunks/{shell-9syxb0r3.js → shell-mgpyxjx6.js} +9 -9
- package/dist/chunks/{shell-qk5y71t7.js → shell-mssx8eq3.js} +10 -10
- package/dist/chunks/{shell-73tb2d7t.js → shell-mvfsc1pv.js} +2 -2
- package/dist/chunks/{shell-7dthvaew.js → shell-n3v0wvct.js} +23 -23
- package/dist/chunks/{shell-kw0mk995.js → shell-n56h5hy7.js} +39 -39
- package/dist/chunks/{shell-z2wvrawj.js → shell-n9gk7fk1.js} +5 -5
- package/dist/chunks/{shell-2q4t2vtj.js → shell-nfmhh18x.js} +25 -25
- package/dist/chunks/{shell-gwt0t2e2.js → shell-nrscgsz0.js} +19 -19
- package/dist/chunks/{shell-rbgk9g65.js → shell-nxdbpavb.js} +26 -26
- package/dist/chunks/{shell-83y1qfs6.js → shell-nxhmsv4t.js} +179 -179
- package/dist/chunks/{shell-1t9fg1b5.js → shell-p08d8mdw.js} +9 -9
- package/dist/chunks/{shell-0d8tbd59.js → shell-p18fzj7h.js} +22 -22
- package/dist/chunks/{shell-wbkyxrgf.js → shell-p1nm93x7.js} +3 -3
- package/dist/chunks/{shell-1ajx6rf5.js → shell-p42hj8p8.js} +7 -7
- package/dist/chunks/{shell-bj8111r1.js → shell-pcwxzhdm.js} +2 -2
- package/dist/chunks/{shell-8j1jmj9t.js → shell-ph6a0m52.js} +4 -4
- package/dist/chunks/{shell-gs9kr2a8.js → shell-pj97z4ma.js} +13 -13
- package/dist/chunks/{shell-ghvvmysb.js → shell-pjbr20qj.js} +48 -48
- package/dist/chunks/{shell-zz8pmeaw.js → shell-pk5ddt9p.js} +19 -19
- package/dist/chunks/{shell-pjnbb6nv.js → shell-ppkbx4yt.js} +20 -20
- package/dist/chunks/{shell-d38myz56.js → shell-ppsqsh87.js} +34 -34
- package/dist/chunks/{shell-1ntkjgb8.js → shell-pqyb1j4v.js} +27 -27
- package/dist/chunks/{shell-ax630gpb.js → shell-psa9hm71.js} +10 -10
- package/dist/chunks/{shell-zvjxv4v7.js → shell-pstb62p2.js} +18 -18
- package/dist/chunks/{shell-cfsekr6v.js → shell-py3kkmfq.js} +1 -1
- package/dist/chunks/{shell-awbtvej0.js → shell-q3ersh05.js} +5 -5
- package/dist/chunks/{shell-z9v69aw7.js → shell-q47e89a1.js} +30 -30
- package/dist/chunks/{shell-0tf9f9fk.js → shell-q5z6qrs5.js} +7 -7
- package/dist/chunks/{shell-br9mj3ey.js → shell-qfkr4h51.js} +30 -30
- package/dist/chunks/{shell-h3qzknde.js → shell-qpe8tk8s.js} +31 -31
- package/dist/chunks/{shell-dg5bcj4q.js → shell-qq8x5mwt.js} +3 -3
- package/dist/chunks/{shell-x3ec03mt.js → shell-qrtps7c6.js} +8 -8
- package/dist/chunks/{shell-sgy5rc4s.js → shell-qstbhtjy.js} +12 -12
- package/dist/chunks/{shell-s0p782fc.js → shell-qwe53qqr.js} +16 -16
- package/dist/chunks/{shell-frz7qx3c.js → shell-qzwd4pkf.js} +11 -11
- package/dist/chunks/{shell-spcspf24.js → shell-r19vg6ms.js} +9 -9
- package/dist/chunks/{shell-3p2gykje.js → shell-r6127srf.js} +3 -3
- package/dist/chunks/{shell-f42drt00.js → shell-rb29dj05.js} +15 -15
- package/dist/chunks/{shell-fc62ns0w.js → shell-rba86r9a.js} +4 -4
- package/dist/chunks/{shell-m568jpcd.js → shell-rd8v1r6j.js} +26 -26
- package/dist/chunks/{shell-zvt5dnpc.js → shell-rpg9c19m.js} +3 -3
- package/dist/chunks/{shell-9g29qv69.js → shell-rs8qp985.js} +1 -1
- package/dist/chunks/{shell-9rzhta9t.js → shell-s24brvt1.js} +10 -10
- package/dist/chunks/{shell-yrznvahk.js → shell-s4enseaf.js} +1 -1
- package/dist/chunks/{shell-z2sk8n0r.js → shell-s532705d.js} +9 -9
- package/dist/chunks/{shell-wv396vej.js → shell-s8d7rejh.js} +7 -7
- package/dist/chunks/{shell-445bgnxh.js → shell-sbm56x9k.js} +7 -7
- package/dist/chunks/{shell-909p1r3q.js → shell-sd5f6jdk.js} +5 -5
- package/dist/chunks/{shell-3aqqv3ta.js → shell-smcy5e0a.js} +24 -24
- package/dist/chunks/{shell-gxf6g2qt.js → shell-t58mb03q.js} +27 -27
- package/dist/chunks/{shell-a89e0tac.js → shell-tbmac1c7.js} +3 -3
- package/dist/chunks/{shell-hgr40ys5.js → shell-tec192gq.js} +13 -13
- package/dist/chunks/{shell-hbe0cwhg.js → shell-thev1fqr.js} +18 -18
- package/dist/chunks/{shell-6ar8w4pq.js → shell-tmcd77ag.js} +43 -43
- package/dist/chunks/{shell-ew9zfet1.js → shell-tmk4yz8x.js} +27 -27
- package/dist/chunks/{shell-4r8tvr6m.js → shell-tpxv5eqt.js} +2 -2
- package/dist/chunks/{shell-y30nbvw3.js → shell-tsadq9bd.js} +21 -21
- package/dist/chunks/{shell-3nsr1h9t.js → shell-ttwj0m8z.js} +30 -30
- package/dist/chunks/{shell-xd0e3npz.js → shell-tw3zdh9f.js} +22 -22
- package/dist/chunks/{shell-6gnvbdx3.js → shell-tyhjxzyj.js} +1 -1
- package/dist/chunks/{shell-bfafj43h.js → shell-v12jv0w3.js} +19 -19
- package/dist/chunks/{shell-j0zcen4g.js → shell-v5vpra1m.js} +8 -8
- package/dist/chunks/{shell-mkwp3yp2.js → shell-vaeza82m.js} +11 -11
- package/dist/chunks/{shell-y2acyqmb.js → shell-vc39bt20.js} +32 -32
- package/dist/chunks/{shell-350namw0.js → shell-vpxczwj3.js} +23 -23
- package/dist/chunks/{shell-mv7vmavb.js → shell-w6yjv3f5.js} +23 -23
- package/dist/chunks/{shell-v148dh5x.js → shell-watjqnhq.js} +5 -5
- package/dist/chunks/{shell-myrh9h6p.js → shell-wg0dbssz.js} +9 -9
- package/dist/chunks/{shell-mesrmzak.js → shell-wg0k9rvv.js} +7 -7
- package/dist/chunks/{shell-qj8eh1ht.js → shell-xdk9p2qn.js} +20 -20
- package/dist/chunks/{shell-g5w8qwbj.js → shell-xfkkasph.js} +3 -3
- package/dist/chunks/{shell-0yvfy2gr.js → shell-xfn62cer.js} +86 -86
- package/dist/chunks/{shell-dy2xnbj8.js → shell-xkx2jhzt.js} +14 -14
- package/dist/chunks/{shell-1ezyexdv.js → shell-xp0mhm80.js} +15 -15
- package/dist/chunks/{shell-rwrdja42.js → shell-xzjm34t0.js} +17 -17
- package/dist/chunks/{shell-y6drww2a.js → shell-y07tpj3e.js} +48 -48
- package/dist/chunks/{shell-0a5qyhqp.js → shell-y7eazgyz.js} +5 -5
- package/dist/chunks/{shell-smnd959e.js → shell-yb93st4g.js} +10 -10
- package/dist/chunks/{shell-0bwxef5p.js → shell-ygcwaq5r.js} +39 -39
- package/dist/chunks/{shell-0p8b1wz2.js → shell-yvpke61a.js} +9 -9
- package/dist/chunks/{shell-m7s2bw5g.js → shell-yxvshskh.js} +33 -33
- package/dist/chunks/shell-z76f73v3.js +26 -0
- package/dist/chunks/{shell-5vrj9ban.js → shell-zbjyzcd7.js} +13 -13
- package/dist/chunks/{shell-845k646w.js → shell-zm3q7mex.js} +15 -15
- package/dist/chunks/{shell-5tat9ppm.js → shell-znsx74x0.js} +1 -1
- package/dist/chunks/{shell-e1t80gge.js → shell-zp34c0n6.js} +37 -37
- package/dist/chunks/{shell-fz2hs8me.js → shell-zsasz6gv.js} +21 -21
- package/dist/chunks/{shell-wh0yrkpr.js → shell-zv4zpfd9.js} +13 -13
- package/dist/chunks/{shell-mdr46t4g.js → shell-zyrx8stx.js} +3 -3
- package/dist/chunks/{shell-a6t0d3d8.js → shell-zz330w20.js} +24 -24
- package/dist/codemode/instructions.js +2 -2
- package/dist/command.js +70 -70
- package/dist/config/discovery.js +64 -64
- package/dist/config/normalize.js +84 -84
- package/dist/config/plugin/agent.js +101 -101
- package/dist/config/plugin/command.js +177 -177
- package/dist/config/plugin/compaction.js +129 -129
- package/dist/config/plugin/compatibility.js +115 -115
- package/dist/config/plugin/formatter.js +100 -100
- package/dist/config/plugin/image.js +99 -99
- package/dist/config/plugin/instruction.js +70 -70
- package/dist/config/plugin/location-watcher.js +99 -99
- package/dist/config/plugin/mcp.js +105 -105
- package/dist/config/plugin/policy.js +99 -99
- package/dist/config/plugin/provider.js +99 -99
- package/dist/config/plugin/reference.js +101 -101
- package/dist/config/plugin/shell.js +101 -101
- package/dist/config/plugin/skill-file.js +77 -77
- package/dist/config/plugin/skill.js +118 -118
- package/dist/config/plugin/snapshot.js +99 -99
- package/dist/config/plugin/source.js +102 -102
- package/dist/config/plugin/tool-output.js +100 -100
- package/dist/config/plugin/websearch.js +100 -100
- package/dist/config/plugin/worktree.js +100 -100
- package/dist/config/variable.js +2 -2
- package/dist/config.js +99 -99
- package/dist/credential.js +72 -72
- package/dist/database/database.js +56 -56
- package/dist/database/drizzle/effect-sqlite/driver.js +7 -7
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +6 -6
- package/dist/database/drizzle/index.js +8 -8
- package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
- package/dist/database/drizzle.js +8 -8
- package/dist/database/migration.gen.js +39 -39
- package/dist/database/migration.js +41 -41
- package/dist/database/v1-migration.bun.js +9 -9
- package/dist/effect/app-node-builder.js +237 -237
- package/dist/environment/environment.js +71 -71
- package/dist/environment/index.js +73 -73
- package/dist/event-logger.js +13 -13
- package/dist/file-access.js +80 -80
- package/dist/file-mutation.js +72 -72
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +189 -189
- package/dist/filesystem/search.js +79 -79
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +10 -10
- package/dist/filesystem.js +76 -76
- package/dist/form.js +70 -70
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +68 -68
- package/dist/generate.js +79 -79
- package/dist/git.js +5 -5
- 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 +79 -79
- package/dist/github-copilot/responses/openai-responses-language-model.js +7 -7
- 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 +72 -72
- package/dist/instructions/builtins.js +69 -69
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +73 -73
- package/dist/job.js +64 -64
- package/dist/kv.js +61 -61
- package/dist/location-activity.js +55 -55
- package/dist/location-lifecycle.js +83 -83
- package/dist/location-service-map.js +68 -68
- package/dist/location-services.js +314 -314
- package/dist/location.js +69 -69
- package/dist/mcp/client.js +17 -17
- package/dist/mcp/index.js +83 -83
- package/dist/mcp/instructions.js +100 -100
- package/dist/mcp/oauth.js +13 -13
- package/dist/mcp/stdio.js +68 -68
- package/dist/modal/models.js +79 -79
- package/dist/model-resolver.js +78 -78
- package/dist/model.js +82 -82
- package/dist/models-dev.js +87 -87
- package/dist/permission/saved.js +67 -67
- package/dist/permission.js +89 -89
- package/dist/persistent-pty/index.js +72 -72
- package/dist/persistent-pty.js +60 -60
- package/dist/plugin/agent.js +80 -80
- package/dist/plugin/command.js +78 -78
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +182 -182
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +289 -289
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +76 -76
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +78 -78
- package/dist/plugin/provider/amazon-bedrock.js +70 -70
- package/dist/plugin/provider/azure.js +100 -100
- package/dist/plugin/provider/chatgpt.js +72 -72
- package/dist/plugin/provider/cloudflare-ai-gateway.js +97 -97
- package/dist/plugin/provider/cloudflare-workers-ai.js +97 -97
- package/dist/plugin/provider/configured.js +96 -96
- package/dist/plugin/provider/digitalocean.js +72 -72
- package/dist/plugin/provider/github-copilot.js +74 -74
- package/dist/plugin/provider/gitlab.js +72 -72
- package/dist/plugin/provider/google-vertex.js +70 -70
- package/dist/plugin/provider/llmgateway.js +64 -64
- package/dist/plugin/provider/lmstudio.js +99 -99
- package/dist/plugin/provider/modal.js +72 -72
- package/dist/plugin/provider/ollama.js +99 -99
- package/dist/plugin/provider/openai.js +71 -71
- package/dist/plugin/provider/opencode.js +74 -74
- package/dist/plugin/provider/openrouter.js +71 -71
- package/dist/plugin/provider/poe.js +64 -64
- package/dist/plugin/provider/prompt-cache-key.js +70 -70
- package/dist/plugin/provider/sap-ai-core.js +70 -70
- package/dist/plugin/provider/snowflake-cortex.js +98 -98
- package/dist/plugin/provider/vercel.js +70 -70
- package/dist/plugin/provider/vllm.js +99 -99
- package/dist/plugin/provider/xai.js +71 -71
- package/dist/plugin/provider.js +133 -133
- package/dist/plugin/sdk.js +64 -64
- package/dist/plugin/skill.js +116 -116
- package/dist/plugin/supervisor.js +304 -304
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +5 -5
- package/dist/plugin/vcs/git.js +67 -67
- package/dist/plugin/vcs/hg.js +67 -67
- package/dist/plugin/verbosity.js +73 -73
- package/dist/plugin/warming.js +98 -98
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +5 -5
- 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 +185 -185
- package/dist/project/schema.js +7 -7
- package/dist/project.js +72 -72
- package/dist/provider.js +81 -81
- package/dist/pty.js +79 -79
- package/dist/reference/instructions.js +70 -70
- package/dist/reference.js +70 -70
- package/dist/repository-cache.js +65 -65
- package/dist/repository.js +3 -3
- package/dist/ripgrep.js +72 -72
- package/dist/rpc.js +68 -68
- package/dist/session/command.js +60 -60
- package/dist/session/compaction.js +102 -102
- package/dist/session/context.js +122 -122
- package/dist/session/diff.js +67 -67
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +120 -120
- package/dist/session/execution.js +103 -103
- package/dist/session/generate.js +121 -121
- package/dist/session/history.js +8 -8
- package/dist/session/inbox.js +70 -70
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +62 -62
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +76 -76
- package/dist/session/model-request.js +90 -90
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +103 -103
- package/dist/session/projector.js +66 -66
- package/dist/session/prompt.js +79 -79
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +69 -69
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +192 -192
- package/dist/session/runner/model.js +78 -78
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +95 -95
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +142 -142
- package/dist/session/shell.js +109 -109
- package/dist/session/skill.js +78 -78
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +70 -70
- package/dist/session/subagent-job.js +173 -173
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +123 -123
- package/dist/session/to-session-error.js +87 -87
- package/dist/session/transfer.js +117 -117
- package/dist/session.js +185 -185
- package/dist/shell/parse.js +2 -2
- package/dist/shell/select.js +9 -9
- package/dist/shell.js +113 -113
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +81 -81
- package/dist/skill.js +86 -86
- package/dist/snapshot.js +74 -74
- package/dist/tool/mcp.js +99 -99
- package/dist/tool/plugin/edit.js +95 -95
- package/dist/tool/plugin/glob.js +96 -96
- package/dist/tool/plugin/grep.js +98 -98
- package/dist/tool/plugin/mcp-resource.js +93 -93
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +97 -97
- package/dist/tool/plugin/question.js +77 -77
- package/dist/tool/plugin/read.js +98 -98
- package/dist/tool/plugin/shell.js +181 -181
- package/dist/tool/plugin/skill.js +87 -87
- package/dist/tool/plugin/subagent.js +182 -182
- package/dist/tool/plugin/webfetch.js +84 -84
- package/dist/tool/plugin/websearch.js +90 -90
- package/dist/tool/plugin/write.js +97 -97
- package/dist/tool/read-filesystem.js +75 -75
- package/dist/tool-output.js +6 -6
- package/dist/tool.js +9 -9
- package/dist/v1/config/agent.js +6 -6
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +3 -3
- 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 +71 -71
- 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 +71 -71
- package/dist/vcs.js +70 -70
- package/dist/websearch.js +66 -66
- package/dist/wellknown/plugin.js +63 -63
- package/dist/wellknown.js +68 -68
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +66 -66
- package/dist/worktree/git.js +4 -4
- package/dist/worktree/strategies.js +69 -69
- package/dist/worktree.js +77 -77
- package/package.json +8 -8
- package/dist/chunks/shell-7kw0n3fd.js +0 -252
- package/dist/chunks/shell-g619fkyf.js +0 -26
- /package/dist/chunks/{shell-77p9tcjg.js → shell-9qeb1hh1.js} +0 -0
- /package/dist/chunks/{shell-gcavn3wx.js → shell-fepbnb8j.js} +0 -0
- /package/dist/chunks/{shell-5gr04vgg.js → shell-kbww7b3v.js} +0 -0
- /package/dist/chunks/{shell-e0vtkr8g.js → shell-sz0fczdy.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ephemeral2,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./shell-
|
|
3
|
+
Service83,
|
|
4
|
+
node87
|
|
5
|
+
} from "./shell-ap9eas8m.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./shell-
|
|
7
|
+
Service75,
|
|
8
|
+
node79
|
|
9
|
+
} from "./shell-1w0b4a26.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./shell-9rqn6x4v.js";
|
|
@@ -16,14 +16,14 @@ var exports_wellknown = {};
|
|
|
16
16
|
__export(exports_wellknown, {
|
|
17
17
|
Auth: () => Auth2,
|
|
18
18
|
Config: () => Config2,
|
|
19
|
-
Event: () =>
|
|
19
|
+
Event: () => Event16,
|
|
20
20
|
Manifest: () => Manifest2,
|
|
21
21
|
RemoteConfig: () => RemoteConfig2,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service74,
|
|
23
23
|
WellKnown: () => exports_wellknown,
|
|
24
24
|
inspect: () => inspect2,
|
|
25
|
-
node: () =>
|
|
26
|
-
resolve: () =>
|
|
25
|
+
node: () => node78,
|
|
26
|
+
resolve: () => resolve4
|
|
27
27
|
});
|
|
28
28
|
import { Integration } from "@opencode/schema/integration";
|
|
29
29
|
import { Context, Effect, Layer, Ref, Schema, Semaphore } from "effect";
|
|
@@ -46,9 +46,9 @@ var Manifest2 = Schema.Struct({
|
|
|
46
46
|
remote_config: Schema.optional(RemoteConfig2)
|
|
47
47
|
}).annotate({ identifier: "WellKnown.Manifest" });
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class Service74 extends Context.Service()("@opencode/WellKnown") {
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var Event16 = {
|
|
52
52
|
Updated: ephemeral2({ type: "wellknown.updated", schema: {} })
|
|
53
53
|
};
|
|
54
54
|
var inspect2 = Effect.fn("WellKnown.inspect")(function* (origin) {
|
|
@@ -56,7 +56,7 @@ var inspect2 = Effect.fn("WellKnown.inspect")(function* (origin) {
|
|
|
56
56
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
57
57
|
return yield* http.execute(HttpClientRequest.get(url).pipe(HttpClientRequest.acceptJson)).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(Manifest2)), Effect.mapError((cause) => new Error(`Failed to load wellknown manifest from ${url}`, { cause })));
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var resolve4 = Effect.fn("WellKnown.resolve")(function* (input) {
|
|
60
60
|
const manifest = yield* inspect2(input.origin);
|
|
61
61
|
return yield* resolveEntry({ origin: input.origin, integrationID: Integration.ID.make(input.origin.replace(/\/+$/, "")), manifest }, input.variables ?? {});
|
|
62
62
|
});
|
|
@@ -75,10 +75,10 @@ var resolveEntry = Effect.fnUntraced(function* (entry, variables) {
|
|
|
75
75
|
});
|
|
76
76
|
var sourcesKey = "wellknown:sources";
|
|
77
77
|
var Sources = Schema.Array(Schema.String);
|
|
78
|
-
var layer = Layer.effect(
|
|
78
|
+
var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
79
79
|
const http = yield* HttpClient.HttpClient;
|
|
80
|
-
const kv = yield*
|
|
81
|
-
const bus = yield*
|
|
80
|
+
const kv = yield* Service75;
|
|
81
|
+
const bus = yield* Service83;
|
|
82
82
|
const cache = yield* Ref.make(new Map);
|
|
83
83
|
const lock = Semaphore.makeUnsafe(1);
|
|
84
84
|
const loadEntry = Effect.fn("WellKnown.loadEntry")(function* (origin) {
|
|
@@ -109,10 +109,10 @@ var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
|
109
109
|
if (!changed)
|
|
110
110
|
return false;
|
|
111
111
|
yield* Ref.set(cache, next);
|
|
112
|
-
yield* bus.publish(
|
|
112
|
+
yield* bus.publish(Event16.Updated, {});
|
|
113
113
|
return true;
|
|
114
114
|
}, (effect) => lock.withPermit(effect));
|
|
115
|
-
return
|
|
115
|
+
return Service74.of({
|
|
116
116
|
entries: load,
|
|
117
117
|
snapshot: () => Array.from(Ref.getUnsafe(cache).values()),
|
|
118
118
|
refresh,
|
|
@@ -125,7 +125,7 @@ var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
|
125
125
|
const origins = Schema.is(Sources)(sources) ? sources : [];
|
|
126
126
|
yield* kv.set(sourcesKey, Array.from(new Set([...origins, origin])));
|
|
127
127
|
yield* Ref.update(cache, (current) => new Map(current).set(origin, entry));
|
|
128
|
-
yield* bus.publish(
|
|
128
|
+
yield* bus.publish(Event16.Updated, {});
|
|
129
129
|
return entry;
|
|
130
130
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
131
131
|
remove: Effect.fn("WellKnown.remove")(function* (value) {
|
|
@@ -138,11 +138,11 @@ var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
|
138
138
|
next.delete(origin);
|
|
139
139
|
return next;
|
|
140
140
|
});
|
|
141
|
-
yield* bus.publish(
|
|
141
|
+
yield* bus.publish(Event16.Updated, {});
|
|
142
142
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
143
143
|
resolve: Effect.fn("WellKnown.resolveEntry")((entry, variables) => resolveEntry(entry, variables).pipe(Effect.provideService(HttpClient.HttpClient, http)))
|
|
144
144
|
});
|
|
145
145
|
}));
|
|
146
|
-
var
|
|
146
|
+
var node78 = makeGlobalNode({ service: Service74, layer, deps: [httpClient, node79, node87] });
|
|
147
147
|
|
|
148
|
-
export { Auth2, RemoteConfig2, Config2, Manifest2,
|
|
148
|
+
export { Auth2, RemoteConfig2, Config2, Manifest2, Service74, Event16, inspect2, resolve4, node78, exports_wellknown };
|
|
@@ -14,13 +14,13 @@ import {
|
|
|
14
14
|
makeMemoryDriver2
|
|
15
15
|
} from "./shell-aaet6srn.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./shell-
|
|
17
|
+
Service79,
|
|
18
|
+
node83
|
|
19
|
+
} from "./shell-xp0mhm80.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./shell-
|
|
21
|
+
Service70,
|
|
22
|
+
node73
|
|
23
|
+
} from "./shell-ppkbx4yt.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
26
|
} from "./shell-9rqn6x4v.js";
|
|
@@ -29,8 +29,8 @@ import {
|
|
|
29
29
|
var exports_environment2 = {};
|
|
30
30
|
__export(exports_environment2, {
|
|
31
31
|
EnvironmentService: () => exports_environment2,
|
|
32
|
-
Service: () =>
|
|
33
|
-
node: () =>
|
|
32
|
+
Service: () => Service68,
|
|
33
|
+
node: () => node71
|
|
34
34
|
});
|
|
35
35
|
import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
|
|
36
36
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -43,13 +43,13 @@ __export(exports_environment3, {
|
|
|
43
43
|
Environment: () => exports_environment3,
|
|
44
44
|
Failed: () => Failed2,
|
|
45
45
|
NotFound: () => NotFound2,
|
|
46
|
-
Service: () =>
|
|
46
|
+
Service: () => Service68,
|
|
47
47
|
WrongKind: () => WrongKind2,
|
|
48
48
|
execDefaults: () => execDefaults2,
|
|
49
49
|
makeFiles: () => makeFiles2,
|
|
50
50
|
makeLocalDriver: () => makeLocalDriver2,
|
|
51
51
|
makeMemoryDriver: () => makeMemoryDriver2,
|
|
52
|
-
node: () =>
|
|
52
|
+
node: () => node71,
|
|
53
53
|
typeFollowing: () => typeFollowing2
|
|
54
54
|
});
|
|
55
55
|
var makeFiles2 = (driver) => ({
|
|
@@ -58,19 +58,19 @@ var makeFiles2 = (driver) => ({
|
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
// src/environment/environment.ts
|
|
61
|
-
class
|
|
61
|
+
class Service68 extends Context.Service()("@opencode/Environment") {
|
|
62
62
|
}
|
|
63
|
-
var layer = Layer.effect(
|
|
63
|
+
var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
64
64
|
const spawner = yield* ChildProcessSpawner;
|
|
65
|
-
const location = yield*
|
|
66
|
-
const workspace = yield*
|
|
65
|
+
const location = yield* Service79;
|
|
66
|
+
const workspace = yield* Service70;
|
|
67
67
|
const driver = location.workspaceID ? yield* workspace.connect(location.workspaceID).pipe(Effect.mapError((cause) => new Error(`Failed to bind Environment to workspace ${location.workspaceID}`, { cause })), Effect.orDie) : makeLocalDriver2(spawner);
|
|
68
|
-
return
|
|
68
|
+
return Service68.of({ files: makeFiles2(driver), spawner: driver.spawner });
|
|
69
69
|
}));
|
|
70
|
-
var
|
|
71
|
-
service:
|
|
70
|
+
var node71 = makeLocationNode({
|
|
71
|
+
service: Service68,
|
|
72
72
|
layer,
|
|
73
|
-
deps: [CrossSpawnSpawner.node,
|
|
73
|
+
deps: [CrossSpawnSpawner.node, node83, node73]
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
export {
|
|
76
|
+
export { Service68, node71, exports_environment2, makeFiles2, exports_environment3 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./shell-
|
|
3
|
+
} from "./shell-mgpyxjx6.js";
|
|
4
4
|
import {
|
|
5
5
|
call2
|
|
6
|
-
} from "./shell-
|
|
6
|
+
} from "./shell-56gdpj1q.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./shell-9rqn6x4v.js";
|
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
// src/plugin/websearch/tinyfish.ts
|
|
12
12
|
var exports_tinyfish = {};
|
|
13
13
|
__export(exports_tinyfish, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin37,
|
|
15
15
|
WebSearchTinyFish: () => exports_tinyfish,
|
|
16
|
-
endpoint: () =>
|
|
16
|
+
endpoint: () => endpoint4
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Option, Schema } from "effect";
|
|
20
20
|
import { HttpClient } from "effect/unstable/http";
|
|
21
|
-
var
|
|
21
|
+
var endpoint4 = "https://agent.tinyfish.ai/mcp";
|
|
22
22
|
var McpInput = Schema.Struct({
|
|
23
23
|
query: Schema.String
|
|
24
24
|
});
|
|
@@ -33,7 +33,7 @@ var SearchResponse = Schema.fromJsonString(Schema.Struct({
|
|
|
33
33
|
}))
|
|
34
34
|
}));
|
|
35
35
|
var decodeSearchResponse = Schema.decodeUnknownOption(SearchResponse);
|
|
36
|
-
var
|
|
36
|
+
var Plugin37 = define({
|
|
37
37
|
id: "opencode.websearch.tinyfish",
|
|
38
38
|
effect: Effect.fn("WebSearchTinyFish.Plugin")(function* (ctx) {
|
|
39
39
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -55,7 +55,7 @@ var Plugin22 = define({
|
|
|
55
55
|
execute: (input) => Effect.gen(function* () {
|
|
56
56
|
const connection = yield* ctx.integration.connection.active("tinyfish");
|
|
57
57
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
58
|
-
const result = yield* call2(http,
|
|
58
|
+
const result = yield* call2(http, endpoint4, "search", { input: McpInput, output: McpOutput }, { query: input.query }, {
|
|
59
59
|
"User-Agent": useragent2(ctx.app),
|
|
60
60
|
...credential?.type === "key" ? { "X-API-Key": credential.key } : { "X-TinyFish-Access-Mode": "keyless" }
|
|
61
61
|
});
|
|
@@ -73,4 +73,4 @@ var Plugin22 = define({
|
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
export {
|
|
76
|
+
export { endpoint4, Plugin37, exports_tinyfish };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./shell-
|
|
2
|
+
Service83
|
|
3
|
+
} from "./shell-ap9eas8m.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./shell-
|
|
5
|
+
Service74,
|
|
6
|
+
Event16
|
|
7
|
+
} from "./shell-tw3zdh9f.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
10
|
} from "./shell-9rqn6x4v.js";
|
|
@@ -12,16 +12,16 @@ import {
|
|
|
12
12
|
// src/wellknown/plugin.ts
|
|
13
13
|
var exports_plugin = {};
|
|
14
14
|
__export(exports_plugin, {
|
|
15
|
-
Plugin: () =>
|
|
15
|
+
Plugin: () => Plugin49,
|
|
16
16
|
WellKnownPlugin: () => exports_plugin
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Stream } from "effect";
|
|
20
|
-
var
|
|
20
|
+
var Plugin49 = define({
|
|
21
21
|
id: "opencode.wellknown",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
|
-
const bus = yield*
|
|
24
|
-
const wellknown = yield*
|
|
23
|
+
const bus = yield* Service83;
|
|
24
|
+
const wellknown = yield* Service74;
|
|
25
25
|
yield* wellknown.entries().pipe(Effect.orDie);
|
|
26
26
|
yield* ctx.integration.transform((editor) => {
|
|
27
27
|
wellknown.snapshot().forEach((entry) => {
|
|
@@ -41,8 +41,8 @@ var Plugin15 = define({
|
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
|
-
yield* bus.subscribe(
|
|
44
|
+
yield* bus.subscribe(Event16.Updated).pipe(Stream.runForEach(() => ctx.integration.reload()), Effect.forkScoped({ startImmediately: true }));
|
|
45
45
|
})
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
export {
|
|
48
|
+
export { Plugin49, exports_plugin };
|
|
@@ -5,28 +5,28 @@ import {
|
|
|
5
5
|
RelativePath2
|
|
6
6
|
} from "./shell-922hggd3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./shell-
|
|
8
|
+
Service79
|
|
9
|
+
} from "./shell-xp0mhm80.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./shell-
|
|
11
|
+
Service68
|
|
12
|
+
} from "./shell-v12jv0w3.js";
|
|
13
13
|
import {
|
|
14
14
|
InvalidPatternError2,
|
|
15
|
-
|
|
16
|
-
} from "./shell-
|
|
15
|
+
Service21
|
|
16
|
+
} from "./shell-fn2vqynn.js";
|
|
17
17
|
import {
|
|
18
18
|
DEFAULT_SEARCH_LIMIT2,
|
|
19
19
|
DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
20
20
|
GrepInput2,
|
|
21
21
|
Entry2,
|
|
22
22
|
Match2
|
|
23
|
-
} from "./shell-
|
|
23
|
+
} from "./shell-bybgwcct.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./shell-
|
|
25
|
+
Service60
|
|
26
|
+
} from "./shell-dm6v0cnj.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./shell-
|
|
28
|
+
Service49
|
|
29
|
+
} from "./shell-gna9hx4h.js";
|
|
30
30
|
import {
|
|
31
31
|
__export
|
|
32
32
|
} from "./shell-9rqn6x4v.js";
|
|
@@ -35,17 +35,17 @@ import {
|
|
|
35
35
|
var exports_grep = {};
|
|
36
36
|
__export(exports_grep, {
|
|
37
37
|
GrepTool: () => exports_grep,
|
|
38
|
-
Input: () =>
|
|
39
|
-
Output: () =>
|
|
40
|
-
Plugin: () =>
|
|
41
|
-
name: () =>
|
|
42
|
-
toModelContent: () =>
|
|
38
|
+
Input: () => Input9,
|
|
39
|
+
Output: () => Output5,
|
|
40
|
+
Plugin: () => Plugin29,
|
|
41
|
+
name: () => name9,
|
|
42
|
+
toModelContent: () => toModelContent4
|
|
43
43
|
});
|
|
44
44
|
import { ToolFailure } from "@opencode/ai";
|
|
45
45
|
import { Effect, Schema } from "effect";
|
|
46
46
|
import path from "path";
|
|
47
|
-
var
|
|
48
|
-
var
|
|
47
|
+
var name9 = "grep";
|
|
48
|
+
var Input9 = Schema.Struct({
|
|
49
49
|
pattern: GrepInput2.fields.pattern.check(Schema.isMinLength(1, { message: "Pattern must not be empty" })).annotate({
|
|
50
50
|
description: "Regular expression or literal text to match in file contents."
|
|
51
51
|
}),
|
|
@@ -65,8 +65,8 @@ var Input5 = Schema.Struct({
|
|
|
65
65
|
description: `Maximum number of matching lines to return (default: ${DEFAULT_SEARCH_LIMIT2})`
|
|
66
66
|
})
|
|
67
67
|
});
|
|
68
|
-
var
|
|
69
|
-
var
|
|
68
|
+
var Output5 = Schema.Array(Match2);
|
|
69
|
+
var toModelContent4 = (matches, truncated = false) => {
|
|
70
70
|
const lines = matches.length === 0 ? ["No matches found"] : [`Found ${matches.length} matches`];
|
|
71
71
|
let current = "";
|
|
72
72
|
for (const match of matches) {
|
|
@@ -83,26 +83,26 @@ var toModelContent2 = (matches, truncated = false) => {
|
|
|
83
83
|
return lines.join(`
|
|
84
84
|
`);
|
|
85
85
|
};
|
|
86
|
-
var
|
|
86
|
+
var Plugin29 = {
|
|
87
87
|
id: "opencode.tool.grep",
|
|
88
88
|
effect: Effect.fn("GrepTool.Plugin")(function* (ctx) {
|
|
89
|
-
const environment = yield*
|
|
90
|
-
const ripgrep = yield*
|
|
91
|
-
const location = yield*
|
|
92
|
-
const access = yield*
|
|
93
|
-
const permission = yield*
|
|
89
|
+
const environment = yield* Service68;
|
|
90
|
+
const ripgrep = yield* Service21;
|
|
91
|
+
const location = yield* Service79;
|
|
92
|
+
const access = yield* Service49;
|
|
93
|
+
const permission = yield* Service60;
|
|
94
94
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
95
|
-
name:
|
|
95
|
+
name: name9,
|
|
96
96
|
options: { codemode: false },
|
|
97
97
|
description: "Search file contents using ripgrep's regular expression syntax or literal text matching. Use it to locate specific code, symbols, or text patterns, and narrow searches with `path` or `include`. Returns matching file paths, line numbers, and line previews.",
|
|
98
|
-
input:
|
|
99
|
-
output:
|
|
98
|
+
input: Input9,
|
|
99
|
+
output: Output5,
|
|
100
100
|
execute: (input, context) => Effect.gen(function* () {
|
|
101
101
|
const source = { type: "tool", messageID: context.messageID, id: context.id };
|
|
102
102
|
const target = yield* access.resolve({ path: input.path ?? "." });
|
|
103
103
|
yield* access.authorizeExternal([target], context);
|
|
104
104
|
yield* permission.assert({
|
|
105
|
-
action:
|
|
105
|
+
action: name9,
|
|
106
106
|
resources: [input.pattern],
|
|
107
107
|
save: ["*"],
|
|
108
108
|
metadata: {
|
|
@@ -144,7 +144,7 @@ var Plugin5 = {
|
|
|
144
144
|
return { matches: matches.slice(0, limit), truncated: matches.length > limit };
|
|
145
145
|
}).pipe(Effect.map((result) => ({
|
|
146
146
|
output: result.matches,
|
|
147
|
-
content:
|
|
147
|
+
content: toModelContent4(result.matches.map((match) => ({
|
|
148
148
|
...match,
|
|
149
149
|
entry: { ...match.entry, path: path.resolve(location.directory, match.entry.path) }
|
|
150
150
|
})), result.truncated),
|
|
@@ -154,4 +154,4 @@ var Plugin5 = {
|
|
|
154
154
|
})
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
-
export {
|
|
157
|
+
export { name9, Input9, Output5, toModelContent4, Plugin29, exports_grep };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AmazonBedrockPlugin2
|
|
3
|
-
} from "./shell-
|
|
3
|
+
} from "./shell-mej20m9j.js";
|
|
4
4
|
import {
|
|
5
5
|
AzurePlugin2
|
|
6
|
-
} from "./shell-
|
|
6
|
+
} from "./shell-5785y2ep.js";
|
|
7
7
|
import {
|
|
8
8
|
CerebrasPlugin2
|
|
9
9
|
} from "./shell-wc3fc9cn.js";
|
|
10
10
|
import {
|
|
11
11
|
ChatGPTPlugin2
|
|
12
|
-
} from "./shell-
|
|
12
|
+
} from "./shell-w6yjv3f5.js";
|
|
13
13
|
import {
|
|
14
14
|
CloudflareAIGatewayPlugin2
|
|
15
|
-
} from "./shell-
|
|
15
|
+
} from "./shell-h3j6n5en.js";
|
|
16
16
|
import {
|
|
17
17
|
CloudflareWorkersAIPlugin2
|
|
18
|
-
} from "./shell-
|
|
18
|
+
} from "./shell-rba86r9a.js";
|
|
19
19
|
import {
|
|
20
20
|
CoherePlugin2
|
|
21
21
|
} from "./shell-z0bkrqjs.js";
|
|
22
22
|
import {
|
|
23
23
|
DigitalOceanPlugin2
|
|
24
|
-
} from "./shell-
|
|
24
|
+
} from "./shell-43y38rzh.js";
|
|
25
25
|
import {
|
|
26
26
|
DynamicProviderPlugin2
|
|
27
27
|
} from "./shell-vzcthcp8.js";
|
|
@@ -30,67 +30,67 @@ import {
|
|
|
30
30
|
} from "./shell-669tq793.js";
|
|
31
31
|
import {
|
|
32
32
|
GithubCopilotPlugin2
|
|
33
|
-
} from "./shell-
|
|
33
|
+
} from "./shell-fpkrmtmw.js";
|
|
34
34
|
import {
|
|
35
35
|
GitLabPlugin2
|
|
36
|
-
} from "./shell-
|
|
36
|
+
} from "./shell-bms65qjn.js";
|
|
37
37
|
import {
|
|
38
38
|
GoogleVertexPlugin2
|
|
39
|
-
} from "./shell-
|
|
39
|
+
} from "./shell-y7eazgyz.js";
|
|
40
40
|
import {
|
|
41
41
|
KiloPlugin2
|
|
42
42
|
} from "./shell-qg3g05ea.js";
|
|
43
43
|
import {
|
|
44
44
|
LLMGatewayPlugin2
|
|
45
|
-
} from "./shell-
|
|
45
|
+
} from "./shell-5h3x3awa.js";
|
|
46
46
|
import {
|
|
47
47
|
LMStudioPlugin2
|
|
48
|
-
} from "./shell-
|
|
48
|
+
} from "./shell-yb93st4g.js";
|
|
49
49
|
import {
|
|
50
50
|
ModalPlugin2
|
|
51
|
-
} from "./shell-
|
|
51
|
+
} from "./shell-pk5ddt9p.js";
|
|
52
52
|
import {
|
|
53
53
|
NvidiaPlugin2
|
|
54
54
|
} from "./shell-24dcb14g.js";
|
|
55
55
|
import {
|
|
56
56
|
OllamaPlugin2
|
|
57
|
-
} from "./shell-
|
|
57
|
+
} from "./shell-a68erk2e.js";
|
|
58
58
|
import {
|
|
59
59
|
OpenAIPlugin2
|
|
60
|
-
} from "./shell-
|
|
60
|
+
} from "./shell-xzjm34t0.js";
|
|
61
61
|
import {
|
|
62
62
|
SnowflakeCortexPlugin2
|
|
63
|
-
} from "./shell-
|
|
63
|
+
} from "./shell-8dwbst7y.js";
|
|
64
64
|
import {
|
|
65
65
|
OpencodePlugin2
|
|
66
|
-
} from "./shell-
|
|
66
|
+
} from "./shell-pstb62p2.js";
|
|
67
67
|
import {
|
|
68
68
|
OpenRouterPlugin2
|
|
69
|
-
} from "./shell-
|
|
69
|
+
} from "./shell-r6127srf.js";
|
|
70
70
|
import {
|
|
71
71
|
PerplexityPlugin2
|
|
72
72
|
} from "./shell-veqvce7d.js";
|
|
73
73
|
import {
|
|
74
74
|
PoePlugin2
|
|
75
|
-
} from "./shell-
|
|
75
|
+
} from "./shell-ffybh0wk.js";
|
|
76
76
|
import {
|
|
77
77
|
PromptCacheKeyPlugin2
|
|
78
|
-
} from "./shell-
|
|
78
|
+
} from "./shell-zyrx8stx.js";
|
|
79
79
|
import {
|
|
80
80
|
SapAICorePlugin2
|
|
81
|
-
} from "./shell-
|
|
81
|
+
} from "./shell-ph6a0m52.js";
|
|
82
82
|
import {
|
|
83
83
|
VercelPlugin2
|
|
84
|
-
} from "./shell-
|
|
84
|
+
} from "./shell-8805xwn4.js";
|
|
85
85
|
import {
|
|
86
86
|
VenicePlugin2
|
|
87
87
|
} from "./shell-yrhqyw5v.js";
|
|
88
88
|
import {
|
|
89
89
|
VLLMPlugin2
|
|
90
|
-
} from "./shell-
|
|
90
|
+
} from "./shell-mssx8eq3.js";
|
|
91
91
|
import {
|
|
92
92
|
XAIPlugin2
|
|
93
|
-
} from "./shell-
|
|
93
|
+
} from "./shell-3czaqwkp.js";
|
|
94
94
|
import {
|
|
95
95
|
ZenmuxPlugin2
|
|
96
96
|
} from "./shell-jjkms2e6.js";
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./shell-
|
|
3
|
+
} from "./shell-mgpyxjx6.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./shell-
|
|
5
|
+
Service83
|
|
6
|
+
} from "./shell-ap9eas8m.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID15,
|
|
9
9
|
OAuth3,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./shell-
|
|
10
|
+
Event19,
|
|
11
|
+
Service78
|
|
12
|
+
} from "./shell-q47e89a1.js";
|
|
13
13
|
import {
|
|
14
14
|
key2
|
|
15
|
-
} from "./shell-
|
|
15
|
+
} from "./shell-dnxkq42g.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID14,
|
|
18
18
|
MethodID2
|
|
19
|
-
} from "./shell-
|
|
19
|
+
} from "./shell-qpe8tk8s.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
ID13,
|
|
22
22
|
mergeOverlay2
|
|
23
|
-
} from "./shell-
|
|
23
|
+
} from "./shell-6zck5j37.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
25
|
+
ID11,
|
|
26
26
|
VariantID2,
|
|
27
|
-
|
|
28
|
-
} from "./shell-
|
|
27
|
+
Info25
|
|
28
|
+
} from "./shell-bbt4s1em.js";
|
|
29
29
|
import {
|
|
30
30
|
success2,
|
|
31
31
|
error2
|
|
@@ -41,8 +41,8 @@ var issuer = "https://auth.openai.com";
|
|
|
41
41
|
var tokenURL = `${issuer}/api/accounts/oauth/token`;
|
|
42
42
|
var resource = "https://api.openai.com/v1";
|
|
43
43
|
var tokenSharingScope = "chatgpt.tokens.use.direct";
|
|
44
|
-
var providerID =
|
|
45
|
-
var integrationID =
|
|
44
|
+
var providerID = ID13.openai;
|
|
45
|
+
var integrationID = ID14.make("openai");
|
|
46
46
|
var methodID = MethodID2.make("chatgpt-token-sharing");
|
|
47
47
|
var modelCacheKey = (clientID) => `models:${clientID}`;
|
|
48
48
|
var fallbackModels = new Set([
|
|
@@ -171,8 +171,8 @@ function listen(server) {
|
|
|
171
171
|
var ChatGPTPlugin2 = define({
|
|
172
172
|
id: "opencode.provider.chatgpt",
|
|
173
173
|
effect: Effect.fn(function* (ctx) {
|
|
174
|
-
const bus = yield*
|
|
175
|
-
const credentials = yield*
|
|
174
|
+
const bus = yield* Service83;
|
|
175
|
+
const credentials = yield* Service78;
|
|
176
176
|
const loading = Semaphore.makeUnsafe(1);
|
|
177
177
|
let chatgpt;
|
|
178
178
|
let available;
|
|
@@ -194,7 +194,7 @@ var ChatGPTPlugin2 = define({
|
|
|
194
194
|
yield* ctx.integration.transform((editor) => {
|
|
195
195
|
editor.method.update(signIn(ctx.app, () => Option.getOrUndefined(decodeMetadata(chatgpt?.metadata))?.clientID, ctx.storage));
|
|
196
196
|
});
|
|
197
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
197
|
+
yield* Effect.forEach(yield* credentials.list(ID14.make("openai")), (entry) => {
|
|
198
198
|
const value = entry.value;
|
|
199
199
|
if (value.type !== "oauth" || value.methodID !== MethodID2.make("chatgpt-browser"))
|
|
200
200
|
return Effect.void;
|
|
@@ -259,7 +259,7 @@ var ChatGPTPlugin2 = define({
|
|
|
259
259
|
});
|
|
260
260
|
const refreshModels = Effect.fn("ChatGPTPlugin.refreshModels")(function* () {
|
|
261
261
|
const connection = source;
|
|
262
|
-
const credential = connection?.type === "credential" ? (yield* credentials.get(
|
|
262
|
+
const credential = connection?.type === "credential" ? (yield* credentials.get(ID15.make(connection.id)))?.value : undefined;
|
|
263
263
|
if (credential?.type !== "oauth" || credential.methodID !== methodID || credential.expires <= Date.now() + 60000)
|
|
264
264
|
return;
|
|
265
265
|
const metadata = Option.getOrUndefined(decodeMetadata(credential.metadata));
|
|
@@ -279,7 +279,7 @@ var ChatGPTPlugin2 = define({
|
|
|
279
279
|
}));
|
|
280
280
|
});
|
|
281
281
|
const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload()))).pipe(Effect.andThen(refreshModels().pipe(Effect.forkScoped, Effect.asVoid)));
|
|
282
|
-
yield* bus.subscribe(
|
|
282
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
|
|
283
283
|
yield* refreshModels().pipe(Effect.forkScoped);
|
|
284
284
|
yield* Effect.sleep(Duration.minutes(15)).pipe(Effect.andThen(refreshModels), Effect.forever, Effect.forkScoped);
|
|
285
285
|
})
|
|
@@ -338,7 +338,7 @@ function deriveModels2(remote, existing) {
|
|
|
338
338
|
const found = byID.get(model.modelID);
|
|
339
339
|
return found ? [deriveModel(found, model)] : [];
|
|
340
340
|
}),
|
|
341
|
-
...remote.filter((model) => !known.has(
|
|
341
|
+
...remote.filter((model) => !known.has(ID11.make(model.slug))).map((model) => deriveModel(model, Info25.default(ID13.openai, ID11.make(model.slug))))
|
|
342
342
|
];
|
|
343
343
|
}
|
|
344
344
|
function deriveModel(remote, previous) {
|