@opencode-ai/core 0.0.0-beta-18866 → 0.0.0-beta-18955
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +2 -2
- package/dist/agent.js +70 -70
- package/dist/aisdk-native.js +3 -3
- package/dist/aisdk.js +4 -4
- package/dist/app.js +2 -2
- package/dist/bus.js +68 -68
- package/dist/catalog.js +78 -78
- package/dist/chunks/{reference-9z5kkd1v.js → event-logger-08pxpvak.js} +12 -12
- package/dist/chunks/{reference-0ag03ecw.js → event-logger-0ag03ecw.js} +2 -2
- package/dist/chunks/{reference-vczm1m9n.js → event-logger-0dz826pz.js} +3 -3
- package/dist/chunks/{reference-0gpahtwn.js → event-logger-0gpahtwn.js} +2 -2
- package/dist/chunks/{reference-088y9cbk.js → event-logger-0gxv3s82.js} +4 -4
- package/dist/chunks/{reference-0pc4kdn1.js → event-logger-0pc4kdn1.js} +2 -2
- package/dist/chunks/{reference-0rz7yd7x.js → event-logger-0rz7yd7x.js} +1 -1
- package/dist/chunks/{reference-136c8mz3.js → event-logger-136c8mz3.js} +3 -3
- package/dist/chunks/{reference-893c53jd.js → event-logger-1cvrgbet.js} +12 -9
- package/dist/chunks/{reference-e5r3hp5p.js → event-logger-1j04cwhr.js} +22 -16
- package/dist/chunks/{reference-v1q61tmm.js → event-logger-1n8w657t.js} +12 -12
- package/dist/chunks/{reference-4e9y157d.js → event-logger-23y1jcwt.js} +2 -2
- package/dist/chunks/{reference-264e1nfp.js → event-logger-264e1nfp.js} +2 -2
- package/dist/chunks/{reference-8q7rztf6.js → event-logger-2dy05jzf.js} +47 -28
- package/dist/chunks/{reference-pkvv3k6x.js → event-logger-2gjt1w6y.js} +4 -4
- package/dist/chunks/{reference-9vqgpz70.js → event-logger-2hktn3e1.js} +6 -6
- package/dist/chunks/{reference-m48hb2tb.js → event-logger-2hmmtx2y.js} +16 -13
- package/dist/chunks/{reference-6f6thqyy.js → event-logger-2qq12ds3.js} +5 -5
- package/dist/chunks/{reference-2sqw2jjm.js → event-logger-2sqw2jjm.js} +3 -3
- package/dist/chunks/{reference-17fnrv0p.js → event-logger-2y7knjcn.js} +8 -8
- package/dist/chunks/{reference-326j4s6w.js → event-logger-326j4s6w.js} +2 -2
- package/dist/chunks/{reference-mhxjtrfr.js → event-logger-35q0pxy1.js} +24 -24
- package/dist/chunks/{reference-z5p8bt57.js → event-logger-3cfzw09p.js} +6 -6
- package/dist/chunks/{reference-3chx3ng6.js → event-logger-3chx3ng6.js} +1 -1
- package/dist/chunks/{reference-7y13h7qh.js → event-logger-3ebhgms6.js} +3 -3
- package/dist/chunks/{reference-3ep0k87g.js → event-logger-3ep0k87g.js} +3 -3
- package/dist/chunks/{reference-h292hczs.js → event-logger-3fsqcqr3.js} +15 -15
- package/dist/chunks/{reference-3mc1hhwa.js → event-logger-3mc1hhwa.js} +3 -3
- package/dist/chunks/{reference-wx0fv060.js → event-logger-3r1x0nyw.js} +7 -7
- package/dist/chunks/{reference-9s00a4cy.js → event-logger-3r56fk07.js} +3 -3
- package/dist/chunks/event-logger-3tg0cqem.js +51 -0
- package/dist/chunks/{reference-42zyazrq.js → event-logger-42zyazrq.js} +1 -1
- package/dist/chunks/{reference-g7dw4rk5.js → event-logger-436nrt40.js} +9 -9
- package/dist/chunks/{reference-f821qzap.js → event-logger-46rdtn0f.js} +5 -5
- package/dist/chunks/{reference-je5g7w6t.js → event-logger-473q516w.js} +2 -2
- package/dist/chunks/{reference-3y28g1fq.js → event-logger-492z0nb6.js} +5 -5
- package/dist/chunks/{reference-p4fwfknn.js → event-logger-4cpn1159.js} +5 -5
- package/dist/chunks/{reference-k85ch1vg.js → event-logger-4dptn36j.js} +3 -3
- package/dist/chunks/{reference-y1yqxy0w.js → event-logger-4fsyr2s9.js} +10 -10
- package/dist/chunks/{reference-t253hdyx.js → event-logger-4hynchfh.js} +3 -3
- package/dist/chunks/{reference-rw2ay6e7.js → event-logger-4psh7k13.js} +5 -5
- package/dist/chunks/{reference-qf5b2gmg.js → event-logger-4v4fym39.js} +13 -13
- package/dist/chunks/{reference-4v6g3p22.js → event-logger-4v6g3p22.js} +1 -1
- package/dist/chunks/{reference-3529n0tr.js → event-logger-4vcd31gm.js} +15 -15
- package/dist/chunks/{reference-63teb4w1.js → event-logger-4w0ckvbq.js} +9 -9
- package/dist/chunks/{reference-tr2gzb1w.js → event-logger-51t2tyks.js} +4 -12
- package/dist/chunks/{reference-jcc5a2z4.js → event-logger-52a5hsyw.js} +21 -5
- package/dist/chunks/{reference-j9ymnb9b.js → event-logger-53jxjgr1.js} +2 -2
- package/dist/chunks/{reference-z65x5xn8.js → event-logger-5efgsk2e.js} +16 -11
- package/dist/chunks/{reference-jsb6y3ce.js → event-logger-5hd326tc.js} +3 -3
- package/dist/chunks/{reference-5n97c1kz.js → event-logger-5sakdtm6.js} +3 -3
- package/dist/chunks/{reference-byc4rwvh.js → event-logger-5vbk082d.js} +2 -2
- package/dist/chunks/{reference-5y5kqjze.js → event-logger-5y5kqjze.js} +1 -1
- package/dist/chunks/{reference-t5rvtmq7.js → event-logger-61znvqb4.js} +60 -60
- package/dist/chunks/{reference-424hja68.js → event-logger-63yqstqv.js} +13 -9
- package/dist/chunks/{reference-66mds5ht.js → event-logger-66mds5ht.js} +1 -1
- package/dist/chunks/{reference-zq5w46q0.js → event-logger-68yag814.js} +2 -2
- package/dist/chunks/{reference-jqd42x9x.js → event-logger-6a909wmz.js} +8 -10
- package/dist/chunks/{reference-6bxzghb6.js → event-logger-6bxzghb6.js} +1 -1
- package/dist/chunks/{reference-6hppa3xw.js → event-logger-6hppa3xw.js} +2 -2
- package/dist/chunks/{reference-6vbv4je1.js → event-logger-6vbv4je1.js} +2 -2
- package/dist/chunks/{reference-6wsfy4sp.js → event-logger-6wsfy4sp.js} +2 -2
- package/dist/chunks/{reference-4v53bvyt.js → event-logger-6wskbeqw.js} +16 -18
- package/dist/chunks/{reference-f410cv5t.js → event-logger-6x09n4m4.js} +15 -15
- package/dist/chunks/{reference-gat33t0e.js → event-logger-754qx1qh.js} +8 -8
- package/dist/chunks/{reference-khswz5rb.js → event-logger-78s2egvq.js} +14 -14
- package/dist/chunks/{reference-z427xjvx.js → event-logger-7kvqks8y.js} +9 -9
- package/dist/chunks/{reference-7myqjfx6.js → event-logger-7myqjfx6.js} +1 -1
- package/dist/chunks/{reference-8zsay21d.js → event-logger-7nhr92kz.js} +3 -3
- package/dist/chunks/{reference-2syg46b4.js → event-logger-80djagdx.js} +10 -10
- package/dist/chunks/{reference-ak8kj9h3.js → event-logger-8458mtgv.js} +29 -28
- package/dist/chunks/{reference-n5yhfyk0.js → event-logger-88rtces7.js} +152 -148
- package/dist/chunks/{reference-kemcf5mw.js → event-logger-89h2133j.js} +6 -6
- package/dist/chunks/{reference-fq40qrnc.js → event-logger-89jm8ntc.js} +4 -4
- package/dist/chunks/{reference-89ttfx5q.js → event-logger-89ttfx5q.js} +2 -2
- package/dist/chunks/{reference-m3k5wttq.js → event-logger-8c5xq4gn.js} +6 -6
- package/dist/chunks/{reference-wghtbf73.js → event-logger-8eb86sst.js} +12 -12
- package/dist/chunks/{reference-8ezmrsyj.js → event-logger-8ezmrsyj.js} +2 -2
- package/dist/chunks/{reference-8ck72gm8.js → event-logger-8manx9kj.js} +2 -2
- package/dist/chunks/{reference-8r263vtv.js → event-logger-8r263vtv.js} +2 -2
- package/dist/chunks/{reference-r932pxqs.js → event-logger-8y5vxhk7.js} +1 -1
- package/dist/chunks/{reference-38cv1e1c.js → event-logger-90ryhae1.js} +11 -11
- package/dist/chunks/{reference-pp6802x5.js → event-logger-90zcexzw.js} +2 -2
- package/dist/chunks/{reference-97q0eayt.js → event-logger-97fepfd9.js} +11 -11
- package/dist/chunks/{reference-z1x5ppqv.js → event-logger-9dbv6hqn.js} +2 -2
- package/dist/chunks/{reference-1btf37k0.js → event-logger-9nw2dxvq.js} +4 -4
- package/dist/chunks/{reference-ka1ze8e7.js → event-logger-9pdtp4hh.js} +3 -3
- package/dist/chunks/{reference-a6xqkezx.js → event-logger-a6xqkezx.js} +1 -1
- package/dist/chunks/{reference-af42tqdk.js → event-logger-af42tqdk.js} +2 -2
- package/dist/chunks/{reference-wkcm2121.js → event-logger-aqq7me5d.js} +14 -6
- package/dist/chunks/{reference-30f47jbp.js → event-logger-b1z99xtq.js} +10 -21
- package/dist/chunks/{reference-xzp0zmzd.js → event-logger-b6k0ney6.js} +8 -8
- package/dist/chunks/{reference-80jq34sk.js → event-logger-b9nrx84y.js} +4 -4
- package/dist/chunks/{reference-9dpm0ypj.js → event-logger-bctawmv9.js} +8 -9
- package/dist/chunks/{reference-bd2mvb8t.js → event-logger-bd2mvb8t.js} +2 -2
- package/dist/chunks/{reference-np5sawwb.js → event-logger-bmdmb8f9.js} +3 -3
- package/dist/chunks/{reference-bnha4c96.js → event-logger-bnha4c96.js} +1 -1
- package/dist/chunks/{reference-c9xhhs5v.js → event-logger-c2bhx1ec.js} +46 -32
- package/dist/chunks/{reference-c54e84vp.js → event-logger-c54e84vp.js} +1 -1
- package/dist/chunks/{reference-hfzsp55z.js → event-logger-c55cgmsp.js} +2 -2
- package/dist/chunks/{reference-3t5c6jt3.js → event-logger-c5h8z8cv.js} +8 -8
- package/dist/chunks/{reference-c8ya26sa.js → event-logger-c8ya26sa.js} +2 -2
- package/dist/chunks/{reference-z1959vye.js → event-logger-cj6y4gbf.js} +5 -5
- package/dist/chunks/{reference-g6q238va.js → event-logger-ckcq38kt.js} +2 -2
- package/dist/chunks/{reference-e2kekfkw.js → event-logger-crecg5t7.js} +21 -18
- package/dist/chunks/{reference-6qa4ddqm.js → event-logger-crz4xfzm.js} +184 -143
- package/dist/chunks/{reference-thngpag9.js → event-logger-cz4g9a0v.js} +4 -4
- package/dist/chunks/{reference-d4h7vwhh.js → event-logger-d4h7vwhh.js} +2 -2
- package/dist/chunks/{reference-bhk5bpxq.js → event-logger-d8f23dkx.js} +4 -4
- package/dist/chunks/{reference-qx3jf2qk.js → event-logger-db33vhr2.js} +7 -7
- package/dist/chunks/{reference-dexm22yg.js → event-logger-dexm22yg.js} +1 -1
- package/dist/chunks/{reference-dvqebtf1.js → event-logger-dn2wztxw.js} +8 -5
- package/dist/chunks/{reference-dtm6fkaa.js → event-logger-dtm6fkaa.js} +2 -2
- package/dist/chunks/{reference-kek3rf55.js → event-logger-dvcabejh.js} +6 -6
- package/dist/chunks/{reference-dyhtrhy2.js → event-logger-dyhtrhy2.js} +1 -1
- package/dist/chunks/event-logger-dyrfpcd0.js +114 -0
- package/dist/chunks/{reference-5400f3k2.js → event-logger-dyv1aw3z.js} +8 -8
- package/dist/chunks/{reference-b1f1x5nb.js → event-logger-e0n16vwa.js} +8 -8
- package/dist/chunks/{reference-pj0nw4b1.js → event-logger-eb87q0yv.js} +1 -1
- package/dist/chunks/{reference-tt4qnzy6.js → event-logger-eccfdzzr.js} +8 -9
- package/dist/chunks/{reference-edxnhgvj.js → event-logger-edxnhgvj.js} +1 -1
- package/dist/chunks/{reference-yvej0khr.js → event-logger-efy5rfxh.js} +6 -6
- package/dist/chunks/event-logger-esv5q40e.js +18 -0
- package/dist/chunks/{reference-etbnsc4s.js → event-logger-etbnsc4s.js} +2 -2
- package/dist/chunks/{reference-n256kz7s.js → event-logger-ety6zxes.js} +32 -21
- package/dist/chunks/{reference-f2nhxfjt.js → event-logger-f2nhxfjt.js} +2 -2
- package/dist/chunks/{reference-0enfz0ma.js → event-logger-f4vqkfbt.js} +9 -9
- package/dist/chunks/{reference-f8wvq04h.js → event-logger-f8wvq04h.js} +1 -1
- package/dist/chunks/{reference-fqehnn9p.js → event-logger-fqehnn9p.js} +2 -2
- package/dist/chunks/{reference-g9dd0fv6.js → event-logger-g9dd0fv6.js} +2 -2
- package/dist/chunks/{reference-2nszkqak.js → event-logger-gag4b6js.js} +8 -8
- package/dist/chunks/{reference-gb1z7yet.js → event-logger-gb1z7yet.js} +2 -2
- package/dist/chunks/{reference-gc513wew.js → event-logger-gc513wew.js} +2 -2
- package/dist/chunks/{reference-wvzafhct.js → event-logger-ggzp5gpk.js} +6 -6
- package/dist/chunks/{reference-grfz4hhj.js → event-logger-grfz4hhj.js} +1 -1
- package/dist/chunks/{reference-pg6rcx6v.js → event-logger-gse5vfpv.js} +9 -9
- package/dist/chunks/{reference-3vc9vmpv.js → event-logger-gwp0mkke.js} +14 -13
- package/dist/chunks/{reference-hyfbxc6f.js → event-logger-gwpvptdr.js} +1 -1
- package/dist/chunks/{reference-rancn5ng.js → event-logger-h01zxzks.js} +5 -5
- package/dist/chunks/{reference-vmf3mwf0.js → event-logger-hbm0jdrs.js} +7 -7
- package/dist/chunks/{reference-90je674c.js → event-logger-he5ca1b1.js} +10 -10
- package/dist/chunks/{reference-hgr9y616.js → event-logger-hgr9y616.js} +1 -1
- package/dist/chunks/{reference-hpkeh7wf.js → event-logger-hpkeh7wf.js} +1 -1
- package/dist/chunks/{reference-xwpxh8hr.js → event-logger-hr3zcmss.js} +18 -8
- package/dist/chunks/{reference-hs51b0fc.js → event-logger-hs51b0fc.js} +1 -1
- package/dist/chunks/{reference-4qz7zhx0.js → event-logger-htmhxvv7.js} +31 -196
- package/dist/chunks/{reference-hvydqsq5.js → event-logger-hvydqsq5.js} +2 -2
- package/dist/chunks/{reference-mq1tw6ze.js → event-logger-hxhg3cbh.js} +13 -13
- package/dist/chunks/{reference-hy5n5jcn.js → event-logger-hy5n5jcn.js} +1 -1
- package/dist/chunks/{reference-s2kjqxd3.js → event-logger-hzag9ake.js} +1 -1
- package/dist/chunks/{reference-s6ck6xts.js → event-logger-hzwx8p6y.js} +5 -4
- package/dist/chunks/{reference-j0feex7e.js → event-logger-j0feex7e.js} +1 -1
- package/dist/chunks/{reference-7f09d21b.js → event-logger-j189w519.js} +4 -4
- package/dist/chunks/{reference-750jzgaa.js → event-logger-jar52fmb.js} +3 -3
- package/dist/chunks/{reference-mxhs55xx.js → event-logger-jmk5afdx.js} +26 -25
- package/dist/chunks/{reference-jqhp3fpz.js → event-logger-jqhp3fpz.js} +2 -2
- package/dist/chunks/{reference-jr5m26np.js → event-logger-jr5m26np.js} +2 -2
- package/dist/chunks/{reference-qvh7d3mm.js → event-logger-k030pceh.js} +7 -7
- package/dist/chunks/{reference-k7hkdbw5.js → event-logger-k7hkdbw5.js} +2 -2
- package/dist/chunks/{reference-ez1a90zg.js → event-logger-ke5mv4q1.js} +92 -92
- package/dist/chunks/{reference-46azr2y9.js → event-logger-kje1pb31.js} +3 -3
- package/dist/chunks/{reference-kq3q54gz.js → event-logger-kq3q54gz.js} +1 -1
- package/dist/chunks/{reference-kr9vgar1.js → event-logger-kr9vgar1.js} +1 -1
- package/dist/chunks/{reference-z83gsyf2.js → event-logger-kz3am89c.js} +3 -3
- package/dist/chunks/{reference-k3b0087g.js → event-logger-kzzx546a.js} +10 -10
- package/dist/chunks/{reference-f85kjf82.js → event-logger-m32vxkan.js} +21 -21
- package/dist/chunks/{reference-30st6gwt.js → event-logger-m6a7zjhr.js} +1 -1
- package/dist/chunks/{reference-m7jtgrng.js → event-logger-m7jtgrng.js} +2 -2
- package/dist/chunks/{reference-mf0hyk7z.js → event-logger-mf0hyk7z.js} +1 -1
- package/dist/chunks/{reference-mnyszbxc.js → event-logger-mnyszbxc.js} +1 -1
- package/dist/chunks/{reference-f6687h7n.js → event-logger-mp08m2a2.js} +45 -45
- package/dist/chunks/{reference-hhxh8pdx.js → event-logger-mv81kt5z.js} +2 -2
- package/dist/chunks/{reference-yt5sqzpx.js → event-logger-mvhmw1qg.js} +13 -13
- package/dist/chunks/{reference-7z97vfjw.js → event-logger-my53s247.js} +3 -3
- package/dist/chunks/{reference-df9ps1ev.js → event-logger-mywmt41p.js} +3 -3
- package/dist/chunks/{reference-a7swh0z4.js → event-logger-n060v487.js} +6 -6
- package/dist/chunks/{reference-ngzr6ypz.js → event-logger-ngzr6ypz.js} +2 -2
- package/dist/chunks/{reference-jjepj7kz.js → event-logger-nj6yqve1.js} +9 -3
- package/dist/chunks/{reference-8ze61944.js → event-logger-njrb9jc2.js} +9 -9
- package/dist/chunks/{reference-nn16cgj7.js → event-logger-nn16cgj7.js} +1 -1
- package/dist/chunks/{reference-m8dxe63b.js → event-logger-nrbccn7t.js} +21 -23
- package/dist/chunks/{reference-xfk2eagt.js → event-logger-ntev5d3k.js} +9 -9
- package/dist/chunks/{reference-0bw2p3eg.js → event-logger-nv5prhmc.js} +3 -3
- package/dist/chunks/{reference-p1m5qwvv.js → event-logger-p1m5qwvv.js} +1 -1
- package/dist/chunks/{reference-ayh0b6nc.js → event-logger-p30vnntj.js} +18 -18
- package/dist/chunks/{reference-8ngkfkdx.js → event-logger-p3qtk0sz.js} +2 -2
- package/dist/chunks/{reference-p5gyct0y.js → event-logger-p5gyct0y.js} +1 -1
- package/dist/chunks/{reference-pk53j7qk.js → event-logger-pk53j7qk.js} +2 -2
- package/dist/chunks/{reference-an1f8bbd.js → event-logger-pm6tc1g5.js} +92 -92
- package/dist/chunks/{reference-w7agyzeg.js → event-logger-pmxccgjm.js} +10 -6
- package/dist/chunks/{reference-e4ve50r5.js → event-logger-pnnr4jav.js} +2 -2
- package/dist/chunks/{reference-8g6k80zr.js → event-logger-prqhf714.js} +4 -4
- package/dist/chunks/{reference-kggc3hrm.js → event-logger-pves38xm.js} +8 -8
- package/dist/chunks/{reference-k5r2vn1t.js → event-logger-pvhtfzrc.js} +11 -11
- package/dist/chunks/{reference-4z6b1r7t.js → event-logger-q3a4v6k3.js} +21 -21
- package/dist/chunks/{reference-q606pcse.js → event-logger-q606pcse.js} +3 -3
- package/dist/chunks/{reference-qf52r0wh.js → event-logger-qf52r0wh.js} +1 -1
- package/dist/chunks/{reference-qfvp8zq7.js → event-logger-qfvp8zq7.js} +1 -1
- package/dist/chunks/{reference-ec0fjxjh.js → event-logger-qj8f3w7s.js} +7 -7
- package/dist/chunks/{reference-0emrnx66.js → event-logger-qjrxng61.js} +5 -5
- package/dist/chunks/{reference-vem6fgbh.js → event-logger-qkxw4gnc.js} +5 -4
- package/dist/chunks/{reference-xh0dkm7j.js → event-logger-qpxzqy01.js} +1 -1
- package/dist/chunks/{reference-s4nkbdgv.js → event-logger-qy3e6rw6.js} +7 -7
- package/dist/chunks/{reference-qz5gwjr7.js → event-logger-qz5gwjr7.js} +3 -3
- package/dist/chunks/{reference-g0z4yfdj.js → event-logger-r6n0mc8a.js} +52 -48
- package/dist/chunks/{reference-gte2a4bk.js → event-logger-r7a2r1m6.js} +18 -33
- package/dist/chunks/{reference-r7z6wjth.js → event-logger-r7z6wjth.js} +1 -1
- package/dist/chunks/{reference-r9d3d23r.js → event-logger-r9d3d23r.js} +1 -1
- package/dist/chunks/{reference-pdq2xh3y.js → event-logger-r9eqmc8s.js} +7 -7
- package/dist/chunks/{reference-rahat93a.js → event-logger-rahat93a.js} +1 -1
- package/dist/chunks/{reference-7epmrnkh.js → event-logger-rezbca9p.js} +11 -11
- package/dist/chunks/{reference-dxcg1gpj.js → event-logger-rg8m7c20.js} +2 -2
- package/dist/chunks/{reference-rr7wbarq.js → event-logger-rr7wbarq.js} +1 -1
- package/dist/chunks/{reference-2xn0r9vb.js → event-logger-rw0wpwwx.js} +15 -15
- package/dist/chunks/{reference-s32nnj3r.js → event-logger-s32nnj3r.js} +1 -1
- package/dist/chunks/{reference-bwqptwn6.js → event-logger-shpran1t.js} +7 -7
- package/dist/chunks/{reference-fkf3c53e.js → event-logger-sn8j54fn.js} +8 -8
- package/dist/chunks/{reference-x7g08g2m.js → event-logger-snaeak2t.js} +3 -3
- package/dist/chunks/{reference-j32vdj8r.js → event-logger-snpn6bap.js} +3 -6
- package/dist/chunks/{reference-z6zhg99y.js → event-logger-sx32kxcj.js} +13 -13
- package/dist/chunks/{reference-73zc7acq.js → event-logger-t1t3wgqy.js} +4 -4
- package/dist/chunks/{reference-ty5gs0vf.js → event-logger-ta3m9k5q.js} +30 -18
- package/dist/chunks/{reference-wv8n739s.js → event-logger-thpgkbc3.js} +6 -6
- package/dist/chunks/{reference-zqygmzvz.js → event-logger-txgyjqwh.js} +8 -8
- package/dist/chunks/{reference-fkdrrz2d.js → event-logger-v1m6ft8e.js} +8 -5
- package/dist/chunks/{reference-vyxqdbzy.js → event-logger-v7p6trqn.js} +5 -5
- package/dist/chunks/{reference-ramface9.js → event-logger-va0cyycw.js} +8 -8
- package/dist/chunks/{reference-9kywsdzv.js → event-logger-vby4rget.js} +6 -6
- package/dist/chunks/{reference-vcwr2vpf.js → event-logger-vcwr2vpf.js} +1 -1
- package/dist/chunks/{reference-sawwddx8.js → event-logger-vd3sdp2r.js} +18 -18
- package/dist/chunks/{reference-98a24b06.js → event-logger-vnbqnfbp.js} +95 -95
- package/dist/chunks/{reference-7w4qx9zy.js → event-logger-vtw5d7yb.js} +4 -4
- package/dist/chunks/{reference-jghhn6h0.js → event-logger-vw7aptj1.js} +4 -4
- package/dist/chunks/{reference-qp1z2q9w.js → event-logger-vy2v88c7.js} +25 -33
- package/dist/chunks/{reference-vynk8zbr.js → event-logger-vynk8zbr.js} +1 -1
- package/dist/chunks/{reference-w5r9s7kx.js → event-logger-w5r9s7kx.js} +1 -1
- package/dist/chunks/{reference-567c56db.js → event-logger-w659emnr.js} +5 -5
- package/dist/chunks/{reference-wbkt8qpj.js → event-logger-wbkt8qpj.js} +1 -1
- package/dist/chunks/{reference-wdqva41w.js → event-logger-wdqva41w.js} +1 -1
- package/dist/chunks/{reference-wf5w4wph.js → event-logger-wf5w4wph.js} +1 -1
- package/dist/chunks/{reference-wmxdh12w.js → event-logger-wmxdh12w.js} +1 -1
- package/dist/chunks/{reference-xxphcf1f.js → event-logger-wntga0jy.js} +14 -14
- package/dist/chunks/{reference-rzv103sq.js → event-logger-x3tdcr34.js} +7 -4
- package/dist/chunks/{reference-x3vb5b1t.js → event-logger-x3vb5b1t.js} +1 -1
- package/dist/chunks/{reference-x4az4y7r.js → event-logger-x4az4y7r.js} +1 -1
- package/dist/chunks/{reference-9nyt8zyy.js → event-logger-x9jcn2rd.js} +6 -6
- package/dist/chunks/{reference-ftjbsen0.js → event-logger-xc7tt4dr.js} +3 -3
- package/dist/chunks/{reference-xdb88cdw.js → event-logger-xdb88cdw.js} +2 -2
- package/dist/chunks/{reference-jesbcz0e.js → event-logger-xdbcpqje.js} +2 -2
- package/dist/chunks/{reference-2x0ckx01.js → event-logger-xe02v0q7.js} +2 -2
- package/dist/chunks/{reference-c8z1ewty.js → event-logger-xtqs7d5w.js} +2 -2
- package/dist/chunks/{reference-xws7arpm.js → event-logger-xws7arpm.js} +1 -1
- package/dist/chunks/{reference-hgf74c4y.js → event-logger-ydjr7n73.js} +13 -13
- package/dist/chunks/{reference-pw0qjder.js → event-logger-ykct3tqj.js} +13 -13
- package/dist/chunks/{reference-9ex87gzq.js → event-logger-yvgr2m8p.js} +14 -14
- package/dist/chunks/{reference-zgfz4nwa.js → event-logger-z2xdydfc.js} +13 -13
- package/dist/chunks/{reference-0kz3ajyp.js → event-logger-z4wj20et.js} +30 -30
- package/dist/chunks/{reference-5gzv38nr.js → event-logger-z7sxqf8x.js} +14 -14
- package/dist/chunks/{reference-z8c1ty6e.js → event-logger-z8c1ty6e.js} +1 -1
- package/dist/chunks/{reference-vd8gzy68.js → event-logger-z9v87wg9.js} +16 -15
- package/dist/chunks/{reference-zbqqnp0n.js → event-logger-zbqqnp0n.js} +1 -1
- package/dist/chunks/{reference-1e3g1ft9.js → event-logger-zef5gtky.js} +7 -7
- package/dist/chunks/{reference-fddsdmdf.js → event-logger-zh3jcm0q.js} +2 -2
- package/dist/chunks/{reference-yyskhrw5.js → event-logger-zhwqdhdj.js} +6 -6
- package/dist/chunks/{reference-rv2n9m0t.js → event-logger-zmbmd7xf.js} +2 -2
- package/dist/chunks/{reference-2cehtecm.js → event-logger-zmvw3ptf.js} +6 -6
- package/dist/chunks/{reference-zn935gjz.js → event-logger-zn935gjz.js} +1 -1
- package/dist/chunks/{reference-8jwkk0nn.js → event-logger-zseh86v1.js} +2 -2
- package/dist/chunks/{reference-c1qrh1pd.js → event-logger-zsq8es3s.js} +5 -5
- package/dist/chunks/{reference-zyyhrfr9.js → event-logger-zyyhrfr9.js} +1 -1
- package/dist/chunks/{reference-gq0njyjb.js → event-logger-zzr78n57.js} +41 -43
- package/dist/codemode/catalog.js +2 -2
- package/dist/codemode/instructions.js +4 -4
- package/dist/codemode/tool.js +4 -4
- package/dist/command.js +70 -70
- package/dist/config/markdown.js +2 -2
- package/dist/config/normalize.js +20 -20
- package/dist/config/plugin/agent.js +127 -127
- package/dist/config/plugin/command.js +113 -113
- package/dist/config/plugin/compaction.js +166 -166
- package/dist/config/plugin/entry-observer.js +109 -109
- package/dist/config/plugin/formatter.js +114 -114
- package/dist/config/plugin/image.js +126 -126
- package/dist/config/plugin/instruction.js +85 -85
- package/dist/config/plugin/location-watcher.js +112 -112
- package/dist/config/plugin/mcp.js +122 -122
- package/dist/config/plugin/policy.js +111 -111
- package/dist/config/plugin/provider.js +110 -110
- package/dist/config/plugin/reference.js +114 -114
- package/dist/config/plugin/shell.js +113 -113
- package/dist/config/plugin/skill-file.js +98 -98
- package/dist/config/plugin/skill.js +130 -130
- package/dist/config/plugin/snapshot.js +112 -112
- package/dist/config/plugin/source.js +110 -110
- package/dist/config/plugin/tool-output.js +114 -114
- package/dist/config/plugin/websearch.js +110 -110
- package/dist/config/variable.js +4 -4
- package/dist/config.js +108 -108
- package/dist/credential/sql.js +3 -3
- package/dist/credential.js +71 -71
- package/dist/database/database.js +65 -65
- package/dist/database/drizzle/effect-sqlite/driver.js +13 -13
- package/dist/database/drizzle/effect-sqlite/index.js +13 -13
- package/dist/database/drizzle/effect-sqlite/session.js +12 -12
- package/dist/database/drizzle/index.js +14 -14
- package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/index.js +19 -19
- package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/session.js +11 -11
- package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
- package/dist/database/drizzle.js +15 -15
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
- package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
- package/dist/database/migration/20260225215848_workspace.js +2 -2
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
- package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
- package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
- package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
- package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
- package/dist/database/migration/20260323234822_events.js +2 -2
- package/dist/database/migration/20260410174513_workspace-name.js +2 -2
- package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
- package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
- package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
- package/dist/database/migration/20260428004200_add_session_path.js +2 -2
- package/dist/database/migration/20260501142318_next_venus.js +2 -2
- package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
- package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
- package/dist/database/migration/20260510033149_session_usage.js +2 -2
- package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
- package/dist/database/migration/20260511173437_session-metadata.js +2 -2
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
- package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
- package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
- package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
- package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
- package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
- package/dist/database/migration/20260611035744_credential.js +2 -2
- package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
- package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
- package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
- package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
- package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
- package/dist/database/migration/20260812181746_session_inbox.js +2 -2
- package/dist/database/migration/20260812213948_worktree.js +2 -2
- package/dist/database/migration/20260819222447_session_viewed_state.js +2 -2
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +2 -2
- package/dist/database/migration.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- package/dist/database/path.js +3 -3
- package/dist/database/schema.gen.js +2 -2
- package/dist/database/schema.sql.js +2 -2
- package/dist/database/sqlite.bun.js +2 -2
- package/dist/database/sqlite.js +2 -2
- package/dist/database/sqlite.node.js +2 -2
- package/dist/database/sqlite.workerd.js +2 -2
- package/dist/database/v1-migration.bun.js +77 -77
- package/dist/database/v1-migration.js +2 -2
- package/dist/database/v1-migration.noop.js +1 -1
- package/dist/effect/app-node-builder.js +342 -340
- package/dist/effect/app-node-platform.js +3 -3
- package/dist/effect/keyed-mutex.js +2 -2
- package/dist/effect/websocket-constructor.js +2 -2
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +86 -86
- package/dist/environment/exec-defaults.js +3 -3
- package/dist/environment/files.js +2 -2
- package/dist/environment/index.js +88 -88
- package/dist/environment/local.js +3 -3
- package/dist/environment/memory.js +3 -3
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +2 -2
- package/dist/event-logger.js +68 -68
- package/dist/file-mutation.js +87 -87
- package/dist/file-retention.js +2 -2
- package/dist/file.js +2 -2
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +2 -2
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +3 -3
- package/dist/filesystem/location-watcher.js +217 -216
- package/dist/filesystem/protected.js +2 -2
- package/dist/filesystem/search.js +91 -91
- package/dist/filesystem/watcher-binding.js +2 -2
- package/dist/filesystem/watcher.js +4 -4
- package/dist/filesystem.js +92 -92
- package/dist/form.js +69 -69
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +80 -80
- package/dist/generate.js +84 -84
- package/dist/git.js +5 -5
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
- package/dist/github-copilot/chat/get-response-metadata.js +2 -2
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
- package/dist/github-copilot/copilot-provider.js +20 -20
- package/dist/github-copilot/models.js +4 -4
- package/dist/github-copilot/openai-compatible-error.js +2 -2
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +2 -2
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
- package/dist/github-copilot/responses/openai-error.js +2 -2
- package/dist/github-copilot/responses/openai-responses-language-model.js +11 -11
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
- package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
- package/dist/github-copilot/responses/tool/file-search.js +2 -2
- package/dist/github-copilot/responses/tool/image-generation.js +2 -2
- package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
- package/dist/github-copilot/responses/tool/web-search.js +2 -2
- package/dist/id/id.js +2 -2
- package/dist/image/photon-wasm.bun.js +1 -1
- package/dist/image/photon-wasm.node.js +1 -1
- package/dist/image/photon-wasm.workerd.js +1 -1
- package/dist/image/photon.js +94 -94
- package/dist/image.js +94 -94
- package/dist/instance/service.js +2 -2
- package/dist/instance.js +341 -339
- package/dist/instruction-discovery.js +72 -72
- package/dist/instructions/builtins.js +80 -80
- package/dist/instructions/index.js +2 -2
- package/dist/integration/connection.js +2 -2
- package/dist/integration.js +75 -75
- package/dist/job.js +72 -72
- package/dist/kv/sql.js +3 -3
- package/dist/kv.js +68 -68
- package/dist/location-activity.js +82 -82
- package/dist/location-mutation.js +79 -79
- package/dist/location-service-map.js +79 -79
- package/dist/location-services.js +342 -340
- package/dist/location.js +78 -78
- package/dist/mcp/client.js +87 -87
- package/dist/mcp/index.js +93 -93
- package/dist/mcp/instructions.js +122 -122
- package/dist/mcp/oauth.js +2 -2
- package/dist/mcp/stdio.js +87 -87
- package/dist/mime.js +2 -2
- package/dist/model-resolver.js +81 -81
- package/dist/model.js +3 -3
- package/dist/models-dev.js +75 -75
- package/dist/oauth/page.js +2 -2
- package/dist/permission/saved.js +71 -71
- package/dist/permission/sql.js +6 -6
- package/dist/permission.js +95 -95
- package/dist/persistent-pty/binary.bun.js +2 -2
- package/dist/persistent-pty/binary.node.js +1 -1
- package/dist/persistent-pty/binary.workerd.js +1 -1
- package/dist/persistent-pty/daemon.js +2 -2
- package/dist/persistent-pty/index.js +73 -73
- package/dist/persistent-pty/pty-binding.js +2 -2
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +96 -96
- package/dist/plugin/command.js +94 -94
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +214 -213
- package/dist/plugin/instance.js +2 -2
- package/dist/plugin/internal.js +313 -311
- package/dist/plugin/mcp-codemode-exclusion.js +2 -2
- package/dist/plugin/models-dev.js +76 -76
- package/dist/plugin/module.js +3 -3
- package/dist/plugin/plan.js +96 -96
- package/dist/plugin/promise.js +2 -2
- package/dist/plugin/provider/alibaba.js +3 -3
- package/dist/plugin/provider/amazon-bedrock.js +3 -3
- package/dist/plugin/provider/anthropic.js +3 -3
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +3 -3
- package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
- package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
- package/dist/plugin/provider/cohere.js +3 -3
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/dynamic.js +3 -3
- package/dist/plugin/provider/factory.js +2 -2
- package/dist/plugin/provider/gateway.js +3 -3
- package/dist/plugin/provider/github-copilot.js +82 -82
- package/dist/plugin/provider/gitlab.js +4 -4
- package/dist/plugin/provider/google-vertex.js +3 -3
- package/dist/plugin/provider/kilo.js +3 -3
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +115 -115
- package/dist/plugin/provider/mistral.js +3 -3
- package/dist/plugin/provider/nvidia.js +3 -3
- package/dist/plugin/provider/ollama.js +115 -115
- package/dist/plugin/provider/openai-compatible.js +2 -2
- package/dist/plugin/provider/openai.js +79 -79
- package/dist/plugin/provider/opencode.js +77 -77
- package/dist/plugin/provider/openrouter.js +4 -4
- package/dist/plugin/provider/perplexity.js +3 -3
- package/dist/plugin/provider/sap-ai-core.js +4 -4
- package/dist/plugin/provider/sdk-factory.js +2 -2
- package/dist/plugin/provider/snowflake-cortex.js +3 -3
- package/dist/plugin/provider/venice.js +3 -3
- package/dist/plugin/provider/vercel.js +3 -3
- package/dist/plugin/provider/vllm.js +115 -115
- package/dist/plugin/provider/xai.js +78 -78
- package/dist/plugin/provider/zenmux.js +3 -3
- package/dist/plugin/provider.js +154 -154
- package/dist/plugin/sdk.js +69 -69
- package/dist/plugin/service.js +11 -0
- package/dist/plugin/skill.js +127 -127
- package/dist/plugin/source-directory.js +2 -4
- package/dist/plugin/supervisor.js +328 -326
- package/dist/plugin/system-prompt.js +2 -2
- package/dist/plugin/update.js +3 -3
- package/dist/plugin/variant.js +3 -3
- package/dist/plugin/vcs/git.js +82 -82
- package/dist/plugin/vcs/hg.js +82 -82
- package/dist/plugin/warming.js +109 -109
- package/dist/plugin/websearch/exa.js +4 -4
- package/dist/plugin/websearch/firecrawl.js +5 -5
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +5 -5
- package/dist/plugin/websearch/tavily.js +3 -3
- package/dist/plugin.js +219 -215
- package/dist/project/schema.js +3 -3
- package/dist/project/sql.js +5 -5
- package/dist/project.js +77 -77
- package/dist/provider.js +2 -2
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/pty.bun.js +1 -1
- package/dist/pty/pty.node.js +1 -1
- package/dist/pty/pty.workerd.js +1 -1
- package/dist/pty/schema.js +2 -2
- package/dist/pty/ticket.js +2 -2
- package/dist/pty.js +84 -84
- package/dist/reference/instructions.js +80 -80
- package/dist/reference.js +78 -78
- package/dist/repository-cache.js +74 -74
- package/dist/repository.js +2 -2
- package/dist/ripgrep/binary.js +3 -3
- package/dist/ripgrep.js +89 -89
- package/dist/rpc.js +79 -79
- package/dist/schema.js +2 -2
- package/dist/session/command.js +73 -72
- package/dist/session/compaction.js +138 -138
- package/dist/session/context.js +150 -150
- package/dist/session/environment.js +3 -3
- package/dist/session/error.js +4 -4
- package/dist/session/event.js +2 -2
- package/dist/session/execution/restart.js +208 -207
- package/dist/session/execution.js +117 -117
- package/dist/session/generate.js +153 -152
- package/dist/session/history.js +77 -77
- package/dist/session/inbox.js +77 -77
- package/dist/session/info.js +4 -4
- package/dist/session/instruction-entry.js +73 -73
- package/dist/session/instruction-state.js +10 -10
- package/dist/session/instructions.js +89 -89
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +2 -2
- package/dist/session/model-request.js +134 -134
- package/dist/session/model-transport.js +5 -5
- package/dist/session/move.js +80 -80
- package/dist/session/projector.js +83 -83
- package/dist/session/prompt.js +115 -114
- package/dist/session/revert.js +87 -87
- package/dist/session/run-coordinator.js +2 -2
- package/dist/session/runner/index.js +84 -84
- package/dist/session/runner/llm.js +224 -223
- package/dist/session/runner/max-steps.js +2 -2
- package/dist/session/runner/model.js +83 -83
- package/dist/session/runner/publish-llm-event.js +4 -4
- package/dist/session/runner/retry.js +72 -72
- package/dist/session/runner/step.js +143 -143
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +2 -2
- package/dist/session/session.js +171 -170
- package/dist/session/shell.js +130 -129
- package/dist/session/skill.js +99 -98
- package/dist/session/sql.js +6 -6
- package/dist/session/stats.js +71 -71
- package/dist/session/store.js +79 -79
- package/dist/session/subagent-completion.js +2 -2
- package/dist/session/system-prompt.js +2 -2
- package/dist/session/title.js +152 -152
- package/dist/session/to-session-error.js +108 -108
- package/dist/session/transfer.js +207 -206
- package/dist/session/usage.js +2 -2
- package/dist/session.js +205 -204
- package/dist/shell/parse.js +7 -7
- package/dist/shell/parser-wasm.bun.js +1 -1
- package/dist/shell/parser-wasm.node.js +1 -1
- package/dist/shell/parser-wasm.workerd.js +1 -1
- package/dist/shell/result.js +2 -2
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +4 -4
- package/dist/shell.js +127 -127
- package/dist/skill/discovery.js +3 -3
- package/dist/skill/instructions.js +97 -97
- package/dist/skill.js +96 -96
- package/dist/snapshot.js +80 -80
- package/dist/state.js +8 -4
- package/dist/tool/html-markdown.js +2 -2
- package/dist/tool/http-body.js +2 -2
- package/dist/tool/mcp.js +121 -121
- package/dist/tool/plugin/edit.js +108 -108
- package/dist/tool/plugin/file-diff.js +2 -2
- package/dist/tool/plugin/glob.js +111 -111
- package/dist/tool/plugin/grep.js +111 -111
- package/dist/tool/plugin/opencode.js +11 -0
- package/dist/tool/plugin/patch.js +108 -108
- package/dist/tool/plugin/question.js +97 -97
- package/dist/tool/plugin/read.js +114 -114
- package/dist/tool/plugin/shell.js +208 -207
- package/dist/tool/plugin/skill.js +97 -97
- package/dist/tool/plugin/subagent.js +207 -206
- package/dist/tool/plugin/webfetch.js +98 -98
- package/dist/tool/plugin/websearch.js +100 -100
- package/dist/tool/plugin/write.js +108 -108
- package/dist/tool/read-filesystem.js +94 -94
- package/dist/tool/runtime.js +2 -2
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +114 -114
- package/dist/types/agent.d.ts +2 -2
- package/dist/types/catalog.d.ts +2 -2
- package/dist/types/command.d.ts +2 -2
- package/dist/types/filesystem/location-watcher-policy.d.ts +2 -2
- package/dist/types/filesystem/watcher.d.ts +4 -2
- package/dist/types/filesystem.d.ts +1 -0
- package/dist/types/formatter.d.ts +2 -2
- package/dist/types/image.d.ts +2 -2
- package/dist/types/instruction-discovery.d.ts +2 -2
- package/dist/types/integration.d.ts +2 -2
- package/dist/types/mcp/index.d.ts +2 -2
- package/dist/types/model-resolver.d.ts +1 -1
- package/dist/types/plugin/module.d.ts +4 -1
- package/dist/types/plugin/service.d.ts +32 -0
- package/dist/types/plugin/source-directory.d.ts +1 -2
- package/dist/types/plugin.d.ts +2 -25
- package/dist/types/provider.d.ts +1 -1
- package/dist/types/reference.d.ts +2 -2
- package/dist/types/session/compaction.d.ts +13 -12
- package/dist/types/session/model-request.d.ts +5 -4
- package/dist/types/shell/select.d.ts +2 -2
- package/dist/types/skill.d.ts +2 -2
- package/dist/types/snapshot.d.ts +2 -2
- package/dist/types/state.d.ts +34 -24
- package/dist/types/tool/plugin/glob.d.ts +1 -0
- package/dist/types/tool/plugin/opencode.d.ts +14 -0
- package/dist/types/tool-output.d.ts +2 -2
- package/dist/types/tool.d.ts +2 -2
- package/dist/types/v1/config/migrate.d.ts +1 -1
- package/dist/types/vcs.d.ts +2 -2
- package/dist/types/websearch.d.ts +2 -2
- package/dist/util/array.js +1 -1
- package/dist/util/error.js +2 -2
- package/dist/util/identifier.js +1 -1
- package/dist/util/iife.js +2 -2
- package/dist/util/lazy.js +2 -2
- package/dist/util/process-lock-ffi.bun.js +1 -1
- package/dist/util/process-lock-ffi.node.js +1 -1
- package/dist/util/process-lock-ffi.workerd.js +1 -1
- package/dist/util/process-lock.js +1 -1
- package/dist/util/slug.js +2 -2
- package/dist/util/token.js +2 -2
- package/dist/util/which.js +2 -2
- package/dist/util/wildcard.js +2 -2
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +2 -2
- package/dist/v1/config/config.js +15 -15
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/formatter.js +2 -2
- package/dist/v1/config/layout.js +2 -2
- package/dist/v1/config/lsp.js +2 -2
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +19 -19
- package/dist/v1/config/permission.js +2 -2
- package/dist/v1/config/plugin.js +2 -2
- package/dist/v1/config/provider-options.js +2 -2
- package/dist/v1/config/provider.js +3 -3
- package/dist/v1/config/server.js +3 -3
- package/dist/v1/config/skills.js +2 -2
- package/dist/v1/permission.js +1 -1
- package/dist/vcs/patch.js +2 -2
- package/dist/vcs.js +81 -81
- package/dist/websearch.js +73 -73
- package/dist/wellknown/plugin.js +73 -73
- package/dist/wellknown.js +72 -72
- package/dist/workspace/driver.js +2 -2
- package/dist/workspace/sql.js +2 -2
- package/dist/workspace.js +69 -69
- package/dist/worktree/directory.js +3 -3
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/sql.js +6 -6
- package/dist/worktree.js +82 -82
- package/package.json +8 -7
- package/dist/chunks/reference-b7rje112.js +0 -139
- /package/dist/chunks/{reference-0cgt0xh2.js → event-logger-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{reference-0f48qthw.js → event-logger-0f48qthw.js} +0 -0
- /package/dist/chunks/{reference-0zz82cjq.js → event-logger-0zz82cjq.js} +0 -0
- /package/dist/chunks/{reference-1fb7bmpf.js → event-logger-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{reference-1wcz8fvj.js → event-logger-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{reference-29n7vfk2.js → event-logger-29n7vfk2.js} +0 -0
- /package/dist/chunks/{reference-2qdx6zz3.js → event-logger-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{reference-2xb0r1c6.js → event-logger-2xb0r1c6.js} +0 -0
- /package/dist/chunks/{reference-39ktntah.js → event-logger-39ktntah.js} +0 -0
- /package/dist/chunks/{reference-3g3rpp2x.js → event-logger-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{reference-3w3ybtfd.js → event-logger-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{reference-47ty4mvs.js → event-logger-47ty4mvs.js} +0 -0
- /package/dist/chunks/{reference-4b2tz2m9.js → event-logger-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{reference-5a5ch9ts.js → event-logger-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{reference-5va1yh78.js → event-logger-5va1yh78.js} +0 -0
- /package/dist/chunks/{reference-61ek4hj9.js → event-logger-61ek4hj9.js} +0 -0
- /package/dist/chunks/{reference-69qrqpw0.js → event-logger-69qrqpw0.js} +0 -0
- /package/dist/chunks/{reference-6zqxzw0a.js → event-logger-6zqxzw0a.js} +0 -0
- /package/dist/chunks/{reference-7n9qwqk4.js → event-logger-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{reference-8nn8kqcn.js → event-logger-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{reference-8rpfd2h6.js → event-logger-8rpfd2h6.js} +0 -0
- /package/dist/chunks/{reference-8sj3ajy5.js → event-logger-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{reference-8w9tzfz1.js → event-logger-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{reference-906y0b6d.js → event-logger-906y0b6d.js} +0 -0
- /package/dist/chunks/{reference-9dct5xhx.js → event-logger-9dct5xhx.js} +0 -0
- /package/dist/chunks/{reference-9maxscqf.js → event-logger-9maxscqf.js} +0 -0
- /package/dist/chunks/{reference-9sdtsapf.js → event-logger-9sdtsapf.js} +0 -0
- /package/dist/chunks/{reference-a02svayp.js → event-logger-a02svayp.js} +0 -0
- /package/dist/chunks/{reference-a83yvq99.js → event-logger-a83yvq99.js} +0 -0
- /package/dist/chunks/{reference-ayevdmef.js → event-logger-ayevdmef.js} +0 -0
- /package/dist/chunks/{reference-b02txbh8.js → event-logger-b02txbh8.js} +0 -0
- /package/dist/chunks/{reference-bbqs2y60.js → event-logger-bbqs2y60.js} +0 -0
- /package/dist/chunks/{reference-bjwj8hwv.js → event-logger-bjwj8hwv.js} +0 -0
- /package/dist/chunks/{reference-brsh5f65.js → event-logger-brsh5f65.js} +0 -0
- /package/dist/chunks/{reference-bxdhjb3y.js → event-logger-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{reference-bybkghrn.js → event-logger-bybkghrn.js} +0 -0
- /package/dist/chunks/{reference-c77ad0vh.js → event-logger-c77ad0vh.js} +0 -0
- /package/dist/chunks/{reference-cm67rqy2.js → event-logger-cm67rqy2.js} +0 -0
- /package/dist/chunks/{reference-df3v2q6j.js → event-logger-df3v2q6j.js} +0 -0
- /package/dist/chunks/{reference-dhcq6c44.js → event-logger-dhcq6c44.js} +0 -0
- /package/dist/chunks/{reference-dht5baf0.js → event-logger-dht5baf0.js} +0 -0
- /package/dist/chunks/{reference-dkmkay92.js → event-logger-dkmkay92.js} +0 -0
- /package/dist/chunks/{reference-ehj9csmv.js → event-logger-ehj9csmv.js} +0 -0
- /package/dist/chunks/{reference-em6xpscd.js → event-logger-em6xpscd.js} +0 -0
- /package/dist/chunks/{reference-emmqknsm.js → event-logger-emmqknsm.js} +0 -0
- /package/dist/chunks/{reference-ezs3tagn.js → event-logger-ezs3tagn.js} +0 -0
- /package/dist/chunks/{reference-f14r7hfz.js → event-logger-f14r7hfz.js} +0 -0
- /package/dist/chunks/{reference-f1jj19e8.js → event-logger-f1jj19e8.js} +0 -0
- /package/dist/chunks/{reference-f4cp4g4a.js → event-logger-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{reference-faypg4r1.js → event-logger-faypg4r1.js} +0 -0
- /package/dist/chunks/{reference-fg7fz4q3.js → event-logger-fg7fz4q3.js} +0 -0
- /package/dist/chunks/{reference-fgbfdq62.js → event-logger-fgbfdq62.js} +0 -0
- /package/dist/chunks/{reference-g23fad86.js → event-logger-g23fad86.js} +0 -0
- /package/dist/chunks/{reference-gd5xeqc2.js → event-logger-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{reference-ghm4673n.js → event-logger-ghm4673n.js} +0 -0
- /package/dist/chunks/{reference-ghwjy7my.js → event-logger-ghwjy7my.js} +0 -0
- /package/dist/chunks/{reference-gy500k2r.js → event-logger-gy500k2r.js} +0 -0
- /package/dist/chunks/{reference-hzeg9cfr.js → event-logger-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{reference-j07kk359.js → event-logger-j07kk359.js} +0 -0
- /package/dist/chunks/{reference-jqms80b0.js → event-logger-jqms80b0.js} +0 -0
- /package/dist/chunks/{reference-jve7t217.js → event-logger-jve7t217.js} +0 -0
- /package/dist/chunks/{reference-k3e42drn.js → event-logger-k3e42drn.js} +0 -0
- /package/dist/chunks/{reference-k8b45nas.js → event-logger-k8b45nas.js} +0 -0
- /package/dist/chunks/{reference-kpdbz7gn.js → event-logger-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{reference-kxy11nzk.js → event-logger-kxy11nzk.js} +0 -0
- /package/dist/chunks/{reference-kyyqvx4s.js → event-logger-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{reference-m8cbvarh.js → event-logger-m8cbvarh.js} +0 -0
- /package/dist/chunks/{reference-ma60vzgv.js → event-logger-ma60vzgv.js} +0 -0
- /package/dist/chunks/{reference-n3m50c2t.js → event-logger-n3m50c2t.js} +0 -0
- /package/dist/chunks/{reference-nkm1m8dz.js → event-logger-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{reference-nsc0c3zb.js → event-logger-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{reference-qaarhjrp.js → event-logger-qaarhjrp.js} +0 -0
- /package/dist/chunks/{reference-qc167nrn.js → event-logger-qc167nrn.js} +0 -0
- /package/dist/chunks/{reference-qp95y4jb.js → event-logger-qp95y4jb.js} +0 -0
- /package/dist/chunks/{reference-r8f4w671.js → event-logger-r8f4w671.js} +0 -0
- /package/dist/chunks/{reference-rdfev9jy.js → event-logger-rdfev9jy.js} +0 -0
- /package/dist/chunks/{reference-s7whb9gt.js → event-logger-s7whb9gt.js} +0 -0
- /package/dist/chunks/{reference-se76j685.js → event-logger-se76j685.js} +0 -0
- /package/dist/chunks/{reference-sem2g21k.js → event-logger-sem2g21k.js} +0 -0
- /package/dist/chunks/{reference-sp575ygv.js → event-logger-sp575ygv.js} +0 -0
- /package/dist/chunks/{reference-tmb1f636.js → event-logger-tmb1f636.js} +0 -0
- /package/dist/chunks/{reference-ttxf0gsy.js → event-logger-ttxf0gsy.js} +0 -0
- /package/dist/chunks/{reference-tvmhrvfj.js → event-logger-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{reference-v2adqbbe.js → event-logger-v2adqbbe.js} +0 -0
- /package/dist/chunks/{reference-vac9eqd2.js → event-logger-vac9eqd2.js} +0 -0
- /package/dist/chunks/{reference-vpjkya7h.js → event-logger-vpjkya7h.js} +0 -0
- /package/dist/chunks/{reference-wj4sxzqa.js → event-logger-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{reference-wwntjmk1.js → event-logger-wwntjmk1.js} +0 -0
- /package/dist/chunks/{reference-wyqjaaa5.js → event-logger-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{reference-x4q807cx.js → event-logger-x4q807cx.js} +0 -0
- /package/dist/chunks/{reference-yrqrg4vp.js → event-logger-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{reference-z47nswr2.js → event-logger-z47nswr2.js} +0 -0
- /package/dist/chunks/{reference-zsf8rs93.js → event-logger-zsf8rs93.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_state
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./event-logger-dyrfpcd0.js";
|
|
4
4
|
import {
|
|
5
5
|
__export,
|
|
6
6
|
__require
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./event-logger-vpjkya7h.js";
|
|
8
8
|
|
|
9
9
|
// src/image.ts
|
|
10
10
|
var exports_image = {};
|
|
@@ -54,16 +54,16 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
54
54
|
maxHeight: 2000,
|
|
55
55
|
maxBase64Bytes: 5 * 1024 * 1024
|
|
56
56
|
}),
|
|
57
|
-
|
|
57
|
+
editor: (editor) => ({
|
|
58
58
|
configure: (limits) => {
|
|
59
59
|
if (limits.autoResize !== undefined)
|
|
60
|
-
|
|
60
|
+
editor.autoResize = limits.autoResize;
|
|
61
61
|
if (limits.maxWidth !== undefined)
|
|
62
|
-
|
|
62
|
+
editor.maxWidth = limits.maxWidth;
|
|
63
63
|
if (limits.maxHeight !== undefined)
|
|
64
|
-
|
|
64
|
+
editor.maxHeight = limits.maxHeight;
|
|
65
65
|
if (limits.maxBase64Bytes !== undefined)
|
|
66
|
-
|
|
66
|
+
editor.maxBase64Bytes = limits.maxBase64Bytes;
|
|
67
67
|
}
|
|
68
68
|
})
|
|
69
69
|
});
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
exports_service as exports_service2
|
|
3
|
+
} from "./event-logger-esv5q40e.js";
|
|
1
4
|
import {
|
|
2
5
|
exports_service
|
|
3
|
-
} from "./
|
|
6
|
+
} from "./event-logger-6bxzghb6.js";
|
|
4
7
|
import {
|
|
5
8
|
exports_shell
|
|
6
|
-
} from "./
|
|
9
|
+
} from "./event-logger-6x09n4m4.js";
|
|
7
10
|
import {
|
|
8
11
|
exports_result
|
|
9
|
-
} from "./
|
|
12
|
+
} from "./event-logger-5y5kqjze.js";
|
|
10
13
|
import {
|
|
11
14
|
__export
|
|
12
|
-
} from "./
|
|
15
|
+
} from "./event-logger-vpjkya7h.js";
|
|
13
16
|
|
|
14
17
|
// src/session/shell.ts
|
|
15
18
|
var exports_shell2 = {};
|
|
@@ -20,7 +23,7 @@ __export(exports_shell2, {
|
|
|
20
23
|
import { Effect } from "effect";
|
|
21
24
|
var start = Effect.fn("SessionShell.start")(function* (input) {
|
|
22
25
|
const instances = yield* exports_service.Service;
|
|
23
|
-
const shell = yield*
|
|
26
|
+
const shell = yield* exports_service2.awaitActivation.pipe(Effect.andThen(exports_shell.Service), instances.provide(input.session));
|
|
24
27
|
const info = yield* shell.create({
|
|
25
28
|
command: input.command,
|
|
26
29
|
cwd: input.session.location.directory,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_entry_observer
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./event-logger-mnyszbxc.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_config
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./event-logger-6wskbeqw.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_snapshot
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./event-logger-436nrt40.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./event-logger-vpjkya7h.js";
|
|
13
13
|
|
|
14
14
|
// src/config/plugin/snapshot.ts
|
|
15
15
|
var exports_snapshot2 = {};
|
|
@@ -25,11 +25,11 @@ var Plugin = define({
|
|
|
25
25
|
const config = yield* exports_config.Service;
|
|
26
26
|
const snapshot = yield* exports_snapshot.Service;
|
|
27
27
|
const loaded = yield* exports_entry_observer.observe(config, ctx.event, snapshot.reload());
|
|
28
|
-
yield* snapshot.transform((
|
|
28
|
+
yield* snapshot.transform((editor) => {
|
|
29
29
|
const configured = exports_config.latest(loaded.entries, "snapshots");
|
|
30
30
|
if (configured === undefined)
|
|
31
31
|
return;
|
|
32
|
-
|
|
32
|
+
editor.configure(configured);
|
|
33
33
|
});
|
|
34
34
|
})
|
|
35
35
|
});
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./event-logger-vpjkya7h.js";
|
|
4
|
+
|
|
5
|
+
// src/state.ts
|
|
6
|
+
var exports_state = {};
|
|
7
|
+
__export(exports_state, {
|
|
8
|
+
State: () => exports_state,
|
|
9
|
+
batch: () => batch,
|
|
10
|
+
create: () => create,
|
|
11
|
+
inherit: () => inherit,
|
|
12
|
+
reconcile: () => reconcile,
|
|
13
|
+
shutdown: () => shutdown
|
|
14
|
+
});
|
|
15
|
+
import { Cause, Context, Effect, Exit, Fiber, Scope } from "effect";
|
|
16
|
+
var CurrentBatch = Context.Reference("@opencode/State/CurrentBatch", {
|
|
17
|
+
defaultValue: () => {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
function batch(effect) {
|
|
22
|
+
return run(effect, false);
|
|
23
|
+
}
|
|
24
|
+
function shutdown(effect) {
|
|
25
|
+
return run(effect, true);
|
|
26
|
+
}
|
|
27
|
+
function run(effect, shutdown2) {
|
|
28
|
+
return Effect.uninterruptibleMask((restore) => Effect.gen(function* () {
|
|
29
|
+
const current = yield* CurrentBatch;
|
|
30
|
+
if (current?.active && !shutdown2)
|
|
31
|
+
return yield* restore(effect);
|
|
32
|
+
const batch2 = { active: true, shutdown: shutdown2, notifications: new Set };
|
|
33
|
+
const exit = yield* restore(effect.pipe(Effect.provideService(CurrentBatch, batch2))).pipe(Effect.exit);
|
|
34
|
+
batch2.active = false;
|
|
35
|
+
const notifications = yield* Effect.forEach(batch2.notifications, (notify) => restore(notify).pipe(Effect.exit));
|
|
36
|
+
yield* Exit.asVoidAll([exit, ...notifications]);
|
|
37
|
+
return yield* exit;
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
function reconcile(root, fork, work) {
|
|
41
|
+
return Effect.gen(function* () {
|
|
42
|
+
const exit = yield* Fiber.await(fork(work()));
|
|
43
|
+
if (Exit.isFailure(exit) && root.state._tag === "Closed" && Cause.hasInterruptsOnly(exit.cause))
|
|
44
|
+
return;
|
|
45
|
+
yield* exit;
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
var inherit = Effect.fnUntraced(function* () {
|
|
49
|
+
const batch2 = yield* CurrentBatch;
|
|
50
|
+
return (effect) => Effect.provideService(effect, CurrentBatch, batch2);
|
|
51
|
+
});
|
|
52
|
+
function create(options) {
|
|
53
|
+
let state = options.initial();
|
|
54
|
+
const transforms = [];
|
|
55
|
+
let dirty = false;
|
|
56
|
+
let closed = false;
|
|
57
|
+
const get = () => {
|
|
58
|
+
if (closed || !dirty)
|
|
59
|
+
return state;
|
|
60
|
+
const next = options.initial();
|
|
61
|
+
const editor = options.editor(next);
|
|
62
|
+
for (const transform of transforms)
|
|
63
|
+
transform.run(editor);
|
|
64
|
+
state = next;
|
|
65
|
+
dirty = false;
|
|
66
|
+
return state;
|
|
67
|
+
};
|
|
68
|
+
const notify = Effect.gen(function* () {
|
|
69
|
+
if (closed)
|
|
70
|
+
return;
|
|
71
|
+
const value = get();
|
|
72
|
+
if (options.notify)
|
|
73
|
+
yield* options.notify(value);
|
|
74
|
+
}).pipe(Effect.withSpan("State.notify"));
|
|
75
|
+
const changed = Effect.uninterruptibleMask((restore) => Effect.gen(function* () {
|
|
76
|
+
if (closed)
|
|
77
|
+
return;
|
|
78
|
+
dirty = true;
|
|
79
|
+
const batch2 = yield* CurrentBatch;
|
|
80
|
+
if (batch2?.active) {
|
|
81
|
+
if (batch2.shutdown) {
|
|
82
|
+
closed = true;
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
batch2.notifications.add(notify);
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
yield* restore(notify);
|
|
89
|
+
}));
|
|
90
|
+
return {
|
|
91
|
+
get,
|
|
92
|
+
transform: Effect.fn("State.transform")(function* (update) {
|
|
93
|
+
yield* Effect.annotateCurrentSpan("state", options.name ?? "anonymous");
|
|
94
|
+
const scope = yield* Scope.Scope;
|
|
95
|
+
return yield* Effect.uninterruptible(Effect.gen(function* () {
|
|
96
|
+
const transform = { run: update };
|
|
97
|
+
const dispose = Effect.uninterruptible(Effect.suspend(() => {
|
|
98
|
+
const index = transforms.indexOf(transform);
|
|
99
|
+
if (index < 0)
|
|
100
|
+
return Effect.void;
|
|
101
|
+
transforms.splice(index, 1);
|
|
102
|
+
return changed;
|
|
103
|
+
}));
|
|
104
|
+
transforms.push(transform);
|
|
105
|
+
yield* Scope.addFinalizer(scope, dispose);
|
|
106
|
+
yield* changed;
|
|
107
|
+
return { dispose };
|
|
108
|
+
}));
|
|
109
|
+
}),
|
|
110
|
+
reload: () => changed
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export { batch, shutdown, reconcile, inherit, create, exports_state };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./event-logger-tvmhrvfj.js";
|
|
4
4
|
import {
|
|
5
5
|
lazy
|
|
6
|
-
} from "./
|
|
7
|
-
import {
|
|
8
|
-
exports_location
|
|
9
|
-
} from "./reference-pp6802x5.js";
|
|
6
|
+
} from "./event-logger-8w9tzfz1.js";
|
|
10
7
|
import {
|
|
11
8
|
exports_select
|
|
12
|
-
} from "./
|
|
9
|
+
} from "./event-logger-2qq12ds3.js";
|
|
10
|
+
import {
|
|
11
|
+
exports_location
|
|
12
|
+
} from "./event-logger-90zcexzw.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_bus
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./event-logger-vw7aptj1.js";
|
|
16
16
|
import {
|
|
17
17
|
__export,
|
|
18
18
|
__require
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./event-logger-vpjkya7h.js";
|
|
20
20
|
|
|
21
21
|
// src/pty.ts
|
|
22
22
|
var exports_pty = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_mcp
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./event-logger-etbnsc4s.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./event-logger-vpjkya7h.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/exa.ts
|
|
9
9
|
var exports_exa = {};
|
|
@@ -31,19 +31,19 @@ var Plugin = define({
|
|
|
31
31
|
id: "opencode.websearch.exa",
|
|
32
32
|
effect: Effect.fn("WebSearchExa.Plugin")(function* (ctx) {
|
|
33
33
|
const http = yield* HttpClient.HttpClient;
|
|
34
|
-
yield* ctx.integration.transform((
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
yield* ctx.integration.transform((editor) => {
|
|
35
|
+
editor.update("exa", (integration) => integration.name = "Exa");
|
|
36
|
+
editor.method.update({
|
|
37
37
|
integrationID: "exa",
|
|
38
38
|
method: { type: "key" }
|
|
39
39
|
});
|
|
40
|
-
|
|
40
|
+
editor.method.update({
|
|
41
41
|
integrationID: "exa",
|
|
42
42
|
method: { type: "env", names: ["EXA_API_KEY"] }
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
|
-
yield* ctx.websearch.transform((
|
|
46
|
-
|
|
45
|
+
yield* ctx.websearch.transform((editor) => {
|
|
46
|
+
editor.add({
|
|
47
47
|
id: "exa",
|
|
48
48
|
name: "Exa",
|
|
49
49
|
execute: (input) => Effect.gen(function* () {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
schema_gen_default
|
|
3
|
-
} from "./reference-39ktntah.js";
|
|
4
1
|
import {
|
|
5
2
|
migrations
|
|
6
|
-
} from "./
|
|
3
|
+
} from "./event-logger-ke5mv4q1.js";
|
|
4
|
+
import {
|
|
5
|
+
schema_gen_default
|
|
6
|
+
} from "./event-logger-39ktntah.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./event-logger-vpjkya7h.js";
|
|
10
10
|
|
|
11
11
|
// src/database/migration.ts
|
|
12
12
|
var exports_migration = {};
|
|
@@ -16,11 +16,10 @@ __export(exports_migration, {
|
|
|
16
16
|
applyOnly: () => applyOnly
|
|
17
17
|
});
|
|
18
18
|
import { sql } from "drizzle-orm";
|
|
19
|
-
import { Effect
|
|
19
|
+
import { Effect } from "effect";
|
|
20
20
|
import { supportsForeignKeyToggle } from "#sqlite";
|
|
21
|
-
var lock = Semaphore.makeUnsafe(1);
|
|
22
21
|
function apply(db) {
|
|
23
|
-
return
|
|
22
|
+
return Effect.gen(function* () {
|
|
24
23
|
const tables = yield* db.all(sql`SELECT name FROM sqlite_master WHERE type = 'table' AND name NOT LIKE 'sqlite_%' AND substr(name, 1, 1) <> '_'`);
|
|
25
24
|
if (tables.some((table) => table.name === "session" || table.name === "session_v2"))
|
|
26
25
|
return yield* applyOnly(db, migrations);
|
|
@@ -37,7 +36,7 @@ function apply(db) {
|
|
|
37
36
|
migrations: migrations.length,
|
|
38
37
|
durationMs: Date.now() - started
|
|
39
38
|
});
|
|
40
|
-
})
|
|
39
|
+
});
|
|
41
40
|
}
|
|
42
41
|
function applyOnly(db, input) {
|
|
43
42
|
return Effect.gen(function* () {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_entry_observer
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./event-logger-mnyszbxc.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_config
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./event-logger-6wskbeqw.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_tool_output
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./event-logger-f4vqkfbt.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./event-logger-vpjkya7h.js";
|
|
13
13
|
|
|
14
14
|
// src/config/plugin/tool-output.ts
|
|
15
15
|
var exports_tool_output2 = {};
|
|
@@ -25,11 +25,11 @@ var Plugin = define({
|
|
|
25
25
|
const config = yield* exports_config.Service;
|
|
26
26
|
const output = yield* exports_tool_output.Service;
|
|
27
27
|
const loaded = yield* exports_entry_observer.observe(config, ctx.event, output.reload());
|
|
28
|
-
yield* output.transform((
|
|
28
|
+
yield* output.transform((editor) => {
|
|
29
29
|
const configured = exports_config.latest(loaded.entries, "tool_output");
|
|
30
30
|
if (!configured)
|
|
31
31
|
return;
|
|
32
|
-
|
|
32
|
+
editor.configure({
|
|
33
33
|
...configured.max_lines === undefined ? {} : { maxLines: configured.max_lines },
|
|
34
34
|
...configured.max_bytes === undefined ? {} : { maxBytes: configured.max_bytes }
|
|
35
35
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./event-logger-vpjkya7h.js";
|
|
4
|
+
|
|
5
|
+
// src/plugin/service.ts
|
|
6
|
+
var exports_service = {};
|
|
7
|
+
__export(exports_service, {
|
|
8
|
+
Plugin: () => exports_service,
|
|
9
|
+
Service: () => Service,
|
|
10
|
+
awaitActivation: () => awaitActivation
|
|
11
|
+
});
|
|
12
|
+
import { Context } from "effect";
|
|
13
|
+
|
|
14
|
+
class Service extends Context.Service()("@opencode/Plugin") {
|
|
15
|
+
}
|
|
16
|
+
var awaitActivation = Service.use((plugins) => plugins.awaitActivation);
|
|
17
|
+
|
|
18
|
+
export { Service, awaitActivation, exports_service };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
collectBoundedResponseBody
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./event-logger-jve7t217.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./event-logger-vpjkya7h.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/mcp.ts
|
|
9
9
|
var exports_mcp = {};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_source_directory
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./event-logger-51t2tyks.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_config
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./event-logger-6wskbeqw.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_watcher
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./event-logger-aqq7me5d.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_location
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./event-logger-90zcexzw.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./event-logger-vpjkya7h.js";
|
|
16
16
|
|
|
17
17
|
// src/config/plugin/source.ts
|
|
18
18
|
var exports_source = {};
|
|
@@ -24,10 +24,11 @@ __export(exports_source, {
|
|
|
24
24
|
node: () => node
|
|
25
25
|
});
|
|
26
26
|
import { FSUtil } from "@opencode-ai/util/fs-util";
|
|
27
|
+
import { Host } from "@opencode-ai/plugin/host";
|
|
27
28
|
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
28
29
|
import { Context, Effect, Layer, Option, PubSub, Stream } from "effect";
|
|
29
30
|
import path from "path";
|
|
30
|
-
import { fileURLToPath } from "url";
|
|
31
|
+
import { fileURLToPath, pathToFileURL } from "url";
|
|
31
32
|
class Service extends Context.Service()("@opencode/ConfigPluginSource") {
|
|
32
33
|
}
|
|
33
34
|
var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
@@ -46,7 +47,10 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
46
47
|
if (isPluginSource(entries, operation.target))
|
|
47
48
|
continue;
|
|
48
49
|
watched.add(operation.target);
|
|
49
|
-
const updates = yield* watcher.subscribe({
|
|
50
|
+
const updates = yield* watcher.subscribe({
|
|
51
|
+
path: operation.target,
|
|
52
|
+
type: (yield* fs.isDir(operation.target)) ? "directory" : "file"
|
|
53
|
+
});
|
|
50
54
|
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 }));
|
|
51
55
|
}
|
|
52
56
|
});
|
|
@@ -101,22 +105,29 @@ var scan = Effect.fn("ConfigPluginSource.scan")(function* (fs, location, entries
|
|
|
101
105
|
yield* Effect.logWarning("configured plugin path must be a directory", { target: operation.target });
|
|
102
106
|
return Option.none();
|
|
103
107
|
}
|
|
104
|
-
|
|
105
|
-
return Option.some(operation);
|
|
106
|
-
const entrypoint = yield* exports_source_directory.entrypoint(fs, operation.target);
|
|
107
|
-
if (Option.isSome(entrypoint))
|
|
108
|
-
return Option.some({ ...operation, target: entrypoint.value });
|
|
109
|
-
yield* Effect.logWarning("configured plugin directory has no index entrypoint", { target: operation.target });
|
|
110
|
-
return Option.none();
|
|
108
|
+
return Option.some(operation);
|
|
111
109
|
})).pipe(Effect.map((operations) => operations.flatMap(Option.toArray)));
|
|
112
|
-
return yield* Effect.forEach([...discovered, ...resolved], (operation) => {
|
|
110
|
+
return yield* Effect.forEach([...discovered, ...resolved], (operation) => Effect.gen(function* () {
|
|
113
111
|
if (operation.type === "remove" || !path.isAbsolute(operation.target))
|
|
114
|
-
return
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
112
|
+
return [operation];
|
|
113
|
+
if (!(yield* fs.existsSafe(operation.target)))
|
|
114
|
+
return [operation];
|
|
115
|
+
const directory = yield* fs.isDir(operation.target);
|
|
116
|
+
const entrypoints = directory ? yield* Effect.sync(() => Host.resolve({ directory: operation.target })) : { server: pathToFileURL(operation.target).href };
|
|
117
|
+
if (!entrypoints.server)
|
|
118
|
+
return [];
|
|
119
|
+
if (directory) {
|
|
120
|
+
const root = yield* fs.resolve(operation.target);
|
|
121
|
+
const server = yield* fs.resolve(fileURLToPath(entrypoints.server));
|
|
122
|
+
if (!FSUtil.contains(root, server))
|
|
123
|
+
return [];
|
|
124
|
+
}
|
|
125
|
+
const times = yield* Effect.forEach([
|
|
126
|
+
...Object.values(entrypoints).filter((entry) => entry !== undefined).map((entry) => fileURLToPath(entry)),
|
|
127
|
+
path.join(directory ? operation.target : path.dirname(operation.target), "package.json")
|
|
128
|
+
], (entry) => fs.stat(entry).pipe(Effect.map((info) => Option.getOrElse(info.mtime, () => new Date(0)).getTime()), Effect.orElseSucceed(() => 0)));
|
|
129
|
+
return [{ ...operation, mtime: Math.max(...times) }];
|
|
130
|
+
})).pipe(Effect.map((operations) => operations.flat()));
|
|
120
131
|
});
|
|
121
132
|
function isPluginSource(entries, file) {
|
|
122
133
|
return entries.some((entry) => entry.type === "directory" && exports_source_directory.names.some((directory) => FSUtil.contains(path.join(entry.path, directory), file)));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createProviderPlugin
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./event-logger-0zz82cjq.js";
|
|
4
4
|
import {
|
|
5
5
|
__require
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./event-logger-vpjkya7h.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/cohere.ts
|
|
9
9
|
var CoherePlugin = createProviderPlugin({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
exports_file_retention
|
|
3
|
-
} from "./reference-p1m5qwvv.js";
|
|
4
1
|
import {
|
|
5
2
|
exports_id
|
|
6
|
-
} from "./
|
|
3
|
+
} from "./event-logger-x4az4y7r.js";
|
|
4
|
+
import {
|
|
5
|
+
exports_file_retention
|
|
6
|
+
} from "./event-logger-p1m5qwvv.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_state
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./event-logger-dyrfpcd0.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./event-logger-vpjkya7h.js";
|
|
13
13
|
|
|
14
14
|
// src/tool-output.ts
|
|
15
15
|
var exports_tool_output = {};
|
|
@@ -45,12 +45,12 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
45
45
|
const state = exports_state.create({
|
|
46
46
|
name: "tool-output",
|
|
47
47
|
initial: () => ({ maxLines: MAX_LINES, maxBytes: MAX_BYTES }),
|
|
48
|
-
|
|
48
|
+
editor: (editor) => ({
|
|
49
49
|
configure: (limits) => {
|
|
50
50
|
if (limits.maxLines !== undefined)
|
|
51
|
-
|
|
51
|
+
editor.maxLines = limits.maxLines;
|
|
52
52
|
if (limits.maxBytes !== undefined)
|
|
53
|
-
|
|
53
|
+
editor.maxBytes = limits.maxBytes;
|
|
54
54
|
}
|
|
55
55
|
})
|
|
56
56
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createProviderPlugin
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./event-logger-0zz82cjq.js";
|
|
4
4
|
import {
|
|
5
5
|
__require
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./event-logger-vpjkya7h.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/gateway.ts
|
|
9
9
|
var GatewayPlugin = createProviderPlugin({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
exports_location_watcher_policy
|
|
3
|
-
} from "./reference-jqd42x9x.js";
|
|
4
1
|
import {
|
|
5
2
|
exports_entry_observer
|
|
6
|
-
} from "./
|
|
3
|
+
} from "./event-logger-mnyszbxc.js";
|
|
4
|
+
import {
|
|
5
|
+
exports_location_watcher_policy
|
|
6
|
+
} from "./event-logger-6a909wmz.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_config
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./event-logger-6wskbeqw.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./event-logger-vpjkya7h.js";
|
|
13
13
|
|
|
14
14
|
// src/config/plugin/location-watcher.ts
|
|
15
15
|
var exports_location_watcher = {};
|
|
@@ -25,11 +25,11 @@ var Plugin = define({
|
|
|
25
25
|
const config = yield* exports_config.Service;
|
|
26
26
|
const policy = yield* exports_location_watcher_policy.Service;
|
|
27
27
|
const loaded = yield* exports_entry_observer.observe(config, ctx.event, policy.reload());
|
|
28
|
-
yield* policy.transform((
|
|
28
|
+
yield* policy.transform((editor) => {
|
|
29
29
|
for (const entry of loaded.entries) {
|
|
30
30
|
if (entry.type !== "document" || !entry.info.watcher?.ignore)
|
|
31
31
|
continue;
|
|
32
|
-
|
|
32
|
+
editor.add(entry.info.watcher.ignore);
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
35
|
})
|