@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,30 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
exports_token
|
|
3
|
-
} from "./project-v972xay6.js";
|
|
4
1
|
import {
|
|
5
2
|
exports_usage
|
|
6
|
-
} from "./
|
|
3
|
+
} from "./tool-sw84ckhj.js";
|
|
4
|
+
import {
|
|
5
|
+
exports_token
|
|
6
|
+
} from "./tool-v972xay6.js";
|
|
7
7
|
import {
|
|
8
8
|
toSessionError
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./tool-wcb745wb.js";
|
|
10
10
|
import {
|
|
11
11
|
llmClient
|
|
12
|
-
} from "./
|
|
13
|
-
import {
|
|
14
|
-
SessionEvent
|
|
15
|
-
} from "./project-a83yvq99.js";
|
|
12
|
+
} from "./tool-393a352g.js";
|
|
16
13
|
import {
|
|
17
14
|
exports_agent
|
|
18
|
-
} from "./
|
|
15
|
+
} from "./tool-kprre75d.js";
|
|
19
16
|
import {
|
|
20
17
|
exports_state
|
|
21
|
-
} from "./
|
|
18
|
+
} from "./tool-x89rah0x.js";
|
|
19
|
+
import {
|
|
20
|
+
SessionEvent
|
|
21
|
+
} from "./tool-a83yvq99.js";
|
|
22
22
|
import {
|
|
23
23
|
exports_bus
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./tool-8dndtydw.js";
|
|
25
25
|
import {
|
|
26
26
|
__export
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./tool-rvfvac9x.js";
|
|
28
28
|
|
|
29
29
|
// src/session/compaction.ts
|
|
30
30
|
var exports_compaction = {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MAX_MARKDOWN_BYTES,
|
|
3
3
|
convertHTMLToMarkdown
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./tool-xt0068v8.js";
|
|
5
5
|
import {
|
|
6
6
|
collectBoundedResponseBody
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./tool-jve7t217.js";
|
|
8
8
|
import {
|
|
9
9
|
exports_permission
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./tool-6f8j85qb.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./tool-rvfvac9x.js";
|
|
14
14
|
|
|
15
15
|
// src/tool/plugin/webfetch.ts
|
|
16
16
|
var exports_webfetch = {};
|
|
@@ -68,12 +68,9 @@ var headers = (format, userAgent) => ({
|
|
|
68
68
|
});
|
|
69
69
|
var openCodeUserAgent = "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; OpenCode-User/1.0; +https://opencode.ai";
|
|
70
70
|
var isCloudflareChallenge = (error) => {
|
|
71
|
-
if (
|
|
71
|
+
if (error.reason._tag !== "StatusCodeError")
|
|
72
72
|
return false;
|
|
73
|
-
const
|
|
74
|
-
if (!reason || typeof reason !== "object" || !("_tag" in reason) || reason._tag !== "StatusCodeError" || !("response" in reason))
|
|
75
|
-
return false;
|
|
76
|
-
const response = reason.response;
|
|
73
|
+
const response = error.reason.response;
|
|
77
74
|
return response.status === 403 && response.headers["cf-mitigated"] === "challenge";
|
|
78
75
|
};
|
|
79
76
|
var request = (url, format, userAgent = openCodeUserAgent) => HttpClientRequest.get(url).pipe(HttpClientRequest.setHeaders(headers(format, userAgent)));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_config
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-dcqm2659.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_catalog
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-7vqcvmjm.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,73 +1,73 @@
|
|
|
1
|
-
import {
|
|
2
|
-
MAX_STEPS_PROMPT
|
|
3
|
-
} from "./project-qaarhjrp.js";
|
|
4
1
|
import {
|
|
5
2
|
exports_step
|
|
6
|
-
} from "./
|
|
3
|
+
} from "./tool-m1wb9dgh.js";
|
|
7
4
|
import {
|
|
8
5
|
exports_retry
|
|
9
|
-
} from "./
|
|
6
|
+
} from "./tool-txw0c3p3.js";
|
|
7
|
+
import {
|
|
8
|
+
MAX_STEPS_PROMPT
|
|
9
|
+
} from "./tool-qaarhjrp.js";
|
|
10
|
+
import {
|
|
11
|
+
exports_prompt_cache_diagnostics
|
|
12
|
+
} from "./tool-wd268jeg.js";
|
|
10
13
|
import {
|
|
11
14
|
exports_title
|
|
12
|
-
} from "./
|
|
15
|
+
} from "./tool-d6sk6h82.js";
|
|
13
16
|
import {
|
|
14
17
|
exports_context
|
|
15
|
-
} from "./
|
|
18
|
+
} from "./tool-9cn9z662.js";
|
|
19
|
+
import {
|
|
20
|
+
exports_model_request
|
|
21
|
+
} from "./tool-6mybbghn.js";
|
|
16
22
|
import {
|
|
17
23
|
exports_supervisor
|
|
18
|
-
} from "./
|
|
24
|
+
} from "./tool-5t37zp3f.js";
|
|
19
25
|
import {
|
|
20
26
|
exports_compaction
|
|
21
|
-
} from "./
|
|
22
|
-
import {
|
|
23
|
-
exports_prompt_cache_diagnostics
|
|
24
|
-
} from "./project-wd268jeg.js";
|
|
25
|
-
import {
|
|
26
|
-
exports_model_request
|
|
27
|
-
} from "./project-m3xhkz0r.js";
|
|
27
|
+
} from "./tool-h4a7m801.js";
|
|
28
28
|
import {
|
|
29
29
|
exports_tool_output
|
|
30
|
-
} from "./
|
|
31
|
-
import {
|
|
32
|
-
exports_model_transport
|
|
33
|
-
} from "./project-d4ax61k3.js";
|
|
30
|
+
} from "./tool-8qrvdwwg.js";
|
|
34
31
|
import {
|
|
35
32
|
DrainResult,
|
|
36
33
|
Service
|
|
37
|
-
} from "./
|
|
34
|
+
} from "./tool-2m0hgr65.js";
|
|
38
35
|
import {
|
|
39
36
|
exports_inbox
|
|
40
|
-
} from "./
|
|
37
|
+
} from "./tool-se8395as.js";
|
|
38
|
+
import {
|
|
39
|
+
exports_model_transport
|
|
40
|
+
} from "./tool-kgkfyy1j.js";
|
|
41
|
+
import {
|
|
42
|
+
exports_snapshot
|
|
43
|
+
} from "./tool-ay9jepqf.js";
|
|
41
44
|
import {
|
|
42
45
|
llmClient
|
|
43
|
-
} from "./
|
|
46
|
+
} from "./tool-393a352g.js";
|
|
44
47
|
import {
|
|
45
48
|
exports_store
|
|
46
|
-
} from "./
|
|
47
|
-
import {
|
|
48
|
-
StepFailedError
|
|
49
|
-
} from "./project-fb7nfzf2.js";
|
|
49
|
+
} from "./tool-53vhya9m.js";
|
|
50
50
|
import {
|
|
51
51
|
exports_instruction_state
|
|
52
|
-
} from "./
|
|
52
|
+
} from "./tool-f11jbhcb.js";
|
|
53
53
|
import {
|
|
54
|
-
|
|
55
|
-
} from "./
|
|
54
|
+
StepFailedError
|
|
55
|
+
} from "./tool-fb7nfzf2.js";
|
|
56
56
|
import {
|
|
57
57
|
SessionMessage
|
|
58
|
-
} from "./
|
|
58
|
+
} from "./tool-8rpfd2h6.js";
|
|
59
59
|
import {
|
|
60
|
-
|
|
61
|
-
} from "./
|
|
60
|
+
SessionEvent
|
|
61
|
+
} from "./tool-a83yvq99.js";
|
|
62
62
|
import {
|
|
63
63
|
exports_bus
|
|
64
|
-
} from "./
|
|
64
|
+
} from "./tool-8dndtydw.js";
|
|
65
65
|
import {
|
|
66
66
|
exports_database
|
|
67
|
-
} from "./
|
|
67
|
+
} from "./tool-merfm3fd.js";
|
|
68
68
|
import {
|
|
69
69
|
__export
|
|
70
|
-
} from "./
|
|
70
|
+
} from "./tool-rvfvac9x.js";
|
|
71
71
|
|
|
72
72
|
// src/session/runner/llm.ts
|
|
73
73
|
var exports_llm = {};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fileDiff
|
|
3
|
-
} from "./
|
|
4
|
-
import {
|
|
5
|
-
exports_formatter
|
|
6
|
-
} from "./project-vcx09kjb.js";
|
|
3
|
+
} from "./tool-c77ad0vh.js";
|
|
7
4
|
import {
|
|
8
5
|
exports_file_mutation
|
|
9
|
-
} from "./
|
|
6
|
+
} from "./tool-yncnzy6p.js";
|
|
7
|
+
import {
|
|
8
|
+
exports_formatter
|
|
9
|
+
} from "./tool-ykb30cq4.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_location_mutation
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./tool-7yfz5d5r.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_permission
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./tool-6f8j85qb.js";
|
|
16
16
|
import {
|
|
17
17
|
exports_environment1 as exports_environment
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./tool-3jshngxf.js";
|
|
19
19
|
import {
|
|
20
20
|
__export
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./tool-rvfvac9x.js";
|
|
22
22
|
|
|
23
23
|
// src/tool/plugin/write.ts
|
|
24
24
|
var exports_write = {};
|
|
25
25
|
__export(exports_write, {
|
|
26
|
-
|
|
26
|
+
toModelContent: () => toModelContent,
|
|
27
27
|
name: () => name,
|
|
28
28
|
WriteTool: () => exports_write,
|
|
29
29
|
Plugin: () => Plugin,
|
|
@@ -46,7 +46,7 @@ var Output = Schema.Struct({
|
|
|
46
46
|
resource: Schema.String,
|
|
47
47
|
existed: Schema.Boolean
|
|
48
48
|
});
|
|
49
|
-
var
|
|
49
|
+
var toModelContent = (output) => `${output.existed ? "Wrote" : "Created"} file successfully: ${output.resource}`;
|
|
50
50
|
var Plugin = {
|
|
51
51
|
id: "opencode.tool.write",
|
|
52
52
|
effect: Effect.fn("WriteTool.Plugin")(function* (ctx) {
|
|
@@ -98,9 +98,9 @@ Use this tool to create new files or overwrite existing files. For partial chang
|
|
|
98
98
|
yield* exports_file_mutation.syncTextBom(environment.files, target.absolute, bom);
|
|
99
99
|
}
|
|
100
100
|
return result;
|
|
101
|
-
}).pipe(Effect.map((output) => ({ output, content:
|
|
101
|
+
}).pipe(Effect.map((output) => ({ output, content: toModelContent(output) })), Effect.mapError((error) => new ToolFailure({ message: `Unable to write ${input.path}`, error })))
|
|
102
102
|
})).pipe(Effect.orDie);
|
|
103
103
|
})
|
|
104
104
|
};
|
|
105
105
|
|
|
106
|
-
export { name, Input, Output,
|
|
106
|
+
export { name, Input, Output, toModelContent, Plugin, exports_write };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_select
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-bbhffenw.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_wildcard
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-y67x6rf6.js";
|
|
7
7
|
import {
|
|
8
8
|
__export,
|
|
9
9
|
__require
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./tool-rvfvac9x.js";
|
|
11
11
|
|
|
12
12
|
// src/shell/parse.ts
|
|
13
13
|
var exports_parse = {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/effect/websocket-constructor.ts
|
|
2
|
-
import {
|
|
2
|
+
import { NodeWS } from "@effect/platform-node/NodeSocket";
|
|
3
3
|
import { HttpProxyAgent } from "http-proxy-agent";
|
|
4
4
|
import { HttpsProxyAgent } from "https-proxy-agent";
|
|
5
5
|
import { Layer } from "effect";
|
|
@@ -60,7 +60,7 @@ var layer = Layer.succeed(Socket.WebSocketConstructor, (url, input) => {
|
|
|
60
60
|
agent: proxyAgent(url, selectedProxy),
|
|
61
61
|
followRedirects: false
|
|
62
62
|
};
|
|
63
|
-
const socket = config.protocols ? new
|
|
63
|
+
const socket = config.protocols ? new NodeWS.WebSocket(url, config.protocols, native) : new NodeWS.WebSocket(url, native);
|
|
64
64
|
return socket;
|
|
65
65
|
});
|
|
66
66
|
var WebSocketConstructor = { layer, proxy };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_model_resolver
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-pkezspgh.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-bjwj8hwv.js";
|
|
7
7
|
import {
|
|
8
8
|
ID,
|
|
9
9
|
Ref
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./tool-r13w8t0w.js";
|
|
11
11
|
import {
|
|
12
12
|
exports_provider
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./tool-krsqcmnj.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,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_tool
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-5z4zwtb4.js";
|
|
4
4
|
import {
|
|
5
5
|
definition,
|
|
6
6
|
execute,
|
|
7
7
|
normalizeContent
|
|
8
|
-
} from "./
|
|
9
|
-
import {
|
|
10
|
-
exports_image
|
|
11
|
-
} from "./project-86x1mnp7.js";
|
|
8
|
+
} from "./tool-drean1vx.js";
|
|
12
9
|
import {
|
|
13
10
|
exports_wildcard
|
|
14
|
-
} from "./
|
|
11
|
+
} from "./tool-y67x6rf6.js";
|
|
15
12
|
import {
|
|
16
13
|
exports_hooks
|
|
17
|
-
} from "./
|
|
14
|
+
} from "./tool-v2wshkax.js";
|
|
15
|
+
import {
|
|
16
|
+
exports_image
|
|
17
|
+
} from "./tool-s758z954.js";
|
|
18
18
|
import {
|
|
19
19
|
exports_state
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./tool-x89rah0x.js";
|
|
21
21
|
import {
|
|
22
22
|
__export
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./tool-rvfvac9x.js";
|
|
24
24
|
|
|
25
25
|
// src/tool.ts
|
|
26
26
|
var exports_tool2 = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
webSocketConstructor
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-393a352g.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-rvfvac9x.js";
|
|
7
7
|
|
|
8
8
|
// src/session/model-transport.ts
|
|
9
9
|
var exports_model_transport = {};
|
|
@@ -17,7 +17,7 @@ __export(exports_model_transport, {
|
|
|
17
17
|
import {
|
|
18
18
|
WebSocketTransport
|
|
19
19
|
} from "@opencode-ai/ai/route";
|
|
20
|
-
import { AIError,
|
|
20
|
+
import { AIError, AIErrorReason, TransportError } from "@opencode-ai/ai";
|
|
21
21
|
import { Hash } from "@opencode-ai/util/hash";
|
|
22
22
|
import { Cause, Clock, Context, Effect, Fiber, Layer, Metric, Queue, Scope, Semaphore, Stream } from "effect";
|
|
23
23
|
import { Socket } from "effect/unstable/socket";
|
|
@@ -33,25 +33,17 @@ var metric = (event, attributes = {}) => Metric.update(events.pipe(Metric.withAt
|
|
|
33
33
|
|
|
34
34
|
class Service extends Context.Service()("@opencode/SessionModelTransport") {
|
|
35
35
|
}
|
|
36
|
-
var transportError = (
|
|
37
|
-
|
|
38
|
-
method,
|
|
39
|
-
reason: new TransportReason({ message, transport: "websocket", ...input })
|
|
36
|
+
var transportError = (message, input) => new AIError({
|
|
37
|
+
reason: new TransportError({ message, transport: "websocket", ...input })
|
|
40
38
|
});
|
|
41
39
|
var annotate = (error, input) => {
|
|
42
40
|
if (error.reason._tag !== "Transport")
|
|
43
41
|
return error;
|
|
44
42
|
return new AIError({
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
transport: error.reason.transport,
|
|
50
|
-
operation: error.reason.operation,
|
|
51
|
-
code: error.reason.code,
|
|
52
|
-
url: error.reason.url,
|
|
53
|
-
http: error.reason.http,
|
|
54
|
-
recovery: error.reason.recovery,
|
|
43
|
+
reason: new TransportError({
|
|
44
|
+
...error.reason,
|
|
45
|
+
message: error.message,
|
|
46
|
+
cause: error.reason.cause,
|
|
55
47
|
...input
|
|
56
48
|
})
|
|
57
49
|
});
|
|
@@ -84,7 +76,7 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
84
76
|
yield* Fiber.interrupt(channel.reader);
|
|
85
77
|
yield* channel.connection.close;
|
|
86
78
|
if (channel.active)
|
|
87
|
-
Queue.failCauseUnsafe(channel.active.queue, Cause.fail(transportError("
|
|
79
|
+
Queue.failCauseUnsafe(channel.active.queue, Cause.fail(transportError("Session WebSocket closed", {
|
|
88
80
|
operation: "read",
|
|
89
81
|
code: "close",
|
|
90
82
|
phase: "close",
|
|
@@ -109,7 +101,7 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
109
101
|
const connection = yield* restore(connector.open(exchange.connect).pipe(Effect.withSpan("SessionModelTransport.connect")));
|
|
110
102
|
if (owner.closed) {
|
|
111
103
|
yield* connection.close;
|
|
112
|
-
return yield* transportError("
|
|
104
|
+
return yield* transportError("Session WebSocket owner closed while connecting", {
|
|
113
105
|
operation: "request",
|
|
114
106
|
code: "owner-closed",
|
|
115
107
|
phase: "connect",
|
|
@@ -127,7 +119,7 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
127
119
|
channel.reader = yield* connection.messages.pipe(Stream.runForEach((message) => Effect.gen(function* () {
|
|
128
120
|
const active = channel.active;
|
|
129
121
|
if (!active)
|
|
130
|
-
return yield* transportError("
|
|
122
|
+
return yield* transportError("WebSocket data arrived without an active exchange", {
|
|
131
123
|
url: exchange.connect.url,
|
|
132
124
|
operation: "read",
|
|
133
125
|
code: "idle-data",
|
|
@@ -135,7 +127,7 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
135
127
|
});
|
|
136
128
|
active.lifecycle.delivery = "provider-observed";
|
|
137
129
|
if (typeof message !== "string")
|
|
138
|
-
return yield* transportError("
|
|
130
|
+
return yield* transportError("Unsupported binary WebSocket frame", {
|
|
139
131
|
url: exchange.connect.url,
|
|
140
132
|
operation: "read",
|
|
141
133
|
code: "message",
|
|
@@ -143,7 +135,7 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
143
135
|
});
|
|
144
136
|
if (Queue.offerUnsafe(active.queue, message))
|
|
145
137
|
return;
|
|
146
|
-
return yield* transportError("
|
|
138
|
+
return yield* transportError("Session WebSocket inbound queue overflow", {
|
|
147
139
|
url: exchange.connect.url,
|
|
148
140
|
operation: "read",
|
|
149
141
|
code: "queue-overflow",
|
|
@@ -168,7 +160,7 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
168
160
|
});
|
|
169
161
|
const start = Effect.fn("SessionModelTransport.start")(function* (owner, exchange, lifecycle) {
|
|
170
162
|
if (owner.closed)
|
|
171
|
-
return yield* transportError("
|
|
163
|
+
return yield* transportError("Session WebSocket owner is closed", {
|
|
172
164
|
operation: "request",
|
|
173
165
|
code: "owner-closed",
|
|
174
166
|
phase: "queue",
|
|
@@ -220,7 +212,14 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
220
212
|
lifecycle.delivery = "send-attempted";
|
|
221
213
|
const sent = yield* channel.connection.sendText(create.message).pipe(Effect.withSpan("SessionModelTransport.send"), Effect.onInterrupt(() => closeChannel(owner, channel)), Effect.result);
|
|
222
214
|
if (sent._tag === "Failure") {
|
|
223
|
-
const failure =
|
|
215
|
+
const failure = new AIError({
|
|
216
|
+
reason: AIErrorReason.make({
|
|
217
|
+
...sent.failure.reason,
|
|
218
|
+
message: sent.failure.message,
|
|
219
|
+
cause: sent.failure.reason.cause,
|
|
220
|
+
http: sent.failure.reason.http ?? channel.connection.http
|
|
221
|
+
})
|
|
222
|
+
});
|
|
224
223
|
const notSent = failure.reason._tag === "Transport" && failure.reason.delivery === "not-sent";
|
|
225
224
|
yield* closeChannel(owner, channel);
|
|
226
225
|
if (notSent) {
|
|
@@ -236,7 +235,7 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
236
235
|
let staged;
|
|
237
236
|
const frames = Stream.fromQueue(active.queue).pipe(Stream.timeoutOrElse({
|
|
238
237
|
duration: IDLE_TIMEOUT,
|
|
239
|
-
orElse: () => Stream.fail(transportError("
|
|
238
|
+
orElse: () => Stream.fail(transportError("Timed out waiting for WebSocket data", {
|
|
240
239
|
url: exchange.connect.url,
|
|
241
240
|
operation: "read",
|
|
242
241
|
code: "idle-timeout",
|
|
@@ -269,13 +268,13 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
269
268
|
yield* metric("cancellation");
|
|
270
269
|
channel.checkpoint = undefined;
|
|
271
270
|
channel.pending = undefined;
|
|
272
|
-
const error = terminal ? transportError("
|
|
271
|
+
const error = terminal ? transportError("WebSocket data arrived after the terminal event", {
|
|
273
272
|
url: exchange.connect.url,
|
|
274
273
|
operation: "read",
|
|
275
274
|
code: "idle-data",
|
|
276
275
|
phase: "receive",
|
|
277
276
|
delivery: "accepted"
|
|
278
|
-
}) : transportError("
|
|
277
|
+
}) : transportError("Session WebSocket exchange did not reach a terminal event", {
|
|
279
278
|
url: exchange.connect.url,
|
|
280
279
|
operation: "read",
|
|
281
280
|
code: "incomplete",
|
|
@@ -300,18 +299,21 @@ var makeLayer = (connector) => Layer.effect(Service, Effect.gen(function* () {
|
|
|
300
299
|
channel.checkpoint = channel.pending.checkpoint;
|
|
301
300
|
channel.pending = undefined;
|
|
302
301
|
});
|
|
303
|
-
return { frames, complete };
|
|
302
|
+
return { frames, complete, http: channel.connection.http };
|
|
304
303
|
});
|
|
305
304
|
const bind = (sessionID) => ({
|
|
306
305
|
execute: (exchange) => {
|
|
307
306
|
const owner = state(sessionID);
|
|
308
307
|
const lifecycle = { delivery: "queued" };
|
|
309
|
-
let
|
|
308
|
+
let execution;
|
|
310
309
|
return Effect.succeed({
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
314
|
-
|
|
310
|
+
get http() {
|
|
311
|
+
return execution?.http;
|
|
312
|
+
},
|
|
313
|
+
frames: Stream.unwrap(Effect.acquireRelease(owner.lock.take(1), () => owner.lock.release(1), { interruptible: true }).pipe(Effect.andThen(start(owner, exchange, lifecycle)), Effect.tap((started) => Effect.sync(() => {
|
|
314
|
+
execution = started;
|
|
315
|
+
})), Effect.map((started) => started.frames))),
|
|
316
|
+
complete: Effect.suspend(() => execution?.complete ?? Effect.void)
|
|
315
317
|
});
|
|
316
318
|
}
|
|
317
319
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_state
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-x89rah0x.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_bus
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-8dndtydw.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./tool-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/agent.ts
|
|
12
12
|
var exports_agent = {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath,
|
|
3
3
|
RelativePath
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./tool-j07kk359.js";
|
|
5
5
|
import {
|
|
6
6
|
exports_keyed_mutex
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./tool-0kvmztkf.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./tool-rvfvac9x.js";
|
|
11
11
|
|
|
12
12
|
// src/git.ts
|
|
13
13
|
var exports_git = {};
|
|
@@ -251,19 +251,17 @@ var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
|
251
251
|
list(["diff-files", "--name-only", "-z", "--", input.scope]),
|
|
252
252
|
list(["ls-files", "--others", "--exclude-standard", "-z", "--", input.scope])
|
|
253
253
|
], { concurrency: 2 });
|
|
254
|
-
const candidates = Array.from(new Set([...tracked, ...untracked]));
|
|
254
|
+
const candidates = Array.from(new Set([...tracked, ...untracked])).map((file) => RelativePath.make(file));
|
|
255
255
|
if (!candidates.length)
|
|
256
256
|
return { skipped: [] };
|
|
257
|
-
const
|
|
258
|
-
|
|
259
|
-
}).pipe(Effect.orElseSucceed(() => ({ text: "", stderr: "" })))).text.split("\x00").filter(Boolean)) : new Set;
|
|
260
|
-
const allowed = candidates.filter((item) => !ignored2.has(item));
|
|
257
|
+
const excluded = input.ignores ? yield* ignored({ repository: input.ignores, paths: candidates }) : new Set;
|
|
258
|
+
const allowed = candidates.filter((item) => !excluded.has(item));
|
|
261
259
|
const maximum = input.maximumUntrackedFileBytes;
|
|
262
|
-
const skipped = maximum ? (yield* Effect.forEach(untracked.filter((item) => allowed.includes(item)), (item) => fs.stat(path.join(input.repository.worktree, item)).pipe(Effect.map((info) => info.type === "File" && Number(info.size) > maximum ? RelativePath.make(item) : undefined), Effect.orElseSucceed(() => {
|
|
260
|
+
const skipped = maximum ? (yield* Effect.forEach(untracked.filter((item) => allowed.includes(RelativePath.make(item))), (item) => fs.stat(path.join(input.repository.worktree, item)).pipe(Effect.map((info) => info.type === "File" && Number(info.size) > maximum ? RelativePath.make(item) : undefined), Effect.orElseSucceed(() => {
|
|
263
261
|
return;
|
|
264
262
|
})), { concurrency: 8 })).filter((item) => item !== undefined) : [];
|
|
265
|
-
const stage = allowed.filter((item) => !skipped.includes(
|
|
266
|
-
const remove = [...
|
|
263
|
+
const stage = allowed.filter((item) => !skipped.includes(item));
|
|
264
|
+
const remove = [...excluded, ...skipped];
|
|
267
265
|
if (remove.length)
|
|
268
266
|
yield* repositoryOperation("refresh", input.repository, ["rm", "--cached", "-f", "--ignore-unmatch", "--pathspec-from-file=-", "--pathspec-file-nul"], { stdin: remove.join("\x00") + "\x00" });
|
|
269
267
|
if (stage.length)
|