@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
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
AbsolutePath2
|
|
3
3
|
} from "./shell-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./shell-
|
|
5
|
+
node85
|
|
6
|
+
} from "./shell-fe5bw3z3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./shell-
|
|
8
|
+
Service79,
|
|
9
|
+
node83
|
|
10
|
+
} from "./shell-xp0mhm80.js";
|
|
11
11
|
import {
|
|
12
12
|
create3
|
|
13
13
|
} from "./shell-rdw6cm16.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./shell-
|
|
15
|
+
make17
|
|
16
|
+
} from "./shell-f6z1vvb1.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
19
|
} from "./shell-9rqn6x4v.js";
|
|
@@ -21,9 +21,9 @@ import {
|
|
|
21
21
|
// src/worktree/strategies.ts
|
|
22
22
|
var exports_strategies = {};
|
|
23
23
|
__export(exports_strategies, {
|
|
24
|
-
Service: () =>
|
|
24
|
+
Service: () => Service48,
|
|
25
25
|
WorktreeStrategies: () => exports_strategies,
|
|
26
|
-
node: () =>
|
|
26
|
+
node: () => node52
|
|
27
27
|
});
|
|
28
28
|
import { Context, Effect, Layer } from "effect";
|
|
29
29
|
import path from "path";
|
|
@@ -31,12 +31,12 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
31
31
|
import { Global } from "@opencode/util/global";
|
|
32
32
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class Service48 extends Context.Service()("@opencode/WorktreeStrategies") {
|
|
35
35
|
}
|
|
36
|
-
var layer = Layer.effect(
|
|
37
|
-
const location = yield*
|
|
36
|
+
var layer = Layer.effect(Service48, Effect.gen(function* () {
|
|
37
|
+
const location = yield* Service79;
|
|
38
38
|
const global = yield* Global.Service;
|
|
39
|
-
const git = yield*
|
|
39
|
+
const git = yield* make17;
|
|
40
40
|
const state = create3({
|
|
41
41
|
name: "worktree",
|
|
42
42
|
initial: () => ({
|
|
@@ -55,12 +55,12 @@ var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
55
55
|
}
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
|
-
return
|
|
58
|
+
return Service48.of({ ...state, directory: location.directory });
|
|
59
59
|
}));
|
|
60
|
-
var
|
|
61
|
-
service:
|
|
60
|
+
var node52 = makeLocationNode({
|
|
61
|
+
service: Service48,
|
|
62
62
|
layer,
|
|
63
|
-
deps: [
|
|
63
|
+
deps: [node83, Global.node, node85, FSUtil.node]
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
export {
|
|
66
|
+
export { Service48, node52, exports_strategies };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./shell-
|
|
2
|
+
ID14,
|
|
3
|
+
Service77,
|
|
4
|
+
node81
|
|
5
|
+
} from "./shell-qpe8tk8s.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
ID13,
|
|
8
8
|
isAISDK2,
|
|
9
9
|
packageName2,
|
|
10
10
|
loadPackage2,
|
|
@@ -12,20 +12,20 @@ import {
|
|
|
12
12
|
modelSettings2,
|
|
13
13
|
mergeOverlay2,
|
|
14
14
|
mergeHeaders2,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./shell-
|
|
15
|
+
Service76,
|
|
16
|
+
node80
|
|
17
|
+
} from "./shell-6zck5j37.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./shell-
|
|
19
|
+
Service57,
|
|
20
|
+
node60
|
|
21
|
+
} from "./shell-psa9hm71.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
23
|
+
ID11,
|
|
24
24
|
VariantID2,
|
|
25
25
|
Ref2,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} from "./shell-
|
|
26
|
+
Service72,
|
|
27
|
+
node76
|
|
28
|
+
} from "./shell-bbt4s1em.js";
|
|
29
29
|
import {
|
|
30
30
|
__export
|
|
31
31
|
} from "./shell-9rqn6x4v.js";
|
|
@@ -37,15 +37,15 @@ __export(exports_model_resolver, {
|
|
|
37
37
|
ModelConfigurationError: () => ModelConfigurationError2,
|
|
38
38
|
ModelInitializationError: () => ModelInitializationError2,
|
|
39
39
|
ModelResolver: () => exports_model_resolver,
|
|
40
|
-
Service: () =>
|
|
40
|
+
Service: () => Service56,
|
|
41
41
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
|
|
42
42
|
UnsupportedCompactionError: () => UnsupportedCompactionError2,
|
|
43
43
|
UnsupportedPackageError: () => UnsupportedPackageError2,
|
|
44
44
|
VariantUnavailableError: () => VariantUnavailableError2,
|
|
45
45
|
fromCatalogModel: () => fromCatalogModel2,
|
|
46
46
|
hasPackage: () => hasPackage2,
|
|
47
|
-
layer: () =>
|
|
48
|
-
node: () =>
|
|
47
|
+
layer: () => layer22,
|
|
48
|
+
node: () => node59,
|
|
49
49
|
resolveModel: () => resolveModel2,
|
|
50
50
|
withVariant: () => withVariant2
|
|
51
51
|
});
|
|
@@ -55,8 +55,8 @@ import { Auth } from "@opencode/ai/route";
|
|
|
55
55
|
import { Context, Effect, Layer, Schema, Struct } from "effect";
|
|
56
56
|
import { Npm } from "@opencode/util/npm";
|
|
57
57
|
class VariantUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
|
|
58
|
-
providerID:
|
|
59
|
-
modelID:
|
|
58
|
+
providerID: ID13,
|
|
59
|
+
modelID: ID11,
|
|
60
60
|
variant: VariantID2
|
|
61
61
|
}) {
|
|
62
62
|
get message() {
|
|
@@ -65,8 +65,8 @@ class VariantUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
class UnsupportedPackageError2 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
|
|
68
|
-
providerID:
|
|
69
|
-
modelID:
|
|
68
|
+
providerID: ID13,
|
|
69
|
+
modelID: ID11,
|
|
70
70
|
package: Schema.String
|
|
71
71
|
}) {
|
|
72
72
|
get message() {
|
|
@@ -76,8 +76,8 @@ class UnsupportedPackageError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
76
76
|
var InitializationPhase2 = Schema.Literals(["load", "init", "construct"]);
|
|
77
77
|
|
|
78
78
|
class ModelConfigurationError2 extends Schema.TaggedError()("SessionRunnerModel.ModelConfigurationError", {
|
|
79
|
-
providerID:
|
|
80
|
-
modelID:
|
|
79
|
+
providerID: ID13,
|
|
80
|
+
modelID: ID11,
|
|
81
81
|
package: Schema.String,
|
|
82
82
|
detail: Schema.String
|
|
83
83
|
}) {
|
|
@@ -87,8 +87,8 @@ class ModelConfigurationError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
class ModelInitializationError2 extends Schema.TaggedError()("SessionRunnerModel.ModelInitializationError", {
|
|
90
|
-
providerID:
|
|
91
|
-
modelID:
|
|
90
|
+
providerID: ID13,
|
|
91
|
+
modelID: ID11,
|
|
92
92
|
package: Schema.String,
|
|
93
93
|
phase: InitializationPhase2,
|
|
94
94
|
detail: Schema.String
|
|
@@ -99,8 +99,8 @@ class ModelInitializationError2 extends Schema.TaggedError()("SessionRunnerModel
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
class UnresolvedProviderVariablesError2 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
|
|
102
|
-
providerID:
|
|
103
|
-
modelID:
|
|
102
|
+
providerID: ID13,
|
|
103
|
+
modelID: ID11,
|
|
104
104
|
variables: Schema.Array(Schema.String)
|
|
105
105
|
}) {
|
|
106
106
|
get message() {
|
|
@@ -109,8 +109,8 @@ class UnresolvedProviderVariablesError2 extends Schema.TaggedError()("SessionRun
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
|
|
112
|
-
providerID:
|
|
113
|
-
modelID:
|
|
112
|
+
providerID: ID13,
|
|
113
|
+
modelID: ID11,
|
|
114
114
|
route: Schema.String
|
|
115
115
|
}) {
|
|
116
116
|
get message() {
|
|
@@ -118,7 +118,7 @@ class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
class
|
|
121
|
+
class Service56 extends Context.Service()("@opencode/ModelResolver") {
|
|
122
122
|
}
|
|
123
123
|
var withVariant2 = (model, variantID) => {
|
|
124
124
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -258,15 +258,15 @@ var causeMessage = (cause) => {
|
|
|
258
258
|
};
|
|
259
259
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
260
260
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
261
|
-
var
|
|
262
|
-
const providers = yield*
|
|
263
|
-
const models = yield*
|
|
264
|
-
const integrations = yield*
|
|
261
|
+
var layer22 = Layer.effect(Service56, Effect.gen(function* () {
|
|
262
|
+
const providers = yield* Service76;
|
|
263
|
+
const models = yield* Service72;
|
|
264
|
+
const integrations = yield* Service77;
|
|
265
265
|
const npm = yield* Npm.Service;
|
|
266
|
-
const aisdk = yield*
|
|
266
|
+
const aisdk = yield* Service57;
|
|
267
267
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
268
268
|
const provider = yield* providers.get(selected.providerID);
|
|
269
|
-
const connection = yield* integrations.connection.active(provider?.integrationID ??
|
|
269
|
+
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID14.make(selected.providerID));
|
|
270
270
|
const credential = connection ? yield* integrations.connection.resolve(connection) : undefined;
|
|
271
271
|
const selectedVariant = yield* withVariant2(selected, variant);
|
|
272
272
|
const runtimeInfo = {
|
|
@@ -293,7 +293,7 @@ var layer20 = Layer.effect(Service48, Effect.gen(function* () {
|
|
|
293
293
|
chunkTimeout: provider?.settings?.chunkTimeout
|
|
294
294
|
};
|
|
295
295
|
});
|
|
296
|
-
return
|
|
296
|
+
return Service56.of({
|
|
297
297
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
298
298
|
const selected = requested ? yield* models.get(requested.providerID, requested.id) : yield* models.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(models.available(), (models) => models.find(hasPackage2))));
|
|
299
299
|
if (!selected)
|
|
@@ -310,10 +310,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
310
310
|
const name = packageName2(packageName);
|
|
311
311
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
312
312
|
}
|
|
313
|
-
var
|
|
314
|
-
service:
|
|
315
|
-
layer:
|
|
316
|
-
deps: [
|
|
313
|
+
var node59 = makeLocationNode({
|
|
314
|
+
service: Service56,
|
|
315
|
+
layer: layer22,
|
|
316
|
+
deps: [node80, node76, node81, Npm.node, node60]
|
|
317
317
|
});
|
|
318
318
|
|
|
319
|
-
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2,
|
|
319
|
+
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service56, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer22, node59, exports_model_resolver };
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
RelativePath2
|
|
3
3
|
} from "./shell-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./shell-
|
|
5
|
+
Service79,
|
|
6
|
+
node83
|
|
7
|
+
} from "./shell-xp0mhm80.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./shell-
|
|
9
|
+
Service21,
|
|
10
|
+
node24
|
|
11
|
+
} from "./shell-fn2vqynn.js";
|
|
12
12
|
import {
|
|
13
13
|
isHome2,
|
|
14
14
|
names3
|
|
@@ -21,12 +21,12 @@ import {
|
|
|
21
21
|
var exports_search = {};
|
|
22
22
|
__export(exports_search, {
|
|
23
23
|
FileSystemSearch: () => exports_search,
|
|
24
|
-
Options: () =>
|
|
25
|
-
Service: () =>
|
|
26
|
-
configured: () =>
|
|
24
|
+
Options: () => Options2,
|
|
25
|
+
Service: () => Service13,
|
|
26
|
+
configured: () => configured2,
|
|
27
27
|
fffLayer: () => fffLayer2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer8,
|
|
29
|
+
node: () => node15,
|
|
30
30
|
ripgrepLayer: () => ripgrepLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -35,11 +35,11 @@ import { Clock, Context, Deferred, Duration, Effect, Layer, Schema, Scope } from
|
|
|
35
35
|
import { Fff } from "#fff";
|
|
36
36
|
import fuzzysort from "fuzzysort";
|
|
37
37
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
38
|
-
var
|
|
38
|
+
var Options2 = Schema.Struct({
|
|
39
39
|
fff: Schema.optional(Schema.Boolean)
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service13 extends Context.Service()("@opencode/FileSystem/Search") {
|
|
43
43
|
}
|
|
44
44
|
var REFRESH_INTERVAL = Duration.toMillis("10 seconds");
|
|
45
45
|
function emptyIndex() {
|
|
@@ -58,9 +58,9 @@ function search(index, input) {
|
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
var ripgrepLayer2 = Layer.effect(
|
|
62
|
-
const location = yield*
|
|
63
|
-
const ripgrep = yield*
|
|
61
|
+
var ripgrepLayer2 = Layer.effect(Service13, Effect.gen(function* () {
|
|
62
|
+
const location = yield* Service79;
|
|
63
|
+
const ripgrep = yield* Service21;
|
|
64
64
|
const scope = yield* Scope.Scope;
|
|
65
65
|
const clock = yield* Clock.Clock;
|
|
66
66
|
const home = isHome2(location.directory);
|
|
@@ -105,15 +105,15 @@ var ripgrepLayer2 = Layer.effect(Service22, Effect.gen(function* () {
|
|
|
105
105
|
Deferred.doneUnsafe(attempt, exit);
|
|
106
106
|
})), Effect.forkIn(scope), Effect.flatMap(() => initialized ? Effect.void : Deferred.await(attempt)));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service13.of({
|
|
109
109
|
find: (input) => Effect.gen(function* () {
|
|
110
110
|
yield* refresh;
|
|
111
111
|
return search(index, input);
|
|
112
112
|
})
|
|
113
113
|
});
|
|
114
114
|
}));
|
|
115
|
-
var fffLayer2 = Layer.effect(
|
|
116
|
-
const location = yield*
|
|
115
|
+
var fffLayer2 = Layer.effect(Service13, Effect.gen(function* () {
|
|
116
|
+
const location = yield* Service79;
|
|
117
117
|
const result = yield* Effect.try({
|
|
118
118
|
try: () => Fff.create({
|
|
119
119
|
basePath: location.directory,
|
|
@@ -126,12 +126,12 @@ var fffLayer2 = Layer.effect(Service22, Effect.gen(function* () {
|
|
|
126
126
|
if (!result?.ok) {
|
|
127
127
|
if (result)
|
|
128
128
|
yield* Effect.logWarning("failed to initialize fff", { error: result.error });
|
|
129
|
-
return
|
|
129
|
+
return Service13.of({
|
|
130
130
|
find: () => Effect.succeed([])
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
yield* Effect.addFinalizer(() => Effect.sync(() => result.value.destroy()));
|
|
134
|
-
return
|
|
134
|
+
return Service13.of({
|
|
135
135
|
find: (input) => Effect.sync(() => {
|
|
136
136
|
const options = { pageIndex: 0, pageSize: input.limit ?? 50 };
|
|
137
137
|
const items = (() => {
|
|
@@ -174,17 +174,17 @@ var fffLayer2 = Layer.effect(Service22, Effect.gen(function* () {
|
|
|
174
174
|
})
|
|
175
175
|
});
|
|
176
176
|
}));
|
|
177
|
-
var
|
|
178
|
-
const location = yield*
|
|
177
|
+
var layer8 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
178
|
+
const location = yield* Service79;
|
|
179
179
|
if (location.workspaceID)
|
|
180
180
|
return ripgrepLayer2;
|
|
181
181
|
if (options?.fff === false || options?.fff === undefined && process.platform === "win32" || !Fff.available())
|
|
182
182
|
return ripgrepLayer2;
|
|
183
183
|
return location.vcs && !isHome2(location.directory) ? fffLayer2 : ripgrepLayer2;
|
|
184
184
|
}));
|
|
185
|
-
function
|
|
186
|
-
return makeLocationNode({ service:
|
|
185
|
+
function configured2(options) {
|
|
186
|
+
return makeLocationNode({ service: Service13, layer: layer8(options), deps: [node83, node24] });
|
|
187
187
|
}
|
|
188
|
-
var
|
|
188
|
+
var node15 = configured2();
|
|
189
189
|
|
|
190
|
-
export {
|
|
190
|
+
export { Options2, Service13, ripgrepLayer2, fffLayer2, layer8, configured2, node15, exports_search };
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./shell-emrn6kk6.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLiteEffectDatabase2
|
|
6
|
-
} from "./shell-
|
|
6
|
+
} from "./shell-kbww7b3v.js";
|
|
7
7
|
import {
|
|
8
8
|
EffectSQLiteSession2
|
|
9
|
-
} from "./shell-
|
|
9
|
+
} from "./shell-80yzywcg.js";
|
|
10
10
|
|
|
11
11
|
// src/database/drizzle/effect-sqlite/driver.ts
|
|
12
12
|
import * as Effect from "effect/Effect";
|
|
@@ -2,19 +2,19 @@ import {
|
|
|
2
2
|
AbsolutePath2
|
|
3
3
|
} from "./shell-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./shell-
|
|
5
|
+
Service81,
|
|
6
|
+
node85
|
|
7
|
+
} from "./shell-fe5bw3z3.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
parse4,
|
|
10
10
|
validateBranch3,
|
|
11
11
|
cachePath2,
|
|
12
12
|
same2
|
|
13
|
-
} from "./shell-
|
|
13
|
+
} from "./shell-84txncab.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./shell-
|
|
15
|
+
Service75,
|
|
16
|
+
node79
|
|
17
|
+
} from "./shell-1w0b4a26.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
20
|
} from "./shell-9rqn6x4v.js";
|
|
@@ -30,9 +30,9 @@ __export(exports_repository_cache, {
|
|
|
30
30
|
LockFailedError: () => LockFailedError2,
|
|
31
31
|
RepositoryCache: () => exports_repository_cache,
|
|
32
32
|
ResetFailedError: () => ResetFailedError2,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service46,
|
|
34
34
|
isError: () => isError2,
|
|
35
|
-
node: () =>
|
|
35
|
+
node: () => node50,
|
|
36
36
|
validateBranch: () => validateBranch2
|
|
37
37
|
});
|
|
38
38
|
import path from "path";
|
|
@@ -90,7 +90,7 @@ class CacheOperationError2 extends Schema.TaggedError()("RepositoryCacheOperatio
|
|
|
90
90
|
}) {
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
class
|
|
93
|
+
class Service46 extends Context.Service()("@opencode/RepositoryCache") {
|
|
94
94
|
}
|
|
95
95
|
function isError2(error) {
|
|
96
96
|
return error instanceof InvalidBranchError2 || error instanceof CloneFailedError2 || error instanceof FetchFailedError2 || error instanceof CheckoutFailedError2 || error instanceof ResetFailedError2 || error instanceof LockFailedError2 || error instanceof CacheOperationError2;
|
|
@@ -101,25 +101,25 @@ var validateBranch2 = Effect.fn("RepositoryCache.validateBranch")(function* (bra
|
|
|
101
101
|
catch: (error) => new InvalidBranchError2({ branch, message: errorMessage(error) })
|
|
102
102
|
});
|
|
103
103
|
});
|
|
104
|
-
var layer = Layer.effect(
|
|
104
|
+
var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
105
105
|
const fs = yield* FSUtil.Service;
|
|
106
|
-
const git = yield*
|
|
106
|
+
const git = yield* Service81;
|
|
107
107
|
const flock = yield* EffectFlock.Service;
|
|
108
108
|
const global = yield* Global.Service;
|
|
109
|
-
const kv = yield*
|
|
110
|
-
return
|
|
109
|
+
const kv = yield* Service75;
|
|
110
|
+
return Service46.of({
|
|
111
111
|
ensure: Effect.fn("RepositoryCache.ensure")(function* (input) {
|
|
112
112
|
if (input.branch)
|
|
113
113
|
yield* validateBranch2(input.branch);
|
|
114
114
|
const repository = input.reference.label;
|
|
115
115
|
const localPath = cachePath2(global.repos, input.reference, input.branch);
|
|
116
116
|
const key = `repository-cache:${localPath}`;
|
|
117
|
-
const cloneTarget =
|
|
117
|
+
const cloneTarget = parse4(input.reference.remote) ?? input.reference;
|
|
118
118
|
return yield* flock.withLock(Effect.gen(function* () {
|
|
119
119
|
yield* cacheOperation(fs.ensureDir(path.dirname(localPath)), "ensure cache directory", localPath);
|
|
120
120
|
const existing = yield* git.repo.discover(AbsolutePath2.make(localPath));
|
|
121
121
|
const origin = existing ? yield* git.remote.get(existing) : undefined;
|
|
122
|
-
const originReference = origin ?
|
|
122
|
+
const originReference = origin ? parse4(origin) : undefined;
|
|
123
123
|
const worktree = existing ? yield* fs.resolve(localPath) : undefined;
|
|
124
124
|
const reuse = Boolean(existing && existing.worktree === worktree && originReference && same2(originReference, cloneTarget));
|
|
125
125
|
if (!reuse && (yield* fs.existsSafe(localPath))) {
|
|
@@ -167,10 +167,10 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
167
167
|
})
|
|
168
168
|
});
|
|
169
169
|
}));
|
|
170
|
-
var
|
|
171
|
-
service:
|
|
170
|
+
var node50 = makeGlobalNode({
|
|
171
|
+
service: Service46,
|
|
172
172
|
layer,
|
|
173
|
-
deps: [EffectFlock.node, FSUtil.node,
|
|
173
|
+
deps: [EffectFlock.node, FSUtil.node, node85, Global.node, node79]
|
|
174
174
|
});
|
|
175
175
|
function errorMessage(error) {
|
|
176
176
|
return error instanceof globalThis.Error ? error.message : String(error);
|
|
@@ -179,4 +179,4 @@ function cacheOperation(effect, operation, target) {
|
|
|
179
179
|
return effect.pipe(Effect.mapError((error) => new CacheOperationError2({ operation, path: target, message: errorMessage(error) })));
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
export { InvalidBranchError2, CloneFailedError2, FetchFailedError2, CheckoutFailedError2, ResetFailedError2, LockFailedError2, CacheOperationError2,
|
|
182
|
+
export { InvalidBranchError2, CloneFailedError2, FetchFailedError2, CheckoutFailedError2, ResetFailedError2, LockFailedError2, CacheOperationError2, Service46, isError2, validateBranch2, node50, exports_repository_cache };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./shell-
|
|
2
|
+
Service79
|
|
3
|
+
} from "./shell-xp0mhm80.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./shell-
|
|
5
|
+
Service68
|
|
6
|
+
} from "./shell-v12jv0w3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
Service15,
|
|
9
9
|
readText2,
|
|
10
10
|
syncTextBom2
|
|
11
|
-
} from "./shell-
|
|
11
|
+
} from "./shell-qzwd4pkf.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./shell-
|
|
13
|
+
Service50
|
|
14
|
+
} from "./shell-zbjyzcd7.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./shell-
|
|
16
|
+
Service60
|
|
17
|
+
} from "./shell-dm6v0cnj.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
Service49,
|
|
20
20
|
resolvePath2
|
|
21
|
-
} from "./shell-
|
|
21
|
+
} from "./shell-gna9hx4h.js";
|
|
22
22
|
import {
|
|
23
23
|
fileDiff2
|
|
24
24
|
} from "./shell-6prwharc.js";
|
|
@@ -30,17 +30,17 @@ import {
|
|
|
30
30
|
var exports_edit = {};
|
|
31
31
|
__export(exports_edit, {
|
|
32
32
|
EditTool: () => exports_edit,
|
|
33
|
-
Input: () =>
|
|
34
|
-
Output: () =>
|
|
35
|
-
Plugin: () =>
|
|
36
|
-
name: () =>
|
|
33
|
+
Input: () => Input6,
|
|
34
|
+
Output: () => Output3,
|
|
35
|
+
Plugin: () => Plugin24,
|
|
36
|
+
name: () => name6
|
|
37
37
|
});
|
|
38
38
|
import { ToolFailure } from "@opencode/ai";
|
|
39
39
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
40
40
|
import { Bom } from "@opencode/util/bom";
|
|
41
41
|
import { Effect, Schema } from "effect";
|
|
42
|
-
var
|
|
43
|
-
var
|
|
42
|
+
var name6 = "edit";
|
|
43
|
+
var Input6 = Schema.Struct({
|
|
44
44
|
path: Schema.String.annotate({
|
|
45
45
|
description: "File to edit"
|
|
46
46
|
}),
|
|
@@ -50,7 +50,7 @@ var Input2 = Schema.Struct({
|
|
|
50
50
|
description: "Whether to replace every occurrence of oldString. When false, oldString must match exactly once. Defaults to false."
|
|
51
51
|
})
|
|
52
52
|
});
|
|
53
|
-
var
|
|
53
|
+
var Output3 = Schema.Struct({
|
|
54
54
|
files: Schema.Array(FileDiff.Info),
|
|
55
55
|
replacements: Schema.Number
|
|
56
56
|
});
|
|
@@ -103,21 +103,21 @@ var findLineOccurrences = (content, search) => {
|
|
|
103
103
|
return result;
|
|
104
104
|
}, []);
|
|
105
105
|
};
|
|
106
|
-
var
|
|
106
|
+
var Plugin24 = {
|
|
107
107
|
id: "opencode.tool.edit",
|
|
108
108
|
effect: Effect.fn("EditTool.Plugin")(function* (ctx) {
|
|
109
|
-
const access = yield*
|
|
110
|
-
const fileMutation = yield*
|
|
111
|
-
const environment = yield*
|
|
112
|
-
const formatter = yield*
|
|
113
|
-
const location = yield*
|
|
114
|
-
const permission = yield*
|
|
109
|
+
const access = yield* Service49;
|
|
110
|
+
const fileMutation = yield* Service15;
|
|
111
|
+
const environment = yield* Service68;
|
|
112
|
+
const formatter = yield* Service50;
|
|
113
|
+
const location = yield* Service79;
|
|
114
|
+
const permission = yield* Service60;
|
|
115
115
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
116
|
-
name:
|
|
116
|
+
name: name6,
|
|
117
117
|
options: { codemode: false, permission: "edit" },
|
|
118
118
|
description: "Edit the contents of a file by finding and replacing exact text. When editing text from Read output, preserve the exact indentation (tabs or spaces) and omit the line-number prefix, such as `1: `. Never include the prefix in oldString or newString. The edit fails if oldString is not found. By default, oldString must identify a UNIQUE location. Multiple matches FAIL unless replaceAll is true. Add more surrounding context to disambiguate, or set replaceAll to true to replace every occurrence. Use replaceAll when the change should apply to every occurrence, such as renaming a variable.",
|
|
119
|
-
input:
|
|
120
|
-
output:
|
|
119
|
+
input: Input6,
|
|
120
|
+
output: Output3,
|
|
121
121
|
execute: (input, context) => {
|
|
122
122
|
return Effect.gen(function* () {
|
|
123
123
|
const permissionSource = {
|
|
@@ -194,4 +194,4 @@ var Plugin2 = {
|
|
|
194
194
|
})
|
|
195
195
|
};
|
|
196
196
|
|
|
197
|
-
export {
|
|
197
|
+
export { name6, Input6, Output3, Plugin24, exports_edit };
|