@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
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import {
|
|
2
|
+
iife
|
|
3
|
+
} from "./image-ehj9csmv.js";
|
|
4
|
+
import {
|
|
5
|
+
configuredSettings
|
|
6
|
+
} from "./image-na3qwf01.js";
|
|
7
|
+
import {
|
|
8
|
+
exports_app
|
|
9
|
+
} from "./image-50jxp3hw.js";
|
|
10
|
+
import {
|
|
11
|
+
exports_integration
|
|
12
|
+
} from "./image-69qrwdtn.js";
|
|
13
|
+
import {
|
|
14
|
+
exports_model
|
|
15
|
+
} from "./image-r13w8t0w.js";
|
|
16
|
+
import {
|
|
17
|
+
exports_credential
|
|
18
|
+
} from "./image-cejdbwa1.js";
|
|
19
|
+
import {
|
|
20
|
+
exports_provider
|
|
21
|
+
} from "./image-krsqcmnj.js";
|
|
22
|
+
import {
|
|
23
|
+
which
|
|
24
|
+
} from "./image-k3e42drn.js";
|
|
25
|
+
import {
|
|
26
|
+
exports_bus
|
|
27
|
+
} from "./image-4q25xkk6.js";
|
|
28
|
+
import {
|
|
29
|
+
__require
|
|
30
|
+
} from "./image-rvfvac9x.js";
|
|
31
|
+
|
|
32
|
+
// src/plugin/provider/azure.ts
|
|
33
|
+
import { readFile } from "node:fs/promises";
|
|
34
|
+
import { homedir } from "node:os";
|
|
35
|
+
import { join } from "node:path";
|
|
36
|
+
import { Clock, Effect, Schema, Semaphore, Stream } from "effect";
|
|
37
|
+
import { ChildProcess } from "effect/unstable/process";
|
|
38
|
+
import { define } from "@opencode-ai/plugin/effect/plugin";
|
|
39
|
+
import { Form } from "@opencode-ai/schema/form";
|
|
40
|
+
import { AppProcess } from "@opencode-ai/util/process";
|
|
41
|
+
var cognitiveScope = "https://cognitiveservices.azure.com/.default";
|
|
42
|
+
var foundryScope = "https://ai.azure.com/.default";
|
|
43
|
+
var methodID = exports_integration.MethodID.make("azure-cli");
|
|
44
|
+
var decodeJSON = Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.Unknown));
|
|
45
|
+
var decodeProfile = Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.Struct({ subscriptions: Schema.Array(Schema.Unknown) })));
|
|
46
|
+
var decodeToken = Schema.decodeUnknownEffect(Schema.Struct({
|
|
47
|
+
accessToken: Schema.NonEmptyString,
|
|
48
|
+
expires_on: Schema.optional(Schema.Number),
|
|
49
|
+
expiresOn: Schema.optional(Schema.NonEmptyString)
|
|
50
|
+
}));
|
|
51
|
+
var decodeAccounts = Schema.decodeUnknownEffect(Schema.Array(Schema.Struct({ name: Schema.NonEmptyString, resourceGroup: Schema.NonEmptyString })));
|
|
52
|
+
var Deployments = Schema.Array(Schema.Struct({
|
|
53
|
+
name: Schema.NonEmptyString,
|
|
54
|
+
properties: Schema.Struct({
|
|
55
|
+
model: Schema.Struct({ name: Schema.NonEmptyString }),
|
|
56
|
+
provisioningState: Schema.NonEmptyString
|
|
57
|
+
})
|
|
58
|
+
}));
|
|
59
|
+
var decodeDeployments = Schema.decodeUnknownEffect(Deployments);
|
|
60
|
+
function selectLanguage(sdk, modelID, useChat) {
|
|
61
|
+
if (useChat && sdk.chat)
|
|
62
|
+
return sdk.chat(modelID);
|
|
63
|
+
if (sdk.responses)
|
|
64
|
+
return sdk.responses(modelID);
|
|
65
|
+
if (sdk.messages)
|
|
66
|
+
return sdk.messages(modelID);
|
|
67
|
+
if (sdk.chat)
|
|
68
|
+
return sdk.chat(modelID);
|
|
69
|
+
return sdk.languageModel(modelID);
|
|
70
|
+
}
|
|
71
|
+
var AzurePlugin = define({
|
|
72
|
+
id: "opencode.provider.azure",
|
|
73
|
+
effect: Effect.fn(function* (ctx) {
|
|
74
|
+
const configured = yield* configuredSettings(exports_provider.ID.azure);
|
|
75
|
+
const processes = yield* AppProcess.Service;
|
|
76
|
+
const bus = yield* exports_bus.Service;
|
|
77
|
+
const tokens = new Map;
|
|
78
|
+
const loading = Semaphore.makeUnsafe(1);
|
|
79
|
+
const loaded = {};
|
|
80
|
+
const command = (args) => processes.run(ChildProcess.make("az", args, { extendEnv: true, stdin: "ignore" }), { timeout: "10 seconds" }).pipe(Effect.flatMap(AppProcess.requireSuccess), Effect.flatMap((result) => decodeJSON(result.stdout.toString("utf8"))));
|
|
81
|
+
const token = Effect.fn("AzurePlugin.token")(function* (scope) {
|
|
82
|
+
const now = yield* Clock.currentTimeMillis;
|
|
83
|
+
const cached = tokens.get(scope);
|
|
84
|
+
if (cached && cached.expires - now > 5 * 60000)
|
|
85
|
+
return cached;
|
|
86
|
+
const result = yield* command(["account", "get-access-token", "--scope", scope, "--output", "json"]).pipe(Effect.flatMap(decodeToken));
|
|
87
|
+
const expires = result.expires_on !== undefined ? result.expires_on * 1000 : Date.parse(result.expiresOn ?? "");
|
|
88
|
+
if (!Number.isFinite(expires))
|
|
89
|
+
return yield* Effect.fail(new Error("Azure CLI returned an invalid token expiration"));
|
|
90
|
+
const refreshed = { access: result.accessToken, expires };
|
|
91
|
+
tokens.set(scope, refreshed);
|
|
92
|
+
return refreshed;
|
|
93
|
+
});
|
|
94
|
+
const available = Boolean(which("az"));
|
|
95
|
+
const signedIn = available ? yield* Effect.tryPromise(() => readFile(join(process.env.AZURE_CONFIG_DIR ?? join(homedir(), ".azure"), "azureProfile.json"), "utf8")).pipe(Effect.flatMap((text) => decodeProfile(text.replace(/^\uFEFF/, ""))), Effect.map((profile) => profile.subscriptions.length > 0), Effect.orElseSucceed(() => false)) : false;
|
|
96
|
+
const accounts = !resolveResourceName(configured) && typeof configured?.baseURL !== "string" && !process.env.AZURE_RESOURCE_GROUP && signedIn ? yield* command(["cognitiveservices", "account", "list", "--output", "json", "--only-show-errors"]).pipe(Effect.flatMap(decodeAccounts), Effect.orElseSucceed(() => [])) : [];
|
|
97
|
+
const form = (select = false) => iife(() => {
|
|
98
|
+
if (resolveResourceName(configured) || typeof configured?.baseURL === "string")
|
|
99
|
+
return;
|
|
100
|
+
return Form.Fields.make([
|
|
101
|
+
{
|
|
102
|
+
type: "string",
|
|
103
|
+
key: "resourceName",
|
|
104
|
+
title: "Enter Azure Resource Name",
|
|
105
|
+
placeholder: "e.g. my-models",
|
|
106
|
+
required: true,
|
|
107
|
+
...select && accounts.length > 0 ? {
|
|
108
|
+
options: accounts.map((account) => ({
|
|
109
|
+
value: account.name,
|
|
110
|
+
label: account.name,
|
|
111
|
+
description: account.resourceGroup
|
|
112
|
+
})),
|
|
113
|
+
custom: true
|
|
114
|
+
} : {}
|
|
115
|
+
}
|
|
116
|
+
]);
|
|
117
|
+
});
|
|
118
|
+
yield* ctx.integration.transform((draft) => {
|
|
119
|
+
draft.method.update({
|
|
120
|
+
integrationID: exports_provider.ID.azure,
|
|
121
|
+
method: { type: "key", label: "API key", form: form() }
|
|
122
|
+
});
|
|
123
|
+
if (!available)
|
|
124
|
+
return;
|
|
125
|
+
draft.method.update({
|
|
126
|
+
integrationID: exports_provider.ID.azure,
|
|
127
|
+
method: {
|
|
128
|
+
id: methodID,
|
|
129
|
+
type: "oauth",
|
|
130
|
+
label: "Microsoft Entra ID (Azure CLI)",
|
|
131
|
+
form: form(true)
|
|
132
|
+
},
|
|
133
|
+
authorize: (answer) => Effect.succeed({
|
|
134
|
+
mode: "auto",
|
|
135
|
+
url: "",
|
|
136
|
+
instructions: "Sign in with `az login` before continuing.",
|
|
137
|
+
callback: Effect.gen(function* () {
|
|
138
|
+
const resourceName = typeof answer.resourceName === "string" ? answer.resourceName : resolveResourceName(configured);
|
|
139
|
+
if (!resourceName)
|
|
140
|
+
return yield* Effect.fail(new Error("Azure resource name is required"));
|
|
141
|
+
const current = yield* token(cognitiveScope);
|
|
142
|
+
loaded.resource = resourceName;
|
|
143
|
+
loaded.deployments = yield* discover(resourceName);
|
|
144
|
+
yield* ctx.catalog.reload();
|
|
145
|
+
return exports_credential.OAuth.make({
|
|
146
|
+
type: "oauth",
|
|
147
|
+
methodID,
|
|
148
|
+
access: current.access,
|
|
149
|
+
refresh: "azure-cli",
|
|
150
|
+
expires: current.expires,
|
|
151
|
+
metadata: { resourceName }
|
|
152
|
+
});
|
|
153
|
+
})
|
|
154
|
+
}),
|
|
155
|
+
refresh: (credential) => token(cognitiveScope).pipe(Effect.map((current) => exports_credential.OAuth.make({ ...credential, access: current.access, expires: current.expires })))
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
const discover = Effect.fn("AzurePlugin.discover")(function* (resource) {
|
|
159
|
+
return yield* Effect.gen(function* () {
|
|
160
|
+
const group = process.env.AZURE_RESOURCE_GROUP;
|
|
161
|
+
const account = group ? { name: resource, resourceGroup: group } : (accounts.length > 0 ? accounts : yield* command(["cognitiveservices", "account", "list", "--output", "json", "--only-show-errors"]).pipe(Effect.flatMap(decodeAccounts))).find((item) => item.name.toLowerCase() === resource.toLowerCase());
|
|
162
|
+
if (!account)
|
|
163
|
+
return yield* Effect.fail(new Error(`Azure resource "${resource}" was not found in the active subscription`));
|
|
164
|
+
return yield* command([
|
|
165
|
+
"cognitiveservices",
|
|
166
|
+
"account",
|
|
167
|
+
"deployment",
|
|
168
|
+
"list",
|
|
169
|
+
"--name",
|
|
170
|
+
account.name,
|
|
171
|
+
"--resource-group",
|
|
172
|
+
account.resourceGroup,
|
|
173
|
+
"--output",
|
|
174
|
+
"json",
|
|
175
|
+
"--only-show-errors"
|
|
176
|
+
]).pipe(Effect.flatMap(decodeDeployments));
|
|
177
|
+
}).pipe(Effect.catch((error) => Effect.logWarning("Azure model discovery failed", {
|
|
178
|
+
resource,
|
|
179
|
+
error: error instanceof Error ? error.message : String(error)
|
|
180
|
+
}).pipe(Effect.as(undefined))));
|
|
181
|
+
});
|
|
182
|
+
const load = Effect.fn("AzurePlugin.load")(function* () {
|
|
183
|
+
const connection = yield* ctx.integration.connection.active(exports_provider.ID.azure);
|
|
184
|
+
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
185
|
+
return;
|
|
186
|
+
})) : undefined;
|
|
187
|
+
if (credential?.type !== "oauth" || credential.methodID !== methodID) {
|
|
188
|
+
loaded.resource = undefined;
|
|
189
|
+
loaded.deployments = undefined;
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
const resource = typeof credential.metadata?.resourceName === "string" ? credential.metadata.resourceName : undefined;
|
|
193
|
+
loaded.resource = resource;
|
|
194
|
+
loaded.deployments = resource ? yield* discover(resource) : undefined;
|
|
195
|
+
});
|
|
196
|
+
yield* load();
|
|
197
|
+
yield* ctx.catalog.transform((evt) => {
|
|
198
|
+
for (const item of evt.provider.list()) {
|
|
199
|
+
if (item.provider.id !== exports_provider.ID.azure && exports_provider.packageName(item.provider.package) !== "@ai-sdk/azure")
|
|
200
|
+
continue;
|
|
201
|
+
const resourceName = resolveResourceName(item.provider.settings, loaded.resource);
|
|
202
|
+
if (resourceName)
|
|
203
|
+
evt.provider.update(item.provider.id, (provider) => {
|
|
204
|
+
provider.settings = {
|
|
205
|
+
...provider.settings,
|
|
206
|
+
resourceName,
|
|
207
|
+
...typeof provider.settings?.baseURL === "string" ? { baseURL: expandResourceName(provider.settings.baseURL, resourceName) } : {}
|
|
208
|
+
};
|
|
209
|
+
});
|
|
210
|
+
if (item.provider.id === exports_provider.ID.azure && loaded.deployments) {
|
|
211
|
+
const existing = Array.from(item.models.values());
|
|
212
|
+
const found = new Map;
|
|
213
|
+
loaded.deployments.forEach((deployment) => {
|
|
214
|
+
if (deployment.properties.provisioningState !== "Succeeded")
|
|
215
|
+
return;
|
|
216
|
+
const model = existing.find((model2) => model2.id.toLowerCase() === deployment.properties.model.name.toLowerCase());
|
|
217
|
+
if (!model)
|
|
218
|
+
return;
|
|
219
|
+
const id = found.has(model.id) ? exports_model.ID.make(deployment.name) : model.id;
|
|
220
|
+
found.set(id, {
|
|
221
|
+
...model,
|
|
222
|
+
id,
|
|
223
|
+
name: id === model.id ? model.name : `${model.name} (${deployment.name})`,
|
|
224
|
+
modelID: exports_model.ID.make(deployment.name)
|
|
225
|
+
});
|
|
226
|
+
});
|
|
227
|
+
for (const id of Array.from(item.models.keys())) {
|
|
228
|
+
if (!found.has(exports_model.ID.make(id)))
|
|
229
|
+
evt.model.remove(item.provider.id, id);
|
|
230
|
+
}
|
|
231
|
+
for (const [id, model] of found) {
|
|
232
|
+
evt.model.update(item.provider.id, id, (draft) => Object.assign(draft, structuredClone(model)));
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
for (const model of item.models.values()) {
|
|
236
|
+
evt.model.update(item.provider.id, model.id, (draft) => {
|
|
237
|
+
if (resourceName && typeof draft.settings?.baseURL === "string")
|
|
238
|
+
draft.settings.baseURL = expandResourceName(draft.settings.baseURL, resolveResourceName(draft.settings, resourceName) ?? resourceName);
|
|
239
|
+
if (responsesWebSocketCapable(item.provider, draft))
|
|
240
|
+
draft.capabilities.responsesWebsockets = true;
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.catalog.reload())));
|
|
246
|
+
yield* bus.subscribe(exports_credential.Event.Switched).pipe(Stream.filter((event) => event.data.integrationID === exports_integration.ID.make("azure")), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
|
|
247
|
+
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
248
|
+
if (evt.model.providerID !== exports_provider.ID.azure)
|
|
249
|
+
return;
|
|
250
|
+
const connection = yield* ctx.integration.connection.active(exports_provider.ID.azure);
|
|
251
|
+
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
252
|
+
return;
|
|
253
|
+
})) : undefined;
|
|
254
|
+
if (credential?.type !== "oauth" || credential.methodID !== methodID)
|
|
255
|
+
return;
|
|
256
|
+
const url = new URL(evt.request.url);
|
|
257
|
+
const scope = url.hostname.endsWith(".services.ai.azure.com") && !url.pathname.startsWith("/models") ? foundryScope : cognitiveScope;
|
|
258
|
+
const current = yield* token(scope).pipe(Effect.orDie);
|
|
259
|
+
evt.request.headers.delete("api-key");
|
|
260
|
+
evt.request.headers.delete("x-api-key");
|
|
261
|
+
evt.request.headers.set("authorization", `Bearer ${current.access}`);
|
|
262
|
+
evt.request.headers.set("user-agent", exports_app.useragent(ctx.app));
|
|
263
|
+
}), { providerID: exports_provider.ID.azure });
|
|
264
|
+
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
265
|
+
if (evt.package !== "@ai-sdk/azure")
|
|
266
|
+
return;
|
|
267
|
+
if (evt.model.providerID === exports_provider.ID.azure) {
|
|
268
|
+
if (!evt.options.resourceName && !evt.options.baseURL && (!exports_provider.isAISDK(evt.model.package) || typeof evt.model.settings?.baseURL !== "string")) {
|
|
269
|
+
throw new Error("Azure resource name is missing; set AZURE_RESOURCE_NAME or configure resourceName/baseURL");
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
const mod = yield* Effect.promise(() => import("@ai-sdk/azure"));
|
|
273
|
+
evt.sdk = mod.createAzure(evt.options);
|
|
274
|
+
}));
|
|
275
|
+
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
276
|
+
if (evt.model.providerID !== exports_provider.ID.azure)
|
|
277
|
+
return;
|
|
278
|
+
evt.language = selectLanguage(evt.sdk, evt.model.modelID ?? evt.model.id, Boolean(evt.options.useCompletionUrls));
|
|
279
|
+
}));
|
|
280
|
+
})
|
|
281
|
+
});
|
|
282
|
+
function resolveResourceName(settings, fallback) {
|
|
283
|
+
const configured = settings?.resourceName;
|
|
284
|
+
if (typeof configured === "string" && configured.trim() !== "")
|
|
285
|
+
return configured;
|
|
286
|
+
return fallback ?? process.env.AZURE_RESOURCE_NAME ?? process.env.AZURE_COGNITIVE_SERVICES_RESOURCE_NAME;
|
|
287
|
+
}
|
|
288
|
+
function expandResourceName(baseURL, resourceName) {
|
|
289
|
+
return baseURL.replaceAll("${AZURE_RESOURCE_NAME}", resourceName).replaceAll("${AZURE_COGNITIVE_SERVICES_RESOURCE_NAME}", resourceName);
|
|
290
|
+
}
|
|
291
|
+
function responsesWebSocketCapable(provider, model) {
|
|
292
|
+
if (exports_provider.packageName(model.package ?? provider.package) !== "@ai-sdk/azure")
|
|
293
|
+
return false;
|
|
294
|
+
const settings = exports_provider.mergeOverlay(provider.settings, model.settings);
|
|
295
|
+
if (settings?.useCompletionUrls === true || settings?.useDeploymentBasedUrls === true)
|
|
296
|
+
return false;
|
|
297
|
+
if (settings?.apiVersion !== undefined && settings.apiVersion !== "v1")
|
|
298
|
+
return false;
|
|
299
|
+
if (typeof settings?.baseURL !== "string")
|
|
300
|
+
return true;
|
|
301
|
+
return /^https:\/\/[^/]+\.openai\.azure\.com(?:\/|$)/i.test(settings.baseURL);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export { AzurePlugin };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
which
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./image-k3e42drn.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_state
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./image-x89rah0x.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./image-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/shell/select.ts
|
|
12
12
|
var exports_select = {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
exports_permission
|
|
3
|
-
} from "./persistent-pty-1dfqx17w.js";
|
|
4
1
|
import {
|
|
5
2
|
exports_form
|
|
6
|
-
} from "./
|
|
3
|
+
} from "./image-k4p7ys6p.js";
|
|
4
|
+
import {
|
|
5
|
+
exports_permission
|
|
6
|
+
} from "./image-6g6wn14j.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./image-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/tool/plugin/question.ts
|
|
12
12
|
var exports_question = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./image-8rpfd2h6.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./image-rvfvac9x.js";
|
|
7
7
|
|
|
8
8
|
// src/session/message-updater.ts
|
|
9
9
|
var exports_message_updater = {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_skill
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./image-getpa8rr.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_permission
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./image-6g6wn14j.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./image-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/tool/plugin/skill.ts
|
|
12
12
|
var exports_skill2 = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
collectBoundedResponseBody
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./image-jve7t217.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./image-rvfvac9x.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/mcp.ts
|
|
9
9
|
var exports_mcp = {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
llmClient
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./image-393a352g.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_model_resolver
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./image-tpf20sdp.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./image-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/generate.ts
|
|
12
12
|
var exports_generate = {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteArrayColumn,
|
|
3
3
|
absoluteColumn
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./image-zbqqnp0n.js";
|
|
5
5
|
import {
|
|
6
6
|
Timestamps
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./image-sem2g21k.js";
|
|
8
8
|
|
|
9
9
|
// src/project/sql.ts
|
|
10
10
|
import { isNotNull, isNull, ne, or } from "drizzle-orm";
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_message_updater
|
|
3
|
-
} from "./
|
|
4
|
-
import {
|
|
5
|
-
exports_inbox
|
|
6
|
-
} from "./persistent-pty-rvx401a0.js";
|
|
3
|
+
} from "./image-bmknfyv0.js";
|
|
7
4
|
import {
|
|
8
5
|
exports_instruction_entry
|
|
9
|
-
} from "./
|
|
6
|
+
} from "./image-vx778pey.js";
|
|
7
|
+
import {
|
|
8
|
+
exports_inbox
|
|
9
|
+
} from "./image-ecft2zb7.js";
|
|
10
10
|
import {
|
|
11
11
|
Slug
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./image-df3v2q6j.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_instruction_state
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./image-1wr8td20.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionInboxTable,
|
|
18
18
|
SessionMessageTable,
|
|
19
19
|
SessionTable
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./image-q606pcse.js";
|
|
21
|
+
import {
|
|
22
|
+
SessionEvent
|
|
23
|
+
} from "./image-a83yvq99.js";
|
|
21
24
|
import {
|
|
22
25
|
SessionMessage
|
|
23
|
-
} from "./
|
|
26
|
+
} from "./image-8rpfd2h6.js";
|
|
27
|
+
import {
|
|
28
|
+
exports_agent
|
|
29
|
+
} from "./image-qthy380g.js";
|
|
24
30
|
import {
|
|
25
31
|
exports_model
|
|
26
|
-
} from "./
|
|
32
|
+
} from "./image-r13w8t0w.js";
|
|
27
33
|
import {
|
|
28
34
|
exports_workspace
|
|
29
|
-
} from "./
|
|
30
|
-
import {
|
|
31
|
-
exports_agent
|
|
32
|
-
} from "./persistent-pty-thehea1s.js";
|
|
33
|
-
import {
|
|
34
|
-
SessionEvent
|
|
35
|
-
} from "./persistent-pty-a83yvq99.js";
|
|
35
|
+
} from "./image-wyafnjh5.js";
|
|
36
36
|
import {
|
|
37
37
|
ProjectTable
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./image-c8ya26sa.js";
|
|
39
39
|
import {
|
|
40
40
|
AbsolutePath,
|
|
41
41
|
RelativePath
|
|
42
|
-
} from "./
|
|
42
|
+
} from "./image-j07kk359.js";
|
|
43
43
|
import {
|
|
44
44
|
exports_bus
|
|
45
|
-
} from "./
|
|
45
|
+
} from "./image-4q25xkk6.js";
|
|
46
46
|
import {
|
|
47
47
|
exports_database
|
|
48
|
-
} from "./
|
|
48
|
+
} from "./image-nnhm94s6.js";
|
|
49
49
|
import {
|
|
50
50
|
__export
|
|
51
|
-
} from "./
|
|
51
|
+
} from "./image-rvfvac9x.js";
|
|
52
52
|
|
|
53
53
|
// src/session/projector.ts
|
|
54
54
|
var exports_projector = {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CredentialTable
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./image-mf0hyk7z.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_bus
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./image-4q25xkk6.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_database
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./image-nnhm94s6.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./image-rvfvac9x.js";
|
|
13
13
|
|
|
14
14
|
// src/credential.ts
|
|
15
15
|
var exports_credential = {};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_markdown
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./image-7wcmqxrc.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_config
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./image-8a7c359h.js";
|
|
7
7
|
import {
|
|
8
8
|
exports_select
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./image-bbhffenw.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_location
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./image-dtsy0489.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./image-rvfvac9x.js";
|
|
16
16
|
|
|
17
17
|
// src/config/plugin/command.ts
|
|
18
18
|
var exports_command = {};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_migrate
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./image-whk0g8cz.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_plugin
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./image-9f0rnpkn.js";
|
|
7
|
+
import {
|
|
8
|
+
exports_agent
|
|
9
|
+
} from "./image-4s2xwh5d.js";
|
|
7
10
|
import {
|
|
8
11
|
exports_mcp
|
|
9
|
-
} from "./
|
|
12
|
+
} from "./image-e1z9a0ts.js";
|
|
10
13
|
import {
|
|
11
14
|
exports_provider
|
|
12
|
-
} from "./
|
|
15
|
+
} from "./image-18pv8fg3.js";
|
|
13
16
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
17
|
+
exports_attachment
|
|
18
|
+
} from "./image-r3k9abhd.js";
|
|
16
19
|
import {
|
|
17
20
|
exports_permission
|
|
18
|
-
} from "./
|
|
19
|
-
import {
|
|
20
|
-
exports_attachment
|
|
21
|
-
} from "./persistent-pty-r3k9abhd.js";
|
|
21
|
+
} from "./image-v9bfv94f.js";
|
|
22
22
|
import {
|
|
23
23
|
exports_command
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./image-thstd87d.js";
|
|
25
25
|
import {
|
|
26
26
|
PositiveInt
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./image-j07kk359.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./image-rvfvac9x.js";
|
|
31
31
|
|
|
32
32
|
// src/config/normalize.ts
|
|
33
33
|
var exports_normalize = {};
|
|
@@ -36,6 +36,7 @@ __export(exports_normalize, {
|
|
|
36
36
|
ConfigNormalize: () => exports_normalize
|
|
37
37
|
});
|
|
38
38
|
import { isDeepStrictEqual } from "node:util";
|
|
39
|
+
import { isRecord } from "@opencode-ai/ai/utils/record";
|
|
39
40
|
import { Option, Schema } from "effect";
|
|
40
41
|
import { Info } from "@opencode-ai/schema/config";
|
|
41
42
|
import { ConfigAgent } from "@opencode-ai/schema/config/agent";
|
|
@@ -601,9 +602,6 @@ function isDirectLegacyMcp(value) {
|
|
|
601
602
|
function isEnabledOnlyMcp(value) {
|
|
602
603
|
return isRecord(value) && !own(value, "type") && typeof value.enabled === "boolean";
|
|
603
604
|
}
|
|
604
|
-
function isRecord(value) {
|
|
605
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
606
|
-
}
|
|
607
605
|
function isPlainRecord(value) {
|
|
608
606
|
if (!isRecord(value))
|
|
609
607
|
return false;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SQLiteEffectDatabase
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./image-dbvqqhw0.js";
|
|
4
4
|
import {
|
|
5
5
|
mapResultRow,
|
|
6
6
|
resolveNullableObjectPaths
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./image-k8b45nas.js";
|
|
8
8
|
|
|
9
9
|
// src/database/drizzle/sqlite-core/effect/session.ts
|
|
10
10
|
import * as Cause from "effect/Cause";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_instructions
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./image-ec8vrfw5.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_location
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./image-dtsy0489.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./image-rvfvac9x.js";
|
|
10
10
|
|
|
11
11
|
// src/instructions/builtins.ts
|
|
12
12
|
var exports_builtins = {};
|