@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,429 @@
|
|
|
1
|
+
// src/persistent-pty/daemon.ts
|
|
2
|
+
import { spawn } from "node:child_process";
|
|
3
|
+
import { readFile } from "node:fs/promises";
|
|
4
|
+
import net from "node:net";
|
|
5
|
+
import path from "node:path";
|
|
6
|
+
import { Data, Duration, Effect, Schema, Semaphore } from "effect";
|
|
7
|
+
var ProtocolVersion = 6;
|
|
8
|
+
var MaxFrameBytes = 8 * 1024 * 1024;
|
|
9
|
+
var Lifecycle = Schema.Union([
|
|
10
|
+
Schema.Struct({ status: Schema.Literal("running") }),
|
|
11
|
+
Schema.Struct({ status: Schema.Literal("exited"), exit_code: Schema.NullOr(Schema.Number) }),
|
|
12
|
+
Schema.Struct({ status: Schema.Literal("failed"), message: Schema.String })
|
|
13
|
+
]);
|
|
14
|
+
var WireTerminal = Schema.Struct({
|
|
15
|
+
id: Schema.Number,
|
|
16
|
+
pid: Schema.NullOr(Schema.Number),
|
|
17
|
+
title: Schema.String,
|
|
18
|
+
foreground_process: Schema.NullOr(Schema.String),
|
|
19
|
+
group_id: Schema.String,
|
|
20
|
+
command: Schema.Array(Schema.String),
|
|
21
|
+
cwd: Schema.String,
|
|
22
|
+
cols: Schema.Number,
|
|
23
|
+
rows: Schema.Number,
|
|
24
|
+
lifecycle: Lifecycle,
|
|
25
|
+
output_head: Schema.Number,
|
|
26
|
+
output_tail: Schema.Number
|
|
27
|
+
});
|
|
28
|
+
var Registration = Schema.Struct({
|
|
29
|
+
instance_id: Schema.String,
|
|
30
|
+
pid: Schema.Number,
|
|
31
|
+
protocol: Schema.Number,
|
|
32
|
+
socket: Schema.String,
|
|
33
|
+
token: Schema.String
|
|
34
|
+
});
|
|
35
|
+
var WireResponse = Schema.Union([
|
|
36
|
+
Schema.Struct({
|
|
37
|
+
type: Schema.Literal("pong"),
|
|
38
|
+
instance_id: Schema.String,
|
|
39
|
+
pid: Schema.Number,
|
|
40
|
+
protocol: Schema.Number
|
|
41
|
+
}),
|
|
42
|
+
Schema.Struct({ type: Schema.Literal("created"), terminal: WireTerminal }),
|
|
43
|
+
Schema.Struct({ type: Schema.Literal("terminals"), terminals: Schema.Array(WireTerminal) }),
|
|
44
|
+
Schema.Struct({ type: Schema.Literal("ok") }),
|
|
45
|
+
Schema.Struct({
|
|
46
|
+
type: Schema.Literal("snapshot"),
|
|
47
|
+
terminal: WireTerminal,
|
|
48
|
+
text: Schema.String,
|
|
49
|
+
checkpoint_base64: Schema.String,
|
|
50
|
+
cursor_x: Schema.Number,
|
|
51
|
+
cursor_y: Schema.Number
|
|
52
|
+
}),
|
|
53
|
+
Schema.Struct({
|
|
54
|
+
type: Schema.Literal("attached"),
|
|
55
|
+
terminal: WireTerminal,
|
|
56
|
+
role: Schema.Literals(["controller", "observer"]),
|
|
57
|
+
generation: Schema.Number,
|
|
58
|
+
requested_offset: Schema.Number,
|
|
59
|
+
available_offset: Schema.Number,
|
|
60
|
+
end_offset: Schema.Number,
|
|
61
|
+
truncated: Schema.Boolean,
|
|
62
|
+
replay_base64: Schema.String
|
|
63
|
+
}),
|
|
64
|
+
Schema.Struct({
|
|
65
|
+
type: Schema.Literal("resized"),
|
|
66
|
+
cols: Schema.Number,
|
|
67
|
+
rows: Schema.Number,
|
|
68
|
+
generation: Schema.Number,
|
|
69
|
+
checkpoint_base64: Schema.String
|
|
70
|
+
}),
|
|
71
|
+
Schema.Struct({
|
|
72
|
+
type: Schema.Literal("exited"),
|
|
73
|
+
exit_code: Schema.NullOr(Schema.Number),
|
|
74
|
+
final_offset: Schema.Number
|
|
75
|
+
}),
|
|
76
|
+
Schema.Struct({
|
|
77
|
+
type: Schema.Literal("controller_changed"),
|
|
78
|
+
attachment_id: Schema.NullOr(Schema.String),
|
|
79
|
+
generation: Schema.Number
|
|
80
|
+
}),
|
|
81
|
+
Schema.Struct({ type: Schema.Literal("title_changed"), title: Schema.String }),
|
|
82
|
+
Schema.Struct({ type: Schema.Literal("foreground_process_changed"), process: Schema.NullOr(Schema.String) }),
|
|
83
|
+
Schema.Struct({ type: Schema.Literal("error"), message: Schema.String })
|
|
84
|
+
]);
|
|
85
|
+
|
|
86
|
+
class DaemonError extends Data.TaggedError("PersistentPty.DaemonError") {
|
|
87
|
+
}
|
|
88
|
+
var makeDaemonTransport = Effect.fn("PersistentPty.makeDaemonTransport")(function* (directory, binary = () => Promise.resolve(process.env.OPENCODE_PTY_BIN || "opencode-pty")) {
|
|
89
|
+
const startup = Semaphore.makeUnsafe(1);
|
|
90
|
+
let registration;
|
|
91
|
+
const discover = Effect.fn("PersistentPty.daemon.discover")(function* () {
|
|
92
|
+
const value = yield* Effect.tryPromise({
|
|
93
|
+
try: () => readFile(path.join(directory, "service.json"), "utf8"),
|
|
94
|
+
catch: (cause) => failure("connect", cause)
|
|
95
|
+
});
|
|
96
|
+
const decoded = yield* Effect.try({
|
|
97
|
+
try: () => Schema.decodeUnknownSync(Registration)(JSON.parse(value)),
|
|
98
|
+
catch: (cause) => failure("protocol", cause)
|
|
99
|
+
});
|
|
100
|
+
if (decoded.protocol !== ProtocolVersion)
|
|
101
|
+
return yield* Effect.fail(new DaemonError({
|
|
102
|
+
kind: "protocol",
|
|
103
|
+
message: `opencode-pty protocol mismatch: daemon=${decoded.protocol}, client=${ProtocolVersion}`,
|
|
104
|
+
pid: decoded.pid
|
|
105
|
+
}));
|
|
106
|
+
const response = yield* oneShot(decoded, { op: "ping" });
|
|
107
|
+
if (response.type !== "pong" || response.instance_id !== decoded.instance_id || response.pid !== decoded.pid || response.protocol !== ProtocolVersion)
|
|
108
|
+
return yield* Effect.fail(new DaemonError({ kind: "protocol", message: "opencode-pty registration mismatch" }));
|
|
109
|
+
return decoded;
|
|
110
|
+
});
|
|
111
|
+
const start = Effect.fn("PersistentPty.daemon.start")(function* () {
|
|
112
|
+
const executable = yield* Effect.tryPromise({ try: binary, catch: (cause) => failure("spawn", cause) });
|
|
113
|
+
yield* Effect.tryPromise({
|
|
114
|
+
try: () => new Promise((resolve, reject) => {
|
|
115
|
+
const child = spawn(executable, ["daemon"], {
|
|
116
|
+
detached: true,
|
|
117
|
+
stdio: "ignore",
|
|
118
|
+
env: { ...process.env, OPENCODE_PTY_RUNTIME_DIR: directory }
|
|
119
|
+
});
|
|
120
|
+
child.once("spawn", () => {
|
|
121
|
+
child.unref();
|
|
122
|
+
resolve();
|
|
123
|
+
});
|
|
124
|
+
child.once("error", reject);
|
|
125
|
+
}),
|
|
126
|
+
catch: (cause) => failure("spawn", cause)
|
|
127
|
+
});
|
|
128
|
+
const deadline = Date.now() + 5000;
|
|
129
|
+
let last;
|
|
130
|
+
while (Date.now() < deadline) {
|
|
131
|
+
const found = yield* discover().pipe(Effect.map((value) => ({ value })), Effect.catch((error) => {
|
|
132
|
+
last = error;
|
|
133
|
+
return Effect.succeed(undefined);
|
|
134
|
+
}));
|
|
135
|
+
if (found)
|
|
136
|
+
return found.value;
|
|
137
|
+
yield* Effect.sleep(50);
|
|
138
|
+
}
|
|
139
|
+
return yield* Effect.fail(last ?? new DaemonError({ kind: "connect", message: "opencode-pty did not become ready" }));
|
|
140
|
+
});
|
|
141
|
+
const connect = Effect.fn("PersistentPty.daemon.connect")(function* (shouldStart) {
|
|
142
|
+
if (registration)
|
|
143
|
+
return registration;
|
|
144
|
+
return yield* startup.withPermit(Effect.gen(function* () {
|
|
145
|
+
if (registration)
|
|
146
|
+
return registration;
|
|
147
|
+
const found = yield* discover().pipe(Effect.catch((error) => {
|
|
148
|
+
if (!shouldStart)
|
|
149
|
+
return Effect.fail(error);
|
|
150
|
+
if (error.kind === "connect")
|
|
151
|
+
return start();
|
|
152
|
+
if (error.kind !== "protocol" || error.pid === undefined)
|
|
153
|
+
return Effect.fail(error);
|
|
154
|
+
return terminate(error.pid).pipe(Effect.andThen(start()));
|
|
155
|
+
}));
|
|
156
|
+
registration = found;
|
|
157
|
+
return found;
|
|
158
|
+
}));
|
|
159
|
+
});
|
|
160
|
+
const attempt = Effect.fn("PersistentPty.daemon.request-attempt")(function* (value, shouldStart) {
|
|
161
|
+
const current = yield* connect(shouldStart);
|
|
162
|
+
return yield* oneShot(current, value).pipe(Effect.catch((error) => {
|
|
163
|
+
if (error.kind === "registration" && registration === current)
|
|
164
|
+
registration = undefined;
|
|
165
|
+
return Effect.fail(error);
|
|
166
|
+
}));
|
|
167
|
+
});
|
|
168
|
+
const request = Effect.fn("PersistentPty.daemon.request")(function* (value, shouldStart = false) {
|
|
169
|
+
return yield* attempt(value, shouldStart).pipe(Effect.catch((error) => {
|
|
170
|
+
if (error.kind === "registration")
|
|
171
|
+
return attempt(value, shouldStart);
|
|
172
|
+
if (error.kind !== "connect")
|
|
173
|
+
return Effect.fail(error);
|
|
174
|
+
registration = undefined;
|
|
175
|
+
if (!shouldStart)
|
|
176
|
+
return Effect.fail(error);
|
|
177
|
+
return attempt(value, true);
|
|
178
|
+
}));
|
|
179
|
+
});
|
|
180
|
+
const requestIfRunning = (value) => request(value).pipe(Effect.catch((error) => error.kind === "connect" ? Effect.succeed(undefined) : Effect.fail(error)));
|
|
181
|
+
const shutdown = Effect.gen(function* () {
|
|
182
|
+
const response = yield* requestIfRunning({ op: "shutdown" });
|
|
183
|
+
registration = undefined;
|
|
184
|
+
if (!response)
|
|
185
|
+
return;
|
|
186
|
+
const deadline = Date.now() + 5000;
|
|
187
|
+
while (Date.now() < deadline) {
|
|
188
|
+
const running = yield* discover().pipe(Effect.as(true), Effect.orElseSucceed(() => false));
|
|
189
|
+
if (!running)
|
|
190
|
+
return response;
|
|
191
|
+
yield* Effect.sleep(50);
|
|
192
|
+
}
|
|
193
|
+
return yield* Effect.fail(new DaemonError({ kind: "connect", message: "opencode-pty did not stop" }));
|
|
194
|
+
});
|
|
195
|
+
const subscribe = Effect.fn("PersistentPty.daemon.subscribe")(function* (id, input) {
|
|
196
|
+
const attempt2 = Effect.gen(function* () {
|
|
197
|
+
const current = yield* connect(false);
|
|
198
|
+
return yield* Effect.tryPromise({
|
|
199
|
+
try: () => subscribePromise(current, id, input),
|
|
200
|
+
catch: (cause) => cause instanceof DaemonError ? cause : failure("connect", cause)
|
|
201
|
+
}).pipe(Effect.catch((error) => {
|
|
202
|
+
if (error.kind === "registration" && registration === current)
|
|
203
|
+
registration = undefined;
|
|
204
|
+
return Effect.fail(error);
|
|
205
|
+
}));
|
|
206
|
+
});
|
|
207
|
+
return yield* attempt2.pipe(Effect.catch((error) => error.kind === "registration" ? attempt2 : Effect.fail(error)));
|
|
208
|
+
});
|
|
209
|
+
return { request, requestIfRunning, shutdown, subscribe };
|
|
210
|
+
});
|
|
211
|
+
var oneShot = Effect.fn("PersistentPty.daemon.oneShot")(function* (registration, request) {
|
|
212
|
+
const payload = yield* Effect.try({
|
|
213
|
+
try: () => encode({ token: registration.token, request }),
|
|
214
|
+
catch: (cause) => failure("protocol", cause)
|
|
215
|
+
});
|
|
216
|
+
let dispatched = false;
|
|
217
|
+
return yield* Effect.acquireUseRelease(Effect.tryPromise({
|
|
218
|
+
try: (signal) => new Promise((resolve, reject) => {
|
|
219
|
+
const socket = net.createConnection({ path: registration.socket, signal });
|
|
220
|
+
socket.once("connect", () => resolve(socket));
|
|
221
|
+
socket.once("error", reject);
|
|
222
|
+
}),
|
|
223
|
+
catch: (cause) => failure("connect", cause)
|
|
224
|
+
}), (socket) => Effect.gen(function* () {
|
|
225
|
+
yield* Effect.try({
|
|
226
|
+
try: () => {
|
|
227
|
+
dispatched = true;
|
|
228
|
+
socket.write(payload);
|
|
229
|
+
},
|
|
230
|
+
catch: (cause) => failure("response", cause)
|
|
231
|
+
});
|
|
232
|
+
const first = yield* Effect.tryPromise({
|
|
233
|
+
try: async (signal) => {
|
|
234
|
+
const frames = decoder(socket);
|
|
235
|
+
const abort = () => socket.destroy();
|
|
236
|
+
signal.addEventListener("abort", abort, { once: true });
|
|
237
|
+
try {
|
|
238
|
+
const frame = await frames.next();
|
|
239
|
+
if (frame.done)
|
|
240
|
+
throw new Error("opencode-pty closed without response");
|
|
241
|
+
return frame.value;
|
|
242
|
+
} finally {
|
|
243
|
+
signal.removeEventListener("abort", abort);
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
catch: (cause) => failure("response", cause)
|
|
247
|
+
});
|
|
248
|
+
const response = yield* Effect.try({
|
|
249
|
+
try: () => decode(first),
|
|
250
|
+
catch: (cause) => failure("protocol", cause)
|
|
251
|
+
});
|
|
252
|
+
if (response.type === "error")
|
|
253
|
+
return yield* Effect.fail(new DaemonError({
|
|
254
|
+
kind: response.message === "authentication failed" ? "registration" : "protocol",
|
|
255
|
+
message: response.message
|
|
256
|
+
}));
|
|
257
|
+
return response;
|
|
258
|
+
}), (socket) => Effect.sync(() => socket.destroy())).pipe(Effect.timeoutOrElse({
|
|
259
|
+
duration: Duration.seconds(5),
|
|
260
|
+
orElse: () => Effect.fail(new DaemonError({
|
|
261
|
+
kind: dispatched ? "response" : "connect",
|
|
262
|
+
message: "opencode-pty request timed out"
|
|
263
|
+
}))
|
|
264
|
+
}));
|
|
265
|
+
});
|
|
266
|
+
async function subscribePromise(registration, id, input) {
|
|
267
|
+
const socket = net.createConnection(registration.socket);
|
|
268
|
+
const frames = decoder(socket);
|
|
269
|
+
try {
|
|
270
|
+
await new Promise((resolve, reject) => {
|
|
271
|
+
socket.once("connect", resolve);
|
|
272
|
+
socket.once("error", reject);
|
|
273
|
+
});
|
|
274
|
+
socket.write(encode({
|
|
275
|
+
token: registration.token,
|
|
276
|
+
request: {
|
|
277
|
+
op: "subscribe",
|
|
278
|
+
id,
|
|
279
|
+
offset: input.cursor,
|
|
280
|
+
attachment_id: input.attachmentID,
|
|
281
|
+
role: input.role,
|
|
282
|
+
takeover: input.takeover ?? false
|
|
283
|
+
}
|
|
284
|
+
}));
|
|
285
|
+
const initial = await frames.next();
|
|
286
|
+
if (initial.done)
|
|
287
|
+
throw new Error("opencode-pty closed before attachment");
|
|
288
|
+
const response = decode(initial.value);
|
|
289
|
+
if (response.type === "error")
|
|
290
|
+
throw new DaemonError({
|
|
291
|
+
kind: response.message === "authentication failed" ? "registration" : "protocol",
|
|
292
|
+
message: response.message
|
|
293
|
+
});
|
|
294
|
+
if (response.type !== "attached")
|
|
295
|
+
throw new Error(`unexpected opencode-pty response: ${response.type}`);
|
|
296
|
+
let detached = false;
|
|
297
|
+
const pump = async () => {
|
|
298
|
+
try {
|
|
299
|
+
for await (const frame of frames) {
|
|
300
|
+
if (frame[0] === 0) {
|
|
301
|
+
if (frame.length < 17)
|
|
302
|
+
throw new Error("invalid opencode-pty output frame");
|
|
303
|
+
input.onEvent({
|
|
304
|
+
type: "output",
|
|
305
|
+
start: Number(frame.readBigUInt64BE(1)),
|
|
306
|
+
end: Number(frame.readBigUInt64BE(9)),
|
|
307
|
+
data: frame.subarray(17)
|
|
308
|
+
});
|
|
309
|
+
continue;
|
|
310
|
+
}
|
|
311
|
+
const event = decode(frame);
|
|
312
|
+
if (event.type === "resized")
|
|
313
|
+
input.onEvent({
|
|
314
|
+
type: "resized",
|
|
315
|
+
cols: event.cols,
|
|
316
|
+
rows: event.rows,
|
|
317
|
+
generation: event.generation,
|
|
318
|
+
checkpoint: Buffer.from(event.checkpoint_base64, "base64")
|
|
319
|
+
});
|
|
320
|
+
if (event.type === "controller_changed")
|
|
321
|
+
input.onEvent({
|
|
322
|
+
type: "controller_changed",
|
|
323
|
+
attachmentID: event.attachment_id ?? undefined,
|
|
324
|
+
generation: event.generation
|
|
325
|
+
});
|
|
326
|
+
if (event.type === "title_changed")
|
|
327
|
+
input.onEvent({ type: "title_changed", title: event.title });
|
|
328
|
+
if (event.type === "foreground_process_changed")
|
|
329
|
+
input.onEvent({ type: "foreground_process_changed", process: event.process });
|
|
330
|
+
if (event.type === "exited") {
|
|
331
|
+
input.onEvent({
|
|
332
|
+
type: "exited",
|
|
333
|
+
exitCode: event.exit_code ?? undefined,
|
|
334
|
+
finalOffset: event.final_offset
|
|
335
|
+
});
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
} finally {
|
|
340
|
+
if (!detached)
|
|
341
|
+
input.onEnd();
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
let activated = false;
|
|
345
|
+
return {
|
|
346
|
+
terminal: response.terminal,
|
|
347
|
+
role: response.role,
|
|
348
|
+
generation: response.generation,
|
|
349
|
+
replay: {
|
|
350
|
+
requestedOffset: response.requested_offset,
|
|
351
|
+
availableOffset: response.available_offset,
|
|
352
|
+
endOffset: response.end_offset,
|
|
353
|
+
truncated: response.truncated,
|
|
354
|
+
data: Buffer.from(response.replay_base64, "base64")
|
|
355
|
+
},
|
|
356
|
+
activate() {
|
|
357
|
+
if (activated || detached)
|
|
358
|
+
return;
|
|
359
|
+
activated = true;
|
|
360
|
+
pump().catch(() => {});
|
|
361
|
+
},
|
|
362
|
+
detach() {
|
|
363
|
+
if (detached)
|
|
364
|
+
return;
|
|
365
|
+
detached = true;
|
|
366
|
+
socket.destroy();
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
} catch (error) {
|
|
370
|
+
socket.destroy();
|
|
371
|
+
throw error;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
function encode(value) {
|
|
375
|
+
const payload = Buffer.from(JSON.stringify(value));
|
|
376
|
+
if (payload.length > MaxFrameBytes)
|
|
377
|
+
throw new Error("opencode-pty frame too large");
|
|
378
|
+
const output = Buffer.allocUnsafe(payload.length + 4);
|
|
379
|
+
output.writeUInt32BE(payload.length);
|
|
380
|
+
payload.copy(output, 4);
|
|
381
|
+
return output;
|
|
382
|
+
}
|
|
383
|
+
async function* decoder(socket) {
|
|
384
|
+
let pending = Buffer.alloc(0);
|
|
385
|
+
for await (const value of socket) {
|
|
386
|
+
const chunk = Buffer.isBuffer(value) ? value : Buffer.from(value);
|
|
387
|
+
pending = pending.length === 0 ? chunk : Buffer.concat([pending, chunk]);
|
|
388
|
+
while (pending.length >= 4) {
|
|
389
|
+
const length = pending.readUInt32BE(0);
|
|
390
|
+
if (length > MaxFrameBytes)
|
|
391
|
+
throw new Error("opencode-pty frame too large");
|
|
392
|
+
if (pending.length < length + 4)
|
|
393
|
+
break;
|
|
394
|
+
yield pending.subarray(4, length + 4);
|
|
395
|
+
pending = pending.subarray(length + 4);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
if (pending.length !== 0)
|
|
399
|
+
throw new Error("opencode-pty truncated frame");
|
|
400
|
+
}
|
|
401
|
+
function decode(payload) {
|
|
402
|
+
return Schema.decodeUnknownSync(WireResponse)(JSON.parse(Buffer.from(payload).toString("utf8")));
|
|
403
|
+
}
|
|
404
|
+
function failure(kind, cause) {
|
|
405
|
+
return new DaemonError({ kind, message: cause instanceof Error ? cause.message : String(cause) });
|
|
406
|
+
}
|
|
407
|
+
var terminate = Effect.fn("PersistentPty.daemon.terminate-incompatible")(function* (pid) {
|
|
408
|
+
yield* Effect.logWarning("replacing incompatible opencode-pty daemon", { pid });
|
|
409
|
+
yield* Effect.try({ try: () => process.kill(pid, "SIGTERM"), catch: (cause) => failure("spawn", cause) }).pipe(Effect.catch((error) => isMissingProcess(error) ? Effect.void : Effect.fail(error)));
|
|
410
|
+
const deadline = Date.now() + 2000;
|
|
411
|
+
while (Date.now() < deadline && processRunning(pid))
|
|
412
|
+
yield* Effect.sleep(25);
|
|
413
|
+
if (!processRunning(pid))
|
|
414
|
+
return;
|
|
415
|
+
yield* Effect.try({ try: () => process.kill(pid, "SIGKILL"), catch: (cause) => failure("spawn", cause) }).pipe(Effect.catch((error) => isMissingProcess(error) ? Effect.void : Effect.fail(error)));
|
|
416
|
+
});
|
|
417
|
+
function processRunning(pid) {
|
|
418
|
+
try {
|
|
419
|
+
process.kill(pid, 0);
|
|
420
|
+
return true;
|
|
421
|
+
} catch {
|
|
422
|
+
return false;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
function isMissingProcess(error) {
|
|
426
|
+
return error.message.includes("ESRCH") || error.message.includes("no such process");
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
export { WireTerminal, WireResponse, DaemonError, makeDaemonTransport };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_state
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./state-qhdqjp31.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_bus
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./state-4ce5qhvd.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./state-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/agent.ts
|
|
12
12
|
var exports_agent = {};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MAX_TOTAL_PATCH_BYTES,
|
|
3
|
+
PATCH_CONTEXT_LINES,
|
|
4
|
+
emptyPatch
|
|
5
|
+
} from "./state-vz89hfgr.js";
|
|
6
|
+
import {
|
|
7
|
+
exports_location
|
|
8
|
+
} from "./state-efvmw2xw.js";
|
|
9
|
+
import {
|
|
10
|
+
exports_state
|
|
11
|
+
} from "./state-qhdqjp31.js";
|
|
12
|
+
import {
|
|
13
|
+
exports_bus
|
|
14
|
+
} from "./state-4ce5qhvd.js";
|
|
15
|
+
import {
|
|
16
|
+
__export
|
|
17
|
+
} from "./state-rvfvac9x.js";
|
|
18
|
+
|
|
19
|
+
// src/vcs.ts
|
|
20
|
+
var exports_vcs = {};
|
|
21
|
+
__export(exports_vcs, {
|
|
22
|
+
node: () => node,
|
|
23
|
+
Vcs: () => exports_vcs,
|
|
24
|
+
Service: () => Service,
|
|
25
|
+
Mode: () => Mode,
|
|
26
|
+
Info: () => Info,
|
|
27
|
+
FileStatus: () => FileStatus,
|
|
28
|
+
BranchList: () => BranchList
|
|
29
|
+
});
|
|
30
|
+
import path from "path";
|
|
31
|
+
import { Cause, Context, Effect, Layer, Schema, Stream } from "effect";
|
|
32
|
+
import { FileDiff } from "@opencode-ai/schema/file-diff";
|
|
33
|
+
import { FileSystem } from "@opencode-ai/schema/filesystem";
|
|
34
|
+
import { BranchList, FileStatus, Info, Mode } from "@opencode-ai/schema/vcs";
|
|
35
|
+
import { VcsEvent } from "@opencode-ai/schema/vcs-event";
|
|
36
|
+
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
37
|
+
import { FSUtil } from "@opencode-ai/util/fs-util";
|
|
38
|
+
class Service extends Context.Service()("@opencode/Vcs") {
|
|
39
|
+
}
|
|
40
|
+
var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
41
|
+
const fs = yield* FSUtil.Service;
|
|
42
|
+
const location = yield* exports_location.Service;
|
|
43
|
+
const bus = yield* exports_bus.Service;
|
|
44
|
+
const vcs = location.vcs;
|
|
45
|
+
const current = { info: { branch: {} } };
|
|
46
|
+
const scope = {
|
|
47
|
+
directory: location.directory,
|
|
48
|
+
worktree: location.project.directory,
|
|
49
|
+
canonical: location.project.canonical,
|
|
50
|
+
...vcs ? { store: vcs.store } : {}
|
|
51
|
+
};
|
|
52
|
+
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(Info));
|
|
53
|
+
const decodeBranches = Schema.decodeUnknownEffect(BranchList);
|
|
54
|
+
const decodeStatus = Schema.decodeUnknownEffect(Schema.Array(FileStatus));
|
|
55
|
+
const decodeDiff = Schema.decodeUnknownEffect(Schema.Array(FileDiff.Info));
|
|
56
|
+
const state = exports_state.create({
|
|
57
|
+
name: "vcs",
|
|
58
|
+
initial: () => ({ providers: new Map }),
|
|
59
|
+
draft: (draft) => ({
|
|
60
|
+
add: (provider) => draft.providers.set(provider.id, provider),
|
|
61
|
+
default: {
|
|
62
|
+
get: () => draft.selection,
|
|
63
|
+
set: (selection) => draft.selection = selection
|
|
64
|
+
}
|
|
65
|
+
}),
|
|
66
|
+
finalize: () => refresh()
|
|
67
|
+
});
|
|
68
|
+
const selected = () => {
|
|
69
|
+
const value = state.get();
|
|
70
|
+
const id = value.selection ?? vcs?.type;
|
|
71
|
+
return id ? value.providers.get(id) : undefined;
|
|
72
|
+
};
|
|
73
|
+
const protect = (provider, operation, effect, fallback) => effect.pipe(Effect.catchCause((cause) => Cause.hasInterrupts(cause) ? Effect.failCause(cause).pipe(Effect.orDie) : Effect.logWarning("vcs provider failed", { provider: provider.id, operation, cause }).pipe(Effect.as(fallback))));
|
|
74
|
+
const refresh = Effect.fn("Vcs.refresh")(function* () {
|
|
75
|
+
const provider = selected();
|
|
76
|
+
const next = provider ? yield* protect(provider, "info", provider.info(scope).pipe(Effect.flatMap(decodeInfo)), { branch: {} }) : { branch: {} };
|
|
77
|
+
const changed = current.info.branch.current !== next.branch.current;
|
|
78
|
+
current.info = next;
|
|
79
|
+
if (changed)
|
|
80
|
+
yield* bus.publish(VcsEvent.BranchUpdated, { branch: next.branch.current });
|
|
81
|
+
});
|
|
82
|
+
if (vcs) {
|
|
83
|
+
const store = yield* fs.realPath(vcs.store).pipe(Effect.orElseSucceed(() => vcs.store));
|
|
84
|
+
const isBranchMetadata = vcs.type === "git" ? (file) => path.basename(file) === "HEAD" && FSUtil.contains(store, file) : (file) => path.resolve(file) === path.join(store, "branch");
|
|
85
|
+
yield* bus.subscribe(FileSystem.Event.Changed).pipe(Stream.filter((event) => isBranchMetadata(event.data.file)), Stream.runForEach((event) => refresh().pipe(Effect.withSpan("Vcs.refreshBranch", { attributes: { file: event.data.file } }))), Effect.forkScoped({ startImmediately: true }));
|
|
86
|
+
}
|
|
87
|
+
return Service.of({
|
|
88
|
+
transform: state.transform,
|
|
89
|
+
reload: state.reload,
|
|
90
|
+
info: Effect.fn("Vcs.info")(function* () {
|
|
91
|
+
return current.info;
|
|
92
|
+
}),
|
|
93
|
+
branches: Effect.fn("Vcs.branches")(function* (options) {
|
|
94
|
+
const provider = selected();
|
|
95
|
+
if (provider)
|
|
96
|
+
return yield* protect(provider, "branches", provider.branches({ ...scope, ...options }).pipe(Effect.flatMap(decodeBranches)), []);
|
|
97
|
+
return [];
|
|
98
|
+
}),
|
|
99
|
+
status: Effect.fn("Vcs.status")(function* () {
|
|
100
|
+
const provider = selected();
|
|
101
|
+
if (provider)
|
|
102
|
+
return yield* protect(provider, "status", provider.status(scope).pipe(Effect.flatMap(decodeStatus), Effect.map((rows) => Array.from(rows))), []);
|
|
103
|
+
return [];
|
|
104
|
+
}),
|
|
105
|
+
diff: Effect.fn("Vcs.diff")(function* (mode, options) {
|
|
106
|
+
const provider = selected();
|
|
107
|
+
if (!provider)
|
|
108
|
+
return [];
|
|
109
|
+
const rows = yield* protect(provider, "diff", provider.diff({
|
|
110
|
+
...scope,
|
|
111
|
+
mode,
|
|
112
|
+
context: options?.context ?? PATCH_CONTEXT_LINES,
|
|
113
|
+
maxOutputBytes: MAX_TOTAL_PATCH_BYTES
|
|
114
|
+
}).pipe(Effect.flatMap(decodeDiff)), []);
|
|
115
|
+
let total = 0;
|
|
116
|
+
return rows.map((row) => {
|
|
117
|
+
const bytes = Buffer.byteLength(row.patch);
|
|
118
|
+
if (total + bytes > MAX_TOTAL_PATCH_BYTES)
|
|
119
|
+
return { ...row, patch: emptyPatch(row.file) };
|
|
120
|
+
total += bytes;
|
|
121
|
+
return row;
|
|
122
|
+
});
|
|
123
|
+
})
|
|
124
|
+
});
|
|
125
|
+
}));
|
|
126
|
+
var node = makeLocationNode({
|
|
127
|
+
service: Service,
|
|
128
|
+
layer,
|
|
129
|
+
deps: [FSUtil.node, exports_location.node, exports_bus.node]
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
export { BranchList, FileStatus, Info, Mode, Service, node, exports_vcs };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
exports_permission
|
|
3
|
+
} from "./state-rmr740y4.js";
|
|
1
4
|
import {
|
|
2
5
|
exports_websearch
|
|
3
|
-
} from "./
|
|
6
|
+
} from "./state-ftfyk4m7.js";
|
|
4
7
|
import {
|
|
5
8
|
exports_form
|
|
6
|
-
} from "./
|
|
7
|
-
import {
|
|
8
|
-
exports_permission
|
|
9
|
-
} from "./instruction-discovery-7c8h4kqy.js";
|
|
9
|
+
} from "./state-63gtrn1b.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./state-rvfvac9x.js";
|
|
13
13
|
|
|
14
14
|
// src/tool/plugin/websearch.ts
|
|
15
15
|
var exports_websearch2 = {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_skill
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./state-z88k6s2w.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_instructions
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./state-ec8vrfw5.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./state-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/skill/instructions.ts
|
|
12
12
|
var exports_instructions2 = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_provider
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./state-djkt4gex.js";
|
|
4
4
|
import {
|
|
5
5
|
__require
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./state-rvfvac9x.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/amazon-bedrock.ts
|
|
9
9
|
import { Effect } from "effect";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_integration
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./state-ayfpp7hf.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_provider
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./state-djkt4gex.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/llmgateway.ts
|
|
9
9
|
import { Effect } from "effect";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_mcp
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./state-shhqc982.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_tool
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./state-e9jfq0e9.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_permission
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./state-rmr740y4.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_bus
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./state-4ce5qhvd.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./state-rvfvac9x.js";
|
|
16
16
|
|
|
17
17
|
// src/tool/mcp.ts
|
|
18
18
|
var exports_mcp2 = {};
|