@opencode/core 0.0.0-dev-21856 → 0.0.0-dev-21873
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/account/sql.js +1 -1
- package/dist/agent.js +86 -86
- package/dist/aisdk-native.js +95 -95
- package/dist/aisdk.js +101 -101
- package/dist/app.js +9 -9
- package/dist/bus.js +78 -78
- package/dist/chunks/{instruction-discovery-aj7mw0zk.js → rpc-034tev2y.js} +2 -2
- package/dist/chunks/{instruction-discovery-6nb5amhk.js → rpc-04ngwmg9.js} +23 -23
- package/dist/chunks/{instruction-discovery-0fhwjkjb.js → rpc-0bj0j9hv.js} +9 -9
- package/dist/chunks/{instruction-discovery-wr3re1en.js → rpc-0h8y3ex8.js} +4 -4
- package/dist/chunks/{instruction-discovery-0pwrv1px.js → rpc-0k3jqzf9.js} +11 -11
- package/dist/chunks/{instruction-discovery-zkwh13gz.js → rpc-0mwa2cev.js} +33 -33
- package/dist/chunks/{instruction-discovery-xkwgy4cp.js → rpc-0v1855mm.js} +32 -32
- package/dist/chunks/{instruction-discovery-gsf91c57.js → rpc-0xezzd5d.js} +25 -25
- package/dist/chunks/{instruction-discovery-ah33f0p8.js → rpc-0zpmm0s8.js} +38 -38
- package/dist/chunks/{instruction-discovery-tg1vr1qt.js → rpc-160yv0cs.js} +8 -8
- package/dist/chunks/{instruction-discovery-mgn5vsv9.js → rpc-16wvv7z8.js} +18 -18
- package/dist/chunks/{instruction-discovery-7wmap86a.js → rpc-1dv2g4jv.js} +13 -13
- package/dist/chunks/{instruction-discovery-27w5k9zf.js → rpc-1ep2p91f.js} +2 -2
- package/dist/chunks/{instruction-discovery-yb049qzj.js → rpc-1kq7gdh7.js} +9 -9
- package/dist/chunks/{instruction-discovery-y3yaq8m0.js → rpc-1krajzn2.js} +18 -18
- package/dist/chunks/{instruction-discovery-epdzwpp6.js → rpc-1qzzfct3.js} +17 -17
- package/dist/chunks/{instruction-discovery-pdn4k0k5.js → rpc-1rt6s9mf.js} +23 -23
- package/dist/chunks/{instruction-discovery-76xn3a0a.js → rpc-1vbdq4r3.js} +9 -9
- package/dist/chunks/{instruction-discovery-1x2knyw4.js → rpc-1x2knyw4.js} +1 -1
- package/dist/chunks/{instruction-discovery-wqscedq8.js → rpc-1y0wdj51.js} +4 -4
- package/dist/chunks/{instruction-discovery-5zrxpy3q.js → rpc-1yq9hg58.js} +5 -5
- package/dist/chunks/{instruction-discovery-6mx77wfc.js → rpc-1zer9mtc.js} +9 -9
- package/dist/chunks/{instruction-discovery-an558sqv.js → rpc-2azy8kv6.js} +4 -4
- package/dist/chunks/{instruction-discovery-7qgp347e.js → rpc-2e52m8w3.js} +25 -25
- package/dist/chunks/{instruction-discovery-q0xpyrzg.js → rpc-2fmzxhrb.js} +31 -31
- package/dist/chunks/{instruction-discovery-9taragy3.js → rpc-2fqamhmy.js} +45 -45
- package/dist/chunks/{instruction-discovery-gkj1ekva.js → rpc-2pv3z35r.js} +42 -42
- package/dist/chunks/{instruction-discovery-vx3jgdek.js → rpc-2qr4rt5k.js} +3 -3
- package/dist/chunks/{instruction-discovery-2z1j29yd.js → rpc-2z1j29yd.js} +1 -1
- package/dist/chunks/{instruction-discovery-59z74nnh.js → rpc-398tazf9.js} +29 -29
- package/dist/chunks/{instruction-discovery-hq4adp60.js → rpc-3bgazc58.js} +38 -38
- package/dist/chunks/{instruction-discovery-9cw5bcc9.js → rpc-3f2z84v7.js} +6 -6
- package/dist/chunks/{instruction-discovery-fx0r4jew.js → rpc-3f6bgqej.js} +30 -30
- package/dist/chunks/{instruction-discovery-d5kckzmt.js → rpc-3ha882x3.js} +34 -34
- package/dist/chunks/{instruction-discovery-3hepkmqq.js → rpc-3hepkmqq.js} +1 -1
- package/dist/chunks/{instruction-discovery-0421tmwc.js → rpc-3mgb105e.js} +9 -9
- package/dist/chunks/{instruction-discovery-3nnrz6f6.js → rpc-3nnrz6f6.js} +1 -1
- package/dist/chunks/{instruction-discovery-kf4j52hm.js → rpc-3q2vkj4t.js} +21 -21
- package/dist/chunks/{instruction-discovery-pjgfana8.js → rpc-3qayfnz6.js} +24 -24
- package/dist/chunks/{instruction-discovery-c67yf1m4.js → rpc-3rkxfjmv.js} +11 -11
- package/dist/chunks/{instruction-discovery-bser62ex.js → rpc-3rvgssh1.js} +19 -19
- package/dist/chunks/{instruction-discovery-kddwcmfq.js → rpc-3tpaz0rx.js} +6 -6
- package/dist/chunks/{instruction-discovery-trr9ktnj.js → rpc-3x0jq06w.js} +38 -38
- package/dist/chunks/{instruction-discovery-sgqd298e.js → rpc-46astgjy.js} +23 -23
- package/dist/chunks/{instruction-discovery-8kgrggzd.js → rpc-4cnqzyf4.js} +28 -28
- package/dist/chunks/{instruction-discovery-c8f2t8jt.js → rpc-4dvhwzem.js} +8 -8
- package/dist/chunks/{instruction-discovery-6fe8n112.js → rpc-4enm61nh.js} +33 -33
- package/dist/chunks/{instruction-discovery-77va0czz.js → rpc-4ntv0s9s.js} +13 -13
- package/dist/chunks/{instruction-discovery-hdfrs5mg.js → rpc-4pnypb5f.js} +7 -7
- package/dist/chunks/{instruction-discovery-1zj1p2f3.js → rpc-4s8jnsjq.js} +4 -4
- package/dist/chunks/{instruction-discovery-4v008n1t.js → rpc-4v008n1t.js} +1 -1
- package/dist/chunks/{instruction-discovery-4xvmh7wp.js → rpc-4xvmh7wp.js} +3 -3
- package/dist/chunks/{instruction-discovery-fhs2myvw.js → rpc-4zcmvsgg.js} +4 -4
- package/dist/chunks/{instruction-discovery-q2kr01gp.js → rpc-54x0ra2z.js} +26 -26
- package/dist/chunks/{instruction-discovery-xsyke37x.js → rpc-5ccyfjd7.js} +4 -4
- package/dist/chunks/{instruction-discovery-7ezxcv5k.js → rpc-5erj5q6b.js} +8 -8
- package/dist/chunks/{instruction-discovery-5m9w47nd.js → rpc-5m9w47nd.js} +1 -1
- package/dist/chunks/{instruction-discovery-b6vsg801.js → rpc-5nnwax6m.js} +5 -5
- package/dist/chunks/{instruction-discovery-86h3z9z4.js → rpc-5qgyxxk2.js} +19 -19
- package/dist/chunks/{instruction-discovery-ge6wgs05.js → rpc-5ra5vjeh.js} +11 -11
- package/dist/chunks/{instruction-discovery-3b7gyab6.js → rpc-5vnnt37t.js} +13 -13
- package/dist/chunks/{instruction-discovery-x849kq2w.js → rpc-5w6e6t6m.js} +18 -18
- package/dist/chunks/{instruction-discovery-9qcg53ez.js → rpc-64a4dgx4.js} +9 -9
- package/dist/chunks/{instruction-discovery-9e5xv20g.js → rpc-65ep5kwy.js} +68 -68
- package/dist/chunks/{instruction-discovery-sdaxcxz4.js → rpc-6enqd4a4.js} +5 -5
- package/dist/chunks/{instruction-discovery-6esdw8yj.js → rpc-6esdw8yj.js} +1 -1
- package/dist/chunks/{instruction-discovery-2n1gkq6v.js → rpc-6jzdaz5a.js} +5 -5
- package/dist/chunks/{instruction-discovery-n01dw1sy.js → rpc-6m0k75x8.js} +16 -16
- package/dist/chunks/{instruction-discovery-wwr9hj1b.js → rpc-6mg7998y.js} +27 -27
- package/dist/chunks/{instruction-discovery-6pjqjmy2.js → rpc-6pjqjmy2.js} +1 -1
- package/dist/chunks/{instruction-discovery-wp4rg1a9.js → rpc-7193gb3b.js} +5 -5
- package/dist/chunks/{instruction-discovery-qn73fphh.js → rpc-73m4wzt2.js} +20 -20
- package/dist/chunks/{instruction-discovery-w8qtt4th.js → rpc-76cb1hcw.js} +4 -4
- package/dist/chunks/{instruction-discovery-4an0jmbp.js → rpc-79sgxn43.js} +81 -81
- package/dist/chunks/{instruction-discovery-7bmhse3q.js → rpc-7bmhse3q.js} +1 -1
- package/dist/chunks/{instruction-discovery-fdx01m1w.js → rpc-7bnre8yf.js} +20 -20
- package/dist/chunks/{instruction-discovery-zgtcbref.js → rpc-7gn1c7q5.js} +16 -16
- package/dist/chunks/{instruction-discovery-b9mm38pq.js → rpc-7nngkk4m.js} +9 -9
- package/dist/chunks/{instruction-discovery-0376xegq.js → rpc-7nzrcr96.js} +21 -21
- package/dist/chunks/{instruction-discovery-2a7mr38d.js → rpc-7p4k3pzp.js} +19 -19
- package/dist/chunks/{instruction-discovery-c9faan9k.js → rpc-7t4pb3xg.js} +26 -26
- package/dist/chunks/{instruction-discovery-7w2ypzdf.js → rpc-7w2ypzdf.js} +1 -1
- package/dist/chunks/{instruction-discovery-eynt3b8t.js → rpc-80x2hthz.js} +20 -20
- package/dist/chunks/{instruction-discovery-k6tkbc6y.js → rpc-81qd9b8r.js} +22 -22
- package/dist/chunks/{instruction-discovery-0kf7s4qn.js → rpc-85erx67x.js} +27 -27
- package/dist/chunks/rpc-867sn0d9.js +26 -0
- package/dist/chunks/{instruction-discovery-s4f8ct6t.js → rpc-88kypjvy.js} +4 -4
- package/dist/chunks/{instruction-discovery-033a0jkt.js → rpc-8bc2ahr8.js} +3 -3
- package/dist/chunks/{instruction-discovery-dd1b5043.js → rpc-8fwqr86x.js} +4 -4
- package/dist/chunks/{instruction-discovery-11hfp36g.js → rpc-8jztxfpf.js} +4 -4
- package/dist/chunks/{instruction-discovery-vsnw9jjv.js → rpc-8m8ckbnq.js} +38 -38
- package/dist/chunks/{instruction-discovery-3kjng0cn.js → rpc-8s627est.js} +18 -18
- package/dist/chunks/{instruction-discovery-8wtp7s3z.js → rpc-8wtp7s3z.js} +1 -1
- package/dist/chunks/{instruction-discovery-91rj84md.js → rpc-91rj84md.js} +1 -1
- package/dist/chunks/{instruction-discovery-hckw3xdg.js → rpc-94neassx.js} +7 -7
- package/dist/chunks/{instruction-discovery-am41y27b.js → rpc-963r0pdn.js} +11 -11
- package/dist/chunks/{instruction-discovery-38adaqc0.js → rpc-96te9d4b.js} +5 -5
- package/dist/chunks/{instruction-discovery-pjwfm23k.js → rpc-9909tw4t.js} +11 -11
- package/dist/chunks/{instruction-discovery-hvqa3p38.js → rpc-99vsxt4e.js} +32 -32
- package/dist/chunks/{instruction-discovery-9cx9sm2q.js → rpc-9cx9sm2q.js} +1 -1
- package/dist/chunks/{instruction-discovery-sa5jcsah.js → rpc-9cym0b72.js} +10 -10
- package/dist/chunks/{instruction-discovery-kv8jnsbb.js → rpc-9fqb62wa.js} +35 -35
- package/dist/chunks/{instruction-discovery-t4dm2043.js → rpc-9q3aj0x8.js} +4 -4
- package/dist/chunks/{instruction-discovery-txnzry6p.js → rpc-9x964ny6.js} +18 -18
- package/dist/chunks/{instruction-discovery-gx0r2313.js → rpc-9xnq3n9q.js} +6 -6
- package/dist/chunks/{instruction-discovery-hgv00ze4.js → rpc-a24rd9w3.js} +3 -3
- package/dist/chunks/{instruction-discovery-j18x68xg.js → rpc-a48xdxv5.js} +5 -5
- package/dist/chunks/{instruction-discovery-dcg2s03j.js → rpc-a6hdfaqp.js} +7 -7
- package/dist/chunks/{instruction-discovery-jj9caqwr.js → rpc-a7hcemwv.js} +8 -8
- package/dist/chunks/{instruction-discovery-z2gcn5m8.js → rpc-actym6sp.js} +6 -6
- package/dist/chunks/{instruction-discovery-szcgc7h4.js → rpc-afmnpta1.js} +5 -5
- package/dist/chunks/{instruction-discovery-65d0br2h.js → rpc-ampftf2x.js} +22 -22
- package/dist/chunks/{instruction-discovery-bjhzkqyk.js → rpc-ar2j3j0f.js} +4 -4
- package/dist/chunks/{instruction-discovery-cwbk6kgm.js → rpc-asj9x96b.js} +22 -22
- package/dist/chunks/{instruction-discovery-4e181ey7.js → rpc-axtaqyfz.js} +30 -30
- package/dist/chunks/{instruction-discovery-3cbjf1nt.js → rpc-ayjs7tqn.js} +2 -2
- package/dist/chunks/{instruction-discovery-wcqnm0th.js → rpc-aywybv3t.js} +11 -11
- package/dist/chunks/{instruction-discovery-b0mv4wxm.js → rpc-b0mv4wxm.js} +2 -2
- package/dist/chunks/{instruction-discovery-60cg3xth.js → rpc-b93v3z3c.js} +17 -17
- package/dist/chunks/{instruction-discovery-2xag3f1q.js → rpc-bfp6p8p6.js} +14 -14
- package/dist/chunks/{instruction-discovery-n66c6y3m.js → rpc-bje4knzw.js} +6 -6
- package/dist/chunks/{instruction-discovery-21k2fbyg.js → rpc-bt3f8k6b.js} +31 -31
- package/dist/chunks/{instruction-discovery-cs91e4mb.js → rpc-bxe79e76.js} +22 -22
- package/dist/chunks/{instruction-discovery-kyx40m29.js → rpc-c66ha81g.js} +13 -13
- package/dist/chunks/{instruction-discovery-2whzz79q.js → rpc-c891t0q5.js} +15 -15
- package/dist/chunks/{instruction-discovery-2a026epw.js → rpc-caw776h6.js} +5 -5
- package/dist/chunks/{instruction-discovery-x9wwpfw9.js → rpc-cd50e0wg.js} +11 -11
- package/dist/chunks/{instruction-discovery-kx4zfn7s.js → rpc-cdkymz2t.js} +8 -8
- package/dist/chunks/{instruction-discovery-5rwvrnjs.js → rpc-cerpfb20.js} +3 -3
- package/dist/chunks/{instruction-discovery-e4mwgxf5.js → rpc-chmmxz1g.js} +12 -12
- package/dist/chunks/{instruction-discovery-abqtacmz.js → rpc-cjszy3qj.js} +28 -28
- package/dist/chunks/{instruction-discovery-78apxg9s.js → rpc-cq2kz1vr.js} +5 -5
- package/dist/chunks/{instruction-discovery-r14veqnk.js → rpc-cqsckrq7.js} +9 -9
- package/dist/chunks/{instruction-discovery-x9jz5q9y.js → rpc-cwp484bj.js} +16 -16
- package/dist/chunks/{instruction-discovery-d4v9tmah.js → rpc-d4v9tmah.js} +2 -2
- package/dist/chunks/{instruction-discovery-zb7rk5jp.js → rpc-dch74nbf.js} +12 -12
- package/dist/chunks/{instruction-discovery-37p9cva5.js → rpc-dnb44sjf.js} +38 -38
- package/dist/chunks/{instruction-discovery-7sdtxe0n.js → rpc-drvbhkez.js} +4 -4
- package/dist/chunks/{instruction-discovery-e07q2w5p.js → rpc-e07q2w5p.js} +1 -1
- package/dist/chunks/{instruction-discovery-102edbh2.js → rpc-e0dtevzy.js} +30 -30
- package/dist/chunks/{instruction-discovery-9fdyqjqc.js → rpc-e738kmdw.js} +6 -6
- package/dist/chunks/{instruction-discovery-e834z07m.js → rpc-e834z07m.js} +1 -1
- package/dist/chunks/{instruction-discovery-pvk4fgqk.js → rpc-ewq3zh3y.js} +19 -19
- package/dist/chunks/rpc-ezna1kdx.js +18 -0
- package/dist/chunks/{instruction-discovery-ekvz5h58.js → rpc-f2ptadf3.js} +6 -6
- package/dist/chunks/{instruction-discovery-qbhpcaah.js → rpc-f3x3s8kp.js} +5 -5
- package/dist/chunks/{instruction-discovery-1hzrtcgn.js → rpc-ff74gtbc.js} +22 -22
- package/dist/chunks/{instruction-discovery-fffv3p7h.js → rpc-fffv3p7h.js} +1 -1
- package/dist/chunks/{instruction-discovery-htsj1ang.js → rpc-fjqb86s3.js} +49 -49
- package/dist/chunks/{instruction-discovery-787swm9c.js → rpc-fsv9b7rr.js} +6 -6
- package/dist/chunks/{instruction-discovery-twdwv45k.js → rpc-fyeq52zw.js} +5 -5
- package/dist/chunks/{instruction-discovery-j3k0pknh.js → rpc-g3cgjwhd.js} +18 -18
- package/dist/chunks/{instruction-discovery-g5h9c0rr.js → rpc-g5h9c0rr.js} +2 -2
- package/dist/chunks/{instruction-discovery-q665vn8y.js → rpc-g661nnma.js} +3 -3
- package/dist/chunks/{instruction-discovery-m442sk3e.js → rpc-g8mj4081.js} +24 -24
- package/dist/chunks/{instruction-discovery-zbje3vb8.js → rpc-ge6kdzsz.js} +17 -17
- package/dist/chunks/{instruction-discovery-v4vn6xq1.js → rpc-gh2awkxf.js} +12 -12
- package/dist/chunks/{instruction-discovery-1at1dets.js → rpc-gr2q1ewy.js} +19 -19
- package/dist/chunks/{instruction-discovery-taxmasjd.js → rpc-grk6sz4n.js} +14 -14
- package/dist/chunks/{instruction-discovery-m2m1xhfw.js → rpc-h9y2z81z.js} +14 -14
- package/dist/chunks/{instruction-discovery-f0we80a8.js → rpc-hf7m31j6.js} +26 -26
- package/dist/chunks/{instruction-discovery-xnh55p1t.js → rpc-hfgk9wzg.js} +7 -7
- package/dist/chunks/{instruction-discovery-z4ee4kj5.js → rpc-hrmm2vh8.js} +13 -13
- package/dist/chunks/{instruction-discovery-41t08jwg.js → rpc-hrskdsrs.js} +33 -33
- package/dist/chunks/{instruction-discovery-j113cymg.js → rpc-j113cymg.js} +1 -1
- package/dist/chunks/rpc-j80rrc5p.js +517 -0
- package/dist/chunks/{instruction-discovery-jt4crtef.js → rpc-jacwe7hq.js} +33 -33
- package/dist/chunks/{instruction-discovery-etbajbke.js → rpc-jartwg2v.js} +8 -8
- package/dist/chunks/{instruction-discovery-5635a4dp.js → rpc-jh64gpxz.js} +23 -23
- package/dist/chunks/{instruction-discovery-v8vd993n.js → rpc-jjx6aha5.js} +8 -8
- package/dist/chunks/{instruction-discovery-r9afhevh.js → rpc-jnnydgw3.js} +11 -11
- package/dist/chunks/{instruction-discovery-jefw9j3y.js → rpc-jnwx2kg9.js} +8 -8
- package/dist/chunks/{instruction-discovery-953mc539.js → rpc-jw86xtr6.js} +55 -55
- package/dist/chunks/{instruction-discovery-6ek8yrc4.js → rpc-k1jg2ba5.js} +30 -30
- package/dist/chunks/{instruction-discovery-gwedrbay.js → rpc-k7mchm5d.js} +7 -7
- package/dist/chunks/{instruction-discovery-k814nvkf.js → rpc-k814nvkf.js} +1 -1
- package/dist/chunks/{instruction-discovery-nptsc9d0.js → rpc-kbq8ed69.js} +30 -30
- package/dist/chunks/{instruction-discovery-tnrberjk.js → rpc-kftcb4df.js} +11 -11
- package/dist/chunks/{instruction-discovery-1td35j7c.js → rpc-ks6g0x1g.js} +10 -10
- package/dist/chunks/{instruction-discovery-ef03wrw5.js → rpc-ksbfgvv1.js} +2 -2
- package/dist/chunks/{instruction-discovery-kt3bjfbg.js → rpc-kt3bjfbg.js} +1 -1
- package/dist/chunks/{instruction-discovery-p2waepnj.js → rpc-kzt3m1e7.js} +18 -18
- package/dist/chunks/{instruction-discovery-m1714858.js → rpc-m1714858.js} +1 -1
- package/dist/chunks/{instruction-discovery-s26v1fhy.js → rpc-m46pxzbq.js} +20 -20
- package/dist/chunks/{instruction-discovery-m9w0rfyh.js → rpc-m9w0rfyh.js} +1 -1
- package/dist/chunks/{instruction-discovery-zdn46m04.js → rpc-m9xapfg3.js} +8 -8
- package/dist/chunks/{instruction-discovery-maspj1v3.js → rpc-maspj1v3.js} +1 -1
- package/dist/chunks/{instruction-discovery-hvtc9nr8.js → rpc-medmgz4w.js} +33 -33
- package/dist/chunks/{instruction-discovery-nfkqfv71.js → rpc-mjsq6pzz.js} +4 -4
- package/dist/chunks/{instruction-discovery-jd0c8nhx.js → rpc-mwsc4vcv.js} +29 -29
- package/dist/chunks/{instruction-discovery-dhh45h7t.js → rpc-n1ayqdm4.js} +33 -33
- package/dist/chunks/{instruction-discovery-kwwzj9vh.js → rpc-n2165afj.js} +9 -9
- package/dist/chunks/{instruction-discovery-9kf0vz67.js → rpc-n57zrvc2.js} +9 -9
- package/dist/chunks/{instruction-discovery-6qx0tzjw.js → rpc-n7twsc79.js} +48 -48
- package/dist/chunks/{instruction-discovery-022n3vkv.js → rpc-n8znjy9k.js} +17 -17
- package/dist/chunks/{instruction-discovery-nah043kf.js → rpc-nah043kf.js} +1 -1
- package/dist/chunks/{instruction-discovery-8e3kbr0h.js → rpc-negk2hya.js} +8 -8
- package/dist/chunks/{instruction-discovery-p015t6z3.js → rpc-p015t6z3.js} +2 -2
- package/dist/chunks/{instruction-discovery-ecr3e0ye.js → rpc-p7g1837s.js} +24 -24
- package/dist/chunks/{instruction-discovery-vqkw0r40.js → rpc-p8xrwawc.js} +15 -15
- package/dist/chunks/{instruction-discovery-pknna89w.js → rpc-pknna89w.js} +1 -1
- package/dist/chunks/{instruction-discovery-48aqrqf8.js → rpc-pp5kzkp6.js} +15 -15
- package/dist/chunks/{instruction-discovery-zxds5g97.js → rpc-prcm84f8.js} +4 -4
- package/dist/chunks/{instruction-discovery-6tpjd6jw.js → rpc-py69nrmv.js} +32 -32
- package/dist/chunks/{instruction-discovery-bsaevn98.js → rpc-pzz2ws5k.js} +2 -2
- package/dist/chunks/{instruction-discovery-4d42373m.js → rpc-q1tppxga.js} +30 -30
- package/dist/chunks/{instruction-discovery-pab4qvhq.js → rpc-q5z0rzsk.js} +1 -1
- package/dist/chunks/{instruction-discovery-mqpx0pnx.js → rpc-qb4xeqeg.js} +18 -18
- package/dist/chunks/{instruction-discovery-sc1ejmap.js → rpc-qeb2jzk6.js} +20 -20
- package/dist/chunks/{instruction-discovery-5r5fyt21.js → rpc-qes58p1f.js} +14 -14
- package/dist/chunks/{instruction-discovery-27bs79w9.js → rpc-qj0f10hy.js} +2 -2
- package/dist/chunks/{instruction-discovery-famkmqnc.js → rpc-qmb9yqdb.js} +11 -11
- package/dist/chunks/{instruction-discovery-r0yr0wbs.js → rpc-r0yr0wbs.js} +1 -1
- package/dist/chunks/{instruction-discovery-155gq7f2.js → rpc-r2j4ww2r.js} +21 -21
- package/dist/chunks/{instruction-discovery-r542h3bh.js → rpc-r542h3bh.js} +1 -1
- package/dist/chunks/{instruction-discovery-rb9dy4dg.js → rpc-rb9dy4dg.js} +1 -1
- package/dist/chunks/{instruction-discovery-d5x916ad.js → rpc-rgzmrh02.js} +16 -16
- package/dist/chunks/rpc-rkjq1912.js +257 -0
- package/dist/chunks/{instruction-discovery-rt5dr6hb.js → rpc-rt5dr6hb.js} +1 -1
- package/dist/chunks/{instruction-discovery-2nm1jq1n.js → rpc-rwe75qc8.js} +6 -6
- package/dist/chunks/{instruction-discovery-5xpq01xn.js → rpc-s05tnvks.js} +17 -17
- package/dist/chunks/{instruction-discovery-gwn12nzh.js → rpc-s1gefd7a.js} +13 -13
- package/dist/chunks/{instruction-discovery-sa3fpqfw.js → rpc-sa3fpqfw.js} +2 -2
- package/dist/chunks/{instruction-discovery-k3cw2t6y.js → rpc-sbegqkxp.js} +6 -6
- package/dist/chunks/{instruction-discovery-ekaass4j.js → rpc-sjptd64y.js} +19 -19
- package/dist/chunks/{instruction-discovery-kxtse1qm.js → rpc-sm3m7ev9.js} +25 -25
- package/dist/chunks/{instruction-discovery-jcqm84fr.js → rpc-smfcvx02.js} +5 -5
- package/dist/chunks/{instruction-discovery-c21pq9gz.js → rpc-smk9ards.js} +10 -10
- package/dist/chunks/{instruction-discovery-sqjzf8x2.js → rpc-sqjzf8x2.js} +1 -1
- package/dist/chunks/{instruction-discovery-7f47qj7q.js → rpc-sr8e16az.js} +21 -21
- package/dist/chunks/{instruction-discovery-d2887f8n.js → rpc-ssfehs1z.js} +4 -4
- package/dist/chunks/{instruction-discovery-tyn3bpzc.js → rpc-sss9qfaq.js} +53 -53
- package/dist/chunks/{instruction-discovery-2sdff0wq.js → rpc-t12v43rg.js} +6 -6
- package/dist/chunks/{instruction-discovery-26fr4g6g.js → rpc-t3ggr34t.js} +13 -13
- package/dist/chunks/{instruction-discovery-hs3h4apg.js → rpc-t4knw8fq.js} +21 -21
- package/dist/chunks/{instruction-discovery-9mhsf8fp.js → rpc-t6t5wpsz.js} +46 -46
- package/dist/chunks/{instruction-discovery-8maf53x6.js → rpc-t91wt1xc.js} +7 -7
- package/dist/chunks/{instruction-discovery-mnp40s8y.js → rpc-taacwnvm.js} +5 -5
- package/dist/chunks/{instruction-discovery-tczq8hjw.js → rpc-tczq8hjw.js} +1 -1
- package/dist/chunks/{instruction-discovery-rfn832fb.js → rpc-tdzaayr8.js} +25 -25
- package/dist/chunks/{instruction-discovery-5hf5hqc3.js → rpc-thzzp9tf.js} +1 -1
- package/dist/chunks/{instruction-discovery-j3t6aztb.js → rpc-tkn93vs5.js} +3 -3
- package/dist/chunks/{instruction-discovery-qmy3sz40.js → rpc-tkqgr2f8.js} +88 -88
- package/dist/chunks/{instruction-discovery-kz5za7wj.js → rpc-tmz3gxxq.js} +4 -4
- package/dist/chunks/{instruction-discovery-nsm20kj3.js → rpc-tnytawq1.js} +29 -29
- package/dist/chunks/{instruction-discovery-z9fvm9x8.js → rpc-tnznrj7j.js} +11 -11
- package/dist/chunks/{instruction-discovery-twv2r8f4.js → rpc-twv2r8f4.js} +2 -2
- package/dist/chunks/{instruction-discovery-517ec74p.js → rpc-txbbv18y.js} +11 -11
- package/dist/chunks/{instruction-discovery-c4sx0a9c.js → rpc-tz4xexj5.js} +11 -11
- package/dist/chunks/{instruction-discovery-9r4wwjnf.js → rpc-v0tjrdy5.js} +50 -50
- package/dist/chunks/{instruction-discovery-rvh17fyg.js → rpc-v1a1acs9.js} +8 -8
- package/dist/chunks/{instruction-discovery-v2r1d0zg.js → rpc-v2r1d0zg.js} +1 -1
- package/dist/chunks/{instruction-discovery-vd3b3yk9.js → rpc-vd3b3yk9.js} +1 -1
- package/dist/chunks/{instruction-discovery-veqvce7d.js → rpc-veqvce7d.js} +1 -1
- package/dist/chunks/{instruction-discovery-r41sfy63.js → rpc-w2eysc6j.js} +6 -6
- package/dist/chunks/{instruction-discovery-w3wsvvr9.js → rpc-w3wsvvr9.js} +1 -1
- package/dist/chunks/{instruction-discovery-ez0126qx.js → rpc-w5e2fj78.js} +20 -20
- package/dist/chunks/{instruction-discovery-s0yhjk23.js → rpc-w5h1wkz0.js} +13 -13
- package/dist/chunks/{instruction-discovery-a9hesjbw.js → rpc-w6f6gw9w.js} +8 -8
- package/dist/chunks/{instruction-discovery-j5djsqge.js → rpc-w8m4y82j.js} +18 -18
- package/dist/chunks/{instruction-discovery-wakvkjy4.js → rpc-wakvkjy4.js} +1 -1
- package/dist/chunks/{instruction-discovery-wd87259q.js → rpc-wd87259q.js} +1 -1
- package/dist/chunks/{instruction-discovery-d4eavzpr.js → rpc-wq74a3c7.js} +184 -184
- package/dist/chunks/{instruction-discovery-ngxzfb1c.js → rpc-wrvw4qzg.js} +17 -17
- package/dist/chunks/{instruction-discovery-433qt1rv.js → rpc-x57zdktr.js} +20 -20
- package/dist/chunks/{instruction-discovery-5nbjczge.js → rpc-x5fgfpsq.js} +10 -10
- package/dist/chunks/{instruction-discovery-737zpaxg.js → rpc-x8rzfgrc.js} +12 -12
- package/dist/chunks/{instruction-discovery-xd9cc171.js → rpc-xd9cc171.js} +1 -1
- package/dist/chunks/{instruction-discovery-a8n0dctw.js → rpc-xex4csfj.js} +11 -11
- package/dist/chunks/{instruction-discovery-51d3zpkq.js → rpc-xh0cb3sq.js} +1 -1
- package/dist/chunks/{instruction-discovery-prd8gnhb.js → rpc-xpve62cf.js} +4 -4
- package/dist/chunks/{instruction-discovery-vxscg46q.js → rpc-xrwgzr6g.js} +8 -8
- package/dist/chunks/{instruction-discovery-h5wtt78n.js → rpc-xw5nqs72.js} +4 -4
- package/dist/chunks/{instruction-discovery-7kcfq5w1.js → rpc-xw8kgqa1.js} +5 -5
- package/dist/chunks/{instruction-discovery-3t0j5bvp.js → rpc-y10yae2e.js} +11 -11
- package/dist/chunks/{instruction-discovery-yb20nhc3.js → rpc-yb20nhc3.js} +1 -1
- package/dist/chunks/{instruction-discovery-6qcpqwk1.js → rpc-yf08x4n1.js} +14 -14
- package/dist/chunks/{instruction-discovery-t1113r93.js → rpc-yr9ahj94.js} +13 -13
- package/dist/chunks/{instruction-discovery-z0bkrqjs.js → rpc-z0bkrqjs.js} +1 -1
- package/dist/chunks/{instruction-discovery-z38nccrw.js → rpc-z38nccrw.js} +1 -1
- package/dist/chunks/{instruction-discovery-vsbgdfbh.js → rpc-z7xfn9z4.js} +10 -10
- package/dist/chunks/{instruction-discovery-jy1vh16h.js → rpc-z7yrh2zw.js} +32 -32
- package/dist/chunks/{instruction-discovery-zkg84ctx.js → rpc-zkg84ctx.js} +1 -1
- package/dist/chunks/{instruction-discovery-9rfntryv.js → rpc-zs4jph50.js} +4 -4
- package/dist/chunks/{instruction-discovery-69qfa8nf.js → rpc-zwcqgr8h.js} +3 -3
- package/dist/chunks/{instruction-discovery-fcxerzst.js → rpc-zwt5mb5d.js} +46 -46
- package/dist/chunks/{instruction-discovery-rgzr2fj7.js → rpc-zxsnyq32.js} +19 -19
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +11 -11
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +88 -88
- package/dist/config/discovery.js +90 -90
- package/dist/config/integration.js +1 -1
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +105 -105
- package/dist/config/plugin/agent.js +121 -121
- package/dist/config/plugin/command.js +219 -219
- package/dist/config/plugin/compaction.js +160 -160
- package/dist/config/plugin/compatibility.js +140 -140
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +120 -120
- package/dist/config/plugin/image.js +119 -119
- package/dist/config/plugin/instruction.js +119 -119
- package/dist/config/plugin/location-watcher.js +121 -121
- package/dist/config/plugin/mcp.js +130 -130
- package/dist/config/plugin/policy.js +121 -121
- package/dist/config/plugin/provider.js +120 -120
- package/dist/config/plugin/reference.js +121 -121
- package/dist/config/plugin/shell.js +121 -121
- package/dist/config/plugin/skill-file.js +110 -110
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +143 -143
- package/dist/config/plugin/snapshot.js +119 -119
- package/dist/config/plugin/source.js +118 -118
- package/dist/config/plugin/tool-output.js +120 -120
- package/dist/config/plugin/websearch.js +120 -120
- package/dist/config/plugin/worktree.js +121 -121
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +124 -124
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +90 -90
- package/dist/database/database.js +77 -77
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration.gen.js +54 -54
- package/dist/database/migration.js +56 -56
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +96 -96
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +379 -379
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +99 -99
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +101 -101
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +77 -77
- package/dist/file-access.js +112 -112
- package/dist/file-mutation.js +100 -100
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +232 -232
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +110 -110
- package/dist/form.js +91 -91
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +93 -93
- package/dist/generate.js +111 -111
- package/dist/git.js +9 -9
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +105 -105
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +370 -370
- package/dist/instruction-discovery.js +91 -91
- package/dist/instructions/builtins.js +93 -93
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +94 -94
- package/dist/job.js +81 -81
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +78 -78
- package/dist/location-activity.js +162 -162
- package/dist/location-lifecycle.js +115 -115
- package/dist/location-service-map.js +92 -92
- package/dist/location-services.js +367 -367
- package/dist/location.js +91 -91
- package/dist/managed-policy.js +9 -9
- package/dist/mcp/client.js +97 -97
- package/dist/mcp/index.js +113 -113
- package/dist/mcp/instructions.js +146 -146
- package/dist/mcp/oauth.js +83 -83
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +96 -96
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +105 -105
- package/dist/model-resolver.js +105 -105
- package/dist/model-retry.js +1 -1
- package/dist/model.js +104 -104
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +87 -87
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +123 -123
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +93 -93
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +80 -80
- package/dist/plugin/agent.js +81 -81
- package/dist/plugin/command.js +108 -108
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +223 -223
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +340 -340
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +102 -102
- package/dist/plugin/module.js +121 -121
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +110 -110
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +96 -96
- package/dist/plugin/provider/azure.js +119 -119
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +119 -119
- package/dist/plugin/provider/cloudflare-ai-gateway.js +116 -116
- package/dist/plugin/provider/cloudflare-workers-ai.js +116 -116
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +115 -115
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +99 -99
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +101 -101
- package/dist/plugin/provider/gitlab.js +99 -99
- package/dist/plugin/provider/google-vertex.js +116 -116
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +83 -83
- package/dist/plugin/provider/lmstudio.js +128 -128
- package/dist/plugin/provider/local.js +125 -125
- package/dist/plugin/provider/modal.js +98 -98
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +128 -128
- package/dist/plugin/provider/openai-context-caps.js +96 -96
- package/dist/plugin/provider/openai.js +119 -119
- package/dist/plugin/provider/opencode-legacy.js +106 -106
- package/dist/plugin/provider/opencode.js +125 -125
- package/dist/plugin/provider/openrouter.js +97 -97
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +84 -84
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +97 -97
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +118 -118
- package/dist/plugin/provider/vercel.js +96 -96
- package/dist/plugin/provider/vllm.js +128 -128
- package/dist/plugin/provider/xai.js +97 -97
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +176 -176
- package/dist/plugin/sdk.js +81 -81
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +139 -139
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +359 -359
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +92 -92
- package/dist/plugin/vcs/hg.js +92 -92
- package/dist/plugin/verbosity.js +99 -99
- package/dist/plugin/warming.js +117 -117
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +234 -234
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +92 -92
- package/dist/provider.js +107 -107
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +104 -104
- package/dist/reference/instructions.js +95 -95
- package/dist/reference.js +97 -97
- package/dist/repository-cache.js +85 -85
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +103 -103
- package/dist/rpc.js +92 -92
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/blob.js +8 -8
- package/dist/session/command.js +79 -79
- package/dist/session/compaction.js +140 -140
- package/dist/session/context.js +168 -168
- package/dist/session/diff.js +94 -94
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +227 -227
- package/dist/session/execution.js +134 -134
- package/dist/session/generate.js +170 -170
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +100 -100
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +84 -84
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +105 -105
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +126 -126
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +138 -138
- package/dist/session/projector.js +96 -96
- package/dist/session/prompt.js +113 -113
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +102 -102
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +236 -236
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +106 -106
- package/dist/session/runner/publish-llm-event.js +121 -121
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +134 -134
- package/dist/session/runner/to-llm-message.js +16 -16
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +168 -168
- package/dist/session/shell.js +133 -133
- package/dist/session/skill.js +111 -111
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +78 -78
- package/dist/session/store.js +92 -92
- package/dist/session/stored.js +6 -6
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +217 -217
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +174 -174
- package/dist/session/to-session-error.js +120 -120
- package/dist/session/transfer.js +222 -222
- package/dist/session/usage.js +1 -1
- package/dist/session.js +223 -223
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +135 -135
- package/dist/skill/discovery.js +4 -4
- package/dist/skill/instructions.js +115 -115
- package/dist/skill.js +120 -120
- package/dist/snapshot.js +95 -95
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +143 -143
- package/dist/tool/plugin/edit.js +128 -128
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +132 -132
- package/dist/tool/plugin/grep.js +132 -132
- package/dist/tool/plugin/mcp-resource.js +132 -132
- package/dist/tool/plugin/opencode.js +117 -117
- package/dist/tool/plugin/patch.js +130 -130
- package/dist/tool/plugin/question.js +111 -111
- package/dist/tool/plugin/read.js +133 -133
- package/dist/tool/plugin/shell.js +222 -222
- package/dist/tool/plugin/skill.js +117 -117
- package/dist/tool/plugin/subagent.js +220 -220
- package/dist/tool/plugin/todo.js +143 -143
- package/dist/tool/plugin/webfetch.js +119 -119
- package/dist/tool/plugin/websearch.js +122 -122
- package/dist/tool/plugin/write.js +130 -130
- package/dist/tool/read-filesystem.js +106 -106
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/usage-limits.js +94 -94
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +98 -98
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +99 -99
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +95 -95
- package/dist/voice.js +91 -91
- package/dist/websearch.js +89 -89
- package/dist/wellknown/plugin.js +81 -81
- package/dist/wellknown.js +86 -86
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +87 -87
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +9 -9
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +95 -95
- package/dist/worktree.js +104 -104
- package/package.json +8 -8
- package/dist/chunks/instruction-discovery-2hkmxex7.js +0 -26
- package/dist/chunks/instruction-discovery-69mbd1tk.js +0 -517
- package/dist/chunks/instruction-discovery-me0dhgxs.js +0 -18
- package/dist/chunks/instruction-discovery-q0vbkbrh.js +0 -257
- /package/dist/chunks/{instruction-discovery-0qkdqm5v.js → rpc-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-0zkw76rk.js → rpc-0zkw76rk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-17cy0kzp.js → rpc-17cy0kzp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1cnp2v09.js → rpc-1cnp2v09.js} +0 -0
- /package/dist/chunks/{instruction-discovery-24dcb14g.js → rpc-24dcb14g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2710q6r3.js → rpc-2710q6r3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2beny6pf.js → rpc-2beny6pf.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2bv980vf.js → rpc-2bv980vf.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2c3vjs8z.js → rpc-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-359p4xyc.js → rpc-359p4xyc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3asan66x.js → rpc-3asan66x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3v8g72cx.js → rpc-3v8g72cx.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3wcehsnq.js → rpc-3wcehsnq.js} +0 -0
- /package/dist/chunks/{instruction-discovery-43n2bw4t.js → rpc-43n2bw4t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4knz6hnm.js → rpc-4knz6hnm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4vcrnpx2.js → rpc-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4y7fprxs.js → rpc-4y7fprxs.js} +0 -0
- /package/dist/chunks/{instruction-discovery-53557ph1.js → rpc-53557ph1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-550bvhaj.js → rpc-550bvhaj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-5fjb7ams.js → rpc-5fjb7ams.js} +0 -0
- /package/dist/chunks/{instruction-discovery-5qd3pb7m.js → rpc-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{instruction-discovery-6prwharc.js → rpc-6prwharc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-6q2bdcd1.js → rpc-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7akdwqpd.js → rpc-7akdwqpd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7m9af43g.js → rpc-7m9af43g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-822emrt2.js → rpc-822emrt2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-84wd9syh.js → rpc-84wd9syh.js} +0 -0
- /package/dist/chunks/{instruction-discovery-88xbtdfr.js → rpc-88xbtdfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8n3pysct.js → rpc-8n3pysct.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8wj87zfr.js → rpc-8wj87zfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9a4afbnw.js → rpc-9a4afbnw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9rqn6x4v.js → rpc-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-a058387c.js → rpc-a058387c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-a6k6eb26.js → rpc-a6k6eb26.js} +0 -0
- /package/dist/chunks/{instruction-discovery-af5trqkr.js → rpc-af5trqkr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-afrmfg78.js → rpc-afrmfg78.js} +0 -0
- /package/dist/chunks/{instruction-discovery-aqzs7mqg.js → rpc-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{instruction-discovery-atq7p7m5.js → rpc-atq7p7m5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bkyjaxrp.js → rpc-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bmr6ed5q.js → rpc-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cf4snx6d.js → rpc-cf4snx6d.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cqv5kn06.js → rpc-cqv5kn06.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cvy3z8tj.js → rpc-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9fn303g.js → rpc-d9fn303g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9jj8t3e.js → rpc-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dajrwvna.js → rpc-dajrwvna.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dap0rakb.js → rpc-dap0rakb.js} +0 -0
- /package/dist/chunks/{instruction-discovery-df08tz66.js → rpc-df08tz66.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dy18nga0.js → rpc-dy18nga0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e5kj55wp.js → rpc-e5kj55wp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e73j6tqm.js → rpc-e73j6tqm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ec1grn59.js → rpc-ec1grn59.js} +0 -0
- /package/dist/chunks/{instruction-discovery-eh3zwz77.js → rpc-eh3zwz77.js} +0 -0
- /package/dist/chunks/{instruction-discovery-emrn6kk6.js → rpc-emrn6kk6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f0mxakyp.js → rpc-f0mxakyp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f6n9ztr4.js → rpc-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{instruction-discovery-faypxj3z.js → rpc-faypxj3z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fd410y7t.js → rpc-fd410y7t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fkpq3x5p.js → rpc-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g4wezp1m.js → rpc-g4wezp1m.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g86h250q.js → rpc-g86h250q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gebd4c9n.js → rpc-gebd4c9n.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gftt206x.js → rpc-gftt206x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hcxmzztb.js → rpc-hcxmzztb.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hk9envan.js → rpc-hk9envan.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j2ntwpah.js → rpc-j2ntwpah.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j5zkgpj8.js → rpc-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jjkms2e6.js → rpc-jjkms2e6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jr7sbwjy.js → rpc-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jwfs4k6c.js → rpc-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jwr30sdr.js → rpc-jwr30sdr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jze0r7bz.js → rpc-jze0r7bz.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jzg6c2d5.js → rpc-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-m18g726c.js → rpc-m18g726c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-mp448xyj.js → rpc-mp448xyj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-msx8hqn2.js → rpc-msx8hqn2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n05xt0ee.js → rpc-n05xt0ee.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n3j8tn72.js → rpc-n3j8tn72.js} +0 -0
- /package/dist/chunks/{instruction-discovery-njntx4h6.js → rpc-njntx4h6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q3sfg36h.js → rpc-q3sfg36h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q74kybfr.js → rpc-q74kybfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qaymkmh1.js → rpc-qaymkmh1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qb87gjwd.js → rpc-qb87gjwd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qfa1cgps.js → rpc-qfa1cgps.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qg3g05ea.js → rpc-qg3g05ea.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qrg20bc0.js → rpc-qrg20bc0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-rcb2kzg1.js → rpc-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-sdp7kfr6.js → rpc-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ssg3fenm.js → rpc-ssg3fenm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ve7vex1e.js → rpc-ve7vex1e.js} +0 -0
- /package/dist/chunks/{instruction-discovery-w803qqfp.js → rpc-w803qqfp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wc3fc9cn.js → rpc-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wer8tq1h.js → rpc-wer8tq1h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wjj7prxr.js → rpc-wjj7prxr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wtztk69x.js → rpc-wtztk69x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x0ckcb58.js → rpc-x0ckcb58.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x61499pn.js → rpc-x61499pn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y44na4kk.js → rpc-y44na4kk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y8f7s663.js → rpc-y8f7s663.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ygaqb7jw.js → rpc-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ym463w8f.js → rpc-ym463w8f.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z5v4ffb3.js → rpc-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z9919s4g.js → rpc-z9919s4g.js} +0 -0
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
node89
|
|
4
|
+
} from "./rpc-0k3jqzf9.js";
|
|
5
5
|
import {
|
|
6
6
|
environment2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./rpc-7p4k3pzp.js";
|
|
8
8
|
import {
|
|
9
9
|
makeDaemonTransport2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./rpc-a058387c.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./rpc-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/persistent-pty/index.ts
|
|
16
16
|
var exports_persistent_pty = {};
|
|
17
17
|
__export(exports_persistent_pty, {
|
|
18
18
|
Handoff: () => Handoff2,
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Options: () =>
|
|
19
|
+
NotFoundError: () => NotFoundError5,
|
|
20
|
+
Options: () => Options5,
|
|
21
21
|
PersistentPty: () => exports_persistent_pty,
|
|
22
|
-
Service: () =>
|
|
23
|
-
UnavailableError: () =>
|
|
22
|
+
Service: () => Service46,
|
|
23
|
+
UnavailableError: () => UnavailableError4,
|
|
24
24
|
available: () => available2,
|
|
25
|
-
configured: () =>
|
|
26
|
-
layer: () =>
|
|
27
|
-
node: () =>
|
|
25
|
+
configured: () => configured6,
|
|
26
|
+
layer: () => layer21,
|
|
27
|
+
node: () => node48
|
|
28
28
|
});
|
|
29
29
|
import path from "node:path";
|
|
30
30
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -35,24 +35,24 @@ import { Global } from "@opencode/util/global";
|
|
|
35
35
|
import { resolveBinary } from "#persistent-pty-binary";
|
|
36
36
|
import { Handoff as Handoff2 } from "@opencode/schema/persistent-pty";
|
|
37
37
|
import { available as available2 } from "#persistent-pty-binary";
|
|
38
|
-
var
|
|
38
|
+
var Options5 = Schema.Struct({
|
|
39
39
|
handoff: Schema.optional(Handoff),
|
|
40
40
|
root: Schema.optional(Schema.String)
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
class
|
|
43
|
+
class UnavailableError4 extends Schema.TaggedError()("PersistentPty.UnavailableError", {
|
|
44
44
|
message: Schema.String
|
|
45
45
|
}) {
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
class
|
|
48
|
+
class NotFoundError5 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
|
|
49
49
|
ptyID: Pty.ID
|
|
50
50
|
}) {
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
class
|
|
53
|
+
class Service46 extends Context.Service()("@opencode/PersistentPty") {
|
|
54
54
|
}
|
|
55
|
-
var makeLayer = (options = {}) => Layer.effect(
|
|
55
|
+
var makeLayer = (options = {}) => Layer.effect(Service46, Effect.gen(function* () {
|
|
56
56
|
const bus = yield* Service86;
|
|
57
57
|
const global = yield* Global.Service;
|
|
58
58
|
const context = yield* Effect.context();
|
|
@@ -75,7 +75,7 @@ var makeLayer = (options = {}) => Layer.effect(Service20, Effect.gen(function* (
|
|
|
75
75
|
const get = Effect.fn("PersistentPty.get")(function* (id) {
|
|
76
76
|
const found = (yield* list()).find((terminal) => terminal.id === id);
|
|
77
77
|
if (!found)
|
|
78
|
-
return yield* new
|
|
78
|
+
return yield* new NotFoundError5({ ptyID: id });
|
|
79
79
|
return found;
|
|
80
80
|
});
|
|
81
81
|
const create = Effect.fn("PersistentPty.create")(function* (sessionID, input) {
|
|
@@ -165,7 +165,7 @@ var makeLayer = (options = {}) => Layer.effect(Service20, Effect.gen(function* (
|
|
|
165
165
|
});
|
|
166
166
|
const read = Effect.fn("PersistentPty.read")(function* (sessionID, lines) {
|
|
167
167
|
if (lines !== undefined && !Schema.is(ReadLines)(lines))
|
|
168
|
-
return yield* new
|
|
168
|
+
return yield* new UnavailableError4({ message: "lines must be an integer between 1 and 65535" });
|
|
169
169
|
const id = current.get(sessionID);
|
|
170
170
|
if (!id)
|
|
171
171
|
return null;
|
|
@@ -242,7 +242,7 @@ var makeLayer = (options = {}) => Layer.effect(Service20, Effect.gen(function* (
|
|
|
242
242
|
detach: attachment.detach
|
|
243
243
|
};
|
|
244
244
|
});
|
|
245
|
-
return
|
|
245
|
+
return Service46.of({
|
|
246
246
|
list,
|
|
247
247
|
get,
|
|
248
248
|
create,
|
|
@@ -258,17 +258,17 @@ var makeLayer = (options = {}) => Layer.effect(Service20, Effect.gen(function* (
|
|
|
258
258
|
attach
|
|
259
259
|
});
|
|
260
260
|
}));
|
|
261
|
-
var
|
|
262
|
-
var
|
|
263
|
-
service:
|
|
264
|
-
layer: options === undefined ?
|
|
265
|
-
deps: [
|
|
261
|
+
var layer21 = makeLayer();
|
|
262
|
+
var configured6 = (options) => makeGlobalNode({
|
|
263
|
+
service: Service46,
|
|
264
|
+
layer: options === undefined ? layer21 : makeLayer(options),
|
|
265
|
+
deps: [node89, Global.node]
|
|
266
266
|
});
|
|
267
|
-
var
|
|
267
|
+
var node48 = configured6();
|
|
268
268
|
var request = (daemon, value, start = false) => daemon.request(value, start).pipe(Effect.mapError(unavailable));
|
|
269
269
|
var optionalRequest = (daemon, value) => daemon.requestIfRunning(value).pipe(Effect.mapError(unavailable));
|
|
270
|
-
var unexpected = (response) => Effect.fail(new
|
|
271
|
-
var unavailable = (error) => new
|
|
270
|
+
var unexpected = (response) => Effect.fail(new UnavailableError4({ message: `unexpected opencode-pty response: ${response.type}` }));
|
|
271
|
+
var unavailable = (error) => new UnavailableError4({ message: error instanceof Error ? error.message : String(error) });
|
|
272
272
|
function toInfo(value) {
|
|
273
273
|
const status = value.lifecycle.status;
|
|
274
274
|
return {
|
|
@@ -300,4 +300,4 @@ function fromID(value) {
|
|
|
300
300
|
return parsed;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
export {
|
|
303
|
+
export { Options5, UnavailableError4, NotFoundError5, Service46, layer21, configured6, node48, exports_persistent_pty, Handoff2, available2 };
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
node90
|
|
4
|
+
} from "./rpc-5ra5vjeh.js";
|
|
5
5
|
import {
|
|
6
6
|
Service86,
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
node89
|
|
8
|
+
} from "./rpc-0k3jqzf9.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service75,
|
|
11
|
+
node78
|
|
12
|
+
} from "./rpc-h9y2z81z.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service41,
|
|
15
|
+
node43
|
|
16
|
+
} from "./rpc-sbegqkxp.js";
|
|
17
17
|
import {
|
|
18
18
|
SessionEvent2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./rpc-ec1grn59.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
make18
|
|
22
|
+
} from "./rpc-ssfehs1z.js";
|
|
23
23
|
import {
|
|
24
24
|
DrainResult2,
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
25
|
+
Service39
|
|
26
|
+
} from "./rpc-xpve62cf.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
28
|
+
Service80,
|
|
29
|
+
node83
|
|
30
|
+
} from "./rpc-c66ha81g.js";
|
|
31
31
|
import {
|
|
32
32
|
toSessionError2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./rpc-xw8kgqa1.js";
|
|
34
34
|
import {
|
|
35
35
|
nextPromotable2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./rpc-3qayfnz6.js";
|
|
37
37
|
import {
|
|
38
38
|
__export
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./rpc-9rqn6x4v.js";
|
|
40
40
|
|
|
41
41
|
// src/session/execution.ts
|
|
42
42
|
var exports_execution = {};
|
|
43
43
|
__export(exports_execution, {
|
|
44
|
-
Service: () =>
|
|
44
|
+
Service: () => Service38,
|
|
45
45
|
SessionExecution: () => exports_execution,
|
|
46
|
-
layer: () =>
|
|
47
|
-
node: () =>
|
|
46
|
+
layer: () => layer18,
|
|
47
|
+
node: () => node41,
|
|
48
48
|
noopLayer: () => noopLayer2,
|
|
49
49
|
terminal: () => terminal2
|
|
50
50
|
});
|
|
51
51
|
import { Cause, Context, Effect, Exit, Layer } from "effect";
|
|
52
52
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
53
|
-
class
|
|
53
|
+
class Service38 extends Context.Service()("@opencode/SessionExecution") {
|
|
54
54
|
}
|
|
55
55
|
function terminal2(exit, reason) {
|
|
56
56
|
if (Exit.isSuccess(exit))
|
|
@@ -59,11 +59,11 @@ function terminal2(exit, reason) {
|
|
|
59
59
|
return { type: "interrupted", reason: reason ?? "shutdown" };
|
|
60
60
|
return { type: "failed", error: toSessionError2(Cause.squash(exit.cause)) };
|
|
61
61
|
}
|
|
62
|
-
var
|
|
63
|
-
const store = yield*
|
|
64
|
-
const instances = yield*
|
|
62
|
+
var layer18 = Layer.effect(Service38, Effect.gen(function* () {
|
|
63
|
+
const store = yield* Service80;
|
|
64
|
+
const instances = yield* Service41;
|
|
65
65
|
const bus = yield* Service86;
|
|
66
|
-
const jobs = yield*
|
|
66
|
+
const jobs = yield* Service75;
|
|
67
67
|
const db = (yield* Service87).db;
|
|
68
68
|
const reportLifecycle = (sessionID, effect) => effect.pipe(Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to publish Session execution lifecycle", cause).pipe(Effect.annotateLogs({ sessionID }))), Effect.asVoid);
|
|
69
69
|
const claimOnCommit = (sessionID) => ({
|
|
@@ -76,14 +76,14 @@ var layer17 = Layer.effect(Service35, Effect.gen(function* () {
|
|
|
76
76
|
const session = yield* store.get(sessionID);
|
|
77
77
|
if (!session)
|
|
78
78
|
return yield* Effect.die(new Error(`Session not found: ${sessionID}`));
|
|
79
|
-
const result = yield*
|
|
79
|
+
const result = yield* Service39.use((runner) => runner.drain({ sessionID, force, continuation, promotable })).pipe(instances.provide(session), Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to drain Session", cause).pipe(Effect.annotateLogs({ sessionID }))));
|
|
80
80
|
return yield* DrainResult2.$match(result, {
|
|
81
81
|
Complete: () => Effect.void,
|
|
82
82
|
Moved: (result) => drain(sessionID, false, result.continuation, promotable),
|
|
83
83
|
Reloaded: (result) => drain(sessionID, result.force, result.continuation, promotable)
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
|
-
const coordinator = yield*
|
|
86
|
+
const coordinator = yield* make18({
|
|
87
87
|
started: (sessionID) => reportLifecycle(sessionID, bus.publish(SessionEvent2.Execution.Started, { sessionID }, claimOnCommit(sessionID))),
|
|
88
88
|
drain: (sessionID, force, promotable) => drain(sessionID, force, undefined, promotable),
|
|
89
89
|
settled: (sessionID, exit, reason) => reportLifecycle(sessionID, Effect.gen(function* () {
|
|
@@ -104,7 +104,7 @@ var layer17 = Layer.effect(Service35, Effect.gen(function* () {
|
|
|
104
104
|
}, releaseOnCommit(sessionID));
|
|
105
105
|
}))
|
|
106
106
|
});
|
|
107
|
-
return
|
|
107
|
+
return Service38.of({
|
|
108
108
|
active: coordinator.active,
|
|
109
109
|
isActive: coordinator.isActive,
|
|
110
110
|
interrupt: (sessionID, options) => Effect.gen(function* () {
|
|
@@ -123,12 +123,12 @@ var layer17 = Layer.effect(Service35, Effect.gen(function* () {
|
|
|
123
123
|
awaitIdle: coordinator.awaitIdle
|
|
124
124
|
});
|
|
125
125
|
}));
|
|
126
|
-
var
|
|
127
|
-
service:
|
|
128
|
-
layer:
|
|
129
|
-
deps: [
|
|
126
|
+
var node41 = makeGlobalNode({
|
|
127
|
+
service: Service38,
|
|
128
|
+
layer: layer18,
|
|
129
|
+
deps: [node83, node43, node89, node90, node78]
|
|
130
130
|
});
|
|
131
|
-
var noopLayer2 = Layer.succeed(
|
|
131
|
+
var noopLayer2 = Layer.succeed(Service38, Service38.of({
|
|
132
132
|
active: Effect.succeed(new Set),
|
|
133
133
|
isActive: () => Effect.succeed(false),
|
|
134
134
|
resume: () => Effect.void,
|
|
@@ -137,4 +137,4 @@ var noopLayer2 = Layer.succeed(Service35, Service35.of({
|
|
|
137
137
|
awaitIdle: () => Effect.void
|
|
138
138
|
}));
|
|
139
139
|
|
|
140
|
-
export {
|
|
140
|
+
export { Service38, terminal2, layer18, node41, noopLayer2, exports_execution };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./rpc-cd50e0wg.js";
|
|
4
4
|
import {
|
|
5
5
|
call2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./rpc-w2eysc6j.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./rpc-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/websearch/parallel.ts
|
|
12
12
|
var exports_parallel = {};
|
|
13
13
|
__export(exports_parallel, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin35,
|
|
15
15
|
WebSearchParallel: () => exports_parallel,
|
|
16
16
|
endpoint: () => endpoint3
|
|
17
17
|
});
|
|
@@ -47,7 +47,7 @@ var McpOutput = Schema.Struct({
|
|
|
47
47
|
content: Schema.Array(Schema.Struct({ type: Schema.Literal("text"), text: Schema.String })),
|
|
48
48
|
structuredContent: SearchResponse
|
|
49
49
|
});
|
|
50
|
-
var
|
|
50
|
+
var Plugin35 = define({
|
|
51
51
|
id: "opencode.websearch.parallel",
|
|
52
52
|
effect: Effect.fn("WebSearchParallel.Plugin")(function* (ctx) {
|
|
53
53
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -93,4 +93,4 @@ var Plugin18 = define({
|
|
|
93
93
|
})
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
export { endpoint3,
|
|
96
|
+
export { endpoint3, Plugin35, exports_parallel };
|
|
@@ -2,39 +2,39 @@ import {
|
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./rpc-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
7
|
Service83,
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
node86
|
|
9
|
+
} from "./rpc-n2165afj.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service37,
|
|
12
|
+
node40
|
|
13
|
+
} from "./rpc-46astgjy.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./rpc-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/filesystem.ts
|
|
19
19
|
var exports_filesystem = {};
|
|
20
20
|
__export(exports_filesystem, {
|
|
21
|
-
Content: () =>
|
|
21
|
+
Content: () => Content2,
|
|
22
22
|
DEFAULT_SEARCH_LIMIT: () => DEFAULT_SEARCH_LIMIT2,
|
|
23
23
|
DEFAULT_SEARCH_TIMEOUT_MS: () => DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
24
24
|
DirectoryAccessDeniedError: () => DirectoryAccessDeniedError2,
|
|
25
25
|
DirectoryNotFoundError: () => DirectoryNotFoundError2,
|
|
26
26
|
Entry: () => Entry2,
|
|
27
|
-
Event: () =>
|
|
27
|
+
Event: () => Event5,
|
|
28
28
|
FileSystem: () => exports_filesystem,
|
|
29
29
|
FindInput: () => FindInput2,
|
|
30
30
|
GlobInput: () => GlobInput2,
|
|
31
31
|
GrepInput: () => GrepInput2,
|
|
32
32
|
Match: () => Match2,
|
|
33
|
-
NotFoundError: () =>
|
|
34
|
-
Service: () =>
|
|
33
|
+
NotFoundError: () => NotFoundError4,
|
|
34
|
+
Service: () => Service36,
|
|
35
35
|
Submatch: () => Submatch2,
|
|
36
36
|
Write: () => Write2,
|
|
37
|
-
node: () =>
|
|
37
|
+
node: () => node39
|
|
38
38
|
});
|
|
39
39
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
40
40
|
import path from "path";
|
|
@@ -43,7 +43,7 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
43
43
|
import { Entry, FileSystem, FindInput as FindInput2, Write as Write2 } from "@opencode/schema/filesystem";
|
|
44
44
|
import { Entry as Entry2, Match as Match2, Submatch as Submatch2 } from "@opencode/schema/filesystem";
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class NotFoundError4 extends Schema.TaggedError()("FileSystem.NotFoundError", {
|
|
47
47
|
path: RelativePath2
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
@@ -65,7 +65,7 @@ class DirectoryAccessDeniedError2 extends Schema.TaggedError()("FileSystem.Direc
|
|
|
65
65
|
return `Access denied to directory: ${this.directory}`;
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
-
var
|
|
68
|
+
var Content2 = Schema.Struct({
|
|
69
69
|
uri: Schema.String,
|
|
70
70
|
name: Schema.String.pipe(Schema.optional),
|
|
71
71
|
content: Schema.String,
|
|
@@ -92,14 +92,14 @@ class GrepInput2 extends Schema.Class("FileSystem.GrepInput")({
|
|
|
92
92
|
limit: Schema.optionalKey(PositiveInt2)
|
|
93
93
|
}) {
|
|
94
94
|
}
|
|
95
|
-
var
|
|
95
|
+
var Event5 = FileSystem.Event;
|
|
96
96
|
|
|
97
|
-
class
|
|
97
|
+
class Service36 extends Context.Service()("@opencode/FileSystem") {
|
|
98
98
|
}
|
|
99
|
-
var baseLayer = Layer.effect(
|
|
99
|
+
var baseLayer = Layer.effect(Service36, Effect.gen(function* () {
|
|
100
100
|
const fs = yield* FSUtil.Service;
|
|
101
101
|
const location = yield* Service83;
|
|
102
|
-
const search = yield*
|
|
102
|
+
const search = yield* Service37;
|
|
103
103
|
const root = location.workspaceID ? location.directory : yield* fs.realPath(location.directory).pipe(Effect.tap((real) => fs.access(real, { readable: true })), Effect.catch((cause) => {
|
|
104
104
|
if (cause.reason._tag === "NotFound")
|
|
105
105
|
return Effect.fail(new DirectoryNotFoundError2({ directory: location.directory, cause }));
|
|
@@ -109,22 +109,22 @@ var baseLayer = Layer.effect(Service58, Effect.gen(function* () {
|
|
|
109
109
|
}));
|
|
110
110
|
const resolve = Effect.fnUntraced(function* (input) {
|
|
111
111
|
if (input.includes("\x00"))
|
|
112
|
-
return yield* Effect.fail(new
|
|
112
|
+
return yield* Effect.fail(new NotFoundError4({ path: input }));
|
|
113
113
|
const absolute = path.resolve(location.directory, input);
|
|
114
114
|
if (!FSUtil.contains(location.directory, absolute))
|
|
115
|
-
return yield* Effect.fail(new
|
|
116
|
-
const real = yield* fs.realPath(absolute).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
115
|
+
return yield* Effect.fail(new NotFoundError4({ path: input }));
|
|
116
|
+
const real = yield* fs.realPath(absolute).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError4({ path: input })), (_, error) => Effect.die(error)));
|
|
117
117
|
if (!FSUtil.contains(root, real))
|
|
118
|
-
return yield* Effect.fail(new
|
|
118
|
+
return yield* Effect.fail(new NotFoundError4({ path: input }));
|
|
119
119
|
return { absolute, real, directory: location.directory };
|
|
120
120
|
});
|
|
121
|
-
return
|
|
121
|
+
return Service36.of({
|
|
122
122
|
find: search.find,
|
|
123
123
|
read: Effect.fn("FileSystem.read")(function* (input) {
|
|
124
124
|
const target = yield* resolve(input.path);
|
|
125
|
-
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
125
|
+
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError4({ path: input.path })), (_, error) => Effect.die(error)));
|
|
126
126
|
if (info.type !== "File")
|
|
127
|
-
return yield* Effect.fail(new
|
|
127
|
+
return yield* Effect.fail(new NotFoundError4({ path: input.path }));
|
|
128
128
|
return {
|
|
129
129
|
mime: FSUtil.mimeType(target.real),
|
|
130
130
|
size: Number(info.size),
|
|
@@ -134,7 +134,7 @@ var baseLayer = Layer.effect(Service58, Effect.gen(function* () {
|
|
|
134
134
|
}),
|
|
135
135
|
list: Effect.fn("FileSystem.list")(function* (input = {}) {
|
|
136
136
|
const directory = path.resolve(location.directory, input.path ?? ".");
|
|
137
|
-
const missing = new
|
|
137
|
+
const missing = new NotFoundError4({ path: RelativePath2.make(input.path ?? ".") });
|
|
138
138
|
const info = yield* fs.stat(directory).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(missing), (_, error) => Effect.die(error)));
|
|
139
139
|
if (info.type !== "Directory")
|
|
140
140
|
return yield* missing;
|
|
@@ -158,10 +158,10 @@ var baseLayer = Layer.effect(Service58, Effect.gen(function* () {
|
|
|
158
158
|
})
|
|
159
159
|
});
|
|
160
160
|
}));
|
|
161
|
-
var
|
|
162
|
-
service:
|
|
161
|
+
var node39 = makeLocationNode({
|
|
162
|
+
service: Service36,
|
|
163
163
|
layer: baseLayer,
|
|
164
|
-
deps: [FSUtil.node,
|
|
164
|
+
deps: [FSUtil.node, node86, node40]
|
|
165
165
|
});
|
|
166
166
|
|
|
167
|
-
export { FindInput2, Write2,
|
|
167
|
+
export { FindInput2, Write2, NotFoundError4, DirectoryNotFoundError2, DirectoryAccessDeniedError2, Content2, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event5, Service36, node39, exports_filesystem, Entry2, Match2, Submatch2 };
|
|
@@ -2,45 +2,45 @@ import {
|
|
|
2
2
|
NotFound3,
|
|
3
3
|
WrongKind2,
|
|
4
4
|
Failed2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./rpc-zkg84ctx.js";
|
|
6
6
|
import {
|
|
7
7
|
Service83
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./rpc-n2165afj.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service70
|
|
11
|
+
} from "./rpc-ampftf2x.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service21
|
|
14
|
+
} from "./rpc-yr9ahj94.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
Service20,
|
|
17
17
|
readText2,
|
|
18
18
|
syncTextBom2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./rpc-w5h1wkz0.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Service78
|
|
22
|
+
} from "./rpc-v0tjrdy5.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
24
|
+
Service13,
|
|
25
25
|
resolvePath2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./rpc-7gn1c7q5.js";
|
|
27
27
|
import {
|
|
28
28
|
fileDiff2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./rpc-6prwharc.js";
|
|
30
30
|
import {
|
|
31
31
|
__export
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./rpc-9rqn6x4v.js";
|
|
33
33
|
|
|
34
34
|
// src/tool/plugin/patch.ts
|
|
35
35
|
var exports_patch = {};
|
|
36
36
|
__export(exports_patch, {
|
|
37
37
|
Applied: () => Applied2,
|
|
38
|
-
Input: () =>
|
|
39
|
-
Output: () =>
|
|
38
|
+
Input: () => Input9,
|
|
39
|
+
Output: () => Output7,
|
|
40
40
|
PatchTool: () => exports_patch,
|
|
41
|
-
Plugin: () =>
|
|
42
|
-
name: () =>
|
|
43
|
-
toModelContent: () =>
|
|
41
|
+
Plugin: () => Plugin26,
|
|
42
|
+
name: () => name9,
|
|
43
|
+
toModelContent: () => toModelContent6
|
|
44
44
|
});
|
|
45
45
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
46
46
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
@@ -85,8 +85,8 @@ It is important to remember:
|
|
|
85
85
|
`;
|
|
86
86
|
|
|
87
87
|
// src/tool/plugin/patch.ts
|
|
88
|
-
var
|
|
89
|
-
var
|
|
88
|
+
var name9 = "patch";
|
|
89
|
+
var Input9 = Schema.Struct({
|
|
90
90
|
patchText: Schema.String.annotate({
|
|
91
91
|
description: "The full patch text describing add, update, and delete operations"
|
|
92
92
|
})
|
|
@@ -96,30 +96,30 @@ var Applied2 = Schema.Struct({
|
|
|
96
96
|
resource: Schema.String,
|
|
97
97
|
target: Schema.String
|
|
98
98
|
});
|
|
99
|
-
var
|
|
99
|
+
var Output7 = Schema.Struct({
|
|
100
100
|
applied: Schema.Array(Applied2),
|
|
101
101
|
files: Schema.Array(FileDiff.Info)
|
|
102
102
|
});
|
|
103
|
-
var
|
|
103
|
+
var toModelContent6 = (output) => [
|
|
104
104
|
"Success. Updated the following files:",
|
|
105
105
|
...output.applied.map((item) => `${item.type === "add" ? "A" : item.type === "delete" ? "D" : "M"} ${item.resource}`)
|
|
106
106
|
].join(`
|
|
107
107
|
`);
|
|
108
|
-
var
|
|
108
|
+
var Plugin26 = {
|
|
109
109
|
id: "opencode.tool.patch",
|
|
110
110
|
effect: Effect.fn("PatchTool.Plugin")(function* (ctx) {
|
|
111
|
-
const environment = yield*
|
|
112
|
-
const access = yield*
|
|
113
|
-
const fileMutation = yield*
|
|
114
|
-
const formatter = yield*
|
|
111
|
+
const environment = yield* Service70;
|
|
112
|
+
const access = yield* Service13;
|
|
113
|
+
const fileMutation = yield* Service20;
|
|
114
|
+
const formatter = yield* Service21;
|
|
115
115
|
const location = yield* Service83;
|
|
116
|
-
const permission = yield*
|
|
116
|
+
const permission = yield* Service78;
|
|
117
117
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
118
|
-
name:
|
|
118
|
+
name: name9,
|
|
119
119
|
options: { codemode: false, permission: "edit" },
|
|
120
120
|
description: patch_default,
|
|
121
|
-
input:
|
|
122
|
-
output:
|
|
121
|
+
input: Input9,
|
|
122
|
+
output: Output7,
|
|
123
123
|
execute: (input, context) => {
|
|
124
124
|
const applied = [];
|
|
125
125
|
const parsed = Patch.parse(input.patchText);
|
|
@@ -266,7 +266,7 @@ var Plugin8 = {
|
|
|
266
266
|
return { applied, files };
|
|
267
267
|
}).pipe(fileMutation.withLock(lockTargets), Effect.map((output) => ({
|
|
268
268
|
output,
|
|
269
|
-
content:
|
|
269
|
+
content: toModelContent6(output),
|
|
270
270
|
metadata: { files: output.files }
|
|
271
271
|
})), Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: "Unable to apply patch", error })));
|
|
272
272
|
}
|
|
@@ -326,4 +326,4 @@ function trimDiff(diff) {
|
|
|
326
326
|
`);
|
|
327
327
|
}
|
|
328
328
|
|
|
329
|
-
export {
|
|
329
|
+
export { name9, Input9, Applied2, Output7, toModelContent6, Plugin26, exports_patch };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./rpc-vd3b3yk9.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./rpc-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/filesystem/location-watcher-policy.ts
|
|
9
9
|
var exports_location_watcher_policy = {};
|
|
10
10
|
__export(exports_location_watcher_policy, {
|
|
11
11
|
LocationWatcherPolicy: () => exports_location_watcher_policy,
|
|
12
|
-
Service: () =>
|
|
13
|
-
node: () =>
|
|
12
|
+
Service: () => Service7,
|
|
13
|
+
node: () => node9
|
|
14
14
|
});
|
|
15
15
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
16
16
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
17
|
-
class
|
|
17
|
+
class Service7 extends Context.Service()("@opencode/LocationWatcherPolicy") {
|
|
18
18
|
}
|
|
19
|
-
var layer = Layer.effect(
|
|
19
|
+
var layer = Layer.effect(Service7, Effect.gen(function* () {
|
|
20
20
|
const listeners = new Set;
|
|
21
21
|
const state = create3({
|
|
22
22
|
name: "location-watcher-policy",
|
|
@@ -41,13 +41,13 @@ var layer = Layer.effect(Service12, Effect.gen(function* () {
|
|
|
41
41
|
yield* Scope.addFinalizer(scope, dispose);
|
|
42
42
|
return { dispose };
|
|
43
43
|
});
|
|
44
|
-
return
|
|
44
|
+
return Service7.of({
|
|
45
45
|
transform: state.transform,
|
|
46
46
|
reload: state.reload,
|
|
47
47
|
current,
|
|
48
48
|
observe
|
|
49
49
|
});
|
|
50
50
|
}));
|
|
51
|
-
var
|
|
51
|
+
var node9 = makeLocationNode({ service: Service7, layer, deps: [] });
|
|
52
52
|
|
|
53
|
-
export {
|
|
53
|
+
export { Service7, node9, exports_location_watcher_policy };
|