@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,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83
|
|
3
|
-
} from "./pty-
|
|
3
|
+
} from "./pty-96712bz8.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./pty-
|
|
5
|
+
Service80
|
|
6
|
+
} from "./pty-tqwr2f5g.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./pty-
|
|
8
|
+
Service35
|
|
9
|
+
} from "./pty-cdm0dq9n.js";
|
|
10
10
|
import {
|
|
11
11
|
RelativePath2
|
|
12
12
|
} from "./pty-922hggd3.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./pty-
|
|
14
|
+
ID5,
|
|
15
|
+
Service58
|
|
16
|
+
} from "./pty-8ktdpdbn.js";
|
|
17
17
|
import {
|
|
18
18
|
SessionEvent2
|
|
19
19
|
} from "./pty-ec1grn59.js";
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
} from "./pty-gftt206x.js";
|
|
23
23
|
import {
|
|
24
24
|
MessageNotFoundError2
|
|
25
|
-
} from "./pty-
|
|
25
|
+
} from "./pty-f35htakt.js";
|
|
26
26
|
import {
|
|
27
27
|
SessionMessageTable2
|
|
28
|
-
} from "./pty-
|
|
28
|
+
} from "./pty-a1bz86dw.js";
|
|
29
29
|
import {
|
|
30
30
|
__export
|
|
31
31
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -42,12 +42,12 @@ __export(exports_revert, {
|
|
|
42
42
|
import { and, asc, eq, gt } from "drizzle-orm";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
45
|
-
const instances = yield*
|
|
45
|
+
const instances = yield* Service35;
|
|
46
46
|
const database = yield* Service83;
|
|
47
|
-
const bus = yield*
|
|
47
|
+
const bus = yield* Service80;
|
|
48
48
|
return yield* Effect.gen(function* () {
|
|
49
|
-
const snapshot = yield*
|
|
50
|
-
const original = input.session.revert?.snapshot ?
|
|
49
|
+
const snapshot = yield* Service58;
|
|
50
|
+
const original = input.session.revert?.snapshot ? ID5.make(input.session.revert.snapshot) : yield* snapshot.capture();
|
|
51
51
|
const next = yield* plan(database.db, { sessionID: input.session.id, messageID: input.messageID });
|
|
52
52
|
const restore = new Map;
|
|
53
53
|
if (original) {
|
|
@@ -74,13 +74,13 @@ var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
|
74
74
|
}).pipe(instances.provide(input.session));
|
|
75
75
|
});
|
|
76
76
|
var clear2 = Effect.fn("SessionRevert.clear")(function* (session) {
|
|
77
|
-
const instances = yield*
|
|
78
|
-
const bus = yield*
|
|
77
|
+
const instances = yield* Service35;
|
|
78
|
+
const bus = yield* Service80;
|
|
79
79
|
yield* Effect.gen(function* () {
|
|
80
|
-
const snapshot = yield*
|
|
80
|
+
const snapshot = yield* Service58;
|
|
81
81
|
if (!session.revert)
|
|
82
82
|
return;
|
|
83
|
-
const original = session.revert.snapshot ?
|
|
83
|
+
const original = session.revert.snapshot ? ID5.make(session.revert.snapshot) : undefined;
|
|
84
84
|
if (original)
|
|
85
85
|
yield* snapshot.restore({
|
|
86
86
|
files: new Map((session.revert.files ?? []).map((file) => [RelativePath2.make(file.file), original]))
|
|
@@ -111,7 +111,7 @@ var plan = Effect.fn("SessionRevert.plan")(function* (db, input) {
|
|
|
111
111
|
continue;
|
|
112
112
|
for (const file of message.snapshot.files ?? [])
|
|
113
113
|
if (!files.has(file))
|
|
114
|
-
files.set(file,
|
|
114
|
+
files.set(file, ID5.make(message.snapshot.start));
|
|
115
115
|
}
|
|
116
116
|
return files;
|
|
117
117
|
});
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
var exports_hooks = {};
|
|
7
7
|
__export(exports_hooks, {
|
|
8
8
|
PluginHooks: () => exports_hooks,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service69,
|
|
10
10
|
node: () => node72
|
|
11
11
|
});
|
|
12
12
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
@@ -20,9 +20,9 @@ var eventProviderID = (event) => {
|
|
|
20
20
|
return typeof model.providerID === "string" ? model.providerID : undefined;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class Service69 extends Context.Service()("@opencode/PluginHooks") {
|
|
24
24
|
}
|
|
25
|
-
var layer = Layer.effect(
|
|
25
|
+
var layer = Layer.effect(Service69, Effect.gen(function* () {
|
|
26
26
|
const callbacks = new Map;
|
|
27
27
|
const key = (domain, name) => `${domain}.${String(name)}`;
|
|
28
28
|
const register = Effect.fn("PluginHooks.register")(function* (domain, name, callback, options) {
|
|
@@ -54,8 +54,8 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
54
54
|
return event;
|
|
55
55
|
});
|
|
56
56
|
const has = (domain, name, providerID) => Effect.sync(() => (callbacks.get(key(domain, name)) ?? []).some((entry) => entry.options?.providerID === undefined || entry.options.providerID === providerID));
|
|
57
|
-
return
|
|
57
|
+
return Service69.of({ has, register, trigger });
|
|
58
58
|
}));
|
|
59
|
-
var node72 = makeLocationNode({ service:
|
|
59
|
+
var node72 = makeLocationNode({ service: Service69, layer, deps: [] });
|
|
60
60
|
|
|
61
|
-
export {
|
|
61
|
+
export { Service69, node72, exports_hooks };
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./pty-
|
|
3
|
+
} from "./pty-jwcy2c2z.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./pty-
|
|
5
|
+
Service80,
|
|
6
|
+
node84
|
|
7
|
+
} from "./pty-tqwr2f5g.js";
|
|
8
|
+
import {
|
|
9
|
+
Event15,
|
|
10
|
+
Service62,
|
|
11
|
+
node65
|
|
12
|
+
} from "./pty-5cn1q5nw.js";
|
|
8
13
|
import {
|
|
9
|
-
Event19,
|
|
10
14
|
Service77,
|
|
11
15
|
node81
|
|
12
|
-
} from "./pty-
|
|
13
|
-
import {
|
|
14
|
-
Service79,
|
|
15
|
-
node83
|
|
16
|
-
} from "./pty-rsd57mk1.js";
|
|
16
|
+
} from "./pty-en85tny2.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./pty-
|
|
18
|
+
Service75,
|
|
19
|
+
node78
|
|
20
|
+
} from "./pty-47r0kvy6.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./pty-
|
|
22
|
+
ID10,
|
|
23
|
+
Service63,
|
|
24
|
+
node66
|
|
25
|
+
} from "./pty-g408yz0d.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
29
|
} from "./pty-rdw6cm16.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID8,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./pty-
|
|
33
|
+
Service61,
|
|
34
|
+
node64
|
|
35
|
+
} from "./pty-trt7zypv.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
38
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -42,7 +42,7 @@ var exports_mcp4 = {};
|
|
|
42
42
|
__export(exports_mcp4, {
|
|
43
43
|
Mcp: () => exports_mcp4,
|
|
44
44
|
NotFoundError: () => NotFoundError2,
|
|
45
|
-
Options: () =>
|
|
45
|
+
Options: () => Options3,
|
|
46
46
|
PromptsChanged: () => PromptsChanged2,
|
|
47
47
|
Resource: () => Resource2,
|
|
48
48
|
ResourceCatalog: () => ResourceCatalog2,
|
|
@@ -50,12 +50,12 @@ __export(exports_mcp4, {
|
|
|
50
50
|
ResourceContentPart: () => ResourceContentPart2,
|
|
51
51
|
ResourceTemplate: () => ResourceTemplate2,
|
|
52
52
|
ServerName: () => ServerName2,
|
|
53
|
-
Service: () =>
|
|
53
|
+
Service: () => Service23,
|
|
54
54
|
Status: () => Status2,
|
|
55
55
|
ToolCallError: () => ToolCallError2,
|
|
56
|
-
configured: () =>
|
|
57
|
-
layer: () =>
|
|
58
|
-
node: () =>
|
|
56
|
+
configured: () => configured3,
|
|
57
|
+
layer: () => layer11,
|
|
58
|
+
node: () => node25
|
|
59
59
|
});
|
|
60
60
|
import { Mcp } from "@opencode/schema/mcp";
|
|
61
61
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -93,21 +93,21 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
|
93
93
|
var endpointLoads = makeUnsafe2();
|
|
94
94
|
var cloneConfig = (config) => structuredClone(config);
|
|
95
95
|
|
|
96
|
-
class
|
|
96
|
+
class Service23 extends Context.Service()("@opencode/MCP") {
|
|
97
97
|
}
|
|
98
|
-
var
|
|
98
|
+
var Options3 = Schema.Struct({
|
|
99
99
|
clientInfo: Schema.optional(Schema.Struct({
|
|
100
100
|
name: Schema.String,
|
|
101
101
|
version: Schema.String
|
|
102
102
|
}))
|
|
103
103
|
});
|
|
104
|
-
var
|
|
105
|
-
const location = yield*
|
|
106
|
-
const environment = yield*
|
|
107
|
-
const bus = yield*
|
|
108
|
-
const forms = yield*
|
|
109
|
-
const integration = yield*
|
|
110
|
-
const credentials = yield*
|
|
104
|
+
var layer11 = (options) => Layer.effect(Service23, Effect.gen(function* () {
|
|
105
|
+
const location = yield* Service77;
|
|
106
|
+
const environment = yield* Service75;
|
|
107
|
+
const bus = yield* Service80;
|
|
108
|
+
const forms = yield* Service63;
|
|
109
|
+
const integration = yield* Service61;
|
|
110
|
+
const credentials = yield* Service62;
|
|
111
111
|
const root = yield* Effect.scope;
|
|
112
112
|
const fork = yield* FiberSet.makeRuntime();
|
|
113
113
|
const entries = new Map;
|
|
@@ -119,7 +119,7 @@ var layer10 = (options) => Layer.effect(Service22, Effect.gen(function* () {
|
|
|
119
119
|
return;
|
|
120
120
|
const remote = entry.config;
|
|
121
121
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
122
|
-
const integrationID =
|
|
122
|
+
const integrationID = ID8.make(suffix);
|
|
123
123
|
entry.integrationID = integrationID;
|
|
124
124
|
owned.add(integrationID);
|
|
125
125
|
const methodID = MethodID2.make(suffix);
|
|
@@ -135,7 +135,7 @@ var layer10 = (options) => Layer.effect(Service22, Effect.gen(function* () {
|
|
|
135
135
|
method: { id: methodID, type: "oauth", label: name },
|
|
136
136
|
authorize: () => Effect.gen(function* () {
|
|
137
137
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
138
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
138
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service62, credentials));
|
|
139
139
|
})
|
|
140
140
|
});
|
|
141
141
|
}).pipe(Scope.provide(scope));
|
|
@@ -151,12 +151,12 @@ var layer10 = (options) => Layer.effect(Service22, Effect.gen(function* () {
|
|
|
151
151
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
152
152
|
return;
|
|
153
153
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
154
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
154
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service62, credentials));
|
|
155
155
|
});
|
|
156
156
|
const elicitation = {
|
|
157
157
|
create: (input) => Effect.gen(function* () {
|
|
158
158
|
if (input.params.mode === "url") {
|
|
159
|
-
const formID =
|
|
159
|
+
const formID = ID10.create();
|
|
160
160
|
const elicitationID = input.params.elicitationId;
|
|
161
161
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
162
162
|
if (key)
|
|
@@ -240,7 +240,7 @@ var layer10 = (options) => Layer.effect(Service22, Effect.gen(function* () {
|
|
|
240
240
|
entry.scope = scope;
|
|
241
241
|
const authProvider = yield* connectProvider(entry);
|
|
242
242
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
243
|
-
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
243
|
+
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service75, environment), Scope.provide(scope));
|
|
244
244
|
const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
|
|
245
245
|
if (Exit.isSuccess(result)) {
|
|
246
246
|
entry.client = result.value.connection;
|
|
@@ -365,7 +365,7 @@ var layer10 = (options) => Layer.effect(Service22, Effect.gen(function* () {
|
|
|
365
365
|
yield* startServer(name, entry);
|
|
366
366
|
}).pipe(locks.withLock(name));
|
|
367
367
|
});
|
|
368
|
-
fork(bus.subscribe(
|
|
368
|
+
fork(bus.subscribe(Event15.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
369
369
|
const state = create3({
|
|
370
370
|
name: "mcp",
|
|
371
371
|
initial: () => ({
|
|
@@ -391,7 +391,7 @@ var layer10 = (options) => Layer.effect(Service22, Effect.gen(function* () {
|
|
|
391
391
|
}),
|
|
392
392
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
393
393
|
});
|
|
394
|
-
return
|
|
394
|
+
return Service23.of({
|
|
395
395
|
transform: state.transform,
|
|
396
396
|
reload: state.reload,
|
|
397
397
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -510,14 +510,14 @@ var layer10 = (options) => Layer.effect(Service22, Effect.gen(function* () {
|
|
|
510
510
|
})
|
|
511
511
|
});
|
|
512
512
|
}));
|
|
513
|
-
function
|
|
513
|
+
function configured3(options) {
|
|
514
514
|
return makeLocationNode({
|
|
515
|
-
service:
|
|
516
|
-
layer:
|
|
517
|
-
deps: [
|
|
515
|
+
service: Service23,
|
|
516
|
+
layer: layer11(options),
|
|
517
|
+
deps: [node81, node78, node84, node66, node64, node65]
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
var
|
|
520
|
+
var node25 = configured3();
|
|
521
521
|
function toElicitationField(key, property, required) {
|
|
522
522
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
523
523
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -568,4 +568,4 @@ function toElicitationField(key, property, required) {
|
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
|
|
571
|
-
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2, NotFoundError2, ToolCallError2,
|
|
571
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2, NotFoundError2, ToolCallError2, Service23, Options3, layer11, configured3, node25, exports_mcp4 };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./pty-
|
|
2
|
+
Service77
|
|
3
|
+
} from "./pty-en85tny2.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./pty-
|
|
5
|
+
Service75
|
|
6
|
+
} from "./pty-47r0kvy6.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
Service74,
|
|
9
9
|
readText2,
|
|
10
10
|
syncTextBom2
|
|
11
|
-
} from "./pty-
|
|
11
|
+
} from "./pty-2deyrhr8.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./pty-
|
|
13
|
+
Service14
|
|
14
|
+
} from "./pty-y3ajgz1g.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./pty-
|
|
16
|
+
Service66
|
|
17
|
+
} from "./pty-hdfkv0ev.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
Service53,
|
|
20
20
|
resolvePath2
|
|
21
|
-
} from "./pty-
|
|
21
|
+
} from "./pty-gf229ayp.js";
|
|
22
22
|
import {
|
|
23
23
|
fileDiff2
|
|
24
24
|
} from "./pty-6prwharc.js";
|
|
@@ -30,17 +30,17 @@ import {
|
|
|
30
30
|
var exports_edit = {};
|
|
31
31
|
__export(exports_edit, {
|
|
32
32
|
EditTool: () => exports_edit,
|
|
33
|
-
Input: () =>
|
|
34
|
-
Output: () =>
|
|
35
|
-
Plugin: () =>
|
|
36
|
-
name: () =>
|
|
33
|
+
Input: () => Input10,
|
|
34
|
+
Output: () => Output6,
|
|
35
|
+
Plugin: () => Plugin11,
|
|
36
|
+
name: () => name10
|
|
37
37
|
});
|
|
38
38
|
import { ToolFailure } from "@opencode/ai";
|
|
39
39
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
40
40
|
import { Bom } from "@opencode/util/bom";
|
|
41
41
|
import { Effect, Schema } from "effect";
|
|
42
|
-
var
|
|
43
|
-
var
|
|
42
|
+
var name10 = "edit";
|
|
43
|
+
var Input10 = Schema.Struct({
|
|
44
44
|
path: Schema.String.annotate({
|
|
45
45
|
description: "File to edit"
|
|
46
46
|
}),
|
|
@@ -50,7 +50,7 @@ var Input4 = Schema.Struct({
|
|
|
50
50
|
description: "Whether to replace every occurrence of oldString. When false, oldString must match exactly once. Defaults to false."
|
|
51
51
|
})
|
|
52
52
|
});
|
|
53
|
-
var
|
|
53
|
+
var Output6 = Schema.Struct({
|
|
54
54
|
files: Schema.Array(FileDiff.Info),
|
|
55
55
|
replacements: Schema.Number
|
|
56
56
|
});
|
|
@@ -103,21 +103,21 @@ var findLineOccurrences = (content, search) => {
|
|
|
103
103
|
return result;
|
|
104
104
|
}, []);
|
|
105
105
|
};
|
|
106
|
-
var
|
|
106
|
+
var Plugin11 = {
|
|
107
107
|
id: "opencode.tool.edit",
|
|
108
108
|
effect: Effect.fn("EditTool.Plugin")(function* (ctx) {
|
|
109
|
-
const access = yield*
|
|
110
|
-
const fileMutation = yield*
|
|
111
|
-
const environment = yield*
|
|
112
|
-
const formatter = yield*
|
|
113
|
-
const location = yield*
|
|
114
|
-
const permission = yield*
|
|
109
|
+
const access = yield* Service53;
|
|
110
|
+
const fileMutation = yield* Service74;
|
|
111
|
+
const environment = yield* Service75;
|
|
112
|
+
const formatter = yield* Service14;
|
|
113
|
+
const location = yield* Service77;
|
|
114
|
+
const permission = yield* Service66;
|
|
115
115
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
116
|
-
name:
|
|
116
|
+
name: name10,
|
|
117
117
|
options: { codemode: false, permission: "edit" },
|
|
118
118
|
description: "Edit the contents of a file by finding and replacing exact text. When editing text from Read output, preserve the exact indentation (tabs or spaces) and omit the line-number prefix, such as `1: `. Never include the prefix in oldString or newString. The edit fails if oldString is not found. By default, oldString must identify a UNIQUE location. Multiple matches FAIL unless replaceAll is true. Add more surrounding context to disambiguate, or set replaceAll to true to replace every occurrence. Use replaceAll when the change should apply to every occurrence, such as renaming a variable.",
|
|
119
|
-
input:
|
|
120
|
-
output:
|
|
119
|
+
input: Input10,
|
|
120
|
+
output: Output6,
|
|
121
121
|
execute: (input, context) => {
|
|
122
122
|
return Effect.gen(function* () {
|
|
123
123
|
const permissionSource = {
|
|
@@ -194,4 +194,4 @@ var Plugin38 = {
|
|
|
194
194
|
})
|
|
195
195
|
};
|
|
196
196
|
|
|
197
|
-
export {
|
|
197
|
+
export { name10, Input10, Output6, Plugin11, exports_edit };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./pty-
|
|
4
|
+
} from "./pty-96712bz8.js";
|
|
5
5
|
import {
|
|
6
6
|
PermissionTable2
|
|
7
|
-
} from "./pty-
|
|
7
|
+
} from "./pty-f828m53h.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
10
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -13,20 +13,20 @@ import {
|
|
|
13
13
|
var exports_saved = {};
|
|
14
14
|
__export(exports_saved, {
|
|
15
15
|
AddInput: () => AddInput2,
|
|
16
|
-
ID: () =>
|
|
17
|
-
Info: () =>
|
|
16
|
+
ID: () => ID13,
|
|
17
|
+
Info: () => Info27,
|
|
18
18
|
ListInput: () => ListInput4,
|
|
19
19
|
PermissionSaved: () => exports_saved,
|
|
20
|
-
Service: () =>
|
|
21
|
-
node: () =>
|
|
20
|
+
Service: () => Service67,
|
|
21
|
+
node: () => node70
|
|
22
22
|
});
|
|
23
23
|
import { eq } from "drizzle-orm";
|
|
24
24
|
import { Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
25
25
|
import { Project } from "@opencode/schema/project";
|
|
26
26
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { PermissionSaved } from "@opencode/schema/permission-saved";
|
|
28
|
-
var
|
|
29
|
-
var
|
|
28
|
+
var ID13 = PermissionSaved.ID;
|
|
29
|
+
var Info27 = PermissionSaved.Info;
|
|
30
30
|
var ListInput4 = Schema.Struct({
|
|
31
31
|
projectID: Project.ID.pipe(Schema.optional)
|
|
32
32
|
}).annotate({ identifier: "PermissionSaved.ListInput" });
|
|
@@ -36,9 +36,9 @@ var AddInput2 = Schema.Struct({
|
|
|
36
36
|
resources: Schema.Array(Schema.String)
|
|
37
37
|
}).annotate({ identifier: "PermissionSaved.AddInput" });
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class Service67 extends Context.Service()("@opencode/PermissionSaved") {
|
|
40
40
|
}
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
42
42
|
const db = (yield* Service83).db;
|
|
43
43
|
const list = Effect.fnUntraced(function* (input) {
|
|
44
44
|
const rows = yield* db.select().from(PermissionTable2).where(input?.projectID ? eq(PermissionTable2.project_id, input.projectID) : undefined).all().pipe(Effect.orDie);
|
|
@@ -57,7 +57,7 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
|
57
57
|
if (!input.resources.length)
|
|
58
58
|
return;
|
|
59
59
|
yield* db.insert(PermissionTable2).values(input.resources.map((resource) => ({
|
|
60
|
-
id:
|
|
60
|
+
id: ID13.create(),
|
|
61
61
|
project_id: input.projectID,
|
|
62
62
|
action: input.action,
|
|
63
63
|
resource
|
|
@@ -66,8 +66,8 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
|
66
66
|
const remove = Effect.fn("PermissionSaved.remove")(function* (id) {
|
|
67
67
|
yield* db.delete(PermissionTable2).where(eq(PermissionTable2.id, id)).run().pipe(Effect.orDie);
|
|
68
68
|
});
|
|
69
|
-
return
|
|
69
|
+
return Service67.of({ list, add, remove });
|
|
70
70
|
}));
|
|
71
|
-
var
|
|
71
|
+
var node70 = makeGlobalNode({ service: Service67, layer, deps: [node87] });
|
|
72
72
|
|
|
73
|
-
export {
|
|
73
|
+
export { ID13, Info27, ListInput4, AddInput2, Service67, node70, exports_saved };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OAuth3
|
|
3
|
-
} from "./pty-
|
|
3
|
+
} from "./pty-5cn1q5nw.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
ID8,
|
|
6
6
|
MethodID2
|
|
7
|
-
} from "./pty-
|
|
7
|
+
} from "./pty-trt7zypv.js";
|
|
8
8
|
import {
|
|
9
9
|
success2,
|
|
10
10
|
error2
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
15
15
|
import { Clock, Deferred, Effect, Option, Schema } from "effect";
|
|
16
16
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
17
|
-
var integrationID =
|
|
17
|
+
var integrationID = ID8.make("poe");
|
|
18
18
|
var methodID = MethodID2.make("browser");
|
|
19
19
|
var clientID = "client_728290227fc048cc9262091a1ea197ea";
|
|
20
20
|
var issuer = "https://poe.com";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./pty-
|
|
2
|
+
ID7
|
|
3
|
+
} from "./pty-p2bsys5p.js";
|
|
4
4
|
import {
|
|
5
5
|
loadSDKFactory2
|
|
6
6
|
} from "./pty-hjbc5kem.js";
|
|
@@ -14,7 +14,7 @@ var SapAICorePlugin2 = define({
|
|
|
14
14
|
effect: Effect.fn(function* (ctx) {
|
|
15
15
|
const npm = yield* Npm.Service;
|
|
16
16
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
17
|
-
if (evt.model.providerID !==
|
|
17
|
+
if (evt.model.providerID !== ID7.make("sap-ai-core"))
|
|
18
18
|
return;
|
|
19
19
|
const serviceKey = process.env.AICORE_SERVICE_KEY ?? (typeof evt.options.serviceKey === "string" ? evt.options.serviceKey : undefined);
|
|
20
20
|
if (serviceKey && !process.env.AICORE_SERVICE_KEY)
|
|
@@ -25,7 +25,7 @@ var SapAICorePlugin2 = define({
|
|
|
25
25
|
evt.sdk = factory(serviceKey ? { deploymentId: process.env.AICORE_DEPLOYMENT_ID, resourceGroup: process.env.AICORE_RESOURCE_GROUP } : {});
|
|
26
26
|
}));
|
|
27
27
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
28
|
-
if (evt.model.providerID !==
|
|
28
|
+
if (evt.model.providerID !== ID7.make("sap-ai-core"))
|
|
29
29
|
return;
|
|
30
30
|
evt.language = evt.sdk(evt.model.modelID ?? evt.model.id);
|
|
31
31
|
}));
|