@opencode/core 0.0.0-dev-20471 → 0.0.0-dev-20472
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 +1 -1
- package/dist/agent.js +77 -77
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +92 -92
- package/dist/app.js +9 -9
- package/dist/bus.js +69 -69
- package/dist/chunks/{instruction-discovery-ws0yxesk.js → tool-01vj6crb.js} +11 -11
- package/dist/chunks/{instruction-discovery-mxvxcxwy.js → tool-068serwz.js} +4 -4
- package/dist/chunks/{instruction-discovery-c5dja1rz.js → tool-0gtjmwnv.js} +30 -30
- package/dist/chunks/{instruction-discovery-5rz9mp7t.js → tool-0h1m2r9k.js} +10 -10
- package/dist/chunks/{instruction-discovery-qgn6gcr1.js → tool-0jwsre1p.js} +5 -5
- package/dist/chunks/{instruction-discovery-rensfgbr.js → tool-0ma4vy4p.js} +4 -4
- package/dist/chunks/{instruction-discovery-0paq2nw3.js → tool-0paq2nw3.js} +1 -1
- package/dist/chunks/{instruction-discovery-ghsjw044.js → tool-0psyspmj.js} +15 -15
- package/dist/chunks/{instruction-discovery-43wb7q2w.js → tool-0q6e04md.js} +45 -45
- package/dist/chunks/{instruction-discovery-761m9ptj.js → tool-0qa6hg2d.js} +5 -5
- package/dist/chunks/{instruction-discovery-0vbcp93d.js → tool-0vbcp93d.js} +2 -2
- package/dist/chunks/{instruction-discovery-gsw922gt.js → tool-0vz2twak.js} +19 -19
- package/dist/chunks/{instruction-discovery-j0n8q38d.js → tool-0wt4yx46.js} +3 -3
- package/dist/chunks/{instruction-discovery-6t4hr8r6.js → tool-0xqyf95c.js} +4 -4
- package/dist/chunks/{instruction-discovery-75b92wra.js → tool-0xvj5dy1.js} +10 -10
- package/dist/chunks/{instruction-discovery-84zcxbc9.js → tool-150yg2gd.js} +5 -5
- package/dist/chunks/{instruction-discovery-1heeyx1n.js → tool-16rtyza8.js} +33 -33
- package/dist/chunks/{instruction-discovery-fsw0mc83.js → tool-17e7mjev.js} +9 -9
- package/dist/chunks/{instruction-discovery-yp2x3t23.js → tool-1acjjqhc.js} +4 -4
- package/dist/chunks/{instruction-discovery-1dazxqgg.js → tool-1dazxqgg.js} +2 -2
- package/dist/chunks/{instruction-discovery-84h8c373.js → tool-1dvck2a7.js} +2 -2
- package/dist/chunks/{instruction-discovery-ktwxsybc.js → tool-1egym0t3.js} +38 -38
- package/dist/chunks/{instruction-discovery-2aa0xkz7.js → tool-1m5kq2rb.js} +6 -6
- package/dist/chunks/{instruction-discovery-21r38tys.js → tool-21r38tys.js} +1 -1
- package/dist/chunks/{instruction-discovery-2a5m3afh.js → tool-2a5m3afh.js} +1 -1
- package/dist/chunks/{instruction-discovery-x18va5sk.js → tool-2rwb967c.js} +31 -31
- package/dist/chunks/{instruction-discovery-smpatqxy.js → tool-2t0ky1d2.js} +13 -13
- package/dist/chunks/{instruction-discovery-qpsckf0j.js → tool-2tmdj2y2.js} +45 -45
- package/dist/chunks/{instruction-discovery-t2az9yje.js → tool-2vs2nh1n.js} +4 -4
- package/dist/chunks/{instruction-discovery-qysk27bn.js → tool-2xap9sjc.js} +28 -28
- package/dist/chunks/{instruction-discovery-wr7y9ky3.js → tool-2ywzxrtj.js} +33 -33
- package/dist/chunks/{instruction-discovery-8hxe8pkp.js → tool-331jtpav.js} +11 -11
- package/dist/chunks/{instruction-discovery-mfqp6xfm.js → tool-33w4ejhs.js} +9 -9
- package/dist/chunks/{instruction-discovery-dzv9ey9b.js → tool-35nvda3r.js} +16 -16
- package/dist/chunks/{instruction-discovery-mx5b0ca7.js → tool-367tnyhe.js} +15 -15
- package/dist/chunks/{instruction-discovery-sb1y7h9k.js → tool-39087s82.js} +10 -10
- package/dist/chunks/{instruction-discovery-y91qmtyz.js → tool-3dxcfbvg.js} +8 -8
- package/dist/chunks/{instruction-discovery-tztphjnf.js → tool-3ensxc03.js} +12 -12
- package/dist/chunks/{instruction-discovery-3fc6dm20.js → tool-3fc6dm20.js} +1 -1
- package/dist/chunks/{instruction-discovery-3hepkmqq.js → tool-3hepkmqq.js} +1 -1
- package/dist/chunks/{instruction-discovery-f7sh0pz3.js → tool-3hqn980y.js} +25 -25
- package/dist/chunks/{instruction-discovery-r1e33f2y.js → tool-3q5heb5a.js} +1 -1
- package/dist/chunks/{instruction-discovery-b5a1eknj.js → tool-3r13hppx.js} +2 -2
- package/dist/chunks/{instruction-discovery-3smtnn6g.js → tool-3smtnn6g.js} +1 -1
- package/dist/chunks/{instruction-discovery-pre7v3rr.js → tool-3sthn561.js} +12 -12
- package/dist/chunks/{instruction-discovery-3tvqynh2.js → tool-3tvqynh2.js} +1 -1
- package/dist/chunks/{instruction-discovery-7rkkkr4d.js → tool-3vddgz3b.js} +3 -3
- package/dist/chunks/{instruction-discovery-080vvshd.js → tool-3ym878v0.js} +21 -21
- package/dist/chunks/{instruction-discovery-3zsf4n22.js → tool-3zsf4n22.js} +1 -1
- package/dist/chunks/{instruction-discovery-xjtdekf3.js → tool-46j8w8vf.js} +17 -17
- package/dist/chunks/{instruction-discovery-n8vdnqrc.js → tool-47jkzegy.js} +5 -5
- package/dist/chunks/{instruction-discovery-vwb48jve.js → tool-4gtnaf1q.js} +30 -30
- package/dist/chunks/{instruction-discovery-8tyf01n7.js → tool-4h10ah5b.js} +11 -11
- package/dist/chunks/{instruction-discovery-2myva995.js → tool-4mwpykj0.js} +6 -6
- package/dist/chunks/{instruction-discovery-r9w3djhf.js → tool-4nj4bn9q.js} +9 -9
- package/dist/chunks/{instruction-discovery-dh757vhx.js → tool-4pf9cp6z.js} +8 -8
- package/dist/chunks/{instruction-discovery-4ts7tf6z.js → tool-4ts7tf6z.js} +2 -2
- package/dist/chunks/{instruction-discovery-6zdn4kqr.js → tool-4ve89d8e.js} +6 -6
- package/dist/chunks/{instruction-discovery-31cn1m4w.js → tool-4xh45ynr.js} +13 -13
- package/dist/chunks/{instruction-discovery-vj4r8hhk.js → tool-53eqz1v2.js} +2 -2
- package/dist/chunks/{instruction-discovery-54ma36ye.js → tool-54ma36ye.js} +1 -1
- package/dist/chunks/{instruction-discovery-6y2nrvpb.js → tool-55n934x1.js} +12 -12
- package/dist/chunks/{instruction-discovery-zx3ym5xt.js → tool-56r9g34b.js} +19 -19
- package/dist/chunks/{instruction-discovery-6pdejbrj.js → tool-59376ey9.js} +11 -11
- package/dist/chunks/{instruction-discovery-5daktx2q.js → tool-5daktx2q.js} +1 -1
- package/dist/chunks/{instruction-discovery-9xxdq54b.js → tool-5dwsqdnn.js} +24 -24
- package/dist/chunks/{instruction-discovery-ngs2t85n.js → tool-5hjzwc51.js} +26 -26
- package/dist/chunks/{instruction-discovery-atgqwhr8.js → tool-5hsj21bq.js} +12 -12
- package/dist/chunks/{instruction-discovery-d9sgy5v4.js → tool-5qwkxp89.js} +4 -4
- package/dist/chunks/{instruction-discovery-6f0av2j1.js → tool-5rrd0wgj.js} +4 -4
- package/dist/chunks/{instruction-discovery-h1gxq19x.js → tool-5sb33w33.js} +5 -5
- package/dist/chunks/{instruction-discovery-mbvexy51.js → tool-5spq5w86.js} +30 -30
- package/dist/chunks/{instruction-discovery-5t3nmthw.js → tool-5t3nmthw.js} +2 -2
- package/dist/chunks/{instruction-discovery-9hn6k4tm.js → tool-5yzzbxa7.js} +8 -8
- package/dist/chunks/{instruction-discovery-jd00bmkr.js → tool-64mbz47k.js} +6 -6
- package/dist/chunks/{instruction-discovery-669tq793.js → tool-669tq793.js} +1 -1
- package/dist/chunks/{instruction-discovery-0vhqtdyv.js → tool-6713qhv3.js} +3 -3
- package/dist/chunks/{instruction-discovery-5wefe36s.js → tool-6f0yry1r.js} +25 -25
- package/dist/chunks/{instruction-discovery-s87m1rh1.js → tool-6f1n1136.js} +24 -24
- package/dist/chunks/{instruction-discovery-ryr25ayn.js → tool-6hh8tjw2.js} +4 -4
- package/dist/chunks/{instruction-discovery-fjdbx3vt.js → tool-6mz873gg.js} +31 -31
- package/dist/chunks/{instruction-discovery-bcjbebev.js → tool-6yrb0ee6.js} +44 -44
- package/dist/chunks/{instruction-discovery-f75zav2x.js → tool-71az546q.js} +2 -2
- package/dist/chunks/{instruction-discovery-vzbxwz1d.js → tool-72rw85ce.js} +11 -11
- package/dist/chunks/{instruction-discovery-a1gpj94z.js → tool-73tb2d7t.js} +3 -3
- package/dist/chunks/{instruction-discovery-4314ycrs.js → tool-798nffs7.js} +14 -14
- package/dist/chunks/{instruction-discovery-7bmhse3q.js → tool-7bmhse3q.js} +1 -1
- package/dist/chunks/{instruction-discovery-p64njgy7.js → tool-7dkh56cg.js} +32 -32
- package/dist/chunks/{instruction-discovery-abdes5d1.js → tool-7vd0q4gx.js} +20 -20
- package/dist/chunks/{instruction-discovery-mjqndqed.js → tool-7wnkabmt.js} +12 -12
- package/dist/chunks/{instruction-discovery-k0yq8t7t.js → tool-7z0hsedk.js} +10 -10
- package/dist/chunks/{instruction-discovery-vtf707f2.js → tool-7zrcenrt.js} +33 -33
- package/dist/chunks/{instruction-discovery-th2zx9f7.js → tool-83zz9by4.js} +10 -10
- package/dist/chunks/{instruction-discovery-w1eejvng.js → tool-84txncab.js} +5 -5
- package/dist/chunks/{instruction-discovery-40vca8cq.js → tool-89fvn49q.js} +32 -32
- package/dist/chunks/{instruction-discovery-ty6jwzst.js → tool-89t0bv35.js} +86 -86
- package/dist/chunks/{instruction-discovery-en9mxp96.js → tool-8a6ws7jr.js} +9 -9
- package/dist/chunks/{instruction-discovery-97w5rk9e.js → tool-8aaqm6qj.js} +8 -8
- package/dist/chunks/{instruction-discovery-8d7r5vzw.js → tool-8d7r5vzw.js} +1 -1
- package/dist/chunks/{instruction-discovery-mme0rg1v.js → tool-8efxrb1d.js} +5 -5
- package/dist/chunks/{instruction-discovery-9h4j716q.js → tool-8nykf3n3.js} +22 -22
- package/dist/chunks/{instruction-discovery-cc19yrrc.js → tool-8sbrsbjz.js} +32 -32
- package/dist/chunks/{instruction-discovery-dzh449s8.js → tool-8vg2w7m1.js} +3 -3
- package/dist/chunks/{instruction-discovery-q6d53jre.js → tool-90p59b3a.js} +8 -8
- package/dist/chunks/{instruction-discovery-539jk4fq.js → tool-93hpb89x.js} +2 -2
- package/dist/chunks/tool-99qazkpk.js +26 -0
- package/dist/chunks/{instruction-discovery-kb9j3d72.js → tool-9e5bzkjp.js} +3 -3
- package/dist/chunks/{instruction-discovery-q3mv52s2.js → tool-9eyjn78q.js} +30 -30
- package/dist/chunks/{instruction-discovery-02nrjc1r.js → tool-9t7a50xb.js} +8 -8
- package/dist/chunks/{instruction-discovery-rtbqen95.js → tool-a2954sdm.js} +20 -20
- package/dist/chunks/{instruction-discovery-7pvdgcpf.js → tool-a3wk7f1b.js} +32 -32
- package/dist/chunks/{instruction-discovery-xeqcgda4.js → tool-a5my4mnh.js} +32 -32
- package/dist/chunks/{instruction-discovery-dfzjqex4.js → tool-a694798e.js} +5 -5
- package/dist/chunks/{instruction-discovery-aaet6srn.js → tool-aaet6srn.js} +2 -2
- package/dist/chunks/{instruction-discovery-3v5tjer0.js → tool-adrzke39.js} +9 -9
- package/dist/chunks/{instruction-discovery-ctj0c0vy.js → tool-apw32n9p.js} +35 -35
- package/dist/chunks/{instruction-discovery-gs3s1a1g.js → tool-at1kfnmk.js} +8 -8
- package/dist/chunks/{instruction-discovery-prs6m51s.js → tool-azvg6g4c.js} +9 -9
- package/dist/chunks/{instruction-discovery-b6gygkdw.js → tool-b6gygkdw.js} +2 -2
- package/dist/chunks/{instruction-discovery-z3xrvpgm.js → tool-b8svndy5.js} +15 -15
- package/dist/chunks/{instruction-discovery-9bc1v1ef.js → tool-b8y6m0vr.js} +10 -10
- package/dist/chunks/{instruction-discovery-fdvbeqx3.js → tool-bnfyw5ja.js} +4 -4
- package/dist/chunks/{instruction-discovery-2htgr3ze.js → tool-bxy1ctzg.js} +11 -11
- package/dist/chunks/{instruction-discovery-rk44qj15.js → tool-bzchk968.js} +17 -17
- package/dist/chunks/{instruction-discovery-py3kkmfq.js → tool-cfsekr6v.js} +2 -2
- package/dist/chunks/{instruction-discovery-k0133kzt.js → tool-cq43qyqm.js} +17 -17
- package/dist/chunks/{instruction-discovery-mmha7pa6.js → tool-cxhqznm4.js} +32 -32
- package/dist/chunks/{instruction-discovery-a713gwtq.js → tool-d0w45w1g.js} +3 -3
- package/dist/chunks/{instruction-discovery-4zh31xwb.js → tool-d1mxnk9b.js} +5 -5
- package/dist/chunks/{instruction-discovery-q3mvh4gg.js → tool-d6x8wjh2.js} +37 -37
- package/dist/chunks/{instruction-discovery-r2m716tb.js → tool-djszqvmq.js} +9 -9
- package/dist/chunks/{instruction-discovery-dpkg50ah.js → tool-dpkg50ah.js} +1 -1
- package/dist/chunks/{instruction-discovery-rakf4fws.js → tool-dq6jrfnm.js} +23 -23
- package/dist/chunks/{instruction-discovery-4fecg1gp.js → tool-dxjv2ykb.js} +17 -17
- package/dist/chunks/{instruction-discovery-ef5x83kb.js → tool-ef5x83kb.js} +1 -1
- package/dist/chunks/{instruction-discovery-npdwfpvy.js → tool-ekpgh6d5.js} +13 -13
- package/dist/chunks/{instruction-discovery-xa1rfemh.js → tool-emd75jk3.js} +11 -11
- package/dist/chunks/{instruction-discovery-1srsgptm.js → tool-etpckvav.js} +7 -7
- package/dist/chunks/{instruction-discovery-etq0c3wd.js → tool-etq0c3wd.js} +1 -1
- package/dist/chunks/{instruction-discovery-47t04rwa.js → tool-ev9z8jfx.js} +3 -3
- package/dist/chunks/{instruction-discovery-ns3twq43.js → tool-f3y2xgd9.js} +22 -22
- package/dist/chunks/{instruction-discovery-hc0q43h0.js → tool-f4rymznk.js} +13 -13
- package/dist/chunks/{instruction-discovery-k1qrnqst.js → tool-f5gy8qwh.js} +8 -8
- package/dist/chunks/{instruction-discovery-0whc58jc.js → tool-fnyka1s1.js} +7 -7
- package/dist/chunks/{instruction-discovery-ppadzg5x.js → tool-frna90m0.js} +17 -17
- package/dist/chunks/{instruction-discovery-pvt2fb7y.js → tool-ftynxttp.js} +15 -15
- package/dist/chunks/{instruction-discovery-hygh1nxm.js → tool-fw3dky2w.js} +17 -17
- package/dist/chunks/{instruction-discovery-xsbbgyde.js → tool-fxp95myf.js} +17 -17
- package/dist/chunks/{instruction-discovery-xfkkasph.js → tool-g5w8qwbj.js} +4 -4
- package/dist/chunks/{instruction-discovery-qrqxbka5.js → tool-g7xsht76.js} +8 -8
- package/dist/chunks/{instruction-discovery-tyw2rt9s.js → tool-g9xjst3r.js} +21 -21
- package/dist/chunks/{instruction-discovery-gt5g32da.js → tool-gce79w0q.js} +19 -19
- package/dist/chunks/{instruction-discovery-gd4qta3r.js → tool-gd4qta3r.js} +1 -1
- package/dist/chunks/{instruction-discovery-1mbcycaa.js → tool-grq1sczm.js} +11 -11
- package/dist/chunks/{instruction-discovery-vcm78sp8.js → tool-gvv136sf.js} +4 -4
- package/dist/chunks/{instruction-discovery-rywzfdxh.js → tool-gw7cjrad.js} +4 -4
- package/dist/chunks/{instruction-discovery-3cegwx68.js → tool-h2b79v29.js} +2 -2
- package/dist/chunks/{instruction-discovery-txcs8rkd.js → tool-h2fzzx8t.js} +6 -6
- package/dist/chunks/{instruction-discovery-y8p3zjbc.js → tool-h6nxw0pd.js} +8 -8
- package/dist/chunks/{instruction-discovery-h6vf3j39.js → tool-h6vf3j39.js} +1 -1
- package/dist/chunks/{instruction-discovery-vt1ndr5w.js → tool-h85krvk7.js} +43 -43
- package/dist/chunks/{instruction-discovery-50nqdmbv.js → tool-h8jdcdjx.js} +13 -13
- package/dist/chunks/tool-hqm5br06.js +507 -0
- package/dist/chunks/tool-ht5y0zrb.js +18 -0
- package/dist/chunks/{instruction-discovery-ysqhjtv4.js → tool-hv7gj7jm.js} +63 -63
- package/dist/chunks/{instruction-discovery-53vkcadn.js → tool-hva7ke4f.js} +18 -18
- package/dist/chunks/{instruction-discovery-c5fep3w9.js → tool-hvb31e4h.js} +25 -25
- package/dist/chunks/{instruction-discovery-n2cmvrhk.js → tool-hwzc49pr.js} +20 -20
- package/dist/chunks/{instruction-discovery-9rb4gn01.js → tool-j0yek2qa.js} +24 -24
- package/dist/chunks/{instruction-discovery-0npx16jc.js → tool-j255ygs0.js} +16 -16
- package/dist/chunks/{instruction-discovery-j56e64zr.js → tool-j56e64zr.js} +1 -1
- package/dist/chunks/{instruction-discovery-1kzbxz94.js → tool-j92d0j7v.js} +34 -34
- package/dist/chunks/{instruction-discovery-f1w2j8y8.js → tool-jad3eb5n.js} +3 -3
- package/dist/chunks/{instruction-discovery-79sz3r55.js → tool-jcws1aax.js} +32 -32
- package/dist/chunks/{instruction-discovery-apq9b92v.js → tool-je52f75z.js} +10 -10
- package/dist/chunks/{instruction-discovery-2kgjpspn.js → tool-jgb1x1d9.js} +48 -48
- package/dist/chunks/{instruction-discovery-3fre7mpw.js → tool-jn6gv895.js} +20 -20
- package/dist/chunks/{instruction-discovery-magykp64.js → tool-k2h4r4s0.js} +4 -4
- package/dist/chunks/{instruction-discovery-p7pg8h7t.js → tool-k3vbf9cz.js} +13 -13
- package/dist/chunks/{instruction-discovery-nhef0ppz.js → tool-k3xmg675.js} +16 -16
- package/dist/chunks/{instruction-discovery-7refrf3w.js → tool-kkbh4h1z.js} +20 -20
- package/dist/chunks/{instruction-discovery-7kya15n1.js → tool-kn3m44fm.js} +5 -5
- package/dist/chunks/{instruction-discovery-420sbbzp.js → tool-kxcd4fwb.js} +5 -5
- package/dist/chunks/{instruction-discovery-0bj12j9s.js → tool-m028xtpq.js} +17 -17
- package/dist/chunks/{instruction-discovery-m3fdjcah.js → tool-m3fdjcah.js} +1 -1
- package/dist/chunks/{instruction-discovery-m9w0rfyh.js → tool-m9w0rfyh.js} +1 -1
- package/dist/chunks/{instruction-discovery-mazbtkaa.js → tool-mazbtkaa.js} +2 -2
- package/dist/chunks/{instruction-discovery-zx8ftjgv.js → tool-mp1xsmy4.js} +11 -11
- package/dist/chunks/{instruction-discovery-gq5qbgfs.js → tool-mpcan42b.js} +9 -9
- package/dist/chunks/{instruction-discovery-f6954tmx.js → tool-mvzzranc.js} +17 -17
- package/dist/chunks/{instruction-discovery-s7e94ybw.js → tool-mx83wbf3.js} +6 -6
- package/dist/chunks/{instruction-discovery-9zppm9tj.js → tool-mydkh4yr.js} +24 -24
- package/dist/chunks/{instruction-discovery-hr8b5vpd.js → tool-n1edfwxj.js} +4 -4
- package/dist/chunks/{instruction-discovery-25dqpbdt.js → tool-n2ckjg3g.js} +26 -26
- package/dist/chunks/{instruction-discovery-2jgv7aap.js → tool-n5bh2s1p.js} +21 -21
- package/dist/chunks/{instruction-discovery-k4bpkq42.js → tool-n5w4zgy3.js} +8 -8
- package/dist/chunks/{instruction-discovery-gf55pmfv.js → tool-n9p5arwt.js} +26 -26
- package/dist/chunks/{instruction-discovery-vrrktwsj.js → tool-nas0hrdm.js} +22 -22
- package/dist/chunks/{instruction-discovery-1reqv2dv.js → tool-ndknajfb.js} +25 -25
- package/dist/chunks/{instruction-discovery-q5nw5m1n.js → tool-ndqtf2h8.js} +6 -6
- package/dist/chunks/{instruction-discovery-nc13b7kg.js → tool-nzk3n54h.js} +19 -19
- package/dist/chunks/{instruction-discovery-n3tcsbg0.js → tool-p2fthcwt.js} +8 -8
- package/dist/chunks/{instruction-discovery-xka23amw.js → tool-p7t1r6rx.js} +3 -3
- package/dist/chunks/{instruction-discovery-bx8vz0h4.js → tool-p9dad75k.js} +42 -42
- package/dist/chunks/{instruction-discovery-qsy9vmnb.js → tool-pbcje335.js} +13 -13
- package/dist/chunks/{instruction-discovery-23pqda6t.js → tool-pf2hb43r.js} +4 -4
- package/dist/chunks/{instruction-discovery-pczeavr1.js → tool-pg4efk5v.js} +12 -12
- package/dist/chunks/{instruction-discovery-vde899zy.js → tool-pg6zqtd0.js} +3 -3
- package/dist/chunks/{instruction-discovery-amp9wmvg.js → tool-pjf8abb1.js} +14 -14
- package/dist/chunks/{instruction-discovery-pjvnvgmy.js → tool-pjvnvgmy.js} +1 -1
- package/dist/chunks/{instruction-discovery-pknna89w.js → tool-pknna89w.js} +1 -1
- package/dist/chunks/{instruction-discovery-tnkzhg87.js → tool-prwmz47j.js} +11 -11
- package/dist/chunks/{instruction-discovery-04th8f7h.js → tool-q0vx6mrg.js} +11 -11
- package/dist/chunks/{instruction-discovery-q0xm7vwc.js → tool-q0xm7vwc.js} +2 -2
- package/dist/chunks/{instruction-discovery-wbm4qvd4.js → tool-q4bnvgms.js} +182 -182
- package/dist/chunks/{instruction-discovery-nsqzp0rm.js → tool-qcjxs7e0.js} +26 -26
- package/dist/chunks/{instruction-discovery-1nv2cx5q.js → tool-qhyrk8n4.js} +11 -11
- package/dist/chunks/{instruction-discovery-f67tw5z1.js → tool-qkfezwh6.js} +16 -16
- package/dist/chunks/{instruction-discovery-qnc92qwc.js → tool-qnc92qwc.js} +1 -1
- package/dist/chunks/{instruction-discovery-qsdy395h.js → tool-qsdy395h.js} +1 -1
- package/dist/chunks/{instruction-discovery-k0jv87xe.js → tool-qws6d5dh.js} +18 -18
- package/dist/chunks/{instruction-discovery-dpx2dwcg.js → tool-r4w453tt.js} +15 -15
- package/dist/chunks/{instruction-discovery-dfe8djrf.js → tool-r98e92ep.js} +4 -4
- package/dist/chunks/{instruction-discovery-43486sav.js → tool-rbch4nfr.js} +18 -18
- package/dist/chunks/{instruction-discovery-rdw6cm16.js → tool-rdw6cm16.js} +1 -1
- package/dist/chunks/{instruction-discovery-hny7hqng.js → tool-rg7q0c5m.js} +27 -27
- package/dist/chunks/{instruction-discovery-vnchxsqg.js → tool-rh254cas.js} +20 -20
- package/dist/chunks/{instruction-discovery-rrbrp6k4.js → tool-rnk9zdcq.js} +35 -35
- package/dist/chunks/{instruction-discovery-x70xwrnv.js → tool-rtsswkxs.js} +11 -11
- package/dist/chunks/{instruction-discovery-z04yx1pf.js → tool-rvwqj9y7.js} +43 -43
- package/dist/chunks/{instruction-discovery-n1wv36jt.js → tool-rx58ztr1.js} +7 -7
- package/dist/chunks/{instruction-discovery-ermxvwhp.js → tool-s26hbv8p.js} +4 -4
- package/dist/chunks/{instruction-discovery-tc8zbv9g.js → tool-s73kxs4y.js} +27 -27
- package/dist/chunks/{instruction-discovery-4ky6jgdw.js → tool-sb3r03a7.js} +22 -22
- package/dist/chunks/{instruction-discovery-scgrse2b.js → tool-scgrse2b.js} +2 -2
- package/dist/chunks/{instruction-discovery-3j31p43m.js → tool-sg9xgrkp.js} +4 -4
- package/dist/chunks/{instruction-discovery-5yk7faxb.js → tool-sjgd5m2j.js} +9 -9
- package/dist/chunks/{instruction-discovery-0q1nq9gp.js → tool-sp2t3vey.js} +29 -29
- package/dist/chunks/{instruction-discovery-tazgh4e4.js → tool-tazgh4e4.js} +1 -1
- package/dist/chunks/{instruction-discovery-rvmf1nwp.js → tool-tb0c9yyk.js} +32 -32
- package/dist/chunks/{instruction-discovery-89znhe33.js → tool-tcezcvh9.js} +4 -4
- package/dist/chunks/{instruction-discovery-tdstcens.js → tool-tdstcens.js} +1 -1
- package/dist/chunks/{instruction-discovery-1pxz8ven.js → tool-tk14y25j.js} +5 -5
- package/dist/chunks/{instruction-discovery-g5e9pd1v.js → tool-tzhbwgz4.js} +35 -35
- package/dist/chunks/{instruction-discovery-g5cjy5x3.js → tool-v9k40k21.js} +9 -9
- package/dist/chunks/{instruction-discovery-fw1dz7t9.js → tool-va7zg5qg.js} +43 -43
- package/dist/chunks/{instruction-discovery-gcet201j.js → tool-var7mrn0.js} +54 -54
- package/dist/chunks/{instruction-discovery-veqvce7d.js → tool-veqvce7d.js} +1 -1
- package/dist/chunks/{instruction-discovery-0ntvdsg8.js → tool-vn72gsba.js} +4 -4
- package/dist/chunks/{instruction-discovery-sh2dkjxv.js → tool-vqzmbesx.js} +9 -9
- package/dist/chunks/{instruction-discovery-7d2na8gv.js → tool-vx3qjymf.js} +87 -87
- package/dist/chunks/{instruction-discovery-vzcthcp8.js → tool-vzcthcp8.js} +1 -1
- package/dist/chunks/{instruction-discovery-vzs5sf6e.js → tool-vzs5sf6e.js} +1 -1
- package/dist/chunks/{instruction-discovery-3z0hjn58.js → tool-w3nq1sqw.js} +9 -9
- package/dist/chunks/{instruction-discovery-p5ywxg46.js → tool-w3v0pvk9.js} +7 -7
- package/dist/chunks/{instruction-discovery-w3wsvvr9.js → tool-w3wsvvr9.js} +1 -1
- package/dist/chunks/{instruction-discovery-7b0ag747.js → tool-w9wcng5w.js} +12 -12
- package/dist/chunks/{instruction-discovery-wd87259q.js → tool-wd87259q.js} +1 -1
- package/dist/chunks/{instruction-discovery-pnn35psd.js → tool-wk3n8732.js} +5 -5
- package/dist/chunks/{instruction-discovery-1km3vx01.js → tool-wpd1znwd.js} +14 -14
- package/dist/chunks/{instruction-discovery-2tsm52y3.js → tool-wxyynt4w.js} +1 -1
- package/dist/chunks/{instruction-discovery-x1ezjp6w.js → tool-x1ezjp6w.js} +1 -1
- package/dist/chunks/{instruction-discovery-snnt13h7.js → tool-x2ywm3mq.js} +10 -10
- package/dist/chunks/{instruction-discovery-xpyr787a.js → tool-x6kcbe24.js} +6 -6
- package/dist/chunks/{instruction-discovery-pcf4v7ce.js → tool-xa1b8akp.js} +22 -22
- package/dist/chunks/{instruction-discovery-8n7rt79n.js → tool-xagah8e0.js} +5 -5
- package/dist/chunks/{instruction-discovery-dtp0rsty.js → tool-xdf1fj3c.js} +45 -45
- package/dist/chunks/{instruction-discovery-nmpw1asp.js → tool-xf69e5gb.js} +8 -8
- package/dist/chunks/{instruction-discovery-wb8phxs5.js → tool-xhf2mpzw.js} +23 -23
- package/dist/chunks/{instruction-discovery-dmqcgk4z.js → tool-xkntkrq7.js} +5 -5
- package/dist/chunks/{instruction-discovery-nc120egx.js → tool-xv2d93bz.js} +8 -8
- package/dist/chunks/{instruction-discovery-01rwjjcz.js → tool-xvfphvy7.js} +42 -42
- package/dist/chunks/{instruction-discovery-vd50vaq5.js → tool-xw2p2fks.js} +15 -15
- package/dist/chunks/{instruction-discovery-qxjc9qry.js → tool-xyafkbt0.js} +3 -3
- package/dist/chunks/{instruction-discovery-y1fvbwt7.js → tool-y1fvbwt7.js} +1 -1
- package/dist/chunks/{instruction-discovery-2s6zkav1.js → tool-yexd41ms.js} +14 -14
- package/dist/chunks/{instruction-discovery-yrhqyw5v.js → tool-yrhqyw5v.js} +1 -1
- package/dist/chunks/{instruction-discovery-z0bkrqjs.js → tool-z0bkrqjs.js} +1 -1
- package/dist/chunks/{instruction-discovery-vs9qsgvh.js → tool-zb7rsj08.js} +24 -24
- package/dist/chunks/{instruction-discovery-xsa6f9c6.js → tool-ze55f0m3.js} +22 -22
- package/dist/chunks/{instruction-discovery-dnwv4286.js → tool-zepa019x.js} +18 -18
- package/dist/chunks/{instruction-discovery-a93qqd3r.js → tool-zkd6xqbv.js} +1 -1
- package/dist/chunks/tool-zm2m1bym.js +252 -0
- package/dist/chunks/{instruction-discovery-zr2ceqn5.js → tool-zr2ceqn5.js} +1 -1
- package/dist/chunks/{instruction-discovery-zxq2ej10.js → tool-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +125 -125
- package/dist/config/plugin/command.js +214 -214
- package/dist/config/plugin/compaction.js +161 -161
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +124 -124
- package/dist/config/plugin/image.js +123 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +125 -125
- package/dist/config/plugin/mcp.js +132 -132
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +125 -125
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +144 -144
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +126 -126
- package/dist/config/plugin/tool-output.js +124 -124
- package/dist/config/plugin/websearch.js +124 -124
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +126 -126
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +66 -66
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +371 -371
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +70 -70
- package/dist/file-access.js +100 -100
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +227 -227
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +108 -108
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +101 -101
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +91 -91
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +362 -362
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +76 -76
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +131 -131
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +359 -359
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +105 -101
- package/dist/mcp/index.js +103 -103
- package/dist/mcp/instructions.js +129 -129
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +102 -102
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +105 -105
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +86 -86
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +104 -104
- package/dist/plugin/command.js +100 -100
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +334 -334
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +124 -124
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +122 -122
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +122 -122
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +96 -96
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +122 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +163 -163
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +139 -139
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +349 -349
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +121 -121
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +225 -225
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +90 -90
- package/dist/provider.js +99 -99
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +97 -97
- package/dist/reference/instructions.js +87 -87
- package/dist/reference.js +89 -89
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +129 -129
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +221 -221
- package/dist/session/execution.js +123 -123
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +86 -86
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +113 -113
- package/dist/session/runner/retry.js +2 -2
- package/dist/session/runner/step.js +123 -123
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +171 -171
- package/dist/session/shell.js +137 -137
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +210 -210
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +217 -217
- package/dist/session/usage.js +1 -1
- package/dist/session.js +214 -214
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +137 -137
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +110 -110
- package/dist/snapshot.js +89 -89
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +126 -126
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +120 -120
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +123 -123
- package/dist/tool/plugin/shell.js +213 -213
- package/dist/tool/plugin/skill.js +111 -111
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/instruction-discovery-10b5w8nt.js +0 -252
- package/dist/chunks/instruction-discovery-ahwc150j.js +0 -507
- package/dist/chunks/instruction-discovery-h1j66rmt.js +0 -26
- package/dist/chunks/instruction-discovery-p2h6zvwc.js +0 -18
- /package/dist/chunks/{instruction-discovery-0qkdqm5v.js → tool-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-0zkw76rk.js → tool-0zkw76rk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-17cy0kzp.js → tool-17cy0kzp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1cnp2v09.js → tool-1cnp2v09.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1kg9ymc8.js → tool-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-24dcb14g.js → tool-24dcb14g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2710q6r3.js → tool-2710q6r3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2axfhc9x.js → tool-2axfhc9x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2c3vjs8z.js → tool-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-34c7v6d4.js → tool-34c7v6d4.js} +0 -0
- /package/dist/chunks/{instruction-discovery-359p4xyc.js → tool-359p4xyc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3asan66x.js → tool-3asan66x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3v8g72cx.js → tool-3v8g72cx.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3w5fmr99.js → tool-3w5fmr99.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3wcehsnq.js → tool-3wcehsnq.js} +0 -0
- /package/dist/chunks/{instruction-discovery-43n2bw4t.js → tool-43n2bw4t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4knz6hnm.js → tool-4knz6hnm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4vcrnpx2.js → tool-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4y7fprxs.js → tool-4y7fprxs.js} +0 -0
- /package/dist/chunks/{instruction-discovery-53557ph1.js → tool-53557ph1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-550bvhaj.js → tool-550bvhaj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-5qd3pb7m.js → tool-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{instruction-discovery-6prwharc.js → tool-6prwharc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7akdwqpd.js → tool-7akdwqpd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7m9af43g.js → tool-7m9af43g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-822emrt2.js → tool-822emrt2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-88xbtdfr.js → tool-88xbtdfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8n3pysct.js → tool-8n3pysct.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8wj87zfr.js → tool-8wj87zfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9a4afbnw.js → tool-9a4afbnw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9rqn6x4v.js → tool-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-a6k6eb26.js → tool-a6k6eb26.js} +0 -0
- /package/dist/chunks/{instruction-discovery-af5trqkr.js → tool-af5trqkr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-afrmfg78.js → tool-afrmfg78.js} +0 -0
- /package/dist/chunks/{instruction-discovery-aqzs7mqg.js → tool-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{instruction-discovery-atq7p7m5.js → tool-atq7p7m5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bkyjaxrp.js → tool-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bmr6ed5q.js → tool-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cf4snx6d.js → tool-cf4snx6d.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cvy3z8tj.js → tool-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9fn303g.js → tool-d9fn303g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9jj8t3e.js → tool-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dajrwvna.js → tool-dajrwvna.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dap0rakb.js → tool-dap0rakb.js} +0 -0
- /package/dist/chunks/{instruction-discovery-df08tz66.js → tool-df08tz66.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dy18nga0.js → tool-dy18nga0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e5kj55wp.js → tool-e5kj55wp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e73j6tqm.js → tool-e73j6tqm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ec1grn59.js → tool-ec1grn59.js} +0 -0
- /package/dist/chunks/{instruction-discovery-eh3zwz77.js → tool-eh3zwz77.js} +0 -0
- /package/dist/chunks/{instruction-discovery-emrn6kk6.js → tool-emrn6kk6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f0mxakyp.js → tool-f0mxakyp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f6n9ztr4.js → tool-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{instruction-discovery-faypxj3z.js → tool-faypxj3z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fd410y7t.js → tool-fd410y7t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fxgpk5d8.js → tool-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g4wezp1m.js → tool-g4wezp1m.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g86h250q.js → tool-g86h250q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gebd4c9n.js → tool-gebd4c9n.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gftt206x.js → tool-gftt206x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hjbc5kem.js → tool-hjbc5kem.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hk9envan.js → tool-hk9envan.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j2ntwpah.js → tool-j2ntwpah.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j5zkgpj8.js → tool-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jjkms2e6.js → tool-jjkms2e6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jr7sbwjy.js → tool-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jwfs4k6c.js → tool-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jzg6c2d5.js → tool-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-mp448xyj.js → tool-mp448xyj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-msx8hqn2.js → tool-msx8hqn2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n05xt0ee.js → tool-n05xt0ee.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n3j8tn72.js → tool-n3j8tn72.js} +0 -0
- /package/dist/chunks/{instruction-discovery-njntx4h6.js → tool-njntx4h6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q3sfg36h.js → tool-q3sfg36h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q74kybfr.js → tool-q74kybfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qaymkmh1.js → tool-qaymkmh1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qb87gjwd.js → tool-qb87gjwd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qfa1cgps.js → tool-qfa1cgps.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qg3g05ea.js → tool-qg3g05ea.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qrg20bc0.js → tool-qrg20bc0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-rcb2kzg1.js → tool-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-sdp7kfr6.js → tool-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-sk3qaz4a.js → tool-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ssg3fenm.js → tool-ssg3fenm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-w803qqfp.js → tool-w803qqfp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wc3fc9cn.js → tool-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wer8tq1h.js → tool-wer8tq1h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wtztk69x.js → tool-wtztk69x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x0ckcb58.js → tool-x0ckcb58.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x61499pn.js → tool-x61499pn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y44na4kk.js → tool-y44na4kk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y8cydn3q.js → tool-y8cydn3q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y8f7s663.js → tool-y8f7s663.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ygaqb7jw.js → tool-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ym463w8f.js → tool-ym463w8f.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z5v4ffb3.js → tool-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z9919s4g.js → tool-z9919s4g.js} +0 -0
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./tool-jad3eb5n.js";
|
|
5
5
|
import {
|
|
6
6
|
makeUnsafe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./tool-dpkg50ah.js";
|
|
8
8
|
import {
|
|
9
9
|
Binding2,
|
|
10
10
|
RegistryService2,
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
node63
|
|
12
|
+
} from "./tool-h6nxw0pd.js";
|
|
13
13
|
import {
|
|
14
14
|
WorkspaceTable2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./tool-faypxj3z.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./tool-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/workspace.ts
|
|
21
21
|
var exports_workspace = {};
|
|
22
22
|
__export(exports_workspace, {
|
|
23
23
|
CreateConflict: () => CreateConflict2,
|
|
24
|
-
ID: () =>
|
|
25
|
-
Info: () =>
|
|
24
|
+
ID: () => ID7,
|
|
25
|
+
Info: () => Info21,
|
|
26
26
|
NotFound: () => NotFound3,
|
|
27
|
-
Service: () =>
|
|
27
|
+
Service: () => Service60,
|
|
28
28
|
Workspace: () => exports_workspace,
|
|
29
|
-
configured: () =>
|
|
30
|
-
node: () =>
|
|
29
|
+
configured: () => configured7,
|
|
30
|
+
node: () => node62
|
|
31
31
|
});
|
|
32
32
|
import { Workspace } from "@opencode/schema/workspace";
|
|
33
33
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
@@ -35,10 +35,10 @@ import { eq } from "drizzle-orm";
|
|
|
35
35
|
import { Clock, Context, Deferred, Duration, Effect, Exit, FiberSet, Layer, Ref, Schedule, Schema, Scope } from "effect";
|
|
36
36
|
import { systemError } from "effect/PlatformError";
|
|
37
37
|
import { make } from "effect/unstable/process/ChildProcessSpawner";
|
|
38
|
-
var
|
|
38
|
+
var ID7 = Workspace.ID;
|
|
39
39
|
|
|
40
|
-
class
|
|
41
|
-
id:
|
|
40
|
+
class Info21 extends Schema.Class("Workspace.Info")({
|
|
41
|
+
id: ID7,
|
|
42
42
|
provider: Schema.String,
|
|
43
43
|
binding: Binding2,
|
|
44
44
|
createdAt: Schema.Number,
|
|
@@ -46,24 +46,24 @@ class Info29 extends Schema.Class("Workspace.Info")({
|
|
|
46
46
|
}) {
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
class NotFound3 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID:
|
|
49
|
+
class NotFound3 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID: ID7 }) {
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
class CreateConflict2 extends Schema.TaggedError()("Workspace.CreateConflict", {
|
|
53
|
-
workspaceID:
|
|
53
|
+
workspaceID: ID7,
|
|
54
54
|
provider: Schema.String,
|
|
55
55
|
existingProvider: Schema.String
|
|
56
56
|
}) {
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
class
|
|
59
|
+
class Service60 extends Context.Service()("@opencode/Workspace") {
|
|
60
60
|
}
|
|
61
|
-
var
|
|
62
|
-
service:
|
|
61
|
+
var configured7 = (options = {}) => makeGlobalNode({
|
|
62
|
+
service: Service60,
|
|
63
63
|
layer: layer(options),
|
|
64
|
-
deps: [node88,
|
|
64
|
+
deps: [node88, node63]
|
|
65
65
|
});
|
|
66
|
-
var layer = (options) => Layer.effect(
|
|
66
|
+
var layer = (options) => Layer.effect(Service60, Effect.gen(function* () {
|
|
67
67
|
const db = (yield* Service84).db;
|
|
68
68
|
const registry = yield* RegistryService2;
|
|
69
69
|
const lifetime = yield* Scope.Scope;
|
|
@@ -80,7 +80,7 @@ var layer = (options) => Layer.effect(Service75, Effect.gen(function* () {
|
|
|
80
80
|
return row;
|
|
81
81
|
});
|
|
82
82
|
const saveBinding = (workspaceID, binding) => db.update(WorkspaceTable2).set({ binding }).where(eq(WorkspaceTable2.id, workspaceID)).run().pipe(Effect.orDie);
|
|
83
|
-
const info = (row, binding) => new
|
|
83
|
+
const info = (row, binding) => new Info21({
|
|
84
84
|
id: row.id,
|
|
85
85
|
provider: row.provider,
|
|
86
86
|
binding,
|
|
@@ -154,9 +154,9 @@ var layer = (options) => Layer.effect(Service75, Effect.gen(function* () {
|
|
|
154
154
|
yield* Scope.close(connection.scope, Exit.void);
|
|
155
155
|
}).pipe(Effect.catchCause((cause) => Effect.logError("workspace idle suspension failed", cause)))), { concurrency: "unbounded", discard: true });
|
|
156
156
|
}).pipe(Effect.repeat(Schedule.spaced(options.pollInterval ?? Duration.minutes(1))), Effect.forkScoped);
|
|
157
|
-
return
|
|
157
|
+
return Service60.of({
|
|
158
158
|
create: Effect.fn("Workspace.create")(function* (input) {
|
|
159
|
-
const workspaceID = input.id ??
|
|
159
|
+
const workspaceID = input.id ?? ID7.create();
|
|
160
160
|
const existing = yield* db.select({ provider: WorkspaceTable2.provider }).from(WorkspaceTable2).where(eq(WorkspaceTable2.id, workspaceID)).get().pipe(Effect.orDie);
|
|
161
161
|
if (existing) {
|
|
162
162
|
if (existing.provider === input.provider)
|
|
@@ -221,6 +221,6 @@ var layer = (options) => Layer.effect(Service75, Effect.gen(function* () {
|
|
|
221
221
|
})
|
|
222
222
|
});
|
|
223
223
|
}));
|
|
224
|
-
var
|
|
224
|
+
var node62 = configured7();
|
|
225
225
|
|
|
226
|
-
export {
|
|
226
|
+
export { ID7, Info21, NotFound3, CreateConflict2, Service60, configured7, node62, exports_workspace };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-jad3eb5n.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service43
|
|
6
|
+
} from "./tool-4mwpykj0.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitActivation2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./tool-ht5y0zrb.js";
|
|
10
10
|
import {
|
|
11
11
|
provenance2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./tool-gw7cjrad.js";
|
|
13
13
|
import {
|
|
14
14
|
preview2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./tool-4pf9cp6z.js";
|
|
16
16
|
import {
|
|
17
17
|
baseTranscript2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./tool-16rtyza8.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Service29
|
|
21
|
+
} from "./tool-vx3qjymf.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./tool-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/session/generate.ts
|
|
27
27
|
var exports_generate2 = {};
|
|
@@ -32,12 +32,12 @@ __export(exports_generate2, {
|
|
|
32
32
|
import { LLMClient, Message } from "@opencode/ai";
|
|
33
33
|
import { Effect } from "effect";
|
|
34
34
|
var generate2 = Effect.fn("SessionGenerate.generate")(function* (input) {
|
|
35
|
-
const instances = yield*
|
|
35
|
+
const instances = yield* Service43;
|
|
36
36
|
const database = yield* Service84;
|
|
37
37
|
const llm = yield* LLMClient.Service;
|
|
38
38
|
return yield* Effect.gen(function* () {
|
|
39
39
|
yield* awaitActivation2;
|
|
40
|
-
const context = yield*
|
|
40
|
+
const context = yield* Service29;
|
|
41
41
|
const selection = yield* context.select(input.session.id);
|
|
42
42
|
const model = yield* context.resolveModel(selection.session);
|
|
43
43
|
const history = yield* preview2(database.db, selection.session.id, selection.instructions, provenance2(model) ?? "local");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/tool/plugin/opencode.ts
|
|
6
6
|
var exports_opencode = {};
|
|
@@ -8,7 +8,7 @@ __export(exports_opencode, {
|
|
|
8
8
|
ModelsInput: () => ModelsInput2,
|
|
9
9
|
MoveInput: () => MoveInput2,
|
|
10
10
|
OpenCodeTools: () => exports_opencode,
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin5,
|
|
12
12
|
RenameInput: () => RenameInput2
|
|
13
13
|
});
|
|
14
14
|
import { SystemPart, ToolFailure } from "@opencode/ai";
|
|
@@ -64,7 +64,7 @@ var ModelsOutput = Schema.Struct({
|
|
|
64
64
|
total: Schema.Int.annotate({ description: "Number of matching models across all pages." }),
|
|
65
65
|
next: Schema.NullOr(Schema.Int).annotate({ description: "Offset of the next page, or null on the last page." })
|
|
66
66
|
});
|
|
67
|
-
var
|
|
67
|
+
var Plugin5 = {
|
|
68
68
|
id: "opencode.tools",
|
|
69
69
|
effect: Effect.fn("OpenCodeTools.Plugin")(function* (ctx) {
|
|
70
70
|
const hook = (event) => Effect.sync(() => {
|
|
@@ -161,4 +161,4 @@ var Plugin42 = {
|
|
|
161
161
|
})
|
|
162
162
|
};
|
|
163
163
|
|
|
164
|
-
export { RenameInput2, MoveInput2, ModelsInput2,
|
|
164
|
+
export { RenameInput2, MoveInput2, ModelsInput2, Plugin5, exports_opencode };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./tool-jad3eb5n.js";
|
|
5
5
|
import {
|
|
6
6
|
EventSequenceTable2,
|
|
7
7
|
EventTable2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./tool-2710q6r3.js";
|
|
9
9
|
import {
|
|
10
10
|
makeUnsafe2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./tool-dpkg50ah.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./tool-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/bus.ts
|
|
17
17
|
var exports_bus = {};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID9
|
|
3
|
+
} from "./tool-5spq5w86.js";
|
|
4
4
|
import {
|
|
5
5
|
iife2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-1kg9ymc8.js";
|
|
7
7
|
import {
|
|
8
8
|
configuredSettings2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./tool-4ve89d8e.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/provider/cloudflare-workers-ai.ts
|
|
12
12
|
import { Effect } from "effect";
|
|
13
13
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
14
14
|
import { Form } from "@opencode/schema/form";
|
|
15
|
-
var providerID =
|
|
15
|
+
var providerID = ID9.make("cloudflare-workers-ai");
|
|
16
16
|
var CloudflareWorkersAIPlugin2 = define({
|
|
17
17
|
id: "opencode.provider.cloudflare.workers.ai",
|
|
18
18
|
effect: Effect.fn(function* (ctx) {
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./tool-5rrd0wgj.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./tool-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
10
|
key2
|
|
11
|
-
} from "./
|
|
12
|
-
import {
|
|
13
|
-
ID9,
|
|
14
|
-
Service60,
|
|
15
|
-
node63,
|
|
16
|
-
Event13
|
|
17
|
-
} from "./instruction-discovery-mmha7pa6.js";
|
|
11
|
+
} from "./tool-068serwz.js";
|
|
18
12
|
import {
|
|
13
|
+
ID16,
|
|
19
14
|
Service80,
|
|
20
|
-
node84
|
|
21
|
-
|
|
15
|
+
node84,
|
|
16
|
+
Event19
|
|
17
|
+
} from "./tool-cxhqznm4.js";
|
|
18
|
+
import {
|
|
19
|
+
Service75,
|
|
20
|
+
node79
|
|
21
|
+
} from "./tool-dxjv2ykb.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./tool-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/aisdk-native.ts
|
|
27
27
|
var exports_aisdk_native = {};
|
|
@@ -38,13 +38,13 @@ __export(exports_provider3, {
|
|
|
38
38
|
AISDK_PREFIX: () => AISDK_PREFIX2,
|
|
39
39
|
Compaction: () => Compaction3,
|
|
40
40
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS3,
|
|
41
|
-
Event: () =>
|
|
42
|
-
ID: () =>
|
|
43
|
-
Info: () =>
|
|
41
|
+
Event: () => Event15,
|
|
42
|
+
ID: () => ID9,
|
|
43
|
+
Info: () => Info23,
|
|
44
44
|
LoadError: () => LoadError3,
|
|
45
45
|
Provider: () => exports_provider3,
|
|
46
46
|
Request: () => Request2,
|
|
47
|
-
Service: () =>
|
|
47
|
+
Service: () => Service66,
|
|
48
48
|
Settings: () => Settings2,
|
|
49
49
|
Transport: () => Transport2,
|
|
50
50
|
aisdk: () => aisdk2,
|
|
@@ -54,7 +54,7 @@ __export(exports_provider3, {
|
|
|
54
54
|
mergeOverlay: () => mergeOverlay2,
|
|
55
55
|
modelSettings: () => modelSettings2,
|
|
56
56
|
nativeSettings: () => nativeSettings2,
|
|
57
|
-
node: () =>
|
|
57
|
+
node: () => node70,
|
|
58
58
|
packageName: () => packageName2,
|
|
59
59
|
timeout: () => timeout2,
|
|
60
60
|
timeouts: () => timeouts2
|
|
@@ -68,8 +68,8 @@ import { isRecord } from "@opencode/ai/utils/record";
|
|
|
68
68
|
import { importModule, resolveModule } from "@opencode/util/runtime-import";
|
|
69
69
|
import { Credential } from "@opencode/schema/credential";
|
|
70
70
|
import { freeze } from "immer";
|
|
71
|
-
import { Event as
|
|
72
|
-
var
|
|
71
|
+
import { Event as Event15 } from "@opencode/schema/provider";
|
|
72
|
+
var ID9 = Provider.ID;
|
|
73
73
|
var AISDK_PREFIX2 = "aisdk:";
|
|
74
74
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
75
75
|
var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
|
|
@@ -229,9 +229,9 @@ var Request2 = Provider.Request;
|
|
|
229
229
|
var Compaction3 = Provider.Compaction;
|
|
230
230
|
var Transport2 = Provider.Transport;
|
|
231
231
|
var Settings2 = Provider.Settings;
|
|
232
|
-
var
|
|
232
|
+
var Info23 = Provider.Info;
|
|
233
233
|
|
|
234
|
-
class
|
|
234
|
+
class Service66 extends Context.Service()("@opencode/Provider") {
|
|
235
235
|
}
|
|
236
236
|
var definitions = new WeakMap;
|
|
237
237
|
function index(providerID, models) {
|
|
@@ -244,10 +244,10 @@ function index(providerID, models) {
|
|
|
244
244
|
definitions.set(models, indexes);
|
|
245
245
|
return result;
|
|
246
246
|
}
|
|
247
|
-
var layer = Layer.effect(
|
|
247
|
+
var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
248
248
|
const bus = yield* Service83;
|
|
249
|
-
const integrations = yield*
|
|
250
|
-
const location = yield*
|
|
249
|
+
const integrations = yield* Service80;
|
|
250
|
+
const location = yield* Service75;
|
|
251
251
|
const state = create3({
|
|
252
252
|
name: "provider",
|
|
253
253
|
initial: () => new Map,
|
|
@@ -258,7 +258,7 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
258
258
|
const current = records.get(id);
|
|
259
259
|
if (current)
|
|
260
260
|
return current;
|
|
261
|
-
const added = { provider:
|
|
261
|
+
const added = { provider: Info23.empty(id), models: new Map };
|
|
262
262
|
records.set(id, added);
|
|
263
263
|
maps.add(added.models);
|
|
264
264
|
return added;
|
|
@@ -339,7 +339,7 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
339
339
|
const available = Array.from(records.values()).filter((record) => {
|
|
340
340
|
if (record.provider.activation === "disabled")
|
|
341
341
|
return false;
|
|
342
|
-
const integration = byID.get(record.provider.integrationID ??
|
|
342
|
+
const integration = byID.get(record.provider.integrationID ?? ID16.make(record.provider.id));
|
|
343
343
|
if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
|
|
344
344
|
return false;
|
|
345
345
|
if (record.provider.activation === "enabled")
|
|
@@ -365,8 +365,8 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
365
365
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
366
366
|
});
|
|
367
367
|
});
|
|
368
|
-
yield* bus.subscribe([
|
|
369
|
-
return
|
|
368
|
+
yield* bus.subscribe([Event19.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
369
|
+
return Service66.of({
|
|
370
370
|
transform: state.transform,
|
|
371
371
|
reload: state.reload,
|
|
372
372
|
get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
@@ -375,7 +375,7 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
375
375
|
snapshot
|
|
376
376
|
});
|
|
377
377
|
}));
|
|
378
|
-
var
|
|
378
|
+
var node70 = makeLocationNode({ service: Service66, layer, deps: [node87, node84, node79] });
|
|
379
379
|
var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
380
380
|
const module = yield* Effect.tryPromise({
|
|
381
381
|
try: () => {
|
|
@@ -647,4 +647,4 @@ var Legacy = Schema2.StructWithRest(Schema2.Struct({
|
|
|
647
647
|
}), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
|
|
648
648
|
var decode = Schema2.decodeUnknownSync(Legacy);
|
|
649
649
|
|
|
650
|
-
export { rewrite2, native2, exports_aisdk_native,
|
|
650
|
+
export { rewrite2, native2, exports_aisdk_native, ID9, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, timeout2, timeouts2, mergeOverlay2, mergeHeaders2, Request2, Compaction3, Transport2, Settings2, Info23, Service66, node70, exports_provider3, Event15 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WebSocketConstructor2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-y8cydn3q.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/effect/app-node-platform.ts
|
|
9
9
|
var exports_app_node_platform = {};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/instance.ts
|
|
6
6
|
var exports_instance2 = {};
|
|
7
7
|
__export(exports_instance2, {
|
|
8
8
|
InstancePlugins: () => exports_instance2,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service2,
|
|
10
10
|
bound: () => bound2,
|
|
11
|
-
node: () =>
|
|
11
|
+
node: () => node3
|
|
12
12
|
});
|
|
13
13
|
import { Context, Layer } from "effect";
|
|
14
14
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service2 extends Context.Service()("@opencode/InstancePlugins") {
|
|
17
17
|
}
|
|
18
|
-
var
|
|
19
|
-
service:
|
|
18
|
+
var node3 = makeLocationNode({
|
|
19
|
+
service: Service2,
|
|
20
20
|
layer: bound2([]),
|
|
21
21
|
deps: []
|
|
22
22
|
});
|
|
@@ -26,7 +26,7 @@ function bound2(plugins) {
|
|
|
26
26
|
throw new Error(`duplicate instance plugin ids: ${duplicates.map((plugin) => plugin.id).join(", ")}`);
|
|
27
27
|
}
|
|
28
28
|
const stamped = plugins.map((plugin) => ({ ...plugin, revision: "instance", source: { type: "sdk" } }));
|
|
29
|
-
return Layer.succeed(
|
|
29
|
+
return Layer.succeed(Service2, Service2.of({ all: () => stamped }));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export {
|
|
32
|
+
export { Service2, node3, bound2, exports_instance2 };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
convertToOpenAICompatibleChatMessages2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-fxgpk5d8.js";
|
|
4
4
|
import {
|
|
5
5
|
getResponseMetadata2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-g4wezp1m.js";
|
|
7
7
|
import {
|
|
8
8
|
mapOpenAICompatibleFinishReason2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./tool-x61499pn.js";
|
|
10
10
|
import {
|
|
11
11
|
openaiCompatibleProviderOptions2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./tool-af5trqkr.js";
|
|
13
13
|
import {
|
|
14
14
|
defaultOpenAICompatibleErrorStructure2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./tool-afrmfg78.js";
|
|
16
16
|
import {
|
|
17
17
|
prepareTools2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./tool-x0ckcb58.js";
|
|
19
19
|
|
|
20
20
|
// src/github-copilot/chat/openai-compatible-chat-language-model.ts
|
|
21
21
|
import {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID9
|
|
3
|
+
} from "./tool-5spq5w86.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/prompt-cache-key.ts
|
|
6
6
|
import { Effect } from "effect";
|
|
@@ -24,7 +24,7 @@ var PromptCacheKeyPlugin2 = define({
|
|
|
24
24
|
effect: Effect.fn(function* (ctx) {
|
|
25
25
|
yield* ctx.model.transform((models) => {
|
|
26
26
|
for (const id of providerIDs) {
|
|
27
|
-
const providerID =
|
|
27
|
+
const providerID = ID9.make(id);
|
|
28
28
|
for (const model of models.list(providerID)) {
|
|
29
29
|
models.update(model.providerID, model.id, (draft) => {
|
|
30
30
|
draft.compatibility = { ...draft.compatibility, supportsPromptCacheKey: true };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./tool-5rrd0wgj.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service64,
|
|
7
|
+
node68
|
|
8
|
+
} from "./tool-0xvj5dy1.js";
|
|
9
9
|
import {
|
|
10
10
|
create3
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./tool-rdw6cm16.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./tool-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/websearch.ts
|
|
17
17
|
var exports_websearch3 = {};
|
|
18
18
|
__export(exports_websearch3, {
|
|
19
19
|
DisabledError: () => DisabledError2,
|
|
20
|
-
Event: () =>
|
|
21
|
-
ID: () =>
|
|
22
|
-
Input: () =>
|
|
20
|
+
Event: () => Event5,
|
|
21
|
+
ID: () => ID4,
|
|
22
|
+
Input: () => Input13,
|
|
23
23
|
Provider: () => Provider2,
|
|
24
24
|
ProviderKey: () => ProviderKey2,
|
|
25
25
|
ProviderNotFoundError: () => ProviderNotFoundError2,
|
|
@@ -28,29 +28,29 @@ __export(exports_websearch3, {
|
|
|
28
28
|
Response: () => Response2,
|
|
29
29
|
Result: () => Result2,
|
|
30
30
|
Selection: () => Selection2,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service21,
|
|
32
32
|
WebSearch: () => exports_websearch3,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node24
|
|
34
34
|
});
|
|
35
35
|
import { WebSearch } from "@opencode/schema/websearch";
|
|
36
36
|
import { SessionEvent } from "@opencode/schema/session-event";
|
|
37
37
|
import { Clock, Context, Effect, Layer, Option, Schema, Stream } from "effect";
|
|
38
38
|
import { HttpClientError } from "effect/unstable/http";
|
|
39
39
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
40
|
-
import { Event as
|
|
41
|
-
var
|
|
40
|
+
import { Event as Event5 } from "@opencode/schema/websearch";
|
|
41
|
+
var ID4 = WebSearch.ID;
|
|
42
42
|
var Provider2 = WebSearch.Provider;
|
|
43
|
-
var
|
|
43
|
+
var Input13 = WebSearch.Input;
|
|
44
44
|
var Result2 = WebSearch.Result;
|
|
45
45
|
var Response2 = WebSearch.Response;
|
|
46
46
|
var ProviderKey2 = "websearch:provider";
|
|
47
|
-
var Selection2 = Schema.Union([
|
|
47
|
+
var Selection2 = Schema.Union([ID4, Schema.Literal("random"), Schema.Literal(false)]);
|
|
48
48
|
|
|
49
49
|
class ProviderRequiredError2 extends Schema.TaggedError()("WebSearch.ProviderRequired", {}) {
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
class ProviderNotFoundError2 extends Schema.TaggedError()("WebSearch.ProviderNotFound", {
|
|
53
|
-
providerID:
|
|
53
|
+
providerID: ID4
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -58,16 +58,16 @@ class DisabledError2 extends Schema.TaggedError()("WebSearch.Disabled", {}) {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
class RequestError2 extends Schema.TaggedError()("WebSearch.Request", {
|
|
61
|
-
providerID:
|
|
61
|
+
providerID: ID4,
|
|
62
62
|
cause: Schema.Defect()
|
|
63
63
|
}) {
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
class
|
|
66
|
+
class Service21 extends Context.Service()("@opencode/WebSearch") {
|
|
67
67
|
}
|
|
68
|
-
var layer = Layer.effect(
|
|
68
|
+
var layer = Layer.effect(Service21, Effect.gen(function* () {
|
|
69
69
|
const bus = yield* Service83;
|
|
70
|
-
const kv = yield*
|
|
70
|
+
const kv = yield* Service64;
|
|
71
71
|
const decodeResults = Schema.decodeUnknownEffect(Schema.Array(Result2));
|
|
72
72
|
const cooldowns = new Map;
|
|
73
73
|
const preferred = new Map;
|
|
@@ -124,7 +124,7 @@ var layer = Layer.effect(Service38, Effect.gen(function* () {
|
|
|
124
124
|
}
|
|
125
125
|
return choice ? state.get().providers.get(choice) : undefined;
|
|
126
126
|
});
|
|
127
|
-
return
|
|
127
|
+
return Service21.of({
|
|
128
128
|
transform: state.transform,
|
|
129
129
|
reload: state.reload,
|
|
130
130
|
providers: Effect.fn("WebSearch.providers")(function* () {
|
|
@@ -184,10 +184,10 @@ function cooldownMillis(value, now) {
|
|
|
184
184
|
const date = Date.parse(value);
|
|
185
185
|
return Number.isFinite(date) ? Math.max(0, date - now) : 60000;
|
|
186
186
|
}
|
|
187
|
-
var
|
|
188
|
-
service:
|
|
187
|
+
var node24 = makeLocationNode({
|
|
188
|
+
service: Service21,
|
|
189
189
|
layer,
|
|
190
|
-
deps: [node87,
|
|
190
|
+
deps: [node87, node68]
|
|
191
191
|
});
|
|
192
192
|
|
|
193
|
-
export {
|
|
193
|
+
export { ID4, Provider2, Input13, Result2, Response2, ProviderKey2, Selection2, ProviderRequiredError2, ProviderNotFoundError2, DisabledError2, RequestError2, Service21, node24, exports_websearch3, Event5 };
|