@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
|
@@ -10,17 +10,17 @@ var exports_schema = {};
|
|
|
10
10
|
__export(exports_schema, {
|
|
11
11
|
Current: () => Current3,
|
|
12
12
|
Event: () => Event21,
|
|
13
|
-
ID: () =>
|
|
14
|
-
Info: () =>
|
|
13
|
+
ID: () => ID17,
|
|
14
|
+
Info: () => Info33,
|
|
15
15
|
ProjectSchema: () => exports_schema,
|
|
16
16
|
UpdateInput: () => UpdateInput4,
|
|
17
17
|
Vcs: () => Vcs3
|
|
18
18
|
});
|
|
19
19
|
import { Schema } from "effect";
|
|
20
20
|
import { Project } from "@opencode/schema/project";
|
|
21
|
-
var
|
|
21
|
+
var ID17 = Project.ID;
|
|
22
22
|
var Current3 = Project.Current;
|
|
23
|
-
var
|
|
23
|
+
var Info33 = Project.Info;
|
|
24
24
|
var UpdateInput4 = Project.UpdateInput;
|
|
25
25
|
var Event21 = Project.Event;
|
|
26
26
|
var Vcs3 = Schema.Struct({
|
|
@@ -28,4 +28,4 @@ var Vcs3 = Schema.Struct({
|
|
|
28
28
|
store: AbsolutePath2
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
export {
|
|
31
|
+
export { ID17, Current3, Info33, UpdateInput4, Event21, Vcs3, exports_schema };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./pty-
|
|
3
|
+
Service46
|
|
4
|
+
} from "./pty-a6ha29gm.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./pty-
|
|
6
|
+
Service71
|
|
7
|
+
} from "./pty-8n2c22yw.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
10
|
} from "./pty-qsdy395h.js";
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
var exports_tool_output = {};
|
|
17
17
|
__export(exports_tool_output, {
|
|
18
18
|
ConfigToolOutputPlugin: () => exports_tool_output,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin24
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin24 = define({
|
|
24
24
|
id: "opencode.config.tool-output",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const output = yield*
|
|
26
|
+
const config = yield* Service46;
|
|
27
|
+
const output = yield* Service71;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, output.reload());
|
|
29
29
|
yield* output.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "tool_output");
|
|
@@ -38,4 +38,4 @@ var Plugin23 = define({
|
|
|
38
38
|
})
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
export {
|
|
41
|
+
export { Plugin24, exports_tool_output };
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
var exports_provider2 = {};
|
|
10
10
|
__export(exports_provider2, {
|
|
11
11
|
ConfigProviderV1: () => exports_provider2,
|
|
12
|
-
Info: () =>
|
|
12
|
+
Info: () => Info17,
|
|
13
13
|
Model: () => Model2,
|
|
14
14
|
ModelStatus: () => ModelStatus2
|
|
15
15
|
});
|
|
@@ -61,7 +61,7 @@ var Model2 = Schema.Struct({
|
|
|
61
61
|
disabled: Schema.optional(Schema.Boolean).annotate({ description: "Disable this variant for the model" })
|
|
62
62
|
}), [Schema.Record(Schema.String, Schema.Any)])).annotate({ description: "Variant-specific configuration" }))
|
|
63
63
|
});
|
|
64
|
-
var
|
|
64
|
+
var Info17 = Schema.Struct({
|
|
65
65
|
api: Schema.optional(Schema.String),
|
|
66
66
|
name: Schema.optional(Schema.String),
|
|
67
67
|
env: Schema.optional(Schema.mutable(Schema.Array(Schema.String))),
|
|
@@ -95,4 +95,4 @@ var Info22 = Schema.Struct({
|
|
|
95
95
|
models: Schema.optional(Schema.Record(Schema.String, Model2))
|
|
96
96
|
}).annotate({ identifier: "ProviderConfig" });
|
|
97
97
|
|
|
98
|
-
export { ModelStatus2, Model2,
|
|
98
|
+
export { ModelStatus2, Model2, Info17, exports_provider2 };
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
} from "./pty-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/mcp.ts
|
|
9
|
-
var
|
|
10
|
-
__export(
|
|
11
|
-
MAX_RESPONSE_BYTES: () =>
|
|
12
|
-
WebSearchMcp: () =>
|
|
9
|
+
var exports_mcp2 = {};
|
|
10
|
+
__export(exports_mcp2, {
|
|
11
|
+
MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES3,
|
|
12
|
+
WebSearchMcp: () => exports_mcp2,
|
|
13
13
|
call: () => call2,
|
|
14
14
|
parseResponse: () => parseResponse2
|
|
15
15
|
});
|
|
16
16
|
import { Duration, Effect, Schema } from "effect";
|
|
17
17
|
import { HttpClient, HttpClientRequest } from "effect/unstable/http";
|
|
18
|
-
var
|
|
18
|
+
var MAX_RESPONSE_BYTES3 = 256 * 1024;
|
|
19
19
|
var parseResponse2 = (body, result) => {
|
|
20
20
|
const decode = Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.Struct({ result })));
|
|
21
21
|
const parse = (payload) => {
|
|
@@ -53,7 +53,7 @@ var call2 = (http, url, tool, schema, value, headers = {}) => Effect.gen(functio
|
|
|
53
53
|
}));
|
|
54
54
|
return yield* Effect.gen(function* () {
|
|
55
55
|
const response = yield* HttpClient.withScope(HttpClient.filterStatusOk(http)).execute(request);
|
|
56
|
-
const body = yield* collectBoundedResponseBody2(response,
|
|
56
|
+
const body = yield* collectBoundedResponseBody2(response, MAX_RESPONSE_BYTES3, () => new Error(`${tool} response exceeded ${MAX_RESPONSE_BYTES3} bytes`));
|
|
57
57
|
return yield* parseResponse2(body.toString("utf8"), schema.output);
|
|
58
58
|
}).pipe(Effect.scoped, Effect.timeoutOrElse({
|
|
59
59
|
duration: Duration.seconds(25),
|
|
@@ -61,4 +61,4 @@ var call2 = (http, url, tool, schema, value, headers = {}) => Effect.gen(functio
|
|
|
61
61
|
}));
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
-
export {
|
|
64
|
+
export { MAX_RESPONSE_BYTES3, parseResponse2, call2, exports_mcp2 };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Plugin38
|
|
3
|
+
} from "./pty-mm5kxf07.js";
|
|
4
|
+
import {
|
|
5
|
+
Plugin40
|
|
6
|
+
} from "./pty-q2f6gqtk.js";
|
|
7
|
+
import {
|
|
8
|
+
Plugin37
|
|
9
|
+
} from "./pty-esegqz26.js";
|
|
10
|
+
import {
|
|
11
|
+
Plugin39
|
|
12
|
+
} from "./pty-8kgvtemd.js";
|
|
13
|
+
import {
|
|
14
|
+
Plugin36
|
|
15
|
+
} from "./pty-vr12ekh8.js";
|
|
16
|
+
|
|
17
|
+
// src/plugin/websearch/index.ts
|
|
18
|
+
var WebSearchPlugins2 = [
|
|
19
|
+
Plugin38,
|
|
20
|
+
Plugin40,
|
|
21
|
+
Plugin37,
|
|
22
|
+
Plugin39,
|
|
23
|
+
Plugin36
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
export { WebSearchPlugins2 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./pty-
|
|
2
|
+
Service80
|
|
3
|
+
} from "./pty-tqwr2f5g.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./pty-
|
|
5
|
+
Service13,
|
|
6
|
+
Event2
|
|
7
|
+
} from "./pty-8tcq1ard.js";
|
|
8
8
|
|
|
9
9
|
// src/plugin/models-dev.ts
|
|
10
10
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -29,8 +29,8 @@ var BEDROCK_PROFILE_ONLY_IDS = [
|
|
|
29
29
|
var ModelsDevPlugin2 = define({
|
|
30
30
|
id: "opencode.models.dev",
|
|
31
31
|
effect: Effect.fn(function* (ctx) {
|
|
32
|
-
const modelsDev = yield*
|
|
33
|
-
const bus = yield*
|
|
32
|
+
const modelsDev = yield* Service13;
|
|
33
|
+
const bus = yield* Service80;
|
|
34
34
|
const loaded = { data: snapshots(yield* modelsDev.get()) };
|
|
35
35
|
yield* ctx.integration.transform((integrations) => {
|
|
36
36
|
for (const provider of loaded.data) {
|
|
@@ -59,7 +59,7 @@ var ModelsDevPlugin2 = define({
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
|
-
yield* bus.subscribe(
|
|
62
|
+
yield* bus.subscribe(Event2.Refreshed).pipe(Stream.runForEach(() => modelsDev.get().pipe(Effect.tap((data) => Effect.sync(() => loaded.data = snapshots(data))), Effect.andThen(ctx.integration.reload()), Effect.andThen(ctx.provider.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
63
63
|
})
|
|
64
64
|
});
|
|
65
65
|
function environmentNames(provider) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./pty-
|
|
4
|
+
} from "./pty-96712bz8.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./pty-
|
|
6
|
+
Service80,
|
|
7
|
+
node84
|
|
8
|
+
} from "./pty-tqwr2f5g.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
11
|
} from "./pty-pknna89w.js";
|
|
@@ -20,44 +20,44 @@ import {
|
|
|
20
20
|
var exports_credential = {};
|
|
21
21
|
__export(exports_credential, {
|
|
22
22
|
Credential: () => exports_credential,
|
|
23
|
-
Event: () =>
|
|
24
|
-
ID: () =>
|
|
25
|
-
Info: () =>
|
|
26
|
-
Key: () =>
|
|
23
|
+
Event: () => Event15,
|
|
24
|
+
ID: () => ID9,
|
|
25
|
+
Info: () => Info24,
|
|
26
|
+
Key: () => Key3,
|
|
27
27
|
OAuth: () => OAuth3,
|
|
28
|
-
Service: () =>
|
|
28
|
+
Service: () => Service62,
|
|
29
29
|
Value: () => Value2,
|
|
30
|
-
node: () =>
|
|
30
|
+
node: () => node65
|
|
31
31
|
});
|
|
32
32
|
import { asc, desc, eq } from "drizzle-orm";
|
|
33
33
|
import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
34
34
|
import { Credential } from "@opencode/schema/credential";
|
|
35
35
|
import { Integration } from "@opencode/schema/integration";
|
|
36
36
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
37
|
-
var
|
|
37
|
+
var ID9 = Credential.ID;
|
|
38
38
|
var OAuth3 = Credential.OAuth;
|
|
39
|
-
var
|
|
39
|
+
var Key3 = Credential.Key;
|
|
40
40
|
var Value2 = Credential.Value;
|
|
41
|
-
var
|
|
41
|
+
var Event15 = Credential.Event;
|
|
42
42
|
|
|
43
|
-
class
|
|
44
|
-
id:
|
|
43
|
+
class Info24 extends Schema.Class("Credential.Info")({
|
|
44
|
+
id: ID9,
|
|
45
45
|
integrationID: Integration.ID,
|
|
46
46
|
label: Schema.String,
|
|
47
47
|
value: Value2
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service62 extends Context.Service()("@opencode/Credential") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
53
|
+
var layer = Layer.effect(Service62, Effect.gen(function* () {
|
|
54
54
|
const db = (yield* Service83).db;
|
|
55
|
-
const bus = yield*
|
|
55
|
+
const bus = yield* Service80;
|
|
56
56
|
const decode = Schema.decodeUnknownSync(Value2);
|
|
57
57
|
const stored = (row) => {
|
|
58
58
|
if (!row.integration_id)
|
|
59
59
|
return;
|
|
60
|
-
return new
|
|
60
|
+
return new Info24({
|
|
61
61
|
id: row.id,
|
|
62
62
|
integrationID: row.integration_id,
|
|
63
63
|
label: row.label,
|
|
@@ -68,7 +68,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
68
68
|
const credential = stored(row);
|
|
69
69
|
return credential ? [credential] : [];
|
|
70
70
|
});
|
|
71
|
-
return
|
|
71
|
+
return Service62.of({
|
|
72
72
|
all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
73
73
|
list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
74
74
|
get: Effect.fn("Credential.get")(function* (id) {
|
|
@@ -76,8 +76,8 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
76
76
|
return row ? stored(row) : undefined;
|
|
77
77
|
}),
|
|
78
78
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
79
|
-
const credential = new
|
|
80
|
-
id:
|
|
79
|
+
const credential = new Info24({
|
|
80
|
+
id: ID9.create(),
|
|
81
81
|
integrationID: input.integrationID,
|
|
82
82
|
label: input.label ?? "default",
|
|
83
83
|
value: input.value
|
|
@@ -101,8 +101,8 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
101
101
|
integrationID: credential.integrationID,
|
|
102
102
|
type: credential.value.type
|
|
103
103
|
});
|
|
104
|
-
yield* bus.publish(
|
|
105
|
-
yield* bus.publish(
|
|
104
|
+
yield* bus.publish(Event15.Updated, {}, { global: true });
|
|
105
|
+
yield* bus.publish(Event15.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
106
106
|
return credential;
|
|
107
107
|
}),
|
|
108
108
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
122
122
|
})), Effect.orDie);
|
|
123
123
|
if (integrationID) {
|
|
124
124
|
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
125
|
-
yield* bus.publish(
|
|
125
|
+
yield* bus.publish(Event15.Switched, { integrationID, credentialID: id }, { global: true });
|
|
126
126
|
}
|
|
127
127
|
}),
|
|
128
128
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
@@ -154,7 +154,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
154
154
|
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
155
155
|
});
|
|
156
156
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
157
|
-
yield* bus.publish(
|
|
157
|
+
yield* bus.publish(Event15.Updated, {}, { global: true });
|
|
158
158
|
}),
|
|
159
159
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
160
160
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -187,12 +187,12 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
187
187
|
active: removed.switched,
|
|
188
188
|
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
189
189
|
});
|
|
190
|
-
yield* bus.publish(
|
|
190
|
+
yield* bus.publish(Event15.Updated, {}, { global: true });
|
|
191
191
|
if (removed.switched)
|
|
192
|
-
yield* bus.publish(
|
|
192
|
+
yield* bus.publish(Event15.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
193
193
|
})
|
|
194
194
|
});
|
|
195
195
|
}));
|
|
196
|
-
var
|
|
196
|
+
var node65 = makeGlobalNode({ service: Service62, layer, deps: [node87, node84] });
|
|
197
197
|
|
|
198
|
-
export {
|
|
198
|
+
export { ID9, OAuth3, Key3, Value2, Event15, Info24, Service62, node65, exports_credential };
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
create3
|
|
14
14
|
} from "./pty-rdw6cm16.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from "./pty-
|
|
16
|
+
Service49,
|
|
17
|
+
node52
|
|
18
|
+
} from "./pty-zg3tcem2.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
20
|
+
Service69,
|
|
21
21
|
node72
|
|
22
|
-
} from "./pty-
|
|
22
|
+
} from "./pty-gs3s1a1g.js";
|
|
23
23
|
import {
|
|
24
24
|
match2
|
|
25
25
|
} from "./pty-y1fvbwt7.js";
|
|
@@ -31,16 +31,16 @@ import {
|
|
|
31
31
|
var exports_tool = {};
|
|
32
32
|
__export(exports_tool, {
|
|
33
33
|
CallID: () => CallID2,
|
|
34
|
-
Content: () =>
|
|
35
|
-
Error: () =>
|
|
34
|
+
Content: () => Content2,
|
|
35
|
+
Error: () => Error2,
|
|
36
36
|
FileContent: () => FileContent3,
|
|
37
37
|
RegistrationError: () => RegistrationError2,
|
|
38
|
-
Service: () =>
|
|
38
|
+
Service: () => Service28,
|
|
39
39
|
TextContent: () => TextContent2,
|
|
40
40
|
Tool: () => exports_tool,
|
|
41
|
-
node: () =>
|
|
41
|
+
node: () => node31
|
|
42
42
|
});
|
|
43
|
-
import { CallID as CallID2, Content as
|
|
43
|
+
import { CallID as CallID2, Content as Content2, Error as Error2, FileContent as FileContent3, TextContent as TextContent2 } from "@opencode/schema/tool";
|
|
44
44
|
import { ToolDefinition } from "@opencode/ai";
|
|
45
45
|
import { Tool } from "@opencode/schema/tool";
|
|
46
46
|
import { Context, Effect, Layer, Result, Schema, SchemaIssue } from "effect";
|
|
@@ -51,11 +51,11 @@ class RegistrationError2 extends Schema.TaggedError()("Tool.RegistrationError",
|
|
|
51
51
|
}) {
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class Service28 extends Context.Service()("@opencode/Tool") {
|
|
55
55
|
}
|
|
56
|
-
var layer = Layer.effect(
|
|
57
|
-
const hooks = yield*
|
|
58
|
-
const image = yield*
|
|
56
|
+
var layer = Layer.effect(Service28, Effect.gen(function* () {
|
|
57
|
+
const hooks = yield* Service69;
|
|
58
|
+
const image = yield* Service49;
|
|
59
59
|
const normalizeImages = Effect.fnUntraced(function* (content) {
|
|
60
60
|
const normalized = yield* Effect.forEach(content, (item) => {
|
|
61
61
|
if (item.type !== "file" || !item.mime.startsWith("image/"))
|
|
@@ -184,7 +184,7 @@ var layer = Layer.effect(Service41, Effect.gen(function* () {
|
|
|
184
184
|
}), { discard: true });
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
|
-
return
|
|
187
|
+
return Service28.of({
|
|
188
188
|
transform: state.transform,
|
|
189
189
|
reload: state.reload,
|
|
190
190
|
snapshot: Effect.fn("Tool.snapshot")((permissions) => Effect.sync(() => {
|
|
@@ -272,10 +272,10 @@ function namespaceError(name) {
|
|
|
272
272
|
return;
|
|
273
273
|
return new RegistrationError2({ name, message: `Invalid tool namespace: ${JSON.stringify(name)}` });
|
|
274
274
|
}
|
|
275
|
-
var
|
|
276
|
-
service:
|
|
275
|
+
var node31 = makeLocationNode({
|
|
276
|
+
service: Service28,
|
|
277
277
|
layer,
|
|
278
|
-
deps: [node72,
|
|
278
|
+
deps: [node72, node52]
|
|
279
279
|
});
|
|
280
280
|
|
|
281
|
-
export { RegistrationError2,
|
|
281
|
+
export { RegistrationError2, Service28, node31, exports_tool, CallID2, Content2, Error2, FileContent3, TextContent2 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// src/filesystem/watcher-binding.ts
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
|
-
function
|
|
3
|
+
function load4() {
|
|
4
4
|
const require2 = createRequire(import.meta.url);
|
|
5
5
|
const libc = typeof OPENCODE_LIBC === "undefined" ? undefined : OPENCODE_LIBC;
|
|
6
6
|
return require2(process.env.OPENCODE_PARCEL_WATCHER_PATH ?? `@parcel/watcher-${process.platform}-${process.arch}${process.platform === "linux" ? `-${libc || "glibc"}` : ""}`);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export {
|
|
9
|
+
export { load4 };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./pty-
|
|
2
|
+
ID14
|
|
3
|
+
} from "./pty-rz9v06kn.js";
|
|
4
4
|
import {
|
|
5
5
|
AbsolutePath2
|
|
6
6
|
} from "./pty-922hggd3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./pty-
|
|
8
|
+
Info11
|
|
9
|
+
} from "./pty-1qg96azw.js";
|
|
10
10
|
import {
|
|
11
11
|
migrateAgent2
|
|
12
|
-
} from "./pty-
|
|
12
|
+
} from "./pty-2qtz93bp.js";
|
|
13
13
|
import {
|
|
14
14
|
latest2,
|
|
15
|
-
|
|
16
|
-
} from "./pty-
|
|
15
|
+
Service46
|
|
16
|
+
} from "./pty-a6ha29gm.js";
|
|
17
17
|
import {
|
|
18
18
|
parseOption2
|
|
19
19
|
} from "./pty-5daktx2q.js";
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
} from "./pty-9rqn6x4v.js";
|
|
23
23
|
|
|
24
24
|
// src/config/plugin/agent.ts
|
|
25
|
-
var
|
|
26
|
-
__export(
|
|
27
|
-
ConfigAgentPlugin: () =>
|
|
28
|
-
Plugin: () =>
|
|
25
|
+
var exports_agent = {};
|
|
26
|
+
__export(exports_agent, {
|
|
27
|
+
ConfigAgentPlugin: () => exports_agent,
|
|
28
|
+
Plugin: () => Plugin17
|
|
29
29
|
});
|
|
30
30
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
31
31
|
import { Document, Info } from "@opencode/schema/config";
|
|
@@ -40,14 +40,14 @@ var legacySources = [
|
|
|
40
40
|
];
|
|
41
41
|
var sourceDirectories = ["agent", "agents", "mode", "modes"];
|
|
42
42
|
var decodeAgent = Schema.decodeUnknownOption(ConfigAgent.Info);
|
|
43
|
-
var decodeLegacyAgent = Schema.decodeUnknownOption(
|
|
43
|
+
var decodeLegacyAgent = Schema.decodeUnknownOption(Info11);
|
|
44
44
|
var decodeConfig = Schema.decodeUnknownOption(Info);
|
|
45
45
|
var pathActions = ["external_directory", "read", "edit"];
|
|
46
46
|
var agentKeys = new Set(["variant", ...Object.keys(ConfigAgent.Info.fields)]);
|
|
47
|
-
var
|
|
47
|
+
var Plugin17 = define({
|
|
48
48
|
id: "opencode.config.agent",
|
|
49
49
|
effect: Effect.fn(function* (ctx) {
|
|
50
|
-
const config = yield*
|
|
50
|
+
const config = yield* Service46;
|
|
51
51
|
const fs = yield* FSUtil.Service;
|
|
52
52
|
const global = yield* Global.Service;
|
|
53
53
|
const loadEntry = Effect.fnUntraced(function* (entry) {
|
|
@@ -76,13 +76,13 @@ var Plugin19 = define({
|
|
|
76
76
|
const permissions = expandPermissions(loaded.documents.flatMap((document) => document.info.permissions ?? []), global.home);
|
|
77
77
|
const configuredDefault = latest2(loaded.documents, "default_agent");
|
|
78
78
|
if (configuredDefault !== undefined)
|
|
79
|
-
editor.default(
|
|
79
|
+
editor.default(ID14.make(configuredDefault));
|
|
80
80
|
for (const current of editor.list()) {
|
|
81
81
|
editor.update(current.id, (agent) => agent.permissions.push(...permissions));
|
|
82
82
|
}
|
|
83
83
|
for (const document of loaded.documents) {
|
|
84
84
|
for (const [id, item] of Object.entries(document.info.agents ?? {})) {
|
|
85
|
-
const agentID =
|
|
85
|
+
const agentID = ID14.make(id);
|
|
86
86
|
if (item.disabled) {
|
|
87
87
|
editor.remove(agentID);
|
|
88
88
|
continue;
|
|
@@ -161,4 +161,4 @@ function decode(file, content) {
|
|
|
161
161
|
return new Document({ type: "document", path: AbsolutePath2.make(file.filepath), info });
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
export {
|
|
164
|
+
export { Plugin17, exports_agent };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./pty-
|
|
2
|
+
Service46
|
|
3
|
+
} from "./pty-a6ha29gm.js";
|
|
4
4
|
import {
|
|
5
5
|
match2
|
|
6
6
|
} from "./pty-y1fvbwt7.js";
|
|
@@ -15,14 +15,14 @@ import {
|
|
|
15
15
|
var exports_policy = {};
|
|
16
16
|
__export(exports_policy, {
|
|
17
17
|
ConfigPolicyPlugin: () => exports_policy,
|
|
18
|
-
Plugin: () =>
|
|
18
|
+
Plugin: () => Plugin21
|
|
19
19
|
});
|
|
20
20
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
21
21
|
import { Effect } from "effect";
|
|
22
|
-
var
|
|
22
|
+
var Plugin21 = define({
|
|
23
23
|
id: "opencode.config.policy",
|
|
24
24
|
effect: Effect.fn(function* (ctx) {
|
|
25
|
-
const config = yield*
|
|
25
|
+
const config = yield* Service46;
|
|
26
26
|
const loaded = yield* observe2(config, ctx.event, ctx.provider.reload());
|
|
27
27
|
const policies = () => loaded.entries.filter((entry) => entry.type === "document").toReversed().flatMap((entry) => entry.info.experimental?.policies ?? []);
|
|
28
28
|
yield* ctx.provider.transform((providers) => {
|
|
@@ -46,4 +46,4 @@ var Plugin20 = define({
|
|
|
46
46
|
})
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { Plugin21, exports_policy };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Ref4
|
|
3
|
-
} from "./pty-
|
|
3
|
+
} from "./pty-en85tny2.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
var exports_location_service_map = {};
|
|
10
10
|
__export(exports_location_service_map, {
|
|
11
11
|
LocationServiceMap: () => exports_location_service_map,
|
|
12
|
-
Service: () =>
|
|
12
|
+
Service: () => Service43,
|
|
13
13
|
canonical: () => canonical3,
|
|
14
|
-
node: () =>
|
|
14
|
+
node: () => node45,
|
|
15
15
|
reload: () => reload2
|
|
16
16
|
});
|
|
17
17
|
import { Context, Effect, Exit, Layer, RcMap } from "effect";
|
|
@@ -19,14 +19,14 @@ import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
|
19
19
|
import { Node } from "@opencode/util/effect/app-node";
|
|
20
20
|
import { AbsolutePath } from "@opencode/schema/schema";
|
|
21
21
|
import path from "path";
|
|
22
|
-
class
|
|
22
|
+
class Service43 extends Context.Service()("@opencode/example/LocationServiceMap") {
|
|
23
23
|
static get(ref) {
|
|
24
|
-
return Layer.unwrap(Effect.map(
|
|
24
|
+
return Layer.unwrap(Effect.map(Service43, (locations) => locations.get(ref)));
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var node45 = LayerNode.unbound(Service43, Node.tags.values.global);
|
|
28
28
|
var reload2 = Effect.fn("LocationServiceMap.reload")(function* () {
|
|
29
|
-
const locations = yield*
|
|
29
|
+
const locations = yield* Service43;
|
|
30
30
|
const refs = Array.from(yield* RcMap.keys(locations.rcMap));
|
|
31
31
|
yield* Effect.forEach(refs, (ref) => locations.invalidate(ref), {
|
|
32
32
|
discard: true,
|
|
@@ -45,4 +45,4 @@ function canonical3(ref) {
|
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export {
|
|
48
|
+
export { Service43, node45, reload2, canonical3, exports_location_service_map };
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
var exports_plugin3 = {};
|
|
7
7
|
__export(exports_plugin3, {
|
|
8
8
|
ConfigPluginV1: () => exports_plugin3,
|
|
9
|
-
Options: () =>
|
|
9
|
+
Options: () => Options5,
|
|
10
10
|
Spec: () => Spec2
|
|
11
11
|
});
|
|
12
12
|
import { Schema } from "effect";
|
|
13
|
-
var
|
|
14
|
-
var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String,
|
|
13
|
+
var Options5 = Schema.Record(Schema.String, Schema.Unknown);
|
|
14
|
+
var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String, Options5]))]);
|
|
15
15
|
|
|
16
|
-
export {
|
|
16
|
+
export { Options5, Spec2, exports_plugin3 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./pty-
|
|
2
|
+
ID8,
|
|
3
|
+
Service61
|
|
4
|
+
} from "./pty-trt7zypv.js";
|
|
5
5
|
|
|
6
6
|
// src/plugin/provider/llmgateway.ts
|
|
7
7
|
import { Effect } from "effect";
|
|
@@ -9,7 +9,7 @@ import { define } from "@opencode/plugin/effect/plugin";
|
|
|
9
9
|
var LLMGatewayPlugin2 = define({
|
|
10
10
|
id: "opencode.provider.llmgateway",
|
|
11
11
|
effect: Effect.fn(function* (ctx) {
|
|
12
|
-
const integrations = yield*
|
|
12
|
+
const integrations = yield* Service61;
|
|
13
13
|
const configured = new Set((yield* integrations.list()).map((integration) => integration.id));
|
|
14
14
|
yield* ctx.provider.transform((evt) => {
|
|
15
15
|
for (const item of evt.list()) {
|
|
@@ -19,7 +19,7 @@ var LLMGatewayPlugin2 = define({
|
|
|
19
19
|
continue;
|
|
20
20
|
if (item.provider.settings?.baseURL !== "https://api.llmgateway.io/v1")
|
|
21
21
|
continue;
|
|
22
|
-
if (!configured.has(
|
|
22
|
+
if (!configured.has(ID8.make(item.provider.id)))
|
|
23
23
|
continue;
|
|
24
24
|
evt.update(item.provider.id, (provider) => {
|
|
25
25
|
provider.headers = {
|