@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,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ephemeral2,
|
|
3
|
-
Service83,
|
|
4
|
-
node87
|
|
5
|
-
} from "./model-resolver-h30rxhwn.js";
|
|
6
|
-
import {
|
|
7
3
|
Service84,
|
|
8
4
|
node88
|
|
9
|
-
} from "./
|
|
5
|
+
} from "./permission-bvddf8vf.js";
|
|
6
|
+
import {
|
|
7
|
+
Service72,
|
|
8
|
+
node75
|
|
9
|
+
} from "./permission-zcpv5rz7.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./permission-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/wellknown.ts
|
|
15
15
|
var exports_wellknown = {};
|
|
16
16
|
__export(exports_wellknown, {
|
|
17
17
|
Auth: () => Auth2,
|
|
18
18
|
Config: () => Config2,
|
|
19
|
-
Event: () =>
|
|
19
|
+
Event: () => Event11,
|
|
20
20
|
Manifest: () => Manifest2,
|
|
21
21
|
RemoteConfig: () => RemoteConfig2,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service57,
|
|
23
23
|
WellKnown: () => exports_wellknown,
|
|
24
24
|
inspect: () => inspect2,
|
|
25
|
-
node: () =>
|
|
26
|
-
resolve: () =>
|
|
25
|
+
node: () => node59,
|
|
26
|
+
resolve: () => resolve2
|
|
27
27
|
});
|
|
28
28
|
import { Integration } from "@opencode/schema/integration";
|
|
29
29
|
import { Context, Effect, Layer, Ref, Schema, Semaphore } from "effect";
|
|
@@ -46,9 +46,9 @@ var Manifest2 = Schema.Struct({
|
|
|
46
46
|
remote_config: Schema.optional(RemoteConfig2)
|
|
47
47
|
}).annotate({ identifier: "WellKnown.Manifest" });
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class Service57 extends Context.Service()("@opencode/WellKnown") {
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var Event11 = {
|
|
52
52
|
Updated: ephemeral2({ type: "wellknown.updated", schema: {} })
|
|
53
53
|
};
|
|
54
54
|
var requestTimeout = "15 seconds";
|
|
@@ -57,7 +57,7 @@ var inspect2 = Effect.fn("WellKnown.inspect")(function* (origin) {
|
|
|
57
57
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
58
58
|
return yield* http.execute(HttpClientRequest.get(url).pipe(HttpClientRequest.acceptJson)).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(Manifest2)), Effect.timeout(requestTimeout), Effect.mapError((cause) => new Error(`Failed to load wellknown manifest from ${url}`, { cause })));
|
|
59
59
|
});
|
|
60
|
-
var
|
|
60
|
+
var resolve2 = Effect.fn("WellKnown.resolve")(function* (input) {
|
|
61
61
|
const manifest = yield* inspect2(input.origin);
|
|
62
62
|
return yield* resolveEntry({ origin: input.origin, integrationID: Integration.ID.make(input.origin.replace(/\/+$/, "")), manifest }, input.variables ?? {});
|
|
63
63
|
});
|
|
@@ -79,10 +79,10 @@ var Sources = Schema.Array(Schema.String);
|
|
|
79
79
|
var manifestKey = (origin) => `wellknown:manifest:${origin}`;
|
|
80
80
|
var configKey = (origin) => `wellknown:config:${origin}`;
|
|
81
81
|
var Configs = Schema.Array(Config2);
|
|
82
|
-
var layer = Layer.effect(
|
|
82
|
+
var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
83
83
|
const http = yield* HttpClient.HttpClient;
|
|
84
|
-
const kv = yield*
|
|
85
|
-
const bus = yield*
|
|
84
|
+
const kv = yield* Service72;
|
|
85
|
+
const bus = yield* Service84;
|
|
86
86
|
const cache = yield* Ref.make(new Map);
|
|
87
87
|
const lock = Semaphore.makeUnsafe(1);
|
|
88
88
|
const loadEntry = Effect.fn("WellKnown.loadEntry")(function* (origin) {
|
|
@@ -113,10 +113,10 @@ var layer = Layer.effect(Service69, Effect.gen(function* () {
|
|
|
113
113
|
if (!changed)
|
|
114
114
|
return false;
|
|
115
115
|
yield* Ref.set(cache, next);
|
|
116
|
-
yield* bus.publish(
|
|
116
|
+
yield* bus.publish(Event11.Updated, {}, { global: true });
|
|
117
117
|
return true;
|
|
118
118
|
}, (effect) => lock.withPermit(effect));
|
|
119
|
-
return
|
|
119
|
+
return Service57.of({
|
|
120
120
|
entries: load,
|
|
121
121
|
snapshot: () => Array.from(Ref.getUnsafe(cache).values()),
|
|
122
122
|
refresh,
|
|
@@ -129,7 +129,7 @@ var layer = Layer.effect(Service69, Effect.gen(function* () {
|
|
|
129
129
|
const origins = Schema.is(Sources)(sources) ? sources : [];
|
|
130
130
|
yield* kv.set(sourcesKey, Array.from(new Set([...origins, origin])));
|
|
131
131
|
yield* Ref.update(cache, (current) => new Map(current).set(origin, entry));
|
|
132
|
-
yield* bus.publish(
|
|
132
|
+
yield* bus.publish(Event11.Updated, {}, { global: true });
|
|
133
133
|
return entry;
|
|
134
134
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
135
135
|
remove: Effect.fn("WellKnown.remove")(function* (value) {
|
|
@@ -144,7 +144,7 @@ var layer = Layer.effect(Service69, Effect.gen(function* () {
|
|
|
144
144
|
next.delete(origin);
|
|
145
145
|
return next;
|
|
146
146
|
});
|
|
147
|
-
yield* bus.publish(
|
|
147
|
+
yield* bus.publish(Event11.Updated, {}, { global: true });
|
|
148
148
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
149
149
|
resolve: Effect.fn("WellKnown.resolveEntry")(function* (entry, variables) {
|
|
150
150
|
const configs = yield* resolveEntry(entry, variables).pipe(Effect.provideService(HttpClient.HttpClient, http));
|
|
@@ -157,6 +157,6 @@ var layer = Layer.effect(Service69, Effect.gen(function* () {
|
|
|
157
157
|
})
|
|
158
158
|
});
|
|
159
159
|
}));
|
|
160
|
-
var
|
|
160
|
+
var node59 = makeGlobalNode({ service: Service57, layer, deps: [httpClient, node75, node88] });
|
|
161
161
|
|
|
162
|
-
export { Auth2, RemoteConfig2, Config2, Manifest2,
|
|
162
|
+
export { Auth2, RemoteConfig2, Config2, Manifest2, Service57, Event11, inspect2, resolve2, node59, exports_wellknown };
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mergeOverlay2,
|
|
3
3
|
mergeHeaders2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./permission-bcq02gdz.js";
|
|
5
5
|
import {
|
|
6
6
|
mergeCapabilities2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./permission-t9cx4xn0.js";
|
|
8
8
|
import {
|
|
9
9
|
latest2,
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service55
|
|
11
|
+
} from "./permission-r2ah3mqq.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
resolve4
|
|
14
|
+
} from "./permission-99yn9h4a.js";
|
|
15
15
|
import {
|
|
16
16
|
observe2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./permission-qsdy395h.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./permission-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/config/plugin/provider.ts
|
|
23
23
|
var exports_provider = {};
|
|
24
24
|
__export(exports_provider, {
|
|
25
25
|
ConfigProviderPlugin: () => exports_provider,
|
|
26
|
-
Plugin: () =>
|
|
26
|
+
Plugin: () => Plugin46
|
|
27
27
|
});
|
|
28
28
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
29
29
|
import { Money } from "@opencode/schema/money";
|
|
30
30
|
import { Effect } from "effect";
|
|
31
|
-
var
|
|
31
|
+
var Plugin46 = define({
|
|
32
32
|
id: "opencode.config.provider",
|
|
33
33
|
effect: Effect.fn(function* (ctx) {
|
|
34
|
-
const config = yield*
|
|
34
|
+
const config = yield* Service55;
|
|
35
35
|
const loaded = yield* observe2(config, ctx.event, ctx.integration.reload().pipe(Effect.andThen(ctx.provider.reload())));
|
|
36
36
|
yield* ctx.integration.transform((integrations) => {
|
|
37
37
|
for (const [id, provider] of configuredProviders(loaded.entries)) {
|
|
@@ -186,7 +186,7 @@ var Plugin39 = define({
|
|
|
186
186
|
if (config.variants === undefined && !source?.base)
|
|
187
187
|
models.update(providerID, id, (model) => {
|
|
188
188
|
model.variants = [
|
|
189
|
-
...
|
|
189
|
+
...resolve4({
|
|
190
190
|
...model,
|
|
191
191
|
package: model.package ?? models.provider.get(providerID)?.provider.package
|
|
192
192
|
})
|
|
@@ -201,4 +201,4 @@ function configuredProviders(entries) {
|
|
|
201
201
|
return entries.filter((entry) => entry.type === "document").flatMap((file) => Object.entries(file.info.providers ?? {}));
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
export {
|
|
204
|
+
export { Plugin46, exports_provider };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service84,
|
|
3
|
+
node88
|
|
4
|
+
} from "./permission-bvddf8vf.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./permission-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
10
|
key2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./permission-3y377wv9.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
13
|
+
ID16,
|
|
14
|
+
Service81,
|
|
15
|
+
node85,
|
|
16
|
+
Event19
|
|
17
|
+
} from "./permission-2gwccfbm.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
19
|
+
Service78,
|
|
20
|
+
node82
|
|
21
|
+
} from "./permission-0xz6yqwx.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./permission-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/aisdk-native.ts
|
|
27
27
|
var exports_aisdk_native = {};
|
|
@@ -40,12 +40,12 @@ __export(exports_provider3, {
|
|
|
40
40
|
DEFAULT_CHUNK_TIMEOUT_MS: () => DEFAULT_CHUNK_TIMEOUT_MS2,
|
|
41
41
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS3,
|
|
42
42
|
Event: () => Event17,
|
|
43
|
-
ID: () =>
|
|
44
|
-
Info: () =>
|
|
43
|
+
ID: () => ID13,
|
|
44
|
+
Info: () => Info22,
|
|
45
45
|
LoadError: () => LoadError3,
|
|
46
46
|
Provider: () => exports_provider3,
|
|
47
47
|
Request: () => Request3,
|
|
48
|
-
Service: () =>
|
|
48
|
+
Service: () => Service76,
|
|
49
49
|
Settings: () => Settings2,
|
|
50
50
|
Transport: () => Transport2,
|
|
51
51
|
aisdk: () => aisdk2,
|
|
@@ -57,7 +57,7 @@ __export(exports_provider3, {
|
|
|
57
57
|
mergeOverlay: () => mergeOverlay2,
|
|
58
58
|
modelSettings: () => modelSettings2,
|
|
59
59
|
nativeSettings: () => nativeSettings2,
|
|
60
|
-
node: () =>
|
|
60
|
+
node: () => node79,
|
|
61
61
|
packageName: () => packageName2,
|
|
62
62
|
timeout: () => timeout2,
|
|
63
63
|
timeouts: () => timeouts2
|
|
@@ -72,7 +72,7 @@ import { importModule, resolveModule } from "@opencode/util/runtime-import";
|
|
|
72
72
|
import { Credential } from "@opencode/schema/credential";
|
|
73
73
|
import { freeze } from "immer";
|
|
74
74
|
import { Event as Event17 } from "@opencode/schema/provider";
|
|
75
|
-
var
|
|
75
|
+
var ID13 = Provider.ID;
|
|
76
76
|
var AISDK_PREFIX2 = "aisdk:";
|
|
77
77
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
78
78
|
var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
|
|
@@ -283,9 +283,9 @@ var Request3 = Provider.Request;
|
|
|
283
283
|
var Compaction3 = Provider.Compaction;
|
|
284
284
|
var Transport2 = Provider.Transport;
|
|
285
285
|
var Settings2 = Provider.Settings;
|
|
286
|
-
var
|
|
286
|
+
var Info22 = Provider.Info;
|
|
287
287
|
|
|
288
|
-
class
|
|
288
|
+
class Service76 extends Context.Service()("@opencode/Provider") {
|
|
289
289
|
}
|
|
290
290
|
var definitions = new WeakMap;
|
|
291
291
|
function index(providerID, models) {
|
|
@@ -298,10 +298,10 @@ function index(providerID, models) {
|
|
|
298
298
|
definitions.set(models, indexes);
|
|
299
299
|
return result;
|
|
300
300
|
}
|
|
301
|
-
var layer = Layer.effect(
|
|
302
|
-
const bus = yield*
|
|
303
|
-
const integrations = yield*
|
|
304
|
-
const location = yield*
|
|
301
|
+
var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
302
|
+
const bus = yield* Service84;
|
|
303
|
+
const integrations = yield* Service81;
|
|
304
|
+
const location = yield* Service78;
|
|
305
305
|
const state = create3({
|
|
306
306
|
name: "provider",
|
|
307
307
|
initial: () => new Map,
|
|
@@ -312,7 +312,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
312
312
|
const current = records.get(id);
|
|
313
313
|
if (current)
|
|
314
314
|
return current;
|
|
315
|
-
const added = { provider:
|
|
315
|
+
const added = { provider: Info22.empty(id), models: new Map };
|
|
316
316
|
records.set(id, added);
|
|
317
317
|
maps.add(added.models);
|
|
318
318
|
return added;
|
|
@@ -393,7 +393,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
393
393
|
const available = Array.from(records.values()).filter((record) => {
|
|
394
394
|
if (record.provider.activation === "disabled")
|
|
395
395
|
return false;
|
|
396
|
-
const integration = byID.get(record.provider.integrationID ??
|
|
396
|
+
const integration = byID.get(record.provider.integrationID ?? ID16.make(record.provider.id));
|
|
397
397
|
if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
|
|
398
398
|
return false;
|
|
399
399
|
if (record.provider.activation === "enabled")
|
|
@@ -419,8 +419,8 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
419
419
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
420
420
|
});
|
|
421
421
|
});
|
|
422
|
-
yield* bus.subscribe([
|
|
423
|
-
return
|
|
422
|
+
yield* bus.subscribe([Event19.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
423
|
+
return Service76.of({
|
|
424
424
|
transform: state.transform,
|
|
425
425
|
reload: state.reload,
|
|
426
426
|
get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
@@ -429,7 +429,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
429
429
|
snapshot
|
|
430
430
|
});
|
|
431
431
|
}));
|
|
432
|
-
var
|
|
432
|
+
var node79 = makeLocationNode({ service: Service76, layer, deps: [node88, node85, node82] });
|
|
433
433
|
var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
434
434
|
const module = yield* Effect.tryPromise({
|
|
435
435
|
try: () => {
|
|
@@ -699,4 +699,4 @@ var Legacy = Schema2.StructWithRest(Schema2.Struct({
|
|
|
699
699
|
}), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
|
|
700
700
|
var decode = Schema2.decodeUnknownSync(Legacy);
|
|
701
701
|
|
|
702
|
-
export { rewrite2, native2, exports_aisdk_native,
|
|
702
|
+
export { rewrite2, native2, exports_aisdk_native, ID13, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, builtinPackages2, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, DEFAULT_CHUNK_TIMEOUT_MS2, timeout2, timeouts2, encoding2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info22, Service76, node79, exports_provider3, Event17 };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./permission-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./permission-arz7hw7x.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageDecodeError2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./permission-j8s9ab9g.js";
|
|
10
10
|
import {
|
|
11
11
|
InitializationBlocked2,
|
|
12
12
|
read3
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./permission-rhjbct0v.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./permission-c1fqxshp.js";
|
|
17
17
|
import {
|
|
18
18
|
initial2,
|
|
19
19
|
preview3
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./permission-kqx1b4hy.js";
|
|
21
21
|
import {
|
|
22
22
|
compatible2,
|
|
23
23
|
isCheckpoint2,
|
|
24
24
|
validate2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./permission-yrcj3v3g.js";
|
|
26
26
|
import {
|
|
27
27
|
__export
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./permission-9rqn6x4v.js";
|
|
29
29
|
|
|
30
30
|
// src/session/history.ts
|
|
31
31
|
var exports_history = {};
|
|
@@ -35,7 +35,7 @@ __export(exports_history, {
|
|
|
35
35
|
entriesForRunner: () => entriesForRunner2,
|
|
36
36
|
firstUserMessage: () => firstUserMessage2,
|
|
37
37
|
latestCompaction: () => latestCompaction2,
|
|
38
|
-
load: () =>
|
|
38
|
+
load: () => load5,
|
|
39
39
|
preview: () => preview2
|
|
40
40
|
});
|
|
41
41
|
import { and, asc, desc, eq, gte, or, sql } from "drizzle-orm";
|
|
@@ -56,7 +56,7 @@ var messageEntries = Effect.fnUntraced(function* (db, sessionID, boundary) {
|
|
|
56
56
|
const native = entries.findLast((entry) => isCheckpoint2(entry.message));
|
|
57
57
|
return entries.filter((entry) => !(entry.message.type === "system" && native && entry.seq < native.seq) && replayable(entry.message, boundary));
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var load5 = Effect.fn("SessionHistory.load")(function* (db, sessionID, boundary) {
|
|
60
60
|
return (yield* messageEntries(db, sessionID, boundary)).map((entry) => entry.message);
|
|
61
61
|
});
|
|
62
62
|
var entriesForRunner2 = Effect.fn("SessionHistory.entriesForRunner")(function* (db, sessionID, instructions, boundary) {
|
|
@@ -92,4 +92,4 @@ var firstUserMessage2 = Effect.fn("SessionHistory.firstUserMessage")(function* (
|
|
|
92
92
|
return message?.type === "user" ? message : undefined;
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
-
export { latestCompaction2, decodeMessageRow2,
|
|
95
|
+
export { latestCompaction2, decodeMessageRow2, load5, entriesForRunner2, preview2, firstUserMessage2, exports_history };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./permission-rdw6cm16.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./permission-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/image.ts
|
|
9
9
|
var exports_image2 = {};
|
|
@@ -11,9 +11,9 @@ __export(exports_image2, {
|
|
|
11
11
|
DecodeError: () => DecodeError2,
|
|
12
12
|
Image: () => exports_image2,
|
|
13
13
|
ResizerUnavailableError: () => ResizerUnavailableError2,
|
|
14
|
-
Service: () =>
|
|
14
|
+
Service: () => Service49,
|
|
15
15
|
SizeError: () => SizeError2,
|
|
16
|
-
node: () =>
|
|
16
|
+
node: () => node51
|
|
17
17
|
});
|
|
18
18
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
19
19
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -42,9 +42,9 @@ class SizeError2 extends Schema.TaggedError()("Image.SizeError", {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
class
|
|
45
|
+
class Service49 extends Context.Service()("@opencode/Image") {
|
|
46
46
|
}
|
|
47
|
-
var layer = Layer.effect(
|
|
47
|
+
var layer = Layer.effect(Service49, Effect.gen(function* () {
|
|
48
48
|
const state = create3({
|
|
49
49
|
name: "image",
|
|
50
50
|
initial: () => ({
|
|
@@ -74,8 +74,8 @@ var layer = Layer.effect(Service53, Effect.gen(function* () {
|
|
|
74
74
|
const normalize = yield* loadAdapter;
|
|
75
75
|
return yield* normalize(resource, content, state.get());
|
|
76
76
|
});
|
|
77
|
-
return
|
|
77
|
+
return Service49.of({ transform: state.transform, reload: state.reload, normalize });
|
|
78
78
|
}));
|
|
79
|
-
var
|
|
79
|
+
var node51 = makeLocationNode({ service: Service49, layer, deps: [] });
|
|
80
80
|
|
|
81
|
-
export { ResizerUnavailableError2, DecodeError2, SizeError2,
|
|
81
|
+
export { ResizerUnavailableError2, DecodeError2, SizeError2, Service49, node51, exports_image2 };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./permission-ms78wxrz.js";
|
|
5
5
|
import {
|
|
6
6
|
EventSequenceTable2,
|
|
7
7
|
EventTable2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./permission-2710q6r3.js";
|
|
9
9
|
import {
|
|
10
10
|
makeUnsafe2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./permission-y71avatq.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./permission-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/bus.ts
|
|
17
17
|
var exports_bus = {};
|
|
18
18
|
__export(exports_bus, {
|
|
19
19
|
Bus: () => exports_bus,
|
|
20
20
|
InvalidDurableEventError: () => InvalidDurableEventError2,
|
|
21
|
-
Service: () =>
|
|
21
|
+
Service: () => Service84,
|
|
22
22
|
configured: () => configured12,
|
|
23
23
|
durable: () => durable2,
|
|
24
24
|
ephemeral: () => ephemeral2,
|
|
25
25
|
isSynced: () => isSynced2,
|
|
26
26
|
latestSequence: () => latestSequence2,
|
|
27
|
-
node: () =>
|
|
27
|
+
node: () => node88,
|
|
28
28
|
reserveSequence: () => reserveSequence2,
|
|
29
29
|
versionedType: () => versionedType2
|
|
30
30
|
});
|
|
@@ -76,13 +76,13 @@ var ephemeral2 = Event.ephemeral;
|
|
|
76
76
|
var isSynced2 = (item) => item.type === "log.synced";
|
|
77
77
|
var isDefinition = (input) => !Array.isArray(input);
|
|
78
78
|
|
|
79
|
-
class
|
|
79
|
+
class Service84 extends Context.Service()("@opencode/Bus") {
|
|
80
80
|
}
|
|
81
81
|
function configured12(options) {
|
|
82
82
|
return makeGlobalNode({
|
|
83
|
-
service:
|
|
83
|
+
service: Service84,
|
|
84
84
|
deps: [node89],
|
|
85
|
-
layer: Layer.effect(
|
|
85
|
+
layer: Layer.effect(Service84, Effect.gen(function* () {
|
|
86
86
|
const { Location } = yield* Effect.promise(() => import("../location.js"));
|
|
87
87
|
const { SessionTable } = yield* Effect.promise(() => import("../session/sql.js"));
|
|
88
88
|
const pubsub = {
|
|
@@ -525,7 +525,7 @@ function configured12(options) {
|
|
|
525
525
|
list.push((event) => projector(event));
|
|
526
526
|
projectors.set(key, list);
|
|
527
527
|
});
|
|
528
|
-
return
|
|
528
|
+
return Service84.of({
|
|
529
529
|
publish,
|
|
530
530
|
publishAll,
|
|
531
531
|
subscribe,
|
|
@@ -539,6 +539,6 @@ function configured12(options) {
|
|
|
539
539
|
}))
|
|
540
540
|
});
|
|
541
541
|
}
|
|
542
|
-
var
|
|
542
|
+
var node88 = configured12();
|
|
543
543
|
|
|
544
|
-
export { latestSequence2, reserveSequence2, InvalidDurableEventError2, versionedType2, durable2, ephemeral2, isSynced2,
|
|
544
|
+
export { latestSequence2, reserveSequence2, InvalidDurableEventError2, versionedType2, durable2, ephemeral2, isSynced2, Service84, configured12, node88, exports_bus };
|
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./permission-ms78wxrz.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service84
|
|
6
|
+
} from "./permission-bvddf8vf.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service46
|
|
9
|
+
} from "./permission-909p1r3q.js";
|
|
10
10
|
import {
|
|
11
11
|
userNotification2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./permission-vzs5sf6e.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionMessage2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./permission-gftt206x.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
NotFoundError9,
|
|
18
18
|
PromptConflictError2,
|
|
19
19
|
SyntheticConflictError2,
|
|
20
20
|
CompactionConflictError2,
|
|
21
21
|
BusyError2,
|
|
22
22
|
InboxConflictError2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./permission-j8s9ab9g.js";
|
|
24
24
|
import {
|
|
25
25
|
SessionEvent2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./permission-ec1grn59.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./
|
|
28
|
+
Service66
|
|
29
|
+
} from "./permission-6kbd2zbs.js";
|
|
30
30
|
import {
|
|
31
31
|
Delivery2,
|
|
32
32
|
SyntheticPayload2,
|
|
33
|
-
|
|
34
|
-
} from "./
|
|
33
|
+
Service44
|
|
34
|
+
} from "./permission-xgs0xwn0.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./
|
|
36
|
+
Service42
|
|
37
|
+
} from "./permission-fm34v9xh.js";
|
|
38
38
|
import {
|
|
39
39
|
prepare2
|
|
40
|
-
} from "./
|
|
40
|
+
} from "./permission-nz6nrzam.js";
|
|
41
41
|
import {
|
|
42
42
|
stage2,
|
|
43
43
|
clear2,
|
|
44
44
|
commit2
|
|
45
|
-
} from "./
|
|
45
|
+
} from "./permission-wg6qbvzk.js";
|
|
46
46
|
import {
|
|
47
47
|
start2
|
|
48
|
-
} from "./
|
|
48
|
+
} from "./permission-1qvp4azq.js";
|
|
49
49
|
import {
|
|
50
50
|
get4
|
|
51
|
-
} from "./
|
|
51
|
+
} from "./permission-spt5yz3s.js";
|
|
52
52
|
import {
|
|
53
53
|
__export
|
|
54
|
-
} from "./
|
|
54
|
+
} from "./permission-9rqn6x4v.js";
|
|
55
55
|
|
|
56
56
|
// src/session/session.ts
|
|
57
57
|
var exports_session2 = {};
|
|
@@ -63,18 +63,18 @@ import { DateTime, Effect, Fiber, Scope } from "effect";
|
|
|
63
63
|
import { Event } from "@opencode/schema/event";
|
|
64
64
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
65
65
|
var make13 = Effect.fn("Session.make")(function* () {
|
|
66
|
-
const bus = yield*
|
|
66
|
+
const bus = yield* Service84;
|
|
67
67
|
const database = yield* Service85;
|
|
68
|
-
const store = yield*
|
|
69
|
-
const instances = yield*
|
|
70
|
-
const execution = yield*
|
|
71
|
-
const admission = yield*
|
|
68
|
+
const store = yield* Service66;
|
|
69
|
+
const instances = yield* Service46;
|
|
70
|
+
const execution = yield* Service42;
|
|
71
|
+
const admission = yield* Service44;
|
|
72
72
|
const fs = yield* FSUtil.Service;
|
|
73
73
|
const scope = yield* Scope.Scope;
|
|
74
74
|
const get = Effect.fn("Session.get")(function* (sessionID) {
|
|
75
75
|
const session = yield* store.get(sessionID);
|
|
76
76
|
if (!session)
|
|
77
|
-
return yield* new
|
|
77
|
+
return yield* new NotFoundError9({ sessionID });
|
|
78
78
|
return session;
|
|
79
79
|
});
|
|
80
80
|
const message = Effect.fn("Session.message")(function* (sessionID, messageID) {
|
|
@@ -135,7 +135,7 @@ var make13 = Effect.fn("Session.make")(function* () {
|
|
|
135
135
|
});
|
|
136
136
|
if (existing)
|
|
137
137
|
return existing;
|
|
138
|
-
const item = yield* restore(prepare2({ session, messageID, input }).pipe(Effect.provideService(
|
|
138
|
+
const item = yield* restore(prepare2({ session, messageID, input }).pipe(Effect.provideService(Service46, instances), Effect.provideService(FSUtil.Service, fs)));
|
|
139
139
|
if (session.revert)
|
|
140
140
|
yield* commit2(bus, session);
|
|
141
141
|
return yield* admission.admit({
|
|
@@ -151,7 +151,7 @@ var make13 = Effect.fn("Session.make")(function* () {
|
|
|
151
151
|
const shell = Effect.fn("Session.shell")(function* (sessionID, input) {
|
|
152
152
|
const session = yield* get(sessionID);
|
|
153
153
|
const running = yield* Effect.gen(function* () {
|
|
154
|
-
const started = yield* start2({ session, command: input.command }).pipe(Effect.provideService(
|
|
154
|
+
const started = yield* start2({ session, command: input.command }).pipe(Effect.provideService(Service46, instances), Effect.tapError((error) => synthetic(sessionID, {
|
|
155
155
|
text: `User shell command failed to start:
|
|
156
156
|
${input.command}
|
|
157
157
|
|
|
@@ -180,7 +180,7 @@ ${error.message}`,
|
|
|
180
180
|
});
|
|
181
181
|
const skill = Effect.fn("Session.skill")(function* (sessionID, input) {
|
|
182
182
|
const session = yield* get(sessionID);
|
|
183
|
-
const skill = yield* get4({ session, skill: input.skill }).pipe(Effect.provideService(
|
|
183
|
+
const skill = yield* get4({ session, skill: input.skill }).pipe(Effect.provideService(Service46, instances));
|
|
184
184
|
yield* bus.publish(SessionEvent2.Skill.Activated, {
|
|
185
185
|
sessionID,
|
|
186
186
|
id: skill.id,
|
|
@@ -237,13 +237,13 @@ ${error.message}`,
|
|
|
237
237
|
const session = yield* get(sessionID);
|
|
238
238
|
if (yield* execution.isActive(sessionID))
|
|
239
239
|
return yield* new BusyError2({ sessionID });
|
|
240
|
-
return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(
|
|
240
|
+
return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(Service46, instances), Effect.provideService(Service85, database), Effect.provideService(Service84, bus));
|
|
241
241
|
});
|
|
242
242
|
const clear = Effect.fn("Session.revert.clear")(function* (sessionID) {
|
|
243
243
|
const session = yield* get(sessionID);
|
|
244
244
|
if (yield* execution.isActive(sessionID))
|
|
245
245
|
return yield* new BusyError2({ sessionID });
|
|
246
|
-
yield* clear2(session).pipe(Effect.provideService(
|
|
246
|
+
yield* clear2(session).pipe(Effect.provideService(Service46, instances), Effect.provideService(Service84, bus));
|
|
247
247
|
return yield* execution.wake(sessionID);
|
|
248
248
|
});
|
|
249
249
|
const commit = Effect.fn("Session.revert.commit")(function* (sessionID) {
|