@opencode-ai/core 0.0.0-beta-18684 → 0.0.0-beta-18721
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 +2 -2
- package/dist/agent.js +70 -70
- package/dist/aisdk-native.js +3 -3
- package/dist/aisdk.js +4 -4
- package/dist/app.js +2 -2
- package/dist/bus.js +68 -68
- package/dist/catalog.js +78 -78
- package/dist/chunks/{state-02dbfq60.js → workspace-02dbfq60.js} +1 -1
- package/dist/chunks/{state-tgbb2ckq.js → workspace-02f9w0t0.js} +2 -2
- package/dist/chunks/{state-3qmndtx9.js → workspace-0382r32z.js} +2 -2
- package/dist/chunks/{state-hxcd35r2.js → workspace-0687t5rp.js} +6 -6
- package/dist/chunks/{state-j0sncrp4.js → workspace-0d4mk87s.js} +3 -3
- package/dist/chunks/{state-bktc4s3t.js → workspace-0dmbf0wy.js} +2 -2
- package/dist/chunks/{state-6hrx3qpt.js → workspace-0j6xhazk.js} +8 -8
- package/dist/chunks/{state-0kvmztkf.js → workspace-0kvmztkf.js} +1 -1
- package/dist/chunks/{state-aq3jmta4.js → workspace-0p8q1qw1.js} +11 -11
- package/dist/chunks/{state-7xfxj81h.js → workspace-0r8mkfdy.js} +4 -4
- package/dist/chunks/{state-np2sgr2t.js → workspace-0t4s47ed.js} +9 -9
- package/dist/chunks/{state-vrg9c9q9.js → workspace-0vkr0968.js} +4 -4
- package/dist/chunks/{state-temtg8dy.js → workspace-0yf2afmn.js} +3 -3
- package/dist/chunks/{state-10p29vm9.js → workspace-10p29vm9.js} +1 -1
- package/dist/chunks/{state-15hpbjb6.js → workspace-15hpbjb6.js} +1 -1
- package/dist/chunks/{state-18pv8fg3.js → workspace-18pv8fg3.js} +2 -2
- package/dist/chunks/{state-t77pcxaw.js → workspace-1hfjzejj.js} +3 -3
- package/dist/chunks/{state-vs78gshx.js → workspace-1rexamst.js} +6 -6
- package/dist/chunks/{state-t4jyzchx.js → workspace-23a0c1bj.js} +48 -44
- package/dist/chunks/{state-264e1nfp.js → workspace-264e1nfp.js} +2 -2
- package/dist/chunks/{state-2m0hgr65.js → workspace-2m0hgr65.js} +1 -1
- package/dist/chunks/{state-2nmyybe0.js → workspace-2nmyybe0.js} +1 -1
- package/dist/chunks/{state-2pd1mgzx.js → workspace-2pd1mgzx.js} +2 -2
- package/dist/chunks/{state-j29rhpt4.js → workspace-2tz67g1e.js} +10 -10
- package/dist/chunks/{state-393a352g.js → workspace-393a352g.js} +2 -2
- package/dist/chunks/{state-3g8vftxb.js → workspace-3g8vftxb.js} +2 -2
- package/dist/chunks/{state-3thh6229.js → workspace-3thh6229.js} +2 -2
- package/dist/chunks/{state-41qzzbpz.js → workspace-41qzzbpz.js} +1 -1
- package/dist/chunks/{state-5th3bkhh.js → workspace-49vfnqyj.js} +4 -4
- package/dist/chunks/{state-4xcc4pxn.js → workspace-4fnpr27v.js} +12 -12
- package/dist/chunks/{state-8pngjawd.js → workspace-4h896fer.js} +2 -2
- package/dist/chunks/{state-cr7tbps7.js → workspace-4q8e4ty8.js} +8 -8
- package/dist/chunks/{state-4zzdwbaz.js → workspace-4zzdwbaz.js} +2 -2
- package/dist/chunks/{state-50jxp3hw.js → workspace-50jxp3hw.js} +1 -1
- package/dist/chunks/{state-6kt4mxs4.js → workspace-54jxv7ra.js} +4 -4
- package/dist/chunks/{state-57ej80dx.js → workspace-57ej80dx.js} +2 -2
- package/dist/chunks/{state-57tzwnz4.js → workspace-57tzwnz4.js} +1 -1
- package/dist/chunks/{state-58xdvehb.js → workspace-58xdvehb.js} +1 -1
- package/dist/chunks/{state-vhxwmcne.js → workspace-5d6p0teb.js} +2 -2
- package/dist/chunks/{state-5fe026tx.js → workspace-5fe026tx.js} +3 -3
- package/dist/chunks/{state-5rs65q6p.js → workspace-5rs65q6p.js} +1 -1
- package/dist/chunks/{state-5vcssjzn.js → workspace-5vcssjzn.js} +1 -1
- package/dist/chunks/{state-zmwyjx4d.js → workspace-6c4zjnsa.js} +18 -18
- package/dist/chunks/{state-1aq7gkhy.js → workspace-6jw56qh4.js} +13 -13
- package/dist/chunks/{state-6ky7rqk7.js → workspace-6ky7rqk7.js} +1 -1
- package/dist/chunks/{state-mdr0b99r.js → workspace-6wkh0xt8.js} +4 -4
- package/dist/chunks/{state-6wkzvma0.js → workspace-6wkzvma0.js} +2 -2
- package/dist/chunks/{state-az57h3s3.js → workspace-6yzphrxy.js} +3 -3
- package/dist/chunks/{state-sz7acswn.js → workspace-71he9c34.js} +4 -4
- package/dist/chunks/{state-3atnf4k9.js → workspace-75jm6q42.js} +5 -5
- package/dist/chunks/{state-7mrpdsq5.js → workspace-7mrpdsq5.js} +1 -1
- package/dist/chunks/{state-tcxjymvf.js → workspace-7mw91s0p.js} +58 -58
- package/dist/chunks/{state-7wcmqxrc.js → workspace-7wcmqxrc.js} +1 -1
- package/dist/chunks/{state-4twq59qz.js → workspace-83n144wj.js} +8 -8
- package/dist/chunks/{state-sxns5my2.js → workspace-87mh0e1q.js} +5 -5
- package/dist/chunks/{state-mwvdpwcp.js → workspace-90xaz2d8.js} +5 -5
- package/dist/chunks/{state-n4fxzf0c.js → workspace-95ex1qdx.js} +6 -6
- package/dist/chunks/{state-kse1g3vm.js → workspace-96h2ckbg.js} +5 -5
- package/dist/chunks/{state-am8nd5ct.js → workspace-9b50qpfj.js} +6 -6
- package/dist/chunks/{state-nsb760q1.js → workspace-9b76fep3.js} +7 -7
- package/dist/chunks/{state-9f0rnpkn.js → workspace-9f0rnpkn.js} +1 -1
- package/dist/chunks/{state-v16fefw3.js → workspace-9kmcw9m3.js} +7 -7
- package/dist/chunks/{state-qyv2f15b.js → workspace-9mp6v1qd.js} +16 -16
- package/dist/chunks/{state-zrdgbthy.js → workspace-9szkxgyb.js} +14 -14
- package/dist/chunks/{state-7yxdgcdg.js → workspace-9zz3e0gs.js} +7 -7
- package/dist/chunks/{state-7rgfq7cg.js → workspace-a5qzhy59.js} +14 -14
- package/dist/chunks/{state-a7zp47hx.js → workspace-a7zp47hx.js} +1 -1
- package/dist/chunks/{state-6vv9vvfs.js → workspace-adt2dd96.js} +59 -32
- package/dist/chunks/{state-dhvv2dke.js → workspace-aqznnwa7.js} +5 -5
- package/dist/chunks/{state-3yz9d04b.js → workspace-aweppgs5.js} +2 -2
- package/dist/chunks/{state-297h3553.js → workspace-b4txk059.js} +2 -2
- package/dist/chunks/{state-qjfz0d3t.js → workspace-b96dby51.js} +4 -4
- package/dist/chunks/{state-bbhffenw.js → workspace-bbhffenw.js} +3 -3
- package/dist/chunks/{state-bh1wr8rq.js → workspace-bh1wr8rq.js} +2 -2
- package/dist/chunks/{state-qnk6x8hc.js → workspace-bh4rpm56.js} +5 -5
- package/dist/chunks/{state-byab506k.js → workspace-byab506k.js} +1 -1
- package/dist/chunks/{state-pbrq9pmc.js → workspace-byb06gyb.js} +10 -10
- package/dist/chunks/{state-c4wcb9vc.js → workspace-c4wcb9vc.js} +2 -2
- package/dist/chunks/{state-c8ya26sa.js → workspace-c8ya26sa.js} +2 -2
- package/dist/chunks/{state-0cg1xda9.js → workspace-ccf4e63x.js} +5 -5
- package/dist/chunks/{state-rg042c41.js → workspace-ccwkppmm.js} +5 -5
- package/dist/chunks/{state-5br90a8p.js → workspace-cdyns1y9.js} +13 -13
- package/dist/chunks/{state-cgqn2mrm.js → workspace-cgqn2mrm.js} +3 -3
- package/dist/chunks/{state-amtptj9f.js → workspace-cmtnk9bc.js} +4 -4
- package/dist/chunks/{state-5hbk2f5z.js → workspace-cpdjx8r8.js} +25 -25
- package/dist/chunks/{state-d2gk9vpf.js → workspace-d2gk9vpf.js} +2 -2
- package/dist/chunks/{state-d4h7vwhh.js → workspace-d4h7vwhh.js} +2 -2
- package/dist/chunks/{state-5t7q56hh.js → workspace-d6597cvr.js} +16 -16
- package/dist/chunks/{state-d4zkabyv.js → workspace-d6e56n2n.js} +3 -3
- package/dist/chunks/{state-91jv2dwm.js → workspace-dddbpkz0.js} +11 -11
- package/dist/chunks/{state-h8499ys5.js → workspace-dg2044dm.js} +3 -3
- package/dist/chunks/{state-dhphtf1x.js → workspace-dhphtf1x.js} +1 -1
- package/dist/chunks/{state-2a5pw7n9.js → workspace-dy6avzyr.js} +3 -3
- package/dist/chunks/{state-dyj7wa6j.js → workspace-dyj7wa6j.js} +3 -3
- package/dist/chunks/{state-e1z9a0ts.js → workspace-e1z9a0ts.js} +2 -2
- package/dist/chunks/{state-z2v2g0w5.js → workspace-e5hrgxm9.js} +6 -6
- package/dist/chunks/{state-ec8vrfw5.js → workspace-ec8vrfw5.js} +1 -1
- package/dist/chunks/{state-rjawwthv.js → workspace-eg3ntwpk.js} +5 -5
- package/dist/chunks/{state-6xryfvfs.js → workspace-ekr1z8vx.js} +13 -13
- package/dist/chunks/{state-ep35cpen.js → workspace-ep35cpen.js} +1 -1
- package/dist/chunks/{state-etvrgfqj.js → workspace-etvrgfqj.js} +1 -1
- package/dist/chunks/{state-dx3ash2a.js → workspace-eyj72yq6.js} +19 -19
- package/dist/chunks/{state-8y3819y8.js → workspace-f3fdb301.js} +3 -3
- package/dist/chunks/{state-fd8j0005.js → workspace-f45tr4gk.js} +7 -7
- package/dist/chunks/{state-7ccgh94t.js → workspace-f7q7a28y.js} +6 -6
- package/dist/chunks/{state-f9wt0tjw.js → workspace-f9wt0tjw.js} +2 -2
- package/dist/chunks/{state-krsqcmnj.js → workspace-fex42j86.js} +2 -1
- package/dist/chunks/{state-8ya4n8zg.js → workspace-fkbn0amk.js} +6 -6
- package/dist/chunks/{state-fm3b2wbt.js → workspace-fm3b2wbt.js} +2 -2
- package/dist/chunks/{state-nf920z1m.js → workspace-fr1wyg6y.js} +10 -10
- package/dist/chunks/{state-mxjff6xk.js → workspace-fvzd795v.js} +4 -4
- package/dist/chunks/{state-enpg66yn.js → workspace-g68hwncr.js} +1 -1
- package/dist/chunks/{state-gb1z7yet.js → workspace-gb1z7yet.js} +2 -2
- package/dist/chunks/{state-vpac0x8g.js → workspace-gbf8gmfy.js} +5 -5
- package/dist/chunks/{state-gcay93cp.js → workspace-gcay93cp.js} +1 -1
- package/dist/chunks/{state-gd2xppx8.js → workspace-gd2xppx8.js} +1 -1
- package/dist/chunks/{state-cynvptsh.js → workspace-geyszmd1.js} +4 -4
- package/dist/chunks/{state-6m6jxvnj.js → workspace-gn1b6j0w.js} +9 -9
- package/dist/chunks/{state-48kmwd7y.js → workspace-gxgtbepa.js} +10 -10
- package/dist/chunks/{state-83ba1yz6.js → workspace-gz9s6gpj.js} +2 -2
- package/dist/chunks/{state-ywjbnhwf.js → workspace-h5evy9bn.js} +4 -4
- package/dist/chunks/{state-h5wnyjzw.js → workspace-h5wnyjzw.js} +3 -3
- package/dist/chunks/{state-fgyjabww.js → workspace-h6q26knr.js} +2 -2
- package/dist/chunks/{state-h94zdhz8.js → workspace-h94zdhz8.js} +2 -2
- package/dist/chunks/{state-8gggym7s.js → workspace-hbwsavq5.js} +8 -8
- package/dist/chunks/{state-hgr9y616.js → workspace-hgr9y616.js} +1 -1
- package/dist/chunks/{state-2b3pkve8.js → workspace-hmryngz5.js} +152 -152
- package/dist/chunks/{state-hp6rpdnc.js → workspace-hp6rpdnc.js} +1 -1
- package/dist/chunks/{state-442jakqw.js → workspace-hpnzywkq.js} +6 -6
- package/dist/chunks/{state-avxxwfmz.js → workspace-hrf5kjnr.js} +3 -3
- package/dist/chunks/{state-efb59s13.js → workspace-hthr7p63.js} +12 -12
- package/dist/chunks/{state-j0feex7e.js → workspace-j0feex7e.js} +1 -1
- package/dist/chunks/{state-j281xcgt.js → workspace-j281xcgt.js} +3 -3
- package/dist/chunks/{state-y8hfmrbz.js → workspace-jcrvmhhm.js} +2 -2
- package/dist/chunks/{state-4n623fxr.js → workspace-jdx4t1h5.js} +4 -4
- package/dist/chunks/{state-tk21pea4.js → workspace-jjebnzjz.js} +5 -5
- package/dist/chunks/{state-cp8v16sk.js → workspace-jpw57t0x.js} +7 -7
- package/dist/chunks/{state-g5tvq2z7.js → workspace-jv2akzxs.js} +26 -6
- package/dist/chunks/{state-m0t583rx.js → workspace-jvhgzz8q.js} +5 -7
- package/dist/chunks/{state-8ee4ayyt.js → workspace-jyhpc08g.js} +9 -9
- package/dist/chunks/{state-6272rtjg.js → workspace-k5e6kcej.js} +8 -15
- package/dist/chunks/{state-k828h0dz.js → workspace-k828h0dz.js} +4 -4
- package/dist/chunks/{state-fp623900.js → workspace-kb2ag3w7.js} +2 -2
- package/dist/chunks/{state-kg1345f7.js → workspace-kg1345f7.js} +1 -1
- package/dist/chunks/{state-a2jfr9gs.js → workspace-kn110wfv.js} +3 -3
- package/dist/chunks/{state-kp1t5rcy.js → workspace-kp1t5rcy.js} +1 -1
- package/dist/chunks/{state-3qv8nf0b.js → workspace-kww0mg52.js} +1 -1
- package/dist/chunks/{state-n7nsrdbk.js → workspace-kwy8bpa6.js} +3 -3
- package/dist/chunks/workspace-kz0c7bgg.js +207 -0
- package/dist/chunks/{state-rrqrf7hs.js → workspace-m4a2h2aa.js} +12 -12
- package/dist/chunks/{state-mf0hyk7z.js → workspace-mf0hyk7z.js} +1 -1
- package/dist/chunks/{state-36dfjbwk.js → workspace-mn7qpjr2.js} +5 -5
- package/dist/chunks/{state-mnb85w6b.js → workspace-mnb85w6b.js} +2 -2
- package/dist/chunks/{state-27ykzq5n.js → workspace-mx9wk07j.js} +10 -10
- package/dist/chunks/{state-mxvw03gv.js → workspace-mxvw03gv.js} +1 -1
- package/dist/chunks/{state-vcw3phwb.js → workspace-n2cyq83r.js} +6 -6
- package/dist/chunks/{state-qzp632xx.js → workspace-n2dez5xq.js} +50 -128
- package/dist/chunks/{state-grxebm7t.js → workspace-ncaapae1.js} +3 -3
- package/dist/chunks/{state-rg5dm0vs.js → workspace-nekhbbnv.js} +3 -3
- package/dist/chunks/{state-qph0wk53.js → workspace-ngk06vjf.js} +2 -2
- package/dist/chunks/{state-ngz3v23c.js → workspace-ngz3v23c.js} +2 -2
- package/dist/chunks/{state-awg5d31a.js → workspace-npwkm078.js} +1 -1
- package/dist/chunks/{state-nr76rjj3.js → workspace-nr76rjj3.js} +2 -2
- package/dist/chunks/{state-ns0sdez7.js → workspace-ns0sdez7.js} +3 -3
- package/dist/chunks/{state-9cb4yhpj.js → workspace-nyjqweqz.js} +13 -14
- package/dist/chunks/{state-nzrjycs5.js → workspace-nzrjycs5.js} +1 -1
- package/dist/chunks/{state-amkn3mrf.js → workspace-p183atfw.js} +10 -10
- package/dist/chunks/{state-8br4d03d.js → workspace-pd3n9s7q.js} +7 -7
- package/dist/chunks/{state-rf120rew.js → workspace-pds7pjdg.js} +6 -6
- package/dist/chunks/{state-cbp56nj8.js → workspace-pq48jtzb.js} +10 -10
- package/dist/chunks/{state-pq4b4pqk.js → workspace-pq4b4pqk.js} +2 -2
- package/dist/chunks/{state-2wds5nk3.js → workspace-ps01fcq7.js} +1 -1
- package/dist/chunks/{state-wzks8mfc.js → workspace-psv6w1a0.js} +5 -5
- package/dist/chunks/{state-pq4efbwz.js → workspace-pznyjm5b.js} +8 -8
- package/dist/chunks/{state-62gc4hyq.js → workspace-pzqpm43x.js} +9 -9
- package/dist/chunks/{state-x9782t8s.js → workspace-q2jbdv9f.js} +11 -11
- package/dist/chunks/{state-q606pcse.js → workspace-q606pcse.js} +3 -3
- package/dist/chunks/{state-m55whf0h.js → workspace-q66tjefk.js} +2 -2
- package/dist/chunks/{state-qe0d689s.js → workspace-qe0d689s.js} +2 -2
- package/dist/chunks/{state-8q7v1yfa.js → workspace-qg8mqw3q.js} +4 -4
- package/dist/chunks/{state-hjcbr714.js → workspace-qsbnxnr4.js} +4 -4
- package/dist/chunks/{state-zygzxh1b.js → workspace-qwn30307.js} +2 -2
- package/dist/chunks/{state-r3k9abhd.js → workspace-r3k9abhd.js} +2 -2
- package/dist/chunks/{state-r9d3d23r.js → workspace-r9d3d23r.js} +1 -1
- package/dist/chunks/{state-rahat93a.js → workspace-rahat93a.js} +1 -1
- package/dist/chunks/{state-0gcqkg3x.js → workspace-rdqmt1vp.js} +2 -2
- package/dist/chunks/{state-a9rzcc94.js → workspace-rhm13qbw.js} +11 -11
- package/dist/chunks/{state-zs1qer6v.js → workspace-rmjj1pjh.js} +27 -2
- package/dist/chunks/{state-57sfr108.js → workspace-rrhcyjvn.js} +10 -10
- package/dist/chunks/{state-546qm8gr.js → workspace-rth9afse.js} +9 -9
- package/dist/chunks/{state-y84yndyz.js → workspace-rwh2mvqs.js} +4 -4
- package/dist/chunks/{state-s2kjqxd3.js → workspace-s2kjqxd3.js} +1 -1
- package/dist/chunks/{state-s33fw6zm.js → workspace-s33fw6zm.js} +1 -1
- package/dist/chunks/{state-af29esbf.js → workspace-sc0wbnjs.js} +1 -1
- package/dist/chunks/workspace-se07g09y.js +129 -0
- package/dist/chunks/{state-myj58n64.js → workspace-se5s32fp.js} +7 -7
- package/dist/chunks/{state-p9c8s57s.js → workspace-sea31hhk.js} +3 -3
- package/dist/chunks/{state-smpeg8c9.js → workspace-smpeg8c9.js} +2 -2
- package/dist/chunks/{state-cnsekzdm.js → workspace-spxah02e.js} +4 -4
- package/dist/chunks/{state-cpqd33tw.js → workspace-sqsnmb9f.js} +20 -16
- package/dist/chunks/{state-sw84ckhj.js → workspace-sw84ckhj.js} +1 -1
- package/dist/chunks/{state-0v1esw26.js → workspace-sz9w0e5n.js} +8 -8
- package/dist/chunks/{state-3feq69af.js → workspace-t099cpyx.js} +4 -4
- package/dist/chunks/{state-t14kykx1.js → workspace-t14kykx1.js} +1 -1
- package/dist/chunks/{state-5efnjspb.js → workspace-t29y76c6.js} +9 -6
- package/dist/chunks/{state-r13w8t0w.js → workspace-t683wdge.js} +2 -2
- package/dist/chunks/{state-rbnp2c85.js → workspace-t6ma3p1k.js} +3 -3
- package/dist/chunks/{state-ad3fd695.js → workspace-t8aff0pg.js} +95 -91
- package/dist/chunks/{state-yhxs0ds9.js → workspace-tgzdt8vx.js} +15 -15
- package/dist/chunks/{state-thstd87d.js → workspace-thstd87d.js} +1 -1
- package/dist/chunks/{state-tjrfm0xh.js → workspace-tjrfm0xh.js} +2 -2
- package/dist/chunks/{state-4vn652hh.js → workspace-tqka7tgd.js} +18 -18
- package/dist/chunks/{state-sw91z7ka.js → workspace-ttf9eg87.js} +21 -8
- package/dist/chunks/{state-ddkxdmhk.js → workspace-tv8s8hx7.js} +7 -7
- package/dist/chunks/{state-rjnf462d.js → workspace-ty0adcvq.js} +88 -88
- package/dist/chunks/{state-1b14nrwf.js → workspace-v12a39vm.js} +7 -7
- package/dist/chunks/{state-v2wshkax.js → workspace-v2wshkax.js} +1 -1
- package/dist/chunks/{state-yh1c5vjh.js → workspace-v5yqeb22.js} +8 -8
- package/dist/chunks/{state-v80zsxnb.js → workspace-v80zsxnb.js} +1 -1
- package/dist/chunks/{state-v972xay6.js → workspace-v972xay6.js} +1 -1
- package/dist/chunks/{state-v9bfv94f.js → workspace-v9bfv94f.js} +1 -1
- package/dist/chunks/{state-vcwr2vpf.js → workspace-vcwr2vpf.js} +1 -1
- package/dist/chunks/{state-330v609d.js → workspace-vd1d8tva.js} +8 -8
- package/dist/chunks/{state-xqsjgyve.js → workspace-vj7vg9kk.js} +16 -16
- package/dist/chunks/{state-cgy4zpa6.js → workspace-vkgwd1zr.js} +4 -4
- package/dist/chunks/{state-p7bctnjr.js → workspace-vmqnr5ym.js} +6 -6
- package/dist/chunks/{state-bsjatayh.js → workspace-vnze5mnn.js} +11 -11
- package/dist/chunks/{state-mhk3rrcb.js → workspace-vq1jnjcx.js} +7 -7
- package/dist/chunks/{state-vqbmgfq1.js → workspace-vqbmgfq1.js} +3 -3
- package/dist/chunks/{state-vz89hfgr.js → workspace-vz89hfgr.js} +1 -1
- package/dist/chunks/{state-h12kt9pa.js → workspace-w385wtt6.js} +2 -2
- package/dist/chunks/{state-hptxbmcw.js → workspace-w3fj2cfx.js} +31 -31
- package/dist/chunks/{state-gysjbt8f.js → workspace-w47r4rby.js} +3 -3
- package/dist/chunks/{state-wbkt8qpj.js → workspace-wbkt8qpj.js} +1 -1
- package/dist/chunks/{state-8qrx9cj0.js → workspace-wfdy75zv.js} +31 -31
- package/dist/chunks/{state-zqpaf5g0.js → workspace-wg766mjt.js} +3 -3
- package/dist/chunks/{state-wmxdh12w.js → workspace-wmxdh12w.js} +1 -1
- package/dist/chunks/{state-wps8gh8n.js → workspace-wps8gh8n.js} +2 -2
- package/dist/chunks/{state-fyaxe1pd.js → workspace-wq5r9j83.js} +2 -2
- package/dist/chunks/{state-ebnnd043.js → workspace-x12tajmt.js} +10 -10
- package/dist/chunks/{state-x89rah0x.js → workspace-x89rah0x.js} +1 -1
- package/dist/chunks/{state-gpxba9vf.js → workspace-xa5547w0.js} +13 -13
- package/dist/chunks/{state-mg2nmqys.js → workspace-xanq1mxd.js} +3 -3
- package/dist/chunks/{state-xczfw7dq.js → workspace-xczfw7dq.js} +1 -1
- package/dist/chunks/{state-xgv25zxy.js → workspace-xgv25zxy.js} +1 -1
- package/dist/chunks/{state-xj0xhwdw.js → workspace-xj0xhwdw.js} +1 -1
- package/dist/chunks/{state-ny5bre0m.js → workspace-xjjns68s.js} +4 -4
- package/dist/chunks/{state-xwftk1fd.js → workspace-xwftk1fd.js} +2 -2
- package/dist/chunks/{state-xxpvz42q.js → workspace-xxpvz42q.js} +3 -3
- package/dist/chunks/{state-y0x38cee.js → workspace-y0x38cee.js} +1 -1
- package/dist/chunks/{state-y198y2ra.js → workspace-y198y2ra.js} +1 -1
- package/dist/chunks/{state-y67x6rf6.js → workspace-y67x6rf6.js} +1 -1
- package/dist/chunks/{state-74v4zq76.js → workspace-y6vap6bx.js} +3 -3
- package/dist/chunks/{state-epxhfqb6.js → workspace-ydqqfkxk.js} +51 -45
- package/dist/chunks/{state-rw00p5qk.js → workspace-ypm2r7kk.js} +42 -19
- package/dist/chunks/{state-2ygtazh9.js → workspace-yqrbzdvt.js} +3 -3
- package/dist/chunks/{state-yt02w91s.js → workspace-yt02w91s.js} +2 -2
- package/dist/chunks/{state-2mrfsm54.js → workspace-yt7cwtxp.js} +3 -3
- package/dist/chunks/{state-73zfmg2m.js → workspace-z1qq43ae.js} +5 -5
- package/dist/chunks/{state-7e0e6g4b.js → workspace-z4jgbr9s.js} +6 -6
- package/dist/chunks/{state-wavksq96.js → workspace-z90enqha.js} +5 -5
- package/dist/chunks/{state-zbqqnp0n.js → workspace-zbqqnp0n.js} +1 -1
- package/dist/chunks/{state-zdkg1k91.js → workspace-zdkg1k91.js} +1 -1
- package/dist/chunks/{state-8a4hfbqs.js → workspace-zn8r3q6e.js} +6 -6
- package/dist/chunks/{state-vwj18m7v.js → workspace-zq1g42ep.js} +3 -3
- package/dist/chunks/{state-dstxbc7s.js → workspace-zwavn0q8.js} +7 -7
- package/dist/chunks/{state-zxe9jjhn.js → workspace-zxe9jjhn.js} +2 -2
- package/dist/chunks/{state-n3j6ek0z.js → workspace-zzjh79ge.js} +7 -7
- package/dist/codemode/catalog.js +2 -2
- package/dist/codemode/instructions.js +4 -4
- package/dist/codemode/tool.js +3 -3
- package/dist/command.js +70 -70
- package/dist/config/markdown.js +2 -2
- package/dist/config/normalize.js +20 -20
- package/dist/config/plugin/agent.js +132 -132
- package/dist/config/plugin/command.js +118 -118
- package/dist/config/plugin/compaction.js +146 -146
- package/dist/config/plugin/entry-observer.js +114 -114
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +131 -131
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +117 -117
- package/dist/config/plugin/mcp.js +127 -127
- package/dist/config/plugin/policy.js +116 -116
- package/dist/config/plugin/provider.js +115 -115
- package/dist/config/plugin/reference.js +119 -119
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +103 -103
- package/dist/config/plugin/skill.js +135 -135
- package/dist/config/plugin/snapshot.js +117 -117
- package/dist/config/plugin/source.js +114 -114
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/variable.js +4 -4
- package/dist/config.js +113 -113
- package/dist/credential/sql.js +3 -3
- package/dist/credential.js +71 -71
- package/dist/database/database.js +65 -65
- package/dist/database/drizzle/effect-sqlite/driver.js +13 -13
- package/dist/database/drizzle/effect-sqlite/index.js +13 -13
- package/dist/database/drizzle/effect-sqlite/session.js +12 -12
- package/dist/database/drizzle/index.js +14 -14
- package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/index.js +19 -19
- package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/session.js +11 -11
- package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
- package/dist/database/drizzle.js +15 -15
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
- package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
- package/dist/database/migration/20260225215848_workspace.js +2 -2
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
- package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
- package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
- package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
- package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
- package/dist/database/migration/20260323234822_events.js +2 -2
- package/dist/database/migration/20260410174513_workspace-name.js +2 -2
- package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
- package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
- package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
- package/dist/database/migration/20260428004200_add_session_path.js +2 -2
- package/dist/database/migration/20260501142318_next_venus.js +2 -2
- package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
- package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
- package/dist/database/migration/20260510033149_session_usage.js +2 -2
- package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
- package/dist/database/migration/20260511173437_session-metadata.js +2 -2
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
- package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
- package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
- package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
- package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
- package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
- package/dist/database/migration/20260611035744_credential.js +2 -2
- package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
- package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
- package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
- package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
- package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
- package/dist/database/migration/20260812181746_session_inbox.js +2 -2
- package/dist/database/migration/20260812213948_worktree.js +2 -2
- package/dist/database/migration/20260819222447_session_viewed_state.js +2 -2
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +2 -2
- package/dist/database/migration.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- package/dist/database/path.js +3 -3
- package/dist/database/schema.gen.js +2 -2
- package/dist/database/schema.sql.js +2 -2
- package/dist/database/sqlite.bun.js +2 -2
- package/dist/database/sqlite.js +2 -2
- package/dist/database/sqlite.node.js +2 -2
- package/dist/database/sqlite.workerd.js +2 -2
- package/dist/database/v1-migration.bun.js +77 -77
- package/dist/database/v1-migration.js +2 -2
- package/dist/database/v1-migration.noop.js +1 -1
- package/dist/effect/app-node-builder.js +340 -339
- package/dist/effect/app-node-platform.js +3 -3
- package/dist/effect/keyed-mutex.js +2 -2
- package/dist/effect/websocket-constructor.js +2 -2
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +91 -91
- package/dist/environment/exec-defaults.js +3 -3
- package/dist/environment/files.js +2 -2
- package/dist/environment/index.js +93 -93
- package/dist/environment/local.js +3 -3
- package/dist/environment/memory.js +3 -3
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +2 -2
- package/dist/event-logger.js +68 -68
- package/dist/file-mutation.js +92 -92
- package/dist/file-retention.js +2 -2
- package/dist/file.js +2 -2
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +2 -2
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +3 -3
- package/dist/filesystem/location-watcher.js +314 -313
- package/dist/filesystem/protected.js +2 -2
- package/dist/filesystem/search.js +96 -96
- package/dist/filesystem/watcher-binding.js +2 -2
- package/dist/filesystem/watcher.js +4 -4
- package/dist/filesystem.js +97 -97
- package/dist/form.js +69 -69
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +85 -85
- package/dist/generate.js +84 -84
- package/dist/git.js +5 -5
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
- package/dist/github-copilot/chat/get-response-metadata.js +2 -2
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
- package/dist/github-copilot/copilot-provider.js +18 -18
- package/dist/github-copilot/models.js +4 -4
- package/dist/github-copilot/openai-compatible-error.js +2 -2
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +2 -2
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
- package/dist/github-copilot/responses/openai-error.js +2 -2
- package/dist/github-copilot/responses/openai-responses-language-model.js +11 -11
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
- package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
- package/dist/github-copilot/responses/tool/file-search.js +2 -2
- package/dist/github-copilot/responses/tool/image-generation.js +2 -2
- package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
- package/dist/github-copilot/responses/tool/web-search.js +2 -2
- package/dist/id/id.js +2 -2
- package/dist/image/photon-wasm.bun.js +1 -1
- package/dist/image/photon-wasm.node.js +1 -1
- package/dist/image/photon-wasm.workerd.js +1 -1
- package/dist/image/photon.js +99 -99
- package/dist/image.js +99 -99
- package/dist/instance.js +339 -338
- package/dist/instruction-discovery.js +72 -72
- package/dist/instructions/builtins.js +85 -85
- package/dist/instructions/index.js +2 -2
- package/dist/integration/connection.js +2 -2
- package/dist/integration.js +75 -75
- package/dist/job.js +72 -72
- package/dist/kv/sql.js +3 -3
- package/dist/kv.js +68 -68
- package/dist/location-activity.js +87 -87
- package/dist/location-mutation.js +84 -84
- package/dist/location-service-map.js +84 -84
- package/dist/location-services.js +340 -339
- package/dist/location.js +83 -83
- package/dist/mcp/client.js +92 -92
- package/dist/mcp/index.js +98 -98
- package/dist/mcp/instructions.js +127 -127
- package/dist/mcp/oauth.js +2 -2
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +2 -2
- package/dist/model-resolver.js +81 -81
- package/dist/model.js +3 -3
- package/dist/models-dev.js +75 -75
- package/dist/oauth/page.js +2 -2
- package/dist/permission/saved.js +71 -71
- package/dist/permission/sql.js +6 -6
- package/dist/permission.js +100 -100
- package/dist/persistent-pty/binary.bun.js +2 -2
- package/dist/persistent-pty/binary.node.js +1 -1
- package/dist/persistent-pty/binary.workerd.js +1 -1
- package/dist/persistent-pty/daemon.js +2 -2
- package/dist/persistent-pty/index.js +73 -73
- package/dist/persistent-pty/pty-binding.js +2 -2
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +101 -101
- package/dist/plugin/command.js +99 -99
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +203 -202
- package/dist/plugin/instance.js +2 -2
- package/dist/plugin/internal.js +307 -307
- package/dist/plugin/mcp-codemode-exclusion.js +2 -2
- package/dist/plugin/models-dev.js +76 -76
- package/dist/plugin/module.js +3 -3
- package/dist/plugin/plan.js +101 -101
- package/dist/plugin/promise.js +2 -2
- package/dist/plugin/provider/alibaba.js +3 -3
- package/dist/plugin/provider/amazon-bedrock.js +3 -3
- package/dist/plugin/provider/anthropic.js +3 -3
- package/dist/plugin/provider/azure.js +123 -123
- package/dist/plugin/provider/cerebras.js +3 -3
- package/dist/plugin/provider/cloudflare-ai-gateway.js +122 -122
- package/dist/plugin/provider/cloudflare-workers-ai.js +122 -122
- package/dist/plugin/provider/cohere.js +3 -3
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/dynamic.js +3 -3
- package/dist/plugin/provider/factory.js +2 -2
- package/dist/plugin/provider/gateway.js +3 -3
- package/dist/plugin/provider/github-copilot.js +82 -82
- package/dist/plugin/provider/gitlab.js +4 -4
- package/dist/plugin/provider/google-vertex.js +3 -3
- package/dist/plugin/provider/kilo.js +3 -3
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +120 -120
- package/dist/plugin/provider/mistral.js +3 -3
- package/dist/plugin/provider/nvidia.js +3 -3
- package/dist/plugin/provider/ollama.js +120 -120
- package/dist/plugin/provider/openai-compatible.js +2 -2
- package/dist/plugin/provider/openai.js +79 -79
- package/dist/plugin/provider/opencode.js +93 -93
- package/dist/plugin/provider/openrouter.js +4 -4
- package/dist/plugin/provider/perplexity.js +3 -3
- package/dist/plugin/provider/sap-ai-core.js +4 -4
- package/dist/plugin/provider/sdk-factory.js +2 -2
- package/dist/plugin/provider/snowflake-cortex.js +3 -3
- package/dist/plugin/provider/venice.js +3 -3
- package/dist/plugin/provider/vercel.js +3 -3
- package/dist/plugin/provider/vllm.js +120 -120
- package/dist/plugin/provider/xai.js +78 -78
- package/dist/plugin/provider/zenmux.js +3 -3
- package/dist/plugin/provider.js +159 -159
- package/dist/plugin/runtime.js +190 -190
- package/dist/plugin/sdk.js +69 -69
- package/dist/plugin/skill.js +133 -133
- package/dist/plugin/source-directory.js +4 -2
- package/dist/plugin/supervisor-service.js +2 -2
- package/dist/plugin/supervisor.js +313 -312
- package/dist/plugin/system-prompt.js +2 -2
- package/dist/plugin/variant.js +3 -3
- package/dist/plugin/vcs/git.js +87 -87
- package/dist/plugin/vcs/hg.js +87 -87
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +4 -4
- package/dist/plugin/websearch/firecrawl.js +5 -5
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +5 -5
- package/dist/plugin/websearch/tavily.js +3 -3
- package/dist/plugin.js +206 -203
- package/dist/project/markers.js +74 -74
- package/dist/project/schema.js +3 -3
- package/dist/project/sql.js +5 -5
- package/dist/project.js +82 -82
- package/dist/provider.js +2 -2
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/pty.bun.js +1 -1
- package/dist/pty/pty.node.js +1 -1
- package/dist/pty/pty.workerd.js +1 -1
- package/dist/pty/schema.js +2 -2
- package/dist/pty/ticket.js +2 -2
- package/dist/pty.js +89 -89
- package/dist/reference/instructions.js +77 -77
- package/dist/reference.js +75 -75
- package/dist/repository-cache.js +7 -7
- package/dist/repository.js +2 -2
- package/dist/ripgrep/binary.js +3 -3
- package/dist/ripgrep.js +94 -94
- package/dist/rpc.js +95 -0
- package/dist/schema.js +2 -2
- package/dist/session/compaction.js +118 -118
- package/dist/session/context.js +323 -322
- package/dist/session/environment.js +3 -3
- package/dist/session/error.js +4 -4
- package/dist/session/event.js +2 -2
- package/dist/session/execution/restart.js +190 -190
- package/dist/session/execution.js +122 -122
- package/dist/session/generate-node.js +324 -323
- package/dist/session/generate.js +2 -2
- package/dist/session/history.js +77 -77
- package/dist/session/inbox.js +77 -77
- package/dist/session/info.js +4 -4
- package/dist/session/instruction-entry.js +73 -73
- package/dist/session/instruction-state.js +10 -10
- package/dist/session/instructions.js +94 -94
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +2 -2
- package/dist/session/model-request.js +139 -139
- package/dist/session/model-transport.js +5 -5
- package/dist/session/projector.js +83 -83
- package/dist/session/prompt-node.js +314 -313
- package/dist/session/prompt.js +119 -119
- package/dist/session/revert-node.js +314 -313
- package/dist/session/revert.js +92 -92
- package/dist/session/run-coordinator.js +2 -2
- package/dist/session/runner/index.js +84 -84
- package/dist/session/runner/llm.js +329 -328
- package/dist/session/runner/max-steps.js +2 -2
- package/dist/session/runner/model.js +83 -83
- package/dist/session/runner/publish-llm-event.js +4 -4
- package/dist/session/runner/retry.js +72 -72
- package/dist/session/runner/step.js +148 -148
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +2 -2
- package/dist/session/session.js +174 -174
- package/dist/session/sql.js +6 -6
- package/dist/session/stats.js +71 -71
- package/dist/session/store.js +82 -80
- package/dist/session/subagent-completion.js +2 -2
- package/dist/session/system-prompt.js +2 -2
- package/dist/session/title.js +324 -323
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +188 -188
- package/dist/session/usage.js +2 -2
- package/dist/session.js +185 -185
- package/dist/shell/parse.js +7 -7
- package/dist/shell/parser-wasm.bun.js +1 -1
- package/dist/shell/parser-wasm.node.js +1 -1
- package/dist/shell/parser-wasm.workerd.js +1 -1
- package/dist/shell/result.js +2 -2
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +4 -4
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +3 -3
- package/dist/skill/instructions.js +102 -102
- package/dist/skill.js +101 -101
- package/dist/snapshot.js +85 -85
- package/dist/state.js +2 -2
- package/dist/tool/html-markdown.js +2 -2
- package/dist/tool/http-body.js +2 -2
- package/dist/tool/mcp.js +126 -126
- package/dist/tool/plugin/edit.js +113 -113
- package/dist/tool/plugin/file-diff.js +2 -2
- package/dist/tool/plugin/glob.js +116 -116
- package/dist/tool/plugin/grep.js +116 -116
- package/dist/tool/plugin/patch.js +113 -113
- package/dist/tool/plugin/question.js +102 -102
- package/dist/tool/plugin/read.js +119 -119
- package/dist/tool/plugin/shell.js +193 -193
- package/dist/tool/plugin/skill.js +102 -102
- package/dist/tool/plugin/subagent.js +192 -192
- package/dist/tool/plugin/webfetch.js +103 -103
- package/dist/tool/plugin/websearch.js +105 -105
- package/dist/tool/plugin/write.js +113 -113
- package/dist/tool/read-filesystem.js +99 -99
- package/dist/tool/runtime.js +2 -2
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +119 -119
- package/dist/types/instance.d.ts +3 -2
- package/dist/types/location-service-map.d.ts +2 -2
- package/dist/types/plugin/host.d.ts +13 -34
- package/dist/types/plugin/module.d.ts +1 -1
- package/dist/types/plugin/source-directory.d.ts +2 -1
- package/dist/types/plugin.d.ts +8 -4
- package/dist/types/rpc.d.ts +15 -0
- package/dist/types/session/session.d.ts +9 -3
- package/dist/types/session/store.d.ts +79 -1
- package/dist/types/session.d.ts +5 -16
- package/dist/types/tool/read-filesystem.d.ts +2 -0
- package/dist/util/array.js +1 -1
- package/dist/util/error.js +2 -2
- package/dist/util/identifier.js +1 -1
- package/dist/util/iife.js +2 -2
- package/dist/util/lazy.js +2 -2
- package/dist/util/process-lock-ffi.bun.js +1 -1
- package/dist/util/process-lock-ffi.node.js +1 -1
- package/dist/util/process-lock-ffi.workerd.js +1 -1
- package/dist/util/process-lock.js +1 -1
- package/dist/util/slug.js +2 -2
- package/dist/util/token.js +2 -2
- package/dist/util/which.js +2 -2
- package/dist/util/wildcard.js +2 -2
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +2 -2
- package/dist/v1/config/config.js +15 -15
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/formatter.js +2 -2
- package/dist/v1/config/layout.js +2 -2
- package/dist/v1/config/lsp.js +2 -2
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +19 -19
- package/dist/v1/config/permission.js +2 -2
- package/dist/v1/config/plugin.js +2 -2
- package/dist/v1/config/provider-options.js +2 -2
- package/dist/v1/config/provider.js +3 -3
- package/dist/v1/config/server.js +3 -3
- package/dist/v1/config/skills.js +2 -2
- package/dist/v1/permission.js +1 -1
- package/dist/vcs/patch.js +2 -2
- package/dist/vcs.js +86 -86
- package/dist/websearch.js +73 -73
- package/dist/wellknown/plugin.js +73 -73
- package/dist/wellknown.js +72 -72
- package/dist/workspace/driver.js +2 -2
- package/dist/workspace/sql.js +2 -2
- package/dist/workspace.js +69 -69
- package/dist/worktree/directory.js +3 -3
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/sql.js +6 -6
- package/dist/worktree.js +87 -87
- package/package.json +7 -7
- package/dist/chunks/state-tfd8n8cn.js +0 -67
- /package/dist/chunks/{state-0cgt0xh2.js → workspace-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{state-0f48qthw.js → workspace-0f48qthw.js} +0 -0
- /package/dist/chunks/{state-0zz82cjq.js → workspace-0zz82cjq.js} +0 -0
- /package/dist/chunks/{state-1fb7bmpf.js → workspace-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{state-1wcz8fvj.js → workspace-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{state-29n7vfk2.js → workspace-29n7vfk2.js} +0 -0
- /package/dist/chunks/{state-2qdx6zz3.js → workspace-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{state-2xb0r1c6.js → workspace-2xb0r1c6.js} +0 -0
- /package/dist/chunks/{state-39ktntah.js → workspace-39ktntah.js} +0 -0
- /package/dist/chunks/{state-3g3rpp2x.js → workspace-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{state-3w3ybtfd.js → workspace-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{state-47ty4mvs.js → workspace-47ty4mvs.js} +0 -0
- /package/dist/chunks/{state-4b2tz2m9.js → workspace-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{state-5a5ch9ts.js → workspace-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{state-5va1yh78.js → workspace-5va1yh78.js} +0 -0
- /package/dist/chunks/{state-61ek4hj9.js → workspace-61ek4hj9.js} +0 -0
- /package/dist/chunks/{state-69qrqpw0.js → workspace-69qrqpw0.js} +0 -0
- /package/dist/chunks/{state-6zqxzw0a.js → workspace-6zqxzw0a.js} +0 -0
- /package/dist/chunks/{state-7n9qwqk4.js → workspace-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{state-8nn8kqcn.js → workspace-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{state-8rpfd2h6.js → workspace-8rpfd2h6.js} +0 -0
- /package/dist/chunks/{state-8sj3ajy5.js → workspace-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{state-8w9tzfz1.js → workspace-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{state-906y0b6d.js → workspace-906y0b6d.js} +0 -0
- /package/dist/chunks/{state-9dct5xhx.js → workspace-9dct5xhx.js} +0 -0
- /package/dist/chunks/{state-9maxscqf.js → workspace-9maxscqf.js} +0 -0
- /package/dist/chunks/{state-9sdtsapf.js → workspace-9sdtsapf.js} +0 -0
- /package/dist/chunks/{state-a02svayp.js → workspace-a02svayp.js} +0 -0
- /package/dist/chunks/{state-a83yvq99.js → workspace-a83yvq99.js} +0 -0
- /package/dist/chunks/{state-ayevdmef.js → workspace-ayevdmef.js} +0 -0
- /package/dist/chunks/{state-b02txbh8.js → workspace-b02txbh8.js} +0 -0
- /package/dist/chunks/{state-bbqs2y60.js → workspace-bbqs2y60.js} +0 -0
- /package/dist/chunks/{state-bjwj8hwv.js → workspace-bjwj8hwv.js} +0 -0
- /package/dist/chunks/{state-brsh5f65.js → workspace-brsh5f65.js} +0 -0
- /package/dist/chunks/{state-bxdhjb3y.js → workspace-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{state-c77ad0vh.js → workspace-c77ad0vh.js} +0 -0
- /package/dist/chunks/{state-cm67rqy2.js → workspace-cm67rqy2.js} +0 -0
- /package/dist/chunks/{state-df3v2q6j.js → workspace-df3v2q6j.js} +0 -0
- /package/dist/chunks/{state-dhcq6c44.js → workspace-dhcq6c44.js} +0 -0
- /package/dist/chunks/{state-dht5baf0.js → workspace-dht5baf0.js} +0 -0
- /package/dist/chunks/{state-dkmkay92.js → workspace-dkmkay92.js} +0 -0
- /package/dist/chunks/{state-ehj9csmv.js → workspace-ehj9csmv.js} +0 -0
- /package/dist/chunks/{state-em6xpscd.js → workspace-em6xpscd.js} +0 -0
- /package/dist/chunks/{state-emmqknsm.js → workspace-emmqknsm.js} +0 -0
- /package/dist/chunks/{state-ezs3tagn.js → workspace-ezs3tagn.js} +0 -0
- /package/dist/chunks/{state-f14r7hfz.js → workspace-f14r7hfz.js} +0 -0
- /package/dist/chunks/{state-f1jj19e8.js → workspace-f1jj19e8.js} +0 -0
- /package/dist/chunks/{state-f4cp4g4a.js → workspace-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{state-faypg4r1.js → workspace-faypg4r1.js} +0 -0
- /package/dist/chunks/{state-fg7fz4q3.js → workspace-fg7fz4q3.js} +0 -0
- /package/dist/chunks/{state-fgbfdq62.js → workspace-fgbfdq62.js} +0 -0
- /package/dist/chunks/{state-g23fad86.js → workspace-g23fad86.js} +0 -0
- /package/dist/chunks/{state-gd5xeqc2.js → workspace-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{state-ghm4673n.js → workspace-ghm4673n.js} +0 -0
- /package/dist/chunks/{state-ghwjy7my.js → workspace-ghwjy7my.js} +0 -0
- /package/dist/chunks/{state-gy500k2r.js → workspace-gy500k2r.js} +0 -0
- /package/dist/chunks/{state-hzeg9cfr.js → workspace-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{state-j07kk359.js → workspace-j07kk359.js} +0 -0
- /package/dist/chunks/{state-j32vdj8r.js → workspace-j32vdj8r.js} +0 -0
- /package/dist/chunks/{state-jqms80b0.js → workspace-jqms80b0.js} +0 -0
- /package/dist/chunks/{state-jve7t217.js → workspace-jve7t217.js} +0 -0
- /package/dist/chunks/{state-k3e42drn.js → workspace-k3e42drn.js} +0 -0
- /package/dist/chunks/{state-k8b45nas.js → workspace-k8b45nas.js} +0 -0
- /package/dist/chunks/{state-kpdbz7gn.js → workspace-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{state-kxy11nzk.js → workspace-kxy11nzk.js} +0 -0
- /package/dist/chunks/{state-kyyqvx4s.js → workspace-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{state-m8cbvarh.js → workspace-m8cbvarh.js} +0 -0
- /package/dist/chunks/{state-ma60vzgv.js → workspace-ma60vzgv.js} +0 -0
- /package/dist/chunks/{state-n3m50c2t.js → workspace-n3m50c2t.js} +0 -0
- /package/dist/chunks/{state-n6ag8q95.js → workspace-n6ag8q95.js} +0 -0
- /package/dist/chunks/{state-nkm1m8dz.js → workspace-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{state-nsc0c3zb.js → workspace-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{state-qaarhjrp.js → workspace-qaarhjrp.js} +0 -0
- /package/dist/chunks/{state-qc167nrn.js → workspace-qc167nrn.js} +0 -0
- /package/dist/chunks/{state-qp95y4jb.js → workspace-qp95y4jb.js} +0 -0
- /package/dist/chunks/{state-r8f4w671.js → workspace-r8f4w671.js} +0 -0
- /package/dist/chunks/{state-rdfev9jy.js → workspace-rdfev9jy.js} +0 -0
- /package/dist/chunks/{state-rvfvac9x.js → workspace-rvfvac9x.js} +0 -0
- /package/dist/chunks/{state-s7whb9gt.js → workspace-s7whb9gt.js} +0 -0
- /package/dist/chunks/{state-se76j685.js → workspace-se76j685.js} +0 -0
- /package/dist/chunks/{state-sem2g21k.js → workspace-sem2g21k.js} +0 -0
- /package/dist/chunks/{state-sp575ygv.js → workspace-sp575ygv.js} +0 -0
- /package/dist/chunks/{state-tmb1f636.js → workspace-tmb1f636.js} +0 -0
- /package/dist/chunks/{state-ttxf0gsy.js → workspace-ttxf0gsy.js} +0 -0
- /package/dist/chunks/{state-tvmhrvfj.js → workspace-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{state-v2adqbbe.js → workspace-v2adqbbe.js} +0 -0
- /package/dist/chunks/{state-vac9eqd2.js → workspace-vac9eqd2.js} +0 -0
- /package/dist/chunks/{state-wj4sxzqa.js → workspace-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{state-wwntjmk1.js → workspace-wwntjmk1.js} +0 -0
- /package/dist/chunks/{state-wyqjaaa5.js → workspace-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{state-x4q807cx.js → workspace-x4q807cx.js} +0 -0
- /package/dist/chunks/{state-yrqrg4vp.js → workspace-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{state-z47nswr2.js → workspace-z47nswr2.js} +0 -0
- /package/dist/chunks/{state-zsf8rs93.js → workspace-zsf8rs93.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_promise
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workspace-5vcssjzn.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workspace-rvfvac9x.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/module.ts
|
|
9
9
|
var exports_module = {};
|
|
@@ -14,6 +14,7 @@ __export(exports_module, {
|
|
|
14
14
|
import { Npm } from "@opencode-ai/util/npm";
|
|
15
15
|
import { importModule } from "@opencode-ai/util/runtime-import";
|
|
16
16
|
import { Effect, Schema } from "effect";
|
|
17
|
+
import { readdir } from "node:fs/promises";
|
|
17
18
|
import path from "path";
|
|
18
19
|
import { pathToFileURL } from "url";
|
|
19
20
|
var Discovery = Schema.Struct({
|
|
@@ -24,13 +25,11 @@ var Definition = Schema.Struct({
|
|
|
24
25
|
default: Schema.Union([
|
|
25
26
|
Schema.Struct({
|
|
26
27
|
id: Schema.String,
|
|
27
|
-
tui: Schema.optional(Schema.Boolean),
|
|
28
28
|
vcs: Schema.optional(Discovery),
|
|
29
29
|
effect: Schema.declare((input) => typeof input === "function")
|
|
30
30
|
}),
|
|
31
31
|
Schema.Struct({
|
|
32
32
|
id: Schema.String,
|
|
33
|
-
tui: Schema.optional(Schema.Boolean),
|
|
34
33
|
vcs: Schema.optional(Discovery),
|
|
35
34
|
setup: Schema.declare((input) => typeof input === "function")
|
|
36
35
|
})
|
|
@@ -38,7 +37,9 @@ var Definition = Schema.Struct({
|
|
|
38
37
|
});
|
|
39
38
|
var load = Effect.fn("PluginModule.load")(function* (operation) {
|
|
40
39
|
const npm = yield* Npm.Service;
|
|
41
|
-
const
|
|
40
|
+
const local = path.isAbsolute(operation.target);
|
|
41
|
+
const installed = local ? { entrypoint: pathToFileURL(operation.target).href } : yield* npm.add(operation.target, { subpaths: ["server", ""] });
|
|
42
|
+
const entrypoint = installed.entrypoint;
|
|
42
43
|
if (!entrypoint)
|
|
43
44
|
return yield* Effect.fail(new Error(`Plugin entrypoint not found: ${operation.target}`));
|
|
44
45
|
const target = typeof Bun !== "undefined" ? operation.target.replaceAll("\\", "/") : entrypoint;
|
|
@@ -47,14 +48,33 @@ var load = Effect.fn("PluginModule.load")(function* (operation) {
|
|
|
47
48
|
const mod = yield* Effect.promise(() => importModule(source));
|
|
48
49
|
const value = (yield* Schema.decodeUnknownEffect(Definition)(mod)).default;
|
|
49
50
|
const plugin = "effect" in value ? value : exports_promise.fromPromise(value);
|
|
51
|
+
const features = local ? yield* localFeatures(operation.target) : yield* Effect.all({
|
|
52
|
+
tui: npm.resolve(operation.target, { subpaths: ["tui"] }),
|
|
53
|
+
rpc: npm.resolve(operation.target, { subpaths: ["rpc"] })
|
|
54
|
+
}).pipe(Effect.map((resolved) => ({
|
|
55
|
+
...resolved.tui.entrypoint ? { tui: true } : {},
|
|
56
|
+
...resolved.rpc.entrypoint ? { rpc: true } : {}
|
|
57
|
+
})));
|
|
50
58
|
return {
|
|
51
59
|
id: plugin.id,
|
|
52
|
-
|
|
60
|
+
features,
|
|
53
61
|
vcs: plugin.vcs,
|
|
54
62
|
version: JSON.stringify(operation),
|
|
55
63
|
source: path.isAbsolute(operation.target) ? { type: "local", path: operation.target } : { type: "package", package: operation.target },
|
|
56
64
|
effect: (host) => plugin.effect({ ...host, options: operation.options })
|
|
57
65
|
};
|
|
58
66
|
});
|
|
67
|
+
function localFeatures(entrypoint) {
|
|
68
|
+
if (!path.basename(entrypoint).startsWith("index."))
|
|
69
|
+
return Effect.succeed({});
|
|
70
|
+
return Effect.promise(() => readdir(path.dirname(entrypoint), { withFileTypes: true })).pipe(Effect.map((entries) => {
|
|
71
|
+
const names = new Set(entries.filter((entry) => entry.isFile() || entry.isSymbolicLink()).map((entry) => entry.name));
|
|
72
|
+
const has = (name) => ["ts", "tsx", "js", "jsx", "mts", "mjs", "cts", "cjs"].some((extension) => names.has(`${name}.${extension}`));
|
|
73
|
+
return {
|
|
74
|
+
...has("tui") ? { tui: true } : {},
|
|
75
|
+
...has("rpc") ? { rpc: true } : {}
|
|
76
|
+
};
|
|
77
|
+
}));
|
|
78
|
+
}
|
|
59
79
|
|
|
60
80
|
export { load, exports_module };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_environment1 as exports_environment
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workspace-rth9afse.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workspace-rvfvac9x.js";
|
|
7
7
|
|
|
8
8
|
// src/mcp/stdio.ts
|
|
9
9
|
var exports_stdio = {};
|
|
@@ -27,14 +27,12 @@ var make = Effect.fnUntraced(function* (options) {
|
|
|
27
27
|
let startup;
|
|
28
28
|
let closing;
|
|
29
29
|
let trailingBytes = 0;
|
|
30
|
-
const stop =
|
|
31
|
-
|
|
32
|
-
if (exit._tag === "Some")
|
|
33
|
-
return;
|
|
30
|
+
const stop = Effect.fnUntraced(function* (handle) {
|
|
31
|
+
yield* Effect.timeoutOption(handle.exitCode, CLOSE_GRACE).pipe(Effect.ignore);
|
|
34
32
|
const terminated = yield* Effect.timeoutOption(handle.kill({ killSignal: "SIGTERM" }), FORCE_KILL_AFTER);
|
|
35
33
|
if (terminated._tag === "None")
|
|
36
34
|
yield* handle.kill({ killSignal: "SIGKILL" });
|
|
37
|
-
}
|
|
35
|
+
}, Effect.ignore());
|
|
38
36
|
const close = () => closing ??= Effect.runPromise(Effect.gen(function* () {
|
|
39
37
|
state.phase = "closed";
|
|
40
38
|
Queue.endUnsafe(outgoing);
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_context
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workspace-wfdy75zv.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_usage
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workspace-sw84ckhj.js";
|
|
7
7
|
import {
|
|
8
8
|
llmClient
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./workspace-393a352g.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_store
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./workspace-se07g09y.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_history
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./workspace-9kmcw9m3.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionEvent
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./workspace-a83yvq99.js";
|
|
19
19
|
import {
|
|
20
20
|
exports_bus
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./workspace-vkgwd1zr.js";
|
|
22
22
|
import {
|
|
23
23
|
exports_database
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./workspace-gbf8gmfy.js";
|
|
25
25
|
import {
|
|
26
26
|
__export
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./workspace-rvfvac9x.js";
|
|
28
28
|
|
|
29
29
|
// src/session/title.ts
|
|
30
30
|
var exports_title = {};
|
|
@@ -1,24 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workspace-rvfvac9x.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/source-directory.ts
|
|
6
6
|
var exports_source_directory = {};
|
|
7
7
|
__export(exports_source_directory, {
|
|
8
8
|
names: () => names,
|
|
9
|
+
entrypoint: () => entrypoint,
|
|
9
10
|
discover: () => discover,
|
|
10
11
|
PluginSourceDirectory: () => exports_source_directory
|
|
11
12
|
});
|
|
12
13
|
import { FSUtil } from "@opencode-ai/util/fs-util";
|
|
13
|
-
import { Effect, Option
|
|
14
|
+
import { Effect, Option } from "effect";
|
|
14
15
|
import path from "path";
|
|
15
16
|
var names = ["plugin", "plugins"];
|
|
16
|
-
var Package = Schema.Struct({
|
|
17
|
-
exports: Schema.optional(Schema.Unknown),
|
|
18
|
-
module: Schema.optional(Schema.Unknown),
|
|
19
|
-
main: Schema.optional(Schema.Unknown)
|
|
20
|
-
});
|
|
21
|
-
var decodePackage = Schema.decodeUnknownOption(Package);
|
|
22
17
|
var discover = Effect.fn("PluginSourceDirectory.discover")(function* (fs, directory) {
|
|
23
18
|
const children = (yield* Effect.forEach(names, (source) => fs.readDirectoryEntries(path.join(directory, source)).pipe(Effect.orElseSucceed(() => []), Effect.map((entries) => entries.map((entry) => ({ ...entry, target: path.join(directory, source, entry.name) })))))).flat().sort((a, b) => a.target < b.target ? -1 : a.target > b.target ? 1 : 0);
|
|
24
19
|
const targets = yield* Effect.forEach(children, (entry) => Effect.gen(function* () {
|
|
@@ -26,24 +21,22 @@ var discover = Effect.fn("PluginSourceDirectory.discover")(function* (fs, direct
|
|
|
26
21
|
if (entry.type === "file" && source)
|
|
27
22
|
return Option.some(entry.target);
|
|
28
23
|
if (entry.type === "directory")
|
|
29
|
-
return yield*
|
|
24
|
+
return yield* entrypoint(fs, entry.target);
|
|
30
25
|
if (entry.type !== "symlink")
|
|
31
26
|
return Option.none();
|
|
32
27
|
if (source && (yield* fs.isFile(entry.target)))
|
|
33
28
|
return Option.some(entry.target);
|
|
34
29
|
if (yield* fs.isDir(entry.target))
|
|
35
|
-
return yield*
|
|
30
|
+
return yield* entrypoint(fs, entry.target);
|
|
36
31
|
return Option.none();
|
|
37
32
|
}));
|
|
38
33
|
return targets.flatMap(Option.toArray);
|
|
39
34
|
});
|
|
40
|
-
function
|
|
35
|
+
function entrypoint(fs, directory) {
|
|
41
36
|
return Effect.gen(function* () {
|
|
42
37
|
const root = yield* fs.resolve(directory);
|
|
43
|
-
|
|
44
|
-
const configured = Option.isSome(manifest) ? [manifest.value.exports, manifest.value.module, manifest.value.main].filter(Predicate.isString) : [];
|
|
45
|
-
return yield* Effect.findFirst([...configured, "index.ts", "index.js"].filter((entry) => !path.isAbsolute(entry)).map((entry) => path.resolve(directory, entry)).filter((entry) => FSUtil.contains(directory, entry)), (entry) => fs.isFile(entry).pipe(Effect.flatMap((exists) => exists ? fs.resolve(entry).pipe(Effect.map((resolved) => FSUtil.contains(root, resolved))) : Effect.succeed(false))));
|
|
38
|
+
return yield* Effect.findFirst(["index.ts", "index.js"].map((entry) => path.join(directory, entry)), (entry) => fs.isFile(entry).pipe(Effect.flatMap((exists) => exists ? fs.resolve(entry).pipe(Effect.map((resolved) => FSUtil.contains(root, resolved))) : Effect.succeed(false))));
|
|
46
39
|
});
|
|
47
40
|
}
|
|
48
41
|
|
|
49
|
-
export { names, discover, exports_source_directory };
|
|
42
|
+
export { names, discover, entrypoint, exports_source_directory };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_repository
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workspace-y198y2ra.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_git
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workspace-dyj7wa6j.js";
|
|
7
7
|
import {
|
|
8
8
|
AbsolutePath
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./workspace-j07kk359.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./workspace-rvfvac9x.js";
|
|
13
13
|
|
|
14
14
|
// src/repository-cache.ts
|
|
15
15
|
var exports_repository_cache = {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
KVTable
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workspace-wmxdh12w.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_database
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workspace-gbf8gmfy.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./workspace-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/kv.ts
|
|
12
12
|
var exports_kv = {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_permission
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workspace-ekr1z8vx.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_agent
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workspace-xanq1mxd.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./workspace-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/agent.ts
|
|
12
12
|
var exports_agent2 = {};
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import {
|
|
2
|
+
exports_location
|
|
3
|
+
} from "./workspace-ngk06vjf.js";
|
|
4
|
+
import {
|
|
5
|
+
optional,
|
|
6
|
+
statics
|
|
7
|
+
} from "./workspace-j07kk359.js";
|
|
8
|
+
import {
|
|
9
|
+
exports_bus
|
|
10
|
+
} from "./workspace-vkgwd1zr.js";
|
|
11
|
+
import {
|
|
12
|
+
__export
|
|
13
|
+
} from "./workspace-rvfvac9x.js";
|
|
14
|
+
|
|
15
|
+
// src/rpc.ts
|
|
16
|
+
var exports_rpc = {};
|
|
17
|
+
__export(exports_rpc, {
|
|
18
|
+
node: () => node,
|
|
19
|
+
define: () => define,
|
|
20
|
+
Service: () => Service,
|
|
21
|
+
Rpc: () => exports_rpc
|
|
22
|
+
});
|
|
23
|
+
import { define } from "@opencode-ai/schema/rpc";
|
|
24
|
+
import { Event } from "@opencode-ai/schema/event";
|
|
25
|
+
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
26
|
+
import { Context, Effect, JsonSchema, Layer, Schema, SchemaRepresentation, Stream } from "effect";
|
|
27
|
+
class Service extends Context.Service()("@opencode/Rpc") {
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
class DeclaredError extends Error {
|
|
31
|
+
type;
|
|
32
|
+
data;
|
|
33
|
+
constructor(type, message, data) {
|
|
34
|
+
super(message);
|
|
35
|
+
this.type = type;
|
|
36
|
+
this.data = data;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
40
|
+
const bus = yield* exports_bus.Service;
|
|
41
|
+
const location = yield* exports_location.Service;
|
|
42
|
+
const ref = exports_location.Ref.make({ directory: location.directory, workspaceID: location.workspaceID });
|
|
43
|
+
const callContext = {
|
|
44
|
+
error: (type, message, data) => new DeclaredError(type, message, data)
|
|
45
|
+
};
|
|
46
|
+
const registrations = new Map;
|
|
47
|
+
const definitions = new WeakMap;
|
|
48
|
+
const eventsFor = (definition) => {
|
|
49
|
+
const existing = definitions.get(definition);
|
|
50
|
+
if (existing)
|
|
51
|
+
return existing;
|
|
52
|
+
const events = new Map(Object.entries(definition.events).map(([name, event]) => [
|
|
53
|
+
name,
|
|
54
|
+
{ event, definition: eventDefinition(definition, name) }
|
|
55
|
+
]));
|
|
56
|
+
definitions.set(definition, events);
|
|
57
|
+
return events;
|
|
58
|
+
};
|
|
59
|
+
const register = Effect.fn("Rpc.register")(function* (definition, handlers) {
|
|
60
|
+
const entry = { definition, handlers };
|
|
61
|
+
const dispose = Effect.sync(() => {
|
|
62
|
+
const remaining = (registrations.get(definition.id) ?? []).filter((candidate) => candidate !== entry);
|
|
63
|
+
if (remaining.length === 0) {
|
|
64
|
+
registrations.delete(definition.id);
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
registrations.set(definition.id, remaining);
|
|
68
|
+
});
|
|
69
|
+
yield* Effect.acquireRelease(Effect.sync(() => registrations.set(definition.id, [...registrations.get(definition.id) ?? [], entry])), () => dispose);
|
|
70
|
+
const events = eventsFor(definition);
|
|
71
|
+
return {
|
|
72
|
+
dispose,
|
|
73
|
+
events: {
|
|
74
|
+
emit: Effect.fn("Rpc.emit")(function* (...args) {
|
|
75
|
+
const registered = events.get(args[0]);
|
|
76
|
+
if (!registered)
|
|
77
|
+
return yield* Effect.fail(new Error(`Unknown RPC event: ${definition.id}.${args[0]}`));
|
|
78
|
+
const event = registered.event;
|
|
79
|
+
const data = yield* encode(event.schema, args[1]);
|
|
80
|
+
return yield* bus.publish(registered.definition, data, {
|
|
81
|
+
location: exports_location.Ref.make({ directory: ref.directory, workspaceID: ref.workspaceID })
|
|
82
|
+
}).pipe(Effect.asVoid);
|
|
83
|
+
})
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
});
|
|
87
|
+
const call = Effect.fn("Rpc.call")(function* (rpcID, name, input) {
|
|
88
|
+
const entry = registrations.get(rpcID)?.at(-1);
|
|
89
|
+
if (!entry)
|
|
90
|
+
return yield* Effect.fail(failure("rpc.unavailable", `RPC is unavailable: ${rpcID}`));
|
|
91
|
+
if (!Object.hasOwn(entry.definition.methods, name) || !Object.hasOwn(entry.handlers, name))
|
|
92
|
+
return yield* Effect.fail(failure("rpc.method_not_found", `Unknown RPC method: ${rpcID}.${name}`));
|
|
93
|
+
const method = entry.definition.methods[name];
|
|
94
|
+
const handler = entry.handlers[name];
|
|
95
|
+
const parsed = yield* parse(method.input, input).pipe(Effect.mapError((error) => failure("rpc.invalid_input", errorMessage(error, "Invalid RPC input"))));
|
|
96
|
+
const result = yield* Effect.suspend(() => {
|
|
97
|
+
const execution = Reflect.apply(handler, undefined, [parsed, callContext]);
|
|
98
|
+
return execution;
|
|
99
|
+
}).pipe(Effect.catch((error) => encodeError(method, error)));
|
|
100
|
+
return yield* encode(method.output, result).pipe(Effect.mapError((error) => failure("rpc.invalid_output", errorMessage(error, "Invalid RPC output"))));
|
|
101
|
+
});
|
|
102
|
+
const client = (definition) => {
|
|
103
|
+
const events = eventsFor(definition);
|
|
104
|
+
const methods = Object.fromEntries(Object.entries(definition.methods).map(([name, method]) => [
|
|
105
|
+
name,
|
|
106
|
+
(input) => call(definition.id, name, input).pipe(Effect.catch((error) => decodeError(method, error)), Effect.flatMap((value) => read(method.output, value).pipe(Effect.catch((cause) => Effect.die(cause)))))
|
|
107
|
+
]));
|
|
108
|
+
return {
|
|
109
|
+
...methods,
|
|
110
|
+
events: {
|
|
111
|
+
subscribe: (name) => {
|
|
112
|
+
const registered = events.get(name);
|
|
113
|
+
if (!registered)
|
|
114
|
+
return Stream.fail(new Error(`Unknown RPC event: ${definition.id}.${name}`));
|
|
115
|
+
return bus.subscribe(registered.definition).pipe(Stream.provideService(exports_location.Service, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
return Service.of({ register, call, client });
|
|
121
|
+
}));
|
|
122
|
+
var node = makeLocationNode({ service: Service, layer, deps: [exports_bus.node, exports_location.node] });
|
|
123
|
+
var fields = {
|
|
124
|
+
id: Event.ID,
|
|
125
|
+
created: Schema.Finite,
|
|
126
|
+
metadata: optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
127
|
+
location: optional(exports_location.Ref)
|
|
128
|
+
};
|
|
129
|
+
var EventData = Schema.Record(Schema.String, Schema.Unknown);
|
|
130
|
+
var jsonSchemas = new WeakMap;
|
|
131
|
+
function eventType(definition, name) {
|
|
132
|
+
return `rpc.${definition.id}.${name}`;
|
|
133
|
+
}
|
|
134
|
+
function eventDefinition(definition, name) {
|
|
135
|
+
const type = eventType(definition, name);
|
|
136
|
+
const data = EventData;
|
|
137
|
+
return Schema.Struct({ ...fields, type: Schema.Literal(type), data }).pipe(statics(() => ({ type, durability: "ephemeral", durable: undefined, data })));
|
|
138
|
+
}
|
|
139
|
+
function parse(schema, value) {
|
|
140
|
+
if (Schema.isSchema(schema))
|
|
141
|
+
return Schema.decodeUnknownEffect(schema)(value);
|
|
142
|
+
if (isStandardSchema(schema)) {
|
|
143
|
+
return Effect.gen(function* () {
|
|
144
|
+
const parsed = yield* Effect.try({ try: () => schema["~standard"].validate(value), catch: (cause) => cause });
|
|
145
|
+
const result = parsed instanceof Promise ? yield* Effect.tryPromise({ try: () => parsed, catch: (cause) => cause }) : parsed;
|
|
146
|
+
if (result.issues)
|
|
147
|
+
return yield* Effect.fail(new Error(result.issues.map((issue) => issue.message).join(`
|
|
148
|
+
`)));
|
|
149
|
+
return result.value;
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
return Effect.try({
|
|
153
|
+
try: () => {
|
|
154
|
+
const existing = jsonSchemas.get(schema);
|
|
155
|
+
if (existing)
|
|
156
|
+
return existing;
|
|
157
|
+
const codec = Schema.make(SchemaRepresentation.fromJsonSchemaDocument(JsonSchema.fromSchemaDraft2020_12(schema)).ast);
|
|
158
|
+
jsonSchemas.set(schema, codec);
|
|
159
|
+
return codec;
|
|
160
|
+
},
|
|
161
|
+
catch: (cause) => cause
|
|
162
|
+
}).pipe(Effect.flatMap((codec) => Schema.decodeUnknownEffect(codec)(value)));
|
|
163
|
+
}
|
|
164
|
+
function encode(schema, value) {
|
|
165
|
+
return Schema.isSchema(schema) ? Schema.encodeUnknownEffect(schema)(value) : parse(schema, value);
|
|
166
|
+
}
|
|
167
|
+
function encodeError(method, error) {
|
|
168
|
+
if (!(error instanceof DeclaredError))
|
|
169
|
+
return Effect.die(error);
|
|
170
|
+
if (!method.errors || !Object.hasOwn(method.errors, error.type)) {
|
|
171
|
+
return Effect.die(new Error(`Undeclared RPC error: ${error.type}`));
|
|
172
|
+
}
|
|
173
|
+
return encode(method.errors[error.type], error.data).pipe(Effect.catch((cause) => Effect.die(cause)), Effect.flatMap((data) => Effect.fail(failure(error.type, error.message, data))));
|
|
174
|
+
}
|
|
175
|
+
function decodeError(method, error) {
|
|
176
|
+
if (!method.errors || !Object.hasOwn(method.errors, error.type))
|
|
177
|
+
return Effect.fail(error);
|
|
178
|
+
return read(method.errors[error.type], error.data).pipe(Effect.catch((cause) => Effect.die(cause)), Effect.flatMap((data) => Effect.fail(failure(error.type, error.message, data))));
|
|
179
|
+
}
|
|
180
|
+
function failure(type, message, data) {
|
|
181
|
+
return data === undefined ? { type, message } : { type, message, data };
|
|
182
|
+
}
|
|
183
|
+
function errorMessage(error, fallback) {
|
|
184
|
+
if (error instanceof Error)
|
|
185
|
+
return error.message;
|
|
186
|
+
if (typeof error === "string")
|
|
187
|
+
return error;
|
|
188
|
+
return fallback;
|
|
189
|
+
}
|
|
190
|
+
function isStandardSchema(schema) {
|
|
191
|
+
return "~standard" in schema;
|
|
192
|
+
}
|
|
193
|
+
function read(schema, value) {
|
|
194
|
+
return Schema.isSchema(schema) ? Schema.decodeUnknownEffect(schema)(value) : Effect.succeed(value);
|
|
195
|
+
}
|
|
196
|
+
var logicalEvent = Effect.fn("Rpc.logicalEvent")(function* (definition, name, payload, ref) {
|
|
197
|
+
const event = definition.events[name];
|
|
198
|
+
const data = yield* read(event.schema, payload.data);
|
|
199
|
+
return {
|
|
200
|
+
...payload,
|
|
201
|
+
type: eventType(definition, name),
|
|
202
|
+
data,
|
|
203
|
+
location: exports_location.Ref.make({ directory: ref.directory, workspaceID: ref.workspaceID })
|
|
204
|
+
};
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
export { Service, node, exports_rpc, define };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_watcher
|
|
3
|
-
} from "./
|
|
4
|
-
import {
|
|
5
|
-
exports_normalize
|
|
6
|
-
} from "./state-qyv2f15b.js";
|
|
3
|
+
} from "./workspace-ns0sdez7.js";
|
|
7
4
|
import {
|
|
8
5
|
exports_variable
|
|
9
|
-
} from "./
|
|
6
|
+
} from "./workspace-d2gk9vpf.js";
|
|
10
7
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
8
|
+
exports_normalize
|
|
9
|
+
} from "./workspace-9mp6v1qd.js";
|
|
13
10
|
import {
|
|
14
11
|
exports_wellknown
|
|
15
|
-
} from "./
|
|
12
|
+
} from "./workspace-90xaz2d8.js";
|
|
13
|
+
import {
|
|
14
|
+
exports_credential
|
|
15
|
+
} from "./workspace-geyszmd1.js";
|
|
16
16
|
import {
|
|
17
17
|
exports_location
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./workspace-ngk06vjf.js";
|
|
19
19
|
import {
|
|
20
20
|
AbsolutePath
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./workspace-j07kk359.js";
|
|
22
22
|
import {
|
|
23
23
|
exports_bus
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./workspace-vkgwd1zr.js";
|
|
25
25
|
import {
|
|
26
26
|
__export
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./workspace-rvfvac9x.js";
|
|
28
28
|
|
|
29
29
|
// src/config.ts
|
|
30
30
|
var exports_config = {};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_markdown
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workspace-7wcmqxrc.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_config
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workspace-m4a2h2aa.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_select
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./workspace-bbhffenw.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_location
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./workspace-ngk06vjf.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./workspace-rvfvac9x.js";
|
|
16
16
|
|
|
17
17
|
// src/config/plugin/command.ts
|
|
18
18
|
var exports_command = {};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_supervisor_service
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workspace-s33fw6zm.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
exports_image
|
|
6
|
+
} from "./workspace-kb2ag3w7.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_skill
|
|
9
|
-
} from "./
|
|
10
|
-
import {
|
|
11
|
-
exports_image
|
|
12
|
-
} from "./state-fp623900.js";
|
|
9
|
+
} from "./workspace-71he9c34.js";
|
|
13
10
|
import {
|
|
14
11
|
AttachmentError,
|
|
15
12
|
SkillNotFoundError
|
|
16
|
-
} from "./
|
|
13
|
+
} from "./workspace-cgqn2mrm.js";
|
|
14
|
+
import {
|
|
15
|
+
exports_mime
|
|
16
|
+
} from "./workspace-dhphtf1x.js";
|
|
17
17
|
import {
|
|
18
18
|
exports_hooks
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./workspace-v2wshkax.js";
|
|
20
20
|
import {
|
|
21
21
|
__export
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./workspace-rvfvac9x.js";
|
|
23
23
|
|
|
24
24
|
// src/session/prompt.ts
|
|
25
25
|
var exports_prompt = {};
|