@opencode-ai/core 0.0.0-dev-18447 → 0.0.0-dev-18457
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/{persistent-pty-017jr2na.js → image-017jr2na.js} +2 -2
- package/dist/chunks/{persistent-pty-02dbfq60.js → image-02dbfq60.js} +1 -1
- package/dist/chunks/{persistent-pty-a9663bdg.js → image-0bdebe5v.js} +5 -5
- package/dist/chunks/{persistent-pty-0kvmztkf.js → image-0kvmztkf.js} +1 -1
- package/dist/chunks/{persistent-pty-ne337p1p.js → image-0sfzy8a2.js} +9 -9
- package/dist/chunks/{persistent-pty-qt1vkvn7.js → image-0yn0nwpw.js} +11 -11
- package/dist/chunks/{persistent-pty-hceyyyjn.js → image-10djfsk5.js} +11 -11
- package/dist/chunks/{persistent-pty-pgz3absj.js → image-11n102c7.js} +8 -8
- package/dist/chunks/{persistent-pty-15hpbjb6.js → image-15hpbjb6.js} +1 -1
- package/dist/chunks/{persistent-pty-18pv8fg3.js → image-18pv8fg3.js} +2 -2
- package/dist/chunks/{persistent-pty-g5a7cdqy.js → image-1fhebsf9.js} +10 -10
- package/dist/chunks/{persistent-pty-xgyvsd3w.js → image-1wr8td20.js} +6 -6
- package/dist/chunks/{persistent-pty-s15cbbkc.js → image-28x6cnnr.js} +9 -9
- package/dist/chunks/{persistent-pty-p91c1aq3.js → image-2d8mr7vn.js} +3 -3
- package/dist/chunks/{persistent-pty-s2npdhwj.js → image-2fgb979d.js} +14 -14
- package/dist/chunks/{persistent-pty-b09wcfam.js → image-2hhtx3gq.js} +8 -8
- package/dist/chunks/image-2k9hzznk.js +126 -0
- package/dist/chunks/{persistent-pty-2m0hgr65.js → image-2m0hgr65.js} +1 -1
- package/dist/chunks/{persistent-pty-2nmyybe0.js → image-2nmyybe0.js} +1 -1
- package/dist/chunks/{persistent-pty-2wds5nk3.js → image-2wds5nk3.js} +1 -1
- package/dist/chunks/{persistent-pty-mzp9df4w.js → image-2ybx6wv4.js} +3 -3
- package/dist/chunks/{persistent-pty-5mwdx0a3.js → image-32xyr547.js} +10 -11
- package/dist/chunks/{persistent-pty-arr2bwhb.js → image-38kjx9xx.js} +5 -5
- package/dist/chunks/{persistent-pty-393a352g.js → image-393a352g.js} +2 -2
- package/dist/chunks/{persistent-pty-x0x923v8.js → image-3ee4av8d.js} +6 -6
- package/dist/chunks/{persistent-pty-3g8vftxb.js → image-3g8vftxb.js} +2 -2
- package/dist/chunks/{persistent-pty-3qv8nf0b.js → image-3qv8nf0b.js} +1 -1
- package/dist/chunks/{persistent-pty-d8rw1g2b.js → image-3ree9rsd.js} +8 -8
- package/dist/chunks/{persistent-pty-vb5885k6.js → image-3t9acz0v.js} +6 -6
- package/dist/chunks/{persistent-pty-3thh6229.js → image-3thh6229.js} +2 -2
- package/dist/chunks/{persistent-pty-2dhm0s4r.js → image-40vgqq6s.js} +1 -1
- package/dist/chunks/{persistent-pty-3h476px9.js → image-44hrnpc0.js} +4 -4
- package/dist/chunks/{persistent-pty-xvjzb00f.js → image-4ag6zeqd.js} +11 -11
- package/dist/chunks/{persistent-pty-pd15nmck.js → image-4ktwyqe7.js} +7 -7
- package/dist/chunks/{persistent-pty-1ag913pn.js → image-4q25xkk6.js} +6 -6
- package/dist/chunks/{persistent-pty-ejvcsew2.js → image-4q4gv58a.js} +6 -6
- package/dist/chunks/{persistent-pty-4s2xwh5d.js → image-4s2xwh5d.js} +3 -3
- package/dist/chunks/{persistent-pty-4zzdwbaz.js → image-4zzdwbaz.js} +2 -2
- package/dist/chunks/{persistent-pty-50jxp3hw.js → image-50jxp3hw.js} +1 -1
- package/dist/chunks/{persistent-pty-5xvv0z5p.js → image-5200erqg.js} +153 -153
- package/dist/chunks/{persistent-pty-cahw3zvy.js → image-55njfc1f.js} +10 -10
- package/dist/chunks/{persistent-pty-57tzwnz4.js → image-57tzwnz4.js} +1 -1
- package/dist/chunks/{persistent-pty-58xdvehb.js → image-58xdvehb.js} +1 -1
- package/dist/chunks/{persistent-pty-5cdnkd94.js → image-5cdnkd94.js} +3 -3
- package/dist/chunks/{persistent-pty-5fe026tx.js → image-5fe026tx.js} +3 -3
- package/dist/chunks/{persistent-pty-xs5706te.js → image-5hq0kbb2.js} +3 -3
- package/dist/chunks/{persistent-pty-mz1efpb0.js → image-5hseqaj6.js} +8 -8
- package/dist/chunks/{persistent-pty-ttc79r1y.js → image-5q5255dj.js} +12 -12
- package/dist/chunks/{persistent-pty-5rs65q6p.js → image-5rs65q6p.js} +1 -1
- package/dist/chunks/{persistent-pty-5vcssjzn.js → image-5vcssjzn.js} +1 -1
- package/dist/chunks/{persistent-pty-cs903k8a.js → image-5yw73te1.js} +5 -5
- package/dist/chunks/{persistent-pty-5z4zwtb4.js → image-5z4zwtb4.js} +2 -2
- package/dist/chunks/{persistent-pty-5v86fwq8.js → image-6190sjwh.js} +9 -9
- package/dist/chunks/{persistent-pty-6272rtjg.js → image-6272rtjg.js} +1 -1
- package/dist/chunks/{persistent-pty-r51mka8x.js → image-67bec6qm.js} +4 -4
- package/dist/chunks/{persistent-pty-4703e0v8.js → image-69qrwdtn.js} +5 -5
- package/dist/chunks/{persistent-pty-1dfqx17w.js → image-6g6wn14j.js} +11 -11
- package/dist/chunks/{persistent-pty-6ky7rqk7.js → image-6ky7rqk7.js} +1 -1
- package/dist/chunks/{persistent-pty-7rz68ghz.js → image-6maxree4.js} +31 -31
- package/dist/chunks/{persistent-pty-6wkzvma0.js → image-6wkzvma0.js} +2 -2
- package/dist/chunks/{persistent-pty-bwv7b0tj.js → image-6x2vyh6t.js} +3 -3
- package/dist/chunks/{persistent-pty-75h1hfe2.js → image-75h1hfe2.js} +2 -2
- package/dist/chunks/{persistent-pty-p38fsgnn.js → image-77j9jw9p.js} +5 -5
- package/dist/chunks/{persistent-pty-yttrhae3.js → image-7b48rxmy.js} +6 -6
- package/dist/chunks/{persistent-pty-f7q7a28y.js → image-7ccgh94t.js} +6 -6
- package/dist/chunks/{persistent-pty-29r05n18.js → image-7fc06m7e.js} +4 -4
- package/dist/chunks/{persistent-pty-7gqqz1s8.js → image-7gqqz1s8.js} +1 -1
- package/dist/chunks/{persistent-pty-7khw64yh.js → image-7khw64yh.js} +1 -1
- package/dist/chunks/{persistent-pty-7mrpdsq5.js → image-7mrpdsq5.js} +1 -1
- package/dist/chunks/{persistent-pty-s9szm9ex.js → image-7pr6tbt6.js} +2 -2
- package/dist/chunks/{persistent-pty-7thnevmq.js → image-7thnevmq.js} +2 -2
- package/dist/chunks/{persistent-pty-7wcmqxrc.js → image-7wcmqxrc.js} +1 -1
- package/dist/chunks/{persistent-pty-wye4rw9m.js → image-8a7c359h.js} +13 -13
- package/dist/chunks/{persistent-pty-w0tbrswq.js → image-8ac17h25.js} +4 -4
- package/dist/chunks/{persistent-pty-sbejdffq.js → image-8p9nqbpx.js} +4 -4
- package/dist/chunks/{persistent-pty-8pngjawd.js → image-8pngjawd.js} +2 -2
- package/dist/chunks/{persistent-pty-8tv6syt7.js → image-8tv6syt7.js} +1 -1
- package/dist/chunks/{persistent-pty-3xkm9h0v.js → image-90h9pqka.js} +7 -7
- package/dist/chunks/{persistent-pty-58aqa1s8.js → image-949ft1y5.js} +2 -2
- package/dist/chunks/{persistent-pty-7hdnkpew.js → image-9e53fjvr.js} +5 -5
- package/dist/chunks/{persistent-pty-9f0rnpkn.js → image-9f0rnpkn.js} +1 -1
- package/dist/chunks/{persistent-pty-1q3kjqmv.js → image-9g68hbmg.js} +3 -3
- package/dist/chunks/{persistent-pty-9c2gzbb2.js → image-9k870wkv.js} +3 -3
- package/dist/chunks/{persistent-pty-690yns90.js → image-9ps69azq.js} +11 -11
- package/dist/chunks/{persistent-pty-zpvmt0s6.js → image-9y7bby4e.js} +5 -5
- package/dist/chunks/{persistent-pty-y58pzssg.js → image-a1c36992.js} +3 -3
- package/dist/chunks/{persistent-pty-nk0hzrbv.js → image-a6azsjpd.js} +9 -9
- package/dist/chunks/{persistent-pty-xa293h9w.js → image-a7tdx6k6.js} +2 -2
- package/dist/chunks/{persistent-pty-my8jc6xh.js → image-aja6frp0.js} +10 -10
- package/dist/chunks/{persistent-pty-ndpdgxaf.js → image-aq81d2k8.js} +35 -35
- package/dist/chunks/{persistent-pty-pyv7d7h3.js → image-atzz1m5r.js} +7 -7
- package/dist/chunks/{persistent-pty-awg5d31a.js → image-awg5d31a.js} +1 -1
- package/dist/chunks/image-b18qr5sn.js +304 -0
- package/dist/chunks/{persistent-pty-bbhffenw.js → image-bbhffenw.js} +3 -3
- package/dist/chunks/{persistent-pty-49j9ze6t.js → image-bftq80pv.js} +5 -5
- package/dist/chunks/{persistent-pty-bh1wr8rq.js → image-bh1wr8rq.js} +2 -2
- package/dist/chunks/{persistent-pty-bmknfyv0.js → image-bmknfyv0.js} +2 -2
- package/dist/chunks/{persistent-pty-byab506k.js → image-byab506k.js} +1 -1
- package/dist/chunks/{persistent-pty-pdqh5pmm.js → image-c4m569n3.js} +3 -3
- package/dist/chunks/{persistent-pty-c4wcb9vc.js → image-c4wcb9vc.js} +2 -2
- package/dist/chunks/{persistent-pty-1ek5x95t.js → image-c845nz40.js} +3 -3
- package/dist/chunks/{persistent-pty-c8ya26sa.js → image-c8ya26sa.js} +2 -2
- package/dist/chunks/{persistent-pty-9q9jrwsh.js → image-ccg6411k.js} +22 -22
- package/dist/chunks/{persistent-pty-y6vn1v9c.js → image-cejdbwa1.js} +4 -4
- package/dist/chunks/{persistent-pty-fj9mzd1e.js → image-cgnqf45y.js} +5 -5
- package/dist/chunks/{persistent-pty-tp3vwsdr.js → image-chz4wmbg.js} +14 -16
- package/dist/chunks/{persistent-pty-sz77k968.js → image-cq10z9wa.js} +2 -2
- package/dist/chunks/{persistent-pty-9apx6hyd.js → image-cs2sympd.js} +3 -3
- package/dist/chunks/{persistent-pty-v81rwca6.js → image-ctj4erah.js} +91 -91
- package/dist/chunks/{persistent-pty-r2qg7086.js → image-czj97zw4.js} +11 -11
- package/dist/chunks/{persistent-pty-d2gk9vpf.js → image-d2gk9vpf.js} +2 -2
- package/dist/chunks/{persistent-pty-60ak1zc3.js → image-d2mrm06k.js} +4 -4
- package/dist/chunks/{persistent-pty-pa9f0rzc.js → image-d2pz9c6t.js} +62 -62
- package/dist/chunks/{persistent-pty-d4h7vwhh.js → image-d4h7vwhh.js} +2 -2
- package/dist/chunks/{persistent-pty-j4x55qt5.js → image-dbvqqhw0.js} +12 -12
- package/dist/chunks/{persistent-pty-3b20b1y8.js → image-dd65bqth.js} +3 -3
- package/dist/chunks/{persistent-pty-dhphtf1x.js → image-dhphtf1x.js} +1 -1
- package/dist/chunks/{persistent-pty-b8ndhws8.js → image-dtsy0489.js} +2 -2
- package/dist/chunks/{persistent-pty-e1z9a0ts.js → image-e1z9a0ts.js} +2 -2
- package/dist/chunks/{persistent-pty-ay46cxa6.js → image-e4r6yds8.js} +3 -3
- package/dist/chunks/{persistent-pty-ec8vrfw5.js → image-ec8vrfw5.js} +1 -1
- package/dist/chunks/{persistent-pty-rvx401a0.js → image-ecft2zb7.js} +8 -8
- package/dist/chunks/{persistent-pty-eeta29b7.js → image-eeta29b7.js} +4 -4
- package/dist/chunks/{persistent-pty-h3n6hawk.js → image-ef0w08rb.js} +86 -84
- package/dist/chunks/{persistent-pty-2wpxfemg.js → image-eneq7qf9.js} +7 -7
- package/dist/chunks/{persistent-pty-enpg66yn.js → image-enpg66yn.js} +1 -1
- package/dist/chunks/{persistent-pty-e73gxcfa.js → image-f5mj56xc.js} +15 -15
- package/dist/chunks/{persistent-pty-f9wt0tjw.js → image-f9wt0tjw.js} +2 -2
- package/dist/chunks/{persistent-pty-fb7nfzf2.js → image-fb7nfzf2.js} +3 -3
- package/dist/chunks/{persistent-pty-fgyjabww.js → image-fgyjabww.js} +2 -2
- package/dist/chunks/{persistent-pty-fm8j5g0a.js → image-fm8j5g0a.js} +3 -3
- package/dist/chunks/{persistent-pty-2jfz2kd5.js → image-g1q3adeq.js} +4 -4
- package/dist/chunks/{persistent-pty-bm2k0xgy.js → image-g1y1bsae.js} +7 -7
- package/dist/chunks/{persistent-pty-61r9p3jr.js → image-g409hbyb.js} +3 -3
- package/dist/chunks/{persistent-pty-07b834b7.js → image-g6r9jz3q.js} +10 -10
- package/dist/chunks/{persistent-pty-gb1z7yet.js → image-gb1z7yet.js} +2 -2
- package/dist/chunks/{persistent-pty-gcay93cp.js → image-gcay93cp.js} +1 -1
- package/dist/chunks/{persistent-pty-gd2xppx8.js → image-gd2xppx8.js} +1 -1
- package/dist/chunks/{persistent-pty-kadg0arq.js → image-getpa8rr.js} +4 -4
- package/dist/chunks/{persistent-pty-apbx05rs.js → image-gh3hadh0.js} +7 -7
- package/dist/chunks/{persistent-pty-6j1yr417.js → image-gpkhgqxd.js} +3 -3
- package/dist/chunks/{persistent-pty-gpybhmhb.js → image-gpybhmhb.js} +3 -3
- package/dist/chunks/{persistent-pty-h12kt9pa.js → image-h12kt9pa.js} +2 -2
- package/dist/chunks/{persistent-pty-727y67fw.js → image-h35t92z5.js} +3 -3
- package/dist/chunks/{persistent-pty-h94zdhz8.js → image-h94zdhz8.js} +2 -2
- package/dist/chunks/{persistent-pty-hajywex7.js → image-hajywex7.js} +2 -2
- package/dist/chunks/{persistent-pty-hp6rpdnc.js → image-hp6rpdnc.js} +1 -1
- package/dist/chunks/{persistent-pty-nghgd2qz.js → image-htr3eq20.js} +7 -7
- package/dist/chunks/{persistent-pty-t5rzsd3w.js → image-hzp8ahqw.js} +5 -5
- package/dist/chunks/{persistent-pty-1gw1cv6r.js → image-j34s703g.js} +8 -8
- package/dist/chunks/{persistent-pty-4md9fmxa.js → image-janszmv4.js} +40 -40
- package/dist/chunks/{persistent-pty-1mjvrq4g.js → image-jv46v1d7.js} +6 -6
- package/dist/chunks/{persistent-pty-wjm57ety.js → image-k4p7ys6p.js} +2 -2
- package/dist/chunks/{persistent-pty-z7k26zb3.js → image-k8tf0mt1.js} +3 -3
- package/dist/chunks/{persistent-pty-tr3h36yr.js → image-ke2r4tg4.js} +4 -4
- package/dist/chunks/{persistent-pty-kg1345f7.js → image-kg1345f7.js} +1 -1
- package/dist/chunks/{persistent-pty-kgkfyy1j.js → image-kgkfyy1j.js} +2 -2
- package/dist/chunks/{persistent-pty-kp1t5rcy.js → image-kp1t5rcy.js} +1 -1
- package/dist/chunks/{persistent-pty-krsqcmnj.js → image-krsqcmnj.js} +1 -1
- package/dist/chunks/{persistent-pty-kt491qp2.js → image-kt491qp2.js} +3 -3
- package/dist/chunks/{persistent-pty-e8852y6g.js → image-kv45z39z.js} +11 -11
- package/dist/chunks/{persistent-pty-3yq2m7eq.js → image-m07hr0kj.js} +8 -8
- package/dist/chunks/{persistent-pty-awt2tm21.js → image-m0x1q5s4.js} +14 -14
- package/dist/chunks/{persistent-pty-nngpcyya.js → image-m2p7pk55.js} +4 -4
- package/dist/chunks/{persistent-pty-m55whf0h.js → image-m55whf0h.js} +2 -2
- package/dist/chunks/{persistent-pty-rbwmc1pf.js → image-mc7szt01.js} +5 -5
- package/dist/chunks/{persistent-pty-mf0hyk7z.js → image-mf0hyk7z.js} +1 -1
- package/dist/chunks/{persistent-pty-mnb85w6b.js → image-mnb85w6b.js} +2 -2
- package/dist/chunks/{persistent-pty-mxvw03gv.js → image-mxvw03gv.js} +1 -1
- package/dist/chunks/{persistent-pty-arsf0b3v.js → image-na3qwf01.js} +5 -5
- package/dist/chunks/{persistent-pty-x8cryhgj.js → image-nnhm94s6.js} +5 -5
- package/dist/chunks/{persistent-pty-nr76rjj3.js → image-nr76rjj3.js} +2 -2
- package/dist/chunks/{persistent-pty-gzq1m5d8.js → image-nxnabqnt.js} +4 -4
- package/dist/chunks/{persistent-pty-nzrjycs5.js → image-nzrjycs5.js} +1 -1
- package/dist/chunks/{persistent-pty-8d7f8x3r.js → image-pavf576v.js} +2 -2
- package/dist/chunks/{persistent-pty-pq4b4pqk.js → image-pq4b4pqk.js} +2 -2
- package/dist/chunks/{persistent-pty-mzkapc3f.js → image-q0ktq479.js} +3 -3
- package/dist/chunks/{persistent-pty-ntsgcs37.js → image-q1v4dkg3.js} +5 -5
- package/dist/chunks/{persistent-pty-q606pcse.js → image-q606pcse.js} +3 -3
- package/dist/chunks/{persistent-pty-q9b4qnv8.js → image-q9b4qnv8.js} +2 -2
- package/dist/chunks/{persistent-pty-keh8mzvj.js → image-qcpp6212.js} +3 -3
- package/dist/chunks/{persistent-pty-qe0d689s.js → image-qe0d689s.js} +2 -2
- package/dist/chunks/{persistent-pty-2zy6h53p.js → image-qq41rax2.js} +8 -8
- package/dist/chunks/{persistent-pty-thehea1s.js → image-qthy380g.js} +3 -3
- package/dist/chunks/{persistent-pty-e236t1rf.js → image-qzg8584d.js} +4 -4
- package/dist/chunks/{persistent-pty-r13w8t0w.js → image-r13w8t0w.js} +2 -2
- package/dist/chunks/{persistent-pty-r3k9abhd.js → image-r3k9abhd.js} +2 -2
- package/dist/chunks/{persistent-pty-0zgnb06m.js → image-r7jhf5tr.js} +2 -2
- package/dist/chunks/{persistent-pty-r9d3d23r.js → image-r9d3d23r.js} +1 -1
- package/dist/chunks/{persistent-pty-rahat93a.js → image-rahat93a.js} +1 -1
- package/dist/chunks/{persistent-pty-rameyvmv.js → image-rameyvmv.js} +1 -1
- package/dist/chunks/{persistent-pty-rbnp2c85.js → image-rbnp2c85.js} +3 -3
- package/dist/chunks/{persistent-pty-fd7r6j89.js → image-rwdkfmtk.js} +6 -6
- package/dist/chunks/{persistent-pty-s33fw6zm.js → image-s33fw6zm.js} +1 -1
- package/dist/chunks/{persistent-pty-cta6rrkd.js → image-sad9bgk7.js} +5 -5
- package/dist/chunks/{persistent-pty-ac1mjxg3.js → image-scs36c5c.js} +7 -7
- package/dist/chunks/{persistent-pty-16xg34f9.js → image-sgbtrv0k.js} +6 -6
- package/dist/chunks/{persistent-pty-6g9y9rk2.js → image-sj0h85nf.js} +11 -11
- package/dist/chunks/{persistent-pty-smpeg8c9.js → image-smpeg8c9.js} +2 -2
- package/dist/chunks/{persistent-pty-sw84ckhj.js → image-sw84ckhj.js} +1 -1
- package/dist/chunks/{persistent-pty-t0msbthe.js → image-t0msbthe.js} +3 -3
- package/dist/chunks/{persistent-pty-t14kykx1.js → image-t14kykx1.js} +1 -1
- package/dist/chunks/{persistent-pty-pxxgeymt.js → image-t5wc1efq.js} +6 -6
- package/dist/chunks/{persistent-pty-tcptxgyq.js → image-tcptxgyq.js} +1 -1
- package/dist/chunks/{persistent-pty-93fftb67.js → image-tczxwgj9.js} +9 -9
- package/dist/chunks/{persistent-pty-tgbb2ckq.js → image-tgbb2ckq.js} +2 -2
- package/dist/chunks/{persistent-pty-thstd87d.js → image-thstd87d.js} +1 -1
- package/dist/chunks/{persistent-pty-dhgmmyjm.js → image-tkk7h1wq.js} +5 -5
- package/dist/chunks/{persistent-pty-aeapwgdj.js → image-tpf20sdp.js} +9 -9
- package/dist/chunks/{persistent-pty-7c9ypzer.js → image-ttg6txgx.js} +23 -23
- package/dist/chunks/{persistent-pty-txw0c3p3.js → image-txw0c3p3.js} +2 -2
- package/dist/chunks/{persistent-pty-v2wshkax.js → image-v2wshkax.js} +1 -1
- package/dist/chunks/{persistent-pty-wr24dcv2.js → image-v3yfdn30.js} +4 -4
- package/dist/chunks/{persistent-pty-v80zsxnb.js → image-v80zsxnb.js} +1 -1
- package/dist/chunks/{persistent-pty-v972xay6.js → image-v972xay6.js} +1 -1
- package/dist/chunks/{persistent-pty-v9bfv94f.js → image-v9bfv94f.js} +1 -1
- package/dist/chunks/{persistent-pty-vcwr2vpf.js → image-vcwr2vpf.js} +1 -1
- package/dist/chunks/{persistent-pty-vqbmgfq1.js → image-vqbmgfq1.js} +3 -3
- package/dist/chunks/{persistent-pty-cf5kktd9.js → image-vx778pey.js} +4 -4
- package/dist/chunks/{persistent-pty-vz89hfgr.js → image-vz89hfgr.js} +1 -1
- package/dist/chunks/{persistent-pty-mwtba5rd.js → image-w6mnf4zw.js} +3 -3
- package/dist/chunks/{persistent-pty-j6wph3eb.js → image-wa4zx2mz.js} +3 -3
- package/dist/chunks/{persistent-pty-wbkt8qpj.js → image-wbkt8qpj.js} +1 -1
- package/dist/chunks/{persistent-pty-wd268jeg.js → image-wd268jeg.js} +1 -1
- package/dist/chunks/{persistent-pty-ja5mavxk.js → image-wdnj2v8h.js} +4 -4
- package/dist/chunks/{persistent-pty-8znhchna.js → image-wf63h199.js} +6 -6
- package/dist/chunks/{persistent-pty-whk0g8cz.js → image-whk0g8cz.js} +4 -4
- package/dist/chunks/{persistent-pty-mzdvtgsn.js → image-wm5p831z.js} +7 -7
- package/dist/chunks/{persistent-pty-wmxdh12w.js → image-wmxdh12w.js} +1 -1
- package/dist/chunks/{persistent-pty-wps8gh8n.js → image-wps8gh8n.js} +2 -2
- package/dist/chunks/{persistent-pty-w6dj4taz.js → image-wrhxpwb6.js} +11 -11
- package/dist/chunks/{persistent-pty-ntvyjk1e.js → image-wyafnjh5.js} +8 -8
- package/dist/chunks/{persistent-pty-53ktg071.js → image-x7xqg5pr.js} +30 -30
- package/dist/chunks/{persistent-pty-x89rah0x.js → image-x89rah0x.js} +1 -1
- package/dist/chunks/{persistent-pty-tyn9qgae.js → image-xb062x5w.js} +18 -18
- package/dist/chunks/{persistent-pty-xczfw7dq.js → image-xczfw7dq.js} +1 -1
- package/dist/chunks/{persistent-pty-xgv25zxy.js → image-xgv25zxy.js} +1 -1
- package/dist/chunks/{persistent-pty-xj0xhwdw.js → image-xj0xhwdw.js} +1 -1
- package/dist/chunks/{persistent-pty-50yj9am7.js → image-xk6wmhee.js} +3 -3
- package/dist/chunks/{persistent-pty-0qfz7ft6.js → image-xpfcyqf2.js} +5 -5
- package/dist/chunks/{persistent-pty-nf0yxc2f.js → image-xtr3kswt.js} +3 -3
- package/dist/chunks/{persistent-pty-8a4wpgdp.js → image-xwbcq578.js} +3 -3
- package/dist/chunks/{persistent-pty-xwftk1fd.js → image-xwftk1fd.js} +2 -2
- package/dist/chunks/{persistent-pty-xxpvz42q.js → image-xxpvz42q.js} +3 -3
- package/dist/chunks/{persistent-pty-y0x38cee.js → image-y0x38cee.js} +1 -1
- package/dist/chunks/{persistent-pty-y198y2ra.js → image-y198y2ra.js} +1 -1
- package/dist/chunks/{persistent-pty-ax43nnpc.js → image-y583a5xf.js} +4 -4
- package/dist/chunks/{persistent-pty-y67x6rf6.js → image-y67x6rf6.js} +1 -1
- package/dist/chunks/{persistent-pty-y980s7ka.js → image-y980s7ka.js} +3 -3
- package/dist/chunks/{persistent-pty-ybhfpy64.js → image-ybhfpy64.js} +2 -2
- package/dist/chunks/{persistent-pty-yf0knd5z.js → image-yf0knd5z.js} +2 -2
- package/dist/chunks/image-yzq8arma.js +187 -0
- package/dist/chunks/{persistent-pty-w4kvk903.js → image-z0n7aftt.js} +5 -5
- package/dist/chunks/{persistent-pty-cwtd0hw6.js → image-z7v42tvh.js} +8 -8
- package/dist/chunks/{persistent-pty-zbqqnp0n.js → image-zbqqnp0n.js} +1 -1
- package/dist/chunks/{persistent-pty-zdkg1k91.js → image-zdkg1k91.js} +1 -1
- package/dist/chunks/{persistent-pty-c1m3dzte.js → image-zfn64hz6.js} +6 -6
- package/dist/chunks/{persistent-pty-8bjq0q9d.js → image-zjf8s6qx.js} +58 -58
- package/dist/chunks/{persistent-pty-zxcy6vhn.js → image-zxcy6vhn.js} +1 -1
- package/dist/chunks/{persistent-pty-zxe9jjhn.js → image-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 +131 -130
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +117 -117
- package/dist/config/plugin/mcp.js +127 -127
- package/dist/config/plugin/policy.js +116 -116
- package/dist/config/plugin/provider.js +115 -115
- package/dist/config/plugin/reference.js +119 -119
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +109 -109
- package/dist/config/plugin/skill.js +139 -139
- package/dist/config/plugin/snapshot.js +117 -117
- package/dist/config/plugin/source.js +114 -114
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/variable.js +4 -4
- package/dist/config.js +113 -113
- package/dist/credential/sql.js +3 -3
- package/dist/credential.js +71 -71
- package/dist/database/database.js +65 -65
- package/dist/database/drizzle/effect-sqlite/driver.js +13 -13
- package/dist/database/drizzle/effect-sqlite/index.js +13 -13
- package/dist/database/drizzle/effect-sqlite/session.js +12 -12
- package/dist/database/drizzle/index.js +14 -14
- package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/index.js +18 -18
- package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/session.js +11 -11
- package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
- package/dist/database/drizzle.js +15 -15
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
- package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
- package/dist/database/migration/20260225215848_workspace.js +2 -2
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
- package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
- package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
- package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
- package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
- package/dist/database/migration/20260323234822_events.js +2 -2
- package/dist/database/migration/20260410174513_workspace-name.js +2 -2
- package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
- package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
- package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
- package/dist/database/migration/20260428004200_add_session_path.js +2 -2
- package/dist/database/migration/20260501142318_next_venus.js +2 -2
- package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
- package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
- package/dist/database/migration/20260510033149_session_usage.js +2 -2
- package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
- package/dist/database/migration/20260511173437_session-metadata.js +2 -2
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
- package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
- package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
- package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
- package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
- package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
- package/dist/database/migration/20260611035744_credential.js +2 -2
- package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
- package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
- package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
- package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
- package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
- package/dist/database/migration/20260812181746_session_inbox.js +2 -2
- package/dist/database/migration/20260812213948_worktree.js +2 -2
- package/dist/database/migration/20260819222447_session_viewed_state.js +2 -2
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +2 -2
- package/dist/database/migration.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- package/dist/database/path.js +3 -3
- package/dist/database/schema.gen.js +2 -2
- package/dist/database/schema.sql.js +2 -2
- package/dist/database/sqlite.bun.js +2 -2
- package/dist/database/sqlite.js +2 -2
- package/dist/database/sqlite.node.js +2 -2
- package/dist/database/sqlite.workerd.js +2 -2
- package/dist/database/v1-migration.bun.js +93 -93
- package/dist/database/v1-migration.js +2 -2
- package/dist/database/v1-migration.noop.js +1 -1
- package/dist/effect/app-node-builder.js +329 -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 +305 -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 +99 -98
- package/dist/form.js +69 -69
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +85 -85
- package/dist/generate.js +84 -84
- package/dist/git.js +5 -5
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
- package/dist/github-copilot/chat/get-response-metadata.js +2 -2
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
- package/dist/github-copilot/copilot-provider.js +18 -18
- package/dist/github-copilot/models.js +4 -4
- package/dist/github-copilot/openai-compatible-error.js +2 -2
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +2 -2
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
- package/dist/github-copilot/responses/openai-error.js +2 -2
- package/dist/github-copilot/responses/openai-responses-language-model.js +11 -11
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
- package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
- package/dist/github-copilot/responses/tool/file-search.js +2 -2
- package/dist/github-copilot/responses/tool/image-generation.js +2 -2
- package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
- package/dist/github-copilot/responses/tool/web-search.js +2 -2
- package/dist/id/id.js +2 -2
- package/dist/image/photon-wasm.bun.js +1 -1
- package/dist/image/photon-wasm.node.js +1 -1
- package/dist/image/photon-wasm.workerd.js +1 -1
- package/dist/image/photon.js +99 -98
- package/dist/image.js +99 -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 +329 -328
- package/dist/location.js +83 -83
- package/dist/mcp/client.js +92 -92
- package/dist/mcp/index.js +98 -98
- package/dist/mcp/instructions.js +130 -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 +81 -81
- package/dist/model.js +3 -3
- package/dist/models-dev.js +75 -75
- package/dist/oauth/page.js +2 -2
- package/dist/permission/saved.js +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 +73 -73
- package/dist/persistent-pty/pty-binding.js +2 -2
- package/dist/persistent-pty.js +73 -73
- package/dist/plugin/agent.js +107 -107
- package/dist/plugin/command.js +99 -99
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +172 -171
- package/dist/plugin/internal.js +299 -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 +123 -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 +158 -157
- package/dist/plugin/runtime.js +160 -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 +304 -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 +173 -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 +314 -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 +158 -157
- package/dist/session/execution.js +126 -126
- package/dist/session/generate-node.js +315 -314
- package/dist/session/generate.js +2 -2
- package/dist/session/history.js +94 -94
- package/dist/session/inbox.js +91 -91
- package/dist/session/info.js +92 -92
- package/dist/session/instruction-entry.js +90 -90
- package/dist/session/instruction-state.js +91 -91
- package/dist/session/instructions.js +102 -102
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +2 -2
- package/dist/session/model-request.js +140 -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 +321 -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 +149 -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 +315 -314
- package/dist/session/to-session-error.js +117 -117
- package/dist/session/transfer.js +160 -159
- package/dist/session/usage.js +2 -2
- package/dist/session.js +158 -157
- package/dist/shell/parse.js +6 -6
- package/dist/shell/parser-wasm.bun.js +1 -1
- package/dist/shell/parser-wasm.node.js +1 -1
- package/dist/shell/parser-wasm.workerd.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +4 -4
- package/dist/shell.js +99 -99
- package/dist/skill/discovery.js +3 -3
- package/dist/skill/instructions.js +108 -108
- package/dist/skill.js +107 -107
- package/dist/snapshot.js +85 -85
- package/dist/state.js +2 -2
- package/dist/tool/html-markdown.js +2 -2
- package/dist/tool/http-body.js +2 -2
- package/dist/tool/mcp.js +129 -128
- package/dist/tool/plugin/edit.js +116 -116
- package/dist/tool/plugin/file-diff.js +2 -2
- package/dist/tool/plugin/glob.js +119 -118
- package/dist/tool/plugin/grep.js +119 -118
- package/dist/tool/plugin/patch.js +116 -116
- package/dist/tool/plugin/question.js +108 -108
- package/dist/tool/plugin/read.js +122 -121
- package/dist/tool/plugin/shell.js +188 -187
- package/dist/tool/plugin/skill.js +108 -108
- package/dist/tool/plugin/subagent.js +185 -184
- package/dist/tool/plugin/webfetch.js +109 -109
- package/dist/tool/plugin/websearch.js +111 -111
- package/dist/tool/plugin/write.js +116 -116
- package/dist/tool/read-filesystem.js +99 -98
- package/dist/tool/runtime.js +2 -2
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +122 -121
- package/dist/types/filesystem/search.d.ts +1 -1
- package/dist/types/github-copilot/responses/openai-error.d.ts +1 -1
- package/dist/types/plugin/provider/azure.d.ts +3 -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/persistent-pty-4n4jgf0m.js +0 -119
- package/dist/chunks/persistent-pty-qasf1q66.js +0 -300
- /package/dist/chunks/{persistent-pty-0cgt0xh2.js → image-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{persistent-pty-0f48qthw.js → image-0f48qthw.js} +0 -0
- /package/dist/chunks/{persistent-pty-0zz82cjq.js → image-0zz82cjq.js} +0 -0
- /package/dist/chunks/{persistent-pty-1fb7bmpf.js → image-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{persistent-pty-1wcz8fvj.js → image-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{persistent-pty-29n7vfk2.js → image-29n7vfk2.js} +0 -0
- /package/dist/chunks/{persistent-pty-2qdx6zz3.js → image-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{persistent-pty-2xb0r1c6.js → image-2xb0r1c6.js} +0 -0
- /package/dist/chunks/{persistent-pty-39ktntah.js → image-39ktntah.js} +0 -0
- /package/dist/chunks/{persistent-pty-3g3rpp2x.js → image-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{persistent-pty-3p1bsa7m.js → image-3p1bsa7m.js} +0 -0
- /package/dist/chunks/{persistent-pty-3q6gbwmd.js → image-3q6gbwmd.js} +0 -0
- /package/dist/chunks/{persistent-pty-3w3ybtfd.js → image-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{persistent-pty-47ty4mvs.js → image-47ty4mvs.js} +0 -0
- /package/dist/chunks/{persistent-pty-4b2tz2m9.js → image-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{persistent-pty-5a5ch9ts.js → image-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{persistent-pty-5va1yh78.js → image-5va1yh78.js} +0 -0
- /package/dist/chunks/{persistent-pty-61ek4hj9.js → image-61ek4hj9.js} +0 -0
- /package/dist/chunks/{persistent-pty-69qrqpw0.js → image-69qrqpw0.js} +0 -0
- /package/dist/chunks/{persistent-pty-6zqxzw0a.js → image-6zqxzw0a.js} +0 -0
- /package/dist/chunks/{persistent-pty-7n9qwqk4.js → image-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{persistent-pty-8nn8kqcn.js → image-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{persistent-pty-8rpfd2h6.js → image-8rpfd2h6.js} +0 -0
- /package/dist/chunks/{persistent-pty-8sj3ajy5.js → image-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{persistent-pty-8w9tzfz1.js → image-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{persistent-pty-906y0b6d.js → image-906y0b6d.js} +0 -0
- /package/dist/chunks/{persistent-pty-9dct5xhx.js → image-9dct5xhx.js} +0 -0
- /package/dist/chunks/{persistent-pty-9sdtsapf.js → image-9sdtsapf.js} +0 -0
- /package/dist/chunks/{persistent-pty-a02svayp.js → image-a02svayp.js} +0 -0
- /package/dist/chunks/{persistent-pty-a83yvq99.js → image-a83yvq99.js} +0 -0
- /package/dist/chunks/{persistent-pty-a9vdgkgd.js → image-a9vdgkgd.js} +0 -0
- /package/dist/chunks/{persistent-pty-ayevdmef.js → image-ayevdmef.js} +0 -0
- /package/dist/chunks/{persistent-pty-b02txbh8.js → image-b02txbh8.js} +0 -0
- /package/dist/chunks/{persistent-pty-bbqs2y60.js → image-bbqs2y60.js} +0 -0
- /package/dist/chunks/{persistent-pty-bjwj8hwv.js → image-bjwj8hwv.js} +0 -0
- /package/dist/chunks/{persistent-pty-brsh5f65.js → image-brsh5f65.js} +0 -0
- /package/dist/chunks/{persistent-pty-bxdhjb3y.js → image-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{persistent-pty-c77ad0vh.js → image-c77ad0vh.js} +0 -0
- /package/dist/chunks/{persistent-pty-cm67rqy2.js → image-cm67rqy2.js} +0 -0
- /package/dist/chunks/{persistent-pty-df3v2q6j.js → image-df3v2q6j.js} +0 -0
- /package/dist/chunks/{persistent-pty-dhcq6c44.js → image-dhcq6c44.js} +0 -0
- /package/dist/chunks/{persistent-pty-dht5baf0.js → image-dht5baf0.js} +0 -0
- /package/dist/chunks/{persistent-pty-dkmkay92.js → image-dkmkay92.js} +0 -0
- /package/dist/chunks/{persistent-pty-drean1vx.js → image-drean1vx.js} +0 -0
- /package/dist/chunks/{persistent-pty-ehj9csmv.js → image-ehj9csmv.js} +0 -0
- /package/dist/chunks/{persistent-pty-em6xpscd.js → image-em6xpscd.js} +0 -0
- /package/dist/chunks/{persistent-pty-emmqknsm.js → image-emmqknsm.js} +0 -0
- /package/dist/chunks/{persistent-pty-ezs3tagn.js → image-ezs3tagn.js} +0 -0
- /package/dist/chunks/{persistent-pty-f14r7hfz.js → image-f14r7hfz.js} +0 -0
- /package/dist/chunks/{persistent-pty-f4cp4g4a.js → image-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{persistent-pty-faypg4r1.js → image-faypg4r1.js} +0 -0
- /package/dist/chunks/{persistent-pty-fgbfdq62.js → image-fgbfdq62.js} +0 -0
- /package/dist/chunks/{persistent-pty-gd5xeqc2.js → image-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{persistent-pty-ghm4673n.js → image-ghm4673n.js} +0 -0
- /package/dist/chunks/{persistent-pty-ghwjy7my.js → image-ghwjy7my.js} +0 -0
- /package/dist/chunks/{persistent-pty-gy500k2r.js → image-gy500k2r.js} +0 -0
- /package/dist/chunks/{persistent-pty-hzeg9cfr.js → image-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-j07kk359.js → image-j07kk359.js} +0 -0
- /package/dist/chunks/{persistent-pty-jqms80b0.js → image-jqms80b0.js} +0 -0
- /package/dist/chunks/{persistent-pty-jve7t217.js → image-jve7t217.js} +0 -0
- /package/dist/chunks/{persistent-pty-k3e42drn.js → image-k3e42drn.js} +0 -0
- /package/dist/chunks/{persistent-pty-k8b45nas.js → image-k8b45nas.js} +0 -0
- /package/dist/chunks/{persistent-pty-kcacmy5c.js → image-kcacmy5c.js} +0 -0
- /package/dist/chunks/{persistent-pty-kpdbz7gn.js → image-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{persistent-pty-kxy11nzk.js → image-kxy11nzk.js} +0 -0
- /package/dist/chunks/{persistent-pty-kyyqvx4s.js → image-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{persistent-pty-m8cbvarh.js → image-m8cbvarh.js} +0 -0
- /package/dist/chunks/{persistent-pty-ma60vzgv.js → image-ma60vzgv.js} +0 -0
- /package/dist/chunks/{persistent-pty-n3m50c2t.js → image-n3m50c2t.js} +0 -0
- /package/dist/chunks/{persistent-pty-nkm1m8dz.js → image-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{persistent-pty-nsc0c3zb.js → image-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{persistent-pty-qaarhjrp.js → image-qaarhjrp.js} +0 -0
- /package/dist/chunks/{persistent-pty-qc167nrn.js → image-qc167nrn.js} +0 -0
- /package/dist/chunks/{persistent-pty-qp95y4jb.js → image-qp95y4jb.js} +0 -0
- /package/dist/chunks/{persistent-pty-r8f4w671.js → image-r8f4w671.js} +0 -0
- /package/dist/chunks/{persistent-pty-rdfev9jy.js → image-rdfev9jy.js} +0 -0
- /package/dist/chunks/{persistent-pty-rvfvac9x.js → image-rvfvac9x.js} +0 -0
- /package/dist/chunks/{persistent-pty-s7whb9gt.js → image-s7whb9gt.js} +0 -0
- /package/dist/chunks/{persistent-pty-se76j685.js → image-se76j685.js} +0 -0
- /package/dist/chunks/{persistent-pty-sem2g21k.js → image-sem2g21k.js} +0 -0
- /package/dist/chunks/{persistent-pty-sp575ygv.js → image-sp575ygv.js} +0 -0
- /package/dist/chunks/{persistent-pty-tmb1f636.js → image-tmb1f636.js} +0 -0
- /package/dist/chunks/{persistent-pty-ttxf0gsy.js → image-ttxf0gsy.js} +0 -0
- /package/dist/chunks/{persistent-pty-tvmhrvfj.js → image-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{persistent-pty-v2adqbbe.js → image-v2adqbbe.js} +0 -0
- /package/dist/chunks/{persistent-pty-wj4sxzqa.js → image-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{persistent-pty-wwntjmk1.js → image-wwntjmk1.js} +0 -0
- /package/dist/chunks/{persistent-pty-wyqjaaa5.js → image-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{persistent-pty-x4q807cx.js → image-x4q807cx.js} +0 -0
- /package/dist/chunks/{persistent-pty-xt0068v8.js → image-xt0068v8.js} +0 -0
- /package/dist/chunks/{persistent-pty-yrqrg4vp.js → image-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{persistent-pty-z47nswr2.js → image-z47nswr2.js} +0 -0
- /package/dist/chunks/{persistent-pty-zsf8rs93.js → image-zsf8rs93.js} +0 -0
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
iife
|
|
3
|
-
} from "./persistent-pty-ehj9csmv.js";
|
|
4
|
-
import {
|
|
5
|
-
configuredSettings
|
|
6
|
-
} from "./persistent-pty-arsf0b3v.js";
|
|
7
|
-
import {
|
|
8
|
-
exports_provider
|
|
9
|
-
} from "./persistent-pty-krsqcmnj.js";
|
|
10
|
-
import {
|
|
11
|
-
__require
|
|
12
|
-
} from "./persistent-pty-rvfvac9x.js";
|
|
13
|
-
|
|
14
|
-
// src/plugin/provider/azure.ts
|
|
15
|
-
import { Effect } from "effect";
|
|
16
|
-
import { define } from "@opencode-ai/plugin/effect/plugin";
|
|
17
|
-
import { Form } from "@opencode-ai/schema/form";
|
|
18
|
-
function selectLanguage(sdk, modelID, useChat) {
|
|
19
|
-
if (useChat && sdk.chat)
|
|
20
|
-
return sdk.chat(modelID);
|
|
21
|
-
if (sdk.responses)
|
|
22
|
-
return sdk.responses(modelID);
|
|
23
|
-
if (sdk.messages)
|
|
24
|
-
return sdk.messages(modelID);
|
|
25
|
-
if (sdk.chat)
|
|
26
|
-
return sdk.chat(modelID);
|
|
27
|
-
return sdk.languageModel(modelID);
|
|
28
|
-
}
|
|
29
|
-
var AzurePlugin = define({
|
|
30
|
-
id: "opencode.provider.azure",
|
|
31
|
-
effect: Effect.fn(function* (ctx) {
|
|
32
|
-
const configured = yield* configuredSettings(exports_provider.ID.azure);
|
|
33
|
-
const form = iife(() => {
|
|
34
|
-
if (resolveResourceName(configured) || typeof configured?.baseURL === "string")
|
|
35
|
-
return;
|
|
36
|
-
return Form.Fields.make([
|
|
37
|
-
{
|
|
38
|
-
type: "string",
|
|
39
|
-
key: "resourceName",
|
|
40
|
-
title: "Enter Azure Resource Name",
|
|
41
|
-
placeholder: "e.g. my-models",
|
|
42
|
-
required: true
|
|
43
|
-
}
|
|
44
|
-
]);
|
|
45
|
-
});
|
|
46
|
-
yield* ctx.integration.transform((draft) => {
|
|
47
|
-
draft.method.update({
|
|
48
|
-
integrationID: exports_provider.ID.azure,
|
|
49
|
-
method: {
|
|
50
|
-
type: "key",
|
|
51
|
-
label: "API key",
|
|
52
|
-
form
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
yield* ctx.catalog.transform((evt) => {
|
|
57
|
-
for (const item of evt.provider.list()) {
|
|
58
|
-
if (item.provider.id !== exports_provider.ID.azure && exports_provider.packageName(item.provider.package) !== "@ai-sdk/azure")
|
|
59
|
-
continue;
|
|
60
|
-
const resourceName = resolveResourceName(item.provider.settings);
|
|
61
|
-
if (resourceName)
|
|
62
|
-
evt.provider.update(item.provider.id, (provider) => {
|
|
63
|
-
provider.settings = {
|
|
64
|
-
...provider.settings,
|
|
65
|
-
resourceName,
|
|
66
|
-
...typeof provider.settings?.baseURL === "string" ? { baseURL: expandResourceName(provider.settings.baseURL, resourceName) } : {}
|
|
67
|
-
};
|
|
68
|
-
});
|
|
69
|
-
for (const model of item.models.values()) {
|
|
70
|
-
evt.model.update(item.provider.id, model.id, (draft) => {
|
|
71
|
-
if (resourceName && typeof draft.settings?.baseURL === "string")
|
|
72
|
-
draft.settings.baseURL = expandResourceName(draft.settings.baseURL, resolveResourceName(draft.settings, resourceName) ?? resourceName);
|
|
73
|
-
if (responsesWebSocketCapable(item.provider, draft))
|
|
74
|
-
draft.capabilities.responsesWebsockets = true;
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
80
|
-
if (evt.package !== "@ai-sdk/azure")
|
|
81
|
-
return;
|
|
82
|
-
if (evt.model.providerID === exports_provider.ID.azure) {
|
|
83
|
-
if (!evt.options.resourceName && !evt.options.baseURL && (!exports_provider.isAISDK(evt.model.package) || typeof evt.model.settings?.baseURL !== "string")) {
|
|
84
|
-
throw new Error("Azure resource name is missing; set AZURE_RESOURCE_NAME or configure resourceName/baseURL");
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
const mod = yield* Effect.promise(() => import("@ai-sdk/azure"));
|
|
88
|
-
evt.sdk = mod.createAzure(evt.options);
|
|
89
|
-
}));
|
|
90
|
-
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
91
|
-
if (evt.model.providerID !== exports_provider.ID.azure)
|
|
92
|
-
return;
|
|
93
|
-
evt.language = selectLanguage(evt.sdk, evt.model.modelID ?? evt.model.id, Boolean(evt.options.useCompletionUrls));
|
|
94
|
-
}));
|
|
95
|
-
})
|
|
96
|
-
});
|
|
97
|
-
function resolveResourceName(settings, fallback) {
|
|
98
|
-
const configured = settings?.resourceName;
|
|
99
|
-
if (typeof configured === "string" && configured.trim() !== "")
|
|
100
|
-
return configured;
|
|
101
|
-
return fallback ?? process.env.AZURE_RESOURCE_NAME ?? process.env.AZURE_COGNITIVE_SERVICES_RESOURCE_NAME;
|
|
102
|
-
}
|
|
103
|
-
function expandResourceName(baseURL, resourceName) {
|
|
104
|
-
return baseURL.replaceAll("${AZURE_RESOURCE_NAME}", resourceName).replaceAll("${AZURE_COGNITIVE_SERVICES_RESOURCE_NAME}", resourceName);
|
|
105
|
-
}
|
|
106
|
-
function responsesWebSocketCapable(provider, model) {
|
|
107
|
-
if (exports_provider.packageName(model.package ?? provider.package) !== "@ai-sdk/azure")
|
|
108
|
-
return false;
|
|
109
|
-
const settings = exports_provider.mergeOverlay(provider.settings, model.settings);
|
|
110
|
-
if (settings?.useCompletionUrls === true || settings?.useDeploymentBasedUrls === true)
|
|
111
|
-
return false;
|
|
112
|
-
if (settings?.apiVersion !== undefined && settings.apiVersion !== "v1")
|
|
113
|
-
return false;
|
|
114
|
-
if (typeof settings?.baseURL !== "string")
|
|
115
|
-
return true;
|
|
116
|
-
return /^https:\/\/[^/]+\.openai\.azure\.com(?:\/|$)/i.test(settings.baseURL);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export { AzurePlugin };
|
|
@@ -1,300 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
exports_protected
|
|
3
|
-
} from "./persistent-pty-kg1345f7.js";
|
|
4
|
-
import {
|
|
5
|
-
exports_ripgrep
|
|
6
|
-
} from "./persistent-pty-2jfz2kd5.js";
|
|
7
|
-
import {
|
|
8
|
-
exports_location
|
|
9
|
-
} from "./persistent-pty-b8ndhws8.js";
|
|
10
|
-
import {
|
|
11
|
-
PositiveInt,
|
|
12
|
-
RelativePath
|
|
13
|
-
} from "./persistent-pty-j07kk359.js";
|
|
14
|
-
import {
|
|
15
|
-
__export
|
|
16
|
-
} from "./persistent-pty-rvfvac9x.js";
|
|
17
|
-
|
|
18
|
-
// src/filesystem/search.ts
|
|
19
|
-
var exports_search = {};
|
|
20
|
-
__export(exports_search, {
|
|
21
|
-
ripgrepLayer: () => ripgrepLayer,
|
|
22
|
-
node: () => node2,
|
|
23
|
-
layer: () => layer,
|
|
24
|
-
fffLayer: () => fffLayer,
|
|
25
|
-
configured: () => configured,
|
|
26
|
-
Service: () => Service2,
|
|
27
|
-
Options: () => Options,
|
|
28
|
-
FileSystemSearch: () => exports_search
|
|
29
|
-
});
|
|
30
|
-
import { makeLocationNode as makeLocationNode2 } from "@opencode-ai/util/effect/app-node";
|
|
31
|
-
import path2 from "path";
|
|
32
|
-
import { Clock, Context as Context2, Deferred, Duration, Effect as Effect2, Layer as Layer2, Schema as Schema2, Scope } from "effect";
|
|
33
|
-
import { Fff } from "#fff";
|
|
34
|
-
import fuzzysort from "fuzzysort";
|
|
35
|
-
|
|
36
|
-
// src/filesystem.ts
|
|
37
|
-
var exports_filesystem = {};
|
|
38
|
-
__export(exports_filesystem, {
|
|
39
|
-
node: () => node,
|
|
40
|
-
Submatch: () => Submatch,
|
|
41
|
-
Service: () => Service,
|
|
42
|
-
ReadInput: () => ReadInput,
|
|
43
|
-
Match: () => Match,
|
|
44
|
-
ListInput: () => ListInput,
|
|
45
|
-
GrepInput: () => GrepInput,
|
|
46
|
-
GlobInput: () => GlobInput,
|
|
47
|
-
FindInput: () => FindInput,
|
|
48
|
-
FileSystem: () => exports_filesystem,
|
|
49
|
-
Event: () => Event,
|
|
50
|
-
Entry: () => Entry2,
|
|
51
|
-
DEFAULT_SEARCH_TIMEOUT_MS: () => DEFAULT_SEARCH_TIMEOUT_MS,
|
|
52
|
-
DEFAULT_SEARCH_LIMIT: () => DEFAULT_SEARCH_LIMIT,
|
|
53
|
-
Content: () => Content
|
|
54
|
-
});
|
|
55
|
-
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
56
|
-
import path from "path";
|
|
57
|
-
import { Context, Effect, Layer, Schema } from "effect";
|
|
58
|
-
import { FSUtil } from "@opencode-ai/util/fs-util";
|
|
59
|
-
import { Entry, FileSystem, FindInput } from "@opencode-ai/schema/filesystem";
|
|
60
|
-
import { Entry as Entry2, Match, Submatch } from "@opencode-ai/schema/filesystem";
|
|
61
|
-
var ReadInput = Schema.Struct({
|
|
62
|
-
path: RelativePath
|
|
63
|
-
});
|
|
64
|
-
var Content = Schema.Struct({
|
|
65
|
-
uri: Schema.String,
|
|
66
|
-
name: Schema.String.pipe(Schema.optional),
|
|
67
|
-
content: Schema.String,
|
|
68
|
-
encoding: Schema.Literals(["utf8", "base64"]),
|
|
69
|
-
mime: Schema.String
|
|
70
|
-
}).annotate({ identifier: "FileSystem.Content" });
|
|
71
|
-
var ListInput = Schema.Struct({
|
|
72
|
-
path: RelativePath.pipe(Schema.optional)
|
|
73
|
-
});
|
|
74
|
-
var DEFAULT_SEARCH_LIMIT = 100;
|
|
75
|
-
var DEFAULT_SEARCH_TIMEOUT_MS = 30000;
|
|
76
|
-
|
|
77
|
-
class GlobInput extends Schema.Class("FileSystem.GlobInput")({
|
|
78
|
-
pattern: Schema.String,
|
|
79
|
-
path: Schema.optionalKey(RelativePath),
|
|
80
|
-
limit: Schema.optionalKey(PositiveInt)
|
|
81
|
-
}) {
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
class GrepInput extends Schema.Class("FileSystem.GrepInput")({
|
|
85
|
-
pattern: Schema.String,
|
|
86
|
-
path: Schema.optionalKey(RelativePath),
|
|
87
|
-
include: Schema.optionalKey(Schema.String),
|
|
88
|
-
limit: Schema.optionalKey(PositiveInt)
|
|
89
|
-
}) {
|
|
90
|
-
}
|
|
91
|
-
var Event = FileSystem.Event;
|
|
92
|
-
|
|
93
|
-
class Service extends Context.Service()("@opencode/FileSystem") {
|
|
94
|
-
}
|
|
95
|
-
var baseLayer = Layer.effect(Service, Effect.gen(function* () {
|
|
96
|
-
const fs = yield* FSUtil.Service;
|
|
97
|
-
const location = yield* exports_location.Service;
|
|
98
|
-
const search = yield* exports_search.Service;
|
|
99
|
-
const root = location.workspaceID ? location.directory : yield* fs.realPath(location.directory).pipe(Effect.orDie);
|
|
100
|
-
const resolve = Effect.fnUntraced(function* (input) {
|
|
101
|
-
const absolute = path.resolve(location.directory, input ?? ".");
|
|
102
|
-
if (!FSUtil.contains(location.directory, absolute))
|
|
103
|
-
return yield* Effect.die(new Error("Path escapes the location"));
|
|
104
|
-
const real = yield* fs.realPath(absolute).pipe(Effect.orDie);
|
|
105
|
-
if (!FSUtil.contains(root, real))
|
|
106
|
-
return yield* Effect.die(new Error("Path escapes the location"));
|
|
107
|
-
return { absolute, real, directory: location.directory };
|
|
108
|
-
});
|
|
109
|
-
return Service.of({
|
|
110
|
-
find: search.find,
|
|
111
|
-
read: Effect.fn("FileSystem.read")(function* (input) {
|
|
112
|
-
const target = yield* resolve(input.path);
|
|
113
|
-
const info = yield* fs.stat(target.real).pipe(Effect.orDie);
|
|
114
|
-
if (info.type !== "File")
|
|
115
|
-
return yield* Effect.die(new Error("Path is not a file"));
|
|
116
|
-
return {
|
|
117
|
-
content: yield* fs.readFile(target.real).pipe(Effect.orDie),
|
|
118
|
-
mime: FSUtil.mimeType(target.real)
|
|
119
|
-
};
|
|
120
|
-
}),
|
|
121
|
-
list: Effect.fn("FileSystem.list")(function* (input = {}) {
|
|
122
|
-
const target = yield* resolve(input.path);
|
|
123
|
-
const info = yield* fs.stat(target.real).pipe(Effect.orDie);
|
|
124
|
-
if (info.type !== "Directory")
|
|
125
|
-
return yield* Effect.die(new Error("Path is not a directory"));
|
|
126
|
-
return yield* fs.readDirectoryEntries(target.real).pipe(Effect.orDie, Effect.map((items) => items.flatMap((item) => {
|
|
127
|
-
if (item.type !== "file" && item.type !== "directory")
|
|
128
|
-
return [];
|
|
129
|
-
const absolute = path.join(target.absolute, item.name);
|
|
130
|
-
const relative = path.relative(target.directory, absolute);
|
|
131
|
-
return [
|
|
132
|
-
Entry.make({
|
|
133
|
-
path: RelativePath.make(relative + (item.type === "directory" ? path.sep : "")),
|
|
134
|
-
type: item.type
|
|
135
|
-
})
|
|
136
|
-
];
|
|
137
|
-
}).sort((a, b) => a.type === b.type ? a.path.localeCompare(b.path) : a.type === "directory" ? -1 : 1)));
|
|
138
|
-
})
|
|
139
|
-
});
|
|
140
|
-
}));
|
|
141
|
-
var node = makeLocationNode({
|
|
142
|
-
service: Service,
|
|
143
|
-
layer: baseLayer,
|
|
144
|
-
deps: [FSUtil.node, exports_location.node, exports_search.node]
|
|
145
|
-
});
|
|
146
|
-
|
|
147
|
-
// src/filesystem/search.ts
|
|
148
|
-
var Options = Schema2.Struct({
|
|
149
|
-
fff: Schema2.optional(Schema2.Boolean)
|
|
150
|
-
});
|
|
151
|
-
|
|
152
|
-
class Service2 extends Context2.Service()("@opencode/FileSystem/Search") {
|
|
153
|
-
}
|
|
154
|
-
var REFRESH_INTERVAL = Duration.toMillis("10 seconds");
|
|
155
|
-
function emptyIndex() {
|
|
156
|
-
return { files: new Map, directories: new Map };
|
|
157
|
-
}
|
|
158
|
-
function search(index, input) {
|
|
159
|
-
const items = input.type === "file" ? Array.from(index.files.values()) : input.type === "directory" ? Array.from(index.directories.values()) : [...index.files.values(), ...index.directories.values()];
|
|
160
|
-
const result = fuzzysort.go(input.query, items, { limit: input.limit ?? 50 });
|
|
161
|
-
fuzzysort.cleanup();
|
|
162
|
-
return result.map((item) => {
|
|
163
|
-
const relative = item.target;
|
|
164
|
-
const type = relative.endsWith(path2.sep) ? "directory" : "file";
|
|
165
|
-
return exports_filesystem.Entry.make({
|
|
166
|
-
path: RelativePath.make(relative),
|
|
167
|
-
type
|
|
168
|
-
});
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
var ripgrepLayer = Layer2.effect(Service2, Effect2.gen(function* () {
|
|
172
|
-
const location = yield* exports_location.Service;
|
|
173
|
-
const ripgrep = yield* exports_ripgrep.Service;
|
|
174
|
-
const scope = yield* Scope.Scope;
|
|
175
|
-
const clock = yield* Clock.Clock;
|
|
176
|
-
const home = exports_protected.isHome(location.directory);
|
|
177
|
-
let index = emptyIndex();
|
|
178
|
-
let initialized = false;
|
|
179
|
-
let settledAt = Number.NEGATIVE_INFINITY;
|
|
180
|
-
let refreshing;
|
|
181
|
-
const scan = Effect2.gen(function* () {
|
|
182
|
-
const next = emptyIndex();
|
|
183
|
-
const previous = index;
|
|
184
|
-
if (!initialized)
|
|
185
|
-
index = next;
|
|
186
|
-
yield* ripgrep.find({
|
|
187
|
-
cwd: location.directory,
|
|
188
|
-
pattern: "*",
|
|
189
|
-
limit: location.vcs && !home ? Number.MAX_SAFE_INTEGER : 1e5,
|
|
190
|
-
exclude: home ? [...exports_protected.names()].map((name) => `${name}/**`) : undefined,
|
|
191
|
-
onEntry: (entry) => Effect2.sync(() => {
|
|
192
|
-
next.files.set(entry.path, previous.files.get(entry.path) ?? fuzzysort.prepare(entry.path));
|
|
193
|
-
const parts = entry.path.split("/");
|
|
194
|
-
parts.slice(0, -1).forEach((_, offset) => {
|
|
195
|
-
const directory = parts.slice(0, offset + 1).join("/") + path2.sep;
|
|
196
|
-
if (!next.directories.has(directory))
|
|
197
|
-
next.directories.set(directory, previous.directories.get(directory) ?? fuzzysort.prepare(directory));
|
|
198
|
-
});
|
|
199
|
-
})
|
|
200
|
-
});
|
|
201
|
-
index = next;
|
|
202
|
-
initialized = true;
|
|
203
|
-
}).pipe(Effect2.orDie);
|
|
204
|
-
const refresh = Effect2.suspend(() => {
|
|
205
|
-
if (refreshing)
|
|
206
|
-
return initialized ? Effect2.void : Deferred.await(refreshing);
|
|
207
|
-
if (initialized && clock.currentTimeMillisUnsafe() < settledAt + REFRESH_INTERVAL)
|
|
208
|
-
return Effect2.void;
|
|
209
|
-
const attempt = Deferred.makeUnsafe();
|
|
210
|
-
refreshing = attempt;
|
|
211
|
-
return scan.pipe(Effect2.onExit((exit) => Effect2.sync(() => {
|
|
212
|
-
settledAt = clock.currentTimeMillisUnsafe();
|
|
213
|
-
if (refreshing === attempt)
|
|
214
|
-
refreshing = undefined;
|
|
215
|
-
Deferred.doneUnsafe(attempt, exit);
|
|
216
|
-
})), Effect2.forkIn(scope), Effect2.flatMap(() => initialized ? Effect2.void : Deferred.await(attempt)));
|
|
217
|
-
});
|
|
218
|
-
return Service2.of({
|
|
219
|
-
find: (input) => Effect2.gen(function* () {
|
|
220
|
-
yield* refresh;
|
|
221
|
-
return search(index, input);
|
|
222
|
-
})
|
|
223
|
-
});
|
|
224
|
-
}));
|
|
225
|
-
var fffLayer = Layer2.effect(Service2, Effect2.gen(function* () {
|
|
226
|
-
const location = yield* exports_location.Service;
|
|
227
|
-
const result = yield* Effect2.try({
|
|
228
|
-
try: () => Fff.create({
|
|
229
|
-
basePath: location.directory,
|
|
230
|
-
aiMode: true,
|
|
231
|
-
disableMmapCache: true,
|
|
232
|
-
disableContentIndexing: true
|
|
233
|
-
}),
|
|
234
|
-
catch: (cause) => cause
|
|
235
|
-
}).pipe(Effect2.catch((error) => Effect2.logWarning("failed to initialize fff", { error }).pipe(Effect2.as(undefined))));
|
|
236
|
-
if (!result?.ok) {
|
|
237
|
-
if (result)
|
|
238
|
-
yield* Effect2.logWarning("failed to initialize fff", { error: result.error });
|
|
239
|
-
return Service2.of({
|
|
240
|
-
find: () => Effect2.succeed([])
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
yield* Effect2.addFinalizer(() => Effect2.sync(() => result.value.destroy()).pipe(Effect2.ignore));
|
|
244
|
-
return Service2.of({
|
|
245
|
-
find: (input) => Effect2.sync(() => {
|
|
246
|
-
const options = { pageIndex: 0, pageSize: input.limit ?? 50 };
|
|
247
|
-
const items = (() => {
|
|
248
|
-
if (input.type === "file") {
|
|
249
|
-
const found2 = result.value.fileSearch(input.query.trim(), options);
|
|
250
|
-
if (!found2.ok)
|
|
251
|
-
throw found2.error;
|
|
252
|
-
return found2.value.items.map((item, index) => ({
|
|
253
|
-
path: item.relativePath,
|
|
254
|
-
type: "file",
|
|
255
|
-
score: found2.value.scores[index]?.total ?? 0
|
|
256
|
-
}));
|
|
257
|
-
}
|
|
258
|
-
if (input.type === "directory") {
|
|
259
|
-
const found2 = result.value.directorySearch(input.query.trim(), options);
|
|
260
|
-
if (!found2.ok)
|
|
261
|
-
throw found2.error;
|
|
262
|
-
return found2.value.items.map((item, index) => ({
|
|
263
|
-
path: item.relativePath,
|
|
264
|
-
type: "directory",
|
|
265
|
-
score: found2.value.scores[index]?.total ?? 0
|
|
266
|
-
}));
|
|
267
|
-
}
|
|
268
|
-
const found = result.value.mixedSearch(input.query.trim(), options);
|
|
269
|
-
if (!found.ok)
|
|
270
|
-
throw found.error;
|
|
271
|
-
return found.value.items.map((item, index) => ({
|
|
272
|
-
path: item.item.relativePath,
|
|
273
|
-
type: item.type,
|
|
274
|
-
score: found.value.scores[index]?.total ?? 0
|
|
275
|
-
}));
|
|
276
|
-
})();
|
|
277
|
-
return items.sort((a, b) => b.score - a.score || a.path.length - b.path.length).map((item) => {
|
|
278
|
-
const relative = item.path.replaceAll("\\", "/").replace(/\/$/, "");
|
|
279
|
-
return exports_filesystem.Entry.make({
|
|
280
|
-
path: RelativePath.make(relative + (item.type === "directory" ? path2.sep : "")),
|
|
281
|
-
type: item.type
|
|
282
|
-
});
|
|
283
|
-
});
|
|
284
|
-
})
|
|
285
|
-
});
|
|
286
|
-
}));
|
|
287
|
-
var layer = (options) => Layer2.unwrap(Effect2.gen(function* () {
|
|
288
|
-
const location = yield* exports_location.Service;
|
|
289
|
-
if (location.workspaceID)
|
|
290
|
-
return ripgrepLayer;
|
|
291
|
-
if (options?.fff === false || options?.fff === undefined && process.platform === "win32" || !Fff.available())
|
|
292
|
-
return ripgrepLayer;
|
|
293
|
-
return location.vcs && !exports_protected.isHome(location.directory) ? fffLayer : ripgrepLayer;
|
|
294
|
-
}));
|
|
295
|
-
function configured(options) {
|
|
296
|
-
return makeLocationNode2({ service: Service2, layer: layer(options), deps: [exports_location.node, exports_ripgrep.node] });
|
|
297
|
-
}
|
|
298
|
-
var node2 = configured();
|
|
299
|
-
|
|
300
|
-
export { Options, Service2 as Service, ripgrepLayer, fffLayer, layer, configured, node2 as node, exports_search, FindInput, ReadInput, Content, ListInput, DEFAULT_SEARCH_LIMIT, DEFAULT_SEARCH_TIMEOUT_MS, GlobInput, GrepInput, Event, Service as Service1, node as node1, exports_filesystem, Entry2 as Entry, Match, Submatch };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|