@opencode/core 0.0.0-dev-170 → 0.0.0-dev-176
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 +97 -97
- package/dist/aisdk.js +103 -103
- package/dist/app.js +9 -9
- package/dist/bus.js +81 -81
- package/dist/chunks/{project-maw15393.js → persistent-pty-00htyqr9.js} +13 -13
- package/dist/chunks/{project-034tev2y.js → persistent-pty-034tev2y.js} +2 -2
- package/dist/chunks/{project-3j1m3tq4.js → persistent-pty-09bv4atg.js} +5 -5
- package/dist/chunks/{project-zgd8t41s.js → persistent-pty-0anyt1n6.js} +9 -9
- package/dist/chunks/{project-jen2k315.js → persistent-pty-0garbbmq.js} +31 -31
- package/dist/chunks/{project-14gt304f.js → persistent-pty-0mwtxpwv.js} +25 -25
- package/dist/chunks/{project-ft3m1rtv.js → persistent-pty-0v98g2dp.js} +5 -5
- package/dist/chunks/{project-tzyd7gqa.js → persistent-pty-0w2jttgf.js} +2 -2
- package/dist/chunks/{project-y1325wkv.js → persistent-pty-0ya4kcpa.js} +14 -14
- package/dist/chunks/{project-1ep2p91f.js → persistent-pty-1ep2p91f.js} +2 -2
- package/dist/chunks/{project-xd934wrq.js → persistent-pty-1evzqt9k.js} +9 -9
- package/dist/chunks/{project-fjma1jv2.js → persistent-pty-1fr6zs4m.js} +30 -30
- package/dist/chunks/{project-88vg190z.js → persistent-pty-1jsvn0r5.js} +6 -6
- package/dist/chunks/{project-1x2knyw4.js → persistent-pty-1x2knyw4.js} +1 -1
- package/dist/chunks/{project-5qc37f80.js → persistent-pty-1ynb6ezc.js} +16 -16
- package/dist/chunks/{project-204s3925.js → persistent-pty-204s3925.js} +1 -1
- package/dist/chunks/{project-9thcrcbn.js → persistent-pty-24bdjav6.js} +29 -29
- package/dist/chunks/{project-a1meba53.js → persistent-pty-2fe6144r.js} +27 -27
- package/dist/chunks/{project-nhdw7njq.js → persistent-pty-2s4hqds4.js} +22 -22
- package/dist/chunks/{project-2zp5a6yg.js → persistent-pty-2zp5a6yg.js} +1 -1
- package/dist/chunks/{project-pnwsrq7c.js → persistent-pty-31avdb49.js} +8 -8
- package/dist/chunks/{project-f6x4r6gn.js → persistent-pty-32qv0r55.js} +4 -4
- package/dist/chunks/{project-cfcfv7cp.js → persistent-pty-38d21fdm.js} +21 -21
- package/dist/chunks/{project-2vrz8qrs.js → persistent-pty-3h757q1d.js} +8 -8
- package/dist/chunks/{project-3hepkmqq.js → persistent-pty-3hepkmqq.js} +1 -1
- package/dist/chunks/{project-3nnrz6f6.js → persistent-pty-3nnrz6f6.js} +1 -1
- package/dist/chunks/{project-c13q7adm.js → persistent-pty-3rkfx9k9.js} +23 -23
- package/dist/chunks/{project-qqg9c0kv.js → persistent-pty-3ryz99p0.js} +4 -4
- package/dist/chunks/{project-e46kqp3e.js → persistent-pty-41qk7kz0.js} +8 -8
- package/dist/chunks/{project-s3s9hs0c.js → persistent-pty-43d5xc6d.js} +19 -19
- package/dist/chunks/{project-bn5mm526.js → persistent-pty-49xvkvhm.js} +3 -3
- package/dist/chunks/{project-rx76597h.js → persistent-pty-4c0sy8z7.js} +27 -27
- package/dist/chunks/{project-r96ere88.js → persistent-pty-4pw98qd4.js} +4 -4
- package/dist/chunks/{project-4pyp9zr9.js → persistent-pty-4pyp9zr9.js} +1 -1
- package/dist/chunks/{project-19311dth.js → persistent-pty-4qv6rmbn.js} +17 -17
- package/dist/chunks/{project-4v008n1t.js → persistent-pty-4v008n1t.js} +1 -1
- package/dist/chunks/{project-aym7h9kd.js → persistent-pty-4wj04rfq.js} +36 -36
- package/dist/chunks/{project-8xv62g9a.js → persistent-pty-50fdsjg8.js} +21 -21
- package/dist/chunks/{project-zx6h37zb.js → persistent-pty-519tq28h.js} +17 -17
- package/dist/chunks/{project-94pnpden.js → persistent-pty-52a9j804.js} +72 -72
- package/dist/chunks/{project-rnvvyp42.js → persistent-pty-53bv7djz.js} +6 -6
- package/dist/chunks/{project-ktsdcenb.js → persistent-pty-56fkkzwp.js} +16 -16
- package/dist/chunks/{project-hrn2e2cq.js → persistent-pty-58fxbgyk.js} +7 -7
- package/dist/chunks/{project-5m9w47nd.js → persistent-pty-5m9w47nd.js} +1 -1
- package/dist/chunks/{project-me9p9d4t.js → persistent-pty-5qtr8rjc.js} +91 -91
- package/dist/chunks/{project-r8t391st.js → persistent-pty-5spjnxae.js} +29 -29
- package/dist/chunks/{project-d73nr425.js → persistent-pty-5y682njc.js} +38 -38
- package/dist/chunks/{project-fzpw41ny.js → persistent-pty-5yh47y05.js} +22 -22
- package/dist/chunks/{project-rrad2nt9.js → persistent-pty-61ennm6n.js} +4 -4
- package/dist/chunks/{project-cj1qh6za.js → persistent-pty-633sykgz.js} +36 -36
- package/dist/chunks/{project-wzwsv8q3.js → persistent-pty-67avc1k8.js} +5 -5
- package/dist/chunks/{project-7xm26dej.js → persistent-pty-6azgr7ze.js} +51 -51
- package/dist/chunks/{project-6esdw8yj.js → persistent-pty-6esdw8yj.js} +1 -1
- package/dist/chunks/{project-sd52sx5g.js → persistent-pty-6hjagsjn.js} +4 -4
- package/dist/chunks/{project-gzx9tr3x.js → persistent-pty-6rqz0akc.js} +32 -32
- package/dist/chunks/{project-gas2q22w.js → persistent-pty-6sbnn1cw.js} +9 -9
- package/dist/chunks/{project-3kdbrncp.js → persistent-pty-6xqtcmxs.js} +5 -5
- package/dist/chunks/{project-124q93e5.js → persistent-pty-6xxhtnvb.js} +28 -28
- package/dist/chunks/{project-h1pe7txv.js → persistent-pty-72amzxyx.js} +3 -3
- package/dist/chunks/{project-qckvhxzw.js → persistent-pty-7655k14p.js} +11 -11
- package/dist/chunks/{project-76cb1hcw.js → persistent-pty-76cb1hcw.js} +1 -1
- package/dist/chunks/{project-a31zznv1.js → persistent-pty-7aszcnrw.js} +14 -14
- package/dist/chunks/{project-7bmhse3q.js → persistent-pty-7bmhse3q.js} +1 -1
- package/dist/chunks/{project-db8965yk.js → persistent-pty-7c82yqbx.js} +27 -27
- package/dist/chunks/persistent-pty-7h6zwn4y.js +511 -0
- package/dist/chunks/{project-k6kbygd0.js → persistent-pty-7j9wt8g8.js} +5 -5
- package/dist/chunks/{project-txdrszf7.js → persistent-pty-7kjqz9vx.js} +5 -5
- package/dist/chunks/{project-kzwnk51j.js → persistent-pty-7ky5q9y1.js} +32 -32
- package/dist/chunks/{project-heb8hctq.js → persistent-pty-7nnxdazv.js} +4 -4
- package/dist/chunks/{project-s30exhfx.js → persistent-pty-7r7rb3ck.js} +12 -12
- package/dist/chunks/{project-cmgxfm60.js → persistent-pty-7vktkwjq.js} +12 -12
- package/dist/chunks/{project-7w2ypzdf.js → persistent-pty-7w2ypzdf.js} +1 -1
- package/dist/chunks/{project-gyk73bm7.js → persistent-pty-7w4mdq9h.js} +12 -12
- package/dist/chunks/{project-mjncwgp7.js → persistent-pty-7wmpehws.js} +15 -15
- package/dist/chunks/{project-9h4962kz.js → persistent-pty-7wpj9r4n.js} +14 -14
- package/dist/chunks/{project-nt2tnka6.js → persistent-pty-7xcxnnhw.js} +13 -13
- package/dist/chunks/{project-kdpv2zf1.js → persistent-pty-80erdhxq.js} +34 -34
- package/dist/chunks/{project-adqpdtcv.js → persistent-pty-8hn4pygh.js} +28 -28
- package/dist/chunks/{project-8jztxfpf.js → persistent-pty-8jztxfpf.js} +1 -1
- package/dist/chunks/{project-fghe2ptw.js → persistent-pty-8r65fy8w.js} +20 -20
- package/dist/chunks/{project-8wtp7s3z.js → persistent-pty-8wtp7s3z.js} +1 -1
- package/dist/chunks/{project-90zstvax.js → persistent-pty-90zstvax.js} +1 -1
- package/dist/chunks/{project-wr1az2wc.js → persistent-pty-9370xdb0.js} +20 -20
- package/dist/chunks/{project-f4h8jhts.js → persistent-pty-95jfhm1f.js} +47 -47
- package/dist/chunks/{project-qfdapvtz.js → persistent-pty-9ep0cc8m.js} +54 -54
- package/dist/chunks/{project-gdegh7ym.js → persistent-pty-9j54w4dz.js} +48 -48
- package/dist/chunks/{project-pcfd06vh.js → persistent-pty-9n2g1sn7.js} +20 -20
- package/dist/chunks/{project-eq7epvew.js → persistent-pty-9s067py2.js} +3 -3
- package/dist/chunks/{project-5ebc4mtx.js → persistent-pty-9y7cq3y4.js} +10 -10
- package/dist/chunks/{project-a9q6fvpe.js → persistent-pty-a9q6fvpe.js} +3 -3
- package/dist/chunks/{project-t7bjgsbt.js → persistent-pty-aqpt7qn5.js} +11 -11
- package/dist/chunks/{project-mfv1rfcp.js → persistent-pty-atcw9je4.js} +9 -9
- package/dist/chunks/{project-1g1hpfaj.js → persistent-pty-atr4tm0y.js} +86 -86
- package/dist/chunks/{project-ayjs7tqn.js → persistent-pty-ayjs7tqn.js} +2 -2
- package/dist/chunks/{project-b6vsg801.js → persistent-pty-b6vsg801.js} +2 -2
- package/dist/chunks/{project-fvtargsj.js → persistent-pty-bcvtcraz.js} +1 -1
- package/dist/chunks/{project-q1nnka74.js → persistent-pty-bm4gstpq.js} +8 -8
- package/dist/chunks/{project-6qd66m37.js → persistent-pty-bn32yz83.js} +24 -24
- package/dist/chunks/{project-bstexjd6.js → persistent-pty-bstexjd6.js} +1 -1
- package/dist/chunks/{project-2fa41nq0.js → persistent-pty-bwqqmtwx.js} +24 -24
- package/dist/chunks/{project-nva4mbph.js → persistent-pty-c34ang25.js} +21 -21
- package/dist/chunks/{project-sgg5jrrm.js → persistent-pty-c4wqcyac.js} +32 -32
- package/dist/chunks/{project-ahzfx2tk.js → persistent-pty-c84tv7mg.js} +4 -4
- package/dist/chunks/{project-z3cpcmma.js → persistent-pty-cd1wa7pc.js} +3 -3
- package/dist/chunks/{project-zx69eakp.js → persistent-pty-cg8wvfan.js} +15 -15
- package/dist/chunks/{project-3gezxapr.js → persistent-pty-cjaw03wv.js} +20 -20
- package/dist/chunks/{project-gchbbwt8.js → persistent-pty-cn77934z.js} +11 -11
- package/dist/chunks/{project-h316rdv7.js → persistent-pty-cpyv68vg.js} +38 -38
- package/dist/chunks/{project-vvcp0tk0.js → persistent-pty-cr8fx06x.js} +19 -19
- package/dist/chunks/{project-7nrp2fgb.js → persistent-pty-crvjh2nq.js} +6 -6
- package/dist/chunks/{project-cwrgdav8.js → persistent-pty-cwrgdav8.js} +2 -2
- package/dist/chunks/{project-d2887f8n.js → persistent-pty-d2887f8n.js} +1 -1
- package/dist/chunks/{project-d4v9tmah.js → persistent-pty-d4v9tmah.js} +2 -2
- package/dist/chunks/{project-x040dv0w.js → persistent-pty-d54nae6v.js} +20 -20
- package/dist/chunks/{project-9yrnwmme.js → persistent-pty-dbb763wq.js} +8 -8
- package/dist/chunks/{project-zq48vbqh.js → persistent-pty-ddad440e.js} +27 -27
- package/dist/chunks/{project-xtbg8a45.js → persistent-pty-ddc2cb7k.js} +26 -26
- package/dist/chunks/{project-160yv0cs.js → persistent-pty-ddvn7d3w.js} +8 -8
- package/dist/chunks/{project-wqtd6dn9.js → persistent-pty-df05jr30.js} +6 -6
- package/dist/chunks/{project-3vt72wg3.js → persistent-pty-dfagftgj.js} +29 -29
- package/dist/chunks/{project-bsezhyhb.js → persistent-pty-dncqwfyx.js} +20 -20
- package/dist/chunks/{project-7sdtxe0n.js → persistent-pty-drvbhkez.js} +4 -4
- package/dist/chunks/{project-dt77769w.js → persistent-pty-dt77769w.js} +1 -1
- package/dist/chunks/{project-0k0cpw4p.js → persistent-pty-dyph5nm8.js} +27 -27
- package/dist/chunks/{project-38ywgb00.js → persistent-pty-e6awym77.js} +21 -21
- package/dist/chunks/{project-e834z07m.js → persistent-pty-e834z07m.js} +1 -1
- package/dist/chunks/{project-psr6t8k9.js → persistent-pty-eke95etz.js} +41 -41
- package/dist/chunks/{project-xf5kfeqa.js → persistent-pty-epv0aws2.js} +18 -18
- package/dist/chunks/{project-z2vzs3fj.js → persistent-pty-ez0bd5c5.js} +27 -27
- package/dist/chunks/{project-ayxp4qd3.js → persistent-pty-f2k3g6xd.js} +195 -195
- package/dist/chunks/{project-fffv3p7h.js → persistent-pty-fffv3p7h.js} +1 -1
- package/dist/chunks/{project-prq7xxp2.js → persistent-pty-fg9p65nk.js} +6 -6
- package/dist/chunks/{project-2tprm9m6.js → persistent-pty-fv3rjegd.js} +49 -49
- package/dist/chunks/{project-1b0ss9v1.js → persistent-pty-fvtwqean.js} +34 -33
- package/dist/chunks/{project-e717qx8y.js → persistent-pty-g0tp74by.js} +23 -23
- package/dist/chunks/{project-zhq6s34y.js → persistent-pty-g7fyn0m6.js} +5 -5
- package/dist/chunks/{project-chy3akzh.js → persistent-pty-gbc4psnj.js} +15 -15
- package/dist/chunks/{project-8x9y3wj0.js → persistent-pty-gcjdgkn2.js} +9 -9
- package/dist/chunks/{project-sq958vhs.js → persistent-pty-gdpq6bd8.js} +22 -22
- package/dist/chunks/{project-gg8p9cgs.js → persistent-pty-gg8p9cgs.js} +3 -3
- package/dist/chunks/{project-w11ey1wa.js → persistent-pty-gp067yzn.js} +11 -11
- package/dist/chunks/{project-4mw87j2f.js → persistent-pty-gqng3fq0.js} +5 -5
- package/dist/chunks/{project-2tjq87z5.js → persistent-pty-gs5kg9b2.js} +16 -16
- package/dist/chunks/{project-3aaxk4qf.js → persistent-pty-h0n6thsx.js} +2 -2
- package/dist/chunks/{project-d4w7jtq9.js → persistent-pty-h6fv7vft.js} +15 -15
- package/dist/chunks/{project-34ar8crh.js → persistent-pty-h6t0znmf.js} +9 -9
- package/dist/chunks/{project-p2cjbm1q.js → persistent-pty-h8kx6a24.js} +11 -11
- package/dist/chunks/{project-3qevjexk.js → persistent-pty-h9ytefs8.js} +5 -5
- package/dist/chunks/{project-9562mf0m.js → persistent-pty-hdfrs5mg.js} +9 -9
- package/dist/chunks/{project-9p4gea0z.js → persistent-pty-heamr9gy.js} +3 -3
- package/dist/chunks/{project-xnh55p1t.js → persistent-pty-hfgk9wzg.js} +7 -7
- package/dist/chunks/{project-hpg1pkwy.js → persistent-pty-hpg1pkwy.js} +1 -1
- package/dist/chunks/{project-jfb3emas.js → persistent-pty-hrxhk37r.js} +55 -55
- package/dist/chunks/{project-459w24x0.js → persistent-pty-htf1zbz3.js} +13 -13
- package/dist/chunks/{project-ey4zchg3.js → persistent-pty-jdgjvsvw.js} +28 -28
- package/dist/chunks/{project-wcgrwyye.js → persistent-pty-jeggvkmv.js} +11 -11
- package/dist/chunks/{project-jfaecv01.js → persistent-pty-jfaecv01.js} +1 -1
- package/dist/chunks/{project-80j4qbe9.js → persistent-pty-jj147ft1.js} +17 -17
- package/dist/chunks/{project-jtnps1zs.js → persistent-pty-jtnps1zs.js} +2 -2
- package/dist/chunks/{project-9wzjb77v.js → persistent-pty-jv541gt1.js} +5 -5
- package/dist/chunks/{project-4e9277vr.js → persistent-pty-k567f45b.js} +19 -19
- package/dist/chunks/{project-k814nvkf.js → persistent-pty-k814nvkf.js} +1 -1
- package/dist/chunks/persistent-pty-kb564s6s.js +257 -0
- package/dist/chunks/{project-rcb3tjxw.js → persistent-pty-kb8fswp1.js} +4 -4
- package/dist/chunks/{project-dtqc2fsd.js → persistent-pty-kep7f5cc.js} +14 -14
- package/dist/chunks/{project-jv5e37k4.js → persistent-pty-kg1ma0kd.js} +47 -47
- package/dist/chunks/{project-zx29snpc.js → persistent-pty-kjgnzevm.js} +9 -9
- package/dist/chunks/{project-3v4n5zps.js → persistent-pty-kpprecar.js} +31 -31
- package/dist/chunks/{project-kt3bjfbg.js → persistent-pty-kt3bjfbg.js} +1 -1
- package/dist/chunks/{project-eppkswgj.js → persistent-pty-kvvk99b7.js} +13 -13
- package/dist/chunks/{project-sxz3hzr2.js → persistent-pty-ky4b16es.js} +11 -11
- package/dist/chunks/{project-ey3djwrh.js → persistent-pty-m0kj7b7a.js} +2 -2
- package/dist/chunks/{project-m1714858.js → persistent-pty-m1714858.js} +1 -1
- package/dist/chunks/persistent-pty-m2b5v9hb.js +26 -0
- package/dist/chunks/{project-m9w0rfyh.js → persistent-pty-m9w0rfyh.js} +1 -1
- package/dist/chunks/{project-t4sgv1fk.js → persistent-pty-mk295dtd.js} +15 -15
- package/dist/chunks/{project-4f22kke0.js → persistent-pty-mnyz6jmh.js} +10 -10
- package/dist/chunks/{project-dmbhcq3k.js → persistent-pty-mp6ntmcp.js} +9 -9
- package/dist/chunks/{project-qdh34tk1.js → persistent-pty-mr182tfb.js} +5 -5
- package/dist/chunks/{project-k293y0h3.js → persistent-pty-mtq5g9x7.js} +5 -5
- package/dist/chunks/{project-38by4s4r.js → persistent-pty-mx5ntkq3.js} +22 -22
- package/dist/chunks/{project-tn22qbfv.js → persistent-pty-n0vyk18c.js} +21 -21
- package/dist/chunks/{project-b33ebngj.js → persistent-pty-n17h7ycd.js} +14 -14
- package/dist/chunks/{project-5h5p4jk8.js → persistent-pty-nad4mkqt.js} +8 -8
- package/dist/chunks/{project-nah043kf.js → persistent-pty-nah043kf.js} +1 -1
- package/dist/chunks/{project-62tathnt.js → persistent-pty-ngtazrm4.js} +24 -24
- package/dist/chunks/{project-1h6fjecm.js → persistent-pty-nkyj4cf1.js} +32 -32
- package/dist/chunks/{project-q5tw4zz6.js → persistent-pty-nng17e32.js} +38 -38
- package/dist/chunks/{project-cq02s23n.js → persistent-pty-npb1z062.js} +11 -11
- package/dist/chunks/{project-p015t6z3.js → persistent-pty-p015t6z3.js} +2 -2
- package/dist/chunks/{project-8drcqw0f.js → persistent-pty-p0knec42.js} +17 -17
- package/dist/chunks/{project-sjqk8nme.js → persistent-pty-p3t53mgr.js} +25 -25
- package/dist/chunks/{project-p7vhpwh8.js → persistent-pty-p7vhpwh8.js} +1 -1
- package/dist/chunks/{project-2pgc8tgc.js → persistent-pty-pa997763.js} +3 -3
- package/dist/chunks/{project-z016zt19.js → persistent-pty-pbbktnbz.js} +4 -4
- package/dist/chunks/{project-pknna89w.js → persistent-pty-pknna89w.js} +1 -1
- package/dist/chunks/{project-vq0wjetv.js → persistent-pty-pqnrqzxc.js} +9 -9
- package/dist/chunks/{project-3wezf27v.js → persistent-pty-pszedv3e.js} +9 -9
- package/dist/chunks/{project-qga7e6rc.js → persistent-pty-pyhph78g.js} +11 -11
- package/dist/chunks/{project-s6jhc88p.js → persistent-pty-pzrv7hbh.js} +12 -12
- package/dist/chunks/{project-q63cb7ap.js → persistent-pty-q63cb7ap.js} +3 -3
- package/dist/chunks/{project-nf3ytnjv.js → persistent-pty-q7agyjxx.js} +8 -8
- package/dist/chunks/{project-nx583b5g.js → persistent-pty-qb24xxd1.js} +13 -13
- package/dist/chunks/{project-71dc9dsf.js → persistent-pty-qdmaswkh.js} +21 -21
- package/dist/chunks/{project-05bsswg1.js → persistent-pty-qn4ber4v.js} +20 -20
- package/dist/chunks/{project-qp7r0hxv.js → persistent-pty-qp7r0hxv.js} +1 -1
- package/dist/chunks/{project-79n4cqja.js → persistent-pty-qpv0mvvz.js} +13 -13
- package/dist/chunks/{project-skp3ezgj.js → persistent-pty-qr2tsp5r.js} +20 -20
- package/dist/chunks/{project-h9k240yj.js → persistent-pty-qymz5vam.js} +45 -45
- package/dist/chunks/{project-r0yr0wbs.js → persistent-pty-r0yr0wbs.js} +1 -1
- package/dist/chunks/{project-7wmd0erc.js → persistent-pty-r3096bj9.js} +34 -34
- package/dist/chunks/{project-r542h3bh.js → persistent-pty-r542h3bh.js} +1 -1
- package/dist/chunks/{project-5fh1z4z1.js → persistent-pty-r8rdcxeh.js} +18 -18
- package/dist/chunks/{project-7dm987a9.js → persistent-pty-r8v4vvzq.js} +12 -12
- package/dist/chunks/{project-sq4s6wq1.js → persistent-pty-ra34yqmw.js} +6 -6
- package/dist/chunks/{project-rb9dy4dg.js → persistent-pty-rb9dy4dg.js} +1 -1
- package/dist/chunks/{project-rt5dr6hb.js → persistent-pty-rt5dr6hb.js} +1 -1
- package/dist/chunks/{project-dzj6a01f.js → persistent-pty-rzepvn2e.js} +43 -43
- package/dist/chunks/{project-wdt8vddk.js → persistent-pty-s0wxxy3w.js} +11 -11
- package/dist/chunks/{project-rnbc7s2k.js → persistent-pty-s1a2cwn2.js} +10 -10
- package/dist/chunks/{project-sa3fpqfw.js → persistent-pty-sa3fpqfw.js} +2 -2
- package/dist/chunks/{project-mnmgb4vy.js → persistent-pty-sa8kccs0.js} +19 -19
- package/dist/chunks/{project-r9mkamcg.js → persistent-pty-scntyf0x.js} +7 -7
- package/dist/chunks/{project-mba9snx8.js → persistent-pty-sjx7wecx.js} +9 -9
- package/dist/chunks/{project-sqjzf8x2.js → persistent-pty-sqjzf8x2.js} +1 -1
- package/dist/chunks/{project-fv82f688.js → persistent-pty-stbkav8k.js} +12 -12
- package/dist/chunks/{project-svcy3p9a.js → persistent-pty-svcy3p9a.js} +1 -1
- package/dist/chunks/{project-799g0xtq.js → persistent-pty-t20mvzrk.js} +33 -33
- package/dist/chunks/{project-tczq8hjw.js → persistent-pty-tczq8hjw.js} +1 -1
- package/dist/chunks/{project-hr2wbp44.js → persistent-pty-tkb7bqdy.js} +9 -9
- package/dist/chunks/{project-nzep71h9.js → persistent-pty-tmy26mxh.js} +35 -35
- package/dist/chunks/{project-twssxy5n.js → persistent-pty-twssxy5n.js} +2 -2
- package/dist/chunks/{project-86sj6v0r.js → persistent-pty-txsdra3m.js} +34 -34
- package/dist/chunks/{project-ds061g1g.js → persistent-pty-ty8kxeae.js} +35 -35
- package/dist/chunks/{project-9q8g9sv8.js → persistent-pty-v0t96s7a.js} +4 -4
- package/dist/chunks/{project-1tz71j9c.js → persistent-pty-v21mv7f7.js} +12 -12
- package/dist/chunks/{project-v2r1d0zg.js → persistent-pty-v2r1d0zg.js} +1 -1
- package/dist/chunks/{project-j2q3svc5.js → persistent-pty-v4t7rh87.js} +19 -19
- package/dist/chunks/{project-jbzdmrt6.js → persistent-pty-v8vavc5t.js} +37 -37
- package/dist/chunks/{project-hhcxg32b.js → persistent-pty-vcvnp0q3.js} +4 -4
- package/dist/chunks/{project-ewexpb9k.js → persistent-pty-ve45bn9x.js} +6 -6
- package/dist/chunks/{project-6mxrg4kx.js → persistent-pty-ve5h0m4q.js} +7 -7
- package/dist/chunks/{project-2ttzh2h6.js → persistent-pty-vm6x4cc6.js} +11 -11
- package/dist/chunks/{project-zg0jbn27.js → persistent-pty-vsqvcqta.js} +6 -6
- package/dist/chunks/{project-xfgzn115.js → persistent-pty-vxqjk0bx.js} +13 -13
- package/dist/chunks/{project-zs9j6ctn.js → persistent-pty-vzvqvrbr.js} +36 -36
- package/dist/chunks/{project-6jcsbcjf.js → persistent-pty-w15dafs9.js} +18 -18
- package/dist/chunks/{project-40za9wsf.js → persistent-pty-w2eysc6j.js} +9 -9
- package/dist/chunks/{project-w3wsvvr9.js → persistent-pty-w3wsvvr9.js} +1 -1
- package/dist/chunks/{project-kvhc1fwr.js → persistent-pty-wa71be01.js} +57 -57
- package/dist/chunks/{project-wakvkjy4.js → persistent-pty-wakvkjy4.js} +1 -1
- package/dist/chunks/{project-wby0kqsc.js → persistent-pty-wby0kqsc.js} +1 -1
- package/dist/chunks/{project-wd87259q.js → persistent-pty-wd87259q.js} +1 -1
- package/dist/chunks/{project-f6mm2amt.js → persistent-pty-wdnrbeqs.js} +6 -6
- package/dist/chunks/{project-602fj4e2.js → persistent-pty-wgn86zaw.js} +25 -25
- package/dist/chunks/{project-5w021j54.js → persistent-pty-whfmfgat.js} +4 -4
- package/dist/chunks/{project-0dbrkw6r.js → persistent-pty-whss3p2j.js} +21 -21
- package/dist/chunks/{project-wnhgecwx.js → persistent-pty-wnhgecwx.js} +1 -1
- package/dist/chunks/{project-wr3re1en.js → persistent-pty-wr3re1en.js} +1 -1
- package/dist/chunks/{project-w4kkwae7.js → persistent-pty-wxcgqqg8.js} +16 -16
- package/dist/chunks/{project-0g4awprx.js → persistent-pty-wzkv2sek.js} +4 -4
- package/dist/chunks/{project-w7tc5k17.js → persistent-pty-x25jfgjr.js} +25 -25
- package/dist/chunks/{project-dpcjrdrj.js → persistent-pty-xbcfztz3.js} +16 -16
- package/dist/chunks/{project-q3w0bdwb.js → persistent-pty-xc897g4n.js} +11 -11
- package/dist/chunks/{project-eh1k8bp1.js → persistent-pty-xeecq2r5.js} +5 -5
- package/dist/chunks/{project-psc6haxf.js → persistent-pty-xefsy4ps.js} +36 -36
- package/dist/chunks/{project-xt0z8zst.js → persistent-pty-xt0z8zst.js} +1 -1
- package/dist/chunks/{project-27sjz104.js → persistent-pty-y067tb9j.js} +4 -4
- package/dist/chunks/{project-6vq97qmv.js → persistent-pty-y906m0ew.js} +5 -5
- package/dist/chunks/{project-3vs2fbhh.js → persistent-pty-ya13x5xa.js} +18 -18
- package/dist/chunks/{project-yara3q77.js → persistent-pty-yara3q77.js} +2 -2
- package/dist/chunks/{project-yb20nhc3.js → persistent-pty-yb20nhc3.js} +1 -1
- package/dist/chunks/{project-6d5phvpe.js → persistent-pty-ybctve4h.js} +45 -45
- package/dist/chunks/{project-7hq1xj9b.js → persistent-pty-yc76cwjc.js} +12 -12
- package/dist/chunks/{project-hhwk9qya.js → persistent-pty-ygqxcxbg.js} +4 -4
- package/dist/chunks/{project-2mbjfaxd.js → persistent-pty-yqveydy6.js} +4 -4
- package/dist/chunks/persistent-pty-z355x5yr.js +18 -0
- package/dist/chunks/{project-z38nccrw.js → persistent-pty-z38nccrw.js} +1 -1
- package/dist/chunks/{project-aze2b8kp.js → persistent-pty-z4v0at7d.js} +32 -32
- package/dist/chunks/{project-dqz301c6.js → persistent-pty-z8hdzhhq.js} +16 -16
- package/dist/chunks/{project-7jvcwqbb.js → persistent-pty-z8r5vx31.js} +11 -11
- package/dist/chunks/{project-5epte933.js → persistent-pty-zb5gs1ba.js} +3 -3
- package/dist/chunks/{project-4vm9vmfx.js → persistent-pty-zd4mb3qc.js} +13 -13
- package/dist/chunks/{project-g65rdf98.js → persistent-pty-zf9grm2a.js} +35 -35
- package/dist/chunks/{project-hs34szv9.js → persistent-pty-zngxafys.js} +11 -11
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +89 -89
- package/dist/config/discovery.js +90 -90
- package/dist/config/integration.js +1 -1
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +107 -107
- package/dist/config/plugin/agent.js +123 -123
- package/dist/config/plugin/command.js +221 -221
- package/dist/config/plugin/compaction.js +162 -162
- package/dist/config/plugin/compatibility.js +142 -142
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +122 -122
- package/dist/config/plugin/image.js +121 -121
- package/dist/config/plugin/instruction.js +121 -121
- package/dist/config/plugin/location-watcher.js +123 -123
- package/dist/config/plugin/mcp.js +130 -130
- package/dist/config/plugin/policy.js +123 -123
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +123 -123
- package/dist/config/plugin/shell.js +121 -121
- package/dist/config/plugin/skill-file.js +138 -138
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +145 -145
- package/dist/config/plugin/snapshot.js +121 -121
- package/dist/config/plugin/source.js +124 -124
- package/dist/config/plugin/tool-output.js +122 -122
- package/dist/config/plugin/websearch.js +120 -120
- package/dist/config/plugin/worktree.js +123 -123
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +124 -124
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +89 -89
- package/dist/database/database.js +72 -72
- 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/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration.gen.js +55 -55
- package/dist/database/migration.js +57 -57
- 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 +100 -100
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +374 -374
- 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 +101 -101
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +101 -101
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +80 -80
- package/dist/file-access.js +148 -148
- package/dist/file-mutation.js +102 -102
- 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/file-watch.js +86 -86
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +234 -234
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +107 -107
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +112 -112
- package/dist/form.js +90 -90
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +95 -95
- package/dist/generate.js +117 -117
- package/dist/git.js +11 -11
- 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 +99 -99
- 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-normalize.js +1 -1
- package/dist/image/photon-worker.js +1 -1
- package/dist/image/photon.js +4 -4
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +368 -368
- package/dist/instruction-discovery.js +92 -92
- package/dist/instructions/builtins.js +95 -95
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +95 -95
- package/dist/job.js +84 -84
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +79 -79
- package/dist/location-activity.js +165 -165
- package/dist/location-lifecycle.js +142 -142
- package/dist/location-service-map.js +92 -92
- package/dist/location-services.js +365 -365
- package/dist/location.js +97 -97
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +99 -99
- package/dist/mcp/index.js +117 -117
- package/dist/mcp/instructions.js +166 -166
- package/dist/mcp/oauth.js +84 -84
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +98 -98
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -99
- package/dist/model-resolver.js +107 -107
- package/dist/model-retry.js +1 -1
- package/dist/model.js +108 -108
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +112 -112
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +88 -88
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +145 -145
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +96 -96
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +81 -81
- package/dist/plugin/agent.js +82 -82
- package/dist/plugin/command.js +110 -110
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +225 -225
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +338 -338
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +105 -105
- package/dist/plugin/module.js +121 -121
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +138 -138
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +98 -98
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +121 -121
- package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -118
- package/dist/plugin/provider/cloudflare-workers-ai.js +118 -118
- package/dist/plugin/provider/configured.js +117 -117
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +101 -101
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +103 -103
- package/dist/plugin/provider/gitlab.js +101 -101
- package/dist/plugin/provider/google-vertex.js +118 -118
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +84 -84
- package/dist/plugin/provider/lmstudio.js +130 -130
- package/dist/plugin/provider/local.js +127 -127
- package/dist/plugin/provider/modal.js +100 -100
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +130 -130
- package/dist/plugin/provider/openai-context-caps.js +98 -98
- package/dist/plugin/provider/openai.js +121 -121
- package/dist/plugin/provider/opencode.js +124 -124
- package/dist/plugin/provider/openrouter.js +99 -99
- package/dist/plugin/provider/poe.js +85 -85
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +99 -99
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +120 -120
- package/dist/plugin/provider/vllm.js +130 -130
- package/dist/plugin/provider/xai.js +99 -99
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +171 -171
- package/dist/plugin/sdk.js +82 -82
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +355 -355
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +94 -94
- package/dist/plugin/vcs/hg.js +94 -94
- package/dist/plugin/verbosity.js +101 -101
- package/dist/plugin/warming.js +119 -119
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- 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 +232 -232
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +98 -98
- package/dist/provider.js +107 -107
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +104 -104
- package/dist/reference/instructions.js +96 -96
- package/dist/reference.js +98 -98
- package/dist/repository-cache.js +88 -88
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +105 -105
- package/dist/rpc.js +94 -94
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/blob.js +120 -120
- package/dist/session/command.js +80 -80
- package/dist/session/compaction.js +164 -164
- package/dist/session/context.js +188 -188
- package/dist/session/diff.js +96 -96
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +231 -231
- package/dist/session/execution.js +152 -152
- package/dist/session/generate.js +190 -190
- package/dist/session/history.js +127 -127
- package/dist/session/inbox.js +134 -134
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +85 -85
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +132 -132
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +155 -155
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +156 -156
- package/dist/session/projector.js +134 -134
- package/dist/session/prompt.js +140 -140
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +130 -130
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +238 -238
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +108 -108
- package/dist/session/runner/publish-llm-event.js +141 -141
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +152 -152
- package/dist/session/runner/to-llm-message.js +128 -128
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +135 -135
- package/dist/session/skill.js +139 -139
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +79 -79
- package/dist/session/store.js +133 -133
- package/dist/session/stored.js +4 -4
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +215 -215
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +190 -190
- package/dist/session/to-session-error.js +140 -140
- package/dist/session/transfer.js +227 -227
- package/dist/session/usage.js +1 -1
- package/dist/session.js +225 -225
- 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 +137 -137
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +143 -143
- package/dist/skill.js +150 -150
- package/dist/snapshot.js +97 -97
- 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 +165 -165
- package/dist/tool/plugin/edit.js +156 -156
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +160 -160
- package/dist/tool/plugin/grep.js +158 -158
- package/dist/tool/plugin/mcp-resource.js +154 -154
- package/dist/tool/plugin/opencode.js +153 -153
- package/dist/tool/plugin/patch.js +158 -158
- package/dist/tool/plugin/question.js +136 -136
- package/dist/tool/plugin/read.js +161 -161
- package/dist/tool/plugin/shell.js +222 -222
- package/dist/tool/plugin/skill.js +145 -145
- package/dist/tool/plugin/subagent.js +226 -226
- package/dist/tool/plugin/todo.js +145 -145
- package/dist/tool/plugin/webfetch.js +147 -147
- package/dist/tool/plugin/websearch.js +145 -145
- package/dist/tool/plugin/write.js +158 -158
- package/dist/tool/read-filesystem.js +108 -108
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- package/dist/usage-limits.js +95 -95
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- 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 +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +100 -100
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +101 -101
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +95 -95
- package/dist/voice.js +96 -96
- package/dist/websearch.js +86 -86
- package/dist/wellknown/plugin.js +82 -82
- package/dist/wellknown.js +85 -85
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +88 -88
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +9 -9
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +97 -97
- package/dist/worktree.js +102 -102
- package/package.json +8 -8
- package/dist/chunks/project-2224t6nn.js +0 -257
- package/dist/chunks/project-d77dj7jw.js +0 -18
- package/dist/chunks/project-megfknn9.js +0 -26
- package/dist/chunks/project-n7e2n2r9.js +0 -511
- /package/dist/chunks/{project-0qkdqm5v.js → persistent-pty-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{project-0zkw76rk.js → persistent-pty-0zkw76rk.js} +0 -0
- /package/dist/chunks/{project-17cy0kzp.js → persistent-pty-17cy0kzp.js} +0 -0
- /package/dist/chunks/{project-1cnp2v09.js → persistent-pty-1cnp2v09.js} +0 -0
- /package/dist/chunks/{project-1jakw16s.js → persistent-pty-1jakw16s.js} +0 -0
- /package/dist/chunks/{project-24dcb14g.js → persistent-pty-24dcb14g.js} +0 -0
- /package/dist/chunks/{project-2710q6r3.js → persistent-pty-2710q6r3.js} +0 -0
- /package/dist/chunks/{project-2bv980vf.js → persistent-pty-2bv980vf.js} +0 -0
- /package/dist/chunks/{project-2c3vjs8z.js → persistent-pty-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{project-359p4xyc.js → persistent-pty-359p4xyc.js} +0 -0
- /package/dist/chunks/{project-3asan66x.js → persistent-pty-3asan66x.js} +0 -0
- /package/dist/chunks/{project-3v8g72cx.js → persistent-pty-3v8g72cx.js} +0 -0
- /package/dist/chunks/{project-3wcehsnq.js → persistent-pty-3wcehsnq.js} +0 -0
- /package/dist/chunks/{project-43n2bw4t.js → persistent-pty-43n2bw4t.js} +0 -0
- /package/dist/chunks/{project-4knz6hnm.js → persistent-pty-4knz6hnm.js} +0 -0
- /package/dist/chunks/{project-4m86bj6y.js → persistent-pty-4m86bj6y.js} +0 -0
- /package/dist/chunks/{project-4vcrnpx2.js → persistent-pty-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{project-4y7fprxs.js → persistent-pty-4y7fprxs.js} +0 -0
- /package/dist/chunks/{project-53557ph1.js → persistent-pty-53557ph1.js} +0 -0
- /package/dist/chunks/{project-550bvhaj.js → persistent-pty-550bvhaj.js} +0 -0
- /package/dist/chunks/{project-5w3e23ze.js → persistent-pty-5w3e23ze.js} +0 -0
- /package/dist/chunks/{project-6prwharc.js → persistent-pty-6prwharc.js} +0 -0
- /package/dist/chunks/{project-6q2bdcd1.js → persistent-pty-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{project-7akdwqpd.js → persistent-pty-7akdwqpd.js} +0 -0
- /package/dist/chunks/{project-7m9af43g.js → persistent-pty-7m9af43g.js} +0 -0
- /package/dist/chunks/{project-822emrt2.js → persistent-pty-822emrt2.js} +0 -0
- /package/dist/chunks/{project-84wd9syh.js → persistent-pty-84wd9syh.js} +0 -0
- /package/dist/chunks/{project-88xbtdfr.js → persistent-pty-88xbtdfr.js} +0 -0
- /package/dist/chunks/{project-8n3pysct.js → persistent-pty-8n3pysct.js} +0 -0
- /package/dist/chunks/{project-8wj87zfr.js → persistent-pty-8wj87zfr.js} +0 -0
- /package/dist/chunks/{project-9a4afbnw.js → persistent-pty-9a4afbnw.js} +0 -0
- /package/dist/chunks/{project-9rqn6x4v.js → persistent-pty-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{project-a058387c.js → persistent-pty-a058387c.js} +0 -0
- /package/dist/chunks/{project-a6k6eb26.js → persistent-pty-a6k6eb26.js} +0 -0
- /package/dist/chunks/{project-af5trqkr.js → persistent-pty-af5trqkr.js} +0 -0
- /package/dist/chunks/{project-afrmfg78.js → persistent-pty-afrmfg78.js} +0 -0
- /package/dist/chunks/{project-aqzs7mqg.js → persistent-pty-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{project-atq7p7m5.js → persistent-pty-atq7p7m5.js} +0 -0
- /package/dist/chunks/{project-beh6qq61.js → persistent-pty-beh6qq61.js} +0 -0
- /package/dist/chunks/{project-bkyjaxrp.js → persistent-pty-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{project-bmr6ed5q.js → persistent-pty-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{project-cf4snx6d.js → persistent-pty-cf4snx6d.js} +0 -0
- /package/dist/chunks/{project-cqv5kn06.js → persistent-pty-cqv5kn06.js} +0 -0
- /package/dist/chunks/{project-cvy3z8tj.js → persistent-pty-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{project-d9fn303g.js → persistent-pty-d9fn303g.js} +0 -0
- /package/dist/chunks/{project-d9jj8t3e.js → persistent-pty-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{project-dajrwvna.js → persistent-pty-dajrwvna.js} +0 -0
- /package/dist/chunks/{project-dap0rakb.js → persistent-pty-dap0rakb.js} +0 -0
- /package/dist/chunks/{project-df08tz66.js → persistent-pty-df08tz66.js} +0 -0
- /package/dist/chunks/{project-dy18nga0.js → persistent-pty-dy18nga0.js} +0 -0
- /package/dist/chunks/{project-e5kj55wp.js → persistent-pty-e5kj55wp.js} +0 -0
- /package/dist/chunks/{project-e73j6tqm.js → persistent-pty-e73j6tqm.js} +0 -0
- /package/dist/chunks/{project-ec1grn59.js → persistent-pty-ec1grn59.js} +0 -0
- /package/dist/chunks/{project-eh3zwz77.js → persistent-pty-eh3zwz77.js} +0 -0
- /package/dist/chunks/{project-emrn6kk6.js → persistent-pty-emrn6kk6.js} +0 -0
- /package/dist/chunks/{project-f0mxakyp.js → persistent-pty-f0mxakyp.js} +0 -0
- /package/dist/chunks/{project-f6n9ztr4.js → persistent-pty-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{project-faypxj3z.js → persistent-pty-faypxj3z.js} +0 -0
- /package/dist/chunks/{project-fd410y7t.js → persistent-pty-fd410y7t.js} +0 -0
- /package/dist/chunks/{project-fkpq3x5p.js → persistent-pty-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{project-g4wezp1m.js → persistent-pty-g4wezp1m.js} +0 -0
- /package/dist/chunks/{project-g86h250q.js → persistent-pty-g86h250q.js} +0 -0
- /package/dist/chunks/{project-gebd4c9n.js → persistent-pty-gebd4c9n.js} +0 -0
- /package/dist/chunks/{project-gftt206x.js → persistent-pty-gftt206x.js} +0 -0
- /package/dist/chunks/{project-hcxmzztb.js → persistent-pty-hcxmzztb.js} +0 -0
- /package/dist/chunks/{project-hk9envan.js → persistent-pty-hk9envan.js} +0 -0
- /package/dist/chunks/{project-j2ntwpah.js → persistent-pty-j2ntwpah.js} +0 -0
- /package/dist/chunks/{project-j5zkgpj8.js → persistent-pty-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{project-jjkms2e6.js → persistent-pty-jjkms2e6.js} +0 -0
- /package/dist/chunks/{project-jr7sbwjy.js → persistent-pty-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{project-jwfs4k6c.js → persistent-pty-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{project-jwr30sdr.js → persistent-pty-jwr30sdr.js} +0 -0
- /package/dist/chunks/{project-jze0r7bz.js → persistent-pty-jze0r7bz.js} +0 -0
- /package/dist/chunks/{project-jzg6c2d5.js → persistent-pty-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{project-m18g726c.js → persistent-pty-m18g726c.js} +0 -0
- /package/dist/chunks/{project-mp448xyj.js → persistent-pty-mp448xyj.js} +0 -0
- /package/dist/chunks/{project-msx8hqn2.js → persistent-pty-msx8hqn2.js} +0 -0
- /package/dist/chunks/{project-n05xt0ee.js → persistent-pty-n05xt0ee.js} +0 -0
- /package/dist/chunks/{project-n3j8tn72.js → persistent-pty-n3j8tn72.js} +0 -0
- /package/dist/chunks/{project-ncqqe42p.js → persistent-pty-ncqqe42p.js} +0 -0
- /package/dist/chunks/{project-njntx4h6.js → persistent-pty-njntx4h6.js} +0 -0
- /package/dist/chunks/{project-p71gwv9c.js → persistent-pty-p71gwv9c.js} +0 -0
- /package/dist/chunks/{project-q3sfg36h.js → persistent-pty-q3sfg36h.js} +0 -0
- /package/dist/chunks/{project-q74kybfr.js → persistent-pty-q74kybfr.js} +0 -0
- /package/dist/chunks/{project-qaymkmh1.js → persistent-pty-qaymkmh1.js} +0 -0
- /package/dist/chunks/{project-qb87gjwd.js → persistent-pty-qb87gjwd.js} +0 -0
- /package/dist/chunks/{project-qfa1cgps.js → persistent-pty-qfa1cgps.js} +0 -0
- /package/dist/chunks/{project-qg3g05ea.js → persistent-pty-qg3g05ea.js} +0 -0
- /package/dist/chunks/{project-qrg20bc0.js → persistent-pty-qrg20bc0.js} +0 -0
- /package/dist/chunks/{project-rcb2kzg1.js → persistent-pty-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{project-sdp7kfr6.js → persistent-pty-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{project-ssg3fenm.js → persistent-pty-ssg3fenm.js} +0 -0
- /package/dist/chunks/{project-ve7vex1e.js → persistent-pty-ve7vex1e.js} +0 -0
- /package/dist/chunks/{project-w803qqfp.js → persistent-pty-w803qqfp.js} +0 -0
- /package/dist/chunks/{project-wc3fc9cn.js → persistent-pty-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{project-wer8tq1h.js → persistent-pty-wer8tq1h.js} +0 -0
- /package/dist/chunks/{project-wtztk69x.js → persistent-pty-wtztk69x.js} +0 -0
- /package/dist/chunks/{project-x0ckcb58.js → persistent-pty-x0ckcb58.js} +0 -0
- /package/dist/chunks/{project-x61499pn.js → persistent-pty-x61499pn.js} +0 -0
- /package/dist/chunks/{project-y44na4kk.js → persistent-pty-y44na4kk.js} +0 -0
- /package/dist/chunks/{project-y8f7s663.js → persistent-pty-y8f7s663.js} +0 -0
- /package/dist/chunks/{project-ygaqb7jw.js → persistent-pty-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{project-z5v4ffb3.js → persistent-pty-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{project-z9919s4g.js → persistent-pty-z9919s4g.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./persistent-pty-zb5gs1ba.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/session/error.ts
|
|
12
12
|
var exports_error = {};
|
|
@@ -20,7 +20,7 @@ __export(exports_error, {
|
|
|
20
20
|
InvalidListCursorError: () => InvalidListCursorError2,
|
|
21
21
|
MessageDecodeError: () => MessageDecodeError2,
|
|
22
22
|
MessageNotFoundError: () => MessageNotFoundError2,
|
|
23
|
-
NotFoundError: () =>
|
|
23
|
+
NotFoundError: () => NotFoundError6,
|
|
24
24
|
PromptConflictError: () => PromptConflictError2,
|
|
25
25
|
SessionErrors: () => exports_error,
|
|
26
26
|
SkillNotFoundError: () => SkillNotFoundError2,
|
|
@@ -32,7 +32,7 @@ import { Agent } from "@opencode/schema/agent";
|
|
|
32
32
|
import { Skill } from "@opencode/schema/skill";
|
|
33
33
|
import { SessionError } from "@opencode/schema/session-error";
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class NotFoundError6 extends Schema.TaggedError()("Session.NotFoundError", {
|
|
36
36
|
sessionID: SessionSchema2.ID
|
|
37
37
|
}) {
|
|
38
38
|
}
|
|
@@ -123,4 +123,4 @@ class SkillNotFoundError2 extends Schema.TaggedError()("Session.SkillNotFoundErr
|
|
|
123
123
|
}) {
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
export {
|
|
126
|
+
export { NotFoundError6, InvalidListCursorError2, MessageNotFoundError2, ForkEmptyError2, MessageDecodeError2, AgentNotFoundError2, StepFailedError2, PromptConflictError2, SyntheticConflictError2, AttachmentError2, CompactionConflictError2, BusyError2, InboxConflictError2, SkillNotFoundError2, exports_error };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service85,
|
|
3
|
+
node89
|
|
4
|
+
} from "./persistent-pty-7aszcnrw.js";
|
|
5
5
|
import {
|
|
6
6
|
changes2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./persistent-pty-204s3925.js";
|
|
9
9
|
import {
|
|
10
10
|
evaluate2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./persistent-pty-9j54w4dz.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/skill.ts
|
|
17
17
|
var exports_skill5 = {};
|
|
18
18
|
__export(exports_skill5, {
|
|
19
19
|
DirectorySource: () => DirectorySource2,
|
|
20
20
|
EmbeddedSource: () => EmbeddedSource2,
|
|
21
|
-
Event: () =>
|
|
22
|
-
ID: () =>
|
|
23
|
-
Info: () =>
|
|
21
|
+
Event: () => Event9,
|
|
22
|
+
ID: () => ID5,
|
|
23
|
+
Info: () => Info11,
|
|
24
24
|
Name: () => Name2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service50,
|
|
26
26
|
Skill: () => exports_skill5,
|
|
27
|
-
Source: () =>
|
|
27
|
+
Source: () => Source4,
|
|
28
28
|
UrlSource: () => UrlSource2,
|
|
29
|
-
available: () =>
|
|
30
|
-
node: () =>
|
|
29
|
+
available: () => available4,
|
|
30
|
+
node: () => node53,
|
|
31
31
|
prepare: () => prepare3,
|
|
32
32
|
toModelOutput: () => toModelOutput3
|
|
33
33
|
});
|
|
@@ -36,15 +36,15 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
36
36
|
import path from "path";
|
|
37
37
|
import { Context, Effect, Layer } from "effect";
|
|
38
38
|
import { Skill } from "@opencode/schema/skill";
|
|
39
|
-
import { Event as
|
|
39
|
+
import { Event as Event9 } from "@opencode/schema/skill";
|
|
40
40
|
var DirectorySource2 = Skill.DirectorySource;
|
|
41
41
|
var UrlSource2 = Skill.UrlSource;
|
|
42
42
|
var EmbeddedSource2 = Skill.EmbeddedSource;
|
|
43
|
-
var
|
|
44
|
-
var
|
|
45
|
-
var
|
|
43
|
+
var Source4 = Skill.Source;
|
|
44
|
+
var Info11 = Skill.Info;
|
|
45
|
+
var ID5 = Skill.ID;
|
|
46
46
|
var Name2 = Skill.Name;
|
|
47
|
-
var
|
|
47
|
+
var available4 = (skills, permissions) => skills.filter((skill) => evaluate2("skill", skill.id, permissions).effect !== "deny");
|
|
48
48
|
var toModelOutput3 = (skill, files) => {
|
|
49
49
|
const directory = path.dirname(skill.path);
|
|
50
50
|
return [
|
|
@@ -79,21 +79,21 @@ var prepare3 = Effect.fn("Skill.prepare")(function* (fs, skill) {
|
|
|
79
79
|
};
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
-
class
|
|
82
|
+
class Service50 extends Context.Service()("@opencode/Skill") {
|
|
83
83
|
}
|
|
84
|
-
var layer = Layer.effect(
|
|
85
|
-
const bus = yield*
|
|
84
|
+
var layer = Layer.effect(Service50, Effect.gen(function* () {
|
|
85
|
+
const bus = yield* Service85;
|
|
86
86
|
const state = create3({
|
|
87
87
|
name: "skill",
|
|
88
88
|
initial: () => ({ skills: new Map }),
|
|
89
89
|
editor: (editor) => ({
|
|
90
90
|
list: () => Array.from(editor.skills.values()),
|
|
91
|
-
get: (id) => editor.skills.get(
|
|
91
|
+
get: (id) => editor.skills.get(ID5.make(id)),
|
|
92
92
|
add: (skill) => {
|
|
93
93
|
editor.skills.set(skill.id, { ...skill });
|
|
94
94
|
},
|
|
95
95
|
update: (id, update) => {
|
|
96
|
-
const key =
|
|
96
|
+
const key = ID5.make(id);
|
|
97
97
|
const current = editor.skills.get(key);
|
|
98
98
|
if (!current)
|
|
99
99
|
return;
|
|
@@ -101,12 +101,12 @@ var layer = Layer.effect(Service36, Effect.gen(function* () {
|
|
|
101
101
|
current.id = key;
|
|
102
102
|
},
|
|
103
103
|
remove: (id) => {
|
|
104
|
-
editor.skills.delete(
|
|
104
|
+
editor.skills.delete(ID5.make(id));
|
|
105
105
|
}
|
|
106
106
|
}),
|
|
107
107
|
notify: changes2((data) => Array.from(data.skills.values()), () => bus.publish(Skill.Event.Updated, {}).pipe(Effect.asVoid))
|
|
108
108
|
});
|
|
109
|
-
return
|
|
109
|
+
return Service50.of({
|
|
110
110
|
transform: state.transform,
|
|
111
111
|
reload: state.reload,
|
|
112
112
|
get: Effect.fn("Skill.get")(function* (id) {
|
|
@@ -117,10 +117,10 @@ var layer = Layer.effect(Service36, Effect.gen(function* () {
|
|
|
117
117
|
})
|
|
118
118
|
});
|
|
119
119
|
}));
|
|
120
|
-
var
|
|
121
|
-
service:
|
|
120
|
+
var node53 = makeLocationNode({
|
|
121
|
+
service: Service50,
|
|
122
122
|
layer,
|
|
123
|
-
deps: [
|
|
123
|
+
deps: [node89]
|
|
124
124
|
});
|
|
125
125
|
|
|
126
|
-
export { DirectorySource2, UrlSource2, EmbeddedSource2,
|
|
126
|
+
export { DirectorySource2, UrlSource2, EmbeddedSource2, Source4, Info11, ID5, Name2, available4, toModelOutput3, prepare3, Service50, node53, exports_skill5, Event9 };
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service85
|
|
3
|
+
} from "./persistent-pty-7aszcnrw.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service80
|
|
6
|
+
} from "./persistent-pty-9y7cq3y4.js";
|
|
7
7
|
import {
|
|
8
8
|
group2,
|
|
9
9
|
batch2,
|
|
10
10
|
shutdown2,
|
|
11
11
|
changes2,
|
|
12
12
|
inherit2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./persistent-pty-204s3925.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
Service40,
|
|
16
16
|
awaitActivation2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./persistent-pty-z355x5yr.js";
|
|
18
18
|
import {
|
|
19
19
|
make11,
|
|
20
20
|
requirements3,
|
|
21
21
|
storage2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./persistent-pty-f2k3g6xd.js";
|
|
23
23
|
import {
|
|
24
24
|
__export
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
26
26
|
|
|
27
27
|
// src/plugin.ts
|
|
28
28
|
var exports_plugin2 = {};
|
|
29
29
|
__export(exports_plugin2, {
|
|
30
|
-
Event: () =>
|
|
30
|
+
Event: () => Event3,
|
|
31
31
|
GuiBundle: () => GuiBundle2,
|
|
32
32
|
ID: () => ID2,
|
|
33
33
|
Info: () => Info3,
|
|
34
34
|
Plugin: () => exports_plugin2,
|
|
35
|
-
Service: () =>
|
|
35
|
+
Service: () => Service40,
|
|
36
36
|
Source: () => Source2,
|
|
37
37
|
State: () => State2,
|
|
38
38
|
awaitActivation: () => awaitActivation2,
|
|
39
|
-
node: () =>
|
|
39
|
+
node: () => node20
|
|
40
40
|
});
|
|
41
|
-
import { Event as
|
|
41
|
+
import { Event as Event3, GuiBundle as GuiBundle2, ID as ID2, Info as Info3, Source as Source2, State as State2 } from "@opencode/schema/plugin";
|
|
42
42
|
import { readFile } from "node:fs/promises";
|
|
43
43
|
import { fileURLToPath } from "node:url";
|
|
44
44
|
import { Plugin } from "@opencode/schema/plugin";
|
|
45
45
|
import { Node } from "@opencode/util/effect/app-node";
|
|
46
46
|
import { Cause, Context, Effect, Exit, Latch, Layer, Logger, Queue, References, Scope, Semaphore } from "effect";
|
|
47
|
-
var layer = Layer.effect(
|
|
48
|
-
const bus = yield*
|
|
49
|
-
const kv = yield*
|
|
47
|
+
var layer = Layer.effect(Service40, Effect.gen(function* () {
|
|
48
|
+
const bus = yield* Service85;
|
|
49
|
+
const kv = yield* Service80;
|
|
50
50
|
const scope = yield* Scope.make();
|
|
51
51
|
const active = new Map;
|
|
52
52
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -214,7 +214,7 @@ var layer = Layer.effect(Service27, Effect.gen(function* () {
|
|
|
214
214
|
yield* shutdown2(Scope.close(scope, exit));
|
|
215
215
|
}));
|
|
216
216
|
yield* Effect.addFinalizer(close);
|
|
217
|
-
return
|
|
217
|
+
return Service40.of({
|
|
218
218
|
activate,
|
|
219
219
|
close,
|
|
220
220
|
awaitActivation: ready.await,
|
|
@@ -232,10 +232,10 @@ function slotInfo(slot) {
|
|
|
232
232
|
features: slot.plugin.features ?? { server: true }
|
|
233
233
|
};
|
|
234
234
|
}
|
|
235
|
-
var
|
|
236
|
-
service:
|
|
235
|
+
var node20 = Node.makeLocationNode({
|
|
236
|
+
service: Service40,
|
|
237
237
|
layer,
|
|
238
238
|
deps: [requirements3]
|
|
239
239
|
});
|
|
240
240
|
|
|
241
|
-
export {
|
|
241
|
+
export { node20, exports_plugin2, Event3, GuiBundle2, ID2, Info3, Source2, State2 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
render3
|
|
3
|
+
} from "./persistent-pty-hfgk9wzg.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/optimize.ts
|
|
9
9
|
var exports_optimize = {};
|
|
@@ -434,7 +434,7 @@ function make(id, optimize, mode = "override") {
|
|
|
434
434
|
const system = event.system[0];
|
|
435
435
|
if (!system)
|
|
436
436
|
return;
|
|
437
|
-
const rendered =
|
|
437
|
+
const rendered = render3(template, Object.keys(event.tools));
|
|
438
438
|
const text = mode === "append" ? `${system.text}
|
|
439
439
|
|
|
440
440
|
${rendered}` : rendered;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service73,
|
|
3
|
+
node77
|
|
4
|
+
} from "./persistent-pty-ya13x5xa.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service82,
|
|
7
|
+
node86
|
|
8
|
+
} from "./persistent-pty-jj147ft1.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service72,
|
|
11
|
+
node76
|
|
12
|
+
} from "./persistent-pty-kg1ma0kd.js";
|
|
13
13
|
import {
|
|
14
14
|
names2,
|
|
15
15
|
discover2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./persistent-pty-6esdw8yj.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/config/plugin/source.ts
|
|
22
22
|
var exports_source = {};
|
|
23
23
|
__export(exports_source, {
|
|
24
24
|
ConfigPluginSource: () => exports_source,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service4,
|
|
26
26
|
empty: () => empty2,
|
|
27
|
-
layer: () =>
|
|
28
|
-
node: () =>
|
|
27
|
+
layer: () => layer5,
|
|
28
|
+
node: () => node6
|
|
29
29
|
});
|
|
30
30
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
31
31
|
import { Host } from "@opencode/plugin/host";
|
|
@@ -33,13 +33,13 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
33
33
|
import { Context, Effect, Layer, Option, PubSub, Stream } from "effect";
|
|
34
34
|
import path from "path";
|
|
35
35
|
import { fileURLToPath, pathToFileURL } from "url";
|
|
36
|
-
class
|
|
36
|
+
class Service4 extends Context.Service()("@opencode/ConfigPluginSource") {
|
|
37
37
|
}
|
|
38
|
-
var
|
|
39
|
-
const config = yield*
|
|
40
|
-
const watcher = yield*
|
|
38
|
+
var layer5 = Layer.effect(Service4, Effect.gen(function* () {
|
|
39
|
+
const config = yield* Service72;
|
|
40
|
+
const watcher = yield* Service73;
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
|
-
const location = yield*
|
|
42
|
+
const location = yield* Service82;
|
|
43
43
|
const configuredChanges = yield* PubSub.unbounded();
|
|
44
44
|
const watched = new Set;
|
|
45
45
|
const watchConfiguredSources = Effect.fn("ConfigPluginSource.watchConfiguredSources")(function* (entries, operations) {
|
|
@@ -58,7 +58,7 @@ var layer7 = Layer.effect(Service8, Effect.gen(function* () {
|
|
|
58
58
|
yield* updates.pipe(Stream.runForEach(() => PubSub.publish(configuredChanges, undefined)), Effect.catchCause((cause) => Effect.logError("configured plugin watch failed", { target: operation.target, cause })), Effect.forkScoped({ startImmediately: true }));
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
|
-
return
|
|
61
|
+
return Service4.of({
|
|
62
62
|
operations: Effect.fn("ConfigPluginSource.operations")(function* () {
|
|
63
63
|
const entries = yield* config.entries();
|
|
64
64
|
const operations = yield* scan(fs, location, entries);
|
|
@@ -70,14 +70,14 @@ var layer7 = Layer.effect(Service8, Effect.gen(function* () {
|
|
|
70
70
|
})), Stream.fromPubSub(configuredChanges))
|
|
71
71
|
});
|
|
72
72
|
}));
|
|
73
|
-
var
|
|
74
|
-
service:
|
|
75
|
-
layer:
|
|
76
|
-
deps: [
|
|
73
|
+
var node6 = makeLocationNode({
|
|
74
|
+
service: Service4,
|
|
75
|
+
layer: layer5,
|
|
76
|
+
deps: [node76, FSUtil.node, node77, node86]
|
|
77
77
|
});
|
|
78
78
|
var empty2 = makeLocationNode({
|
|
79
|
-
service:
|
|
80
|
-
layer: Layer.succeed(
|
|
79
|
+
service: Service4,
|
|
80
|
+
layer: Layer.succeed(Service4, Service4.of({
|
|
81
81
|
operations: () => Effect.succeed([]),
|
|
82
82
|
changes: () => Stream.never
|
|
83
83
|
})),
|
|
@@ -138,4 +138,4 @@ function isPluginSource(entries, file) {
|
|
|
138
138
|
return entries.some((entry) => entry.type === "directory" && names2.some((directory) => FSUtil.contains(path.join(entry.path, directory), file)));
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
export {
|
|
141
|
+
export { Service4, layer5, node6, empty2, exports_source };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service72
|
|
4
|
+
} from "./persistent-pty-kg1ma0kd.js";
|
|
5
5
|
import {
|
|
6
6
|
observe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./persistent-pty-hpg1pkwy.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Service51
|
|
10
|
+
} from "./persistent-pty-9j54w4dz.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/tool/plugin/todo.ts
|
|
16
16
|
var exports_todo = {};
|
|
17
17
|
__export(exports_todo, {
|
|
18
18
|
Info: () => Info2,
|
|
19
|
-
Input: () =>
|
|
20
|
-
Output: () =>
|
|
21
|
-
Plugin: () =>
|
|
19
|
+
Input: () => Input7,
|
|
20
|
+
Output: () => Output5,
|
|
21
|
+
Plugin: () => Plugin27,
|
|
22
22
|
TodoTool: () => exports_todo,
|
|
23
|
-
name: () =>
|
|
23
|
+
name: () => name7,
|
|
24
24
|
summarize: () => summarize2
|
|
25
25
|
});
|
|
26
26
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
@@ -37,17 +37,17 @@ Use it proactively when a task has 3 or more distinct steps, or when the user gi
|
|
|
37
37
|
`;
|
|
38
38
|
|
|
39
39
|
// src/tool/plugin/todo.ts
|
|
40
|
-
var
|
|
40
|
+
var name7 = "todowrite";
|
|
41
41
|
var Info2 = Schema.Struct({
|
|
42
42
|
content: Schema.String.annotate({ description: "Brief description of the task" }),
|
|
43
43
|
status: Schema.Literals(["pending", "in_progress", "completed", "cancelled"]).annotate({
|
|
44
44
|
description: "Current status of the task: pending, in_progress, completed, cancelled"
|
|
45
45
|
})
|
|
46
46
|
});
|
|
47
|
-
var
|
|
47
|
+
var Input7 = Schema.Struct({
|
|
48
48
|
todos: Schema.Array(Info2).annotate({ description: "The updated todo list" })
|
|
49
49
|
});
|
|
50
|
-
var
|
|
50
|
+
var Output5 = Schema.Struct({
|
|
51
51
|
todos: Schema.Array(Info2)
|
|
52
52
|
});
|
|
53
53
|
var summarize2 = (todos) => {
|
|
@@ -61,24 +61,24 @@ var summarize2 = (todos) => {
|
|
|
61
61
|
const active = todos.filter((todo) => todo.status === "in_progress").map((todo) => JSON.stringify(todo.content));
|
|
62
62
|
return `Todos updated: ${counts}${active.length ? `. In progress: ${active.join(", ")}` : ""}`;
|
|
63
63
|
};
|
|
64
|
-
var
|
|
64
|
+
var Plugin27 = {
|
|
65
65
|
id: "opencode.tool.todo",
|
|
66
66
|
effect: Effect.fn("TodoTool.Plugin")(function* (ctx) {
|
|
67
|
-
const config = yield*
|
|
68
|
-
const permission = yield*
|
|
67
|
+
const config = yield* Service72;
|
|
68
|
+
const permission = yield* Service51;
|
|
69
69
|
const loaded = yield* observe2(config, ctx.event, ctx.tool.reload());
|
|
70
70
|
const enabled = () => latest2(loaded.entries, "experimental")?.todo === true;
|
|
71
71
|
yield* ctx.tool.transform((editor) => {
|
|
72
72
|
if (!enabled())
|
|
73
73
|
return;
|
|
74
74
|
editor.add({
|
|
75
|
-
name:
|
|
75
|
+
name: name7,
|
|
76
76
|
options: { codemode: false },
|
|
77
77
|
description: todowrite_default,
|
|
78
|
-
input:
|
|
79
|
-
output:
|
|
78
|
+
input: Input7,
|
|
79
|
+
output: Output5,
|
|
80
80
|
execute: (input, context) => permission.assert({
|
|
81
|
-
action:
|
|
81
|
+
action: name7,
|
|
82
82
|
resources: ["*"],
|
|
83
83
|
save: ["*"],
|
|
84
84
|
sessionID: context.sessionID,
|
|
@@ -94,4 +94,4 @@ var Plugin43 = {
|
|
|
94
94
|
})
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
export {
|
|
97
|
+
export { name7, Info2, Input7, Output5, summarize2, Plugin27, exports_todo };
|
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service54
|
|
3
|
+
} from "./persistent-pty-d54nae6v.js";
|
|
4
4
|
import {
|
|
5
5
|
Ref3,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service75
|
|
7
|
+
} from "./persistent-pty-tmy26mxh.js";
|
|
8
8
|
import {
|
|
9
9
|
latest2,
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service72
|
|
11
|
+
} from "./persistent-pty-kg1ma0kd.js";
|
|
12
12
|
import {
|
|
13
13
|
SessionSchema2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./persistent-pty-zb5gs1ba.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
Service64
|
|
17
|
+
} from "./persistent-pty-wxcgqqg8.js";
|
|
18
18
|
import {
|
|
19
19
|
evaluate2,
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Service51
|
|
21
|
+
} from "./persistent-pty-9j54w4dz.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
23
|
+
Service28
|
|
24
|
+
} from "./persistent-pty-5qtr8rjc.js";
|
|
25
25
|
import {
|
|
26
26
|
NO_TEXT2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./persistent-pty-sqjzf8x2.js";
|
|
28
28
|
import {
|
|
29
29
|
Service10
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./persistent-pty-aqpt7qn5.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/tool/plugin/subagent.ts
|
|
36
36
|
var exports_subagent = {};
|
|
37
37
|
__export(exports_subagent, {
|
|
38
|
-
Input: () =>
|
|
39
|
-
Output: () =>
|
|
40
|
-
Plugin: () =>
|
|
38
|
+
Input: () => Input2,
|
|
39
|
+
Output: () => Output2,
|
|
40
|
+
Plugin: () => Plugin20,
|
|
41
41
|
SubagentTool: () => exports_subagent,
|
|
42
|
-
description: () =>
|
|
43
|
-
name: () =>
|
|
42
|
+
description: () => description2,
|
|
43
|
+
name: () => name2
|
|
44
44
|
});
|
|
45
45
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
46
46
|
import { Effect, Predicate, Schema } from "effect";
|
|
47
|
-
var
|
|
47
|
+
var name2 = "subagent";
|
|
48
48
|
var backgroundResult = (sessionID) => ({
|
|
49
49
|
sessionID,
|
|
50
50
|
status: "running",
|
|
@@ -55,7 +55,7 @@ var backgroundResult = (sessionID) => ({
|
|
|
55
55
|
].join(`
|
|
56
56
|
`)
|
|
57
57
|
});
|
|
58
|
-
var
|
|
58
|
+
var Input2 = Schema.Struct({
|
|
59
59
|
agent: Schema.String.annotate({
|
|
60
60
|
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."
|
|
61
61
|
}),
|
|
@@ -71,12 +71,12 @@ var Input13 = Schema.Struct({
|
|
|
71
71
|
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."
|
|
72
72
|
})
|
|
73
73
|
});
|
|
74
|
-
var
|
|
74
|
+
var Output2 = Schema.Struct({
|
|
75
75
|
sessionID: SessionSchema2.ID,
|
|
76
76
|
status: Schema.Literals(["completed", "running"]),
|
|
77
77
|
output: Schema.String
|
|
78
78
|
});
|
|
79
|
-
var
|
|
79
|
+
var description2 = [
|
|
80
80
|
"Spawns an agent in a child session to work on the specified task.",
|
|
81
81
|
"The output includes a sessionID you can pass back later to continue that specific conversation with the subagent.",
|
|
82
82
|
"New child sessions start with fresh context, so include all relevant context and instructions when you don't pass a sessionID.",
|
|
@@ -85,15 +85,15 @@ var description5 = [
|
|
|
85
85
|
"Use background only for independent work that can run while you continue elsewhere."
|
|
86
86
|
].join(`
|
|
87
87
|
`);
|
|
88
|
-
var
|
|
88
|
+
var Plugin20 = {
|
|
89
89
|
id: "opencode.tool.subagent",
|
|
90
90
|
effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
|
|
91
|
-
const sessions = yield*
|
|
92
|
-
const jobs = yield*
|
|
93
|
-
const agents = yield*
|
|
94
|
-
const config = yield*
|
|
95
|
-
const permission = yield*
|
|
96
|
-
const models = yield*
|
|
91
|
+
const sessions = yield* Service28;
|
|
92
|
+
const jobs = yield* Service64;
|
|
93
|
+
const agents = yield* Service54;
|
|
94
|
+
const config = yield* Service72;
|
|
95
|
+
const permission = yield* Service51;
|
|
96
|
+
const models = yield* Service75;
|
|
97
97
|
const subagents = yield* Service10;
|
|
98
98
|
const resolveModel = Effect.fn("SubagentTool.resolveModel")(function* (input) {
|
|
99
99
|
const ref = yield* Effect.try({
|
|
@@ -114,11 +114,11 @@ var Plugin48 = {
|
|
|
114
114
|
return ref;
|
|
115
115
|
});
|
|
116
116
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
117
|
-
name:
|
|
117
|
+
name: name2,
|
|
118
118
|
options: { codemode: false },
|
|
119
|
-
description:
|
|
120
|
-
input:
|
|
121
|
-
output:
|
|
119
|
+
description: description2,
|
|
120
|
+
input: Input2,
|
|
121
|
+
output: Output2,
|
|
122
122
|
execute: (input, context) => Effect.gen(function* () {
|
|
123
123
|
const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
|
|
124
124
|
let current = parent;
|
|
@@ -138,7 +138,7 @@ var Plugin48 = {
|
|
|
138
138
|
if (agent.mode === "primary")
|
|
139
139
|
return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
|
|
140
140
|
yield* permission.assert({
|
|
141
|
-
action:
|
|
141
|
+
action: name2,
|
|
142
142
|
resources: [agent.id],
|
|
143
143
|
save: [agent.id],
|
|
144
144
|
sessionID: context.sessionID,
|
|
@@ -217,7 +217,7 @@ ${output.output}
|
|
|
217
217
|
})))
|
|
218
218
|
})).pipe(Effect.orDie);
|
|
219
219
|
yield* ctx.tool.hook("execute.before", (event) => Effect.sync(() => {
|
|
220
|
-
if (event.tool !==
|
|
220
|
+
if (event.tool !== name2 || !Predicate.isObject(event.input))
|
|
221
221
|
return;
|
|
222
222
|
if (event.input.model !== "" && event.input.sessionID !== "")
|
|
223
223
|
return;
|
|
@@ -229,13 +229,13 @@ ${output.output}
|
|
|
229
229
|
event.input = input;
|
|
230
230
|
}));
|
|
231
231
|
const hook = (event) => Effect.gen(function* () {
|
|
232
|
-
const tool = event.tools[
|
|
232
|
+
const tool = event.tools[name2];
|
|
233
233
|
if (!tool)
|
|
234
234
|
return;
|
|
235
235
|
const selected = yield* agents.resolve(event.agent);
|
|
236
236
|
if (!selected)
|
|
237
237
|
return;
|
|
238
|
-
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(
|
|
238
|
+
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name2, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
|
|
239
239
|
if (available.length === 0)
|
|
240
240
|
return;
|
|
241
241
|
tool.description = [
|
|
@@ -252,4 +252,4 @@ ${output.output}
|
|
|
252
252
|
})
|
|
253
253
|
};
|
|
254
254
|
|
|
255
|
-
export {
|
|
255
|
+
export { name2, Input2, Output2, description2, Plugin20, exports_subagent };
|