@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,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./pty-
|
|
2
|
+
ID14,
|
|
3
|
+
Service70
|
|
4
|
+
} from "./pty-rz9v06kn.js";
|
|
5
5
|
import {
|
|
6
6
|
Ref2,
|
|
7
|
-
|
|
8
|
-
} from "./pty-
|
|
7
|
+
Service59
|
|
8
|
+
} from "./pty-vf5yby4q.js";
|
|
9
9
|
import {
|
|
10
10
|
latest2,
|
|
11
|
-
|
|
12
|
-
} from "./pty-
|
|
11
|
+
Service46
|
|
12
|
+
} from "./pty-a6ha29gm.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionSchema2
|
|
15
|
-
} from "./pty-
|
|
15
|
+
} from "./pty-256nx13v.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./pty-
|
|
17
|
+
Service81
|
|
18
|
+
} from "./pty-k388e6t1.js";
|
|
19
19
|
import {
|
|
20
20
|
evaluate2,
|
|
21
|
-
|
|
22
|
-
} from "./pty-
|
|
21
|
+
Service66
|
|
22
|
+
} from "./pty-hdfkv0ev.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./pty-
|
|
24
|
+
Service15
|
|
25
|
+
} from "./pty-92hvatj2.js";
|
|
26
26
|
import {
|
|
27
27
|
NO_TEXT2
|
|
28
28
|
} from "./pty-x1ezjp6w.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./pty-
|
|
30
|
+
make7
|
|
31
|
+
} from "./pty-010xpxbn.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
34
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -36,16 +36,16 @@ import {
|
|
|
36
36
|
// src/tool/plugin/subagent.ts
|
|
37
37
|
var exports_subagent = {};
|
|
38
38
|
__export(exports_subagent, {
|
|
39
|
-
Input: () =>
|
|
40
|
-
Output: () =>
|
|
41
|
-
Plugin: () =>
|
|
39
|
+
Input: () => Input5,
|
|
40
|
+
Output: () => Output4,
|
|
41
|
+
Plugin: () => Plugin5,
|
|
42
42
|
SubagentTool: () => exports_subagent,
|
|
43
|
-
description: () =>
|
|
44
|
-
name: () =>
|
|
43
|
+
description: () => description3,
|
|
44
|
+
name: () => name5
|
|
45
45
|
});
|
|
46
46
|
import { ToolFailure } from "@opencode/ai";
|
|
47
47
|
import { Effect, Schema } from "effect";
|
|
48
|
-
var
|
|
48
|
+
var name5 = "subagent";
|
|
49
49
|
var backgroundResult = (sessionID) => ({
|
|
50
50
|
sessionID,
|
|
51
51
|
status: "running",
|
|
@@ -56,7 +56,7 @@ var backgroundResult = (sessionID) => ({
|
|
|
56
56
|
].join(`
|
|
57
57
|
`)
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var Input5 = Schema.Struct({
|
|
60
60
|
agent: Schema.String.annotate({
|
|
61
61
|
description: "The type of specialized agent to use for this task. If the user asks for a subagent by a name that is not one of the available subagents, they most likely mean a model: pick a suitable agent and pass the name through the model parameter instead."
|
|
62
62
|
}),
|
|
@@ -72,12 +72,12 @@ var Input9 = Schema.Struct({
|
|
|
72
72
|
description: "Run the subagent in the background and return immediately. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress."
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
|
-
var
|
|
75
|
+
var Output4 = Schema.Struct({
|
|
76
76
|
sessionID: SessionSchema2.ID,
|
|
77
77
|
status: Schema.Literals(["completed", "running"]),
|
|
78
78
|
output: Schema.String
|
|
79
79
|
});
|
|
80
|
-
var
|
|
80
|
+
var description3 = [
|
|
81
81
|
"Spawns an agent in a child session to work on the specified task.",
|
|
82
82
|
"The output includes a sessionID you can pass back later to continue that specific conversation with the subagent.",
|
|
83
83
|
"New child sessions start with fresh context, so include all relevant context and instructions when you don't pass a sessionID.",
|
|
@@ -86,16 +86,16 @@ var description5 = [
|
|
|
86
86
|
"Use background only for independent work that can run while you continue elsewhere."
|
|
87
87
|
].join(`
|
|
88
88
|
`);
|
|
89
|
-
var
|
|
89
|
+
var Plugin5 = {
|
|
90
90
|
id: "opencode.tool.subagent",
|
|
91
91
|
effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
|
|
92
|
-
const sessions = yield*
|
|
93
|
-
const jobs = yield*
|
|
94
|
-
const agents = yield*
|
|
95
|
-
const config = yield*
|
|
96
|
-
const permission = yield*
|
|
97
|
-
const models = yield*
|
|
98
|
-
const subagents = yield*
|
|
92
|
+
const sessions = yield* Service15;
|
|
93
|
+
const jobs = yield* Service81;
|
|
94
|
+
const agents = yield* Service70;
|
|
95
|
+
const config = yield* Service46;
|
|
96
|
+
const permission = yield* Service66;
|
|
97
|
+
const models = yield* Service59;
|
|
98
|
+
const subagents = yield* make7;
|
|
99
99
|
const resolveModel = Effect.fn("SubagentTool.resolveModel")(function* (input) {
|
|
100
100
|
const ref = yield* Effect.try({
|
|
101
101
|
try: () => Ref2.parse(input),
|
|
@@ -115,11 +115,11 @@ var Plugin43 = {
|
|
|
115
115
|
return ref;
|
|
116
116
|
});
|
|
117
117
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
118
|
-
name:
|
|
118
|
+
name: name5,
|
|
119
119
|
options: { codemode: false },
|
|
120
|
-
description:
|
|
121
|
-
input:
|
|
122
|
-
output:
|
|
120
|
+
description: description3,
|
|
121
|
+
input: Input5,
|
|
122
|
+
output: Output4,
|
|
123
123
|
execute: (input, context) => Effect.gen(function* () {
|
|
124
124
|
const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
|
|
125
125
|
let current = parent;
|
|
@@ -139,7 +139,7 @@ var Plugin43 = {
|
|
|
139
139
|
if (agent.mode === "primary")
|
|
140
140
|
return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
|
|
141
141
|
yield* permission.assert({
|
|
142
|
-
action:
|
|
142
|
+
action: name5,
|
|
143
143
|
resources: [agent.id],
|
|
144
144
|
save: [agent.id],
|
|
145
145
|
sessionID: context.sessionID,
|
|
@@ -168,7 +168,7 @@ var Plugin43 = {
|
|
|
168
168
|
const child = existing ?? (yield* sessions.create({
|
|
169
169
|
parentID: context.sessionID,
|
|
170
170
|
title: input.description,
|
|
171
|
-
agent:
|
|
171
|
+
agent: ID14.make(input.agent),
|
|
172
172
|
model
|
|
173
173
|
}).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error }))));
|
|
174
174
|
const background = input.background === true;
|
|
@@ -218,13 +218,13 @@ ${output.output}
|
|
|
218
218
|
})))
|
|
219
219
|
})).pipe(Effect.orDie);
|
|
220
220
|
const hook = (event) => Effect.gen(function* () {
|
|
221
|
-
const tool = event.tools[
|
|
221
|
+
const tool = event.tools[name5];
|
|
222
222
|
if (!tool)
|
|
223
223
|
return;
|
|
224
224
|
const selected = yield* agents.resolve(event.agent);
|
|
225
225
|
if (!selected)
|
|
226
226
|
return;
|
|
227
|
-
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(
|
|
227
|
+
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name5, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
|
|
228
228
|
if (available.length === 0)
|
|
229
229
|
return;
|
|
230
230
|
tool.description = [
|
|
@@ -241,4 +241,4 @@ ${output.output}
|
|
|
241
241
|
})
|
|
242
242
|
};
|
|
243
243
|
|
|
244
|
-
export {
|
|
244
|
+
export { name5, Input5, Output4, description3, Plugin5, exports_subagent };
|
|
@@ -7,7 +7,7 @@ var exports_formatter3 = {};
|
|
|
7
7
|
__export(exports_formatter3, {
|
|
8
8
|
ConfigFormatterV1: () => exports_formatter3,
|
|
9
9
|
Entry: () => Entry3,
|
|
10
|
-
Info: () =>
|
|
10
|
+
Info: () => Info12
|
|
11
11
|
});
|
|
12
12
|
import { Schema } from "effect";
|
|
13
13
|
var Entry3 = Schema.Struct({
|
|
@@ -16,6 +16,6 @@ var Entry3 = Schema.Struct({
|
|
|
16
16
|
environment: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
17
17
|
extensions: Schema.optional(Schema.mutable(Schema.Array(Schema.String)))
|
|
18
18
|
});
|
|
19
|
-
var
|
|
19
|
+
var Info12 = Schema.Union([Schema.Boolean, Schema.Record(Schema.String, Entry3)]);
|
|
20
20
|
|
|
21
|
-
export { Entry3,
|
|
21
|
+
export { Entry3, Info12, exports_formatter3 };
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
renderInitial2,
|
|
6
6
|
renderUpdate2,
|
|
7
7
|
applyHashDelta2
|
|
8
|
-
} from "./pty-
|
|
8
|
+
} from "./pty-gbt6w4kb.js";
|
|
9
9
|
import {
|
|
10
10
|
SessionEvent2
|
|
11
11
|
} from "./pty-ec1grn59.js";
|
|
12
12
|
import {
|
|
13
13
|
InstructionBlobTable2,
|
|
14
14
|
InstructionStateTable2
|
|
15
|
-
} from "./pty-
|
|
15
|
+
} from "./pty-a1bz86dw.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
18
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
// src/session/provider-context.ts
|
|
6
6
|
var exports_provider_context = {};
|
|
7
7
|
__export(exports_provider_context, {
|
|
8
|
-
Info: () =>
|
|
8
|
+
Info: () => Info28,
|
|
9
9
|
SessionProviderContext: () => exports_provider_context,
|
|
10
10
|
compatible: () => compatible2,
|
|
11
11
|
decode: () => decode2,
|
|
@@ -19,7 +19,7 @@ import { SessionProviderContext } from "@opencode/schema/session-provider-contex
|
|
|
19
19
|
import { Schema } from "effect";
|
|
20
20
|
import { isDeepStrictEqual } from "node:util";
|
|
21
21
|
import { Hash } from "@opencode/util/hash";
|
|
22
|
-
var
|
|
22
|
+
var Info28 = SessionProviderContext.Info;
|
|
23
23
|
var messages = Schema.toCodecJson(Schema.Array(Message));
|
|
24
24
|
function provenance2(resolved) {
|
|
25
25
|
const model = resolved.model;
|
|
@@ -52,4 +52,4 @@ var encode2 = (provenance, replacement) => ({
|
|
|
52
52
|
var decode2 = (context) => Schema.decodeUnknownSync(messages)(context.messages);
|
|
53
53
|
var validate2 = (context) => Schema.decodeUnknownEffect(messages)(context.messages);
|
|
54
54
|
|
|
55
|
-
export {
|
|
55
|
+
export { Info28, provenance2, compatible2, isCheckpoint2, encode2, decode2, validate2, exports_provider_context };
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
var exports_identity = {};
|
|
7
7
|
__export(exports_identity, {
|
|
8
8
|
IdentityPlugin: () => exports_identity,
|
|
9
|
-
Plugin: () =>
|
|
9
|
+
Plugin: () => Plugin43,
|
|
10
10
|
identity: () => identity2
|
|
11
11
|
});
|
|
12
12
|
import { SystemPart } from "@opencode/ai";
|
|
@@ -22,7 +22,7 @@ function identity2(model) {
|
|
|
22
22
|
].join(`
|
|
23
23
|
`);
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var Plugin43 = define({
|
|
26
26
|
id: "opencode.prompt.identity",
|
|
27
27
|
effect: Effect.fn("IdentityPlugin")(function* (ctx) {
|
|
28
28
|
const hook = (event) => Effect.gen(function* () {
|
|
@@ -35,4 +35,4 @@ var Plugin15 = define({
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
export { identity2,
|
|
38
|
+
export { identity2, Plugin43, exports_identity };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./pty-
|
|
2
|
+
Service49
|
|
3
|
+
} from "./pty-zg3tcem2.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./pty-
|
|
5
|
+
Service35
|
|
6
|
+
} from "./pty-cdm0dq9n.js";
|
|
7
7
|
import {
|
|
8
8
|
detect2
|
|
9
9
|
} from "./pty-3smtnn6g.js";
|
|
10
10
|
import {
|
|
11
11
|
awaitActivation2
|
|
12
|
-
} from "./pty-
|
|
12
|
+
} from "./pty-hgd4btym.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./pty-
|
|
14
|
+
Service69
|
|
15
|
+
} from "./pty-gs3s1a1g.js";
|
|
16
16
|
import {
|
|
17
17
|
AttachmentError2,
|
|
18
18
|
SkillNotFoundError2
|
|
19
|
-
} from "./pty-
|
|
19
|
+
} from "./pty-f35htakt.js";
|
|
20
20
|
import {
|
|
21
21
|
prepare3,
|
|
22
|
-
|
|
23
|
-
} from "./pty-
|
|
22
|
+
Service31
|
|
23
|
+
} from "./pty-cerhndf8.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
26
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -39,10 +39,10 @@ import path from "path";
|
|
|
39
39
|
import { fileURLToPath } from "url";
|
|
40
40
|
var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
|
-
const instances = yield*
|
|
42
|
+
const instances = yield* Service35;
|
|
43
43
|
return yield* Effect.gen(function* () {
|
|
44
44
|
yield* awaitActivation2;
|
|
45
|
-
const hooks = yield*
|
|
45
|
+
const hooks = yield* Service69;
|
|
46
46
|
const event = yield* hooks.trigger("session", "prompt", {
|
|
47
47
|
sessionID: request.session.id,
|
|
48
48
|
messageID: request.messageID,
|
|
@@ -61,7 +61,7 @@ var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
|
61
61
|
const selected = yield* Effect.gen(function* () {
|
|
62
62
|
if (!requested?.length)
|
|
63
63
|
return;
|
|
64
|
-
const skillService = yield*
|
|
64
|
+
const skillService = yield* Service31;
|
|
65
65
|
const prepared = new Map;
|
|
66
66
|
return yield* Effect.forEach(requested, (attachment) => Effect.gen(function* () {
|
|
67
67
|
const name = prepared.get(attachment.id);
|
|
@@ -126,7 +126,7 @@ var materializeAttachment = Effect.fn("SessionPrompt.materializeAttachment")(fun
|
|
|
126
126
|
var normalizeImageAttachment = Effect.fn("SessionPrompt.normalizeImageAttachment")(function* (input, data, mime) {
|
|
127
127
|
if (!mime.startsWith("image/"))
|
|
128
128
|
return { data: Base64.make(data), mime };
|
|
129
|
-
const image = yield*
|
|
129
|
+
const image = yield* Service49;
|
|
130
130
|
const label = attachmentLabel(input);
|
|
131
131
|
const content = { uri: label, content: data, encoding: "base64", mime };
|
|
132
132
|
const normalized = yield* image.normalize(label, content).pipe(Effect.catchTag("Image.ResizerUnavailableError", () => Effect.succeed(content)), Effect.mapError((error) => new AttachmentError2({ uri: label, message: error.message })));
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
// src/session/model-transport.ts
|
|
9
9
|
var exports_model_transport = {};
|
|
10
10
|
__export(exports_model_transport, {
|
|
11
|
-
Service: () =>
|
|
11
|
+
Service: () => Service26,
|
|
12
12
|
SessionModelTransport: () => exports_model_transport,
|
|
13
|
-
layer: () =>
|
|
13
|
+
layer: () => layer13,
|
|
14
14
|
makeLayer: () => makeLayer2,
|
|
15
|
-
node: () =>
|
|
15
|
+
node: () => node29
|
|
16
16
|
});
|
|
17
17
|
import {
|
|
18
18
|
WebSocketTransport
|
|
@@ -33,7 +33,7 @@ var events = Metric.counter("opencode_session_websocket_events_total", {
|
|
|
33
33
|
});
|
|
34
34
|
var metric = (event, attributes = {}) => Metric.update(events.pipe(Metric.withAttributes({ event, ...attributes })), 1);
|
|
35
35
|
|
|
36
|
-
class
|
|
36
|
+
class Service26 extends Context.Service()("@opencode/SessionModelTransport") {
|
|
37
37
|
}
|
|
38
38
|
var transportError = (message, input) => new AIError({
|
|
39
39
|
reason: new TransportError({ message, transport: "websocket", ...input })
|
|
@@ -57,7 +57,7 @@ var observationFrame = (observation) => {
|
|
|
57
57
|
return Effect.fail(observation.error);
|
|
58
58
|
};
|
|
59
59
|
var observationTerminal = (observation) => observation.type !== "frame";
|
|
60
|
-
var makeLayer2 = (connector) => Layer.effect(
|
|
60
|
+
var makeLayer2 = (connector) => Layer.effect(Service26, Effect.gen(function* () {
|
|
61
61
|
const scope = yield* Scope.Scope;
|
|
62
62
|
const states = new Map;
|
|
63
63
|
const state = (sessionID) => {
|
|
@@ -360,11 +360,11 @@ var makeLayer2 = (connector) => Layer.effect(Service24, Effect.gen(function* ()
|
|
|
360
360
|
}, { discard: true });
|
|
361
361
|
});
|
|
362
362
|
yield* Effect.addFinalizer(() => closeAll);
|
|
363
|
-
return
|
|
363
|
+
return Service26.of({ bind, close, closeAll });
|
|
364
364
|
}));
|
|
365
|
-
var
|
|
365
|
+
var layer13 = Layer.unwrap(Effect.map(Socket.WebSocketConstructor, (constructor) => makeLayer2({
|
|
366
366
|
open: (input) => WebSocketTransport.open(input).pipe(Effect.provideService(Socket.WebSocketConstructor, constructor))
|
|
367
367
|
})));
|
|
368
|
-
var
|
|
368
|
+
var node29 = makeGlobalNode({ service: Service26, layer: layer13, deps: [webSocketConstructor2] });
|
|
369
369
|
|
|
370
|
-
export {
|
|
370
|
+
export { Service26, makeLayer2, layer13, node29, exports_model_transport };
|
|
@@ -1,84 +1,84 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./pty-
|
|
4
|
+
} from "./pty-96712bz8.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./pty-
|
|
6
|
+
Service77,
|
|
7
|
+
node81
|
|
8
|
+
} from "./pty-en85tny2.js";
|
|
9
9
|
import {
|
|
10
10
|
VariantID2,
|
|
11
11
|
Ref2,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./pty-
|
|
12
|
+
Service59,
|
|
13
|
+
node62
|
|
14
|
+
} from "./pty-vf5yby4q.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./pty-
|
|
16
|
+
ID14,
|
|
17
|
+
Service70,
|
|
18
|
+
node73
|
|
19
|
+
} from "./pty-rz9v06kn.js";
|
|
20
20
|
import {
|
|
21
21
|
AgentNotFoundError2
|
|
22
|
-
} from "./pty-
|
|
22
|
+
} from "./pty-f35htakt.js";
|
|
23
23
|
import {
|
|
24
24
|
combine2
|
|
25
|
-
} from "./pty-
|
|
25
|
+
} from "./pty-gbt6w4kb.js";
|
|
26
26
|
import {
|
|
27
27
|
provenance2
|
|
28
|
-
} from "./pty-
|
|
28
|
+
} from "./pty-w1k39n5e.js";
|
|
29
29
|
import {
|
|
30
30
|
entriesForRunner2
|
|
31
|
-
} from "./pty-
|
|
31
|
+
} from "./pty-0x0trpnf.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./pty-
|
|
33
|
+
Service68,
|
|
34
|
+
node71
|
|
35
|
+
} from "./pty-g6v5r3w6.js";
|
|
36
36
|
import {
|
|
37
37
|
merge2
|
|
38
|
-
} from "./pty-
|
|
38
|
+
} from "./pty-hdfkv0ev.js";
|
|
39
39
|
import {
|
|
40
40
|
make13
|
|
41
|
-
} from "./pty-
|
|
41
|
+
} from "./pty-hdns3422.js";
|
|
42
42
|
import {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
} from "./pty-
|
|
43
|
+
Service50,
|
|
44
|
+
node53
|
|
45
|
+
} from "./pty-nvgm9hwb.js";
|
|
46
46
|
import {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
} from "./pty-
|
|
47
|
+
Service22,
|
|
48
|
+
node24
|
|
49
|
+
} from "./pty-mg90z6wk.js";
|
|
50
50
|
import {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
} from "./pty-
|
|
51
|
+
Service28,
|
|
52
|
+
node31
|
|
53
|
+
} from "./pty-5j6bqzeb.js";
|
|
54
54
|
import {
|
|
55
55
|
Service21,
|
|
56
|
-
node25
|
|
57
|
-
} from "./pty-p3j3z1wm.js";
|
|
58
|
-
import {
|
|
59
|
-
Service19,
|
|
60
56
|
node23
|
|
61
|
-
} from "./pty-
|
|
57
|
+
} from "./pty-36ndtc93.js";
|
|
62
58
|
import {
|
|
63
|
-
|
|
59
|
+
Service20,
|
|
64
60
|
node22
|
|
65
|
-
} from "./pty-
|
|
61
|
+
} from "./pty-t2gsyq25.js";
|
|
66
62
|
import {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
} from "./pty-
|
|
63
|
+
Service19,
|
|
64
|
+
node21
|
|
65
|
+
} from "./pty-v110mek2.js";
|
|
70
66
|
import {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
} from "./pty-
|
|
67
|
+
Service27,
|
|
68
|
+
node30
|
|
69
|
+
} from "./pty-g02r5t1q.js";
|
|
74
70
|
import {
|
|
75
|
-
|
|
71
|
+
Service24,
|
|
76
72
|
node27
|
|
77
|
-
} from "./pty-
|
|
73
|
+
} from "./pty-vk9pkavn.js";
|
|
78
74
|
import {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
} from "./pty-
|
|
75
|
+
Service25,
|
|
76
|
+
node28
|
|
77
|
+
} from "./pty-8sc656s0.js";
|
|
78
|
+
import {
|
|
79
|
+
Service37,
|
|
80
|
+
node39
|
|
81
|
+
} from "./pty-hzxxpgfe.js";
|
|
82
82
|
import {
|
|
83
83
|
__export
|
|
84
84
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -86,33 +86,33 @@ import {
|
|
|
86
86
|
// src/session/context.ts
|
|
87
87
|
var exports_context = {};
|
|
88
88
|
__export(exports_context, {
|
|
89
|
-
Service: () =>
|
|
89
|
+
Service: () => Service18,
|
|
90
90
|
SessionContext: () => exports_context,
|
|
91
91
|
node: () => node20
|
|
92
92
|
});
|
|
93
93
|
import { Context, Effect, Layer } from "effect";
|
|
94
94
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
95
|
-
class
|
|
95
|
+
class Service18 extends Context.Service()("@opencode/SessionContext") {
|
|
96
96
|
}
|
|
97
|
-
var layer = Layer.effect(
|
|
98
|
-
const agents = yield*
|
|
99
|
-
const builtins = yield*
|
|
100
|
-
const model = yield*
|
|
97
|
+
var layer = Layer.effect(Service18, Effect.gen(function* () {
|
|
98
|
+
const agents = yield* Service70;
|
|
99
|
+
const builtins = yield* Service22;
|
|
100
|
+
const model = yield* Service59;
|
|
101
101
|
const db = (yield* Service83).db;
|
|
102
|
-
const discovery = yield*
|
|
103
|
-
const entries = yield*
|
|
104
|
-
const location = yield*
|
|
105
|
-
const mcpInstructions = yield*
|
|
102
|
+
const discovery = yield* Service50;
|
|
103
|
+
const entries = yield* Service24;
|
|
104
|
+
const location = yield* Service77;
|
|
105
|
+
const mcpInstructions = yield* Service20;
|
|
106
106
|
const mcpTools = yield* Service21;
|
|
107
|
-
const models = yield*
|
|
108
|
-
const request = yield*
|
|
109
|
-
const referenceInstructions = yield*
|
|
110
|
-
const skillInstructions = yield*
|
|
111
|
-
const store = yield*
|
|
112
|
-
const registry = yield*
|
|
107
|
+
const models = yield* Service37;
|
|
108
|
+
const request = yield* Service25;
|
|
109
|
+
const referenceInstructions = yield* Service19;
|
|
110
|
+
const skillInstructions = yield* Service27;
|
|
111
|
+
const store = yield* Service68;
|
|
112
|
+
const registry = yield* Service28;
|
|
113
113
|
const resolveModel = (session) => models.resolve(session, model.available);
|
|
114
114
|
const selectTitle = Effect.fn("SessionContext.selectTitle")(function* (session) {
|
|
115
|
-
const agent = yield* agents.get(
|
|
115
|
+
const agent = yield* agents.get(ID14.make("title"));
|
|
116
116
|
if (!agent)
|
|
117
117
|
return;
|
|
118
118
|
const primary = yield* resolveModel(session).pipe(Effect.orElseSucceed(() => {
|
|
@@ -187,29 +187,29 @@ var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
187
187
|
tools: selection.tools
|
|
188
188
|
};
|
|
189
189
|
});
|
|
190
|
-
return
|
|
190
|
+
return Service18.of({ select, load, resolveModel, selectTitle, request });
|
|
191
191
|
}));
|
|
192
192
|
var MINIMAL_REASONING_VARIANTS = ["none", "minimal", "low"].map((id) => VariantID2.make(id));
|
|
193
193
|
var node20 = makeLocationNode({
|
|
194
|
-
service:
|
|
194
|
+
service: Service18,
|
|
195
195
|
layer,
|
|
196
196
|
deps: [
|
|
197
|
-
|
|
198
|
-
|
|
197
|
+
node73,
|
|
198
|
+
node62,
|
|
199
199
|
node87,
|
|
200
|
-
|
|
201
|
-
node33,
|
|
202
|
-
node29,
|
|
203
|
-
node83,
|
|
204
|
-
node23,
|
|
205
|
-
node25,
|
|
206
|
-
node22,
|
|
200
|
+
node24,
|
|
207
201
|
node53,
|
|
208
202
|
node27,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
203
|
+
node81,
|
|
204
|
+
node22,
|
|
205
|
+
node23,
|
|
206
|
+
node21,
|
|
207
|
+
node39,
|
|
208
|
+
node28,
|
|
209
|
+
node71,
|
|
210
|
+
node30,
|
|
211
|
+
node31
|
|
212
212
|
]
|
|
213
213
|
});
|
|
214
214
|
|
|
215
|
-
export {
|
|
215
|
+
export { Service18, node20, exports_context };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./pty-
|
|
2
|
+
ID7
|
|
3
|
+
} from "./pty-p2bsys5p.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/prompt-cache-key.ts
|
|
6
6
|
import { Effect } from "effect";
|
|
@@ -24,7 +24,7 @@ var PromptCacheKeyPlugin2 = define({
|
|
|
24
24
|
effect: Effect.fn(function* (ctx) {
|
|
25
25
|
yield* ctx.model.transform((models) => {
|
|
26
26
|
for (const id of providerIDs) {
|
|
27
|
-
const providerID =
|
|
27
|
+
const providerID = ID7.make(id);
|
|
28
28
|
for (const model of models.list(providerID)) {
|
|
29
29
|
models.update(model.providerID, model.id, (draft) => {
|
|
30
30
|
draft.compatibility = { ...draft.compatibility, supportsPromptCacheKey: true };
|