@opencode/core 0.0.0-dev-19445 → 0.0.0-dev-19446
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent.js +68 -68
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +54 -54
- package/dist/catalog.js +68 -68
- package/dist/chunks/{skill-vypqtakx.js → skill-00mqm9kf.js} +1 -1
- package/dist/chunks/{skill-w8bmck9y.js → skill-0222smgd.js} +8 -8
- package/dist/chunks/{skill-g2h728z9.js → skill-04q3dmd9.js} +12 -12
- package/dist/chunks/{skill-77nagcj1.js → skill-05b1y4dr.js} +3 -3
- package/dist/chunks/{skill-54azk5v8.js → skill-06p9s07g.js} +14 -14
- package/dist/chunks/{skill-2tct1jzp.js → skill-073yvgp4.js} +9 -9
- package/dist/chunks/skill-0mesazry.js +4 -0
- package/dist/chunks/{skill-nbsrer14.js → skill-0s2ms6dh.js} +7 -7
- package/dist/chunks/{skill-74fxb3hx.js → skill-0sxgj3q6.js} +27 -27
- package/dist/chunks/{skill-569emx6x.js → skill-0y5eb3hv.js} +12 -12
- package/dist/chunks/{skill-3kh4nxth.js → skill-116g6ysg.js} +4 -4
- package/dist/chunks/{skill-efv4s0g0.js → skill-15zevn5w.js} +5 -5
- package/dist/chunks/{skill-ke0nj5rp.js → skill-1ge3p48e.js} +13 -13
- package/dist/chunks/{skill-qmkj301t.js → skill-1w82hygq.js} +10 -10
- package/dist/chunks/{skill-wwgwfcvb.js → skill-1x7w021c.js} +9 -9
- package/dist/chunks/{skill-xrpmsssz.js → skill-21zrd450.js} +29 -29
- package/dist/chunks/{skill-9sfkrt92.js → skill-273bqgwm.js} +7 -7
- package/dist/chunks/{skill-93hpb89x.js → skill-2f04pwep.js} +3 -3
- package/dist/chunks/{skill-bajakh74.js → skill-2tfmgkzg.js} +2 -2
- package/dist/chunks/{skill-2a0aqbf3.js → skill-2vfz407x.js} +28 -28
- package/dist/chunks/{skill-zj92nnn3.js → skill-2y5et45e.js} +21 -21
- package/dist/chunks/{skill-sqhm951k.js → skill-37jpxhaq.js} +19 -19
- package/dist/chunks/{skill-2rebtaxk.js → skill-37tpcphx.js} +28 -28
- package/dist/chunks/{skill-5csgya9h.js → skill-38pmhpq9.js} +9 -9
- package/dist/chunks/{skill-z2k03asg.js → skill-3h5xskan.js} +3 -3
- package/dist/chunks/{skill-h2gyv3sg.js → skill-4066mr2m.js} +1 -1
- package/dist/chunks/{skill-eq3dq4k8.js → skill-427v0r19.js} +24 -24
- package/dist/chunks/{skill-mrb2npwq.js → skill-485rp6r9.js} +23 -23
- package/dist/chunks/{skill-83jwm3nn.js → skill-4gv65rh6.js} +42 -42
- package/dist/chunks/{skill-mck3kx14.js → skill-4hhf61nd.js} +26 -26
- package/dist/chunks/{skill-ke194936.js → skill-4ksjm71c.js} +12 -12
- package/dist/chunks/{skill-mhp8k6g1.js → skill-4qzgagaa.js} +11 -11
- package/dist/chunks/{skill-f222mbym.js → skill-4sjc8vp5.js} +6 -6
- package/dist/chunks/{skill-750kw9q8.js → skill-52pmyg9z.js} +21 -21
- package/dist/chunks/{skill-3bar99zz.js → skill-536cph44.js} +27 -27
- package/dist/chunks/{skill-mfqp6xfm.js → skill-56gdpj1q.js} +4 -4
- package/dist/chunks/{skill-qsdhjg7e.js → skill-58ez0xmy.js} +1 -1
- package/dist/chunks/{skill-p5y58tyb.js → skill-59y1j56r.js} +23 -23
- package/dist/chunks/{skill-a1bz86dw.js → skill-5c4hm403.js} +1 -1
- package/dist/chunks/{skill-qbvjzwtx.js → skill-5efzqhr2.js} +10 -10
- package/dist/chunks/{skill-5yc69rh5.js → skill-5f0r7wn2.js} +8 -8
- package/dist/chunks/{skill-17p6c6pg.js → skill-5g6sb6sw.js} +31 -31
- package/dist/chunks/{skill-q22h9474.js → skill-5m7j8hm9.js} +18 -18
- package/dist/chunks/{skill-0684qezx.js → skill-62a0qfn1.js} +27 -27
- package/dist/chunks/{skill-rj9vahs6.js → skill-6dd0fr5r.js} +8 -8
- package/dist/chunks/{skill-2402vzrj.js → skill-6h73sxmp.js} +4 -4
- package/dist/chunks/{skill-fznpg4cs.js → skill-6kcsr840.js} +13 -13
- package/dist/chunks/{skill-159nkw16.js → skill-6vaz6wbx.js} +22 -22
- package/dist/chunks/{skill-gmzc3tvp.js → skill-6y8mdthe.js} +14 -14
- package/dist/chunks/{skill-9vchbmew.js → skill-6yqy0e4g.js} +78 -78
- package/dist/chunks/{skill-8t1wrec1.js → skill-703jyx7f.js} +7 -7
- package/dist/chunks/{skill-gs193ymm.js → skill-748gj6gn.js} +6 -6
- package/dist/chunks/{skill-6fdj6kdr.js → skill-76myzc3f.js} +2 -2
- package/dist/chunks/{skill-vabb23s0.js → skill-79r1wrqa.js} +1 -1
- package/dist/chunks/{skill-7xxqy5w0.js → skill-7cxe0w6q.js} +1 -1
- package/dist/chunks/{skill-yezvhbqh.js → skill-827nqb10.js} +9 -9
- package/dist/chunks/{skill-2g8zypaf.js → skill-868tn2h5.js} +1 -1
- package/dist/chunks/{skill-zsj01fcb.js → skill-89vwjast.js} +2 -2
- package/dist/chunks/{skill-tcezcvh9.js → skill-89znhe33.js} +3 -3
- package/dist/chunks/{skill-nvtfdscb.js → skill-8pybqfp6.js} +20 -20
- package/dist/chunks/{skill-5kngvhex.js → skill-8xhx5x0e.js} +22 -22
- package/dist/chunks/{skill-8qvgnq7a.js → skill-8xttkpaf.js} +9 -9
- package/dist/chunks/{skill-ac65zdy3.js → skill-8y2nn4c7.js} +17 -17
- package/dist/chunks/{skill-6zv3shge.js → skill-90qmd7bg.js} +9 -9
- package/dist/chunks/{skill-ttqfmzkf.js → skill-9kt49dv5.js} +4 -4
- package/dist/chunks/{skill-0y8x77kj.js → skill-9rszdcmw.js} +10 -10
- package/dist/chunks/{skill-09ewn36v.js → skill-9z7kng03.js} +43 -43
- package/dist/chunks/{skill-4jv56v3q.js → skill-a6yex81s.js} +12 -12
- package/dist/chunks/{skill-xsjdd46p.js → skill-ahgm1r24.js} +13 -13
- package/dist/chunks/{skill-4smx262h.js → skill-ahycpabw.js} +20 -20
- package/dist/chunks/{skill-q6bhavfj.js → skill-aqrcawhr.js} +10 -10
- package/dist/chunks/{skill-fkcp8j8s.js → skill-asqmdnzm.js} +20 -20
- package/dist/chunks/{skill-mjncxbbh.js → skill-b0awdqvx.js} +8 -8
- package/dist/chunks/{skill-k23gmb4k.js → skill-b7fqsxev.js} +16 -16
- package/dist/chunks/{skill-dgdg9tc7.js → skill-ba8tn576.js} +14 -14
- package/dist/chunks/{skill-0emqaag0.js → skill-bgn62fr8.js} +7 -7
- package/dist/chunks/{skill-d1khqved.js → skill-bgxcxs0p.js} +3 -3
- package/dist/chunks/{skill-5trk58xb.js → skill-bpqahvg7.js} +6 -6
- package/dist/chunks/{skill-gygfttsz.js → skill-bsq7y6bp.js} +16 -16
- package/dist/chunks/{skill-dgwyx5ct.js → skill-bwkch31r.js} +8 -8
- package/dist/chunks/{skill-x0pta7p5.js → skill-c0e85pqa.js} +16 -16
- package/dist/chunks/{skill-rkg39e93.js → skill-c2fa0gjs.js} +10 -10
- package/dist/chunks/{skill-9k2v62xn.js → skill-c3kepfq8.js} +1 -1
- package/dist/chunks/{skill-tn0aqsam.js → skill-c78bbtc9.js} +3 -3
- package/dist/chunks/{skill-5nn1zwkw.js → skill-c7yqmbpx.js} +10 -10
- package/dist/chunks/{skill-c5db1mkp.js → skill-ccf3t0a5.js} +22 -22
- package/dist/chunks/{skill-fh1y2sqn.js → skill-cdj9q7e3.js} +13 -13
- package/dist/chunks/{skill-ghy7f12q.js → skill-cfx2hezr.js} +22 -22
- package/dist/chunks/{skill-yvevv6gs.js → skill-cjgwzec5.js} +6 -6
- package/dist/chunks/{skill-zqsq0f3p.js → skill-cq17aevt.js} +20 -20
- package/dist/chunks/{skill-qs4y937t.js → skill-cr3aetdn.js} +23 -23
- package/dist/chunks/{skill-xekzrwwc.js → skill-crptryd9.js} +7 -7
- package/dist/chunks/{skill-b6cxpadd.js → skill-cw06aj2p.js} +26 -26
- package/dist/chunks/{skill-qfkewnpy.js → skill-cwxy8s66.js} +156 -156
- package/dist/chunks/{skill-q2d40q94.js → skill-cxjx4k2f.js} +9 -9
- package/dist/chunks/{skill-v4hmzr0r.js → skill-cxv3b682.js} +7 -7
- package/dist/chunks/{skill-x145bkh2.js → skill-d2azexz5.js} +10 -10
- package/dist/chunks/{skill-v5efs57h.js → skill-d46kpj6a.js} +35 -35
- package/dist/chunks/{skill-esdnemd6.js → skill-dcj77ap2.js} +1 -1
- package/dist/chunks/{skill-9q0bw3dr.js → skill-dph9w4m5.js} +24 -24
- package/dist/chunks/{skill-k36wq3da.js → skill-dv96pvfp.js} +17 -17
- package/dist/chunks/{skill-s8n1268f.js → skill-dz69mbbk.js} +3 -3
- package/dist/chunks/{skill-xnyk9pjh.js → skill-e8mq09xw.js} +297 -297
- package/dist/chunks/{skill-t550f9t1.js → skill-eaj1djv9.js} +7 -7
- package/dist/chunks/{skill-3c1tgrea.js → skill-ecrv93z9.js} +5 -5
- package/dist/chunks/{skill-3qeevawm.js → skill-ecxazetx.js} +7 -7
- package/dist/chunks/{skill-0xn4ebw4.js → skill-eksyn7fm.js} +5 -5
- package/dist/chunks/{skill-2k8khapm.js → skill-esafk7q3.js} +4 -4
- package/dist/chunks/{skill-vbj2rye8.js → skill-ewezmb4f.js} +38 -38
- package/dist/chunks/{skill-d2waefg7.js → skill-ey3r30py.js} +14 -14
- package/dist/chunks/{skill-gdrm4bvr.js → skill-f0tca92g.js} +8 -8
- package/dist/chunks/{skill-82152e3w.js → skill-f75rfffy.js} +13 -13
- package/dist/chunks/{skill-spcqgy8q.js → skill-fbvn2b0m.js} +19 -19
- package/dist/chunks/{skill-t0r3q69e.js → skill-fdamjsg4.js} +1 -1
- package/dist/chunks/{skill-yy0nzgb9.js → skill-fdwb90kk.js} +27 -27
- package/dist/chunks/{skill-mek92vfe.js → skill-fgp06zs4.js} +42 -42
- package/dist/chunks/{skill-y15k8n5h.js → skill-fkhf9ky0.js} +20 -20
- package/dist/chunks/{skill-9hrja81v.js → skill-frzkm7eq.js} +15 -15
- package/dist/chunks/{skill-5jh55tk4.js → skill-fx4shqry.js} +30 -30
- package/dist/chunks/{skill-3f0zzcm1.js → skill-fxjtq7wv.js} +16 -16
- package/dist/chunks/{skill-bqszwq89.js → skill-g17w5wg1.js} +5 -5
- package/dist/chunks/{skill-gpx0jagy.js → skill-g5x3p52g.js} +9 -9
- package/dist/chunks/{skill-sayx4gma.js → skill-g7hsbyvn.js} +7 -7
- package/dist/chunks/{skill-q9dvbpha.js → skill-g7rz0sxb.js} +6 -6
- package/dist/chunks/{skill-jfqtm2ew.js → skill-g8d3gcyj.js} +6 -6
- package/dist/chunks/{skill-5v2brm2p.js → skill-gknhvrra.js} +4 -4
- package/dist/chunks/{skill-zb7jm7vb.js → skill-h5vwbggd.js} +9 -9
- package/dist/chunks/{skill-qd8wwfxt.js → skill-hb7yy7na.js} +7 -7
- package/dist/chunks/{skill-r916gz35.js → skill-hbf770qa.js} +14 -14
- package/dist/chunks/{skill-f828m53h.js → skill-hdnk95c8.js} +1 -1
- package/dist/chunks/{skill-kjmd8gwp.js → skill-hkj6fxjk.js} +5 -5
- package/dist/chunks/{skill-pxwpnzzr.js → skill-ht5s5k2z.js} +16 -16
- package/dist/chunks/{skill-hxx3wyh4.js → skill-hzbw9fn5.js} +13 -13
- package/dist/chunks/{skill-3xag9776.js → skill-jbyvhchy.js} +77 -77
- package/dist/chunks/{skill-7cc3npsf.js → skill-jc5zh87m.js} +15 -15
- package/dist/chunks/{skill-q803f8d7.js → skill-jcvp1ydt.js} +17 -17
- package/dist/chunks/{skill-wnetnkyw.js → skill-k3m7ejjg.js} +24 -24
- package/dist/chunks/{skill-4mqrbajh.js → skill-k5ge3013.js} +14 -14
- package/dist/chunks/{skill-yjq3nkkb.js → skill-kb1mepd1.js} +23 -23
- package/dist/chunks/{skill-xd2c2vv1.js → skill-km9mpse9.js} +13 -13
- package/dist/chunks/{skill-3trbxeqx.js → skill-kmv022h3.js} +1 -1
- package/dist/chunks/{skill-xdk9p2qn.js → skill-kvvk39gs.js} +20 -20
- package/dist/chunks/{skill-pjg9m0hw.js → skill-kw3wbhtp.js} +16 -16
- package/dist/chunks/{skill-cfpkc3c9.js → skill-m0jqrx5p.js} +1 -1
- package/dist/chunks/{skill-yjpw2tzc.js → skill-m0mxmb48.js} +23 -23
- package/dist/chunks/{skill-95rygp7c.js → skill-m2951qy5.js} +16 -16
- package/dist/chunks/{skill-6kr2w62q.js → skill-m9wbqshr.js} +1 -1
- package/dist/chunks/{skill-c88rwc6y.js → skill-mbfa63ez.js} +11 -11
- package/dist/chunks/{skill-58ax6zm2.js → skill-mpgj7yzy.js} +11 -11
- package/dist/chunks/{skill-65hfepw4.js → skill-mvqrx4s2.js} +10 -10
- package/dist/chunks/{skill-087ankfj.js → skill-n1rxvz2x.js} +21 -21
- package/dist/chunks/{skill-94rpvrjb.js → skill-n95r7dn6.js} +53 -53
- package/dist/chunks/{skill-ya625hps.js → skill-nec87jdd.js} +1 -1
- package/dist/chunks/skill-nhb97n4t.js +22 -0
- package/dist/chunks/{skill-3kmkca4m.js → skill-nrw4td2n.js} +1 -1
- package/dist/chunks/{skill-me8f61q0.js → skill-nymmp31y.js} +9 -9
- package/dist/chunks/{skill-11h1hnb3.js → skill-p1p8k1ef.js} +1 -1
- package/dist/chunks/{skill-g3n6es57.js → skill-p1wf2k30.js} +7 -7
- package/dist/chunks/{skill-7fpmdhde.js → skill-p31wqd2s.js} +16 -16
- package/dist/chunks/{skill-s7731dqm.js → skill-p72z5xx6.js} +1 -1
- package/dist/chunks/{skill-j935v87r.js → skill-paphc93g.js} +2 -2
- package/dist/chunks/{skill-nnzmab9f.js → skill-pea6dbqf.js} +49 -49
- package/dist/chunks/{skill-1x11rq2a.js → skill-pf31ssb9.js} +4 -4
- package/dist/chunks/{skill-xy649dp3.js → skill-pj4qz0sj.js} +14 -14
- package/dist/chunks/{skill-ve4pfa0n.js → skill-pmr4s4kc.js} +3 -3
- package/dist/chunks/{skill-7smsr029.js → skill-prp2s7ks.js} +2 -2
- package/dist/chunks/{skill-ktdc306a.js → skill-q2s1vy6g.js} +4 -4
- package/dist/chunks/{skill-h9k0ng18.js → skill-q7y8k7bj.js} +2 -2
- package/dist/chunks/{skill-mrw4weg4.js → skill-qcfsefxz.js} +4 -4
- package/dist/chunks/{skill-fxz1gqrt.js → skill-qfrge5cf.js} +34 -34
- package/dist/chunks/{skill-d5731q4d.js → skill-qjc9h60s.js} +7 -7
- package/dist/chunks/{skill-0ge7vg41.js → skill-qx0n0hnh.js} +8 -8
- package/dist/chunks/{skill-yp2x3t23.js → skill-r8xr0va3.js} +3 -3
- package/dist/chunks/{skill-kjcr15p7.js → skill-rfnzy394.js} +1 -1
- package/dist/chunks/{skill-nx4935gj.js → skill-rh63tm4e.js} +11 -11
- package/dist/chunks/{skill-xyf8jtay.js → skill-rrjahgq1.js} +17 -17
- package/dist/chunks/{skill-7tpxex51.js → skill-rtathh62.js} +7 -7
- package/dist/chunks/{skill-rs226bz6.js → skill-rz0qknjf.js} +5 -5
- package/dist/chunks/{skill-3cz8rj72.js → skill-s8zy8myc.js} +3 -3
- package/dist/chunks/{skill-c2bnm6k2.js → skill-sacvkn4e.js} +4 -4
- package/dist/chunks/{skill-fbcen7pp.js → skill-sd6b6aez.js} +3 -3
- package/dist/chunks/{skill-ava840jj.js → skill-skegxwkp.js} +6 -6
- package/dist/chunks/{skill-765srhpk.js → skill-smn8xsvq.js} +18 -18
- package/dist/chunks/{skill-mtcgtbpz.js → skill-snkxabjd.js} +19 -19
- package/dist/chunks/{skill-e23wa8rb.js → skill-snm4v5fs.js} +27 -27
- package/dist/chunks/{skill-yvq8v403.js → skill-sq391nww.js} +41 -41
- package/dist/chunks/{skill-y8fswwr5.js → skill-t4tq2a7p.js} +23 -23
- package/dist/chunks/{skill-84tssp1s.js → skill-t69nnh3p.js} +7 -7
- package/dist/chunks/{skill-8bajxtr2.js → skill-t97t2t7r.js} +14 -14
- package/dist/chunks/skill-taebzevr.js +247 -0
- package/dist/chunks/{skill-jefma2gq.js → skill-tdh80rdv.js} +7 -7
- package/dist/chunks/{skill-zrb5c291.js → skill-tgw0t7t4.js} +11 -11
- package/dist/chunks/{skill-em44vm4y.js → skill-tjsj89dc.js} +7 -7
- package/dist/chunks/{skill-6me79q7q.js → skill-tkr4f2t1.js} +36 -36
- package/dist/chunks/{skill-zj09a0ew.js → skill-tm7zr4pr.js} +3 -3
- package/dist/chunks/{skill-hn57h045.js → skill-ttqh24zm.js} +3 -3
- package/dist/chunks/{skill-744qmx57.js → skill-tv2zb7b5.js} +11 -11
- package/dist/chunks/{skill-tqxz2e3b.js → skill-v7cfskca.js} +20 -20
- package/dist/chunks/{skill-wrpp1wzb.js → skill-vc3kmvr8.js} +13 -13
- package/dist/chunks/{skill-mvdgtp8g.js → skill-vccwxyms.js} +8 -8
- package/dist/chunks/{skill-pkf1fw33.js → skill-vphs0ems.js} +30 -30
- package/dist/chunks/{skill-d248znmc.js → skill-vwdfkczd.js} +12 -12
- package/dist/chunks/{skill-dmtzfb09.js → skill-vy7x5tbn.js} +7 -7
- package/dist/chunks/{skill-z2jv1b0e.js → skill-w16ds23h.js} +29 -29
- package/dist/chunks/{skill-6p3xbzsx.js → skill-w1k39n5e.js} +3 -3
- package/dist/chunks/{skill-6ttajnb0.js → skill-wh6nx8gk.js} +1 -1
- package/dist/chunks/{skill-sntdf6vk.js → skill-wvx86wgz.js} +13 -13
- package/dist/chunks/{skill-02smfngn.js → skill-wzw8h0en.js} +12 -12
- package/dist/chunks/{skill-8pywjhtp.js → skill-x1hekaqh.js} +13 -13
- package/dist/chunks/{skill-qs001aqx.js → skill-xn9jxgmv.js} +9 -9
- package/dist/chunks/{skill-sst8evag.js → skill-xnc6bxth.js} +10 -10
- package/dist/chunks/{skill-68r9taqa.js → skill-xpbqh003.js} +11 -11
- package/dist/chunks/{skill-hfg1z283.js → skill-xpm1fec2.js} +7 -7
- package/dist/chunks/{skill-h671hp36.js → skill-xrsf5jnj.js} +23 -23
- package/dist/chunks/{skill-kz3xwqrn.js → skill-y16xxa45.js} +20 -20
- package/dist/chunks/{skill-t6kx061s.js → skill-y7zhbg8e.js} +18 -18
- package/dist/chunks/{skill-kev8xza3.js → skill-yattrjvx.js} +51 -51
- package/dist/chunks/{skill-ykfq2gv5.js → skill-yavve3w1.js} +9 -9
- package/dist/chunks/{skill-r1wdcgzk.js → skill-yddgxcp4.js} +3 -3
- package/dist/chunks/{skill-s4enseaf.js → skill-yrznvahk.js} +1 -1
- package/dist/chunks/{skill-29x78va6.js → skill-z63w68vq.js} +4 -4
- package/dist/chunks/{skill-fq1h1v14.js → skill-z7xj2rat.js} +3 -3
- package/dist/chunks/{skill-jg5pnb06.js → skill-z9nm54ts.js} +7 -7
- package/dist/chunks/{skill-yhkzsdkx.js → skill-zqa4xgzf.js} +4 -4
- package/dist/chunks/{skill-jw0mprhj.js → skill-ztpcpx2k.js} +32 -32
- package/dist/chunks/{skill-k5rg09kc.js → skill-zvt67h1h.js} +39 -39
- package/dist/codemode/instructions.js +8 -8
- package/dist/command.js +70 -70
- package/dist/config/discovery.js +63 -63
- package/dist/config/normalize.js +16 -16
- package/dist/config/plugin/agent.js +94 -94
- package/dist/config/plugin/command.js +177 -177
- package/dist/config/plugin/compaction.js +131 -131
- package/dist/config/plugin/formatter.js +95 -95
- package/dist/config/plugin/image.js +94 -94
- package/dist/config/plugin/instruction.js +68 -68
- package/dist/config/plugin/location-watcher.js +94 -94
- package/dist/config/plugin/mcp.js +101 -101
- package/dist/config/plugin/policy.js +93 -93
- package/dist/config/plugin/provider.js +92 -92
- package/dist/config/plugin/reference.js +96 -96
- package/dist/config/plugin/shell.js +97 -97
- package/dist/config/plugin/skill-file.js +78 -78
- package/dist/config/plugin/skill.js +115 -115
- package/dist/config/plugin/snapshot.js +94 -94
- package/dist/config/plugin/source.js +90 -90
- package/dist/config/plugin/tool-output.js +96 -96
- package/dist/config/plugin/websearch.js +94 -94
- package/dist/config/plugin/worktree.js +95 -95
- package/dist/config/variable.js +2 -2
- package/dist/config.js +99 -99
- package/dist/credential.js +68 -68
- package/dist/database/database.js +53 -53
- package/dist/database/drizzle/effect-sqlite/driver.js +9 -9
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +8 -8
- package/dist/database/drizzle/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/db.js +6 -6
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +7 -7
- package/dist/database/drizzle.js +10 -10
- package/dist/database/migration.gen.js +37 -37
- package/dist/database/migration.js +38 -38
- package/dist/database/v1-migration.bun.js +11 -11
- package/dist/effect/app-node-builder.js +238 -238
- package/dist/environment/environment.js +68 -68
- package/dist/environment/index.js +70 -70
- package/dist/event-logger.js +9 -9
- package/dist/file-access.js +81 -81
- package/dist/file-mutation.js +69 -69
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +187 -187
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +78 -78
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +14 -14
- package/dist/filesystem.js +79 -79
- package/dist/form.js +69 -69
- package/dist/formatter.js +68 -68
- package/dist/generate.js +70 -70
- package/dist/git.js +6 -6
- 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 +3 -3
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +314 -314
- package/dist/instruction-discovery.js +70 -70
- package/dist/instructions/builtins.js +62 -62
- package/dist/instructions/index.js +5 -5
- package/dist/integration.js +69 -69
- package/dist/job.js +63 -63
- package/dist/kv.js +54 -54
- package/dist/location-activity.js +57 -57
- package/dist/location-mutation.js +33 -33
- package/dist/location-service-map.js +65 -65
- package/dist/location-services.js +312 -312
- package/dist/location.js +64 -64
- package/dist/mcp/client.js +18 -18
- package/dist/mcp/index.js +77 -77
- package/dist/mcp/instructions.js +96 -96
- package/dist/mcp/stdio.js +65 -65
- package/dist/modal/models.js +3 -3
- package/dist/model-resolver.js +71 -71
- package/dist/model.js +8 -8
- package/dist/models-dev.js +71 -71
- package/dist/permission/saved.js +65 -65
- package/dist/permission/sql.js +3 -3
- package/dist/permission.js +92 -92
- package/dist/persistent-pty/index.js +69 -69
- package/dist/persistent-pty.js +57 -57
- package/dist/plugin/agent.js +79 -79
- package/dist/plugin/command.js +74 -74
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +184 -184
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +286 -286
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +60 -60
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/plan.js +79 -79
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +97 -97
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +96 -96
- package/dist/plugin/provider/cloudflare-workers-ai.js +96 -96
- package/dist/plugin/provider/configured.js +94 -94
- package/dist/plugin/provider/digitalocean.js +63 -63
- package/dist/plugin/provider/github-copilot.js +65 -65
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +61 -61
- package/dist/plugin/provider/lmstudio.js +97 -97
- package/dist/plugin/provider/modal.js +64 -64
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +97 -97
- package/dist/plugin/provider/openai.js +62 -62
- package/dist/plugin/provider/opencode.js +63 -63
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/poe.js +60 -60
- package/dist/plugin/provider/sap-ai-core.js +2 -2
- package/dist/plugin/provider/snowflake-cortex.js +96 -96
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +97 -97
- package/dist/plugin/provider/xai.js +62 -62
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +132 -132
- package/dist/plugin/sdk.js +59 -59
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +113 -113
- package/dist/plugin/supervisor.js +300 -300
- package/dist/plugin/update.js +5 -5
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +65 -65
- package/dist/plugin/vcs/hg.js +65 -65
- package/dist/plugin/warming.js +92 -92
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +7 -7
- 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.js +195 -195
- package/dist/project/sql.js +2 -2
- package/dist/project.js +65 -65
- package/dist/provider.js +7 -7
- package/dist/pty/schema.js +3 -3
- package/dist/pty.js +77 -77
- package/dist/reference/instructions.js +69 -69
- package/dist/reference.js +69 -69
- package/dist/repository-cache.js +62 -62
- package/dist/repository.js +3 -3
- package/dist/ripgrep.js +72 -72
- package/dist/rpc.js +65 -65
- package/dist/session/command.js +59 -59
- package/dist/session/compaction.js +105 -105
- package/dist/session/context.js +123 -123
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +6 -6
- package/dist/session/execution/restart.js +122 -122
- package/dist/session/execution.js +104 -104
- package/dist/session/generate.js +122 -122
- package/dist/session/history.js +11 -11
- package/dist/session/inbox.js +69 -69
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +62 -62
- package/dist/session/instruction-state.js +5 -5
- package/dist/session/instructions.js +74 -74
- package/dist/session/message-updater.js +3 -3
- package/dist/session/model-request.js +92 -92
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +107 -107
- package/dist/session/projector.js +66 -66
- package/dist/session/prompt.js +81 -81
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +67 -67
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +192 -192
- package/dist/session/runner/model.js +71 -71
- package/dist/session/runner/retry.js +90 -90
- package/dist/session/runner/step.js +97 -97
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +145 -145
- package/dist/session/shell.js +107 -107
- package/dist/session/skill.js +80 -80
- package/dist/session/sql.js +3 -3
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +68 -68
- package/dist/session/subagent-job.js +176 -176
- package/dist/session/title.js +122 -122
- package/dist/session/to-session-error.js +89 -89
- package/dist/session/transfer.js +119 -119
- package/dist/session.js +187 -187
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +5 -5
- package/dist/shell.js +110 -110
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +84 -84
- package/dist/skill.js +87 -87
- package/dist/snapshot.js +68 -68
- package/dist/tool/mcp.js +99 -99
- package/dist/tool/plugin/edit.js +90 -90
- package/dist/tool/plugin/glob.js +99 -99
- package/dist/tool/plugin/grep.js +95 -95
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +92 -92
- package/dist/tool/plugin/question.js +80 -80
- package/dist/tool/plugin/read.js +100 -100
- package/dist/tool/plugin/shell.js +184 -184
- package/dist/tool/plugin/skill.js +88 -88
- package/dist/tool/plugin/subagent.js +183 -183
- package/dist/tool/plugin/webfetch.js +87 -87
- package/dist/tool/plugin/websearch.js +85 -85
- package/dist/tool/plugin/write.js +96 -96
- package/dist/tool/read-filesystem.js +75 -75
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +11 -11
- package/dist/v1/config/agent.js +6 -6
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +13 -13
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/formatter.js +7 -7
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +3 -3
- 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/vcs.js +68 -68
- package/dist/websearch.js +65 -65
- package/dist/wellknown/plugin.js +59 -59
- package/dist/wellknown.js +62 -62
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +65 -65
- package/dist/worktree/git.js +3 -3
- package/dist/worktree/refresh.js +303 -303
- package/dist/worktree/sql.js +3 -3
- package/dist/worktree.js +73 -73
- package/package.json +8 -8
- package/dist/chunks/skill-cfqbggmt.js +0 -22
- package/dist/chunks/skill-hr9dp009.js +0 -4
- package/dist/chunks/skill-y3cz5npg.js +0 -247
- /package/dist/chunks/{skill-8p4f9s12.js → skill-dj2t23y0.js} +0 -0
- /package/dist/chunks/{skill-1mt8ffwy.js → skill-m16b28xc.js} +0 -0
- /package/dist/chunks/{skill-m6n84c8c.js → skill-nhnj3r8x.js} +0 -0
- /package/dist/chunks/{skill-9xkh5xjy.js → skill-sqvf8rgk.js} +0 -0
- /package/dist/chunks/{skill-qa7075pb.js → skill-x6pyv2yz.js} +0 -0
|
@@ -5,28 +5,28 @@ import {
|
|
|
5
5
|
RelativePath2
|
|
6
6
|
} from "./skill-922hggd3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./skill-
|
|
8
|
+
Service71
|
|
9
|
+
} from "./skill-f75rfffy.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./skill-
|
|
11
|
+
Service49
|
|
12
|
+
} from "./skill-snkxabjd.js";
|
|
13
13
|
import {
|
|
14
14
|
InvalidPatternError2,
|
|
15
|
-
|
|
16
|
-
} from "./skill-
|
|
15
|
+
Service39
|
|
16
|
+
} from "./skill-frzkm7eq.js";
|
|
17
17
|
import {
|
|
18
18
|
DEFAULT_SEARCH_LIMIT2,
|
|
19
19
|
DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
20
20
|
GrepInput2,
|
|
21
|
-
|
|
21
|
+
Entry4,
|
|
22
22
|
Match2
|
|
23
|
-
} from "./skill-
|
|
23
|
+
} from "./skill-m0mxmb48.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./skill-
|
|
25
|
+
Service66
|
|
26
|
+
} from "./skill-n95r7dn6.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./skill-
|
|
28
|
+
Service51
|
|
29
|
+
} from "./skill-kw3wbhtp.js";
|
|
30
30
|
import {
|
|
31
31
|
__export
|
|
32
32
|
} from "./skill-9rqn6x4v.js";
|
|
@@ -36,10 +36,10 @@ var exports_grep = {};
|
|
|
36
36
|
__export(exports_grep, {
|
|
37
37
|
GrepTool: () => exports_grep,
|
|
38
38
|
Input: () => Input5,
|
|
39
|
-
Output: () =>
|
|
40
|
-
Plugin: () =>
|
|
39
|
+
Output: () => Output3,
|
|
40
|
+
Plugin: () => Plugin6,
|
|
41
41
|
name: () => name5,
|
|
42
|
-
toModelContent: () =>
|
|
42
|
+
toModelContent: () => toModelContent3
|
|
43
43
|
});
|
|
44
44
|
import { ToolFailure } from "@opencode/ai";
|
|
45
45
|
import { Effect, Schema } from "effect";
|
|
@@ -65,8 +65,8 @@ var Input5 = Schema.Struct({
|
|
|
65
65
|
description: `Maximum number of matching lines to return (default: ${DEFAULT_SEARCH_LIMIT2})`
|
|
66
66
|
})
|
|
67
67
|
});
|
|
68
|
-
var
|
|
69
|
-
var
|
|
68
|
+
var Output3 = Schema.Array(Match2);
|
|
69
|
+
var toModelContent3 = (matches, truncated = false) => {
|
|
70
70
|
const lines = matches.length === 0 ? ["No matches found"] : [`Found ${matches.length} matches`];
|
|
71
71
|
let current = "";
|
|
72
72
|
for (const match of matches) {
|
|
@@ -83,20 +83,20 @@ var toModelContent2 = (matches, truncated = false) => {
|
|
|
83
83
|
return lines.join(`
|
|
84
84
|
`);
|
|
85
85
|
};
|
|
86
|
-
var
|
|
86
|
+
var Plugin6 = {
|
|
87
87
|
id: "opencode.tool.grep",
|
|
88
88
|
effect: Effect.fn("GrepTool.Plugin")(function* (ctx) {
|
|
89
|
-
const environment = yield*
|
|
90
|
-
const ripgrep = yield*
|
|
91
|
-
const location = yield*
|
|
92
|
-
const access = yield*
|
|
93
|
-
const permission = yield*
|
|
89
|
+
const environment = yield* Service49;
|
|
90
|
+
const ripgrep = yield* Service39;
|
|
91
|
+
const location = yield* Service71;
|
|
92
|
+
const access = yield* Service51;
|
|
93
|
+
const permission = yield* Service66;
|
|
94
94
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
95
95
|
name: name5,
|
|
96
96
|
options: { codemode: false },
|
|
97
97
|
description: "Search file contents using ripgrep's regular expression syntax or literal text matching. Use it to locate specific code, symbols, or text patterns, and narrow searches with `path` or `include`. Returns matching file paths, line numbers, and line previews.",
|
|
98
98
|
input: Input5,
|
|
99
|
-
output:
|
|
99
|
+
output: Output3,
|
|
100
100
|
execute: (input, context) => Effect.gen(function* () {
|
|
101
101
|
const source = { type: "tool", messageID: context.messageID, id: context.id };
|
|
102
102
|
const target = yield* access.resolve({ path: input.path ?? "." });
|
|
@@ -136,7 +136,7 @@ var Plugin36 = {
|
|
|
136
136
|
}))
|
|
137
137
|
}), Effect.map((result) => result.map((match) => Match2.make({
|
|
138
138
|
...match,
|
|
139
|
-
entry:
|
|
139
|
+
entry: Entry4.make({
|
|
140
140
|
...match.entry,
|
|
141
141
|
path: RelativePath2.make(path.relative(location.directory, path.resolve(cwd, match.entry.path)))
|
|
142
142
|
})
|
|
@@ -144,7 +144,7 @@ var Plugin36 = {
|
|
|
144
144
|
return { matches: matches.slice(0, limit), truncated: matches.length > limit };
|
|
145
145
|
}).pipe(Effect.map((result) => ({
|
|
146
146
|
output: result.matches,
|
|
147
|
-
content:
|
|
147
|
+
content: toModelContent3(result.matches.map((match) => ({
|
|
148
148
|
...match,
|
|
149
149
|
entry: { ...match.entry, path: path.resolve(location.directory, match.entry.path) }
|
|
150
150
|
})), result.truncated),
|
|
@@ -154,4 +154,4 @@ var Plugin36 = {
|
|
|
154
154
|
})
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
-
export { name5, Input5,
|
|
157
|
+
export { name5, Input5, Output3, toModelContent3, Plugin6, exports_grep };
|
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
} from "./skill-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
latest2,
|
|
6
|
-
|
|
7
|
-
} from "./skill-
|
|
6
|
+
Service34
|
|
7
|
+
} from "./skill-4gv65rh6.js";
|
|
8
8
|
import {
|
|
9
9
|
typeFollowing2
|
|
10
10
|
} from "./skill-2a5m3afh.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./skill-
|
|
12
|
+
Service49
|
|
13
|
+
} from "./skill-snkxabjd.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./skill-
|
|
15
|
+
Service63
|
|
16
|
+
} from "./skill-4qzgagaa.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./skill-
|
|
18
|
+
Service66
|
|
19
|
+
} from "./skill-n95r7dn6.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
Service51,
|
|
22
22
|
resolvePath2
|
|
23
|
-
} from "./skill-
|
|
23
|
+
} from "./skill-kw3wbhtp.js";
|
|
24
24
|
import {
|
|
25
25
|
output2,
|
|
26
26
|
notice2,
|
|
@@ -28,35 +28,35 @@ import {
|
|
|
28
28
|
notification2
|
|
29
29
|
} from "./skill-fxbjtjnd.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
Service78,
|
|
32
32
|
name15
|
|
33
|
-
} from "./skill-
|
|
33
|
+
} from "./skill-qx0n0hnh.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} from "./skill-
|
|
35
|
+
NotFoundError4,
|
|
36
|
+
Service30
|
|
37
|
+
} from "./skill-9z7kng03.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./skill-
|
|
39
|
+
Service15
|
|
40
|
+
} from "./skill-jbyvhchy.js";
|
|
41
41
|
import {
|
|
42
42
|
scan2
|
|
43
|
-
} from "./skill-
|
|
43
|
+
} from "./skill-wh6nx8gk.js";
|
|
44
44
|
import {
|
|
45
45
|
__export
|
|
46
46
|
} from "./skill-9rqn6x4v.js";
|
|
47
47
|
|
|
48
48
|
// src/tool/plugin/shell.ts
|
|
49
|
-
var
|
|
50
|
-
__export(
|
|
49
|
+
var exports_shell = {};
|
|
50
|
+
__export(exports_shell, {
|
|
51
51
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS2,
|
|
52
|
-
Input: () =>
|
|
53
|
-
Plugin: () =>
|
|
54
|
-
ShellTool: () =>
|
|
55
|
-
name: () =>
|
|
52
|
+
Input: () => Input4,
|
|
53
|
+
Plugin: () => Plugin5,
|
|
54
|
+
ShellTool: () => exports_shell,
|
|
55
|
+
name: () => name4
|
|
56
56
|
});
|
|
57
57
|
import { ToolFailure } from "@opencode/ai";
|
|
58
58
|
import { Deferred, Effect, Schema, Scope } from "effect";
|
|
59
|
-
var
|
|
59
|
+
var name4 = "shell";
|
|
60
60
|
var DEFAULT_TIMEOUT_MS2 = 2 * 60 * 1000;
|
|
61
61
|
var BACKGROUND_INSTRUCTION = "You will be notified automatically when the command finishes. The notification will include the command's output. Unless the user explicitly asks otherwise, DO NOT poll for completion, even if you need the final result to continue. Repeatedly sleeping and reading or searching the output file is polling, not useful work. You may read the current output if it lets you do useful work now, but do not repeatedly check it while waiting for the command to finish. Keep working on anything that does not depend on the result. If you have nothing else to do, end your response; you will be resumed automatically when the command finishes.";
|
|
62
62
|
var OS = process.platform === "darwin" ? "macOS" : process.platform === "win32" ? "Windows" : process.platform === "linux" ? "Linux" : process.platform;
|
|
@@ -70,7 +70,7 @@ var description = (shell) => [
|
|
|
70
70
|
"Commands accept an optional timeout, background commands have no timeout by default.",
|
|
71
71
|
"Background commands return immediately, and you will be notified when they complete."
|
|
72
72
|
].join(" ");
|
|
73
|
-
var
|
|
73
|
+
var Input4 = Schema.Struct({
|
|
74
74
|
command: Schema.String.annotate({ description: "Shell command string to execute" }),
|
|
75
75
|
workdir: Schema.optionalKey(Schema.String).annotate({
|
|
76
76
|
description: "Working directory to execute the command in. Defaults to the current working directory. When possible, avoid changing directories in the command and set the working directory here instead."
|
|
@@ -115,19 +115,19 @@ Output is streaming to: ${file}`,
|
|
|
115
115
|
truncated: false,
|
|
116
116
|
status: "running"
|
|
117
117
|
});
|
|
118
|
-
var
|
|
118
|
+
var Plugin5 = {
|
|
119
119
|
id: "opencode.tool.shell",
|
|
120
120
|
effect: Effect.fn("ShellTool.Plugin")(function* (ctx) {
|
|
121
|
-
const sessions = yield*
|
|
122
|
-
const jobs = yield*
|
|
121
|
+
const sessions = yield* Service15;
|
|
122
|
+
const jobs = yield* Service63;
|
|
123
123
|
const scope = yield* Scope.Scope;
|
|
124
|
-
const environment = yield*
|
|
125
|
-
const access = yield*
|
|
126
|
-
const shell = yield*
|
|
127
|
-
const shellSelect = yield*
|
|
124
|
+
const environment = yield* Service49;
|
|
125
|
+
const access = yield* Service51;
|
|
126
|
+
const shell = yield* Service30;
|
|
127
|
+
const shellSelect = yield* Service78;
|
|
128
128
|
const compatibleShell = shellSelect.resolve({ priority: "compat" });
|
|
129
|
-
const permission = yield*
|
|
130
|
-
const config = yield*
|
|
129
|
+
const permission = yield* Service66;
|
|
130
|
+
const config = yield* Service34;
|
|
131
131
|
const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
|
|
132
132
|
const source = {
|
|
133
133
|
type: "tool",
|
|
@@ -146,7 +146,7 @@ var Plugin33 = {
|
|
|
146
146
|
yield* access.authorizeExternal([target, ...directories], context);
|
|
147
147
|
if (parsed.commands.length > 0)
|
|
148
148
|
yield* permission.assert({
|
|
149
|
-
action:
|
|
149
|
+
action: name4,
|
|
150
150
|
resources: parsed.commands.map((command) => command.resource),
|
|
151
151
|
save: parsed.commands.map((command) => command.save),
|
|
152
152
|
sessionID: context.sessionID,
|
|
@@ -183,10 +183,10 @@ var Plugin33 = {
|
|
|
183
183
|
yield* jobs.completeBackground(info.notificationID);
|
|
184
184
|
}, Effect.forkIn(scope, { startImmediately: true }));
|
|
185
185
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
186
|
-
name:
|
|
186
|
+
name: name4,
|
|
187
187
|
options: { codemode: false },
|
|
188
188
|
description: description(),
|
|
189
|
-
input:
|
|
189
|
+
input: Input4,
|
|
190
190
|
output: Output,
|
|
191
191
|
execute: (input, context) => Effect.gen(function* () {
|
|
192
192
|
const timeout = input.background === true ? input.timeout ?? 0 : input.timeout ?? DEFAULT_TIMEOUT_MS2;
|
|
@@ -205,7 +205,7 @@ var Plugin33 = {
|
|
|
205
205
|
const run = Effect.gen(function* () {
|
|
206
206
|
const result = yield* shell.result(info);
|
|
207
207
|
if (!result.capture)
|
|
208
|
-
return yield* new
|
|
208
|
+
return yield* new NotFoundError4({ id: info.id });
|
|
209
209
|
const output = output2(result);
|
|
210
210
|
return {
|
|
211
211
|
...output,
|
|
@@ -219,7 +219,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
219
219
|
`)), Effect.onInterrupt(() => shell.remove(info.id).pipe(Effect.ignore)));
|
|
220
220
|
const job = yield* jobs.start({
|
|
221
221
|
id: info.id,
|
|
222
|
-
type:
|
|
222
|
+
type: name4,
|
|
223
223
|
title: info.command,
|
|
224
224
|
metadata: { sessionID: context.sessionID, shellID: info.id },
|
|
225
225
|
recovery: {
|
|
@@ -249,7 +249,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
249
249
|
}).pipe(Effect.map(toolResult), Effect.mapError((error) => new ToolFailure({ message: `Unable to execute command: ${input.command}`, error })))
|
|
250
250
|
})).pipe(Effect.orDie);
|
|
251
251
|
yield* ctx.session.hook("context", (event) => Effect.gen(function* () {
|
|
252
|
-
const tool = event.tools[
|
|
252
|
+
const tool = event.tools[name4];
|
|
253
253
|
if (!tool)
|
|
254
254
|
return;
|
|
255
255
|
tool.description = description(name15(yield* compatibleShell));
|
|
@@ -257,4 +257,4 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
257
257
|
})
|
|
258
258
|
};
|
|
259
259
|
|
|
260
|
-
export {
|
|
260
|
+
export { name4, DEFAULT_TIMEOUT_MS2, Input4, Plugin5, exports_shell };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Key4,
|
|
3
3
|
removed2,
|
|
4
4
|
empty3,
|
|
5
|
-
|
|
5
|
+
make21,
|
|
6
6
|
diffByKey2
|
|
7
|
-
} from "./skill-
|
|
7
|
+
} from "./skill-eaj1djv9.js";
|
|
8
8
|
import {
|
|
9
9
|
evaluate2
|
|
10
|
-
} from "./skill-
|
|
10
|
+
} from "./skill-n95r7dn6.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./skill-
|
|
12
|
+
Service27,
|
|
13
|
+
node31
|
|
14
|
+
} from "./skill-sq391nww.js";
|
|
15
15
|
import {
|
|
16
16
|
namespace2,
|
|
17
|
-
|
|
18
|
-
} from "./skill-
|
|
17
|
+
name13
|
|
18
|
+
} from "./skill-2vfz407x.js";
|
|
19
19
|
import {
|
|
20
20
|
__export
|
|
21
21
|
} from "./skill-9rqn6x4v.js";
|
|
@@ -24,9 +24,9 @@ import {
|
|
|
24
24
|
var exports_instructions3 = {};
|
|
25
25
|
__export(exports_instructions3, {
|
|
26
26
|
McpInstructions: () => exports_instructions3,
|
|
27
|
-
Service: () =>
|
|
27
|
+
Service: () => Service19,
|
|
28
28
|
layer: () => layer9,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node24
|
|
30
30
|
});
|
|
31
31
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
32
32
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -62,17 +62,17 @@ var update = (previous, current) => {
|
|
|
62
62
|
`);
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
-
class
|
|
65
|
+
class Service19 extends Context.Service()("@opencode/McpInstructions") {
|
|
66
66
|
}
|
|
67
|
-
var layer9 = Layer.effect(
|
|
68
|
-
const mcp = yield*
|
|
69
|
-
return
|
|
67
|
+
var layer9 = Layer.effect(Service19, Effect.gen(function* () {
|
|
68
|
+
const mcp = yield* Service27;
|
|
69
|
+
return Service19.of({
|
|
70
70
|
load: Effect.fn("McpInstructions.load")(function* (selection) {
|
|
71
71
|
const agent = selection.info;
|
|
72
72
|
if (!agent)
|
|
73
73
|
return empty3;
|
|
74
|
-
const source = (value) =>
|
|
75
|
-
key:
|
|
74
|
+
const source = (value) => make21({
|
|
75
|
+
key: Key4.make("core/mcp-guidance"),
|
|
76
76
|
codec: Schema.toCodecJson(Schema.Array(Summary)),
|
|
77
77
|
read: Effect.succeed(value),
|
|
78
78
|
render: {
|
|
@@ -90,7 +90,7 @@ var layer9 = Layer.effect(Service21, Effect.gen(function* () {
|
|
|
90
90
|
const codemode = owned[0]?.codemode !== false;
|
|
91
91
|
if (codemode && !canExecute)
|
|
92
92
|
return [];
|
|
93
|
-
if (!owned.some((tool) => evaluate2(
|
|
93
|
+
if (!owned.some((tool) => evaluate2(name13(tool.server, tool.name), "*", agent.permissions).effect !== "deny"))
|
|
94
94
|
return [];
|
|
95
95
|
return [
|
|
96
96
|
codemode ? { server: item.server, instructions: item.instructions } : { server: item.server, instructions: item.instructions, codemode: false }
|
|
@@ -100,6 +100,6 @@ var layer9 = Layer.effect(Service21, Effect.gen(function* () {
|
|
|
100
100
|
})
|
|
101
101
|
});
|
|
102
102
|
}));
|
|
103
|
-
var
|
|
103
|
+
var node24 = makeLocationNode({ service: Service19, layer: layer9, deps: [node31] });
|
|
104
104
|
|
|
105
|
-
export {
|
|
105
|
+
export { Service19, layer9, node24, exports_instructions3 };
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
RelativePath2
|
|
5
5
|
} from "./skill-922hggd3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./skill-
|
|
7
|
+
Service49,
|
|
8
|
+
node54
|
|
9
|
+
} from "./skill-snkxabjd.js";
|
|
10
10
|
import {
|
|
11
11
|
RipgrepBinary2
|
|
12
12
|
} from "./skill-8d7r5vzw.js";
|
|
@@ -17,11 +17,11 @@ import {
|
|
|
17
17
|
// src/ripgrep.ts
|
|
18
18
|
var exports_ripgrep = {};
|
|
19
19
|
__export(exports_ripgrep, {
|
|
20
|
-
Error: () =>
|
|
20
|
+
Error: () => Error3,
|
|
21
21
|
InvalidPatternError: () => InvalidPatternError2,
|
|
22
22
|
Ripgrep: () => exports_ripgrep,
|
|
23
|
-
Service: () =>
|
|
24
|
-
node: () =>
|
|
23
|
+
Service: () => Service39,
|
|
24
|
+
node: () => node43
|
|
25
25
|
});
|
|
26
26
|
import { Context, Effect, Fiber, Layer, Schema, Stream } from "effect";
|
|
27
27
|
import { ChildProcess } from "effect/unstable/process";
|
|
@@ -46,7 +46,7 @@ var RawMatch = Schema.Struct({
|
|
|
46
46
|
});
|
|
47
47
|
var decodeJsonRecord = Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.Unknown));
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class Error3 extends Schema.TaggedError()("Ripgrep.Error", {
|
|
50
50
|
message: Schema.String,
|
|
51
51
|
cause: Schema.optional(Schema.Defect())
|
|
52
52
|
}) {
|
|
@@ -58,13 +58,13 @@ class InvalidPatternError2 extends Schema.TaggedError()("Ripgrep.InvalidPatternE
|
|
|
58
58
|
}) {
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
class
|
|
61
|
+
class Service39 extends Context.Service()("@opencode/Ripgrep") {
|
|
62
62
|
}
|
|
63
|
-
var failure = (message, cause) => new
|
|
63
|
+
var failure = (message, cause) => new Error3({ message, cause });
|
|
64
64
|
var normalizePath = (value) => value.replace(/^(?:\.[\\/])+/u, "").replace(/^[\\/]+/u, "").replaceAll("\\", "/");
|
|
65
65
|
var isInvalidPattern = (stderr) => stderr.includes("regex parse error") || stderr.includes("error parsing regex");
|
|
66
|
-
var layer = Layer.effect(
|
|
67
|
-
const environment = yield*
|
|
66
|
+
var layer = Layer.effect(Service39, Effect.gen(function* () {
|
|
67
|
+
const environment = yield* Service49;
|
|
68
68
|
const binary = yield* RipgrepBinary2.Service;
|
|
69
69
|
const run = (input) => {
|
|
70
70
|
const program = Effect.scoped(Effect.gen(function* () {
|
|
@@ -90,9 +90,9 @@ var layer = Layer.effect(Service50, Effect.gen(function* () {
|
|
|
90
90
|
return code === 1 ? [] : rows;
|
|
91
91
|
}));
|
|
92
92
|
const abortable = input.signal ? program.pipe(Effect.raceFirst(waitForAbort(input.signal))) : program;
|
|
93
|
-
return abortable.pipe(Effect.mapError((cause) => cause instanceof
|
|
93
|
+
return abortable.pipe(Effect.mapError((cause) => cause instanceof Error3 || cause instanceof InvalidPatternError2 ? cause : failure("ripgrep execution failed", cause)));
|
|
94
94
|
};
|
|
95
|
-
return
|
|
95
|
+
return Service39.of({
|
|
96
96
|
glob: (input) => run({
|
|
97
97
|
cwd: input.cwd,
|
|
98
98
|
limit: input.limit,
|
|
@@ -175,6 +175,6 @@ var layer = Layer.effect(Service50, Effect.gen(function* () {
|
|
|
175
175
|
}))))
|
|
176
176
|
});
|
|
177
177
|
}));
|
|
178
|
-
var
|
|
178
|
+
var node43 = makeLocationNode({ service: Service39, layer, deps: [node54, RipgrepBinary2.node] });
|
|
179
179
|
|
|
180
|
-
export {
|
|
180
|
+
export { Error3, InvalidPatternError2, Service39, node43, exports_ripgrep };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./skill-
|
|
2
|
+
Service49
|
|
3
|
+
} from "./skill-snkxabjd.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
Service48,
|
|
6
6
|
readText2,
|
|
7
7
|
syncTextBom2
|
|
8
|
-
} from "./skill-
|
|
8
|
+
} from "./skill-tgw0t7t4.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./skill-
|
|
10
|
+
Service36
|
|
11
|
+
} from "./skill-m2951qy5.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./skill-
|
|
13
|
+
Service66
|
|
14
|
+
} from "./skill-n95r7dn6.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./skill-
|
|
16
|
+
Service51
|
|
17
|
+
} from "./skill-kw3wbhtp.js";
|
|
18
18
|
import {
|
|
19
19
|
fileDiff2
|
|
20
20
|
} from "./skill-6prwharc.js";
|
|
@@ -25,48 +25,48 @@ import {
|
|
|
25
25
|
// src/tool/plugin/write.ts
|
|
26
26
|
var exports_write = {};
|
|
27
27
|
__export(exports_write, {
|
|
28
|
-
Input: () =>
|
|
29
|
-
Output: () =>
|
|
30
|
-
Plugin: () =>
|
|
28
|
+
Input: () => Input2,
|
|
29
|
+
Output: () => Output2,
|
|
30
|
+
Plugin: () => Plugin3,
|
|
31
31
|
WriteTool: () => exports_write,
|
|
32
|
-
name: () =>
|
|
33
|
-
toModelContent: () =>
|
|
32
|
+
name: () => name2,
|
|
33
|
+
toModelContent: () => toModelContent2
|
|
34
34
|
});
|
|
35
35
|
import { ToolFailure } from "@opencode/ai";
|
|
36
36
|
import { Effect, Schema } from "effect";
|
|
37
37
|
import { Bom } from "@opencode/util/bom";
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var name2 = "write";
|
|
39
|
+
var Input2 = Schema.Struct({
|
|
40
40
|
path: Schema.String.annotate({
|
|
41
41
|
description: "Path to the file to write to"
|
|
42
42
|
}),
|
|
43
43
|
content: Schema.String.annotate({ description: "Content to write to the file" })
|
|
44
44
|
});
|
|
45
|
-
var
|
|
45
|
+
var Output2 = Schema.Struct({
|
|
46
46
|
operation: Schema.Literal("write"),
|
|
47
47
|
target: Schema.String,
|
|
48
48
|
resource: Schema.String,
|
|
49
49
|
existed: Schema.Boolean
|
|
50
50
|
});
|
|
51
|
-
var
|
|
52
|
-
var
|
|
51
|
+
var toModelContent2 = (output) => `${output.existed ? "Wrote" : "Created"} file successfully: ${output.resource}`;
|
|
52
|
+
var Plugin3 = {
|
|
53
53
|
id: "opencode.tool.write",
|
|
54
54
|
effect: Effect.fn("WriteTool.Plugin")(function* (ctx) {
|
|
55
|
-
const access = yield*
|
|
56
|
-
const fileMutation = yield*
|
|
57
|
-
const environment = yield*
|
|
58
|
-
const formatter = yield*
|
|
59
|
-
const permission = yield*
|
|
55
|
+
const access = yield* Service51;
|
|
56
|
+
const fileMutation = yield* Service48;
|
|
57
|
+
const environment = yield* Service49;
|
|
58
|
+
const formatter = yield* Service36;
|
|
59
|
+
const permission = yield* Service66;
|
|
60
60
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
61
|
-
name:
|
|
61
|
+
name: name2,
|
|
62
62
|
options: { codemode: false, permission: "edit" },
|
|
63
63
|
description: `Writes a file to the local filesystem, overwriting if one exists.
|
|
64
64
|
|
|
65
65
|
Missing parent directories are created automatically.
|
|
66
66
|
|
|
67
67
|
Use this tool to create new files or overwrite existing files. For partial changes, use the edit tool instead.`,
|
|
68
|
-
input:
|
|
69
|
-
output:
|
|
68
|
+
input: Input2,
|
|
69
|
+
output: Output2,
|
|
70
70
|
execute: (input, context) => Effect.gen(function* () {
|
|
71
71
|
const source = {
|
|
72
72
|
type: "tool",
|
|
@@ -93,9 +93,9 @@ Use this tool to create new files or overwrite existing files. For partial chang
|
|
|
93
93
|
yield* syncTextBom2(environment.files, target.absolute, bom);
|
|
94
94
|
}
|
|
95
95
|
return result;
|
|
96
|
-
}).pipe(Effect.map((output) => ({ output, content:
|
|
96
|
+
}).pipe(Effect.map((output) => ({ output, content: toModelContent2(output) })), Effect.mapError((error) => new ToolFailure({ message: `Unable to write ${input.path}`, error })))
|
|
97
97
|
})).pipe(Effect.orDie);
|
|
98
98
|
})
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
export {
|
|
101
|
+
export { name2, Input2, Output2, toModelContent2, Plugin3, exports_write };
|
|
@@ -2,25 +2,25 @@ import {
|
|
|
2
2
|
AbsolutePath2
|
|
3
3
|
} from "./skill-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Info26,
|
|
6
|
+
ID12,
|
|
7
7
|
Name2
|
|
8
|
-
} from "./skill-
|
|
8
|
+
} from "./skill-v7cfskca.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./skill-
|
|
10
|
+
Service34
|
|
11
|
+
} from "./skill-4gv65rh6.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
14
|
} from "./skill-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/plugin/skill.ts
|
|
17
|
-
var
|
|
18
|
-
__export(
|
|
17
|
+
var exports_skill3 = {};
|
|
18
|
+
__export(exports_skill3, {
|
|
19
19
|
OpencodeContent: () => OpencodeContent2,
|
|
20
20
|
OpencodeDescription: () => OpencodeDescription2,
|
|
21
|
-
Plugin: () =>
|
|
21
|
+
Plugin: () => Plugin43,
|
|
22
22
|
ReportContent: () => ReportContent2,
|
|
23
|
-
SkillPlugin: () =>
|
|
23
|
+
SkillPlugin: () => exports_skill3
|
|
24
24
|
});
|
|
25
25
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
26
26
|
import { Effect } from "effect";
|
|
@@ -422,20 +422,20 @@ var OpencodeContent2 = opencode_default;
|
|
|
422
422
|
var ReportContent2 = report_default;
|
|
423
423
|
var OpencodeDescription2 = "Use this skill for any question about OpenCode itself, including how OpenCode works, using or configuring it, migrating from V1 to V2, troubleshooting it, developing plugins or integrations, using the OpenCode SDK, clients, server, or API, and contributing to the OpenCode codebase. Also use it for OpenCode agents, commands, skills, tools, permissions, MCP servers, providers, models, themes, keybinds, formatters, the CLI, TUI, desktop app, and web app.";
|
|
424
424
|
var REPORT_DESCRIPTION = "Use when the user wants to report an opencode issue or bug. Collect standard diagnostics, add user-specific reproduction context, and publish the issue with GitHub CLI.";
|
|
425
|
-
var
|
|
425
|
+
var Plugin43 = define({
|
|
426
426
|
id: "opencode.skill",
|
|
427
427
|
effect: Effect.fn(function* (ctx) {
|
|
428
428
|
const reportContent = yield* reportContentWithDiagnostics(ctx.app);
|
|
429
429
|
yield* ctx.skill.transform((editor) => {
|
|
430
|
-
editor.add(
|
|
431
|
-
id:
|
|
430
|
+
editor.add(Info26.make({
|
|
431
|
+
id: ID12.make("opencode"),
|
|
432
432
|
name: Name2.make("OpenCode"),
|
|
433
433
|
description: OpencodeDescription2,
|
|
434
434
|
location: AbsolutePath2.make("/builtin/opencode.md"),
|
|
435
435
|
content: OpencodeContent2
|
|
436
436
|
}));
|
|
437
|
-
editor.add(
|
|
438
|
-
id:
|
|
437
|
+
editor.add(Info26.make({
|
|
438
|
+
id: ID12.make("report"),
|
|
439
439
|
name: Name2.make("Report"),
|
|
440
440
|
description: REPORT_DESCRIPTION,
|
|
441
441
|
slash: true,
|
|
@@ -464,7 +464,7 @@ var reportContentWithDiagnostics = Effect.fn("SkillPlugin.reportContentWithDiagn
|
|
|
464
464
|
`);
|
|
465
465
|
});
|
|
466
466
|
var configuredPlugins = Effect.fn("SkillPlugin.configuredPlugins")(function* () {
|
|
467
|
-
const config = yield*
|
|
467
|
+
const config = yield* Service34;
|
|
468
468
|
return (yield* config.entries()).filter((entry) => entry.type === "document").flatMap((entry) => entry.info.plugins ?? []).map((entry) => typeof entry === "string" ? entry : entry.package).toSorted();
|
|
469
469
|
});
|
|
470
470
|
function terminal() {
|
|
@@ -478,4 +478,4 @@ function shell() {
|
|
|
478
478
|
return process.env.SHELL ?? process.env.ComSpec ?? process.env.COMSPEC ?? "Unavailable: shell environment variable is not set";
|
|
479
479
|
}
|
|
480
480
|
|
|
481
|
-
export { OpencodeContent2, ReportContent2, OpencodeDescription2,
|
|
481
|
+
export { OpencodeContent2, ReportContent2, OpencodeDescription2, Plugin43, exports_skill3 };
|
|
@@ -10,8 +10,8 @@ __export(exports_driver, {
|
|
|
10
10
|
ProviderNotFound: () => ProviderNotFound2,
|
|
11
11
|
RegistryService: () => RegistryService2,
|
|
12
12
|
WorkspaceDriver: () => exports_driver,
|
|
13
|
-
make: () =>
|
|
14
|
-
node: () =>
|
|
13
|
+
make: () => make17,
|
|
14
|
+
node: () => node56,
|
|
15
15
|
registry: () => registry2,
|
|
16
16
|
registryNode: () => registryNode2
|
|
17
17
|
});
|
|
@@ -29,7 +29,7 @@ class ProviderNotFound2 extends Schema.TaggedError()("WorkspaceDriver.ProviderNo
|
|
|
29
29
|
provider: Schema.String
|
|
30
30
|
}) {
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var make17 = (driver) => driver;
|
|
33
33
|
|
|
34
34
|
class RegistryService2 extends Context.Service()("@opencode/WorkspaceDriverRegistry") {
|
|
35
35
|
}
|
|
@@ -44,6 +44,6 @@ var registryNode2 = (drivers) => makeGlobalNode({
|
|
|
44
44
|
layer: Layer.succeed(RegistryService2, RegistryService2.of(registry2(drivers))),
|
|
45
45
|
deps: []
|
|
46
46
|
});
|
|
47
|
-
var
|
|
47
|
+
var node56 = registryNode2({});
|
|
48
48
|
|
|
49
|
-
export { Binding2, Error5, ProviderNotFound2,
|
|
49
|
+
export { Binding2, Error5, ProviderNotFound2, make17, RegistryService2, registry2, registryNode2, node56, exports_driver };
|