@opencode-ai/core 0.0.0-beta-17519 → 0.0.0-beta-17577
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/index-8jqmqb92.js +1 -1
- package/dist/chunks/{worktree-02dbfq60.js → permission-02dbfq60.js} +1 -1
- package/dist/chunks/{worktree-04kwjb53.js → permission-04kwjb53.js} +2 -2
- package/dist/chunks/{worktree-0dwyqmzq.js → permission-0dwyqmzq.js} +1 -1
- package/dist/chunks/{worktree-0kvmztkf.js → permission-0kvmztkf.js} +1 -1
- package/dist/chunks/{worktree-bp8xwhb4.js → permission-0na2yj0j.js} +6 -6
- package/dist/chunks/{worktree-nx95edza.js → permission-0sd4kks5.js} +5 -5
- package/dist/chunks/{worktree-0zs4qnv1.js → permission-0zs4qnv1.js} +2 -2
- package/dist/chunks/{worktree-18pv8fg3.js → permission-18pv8fg3.js} +2 -2
- package/dist/chunks/{worktree-ywdd8efs.js → permission-1bjeht8g.js} +107 -93
- package/dist/chunks/{worktree-1c00jchy.js → permission-1c00jchy.js} +2 -2
- package/dist/chunks/{worktree-snreps37.js → permission-1hdsqr4g.js} +11 -11
- package/dist/chunks/{worktree-f493cvht.js → permission-1hpdr5k7.js} +6 -6
- package/dist/chunks/{worktree-xfd1xnk3.js → permission-1px4xhxb.js} +2 -2
- package/dist/chunks/{worktree-37rcj8p3.js → permission-1sx0aa4f.js} +3 -3
- package/dist/chunks/{worktree-1xksxgzs.js → permission-1xksxgzs.js} +2 -2
- package/dist/chunks/{worktree-hb4xmydk.js → permission-224kngk4.js} +3 -3
- package/dist/chunks/{worktree-25pxtba7.js → permission-25pxtba7.js} +1 -1
- package/dist/chunks/{worktree-2nmyybe0.js → permission-2nmyybe0.js} +1 -1
- package/dist/chunks/{worktree-y3qywb4q.js → permission-2phatmss.js} +4 -4
- package/dist/chunks/{worktree-ddn74qps.js → permission-2vxr0v86.js} +2 -2
- package/dist/chunks/{worktree-05525jb6.js → permission-2z3rh68g.js} +2 -2
- package/dist/chunks/{worktree-2vwegrqc.js → permission-2zh3vzhg.js} +2 -2
- package/dist/chunks/{worktree-sd966s7w.js → permission-3504n0pb.js} +7 -7
- package/dist/chunks/{worktree-38crwsq8.js → permission-38crwsq8.js} +2 -2
- package/dist/chunks/{worktree-0qh9pzb0.js → permission-3de8k51t.js} +11 -11
- package/dist/chunks/{worktree-5pfeh60c.js → permission-3g8vftxb.js} +2 -2
- package/dist/chunks/{worktree-bkkwvxgw.js → permission-3nea7255.js} +16 -16
- package/dist/chunks/{worktree-3thh6229.js → permission-3thh6229.js} +2 -2
- package/dist/chunks/{worktree-vgenfcra.js → permission-411tt0rq.js} +2 -2
- package/dist/chunks/{worktree-42q4drvy.js → permission-42q4drvy.js} +2 -2
- package/dist/chunks/{worktree-45f7x7tq.js → permission-43mvfe2q.js} +9 -9
- package/dist/chunks/{worktree-3ms9b0hh.js → permission-479pztge.js} +10 -10
- package/dist/chunks/{worktree-w6ytwaqa.js → permission-4fqxnjyh.js} +10 -10
- package/dist/chunks/{worktree-4s2xwh5d.js → permission-4s2xwh5d.js} +3 -3
- package/dist/chunks/{worktree-be91g35x.js → permission-4vtbtjs6.js} +30 -26
- package/dist/chunks/{worktree-p8fzv3v2.js → permission-4yp2anzv.js} +1 -1
- package/dist/chunks/{worktree-4zzdwbaz.js → permission-4zzdwbaz.js} +2 -2
- package/dist/chunks/{worktree-50jxp3hw.js → permission-50jxp3hw.js} +1 -1
- package/dist/chunks/{worktree-52jzav25.js → permission-52jzav25.js} +1 -1
- package/dist/chunks/{worktree-57tzwnz4.js → permission-57tzwnz4.js} +1 -1
- package/dist/chunks/permission-5g8xwd0t.js +49 -0
- package/dist/chunks/{worktree-3zqegg96.js → permission-5jyes04d.js} +12 -12
- package/dist/chunks/{worktree-5rs65q6p.js → permission-5rs65q6p.js} +1 -1
- package/dist/chunks/{worktree-5vcssjzn.js → permission-5vcssjzn.js} +1 -1
- package/dist/chunks/permission-6ky7rqk7.js +31 -0
- package/dist/chunks/{worktree-wxkmmjny.js → permission-6qdwx322.js} +4 -4
- package/dist/chunks/{worktree-875wbggt.js → permission-6t84bth1.js} +5 -4
- package/dist/chunks/{worktree-706a4azd.js → permission-706a4azd.js} +1 -1
- package/dist/chunks/{worktree-v3hh79qq.js → permission-74etsrrb.js} +84 -84
- package/dist/chunks/permission-75man8ej.js +174 -0
- package/dist/chunks/{worktree-eep368gz.js → permission-76kn8xkg.js} +3 -3
- package/dist/chunks/permission-7e6x8m6a.js +148 -0
- package/dist/chunks/{worktree-7mrpdsq5.js → permission-7mrpdsq5.js} +1 -1
- package/dist/chunks/{worktree-r1a74hph.js → permission-7vbww3n4.js} +70 -58
- package/dist/chunks/{worktree-7wcmqxrc.js → permission-7wcmqxrc.js} +1 -1
- package/dist/chunks/{worktree-88jbfw8z.js → permission-88jbfw8z.js} +2 -2
- package/dist/chunks/{worktree-8bkmtpp6.js → permission-8bkmtpp6.js} +2 -2
- package/dist/chunks/{worktree-cgvnqv92.js → permission-8dwkjrbx.js} +1 -1
- package/dist/chunks/{worktree-jy6jkn1q.js → permission-8er44zcz.js} +3 -3
- package/dist/chunks/{worktree-d6vvk673.js → permission-8twz6z1z.js} +2 -2
- package/dist/chunks/{worktree-8v47shgf.js → permission-8v47shgf.js} +2 -2
- package/dist/chunks/{worktree-8ywqk2j9.js → permission-8ywqk2j9.js} +1 -1
- package/dist/chunks/{worktree-ygfah3rq.js → permission-8zgwxd9m.js} +3 -3
- package/dist/chunks/{worktree-n8bdvphd.js → permission-927g09yp.js} +8 -8
- package/dist/chunks/{worktree-93qdgxxd.js → permission-93qdgxxd.js} +1 -1
- package/dist/chunks/{worktree-98930e30.js → permission-98930e30.js} +6 -6
- package/dist/chunks/{worktree-999qd968.js → permission-999qd968.js} +1 -1
- package/dist/chunks/{worktree-9d2xhdr4.js → permission-9d2xhdr4.js} +3 -3
- package/dist/chunks/{worktree-9f0rnpkn.js → permission-9f0rnpkn.js} +1 -1
- package/dist/chunks/{worktree-6nw3hf3n.js → permission-9k5cjqa7.js} +5 -5
- package/dist/chunks/{worktree-yftywzew.js → permission-9y28svjz.js} +5 -5
- package/dist/chunks/{worktree-wjn5a2kx.js → permission-a4ws4q5h.js} +6 -6
- package/dist/chunks/{worktree-a65h300v.js → permission-a65h300v.js} +2 -2
- package/dist/chunks/{worktree-mvfnqvr0.js → permission-a70066vd.js} +5 -5
- package/dist/chunks/{worktree-vy0djk29.js → permission-a7g5mgg5.js} +21 -21
- package/dist/chunks/{worktree-tr3fnk6a.js → permission-ajwydy56.js} +3 -3
- package/dist/chunks/{worktree-nv3q409j.js → permission-ar1rcpym.js} +2 -2
- package/dist/chunks/{worktree-8wwfk5hz.js → permission-atw11kab.js} +8 -8
- package/dist/chunks/{worktree-5xzparyv.js → permission-aw8kebwz.js} +3 -3
- package/dist/chunks/{worktree-ayfwnm78.js → permission-ayfwnm78.js} +2 -2
- package/dist/chunks/{worktree-y5mtxhrm.js → permission-ayx1tnqk.js} +20 -20
- package/dist/chunks/{worktree-byab506k.js → permission-byab506k.js} +1 -1
- package/dist/chunks/{worktree-6e3dgnnx.js → permission-bzktra1r.js} +9 -9
- package/dist/chunks/{worktree-857g7h76.js → permission-c53n3hjv.js} +1 -1
- package/dist/chunks/{worktree-wj6jc4h7.js → permission-c7efm9dz.js} +5 -5
- package/dist/chunks/{worktree-jqh1fr37.js → permission-cb2jpet2.js} +4 -4
- package/dist/chunks/{worktree-rqswsgbs.js → permission-cdrqa8qb.js} +2 -2
- package/dist/chunks/{worktree-dx75tmcf.js → permission-cq2r1fz4.js} +3 -3
- package/dist/chunks/{worktree-9r0qzhnf.js → permission-cvh8045m.js} +2 -2
- package/dist/chunks/{worktree-cz3dkvcz.js → permission-cz3dkvcz.js} +1 -1
- package/dist/chunks/{worktree-a9jaghsy.js → permission-d21jdf69.js} +3 -3
- package/dist/chunks/{worktree-6jtjggv5.js → permission-dgjzraq6.js} +1 -1
- package/dist/chunks/{worktree-dhphtf1x.js → permission-dhphtf1x.js} +1 -1
- package/dist/chunks/{worktree-7zdtvaa2.js → permission-dnwvzwms.js} +8 -8
- package/dist/chunks/{worktree-dyz5q1tb.js → permission-dyz5q1tb.js} +2 -2
- package/dist/chunks/{worktree-r0zc60h8.js → permission-dzvtre2k.js} +1 -1
- package/dist/chunks/{worktree-e1z9a0ts.js → permission-e1z9a0ts.js} +2 -2
- package/dist/chunks/{worktree-5a1f2529.js → permission-e3nn5aee.js} +4 -4
- package/dist/chunks/{worktree-8k8ks5a6.js → permission-ec8vrfw5.js} +3 -3
- package/dist/chunks/{worktree-dw1mm7n3.js → permission-emyxr1mr.js} +4 -4
- package/dist/chunks/{worktree-7pgjtstk.js → permission-epp9x2vw.js} +4 -4
- package/dist/chunks/{worktree-erj4j75s.js → permission-erj4j75s.js} +1 -1
- package/dist/chunks/{worktree-wm59w936.js → permission-ev1rnbgv.js} +20 -20
- package/dist/chunks/{worktree-eyk9wdct.js → permission-eyk9wdct.js} +2 -2
- package/dist/chunks/{worktree-f05p34aa.js → permission-f05p34aa.js} +3 -3
- package/dist/chunks/{worktree-dppgrtwb.js → permission-f14r7hfz.js} +27 -0
- package/dist/chunks/{worktree-b73001y4.js → permission-f5wj9795.js} +5 -5
- package/dist/chunks/{worktree-pcnqrn8w.js → permission-fb80x8kb.js} +7 -7
- package/dist/chunks/{worktree-7b0jv85b.js → permission-fg2ty9mh.js} +5 -5
- package/dist/chunks/{worktree-fmyre8m1.js → permission-fmyre8m1.js} +1 -1
- package/dist/chunks/{worktree-9xv0h02m.js → permission-g062mcxy.js} +14 -14
- package/dist/chunks/{worktree-f1nsvbvj.js → permission-g1etcx5s.js} +3 -3
- package/dist/chunks/{worktree-8v2yzmx6.js → permission-g24q07sd.js} +9 -9
- package/dist/chunks/{worktree-g9yygpzr.js → permission-g9yygpzr.js} +1 -1
- package/dist/chunks/{worktree-jyepqp0w.js → permission-gb3px3et.js} +7 -5
- package/dist/chunks/{worktree-fkqmsqw4.js → permission-gb460n0b.js} +7 -7
- package/dist/chunks/{worktree-gcay93cp.js → permission-gcay93cp.js} +1 -1
- package/dist/chunks/{worktree-gd2xppx8.js → permission-gd2xppx8.js} +1 -1
- package/dist/chunks/{worktree-gpee7ppy.js → permission-gpee7ppy.js} +2 -2
- package/dist/chunks/{worktree-91t3rsqh.js → permission-grq507c0.js} +10 -10
- package/dist/chunks/{worktree-fa8dcnd7.js → permission-gst20jqv.js} +7 -7
- package/dist/chunks/{worktree-8zdwha83.js → permission-gxt3wvgx.js} +9 -9
- package/dist/chunks/{worktree-n701djg3.js → permission-h2cqrwmz.js} +4 -4
- package/dist/chunks/{worktree-cdws2yyh.js → permission-h4h9k5fp.js} +3 -3
- package/dist/chunks/{worktree-h8ecejt5.js → permission-h8ecejt5.js} +1 -1
- package/dist/chunks/{worktree-qgn7w6cn.js → permission-hey5wjg3.js} +7 -7
- package/dist/chunks/{worktree-3mfgaav1.js → permission-hgn8axp1.js} +4 -4
- package/dist/chunks/{worktree-qg07mtkh.js → permission-hq5js4yx.js} +15 -15
- package/dist/chunks/{worktree-j1a5h53y.js → permission-j1a5h53y.js} +1 -1
- package/dist/chunks/{worktree-we2zmhe4.js → permission-j2f50m4s.js} +2 -2
- package/dist/chunks/{worktree-b9twh12c.js → permission-j8mab9t6.js} +12 -12
- package/dist/chunks/{worktree-8qy7z4xa.js → permission-jbyx3c8p.js} +5 -5
- package/dist/chunks/{worktree-6628r0j2.js → permission-jqkpryhn.js} +11 -11
- package/dist/chunks/{worktree-bpjevh87.js → permission-jr46d38z.js} +25 -25
- package/dist/chunks/{worktree-jssy2dr3.js → permission-jssy2dr3.js} +2 -2
- package/dist/chunks/{worktree-10xtr3be.js → permission-jwcdbjdr.js} +2 -2
- package/dist/chunks/{worktree-f5h4svs6.js → permission-k76qjtr6.js} +42 -7
- package/dist/chunks/{worktree-730r4vyz.js → permission-kbqjbq4z.js} +6 -6
- package/dist/chunks/{worktree-kg1345f7.js → permission-kg1345f7.js} +1 -1
- package/dist/chunks/{worktree-szax8zgv.js → permission-kjkmrs65.js} +2 -2
- package/dist/chunks/{worktree-9rdgabpj.js → permission-kxhf2pj9.js} +15 -9
- package/dist/chunks/{worktree-jcwqeqpt.js → permission-m86q2q00.js} +14 -14
- package/dist/chunks/{worktree-dgd8rska.js → permission-m8vnyhs7.js} +3 -3
- package/dist/chunks/{worktree-t6j101pt.js → permission-mcke7qvc.js} +7 -7
- package/dist/chunks/{worktree-mf0hyk7z.js → permission-mf0hyk7z.js} +1 -1
- package/dist/chunks/{worktree-shfvvkmw.js → permission-mf92fvdv.js} +15 -15
- package/dist/chunks/{worktree-249s8sgy.js → permission-mf9a2kyc.js} +3 -3
- package/dist/chunks/{worktree-zrg8htec.js → permission-mg33fzk7.js} +81 -81
- package/dist/chunks/{worktree-mh28new4.js → permission-mh28new4.js} +2 -2
- package/dist/chunks/{worktree-8vhzxx5g.js → permission-mnb85w6b.js} +3 -3
- package/dist/chunks/{worktree-mwceq5am.js → permission-mwceq5am.js} +1 -1
- package/dist/chunks/{worktree-g07x5xy3.js → permission-mz6d4944.js} +5 -5
- package/dist/chunks/{worktree-te3kd788.js → permission-mzwgq0zg.js} +3 -3
- package/dist/chunks/{worktree-2gh436pb.js → permission-n0pphb1y.js} +3 -3
- package/dist/chunks/{worktree-ddjpbqb0.js → permission-n744begs.js} +6 -6
- package/dist/chunks/{worktree-n6a0dr6g.js → permission-nazbfkqn.js} +2 -2
- package/dist/chunks/{worktree-nesb2rcz.js → permission-nesb2rcz.js} +2 -2
- package/dist/chunks/{worktree-nj1s64cz.js → permission-nj1s64cz.js} +1 -1
- package/dist/chunks/{worktree-nr76rjj3.js → permission-nr76rjj3.js} +2 -2
- package/dist/chunks/{worktree-nwh9mtrv.js → permission-nx1j73zk.js} +10 -10
- package/dist/chunks/{worktree-nzrjycs5.js → permission-nzrjycs5.js} +1 -1
- package/dist/chunks/{worktree-5fjttjqy.js → permission-nzsvg77q.js} +5 -5
- package/dist/chunks/{worktree-s6by3cc4.js → permission-p27xxkqg.js} +9 -9
- package/dist/chunks/{worktree-p3zwavty.js → permission-p3zwavty.js} +2 -2
- package/dist/chunks/{worktree-gs3rgzv4.js → permission-p5a9zzfq.js} +126 -117
- package/dist/chunks/{worktree-taddbf1j.js → permission-pf02mb3r.js} +9 -9
- package/dist/chunks/{worktree-pfqehjmy.js → permission-pfqehjmy.js} +2 -2
- package/dist/chunks/{worktree-ph1me6ah.js → permission-ph1me6ah.js} +2 -2
- package/dist/chunks/{worktree-pq4b4pqk.js → permission-pq4b4pqk.js} +2 -2
- package/dist/chunks/{worktree-prf9bavk.js → permission-prf9bavk.js} +3 -3
- package/dist/chunks/{worktree-fm1nvm5g.js → permission-px7n0cd3.js} +1 -1
- package/dist/chunks/{worktree-6p661xfs.js → permission-q0ye1gpz.js} +2 -2
- package/dist/chunks/{worktree-x8bp53t2.js → permission-q97w7bma.js} +7 -7
- package/dist/chunks/{worktree-qe0d689s.js → permission-qe0d689s.js} +2 -2
- package/dist/chunks/{worktree-t1wskd5z.js → permission-qeb8dy48.js} +5 -5
- package/dist/chunks/{worktree-ekph8834.js → permission-qgt32wwf.js} +3 -3
- package/dist/chunks/{worktree-skessbcj.js → permission-qjrxqfcn.js} +3 -3
- package/dist/chunks/{worktree-qsgvz7g8.js → permission-qsgvz7g8.js} +2 -2
- package/dist/chunks/{worktree-j3m211jx.js → permission-qthh8f8q.js} +5 -5
- package/dist/chunks/{worktree-kb5qk7wn.js → permission-qwfvsw6m.js} +2 -2
- package/dist/chunks/{worktree-5p2sx24b.js → permission-qy071k7t.js} +3 -3
- package/dist/chunks/{worktree-r3k9abhd.js → permission-r3k9abhd.js} +2 -2
- package/dist/chunks/{worktree-9smt8cr9.js → permission-r5j341ak.js} +8 -8
- package/dist/chunks/{worktree-fe14tdkq.js → permission-rf7yc5kd.js} +8 -8
- package/dist/chunks/{worktree-7420sy82.js → permission-rmtabg4g.js} +5 -5
- package/dist/chunks/{worktree-1waapm91.js → permission-rmy8jh1g.js} +12 -12
- package/dist/chunks/{worktree-vj4x9f3m.js → permission-rpfq8dm4.js} +9 -9
- package/dist/chunks/permission-rq330gvp.js +139 -0
- package/dist/chunks/{worktree-zqkzb2rv.js → permission-rq6cma3b.js} +2 -2
- package/dist/chunks/{worktree-rt6yg6j2.js → permission-rt6yg6j2.js} +2 -2
- package/dist/chunks/{worktree-y7xy17p6.js → permission-rv9xrpab.js} +36 -8
- package/dist/chunks/{worktree-ryap75b3.js → permission-ryap75b3.js} +1 -1
- package/dist/chunks/{worktree-s9f13v9h.js → permission-s9f13v9h.js} +1 -1
- package/dist/chunks/{worktree-sxxq12m6.js → permission-skhbfgm7.js} +4 -4
- package/dist/chunks/{worktree-smpeg8c9.js → permission-smpeg8c9.js} +2 -2
- package/dist/chunks/{worktree-2m0g72hh.js → permission-t14kykx1.js} +3 -3
- package/dist/chunks/{worktree-s5q7hk5c.js → permission-t2zwmayh.js} +6 -6
- package/dist/chunks/{worktree-tcn24h1d.js → permission-tcn24h1d.js} +1 -1
- package/dist/chunks/{worktree-qxcxzq0w.js → permission-tdqrh469.js} +28 -11
- package/dist/chunks/{worktree-tenv3kfs.js → permission-tenv3kfs.js} +2 -2
- package/dist/chunks/{worktree-thstd87d.js → permission-thstd87d.js} +1 -1
- package/dist/chunks/{worktree-axf5sacz.js → permission-tm8gvwdg.js} +8 -8
- package/dist/chunks/{worktree-6ehwq28g.js → permission-tt3jdn0r.js} +16 -16
- package/dist/chunks/{worktree-xdgv2fac.js → permission-ty27gavt.js} +6 -6
- package/dist/chunks/{worktree-5b8vkrh0.js → permission-v3dafjmh.js} +5 -5
- package/dist/chunks/{worktree-7zqysg7a.js → permission-v4sq6wmx.js} +9 -9
- package/dist/chunks/{worktree-jaw7zdhd.js → permission-v7ns97wc.js} +6 -6
- package/dist/chunks/{worktree-v80zsxnb.js → permission-v80zsxnb.js} +1 -1
- package/dist/chunks/{worktree-v972xay6.js → permission-v972xay6.js} +1 -1
- package/dist/chunks/{worktree-v9bfv94f.js → permission-v9bfv94f.js} +1 -1
- package/dist/chunks/{worktree-hwa45yqt.js → permission-vekck8tf.js} +12 -12
- package/dist/chunks/{worktree-wx89ywv3.js → permission-vkvb1sb3.js} +1 -1
- package/dist/chunks/{worktree-c3f8xgsn.js → permission-vrgwxbfd.js} +79 -32
- package/dist/chunks/{worktree-ts4t4v20.js → permission-vv288965.js} +2 -2
- package/dist/chunks/{worktree-vz89hfgr.js → permission-vz89hfgr.js} +1 -1
- package/dist/chunks/{worktree-t2xtwj2n.js → permission-w3e8emjw.js} +8 -8
- package/dist/chunks/{worktree-wd268jeg.js → permission-wd268jeg.js} +1 -1
- package/dist/chunks/{worktree-wmxdh12w.js → permission-wmxdh12w.js} +1 -1
- package/dist/chunks/{worktree-wps8gh8n.js → permission-wps8gh8n.js} +2 -2
- package/dist/chunks/{worktree-wt193r4g.js → permission-wt193r4g.js} +1 -1
- package/dist/chunks/{worktree-cp1ke1wq.js → permission-wyrp9bw8.js} +9 -9
- package/dist/chunks/{worktree-kgw3cve8.js → permission-x0yrngh6.js} +18 -18
- package/dist/chunks/{worktree-g467njmm.js → permission-x73j28dg.js} +9 -9
- package/dist/chunks/{worktree-ba68z0mh.js → permission-xad24pdr.js} +15 -15
- package/dist/chunks/{worktree-zthe9zqc.js → permission-xczfw7dq.js} +4 -4
- package/dist/chunks/{worktree-j7gqmkwh.js → permission-xdsf5jfx.js} +4 -4
- package/dist/chunks/{worktree-3w0f1yxt.js → permission-xg3qgrrb.js} +3 -3
- package/dist/chunks/{worktree-xgv25zxy.js → permission-xgv25zxy.js} +1 -1
- package/dist/chunks/{worktree-56p2m126.js → permission-xjreyxj2.js} +1 -1
- package/dist/chunks/{worktree-z2vzkpp7.js → permission-xk7h0s83.js} +6 -6
- package/dist/chunks/{worktree-njp4sjwj.js → permission-xv5cykap.js} +9 -9
- package/dist/chunks/{worktree-xwftk1fd.js → permission-xwftk1fd.js} +2 -2
- package/dist/chunks/{worktree-hejzkg3n.js → permission-xxfw1635.js} +14 -14
- package/dist/chunks/{worktree-hkp4zrd4.js → permission-xxpvz42q.js} +3 -3
- package/dist/chunks/{worktree-y0x38cee.js → permission-y0x38cee.js} +1 -1
- package/dist/chunks/{worktree-1kvtxahz.js → permission-y198y2ra.js} +4 -4
- package/dist/chunks/{worktree-5zz4jszj.js → permission-y483a05a.js} +6 -6
- package/dist/chunks/{worktree-y67x6rf6.js → permission-y67x6rf6.js} +1 -1
- package/dist/chunks/{worktree-y8rs54ne.js → permission-y8rs54ne.js} +1 -1
- package/dist/chunks/{worktree-y980s7ka.js → permission-y980s7ka.js} +3 -3
- package/dist/chunks/{worktree-909g54nx.js → permission-yb2qsrx7.js} +29 -29
- package/dist/chunks/{worktree-9a1r81ws.js → permission-ydfc7ds0.js} +87 -70
- package/dist/chunks/{worktree-ed4jjjcc.js → permission-yf0knd5z.js} +2 -2
- package/dist/chunks/{worktree-jtvazjbd.js → permission-yfttrn78.js} +29 -29
- package/dist/chunks/{worktree-0b3j38xs.js → permission-ynsx9xq1.js} +4 -4
- package/dist/chunks/{worktree-nk6j6dqr.js → permission-yy1my25z.js} +8 -8
- package/dist/chunks/{worktree-yz0wm9s3.js → permission-yz0wm9s3.js} +2 -2
- package/dist/chunks/{worktree-3vh42rcr.js → permission-z3nf8g8y.js} +2 -2
- package/dist/chunks/{worktree-eyycrz1w.js → permission-z9szfjrk.js} +6 -6
- package/dist/chunks/{worktree-zbqqnp0n.js → permission-zbqqnp0n.js} +1 -1
- package/dist/chunks/{worktree-zdkg1k91.js → permission-zdkg1k91.js} +1 -1
- package/dist/chunks/{worktree-zfxc0ze5.js → permission-zfxc0ze5.js} +1 -1
- package/dist/chunks/{worktree-z66vzcey.js → permission-zjvgdt9p.js} +7 -7
- package/dist/chunks/{worktree-1rwe361b.js → permission-ztfcvw1c.js} +14 -14
- package/dist/chunks/{worktree-5sgbvx3z.js → permission-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 +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 +21 -21
- 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 +144 -82
- package/dist/database/v1-migration.js +2 -2
- package/dist/database/v1-migration.noop.js +1 -1
- package/dist/effect/app-node-builder.js +318 -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 +88 -88
- 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 +318 -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 +277 -272
- 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 +282 -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 +290 -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 +296 -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 +298 -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 +305 -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 +181 -180
- 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/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 +12 -0
- 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/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 → permission-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{worktree-0f48qthw.js → permission-0f48qthw.js} +0 -0
- /package/dist/chunks/{worktree-0zz82cjq.js → permission-0zz82cjq.js} +0 -0
- /package/dist/chunks/{worktree-1fb7bmpf.js → permission-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{worktree-1wcz8fvj.js → permission-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{worktree-2qdx6zz3.js → permission-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{worktree-3c4nztf9.js → permission-3c4nztf9.js} +0 -0
- /package/dist/chunks/{worktree-3g3rpp2x.js → permission-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{worktree-3q6gbwmd.js → permission-3q6gbwmd.js} +0 -0
- /package/dist/chunks/{worktree-3w3ybtfd.js → permission-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{worktree-47ty4mvs.js → permission-47ty4mvs.js} +0 -0
- /package/dist/chunks/{worktree-4b2tz2m9.js → permission-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{worktree-4zg0gww9.js → permission-4zg0gww9.js} +0 -0
- /package/dist/chunks/{worktree-5a5ch9ts.js → permission-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{worktree-5va1yh78.js → permission-5va1yh78.js} +0 -0
- /package/dist/chunks/{worktree-69qrqpw0.js → permission-69qrqpw0.js} +0 -0
- /package/dist/chunks/{worktree-6yt963b8.js → permission-6yt963b8.js} +0 -0
- /package/dist/chunks/{worktree-7n9qwqk4.js → permission-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{worktree-8nn8kqcn.js → permission-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{worktree-8sj3ajy5.js → permission-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{worktree-8w9tzfz1.js → permission-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{worktree-906y0b6d.js → permission-906y0b6d.js} +0 -0
- /package/dist/chunks/{worktree-9dct5xhx.js → permission-9dct5xhx.js} +0 -0
- /package/dist/chunks/{worktree-9sdtsapf.js → permission-9sdtsapf.js} +0 -0
- /package/dist/chunks/{worktree-a02svayp.js → permission-a02svayp.js} +0 -0
- /package/dist/chunks/{worktree-a83yvq99.js → permission-a83yvq99.js} +0 -0
- /package/dist/chunks/{worktree-ayevdmef.js → permission-ayevdmef.js} +0 -0
- /package/dist/chunks/{worktree-b02txbh8.js → permission-b02txbh8.js} +0 -0
- /package/dist/chunks/{worktree-bbqs2y60.js → permission-bbqs2y60.js} +0 -0
- /package/dist/chunks/{worktree-brsh5f65.js → permission-brsh5f65.js} +0 -0
- /package/dist/chunks/{worktree-bxdhjb3y.js → permission-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{worktree-c77ad0vh.js → permission-c77ad0vh.js} +0 -0
- /package/dist/chunks/{worktree-cm67rqy2.js → permission-cm67rqy2.js} +0 -0
- /package/dist/chunks/{worktree-d6s8p2vk.js → permission-d6s8p2vk.js} +0 -0
- /package/dist/chunks/{worktree-dbah77c1.js → permission-dbah77c1.js} +0 -0
- /package/dist/chunks/{worktree-df3v2q6j.js → permission-df3v2q6j.js} +0 -0
- /package/dist/chunks/{worktree-dhcq6c44.js → permission-dhcq6c44.js} +0 -0
- /package/dist/chunks/{worktree-dht5baf0.js → permission-dht5baf0.js} +0 -0
- /package/dist/chunks/{worktree-dkmkay92.js → permission-dkmkay92.js} +0 -0
- /package/dist/chunks/{worktree-ecxv0vtt.js → permission-ecxv0vtt.js} +0 -0
- /package/dist/chunks/{worktree-ehj9csmv.js → permission-ehj9csmv.js} +0 -0
- /package/dist/chunks/{worktree-em6xpscd.js → permission-em6xpscd.js} +0 -0
- /package/dist/chunks/{worktree-emmqknsm.js → permission-emmqknsm.js} +0 -0
- /package/dist/chunks/{worktree-ezs3tagn.js → permission-ezs3tagn.js} +0 -0
- /package/dist/chunks/{worktree-f4cp4g4a.js → permission-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{worktree-f84sxdqn.js → permission-f84sxdqn.js} +0 -0
- /package/dist/chunks/{worktree-faypg4r1.js → permission-faypg4r1.js} +0 -0
- /package/dist/chunks/{worktree-g7k9te92.js → permission-g7k9te92.js} +0 -0
- /package/dist/chunks/{worktree-gd5xeqc2.js → permission-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{worktree-ghm4673n.js → permission-ghm4673n.js} +0 -0
- /package/dist/chunks/{worktree-ghwjy7my.js → permission-ghwjy7my.js} +0 -0
- /package/dist/chunks/{worktree-gy500k2r.js → permission-gy500k2r.js} +0 -0
- /package/dist/chunks/{worktree-hzeg9cfr.js → permission-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{worktree-j07kk359.js → permission-j07kk359.js} +0 -0
- /package/dist/chunks/{worktree-jve7t217.js → permission-jve7t217.js} +0 -0
- /package/dist/chunks/{worktree-kpdbz7gn.js → permission-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{worktree-kxy11nzk.js → permission-kxy11nzk.js} +0 -0
- /package/dist/chunks/{worktree-kyyqvx4s.js → permission-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{worktree-m8cbvarh.js → permission-m8cbvarh.js} +0 -0
- /package/dist/chunks/{worktree-ma07p6tt.js → permission-ma07p6tt.js} +0 -0
- /package/dist/chunks/{worktree-ma60vzgv.js → permission-ma60vzgv.js} +0 -0
- /package/dist/chunks/{worktree-n3m50c2t.js → permission-n3m50c2t.js} +0 -0
- /package/dist/chunks/{worktree-nkm1m8dz.js → permission-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{worktree-nsc0c3zb.js → permission-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{worktree-qaarhjrp.js → permission-qaarhjrp.js} +0 -0
- /package/dist/chunks/{worktree-qc167nrn.js → permission-qc167nrn.js} +0 -0
- /package/dist/chunks/{worktree-qp95y4jb.js → permission-qp95y4jb.js} +0 -0
- /package/dist/chunks/{worktree-r8f4w671.js → permission-r8f4w671.js} +0 -0
- /package/dist/chunks/{worktree-rdfev9jy.js → permission-rdfev9jy.js} +0 -0
- /package/dist/chunks/{worktree-rvfvac9x.js → permission-rvfvac9x.js} +0 -0
- /package/dist/chunks/{worktree-s7whb9gt.js → permission-s7whb9gt.js} +0 -0
- /package/dist/chunks/{worktree-se76j685.js → permission-se76j685.js} +0 -0
- /package/dist/chunks/{worktree-sem2g21k.js → permission-sem2g21k.js} +0 -0
- /package/dist/chunks/{worktree-tmb1f636.js → permission-tmb1f636.js} +0 -0
- /package/dist/chunks/{worktree-ttxf0gsy.js → permission-ttxf0gsy.js} +0 -0
- /package/dist/chunks/{worktree-tvmhrvfj.js → permission-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{worktree-v2adqbbe.js → permission-v2adqbbe.js} +0 -0
- /package/dist/chunks/{worktree-wj4sxzqa.js → permission-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{worktree-wwntjmk1.js → permission-wwntjmk1.js} +0 -0
- /package/dist/chunks/{worktree-wyqjaaa5.js → permission-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{worktree-x4q807cx.js → permission-x4q807cx.js} +0 -0
- /package/dist/chunks/{worktree-xhz3jyrc.js → permission-xhz3jyrc.js} +0 -0
- /package/dist/chunks/{worktree-yrqrg4vp.js → permission-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{worktree-z47nswr2.js → permission-z47nswr2.js} +0 -0
- /package/dist/chunks/{worktree-zsf8rs93.js → permission-zsf8rs93.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_select
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./permission-04kwjb53.js";
|
|
4
4
|
import {
|
|
5
5
|
__export,
|
|
6
6
|
__require
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./permission-rvfvac9x.js";
|
|
8
8
|
|
|
9
9
|
// src/shell/parse.ts
|
|
10
10
|
var exports_parse = {};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
exports_environment1 as exports_environment
|
|
3
|
+
} from "./permission-3504n0pb.js";
|
|
1
4
|
import {
|
|
2
5
|
exports_integration
|
|
3
|
-
} from "./
|
|
6
|
+
} from "./permission-pf02mb3r.js";
|
|
4
7
|
import {
|
|
5
8
|
exports_form
|
|
6
|
-
} from "./
|
|
7
|
-
import {
|
|
8
|
-
exports_environment1 as exports_environment
|
|
9
|
-
} from "./worktree-sd966s7w.js";
|
|
10
|
-
import {
|
|
11
|
-
exports_config
|
|
12
|
-
} from "./worktree-6ehwq28g.js";
|
|
9
|
+
} from "./permission-q97w7bma.js";
|
|
13
10
|
import {
|
|
14
11
|
exports_credential
|
|
15
|
-
} from "./
|
|
12
|
+
} from "./permission-8zgwxd9m.js";
|
|
13
|
+
import {
|
|
14
|
+
exports_state
|
|
15
|
+
} from "./permission-wt193r4g.js";
|
|
16
16
|
import {
|
|
17
17
|
exports_location
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./permission-q0ye1gpz.js";
|
|
19
19
|
import {
|
|
20
20
|
exports_bus
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./permission-gst20jqv.js";
|
|
22
22
|
import {
|
|
23
23
|
exports_keyed_mutex
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./permission-0kvmztkf.js";
|
|
25
25
|
import {
|
|
26
26
|
__export,
|
|
27
27
|
__require
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./permission-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,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
collectBoundedResponseBody
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./permission-jve7t217.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./permission-rvfvac9x.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/mcp.ts
|
|
9
9
|
var exports_mcp = {};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_mcp
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./permission-1bjeht8g.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_select
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./permission-04kwjb53.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_config
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./permission-tt3jdn0r.js";
|
|
10
|
+
import {
|
|
11
|
+
exports_state
|
|
12
|
+
} from "./permission-wt193r4g.js";
|
|
10
13
|
import {
|
|
11
14
|
exports_location
|
|
12
|
-
} from "./
|
|
15
|
+
} from "./permission-q0ye1gpz.js";
|
|
13
16
|
import {
|
|
14
17
|
exports_bus
|
|
15
|
-
} from "./
|
|
16
|
-
import {
|
|
17
|
-
exports_state
|
|
18
|
-
} from "./worktree-wt193r4g.js";
|
|
18
|
+
} from "./permission-gst20jqv.js";
|
|
19
19
|
import {
|
|
20
20
|
__export
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./permission-rvfvac9x.js";
|
|
22
22
|
|
|
23
23
|
// src/command.ts
|
|
24
24
|
var exports_command = {};
|
|
@@ -42,13 +42,13 @@ import { Global } from "@opencode-ai/util/global";
|
|
|
42
42
|
import { Event } from "@opencode-ai/schema/command";
|
|
43
43
|
var Info = Command.Info;
|
|
44
44
|
|
|
45
|
-
class NotFoundError extends Schema.
|
|
45
|
+
class NotFoundError extends Schema.TaggedError()("Command.NotFoundError", {
|
|
46
46
|
command: Schema.String,
|
|
47
47
|
message: Schema.String
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class EvaluationError extends Schema.
|
|
51
|
+
class EvaluationError extends Schema.TaggedError()("Command.EvaluationError", {
|
|
52
52
|
command: Schema.String,
|
|
53
53
|
message: Schema.String
|
|
54
54
|
}) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_model
|
|
3
|
-
} from "./
|
|
4
|
-
import {
|
|
5
|
-
exports_integration
|
|
6
|
-
} from "./worktree-taddbf1j.js";
|
|
3
|
+
} from "./permission-4fqxnjyh.js";
|
|
7
4
|
import {
|
|
8
5
|
exports_permission
|
|
9
|
-
} from "./
|
|
6
|
+
} from "./permission-rmy8jh1g.js";
|
|
10
7
|
import {
|
|
11
8
|
AgentNotFoundError,
|
|
12
9
|
StepFailedError,
|
|
13
10
|
UserInterruptedError
|
|
14
|
-
} from "./
|
|
11
|
+
} from "./permission-p27xxkqg.js";
|
|
12
|
+
import {
|
|
13
|
+
exports_integration
|
|
14
|
+
} from "./permission-pf02mb3r.js";
|
|
15
15
|
|
|
16
16
|
// src/session/to-session-error.ts
|
|
17
17
|
import { AIError, ToolFailure } from "@opencode-ai/ai";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_model
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./permission-1px4xhxb.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_provider
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./permission-8twz6z1z.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./permission-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/github-copilot/models.ts
|
|
12
12
|
var exports_models = {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_wellknown
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./permission-ajwydy56.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_bus
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./permission-gst20jqv.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./permission-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/wellknown/plugin.ts
|
|
12
12
|
var exports_plugin = {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_markdown
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./permission-7wcmqxrc.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_skill
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./permission-ty27gavt.js";
|
|
7
7
|
import {
|
|
8
8
|
AbsolutePath
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./permission-j07kk359.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./permission-rvfvac9x.js";
|
|
13
13
|
|
|
14
14
|
// src/config/plugin/skill-file.ts
|
|
15
15
|
var exports_skill_file = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_provider
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./permission-8twz6z1z.js";
|
|
4
4
|
import {
|
|
5
5
|
__require
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./permission-rvfvac9x.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/anthropic.ts
|
|
9
9
|
import { Effect } from "effect";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_integration
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./permission-pf02mb3r.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_provider
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./permission-8twz6z1z.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/llmgateway.ts
|
|
9
9
|
import { Effect } from "effect";
|