@opencode/core 0.0.0-dev-20297 → 0.0.0-dev-20303
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 +83 -83
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +73 -73
- package/dist/chunks/{vcs-h5vcs21w.js → ripgrep-00bkszwx.js} +23 -23
- package/dist/chunks/{vcs-5gwm7s57.js → ripgrep-0939078r.js} +3 -3
- package/dist/chunks/{vcs-9jzp6rtr.js → ripgrep-0996nyz8.js} +9 -9
- package/dist/chunks/{vcs-kzcxnww5.js → ripgrep-0ahrpcjw.js} +7 -7
- package/dist/chunks/{vcs-ymss648d.js → ripgrep-0b5t2wwf.js} +9 -9
- package/dist/chunks/{vcs-8jxztqqt.js → ripgrep-0f9afca0.js} +5 -5
- package/dist/chunks/{vcs-5k1yf8nh.js → ripgrep-0j9j0cr0.js} +22 -22
- package/dist/chunks/{vcs-0paq2nw3.js → ripgrep-0paq2nw3.js} +1 -1
- package/dist/chunks/{vcs-0a1dfz7r.js → ripgrep-18qa6r1n.js} +16 -16
- package/dist/chunks/{vcs-72f4v86y.js → ripgrep-1d3bftpa.js} +11 -11
- package/dist/chunks/{vcs-1dazxqgg.js → ripgrep-1dazxqgg.js} +2 -2
- package/dist/chunks/{vcs-pxpwb23y.js → ripgrep-1jd7dvgb.js} +17 -17
- package/dist/chunks/{vcs-wr6f3qv2.js → ripgrep-1m0xqqrr.js} +14 -14
- package/dist/chunks/{vcs-cf7p89xb.js → ripgrep-1nkg8qc4.js} +12 -12
- package/dist/chunks/{vcs-56gdpj1q.js → ripgrep-1ygqh575.js} +9 -9
- package/dist/chunks/{vcs-21r38tys.js → ripgrep-21r38tys.js} +1 -1
- package/dist/chunks/{vcs-2a5m3afh.js → ripgrep-2a5m3afh.js} +1 -1
- package/dist/chunks/{vcs-37sfe3bm.js → ripgrep-2pdg46mn.js} +11 -11
- package/dist/chunks/{vcs-zd5bv8nv.js → ripgrep-2qtr0tge.js} +44 -44
- package/dist/chunks/{vcs-755ktwre.js → ripgrep-2t95j9c0.js} +24 -24
- package/dist/chunks/{vcs-qv52y0kk.js → ripgrep-2x0wkexj.js} +22 -22
- package/dist/chunks/{vcs-18296zga.js → ripgrep-2xqghjp6.js} +3 -3
- package/dist/chunks/ripgrep-31wx1wqg.js +424 -0
- package/dist/chunks/{vcs-rp8jz6x1.js → ripgrep-35agz59w.js} +4 -4
- package/dist/chunks/{vcs-vktfeg91.js → ripgrep-37m9xwpn.js} +24 -24
- package/dist/chunks/ripgrep-38phvaps.js +252 -0
- package/dist/chunks/{vcs-7j156qnj.js → ripgrep-3c4e9bh1.js} +7 -7
- package/dist/chunks/{vcs-83ww5tb3.js → ripgrep-3es9bxre.js} +15 -15
- package/dist/chunks/{vcs-3fc6dm20.js → ripgrep-3fc6dm20.js} +1 -1
- package/dist/chunks/{vcs-3hepkmqq.js → ripgrep-3hepkmqq.js} +1 -1
- package/dist/chunks/{vcs-yvshgw5k.js → ripgrep-3kkw8qnw.js} +21 -21
- package/dist/chunks/{vcs-983bx4tv.js → ripgrep-3p17jnne.js} +11 -11
- package/dist/chunks/{vcs-ng7678yv.js → ripgrep-3skt28fc.js} +3 -3
- package/dist/chunks/{vcs-3smtnn6g.js → ripgrep-3smtnn6g.js} +1 -1
- package/dist/chunks/{vcs-3tvqynh2.js → ripgrep-3tvqynh2.js} +1 -1
- package/dist/chunks/{vcs-4e9nfnk1.js → ripgrep-3v1h8cz5.js} +57 -57
- package/dist/chunks/{vcs-3y377wv9.js → ripgrep-3y377wv9.js} +1 -1
- package/dist/chunks/{vcs-3zsf4n22.js → ripgrep-3zsf4n22.js} +1 -1
- package/dist/chunks/{vcs-6erhv98a.js → ripgrep-4438m4a7.js} +18 -18
- package/dist/chunks/{vcs-y8s8f6j8.js → ripgrep-4858gwxg.js} +43 -43
- package/dist/chunks/{vcs-1h0nj16t.js → ripgrep-4gr8y5nf.js} +20 -20
- package/dist/chunks/{vcs-fhcrmec4.js → ripgrep-4k5pyaj2.js} +10 -10
- package/dist/chunks/{vcs-wn21040f.js → ripgrep-4nj6keg1.js} +18 -18
- package/dist/chunks/{vcs-w9h9v0y2.js → ripgrep-4pdcrpe9.js} +13 -13
- package/dist/chunks/{vcs-54ma36ye.js → ripgrep-54ma36ye.js} +1 -1
- package/dist/chunks/{vcs-yavzwk2n.js → ripgrep-552s6kfz.js} +15 -15
- package/dist/chunks/{vcs-d9s573fh.js → ripgrep-57ez7d0k.js} +2 -2
- package/dist/chunks/{vcs-5daktx2q.js → ripgrep-5daktx2q.js} +1 -1
- package/dist/chunks/{vcs-hkagk5ex.js → ripgrep-5frpvc34.js} +2 -2
- package/dist/chunks/{vcs-j5r7mnag.js → ripgrep-5gxtf2ep.js} +27 -27
- package/dist/chunks/{vcs-q9xmsq5j.js → ripgrep-5hcrxyky.js} +6 -6
- package/dist/chunks/{vcs-e3qxr5gk.js → ripgrep-5qd3pb7m.js} +2 -2
- package/dist/chunks/{vcs-5t3nmthw.js → ripgrep-5t3nmthw.js} +2 -2
- package/dist/chunks/{vcs-6fza0gtm.js → ripgrep-5vqak28j.js} +15 -15
- package/dist/chunks/{vcs-3wgpjb8z.js → ripgrep-632bft3r.js} +19 -19
- package/dist/chunks/{vcs-669tq793.js → ripgrep-669tq793.js} +1 -1
- package/dist/chunks/{vcs-tj141g8h.js → ripgrep-695yb3ne.js} +19 -19
- package/dist/chunks/{vcs-rt6eccz9.js → ripgrep-6ejtffh2.js} +19 -19
- package/dist/chunks/{vcs-6msgmcgs.js → ripgrep-6msgmcgs.js} +1 -1
- package/dist/chunks/{vcs-xat61z3k.js → ripgrep-6ne0j7pm.js} +11 -11
- package/dist/chunks/{vcs-73tb2d7t.js → ripgrep-73tb2d7t.js} +1 -1
- package/dist/chunks/{vcs-teyc4whj.js → ripgrep-74a0hazz.js} +11 -11
- package/dist/chunks/{vcs-7bmhse3q.js → ripgrep-7bmhse3q.js} +1 -1
- package/dist/chunks/{vcs-2k8khapm.js → ripgrep-7dqw4kz8.js} +5 -5
- package/dist/chunks/{vcs-np4zyaxz.js → ripgrep-7j2mf0b2.js} +8 -8
- package/dist/chunks/{vcs-rkj6e36x.js → ripgrep-7y05g5y6.js} +5 -5
- package/dist/chunks/{vcs-tcezcvh9.js → ripgrep-89znhe33.js} +4 -4
- package/dist/chunks/{vcs-8d7r5vzw.js → ripgrep-8d7r5vzw.js} +1 -1
- package/dist/chunks/{vcs-k3g1rb3k.js → ripgrep-8djhgsab.js} +22 -22
- package/dist/chunks/{vcs-s8anskx2.js → ripgrep-8epfg41c.js} +8 -8
- package/dist/chunks/{vcs-fwv01ez0.js → ripgrep-8gy77n4q.js} +12 -12
- package/dist/chunks/{vcs-1djhwe97.js → ripgrep-8jsvkn40.js} +31 -31
- package/dist/chunks/{vcs-ndmv45hp.js → ripgrep-8q7cq0y1.js} +3 -3
- package/dist/chunks/{vcs-pxkhtqdc.js → ripgrep-8qxm69fb.js} +19 -19
- package/dist/chunks/{vcs-eef36fdw.js → ripgrep-8vxvqh3p.js} +23 -23
- package/dist/chunks/{vcs-knevfgda.js → ripgrep-8wbxkt1z.js} +4 -4
- package/dist/chunks/{vcs-2gqdr94z.js → ripgrep-92z2dgw1.js} +3 -3
- package/dist/chunks/{vcs-gfvb90ym.js → ripgrep-94ek1h2f.js} +2 -2
- package/dist/chunks/{vcs-3pebang0.js → ripgrep-9gjvwznx.js} +25 -25
- package/dist/chunks/{vcs-k8t255qq.js → ripgrep-9tn9hv36.js} +35 -35
- package/dist/chunks/{vcs-pgwqr8ee.js → ripgrep-9x50181g.js} +12 -12
- package/dist/chunks/ripgrep-9zdhvgqs.js +18 -0
- package/dist/chunks/{vcs-62ezrtah.js → ripgrep-a2tjj438.js} +92 -92
- package/dist/chunks/{vcs-4acqjqp7.js → ripgrep-aa6tf4fy.js} +22 -22
- package/dist/chunks/{vcs-aaet6srn.js → ripgrep-aaet6srn.js} +2 -2
- package/dist/chunks/{vcs-x3an4z7c.js → ripgrep-ab4nhn8b.js} +6 -6
- package/dist/chunks/{vcs-3vbw7yca.js → ripgrep-ag1tg3gv.js} +32 -32
- package/dist/chunks/{vcs-p2etx821.js → ripgrep-amjwwp15.js} +22 -22
- package/dist/chunks/{vcs-y5hhwgev.js → ripgrep-ay7z0nzh.js} +13 -13
- package/dist/chunks/{vcs-b8d4rmcw.js → ripgrep-b1k697tw.js} +9 -9
- package/dist/chunks/{vcs-b6gygkdw.js → ripgrep-b6gygkdw.js} +2 -2
- package/dist/chunks/{vcs-keqjy1g6.js → ripgrep-bahgfxtd.js} +26 -26
- package/dist/chunks/{vcs-42kdhqse.js → ripgrep-bea85hdf.js} +3 -3
- package/dist/chunks/{vcs-cq46pgcx.js → ripgrep-bgxcxs0p.js} +5 -5
- package/dist/chunks/{vcs-svaspcxn.js → ripgrep-bhzbay2t.js} +5 -5
- package/dist/chunks/{vcs-fzd0b8n6.js → ripgrep-bm4pzggq.js} +21 -21
- package/dist/chunks/{vcs-724n6vts.js → ripgrep-bs1d3dhn.js} +3 -3
- package/dist/chunks/{vcs-4z58m4b4.js → ripgrep-c35597j6.js} +4 -4
- package/dist/chunks/{vcs-54tcyq79.js → ripgrep-ckecvw8r.js} +2 -2
- package/dist/chunks/{vcs-v4aesa73.js → ripgrep-ckr8yqr6.js} +5 -5
- package/dist/chunks/{vcs-p9kt6re1.js → ripgrep-cx34d9wd.js} +11 -11
- package/dist/chunks/{vcs-56dsz7qa.js → ripgrep-cztphjx7.js} +332 -332
- package/dist/chunks/{vcs-gx21vd1f.js → ripgrep-d21fb1vq.js} +13 -13
- package/dist/chunks/{vcs-f2wfspan.js → ripgrep-d450k981.js} +8 -8
- package/dist/chunks/{vcs-5p6nskts.js → ripgrep-d8s5zaak.js} +18 -18
- package/dist/chunks/{vcs-q54gewa9.js → ripgrep-d9wxm2fe.js} +8 -8
- package/dist/chunks/{vcs-dds4m2b5.js → ripgrep-dc0h2f5m.js} +10 -10
- package/dist/chunks/{vcs-h6dd5nj3.js → ripgrep-deajr4zv.js} +11 -11
- package/dist/chunks/{vcs-cqtvvg9q.js → ripgrep-dj9sq318.js} +5 -5
- package/dist/chunks/{vcs-cwa6csj7.js → ripgrep-djszqvmq.js} +9 -9
- package/dist/chunks/{vcs-3s57j9d0.js → ripgrep-dq3vednk.js} +15 -15
- package/dist/chunks/{vcs-3cvhxgkj.js → ripgrep-dr2s0fjn.js} +12 -12
- package/dist/chunks/{vcs-xfkkasph.js → ripgrep-drwq78ky.js} +4 -4
- package/dist/chunks/{vcs-xna4x1sn.js → ripgrep-dtyy8xh0.js} +18 -18
- package/dist/chunks/{vcs-76zvcd1g.js → ripgrep-dvs6zpk2.js} +39 -39
- package/dist/chunks/{vcs-0876npy8.js → ripgrep-e0rfdckv.js} +13 -13
- package/dist/chunks/{vcs-3h8yw40x.js → ripgrep-e4dzh796.js} +9 -9
- package/dist/chunks/{vcs-zcws0pck.js → ripgrep-e65wgfyf.js} +9 -9
- package/dist/chunks/{vcs-ecfe7b91.js → ripgrep-ecfe7b91.js} +2 -2
- package/dist/chunks/{vcs-mcjvxj01.js → ripgrep-eefdys5x.js} +4 -4
- package/dist/chunks/{vcs-ef5x83kb.js → ripgrep-ef5x83kb.js} +1 -1
- package/dist/chunks/{vcs-8041njv8.js → ripgrep-eqd5gpxy.js} +42 -42
- package/dist/chunks/{vcs-etq0c3wd.js → ripgrep-etq0c3wd.js} +1 -1
- package/dist/chunks/{vcs-rfd4cgzf.js → ripgrep-f6ejcacf.js} +35 -31
- package/dist/chunks/{vcs-bvkd440q.js → ripgrep-f7xy0jcj.js} +15 -15
- package/dist/chunks/{vcs-wrb545ka.js → ripgrep-fbxnn3zg.js} +41 -41
- package/dist/chunks/{vcs-cw54z5t2.js → ripgrep-febda8v4.js} +15 -15
- package/dist/chunks/{vcs-8nqy64kg.js → ripgrep-ff3zzamp.js} +32 -32
- package/dist/chunks/{vcs-6j71bdrn.js → ripgrep-fj137pk4.js} +4 -4
- package/dist/chunks/{vcs-mdm5j4bj.js → ripgrep-fk34k8b0.js} +84 -84
- package/dist/chunks/{vcs-3556dn8t.js → ripgrep-fp2xarvc.js} +1 -1
- package/dist/chunks/{vcs-0tqkw5bw.js → ripgrep-fq5zwzwv.js} +18 -18
- package/dist/chunks/{vcs-gd4qta3r.js → ripgrep-gd4qta3r.js} +1 -1
- package/dist/chunks/{vcs-6e5bh3xz.js → ripgrep-gmfetzq4.js} +27 -27
- package/dist/chunks/{vcs-yyb7tjpc.js → ripgrep-gv6a8nnw.js} +2 -2
- package/dist/chunks/{vcs-rr7w9yzr.js → ripgrep-gvrdb957.js} +11 -11
- package/dist/chunks/{vcs-dsazm5eh.js → ripgrep-h2r7bbkd.js} +9 -9
- package/dist/chunks/{vcs-wjrrvf51.js → ripgrep-h3whq8hs.js} +10 -10
- package/dist/chunks/{vcs-h6vf3j39.js → ripgrep-h6vf3j39.js} +1 -1
- package/dist/chunks/{vcs-ejm60891.js → ripgrep-h93zm1px.js} +7 -7
- package/dist/chunks/{vcs-e8qyrgb1.js → ripgrep-hbyhqfhs.js} +5 -5
- package/dist/chunks/{vcs-qtf7ajd6.js → ripgrep-hzxzc04q.js} +24 -24
- package/dist/chunks/{vcs-j56e64zr.js → ripgrep-j56e64zr.js} +1 -1
- package/dist/chunks/{vcs-9z431jrj.js → ripgrep-j6rk38x8.js} +9 -9
- package/dist/chunks/{vcs-5v1c364k.js → ripgrep-j726xjcb.js} +28 -28
- package/dist/chunks/{vcs-s4cpw0g8.js → ripgrep-je856w56.js} +11 -11
- package/dist/chunks/{vcs-grbear6k.js → ripgrep-jkfm4w29.js} +28 -28
- package/dist/chunks/{vcs-zffvdhag.js → ripgrep-jpz1sap8.js} +12 -12
- package/dist/chunks/{vcs-0z1gmn2q.js → ripgrep-jr0j7mve.js} +6 -6
- package/dist/chunks/{vcs-6mg6ac8r.js → ripgrep-jtkxxjqx.js} +14 -14
- package/dist/chunks/{vcs-xdk9p2qn.js → ripgrep-jw80jp6b.js} +21 -21
- package/dist/chunks/{vcs-b61wnr05.js → ripgrep-jzq9sbf8.js} +38 -38
- package/dist/chunks/{vcs-4q8m0zqq.js → ripgrep-k06t1zgt.js} +13 -13
- package/dist/chunks/{vcs-gs4tkc79.js → ripgrep-k1qrnqst.js} +8 -8
- package/dist/chunks/{vcs-k3c624dm.js → ripgrep-k3c624dm.js} +3 -3
- package/dist/chunks/{vcs-bxbtj1qd.js → ripgrep-k40x70x4.js} +8 -8
- package/dist/chunks/{vcs-n8c291r7.js → ripgrep-k8e0krnc.js} +9 -9
- package/dist/chunks/{vcs-mwfejemj.js → ripgrep-kb333kjr.js} +9 -9
- package/dist/chunks/{vcs-7zpeh0yx.js → ripgrep-kb6vbnxp.js} +4 -4
- package/dist/chunks/{vcs-1ekk4s7j.js → ripgrep-kcetpk2c.js} +12 -12
- package/dist/chunks/{vcs-ptm59064.js → ripgrep-kmjdna7m.js} +48 -48
- package/dist/chunks/{vcs-mvn2r3z4.js → ripgrep-m2d0j7c0.js} +9 -9
- package/dist/chunks/{vcs-m3fdjcah.js → ripgrep-m3fdjcah.js} +1 -1
- package/dist/chunks/{vcs-v0xjps6b.js → ripgrep-m4v4sst7.js} +31 -31
- package/dist/chunks/{vcs-1v2b2k63.js → ripgrep-m74y7a9x.js} +14 -14
- package/dist/chunks/{vcs-m9w0rfyh.js → ripgrep-m9w0rfyh.js} +1 -1
- package/dist/chunks/{vcs-c7h0x4yk.js → ripgrep-mjpfq375.js} +21 -21
- package/dist/chunks/{vcs-61zp4wnv.js → ripgrep-mtf32xg9.js} +11 -11
- package/dist/chunks/{vcs-njx86ncx.js → ripgrep-mwyh8wfh.js} +27 -27
- package/dist/chunks/{vcs-ntmafhxh.js → ripgrep-n0gf5ey7.js} +21 -21
- package/dist/chunks/{vcs-86n330eh.js → ripgrep-n1ka8r9d.js} +4 -4
- package/dist/chunks/{vcs-tstnsxca.js → ripgrep-n3fk10xz.js} +25 -25
- package/dist/chunks/{vcs-axj6q4j4.js → ripgrep-n50qm4s2.js} +49 -49
- package/dist/chunks/{vcs-jcs87n6r.js → ripgrep-ngymw408.js} +4 -4
- package/dist/chunks/{vcs-ehn7vv3c.js → ripgrep-nhvjymvq.js} +21 -21
- package/dist/chunks/{vcs-khxyc70q.js → ripgrep-nn5bpfje.js} +9 -9
- package/dist/chunks/{vcs-3y1r2rpt.js → ripgrep-nqfwyc43.js} +8 -8
- package/dist/chunks/{vcs-1esepqbd.js → ripgrep-nsth5a41.js} +37 -37
- package/dist/chunks/{vcs-44txpx69.js → ripgrep-p97ze781.js} +23 -23
- package/dist/chunks/{vcs-8v6pyhej.js → ripgrep-pa8pe2x7.js} +8 -8
- package/dist/chunks/{vcs-5sz650yn.js → ripgrep-pf2cvmpq.js} +73 -73
- package/dist/chunks/{vcs-pjvnvgmy.js → ripgrep-pjvnvgmy.js} +1 -1
- package/dist/chunks/{vcs-pknna89w.js → ripgrep-pknna89w.js} +1 -1
- package/dist/chunks/{vcs-9h4501ja.js → ripgrep-pmg28md7.js} +1 -1
- package/dist/chunks/{vcs-66j8y0n9.js → ripgrep-pnh2hy2c.js} +23 -23
- package/dist/chunks/{vcs-88k66p5t.js → ripgrep-pqcvfzvm.js} +36 -36
- package/dist/chunks/{vcs-erwyzksv.js → ripgrep-pttkx1dj.js} +27 -27
- package/dist/chunks/{vcs-yqnvcheb.js → ripgrep-pvvafe22.js} +10 -10
- package/dist/chunks/ripgrep-pwr21gwd.js +26 -0
- package/dist/chunks/{vcs-dda0p7y7.js → ripgrep-px76j0pk.js} +9 -9
- package/dist/chunks/{vcs-pjz0zcv2.js → ripgrep-pxvtywqb.js} +11 -11
- package/dist/chunks/{vcs-cb6xbnd9.js → ripgrep-q13923st.js} +2 -2
- package/dist/chunks/{vcs-3kbhjp3q.js → ripgrep-q1v5hekz.js} +11 -11
- package/dist/chunks/{vcs-hh4v7266.js → ripgrep-q26n4fcx.js} +14 -14
- package/dist/chunks/{vcs-q2k50tdt.js → ripgrep-q6kv5hce.js} +35 -35
- package/dist/chunks/{vcs-j7y1n5ns.js → ripgrep-q9m9wzt0.js} +19 -19
- package/dist/chunks/{vcs-40e80s20.js → ripgrep-qa3v0gpg.js} +24 -24
- package/dist/chunks/{vcs-44m1ppkf.js → ripgrep-qbv4sgsg.js} +44 -44
- package/dist/chunks/{vcs-28nztbsp.js → ripgrep-qcbzzkxa.js} +32 -32
- package/dist/chunks/{vcs-jh1zbppd.js → ripgrep-qfchpyts.js} +27 -27
- package/dist/chunks/{vcs-n4z35x1w.js → ripgrep-qrgme6ew.js} +9 -9
- package/dist/chunks/{vcs-qsdy395h.js → ripgrep-qsdy395h.js} +1 -1
- package/dist/chunks/{vcs-szpqyd6h.js → ripgrep-qwhsc8p7.js} +18 -18
- package/dist/chunks/{vcs-1fw2a5v8.js → ripgrep-qx1x9vga.js} +22 -22
- package/dist/chunks/{vcs-msq4ntpz.js → ripgrep-qzqedjgs.js} +28 -28
- package/dist/chunks/{vcs-wc17nh9t.js → ripgrep-r2rgjgj7.js} +33 -33
- package/dist/chunks/{vcs-ydgy0jv4.js → ripgrep-r7nsrefv.js} +6 -6
- package/dist/chunks/{vcs-ww82v16z.js → ripgrep-r9w59ptg.js} +25 -25
- package/dist/chunks/{vcs-rdw6cm16.js → ripgrep-rdw6cm16.js} +1 -1
- package/dist/chunks/{vcs-ct913see.js → ripgrep-rk6ps10a.js} +5 -5
- package/dist/chunks/{vcs-38adaqc0.js → ripgrep-rkdvqggb.js} +5 -5
- package/dist/chunks/{vcs-py3kkmfq.js → ripgrep-rkprpv83.js} +2 -2
- package/dist/chunks/{vcs-304ndgye.js → ripgrep-rnk4bdv4.js} +21 -21
- package/dist/chunks/{vcs-yr5w62k6.js → ripgrep-rthtq9ap.js} +20 -20
- package/dist/chunks/{vcs-hv3dmpp2.js → ripgrep-s5hrj64x.js} +20 -20
- package/dist/chunks/{vcs-vqfzq50h.js → ripgrep-sd5f6jdk.js} +6 -6
- package/dist/chunks/{vcs-7854zz5a.js → ripgrep-sfpzfcnw.js} +3 -3
- package/dist/chunks/{vcs-s1kdbxwg.js → ripgrep-sj415v3s.js} +10 -10
- package/dist/chunks/{vcs-7rwqf82v.js → ripgrep-sm965ndy.js} +8 -8
- package/dist/chunks/{vcs-3aq2526j.js → ripgrep-srep0201.js} +48 -48
- package/dist/chunks/{vcs-4mtvmndk.js → ripgrep-szsbf3na.js} +4 -4
- package/dist/chunks/{vcs-rhjbct0v.js → ripgrep-t550f9t1.js} +4 -4
- package/dist/chunks/{vcs-70vk70yg.js → ripgrep-t849abxh.js} +5 -5
- package/dist/chunks/{vcs-tazgh4e4.js → ripgrep-tazgh4e4.js} +1 -1
- package/dist/chunks/{vcs-dyrwyt65.js → ripgrep-tdmq7741.js} +38 -38
- package/dist/chunks/{vcs-tdstcens.js → ripgrep-tdstcens.js} +1 -1
- package/dist/chunks/{vcs-qbqbaz6q.js → ripgrep-tjedn1bk.js} +4 -4
- package/dist/chunks/{vcs-x5es4t48.js → ripgrep-tk70hm4f.js} +33 -33
- package/dist/chunks/{vcs-btsrk6c2.js → ripgrep-ts8814z6.js} +16 -16
- package/dist/chunks/{vcs-py6tvht3.js → ripgrep-ttpyk6f9.js} +9 -9
- package/dist/chunks/{vcs-hn57h045.js → ripgrep-ttqh24zm.js} +4 -4
- package/dist/chunks/{vcs-tvtrv512.js → ripgrep-tvtrv512.js} +1 -1
- package/dist/chunks/{vcs-ratrq7cm.js → ripgrep-v5dkyp31.js} +4 -4
- package/dist/chunks/{vcs-f7sbcs1s.js → ripgrep-v5fx191f.js} +26 -26
- package/dist/chunks/{vcs-s9ampnzs.js → ripgrep-v6695139.js} +11 -11
- package/dist/chunks/{vcs-4j9evkcm.js → ripgrep-v89pjvzk.js} +8 -8
- package/dist/chunks/{vcs-vtg51jxy.js → ripgrep-v9htzwy6.js} +33 -33
- package/dist/chunks/{vcs-veqvce7d.js → ripgrep-veqvce7d.js} +1 -1
- package/dist/chunks/{vcs-dfe8djrf.js → ripgrep-vncycja5.js} +4 -4
- package/dist/chunks/{vcs-vzcthcp8.js → ripgrep-vzcthcp8.js} +1 -1
- package/dist/chunks/{vcs-vzs5sf6e.js → ripgrep-vzs5sf6e.js} +1 -1
- package/dist/chunks/{vcs-was7srj9.js → ripgrep-w1ad28wa.js} +8 -8
- package/dist/chunks/{vcs-84txncab.js → ripgrep-w1eejvng.js} +5 -5
- package/dist/chunks/{vcs-5p9dmvg9.js → ripgrep-w2y23yj1.js} +13 -13
- package/dist/chunks/{vcs-w3wsvvr9.js → ripgrep-w3wsvvr9.js} +1 -1
- package/dist/chunks/{vcs-8vf9p1vn.js → ripgrep-w8wd44rg.js} +21 -21
- package/dist/chunks/{vcs-psazpmmj.js → ripgrep-wd3x2cqz.js} +2 -2
- package/dist/chunks/{vcs-wd87259q.js → ripgrep-wd87259q.js} +1 -1
- package/dist/chunks/{vcs-n62nckym.js → ripgrep-whp3wsjn.js} +11 -11
- package/dist/chunks/{vcs-p4q1g30v.js → ripgrep-wj1rks9h.js} +37 -37
- package/dist/chunks/{vcs-c8m1ndyk.js → ripgrep-wpzekwss.js} +6 -6
- package/dist/chunks/{vcs-dfh0xed5.js → ripgrep-ws6q902r.js} +5 -5
- package/dist/chunks/{vcs-bp5zn84r.js → ripgrep-wybk36vp.js} +10 -10
- package/dist/chunks/{vcs-x1ezjp6w.js → ripgrep-x1ezjp6w.js} +1 -1
- package/dist/chunks/{vcs-bm3qhbmn.js → ripgrep-x591492r.js} +17 -17
- package/dist/chunks/{vcs-9f9b48nn.js → ripgrep-x7xnx0we.js} +20 -20
- package/dist/chunks/{vcs-xkntkrq7.js → ripgrep-xkntkrq7.js} +2 -2
- package/dist/chunks/{vcs-s2ynmxvy.js → ripgrep-xsbrecyh.js} +12 -12
- package/dist/chunks/{vcs-8zh4h089.js → ripgrep-xvp1j2dc.js} +5 -5
- package/dist/chunks/{vcs-rf0rwq9q.js → ripgrep-y1cgxa56.js} +16 -16
- package/dist/chunks/{vcs-y1fvbwt7.js → ripgrep-y1fvbwt7.js} +1 -1
- package/dist/chunks/{vcs-y71avatq.js → ripgrep-y71avatq.js} +1 -1
- package/dist/chunks/{vcs-7enbc4fp.js → ripgrep-ycg97etn.js} +170 -170
- package/dist/chunks/{vcs-293305v0.js → ripgrep-yhc2xmq5.js} +1 -1
- package/dist/chunks/{vcs-yp2x3t23.js → ripgrep-yp2x3t23.js} +1 -1
- package/dist/chunks/{vcs-yrhqyw5v.js → ripgrep-yrhqyw5v.js} +1 -1
- package/dist/chunks/{vcs-s4enseaf.js → ripgrep-yrznvahk.js} +2 -2
- package/dist/chunks/{vcs-231222c6.js → ripgrep-ytbta4pq.js} +4 -4
- package/dist/chunks/{vcs-qz3g8v3b.js → ripgrep-yxj4ckh3.js} +20 -20
- package/dist/chunks/{vcs-wycg3qep.js → ripgrep-yyksnw28.js} +18 -18
- package/dist/chunks/{vcs-bjtzbw4r.js → ripgrep-z07pqspn.js} +3 -3
- package/dist/chunks/{vcs-z0bkrqjs.js → ripgrep-z0bkrqjs.js} +1 -1
- package/dist/chunks/{vcs-8n9ym7bh.js → ripgrep-z1t4ccqy.js} +8 -8
- package/dist/chunks/{vcs-29x78va6.js → ripgrep-z63w68vq.js} +6 -6
- package/dist/chunks/{vcs-2sv6eqec.js → ripgrep-zbzhtaz8.js} +7 -7
- package/dist/chunks/{vcs-z5g6ermd.js → ripgrep-zd5925e4.js} +10 -10
- package/dist/chunks/{vcs-rq775frq.js → ripgrep-zeh9ct20.js} +2 -2
- package/dist/chunks/{vcs-hk4fmd6v.js → ripgrep-zexvq6re.js} +30 -30
- package/dist/chunks/{vcs-hndg17wg.js → ripgrep-zgfpqdce.js} +40 -40
- package/dist/chunks/{vcs-y7a3vg46.js → ripgrep-zmyzpzwz.js} +5 -5
- package/dist/chunks/{vcs-vrq98xzz.js → ripgrep-zn4xb62a.js} +18 -18
- package/dist/chunks/{vcs-zr2ceqn5.js → ripgrep-zr2ceqn5.js} +1 -1
- package/dist/chunks/{vcs-9k60352s.js → ripgrep-zrc0yy2v.js} +21 -21
- package/dist/chunks/{vcs-n0tq777j.js → ripgrep-zrq8kphx.js} +8 -8
- package/dist/chunks/{vcs-2kzd1k6y.js → ripgrep-zwet3d57.js} +27 -27
- package/dist/chunks/{vcs-cnj8r2zb.js → ripgrep-zxf6vy87.js} +12 -12
- package/dist/chunks/{vcs-zxq2ej10.js → ripgrep-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +81 -81
- 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 +215 -215
- 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 +123 -123
- 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 +125 -125
- package/dist/config/plugin/websearch.js +122 -122
- 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 +124 -124
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +81 -81
- 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 +372 -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 +74 -74
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +92 -92
- 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/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +228 -228
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +104 -104
- package/dist/form.js +82 -82
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +89 -89
- package/dist/generate.js +95 -95
- 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 +99 -99
- 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/id/id.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 +363 -362
- package/dist/instruction-discovery.js +83 -83
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +85 -85
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +135 -135
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +360 -359
- package/dist/location.js +85 -85
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +99 -99
- 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 +99 -99
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +100 -100
- package/dist/models-dev.js +99 -99
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +78 -78
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +111 -111
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +74 -74
- 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 +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +219 -219
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +335 -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 +122 -122
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +104 -0
- 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 +95 -95
- 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 -162
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +352 -351
- 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 +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +230 -230
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +84 -84
- package/dist/provider.js +97 -97
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +95 -95
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +95 -95
- 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 +133 -133
- 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 +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +225 -225
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +88 -88
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +2 -2
- 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 +130 -130
- 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 +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +232 -232
- 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 +3 -3
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +124 -124
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +138 -138
- 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 +211 -211
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +155 -155
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +221 -221
- package/dist/session/usage.js +1 -1
- package/dist/session.js +219 -219
- 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 +15 -15
- package/dist/shell.js +140 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +108 -108
- package/dist/snapshot.js +93 -93
- 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 +124 -124
- package/dist/tool/plugin/edit.js +114 -114
- 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 +114 -114
- package/dist/tool/plugin/question.js +101 -101
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +216 -216
- package/dist/tool/plugin/skill.js +107 -107
- package/dist/tool/plugin/subagent.js +216 -216
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +114 -114
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +14 -14
- package/dist/types/plugin/provider/chatgpt.d.ts +33 -0
- 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 +4 -4
- package/dist/v1/config/formatter.js +7 -7
- 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 +7 -7
- 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/v1/permission.js +1 -1
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +80 -80
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +79 -79
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +76 -76
- 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 +98 -98
- package/package.json +9 -8
- package/dist/chunks/vcs-5bzc4ph3.js +0 -26
- package/dist/chunks/vcs-619r8v3y.js +0 -18
- package/dist/chunks/vcs-ryxm5mwn.js +0 -252
- /package/dist/chunks/{vcs-0qkdqm5v.js → ripgrep-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{vcs-0zkw76rk.js → ripgrep-0zkw76rk.js} +0 -0
- /package/dist/chunks/{vcs-17cy0kzp.js → ripgrep-17cy0kzp.js} +0 -0
- /package/dist/chunks/{vcs-1cnp2v09.js → ripgrep-1cnp2v09.js} +0 -0
- /package/dist/chunks/{vcs-1kg9ymc8.js → ripgrep-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{vcs-24dcb14g.js → ripgrep-24dcb14g.js} +0 -0
- /package/dist/chunks/{vcs-2710q6r3.js → ripgrep-2710q6r3.js} +0 -0
- /package/dist/chunks/{vcs-2axfhc9x.js → ripgrep-2axfhc9x.js} +0 -0
- /package/dist/chunks/{vcs-2c3vjs8z.js → ripgrep-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{vcs-34c7v6d4.js → ripgrep-34c7v6d4.js} +0 -0
- /package/dist/chunks/{vcs-359p4xyc.js → ripgrep-359p4xyc.js} +0 -0
- /package/dist/chunks/{vcs-3asan66x.js → ripgrep-3asan66x.js} +0 -0
- /package/dist/chunks/{vcs-3v8g72cx.js → ripgrep-3v8g72cx.js} +0 -0
- /package/dist/chunks/{vcs-3w5fmr99.js → ripgrep-3w5fmr99.js} +0 -0
- /package/dist/chunks/{vcs-3wcehsnq.js → ripgrep-3wcehsnq.js} +0 -0
- /package/dist/chunks/{vcs-43n2bw4t.js → ripgrep-43n2bw4t.js} +0 -0
- /package/dist/chunks/{vcs-4knz6hnm.js → ripgrep-4knz6hnm.js} +0 -0
- /package/dist/chunks/{vcs-4vcrnpx2.js → ripgrep-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{vcs-4y7fprxs.js → ripgrep-4y7fprxs.js} +0 -0
- /package/dist/chunks/{vcs-53557ph1.js → ripgrep-53557ph1.js} +0 -0
- /package/dist/chunks/{vcs-550bvhaj.js → ripgrep-550bvhaj.js} +0 -0
- /package/dist/chunks/{vcs-6prwharc.js → ripgrep-6prwharc.js} +0 -0
- /package/dist/chunks/{vcs-7akdwqpd.js → ripgrep-7akdwqpd.js} +0 -0
- /package/dist/chunks/{vcs-7m9af43g.js → ripgrep-7m9af43g.js} +0 -0
- /package/dist/chunks/{vcs-822emrt2.js → ripgrep-822emrt2.js} +0 -0
- /package/dist/chunks/{vcs-88xbtdfr.js → ripgrep-88xbtdfr.js} +0 -0
- /package/dist/chunks/{vcs-8n3pysct.js → ripgrep-8n3pysct.js} +0 -0
- /package/dist/chunks/{vcs-8wj87zfr.js → ripgrep-8wj87zfr.js} +0 -0
- /package/dist/chunks/{vcs-922hggd3.js → ripgrep-922hggd3.js} +0 -0
- /package/dist/chunks/{vcs-9a4afbnw.js → ripgrep-9a4afbnw.js} +0 -0
- /package/dist/chunks/{vcs-9rqn6x4v.js → ripgrep-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{vcs-a6k6eb26.js → ripgrep-a6k6eb26.js} +0 -0
- /package/dist/chunks/{vcs-af5trqkr.js → ripgrep-af5trqkr.js} +0 -0
- /package/dist/chunks/{vcs-afrmfg78.js → ripgrep-afrmfg78.js} +0 -0
- /package/dist/chunks/{vcs-aqzs7mqg.js → ripgrep-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{vcs-atq7p7m5.js → ripgrep-atq7p7m5.js} +0 -0
- /package/dist/chunks/{vcs-bkyjaxrp.js → ripgrep-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{vcs-bmr6ed5q.js → ripgrep-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{vcs-cf4snx6d.js → ripgrep-cf4snx6d.js} +0 -0
- /package/dist/chunks/{vcs-cvy3z8tj.js → ripgrep-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{vcs-d9fn303g.js → ripgrep-d9fn303g.js} +0 -0
- /package/dist/chunks/{vcs-d9jj8t3e.js → ripgrep-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{vcs-dajrwvna.js → ripgrep-dajrwvna.js} +0 -0
- /package/dist/chunks/{vcs-dap0rakb.js → ripgrep-dap0rakb.js} +0 -0
- /package/dist/chunks/{vcs-df08tz66.js → ripgrep-df08tz66.js} +0 -0
- /package/dist/chunks/{vcs-dy18nga0.js → ripgrep-dy18nga0.js} +0 -0
- /package/dist/chunks/{vcs-e5kj55wp.js → ripgrep-e5kj55wp.js} +0 -0
- /package/dist/chunks/{vcs-e73j6tqm.js → ripgrep-e73j6tqm.js} +0 -0
- /package/dist/chunks/{vcs-ec1grn59.js → ripgrep-ec1grn59.js} +0 -0
- /package/dist/chunks/{vcs-eh3zwz77.js → ripgrep-eh3zwz77.js} +0 -0
- /package/dist/chunks/{vcs-emrn6kk6.js → ripgrep-emrn6kk6.js} +0 -0
- /package/dist/chunks/{vcs-f0mxakyp.js → ripgrep-f0mxakyp.js} +0 -0
- /package/dist/chunks/{vcs-f6n9ztr4.js → ripgrep-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{vcs-faypxj3z.js → ripgrep-faypxj3z.js} +0 -0
- /package/dist/chunks/{vcs-fd410y7t.js → ripgrep-fd410y7t.js} +0 -0
- /package/dist/chunks/{vcs-fxgpk5d8.js → ripgrep-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{vcs-g4wezp1m.js → ripgrep-g4wezp1m.js} +0 -0
- /package/dist/chunks/{vcs-g86h250q.js → ripgrep-g86h250q.js} +0 -0
- /package/dist/chunks/{vcs-gebd4c9n.js → ripgrep-gebd4c9n.js} +0 -0
- /package/dist/chunks/{vcs-gftt206x.js → ripgrep-gftt206x.js} +0 -0
- /package/dist/chunks/{vcs-hjbc5kem.js → ripgrep-hjbc5kem.js} +0 -0
- /package/dist/chunks/{vcs-hk9envan.js → ripgrep-hk9envan.js} +0 -0
- /package/dist/chunks/{vcs-j2ntwpah.js → ripgrep-j2ntwpah.js} +0 -0
- /package/dist/chunks/{vcs-j5zkgpj8.js → ripgrep-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{vcs-jjkms2e6.js → ripgrep-jjkms2e6.js} +0 -0
- /package/dist/chunks/{vcs-jr7sbwjy.js → ripgrep-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{vcs-jwfs4k6c.js → ripgrep-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{vcs-jzg6c2d5.js → ripgrep-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{vcs-mp448xyj.js → ripgrep-mp448xyj.js} +0 -0
- /package/dist/chunks/{vcs-msx8hqn2.js → ripgrep-msx8hqn2.js} +0 -0
- /package/dist/chunks/{vcs-n05xt0ee.js → ripgrep-n05xt0ee.js} +0 -0
- /package/dist/chunks/{vcs-n3j8tn72.js → ripgrep-n3j8tn72.js} +0 -0
- /package/dist/chunks/{vcs-njntx4h6.js → ripgrep-njntx4h6.js} +0 -0
- /package/dist/chunks/{vcs-q3sfg36h.js → ripgrep-q3sfg36h.js} +0 -0
- /package/dist/chunks/{vcs-q74kybfr.js → ripgrep-q74kybfr.js} +0 -0
- /package/dist/chunks/{vcs-qaymkmh1.js → ripgrep-qaymkmh1.js} +0 -0
- /package/dist/chunks/{vcs-qb87gjwd.js → ripgrep-qb87gjwd.js} +0 -0
- /package/dist/chunks/{vcs-qfa1cgps.js → ripgrep-qfa1cgps.js} +0 -0
- /package/dist/chunks/{vcs-qg3g05ea.js → ripgrep-qg3g05ea.js} +0 -0
- /package/dist/chunks/{vcs-qrg20bc0.js → ripgrep-qrg20bc0.js} +0 -0
- /package/dist/chunks/{vcs-rcb2kzg1.js → ripgrep-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{vcs-sdp7kfr6.js → ripgrep-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{vcs-sk3qaz4a.js → ripgrep-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{vcs-ssg3fenm.js → ripgrep-ssg3fenm.js} +0 -0
- /package/dist/chunks/{vcs-w803qqfp.js → ripgrep-w803qqfp.js} +0 -0
- /package/dist/chunks/{vcs-wc3fc9cn.js → ripgrep-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{vcs-wer8tq1h.js → ripgrep-wer8tq1h.js} +0 -0
- /package/dist/chunks/{vcs-wtztk69x.js → ripgrep-wtztk69x.js} +0 -0
- /package/dist/chunks/{vcs-x0ckcb58.js → ripgrep-x0ckcb58.js} +0 -0
- /package/dist/chunks/{vcs-x61499pn.js → ripgrep-x61499pn.js} +0 -0
- /package/dist/chunks/{vcs-y44na4kk.js → ripgrep-y44na4kk.js} +0 -0
- /package/dist/chunks/{vcs-y8cydn3q.js → ripgrep-y8cydn3q.js} +0 -0
- /package/dist/chunks/{vcs-y8f7s663.js → ripgrep-y8f7s663.js} +0 -0
- /package/dist/chunks/{vcs-ygaqb7jw.js → ripgrep-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{vcs-ym463w8f.js → ripgrep-ym463w8f.js} +0 -0
- /package/dist/chunks/{vcs-z9919s4g.js → ripgrep-z9919s4g.js} +0 -0
|
@@ -1,80 +1,80 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./ripgrep-2xqghjp6.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service80
|
|
6
|
+
} from "./ripgrep-kcetpk2c.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service55
|
|
9
|
+
} from "./ripgrep-sd5f6jdk.js";
|
|
10
10
|
import {
|
|
11
11
|
userNotification2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./ripgrep-vzs5sf6e.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionMessage2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./ripgrep-gftt206x.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
NotFoundError8,
|
|
18
18
|
PromptConflictError2,
|
|
19
19
|
SyntheticConflictError2,
|
|
20
20
|
CompactionConflictError2,
|
|
21
21
|
BusyError2,
|
|
22
22
|
InboxConflictError2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./ripgrep-j6rk38x8.js";
|
|
24
24
|
import {
|
|
25
25
|
SessionEvent2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./ripgrep-ec1grn59.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./
|
|
28
|
+
Service59
|
|
29
|
+
} from "./ripgrep-m74y7a9x.js";
|
|
30
30
|
import {
|
|
31
31
|
Delivery2,
|
|
32
32
|
SyntheticPayload2,
|
|
33
|
-
|
|
34
|
-
} from "./
|
|
33
|
+
Service54
|
|
34
|
+
} from "./ripgrep-9gjvwznx.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
} from "./
|
|
36
|
+
Service52
|
|
37
|
+
} from "./ripgrep-jzq9sbf8.js";
|
|
38
38
|
import {
|
|
39
39
|
prepare2
|
|
40
|
-
} from "./
|
|
40
|
+
} from "./ripgrep-18qa6r1n.js";
|
|
41
41
|
import {
|
|
42
42
|
stage2,
|
|
43
43
|
clear2,
|
|
44
44
|
commit2
|
|
45
|
-
} from "./
|
|
45
|
+
} from "./ripgrep-00bkszwx.js";
|
|
46
46
|
import {
|
|
47
47
|
start2
|
|
48
|
-
} from "./
|
|
48
|
+
} from "./ripgrep-ttpyk6f9.js";
|
|
49
49
|
import {
|
|
50
50
|
get4
|
|
51
|
-
} from "./
|
|
51
|
+
} from "./ripgrep-nn5bpfje.js";
|
|
52
52
|
import {
|
|
53
53
|
__export
|
|
54
|
-
} from "./
|
|
54
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
55
55
|
|
|
56
56
|
// src/session/session.ts
|
|
57
57
|
var exports_session2 = {};
|
|
58
58
|
__export(exports_session2, {
|
|
59
59
|
Session: () => exports_session2,
|
|
60
|
-
make: () =>
|
|
60
|
+
make: () => make12
|
|
61
61
|
});
|
|
62
62
|
import { DateTime, Effect, Fiber, Scope } from "effect";
|
|
63
63
|
import { Event } from "@opencode/schema/event";
|
|
64
64
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
65
|
-
var
|
|
66
|
-
const bus = yield*
|
|
65
|
+
var make12 = Effect.fn("Session.make")(function* () {
|
|
66
|
+
const bus = yield* Service80;
|
|
67
67
|
const database = yield* Service84;
|
|
68
|
-
const store = yield*
|
|
69
|
-
const instances = yield*
|
|
70
|
-
const execution = yield*
|
|
71
|
-
const admission = yield*
|
|
68
|
+
const store = yield* Service59;
|
|
69
|
+
const instances = yield* Service55;
|
|
70
|
+
const execution = yield* Service52;
|
|
71
|
+
const admission = yield* Service54;
|
|
72
72
|
const fs = yield* FSUtil.Service;
|
|
73
73
|
const scope = yield* Scope.Scope;
|
|
74
74
|
const get = Effect.fn("Session.get")(function* (sessionID) {
|
|
75
75
|
const session = yield* store.get(sessionID);
|
|
76
76
|
if (!session)
|
|
77
|
-
return yield* new
|
|
77
|
+
return yield* new NotFoundError8({ sessionID });
|
|
78
78
|
return session;
|
|
79
79
|
});
|
|
80
80
|
const message = Effect.fn("Session.message")(function* (sessionID, messageID) {
|
|
@@ -135,7 +135,7 @@ var make13 = Effect.fn("Session.make")(function* () {
|
|
|
135
135
|
});
|
|
136
136
|
if (existing)
|
|
137
137
|
return existing;
|
|
138
|
-
const item = yield* restore(prepare2({ session, messageID, input }).pipe(Effect.provideService(
|
|
138
|
+
const item = yield* restore(prepare2({ session, messageID, input }).pipe(Effect.provideService(Service55, instances), Effect.provideService(FSUtil.Service, fs)));
|
|
139
139
|
if (session.revert)
|
|
140
140
|
yield* commit2(bus, session);
|
|
141
141
|
return yield* admission.admit({
|
|
@@ -151,7 +151,7 @@ var make13 = Effect.fn("Session.make")(function* () {
|
|
|
151
151
|
const shell = Effect.fn("Session.shell")(function* (sessionID, input) {
|
|
152
152
|
const session = yield* get(sessionID);
|
|
153
153
|
const running = yield* Effect.gen(function* () {
|
|
154
|
-
const started = yield* start2({ session, command: input.command }).pipe(Effect.provideService(
|
|
154
|
+
const started = yield* start2({ session, command: input.command }).pipe(Effect.provideService(Service55, instances), Effect.tapError((error) => synthetic(sessionID, {
|
|
155
155
|
text: `User shell command failed to start:
|
|
156
156
|
${input.command}
|
|
157
157
|
|
|
@@ -180,7 +180,7 @@ ${error.message}`,
|
|
|
180
180
|
});
|
|
181
181
|
const skill = Effect.fn("Session.skill")(function* (sessionID, input) {
|
|
182
182
|
const session = yield* get(sessionID);
|
|
183
|
-
const skill = yield* get4({ session, skill: input.skill }).pipe(Effect.provideService(
|
|
183
|
+
const skill = yield* get4({ session, skill: input.skill }).pipe(Effect.provideService(Service55, instances));
|
|
184
184
|
yield* bus.publish(SessionEvent2.Skill.Activated, {
|
|
185
185
|
sessionID,
|
|
186
186
|
id: skill.id,
|
|
@@ -237,13 +237,13 @@ ${error.message}`,
|
|
|
237
237
|
const session = yield* get(sessionID);
|
|
238
238
|
if (yield* execution.isActive(sessionID))
|
|
239
239
|
return yield* new BusyError2({ sessionID });
|
|
240
|
-
return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(
|
|
240
|
+
return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(Service55, instances), Effect.provideService(Service84, database), Effect.provideService(Service80, bus));
|
|
241
241
|
});
|
|
242
242
|
const clear = Effect.fn("Session.revert.clear")(function* (sessionID) {
|
|
243
243
|
const session = yield* get(sessionID);
|
|
244
244
|
if (yield* execution.isActive(sessionID))
|
|
245
245
|
return yield* new BusyError2({ sessionID });
|
|
246
|
-
yield* clear2(session).pipe(Effect.provideService(
|
|
246
|
+
yield* clear2(session).pipe(Effect.provideService(Service55, instances), Effect.provideService(Service80, bus));
|
|
247
247
|
return yield* execution.wake(sessionID);
|
|
248
248
|
});
|
|
249
249
|
const commit = Effect.fn("Session.revert.commit")(function* (sessionID) {
|
|
@@ -329,4 +329,4 @@ ${error.message}`,
|
|
|
329
329
|
return { forSession };
|
|
330
330
|
});
|
|
331
331
|
|
|
332
|
-
export {
|
|
332
|
+
export { make12, exports_session2 };
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./ripgrep-mtf32xg9.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service80
|
|
6
|
+
} from "./ripgrep-kcetpk2c.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Event17,
|
|
10
|
+
Service68
|
|
11
|
+
} from "./ripgrep-gmfetzq4.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID13,
|
|
14
14
|
MethodID2,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service67
|
|
16
|
+
} from "./ripgrep-bahgfxtd.js";
|
|
17
17
|
import {
|
|
18
18
|
success2,
|
|
19
19
|
error2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./ripgrep-pjvnvgmy.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
ID12
|
|
23
|
+
} from "./ripgrep-zexvq6re.js";
|
|
24
24
|
import {
|
|
25
25
|
configuredSettings2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./ripgrep-wpzekwss.js";
|
|
27
27
|
|
|
28
28
|
// src/plugin/provider/snowflake-cortex.ts
|
|
29
29
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
30
30
|
import { Form } from "@opencode/schema/form";
|
|
31
31
|
import { Clock, Deferred, Effect, Option, Schema, Stream } from "effect";
|
|
32
32
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
33
|
-
var providerID =
|
|
34
|
-
var integrationID =
|
|
33
|
+
var providerID = ID12.make("snowflake-cortex");
|
|
34
|
+
var integrationID = ID13.make(providerID);
|
|
35
35
|
var methodID = MethodID2.make("browser");
|
|
36
36
|
var clientID = "LOCAL_APPLICATION";
|
|
37
37
|
var accountForm = Form.Fields.make([
|
|
@@ -53,9 +53,9 @@ var SnowflakeCortexPlugin2 = define({
|
|
|
53
53
|
id: "opencode.provider.snowflake.cortex",
|
|
54
54
|
effect: Effect.fn(function* (ctx) {
|
|
55
55
|
const http = yield* HttpClient.HttpClient;
|
|
56
|
-
const credentials = yield*
|
|
57
|
-
const integrations = yield*
|
|
58
|
-
const bus = yield*
|
|
56
|
+
const credentials = yield* Service68;
|
|
57
|
+
const integrations = yield* Service67;
|
|
58
|
+
const bus = yield* Service80;
|
|
59
59
|
const configured = yield* configuredSettings2(providerID);
|
|
60
60
|
const account = { value: "" };
|
|
61
61
|
const saved = Effect.gen(function* () {
|
|
@@ -184,7 +184,7 @@ var SnowflakeCortexPlugin2 = define({
|
|
|
184
184
|
});
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
|
-
yield* bus.subscribe(
|
|
187
|
+
yield* bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(() => load.pipe(Effect.andThen(ctx.provider.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
188
188
|
yield* ctx.session.hook("http.request", (event) => Effect.sync(() => {
|
|
189
189
|
const token = envToken();
|
|
190
190
|
if (token)
|
|
@@ -3,34 +3,34 @@ import {
|
|
|
3
3
|
WrongKind2,
|
|
4
4
|
Failed2,
|
|
5
5
|
typeFollowing2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./ripgrep-2a5m3afh.js";
|
|
7
7
|
import {
|
|
8
8
|
execDefaults2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./ripgrep-1dazxqgg.js";
|
|
10
10
|
import {
|
|
11
11
|
makeLocalDriver2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./ripgrep-b6gygkdw.js";
|
|
13
13
|
import {
|
|
14
14
|
makeMemoryDriver2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./ripgrep-aaet6srn.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
node84
|
|
19
|
-
} from "./vcs-hh4v7266.js";
|
|
20
|
-
import {
|
|
21
|
-
Service79,
|
|
17
|
+
Service78,
|
|
22
18
|
node82
|
|
23
|
-
} from "./
|
|
19
|
+
} from "./ripgrep-q26n4fcx.js";
|
|
20
|
+
import {
|
|
21
|
+
Service74,
|
|
22
|
+
node77
|
|
23
|
+
} from "./ripgrep-dtyy8xh0.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
27
27
|
|
|
28
28
|
// src/environment/environment.ts
|
|
29
29
|
var exports_environment2 = {};
|
|
30
30
|
__export(exports_environment2, {
|
|
31
31
|
EnvironmentService: () => exports_environment2,
|
|
32
|
-
Service: () =>
|
|
33
|
-
node: () =>
|
|
32
|
+
Service: () => Service73,
|
|
33
|
+
node: () => node76
|
|
34
34
|
});
|
|
35
35
|
import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
|
|
36
36
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -43,13 +43,13 @@ __export(exports_environment3, {
|
|
|
43
43
|
Environment: () => exports_environment3,
|
|
44
44
|
Failed: () => Failed2,
|
|
45
45
|
NotFound: () => NotFound2,
|
|
46
|
-
Service: () =>
|
|
46
|
+
Service: () => Service73,
|
|
47
47
|
WrongKind: () => WrongKind2,
|
|
48
48
|
execDefaults: () => execDefaults2,
|
|
49
49
|
makeFiles: () => makeFiles2,
|
|
50
50
|
makeLocalDriver: () => makeLocalDriver2,
|
|
51
51
|
makeMemoryDriver: () => makeMemoryDriver2,
|
|
52
|
-
node: () =>
|
|
52
|
+
node: () => node76,
|
|
53
53
|
typeFollowing: () => typeFollowing2
|
|
54
54
|
});
|
|
55
55
|
var makeFiles2 = (driver) => ({
|
|
@@ -58,19 +58,19 @@ var makeFiles2 = (driver) => ({
|
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
// src/environment/environment.ts
|
|
61
|
-
class
|
|
61
|
+
class Service73 extends Context.Service()("@opencode/Environment") {
|
|
62
62
|
}
|
|
63
|
-
var layer = Layer.effect(
|
|
63
|
+
var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
64
64
|
const spawner = yield* ChildProcessSpawner;
|
|
65
|
-
const location = yield*
|
|
66
|
-
const workspace = yield*
|
|
65
|
+
const location = yield* Service78;
|
|
66
|
+
const workspace = yield* Service74;
|
|
67
67
|
const driver = location.workspaceID ? yield* workspace.connect(location.workspaceID).pipe(Effect.mapError((cause) => new Error(`Failed to bind Environment to workspace ${location.workspaceID}`, { cause })), Effect.orDie) : makeLocalDriver2(spawner);
|
|
68
|
-
return
|
|
68
|
+
return Service73.of({ files: makeFiles2(driver), spawner: driver.spawner });
|
|
69
69
|
}));
|
|
70
|
-
var
|
|
71
|
-
service:
|
|
70
|
+
var node76 = makeLocationNode({
|
|
71
|
+
service: Service73,
|
|
72
72
|
layer,
|
|
73
|
-
deps: [CrossSpawnSpawner.node,
|
|
73
|
+
deps: [CrossSpawnSpawner.node, node82, node77]
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
export {
|
|
76
|
+
export { Service73, node76, exports_environment2, makeFiles2, exports_environment3 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
2
|
+
ID13,
|
|
3
|
+
Service67,
|
|
4
|
+
node70
|
|
5
|
+
} from "./ripgrep-bahgfxtd.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
ID12,
|
|
8
8
|
isAISDK2,
|
|
9
9
|
packageName2,
|
|
10
10
|
loadPackage2,
|
|
@@ -12,23 +12,23 @@ import {
|
|
|
12
12
|
modelSettings2,
|
|
13
13
|
mergeOverlay2,
|
|
14
14
|
mergeHeaders2,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
15
|
+
Service66,
|
|
16
|
+
node69
|
|
17
|
+
} from "./ripgrep-zexvq6re.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
19
|
+
Service62,
|
|
20
|
+
node65
|
|
21
|
+
} from "./ripgrep-74a0hazz.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
23
|
+
ID11,
|
|
24
24
|
VariantID2,
|
|
25
25
|
Ref2,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} from "./
|
|
26
|
+
Service65,
|
|
27
|
+
node68
|
|
28
|
+
} from "./ripgrep-ag1tg3gv.js";
|
|
29
29
|
import {
|
|
30
30
|
__export
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
32
32
|
|
|
33
33
|
// src/model-resolver.ts
|
|
34
34
|
var exports_model_resolver = {};
|
|
@@ -37,15 +37,15 @@ __export(exports_model_resolver, {
|
|
|
37
37
|
ModelConfigurationError: () => ModelConfigurationError2,
|
|
38
38
|
ModelInitializationError: () => ModelInitializationError2,
|
|
39
39
|
ModelResolver: () => exports_model_resolver,
|
|
40
|
-
Service: () =>
|
|
40
|
+
Service: () => Service61,
|
|
41
41
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
|
|
42
42
|
UnsupportedCompactionError: () => UnsupportedCompactionError2,
|
|
43
43
|
UnsupportedPackageError: () => UnsupportedPackageError2,
|
|
44
44
|
VariantUnavailableError: () => VariantUnavailableError2,
|
|
45
45
|
fromCatalogModel: () => fromCatalogModel2,
|
|
46
46
|
hasPackage: () => hasPackage2,
|
|
47
|
-
layer: () =>
|
|
48
|
-
node: () =>
|
|
47
|
+
layer: () => layer23,
|
|
48
|
+
node: () => node64,
|
|
49
49
|
resolveModel: () => resolveModel2,
|
|
50
50
|
withVariant: () => withVariant2
|
|
51
51
|
});
|
|
@@ -55,8 +55,8 @@ import { Auth } from "@opencode/ai/route";
|
|
|
55
55
|
import { Context, Effect, Layer, Schema, Struct } from "effect";
|
|
56
56
|
import { Npm } from "@opencode/util/npm";
|
|
57
57
|
class VariantUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
|
|
58
|
-
providerID:
|
|
59
|
-
modelID:
|
|
58
|
+
providerID: ID12,
|
|
59
|
+
modelID: ID11,
|
|
60
60
|
variant: VariantID2
|
|
61
61
|
}) {
|
|
62
62
|
get message() {
|
|
@@ -65,8 +65,8 @@ class VariantUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
class UnsupportedPackageError2 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
|
|
68
|
-
providerID:
|
|
69
|
-
modelID:
|
|
68
|
+
providerID: ID12,
|
|
69
|
+
modelID: ID11,
|
|
70
70
|
package: Schema.String
|
|
71
71
|
}) {
|
|
72
72
|
get message() {
|
|
@@ -76,8 +76,8 @@ class UnsupportedPackageError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
76
76
|
var InitializationPhase2 = Schema.Literals(["load", "init", "construct"]);
|
|
77
77
|
|
|
78
78
|
class ModelConfigurationError2 extends Schema.TaggedError()("SessionRunnerModel.ModelConfigurationError", {
|
|
79
|
-
providerID:
|
|
80
|
-
modelID:
|
|
79
|
+
providerID: ID12,
|
|
80
|
+
modelID: ID11,
|
|
81
81
|
package: Schema.String,
|
|
82
82
|
detail: Schema.String
|
|
83
83
|
}) {
|
|
@@ -87,8 +87,8 @@ class ModelConfigurationError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
class ModelInitializationError2 extends Schema.TaggedError()("SessionRunnerModel.ModelInitializationError", {
|
|
90
|
-
providerID:
|
|
91
|
-
modelID:
|
|
90
|
+
providerID: ID12,
|
|
91
|
+
modelID: ID11,
|
|
92
92
|
package: Schema.String,
|
|
93
93
|
phase: InitializationPhase2,
|
|
94
94
|
detail: Schema.String
|
|
@@ -99,8 +99,8 @@ class ModelInitializationError2 extends Schema.TaggedError()("SessionRunnerModel
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
class UnresolvedProviderVariablesError2 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
|
|
102
|
-
providerID:
|
|
103
|
-
modelID:
|
|
102
|
+
providerID: ID12,
|
|
103
|
+
modelID: ID11,
|
|
104
104
|
variables: Schema.Array(Schema.String)
|
|
105
105
|
}) {
|
|
106
106
|
get message() {
|
|
@@ -109,8 +109,8 @@ class UnresolvedProviderVariablesError2 extends Schema.TaggedError()("SessionRun
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
|
|
112
|
-
providerID:
|
|
113
|
-
modelID:
|
|
112
|
+
providerID: ID12,
|
|
113
|
+
modelID: ID11,
|
|
114
114
|
route: Schema.String
|
|
115
115
|
}) {
|
|
116
116
|
get message() {
|
|
@@ -118,7 +118,7 @@ class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
class
|
|
121
|
+
class Service61 extends Context.Service()("@opencode/ModelResolver") {
|
|
122
122
|
}
|
|
123
123
|
var withVariant2 = (model, variantID) => {
|
|
124
124
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -258,15 +258,15 @@ var causeMessage = (cause) => {
|
|
|
258
258
|
};
|
|
259
259
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
260
260
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
261
|
-
var
|
|
262
|
-
const providers = yield*
|
|
263
|
-
const models = yield*
|
|
264
|
-
const integrations = yield*
|
|
261
|
+
var layer23 = Layer.effect(Service61, Effect.gen(function* () {
|
|
262
|
+
const providers = yield* Service66;
|
|
263
|
+
const models = yield* Service65;
|
|
264
|
+
const integrations = yield* Service67;
|
|
265
265
|
const npm = yield* Npm.Service;
|
|
266
|
-
const aisdk = yield*
|
|
266
|
+
const aisdk = yield* Service62;
|
|
267
267
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
268
268
|
const provider = yield* providers.get(selected.providerID);
|
|
269
|
-
const connection = yield* integrations.connection.active(provider?.integrationID ??
|
|
269
|
+
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID13.make(selected.providerID));
|
|
270
270
|
const credential = connection ? yield* integrations.connection.resolve(connection) : undefined;
|
|
271
271
|
const selectedVariant = yield* withVariant2(selected, variant);
|
|
272
272
|
const runtimeInfo = {
|
|
@@ -293,7 +293,7 @@ var layer18 = Layer.effect(Service42, Effect.gen(function* () {
|
|
|
293
293
|
chunkTimeout: provider?.settings?.chunkTimeout
|
|
294
294
|
};
|
|
295
295
|
});
|
|
296
|
-
return
|
|
296
|
+
return Service61.of({
|
|
297
297
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
298
298
|
const selected = requested ? yield* models.get(requested.providerID, requested.id) : yield* models.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(models.available(), (models) => models.find(hasPackage2))));
|
|
299
299
|
if (!selected)
|
|
@@ -310,10 +310,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
310
310
|
const name = packageName2(packageName);
|
|
311
311
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
312
312
|
}
|
|
313
|
-
var
|
|
314
|
-
service:
|
|
315
|
-
layer:
|
|
316
|
-
deps: [
|
|
313
|
+
var node64 = makeLocationNode({
|
|
314
|
+
service: Service61,
|
|
315
|
+
layer: layer23,
|
|
316
|
+
deps: [node69, node68, node70, Npm.node, node65]
|
|
317
317
|
});
|
|
318
318
|
|
|
319
|
-
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2,
|
|
319
|
+
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service61, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer23, node64, exports_model_resolver };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RelativePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./ripgrep-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service78,
|
|
6
|
+
node82
|
|
7
|
+
} from "./ripgrep-q26n4fcx.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Service72,
|
|
10
|
+
node75
|
|
11
|
+
} from "./ripgrep-jtkxxjqx.js";
|
|
12
12
|
import {
|
|
13
13
|
isHome2,
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
names4
|
|
15
|
+
} from "./ripgrep-89znhe33.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/filesystem/search.ts
|
|
21
21
|
var exports_search = {};
|
|
22
22
|
__export(exports_search, {
|
|
23
23
|
FileSystemSearch: () => exports_search,
|
|
24
|
-
Options: () =>
|
|
25
|
-
Service: () =>
|
|
26
|
-
configured: () =>
|
|
24
|
+
Options: () => Options10,
|
|
25
|
+
Service: () => Service71,
|
|
26
|
+
configured: () => configured10,
|
|
27
27
|
fffLayer: () => fffLayer2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer25,
|
|
29
|
+
node: () => node74,
|
|
30
30
|
ripgrepLayer: () => ripgrepLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -35,11 +35,11 @@ import { Clock, Context, Deferred, Duration, Effect, Layer, Schema, Scope } from
|
|
|
35
35
|
import { Fff } from "#fff";
|
|
36
36
|
import fuzzysort from "fuzzysort";
|
|
37
37
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
38
|
-
var
|
|
38
|
+
var Options10 = Schema.Struct({
|
|
39
39
|
fff: Schema.optional(Schema.Boolean)
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service71 extends Context.Service()("@opencode/FileSystem/Search") {
|
|
43
43
|
}
|
|
44
44
|
var REFRESH_INTERVAL = Duration.toMillis("10 seconds");
|
|
45
45
|
function emptyIndex() {
|
|
@@ -58,9 +58,9 @@ function search(index, input) {
|
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
var ripgrepLayer2 = Layer.effect(
|
|
62
|
-
const location = yield*
|
|
63
|
-
const ripgrep = yield*
|
|
61
|
+
var ripgrepLayer2 = Layer.effect(Service71, Effect.gen(function* () {
|
|
62
|
+
const location = yield* Service78;
|
|
63
|
+
const ripgrep = yield* Service72;
|
|
64
64
|
const scope = yield* Scope.Scope;
|
|
65
65
|
const clock = yield* Clock.Clock;
|
|
66
66
|
const home = isHome2(location.directory);
|
|
@@ -77,7 +77,7 @@ var ripgrepLayer2 = Layer.effect(Service62, Effect.gen(function* () {
|
|
|
77
77
|
cwd: location.directory,
|
|
78
78
|
pattern: "*",
|
|
79
79
|
limit: location.vcs && !home ? Number.MAX_SAFE_INTEGER : 1e5,
|
|
80
|
-
exclude: home ? [...
|
|
80
|
+
exclude: home ? [...names4()].map((name) => `${name}/**`) : undefined,
|
|
81
81
|
onEntry: (entry) => Effect.sync(() => {
|
|
82
82
|
next.files.set(entry.path, previous.files.get(entry.path) ?? fuzzysort.prepare(entry.path));
|
|
83
83
|
const parts = entry.path.split("/");
|
|
@@ -105,15 +105,15 @@ var ripgrepLayer2 = Layer.effect(Service62, Effect.gen(function* () {
|
|
|
105
105
|
Deferred.doneUnsafe(attempt, exit);
|
|
106
106
|
})), Effect.forkIn(scope), Effect.flatMap(() => initialized ? Effect.void : Deferred.await(attempt)));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service71.of({
|
|
109
109
|
find: (input) => Effect.gen(function* () {
|
|
110
110
|
yield* refresh;
|
|
111
111
|
return search(index, input);
|
|
112
112
|
})
|
|
113
113
|
});
|
|
114
114
|
}));
|
|
115
|
-
var fffLayer2 = Layer.effect(
|
|
116
|
-
const location = yield*
|
|
115
|
+
var fffLayer2 = Layer.effect(Service71, Effect.gen(function* () {
|
|
116
|
+
const location = yield* Service78;
|
|
117
117
|
const result = yield* Effect.try({
|
|
118
118
|
try: () => Fff.create({
|
|
119
119
|
basePath: location.directory,
|
|
@@ -126,12 +126,12 @@ var fffLayer2 = Layer.effect(Service62, Effect.gen(function* () {
|
|
|
126
126
|
if (!result?.ok) {
|
|
127
127
|
if (result)
|
|
128
128
|
yield* Effect.logWarning("failed to initialize fff", { error: result.error });
|
|
129
|
-
return
|
|
129
|
+
return Service71.of({
|
|
130
130
|
find: () => Effect.succeed([])
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
yield* Effect.addFinalizer(() => Effect.sync(() => result.value.destroy()));
|
|
134
|
-
return
|
|
134
|
+
return Service71.of({
|
|
135
135
|
find: (input) => Effect.sync(() => {
|
|
136
136
|
const options = { pageIndex: 0, pageSize: input.limit ?? 50 };
|
|
137
137
|
const items = (() => {
|
|
@@ -174,17 +174,17 @@ var fffLayer2 = Layer.effect(Service62, Effect.gen(function* () {
|
|
|
174
174
|
})
|
|
175
175
|
});
|
|
176
176
|
}));
|
|
177
|
-
var
|
|
178
|
-
const location = yield*
|
|
177
|
+
var layer25 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
178
|
+
const location = yield* Service78;
|
|
179
179
|
if (location.workspaceID)
|
|
180
180
|
return ripgrepLayer2;
|
|
181
181
|
if (options?.fff === false || options?.fff === undefined && process.platform === "win32" || !Fff.available())
|
|
182
182
|
return ripgrepLayer2;
|
|
183
183
|
return location.vcs && !isHome2(location.directory) ? fffLayer2 : ripgrepLayer2;
|
|
184
184
|
}));
|
|
185
|
-
function
|
|
186
|
-
return makeLocationNode({ service:
|
|
185
|
+
function configured10(options) {
|
|
186
|
+
return makeLocationNode({ service: Service71, layer: layer25(options), deps: [node82, node75] });
|
|
187
187
|
}
|
|
188
|
-
var
|
|
188
|
+
var node74 = configured10();
|
|
189
189
|
|
|
190
|
-
export {
|
|
190
|
+
export { Options10, Service71, ripgrepLayer2, fffLayer2, layer25, configured10, node74, exports_search };
|