@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,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84
|
|
3
|
-
} from "./shell-
|
|
3
|
+
} from "./shell-pcwxzhdm.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./shell-
|
|
5
|
+
Service83
|
|
6
|
+
} from "./shell-ap9eas8m.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./shell-
|
|
8
|
+
Service55
|
|
9
|
+
} from "./shell-sd5f6jdk.js";
|
|
10
10
|
import {
|
|
11
11
|
RelativePath2
|
|
12
12
|
} from "./shell-922hggd3.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./shell-
|
|
14
|
+
ID6,
|
|
15
|
+
Service39
|
|
16
|
+
} from "./shell-7jq0yyyf.js";
|
|
17
17
|
import {
|
|
18
18
|
SessionEvent2
|
|
19
19
|
} from "./shell-ec1grn59.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./shell-gftt206x.js";
|
|
23
23
|
import {
|
|
24
24
|
MessageNotFoundError2
|
|
25
|
-
} from "./shell-
|
|
25
|
+
} from "./shell-n9gk7fk1.js";
|
|
26
26
|
import {
|
|
27
27
|
SessionMessageTable2
|
|
28
28
|
} from "./shell-z07pqspn.js";
|
|
@@ -42,12 +42,12 @@ __export(exports_revert, {
|
|
|
42
42
|
import { and, asc, eq, gt } from "drizzle-orm";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
45
|
-
const instances = yield*
|
|
45
|
+
const instances = yield* Service55;
|
|
46
46
|
const database = yield* Service84;
|
|
47
|
-
const bus = yield*
|
|
47
|
+
const bus = yield* Service83;
|
|
48
48
|
return yield* Effect.gen(function* () {
|
|
49
|
-
const snapshot = yield*
|
|
50
|
-
const original = input.session.revert?.snapshot ?
|
|
49
|
+
const snapshot = yield* Service39;
|
|
50
|
+
const original = input.session.revert?.snapshot ? ID6.make(input.session.revert.snapshot) : yield* snapshot.capture();
|
|
51
51
|
const next = yield* plan(database.db, { sessionID: input.session.id, messageID: input.messageID });
|
|
52
52
|
const restore = new Map;
|
|
53
53
|
if (original) {
|
|
@@ -74,13 +74,13 @@ var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
|
74
74
|
}).pipe(instances.provide(input.session));
|
|
75
75
|
});
|
|
76
76
|
var clear2 = Effect.fn("SessionRevert.clear")(function* (session) {
|
|
77
|
-
const instances = yield*
|
|
78
|
-
const bus = yield*
|
|
77
|
+
const instances = yield* Service55;
|
|
78
|
+
const bus = yield* Service83;
|
|
79
79
|
yield* Effect.gen(function* () {
|
|
80
|
-
const snapshot = yield*
|
|
80
|
+
const snapshot = yield* Service39;
|
|
81
81
|
if (!session.revert)
|
|
82
82
|
return;
|
|
83
|
-
const original = session.revert.snapshot ?
|
|
83
|
+
const original = session.revert.snapshot ? ID6.make(session.revert.snapshot) : undefined;
|
|
84
84
|
if (original)
|
|
85
85
|
yield* snapshot.restore({
|
|
86
86
|
files: new Map((session.revert.files ?? []).map((file) => [RelativePath2.make(file.file), original]))
|
|
@@ -111,7 +111,7 @@ var plan = Effect.fn("SessionRevert.plan")(function* (db, input) {
|
|
|
111
111
|
continue;
|
|
112
112
|
for (const file of message.snapshot.files ?? [])
|
|
113
113
|
if (!files.has(file))
|
|
114
|
-
files.set(file,
|
|
114
|
+
files.set(file, ID6.make(message.snapshot.start));
|
|
115
115
|
}
|
|
116
116
|
return files;
|
|
117
117
|
});
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
PATCH_CONTEXT_LINES2
|
|
3
3
|
} from "./shell-tazgh4e4.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./shell-
|
|
5
|
+
ID6,
|
|
6
|
+
Service39
|
|
7
|
+
} from "./shell-7jq0yyyf.js";
|
|
8
8
|
import {
|
|
9
9
|
SessionSchema2
|
|
10
|
-
} from "./shell-
|
|
10
|
+
} from "./shell-6bsje7ws.js";
|
|
11
11
|
import {
|
|
12
12
|
MessageNotFoundError2
|
|
13
|
-
} from "./shell-
|
|
13
|
+
} from "./shell-n9gk7fk1.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
16
|
} from "./shell-z07pqspn.js";
|
|
@@ -81,14 +81,14 @@ var turn2 = Effect.fn("SessionDiff.turn")(function* (db, locations, input) {
|
|
|
81
81
|
const location = before ? decodeLocation(before) : after ? decodeLocation(after) : input.session.location;
|
|
82
82
|
const recorded = steps.findLast((step) => step.end)?.end;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
|
-
const snapshot = yield*
|
|
84
|
+
const snapshot = yield* Service39;
|
|
85
85
|
const running = input.active && final.completed === null;
|
|
86
86
|
const to = running ? (yield* snapshot.capture()) ?? recorded : recorded;
|
|
87
87
|
if (!to)
|
|
88
88
|
return [];
|
|
89
89
|
return yield* snapshot.diff({
|
|
90
|
-
from:
|
|
91
|
-
to:
|
|
90
|
+
from: ID6.make(from),
|
|
91
|
+
to: ID6.make(to),
|
|
92
92
|
context: input.context ?? PATCH_CONTEXT_LINES2
|
|
93
93
|
});
|
|
94
94
|
}).pipe(Effect.provide(locations.get(location)));
|
|
@@ -5,26 +5,26 @@ 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
|
-
|
|
15
|
-
} from "./shell-
|
|
14
|
+
Service21
|
|
15
|
+
} from "./shell-fn2vqynn.js";
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_SEARCH_LIMIT2,
|
|
18
18
|
DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
19
19
|
GlobInput2,
|
|
20
20
|
Entry2
|
|
21
|
-
} from "./shell-
|
|
21
|
+
} from "./shell-bybgwcct.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./shell-
|
|
23
|
+
Service60
|
|
24
|
+
} from "./shell-dm6v0cnj.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./shell-
|
|
26
|
+
Service49
|
|
27
|
+
} from "./shell-gna9hx4h.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
30
|
} from "./shell-9rqn6x4v.js";
|
|
@@ -33,17 +33,17 @@ import {
|
|
|
33
33
|
var exports_glob = {};
|
|
34
34
|
__export(exports_glob, {
|
|
35
35
|
GlobTool: () => exports_glob,
|
|
36
|
-
Input: () =>
|
|
36
|
+
Input: () => Input10,
|
|
37
37
|
Output: () => Output6,
|
|
38
|
-
Plugin: () =>
|
|
39
|
-
name: () =>
|
|
40
|
-
toModelContent: () =>
|
|
38
|
+
Plugin: () => Plugin30,
|
|
39
|
+
name: () => name10,
|
|
40
|
+
toModelContent: () => toModelContent5
|
|
41
41
|
});
|
|
42
42
|
import { ToolFailure } from "@opencode/ai";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
import path from "path";
|
|
45
|
-
var
|
|
46
|
-
var
|
|
45
|
+
var name10 = "glob";
|
|
46
|
+
var Input10 = Schema.Struct({
|
|
47
47
|
pattern: GlobInput2.fields.pattern.annotate({ description: "Glob pattern to match files against" }),
|
|
48
48
|
path: Schema.optionalKey(RelativePath2).annotate({
|
|
49
49
|
description: "Directory to search. Defaults to the current working directory."
|
|
@@ -56,26 +56,26 @@ var Input8 = Schema.Struct({
|
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
58
|
var Output6 = Schema.Array(Entry2);
|
|
59
|
-
var
|
|
59
|
+
var toModelContent5 = (entries, truncated = false) => {
|
|
60
60
|
const lines = entries.length === 0 ? ["No files found"] : entries.map((item) => item.path);
|
|
61
61
|
if (truncated)
|
|
62
62
|
lines.push("", `(Results are truncated: showing first ${entries.length} results. Consider using a more specific path or pattern.)`);
|
|
63
63
|
return lines.join(`
|
|
64
64
|
`);
|
|
65
65
|
};
|
|
66
|
-
var
|
|
66
|
+
var Plugin30 = {
|
|
67
67
|
id: "opencode.tool.glob",
|
|
68
68
|
effect: Effect.fn("GlobTool.Plugin")(function* (ctx) {
|
|
69
|
-
const environment = yield*
|
|
70
|
-
const ripgrep = yield*
|
|
71
|
-
const location = yield*
|
|
72
|
-
const access = yield*
|
|
73
|
-
const permission = yield*
|
|
69
|
+
const environment = yield* Service68;
|
|
70
|
+
const ripgrep = yield* Service21;
|
|
71
|
+
const location = yield* Service79;
|
|
72
|
+
const access = yield* Service49;
|
|
73
|
+
const permission = yield* Service60;
|
|
74
74
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
75
|
-
name:
|
|
75
|
+
name: name10,
|
|
76
76
|
options: { codemode: false },
|
|
77
77
|
description: 'Search file paths using a glob pattern (examples: "**/*.ts", "src/**/*.tsx").',
|
|
78
|
-
input:
|
|
78
|
+
input: Input10,
|
|
79
79
|
output: Output6,
|
|
80
80
|
execute: (input, context) => Effect.gen(function* () {
|
|
81
81
|
const searchPath = input.path === "undefined" || input.path === "null" ? undefined : input.path;
|
|
@@ -83,7 +83,7 @@ var Plugin10 = {
|
|
|
83
83
|
const target = yield* access.resolve({ path: searchPath ?? ".", kind: "directory" });
|
|
84
84
|
yield* access.authorizeExternal([target], context);
|
|
85
85
|
yield* permission.assert({
|
|
86
|
-
action:
|
|
86
|
+
action: name10,
|
|
87
87
|
resources: [input.pattern],
|
|
88
88
|
save: ["*"],
|
|
89
89
|
metadata: {
|
|
@@ -118,11 +118,11 @@ var Plugin10 = {
|
|
|
118
118
|
return { entries: entries.slice(0, limit), truncated: entries.length > limit };
|
|
119
119
|
}).pipe(Effect.map((result) => ({
|
|
120
120
|
output: result.entries,
|
|
121
|
-
content:
|
|
121
|
+
content: toModelContent5(result.entries.map((entry) => ({ ...entry, path: path.resolve(location.directory, entry.path) })), result.truncated),
|
|
122
122
|
metadata: { count: result.entries.length, truncated: result.truncated }
|
|
123
123
|
})), Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to find files matching ${input.pattern}`, error })))
|
|
124
124
|
})).pipe(Effect.orDie);
|
|
125
125
|
})
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export {
|
|
128
|
+
export { name10, Input10, Output6, toModelContent5, Plugin30, exports_glob };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ephemeral2,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./shell-
|
|
3
|
+
Service83,
|
|
4
|
+
node87
|
|
5
|
+
} from "./shell-ap9eas8m.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
8
|
} from "./shell-9rqn6x4v.js";
|
|
@@ -11,28 +11,28 @@ import {
|
|
|
11
11
|
var exports_sdk = {};
|
|
12
12
|
__export(exports_sdk, {
|
|
13
13
|
SdkPlugins: () => exports_sdk,
|
|
14
|
-
Service: () =>
|
|
14
|
+
Service: () => Service11,
|
|
15
15
|
Updated: () => Updated2,
|
|
16
|
-
layer: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
layer: () => layer7,
|
|
17
|
+
node: () => node13
|
|
18
18
|
});
|
|
19
19
|
import { Context, Effect, Layer } from "effect";
|
|
20
20
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
21
21
|
var Updated2 = ephemeral2({ type: "sdk.plugin.updated", schema: {} });
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class Service11 extends Context.Service()("@opencode/SdkPlugins") {
|
|
24
24
|
}
|
|
25
|
-
var
|
|
26
|
-
const bus = yield*
|
|
25
|
+
var layer7 = Layer.effect(Service11, Effect.gen(function* () {
|
|
26
|
+
const bus = yield* Service83;
|
|
27
27
|
const plugins = new Map;
|
|
28
28
|
let revision = 0;
|
|
29
|
-
return
|
|
29
|
+
return Service11.of({
|
|
30
30
|
register: (plugin) => Effect.sync(() => {
|
|
31
31
|
plugins.set(plugin.id, { ...plugin, revision: String(++revision), source: { type: "sdk" } });
|
|
32
32
|
}).pipe(Effect.andThen(bus.publish(Updated2, {})), Effect.asVoid),
|
|
33
33
|
all: () => [...plugins.values()]
|
|
34
34
|
});
|
|
35
35
|
}));
|
|
36
|
-
var
|
|
36
|
+
var node13 = makeGlobalNode({ service: Service11, layer: layer7, deps: [node87] });
|
|
37
37
|
|
|
38
|
-
export { Updated2,
|
|
38
|
+
export { Updated2, Service11, layer7, node13, exports_sdk };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Service82,
|
|
3
|
-
node86
|
|
4
|
-
} from "./shell-8x3ar29j.js";
|
|
5
1
|
import {
|
|
6
2
|
Service83,
|
|
7
3
|
node87
|
|
8
|
-
} from "./shell-
|
|
4
|
+
} from "./shell-ap9eas8m.js";
|
|
5
|
+
import {
|
|
6
|
+
Service81,
|
|
7
|
+
node85
|
|
8
|
+
} from "./shell-fe5bw3z3.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./shell-
|
|
10
|
+
Service79,
|
|
11
|
+
node83
|
|
12
|
+
} from "./shell-xp0mhm80.js";
|
|
13
13
|
import {
|
|
14
14
|
awaitActivation2
|
|
15
15
|
} from "./shell-619r8v3y.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./shell-
|
|
17
|
+
Service67,
|
|
18
|
+
node70
|
|
19
|
+
} from "./shell-4238gvvk.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./shell-
|
|
21
|
+
node18
|
|
22
|
+
} from "./shell-jt8t0ecz.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./shell-
|
|
24
|
+
Service6,
|
|
25
|
+
node8
|
|
26
|
+
} from "./shell-g6q9qykm.js";
|
|
27
27
|
import {
|
|
28
28
|
__export
|
|
29
29
|
} from "./shell-9rqn6x4v.js";
|
|
@@ -32,23 +32,23 @@ import {
|
|
|
32
32
|
var exports_location_watcher = {};
|
|
33
33
|
__export(exports_location_watcher, {
|
|
34
34
|
LocationWatcher: () => exports_location_watcher,
|
|
35
|
-
Service: () =>
|
|
36
|
-
node: () =>
|
|
35
|
+
Service: () => Service2,
|
|
36
|
+
node: () => node2
|
|
37
37
|
});
|
|
38
38
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
39
39
|
import { Cause, Context, Effect, Exit, Layer, Scope, Semaphore, Stream } from "effect";
|
|
40
40
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
41
41
|
import path from "path";
|
|
42
42
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
43
|
-
class
|
|
43
|
+
class Service2 extends Context.Service()("@opencode/LocationWatcher") {
|
|
44
44
|
}
|
|
45
|
-
var layer = Layer.effect(
|
|
46
|
-
const location = yield*
|
|
47
|
-
const watcher = yield*
|
|
48
|
-
const bus = yield*
|
|
45
|
+
var layer = Layer.effect(Service2, Effect.gen(function* () {
|
|
46
|
+
const location = yield* Service79;
|
|
47
|
+
const watcher = yield* Service67;
|
|
48
|
+
const bus = yield* Service83;
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
51
|
-
const policy = yield*
|
|
50
|
+
const git = yield* Service81;
|
|
51
|
+
const policy = yield* Service6;
|
|
52
52
|
const publish = (update) => bus.publish(FileSystem.Event.Changed, {
|
|
53
53
|
file: update.path,
|
|
54
54
|
event: update.type === "create" ? "add" : update.type === "update" ? "change" : "unlink"
|
|
@@ -100,12 +100,12 @@ var layer = Layer.effect(Service3, Effect.gen(function* () {
|
|
|
100
100
|
yield* awaitActivation2;
|
|
101
101
|
yield* reconcile();
|
|
102
102
|
}).pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logError("failed to start location watcher", { cause })), Effect.forkScoped({ startImmediately: true }));
|
|
103
|
-
return
|
|
103
|
+
return Service2.of({});
|
|
104
104
|
}));
|
|
105
|
-
var
|
|
106
|
-
service:
|
|
105
|
+
var node2 = makeLocationNode({
|
|
106
|
+
service: Service2,
|
|
107
107
|
layer,
|
|
108
|
-
deps: [
|
|
108
|
+
deps: [node70, FSUtil.node, node83, node85, node87, node18, node8]
|
|
109
109
|
});
|
|
110
110
|
|
|
111
|
-
export {
|
|
111
|
+
export { Service2, node2, exports_location_watcher };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./shell-
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./shell-ap9eas8m.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
8
|
} from "./shell-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
10
|
key2
|
|
11
|
-
} from "./shell-
|
|
11
|
+
} from "./shell-dnxkq42g.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./shell-
|
|
13
|
+
ID14,
|
|
14
|
+
Service77,
|
|
15
|
+
node81,
|
|
16
|
+
Event18
|
|
17
|
+
} from "./shell-qpe8tk8s.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./shell-
|
|
19
|
+
Service79,
|
|
20
|
+
node83
|
|
21
|
+
} from "./shell-xp0mhm80.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
24
|
} from "./shell-9rqn6x4v.js";
|
|
@@ -37,13 +37,13 @@ var exports_provider3 = {};
|
|
|
37
37
|
__export(exports_provider3, {
|
|
38
38
|
AISDK_PREFIX: () => AISDK_PREFIX2,
|
|
39
39
|
Compaction: () => Compaction3,
|
|
40
|
-
Event: () =>
|
|
41
|
-
ID: () =>
|
|
42
|
-
Info: () =>
|
|
40
|
+
Event: () => Event17,
|
|
41
|
+
ID: () => ID13,
|
|
42
|
+
Info: () => Info27,
|
|
43
43
|
LoadError: () => LoadError3,
|
|
44
44
|
Provider: () => exports_provider3,
|
|
45
|
-
Request: () =>
|
|
46
|
-
Service: () =>
|
|
45
|
+
Request: () => Request3,
|
|
46
|
+
Service: () => Service76,
|
|
47
47
|
Settings: () => Settings2,
|
|
48
48
|
Transport: () => Transport2,
|
|
49
49
|
aisdk: () => aisdk2,
|
|
@@ -53,7 +53,7 @@ __export(exports_provider3, {
|
|
|
53
53
|
mergeOverlay: () => mergeOverlay2,
|
|
54
54
|
modelSettings: () => modelSettings2,
|
|
55
55
|
nativeSettings: () => nativeSettings2,
|
|
56
|
-
node: () =>
|
|
56
|
+
node: () => node80,
|
|
57
57
|
packageName: () => packageName2
|
|
58
58
|
});
|
|
59
59
|
import { Context, Effect, Layer, Schema, Stream, Struct } from "effect";
|
|
@@ -64,8 +64,8 @@ import { isRecord } from "@opencode/ai/utils/record";
|
|
|
64
64
|
import { importModule, resolveModule } from "@opencode/util/runtime-import";
|
|
65
65
|
import { Credential } from "@opencode/schema/credential";
|
|
66
66
|
import { freeze } from "immer";
|
|
67
|
-
import { Event as
|
|
68
|
-
var
|
|
67
|
+
import { Event as Event17 } from "@opencode/schema/provider";
|
|
68
|
+
var ID13 = Provider.ID;
|
|
69
69
|
var AISDK_PREFIX2 = "aisdk:";
|
|
70
70
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
71
71
|
var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
|
|
@@ -207,13 +207,13 @@ function mergeHeaders2(base, overlay) {
|
|
|
207
207
|
return result;
|
|
208
208
|
}, new Map).values());
|
|
209
209
|
}
|
|
210
|
-
var
|
|
210
|
+
var Request3 = Provider.Request;
|
|
211
211
|
var Compaction3 = Provider.Compaction;
|
|
212
212
|
var Transport2 = Provider.Transport;
|
|
213
213
|
var Settings2 = Provider.Settings;
|
|
214
|
-
var
|
|
214
|
+
var Info27 = Provider.Info;
|
|
215
215
|
|
|
216
|
-
class
|
|
216
|
+
class Service76 extends Context.Service()("@opencode/Provider") {
|
|
217
217
|
}
|
|
218
218
|
var definitions = new WeakMap;
|
|
219
219
|
function index(providerID, models) {
|
|
@@ -226,10 +226,10 @@ function index(providerID, models) {
|
|
|
226
226
|
definitions.set(models, indexes);
|
|
227
227
|
return result;
|
|
228
228
|
}
|
|
229
|
-
var layer = Layer.effect(
|
|
230
|
-
const bus = yield*
|
|
231
|
-
const integrations = yield*
|
|
232
|
-
const location = yield*
|
|
229
|
+
var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
230
|
+
const bus = yield* Service83;
|
|
231
|
+
const integrations = yield* Service77;
|
|
232
|
+
const location = yield* Service79;
|
|
233
233
|
const state = create3({
|
|
234
234
|
name: "provider",
|
|
235
235
|
initial: () => new Map,
|
|
@@ -240,7 +240,7 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
240
240
|
const current = records.get(id);
|
|
241
241
|
if (current)
|
|
242
242
|
return current;
|
|
243
|
-
const added = { provider:
|
|
243
|
+
const added = { provider: Info27.empty(id), models: new Map };
|
|
244
244
|
records.set(id, added);
|
|
245
245
|
maps.add(added.models);
|
|
246
246
|
return added;
|
|
@@ -321,7 +321,7 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
321
321
|
const available = Array.from(records.values()).filter((record) => {
|
|
322
322
|
if (record.provider.activation === "disabled")
|
|
323
323
|
return false;
|
|
324
|
-
const integration = byID.get(record.provider.integrationID ??
|
|
324
|
+
const integration = byID.get(record.provider.integrationID ?? ID14.make(record.provider.id));
|
|
325
325
|
if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
|
|
326
326
|
return false;
|
|
327
327
|
if (record.provider.activation === "enabled")
|
|
@@ -347,8 +347,8 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
347
347
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
348
348
|
});
|
|
349
349
|
});
|
|
350
|
-
yield* bus.subscribe([
|
|
351
|
-
return
|
|
350
|
+
yield* bus.subscribe([Event18.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
351
|
+
return Service76.of({
|
|
352
352
|
transform: state.transform,
|
|
353
353
|
reload: state.reload,
|
|
354
354
|
get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
@@ -357,7 +357,7 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
357
357
|
snapshot
|
|
358
358
|
});
|
|
359
359
|
}));
|
|
360
|
-
var
|
|
360
|
+
var node80 = makeLocationNode({ service: Service76, layer, deps: [node87, node81, node83] });
|
|
361
361
|
var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
362
362
|
const module = yield* Effect.tryPromise({
|
|
363
363
|
try: () => {
|
|
@@ -627,4 +627,4 @@ var Legacy = Schema2.StructWithRest(Schema2.Struct({
|
|
|
627
627
|
}), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
|
|
628
628
|
var decode = Schema2.decodeUnknownSync(Legacy);
|
|
629
629
|
|
|
630
|
-
export { rewrite2, native2, exports_aisdk_native,
|
|
630
|
+
export { rewrite2, native2, exports_aisdk_native, ID13, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info27, Service76, node80, exports_provider3, Event17 };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./shell-
|
|
5
|
-
import {
|
|
6
|
-
Service80,
|
|
7
|
-
node84
|
|
8
|
-
} from "./shell-1ezyexdv.js";
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./shell-ap9eas8m.js";
|
|
9
5
|
import {
|
|
10
6
|
Service79,
|
|
11
|
-
login2,
|
|
12
7
|
node83
|
|
13
|
-
} from "./shell-
|
|
8
|
+
} from "./shell-xp0mhm80.js";
|
|
9
|
+
import {
|
|
10
|
+
Service69,
|
|
11
|
+
login2,
|
|
12
|
+
node72
|
|
13
|
+
} from "./shell-k8csyqq2.js";
|
|
14
14
|
import {
|
|
15
15
|
lazy2
|
|
16
16
|
} from "./shell-88xbtdfr.js";
|
|
@@ -21,45 +21,45 @@ import {
|
|
|
21
21
|
// src/pty.ts
|
|
22
22
|
var exports_pty = {};
|
|
23
23
|
__export(exports_pty, {
|
|
24
|
-
CreateInput: () =>
|
|
25
|
-
Event: () =>
|
|
24
|
+
CreateInput: () => CreateInput2,
|
|
25
|
+
Event: () => Event6,
|
|
26
26
|
ExitedError: () => ExitedError2,
|
|
27
|
-
ID: () =>
|
|
28
|
-
Info: () =>
|
|
29
|
-
NotFoundError: () =>
|
|
27
|
+
ID: () => ID4,
|
|
28
|
+
Info: () => Info4,
|
|
29
|
+
NotFoundError: () => NotFoundError3,
|
|
30
30
|
Pty: () => exports_pty,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service23,
|
|
32
32
|
UpdateInput: () => UpdateInput2,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node26
|
|
34
34
|
});
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
36
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
37
37
|
import { Pty } from "@opencode/schema/pty";
|
|
38
|
-
import { Event as
|
|
38
|
+
import { Event as Event6 } from "@opencode/schema/pty";
|
|
39
39
|
var BUFFER_LIMIT = 1024 * 1024 * 2;
|
|
40
40
|
var EXITED_LIMIT = 25;
|
|
41
41
|
var pty = lazy2(() => import("#pty"));
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var
|
|
42
|
+
var ID4 = Pty.ID;
|
|
43
|
+
var Info4 = Pty.Info;
|
|
44
|
+
var CreateInput2 = Pty.CreateInput;
|
|
45
45
|
var UpdateInput2 = Pty.UpdateInput;
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
ptyID:
|
|
47
|
+
class NotFoundError3 extends Schema.TaggedError()("Pty.NotFoundError", {
|
|
48
|
+
ptyID: ID4
|
|
49
49
|
}) {
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
class ExitedError2 extends Schema.TaggedError()("Pty.ExitedError", {
|
|
53
|
-
ptyID:
|
|
53
|
+
ptyID: ID4
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
class
|
|
57
|
+
class Service23 extends Context.Service()("@opencode/Pty") {
|
|
58
58
|
}
|
|
59
|
-
var layer = Layer.effect(
|
|
60
|
-
const bus = yield*
|
|
61
|
-
const location = yield*
|
|
62
|
-
const shell = yield*
|
|
59
|
+
var layer = Layer.effect(Service23, Effect.gen(function* () {
|
|
60
|
+
const bus = yield* Service83;
|
|
61
|
+
const location = yield* Service79;
|
|
62
|
+
const shell = yield* Service69;
|
|
63
63
|
const context = yield* Effect.context();
|
|
64
64
|
const runFork = Effect.runForkWith(context);
|
|
65
65
|
const sessions = new Map;
|
|
@@ -96,7 +96,7 @@ var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
96
96
|
const requireSession = Effect.fn("Pty.requireSession")(function* (id) {
|
|
97
97
|
const session = sessions.get(id);
|
|
98
98
|
if (!session)
|
|
99
|
-
return yield* new
|
|
99
|
+
return yield* new NotFoundError3({ ptyID: id });
|
|
100
100
|
return session;
|
|
101
101
|
});
|
|
102
102
|
const removeSession = Effect.fnUntraced(function* (id) {
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
122
122
|
return (yield* requireSession(id)).info;
|
|
123
123
|
});
|
|
124
124
|
const create = Effect.fn("Pty.create")(function* (input) {
|
|
125
|
-
const id =
|
|
125
|
+
const id = ID4.ascending();
|
|
126
126
|
const command = input.command || (yield* shell.resolve({ priority: "config" }));
|
|
127
127
|
const args = login2(command) ? [...input.args ?? [], "-l"] : [...input.args ?? []];
|
|
128
128
|
const cwd = input.cwd || location.directory;
|
|
@@ -267,12 +267,12 @@ var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
267
267
|
}
|
|
268
268
|
};
|
|
269
269
|
});
|
|
270
|
-
return
|
|
270
|
+
return Service23.of({ list, get, create, update, remove, write, attach });
|
|
271
271
|
}));
|
|
272
|
-
var
|
|
273
|
-
service:
|
|
272
|
+
var node26 = makeLocationNode({
|
|
273
|
+
service: Service23,
|
|
274
274
|
layer,
|
|
275
|
-
deps: [
|
|
275
|
+
deps: [node87, node83, node72]
|
|
276
276
|
});
|
|
277
277
|
|
|
278
|
-
export {
|
|
278
|
+
export { ID4, Info4, CreateInput2, UpdateInput2, NotFoundError3, ExitedError2, Service23, node26, exports_pty, Event6 };
|