@opencode-ai/core 0.0.0-beta-17793 → 0.0.0-beta-17887
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 +73 -72
- package/dist/aisdk-native.js +3 -3
- package/dist/aisdk.js +4 -4
- package/dist/app.js +2 -2
- package/dist/bus.js +71 -70
- package/dist/catalog.js +81 -80
- package/dist/chunks/{workspace-02dbfq60.js → schema-02dbfq60.js} +1 -1
- package/dist/chunks/{workspace-0b17sr9d.js → schema-0b17sr9d.js} +2 -2
- package/dist/chunks/{workspace-c8h311wd.js → schema-0cxmrpsx.js} +30 -30
- package/dist/chunks/{workspace-r15s1bd3.js → schema-0ehq5bhp.js} +12 -10
- package/dist/chunks/{workspace-zqdn9cme.js → schema-0hgrfweh.js} +7 -7
- package/dist/chunks/{workspace-0kvmztkf.js → schema-0kvmztkf.js} +1 -1
- package/dist/chunks/{workspace-ks77wmnj.js → schema-0ranhcjt.js} +2 -2
- package/dist/chunks/{workspace-n744begs.js → schema-0vem89v9.js} +4 -4
- package/dist/chunks/{workspace-n2w8fz38.js → schema-0vgt3zn6.js} +2 -2
- package/dist/chunks/{workspace-rbn77fxp.js → schema-1637fpsx.js} +3 -3
- package/dist/chunks/{workspace-18pv8fg3.js → schema-18pv8fg3.js} +2 -2
- package/dist/chunks/{workspace-81wsrtjr.js → schema-19nk26qg.js} +7 -7
- package/dist/chunks/{workspace-wh0zhxcg.js → schema-1a3a2s70.js} +2 -2
- package/dist/chunks/{workspace-wwkgmt0p.js → schema-1nf83cea.js} +10 -16
- package/dist/chunks/{workspace-swnnf7jm.js → schema-1tqppy8q.js} +3 -3
- package/dist/chunks/{workspace-fgk5sp52.js → schema-20hrmxeg.js} +7 -7
- package/dist/chunks/{workspace-25pxtba7.js → schema-25pxtba7.js} +1 -1
- package/dist/chunks/{workspace-r9bsqnhw.js → schema-29ddmng8.js} +8 -8
- package/dist/chunks/{workspace-thrqaz0e.js → schema-2aeag69d.js} +5 -5
- package/dist/chunks/{workspace-8jssm6tx.js → schema-2h85227b.js} +2 -2
- package/dist/chunks/{workspace-1afm1b6n.js → schema-2hwdvqtr.js} +8 -8
- package/dist/chunks/{workspace-x7z5vctn.js → schema-2hyeqd71.js} +5 -5
- package/dist/chunks/{workspace-2nmyybe0.js → schema-2nmyybe0.js} +1 -1
- package/dist/chunks/{workspace-sney8k4p.js → schema-2sx6rcrq.js} +68 -38
- package/dist/chunks/{workspace-2akqrmqf.js → schema-2ya5073c.js} +1 -1
- package/dist/chunks/{workspace-t2ccr6s6.js → schema-2zf7hxjt.js} +4 -4
- package/dist/chunks/{workspace-gp1p5nz4.js → schema-37e9hbzs.js} +2 -2
- package/dist/chunks/{workspace-7xm5mbbb.js → schema-3d1t6jqf.js} +3 -3
- package/dist/chunks/{workspace-zebyd4z6.js → schema-3g6g5vyj.js} +3 -3
- package/dist/chunks/{workspace-3g8vftxb.js → schema-3g8vftxb.js} +2 -2
- package/dist/chunks/{workspace-atc09b0q.js → schema-3gsv1x0v.js} +2 -2
- package/dist/chunks/{workspace-9z7sbd73.js → schema-3hfdta0w.js} +2 -2
- package/dist/chunks/{workspace-p6edj0et.js → schema-3jsgz9x8.js} +39 -41
- package/dist/chunks/{workspace-3thh6229.js → schema-3thh6229.js} +2 -2
- package/dist/chunks/{workspace-mp82cem1.js → schema-3wg1t0st.js} +13 -13
- package/dist/chunks/{workspace-0bxpjz5v.js → schema-3x0rbcme.js} +12 -13
- package/dist/chunks/{workspace-tva2scp3.js → schema-4hyc8pdv.js} +12 -12
- package/dist/chunks/{workspace-42q4drvy.js → schema-4j7te1s0.js} +3 -3
- package/dist/chunks/{workspace-5hakc3n5.js → schema-4jvfx8g6.js} +3 -3
- package/dist/chunks/{workspace-4s2xwh5d.js → schema-4s2xwh5d.js} +3 -3
- package/dist/chunks/{workspace-4zzdwbaz.js → schema-4zzdwbaz.js} +2 -2
- package/dist/chunks/{workspace-50jxp3hw.js → schema-50jxp3hw.js} +1 -1
- package/dist/chunks/{workspace-fjtxtbhx.js → schema-50qcmj3d.js} +3 -3
- package/dist/chunks/{workspace-p7enbrfs.js → schema-53w8n9hm.js} +7 -5
- package/dist/chunks/{workspace-ghg83jvf.js → schema-53xdmpnb.js} +38 -38
- package/dist/chunks/{workspace-57tzwnz4.js → schema-57tzwnz4.js} +1 -1
- package/dist/chunks/{workspace-tcn24h1d.js → schema-58xdvehb.js} +2 -3
- package/dist/chunks/{workspace-pcp53y3y.js → schema-59ccykdk.js} +10 -19
- package/dist/chunks/{workspace-pfrv4bm3.js → schema-59hngwn8.js} +10 -10
- package/dist/chunks/{workspace-r0chg1wz.js → schema-5anrxqdj.js} +20 -4
- package/dist/chunks/{workspace-prf9bavk.js → schema-5fe026tx.js} +3 -3
- package/dist/chunks/{workspace-st1tmxxz.js → schema-5fq5ws54.js} +4 -4
- package/dist/chunks/{workspace-29g7zza5.js → schema-5ndt04bs.js} +7 -7
- package/dist/chunks/{workspace-vfekzexe.js → schema-5rnjreb1.js} +6 -4
- package/dist/chunks/{workspace-5rs65q6p.js → schema-5rs65q6p.js} +1 -1
- package/dist/chunks/{workspace-5vcssjzn.js → schema-5vcssjzn.js} +1 -1
- package/dist/chunks/{workspace-p0zqjz05.js → schema-5xrsrne4.js} +3 -3
- package/dist/chunks/{workspace-bd453e9f.js → schema-6039vy3q.js} +6 -6
- package/dist/chunks/{workspace-4s6c9e56.js → schema-61m74eps.js} +6 -6
- package/dist/chunks/{workspace-ph1me6ah.js → schema-65re92qg.js} +6 -4
- package/dist/chunks/{workspace-mznpwsa6.js → schema-6btb8gmk.js} +6 -6
- package/dist/chunks/{workspace-xp27tpff.js → schema-6e0hvkjj.js} +16 -17
- package/dist/chunks/{workspace-e93xz9yp.js → schema-6gz8qpj3.js} +15 -16
- package/dist/chunks/{workspace-6ky7rqk7.js → schema-6ky7rqk7.js} +1 -1
- package/dist/chunks/{workspace-hhffyw1t.js → schema-6mvn0j90.js} +6 -6
- package/dist/chunks/{workspace-6q0m15b3.js → schema-6q0m15b3.js} +1 -1
- package/dist/chunks/{workspace-k1b850en.js → schema-6srb8ptf.js} +7 -7
- package/dist/chunks/{workspace-5yea2tah.js → schema-6x98y149.js} +2 -2
- package/dist/chunks/schema-6zqxzw0a.js +15 -0
- package/dist/chunks/{workspace-f56b6eec.js → schema-70248kr6.js} +27 -31
- package/dist/chunks/{workspace-mjyfgnw8.js → schema-763yasmv.js} +8 -8
- package/dist/chunks/{workspace-7f3c62hs.js → schema-76hmsx9m.js} +11 -11
- package/dist/chunks/{workspace-dfrm5wx2.js → schema-7764k952.js} +24 -19
- package/dist/chunks/{workspace-7gqqz1s8.js → schema-7gqqz1s8.js} +1 -1
- package/dist/chunks/{workspace-7mrpdsq5.js → schema-7mrpdsq5.js} +1 -1
- package/dist/chunks/{workspace-dvghb557.js → schema-7rqv91hy.js} +8 -8
- package/dist/chunks/{workspace-mz28rckj.js → schema-7vh3yvmw.js} +3 -3
- package/dist/chunks/{workspace-7wcmqxrc.js → schema-7wcmqxrc.js} +1 -1
- package/dist/chunks/{workspace-pd55t4m6.js → schema-7yfqzmjb.js} +31 -31
- package/dist/chunks/{workspace-88jbfw8z.js → schema-88jbfw8z.js} +2 -2
- package/dist/chunks/{workspace-5mg8q2r2.js → schema-89dw1ph7.js} +4 -4
- package/dist/chunks/{workspace-hsyk7kfz.js → schema-8bkmtpp6.js} +5 -5
- package/dist/chunks/{workspace-rt6yg6j2.js → schema-8bqpm1yy.js} +3 -3
- package/dist/chunks/{workspace-jmmc1vfj.js → schema-8cbfrh3v.js} +26 -20
- package/dist/chunks/{workspace-bmweayxc.js → schema-8gp1tmat.js} +3 -3
- package/dist/chunks/{workspace-x6bsrrkz.js → schema-8m0kaaxz.js} +12 -12
- package/dist/chunks/{workspace-sphyh08q.js → schema-8qfxtd4q.js} +12 -12
- package/dist/chunks/{workspace-5p73vhh3.js → schema-8ry20zzk.js} +11 -11
- package/dist/chunks/{workspace-8v47shgf.js → schema-8v47shgf.js} +2 -2
- package/dist/chunks/{workspace-95dhhjyp.js → schema-905996ne.js} +16 -16
- package/dist/chunks/{workspace-999qd968.js → schema-999qd968.js} +1 -1
- package/dist/chunks/{workspace-9f0rnpkn.js → schema-9f0rnpkn.js} +1 -1
- package/dist/chunks/{workspace-gz765asg.js → schema-9p8mhgdp.js} +1 -1
- package/dist/chunks/{workspace-1x1rapwb.js → schema-9ss8makt.js} +8 -6
- package/dist/chunks/{workspace-5qqhchyw.js → schema-aejndznj.js} +17 -14
- package/dist/chunks/{workspace-dwvaj8pd.js → schema-ambzzkps.js} +7 -7
- package/dist/chunks/{workspace-ayfwnm78.js → schema-ayfwnm78.js} +2 -2
- package/dist/chunks/{workspace-zjvgdt9p.js → schema-b7hsw5bk.js} +22 -38
- package/dist/chunks/{workspace-dyz5q1tb.js → schema-bh1wr8rq.js} +3 -6
- package/dist/chunks/{workspace-afy8tpbe.js → schema-bj25ggyd.js} +4 -5
- package/dist/chunks/{workspace-byab506k.js → schema-byab506k.js} +1 -1
- package/dist/chunks/{workspace-1c00jchy.js → schema-c4wcb9vc.js} +3 -3
- package/dist/chunks/{workspace-e24rm1tf.js → schema-c6gknnhe.js} +2 -2
- package/dist/chunks/{workspace-12te9h01.js → schema-c6h4bynb.js} +20 -24
- package/dist/chunks/{workspace-0b6ye7sf.js → schema-c9tk9ghs.js} +3 -3
- package/dist/chunks/{workspace-b04yncak.js → schema-chrmmjkk.js} +8 -8
- package/dist/chunks/schema-ck5pgha0.js +68 -0
- package/dist/chunks/{workspace-19e1vard.js → schema-cke3skfe.js} +3 -7
- package/dist/chunks/{workspace-6103r997.js → schema-cmm1dbz2.js} +5 -5
- package/dist/chunks/{workspace-92cpjck4.js → schema-cqrnepgy.js} +51 -39
- package/dist/chunks/{workspace-nk6yb8jk.js → schema-cve546b2.js} +2 -2
- package/dist/chunks/{workspace-cz3dkvcz.js → schema-cz3dkvcz.js} +1 -1
- package/dist/chunks/{workspace-eyk9wdct.js → schema-d2gk9vpf.js} +4 -5
- package/dist/chunks/{workspace-tsj2cygv.js → schema-dc6p8rz8.js} +20 -16
- package/dist/chunks/{workspace-dhphtf1x.js → schema-dhphtf1x.js} +1 -1
- package/dist/chunks/{workspace-sfbv6a2b.js → schema-djkt4gex.js} +4 -6
- package/dist/chunks/{workspace-byr5z3qa.js → schema-dkxc2cgd.js} +90 -89
- package/dist/chunks/{workspace-1h0r72pv.js → schema-dyrphakh.js} +11 -17
- package/dist/chunks/{workspace-e1z9a0ts.js → schema-e1z9a0ts.js} +2 -2
- package/dist/chunks/{workspace-c16qn48m.js → schema-e5r8d43z.js} +3 -3
- package/dist/chunks/{workspace-ec8vrfw5.js → schema-ec8vrfw5.js} +1 -1
- package/dist/chunks/{workspace-b2csa971.js → schema-ej9r6fs2.js} +9 -9
- package/dist/chunks/{workspace-zkkkcc8p.js → schema-epzxjdf4.js} +4 -4
- package/dist/chunks/{workspace-erj4j75s.js → schema-erj4j75s.js} +1 -1
- package/dist/chunks/{workspace-y44ckmk4.js → schema-eyrg1yjb.js} +11 -11
- package/dist/chunks/{workspace-tenv3kfs.js → schema-f9wt0tjw.js} +2 -2
- package/dist/chunks/{workspace-vptxxpwc.js → schema-f9z62w49.js} +5 -5
- package/dist/chunks/{workspace-s7pbx90j.js → schema-fbe8wd9q.js} +5 -5
- package/dist/chunks/{workspace-rgk2vntt.js → schema-fx6gxcwx.js} +4 -4
- package/dist/chunks/{workspace-egfckg0q.js → schema-g1ps01gx.js} +101 -74
- package/dist/chunks/{workspace-20m6kz67.js → schema-g3tejemp.js} +6 -7
- package/dist/chunks/{workspace-q1q6wfxa.js → schema-g4tfhrky.js} +17 -10
- package/dist/chunks/{workspace-fx25bfyk.js → schema-g6sgqcje.js} +3 -3
- package/dist/chunks/{workspace-8k08086v.js → schema-g7t6p8r2.js} +1 -1
- package/dist/chunks/{workspace-n44ep8ax.js → schema-g7v03tbe.js} +12 -11
- package/dist/chunks/{workspace-g9yygpzr.js → schema-g9yygpzr.js} +1 -1
- package/dist/chunks/{workspace-gcay93cp.js → schema-gcay93cp.js} +1 -1
- package/dist/chunks/{workspace-gd2xppx8.js → schema-gd2xppx8.js} +1 -1
- package/dist/chunks/{workspace-fqxzsdmq.js → schema-gg8gy1ab.js} +2 -2
- package/dist/chunks/{workspace-dstxtxkt.js → schema-gjkvrjgw.js} +3 -3
- package/dist/chunks/{workspace-9jeda383.js → schema-gk39pf7r.js} +8 -6
- package/dist/chunks/{workspace-daqkr6yp.js → schema-gnae5wg8.js} +20 -21
- package/dist/chunks/{workspace-dfspp6r4.js → schema-gpj6jen2.js} +12 -13
- package/dist/chunks/{workspace-6prg4qz0.js → schema-gsd7aj52.js} +16 -14
- package/dist/chunks/{workspace-9jzaagxn.js → schema-gvywm9dn.js} +11 -11
- package/dist/chunks/{workspace-h6r3t75p.js → schema-gxhthtcw.js} +8 -8
- package/dist/chunks/{workspace-ra765m8n.js → schema-gzsc4f4d.js} +16 -16
- package/dist/chunks/{workspace-ctdgtkbw.js → schema-h5ybtq26.js} +5 -5
- package/dist/chunks/{workspace-e8j1nhvt.js → schema-hca9bg61.js} +3 -3
- package/dist/chunks/{workspace-azhye5zs.js → schema-hevdag7w.js} +11 -11
- package/dist/chunks/{workspace-zqh29h4g.js → schema-hhxt27np.js} +2 -3
- package/dist/chunks/{workspace-0a6rv85p.js → schema-hkpr9a4z.js} +3 -3
- package/dist/chunks/{workspace-wb4dbzpz.js → schema-hp6rpdnc.js} +5 -3
- package/dist/chunks/{workspace-kwbvxbjz.js → schema-j3ethsxz.js} +2 -2
- package/dist/chunks/{workspace-z6g48jge.js → schema-jf0w9kwc.js} +4 -4
- package/dist/chunks/{workspace-d0r2hzy0.js → schema-jf35ek5b.js} +2 -2
- package/dist/chunks/{workspace-jssy2dr3.js → schema-jssy2dr3.js} +2 -2
- package/dist/chunks/{workspace-h3vs7mve.js → schema-jt9ap34s.js} +3 -3
- package/dist/chunks/{workspace-38y8nwsh.js → schema-jtpqmfzd.js} +10 -10
- package/dist/chunks/{workspace-g7k9te92.js → schema-k3e42drn.js} +1 -2
- package/dist/chunks/{workspace-j1a5h53y.js → schema-k42t1tha.js} +5 -3
- package/dist/chunks/{workspace-6p15na29.js → schema-kcbd8yt0.js} +3 -3
- package/dist/chunks/{workspace-kg1345f7.js → schema-kg1345f7.js} +1 -1
- package/dist/chunks/schema-kp1t5rcy.js +20 -0
- package/dist/chunks/{workspace-62faaqw9.js → schema-m5hb23fp.js} +30 -18
- package/dist/chunks/{workspace-z5tq16yp.js → schema-mat0pk2n.js} +150 -150
- package/dist/chunks/{workspace-76qm5nqf.js → schema-me155pxc.js} +7 -7
- package/dist/chunks/{workspace-mf0hyk7z.js → schema-mf0hyk7z.js} +1 -1
- package/dist/chunks/{workspace-dn5xz30q.js → schema-mf73chvh.js} +11 -11
- package/dist/chunks/{workspace-j1zjb56y.js → schema-mge4khx8.js} +10 -10
- package/dist/chunks/{workspace-mh28new4.js → schema-mh28new4.js} +2 -2
- package/dist/chunks/{workspace-d9bbznyn.js → schema-mmjdvscj.js} +6 -6
- package/dist/chunks/{workspace-mnb85w6b.js → schema-mnb85w6b.js} +2 -2
- package/dist/chunks/{workspace-hwx2w7zf.js → schema-mtdnc27f.js} +23 -25
- package/dist/chunks/{workspace-0ankgmxn.js → schema-mtwyx2kp.js} +3 -3
- package/dist/chunks/{workspace-mwceq5am.js → schema-mwceq5am.js} +1 -1
- package/dist/chunks/{workspace-mxvw03gv.js → schema-mxvw03gv.js} +1 -1
- package/dist/chunks/{workspace-7ard301f.js → schema-n9e07w6s.js} +25 -25
- package/dist/chunks/{workspace-thrfs9vw.js → schema-nbfw6jpr.js} +5 -5
- package/dist/chunks/{workspace-dt2pbfh8.js → schema-ndw42r8n.js} +67 -67
- package/dist/chunks/{workspace-nesb2rcz.js → schema-nesb2rcz.js} +2 -2
- package/dist/chunks/{workspace-nr76rjj3.js → schema-nr76rjj3.js} +2 -2
- package/dist/chunks/{workspace-qgt32wwf.js → schema-nrkas8zm.js} +4 -4
- package/dist/chunks/{workspace-nxs45nrs.js → schema-nt3351yh.js} +15 -15
- package/dist/chunks/{workspace-37d718jr.js → schema-nvz6n7yp.js} +31 -23
- package/dist/chunks/{workspace-nzrjycs5.js → schema-nzrjycs5.js} +1 -1
- package/dist/chunks/{workspace-p27xxkqg.js → schema-p27xxkqg.js} +3 -3
- package/dist/chunks/{workspace-pfqehjmy.js → schema-pfqehjmy.js} +2 -2
- package/dist/chunks/{workspace-b7wyyjhh.js → schema-pgex9pvk.js} +2 -2
- package/dist/chunks/{workspace-pq4b4pqk.js → schema-pq4b4pqk.js} +2 -2
- package/dist/chunks/{workspace-jqkpryhn.js → schema-q07sa4nq.js} +4 -4
- package/dist/chunks/{workspace-8t1bhfvh.js → schema-qcpexbr2.js} +1 -1
- package/dist/chunks/{workspace-qe0d689s.js → schema-qe0d689s.js} +2 -2
- package/dist/chunks/{workspace-f2kz495y.js → schema-qhdqjp31.js} +7 -8
- package/dist/chunks/{workspace-vgjwjeca.js → schema-r14kbnc4.js} +8 -13
- package/dist/chunks/{workspace-a7458xm9.js → schema-r211gje0.js} +8 -8
- package/dist/chunks/{workspace-r3k9abhd.js → schema-r3k9abhd.js} +2 -2
- package/dist/chunks/{workspace-fycc0m1w.js → schema-r6v38kgd.js} +11 -11
- package/dist/chunks/{workspace-ef1ebqv9.js → schema-r7qg3fv7.js} +26 -5
- package/dist/chunks/{workspace-mmbfffa0.js → schema-r9f1y3a1.js} +8 -8
- package/dist/chunks/{workspace-vq4xdzwy.js → schema-r9m9r1k0.js} +5 -5
- package/dist/chunks/{workspace-h8ecejt5.js → schema-rahat93a.js} +1 -1
- package/dist/chunks/{workspace-dmq0pk88.js → schema-rbzab1ws.js} +2 -2
- package/dist/chunks/{workspace-706a4azd.js → schema-rfbm65k8.js} +1 -1
- package/dist/chunks/{workspace-tk479mxv.js → schema-rhr8bscf.js} +6 -6
- package/dist/chunks/{workspace-3zgv951r.js → schema-rm6e9qn4.js} +14 -14
- package/dist/chunks/{workspace-jt4wm1df.js → schema-rn9r0ddn.js} +2 -2
- package/dist/chunks/{workspace-adfr8vkf.js → schema-rpvypsvk.js} +6 -6
- package/dist/chunks/{workspace-ryap75b3.js → schema-ryap75b3.js} +1 -1
- package/dist/chunks/{workspace-dtq2eppm.js → schema-s123x8qa.js} +4 -4
- package/dist/chunks/{workspace-s33fw6zm.js → schema-s33fw6zm.js} +1 -1
- package/dist/chunks/{workspace-e9yfe4g9.js → schema-s4hn1693.js} +11 -9
- package/dist/chunks/{workspace-vxayaa8z.js → schema-s7tvvea7.js} +8 -8
- package/dist/chunks/{workspace-pw5qhcym.js → schema-sb6cavh7.js} +50 -41
- package/dist/chunks/{workspace-smpeg8c9.js → schema-smpeg8c9.js} +2 -2
- package/dist/chunks/{workspace-sw84ckhj.js → schema-sw84ckhj.js} +1 -1
- package/dist/chunks/{workspace-dman5pj0.js → schema-swj2q685.js} +120 -132
- package/dist/chunks/{workspace-t14kykx1.js → schema-t14kykx1.js} +1 -1
- package/dist/chunks/{workspace-t066q9hw.js → schema-tb33ng7x.js} +2 -2
- package/dist/chunks/{workspace-e1fj3hnt.js → schema-tg2wc1h2.js} +3 -3
- package/dist/chunks/{workspace-thstd87d.js → schema-thstd87d.js} +1 -1
- package/dist/chunks/{workspace-b25zdeh7.js → schema-tjjf1q77.js} +1 -1
- package/dist/chunks/{workspace-ppea70bb.js → schema-tpennrrf.js} +2 -2
- package/dist/chunks/{workspace-v2wshkax.js → schema-v2wshkax.js} +1 -1
- package/dist/chunks/{workspace-s6zr15p0.js → schema-v3sehd45.js} +1 -1
- package/dist/chunks/{workspace-bftvctww.js → schema-v6nebarc.js} +4 -4
- package/dist/chunks/{workspace-v80zsxnb.js → schema-v80zsxnb.js} +1 -1
- package/dist/chunks/{workspace-75dc4a2v.js → schema-v888f2m4.js} +91 -87
- package/dist/chunks/{workspace-v972xay6.js → schema-v972xay6.js} +1 -1
- package/dist/chunks/{workspace-v9bfv94f.js → schema-v9bfv94f.js} +1 -1
- package/dist/chunks/{workspace-njrg7yr8.js → schema-vmvzq9kn.js} +29 -31
- package/dist/chunks/{workspace-xaf8phze.js → schema-vq63px7f.js} +22 -26
- package/dist/chunks/{workspace-f05p34aa.js → schema-vqbmgfq1.js} +3 -3
- package/dist/chunks/{workspace-zeqnj68x.js → schema-vrnna8ef.js} +8 -8
- package/dist/chunks/{workspace-vz89hfgr.js → schema-vz89hfgr.js} +1 -1
- package/dist/chunks/{workspace-wd268jeg.js → schema-wd268jeg.js} +1 -1
- package/dist/chunks/{workspace-xvjmrenr.js → schema-wk54z6sh.js} +20 -16
- package/dist/chunks/{workspace-wmxdh12w.js → schema-wmxdh12w.js} +1 -1
- package/dist/chunks/{workspace-wps8gh8n.js → schema-wps8gh8n.js} +2 -2
- package/dist/chunks/{workspace-yw6774fb.js → schema-wqvb4wbw.js} +34 -21
- package/dist/chunks/{workspace-mceg3fc8.js → schema-xc83wxk6.js} +11 -11
- package/dist/chunks/{workspace-xczfw7dq.js → schema-xczfw7dq.js} +1 -1
- package/dist/chunks/{workspace-xgv25zxy.js → schema-xgv25zxy.js} +1 -1
- package/dist/chunks/{workspace-xhz3jyrc.js → schema-xt0068v8.js} +4 -6
- package/dist/chunks/{workspace-n1869kza.js → schema-xty1ggdh.js} +7 -7
- package/dist/chunks/{workspace-xwftk1fd.js → schema-xwftk1fd.js} +2 -2
- package/dist/chunks/{workspace-xxpvz42q.js → schema-xxpvz42q.js} +3 -3
- package/dist/chunks/{workspace-y0x38cee.js → schema-y0x38cee.js} +1 -1
- package/dist/chunks/{workspace-y198y2ra.js → schema-y198y2ra.js} +1 -1
- package/dist/chunks/{workspace-vzsgyrq1.js → schema-y4vhttwz.js} +10 -16
- package/dist/chunks/{workspace-y67x6rf6.js → schema-y67x6rf6.js} +1 -1
- package/dist/chunks/{workspace-y8rs54ne.js → schema-y8rs54ne.js} +1 -1
- package/dist/chunks/{workspace-y980s7ka.js → schema-y980s7ka.js} +3 -3
- package/dist/chunks/{workspace-a65h300v.js → schema-ybhfpy64.js} +5 -3
- package/dist/chunks/{workspace-yf0knd5z.js → schema-yf0knd5z.js} +2 -2
- package/dist/chunks/{workspace-9d2xhdr4.js → schema-ygy0xbqa.js} +6 -3
- package/dist/chunks/{workspace-ppg6z601.js → schema-yqydgc4n.js} +10 -8
- package/dist/chunks/{workspace-cd4gxvhq.js → schema-yv6n70q9.js} +18 -14
- package/dist/chunks/{workspace-v4xjagz7.js → schema-z50xyfn5.js} +8 -8
- package/dist/chunks/{workspace-pqg6v7an.js → schema-z5t17bvd.js} +8 -8
- package/dist/chunks/{workspace-emcgmnta.js → schema-z7z53gbn.js} +11 -11
- package/dist/chunks/{workspace-ecxv0vtt.js → schema-z8fm0r70.js} +3 -0
- package/dist/chunks/{workspace-zbqqnp0n.js → schema-zbqqnp0n.js} +1 -1
- package/dist/chunks/{workspace-zdkg1k91.js → schema-zdkg1k91.js} +1 -1
- package/dist/chunks/{workspace-zfxc0ze5.js → schema-zfxc0ze5.js} +1 -1
- package/dist/chunks/{workspace-bg6er1xr.js → schema-zwedh6rp.js} +6 -6
- package/dist/chunks/{workspace-zxe9jjhn.js → schema-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 +99 -98
- package/dist/config/markdown.js +2 -2
- package/dist/config/normalize.js +20 -20
- package/dist/config/plugin/agent.js +132 -131
- package/dist/config/plugin/command.js +129 -128
- package/dist/config/plugin/compaction.js +168 -169
- package/dist/config/plugin/entry-observer.js +119 -0
- package/dist/config/plugin/formatter.js +117 -115
- package/dist/config/plugin/image.js +128 -126
- package/dist/config/plugin/instruction.js +88 -87
- package/dist/config/plugin/location-watcher.js +115 -113
- package/dist/config/plugin/mcp.js +125 -124
- package/dist/config/plugin/policy.js +114 -112
- package/dist/config/plugin/provider.js +113 -111
- package/dist/config/plugin/reference.js +117 -115
- package/dist/config/plugin/shell.js +116 -114
- package/dist/config/plugin/skill-file.js +105 -104
- package/dist/config/plugin/skill.js +135 -134
- package/dist/config/plugin/snapshot.js +115 -113
- package/dist/config/plugin/source.js +112 -111
- package/dist/config/plugin/tool-output.js +117 -115
- package/dist/config/plugin/websearch.js +113 -111
- package/dist/config/variable.js +4 -4
- package/dist/config.js +111 -110
- package/dist/credential/sql.js +3 -3
- package/dist/credential.js +71 -70
- package/dist/database/database.js +68 -67
- 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 +20 -20
- 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 +7 -0
- package/dist/database/migration.gen.js +47 -46
- package/dist/database/migration.js +49 -48
- 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 +4 -24
- package/dist/database/v1-migration.bun.js +82 -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 +334 -337
- package/dist/effect/app-node-platform.js +3 -2
- package/dist/effect/keyed-mutex.js +2 -2
- package/dist/effect/websocket-constructor.js +7 -0
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +89 -88
- package/dist/environment/exec-defaults.js +3 -3
- package/dist/environment/files.js +2 -2
- package/dist/environment/index.js +91 -90
- 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 +73 -72
- package/dist/file-mutation.js +90 -89
- 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 +304 -304
- package/dist/filesystem/protected.js +2 -2
- package/dist/filesystem/search.js +94 -93
- package/dist/filesystem/watcher-binding.js +2 -2
- package/dist/filesystem/watcher.js +4 -4
- package/dist/filesystem.js +94 -93
- package/dist/form.js +72 -71
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +83 -82
- package/dist/generate.js +87 -85
- 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 +21 -21
- 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 +3 -3
- 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 +12 -12
- 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/local-shell.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 +96 -95
- package/dist/image.js +96 -95
- package/dist/instruction-discovery.js +75 -74
- package/dist/instructions/builtins.js +84 -83
- package/dist/instructions/index.js +2 -2
- package/dist/integration/connection.js +2 -2
- package/dist/integration.js +78 -77
- package/dist/job.js +4 -4
- package/dist/kv/sql.js +3 -3
- package/dist/kv.js +71 -70
- package/dist/location-mutation.js +82 -81
- package/dist/location-service-map.js +82 -81
- package/dist/location-services.js +329 -330
- package/dist/location.js +81 -80
- package/dist/mcp/client.js +98 -96
- package/dist/mcp/index.js +96 -95
- package/dist/mcp/instructions.js +126 -125
- package/dist/mcp/oauth.js +5 -4
- package/dist/mcp/stdio.js +90 -89
- package/dist/mime.js +2 -2
- package/dist/model-resolver.js +84 -83
- package/dist/model.js +3 -3
- package/dist/models-dev.js +78 -77
- package/dist/oauth/page.js +2 -2
- package/dist/permission/saved.js +82 -81
- package/dist/permission/sql.js +6 -6
- package/dist/permission.js +102 -101
- package/dist/plugin/agent.js +103 -102
- package/dist/plugin/command.js +82 -81
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +165 -162
- package/dist/plugin/internal.js +298 -298
- package/dist/plugin/mcp-codemode-exclusion.js +2 -2
- package/dist/plugin/models-dev.js +79 -78
- package/dist/plugin/plan.js +108 -107
- 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 +119 -118
- package/dist/plugin/provider/cerebras.js +3 -3
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -119
- package/dist/plugin/provider/cloudflare-workers-ai.js +120 -119
- package/dist/plugin/provider/cohere.js +3 -3
- package/dist/plugin/provider/configured.js +117 -116
- 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 +85 -84
- 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 +80 -79
- package/dist/plugin/provider/lmstudio.js +112 -111
- package/dist/plugin/provider/mistral.js +3 -3
- package/dist/plugin/provider/nvidia.js +3 -3
- package/dist/plugin/provider/ollama.js +112 -111
- package/dist/plugin/provider/openai-compatible.js +2 -2
- package/dist/plugin/provider/openai.js +82 -81
- package/dist/plugin/provider/opencode.js +96 -95
- 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 +112 -111
- package/dist/plugin/provider/xai.js +81 -79
- package/dist/plugin/provider/zenmux.js +3 -3
- package/dist/plugin/provider.js +158 -157
- package/dist/plugin/runtime.js +154 -151
- package/dist/plugin/sdk.js +72 -71
- package/dist/plugin/skill.js +133 -132
- package/dist/plugin/supervisor-service.js +2 -2
- package/dist/plugin/supervisor.js +303 -303
- package/dist/plugin/system-prompt.js +2 -2
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/warming.js +113 -112
- 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 +166 -163
- package/dist/project/schema.js +3 -3
- package/dist/project/sql.js +5 -5
- package/dist/project.js +80 -79
- 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 +73 -72
- package/dist/pty.js +87 -86
- package/dist/reference/instructions.js +80 -79
- package/dist/reference.js +78 -77
- package/dist/repository-cache.js +7 -7
- package/dist/repository.js +2 -2
- package/dist/ripgrep/binary.js +3 -3
- package/dist/ripgrep.js +92 -91
- package/dist/schema.js +2 -2
- package/dist/session/compaction.js +140 -142
- package/dist/session/context.js +310 -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 +118 -117
- package/dist/session/execution.js +118 -117
- package/dist/session/generate-node.js +311 -312
- package/dist/session/generate.js +2 -2
- package/dist/session/history.js +82 -79
- package/dist/session/inbox.js +80 -79
- package/dist/session/info.js +90 -89
- package/dist/session/instruction-entry.js +83 -76
- package/dist/session/instruction-state.js +10 -10
- package/dist/session/instructions.js +99 -98
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +2 -2
- package/dist/session/model-request.js +136 -138
- package/dist/session/model-transport.js +5 -4
- package/dist/session/projector.js +93 -91
- package/dist/session/prompt-cache-diagnostics.js +2 -2
- package/dist/session/revert.js +88 -87
- package/dist/session/run-coordinator.js +2 -2
- package/dist/session/runner/index.js +87 -86
- package/dist/session/runner/llm.js +316 -317
- package/dist/session/runner/max-steps.js +2 -2
- package/dist/session/runner/model.js +86 -85
- package/dist/session/runner/publish-llm-event.js +4 -4
- package/dist/session/runner/retry.js +75 -74
- 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/store.js +98 -97
- package/dist/session/system-prompt.js +2 -2
- package/dist/session/title.js +138 -140
- package/dist/session/to-session-error.js +113 -112
- package/dist/session/transfer.js +171 -159
- package/dist/session/usage.js +2 -2
- package/dist/session.js +155 -150
- 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/{chunks/index-8jqmqb92.js → shell/scan.js} +6 -6
- package/dist/shell/select.js +4 -4
- package/dist/shell.js +97 -96
- package/dist/skill/discovery.js +3 -3
- package/dist/skill/instructions.js +104 -103
- package/dist/skill.js +103 -102
- package/dist/snapshot.js +83 -82
- 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 +125 -124
- package/dist/tool/plugin/edit.js +112 -111
- package/dist/tool/plugin/file-diff.js +2 -2
- package/dist/tool/plugin/glob.js +114 -113
- package/dist/tool/plugin/grep.js +114 -113
- package/dist/tool/plugin/patch.js +112 -111
- package/dist/tool/plugin/question.js +104 -103
- package/dist/tool/plugin/read.js +117 -116
- package/dist/tool/plugin/shell.js +184 -181
- package/dist/tool/plugin/skill.js +104 -103
- package/dist/tool/plugin/subagent.js +181 -178
- package/dist/tool/plugin/webfetch.js +105 -104
- package/dist/tool/plugin/websearch.js +107 -106
- package/dist/tool/plugin/write.js +112 -111
- package/dist/tool/read-filesystem.js +96 -95
- package/dist/tool/runtime.js +2 -2
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +118 -117
- package/dist/types/config/plugin/entry-observer.d.ts +7 -0
- package/dist/types/database/migration/20260819222447_session_viewed_state.d.ts +3 -0
- package/dist/types/effect/websocket-constructor.d.ts +8 -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 +2 -0
- package/dist/types/plugin/host.d.ts +26 -25
- package/dist/types/plugin/sdk.d.ts +1 -1
- package/dist/types/plugin.d.ts +2 -1
- package/dist/types/session/history.d.ts +345 -0
- package/dist/types/session/instruction-entry.d.ts +20 -0
- package/dist/types/session/model-request.d.ts +1 -1
- package/dist/types/session/schema.d.ts +3 -0
- package/dist/types/session/sql.d.ts +50 -1
- package/dist/types/session/transfer.d.ts +3 -0
- package/dist/types/session.d.ts +20 -11
- package/dist/types/shell/scan.d.ts +17 -0
- package/dist/types/skill.d.ts +1 -1
- package/dist/types/state.d.ts +4 -0
- package/dist/types/v1/config/migrate.d.ts +2 -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 +2 -3
- 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/git.js +3 -3
- package/dist/vcs/hg.js +3 -3
- package/dist/vcs/patch.js +2 -2
- package/dist/vcs.js +85 -84
- package/dist/websearch.js +76 -75
- package/dist/wellknown/plugin.js +76 -75
- package/dist/wellknown.js +75 -74
- package/dist/workspace/driver.js +2 -2
- package/dist/workspace/sql.js +2 -2
- package/dist/workspace.js +72 -71
- 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 +85 -84
- package/package.json +11 -10
- package/dist/chunks/workspace-1xksxgzs.js +0 -24
- package/dist/chunks/workspace-52jzav25.js +0 -13
- package/dist/chunks/workspace-93qdgxxd.js +0 -30
- package/dist/chunks/workspace-vxz5qdmp.js +0 -31
- package/dist/session/model-headers.js +0 -11
- package/dist/session/model-hook.js +0 -11
- package/dist/session/model-http.js +0 -11
- package/dist/session/prompt-cache-key.js +0 -10
- package/dist/types/session/model-headers.d.ts +0 -12
- package/dist/types/session/model-hook.d.ts +0 -12
- package/dist/types/session/model-http.d.ts +0 -11
- package/dist/types/session/prompt-cache-key.d.ts +0 -3
- /package/dist/chunks/{workspace-0cgt0xh2.js → schema-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{workspace-0f48qthw.js → schema-0f48qthw.js} +0 -0
- /package/dist/chunks/{workspace-0zz82cjq.js → schema-0zz82cjq.js} +0 -0
- /package/dist/chunks/{workspace-1fb7bmpf.js → schema-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{workspace-1wcz8fvj.js → schema-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{workspace-2qdx6zz3.js → schema-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{workspace-3c4nztf9.js → schema-3c4nztf9.js} +0 -0
- /package/dist/chunks/{workspace-3g3rpp2x.js → schema-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{workspace-3q6gbwmd.js → schema-3q6gbwmd.js} +0 -0
- /package/dist/chunks/{workspace-3w3ybtfd.js → schema-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{workspace-47ty4mvs.js → schema-47ty4mvs.js} +0 -0
- /package/dist/chunks/{workspace-4b2tz2m9.js → schema-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{workspace-4zg0gww9.js → schema-4zg0gww9.js} +0 -0
- /package/dist/chunks/{workspace-5a5ch9ts.js → schema-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{workspace-5va1yh78.js → schema-5va1yh78.js} +0 -0
- /package/dist/chunks/{workspace-69qrqpw0.js → schema-69qrqpw0.js} +0 -0
- /package/dist/chunks/{workspace-6yt963b8.js → schema-6yt963b8.js} +0 -0
- /package/dist/chunks/{workspace-7n9qwqk4.js → schema-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{workspace-8nn8kqcn.js → schema-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{workspace-8sj3ajy5.js → schema-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{workspace-8w9tzfz1.js → schema-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{workspace-906y0b6d.js → schema-906y0b6d.js} +0 -0
- /package/dist/chunks/{workspace-9dct5xhx.js → schema-9dct5xhx.js} +0 -0
- /package/dist/chunks/{workspace-9sdtsapf.js → schema-9sdtsapf.js} +0 -0
- /package/dist/chunks/{workspace-a02svayp.js → schema-a02svayp.js} +0 -0
- /package/dist/chunks/{workspace-a83yvq99.js → schema-a83yvq99.js} +0 -0
- /package/dist/chunks/{workspace-aqg9wnx6.js → schema-aqg9wnx6.js} +0 -0
- /package/dist/chunks/{workspace-ayevdmef.js → schema-ayevdmef.js} +0 -0
- /package/dist/chunks/{workspace-b02txbh8.js → schema-b02txbh8.js} +0 -0
- /package/dist/chunks/{workspace-bbqs2y60.js → schema-bbqs2y60.js} +0 -0
- /package/dist/chunks/{workspace-brsh5f65.js → schema-brsh5f65.js} +0 -0
- /package/dist/chunks/{workspace-bxdhjb3y.js → schema-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{workspace-c77ad0vh.js → schema-c77ad0vh.js} +0 -0
- /package/dist/chunks/{workspace-cm67rqy2.js → schema-cm67rqy2.js} +0 -0
- /package/dist/chunks/{workspace-dbah77c1.js → schema-dbah77c1.js} +0 -0
- /package/dist/chunks/{workspace-df3v2q6j.js → schema-df3v2q6j.js} +0 -0
- /package/dist/chunks/{workspace-dhcq6c44.js → schema-dhcq6c44.js} +0 -0
- /package/dist/chunks/{workspace-dht5baf0.js → schema-dht5baf0.js} +0 -0
- /package/dist/chunks/{workspace-dkmkay92.js → schema-dkmkay92.js} +0 -0
- /package/dist/chunks/{workspace-ehj9csmv.js → schema-ehj9csmv.js} +0 -0
- /package/dist/chunks/{workspace-em6xpscd.js → schema-em6xpscd.js} +0 -0
- /package/dist/chunks/{workspace-emmqknsm.js → schema-emmqknsm.js} +0 -0
- /package/dist/chunks/{workspace-ezs3tagn.js → schema-ezs3tagn.js} +0 -0
- /package/dist/chunks/{workspace-f14r7hfz.js → schema-f14r7hfz.js} +0 -0
- /package/dist/chunks/{workspace-f4cp4g4a.js → schema-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{workspace-f84sxdqn.js → schema-f84sxdqn.js} +0 -0
- /package/dist/chunks/{workspace-faypg4r1.js → schema-faypg4r1.js} +0 -0
- /package/dist/chunks/{workspace-gd5xeqc2.js → schema-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{workspace-ghm4673n.js → schema-ghm4673n.js} +0 -0
- /package/dist/chunks/{workspace-ghwjy7my.js → schema-ghwjy7my.js} +0 -0
- /package/dist/chunks/{workspace-gy500k2r.js → schema-gy500k2r.js} +0 -0
- /package/dist/chunks/{workspace-hzeg9cfr.js → schema-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{workspace-j07kk359.js → schema-j07kk359.js} +0 -0
- /package/dist/chunks/{workspace-jve7t217.js → schema-jve7t217.js} +0 -0
- /package/dist/chunks/{workspace-kpdbz7gn.js → schema-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{workspace-kxy11nzk.js → schema-kxy11nzk.js} +0 -0
- /package/dist/chunks/{workspace-kyyqvx4s.js → schema-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{workspace-m8cbvarh.js → schema-m8cbvarh.js} +0 -0
- /package/dist/chunks/{workspace-ma07p6tt.js → schema-ma07p6tt.js} +0 -0
- /package/dist/chunks/{workspace-ma60vzgv.js → schema-ma60vzgv.js} +0 -0
- /package/dist/chunks/{workspace-n3m50c2t.js → schema-n3m50c2t.js} +0 -0
- /package/dist/chunks/{workspace-nkm1m8dz.js → schema-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{workspace-nsc0c3zb.js → schema-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{workspace-qaarhjrp.js → schema-qaarhjrp.js} +0 -0
- /package/dist/chunks/{workspace-qc167nrn.js → schema-qc167nrn.js} +0 -0
- /package/dist/chunks/{workspace-qp95y4jb.js → schema-qp95y4jb.js} +0 -0
- /package/dist/chunks/{workspace-r8f4w671.js → schema-r8f4w671.js} +0 -0
- /package/dist/chunks/{workspace-rdfev9jy.js → schema-rdfev9jy.js} +0 -0
- /package/dist/chunks/{workspace-rvfvac9x.js → schema-rvfvac9x.js} +0 -0
- /package/dist/chunks/{workspace-s7whb9gt.js → schema-s7whb9gt.js} +0 -0
- /package/dist/chunks/{workspace-se76j685.js → schema-se76j685.js} +0 -0
- /package/dist/chunks/{workspace-sem2g21k.js → schema-sem2g21k.js} +0 -0
- /package/dist/chunks/{workspace-tmb1f636.js → schema-tmb1f636.js} +0 -0
- /package/dist/chunks/{workspace-ttxf0gsy.js → schema-ttxf0gsy.js} +0 -0
- /package/dist/chunks/{workspace-tvmhrvfj.js → schema-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{workspace-v2adqbbe.js → schema-v2adqbbe.js} +0 -0
- /package/dist/chunks/{workspace-vkvb1sb3.js → schema-vkvb1sb3.js} +0 -0
- /package/dist/chunks/{workspace-wj4sxzqa.js → schema-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{workspace-wwntjmk1.js → schema-wwntjmk1.js} +0 -0
- /package/dist/chunks/{workspace-wyqjaaa5.js → schema-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{workspace-x4q807cx.js → schema-x4q807cx.js} +0 -0
- /package/dist/chunks/{workspace-yrqrg4vp.js → schema-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{workspace-z47nswr2.js → schema-z47nswr2.js} +0 -0
- /package/dist/chunks/{workspace-zsf8rs93.js → schema-zsf8rs93.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath,
|
|
3
3
|
RelativePath
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./schema-j07kk359.js";
|
|
5
5
|
import {
|
|
6
6
|
exports_keyed_mutex
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./schema-0kvmztkf.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./schema-rvfvac9x.js";
|
|
11
11
|
|
|
12
12
|
// src/git.ts
|
|
13
13
|
var exports_git = {};
|
|
@@ -93,7 +93,9 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
93
93
|
const locks = exports_keyed_mutex.makeUnsafe();
|
|
94
94
|
const locked = (repository, effect) => locks.withLock(repository.gitDirectory)(effect);
|
|
95
95
|
const discover = Effect.fn("Git.repo.discover")(function* (input) {
|
|
96
|
-
const dotgit = yield* fs.up({ targets: [".git"], start: input, mode: "first" }).pipe(Effect.map((matches) => matches[0]), Effect.
|
|
96
|
+
const dotgit = yield* fs.up({ targets: [".git"], start: input, mode: "first" }).pipe(Effect.map((matches) => matches[0]), Effect.orElseSucceed(() => {
|
|
97
|
+
return;
|
|
98
|
+
}));
|
|
97
99
|
if (!dotgit)
|
|
98
100
|
return;
|
|
99
101
|
const cwd = path.dirname(dotgit);
|
|
@@ -213,12 +215,8 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
213
215
|
});
|
|
214
216
|
});
|
|
215
217
|
const create = Effect.fn("Git.repo.create")(function* (input) {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
directory: input.gitDirectory,
|
|
219
|
-
message: "Failed to create Git storage",
|
|
220
|
-
cause
|
|
221
|
-
})));
|
|
218
|
+
const operationError = (message) => (cause) => new OperationError({ operation: "create", directory: input.gitDirectory, message, cause });
|
|
219
|
+
yield* fs.ensureDir(input.gitDirectory).pipe(Effect.mapError(operationError("Failed to create Git storage")));
|
|
222
220
|
const repository = new Repository({
|
|
223
221
|
worktree: input.worktree,
|
|
224
222
|
gitDirectory: input.gitDirectory,
|
|
@@ -238,28 +236,13 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
238
236
|
`}${snapshotConfigInclude}`, {
|
|
239
237
|
flag: "a"
|
|
240
238
|
});
|
|
241
|
-
}).pipe(Effect.mapError((
|
|
242
|
-
operation: "create",
|
|
243
|
-
directory: input.gitDirectory,
|
|
244
|
-
message: "Failed to configure Git storage",
|
|
245
|
-
cause
|
|
246
|
-
})));
|
|
239
|
+
}).pipe(Effect.mapError(operationError("Failed to configure Git storage")));
|
|
247
240
|
if (!input.seed)
|
|
248
241
|
return repository;
|
|
249
|
-
yield* fs.ensureDir(path.join(input.gitDirectory, "objects", "info")).pipe(Effect.mapError((
|
|
250
|
-
operation: "create",
|
|
251
|
-
directory: input.gitDirectory,
|
|
252
|
-
message: "Failed to configure shared Git objects",
|
|
253
|
-
cause
|
|
254
|
-
})));
|
|
242
|
+
yield* fs.ensureDir(path.join(input.gitDirectory, "objects", "info")).pipe(Effect.mapError(operationError("Failed to configure shared Git objects")));
|
|
255
243
|
yield* fs.writeFileString(path.join(input.gitDirectory, "objects", "info", "alternates"), path.join(input.seed.commonDirectory, "objects") + `
|
|
256
|
-
`).pipe(Effect.mapError((
|
|
257
|
-
|
|
258
|
-
directory: input.gitDirectory,
|
|
259
|
-
message: "Failed to configure shared Git objects",
|
|
260
|
-
cause
|
|
261
|
-
})));
|
|
262
|
-
yield* fs.copyFile(path.join(input.seed.gitDirectory, "index"), path.join(input.gitDirectory, "index")).pipe(Effect.catch(() => Effect.void));
|
|
244
|
+
`).pipe(Effect.mapError(operationError("Failed to configure shared Git objects")));
|
|
245
|
+
yield* fs.copyFile(path.join(input.seed.gitDirectory, "index"), path.join(input.gitDirectory, "index")).pipe(Effect.ignore);
|
|
263
246
|
return repository;
|
|
264
247
|
});
|
|
265
248
|
const refresh = Effect.fn("Git.index.refresh")(function* (input) {
|
|
@@ -273,10 +256,12 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
273
256
|
return { skipped: [] };
|
|
274
257
|
const ignored2 = input.ignores ? new Set((yield* repositoryOperation("refresh", input.ignores, ["check-ignore", "--no-index", "--stdin", "-z"], {
|
|
275
258
|
stdin: candidates.join("\x00") + "\x00"
|
|
276
|
-
}).pipe(Effect.
|
|
259
|
+
}).pipe(Effect.orElseSucceed(() => ({ text: "", stderr: "" })))).text.split("\x00").filter(Boolean)) : new Set;
|
|
277
260
|
const allowed = candidates.filter((item) => !ignored2.has(item));
|
|
278
261
|
const maximum = input.maximumUntrackedFileBytes;
|
|
279
|
-
const skipped = maximum ? (yield* Effect.forEach(untracked.filter((item) => allowed.includes(item)), (item) => fs.stat(path.join(input.repository.worktree, item)).pipe(Effect.map((info) => info.type === "File" && Number(info.size) > maximum ? RelativePath.make(item) : undefined), Effect.
|
|
262
|
+
const skipped = maximum ? (yield* Effect.forEach(untracked.filter((item) => allowed.includes(item)), (item) => fs.stat(path.join(input.repository.worktree, item)).pipe(Effect.map((info) => info.type === "File" && Number(info.size) > maximum ? RelativePath.make(item) : undefined), Effect.orElseSucceed(() => {
|
|
263
|
+
return;
|
|
264
|
+
})), { concurrency: 8 })).filter((item) => item !== undefined) : [];
|
|
280
265
|
const stage = allowed.filter((item) => !skipped.includes(RelativePath.make(item)));
|
|
281
266
|
const remove = [...ignored2, ...skipped];
|
|
282
267
|
if (remove.length)
|
|
@@ -362,7 +347,7 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
362
347
|
};
|
|
363
348
|
}));
|
|
364
349
|
});
|
|
365
|
-
const
|
|
350
|
+
const hasEntry = Effect.fnUntraced(function* (repository, tree, file) {
|
|
366
351
|
const text = (yield* repositoryOperation("restore", repository, [
|
|
367
352
|
"ls-tree",
|
|
368
353
|
"-z",
|
|
@@ -371,18 +356,17 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
371
356
|
file
|
|
372
357
|
])).text.replace(/\0$/, "");
|
|
373
358
|
if (!text)
|
|
374
|
-
return;
|
|
375
|
-
|
|
376
|
-
if (!match)
|
|
359
|
+
return false;
|
|
360
|
+
if (!/^\d+\s+\w+\s+[0-9a-f]+\t/.test(text))
|
|
377
361
|
return yield* new OperationError({
|
|
378
362
|
operation: "restore",
|
|
379
363
|
directory: repository.worktree,
|
|
380
364
|
message: `Invalid tree entry for ${file}`
|
|
381
365
|
});
|
|
382
|
-
return
|
|
366
|
+
return true;
|
|
383
367
|
});
|
|
384
368
|
const restore = Effect.fn("Git.tree.restore")((input) => locked(input.repository, Effect.forEach(input.files, ([file, tree]) => Effect.gen(function* () {
|
|
385
|
-
if (yield*
|
|
369
|
+
if (yield* hasEntry(input.repository, tree, file)) {
|
|
386
370
|
yield* repositoryOperation("restore", input.repository, ["checkout", tree, "--", file]);
|
|
387
371
|
return;
|
|
388
372
|
}
|
|
@@ -444,7 +428,7 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
444
428
|
}));
|
|
445
429
|
var node = makeGlobalNode({ service: Service, layer, deps: [FSUtil.node, AppProcess.node] });
|
|
446
430
|
function run(cwd, proc) {
|
|
447
|
-
return (args) => execute(cwd, proc)(args).pipe(Effect.
|
|
431
|
+
return (args) => execute(cwd, proc)(args).pipe(Effect.orElseSucceed(() => ({ exitCode: 1, text: "", stderr: "" })));
|
|
448
432
|
}
|
|
449
433
|
function execute(cwd, proc) {
|
|
450
434
|
return (args) => proc.run(ChildProcess.make("git", args, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_app
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-50jxp3hw.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-rvfvac9x.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/tavily.ts
|
|
9
9
|
var exports_tavily = {};
|
|
@@ -61,10 +61,7 @@ var Plugin = define({
|
|
|
61
61
|
chunks_per_source: 3,
|
|
62
62
|
max_results: 8
|
|
63
63
|
}));
|
|
64
|
-
const response = yield* Effect.
|
|
65
|
-
const httpResponse = yield* HttpClient.filterStatusOk(http).execute(request);
|
|
66
|
-
return yield* HttpClientResponse.schemaBodyJson(SearchResponse)(httpResponse);
|
|
67
|
-
}).pipe(Effect.timeoutOrElse({
|
|
64
|
+
const response = yield* HttpClient.filterStatusOk(http).execute(request).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(SearchResponse)), Effect.timeoutOrElse({
|
|
68
65
|
duration: Duration.seconds(25),
|
|
69
66
|
orElse: () => Effect.fail(new Error("Tavily web search request timed out"))
|
|
70
67
|
}));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_skill
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-fx6gxcwx.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_instructions
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-ec8vrfw5.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./schema-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/skill/instructions.ts
|
|
12
12
|
var exports_instructions2 = {};
|
|
@@ -62,8 +62,7 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
62
62
|
const agent = selection.info;
|
|
63
63
|
if (!agent)
|
|
64
64
|
return exports_instructions.empty;
|
|
65
|
-
const
|
|
66
|
-
const available = permitted.flatMap((skill) => skill.description === undefined || skill.autoinvoke === false ? [] : [{ id: skill.id, name: skill.name, description: skill.description }]).toSorted((a, b) => a.id.localeCompare(b.id));
|
|
65
|
+
const available = exports_skill.available(yield* skills.list(), agent).flatMap((skill) => skill.description === undefined || skill.autoinvoke === false ? [] : [{ id: skill.id, name: skill.name, description: skill.description }]).toSorted((a, b) => a.id.localeCompare(b.id));
|
|
67
66
|
return exports_instructions.make({
|
|
68
67
|
key: exports_instructions.Key.make("core/skill-guidance"),
|
|
69
68
|
codec: Schema.toCodecJson(Schema.Array(Summary)),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
collectBoundedResponseBody
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-jve7t217.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-rvfvac9x.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/mcp.ts
|
|
9
9
|
var exports_mcp = {};
|
|
@@ -21,7 +21,7 @@ var parseResponse = (body, result) => {
|
|
|
21
21
|
const parse = (payload) => {
|
|
22
22
|
const trimmed = payload.trim();
|
|
23
23
|
if (!trimmed.startsWith("{"))
|
|
24
|
-
return Effect.
|
|
24
|
+
return Effect.undefined;
|
|
25
25
|
return decode(trimmed).pipe(Effect.map((response) => response.result));
|
|
26
26
|
};
|
|
27
27
|
return Effect.gen(function* () {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-rvfvac9x.js";
|
|
4
4
|
|
|
5
5
|
// src/session/run-coordinator.ts
|
|
6
6
|
var exports_run_coordinator = {};
|
|
@@ -12,7 +12,7 @@ import { Deferred, Effect, Exit, Fiber, FiberSet } from "effect";
|
|
|
12
12
|
var make = (options) => Effect.gen(function* () {
|
|
13
13
|
const executions = new Map;
|
|
14
14
|
const fork = yield* FiberSet.makeRuntime();
|
|
15
|
-
const loop = (key, execution, force) => Effect.suspend(() => options.drain(key, force, execution.scope)).pipe(Effect.
|
|
15
|
+
const loop = (key, execution, force) => Effect.suspend(() => options.drain(key, force, execution.scope)).pipe(Effect.andThen(Effect.suspend(() => {
|
|
16
16
|
if (execution.stopping || execution.pendingWake === undefined)
|
|
17
17
|
return Effect.void;
|
|
18
18
|
execution.scope = execution.pendingWake;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_config
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-53xdmpnb.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_runtime
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-3x0rbcme.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_permission
|
|
9
|
-
} from "./
|
|
10
|
-
import {
|
|
11
|
-
exports_schema
|
|
12
|
-
} from "./workspace-y8rs54ne.js";
|
|
9
|
+
} from "./schema-gpj6jen2.js";
|
|
13
10
|
import {
|
|
14
11
|
exports_agent
|
|
15
|
-
} from "./
|
|
12
|
+
} from "./schema-kcbd8yt0.js";
|
|
13
|
+
import {
|
|
14
|
+
exports_schema
|
|
15
|
+
} from "./schema-y8rs54ne.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./schema-rvfvac9x.js";
|
|
19
19
|
|
|
20
20
|
// src/tool/plugin/subagent.ts
|
|
21
21
|
var exports_subagent = {};
|
|
@@ -31,12 +31,16 @@ import { ToolFailure } from "@opencode-ai/ai";
|
|
|
31
31
|
import { Effect, Schema, Scope } from "effect";
|
|
32
32
|
var name = "subagent";
|
|
33
33
|
var NO_TEXT = "Subagent completed without a text response.";
|
|
34
|
-
var
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
var backgroundResult = (sessionID) => ({
|
|
35
|
+
sessionID,
|
|
36
|
+
status: "running",
|
|
37
|
+
output: [
|
|
38
|
+
`The subagent is working in the background (sessionID: ${sessionID}). You will be notified automatically when it finishes.`,
|
|
39
|
+
"DO NOT sleep, poll for progress, ask the subagent for status, or duplicate this subagent's work; avoid working with the same files or topics it is using.",
|
|
40
|
+
"Work on non-overlapping tasks, or briefly tell the user what you launched and end your response."
|
|
41
|
+
].join(`
|
|
42
|
+
`)
|
|
43
|
+
});
|
|
40
44
|
var Input = Schema.Struct({
|
|
41
45
|
agent: Schema.String.annotate({ description: "The type of specialized agent to use for this task" }),
|
|
42
46
|
description: Schema.String.annotate({ description: "A short 3-5 word label for the task, displayed to the user" }),
|
|
@@ -176,22 +180,14 @@ ${text}
|
|
|
176
180
|
if (background) {
|
|
177
181
|
yield* runtime.job.background(info.id);
|
|
178
182
|
yield* notifyWhenDone(context.sessionID, child.id, agent.name, input.description, info.started_at);
|
|
179
|
-
return
|
|
180
|
-
sessionID: child.id,
|
|
181
|
-
status: "running",
|
|
182
|
-
output: backgroundStarted(child.id)
|
|
183
|
-
};
|
|
183
|
+
return backgroundResult(child.id);
|
|
184
184
|
}
|
|
185
185
|
const result = yield* runtime.job.block({ id: child.id, sessionID: context.sessionID }).pipe(Effect.onInterrupt(() => Effect.all([runtime.session.interrupt(child.id), runtime.job.cancel(child.id)], {
|
|
186
186
|
discard: true
|
|
187
187
|
})));
|
|
188
188
|
if (result?.type === "backgrounded") {
|
|
189
189
|
yield* notifyWhenDone(context.sessionID, child.id, agent.name, input.description, result.info.started_at);
|
|
190
|
-
return
|
|
191
|
-
sessionID: child.id,
|
|
192
|
-
status: "running",
|
|
193
|
-
output: backgroundStarted(child.id)
|
|
194
|
-
};
|
|
190
|
+
return backgroundResult(child.id);
|
|
195
191
|
}
|
|
196
192
|
if (result?.info.status === "error")
|
|
197
193
|
return yield* new ToolFailure({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_provider
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-djkt4gex.js";
|
|
4
4
|
import {
|
|
5
5
|
__require
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-rvfvac9x.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/snowflake-cortex.ts
|
|
9
9
|
import { Effect } from "effect";
|
|
@@ -21,7 +21,7 @@ function cortexFetch(upstream = fetch) {
|
|
|
21
21
|
} catch {}
|
|
22
22
|
}
|
|
23
23
|
const response = await upstream(url, init);
|
|
24
|
-
if (
|
|
24
|
+
if (response.status === 400) {
|
|
25
25
|
try {
|
|
26
26
|
const errorData = await response.clone().json();
|
|
27
27
|
if (String(errorData.message || errorData.error || "").toLowerCase().includes("conversation complete")) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_location
|
|
3
|
-
} from "./
|
|
4
|
-
import {
|
|
5
|
-
exports_state
|
|
6
|
-
} from "./workspace-f2kz495y.js";
|
|
3
|
+
} from "./schema-j3ethsxz.js";
|
|
7
4
|
import {
|
|
8
5
|
exports_git
|
|
9
|
-
} from "./
|
|
6
|
+
} from "./schema-b7hsw5bk.js";
|
|
10
7
|
import {
|
|
11
8
|
AbsolutePath,
|
|
12
9
|
RelativePath
|
|
13
|
-
} from "./
|
|
10
|
+
} from "./schema-j07kk359.js";
|
|
11
|
+
import {
|
|
12
|
+
exports_state
|
|
13
|
+
} from "./schema-qhdqjp31.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./schema-rvfvac9x.js";
|
|
17
17
|
|
|
18
18
|
// src/snapshot.ts
|
|
19
19
|
var exports_snapshot = {};
|
|
@@ -139,7 +139,7 @@ var node = makeLocationNode({
|
|
|
139
139
|
var noopLayer = Layer.succeed(Service, Service.of({
|
|
140
140
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
141
141
|
reload: () => Effect.void,
|
|
142
|
-
capture: () => Effect.
|
|
142
|
+
capture: () => Effect.undefined,
|
|
143
143
|
files: () => Effect.succeed([]),
|
|
144
144
|
diff: () => Effect.succeed([]),
|
|
145
145
|
restore: () => Effect.void
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// src/effect/websocket-constructor.ts
|
|
2
|
+
import { NodeSocket } from "@effect/platform-node";
|
|
3
|
+
import { HttpProxyAgent } from "http-proxy-agent";
|
|
4
|
+
import { HttpsProxyAgent } from "https-proxy-agent";
|
|
5
|
+
import { Layer } from "effect";
|
|
6
|
+
import { Socket } from "effect/unstable/socket";
|
|
7
|
+
var environmentValue = (environment, name) => environment[name] ?? environment[name.toLowerCase()];
|
|
8
|
+
var bypassesProxy = (url, value) => {
|
|
9
|
+
if (!value)
|
|
10
|
+
return false;
|
|
11
|
+
const port = url.port || (url.protocol === "wss:" ? "443" : "80");
|
|
12
|
+
const hostname = url.hostname.toLowerCase();
|
|
13
|
+
return value.split(/[\s,]+/).some((entry) => {
|
|
14
|
+
if (!entry)
|
|
15
|
+
return false;
|
|
16
|
+
if (entry === "*")
|
|
17
|
+
return true;
|
|
18
|
+
const match = entry.match(/^(.+?):(\d+)$/);
|
|
19
|
+
if (match?.[2] && match[2] !== port)
|
|
20
|
+
return false;
|
|
21
|
+
const host = (match?.[1] ?? entry).toLowerCase().replace(/^\*/, "");
|
|
22
|
+
return host.startsWith(".") ? hostname.endsWith(host) : hostname === host;
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
var proxy = (value, environment = process.env) => {
|
|
26
|
+
const url = new URL(value);
|
|
27
|
+
if (["127.0.0.1", "localhost", "::1"].includes(url.hostname))
|
|
28
|
+
return;
|
|
29
|
+
if (bypassesProxy(url, environmentValue(environment, "NO_PROXY")))
|
|
30
|
+
return;
|
|
31
|
+
const protocolProxy = url.protocol === "wss:" ? "WSS_PROXY" : "WS_PROXY";
|
|
32
|
+
const standardProxy = url.protocol === "wss:" ? "HTTPS_PROXY" : "HTTP_PROXY";
|
|
33
|
+
return environmentValue(environment, protocolProxy) ?? environmentValue(environment, standardProxy) ?? environmentValue(environment, "ALL_PROXY");
|
|
34
|
+
};
|
|
35
|
+
var constructorOptions = (input) => {
|
|
36
|
+
if (typeof input === "string" || Array.isArray(input))
|
|
37
|
+
return { protocols: input };
|
|
38
|
+
return input ?? {};
|
|
39
|
+
};
|
|
40
|
+
var proxyAgent = (url, selectedProxy) => {
|
|
41
|
+
if (!selectedProxy)
|
|
42
|
+
return;
|
|
43
|
+
if (url.startsWith("wss:") || selectedProxy.startsWith("https:"))
|
|
44
|
+
return new HttpsProxyAgent(selectedProxy);
|
|
45
|
+
return new HttpProxyAgent(selectedProxy);
|
|
46
|
+
};
|
|
47
|
+
var layer = Layer.succeed(Socket.WebSocketConstructor, (url, input) => {
|
|
48
|
+
const config = constructorOptions(input);
|
|
49
|
+
const selectedProxy = proxy(url);
|
|
50
|
+
if (typeof Bun !== "undefined") {
|
|
51
|
+
const WebSocket = globalThis.WebSocket;
|
|
52
|
+
return new WebSocket(url, {
|
|
53
|
+
headers: config.headers,
|
|
54
|
+
protocols: config.protocols,
|
|
55
|
+
...selectedProxy ? { proxy: selectedProxy } : {}
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
const native = {
|
|
59
|
+
headers: config.headers,
|
|
60
|
+
agent: proxyAgent(url, selectedProxy),
|
|
61
|
+
followRedirects: false
|
|
62
|
+
};
|
|
63
|
+
const socket = config.protocols ? new NodeSocket.NodeWS.WebSocket(url, config.protocols, native) : new NodeSocket.NodeWS.WebSocket(url, native);
|
|
64
|
+
return socket;
|
|
65
|
+
});
|
|
66
|
+
var WebSocketConstructor = { layer, proxy };
|
|
67
|
+
|
|
68
|
+
export { WebSocketConstructor };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
which
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-k3e42drn.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_state
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-qhdqjp31.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./schema-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/shell/select.ts
|
|
12
12
|
var exports_select = {};
|
|
@@ -153,10 +153,6 @@ function info(file, options, bin) {
|
|
|
153
153
|
}
|
|
154
154
|
function args(file, command) {
|
|
155
155
|
const n = name(file);
|
|
156
|
-
if (n === "nu" || n === "fish")
|
|
157
|
-
return ["-c", command];
|
|
158
|
-
if (n === "zsh" || n === "bash")
|
|
159
|
-
return ["-c", command];
|
|
160
156
|
if (n === "cmd")
|
|
161
157
|
return ["/c", command];
|
|
162
158
|
if (ps(file))
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
exports_location
|
|
3
|
-
} from "./workspace-kwbvxbjz.js";
|
|
4
1
|
import {
|
|
5
2
|
exports_instructions
|
|
6
|
-
} from "./
|
|
3
|
+
} from "./schema-ec8vrfw5.js";
|
|
4
|
+
import {
|
|
5
|
+
exports_location
|
|
6
|
+
} from "./schema-j3ethsxz.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./schema-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/instructions/builtins.ts
|
|
12
12
|
var exports_builtins = {};
|