@opencode/core 0.0.0-dev-19787 → 0.0.0-dev-19790
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 +62 -62
- package/dist/aisdk-native.js +64 -64
- package/dist/aisdk.js +69 -69
- package/dist/app.js +7 -7
- package/dist/bus.js +53 -53
- package/dist/chunks/{pty-6vgkbqsf.js → pty-010xpxbn.js} +9 -9
- package/dist/chunks/{pty-7nrhymjj.js → pty-01m48zym.js} +18 -18
- package/dist/chunks/{pty-x31dz1np.js → pty-05k8gwwx.js} +42 -42
- package/dist/chunks/{pty-e41je68c.js → pty-09ejbmp6.js} +2 -2
- package/dist/chunks/{pty-4h75thkr.js → pty-0cnsmtwh.js} +28 -28
- package/dist/chunks/{pty-b6yzcphf.js → pty-0x0trpnf.js} +9 -9
- package/dist/chunks/{pty-v58jy1xd.js → pty-15wq8bnm.js} +15 -12
- package/dist/chunks/{pty-sbycj2hd.js → pty-1hxn8gc9.js} +14 -14
- package/dist/chunks/{pty-qmg269n7.js → pty-1n42sk3q.js} +10 -10
- package/dist/chunks/{pty-dhwr7h25.js → pty-1qg96azw.js} +9 -9
- package/dist/chunks/{pty-vjrtmzpa.js → pty-1t1mekng.js} +4 -4
- package/dist/chunks/{pty-xdw3myhw.js → pty-1v03ecv9.js} +21 -21
- package/dist/chunks/{pty-xkhfjrgz.js → pty-256nx13v.js} +3 -3
- package/dist/chunks/{pty-cq9vh2fv.js → pty-2aet7wja.js} +7 -7
- package/dist/chunks/{pty-h3c20vca.js → pty-2bm8nv3j.js} +4 -4
- package/dist/chunks/{pty-m5mra8ny.js → pty-2deyrhr8.js} +12 -12
- package/dist/chunks/{pty-eq9606cq.js → pty-2f0arp29.js} +46 -46
- package/dist/chunks/{pty-d7tjjqf6.js → pty-2gydggrp.js} +2 -2
- package/dist/chunks/{pty-0nw536sy.js → pty-2jm9246z.js} +1 -1
- package/dist/chunks/{pty-vyhtd5az.js → pty-2mvse5z6.js} +33 -33
- package/dist/chunks/{pty-abyxqag4.js → pty-2qtz93bp.js} +2 -2
- package/dist/chunks/{pty-htekf6zf.js → pty-2x2vnpz5.js} +7 -7
- package/dist/chunks/{pty-cy7q8w9z.js → pty-2x8n49qa.js} +10 -10
- package/dist/chunks/{pty-s1wc6ad4.js → pty-2xyrgdy7.js} +13 -13
- package/dist/chunks/{pty-p5hkqs15.js → pty-360vn7h3.js} +3 -3
- package/dist/chunks/{pty-p3j3z1wm.js → pty-36ndtc93.js} +23 -23
- package/dist/chunks/{pty-rrnpfv6a.js → pty-39mnaq4c.js} +20 -20
- package/dist/chunks/{pty-eaznszq2.js → pty-3z5xssby.js} +29 -29
- package/dist/chunks/{pty-d58ea4wx.js → pty-4641nt7s.js} +6 -6
- package/dist/chunks/{pty-xseb90fg.js → pty-47qt310b.js} +10 -10
- package/dist/chunks/{pty-bxgqktpk.js → pty-47r0kvy6.js} +19 -19
- package/dist/chunks/{pty-vk0pdsgf.js → pty-4dkhsnmt.js} +28 -28
- package/dist/chunks/{pty-j5786zrt.js → pty-4jc5c4h4.js} +1 -1
- package/dist/chunks/{pty-nbctyxha.js → pty-4jzbd5w2.js} +318 -314
- package/dist/chunks/{pty-57ez7d0k.js → pty-4sn99hha.js} +5 -5
- package/dist/chunks/{pty-57q53s15.js → pty-4zhk9xy1.js} +9 -9
- package/dist/chunks/{pty-p1nm93x7.js → pty-510m7gjw.js} +3 -3
- package/dist/chunks/{pty-1ygqh575.js → pty-56gdpj1q.js} +7 -7
- package/dist/chunks/pty-56qjdxtm.js +26 -0
- package/dist/chunks/{pty-tvkyymax.js → pty-57dcv54h.js} +8 -8
- package/dist/chunks/{pty-6wkd5avw.js → pty-5cn1q5nw.js} +30 -30
- package/dist/chunks/{pty-9yyvrqyy.js → pty-5j6bqzeb.js} +19 -19
- package/dist/chunks/{pty-e3qxr5gk.js → pty-5qd3pb7m.js} +2 -2
- package/dist/chunks/{pty-kb0jenp9.js → pty-5whcbe3x.js} +17 -17
- package/dist/chunks/{pty-2kv1txj9.js → pty-5xsexkhf.js} +6 -6
- package/dist/chunks/{pty-az62kead.js → pty-5xwkdnk6.js} +8 -8
- package/dist/chunks/{pty-7dqw4kz8.js → pty-607tc6va.js} +4 -4
- package/dist/chunks/{pty-137n2cjd.js → pty-61a7pyf7.js} +5 -5
- package/dist/chunks/{pty-wvh43mtc.js → pty-64amj0r1.js} +18 -18
- package/dist/chunks/{pty-nam2k8jt.js → pty-6a3q5akz.js} +8 -16
- package/dist/chunks/{pty-h8w3rnrc.js → pty-6d0hcp9d.js} +7 -7
- package/dist/chunks/{pty-e9wrjfx0.js → pty-6zb5jvme.js} +52 -52
- package/dist/chunks/{pty-1bbkgx8g.js → pty-73tb2d7t.js} +2 -2
- package/dist/chunks/{pty-pwyph8fp.js → pty-7cj0vwkb.js} +9 -9
- package/dist/chunks/{pty-1csms2ve.js → pty-7hmfndvt.js} +24 -24
- package/dist/chunks/{pty-8zqxjytc.js → pty-7swn79b1.js} +8 -8
- package/dist/chunks/{pty-4b3p33ns.js → pty-7t5qybgj.js} +46 -46
- package/dist/chunks/{pty-44jfm9c6.js → pty-82kxmdcf.js} +6 -6
- package/dist/chunks/{pty-02j327mk.js → pty-82r64hfa.js} +29 -29
- package/dist/chunks/{pty-0jq9fyba.js → pty-85z0khfw.js} +8 -8
- package/dist/chunks/{pty-tcezcvh9.js → pty-89znhe33.js} +3 -3
- package/dist/chunks/{pty-4kyk22vj.js → pty-8hdvkfsn.js} +39 -39
- package/dist/chunks/{pty-0ymsz8rv.js → pty-8kgvtemd.js} +7 -7
- package/dist/chunks/{pty-byqk2fv6.js → pty-8ktdpdbn.js} +29 -29
- package/dist/chunks/{pty-z62c9ayt.js → pty-8n2c22yw.js} +8 -8
- package/dist/chunks/{pty-z50h5snd.js → pty-8ndese90.js} +17 -17
- package/dist/chunks/{pty-brqzv7bg.js → pty-8sc656s0.js} +27 -27
- package/dist/chunks/{pty-7xnx6cga.js → pty-8tcq1ard.js} +37 -37
- package/dist/chunks/{pty-xgqsyfnn.js → pty-8x7kj7de.js} +11 -11
- package/dist/chunks/{pty-b785ew1k.js → pty-92hvatj2.js} +80 -80
- package/dist/chunks/{pty-rgt3cf1f.js → pty-94h3t13q.js} +11 -11
- package/dist/chunks/{pty-4jeaa92r.js → pty-95jkg4sh.js} +1 -1
- package/dist/chunks/{pty-waqpjwb8.js → pty-96712bz8.js} +2 -2
- package/dist/chunks/{pty-rccz2tys.js → pty-96k7qteq.js} +1 -1
- package/dist/chunks/{pty-hfs4qywr.js → pty-9wh28ea7.js} +30 -30
- package/dist/chunks/{pty-5c4hm403.js → pty-a1bz86dw.js} +1 -1
- package/dist/chunks/{pty-p91ndb2v.js → pty-a6ha29gm.js} +46 -46
- package/dist/chunks/{pty-ywdxak5q.js → pty-a8rvpzh6.js} +34 -34
- package/dist/chunks/{pty-809q4hne.js → pty-af04s6ss.js} +3 -3
- package/dist/chunks/{pty-pxnzv34t.js → pty-ajejy050.js} +16 -16
- package/dist/chunks/{pty-g9q532r4.js → pty-aqk3dj7t.js} +1 -1
- package/dist/chunks/{pty-sk1rxzc5.js → pty-b9w0x7cm.js} +15 -15
- package/dist/chunks/{pty-2evd0k84.js → pty-bag4px4n.js} +34 -34
- package/dist/chunks/{pty-jdbtptns.js → pty-bfygd469.js} +32 -32
- package/dist/chunks/{pty-2chp5681.js → pty-bh7937zs.js} +26 -24
- package/dist/chunks/{pty-mwfspft0.js → pty-bnv5qe0w.js} +7 -7
- package/dist/chunks/{pty-6zvnhsg3.js → pty-bt0s2m4s.js} +25 -25
- package/dist/chunks/{pty-czhz2k7d.js → pty-c3xk9fpp.js} +13 -11
- package/dist/chunks/{pty-p8x8xcsb.js → pty-c6d4h0jp.js} +12 -12
- package/dist/chunks/{pty-gjmk74th.js → pty-cdm0dq9n.js} +5 -5
- package/dist/chunks/{pty-ch7ar4cr.js → pty-cerhndf8.js} +16 -16
- package/dist/chunks/{pty-m0jqrx5p.js → pty-cfpkc3c9.js} +1 -1
- package/dist/chunks/{pty-c2qj7f61.js → pty-ck33vcq0.js} +17 -19
- package/dist/chunks/{pty-h6r3nrb9.js → pty-cpj0znwe.js} +3 -3
- package/dist/chunks/{pty-8kgt14gf.js → pty-cs1yg9jz.js} +25 -25
- package/dist/chunks/{pty-1j7jhvrm.js → pty-cywsvzz8.js} +15 -15
- package/dist/chunks/{pty-5yzzbxa7.js → pty-czfptnv9.js} +7 -7
- package/dist/chunks/{pty-r2m716tb.js → pty-d4he2qe1.js} +7 -7
- package/dist/chunks/{pty-8npqseq9.js → pty-d7wgan7y.js} +16 -16
- package/dist/chunks/{pty-6tc74vrw.js → pty-d8mfmd5t.js} +16 -16
- package/dist/chunks/{pty-tb60vd7q.js → pty-dkkcfdd5.js} +3 -3
- package/dist/chunks/{pty-e0r8ercz.js → pty-dm7z6sw8.js} +10 -10
- package/dist/chunks/{pty-bd89c7qa.js → pty-dqhgk4gj.js} +12 -12
- package/dist/chunks/{pty-mg0hvqns.js → pty-e8gs20m7.js} +22 -22
- package/dist/chunks/{pty-rsd57mk1.js → pty-en85tny2.js} +15 -15
- package/dist/chunks/{pty-tqg72d4k.js → pty-en9axxsm.js} +21 -19
- package/dist/chunks/{pty-a5frg3c7.js → pty-esegqz26.js} +8 -8
- package/dist/chunks/{pty-z3pw5915.js → pty-evbgk2k8.js} +3 -3
- package/dist/chunks/{pty-1acjjqhc.js → pty-f2n192rq.js} +3 -3
- package/dist/chunks/{pty-834a0b17.js → pty-f35htakt.js} +5 -5
- package/dist/chunks/{pty-hdnk95c8.js → pty-f828m53h.js} +1 -1
- package/dist/chunks/{pty-j2e43x50.js → pty-f9mqex9s.js} +34 -34
- package/dist/chunks/{pty-c9g527t4.js → pty-fd3v7rn0.js} +30 -30
- package/dist/chunks/{pty-2g7r5mvw.js → pty-fjeptm1j.js} +9 -9
- package/dist/chunks/{pty-mv5tqpbn.js → pty-fra5bndy.js} +17 -17
- package/dist/chunks/{pty-0en0hh3r.js → pty-fwrss4ad.js} +3 -3
- package/dist/chunks/{pty-be3g221r.js → pty-g02r5t1q.js} +16 -16
- package/dist/chunks/{pty-899tt7an.js → pty-g408yz0d.js} +28 -28
- package/dist/chunks/{pty-q9k3nk2m.js → pty-g6v5r3w6.js} +13 -13
- package/dist/chunks/{pty-s8d7rejh.js → pty-gbt6w4kb.js} +7 -7
- package/dist/chunks/{pty-00f2f7q8.js → pty-gbvfym51.js} +22 -22
- package/dist/chunks/{pty-jqe5ka82.js → pty-gf229ayp.js} +16 -16
- package/dist/chunks/{pty-n7b52vzq.js → pty-gqgkwrka.js} +19 -19
- package/dist/chunks/{pty-k1gkpfdk.js → pty-gs3s1a1g.js} +6 -6
- package/dist/chunks/{pty-t62nene4.js → pty-gtgjs7h2.js} +48 -48
- package/dist/chunks/{pty-zy742dcv.js → pty-gx88jzcs.js} +30 -30
- package/dist/chunks/{pty-kbmk2nk1.js → pty-gy590f6s.js} +1 -1
- package/dist/chunks/{pty-gydxxgyg.js → pty-gyxzt53n.js} +14 -14
- package/dist/chunks/{pty-jnzdfagj.js → pty-h4xx3n44.js} +4 -4
- package/dist/chunks/{pty-s6qp1k48.js → pty-h5amc0nw.js} +4 -4
- package/dist/chunks/{pty-teerv99t.js → pty-h8d3bytr.js} +55 -55
- package/dist/chunks/{pty-2em355j9.js → pty-hdfkv0ev.js} +55 -55
- package/dist/chunks/{pty-qtwarjwz.js → pty-hdns3422.js} +12 -12
- package/dist/chunks/{pty-pf31ssb9.js → pty-hgd4btym.js} +4 -4
- package/dist/chunks/{pty-wcs8mysc.js → pty-hgk31n1k.js} +26 -26
- package/dist/chunks/{pty-t4h1a8sm.js → pty-hjvqykt7.js} +7 -7
- package/dist/chunks/pty-hr9dp009.js +4 -0
- package/dist/chunks/{pty-bm3m92rh.js → pty-hxpy2fz9.js} +8 -8
- package/dist/chunks/{pty-nbqevg8t.js → pty-hzxxpgfe.js} +12 -12
- package/dist/chunks/{pty-9mmr4cym.js → pty-j2dty9kk.js} +19 -19
- package/dist/chunks/{pty-gzfs38sx.js → pty-jcvsx840.js} +17 -17
- package/dist/chunks/{pty-x5pjsa02.js → pty-jfq1w6xq.js} +10 -10
- package/dist/chunks/{pty-4bgjx4y9.js → pty-jhetzww4.js} +34 -34
- package/dist/chunks/{pty-1e7y3jby.js → pty-jn0rbr09.js} +2 -2
- package/dist/chunks/{pty-x0511brf.js → pty-jva4mgym.js} +3 -3
- package/dist/chunks/{pty-y71avatq.js → pty-jwcy2c2z.js} +3 -3
- package/dist/chunks/{pty-6ejv29z8.js → pty-jzp2kyv6.js} +23 -23
- package/dist/chunks/{pty-hsv1w0ka.js → pty-k388e6t1.js} +14 -14
- package/dist/chunks/{pty-n5zcbnsa.js → pty-kb1rdp05.js} +39 -39
- package/dist/chunks/{pty-8v55y81p.js → pty-kgbqw58m.js} +26 -26
- package/dist/chunks/{pty-4p0kgrzt.js → pty-kjq75dje.js} +1 -1
- package/dist/chunks/{pty-fkjmw100.js → pty-knb7evpn.js} +4 -4
- package/dist/chunks/{pty-sy45410j.js → pty-kns2fx3n.js} +17 -17
- package/dist/chunks/{pty-6avas0hs.js → pty-krbz4bty.js} +4 -4
- package/dist/chunks/{pty-3sqv75dt.js → pty-kxdh0s6n.js} +9 -9
- package/dist/chunks/{pty-zav06jzw.js → pty-m70sbz6t.js} +3 -3
- package/dist/chunks/{pty-bkjtrpfb.js → pty-m77h72gn.js} +14 -14
- package/dist/chunks/{pty-g2yz86wh.js → pty-m7va1g8x.js} +1 -1
- package/dist/chunks/{pty-vsp1fds9.js → pty-magykp64.js} +20 -20
- package/dist/chunks/{pty-bky20j8j.js → pty-mf55kzn1.js} +8 -8
- package/dist/chunks/{pty-yqngptm3.js → pty-mg90z6wk.js} +18 -18
- package/dist/chunks/{pty-ynxbryrd.js → pty-mh8602s5.js} +20 -20
- package/dist/chunks/{pty-8ha6ga5e.js → pty-mm5kxf07.js} +7 -7
- package/dist/chunks/{pty-z27wwaqb.js → pty-n0kbf44j.js} +9 -9
- package/dist/chunks/{pty-wzdyyep8.js → pty-n25bj5sj.js} +6 -6
- package/dist/chunks/{pty-rhafb4aa.js → pty-nq7qbqzc.js} +7 -7
- package/dist/chunks/{pty-1c5ncfj1.js → pty-nvgm9hwb.js} +27 -27
- package/dist/chunks/{pty-rf9y12ds.js → pty-nwb8yfca.js} +4 -4
- package/dist/chunks/{pty-1cr9kxrr.js → pty-p2bsys5p.js} +39 -35
- package/dist/chunks/{pty-qqrhpyxk.js → pty-p3w99mff.js} +21 -21
- package/dist/chunks/{pty-3zh6rxhw.js → pty-pfpqttcd.js} +10 -10
- package/dist/chunks/pty-px0fec8t.js +252 -0
- package/dist/chunks/{pty-sd8zp0nj.js → pty-q0sdqn78.js} +1 -1
- package/dist/chunks/{pty-0mwa6y39.js → pty-q24nm477.js} +16 -16
- package/dist/chunks/{pty-npbak50e.js → pty-q2f6gqtk.js} +8 -8
- package/dist/chunks/pty-q3pcyw4n.js +131 -0
- package/dist/chunks/{pty-kss3k1ej.js → pty-q4hrj6yz.js} +22 -22
- package/dist/chunks/{pty-fm2qvscf.js → pty-qa3qhgw8.js} +3 -3
- package/dist/chunks/{pty-mx4hjh21.js → pty-r1761eky.js} +30 -30
- package/dist/chunks/{pty-8ev4rrc0.js → pty-r4hn1y4t.js} +4 -4
- package/dist/chunks/{pty-qz49fwgp.js → pty-rhx683sy.js} +5 -5
- package/dist/chunks/{pty-zvkwbpx3.js → pty-rrwz5n32.js} +10 -10
- package/dist/chunks/{pty-vqf3rr9z.js → pty-rvf3k54n.js} +14 -14
- package/dist/chunks/{pty-08fd96st.js → pty-rwwvkkw9.js} +6 -6
- package/dist/chunks/{pty-7qq3ahcc.js → pty-rxcdjwh1.js} +3 -3
- package/dist/chunks/{pty-aqvz20a2.js → pty-ryb794yb.js} +7 -7
- package/dist/chunks/{pty-f1cvcqqp.js → pty-rz9v06kn.js} +25 -25
- package/dist/chunks/{pty-s1mn6qcj.js → pty-scs7maqt.js} +7 -7
- package/dist/chunks/{pty-gq6z7eg4.js → pty-sdrw2w9p.js} +21 -21
- package/dist/chunks/{pty-dcsznwm0.js → pty-src4gryn.js} +18 -18
- package/dist/chunks/{pty-2b210p4k.js → pty-t2gsyq25.js} +22 -22
- package/dist/chunks/{pty-p28j5sbe.js → pty-tbz0fdvh.js} +3 -3
- package/dist/chunks/{pty-qph7hyw7.js → pty-tqwr2f5g.js} +10 -10
- package/dist/chunks/{pty-8msxkbjy.js → pty-trt7zypv.js} +30 -30
- package/dist/chunks/{pty-4rr74z9v.js → pty-ty51299p.js} +9 -9
- package/dist/chunks/{pty-tk66bvfd.js → pty-v110mek2.js} +19 -19
- package/dist/chunks/{pty-vkwcxm6e.js → pty-vdnmec7y.js} +5 -5
- package/dist/chunks/{pty-qq11w61w.js → pty-ve4pfa0n.js} +3 -3
- package/dist/chunks/{pty-0s0a8jh1.js → pty-vedaqc0n.js} +178 -178
- package/dist/chunks/{pty-rbs0ef4y.js → pty-vf5yby4q.js} +31 -33
- package/dist/chunks/{pty-s4ajyzwp.js → pty-vfqq51fb.js} +15 -15
- package/dist/chunks/{pty-rjkasajw.js → pty-vk9pkavn.js} +14 -14
- package/dist/chunks/{pty-zg25sgvs.js → pty-vr12ekh8.js} +8 -8
- package/dist/chunks/{pty-r3grxea3.js → pty-vw2t0mtq.js} +36 -36
- package/dist/chunks/{pty-9sqkv26s.js → pty-vy078w6d.js} +42 -42
- package/dist/chunks/{pty-gzbkpp9m.js → pty-vyqn3nqs.js} +3 -3
- package/dist/chunks/{pty-7ac170kv.js → pty-vyy6cxw9.js} +2 -2
- package/dist/chunks/{pty-6p3xbzsx.js → pty-w1k39n5e.js} +3 -3
- package/dist/chunks/{pty-277eer69.js → pty-wj76ss2k.js} +3 -3
- package/dist/chunks/{pty-mxr6rdrb.js → pty-wxrzmbxm.js} +14 -14
- package/dist/chunks/{pty-7t8e8ps1.js → pty-wzjn1tpp.js} +9 -9
- package/dist/chunks/{pty-kz37x8hb.js → pty-x6j1wb2z.js} +79 -79
- package/dist/chunks/{pty-hn8hcjvd.js → pty-xpkrztab.js} +3 -3
- package/dist/chunks/{pty-kmrnkd77.js → pty-xtvm4hh6.js} +1 -1
- package/dist/chunks/{pty-bwbrqz0a.js → pty-xv567rvv.js} +8 -8
- package/dist/chunks/{pty-74e549sx.js → pty-y3ajgz1g.js} +13 -13
- package/dist/chunks/{pty-5xdv3y65.js → pty-ypbv3kf7.js} +24 -24
- package/dist/chunks/{pty-s4enseaf.js → pty-yrznvahk.js} +1 -1
- package/dist/chunks/{pty-kk61yved.js → pty-yvqjf3ez.js} +12 -12
- package/dist/chunks/{pty-9n4prt69.js → pty-yz0n98jk.js} +13 -13
- package/dist/chunks/{pty-29x78va6.js → pty-z63w68vq.js} +4 -4
- package/dist/chunks/{pty-zwp73gaw.js → pty-z9g3fnns.js} +20 -20
- package/dist/chunks/{pty-ze9yakes.js → pty-z9z6sd2a.js} +15 -15
- package/dist/chunks/{pty-5tvckp52.js → pty-zapz2rcy.js} +24 -24
- package/dist/chunks/{pty-q36t7h4b.js → pty-zcz1ktx8.js} +3 -3
- package/dist/chunks/{pty-m2taxsaw.js → pty-zfx1etke.js} +8 -8
- package/dist/chunks/{pty-3b9qt4hj.js → pty-zg3tcem2.js} +7 -7
- package/dist/chunks/{pty-t96c7fmv.js → pty-zn6sdvfn.js} +20 -20
- package/dist/chunks/{pty-hr990vwq.js → pty-zv6tdpnx.js} +36 -36
- package/dist/chunks/{pty-stdr0dsx.js → pty-zxtb73ge.js} +18 -18
- package/dist/chunks/{pty-hyag3rfz.js → pty-zy6cwck4.js} +9 -9
- package/dist/codemode/instructions.js +6 -6
- package/dist/command.js +58 -58
- package/dist/config/discovery.js +61 -61
- package/dist/config/normalize.js +79 -79
- package/dist/config/plugin/agent.js +97 -97
- package/dist/config/plugin/command.js +177 -177
- package/dist/config/plugin/compaction.js +127 -127
- package/dist/config/plugin/compatibility.js +113 -113
- package/dist/config/plugin/formatter.js +96 -96
- package/dist/config/plugin/image.js +95 -95
- package/dist/config/plugin/instruction.js +65 -65
- package/dist/config/plugin/location-watcher.js +97 -97
- package/dist/config/plugin/mcp.js +103 -103
- package/dist/config/plugin/policy.js +95 -95
- package/dist/config/plugin/provider.js +95 -95
- package/dist/config/plugin/reference.js +96 -96
- package/dist/config/plugin/shell.js +97 -97
- package/dist/config/plugin/skill-file.js +75 -75
- package/dist/config/plugin/skill.js +114 -114
- package/dist/config/plugin/snapshot.js +95 -95
- package/dist/config/plugin/source.js +98 -98
- package/dist/config/plugin/tool-output.js +97 -97
- package/dist/config/plugin/websearch.js +96 -96
- package/dist/config/plugin/worktree.js +96 -96
- package/dist/config/variable.js +2 -2
- package/dist/config.js +101 -101
- package/dist/credential.js +64 -64
- package/dist/database/database.js +47 -47
- package/dist/database/drizzle/effect-sqlite/driver.js +8 -8
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +7 -7
- package/dist/database/drizzle/index.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
- package/dist/database/drizzle.js +9 -9
- package/dist/database/migration.gen.js +35 -35
- package/dist/database/migration.js +36 -36
- package/dist/database/v1-migration.bun.js +11 -11
- package/dist/effect/app-node-builder.js +243 -242
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/environment/environment.js +67 -67
- package/dist/environment/index.js +69 -69
- package/dist/event-logger.js +14 -14
- package/dist/file-access.js +78 -78
- package/dist/file-mutation.js +68 -68
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +192 -192
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +76 -76
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +14 -14
- package/dist/filesystem.js +79 -79
- package/dist/form.js +66 -66
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +63 -63
- package/dist/generate.js +76 -76
- package/dist/git.js +8 -8
- 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 +74 -74
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +315 -314
- package/dist/instruction-discovery.js +64 -64
- package/dist/instructions/builtins.js +64 -64
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +64 -64
- package/dist/job.js +58 -58
- package/dist/kv.js +52 -52
- package/dist/location-activity.js +61 -61
- package/dist/location-lifecycle.js +80 -80
- package/dist/location-mutation.js +35 -35
- package/dist/location-service-map.js +63 -63
- package/dist/location-services.js +312 -311
- package/dist/location.js +64 -64
- package/dist/mcp/client.js +20 -20
- package/dist/mcp/index.js +80 -80
- package/dist/mcp/instructions.js +99 -99
- package/dist/mcp/oauth.js +14 -14
- package/dist/mcp/stdio.js +64 -64
- package/dist/modal/models.js +74 -74
- package/dist/model-resolver.js +73 -73
- package/dist/model.js +75 -75
- package/dist/models-dev.js +82 -82
- package/dist/permission/saved.js +59 -59
- package/dist/permission/sql.js +3 -3
- package/dist/permission.js +89 -89
- package/dist/persistent-pty/index.js +65 -65
- package/dist/persistent-pty.js +51 -51
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +75 -75
- package/dist/plugin/compaction.js +100 -100
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +183 -183
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +287 -286
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +71 -71
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +3 -3
- package/dist/plugin/plan.js +76 -76
- package/dist/plugin/provider/amazon-bedrock.js +65 -65
- package/dist/plugin/provider/azure.js +94 -94
- package/dist/plugin/provider/cloudflare-ai-gateway.js +93 -93
- package/dist/plugin/provider/cloudflare-workers-ai.js +93 -93
- package/dist/plugin/provider/configured.js +92 -92
- package/dist/plugin/provider/digitalocean.js +67 -67
- package/dist/plugin/provider/github-copilot.js +68 -68
- package/dist/plugin/provider/gitlab.js +66 -66
- package/dist/plugin/provider/google-vertex.js +65 -65
- package/dist/plugin/provider/llmgateway.js +55 -55
- package/dist/plugin/provider/lmstudio.js +95 -95
- package/dist/plugin/provider/modal.js +67 -67
- package/dist/plugin/provider/ollama.js +95 -95
- package/dist/plugin/provider/openai.js +68 -68
- package/dist/plugin/provider/opencode.js +68 -68
- package/dist/plugin/provider/openrouter.js +66 -66
- package/dist/plugin/provider/poe.js +55 -55
- package/dist/plugin/provider/prompt-cache-key.js +65 -65
- package/dist/plugin/provider/sap-ai-core.js +65 -65
- package/dist/plugin/provider/snowflake-cortex.js +94 -94
- package/dist/plugin/provider/vercel.js +65 -65
- package/dist/plugin/provider/vllm.js +93 -93
- package/dist/plugin/provider/xai.js +66 -66
- package/dist/plugin/provider.js +124 -124
- package/dist/plugin/sdk.js +52 -52
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +114 -114
- package/dist/plugin/supervisor.js +303 -302
- package/dist/plugin/tool-input-repair.js +9 -0
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +62 -62
- package/dist/plugin/vcs/hg.js +62 -62
- package/dist/plugin/warming.js +94 -94
- 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 +6 -6
- package/dist/plugin/websearch/tinyfish.js +7 -7
- package/dist/plugin.js +192 -192
- package/dist/project/schema.js +5 -5
- package/dist/project/sql.js +2 -2
- package/dist/project.js +65 -65
- package/dist/provider.js +80 -76
- package/dist/pty/schema.js +3 -3
- package/dist/pty.js +69 -69
- package/dist/reference/instructions.js +65 -65
- package/dist/reference.js +63 -63
- package/dist/repository-cache.js +59 -59
- package/dist/ripgrep.js +70 -70
- package/dist/rpc.js +63 -63
- package/dist/session/command.js +53 -53
- package/dist/session/compaction.js +95 -95
- package/dist/session/context.js +117 -117
- package/dist/session/diff.js +64 -64
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +126 -126
- package/dist/session/execution.js +102 -102
- package/dist/session/generate.js +118 -118
- package/dist/session/history.js +12 -12
- package/dist/session/inbox.js +66 -66
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +56 -56
- package/dist/session/instruction-state.js +5 -5
- package/dist/session/instructions.js +73 -73
- package/dist/session/message-updater.js +3 -3
- package/dist/session/model-request.js +87 -87
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +103 -103
- package/dist/session/projector.js +63 -63
- package/dist/session/prompt.js +78 -78
- 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 +193 -193
- package/dist/session/runner/model.js +73 -73
- package/dist/session/runner/retry.js +86 -86
- package/dist/session/runner/step.js +93 -93
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +142 -142
- package/dist/session/shell.js +110 -110
- package/dist/session/skill.js +77 -77
- package/dist/session/sql.js +3 -3
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +63 -63
- package/dist/session/subagent-job.js +174 -174
- package/dist/session/title.js +116 -116
- package/dist/session/to-session-error.js +85 -85
- package/dist/session/transfer.js +123 -123
- package/dist/session.js +186 -186
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +113 -113
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +79 -79
- package/dist/skill.js +80 -80
- package/dist/snapshot.js +69 -69
- package/dist/tool/mcp.js +94 -94
- package/dist/tool/plugin/edit.js +93 -93
- package/dist/tool/plugin/glob.js +97 -97
- package/dist/tool/plugin/grep.js +97 -97
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +95 -95
- package/dist/tool/plugin/question.js +77 -77
- package/dist/tool/plugin/read.js +97 -97
- package/dist/tool/plugin/shell.js +182 -182
- package/dist/tool/plugin/skill.js +87 -87
- package/dist/tool/plugin/subagent.js +183 -183
- package/dist/tool/plugin/webfetch.js +83 -83
- package/dist/tool/plugin/websearch.js +88 -88
- package/dist/tool/plugin/write.js +95 -95
- package/dist/tool/read-filesystem.js +72 -72
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +11 -11
- package/dist/types/agent.d.ts +14 -1
- package/dist/types/model-resolver.d.ts +2 -2
- package/dist/types/model.d.ts +54 -14
- package/dist/types/plugin/provider/configured.d.ts +2 -6
- package/dist/types/plugin/tool-input-repair.d.ts +2 -0
- package/dist/types/provider.d.ts +63 -15
- package/dist/types/session/history.d.ts +8 -8
- package/dist/types/v1/config/migrate.d.ts +30 -20
- package/dist/v1/config/agent.js +6 -6
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +13 -13
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +66 -66
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/v1/config/skills.js +3 -3
- package/dist/variant.js +66 -66
- package/dist/vcs.js +65 -65
- package/dist/websearch.js +61 -61
- package/dist/wellknown/plugin.js +55 -55
- package/dist/wellknown.js +60 -60
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace.js +60 -60
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/sql.js +3 -3
- package/dist/worktree/strategies.js +64 -64
- package/dist/worktree.js +68 -68
- package/package.json +8 -8
- package/dist/chunks/pty-1qqxsas6.js +0 -252
- package/dist/chunks/pty-1tm0r3ht.js +0 -4
- package/dist/chunks/pty-5qekf1cr.js +0 -26
- /package/dist/chunks/{pty-ssr8tzqd.js → pty-4ekhf7tc.js} +0 -0
- /package/dist/chunks/{pty-wr7ps67x.js → pty-5e15319b.js} +0 -0
- /package/dist/chunks/{pty-dj2t23y0.js → pty-8p4f9s12.js} +0 -0
- /package/dist/chunks/{pty-v68hp2va.js → pty-w8hj49dq.js} +0 -0
- /package/dist/chunks/{pty-qf8xbt1v.js → pty-xfjax5kj.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./pty-
|
|
2
|
+
Service81
|
|
3
|
+
} from "./pty-k388e6t1.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./pty-
|
|
5
|
+
Service15
|
|
6
|
+
} from "./pty-92hvatj2.js";
|
|
7
7
|
import {
|
|
8
8
|
text2,
|
|
9
9
|
deliver2
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
var exports_subagent_job = {};
|
|
17
17
|
__export(exports_subagent_job, {
|
|
18
18
|
SubagentJob: () => exports_subagent_job,
|
|
19
|
-
make: () =>
|
|
19
|
+
make: () => make7
|
|
20
20
|
});
|
|
21
21
|
import { Effect, Scope } from "effect";
|
|
22
|
-
var
|
|
23
|
-
const sessions = yield*
|
|
24
|
-
const jobs = yield*
|
|
22
|
+
var make7 = Effect.gen(function* () {
|
|
23
|
+
const sessions = yield* Service15;
|
|
24
|
+
const jobs = yield* Service81;
|
|
25
25
|
const scope = yield* Scope.Scope;
|
|
26
26
|
const notifications = new Set;
|
|
27
27
|
const notify = Effect.fn("SubagentJob.notify")(function* (recovery, startedAt) {
|
|
@@ -58,4 +58,4 @@ var make10 = Effect.gen(function* () {
|
|
|
58
58
|
};
|
|
59
59
|
});
|
|
60
60
|
|
|
61
|
-
export {
|
|
61
|
+
export { make7, exports_subagent_job };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./pty-
|
|
2
|
+
Service80,
|
|
3
|
+
node84
|
|
4
|
+
} from "./pty-tqwr2f5g.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
7
|
} from "./pty-rdw6cm16.js";
|
|
@@ -13,19 +13,19 @@ import {
|
|
|
13
13
|
var exports_command4 = {};
|
|
14
14
|
__export(exports_command4, {
|
|
15
15
|
Command: () => exports_command4,
|
|
16
|
-
Event: () =>
|
|
16
|
+
Event: () => Event5,
|
|
17
17
|
ExecutionError: () => ExecutionError2,
|
|
18
|
-
Info: () =>
|
|
18
|
+
Info: () => Info6,
|
|
19
19
|
NotFoundError: () => NotFoundError4,
|
|
20
|
-
Service: () =>
|
|
21
|
-
layer: () =>
|
|
20
|
+
Service: () => Service40,
|
|
21
|
+
layer: () => layer18,
|
|
22
22
|
node: () => node42
|
|
23
23
|
});
|
|
24
24
|
import { Command } from "@opencode/schema/command";
|
|
25
25
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
26
26
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
27
|
-
import { Event as
|
|
28
|
-
var
|
|
27
|
+
import { Event as Event5 } from "@opencode/schema/command";
|
|
28
|
+
var Info6 = Command.Info;
|
|
29
29
|
|
|
30
30
|
class NotFoundError4 extends Schema.TaggedError()("Command.NotFoundError", {
|
|
31
31
|
command: Schema.String,
|
|
@@ -39,10 +39,10 @@ class ExecutionError2 extends Schema.TaggedError()("Command.ExecutionError", {
|
|
|
39
39
|
}) {
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service40 extends Context.Service()("@opencode/Command") {
|
|
43
43
|
}
|
|
44
|
-
var
|
|
45
|
-
const bus = yield*
|
|
44
|
+
var layer18 = Layer.effect(Service40, Effect.gen(function* () {
|
|
45
|
+
const bus = yield* Service80;
|
|
46
46
|
const state = create3({
|
|
47
47
|
name: "command",
|
|
48
48
|
initial: () => new Map,
|
|
@@ -51,11 +51,11 @@ var layer15 = Layer.effect(Service39, Effect.gen(function* () {
|
|
|
51
51
|
}),
|
|
52
52
|
notify: () => bus.publish(Command.Event.Updated, {}).pipe(Effect.asVoid)
|
|
53
53
|
});
|
|
54
|
-
const info = (definition) =>
|
|
54
|
+
const info = (definition) => Info6.make({
|
|
55
55
|
name: definition.name,
|
|
56
56
|
description: definition.description
|
|
57
57
|
});
|
|
58
|
-
return
|
|
58
|
+
return Service40.of({
|
|
59
59
|
reload: state.reload,
|
|
60
60
|
transform: state.transform,
|
|
61
61
|
get: Effect.fn("Command.get")((name) => Effect.sync(() => {
|
|
@@ -72,9 +72,9 @@ var layer15 = Layer.effect(Service39, Effect.gen(function* () {
|
|
|
72
72
|
});
|
|
73
73
|
}));
|
|
74
74
|
var node42 = makeLocationNode({
|
|
75
|
-
service:
|
|
76
|
-
layer:
|
|
77
|
-
deps: [
|
|
75
|
+
service: Service40,
|
|
76
|
+
layer: layer18,
|
|
77
|
+
deps: [node84]
|
|
78
78
|
});
|
|
79
79
|
function errorMessage(error) {
|
|
80
80
|
if (error instanceof Error)
|
|
@@ -86,4 +86,4 @@ function errorMessage(error) {
|
|
|
86
86
|
return "Command execution failed";
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
export {
|
|
89
|
+
export { Info6, NotFoundError4, ExecutionError2, Service40, layer18, node42, exports_command4, Event5 };
|
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
} from "./pty-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
latest2,
|
|
6
|
-
|
|
7
|
-
} from "./pty-
|
|
6
|
+
Service46
|
|
7
|
+
} from "./pty-a6ha29gm.js";
|
|
8
8
|
import {
|
|
9
9
|
typeFollowing2
|
|
10
10
|
} from "./pty-2a5m3afh.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./pty-
|
|
12
|
+
Service75
|
|
13
|
+
} from "./pty-47r0kvy6.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./pty-
|
|
15
|
+
Service81
|
|
16
|
+
} from "./pty-k388e6t1.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./pty-
|
|
18
|
+
Service66
|
|
19
|
+
} from "./pty-hdfkv0ev.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
Service53,
|
|
22
22
|
resolvePath2
|
|
23
|
-
} from "./pty-
|
|
23
|
+
} from "./pty-gf229ayp.js";
|
|
24
24
|
import {
|
|
25
25
|
output2,
|
|
26
26
|
notice2,
|
|
@@ -28,35 +28,35 @@ import {
|
|
|
28
28
|
notification2
|
|
29
29
|
} from "./pty-fxbjtjnd.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
Service73,
|
|
32
32
|
name15
|
|
33
|
-
} from "./pty-
|
|
33
|
+
} from "./pty-ajejy050.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} from "./pty-
|
|
35
|
+
NotFoundError3,
|
|
36
|
+
Service29
|
|
37
|
+
} from "./pty-7t5qybgj.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./pty-
|
|
39
|
+
Service15
|
|
40
|
+
} from "./pty-92hvatj2.js";
|
|
41
41
|
import {
|
|
42
42
|
scan2
|
|
43
|
-
} from "./pty-
|
|
43
|
+
} from "./pty-q0sdqn78.js";
|
|
44
44
|
import {
|
|
45
45
|
__export
|
|
46
46
|
} from "./pty-9rqn6x4v.js";
|
|
47
47
|
|
|
48
48
|
// src/tool/plugin/shell.ts
|
|
49
|
-
var
|
|
50
|
-
__export(
|
|
49
|
+
var exports_shell = {};
|
|
50
|
+
__export(exports_shell, {
|
|
51
51
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS2,
|
|
52
|
-
Input: () =>
|
|
53
|
-
Plugin: () =>
|
|
54
|
-
ShellTool: () =>
|
|
55
|
-
name: () =>
|
|
52
|
+
Input: () => Input3,
|
|
53
|
+
Plugin: () => Plugin3,
|
|
54
|
+
ShellTool: () => exports_shell,
|
|
55
|
+
name: () => name3
|
|
56
56
|
});
|
|
57
57
|
import { ToolFailure } from "@opencode/ai";
|
|
58
58
|
import { Deferred, Effect, Schema, Scope } from "effect";
|
|
59
|
-
var
|
|
59
|
+
var name3 = "shell";
|
|
60
60
|
var DEFAULT_TIMEOUT_MS2 = 2 * 60 * 1000;
|
|
61
61
|
var BACKGROUND_INSTRUCTION = "You will be notified automatically when the command finishes. The notification will include the command's output. Unless the user explicitly asks otherwise, DO NOT poll for completion, even if you need the final result to continue. Repeatedly sleeping and reading or searching the output file is polling, not useful work. You may read the current output if it lets you do useful work now, but do not repeatedly check it while waiting for the command to finish. Keep working on anything that does not depend on the result. If you have nothing else to do, end your response; you will be resumed automatically when the command finishes.";
|
|
62
62
|
var OS = process.platform === "darwin" ? "macOS" : process.platform === "win32" ? "Windows" : process.platform === "linux" ? "Linux" : process.platform;
|
|
@@ -70,7 +70,7 @@ var description = (shell) => [
|
|
|
70
70
|
"Commands accept an optional timeout, background commands have no timeout by default.",
|
|
71
71
|
"Background commands return immediately, and you will be notified when they complete."
|
|
72
72
|
].join(" ");
|
|
73
|
-
var
|
|
73
|
+
var Input3 = Schema.Struct({
|
|
74
74
|
command: Schema.String.annotate({ description: "Shell command string to execute" }),
|
|
75
75
|
workdir: Schema.optionalKey(Schema.String).annotate({
|
|
76
76
|
description: "Working directory to execute the command in. Defaults to the current working directory. When possible, avoid changing directories in the command and set the working directory here instead."
|
|
@@ -115,19 +115,19 @@ Output is streaming to: ${file}`,
|
|
|
115
115
|
truncated: false,
|
|
116
116
|
status: "running"
|
|
117
117
|
});
|
|
118
|
-
var
|
|
118
|
+
var Plugin3 = {
|
|
119
119
|
id: "opencode.tool.shell",
|
|
120
120
|
effect: Effect.fn("ShellTool.Plugin")(function* (ctx) {
|
|
121
|
-
const sessions = yield*
|
|
122
|
-
const jobs = yield*
|
|
121
|
+
const sessions = yield* Service15;
|
|
122
|
+
const jobs = yield* Service81;
|
|
123
123
|
const scope = yield* Scope.Scope;
|
|
124
|
-
const environment = yield*
|
|
125
|
-
const access = yield*
|
|
126
|
-
const shell = yield*
|
|
127
|
-
const shellSelect = yield*
|
|
124
|
+
const environment = yield* Service75;
|
|
125
|
+
const access = yield* Service53;
|
|
126
|
+
const shell = yield* Service29;
|
|
127
|
+
const shellSelect = yield* Service73;
|
|
128
128
|
const compatibleShell = shellSelect.resolve({ priority: "compat" });
|
|
129
|
-
const permission = yield*
|
|
130
|
-
const config = yield*
|
|
129
|
+
const permission = yield* Service66;
|
|
130
|
+
const config = yield* Service46;
|
|
131
131
|
const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
|
|
132
132
|
const source = {
|
|
133
133
|
type: "tool",
|
|
@@ -146,7 +146,7 @@ var Plugin36 = {
|
|
|
146
146
|
yield* access.authorizeExternal([target, ...directories], context);
|
|
147
147
|
if (parsed.commands.length > 0)
|
|
148
148
|
yield* permission.assert({
|
|
149
|
-
action:
|
|
149
|
+
action: name3,
|
|
150
150
|
resources: parsed.commands.map((command) => command.resource),
|
|
151
151
|
save: parsed.commands.map((command) => command.save),
|
|
152
152
|
sessionID: context.sessionID,
|
|
@@ -183,10 +183,10 @@ var Plugin36 = {
|
|
|
183
183
|
yield* jobs.completeBackground(info.notificationID);
|
|
184
184
|
}, Effect.forkIn(scope, { startImmediately: true }));
|
|
185
185
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
186
|
-
name:
|
|
186
|
+
name: name3,
|
|
187
187
|
options: { codemode: false },
|
|
188
188
|
description: description(),
|
|
189
|
-
input:
|
|
189
|
+
input: Input3,
|
|
190
190
|
output: Output,
|
|
191
191
|
execute: (input, context) => Effect.gen(function* () {
|
|
192
192
|
const timeout = input.background === true ? input.timeout ?? 0 : input.timeout ?? DEFAULT_TIMEOUT_MS2;
|
|
@@ -205,7 +205,7 @@ var Plugin36 = {
|
|
|
205
205
|
const run = Effect.gen(function* () {
|
|
206
206
|
const result = yield* shell.result(info);
|
|
207
207
|
if (!result.capture)
|
|
208
|
-
return yield* new
|
|
208
|
+
return yield* new NotFoundError3({ id: info.id });
|
|
209
209
|
const output = output2(result);
|
|
210
210
|
return {
|
|
211
211
|
...output,
|
|
@@ -219,7 +219,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
219
219
|
`)), Effect.onInterrupt(() => shell.remove(info.id).pipe(Effect.ignore)));
|
|
220
220
|
const job = yield* jobs.start({
|
|
221
221
|
id: info.id,
|
|
222
|
-
type:
|
|
222
|
+
type: name3,
|
|
223
223
|
title: info.command,
|
|
224
224
|
metadata: { sessionID: context.sessionID, shellID: info.id },
|
|
225
225
|
recovery: {
|
|
@@ -249,7 +249,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
249
249
|
}).pipe(Effect.map(toolResult), Effect.mapError((error) => new ToolFailure({ message: `Unable to execute command: ${input.command}`, error })))
|
|
250
250
|
})).pipe(Effect.orDie);
|
|
251
251
|
const hook = (event) => Effect.gen(function* () {
|
|
252
|
-
const tool = event.tools[
|
|
252
|
+
const tool = event.tools[name3];
|
|
253
253
|
if (!tool)
|
|
254
254
|
return;
|
|
255
255
|
tool.description = description(name15(yield* compatibleShell));
|
|
@@ -260,4 +260,4 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
260
260
|
})
|
|
261
261
|
};
|
|
262
262
|
|
|
263
|
-
export {
|
|
263
|
+
export { name3, DEFAULT_TIMEOUT_MS2, Input3, Plugin3, exports_shell };
|
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./pty-
|
|
2
|
+
Service63
|
|
3
|
+
} from "./pty-g408yz0d.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./pty-
|
|
5
|
+
Service66
|
|
6
|
+
} from "./pty-hdfkv0ev.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID4,
|
|
9
9
|
Result2,
|
|
10
10
|
ProviderRequiredError2,
|
|
11
11
|
DisabledError2,
|
|
12
12
|
RequestError2,
|
|
13
|
-
|
|
14
|
-
} from "./pty-
|
|
13
|
+
Service48
|
|
14
|
+
} from "./pty-jzp2kyv6.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
17
|
} from "./pty-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/tool/plugin/websearch.ts
|
|
20
|
-
var
|
|
21
|
-
__export(
|
|
22
|
-
Input: () =>
|
|
20
|
+
var exports_websearch = {};
|
|
21
|
+
__export(exports_websearch, {
|
|
22
|
+
Input: () => Input9,
|
|
23
23
|
NO_RESULTS: () => NO_RESULTS2,
|
|
24
|
-
Plugin: () =>
|
|
25
|
-
WebSearchTool: () =>
|
|
26
|
-
description: () =>
|
|
27
|
-
name: () =>
|
|
24
|
+
Plugin: () => Plugin10,
|
|
25
|
+
WebSearchTool: () => exports_websearch,
|
|
26
|
+
description: () => description5,
|
|
27
|
+
name: () => name9
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai";
|
|
30
30
|
import { Effect, Schema, Semaphore } from "effect";
|
|
31
31
|
import { HttpClientError } from "effect/unstable/http";
|
|
32
|
-
var
|
|
32
|
+
var name9 = "websearch";
|
|
33
33
|
var NO_RESULTS2 = "No search results found. Please try a different query.";
|
|
34
34
|
var providerSelectionLock = Semaphore.makeUnsafe(1);
|
|
35
35
|
var httpErrors = new Map([
|
|
36
36
|
[429, "Web search rate limited (HTTP 429)"],
|
|
37
37
|
[401, "Web search authentication failed (HTTP 401)"]
|
|
38
38
|
]);
|
|
39
|
-
var
|
|
39
|
+
var description5 = `Search the web using the user's selected search integration. Use this for current information beyond knowledge cutoff.
|
|
40
40
|
|
|
41
41
|
The current year is ${new Date().getFullYear()}. Use this year when searching for recent information or current events.`;
|
|
42
|
-
var
|
|
42
|
+
var Input9 = Schema.Struct({
|
|
43
43
|
query: Schema.String.annotate({ description: "Websearch query" })
|
|
44
44
|
});
|
|
45
45
|
var Output = Schema.Struct({
|
|
46
|
-
provider:
|
|
46
|
+
provider: ID4,
|
|
47
47
|
results: Schema.Array(Result2)
|
|
48
48
|
});
|
|
49
|
-
var
|
|
49
|
+
var Plugin10 = {
|
|
50
50
|
id: "opencode.tool.websearch",
|
|
51
51
|
effect: Effect.fn("WebSearchTool.Plugin")(function* (ctx) {
|
|
52
|
-
const permission = yield*
|
|
53
|
-
const forms = yield*
|
|
54
|
-
const websearch = yield*
|
|
52
|
+
const permission = yield* Service66;
|
|
53
|
+
const forms = yield* Service63;
|
|
54
|
+
const websearch = yield* Service48;
|
|
55
55
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
56
|
-
name:
|
|
56
|
+
name: name9,
|
|
57
57
|
options: { codemode: false },
|
|
58
|
-
description:
|
|
59
|
-
input:
|
|
58
|
+
description: description5,
|
|
59
|
+
input: Input9,
|
|
60
60
|
output: Output,
|
|
61
61
|
execute: (input, context) => Effect.gen(function* () {
|
|
62
62
|
yield* permission.assert({
|
|
63
|
-
action:
|
|
63
|
+
action: name9,
|
|
64
64
|
resources: [input.query],
|
|
65
65
|
save: ["*"],
|
|
66
66
|
metadata: input,
|
|
@@ -176,7 +176,7 @@ ${result.content}` : ""}`;
|
|
|
176
176
|
const hook = (event) => Effect.gen(function* () {
|
|
177
177
|
const disabled = yield* websearch.default().pipe(Effect.as(false), Effect.catchTag("WebSearch.Disabled", () => Effect.succeed(true)));
|
|
178
178
|
if (disabled)
|
|
179
|
-
delete event.tools[
|
|
179
|
+
delete event.tools[name9];
|
|
180
180
|
});
|
|
181
181
|
yield* ctx.session.hook("context", hook);
|
|
182
182
|
yield* ctx.session.hook("compaction", hook);
|
|
@@ -184,4 +184,4 @@ ${result.content}` : ""}`;
|
|
|
184
184
|
})
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
-
export {
|
|
187
|
+
export { name9, NO_RESULTS2, description5, Input9, Plugin10, exports_websearch };
|
|
@@ -3,26 +3,26 @@ import {
|
|
|
3
3
|
} from "./pty-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./pty-
|
|
6
|
+
} from "./pty-256nx13v.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageDecodeError2
|
|
9
|
-
} from "./pty-
|
|
9
|
+
} from "./pty-f35htakt.js";
|
|
10
10
|
import {
|
|
11
11
|
InitializationBlocked2,
|
|
12
12
|
read3
|
|
13
|
-
} from "./pty-
|
|
13
|
+
} from "./pty-gbt6w4kb.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
|
-
} from "./pty-
|
|
16
|
+
} from "./pty-a1bz86dw.js";
|
|
17
17
|
import {
|
|
18
18
|
initial2,
|
|
19
19
|
preview3
|
|
20
|
-
} from "./pty-
|
|
20
|
+
} from "./pty-vyy6cxw9.js";
|
|
21
21
|
import {
|
|
22
22
|
compatible2,
|
|
23
23
|
isCheckpoint2,
|
|
24
24
|
validate2
|
|
25
|
-
} from "./pty-
|
|
25
|
+
} from "./pty-w1k39n5e.js";
|
|
26
26
|
import {
|
|
27
27
|
__export
|
|
28
28
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -35,7 +35,7 @@ __export(exports_history, {
|
|
|
35
35
|
entriesForRunner: () => entriesForRunner2,
|
|
36
36
|
firstUserMessage: () => firstUserMessage2,
|
|
37
37
|
latestCompaction: () => latestCompaction2,
|
|
38
|
-
load: () =>
|
|
38
|
+
load: () => load5,
|
|
39
39
|
preview: () => preview2
|
|
40
40
|
});
|
|
41
41
|
import { and, asc, desc, eq, gte, or, sql } from "drizzle-orm";
|
|
@@ -56,7 +56,7 @@ var messageEntries = Effect.fnUntraced(function* (db, sessionID, boundary) {
|
|
|
56
56
|
const native = entries.findLast((entry) => isCheckpoint2(entry.message));
|
|
57
57
|
return entries.filter((entry) => !(entry.message.type === "system" && native && entry.seq < native.seq) && replayable(entry.message, boundary));
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var load5 = Effect.fn("SessionHistory.load")(function* (db, sessionID, boundary) {
|
|
60
60
|
return (yield* messageEntries(db, sessionID, boundary)).map((entry) => entry.message);
|
|
61
61
|
});
|
|
62
62
|
var entriesForRunner2 = Effect.fn("SessionHistory.entriesForRunner")(function* (db, sessionID, instructions, boundary) {
|
|
@@ -92,4 +92,4 @@ var firstUserMessage2 = Effect.fn("SessionHistory.firstUserMessage")(function* (
|
|
|
92
92
|
return message?.type === "user" ? message : undefined;
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
-
export { latestCompaction2, decodeMessageRow2,
|
|
95
|
+
export { latestCompaction2, decodeMessageRow2, load5, entriesForRunner2, preview2, firstUserMessage2, exports_history };
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./pty-
|
|
3
|
+
} from "./pty-kxdh0s6n.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
|
-
|
|
7
|
-
} from "./pty-
|
|
6
|
+
Service62
|
|
7
|
+
} from "./pty-5cn1q5nw.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
ID8,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./pty-
|
|
11
|
+
} from "./pty-trt7zypv.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
ID7,
|
|
14
|
+
mergeOverlay2
|
|
15
|
+
} from "./pty-p2bsys5p.js";
|
|
15
16
|
|
|
16
17
|
// src/plugin/provider/xai.ts
|
|
17
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -23,7 +24,7 @@ var scope = "openid profile email offline_access grok-cli:access api:access";
|
|
|
23
24
|
var pollingSafetyMargin = 3000;
|
|
24
25
|
var browserMethodID = MethodID2.make("browser");
|
|
25
26
|
var deviceMethodID = MethodID2.make("device");
|
|
26
|
-
var providerID =
|
|
27
|
+
var providerID = ID7.make("xai");
|
|
27
28
|
var Token = Schema.Struct({
|
|
28
29
|
access_token: Schema.String,
|
|
29
30
|
refresh_token: Schema.optional(Schema.String),
|
|
@@ -43,7 +44,7 @@ var DeviceError = Schema.Struct({
|
|
|
43
44
|
});
|
|
44
45
|
var decodeDeviceError = Schema.decodeUnknownOption(Schema.fromJsonString(DeviceError));
|
|
45
46
|
var device = (app) => ({
|
|
46
|
-
integrationID:
|
|
47
|
+
integrationID: ID8.make("xai"),
|
|
47
48
|
method: {
|
|
48
49
|
id: deviceMethodID,
|
|
49
50
|
type: "oauth",
|
|
@@ -68,8 +69,8 @@ var device = (app) => ({
|
|
|
68
69
|
var XAIPlugin2 = define({
|
|
69
70
|
id: "opencode.provider.xai",
|
|
70
71
|
effect: Effect.fn(function* (ctx) {
|
|
71
|
-
const credentials = yield*
|
|
72
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
72
|
+
const credentials = yield* Service62;
|
|
73
|
+
yield* Effect.forEach(yield* credentials.list(ID8.make("xai")), (credential) => {
|
|
73
74
|
if (credential.value.type !== "oauth" || credential.value.methodID !== browserMethodID)
|
|
74
75
|
return Effect.void;
|
|
75
76
|
return credentials.update(credential.id, {
|
|
@@ -86,7 +87,9 @@ var XAIPlugin2 = define({
|
|
|
86
87
|
yield* ctx.model.transform((models) => {
|
|
87
88
|
for (const model of models.list(providerID)) {
|
|
88
89
|
models.update(providerID, model.id, (draft) => {
|
|
89
|
-
draft.
|
|
90
|
+
draft.settings = mergeOverlay2(draft.settings, {
|
|
91
|
+
transport: models.provider.get(providerID)?.provider.settings?.transport ?? "websocket"
|
|
92
|
+
});
|
|
90
93
|
});
|
|
91
94
|
}
|
|
92
95
|
});
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID14,
|
|
3
3
|
Name3,
|
|
4
4
|
defaultID2
|
|
5
|
-
} from "./pty-
|
|
5
|
+
} from "./pty-rz9v06kn.js";
|
|
6
6
|
import {
|
|
7
7
|
merge2
|
|
8
|
-
} from "./pty-
|
|
8
|
+
} from "./pty-hdfkv0ev.js";
|
|
9
9
|
import {
|
|
10
10
|
__export
|
|
11
11
|
} from "./pty-9rqn6x4v.js";
|
|
12
12
|
|
|
13
13
|
// src/plugin/agent.ts
|
|
14
|
-
var
|
|
15
|
-
__export(
|
|
16
|
-
AgentPlugin: () =>
|
|
17
|
-
Plugin: () =>
|
|
14
|
+
var exports_agent2 = {};
|
|
15
|
+
__export(exports_agent2, {
|
|
16
|
+
AgentPlugin: () => exports_agent2,
|
|
17
|
+
Plugin: () => Plugin35
|
|
18
18
|
});
|
|
19
19
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
20
20
|
import { Effect } from "effect";
|
|
@@ -90,7 +90,7 @@ Rules:
|
|
|
90
90
|
- Never ask questions or add new questions
|
|
91
91
|
- If the conversation ends with an unanswered question to the user, preserve that exact question
|
|
92
92
|
- If the conversation ends with an imperative statement or request to the user (e.g. "Now please run the command and paste the console output"), always include that exact request in the summary`;
|
|
93
|
-
var
|
|
93
|
+
var Plugin35 = define({
|
|
94
94
|
id: "opencode.agent",
|
|
95
95
|
effect: Effect.fn(function* (ctx) {
|
|
96
96
|
yield* ctx.agent.transform((editor) => {
|
|
@@ -100,13 +100,13 @@ var Plugin13 = define({
|
|
|
100
100
|
item.mode = "primary";
|
|
101
101
|
item.permissions.push({ action: "question", resource: "*", effect: "allow" });
|
|
102
102
|
});
|
|
103
|
-
editor.update(
|
|
103
|
+
editor.update(ID14.make("general"), (item) => {
|
|
104
104
|
item.name = Name3.make("General");
|
|
105
105
|
item.description = "General-purpose agent for researching complex questions and executing multi-step tasks. Use this agent to execute multiple units of work in parallel.";
|
|
106
106
|
item.mode = "subagent";
|
|
107
107
|
item.permissions.push({ action: "question", resource: "*", effect: "deny" }, { action: "subagent", resource: "*", effect: "deny" });
|
|
108
108
|
});
|
|
109
|
-
editor.update(
|
|
109
|
+
editor.update(ID14.make("explore"), (item) => {
|
|
110
110
|
const externalDirectories = item.permissions.filter((rule) => rule.action === "external_directory" && rule.effect === "allow");
|
|
111
111
|
item.name = Name3.make("Explore");
|
|
112
112
|
item.description = 'Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. "src/components/**/*.tsx"), search code for keywords (eg. "API endpoints"), or answer questions about the codebase (eg. "how do API endpoints work?"). When calling this agent, specify the desired thoroughness level: "quick" for basic searches, "medium" for moderate exploration, or "very thorough" for comprehensive analysis across multiple locations and naming conventions.';
|
|
@@ -125,19 +125,19 @@ var Plugin13 = define({
|
|
|
125
125
|
{ action: "subagent", resource: "*", effect: "deny" }
|
|
126
126
|
], [{ action: "external_directory", resource: "*", effect: "ask" }, ...externalDirectories]));
|
|
127
127
|
});
|
|
128
|
-
editor.update(
|
|
128
|
+
editor.update(ID14.make("compaction"), (item) => {
|
|
129
129
|
item.name = Name3.make("Compaction");
|
|
130
130
|
item.mode = "primary";
|
|
131
131
|
item.hidden = true;
|
|
132
132
|
});
|
|
133
|
-
editor.update(
|
|
133
|
+
editor.update(ID14.make("title"), (item) => {
|
|
134
134
|
item.name = Name3.make("Title");
|
|
135
135
|
item.mode = "primary";
|
|
136
136
|
item.hidden = true;
|
|
137
137
|
item.system = PROMPT_TITLE;
|
|
138
138
|
item.permissions.push({ action: "*", resource: "*", effect: "deny" });
|
|
139
139
|
});
|
|
140
|
-
editor.update(
|
|
140
|
+
editor.update(ID14.make("summary"), (item) => {
|
|
141
141
|
item.name = Name3.make("Summary");
|
|
142
142
|
item.mode = "primary";
|
|
143
143
|
item.hidden = true;
|
|
@@ -148,4 +148,4 @@ var Plugin13 = define({
|
|
|
148
148
|
})
|
|
149
149
|
});
|
|
150
150
|
|
|
151
|
-
export {
|
|
151
|
+
export { Plugin35, exports_agent2 };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./pty-
|
|
2
|
+
Service46
|
|
3
|
+
} from "./pty-a6ha29gm.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./pty-
|
|
5
|
+
Service23
|
|
6
|
+
} from "./pty-gtgjs7h2.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./pty-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/config/plugin/mcp.ts
|
|
12
|
-
var
|
|
13
|
-
__export(
|
|
14
|
-
ConfigMcpPlugin: () =>
|
|
12
|
+
var exports_mcp = {};
|
|
13
|
+
__export(exports_mcp, {
|
|
14
|
+
ConfigMcpPlugin: () => exports_mcp,
|
|
15
15
|
Plugin: () => Plugin25,
|
|
16
16
|
register: () => register2
|
|
17
17
|
});
|
|
@@ -24,8 +24,8 @@ var Plugin25 = define({
|
|
|
24
24
|
})
|
|
25
25
|
});
|
|
26
26
|
var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
|
|
27
|
-
const config = yield*
|
|
28
|
-
const mcp = yield*
|
|
27
|
+
const config = yield* Service46;
|
|
28
|
+
const mcp = yield* Service23;
|
|
29
29
|
const loaded = { entries: [] };
|
|
30
30
|
yield* events.pipe(Stream.filter((event) => event.type === "config.updated"), Stream.runForEach(() => config.entries().pipe(Effect.tap((entries) => Effect.sync(() => loaded.entries = entries)), Effect.andThen(mcp.reload()), Effect.catchCause((cause) => Effect.logError("failed to reload MCP config", { cause })))), Effect.ignore, Effect.forkScoped({ startImmediately: true }));
|
|
31
31
|
loaded.entries = yield* config.entries();
|
|
@@ -46,4 +46,4 @@ var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
|
|
|
46
46
|
});
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
export { Plugin25, register2,
|
|
49
|
+
export { Plugin25, register2, exports_mcp };
|