@opencode-ai/core 0.0.0-beta-18155 → 0.0.0-beta-18219
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 +74 -74
- package/dist/aisdk-native.js +3 -3
- package/dist/aisdk.js +4 -4
- package/dist/app.js +2 -2
- package/dist/bus.js +72 -72
- package/dist/catalog.js +82 -82
- package/dist/chunks/{instruction-discovery-02dbfq60.js → state-02dbfq60.js} +1 -1
- package/dist/chunks/{instruction-discovery-6cd90kzm.js → state-0b13gwpq.js} +4 -4
- package/dist/chunks/{instruction-discovery-0b17sr9d.js → state-0b17sr9d.js} +2 -2
- package/dist/chunks/{instruction-discovery-ppscnt9w.js → state-0dqphqhz.js} +3 -3
- package/dist/chunks/{instruction-discovery-0kvmztkf.js → state-0kvmztkf.js} +1 -1
- package/dist/chunks/{instruction-discovery-1z0n4qw9.js → state-0r6r61g5.js} +2 -2
- package/dist/chunks/{instruction-discovery-0vgt3zn6.js → state-0vgt3zn6.js} +2 -2
- package/dist/chunks/{instruction-discovery-kxa7gda9.js → state-1427k8mt.js} +4 -4
- package/dist/chunks/{instruction-discovery-739xvg8b.js → state-14wbm4hn.js} +9 -9
- package/dist/chunks/{instruction-discovery-18pv8fg3.js → state-18pv8fg3.js} +2 -2
- package/dist/chunks/{instruction-discovery-02s4hv33.js → state-19nk26qg.js} +6 -6
- package/dist/chunks/{instruction-discovery-1a3a2s70.js → state-1a3a2s70.js} +2 -2
- package/dist/chunks/{instruction-discovery-1b390eyt.js → state-1b390eyt.js} +2 -2
- package/dist/chunks/{instruction-discovery-20bh8n1j.js → state-1fqmpy8k.js} +41 -29
- package/dist/chunks/{instruction-discovery-h70mgfyz.js → state-1g0dcjrg.js} +4 -4
- package/dist/chunks/{instruction-discovery-8y6674hh.js → state-1jaejmkb.js} +4 -4
- package/dist/chunks/{instruction-discovery-neg1cf27.js → state-20hhthrk.js} +6 -6
- package/dist/chunks/{instruction-discovery-2nmyybe0.js → state-2nmyybe0.js} +1 -1
- package/dist/chunks/{instruction-discovery-h4x5dpgs.js → state-2r1bah04.js} +8 -8
- package/dist/chunks/{instruction-discovery-2ya5073c.js → state-2ya5073c.js} +1 -1
- package/dist/chunks/{instruction-discovery-2zf7hxjt.js → state-2zf7hxjt.js} +2 -2
- package/dist/chunks/{instruction-discovery-k2edfcr0.js → state-2zyrrrhx.js} +7 -7
- package/dist/chunks/{instruction-discovery-37e9hbzs.js → state-37e9hbzs.js} +2 -2
- package/dist/chunks/{instruction-discovery-5859v30w.js → state-38jwdxby.js} +2 -2
- package/dist/chunks/{instruction-discovery-3d1t6jqf.js → state-3d1t6jqf.js} +3 -3
- package/dist/chunks/{instruction-discovery-3g8vftxb.js → state-3g8vftxb.js} +2 -2
- package/dist/chunks/{instruction-discovery-3gsv1x0v.js → state-3gsv1x0v.js} +2 -2
- package/dist/chunks/{instruction-discovery-ytd5974t.js → state-3mexq3pq.js} +14 -14
- package/dist/chunks/{instruction-discovery-3thh6229.js → state-3thh6229.js} +2 -2
- package/dist/chunks/{instruction-discovery-n9zbm6w8.js → state-3zqgma8g.js} +6 -6
- package/dist/chunks/{instruction-discovery-073f5km4.js → state-46qzmhmr.js} +10 -10
- package/dist/chunks/{instruction-discovery-kbgqxfka.js → state-4ce5qhvd.js} +6 -6
- package/dist/chunks/{instruction-discovery-ky06amgk.js → state-4g5pgmex.js} +15 -15
- package/dist/chunks/{instruction-discovery-1g7j4ys6.js → state-4gksgcvv.js} +45 -50
- package/dist/chunks/{instruction-discovery-4j7te1s0.js → state-4j7te1s0.js} +2 -2
- package/dist/chunks/{instruction-discovery-2e5m5akh.js → state-4pxf671z.js} +3 -3
- package/dist/chunks/{instruction-discovery-4s2xwh5d.js → state-4s2xwh5d.js} +3 -3
- package/dist/chunks/{instruction-discovery-4zzdwbaz.js → state-4zzdwbaz.js} +2 -2
- package/dist/chunks/{instruction-discovery-50jxp3hw.js → state-50jxp3hw.js} +1 -1
- package/dist/chunks/{instruction-discovery-5byn142j.js → state-568e76aa.js} +5 -5
- package/dist/chunks/{instruction-discovery-57tzwnz4.js → state-57tzwnz4.js} +1 -1
- package/dist/chunks/{instruction-discovery-58xdvehb.js → state-58xdvehb.js} +1 -1
- package/dist/chunks/{instruction-discovery-0n8t289w.js → state-59d95h76.js} +15 -15
- package/dist/chunks/{instruction-discovery-8wsnyjda.js → state-5cj22h72.js} +154 -146
- package/dist/chunks/{instruction-discovery-5fe026tx.js → state-5fe026tx.js} +3 -3
- package/dist/chunks/{instruction-discovery-xxrqhk05.js → state-5gas9jc2.js} +10 -10
- package/dist/chunks/{instruction-discovery-yv1hmegx.js → state-5m91ayta.js} +6 -6
- package/dist/chunks/{instruction-discovery-vw1bp2j4.js → state-5mntg4nb.js} +4 -4
- package/dist/chunks/{instruction-discovery-5rs65q6p.js → state-5rs65q6p.js} +1 -1
- package/dist/chunks/{instruction-discovery-jcx2g7pv.js → state-5tehh5r2.js} +12 -12
- package/dist/chunks/{instruction-discovery-5vcssjzn.js → state-5vcssjzn.js} +1 -1
- package/dist/chunks/{instruction-discovery-hgdsy3tp.js → state-5vpdk7xd.js} +4 -4
- package/dist/chunks/{instruction-discovery-5xrsrne4.js → state-5xrsrne4.js} +3 -3
- package/dist/chunks/{instruction-discovery-kby8g5eh.js → state-5z4zwtb4.js} +2 -2
- package/dist/chunks/{instruction-discovery-dk1as2nk.js → state-5zayf0x8.js} +66 -66
- package/dist/chunks/{instruction-discovery-q2bfrfj8.js → state-625h1wqn.js} +10 -10
- package/dist/chunks/{instruction-discovery-bd5r45k7.js → state-63gtrn1b.js} +2 -2
- package/dist/chunks/{instruction-discovery-j4qae0tr.js → state-6a16bmez.js} +7 -7
- package/dist/chunks/{instruction-discovery-szvtzv9a.js → state-6dpj79be.js} +3 -3
- package/dist/chunks/{instruction-discovery-6ky7rqk7.js → state-6ky7rqk7.js} +1 -1
- package/dist/chunks/{instruction-discovery-8jh0gda6.js → state-6msxydxg.js} +17 -17
- package/dist/chunks/{instruction-discovery-6q0m15b3.js → state-6q0m15b3.js} +1 -1
- package/dist/chunks/{instruction-discovery-6x98y149.js → state-6x98y149.js} +2 -2
- package/dist/chunks/{instruction-discovery-6k74s62w.js → state-77cj1yb3.js} +5 -5
- package/dist/chunks/{instruction-discovery-g71z2va4.js → state-78y9e82n.js} +5 -5
- package/dist/chunks/{instruction-discovery-dchkjjs1.js → state-7fr2g77j.js} +6 -6
- package/dist/chunks/{instruction-discovery-nvdcmd56.js → state-7g3ydvzh.js} +7 -7
- package/dist/chunks/{instruction-discovery-7gqqz1s8.js → state-7gqqz1s8.js} +1 -1
- package/dist/chunks/{instruction-discovery-7khw64yh.js → state-7khw64yh.js} +1 -1
- package/dist/chunks/{instruction-discovery-7mrpdsq5.js → state-7mrpdsq5.js} +1 -1
- package/dist/chunks/{instruction-discovery-134d14hn.js → state-7qqad34w.js} +10 -10
- package/dist/chunks/{instruction-discovery-stcmrrm7.js → state-7svew3xx.js} +9 -9
- package/dist/chunks/{instruction-discovery-7wcmqxrc.js → state-7wcmqxrc.js} +1 -1
- package/dist/chunks/{instruction-discovery-88jbfw8z.js → state-88jbfw8z.js} +2 -2
- package/dist/chunks/{instruction-discovery-yj5q9w13.js → state-8a9e14vy.js} +39 -20
- package/dist/chunks/{instruction-discovery-b4akm7f7.js → state-8gp1tmat.js} +5 -5
- package/dist/chunks/{instruction-discovery-4msctx2f.js → state-8mftgzpj.js} +3 -3
- package/dist/chunks/{instruction-discovery-rqxq6q0j.js → state-8tw3qzpt.js} +3 -3
- package/dist/chunks/{instruction-discovery-1w7hvzav.js → state-982wwmdk.js} +3 -3
- package/dist/chunks/{instruction-discovery-g7xd6p5q.js → state-993n0k7x.js} +3 -3
- package/dist/chunks/{instruction-discovery-999qd968.js → state-999qd968.js} +1 -1
- package/dist/chunks/{instruction-discovery-9f0rnpkn.js → state-9f0rnpkn.js} +1 -1
- package/dist/chunks/{instruction-discovery-9p8mhgdp.js → state-9p8mhgdp.js} +1 -1
- package/dist/chunks/{instruction-discovery-apmmc12k.js → state-9wqc5k0a.js} +5 -5
- package/dist/chunks/{instruction-discovery-hf53vrwt.js → state-ayfpp7hf.js} +5 -5
- package/dist/chunks/{instruction-discovery-ayfwnm78.js → state-ayfwnm78.js} +2 -2
- package/dist/chunks/{instruction-discovery-x7849xbc.js → state-bcvcrp33.js} +3 -3
- package/dist/chunks/{instruction-discovery-qzena0aw.js → state-bdhgfttt.js} +11 -11
- package/dist/chunks/{instruction-discovery-bh1wr8rq.js → state-bh1wr8rq.js} +2 -2
- package/dist/chunks/{instruction-discovery-exxg8bfm.js → state-bh50qah0.js} +6 -6
- package/dist/chunks/{instruction-discovery-w36c2qdr.js → state-bkw9e9jk.js} +39 -39
- package/dist/chunks/{instruction-discovery-byab506k.js → state-byab506k.js} +1 -1
- package/dist/chunks/{instruction-discovery-7p6qna6k.js → state-c09ww48j.js} +3 -3
- package/dist/chunks/{instruction-discovery-c4wcb9vc.js → state-c4wcb9vc.js} +2 -2
- package/dist/chunks/{instruction-discovery-2abnqxm1.js → state-c9eyxdsa.js} +11 -11
- package/dist/chunks/{instruction-discovery-c9tk9ghs.js → state-c9tk9ghs.js} +2 -2
- package/dist/chunks/{instruction-discovery-7vkqy68y.js → state-cb46h7pc.js} +7 -7
- package/dist/chunks/{instruction-discovery-banfygqe.js → state-cqdxefk2.js} +39 -17
- package/dist/chunks/{instruction-discovery-demrk8xf.js → state-crg4yysy.js} +2 -2
- package/dist/chunks/{instruction-discovery-cve546b2.js → state-cve546b2.js} +2 -2
- package/dist/chunks/{instruction-discovery-zxqezenq.js → state-cwzmv738.js} +2 -2
- package/dist/chunks/{instruction-discovery-cz3dkvcz.js → state-cz3dkvcz.js} +1 -1
- package/dist/chunks/{instruction-discovery-th3e4h6n.js → state-d19eexxk.js} +4 -4
- package/dist/chunks/{instruction-discovery-d2gk9vpf.js → state-d2gk9vpf.js} +2 -2
- package/dist/chunks/{instruction-discovery-wveg4dpm.js → state-d7y00n83.js} +23 -23
- package/dist/chunks/{instruction-discovery-pnzb998n.js → state-dgfy6zt2.js} +6 -6
- package/dist/chunks/{instruction-discovery-mpvpbbst.js → state-dhccyx0v.js} +1 -1
- package/dist/chunks/{instruction-discovery-dhphtf1x.js → state-dhphtf1x.js} +1 -1
- package/dist/chunks/{instruction-discovery-djkt4gex.js → state-djkt4gex.js} +1 -1
- package/dist/chunks/{instruction-discovery-4m3zhqp7.js → state-dr1mvjy7.js} +3 -3
- package/dist/chunks/{instruction-discovery-0x2v13wh.js → state-drean1vx.js} +11 -2
- package/dist/chunks/{instruction-discovery-dyrphakh.js → state-dyrphakh.js} +2 -2
- package/dist/chunks/{instruction-discovery-7gqxg8ea.js → state-e0wkpsf3.js} +8 -8
- package/dist/chunks/{instruction-discovery-75fn89gz.js → state-e1pa6vc2.js} +13 -14
- package/dist/chunks/{instruction-discovery-e1z9a0ts.js → state-e1z9a0ts.js} +2 -2
- package/dist/chunks/{instruction-discovery-97541wzh.js → state-e2qdw0tg.js} +8 -8
- package/dist/chunks/{instruction-discovery-nnvs948e.js → state-e9jfq0e9.js} +8 -8
- package/dist/chunks/{instruction-discovery-916zjt5x.js → state-eaejza2t.js} +4 -4
- package/dist/chunks/{instruction-discovery-ec8vrfw5.js → state-ec8vrfw5.js} +1 -1
- package/dist/chunks/{instruction-discovery-amk8jzqw.js → state-effdwybp.js} +15 -15
- package/dist/chunks/{instruction-discovery-peahs7gc.js → state-efvmw2xw.js} +2 -2
- package/dist/chunks/{instruction-discovery-ngzng2zw.js → state-en9qv3ee.js} +5 -5
- package/dist/chunks/{instruction-discovery-epzxjdf4.js → state-epzxjdf4.js} +4 -4
- package/dist/chunks/{instruction-discovery-evghp4aa.js → state-eq90zxhy.js} +3 -3
- package/dist/chunks/{instruction-discovery-3c16r2r9.js → state-esjk7kfz.js} +7 -7
- package/dist/chunks/{instruction-discovery-ztjk4rav.js → state-f11jbhcb.js} +6 -6
- package/dist/chunks/{instruction-discovery-f9wt0tjw.js → state-f9wt0tjw.js} +2 -2
- package/dist/chunks/{instruction-discovery-fb7nfzf2.js → state-fb7nfzf2.js} +3 -3
- package/dist/chunks/{instruction-discovery-am5rv453.js → state-fdx44h11.js} +4 -4
- package/dist/chunks/{instruction-discovery-1fbsxerw.js → state-fkg79ekq.js} +12 -11
- package/dist/chunks/{instruction-discovery-4zxmnhax.js → state-ftfyk4m7.js} +4 -4
- package/dist/chunks/{instruction-discovery-1sz2g3tw.js → state-fvnc3e3d.js} +6 -6
- package/dist/chunks/{instruction-discovery-0w83wz8g.js → state-fwsc80k7.js} +3 -3
- package/dist/chunks/{instruction-discovery-qpzy4rhk.js → state-fxw49t4p.js} +4 -4
- package/dist/chunks/{instruction-discovery-4xns6vwr.js → state-fypnrcda.js} +10 -10
- package/dist/chunks/{instruction-discovery-w8c8jymc.js → state-fywp5vae.js} +5 -5
- package/dist/chunks/{instruction-discovery-0wnnj98s.js → state-g1zg5aqr.js} +3 -3
- package/dist/chunks/{instruction-discovery-g7t6p8r2.js → state-g7t6p8r2.js} +1 -1
- package/dist/chunks/{instruction-discovery-gcay93cp.js → state-gcay93cp.js} +1 -1
- package/dist/chunks/{instruction-discovery-gd2xppx8.js → state-gd2xppx8.js} +1 -1
- package/dist/chunks/{instruction-discovery-gg8gy1ab.js → state-gg8gy1ab.js} +2 -2
- package/dist/chunks/state-gqn2zsfg.js +429 -0
- package/dist/chunks/{instruction-discovery-8j90pnr8.js → state-gwpydf4a.js} +3 -3
- package/dist/chunks/state-h094egad.js +132 -0
- package/dist/chunks/{instruction-discovery-kgzdjpe7.js → state-h9sy0va2.js} +6 -6
- package/dist/chunks/{instruction-discovery-sbj9fy12.js → state-hhfaz00h.js} +3 -3
- package/dist/chunks/{instruction-discovery-hhxt27np.js → state-hhxt27np.js} +2 -2
- package/dist/chunks/{instruction-discovery-bvfght6w.js → state-hk8exvw2.js} +2 -2
- package/dist/chunks/{instruction-discovery-9rspw0h0.js → state-hk8vx4ga.js} +5 -5
- package/dist/chunks/{instruction-discovery-hp6rpdnc.js → state-hp6rpdnc.js} +1 -1
- package/dist/chunks/{instruction-discovery-nrkas8zm.js → state-hqh8yks9.js} +4 -4
- package/dist/chunks/{instruction-discovery-hsyk7kfz.js → state-hsyk7kfz.js} +2 -2
- package/dist/chunks/{instruction-discovery-gjgnq16m.js → state-j2rwtkhe.js} +6 -6
- package/dist/chunks/{instruction-discovery-j5q8scqt.js → state-j5q8scqt.js} +6 -6
- package/dist/chunks/{instruction-discovery-wpka1jz8.js → state-j5tp9x2q.js} +13 -13
- package/dist/chunks/{instruction-discovery-mjbefxv9.js → state-jfgv8vsa.js} +9 -9
- package/dist/chunks/{instruction-discovery-e1nqba0f.js → state-jm68rb0q.js} +8 -8
- package/dist/chunks/{instruction-discovery-jssy2dr3.js → state-jssy2dr3.js} +2 -2
- package/dist/chunks/{instruction-discovery-k42t1tha.js → state-k42t1tha.js} +2 -2
- package/dist/chunks/{instruction-discovery-rvp4jfka.js → state-kb2qf3qs.js} +5 -5
- package/dist/chunks/{instruction-discovery-wj2a9hc6.js → state-kdn1ck8k.js} +3 -3
- package/dist/chunks/{instruction-discovery-kg1345f7.js → state-kg1345f7.js} +1 -1
- package/dist/chunks/{instruction-discovery-kp1t5rcy.js → state-kp1t5rcy.js} +1 -1
- package/dist/chunks/{instruction-discovery-tygbrpnz.js → state-mc1mz2pc.js} +4 -4
- package/dist/chunks/{instruction-discovery-mf0hyk7z.js → state-mf0hyk7z.js} +1 -1
- package/dist/chunks/{instruction-discovery-mh28new4.js → state-mh28new4.js} +2 -2
- package/dist/chunks/{instruction-discovery-mnb85w6b.js → state-mnb85w6b.js} +2 -2
- package/dist/chunks/{instruction-discovery-mxvw03gv.js → state-mxvw03gv.js} +1 -1
- package/dist/chunks/{instruction-discovery-dfxw4vgj.js → state-myychbwq.js} +5 -5
- package/dist/chunks/state-n39vvkp0.js +5 -0
- package/dist/chunks/{instruction-discovery-nesb2rcz.js → state-nesb2rcz.js} +2 -2
- package/dist/chunks/{instruction-discovery-z33m9s8m.js → state-njywpcye.js} +11 -11
- package/dist/chunks/{instruction-discovery-nr76rjj3.js → state-nr76rjj3.js} +2 -2
- package/dist/chunks/{instruction-discovery-eazacv6r.js → state-nzexh2ja.js} +88 -88
- package/dist/chunks/{instruction-discovery-nzrjycs5.js → state-nzrjycs5.js} +1 -1
- package/dist/chunks/{instruction-discovery-x50faqe6.js → state-p1xvm7za.js} +30 -41
- package/dist/chunks/{instruction-discovery-pfqehjmy.js → state-pfqehjmy.js} +2 -2
- package/dist/chunks/{instruction-discovery-pq4b4pqk.js → state-pq4b4pqk.js} +2 -2
- package/dist/chunks/{instruction-discovery-0z8dpbqm.js → state-qajwj4ps.js} +6 -6
- package/dist/chunks/{instruction-discovery-ah6xpq2f.js → state-qasbckzx.js} +90 -90
- package/dist/chunks/{instruction-discovery-72h6pyg5.js → state-qe0aav6y.js} +8 -8
- package/dist/chunks/{instruction-discovery-qe0d689s.js → state-qe0d689s.js} +2 -2
- package/dist/chunks/{instruction-discovery-qvydhkak.js → state-qh4vq1fm.js} +10 -10
- package/dist/chunks/{instruction-discovery-qhdqjp31.js → state-qhdqjp31.js} +1 -1
- package/dist/chunks/{instruction-discovery-g47736v9.js → state-qjnrmq1k.js} +8 -8
- package/dist/chunks/{instruction-discovery-34d1y86y.js → state-qqevkq7v.js} +1 -1
- package/dist/chunks/{instruction-discovery-cev3cz6m.js → state-qsh6aavw.js} +4 -4
- package/dist/chunks/{instruction-discovery-r8y4htfg.js → state-qtaajmpt.js} +3 -3
- package/dist/chunks/{instruction-discovery-65re92qg.js → state-qv06sb3r.js} +39 -6
- package/dist/chunks/{instruction-discovery-r3k9abhd.js → state-r3k9abhd.js} +2 -2
- package/dist/chunks/{instruction-discovery-rahat93a.js → state-rahat93a.js} +1 -1
- package/dist/chunks/{instruction-discovery-rfbm65k8.js → state-rfbm65k8.js} +1 -1
- package/dist/chunks/{instruction-discovery-by6ae4m1.js → state-rgk6q7se.js} +3 -3
- package/dist/chunks/{instruction-discovery-7c8h4kqy.js → state-rmr740y4.js} +51 -47
- package/dist/chunks/{instruction-discovery-rn9r0ddn.js → state-rn9r0ddn.js} +2 -2
- package/dist/chunks/{instruction-discovery-vrfdd4ew.js → state-rph6nvyf.js} +27 -27
- package/dist/chunks/{instruction-discovery-tczxwgj9.js → state-rrc4sky2.js} +10 -10
- package/dist/chunks/{instruction-discovery-rsndm6ze.js → state-rs9n91g6.js} +6 -6
- package/dist/chunks/{instruction-discovery-s33fw6zm.js → state-s33fw6zm.js} +1 -1
- package/dist/chunks/{instruction-discovery-nsctwqey.js → state-s4ame7nd.js} +7 -7
- package/dist/chunks/{instruction-discovery-b7hsw5bk.js → state-se1aqaya.js} +4 -4
- package/dist/chunks/{instruction-discovery-cn8wtdwb.js → state-sh61temt.js} +25 -25
- package/dist/chunks/{instruction-discovery-1whqv1g7.js → state-shg9btfn.js} +10 -10
- package/dist/chunks/{instruction-discovery-pa35pf5v.js → state-shhqc982.js} +13 -13
- package/dist/chunks/{instruction-discovery-smpeg8c9.js → state-smpeg8c9.js} +2 -2
- package/dist/chunks/{instruction-discovery-sw84ckhj.js → state-sw84ckhj.js} +1 -1
- package/dist/chunks/{instruction-discovery-c69k1vmf.js → state-t0tt4nmt.js} +14 -14
- package/dist/chunks/{instruction-discovery-t14kykx1.js → state-t14kykx1.js} +1 -1
- package/dist/chunks/{instruction-discovery-tb33ng7x.js → state-tb33ng7x.js} +2 -2
- package/dist/chunks/{instruction-discovery-tcptxgyq.js → state-tcptxgyq.js} +1 -1
- package/dist/chunks/{instruction-discovery-qkmen89r.js → state-te0cypm2.js} +9 -9
- package/dist/chunks/{instruction-discovery-thstd87d.js → state-thstd87d.js} +1 -1
- package/dist/chunks/{instruction-discovery-23bh7325.js → state-tj4jvx23.js} +7 -7
- package/dist/chunks/{instruction-discovery-tjjf1q77.js → state-tjjf1q77.js} +1 -1
- package/dist/chunks/{instruction-discovery-2na1yb25.js → state-tpwp4gvc.js} +8 -8
- package/dist/chunks/{instruction-discovery-zzwezfr3.js → state-tt8fjeh9.js} +64 -64
- package/dist/chunks/{instruction-discovery-v2wshkax.js → state-v2wshkax.js} +1 -1
- package/dist/chunks/{instruction-discovery-v80zsxnb.js → state-v80zsxnb.js} +1 -1
- package/dist/chunks/{instruction-discovery-v972xay6.js → state-v972xay6.js} +1 -1
- package/dist/chunks/{instruction-discovery-v9bfv94f.js → state-v9bfv94f.js} +1 -1
- package/dist/chunks/{instruction-discovery-0jhkps1y.js → state-va5k7fad.js} +5 -5
- package/dist/chunks/{instruction-discovery-vcwr2vpf.js → state-vcwr2vpf.js} +1 -1
- package/dist/chunks/{instruction-discovery-vqbmgfq1.js → state-vqbmgfq1.js} +3 -3
- package/dist/chunks/{instruction-discovery-sk6grp02.js → state-vvmq9xvn.js} +49 -28
- package/dist/chunks/{instruction-discovery-9w3ecymw.js → state-vz30fbtb.js} +3 -3
- package/dist/chunks/{instruction-discovery-vz89hfgr.js → state-vz89hfgr.js} +1 -1
- package/dist/chunks/{instruction-discovery-wbkt8qpj.js → state-wbkt8qpj.js} +1 -1
- package/dist/chunks/{instruction-discovery-q5q5qk7h.js → state-wcc1vz83.js} +67 -37
- package/dist/chunks/{instruction-discovery-wd268jeg.js → state-wd268jeg.js} +1 -1
- package/dist/chunks/{instruction-discovery-wmxdh12w.js → state-wmxdh12w.js} +1 -1
- package/dist/chunks/{instruction-discovery-wps8gh8n.js → state-wps8gh8n.js} +2 -2
- package/dist/chunks/{instruction-discovery-8v47shgf.js → state-wptv627x.js} +7 -3
- package/dist/chunks/{instruction-discovery-fxq037mg.js → state-wrw92r0k.js} +11 -11
- package/dist/chunks/{instruction-discovery-bp3tgzrt.js → state-wvjbjymc.js} +2 -2
- package/dist/chunks/{instruction-discovery-07qg84az.js → state-wyhq3myq.js} +3 -3
- package/dist/chunks/{instruction-discovery-drn59q08.js → state-wzvy0tx9.js} +6 -6
- package/dist/chunks/{instruction-discovery-8mqpg626.js → state-x07gtesk.js} +3 -3
- package/dist/chunks/{instruction-discovery-xczfw7dq.js → state-xczfw7dq.js} +1 -1
- package/dist/chunks/{instruction-discovery-xgv25zxy.js → state-xgv25zxy.js} +1 -1
- package/dist/chunks/{instruction-discovery-5tkyx3me.js → state-xjn4tcwe.js} +4 -4
- package/dist/chunks/{instruction-discovery-95dkcexk.js → state-xm8j1t5h.js} +4 -4
- package/dist/chunks/{instruction-discovery-xwftk1fd.js → state-xwftk1fd.js} +2 -2
- package/dist/chunks/{instruction-discovery-xxpvz42q.js → state-xxpvz42q.js} +3 -3
- package/dist/chunks/{instruction-discovery-cr4zkc2m.js → state-xz479kyk.js} +3 -3
- package/dist/chunks/{instruction-discovery-y0x38cee.js → state-y0x38cee.js} +1 -1
- package/dist/chunks/{instruction-discovery-y198y2ra.js → state-y198y2ra.js} +1 -1
- package/dist/chunks/{instruction-discovery-3y5qmzqj.js → state-y643ex83.js} +4 -4
- package/dist/chunks/{instruction-discovery-y67x6rf6.js → state-y67x6rf6.js} +1 -1
- package/dist/chunks/{instruction-discovery-94knjeva.js → state-y966n2ac.js} +12 -12
- package/dist/chunks/{instruction-discovery-y980s7ka.js → state-y980s7ka.js} +3 -3
- package/dist/chunks/state-yb8yd193.js +252 -0
- package/dist/chunks/{instruction-discovery-ybhfpy64.js → state-ybhfpy64.js} +2 -2
- package/dist/chunks/{instruction-discovery-yf0knd5z.js → state-yf0knd5z.js} +2 -2
- package/dist/chunks/{instruction-discovery-8bqpm1yy.js → state-yfq2zvb9.js} +50 -6
- package/dist/chunks/{instruction-discovery-ygy0xbqa.js → state-ygy0xbqa.js} +3 -3
- package/dist/chunks/{instruction-discovery-rxctdfwx.js → state-z88k6s2w.js} +4 -4
- package/dist/chunks/{instruction-discovery-15p6fcg3.js → state-zbjdaqcp.js} +8 -8
- package/dist/chunks/{instruction-discovery-zbqqnp0n.js → state-zbqqnp0n.js} +1 -1
- package/dist/chunks/{instruction-discovery-zdkg1k91.js → state-zdkg1k91.js} +1 -1
- package/dist/chunks/{instruction-discovery-jsk4wgcx.js → state-zrbk8s17.js} +11 -11
- package/dist/chunks/{instruction-discovery-zxcy6vhn.js → state-zxcy6vhn.js} +1 -1
- package/dist/chunks/{instruction-discovery-zxe9jjhn.js → state-zxe9jjhn.js} +2 -2
- 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 +74 -74
- package/dist/config/markdown.js +2 -2
- package/dist/config/normalize.js +20 -20
- package/dist/config/plugin/agent.js +134 -133
- package/dist/config/plugin/command.js +117 -117
- package/dist/config/plugin/compaction.js +169 -169
- package/dist/config/plugin/entry-observer.js +113 -113
- package/dist/config/plugin/formatter.js +118 -118
- package/dist/config/plugin/image.js +129 -129
- package/dist/config/plugin/instruction.js +89 -89
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +126 -126
- package/dist/config/plugin/policy.js +115 -115
- package/dist/config/plugin/provider.js +114 -114
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +117 -117
- package/dist/config/plugin/skill-file.js +107 -106
- package/dist/config/plugin/skill.js +137 -136
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +113 -113
- package/dist/config/plugin/tool-output.js +118 -118
- package/dist/config/plugin/websearch.js +114 -114
- package/dist/config/variable.js +4 -4
- package/dist/config.js +112 -112
- package/dist/credential/sql.js +3 -3
- package/dist/credential.js +72 -72
- package/dist/database/database.js +69 -69
- package/dist/database/drizzle/effect-sqlite/driver.js +16 -16
- package/dist/database/drizzle/effect-sqlite/index.js +16 -16
- package/dist/database/drizzle/effect-sqlite/migrator.js +15 -15
- package/dist/database/drizzle/effect-sqlite/session.js +15 -15
- package/dist/database/drizzle/index.js +20 -20
- 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 +18 -18
- 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 +14 -14
- package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
- package/dist/database/drizzle/up-migrations/effect-sqlite.js +4 -4
- package/dist/database/drizzle/up-migrations/sqlite.js +2 -2
- package/dist/database/drizzle/up-migrations/utils.js +2 -2
- package/dist/database/drizzle.js +21 -21
- 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 +81 -81
- package/dist/database/v1-migration.js +2 -2
- package/dist/database/v1-migration.noop.js +1 -1
- package/dist/effect/app-node-builder.js +330 -330
- 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 +90 -90
- package/dist/environment/exec-defaults.js +3 -3
- package/dist/environment/files.js +2 -2
- package/dist/environment/index.js +92 -92
- 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 +72 -72
- package/dist/file-mutation.js +91 -91
- 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 +310 -305
- package/dist/filesystem/protected.js +2 -2
- package/dist/filesystem/search.js +95 -95
- package/dist/filesystem/watcher-binding.js +2 -2
- package/dist/filesystem/watcher.js +4 -4
- package/dist/filesystem.js +95 -95
- package/dist/form.js +73 -73
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +84 -84
- package/dist/generate.js +88 -88
- 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 +97 -97
- package/dist/image.js +97 -97
- package/dist/instruction-discovery.js +76 -76
- 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 +79 -79
- package/dist/job.js +4 -4
- package/dist/kv/sql.js +3 -3
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +84 -84
- package/dist/location-mutation.js +83 -83
- package/dist/location-service-map.js +83 -83
- package/dist/location-services.js +330 -330
- package/dist/location.js +82 -82
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +97 -97
- package/dist/mcp/instructions.js +127 -127
- package/dist/mcp/oauth.js +2 -2
- package/dist/mcp/stdio.js +91 -91
- package/dist/mime.js +2 -2
- package/dist/model-resolver.js +85 -85
- package/dist/model.js +3 -3
- package/dist/models-dev.js +79 -79
- package/dist/oauth/page.js +2 -2
- package/dist/permission/saved.js +83 -83
- package/dist/permission/sql.js +6 -6
- package/dist/permission.js +104 -103
- package/dist/persistent-pty/binary.bun.js +87 -0
- package/dist/persistent-pty/binary.node.js +9 -0
- package/dist/persistent-pty/binary.workerd.js +9 -0
- package/dist/persistent-pty/daemon.js +13 -0
- package/dist/persistent-pty/index.js +89 -0
- package/dist/persistent-pty/pty-binding.js +7 -0
- package/dist/persistent-pty.js +79 -0
- package/dist/plugin/agent.js +105 -104
- package/dist/plugin/command.js +98 -98
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +169 -166
- package/dist/plugin/internal.js +302 -299
- package/dist/plugin/mcp-codemode-exclusion.js +2 -2
- package/dist/plugin/models-dev.js +80 -80
- package/dist/plugin/plan.js +105 -104
- 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 +120 -120
- package/dist/plugin/provider/cerebras.js +3 -3
- package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +3 -3
- package/dist/plugin/provider/configured.js +118 -118
- package/dist/plugin/provider/deepinfra.js +3 -3
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +2 -2
- package/dist/plugin/provider/gateway.js +3 -3
- package/dist/plugin/provider/github-copilot.js +86 -86
- package/dist/plugin/provider/gitlab.js +4 -4
- package/dist/plugin/provider/google-vertex.js +3 -3
- package/dist/plugin/provider/groq.js +3 -3
- package/dist/plugin/provider/kilo.js +3 -3
- package/dist/plugin/provider/llmgateway.js +81 -81
- package/dist/plugin/provider/lmstudio.js +113 -113
- package/dist/plugin/provider/mistral.js +3 -3
- package/dist/plugin/provider/nvidia.js +3 -3
- package/dist/plugin/provider/ollama.js +113 -113
- package/dist/plugin/provider/openai-compatible.js +2 -2
- package/dist/plugin/provider/openai.js +83 -83
- package/dist/plugin/provider/opencode.js +97 -97
- package/dist/plugin/provider/openrouter.js +4 -4
- package/dist/plugin/provider/perplexity.js +3 -3
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/snowflake-cortex.js +3 -3
- package/dist/plugin/provider/togetherai.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 +113 -113
- package/dist/plugin/provider/xai.js +82 -82
- package/dist/plugin/provider/zenmux.js +3 -3
- package/dist/plugin/provider.js +159 -159
- package/dist/plugin/runtime.js +155 -155
- package/dist/plugin/sdk.js +73 -73
- package/dist/plugin/skill.js +135 -134
- package/dist/plugin/supervisor-service.js +2 -2
- package/dist/plugin/supervisor.js +309 -304
- package/dist/plugin/system-prompt.js +2 -2
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +91 -0
- package/dist/plugin/vcs/hg.js +91 -0
- 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 +170 -167
- package/dist/project/schema.js +7 -3
- package/dist/project/sql.js +5 -5
- package/dist/project.js +85 -81
- 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 +74 -74
- package/dist/pty.js +88 -88
- package/dist/reference/instructions.js +81 -81
- package/dist/reference.js +79 -79
- package/dist/repository-cache.js +7 -7
- package/dist/repository.js +2 -2
- package/dist/ripgrep/binary.js +3 -3
- package/dist/ripgrep.js +93 -93
- package/dist/schema.js +2 -2
- package/dist/session/compaction.js +141 -141
- package/dist/session/context.js +316 -311
- 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 +120 -119
- package/dist/session/execution.js +120 -119
- package/dist/session/generate-node.js +317 -312
- package/dist/session/generate.js +2 -2
- package/dist/session/history.js +81 -81
- package/dist/session/inbox.js +81 -81
- package/dist/session/info.js +91 -91
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +10 -10
- package/dist/session/instructions.js +100 -100
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +2 -2
- package/dist/session/model-request.js +137 -137
- package/dist/session/model-transport.js +5 -5
- package/dist/session/projector.js +94 -94
- package/dist/session/prompt-cache-diagnostics.js +2 -2
- package/dist/session/revert.js +89 -89
- package/dist/session/run-coordinator.js +2 -2
- package/dist/session/runner/index.js +88 -88
- package/dist/session/runner/llm.js +322 -317
- package/dist/session/runner/max-steps.js +2 -2
- package/dist/session/runner/model.js +87 -87
- package/dist/session/runner/publish-llm-event.js +4 -4
- package/dist/session/runner/retry.js +76 -76
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +2 -2
- package/dist/session/sql.js +6 -6
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +99 -99
- package/dist/session/system-prompt.js +2 -2
- package/dist/session/title.js +141 -139
- package/dist/session/to-session-error.js +115 -114
- package/dist/session/transfer.js +159 -159
- package/dist/session/usage.js +2 -2
- package/dist/session.js +153 -153
- package/dist/shell/parse.js +5 -5
- 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/scan.js +1 -1
- package/dist/shell/select.js +7 -9
- package/dist/shell.js +98 -98
- package/dist/skill/discovery.js +3 -3
- package/dist/skill/instructions.js +106 -105
- package/dist/skill.js +105 -104
- package/dist/snapshot.js +84 -84
- 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 +114 -113
- package/dist/tool/plugin/file-diff.js +2 -2
- package/dist/tool/plugin/glob.js +116 -115
- package/dist/tool/plugin/grep.js +116 -115
- package/dist/tool/plugin/patch.js +114 -113
- package/dist/tool/plugin/question.js +106 -105
- package/dist/tool/plugin/read.js +119 -118
- package/dist/tool/plugin/shell.js +185 -185
- package/dist/tool/plugin/skill.js +106 -105
- package/dist/tool/plugin/subagent.js +182 -182
- package/dist/tool/plugin/webfetch.js +107 -106
- package/dist/tool/plugin/websearch.js +109 -108
- package/dist/tool/plugin/write.js +114 -113
- package/dist/tool/read-filesystem.js +97 -97
- package/dist/tool/runtime.js +2 -2
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +119 -119
- package/dist/types/git.d.ts +1 -0
- package/dist/types/location-service-map.d.ts +2 -2
- package/dist/types/location-services.d.ts +1 -1
- package/dist/types/model.d.ts +3 -0
- package/dist/types/permission.d.ts +2 -6
- package/dist/types/persistent-pty/binary.bun.d.ts +1 -0
- package/dist/types/persistent-pty/binary.node.d.ts +1 -0
- package/dist/types/persistent-pty/binary.workerd.d.ts +1 -0
- package/dist/types/persistent-pty/daemon.d.ts +642 -0
- package/dist/types/persistent-pty/index.d.ts +90 -0
- package/dist/types/persistent-pty/pty-binding.d.ts +6 -0
- package/dist/types/persistent-pty.d.ts +1 -0
- package/dist/types/plugin/hooks.d.ts +3 -0
- package/dist/types/plugin/host.d.ts +66 -1
- package/dist/types/plugin/internal.d.ts +3 -3
- package/dist/types/plugin/runtime.d.ts +1 -1
- package/dist/types/plugin/supervisor.d.ts +1 -1
- package/dist/types/plugin/vcs/git.d.ts +4 -0
- package/dist/types/plugin/vcs/hg.d.ts +5 -0
- package/dist/types/project/schema.d.ts +197 -0
- package/dist/types/project.d.ts +29 -0
- package/dist/types/session/title.d.ts +3 -2
- package/dist/types/shell/select.d.ts +6 -7
- package/dist/types/shell.d.ts +4 -2
- package/dist/types/tool/plugin/shell.d.ts +2 -1
- package/dist/types/v1/config/migrate.d.ts +1 -0
- package/dist/types/vcs.d.ts +12 -3
- package/dist/types/worktree/git.d.ts +1 -0
- package/dist/types/worktree.d.ts +4 -1
- 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 +88 -87
- package/dist/websearch.js +77 -77
- package/dist/wellknown/plugin.js +77 -77
- package/dist/wellknown.js +76 -76
- package/dist/workspace/driver.js +2 -2
- package/dist/workspace/sql.js +2 -2
- package/dist/workspace.js +73 -73
- 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 +86 -86
- package/package.json +13 -7
- package/dist/chunks/instruction-discovery-3d3b9q0a.js +0 -86
- package/dist/types/vcs/git.d.ts +0 -12
- package/dist/types/vcs/hg.d.ts +0 -13
- package/dist/vcs/git.js +0 -10
- package/dist/vcs/hg.js +0 -10
- /package/dist/chunks/{instruction-discovery-0cgt0xh2.js → state-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-0f48qthw.js → state-0f48qthw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-0zz82cjq.js → state-0zz82cjq.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1fb7bmpf.js → state-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1wcz8fvj.js → state-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2qdx6zz3.js → state-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-39ktntah.js → state-39ktntah.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3g3rpp2x.js → state-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3q6gbwmd.js → state-3q6gbwmd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3w3ybtfd.js → state-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-47ty4mvs.js → state-47ty4mvs.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4b2tz2m9.js → state-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4zg0gww9.js → state-4zg0gww9.js} +0 -0
- /package/dist/chunks/{instruction-discovery-5a5ch9ts.js → state-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{instruction-discovery-5va1yh78.js → state-5va1yh78.js} +0 -0
- /package/dist/chunks/{instruction-discovery-61ek4hj9.js → state-61ek4hj9.js} +0 -0
- /package/dist/chunks/{instruction-discovery-69qrqpw0.js → state-69qrqpw0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-6yt963b8.js → state-6yt963b8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-6zqxzw0a.js → state-6zqxzw0a.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7n9qwqk4.js → state-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8nn8kqcn.js → state-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8rpfd2h6.js → state-8rpfd2h6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8sj3ajy5.js → state-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8w9tzfz1.js → state-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-906y0b6d.js → state-906y0b6d.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9dct5xhx.js → state-9dct5xhx.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9sdtsapf.js → state-9sdtsapf.js} +0 -0
- /package/dist/chunks/{instruction-discovery-a02svayp.js → state-a02svayp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-a83yvq99.js → state-a83yvq99.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ayevdmef.js → state-ayevdmef.js} +0 -0
- /package/dist/chunks/{instruction-discovery-b02txbh8.js → state-b02txbh8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bbqs2y60.js → state-bbqs2y60.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bjwj8hwv.js → state-bjwj8hwv.js} +0 -0
- /package/dist/chunks/{instruction-discovery-brsh5f65.js → state-brsh5f65.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bxdhjb3y.js → state-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{instruction-discovery-c77ad0vh.js → state-c77ad0vh.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ck5pgha0.js → state-ck5pgha0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cm67rqy2.js → state-cm67rqy2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-df3v2q6j.js → state-df3v2q6j.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dhcq6c44.js → state-dhcq6c44.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dht5baf0.js → state-dht5baf0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dkmkay92.js → state-dkmkay92.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ehj9csmv.js → state-ehj9csmv.js} +0 -0
- /package/dist/chunks/{instruction-discovery-em6xpscd.js → state-em6xpscd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-emmqknsm.js → state-emmqknsm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ezs3tagn.js → state-ezs3tagn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f14r7hfz.js → state-f14r7hfz.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f4cp4g4a.js → state-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f84sxdqn.js → state-f84sxdqn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-faypg4r1.js → state-faypg4r1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fgbfdq62.js → state-fgbfdq62.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gd5xeqc2.js → state-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ghm4673n.js → state-ghm4673n.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ghwjy7my.js → state-ghwjy7my.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gy500k2r.js → state-gy500k2r.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hzeg9cfr.js → state-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j07kk359.js → state-j07kk359.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jf35ek5b.js → state-jf35ek5b.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jve7t217.js → state-jve7t217.js} +0 -0
- /package/dist/chunks/{instruction-discovery-k3e42drn.js → state-k3e42drn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-k8b45nas.js → state-k8b45nas.js} +0 -0
- /package/dist/chunks/{instruction-discovery-kcacmy5c.js → state-kcacmy5c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-kpdbz7gn.js → state-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-kxy11nzk.js → state-kxy11nzk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-kyyqvx4s.js → state-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{instruction-discovery-m8cbvarh.js → state-m8cbvarh.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ma60vzgv.js → state-ma60vzgv.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n3m50c2t.js → state-n3m50c2t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-nkm1m8dz.js → state-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{instruction-discovery-nsc0c3zb.js → state-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qaarhjrp.js → state-qaarhjrp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qc167nrn.js → state-qc167nrn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qp95y4jb.js → state-qp95y4jb.js} +0 -0
- /package/dist/chunks/{instruction-discovery-r8f4w671.js → state-r8f4w671.js} +0 -0
- /package/dist/chunks/{instruction-discovery-rdfev9jy.js → state-rdfev9jy.js} +0 -0
- /package/dist/chunks/{instruction-discovery-rvfvac9x.js → state-rvfvac9x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-s7whb9gt.js → state-s7whb9gt.js} +0 -0
- /package/dist/chunks/{instruction-discovery-se76j685.js → state-se76j685.js} +0 -0
- /package/dist/chunks/{instruction-discovery-sem2g21k.js → state-sem2g21k.js} +0 -0
- /package/dist/chunks/{instruction-discovery-tmb1f636.js → state-tmb1f636.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ttxf0gsy.js → state-ttxf0gsy.js} +0 -0
- /package/dist/chunks/{instruction-discovery-tvmhrvfj.js → state-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-v2adqbbe.js → state-v2adqbbe.js} +0 -0
- /package/dist/chunks/{instruction-discovery-vkvb1sb3.js → state-vkvb1sb3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wj4sxzqa.js → state-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wwntjmk1.js → state-wwntjmk1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wyqjaaa5.js → state-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x4q807cx.js → state-x4q807cx.js} +0 -0
- /package/dist/chunks/{instruction-discovery-xt0068v8.js → state-xt0068v8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-yrqrg4vp.js → state-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z47nswr2.js → state-z47nswr2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-zsf8rs93.js → state-zsf8rs93.js} +0 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export * as PersistentPty from "./index.js";
|
|
2
|
+
import { Context, Effect, Layer, Schema } from "effect";
|
|
3
|
+
import { Session } from "@opencode-ai/schema/session";
|
|
4
|
+
import { Bus } from "../bus.js";
|
|
5
|
+
import { Database } from "../database/database.js";
|
|
6
|
+
import { Pty } from "@opencode-ai/schema/pty";
|
|
7
|
+
import { Global } from "@opencode-ai/util/global";
|
|
8
|
+
import { type Role, type StreamEvent } from "./daemon.js";
|
|
9
|
+
export type { Role, StreamEvent } from "./daemon.js";
|
|
10
|
+
export type Info = Pty.Info & {
|
|
11
|
+
readonly sessionID: Session.ID;
|
|
12
|
+
readonly foregroundProcess: string | null;
|
|
13
|
+
readonly size: {
|
|
14
|
+
readonly cols: number;
|
|
15
|
+
readonly rows: number;
|
|
16
|
+
};
|
|
17
|
+
readonly output: {
|
|
18
|
+
readonly head: number;
|
|
19
|
+
readonly tail: number;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export type Snapshot = {
|
|
23
|
+
readonly info: Info;
|
|
24
|
+
readonly text: string;
|
|
25
|
+
readonly checkpoint: Uint8Array;
|
|
26
|
+
readonly cursor: {
|
|
27
|
+
readonly x: number;
|
|
28
|
+
readonly y: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export type Attachment = {
|
|
32
|
+
readonly info: Info;
|
|
33
|
+
readonly role: Role;
|
|
34
|
+
readonly generation: number;
|
|
35
|
+
readonly replay: {
|
|
36
|
+
readonly requestedOffset: number;
|
|
37
|
+
readonly availableOffset: number;
|
|
38
|
+
readonly endOffset: number;
|
|
39
|
+
readonly truncated: boolean;
|
|
40
|
+
readonly data: Uint8Array;
|
|
41
|
+
};
|
|
42
|
+
readonly activate: () => void;
|
|
43
|
+
readonly detach: () => void;
|
|
44
|
+
};
|
|
45
|
+
declare const UnavailableError_base: Schema.Class<UnavailableError, Schema.TaggedStruct<"PersistentPty.UnavailableError", {
|
|
46
|
+
readonly message: Schema.String;
|
|
47
|
+
}>, import("effect/Cause").YieldableError>;
|
|
48
|
+
export declare class UnavailableError extends UnavailableError_base {
|
|
49
|
+
}
|
|
50
|
+
declare const NotFoundError_base: Schema.Class<NotFoundError, Schema.TaggedStruct<"PersistentPty.NotFoundError", {
|
|
51
|
+
readonly ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
52
|
+
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
53
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
54
|
+
};
|
|
55
|
+
}>, import("effect/Cause").YieldableError>;
|
|
56
|
+
export declare class NotFoundError extends NotFoundError_base {
|
|
57
|
+
}
|
|
58
|
+
export interface Interface {
|
|
59
|
+
readonly list: (sessionID?: Session.ID) => Effect.Effect<Info[], UnavailableError>;
|
|
60
|
+
readonly get: (id: Pty.ID) => Effect.Effect<Info, NotFoundError | UnavailableError>;
|
|
61
|
+
readonly create: (sessionID: Session.ID, input: {
|
|
62
|
+
readonly command: string;
|
|
63
|
+
readonly args: readonly string[];
|
|
64
|
+
readonly cwd: string;
|
|
65
|
+
readonly title: string;
|
|
66
|
+
readonly env: Readonly<Record<string, string>>;
|
|
67
|
+
readonly cols?: number;
|
|
68
|
+
readonly rows?: number;
|
|
69
|
+
}) => Effect.Effect<Info, UnavailableError>;
|
|
70
|
+
readonly write: (id: Pty.ID, data: string, attachmentID?: string) => Effect.Effect<void, NotFoundError | UnavailableError>;
|
|
71
|
+
readonly resize: (id: Pty.ID, cols: number, rows: number, attachmentID?: string) => Effect.Effect<void, NotFoundError | UnavailableError>;
|
|
72
|
+
readonly control: (id: Pty.ID, attachmentID: string, cols: number, rows: number) => Effect.Effect<void, NotFoundError | UnavailableError>;
|
|
73
|
+
readonly input: (id: Pty.ID, attachmentID: string, cols: number, rows: number, data: Uint8Array) => Effect.Effect<void, NotFoundError | UnavailableError>;
|
|
74
|
+
readonly snapshot: (id: Pty.ID) => Effect.Effect<Snapshot, NotFoundError | UnavailableError>;
|
|
75
|
+
readonly remove: (id: Pty.ID) => Effect.Effect<void, NotFoundError | UnavailableError>;
|
|
76
|
+
readonly shutdown: () => Effect.Effect<void, UnavailableError>;
|
|
77
|
+
readonly attach: (id: Pty.ID, input: {
|
|
78
|
+
readonly cursor: number;
|
|
79
|
+
readonly attachmentID: string;
|
|
80
|
+
readonly role: Role;
|
|
81
|
+
readonly takeover?: boolean;
|
|
82
|
+
readonly onEvent: (event: StreamEvent) => void;
|
|
83
|
+
readonly onEnd: () => void;
|
|
84
|
+
}) => Effect.Effect<Attachment, NotFoundError | UnavailableError>;
|
|
85
|
+
}
|
|
86
|
+
declare const Service_base: Context.ServiceClass<Service, "@opencode/PersistentPty", Interface>;
|
|
87
|
+
export declare class Service extends Service_base {
|
|
88
|
+
}
|
|
89
|
+
export declare const layer: Layer.Layer<Service, never, Global.Service | Database.Service | Bus.Service>;
|
|
90
|
+
export declare const node: import("@opencode-ai/util/effect/layer-node").Node<Service, never, import("@opencode-ai/util/effect/layer-node").Tag<"global">>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PersistentPty } from "./persistent-pty/index.js";
|
|
@@ -4,11 +4,13 @@ import type { SessionHooks } from "@opencode-ai/plugin/effect/session";
|
|
|
4
4
|
import type { ShellHooks } from "@opencode-ai/plugin/effect/shell";
|
|
5
5
|
import type { ToolFailures, ToolHooks } from "@opencode-ai/plugin/effect/tool";
|
|
6
6
|
import type { ModelHookOptions } from "@opencode-ai/plugin/effect/registration";
|
|
7
|
+
import type { PermissionHooks } from "@opencode-ai/plugin/effect/permission";
|
|
7
8
|
import { Context, Effect, Scope } from "effect";
|
|
8
9
|
import { State } from "../state.js";
|
|
9
10
|
export interface Domains {
|
|
10
11
|
readonly aisdk: AISDKHooks;
|
|
11
12
|
readonly session: SessionHooks;
|
|
13
|
+
readonly permission: PermissionHooks;
|
|
12
14
|
readonly shell: ShellHooks;
|
|
13
15
|
readonly tool: ToolHooks;
|
|
14
16
|
}
|
|
@@ -18,6 +20,7 @@ type NoFailures<Spec> = {
|
|
|
18
20
|
interface Failures extends Record<keyof Domains, unknown> {
|
|
19
21
|
readonly aisdk: NoFailures<AISDKHooks>;
|
|
20
22
|
readonly session: NoFailures<SessionHooks>;
|
|
23
|
+
readonly permission: NoFailures<PermissionHooks>;
|
|
21
24
|
readonly shell: NoFailures<ShellHooks>;
|
|
22
25
|
readonly tool: ToolFailures;
|
|
23
26
|
}
|
|
@@ -17,7 +17,10 @@ import { PluginRuntime } from "./runtime.js";
|
|
|
17
17
|
import { Reference } from "../reference.js";
|
|
18
18
|
import { Skill } from "../skill.js";
|
|
19
19
|
import { Tool } from "../tool.js";
|
|
20
|
+
import { Vcs } from "../vcs.js";
|
|
20
21
|
import { WebSearch } from "../websearch.js";
|
|
22
|
+
import { Generate } from "../generate.js";
|
|
23
|
+
import { Permission } from "../permission.js";
|
|
21
24
|
import { PluginHooks } from "./hooks.js";
|
|
22
25
|
import type { Interface } from "../plugin.js";
|
|
23
26
|
export declare const make: (plugin: Interface, pluginID?: string | undefined) => Effect.Effect<{
|
|
@@ -73,6 +76,11 @@ export declare const make: (plugin: Interface, pluginID?: string | undefined) =>
|
|
|
73
76
|
event: {
|
|
74
77
|
subscribe: () => Stream.Stream<EventManifest.ServerEvent, never, never>;
|
|
75
78
|
};
|
|
79
|
+
generate: {
|
|
80
|
+
text: (input: import("@opencode-ai/client/effect/api").GenerateTextInput) => Effect.Effect<{
|
|
81
|
+
text: string;
|
|
82
|
+
}, Generate.Error, never>;
|
|
83
|
+
};
|
|
76
84
|
integration: {
|
|
77
85
|
list: () => Effect.Effect<{
|
|
78
86
|
location: Location.Info;
|
|
@@ -203,6 +211,42 @@ export declare const make: (plugin: Interface, pluginID?: string | undefined) =>
|
|
|
203
211
|
reload: import("../state.js").Reload;
|
|
204
212
|
transform: (callback: (input: import("@opencode-ai/plugin/effect/mcp").MCPDraft) => void) => Effect.Effect<import("../state.js").Registration, never, import("effect/Scope").Scope>;
|
|
205
213
|
};
|
|
214
|
+
permission: {
|
|
215
|
+
hook: <Name extends "evaluate">(name: Name, callback: (input: import("@opencode-ai/plugin/effect/permission").PermissionHooks[Name]) => Effect.Effect<void, Record<"evaluate", never>[Name], never>) => Effect.Effect<import("../state.js").Registration, never, import("effect/Scope").Scope>;
|
|
216
|
+
list: (input: import("@opencode-ai/client/effect/api").PermissionListInput) => Effect.Effect<readonly {
|
|
217
|
+
readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
|
|
218
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
219
|
+
readonly action: string;
|
|
220
|
+
readonly resources: readonly string[];
|
|
221
|
+
readonly source?: {
|
|
222
|
+
readonly type: "tool";
|
|
223
|
+
readonly messageID: string;
|
|
224
|
+
readonly id: string;
|
|
225
|
+
} | undefined;
|
|
226
|
+
readonly metadata?: {
|
|
227
|
+
readonly [x: string]: unknown;
|
|
228
|
+
} | undefined;
|
|
229
|
+
readonly message?: string | undefined;
|
|
230
|
+
readonly save?: readonly string[] | undefined;
|
|
231
|
+
}[], never, never>;
|
|
232
|
+
get: (input: import("@opencode-ai/client/effect/api").PermissionGetInput) => Effect.Effect<{
|
|
233
|
+
readonly id: string & import("effect/Brand").Brand<"Permission.ID">;
|
|
234
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
235
|
+
readonly action: string;
|
|
236
|
+
readonly resources: readonly string[];
|
|
237
|
+
readonly source?: {
|
|
238
|
+
readonly type: "tool";
|
|
239
|
+
readonly messageID: string;
|
|
240
|
+
readonly id: string;
|
|
241
|
+
} | undefined;
|
|
242
|
+
readonly metadata?: {
|
|
243
|
+
readonly [x: string]: unknown;
|
|
244
|
+
} | undefined;
|
|
245
|
+
readonly message?: string | undefined;
|
|
246
|
+
readonly save?: readonly string[] | undefined;
|
|
247
|
+
}, Error, never>;
|
|
248
|
+
reply: (input: import("@opencode-ai/client/effect/api").PermissionReplyInput) => Effect.Effect<void, Error, never>;
|
|
249
|
+
};
|
|
206
250
|
plugin: {
|
|
207
251
|
list: () => Effect.Effect<{
|
|
208
252
|
location: Location.Info;
|
|
@@ -266,6 +310,26 @@ export declare const make: (plugin: Interface, pluginID?: string | undefined) =>
|
|
|
266
310
|
}, never, import("effect/Scope").Scope>;
|
|
267
311
|
hook: <Name extends keyof import("@opencode-ai/plugin/effect/tool").ToolHooks>(name: Name, callback: (input: import("@opencode-ai/plugin/effect/tool").ToolHooks[Name]) => Effect.Effect<void, import("@opencode-ai/plugin/effect/tool").ToolFailures[Name], never>) => Effect.Effect<import("../state.js").Registration, never, import("effect/Scope").Scope>;
|
|
268
312
|
};
|
|
313
|
+
vcs: {
|
|
314
|
+
get: () => Effect.Effect<{
|
|
315
|
+
location: Location.Info;
|
|
316
|
+
data: Vcs.Info;
|
|
317
|
+
}, never, never>;
|
|
318
|
+
branches: (input: import("@opencode-ai/client/effect/api").VcsBranchesInput | undefined) => Effect.Effect<{
|
|
319
|
+
location: Location.Info;
|
|
320
|
+
data: readonly string[];
|
|
321
|
+
}, never, never>;
|
|
322
|
+
status: () => Effect.Effect<{
|
|
323
|
+
location: Location.Info;
|
|
324
|
+
data: Vcs.FileStatus[];
|
|
325
|
+
}, never, never>;
|
|
326
|
+
diff: (input: import("@opencode-ai/client/effect/api").VcsDiffInput) => Effect.Effect<{
|
|
327
|
+
location: Location.Info;
|
|
328
|
+
data: import("@opencode-ai/schema/file-diff").Info[];
|
|
329
|
+
}, never, never>;
|
|
330
|
+
transform: import("../state.js").Transform<import("@opencode-ai/plugin/effect/vcs").VcsDraft>;
|
|
331
|
+
reload: import("../state.js").Reload;
|
|
332
|
+
};
|
|
269
333
|
websearch: {
|
|
270
334
|
providers: () => Effect.Effect<{
|
|
271
335
|
location: Location.Info;
|
|
@@ -330,6 +394,7 @@ export declare const make: (plugin: Interface, pluginID?: string | undefined) =>
|
|
|
330
394
|
interrupted: boolean;
|
|
331
395
|
}, never, never>;
|
|
332
396
|
wait: (input: import("@opencode-ai/client/effect/api").SessionWaitInput) => Effect.Effect<void, import("../session.js").NotFoundError, never>;
|
|
397
|
+
context: (input: import("@opencode-ai/client/effect/api").SessionContextInput) => Effect.Effect<import("@opencode-ai/schema/session-message").Info[], import("../session.js").NotFoundError | import("../session.js").MessageDecodeError, never>;
|
|
333
398
|
};
|
|
334
|
-
}, never, Bus.Service | Location.Service | Agent.Service | AISDK.Service | Integration.Service | Catalog.Service | Command.Service | KV.Service | MCP.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service |
|
|
399
|
+
}, never, Bus.Service | Location.Service | Agent.Service | AISDK.Service | Integration.Service | Catalog.Service | Command.Service | KV.Service | Generate.Service | MCP.Service | PluginHooks.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | Vcs.Service>;
|
|
335
400
|
export declare function storage(kv: KV.Interface, pluginID: string): Plugin.Context["storage"];
|
|
@@ -45,12 +45,12 @@ import { Tool } from "../tool.js";
|
|
|
45
45
|
import { ToolOutput } from "../tool-output.js";
|
|
46
46
|
import { WellKnown } from "../wellknown.js";
|
|
47
47
|
import { PluginRuntime } from "./runtime.js";
|
|
48
|
-
declare const services: () => Effect.Effect<Context.Context<Global.Service | HttpClient.HttpClient | FSUtil.Service | AppProcess.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Catalog.Service | Command.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | Environment.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | ConfigPluginSource.Service | MCP.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | LocationMutation.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service |
|
|
48
|
+
declare const services: () => Effect.Effect<Context.Context<Global.Service | HttpClient.HttpClient | FSUtil.Service | AppProcess.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Catalog.Service | Command.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | Environment.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | ConfigPluginSource.Service | MCP.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | LocationMutation.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | ShellSelect.Service | LocationWatcherPolicy.Service | SessionCompaction.Service | Snapshot.Service | SkillDiscovery.Service | ToolOutput.Service>, never, Global.Service | HttpClient.HttpClient | FSUtil.Service | AppProcess.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Catalog.Service | Command.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | Environment.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | ConfigPluginSource.Service | MCP.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | LocationMutation.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | ShellSelect.Service | LocationWatcherPolicy.Service | SessionCompaction.Service | Snapshot.Service | SkillDiscovery.Service | ToolOutput.Service>;
|
|
49
49
|
type ContextServices<A> = A extends Context.Context<infer R> ? R : never;
|
|
50
50
|
export type Requirements = ContextServices<Effect.Success<ReturnType<typeof services>>>;
|
|
51
|
-
export declare const requirements: LayerNode.Node<Global.Service | HttpClient.HttpClient | FSUtil.Service | AppProcess.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Catalog.Service | Command.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | Environment.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | ConfigPluginSource.Service | MCP.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | LocationMutation.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service |
|
|
51
|
+
export declare const requirements: LayerNode.Node<Global.Service | HttpClient.HttpClient | FSUtil.Service | AppProcess.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Catalog.Service | Command.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | Environment.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | ConfigPluginSource.Service | MCP.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | LocationMutation.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | ShellSelect.Service | LocationWatcherPolicy.Service | SessionCompaction.Service | Snapshot.Service | SkillDiscovery.Service | ToolOutput.Service, never, LayerNode.Tag<"global"> | LayerNode.Tag<"location">>;
|
|
52
52
|
export type InternalPlugin = Plugin<Requirements | Scope.Scope>;
|
|
53
53
|
export declare const list: () => Effect.Effect<{
|
|
54
54
|
pre: Plugin<Scope.Scope>[];
|
|
55
55
|
post: Plugin<Scope.Scope>[];
|
|
56
|
-
}, never, Global.Service | HttpClient.HttpClient | FSUtil.Service | AppProcess.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Catalog.Service | Command.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | Environment.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | ConfigPluginSource.Service | MCP.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | LocationMutation.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service |
|
|
56
|
+
}, never, Global.Service | HttpClient.HttpClient | FSUtil.Service | AppProcess.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Catalog.Service | Command.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | Environment.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | ConfigPluginSource.Service | MCP.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | LocationMutation.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | ShellSelect.Service | LocationWatcherPolicy.Service | SessionCompaction.Service | Snapshot.Service | SkillDiscovery.Service | ToolOutput.Service>;
|
|
@@ -8,7 +8,7 @@ import { LocationServiceMap } from "../location-service-map.js";
|
|
|
8
8
|
import { MCP } from "../mcp/index.js";
|
|
9
9
|
import { Session } from "../session.js";
|
|
10
10
|
export interface Interface {
|
|
11
|
-
readonly session: Pick<Session.Interface, "get" | "create" | "messages" | "prompt" | "generate" | "command" | "rename" | "resume" | "switchAgent" | "switchModel" | "interrupt" | "synthetic" | "wait">;
|
|
11
|
+
readonly session: Pick<Session.Interface, "get" | "create" | "messages" | "prompt" | "generate" | "command" | "rename" | "resume" | "switchAgent" | "switchModel" | "interrupt" | "synthetic" | "wait" | "context">;
|
|
12
12
|
readonly job: Pick<Job.Interface, "start" | "wait" | "block" | "background" | "cancel">;
|
|
13
13
|
readonly location: {
|
|
14
14
|
readonly agent: {
|
|
@@ -7,5 +7,5 @@ import { Npm } from "@opencode-ai/util/npm";
|
|
|
7
7
|
import { Plugin } from "../plugin.js";
|
|
8
8
|
import { SdkPlugins } from "./sdk.js";
|
|
9
9
|
import { Service } from "./supervisor-service.js";
|
|
10
|
-
export declare const layer: Layer.Layer<Service, never, import("@opencode-ai/util/global").Service | import("effect/unstable/http/HttpClient").HttpClient | import("@opencode-ai/util/fs-util").FSUtil.Service | import("@opencode-ai/util/process").Service | Bus.Service | import("../location.js").Service | import("../agent.js").Service | Npm.Service | import("../credential.js").Service | import("../form.js").Service | import("../integration.js").Service | import("../catalog.js").Service | import("../command.js").Service | import("../filesystem/watcher.js").Service | import("../kv.js").Service | import("../wellknown.js").Service | import("../config.js").Service | import("../environment/environment.js").Service | import("../file-mutation.js").Service | import("../ripgrep.js").Service | import("../filesystem.js").Service | import("../formatter.js").Service | import("../image.js").Service | import("../instruction-discovery.js").Service | ConfigPluginSource.Service | import("../mcp/index.js").Service | import("../permission.js").Service | import("../reference.js").Service | import("../websearch.js").Service | Plugin.Service | import("./runtime.js").Service | import("../skill.js").Service | import("../tool.js").Service | SdkPlugins.Service | import("../models-dev.js").Service | import("../location-mutation.js").Service | import("../tool/read-filesystem.js").Service | import("../session/instructions.js").Service | import("../shell.js").Service | import("../
|
|
10
|
+
export declare const layer: Layer.Layer<Service, never, import("@opencode-ai/util/global").Service | import("effect/unstable/http/HttpClient").HttpClient | import("@opencode-ai/util/fs-util").FSUtil.Service | import("@opencode-ai/util/process").Service | Bus.Service | import("../location.js").Service | import("../agent.js").Service | Npm.Service | import("../credential.js").Service | import("../form.js").Service | import("../integration.js").Service | import("../catalog.js").Service | import("../command.js").Service | import("../filesystem/watcher.js").Service | import("../kv.js").Service | import("../wellknown.js").Service | import("../config.js").Service | import("../environment/environment.js").Service | import("../file-mutation.js").Service | import("../ripgrep.js").Service | import("../filesystem.js").Service | import("../formatter.js").Service | import("../image.js").Service | import("../instruction-discovery.js").Service | ConfigPluginSource.Service | import("../mcp/index.js").Service | import("../permission.js").Service | import("../reference.js").Service | import("../websearch.js").Service | Plugin.Service | import("./runtime.js").Service | import("../skill.js").Service | import("../tool.js").Service | SdkPlugins.Service | import("../models-dev.js").Service | import("../location-mutation.js").Service | import("../tool/read-filesystem.js").Service | import("../session/instructions.js").Service | import("../shell.js").Service | import("../shell/select.js").Service | import("../filesystem/location-watcher-policy.js").Service | import("../session/compaction.js").Service | import("../snapshot.js").Service | import("../skill/discovery.js").Service | import("../tool-output.js").Service>;
|
|
11
11
|
export declare const node: import("@opencode-ai/util/effect/layer-node").Node<Service, never, import("@opencode-ai/util/effect/layer-node").Tag<"location">>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * as VcsGitPlugin from "./git.js";
|
|
2
|
+
import { AppProcess } from "@opencode-ai/util/process";
|
|
3
|
+
import { Location } from "../../location.js";
|
|
4
|
+
export declare const Plugin: import("@opencode-ai/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | AppProcess.Service | Location.Service>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * as VcsHgPlugin from "./hg.js";
|
|
2
|
+
import { FSUtil } from "@opencode-ai/util/fs-util";
|
|
3
|
+
import { AppProcess } from "@opencode-ai/util/process";
|
|
4
|
+
import { Location } from "../../location.js";
|
|
5
|
+
export declare const Plugin: import("@opencode-ai/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | FSUtil.Service | AppProcess.Service | Location.Service>;
|
|
@@ -42,6 +42,203 @@ export declare const Info: Schema.Struct<{
|
|
|
42
42
|
}>;
|
|
43
43
|
export interface Info extends Schema.Schema.Type<typeof Info> {
|
|
44
44
|
}
|
|
45
|
+
export declare const UpdateInput: Schema.Struct<{
|
|
46
|
+
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
47
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
48
|
+
};
|
|
49
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
50
|
+
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
51
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
52
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
53
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
54
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
55
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
56
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
57
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
58
|
+
}>>, never, never>;
|
|
59
|
+
readonly commands: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
60
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
61
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
62
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
63
|
+
}>>, never, never>;
|
|
64
|
+
}>;
|
|
65
|
+
export type UpdateInput = typeof UpdateInput.Type;
|
|
66
|
+
export declare const Event: {
|
|
67
|
+
Updated: Schema.Struct<{
|
|
68
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
69
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
70
|
+
};
|
|
71
|
+
readonly created: Schema.Finite;
|
|
72
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
73
|
+
readonly type: Schema.Literal<"project.updated">;
|
|
74
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
75
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
76
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
77
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
78
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
79
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
80
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
81
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
82
|
+
}>, never, never>;
|
|
83
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
84
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
85
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
86
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
87
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
88
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
89
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
90
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
91
|
+
}>, never, never>;
|
|
92
|
+
}>>, never, never>;
|
|
93
|
+
readonly data: Schema.Struct<{
|
|
94
|
+
readonly id: Schema.brand<Schema.String, "Project.ID"> & {
|
|
95
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
96
|
+
};
|
|
97
|
+
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
98
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
|
|
99
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
100
|
+
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
101
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
102
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
103
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
104
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
105
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
106
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
107
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
108
|
+
}>>, never, never>;
|
|
109
|
+
readonly commands: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
110
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
111
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
112
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
113
|
+
}>>, never, never>;
|
|
114
|
+
readonly time: Schema.Struct<{
|
|
115
|
+
readonly created: Schema.Int;
|
|
116
|
+
readonly updated: Schema.Int;
|
|
117
|
+
readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
118
|
+
}>;
|
|
119
|
+
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
120
|
+
}>;
|
|
121
|
+
}> & {
|
|
122
|
+
type: "project.updated";
|
|
123
|
+
durability: "ephemeral";
|
|
124
|
+
durable: undefined;
|
|
125
|
+
data: Schema.Struct<{
|
|
126
|
+
readonly id: Schema.brand<Schema.String, "Project.ID"> & {
|
|
127
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
128
|
+
};
|
|
129
|
+
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
130
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
|
|
131
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
132
|
+
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
133
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
134
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
135
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
136
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
137
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
138
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
139
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
140
|
+
}>>, never, never>;
|
|
141
|
+
readonly commands: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
142
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
143
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
144
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
145
|
+
}>>, never, never>;
|
|
146
|
+
readonly time: Schema.Struct<{
|
|
147
|
+
readonly created: Schema.Int;
|
|
148
|
+
readonly updated: Schema.Int;
|
|
149
|
+
readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
150
|
+
}>;
|
|
151
|
+
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
152
|
+
}>;
|
|
153
|
+
};
|
|
154
|
+
Definitions: readonly [Schema.Struct<{
|
|
155
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
156
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
157
|
+
};
|
|
158
|
+
readonly created: Schema.Finite;
|
|
159
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
160
|
+
readonly type: Schema.Literal<"project.updated">;
|
|
161
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
162
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
163
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
164
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
165
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
166
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
167
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
168
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
169
|
+
}>, never, never>;
|
|
170
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
171
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
172
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
173
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
174
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
175
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
176
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
177
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
178
|
+
}>, never, never>;
|
|
179
|
+
}>>, never, never>;
|
|
180
|
+
readonly data: Schema.Struct<{
|
|
181
|
+
readonly id: Schema.brand<Schema.String, "Project.ID"> & {
|
|
182
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
183
|
+
};
|
|
184
|
+
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
185
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
|
|
186
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
187
|
+
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
188
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
189
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
190
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
191
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
192
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
193
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
194
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
195
|
+
}>>, never, never>;
|
|
196
|
+
readonly commands: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
197
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
198
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
199
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
200
|
+
}>>, never, never>;
|
|
201
|
+
readonly time: Schema.Struct<{
|
|
202
|
+
readonly created: Schema.Int;
|
|
203
|
+
readonly updated: Schema.Int;
|
|
204
|
+
readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
205
|
+
}>;
|
|
206
|
+
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
207
|
+
}>;
|
|
208
|
+
}> & {
|
|
209
|
+
type: "project.updated";
|
|
210
|
+
durability: "ephemeral";
|
|
211
|
+
durable: undefined;
|
|
212
|
+
data: Schema.Struct<{
|
|
213
|
+
readonly id: Schema.brand<Schema.String, "Project.ID"> & {
|
|
214
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
215
|
+
};
|
|
216
|
+
readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
|
|
217
|
+
readonly vcs: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["git", "hg"]>>>, Schema.optionalKey<Schema.Literals<readonly ["git", "hg"]>>, never, never>;
|
|
218
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
219
|
+
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
220
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
221
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
222
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
223
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
224
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
225
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
226
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
227
|
+
}>>, never, never>;
|
|
228
|
+
readonly commands: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
229
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
230
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
231
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
232
|
+
}>>, never, never>;
|
|
233
|
+
readonly time: Schema.Struct<{
|
|
234
|
+
readonly created: Schema.Int;
|
|
235
|
+
readonly updated: Schema.Int;
|
|
236
|
+
readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
237
|
+
}>;
|
|
238
|
+
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
239
|
+
}>;
|
|
240
|
+
}];
|
|
241
|
+
};
|
|
45
242
|
export declare const Vcs: Schema.Union<readonly [Schema.Struct<{
|
|
46
243
|
readonly type: Schema.Literal<"git">;
|
|
47
244
|
readonly store: Schema.brand<Schema.String, "AbsolutePath">;
|
package/dist/types/project.d.ts
CHANGED
|
@@ -53,6 +53,34 @@ export declare const Info: Schema.Struct<{
|
|
|
53
53
|
}>;
|
|
54
54
|
export interface Info extends Schema.Schema.Type<typeof Info> {
|
|
55
55
|
}
|
|
56
|
+
export declare const UpdateInput: Schema.Struct<{
|
|
57
|
+
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
58
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
59
|
+
};
|
|
60
|
+
readonly name: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
61
|
+
readonly icon: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
62
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
63
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
64
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
65
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
66
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
67
|
+
readonly override: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
68
|
+
readonly color: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
69
|
+
}>>, never, never>;
|
|
70
|
+
readonly commands: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
71
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
72
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
73
|
+
readonly start: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
74
|
+
}>>, never, never>;
|
|
75
|
+
}>;
|
|
76
|
+
export type UpdateInput = ProjectSchema.UpdateInput;
|
|
77
|
+
declare const NotFoundError_base: Schema.Class<NotFoundError, Schema.TaggedStruct<"Project.NotFoundError", {
|
|
78
|
+
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
79
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
80
|
+
};
|
|
81
|
+
}>, import("effect/Cause").YieldableError>;
|
|
82
|
+
export declare class NotFoundError extends NotFoundError_base {
|
|
83
|
+
}
|
|
56
84
|
export interface Resolved {
|
|
57
85
|
readonly previous?: ID;
|
|
58
86
|
readonly id: ID;
|
|
@@ -63,6 +91,7 @@ export interface Resolved {
|
|
|
63
91
|
export declare const root: (fs: FSUtil.Interface, input: string & import("effect/Brand").Brand<"AbsolutePath">) => Effect.Effect<(string & import("effect/Brand").Brand<"AbsolutePath">) | undefined, never, never>;
|
|
64
92
|
export interface Interface {
|
|
65
93
|
readonly list: () => Effect.Effect<ReadonlyArray<Info>>;
|
|
94
|
+
readonly update: (input: UpdateInput) => Effect.Effect<Info, NotFoundError>;
|
|
66
95
|
readonly resolve: (input: AbsolutePath) => Effect.Effect<Resolved>;
|
|
67
96
|
}
|
|
68
97
|
declare const Service_base: Context.ServiceClass<Service, "@opencode/Project", Interface>;
|
|
@@ -9,11 +9,12 @@ import { SessionRunnerModel } from "./runner/model.js";
|
|
|
9
9
|
import { SessionSchema } from "./schema.js";
|
|
10
10
|
import { SessionStore } from "./store.js";
|
|
11
11
|
export interface Interface {
|
|
12
|
-
/** Generates
|
|
13
|
-
readonly
|
|
12
|
+
/** Generates an initial title or regenerates one from bounded conversation history. */
|
|
13
|
+
readonly generate: (sessionID: SessionSchema.ID) => Effect.Effect<void>;
|
|
14
14
|
}
|
|
15
15
|
declare const Service_base: Context.ServiceClass<Service, "@opencode/SessionTitle", Interface>;
|
|
16
16
|
export declare class Service extends Service_base {
|
|
17
17
|
}
|
|
18
|
+
export declare const isUntitled: (session: SessionSchema.Info) => boolean;
|
|
18
19
|
export declare const layer: Layer.Layer<Service, never, Database.Service | Bus.Service | Agent.Service | import("@opencode-ai/ai").LLMClientService | Catalog.Service | SessionRunnerModel.Service | SessionStore.Service | SessionModelRequest.Service>;
|
|
19
20
|
export declare const node: import("@opencode-ai/util/effect/layer-node").Node<Service, never, import("@opencode-ai/util/effect/layer-node").Tag<"location">>;
|
|
@@ -13,8 +13,11 @@ export type Options = typeof Options.Type;
|
|
|
13
13
|
export type Draft = {
|
|
14
14
|
configure: (shell: string) => void;
|
|
15
15
|
};
|
|
16
|
+
export type ResolveInput = {
|
|
17
|
+
priority: "config" | "compat";
|
|
18
|
+
};
|
|
16
19
|
export interface Interface extends State.Transformable<Draft> {
|
|
17
|
-
readonly
|
|
20
|
+
readonly resolve: (input: ResolveInput) => Effect.Effect<string>;
|
|
18
21
|
}
|
|
19
22
|
declare const Service_base: Context.ServiceClass<Service, "@opencode/ShellSelect", Interface>;
|
|
20
23
|
export declare class Service extends Service_base {
|
|
@@ -24,12 +27,8 @@ export declare function name(file: string): string;
|
|
|
24
27
|
export declare function login(file: string): boolean;
|
|
25
28
|
export declare function ps(file: string): boolean;
|
|
26
29
|
export declare function args(file: string, command: string): string[];
|
|
27
|
-
export declare function
|
|
28
|
-
export declare namespace
|
|
29
|
-
var reset: () => void;
|
|
30
|
-
}
|
|
31
|
-
export declare function acceptable(configShell?: string, options?: Options, bin?: string): string;
|
|
32
|
-
export declare namespace acceptable {
|
|
30
|
+
export declare function resolve(input: ResolveInput, configShell?: string, options?: Options, bin?: string): string;
|
|
31
|
+
export declare namespace resolve {
|
|
33
32
|
var reset: () => void;
|
|
34
33
|
}
|
|
35
34
|
export declare function list(options?: Options, bin?: string): Promise<Item[]>;
|
package/dist/types/shell.d.ts
CHANGED
|
@@ -15,6 +15,9 @@ export declare class NotFoundError extends NotFoundError_base {
|
|
|
15
15
|
}
|
|
16
16
|
export declare const RETENTION: Duration.Duration;
|
|
17
17
|
export declare const DIRECTORY = "shell";
|
|
18
|
+
type CreateInput = Shell.CreateInput & {
|
|
19
|
+
shell?: string;
|
|
20
|
+
};
|
|
18
21
|
/**
|
|
19
22
|
* Location-owned non-interactive shell command process service.
|
|
20
23
|
*
|
|
@@ -24,8 +27,7 @@ export declare const DIRECTORY = "shell";
|
|
|
24
27
|
* here; callers (e.g. `ShellTool`) own that association and store the shell ID.
|
|
25
28
|
*/
|
|
26
29
|
export interface Interface {
|
|
27
|
-
readonly
|
|
28
|
-
readonly create: <E = never, R = never>(input: Shell.CreateInput, before?: (input: ShellCreateBefore) => Effect.Effect<void, E, R>) => Effect.Effect<Shell.Info, E | AppProcess.AppProcessError, R>;
|
|
30
|
+
readonly create: <E = never, R = never>(input: CreateInput, before?: (input: ShellCreateBefore) => Effect.Effect<void, E, R>) => Effect.Effect<Shell.Info, E | AppProcess.AppProcessError, R>;
|
|
29
31
|
readonly list: () => Effect.Effect<Shell.Info[]>;
|
|
30
32
|
readonly get: (id: Shell.ID) => Effect.Effect<Shell.Info, NotFoundError>;
|
|
31
33
|
readonly wait: (id: Shell.ID) => Effect.Effect<Shell.Info, NotFoundError>;
|