@opencode-ai/core 0.0.0-beta-18387 → 0.0.0-beta-18414
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/{project-yc2vxtaa.js → tool-017jr2na.js} +44 -34
- package/dist/chunks/{project-02dbfq60.js → tool-02dbfq60.js} +1 -1
- package/dist/chunks/{project-yvm8e5zy.js → tool-02xgq42f.js} +2 -2
- package/dist/chunks/{project-4y8apnnd.js → tool-09s1bzmc.js} +3 -3
- package/dist/chunks/{project-xfdr1rzh.js → tool-0jn2bqed.js} +3 -3
- package/dist/chunks/{project-0kvmztkf.js → tool-0kvmztkf.js} +1 -1
- package/dist/chunks/{project-ff75mv0b.js → tool-157r81nd.js} +10 -10
- package/dist/chunks/{project-18pv8fg3.js → tool-18pv8fg3.js} +2 -2
- package/dist/chunks/{project-91x65vsv.js → tool-1tbh5vd4.js} +6 -6
- package/dist/chunks/{project-d406hwse.js → tool-217z330v.js} +2 -2
- package/dist/chunks/{project-awwcqzj5.js → tool-23mx900r.js} +9 -9
- package/dist/chunks/{project-r1c3r2q5.js → tool-248dv4dv.js} +5 -5
- package/dist/chunks/{project-taeshe6q.js → tool-25n2gasw.js} +7 -7
- package/dist/chunks/{project-bnh2cn12.js → tool-271gqszs.js} +5 -5
- package/dist/chunks/{project-2m0hgr65.js → tool-2m0hgr65.js} +1 -1
- package/dist/chunks/{project-2nmyybe0.js → tool-2nmyybe0.js} +1 -1
- package/dist/chunks/{project-y6702ndx.js → tool-2ppgn6ch.js} +4 -4
- package/dist/chunks/{project-2wds5nk3.js → tool-2wds5nk3.js} +1 -1
- package/dist/chunks/{project-m9g7vbdc.js → tool-2y40pff2.js} +2 -2
- package/dist/chunks/{project-wwd7emcy.js → tool-2zb0j1mr.js} +1 -1
- package/dist/chunks/{project-2gjcj4rv.js → tool-3331j5hn.js} +12 -12
- package/dist/chunks/{project-ferp39wg.js → tool-376q6v3y.js} +5 -5
- package/dist/chunks/{project-k42t1tha.js → tool-393a352g.js} +2 -2
- package/dist/chunks/{project-2f2nw00g.js → tool-3bben81c.js} +5 -5
- package/dist/chunks/{project-3g8vftxb.js → tool-3g8vftxb.js} +2 -2
- package/dist/chunks/{project-ym31qssr.js → tool-3jshngxf.js} +9 -9
- package/dist/chunks/{project-gqn2zsfg.js → tool-3p1bsa7m.js} +127 -52
- package/dist/chunks/{project-3qv8nf0b.js → tool-3qv8nf0b.js} +1 -1
- package/dist/chunks/{project-d3r4ps5n.js → tool-3s135gjm.js} +5 -5
- package/dist/chunks/{project-3thh6229.js → tool-3thh6229.js} +2 -2
- package/dist/chunks/{project-x33dyhcx.js → tool-400rk52g.js} +5 -5
- package/dist/chunks/{project-sq000y3g.js → tool-4qk63h15.js} +3 -3
- package/dist/chunks/{project-4s2xwh5d.js → tool-4s2xwh5d.js} +3 -3
- package/dist/chunks/{project-k4w3wsd5.js → tool-4ya343sq.js} +21 -21
- package/dist/chunks/{project-4zzdwbaz.js → tool-4zzdwbaz.js} +2 -2
- package/dist/chunks/{project-50jxp3hw.js → tool-50jxp3hw.js} +1 -1
- package/dist/chunks/{project-mbbvc7tp.js → tool-53vhya9m.js} +7 -7
- package/dist/chunks/{project-57tzwnz4.js → tool-57tzwnz4.js} +1 -1
- package/dist/chunks/{project-58xdvehb.js → tool-58xdvehb.js} +1 -1
- package/dist/chunks/{project-6fxwm8sg.js → tool-5aac0tby.js} +10 -10
- package/dist/chunks/{project-5cdnkd94.js → tool-5cdnkd94.js} +3 -3
- package/dist/chunks/{project-qnrg9ptq.js → tool-5cmc2wkg.js} +11 -11
- package/dist/chunks/{project-mqqvpcq4.js → tool-5drxeftm.js} +149 -149
- package/dist/chunks/{project-5fe026tx.js → tool-5fe026tx.js} +3 -3
- package/dist/chunks/{project-z259d721.js → tool-5h6b115z.js} +38 -32
- package/dist/chunks/{project-5rs65q6p.js → tool-5rs65q6p.js} +1 -1
- package/dist/chunks/{project-crcfx7c6.js → tool-5t37zp3f.js} +8 -8
- package/dist/chunks/{project-mkqy0gf0.js → tool-5tp8bhe0.js} +5 -5
- package/dist/chunks/{project-5vcssjzn.js → tool-5vcssjzn.js} +1 -1
- package/dist/chunks/{project-7fr2g77j.js → tool-5y7h4bj8.js} +8 -8
- package/dist/chunks/{project-5z4zwtb4.js → tool-5z4zwtb4.js} +2 -2
- package/dist/chunks/{project-6272rtjg.js → tool-6272rtjg.js} +1 -1
- package/dist/chunks/{project-rzd353vk.js → tool-6f8j85qb.js} +12 -12
- package/dist/chunks/{project-6ky7rqk7.js → tool-6ky7rqk7.js} +1 -1
- package/dist/chunks/{project-m3xhkz0r.js → tool-6mybbghn.js} +23 -17
- package/dist/chunks/{project-h9c8w22v.js → tool-6qnkp1xh.js} +9 -9
- package/dist/chunks/{project-6wkzvma0.js → tool-6wkzvma0.js} +2 -2
- package/dist/chunks/{project-75h1hfe2.js → tool-75h1hfe2.js} +2 -2
- package/dist/chunks/{project-ymjrx39x.js → tool-75wg6agd.js} +13 -13
- package/dist/chunks/{project-8nphtxqs.js → tool-76jwqfe9.js} +10 -10
- package/dist/chunks/{project-kpvfv19m.js → tool-7bxmgbqt.js} +3 -3
- package/dist/chunks/{project-7gqqz1s8.js → tool-7gqqz1s8.js} +1 -1
- package/dist/chunks/{project-7khw64yh.js → tool-7khw64yh.js} +1 -1
- package/dist/chunks/{project-7mrpdsq5.js → tool-7mrpdsq5.js} +1 -1
- package/dist/chunks/{project-7thnevmq.js → tool-7thnevmq.js} +2 -2
- package/dist/chunks/{project-fj7j2b3f.js → tool-7vqcvmjm.js} +8 -8
- package/dist/chunks/{project-7wcmqxrc.js → tool-7wcmqxrc.js} +1 -1
- package/dist/chunks/{project-fzp6ntht.js → tool-7yfz5d5r.js} +5 -5
- package/dist/chunks/{project-4ngx5mmk.js → tool-83kkwqqt.js} +5 -5
- package/dist/chunks/{project-752n680m.js → tool-88d62dqj.js} +11 -11
- package/dist/chunks/{project-88jbfw8z.js → tool-88jbfw8z.js} +2 -2
- package/dist/chunks/{project-5dkj9jex.js → tool-8dndtydw.js} +6 -6
- package/dist/chunks/{project-5ev0hagv.js → tool-8ebp560e.js} +6 -6
- package/dist/chunks/{project-8pngjawd.js → tool-8pngjawd.js} +2 -2
- package/dist/chunks/{project-f7q7a28y.js → tool-8qrvdwwg.js} +6 -6
- package/dist/chunks/{project-8tv6syt7.js → tool-8tv6syt7.js} +1 -1
- package/dist/chunks/{project-999qd968.js → tool-999qd968.js} +1 -1
- package/dist/chunks/{project-0bvw1e9j.js → tool-9cn9z662.js} +31 -31
- package/dist/chunks/{project-9f0rnpkn.js → tool-9f0rnpkn.js} +1 -1
- package/dist/chunks/{project-32f3grv8.js → tool-9ksd5av3.js} +6 -6
- package/dist/chunks/{project-m0j38ah3.js → tool-a66h3var.js} +9 -9
- package/dist/chunks/{project-djtxvcnb.js → tool-amkf47zv.js} +3 -3
- package/dist/chunks/{project-awg5d31a.js → tool-awg5d31a.js} +1 -1
- package/dist/chunks/{project-wc13d4t1.js → tool-axj9zjcw.js} +6 -6
- package/dist/chunks/{project-k17ah5wk.js → tool-ay9jepqf.js} +5 -5
- package/dist/chunks/{project-fm2nfar1.js → tool-b12y280m.js} +8 -8
- package/dist/chunks/{project-ppjzdvsh.js → tool-b273vq4v.js} +2 -2
- package/dist/chunks/{project-sf08ck76.js → tool-bb6xq25h.js} +116 -91
- package/dist/chunks/{project-csrx180a.js → tool-bbhffenw.js} +9 -5
- package/dist/chunks/{project-bh1wr8rq.js → tool-bh1wr8rq.js} +2 -2
- package/dist/chunks/{project-bmknfyv0.js → tool-bmknfyv0.js} +2 -2
- package/dist/chunks/{project-byab506k.js → tool-byab506k.js} +1 -1
- package/dist/chunks/{project-6fhdrzhr.js → tool-c03pdk3m.js} +3 -3
- package/dist/chunks/{project-5v62jj9e.js → tool-c06ff3ts.js} +10 -10
- package/dist/chunks/{project-km33gj80.js → tool-c35fsjgg.js} +4 -4
- package/dist/chunks/{project-q28mzdb8.js → tool-c3ehh06a.js} +5 -5
- package/dist/chunks/{project-c4wcb9vc.js → tool-c4wcb9vc.js} +2 -2
- package/dist/chunks/{project-9hhhwjb6.js → tool-c7b2cm7c.js} +5 -5
- package/dist/chunks/{project-b9e9mfxw.js → tool-cb19ghtj.js} +3 -3
- package/dist/chunks/{project-zetp0g5z.js → tool-cb5zxvq2.js} +12 -12
- package/dist/chunks/{project-dsgsf6t8.js → tool-chc00mz7.js} +4 -4
- package/dist/chunks/{project-yfqpw9zc.js → tool-cp982web.js} +7 -7
- package/dist/chunks/{project-cx7n25xa.js → tool-cpbmr86j.js} +6 -6
- package/dist/chunks/{project-j0yk5xzn.js → tool-cstpqjcj.js} +14 -14
- package/dist/chunks/{project-d2gk9vpf.js → tool-d2gk9vpf.js} +2 -2
- package/dist/chunks/{project-0s0avyhy.js → tool-d6sk6h82.js} +9 -9
- package/dist/chunks/{project-1vzxtn3p.js → tool-d7kshenq.js} +43 -43
- package/dist/chunks/{project-mrpn47r7.js → tool-d8s3r721.js} +4 -4
- package/dist/chunks/{project-js0s00qy.js → tool-d8ve01t0.js} +36 -36
- package/dist/chunks/{project-v7mh9m05.js → tool-dcqm2659.js} +13 -13
- package/dist/chunks/{project-skw8v6gh.js → tool-dfjw0vq8.js} +10 -10
- package/dist/chunks/{project-dhphtf1x.js → tool-dhphtf1x.js} +1 -1
- package/dist/chunks/{project-cdyja1rk.js → tool-dp4z5d5v.js} +4 -4
- package/dist/chunks/{project-e1z9a0ts.js → tool-e1z9a0ts.js} +2 -2
- package/dist/chunks/{project-0j3q9xkr.js → tool-e39r3b28.js} +3 -3
- package/dist/chunks/{project-f3cfbmnf.js → tool-e4n4v60w.js} +3 -3
- package/dist/chunks/{project-hs6vajzr.js → tool-e7m167yz.js} +9 -9
- package/dist/chunks/{project-ec8vrfw5.js → tool-ec8vrfw5.js} +1 -1
- package/dist/chunks/{project-bd7yndfd.js → tool-eek2pnnt.js} +12 -12
- package/dist/chunks/{project-pdp9vdkd.js → tool-eeta29b7.js} +4 -4
- package/dist/chunks/{project-ag9e5ja9.js → tool-ef9y63ry.js} +3 -3
- package/dist/chunks/{project-gz9cds71.js → tool-emrme47h.js} +6 -6
- package/dist/chunks/{project-enpg66yn.js → tool-enpg66yn.js} +1 -1
- package/dist/chunks/{project-3exk6c8a.js → tool-ey81096p.js} +5 -5
- package/dist/chunks/{project-ztjk4rav.js → tool-f11jbhcb.js} +6 -6
- package/dist/chunks/{project-f9wt0tjw.js → tool-f9wt0tjw.js} +2 -2
- package/dist/chunks/{project-fb7nfzf2.js → tool-fb7nfzf2.js} +3 -3
- package/dist/chunks/{project-4bpp3tz5.js → tool-ffe33p6j.js} +16 -16
- package/dist/chunks/{project-fgyjabww.js → tool-fgyjabww.js} +2 -2
- package/dist/chunks/{project-jt8kmcaa.js → tool-g64wqzyd.js} +3 -3
- package/dist/chunks/{project-gcay93cp.js → tool-gcay93cp.js} +1 -1
- package/dist/chunks/{project-gd2xppx8.js → tool-gd2xppx8.js} +1 -1
- package/dist/chunks/{project-8dxjsdhj.js → tool-gf27j7mb.js} +7 -7
- package/dist/chunks/{project-36pd2x65.js → tool-gfdah46y.js} +11 -11
- package/dist/chunks/{project-gpybhmhb.js → tool-gpybhmhb.js} +3 -3
- package/dist/chunks/{project-tkcv9emb.js → tool-h01rtytj.js} +3 -3
- package/dist/chunks/{project-h12kt9pa.js → tool-h12kt9pa.js} +2 -2
- package/dist/chunks/{project-t8fspa0t.js → tool-h2mftgr1.js} +8 -8
- package/dist/chunks/{project-70xksvhs.js → tool-h4a7m801.js} +13 -13
- package/dist/chunks/{project-zztghhyy.js → tool-h5xzwr1g.js} +6 -9
- package/dist/chunks/{project-h94zdhz8.js → tool-h94zdhz8.js} +2 -2
- package/dist/chunks/{project-c3ca4w0m.js → tool-hd8q5g8p.js} +3 -3
- package/dist/chunks/{project-sqsackq5.js → tool-hjc64t6x.js} +35 -35
- package/dist/chunks/{project-hp6rpdnc.js → tool-hp6rpdnc.js} +1 -1
- package/dist/chunks/{project-k6anep7v.js → tool-hszm49c7.js} +13 -13
- package/dist/chunks/{project-mb0mcgky.js → tool-jcxfg7j9.js} +3 -3
- package/dist/chunks/{project-ck5pgha0.js → tool-jqms80b0.js} +2 -2
- package/dist/chunks/{project-k417vscg.js → tool-jy183kys.js} +5 -5
- package/dist/chunks/{project-t86111fa.js → tool-k7pbmry0.js} +9 -9
- package/dist/chunks/{project-kg1345f7.js → tool-kg1345f7.js} +1 -1
- package/dist/chunks/{project-d4ax61k3.js → tool-kgkfyy1j.js} +35 -33
- package/dist/chunks/{project-kp1t5rcy.js → tool-kp1t5rcy.js} +1 -1
- package/dist/chunks/{project-ehktr312.js → tool-kprre75d.js} +3 -3
- package/dist/chunks/{project-krsqcmnj.js → tool-krsqcmnj.js} +1 -1
- package/dist/chunks/{project-rt37qqhk.js → tool-kt491qp2.js} +9 -11
- package/dist/chunks/{project-k9s98avy.js → tool-m1wb9dgh.js} +17 -19
- package/dist/chunks/{project-m55whf0h.js → tool-m55whf0h.js} +2 -2
- package/dist/chunks/{project-d55ah2nc.js → tool-merfm3fd.js} +3 -3
- package/dist/chunks/{project-mf0hyk7z.js → tool-mf0hyk7z.js} +1 -1
- package/dist/chunks/{project-mh28new4.js → tool-mh28new4.js} +2 -2
- package/dist/chunks/{project-mnb85w6b.js → tool-mnb85w6b.js} +2 -2
- package/dist/chunks/{project-bc5dx6ta.js → tool-mtf7yncj.js} +6 -6
- package/dist/chunks/{project-mxvw03gv.js → tool-mxvw03gv.js} +1 -1
- package/dist/chunks/{project-4e7fkx2j.js → tool-n0eq3s1b.js} +7 -7
- package/dist/chunks/{project-qy4nss8j.js → tool-n93x7mqk.js} +3 -3
- package/dist/chunks/{project-gz5f51ks.js → tool-na96fv1q.js} +3 -3
- package/dist/chunks/{project-emda4gf1.js → tool-ndg5dzdd.js} +5 -5
- package/dist/chunks/{project-ggwv3nzk.js → tool-negttf37.js} +91 -91
- package/dist/chunks/{project-nesb2rcz.js → tool-nesb2rcz.js} +2 -2
- package/dist/chunks/{project-wjypv8r3.js → tool-ngpnqj2n.js} +3 -3
- package/dist/chunks/{project-xsz86f10.js → tool-njstbtdj.js} +58 -58
- package/dist/chunks/{project-nr76rjj3.js → tool-nr76rjj3.js} +2 -2
- package/dist/chunks/{project-5ym3qvb4.js → tool-nr9n2d4p.js} +10 -10
- package/dist/chunks/{project-3hhqtqv0.js → tool-nt13qee2.js} +83 -79
- package/dist/chunks/{project-nzrjycs5.js → tool-nzrjycs5.js} +1 -1
- package/dist/chunks/{project-mqnm4bmb.js → tool-p379w5v5.js} +9 -9
- package/dist/chunks/{project-p8fr6x1v.js → tool-p8fr6x1v.js} +1 -1
- package/dist/chunks/{project-xvk4yk4s.js → tool-pcyacrd3.js} +8 -8
- package/dist/chunks/{project-fzmr1kdy.js → tool-pkezspgh.js} +13 -13
- package/dist/chunks/{project-pq4b4pqk.js → tool-pq4b4pqk.js} +2 -2
- package/dist/chunks/{project-wn3rpk3t.js → tool-pqe0bsb2.js} +2 -2
- package/dist/chunks/{project-kmwxkk1w.js → tool-pqjwk9ze.js} +3 -3
- package/dist/chunks/{project-3cq0d38n.js → tool-pr2pekfr.js} +14 -14
- package/dist/chunks/{project-hd1rgdxr.js → tool-pts35d3y.js} +11 -11
- package/dist/chunks/{project-27jjns4j.js → tool-q693p5za.js} +12 -12
- package/dist/chunks/{project-dndvd0y6.js → tool-q70gvhbx.js} +9 -9
- package/dist/chunks/{project-q9b4qnv8.js → tool-q9b4qnv8.js} +2 -2
- package/dist/chunks/{project-qe0d689s.js → tool-qe0d689s.js} +2 -2
- package/dist/chunks/{project-cgjhhpfw.js → tool-qfcm9j97.js} +7 -7
- package/dist/chunks/{project-r13w8t0w.js → tool-r13w8t0w.js} +2 -2
- package/dist/chunks/{project-r3k9abhd.js → tool-r3k9abhd.js} +2 -2
- package/dist/chunks/{project-wxv7hsvv.js → tool-r958g7pm.js} +4 -4
- package/dist/chunks/{project-rahat93a.js → tool-rahat93a.js} +1 -1
- package/dist/chunks/{project-rameyvmv.js → tool-rameyvmv.js} +1 -1
- package/dist/chunks/{project-rbnp2c85.js → tool-rbnp2c85.js} +3 -3
- package/dist/chunks/{project-7ajc89c4.js → tool-re1rhra9.js} +6 -6
- package/dist/chunks/{project-rfbm65k8.js → tool-rfbm65k8.js} +1 -1
- package/dist/chunks/{project-skmdv22a.js → tool-rm0rdhcq.js} +4 -4
- package/dist/chunks/{project-8m11m4e9.js → tool-rmm5c85b.js} +15 -24
- package/dist/chunks/{project-txf013zk.js → tool-rp2ch0tc.js} +5 -5
- package/dist/chunks/{project-ebyp015j.js → tool-s2dmwbat.js} +7 -7
- package/dist/chunks/{project-s33fw6zm.js → tool-s33fw6zm.js} +1 -1
- package/dist/chunks/{project-86x1mnp7.js → tool-s758z954.js} +2 -2
- package/dist/chunks/{project-hwf0phwc.js → tool-s8xxtbar.js} +5 -5
- package/dist/chunks/{project-9f249168.js → tool-scfq11we.js} +24 -24
- package/dist/chunks/{project-mkaeg0rc.js → tool-se8395as.js} +17 -13
- package/dist/chunks/{project-smpeg8c9.js → tool-smpeg8c9.js} +2 -2
- package/dist/chunks/{project-sw84ckhj.js → tool-sw84ckhj.js} +1 -1
- package/dist/chunks/{project-e6atjbt4.js → tool-sxpjdhga.js} +4 -4
- package/dist/chunks/{project-gp6nnez7.js → tool-t0msbthe.js} +3 -3
- package/dist/chunks/{project-4rcfaa94.js → tool-t11m5yr4.js} +6 -6
- package/dist/chunks/{project-t14kykx1.js → tool-t14kykx1.js} +1 -1
- package/dist/chunks/{project-fkwnpnbc.js → tool-t4r89bwk.js} +3 -3
- package/dist/chunks/{project-cezw36z8.js → tool-t66bwez3.js} +2 -2
- package/dist/chunks/{project-7vg519fb.js → tool-t9sv4zem.js} +4 -4
- package/dist/chunks/{project-tcptxgyq.js → tool-tcptxgyq.js} +1 -1
- package/dist/chunks/{project-tgbb2ckq.js → tool-tgbb2ckq.js} +2 -2
- package/dist/chunks/{project-thstd87d.js → tool-thstd87d.js} +1 -1
- package/dist/chunks/{project-a09abg6q.js → tool-txw0c3p3.js} +3 -3
- package/dist/chunks/{project-v2wshkax.js → tool-v2wshkax.js} +1 -1
- package/dist/chunks/{project-kbbbjrn0.js → tool-v72crqz7.js} +5 -5
- package/dist/chunks/{project-v80zsxnb.js → tool-v80zsxnb.js} +1 -1
- package/dist/chunks/{project-v972xay6.js → tool-v972xay6.js} +1 -1
- package/dist/chunks/{project-v9bfv94f.js → tool-v9bfv94f.js} +1 -1
- package/dist/chunks/{project-vcwr2vpf.js → tool-vcwr2vpf.js} +1 -1
- package/dist/chunks/{project-vqbmgfq1.js → tool-vqbmgfq1.js} +3 -3
- package/dist/chunks/{project-de3g1gpb.js → tool-vvdjq78e.js} +7 -7
- package/dist/chunks/{project-vycjsnjm.js → tool-vycjsnjm.js} +2 -2
- package/dist/chunks/{project-vz89hfgr.js → tool-vz89hfgr.js} +1 -1
- package/dist/chunks/{project-26hk4g12.js → tool-w52cyf08.js} +2 -2
- package/dist/chunks/{project-wbkt8qpj.js → tool-wbkt8qpj.js} +1 -1
- package/dist/chunks/{project-56tj48z7.js → tool-wcb745wb.js} +7 -7
- package/dist/chunks/{project-wd268jeg.js → tool-wd268jeg.js} +1 -1
- package/dist/chunks/{project-whk0g8cz.js → tool-whk0g8cz.js} +4 -4
- package/dist/chunks/{project-wmxdh12w.js → tool-wmxdh12w.js} +1 -1
- package/dist/chunks/{project-wps8gh8n.js → tool-wps8gh8n.js} +2 -2
- package/dist/chunks/{project-cqwe0zy2.js → tool-x33kb18g.js} +3 -3
- package/dist/chunks/{project-x89rah0x.js → tool-x89rah0x.js} +1 -1
- package/dist/chunks/{project-xczfw7dq.js → tool-xczfw7dq.js} +1 -1
- package/dist/chunks/{project-xgv25zxy.js → tool-xgv25zxy.js} +1 -1
- package/dist/chunks/{project-xwftk1fd.js → tool-xwftk1fd.js} +2 -2
- package/dist/chunks/{project-xxpvz42q.js → tool-xxpvz42q.js} +3 -3
- package/dist/chunks/{project-3qj9jcya.js → tool-y0a17w9d.js} +5 -5
- package/dist/chunks/{project-y0x38cee.js → tool-y0x38cee.js} +1 -1
- package/dist/chunks/{project-c7yarf1b.js → tool-y109krwg.js} +3 -3
- package/dist/chunks/{project-y198y2ra.js → tool-y198y2ra.js} +1 -1
- package/dist/chunks/{project-qxp8yvck.js → tool-y4v09x0q.js} +4 -4
- package/dist/chunks/{project-y67x6rf6.js → tool-y67x6rf6.js} +1 -1
- package/dist/chunks/{project-y980s7ka.js → tool-y980s7ka.js} +3 -3
- package/dist/chunks/{project-akppyv5r.js → tool-yaw62s0n.js} +4 -4
- package/dist/chunks/{project-ybhfpy64.js → tool-ybhfpy64.js} +2 -2
- package/dist/chunks/{project-45navbfs.js → tool-yde8fdw7.js} +11 -11
- package/dist/chunks/{project-yf0knd5z.js → tool-yf0knd5z.js} +2 -2
- package/dist/chunks/{project-ygy0xbqa.js → tool-ygy0xbqa.js} +3 -3
- package/dist/chunks/{project-vcx09kjb.js → tool-ykb30cq4.js} +3 -3
- package/dist/chunks/{project-nvbw3dns.js → tool-yncnzy6p.js} +3 -3
- package/dist/chunks/{project-0p8g4tc4.js → tool-z8gh2y42.js} +4 -4
- package/dist/chunks/{project-zbqqnp0n.js → tool-zbqqnp0n.js} +1 -1
- package/dist/chunks/{project-zdkg1k91.js → tool-zdkg1k91.js} +1 -1
- package/dist/chunks/{project-zxcy6vhn.js → tool-zxcy6vhn.js} +1 -1
- package/dist/chunks/{project-zxe9jjhn.js → tool-zxe9jjhn.js} +2 -2
- 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 +17 -17
- 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 +91 -91
- 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 +20 -20
- package/dist/github-copilot/models.js +4 -4
- package/dist/github-copilot/openai-compatible-error.js +2 -2
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +2 -2
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
- package/dist/github-copilot/responses/openai-error.js +2 -2
- package/dist/github-copilot/responses/openai-responses-language-model.js +11 -11
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
- package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
- package/dist/github-copilot/responses/tool/file-search.js +2 -2
- package/dist/github-copilot/responses/tool/image-generation.js +2 -2
- package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
- package/dist/github-copilot/responses/tool/web-search.js +2 -2
- package/dist/id/id.js +2 -2
- package/dist/image/photon-wasm.bun.js +1 -1
- package/dist/image/photon-wasm.node.js +1 -1
- package/dist/image/photon-wasm.workerd.js +1 -1
- package/dist/image/photon.js +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 +124 -114
- 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 -71
- package/dist/persistent-pty/pty-binding.js +2 -2
- package/dist/persistent-pty.js +73 -70
- 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 +93 -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 +165 -162
- 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 +6 -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/location-service-map.d.ts +2 -2
- package/dist/types/location-services.d.ts +2 -1
- 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 +17 -5
- package/dist/types/plugin/host.d.ts +6 -2
- package/dist/types/session/inbox.d.ts +82 -0
- package/dist/types/session/transfer.d.ts +1 -1
- package/dist/types/shell/select.d.ts +3 -0
- 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/{project-0cgt0xh2.js → tool-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{project-0f48qthw.js → tool-0f48qthw.js} +0 -0
- /package/dist/chunks/{project-0zz82cjq.js → tool-0zz82cjq.js} +0 -0
- /package/dist/chunks/{project-1fb7bmpf.js → tool-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{project-1wcz8fvj.js → tool-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{project-29n7vfk2.js → tool-29n7vfk2.js} +0 -0
- /package/dist/chunks/{project-2qdx6zz3.js → tool-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{project-2xb0r1c6.js → tool-2xb0r1c6.js} +0 -0
- /package/dist/chunks/{project-39ktntah.js → tool-39ktntah.js} +0 -0
- /package/dist/chunks/{project-3g3rpp2x.js → tool-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{project-3q6gbwmd.js → tool-3q6gbwmd.js} +0 -0
- /package/dist/chunks/{project-3w3ybtfd.js → tool-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{project-47ty4mvs.js → tool-47ty4mvs.js} +0 -0
- /package/dist/chunks/{project-4b2tz2m9.js → tool-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{project-5a5ch9ts.js → tool-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{project-5va1yh78.js → tool-5va1yh78.js} +0 -0
- /package/dist/chunks/{project-61ek4hj9.js → tool-61ek4hj9.js} +0 -0
- /package/dist/chunks/{project-69qrqpw0.js → tool-69qrqpw0.js} +0 -0
- /package/dist/chunks/{project-6zqxzw0a.js → tool-6zqxzw0a.js} +0 -0
- /package/dist/chunks/{project-7n9qwqk4.js → tool-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{project-8nn8kqcn.js → tool-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{project-8rpfd2h6.js → tool-8rpfd2h6.js} +0 -0
- /package/dist/chunks/{project-8sj3ajy5.js → tool-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{project-8w9tzfz1.js → tool-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{project-906y0b6d.js → tool-906y0b6d.js} +0 -0
- /package/dist/chunks/{project-9dct5xhx.js → tool-9dct5xhx.js} +0 -0
- /package/dist/chunks/{project-9sdtsapf.js → tool-9sdtsapf.js} +0 -0
- /package/dist/chunks/{project-a02svayp.js → tool-a02svayp.js} +0 -0
- /package/dist/chunks/{project-a83yvq99.js → tool-a83yvq99.js} +0 -0
- /package/dist/chunks/{project-a9vdgkgd.js → tool-a9vdgkgd.js} +0 -0
- /package/dist/chunks/{project-ayevdmef.js → tool-ayevdmef.js} +0 -0
- /package/dist/chunks/{project-b02txbh8.js → tool-b02txbh8.js} +0 -0
- /package/dist/chunks/{project-bbqs2y60.js → tool-bbqs2y60.js} +0 -0
- /package/dist/chunks/{project-bjwj8hwv.js → tool-bjwj8hwv.js} +0 -0
- /package/dist/chunks/{project-brsh5f65.js → tool-brsh5f65.js} +0 -0
- /package/dist/chunks/{project-bxdhjb3y.js → tool-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{project-c77ad0vh.js → tool-c77ad0vh.js} +0 -0
- /package/dist/chunks/{project-cm67rqy2.js → tool-cm67rqy2.js} +0 -0
- /package/dist/chunks/{project-df3v2q6j.js → tool-df3v2q6j.js} +0 -0
- /package/dist/chunks/{project-dhcq6c44.js → tool-dhcq6c44.js} +0 -0
- /package/dist/chunks/{project-dht5baf0.js → tool-dht5baf0.js} +0 -0
- /package/dist/chunks/{project-dkmkay92.js → tool-dkmkay92.js} +0 -0
- /package/dist/chunks/{project-drean1vx.js → tool-drean1vx.js} +0 -0
- /package/dist/chunks/{project-ehj9csmv.js → tool-ehj9csmv.js} +0 -0
- /package/dist/chunks/{project-em6xpscd.js → tool-em6xpscd.js} +0 -0
- /package/dist/chunks/{project-emmqknsm.js → tool-emmqknsm.js} +0 -0
- /package/dist/chunks/{project-ezs3tagn.js → tool-ezs3tagn.js} +0 -0
- /package/dist/chunks/{project-f14r7hfz.js → tool-f14r7hfz.js} +0 -0
- /package/dist/chunks/{project-f4cp4g4a.js → tool-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{project-faypg4r1.js → tool-faypg4r1.js} +0 -0
- /package/dist/chunks/{project-fgbfdq62.js → tool-fgbfdq62.js} +0 -0
- /package/dist/chunks/{project-gd5xeqc2.js → tool-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{project-ghm4673n.js → tool-ghm4673n.js} +0 -0
- /package/dist/chunks/{project-ghwjy7my.js → tool-ghwjy7my.js} +0 -0
- /package/dist/chunks/{project-gy500k2r.js → tool-gy500k2r.js} +0 -0
- /package/dist/chunks/{project-hzeg9cfr.js → tool-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{project-j07kk359.js → tool-j07kk359.js} +0 -0
- /package/dist/chunks/{project-jve7t217.js → tool-jve7t217.js} +0 -0
- /package/dist/chunks/{project-k3e42drn.js → tool-k3e42drn.js} +0 -0
- /package/dist/chunks/{project-k8b45nas.js → tool-k8b45nas.js} +0 -0
- /package/dist/chunks/{project-kcacmy5c.js → tool-kcacmy5c.js} +0 -0
- /package/dist/chunks/{project-kpdbz7gn.js → tool-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{project-kxy11nzk.js → tool-kxy11nzk.js} +0 -0
- /package/dist/chunks/{project-kyyqvx4s.js → tool-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{project-m8cbvarh.js → tool-m8cbvarh.js} +0 -0
- /package/dist/chunks/{project-ma60vzgv.js → tool-ma60vzgv.js} +0 -0
- /package/dist/chunks/{project-n3m50c2t.js → tool-n3m50c2t.js} +0 -0
- /package/dist/chunks/{project-nkm1m8dz.js → tool-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{project-nsc0c3zb.js → tool-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{project-qaarhjrp.js → tool-qaarhjrp.js} +0 -0
- /package/dist/chunks/{project-qc167nrn.js → tool-qc167nrn.js} +0 -0
- /package/dist/chunks/{project-qp95y4jb.js → tool-qp95y4jb.js} +0 -0
- /package/dist/chunks/{project-r8f4w671.js → tool-r8f4w671.js} +0 -0
- /package/dist/chunks/{project-rdfev9jy.js → tool-rdfev9jy.js} +0 -0
- /package/dist/chunks/{project-rvfvac9x.js → tool-rvfvac9x.js} +0 -0
- /package/dist/chunks/{project-s7whb9gt.js → tool-s7whb9gt.js} +0 -0
- /package/dist/chunks/{project-se76j685.js → tool-se76j685.js} +0 -0
- /package/dist/chunks/{project-sem2g21k.js → tool-sem2g21k.js} +0 -0
- /package/dist/chunks/{project-sp575ygv.js → tool-sp575ygv.js} +0 -0
- /package/dist/chunks/{project-tmb1f636.js → tool-tmb1f636.js} +0 -0
- /package/dist/chunks/{project-ttxf0gsy.js → tool-ttxf0gsy.js} +0 -0
- /package/dist/chunks/{project-tvmhrvfj.js → tool-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{project-v2adqbbe.js → tool-v2adqbbe.js} +0 -0
- /package/dist/chunks/{project-wj4sxzqa.js → tool-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{project-wwntjmk1.js → tool-wwntjmk1.js} +0 -0
- /package/dist/chunks/{project-wyqjaaa5.js → tool-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{project-x4q807cx.js → tool-x4q807cx.js} +0 -0
- /package/dist/chunks/{project-xt0068v8.js → tool-xt0068v8.js} +0 -0
- /package/dist/chunks/{project-yrqrg4vp.js → tool-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{project-z47nswr2.js → tool-z47nswr2.js} +0 -0
- /package/dist/chunks/{project-zsf8rs93.js → tool-zsf8rs93.js} +0 -0
|
@@ -1,27 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
makeLocalDriver
|
|
3
|
+
} from "./tool-zxe9jjhn.js";
|
|
1
4
|
import {
|
|
2
5
|
makeMemoryDriver
|
|
3
|
-
} from "./
|
|
6
|
+
} from "./tool-yf0knd5z.js";
|
|
4
7
|
import {
|
|
5
8
|
execDefaults
|
|
6
|
-
} from "./
|
|
7
|
-
import {
|
|
8
|
-
makeLocalDriver
|
|
9
|
-
} from "./project-zxe9jjhn.js";
|
|
9
|
+
} from "./tool-3g8vftxb.js";
|
|
10
10
|
import {
|
|
11
11
|
Failed,
|
|
12
12
|
NotFound,
|
|
13
13
|
WrongKind,
|
|
14
14
|
typeFollowing
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./tool-xczfw7dq.js";
|
|
16
16
|
import {
|
|
17
17
|
exports_workspace
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./tool-n0eq3s1b.js";
|
|
19
19
|
import {
|
|
20
20
|
exports_location
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./tool-2y40pff2.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./tool-rvfvac9x.js";
|
|
25
25
|
|
|
26
26
|
// src/environment/environment.ts
|
|
27
27
|
var exports_environment2 = {};
|
|
@@ -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,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
iife
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-ehj9csmv.js";
|
|
4
4
|
import {
|
|
5
5
|
configuredSettings
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-hd8q5g8p.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_app
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./tool-50jxp3hw.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_provider
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./tool-krsqcmnj.js";
|
|
13
13
|
import {
|
|
14
14
|
__require
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./tool-rvfvac9x.js";
|
|
16
16
|
|
|
17
17
|
// src/plugin/provider/cloudflare-workers-ai.ts
|
|
18
18
|
import os from "os";
|
|
@@ -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({
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_store
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-53vhya9m.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionEvent
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-a83yvq99.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_location
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./tool-2y40pff2.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_bus
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./tool-8dndtydw.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./tool-rvfvac9x.js";
|
|
16
16
|
|
|
17
17
|
// src/session/instructions.ts
|
|
18
18
|
var exports_instructions = {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_permission
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-6f8j85qb.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_agent
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-kprre75d.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./tool-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/agent.ts
|
|
12
12
|
var exports_agent2 = {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_permission
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-v9bfv94f.js";
|
|
4
4
|
import {
|
|
5
5
|
PositiveInt
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-j07kk359.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./tool-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/v1/config/agent.ts
|
|
12
12
|
var exports_agent = {};
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_message_updater
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-bmknfyv0.js";
|
|
4
|
+
import {
|
|
5
|
+
exports_inbox
|
|
6
|
+
} from "./tool-se8395as.js";
|
|
4
7
|
import {
|
|
5
8
|
exports_instruction_entry
|
|
6
|
-
} from "./
|
|
9
|
+
} from "./tool-z8gh2y42.js";
|
|
7
10
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
11
|
+
Slug
|
|
12
|
+
} from "./tool-df3v2q6j.js";
|
|
10
13
|
import {
|
|
11
14
|
exports_instruction_state
|
|
12
|
-
} from "./
|
|
15
|
+
} from "./tool-f11jbhcb.js";
|
|
13
16
|
import {
|
|
14
17
|
SessionInboxTable,
|
|
15
18
|
SessionMessageTable,
|
|
16
19
|
SessionTable
|
|
17
|
-
} from "./
|
|
20
|
+
} from "./tool-ygy0xbqa.js";
|
|
18
21
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
22
|
+
exports_agent
|
|
23
|
+
} from "./tool-kprre75d.js";
|
|
21
24
|
import {
|
|
22
25
|
SessionMessage
|
|
23
|
-
} from "./
|
|
24
|
-
import {
|
|
25
|
-
exports_agent
|
|
26
|
-
} from "./project-ehktr312.js";
|
|
26
|
+
} from "./tool-8rpfd2h6.js";
|
|
27
27
|
import {
|
|
28
28
|
exports_model
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./tool-r13w8t0w.js";
|
|
30
30
|
import {
|
|
31
31
|
exports_workspace
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./tool-n0eq3s1b.js";
|
|
33
33
|
import {
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
34
|
+
SessionEvent
|
|
35
|
+
} from "./tool-a83yvq99.js";
|
|
36
36
|
import {
|
|
37
37
|
ProjectTable
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./tool-88jbfw8z.js";
|
|
39
39
|
import {
|
|
40
40
|
AbsolutePath,
|
|
41
41
|
RelativePath
|
|
42
|
-
} from "./
|
|
42
|
+
} from "./tool-j07kk359.js";
|
|
43
43
|
import {
|
|
44
44
|
exports_bus
|
|
45
|
-
} from "./
|
|
45
|
+
} from "./tool-8dndtydw.js";
|
|
46
46
|
import {
|
|
47
47
|
exports_database
|
|
48
|
-
} from "./
|
|
48
|
+
} from "./tool-merfm3fd.js";
|
|
49
49
|
import {
|
|
50
50
|
__export
|
|
51
|
-
} from "./
|
|
51
|
+
} from "./tool-rvfvac9x.js";
|
|
52
52
|
|
|
53
53
|
// src/session/projector.ts
|
|
54
54
|
var exports_projector = {};
|
|
@@ -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/alibaba.ts
|
|
9
9
|
var AlibabaPlugin = createProviderPlugin({
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
exports_history
|
|
3
|
-
} from "./project-dndvd0y6.js";
|
|
4
1
|
import {
|
|
5
2
|
fromRow
|
|
6
|
-
} from "./
|
|
3
|
+
} from "./tool-cb5zxvq2.js";
|
|
4
|
+
import {
|
|
5
|
+
exports_history
|
|
6
|
+
} from "./tool-q70gvhbx.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-merfm3fd.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,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_location_mutation
|
|
3
|
-
} from "./
|
|
4
|
-
import {
|
|
5
|
-
exports_filesystem
|
|
6
|
-
} from "./project-hwf0phwc.js";
|
|
3
|
+
} from "./tool-7yfz5d5r.js";
|
|
7
4
|
import {
|
|
8
5
|
exports_permission
|
|
9
|
-
} from "./
|
|
6
|
+
} from "./tool-6f8j85qb.js";
|
|
7
|
+
import {
|
|
8
|
+
exports_filesystem
|
|
9
|
+
} from "./tool-s8xxtbar.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_ripgrep
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./tool-yaw62s0n.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_environment1 as exports_environment
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./tool-3jshngxf.js";
|
|
16
16
|
import {
|
|
17
17
|
exports_location
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./tool-2y40pff2.js";
|
|
19
19
|
import {
|
|
20
20
|
RelativePath
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./tool-j07kk359.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./tool-rvfvac9x.js";
|
|
25
25
|
|
|
26
26
|
// src/tool/plugin/glob.ts
|
|
27
27
|
var exports_glob = {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_model
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-r13w8t0w.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_provider
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-krsqcmnj.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./tool-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/variant.ts
|
|
12
12
|
var exports_variant = {};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
exports_discovery
|
|
3
|
-
} from "./project-ybhfpy64.js";
|
|
4
1
|
import {
|
|
5
2
|
exports_skill_file
|
|
6
|
-
} from "./
|
|
3
|
+
} from "./tool-y0a17w9d.js";
|
|
7
4
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
5
|
+
exports_discovery
|
|
6
|
+
} from "./tool-ybhfpy64.js";
|
|
10
7
|
import {
|
|
11
8
|
exports_config
|
|
12
|
-
} from "./
|
|
9
|
+
} from "./tool-dcqm2659.js";
|
|
13
10
|
import {
|
|
14
11
|
exports_watcher
|
|
15
|
-
} from "./
|
|
12
|
+
} from "./tool-y980s7ka.js";
|
|
13
|
+
import {
|
|
14
|
+
exports_skill
|
|
15
|
+
} from "./tool-sxpjdhga.js";
|
|
16
16
|
import {
|
|
17
17
|
exports_location
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./tool-2y40pff2.js";
|
|
19
19
|
import {
|
|
20
20
|
AbsolutePath
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./tool-j07kk359.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./tool-rvfvac9x.js";
|
|
25
25
|
|
|
26
26
|
// src/config/plugin/skill.ts
|
|
27
27
|
var exports_skill2 = {};
|