@opencode/core 0.0.0-dev-236 → 0.0.0-dev-241
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 +75 -75
- package/dist/aisdk-native.js +80 -80
- package/dist/aisdk.js +85 -85
- package/dist/app.js +7 -7
- package/dist/bus.js +64 -64
- package/dist/chunks/{form-z2s36kx0.js → form-06b0dpwc.js} +4 -4
- package/dist/chunks/{form-er9840mn.js → form-08h3dm3g.js} +152 -152
- package/dist/chunks/{form-crdv0qyn.js → form-0a7n7kwt.js} +1 -1
- package/dist/chunks/{form-wpm462xr.js → form-0geg3vaz.js} +4 -4
- package/dist/chunks/{form-7hv4r7xp.js → form-0kfnnbj0.js} +15 -15
- package/dist/chunks/{form-x26wqd07.js → form-0m9q59s6.js} +3 -3
- package/dist/chunks/{form-swhkgwn8.js → form-0z8aj9nb.js} +64 -64
- package/dist/chunks/{form-t08mfb53.js → form-0zracm40.js} +42 -42
- package/dist/chunks/{form-xhr3cxyj.js → form-12ce349e.js} +9 -9
- package/dist/chunks/{form-wz4vvgzg.js → form-164bbpt7.js} +31 -31
- package/dist/chunks/{form-5n27fd96.js → form-16twya52.js} +8 -8
- package/dist/chunks/{form-60v1vsga.js → form-17nembyj.js} +44 -44
- package/dist/chunks/{form-37cecxny.js → form-1ehhk9f8.js} +22 -22
- package/dist/chunks/{form-27w5k9zf.js → form-1ep2p91f.js} +1 -1
- package/dist/chunks/{form-a66tgrbp.js → form-1fy8p9jc.js} +18 -18
- package/dist/chunks/{form-y3ryyqft.js → form-1hc4tfsd.js} +1 -1
- package/dist/chunks/form-1kh93h0h.js +26 -0
- package/dist/chunks/{form-gtn9c16a.js → form-1kn6jdkn.js} +3 -3
- package/dist/chunks/{form-45qxjkfx.js → form-1kyyf73t.js} +8 -8
- package/dist/chunks/{form-cykhmcxq.js → form-1q3qkd77.js} +7 -7
- package/dist/chunks/{form-8kvd5mpw.js → form-1rp9wec1.js} +3 -3
- package/dist/chunks/{form-4er7ty69.js → form-1vseb64s.js} +12 -12
- package/dist/chunks/{form-5zrxpy3q.js → form-1yq9hg58.js} +4 -4
- package/dist/chunks/{form-h9bxdqvt.js → form-21aep2yn.js} +4 -4
- package/dist/chunks/{form-p71ca3rx.js → form-225yscb7.js} +17 -17
- package/dist/chunks/{form-8b3vzgkx.js → form-25h84942.js} +3 -3
- package/dist/chunks/{form-g3d9y95k.js → form-2bgp64vn.js} +19 -19
- package/dist/chunks/{form-dt7r1hfc.js → form-2hz06pja.js} +3 -3
- package/dist/chunks/{form-cn8yknkt.js → form-2t5drfwv.js} +9 -9
- package/dist/chunks/{form-115q1jpg.js → form-2zxqqy9n.js} +2 -2
- package/dist/chunks/{form-g4n1wayp.js → form-30ae49hf.js} +13 -13
- package/dist/chunks/{form-9wfhnavn.js → form-344ymb5t.js} +44 -44
- package/dist/chunks/{form-cpr2q5y2.js → form-34czpf76.js} +24 -24
- package/dist/chunks/{form-hz4138gk.js → form-3e3pzb31.js} +10 -10
- package/dist/chunks/{form-ma4f8va9.js → form-3ve3e0bk.js} +15 -15
- package/dist/chunks/{form-4nawp0d8.js → form-3yz3az2p.js} +183 -183
- package/dist/chunks/{form-p27rrfjt.js → form-44bj7geh.js} +19 -19
- package/dist/chunks/{form-9qg9k9gh.js → form-47xk0geh.js} +16 -16
- package/dist/chunks/{form-ctfjhx7j.js → form-4e78z1nw.js} +14 -14
- package/dist/chunks/{form-69p76eyw.js → form-4wc1e944.js} +32 -32
- package/dist/chunks/{form-jxb3gtw0.js → form-56xpzs9c.js} +7 -7
- package/dist/chunks/{form-2nm4w996.js → form-5a6cq72k.js} +37 -37
- package/dist/chunks/{form-r41sfy63.js → form-5enarcya.js} +7 -7
- package/dist/chunks/{form-mf20dtnm.js → form-5gahmjy1.js} +7 -7
- package/dist/chunks/{form-cram7zgt.js → form-5gse0r5n.js} +7 -7
- package/dist/chunks/{form-s6pdabng.js → form-5m24a4sd.js} +21 -21
- package/dist/chunks/{form-b6vsg801.js → form-5nnwax6m.js} +3 -3
- package/dist/chunks/{form-rhry30kd.js → form-5qjz8kxn.js} +10 -10
- package/dist/chunks/{form-0j3zdga0.js → form-5w6nd1s8.js} +1 -1
- package/dist/chunks/{form-20h0fae3.js → form-69vbzxa1.js} +32 -32
- package/dist/chunks/{form-vpakn3dw.js → form-6wmf2q20.js} +10 -10
- package/dist/chunks/{form-m7q6ddj2.js → form-6xqtcmxs.js} +3 -3
- package/dist/chunks/{form-2dkjcnxp.js → form-6zjm2phc.js} +4 -4
- package/dist/chunks/{form-67kez8k6.js → form-7bcs6f94.js} +11 -11
- package/dist/chunks/{form-9bcxv424.js → form-7fy0h8rf.js} +8 -8
- package/dist/chunks/{form-5s3wzs2b.js → form-7r72dc1g.js} +11 -11
- package/dist/chunks/{form-gfdy171d.js → form-80d2zcb4.js} +71 -71
- package/dist/chunks/{form-fs9kz63c.js → form-885474ts.js} +13 -13
- package/dist/chunks/{form-6xa52pg9.js → form-8azpkpgk.js} +333 -333
- package/dist/chunks/{form-7tyeehtt.js → form-8cbkaxar.js} +3 -3
- package/dist/chunks/{form-7wx5knwb.js → form-8pyh3h24.js} +24 -24
- package/dist/chunks/{form-gm7a1s2a.js → form-8q7qvvvm.js} +13 -13
- package/dist/chunks/{form-nm34g1pn.js → form-8xqhc33s.js} +9 -9
- package/dist/chunks/{form-4xd23xa0.js → form-9aqddysx.js} +2 -2
- package/dist/chunks/{form-5chyaczp.js → form-9f6y0syf.js} +5 -5
- package/dist/chunks/{form-rx0a7xyh.js → form-9mesydma.js} +13 -13
- package/dist/chunks/{form-nsd4cwk5.js → form-9x2ynd3b.js} +12 -12
- package/dist/chunks/{form-0g0wwtc6.js → form-a2yfqhnm.js} +27 -27
- package/dist/chunks/{form-mdva19h8.js → form-a5qbrk1x.js} +12 -12
- package/dist/chunks/{form-femntydq.js → form-a97jh5ay.js} +30 -30
- package/dist/chunks/{form-drvbhkez.js → form-agqd6nxz.js} +1 -1
- package/dist/chunks/{form-1naqjf9j.js → form-apsqrt3t.js} +40 -40
- package/dist/chunks/{form-3cbjf1nt.js → form-ayjs7tqn.js} +1 -1
- package/dist/chunks/{form-0pzggwk2.js → form-bd58n5m3.js} +23 -23
- package/dist/chunks/{form-pxsvpp78.js → form-bmp8ftgp.js} +9 -9
- package/dist/chunks/{form-hex344mn.js → form-bn194m36.js} +9 -9
- package/dist/chunks/{form-wdxw6h8d.js → form-bnrmard3.js} +5 -5
- package/dist/chunks/{form-gfnmyn48.js → form-bpmnncyw.js} +7 -7
- package/dist/chunks/{form-rp624dek.js → form-bxsgj37y.js} +14 -14
- package/dist/chunks/{form-apejkmwr.js → form-bzgcjp3p.js} +5 -5
- package/dist/chunks/{form-5w8z11at.js → form-c2t3ry2c.js} +14 -14
- package/dist/chunks/{form-2azy8kv6.js → form-c6x7d2ts.js} +3 -3
- package/dist/chunks/{form-mggs55rp.js → form-c7b37yvv.js} +12 -12
- package/dist/chunks/{form-65745s09.js → form-c8w8hrxy.js} +20 -20
- package/dist/chunks/{form-30jfg8m2.js → form-c9cgbm0j.js} +14 -14
- package/dist/chunks/{form-8f066r9v.js → form-caxfsg60.js} +16 -16
- package/dist/chunks/{form-s5pg1fnt.js → form-cecnk0g5.js} +25 -25
- package/dist/chunks/{form-s4j0n7b9.js → form-cegg4nag.js} +19 -19
- package/dist/chunks/{form-2daekhsq.js → form-cj0rt5w2.js} +13 -13
- package/dist/chunks/{form-812q73hy.js → form-ckrm4vaz.js} +17 -17
- package/dist/chunks/{form-ratsm3et.js → form-cnac7q8x.js} +15 -15
- package/dist/chunks/{form-800hrrsd.js → form-cq4y0zvs.js} +22 -22
- package/dist/chunks/{form-tm4pda5m.js → form-d0nww1bx.js} +2 -2
- package/dist/chunks/{form-jrqnrhvj.js → form-d4z67fwt.js} +10 -10
- package/dist/chunks/{form-xkkxpaxw.js → form-d877pmrn.js} +16 -16
- package/dist/chunks/{form-ex5g5fdx.js → form-dbn5ca56.js} +4 -4
- package/dist/chunks/{form-ksddj7ae.js → form-dmb95mhx.js} +14 -14
- package/dist/chunks/{form-3r13qzkr.js → form-dpb98s6z.js} +43 -43
- package/dist/chunks/{form-2gptajwx.js → form-dpd69dnd.js} +4 -4
- package/dist/chunks/{form-0zh0yqdd.js → form-dtg3e95z.js} +7 -7
- package/dist/chunks/{form-c7vtx2cj.js → form-e865fpdn.js} +18 -18
- package/dist/chunks/{form-zgd8t41s.js → form-e8jekyry.js} +7 -7
- package/dist/chunks/{form-rb8x5f8g.js → form-e9fqtmvn.js} +7 -7
- package/dist/chunks/{form-xty73vjp.js → form-ebc2yafe.js} +4 -4
- package/dist/chunks/{form-4b42mt74.js → form-eeejwcqn.js} +13 -13
- package/dist/chunks/{form-kg2n5yz1.js → form-emk1tmq0.js} +7 -7
- package/dist/chunks/{form-1gebr7re.js → form-epbdechd.js} +20 -20
- package/dist/chunks/{form-5xhxj3ma.js → form-eq53d4e8.js} +21 -21
- package/dist/chunks/{form-m4mdhy98.js → form-ertcz5s1.js} +9 -9
- package/dist/chunks/{form-tn4wkvja.js → form-ex68cs9x.js} +32 -32
- package/dist/chunks/{form-3mtymbf0.js → form-eydhdpnx.js} +39 -39
- package/dist/chunks/{form-v54nvb2h.js → form-f01y088k.js} +3 -3
- package/dist/chunks/{form-6v96zr1h.js → form-f0q877ce.js} +19 -19
- package/dist/chunks/{form-prq7xxp2.js → form-fg9p65nk.js} +4 -4
- package/dist/chunks/{form-81s2k8vv.js → form-fn32zha6.js} +16 -16
- package/dist/chunks/{form-x0kzwhb5.js → form-fq8z76yw.js} +2 -2
- package/dist/chunks/{form-np3f7rt0.js → form-fypmhnps.js} +1 -1
- package/dist/chunks/{form-9rmw0sn3.js → form-g1hcq0g8.js} +13 -13
- package/dist/chunks/{form-6733gk72.js → form-g450zyfk.js} +22 -22
- package/dist/chunks/{form-57pn975y.js → form-g85b9q37.js} +10 -10
- package/dist/chunks/{form-c4q1vm7v.js → form-g8a7cptb.js} +18 -18
- package/dist/chunks/{form-hpbhhm01.js → form-gbh3tqmh.js} +3 -3
- package/dist/chunks/{form-jynhhecs.js → form-gd8sx287.js} +2 -2
- package/dist/chunks/{form-58k7dgzm.js → form-gdn6yz18.js} +24 -24
- package/dist/chunks/{form-0a4nha02.js → form-gx6q6d4a.js} +7 -7
- package/dist/chunks/{form-jyvqgxbr.js → form-h9mc95dv.js} +32 -32
- package/dist/chunks/{form-39w9ysaz.js → form-hcawp3ym.js} +10 -10
- package/dist/chunks/{form-zep4evtf.js → form-hef4msp3.js} +14 -14
- package/dist/chunks/{form-wmsrda0h.js → form-hh288azd.js} +24 -24
- package/dist/chunks/{form-x4r85fe4.js → form-hh8z0h5r.js} +20 -20
- package/dist/chunks/{form-b0tt7fbs.js → form-hjhf5s4p.js} +17 -17
- package/dist/chunks/{form-dy2eaxm7.js → form-hnb1qy4e.js} +10 -10
- package/dist/chunks/{form-jh74jycr.js → form-hqxkkta1.js} +2 -2
- package/dist/chunks/{form-gry98xea.js → form-hsdtatpb.js} +1 -1
- package/dist/chunks/{form-z1s357w5.js → form-j0ft87f1.js} +21 -21
- package/dist/chunks/{form-gcdcpnqc.js → form-j3ahjss5.js} +32 -32
- package/dist/chunks/{form-9nbm1qb8.js → form-jhc11j6v.js} +4 -4
- package/dist/chunks/{form-65w5xxws.js → form-jheynnxb.js} +9 -9
- package/dist/chunks/{form-kg4r8sy9.js → form-jnndjjbg.js} +25 -25
- package/dist/chunks/{form-cenhz2kb.js → form-jvks6kr5.js} +22 -22
- package/dist/chunks/{form-6hc3w7dx.js → form-k5h0kew3.js} +32 -32
- package/dist/chunks/{form-xbts61dy.js → form-k67dv3fj.js} +31 -31
- package/dist/chunks/{form-9avx4ajz.js → form-k950nrad.js} +17 -17
- package/dist/chunks/{form-h2xt6wet.js → form-ka01146j.js} +5 -5
- package/dist/chunks/{form-zz5ve47h.js → form-kjt9j6hq.js} +28 -28
- package/dist/chunks/{form-s5h6z9gv.js → form-kpgx0vyx.js} +5 -5
- package/dist/chunks/{form-tvb592mm.js → form-kqxn4pnr.js} +4 -4
- package/dist/chunks/{form-j3w1x649.js → form-m34q2a8m.js} +28 -28
- package/dist/chunks/{form-hfgk9wzg.js → form-m37sd98t.js} +3 -3
- package/dist/chunks/{form-75q1s5an.js → form-m528r48h.js} +3 -3
- package/dist/chunks/{form-rs85nywm.js → form-maemcbqj.js} +19 -19
- package/dist/chunks/{form-8z6m94af.js → form-mb7mbhnz.js} +1 -1
- package/dist/chunks/{form-6dgef8zt.js → form-mdmwbg8j.js} +15 -15
- package/dist/chunks/{form-mgkq9fbg.js → form-mdz0js77.js} +5 -5
- package/dist/chunks/{form-tsdwyhx3.js → form-mkcsvzvr.js} +5 -5
- package/dist/chunks/{form-f952zzwb.js → form-mp850hqc.js} +4 -4
- package/dist/chunks/{form-3mt7h3sc.js → form-n37g9rz2.js} +3 -3
- package/dist/chunks/{form-58d2k2k8.js → form-n5jdsvnn.js} +28 -28
- package/dist/chunks/{form-0neff2gh.js → form-n97mvkbq.js} +5 -5
- package/dist/chunks/{form-770pw0s1.js → form-nah043kf.js} +3 -3
- package/dist/chunks/{form-37qznj3x.js → form-nfkjwrxk.js} +14 -14
- package/dist/chunks/{form-4j02pyve.js → form-ng3j8dj2.js} +8 -8
- package/dist/chunks/{form-w6rf4v00.js → form-nxbfjhca.js} +9 -9
- package/dist/chunks/{form-7pryy4s8.js → form-nxpp7t5x.js} +45 -45
- package/dist/chunks/{form-smej90w1.js → form-nzbx2r18.js} +11 -11
- package/dist/chunks/{form-nes0j92p.js → form-p2d6jc5h.js} +4 -4
- package/dist/chunks/{form-e3yq7vhq.js → form-p32m2zja.js} +25 -25
- package/dist/chunks/{form-cqgdxhj0.js → form-pez63j8g.js} +15 -15
- package/dist/chunks/{form-ax2a2y9p.js → form-pq2gn7y4.js} +4 -4
- package/dist/chunks/{form-x4ym8htq.js → form-q1dg5ken.js} +12 -12
- package/dist/chunks/{form-a2qrzhrv.js → form-qd0p20n5.js} +8 -8
- package/dist/chunks/{form-g39z3c3d.js → form-qekva0d7.js} +26 -26
- package/dist/chunks/{form-wcr7n0w7.js → form-qg4wfayj.js} +16 -16
- package/dist/chunks/{form-nt9wvz87.js → form-qhwx0fdf.js} +23 -23
- package/dist/chunks/{form-2mbjfaxd.js → form-qkc3z5ds.js} +3 -3
- package/dist/chunks/{form-2dzbnn5s.js → form-qnf47mt5.js} +6 -6
- package/dist/chunks/{form-202bxvr4.js → form-qz087kyw.js} +7 -7
- package/dist/chunks/{form-bhm8f5xf.js → form-r1r2wh37.js} +5 -5
- package/dist/chunks/{form-bq3b16qk.js → form-r2z4j37j.js} +1 -1
- package/dist/chunks/{form-9c3ec48c.js → form-r5gq5fkx.js} +76 -76
- package/dist/chunks/{form-j4zj9swe.js → form-ra4wx1p6.js} +19 -19
- package/dist/chunks/{form-jrzfxer4.js → form-rs8acqz3.js} +1 -1
- package/dist/chunks/{form-1fgjq5yh.js → form-rva7ahw2.js} +6 -6
- package/dist/chunks/{form-0568hmfx.js → form-rw00jzn7.js} +17 -17
- package/dist/chunks/{form-ztqjkmb7.js → form-rwpnrpr8.js} +1 -1
- package/dist/chunks/{form-m0nhvpz4.js → form-s3bc4aa5.js} +44 -44
- package/dist/chunks/{form-6rtanm5a.js → form-s8ecjhm6.js} +20 -20
- package/dist/chunks/{form-4vhebqs8.js → form-saap6htg.js} +22 -22
- package/dist/chunks/{form-0j7gp832.js → form-sqjzf8x2.js} +3 -3
- package/dist/chunks/{form-kgf7qxx3.js → form-sxjfgefz.js} +48 -48
- package/dist/chunks/{form-6h0z5jnc.js → form-sxramexz.js} +10 -10
- package/dist/chunks/{form-bbex01q8.js → form-syd5ygf3.js} +10 -10
- package/dist/chunks/{form-h5jrm83f.js → form-t4y2eqtb.js} +7 -7
- package/dist/chunks/{form-xtk91xpy.js → form-t925je5x.js} +10 -10
- package/dist/chunks/{form-cd6xe7sj.js → form-vjcm0c6v.js} +28 -28
- package/dist/chunks/{form-99z41sf4.js → form-vpm8vpz0.js} +3 -3
- package/dist/chunks/{form-0wkkkdkf.js → form-vr3x69az.js} +11 -11
- package/dist/chunks/{form-k302pdnh.js → form-vrcsa8qx.js} +7 -7
- package/dist/chunks/{form-03jqhmmy.js → form-vzvvagw1.js} +30 -30
- package/dist/chunks/{form-75dkjs9q.js → form-w2jxje39.js} +23 -23
- package/dist/chunks/{form-s7kyse9r.js → form-w35wzz9x.js} +3 -3
- package/dist/chunks/{form-xffdvv21.js → form-w5xp5sgq.js} +16 -16
- package/dist/chunks/{form-wr3re1en.js → form-w687dnns.js} +3 -3
- package/dist/chunks/{form-f4mscg03.js → form-wawq6c5s.js} +9 -9
- package/dist/chunks/{form-r4bcfbbz.js → form-wdeh72fh.js} +15 -15
- package/dist/chunks/{form-zgg8de7g.js → form-wewy9wfm.js} +13 -13
- package/dist/chunks/{form-fymf9s41.js → form-wg881gmg.js} +6 -6
- package/dist/chunks/{form-cv03a796.js → form-wwgpyqzb.js} +7 -7
- package/dist/chunks/{form-ffd03e03.js → form-wxknf58s.js} +8 -8
- package/dist/chunks/{form-pwarvv20.js → form-wy3fx33q.js} +19 -19
- package/dist/chunks/{form-2az9w9qg.js → form-x1wbs47z.js} +25 -25
- package/dist/chunks/{form-s6h2s3rz.js → form-xk2zn0cv.js} +3 -3
- package/dist/chunks/{form-7fz7kdv3.js → form-xq6beh0s.js} +25 -25
- package/dist/chunks/{form-1wap8mvb.js → form-xwhcj832.js} +25 -25
- package/dist/chunks/{form-1sw1ga6z.js → form-y02zb68m.js} +12 -12
- package/dist/chunks/{form-1xnfgx4x.js → form-y984veh1.js} +7 -7
- package/dist/chunks/{form-pxtfkpje.js → form-yara3q77.js} +1 -1
- package/dist/chunks/{form-0gbb59p9.js → form-yc4xwjk4.js} +7 -7
- package/dist/chunks/{form-t5prmbbw.js → form-yckvrk0f.js} +4 -4
- package/dist/chunks/{form-9310e8g9.js → form-yd39j0pc.js} +9 -9
- package/dist/chunks/{form-kmzgegqq.js → form-ydsespw1.js} +7 -7
- package/dist/chunks/{form-w5znx9nn.js → form-yewpp7ak.js} +12 -12
- package/dist/chunks/{form-pa26emph.js → form-yjhf0rgk.js} +26 -26
- package/dist/chunks/{form-zsehzjv7.js → form-yk6ggz05.js} +6 -6
- package/dist/chunks/{form-57ahrrn7.js → form-ymtvagr8.js} +13 -13
- package/dist/chunks/{form-6yppqcev.js → form-ymvwqgy0.js} +38 -38
- package/dist/chunks/{form-gsw63pph.js → form-yn3pvg3g.js} +43 -43
- package/dist/chunks/{form-pebfq84r.js → form-yp23a5z4.js} +14 -14
- package/dist/chunks/{form-eq9kvdfm.js → form-yp7f7fzt.js} +9 -9
- package/dist/chunks/{form-dnmen5cb.js → form-ypzz06n9.js} +6 -6
- package/dist/chunks/{form-5m8x74ph.js → form-ywk1qbwj.js} +1 -1
- package/dist/chunks/{form-whk88kq8.js → form-yykjbrqt.js} +28 -28
- package/dist/chunks/{form-4ashkr7h.js → form-yzfcgkx8.js} +25 -25
- package/dist/chunks/{form-9a9c6hns.js → form-za8zk8x5.js} +16 -16
- package/dist/chunks/{form-2sqgfc56.js → form-zf08ma9p.js} +43 -43
- package/dist/chunks/{form-cbht8k07.js → form-zrzd6936.js} +20 -20
- package/dist/chunks/{form-skszvm0v.js → form-zwt99n69.js} +12 -12
- package/dist/codemode/instructions.js +8 -8
- package/dist/command.js +73 -73
- package/dist/config/discovery.js +74 -74
- package/dist/config/normalize.js +89 -89
- package/dist/config/plugin/agent.js +103 -103
- package/dist/config/plugin/command.js +189 -189
- package/dist/config/plugin/compaction.js +132 -132
- package/dist/config/plugin/compatibility.js +120 -120
- package/dist/config/plugin/formatter.js +102 -102
- package/dist/config/plugin/image.js +101 -101
- package/dist/config/plugin/instruction.js +102 -102
- package/dist/config/plugin/location-watcher.js +103 -103
- package/dist/config/plugin/mcp.js +108 -108
- package/dist/config/plugin/policy.js +101 -101
- package/dist/config/plugin/provider.js +101 -101
- package/dist/config/plugin/reference.js +103 -103
- package/dist/config/plugin/shell.js +103 -103
- package/dist/config/plugin/skill-file.js +116 -116
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +123 -123
- package/dist/config/plugin/snapshot.js +101 -101
- package/dist/config/plugin/source.js +104 -104
- package/dist/config/plugin/tool-output.js +102 -102
- package/dist/config/plugin/websearch.js +102 -102
- package/dist/config/plugin/worktree.js +103 -103
- package/dist/config.js +107 -107
- package/dist/credential.js +75 -75
- package/dist/database/database.js +63 -63
- 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 +46 -46
- package/dist/database/migration.js +48 -48
- package/dist/database/v1-migration.bun.js +24 -24
- package/dist/effect/app-node-builder.js +250 -250
- package/dist/environment/environment.js +81 -81
- package/dist/environment/index.js +81 -81
- package/dist/environment/unavailable.js +3 -3
- package/dist/event-logger.js +9 -9
- package/dist/file-access.js +124 -124
- package/dist/file-mutation.js +78 -78
- package/dist/filesystem/file-watch.js +14 -14
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +203 -203
- package/dist/filesystem/search.js +85 -85
- package/dist/filesystem/watcher.js +9 -9
- package/dist/filesystem.js +88 -88
- package/dist/form.js +75 -75
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +78 -78
- package/dist/generate.js +93 -93
- package/dist/git.js +7 -7
- 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 +82 -82
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +4 -4
- package/dist/image/notice.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 +331 -331
- package/dist/instruction-discovery.js +80 -80
- package/dist/instructions/builtins.js +79 -79
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +80 -80
- package/dist/job.js +70 -70
- package/dist/kv.js +66 -66
- package/dist/location-activity.js +75 -75
- package/dist/location-lifecycle.js +117 -117
- package/dist/location-service-map.js +78 -78
- package/dist/location-services.js +328 -328
- package/dist/location.js +81 -81
- package/dist/mcp/client.js +20 -20
- package/dist/mcp/index.js +92 -92
- package/dist/mcp/instructions.js +136 -136
- package/dist/mcp/oauth.js +13 -13
- package/dist/mcp/stdio.js +78 -78
- package/dist/modal/models.js +82 -82
- package/dist/model-resolver.js +89 -89
- package/dist/model.js +91 -91
- package/dist/models-dev.js +87 -87
- package/dist/permission/saved.js +77 -77
- package/dist/permission/sql.js +3 -3
- package/dist/permission.js +124 -124
- package/dist/persistent-pty/index.js +80 -80
- package/dist/persistent-pty.js +66 -66
- package/dist/plugin/agent.js +70 -70
- package/dist/plugin/command.js +89 -89
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +194 -194
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +304 -304
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +86 -86
- package/dist/plugin/module.js +101 -101
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +117 -117
- package/dist/plugin/provider/amazon-bedrock.js +82 -82
- package/dist/plugin/provider/azure.js +102 -102
- package/dist/plugin/provider/chatgpt.js +100 -100
- package/dist/plugin/provider/cloudflare-ai-gateway.js +100 -100
- package/dist/plugin/provider/cloudflare-workers-ai.js +100 -100
- package/dist/plugin/provider/configured.js +98 -98
- package/dist/plugin/provider/credential-settings.js +66 -66
- package/dist/plugin/provider/digitalocean.js +83 -83
- package/dist/plugin/provider/github-copilot.js +85 -85
- package/dist/plugin/provider/gitlab.js +84 -84
- package/dist/plugin/provider/google-vertex.js +99 -99
- package/dist/plugin/provider/llmgateway.js +69 -69
- package/dist/plugin/provider/lmstudio.js +108 -108
- package/dist/plugin/provider/local.js +105 -105
- package/dist/plugin/provider/modal.js +83 -83
- package/dist/plugin/provider/ollama.js +108 -108
- package/dist/plugin/provider/openai-context-caps.js +81 -81
- package/dist/plugin/provider/openai.js +100 -100
- package/dist/plugin/provider/opencode.js +103 -103
- package/dist/plugin/provider/openrouter.js +82 -82
- package/dist/plugin/provider/poe.js +69 -69
- package/dist/plugin/provider/sap-ai-core.js +81 -81
- package/dist/plugin/provider/snowflake-cortex.js +100 -100
- package/dist/plugin/provider/vllm.js +108 -108
- package/dist/plugin/provider/xai.js +82 -82
- package/dist/plugin/provider.js +143 -143
- package/dist/plugin/sdk.js +71 -71
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +118 -118
- package/dist/plugin/supervisor.js +319 -319
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +5 -5
- package/dist/plugin/vcs/git.js +77 -77
- package/dist/plugin/vcs/hg.js +77 -77
- package/dist/plugin/verbosity.js +84 -84
- package/dist/plugin/warming.js +100 -100
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +5 -5
- package/dist/plugin/websearch/parallel.js +7 -7
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +7 -7
- package/dist/plugin.js +205 -205
- package/dist/project/icon.js +3 -3
- package/dist/project/schema.js +7 -7
- package/dist/project/sql.js +2 -2
- package/dist/project.js +80 -80
- package/dist/provider.js +90 -90
- package/dist/pty.js +89 -89
- package/dist/reference/instructions.js +76 -76
- package/dist/reference.js +78 -78
- package/dist/repository-cache.js +72 -72
- package/dist/ripgrep.js +84 -84
- package/dist/rpc.js +78 -78
- package/dist/schedule/sql.js +4 -4
- package/dist/schedule.js +190 -190
- package/dist/session/blob.js +100 -100
- package/dist/session/command.js +68 -68
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +156 -156
- package/dist/session/diff.js +78 -78
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +123 -123
- package/dist/session/execution.js +132 -132
- package/dist/session/generate.js +158 -158
- package/dist/session/history.js +106 -106
- package/dist/session/inbox.js +117 -117
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +74 -74
- package/dist/session/instruction-state.js +5 -5
- package/dist/session/instructions.js +111 -111
- package/dist/session/message-updater.js +3 -3
- package/dist/session/model-request.js +129 -129
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +110 -110
- package/dist/session/prompt.js +119 -119
- package/dist/session/revert.js +109 -109
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +203 -203
- package/dist/session/runner/model.js +90 -90
- package/dist/session/runner/publish-llm-event.js +120 -120
- package/dist/session/runner/step.js +128 -128
- package/dist/session/runner/to-llm-message.js +107 -107
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +146 -146
- package/dist/session/shell.js +112 -112
- package/dist/session/skill.js +118 -118
- package/dist/session/sql.js +3 -3
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +112 -112
- package/dist/session/stored.js +3 -3
- package/dist/session/subagent-completion.js +3 -3
- package/dist/session/subagent-job.js +188 -188
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +161 -161
- package/dist/session/to-session-error.js +119 -119
- package/dist/session/transfer.js +116 -116
- package/dist/session.js +190 -190
- package/dist/shell/parse.js +4 -4
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +115 -115
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +122 -122
- package/dist/skill.js +125 -125
- package/dist/snapshot.js +84 -84
- package/dist/tool/mcp.js +135 -135
- package/dist/tool/plugin/edit.js +129 -129
- package/dist/tool/plugin/glob.js +136 -136
- package/dist/tool/plugin/grep.js +136 -136
- package/dist/tool/plugin/image-generate.js +197 -197
- package/dist/tool/plugin/mcp-resource.js +130 -130
- package/dist/tool/plugin/opencode.js +128 -128
- package/dist/tool/plugin/patch.js +133 -133
- package/dist/tool/plugin/question.js +117 -117
- package/dist/tool/plugin/read.js +137 -137
- package/dist/tool/plugin/schedule.js +187 -187
- package/dist/tool/plugin/shell.js +193 -193
- package/dist/tool/plugin/skill.js +124 -124
- package/dist/tool/plugin/subagent.js +195 -195
- package/dist/tool/plugin/todo.js +119 -119
- package/dist/tool/plugin/webfetch.js +126 -126
- package/dist/tool/plugin/websearch.js +124 -124
- package/dist/tool/plugin/write.js +133 -133
- package/dist/tool/read-filesystem.js +88 -88
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +8 -8
- package/dist/usage-limits.js +79 -79
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +82 -82
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/variant.js +84 -84
- package/dist/vcs.js +80 -80
- package/dist/voice.js +77 -77
- package/dist/websearch.js +76 -76
- package/dist/wellknown/plugin.js +67 -67
- package/dist/wellknown.js +70 -70
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace.js +76 -76
- package/dist/worktree/directory.js +1 -1
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/sql.js +3 -3
- package/dist/worktree/strategies.js +80 -80
- package/dist/worktree.js +90 -90
- package/package.json +8 -8
- package/dist/chunks/form-30vq0hkk.js +0 -26
- /package/dist/chunks/{form-aj7mw0zk.js → form-034tev2y.js} +0 -0
- /package/dist/chunks/{form-38adaqc0.js → form-0dfv01xh.js} +0 -0
- /package/dist/chunks/{form-sdft4pf2.js → form-7e0vrbjb.js} +0 -0
- /package/dist/chunks/{form-j99dhamb.js → form-a44gt5xs.js} +0 -0
- /package/dist/chunks/{form-gn8tkhbf.js → form-d4v9tmah.js} +0 -0
- /package/dist/chunks/{form-3yrks06x.js → form-ynk496q3.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./form-
|
|
4
|
+
} from "./form-ywk1qbwj.js";
|
|
5
5
|
import {
|
|
6
6
|
Service74,
|
|
7
|
-
|
|
8
|
-
} from "./form-
|
|
7
|
+
node77
|
|
8
|
+
} from "./form-0geg3vaz.js";
|
|
9
9
|
import {
|
|
10
10
|
changes2,
|
|
11
11
|
create3
|
|
@@ -18,9 +18,9 @@ import {
|
|
|
18
18
|
var exports_websearch3 = {};
|
|
19
19
|
__export(exports_websearch3, {
|
|
20
20
|
DisabledError: () => DisabledError3,
|
|
21
|
-
Event: () =>
|
|
22
|
-
ID: () =>
|
|
23
|
-
Input: () =>
|
|
21
|
+
Event: () => Event5,
|
|
22
|
+
ID: () => ID5,
|
|
23
|
+
Input: () => Input15,
|
|
24
24
|
Provider: () => Provider2,
|
|
25
25
|
ProviderKey: () => ProviderKey2,
|
|
26
26
|
ProviderNotFoundError: () => ProviderNotFoundError2,
|
|
@@ -29,29 +29,29 @@ __export(exports_websearch3, {
|
|
|
29
29
|
Response: () => Response2,
|
|
30
30
|
Result: () => Result2,
|
|
31
31
|
Selection: () => Selection2,
|
|
32
|
-
Service: () =>
|
|
32
|
+
Service: () => Service23,
|
|
33
33
|
WebSearch: () => exports_websearch3,
|
|
34
|
-
node: () =>
|
|
34
|
+
node: () => node26
|
|
35
35
|
});
|
|
36
36
|
import { WebSearch } from "@opencode/schema/websearch";
|
|
37
37
|
import { SessionEvent } from "@opencode/schema/session-event";
|
|
38
38
|
import { Clock, Context, Effect, Layer, Option, Schema, Stream } from "effect";
|
|
39
39
|
import { HttpClientError } from "effect/http";
|
|
40
40
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
41
|
-
import { Event as
|
|
42
|
-
var
|
|
41
|
+
import { Event as Event5 } from "@opencode/schema/websearch";
|
|
42
|
+
var ID5 = WebSearch.ID;
|
|
43
43
|
var Provider2 = WebSearch.Provider;
|
|
44
|
-
var
|
|
44
|
+
var Input15 = WebSearch.Input;
|
|
45
45
|
var Result2 = WebSearch.Result;
|
|
46
46
|
var Response2 = WebSearch.Response;
|
|
47
47
|
var ProviderKey2 = "websearch:provider";
|
|
48
|
-
var Selection2 = Schema.Union([
|
|
48
|
+
var Selection2 = Schema.Union([ID5, Schema.Literal("random"), Schema.Literal(false)]);
|
|
49
49
|
|
|
50
50
|
class ProviderRequiredError2 extends Schema.TaggedError()("WebSearch.ProviderRequired", {}) {
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
class ProviderNotFoundError2 extends Schema.TaggedError()("WebSearch.ProviderNotFound", {
|
|
54
|
-
providerID:
|
|
54
|
+
providerID: ID5
|
|
55
55
|
}) {
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -59,14 +59,14 @@ class DisabledError3 extends Schema.TaggedError()("WebSearch.Disabled", {}) {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
class RequestError2 extends Schema.TaggedError()("WebSearch.Request", {
|
|
62
|
-
providerID:
|
|
62
|
+
providerID: ID5,
|
|
63
63
|
cause: Schema.Defect()
|
|
64
64
|
}) {
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
class
|
|
67
|
+
class Service23 extends Context.Service()("@opencode/WebSearch") {
|
|
68
68
|
}
|
|
69
|
-
var layer = Layer.effect(
|
|
69
|
+
var layer = Layer.effect(Service23, Effect.gen(function* () {
|
|
70
70
|
const bus = yield* Service86;
|
|
71
71
|
const kv = yield* Service74;
|
|
72
72
|
const decodeResults = Schema.decodeUnknownEffect(Schema.Array(Result2));
|
|
@@ -129,7 +129,7 @@ var layer = Layer.effect(Service72, Effect.gen(function* () {
|
|
|
129
129
|
}
|
|
130
130
|
return choice ? state.get().providers.get(choice) : undefined;
|
|
131
131
|
});
|
|
132
|
-
return
|
|
132
|
+
return Service23.of({
|
|
133
133
|
transform: state.transform,
|
|
134
134
|
reload: state.reload,
|
|
135
135
|
providers: Effect.fn("WebSearch.providers")(function* () {
|
|
@@ -186,10 +186,10 @@ function cooldownMillis(value, now) {
|
|
|
186
186
|
const date = Date.parse(value);
|
|
187
187
|
return Number.isFinite(date) ? Math.max(0, date - now) : 60000;
|
|
188
188
|
}
|
|
189
|
-
var
|
|
190
|
-
service:
|
|
189
|
+
var node26 = makeLocationNode({
|
|
190
|
+
service: Service23,
|
|
191
191
|
layer,
|
|
192
|
-
deps: [node90,
|
|
192
|
+
deps: [node90, node77]
|
|
193
193
|
});
|
|
194
194
|
|
|
195
|
-
export {
|
|
195
|
+
export { ID5, Provider2, Input15, Result2, Response2, ProviderKey2, Selection2, ProviderRequiredError2, ProviderNotFoundError2, DisabledError3, RequestError2, Service23, node26, exports_websearch3, Event5 };
|
|
@@ -5,28 +5,28 @@ import {
|
|
|
5
5
|
RelativePath2
|
|
6
6
|
} from "./form-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./form-
|
|
8
|
+
Service80
|
|
9
|
+
} from "./form-47xk0geh.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./form-
|
|
11
|
+
Service75
|
|
12
|
+
} from "./form-cegg4nag.js";
|
|
13
13
|
import {
|
|
14
14
|
InvalidPatternError2,
|
|
15
|
-
|
|
16
|
-
} from "./form-
|
|
15
|
+
Service65
|
|
16
|
+
} from "./form-0kfnnbj0.js";
|
|
17
17
|
import {
|
|
18
18
|
DEFAULT_SEARCH_LIMIT2,
|
|
19
19
|
DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
20
20
|
GrepInput2,
|
|
21
21
|
Entry2,
|
|
22
22
|
Match2
|
|
23
|
-
} from "./form-
|
|
23
|
+
} from "./form-m34q2a8m.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./form-
|
|
25
|
+
Service66
|
|
26
|
+
} from "./form-zf08ma9p.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./form-
|
|
28
|
+
Service21
|
|
29
|
+
} from "./form-1ehhk9f8.js";
|
|
30
30
|
import {
|
|
31
31
|
__export
|
|
32
32
|
} from "./form-9rqn6x4v.js";
|
|
@@ -35,17 +35,17 @@ import {
|
|
|
35
35
|
var exports_grep = {};
|
|
36
36
|
__export(exports_grep, {
|
|
37
37
|
GrepTool: () => exports_grep,
|
|
38
|
-
Input: () =>
|
|
39
|
-
Output: () =>
|
|
40
|
-
Plugin: () =>
|
|
41
|
-
name: () =>
|
|
42
|
-
toModelContent: () =>
|
|
38
|
+
Input: () => Input4,
|
|
39
|
+
Output: () => Output3,
|
|
40
|
+
Plugin: () => Plugin40,
|
|
41
|
+
name: () => name4,
|
|
42
|
+
toModelContent: () => toModelContent3
|
|
43
43
|
});
|
|
44
44
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
45
45
|
import { Effect, Schema } from "effect";
|
|
46
46
|
import path from "path";
|
|
47
|
-
var
|
|
48
|
-
var
|
|
47
|
+
var name4 = "grep";
|
|
48
|
+
var Input4 = Schema.Struct({
|
|
49
49
|
pattern: GrepInput2.fields.pattern.check(Schema.isMinLength(1, { message: "Pattern must not be empty" })).annotate({
|
|
50
50
|
description: "Regular expression or literal text to match in file contents."
|
|
51
51
|
}),
|
|
@@ -65,8 +65,8 @@ var Input2 = Schema.Struct({
|
|
|
65
65
|
description: `Maximum number of matching lines to return (default: ${DEFAULT_SEARCH_LIMIT2})`
|
|
66
66
|
})
|
|
67
67
|
});
|
|
68
|
-
var
|
|
69
|
-
var
|
|
68
|
+
var Output3 = Schema.Array(Match2);
|
|
69
|
+
var toModelContent3 = (matches, truncated = false) => {
|
|
70
70
|
const lines = matches.length === 0 ? ["No matches found"] : [`Found ${matches.length} matches`];
|
|
71
71
|
let current = "";
|
|
72
72
|
for (const match of matches) {
|
|
@@ -83,26 +83,26 @@ var toModelContent2 = (matches, truncated = false) => {
|
|
|
83
83
|
return lines.join(`
|
|
84
84
|
`);
|
|
85
85
|
};
|
|
86
|
-
var
|
|
86
|
+
var Plugin40 = {
|
|
87
87
|
id: "opencode.tool.grep",
|
|
88
88
|
effect: Effect.fn("GrepTool.Plugin")(function* (ctx) {
|
|
89
|
-
const environment = yield*
|
|
90
|
-
const ripgrep = yield*
|
|
91
|
-
const location = yield*
|
|
92
|
-
const access = yield*
|
|
93
|
-
const permission = yield*
|
|
89
|
+
const environment = yield* Service75;
|
|
90
|
+
const ripgrep = yield* Service65;
|
|
91
|
+
const location = yield* Service80;
|
|
92
|
+
const access = yield* Service21;
|
|
93
|
+
const permission = yield* Service66;
|
|
94
94
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
95
|
-
name:
|
|
95
|
+
name: name4,
|
|
96
96
|
options: { codemode: false },
|
|
97
97
|
description: "Search file contents using ripgrep's regular expression syntax or literal text matching. Use it to locate specific code, symbols, or text patterns, and narrow searches with `path` or `include`. Returns matching file paths, line numbers, and line previews.",
|
|
98
|
-
input:
|
|
99
|
-
output:
|
|
98
|
+
input: Input4,
|
|
99
|
+
output: Output3,
|
|
100
100
|
execute: (input, context) => Effect.gen(function* () {
|
|
101
101
|
const source = { type: "tool", messageID: context.messageID, id: context.id };
|
|
102
102
|
const target = yield* access.resolve({ path: input.path ?? "." });
|
|
103
103
|
yield* access.authorizeExternal([target], context);
|
|
104
104
|
yield* permission.assert({
|
|
105
|
-
action:
|
|
105
|
+
action: name4,
|
|
106
106
|
resources: [input.pattern],
|
|
107
107
|
save: ["*"],
|
|
108
108
|
metadata: {
|
|
@@ -144,7 +144,7 @@ var Plugin2 = {
|
|
|
144
144
|
return { matches: matches.slice(0, limit), truncated: matches.length > limit };
|
|
145
145
|
}).pipe(Effect.map((result) => ({
|
|
146
146
|
output: result.matches,
|
|
147
|
-
content:
|
|
147
|
+
content: toModelContent3(result.matches.map((match) => ({
|
|
148
148
|
...match,
|
|
149
149
|
entry: { ...match.entry, path: path.resolve(location.directory, match.entry.path) }
|
|
150
150
|
})), result.truncated),
|
|
@@ -154,4 +154,4 @@ var Plugin2 = {
|
|
|
154
154
|
})
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
-
export {
|
|
157
|
+
export { name4, Input4, Output3, toModelContent3, Plugin40, exports_grep };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlockedError2
|
|
3
|
-
} from "./form-
|
|
3
|
+
} from "./form-zf08ma9p.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./form-9rqn6x4v.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
var exports_plan = {};
|
|
10
10
|
__export(exports_plan, {
|
|
11
11
|
PlanPlugin: () => exports_plan,
|
|
12
|
-
Plugin: () =>
|
|
12
|
+
Plugin: () => Plugin35
|
|
13
13
|
});
|
|
14
14
|
import { Message, ToolFailure } from "@opencode/ai/effect";
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -29,7 +29,7 @@ You remain in Plan mode until the user switches agents. If the user asks you to
|
|
|
29
29
|
var leave = `<system-reminder>
|
|
30
30
|
You are NO LONGER in Plan mode. The previous Plan restrictions no longer apply. Any Plan mode instructions from earlier in this conversation are no longer active.
|
|
31
31
|
</system-reminder>`;
|
|
32
|
-
var
|
|
32
|
+
var Plugin35 = define({
|
|
33
33
|
id: "opencode.plan",
|
|
34
34
|
effect: Effect.fn(function* (ctx) {
|
|
35
35
|
const global = yield* Global.Service;
|
|
@@ -105,4 +105,4 @@ function lastReminder(messages, enterReminder) {
|
|
|
105
105
|
}, undefined);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
export {
|
|
108
|
+
export { Plugin35, exports_plan };
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
// src/session/model-transport.ts
|
|
9
9
|
var exports_model_transport = {};
|
|
10
10
|
__export(exports_model_transport, {
|
|
11
|
-
Service: () =>
|
|
11
|
+
Service: () => Service31,
|
|
12
12
|
SessionModelTransport: () => exports_model_transport,
|
|
13
|
-
layer: () =>
|
|
13
|
+
layer: () => layer14,
|
|
14
14
|
makeLayer: () => makeLayer2,
|
|
15
|
-
node: () =>
|
|
15
|
+
node: () => node34
|
|
16
16
|
});
|
|
17
17
|
import {
|
|
18
18
|
WebSocketTransport
|
|
@@ -33,7 +33,7 @@ var events = Metric.counter("opencode_session_websocket_events_total", {
|
|
|
33
33
|
});
|
|
34
34
|
var metric = (event, attributes = {}) => Metric.update(events.pipe(Metric.withAttributes({ event, ...attributes })), 1);
|
|
35
35
|
|
|
36
|
-
class
|
|
36
|
+
class Service31 extends Context.Service()("@opencode/SessionModelTransport") {
|
|
37
37
|
}
|
|
38
38
|
var transportError = (message, input) => new AIError({
|
|
39
39
|
reason: new TransportError({ message, transport: "websocket", ...input })
|
|
@@ -57,7 +57,7 @@ var observationFrame = (observation) => {
|
|
|
57
57
|
return Effect.fail(observation.error);
|
|
58
58
|
};
|
|
59
59
|
var observationTerminal = (observation) => observation.type !== "frame";
|
|
60
|
-
var makeLayer2 = (connector) => Layer.effect(
|
|
60
|
+
var makeLayer2 = (connector) => Layer.effect(Service31, Effect.gen(function* () {
|
|
61
61
|
const scope = yield* Scope.Scope;
|
|
62
62
|
const states = new Map;
|
|
63
63
|
const state = (sessionID) => {
|
|
@@ -367,11 +367,11 @@ var makeLayer2 = (connector) => Layer.effect(Service33, Effect.gen(function* ()
|
|
|
367
367
|
}, { discard: true });
|
|
368
368
|
});
|
|
369
369
|
yield* Effect.addFinalizer(() => closeAll);
|
|
370
|
-
return
|
|
370
|
+
return Service31.of({ bind, close, closeAll });
|
|
371
371
|
}));
|
|
372
|
-
var
|
|
372
|
+
var layer14 = Layer.unwrap(Effect.map(Socket.WebSocketConstructor, (constructor) => makeLayer2({
|
|
373
373
|
open: (input) => WebSocketTransport.open(input).pipe(Effect.provideService(Socket.WebSocketConstructor, constructor))
|
|
374
374
|
})));
|
|
375
|
-
var
|
|
375
|
+
var node34 = makeGlobalNode({ service: Service31, layer: layer14, deps: [webSocketConstructor2] });
|
|
376
376
|
|
|
377
|
-
export {
|
|
377
|
+
export { Service31, makeLayer2, layer14, node34, exports_model_transport };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./form-
|
|
2
|
+
Service80
|
|
3
|
+
} from "./form-47xk0geh.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./form-
|
|
5
|
+
Service75
|
|
6
|
+
} from "./form-cegg4nag.js";
|
|
7
7
|
import {
|
|
8
8
|
Service18,
|
|
9
9
|
readText2,
|
|
10
10
|
syncTextBom2
|
|
11
|
-
} from "./form-
|
|
11
|
+
} from "./form-bnrmard3.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./form-
|
|
13
|
+
Service20
|
|
14
|
+
} from "./form-9mesydma.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./form-
|
|
16
|
+
Service66
|
|
17
|
+
} from "./form-zf08ma9p.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
Service21,
|
|
20
20
|
resolvePath2
|
|
21
|
-
} from "./form-
|
|
21
|
+
} from "./form-1ehhk9f8.js";
|
|
22
22
|
import {
|
|
23
23
|
fileDiff2
|
|
24
24
|
} from "./form-6prwharc.js";
|
|
@@ -30,17 +30,17 @@ import {
|
|
|
30
30
|
var exports_edit = {};
|
|
31
31
|
__export(exports_edit, {
|
|
32
32
|
EditTool: () => exports_edit,
|
|
33
|
-
Input: () =>
|
|
33
|
+
Input: () => Input11,
|
|
34
34
|
Output: () => Output7,
|
|
35
|
-
Plugin: () =>
|
|
36
|
-
name: () =>
|
|
35
|
+
Plugin: () => Plugin48,
|
|
36
|
+
name: () => name11
|
|
37
37
|
});
|
|
38
38
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
39
39
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
40
40
|
import { Bom } from "@opencode/util/bom";
|
|
41
41
|
import { Effect, Schema } from "effect";
|
|
42
|
-
var
|
|
43
|
-
var
|
|
42
|
+
var name11 = "edit";
|
|
43
|
+
var Input11 = Schema.Struct({
|
|
44
44
|
path: Schema.String.annotate({
|
|
45
45
|
description: "File to edit"
|
|
46
46
|
}),
|
|
@@ -190,20 +190,20 @@ var countBefore = (positions, offset) => {
|
|
|
190
190
|
}
|
|
191
191
|
return low;
|
|
192
192
|
};
|
|
193
|
-
var
|
|
193
|
+
var Plugin48 = {
|
|
194
194
|
id: "opencode.tool.edit",
|
|
195
195
|
effect: Effect.fn("EditTool.Plugin")(function* (ctx) {
|
|
196
|
-
const access = yield*
|
|
196
|
+
const access = yield* Service21;
|
|
197
197
|
const fileMutation = yield* Service18;
|
|
198
|
-
const environment = yield*
|
|
199
|
-
const formatter = yield*
|
|
200
|
-
const location = yield*
|
|
201
|
-
const permission = yield*
|
|
198
|
+
const environment = yield* Service75;
|
|
199
|
+
const formatter = yield* Service20;
|
|
200
|
+
const location = yield* Service80;
|
|
201
|
+
const permission = yield* Service66;
|
|
202
202
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
203
|
-
name:
|
|
203
|
+
name: name11,
|
|
204
204
|
options: { codemode: false, permission: "edit" },
|
|
205
205
|
description: "Edit the contents of a file by finding and replacing exact text. When editing text from Read output, preserve the exact indentation (tabs or spaces) and omit the line-number prefix, such as `1: `. Never include the prefix in oldString or newString. Write line breaks as \\n; the file's existing CRLF or LF line endings are matched and preserved. To change line endings themselves, make oldString and newString differ only in \\r; that edit applies to the exact bytes. If there is no exact match, the edit retries while ignoring typographic quote, dash, and space variants, then trailing whitespace on each line. The edit fails if oldString is not found. By default, oldString must identify a UNIQUE location. Multiple matches FAIL unless replaceAll is true. Add more surrounding context to disambiguate, or set replaceAll to true to replace every occurrence. Use replaceAll when the change should apply to every occurrence, such as renaming a variable.",
|
|
206
|
-
input:
|
|
206
|
+
input: Input11,
|
|
207
207
|
output: Output7,
|
|
208
208
|
execute: (input, context) => {
|
|
209
209
|
return Effect.gen(function* () {
|
|
@@ -276,4 +276,4 @@ var Plugin12 = {
|
|
|
276
276
|
})
|
|
277
277
|
};
|
|
278
278
|
|
|
279
|
-
export {
|
|
279
|
+
export { name11, Input11, Output7, Plugin48, exports_edit };
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
requestExecutor2
|
|
3
3
|
} from "./form-p015t6z3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./form-
|
|
5
|
+
ID17,
|
|
6
|
+
Service83,
|
|
7
|
+
node87
|
|
8
|
+
} from "./form-qekva0d7.js";
|
|
9
9
|
import {
|
|
10
10
|
__export
|
|
11
11
|
} from "./form-9rqn6x4v.js";
|
|
@@ -14,11 +14,11 @@ import {
|
|
|
14
14
|
var exports_voice = {};
|
|
15
15
|
__export(exports_voice, {
|
|
16
16
|
InvalidRequestError: () => InvalidRequestError2,
|
|
17
|
-
Service: () =>
|
|
18
|
-
UnavailableError: () =>
|
|
17
|
+
Service: () => Service19,
|
|
18
|
+
UnavailableError: () => UnavailableError3,
|
|
19
19
|
Voice: () => exports_voice,
|
|
20
|
-
layer: () =>
|
|
21
|
-
node: () =>
|
|
20
|
+
layer: () => layer11,
|
|
21
|
+
node: () => node21
|
|
22
22
|
});
|
|
23
23
|
import {
|
|
24
24
|
Realtime
|
|
@@ -31,18 +31,18 @@ class InvalidRequestError2 extends Schema.TaggedError()("Voice.InvalidRequestErr
|
|
|
31
31
|
}) {
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class UnavailableError3 extends Schema.TaggedError()("Voice.UnavailableError", {
|
|
35
35
|
message: Schema.String,
|
|
36
36
|
service: Schema.optional(Schema.String)
|
|
37
37
|
}) {
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
class
|
|
40
|
+
class Service19 extends Context.Service()("@opencode/Voice") {
|
|
41
41
|
}
|
|
42
|
-
var
|
|
42
|
+
var layer11 = Layer.effect(Service19, Effect.gen(function* () {
|
|
43
43
|
const executor = yield* RequestExecutor.Service;
|
|
44
|
-
const integrations = yield*
|
|
45
|
-
const findConnection = (provider, methods = ["key"]) => integrations.get(
|
|
44
|
+
const integrations = yield* Service83;
|
|
45
|
+
const findConnection = (provider, methods = ["key"]) => integrations.get(ID17.make(provider)).pipe(Effect.map((info) => info?.connections.find((item) => item.type === "env" || methods.includes(item.method))));
|
|
46
46
|
const source = Effect.fnUntraced(function* (engine) {
|
|
47
47
|
const connection = yield* findConnection(engine.provider);
|
|
48
48
|
if (connection)
|
|
@@ -67,10 +67,10 @@ var layer9 = Layer.effect(Service15, Effect.gen(function* () {
|
|
|
67
67
|
if (!engine)
|
|
68
68
|
return yield* new InvalidRequestError2({ message: `Unsupported voice model: ${input.model}` });
|
|
69
69
|
const found = yield* source(engine);
|
|
70
|
-
const credential = found ? yield* integrations.connection.resolve(found.connection).pipe(Effect.mapError((error) => new
|
|
70
|
+
const credential = found ? yield* integrations.connection.resolve(found.connection).pipe(Effect.mapError((error) => new UnavailableError3({ service: found.provider, message: error.message }))) : undefined;
|
|
71
71
|
const access = found && credential && sessionAccess(found.provider, credential);
|
|
72
72
|
if (found === undefined || access === undefined)
|
|
73
|
-
return yield* new
|
|
73
|
+
return yield* new UnavailableError3({
|
|
74
74
|
service: engine.provider,
|
|
75
75
|
message: engine.id === "openai-live" ? missingLiveKeyMessage : missingKeyMessage[engine.provider]
|
|
76
76
|
});
|
|
@@ -79,14 +79,14 @@ var layer9 = Layer.effect(Service15, Effect.gen(function* () {
|
|
|
79
79
|
session: input.session,
|
|
80
80
|
transport: input.transport,
|
|
81
81
|
...access
|
|
82
|
-
}).pipe(Effect.provideService(RequestExecutor.Service, executor), Effect.mapError((error) => error.reason._tag === "InvalidRequest" || error.reason._tag === "UnsupportedOperation" ? new InvalidRequestError2({ message: error.message }) : new
|
|
82
|
+
}).pipe(Effect.provideService(RequestExecutor.Service, executor), Effect.mapError((error) => error.reason._tag === "InvalidRequest" || error.reason._tag === "UnsupportedOperation" ? new InvalidRequestError2({ message: error.message }) : new UnavailableError3({ message: error.message, service: found.provider })));
|
|
83
83
|
});
|
|
84
|
-
return
|
|
84
|
+
return Service19.of({ models, session });
|
|
85
85
|
}));
|
|
86
|
-
var
|
|
87
|
-
service:
|
|
88
|
-
layer:
|
|
89
|
-
deps: [
|
|
86
|
+
var node21 = makeLocationNode({
|
|
87
|
+
service: Service19,
|
|
88
|
+
layer: layer11,
|
|
89
|
+
deps: [node87, requestExecutor2]
|
|
90
90
|
});
|
|
91
91
|
var openCodeLive = { provider: "opencode", baseURL: "https://opencode.ai/inference/openai/v1" };
|
|
92
92
|
var sessionAccess = (provider, credential) => {
|
|
@@ -108,4 +108,4 @@ var missingKeyMessage = {
|
|
|
108
108
|
google: "Voice needs a Google API key on the server (a stored key, GEMINI_API_KEY, GOOGLE_GENERATIVE_AI_API_KEY, or GOOGLE_API_KEY)."
|
|
109
109
|
};
|
|
110
110
|
|
|
111
|
-
export { InvalidRequestError2,
|
|
111
|
+
export { InvalidRequestError2, UnavailableError3, Service19, layer11, node21, exports_voice };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
3
|
node91
|
|
4
|
-
} from "./form-
|
|
4
|
+
} from "./form-2zxqqy9n.js";
|
|
5
5
|
import {
|
|
6
6
|
Service86,
|
|
7
7
|
node90
|
|
8
|
-
} from "./form-
|
|
8
|
+
} from "./form-ywk1qbwj.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./form-
|
|
10
|
+
Service61,
|
|
11
|
+
node64
|
|
12
|
+
} from "./form-6wmf2q20.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./form-
|
|
14
|
+
Service57,
|
|
15
|
+
node60
|
|
16
|
+
} from "./form-ka01146j.js";
|
|
17
17
|
import {
|
|
18
18
|
SessionEvent2
|
|
19
19
|
} from "./form-ec1grn59.js";
|
|
@@ -22,18 +22,18 @@ import {
|
|
|
22
22
|
} from "./form-b1pn0vxn.js";
|
|
23
23
|
import {
|
|
24
24
|
DrainResult2,
|
|
25
|
-
|
|
26
|
-
} from "./form-
|
|
25
|
+
Service55
|
|
26
|
+
} from "./form-qkc3z5ds.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from "./form-
|
|
28
|
+
Service68,
|
|
29
|
+
node71
|
|
30
|
+
} from "./form-vr3x69az.js";
|
|
31
31
|
import {
|
|
32
32
|
toSessionError2
|
|
33
|
-
} from "./form-
|
|
33
|
+
} from "./form-9f6y0syf.js";
|
|
34
34
|
import {
|
|
35
35
|
nextPromotable2
|
|
36
|
-
} from "./form-
|
|
36
|
+
} from "./form-zrzd6936.js";
|
|
37
37
|
import {
|
|
38
38
|
__export
|
|
39
39
|
} from "./form-9rqn6x4v.js";
|
|
@@ -41,16 +41,16 @@ import {
|
|
|
41
41
|
// src/session/execution.ts
|
|
42
42
|
var exports_execution = {};
|
|
43
43
|
__export(exports_execution, {
|
|
44
|
-
Service: () =>
|
|
44
|
+
Service: () => Service54,
|
|
45
45
|
SessionExecution: () => exports_execution,
|
|
46
|
-
layer: () =>
|
|
47
|
-
node: () =>
|
|
48
|
-
noopLayer: () =>
|
|
46
|
+
layer: () => layer22,
|
|
47
|
+
node: () => node58,
|
|
48
|
+
noopLayer: () => noopLayer3,
|
|
49
49
|
terminal: () => terminal2
|
|
50
50
|
});
|
|
51
51
|
import { Cause, Context, Effect, Exit, Layer } from "effect";
|
|
52
52
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
53
|
-
class
|
|
53
|
+
class Service54 extends Context.Service()("@opencode/SessionExecution") {
|
|
54
54
|
}
|
|
55
55
|
function terminal2(exit, reason) {
|
|
56
56
|
if (Exit.isSuccess(exit))
|
|
@@ -59,11 +59,11 @@ function terminal2(exit, reason) {
|
|
|
59
59
|
return { type: "interrupted", reason: reason ?? "shutdown" };
|
|
60
60
|
return { type: "failed", error: toSessionError2(Cause.squash(exit.cause)) };
|
|
61
61
|
}
|
|
62
|
-
var
|
|
63
|
-
const store = yield*
|
|
64
|
-
const instances = yield*
|
|
62
|
+
var layer22 = Layer.effect(Service54, Effect.gen(function* () {
|
|
63
|
+
const store = yield* Service68;
|
|
64
|
+
const instances = yield* Service57;
|
|
65
65
|
const bus = yield* Service86;
|
|
66
|
-
const jobs = yield*
|
|
66
|
+
const jobs = yield* Service61;
|
|
67
67
|
const db = (yield* Service87).db;
|
|
68
68
|
const reportLifecycle = (sessionID, effect) => effect.pipe(Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to publish Session execution lifecycle", cause).pipe(Effect.annotateLogs({ sessionID }))), Effect.asVoid);
|
|
69
69
|
const claimOnCommit = (sessionID) => ({
|
|
@@ -76,7 +76,7 @@ var layer19 = Layer.effect(Service44, Effect.gen(function* () {
|
|
|
76
76
|
const session = yield* store.get(sessionID);
|
|
77
77
|
if (!session)
|
|
78
78
|
return yield* Effect.die(new Error(`Session not found: ${sessionID}`));
|
|
79
|
-
const result = yield*
|
|
79
|
+
const result = yield* Service55.use((runner) => runner.drain({ sessionID, force, continuation, promotable, stepped })).pipe(instances.provide(session), Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to drain Session", cause).pipe(Effect.annotateLogs({ sessionID }))));
|
|
80
80
|
return yield* DrainResult2.$match(result, {
|
|
81
81
|
Complete: () => Effect.void,
|
|
82
82
|
Moved: (result) => drain(sessionID, false, result.continuation, promotable, result.stepped),
|
|
@@ -104,7 +104,7 @@ var layer19 = Layer.effect(Service44, Effect.gen(function* () {
|
|
|
104
104
|
}, releaseOnCommit(sessionID));
|
|
105
105
|
}))
|
|
106
106
|
});
|
|
107
|
-
return
|
|
107
|
+
return Service54.of({
|
|
108
108
|
active: coordinator.active,
|
|
109
109
|
isActive: coordinator.isActive,
|
|
110
110
|
interrupt: (sessionID, options) => Effect.gen(function* () {
|
|
@@ -123,12 +123,12 @@ var layer19 = Layer.effect(Service44, Effect.gen(function* () {
|
|
|
123
123
|
awaitIdle: coordinator.awaitIdle
|
|
124
124
|
});
|
|
125
125
|
}));
|
|
126
|
-
var
|
|
127
|
-
service:
|
|
128
|
-
layer:
|
|
129
|
-
deps: [
|
|
126
|
+
var node58 = makeGlobalNode({
|
|
127
|
+
service: Service54,
|
|
128
|
+
layer: layer22,
|
|
129
|
+
deps: [node71, node60, node90, node91, node64]
|
|
130
130
|
});
|
|
131
|
-
var
|
|
131
|
+
var noopLayer3 = Layer.succeed(Service54, Service54.of({
|
|
132
132
|
active: Effect.succeed(new Set),
|
|
133
133
|
isActive: () => Effect.succeed(false),
|
|
134
134
|
resume: () => Effect.void,
|
|
@@ -137,4 +137,4 @@ var noopLayer2 = Layer.succeed(Service44, Service44.of({
|
|
|
137
137
|
awaitIdle: () => Effect.void
|
|
138
138
|
}));
|
|
139
139
|
|
|
140
|
-
export {
|
|
140
|
+
export { Service54, terminal2, layer22, node58, noopLayer3, exports_execution };
|