@opencode-ai/core 0.0.0-next-17335 → 0.0.0-next-17346
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 +81 -80
- package/dist/aisdk-native.js +3 -3
- package/dist/aisdk.js +4 -4
- package/dist/app.js +2 -2
- package/dist/bus.js +79 -78
- package/dist/catalog.js +88 -87
- package/dist/chunks/{app-02dbfq60.js → plugin-02dbfq60.js} +1 -1
- package/dist/chunks/{app-04kwjb53.js → plugin-04kwjb53.js} +2 -2
- package/dist/chunks/{app-q516cnfv.js → plugin-0bmt5v14.js} +2 -2
- package/dist/chunks/{app-n981m8zt.js → plugin-0chv790w.js} +5 -5
- package/dist/chunks/{app-65jpn00m.js → plugin-0fc9cerp.js} +9 -9
- package/dist/chunks/{app-dbt02g4j.js → plugin-0h4ej6yw.js} +128 -25
- package/dist/chunks/{app-0kvmztkf.js → plugin-0kvmztkf.js} +1 -1
- package/dist/chunks/{app-rmgfhn2t.js → plugin-0r325ptc.js} +6 -8
- package/dist/chunks/{app-10xtr3be.js → plugin-10xtr3be.js} +2 -2
- package/dist/chunks/{app-0zc688m1.js → plugin-13hdqyds.js} +6 -6
- package/dist/chunks/{app-6n33d2zt.js → plugin-159bcd5h.js} +12 -12
- package/dist/chunks/{app-18pv8fg3.js → plugin-18pv8fg3.js} +2 -2
- package/dist/chunks/{app-1c00jchy.js → plugin-1c00jchy.js} +2 -2
- package/dist/chunks/{app-qcga4k7k.js → plugin-1h5w7y10.js} +5 -5
- package/dist/chunks/{app-1kvtxahz.js → plugin-1kvtxahz.js} +1 -1
- package/dist/chunks/{app-gq874kak.js → plugin-1r5g0chd.js} +3 -3
- package/dist/chunks/{app-1xksxgzs.js → plugin-1xksxgzs.js} +2 -2
- package/dist/chunks/{app-h6m5zw2k.js → plugin-1y5hevb1.js} +15 -21
- package/dist/chunks/{app-yt47r5db.js → plugin-227k8v85.js} +2 -2
- package/dist/chunks/{app-25pxtba7.js → plugin-25pxtba7.js} +1 -1
- package/dist/chunks/{app-4z5dpnsv.js → plugin-26aak64n.js} +3 -3
- package/dist/chunks/{app-b1nq29k7.js → plugin-28j1q6h2.js} +7 -7
- package/dist/chunks/{app-8ccp6vnz.js → plugin-2er1z1cy.js} +5 -5
- package/dist/chunks/{app-4dkvetqj.js → plugin-2g569x3r.js} +6 -6
- package/dist/chunks/{app-j99cspxn.js → plugin-2jtvcz07.js} +6 -6
- package/dist/chunks/{app-2nmyybe0.js → plugin-2nmyybe0.js} +1 -1
- package/dist/chunks/{app-gzfr2944.js → plugin-34bh5sq2.js} +7 -7
- package/dist/chunks/{app-37rcj8p3.js → plugin-37rcj8p3.js} +3 -3
- package/dist/chunks/{app-b9g863e8.js → plugin-38fmzcg9.js} +5 -5
- package/dist/chunks/{app-4wxpfswd.js → plugin-3h1h5x4b.js} +4 -4
- package/dist/chunks/{app-3mfgaav1.js → plugin-3mfgaav1.js} +4 -4
- package/dist/chunks/{app-3thh6229.js → plugin-3thh6229.js} +2 -2
- package/dist/chunks/{app-3vh42rcr.js → plugin-3vh42rcr.js} +2 -2
- package/dist/chunks/{app-3w0f1yxt.js → plugin-3w0f1yxt.js} +3 -3
- package/dist/chunks/{app-kbysj895.js → plugin-42fara3y.js} +4 -4
- package/dist/chunks/{app-x8422b88.js → plugin-4kb49531.js} +2 -2
- package/dist/chunks/{app-4s2xwh5d.js → plugin-4s2xwh5d.js} +3 -3
- package/dist/chunks/{app-4zzdwbaz.js → plugin-4zzdwbaz.js} +2 -2
- package/dist/chunks/{app-50jxp3hw.js → plugin-50jxp3hw.js} +1 -1
- package/dist/chunks/{app-j3wx22ze.js → plugin-529k5mf1.js} +5 -5
- package/dist/chunks/{app-tmw2qnje.js → plugin-52af46pn.js} +3 -3
- package/dist/chunks/{app-52jzav25.js → plugin-52jzav25.js} +1 -1
- package/dist/chunks/{app-56p2m126.js → plugin-56p2m126.js} +1 -1
- package/dist/chunks/{app-57tzwnz4.js → plugin-57tzwnz4.js} +1 -1
- package/dist/chunks/{app-pkmtn0sf.js → plugin-586t9d60.js} +5 -5
- package/dist/chunks/{app-9q0jhgvd.js → plugin-5fvy871a.js} +6 -6
- package/dist/chunks/{app-jr4jm25g.js → plugin-5gcdyz0j.js} +4 -4
- package/dist/chunks/{app-cwrt32y2.js → plugin-5jr17dwv.js} +9 -9
- package/dist/chunks/{app-5p2sx24b.js → plugin-5p2sx24b.js} +3 -3
- package/dist/chunks/{app-5pfeh60c.js → plugin-5pfeh60c.js} +2 -2
- package/dist/chunks/{app-g7k2wtxy.js → plugin-5qnwzqq9.js} +9 -9
- package/dist/chunks/{app-5rs65q6p.js → plugin-5rs65q6p.js} +1 -1
- package/dist/chunks/{app-5sgbvx3z.js → plugin-5sgbvx3z.js} +2 -2
- package/dist/chunks/{app-rwmb2jmq.js → plugin-5vsjqaxt.js} +7 -7
- package/dist/chunks/{app-16hvwqqz.js → plugin-65ezx8mc.js} +5 -5
- package/dist/chunks/{app-fep56512.js → plugin-65tyaw4g.js} +2 -2
- package/dist/chunks/{app-h7sbsfdh.js → plugin-6jwn9ww1.js} +86 -82
- package/dist/chunks/{app-3tzbq4td.js → plugin-6me7cwf4.js} +14 -12
- package/dist/chunks/{app-6sc9h3ca.js → plugin-6sc9h3ca.js} +1 -1
- package/dist/chunks/{app-btqsvsd6.js → plugin-6vdnz9js.js} +10 -10
- package/dist/chunks/{app-8jyw9g1t.js → plugin-6xgy3jkz.js} +4 -4
- package/dist/chunks/{app-706a4azd.js → plugin-706a4azd.js} +1 -1
- package/dist/chunks/{app-b7rr85c4.js → plugin-7582w40t.js} +12 -12
- package/dist/chunks/{app-7mpw7j43.js → plugin-7mpw7j43.js} +2 -2
- package/dist/chunks/{app-7mrpdsq5.js → plugin-7mrpdsq5.js} +1 -1
- package/dist/chunks/plugin-7pgh3ep6.js +286 -0
- package/dist/chunks/{app-7wcmqxrc.js → plugin-7wcmqxrc.js} +1 -1
- package/dist/chunks/{app-h0cv54ja.js → plugin-80n80hmh.js} +3 -3
- package/dist/chunks/{app-857g7h76.js → plugin-857g7h76.js} +1 -1
- package/dist/chunks/{app-88jbfw8z.js → plugin-88jbfw8z.js} +2 -2
- package/dist/chunks/{app-rr93phqw.js → plugin-890sy7db.js} +19 -11
- package/dist/chunks/{app-8ywqk2j9.js → plugin-8ywqk2j9.js} +1 -1
- package/dist/chunks/{app-93qdgxxd.js → plugin-93qdgxxd.js} +1 -1
- package/dist/chunks/{app-qhsy44x4.js → plugin-9816vz7t.js} +2 -2
- package/dist/chunks/{app-999qd968.js → plugin-999qd968.js} +1 -1
- package/dist/chunks/{app-zvvp2xr4.js → plugin-9d2xhdr4.js} +16 -4
- package/dist/chunks/{app-9f0rnpkn.js → plugin-9f0rnpkn.js} +1 -1
- package/dist/chunks/{app-9q1hedyj.js → plugin-9q1hedyj.js} +2 -2
- package/dist/chunks/{app-9r0qzhnf.js → plugin-9r0qzhnf.js} +2 -2
- package/dist/chunks/{app-eyz27an3.js → plugin-9tf9cx6w.js} +28 -28
- package/dist/chunks/{app-y3fchm6z.js → plugin-9xx5a70w.js} +4 -4
- package/dist/chunks/{app-7enhmwwz.js → plugin-a027tm0y.js} +5 -5
- package/dist/chunks/{app-gfkf25t4.js → plugin-a2ta2hx3.js} +6 -6
- package/dist/chunks/{app-a65h300v.js → plugin-a65h300v.js} +2 -2
- package/dist/chunks/{app-0x0c3819.js → plugin-a69404f7.js} +8 -8
- package/dist/chunks/{app-jee929nm.js → plugin-abs4hrf7.js} +4 -4
- package/dist/chunks/{app-hycs162w.js → plugin-asy6azmz.js} +7 -7
- package/dist/chunks/{app-ayfwnm78.js → plugin-ayfwnm78.js} +2 -2
- package/dist/chunks/{app-x621qyqy.js → plugin-b020en46.js} +11 -11
- package/dist/chunks/{app-9649hqw4.js → plugin-b25crhmx.js} +3 -3
- package/dist/chunks/{app-a6wcc54f.js → plugin-ba49gtzz.js} +7 -7
- package/dist/chunks/{app-nvt1z2n1.js → plugin-bg4aatrg.js} +7 -7
- package/dist/chunks/{app-h127s9vy.js → plugin-bk0jxqkp.js} +3 -3
- package/dist/chunks/{app-6b17dp15.js → plugin-bksfeg7q.js} +27 -27
- package/dist/chunks/{app-3g53147q.js → plugin-bq4sd2eq.js} +25 -25
- package/dist/chunks/{app-15bemh33.js → plugin-bxw36s91.js} +5 -5
- package/dist/chunks/{app-byab506k.js → plugin-byab506k.js} +1 -1
- package/dist/chunks/{app-nbmzf26a.js → plugin-byy5xkv8.js} +7 -7
- package/dist/chunks/{app-5q2kjf44.js → plugin-c568wdad.js} +9 -9
- package/dist/chunks/{app-f0hm9ta4.js → plugin-c9kmdp25.js} +3 -3
- package/dist/chunks/{app-cgvnqv92.js → plugin-cgvnqv92.js} +1 -1
- package/dist/chunks/{app-919a3qrk.js → plugin-chw4em26.js} +13 -12
- package/dist/chunks/{app-cbq8p2qc.js → plugin-cyyat27q.js} +5 -5
- package/dist/chunks/{app-cz3dkvcz.js → plugin-cz3dkvcz.js} +1 -1
- package/dist/chunks/{app-d076mabj.js → plugin-d076mabj.js} +2 -2
- package/dist/chunks/{app-d6vvk673.js → plugin-d6vvk673.js} +1 -1
- package/dist/chunks/{app-ddn74qps.js → plugin-ddn74qps.js} +2 -2
- package/dist/chunks/{app-dhphtf1x.js → plugin-dhphtf1x.js} +1 -1
- package/dist/chunks/{app-g4hjfc8x.js → plugin-dkc527z1.js} +17 -17
- package/dist/chunks/{app-695htgsm.js → plugin-dq5yhq66.js} +6 -6
- package/dist/chunks/{app-2t9pncaj.js → plugin-dqnq5mmm.js} +78 -78
- package/dist/chunks/{app-r3sk35vx.js → plugin-ds4tyggf.js} +4 -4
- package/dist/chunks/{app-e1z9a0ts.js → plugin-e1z9a0ts.js} +2 -2
- package/dist/chunks/{app-55vp0eqg.js → plugin-e2hvmcn1.js} +60 -60
- package/dist/chunks/{app-jnasrsc7.js → plugin-e8f3mxvd.js} +1 -1
- package/dist/chunks/{app-bwd9fce7.js → plugin-eakv187h.js} +9 -9
- package/dist/chunks/{app-ed4jjjcc.js → plugin-ed4jjjcc.js} +2 -2
- package/dist/chunks/{app-qr7ehfkw.js → plugin-eev1eeyf.js} +3 -3
- package/dist/chunks/plugin-emmqknsm.js +26 -0
- package/dist/chunks/{app-erj4j75s.js → plugin-erj4j75s.js} +1 -1
- package/dist/chunks/{app-0wexhvt6.js → plugin-ertbznsf.js} +18 -18
- package/dist/chunks/{app-s1t3svdm.js → plugin-et4xsbvm.js} +2 -2
- package/dist/chunks/{app-7g9bp7zy.js → plugin-ey3kvayk.js} +7 -7
- package/dist/chunks/{app-eyk9wdct.js → plugin-eyk9wdct.js} +2 -2
- package/dist/chunks/{app-f05p34aa.js → plugin-f05p34aa.js} +3 -3
- package/dist/chunks/{app-hskb502a.js → plugin-f6k9sp1x.js} +5 -5
- package/dist/chunks/{app-swj91yr9.js → plugin-f7e4a9yp.js} +5 -5
- package/dist/chunks/{app-wccqrc8q.js → plugin-f7jsjw8t.js} +6 -6
- package/dist/chunks/{app-fm1nvm5g.js → plugin-fm1nvm5g.js} +1 -1
- package/dist/chunks/{app-fmyre8m1.js → plugin-fmyre8m1.js} +1 -1
- package/dist/chunks/{app-g9yygpzr.js → plugin-g9yygpzr.js} +1 -1
- package/dist/chunks/{app-gcay93cp.js → plugin-gcay93cp.js} +1 -1
- package/dist/chunks/{app-gd2xppx8.js → plugin-gd2xppx8.js} +1 -1
- package/dist/chunks/{app-gm8kdh5e.js → plugin-gm8kdh5e.js} +2 -2
- package/dist/chunks/{app-pr8fgr91.js → plugin-h1rarb39.js} +3 -3
- package/dist/chunks/{app-h8ecejt5.js → plugin-h8ecejt5.js} +1 -1
- package/dist/chunks/{app-c248mbrs.js → plugin-hkwqk5x2.js} +17 -17
- package/dist/chunks/{app-d8b8z25p.js → plugin-hpf3wqnv.js} +19 -19
- package/dist/chunks/{app-252pp5t1.js → plugin-hx4sankz.js} +13 -12
- package/dist/chunks/{app-k3514hrr.js → plugin-j42qxmkr.js} +10 -10
- package/dist/chunks/{app-1pg50nan.js → plugin-jhnyxz2d.js} +8 -8
- package/dist/chunks/{app-hy0hzg1s.js → plugin-jkrm4ad7.js} +14 -0
- package/dist/chunks/{app-gg81f3tc.js → plugin-jm4rgrda.js} +97 -58
- package/dist/chunks/{app-0b9mz2zz.js → plugin-jpafxzwx.js} +9 -9
- package/dist/chunks/{app-jssy2dr3.js → plugin-jssy2dr3.js} +2 -2
- package/dist/chunks/{app-r8b3p74h.js → plugin-k3hj0af3.js} +13 -13
- package/dist/chunks/{app-mq5kc9na.js → plugin-k7ecgj73.js} +2 -2
- package/dist/chunks/{app-3wtzjxz9.js → plugin-k7z41gkz.js} +7 -7
- package/dist/chunks/{app-kcwh27nh.js → plugin-kcwh27nh.js} +3 -3
- package/dist/chunks/{app-ddfcha7d.js → plugin-kesvgneq.js} +8 -8
- package/dist/chunks/{app-kg1345f7.js → plugin-kg1345f7.js} +1 -1
- package/dist/chunks/{app-m61gmzrm.js → plugin-kxf6zgfz.js} +4 -4
- package/dist/chunks/{app-m01ryvbe.js → plugin-m01ryvbe.js} +1 -1
- package/dist/chunks/{app-877b6jx2.js → plugin-mar68760.js} +92 -87
- package/dist/chunks/{app-mf0hyk7z.js → plugin-mf0hyk7z.js} +1 -1
- package/dist/chunks/{app-3ep6e3ar.js → plugin-mgdg92mf.js} +3 -3
- package/dist/chunks/{app-4vnzazhe.js → plugin-mrdc635f.js} +2 -2
- package/dist/chunks/{app-mwceq5am.js → plugin-mwceq5am.js} +1 -1
- package/dist/chunks/{app-nkhdtsyw.js → plugin-n57t1s0k.js} +3 -3
- package/dist/chunks/{app-1av9tmz1.js → plugin-n9rgrq5c.js} +6 -6
- package/dist/chunks/{app-ax7h47s0.js → plugin-ner94p15.js} +11 -11
- package/dist/chunks/{app-nesb2rcz.js → plugin-nesb2rcz.js} +2 -2
- package/dist/chunks/{app-gkgbt54r.js → plugin-nhbjnf4j.js} +44 -59
- package/dist/chunks/{app-1zkaz7gr.js → plugin-nk7t2wb2.js} +6 -6
- package/dist/chunks/{app-nr76rjj3.js → plugin-nr76rjj3.js} +2 -2
- package/dist/chunks/{app-nv7zjdpe.js → plugin-nv7zjdpe.js} +2 -2
- package/dist/chunks/{app-nzrjycs5.js → plugin-nzrjycs5.js} +1 -1
- package/dist/chunks/{app-k9vaxxg2.js → plugin-p6x5rp3c.js} +4 -4
- package/dist/chunks/{app-pfqehjmy.js → plugin-pfqehjmy.js} +2 -2
- package/dist/chunks/{app-ph1me6ah.js → plugin-ph1me6ah.js} +2 -2
- package/dist/chunks/{app-pf5ypctv.js → plugin-phx9p566.js} +3 -3
- package/dist/chunks/{app-pq4b4pqk.js → plugin-pq4b4pqk.js} +2 -2
- package/dist/chunks/{app-prf9bavk.js → plugin-prf9bavk.js} +3 -3
- package/dist/chunks/{app-q4r4pzs4.js → plugin-q4r4pzs4.js} +1 -1
- package/dist/chunks/{app-qe0d689s.js → plugin-qe0d689s.js} +2 -2
- package/dist/chunks/{app-r2wy0t7z.js → plugin-qrcz0h27.js} +8 -8
- package/dist/chunks/{app-a3xgesk5.js → plugin-qw688rwx.js} +5 -5
- package/dist/chunks/{app-r3k9abhd.js → plugin-r3k9abhd.js} +2 -2
- package/dist/chunks/{app-k1fd56f5.js → plugin-rp0ghwk5.js} +3 -3
- package/dist/chunks/{app-z3s38tr7.js → plugin-rp97dpeg.js} +9 -9
- package/dist/chunks/{app-rqswsgbs.js → plugin-rqswsgbs.js} +2 -2
- package/dist/chunks/{app-rt6yg6j2.js → plugin-rt6yg6j2.js} +2 -2
- package/dist/chunks/{app-ryap75b3.js → plugin-ryap75b3.js} +1 -1
- package/dist/chunks/{app-s6by3cc4.js → plugin-s6by3cc4.js} +3 -3
- package/dist/chunks/{app-s9f13v9h.js → plugin-s9f13v9h.js} +1 -1
- package/dist/chunks/{app-4mgz5nw6.js → plugin-sh6s9fhb.js} +3 -3
- package/dist/chunks/{app-smpeg8c9.js → plugin-smpeg8c9.js} +2 -2
- package/dist/chunks/{app-6mhfmmqr.js → plugin-stbhjv87.js} +7 -7
- package/dist/chunks/{app-szax8zgv.js → plugin-szax8zgv.js} +2 -2
- package/dist/chunks/{app-szjq6xea.js → plugin-szjq6xea.js} +2 -2
- package/dist/chunks/{app-cce40zk2.js → plugin-t0hd3br1.js} +10 -10
- package/dist/chunks/{app-t2j2ttmx.js → plugin-t2j2ttmx.js} +1 -1
- package/dist/chunks/{app-qbcccd0j.js → plugin-t2x6yxj4.js} +8 -8
- package/dist/chunks/{app-tcn24h1d.js → plugin-tcn24h1d.js} +1 -1
- package/dist/chunks/{app-tdm3rp2k.js → plugin-tdm3rp2k.js} +1 -1
- package/dist/chunks/{app-tenv3kfs.js → plugin-tenv3kfs.js} +2 -2
- package/dist/chunks/{app-thstd87d.js → plugin-thstd87d.js} +1 -1
- package/dist/chunks/{app-36tebsy3.js → plugin-tn7ysp34.js} +3 -3
- package/dist/chunks/{app-32qpwhyq.js → plugin-trktvck6.js} +8 -8
- package/dist/chunks/{app-ts4t4v20.js → plugin-ts4t4v20.js} +2 -2
- package/dist/chunks/{app-tyh0a1hs.js → plugin-tyh0a1hs.js} +3 -3
- package/dist/chunks/{app-42pr6m4v.js → plugin-v6rx9nxt.js} +3 -3
- package/dist/chunks/{app-89nbqv4e.js → plugin-v710hcs5.js} +3 -3
- package/dist/chunks/{app-v972xay6.js → plugin-v972xay6.js} +1 -1
- package/dist/chunks/{app-v9bfv94f.js → plugin-v9bfv94f.js} +1 -1
- package/dist/chunks/{app-07879qbe.js → plugin-vsfj499p.js} +11 -11
- package/dist/chunks/{app-52vrdvh3.js → plugin-vvj78s9s.js} +3 -3
- package/dist/chunks/{app-r1pn2q79.js → plugin-vvp549aa.js} +6 -6
- package/dist/chunks/{app-zz7g7dgq.js → plugin-vxb3r0qz.js} +114 -114
- package/dist/chunks/{app-vynn1k31.js → plugin-vynn1k31.js} +2 -2
- package/dist/chunks/{app-vz89hfgr.js → plugin-vz89hfgr.js} +1 -1
- package/dist/chunks/{app-00r41jbj.js → plugin-w60xp8cd.js} +2 -2
- package/dist/chunks/{app-wd268jeg.js → plugin-wd268jeg.js} +1 -1
- package/dist/chunks/{app-we2zmhe4.js → plugin-we2zmhe4.js} +2 -2
- package/dist/chunks/{app-wf37p1a1.js → plugin-wf37p1a1.js} +1 -1
- package/dist/chunks/{app-fky33s4r.js → plugin-wjk1568y.js} +4 -4
- package/dist/chunks/{app-1qjjrk1p.js → plugin-wm8vd51k.js} +5 -5
- package/dist/chunks/{app-wmxdh12w.js → plugin-wmxdh12w.js} +1 -1
- package/dist/chunks/{app-0c808nm7.js → plugin-wpaejcex.js} +8 -8
- package/dist/chunks/{app-wps8gh8n.js → plugin-wps8gh8n.js} +2 -2
- package/dist/chunks/{app-wt193r4g.js → plugin-wt193r4g.js} +1 -1
- package/dist/chunks/{app-vg1a9k54.js → plugin-x0bn85tk.js} +2 -2
- package/dist/chunks/{app-xfd1xnk3.js → plugin-xfd1xnk3.js} +2 -2
- package/dist/chunks/{app-xfrawapx.js → plugin-xfrawapx.js} +1 -1
- package/dist/chunks/{app-xgv25zxy.js → plugin-xgv25zxy.js} +1 -1
- package/dist/chunks/{app-rw8dscsf.js → plugin-xhemxv6a.js} +2 -2
- package/dist/chunks/{app-z7px8c9g.js → plugin-xmwcxxnt.js} +1 -1
- package/dist/chunks/{app-xq1vkeee.js → plugin-xq1vkeee.js} +2 -2
- package/dist/chunks/{app-nvhb2pkk.js → plugin-xseqks1m.js} +8 -8
- package/dist/chunks/{app-5cpn88d0.js → plugin-xtr0882n.js} +9 -9
- package/dist/chunks/{app-xwftk1fd.js → plugin-xwftk1fd.js} +2 -2
- package/dist/chunks/{app-7cqmh9qy.js → plugin-xxm3x3xr.js} +10 -10
- package/dist/chunks/{app-y0x38cee.js → plugin-y0x38cee.js} +1 -1
- package/dist/chunks/{app-y67x6rf6.js → plugin-y67x6rf6.js} +1 -1
- package/dist/chunks/{app-y8rs54ne.js → plugin-y8rs54ne.js} +1 -1
- package/dist/chunks/{app-q8bcfd62.js → plugin-yasxzqrp.js} +5 -5
- package/dist/chunks/{app-0a78htpv.js → plugin-ycq55mr6.js} +2 -2
- package/dist/chunks/{app-hrrkwtqv.js → plugin-yjvmn5ye.js} +3 -3
- package/dist/chunks/{app-pn5zyfhy.js → plugin-yxtd6q50.js} +27 -25
- package/dist/chunks/{app-yz0wm9s3.js → plugin-yz0wm9s3.js} +2 -2
- package/dist/chunks/{app-wvfrhbat.js → plugin-z8t5vj4n.js} +4 -4
- package/dist/chunks/{app-0jgdtkpr.js → plugin-z9mz041q.js} +3 -3
- package/dist/chunks/{app-zbqqnp0n.js → plugin-zbqqnp0n.js} +1 -1
- package/dist/chunks/{app-zdkg1k91.js → plugin-zdkg1k91.js} +1 -1
- package/dist/chunks/{app-zfxc0ze5.js → plugin-zfxc0ze5.js} +1 -1
- package/dist/chunks/{app-mymjj5q2.js → plugin-zp549347.js} +3 -3
- package/dist/chunks/{app-bwnsmz26.js → plugin-zr4mqfw6.js} +28 -28
- package/dist/chunks/{app-zthe9zqc.js → plugin-zthe9zqc.js} +1 -1
- package/dist/codemode/catalog.js +2 -2
- package/dist/codemode/instructions.js +4 -4
- package/dist/codemode/tool.js +3 -3
- package/dist/command.js +129 -128
- package/dist/config/markdown.js +2 -2
- package/dist/config/normalize.js +20 -20
- package/dist/config/plugin/agent.js +130 -129
- package/dist/config/plugin/command.js +131 -130
- package/dist/config/plugin/instruction.js +86 -85
- package/dist/config/plugin/policy.js +111 -110
- package/dist/config/plugin/provider.js +110 -109
- package/dist/config/plugin/reference.js +114 -113
- package/dist/config/plugin/skill-file.js +103 -102
- package/dist/config/plugin/skill.js +133 -132
- package/dist/config/plugin/source.js +110 -109
- package/dist/config/plugin/websearch.js +110 -109
- package/dist/config/variable.js +4 -4
- package/dist/config.js +109 -108
- package/dist/credential/sql.js +3 -3
- package/dist/credential.js +69 -68
- package/dist/database/database.js +66 -65
- package/dist/database/drizzle/effect-sqlite/driver.js +16 -16
- package/dist/database/drizzle/effect-sqlite/index.js +16 -16
- package/dist/database/drizzle/effect-sqlite/migrator.js +15 -15
- package/dist/database/drizzle/effect-sqlite/session.js +15 -15
- package/dist/database/drizzle/index.js +20 -20
- 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 +21 -21
- 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 +14 -14
- package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
- package/dist/database/drizzle/up-migrations/effect-sqlite.js +4 -4
- package/dist/database/drizzle/up-migrations/sqlite.js +3 -3
- package/dist/database/drizzle/up-migrations/utils.js +2 -2
- package/dist/database/drizzle.js +21 -21
- 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 +7 -0
- package/dist/database/migration.gen.js +45 -44
- package/dist/database/migration.js +47 -46
- 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 +78 -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 +311 -310
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +2 -2
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +85 -84
- package/dist/environment/exec-defaults.js +3 -3
- package/dist/environment/files.js +2 -2
- package/dist/environment/index.js +87 -86
- package/dist/environment/local.js +3 -3
- package/dist/environment/memory.js +3 -3
- package/dist/environment/unavailable.js +25 -0
- package/dist/event/sql.js +2 -2
- package/dist/event-logger.js +79 -78
- package/dist/file-mutation.js +86 -85
- 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.js +110 -109
- package/dist/filesystem/protected.js +2 -2
- package/dist/filesystem/search.js +90 -89
- package/dist/filesystem/watcher-binding.js +2 -2
- package/dist/filesystem/watcher.js +4 -4
- package/dist/filesystem.js +90 -89
- package/dist/form.js +80 -79
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +112 -111
- package/dist/generate.js +93 -92
- 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 +21 -21
- 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 +3 -3
- 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 +12 -12
- 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/local-shell.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 +123 -122
- package/dist/image.js +123 -122
- package/dist/instruction-discovery.js +82 -81
- package/dist/instructions/builtins.js +80 -79
- package/dist/instructions/index.js +2 -2
- package/dist/integration/connection.js +2 -2
- package/dist/integration.js +85 -84
- package/dist/job.js +4 -4
- package/dist/kv/sql.js +3 -3
- package/dist/kv.js +69 -68
- package/dist/location-mutation.js +78 -77
- package/dist/location-service-map.js +78 -77
- package/dist/location-services.js +311 -310
- package/dist/location.js +77 -76
- package/dist/mcp/client.js +87 -86
- package/dist/mcp/index.js +126 -125
- package/dist/mcp/instructions.js +154 -153
- package/dist/mcp/oauth.js +3 -3
- package/dist/mcp/stdio.js +86 -85
- package/dist/mime.js +2 -2
- package/dist/model-resolver.js +91 -90
- package/dist/model.js +3 -3
- package/dist/models-dev.js +85 -84
- package/dist/oauth/page.js +2 -2
- package/dist/permission/saved.js +78 -77
- package/dist/permission/sql.js +6 -6
- package/dist/permission.js +100 -99
- package/dist/plugin/agent.js +101 -100
- package/dist/plugin/command.js +78 -77
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +185 -184
- package/dist/plugin/internal.js +271 -270
- package/dist/plugin/models-dev.js +86 -85
- package/dist/plugin/plan.js +83 -82
- package/dist/plugin/promise.js +145 -144
- 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 +117 -116
- package/dist/plugin/provider/cerebras.js +3 -3
- package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -117
- package/dist/plugin/provider/cloudflare-workers-ai.js +118 -117
- package/dist/plugin/provider/cohere.js +3 -3
- package/dist/plugin/provider/configured.js +115 -114
- package/dist/plugin/provider/deepinfra.js +3 -3
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +2 -2
- package/dist/plugin/provider/gateway.js +3 -3
- package/dist/plugin/provider/github-copilot.js +92 -91
- package/dist/plugin/provider/gitlab.js +4 -4
- package/dist/plugin/provider/google-vertex.js +3 -3
- package/dist/plugin/provider/groq.js +3 -3
- package/dist/plugin/provider/kilo.js +3 -3
- package/dist/plugin/provider/llmgateway.js +87 -86
- package/dist/plugin/provider/mistral.js +3 -3
- package/dist/plugin/provider/nvidia.js +3 -3
- package/dist/plugin/provider/openai-compatible.js +2 -2
- package/dist/plugin/provider/openai.js +89 -88
- package/dist/plugin/provider/opencode.js +102 -101
- package/dist/plugin/provider/openrouter.js +4 -4
- package/dist/plugin/provider/perplexity.js +3 -3
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/snowflake-cortex.js +3 -3
- package/dist/plugin/provider/togetherai.js +3 -3
- package/dist/plugin/provider/venice.js +3 -3
- package/dist/plugin/provider/vercel.js +3 -3
- package/dist/plugin/provider/xai.js +87 -86
- package/dist/plugin/provider/zenmux.js +3 -3
- package/dist/plugin/provider.js +153 -152
- package/dist/plugin/runtime.js +176 -175
- package/dist/plugin/sdk.js +80 -79
- package/dist/plugin/skill.js +131 -130
- package/dist/plugin/supervisor.js +276 -275
- package/dist/plugin/system-prompt.js +2 -2
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/warming.js +111 -110
- package/dist/plugin/websearch/exa.js +4 -4
- package/dist/plugin/websearch/firecrawl.js +5 -5
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +5 -5
- package/dist/plugin.js +186 -185
- package/dist/project/copy-strategies.js +81 -80
- package/dist/project/copy.js +81 -80
- package/dist/project/directories.js +72 -71
- package/dist/project/schema.js +3 -3
- package/dist/project/sql.js +5 -5
- package/dist/project.js +76 -75
- 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 +71 -70
- package/dist/pty.js +113 -112
- package/dist/question.js +81 -80
- package/dist/reference/instructions.js +85 -84
- package/dist/reference.js +83 -82
- package/dist/repository-cache.js +7 -7
- package/dist/repository.js +2 -2
- package/dist/ripgrep/binary.js +3 -3
- package/dist/ripgrep.js +88 -87
- package/dist/schema.js +2 -2
- package/dist/session/compaction.js +147 -146
- package/dist/session/context.js +284 -283
- package/dist/session/error.js +4 -4
- package/dist/session/event.js +2 -2
- package/dist/session/execution/restart.js +116 -115
- package/dist/session/execution.js +116 -115
- package/dist/session/generate-node.js +290 -289
- package/dist/session/generate.js +2 -2
- package/dist/session/history.js +78 -77
- package/dist/session/inbox.js +147 -0
- package/dist/session/info.js +88 -87
- package/dist/session/instruction-entry.js +74 -73
- package/dist/session/instruction-state.js +10 -10
- package/dist/session/instructions.js +97 -96
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +2 -2
- package/dist/session/model-headers.js +4 -4
- package/dist/session/model-http.js +4 -4
- package/dist/session/model-request.js +292 -291
- package/dist/session/projector.js +96 -95
- package/dist/session/prompt-cache-diagnostics.js +2 -2
- package/dist/session/prompt-cache-key.js +3 -3
- package/dist/session/revert.js +115 -114
- package/dist/session/run-coordinator.js +2 -2
- package/dist/session/runner/index.js +94 -93
- package/dist/session/runner/llm.js +300 -299
- package/dist/session/runner/max-steps.js +2 -2
- package/dist/session/runner/model.js +93 -92
- package/dist/session/runner/publish-llm-event.js +4 -4
- package/dist/session/runner/retry.js +83 -82
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +2 -2
- package/dist/session/sql.js +8 -6
- package/dist/session/store.js +96 -95
- package/dist/session/title.js +113 -112
- package/dist/session/to-session-error.js +112 -111
- package/dist/session/transfer.js +177 -176
- package/dist/session/usage.js +2 -2
- package/dist/session.js +177 -176
- package/dist/shell/parse.js +4 -4
- 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/select.js +3 -3
- package/dist/shell.js +122 -121
- package/dist/skill/discovery.js +3 -3
- package/dist/skill/instructions.js +102 -101
- package/dist/skill.js +101 -100
- package/dist/snapshot.js +110 -109
- package/dist/state.js +2 -2
- package/dist/tool/http-body.js +2 -2
- package/dist/tool/mcp.js +153 -152
- package/dist/tool/plugin/edit.js +140 -139
- package/dist/tool/plugin/file-diff.js +2 -2
- package/dist/tool/plugin/glob.js +112 -111
- package/dist/tool/plugin/grep.js +112 -111
- package/dist/tool/plugin/patch.js +139 -138
- package/dist/tool/plugin/question.js +103 -102
- package/dist/tool/plugin/read.js +115 -114
- package/dist/tool/plugin/shell.js +180 -179
- package/dist/tool/plugin/skill.js +102 -101
- package/dist/tool/plugin/subagent.js +177 -176
- package/dist/tool/plugin/webfetch.js +102 -101
- package/dist/tool/plugin/websearch.js +105 -104
- package/dist/tool/plugin/write.js +140 -139
- package/dist/tool/read-filesystem.js +92 -91
- package/dist/tool/runtime.js +2 -2
- package/dist/tool-output.js +111 -110
- package/dist/tool.js +144 -143
- package/dist/types/bus.d.ts +9 -0
- package/dist/types/database/migration/20260812181746_session_inbox.d.ts +3 -0
- package/dist/types/environment/unavailable.d.ts +20 -0
- package/dist/types/mcp/index.d.ts +0 -2
- package/dist/types/plugin/host.d.ts +6 -6
- package/dist/types/session/compaction.d.ts +1 -0
- package/dist/types/session/{pending.d.ts → inbox.d.ts} +263 -50
- package/dist/types/session/sql.d.ts +122 -3
- package/dist/types/session.d.ts +19 -17
- package/dist/types/shell.d.ts +2 -1
- package/dist/types/tool.d.ts +1 -1
- package/dist/util/array.js +1 -1
- package/dist/util/binary.js +1 -1
- package/dist/util/encode.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/path.js +1 -1
- 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/retry.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/git.js +3 -3
- package/dist/vcs/hg.js +3 -3
- package/dist/vcs/patch.js +2 -2
- package/dist/vcs.js +83 -82
- package/dist/websearch.js +83 -82
- package/dist/wellknown/plugin.js +83 -82
- package/dist/wellknown.js +82 -81
- package/dist/workspace/driver.js +2 -2
- package/dist/workspace/sql.js +2 -2
- package/dist/workspace.js +70 -69
- package/package.json +7 -7
- package/dist/chunks/app-dv3j3vqm.js +0 -309
- package/dist/session/pending.js +0 -142
- /package/dist/chunks/{app-0cgt0xh2.js → plugin-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{app-0f48qthw.js → plugin-0f48qthw.js} +0 -0
- /package/dist/chunks/{app-0zz82cjq.js → plugin-0zz82cjq.js} +0 -0
- /package/dist/chunks/{app-1fb7bmpf.js → plugin-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{app-1wcz8fvj.js → plugin-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{app-2qdx6zz3.js → plugin-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{app-3c4nztf9.js → plugin-3c4nztf9.js} +0 -0
- /package/dist/chunks/{app-3g3rpp2x.js → plugin-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{app-3q6gbwmd.js → plugin-3q6gbwmd.js} +0 -0
- /package/dist/chunks/{app-3w3ybtfd.js → plugin-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{app-47ty4mvs.js → plugin-47ty4mvs.js} +0 -0
- /package/dist/chunks/{app-4b2tz2m9.js → plugin-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{app-5a5ch9ts.js → plugin-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{app-5va1yh78.js → plugin-5va1yh78.js} +0 -0
- /package/dist/chunks/{app-69qrqpw0.js → plugin-69qrqpw0.js} +0 -0
- /package/dist/chunks/{app-6jdj5f9n.js → plugin-6jdj5f9n.js} +0 -0
- /package/dist/chunks/{app-6jtjggv5.js → plugin-6jtjggv5.js} +0 -0
- /package/dist/chunks/{app-6yt963b8.js → plugin-6yt963b8.js} +0 -0
- /package/dist/chunks/{app-7n9qwqk4.js → plugin-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{app-8m0qaa0v.js → plugin-8m0qaa0v.js} +0 -0
- /package/dist/chunks/{app-8nn8kqcn.js → plugin-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{app-8sj3ajy5.js → plugin-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{app-8w9tzfz1.js → plugin-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{app-906y0b6d.js → plugin-906y0b6d.js} +0 -0
- /package/dist/chunks/{app-9dct5xhx.js → plugin-9dct5xhx.js} +0 -0
- /package/dist/chunks/{app-9sdtsapf.js → plugin-9sdtsapf.js} +0 -0
- /package/dist/chunks/{app-a02svayp.js → plugin-a02svayp.js} +0 -0
- /package/dist/chunks/{app-a83yvq99.js → plugin-a83yvq99.js} +0 -0
- /package/dist/chunks/{app-ayevdmef.js → plugin-ayevdmef.js} +0 -0
- /package/dist/chunks/{app-b02txbh8.js → plugin-b02txbh8.js} +0 -0
- /package/dist/chunks/{app-bbqs2y60.js → plugin-bbqs2y60.js} +0 -0
- /package/dist/chunks/{app-brsh5f65.js → plugin-brsh5f65.js} +0 -0
- /package/dist/chunks/{app-bxdhjb3y.js → plugin-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{app-c77ad0vh.js → plugin-c77ad0vh.js} +0 -0
- /package/dist/chunks/{app-cm67rqy2.js → plugin-cm67rqy2.js} +0 -0
- /package/dist/chunks/{app-d6s8p2vk.js → plugin-d6s8p2vk.js} +0 -0
- /package/dist/chunks/{app-dbah77c1.js → plugin-dbah77c1.js} +0 -0
- /package/dist/chunks/{app-df3v2q6j.js → plugin-df3v2q6j.js} +0 -0
- /package/dist/chunks/{app-dhcq6c44.js → plugin-dhcq6c44.js} +0 -0
- /package/dist/chunks/{app-dht5baf0.js → plugin-dht5baf0.js} +0 -0
- /package/dist/chunks/{app-dppgrtwb.js → plugin-dppgrtwb.js} +0 -0
- /package/dist/chunks/{app-ehj9csmv.js → plugin-ehj9csmv.js} +0 -0
- /package/dist/chunks/{app-ezs3tagn.js → plugin-ezs3tagn.js} +0 -0
- /package/dist/chunks/{app-f4cp4g4a.js → plugin-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{app-f84sxdqn.js → plugin-f84sxdqn.js} +0 -0
- /package/dist/chunks/{app-faypg4r1.js → plugin-faypg4r1.js} +0 -0
- /package/dist/chunks/{app-g7k9te92.js → plugin-g7k9te92.js} +0 -0
- /package/dist/chunks/{app-gd5xeqc2.js → plugin-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{app-ghm4673n.js → plugin-ghm4673n.js} +0 -0
- /package/dist/chunks/{app-ghwjy7my.js → plugin-ghwjy7my.js} +0 -0
- /package/dist/chunks/{app-gy500k2r.js → plugin-gy500k2r.js} +0 -0
- /package/dist/chunks/{app-hzeg9cfr.js → plugin-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{app-j07kk359.js → plugin-j07kk359.js} +0 -0
- /package/dist/chunks/{app-jve7t217.js → plugin-jve7t217.js} +0 -0
- /package/dist/chunks/{app-kpdbz7gn.js → plugin-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{app-kxy11nzk.js → plugin-kxy11nzk.js} +0 -0
- /package/dist/chunks/{app-kyyqvx4s.js → plugin-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{app-m8cbvarh.js → plugin-m8cbvarh.js} +0 -0
- /package/dist/chunks/{app-ma07p6tt.js → plugin-ma07p6tt.js} +0 -0
- /package/dist/chunks/{app-ma60vzgv.js → plugin-ma60vzgv.js} +0 -0
- /package/dist/chunks/{app-n3m50c2t.js → plugin-n3m50c2t.js} +0 -0
- /package/dist/chunks/{app-nkm1m8dz.js → plugin-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{app-nsc0c3zb.js → plugin-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{app-qaarhjrp.js → plugin-qaarhjrp.js} +0 -0
- /package/dist/chunks/{app-qc167nrn.js → plugin-qc167nrn.js} +0 -0
- /package/dist/chunks/{app-qp95y4jb.js → plugin-qp95y4jb.js} +0 -0
- /package/dist/chunks/{app-r8f4w671.js → plugin-r8f4w671.js} +0 -0
- /package/dist/chunks/{app-rdfev9jy.js → plugin-rdfev9jy.js} +0 -0
- /package/dist/chunks/{app-rvfvac9x.js → plugin-rvfvac9x.js} +0 -0
- /package/dist/chunks/{app-s7whb9gt.js → plugin-s7whb9gt.js} +0 -0
- /package/dist/chunks/{app-se76j685.js → plugin-se76j685.js} +0 -0
- /package/dist/chunks/{app-sem2g21k.js → plugin-sem2g21k.js} +0 -0
- /package/dist/chunks/{app-tmb1f636.js → plugin-tmb1f636.js} +0 -0
- /package/dist/chunks/{app-ttxf0gsy.js → plugin-ttxf0gsy.js} +0 -0
- /package/dist/chunks/{app-tvmhrvfj.js → plugin-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{app-v2adqbbe.js → plugin-v2adqbbe.js} +0 -0
- /package/dist/chunks/{app-wj4sxzqa.js → plugin-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{app-wwntjmk1.js → plugin-wwntjmk1.js} +0 -0
- /package/dist/chunks/{app-wx89ywv3.js → plugin-wx89ywv3.js} +0 -0
- /package/dist/chunks/{app-wyqjaaa5.js → plugin-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{app-x4q807cx.js → plugin-x4q807cx.js} +0 -0
- /package/dist/chunks/{app-yrqrg4vp.js → plugin-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{app-z47nswr2.js → plugin-z47nswr2.js} +0 -0
- /package/dist/chunks/{app-zsf8rs93.js → plugin-zsf8rs93.js} +0 -0
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SessionEvent
|
|
3
|
+
} from "./plugin-a83yvq99.js";
|
|
4
|
+
import {
|
|
5
|
+
SessionInboxTable,
|
|
6
|
+
SessionMessageTable
|
|
7
|
+
} from "./plugin-9d2xhdr4.js";
|
|
8
|
+
import {
|
|
9
|
+
exports_message
|
|
10
|
+
} from "./plugin-25pxtba7.js";
|
|
11
|
+
import {
|
|
12
|
+
exports_schema
|
|
13
|
+
} from "./plugin-y8rs54ne.js";
|
|
14
|
+
import {
|
|
15
|
+
exports_keyed_mutex
|
|
16
|
+
} from "./plugin-0kvmztkf.js";
|
|
17
|
+
import {
|
|
18
|
+
__export
|
|
19
|
+
} from "./plugin-rvfvac9x.js";
|
|
20
|
+
|
|
21
|
+
// src/session/inbox.ts
|
|
22
|
+
var exports_inbox = {};
|
|
23
|
+
__export(exports_inbox, {
|
|
24
|
+
steer: () => steer,
|
|
25
|
+
serialized: () => serialized,
|
|
26
|
+
queue: () => queue,
|
|
27
|
+
promote: () => promote,
|
|
28
|
+
projectDeliveryChanged: () => projectDeliveryChanged,
|
|
29
|
+
projectDelivered: () => projectDelivered,
|
|
30
|
+
projectCancelled: () => projectCancelled,
|
|
31
|
+
projectAdmitted: () => projectAdmitted,
|
|
32
|
+
nextSteer: () => nextSteer,
|
|
33
|
+
nextQueued: () => nextQueued,
|
|
34
|
+
list: () => list,
|
|
35
|
+
has: () => has,
|
|
36
|
+
find: () => find,
|
|
37
|
+
equivalent: () => equivalent,
|
|
38
|
+
cancel: () => cancel,
|
|
39
|
+
admitCompaction: () => admitCompaction,
|
|
40
|
+
admit: () => admit,
|
|
41
|
+
UserPayload: () => UserPayload,
|
|
42
|
+
User: () => User,
|
|
43
|
+
SyntheticPayload: () => SyntheticPayload,
|
|
44
|
+
Synthetic: () => Synthetic,
|
|
45
|
+
SessionInbox: () => exports_inbox,
|
|
46
|
+
MovePayload: () => MovePayload,
|
|
47
|
+
Move: () => Move,
|
|
48
|
+
LifecycleConflict: () => LifecycleConflict,
|
|
49
|
+
Item: () => Item,
|
|
50
|
+
Info: () => Info,
|
|
51
|
+
Delivery: () => Delivery,
|
|
52
|
+
CompactionPayload: () => CompactionPayload,
|
|
53
|
+
Compaction: () => Compaction
|
|
54
|
+
});
|
|
55
|
+
import { and, asc, eq, or } from "drizzle-orm";
|
|
56
|
+
import { DateTime, Effect, Schema } from "effect";
|
|
57
|
+
import {
|
|
58
|
+
Compaction,
|
|
59
|
+
CompactionPayload,
|
|
60
|
+
Delivery,
|
|
61
|
+
Info,
|
|
62
|
+
Item,
|
|
63
|
+
Move,
|
|
64
|
+
MovePayload,
|
|
65
|
+
Synthetic,
|
|
66
|
+
SyntheticPayload,
|
|
67
|
+
User,
|
|
68
|
+
UserPayload
|
|
69
|
+
} from "@opencode-ai/schema/session-inbox";
|
|
70
|
+
var decodeUser = Schema.decodeUnknownSync(UserPayload);
|
|
71
|
+
var encodeUser = Schema.encodeSync(UserPayload);
|
|
72
|
+
var decodeSynthetic = Schema.decodeUnknownSync(SyntheticPayload);
|
|
73
|
+
var encodeSynthetic = Schema.encodeSync(SyntheticPayload);
|
|
74
|
+
var decodeCompaction = Schema.decodeUnknownSync(CompactionPayload);
|
|
75
|
+
var encodeCompaction = Schema.encodeSync(CompactionPayload);
|
|
76
|
+
var decodeMove = Schema.decodeUnknownSync(MovePayload);
|
|
77
|
+
var encodeMove = Schema.encodeSync(MovePayload);
|
|
78
|
+
var decodeMessage = Schema.decodeUnknownSync(exports_message.Info);
|
|
79
|
+
var inboxLocks = exports_keyed_mutex.makeUnsafe();
|
|
80
|
+
var serialized = (sessionID, effect) => inboxLocks.withLock(sessionID)(effect);
|
|
81
|
+
|
|
82
|
+
class LifecycleConflict extends Schema.TaggedErrorClass()("SessionInbox.LifecycleConflict", {
|
|
83
|
+
id: exports_message.ID
|
|
84
|
+
}) {
|
|
85
|
+
}
|
|
86
|
+
var fromRow = (row) => {
|
|
87
|
+
const base = {
|
|
88
|
+
id: exports_message.ID.make(row.id),
|
|
89
|
+
sessionID: exports_schema.ID.make(row.session_id),
|
|
90
|
+
timeCreated: DateTime.makeUnsafe(row.time_created)
|
|
91
|
+
};
|
|
92
|
+
if (row.type === "compaction")
|
|
93
|
+
return Compaction.make({
|
|
94
|
+
...base,
|
|
95
|
+
type: "compaction",
|
|
96
|
+
payload: decodeCompaction(row.payload),
|
|
97
|
+
delivery: row.delivery
|
|
98
|
+
});
|
|
99
|
+
if (row.type === "move")
|
|
100
|
+
return Move.make({ ...base, type: "move", payload: decodeMove(row.payload), delivery: row.delivery });
|
|
101
|
+
if (row.type === "user")
|
|
102
|
+
return User.make({
|
|
103
|
+
...base,
|
|
104
|
+
type: "user",
|
|
105
|
+
payload: decodeUser(row.payload),
|
|
106
|
+
delivery: row.delivery
|
|
107
|
+
});
|
|
108
|
+
if (row.type === "synthetic")
|
|
109
|
+
return Synthetic.make({
|
|
110
|
+
...base,
|
|
111
|
+
type: "synthetic",
|
|
112
|
+
payload: decodeSynthetic(row.payload),
|
|
113
|
+
delivery: row.delivery
|
|
114
|
+
});
|
|
115
|
+
throw new LifecycleConflict({ id: base.id });
|
|
116
|
+
};
|
|
117
|
+
var find = Effect.fn("SessionInbox.find")(function* (db, id) {
|
|
118
|
+
const row = yield* db.select().from(SessionInboxTable).where(eq(SessionInboxTable.id, id)).get().pipe(Effect.orDie);
|
|
119
|
+
return row === undefined ? undefined : fromRow(row);
|
|
120
|
+
});
|
|
121
|
+
var promotedFromMessage = Effect.fn("SessionInbox.promotedFromMessage")(function* (db, sessionID, id, delivery) {
|
|
122
|
+
const row = yield* db.select().from(SessionMessageTable).where(eq(SessionMessageTable.id, id)).get().pipe(Effect.orDie);
|
|
123
|
+
if (row === undefined)
|
|
124
|
+
return;
|
|
125
|
+
if (row.session_id !== sessionID || row.type !== "user" && row.type !== "synthetic")
|
|
126
|
+
return yield* Effect.die(new LifecycleConflict({ id }));
|
|
127
|
+
const message = decodeMessage({ ...row.data, id: row.id, type: row.type });
|
|
128
|
+
const base = { id, sessionID, timeCreated: message.time.created, delivery };
|
|
129
|
+
if (message.type === "user")
|
|
130
|
+
return User.make({
|
|
131
|
+
...base,
|
|
132
|
+
type: "user",
|
|
133
|
+
payload: decodeUser(message)
|
|
134
|
+
});
|
|
135
|
+
if (message.type === "synthetic")
|
|
136
|
+
return Synthetic.make({
|
|
137
|
+
...base,
|
|
138
|
+
type: "synthetic",
|
|
139
|
+
payload: decodeSynthetic(message)
|
|
140
|
+
});
|
|
141
|
+
return yield* Effect.die(new LifecycleConflict({ id }));
|
|
142
|
+
});
|
|
143
|
+
var admit = Effect.fn("SessionInbox.admit")(function* (db, bus, request) {
|
|
144
|
+
const existing = yield* find(db, request.id);
|
|
145
|
+
if (existing !== undefined) {
|
|
146
|
+
if (existing.type === "compaction")
|
|
147
|
+
return yield* Effect.die(new LifecycleConflict({ id: request.id }));
|
|
148
|
+
return existing;
|
|
149
|
+
}
|
|
150
|
+
const promoted = yield* promotedFromMessage(db, request.sessionID, request.id, request.item.delivery);
|
|
151
|
+
if (promoted !== undefined)
|
|
152
|
+
return promoted;
|
|
153
|
+
return yield* bus.publish(SessionEvent.InboxEnqueued, {
|
|
154
|
+
inboxID: request.id,
|
|
155
|
+
sessionID: request.sessionID,
|
|
156
|
+
item: request.item
|
|
157
|
+
}).pipe(Effect.flatMap((event) => {
|
|
158
|
+
const base = {
|
|
159
|
+
id: request.id,
|
|
160
|
+
sessionID: request.sessionID,
|
|
161
|
+
timeCreated: event.created
|
|
162
|
+
};
|
|
163
|
+
return Effect.succeed(Info.make({ ...base, ...request.item }));
|
|
164
|
+
}), Effect.catchDefect((defect) => find(db, request.id).pipe(Effect.flatMap((stored) => stored?.type === request.item.type ? Effect.succeed(stored) : Effect.die(defect)))));
|
|
165
|
+
});
|
|
166
|
+
var admitCompaction = Effect.fn("SessionInbox.admitCompaction")(function* (db, bus, input) {
|
|
167
|
+
const admitted = yield* admit(db, bus, {
|
|
168
|
+
id: input.id,
|
|
169
|
+
sessionID: input.sessionID,
|
|
170
|
+
item: Item.make({ type: "compaction", payload: {}, delivery: input.delivery })
|
|
171
|
+
});
|
|
172
|
+
if (admitted.type === "compaction")
|
|
173
|
+
return admitted;
|
|
174
|
+
return yield* Effect.die(new LifecycleConflict({ id: input.id }));
|
|
175
|
+
});
|
|
176
|
+
var projectAdmitted = Effect.fn("SessionInbox.projectAdmitted")(function* (db, request) {
|
|
177
|
+
const message = yield* db.select({ id: SessionMessageTable.id }).from(SessionMessageTable).where(eq(SessionMessageTable.id, request.id)).get().pipe(Effect.orDie);
|
|
178
|
+
if (message !== undefined)
|
|
179
|
+
return yield* Effect.die(new LifecycleConflict({ id: request.id }));
|
|
180
|
+
const stored = yield* db.insert(SessionInboxTable).values({
|
|
181
|
+
id: request.id,
|
|
182
|
+
session_id: request.sessionID,
|
|
183
|
+
type: request.item.type,
|
|
184
|
+
payload: request.item.type === "user" ? encodeUser(request.item.payload) : request.item.type === "synthetic" ? encodeSynthetic(request.item.payload) : request.item.type === "compaction" ? encodeCompaction(request.item.payload) : encodeMove(request.item.payload),
|
|
185
|
+
delivery: request.item.delivery,
|
|
186
|
+
enqueued_seq: request.enqueuedSeq,
|
|
187
|
+
time_created: DateTime.toEpochMillis(request.timeCreated)
|
|
188
|
+
}).onConflictDoNothing().returning({ id: SessionInboxTable.id }).get().pipe(Effect.orDie);
|
|
189
|
+
if (!stored)
|
|
190
|
+
return yield* Effect.die(new LifecycleConflict({ id: request.id }));
|
|
191
|
+
});
|
|
192
|
+
var projectDelivered = Effect.fn("SessionInbox.projectDelivered")(function* (db, input) {
|
|
193
|
+
const deleted = yield* db.delete(SessionInboxTable).where(and(eq(SessionInboxTable.id, input.id), eq(SessionInboxTable.session_id, input.sessionID))).returning().get().pipe(Effect.orDie);
|
|
194
|
+
if (!deleted)
|
|
195
|
+
return yield* Effect.die(new LifecycleConflict({ id: input.id }));
|
|
196
|
+
return fromRow(deleted);
|
|
197
|
+
});
|
|
198
|
+
var projectCancelled = Effect.fn("SessionInbox.projectCancelled")(function* (db, input) {
|
|
199
|
+
const deleted = yield* db.delete(SessionInboxTable).where(and(eq(SessionInboxTable.id, input.id), eq(SessionInboxTable.session_id, input.sessionID), or(eq(SessionInboxTable.delivery, "queue"), eq(SessionInboxTable.delivery, "steer")))).returning({ id: SessionInboxTable.id }).get().pipe(Effect.orDie);
|
|
200
|
+
if (!deleted)
|
|
201
|
+
return yield* Effect.die(new LifecycleConflict({ id: input.id }));
|
|
202
|
+
});
|
|
203
|
+
var projectDelivery = Effect.fn("SessionInbox.projectDelivery")(function* (db, input) {
|
|
204
|
+
const updated = yield* db.update(SessionInboxTable).set({ delivery: input.to }).where(and(eq(SessionInboxTable.id, input.id), eq(SessionInboxTable.session_id, input.sessionID), eq(SessionInboxTable.delivery, input.from))).returning({ id: SessionInboxTable.id }).get().pipe(Effect.orDie);
|
|
205
|
+
if (!updated)
|
|
206
|
+
return yield* Effect.die(new LifecycleConflict({ id: input.id }));
|
|
207
|
+
});
|
|
208
|
+
var projectDeliveryChanged = Effect.fn("SessionInbox.projectDeliveryChanged")((db, input) => projectDelivery(db, {
|
|
209
|
+
...input,
|
|
210
|
+
from: input.delivery === "steer" ? "queue" : "steer",
|
|
211
|
+
to: input.delivery
|
|
212
|
+
}));
|
|
213
|
+
var list = Effect.fn("SessionInbox.list")(function* (db, sessionID) {
|
|
214
|
+
const rows = yield* db.select().from(SessionInboxTable).where(eq(SessionInboxTable.session_id, sessionID)).orderBy(asc(SessionInboxTable.enqueued_seq)).all().pipe(Effect.orDie);
|
|
215
|
+
return rows.map(fromRow);
|
|
216
|
+
});
|
|
217
|
+
var nextQueued = Effect.fn("SessionInbox.nextQueued")(function* (db, sessionID) {
|
|
218
|
+
const row = yield* db.select().from(SessionInboxTable).where(and(eq(SessionInboxTable.session_id, sessionID), eq(SessionInboxTable.delivery, "queue"))).orderBy(asc(SessionInboxTable.enqueued_seq)).limit(1).get().pipe(Effect.orDie);
|
|
219
|
+
return row ? fromRow(row) : undefined;
|
|
220
|
+
});
|
|
221
|
+
var nextSteer = Effect.fn("SessionInbox.nextSteer")(function* (db, sessionID) {
|
|
222
|
+
const row = yield* db.select().from(SessionInboxTable).where(and(eq(SessionInboxTable.session_id, sessionID), eq(SessionInboxTable.delivery, "steer"))).orderBy(asc(SessionInboxTable.enqueued_seq)).limit(1).get().pipe(Effect.orDie);
|
|
223
|
+
return row ? fromRow(row) : undefined;
|
|
224
|
+
});
|
|
225
|
+
var has = Effect.fn("SessionInbox.has")(function* (db, sessionID, scope) {
|
|
226
|
+
const row = yield* db.select({ id: SessionInboxTable.id }).from(SessionInboxTable).where(and(eq(SessionInboxTable.session_id, sessionID), scope === "any" ? undefined : scope === "input" ? or(eq(SessionInboxTable.delivery, "steer"), eq(SessionInboxTable.delivery, "queue")) : eq(SessionInboxTable.delivery, scope))).limit(1).get().pipe(Effect.orDie);
|
|
227
|
+
return row !== undefined;
|
|
228
|
+
});
|
|
229
|
+
var equivalent = (input, expected) => {
|
|
230
|
+
if (input.type !== expected.item.type || input.delivery !== expected.item.delivery || input.sessionID !== expected.sessionID)
|
|
231
|
+
return false;
|
|
232
|
+
if (input.type === "user" && expected.item.type === "user")
|
|
233
|
+
return JSON.stringify(encodeUser(input.payload)) === JSON.stringify(encodeUser(expected.item.payload));
|
|
234
|
+
if (input.type === "synthetic" && expected.item.type === "synthetic")
|
|
235
|
+
return JSON.stringify(encodeSynthetic(input.payload)) === JSON.stringify(encodeSynthetic(expected.item.payload));
|
|
236
|
+
if (input.type === "compaction" && expected.item.type === "compaction")
|
|
237
|
+
return true;
|
|
238
|
+
if (input.type === "move" && expected.item.type === "move")
|
|
239
|
+
return JSON.stringify(encodeMove(input.payload)) === JSON.stringify(encodeMove(expected.item.payload));
|
|
240
|
+
return false;
|
|
241
|
+
};
|
|
242
|
+
var publishMutation = (input, effect) => serialized(input.sessionID, effect).pipe(Effect.asVoid);
|
|
243
|
+
var cancel = Effect.fn("SessionInbox.cancel")((bus, input) => publishMutation(input, bus.publish(SessionEvent.InboxCancelled, {
|
|
244
|
+
sessionID: input.sessionID,
|
|
245
|
+
inboxID: input.id
|
|
246
|
+
})));
|
|
247
|
+
var steer = Effect.fn("SessionInbox.steer")((bus, input) => publishMutation(input, bus.publish(SessionEvent.InboxDeliveryChanged, {
|
|
248
|
+
sessionID: input.sessionID,
|
|
249
|
+
inboxID: input.id,
|
|
250
|
+
delivery: "steer"
|
|
251
|
+
})));
|
|
252
|
+
var queue = Effect.fn("SessionInbox.queue")((bus, input) => publishMutation(input, bus.publish(SessionEvent.InboxDeliveryChanged, {
|
|
253
|
+
sessionID: input.sessionID,
|
|
254
|
+
inboxID: input.id,
|
|
255
|
+
delivery: "queue"
|
|
256
|
+
})));
|
|
257
|
+
var publish = Effect.fn("SessionInbox.publish")(function* (db, bus, sessionID, rows) {
|
|
258
|
+
yield* Effect.forEach(rows, (row) => {
|
|
259
|
+
const entry = fromRow(row);
|
|
260
|
+
if (entry.type === "compaction")
|
|
261
|
+
return Effect.die(new LifecycleConflict({ id: entry.id }));
|
|
262
|
+
return bus.publish(SessionEvent.InboxDelivered, {
|
|
263
|
+
sessionID,
|
|
264
|
+
inboxID: entry.id
|
|
265
|
+
}).pipe(Effect.catchDefect((defect) => defect instanceof LifecycleConflict ? promotedFromMessage(db, sessionID, entry.id, entry.delivery).pipe(Effect.flatMap((stored) => stored !== undefined ? Effect.void : Effect.die(defect))) : Effect.die(defect)));
|
|
266
|
+
}, { discard: true });
|
|
267
|
+
return rows.length;
|
|
268
|
+
});
|
|
269
|
+
var promote = Effect.fn("SessionInbox.promote")(function* (db, bus, sessionID, scope) {
|
|
270
|
+
return yield* serialized(sessionID, Effect.gen(function* () {
|
|
271
|
+
const steers = yield* db.select().from(SessionInboxTable).where(and(eq(SessionInboxTable.session_id, sessionID), eq(SessionInboxTable.delivery, "steer"))).orderBy(asc(SessionInboxTable.enqueued_seq)).all().pipe(Effect.orDie);
|
|
272
|
+
if (steers.length > 0 || scope === "steer") {
|
|
273
|
+
const control2 = steers.findIndex((row) => row.type === "compaction" || row.type === "move");
|
|
274
|
+
return yield* publish(db, bus, sessionID, control2 === -1 ? steers : steers.slice(0, control2));
|
|
275
|
+
}
|
|
276
|
+
const queued = yield* db.select().from(SessionInboxTable).where(and(eq(SessionInboxTable.session_id, sessionID), eq(SessionInboxTable.delivery, "queue"))).orderBy(asc(SessionInboxTable.enqueued_seq)).limit(1).get().pipe(Effect.orDie);
|
|
277
|
+
if (!queued)
|
|
278
|
+
return 0;
|
|
279
|
+
const promoted = yield* publish(db, bus, sessionID, [queued]);
|
|
280
|
+
const arrivedSteers = yield* db.select().from(SessionInboxTable).where(and(eq(SessionInboxTable.session_id, sessionID), eq(SessionInboxTable.delivery, "steer"))).orderBy(asc(SessionInboxTable.enqueued_seq)).all().pipe(Effect.orDie);
|
|
281
|
+
const control = arrivedSteers.findIndex((row) => row.type === "compaction" || row.type === "move");
|
|
282
|
+
return promoted + (yield* publish(db, bus, sessionID, control === -1 ? arrivedSteers : arrivedSteers.slice(0, control)));
|
|
283
|
+
}));
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
export { Compaction, CompactionPayload, Delivery, Info, Item, Move, MovePayload, Synthetic, SyntheticPayload, User, UserPayload, serialized, LifecycleConflict, find, admit, admitCompaction, projectAdmitted, projectDelivered, projectCancelled, projectDeliveryChanged, list, nextQueued, nextSteer, has, equivalent, cancel, steer, queue, promote, exports_inbox };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_config
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./plugin-b020en46.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_provider
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./plugin-d6vvk673.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./plugin-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/config/plugin/provider.ts
|
|
12
12
|
var exports_provider2 = {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteArrayColumn,
|
|
3
3
|
absoluteColumn
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./plugin-zbqqnp0n.js";
|
|
5
5
|
import {
|
|
6
6
|
Timestamps
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./plugin-sem2g21k.js";
|
|
8
8
|
|
|
9
9
|
// src/project/sql.ts
|
|
10
10
|
import { isNotNull, isNull, ne, or } from "drizzle-orm";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_tool
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./plugin-yz0wm9s3.js";
|
|
4
4
|
import {
|
|
5
5
|
definition,
|
|
6
6
|
execute,
|
|
7
7
|
normalizeContent
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./plugin-d6s8p2vk.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
exports_hooks
|
|
11
|
+
} from "./plugin-t2j2ttmx.js";
|
|
12
12
|
import {
|
|
13
13
|
exports_wildcard
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./plugin-y67x6rf6.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
exports_image
|
|
17
|
+
} from "./plugin-w60xp8cd.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./plugin-rvfvac9x.js";
|
|
21
21
|
|
|
22
22
|
// src/tool.ts
|
|
23
23
|
var exports_tool2 = {};
|
|
@@ -28,11 +28,12 @@ __export(exports_tool2, {
|
|
|
28
28
|
Service: () => Service,
|
|
29
29
|
RegistrationError: () => RegistrationError,
|
|
30
30
|
FileContent: () => FileContent,
|
|
31
|
-
Error: () =>
|
|
31
|
+
Error: () => Error2,
|
|
32
32
|
Content: () => Content,
|
|
33
33
|
CallID: () => CallID
|
|
34
34
|
});
|
|
35
|
-
import { CallID, Content, Error, FileContent, TextContent } from "@opencode-ai/schema/tool";
|
|
35
|
+
import { CallID, Content, Error as Error2, FileContent, TextContent } from "@opencode-ai/schema/tool";
|
|
36
|
+
import { ToolDefinition } from "@opencode-ai/ai";
|
|
36
37
|
import { Tool } from "@opencode-ai/schema/tool";
|
|
37
38
|
import { Context, Effect, Layer, Schema, Semaphore } from "effect";
|
|
38
39
|
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
@@ -140,6 +141,13 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
140
141
|
}));
|
|
141
142
|
if (entries.length === 0)
|
|
142
143
|
return;
|
|
144
|
+
yield* Effect.forEach(entries, (entry) => Effect.try({
|
|
145
|
+
try: () => ToolDefinition.make(definition(entry.tool)),
|
|
146
|
+
catch: (error) => new RegistrationError({
|
|
147
|
+
name: entry.key,
|
|
148
|
+
message: `Invalid tool definition ${entry.key}: ${error instanceof Error ? error.message : String(error)}`
|
|
149
|
+
})
|
|
150
|
+
}), { discard: true });
|
|
143
151
|
yield* Effect.uninterruptible(lock.withPermit(Effect.gen(function* () {
|
|
144
152
|
const token = {};
|
|
145
153
|
for (const entry of entries)
|
|
@@ -220,4 +228,4 @@ var node = makeLocationNode({
|
|
|
220
228
|
deps: [exports_hooks.node, exports_image.node]
|
|
221
229
|
});
|
|
222
230
|
|
|
223
|
-
export { RegistrationError, Service, node, exports_tool2 as exports_tool, CallID, Content, Error, FileContent, TextContent };
|
|
231
|
+
export { RegistrationError, Service, node, exports_tool2 as exports_tool, CallID, Content, Error2 as Error, FileContent, TextContent };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_integration
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./plugin-65ezx8mc.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_provider
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./plugin-d6vvk673.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/llmgateway.ts
|
|
9
9
|
import { Effect } from "effect";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProjectTable
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./plugin-88jbfw8z.js";
|
|
4
4
|
import {
|
|
5
5
|
directoryColumn,
|
|
6
6
|
pathColumn
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./plugin-zbqqnp0n.js";
|
|
8
8
|
import {
|
|
9
9
|
Timestamps
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./plugin-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";
|
|
@@ -77,6 +77,18 @@ var SessionPendingTable = sqliteTable("session_pending", {
|
|
|
77
77
|
uniqueIndex("session_pending_session_compaction_idx").on(table.session_id).where(sql`${table.type} = 'compaction'`),
|
|
78
78
|
uniqueIndex("session_pending_session_admitted_seq_idx").on(table.session_id, table.admitted_seq)
|
|
79
79
|
]);
|
|
80
|
+
var SessionInboxTable = sqliteTable("session_inbox", {
|
|
81
|
+
id: text().$type().primaryKey(),
|
|
82
|
+
session_id: text().$type().notNull().references(() => SessionTable.id, { onDelete: "cascade" }),
|
|
83
|
+
type: text().$type().notNull(),
|
|
84
|
+
payload: text({ mode: "json" }).$type().notNull(),
|
|
85
|
+
delivery: text().$type().notNull(),
|
|
86
|
+
enqueued_seq: integer().notNull(),
|
|
87
|
+
time_created: integer().notNull().$default(() => Date.now())
|
|
88
|
+
}, (table) => [
|
|
89
|
+
index("session_inbox_session_delivery_seq_idx").on(table.session_id, table.delivery, table.enqueued_seq),
|
|
90
|
+
uniqueIndex("session_inbox_session_enqueued_seq_idx").on(table.session_id, table.enqueued_seq)
|
|
91
|
+
]);
|
|
80
92
|
var InstructionEntryTable = sqliteTable("instruction_entry", {
|
|
81
93
|
session_id: text().$type().notNull().references(() => SessionTable.id, { onDelete: "cascade" }),
|
|
82
94
|
key: text().notNull(),
|
|
@@ -96,4 +108,4 @@ var InstructionStateTable = sqliteTable("instruction_state", {
|
|
|
96
108
|
current_values: text({ mode: "json" }).notNull().$type()
|
|
97
109
|
});
|
|
98
110
|
|
|
99
|
-
export { SessionTable, SessionMessageTable, SessionPendingTable, InstructionEntryTable, InstructionBlobTable, InstructionStateTable };
|
|
111
|
+
export { SessionTable, SessionMessageTable, SessionPendingTable, SessionInboxTable, InstructionEntryTable, InstructionBlobTable, InstructionStateTable };
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_instruction_entry
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./plugin-abs4hrf7.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
exports_supervisor
|
|
6
|
+
} from "./plugin-0fc9cerp.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
exports_instructions as exports_instructions2
|
|
9
|
+
} from "./plugin-mgdg92mf.js";
|
|
10
|
+
import {
|
|
11
|
+
exports_instructions as exports_instructions3
|
|
12
|
+
} from "./plugin-tyh0a1hs.js";
|
|
10
13
|
import {
|
|
11
14
|
exports_instructions as exports_instructions4
|
|
12
|
-
} from "./
|
|
15
|
+
} from "./plugin-f7e4a9yp.js";
|
|
13
16
|
import {
|
|
14
17
|
exports_mcp
|
|
15
|
-
} from "./
|
|
16
|
-
import {
|
|
17
|
-
exports_instructions as exports_instructions2
|
|
18
|
-
} from "./app-3ep6e3ar.js";
|
|
18
|
+
} from "./plugin-ba49gtzz.js";
|
|
19
19
|
import {
|
|
20
20
|
exports_instructions as exports_instructions5
|
|
21
|
-
} from "./
|
|
22
|
-
import {
|
|
23
|
-
exports_supervisor
|
|
24
|
-
} from "./app-65jpn00m.js";
|
|
21
|
+
} from "./plugin-1r5g0chd.js";
|
|
25
22
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
23
|
+
exports_builtins
|
|
24
|
+
} from "./plugin-rp0ghwk5.js";
|
|
28
25
|
import {
|
|
29
26
|
exports_instruction_discovery
|
|
30
|
-
} from "./
|
|
27
|
+
} from "./plugin-stbhjv87.js";
|
|
31
28
|
import {
|
|
32
29
|
exports_tool
|
|
33
|
-
} from "./
|
|
30
|
+
} from "./plugin-890sy7db.js";
|
|
31
|
+
import {
|
|
32
|
+
exports_model
|
|
33
|
+
} from "./plugin-a2ta2hx3.js";
|
|
34
34
|
import {
|
|
35
35
|
exports_store
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./plugin-t2x6yxj4.js";
|
|
37
37
|
import {
|
|
38
38
|
exports_history
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./plugin-vsfj499p.js";
|
|
40
40
|
import {
|
|
41
41
|
AgentNotFoundError
|
|
42
|
-
} from "./
|
|
43
|
-
import {
|
|
44
|
-
exports_agent
|
|
45
|
-
} from "./app-nkhdtsyw.js";
|
|
42
|
+
} from "./plugin-s6by3cc4.js";
|
|
46
43
|
import {
|
|
47
44
|
exports_instructions
|
|
48
|
-
} from "./
|
|
45
|
+
} from "./plugin-q4r4pzs4.js";
|
|
46
|
+
import {
|
|
47
|
+
exports_agent
|
|
48
|
+
} from "./plugin-n57t1s0k.js";
|
|
49
49
|
import {
|
|
50
50
|
exports_location
|
|
51
|
-
} from "./
|
|
51
|
+
} from "./plugin-4kb49531.js";
|
|
52
52
|
import {
|
|
53
53
|
exports_database
|
|
54
|
-
} from "./
|
|
54
|
+
} from "./plugin-2er1z1cy.js";
|
|
55
55
|
import {
|
|
56
56
|
__export
|
|
57
|
-
} from "./
|
|
57
|
+
} from "./plugin-rvfvac9x.js";
|
|
58
58
|
|
|
59
59
|
// src/session/context.ts
|
|
60
60
|
var exports_context = {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PermissionTable
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./plugin-nesb2rcz.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_project
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./plugin-k7z41gkz.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_database
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./plugin-2er1z1cy.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./plugin-rvfvac9x.js";
|
|
13
13
|
|
|
14
14
|
// src/permission/saved.ts
|
|
15
15
|
var exports_saved = {};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_protected
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./plugin-kg1345f7.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_ripgrep
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./plugin-wjk1568y.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_location
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./plugin-4kb49531.js";
|
|
10
10
|
import {
|
|
11
11
|
PositiveInt,
|
|
12
12
|
RelativePath
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./plugin-j07kk359.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./plugin-rvfvac9x.js";
|
|
17
17
|
|
|
18
18
|
// src/filesystem/search.ts
|
|
19
19
|
var exports_search = {};
|