@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,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./pty-
|
|
2
|
+
Service80,
|
|
3
|
+
node84
|
|
4
|
+
} from "./pty-tqwr2f5g.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
8
|
} from "./pty-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./pty-
|
|
10
|
+
Service77,
|
|
11
|
+
node81
|
|
12
|
+
} from "./pty-en85tny2.js";
|
|
13
13
|
import {
|
|
14
14
|
rewrite2,
|
|
15
|
-
|
|
15
|
+
ID7,
|
|
16
16
|
mergeOverlay2,
|
|
17
17
|
mergeHeaders2,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./pty-
|
|
18
|
+
Service60,
|
|
19
|
+
node63,
|
|
20
|
+
Event13
|
|
21
|
+
} from "./pty-p2bsys5p.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
24
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -29,25 +29,25 @@ __export(exports_model2, {
|
|
|
29
29
|
Capabilities: () => Capabilities2,
|
|
30
30
|
Compatibility: () => Compatibility2,
|
|
31
31
|
Cost: () => Cost2,
|
|
32
|
-
Event: () =>
|
|
32
|
+
Event: () => Event12,
|
|
33
33
|
Family: () => Family2,
|
|
34
|
-
ID: () =>
|
|
35
|
-
Info: () =>
|
|
34
|
+
ID: () => ID6,
|
|
35
|
+
Info: () => Info20,
|
|
36
36
|
Model: () => exports_model2,
|
|
37
37
|
ReasoningField: () => ReasoningField2,
|
|
38
38
|
Ref: () => Ref2,
|
|
39
|
-
Service: () =>
|
|
39
|
+
Service: () => Service59,
|
|
40
40
|
VariantID: () => VariantID2,
|
|
41
41
|
compatibility: () => compatibility2,
|
|
42
|
-
node: () =>
|
|
42
|
+
node: () => node62,
|
|
43
43
|
parse: () => parse5
|
|
44
44
|
});
|
|
45
45
|
import { Model } from "@opencode/schema/model";
|
|
46
46
|
import { Context, Effect, Layer, Stream } from "effect";
|
|
47
47
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
48
48
|
import { freeze } from "immer";
|
|
49
|
-
import { Event as
|
|
50
|
-
var
|
|
49
|
+
import { Event as Event12 } from "@opencode/schema/model";
|
|
50
|
+
var ID6 = Model.ID;
|
|
51
51
|
var VariantID2 = Model.VariantID;
|
|
52
52
|
var Family2 = Model.Family;
|
|
53
53
|
var ReasoningField2 = Model.ReasoningField;
|
|
@@ -55,14 +55,14 @@ var Compatibility2 = Model.Compatibility;
|
|
|
55
55
|
var Capabilities2 = Model.Capabilities;
|
|
56
56
|
var Cost2 = Model.Cost;
|
|
57
57
|
var Ref2 = Model.Ref;
|
|
58
|
-
var
|
|
58
|
+
var Info20 = Model.Info;
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service59 extends Context.Service()("@opencode/Model") {
|
|
61
61
|
}
|
|
62
|
-
var layer = Layer.effect(
|
|
63
|
-
const providers = yield*
|
|
64
|
-
const bus = yield*
|
|
65
|
-
const location = yield*
|
|
62
|
+
var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
63
|
+
const providers = yield* Service60;
|
|
64
|
+
const bus = yield* Service80;
|
|
65
|
+
const location = yield* Service77;
|
|
66
66
|
let input;
|
|
67
67
|
const state = create3({
|
|
68
68
|
name: "model",
|
|
@@ -107,7 +107,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
107
107
|
const models = writable(providerID);
|
|
108
108
|
if (!models)
|
|
109
109
|
return;
|
|
110
|
-
const model = draft(providerID, modelID) ??
|
|
110
|
+
const model = draft(providerID, modelID) ?? Info20.default(providerID, modelID);
|
|
111
111
|
update(model);
|
|
112
112
|
model.id = modelID;
|
|
113
113
|
model.providerID = providerID;
|
|
@@ -165,8 +165,6 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
165
165
|
...model,
|
|
166
166
|
...provider?.canonical === undefined ? {} : { canonical: provider.canonical },
|
|
167
167
|
package: model.package ?? provider?.package,
|
|
168
|
-
compaction: model.compaction ?? provider?.compaction,
|
|
169
|
-
transport: model.transport ?? provider?.transport,
|
|
170
168
|
settings: mergeOverlay2(provider?.settings, model.settings),
|
|
171
169
|
headers: mergeHeaders2(provider?.headers, model.headers),
|
|
172
170
|
body: mergeOverlay2(provider?.body, model.body)
|
|
@@ -198,8 +196,8 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
198
196
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
199
197
|
});
|
|
200
198
|
});
|
|
201
|
-
yield* bus.subscribe(
|
|
202
|
-
return
|
|
199
|
+
yield* bus.subscribe(Event13.Updated).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
200
|
+
return Service59.of({
|
|
203
201
|
transform: (update) => prepare.pipe(Effect.andThen(state.transform(update))),
|
|
204
202
|
reload,
|
|
205
203
|
get: Effect.fn("Model.get")((providerID, modelID) => read().pipe(Effect.map((value) => value.byProvider.get(providerID)?.get(modelID)))),
|
|
@@ -218,7 +216,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
218
216
|
})
|
|
219
217
|
});
|
|
220
218
|
}));
|
|
221
|
-
var
|
|
219
|
+
var node62 = makeLocationNode({ service: Service59, layer, deps: [node63, node84, node81] });
|
|
222
220
|
function compatibility2(input) {
|
|
223
221
|
if (typeof input === "string")
|
|
224
222
|
return { reasoningField: input };
|
|
@@ -229,9 +227,9 @@ function compatibility2(input) {
|
|
|
229
227
|
function parse5(input) {
|
|
230
228
|
const index = input.indexOf("/");
|
|
231
229
|
return {
|
|
232
|
-
providerID:
|
|
233
|
-
modelID:
|
|
230
|
+
providerID: ID7.make(index === -1 ? input : input.slice(0, index)),
|
|
231
|
+
modelID: ID6.make(index === -1 ? "" : input.slice(index + 1))
|
|
234
232
|
};
|
|
235
233
|
}
|
|
236
234
|
|
|
237
|
-
export {
|
|
235
|
+
export { ID6, VariantID2, Family2, ReasoningField2, Compatibility2, Capabilities2, Cost2, Ref2, Info20, Service59, node62, compatibility2, parse5, exports_model2, Event12 };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./pty-
|
|
2
|
+
Service77
|
|
3
|
+
} from "./pty-en85tny2.js";
|
|
4
4
|
import {
|
|
5
5
|
latest2,
|
|
6
|
-
|
|
7
|
-
} from "./pty-
|
|
6
|
+
Service46
|
|
7
|
+
} from "./pty-a6ha29gm.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./pty-
|
|
9
|
+
Service14
|
|
10
|
+
} from "./pty-y3ajgz1g.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./pty-
|
|
12
|
+
make10
|
|
13
|
+
} from "./pty-73tb2d7t.js";
|
|
14
14
|
import {
|
|
15
15
|
observe2
|
|
16
16
|
} from "./pty-qsdy395h.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
var exports_formatter = {};
|
|
23
23
|
__export(exports_formatter, {
|
|
24
24
|
ConfigFormatterPlugin: () => exports_formatter,
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin20
|
|
26
26
|
});
|
|
27
27
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
28
28
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -30,14 +30,14 @@ import { Global } from "@opencode/util/global";
|
|
|
30
30
|
import { Npm } from "@opencode/util/npm";
|
|
31
31
|
import { AppProcess } from "@opencode/util/process";
|
|
32
32
|
import { Effect } from "effect";
|
|
33
|
-
var
|
|
33
|
+
var Plugin20 = define({
|
|
34
34
|
id: "opencode.config.formatter",
|
|
35
35
|
effect: Effect.fn(function* (ctx) {
|
|
36
|
-
const config = yield*
|
|
37
|
-
const formatter = yield*
|
|
36
|
+
const config = yield* Service46;
|
|
37
|
+
const formatter = yield* Service14;
|
|
38
38
|
const fs = yield* FSUtil.Service;
|
|
39
39
|
const global = yield* Global.Service;
|
|
40
|
-
const location = yield*
|
|
40
|
+
const location = yield* Service77;
|
|
41
41
|
const npm = yield* Npm.Service;
|
|
42
42
|
const processes = yield* AppProcess.Service;
|
|
43
43
|
const loaded = yield* observe2(config, ctx.event, formatter.reload());
|
|
@@ -45,7 +45,7 @@ var Plugin31 = define({
|
|
|
45
45
|
const configured = latest2(loaded.entries, "formatter");
|
|
46
46
|
if (!configured)
|
|
47
47
|
return;
|
|
48
|
-
const builtIns =
|
|
48
|
+
const builtIns = make10({
|
|
49
49
|
directory: location.directory,
|
|
50
50
|
worktree: location.project.directory,
|
|
51
51
|
fs,
|
|
@@ -74,4 +74,4 @@ var Plugin31 = define({
|
|
|
74
74
|
})
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
export {
|
|
77
|
+
export { Plugin20, exports_formatter };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./pty-
|
|
4
|
+
} from "./pty-96712bz8.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
Key4,
|
|
7
7
|
removed2,
|
|
8
|
-
|
|
8
|
+
make19,
|
|
9
9
|
combine2
|
|
10
|
-
} from "./pty-
|
|
10
|
+
} from "./pty-gbt6w4kb.js";
|
|
11
11
|
import {
|
|
12
12
|
InstructionEntryTable2
|
|
13
|
-
} from "./pty-
|
|
13
|
+
} from "./pty-a1bz86dw.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -22,11 +22,11 @@ __export(exports_instruction_entry, {
|
|
|
22
22
|
InstructionEntry: () => exports_instruction_entry,
|
|
23
23
|
Key: () => Key2,
|
|
24
24
|
MaxValueBytes: () => MaxValueBytes2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service24,
|
|
26
26
|
Snapshot: () => Snapshot2,
|
|
27
27
|
ValueTooLargeError: () => ValueTooLargeError2,
|
|
28
28
|
initialize: () => initialize2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node27,
|
|
30
30
|
snapshot: () => snapshot2
|
|
31
31
|
});
|
|
32
32
|
import { and, asc, eq, isNotNull, isNull, ne, or } from "drizzle-orm";
|
|
@@ -56,13 +56,13 @@ var initialize2 = Effect.fn("InstructionEntry.initialize")(function* (db, sessio
|
|
|
56
56
|
}))).run().pipe(Effect.orDie), { discard: true });
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
class
|
|
59
|
+
class Service24 extends Context.Service()("@opencode/InstructionEntry") {
|
|
60
60
|
}
|
|
61
61
|
var renderValue = (value) => typeof value === "string" ? value : JSON.stringify(value, null, 2);
|
|
62
62
|
var renderBlock = (key, value) => [`<context key="${key}">`, renderValue(value), "</context>"].join(`
|
|
63
63
|
`);
|
|
64
|
-
var source = (entry) =>
|
|
65
|
-
key:
|
|
64
|
+
var source = (entry) => make19({
|
|
65
|
+
key: Key4.make(`api/${entry.key}`),
|
|
66
66
|
codec: Schema.toCodecJson(Schema.Json),
|
|
67
67
|
read: Effect.succeed(entry.removed ? removed2 : entry.value),
|
|
68
68
|
render: {
|
|
@@ -75,7 +75,7 @@ var source = (entry) => make21({
|
|
|
75
75
|
removed: () => `The context under "${entry.key}" no longer applies. Disregard it.`
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
var layer = Layer.effect(
|
|
78
|
+
var layer = Layer.effect(Service24, Effect.gen(function* () {
|
|
79
79
|
const { db } = yield* Service83;
|
|
80
80
|
const rows = Effect.fnUntraced(function* (sessionID, includeRemoved) {
|
|
81
81
|
return yield* db.select({
|
|
@@ -108,8 +108,8 @@ var layer = Layer.effect(Service25, Effect.gen(function* () {
|
|
|
108
108
|
const load = Effect.fn("InstructionEntry.load")(function* (sessionID) {
|
|
109
109
|
return combine2((yield* rows(sessionID, true)).map(source));
|
|
110
110
|
});
|
|
111
|
-
return
|
|
111
|
+
return Service24.of({ list, put, remove, load });
|
|
112
112
|
}));
|
|
113
|
-
var
|
|
113
|
+
var node27 = makeLocationNode({ service: Service24, layer, deps: [node87] });
|
|
114
114
|
|
|
115
|
-
export { Key2, Info3, Snapshot2, MaxValueBytes2, ValueTooLargeError2, snapshot2, initialize2,
|
|
115
|
+
export { Key2, Info3, Snapshot2, MaxValueBytes2, ValueTooLargeError2, snapshot2, initialize2, Service24, node27, exports_instruction_entry };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./pty-
|
|
3
|
+
} from "./pty-kxdh0s6n.js";
|
|
4
4
|
import {
|
|
5
5
|
call2
|
|
6
|
-
} from "./pty-
|
|
6
|
+
} from "./pty-56gdpj1q.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
// src/plugin/websearch/tinyfish.ts
|
|
12
12
|
var exports_tinyfish = {};
|
|
13
13
|
__export(exports_tinyfish, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin36,
|
|
15
15
|
WebSearchTinyFish: () => exports_tinyfish,
|
|
16
|
-
endpoint: () =>
|
|
16
|
+
endpoint: () => endpoint2
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Option, Schema } from "effect";
|
|
20
20
|
import { HttpClient } from "effect/unstable/http";
|
|
21
|
-
var
|
|
21
|
+
var endpoint2 = "https://agent.tinyfish.ai/mcp";
|
|
22
22
|
var McpInput = Schema.Struct({
|
|
23
23
|
query: Schema.String
|
|
24
24
|
});
|
|
@@ -33,7 +33,7 @@ var SearchResponse = Schema.fromJsonString(Schema.Struct({
|
|
|
33
33
|
}))
|
|
34
34
|
}));
|
|
35
35
|
var decodeSearchResponse = Schema.decodeUnknownOption(SearchResponse);
|
|
36
|
-
var
|
|
36
|
+
var Plugin36 = define({
|
|
37
37
|
id: "opencode.websearch.tinyfish",
|
|
38
38
|
effect: Effect.fn("WebSearchTinyFish.Plugin")(function* (ctx) {
|
|
39
39
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -55,7 +55,7 @@ var Plugin8 = define({
|
|
|
55
55
|
execute: (input) => Effect.gen(function* () {
|
|
56
56
|
const connection = yield* ctx.integration.connection.active("tinyfish");
|
|
57
57
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
58
|
-
const result = yield* call2(http,
|
|
58
|
+
const result = yield* call2(http, endpoint2, "search", { input: McpInput, output: McpOutput }, { query: input.query }, {
|
|
59
59
|
"User-Agent": useragent2(ctx.app),
|
|
60
60
|
...credential?.type === "key" ? { "X-API-Key": credential.key } : { "X-TinyFish-Access-Mode": "keyless" }
|
|
61
61
|
});
|
|
@@ -73,4 +73,4 @@ var Plugin8 = define({
|
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
export {
|
|
76
|
+
export { endpoint2, Plugin36, exports_tinyfish };
|
|
@@ -4,30 +4,30 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
Service83,
|
|
6
6
|
node87
|
|
7
|
-
} from "./pty-
|
|
7
|
+
} from "./pty-96712bz8.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./pty-
|
|
9
|
+
Service80,
|
|
10
|
+
node84
|
|
11
|
+
} from "./pty-tqwr2f5g.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./pty-
|
|
13
|
+
Service79,
|
|
14
|
+
node83
|
|
15
|
+
} from "./pty-hxpy2fz9.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID17,
|
|
18
18
|
Current3,
|
|
19
|
-
|
|
19
|
+
Info33,
|
|
20
20
|
UpdateInput4,
|
|
21
21
|
Event21,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./pty-
|
|
23
|
+
} from "./pty-4sn99hha.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
27
|
-
} from "./pty-
|
|
27
|
+
} from "./pty-8p4f9s12.js";
|
|
28
28
|
import {
|
|
29
29
|
WorktreeTable2
|
|
30
|
-
} from "./pty-
|
|
30
|
+
} from "./pty-cfpkc3c9.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
33
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -36,14 +36,14 @@ import {
|
|
|
36
36
|
var exports_project = {};
|
|
37
37
|
__export(exports_project, {
|
|
38
38
|
Current: () => Current2,
|
|
39
|
-
ID: () =>
|
|
40
|
-
Info: () =>
|
|
39
|
+
ID: () => ID16,
|
|
40
|
+
Info: () => Info32,
|
|
41
41
|
NotFoundError: () => NotFoundError11,
|
|
42
42
|
Project: () => exports_project,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service78,
|
|
44
44
|
UpdateInput: () => UpdateInput3,
|
|
45
45
|
Vcs: () => Vcs2,
|
|
46
|
-
node: () =>
|
|
46
|
+
node: () => node82,
|
|
47
47
|
root: () => root2
|
|
48
48
|
});
|
|
49
49
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -55,14 +55,14 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
55
55
|
import { AppProcess } from "@opencode/util/process";
|
|
56
56
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
57
57
|
import { Hash } from "@opencode/util/hash";
|
|
58
|
-
var
|
|
58
|
+
var ID16 = ID17;
|
|
59
59
|
var Vcs2 = Vcs3;
|
|
60
60
|
var Current2 = Current3;
|
|
61
|
-
var
|
|
61
|
+
var Info32 = Info33;
|
|
62
62
|
var UpdateInput3 = UpdateInput4;
|
|
63
63
|
|
|
64
64
|
class NotFoundError11 extends Schema.TaggedError()("Project.NotFoundError", {
|
|
65
|
-
projectID:
|
|
65
|
+
projectID: ID16
|
|
66
66
|
}) {
|
|
67
67
|
}
|
|
68
68
|
var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
|
|
@@ -71,7 +71,7 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
|
|
|
71
71
|
}));
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
class
|
|
74
|
+
class Service78 extends Context.Service()("@opencode/Project") {
|
|
75
75
|
}
|
|
76
76
|
function fromRow(row) {
|
|
77
77
|
const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
|
|
@@ -93,11 +93,11 @@ function fromRow(row) {
|
|
|
93
93
|
sandboxes: row.sandboxes
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
-
var layer = Layer.effect(
|
|
96
|
+
var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
97
97
|
const fs = yield* FSUtil.Service;
|
|
98
|
-
const git = yield*
|
|
98
|
+
const git = yield* Service79;
|
|
99
99
|
const proc = yield* AppProcess.Service;
|
|
100
|
-
const bus = yield*
|
|
100
|
+
const bus = yield* Service80;
|
|
101
101
|
const db = (yield* Service83).db;
|
|
102
102
|
const announcing = new Set;
|
|
103
103
|
const persist = Effect.fnUntraced(function* (project) {
|
|
@@ -143,7 +143,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
143
143
|
yield* bus.publish(Worktree.Event.Resolved, {
|
|
144
144
|
projectID: item.projectID,
|
|
145
145
|
directory: item.directory,
|
|
146
|
-
previous: project.previous ??
|
|
146
|
+
previous: project.previous ?? ID16.global,
|
|
147
147
|
...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
|
|
148
148
|
}, {
|
|
149
149
|
commit: () => db.insert(WorktreeTable2).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
|
|
@@ -172,7 +172,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
172
172
|
return project;
|
|
173
173
|
});
|
|
174
174
|
const cached = Effect.fnUntraced(function* (dir) {
|
|
175
|
-
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ?
|
|
175
|
+
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID16.make(value) : undefined), Effect.orElseSucceed(() => {
|
|
176
176
|
return;
|
|
177
177
|
}));
|
|
178
178
|
});
|
|
@@ -183,7 +183,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
183
183
|
const normalized = url(origin);
|
|
184
184
|
if (!normalized)
|
|
185
185
|
return;
|
|
186
|
-
return
|
|
186
|
+
return ID16.make(Hash.fast(`git-remote:${normalized}`));
|
|
187
187
|
});
|
|
188
188
|
function url(input) {
|
|
189
189
|
const value = input.trim();
|
|
@@ -208,7 +208,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
208
208
|
}
|
|
209
209
|
const rootCommit = Effect.fnUntraced(function* (repo) {
|
|
210
210
|
const root = (yield* git.history.rootCommits(repo))[0];
|
|
211
|
-
return root ?
|
|
211
|
+
return root ? ID16.make(root) : undefined;
|
|
212
212
|
});
|
|
213
213
|
const hgRoot = Effect.fnUntraced(function* (worktree) {
|
|
214
214
|
const result = yield* proc.run(ChildProcess.make("hg", ["log", "-r", "roots(all())", "-T", `{node}
|
|
@@ -224,7 +224,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
224
224
|
return;
|
|
225
225
|
const node = result.stdout.toString("utf8").split(`
|
|
226
226
|
`).map((item) => item.trim()).filter(Boolean).toSorted()[0];
|
|
227
|
-
return node ?
|
|
227
|
+
return node ? ID16.make(node) : undefined;
|
|
228
228
|
});
|
|
229
229
|
const hgDiscover = Effect.fnUntraced(function* (dotHg) {
|
|
230
230
|
const worktree = AbsolutePath2.make(path.dirname(dotHg));
|
|
@@ -233,7 +233,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
233
233
|
const id = previous ?? (yield* hgRoot(worktree));
|
|
234
234
|
return {
|
|
235
235
|
previous,
|
|
236
|
-
id: id ??
|
|
236
|
+
id: id ?? ID16.global,
|
|
237
237
|
directory: worktree,
|
|
238
238
|
vcs: { type: "hg", store }
|
|
239
239
|
};
|
|
@@ -250,7 +250,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
250
250
|
const canonical = repo.gitDirectory === repo.commonDirectory ? repo.worktree : yield* git.worktree.list(repo).pipe(Effect.map((items) => items.find((item) => item.kind === "main")?.directory ?? repo.worktree), Effect.orElseSucceed(() => repo.worktree));
|
|
251
251
|
return yield* persist({
|
|
252
252
|
previous,
|
|
253
|
-
id: id ??
|
|
253
|
+
id: id ?? ID16.global,
|
|
254
254
|
directory: repo.worktree,
|
|
255
255
|
canonical,
|
|
256
256
|
vcs: { type: "git", store: repo.commonDirectory }
|
|
@@ -264,18 +264,18 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
264
264
|
});
|
|
265
265
|
}
|
|
266
266
|
return yield* persist({
|
|
267
|
-
id:
|
|
267
|
+
id: ID16.make(Hash.fast(`directory:${directory}`)),
|
|
268
268
|
directory,
|
|
269
269
|
canonical: directory,
|
|
270
270
|
vcs: undefined
|
|
271
271
|
});
|
|
272
272
|
});
|
|
273
|
-
return
|
|
273
|
+
return Service78.of({ list, update, resolve });
|
|
274
274
|
}));
|
|
275
|
-
var
|
|
276
|
-
service:
|
|
275
|
+
var node82 = makeGlobalNode({
|
|
276
|
+
service: Service78,
|
|
277
277
|
layer,
|
|
278
|
-
deps: [
|
|
278
|
+
deps: [node84, node87, FSUtil.node, node83, AppProcess.node]
|
|
279
279
|
});
|
|
280
280
|
|
|
281
|
-
export {
|
|
281
|
+
export { ID16, Vcs2, Current2, Info32, UpdateInput3, NotFoundError11, root2, Service78, node82, exports_project };
|