@opencode-ai/core 0.0.0-dev-18400 → 0.0.0-dev-18407
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/{session-02dbfq60.js → tool-02dbfq60.js} +1 -1
- package/dist/chunks/{session-d9b3e571.js → tool-03hgt6e9.js} +7 -7
- package/dist/chunks/{session-0gn2dzt9.js → tool-0ah4rffe.js} +6 -6
- package/dist/chunks/{session-0kvmztkf.js → tool-0kvmztkf.js} +1 -1
- package/dist/chunks/{session-9kvvgtw9.js → tool-0y9526xf.js} +5 -5
- package/dist/chunks/{session-q42sk80g.js → tool-11cpny2q.js} +3 -3
- package/dist/chunks/{session-n4ymnn5h.js → tool-13ehz9x2.js} +7 -7
- package/dist/chunks/{session-18pv8fg3.js → tool-18pv8fg3.js} +2 -2
- package/dist/chunks/{session-ezrmnsy7.js → tool-19xkmx7z.js} +6 -6
- package/dist/chunks/{session-9w4f6h7g.js → tool-1hrpejhz.js} +3 -3
- package/dist/chunks/{session-dt7y8jfd.js → tool-1pjssdmq.js} +3 -3
- package/dist/chunks/{session-gv7fxp69.js → tool-28yt60yj.js} +13 -13
- package/dist/chunks/{session-zcq57kkr.js → tool-2a6fa8dz.js} +9 -9
- package/dist/chunks/{session-k3tcbawf.js → tool-2e14sds7.js} +5 -5
- package/dist/chunks/{session-bm65v5cj.js → tool-2evew0zb.js} +2 -2
- package/dist/chunks/{session-73hc67k1.js → tool-2kp3n3s3.js} +3 -3
- package/dist/chunks/{session-2m0hgr65.js → tool-2m0hgr65.js} +1 -1
- package/dist/chunks/{session-2nmyybe0.js → tool-2nmyybe0.js} +1 -1
- package/dist/chunks/{session-2wds5nk3.js → tool-2wds5nk3.js} +1 -1
- package/dist/chunks/{session-2ft89kfq.js → tool-31vnnz2b.js} +9 -9
- package/dist/chunks/{session-ngds2v1t.js → tool-3bkevzr0.js} +8 -8
- package/dist/chunks/{session-3g8vftxb.js → tool-3g8vftxb.js} +2 -2
- package/dist/chunks/{session-gqn2zsfg.js → tool-3p1bsa7m.js} +127 -52
- package/dist/chunks/{session-0cxk6af2.js → tool-3qrz8xe4.js} +2 -2
- package/dist/chunks/{session-3qv8nf0b.js → tool-3qv8nf0b.js} +1 -1
- package/dist/chunks/{session-3thh6229.js → tool-3thh6229.js} +2 -2
- package/dist/chunks/{session-ga4q6rvq.js → tool-3wh91p45.js} +7 -7
- package/dist/chunks/{session-9qna7mhc.js → tool-3z16x930.js} +3 -3
- package/dist/chunks/{session-vvdnaebs.js → tool-45dyfb2s.js} +4 -4
- package/dist/chunks/{session-xpsm1ej8.js → tool-480xp4pb.js} +7 -7
- package/dist/chunks/{session-rb0wgncm.js → tool-4njv7jf7.js} +8 -8
- package/dist/chunks/{session-4vhm60r0.js → tool-4r5v28e7.js} +7 -7
- package/dist/chunks/{session-4s2xwh5d.js → tool-4s2xwh5d.js} +3 -3
- package/dist/chunks/{session-4zzdwbaz.js → tool-4zzdwbaz.js} +2 -2
- package/dist/chunks/{session-50jxp3hw.js → tool-50jxp3hw.js} +1 -1
- package/dist/chunks/{session-adn8se4n.js → tool-57ax5my3.js} +5 -5
- package/dist/chunks/{session-57tzwnz4.js → tool-57tzwnz4.js} +1 -1
- package/dist/chunks/{session-58xdvehb.js → tool-58xdvehb.js} +1 -1
- package/dist/chunks/{session-5cdnkd94.js → tool-5cdnkd94.js} +3 -3
- package/dist/chunks/{session-5fe026tx.js → tool-5fe026tx.js} +3 -3
- package/dist/chunks/{session-5rs65q6p.js → tool-5rs65q6p.js} +1 -1
- package/dist/chunks/{session-5vcssjzn.js → tool-5vcssjzn.js} +1 -1
- package/dist/chunks/{session-5z4zwtb4.js → tool-5z4zwtb4.js} +2 -2
- package/dist/chunks/{session-6272rtjg.js → tool-6272rtjg.js} +1 -1
- package/dist/chunks/{session-813t01wk.js → tool-63g7dsj0.js} +5 -5
- package/dist/chunks/{session-mj4agdqb.js → tool-662pmagg.js} +3 -3
- package/dist/chunks/{session-rq2smtxp.js → tool-6fmtdc3w.js} +4 -4
- package/dist/chunks/{session-6ky7rqk7.js → tool-6ky7rqk7.js} +1 -1
- package/dist/chunks/{session-6wkzvma0.js → tool-6wkzvma0.js} +2 -2
- package/dist/chunks/{session-v5m53frw.js → tool-6xsq02gf.js} +8 -8
- package/dist/chunks/{session-75h1hfe2.js → tool-75h1hfe2.js} +2 -2
- package/dist/chunks/{session-acp90jbr.js → tool-75ztafxg.js} +4 -4
- package/dist/chunks/{session-7gqqz1s8.js → tool-7gqqz1s8.js} +1 -1
- package/dist/chunks/{session-7khw64yh.js → tool-7khw64yh.js} +1 -1
- package/dist/chunks/{session-7mrpdsq5.js → tool-7mrpdsq5.js} +1 -1
- package/dist/chunks/{session-9nphtdxv.js → tool-7npj3199.js} +28 -28
- package/dist/chunks/{session-7thnevmq.js → tool-7thnevmq.js} +2 -2
- package/dist/chunks/{session-hhv568vd.js → tool-7tjb8xa6.js} +2 -2
- package/dist/chunks/{session-7wcmqxrc.js → tool-7wcmqxrc.js} +1 -1
- package/dist/chunks/{session-wwp3mx1q.js → tool-7ykbqfjm.js} +14 -14
- package/dist/chunks/{session-7kebj7vv.js → tool-824aqnjj.js} +13 -13
- package/dist/chunks/{session-88jbfw8z.js → tool-88jbfw8z.js} +2 -2
- package/dist/chunks/{session-31sbc2g0.js → tool-8k9wtjtg.js} +3 -3
- package/dist/chunks/{session-rh9y4hj4.js → tool-8kp7h73r.js} +8 -8
- package/dist/chunks/{session-8pngjawd.js → tool-8pngjawd.js} +2 -2
- package/dist/chunks/{session-8tv6syt7.js → tool-8tv6syt7.js} +1 -1
- package/dist/chunks/{session-d7cgx8fv.js → tool-92sd8dyw.js} +4 -4
- package/dist/chunks/{session-999qd968.js → tool-999qd968.js} +1 -1
- package/dist/chunks/{session-nfjkfffg.js → tool-9bxkwxfz.js} +7 -7
- package/dist/chunks/{session-80nckcnc.js → tool-9c15677s.js} +3 -3
- package/dist/chunks/{session-9f0rnpkn.js → tool-9f0rnpkn.js} +1 -1
- package/dist/chunks/{session-zt732jkq.js → tool-9qb1ysz3.js} +12 -12
- package/dist/chunks/{session-x8p6g63c.js → tool-9qx4bnjb.js} +15 -15
- package/dist/chunks/{session-a09abg6q.js → tool-a09abg6q.js} +2 -2
- package/dist/chunks/{session-g96609f8.js → tool-a47t5zgx.js} +11 -11
- package/dist/chunks/{session-nsb760q1.js → tool-ambzzkps.js} +8 -8
- package/dist/chunks/{session-9721zfee.js → tool-amxem8k8.js} +2 -2
- package/dist/chunks/{session-fy1pw6a2.js → tool-aq0mpy64.js} +6 -6
- package/dist/chunks/{session-khgefemn.js → tool-asxxyg10.js} +4 -4
- package/dist/chunks/{session-awg5d31a.js → tool-awg5d31a.js} +1 -1
- package/dist/chunks/{session-4xbchwsg.js → tool-b11ssdh5.js} +11 -11
- package/dist/chunks/{session-bbhffenw.js → tool-bbhffenw.js} +3 -3
- package/dist/chunks/{session-s112809n.js → tool-bdawbf03.js} +5 -5
- package/dist/chunks/{session-bh1wr8rq.js → tool-bh1wr8rq.js} +2 -2
- package/dist/chunks/{session-bmknfyv0.js → tool-bmknfyv0.js} +2 -2
- package/dist/chunks/{session-mrfyk8tj.js → tool-bnjax6b6.js} +1 -1
- package/dist/chunks/{session-hzyk2a48.js → tool-bxcbew8w.js} +6 -6
- package/dist/chunks/{session-byab506k.js → tool-byab506k.js} +1 -1
- package/dist/chunks/{session-c4wcb9vc.js → tool-c4wcb9vc.js} +2 -2
- package/dist/chunks/{session-w00wqk3r.js → tool-c8pdv311.js} +5 -5
- package/dist/chunks/{session-fwpc00w7.js → tool-cf96sv66.js} +10 -10
- package/dist/chunks/{session-cdpv71e7.js → tool-d10g1r13.js} +92 -92
- package/dist/chunks/{session-d2gk9vpf.js → tool-d2gk9vpf.js} +2 -2
- package/dist/chunks/{session-d4ax61k3.js → tool-d4ax61k3.js} +2 -2
- package/dist/chunks/{session-pqmha3zq.js → tool-daeyx67s.js} +7 -7
- package/dist/chunks/{session-nsekn7jb.js → tool-ddctgx8r.js} +6 -6
- package/dist/chunks/{session-dhphtf1x.js → tool-dhphtf1x.js} +1 -1
- package/dist/chunks/{session-f4528wtd.js → tool-dtdadh1t.js} +5 -5
- package/dist/chunks/{session-e1z9a0ts.js → tool-e1z9a0ts.js} +2 -2
- package/dist/chunks/{session-ws3d7vm4.js → tool-e2jrgmh4.js} +3 -3
- package/dist/chunks/{session-ec8vrfw5.js → tool-ec8vrfw5.js} +1 -1
- package/dist/chunks/{session-pdp9vdkd.js → tool-eeta29b7.js} +4 -4
- package/dist/chunks/{session-enpg66yn.js → tool-enpg66yn.js} +1 -1
- package/dist/chunks/{session-ew9w5jqn.js → tool-enx9pde1.js} +3 -3
- package/dist/chunks/{session-jek1ar3c.js → tool-ev6f5sth.js} +5 -5
- package/dist/chunks/{session-hktfm43q.js → tool-ewe1w6s0.js} +4 -4
- package/dist/chunks/{session-ztjk4rav.js → tool-f11jbhcb.js} +6 -6
- package/dist/chunks/{session-faffr5sy.js → tool-f59heb8a.js} +5 -5
- package/dist/chunks/{session-f7q7a28y.js → tool-f7q7a28y.js} +4 -4
- package/dist/chunks/{session-f9wt0tjw.js → tool-f9wt0tjw.js} +2 -2
- package/dist/chunks/{session-fb7nfzf2.js → tool-fb7nfzf2.js} +3 -3
- package/dist/chunks/{session-fgyjabww.js → tool-fgyjabww.js} +2 -2
- package/dist/chunks/{session-jm2xb5bj.js → tool-fs6k48qd.js} +39 -39
- package/dist/chunks/{session-nw7zsbex.js → tool-fs9jpgf6.js} +2 -2
- package/dist/chunks/{session-1s8gjtjv.js → tool-g86fwbvg.js} +14 -14
- package/dist/chunks/{session-evtv4sdq.js → tool-g97avjq3.js} +3 -3
- package/dist/chunks/{session-48pyqfvd.js → tool-gbkf031s.js} +5 -5
- package/dist/chunks/{session-gcay93cp.js → tool-gcay93cp.js} +1 -1
- package/dist/chunks/{session-gd2xppx8.js → tool-gd2xppx8.js} +1 -1
- package/dist/chunks/{session-2tgnj8ka.js → tool-gj3f8xbc.js} +6 -6
- package/dist/chunks/{session-gpybhmhb.js → tool-gpybhmhb.js} +3 -3
- package/dist/chunks/{session-m5e0y55m.js → tool-gt4j0482.js} +5 -5
- package/dist/chunks/{session-jtwf9tyk.js → tool-gzxjfjmq.js} +12 -12
- package/dist/chunks/{session-h12kt9pa.js → tool-h12kt9pa.js} +2 -2
- package/dist/chunks/{session-fxq037mg.js → tool-h2afcd1x.js} +9 -9
- package/dist/chunks/{session-nc3amxny.js → tool-h5r22ct1.js} +4 -4
- package/dist/chunks/{session-h94zdhz8.js → tool-h94zdhz8.js} +2 -2
- package/dist/chunks/{session-g18hpfce.js → tool-hfp0zn20.js} +3 -3
- package/dist/chunks/{session-hp6rpdnc.js → tool-hp6rpdnc.js} +1 -1
- package/dist/chunks/{session-bcy1bxth.js → tool-hsj49ywm.js} +3 -3
- package/dist/chunks/{session-nfwzm19m.js → tool-hv6aw08d.js} +13 -13
- package/dist/chunks/{session-sqmqb24e.js → tool-j2716y8q.js} +9 -9
- package/dist/chunks/{session-mkdd4z87.js → tool-j70h9495.js} +6 -6
- package/dist/chunks/{session-4geccdh2.js → tool-jwxqdtm8.js} +3 -3
- package/dist/chunks/{session-cavrzxt6.js → tool-jzvn9rna.js} +3 -3
- package/dist/chunks/{session-xt6sjtjy.js → tool-k39yknw7.js} +12 -12
- package/dist/chunks/{session-k42t1tha.js → tool-k42t1tha.js} +2 -2
- package/dist/chunks/{session-4dfk9g61.js → tool-k60er779.js} +8 -8
- package/dist/chunks/{session-t5qf1ep6.js → tool-k6rmkqg6.js} +3 -3
- package/dist/chunks/{session-8b7vwxq4.js → tool-kahfakzk.js} +60 -60
- package/dist/chunks/{session-kg1345f7.js → tool-kg1345f7.js} +1 -1
- package/dist/chunks/{session-kk343vcn.js → tool-kj57smqb.js} +3 -3
- package/dist/chunks/{session-kp1t5rcy.js → tool-kp1t5rcy.js} +1 -1
- package/dist/chunks/{session-krsqcmnj.js → tool-krsqcmnj.js} +1 -1
- package/dist/chunks/{session-rt37qqhk.js → tool-kt491qp2.js} +9 -11
- package/dist/chunks/{session-m55whf0h.js → tool-m55whf0h.js} +2 -2
- package/dist/chunks/{session-r9v3byh6.js → tool-m57vbc84.js} +10 -10
- package/dist/chunks/{session-qm6mx4fx.js → tool-m79agn1j.js} +5 -5
- package/dist/chunks/{session-794f8fzy.js → tool-mb20df8g.js} +7 -7
- package/dist/chunks/{session-mf0hyk7z.js → tool-mf0hyk7z.js} +1 -1
- package/dist/chunks/{session-mh28new4.js → tool-mh28new4.js} +2 -2
- package/dist/chunks/{session-mnb85w6b.js → tool-mnb85w6b.js} +2 -2
- package/dist/chunks/{session-8kgppwwh.js → tool-mwbpv9r0.js} +4 -4
- package/dist/chunks/{session-mxvw03gv.js → tool-mxvw03gv.js} +1 -1
- package/dist/chunks/{session-b6mjp7an.js → tool-naq0a7fp.js} +24 -24
- package/dist/chunks/{session-nesb2rcz.js → tool-nesb2rcz.js} +2 -2
- package/dist/chunks/{session-kz9f2jga.js → tool-newqggjg.js} +4 -4
- package/dist/chunks/{session-nrapcvaf.js → tool-nj8brv8c.js} +15 -15
- package/dist/chunks/{session-bv2yznrr.js → tool-nnnp6q1e.js} +34 -34
- package/dist/chunks/{session-nr76rjj3.js → tool-nr76rjj3.js} +2 -2
- package/dist/chunks/{session-2s9mvr5c.js → tool-ntncs985.js} +3 -3
- package/dist/chunks/{session-nzrjycs5.js → tool-nzrjycs5.js} +1 -1
- package/dist/chunks/{session-cmfr4gv9.js → tool-p2bcbxmq.js} +7 -7
- package/dist/chunks/{session-p2x7wjk6.js → tool-p5n3xj4z.js} +6 -6
- package/dist/chunks/{session-p8fr6x1v.js → tool-p8fr6x1v.js} +1 -1
- package/dist/chunks/{session-4nz9f7jw.js → tool-pg0s7y4e.js} +5 -5
- package/dist/chunks/{session-pq4b4pqk.js → tool-pq4b4pqk.js} +2 -2
- package/dist/chunks/{session-fsg51eet.js → tool-pyjpffn6.js} +4 -4
- package/dist/chunks/{session-294vjde9.js → tool-q58ebpsg.js} +33 -33
- package/dist/chunks/{session-f1zdbkqh.js → tool-q6dg9vvm.js} +4 -4
- package/dist/chunks/{session-q9b4qnv8.js → tool-q9b4qnv8.js} +2 -2
- package/dist/chunks/{session-0nbcrn74.js → tool-q9nr5nbd.js} +12 -12
- package/dist/chunks/{session-qe0d689s.js → tool-qe0d689s.js} +2 -2
- package/dist/chunks/{session-jmpgcx3z.js → tool-qr5qss22.js} +21 -21
- package/dist/chunks/{session-r13w8t0w.js → tool-r13w8t0w.js} +2 -2
- package/dist/chunks/{session-58wjxseq.js → tool-r24ex9vt.js} +5 -5
- package/dist/chunks/{session-r3k9abhd.js → tool-r3k9abhd.js} +2 -2
- package/dist/chunks/{session-hcn92762.js → tool-r3ydfang.js} +4 -4
- package/dist/chunks/{session-5rcmg2pk.js → tool-r98ng241.js} +84 -84
- package/dist/chunks/{session-x0jddyb5.js → tool-r9zfjs26.js} +3 -3
- package/dist/chunks/{session-rahat93a.js → tool-rahat93a.js} +1 -1
- package/dist/chunks/{session-rameyvmv.js → tool-rameyvmv.js} +1 -1
- package/dist/chunks/{session-rbnp2c85.js → tool-rbnp2c85.js} +3 -3
- package/dist/chunks/{session-rfbm65k8.js → tool-rfbm65k8.js} +1 -1
- package/dist/chunks/{session-wntaerwn.js → tool-rqpqwep3.js} +4 -4
- package/dist/chunks/{session-qawc1hnp.js → tool-rtew9njt.js} +10 -10
- package/dist/chunks/{session-r2n54prf.js → tool-rx2te18w.js} +3 -3
- package/dist/chunks/{session-s33fw6zm.js → tool-s33fw6zm.js} +1 -1
- package/dist/chunks/{session-3tcg6ncd.js → tool-s9z2g77c.js} +8 -8
- package/dist/chunks/{session-n4hc7x17.js → tool-sg4zefp2.js} +3 -3
- package/dist/chunks/{session-nnm0109p.js → tool-skv11vta.js} +4 -4
- package/dist/chunks/{session-smpeg8c9.js → tool-smpeg8c9.js} +2 -2
- package/dist/chunks/{session-sw84ckhj.js → tool-sw84ckhj.js} +1 -1
- package/dist/chunks/{session-42xa9bfh.js → tool-sw90k4ve.js} +9 -9
- package/dist/chunks/{session-gp6nnez7.js → tool-t0msbthe.js} +3 -3
- package/dist/chunks/{session-cncxgdd9.js → tool-t0pymg4j.js} +6 -6
- package/dist/chunks/{session-t14kykx1.js → tool-t14kykx1.js} +1 -1
- package/dist/chunks/{session-gafdzn4q.js → tool-t9y72y9z.js} +61 -61
- package/dist/chunks/{session-zecbhcj3.js → tool-tbzspg5v.js} +14 -14
- package/dist/chunks/{session-tcptxgyq.js → tool-tcptxgyq.js} +1 -1
- package/dist/chunks/{session-sex7ne5m.js → tool-tfe4pcz2.js} +11 -11
- package/dist/chunks/{session-tgbb2ckq.js → tool-tgbb2ckq.js} +2 -2
- package/dist/chunks/{session-thstd87d.js → tool-thstd87d.js} +1 -1
- package/dist/chunks/{session-v2wshkax.js → tool-v2wshkax.js} +1 -1
- package/dist/chunks/{session-v80zsxnb.js → tool-v80zsxnb.js} +1 -1
- package/dist/chunks/{session-v972xay6.js → tool-v972xay6.js} +1 -1
- package/dist/chunks/{session-v9bfv94f.js → tool-v9bfv94f.js} +1 -1
- package/dist/chunks/{session-vcwr2vpf.js → tool-vcwr2vpf.js} +1 -1
- package/dist/chunks/{session-vqbmgfq1.js → tool-vqbmgfq1.js} +3 -3
- package/dist/chunks/{session-ns0fb3me.js → tool-vsmeqfer.js} +4 -4
- package/dist/chunks/{session-vycjsnjm.js → tool-vycjsnjm.js} +2 -2
- package/dist/chunks/{session-vz89hfgr.js → tool-vz89hfgr.js} +1 -1
- package/dist/chunks/{session-86tcatbv.js → tool-w94b86hk.js} +3 -3
- package/dist/chunks/{session-wbkt8qpj.js → tool-wbkt8qpj.js} +1 -1
- package/dist/chunks/{session-wd268jeg.js → tool-wd268jeg.js} +1 -1
- package/dist/chunks/{session-e5sabq3g.js → tool-weeswz0y.js} +2 -2
- package/dist/chunks/{session-whk0g8cz.js → tool-whk0g8cz.js} +4 -4
- package/dist/chunks/{session-mra15993.js → tool-wk2w386e.js} +13 -13
- package/dist/chunks/{session-wmxdh12w.js → tool-wmxdh12w.js} +1 -1
- package/dist/chunks/{session-0cwp2ray.js → tool-wn7sqjeh.js} +9 -9
- package/dist/chunks/{session-wps8gh8n.js → tool-wps8gh8n.js} +2 -2
- package/dist/chunks/{session-dd89zgtx.js → tool-wtq5hd7f.js} +4 -4
- package/dist/chunks/{session-8djzec1j.js → tool-wxcy5yfd.js} +8 -8
- package/dist/chunks/{session-dvfyq02f.js → tool-wy0mx18e.js} +2 -2
- package/dist/chunks/{session-9bbct1tt.js → tool-wymdj3rn.js} +14 -14
- package/dist/chunks/{session-yb2z2acc.js → tool-wzttzd0f.js} +6 -6
- package/dist/chunks/{session-4kmj85yt.js → tool-x2f5g5js.js} +5 -5
- package/dist/chunks/{session-x89rah0x.js → tool-x89rah0x.js} +1 -1
- package/dist/chunks/{session-xczfw7dq.js → tool-xczfw7dq.js} +1 -1
- package/dist/chunks/{session-xgv25zxy.js → tool-xgv25zxy.js} +1 -1
- package/dist/chunks/{session-5v2q81y1.js → tool-xh6n1jdd.js} +15 -15
- package/dist/chunks/{session-jfcr6fzr.js → tool-xr60vcdr.js} +4 -4
- package/dist/chunks/{session-qh489n3c.js → tool-xr9dm5xa.js} +6 -6
- package/dist/chunks/{session-xwftk1fd.js → tool-xwftk1fd.js} +2 -2
- package/dist/chunks/{session-xxpvz42q.js → tool-xxpvz42q.js} +3 -3
- package/dist/chunks/{session-y0x38cee.js → tool-y0x38cee.js} +1 -1
- package/dist/chunks/{session-y198y2ra.js → tool-y198y2ra.js} +1 -1
- package/dist/chunks/{session-t83yx63h.js → tool-y1d8mxrr.js} +6 -9
- package/dist/chunks/{session-3b5ecttp.js → tool-y3mpfxmv.js} +3 -3
- package/dist/chunks/{session-m7cyexjs.js → tool-y3tb98m9.js} +7 -7
- package/dist/chunks/{session-y67x6rf6.js → tool-y67x6rf6.js} +1 -1
- package/dist/chunks/{session-y980s7ka.js → tool-y980s7ka.js} +3 -3
- package/dist/chunks/{session-qw5r1y73.js → tool-yab42h3f.js} +11 -11
- package/dist/chunks/{session-ybhfpy64.js → tool-ybhfpy64.js} +2 -2
- package/dist/chunks/{session-yc2vxtaa.js → tool-yc2vxtaa.js} +2 -2
- package/dist/chunks/{session-5z147h6b.js → tool-ydnhn878.js} +8 -8
- package/dist/chunks/{session-yf0knd5z.js → tool-yf0knd5z.js} +2 -2
- package/dist/chunks/{session-ygy0xbqa.js → tool-ygy0xbqa.js} +3 -3
- package/dist/chunks/{session-yj1hzmfk.js → tool-yj1hzmfk.js} +3 -3
- package/dist/chunks/{session-asgxnbeb.js → tool-yx7n4x9c.js} +3 -3
- package/dist/chunks/{session-r4e8tdyk.js → tool-z0txcn14.js} +3 -3
- package/dist/chunks/{session-c6svqmst.js → tool-z4vqfqp3.js} +2 -2
- package/dist/chunks/{session-q0nycn57.js → tool-zbfettrq.js} +3 -3
- package/dist/chunks/{session-zbqqnp0n.js → tool-zbqqnp0n.js} +1 -1
- package/dist/chunks/{session-zdkg1k91.js → tool-zdkg1k91.js} +1 -1
- package/dist/chunks/{session-3tkzq47z.js → tool-zg0p2dz9.js} +151 -151
- package/dist/chunks/{session-yh0fb1s2.js → tool-zjawnqb2.js} +34 -31
- package/dist/chunks/{session-zxcy6vhn.js → tool-zxcy6vhn.js} +1 -1
- package/dist/chunks/{session-zxe9jjhn.js → tool-zxe9jjhn.js} +2 -2
- package/dist/chunks/{session-grmqnqk7.js → tool-zza6acn9.js} +12 -12
- 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 +70 -70
- package/dist/config/markdown.js +2 -2
- package/dist/config/normalize.js +20 -20
- package/dist/config/plugin/agent.js +136 -136
- package/dist/config/plugin/command.js +118 -118
- package/dist/config/plugin/compaction.js +150 -150
- package/dist/config/plugin/entry-observer.js +114 -114
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +130 -130
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +117 -117
- package/dist/config/plugin/mcp.js +127 -127
- package/dist/config/plugin/policy.js +116 -116
- package/dist/config/plugin/provider.js +115 -115
- package/dist/config/plugin/reference.js +119 -119
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +109 -109
- package/dist/config/plugin/skill.js +139 -139
- package/dist/config/plugin/snapshot.js +117 -117
- package/dist/config/plugin/source.js +114 -114
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/variable.js +4 -4
- package/dist/config.js +113 -113
- 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 +18 -18
- 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 +93 -93
- package/dist/database/v1-migration.js +2 -2
- package/dist/database/v1-migration.noop.js +1 -1
- package/dist/effect/app-node-builder.js +328 -328
- 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 +91 -91
- package/dist/environment/exec-defaults.js +3 -3
- package/dist/environment/files.js +2 -2
- package/dist/environment/index.js +93 -93
- 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 +92 -92
- 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 +304 -304
- package/dist/filesystem/protected.js +2 -2
- package/dist/filesystem/search.js +96 -96
- package/dist/filesystem/watcher-binding.js +2 -2
- package/dist/filesystem/watcher.js +4 -4
- package/dist/filesystem.js +96 -96
- package/dist/form.js +69 -69
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +85 -85
- 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 +18 -18
- 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 +98 -98
- package/dist/image.js +98 -98
- package/dist/instruction-discovery.js +72 -72
- package/dist/instructions/builtins.js +86 -86
- 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 +85 -85
- package/dist/location-mutation.js +84 -84
- package/dist/location-service-map.js +84 -84
- package/dist/location-services.js +328 -328
- package/dist/location.js +83 -83
- package/dist/mcp/client.js +92 -92
- package/dist/mcp/index.js +98 -98
- package/dist/mcp/instructions.js +129 -129
- package/dist/mcp/oauth.js +2 -2
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +2 -2
- package/dist/model-resolver.js +83 -83
- 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 +84 -84
- package/dist/permission/sql.js +6 -6
- package/dist/permission.js +106 -106
- 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 +80 -74
- package/dist/persistent-pty/pty-binding.js +2 -2
- package/dist/persistent-pty.js +73 -73
- package/dist/plugin/agent.js +107 -107
- package/dist/plugin/command.js +99 -99
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +171 -171
- package/dist/plugin/internal.js +298 -298
- 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 +107 -107
- 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 +121 -121
- package/dist/plugin/provider/cerebras.js +3 -3
- package/dist/plugin/provider/cloudflare-ai-gateway.js +122 -122
- package/dist/plugin/provider/cloudflare-workers-ai.js +122 -122
- package/dist/plugin/provider/cohere.js +3 -3
- package/dist/plugin/provider/configured.js +119 -119
- 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 +82 -82
- package/dist/plugin/provider/gitlab.js +4 -4
- package/dist/plugin/provider/google-vertex.js +3 -3
- package/dist/plugin/provider/kilo.js +3 -3
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +114 -114
- package/dist/plugin/provider/mistral.js +3 -3
- package/dist/plugin/provider/nvidia.js +3 -3
- package/dist/plugin/provider/ollama.js +114 -114
- package/dist/plugin/provider/openai-compatible.js +2 -2
- package/dist/plugin/provider/openai.js +79 -79
- package/dist/plugin/provider/opencode.js +93 -93
- 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/venice.js +3 -3
- package/dist/plugin/provider/vercel.js +3 -3
- package/dist/plugin/provider/vllm.js +114 -114
- package/dist/plugin/provider/xai.js +78 -78
- package/dist/plugin/provider/zenmux.js +3 -3
- package/dist/plugin/provider.js +157 -157
- package/dist/plugin/runtime.js +159 -159
- package/dist/plugin/sdk.js +69 -69
- package/dist/plugin/skill.js +137 -137
- package/dist/plugin/source-directory.js +2 -2
- package/dist/plugin/supervisor-service.js +2 -2
- package/dist/plugin/supervisor.js +303 -303
- package/dist/plugin/system-prompt.js +2 -2
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +85 -85
- package/dist/plugin/vcs/hg.js +85 -85
- package/dist/plugin/warming.js +115 -115
- 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 +172 -172
- package/dist/project/markers.js +74 -74
- package/dist/project/schema.js +3 -3
- package/dist/project/sql.js +5 -5
- package/dist/project.js +82 -82
- 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 +70 -70
- package/dist/pty.js +89 -89
- package/dist/reference/instructions.js +77 -77
- package/dist/reference.js +75 -75
- package/dist/repository-cache.js +7 -7
- package/dist/repository.js +2 -2
- package/dist/ripgrep/binary.js +3 -3
- package/dist/ripgrep.js +94 -94
- package/dist/schema.js +2 -2
- package/dist/session/compaction.js +122 -122
- package/dist/session/context.js +313 -313
- 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 +157 -157
- package/dist/session/execution.js +126 -126
- package/dist/session/generate-node.js +314 -314
- package/dist/session/generate.js +2 -2
- package/dist/session/history.js +94 -94
- package/dist/session/inbox.js +91 -91
- package/dist/session/info.js +92 -92
- package/dist/session/instruction-entry.js +90 -90
- package/dist/session/instruction-state.js +91 -91
- package/dist/session/instructions.js +102 -102
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +2 -2
- package/dist/session/model-request.js +139 -139
- package/dist/session/model-transport.js +5 -5
- package/dist/session/projector.js +101 -101
- package/dist/session/prompt-cache-diagnostics.js +2 -2
- package/dist/session/revert.js +94 -94
- package/dist/session/run-coordinator.js +2 -2
- package/dist/session/runner/index.js +84 -84
- package/dist/session/runner/llm.js +320 -320
- 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 +148 -148
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +2 -2
- package/dist/session/sql.js +87 -87
- package/dist/session/stats.js +87 -87
- package/dist/session/store.js +101 -101
- package/dist/session/system-prompt.js +2 -2
- package/dist/session/title.js +314 -314
- package/dist/session/to-session-error.js +117 -117
- package/dist/session/transfer.js +160 -160
- package/dist/session/usage.js +2 -2
- package/dist/session.js +157 -157
- package/dist/shell/parse.js +6 -6
- 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/scan.js +1 -1
- package/dist/shell/select.js +4 -4
- package/dist/shell.js +99 -99
- package/dist/skill/discovery.js +3 -3
- package/dist/skill/instructions.js +108 -108
- package/dist/skill.js +107 -107
- package/dist/snapshot.js +85 -85
- package/dist/state.js +2 -2
- package/dist/tool/html-markdown.js +2 -2
- package/dist/tool/http-body.js +2 -2
- package/dist/tool/mcp.js +128 -128
- package/dist/tool/plugin/edit.js +116 -116
- package/dist/tool/plugin/file-diff.js +2 -2
- package/dist/tool/plugin/glob.js +118 -118
- package/dist/tool/plugin/grep.js +118 -118
- package/dist/tool/plugin/patch.js +118 -118
- package/dist/tool/plugin/question.js +110 -110
- package/dist/tool/plugin/read.js +121 -121
- package/dist/tool/plugin/shell.js +187 -187
- package/dist/tool/plugin/skill.js +108 -108
- package/dist/tool/plugin/subagent.js +184 -184
- package/dist/tool/plugin/webfetch.js +109 -109
- package/dist/tool/plugin/websearch.js +111 -111
- package/dist/tool/plugin/write.js +118 -118
- package/dist/tool/read-filesystem.js +98 -98
- package/dist/tool/runtime.js +2 -2
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +121 -121
- package/dist/types/model-resolver.d.ts +1 -1
- package/dist/types/persistent-pty/daemon.d.ts +34 -2
- package/dist/types/persistent-pty/index.d.ts +15 -3
- package/dist/types/tool/plugin/patch.d.ts +1 -1
- package/dist/types/tool/plugin/question.d.ts +1 -1
- package/dist/types/tool/plugin/write.d.ts +1 -1
- 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 +2 -2
- package/dist/vcs/patch.js +2 -2
- package/dist/vcs.js +86 -86
- 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 +87 -87
- package/package.json +8 -8
- /package/dist/chunks/{session-0cgt0xh2.js → tool-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{session-0f48qthw.js → tool-0f48qthw.js} +0 -0
- /package/dist/chunks/{session-0zz82cjq.js → tool-0zz82cjq.js} +0 -0
- /package/dist/chunks/{session-1fb7bmpf.js → tool-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{session-1wcz8fvj.js → tool-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{session-29n7vfk2.js → tool-29n7vfk2.js} +0 -0
- /package/dist/chunks/{session-2qdx6zz3.js → tool-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{session-2xb0r1c6.js → tool-2xb0r1c6.js} +0 -0
- /package/dist/chunks/{session-39ktntah.js → tool-39ktntah.js} +0 -0
- /package/dist/chunks/{session-3g3rpp2x.js → tool-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{session-3q6gbwmd.js → tool-3q6gbwmd.js} +0 -0
- /package/dist/chunks/{session-3w3ybtfd.js → tool-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{session-47ty4mvs.js → tool-47ty4mvs.js} +0 -0
- /package/dist/chunks/{session-4b2tz2m9.js → tool-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{session-5a5ch9ts.js → tool-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{session-5va1yh78.js → tool-5va1yh78.js} +0 -0
- /package/dist/chunks/{session-61ek4hj9.js → tool-61ek4hj9.js} +0 -0
- /package/dist/chunks/{session-69qrqpw0.js → tool-69qrqpw0.js} +0 -0
- /package/dist/chunks/{session-6zqxzw0a.js → tool-6zqxzw0a.js} +0 -0
- /package/dist/chunks/{session-7n9qwqk4.js → tool-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{session-8nn8kqcn.js → tool-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{session-8rpfd2h6.js → tool-8rpfd2h6.js} +0 -0
- /package/dist/chunks/{session-8sj3ajy5.js → tool-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{session-8w9tzfz1.js → tool-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{session-906y0b6d.js → tool-906y0b6d.js} +0 -0
- /package/dist/chunks/{session-9dct5xhx.js → tool-9dct5xhx.js} +0 -0
- /package/dist/chunks/{session-9sdtsapf.js → tool-9sdtsapf.js} +0 -0
- /package/dist/chunks/{session-a02svayp.js → tool-a02svayp.js} +0 -0
- /package/dist/chunks/{session-a83yvq99.js → tool-a83yvq99.js} +0 -0
- /package/dist/chunks/{session-a9vdgkgd.js → tool-a9vdgkgd.js} +0 -0
- /package/dist/chunks/{session-ayevdmef.js → tool-ayevdmef.js} +0 -0
- /package/dist/chunks/{session-b02txbh8.js → tool-b02txbh8.js} +0 -0
- /package/dist/chunks/{session-bbqs2y60.js → tool-bbqs2y60.js} +0 -0
- /package/dist/chunks/{session-bjwj8hwv.js → tool-bjwj8hwv.js} +0 -0
- /package/dist/chunks/{session-brsh5f65.js → tool-brsh5f65.js} +0 -0
- /package/dist/chunks/{session-bxdhjb3y.js → tool-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{session-c77ad0vh.js → tool-c77ad0vh.js} +0 -0
- /package/dist/chunks/{session-ck5pgha0.js → tool-ck5pgha0.js} +0 -0
- /package/dist/chunks/{session-cm67rqy2.js → tool-cm67rqy2.js} +0 -0
- /package/dist/chunks/{session-df3v2q6j.js → tool-df3v2q6j.js} +0 -0
- /package/dist/chunks/{session-dhcq6c44.js → tool-dhcq6c44.js} +0 -0
- /package/dist/chunks/{session-dht5baf0.js → tool-dht5baf0.js} +0 -0
- /package/dist/chunks/{session-dkmkay92.js → tool-dkmkay92.js} +0 -0
- /package/dist/chunks/{session-drean1vx.js → tool-drean1vx.js} +0 -0
- /package/dist/chunks/{session-ehj9csmv.js → tool-ehj9csmv.js} +0 -0
- /package/dist/chunks/{session-em6xpscd.js → tool-em6xpscd.js} +0 -0
- /package/dist/chunks/{session-emmqknsm.js → tool-emmqknsm.js} +0 -0
- /package/dist/chunks/{session-ezs3tagn.js → tool-ezs3tagn.js} +0 -0
- /package/dist/chunks/{session-f14r7hfz.js → tool-f14r7hfz.js} +0 -0
- /package/dist/chunks/{session-f4cp4g4a.js → tool-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{session-faypg4r1.js → tool-faypg4r1.js} +0 -0
- /package/dist/chunks/{session-fgbfdq62.js → tool-fgbfdq62.js} +0 -0
- /package/dist/chunks/{session-gd5xeqc2.js → tool-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{session-ghm4673n.js → tool-ghm4673n.js} +0 -0
- /package/dist/chunks/{session-ghwjy7my.js → tool-ghwjy7my.js} +0 -0
- /package/dist/chunks/{session-gy500k2r.js → tool-gy500k2r.js} +0 -0
- /package/dist/chunks/{session-hzeg9cfr.js → tool-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{session-j07kk359.js → tool-j07kk359.js} +0 -0
- /package/dist/chunks/{session-jve7t217.js → tool-jve7t217.js} +0 -0
- /package/dist/chunks/{session-k3e42drn.js → tool-k3e42drn.js} +0 -0
- /package/dist/chunks/{session-k8b45nas.js → tool-k8b45nas.js} +0 -0
- /package/dist/chunks/{session-kcacmy5c.js → tool-kcacmy5c.js} +0 -0
- /package/dist/chunks/{session-kpdbz7gn.js → tool-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{session-kxy11nzk.js → tool-kxy11nzk.js} +0 -0
- /package/dist/chunks/{session-kyyqvx4s.js → tool-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{session-m8cbvarh.js → tool-m8cbvarh.js} +0 -0
- /package/dist/chunks/{session-ma60vzgv.js → tool-ma60vzgv.js} +0 -0
- /package/dist/chunks/{session-n3m50c2t.js → tool-n3m50c2t.js} +0 -0
- /package/dist/chunks/{session-nkm1m8dz.js → tool-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{session-nsc0c3zb.js → tool-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{session-qaarhjrp.js → tool-qaarhjrp.js} +0 -0
- /package/dist/chunks/{session-qc167nrn.js → tool-qc167nrn.js} +0 -0
- /package/dist/chunks/{session-qp95y4jb.js → tool-qp95y4jb.js} +0 -0
- /package/dist/chunks/{session-r8f4w671.js → tool-r8f4w671.js} +0 -0
- /package/dist/chunks/{session-rdfev9jy.js → tool-rdfev9jy.js} +0 -0
- /package/dist/chunks/{session-rvfvac9x.js → tool-rvfvac9x.js} +0 -0
- /package/dist/chunks/{session-s7whb9gt.js → tool-s7whb9gt.js} +0 -0
- /package/dist/chunks/{session-se76j685.js → tool-se76j685.js} +0 -0
- /package/dist/chunks/{session-sem2g21k.js → tool-sem2g21k.js} +0 -0
- /package/dist/chunks/{session-sp575ygv.js → tool-sp575ygv.js} +0 -0
- /package/dist/chunks/{session-tmb1f636.js → tool-tmb1f636.js} +0 -0
- /package/dist/chunks/{session-ttxf0gsy.js → tool-ttxf0gsy.js} +0 -0
- /package/dist/chunks/{session-tvmhrvfj.js → tool-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{session-v2adqbbe.js → tool-v2adqbbe.js} +0 -0
- /package/dist/chunks/{session-wj4sxzqa.js → tool-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{session-wwntjmk1.js → tool-wwntjmk1.js} +0 -0
- /package/dist/chunks/{session-wyqjaaa5.js → tool-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{session-x4q807cx.js → tool-x4q807cx.js} +0 -0
- /package/dist/chunks/{session-xt0068v8.js → tool-xt0068v8.js} +0 -0
- /package/dist/chunks/{session-yrqrg4vp.js → tool-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{session-z47nswr2.js → tool-z47nswr2.js} +0 -0
- /package/dist/chunks/{session-zsf8rs93.js → tool-zsf8rs93.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_config
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-824aqnjj.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_catalog
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-wzttzd0f.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_provider
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./tool-krsqcmnj.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/provider/configured.ts
|
|
12
12
|
import { Effect, Option } from "effect";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_model_resolver
|
|
3
|
-
} from "./
|
|
4
|
-
import {
|
|
5
|
-
SessionSchema
|
|
6
|
-
} from "./session-bjwj8hwv.js";
|
|
3
|
+
} from "./tool-nj8brv8c.js";
|
|
7
4
|
import {
|
|
8
5
|
ID,
|
|
9
6
|
Ref
|
|
10
|
-
} from "./
|
|
7
|
+
} from "./tool-r13w8t0w.js";
|
|
11
8
|
import {
|
|
12
9
|
exports_provider
|
|
13
|
-
} from "./
|
|
10
|
+
} from "./tool-krsqcmnj.js";
|
|
11
|
+
import {
|
|
12
|
+
SessionSchema
|
|
13
|
+
} from "./tool-bjwj8hwv.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./tool-rvfvac9x.js";
|
|
17
17
|
|
|
18
18
|
// src/session/runner/model.ts
|
|
19
19
|
var exports_model = {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
exports_compaction
|
|
3
|
-
} from "./session-mra15993.js";
|
|
4
1
|
import {
|
|
5
2
|
exports_entry_observer
|
|
6
|
-
} from "./
|
|
3
|
+
} from "./tool-kp1t5rcy.js";
|
|
4
|
+
import {
|
|
5
|
+
exports_compaction
|
|
6
|
+
} from "./tool-wk2w386e.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_config
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./tool-824aqnjj.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./tool-rvfvac9x.js";
|
|
13
13
|
|
|
14
14
|
// src/config/plugin/compaction.ts
|
|
15
15
|
var exports_compaction2 = {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_kv
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-enx9pde1.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_bus
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-t0pymg4j.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./tool-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/wellknown.ts
|
|
12
12
|
var exports_wellknown = {};
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
countPatch,
|
|
8
8
|
deletePatch,
|
|
9
9
|
emptyPatch
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./tool-vz89hfgr.js";
|
|
11
11
|
import {
|
|
12
12
|
exports_location
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./tool-7tjb8xa6.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./tool-rvfvac9x.js";
|
|
17
17
|
|
|
18
18
|
// src/plugin/vcs/hg.ts
|
|
19
19
|
var exports_hg = {};
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_parse
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-yj1hzmfk.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_config
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-824aqnjj.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_tool_output
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./tool-f7q7a28y.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_location_mutation
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./tool-r24ex9vt.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_runtime
|
|
15
|
-
} from "./
|
|
16
|
-
import {
|
|
17
|
-
exports_shell
|
|
18
|
-
} from "./session-zecbhcj3.js";
|
|
15
|
+
} from "./tool-sw90k4ve.js";
|
|
19
16
|
import {
|
|
20
17
|
exports_permission
|
|
21
|
-
} from "./
|
|
18
|
+
} from "./tool-7ykbqfjm.js";
|
|
19
|
+
import {
|
|
20
|
+
exports_shell
|
|
21
|
+
} from "./tool-tbzspg5v.js";
|
|
22
22
|
import {
|
|
23
23
|
exports_select
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./tool-bbhffenw.js";
|
|
25
25
|
import {
|
|
26
26
|
exports_environment1 as exports_environment
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./tool-a47t5zgx.js";
|
|
28
28
|
import {
|
|
29
29
|
NonNegativeInt
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./tool-j07kk359.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./tool-rvfvac9x.js";
|
|
34
34
|
|
|
35
35
|
// src/tool/plugin/shell.ts
|
|
36
36
|
var exports_shell2 = {};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
exports_config
|
|
3
|
-
} from "./session-b6mjp7an.js";
|
|
4
1
|
import {
|
|
5
2
|
exports_provider_options
|
|
6
|
-
} from "./
|
|
3
|
+
} from "./tool-y0x38cee.js";
|
|
4
|
+
import {
|
|
5
|
+
exports_config
|
|
6
|
+
} from "./tool-naq0a7fp.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_integration
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./tool-c8pdv311.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_credential
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./tool-6fmtdc3w.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_model
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./tool-r13w8t0w.js";
|
|
16
16
|
import {
|
|
17
17
|
exports_provider
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./tool-krsqcmnj.js";
|
|
19
19
|
import {
|
|
20
20
|
exports_bus
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./tool-t0pymg4j.js";
|
|
22
22
|
|
|
23
23
|
// src/plugin/provider/opencode.ts
|
|
24
24
|
import { Duration, Effect, Schema, Semaphore, Stream } from "effect";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fromRow
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-g86fwbvg.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_history
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-h2afcd1x.js";
|
|
7
7
|
import {
|
|
8
8
|
SessionMessageTable,
|
|
9
9
|
SessionTable
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./tool-ygy0xbqa.js";
|
|
11
11
|
import {
|
|
12
12
|
exports_database
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./tool-gt4j0482.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./tool-rvfvac9x.js";
|
|
17
17
|
|
|
18
18
|
// src/session/store.ts
|
|
19
19
|
var exports_store = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_integration
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-c8pdv311.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_provider
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-krsqcmnj.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/llmgateway.ts
|
|
9
9
|
import { Effect } from "effect";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_reference
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-ddctgx8r.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_instructions
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-ec8vrfw5.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./tool-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/reference/instructions.ts
|
|
12
12
|
var exports_instructions2 = {};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_context
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-q58ebpsg.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_usage
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-sw84ckhj.js";
|
|
7
7
|
import {
|
|
8
8
|
llmClient
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./tool-k42t1tha.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_store
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./tool-2e14sds7.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_history
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./tool-h2afcd1x.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionEvent
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./tool-a83yvq99.js";
|
|
19
19
|
import {
|
|
20
20
|
exports_bus
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./tool-t0pymg4j.js";
|
|
22
22
|
import {
|
|
23
23
|
exports_database
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./tool-gt4j0482.js";
|
|
25
25
|
import {
|
|
26
26
|
__export
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./tool-rvfvac9x.js";
|
|
28
28
|
|
|
29
29
|
// src/session/title.ts
|
|
30
30
|
var exports_title = {};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fileDiff
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-c77ad0vh.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_formatter
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-9c15677s.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_file_mutation
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./tool-r9zfjs26.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_location_mutation
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./tool-r24ex9vt.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_permission
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./tool-7ykbqfjm.js";
|
|
16
16
|
import {
|
|
17
17
|
exports_environment1 as exports_environment
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./tool-a47t5zgx.js";
|
|
19
19
|
import {
|
|
20
20
|
exports_location
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./tool-7tjb8xa6.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./tool-rvfvac9x.js";
|
|
25
25
|
|
|
26
26
|
// src/tool/plugin/edit.ts
|
|
27
27
|
var exports_edit = {};
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
Failed,
|
|
3
3
|
NotFound,
|
|
4
4
|
WrongKind
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./tool-xczfw7dq.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./tool-rvfvac9x.js";
|
|
9
9
|
|
|
10
10
|
// src/environment/exec-defaults.ts
|
|
11
11
|
var exports_exec_defaults = {};
|
|
@@ -4,7 +4,7 @@ import { readFile } from "node:fs/promises";
|
|
|
4
4
|
import net from "node:net";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { Data, Duration, Effect, Schema, Semaphore } from "effect";
|
|
7
|
-
var ProtocolVersion =
|
|
7
|
+
var ProtocolVersion = 7;
|
|
8
8
|
var MaxFrameBytes = 8 * 1024 * 1024;
|
|
9
9
|
var Lifecycle = Schema.Union([
|
|
10
10
|
Schema.Struct({ status: Schema.Literal("running") }),
|
|
@@ -42,6 +42,8 @@ var WireResponse = Schema.Union([
|
|
|
42
42
|
Schema.Struct({ type: Schema.Literal("created"), terminal: WireTerminal }),
|
|
43
43
|
Schema.Struct({ type: Schema.Literal("terminals"), terminals: Schema.Array(WireTerminal) }),
|
|
44
44
|
Schema.Struct({ type: Schema.Literal("ok") }),
|
|
45
|
+
Schema.Struct({ type: Schema.Literal("owned") }),
|
|
46
|
+
Schema.Struct({ type: Schema.Literal("handoff"), ticket: Schema.String, expires_at: Schema.Number }),
|
|
45
47
|
Schema.Struct({
|
|
46
48
|
type: Schema.Literal("snapshot"),
|
|
47
49
|
terminal: WireTerminal,
|
|
@@ -85,18 +87,42 @@ var WireResponse = Schema.Union([
|
|
|
85
87
|
|
|
86
88
|
class DaemonError extends Data.TaggedError("PersistentPty.DaemonError") {
|
|
87
89
|
}
|
|
88
|
-
var makeDaemonTransport = Effect.fn("PersistentPty.makeDaemonTransport")(function* (directory, binary = () => Promise.resolve(process.env.OPENCODE_PTY_BIN || "opencode-pty")) {
|
|
90
|
+
var makeDaemonTransport = Effect.fn("PersistentPty.makeDaemonTransport")(function* (directory, binary = () => Promise.resolve(process.env.OPENCODE_PTY_BIN || "opencode-pty"), inherited) {
|
|
89
91
|
const startup = Semaphore.makeUnsafe(1);
|
|
90
92
|
let registration;
|
|
93
|
+
let owner;
|
|
94
|
+
let closed = false;
|
|
95
|
+
yield* Effect.addFinalizer(() => Effect.sync(() => {
|
|
96
|
+
closed = true;
|
|
97
|
+
owner?.socket.destroy();
|
|
98
|
+
}));
|
|
99
|
+
const claim = (current, ticket) => Effect.tryPromise({
|
|
100
|
+
try: async (signal) => {
|
|
101
|
+
const connection = await openOwner(current, ticket, signal);
|
|
102
|
+
if (closed || signal.aborted) {
|
|
103
|
+
connection.socket.destroy();
|
|
104
|
+
throw new Error("PTY owner scope is closed");
|
|
105
|
+
}
|
|
106
|
+
owner = connection;
|
|
107
|
+
registration = current;
|
|
108
|
+
connection.socket.once("close", () => {
|
|
109
|
+
if (owner !== connection)
|
|
110
|
+
return;
|
|
111
|
+
owner = undefined;
|
|
112
|
+
registration = undefined;
|
|
113
|
+
});
|
|
114
|
+
},
|
|
115
|
+
catch: (cause) => failure("connect", cause)
|
|
116
|
+
}).pipe(Effect.timeoutOrElse({
|
|
117
|
+
duration: Duration.seconds(5),
|
|
118
|
+
orElse: () => Effect.fail(new DaemonError({ kind: "connect", message: "PTY ownership claim timed out" }))
|
|
119
|
+
}));
|
|
91
120
|
const discover = Effect.fn("PersistentPty.daemon.discover")(function* () {
|
|
92
121
|
const value = yield* Effect.tryPromise({
|
|
93
122
|
try: () => readFile(path.join(directory, "service.json"), "utf8"),
|
|
94
123
|
catch: (cause) => failure("connect", cause)
|
|
95
124
|
});
|
|
96
|
-
const decoded = yield* Effect.
|
|
97
|
-
try: () => Schema.decodeUnknownSync(Registration)(JSON.parse(value)),
|
|
98
|
-
catch: (cause) => failure("protocol", cause)
|
|
99
|
-
});
|
|
125
|
+
const decoded = yield* Schema.decodeUnknownEffect(Schema.fromJsonString(Registration))(value).pipe(Effect.mapError((cause) => failure("protocol", cause)));
|
|
100
126
|
if (decoded.protocol !== ProtocolVersion)
|
|
101
127
|
return yield* Effect.fail(new DaemonError({
|
|
102
128
|
kind: "protocol",
|
|
@@ -110,49 +136,55 @@ var makeDaemonTransport = Effect.fn("PersistentPty.makeDaemonTransport")(functio
|
|
|
110
136
|
});
|
|
111
137
|
const start = Effect.fn("PersistentPty.daemon.start")(function* () {
|
|
112
138
|
const executable = yield* Effect.tryPromise({ try: binary, catch: (cause) => failure("spawn", cause) });
|
|
113
|
-
yield* Effect.tryPromise({
|
|
139
|
+
const child = yield* Effect.tryPromise({
|
|
114
140
|
try: () => new Promise((resolve, reject) => {
|
|
115
|
-
const
|
|
141
|
+
const child2 = spawn(executable, ["daemon"], {
|
|
116
142
|
detached: true,
|
|
117
143
|
stdio: "ignore",
|
|
118
144
|
env: { ...process.env, OPENCODE_PTY_RUNTIME_DIR: directory }
|
|
119
145
|
});
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
resolve();
|
|
146
|
+
child2.once("spawn", () => {
|
|
147
|
+
child2.unref();
|
|
148
|
+
resolve(child2);
|
|
123
149
|
});
|
|
124
|
-
|
|
150
|
+
child2.once("error", reject);
|
|
125
151
|
}),
|
|
126
152
|
catch: (cause) => failure("spawn", cause)
|
|
127
153
|
});
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
154
|
+
return yield* Effect.gen(function* () {
|
|
155
|
+
const deadline = Date.now() + 5000;
|
|
156
|
+
let last;
|
|
157
|
+
while (Date.now() < deadline) {
|
|
158
|
+
const found = yield* discover().pipe(Effect.map((value) => ({ value })), Effect.catch((error) => {
|
|
159
|
+
last = error;
|
|
160
|
+
return Effect.succeed(undefined);
|
|
161
|
+
}));
|
|
162
|
+
if (found) {
|
|
163
|
+
yield* claim(found.value);
|
|
164
|
+
return found.value;
|
|
165
|
+
}
|
|
166
|
+
yield* Effect.sleep(50);
|
|
167
|
+
}
|
|
168
|
+
return yield* Effect.fail(last ?? new DaemonError({ kind: "connect", message: "opencode-pty did not become ready" }));
|
|
169
|
+
}).pipe(Effect.onError(() => Effect.sync(() => {
|
|
170
|
+
child.kill("SIGTERM");
|
|
171
|
+
})));
|
|
140
172
|
});
|
|
141
173
|
const connect = Effect.fn("PersistentPty.daemon.connect")(function* (shouldStart) {
|
|
174
|
+
if (closed)
|
|
175
|
+
return yield* Effect.fail(new DaemonError({ kind: "connect", message: "PTY owner scope is closed" }));
|
|
142
176
|
if (registration)
|
|
143
177
|
return registration;
|
|
144
178
|
return yield* startup.withPermit(Effect.gen(function* () {
|
|
145
179
|
if (registration)
|
|
146
180
|
return registration;
|
|
147
181
|
const found = yield* discover().pipe(Effect.catch((error) => {
|
|
148
|
-
if (
|
|
149
|
-
return Effect.fail(error);
|
|
150
|
-
if (error.kind === "connect")
|
|
182
|
+
if (shouldStart && error.kind === "connect")
|
|
151
183
|
return start();
|
|
152
|
-
|
|
153
|
-
return Effect.fail(error);
|
|
154
|
-
return terminate(error.pid).pipe(Effect.andThen(start()));
|
|
184
|
+
return Effect.fail(error);
|
|
155
185
|
}));
|
|
186
|
+
if (!owner)
|
|
187
|
+
yield* claim(found);
|
|
156
188
|
registration = found;
|
|
157
189
|
return found;
|
|
158
190
|
}));
|
|
@@ -192,6 +224,22 @@ var makeDaemonTransport = Effect.fn("PersistentPty.makeDaemonTransport")(functio
|
|
|
192
224
|
}
|
|
193
225
|
return yield* Effect.fail(new DaemonError({ kind: "connect", message: "opencode-pty did not stop" }));
|
|
194
226
|
});
|
|
227
|
+
const handoff = startup.withPermit(Effect.gen(function* () {
|
|
228
|
+
const current = owner;
|
|
229
|
+
const registered = registration;
|
|
230
|
+
if (!current || !registered)
|
|
231
|
+
return null;
|
|
232
|
+
const response = yield* Effect.tryPromise({
|
|
233
|
+
try: (signal) => current.exchange({ op: "prepare_handoff" }, signal),
|
|
234
|
+
catch: (cause) => failure("response", cause)
|
|
235
|
+
}).pipe(Effect.timeoutOrElse({
|
|
236
|
+
duration: Duration.seconds(5),
|
|
237
|
+
orElse: () => Effect.fail(new DaemonError({ kind: "response", message: "PTY handoff preparation timed out" }))
|
|
238
|
+
}));
|
|
239
|
+
if (response.type !== "handoff")
|
|
240
|
+
return yield* Effect.fail(new DaemonError({ kind: "protocol", message: "Expected PTY handoff ticket" }));
|
|
241
|
+
return { directory, instanceID: registered.instance_id, ticket: response.ticket, expiresAt: response.expires_at };
|
|
242
|
+
}));
|
|
195
243
|
const subscribe = Effect.fn("PersistentPty.daemon.subscribe")(function* (id, input) {
|
|
196
244
|
const attempt2 = Effect.gen(function* () {
|
|
197
245
|
const current = yield* connect(false);
|
|
@@ -206,8 +254,56 @@ var makeDaemonTransport = Effect.fn("PersistentPty.makeDaemonTransport")(functio
|
|
|
206
254
|
});
|
|
207
255
|
return yield* attempt2.pipe(Effect.catch((error) => error.kind === "registration" ? attempt2 : Effect.fail(error)));
|
|
208
256
|
});
|
|
209
|
-
|
|
257
|
+
if (inherited) {
|
|
258
|
+
if (inherited.expiresAt <= Date.now())
|
|
259
|
+
return yield* Effect.fail(new DaemonError({ kind: "registration", message: "PTY restart handoff expired" }));
|
|
260
|
+
const current = yield* discover();
|
|
261
|
+
if (current.instance_id !== inherited.instanceID)
|
|
262
|
+
return yield* Effect.fail(new DaemonError({ kind: "registration", message: "PTY restart daemon changed" }));
|
|
263
|
+
yield* claim(current, inherited.ticket);
|
|
264
|
+
}
|
|
265
|
+
return { request, requestIfRunning, shutdown, handoff, subscribe };
|
|
210
266
|
});
|
|
267
|
+
async function openOwner(registration, ticket, signal) {
|
|
268
|
+
const socket = net.createConnection({ path: registration.socket });
|
|
269
|
+
const frames = decoder(socket);
|
|
270
|
+
const abort = () => socket.destroy();
|
|
271
|
+
signal.addEventListener("abort", abort, { once: true });
|
|
272
|
+
const exchange = async (request, signal2) => {
|
|
273
|
+
if (signal2.aborted)
|
|
274
|
+
throw new Error("PTY ownership request interrupted");
|
|
275
|
+
signal2.addEventListener("abort", abort, { once: true });
|
|
276
|
+
try {
|
|
277
|
+
socket.write(encode({ token: registration.token, request }));
|
|
278
|
+
const frame = await frames.next();
|
|
279
|
+
if (frame.done)
|
|
280
|
+
throw new Error("PTY daemon closed its ownership connection");
|
|
281
|
+
const response = decode(frame.value);
|
|
282
|
+
if (response.type === "error")
|
|
283
|
+
throw new Error(response.message);
|
|
284
|
+
return response;
|
|
285
|
+
} finally {
|
|
286
|
+
signal2.removeEventListener("abort", abort);
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
try {
|
|
290
|
+
await new Promise((resolve, reject) => {
|
|
291
|
+
socket.once("connect", resolve);
|
|
292
|
+
socket.once("error", reject);
|
|
293
|
+
socket.once("close", () => reject(new Error("PTY ownership connection closed")));
|
|
294
|
+
});
|
|
295
|
+
const response = await exchange({ op: "own", instance_id: registration.instance_id, ticket }, signal);
|
|
296
|
+
if (response.type !== "owned")
|
|
297
|
+
throw new Error("PTY daemon does not support server ownership");
|
|
298
|
+
socket.unref();
|
|
299
|
+
return { socket, exchange };
|
|
300
|
+
} catch (error) {
|
|
301
|
+
socket.destroy();
|
|
302
|
+
throw error;
|
|
303
|
+
} finally {
|
|
304
|
+
signal.removeEventListener("abort", abort);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
211
307
|
var oneShot = Effect.fn("PersistentPty.daemon.oneShot")(function* (registration, request) {
|
|
212
308
|
const payload = yield* Effect.try({
|
|
213
309
|
try: () => encode({ token: registration.token, request }),
|
|
@@ -404,26 +500,5 @@ function decode(payload) {
|
|
|
404
500
|
function failure(kind, cause) {
|
|
405
501
|
return new DaemonError({ kind, message: cause instanceof Error ? cause.message : String(cause) });
|
|
406
502
|
}
|
|
407
|
-
var terminate = Effect.fn("PersistentPty.daemon.terminate-incompatible")(function* (pid) {
|
|
408
|
-
yield* Effect.logWarning("replacing incompatible opencode-pty daemon", { pid });
|
|
409
|
-
yield* Effect.try({ try: () => process.kill(pid, "SIGTERM"), catch: (cause) => failure("spawn", cause) }).pipe(Effect.catch((error) => isMissingProcess(error) ? Effect.void : Effect.fail(error)));
|
|
410
|
-
const deadline = Date.now() + 2000;
|
|
411
|
-
while (Date.now() < deadline && processRunning(pid))
|
|
412
|
-
yield* Effect.sleep(25);
|
|
413
|
-
if (!processRunning(pid))
|
|
414
|
-
return;
|
|
415
|
-
yield* Effect.try({ try: () => process.kill(pid, "SIGKILL"), catch: (cause) => failure("spawn", cause) }).pipe(Effect.catch((error) => isMissingProcess(error) ? Effect.void : Effect.fail(error)));
|
|
416
|
-
});
|
|
417
|
-
function processRunning(pid) {
|
|
418
|
-
try {
|
|
419
|
-
process.kill(pid, 0);
|
|
420
|
-
return true;
|
|
421
|
-
} catch {
|
|
422
|
-
return false;
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
function isMissingProcess(error) {
|
|
426
|
-
return error.message.includes("ESRCH") || error.message.includes("no such process");
|
|
427
|
-
}
|
|
428
503
|
|
|
429
504
|
export { WireTerminal, WireResponse, DaemonError, makeDaemonTransport };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createProviderPlugin
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-0zz82cjq.js";
|
|
4
4
|
import {
|
|
5
5
|
__require
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-rvfvac9x.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/mistral.ts
|
|
9
9
|
var MistralPlugin = createProviderPlugin({
|