@opencode/core 0.0.0-dev-21032 → 0.0.0-dev-21034
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 +1 -1
- package/dist/agent.js +85 -85
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +9 -9
- package/dist/bus.js +75 -75
- package/dist/chunks/{model-resolver-0jq9fyba.js → permission-0996nyz8.js} +9 -9
- package/dist/chunks/{model-resolver-yqee2774.js → permission-0hc7hhgr.js} +24 -24
- package/dist/chunks/{model-resolver-0vbcp93d.js → permission-0vbcp93d.js} +2 -2
- package/dist/chunks/{model-resolver-tnabgbb7.js → permission-0xz6yqwx.js} +17 -17
- package/dist/chunks/{model-resolver-rk5c66hf.js → permission-14ep8ry0.js} +48 -48
- package/dist/chunks/{model-resolver-7r94a8zm.js → permission-153d154m.js} +15 -15
- package/dist/chunks/{model-resolver-8wf75xe6.js → permission-1baefqf3.js} +13 -13
- package/dist/chunks/{model-resolver-e9az0enp.js → permission-1csb2yrm.js} +31 -31
- package/dist/chunks/{model-resolver-j2rkz0eh.js → permission-1dx3f2q5.js} +23 -23
- package/dist/chunks/{model-resolver-bjx1sjef.js → permission-1ffvrpkg.js} +6 -6
- package/dist/chunks/{model-resolver-09k7wrv4.js → permission-1gf2gmws.js} +19 -19
- package/dist/chunks/{model-resolver-w92k2e0p.js → permission-1p07q0wb.js} +6 -6
- package/dist/chunks/{model-resolver-qbmv3hq3.js → permission-1qvp4azq.js} +9 -9
- package/dist/chunks/{model-resolver-vmmrq9g8.js → permission-1wdnxaaj.js} +44 -44
- package/dist/chunks/{model-resolver-70cnkcsv.js → permission-22erkmks.js} +32 -32
- package/dist/chunks/{model-resolver-392bmkv0.js → permission-23264cxh.js} +28 -28
- package/dist/chunks/{model-resolver-wwwg8pmm.js → permission-2887bapx.js} +27 -27
- package/dist/chunks/{model-resolver-zxdyc6t8.js → permission-2ghdqs35.js} +24 -24
- package/dist/chunks/{model-resolver-jx6fkytk.js → permission-2gwccfbm.js} +31 -31
- package/dist/chunks/{model-resolver-dafg4d8k.js → permission-2n5svhne.js} +3 -3
- package/dist/chunks/{model-resolver-jtbrrh68.js → permission-2th8mz0v.js} +16 -16
- package/dist/chunks/{model-resolver-ry5rj60g.js → permission-33298kgb.js} +11 -11
- package/dist/chunks/{model-resolver-gxx80edd.js → permission-34jyn7hz.js} +43 -43
- package/dist/chunks/{model-resolver-3fc6dm20.js → permission-3fc6dm20.js} +1 -1
- package/dist/chunks/{model-resolver-3hepkmqq.js → permission-3hepkmqq.js} +1 -1
- package/dist/chunks/{model-resolver-3hwn7j4h.js → permission-3hwn7j4h.js} +2 -2
- package/dist/chunks/{model-resolver-7bzg5cgk.js → permission-3m6xk0bp.js} +27 -27
- package/dist/chunks/{model-resolver-e1k4xdgj.js → permission-3rjtyjd2.js} +4 -4
- package/dist/chunks/{model-resolver-3smtnn6g.js → permission-3smtnn6g.js} +1 -1
- package/dist/chunks/{model-resolver-3tvqynh2.js → permission-3tvqynh2.js} +1 -1
- package/dist/chunks/{model-resolver-x661k3y3.js → permission-3y377wv9.js} +4 -4
- package/dist/chunks/{model-resolver-3zsf4n22.js → permission-3zsf4n22.js} +1 -1
- package/dist/chunks/{model-resolver-fpecnkgp.js → permission-4434d9q2.js} +9 -9
- package/dist/chunks/{model-resolver-3n7sqfmk.js → permission-45awh1kf.js} +20 -20
- package/dist/chunks/{model-resolver-jn47bq7y.js → permission-4b7ybz5b.js} +12 -12
- package/dist/chunks/{model-resolver-rttpym1x.js → permission-4h1gcyaj.js} +28 -28
- package/dist/chunks/{model-resolver-hjpw2ktw.js → permission-4k4yh3eh.js} +40 -40
- package/dist/chunks/{model-resolver-rtk67pzp.js → permission-4mq2q23e.js} +30 -30
- package/dist/chunks/{model-resolver-nmfgk2za.js → permission-4t1p4zp6.js} +5 -5
- package/dist/chunks/{model-resolver-rjrvrrm1.js → permission-4tafczye.js} +23 -23
- package/dist/chunks/{model-resolver-3k0t8dzv.js → permission-53jpvkec.js} +19 -19
- package/dist/chunks/{model-resolver-54ma36ye.js → permission-54ma36ye.js} +1 -1
- package/dist/chunks/{model-resolver-57b9ws8p.js → permission-57b9ws8p.js} +1 -1
- package/dist/chunks/{model-resolver-crz08krd.js → permission-5g1sze8q.js} +3 -3
- package/dist/chunks/{model-resolver-6x64453h.js → permission-5h6ge2fr.js} +11 -11
- package/dist/chunks/{model-resolver-d426qwtt.js → permission-5kbjjhnf.js} +11 -11
- package/dist/chunks/{model-resolver-5m9w47nd.js → permission-5m9w47nd.js} +1 -1
- package/dist/chunks/{model-resolver-fenh6xsq.js → permission-5nsgr0gj.js} +19 -19
- package/dist/chunks/{model-resolver-e3qxr5gk.js → permission-5qd3pb7m.js} +2 -2
- package/dist/chunks/{model-resolver-y0msmzz5.js → permission-5vf61gew.js} +38 -38
- package/dist/chunks/{model-resolver-7ffb04cr.js → permission-5zwedtnq.js} +31 -31
- package/dist/chunks/{model-resolver-rcyxvf8g.js → permission-60yjs5dy.js} +51 -51
- package/dist/chunks/{model-resolver-rya3mfce.js → permission-648gm199.js} +59 -59
- package/dist/chunks/{model-resolver-yemwmjqt.js → permission-6k18ajg3.js} +31 -31
- package/dist/chunks/{model-resolver-pepx8s05.js → permission-6kbd2zbs.js} +16 -16
- package/dist/chunks/{model-resolver-6xb47vfp.js → permission-6xb47vfp.js} +1 -1
- package/dist/chunks/{model-resolver-5sd65k63.js → permission-742gqgh1.js} +19 -19
- package/dist/chunks/{model-resolver-775gj3j1.js → permission-775gj3j1.js} +2 -2
- package/dist/chunks/{model-resolver-7bmhse3q.js → permission-7bmhse3q.js} +1 -1
- package/dist/chunks/{model-resolver-1a12x520.js → permission-7bzkc1rr.js} +35 -35
- package/dist/chunks/{model-resolver-2fcwg21n.js → permission-7j2pqq7h.js} +35 -35
- package/dist/chunks/{model-resolver-dk9awe6p.js → permission-7j40s2r4.js} +11 -11
- package/dist/chunks/{model-resolver-793pmwr3.js → permission-7k4why36.js} +5 -5
- package/dist/chunks/{model-resolver-s56kyd1y.js → permission-7z8gvswz.js} +9 -9
- package/dist/chunks/{model-resolver-w1eejvng.js → permission-84txncab.js} +5 -5
- package/dist/chunks/{model-resolver-r61qxybf.js → permission-89bb6baa.js} +8 -8
- package/dist/chunks/{model-resolver-c90mqxem.js → permission-8gh9ssjf.js} +71 -71
- package/dist/chunks/{model-resolver-k4nc0g6z.js → permission-8kdcfzk2.js} +13 -13
- package/dist/chunks/{model-resolver-8m6m0r52.js → permission-8m6m0r52.js} +1 -1
- package/dist/chunks/{model-resolver-xawvyy5x.js → permission-8m77a02w.js} +22 -22
- package/dist/chunks/{model-resolver-2bbfedhs.js → permission-8pkvpwbj.js} +40 -40
- package/dist/chunks/{model-resolver-tcay1cqt.js → permission-909p1r3q.js} +6 -6
- package/dist/chunks/{model-resolver-zcfjyxn9.js → permission-92t7a21n.js} +30 -30
- package/dist/chunks/{model-resolver-ryaerzpp.js → permission-938tk9nf.js} +1 -1
- package/dist/chunks/{model-resolver-0kydaqed.js → permission-99yn9h4a.js} +6 -6
- package/dist/chunks/{model-resolver-rendx1gy.js → permission-9sfdxggx.js} +30 -30
- package/dist/chunks/{model-resolver-gpm60zja.js → permission-9sgsjpgv.js} +11 -11
- package/dist/chunks/permission-9sh4wc5j.js +18 -0
- package/dist/chunks/{model-resolver-2w7tcbkg.js → permission-a4kqnag4.js} +4 -4
- package/dist/chunks/{model-resolver-9n6m857c.js → permission-a9wjkxfh.js} +13 -13
- package/dist/chunks/{model-resolver-cqcppvwa.js → permission-ajc8at71.js} +14 -14
- package/dist/chunks/{model-resolver-hkc4w8pe.js → permission-ak6f91g9.js} +4 -4
- package/dist/chunks/{model-resolver-my4zabxr.js → permission-arz7hw7x.js} +2 -2
- package/dist/chunks/{model-resolver-jdnq93kg.js → permission-b3kkr7qp.js} +24 -24
- package/dist/chunks/{model-resolver-zmr78fwr.js → permission-b674v2dg.js} +5 -5
- package/dist/chunks/permission-b6m4cby7.js +513 -0
- package/dist/chunks/{model-resolver-cecf97zp.js → permission-b8h9y7f5.js} +22 -22
- package/dist/chunks/{model-resolver-mcwabzk9.js → permission-bbbn9fzd.js} +13 -13
- package/dist/chunks/{model-resolver-nvx1vskb.js → permission-bcq02gdz.js} +31 -31
- package/dist/chunks/{model-resolver-0prbvn1s.js → permission-bda0f28w.js} +11 -11
- package/dist/chunks/{model-resolver-w5rka97k.js → permission-bkxyw0dr.js} +9 -9
- package/dist/chunks/{model-resolver-h30rxhwn.js → permission-bvddf8vf.js} +12 -12
- package/dist/chunks/{model-resolver-6z7f3aj9.js → permission-c0qy4m0j.js} +32 -32
- package/dist/chunks/{model-resolver-c1fqxshp.js → permission-c1fqxshp.js} +3 -3
- package/dist/chunks/{model-resolver-mdf2ba13.js → permission-ck2gdpfz.js} +193 -193
- package/dist/chunks/{model-resolver-ft3hqk2c.js → permission-cwa6csj7.js} +9 -9
- package/dist/chunks/{model-resolver-vy6fg5p6.js → permission-cx5300j9.js} +24 -24
- package/dist/chunks/{model-resolver-hdck4srb.js → permission-cxt8x7ww.js} +13 -13
- package/dist/chunks/{model-resolver-dc3k7rmc.js → permission-d1qanby1.js} +4 -4
- package/dist/chunks/{model-resolver-9g3a9q2q.js → permission-d21twn6y.js} +81 -81
- package/dist/chunks/{model-resolver-a22q20jk.js → permission-d5by9a6x.js} +18 -18
- package/dist/chunks/{model-resolver-qyp94w8s.js → permission-d5r8dnpk.js} +17 -17
- package/dist/chunks/{model-resolver-r5536f5q.js → permission-dabcn3s5.js} +11 -11
- package/dist/chunks/{model-resolver-ppk3ywg1.js → permission-dat9v65c.js} +1 -1
- package/dist/chunks/{model-resolver-ghe25ndt.js → permission-dc2bfpf9.js} +17 -17
- package/dist/chunks/{model-resolver-c0nagjzw.js → permission-dhk68jr1.js} +11 -11
- package/dist/chunks/{model-resolver-1deqag97.js → permission-dkkmrv04.js} +7 -7
- package/dist/chunks/{model-resolver-fdwgrwmf.js → permission-dmyyeg6p.js} +20 -20
- package/dist/chunks/{model-resolver-dqxsqydv.js → permission-dqxsqydv.js} +1 -1
- package/dist/chunks/{model-resolver-32q9bdbf.js → permission-dvehvma1.js} +4 -4
- package/dist/chunks/{model-resolver-ymgkxg7n.js → permission-dys7k0s0.js} +11 -11
- package/dist/chunks/{model-resolver-nma959mg.js → permission-e80seqcp.js} +3 -3
- package/dist/chunks/{model-resolver-sznyev98.js → permission-e89xj288.js} +5 -5
- package/dist/chunks/{model-resolver-eej6y6fw.js → permission-eej6y6fw.js} +2 -2
- package/dist/chunks/{model-resolver-ef5x83kb.js → permission-ef5x83kb.js} +1 -1
- package/dist/chunks/{model-resolver-y44p5hdc.js → permission-efe6kghm.js} +33 -33
- package/dist/chunks/{model-resolver-sfvacr6d.js → permission-egjkkfp9.js} +32 -32
- package/dist/chunks/{model-resolver-zp79st75.js → permission-ep1dxfdr.js} +4 -4
- package/dist/chunks/{model-resolver-v2k5f06t.js → permission-er72b08t.js} +5 -5
- package/dist/chunks/{model-resolver-7hhqs9ev.js → permission-et7yaydb.js} +11 -11
- package/dist/chunks/{model-resolver-sfatkps4.js → permission-f43bd211.js} +22 -22
- package/dist/chunks/{model-resolver-wzked6k4.js → permission-ffkb5zj3.js} +8 -8
- package/dist/chunks/{model-resolver-8ajv5xtq.js → permission-fjrq0cmg.js} +5 -5
- package/dist/chunks/{model-resolver-axxh5741.js → permission-fm34v9xh.js} +38 -38
- package/dist/chunks/{model-resolver-z1v1h6at.js → permission-g0n95j50.js} +10 -10
- package/dist/chunks/{model-resolver-v1vh7s4p.js → permission-g686f6pq.js} +9 -9
- package/dist/chunks/{model-resolver-6yz0wx8n.js → permission-g6yfr6ja.js} +5 -5
- package/dist/chunks/{model-resolver-r18rd4df.js → permission-g8kx0h9e.js} +15 -15
- package/dist/chunks/{model-resolver-q95fhctt.js → permission-g8v9wvba.js} +41 -41
- package/dist/chunks/{model-resolver-67ggwtmd.js → permission-g9ft5mjf.js} +20 -20
- package/dist/chunks/{model-resolver-gd4qta3r.js → permission-gd4qta3r.js} +1 -1
- package/dist/chunks/{model-resolver-yw8t9dwe.js → permission-gs3s1a1g.js} +8 -8
- package/dist/chunks/{model-resolver-6v699sff.js → permission-gtwdv3mg.js} +2 -2
- package/dist/chunks/{model-resolver-9be2kz6z.js → permission-gzmh2jz2.js} +29 -29
- package/dist/chunks/{model-resolver-h6vf3j39.js → permission-h6vf3j39.js} +1 -1
- package/dist/chunks/{model-resolver-k5khmzd0.js → permission-h7aq57jg.js} +9 -9
- package/dist/chunks/{model-resolver-h7s7r6s9.js → permission-h7s7r6s9.js} +2 -2
- package/dist/chunks/{model-resolver-t4mxe9mg.js → permission-ha8d3m37.js} +12 -12
- package/dist/chunks/{model-resolver-hgz4x7wa.js → permission-hgz4x7wa.js} +1 -1
- package/dist/chunks/{model-resolver-6x4admn2.js → permission-hzdwag85.js} +41 -41
- package/dist/chunks/{model-resolver-j09zfasm.js → permission-j09zfasm.js} +3 -3
- package/dist/chunks/{model-resolver-csfpqy7c.js → permission-j2mwqrk9.js} +6 -6
- package/dist/chunks/{model-resolver-89za3yyg.js → permission-j8s9ab9g.js} +9 -9
- package/dist/chunks/{model-resolver-4qybra34.js → permission-j9wm7hm3.js} +9 -9
- package/dist/chunks/{model-resolver-ak9msbxp.js → permission-jj72jhew.js} +6 -6
- package/dist/chunks/{model-resolver-6g107h22.js → permission-jk540des.js} +2 -2
- package/dist/chunks/{model-resolver-acq2jkv0.js → permission-kcmhn17p.js} +8 -8
- package/dist/chunks/{model-resolver-fxaymqdw.js → permission-khmqacep.js} +4 -4
- package/dist/chunks/{model-resolver-6r767sng.js → permission-kmgc3kat.js} +18 -18
- package/dist/chunks/{model-resolver-dhmh7aw6.js → permission-kne8f3cn.js} +4 -4
- package/dist/chunks/{model-resolver-d3y6n0b6.js → permission-kqx1b4hy.js} +4 -4
- package/dist/chunks/{model-resolver-bgst5jmd.js → permission-ktqjqn2m.js} +22 -22
- package/dist/chunks/{model-resolver-vbfgae2j.js → permission-kzc3h1h3.js} +4 -4
- package/dist/chunks/{model-resolver-m9w0rfyh.js → permission-m9w0rfyh.js} +1 -1
- package/dist/chunks/{model-resolver-s541pesz.js → permission-maff1z3r.js} +13 -13
- package/dist/chunks/{model-resolver-maspj1v3.js → permission-maspj1v3.js} +1 -1
- package/dist/chunks/{model-resolver-zmnv7sx5.js → permission-mjjd50hp.js} +11 -11
- package/dist/chunks/{model-resolver-t11n65rj.js → permission-mn8j277p.js} +19 -19
- package/dist/chunks/{model-resolver-0jskk18s.js → permission-ms78wxrz.js} +3 -3
- package/dist/chunks/{model-resolver-yzwajjfv.js → permission-mxjpgj4j.js} +5 -5
- package/dist/chunks/{model-resolver-4msazfqr.js → permission-mymc06dv.js} +23 -23
- package/dist/chunks/{model-resolver-drnf6xwf.js → permission-nqxj0yn4.js} +2 -2
- package/dist/chunks/{model-resolver-w0nw3455.js → permission-nvvt7nj2.js} +36 -36
- package/dist/chunks/{model-resolver-9mmjpn4f.js → permission-nz6nrzam.js} +16 -16
- package/dist/chunks/{model-resolver-j48y8drp.js → permission-p1j7vwh1.js} +22 -22
- package/dist/chunks/{model-resolver-pjvnvgmy.js → permission-pjvnvgmy.js} +1 -1
- package/dist/chunks/{model-resolver-qnq8y3bv.js → permission-pkmyvcfm.js} +23 -23
- package/dist/chunks/{model-resolver-pknna89w.js → permission-pknna89w.js} +1 -1
- package/dist/chunks/{model-resolver-ncny1qzz.js → permission-pmzgey83.js} +37 -37
- package/dist/chunks/{model-resolver-yqc6bamn.js → permission-pnzf6mjf.js} +1 -1
- package/dist/chunks/{model-resolver-cgcq2d6q.js → permission-py3hn6da.js} +5 -5
- package/dist/chunks/{model-resolver-5f50v25j.js → permission-pzvfe581.js} +16 -16
- package/dist/chunks/{model-resolver-0j77ygfz.js → permission-q0xm7vwc.js} +6 -6
- package/dist/chunks/{model-resolver-22q50vj6.js → permission-q8bf1f5m.js} +23 -23
- package/dist/chunks/{model-resolver-7dqw4kz8.js → permission-qgn6gcr1.js} +5 -5
- package/dist/chunks/{model-resolver-qnc92qwc.js → permission-qnc92qwc.js} +1 -1
- package/dist/chunks/permission-qr6jqbwf.js +253 -0
- package/dist/chunks/{model-resolver-qsdy395h.js → permission-qsdy395h.js} +1 -1
- package/dist/chunks/{model-resolver-fb8g9918.js → permission-qyxmprj2.js} +4 -4
- package/dist/chunks/{model-resolver-esme7ehw.js → permission-r13tw487.js} +4 -4
- package/dist/chunks/{model-resolver-7cf56ajb.js → permission-r1bja6w2.js} +13 -13
- package/dist/chunks/{model-resolver-2gbv331w.js → permission-r2ah3mqq.js} +49 -49
- package/dist/chunks/{model-resolver-tmnq69cf.js → permission-r45epcsw.js} +9 -9
- package/dist/chunks/{model-resolver-ytw0b5ae.js → permission-rag5a5h8.js} +5 -5
- package/dist/chunks/{model-resolver-rdw6cm16.js → permission-rdw6cm16.js} +1 -1
- package/dist/chunks/{model-resolver-rert0e01.js → permission-rert0e01.js} +2 -2
- package/dist/chunks/{model-resolver-ebj1p111.js → permission-rfp1373t.js} +60 -60
- package/dist/chunks/{model-resolver-rhjbct0v.js → permission-rhjbct0v.js} +1 -1
- package/dist/chunks/{model-resolver-rj3eygr5.js → permission-rj3eygr5.js} +2 -2
- package/dist/chunks/{model-resolver-tj7kxczc.js → permission-rkwes2ma.js} +5 -5
- package/dist/chunks/{model-resolver-8wbxkt1z.js → permission-rpf1qvc3.js} +4 -4
- package/dist/chunks/{model-resolver-8h8nb9x6.js → permission-rr3czjrw.js} +11 -11
- package/dist/chunks/{model-resolver-qk84nr82.js → permission-rwe9ykvx.js} +10 -10
- package/dist/chunks/{model-resolver-43sqknmp.js → permission-rz5nsjsp.js} +15 -15
- package/dist/chunks/{model-resolver-sa8ekw3f.js → permission-sa8ekw3f.js} +2 -2
- package/dist/chunks/{model-resolver-dybxmwj9.js → permission-sapmxwcf.js} +1 -1
- package/dist/chunks/{model-resolver-b3f8fkhc.js → permission-scgrse2b.js} +5 -5
- package/dist/chunks/{model-resolver-121zk92f.js → permission-se0j3x8r.js} +22 -22
- package/dist/chunks/{model-resolver-mcv1dfk8.js → permission-sfd48vvp.js} +5 -5
- package/dist/chunks/{model-resolver-mhtf1agk.js → permission-shah6846.js} +17 -17
- package/dist/chunks/{model-resolver-av7cjdq7.js → permission-spt5yz3s.js} +9 -9
- package/dist/chunks/{model-resolver-5srkvmy1.js → permission-sryhev4y.js} +24 -24
- package/dist/chunks/{model-resolver-a6j0r2sw.js → permission-syt365hw.js} +13 -13
- package/dist/chunks/{model-resolver-syv4x271.js → permission-syv4x271.js} +1 -1
- package/dist/chunks/{model-resolver-qa3qhgw8.js → permission-t2fc4mz5.js} +4 -4
- package/dist/chunks/{model-resolver-rah8ek0q.js → permission-t8bfn5pj.js} +19 -19
- package/dist/chunks/{model-resolver-shncg65v.js → permission-t9440qjv.js} +14 -14
- package/dist/chunks/{model-resolver-rss8evm2.js → permission-t9cx4xn0.js} +32 -32
- package/dist/chunks/{model-resolver-tazgh4e4.js → permission-tazgh4e4.js} +1 -1
- package/dist/chunks/{model-resolver-tcezcvh9.js → permission-tcezcvh9.js} +1 -1
- package/dist/chunks/{model-resolver-88hkx883.js → permission-td3rcjyz.js} +12 -12
- package/dist/chunks/{model-resolver-tdstcens.js → permission-tdstcens.js} +1 -1
- package/dist/chunks/{model-resolver-jb03hw38.js → permission-tfkv0wmz.js} +18 -18
- package/dist/chunks/{model-resolver-gefhqhbp.js → permission-tgs1p1xc.js} +5 -5
- package/dist/chunks/{model-resolver-4qsb07a0.js → permission-tgwcphfy.js} +14 -14
- package/dist/chunks/{model-resolver-k6exk33w.js → permission-thm23b5q.js} +8 -8
- package/dist/chunks/{model-resolver-jq8znyjb.js → permission-tj1csd6t.js} +9 -9
- package/dist/chunks/{model-resolver-tm0kqsz3.js → permission-tm0kqsz3.js} +1 -1
- package/dist/chunks/{model-resolver-7ppyhzjx.js → permission-tm6m41eq.js} +8 -8
- package/dist/chunks/{model-resolver-rngsm5nq.js → permission-tpsw7xgg.js} +18 -18
- package/dist/chunks/{model-resolver-p37cw4rj.js → permission-tpw6cwsb.js} +8 -8
- package/dist/chunks/{model-resolver-32nmwdhe.js → permission-ttpkrh20.js} +15 -15
- package/dist/chunks/{model-resolver-tyytaxap.js → permission-tyytaxap.js} +1 -1
- package/dist/chunks/{model-resolver-y4xxc7mq.js → permission-tz1tcexv.js} +14 -14
- package/dist/chunks/{model-resolver-v7p4zvkq.js → permission-v7p4zvkq.js} +2 -2
- package/dist/chunks/{model-resolver-mf39t390.js → permission-vc9ae3va.js} +50 -50
- package/dist/chunks/{model-resolver-veqvce7d.js → permission-veqvce7d.js} +1 -1
- package/dist/chunks/{model-resolver-z7pkff1z.js → permission-vk03cjtq.js} +3 -3
- package/dist/chunks/{model-resolver-ztmj8phm.js → permission-vx38rsfq.js} +11 -11
- package/dist/chunks/{model-resolver-vzs5sf6e.js → permission-vzs5sf6e.js} +1 -1
- package/dist/chunks/{model-resolver-w3wsvvr9.js → permission-w3wsvvr9.js} +1 -1
- package/dist/chunks/{model-resolver-p2cz521y.js → permission-w7wtcht5.js} +23 -23
- package/dist/chunks/{model-resolver-1j6m29mr.js → permission-waskdk5r.js} +9 -9
- package/dist/chunks/{model-resolver-wm6vgevc.js → permission-wavnys1r.js} +8 -8
- package/dist/chunks/{model-resolver-v5h246c5.js → permission-wbrh8mmr.js} +7 -7
- package/dist/chunks/{model-resolver-wd87259q.js → permission-wd87259q.js} +1 -1
- package/dist/chunks/{model-resolver-mm8y8jbb.js → permission-wg6qbvzk.js} +19 -19
- package/dist/chunks/{model-resolver-qz1medfn.js → permission-wrr44y83.js} +47 -47
- package/dist/chunks/{model-resolver-2wnpv58w.js → permission-wx6ysfrr.js} +5 -5
- package/dist/chunks/permission-wzdeabzg.js +26 -0
- package/dist/chunks/{model-resolver-x30w6bae.js → permission-x0c96f0p.js} +22 -22
- package/dist/chunks/{model-resolver-fjakydk0.js → permission-x1bfa1ah.js} +90 -90
- package/dist/chunks/{model-resolver-8rmcv8hn.js → permission-x1ztzwvb.js} +17 -17
- package/dist/chunks/{model-resolver-k1sxn049.js → permission-x2k0j4yz.js} +24 -24
- package/dist/chunks/{model-resolver-nt66sm3b.js → permission-x3tt2f5j.js} +23 -23
- package/dist/chunks/{model-resolver-kq1bqq66.js → permission-x3yz0wp2.js} +12 -12
- package/dist/chunks/{model-resolver-a6wgvm8d.js → permission-x9t96n0e.js} +23 -23
- package/dist/chunks/{model-resolver-171a9z80.js → permission-xcanf8j4.js} +6 -6
- package/dist/chunks/{model-resolver-v6exexfb.js → permission-xg7ezs5d.js} +3 -3
- package/dist/chunks/{model-resolver-rf3mqbns.js → permission-xgs0xwn0.js} +18 -18
- package/dist/chunks/{model-resolver-dhb2hta4.js → permission-xj1aydcy.js} +5 -5
- package/dist/chunks/{model-resolver-2bhwdn85.js → permission-xk6srgdn.js} +22 -22
- package/dist/chunks/{model-resolver-vghjwcv5.js → permission-xk8jcm0s.js} +46 -46
- package/dist/chunks/{model-resolver-5hj1971d.js → permission-xm1cm3hv.js} +27 -27
- package/dist/chunks/{model-resolver-4xx2cn4x.js → permission-xqsvy1tg.js} +11 -11
- package/dist/chunks/{model-resolver-8e83x98h.js → permission-xtc9s16z.js} +11 -11
- package/dist/chunks/{model-resolver-nn6qn2mt.js → permission-xwek5b6q.js} +13 -13
- package/dist/chunks/{model-resolver-y1fvbwt7.js → permission-y1fvbwt7.js} +1 -1
- package/dist/chunks/{model-resolver-y71avatq.js → permission-y71avatq.js} +1 -1
- package/dist/chunks/{model-resolver-kf03r3fp.js → permission-y8wpa335.js} +19 -19
- package/dist/chunks/{model-resolver-yp2x3t23.js → permission-yp2x3t23.js} +1 -1
- package/dist/chunks/{model-resolver-h9wp8z5w.js → permission-yrcj3v3g.js} +4 -4
- package/dist/chunks/{model-resolver-m3atekq7.js → permission-ys73z5xj.js} +47 -47
- package/dist/chunks/{model-resolver-e73819aa.js → permission-ytfgcw1m.js} +19 -19
- package/dist/chunks/{model-resolver-vtr2qm7r.js → permission-yxverjr8.js} +16 -16
- package/dist/chunks/{model-resolver-z0bkrqjs.js → permission-z0bkrqjs.js} +1 -1
- package/dist/chunks/{model-resolver-ahv2j09c.js → permission-z0y96w2z.js} +11 -11
- package/dist/chunks/{model-resolver-1bbkrr1z.js → permission-z0yxrh1z.js} +34 -34
- package/dist/chunks/{model-resolver-kak0n85x.js → permission-z1k9g4m5.js} +3 -3
- package/dist/chunks/{model-resolver-5nnetc6k.js → permission-z3bm8755.js} +7 -7
- package/dist/chunks/{model-resolver-h449cfbc.js → permission-z8ny8jx3.js} +17 -17
- package/dist/chunks/{model-resolver-3m0b5fsq.js → permission-zaknb5bk.js} +10 -10
- package/dist/chunks/{model-resolver-ads5hjyh.js → permission-zcpv5rz7.js} +10 -10
- package/dist/chunks/{model-resolver-hs73t9tm.js → permission-zd58mz13.js} +11 -11
- package/dist/chunks/{model-resolver-e5vt2zzh.js → permission-zntx85zg.js} +9 -9
- package/dist/chunks/{model-resolver-zr2ceqn5.js → permission-zr2ceqn5.js} +1 -1
- package/dist/chunks/{model-resolver-cc3zbjhe.js → permission-zrhtmc5e.js} +34 -34
- package/dist/chunks/{model-resolver-zxq2ej10.js → permission-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +81 -81
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +207 -207
- package/dist/config/plugin/compaction.js +156 -156
- package/dist/config/plugin/compatibility.js +136 -136
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +118 -118
- package/dist/config/plugin/instruction.js +118 -118
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +119 -119
- package/dist/config/plugin/provider.js +118 -118
- package/dist/config/plugin/reference.js +120 -120
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill.js +137 -137
- package/dist/config/plugin/snapshot.js +118 -118
- package/dist/config/plugin/source.js +121 -121
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/plugin/worktree.js +120 -120
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +123 -123
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +367 -367
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +76 -76
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +220 -220
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +104 -104
- package/dist/form.js +78 -78
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +105 -105
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +101 -101
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +359 -359
- package/dist/instruction-discovery.js +82 -82
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +91 -91
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +136 -136
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +356 -356
- package/dist/location.js +91 -91
- package/dist/managed-policy.js +6 -6
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +109 -109
- package/dist/mcp/instructions.js +131 -131
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +101 -101
- package/dist/model-resolver.js +100 -100
- package/dist/model.js +102 -102
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +84 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +117 -117
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +86 -86
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +76 -76
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +213 -213
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +331 -331
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +119 -119
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +118 -118
- package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
- package/dist/plugin/provider/cloudflare-workers-ai.js +116 -116
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +115 -115
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +127 -127
- package/dist/plugin/provider/local.js +124 -124
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai.js +120 -120
- package/dist/plugin/provider/opencode.js +99 -99
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +117 -117
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +127 -127
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +169 -169
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +136 -136
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +350 -350
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +116 -116
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +224 -224
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +90 -90
- package/dist/provider.js +99 -99
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +101 -101
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +93 -93
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +155 -155
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +219 -219
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +86 -86
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +88 -88
- package/dist/session/prompt.js +107 -107
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +92 -92
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +226 -226
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +127 -127
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +164 -164
- package/dist/session/shell.js +132 -132
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -203
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +159 -159
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +219 -216
- package/dist/session/usage.js +1 -1
- package/dist/session.js +211 -211
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +134 -134
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +108 -108
- package/dist/snapshot.js +93 -93
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +128 -128
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +126 -126
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +210 -210
- package/dist/tool/plugin/skill.js +111 -111
- package/dist/tool/plugin/subagent.js +212 -212
- package/dist/tool/plugin/webfetch.js +114 -114
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +95 -95
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +100 -100
- package/package.json +8 -8
- package/dist/chunks/model-resolver-4zfvjxth.js +0 -253
- package/dist/chunks/model-resolver-d9c50y5c.js +0 -26
- package/dist/chunks/model-resolver-nfeetva4.js +0 -513
- package/dist/chunks/model-resolver-qc068m1q.js +0 -18
- /package/dist/chunks/{model-resolver-0qkdqm5v.js → permission-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{model-resolver-0zkw76rk.js → permission-0zkw76rk.js} +0 -0
- /package/dist/chunks/{model-resolver-17cy0kzp.js → permission-17cy0kzp.js} +0 -0
- /package/dist/chunks/{model-resolver-1cnp2v09.js → permission-1cnp2v09.js} +0 -0
- /package/dist/chunks/{model-resolver-1kg9ymc8.js → permission-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{model-resolver-24dcb14g.js → permission-24dcb14g.js} +0 -0
- /package/dist/chunks/{model-resolver-2710q6r3.js → permission-2710q6r3.js} +0 -0
- /package/dist/chunks/{model-resolver-2axfhc9x.js → permission-2axfhc9x.js} +0 -0
- /package/dist/chunks/{model-resolver-2bv980vf.js → permission-2bv980vf.js} +0 -0
- /package/dist/chunks/{model-resolver-2c3vjs8z.js → permission-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{model-resolver-359p4xyc.js → permission-359p4xyc.js} +0 -0
- /package/dist/chunks/{model-resolver-3asan66x.js → permission-3asan66x.js} +0 -0
- /package/dist/chunks/{model-resolver-3t0ybcrp.js → permission-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{model-resolver-3v8g72cx.js → permission-3v8g72cx.js} +0 -0
- /package/dist/chunks/{model-resolver-3wcehsnq.js → permission-3wcehsnq.js} +0 -0
- /package/dist/chunks/{model-resolver-43n2bw4t.js → permission-43n2bw4t.js} +0 -0
- /package/dist/chunks/{model-resolver-4knz6hnm.js → permission-4knz6hnm.js} +0 -0
- /package/dist/chunks/{model-resolver-4vcrnpx2.js → permission-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{model-resolver-4y7fprxs.js → permission-4y7fprxs.js} +0 -0
- /package/dist/chunks/{model-resolver-53557ph1.js → permission-53557ph1.js} +0 -0
- /package/dist/chunks/{model-resolver-550bvhaj.js → permission-550bvhaj.js} +0 -0
- /package/dist/chunks/{model-resolver-6prwharc.js → permission-6prwharc.js} +0 -0
- /package/dist/chunks/{model-resolver-6q2bdcd1.js → permission-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{model-resolver-7akdwqpd.js → permission-7akdwqpd.js} +0 -0
- /package/dist/chunks/{model-resolver-7m9af43g.js → permission-7m9af43g.js} +0 -0
- /package/dist/chunks/{model-resolver-822emrt2.js → permission-822emrt2.js} +0 -0
- /package/dist/chunks/{model-resolver-84wd9syh.js → permission-84wd9syh.js} +0 -0
- /package/dist/chunks/{model-resolver-88xbtdfr.js → permission-88xbtdfr.js} +0 -0
- /package/dist/chunks/{model-resolver-8n3pysct.js → permission-8n3pysct.js} +0 -0
- /package/dist/chunks/{model-resolver-8wj87zfr.js → permission-8wj87zfr.js} +0 -0
- /package/dist/chunks/{model-resolver-9a4afbnw.js → permission-9a4afbnw.js} +0 -0
- /package/dist/chunks/{model-resolver-9rqn6x4v.js → permission-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{model-resolver-a6k6eb26.js → permission-a6k6eb26.js} +0 -0
- /package/dist/chunks/{model-resolver-af5trqkr.js → permission-af5trqkr.js} +0 -0
- /package/dist/chunks/{model-resolver-afrmfg78.js → permission-afrmfg78.js} +0 -0
- /package/dist/chunks/{model-resolver-aqzs7mqg.js → permission-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{model-resolver-atq7p7m5.js → permission-atq7p7m5.js} +0 -0
- /package/dist/chunks/{model-resolver-bkyjaxrp.js → permission-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{model-resolver-bmr6ed5q.js → permission-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{model-resolver-cf4snx6d.js → permission-cf4snx6d.js} +0 -0
- /package/dist/chunks/{model-resolver-cvy3z8tj.js → permission-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{model-resolver-d9fn303g.js → permission-d9fn303g.js} +0 -0
- /package/dist/chunks/{model-resolver-d9jj8t3e.js → permission-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{model-resolver-dajrwvna.js → permission-dajrwvna.js} +0 -0
- /package/dist/chunks/{model-resolver-dap0rakb.js → permission-dap0rakb.js} +0 -0
- /package/dist/chunks/{model-resolver-df08tz66.js → permission-df08tz66.js} +0 -0
- /package/dist/chunks/{model-resolver-dy18nga0.js → permission-dy18nga0.js} +0 -0
- /package/dist/chunks/{model-resolver-e5kj55wp.js → permission-e5kj55wp.js} +0 -0
- /package/dist/chunks/{model-resolver-e73j6tqm.js → permission-e73j6tqm.js} +0 -0
- /package/dist/chunks/{model-resolver-ec1grn59.js → permission-ec1grn59.js} +0 -0
- /package/dist/chunks/{model-resolver-eh3zwz77.js → permission-eh3zwz77.js} +0 -0
- /package/dist/chunks/{model-resolver-emrn6kk6.js → permission-emrn6kk6.js} +0 -0
- /package/dist/chunks/{model-resolver-f0mxakyp.js → permission-f0mxakyp.js} +0 -0
- /package/dist/chunks/{model-resolver-f6n9ztr4.js → permission-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{model-resolver-faypxj3z.js → permission-faypxj3z.js} +0 -0
- /package/dist/chunks/{model-resolver-fd410y7t.js → permission-fd410y7t.js} +0 -0
- /package/dist/chunks/{model-resolver-g4wezp1m.js → permission-g4wezp1m.js} +0 -0
- /package/dist/chunks/{model-resolver-g86h250q.js → permission-g86h250q.js} +0 -0
- /package/dist/chunks/{model-resolver-gebd4c9n.js → permission-gebd4c9n.js} +0 -0
- /package/dist/chunks/{model-resolver-gftt206x.js → permission-gftt206x.js} +0 -0
- /package/dist/chunks/{model-resolver-hcxmzztb.js → permission-hcxmzztb.js} +0 -0
- /package/dist/chunks/{model-resolver-hk9envan.js → permission-hk9envan.js} +0 -0
- /package/dist/chunks/{model-resolver-j2ntwpah.js → permission-j2ntwpah.js} +0 -0
- /package/dist/chunks/{model-resolver-j5zkgpj8.js → permission-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{model-resolver-jjkms2e6.js → permission-jjkms2e6.js} +0 -0
- /package/dist/chunks/{model-resolver-jr7sbwjy.js → permission-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{model-resolver-jwfs4k6c.js → permission-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{model-resolver-jze0r7bz.js → permission-jze0r7bz.js} +0 -0
- /package/dist/chunks/{model-resolver-jzg6c2d5.js → permission-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{model-resolver-m18g726c.js → permission-m18g726c.js} +0 -0
- /package/dist/chunks/{model-resolver-mp448xyj.js → permission-mp448xyj.js} +0 -0
- /package/dist/chunks/{model-resolver-msx8hqn2.js → permission-msx8hqn2.js} +0 -0
- /package/dist/chunks/{model-resolver-n05xt0ee.js → permission-n05xt0ee.js} +0 -0
- /package/dist/chunks/{model-resolver-n3j8tn72.js → permission-n3j8tn72.js} +0 -0
- /package/dist/chunks/{model-resolver-njntx4h6.js → permission-njntx4h6.js} +0 -0
- /package/dist/chunks/{model-resolver-pkyv6v7h.js → permission-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{model-resolver-pyv0edze.js → permission-pyv0edze.js} +0 -0
- /package/dist/chunks/{model-resolver-q3sfg36h.js → permission-q3sfg36h.js} +0 -0
- /package/dist/chunks/{model-resolver-q74kybfr.js → permission-q74kybfr.js} +0 -0
- /package/dist/chunks/{model-resolver-qaymkmh1.js → permission-qaymkmh1.js} +0 -0
- /package/dist/chunks/{model-resolver-qb87gjwd.js → permission-qb87gjwd.js} +0 -0
- /package/dist/chunks/{model-resolver-qfa1cgps.js → permission-qfa1cgps.js} +0 -0
- /package/dist/chunks/{model-resolver-qg3g05ea.js → permission-qg3g05ea.js} +0 -0
- /package/dist/chunks/{model-resolver-qrg20bc0.js → permission-qrg20bc0.js} +0 -0
- /package/dist/chunks/{model-resolver-rcb2kzg1.js → permission-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{model-resolver-sdp7kfr6.js → permission-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{model-resolver-ssg3fenm.js → permission-ssg3fenm.js} +0 -0
- /package/dist/chunks/{model-resolver-ve7vex1e.js → permission-ve7vex1e.js} +0 -0
- /package/dist/chunks/{model-resolver-w803qqfp.js → permission-w803qqfp.js} +0 -0
- /package/dist/chunks/{model-resolver-wc3fc9cn.js → permission-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{model-resolver-wer8tq1h.js → permission-wer8tq1h.js} +0 -0
- /package/dist/chunks/{model-resolver-wjj7prxr.js → permission-wjj7prxr.js} +0 -0
- /package/dist/chunks/{model-resolver-wtztk69x.js → permission-wtztk69x.js} +0 -0
- /package/dist/chunks/{model-resolver-x0ckcb58.js → permission-x0ckcb58.js} +0 -0
- /package/dist/chunks/{model-resolver-x61499pn.js → permission-x61499pn.js} +0 -0
- /package/dist/chunks/{model-resolver-y44na4kk.js → permission-y44na4kk.js} +0 -0
- /package/dist/chunks/{model-resolver-y8f7s663.js → permission-y8f7s663.js} +0 -0
- /package/dist/chunks/{model-resolver-ygaqb7jw.js → permission-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{model-resolver-ym463w8f.js → permission-ym463w8f.js} +0 -0
- /package/dist/chunks/{model-resolver-z5v4ffb3.js → permission-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{model-resolver-z9919s4g.js → permission-z9919s4g.js} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service84
|
|
3
|
+
} from "./permission-bvddf8vf.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
5
|
+
ID18,
|
|
6
|
+
Event21,
|
|
7
|
+
Service83
|
|
8
|
+
} from "./permission-1csb2yrm.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
ID13
|
|
11
|
+
} from "./permission-bcq02gdz.js";
|
|
12
12
|
import {
|
|
13
13
|
configuredSettings2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./permission-xcanf8j4.js";
|
|
15
15
|
|
|
16
16
|
// src/plugin/provider/google-vertex.ts
|
|
17
17
|
import { Effect, Option, Schema, Stream } from "effect";
|
|
@@ -41,8 +41,8 @@ var GoogleVertexPlugin2 = define({
|
|
|
41
41
|
id: "opencode.provider.google.vertex",
|
|
42
42
|
effect: Effect.fn(function* (ctx) {
|
|
43
43
|
const fs = yield* FSUtil.Service;
|
|
44
|
-
const credentials = yield*
|
|
45
|
-
const bus = yield*
|
|
44
|
+
const credentials = yield* Service83;
|
|
45
|
+
const bus = yield* Service84;
|
|
46
46
|
const read = (file) => fs.readFileStringSafe(file).pipe(Effect.orElseSucceed(() => {
|
|
47
47
|
return;
|
|
48
48
|
}));
|
|
@@ -51,7 +51,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
51
51
|
const configs = (yield* fs.readDirectory(path.join(gcloud, "configurations")).pipe(Effect.orElseSucceed(() => []))).filter((name) => name.startsWith("config_")).toSorted((a, b) => Number(b === active) - Number(a === active) || a.localeCompare(b));
|
|
52
52
|
const contents = yield* Effect.forEach(configs, (name) => read(path.join(gcloud, "configurations", name)));
|
|
53
53
|
const adcFile = yield* read(path.join(gcloud, "application_default_credentials.json"));
|
|
54
|
-
const configured = (yield* configuredSettings2(
|
|
54
|
+
const configured = (yield* configuredSettings2(ID13.googleVertex)) ?? {};
|
|
55
55
|
const projects = Array.from(new Set([
|
|
56
56
|
resolveProject(configured),
|
|
57
57
|
...contents.map((content) => content?.match(/^project\s*=\s*(\S+)/m)?.[1]),
|
|
@@ -65,8 +65,8 @@ var GoogleVertexPlugin2 = define({
|
|
|
65
65
|
...contents.flatMap((content) => Array.from((content ?? "").matchAll(/^region\s*=\s*(\S+)/gm), (match) => match[1]))
|
|
66
66
|
]));
|
|
67
67
|
const load = Effect.fn("GoogleVertexPlugin.load")(function* () {
|
|
68
|
-
const connection = yield* ctx.integration.connection.active(
|
|
69
|
-
const stored = connection?.type === "credential" ? yield* credentials.get(
|
|
68
|
+
const connection = yield* ctx.integration.connection.active(ID13.googleVertex);
|
|
69
|
+
const stored = connection?.type === "credential" ? yield* credentials.get(ID18.make(connection.id)) : undefined;
|
|
70
70
|
if (stored?.value.type !== "external" || stored.value.methodID !== ADC_METHOD)
|
|
71
71
|
return {};
|
|
72
72
|
return { project: stored.value.metadata?.project, location: stored.value.metadata?.location };
|
|
@@ -74,15 +74,15 @@ var GoogleVertexPlugin2 = define({
|
|
|
74
74
|
const selected = { settings: yield* load() };
|
|
75
75
|
const settingsFor = (provider) => ({
|
|
76
76
|
...provider.settings,
|
|
77
|
-
...(provider.integrationID ?? provider.id) ===
|
|
77
|
+
...(provider.integrationID ?? provider.id) === ID13.googleVertex ? selected.settings : {}
|
|
78
78
|
});
|
|
79
79
|
yield* ctx.integration.transform((editor) => {
|
|
80
80
|
editor.method.update({
|
|
81
|
-
integrationID:
|
|
81
|
+
integrationID: ID13.googleVertex,
|
|
82
82
|
method: { type: "env", names: ["GOOGLE_VERTEX_API_KEY"] }
|
|
83
83
|
});
|
|
84
84
|
editor.method.update({
|
|
85
|
-
integrationID:
|
|
85
|
+
integrationID: ID13.googleVertex,
|
|
86
86
|
method: {
|
|
87
87
|
id: ADC_METHOD,
|
|
88
88
|
type: "external",
|
|
@@ -120,7 +120,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
120
120
|
});
|
|
121
121
|
yield* ctx.provider.transform((evt) => {
|
|
122
122
|
for (const item of evt.list()) {
|
|
123
|
-
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id ===
|
|
123
|
+
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID13.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
|
|
124
124
|
continue;
|
|
125
125
|
const settings = settingsFor(item.provider);
|
|
126
126
|
const project = resolveProject(settings);
|
|
@@ -139,7 +139,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
139
139
|
});
|
|
140
140
|
yield* ctx.model.transform((models) => {
|
|
141
141
|
for (const item of models.provider.list()) {
|
|
142
|
-
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id ===
|
|
142
|
+
if (!item.provider.package.startsWith("@opencode/ai/providers/google-vertex") && !(item.provider.id === ID13.googleVertex && item.provider.package === "@opencode/ai/providers/openai-compatible"))
|
|
143
143
|
continue;
|
|
144
144
|
const settings = settingsFor(item.provider);
|
|
145
145
|
const project = resolveProject(settings);
|
|
@@ -156,7 +156,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
|
-
yield* bus.subscribe([
|
|
159
|
+
yield* bus.subscribe([Event21.Updated, Event21.Switched]).pipe(Stream.runForEach(() => Effect.gen(function* () {
|
|
160
160
|
const next = yield* load();
|
|
161
161
|
if (JSON.stringify(next) === JSON.stringify(selected.settings))
|
|
162
162
|
return;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./permission-ms78wxrz.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service46
|
|
6
|
+
} from "./permission-909p1r3q.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitActivation2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./permission-9sh4wc5j.js";
|
|
10
10
|
import {
|
|
11
11
|
provenance2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./permission-yrcj3v3g.js";
|
|
13
13
|
import {
|
|
14
14
|
preview2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./permission-bda0f28w.js";
|
|
16
16
|
import {
|
|
17
17
|
baseTranscript2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./permission-6k18ajg3.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Service30
|
|
21
|
+
} from "./permission-d21twn6y.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./permission-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/session/generate.ts
|
|
27
27
|
var exports_generate2 = {};
|
|
@@ -32,12 +32,12 @@ __export(exports_generate2, {
|
|
|
32
32
|
import { LLMClient, Message } from "@opencode/ai";
|
|
33
33
|
import { Effect } from "effect";
|
|
34
34
|
var generate2 = Effect.fn("SessionGenerate.generate")(function* (input) {
|
|
35
|
-
const instances = yield*
|
|
35
|
+
const instances = yield* Service46;
|
|
36
36
|
const database = yield* Service85;
|
|
37
37
|
const llm = yield* LLMClient.Service;
|
|
38
38
|
return yield* Effect.gen(function* () {
|
|
39
39
|
yield* awaitActivation2;
|
|
40
|
-
const context = yield*
|
|
40
|
+
const context = yield* Service30;
|
|
41
41
|
const selection = yield* context.select(input.session.id);
|
|
42
42
|
const model = yield* context.resolveModel(selection.session);
|
|
43
43
|
const history = yield* preview2(database.db, selection.session.id, selection.instructions, provenance2(model) ?? "local");
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service84,
|
|
3
|
+
node88
|
|
4
|
+
} from "./permission-bvddf8vf.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service37,
|
|
7
|
+
node40
|
|
8
|
+
} from "./permission-ys73z5xj.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service65,
|
|
11
|
+
node68
|
|
12
|
+
} from "./permission-rfp1373t.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service41,
|
|
15
|
+
node44
|
|
16
|
+
} from "./permission-b3kkr7qp.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./permission-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/tool/mcp.ts
|
|
22
22
|
var exports_mcp3 = {};
|
|
23
23
|
__export(exports_mcp3, {
|
|
24
24
|
McpTool: () => exports_mcp3,
|
|
25
|
-
Service: () =>
|
|
26
|
-
layer: () =>
|
|
25
|
+
Service: () => Service36,
|
|
26
|
+
layer: () => layer16,
|
|
27
27
|
name: () => name14,
|
|
28
28
|
namespace: () => namespace2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node39
|
|
30
30
|
});
|
|
31
31
|
import { ToolFailure } from "@opencode/ai";
|
|
32
32
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -35,13 +35,13 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
35
35
|
var namespace2 = (server) => server.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
36
36
|
var name14 = (server, tool) => `${namespace2(server)}_${tool.replace(/[^a-zA-Z0-9_-]/g, "_")}`;
|
|
37
37
|
|
|
38
|
-
class
|
|
38
|
+
class Service36 extends Context.Service()("@opencode/McpTool") {
|
|
39
39
|
}
|
|
40
|
-
var
|
|
41
|
-
const mcp = yield*
|
|
42
|
-
const tools = yield*
|
|
43
|
-
const bus = yield*
|
|
44
|
-
const permission = yield*
|
|
40
|
+
var layer16 = Layer.effect(Service36, Effect.gen(function* () {
|
|
41
|
+
const mcp = yield* Service37;
|
|
42
|
+
const tools = yield* Service41;
|
|
43
|
+
const bus = yield* Service84;
|
|
44
|
+
const permission = yield* Service65;
|
|
45
45
|
const lock = Semaphore.makeUnsafe(1);
|
|
46
46
|
let discovered = [];
|
|
47
47
|
const initial = yield* lock.withPermit(Effect.gen(function* () {
|
|
@@ -118,12 +118,12 @@ var layer17 = Layer.effect(Service42, Effect.gen(function* () {
|
|
|
118
118
|
yield* bus.subscribe(McpEvent.ToolsChanged).pipe(Stream.runForEach(() => PubSub.publish(changes, undefined)), Effect.forkScoped({ startImmediately: true }));
|
|
119
119
|
const updates = yield* PubSub.subscribe(changes);
|
|
120
120
|
yield* Stream.fromSubscription(updates).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reconcile), Effect.forkScoped({ startImmediately: true }));
|
|
121
|
-
return
|
|
121
|
+
return Service36.of({ flush: Effect.asVoid(Fiber.await(initial)) });
|
|
122
122
|
}));
|
|
123
|
-
var
|
|
124
|
-
service:
|
|
125
|
-
layer:
|
|
126
|
-
deps: [
|
|
123
|
+
var node39 = makeLocationNode({
|
|
124
|
+
service: Service36,
|
|
125
|
+
layer: layer16,
|
|
126
|
+
deps: [node44, node40, node88, node68]
|
|
127
127
|
});
|
|
128
128
|
|
|
129
|
-
export { namespace2, name14,
|
|
129
|
+
export { namespace2, name14, Service36, layer16, node39, exports_mcp3 };
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
ID10,
|
|
3
|
+
Service68
|
|
4
|
+
} from "./permission-2887bapx.js";
|
|
5
5
|
import {
|
|
6
6
|
Ref2,
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
Service75
|
|
8
|
+
} from "./permission-t9cx4xn0.js";
|
|
9
9
|
import {
|
|
10
10
|
latest2,
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service55
|
|
12
|
+
} from "./permission-r2ah3mqq.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionSchema2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./permission-arz7hw7x.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
Service62
|
|
18
|
+
} from "./permission-2th8mz0v.js";
|
|
19
19
|
import {
|
|
20
20
|
evaluate2,
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Service65
|
|
22
|
+
} from "./permission-rfp1373t.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
24
|
+
Service28
|
|
25
|
+
} from "./permission-x1bfa1ah.js";
|
|
26
26
|
import {
|
|
27
27
|
NO_TEXT2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./permission-6xb47vfp.js";
|
|
29
29
|
import {
|
|
30
30
|
Service10
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./permission-5h6ge2fr.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./permission-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/tool/plugin/subagent.ts
|
|
37
37
|
var exports_subagent = {};
|
|
38
38
|
__export(exports_subagent, {
|
|
39
|
-
Input: () =>
|
|
40
|
-
Output: () =>
|
|
41
|
-
Plugin: () =>
|
|
39
|
+
Input: () => Input3,
|
|
40
|
+
Output: () => Output2,
|
|
41
|
+
Plugin: () => Plugin3,
|
|
42
42
|
SubagentTool: () => exports_subagent,
|
|
43
43
|
description: () => description3,
|
|
44
|
-
name: () =>
|
|
44
|
+
name: () => name3
|
|
45
45
|
});
|
|
46
46
|
import { ToolFailure } from "@opencode/ai";
|
|
47
47
|
import { Effect, Predicate, Schema } from "effect";
|
|
48
|
-
var
|
|
48
|
+
var name3 = "subagent";
|
|
49
49
|
var backgroundResult = (sessionID) => ({
|
|
50
50
|
sessionID,
|
|
51
51
|
status: "running",
|
|
@@ -56,7 +56,7 @@ var backgroundResult = (sessionID) => ({
|
|
|
56
56
|
].join(`
|
|
57
57
|
`)
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var Input3 = Schema.Struct({
|
|
60
60
|
agent: Schema.String.annotate({
|
|
61
61
|
description: "The type of specialized agent to use for this task. If the user asks for a subagent by a name that is not one of the available subagents, they most likely mean a model: pick a suitable agent and pass the name through the model parameter instead."
|
|
62
62
|
}),
|
|
@@ -72,7 +72,7 @@ var Input4 = Schema.Struct({
|
|
|
72
72
|
description: "Run the subagent in the background and return immediately. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress."
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
|
-
var
|
|
75
|
+
var Output2 = Schema.Struct({
|
|
76
76
|
sessionID: SessionSchema2.ID,
|
|
77
77
|
status: Schema.Literals(["completed", "running"]),
|
|
78
78
|
output: Schema.String
|
|
@@ -86,15 +86,15 @@ var description3 = [
|
|
|
86
86
|
"Use background only for independent work that can run while you continue elsewhere."
|
|
87
87
|
].join(`
|
|
88
88
|
`);
|
|
89
|
-
var
|
|
89
|
+
var Plugin3 = {
|
|
90
90
|
id: "opencode.tool.subagent",
|
|
91
91
|
effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
|
|
92
|
-
const sessions = yield*
|
|
93
|
-
const jobs = yield*
|
|
94
|
-
const agents = yield*
|
|
95
|
-
const config = yield*
|
|
96
|
-
const permission = yield*
|
|
97
|
-
const models = yield*
|
|
92
|
+
const sessions = yield* Service28;
|
|
93
|
+
const jobs = yield* Service62;
|
|
94
|
+
const agents = yield* Service68;
|
|
95
|
+
const config = yield* Service55;
|
|
96
|
+
const permission = yield* Service65;
|
|
97
|
+
const models = yield* Service75;
|
|
98
98
|
const subagents = yield* Service10;
|
|
99
99
|
const resolveModel = Effect.fn("SubagentTool.resolveModel")(function* (input) {
|
|
100
100
|
const ref = yield* Effect.try({
|
|
@@ -115,11 +115,11 @@ var Plugin21 = {
|
|
|
115
115
|
return ref;
|
|
116
116
|
});
|
|
117
117
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
118
|
-
name:
|
|
118
|
+
name: name3,
|
|
119
119
|
options: { codemode: false },
|
|
120
120
|
description: description3,
|
|
121
|
-
input:
|
|
122
|
-
output:
|
|
121
|
+
input: Input3,
|
|
122
|
+
output: Output2,
|
|
123
123
|
execute: (input, context) => Effect.gen(function* () {
|
|
124
124
|
const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
|
|
125
125
|
let current = parent;
|
|
@@ -139,7 +139,7 @@ var Plugin21 = {
|
|
|
139
139
|
if (agent.mode === "primary")
|
|
140
140
|
return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
|
|
141
141
|
yield* permission.assert({
|
|
142
|
-
action:
|
|
142
|
+
action: name3,
|
|
143
143
|
resources: [agent.id],
|
|
144
144
|
save: [agent.id],
|
|
145
145
|
sessionID: context.sessionID,
|
|
@@ -168,7 +168,7 @@ var Plugin21 = {
|
|
|
168
168
|
const child = existing ?? (yield* sessions.create({
|
|
169
169
|
parentID: context.sessionID,
|
|
170
170
|
title: input.description,
|
|
171
|
-
agent:
|
|
171
|
+
agent: ID10.make(input.agent),
|
|
172
172
|
model
|
|
173
173
|
}).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error }))));
|
|
174
174
|
const background = input.background === true;
|
|
@@ -218,7 +218,7 @@ ${output.output}
|
|
|
218
218
|
})))
|
|
219
219
|
})).pipe(Effect.orDie);
|
|
220
220
|
yield* ctx.tool.hook("execute.before", (event) => Effect.sync(() => {
|
|
221
|
-
if (event.tool !==
|
|
221
|
+
if (event.tool !== name3 || !Predicate.isObject(event.input))
|
|
222
222
|
return;
|
|
223
223
|
if (event.input.model !== "" && event.input.sessionID !== "")
|
|
224
224
|
return;
|
|
@@ -230,13 +230,13 @@ ${output.output}
|
|
|
230
230
|
event.input = input;
|
|
231
231
|
}));
|
|
232
232
|
const hook = (event) => Effect.gen(function* () {
|
|
233
|
-
const tool = event.tools[
|
|
233
|
+
const tool = event.tools[name3];
|
|
234
234
|
if (!tool)
|
|
235
235
|
return;
|
|
236
236
|
const selected = yield* agents.resolve(event.agent);
|
|
237
237
|
if (!selected)
|
|
238
238
|
return;
|
|
239
|
-
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(
|
|
239
|
+
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name3, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
|
|
240
240
|
if (available.length === 0)
|
|
241
241
|
return;
|
|
242
242
|
tool.description = [
|
|
@@ -253,4 +253,4 @@ ${output.output}
|
|
|
253
253
|
})
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
-
export {
|
|
256
|
+
export { name3, Input3, Output2, description3, Plugin3, exports_subagent };
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./permission-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service78,
|
|
8
|
+
node82
|
|
9
|
+
} from "./permission-0xz6yqwx.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service18,
|
|
12
|
+
node20
|
|
13
|
+
} from "./permission-9sfdxggx.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./permission-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/filesystem.ts
|
|
19
19
|
var exports_filesystem = {};
|
|
@@ -24,20 +24,20 @@ __export(exports_filesystem, {
|
|
|
24
24
|
DirectoryAccessDeniedError: () => DirectoryAccessDeniedError2,
|
|
25
25
|
DirectoryNotFoundError: () => DirectoryNotFoundError2,
|
|
26
26
|
Entry: () => Entry2,
|
|
27
|
-
Event: () =>
|
|
27
|
+
Event: () => Event3,
|
|
28
28
|
FileSystem: () => exports_filesystem,
|
|
29
29
|
FindInput: () => FindInput2,
|
|
30
30
|
GlobInput: () => GlobInput2,
|
|
31
31
|
GrepInput: () => GrepInput2,
|
|
32
32
|
ListInput: () => ListInput2,
|
|
33
33
|
Match: () => Match2,
|
|
34
|
-
NotFoundError: () =>
|
|
34
|
+
NotFoundError: () => NotFoundError3,
|
|
35
35
|
ReadInput: () => ReadInput2,
|
|
36
|
-
Service: () =>
|
|
36
|
+
Service: () => Service17,
|
|
37
37
|
Submatch: () => Submatch2,
|
|
38
38
|
Write: () => Write2,
|
|
39
39
|
WriteInput: () => WriteInput2,
|
|
40
|
-
node: () =>
|
|
40
|
+
node: () => node19
|
|
41
41
|
});
|
|
42
42
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
43
43
|
import path from "path";
|
|
@@ -53,7 +53,7 @@ var WriteInput2 = Schema.Struct({
|
|
|
53
53
|
data: Schema.Uint8Array
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
class
|
|
56
|
+
class NotFoundError3 extends Schema.TaggedError()("FileSystem.NotFoundError", {
|
|
57
57
|
path: RelativePath2
|
|
58
58
|
}) {
|
|
59
59
|
}
|
|
@@ -105,14 +105,14 @@ class GrepInput2 extends Schema.Class("FileSystem.GrepInput")({
|
|
|
105
105
|
limit: Schema.optionalKey(PositiveInt2)
|
|
106
106
|
}) {
|
|
107
107
|
}
|
|
108
|
-
var
|
|
108
|
+
var Event3 = FileSystem.Event;
|
|
109
109
|
|
|
110
|
-
class
|
|
110
|
+
class Service17 extends Context.Service()("@opencode/FileSystem") {
|
|
111
111
|
}
|
|
112
|
-
var baseLayer = Layer.effect(
|
|
112
|
+
var baseLayer = Layer.effect(Service17, Effect.gen(function* () {
|
|
113
113
|
const fs = yield* FSUtil.Service;
|
|
114
|
-
const location = yield*
|
|
115
|
-
const search = yield*
|
|
114
|
+
const location = yield* Service78;
|
|
115
|
+
const search = yield* Service18;
|
|
116
116
|
const root = location.workspaceID ? location.directory : yield* fs.realPath(location.directory).pipe(Effect.catch((cause) => {
|
|
117
117
|
if (cause.reason._tag === "NotFound")
|
|
118
118
|
return Effect.fail(new DirectoryNotFoundError2({ directory: location.directory, cause }));
|
|
@@ -122,22 +122,22 @@ var baseLayer = Layer.effect(Service28, Effect.gen(function* () {
|
|
|
122
122
|
}));
|
|
123
123
|
const resolve = Effect.fnUntraced(function* (input) {
|
|
124
124
|
if (input.includes("\x00"))
|
|
125
|
-
return yield* Effect.fail(new
|
|
125
|
+
return yield* Effect.fail(new NotFoundError3({ path: input }));
|
|
126
126
|
const absolute = path.resolve(location.directory, input);
|
|
127
127
|
if (!FSUtil.contains(location.directory, absolute))
|
|
128
|
-
return yield* Effect.fail(new
|
|
129
|
-
const real = yield* fs.realPath(absolute).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
128
|
+
return yield* Effect.fail(new NotFoundError3({ path: input }));
|
|
129
|
+
const real = yield* fs.realPath(absolute).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError3({ path: input })), (_, error) => Effect.die(error)));
|
|
130
130
|
if (!FSUtil.contains(root, real))
|
|
131
|
-
return yield* Effect.fail(new
|
|
131
|
+
return yield* Effect.fail(new NotFoundError3({ path: input }));
|
|
132
132
|
return { absolute, real, directory: location.directory };
|
|
133
133
|
});
|
|
134
|
-
return
|
|
134
|
+
return Service17.of({
|
|
135
135
|
find: search.find,
|
|
136
136
|
read: Effect.fn("FileSystem.read")(function* (input) {
|
|
137
137
|
const target = yield* resolve(input.path);
|
|
138
|
-
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
138
|
+
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError3({ path: input.path })), (_, error) => Effect.die(error)));
|
|
139
139
|
if (info.type !== "File")
|
|
140
|
-
return yield* Effect.fail(new
|
|
140
|
+
return yield* Effect.fail(new NotFoundError3({ path: input.path }));
|
|
141
141
|
return {
|
|
142
142
|
mime: FSUtil.mimeType(target.real),
|
|
143
143
|
size: Number(info.size),
|
|
@@ -147,7 +147,7 @@ var baseLayer = Layer.effect(Service28, Effect.gen(function* () {
|
|
|
147
147
|
}),
|
|
148
148
|
list: Effect.fn("FileSystem.list")(function* (input = {}) {
|
|
149
149
|
const directory = path.resolve(location.directory, input.path ?? ".");
|
|
150
|
-
const missing = new
|
|
150
|
+
const missing = new NotFoundError3({ path: RelativePath2.make(input.path ?? ".") });
|
|
151
151
|
const info = yield* fs.stat(directory).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(missing), (_, error) => Effect.die(error)));
|
|
152
152
|
if (info.type !== "Directory")
|
|
153
153
|
return yield* missing;
|
|
@@ -171,10 +171,10 @@ var baseLayer = Layer.effect(Service28, Effect.gen(function* () {
|
|
|
171
171
|
})
|
|
172
172
|
});
|
|
173
173
|
}));
|
|
174
|
-
var
|
|
175
|
-
service:
|
|
174
|
+
var node19 = makeLocationNode({
|
|
175
|
+
service: Service17,
|
|
176
176
|
layer: baseLayer,
|
|
177
|
-
deps: [FSUtil.node,
|
|
177
|
+
deps: [FSUtil.node, node82, node20]
|
|
178
178
|
});
|
|
179
179
|
|
|
180
|
-
export { FindInput2, Write2, ReadInput2, WriteInput2,
|
|
180
|
+
export { FindInput2, Write2, ReadInput2, WriteInput2, NotFoundError3, DirectoryNotFoundError2, DirectoryAccessDeniedError2, Content2, ListInput2, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event3, Service17, node19, exports_filesystem, Entry2, Match2, Submatch2 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service82
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./permission-d5by9a6x.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service65
|
|
6
|
+
} from "./permission-rfp1373t.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./permission-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/tool/plugin/question.ts
|
|
12
12
|
var exports_question = {};
|
|
@@ -54,7 +54,7 @@ var Plugin50 = {
|
|
|
54
54
|
id: "opencode.tool.question",
|
|
55
55
|
effect: Effect.fn("QuestionTool.Plugin")(function* (ctx) {
|
|
56
56
|
const forms = yield* Service82;
|
|
57
|
-
const permission = yield*
|
|
57
|
+
const permission = yield* Service65;
|
|
58
58
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
59
59
|
name: name13,
|
|
60
60
|
options: { codemode: false },
|