@opencode-ai/core 0.0.0-beta-18593 → 0.0.0-beta-18684
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/{persistent-pty-02dbfq60.js → state-02dbfq60.js} +1 -1
- package/dist/chunks/{persistent-pty-h40g2pf4.js → state-0cg1xda9.js} +5 -5
- package/dist/chunks/{persistent-pty-0gcqkg3x.js → state-0gcqkg3x.js} +2 -2
- package/dist/chunks/{persistent-pty-0kvmztkf.js → state-0kvmztkf.js} +1 -1
- package/dist/chunks/{persistent-pty-z3cp4eqm.js → state-0v1esw26.js} +20 -22
- package/dist/chunks/{persistent-pty-10p29vm9.js → state-10p29vm9.js} +1 -1
- package/dist/chunks/{persistent-pty-15hpbjb6.js → state-15hpbjb6.js} +1 -1
- package/dist/chunks/{persistent-pty-18pv8fg3.js → state-18pv8fg3.js} +2 -2
- package/dist/chunks/{persistent-pty-vyrk4dbp.js → state-1aq7gkhy.js} +14 -14
- package/dist/chunks/{persistent-pty-fck3954k.js → state-1b14nrwf.js} +7 -7
- package/dist/chunks/{persistent-pty-264e1nfp.js → state-264e1nfp.js} +2 -2
- package/dist/chunks/state-27ykzq5n.js +203 -0
- package/dist/chunks/{persistent-pty-2wsc5t7f.js → state-297h3553.js} +3 -5
- package/dist/chunks/{persistent-pty-b9k0650j.js → state-2a5pw7n9.js} +3 -3
- package/dist/chunks/{persistent-pty-68wbtxd0.js → state-2b3pkve8.js} +154 -154
- package/dist/chunks/{persistent-pty-2m0hgr65.js → state-2m0hgr65.js} +1 -1
- package/dist/chunks/{persistent-pty-ke19p6qk.js → state-2mrfsm54.js} +3 -3
- package/dist/chunks/{persistent-pty-2nmyybe0.js → state-2nmyybe0.js} +1 -1
- package/dist/chunks/state-2pd1mgzx.js +95 -0
- package/dist/chunks/{persistent-pty-2wds5nk3.js → state-2wds5nk3.js} +1 -1
- package/dist/chunks/{persistent-pty-22h5xaqn.js → state-2ygtazh9.js} +3 -3
- package/dist/chunks/{persistent-pty-fbnkj2ks.js → state-330v609d.js} +8 -8
- package/dist/chunks/{persistent-pty-12pms3sx.js → state-36dfjbwk.js} +5 -5
- package/dist/chunks/{persistent-pty-393a352g.js → state-393a352g.js} +2 -2
- package/dist/chunks/{persistent-pty-85s0s238.js → state-3atnf4k9.js} +3 -3
- package/dist/chunks/{persistent-pty-b11hynfv.js → state-3feq69af.js} +113 -25
- package/dist/chunks/{persistent-pty-3g8vftxb.js → state-3g8vftxb.js} +2 -2
- package/dist/chunks/{persistent-pty-jm9yfqhv.js → state-3qmndtx9.js} +2 -2
- package/dist/chunks/{persistent-pty-3qv8nf0b.js → state-3qv8nf0b.js} +1 -1
- package/dist/chunks/{persistent-pty-3thh6229.js → state-3thh6229.js} +2 -2
- package/dist/chunks/{persistent-pty-jn3nfbk7.js → state-3yz9d04b.js} +2 -2
- package/dist/chunks/{persistent-pty-7khw64yh.js → state-41qzzbpz.js} +3 -2
- package/dist/chunks/{persistent-pty-mctnftah.js → state-442jakqw.js} +4 -4
- package/dist/chunks/{persistent-pty-4szn0afa.js → state-48kmwd7y.js} +14 -10
- package/dist/chunks/{persistent-pty-ww589d89.js → state-4n623fxr.js} +4 -4
- package/dist/chunks/{persistent-pty-mjkw59em.js → state-4twq59qz.js} +8 -8
- package/dist/chunks/{persistent-pty-ngph9rhx.js → state-4vn652hh.js} +96 -62
- package/dist/chunks/{persistent-pty-3x0b9mtx.js → state-4xcc4pxn.js} +8 -20
- package/dist/chunks/{persistent-pty-4zzdwbaz.js → state-4zzdwbaz.js} +2 -2
- package/dist/chunks/{persistent-pty-50jxp3hw.js → state-50jxp3hw.js} +1 -1
- package/dist/chunks/{persistent-pty-q22ck3r9.js → state-546qm8gr.js} +9 -9
- package/dist/chunks/{persistent-pty-57ej80dx.js → state-57ej80dx.js} +2 -2
- package/dist/chunks/{persistent-pty-rywejs85.js → state-57sfr108.js} +8 -8
- package/dist/chunks/{persistent-pty-57tzwnz4.js → state-57tzwnz4.js} +1 -1
- package/dist/chunks/{persistent-pty-58xdvehb.js → state-58xdvehb.js} +1 -1
- package/dist/chunks/{persistent-pty-a0ys31qc.js → state-5br90a8p.js} +13 -13
- package/dist/chunks/{persistent-pty-q3p77hqf.js → state-5efnjspb.js} +5 -5
- package/dist/chunks/{persistent-pty-5fe026tx.js → state-5fe026tx.js} +3 -3
- package/dist/chunks/{persistent-pty-0dfzjmdz.js → state-5hbk2f5z.js} +25 -25
- package/dist/chunks/{persistent-pty-5rs65q6p.js → state-5rs65q6p.js} +1 -1
- package/dist/chunks/{persistent-pty-jmntmgq9.js → state-5t7q56hh.js} +15 -15
- package/dist/chunks/{persistent-pty-vjsse407.js → state-5th3bkhh.js} +2 -2
- package/dist/chunks/{persistent-pty-5vcssjzn.js → state-5vcssjzn.js} +1 -1
- package/dist/chunks/{persistent-pty-6272rtjg.js → state-6272rtjg.js} +1 -1
- package/dist/chunks/{persistent-pty-vqha1kn3.js → state-62gc4hyq.js} +10 -10
- package/dist/chunks/{persistent-pty-5b7b3wgr.js → state-6hrx3qpt.js} +6 -6
- package/dist/chunks/{persistent-pty-p91cgptf.js → state-6kt4mxs4.js} +10 -10
- package/dist/chunks/{persistent-pty-6ky7rqk7.js → state-6ky7rqk7.js} +1 -1
- package/dist/chunks/{persistent-pty-yx19m5fk.js → state-6m6jxvnj.js} +27 -35
- package/dist/chunks/{persistent-pty-rjhyt7an.js → state-6vv9vvfs.js} +10 -10
- package/dist/chunks/{persistent-pty-6wkzvma0.js → state-6wkzvma0.js} +2 -2
- package/dist/chunks/{persistent-pty-ckw7ggwg.js → state-6xryfvfs.js} +16 -22
- package/dist/chunks/{persistent-pty-hs1p9dz7.js → state-73zfmg2m.js} +8 -8
- package/dist/chunks/{persistent-pty-xkdg511d.js → state-74v4zq76.js} +3 -3
- package/dist/chunks/{persistent-pty-f7q7a28y.js → state-7ccgh94t.js} +6 -6
- package/dist/chunks/{persistent-pty-wa3apvnh.js → state-7e0e6g4b.js} +6 -6
- package/dist/chunks/{persistent-pty-7mrpdsq5.js → state-7mrpdsq5.js} +1 -1
- package/dist/chunks/{persistent-pty-yd381zvh.js → state-7rgfq7cg.js} +12 -12
- package/dist/chunks/{persistent-pty-7wcmqxrc.js → state-7wcmqxrc.js} +1 -1
- package/dist/chunks/{persistent-pty-chdf1j2d.js → state-7xfxj81h.js} +4 -4
- package/dist/chunks/{persistent-pty-cznxnepa.js → state-7yxdgcdg.js} +47 -41
- package/dist/chunks/{persistent-pty-83ba1yz6.js → state-83ba1yz6.js} +2 -2
- package/dist/chunks/{persistent-pty-8a4hfbqs.js → state-8a4hfbqs.js} +4 -4
- package/dist/chunks/{persistent-pty-6d0q94xv.js → state-8br4d03d.js} +7 -7
- package/dist/chunks/{persistent-pty-xqzpjgmh.js → state-8ee4ayyt.js} +9 -9
- package/dist/chunks/{persistent-pty-b1rr41z2.js → state-8gggym7s.js} +13 -12
- package/dist/chunks/{persistent-pty-8pngjawd.js → state-8pngjawd.js} +2 -2
- package/dist/chunks/{persistent-pty-jrzh7nr2.js → state-8q7v1yfa.js} +4 -4
- package/dist/chunks/{persistent-pty-z6p4m7fm.js → state-8qrx9cj0.js} +35 -37
- package/dist/chunks/{persistent-pty-ey12fzze.js → state-8y3819y8.js} +3 -3
- package/dist/chunks/{persistent-pty-nt76vjs4.js → state-8ya4n8zg.js} +9 -12
- package/dist/chunks/{persistent-pty-w4aa5eza.js → state-91jv2dwm.js} +9 -9
- package/dist/chunks/{persistent-pty-dmnn2ttb.js → state-9cb4yhpj.js} +17 -12
- package/dist/chunks/{persistent-pty-9f0rnpkn.js → state-9f0rnpkn.js} +1 -1
- package/dist/chunks/{persistent-pty-9507whzk.js → state-a2jfr9gs.js} +3 -3
- package/dist/chunks/state-a7zp47hx.js +31 -0
- package/dist/chunks/{persistent-pty-mdbd9v7n.js → state-a9rzcc94.js} +13 -11
- package/dist/chunks/{persistent-pty-we6kp80b.js → state-ad3fd695.js} +93 -85
- package/dist/chunks/{persistent-pty-g2tg9rrx.js → state-af29esbf.js} +1 -1
- package/dist/chunks/{persistent-pty-tg194hwa.js → state-am8nd5ct.js} +4 -4
- package/dist/chunks/{persistent-pty-g01v88ve.js → state-amkn3mrf.js} +11 -11
- package/dist/chunks/{persistent-pty-6nthn2wf.js → state-amtptj9f.js} +10 -8
- package/dist/chunks/{persistent-pty-vh1dz6e7.js → state-aq3jmta4.js} +10 -10
- package/dist/chunks/{persistent-pty-6dfpv9a6.js → state-avxxwfmz.js} +3 -3
- package/dist/chunks/{persistent-pty-awg5d31a.js → state-awg5d31a.js} +1 -1
- package/dist/chunks/{persistent-pty-pp6dntfs.js → state-az57h3s3.js} +9 -14
- package/dist/chunks/{persistent-pty-bbhffenw.js → state-bbhffenw.js} +3 -3
- package/dist/chunks/{persistent-pty-bh1wr8rq.js → state-bh1wr8rq.js} +2 -2
- package/dist/chunks/{persistent-pty-caycsp33.js → state-bktc4s3t.js} +2 -2
- package/dist/chunks/{persistent-pty-r5b5j3z1.js → state-bsjatayh.js} +11 -11
- package/dist/chunks/{persistent-pty-byab506k.js → state-byab506k.js} +1 -1
- package/dist/chunks/{persistent-pty-c4wcb9vc.js → state-c4wcb9vc.js} +2 -2
- package/dist/chunks/{persistent-pty-c8ya26sa.js → state-c8ya26sa.js} +2 -2
- package/dist/chunks/{persistent-pty-hggmzd1z.js → state-cbp56nj8.js} +11 -11
- package/dist/chunks/state-cgqn2mrm.js +147 -0
- package/dist/chunks/{persistent-pty-8dqs26x1.js → state-cgy4zpa6.js} +96 -98
- package/dist/chunks/{persistent-pty-8n5xz4y2.js → state-cnsekzdm.js} +4 -4
- package/dist/chunks/{persistent-pty-4fpv6vze.js → state-cp8v16sk.js} +7 -7
- package/dist/chunks/{persistent-pty-37ng30jt.js → state-cpqd33tw.js} +8 -11
- package/dist/chunks/state-cr7tbps7.js +34 -0
- package/dist/chunks/{persistent-pty-a7xc44k8.js → state-cynvptsh.js} +4 -4
- package/dist/chunks/{persistent-pty-d2gk9vpf.js → state-d2gk9vpf.js} +2 -2
- package/dist/chunks/{persistent-pty-d4h7vwhh.js → state-d4h7vwhh.js} +2 -2
- package/dist/chunks/{persistent-pty-aj48n7zh.js → state-d4zkabyv.js} +3 -3
- package/dist/chunks/{persistent-pty-h7dqnnw7.js → state-ddkxdmhk.js} +64 -15
- package/dist/chunks/{persistent-pty-dhphtf1x.js → state-dhphtf1x.js} +1 -1
- package/dist/chunks/{persistent-pty-68ypegzg.js → state-dhvv2dke.js} +3 -3
- package/dist/chunks/{persistent-pty-8a0sxteh.js → state-dstxbc7s.js} +7 -7
- package/dist/chunks/{persistent-pty-n8twstac.js → state-dx3ash2a.js} +20 -19
- package/dist/chunks/{persistent-pty-kt491qp2.js → state-dyj7wa6j.js} +14 -14
- package/dist/chunks/{persistent-pty-e1z9a0ts.js → state-e1z9a0ts.js} +2 -2
- package/dist/chunks/{persistent-pty-shjty0r5.js → state-ebnnd043.js} +26 -28
- package/dist/chunks/{persistent-pty-ec8vrfw5.js → state-ec8vrfw5.js} +1 -1
- package/dist/chunks/{persistent-pty-3mn74f4q.js → state-efb59s13.js} +32 -34
- package/dist/chunks/{persistent-pty-enpg66yn.js → state-enpg66yn.js} +1 -1
- package/dist/chunks/{persistent-pty-ep35cpen.js → state-ep35cpen.js} +1 -1
- package/dist/chunks/{persistent-pty-b4gc6pz2.js → state-epxhfqb6.js} +41 -40
- package/dist/chunks/state-etvrgfqj.js +74 -0
- package/dist/chunks/{persistent-pty-f9wt0tjw.js → state-f9wt0tjw.js} +2 -2
- package/dist/chunks/{persistent-pty-31t50p8f.js → state-fd8j0005.js} +35 -12
- package/dist/chunks/{persistent-pty-fgyjabww.js → state-fgyjabww.js} +2 -2
- package/dist/chunks/{persistent-pty-fm3b2wbt.js → state-fm3b2wbt.js} +2 -2
- package/dist/chunks/{persistent-pty-9kqpqjvx.js → state-fp623900.js} +2 -2
- package/dist/chunks/{persistent-pty-5cdnkd94.js → state-fyaxe1pd.js} +4 -6
- package/dist/chunks/{persistent-pty-a9vdgkgd.js → state-g23fad86.js} +2 -0
- package/dist/chunks/{persistent-pty-75h1hfe2.js → state-g5tvq2z7.js} +3 -3
- package/dist/chunks/{persistent-pty-gb1z7yet.js → state-gb1z7yet.js} +2 -2
- package/dist/chunks/{persistent-pty-gcay93cp.js → state-gcay93cp.js} +1 -1
- package/dist/chunks/{persistent-pty-gd2xppx8.js → state-gd2xppx8.js} +1 -1
- package/dist/chunks/state-gpxba9vf.js +120 -0
- package/dist/chunks/{persistent-pty-b7tctcvf.js → state-grxebm7t.js} +3 -3
- package/dist/chunks/{persistent-pty-kxet89mv.js → state-gysjbt8f.js} +3 -3
- package/dist/chunks/{persistent-pty-h12kt9pa.js → state-h12kt9pa.js} +2 -2
- package/dist/chunks/{persistent-pty-4s2xwh5d.js → state-h5wnyjzw.js} +4 -21
- package/dist/chunks/{persistent-pty-0tya1wfq.js → state-h8499ys5.js} +3 -3
- package/dist/chunks/{persistent-pty-h94zdhz8.js → state-h94zdhz8.js} +2 -2
- package/dist/chunks/{persistent-pty-tcptxgyq.js → state-hgr9y616.js} +1 -3
- package/dist/chunks/{persistent-pty-t4x64zgs.js → state-hjcbr714.js} +12 -4
- package/dist/chunks/{persistent-pty-hp6rpdnc.js → state-hp6rpdnc.js} +1 -1
- package/dist/chunks/{persistent-pty-ext14ctb.js → state-hptxbmcw.js} +48 -32
- package/dist/chunks/{persistent-pty-0687t5rp.js → state-hxcd35r2.js} +6 -6
- package/dist/chunks/{persistent-pty-zxcy6vhn.js → state-j0feex7e.js} +2 -2
- package/dist/chunks/{persistent-pty-krzvywyt.js → state-j0sncrp4.js} +5 -5
- package/dist/chunks/{persistent-pty-t0msbthe.js → state-j281xcgt.js} +3 -3
- package/dist/chunks/{persistent-pty-7hq60rpc.js → state-j29rhpt4.js} +10 -10
- package/dist/chunks/{persistent-pty-eeta29b7.js → state-k828h0dz.js} +4 -4
- package/dist/chunks/{persistent-pty-kg1345f7.js → state-kg1345f7.js} +1 -1
- package/dist/chunks/{persistent-pty-kp1t5rcy.js → state-kp1t5rcy.js} +1 -1
- package/dist/chunks/{persistent-pty-krsqcmnj.js → state-krsqcmnj.js} +1 -1
- package/dist/chunks/{persistent-pty-tayw3q5q.js → state-kse1g3vm.js} +79 -83
- package/dist/chunks/{persistent-pty-rttzjz69.js → state-m0t583rx.js} +2 -2
- package/dist/chunks/{persistent-pty-m55whf0h.js → state-m55whf0h.js} +2 -2
- package/dist/chunks/{persistent-pty-edmk8q4v.js → state-mdr0b99r.js} +8 -5
- package/dist/chunks/{persistent-pty-mf0hyk7z.js → state-mf0hyk7z.js} +1 -1
- package/dist/chunks/{persistent-pty-513bkrxw.js → state-mg2nmqys.js} +3 -3
- package/dist/chunks/{persistent-pty-w6dbrh59.js → state-mhk3rrcb.js} +7 -7
- package/dist/chunks/{persistent-pty-mnb85w6b.js → state-mnb85w6b.js} +2 -2
- package/dist/chunks/{persistent-pty-bysvf6ep.js → state-mwvdpwcp.js} +38 -44
- package/dist/chunks/{persistent-pty-mxjff6xk.js → state-mxjff6xk.js} +4 -4
- package/dist/chunks/{persistent-pty-mxvw03gv.js → state-mxvw03gv.js} +1 -1
- package/dist/chunks/{persistent-pty-ybp6xw39.js → state-myj58n64.js} +7 -7
- package/dist/chunks/{persistent-pty-854jnr3z.js → state-n3j6ek0z.js} +7 -7
- package/dist/chunks/{persistent-pty-d2k1eqgv.js → state-n4fxzf0c.js} +6 -6
- package/dist/chunks/{persistent-pty-hg1dj728.js → state-n7nsrdbk.js} +3 -3
- package/dist/chunks/{persistent-pty-3xa942qf.js → state-nf920z1m.js} +8 -8
- package/dist/chunks/{persistent-pty-2knkewgs.js → state-ngz3v23c.js} +3 -3
- package/dist/chunks/{persistent-pty-rz6kjcfr.js → state-np2sgr2t.js} +7 -7
- package/dist/chunks/{persistent-pty-nr76rjj3.js → state-nr76rjj3.js} +2 -2
- package/dist/chunks/{persistent-pty-ns0sdez7.js → state-ns0sdez7.js} +3 -3
- package/dist/chunks/{persistent-pty-jp7a1crg.js → state-nsb760q1.js} +6 -6
- package/dist/chunks/{persistent-pty-tpzhmg20.js → state-ny5bre0m.js} +6 -6
- package/dist/chunks/{persistent-pty-nzrjycs5.js → state-nzrjycs5.js} +1 -1
- package/dist/chunks/{persistent-pty-yq3dvva9.js → state-p7bctnjr.js} +4 -4
- package/dist/chunks/{persistent-pty-q6qnq55y.js → state-p9c8s57s.js} +3 -3
- package/dist/chunks/{persistent-pty-ayrkq19e.js → state-pbrq9pmc.js} +104 -78
- package/dist/chunks/{persistent-pty-pq4b4pqk.js → state-pq4b4pqk.js} +2 -2
- package/dist/chunks/{persistent-pty-83vcrt0q.js → state-pq4efbwz.js} +9 -9
- package/dist/chunks/{persistent-pty-q606pcse.js → state-q606pcse.js} +3 -3
- package/dist/chunks/{persistent-pty-qe0d689s.js → state-qe0d689s.js} +2 -2
- package/dist/chunks/{persistent-pty-318s80v9.js → state-qjfz0d3t.js} +4 -4
- package/dist/chunks/{persistent-pty-02s8hgfb.js → state-qnk6x8hc.js} +5 -5
- package/dist/chunks/{persistent-pty-d88p9jy9.js → state-qph0wk53.js} +2 -2
- package/dist/chunks/{persistent-pty-j39d0gcp.js → state-qyv2f15b.js} +19 -19
- package/dist/chunks/state-qzp632xx.js +483 -0
- package/dist/chunks/{persistent-pty-r13w8t0w.js → state-r13w8t0w.js} +2 -2
- package/dist/chunks/{persistent-pty-r3k9abhd.js → state-r3k9abhd.js} +2 -2
- package/dist/chunks/{persistent-pty-r9d3d23r.js → state-r9d3d23r.js} +1 -1
- package/dist/chunks/{persistent-pty-rahat93a.js → state-rahat93a.js} +1 -1
- package/dist/chunks/{persistent-pty-rbnp2c85.js → state-rbnp2c85.js} +3 -3
- package/dist/chunks/{persistent-pty-aj1419k0.js → state-rf120rew.js} +4 -4
- package/dist/chunks/{persistent-pty-j8t12rx3.js → state-rg042c41.js} +5 -5
- package/dist/chunks/{persistent-pty-7f6z5n6f.js → state-rg5dm0vs.js} +6 -8
- package/dist/chunks/{persistent-pty-bm9ah9hr.js → state-rjawwthv.js} +5 -5
- package/dist/chunks/{persistent-pty-8hsta5jz.js → state-rjnf462d.js} +91 -91
- package/dist/chunks/{persistent-pty-a25nnbkb.js → state-rrqrf7hs.js} +14 -14
- package/dist/chunks/state-rw00p5qk.js +330 -0
- package/dist/chunks/{persistent-pty-s2kjqxd3.js → state-s2kjqxd3.js} +1 -1
- package/dist/chunks/{persistent-pty-s33fw6zm.js → state-s33fw6zm.js} +1 -1
- package/dist/chunks/{persistent-pty-smpeg8c9.js → state-smpeg8c9.js} +2 -2
- package/dist/chunks/{persistent-pty-sw84ckhj.js → state-sw84ckhj.js} +1 -1
- package/dist/chunks/{persistent-pty-m6kd9m0n.js → state-sw91z7ka.js} +5 -5
- package/dist/chunks/{persistent-pty-jmn1sgkw.js → state-sxns5my2.js} +5 -5
- package/dist/chunks/{persistent-pty-9xg84z6j.js → state-sz7acswn.js} +4 -4
- package/dist/chunks/{persistent-pty-t14kykx1.js → state-t14kykx1.js} +1 -1
- package/dist/chunks/{persistent-pty-76wzch5c.js → state-t4jyzchx.js} +35 -35
- package/dist/chunks/{persistent-pty-hjndjhyq.js → state-t77pcxaw.js} +3 -3
- package/dist/chunks/{persistent-pty-zggp0jtk.js → state-tcxjymvf.js} +61 -61
- package/dist/chunks/{persistent-pty-4vx29khk.js → state-temtg8dy.js} +7 -7
- package/dist/chunks/{persistent-pty-bk1nj3vy.js → state-tfd8n8cn.js} +7 -7
- package/dist/chunks/{persistent-pty-tgbb2ckq.js → state-tgbb2ckq.js} +2 -2
- package/dist/chunks/{persistent-pty-thstd87d.js → state-thstd87d.js} +1 -1
- package/dist/chunks/{persistent-pty-tjrfm0xh.js → state-tjrfm0xh.js} +2 -2
- package/dist/chunks/{persistent-pty-f74fncf5.js → state-tk21pea4.js} +7 -6
- package/dist/chunks/{persistent-pty-y85nmh9b.js → state-v16fefw3.js} +11 -11
- package/dist/chunks/{persistent-pty-v2wshkax.js → state-v2wshkax.js} +1 -1
- package/dist/chunks/{persistent-pty-v80zsxnb.js → state-v80zsxnb.js} +1 -1
- package/dist/chunks/{persistent-pty-v972xay6.js → state-v972xay6.js} +1 -1
- package/dist/chunks/{persistent-pty-v9bfv94f.js → state-v9bfv94f.js} +1 -1
- package/dist/chunks/state-vcw3phwb.js +33 -0
- package/dist/chunks/{persistent-pty-vcwr2vpf.js → state-vcwr2vpf.js} +1 -1
- package/dist/chunks/{persistent-pty-wpak3cn2.js → state-vhxwmcne.js} +5 -7
- package/dist/chunks/{persistent-pty-agy32ytt.js → state-vpac0x8g.js} +5 -5
- package/dist/chunks/{persistent-pty-vqbmgfq1.js → state-vqbmgfq1.js} +3 -3
- package/dist/chunks/{persistent-pty-0xkrc3c3.js → state-vrg9c9q9.js} +4 -4
- package/dist/chunks/{persistent-pty-arfafmgx.js → state-vs78gshx.js} +6 -6
- package/dist/chunks/{persistent-pty-4n5anbj9.js → state-vwj18m7v.js} +3 -3
- package/dist/chunks/{persistent-pty-vz89hfgr.js → state-vz89hfgr.js} +1 -1
- package/dist/chunks/{persistent-pty-q6skr8rp.js → state-wavksq96.js} +8 -8
- package/dist/chunks/{persistent-pty-wbkt8qpj.js → state-wbkt8qpj.js} +1 -1
- package/dist/chunks/{persistent-pty-wmxdh12w.js → state-wmxdh12w.js} +1 -1
- package/dist/chunks/{persistent-pty-wps8gh8n.js → state-wps8gh8n.js} +2 -2
- package/dist/chunks/{persistent-pty-egt387mf.js → state-wzks8mfc.js} +5 -5
- package/dist/chunks/{persistent-pty-x89rah0x.js → state-x89rah0x.js} +1 -1
- package/dist/chunks/{persistent-pty-wr6wwww9.js → state-x9782t8s.js} +9 -9
- package/dist/chunks/{persistent-pty-xczfw7dq.js → state-xczfw7dq.js} +1 -1
- package/dist/chunks/{persistent-pty-xgv25zxy.js → state-xgv25zxy.js} +1 -1
- package/dist/chunks/{persistent-pty-xj0xhwdw.js → state-xj0xhwdw.js} +1 -1
- package/dist/chunks/{persistent-pty-wskcpn5r.js → state-xqsjgyve.js} +14 -14
- package/dist/chunks/{persistent-pty-xwftk1fd.js → state-xwftk1fd.js} +2 -2
- package/dist/chunks/{persistent-pty-xxpvz42q.js → state-xxpvz42q.js} +3 -3
- package/dist/chunks/{persistent-pty-y0x38cee.js → state-y0x38cee.js} +1 -1
- package/dist/chunks/{persistent-pty-y198y2ra.js → state-y198y2ra.js} +1 -1
- package/dist/chunks/{persistent-pty-y67x6rf6.js → state-y67x6rf6.js} +1 -1
- package/dist/chunks/{persistent-pty-2kyxeqh2.js → state-y84yndyz.js} +5 -4
- package/dist/chunks/{persistent-pty-twtt8bhh.js → state-y8hfmrbz.js} +6 -8
- package/dist/chunks/{persistent-pty-cqf8rezx.js → state-yh1c5vjh.js} +8 -8
- package/dist/chunks/{persistent-pty-by5251yx.js → state-yhxs0ds9.js} +76 -123
- package/dist/chunks/{persistent-pty-yf0knd5z.js → state-yt02w91s.js} +20 -21
- package/dist/chunks/{persistent-pty-3sj8e5dd.js → state-ywjbnhwf.js} +6 -6
- package/dist/chunks/{persistent-pty-1xq8v1tm.js → state-z2v2g0w5.js} +4 -4
- package/dist/chunks/{persistent-pty-zbqqnp0n.js → state-zbqqnp0n.js} +1 -1
- package/dist/chunks/{persistent-pty-zdkg1k91.js → state-zdkg1k91.js} +1 -1
- package/dist/chunks/{persistent-pty-dssj2s1h.js → state-zmwyjx4d.js} +16 -14
- package/dist/chunks/{persistent-pty-ym92bbkh.js → state-zqpaf5g0.js} +5 -5
- package/dist/chunks/{persistent-pty-fm2xjscy.js → state-zrdgbthy.js} +15 -15
- package/dist/chunks/{persistent-pty-zs1qer6v.js → state-zs1qer6v.js} +2 -2
- package/dist/chunks/{persistent-pty-zxe9jjhn.js → state-zxe9jjhn.js} +2 -2
- package/dist/chunks/{persistent-pty-mankezgy.js → state-zygzxh1b.js} +16 -6
- 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 +3 -3
- package/dist/database/v1-migration.bun.js +171 -174
- package/dist/database/v1-migration.js +2 -2
- package/dist/database/v1-migration.noop.js +1 -1
- package/dist/effect/app-node-builder.js +339 -333
- 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 +313 -309
- 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 +10 -8
- 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 +107 -102
- package/dist/image.js +99 -99
- package/dist/instance.js +338 -332
- package/dist/instruction-discovery.js +72 -72
- package/dist/instructions/builtins.js +85 -86
- 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 +85 -85
- package/dist/location-mutation.js +84 -84
- package/dist/location-service-map.js +84 -84
- package/dist/location-services.js +339 -333
- package/dist/location.js +83 -83
- package/dist/mcp/client.js +97 -93
- 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 -84
- 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 +202 -174
- package/dist/plugin/instance.js +2 -2
- package/dist/plugin/internal.js +307 -302
- 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 -162
- package/dist/plugin/sdk.js +69 -69
- package/dist/plugin/skill.js +133 -133
- package/dist/plugin/source-directory.js +2 -2
- package/dist/plugin/supervisor-service.js +2 -2
- package/dist/plugin/supervisor.js +312 -308
- package/dist/plugin/system-prompt.js +2 -2
- package/dist/plugin/variant.js +3 -4
- package/dist/plugin/vcs/git.js +87 -85
- package/dist/plugin/vcs/hg.js +87 -85
- package/dist/plugin/warming.js +114 -115
- 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 +203 -175
- 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 -70
- 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/schema.js +2 -2
- package/dist/session/compaction.js +118 -118
- package/dist/session/context.js +322 -318
- package/dist/session/environment.js +3 -3
- package/dist/session/error.js +26 -4
- package/dist/session/event.js +2 -2
- package/dist/session/execution/restart.js +201 -183
- package/dist/session/execution.js +122 -122
- package/dist/session/generate-node.js +323 -319
- package/dist/session/generate.js +2 -2
- package/dist/session/history.js +77 -77
- package/dist/session/inbox.js +86 -90
- 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 +320 -0
- package/dist/session/prompt.js +130 -0
- package/dist/session/revert-node.js +320 -0
- package/dist/session/revert.js +100 -95
- package/dist/session/run-coordinator.js +2 -2
- package/dist/session/runner/index.js +84 -84
- package/dist/session/runner/llm.js +328 -324
- 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 +74 -74
- 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 +181 -0
- package/dist/session/sql.js +6 -6
- package/dist/session/stats.js +72 -72
- package/dist/session/store.js +79 -79
- package/dist/session/subagent-completion.js +9 -0
- package/dist/session/system-prompt.js +2 -2
- package/dist/session/title.js +323 -319
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +188 -165
- package/dist/session/usage.js +2 -2
- package/dist/session.js +196 -168
- 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 +19 -0
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +4 -4
- package/dist/shell.js +132 -99
- 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 -190
- package/dist/tool/plugin/skill.js +102 -102
- package/dist/tool/plugin/subagent.js +192 -187
- 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/database/drizzle/effect-sqlite/driver.d.ts +7 -7
- package/dist/types/database/drizzle/sqlite-core/effect/insert.d.ts +0 -1
- package/dist/types/github-copilot/responses/openai-responses-prepare-tools.d.ts +9 -1
- package/dist/types/image/photon.d.ts +2 -7
- package/dist/types/instance.d.ts +2 -2
- package/dist/types/instructions/builtins.d.ts +2 -2
- package/dist/types/location-service-map.d.ts +2 -2
- package/dist/types/mcp/client.d.ts +3 -0
- package/dist/types/mcp/index.d.ts +2 -0
- package/dist/types/persistent-pty/index.d.ts +3 -22
- package/dist/types/plugin/host.d.ts +9 -19
- package/dist/types/plugin/runtime.d.ts +1 -1
- package/dist/types/plugin/variant.d.ts +1 -1
- package/dist/types/project.d.ts +1 -0
- package/dist/types/pty/ticket.d.ts +1 -1
- package/dist/types/session/error.d.ts +115 -0
- package/dist/types/session/execution.d.ts +2 -0
- package/dist/types/session/inbox.d.ts +557 -176
- package/dist/types/session/model-request.d.ts +3 -2
- package/dist/types/session/prompt-node.d.ts +3 -0
- package/dist/types/session/prompt.d.ts +126 -0
- package/dist/types/session/revert-node.d.ts +3 -0
- package/dist/types/session/revert.d.ts +24 -29
- package/dist/types/session/run-coordinator.d.ts +2 -0
- package/dist/types/session/runner/model.d.ts +6 -6
- package/dist/types/session/runner/publish-llm-event.d.ts +7 -5
- package/dist/types/session/runner/retry.d.ts +28 -4
- package/dist/types/session/runner/step.d.ts +21 -17
- package/dist/types/session/runner/to-llm-message.d.ts +1 -1
- package/dist/types/session/session.d.ts +232 -0
- package/dist/types/session/subagent-completion.d.ts +10 -0
- package/dist/types/session.d.ts +14 -141
- package/dist/types/shell/result.d.ts +54 -0
- package/dist/types/shell.d.ts +2 -0
- package/dist/types/skill.d.ts +1 -1
- package/dist/types/vcs.d.ts +12 -4
- 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 +91 -87
- 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/persistent-pty-f01b69za.js +0 -115
- package/dist/chunks/persistent-pty-fb7nfzf2.js +0 -71
- package/dist/chunks/persistent-pty-q1jag6n4.js +0 -924
- package/dist/chunks/persistent-pty-tqf07m3e.js +0 -62
- package/dist/config/file.js +0 -128
- package/dist/types/config/file.d.ts +0 -17
- /package/dist/chunks/{persistent-pty-0cgt0xh2.js → state-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{persistent-pty-0f48qthw.js → state-0f48qthw.js} +0 -0
- /package/dist/chunks/{persistent-pty-0zz82cjq.js → state-0zz82cjq.js} +0 -0
- /package/dist/chunks/{persistent-pty-1fb7bmpf.js → state-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{persistent-pty-1wcz8fvj.js → state-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{persistent-pty-29n7vfk2.js → state-29n7vfk2.js} +0 -0
- /package/dist/chunks/{persistent-pty-2qdx6zz3.js → state-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{persistent-pty-2xb0r1c6.js → state-2xb0r1c6.js} +0 -0
- /package/dist/chunks/{persistent-pty-39ktntah.js → state-39ktntah.js} +0 -0
- /package/dist/chunks/{persistent-pty-3g3rpp2x.js → state-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{persistent-pty-3w3ybtfd.js → state-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{persistent-pty-47ty4mvs.js → state-47ty4mvs.js} +0 -0
- /package/dist/chunks/{persistent-pty-4b2tz2m9.js → state-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{persistent-pty-5a5ch9ts.js → state-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{persistent-pty-5va1yh78.js → state-5va1yh78.js} +0 -0
- /package/dist/chunks/{persistent-pty-61ek4hj9.js → state-61ek4hj9.js} +0 -0
- /package/dist/chunks/{persistent-pty-69qrqpw0.js → state-69qrqpw0.js} +0 -0
- /package/dist/chunks/{persistent-pty-6zqxzw0a.js → state-6zqxzw0a.js} +0 -0
- /package/dist/chunks/{persistent-pty-7n9qwqk4.js → state-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{persistent-pty-8nn8kqcn.js → state-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{persistent-pty-8rpfd2h6.js → state-8rpfd2h6.js} +0 -0
- /package/dist/chunks/{persistent-pty-8sj3ajy5.js → state-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{persistent-pty-8w9tzfz1.js → state-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{persistent-pty-906y0b6d.js → state-906y0b6d.js} +0 -0
- /package/dist/chunks/{persistent-pty-9dct5xhx.js → state-9dct5xhx.js} +0 -0
- /package/dist/chunks/{persistent-pty-9maxscqf.js → state-9maxscqf.js} +0 -0
- /package/dist/chunks/{persistent-pty-9sdtsapf.js → state-9sdtsapf.js} +0 -0
- /package/dist/chunks/{persistent-pty-a02svayp.js → state-a02svayp.js} +0 -0
- /package/dist/chunks/{persistent-pty-a83yvq99.js → state-a83yvq99.js} +0 -0
- /package/dist/chunks/{persistent-pty-ayevdmef.js → state-ayevdmef.js} +0 -0
- /package/dist/chunks/{persistent-pty-b02txbh8.js → state-b02txbh8.js} +0 -0
- /package/dist/chunks/{persistent-pty-bbqs2y60.js → state-bbqs2y60.js} +0 -0
- /package/dist/chunks/{persistent-pty-bjwj8hwv.js → state-bjwj8hwv.js} +0 -0
- /package/dist/chunks/{persistent-pty-brsh5f65.js → state-brsh5f65.js} +0 -0
- /package/dist/chunks/{persistent-pty-bxdhjb3y.js → state-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{persistent-pty-c77ad0vh.js → state-c77ad0vh.js} +0 -0
- /package/dist/chunks/{persistent-pty-cm67rqy2.js → state-cm67rqy2.js} +0 -0
- /package/dist/chunks/{persistent-pty-df3v2q6j.js → state-df3v2q6j.js} +0 -0
- /package/dist/chunks/{persistent-pty-dhcq6c44.js → state-dhcq6c44.js} +0 -0
- /package/dist/chunks/{persistent-pty-dht5baf0.js → state-dht5baf0.js} +0 -0
- /package/dist/chunks/{persistent-pty-dkmkay92.js → state-dkmkay92.js} +0 -0
- /package/dist/chunks/{persistent-pty-ehj9csmv.js → state-ehj9csmv.js} +0 -0
- /package/dist/chunks/{persistent-pty-em6xpscd.js → state-em6xpscd.js} +0 -0
- /package/dist/chunks/{persistent-pty-emmqknsm.js → state-emmqknsm.js} +0 -0
- /package/dist/chunks/{persistent-pty-ezs3tagn.js → state-ezs3tagn.js} +0 -0
- /package/dist/chunks/{persistent-pty-f14r7hfz.js → state-f14r7hfz.js} +0 -0
- /package/dist/chunks/{persistent-pty-f1jj19e8.js → state-f1jj19e8.js} +0 -0
- /package/dist/chunks/{persistent-pty-f4cp4g4a.js → state-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{persistent-pty-faypg4r1.js → state-faypg4r1.js} +0 -0
- /package/dist/chunks/{persistent-pty-fg7fz4q3.js → state-fg7fz4q3.js} +0 -0
- /package/dist/chunks/{persistent-pty-fgbfdq62.js → state-fgbfdq62.js} +0 -0
- /package/dist/chunks/{persistent-pty-gd5xeqc2.js → state-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{persistent-pty-ghm4673n.js → state-ghm4673n.js} +0 -0
- /package/dist/chunks/{persistent-pty-ghwjy7my.js → state-ghwjy7my.js} +0 -0
- /package/dist/chunks/{persistent-pty-gy500k2r.js → state-gy500k2r.js} +0 -0
- /package/dist/chunks/{persistent-pty-hzeg9cfr.js → state-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-j07kk359.js → state-j07kk359.js} +0 -0
- /package/dist/chunks/{persistent-pty-j32vdj8r.js → state-j32vdj8r.js} +0 -0
- /package/dist/chunks/{persistent-pty-jqms80b0.js → state-jqms80b0.js} +0 -0
- /package/dist/chunks/{persistent-pty-jve7t217.js → state-jve7t217.js} +0 -0
- /package/dist/chunks/{persistent-pty-k3e42drn.js → state-k3e42drn.js} +0 -0
- /package/dist/chunks/{persistent-pty-k8b45nas.js → state-k8b45nas.js} +0 -0
- /package/dist/chunks/{persistent-pty-kpdbz7gn.js → state-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{persistent-pty-kxy11nzk.js → state-kxy11nzk.js} +0 -0
- /package/dist/chunks/{persistent-pty-kyyqvx4s.js → state-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{persistent-pty-m8cbvarh.js → state-m8cbvarh.js} +0 -0
- /package/dist/chunks/{persistent-pty-ma60vzgv.js → state-ma60vzgv.js} +0 -0
- /package/dist/chunks/{persistent-pty-n3m50c2t.js → state-n3m50c2t.js} +0 -0
- /package/dist/chunks/{persistent-pty-n6ag8q95.js → state-n6ag8q95.js} +0 -0
- /package/dist/chunks/{persistent-pty-nkm1m8dz.js → state-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{persistent-pty-nsc0c3zb.js → state-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{persistent-pty-qaarhjrp.js → state-qaarhjrp.js} +0 -0
- /package/dist/chunks/{persistent-pty-qc167nrn.js → state-qc167nrn.js} +0 -0
- /package/dist/chunks/{persistent-pty-qp95y4jb.js → state-qp95y4jb.js} +0 -0
- /package/dist/chunks/{persistent-pty-r8f4w671.js → state-r8f4w671.js} +0 -0
- /package/dist/chunks/{persistent-pty-rdfev9jy.js → state-rdfev9jy.js} +0 -0
- /package/dist/chunks/{persistent-pty-rvfvac9x.js → state-rvfvac9x.js} +0 -0
- /package/dist/chunks/{persistent-pty-s7whb9gt.js → state-s7whb9gt.js} +0 -0
- /package/dist/chunks/{persistent-pty-se76j685.js → state-se76j685.js} +0 -0
- /package/dist/chunks/{persistent-pty-sem2g21k.js → state-sem2g21k.js} +0 -0
- /package/dist/chunks/{persistent-pty-sp575ygv.js → state-sp575ygv.js} +0 -0
- /package/dist/chunks/{persistent-pty-tmb1f636.js → state-tmb1f636.js} +0 -0
- /package/dist/chunks/{persistent-pty-ttxf0gsy.js → state-ttxf0gsy.js} +0 -0
- /package/dist/chunks/{persistent-pty-tvmhrvfj.js → state-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{persistent-pty-v2adqbbe.js → state-v2adqbbe.js} +0 -0
- /package/dist/chunks/{persistent-pty-vac9eqd2.js → state-vac9eqd2.js} +0 -0
- /package/dist/chunks/{persistent-pty-wj4sxzqa.js → state-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{persistent-pty-wwntjmk1.js → state-wwntjmk1.js} +0 -0
- /package/dist/chunks/{persistent-pty-wyqjaaa5.js → state-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{persistent-pty-x4q807cx.js → state-x4q807cx.js} +0 -0
- /package/dist/chunks/{persistent-pty-yrqrg4vp.js → state-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{persistent-pty-z47nswr2.js → state-z47nswr2.js} +0 -0
- /package/dist/chunks/{persistent-pty-zsf8rs93.js → state-zsf8rs93.js} +0 -0
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
export * as Session from "./session.js";
|
|
2
|
+
import { DateTime, Effect, Layer, Scope } from "effect";
|
|
3
|
+
import type { Agent } from "@opencode-ai/schema/agent";
|
|
4
|
+
import type { Model } from "@opencode-ai/schema/model";
|
|
5
|
+
import { Event } from "@opencode-ai/schema/event";
|
|
6
|
+
import { Bus } from "../bus.js";
|
|
7
|
+
import { Location } from "../location.js";
|
|
8
|
+
import { PluginSupervisor } from "../plugin/supervisor-service.js";
|
|
9
|
+
import { Shell } from "../shell.js";
|
|
10
|
+
import { BusyError, CompactionConflictError, InboxConflictError, MessageIncompleteError, MessageNotAssistantError, MessageNotFoundError, MessageToolIncompleteError, NotFoundError, PromptConflictError, SyntheticConflictError } from "./error.js";
|
|
11
|
+
import { SessionExecution } from "./execution.js";
|
|
12
|
+
import { SessionInbox } from "./inbox.js";
|
|
13
|
+
import { SessionMessage } from "./message.js";
|
|
14
|
+
import { SessionPrompt } from "./prompt.js";
|
|
15
|
+
import { SessionRevert } from "./revert.js";
|
|
16
|
+
import { SessionSchema } from "./schema.js";
|
|
17
|
+
import { SessionStore } from "./store.js";
|
|
18
|
+
export type Services = PluginSupervisor.Service | SessionPrompt.Service | SessionRevert.Service | Shell.Service;
|
|
19
|
+
type PromptRequest = SessionPrompt.Input & {
|
|
20
|
+
id?: SessionMessage.ID;
|
|
21
|
+
resume?: boolean;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Build once in the host Scope: `const sessions = yield* Session.make(servicesFor)`.
|
|
25
|
+
* Use `sessions.forSession(id)` for handles that share host services and reload current state.
|
|
26
|
+
*/
|
|
27
|
+
export declare const make: (servicesFor: (ref: Location.Ref) => Layer.Layer<Services>) => Effect.Effect<{
|
|
28
|
+
forSession: (sessionID: SessionSchema.ID) => {
|
|
29
|
+
id: string & import("effect/Brand").Brand<"SessionID">;
|
|
30
|
+
get: () => Effect.Effect<SessionSchema.Info, NotFoundError, never>;
|
|
31
|
+
message: (messageID: string & import("effect/Brand").Brand<"Session.Message.ID">) => Effect.Effect<SessionMessage.Info | undefined, never, never>;
|
|
32
|
+
updateMessage: (input: {
|
|
33
|
+
readonly messageID: SessionMessage.ID;
|
|
34
|
+
readonly content: readonly SessionMessage.AssistantContent[];
|
|
35
|
+
}) => Effect.Effect<SessionMessage.Assistant, NotFoundError | MessageNotFoundError | MessageNotAssistantError | MessageIncompleteError | MessageToolIncompleteError | BusyError, never>;
|
|
36
|
+
view: (input: {
|
|
37
|
+
idle: number;
|
|
38
|
+
}) => Effect.Effect<void, NotFoundError, never>;
|
|
39
|
+
rename: (input: {
|
|
40
|
+
title: string;
|
|
41
|
+
}) => Effect.Effect<void, NotFoundError, never>;
|
|
42
|
+
switchAgent: (input: {
|
|
43
|
+
agent: Agent.ID;
|
|
44
|
+
}) => Effect.Effect<void, NotFoundError, never>;
|
|
45
|
+
switchModel: (input: {
|
|
46
|
+
model: Model.Ref;
|
|
47
|
+
}) => Effect.Effect<void, NotFoundError, never>;
|
|
48
|
+
inbox: () => Effect.Effect<({
|
|
49
|
+
readonly type: "user";
|
|
50
|
+
readonly payload: {
|
|
51
|
+
readonly text: string;
|
|
52
|
+
readonly metadata?: {
|
|
53
|
+
readonly [x: string]: unknown;
|
|
54
|
+
} | undefined;
|
|
55
|
+
readonly files?: readonly {
|
|
56
|
+
readonly source: {
|
|
57
|
+
readonly type: "inline";
|
|
58
|
+
} | {
|
|
59
|
+
readonly type: "uri";
|
|
60
|
+
readonly uri: string;
|
|
61
|
+
};
|
|
62
|
+
readonly data: string;
|
|
63
|
+
readonly mime: string;
|
|
64
|
+
readonly name?: string | undefined;
|
|
65
|
+
readonly description?: string | undefined;
|
|
66
|
+
readonly mention?: {
|
|
67
|
+
readonly start: number;
|
|
68
|
+
readonly end: number;
|
|
69
|
+
readonly text: string;
|
|
70
|
+
} | undefined;
|
|
71
|
+
}[] | undefined;
|
|
72
|
+
readonly agents?: readonly {
|
|
73
|
+
readonly name: string;
|
|
74
|
+
readonly mention?: {
|
|
75
|
+
readonly start: number;
|
|
76
|
+
readonly end: number;
|
|
77
|
+
readonly text: string;
|
|
78
|
+
} | undefined;
|
|
79
|
+
}[] | undefined;
|
|
80
|
+
readonly skills?: readonly {
|
|
81
|
+
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
82
|
+
readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
83
|
+
readonly text?: string | undefined;
|
|
84
|
+
readonly mention?: {
|
|
85
|
+
readonly start: number;
|
|
86
|
+
readonly end: number;
|
|
87
|
+
readonly text: string;
|
|
88
|
+
} | undefined;
|
|
89
|
+
}[] | undefined;
|
|
90
|
+
};
|
|
91
|
+
readonly delivery: "steer" | "queue";
|
|
92
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
93
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
94
|
+
readonly timeCreated: DateTime.Utc;
|
|
95
|
+
} | {
|
|
96
|
+
readonly type: "synthetic";
|
|
97
|
+
readonly payload: {
|
|
98
|
+
readonly text: string;
|
|
99
|
+
readonly description?: string | undefined;
|
|
100
|
+
readonly metadata?: {
|
|
101
|
+
readonly [x: string]: unknown;
|
|
102
|
+
} | undefined;
|
|
103
|
+
};
|
|
104
|
+
readonly delivery: "steer" | "queue";
|
|
105
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
106
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
107
|
+
readonly timeCreated: DateTime.Utc;
|
|
108
|
+
} | {
|
|
109
|
+
readonly type: "compaction";
|
|
110
|
+
readonly payload: {};
|
|
111
|
+
readonly delivery: "steer" | "queue";
|
|
112
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
113
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
114
|
+
readonly timeCreated: DateTime.Utc;
|
|
115
|
+
} | {
|
|
116
|
+
readonly type: "move";
|
|
117
|
+
readonly payload: {
|
|
118
|
+
readonly location: {
|
|
119
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
120
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
121
|
+
};
|
|
122
|
+
readonly projectID: string & import("effect/Brand").Brand<"Project.ID">;
|
|
123
|
+
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
124
|
+
};
|
|
125
|
+
readonly delivery: "steer" | "queue";
|
|
126
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
127
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
128
|
+
readonly timeCreated: DateTime.Utc;
|
|
129
|
+
})[], NotFoundError, never>;
|
|
130
|
+
prompt: (input: PromptRequest) => Effect.Effect<{
|
|
131
|
+
readonly type: "user";
|
|
132
|
+
readonly payload: {
|
|
133
|
+
readonly text: string;
|
|
134
|
+
readonly metadata?: {
|
|
135
|
+
readonly [x: string]: unknown;
|
|
136
|
+
} | undefined;
|
|
137
|
+
readonly files?: readonly {
|
|
138
|
+
readonly source: {
|
|
139
|
+
readonly type: "inline";
|
|
140
|
+
} | {
|
|
141
|
+
readonly type: "uri";
|
|
142
|
+
readonly uri: string;
|
|
143
|
+
};
|
|
144
|
+
readonly data: string;
|
|
145
|
+
readonly mime: string;
|
|
146
|
+
readonly name?: string | undefined;
|
|
147
|
+
readonly description?: string | undefined;
|
|
148
|
+
readonly mention?: {
|
|
149
|
+
readonly start: number;
|
|
150
|
+
readonly end: number;
|
|
151
|
+
readonly text: string;
|
|
152
|
+
} | undefined;
|
|
153
|
+
}[] | undefined;
|
|
154
|
+
readonly agents?: readonly {
|
|
155
|
+
readonly name: string;
|
|
156
|
+
readonly mention?: {
|
|
157
|
+
readonly start: number;
|
|
158
|
+
readonly end: number;
|
|
159
|
+
readonly text: string;
|
|
160
|
+
} | undefined;
|
|
161
|
+
}[] | undefined;
|
|
162
|
+
readonly skills?: readonly {
|
|
163
|
+
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
164
|
+
readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
165
|
+
readonly text?: string | undefined;
|
|
166
|
+
readonly mention?: {
|
|
167
|
+
readonly start: number;
|
|
168
|
+
readonly end: number;
|
|
169
|
+
readonly text: string;
|
|
170
|
+
} | undefined;
|
|
171
|
+
}[] | undefined;
|
|
172
|
+
};
|
|
173
|
+
readonly delivery: "steer" | "queue";
|
|
174
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
175
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
176
|
+
readonly timeCreated: DateTime.Utc;
|
|
177
|
+
}, NotFoundError | PromptConflictError | import("./error.js").AttachmentError | import("./error.js").SkillNotFoundError, never>;
|
|
178
|
+
synthetic: (input: {
|
|
179
|
+
id?: SessionMessage.ID;
|
|
180
|
+
text: string;
|
|
181
|
+
description?: string;
|
|
182
|
+
metadata?: Record<string, unknown>;
|
|
183
|
+
delivery?: SessionInbox.Delivery;
|
|
184
|
+
resume?: boolean;
|
|
185
|
+
}) => Effect.Effect<{
|
|
186
|
+
readonly type: "synthetic";
|
|
187
|
+
readonly payload: {
|
|
188
|
+
readonly text: string;
|
|
189
|
+
readonly description?: string | undefined;
|
|
190
|
+
readonly metadata?: {
|
|
191
|
+
readonly [x: string]: unknown;
|
|
192
|
+
} | undefined;
|
|
193
|
+
};
|
|
194
|
+
readonly delivery: "steer" | "queue";
|
|
195
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
196
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
197
|
+
readonly timeCreated: DateTime.Utc;
|
|
198
|
+
}, NotFoundError | SyntheticConflictError, never>;
|
|
199
|
+
shell: (input: {
|
|
200
|
+
id?: Event.ID;
|
|
201
|
+
command: string;
|
|
202
|
+
}) => Effect.Effect<void, NotFoundError, never>;
|
|
203
|
+
compact: (input: {
|
|
204
|
+
id?: SessionMessage.ID;
|
|
205
|
+
delivery?: SessionInbox.Delivery;
|
|
206
|
+
}) => Effect.Effect<{
|
|
207
|
+
readonly type: "compaction";
|
|
208
|
+
readonly payload: {};
|
|
209
|
+
readonly delivery: "steer" | "queue";
|
|
210
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
211
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
212
|
+
readonly timeCreated: DateTime.Utc;
|
|
213
|
+
}, NotFoundError | CompactionConflictError, never>;
|
|
214
|
+
wait: () => Effect.Effect<void, NotFoundError, never>;
|
|
215
|
+
resume: () => Effect.Effect<void, NotFoundError | import("./runner/index.js").RunError, never>;
|
|
216
|
+
interrupt: (options?: {
|
|
217
|
+
readonly continue?: boolean;
|
|
218
|
+
} | undefined) => Effect.Effect<boolean, never, never>;
|
|
219
|
+
cancelInbox: (inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">) => Effect.Effect<void, NotFoundError | InboxConflictError, never>;
|
|
220
|
+
steerInbox: (inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">) => Effect.Effect<void, NotFoundError | InboxConflictError, never>;
|
|
221
|
+
queueInbox: (inboxID: string & import("effect/Brand").Brand<"Session.Message.ID">) => Effect.Effect<void, NotFoundError | InboxConflictError, never>;
|
|
222
|
+
revert: {
|
|
223
|
+
stage: (input: {
|
|
224
|
+
messageID: SessionMessage.ID;
|
|
225
|
+
files?: boolean;
|
|
226
|
+
}) => Effect.Effect<SessionSchema.Revert, NotFoundError | MessageNotFoundError | BusyError | import("../snapshot.js").Error, never>;
|
|
227
|
+
clear: () => Effect.Effect<void, NotFoundError | BusyError | import("../snapshot.js").Error, never>;
|
|
228
|
+
commit: () => Effect.Effect<void, NotFoundError | BusyError, never>;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
}, never, Scope.Scope | Bus.Service | SessionInbox.Service | SessionStore.Service | SessionExecution.Service>;
|
|
232
|
+
export type Handle = ReturnType<Effect.Success<ReturnType<typeof make>>["forSession"]>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * as SubagentCompletion from "./subagent-completion.js";
|
|
2
|
+
import { Effect } from "effect";
|
|
3
|
+
import type { Job } from "../job.js";
|
|
4
|
+
import type { Session } from "../session.js";
|
|
5
|
+
export declare const deliver: (sessions: Pick<Session.Interface, "synthetic">, jobs: Pick<Job.Interface, "completeBackground">, input: Pick<Job.Info, "status" | "output" | "error" | "notificationID"> & {
|
|
6
|
+
recovery: Extract<Job.Recovery, {
|
|
7
|
+
kind: "subagent";
|
|
8
|
+
}>;
|
|
9
|
+
resume?: boolean;
|
|
10
|
+
}) => Effect.Effect<void, Session.NotFoundError | Session.SyntheticConflictError, never>;
|
package/dist/types/session.d.ts
CHANGED
|
@@ -10,15 +10,13 @@ import { SessionSchema } from "./session/schema.js";
|
|
|
10
10
|
import { AbsolutePath } from "./schema.js";
|
|
11
11
|
import { Agent } from "@opencode-ai/schema/agent";
|
|
12
12
|
import { SessionRunner } from "./session/runner/index.js";
|
|
13
|
-
import { ForkEmptyError, MessageDecodeError, NotFoundError } from "./session/error.js";
|
|
13
|
+
import { AttachmentError, BusyError, CompactionConflictError, ForkEmptyError, InboxConflictError, MessageDecodeError, MessageIncompleteError, MessageNotAssistantError, MessageNotFoundError, MessageToolIncompleteError, NotFoundError, PromptConflictError, SkillNotFoundError, SyntheticConflictError } from "./session/error.js";
|
|
14
14
|
import { SessionEvent } from "./session/event.js";
|
|
15
15
|
import { SessionInbox } from "./session/inbox.js";
|
|
16
16
|
import { SessionGenerate } from "./session/generate.js";
|
|
17
17
|
import { Snapshot } from "./snapshot.js";
|
|
18
|
-
import {
|
|
19
|
-
import { Session } from "@opencode-ai/schema/session";
|
|
18
|
+
import { Session } from "./session/session.js";
|
|
20
19
|
import type { EventLog } from "@opencode-ai/schema/event-log";
|
|
21
|
-
import { Event } from "@opencode-ai/schema/event";
|
|
22
20
|
import { Skill } from "./skill.js";
|
|
23
21
|
import { Command } from "./command.js";
|
|
24
22
|
import { SessionEnvironment } from "./session/environment.js";
|
|
@@ -104,123 +102,18 @@ type CreateInput = CreateBaseInput & ({
|
|
|
104
102
|
parentID: SessionSchema.ID;
|
|
105
103
|
location?: never;
|
|
106
104
|
});
|
|
107
|
-
type CompactInput = {
|
|
108
|
-
id?: SessionMessage.ID;
|
|
105
|
+
type CompactInput = Parameters<Session.Handle["compact"]>[0] & {
|
|
109
106
|
sessionID: SessionSchema.ID;
|
|
110
|
-
delivery?: SessionInbox.Delivery;
|
|
111
107
|
};
|
|
112
108
|
type ForkInput = {
|
|
113
109
|
sessionID: SessionSchema.ID;
|
|
114
|
-
boundary:
|
|
110
|
+
boundary: SessionSchema.ForkRequestBoundary;
|
|
115
111
|
};
|
|
116
|
-
export { MessageDecodeError, NotFoundError };
|
|
117
|
-
declare const PromptConflictError_base: Schema.Class<PromptConflictError, Schema.TaggedStruct<"Session.PromptConflictError", {
|
|
118
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
119
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
120
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
121
|
-
};
|
|
122
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
123
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
124
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
125
|
-
};
|
|
126
|
-
}>, Cause.YieldableError>;
|
|
127
|
-
export declare class PromptConflictError extends PromptConflictError_base {
|
|
128
|
-
}
|
|
129
|
-
declare const SyntheticConflictError_base: Schema.Class<SyntheticConflictError, Schema.TaggedStruct<"Session.SyntheticConflictError", {
|
|
130
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
131
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
132
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
133
|
-
};
|
|
134
|
-
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
135
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
136
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
137
|
-
};
|
|
138
|
-
}>, Cause.YieldableError>;
|
|
139
|
-
export declare class SyntheticConflictError extends SyntheticConflictError_base {
|
|
140
|
-
}
|
|
141
|
-
declare const AttachmentError_base: Schema.Class<AttachmentError, Schema.TaggedStruct<"Session.AttachmentError", {
|
|
142
|
-
readonly uri: Schema.String;
|
|
143
|
-
readonly message: Schema.String;
|
|
144
|
-
}>, Cause.YieldableError>;
|
|
145
|
-
export declare class AttachmentError extends AttachmentError_base {
|
|
146
|
-
}
|
|
147
|
-
declare const CompactionConflictError_base: Schema.Class<CompactionConflictError, Schema.TaggedStruct<"Session.CompactionConflictError", {
|
|
148
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
149
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
150
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
151
|
-
};
|
|
152
|
-
readonly inputID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
153
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
154
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
155
|
-
};
|
|
156
|
-
}>, Cause.YieldableError>;
|
|
157
|
-
export declare class CompactionConflictError extends CompactionConflictError_base {
|
|
158
|
-
}
|
|
159
|
-
declare const BusyError_base: Schema.Class<BusyError, Schema.TaggedStruct<"Session.BusyError", {
|
|
160
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
161
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
162
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
163
|
-
};
|
|
164
|
-
}>, Cause.YieldableError>;
|
|
165
|
-
export declare class BusyError extends BusyError_base {
|
|
166
|
-
}
|
|
167
|
-
declare const MessageNotAssistantError_base: Schema.Class<MessageNotAssistantError, Schema.TaggedStruct<"Session.MessageNotAssistantError", {
|
|
168
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
169
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
170
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
171
|
-
};
|
|
172
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
173
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
174
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
175
|
-
};
|
|
176
|
-
}>, Cause.YieldableError>;
|
|
177
|
-
export declare class MessageNotAssistantError extends MessageNotAssistantError_base {
|
|
178
|
-
}
|
|
179
|
-
declare const MessageIncompleteError_base: Schema.Class<MessageIncompleteError, Schema.TaggedStruct<"Session.MessageIncompleteError", {
|
|
180
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
181
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
182
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
183
|
-
};
|
|
184
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
185
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
186
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
187
|
-
};
|
|
188
|
-
}>, Cause.YieldableError>;
|
|
189
|
-
export declare class MessageIncompleteError extends MessageIncompleteError_base {
|
|
190
|
-
}
|
|
191
|
-
declare const MessageToolIncompleteError_base: Schema.Class<MessageToolIncompleteError, Schema.TaggedStruct<"Session.MessageToolIncompleteError", {
|
|
192
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
193
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
194
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
195
|
-
};
|
|
196
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
197
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
198
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
199
|
-
};
|
|
200
|
-
}>, Cause.YieldableError>;
|
|
201
|
-
export declare class MessageToolIncompleteError extends MessageToolIncompleteError_base {
|
|
202
|
-
}
|
|
203
|
-
declare const InboxConflictError_base: Schema.Class<InboxConflictError, Schema.TaggedStruct<"Session.InboxConflictError", {
|
|
204
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
205
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
206
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
207
|
-
};
|
|
208
|
-
readonly inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
209
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
210
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
211
|
-
};
|
|
212
|
-
}>, Cause.YieldableError>;
|
|
213
|
-
export declare class InboxConflictError extends InboxConflictError_base {
|
|
214
|
-
}
|
|
112
|
+
export { AttachmentError, BusyError, CompactionConflictError, InboxConflictError, MessageDecodeError, MessageIncompleteError, MessageNotAssistantError, MessageNotFoundError, MessageToolIncompleteError, NotFoundError, PromptConflictError, SkillNotFoundError, SyntheticConflictError, };
|
|
215
113
|
type InboxItemRef = {
|
|
216
114
|
readonly sessionID: SessionSchema.ID;
|
|
217
115
|
readonly inboxID: SessionMessage.ID;
|
|
218
116
|
};
|
|
219
|
-
declare const SkillNotFoundError_base: Schema.Class<SkillNotFoundError, Schema.TaggedStruct<"Session.SkillNotFoundError", {
|
|
220
|
-
readonly skill: Schema.brand<Schema.String, "Skill.ID">;
|
|
221
|
-
}>, Cause.YieldableError>;
|
|
222
|
-
export declare class SkillNotFoundError extends SkillNotFoundError_base {
|
|
223
|
-
}
|
|
224
117
|
declare const DestinationNotFoundError_base: Schema.Class<DestinationNotFoundError, Schema.TaggedStruct<"Session.DestinationNotFoundError", {
|
|
225
118
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
226
119
|
}>, Cause.YieldableError>;
|
|
@@ -236,8 +129,6 @@ declare const DestinationUnavailableError_base: Schema.Class<DestinationUnavaila
|
|
|
236
129
|
}>, Cause.YieldableError>;
|
|
237
130
|
export declare class DestinationUnavailableError extends DestinationUnavailableError_base {
|
|
238
131
|
}
|
|
239
|
-
export declare const MessageNotFoundError: typeof SessionRevert.MessageNotFoundError;
|
|
240
|
-
export type MessageNotFoundError = SessionRevert.MessageNotFoundError;
|
|
241
132
|
export interface Interface {
|
|
242
133
|
readonly list: (input?: ListInput) => Effect.Effect<{
|
|
243
134
|
readonly data: SessionSchema.Info[];
|
|
@@ -267,11 +158,9 @@ export interface Interface {
|
|
|
267
158
|
sessionID: SessionSchema.ID;
|
|
268
159
|
messageID: SessionMessage.ID;
|
|
269
160
|
}) => Effect.Effect<SessionMessage.Info | undefined>;
|
|
270
|
-
readonly updateMessage: (input: {
|
|
161
|
+
readonly updateMessage: (input: Parameters<Session.Handle["updateMessage"]>[0] & {
|
|
271
162
|
readonly sessionID: SessionSchema.ID;
|
|
272
|
-
|
|
273
|
-
readonly content: readonly SessionMessage.AssistantContent[];
|
|
274
|
-
}) => Effect.Effect<SessionMessage.Assistant, NotFoundError | MessageNotFoundError | BusyError | MessageNotAssistantError | MessageIncompleteError | MessageToolIncompleteError>;
|
|
163
|
+
}) => ReturnType<Session.Handle["updateMessage"]>;
|
|
275
164
|
readonly context: (sessionID: SessionSchema.ID) => Effect.Effect<SessionMessage.Info[], NotFoundError | MessageDecodeError>;
|
|
276
165
|
/**
|
|
277
166
|
* Durable admitted session work not yet visible in projected history,
|
|
@@ -312,17 +201,9 @@ export interface Interface {
|
|
|
312
201
|
workspaceID?: Location.Ref["workspaceID"];
|
|
313
202
|
delivery?: SessionInbox.Delivery;
|
|
314
203
|
}) => Effect.Effect<void, NotFoundError | DestinationNotFoundError | DestinationNotDirectoryError | DestinationUnavailableError>;
|
|
315
|
-
readonly prompt: (input: {
|
|
316
|
-
id?: SessionMessage.ID;
|
|
204
|
+
readonly prompt: (input: Parameters<Session.Handle["prompt"]>[0] & {
|
|
317
205
|
sessionID: SessionSchema.ID;
|
|
318
|
-
|
|
319
|
-
files?: PromptInput.Prompt["files"];
|
|
320
|
-
agents?: PromptInput.Prompt["agents"];
|
|
321
|
-
skills?: PromptInput.Prompt["skills"];
|
|
322
|
-
metadata?: Record<string, unknown>;
|
|
323
|
-
delivery?: SessionInbox.Delivery;
|
|
324
|
-
resume?: boolean;
|
|
325
|
-
}) => Effect.Effect<SessionInbox.User, NotFoundError | PromptConflictError | AttachmentError | SkillNotFoundError>;
|
|
206
|
+
}) => ReturnType<Session.Handle["prompt"]>;
|
|
326
207
|
/** Generates text from current Session context without admitting input or mutating history. */
|
|
327
208
|
readonly generate: (input: {
|
|
328
209
|
sessionID: SessionSchema.ID;
|
|
@@ -337,11 +218,9 @@ export interface Interface {
|
|
|
337
218
|
skills?: PromptInput.Prompt["skills"];
|
|
338
219
|
delivery?: SessionInbox.Delivery;
|
|
339
220
|
}) => Effect.Effect<void, NotFoundError | Command.NotFoundError | Command.ExecutionError>;
|
|
340
|
-
readonly shell: (input: {
|
|
341
|
-
id?: Event.ID;
|
|
221
|
+
readonly shell: (input: Parameters<Session.Handle["shell"]>[0] & {
|
|
342
222
|
sessionID: SessionSchema.ID;
|
|
343
|
-
|
|
344
|
-
}) => Effect.Effect<void, NotFoundError>;
|
|
223
|
+
}) => ReturnType<Session.Handle["shell"]>;
|
|
345
224
|
readonly skill: (input: {
|
|
346
225
|
id?: SessionMessage.ID;
|
|
347
226
|
sessionID: SessionSchema.ID;
|
|
@@ -356,21 +235,15 @@ export interface Interface {
|
|
|
356
235
|
readonly interrupt: (sessionID: SessionSchema.ID, options?: {
|
|
357
236
|
readonly continue?: boolean;
|
|
358
237
|
}) => Effect.Effect<boolean>;
|
|
359
|
-
readonly synthetic: (input: {
|
|
360
|
-
id?: SessionMessage.ID;
|
|
238
|
+
readonly synthetic: (input: Parameters<Session.Handle["synthetic"]>[0] & {
|
|
361
239
|
sessionID: SessionSchema.ID;
|
|
362
|
-
|
|
363
|
-
description?: string;
|
|
364
|
-
metadata?: Record<string, unknown>;
|
|
365
|
-
delivery?: SessionInbox.Delivery;
|
|
366
|
-
resume?: boolean;
|
|
367
|
-
}) => Effect.Effect<SessionInbox.Synthetic, NotFoundError | SyntheticConflictError>;
|
|
240
|
+
}) => ReturnType<Session.Handle["synthetic"]>;
|
|
368
241
|
readonly revert: {
|
|
369
242
|
readonly stage: (input: {
|
|
370
243
|
sessionID: SessionSchema.ID;
|
|
371
244
|
messageID: SessionMessage.ID;
|
|
372
245
|
files?: boolean;
|
|
373
|
-
}) => Effect.Effect<
|
|
246
|
+
}) => Effect.Effect<SessionSchema.Revert, NotFoundError | MessageNotFoundError | BusyError | Snapshot.Error>;
|
|
374
247
|
readonly clear: (sessionID: SessionSchema.ID) => Effect.Effect<void, NotFoundError | BusyError | Snapshot.Error>;
|
|
375
248
|
readonly commit: (sessionID: SessionSchema.ID) => Effect.Effect<void, NotFoundError | BusyError>;
|
|
376
249
|
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export * as ShellResult from "./result.js";
|
|
2
|
+
import type { Shell } from "@opencode-ai/schema/shell";
|
|
3
|
+
export type Result = {
|
|
4
|
+
info: Shell.Info;
|
|
5
|
+
capture: {
|
|
6
|
+
output: string;
|
|
7
|
+
truncated: boolean;
|
|
8
|
+
} | undefined;
|
|
9
|
+
};
|
|
10
|
+
type Output = {
|
|
11
|
+
output: string;
|
|
12
|
+
truncated: boolean;
|
|
13
|
+
exit?: number;
|
|
14
|
+
timeout?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare const unavailable: Shell.Output;
|
|
17
|
+
export declare function output(result: Result): Output;
|
|
18
|
+
export declare function notice(output: Pick<Output, "exit" | "timeout">): string | undefined;
|
|
19
|
+
export declare function metadata(output: Output): {
|
|
20
|
+
timeout?: boolean | undefined;
|
|
21
|
+
exit?: number | undefined;
|
|
22
|
+
truncated: boolean;
|
|
23
|
+
};
|
|
24
|
+
export declare function notification(input: {
|
|
25
|
+
shellID: string;
|
|
26
|
+
jobID?: string;
|
|
27
|
+
command: string;
|
|
28
|
+
state: "completed" | "cancelled" | "error";
|
|
29
|
+
text: string;
|
|
30
|
+
output?: Output;
|
|
31
|
+
}): {
|
|
32
|
+
text: string;
|
|
33
|
+
metadata: {
|
|
34
|
+
timeout?: boolean | undefined;
|
|
35
|
+
exit?: number | undefined;
|
|
36
|
+
truncated?: boolean | undefined;
|
|
37
|
+
state: "cancelled" | "error" | "completed";
|
|
38
|
+
jobID?: string | undefined;
|
|
39
|
+
source: string;
|
|
40
|
+
shellID: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export declare function userNotification(result: Result): {
|
|
44
|
+
text: string;
|
|
45
|
+
metadata: {
|
|
46
|
+
timeout?: boolean | undefined;
|
|
47
|
+
exit?: number | undefined;
|
|
48
|
+
truncated?: boolean | undefined;
|
|
49
|
+
state: "cancelled" | "error" | "completed";
|
|
50
|
+
jobID?: string | undefined;
|
|
51
|
+
source: string;
|
|
52
|
+
shellID: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
package/dist/types/shell.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { AppProcess } from "@opencode-ai/util/process";
|
|
|
5
5
|
import { FSUtil } from "@opencode-ai/util/fs-util";
|
|
6
6
|
import { Global } from "@opencode-ai/util/global";
|
|
7
7
|
import type { ShellCreateBefore } from "@opencode-ai/plugin/effect/shell";
|
|
8
|
+
import { ShellResult } from "./shell/result.js";
|
|
8
9
|
declare const NotFoundError_base: Schema.Class<NotFoundError, Schema.TaggedStruct<"Shell.NotFoundError", {
|
|
9
10
|
readonly id: Schema.brand<Schema.String, "Shell.ID"> & {
|
|
10
11
|
create: () => string & import("effect/Brand").Brand<"Shell.ID">;
|
|
@@ -31,6 +32,7 @@ export interface Interface {
|
|
|
31
32
|
readonly list: () => Effect.Effect<Shell.Info[]>;
|
|
32
33
|
readonly get: (id: Shell.ID) => Effect.Effect<Shell.Info, NotFoundError>;
|
|
33
34
|
readonly wait: (id: Shell.ID) => Effect.Effect<Shell.Info, NotFoundError>;
|
|
35
|
+
readonly result: (started: Shell.Info) => Effect.Effect<ShellResult.Result>;
|
|
34
36
|
readonly timeout: (id: Shell.ID, duration: number) => Effect.Effect<Shell.Info, NotFoundError>;
|
|
35
37
|
readonly output: (id: Shell.ID, input?: Shell.OutputInput) => Effect.Effect<Shell.Output, NotFoundError>;
|
|
36
38
|
readonly remove: (id: Shell.ID) => Effect.Effect<void, NotFoundError>;
|
package/dist/types/skill.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * as Skill from "./skill.js";
|
|
2
2
|
import type { FSUtil } from "@opencode-ai/util/fs-util";
|
|
3
3
|
import { Context, Effect, Types } from "effect";
|
|
4
|
+
import type { Agent } from "@opencode-ai/schema/agent";
|
|
4
5
|
import { Skill } from "@opencode-ai/schema/skill";
|
|
5
|
-
import { Agent } from "./agent.js";
|
|
6
6
|
import { State } from "./state.js";
|
|
7
7
|
export declare const DirectorySource: import("effect/Schema").Struct<{
|
|
8
8
|
readonly type: import("effect/Schema").tag<"directory">;
|
package/dist/types/vcs.d.ts
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
export * as Vcs from "./vcs.js";
|
|
2
|
-
import { Context, Effect } from "effect";
|
|
2
|
+
import { Cause, Context, Effect, Schema } from "effect";
|
|
3
3
|
import type { VcsDraft } from "@opencode-ai/plugin/effect/vcs";
|
|
4
4
|
import { FileDiff } from "@opencode-ai/schema/file-diff";
|
|
5
|
-
import { BranchList, FileStatus, Info, Mode } from "@opencode-ai/schema/vcs";
|
|
5
|
+
import { Base, BranchList, FileStatus, Info, Mode } from "@opencode-ai/schema/vcs";
|
|
6
6
|
import { State } from "./state.js";
|
|
7
|
-
export { BranchList, FileStatus, Info, Mode };
|
|
7
|
+
export { Base, BranchList, FileStatus, Info, Mode };
|
|
8
|
+
declare const DiffError_base: Schema.Class<DiffError, Schema.TaggedStruct<"Vcs.DiffError", {
|
|
9
|
+
readonly message: Schema.String;
|
|
10
|
+
}>, Cause.YieldableError>;
|
|
11
|
+
export declare class DiffError extends DiffError_base {
|
|
12
|
+
}
|
|
8
13
|
export interface DiffOptions {
|
|
9
14
|
readonly context?: number;
|
|
15
|
+
readonly base?: string;
|
|
10
16
|
}
|
|
11
17
|
export interface BranchOptions {
|
|
12
18
|
readonly search?: string;
|
|
@@ -14,11 +20,13 @@ export interface BranchOptions {
|
|
|
14
20
|
}
|
|
15
21
|
export interface Adapter {
|
|
16
22
|
readonly info: () => Effect.Effect<Info>;
|
|
23
|
+
readonly base?: () => Effect.Effect<Base | null, DiffError>;
|
|
17
24
|
readonly branches: (options?: BranchOptions) => Effect.Effect<BranchList>;
|
|
18
25
|
readonly status: () => Effect.Effect<FileStatus[]>;
|
|
19
|
-
readonly diff: (mode: Mode, options?: DiffOptions) => Effect.Effect<FileDiff.Info[]>;
|
|
26
|
+
readonly diff: (mode: Mode, options?: DiffOptions) => Effect.Effect<FileDiff.Info[], DiffError>;
|
|
20
27
|
}
|
|
21
28
|
export interface Interface extends Adapter, State.Transformable<VcsDraft> {
|
|
29
|
+
readonly base: () => Effect.Effect<Base | null, DiffError>;
|
|
22
30
|
}
|
|
23
31
|
declare const Service_base: Context.ServiceClass<Service, "@opencode/Vcs", Interface>;
|
|
24
32
|
export declare class Service extends Service_base {
|
package/dist/util/array.js
CHANGED
package/dist/util/error.js
CHANGED
package/dist/util/identifier.js
CHANGED
package/dist/util/iife.js
CHANGED
package/dist/util/lazy.js
CHANGED