@opencode/core 0.0.0-dev-20638 → 0.0.0-dev-20640
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 +61 -61
- package/dist/aisdk-native.js +66 -66
- package/dist/aisdk.js +71 -71
- package/dist/app.js +9 -9
- package/dist/bus.js +54 -54
- package/dist/chunks/{kv-ykchqbdg.js → kv-00zna71j.js} +1 -1
- package/dist/chunks/{kv-gnn7jhj8.js → kv-018bn4f4.js} +13 -13
- package/dist/chunks/{kv-sd8sm53s.js → kv-04bfvmpq.js} +2 -2
- package/dist/chunks/{kv-w9903dp5.js → kv-05jdtgp8.js} +9 -9
- package/dist/chunks/{kv-am5d478n.js → kv-07t56emn.js} +82 -82
- package/dist/chunks/{kv-rmjmvf0k.js → kv-0dm71e41.js} +13 -13
- package/dist/chunks/{kv-vn0x08py.js → kv-0fgqvstr.js} +10 -10
- package/dist/chunks/{kv-3y2y4nc2.js → kv-0gscdz11.js} +40 -40
- package/dist/chunks/{kv-5zt2q5ce.js → kv-0knbg5a8.js} +6 -6
- package/dist/chunks/{kv-d99q2kf9.js → kv-0mxj9fd6.js} +7 -7
- package/dist/chunks/{kv-0jw53tw8.js → kv-0y3sqs0q.js} +1 -1
- package/dist/chunks/{kv-f0swrhq5.js → kv-11nb2wm6.js} +18 -18
- package/dist/chunks/{kv-nh2sdsz2.js → kv-144xedv6.js} +29 -29
- package/dist/chunks/{kv-e8qyrgb1.js → kv-150yg2gd.js} +3 -3
- package/dist/chunks/{kv-c1jmz0dd.js → kv-1bf59rb9.js} +8 -8
- package/dist/chunks/{kv-k8kjf1xa.js → kv-1f7zsz3w.js} +31 -31
- package/dist/chunks/{kv-psdhy0c9.js → kv-1k745sen.js} +7 -7
- package/dist/chunks/{kv-ec2y1rs7.js → kv-1qa15gwt.js} +12 -12
- package/dist/chunks/{kv-f72k0wyq.js → kv-28r17msq.js} +13 -13
- package/dist/chunks/{kv-vet6ekdp.js → kv-291skbwy.js} +8 -8
- package/dist/chunks/{kv-3z80er74.js → kv-2cwhkz2n.js} +5 -5
- package/dist/chunks/{kv-7z362xx8.js → kv-2fcn0a3n.js} +20 -20
- package/dist/chunks/{kv-zmfyv7f1.js → kv-2qkz3cac.js} +1 -1
- package/dist/chunks/{kv-qmqgtz8f.js → kv-2sejkfem.js} +7 -7
- package/dist/chunks/{kv-es77a9ge.js → kv-2xd3k6k6.js} +15 -15
- package/dist/chunks/{kv-c9sr4239.js → kv-314vn2g9.js} +10 -10
- package/dist/chunks/{kv-akagqmhc.js → kv-3axgwepp.js} +28 -28
- package/dist/chunks/{kv-zf5wv535.js → kv-3dnqr9q0.js} +7 -7
- package/dist/chunks/{kv-769wxhem.js → kv-3ehr1n9z.js} +33 -33
- package/dist/chunks/{kv-cvgnxgr7.js → kv-3fj5q6bc.js} +44 -44
- package/dist/chunks/{kv-541w9c89.js → kv-3m2w0hrx.js} +11 -11
- package/dist/chunks/{kv-97cfts9w.js → kv-3pbt6ms1.js} +13 -13
- package/dist/chunks/{kv-66y76zaq.js → kv-3v7e0nj5.js} +19 -19
- package/dist/chunks/kv-4639mgfq.js +26 -0
- package/dist/chunks/{kv-3784c8ef.js → kv-4hsstsq2.js} +16 -16
- package/dist/chunks/{kv-kzk474gs.js → kv-4mtsj6py.js} +10 -10
- package/dist/chunks/{kv-bw9zjykr.js → kv-4mwpykj0.js} +5 -5
- package/dist/chunks/{kv-a91mm6pd.js → kv-50202j3g.js} +21 -21
- package/dist/chunks/{kv-bfhjdpf9.js → kv-504addgz.js} +12 -12
- package/dist/chunks/{kv-vfn4q1c6.js → kv-50jx1ftv.js} +12 -12
- package/dist/chunks/{kv-de13b2w8.js → kv-53dxyvp1.js} +11 -11
- package/dist/chunks/{kv-fcf2thwx.js → kv-59j91h7p.js} +17 -17
- package/dist/chunks/{kv-0rce4jxn.js → kv-5h5wp7dv.js} +8 -8
- package/dist/chunks/{kv-nqxj0yn4.js → kv-5pyjqqve.js} +1 -1
- package/dist/chunks/{kv-v4f2fze8.js → kv-5rmvjxjt.js} +20 -20
- package/dist/chunks/{kv-r2tr70hw.js → kv-5thf4vwx.js} +10 -10
- package/dist/chunks/{kv-5f9vzzra.js → kv-606mcbpt.js} +24 -24
- package/dist/chunks/{kv-jtvf2jb4.js → kv-6443pe5d.js} +9 -9
- package/dist/chunks/{kv-rabz0548.js → kv-6858qs0d.js} +12 -12
- package/dist/chunks/{kv-tbjhtzyt.js → kv-6r5yv9td.js} +28 -28
- package/dist/chunks/{kv-g4w6v84v.js → kv-6w1vezwk.js} +17 -17
- package/dist/chunks/{kv-xqht2e7y.js → kv-6w9b2v2t.js} +9 -9
- package/dist/chunks/{kv-5jm289mv.js → kv-6xtnp6pv.js} +15 -15
- package/dist/chunks/{kv-acznmef4.js → kv-6ze8z48e.js} +8 -8
- package/dist/chunks/{kv-cfgev5fc.js → kv-789vsg7z.js} +150 -150
- package/dist/chunks/{kv-vknqf5hb.js → kv-797efr59.js} +15 -15
- package/dist/chunks/{kv-qaq2bwnf.js → kv-7c9bbt45.js} +4 -4
- package/dist/chunks/{kv-4njb8sjz.js → kv-89xk2mrn.js} +11 -11
- package/dist/chunks/{kv-hh9qw4pz.js → kv-8aj500b4.js} +5 -5
- package/dist/chunks/{kv-g7e7y44y.js → kv-8bk2q5by.js} +15 -15
- package/dist/chunks/{kv-cq12npaq.js → kv-8cseh6jw.js} +15 -15
- package/dist/chunks/{kv-954r981e.js → kv-906tg66d.js} +9 -9
- package/dist/chunks/{kv-r5nk2c05.js → kv-90rwhrb1.js} +9 -9
- package/dist/chunks/{kv-pnx8jqpz.js → kv-91xts6ft.js} +35 -35
- package/dist/chunks/{kv-mfjr1h2x.js → kv-9kf9wkxz.js} +6 -6
- package/dist/chunks/{kv-qsx4fnpq.js → kv-9phyjc4n.js} +8 -8
- package/dist/chunks/{kv-s8d7rejh.js → kv-9t7a50xb.js} +3 -3
- package/dist/chunks/{kv-krejfd1h.js → kv-9y0z6c2k.js} +5 -5
- package/dist/chunks/{kv-ctbj4zyv.js → kv-9yev5r92.js} +53 -53
- package/dist/chunks/{kv-q5ykhdzx.js → kv-a5wq81es.js} +8 -8
- package/dist/chunks/{kv-181xftrn.js → kv-a8vnbk5s.js} +40 -40
- package/dist/chunks/{kv-7pb7xpah.js → kv-a92h78km.js} +2 -2
- package/dist/chunks/{kv-mdtczhqa.js → kv-aa77x952.js} +20 -20
- package/dist/chunks/{kv-a2b9r020.js → kv-ad98q5fk.js} +2 -2
- package/dist/chunks/{kv-x661k3y3.js → kv-addxnjmp.js} +3 -3
- package/dist/chunks/{kv-dk81va9j.js → kv-amzhydp5.js} +19 -19
- package/dist/chunks/{kv-dk7aapm0.js → kv-apeyh75a.js} +40 -40
- package/dist/chunks/{kv-exv1vest.js → kv-as8ynvdv.js} +21 -21
- package/dist/chunks/{kv-tsqf5x7w.js → kv-at6chbkf.js} +20 -20
- package/dist/chunks/{kv-z5zt2xra.js → kv-b1vjxa7a.js} +5 -5
- package/dist/chunks/{kv-hs1x7rht.js → kv-bebjmbk5.js} +7 -7
- package/dist/chunks/{kv-xsgk3b13.js → kv-bezhzanq.js} +7 -7
- package/dist/chunks/{kv-4xqz2kzs.js → kv-bkvz5s71.js} +3 -3
- package/dist/chunks/{kv-b53mfyph.js → kv-brsymgq7.js} +7 -7
- package/dist/chunks/{kv-8a627zjw.js → kv-bwaap7p9.js} +1 -1
- package/dist/chunks/{kv-hdnsej8e.js → kv-bx744vwq.js} +2 -2
- package/dist/chunks/{kv-0yb8695g.js → kv-c1eyt60v.js} +17 -17
- package/dist/chunks/{kv-h3xh88mt.js → kv-c6sqj817.js} +20 -20
- package/dist/chunks/{kv-j9n4penq.js → kv-cghk8e58.js} +18 -18
- package/dist/chunks/{kv-a3y1te1t.js → kv-ct739ed2.js} +34 -34
- package/dist/chunks/{kv-jmz67v6d.js → kv-d1ve849e.js} +18 -18
- package/dist/chunks/{kv-5yqam25v.js → kv-d5q12aqz.js} +4 -4
- package/dist/chunks/{kv-4eq8w0dz.js → kv-de52ckkz.js} +3 -3
- package/dist/chunks/{kv-ftqbsq0r.js → kv-dje26vdb.js} +2 -2
- package/dist/chunks/{kv-87x5xn13.js → kv-dpfrkhds.js} +7 -7
- package/dist/chunks/{kv-t88m99yp.js → kv-dpnnxfwt.js} +8 -8
- package/dist/chunks/{kv-x8pjv9xj.js → kv-drmw43ea.js} +19 -19
- package/dist/chunks/{kv-4v7qdvcn.js → kv-dxj72tfx.js} +4 -4
- package/dist/chunks/{kv-1en3ymky.js → kv-e8wga5c8.js} +22 -22
- package/dist/chunks/{kv-r9hhpn8b.js → kv-ebwqfc2a.js} +4 -4
- package/dist/chunks/{kv-pvekm5mg.js → kv-ee8xpbar.js} +19 -19
- package/dist/chunks/{kv-basq6rcm.js → kv-ef5xnz50.js} +5 -5
- package/dist/chunks/{kv-kq04c70q.js → kv-evpcrbn2.js} +11 -11
- package/dist/chunks/{kv-1mpyd4wr.js → kv-ew12th47.js} +14 -14
- package/dist/chunks/{kv-3q141gzy.js → kv-ey7zsb2z.js} +1 -1
- package/dist/chunks/{kv-cce4e01m.js → kv-f87x761z.js} +23 -23
- package/dist/chunks/{kv-bq3zev7t.js → kv-f9pxsqr6.js} +1 -1
- package/dist/chunks/{kv-m357821f.js → kv-ff79g11c.js} +23 -23
- package/dist/chunks/{kv-xayh4kry.js → kv-fhq4beaq.js} +20 -20
- package/dist/chunks/{kv-b97wbwxq.js → kv-fkzjdf45.js} +134 -134
- package/dist/chunks/{kv-v0es1rhs.js → kv-fpecnkgp.js} +7 -7
- package/dist/chunks/{kv-2ewwsn6j.js → kv-fsh2y1zv.js} +13 -13
- package/dist/chunks/{kv-w4egk6m7.js → kv-fz64p049.js} +10 -10
- package/dist/chunks/{kv-k1gkpfdk.js → kv-g1sxm558.js} +7 -7
- package/dist/chunks/{kv-j0dh5s1b.js → kv-g3ndzw54.js} +49 -49
- package/dist/chunks/{kv-mkrt49cm.js → kv-g4sw2epc.js} +24 -24
- package/dist/chunks/{kv-gejf6mxt.js → kv-g549jxts.js} +26 -26
- package/dist/chunks/{kv-ephge0j6.js → kv-gk37k7rf.js} +32 -32
- package/dist/chunks/{kv-mge92msv.js → kv-hcbpprgx.js} +1 -1
- package/dist/chunks/{kv-w5rr2y2z.js → kv-hcbveym2.js} +9 -9
- package/dist/chunks/{kv-yh94greh.js → kv-hmkvz94f.js} +12 -12
- package/dist/chunks/{kv-kp4erq8a.js → kv-hp04rdxh.js} +8 -8
- package/dist/chunks/{kv-ee3bnshg.js → kv-hq1swd7v.js} +5 -5
- package/dist/chunks/{kv-ggyw05pn.js → kv-htjphyk5.js} +13 -13
- package/dist/chunks/{kv-4x0vy5hp.js → kv-hxxy4jtt.js} +3 -3
- package/dist/chunks/{kv-axe20dxj.js → kv-hydafzv0.js} +38 -38
- package/dist/chunks/{kv-cptwqp0x.js → kv-jg575x7y.js} +32 -32
- package/dist/chunks/{kv-b4twkq7r.js → kv-jktqzjpa.js} +3 -3
- package/dist/chunks/{kv-fzgc1kyb.js → kv-jn9040r2.js} +23 -23
- package/dist/chunks/{kv-nw91k3fh.js → kv-jpqeh2wc.js} +3 -3
- package/dist/chunks/{kv-c10v6zqh.js → kv-k318agvy.js} +3 -3
- package/dist/chunks/{kv-3cd9n481.js → kv-k70p9jzb.js} +7 -7
- package/dist/chunks/{kv-3sk4rdba.js → kv-kpg2gynq.js} +29 -29
- package/dist/chunks/{kv-4da8s4pt.js → kv-kykapc73.js} +14 -14
- package/dist/chunks/{kv-e75k1waj.js → kv-mae0k732.js} +8 -8
- package/dist/chunks/{kv-56gdpj1q.js → kv-mfqp6xfm.js} +4 -4
- package/dist/chunks/{kv-hbwv7efq.js → kv-mrwm8afd.js} +19 -19
- package/dist/chunks/{kv-09k9s00a.js → kv-n0571dh0.js} +16 -16
- package/dist/chunks/{kv-3ewed21c.js → kv-n2srvep7.js} +3 -3
- package/dist/chunks/{kv-j58c5xyq.js → kv-n37c4crj.js} +7 -7
- package/dist/chunks/{kv-dssebbhk.js → kv-n43tnyyv.js} +26 -26
- package/dist/chunks/{kv-4xmcpy6p.js → kv-n4grcdw5.js} +12 -12
- package/dist/chunks/{kv-npetrjxw.js → kv-n72xc886.js} +33 -33
- package/dist/chunks/{kv-c51rhznc.js → kv-n9tt80yh.js} +1 -1
- package/dist/chunks/{kv-b69jv39p.js → kv-ncnm8wen.js} +1 -1
- package/dist/chunks/{kv-szbg98by.js → kv-nhkczpkc.js} +8 -8
- package/dist/chunks/{kv-a8bn8zg0.js → kv-nrdmrqsx.js} +3 -3
- package/dist/chunks/{kv-41jmxe7k.js → kv-nt69khzf.js} +9 -9
- package/dist/chunks/{kv-zz9f7sca.js → kv-pgdq0m2s.js} +7 -7
- package/dist/chunks/{kv-6pwtgj3y.js → kv-pnedbpq6.js} +6 -6
- package/dist/chunks/{kv-nekkkdzt.js → kv-pyfe26s8.js} +9 -9
- package/dist/chunks/{kv-a78avpfy.js → kv-q2pzxhp3.js} +7 -7
- package/dist/chunks/{kv-xy8y824b.js → kv-q3djzwyg.js} +20 -20
- package/dist/chunks/{kv-2x8be395.js → kv-q7fq4b4a.js} +30 -30
- package/dist/chunks/{kv-8tatyyx7.js → kv-q95kjj2t.js} +20 -20
- package/dist/chunks/{kv-jfe7dgrr.js → kv-qdq3033d.js} +6 -6
- package/dist/chunks/{kv-ahd542yp.js → kv-qe26s0zb.js} +7 -7
- package/dist/chunks/{kv-y81zftz8.js → kv-qey3k095.js} +1 -1
- package/dist/chunks/{kv-aa2ejxze.js → kv-qfhmckpv.js} +12 -12
- package/dist/chunks/{kv-esafk7q3.js → kv-qgn6gcr1.js} +4 -4
- package/dist/chunks/{kv-efqmpk1d.js → kv-qh99jyhd.js} +15 -15
- package/dist/chunks/{kv-p3np81yz.js → kv-qj944938.js} +16 -16
- package/dist/chunks/{kv-58pe7162.js → kv-qqgnk5sa.js} +6 -6
- package/dist/chunks/{kv-22r6mj2d.js → kv-qqmhc4xj.js} +38 -38
- package/dist/chunks/{kv-rjqw1fkn.js → kv-qvy3y2q7.js} +32 -32
- package/dist/chunks/{kv-mc0gpg4v.js → kv-r3s59a3c.js} +17 -17
- package/dist/chunks/{kv-a7gbfrqc.js → kv-r7kk08kn.js} +17 -17
- package/dist/chunks/{kv-rhraev7y.js → kv-r8xr0va3.js} +3 -3
- package/dist/chunks/{kv-7c2mj90v.js → kv-re39fj6q.js} +1 -1
- package/dist/chunks/{kv-dns82zgn.js → kv-rhvgmpzm.js} +2 -2
- package/dist/chunks/{kv-rr6414d7.js → kv-rqwx90yh.js} +1 -1
- package/dist/chunks/{kv-8pfwr1aj.js → kv-ryd2rdzb.js} +6 -6
- package/dist/chunks/{kv-vp15e18s.js → kv-ryj782zy.js} +10 -10
- package/dist/chunks/{kv-nq2hrp2d.js → kv-s1vq5vjj.js} +2 -2
- package/dist/chunks/{kv-s2azmpd0.js → kv-s2xdefjk.js} +11 -11
- package/dist/chunks/{kv-syyk301w.js → kv-sanedfh0.js} +20 -20
- package/dist/chunks/{kv-j9nscww1.js → kv-sfxc0p81.js} +38 -38
- package/dist/chunks/{kv-62536pe3.js → kv-sppc6c79.js} +3 -3
- package/dist/chunks/{kv-5xbp0mzp.js → kv-t11fnep0.js} +1 -1
- package/dist/chunks/{kv-5184fe6e.js → kv-t1nf5an5.js} +9 -9
- package/dist/chunks/{kv-6hh8tjw2.js → kv-t6vsspdg.js} +6 -6
- package/dist/chunks/{kv-89znhe33.js → kv-tcezcvh9.js} +3 -3
- package/dist/chunks/{kv-89713pt3.js → kv-tdhpb3v5.js} +11 -11
- package/dist/chunks/{kv-vzmw36wy.js → kv-tk8acvkq.js} +10 -10
- package/dist/chunks/{kv-2mbt8s9p.js → kv-tnxzcmvm.js} +1 -1
- package/dist/chunks/{kv-br0tr5aq.js → kv-tpw6cwsb.js} +7 -7
- package/dist/chunks/{kv-ss3rnzs3.js → kv-tsq8mx3a.js} +7 -7
- package/dist/chunks/{kv-wp70r9pc.js → kv-v1m0bgap.js} +31 -31
- package/dist/chunks/{kv-byx867r3.js → kv-v2p84kh2.js} +81 -81
- package/dist/chunks/{kv-wqtjzdjg.js → kv-v2yhfrn9.js} +8 -8
- package/dist/chunks/{kv-m0c8nc3q.js → kv-vk34wx83.js} +21 -21
- package/dist/chunks/{kv-zfs8ae4p.js → kv-vn72gsba.js} +1 -1
- package/dist/chunks/{kv-se3xc60m.js → kv-vpjxjfws.js} +1 -1
- package/dist/chunks/{kv-arz7hw7x.js → kv-vx3jgdek.js} +2 -2
- package/dist/chunks/{kv-10a0p2jb.js → kv-vy4j84c5.js} +13 -13
- package/dist/chunks/{kv-9jdad9bj.js → kv-vz9np6hr.js} +32 -32
- package/dist/chunks/{kv-g5w8qwbj.js → kv-w19d8598.js} +6 -6
- package/dist/chunks/{kv-j2g8k53c.js → kv-weef4h0t.js} +23 -23
- package/dist/chunks/{kv-hr5bc81f.js → kv-wh3mwy9y.js} +4 -4
- package/dist/chunks/{kv-1pxz8ven.js → kv-wh6zw745.js} +3 -3
- package/dist/chunks/{kv-wtwn561a.js → kv-wmnwwwhc.js} +19 -19
- package/dist/chunks/{kv-apt05brx.js → kv-wwctf8pa.js} +9 -9
- package/dist/chunks/{kv-zfa8n539.js → kv-x61eq3et.js} +14 -14
- package/dist/chunks/{kv-cf8234ah.js → kv-xbq5pdxh.js} +24 -24
- package/dist/chunks/{kv-9p60zphx.js → kv-xm2v5ye2.js} +9 -9
- package/dist/chunks/{kv-rdy0ce08.js → kv-xr5yvd35.js} +7 -7
- package/dist/chunks/{kv-wda5c5wt.js → kv-xvc4631w.js} +13 -13
- package/dist/chunks/{kv-b24qy0b9.js → kv-xve1yjb3.js} +5 -5
- package/dist/chunks/{kv-gbpk5mqp.js → kv-y2g779vb.js} +19 -19
- package/dist/chunks/{kv-rwkdedx1.js → kv-y2vqkag3.js} +5 -5
- package/dist/chunks/{kv-mfhezxan.js → kv-y6d2apqa.js} +9 -9
- package/dist/chunks/{kv-xsch7tq4.js → kv-y8wcetdn.js} +8 -8
- package/dist/chunks/{kv-yx8a1kq8.js → kv-yd0qngcd.js} +10 -10
- package/dist/chunks/{kv-vbe0572m.js → kv-ygws11mx.js} +24 -24
- package/dist/chunks/{kv-fsa96q8z.js → kv-ygz7vdjy.js} +11 -11
- package/dist/chunks/{kv-5xjgfznd.js → kv-yhgbfdfr.js} +9 -9
- package/dist/chunks/{kv-j8s9ab9g.js → kv-yhq47pcp.js} +4 -4
- package/dist/chunks/{kv-zee1rnkq.js → kv-zcrspsvn.js} +3 -3
- package/dist/chunks/{kv-jn7ad7x7.js → kv-zsp613gn.js} +326 -326
- package/dist/chunks/{kv-yrcj3v3g.js → kv-zsr4wwhv.js} +3 -3
- package/dist/codemode/instructions.js +8 -8
- package/dist/command.js +69 -69
- package/dist/config/discovery.js +63 -63
- package/dist/config/normalize.js +75 -75
- package/dist/config/plugin/agent.js +85 -85
- package/dist/config/plugin/command.js +165 -165
- package/dist/config/plugin/compaction.js +117 -117
- package/dist/config/plugin/compatibility.js +100 -100
- package/dist/config/plugin/formatter.js +85 -85
- package/dist/config/plugin/image.js +85 -85
- package/dist/config/plugin/instruction.js +67 -67
- package/dist/config/plugin/location-watcher.js +87 -87
- package/dist/config/plugin/mcp.js +90 -90
- package/dist/config/plugin/policy.js +85 -85
- package/dist/config/plugin/provider.js +85 -85
- package/dist/config/plugin/reference.js +86 -86
- package/dist/config/plugin/shell.js +87 -87
- package/dist/config/plugin/skill-file.js +77 -77
- package/dist/config/plugin/skill.js +103 -103
- package/dist/config/plugin/snapshot.js +85 -85
- package/dist/config/plugin/source.js +86 -86
- package/dist/config/plugin/tool-output.js +86 -86
- package/dist/config/plugin/websearch.js +86 -86
- package/dist/config/plugin/worktree.js +86 -86
- package/dist/config.js +91 -91
- package/dist/credential.js +62 -62
- package/dist/database/database.js +53 -53
- package/dist/database/drizzle/effect-sqlite/driver.js +7 -7
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +6 -6
- package/dist/database/drizzle/index.js +8 -8
- package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
- package/dist/database/drizzle.js +8 -8
- package/dist/database/migration.gen.js +36 -36
- package/dist/database/migration.js +38 -38
- package/dist/database/v1-migration.bun.js +9 -9
- package/dist/effect/app-node-builder.js +230 -230
- package/dist/environment/environment.js +69 -69
- package/dist/environment/index.js +71 -71
- package/dist/event-logger.js +9 -9
- package/dist/file-access.js +80 -80
- package/dist/file-mutation.js +70 -70
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +180 -180
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +78 -78
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +81 -81
- package/dist/form.js +67 -67
- package/dist/formatter.js +66 -66
- package/dist/generate.js +78 -78
- package/dist/git.js +6 -6
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +68 -68
- package/dist/github-copilot/responses/openai-responses-language-model.js +7 -7
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +303 -303
- package/dist/instruction-discovery.js +65 -65
- package/dist/instructions/builtins.js +62 -62
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +65 -65
- package/dist/job.js +62 -62
- package/dist/kv.js +58 -58
- package/dist/location-activity.js +53 -53
- package/dist/location-lifecycle.js +83 -83
- package/dist/location-service-map.js +65 -65
- package/dist/location-services.js +299 -299
- package/dist/location.js +66 -66
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +17 -17
- package/dist/mcp/index.js +83 -83
- package/dist/mcp/instructions.js +100 -100
- package/dist/mcp/oauth.js +13 -13
- package/dist/mcp/stdio.js +66 -66
- package/dist/modal/models.js +68 -68
- package/dist/model-resolver.js +75 -75
- package/dist/model.js +73 -73
- package/dist/models-dev.js +83 -83
- package/dist/permission/saved.js +60 -60
- package/dist/permission.js +81 -81
- package/dist/persistent-pty/index.js +69 -69
- package/dist/persistent-pty.js +57 -57
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +74 -74
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +171 -171
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +277 -277
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +72 -72
- package/dist/plugin/module.js +4 -4
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +78 -78
- package/dist/plugin/provider/amazon-bedrock.js +67 -67
- package/dist/plugin/provider/azure.js +86 -86
- package/dist/plugin/provider/chatgpt.js +69 -69
- package/dist/plugin/provider/cloudflare-ai-gateway.js +83 -83
- package/dist/plugin/provider/cloudflare-workers-ai.js +83 -83
- package/dist/plugin/provider/configured.js +82 -82
- package/dist/plugin/provider/digitalocean.js +69 -69
- package/dist/plugin/provider/github-copilot.js +71 -71
- package/dist/plugin/provider/gitlab.js +69 -69
- package/dist/plugin/provider/google-vertex.js +67 -67
- package/dist/plugin/provider/llmgateway.js +60 -60
- package/dist/plugin/provider/lmstudio.js +86 -86
- package/dist/plugin/provider/local.js +83 -83
- package/dist/plugin/provider/modal.js +69 -69
- package/dist/plugin/provider/ollama.js +84 -84
- package/dist/plugin/provider/openai.js +68 -68
- package/dist/plugin/provider/opencode.js +72 -72
- package/dist/plugin/provider/openrouter.js +68 -68
- package/dist/plugin/provider/poe.js +60 -60
- package/dist/plugin/provider/prompt-cache-key.js +67 -67
- package/dist/plugin/provider/sap-ai-core.js +67 -67
- package/dist/plugin/provider/snowflake-cortex.js +84 -84
- package/dist/plugin/provider/vercel.js +67 -67
- package/dist/plugin/provider/vllm.js +86 -86
- package/dist/plugin/provider/xai.js +68 -68
- package/dist/plugin/provider.js +119 -119
- package/dist/plugin/sdk.js +61 -61
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +101 -101
- package/dist/plugin/supervisor.js +292 -292
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +5 -5
- package/dist/plugin/vcs/git.js +65 -65
- package/dist/plugin/vcs/hg.js +65 -65
- package/dist/plugin/verbosity.js +70 -70
- package/dist/plugin/warming.js +84 -84
- package/dist/plugin/websearch/exa.js +4 -4
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +7 -7
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +7 -7
- package/dist/plugin.js +182 -182
- package/dist/project/schema.js +7 -7
- package/dist/project.js +69 -69
- package/dist/provider.js +72 -72
- package/dist/pty.js +73 -73
- package/dist/reference/instructions.js +69 -69
- package/dist/reference.js +69 -69
- package/dist/repository-cache.js +62 -62
- package/dist/ripgrep.js +72 -72
- package/dist/rpc.js +65 -65
- package/dist/session/command.js +58 -58
- package/dist/session/compaction.js +102 -102
- package/dist/session/context.js +122 -122
- package/dist/session/diff.js +65 -65
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +109 -109
- package/dist/session/execution.js +98 -98
- package/dist/session/generate.js +123 -123
- package/dist/session/history.js +6 -6
- package/dist/session/inbox.js +69 -69
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +59 -59
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +73 -73
- package/dist/session/model-request.js +92 -92
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +100 -100
- package/dist/session/projector.js +63 -63
- package/dist/session/prompt.js +80 -80
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +66 -66
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +178 -178
- package/dist/session/runner/model.js +75 -75
- package/dist/session/runner/publish-llm-event.js +86 -86
- package/dist/session/runner/step.js +92 -92
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +125 -125
- package/dist/session/shell.js +96 -96
- package/dist/session/skill.js +79 -79
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +67 -67
- package/dist/session/subagent-job.js +163 -163
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +119 -119
- package/dist/session/to-session-error.js +85 -85
- package/dist/session/transfer.js +104 -104
- package/dist/session.js +171 -171
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +14 -14
- package/dist/shell.js +97 -97
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +83 -83
- package/dist/skill.js +86 -86
- package/dist/snapshot.js +70 -70
- package/dist/tool/mcp.js +97 -97
- package/dist/tool/plugin/edit.js +86 -86
- package/dist/tool/plugin/glob.js +96 -96
- package/dist/tool/plugin/grep.js +96 -96
- package/dist/tool/plugin/mcp-resource.js +88 -88
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +94 -94
- package/dist/tool/plugin/question.js +79 -79
- package/dist/tool/plugin/read.js +97 -97
- package/dist/tool/plugin/shell.js +171 -171
- package/dist/tool/plugin/skill.js +87 -87
- package/dist/tool/plugin/subagent.js +170 -170
- package/dist/tool/plugin/webfetch.js +86 -86
- package/dist/tool/plugin/websearch.js +89 -89
- package/dist/tool/plugin/write.js +88 -88
- 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 +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +68 -68
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/variant.js +70 -70
- package/dist/vcs.js +68 -68
- package/dist/websearch.js +67 -67
- package/dist/wellknown/plugin.js +60 -60
- package/dist/wellknown.js +63 -63
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace.js +65 -65
- package/dist/worktree/git.js +3 -3
- package/dist/worktree/strategies.js +67 -67
- package/dist/worktree.js +75 -75
- package/package.json +8 -8
- package/dist/chunks/kv-1x068165.js +0 -26
- /package/dist/chunks/{kv-x8n5620y.js → kv-gxxkvswg.js} +0 -0
- /package/dist/chunks/{kv-2bzwd702.js → kv-r101cspy.js} +0 -0
- /package/dist/chunks/{kv-2hg7qvzt.js → kv-rf80fxgj.js} +0 -0
- /package/dist/chunks/{kv-gyt7gbrq.js → kv-vnnhbf40.js} +0 -0
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
PATCH_CONTEXT_LINES2
|
|
3
3
|
} from "./kv-tazgh4e4.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./kv-
|
|
5
|
+
ID5,
|
|
6
|
+
Service36
|
|
7
|
+
} from "./kv-kpg2gynq.js";
|
|
8
8
|
import {
|
|
9
9
|
SessionSchema2
|
|
10
|
-
} from "./kv-
|
|
10
|
+
} from "./kv-vx3jgdek.js";
|
|
11
11
|
import {
|
|
12
12
|
MessageNotFoundError2
|
|
13
|
-
} from "./kv-
|
|
13
|
+
} from "./kv-yhq47pcp.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
16
|
} from "./kv-9e5bzkjp.js";
|
|
@@ -81,14 +81,14 @@ var turn2 = Effect.fn("SessionDiff.turn")(function* (db, locations, input) {
|
|
|
81
81
|
const location = before ? decodeLocation(before) : after ? decodeLocation(after) : input.session.location;
|
|
82
82
|
const recorded = steps.findLast((step) => step.end)?.end;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
|
-
const snapshot = yield*
|
|
84
|
+
const snapshot = yield* Service36;
|
|
85
85
|
const running = input.active && final.completed === null;
|
|
86
86
|
const to = running ? (yield* snapshot.capture()) ?? recorded : recorded;
|
|
87
87
|
if (!to)
|
|
88
88
|
return [];
|
|
89
89
|
return yield* snapshot.diff({
|
|
90
|
-
from:
|
|
91
|
-
to:
|
|
90
|
+
from: ID5.make(from),
|
|
91
|
+
to: ID5.make(to),
|
|
92
92
|
context: input.context ?? PATCH_CONTEXT_LINES2
|
|
93
93
|
});
|
|
94
94
|
}).pipe(Effect.provide(locations.get(location)));
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentNotFoundError2,
|
|
3
3
|
StepFailedError2
|
|
4
|
-
} from "./kv-
|
|
4
|
+
} from "./kv-yhq47pcp.js";
|
|
5
5
|
import {
|
|
6
6
|
CorrectedError2,
|
|
7
7
|
BlockedError2
|
|
8
|
-
} from "./kv-
|
|
8
|
+
} from "./kv-91xts6ft.js";
|
|
9
9
|
import {
|
|
10
10
|
AuthorizationError2
|
|
11
|
-
} from "./kv-
|
|
11
|
+
} from "./kv-ee8xpbar.js";
|
|
12
12
|
import {
|
|
13
13
|
VariantUnavailableError2,
|
|
14
14
|
UnsupportedPackageError2,
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
ModelInitializationError2,
|
|
17
17
|
UnresolvedProviderVariablesError2,
|
|
18
18
|
UnsupportedCompactionError2
|
|
19
|
-
} from "./kv-
|
|
19
|
+
} from "./kv-g549jxts.js";
|
|
20
20
|
import {
|
|
21
21
|
ModelNotSelectedError2,
|
|
22
22
|
ModelUnavailableError2
|
|
23
|
-
} from "./kv-
|
|
23
|
+
} from "./kv-6858qs0d.js";
|
|
24
24
|
|
|
25
25
|
// src/session/to-session-error.ts
|
|
26
26
|
import { AIError, ToolFailure } from "@opencode/ai";
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83
|
|
3
|
-
} from "./kv-
|
|
3
|
+
} from "./kv-tnxzcmvm.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./kv-
|
|
5
|
+
Service36
|
|
6
|
+
} from "./kv-kpg2gynq.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./kv-
|
|
8
|
+
Error5
|
|
9
|
+
} from "./kv-2fcn0a3n.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./kv-
|
|
11
|
+
Service49
|
|
12
|
+
} from "./kv-y8wcetdn.js";
|
|
13
13
|
import {
|
|
14
14
|
StepFailedError2
|
|
15
|
-
} from "./kv-
|
|
15
|
+
} from "./kv-yhq47pcp.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionEvent2
|
|
18
18
|
} from "./kv-ec1grn59.js";
|
|
19
19
|
import {
|
|
20
20
|
toSessionError2
|
|
21
|
-
} from "./kv-
|
|
21
|
+
} from "./kv-hq1swd7v.js";
|
|
22
22
|
import {
|
|
23
23
|
calculateCost2
|
|
24
24
|
} from "./kv-tdstcens.js";
|
|
25
25
|
import {
|
|
26
26
|
createLLMEventPublisher2
|
|
27
|
-
} from "./kv-
|
|
27
|
+
} from "./kv-qey3k095.js";
|
|
28
28
|
import {
|
|
29
29
|
isRetryable2
|
|
30
30
|
} from "./kv-zyk1yjk8.js";
|
|
@@ -54,8 +54,8 @@ var RESULT_MISSING = { type: "tool.result-missing", message: "Provider did not r
|
|
|
54
54
|
var make3 = Effect.gen(function* () {
|
|
55
55
|
const bus = yield* Service83;
|
|
56
56
|
const llm = yield* LLMClient.Service;
|
|
57
|
-
const snapshots = yield*
|
|
58
|
-
const toolOutput = yield*
|
|
57
|
+
const snapshots = yield* Service36;
|
|
58
|
+
const toolOutput = yield* Service49;
|
|
59
59
|
const attempt = Effect.fn("SessionStep.attempt")(function* (input) {
|
|
60
60
|
const startSnapshot = yield* snapshots.capture();
|
|
61
61
|
const publisher = createLLMEventPublisher2(bus, {
|
|
@@ -71,7 +71,7 @@ var make3 = Effect.gen(function* () {
|
|
|
71
71
|
const interruptTools = Effect.suspend(() => Fiber.interruptAll(toolRuns.map((run) => run.fiber)));
|
|
72
72
|
const executeTool = (call) => {
|
|
73
73
|
if (input.prepared.request.toolChoice?.type === "none")
|
|
74
|
-
return new
|
|
74
|
+
return new Error5({ message: "Tools are disabled after the maximum agent steps" });
|
|
75
75
|
return input.prepared.executeTool({
|
|
76
76
|
sessionID: input.sessionID,
|
|
77
77
|
agent: input.agent,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./kv-
|
|
2
|
+
Service78
|
|
3
|
+
} from "./kv-bebjmbk5.js";
|
|
4
4
|
import {
|
|
5
5
|
DirectoryUnavailableError2,
|
|
6
6
|
canonical2
|
|
@@ -20,7 +20,7 @@ import { Worktree } from "@opencode/schema/worktree";
|
|
|
20
20
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
21
21
|
var make13 = Effect.gen(function* () {
|
|
22
22
|
const fs = yield* FSUtil.Service;
|
|
23
|
-
const git = yield*
|
|
23
|
+
const git = yield* Service78;
|
|
24
24
|
return {
|
|
25
25
|
id: Worktree.StrategyID.make("git"),
|
|
26
26
|
create: Effect.fn("Worktree.Git.create")(function* (input) {
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID10,
|
|
3
|
-
|
|
4
|
-
} from "./kv-
|
|
3
|
+
Service66
|
|
4
|
+
} from "./kv-89xk2mrn.js";
|
|
5
5
|
import {
|
|
6
6
|
Ref2,
|
|
7
|
-
|
|
8
|
-
} from "./kv-
|
|
7
|
+
Service72
|
|
8
|
+
} from "./kv-drmw43ea.js";
|
|
9
9
|
import {
|
|
10
10
|
latest2,
|
|
11
|
-
|
|
12
|
-
} from "./kv-
|
|
11
|
+
Service50
|
|
12
|
+
} from "./kv-apeyh75a.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionSchema2
|
|
15
|
-
} from "./kv-
|
|
15
|
+
} from "./kv-vx3jgdek.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./kv-
|
|
17
|
+
Service45
|
|
18
|
+
} from "./kv-ew12th47.js";
|
|
19
19
|
import {
|
|
20
20
|
evaluate2,
|
|
21
|
-
|
|
22
|
-
} from "./kv-
|
|
21
|
+
Service63
|
|
22
|
+
} from "./kv-91xts6ft.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./kv-
|
|
24
|
+
Service24
|
|
25
|
+
} from "./kv-v2p84kh2.js";
|
|
26
26
|
import {
|
|
27
27
|
NO_TEXT2
|
|
28
28
|
} from "./kv-6xb47vfp.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./kv-
|
|
30
|
+
make10
|
|
31
|
+
} from "./kv-t1nf5an5.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
34
|
} from "./kv-9rqn6x4v.js";
|
|
@@ -36,16 +36,16 @@ import {
|
|
|
36
36
|
// src/tool/plugin/subagent.ts
|
|
37
37
|
var exports_subagent = {};
|
|
38
38
|
__export(exports_subagent, {
|
|
39
|
-
Input: () =>
|
|
39
|
+
Input: () => Input8,
|
|
40
40
|
Output: () => Output6,
|
|
41
|
-
Plugin: () =>
|
|
41
|
+
Plugin: () => Plugin42,
|
|
42
42
|
SubagentTool: () => exports_subagent,
|
|
43
|
-
description: () =>
|
|
44
|
-
name: () =>
|
|
43
|
+
description: () => description3,
|
|
44
|
+
name: () => name8
|
|
45
45
|
});
|
|
46
46
|
import { ToolFailure } from "@opencode/ai";
|
|
47
47
|
import { Effect, Predicate, Schema } from "effect";
|
|
48
|
-
var
|
|
48
|
+
var name8 = "subagent";
|
|
49
49
|
var backgroundResult = (sessionID) => ({
|
|
50
50
|
sessionID,
|
|
51
51
|
status: "running",
|
|
@@ -56,7 +56,7 @@ var backgroundResult = (sessionID) => ({
|
|
|
56
56
|
].join(`
|
|
57
57
|
`)
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var Input8 = Schema.Struct({
|
|
60
60
|
agent: Schema.String.annotate({
|
|
61
61
|
description: "The type of specialized agent to use for this task. If the user asks for a subagent by a name that is not one of the available subagents, they most likely mean a model: pick a suitable agent and pass the name through the model parameter instead."
|
|
62
62
|
}),
|
|
@@ -77,7 +77,7 @@ var Output6 = Schema.Struct({
|
|
|
77
77
|
status: Schema.Literals(["completed", "running"]),
|
|
78
78
|
output: Schema.String
|
|
79
79
|
});
|
|
80
|
-
var
|
|
80
|
+
var description3 = [
|
|
81
81
|
"Spawns an agent in a child session to work on the specified task.",
|
|
82
82
|
"The output includes a sessionID you can pass back later to continue that specific conversation with the subagent.",
|
|
83
83
|
"New child sessions start with fresh context, so include all relevant context and instructions when you don't pass a sessionID.",
|
|
@@ -86,16 +86,16 @@ var description4 = [
|
|
|
86
86
|
"Use background only for independent work that can run while you continue elsewhere."
|
|
87
87
|
].join(`
|
|
88
88
|
`);
|
|
89
|
-
var
|
|
89
|
+
var Plugin42 = {
|
|
90
90
|
id: "opencode.tool.subagent",
|
|
91
91
|
effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
|
|
92
|
-
const sessions = yield*
|
|
93
|
-
const jobs = yield*
|
|
94
|
-
const agents = yield*
|
|
95
|
-
const config = yield*
|
|
96
|
-
const permission = yield*
|
|
97
|
-
const models = yield*
|
|
98
|
-
const subagents = yield*
|
|
92
|
+
const sessions = yield* Service24;
|
|
93
|
+
const jobs = yield* Service45;
|
|
94
|
+
const agents = yield* Service66;
|
|
95
|
+
const config = yield* Service50;
|
|
96
|
+
const permission = yield* Service63;
|
|
97
|
+
const models = yield* Service72;
|
|
98
|
+
const subagents = yield* make10;
|
|
99
99
|
const resolveModel = Effect.fn("SubagentTool.resolveModel")(function* (input) {
|
|
100
100
|
const ref = yield* Effect.try({
|
|
101
101
|
try: () => Ref2.parse(input),
|
|
@@ -115,10 +115,10 @@ var Plugin12 = {
|
|
|
115
115
|
return ref;
|
|
116
116
|
});
|
|
117
117
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
118
|
-
name:
|
|
118
|
+
name: name8,
|
|
119
119
|
options: { codemode: false },
|
|
120
|
-
description:
|
|
121
|
-
input:
|
|
120
|
+
description: description3,
|
|
121
|
+
input: Input8,
|
|
122
122
|
output: Output6,
|
|
123
123
|
execute: (input, context) => Effect.gen(function* () {
|
|
124
124
|
const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
|
|
@@ -139,7 +139,7 @@ var Plugin12 = {
|
|
|
139
139
|
if (agent.mode === "primary")
|
|
140
140
|
return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
|
|
141
141
|
yield* permission.assert({
|
|
142
|
-
action:
|
|
142
|
+
action: name8,
|
|
143
143
|
resources: [agent.id],
|
|
144
144
|
save: [agent.id],
|
|
145
145
|
sessionID: context.sessionID,
|
|
@@ -218,7 +218,7 @@ ${output.output}
|
|
|
218
218
|
})))
|
|
219
219
|
})).pipe(Effect.orDie);
|
|
220
220
|
yield* ctx.tool.hook("execute.before", (event) => Effect.sync(() => {
|
|
221
|
-
if (event.tool !==
|
|
221
|
+
if (event.tool !== name8 || !Predicate.isObject(event.input))
|
|
222
222
|
return;
|
|
223
223
|
if (event.input.model !== "" && event.input.sessionID !== "")
|
|
224
224
|
return;
|
|
@@ -230,13 +230,13 @@ ${output.output}
|
|
|
230
230
|
event.input = input;
|
|
231
231
|
}));
|
|
232
232
|
const hook = (event) => Effect.gen(function* () {
|
|
233
|
-
const tool = event.tools[
|
|
233
|
+
const tool = event.tools[name8];
|
|
234
234
|
if (!tool)
|
|
235
235
|
return;
|
|
236
236
|
const selected = yield* agents.resolve(event.agent);
|
|
237
237
|
if (!selected)
|
|
238
238
|
return;
|
|
239
|
-
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(
|
|
239
|
+
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name8, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
|
|
240
240
|
if (available.length === 0)
|
|
241
241
|
return;
|
|
242
242
|
tool.description = [
|
|
@@ -253,4 +253,4 @@ ${output.output}
|
|
|
253
253
|
})
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
-
export {
|
|
256
|
+
export { name8, Input8, Output6, description3, Plugin42, exports_subagent };
|
|
@@ -5,26 +5,26 @@ import {
|
|
|
5
5
|
RelativePath2
|
|
6
6
|
} from "./kv-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./kv-
|
|
8
|
+
Service76
|
|
9
|
+
} from "./kv-8cseh6jw.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./kv-
|
|
11
|
+
Service53
|
|
12
|
+
} from "./kv-wmnwwwhc.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./kv-
|
|
14
|
+
Service19
|
|
15
|
+
} from "./kv-797efr59.js";
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_SEARCH_LIMIT2,
|
|
18
18
|
DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
19
19
|
GlobInput2,
|
|
20
20
|
Entry2
|
|
21
|
-
} from "./kv-
|
|
21
|
+
} from "./kv-3axgwepp.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./kv-
|
|
23
|
+
Service63
|
|
24
|
+
} from "./kv-91xts6ft.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./kv-
|
|
26
|
+
Service20
|
|
27
|
+
} from "./kv-n0571dh0.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
30
|
} from "./kv-9rqn6x4v.js";
|
|
@@ -33,17 +33,17 @@ import {
|
|
|
33
33
|
var exports_glob = {};
|
|
34
34
|
__export(exports_glob, {
|
|
35
35
|
GlobTool: () => exports_glob,
|
|
36
|
-
Input: () =>
|
|
37
|
-
Output: () =>
|
|
38
|
-
Plugin: () =>
|
|
39
|
-
name: () =>
|
|
40
|
-
toModelContent: () =>
|
|
36
|
+
Input: () => Input11,
|
|
37
|
+
Output: () => Output7,
|
|
38
|
+
Plugin: () => Plugin47,
|
|
39
|
+
name: () => name11,
|
|
40
|
+
toModelContent: () => toModelContent6
|
|
41
41
|
});
|
|
42
42
|
import { ToolFailure } from "@opencode/ai";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
import path from "path";
|
|
45
|
-
var
|
|
46
|
-
var
|
|
45
|
+
var name11 = "glob";
|
|
46
|
+
var Input11 = Schema.Struct({
|
|
47
47
|
pattern: GlobInput2.fields.pattern.annotate({ description: "Glob pattern to match files against" }),
|
|
48
48
|
path: Schema.optionalKey(RelativePath2).annotate({
|
|
49
49
|
description: "Directory to search. Defaults to the current working directory."
|
|
@@ -55,35 +55,35 @@ var Input3 = Schema.Struct({
|
|
|
55
55
|
description: `Maximum number of matching files to return (default: ${DEFAULT_SEARCH_LIMIT2})`
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
|
-
var
|
|
59
|
-
var
|
|
58
|
+
var Output7 = Schema.Array(Entry2);
|
|
59
|
+
var toModelContent6 = (entries, truncated = false) => {
|
|
60
60
|
const lines = entries.length === 0 ? ["No files found"] : entries.map((item) => item.path);
|
|
61
61
|
if (truncated)
|
|
62
62
|
lines.push("", `(Results are truncated: showing first ${entries.length} results. Consider using a more specific path or pattern.)`);
|
|
63
63
|
return lines.join(`
|
|
64
64
|
`);
|
|
65
65
|
};
|
|
66
|
-
var
|
|
66
|
+
var Plugin47 = {
|
|
67
67
|
id: "opencode.tool.glob",
|
|
68
68
|
effect: Effect.fn("GlobTool.Plugin")(function* (ctx) {
|
|
69
|
-
const environment = yield*
|
|
70
|
-
const ripgrep = yield*
|
|
71
|
-
const location = yield*
|
|
72
|
-
const access = yield*
|
|
73
|
-
const permission = yield*
|
|
69
|
+
const environment = yield* Service53;
|
|
70
|
+
const ripgrep = yield* Service19;
|
|
71
|
+
const location = yield* Service76;
|
|
72
|
+
const access = yield* Service20;
|
|
73
|
+
const permission = yield* Service63;
|
|
74
74
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
75
|
-
name:
|
|
75
|
+
name: name11,
|
|
76
76
|
options: { codemode: false },
|
|
77
77
|
description: 'Search file paths using a glob pattern (examples: "**/*.ts", "src/**/*.tsx").',
|
|
78
|
-
input:
|
|
79
|
-
output:
|
|
78
|
+
input: Input11,
|
|
79
|
+
output: Output7,
|
|
80
80
|
execute: (input, context) => Effect.gen(function* () {
|
|
81
81
|
const searchPath = input.path === "undefined" || input.path === "null" ? undefined : input.path;
|
|
82
82
|
const source = { type: "tool", messageID: context.messageID, id: context.id };
|
|
83
83
|
const target = yield* access.resolve({ path: searchPath ?? ".", kind: "directory" });
|
|
84
84
|
yield* access.authorizeExternal([target], context);
|
|
85
85
|
yield* permission.assert({
|
|
86
|
-
action:
|
|
86
|
+
action: name11,
|
|
87
87
|
resources: [input.pattern],
|
|
88
88
|
save: ["*"],
|
|
89
89
|
metadata: {
|
|
@@ -118,11 +118,11 @@ var Plugin5 = {
|
|
|
118
118
|
return { entries: entries.slice(0, limit), truncated: entries.length > limit };
|
|
119
119
|
}).pipe(Effect.map((result) => ({
|
|
120
120
|
output: result.entries,
|
|
121
|
-
content:
|
|
121
|
+
content: toModelContent6(result.entries.map((entry) => ({ ...entry, path: path.resolve(location.directory, entry.path) })), result.truncated),
|
|
122
122
|
metadata: { count: result.entries.length, truncated: result.truncated }
|
|
123
123
|
})), Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to find files matching ${input.pattern}`, error })))
|
|
124
124
|
})).pipe(Effect.orDie);
|
|
125
125
|
})
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export {
|
|
128
|
+
export { name11, Input11, Output7, toModelContent6, Plugin47, exports_glob };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./kv-
|
|
2
|
+
render2
|
|
3
|
+
} from "./kv-w19d8598.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./kv-9rqn6x4v.js";
|
|
@@ -424,7 +424,7 @@ function make(id, optimize, mode = "override") {
|
|
|
424
424
|
const system = event.system[0];
|
|
425
425
|
if (!system)
|
|
426
426
|
return;
|
|
427
|
-
const rendered =
|
|
427
|
+
const rendered = render2(template, Object.keys(event.tools));
|
|
428
428
|
const text = mode === "append" ? `${system.text}
|
|
429
429
|
|
|
430
430
|
${rendered}` : rendered;
|
|
@@ -1,90 +1,90 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AmazonBedrockPlugin2
|
|
3
|
-
} from "./kv-
|
|
3
|
+
} from "./kv-re39fj6q.js";
|
|
4
4
|
import {
|
|
5
5
|
AzurePlugin2
|
|
6
|
-
} from "./kv-
|
|
6
|
+
} from "./kv-qh99jyhd.js";
|
|
7
7
|
import {
|
|
8
8
|
CerebrasPlugin2
|
|
9
9
|
} from "./kv-wc3fc9cn.js";
|
|
10
10
|
import {
|
|
11
11
|
ChatGPTPlugin2
|
|
12
|
-
} from "./kv-
|
|
12
|
+
} from "./kv-fz64p049.js";
|
|
13
13
|
import {
|
|
14
14
|
CloudflareAIGatewayPlugin2
|
|
15
|
-
} from "./kv-
|
|
15
|
+
} from "./kv-s1vq5vjj.js";
|
|
16
16
|
import {
|
|
17
17
|
CloudflareWorkersAIPlugin2
|
|
18
|
-
} from "./kv-
|
|
18
|
+
} from "./kv-bx744vwq.js";
|
|
19
19
|
import {
|
|
20
20
|
CoherePlugin2
|
|
21
21
|
} from "./kv-z0bkrqjs.js";
|
|
22
22
|
import {
|
|
23
23
|
DigitalOceanPlugin2
|
|
24
|
-
} from "./kv-
|
|
24
|
+
} from "./kv-qdq3033d.js";
|
|
25
25
|
import {
|
|
26
26
|
DynamicProviderPlugin2
|
|
27
27
|
} from "./kv-5m9w47nd.js";
|
|
28
28
|
import {
|
|
29
29
|
GithubCopilotPlugin2
|
|
30
|
-
} from "./kv-
|
|
30
|
+
} from "./kv-3m2w0hrx.js";
|
|
31
31
|
import {
|
|
32
32
|
GitLabPlugin2
|
|
33
|
-
} from "./kv-
|
|
33
|
+
} from "./kv-evpcrbn2.js";
|
|
34
34
|
import {
|
|
35
35
|
GoogleVertexPlugin2
|
|
36
|
-
} from "./kv-
|
|
36
|
+
} from "./kv-n9tt80yh.js";
|
|
37
37
|
import {
|
|
38
38
|
KiloPlugin2
|
|
39
39
|
} from "./kv-qg3g05ea.js";
|
|
40
40
|
import {
|
|
41
41
|
LLMGatewayPlugin2
|
|
42
|
-
} from "./kv-
|
|
42
|
+
} from "./kv-sppc6c79.js";
|
|
43
43
|
import {
|
|
44
44
|
LMStudioPlugin2
|
|
45
|
-
} from "./kv-
|
|
45
|
+
} from "./kv-7c9bbt45.js";
|
|
46
46
|
import {
|
|
47
47
|
ModalPlugin2
|
|
48
|
-
} from "./kv-
|
|
48
|
+
} from "./kv-a5wq81es.js";
|
|
49
49
|
import {
|
|
50
50
|
NvidiaPlugin2
|
|
51
51
|
} from "./kv-24dcb14g.js";
|
|
52
52
|
import {
|
|
53
53
|
OllamaPlugin2
|
|
54
|
-
} from "./kv-
|
|
54
|
+
} from "./kv-vpjxjfws.js";
|
|
55
55
|
import {
|
|
56
56
|
OpenAIPlugin3
|
|
57
|
-
} from "./kv-
|
|
57
|
+
} from "./kv-2cwhkz2n.js";
|
|
58
58
|
import {
|
|
59
59
|
SnowflakeCortexPlugin2
|
|
60
|
-
} from "./kv-
|
|
60
|
+
} from "./kv-tk8acvkq.js";
|
|
61
61
|
import {
|
|
62
62
|
OpencodePlugin2
|
|
63
|
-
} from "./kv-
|
|
63
|
+
} from "./kv-2xd3k6k6.js";
|
|
64
64
|
import {
|
|
65
65
|
OpenRouterPlugin2
|
|
66
|
-
} from "./kv-
|
|
66
|
+
} from "./kv-rqwx90yh.js";
|
|
67
67
|
import {
|
|
68
68
|
PerplexityPlugin2
|
|
69
69
|
} from "./kv-veqvce7d.js";
|
|
70
70
|
import {
|
|
71
71
|
PoePlugin2
|
|
72
|
-
} from "./kv-
|
|
72
|
+
} from "./kv-a92h78km.js";
|
|
73
73
|
import {
|
|
74
74
|
PromptCacheKeyPlugin2
|
|
75
|
-
} from "./kv-
|
|
75
|
+
} from "./kv-00zna71j.js";
|
|
76
76
|
import {
|
|
77
77
|
SapAICorePlugin2
|
|
78
|
-
} from "./kv-
|
|
78
|
+
} from "./kv-ey7zsb2z.js";
|
|
79
79
|
import {
|
|
80
80
|
VercelPlugin2
|
|
81
|
-
} from "./kv-
|
|
81
|
+
} from "./kv-bwaap7p9.js";
|
|
82
82
|
import {
|
|
83
83
|
VLLMPlugin2
|
|
84
|
-
} from "./kv-
|
|
84
|
+
} from "./kv-d5q12aqz.js";
|
|
85
85
|
import {
|
|
86
86
|
XAIPlugin2
|
|
87
|
-
} from "./kv-
|
|
87
|
+
} from "./kv-pnedbpq6.js";
|
|
88
88
|
import {
|
|
89
89
|
ZenmuxPlugin2
|
|
90
90
|
} from "./kv-jjkms2e6.js";
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
var exports_mcp_codemode_defaults = {};
|
|
7
7
|
__export(exports_mcp_codemode_defaults, {
|
|
8
8
|
McpCodeModeDefaultsPlugin: () => exports_mcp_codemode_defaults,
|
|
9
|
-
Plugin: () =>
|
|
9
|
+
Plugin: () => Plugin34
|
|
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
14
|
var posthog = /^mcp(?:-eu|\.us|\.eu)?\.posthog\.com$/;
|
|
15
15
|
var mode = "x-posthog-mcp-mode";
|
|
16
|
-
var
|
|
16
|
+
var Plugin34 = define({
|
|
17
17
|
id: "opencode.mcp.codemode.defaults",
|
|
18
18
|
effect: Effect.fn(function* (ctx) {
|
|
19
19
|
yield* ctx.mcp.transform((editor) => {
|
|
@@ -38,4 +38,4 @@ var Plugin39 = define({
|
|
|
38
38
|
})
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
export {
|
|
41
|
+
export { Plugin34, exports_mcp_codemode_defaults };
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
AbsolutePath2
|
|
6
6
|
} from "./kv-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID7,
|
|
9
9
|
Name2
|
|
10
|
-
} from "./kv-
|
|
10
|
+
} from "./kv-aa77x952.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./kv-9rqn6x4v.js";
|
|
@@ -62,7 +62,7 @@ function parse2(directory, filepath, content) {
|
|
|
62
62
|
return {
|
|
63
63
|
_tag: "Parsed",
|
|
64
64
|
skill: {
|
|
65
|
-
id:
|
|
65
|
+
id: ID7.make(id),
|
|
66
66
|
name: Name2.make(frontmatter.name ?? id),
|
|
67
67
|
...frontmatter.description === undefined ? {} : { description: frontmatter.description },
|
|
68
68
|
...autoinvoke === undefined ? {} : { autoinvoke },
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
// src/skill/discovery.ts
|
|
9
9
|
var exports_discovery = {};
|
|
10
10
|
__export(exports_discovery, {
|
|
11
|
-
Service: () =>
|
|
11
|
+
Service: () => Service12,
|
|
12
12
|
SkillDiscovery: () => exports_discovery,
|
|
13
|
-
node: () =>
|
|
13
|
+
node: () => node14
|
|
14
14
|
});
|
|
15
15
|
import path from "path";
|
|
16
16
|
import { Context, Effect, Layer, Schedule, Schema } from "effect";
|
|
@@ -48,9 +48,9 @@ class Index extends Schema.Class("SkillDiscovery.Index")({
|
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service12 extends Context.Service()("@opencode/SkillDiscovery") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
53
|
+
var layer = Layer.effect(Service12, Effect.gen(function* () {
|
|
54
54
|
const fs = yield* FSUtil.Service;
|
|
55
55
|
const global = yield* Global.Service;
|
|
56
56
|
const http = (yield* HttpClient.HttpClient).pipe(HttpClient.retryTransient({
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service7, Effect.gen(function* () {
|
|
|
63
63
|
return true;
|
|
64
64
|
return yield* HttpClientRequest.get(url).pipe(http.execute, Effect.flatMap((response) => response.arrayBuffer), Effect.flatMap((body) => fs.writeWithDirs(destination, new Uint8Array(body))), Effect.as(true), Effect.catch((error) => Effect.logError("failed to download skill file", { url, error }).pipe(Effect.as(false))));
|
|
65
65
|
});
|
|
66
|
-
return
|
|
66
|
+
return Service12.of({
|
|
67
67
|
pull: Effect.fn("SkillDiscovery.pull")(function* (url) {
|
|
68
68
|
const base = url.endsWith("/") ? url : `${url}/`;
|
|
69
69
|
const source = new URL(base);
|
|
@@ -150,6 +150,6 @@ var layer = Layer.effect(Service7, Effect.gen(function* () {
|
|
|
150
150
|
})
|
|
151
151
|
});
|
|
152
152
|
}));
|
|
153
|
-
var
|
|
153
|
+
var node14 = makeGlobalNode({ service: Service12, layer, deps: [httpClient, FSUtil.node, Global.node] });
|
|
154
154
|
|
|
155
|
-
export {
|
|
155
|
+
export { Service12, node14, exports_discovery };
|