@opencode-ai/core 0.0.0-beta-18992 → 0.0.0-beta-19059
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/{aisdk-chdpkqpy.js → shell-042q48mg.js} +7 -7
- package/dist/chunks/{aisdk-gnp6ynf7.js → shell-07b0cypv.js} +4 -4
- package/dist/chunks/{aisdk-0ag03ecw.js → shell-0ag03ecw.js} +2 -2
- package/dist/chunks/{aisdk-mvk0zv40.js → shell-0avv30et.js} +6 -6
- package/dist/chunks/{aisdk-436v30rv.js → shell-0ekaf5y1.js} +10 -10
- package/dist/chunks/{aisdk-r9gpxna8.js → shell-0g44et96.js} +14 -14
- package/dist/chunks/{aisdk-0gpahtwn.js → shell-0gpahtwn.js} +2 -2
- package/dist/chunks/{aisdk-kkqsbg4y.js → shell-0kfsnc8s.js} +8 -6
- package/dist/chunks/{aisdk-0pc4kdn1.js → shell-0pc4kdn1.js} +2 -2
- package/dist/chunks/{aisdk-0rz7yd7x.js → shell-0rz7yd7x.js} +1 -1
- package/dist/chunks/{aisdk-346j37bt.js → shell-141a7zs0.js} +4 -4
- package/dist/chunks/shell-1n0ft3sp.js +59 -0
- package/dist/chunks/{aisdk-kr973c4w.js → shell-1nkp2xz2.js} +7 -7
- package/dist/chunks/{aisdk-jnve9xwc.js → shell-2646kmak.js} +7 -7
- package/dist/chunks/{aisdk-264e1nfp.js → shell-264e1nfp.js} +2 -2
- package/dist/chunks/{aisdk-8ezmrsyj.js → shell-273erafq.js} +6 -2
- package/dist/chunks/{aisdk-9a8n217m.js → shell-2ax4xmn8.js} +5 -5
- package/dist/chunks/{aisdk-4sj97gf3.js → shell-2j9934c7.js} +2 -2
- package/dist/chunks/{aisdk-smgsdam7.js → shell-2kz3bygf.js} +7 -7
- package/dist/chunks/{aisdk-0jay5fqg.js → shell-2q2tk9tq.js} +10 -10
- package/dist/chunks/{aisdk-2sqw2jjm.js → shell-2sqw2jjm.js} +3 -3
- package/dist/chunks/{aisdk-326j4s6w.js → shell-326j4s6w.js} +2 -2
- package/dist/chunks/{aisdk-3chx3ng6.js → shell-3chx3ng6.js} +1 -1
- package/dist/chunks/{aisdk-3ep0k87g.js → shell-3ep0k87g.js} +3 -3
- package/dist/chunks/{aisdk-szdjfp2d.js → shell-3gmr2bxd.js} +2 -2
- package/dist/chunks/{aisdk-0xtq1pvx.js → shell-3gt1rb2e.js} +90 -90
- package/dist/chunks/{aisdk-q6tpjg2q.js → shell-3p7213xt.js} +6 -6
- package/dist/chunks/{aisdk-3tg0cqem.js → shell-3tg0cqem.js} +1 -1
- package/dist/chunks/{aisdk-42zyazrq.js → shell-42zyazrq.js} +1 -1
- package/dist/chunks/{aisdk-hx05hbed.js → shell-44akcmh3.js} +52 -52
- package/dist/chunks/{aisdk-t21bbb0n.js → shell-47tzbbtx.js} +2 -2
- package/dist/chunks/{aisdk-yrts76k5.js → shell-4mh4bmm5.js} +29 -29
- package/dist/chunks/{aisdk-crp8qsj1.js → shell-4qk8prfw.js} +6 -6
- package/dist/chunks/{aisdk-4v6g3p22.js → shell-4v6g3p22.js} +1 -1
- package/dist/chunks/{aisdk-4w0ckvbq.js → shell-4w0ckvbq.js} +3 -3
- package/dist/chunks/{aisdk-nz4de5b9.js → shell-4xf915ct.js} +3 -9
- package/dist/chunks/{aisdk-51t2tyks.js → shell-51t2tyks.js} +1 -1
- package/dist/chunks/{aisdk-53jxjgr1.js → shell-53jxjgr1.js} +2 -2
- package/dist/chunks/{aisdk-5bh9rzm7.js → shell-55fkmd57.js} +9 -9
- package/dist/chunks/{aisdk-cgba56by.js → shell-5dppjsbb.js} +19 -19
- package/dist/chunks/{aisdk-3mc1hhwa.js → shell-5p6bksbb.js} +3 -3
- package/dist/chunks/{aisdk-yvbhbjtt.js → shell-5qp5qbt3.js} +90 -90
- package/dist/chunks/{aisdk-5vbk082d.js → shell-5vbk082d.js} +2 -2
- package/dist/chunks/{aisdk-5y5kqjze.js → shell-5y5kqjze.js} +1 -1
- package/dist/chunks/{aisdk-6c73je8x.js → shell-64hzgwtd.js} +5 -5
- package/dist/chunks/{aisdk-66mds5ht.js → shell-66mds5ht.js} +1 -1
- package/dist/chunks/{aisdk-68yag814.js → shell-68yag814.js} +1 -1
- package/dist/chunks/{aisdk-6bxzghb6.js → shell-6bxzghb6.js} +1 -1
- package/dist/chunks/{aisdk-k7rf1cpt.js → shell-6dkv011c.js} +19 -19
- package/dist/chunks/{aisdk-6hppa3xw.js → shell-6hppa3xw.js} +2 -2
- package/dist/chunks/shell-6m12vprq.js +74 -0
- package/dist/chunks/{aisdk-8ntbqk35.js → shell-6qqxywp2.js} +2 -2
- package/dist/chunks/{aisdk-6vbv4je1.js → shell-6vbv4je1.js} +2 -2
- package/dist/chunks/{aisdk-6wsfy4sp.js → shell-6wsfy4sp.js} +2 -2
- package/dist/chunks/{aisdk-px99tvqg.js → shell-70qypj5k.js} +5 -5
- package/dist/chunks/{aisdk-q7t9sd06.js → shell-7b5y25fs.js} +5 -5
- package/dist/chunks/{aisdk-0vkt3tck.js → shell-7gcyy9x5.js} +4 -4
- package/dist/chunks/shell-7j3d9h1a.js +173 -0
- package/dist/chunks/{aisdk-p1233x4g.js → shell-7jghge8q.js} +5 -5
- package/dist/chunks/{aisdk-7myqjfx6.js → shell-7myqjfx6.js} +1 -1
- package/dist/chunks/{aisdk-hs4fs4fk.js → shell-7rd51vdr.js} +4 -4
- package/dist/chunks/{aisdk-tjybzfkj.js → shell-7v99w5je.js} +10 -10
- package/dist/chunks/{aisdk-jjrry5fa.js → shell-7za4nbcg.js} +16 -16
- package/dist/chunks/{aisdk-g5th8h43.js → shell-80v4fd6z.js} +6 -6
- package/dist/chunks/{aisdk-cs0p04rr.js → shell-87j79ehp.js} +6 -6
- package/dist/chunks/{aisdk-pk53j7qk.js → shell-89fyhav1.js} +3 -2
- package/dist/chunks/{aisdk-89ttfx5q.js → shell-89ttfx5q.js} +2 -2
- package/dist/chunks/{aisdk-8manx9kj.js → shell-8manx9kj.js} +2 -2
- package/dist/chunks/{aisdk-0a7td04e.js → shell-8q8h9s11.js} +5 -5
- package/dist/chunks/{aisdk-8y5vxhk7.js → shell-8y5vxhk7.js} +1 -1
- package/dist/chunks/{aisdk-k1b6dc15.js → shell-8zcrsv5t.js} +5 -5
- package/dist/chunks/{aisdk-dx50a8h6.js → shell-91jk6xaw.js} +16 -16
- package/dist/chunks/{aisdk-7p7dwwnz.js → shell-9ak91fv3.js} +13 -13
- package/dist/chunks/{aisdk-9dbv6hqn.js → shell-9dbv6hqn.js} +2 -2
- package/dist/chunks/{aisdk-nsbntmra.js → shell-9dpanzbm.js} +10 -10
- package/dist/chunks/{aisdk-mhsn6mq8.js → shell-9dyp6shn.js} +2 -2
- package/dist/chunks/{aisdk-6xymcx55.js → shell-9jekp4re.js} +4 -4
- package/dist/chunks/{aisdk-ryg5jqjk.js → shell-9xr8vq79.js} +10 -10
- package/dist/chunks/{aisdk-a6xqkezx.js → shell-a6xqkezx.js} +1 -1
- package/dist/chunks/{aisdk-3m1vr04b.js → shell-a84493y6.js} +3 -3
- package/dist/chunks/{aisdk-baksa8yv.js → shell-a8503na0.js} +3 -3
- package/dist/chunks/{aisdk-af42tqdk.js → shell-af42tqdk.js} +2 -2
- package/dist/chunks/{aisdk-tp43wj51.js → shell-ag4nhqj6.js} +3 -3
- package/dist/chunks/{aisdk-569f3h1m.js → shell-ankcqpvn.js} +14 -14
- package/dist/chunks/{aisdk-8mp6gx87.js → shell-arcb009s.js} +4 -4
- package/dist/chunks/{aisdk-fgs2symh.js → shell-ask3gap1.js} +4 -4
- package/dist/chunks/{aisdk-h0hayhsb.js → shell-avzsa1v3.js} +5 -5
- package/dist/chunks/{aisdk-vqvcjjjj.js → shell-b3v8bj34.js} +17 -12
- package/dist/chunks/{aisdk-r62r74j1.js → shell-b5jaeffq.js} +3 -3
- package/dist/chunks/{aisdk-z7b2t3rz.js → shell-ba33t81m.js} +3 -3
- package/dist/chunks/{aisdk-r6p7wvh7.js → shell-ba72c74g.js} +8 -8
- package/dist/chunks/{aisdk-skbmd4fz.js → shell-bc9tkpkc.js} +49 -88
- package/dist/chunks/{aisdk-bd2mvb8t.js → shell-bd2mvb8t.js} +2 -2
- package/dist/chunks/{aisdk-5hgkjk2f.js → shell-bkxmnfwx.js} +4 -4
- package/dist/chunks/{aisdk-zdx55e8d.js → shell-bmkvq0kr.js} +2 -2
- package/dist/chunks/{aisdk-bnha4c96.js → shell-bnha4c96.js} +1 -1
- package/dist/chunks/{aisdk-6d5j92cz.js → shell-c3rqq6n4.js} +13 -13
- package/dist/chunks/{aisdk-c54e84vp.js → shell-c54e84vp.js} +1 -1
- package/dist/chunks/{aisdk-c55cgmsp.js → shell-c55cgmsp.js} +2 -2
- package/dist/chunks/{aisdk-c8ya26sa.js → shell-c8ya26sa.js} +2 -2
- package/dist/chunks/{aisdk-w5sfyvy5.js → shell-chwz5826.js} +11 -11
- package/dist/chunks/{aisdk-ckcq38kt.js → shell-ckcq38kt.js} +2 -2
- package/dist/chunks/{aisdk-rzqyff2r.js → shell-cpsjz0c7.js} +3 -3
- package/dist/chunks/{aisdk-szw528se.js → shell-cvj1dyzv.js} +88 -27
- package/dist/chunks/{aisdk-da3trc5a.js → shell-czwwtdmj.js} +6 -6
- package/dist/chunks/{aisdk-d4h7vwhh.js → shell-d4h7vwhh.js} +2 -2
- package/dist/chunks/{aisdk-dexm22yg.js → shell-dexm22yg.js} +1 -1
- package/dist/chunks/{aisdk-fy1thtav.js → shell-dg8w2yk3.js} +12 -12
- package/dist/chunks/{aisdk-6a909wmz.js → shell-dj1xm95f.js} +2 -2
- package/dist/chunks/{aisdk-x4bxnnv2.js → shell-djxb2q0f.js} +9 -9
- package/dist/chunks/{aisdk-dtm6fkaa.js → shell-dtm6fkaa.js} +2 -2
- package/dist/chunks/{aisdk-rwvxs8zw.js → shell-dwrevpn0.js} +7 -7
- package/dist/chunks/{aisdk-3ebhgms6.js → shell-dwvtf5ds.js} +6 -5
- package/dist/chunks/{aisdk-dyhtrhy2.js → shell-dyhtrhy2.js} +1 -1
- package/dist/chunks/{aisdk-e0n16vwa.js → shell-e0n16vwa.js} +2 -2
- package/dist/chunks/{aisdk-84kj155m.js → shell-e96z09t7.js} +2 -2
- package/dist/chunks/{aisdk-990p8b05.js → shell-eazsh8dz.js} +24 -46
- package/dist/chunks/{aisdk-eb87q0yv.js → shell-eb87q0yv.js} +1 -1
- package/dist/chunks/{aisdk-edxnhgvj.js → shell-edxnhgvj.js} +1 -1
- package/dist/chunks/{aisdk-3a40jg0s.js → shell-env4mczv.js} +8 -8
- package/dist/chunks/{aisdk-esv5q40e.js → shell-esv5q40e.js} +1 -1
- package/dist/chunks/{aisdk-etbnsc4s.js → shell-etbnsc4s.js} +2 -2
- package/dist/chunks/{aisdk-eyd00vjh.js → shell-f16sbr11.js} +6 -6
- package/dist/chunks/{aisdk-f2nhxfjt.js → shell-f2nhxfjt.js} +2 -2
- package/dist/chunks/{aisdk-jct022rj.js → shell-f8hwpd84.js} +10 -10
- package/dist/chunks/{aisdk-f8wvq04h.js → shell-f8wvq04h.js} +1 -1
- package/dist/chunks/{aisdk-mvt5ggqa.js → shell-f92vt4xc.js} +2 -2
- package/dist/chunks/{aisdk-knepgtgt.js → shell-feq9r64e.js} +3 -3
- package/dist/chunks/{aisdk-kz0b030v.js → shell-fmf73fvz.js} +2 -2
- package/dist/chunks/{aisdk-fqehnn9p.js → shell-fqehnn9p.js} +2 -2
- package/dist/chunks/{aisdk-bcm0hj06.js → shell-fzc5n3sa.js} +46 -31
- package/dist/chunks/{aisdk-136c8mz3.js → shell-g70ev3a2.js} +4 -4
- package/dist/chunks/{aisdk-g9dd0fv6.js → shell-g9dd0fv6.js} +2 -2
- package/dist/chunks/{aisdk-gb1z7yet.js → shell-gb1z7yet.js} +2 -2
- package/dist/chunks/{aisdk-99mhyzeb.js → shell-gbbcs6dk.js} +3 -3
- package/dist/chunks/{aisdk-gc513wew.js → shell-gc513wew.js} +2 -2
- package/dist/chunks/{aisdk-9tg3h842.js → shell-gcx27tm4.js} +3 -3
- package/dist/chunks/{aisdk-jpqb6cxp.js → shell-gebnmg22.js} +4 -4
- package/dist/chunks/{aisdk-2m6rmd1v.js → shell-gmw0vgww.js} +6 -6
- package/dist/chunks/shell-gqrtc8r6.js +60 -0
- package/dist/chunks/{aisdk-grfz4hhj.js → shell-grfz4hhj.js} +1 -1
- package/dist/chunks/{aisdk-k1xwefj2.js → shell-h5f8a9ks.js} +8 -8
- package/dist/chunks/{aisdk-kr9vgar1.js → shell-hbtzhcxr.js} +13 -5
- package/dist/chunks/{aisdk-9j1503d0.js → shell-hc47qdwn.js} +9 -9
- package/dist/chunks/{aisdk-hgr9y616.js → shell-hgr9y616.js} +1 -1
- package/dist/chunks/{aisdk-qz5gwjr7.js → shell-hp004neb.js} +5 -5
- package/dist/chunks/{aisdk-hpkeh7wf.js → shell-hpkeh7wf.js} +1 -1
- package/dist/chunks/{aisdk-hs51b0fc.js → shell-hs51b0fc.js} +1 -1
- package/dist/chunks/{aisdk-htmhxvv7.js → shell-htmhxvv7.js} +1 -1
- package/dist/chunks/{aisdk-xmawrfa6.js → shell-hvccmfya.js} +5 -5
- package/dist/chunks/{aisdk-hvydqsq5.js → shell-hvydqsq5.js} +2 -2
- package/dist/chunks/{aisdk-hy5n5jcn.js → shell-hy5n5jcn.js} +1 -1
- package/dist/chunks/{aisdk-hzag9ake.js → shell-hzag9ake.js} +1 -1
- package/dist/chunks/{aisdk-hzwx8p6y.js → shell-hzwx8p6y.js} +1 -1
- package/dist/chunks/{aisdk-j0feex7e.js → shell-j0feex7e.js} +1 -1
- package/dist/chunks/{aisdk-hnvty6ts.js → shell-j2nrfc47.js} +4 -4
- package/dist/chunks/{aisdk-sp0z572a.js → shell-j5vqta4j.js} +21 -19
- package/dist/chunks/{aisdk-dyrfpcd0.js → shell-j6s3yjyb.js} +68 -20
- package/dist/chunks/{aisdk-v05j4md8.js → shell-j9a1jgvn.js} +3 -3
- package/dist/chunks/{aisdk-jar52fmb.js → shell-jar52fmb.js} +3 -3
- package/dist/chunks/{aisdk-z1pk0m63.js → shell-jefdyv88.js} +4 -4
- package/dist/chunks/{aisdk-h01zxzks.js → shell-jepqtr73.js} +6 -6
- package/dist/chunks/{aisdk-cysn3mja.js → shell-jjxszdq6.js} +10 -10
- package/dist/chunks/{aisdk-7th95xh7.js → shell-jp46hhdm.js} +65 -61
- package/dist/chunks/{aisdk-jqhp3fpz.js → shell-jqhp3fpz.js} +2 -2
- package/dist/chunks/{aisdk-6zn90n6x.js → shell-jxkq3d3v.js} +4 -4
- package/dist/chunks/{aisdk-ev4ek0d5.js → shell-k1vg0xt3.js} +10 -10
- package/dist/chunks/{aisdk-k7hkdbw5.js → shell-k7hkdbw5.js} +2 -2
- package/dist/chunks/{aisdk-p6ytpc5n.js → shell-ka3gxs6j.js} +3 -3
- package/dist/chunks/{aisdk-293pdfkt.js → shell-kftmq20s.js} +5 -5
- package/dist/chunks/{aisdk-kr52k73r.js → shell-kk70vshc.js} +1 -1
- package/dist/chunks/{aisdk-yetdmp9r.js → shell-kk74kxfs.js} +5 -5
- package/dist/chunks/{aisdk-kq3q54gz.js → shell-kq3q54gz.js} +1 -1
- package/dist/chunks/{aisdk-8c5xq4gn.js → shell-m3k5wttq.js} +6 -6
- package/dist/chunks/{aisdk-m6a7zjhr.js → shell-m6a7zjhr.js} +1 -1
- package/dist/chunks/{aisdk-m7jtgrng.js → shell-m7jtgrng.js} +2 -2
- package/dist/chunks/{aisdk-mf0hyk7z.js → shell-mf0hyk7z.js} +1 -1
- package/dist/chunks/{aisdk-ccdn1qf9.js → shell-mjazva4s.js} +9 -9
- package/dist/chunks/{aisdk-mnyszbxc.js → shell-mnyszbxc.js} +1 -1
- package/dist/chunks/{aisdk-fzz9eqmb.js → shell-mqq97asn.js} +2 -2
- package/dist/chunks/{aisdk-twprn68v.js → shell-ms3g46s0.js} +11 -11
- package/dist/chunks/{aisdk-mv81kt5z.js → shell-mv81kt5z.js} +2 -2
- package/dist/chunks/{aisdk-my53s247.js → shell-my53s247.js} +1 -1
- package/dist/chunks/{aisdk-fmf9jgka.js → shell-n06hdswm.js} +5 -5
- package/dist/chunks/{aisdk-53r30btx.js → shell-n2g2cxnx.js} +4 -4
- package/dist/chunks/{aisdk-ag1e2cnk.js → shell-n42yafp0.js} +3 -3
- package/dist/chunks/{aisdk-xmgmw6xj.js → shell-n8n4ktw0.js} +11 -11
- package/dist/chunks/{aisdk-dc7e4c6h.js → shell-nbv6mqns.js} +9 -9
- package/dist/chunks/{aisdk-ngzr6ypz.js → shell-ngzr6ypz.js} +2 -2
- package/dist/chunks/{aisdk-nn16cgj7.js → shell-nn16cgj7.js} +1 -1
- package/dist/chunks/{aisdk-ypb77v8p.js → shell-nr11n6aa.js} +24 -24
- package/dist/chunks/{aisdk-1g52q2sg.js → shell-nrd3ctd8.js} +3 -3
- package/dist/chunks/{aisdk-ntev5d3k.js → shell-ntev5d3k.js} +3 -3
- package/dist/chunks/{aisdk-pxt7rpyc.js → shell-p09n0p06.js} +7 -7
- package/dist/chunks/{aisdk-p1m5qwvv.js → shell-p1m5qwvv.js} +1 -1
- package/dist/chunks/{aisdk-p5gyct0y.js → shell-p5gyct0y.js} +1 -1
- package/dist/chunks/{aisdk-x6wa8s0v.js → shell-pgf3e1q2.js} +3 -3
- package/dist/chunks/{aisdk-tkyxs3k2.js → shell-pgrvjceq.js} +3 -3
- package/dist/chunks/{aisdk-w565trw2.js → shell-pmn2j35m.js} +145 -145
- package/dist/chunks/{aisdk-3h15wcjt.js → shell-pv8kr1wp.js} +7 -7
- package/dist/chunks/{aisdk-pves38xm.js → shell-pves38xm.js} +2 -2
- package/dist/chunks/{aisdk-3ptfsnkd.js → shell-pvpv4rn6.js} +14 -14
- package/dist/chunks/{aisdk-xmvw7kbn.js → shell-q1w4qb6z.js} +4 -4
- package/dist/chunks/{aisdk-q606pcse.js → shell-q606pcse.js} +3 -3
- package/dist/chunks/{aisdk-v50c2ssy.js → shell-q7reqpp2.js} +3 -3
- package/dist/chunks/{aisdk-rgseqz2v.js → shell-qbfqnn1d.js} +9 -11
- package/dist/chunks/{aisdk-qf52r0wh.js → shell-qf52r0wh.js} +1 -1
- package/dist/chunks/{aisdk-qfvp8zq7.js → shell-qfvp8zq7.js} +1 -1
- package/dist/chunks/{aisdk-e46yy00n.js → shell-qkccxvz6.js} +5 -5
- package/dist/chunks/{aisdk-qpxzqy01.js → shell-qpxzqy01.js} +1 -1
- package/dist/chunks/{aisdk-r7a2r1m6.js → shell-r7a2r1m6.js} +2 -2
- package/dist/chunks/{aisdk-z2xq9v2r.js → shell-r7gm0yzj.js} +3 -3
- package/dist/chunks/{aisdk-r7z6wjth.js → shell-r7z6wjth.js} +1 -1
- package/dist/chunks/{aisdk-ft2nxz8a.js → shell-r8f3g7x9.js} +50 -82
- package/dist/chunks/{aisdk-r9d3d23r.js → shell-r9d3d23r.js} +1 -1
- package/dist/chunks/{aisdk-rahat93a.js → shell-rahat93a.js} +1 -1
- package/dist/chunks/{aisdk-jr5m26np.js → shell-rpa95wsa.js} +14 -15
- package/dist/chunks/{aisdk-rr7wbarq.js → shell-rr7wbarq.js} +1 -1
- package/dist/chunks/{aisdk-zp7ehvh2.js → shell-rvt91wbj.js} +3 -3
- package/dist/chunks/{aisdk-car87g36.js → shell-rxnz5856.js} +6 -6
- package/dist/chunks/{aisdk-6qgmssvv.js → shell-s231yqcx.js} +3 -3
- package/dist/chunks/{aisdk-3ew4q0hq.js → shell-s243tsw3.js} +3 -3
- package/dist/chunks/{aisdk-s32nnj3r.js → shell-s32nnj3r.js} +1 -1
- package/dist/chunks/{aisdk-xsybfjt2.js → shell-sdwsqdh9.js} +3 -3
- package/dist/chunks/{aisdk-de1w1zbt.js → shell-t1qmyghk.js} +3 -3
- package/dist/chunks/{aisdk-5mc8c0j5.js → shell-tde1y35v.js} +9 -9
- package/dist/chunks/{aisdk-a1mcs7np.js → shell-teseat8q.js} +13 -13
- package/dist/chunks/{aisdk-cxyzzeen.js → shell-tfcwk9cz.js} +18 -18
- package/dist/chunks/{aisdk-ynvsh03q.js → shell-tzrgz0z8.js} +4 -4
- package/dist/chunks/{aisdk-35vxp7dq.js → shell-v50xf5z2.js} +5 -5
- package/dist/chunks/{aisdk-6912wsd4.js → shell-v63sw24f.js} +7 -7
- package/dist/chunks/{aisdk-aqq7me5d.js → shell-v9qxqszp.js} +35 -27
- package/dist/chunks/{aisdk-01qj1xbq.js → shell-vc6t3p1d.js} +48 -29
- package/dist/chunks/{aisdk-vcwr2vpf.js → shell-vcwr2vpf.js} +1 -1
- package/dist/chunks/{aisdk-0mkrx8p0.js → shell-vg0pa6wg.js} +8 -8
- package/dist/chunks/{aisdk-2ypfqnr9.js → shell-vwsdy5q1.js} +4 -4
- package/dist/chunks/{aisdk-vynk8zbr.js → shell-vynk8zbr.js} +1 -1
- package/dist/chunks/{aisdk-sp5exd1h.js → shell-w3124eb9.js} +4 -4
- package/dist/chunks/{aisdk-crxx1dqw.js → shell-w5r741x8.js} +7 -7
- package/dist/chunks/{aisdk-w5r9s7kx.js → shell-w5r9s7kx.js} +1 -1
- package/dist/chunks/{aisdk-cx60bhhd.js → shell-w7777901.js} +4 -4
- package/dist/chunks/{aisdk-wbkt8qpj.js → shell-wbkt8qpj.js} +1 -1
- package/dist/chunks/shell-wcfnpn6z.js +49 -0
- package/dist/chunks/{aisdk-8zy2k5k6.js → shell-wdhfb1av.js} +3 -3
- package/dist/chunks/{aisdk-wdqva41w.js → shell-wdqva41w.js} +1 -1
- package/dist/chunks/{aisdk-wf5w4wph.js → shell-wf5w4wph.js} +1 -1
- package/dist/chunks/{aisdk-2qq12ds3.js → shell-wht8mw9e.js} +5 -5
- package/dist/chunks/{aisdk-h3f1b9tc.js → shell-wm7n3k6n.js} +4 -4
- package/dist/chunks/{aisdk-wmxdh12w.js → shell-wmxdh12w.js} +1 -1
- package/dist/chunks/{aisdk-jpxgytvs.js → shell-wzz9pqkk.js} +6 -6
- package/dist/chunks/{aisdk-vjpyjhwb.js → shell-x1cxkrw5.js} +7 -7
- package/dist/chunks/{aisdk-x3vb5b1t.js → shell-x3vb5b1t.js} +1 -1
- package/dist/chunks/{aisdk-x4az4y7r.js → shell-x4az4y7r.js} +1 -1
- package/dist/chunks/{aisdk-xdb88cdw.js → shell-xdb88cdw.js} +2 -2
- package/dist/chunks/{aisdk-xe02v0q7.js → shell-xe02v0q7.js} +2 -2
- package/dist/chunks/{aisdk-znrh89n9.js → shell-xvsa7tcp.js} +4 -4
- package/dist/chunks/{aisdk-xws7arpm.js → shell-xws7arpm.js} +1 -1
- package/dist/chunks/{aisdk-1xrsw5yf.js → shell-xx7nefqn.js} +9 -9
- package/dist/chunks/{aisdk-xrv61bk1.js → shell-xytsmcb2.js} +11 -11
- package/dist/chunks/{aisdk-nj6yqve1.js → shell-ymj89trn.js} +7 -3
- package/dist/chunks/{aisdk-mbj1r8k5.js → shell-yvpqrhda.js} +11 -11
- package/dist/chunks/{aisdk-xjm65r2s.js → shell-yz2yeez5.js} +58 -20
- package/dist/chunks/{aisdk-3jp0syc9.js → shell-z14yv7mw.js} +4 -4
- package/dist/chunks/{aisdk-shjfy2ck.js → shell-z48apzz2.js} +4 -4
- package/dist/chunks/{aisdk-atrey7ye.js → shell-z7p6fept.js} +14 -14
- package/dist/chunks/{aisdk-z8c1ty6e.js → shell-z8c1ty6e.js} +1 -1
- package/dist/chunks/{aisdk-zbqqnp0n.js → shell-zbqqnp0n.js} +1 -1
- package/dist/chunks/{aisdk-st54z36t.js → shell-zdf23kgm.js} +2 -2
- package/dist/chunks/{aisdk-zmbmd7xf.js → shell-zmbmd7xf.js} +2 -2
- package/dist/chunks/{aisdk-m0fhw4rj.js → shell-zmvsednx.js} +4 -4
- package/dist/chunks/{aisdk-zn935gjz.js → shell-zn935gjz.js} +1 -1
- package/dist/chunks/shell-zr29p06e.js +136 -0
- package/dist/chunks/{aisdk-zseh86v1.js → shell-zseh86v1.js} +2 -2
- package/dist/chunks/shell-zwfcr2t4.js +40 -0
- package/dist/chunks/{aisdk-zyyhrfr9.js → shell-zyyhrfr9.js} +1 -1
- 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/discovery.js +88 -0
- package/dist/config/markdown.js +2 -2
- package/dist/config/normalize.js +20 -20
- package/dist/config/plugin/agent.js +129 -127
- package/dist/config/plugin/command.js +211 -113
- package/dist/config/plugin/compaction.js +168 -166
- package/dist/config/plugin/entry-observer.js +111 -109
- package/dist/config/plugin/formatter.js +116 -114
- package/dist/config/plugin/image.js +128 -126
- package/dist/config/plugin/instruction.js +85 -85
- package/dist/config/plugin/location-watcher.js +114 -112
- package/dist/config/plugin/mcp.js +124 -122
- package/dist/config/plugin/policy.js +113 -111
- package/dist/config/plugin/provider.js +112 -110
- package/dist/config/plugin/reference.js +116 -114
- package/dist/config/plugin/shell.js +115 -113
- package/dist/config/plugin/skill-file.js +98 -98
- package/dist/config/plugin/skill.js +132 -130
- package/dist/config/plugin/snapshot.js +114 -112
- package/dist/config/plugin/source.js +112 -110
- package/dist/config/plugin/tool-output.js +116 -114
- package/dist/config/plugin/websearch.js +112 -110
- package/dist/config/variable.js +4 -4
- package/dist/config/watch.js +9 -0
- package/dist/config.js +110 -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 +20 -20
- 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 +75 -75
- package/dist/database/v1-migration.js +2 -2
- package/dist/database/v1-migration.noop.js +1 -1
- package/dist/effect/app-node-builder.js +347 -342
- 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 +219 -217
- 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 +346 -341
- 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 +347 -342
- 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/modal/models.js +11 -0
- 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 +216 -214
- package/dist/plugin/instance.js +2 -2
- package/dist/plugin/internal.js +318 -313
- 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 +120 -118
- package/dist/plugin/provider/cerebras.js +3 -3
- package/dist/plugin/provider/cloudflare-ai-gateway.js +119 -117
- package/dist/plugin/provider/cloudflare-workers-ai.js +119 -117
- package/dist/plugin/provider/cohere.js +3 -3
- package/dist/plugin/provider/configured.js +116 -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 +84 -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 +117 -115
- package/dist/plugin/provider/mistral.js +3 -3
- package/dist/plugin/provider/modal.js +85 -0
- package/dist/plugin/provider/nvidia.js +3 -3
- package/dist/plugin/provider/ollama.js +117 -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 +117 -115
- package/dist/plugin/provider/xai.js +78 -78
- package/dist/plugin/provider/zenmux.js +3 -3
- package/dist/plugin/provider.js +158 -154
- package/dist/plugin/sdk.js +69 -69
- package/dist/plugin/service.js +2 -2
- package/dist/plugin/skill.js +129 -127
- package/dist/plugin/source-directory.js +2 -2
- package/dist/plugin/supervisor.js +333 -328
- 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 +111 -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 +217 -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 +14 -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 -73
- 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 +211 -211
- package/dist/session/execution.js +117 -117
- package/dist/session/generate.js +153 -153
- 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 +127 -82
- package/dist/session/projector.js +83 -83
- package/dist/session/prompt.js +115 -115
- 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 +226 -224
- 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 +173 -171
- package/dist/session/shell.js +132 -130
- package/dist/session/skill.js +99 -99
- 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 +8 -4
- package/dist/session/subagent-job.js +216 -0
- 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 +217 -213
- package/dist/session/usage.js +2 -2
- package/dist/session.js +207 -205
- 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 +32 -4
- package/dist/shell/select.js +4 -4
- package/dist/shell.js +129 -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 +4 -2
- 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 +2 -2
- 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 +210 -208
- package/dist/tool/plugin/skill.js +97 -97
- package/dist/tool/plugin/subagent.js +210 -207
- 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/config/discovery.d.ts +35 -0
- package/dist/types/config/plugin/command.d.ts +3 -1
- package/dist/types/config/watch.d.ts +11 -0
- package/dist/types/filesystem/watcher.d.ts +19 -17
- package/dist/types/modal/models.d.ts +3 -0
- package/dist/types/plugin/provider/github-copilot.d.ts +4 -0
- package/dist/types/plugin/provider/modal.d.ts +3 -0
- package/dist/types/session/history.d.ts +32 -0
- package/dist/types/session/move.d.ts +15 -11
- package/dist/types/session/subagent-completion.d.ts +3 -0
- package/dist/types/session/subagent-job.d.ts +13 -0
- package/dist/types/session/transfer.d.ts +46 -0
- package/dist/types/session.d.ts +2 -8
- package/dist/types/state.d.ts +18 -0
- package/dist/types/tool/plugin/subagent.d.ts +2 -2
- package/dist/types/v1/config/migrate.d.ts +3 -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 +7 -7
- package/dist/chunks/aisdk-6zfys1bj.js +0 -34
- package/dist/chunks/aisdk-7ayetq1t.js +0 -68
- /package/dist/chunks/{aisdk-0cgt0xh2.js → shell-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{aisdk-0f48qthw.js → shell-0f48qthw.js} +0 -0
- /package/dist/chunks/{aisdk-0zz82cjq.js → shell-0zz82cjq.js} +0 -0
- /package/dist/chunks/{aisdk-1fb7bmpf.js → shell-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{aisdk-1wcz8fvj.js → shell-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{aisdk-29n7vfk2.js → shell-29n7vfk2.js} +0 -0
- /package/dist/chunks/{aisdk-2qdx6zz3.js → shell-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{aisdk-2xb0r1c6.js → shell-2xb0r1c6.js} +0 -0
- /package/dist/chunks/{aisdk-39ktntah.js → shell-39ktntah.js} +0 -0
- /package/dist/chunks/{aisdk-3g3rpp2x.js → shell-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{aisdk-3w3ybtfd.js → shell-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{aisdk-47ty4mvs.js → shell-47ty4mvs.js} +0 -0
- /package/dist/chunks/{aisdk-4b2tz2m9.js → shell-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{aisdk-5a5ch9ts.js → shell-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{aisdk-5va1yh78.js → shell-5va1yh78.js} +0 -0
- /package/dist/chunks/{aisdk-61ek4hj9.js → shell-61ek4hj9.js} +0 -0
- /package/dist/chunks/{aisdk-69qrqpw0.js → shell-69qrqpw0.js} +0 -0
- /package/dist/chunks/{aisdk-6zqxzw0a.js → shell-6zqxzw0a.js} +0 -0
- /package/dist/chunks/{aisdk-7n9qwqk4.js → shell-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{aisdk-8nn8kqcn.js → shell-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{aisdk-8rpfd2h6.js → shell-8rpfd2h6.js} +0 -0
- /package/dist/chunks/{aisdk-8sj3ajy5.js → shell-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{aisdk-8w9tzfz1.js → shell-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{aisdk-906y0b6d.js → shell-906y0b6d.js} +0 -0
- /package/dist/chunks/{aisdk-9dct5xhx.js → shell-9dct5xhx.js} +0 -0
- /package/dist/chunks/{aisdk-9maxscqf.js → shell-9maxscqf.js} +0 -0
- /package/dist/chunks/{aisdk-9sdtsapf.js → shell-9sdtsapf.js} +0 -0
- /package/dist/chunks/{aisdk-a02svayp.js → shell-a02svayp.js} +0 -0
- /package/dist/chunks/{aisdk-a83yvq99.js → shell-a83yvq99.js} +0 -0
- /package/dist/chunks/{aisdk-ayevdmef.js → shell-ayevdmef.js} +0 -0
- /package/dist/chunks/{aisdk-b02txbh8.js → shell-b02txbh8.js} +0 -0
- /package/dist/chunks/{aisdk-bbqs2y60.js → shell-bbqs2y60.js} +0 -0
- /package/dist/chunks/{aisdk-bjwj8hwv.js → shell-bjwj8hwv.js} +0 -0
- /package/dist/chunks/{aisdk-brsh5f65.js → shell-brsh5f65.js} +0 -0
- /package/dist/chunks/{aisdk-bxdhjb3y.js → shell-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{aisdk-bybkghrn.js → shell-bybkghrn.js} +0 -0
- /package/dist/chunks/{aisdk-c77ad0vh.js → shell-c77ad0vh.js} +0 -0
- /package/dist/chunks/{aisdk-cm67rqy2.js → shell-cm67rqy2.js} +0 -0
- /package/dist/chunks/{aisdk-df3v2q6j.js → shell-df3v2q6j.js} +0 -0
- /package/dist/chunks/{aisdk-dhcq6c44.js → shell-dhcq6c44.js} +0 -0
- /package/dist/chunks/{aisdk-dht5baf0.js → shell-dht5baf0.js} +0 -0
- /package/dist/chunks/{aisdk-dkmkay92.js → shell-dkmkay92.js} +0 -0
- /package/dist/chunks/{aisdk-ehj9csmv.js → shell-ehj9csmv.js} +0 -0
- /package/dist/chunks/{aisdk-em6xpscd.js → shell-em6xpscd.js} +0 -0
- /package/dist/chunks/{aisdk-emmqknsm.js → shell-emmqknsm.js} +0 -0
- /package/dist/chunks/{aisdk-ezs3tagn.js → shell-ezs3tagn.js} +0 -0
- /package/dist/chunks/{aisdk-f14r7hfz.js → shell-f14r7hfz.js} +0 -0
- /package/dist/chunks/{aisdk-f1jj19e8.js → shell-f1jj19e8.js} +0 -0
- /package/dist/chunks/{aisdk-f4cp4g4a.js → shell-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{aisdk-faypg4r1.js → shell-faypg4r1.js} +0 -0
- /package/dist/chunks/{aisdk-fg7fz4q3.js → shell-fg7fz4q3.js} +0 -0
- /package/dist/chunks/{aisdk-fgbfdq62.js → shell-fgbfdq62.js} +0 -0
- /package/dist/chunks/{aisdk-g23fad86.js → shell-g23fad86.js} +0 -0
- /package/dist/chunks/{aisdk-gd5xeqc2.js → shell-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{aisdk-ghm4673n.js → shell-ghm4673n.js} +0 -0
- /package/dist/chunks/{aisdk-ghwjy7my.js → shell-ghwjy7my.js} +0 -0
- /package/dist/chunks/{aisdk-gy500k2r.js → shell-gy500k2r.js} +0 -0
- /package/dist/chunks/{aisdk-hzeg9cfr.js → shell-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{aisdk-j07kk359.js → shell-j07kk359.js} +0 -0
- /package/dist/chunks/{aisdk-jqms80b0.js → shell-jqms80b0.js} +0 -0
- /package/dist/chunks/{aisdk-jve7t217.js → shell-jve7t217.js} +0 -0
- /package/dist/chunks/{aisdk-k3e42drn.js → shell-k3e42drn.js} +0 -0
- /package/dist/chunks/{aisdk-k8b45nas.js → shell-k8b45nas.js} +0 -0
- /package/dist/chunks/{aisdk-kpdbz7gn.js → shell-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{aisdk-kxy11nzk.js → shell-kxy11nzk.js} +0 -0
- /package/dist/chunks/{aisdk-kyyqvx4s.js → shell-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{aisdk-m8cbvarh.js → shell-m8cbvarh.js} +0 -0
- /package/dist/chunks/{aisdk-ma60vzgv.js → shell-ma60vzgv.js} +0 -0
- /package/dist/chunks/{aisdk-n3m50c2t.js → shell-n3m50c2t.js} +0 -0
- /package/dist/chunks/{aisdk-nkm1m8dz.js → shell-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{aisdk-nsc0c3zb.js → shell-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{aisdk-qaarhjrp.js → shell-qaarhjrp.js} +0 -0
- /package/dist/chunks/{aisdk-qc167nrn.js → shell-qc167nrn.js} +0 -0
- /package/dist/chunks/{aisdk-qp95y4jb.js → shell-qp95y4jb.js} +0 -0
- /package/dist/chunks/{aisdk-r8f4w671.js → shell-r8f4w671.js} +0 -0
- /package/dist/chunks/{aisdk-rdfev9jy.js → shell-rdfev9jy.js} +0 -0
- /package/dist/chunks/{aisdk-s7whb9gt.js → shell-s7whb9gt.js} +0 -0
- /package/dist/chunks/{aisdk-se76j685.js → shell-se76j685.js} +0 -0
- /package/dist/chunks/{aisdk-sem2g21k.js → shell-sem2g21k.js} +0 -0
- /package/dist/chunks/{aisdk-snpn6bap.js → shell-snpn6bap.js} +0 -0
- /package/dist/chunks/{aisdk-sp575ygv.js → shell-sp575ygv.js} +0 -0
- /package/dist/chunks/{aisdk-tmb1f636.js → shell-tmb1f636.js} +0 -0
- /package/dist/chunks/{aisdk-ttxf0gsy.js → shell-ttxf0gsy.js} +0 -0
- /package/dist/chunks/{aisdk-tvmhrvfj.js → shell-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{aisdk-v2adqbbe.js → shell-v2adqbbe.js} +0 -0
- /package/dist/chunks/{aisdk-vac9eqd2.js → shell-vac9eqd2.js} +0 -0
- /package/dist/chunks/{aisdk-vpjkya7h.js → shell-vpjkya7h.js} +0 -0
- /package/dist/chunks/{aisdk-wj4sxzqa.js → shell-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{aisdk-wwntjmk1.js → shell-wwntjmk1.js} +0 -0
- /package/dist/chunks/{aisdk-wyqjaaa5.js → shell-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{aisdk-x4q807cx.js → shell-x4q807cx.js} +0 -0
- /package/dist/chunks/{aisdk-yrqrg4vp.js → shell-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{aisdk-z47nswr2.js → shell-z47nswr2.js} +0 -0
- /package/dist/chunks/{aisdk-zsf8rs93.js → shell-zsf8rs93.js} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_instructions
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./shell-c54e84vp.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_state
|
|
6
|
-
} from "./
|
|
7
|
-
import {
|
|
8
|
-
AbsolutePath
|
|
9
|
-
} from "./aisdk-j07kk359.js";
|
|
6
|
+
} from "./shell-j6s3yjyb.js";
|
|
10
7
|
import {
|
|
11
8
|
exports_bus
|
|
12
|
-
} from "./
|
|
9
|
+
} from "./shell-07b0cypv.js";
|
|
10
|
+
import {
|
|
11
|
+
AbsolutePath
|
|
12
|
+
} from "./shell-j07kk359.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./shell-vpjkya7h.js";
|
|
16
16
|
|
|
17
17
|
// src/instruction-discovery.ts
|
|
18
18
|
var exports_instruction_discovery = {};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
configuredSettings
|
|
3
|
+
} from "./shell-kftmq20s.js";
|
|
1
4
|
import {
|
|
2
5
|
iife
|
|
3
|
-
} from "./
|
|
6
|
+
} from "./shell-ehj9csmv.js";
|
|
4
7
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
8
|
+
exports_integration
|
|
9
|
+
} from "./shell-kk74kxfs.js";
|
|
7
10
|
import {
|
|
8
11
|
exports_app
|
|
9
|
-
} from "./
|
|
10
|
-
import {
|
|
11
|
-
which
|
|
12
|
-
} from "./aisdk-k3e42drn.js";
|
|
12
|
+
} from "./shell-hs51b0fc.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
exports_provider
|
|
15
|
+
} from "./shell-68yag814.js";
|
|
16
16
|
import {
|
|
17
17
|
exports_credential
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./shell-ask3gap1.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
which
|
|
21
|
+
} from "./shell-k3e42drn.js";
|
|
22
22
|
import {
|
|
23
23
|
exports_bus
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./shell-07b0cypv.js";
|
|
25
25
|
import {
|
|
26
26
|
__require
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./shell-vpjkya7h.js";
|
|
28
28
|
|
|
29
29
|
// src/plugin/provider/azure.ts
|
|
30
30
|
import { Clock, Effect, Schema, Semaphore, Stream } from "effect";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
InstructionEntryTable
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./shell-q606pcse.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_instructions
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./shell-c54e84vp.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_database
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./shell-t1qmyghk.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./shell-vpjkya7h.js";
|
|
13
13
|
|
|
14
14
|
// src/session/instruction-entry.ts
|
|
15
15
|
var exports_instruction_entry = {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProjectTable
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./shell-c8ya26sa.js";
|
|
4
4
|
import {
|
|
5
5
|
directoryColumn,
|
|
6
6
|
pathColumn
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./shell-zbqqnp0n.js";
|
|
8
8
|
import {
|
|
9
9
|
Timestamps
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./shell-sem2g21k.js";
|
|
11
11
|
|
|
12
12
|
// src/session/sql.ts
|
|
13
13
|
import { sqliteTable, text, integer, index, primaryKey, real, uniqueIndex } from "drizzle-orm/sqlite-core";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_wellknown
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./shell-s231yqcx.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_bus
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./shell-07b0cypv.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./shell-vpjkya7h.js";
|
|
10
10
|
|
|
11
11
|
// src/wellknown/plugin.ts
|
|
12
12
|
var exports_plugin = {};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./shell-8rpfd2h6.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./shell-bjwj8hwv.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_id
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./shell-x4az4y7r.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_kv
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./shell-j9a1jgvn.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./shell-vpjkya7h.js";
|
|
16
16
|
|
|
17
17
|
// src/job.ts
|
|
18
18
|
var exports_job = {};
|
|
@@ -94,13 +94,13 @@ var make = Effect.gen(function* () {
|
|
|
94
94
|
...job.info.error !== undefined ? { error: job.info.error } : {}
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
|
-
const settle = Effect.fnUntraced(function* (id,
|
|
97
|
+
const settle = Effect.fnUntraced(function* (id, scope, exit) {
|
|
98
98
|
const completed_at = yield* Clock.currentTimeMillis;
|
|
99
99
|
const result = yield* SynchronizedRef.modifyEffect(state.jobs, Effect.fnUntraced(function* (jobs) {
|
|
100
100
|
const job = jobs.get(id);
|
|
101
101
|
if (!job)
|
|
102
102
|
return [{}, jobs];
|
|
103
|
-
if (job.
|
|
103
|
+
if (job.scope !== scope)
|
|
104
104
|
return [{}, jobs];
|
|
105
105
|
if (job.info.status !== "running")
|
|
106
106
|
return [{ info: snapshot(job) }, jobs];
|
|
@@ -145,7 +145,6 @@ var make = Effect.gen(function* () {
|
|
|
145
145
|
return [{ info: snapshot(existing) }, jobs];
|
|
146
146
|
}
|
|
147
147
|
const scope = yield* Scope.fork(state.scope, "parallel");
|
|
148
|
-
const token = {};
|
|
149
148
|
const job = {
|
|
150
149
|
info: {
|
|
151
150
|
id,
|
|
@@ -159,15 +158,14 @@ var make = Effect.gen(function* () {
|
|
|
159
158
|
done,
|
|
160
159
|
backgrounded,
|
|
161
160
|
scope,
|
|
162
|
-
token,
|
|
163
161
|
blockingSessions: new Map,
|
|
164
162
|
isBackgrounded: false,
|
|
165
163
|
recovery: input.recovery
|
|
166
164
|
};
|
|
167
|
-
return [{ info: snapshot(job), scope
|
|
165
|
+
return [{ info: snapshot(job), scope }, new Map(jobs).set(id, job)];
|
|
168
166
|
}));
|
|
169
167
|
if ("scope" in result)
|
|
170
|
-
yield* restore(input.run).pipe(Effect.exit, Effect.flatMap((exit) => settle(id, result.
|
|
168
|
+
yield* restore(input.run).pipe(Effect.exit, Effect.flatMap((exit) => settle(id, result.scope, exit)), Effect.asVoid, Effect.forkIn(result.scope, { startImmediately: true }));
|
|
171
169
|
return result.info;
|
|
172
170
|
}));
|
|
173
171
|
});
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_mime
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./shell-kq3q54gz.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_filesystem
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./shell-7rd51vdr.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_environment1 as exports_environment
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./shell-tde1y35v.js";
|
|
10
10
|
import {
|
|
11
11
|
NonNegativeInt,
|
|
12
12
|
PositiveInt,
|
|
13
13
|
RelativePath
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./shell-j07kk359.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./shell-vpjkya7h.js";
|
|
18
18
|
|
|
19
19
|
// src/tool/read-filesystem.ts
|
|
20
20
|
var exports_read_filesystem = {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EffectSQLiteSession
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./shell-kk70vshc.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLiteEffectDatabase
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./shell-c3rqq6n4.js";
|
|
7
7
|
import {
|
|
8
8
|
jitCompatCheck
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./shell-k8b45nas.js";
|
|
10
10
|
|
|
11
11
|
// src/database/drizzle/effect-sqlite/driver.ts
|
|
12
12
|
import * as Effect from "effect/Effect";
|
|
@@ -1,30 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_watcher
|
|
3
|
-
} from "./
|
|
4
|
-
import {
|
|
5
|
-
exports_variable
|
|
6
|
-
} from "./aisdk-6vbv4je1.js";
|
|
3
|
+
} from "./shell-v9qxqszp.js";
|
|
7
4
|
import {
|
|
8
5
|
exports_normalize
|
|
9
|
-
} from "./
|
|
6
|
+
} from "./shell-j5vqta4j.js";
|
|
10
7
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
8
|
+
exports_discovery
|
|
9
|
+
} from "./shell-1n0ft3sp.js";
|
|
10
|
+
import {
|
|
11
|
+
exports_watch
|
|
12
|
+
} from "./shell-zwfcr2t4.js";
|
|
13
|
+
import {
|
|
14
|
+
exports_variable
|
|
15
|
+
} from "./shell-6vbv4je1.js";
|
|
13
16
|
import {
|
|
14
17
|
exports_wellknown
|
|
15
|
-
} from "./
|
|
18
|
+
} from "./shell-s231yqcx.js";
|
|
16
19
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
20
|
+
exports_credential
|
|
21
|
+
} from "./shell-ask3gap1.js";
|
|
19
22
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
23
|
+
exports_location
|
|
24
|
+
} from "./shell-6qqxywp2.js";
|
|
22
25
|
import {
|
|
23
26
|
exports_bus
|
|
24
|
-
} from "./
|
|
27
|
+
} from "./shell-07b0cypv.js";
|
|
28
|
+
import {
|
|
29
|
+
AbsolutePath
|
|
30
|
+
} from "./shell-j07kk359.js";
|
|
25
31
|
import {
|
|
26
32
|
__export
|
|
27
|
-
} from "./
|
|
33
|
+
} from "./shell-vpjkya7h.js";
|
|
28
34
|
|
|
29
35
|
// src/config.ts
|
|
30
36
|
var exports_config = {};
|
|
@@ -43,7 +49,7 @@ import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
|
43
49
|
import path from "path";
|
|
44
50
|
import { isDeepStrictEqual } from "node:util";
|
|
45
51
|
import { parse } from "jsonc-parser";
|
|
46
|
-
import { Context, Effect, Layer, Option, PubSub, Ref, Schema, Semaphore, Stream } from "effect";
|
|
52
|
+
import { Context, Effect, FiberMap, Layer, Option, PubSub, Ref, Schema, Semaphore, Stream } from "effect";
|
|
47
53
|
import {
|
|
48
54
|
AgentsDirectory,
|
|
49
55
|
ClaudeDirectory,
|
|
@@ -82,15 +88,12 @@ var testLayer = (initial = []) => Layer.effectContext(Effect.gen(function* () {
|
|
|
82
88
|
}));
|
|
83
89
|
var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
84
90
|
const fs = yield* FSUtil.Service;
|
|
85
|
-
const global = yield* Global.Service;
|
|
86
91
|
const location = yield* exports_location.Service;
|
|
87
92
|
const watcher = yield* exports_watcher.Service;
|
|
88
93
|
const bus = yield* exports_bus.Service;
|
|
89
94
|
const credentials = yield* exports_credential.Service;
|
|
90
95
|
const wellknown = yield* exports_wellknown.Service;
|
|
91
|
-
const names = ["opencode.json", "opencode.jsonc"];
|
|
92
96
|
const reloadLock = Semaphore.makeUnsafe(1);
|
|
93
|
-
const fileTargets = new Set;
|
|
94
97
|
const decodeOptions = { errors: "all", onExcessProperty: "ignore", propertyOrder: "original" };
|
|
95
98
|
const decodeInfo = Schema.decodeUnknownOption(Info, decodeOptions);
|
|
96
99
|
const parseInfo = Effect.fn("Config.parseInfo")(function* (text, source) {
|
|
@@ -157,56 +160,27 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
157
160
|
});
|
|
158
161
|
const loadDirectory = Effect.fnUntraced(function* (directory) {
|
|
159
162
|
return [
|
|
160
|
-
...yield* Effect.forEach(names, (file) => loadFile(path.join(directory, file))).pipe(Effect.map((configs2) => configs2.filter((config) => config !== undefined))),
|
|
163
|
+
...yield* Effect.forEach(exports_discovery.names, (file) => loadFile(path.join(directory, file))).pipe(Effect.map((configs2) => configs2.filter((config) => config !== undefined))),
|
|
161
164
|
new Directory({ type: "directory", path: directory })
|
|
162
165
|
];
|
|
163
166
|
});
|
|
164
|
-
const
|
|
165
|
-
const
|
|
166
|
-
const
|
|
167
|
-
const
|
|
168
|
-
const
|
|
169
|
-
const locationIsGlobal = (yield* fs.resolve(location.directory)) === globalRoots[0];
|
|
170
|
-
const discovered = locationIsGlobal || options?.project === false ? [] : yield* fs.up({
|
|
171
|
-
targets: [".opencode", ".claude", ".agents", ...names.toReversed()],
|
|
172
|
-
start: location.directory
|
|
173
|
-
}).pipe(Effect.flatMap((items) => Effect.forEach(items, (item) => fs.resolve(item).pipe(Effect.map((resolved) => ({ item, resolved }))))), Effect.orDie);
|
|
174
|
-
const globalEnabled = options?.global !== false;
|
|
175
|
-
const globalFiles = yield* Effect.forEach(names, (name) => fs.resolve(path.join(globalDirectory, name)));
|
|
176
|
-
const visible = discovered.filter(({ resolved }) => globalEnabled ? !globalRoots.includes(resolved) && !globalFiles.includes(resolved) : !globalRoots.some((root) => resolved === root || resolved.startsWith(root + path.sep))).map(({ item }) => item);
|
|
177
|
-
const claude = [
|
|
178
|
-
...new Set([
|
|
179
|
-
...globalEnabled && (yield* fs.isDir(globalClaudeDirectory)) ? [globalClaudeDirectory] : [],
|
|
180
|
-
...visible.filter((item) => path.basename(item) === ".claude").toReversed()
|
|
181
|
-
])
|
|
182
|
-
].map((directory) => new ClaudeDirectory({ type: "claude", path: AbsolutePath.make(directory) }));
|
|
183
|
-
const agents = [
|
|
184
|
-
...new Set([
|
|
185
|
-
...globalEnabled && (yield* fs.isDir(globalAgentsDirectory)) ? [globalAgentsDirectory] : [],
|
|
186
|
-
...visible.filter((item) => path.basename(item) === ".agents").toReversed()
|
|
187
|
-
])
|
|
188
|
-
].map((directory) => new AgentsDirectory({ type: "agents", path: AbsolutePath.make(directory) }));
|
|
189
|
-
const projectDirectories = visible.filter((item) => path.basename(item) === ".opencode").toReversed().map((directory) => AbsolutePath.make(directory));
|
|
190
|
-
const directPaths = visible.filter((item) => ![".agents", ".claude", ".opencode"].includes(path.basename(item))).toReversed();
|
|
191
|
-
fileTargets.clear();
|
|
192
|
-
directPaths.forEach((filepath) => fileTargets.add(AbsolutePath.make(filepath)));
|
|
193
|
-
const direct = yield* Effect.forEach(directPaths, (filepath) => loadFile(filepath)).pipe(Effect.orDie, Effect.map((entries) => entries.filter((entry) => entry !== undefined)));
|
|
194
|
-
const file = options?.file;
|
|
195
|
-
if (file)
|
|
196
|
-
fileTargets.add(AbsolutePath.make(path.resolve(file)));
|
|
197
|
-
const explicit = file ? yield* loadFile(path.resolve(file)).pipe(Effect.map((config) => config ? [config] : []), Effect.orDie) : [];
|
|
167
|
+
const load = Effect.fn("Config.load")(function* (sources) {
|
|
168
|
+
const claude = yield* Effect.filter(sources.claude, (path2) => fs.isDir(path2));
|
|
169
|
+
const agents = yield* Effect.filter(sources.agents, (path2) => fs.isDir(path2));
|
|
170
|
+
const direct = yield* Effect.forEach(sources.direct, (filepath) => loadFile(filepath)).pipe(Effect.orDie, Effect.map((entries) => entries.filter((entry) => entry !== undefined)));
|
|
171
|
+
const explicit = sources.explicit ? yield* loadFile(sources.explicit).pipe(Effect.map((config) => config ? [config] : []), Effect.orDie) : [];
|
|
198
172
|
const content = options?.content !== undefined ? yield* exports_variable.substitute({
|
|
199
173
|
type: "virtual",
|
|
200
174
|
source: "OPENCODE_CONFIG_CONTENT",
|
|
201
175
|
dir: location.directory,
|
|
202
176
|
text: options.content
|
|
203
177
|
}).pipe(Effect.flatMap((text) => parseInfo(text, "OPENCODE_CONFIG_CONTENT")), Effect.map((info) => info ? [new Document({ type: "document", info })] : []), Effect.orDie) : [];
|
|
204
|
-
const globalSupplementary =
|
|
205
|
-
const projectSupplementary = yield* Effect.forEach(
|
|
178
|
+
const globalSupplementary = sources.global ? yield* loadDirectory(sources.global).pipe(Effect.orDie) : [];
|
|
179
|
+
const projectSupplementary = yield* Effect.forEach(sources.project.filter((root) => root.present), (root) => loadDirectory(root.path)).pipe(Effect.orDie, Effect.map((entries) => entries.flat()));
|
|
206
180
|
return [
|
|
207
181
|
...yield* loadWellknown().pipe(Effect.orDie),
|
|
208
|
-
...claude,
|
|
209
|
-
...agents,
|
|
182
|
+
...claude.map((path2) => new ClaudeDirectory({ type: "claude", path: path2 })),
|
|
183
|
+
...agents.map((path2) => new AgentsDirectory({ type: "agents", path: path2 })),
|
|
210
184
|
...globalSupplementary,
|
|
211
185
|
...explicit,
|
|
212
186
|
...direct,
|
|
@@ -214,39 +188,33 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
214
188
|
...content
|
|
215
189
|
];
|
|
216
190
|
});
|
|
217
|
-
const initial = yield* discover();
|
|
218
|
-
let configs = initial;
|
|
191
|
+
const initial = yield* exports_discovery.discover(options);
|
|
192
|
+
let configs = yield* load(initial);
|
|
219
193
|
const updates = yield* PubSub.unbounded();
|
|
220
|
-
const
|
|
221
|
-
const
|
|
222
|
-
const
|
|
223
|
-
|
|
224
|
-
const
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
];
|
|
232
|
-
for (const target of targets) {
|
|
233
|
-
const key = JSON.stringify(target);
|
|
234
|
-
if (watched.has(key))
|
|
235
|
-
continue;
|
|
236
|
-
watched.add(key);
|
|
237
|
-
const stream = yield* watcher.subscribe(target);
|
|
238
|
-
yield* stream.pipe(Stream.runForEach((update) => PubSub.publish(updates, update)), Effect.forkScoped({ startImmediately: true }));
|
|
194
|
+
const reloads = yield* PubSub.sliding(1);
|
|
195
|
+
const requestReload = PubSub.publish(reloads, undefined).pipe(Effect.asVoid);
|
|
196
|
+
const watched = yield* FiberMap.make();
|
|
197
|
+
const reconcile = Effect.fn("Config.reconcileWatches")(function* (sources) {
|
|
198
|
+
const plan = exports_watch.plan(sources);
|
|
199
|
+
for (const key of Array.from(watched, ([key2]) => key2)) {
|
|
200
|
+
if (!plan.has(key))
|
|
201
|
+
yield* FiberMap.remove(watched, key);
|
|
202
|
+
}
|
|
203
|
+
for (const [key, target] of plan) {
|
|
204
|
+
yield* watcher.subscribe(target, requestReload).pipe(Effect.flatMap(Stream.runForEach((update) => PubSub.publish(updates, update).pipe(Effect.andThen(requestReload)))), FiberMap.run(watched, key, { onlyIfMissing: true, startImmediately: true }));
|
|
239
205
|
}
|
|
240
206
|
});
|
|
241
207
|
const reload = Effect.fn("Config.reload")(function* () {
|
|
242
|
-
const
|
|
243
|
-
yield*
|
|
208
|
+
const sources = yield* exports_discovery.discover(options);
|
|
209
|
+
const next = yield* load(sources);
|
|
210
|
+
yield* reconcile(sources);
|
|
244
211
|
if (isDeepStrictEqual(configs, next))
|
|
245
212
|
return;
|
|
246
213
|
configs = next;
|
|
247
214
|
yield* bus.publish(Event.Updated, {});
|
|
248
215
|
}, (effect) => reloadLock.withPermit(effect));
|
|
249
|
-
|
|
216
|
+
const pendingReloads = yield* PubSub.subscribe(reloads);
|
|
217
|
+
yield* Stream.fromSubscription(pendingReloads).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload config", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
250
218
|
yield* bus.subscribe(exports_credential.Event.Switched).pipe(Stream.filterEffect((event) => wellknown.entries().pipe(Effect.map((entries) => entries.some((entry) => entry.integrationID === event.data.integrationID)), Effect.orElseSucceed(() => false))), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown config", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
251
219
|
yield* bus.subscribe(exports_wellknown.Event.Updated).pipe(Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown sources", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
252
220
|
yield* Effect.sleep("10 minutes").pipe(Effect.andThen(Effect.suspend(() => {
|
|
@@ -258,7 +226,7 @@ var layer = (options) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
258
226
|
yield* reload();
|
|
259
227
|
}).pipe(Effect.catchCause((cause) => Effect.logWarning("failed to refresh wellknown config", { cause })));
|
|
260
228
|
})), Effect.forever, Effect.forkScoped({ startImmediately: true }));
|
|
261
|
-
yield* reconcile(initial);
|
|
229
|
+
yield* reloadLock.withPermit(reconcile(initial));
|
|
262
230
|
return Service.of({
|
|
263
231
|
entries: Effect.fnUntraced(function* () {
|
|
264
232
|
return configs;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
webSocketConstructor
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./shell-326j4s6w.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./shell-vpjkya7h.js";
|
|
7
7
|
|
|
8
8
|
// src/session/model-transport.ts
|
|
9
9
|
var exports_model_transport = {};
|
|
@@ -80,7 +80,7 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
80
80
|
operation: "read",
|
|
81
81
|
code: "close",
|
|
82
82
|
phase: "close",
|
|
83
|
-
delivery: channel.active.
|
|
83
|
+
delivery: channel.active.delivery === "provider-observed" || channel.active.delivery === "terminal" ? "accepted" : "ambiguous"
|
|
84
84
|
})));
|
|
85
85
|
yield* metric("close");
|
|
86
86
|
});
|
|
@@ -123,7 +123,7 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
123
123
|
code: "idle-data",
|
|
124
124
|
phase: "receive"
|
|
125
125
|
});
|
|
126
|
-
active.
|
|
126
|
+
active.delivery = "provider-observed";
|
|
127
127
|
if (typeof message !== "string")
|
|
128
128
|
return yield* transportError("Unsupported binary WebSocket frame", {
|
|
129
129
|
url: exchange.connect.url,
|
|
@@ -142,7 +142,7 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
142
142
|
});
|
|
143
143
|
})), Effect.catch((error) => channel.closing ? Effect.void : poison(owner, channel, annotate(error, {
|
|
144
144
|
phase: error.reason._tag === "Transport" && error.reason.phase === "close" ? "close" : "receive",
|
|
145
|
-
delivery: channel.active?.
|
|
145
|
+
delivery: channel.active?.delivery === "provider-observed" || channel.active?.delivery === "terminal" || error.reason._tag === "Transport" && error.reason.code === "queue-overflow" ? "accepted" : error.reason._tag === "Transport" && error.reason.code === "1009" ? "rejected" : "ambiguous"
|
|
146
146
|
}))), Effect.forkIn(scope, { startImmediately: true }));
|
|
147
147
|
yield* Effect.logDebug("session websocket connected", {
|
|
148
148
|
sessionTransport: "websocket",
|
|
@@ -156,7 +156,7 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
156
156
|
frames: exchange.fallback(),
|
|
157
157
|
complete: Effect.void
|
|
158
158
|
});
|
|
159
|
-
const start = Effect.fn("SessionModelTransport.start")(function* (owner, exchange
|
|
159
|
+
const start = Effect.fn("SessionModelTransport.start")(function* (owner, exchange) {
|
|
160
160
|
if (owner.closed)
|
|
161
161
|
return yield* transportError("Session WebSocket owner is closed", {
|
|
162
162
|
operation: "request",
|
|
@@ -181,7 +181,6 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
181
181
|
yield* metric("reconnect");
|
|
182
182
|
yield* closeChannel(owner, current);
|
|
183
183
|
}
|
|
184
|
-
lifecycle.delivery = owner.channel ? "ready" : "connecting";
|
|
185
184
|
if (owner.channel)
|
|
186
185
|
yield* Effect.logDebug("session websocket reused", {
|
|
187
186
|
sessionTransport: "websocket",
|
|
@@ -197,7 +196,6 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
197
196
|
}).pipe(Effect.andThen(metric("connect_failure")), Effect.andThen(metric("fallback")), Effect.as(undefined))));
|
|
198
197
|
if (!channel)
|
|
199
198
|
return fallback(exchange);
|
|
200
|
-
lifecycle.delivery = "ready";
|
|
201
199
|
if (channel.pending) {
|
|
202
200
|
channel.pending = undefined;
|
|
203
201
|
channel.checkpoint = undefined;
|
|
@@ -205,9 +203,11 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
205
203
|
const create = yield* exchange.driver.create(channel.checkpoint).pipe(Effect.tapError(() => closeChannel(owner, channel)), Effect.onInterrupt(() => closeChannel(owner, channel)));
|
|
206
204
|
if (create.mode === "full")
|
|
207
205
|
channel.checkpoint = undefined;
|
|
208
|
-
const active = {
|
|
206
|
+
const active = {
|
|
207
|
+
queue: yield* Queue.bounded(INBOUND_CAPACITY),
|
|
208
|
+
delivery: "send-attempted"
|
|
209
|
+
};
|
|
209
210
|
channel.active = active;
|
|
210
|
-
lifecycle.delivery = "send-attempted";
|
|
211
211
|
const sent = yield* channel.connection.sendText(create.message).pipe(Effect.withSpan("SessionModelTransport.send"), Effect.onInterrupt(() => closeChannel(owner, channel)), Effect.result);
|
|
212
212
|
if (sent._tag === "Failure") {
|
|
213
213
|
const failure = new AIError({
|
|
@@ -237,13 +237,13 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
237
237
|
operation: "read",
|
|
238
238
|
code: "idle-timeout",
|
|
239
239
|
phase: "receive",
|
|
240
|
-
delivery:
|
|
240
|
+
delivery: active.delivery === "provider-observed" ? "accepted" : "ambiguous"
|
|
241
241
|
}))
|
|
242
242
|
}), Stream.mapEffect((frame) => exchange.driver.observe(create, frame)), Stream.tap((observation) => Effect.sync(() => {
|
|
243
243
|
if (!observationTerminal(observation))
|
|
244
244
|
return;
|
|
245
245
|
terminal = observation;
|
|
246
|
-
|
|
246
|
+
active.delivery = "terminal";
|
|
247
247
|
const staged = observation.type === "completed" ? observation.checkpoint : undefined;
|
|
248
248
|
if (staged)
|
|
249
249
|
channel.pending = { token, checkpoint: staged };
|
|
@@ -276,7 +276,7 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
276
276
|
operation: "read",
|
|
277
277
|
code: "incomplete",
|
|
278
278
|
phase: "receive",
|
|
279
|
-
delivery:
|
|
279
|
+
delivery: active.delivery === "provider-observed" ? "accepted" : "ambiguous"
|
|
280
280
|
});
|
|
281
281
|
yield* poison(owner, channel, error);
|
|
282
282
|
})), Stream.catch((error) => {
|
|
@@ -301,13 +301,12 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
301
301
|
const bind = (sessionID) => ({
|
|
302
302
|
execute: (exchange) => {
|
|
303
303
|
const owner = state(sessionID);
|
|
304
|
-
const lifecycle = { delivery: "queued" };
|
|
305
304
|
let execution;
|
|
306
305
|
return Effect.succeed({
|
|
307
306
|
get http() {
|
|
308
307
|
return execution?.http;
|
|
309
308
|
},
|
|
310
|
-
frames: Stream.unwrap(Effect.acquireRelease(owner.lock.take(1), () => owner.lock.release(1), { interruptible: true }).pipe(Effect.andThen(start(owner, exchange
|
|
309
|
+
frames: Stream.unwrap(Effect.acquireRelease(owner.lock.take(1), () => owner.lock.release(1), { interruptible: true }).pipe(Effect.andThen(start(owner, exchange)), Effect.tap((started) => Effect.sync(() => {
|
|
311
310
|
execution = started;
|
|
312
311
|
})), Effect.map((started) => started.frames))),
|
|
313
312
|
complete: Effect.suspend(() => execution?.complete ?? Effect.void)
|