@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
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./skill-
|
|
2
|
+
ID15,
|
|
3
|
+
Service69
|
|
4
|
+
} from "./skill-8xhx5x0e.js";
|
|
5
5
|
import {
|
|
6
6
|
latest2,
|
|
7
|
-
|
|
8
|
-
} from "./skill-
|
|
7
|
+
Service34
|
|
8
|
+
} from "./skill-4gv65rh6.js";
|
|
9
9
|
import {
|
|
10
10
|
SessionSchema2
|
|
11
|
-
} from "./skill-
|
|
11
|
+
} from "./skill-2f04pwep.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./skill-
|
|
13
|
+
Service63
|
|
14
|
+
} from "./skill-4qzgagaa.js";
|
|
15
15
|
import {
|
|
16
16
|
evaluate2,
|
|
17
|
-
|
|
18
|
-
} from "./skill-
|
|
17
|
+
Service66
|
|
18
|
+
} from "./skill-n95r7dn6.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./skill-
|
|
20
|
+
Service15
|
|
21
|
+
} from "./skill-jbyvhchy.js";
|
|
22
22
|
import {
|
|
23
23
|
NO_TEXT2
|
|
24
24
|
} from "./skill-x1ezjp6w.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./skill-
|
|
26
|
+
make6
|
|
27
|
+
} from "./skill-1x7w021c.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
30
|
} from "./skill-9rqn6x4v.js";
|
|
@@ -32,16 +32,16 @@ import {
|
|
|
32
32
|
// src/tool/plugin/subagent.ts
|
|
33
33
|
var exports_subagent = {};
|
|
34
34
|
__export(exports_subagent, {
|
|
35
|
-
Input: () =>
|
|
35
|
+
Input: () => Input6,
|
|
36
36
|
Output: () => Output4,
|
|
37
|
-
Plugin: () =>
|
|
37
|
+
Plugin: () => Plugin7,
|
|
38
38
|
SubagentTool: () => exports_subagent,
|
|
39
|
-
description: () =>
|
|
40
|
-
name: () =>
|
|
39
|
+
description: () => description3,
|
|
40
|
+
name: () => name6
|
|
41
41
|
});
|
|
42
42
|
import { ToolFailure } from "@opencode/ai";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
|
-
var
|
|
44
|
+
var name6 = "subagent";
|
|
45
45
|
var backgroundResult = (sessionID) => ({
|
|
46
46
|
sessionID,
|
|
47
47
|
status: "running",
|
|
@@ -52,7 +52,7 @@ var backgroundResult = (sessionID) => ({
|
|
|
52
52
|
].join(`
|
|
53
53
|
`)
|
|
54
54
|
});
|
|
55
|
-
var
|
|
55
|
+
var Input6 = Schema.Struct({
|
|
56
56
|
agent: Schema.String.annotate({ description: "The type of specialized agent to use for this task" }),
|
|
57
57
|
description: Schema.String.annotate({ description: "A short 3-5 word label for the task, displayed to the user" }),
|
|
58
58
|
prompt: Schema.String.annotate({ description: "The task for the subagent to perform" }),
|
|
@@ -68,7 +68,7 @@ var Output4 = Schema.Struct({
|
|
|
68
68
|
status: Schema.Literals(["completed", "running"]),
|
|
69
69
|
output: Schema.String
|
|
70
70
|
});
|
|
71
|
-
var
|
|
71
|
+
var description3 = [
|
|
72
72
|
"Spawns an agent in a child session to work on the specified task.",
|
|
73
73
|
"The output includes a sessionID you can pass back later to continue that specific conversation with the subagent.",
|
|
74
74
|
"New child sessions start with fresh context, so include all relevant context and instructions when you don't pass a sessionID.",
|
|
@@ -77,20 +77,20 @@ var description4 = [
|
|
|
77
77
|
"Use background only for independent work that can run while you continue elsewhere."
|
|
78
78
|
].join(`
|
|
79
79
|
`);
|
|
80
|
-
var
|
|
80
|
+
var Plugin7 = {
|
|
81
81
|
id: "opencode.tool.subagent",
|
|
82
82
|
effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
|
|
83
|
-
const sessions = yield*
|
|
84
|
-
const jobs = yield*
|
|
85
|
-
const agents = yield*
|
|
86
|
-
const config = yield*
|
|
87
|
-
const permission = yield*
|
|
88
|
-
const subagents = yield*
|
|
83
|
+
const sessions = yield* Service15;
|
|
84
|
+
const jobs = yield* Service63;
|
|
85
|
+
const agents = yield* Service69;
|
|
86
|
+
const config = yield* Service34;
|
|
87
|
+
const permission = yield* Service66;
|
|
88
|
+
const subagents = yield* make6;
|
|
89
89
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
90
|
-
name:
|
|
90
|
+
name: name6,
|
|
91
91
|
options: { codemode: false },
|
|
92
|
-
description:
|
|
93
|
-
input:
|
|
92
|
+
description: description3,
|
|
93
|
+
input: Input6,
|
|
94
94
|
output: Output4,
|
|
95
95
|
execute: (input, context) => Effect.gen(function* () {
|
|
96
96
|
const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
|
|
@@ -111,7 +111,7 @@ var Plugin39 = {
|
|
|
111
111
|
if (agent.mode === "primary")
|
|
112
112
|
return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
|
|
113
113
|
yield* permission.assert({
|
|
114
|
-
action:
|
|
114
|
+
action: name6,
|
|
115
115
|
resources: [agent.id],
|
|
116
116
|
save: [agent.id],
|
|
117
117
|
sessionID: context.sessionID,
|
|
@@ -134,7 +134,7 @@ var Plugin39 = {
|
|
|
134
134
|
const child = existing ?? (yield* sessions.create({
|
|
135
135
|
parentID: context.sessionID,
|
|
136
136
|
title: input.description,
|
|
137
|
-
agent:
|
|
137
|
+
agent: ID15.make(input.agent),
|
|
138
138
|
model
|
|
139
139
|
}).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error }))));
|
|
140
140
|
const background = input.background === true;
|
|
@@ -184,13 +184,13 @@ ${output.output}
|
|
|
184
184
|
})))
|
|
185
185
|
})).pipe(Effect.orDie);
|
|
186
186
|
yield* ctx.session.hook("context", (event) => Effect.gen(function* () {
|
|
187
|
-
const tool = event.tools[
|
|
187
|
+
const tool = event.tools[name6];
|
|
188
188
|
if (!tool)
|
|
189
189
|
return;
|
|
190
190
|
const selected = yield* agents.resolve(event.agent);
|
|
191
191
|
if (!selected)
|
|
192
192
|
return;
|
|
193
|
-
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(
|
|
193
|
+
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name6, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
|
|
194
194
|
if (available.length === 0)
|
|
195
195
|
return;
|
|
196
196
|
tool.description = [
|
|
@@ -204,4 +204,4 @@ ${output.output}
|
|
|
204
204
|
})
|
|
205
205
|
};
|
|
206
206
|
|
|
207
|
-
export {
|
|
207
|
+
export { name6, Input6, Output4, description3, Plugin7, exports_subagent };
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
var exports_mcp_codemode_exclusion = {};
|
|
7
7
|
__export(exports_mcp_codemode_exclusion, {
|
|
8
8
|
McpCodeModeExclusionPlugin: () => exports_mcp_codemode_exclusion,
|
|
9
|
-
Plugin: () =>
|
|
9
|
+
Plugin: () => Plugin38
|
|
10
10
|
});
|
|
11
11
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
12
12
|
import { Effect } from "effect";
|
|
13
13
|
var urls = [/^https:\/\/executor\.sh\/[^/]+\/mcp$/];
|
|
14
|
-
var
|
|
14
|
+
var Plugin38 = define({
|
|
15
15
|
id: "opencode.mcp.codemode.exclusion",
|
|
16
16
|
effect: Effect.fn(function* (ctx) {
|
|
17
17
|
yield* ctx.mcp.transform((editor) => {
|
|
@@ -34,4 +34,4 @@ var Plugin29 = define({
|
|
|
34
34
|
})
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
export {
|
|
37
|
+
export { Plugin38, exports_mcp_codemode_exclusion };
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
var exports_runner = {};
|
|
7
7
|
__export(exports_runner, {
|
|
8
8
|
DrainResult: () => DrainResult2,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service53,
|
|
10
10
|
SessionRunner: () => exports_runner
|
|
11
11
|
});
|
|
12
12
|
import { Context, Data } from "effect";
|
|
13
13
|
var DrainResult2 = Data.taggedEnum();
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class Service53 extends Context.Service()("@opencode/SessionRunner") {
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export { DrainResult2,
|
|
18
|
+
export { DrainResult2, Service53, exports_runner };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID15,
|
|
3
3
|
Name3,
|
|
4
4
|
defaultID2
|
|
5
|
-
} from "./skill-
|
|
5
|
+
} from "./skill-8xhx5x0e.js";
|
|
6
6
|
import {
|
|
7
7
|
merge2
|
|
8
|
-
} from "./skill-
|
|
8
|
+
} from "./skill-n95r7dn6.js";
|
|
9
9
|
import {
|
|
10
10
|
__export
|
|
11
11
|
} from "./skill-9rqn6x4v.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
var exports_agent2 = {};
|
|
15
15
|
__export(exports_agent2, {
|
|
16
16
|
AgentPlugin: () => exports_agent2,
|
|
17
|
-
Plugin: () =>
|
|
17
|
+
Plugin: () => Plugin39
|
|
18
18
|
});
|
|
19
19
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
20
20
|
import { Effect } from "effect";
|
|
@@ -90,7 +90,7 @@ Rules:
|
|
|
90
90
|
- Never ask questions or add new questions
|
|
91
91
|
- If the conversation ends with an unanswered question to the user, preserve that exact question
|
|
92
92
|
- If the conversation ends with an imperative statement or request to the user (e.g. "Now please run the command and paste the console output"), always include that exact request in the summary`;
|
|
93
|
-
var
|
|
93
|
+
var Plugin39 = define({
|
|
94
94
|
id: "opencode.agent",
|
|
95
95
|
effect: Effect.fn(function* (ctx) {
|
|
96
96
|
yield* ctx.agent.transform((editor) => {
|
|
@@ -100,13 +100,13 @@ var Plugin32 = define({
|
|
|
100
100
|
item.mode = "primary";
|
|
101
101
|
item.permissions.push({ action: "question", resource: "*", effect: "allow" });
|
|
102
102
|
});
|
|
103
|
-
editor.update(
|
|
103
|
+
editor.update(ID15.make("general"), (item) => {
|
|
104
104
|
item.name = Name3.make("General");
|
|
105
105
|
item.description = "General-purpose agent for researching complex questions and executing multi-step tasks. Use this agent to execute multiple units of work in parallel.";
|
|
106
106
|
item.mode = "subagent";
|
|
107
107
|
item.permissions.push({ action: "question", resource: "*", effect: "deny" }, { action: "subagent", resource: "*", effect: "deny" });
|
|
108
108
|
});
|
|
109
|
-
editor.update(
|
|
109
|
+
editor.update(ID15.make("explore"), (item) => {
|
|
110
110
|
const externalDirectories = item.permissions.filter((rule) => rule.action === "external_directory" && rule.effect === "allow");
|
|
111
111
|
item.name = Name3.make("Explore");
|
|
112
112
|
item.description = 'Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. "src/components/**/*.tsx"), search code for keywords (eg. "API endpoints"), or answer questions about the codebase (eg. "how do API endpoints work?"). When calling this agent, specify the desired thoroughness level: "quick" for basic searches, "medium" for moderate exploration, or "very thorough" for comprehensive analysis across multiple locations and naming conventions.';
|
|
@@ -125,19 +125,19 @@ var Plugin32 = define({
|
|
|
125
125
|
{ action: "subagent", resource: "*", effect: "deny" }
|
|
126
126
|
], [{ action: "external_directory", resource: "*", effect: "ask" }, ...externalDirectories]));
|
|
127
127
|
});
|
|
128
|
-
editor.update(
|
|
128
|
+
editor.update(ID15.make("compaction"), (item) => {
|
|
129
129
|
item.name = Name3.make("Compaction");
|
|
130
130
|
item.mode = "primary";
|
|
131
131
|
item.hidden = true;
|
|
132
132
|
});
|
|
133
|
-
editor.update(
|
|
133
|
+
editor.update(ID15.make("title"), (item) => {
|
|
134
134
|
item.name = Name3.make("Title");
|
|
135
135
|
item.mode = "primary";
|
|
136
136
|
item.hidden = true;
|
|
137
137
|
item.system = PROMPT_TITLE;
|
|
138
138
|
item.permissions.push({ action: "*", resource: "*", effect: "deny" });
|
|
139
139
|
});
|
|
140
|
-
editor.update(
|
|
140
|
+
editor.update(ID15.make("summary"), (item) => {
|
|
141
141
|
item.name = Name3.make("Summary");
|
|
142
142
|
item.mode = "primary";
|
|
143
143
|
item.hidden = true;
|
|
@@ -148,4 +148,4 @@ var Plugin32 = define({
|
|
|
148
148
|
})
|
|
149
149
|
});
|
|
150
150
|
|
|
151
|
-
export {
|
|
151
|
+
export { Plugin39, exports_agent2 };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79,
|
|
3
3
|
node84
|
|
4
|
-
} from "./skill-
|
|
4
|
+
} from "./skill-m9wbqshr.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
7
|
} from "./skill-kg06axw8.js";
|
|
8
8
|
import {
|
|
9
9
|
evaluate2
|
|
10
|
-
} from "./skill-
|
|
10
|
+
} from "./skill-n95r7dn6.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./skill-9rqn6x4v.js";
|
|
@@ -17,16 +17,16 @@ var exports_skill5 = {};
|
|
|
17
17
|
__export(exports_skill5, {
|
|
18
18
|
DirectorySource: () => DirectorySource2,
|
|
19
19
|
EmbeddedSource: () => EmbeddedSource2,
|
|
20
|
-
Event: () =>
|
|
21
|
-
ID: () =>
|
|
22
|
-
Info: () =>
|
|
20
|
+
Event: () => Event17,
|
|
21
|
+
ID: () => ID12,
|
|
22
|
+
Info: () => Info26,
|
|
23
23
|
Name: () => Name2,
|
|
24
|
-
Service: () =>
|
|
24
|
+
Service: () => Service65,
|
|
25
25
|
Skill: () => exports_skill5,
|
|
26
26
|
Source: () => Source4,
|
|
27
27
|
UrlSource: () => UrlSource2,
|
|
28
28
|
available: () => available2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node70,
|
|
30
30
|
prepare: () => prepare3,
|
|
31
31
|
toModelOutput: () => toModelOutput3
|
|
32
32
|
});
|
|
@@ -34,13 +34,13 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
34
34
|
import path from "path";
|
|
35
35
|
import { Context, Effect, Layer } from "effect";
|
|
36
36
|
import { Skill } from "@opencode/schema/skill";
|
|
37
|
-
import { Event as
|
|
37
|
+
import { Event as Event17 } from "@opencode/schema/skill";
|
|
38
38
|
var DirectorySource2 = Skill.DirectorySource;
|
|
39
39
|
var UrlSource2 = Skill.UrlSource;
|
|
40
40
|
var EmbeddedSource2 = Skill.EmbeddedSource;
|
|
41
41
|
var Source4 = Skill.Source;
|
|
42
|
-
var
|
|
43
|
-
var
|
|
42
|
+
var Info26 = Skill.Info;
|
|
43
|
+
var ID12 = Skill.ID;
|
|
44
44
|
var Name2 = Skill.Name;
|
|
45
45
|
var available2 = (skills, agent) => skills.filter((skill) => evaluate2("skill", skill.id, agent.permissions).effect !== "deny");
|
|
46
46
|
var toModelOutput3 = (skill, files) => {
|
|
@@ -71,33 +71,33 @@ var prepare3 = Effect.fn("Skill.prepare")(function* (fs, skill) {
|
|
|
71
71
|
};
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
class
|
|
74
|
+
class Service65 extends Context.Service()("@opencode/Skill") {
|
|
75
75
|
}
|
|
76
|
-
var layer = Layer.effect(
|
|
76
|
+
var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
77
77
|
const bus = yield* Service79;
|
|
78
78
|
const state = create3({
|
|
79
79
|
name: "skill",
|
|
80
80
|
initial: () => ({ skills: new Map }),
|
|
81
81
|
editor: (editor) => ({
|
|
82
82
|
list: () => Array.from(editor.skills.values()),
|
|
83
|
-
get: (id) => editor.skills.get(
|
|
83
|
+
get: (id) => editor.skills.get(ID12.make(id)),
|
|
84
84
|
add: (skill) => {
|
|
85
85
|
editor.skills.set(skill.id, { ...skill });
|
|
86
86
|
},
|
|
87
87
|
update: (id, update) => {
|
|
88
|
-
const current = editor.skills.get(
|
|
88
|
+
const current = editor.skills.get(ID12.make(id));
|
|
89
89
|
if (!current)
|
|
90
90
|
return;
|
|
91
91
|
update(current);
|
|
92
|
-
current.id =
|
|
92
|
+
current.id = ID12.make(id);
|
|
93
93
|
},
|
|
94
94
|
remove: (id) => {
|
|
95
|
-
editor.skills.delete(
|
|
95
|
+
editor.skills.delete(ID12.make(id));
|
|
96
96
|
}
|
|
97
97
|
}),
|
|
98
98
|
notify: () => bus.publish(Skill.Event.Updated, {}).pipe(Effect.asVoid)
|
|
99
99
|
});
|
|
100
|
-
return
|
|
100
|
+
return Service65.of({
|
|
101
101
|
transform: state.transform,
|
|
102
102
|
reload: state.reload,
|
|
103
103
|
get: Effect.fn("Skill.get")(function* (id) {
|
|
@@ -108,10 +108,10 @@ var layer = Layer.effect(Service55, Effect.gen(function* () {
|
|
|
108
108
|
})
|
|
109
109
|
});
|
|
110
110
|
}));
|
|
111
|
-
var
|
|
112
|
-
service:
|
|
111
|
+
var node70 = makeLocationNode({
|
|
112
|
+
service: Service65,
|
|
113
113
|
layer,
|
|
114
114
|
deps: [node84]
|
|
115
115
|
});
|
|
116
116
|
|
|
117
|
-
export { DirectorySource2, UrlSource2, EmbeddedSource2, Source4,
|
|
117
|
+
export { DirectorySource2, UrlSource2, EmbeddedSource2, Source4, Info26, ID12, Name2, available2, toModelOutput3, prepare3, Service65, node70, exports_skill5, Event17 };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
Service57,
|
|
3
|
+
node62,
|
|
4
4
|
canonical3
|
|
5
|
-
} from "./skill-
|
|
5
|
+
} from "./skill-xpm1fec2.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./skill-
|
|
7
|
+
Service56,
|
|
8
|
+
node61
|
|
9
|
+
} from "./skill-ecrv93z9.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./skill-
|
|
11
|
+
Service32
|
|
12
|
+
} from "./skill-ahgm1r24.js";
|
|
13
13
|
import {
|
|
14
14
|
layer2
|
|
15
|
-
} from "./skill-
|
|
15
|
+
} from "./skill-taebzevr.js";
|
|
16
16
|
|
|
17
17
|
// src/location-services.ts
|
|
18
18
|
import { Context, Duration, Effect, Exit, Layer, LayerMap, MutableHashMap, Option } from "effect";
|
|
19
19
|
function buildLocationServiceMap2(replacements = []) {
|
|
20
|
-
return Layer.effect(
|
|
20
|
+
return Layer.effect(Service57, Effect.gen(function* () {
|
|
21
21
|
const owner = yield* Effect.scope;
|
|
22
22
|
const builds = MutableHashMap.empty();
|
|
23
23
|
const inner = yield* LayerMap.make((ref) => {
|
|
@@ -28,7 +28,7 @@ function buildLocationServiceMap2(replacements = []) {
|
|
|
28
28
|
if (Option.getOrUndefined(MutableHashMap.get(builds, ref)) !== build)
|
|
29
29
|
return Effect.void;
|
|
30
30
|
if (Exit.isSuccess(exit)) {
|
|
31
|
-
build.close = Context.get(exit.value,
|
|
31
|
+
build.close = Context.get(exit.value, Service32).close;
|
|
32
32
|
return Effect.void;
|
|
33
33
|
}
|
|
34
34
|
MutableHashMap.remove(builds, ref);
|
|
@@ -50,11 +50,11 @@ function buildLocationServiceMap2(replacements = []) {
|
|
|
50
50
|
})
|
|
51
51
|
};
|
|
52
52
|
const bindings = [
|
|
53
|
-
|
|
53
|
+
node61.replace(Layer.succeed(Service56, {
|
|
54
54
|
provide: (session) => Effect.provide(map.get(session.location))
|
|
55
55
|
})),
|
|
56
56
|
...replacements,
|
|
57
|
-
|
|
57
|
+
node62.replace(Layer.succeed(Service57, map))
|
|
58
58
|
];
|
|
59
59
|
return map;
|
|
60
60
|
}));
|
|
@@ -18,9 +18,9 @@ __export(exports_tool_output2, {
|
|
|
18
18
|
MAX_BYTES: () => MAX_BYTES2,
|
|
19
19
|
MAX_LINES: () => MAX_LINES2,
|
|
20
20
|
RETENTION: () => RETENTION3,
|
|
21
|
-
Service: () =>
|
|
21
|
+
Service: () => Service76,
|
|
22
22
|
ToolOutput: () => exports_tool_output2,
|
|
23
|
-
node: () =>
|
|
23
|
+
node: () => node81
|
|
24
24
|
});
|
|
25
25
|
import path from "path";
|
|
26
26
|
import { Context, Duration, Effect, Layer, Schedule } from "effect";
|
|
@@ -32,13 +32,13 @@ var MAX_BYTES2 = 50 * 1024;
|
|
|
32
32
|
var RETENTION3 = Duration.days(7);
|
|
33
33
|
var DIRECTORY3 = "tool-output";
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service76 extends Context.Service()("@opencode/ToolOutput") {
|
|
36
36
|
}
|
|
37
37
|
var cleanup = Effect.fn("ToolOutput.cleanup")(function* (fs, directory) {
|
|
38
38
|
const entries = yield* fs.readDirectory(directory).pipe(Effect.map((entries) => entries.filter((entry) => /^tool_[0-9a-f]{12}/.test(entry))), Effect.orElseSucceed(() => []));
|
|
39
39
|
yield* cleanup3(fs, entries.map((entry) => path.join(directory, entry)), RETENTION3);
|
|
40
40
|
});
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
42
42
|
const fs = yield* FSUtil.Service;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const directory = path.join(global.data, DIRECTORY3);
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
122
122
|
metadata: { ...result.metadata, truncated: true, outputPath: file }
|
|
123
123
|
};
|
|
124
124
|
});
|
|
125
|
-
return
|
|
125
|
+
return Service76.of({
|
|
126
126
|
transform: state.transform,
|
|
127
127
|
reload: state.reload,
|
|
128
128
|
truncate,
|
|
@@ -139,10 +139,10 @@ var cleanupNode = makeGlobalNode({
|
|
|
139
139
|
layer: cleanupLayer,
|
|
140
140
|
deps: [FSUtil.node, Global.node]
|
|
141
141
|
});
|
|
142
|
-
var
|
|
143
|
-
service:
|
|
142
|
+
var node81 = makeLocationNode({
|
|
143
|
+
service: Service76,
|
|
144
144
|
layer,
|
|
145
145
|
deps: [FSUtil.node, Global.node, cleanupNode]
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3,
|
|
148
|
+
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, Service76, node81, exports_tool_output2 };
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
RelativePath2
|
|
3
3
|
} from "./skill-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./skill-
|
|
5
|
+
Service71,
|
|
6
|
+
node76
|
|
7
|
+
} from "./skill-f75rfffy.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./skill-
|
|
9
|
+
Service39,
|
|
10
|
+
node43
|
|
11
|
+
} from "./skill-frzkm7eq.js";
|
|
12
12
|
import {
|
|
13
13
|
isHome2,
|
|
14
|
-
|
|
15
|
-
} from "./skill-
|
|
14
|
+
names4
|
|
15
|
+
} from "./skill-89znhe33.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
18
|
} from "./skill-9rqn6x4v.js";
|
|
@@ -21,12 +21,12 @@ import {
|
|
|
21
21
|
var exports_search = {};
|
|
22
22
|
__export(exports_search, {
|
|
23
23
|
FileSystemSearch: () => exports_search,
|
|
24
|
-
Options: () =>
|
|
25
|
-
Service: () =>
|
|
26
|
-
configured: () =>
|
|
24
|
+
Options: () => Options6,
|
|
25
|
+
Service: () => Service38,
|
|
26
|
+
configured: () => configured5,
|
|
27
27
|
fffLayer: () => fffLayer2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer16,
|
|
29
|
+
node: () => node42,
|
|
30
30
|
ripgrepLayer: () => ripgrepLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -35,11 +35,11 @@ import { Clock, Context, Deferred, Duration, Effect, Layer, Schema, Scope } from
|
|
|
35
35
|
import { Fff } from "#fff";
|
|
36
36
|
import fuzzysort from "fuzzysort";
|
|
37
37
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
38
|
-
var
|
|
38
|
+
var Options6 = Schema.Struct({
|
|
39
39
|
fff: Schema.optional(Schema.Boolean)
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service38 extends Context.Service()("@opencode/FileSystem/Search") {
|
|
43
43
|
}
|
|
44
44
|
var REFRESH_INTERVAL = Duration.toMillis("10 seconds");
|
|
45
45
|
function emptyIndex() {
|
|
@@ -58,9 +58,9 @@ function search(index, input) {
|
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
var ripgrepLayer2 = Layer.effect(
|
|
62
|
-
const location = yield*
|
|
63
|
-
const ripgrep = yield*
|
|
61
|
+
var ripgrepLayer2 = Layer.effect(Service38, Effect.gen(function* () {
|
|
62
|
+
const location = yield* Service71;
|
|
63
|
+
const ripgrep = yield* Service39;
|
|
64
64
|
const scope = yield* Scope.Scope;
|
|
65
65
|
const clock = yield* Clock.Clock;
|
|
66
66
|
const home = isHome2(location.directory);
|
|
@@ -77,7 +77,7 @@ var ripgrepLayer2 = Layer.effect(Service49, Effect.gen(function* () {
|
|
|
77
77
|
cwd: location.directory,
|
|
78
78
|
pattern: "*",
|
|
79
79
|
limit: location.vcs && !home ? Number.MAX_SAFE_INTEGER : 1e5,
|
|
80
|
-
exclude: home ? [...
|
|
80
|
+
exclude: home ? [...names4()].map((name) => `${name}/**`) : undefined,
|
|
81
81
|
onEntry: (entry) => Effect.sync(() => {
|
|
82
82
|
next.files.set(entry.path, previous.files.get(entry.path) ?? fuzzysort.prepare(entry.path));
|
|
83
83
|
const parts = entry.path.split("/");
|
|
@@ -105,15 +105,15 @@ var ripgrepLayer2 = Layer.effect(Service49, Effect.gen(function* () {
|
|
|
105
105
|
Deferred.doneUnsafe(attempt, exit);
|
|
106
106
|
})), Effect.forkIn(scope), Effect.flatMap(() => initialized ? Effect.void : Deferred.await(attempt)));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service38.of({
|
|
109
109
|
find: (input) => Effect.gen(function* () {
|
|
110
110
|
yield* refresh;
|
|
111
111
|
return search(index, input);
|
|
112
112
|
})
|
|
113
113
|
});
|
|
114
114
|
}));
|
|
115
|
-
var fffLayer2 = Layer.effect(
|
|
116
|
-
const location = yield*
|
|
115
|
+
var fffLayer2 = Layer.effect(Service38, Effect.gen(function* () {
|
|
116
|
+
const location = yield* Service71;
|
|
117
117
|
const result = yield* Effect.try({
|
|
118
118
|
try: () => Fff.create({
|
|
119
119
|
basePath: location.directory,
|
|
@@ -126,12 +126,12 @@ var fffLayer2 = Layer.effect(Service49, Effect.gen(function* () {
|
|
|
126
126
|
if (!result?.ok) {
|
|
127
127
|
if (result)
|
|
128
128
|
yield* Effect.logWarning("failed to initialize fff", { error: result.error });
|
|
129
|
-
return
|
|
129
|
+
return Service38.of({
|
|
130
130
|
find: () => Effect.succeed([])
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
yield* Effect.addFinalizer(() => Effect.sync(() => result.value.destroy()));
|
|
134
|
-
return
|
|
134
|
+
return Service38.of({
|
|
135
135
|
find: (input) => Effect.sync(() => {
|
|
136
136
|
const options = { pageIndex: 0, pageSize: input.limit ?? 50 };
|
|
137
137
|
const items = (() => {
|
|
@@ -174,17 +174,17 @@ var fffLayer2 = Layer.effect(Service49, Effect.gen(function* () {
|
|
|
174
174
|
})
|
|
175
175
|
});
|
|
176
176
|
}));
|
|
177
|
-
var
|
|
178
|
-
const location = yield*
|
|
177
|
+
var layer16 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
178
|
+
const location = yield* Service71;
|
|
179
179
|
if (location.workspaceID)
|
|
180
180
|
return ripgrepLayer2;
|
|
181
181
|
if (options?.fff === false || options?.fff === undefined && process.platform === "win32" || !Fff.available())
|
|
182
182
|
return ripgrepLayer2;
|
|
183
183
|
return location.vcs && !isHome2(location.directory) ? fffLayer2 : ripgrepLayer2;
|
|
184
184
|
}));
|
|
185
|
-
function
|
|
186
|
-
return makeLocationNode({ service:
|
|
185
|
+
function configured5(options) {
|
|
186
|
+
return makeLocationNode({ service: Service38, layer: layer16(options), deps: [node76, node43] });
|
|
187
187
|
}
|
|
188
|
-
var
|
|
188
|
+
var node42 = configured5();
|
|
189
189
|
|
|
190
|
-
export {
|
|
190
|
+
export { Options6, Service38, ripgrepLayer2, fffLayer2, layer16, configured5, node42, exports_search };
|