@opencode-ai/core 0.0.0-beta-17519 → 0.0.0-beta-17595
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 +72 -72
- package/dist/aisdk-native.js +3 -3
- package/dist/aisdk.js +4 -4
- package/dist/app.js +2 -2
- package/dist/bus.js +70 -70
- package/dist/catalog.js +80 -80
- package/dist/chunks/{worktree-1waapm91.js → file-027bgpms.js} +14 -14
- package/dist/chunks/{worktree-02dbfq60.js → file-02dbfq60.js} +1 -1
- package/dist/chunks/{worktree-04kwjb53.js → file-04kwjb53.js} +2 -2
- package/dist/chunks/{worktree-nx95edza.js → file-06h1zy40.js} +5 -5
- package/dist/chunks/{worktree-0dwyqmzq.js → file-0dwyqmzq.js} +1 -1
- package/dist/chunks/{worktree-0kvmztkf.js → file-0kvmztkf.js} +1 -1
- package/dist/chunks/{worktree-vj4x9f3m.js → file-0q14sxyz.js} +9 -9
- package/dist/chunks/{worktree-n8bdvphd.js → file-0x2z9q12.js} +8 -8
- package/dist/chunks/{worktree-0zs4qnv1.js → file-0zs4qnv1.js} +2 -2
- package/dist/chunks/{worktree-18pv8fg3.js → file-18pv8fg3.js} +2 -2
- package/dist/chunks/{worktree-0b3j38xs.js → file-18vh565s.js} +6 -6
- package/dist/chunks/{worktree-1c00jchy.js → file-1c00jchy.js} +2 -2
- package/dist/chunks/{worktree-xfd1xnk3.js → file-1px4xhxb.js} +2 -2
- package/dist/chunks/{worktree-37rcj8p3.js → file-1sx0aa4f.js} +3 -3
- package/dist/chunks/{worktree-2vwegrqc.js → file-1w0svdh3.js} +2 -2
- package/dist/chunks/{worktree-1xksxgzs.js → file-1xksxgzs.js} +2 -2
- package/dist/chunks/{worktree-f1nsvbvj.js → file-1yz6p2jq.js} +3 -3
- package/dist/chunks/{worktree-fe14tdkq.js → file-20fnfdqj.js} +10 -10
- package/dist/chunks/{worktree-25pxtba7.js → file-25pxtba7.js} +1 -1
- package/dist/chunks/{worktree-sd966s7w.js → file-27xnc6tv.js} +9 -9
- package/dist/chunks/{worktree-x8bp53t2.js → file-2g41g83c.js} +7 -7
- package/dist/chunks/{worktree-t6j101pt.js → file-2krtwza0.js} +7 -7
- package/dist/chunks/{worktree-2nmyybe0.js → file-2nmyybe0.js} +1 -1
- package/dist/chunks/{worktree-ddn74qps.js → file-2vxr0v86.js} +2 -2
- package/dist/chunks/{worktree-vgenfcra.js → file-2wqqqft7.js} +2 -2
- package/dist/chunks/{worktree-bpjevh87.js → file-3755670m.js} +25 -25
- package/dist/chunks/{worktree-38crwsq8.js → file-38crwsq8.js} +2 -2
- package/dist/chunks/{worktree-gs3rgzv4.js → file-3bk6rmsw.js} +129 -116
- package/dist/chunks/{worktree-5pfeh60c.js → file-3g8vftxb.js} +2 -2
- package/dist/chunks/{worktree-wm59w936.js → file-3jfeqpzx.js} +22 -22
- package/dist/chunks/{worktree-5xzparyv.js → file-3s7e2f99.js} +3 -3
- package/dist/chunks/{worktree-3thh6229.js → file-3thh6229.js} +2 -2
- package/dist/chunks/{worktree-t1wskd5z.js → file-4223r8y8.js} +5 -5
- package/dist/chunks/{worktree-42q4drvy.js → file-42q4drvy.js} +2 -2
- package/dist/chunks/{worktree-45f7x7tq.js → file-4adhyg6m.js} +7 -7
- package/dist/chunks/{worktree-pcnqrn8w.js → file-4m2k2smt.js} +7 -7
- package/dist/chunks/{worktree-4s2xwh5d.js → file-4s2xwh5d.js} +3 -3
- package/dist/chunks/{worktree-njp4sjwj.js → file-4wnw1v48.js} +7 -7
- package/dist/chunks/{worktree-4zzdwbaz.js → file-4zzdwbaz.js} +2 -2
- package/dist/chunks/{worktree-50jxp3hw.js → file-50jxp3hw.js} +1 -1
- package/dist/chunks/{worktree-52jzav25.js → file-52jzav25.js} +1 -1
- package/dist/chunks/{worktree-57tzwnz4.js → file-57tzwnz4.js} +1 -1
- package/dist/chunks/{worktree-8wwfk5hz.js → file-5aca3jzc.js} +9 -9
- package/dist/chunks/{worktree-7pgjtstk.js → file-5mbfga6t.js} +4 -4
- package/dist/chunks/{worktree-1rwe361b.js → file-5qc7cxvj.js} +13 -13
- package/dist/chunks/{worktree-taddbf1j.js → file-5rd2371y.js} +9 -9
- package/dist/chunks/{worktree-5rs65q6p.js → file-5rs65q6p.js} +1 -1
- package/dist/chunks/{worktree-5vcssjzn.js → file-5vcssjzn.js} +1 -1
- package/dist/chunks/{worktree-mvfnqvr0.js → file-60c0k1qy.js} +5 -5
- package/dist/chunks/{worktree-zqkzb2rv.js → file-64bdc2sf.js} +2 -2
- package/dist/chunks/{worktree-te3kd788.js → file-658vcx0m.js} +5 -5
- package/dist/chunks/{worktree-7b0jv85b.js → file-663be8qb.js} +7 -7
- package/dist/chunks/{worktree-kgw3cve8.js → file-665983a3.js} +20 -20
- package/dist/chunks/{worktree-nv3q409j.js → file-66ww2ke6.js} +2 -2
- package/dist/chunks/{worktree-hejzkg3n.js → file-6f5gxeem.js} +20 -20
- package/dist/chunks/file-6ky7rqk7.js +31 -0
- package/dist/chunks/{worktree-jqh1fr37.js → file-6nfxvtta.js} +4 -4
- package/dist/chunks/{worktree-cdws2yyh.js → file-6q42t53d.js} +5 -5
- package/dist/chunks/{worktree-875wbggt.js → file-6t84bth1.js} +5 -4
- package/dist/chunks/{worktree-n701djg3.js → file-6tvgjq6v.js} +4 -4
- package/dist/chunks/{worktree-p8fzv3v2.js → file-6y00qkx7.js} +1 -1
- package/dist/chunks/{worktree-706a4azd.js → file-706a4azd.js} +1 -1
- package/dist/chunks/{worktree-eep368gz.js → file-70krbkh8.js} +3 -3
- package/dist/chunks/{worktree-8qy7z4xa.js → file-73brgvey.js} +3 -3
- package/dist/chunks/{worktree-vy0djk29.js → file-75z23hs9.js} +21 -21
- package/dist/chunks/{worktree-7mrpdsq5.js → file-7mrpdsq5.js} +1 -1
- package/dist/chunks/file-7n13pnta.js +174 -0
- package/dist/chunks/{worktree-7wcmqxrc.js → file-7wcmqxrc.js} +1 -1
- package/dist/chunks/{worktree-88jbfw8z.js → file-88jbfw8z.js} +2 -2
- package/dist/chunks/{worktree-dgd8rska.js → file-8a9n1ecs.js} +3 -3
- package/dist/chunks/{worktree-f5h4svs6.js → file-8b8db9dn.js} +42 -7
- package/dist/chunks/{worktree-cgvnqv92.js → file-8dwkjrbx.js} +1 -1
- package/dist/chunks/{worktree-ygfah3rq.js → file-8ss9enjp.js} +3 -3
- package/dist/chunks/{worktree-d6vvk673.js → file-8twz6z1z.js} +2 -2
- package/dist/chunks/{worktree-8v47shgf.js → file-8v47shgf.js} +2 -2
- package/dist/chunks/{worktree-8ywqk2j9.js → file-8ywqk2j9.js} +1 -1
- package/dist/chunks/{worktree-93qdgxxd.js → file-93qdgxxd.js} +1 -1
- package/dist/chunks/{worktree-999qd968.js → file-999qd968.js} +1 -1
- package/dist/chunks/{worktree-9d2xhdr4.js → file-9d2xhdr4.js} +3 -3
- package/dist/chunks/{worktree-nwh9mtrv.js → file-9dbphfd4.js} +12 -12
- package/dist/chunks/{worktree-9f0rnpkn.js → file-9f0rnpkn.js} +1 -1
- package/dist/chunks/file-9jr1552g.js +49 -0
- package/dist/chunks/{worktree-bkkwvxgw.js → file-9nxkvjkr.js} +17 -17
- package/dist/chunks/{worktree-98930e30.js → file-9q7032rn.js} +10 -10
- package/dist/chunks/{worktree-qxcxzq0w.js → file-9tgd1sa0.js} +28 -11
- package/dist/chunks/{worktree-j3m211jx.js → file-9vc4jz8b.js} +5 -5
- package/dist/chunks/{worktree-zrg8htec.js → file-a4004nss.js} +75 -75
- package/dist/chunks/{worktree-a65h300v.js → file-a65h300v.js} +2 -2
- package/dist/chunks/{worktree-n6a0dr6g.js → file-aejdne0e.js} +2 -2
- package/dist/chunks/{worktree-f493cvht.js → file-as1t9t7n.js} +6 -6
- package/dist/chunks/{worktree-ayfwnm78.js → file-ayfwnm78.js} +2 -2
- package/dist/chunks/{worktree-5b8vkrh0.js → file-b1jt21vx.js} +5 -5
- package/dist/chunks/{worktree-v3hh79qq.js → file-b1z4y0ay.js} +86 -86
- package/dist/chunks/{worktree-6e3dgnnx.js → file-b4j6ey0s.js} +10 -10
- package/dist/chunks/{worktree-kb5qk7wn.js → file-bbmh2dfw.js} +2 -2
- package/dist/chunks/{worktree-9smt8cr9.js → file-bn7p95jq.js} +12 -12
- package/dist/chunks/{worktree-byab506k.js → file-byab506k.js} +1 -1
- package/dist/chunks/{worktree-857g7h76.js → file-c53n3hjv.js} +1 -1
- package/dist/chunks/{worktree-rqswsgbs.js → file-cdrqa8qb.js} +2 -2
- package/dist/chunks/{worktree-730r4vyz.js → file-cn5vww2k.js} +7 -7
- package/dist/chunks/{worktree-9r0qzhnf.js → file-cvh8045m.js} +2 -2
- package/dist/chunks/{worktree-cz3dkvcz.js → file-cz3dkvcz.js} +1 -1
- package/dist/chunks/{worktree-6jtjggv5.js → file-dgjzraq6.js} +1 -1
- package/dist/chunks/{worktree-dhphtf1x.js → file-dhphtf1x.js} +1 -1
- package/dist/chunks/{worktree-dyz5q1tb.js → file-dyz5q1tb.js} +2 -2
- package/dist/chunks/{worktree-e1z9a0ts.js → file-e1z9a0ts.js} +2 -2
- package/dist/chunks/{worktree-qg07mtkh.js → file-e62qqw9f.js} +15 -15
- package/dist/chunks/{worktree-8k8ks5a6.js → file-ec8vrfw5.js} +3 -3
- package/dist/chunks/{worktree-ywdd8efs.js → file-edvtf4tx.js} +105 -91
- package/dist/chunks/{worktree-wj6jc4h7.js → file-ek4bes0b.js} +5 -5
- package/dist/chunks/{worktree-hb4xmydk.js → file-en0j70s6.js} +3 -3
- package/dist/chunks/{worktree-erj4j75s.js → file-erj4j75s.js} +1 -1
- package/dist/chunks/{worktree-eyk9wdct.js → file-eyk9wdct.js} +2 -2
- package/dist/chunks/{worktree-g467njmm.js → file-ezegptdr.js} +10 -10
- package/dist/chunks/{worktree-f05p34aa.js → file-f05p34aa.js} +3 -3
- package/dist/chunks/{worktree-dppgrtwb.js → file-f14r7hfz.js} +27 -0
- package/dist/chunks/{worktree-jyepqp0w.js → file-f3rqrz1h.js} +7 -5
- package/dist/chunks/file-f6a73nhd.js +139 -0
- package/dist/chunks/{worktree-5zz4jszj.js → file-f7evhwkg.js} +8 -8
- package/dist/chunks/{worktree-axf5sacz.js → file-fcefwnba.js} +10 -10
- package/dist/chunks/{worktree-fmyre8m1.js → file-fmyre8m1.js} +1 -1
- package/dist/chunks/{worktree-b73001y4.js → file-fvjr77vx.js} +5 -5
- package/dist/chunks/file-fvw35s1f.js +148 -0
- package/dist/chunks/{worktree-g9yygpzr.js → file-g9yygpzr.js} +1 -1
- package/dist/chunks/{worktree-gcay93cp.js → file-gcay93cp.js} +1 -1
- package/dist/chunks/{worktree-gd2xppx8.js → file-gd2xppx8.js} +1 -1
- package/dist/chunks/{worktree-jy6jkn1q.js → file-gdndr5ds.js} +3 -3
- package/dist/chunks/{worktree-jcwqeqpt.js → file-gndxty6r.js} +12 -12
- package/dist/chunks/{worktree-gpee7ppy.js → file-gpee7ppy.js} +2 -2
- package/dist/chunks/{worktree-bp8xwhb4.js → file-grghsxkg.js} +6 -6
- package/dist/chunks/{worktree-909g54nx.js → file-gxmfza0d.js} +29 -29
- package/dist/chunks/{worktree-xdgv2fac.js → file-h7hxhz5s.js} +6 -6
- package/dist/chunks/{worktree-h8ecejt5.js → file-h8ecejt5.js} +1 -1
- package/dist/chunks/{worktree-y5mtxhrm.js → file-hcypmxj6.js} +22 -22
- package/dist/chunks/{worktree-3mfgaav1.js → file-hgn8axp1.js} +4 -4
- package/dist/chunks/{worktree-8bkmtpp6.js → file-hsyk7kfz.js} +5 -5
- package/dist/chunks/{worktree-j1a5h53y.js → file-j1a5h53y.js} +1 -1
- package/dist/chunks/{worktree-we2zmhe4.js → file-j2f50m4s.js} +2 -2
- package/dist/chunks/{worktree-cp1ke1wq.js → file-j2nmssd3.js} +9 -9
- package/dist/chunks/{worktree-6628r0j2.js → file-jqkpryhn.js} +11 -11
- package/dist/chunks/{worktree-jssy2dr3.js → file-jssy2dr3.js} +2 -2
- package/dist/chunks/{worktree-10xtr3be.js → file-jwcdbjdr.js} +2 -2
- package/dist/chunks/{worktree-w6ytwaqa.js → file-k0630w4g.js} +10 -10
- package/dist/chunks/{worktree-be91g35x.js → file-k7pgcjt6.js} +30 -26
- package/dist/chunks/{worktree-kg1345f7.js → file-kg1345f7.js} +1 -1
- package/dist/chunks/{worktree-szax8zgv.js → file-kjkmrs65.js} +2 -2
- package/dist/chunks/{worktree-nk6j6dqr.js → file-knd350r7.js} +8 -8
- package/dist/chunks/{worktree-z2vzkpp7.js → file-kptd0d9x.js} +6 -6
- package/dist/chunks/{worktree-shfvvkmw.js → file-kzj2xtdg.js} +14 -14
- package/dist/chunks/{worktree-mf0hyk7z.js → file-mf0hyk7z.js} +1 -1
- package/dist/chunks/{worktree-mh28new4.js → file-mh28new4.js} +2 -2
- package/dist/chunks/{worktree-2gh436pb.js → file-mhsxry0w.js} +5 -5
- package/dist/chunks/{worktree-8vhzxx5g.js → file-mnb85w6b.js} +3 -3
- package/dist/chunks/{worktree-ba68z0mh.js → file-mqfhnxg0.js} +22 -22
- package/dist/chunks/{worktree-mwceq5am.js → file-mwceq5am.js} +1 -1
- package/dist/chunks/{worktree-a9jaghsy.js → file-mzdzk01c.js} +3 -3
- package/dist/chunks/{worktree-7zqysg7a.js → file-n32fctmg.js} +9 -9
- package/dist/chunks/{worktree-ddjpbqb0.js → file-n744begs.js} +6 -6
- package/dist/chunks/{worktree-nesb2rcz.js → file-nesb2rcz.js} +2 -2
- package/dist/chunks/{worktree-05525jb6.js → file-ngrtxfq1.js} +2 -2
- package/dist/chunks/{worktree-nj1s64cz.js → file-nj1s64cz.js} +1 -1
- package/dist/chunks/{worktree-nr76rjj3.js → file-nr76rjj3.js} +2 -2
- package/dist/chunks/{worktree-3zqegg96.js → file-nthsreft.js} +9 -9
- package/dist/chunks/{worktree-7zdtvaa2.js → file-nve52h2s.js} +6 -6
- package/dist/chunks/{worktree-nzrjycs5.js → file-nzrjycs5.js} +1 -1
- package/dist/chunks/{worktree-s6by3cc4.js → file-p27xxkqg.js} +9 -9
- package/dist/chunks/{worktree-9rdgabpj.js → file-p3661pfb.js} +17 -11
- package/dist/chunks/{worktree-p3zwavty.js → file-p3zwavty.js} +2 -2
- package/dist/chunks/{worktree-skessbcj.js → file-pe29tp57.js} +3 -3
- package/dist/chunks/{worktree-pfqehjmy.js → file-pfqehjmy.js} +2 -2
- package/dist/chunks/{worktree-ph1me6ah.js → file-ph1me6ah.js} +2 -2
- package/dist/chunks/{worktree-pq4b4pqk.js → file-pq4b4pqk.js} +2 -2
- package/dist/chunks/{worktree-prf9bavk.js → file-prf9bavk.js} +3 -3
- package/dist/chunks/{worktree-fm1nvm5g.js → file-px7n0cd3.js} +1 -1
- package/dist/chunks/{worktree-snreps37.js → file-pxc9mm6x.js} +11 -11
- package/dist/chunks/{worktree-dw1mm7n3.js → file-pxh2y4mp.js} +6 -6
- package/dist/chunks/{worktree-wxkmmjny.js → file-qbvbyx91.js} +4 -4
- package/dist/chunks/{worktree-qe0d689s.js → file-qe0d689s.js} +2 -2
- package/dist/chunks/{worktree-ekph8834.js → file-qgt32wwf.js} +3 -3
- package/dist/chunks/{worktree-qsgvz7g8.js → file-qsgvz7g8.js} +2 -2
- package/dist/chunks/{worktree-qgn7w6cn.js → file-qxs84648.js} +9 -9
- package/dist/chunks/{worktree-5p2sx24b.js → file-qy071k7t.js} +3 -3
- package/dist/chunks/{worktree-r3k9abhd.js → file-r3k9abhd.js} +2 -2
- package/dist/chunks/{worktree-7420sy82.js → file-rg5spvbf.js} +5 -5
- package/dist/chunks/{worktree-rt6yg6j2.js → file-rt6yg6j2.js} +2 -2
- package/dist/chunks/{worktree-c3f8xgsn.js → file-ry4vhh7y.js} +80 -33
- package/dist/chunks/{worktree-ryap75b3.js → file-ryap75b3.js} +1 -1
- package/dist/chunks/{worktree-6nw3hf3n.js → file-s6e3c6h1.js} +3 -3
- package/dist/chunks/{worktree-3ms9b0hh.js → file-s8dhdr1a.js} +10 -10
- package/dist/chunks/{worktree-s9f13v9h.js → file-s9f13v9h.js} +1 -1
- package/dist/chunks/{worktree-smpeg8c9.js → file-smpeg8c9.js} +2 -2
- package/dist/chunks/{worktree-jtvazjbd.js → file-szsnfq8s.js} +36 -36
- package/dist/chunks/{worktree-2m0g72hh.js → file-t14kykx1.js} +3 -3
- package/dist/chunks/{worktree-tcn24h1d.js → file-tcn24h1d.js} +1 -1
- package/dist/chunks/{worktree-tenv3kfs.js → file-tenv3kfs.js} +2 -2
- package/dist/chunks/{worktree-0qh9pzb0.js → file-tfpq1akv.js} +12 -12
- package/dist/chunks/{worktree-6ehwq28g.js → file-tgkwq7ey.js} +16 -16
- package/dist/chunks/{worktree-thstd87d.js → file-thstd87d.js} +1 -1
- package/dist/chunks/{worktree-sxxq12m6.js → file-tns74tew.js} +4 -4
- package/dist/chunks/{worktree-fkqmsqw4.js → file-tq2yp16c.js} +7 -7
- package/dist/chunks/{worktree-5fjttjqy.js → file-tr01v5pk.js} +3 -3
- package/dist/chunks/{worktree-y3qywb4q.js → file-trvnbm2r.js} +4 -4
- package/dist/chunks/{worktree-8zdwha83.js → file-ttdn9mvh.js} +11 -11
- package/dist/chunks/{worktree-6p661xfs.js → file-v0ktexvy.js} +2 -2
- package/dist/chunks/{worktree-v80zsxnb.js → file-v80zsxnb.js} +1 -1
- package/dist/chunks/{worktree-v972xay6.js → file-v972xay6.js} +1 -1
- package/dist/chunks/{worktree-v9bfv94f.js → file-v9bfv94f.js} +1 -1
- package/dist/chunks/{worktree-b9twh12c.js → file-va2xjmjn.js} +13 -13
- package/dist/chunks/file-vacr5vr5.js +37 -0
- package/dist/chunks/{worktree-r1a74hph.js → file-vd76ghhe.js} +70 -58
- package/dist/chunks/{worktree-yftywzew.js → file-vhn5tvvs.js} +7 -7
- package/dist/chunks/{worktree-9xv0h02m.js → file-vks3mnpp.js} +16 -16
- package/dist/chunks/{worktree-wx89ywv3.js → file-vkvb1sb3.js} +1 -1
- package/dist/chunks/{worktree-r0zc60h8.js → file-vm3prpn4.js} +1 -1
- package/dist/chunks/{worktree-ts4t4v20.js → file-vv288965.js} +2 -2
- package/dist/chunks/{worktree-9a1r81ws.js → file-vwqhfv9a.js} +84 -67
- package/dist/chunks/{worktree-vz89hfgr.js → file-vz89hfgr.js} +1 -1
- package/dist/chunks/{worktree-wjn5a2kx.js → file-w0nvndn8.js} +8 -8
- package/dist/chunks/{worktree-91t3rsqh.js → file-w5c5ggfg.js} +12 -12
- package/dist/chunks/{worktree-249s8sgy.js → file-wamspyg8.js} +3 -3
- package/dist/chunks/{worktree-wd268jeg.js → file-wd268jeg.js} +1 -1
- package/dist/chunks/{worktree-wmxdh12w.js → file-wmxdh12w.js} +1 -1
- package/dist/chunks/{worktree-wps8gh8n.js → file-wps8gh8n.js} +2 -2
- package/dist/chunks/{worktree-wt193r4g.js → file-wt193r4g.js} +1 -1
- package/dist/chunks/{worktree-eyycrz1w.js → file-x143q1e8.js} +6 -6
- package/dist/chunks/{worktree-zthe9zqc.js → file-xczfw7dq.js} +4 -4
- package/dist/chunks/{worktree-3w0f1yxt.js → file-xg3qgrrb.js} +3 -3
- package/dist/chunks/{worktree-xgv25zxy.js → file-xgv25zxy.js} +1 -1
- package/dist/chunks/{worktree-56p2m126.js → file-xjreyxj2.js} +1 -1
- package/dist/chunks/{worktree-g07x5xy3.js → file-xkapkgm1.js} +7 -7
- package/dist/chunks/{worktree-s5q7hk5c.js → file-xt2bapaq.js} +6 -6
- package/dist/chunks/{worktree-xwftk1fd.js → file-xwftk1fd.js} +2 -2
- package/dist/chunks/{worktree-hkp4zrd4.js → file-xxpvz42q.js} +3 -3
- package/dist/chunks/{worktree-y0x38cee.js → file-y0x38cee.js} +1 -1
- package/dist/chunks/{worktree-1kvtxahz.js → file-y198y2ra.js} +4 -4
- package/dist/chunks/{worktree-tr3fnk6a.js → file-y3ys4sce.js} +3 -3
- package/dist/chunks/{worktree-y67x6rf6.js → file-y67x6rf6.js} +1 -1
- package/dist/chunks/{worktree-y8rs54ne.js → file-y8rs54ne.js} +1 -1
- package/dist/chunks/{worktree-y980s7ka.js → file-y980s7ka.js} +3 -3
- package/dist/chunks/{worktree-hwa45yqt.js → file-yb1hpdkr.js} +12 -12
- package/dist/chunks/{worktree-ed4jjjcc.js → file-yf0knd5z.js} +2 -2
- package/dist/chunks/{worktree-fa8dcnd7.js → file-ywrrwgdd.js} +7 -7
- package/dist/chunks/{worktree-y7xy17p6.js → file-yy9aw35r.js} +37 -7
- package/dist/chunks/{worktree-yz0wm9s3.js → file-yz0wm9s3.js} +2 -2
- package/dist/chunks/{worktree-3vh42rcr.js → file-z3nf8g8y.js} +2 -2
- package/dist/chunks/{worktree-zbqqnp0n.js → file-zbqqnp0n.js} +1 -1
- package/dist/chunks/{worktree-zdkg1k91.js → file-zdkg1k91.js} +1 -1
- package/dist/chunks/{worktree-zfxc0ze5.js → file-zfxc0ze5.js} +1 -1
- package/dist/chunks/{worktree-t2xtwj2n.js → file-zgkcypa3.js} +46 -26
- package/dist/chunks/{worktree-5a1f2529.js → file-zh6p9k71.js} +4 -4
- package/dist/chunks/{worktree-8v2yzmx6.js → file-zj2qv98r.js} +9 -9
- package/dist/chunks/{worktree-z66vzcey.js → file-zjvgdt9p.js} +7 -7
- package/dist/chunks/{worktree-jaw7zdhd.js → file-ztp8pcjx.js} +8 -8
- package/dist/chunks/{worktree-dx75tmcf.js → file-zx1bs0qm.js} +3 -3
- package/dist/chunks/{worktree-5sgbvx3z.js → file-zxe9jjhn.js} +2 -2
- package/dist/chunks/{worktree-j7gqmkwh.js → file-zxg28mmk.js} +4 -4
- package/dist/chunks/index-8jqmqb92.js +1 -1
- 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 +126 -126
- package/dist/config/markdown.js +2 -2
- package/dist/config/normalize.js +20 -20
- package/dist/config/plugin/agent.js +131 -131
- package/dist/config/plugin/command.js +128 -128
- package/dist/config/plugin/instruction.js +87 -87
- package/dist/config/plugin/mcp.js +133 -0
- package/dist/config/plugin/policy.js +112 -112
- package/dist/config/plugin/provider.js +111 -111
- package/dist/config/plugin/reference.js +115 -115
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill.js +134 -134
- package/dist/config/plugin/source.js +111 -111
- package/dist/config/plugin/websearch.js +111 -111
- package/dist/config/variable.js +4 -4
- package/dist/config.js +110 -110
- package/dist/credential/sql.js +3 -3
- package/dist/credential.js +70 -70
- package/dist/database/database.js +67 -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 +18 -18
- 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 +22 -22
- 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 +19 -19
- 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.gen.js +46 -46
- package/dist/database/migration.js +48 -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 +2 -2
- package/dist/database/v1-migration.bun.js +146 -84
- package/dist/database/v1-migration.js +2 -2
- package/dist/database/v1-migration.noop.js +1 -1
- package/dist/effect/app-node-builder.js +319 -313
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +2 -2
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +88 -88
- package/dist/environment/exec-defaults.js +3 -3
- package/dist/environment/files.js +2 -2
- package/dist/environment/index.js +90 -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 +70 -70
- package/dist/file-mutation.js +89 -89
- 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.js +111 -111
- package/dist/filesystem/protected.js +2 -2
- package/dist/filesystem/search.js +93 -93
- package/dist/filesystem/watcher-binding.js +2 -2
- package/dist/filesystem/watcher.js +4 -4
- package/dist/filesystem.js +93 -93
- package/dist/form.js +71 -71
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +113 -113
- package/dist/generate.js +85 -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 +19 -19
- 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 +124 -124
- package/dist/image.js +124 -124
- package/dist/instruction-discovery.js +74 -74
- package/dist/instructions/builtins.js +83 -83
- package/dist/instructions/index.js +2 -2
- package/dist/integration/connection.js +2 -2
- package/dist/integration.js +77 -77
- package/dist/job.js +4 -4
- package/dist/kv/sql.js +3 -3
- package/dist/kv.js +70 -70
- package/dist/location-mutation.js +81 -81
- package/dist/location-service-map.js +81 -81
- package/dist/location-services.js +319 -313
- package/dist/location.js +80 -80
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +95 -123
- package/dist/mcp/instructions.js +151 -151
- package/dist/mcp/oauth.js +2 -2
- package/dist/mcp/stdio.js +89 -89
- package/dist/mime.js +2 -2
- package/dist/model-resolver.js +83 -83
- package/dist/model.js +3 -3
- package/dist/models-dev.js +77 -77
- package/dist/oauth/page.js +2 -2
- package/dist/permission/saved.js +81 -81
- package/dist/permission/sql.js +6 -6
- package/dist/permission.js +101 -101
- package/dist/plugin/agent.js +102 -102
- package/dist/plugin/command.js +81 -81
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +184 -183
- package/dist/plugin/internal.js +278 -272
- package/dist/plugin/mcp-codemode-exclusion.js +9 -0
- package/dist/plugin/models-dev.js +78 -78
- package/dist/plugin/plan.js +74 -74
- 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 +118 -118
- package/dist/plugin/provider/cerebras.js +3 -3
- package/dist/plugin/provider/cloudflare-ai-gateway.js +119 -119
- package/dist/plugin/provider/cloudflare-workers-ai.js +119 -119
- package/dist/plugin/provider/cohere.js +3 -3
- package/dist/plugin/provider/configured.js +116 -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 +84 -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 +79 -79
- package/dist/plugin/provider/lmstudio.js +118 -0
- package/dist/plugin/provider/mistral.js +3 -3
- package/dist/plugin/provider/nvidia.js +3 -3
- package/dist/plugin/provider/ollama.js +118 -0
- package/dist/plugin/provider/openai-compatible.js +2 -2
- package/dist/plugin/provider/openai.js +81 -81
- package/dist/plugin/provider/opencode.js +95 -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 +118 -0
- package/dist/plugin/provider/xai.js +79 -79
- package/dist/plugin/provider/zenmux.js +3 -3
- package/dist/plugin/provider.js +157 -154
- package/dist/plugin/runtime.js +175 -174
- package/dist/plugin/sdk.js +71 -71
- package/dist/plugin/skill.js +132 -132
- package/dist/plugin/supervisor.js +283 -277
- package/dist/plugin/system-prompt.js +2 -2
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/warming.js +112 -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 +185 -184
- package/dist/project/schema.js +3 -3
- package/dist/project/sql.js +5 -5
- package/dist/project.js +79 -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 +72 -72
- package/dist/pty.js +114 -114
- package/dist/reference/instructions.js +79 -79
- package/dist/reference.js +77 -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 +91 -91
- package/dist/schema.js +2 -2
- package/dist/session/compaction.js +147 -147
- package/dist/session/context.js +291 -285
- package/dist/session/environment.js +12 -0
- package/dist/session/error.js +4 -4
- package/dist/session/event.js +2 -2
- package/dist/session/execution/restart.js +117 -117
- package/dist/session/execution.js +117 -117
- package/dist/session/generate-node.js +297 -291
- package/dist/session/generate.js +2 -2
- package/dist/session/history.js +79 -79
- package/dist/session/inbox.js +79 -79
- package/dist/session/info.js +89 -89
- package/dist/session/instruction-entry.js +75 -75
- package/dist/session/instruction-state.js +10 -10
- package/dist/session/instructions.js +98 -98
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +2 -2
- package/dist/session/model-headers.js +4 -4
- package/dist/session/model-http.js +4 -4
- package/dist/session/model-request.js +299 -293
- package/dist/session/model-transport.js +4 -4
- package/dist/session/projector.js +91 -91
- package/dist/session/prompt-cache-diagnostics.js +2 -2
- package/dist/session/prompt-cache-key.js +3 -3
- package/dist/session/revert.js +116 -116
- package/dist/session/run-coordinator.js +2 -2
- package/dist/session/runner/index.js +86 -86
- package/dist/session/runner/llm.js +306 -300
- package/dist/session/runner/max-steps.js +2 -2
- package/dist/session/runner/model.js +85 -85
- package/dist/session/runner/publish-llm-event.js +4 -4
- package/dist/session/runner/retry.js +74 -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 +97 -97
- package/dist/session/system-prompt.js +2 -2
- package/dist/session/title.js +114 -114
- package/dist/session/to-session-error.js +112 -112
- package/dist/session/transfer.js +183 -182
- package/dist/session/usage.js +2 -2
- package/dist/session.js +174 -173
- package/dist/shell/parse.js +4 -4
- 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/select.js +3 -3
- package/dist/shell.js +125 -123
- package/dist/skill/discovery.js +3 -3
- package/dist/skill/instructions.js +103 -103
- package/dist/skill.js +102 -102
- package/dist/snapshot.js +111 -111
- 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 +150 -150
- package/dist/tool/plugin/edit.js +141 -141
- package/dist/tool/plugin/file-diff.js +2 -2
- package/dist/tool/plugin/glob.js +113 -113
- package/dist/tool/plugin/grep.js +113 -113
- package/dist/tool/plugin/patch.js +141 -141
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +116 -116
- package/dist/tool/plugin/shell.js +179 -178
- package/dist/tool/plugin/skill.js +103 -103
- package/dist/tool/plugin/subagent.js +176 -175
- package/dist/tool/plugin/webfetch.js +104 -104
- package/dist/tool/plugin/websearch.js +132 -132
- package/dist/tool/plugin/write.js +141 -141
- package/dist/tool/read-filesystem.js +95 -95
- package/dist/tool/runtime.js +2 -2
- package/dist/tool-output.js +112 -112
- package/dist/tool.js +145 -145
- package/dist/types/command.d.ts +1 -1
- package/dist/types/config/plugin/mcp.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/mcp/index.d.ts +12 -6
- package/dist/types/plugin/host.d.ts +14 -1
- package/dist/types/plugin/internal.d.ts +4 -3
- package/dist/types/plugin/mcp-codemode-exclusion.d.ts +2 -0
- package/dist/types/plugin/provider/lmstudio.d.ts +5 -0
- package/dist/types/plugin/provider/ollama.d.ts +5 -0
- package/dist/types/plugin/provider/vllm.d.ts +5 -0
- package/dist/types/plugin/runtime.d.ts +13 -1
- package/dist/types/plugin/supervisor.d.ts +1 -1
- package/dist/types/plugin/websearch/mcp.d.ts +1 -1
- package/dist/types/schema.d.ts +1 -1
- package/dist/types/session/environment.d.ts +13 -0
- package/dist/types/session.d.ts +5 -0
- package/dist/types/shell.d.ts +2 -1
- package/dist/types/tool/plugin/shell.d.ts +1 -1
- package/dist/types/tool/plugin/subagent.d.ts +4 -0
- package/dist/types/v1/config/migrate.d.ts +9 -9
- package/dist/util/array.js +1 -1
- package/dist/util/binary.js +1 -1
- package/dist/util/encode.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/path.js +1 -1
- 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 +3 -3
- package/dist/util/retry.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 +5 -5
- 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 +84 -84
- package/dist/websearch.js +72 -72
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +74 -74
- package/dist/workspace/driver.js +2 -2
- package/dist/workspace/sql.js +2 -2
- package/dist/workspace.js +71 -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 +84 -84
- package/package.json +11 -11
- /package/dist/chunks/{worktree-0cgt0xh2.js → file-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{worktree-0f48qthw.js → file-0f48qthw.js} +0 -0
- /package/dist/chunks/{worktree-0zz82cjq.js → file-0zz82cjq.js} +0 -0
- /package/dist/chunks/{worktree-1fb7bmpf.js → file-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{worktree-1wcz8fvj.js → file-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{worktree-2qdx6zz3.js → file-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{worktree-3c4nztf9.js → file-3c4nztf9.js} +0 -0
- /package/dist/chunks/{worktree-3g3rpp2x.js → file-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{worktree-3q6gbwmd.js → file-3q6gbwmd.js} +0 -0
- /package/dist/chunks/{worktree-3w3ybtfd.js → file-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{worktree-47ty4mvs.js → file-47ty4mvs.js} +0 -0
- /package/dist/chunks/{worktree-4b2tz2m9.js → file-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{worktree-4zg0gww9.js → file-4zg0gww9.js} +0 -0
- /package/dist/chunks/{worktree-5a5ch9ts.js → file-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{worktree-5va1yh78.js → file-5va1yh78.js} +0 -0
- /package/dist/chunks/{worktree-69qrqpw0.js → file-69qrqpw0.js} +0 -0
- /package/dist/chunks/{worktree-6yt963b8.js → file-6yt963b8.js} +0 -0
- /package/dist/chunks/{worktree-7n9qwqk4.js → file-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{worktree-8nn8kqcn.js → file-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{worktree-8sj3ajy5.js → file-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{worktree-8w9tzfz1.js → file-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{worktree-906y0b6d.js → file-906y0b6d.js} +0 -0
- /package/dist/chunks/{worktree-9dct5xhx.js → file-9dct5xhx.js} +0 -0
- /package/dist/chunks/{worktree-9sdtsapf.js → file-9sdtsapf.js} +0 -0
- /package/dist/chunks/{worktree-a02svayp.js → file-a02svayp.js} +0 -0
- /package/dist/chunks/{worktree-a83yvq99.js → file-a83yvq99.js} +0 -0
- /package/dist/chunks/{worktree-ayevdmef.js → file-ayevdmef.js} +0 -0
- /package/dist/chunks/{worktree-b02txbh8.js → file-b02txbh8.js} +0 -0
- /package/dist/chunks/{worktree-bbqs2y60.js → file-bbqs2y60.js} +0 -0
- /package/dist/chunks/{worktree-brsh5f65.js → file-brsh5f65.js} +0 -0
- /package/dist/chunks/{worktree-bxdhjb3y.js → file-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{worktree-c77ad0vh.js → file-c77ad0vh.js} +0 -0
- /package/dist/chunks/{worktree-cm67rqy2.js → file-cm67rqy2.js} +0 -0
- /package/dist/chunks/{worktree-d6s8p2vk.js → file-d6s8p2vk.js} +0 -0
- /package/dist/chunks/{worktree-dbah77c1.js → file-dbah77c1.js} +0 -0
- /package/dist/chunks/{worktree-df3v2q6j.js → file-df3v2q6j.js} +0 -0
- /package/dist/chunks/{worktree-dhcq6c44.js → file-dhcq6c44.js} +0 -0
- /package/dist/chunks/{worktree-dht5baf0.js → file-dht5baf0.js} +0 -0
- /package/dist/chunks/{worktree-dkmkay92.js → file-dkmkay92.js} +0 -0
- /package/dist/chunks/{worktree-ecxv0vtt.js → file-ecxv0vtt.js} +0 -0
- /package/dist/chunks/{worktree-ehj9csmv.js → file-ehj9csmv.js} +0 -0
- /package/dist/chunks/{worktree-em6xpscd.js → file-em6xpscd.js} +0 -0
- /package/dist/chunks/{worktree-emmqknsm.js → file-emmqknsm.js} +0 -0
- /package/dist/chunks/{worktree-ezs3tagn.js → file-ezs3tagn.js} +0 -0
- /package/dist/chunks/{worktree-f4cp4g4a.js → file-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{worktree-f84sxdqn.js → file-f84sxdqn.js} +0 -0
- /package/dist/chunks/{worktree-faypg4r1.js → file-faypg4r1.js} +0 -0
- /package/dist/chunks/{worktree-g7k9te92.js → file-g7k9te92.js} +0 -0
- /package/dist/chunks/{worktree-gd5xeqc2.js → file-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{worktree-ghm4673n.js → file-ghm4673n.js} +0 -0
- /package/dist/chunks/{worktree-ghwjy7my.js → file-ghwjy7my.js} +0 -0
- /package/dist/chunks/{worktree-gy500k2r.js → file-gy500k2r.js} +0 -0
- /package/dist/chunks/{worktree-hzeg9cfr.js → file-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{worktree-j07kk359.js → file-j07kk359.js} +0 -0
- /package/dist/chunks/{worktree-jve7t217.js → file-jve7t217.js} +0 -0
- /package/dist/chunks/{worktree-kpdbz7gn.js → file-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{worktree-kxy11nzk.js → file-kxy11nzk.js} +0 -0
- /package/dist/chunks/{worktree-kyyqvx4s.js → file-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{worktree-m8cbvarh.js → file-m8cbvarh.js} +0 -0
- /package/dist/chunks/{worktree-ma07p6tt.js → file-ma07p6tt.js} +0 -0
- /package/dist/chunks/{worktree-ma60vzgv.js → file-ma60vzgv.js} +0 -0
- /package/dist/chunks/{worktree-n3m50c2t.js → file-n3m50c2t.js} +0 -0
- /package/dist/chunks/{worktree-nkm1m8dz.js → file-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{worktree-nsc0c3zb.js → file-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{worktree-qaarhjrp.js → file-qaarhjrp.js} +0 -0
- /package/dist/chunks/{worktree-qc167nrn.js → file-qc167nrn.js} +0 -0
- /package/dist/chunks/{worktree-qp95y4jb.js → file-qp95y4jb.js} +0 -0
- /package/dist/chunks/{worktree-r8f4w671.js → file-r8f4w671.js} +0 -0
- /package/dist/chunks/{worktree-rdfev9jy.js → file-rdfev9jy.js} +0 -0
- /package/dist/chunks/{worktree-rvfvac9x.js → file-rvfvac9x.js} +0 -0
- /package/dist/chunks/{worktree-s7whb9gt.js → file-s7whb9gt.js} +0 -0
- /package/dist/chunks/{worktree-se76j685.js → file-se76j685.js} +0 -0
- /package/dist/chunks/{worktree-sem2g21k.js → file-sem2g21k.js} +0 -0
- /package/dist/chunks/{worktree-tmb1f636.js → file-tmb1f636.js} +0 -0
- /package/dist/chunks/{worktree-ttxf0gsy.js → file-ttxf0gsy.js} +0 -0
- /package/dist/chunks/{worktree-tvmhrvfj.js → file-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{worktree-v2adqbbe.js → file-v2adqbbe.js} +0 -0
- /package/dist/chunks/{worktree-wj4sxzqa.js → file-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{worktree-wwntjmk1.js → file-wwntjmk1.js} +0 -0
- /package/dist/chunks/{worktree-wyqjaaa5.js → file-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{worktree-x4q807cx.js → file-x4q807cx.js} +0 -0
- /package/dist/chunks/{worktree-xhz3jyrc.js → file-xhz3jyrc.js} +0 -0
- /package/dist/chunks/{worktree-yrqrg4vp.js → file-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{worktree-z47nswr2.js → file-z47nswr2.js} +0 -0
- /package/dist/chunks/{worktree-zsf8rs93.js → file-zsf8rs93.js} +0 -0
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_integration
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-5rd2371y.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_form
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-2g41g83c.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
exports_state
|
|
9
|
+
} from "./file-wt193r4g.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
exports_environment1 as exports_environment
|
|
12
|
+
} from "./file-27xnc6tv.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_credential
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./file-8ss9enjp.js";
|
|
16
16
|
import {
|
|
17
17
|
exports_location
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./file-v0ktexvy.js";
|
|
19
19
|
import {
|
|
20
20
|
exports_bus
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./file-ywrrwgdd.js";
|
|
22
22
|
import {
|
|
23
23
|
exports_keyed_mutex
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./file-0kvmztkf.js";
|
|
25
25
|
import {
|
|
26
26
|
__export,
|
|
27
27
|
__require
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./file-rvfvac9x.js";
|
|
29
29
|
|
|
30
30
|
// src/mcp/index.ts
|
|
31
31
|
var exports_mcp = {};
|
|
@@ -58,10 +58,9 @@ __export(exports_mcp, {
|
|
|
58
58
|
import { Mcp } from "@opencode-ai/schema/mcp";
|
|
59
59
|
import { McpEvent } from "@opencode-ai/schema/mcp-event";
|
|
60
60
|
import { Command } from "@opencode-ai/schema/command";
|
|
61
|
-
import { Event } from "@opencode-ai/schema/config";
|
|
62
61
|
import { createHash } from "node:crypto";
|
|
63
62
|
import { isDeepStrictEqual } from "node:util";
|
|
64
|
-
import { Cause, Context, Deferred, Effect, Exit, FiberSet, Layer, Schema, Scope,
|
|
63
|
+
import { Cause, Context, Deferred, Effect, Exit, FiberSet, Layer, Schema, Scope, Stream } from "effect";
|
|
65
64
|
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
66
65
|
import { waitForAbort } from "@opencode-ai/util/process";
|
|
67
66
|
var ServerName = Schema.String.pipe(Schema.brand("MCP.ServerName"));
|
|
@@ -136,7 +135,7 @@ var ResourceCatalog = Mcp.ResourceCatalog;
|
|
|
136
135
|
var ResourceContentPart = Mcp.ResourceContentPart;
|
|
137
136
|
var ResourceContent = Mcp.ResourceContent;
|
|
138
137
|
|
|
139
|
-
class NotFoundError extends Schema.
|
|
138
|
+
class NotFoundError extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
140
139
|
server: ServerName
|
|
141
140
|
}) {
|
|
142
141
|
get message() {
|
|
@@ -144,7 +143,7 @@ class NotFoundError extends Schema.TaggedErrorClass()("MCP.NotFoundError", {
|
|
|
144
143
|
}
|
|
145
144
|
}
|
|
146
145
|
|
|
147
|
-
class ToolCallError extends Schema.
|
|
146
|
+
class ToolCallError extends Schema.TaggedError()("MCP.ToolCallError", {
|
|
148
147
|
server: ServerName,
|
|
149
148
|
tool: Schema.String,
|
|
150
149
|
message: Schema.String
|
|
@@ -152,6 +151,7 @@ class ToolCallError extends Schema.TaggedErrorClass()("MCP.ToolCallError", {
|
|
|
152
151
|
}
|
|
153
152
|
var GLOBAL_ELICITATION_SESSION_ID = "global";
|
|
154
153
|
var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
154
|
+
var cloneConfig = (config) => structuredClone(config);
|
|
155
155
|
|
|
156
156
|
class Service extends Context.Service()("@opencode/MCP") {
|
|
157
157
|
}
|
|
@@ -162,7 +162,6 @@ var Options = Schema.Struct({
|
|
|
162
162
|
}))
|
|
163
163
|
});
|
|
164
164
|
var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
165
|
-
const config = yield* exports_config.Service;
|
|
166
165
|
const location = yield* exports_location.Service;
|
|
167
166
|
const environment = yield* exports_environment.Service;
|
|
168
167
|
const bus = yield* exports_bus.Service;
|
|
@@ -171,30 +170,9 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
171
170
|
const credentials = yield* exports_credential.Service;
|
|
172
171
|
const root = yield* Effect.scope;
|
|
173
172
|
const fork = yield* FiberSet.makeRuntime();
|
|
174
|
-
const
|
|
175
|
-
const documents = entries.filter((entry) => entry.type === "document");
|
|
176
|
-
const timeout = Object.assign({}, ...documents.flatMap((entry) => entry.info.mcp?.timeout ? [entry.info.mcp.timeout] : []));
|
|
177
|
-
const servers = new Map;
|
|
178
|
-
for (const entry of documents) {
|
|
179
|
-
for (const [name, server] of Object.entries(entry.info.mcp?.servers ?? {})) {
|
|
180
|
-
servers.set(ServerName.make(name), { ...server, timeout: { ...timeout, ...server.timeout } });
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
return { timeout, servers };
|
|
184
|
-
};
|
|
185
|
-
const initial = loadConfig(yield* config.entries());
|
|
186
|
-
const configState = { servers: initial.servers, timeout: initial.timeout };
|
|
187
|
-
const runtime = new Map;
|
|
173
|
+
const entries = new Map;
|
|
188
174
|
const locks = exports_keyed_mutex.makeUnsafe();
|
|
189
|
-
const reloadLock = Semaphore.makeUnsafe(1);
|
|
190
175
|
const urlElicitations = new Map;
|
|
191
|
-
for (const [name, server] of initial.servers) {
|
|
192
|
-
runtime.set(name, {
|
|
193
|
-
config: server,
|
|
194
|
-
status: { status: "pending" },
|
|
195
|
-
startup: Deferred.makeUnsafe()
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
176
|
const owned = new Set;
|
|
199
177
|
const register = Effect.fnUntraced(function* (name, entry) {
|
|
200
178
|
if (entry.config.type !== "remote" || entry.config.oauth === false)
|
|
@@ -221,10 +199,9 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
221
199
|
});
|
|
222
200
|
}).pipe(Scope.provide(scope));
|
|
223
201
|
});
|
|
224
|
-
yield* Effect.forEach(runtime, ([name, entry]) => register(name, entry), { discard: true });
|
|
225
202
|
const requireServer = Effect.fnUntraced(function* (server) {
|
|
226
203
|
const name = ServerName.make(server);
|
|
227
|
-
const entry =
|
|
204
|
+
const entry = entries.get(name);
|
|
228
205
|
if (!entry)
|
|
229
206
|
return yield* new NotFoundError({ server: name });
|
|
230
207
|
return { name, entry };
|
|
@@ -293,8 +270,8 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
293
270
|
message: input.params.message
|
|
294
271
|
},
|
|
295
272
|
fields: [{ key: URL_ELICITATION_FIELD_KEY, type: "external", url: input.params.url }]
|
|
296
|
-
}).pipe(Effect.raceFirst(waitForAbort(input.signal)), Effect.ensuring(Effect.sync(() => urlElicitations.delete(key))), Effect.map((
|
|
297
|
-
action:
|
|
273
|
+
}).pipe(Effect.raceFirst(waitForAbort(input.signal)), Effect.ensuring(Effect.sync(() => urlElicitations.delete(key))), Effect.map((state2) => ({
|
|
274
|
+
action: state2.status === "answered" ? "accept" : "cancel"
|
|
298
275
|
})));
|
|
299
276
|
}
|
|
300
277
|
const params = input.params;
|
|
@@ -306,12 +283,12 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
306
283
|
title: `${input.server} is requesting input`,
|
|
307
284
|
metadata: { kind: "mcp-elicitation", server: input.server, message: params.message },
|
|
308
285
|
fields: [field, ...fields]
|
|
309
|
-
}).pipe(Effect.raceFirst(waitForAbort(input.signal)), Effect.map((
|
|
310
|
-
if (
|
|
286
|
+
}).pipe(Effect.raceFirst(waitForAbort(input.signal)), Effect.map((state2) => {
|
|
287
|
+
if (state2.status !== "answered")
|
|
311
288
|
return { action: "cancel" };
|
|
312
289
|
return {
|
|
313
290
|
action: "accept",
|
|
314
|
-
content: Object.fromEntries(Object.entries(
|
|
291
|
+
content: Object.fromEntries(Object.entries(state2.answer).map(([key, value]) => typeof value === "object" ? [key, Array.from(value)] : [key, value]))
|
|
315
292
|
};
|
|
316
293
|
}));
|
|
317
294
|
}),
|
|
@@ -357,9 +334,9 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
357
334
|
const refreshTools = (name, entry, connection) => connection.tools().pipe(Effect.map((defs) => {
|
|
358
335
|
entry.tools = defs.map((def) => toTool(name, entry, def));
|
|
359
336
|
}));
|
|
360
|
-
const refreshPrompts = (name, entry, connection) => connection.prompts().pipe(Effect.map((defs) => {
|
|
337
|
+
const refreshPrompts = (name, entry, connection) => connection.prompts().pipe(Effect.catch(() => Effect.succeed([])), Effect.map((defs) => {
|
|
361
338
|
entry.prompts = defs.map((def) => toPrompt(name, def));
|
|
362
|
-
}), Effect.andThen(bus.publish(Command.Event.Updated, {}))
|
|
339
|
+
}), Effect.andThen(bus.publish(Command.Event.Updated, {})));
|
|
363
340
|
const whenLive = (name, entry, connection) => (effect) => fork(Effect.suspend(() => entry.client === connection ? effect : Effect.void).pipe(locks.withLock(name), Effect.ignore));
|
|
364
341
|
const watch = (name, entry, connection) => {
|
|
365
342
|
const live = whenLive(name, entry, connection);
|
|
@@ -439,7 +416,7 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
439
416
|
yield* entry.registration.dispose;
|
|
440
417
|
});
|
|
441
418
|
const replaceServer = Effect.fnUntraced(function* (name, serverConfig) {
|
|
442
|
-
const previous =
|
|
419
|
+
const previous = entries.get(name);
|
|
443
420
|
if (previous)
|
|
444
421
|
yield* disposeServer(name, previous);
|
|
445
422
|
const entry = {
|
|
@@ -447,7 +424,7 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
447
424
|
status: { status: "pending" },
|
|
448
425
|
startup: Deferred.makeUnsafe()
|
|
449
426
|
};
|
|
450
|
-
|
|
427
|
+
entries.set(name, entry);
|
|
451
428
|
yield* Effect.gen(function* () {
|
|
452
429
|
yield* register(name, entry);
|
|
453
430
|
if (serverConfig.disabled) {
|
|
@@ -459,47 +436,59 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
459
436
|
}).pipe(Effect.ensuring(Effect.sync(() => Deferred.doneUnsafe(entry.startup, Exit.void))));
|
|
460
437
|
});
|
|
461
438
|
const removeServer = Effect.fnUntraced(function* (name) {
|
|
462
|
-
const entry =
|
|
439
|
+
const entry = entries.get(name);
|
|
463
440
|
if (!entry)
|
|
464
441
|
return;
|
|
465
442
|
yield* disposeServer(name, entry);
|
|
466
|
-
|
|
443
|
+
entries.delete(name);
|
|
467
444
|
yield* bus.publish(McpEvent.StatusChanged, { server: name }).pipe(Effect.ignore);
|
|
468
445
|
});
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
446
|
+
let applied;
|
|
447
|
+
const overrides = new Map;
|
|
448
|
+
const reconcile = Effect.fnUntraced(function* (next) {
|
|
449
|
+
const servers = new Map(next.list());
|
|
450
|
+
if (!applied && entries.size === 0) {
|
|
451
|
+
for (const [name, server] of servers) {
|
|
452
|
+
entries.set(name, {
|
|
453
|
+
config: server,
|
|
454
|
+
status: { status: "pending" },
|
|
455
|
+
startup: Deferred.makeUnsafe()
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
yield* Effect.forEach(entries, ([name, entry]) => register(name, entry), { discard: true });
|
|
459
|
+
applied = servers;
|
|
460
|
+
for (const [name, entry] of entries) {
|
|
461
|
+
if (entry.config.disabled) {
|
|
462
|
+
entry.status = { status: "disabled" };
|
|
463
|
+
Deferred.doneUnsafe(entry.startup, Exit.void);
|
|
464
|
+
yield* bus.publish(McpEvent.StatusChanged, { server: name }).pipe(Effect.ignore);
|
|
480
465
|
continue;
|
|
481
466
|
}
|
|
482
|
-
|
|
467
|
+
fork(startServer(name, entry).pipe(locks.withLock(name)));
|
|
483
468
|
}
|
|
484
|
-
|
|
485
|
-
configState.timeout = next.timeout;
|
|
486
|
-
}));
|
|
487
|
-
});
|
|
488
|
-
for (const [name, entry] of runtime) {
|
|
489
|
-
if (entry.config.disabled) {
|
|
490
|
-
entry.status = { status: "disabled" };
|
|
491
|
-
Deferred.doneUnsafe(entry.startup, Exit.void);
|
|
492
|
-
continue;
|
|
469
|
+
return;
|
|
493
470
|
}
|
|
494
|
-
|
|
495
|
-
|
|
471
|
+
const names = new Set([...applied?.keys() ?? [], ...servers.keys()]);
|
|
472
|
+
for (const name of names) {
|
|
473
|
+
const previous = applied?.get(name);
|
|
474
|
+
const updated = servers.get(name);
|
|
475
|
+
if (isDeepStrictEqual(previous, updated))
|
|
476
|
+
continue;
|
|
477
|
+
if (!updated) {
|
|
478
|
+
yield* removeServer(name).pipe(locks.withLock(name));
|
|
479
|
+
continue;
|
|
480
|
+
}
|
|
481
|
+
yield* replaceServer(name, updated).pipe(locks.withLock(name));
|
|
482
|
+
}
|
|
483
|
+
applied = servers;
|
|
484
|
+
});
|
|
496
485
|
const reconnect = (integrationID) => Effect.gen(function* () {
|
|
497
|
-
const match = Array.from(
|
|
486
|
+
const match = Array.from(entries).find(([, entry]) => entry.integrationID === integrationID);
|
|
498
487
|
if (!match)
|
|
499
488
|
return;
|
|
500
489
|
const name = match[0];
|
|
501
490
|
yield* Effect.gen(function* () {
|
|
502
|
-
const entry =
|
|
491
|
+
const entry = entries.get(name);
|
|
503
492
|
if (!entry || entry.integrationID !== integrationID)
|
|
504
493
|
return;
|
|
505
494
|
if (entry.status.status === "disabled")
|
|
@@ -509,19 +498,45 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
509
498
|
}).pipe(locks.withLock(name));
|
|
510
499
|
});
|
|
511
500
|
fork(bus.subscribe(exports_integration.Event.ConnectionUpdated).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID)))), Effect.ignore));
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
501
|
+
const state = exports_state.create({
|
|
502
|
+
name: "mcp",
|
|
503
|
+
initial: () => ({
|
|
504
|
+
servers: new Map(Array.from(overrides).flatMap(([name, config]) => config === false ? [] : [[name, cloneConfig(config)]])),
|
|
505
|
+
removed: new Set(Array.from(overrides).flatMap(([name, config]) => config === false ? [name] : []))
|
|
506
|
+
}),
|
|
507
|
+
draft: (draft) => ({
|
|
508
|
+
list: () => Array.from(draft.servers),
|
|
509
|
+
get: (server) => draft.servers.get(ServerName.make(server)),
|
|
510
|
+
set: (server, serverConfig) => {
|
|
511
|
+
const name = ServerName.make(server);
|
|
512
|
+
if (draft.removed.has(name))
|
|
513
|
+
return;
|
|
514
|
+
draft.servers.set(name, cloneConfig(serverConfig));
|
|
515
|
+
},
|
|
516
|
+
update: (server, update) => {
|
|
517
|
+
const current = draft.servers.get(ServerName.make(server));
|
|
518
|
+
if (!current)
|
|
519
|
+
return;
|
|
520
|
+
update(current);
|
|
521
|
+
},
|
|
522
|
+
remove: (server) => draft.servers.delete(ServerName.make(server))
|
|
523
|
+
}),
|
|
524
|
+
finalize: reconcile
|
|
525
|
+
});
|
|
526
|
+
const whenAllReady = Effect.suspend(() => Effect.forEach(Array.from(entries.values()), (entry) => Deferred.await(entry.startup), {
|
|
515
527
|
concurrency: "unbounded",
|
|
516
528
|
discard: true
|
|
517
529
|
}));
|
|
518
530
|
return Service.of({
|
|
531
|
+
transform: state.transform,
|
|
532
|
+
reload: state.reload,
|
|
519
533
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
520
|
-
return Array.from(
|
|
534
|
+
return Array.from(entries).toSorted(([a], [b]) => a.localeCompare(b)).map(([name, entry]) => new ServerInfo({ name, status: entry.status, integrationID: entry.integrationID }));
|
|
521
535
|
}),
|
|
522
|
-
add: Effect.fn("MCP.add")(function* (server,
|
|
536
|
+
add: Effect.fn("MCP.add")(function* (server, config) {
|
|
523
537
|
const name = ServerName.make(server);
|
|
524
|
-
|
|
538
|
+
overrides.set(name, config);
|
|
539
|
+
yield* state.reload();
|
|
525
540
|
}),
|
|
526
541
|
connect: Effect.fn("MCP.connect")(function* (server) {
|
|
527
542
|
const name = ServerName.make(server);
|
|
@@ -542,14 +557,13 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
542
557
|
}),
|
|
543
558
|
remove: Effect.fn("MCP.remove")(function* (server) {
|
|
544
559
|
const name = ServerName.make(server);
|
|
545
|
-
yield*
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
}).pipe(locks.withLock(name));
|
|
560
|
+
yield* requireServer(name);
|
|
561
|
+
overrides.set(name, false);
|
|
562
|
+
yield* state.reload();
|
|
549
563
|
}),
|
|
550
564
|
tools: Effect.fn("MCP.tools")(function* () {
|
|
551
565
|
yield* whenAllReady;
|
|
552
|
-
return Array.from(
|
|
566
|
+
return Array.from(entries.values()).flatMap((entry) => entry.tools ?? []).toSorted((a, b) => a.server.localeCompare(b.server) || a.name.localeCompare(b.name));
|
|
553
567
|
}),
|
|
554
568
|
callTool: Effect.fn("MCP.callTool")(function* (input) {
|
|
555
569
|
const target = yield* requireServer(input.server);
|
|
@@ -571,7 +585,7 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
571
585
|
}),
|
|
572
586
|
instructions: Effect.fn("MCP.instructions")(function* () {
|
|
573
587
|
yield* whenAllReady;
|
|
574
|
-
return Array.from(
|
|
588
|
+
return Array.from(entries).flatMap(([server, entry]) => {
|
|
575
589
|
const instructions = entry.client?.instructions;
|
|
576
590
|
if (!instructions)
|
|
577
591
|
return [];
|
|
@@ -579,7 +593,7 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
579
593
|
}).toSorted((a, b) => a.server.localeCompare(b.server));
|
|
580
594
|
}),
|
|
581
595
|
prompts: Effect.fn("MCP.prompts")(function* () {
|
|
582
|
-
return Array.from(
|
|
596
|
+
return Array.from(entries.values()).flatMap((entry) => entry.prompts ?? []).toSorted((a, b) => a.server.localeCompare(b.server) || a.name.localeCompare(b.name));
|
|
583
597
|
}),
|
|
584
598
|
prompt: Effect.fn("MCP.prompt")(function* (input) {
|
|
585
599
|
const target = yield* requireServer(input.server);
|
|
@@ -597,7 +611,7 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
597
611
|
}),
|
|
598
612
|
resourceCatalog: Effect.fn("MCP.resourceCatalog")(function* () {
|
|
599
613
|
yield* whenAllReady;
|
|
600
|
-
const catalogs = yield* Effect.forEach(Array.from(
|
|
614
|
+
const catalogs = yield* Effect.forEach(Array.from(entries), ([name, entry]) => {
|
|
601
615
|
if (!entry.client)
|
|
602
616
|
return Effect.succeed({ resources: [], templates: [] });
|
|
603
617
|
return Effect.all({
|
|
@@ -633,7 +647,7 @@ function configured(options) {
|
|
|
633
647
|
return makeLocationNode({
|
|
634
648
|
service: Service,
|
|
635
649
|
layer: layer(options),
|
|
636
|
-
deps: [
|
|
650
|
+
deps: [exports_location.node, exports_environment.node, exports_bus.node, exports_form.node, exports_integration.node, exports_credential.node]
|
|
637
651
|
});
|
|
638
652
|
}
|
|
639
653
|
var node = configured();
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_protected
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-kg1345f7.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_ripgrep
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-4m2k2smt.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_location
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-v0ktexvy.js";
|
|
10
10
|
import {
|
|
11
11
|
PositiveInt,
|
|
12
12
|
RelativePath
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./file-j07kk359.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./file-rvfvac9x.js";
|
|
17
17
|
|
|
18
18
|
// src/filesystem/search.ts
|
|
19
19
|
var exports_search = {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_wellknown
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-y3ys4sce.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_bus
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-ywrrwgdd.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/wellknown/plugin.ts
|
|
12
12
|
var exports_plugin = {};
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getTableColumnsRuntime,
|
|
3
3
|
mapUpdateSet,
|
|
4
4
|
orderSelectedFields
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./file-ma07p6tt.js";
|
|
6
6
|
|
|
7
7
|
// src/database/drizzle/sqlite-core/effect/insert.ts
|
|
8
8
|
import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
exports_sdk
|
|
3
|
+
} from "./file-64bdc2sf.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_internal
|
|
6
|
-
} from "./
|
|
7
|
-
import {
|
|
8
|
-
exports_sdk
|
|
9
|
-
} from "./worktree-zqkzb2rv.js";
|
|
6
|
+
} from "./file-3bk6rmsw.js";
|
|
10
7
|
import {
|
|
11
8
|
exports_source
|
|
12
|
-
} from "./
|
|
9
|
+
} from "./file-6tvgjq6v.js";
|
|
10
|
+
import {
|
|
11
|
+
exports_promise
|
|
12
|
+
} from "./file-5vcssjzn.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_plugin
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./file-k7pgcjt6.js";
|
|
16
16
|
import {
|
|
17
17
|
exports_bus
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./file-ywrrwgdd.js";
|
|
19
19
|
import {
|
|
20
20
|
__export
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./file-rvfvac9x.js";
|
|
22
22
|
|
|
23
23
|
// src/plugin/supervisor.ts
|
|
24
24
|
var exports_supervisor = {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_mcp
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-1c00jchy.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_app
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-50jxp3hw.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/websearch/firecrawl.ts
|
|
12
12
|
var exports_firecrawl = {};
|
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
// src/database/migration/20260804233008_loose_psylocke.ts
|
|
2
2
|
import { Effect } from "effect";
|
|
3
|
+
import { sql } from "drizzle-orm";
|
|
4
|
+
var previousV2Marker = "20260730195856_optional_session_title";
|
|
3
5
|
var migration = {
|
|
4
6
|
id: "20260804233008_loose_psylocke",
|
|
5
7
|
up(tx) {
|
|
6
8
|
return Effect.gen(function* () {
|
|
9
|
+
if (yield* tx.get(sql`SELECT id FROM migration WHERE id = ${previousV2Marker}`)) {
|
|
10
|
+
const v1Only = yield* tx.get(sql`
|
|
11
|
+
SELECT 1
|
|
12
|
+
FROM message
|
|
13
|
+
WHERE NOT EXISTS (
|
|
14
|
+
SELECT 1 FROM session_message WHERE session_message.session_id = message.session_id
|
|
15
|
+
)
|
|
16
|
+
LIMIT 1
|
|
17
|
+
`);
|
|
18
|
+
if (v1Only)
|
|
19
|
+
return yield* Effect.die(new Error("Previous V2 database contains V1-only session history"));
|
|
20
|
+
yield* tx.run(`DROP INDEX IF EXISTS \`session_project_idx\`;`);
|
|
21
|
+
yield* tx.run(`DROP INDEX IF EXISTS \`session_workspace_idx\`;`);
|
|
22
|
+
yield* tx.run(`DROP INDEX IF EXISTS \`session_parent_idx\`;`);
|
|
23
|
+
yield* tx.run(`DROP INDEX IF EXISTS \`session_time_suspended_idx\`;`);
|
|
24
|
+
yield* tx.run(`ALTER TABLE \`session\` RENAME TO \`session_v2\`;`);
|
|
25
|
+
yield* tx.run(`CREATE INDEX \`session_v2_project_idx\` ON \`session_v2\` (\`project_id\`);`);
|
|
26
|
+
yield* tx.run(`CREATE INDEX \`session_v2_workspace_idx\` ON \`session_v2\` (\`workspace_id\`);`);
|
|
27
|
+
yield* tx.run(`CREATE INDEX \`session_v2_parent_idx\` ON \`session_v2\` (\`parent_id\`);`);
|
|
28
|
+
yield* tx.run(`CREATE INDEX \`session_v2_time_suspended_idx\` ON \`session_v2\` (\`time_suspended\`) WHERE "session_v2"."time_suspended" is not null;`);
|
|
29
|
+
yield* tx.run(`DROP TABLE IF EXISTS \`data_migration\`;`);
|
|
30
|
+
yield* tx.run(`DROP TABLE IF EXISTS \`session_context_epoch\`;`);
|
|
31
|
+
yield* tx.run(`DROP TABLE IF EXISTS \`session_input\`;`);
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
7
34
|
yield* tx.run(`
|
|
8
35
|
CREATE TABLE IF NOT EXISTS \`kv\` (
|
|
9
36
|
\`key\` text PRIMARY KEY,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
llmClient
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-j1a5h53y.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_model_resolver
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-gndxty6r.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/generate.ts
|
|
12
12
|
var exports_generate = {};
|
|
@@ -21,10 +21,12 @@ __export(exports_generate, {
|
|
|
21
21
|
import { LLM, LLMClient } from "@opencode-ai/ai";
|
|
22
22
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
23
23
|
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
24
|
-
class ModelSelectionError extends Schema.
|
|
24
|
+
class ModelSelectionError extends Schema.TaggedError()("Generate.ModelSelectionError", {
|
|
25
|
+
message: Schema.String
|
|
26
|
+
}) {
|
|
25
27
|
}
|
|
26
28
|
|
|
27
|
-
class UnavailableError extends Schema.
|
|
29
|
+
class UnavailableError extends Schema.TaggedError()("Generate.UnavailableError", {
|
|
28
30
|
message: Schema.String,
|
|
29
31
|
service: Schema.optional(Schema.String)
|
|
30
32
|
}) {
|