@opencode/core 0.0.0-dev-19761 → 0.0.0-dev-19762
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 +80 -80
- package/dist/aisdk-native.js +88 -88
- package/dist/aisdk.js +91 -91
- package/dist/app.js +9 -9
- package/dist/bus.js +72 -72
- package/dist/chunks/{file-mutation-t2bexvdy.js → ripgrep-07s253ry.js} +11 -11
- package/dist/chunks/{file-mutation-jb2apxnp.js → ripgrep-0dh0nq6w.js} +20 -20
- package/dist/chunks/{file-mutation-6fw138dj.js → ripgrep-0k85axkz.js} +35 -35
- package/dist/chunks/{file-mutation-rknfjh7e.js → ripgrep-0mhxyvn3.js} +1 -1
- package/dist/chunks/{file-mutation-0paq2nw3.js → ripgrep-0paq2nw3.js} +1 -1
- package/dist/chunks/{file-mutation-eshnyej4.js → ripgrep-0pzddh61.js} +16 -16
- package/dist/chunks/{file-mutation-0q0f95c6.js → ripgrep-0q0f95c6.js} +1 -1
- package/dist/chunks/{file-mutation-23r5xw0j.js → ripgrep-0y563vg8.js} +19 -19
- package/dist/chunks/{file-mutation-ycq1j8r4.js → ripgrep-12g0wccw.js} +25 -25
- package/dist/chunks/{file-mutation-pz7nssfe.js → ripgrep-169ygb7g.js} +11 -11
- package/dist/chunks/{file-mutation-cjjxcne9.js → ripgrep-1a209nz6.js} +4 -4
- package/dist/chunks/{file-mutation-1dazxqgg.js → ripgrep-1dazxqgg.js} +2 -2
- package/dist/chunks/{file-mutation-mx05ep7f.js → ripgrep-1e66bexh.js} +22 -22
- package/dist/chunks/{file-mutation-q6d53jre.js → ripgrep-1h80sv90.js} +5 -5
- package/dist/chunks/{file-mutation-argj9g0a.js → ripgrep-1ky015m0.js} +19 -19
- package/dist/chunks/ripgrep-1x11rq2a.js +18 -0
- package/dist/chunks/{file-mutation-z1pn07yf.js → ripgrep-1xh3h0en.js} +90 -90
- package/dist/chunks/{file-mutation-21r38tys.js → ripgrep-21r38tys.js} +1 -1
- package/dist/chunks/{file-mutation-rry1p14s.js → ripgrep-23txnh41.js} +30 -30
- package/dist/chunks/{file-mutation-6h73sxmp.js → ripgrep-2402vzrj.js} +5 -5
- package/dist/chunks/{file-mutation-tjzphfhm.js → ripgrep-2a3fjbcx.js} +33 -33
- package/dist/chunks/{file-mutation-2a5m3afh.js → ripgrep-2a5m3afh.js} +1 -1
- package/dist/chunks/{file-mutation-490myrvf.js → ripgrep-2ax3pmfy.js} +32 -32
- package/dist/chunks/{file-mutation-5g9n2b99.js → ripgrep-2na7m2zk.js} +9 -9
- package/dist/chunks/{file-mutation-c8xwdywd.js → ripgrep-2tp5fycg.js} +46 -46
- package/dist/chunks/{file-mutation-phhf31qs.js → ripgrep-2yjkg2nb.js} +3 -3
- package/dist/chunks/{file-mutation-mfqp6xfm.js → ripgrep-33w4ejhs.js} +9 -9
- package/dist/chunks/{file-mutation-v4d0xtvr.js → ripgrep-36bje86w.js} +23 -23
- package/dist/chunks/{file-mutation-6pgbgpfd.js → ripgrep-3f8gnqbr.js} +25 -25
- package/dist/chunks/{file-mutation-3fc6dm20.js → ripgrep-3fc6dm20.js} +1 -1
- package/dist/chunks/{file-mutation-3hepkmqq.js → ripgrep-3hepkmqq.js} +1 -1
- package/dist/chunks/{file-mutation-j7z9c6ef.js → ripgrep-3myh6vb2.js} +7 -7
- package/dist/chunks/{file-mutation-rr9a01jb.js → ripgrep-3pkbvm6e.js} +5 -5
- package/dist/chunks/{file-mutation-8etrbmzw.js → ripgrep-3r3y47tb.js} +12 -12
- package/dist/chunks/{file-mutation-eeaf82dq.js → ripgrep-3rtxz4nr.js} +8 -8
- package/dist/chunks/{file-mutation-3smtnn6g.js → ripgrep-3smtnn6g.js} +1 -1
- package/dist/chunks/{file-mutation-3tvqynh2.js → ripgrep-3tvqynh2.js} +1 -1
- package/dist/chunks/{file-mutation-mkw2wvv0.js → ripgrep-439dx3w9.js} +12 -12
- package/dist/chunks/ripgrep-4aja65hv.js +26 -0
- package/dist/chunks/{file-mutation-jx2pe4cz.js → ripgrep-4ccz1nn3.js} +15 -15
- package/dist/chunks/{file-mutation-4w6fs8m4.js → ripgrep-4cgj8kym.js} +29 -29
- package/dist/chunks/{file-mutation-6x2kf1yf.js → ripgrep-59jga5s0.js} +4 -4
- package/dist/chunks/{file-mutation-9pxd6j34.js → ripgrep-5b3s0ses.js} +3 -3
- package/dist/chunks/{file-mutation-w1k39n5e.js → ripgrep-5c0f1prt.js} +4 -4
- package/dist/chunks/{file-mutation-5c4hm403.js → ripgrep-5c4hm403.js} +3 -3
- package/dist/chunks/{file-mutation-5daktx2q.js → ripgrep-5daktx2q.js} +1 -1
- package/dist/chunks/ripgrep-5jv6vad0.js +478 -0
- package/dist/chunks/{file-mutation-w5rka97k.js → ripgrep-5rnnm2b5.js} +9 -9
- package/dist/chunks/{file-mutation-5t3nmthw.js → ripgrep-5t3nmthw.js} +2 -2
- package/dist/chunks/{file-mutation-8crgj5r9.js → ripgrep-5wfanzws.js} +17 -17
- package/dist/chunks/{file-mutation-1ajx6rf5.js → ripgrep-5xtgfte3.js} +8 -8
- package/dist/chunks/{file-mutation-kaa0v2ms.js → ripgrep-62drtx56.js} +15 -15
- package/dist/chunks/{file-mutation-nn804z9e.js → ripgrep-62g4d2jc.js} +18 -18
- package/dist/chunks/{file-mutation-hqp0mznc.js → ripgrep-65rthbqf.js} +49 -49
- package/dist/chunks/{file-mutation-669tq793.js → ripgrep-669tq793.js} +1 -1
- package/dist/chunks/{file-mutation-tyx8wm26.js → ripgrep-68ah1618.js} +24 -24
- package/dist/chunks/{file-mutation-jxs4965q.js → ripgrep-6er5rpyb.js} +32 -32
- package/dist/chunks/{file-mutation-wa4wttm3.js → ripgrep-6gnaea4r.js} +20 -20
- package/dist/chunks/{file-mutation-sttmbcgd.js → ripgrep-6hrm80vt.js} +11 -11
- package/dist/chunks/{file-mutation-68sx5bg2.js → ripgrep-6kpbv9kv.js} +11 -11
- package/dist/chunks/{file-mutation-6msgmcgs.js → ripgrep-6msgmcgs.js} +1 -1
- package/dist/chunks/{file-mutation-eq20ba7x.js → ripgrep-6qr3rp4k.js} +6 -6
- package/dist/chunks/{file-mutation-ta2zm0w6.js → ripgrep-6v61b0qc.js} +8 -8
- package/dist/chunks/{file-mutation-yexxf089.js → ripgrep-6xsy640g.js} +9 -9
- package/dist/chunks/{file-mutation-0en0hh3r.js → ripgrep-6xwcf1a8.js} +4 -4
- package/dist/chunks/{file-mutation-e1psbap5.js → ripgrep-78t29sg7.js} +29 -29
- package/dist/chunks/{file-mutation-2tfmgkzg.js → ripgrep-7ac170kv.js} +4 -4
- package/dist/chunks/{file-mutation-1k4apf30.js → ripgrep-7b41q261.js} +24 -24
- package/dist/chunks/{file-mutation-7bmhse3q.js → ripgrep-7bmhse3q.js} +1 -1
- package/dist/chunks/{file-mutation-e9kr5pq0.js → ripgrep-7dddc68k.js} +58 -58
- package/dist/chunks/{file-mutation-qgn6gcr1.js → ripgrep-7dqw4kz8.js} +5 -5
- package/dist/chunks/{file-mutation-fxzs1me6.js → ripgrep-7fyqmwvb.js} +11 -11
- package/dist/chunks/{file-mutation-3nyyq7xg.js → ripgrep-7kfbshd0.js} +11 -11
- package/dist/chunks/{file-mutation-3sn28wb8.js → ripgrep-7xh3d0wz.js} +11 -11
- package/dist/chunks/{file-mutation-930xmq4h.js → ripgrep-8097q003.js} +2 -2
- package/dist/chunks/{file-mutation-c8axtkt9.js → ripgrep-860pnem8.js} +43 -43
- package/dist/chunks/{file-mutation-8d7r5vzw.js → ripgrep-8d7r5vzw.js} +1 -1
- package/dist/chunks/{file-mutation-y0v1p1dt.js → ripgrep-8rem9epg.js} +19 -19
- package/dist/chunks/{file-mutation-fwfdmgk0.js → ripgrep-8y31xnqm.js} +5 -5
- package/dist/chunks/{file-mutation-0191c115.js → ripgrep-8z9xk3d4.js} +8 -8
- package/dist/chunks/{file-mutation-bhxm5nqe.js → ripgrep-8zdqq6r5.js} +8 -8
- package/dist/chunks/{file-mutation-r503nhm6.js → ripgrep-91wmxywm.js} +25 -25
- package/dist/chunks/{file-mutation-h0bsdgs8.js → ripgrep-9evy366m.js} +16 -16
- package/dist/chunks/{file-mutation-kk9fvz0g.js → ripgrep-9rb6bxms.js} +47 -47
- package/dist/chunks/{file-mutation-62n8bkpp.js → ripgrep-9zqcrcy9.js} +20 -20
- package/dist/chunks/{file-mutation-w2a1qfyt.js → ripgrep-9zwzqb5j.js} +14 -14
- package/dist/chunks/{file-mutation-jca4demv.js → ripgrep-a3r4dcrj.js} +2 -2
- package/dist/chunks/{file-mutation-aaet6srn.js → ripgrep-aaet6srn.js} +2 -2
- package/dist/chunks/{file-mutation-w6q7j1y8.js → ripgrep-aatngb1m.js} +17 -17
- package/dist/chunks/{file-mutation-hcn8jsvf.js → ripgrep-abzjsz63.js} +11 -11
- package/dist/chunks/{file-mutation-g8head04.js → ripgrep-afxeqb9x.js} +32 -32
- package/dist/chunks/{file-mutation-19yq3b24.js → ripgrep-awaee7qt.js} +6 -6
- package/dist/chunks/{file-mutation-12wcs7zv.js → ripgrep-ax2srgan.js} +17 -17
- package/dist/chunks/{file-mutation-kzmnf39s.js → ripgrep-b1f5cxcb.js} +35 -35
- package/dist/chunks/{file-mutation-b6gygkdw.js → ripgrep-b6gygkdw.js} +2 -2
- package/dist/chunks/{file-mutation-trmcxas4.js → ripgrep-b7t222ja.js} +20 -20
- package/dist/chunks/{file-mutation-p14ptj3g.js → ripgrep-b84fgpga.js} +6 -6
- package/dist/chunks/{file-mutation-ve4pfa0n.js → ripgrep-bct739vz.js} +4 -4
- package/dist/chunks/{file-mutation-w1kcaz1j.js → ripgrep-bfq4w3xg.js} +29 -29
- package/dist/chunks/{file-mutation-kxxr9yc4.js → ripgrep-bpg0r3hr.js} +3 -3
- package/dist/chunks/{file-mutation-1ptkcd49.js → ripgrep-c78yjyy8.js} +27 -27
- package/dist/chunks/{file-mutation-05hvfspe.js → ripgrep-cfzny4h7.js} +6 -6
- package/dist/chunks/{file-mutation-jphjmkq6.js → ripgrep-ch1v1c8p.js} +32 -32
- package/dist/chunks/{file-mutation-vv1kzm65.js → ripgrep-cnhjqeqt.js} +21 -21
- package/dist/chunks/{file-mutation-stpq40nd.js → ripgrep-cpdkwg3y.js} +5 -5
- package/dist/chunks/{file-mutation-bd6pnar5.js → ripgrep-ct330r3f.js} +51 -51
- package/dist/chunks/{file-mutation-5cj2v5s1.js → ripgrep-cwh8n86t.js} +5 -5
- package/dist/chunks/{file-mutation-8f4tg2r9.js → ripgrep-cwy8j6t2.js} +16 -16
- package/dist/chunks/{file-mutation-2vvhwkt5.js → ripgrep-d0bhsejh.js} +3 -3
- package/dist/chunks/{file-mutation-3jnr8qh1.js → ripgrep-d0xhtgqt.js} +13 -13
- package/dist/chunks/{file-mutation-hkfg6fzm.js → ripgrep-d2aac7k2.js} +5 -5
- package/dist/chunks/{file-mutation-v8a45twc.js → ripgrep-d6ky1srm.js} +8 -8
- package/dist/chunks/{file-mutation-cdqffv3e.js → ripgrep-d96wt5tg.js} +26 -26
- package/dist/chunks/{file-mutation-z0aj456m.js → ripgrep-dbb8vp5z.js} +4 -4
- package/dist/chunks/{file-mutation-57ez7d0k.js → ripgrep-dc6tzc5b.js} +9 -9
- package/dist/chunks/{file-mutation-7np6y5v9.js → ripgrep-df9eyrmy.js} +12 -12
- package/dist/chunks/{file-mutation-dj2t23y0.js → ripgrep-dj2t23y0.js} +2 -2
- package/dist/chunks/{file-mutation-dpkg50ah.js → ripgrep-dpkg50ah.js} +1 -1
- package/dist/chunks/{file-mutation-xfkkasph.js → ripgrep-drwq78ky.js} +4 -4
- package/dist/chunks/{file-mutation-y93vdqe0.js → ripgrep-dx1ajje0.js} +13 -13
- package/dist/chunks/{file-mutation-9kr5jrcq.js → ripgrep-e37h8kwf.js} +12 -12
- package/dist/chunks/{file-mutation-he1yacd3.js → ripgrep-e4s1wc8x.js} +34 -34
- package/dist/chunks/{file-mutation-qqtwvk4z.js → ripgrep-e6hd9jay.js} +4 -4
- package/dist/chunks/{file-mutation-ef5x83kb.js → ripgrep-ef5x83kb.js} +1 -1
- package/dist/chunks/{file-mutation-4wsvpbqa.js → ripgrep-emkevskv.js} +19 -19
- package/dist/chunks/{file-mutation-038hfwp6.js → ripgrep-ep1jjcpa.js} +27 -27
- package/dist/chunks/{file-mutation-mhkvc446.js → ripgrep-eq1pz5kg.js} +3 -3
- package/dist/chunks/{file-mutation-erw5rpbs.js → ripgrep-erw5rpbs.js} +2 -2
- package/dist/chunks/{file-mutation-etq0c3wd.js → ripgrep-etq0c3wd.js} +1 -1
- package/dist/chunks/{file-mutation-jbrrk9sm.js → ripgrep-fs5cagg8.js} +40 -40
- package/dist/chunks/{file-mutation-fwwk8vbp.js → ripgrep-fwwk8vbp.js} +2 -2
- package/dist/chunks/{file-mutation-fxbjtjnd.js → ripgrep-fxbjtjnd.js} +1 -1
- package/dist/chunks/{file-mutation-6naga41q.js → ripgrep-gayx1gyt.js} +13 -13
- package/dist/chunks/{file-mutation-gd4qta3r.js → ripgrep-gd4qta3r.js} +1 -1
- package/dist/chunks/{file-mutation-gjfveh7j.js → ripgrep-gf41fens.js} +16 -16
- package/dist/chunks/{file-mutation-9xk5h4y7.js → ripgrep-gssxapj4.js} +28 -28
- package/dist/chunks/{file-mutation-gv6a8nnw.js → ripgrep-gv6a8nnw.js} +2 -2
- package/dist/chunks/{file-mutation-36f0d0z6.js → ripgrep-gx3mnxx2.js} +11 -11
- package/dist/chunks/{file-mutation-b5e2r92p.js → ripgrep-gyae7r3z.js} +16 -16
- package/dist/chunks/{file-mutation-z35a98pe.js → ripgrep-h0f7nx0s.js} +7 -7
- package/dist/chunks/{file-mutation-5dr71pny.js → ripgrep-h0sftwr0.js} +30 -30
- package/dist/chunks/{file-mutation-8w32c8rg.js → ripgrep-h5zcf7qm.js} +10 -10
- package/dist/chunks/{file-mutation-nzyhnfxz.js → ripgrep-h6r3nrb9.js} +4 -4
- package/dist/chunks/{file-mutation-h6vf3j39.js → ripgrep-h6vf3j39.js} +1 -1
- package/dist/chunks/{file-mutation-zj09a0ew.js → ripgrep-h6z8d5tn.js} +4 -4
- package/dist/chunks/{file-mutation-z74yzpyb.js → ripgrep-h7nzbpgr.js} +9 -9
- package/dist/chunks/{file-mutation-hdnk95c8.js → ripgrep-hdnk95c8.js} +2 -2
- package/dist/chunks/{file-mutation-nt5s6xes.js → ripgrep-hfpmt9bd.js} +9 -9
- package/dist/chunks/{file-mutation-k0gdq8ga.js → ripgrep-hfypw2dz.js} +6 -6
- package/dist/chunks/{file-mutation-kp9dcx9z.js → ripgrep-hgxefm76.js} +5 -5
- package/dist/chunks/{file-mutation-qnfp5vp9.js → ripgrep-hh5hkdv8.js} +29 -29
- package/dist/chunks/{file-mutation-8zfh6ja9.js → ripgrep-hpsw77yp.js} +9 -9
- package/dist/chunks/{file-mutation-xsex6r0c.js → ripgrep-hszjrct3.js} +10 -10
- package/dist/chunks/{file-mutation-j56e64zr.js → ripgrep-j56e64zr.js} +1 -1
- package/dist/chunks/{file-mutation-nk6nqe1f.js → ripgrep-j6bw85pj.js} +12 -12
- package/dist/chunks/{file-mutation-q3t37ft6.js → ripgrep-jexxy024.js} +3 -3
- package/dist/chunks/{file-mutation-agkgk856.js → ripgrep-jkrnbczm.js} +30 -30
- package/dist/chunks/{file-mutation-3dcz9ejy.js → ripgrep-jm6qsc65.js} +25 -25
- package/dist/chunks/{file-mutation-kvx1rpnk.js → ripgrep-jrszgcfs.js} +45 -45
- package/dist/chunks/{file-mutation-8fatmd01.js → ripgrep-jvcyv7ga.js} +23 -23
- package/dist/chunks/{file-mutation-g1jht461.js → ripgrep-jwe77tbn.js} +19 -19
- package/dist/chunks/{file-mutation-eyh2t1hv.js → ripgrep-k2p8taat.js} +6 -6
- package/dist/chunks/{file-mutation-k3c624dm.js → ripgrep-k3c624dm.js} +3 -3
- package/dist/chunks/{file-mutation-rda0977t.js → ripgrep-k3cq2hmh.js} +18 -18
- package/dist/chunks/{file-mutation-4qc9h5b4.js → ripgrep-k6j8tzw3.js} +37 -37
- package/dist/chunks/{file-mutation-w21rnkyj.js → ripgrep-k71n7exj.js} +4 -4
- package/dist/chunks/{file-mutation-hzemm2m2.js → ripgrep-kd5q5zqj.js} +18 -18
- package/dist/chunks/{file-mutation-k9kj6xed.js → ripgrep-knb7evpn.js} +6 -6
- package/dist/chunks/{file-mutation-6ar6m3bc.js → ripgrep-ksf2dvjr.js} +28 -28
- package/dist/chunks/{file-mutation-wdg1qc82.js → ripgrep-kt4fd5wv.js} +42 -42
- package/dist/chunks/{file-mutation-m0jqrx5p.js → ripgrep-m0jqrx5p.js} +2 -2
- package/dist/chunks/{file-mutation-jnfbbasv.js → ripgrep-m1zn1q1z.js} +22 -22
- package/dist/chunks/{file-mutation-dz1qt43r.js → ripgrep-m2b8ec7v.js} +29 -29
- package/dist/chunks/{file-mutation-r5j3adnk.js → ripgrep-m2yqpbad.js} +23 -23
- package/dist/chunks/{file-mutation-m3fdjcah.js → ripgrep-m3fdjcah.js} +1 -1
- package/dist/chunks/{file-mutation-tdebhbgf.js → ripgrep-m5mynsjq.js} +23 -23
- package/dist/chunks/{file-mutation-3fzqgf3j.js → ripgrep-m65jqktx.js} +37 -37
- package/dist/chunks/{file-mutation-m9w0rfyh.js → ripgrep-m9w0rfyh.js} +1 -1
- package/dist/chunks/{file-mutation-rv7ejzpq.js → ripgrep-ms0xn50b.js} +18 -18
- package/dist/chunks/{file-mutation-53hfenjt.js → ripgrep-ms8brn22.js} +37 -37
- package/dist/chunks/{file-mutation-dhpnwncd.js → ripgrep-mvsprqws.js} +10 -10
- package/dist/chunks/{file-mutation-ragexb62.js → ripgrep-n21vzndg.js} +66 -66
- package/dist/chunks/{file-mutation-zvt5dnpc.js → ripgrep-n4r3xatb.js} +4 -4
- package/dist/chunks/{file-mutation-zanef7gq.js → ripgrep-nd0xc42w.js} +13 -13
- package/dist/chunks/{file-mutation-hs0crkaq.js → ripgrep-nja8qp5w.js} +6 -6
- package/dist/chunks/{file-mutation-cc4mce2f.js → ripgrep-nnsszj5x.js} +11 -11
- package/dist/chunks/{file-mutation-nscznvay.js → ripgrep-nscznvay.js} +2 -2
- package/dist/chunks/{file-mutation-25f8r58f.js → ripgrep-nz4t0xcn.js} +23 -23
- package/dist/chunks/{file-mutation-261r5e4n.js → ripgrep-p12905fy.js} +26 -26
- package/dist/chunks/{file-mutation-q9w8ad9e.js → ripgrep-pemp1hys.js} +22 -22
- package/dist/chunks/{file-mutation-g2x9qc47.js → ripgrep-pg73jfsx.js} +15 -15
- package/dist/chunks/{file-mutation-pjvnvgmy.js → ripgrep-pjvnvgmy.js} +1 -1
- package/dist/chunks/{file-mutation-pknna89w.js → ripgrep-pknna89w.js} +1 -1
- package/dist/chunks/{file-mutation-tx9w5tca.js → ripgrep-pnaxc6j9.js} +8 -8
- package/dist/chunks/{file-mutation-5s9b6sk1.js → ripgrep-q1hs5ta0.js} +11 -11
- package/dist/chunks/{file-mutation-cdpv32dq.js → ripgrep-q4bmvbzq.js} +22 -22
- package/dist/chunks/{file-mutation-98kxh760.js → ripgrep-q4wqpdp4.js} +59 -59
- package/dist/chunks/{file-mutation-a0025xpp.js → ripgrep-q7q75z35.js} +46 -46
- package/dist/chunks/{file-mutation-zz8tbzf4.js → ripgrep-qb63a9zf.js} +29 -29
- package/dist/chunks/{file-mutation-fqv15qzw.js → ripgrep-qcc7yqp9.js} +185 -185
- package/dist/chunks/{file-mutation-qj8eh1ht.js → ripgrep-qj8eh1ht.js} +1 -1
- package/dist/chunks/{file-mutation-2mq1h16s.js → ripgrep-qmqgtz8f.js} +9 -9
- package/dist/chunks/{file-mutation-e6hmchc5.js → ripgrep-qn4ba14w.js} +5 -5
- package/dist/chunks/{file-mutation-77g1rdh8.js → ripgrep-qqnsygxq.js} +14 -14
- package/dist/chunks/{file-mutation-c43xdfev.js → ripgrep-qrp8ptp7.js} +15 -15
- package/dist/chunks/{file-mutation-qsdy395h.js → ripgrep-qsdy395h.js} +1 -1
- package/dist/chunks/ripgrep-qw5byw2n.js +252 -0
- package/dist/chunks/{file-mutation-ed0qr85z.js → ripgrep-qwjskhjc.js} +32 -32
- package/dist/chunks/{file-mutation-ratrq7cm.js → ripgrep-ratrq7cm.js} +1 -1
- package/dist/chunks/{file-mutation-rdw6cm16.js → ripgrep-rdw6cm16.js} +1 -1
- package/dist/chunks/{file-mutation-vb4sbr14.js → ripgrep-rfkmytgk.js} +27 -27
- package/dist/chunks/{file-mutation-x8azae4j.js → ripgrep-rgstwj96.js} +17 -17
- package/dist/chunks/{file-mutation-yp2x3t23.js → ripgrep-rhraev7y.js} +4 -4
- package/dist/chunks/{file-mutation-xfr883hz.js → ripgrep-rq8ppe4g.js} +6 -6
- package/dist/chunks/{file-mutation-6tqx5jbv.js → ripgrep-ry40rfbw.js} +10 -10
- package/dist/chunks/{file-mutation-xekxpj28.js → ripgrep-s019phgc.js} +4 -4
- package/dist/chunks/{file-mutation-vwnqjcv5.js → ripgrep-s2hx2z0q.js} +5 -5
- package/dist/chunks/{file-mutation-rmxzq7f5.js → ripgrep-s2rj5jmp.js} +8 -8
- package/dist/chunks/{file-mutation-eaj1djv9.js → ripgrep-s8d7rejh.js} +6 -6
- package/dist/chunks/{file-mutation-c3t2pxbx.js → ripgrep-s9p8pbws.js} +9 -9
- package/dist/chunks/{file-mutation-yngsm5fg.js → ripgrep-skn7z29k.js} +4 -4
- package/dist/chunks/{file-mutation-ty5fs5j6.js → ripgrep-t1qnan72.js} +96 -96
- package/dist/chunks/{file-mutation-j1dch7pk.js → ripgrep-t4devrhk.js} +30 -30
- package/dist/chunks/{file-mutation-qnxv3j9m.js → ripgrep-t7q07nbx.js} +18 -18
- package/dist/chunks/{file-mutation-fcrgjy0e.js → ripgrep-t8qhwgea.js} +28 -28
- package/dist/chunks/{file-mutation-tazgh4e4.js → ripgrep-tazgh4e4.js} +1 -1
- package/dist/chunks/{file-mutation-p28j5sbe.js → ripgrep-tbz0fdvh.js} +5 -5
- package/dist/chunks/{file-mutation-89znhe33.js → ripgrep-tcezcvh9.js} +4 -4
- package/dist/chunks/{file-mutation-tdstcens.js → ripgrep-tdstcens.js} +1 -1
- package/dist/chunks/{file-mutation-q2etyd9a.js → ripgrep-tf19wwdv.js} +22 -22
- package/dist/chunks/{file-mutation-whj48kk1.js → ripgrep-thaams7w.js} +7 -7
- package/dist/chunks/{file-mutation-tn0aqsam.js → ripgrep-tn0aqsam.js} +2 -2
- package/dist/chunks/{file-mutation-6s2w4xdb.js → ripgrep-tq2587tb.js} +33 -33
- package/dist/chunks/{file-mutation-hgfd4343.js → ripgrep-tqm34zts.js} +5 -5
- package/dist/chunks/{file-mutation-b5f1m11j.js → ripgrep-tvfyrrh0.js} +10 -10
- package/dist/chunks/{file-mutation-tvtrv512.js → ripgrep-tvtrv512.js} +1 -1
- package/dist/chunks/{file-mutation-29t5f74k.js → ripgrep-typ5r3q7.js} +44 -44
- package/dist/chunks/{file-mutation-mc8fvfg2.js → ripgrep-vec3xbqq.js} +11 -11
- package/dist/chunks/{file-mutation-veqvce7d.js → ripgrep-veqvce7d.js} +1 -1
- package/dist/chunks/{file-mutation-0veef661.js → ripgrep-vhbe7qx8.js} +24 -24
- package/dist/chunks/{file-mutation-kejfs2t8.js → ripgrep-vmefg2k5.js} +10 -10
- package/dist/chunks/{file-mutation-y1qgdahb.js → ripgrep-vt8bwbt5.js} +20 -20
- package/dist/chunks/{file-mutation-vzcthcp8.js → ripgrep-vzcthcp8.js} +1 -1
- package/dist/chunks/{file-mutation-w3wsvvr9.js → ripgrep-w3wsvvr9.js} +1 -1
- package/dist/chunks/{file-mutation-mv7q07d5.js → ripgrep-wa54e3vz.js} +4 -4
- package/dist/chunks/{file-mutation-pfcs87zg.js → ripgrep-wafw61rg.js} +50 -50
- package/dist/chunks/{file-mutation-wd87259q.js → ripgrep-wd87259q.js} +1 -1
- package/dist/chunks/{file-mutation-w9km2t8f.js → ripgrep-wfdrftzm.js} +23 -23
- package/dist/chunks/{file-mutation-jxbs1d80.js → ripgrep-whndsrt7.js} +3 -3
- package/dist/chunks/{file-mutation-4a7w1hwq.js → ripgrep-wqyxzdgz.js} +8 -8
- package/dist/chunks/{file-mutation-nfp31767.js → ripgrep-wsp6vqtj.js} +13 -13
- package/dist/chunks/{file-mutation-x1ezjp6w.js → ripgrep-x1ezjp6w.js} +1 -1
- package/dist/chunks/{file-mutation-zxpkpj7m.js → ripgrep-x1jfkgfy.js} +33 -33
- package/dist/chunks/{file-mutation-sxgvjrqz.js → ripgrep-xajhzveg.js} +35 -35
- package/dist/chunks/{file-mutation-dvw9aka0.js → ripgrep-xbb1qmqt.js} +12 -12
- package/dist/chunks/{file-mutation-jyerrpx0.js → ripgrep-xcrs1118.js} +13 -13
- package/dist/chunks/{file-mutation-4m13kmf8.js → ripgrep-xgsym865.js} +1 -1
- package/dist/chunks/{file-mutation-y1fvbwt7.js → ripgrep-y1fvbwt7.js} +1 -1
- package/dist/chunks/{file-mutation-3ktbe3hf.js → ripgrep-ybhbtxjg.js} +6 -6
- package/dist/chunks/{file-mutation-2a6rn6yr.js → ripgrep-ycjb11n5.js} +6 -6
- package/dist/chunks/{file-mutation-tjt7rmbv.js → ripgrep-yp991fg2.js} +13 -13
- package/dist/chunks/{file-mutation-yrhqyw5v.js → ripgrep-yrhqyw5v.js} +1 -1
- package/dist/chunks/{file-mutation-yrznvahk.js → ripgrep-yrznvahk.js} +2 -2
- package/dist/chunks/{file-mutation-z0bkrqjs.js → ripgrep-z0bkrqjs.js} +1 -1
- package/dist/chunks/{file-mutation-wrzj8c0x.js → ripgrep-z1k9zp2p.js} +31 -31
- package/dist/chunks/{file-mutation-wg6s600h.js → ripgrep-z44ceg51.js} +4 -4
- package/dist/chunks/{file-mutation-y0dw7cqc.js → ripgrep-z5eyhade.js} +7 -7
- package/dist/chunks/{file-mutation-z63w68vq.js → ripgrep-z63w68vq.js} +2 -2
- package/dist/chunks/{file-mutation-2dxbdfvq.js → ripgrep-z6p90rpz.js} +9 -9
- package/dist/chunks/{file-mutation-dz3w7159.js → ripgrep-z7v7v5ag.js} +21 -21
- package/dist/chunks/{file-mutation-zeh9ct20.js → ripgrep-zeh9ct20.js} +2 -2
- package/dist/chunks/{file-mutation-26ejc4a2.js → ripgrep-zg418ags.js} +15 -15
- package/dist/chunks/{file-mutation-4jc5c4h4.js → ripgrep-zhq6vg7a.js} +1 -1
- package/dist/chunks/{file-mutation-g1yjvpwh.js → ripgrep-zk15axjh.js} +5 -5
- package/dist/chunks/{file-mutation-5g5p3a4z.js → ripgrep-zk6kxzfj.js} +14 -14
- package/dist/chunks/{file-mutation-hvx6p1wp.js → ripgrep-zmamrcx1.js} +20 -20
- package/dist/chunks/{file-mutation-zh8xyr5z.js → ripgrep-zn9ms18j.js} +3 -3
- package/dist/chunks/{file-mutation-zr2ceqn5.js → ripgrep-zr2ceqn5.js} +1 -1
- package/dist/chunks/{file-mutation-f5a4ckrp.js → ripgrep-zt292cyn.js} +25 -25
- package/dist/chunks/{file-mutation-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 +80 -80
- package/dist/config/discovery.js +83 -83
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +105 -105
- package/dist/config/plugin/agent.js +124 -124
- package/dist/config/plugin/command.js +213 -213
- package/dist/config/plugin/compaction.js +159 -159
- package/dist/config/plugin/compatibility.js +140 -140
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +123 -123
- package/dist/config/plugin/image.js +122 -122
- package/dist/config/plugin/instruction.js +89 -89
- package/dist/config/plugin/location-watcher.js +122 -122
- package/dist/config/plugin/mcp.js +131 -131
- package/dist/config/plugin/policy.js +122 -122
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +124 -124
- package/dist/config/plugin/shell.js +124 -124
- package/dist/config/plugin/skill-file.js +101 -101
- package/dist/config/plugin/skill.js +143 -143
- package/dist/config/plugin/snapshot.js +122 -122
- package/dist/config/plugin/source.js +125 -125
- package/dist/config/plugin/tool-output.js +124 -124
- package/dist/config/plugin/websearch.js +123 -123
- package/dist/config/plugin/worktree.js +124 -124
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +127 -127
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +84 -84
- package/dist/database/database.js +69 -69
- 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.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- 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 +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +366 -366
- 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 +92 -92
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +94 -94
- 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 +73 -73
- package/dist/file-access.js +103 -103
- package/dist/file-mutation.js +93 -93
- package/dist/file-retention.js +1 -1
- package/dist/file.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 +220 -220
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +102 -102
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +107 -107
- package/dist/form.js +85 -85
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +82 -82
- package/dist/generate.js +102 -102
- 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 +98 -98
- 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 +357 -357
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +85 -85
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +134 -134
- package/dist/location-lifecycle.js +105 -105
- package/dist/location-mutation.js +103 -103
- package/dist/location-service-map.js +85 -85
- package/dist/location-services.js +354 -354
- package/dist/location.js +86 -86
- package/dist/mcp/client.js +90 -90
- package/dist/mcp/index.js +103 -103
- package/dist/mcp/instructions.js +127 -127
- package/dist/mcp/oauth.js +77 -77
- package/dist/mcp/stdio.js +89 -89
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +98 -98
- package/dist/model-resolver.js +97 -97
- package/dist/model.js +101 -101
- package/dist/models-dev.js +106 -106
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +81 -81
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +112 -112
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +85 -85
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +103 -103
- package/dist/plugin/command.js +100 -100
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +217 -217
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +328 -328
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +95 -95
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +101 -101
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +89 -89
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +118 -118
- package/dist/plugin/provider/digitalocean.js +92 -92
- 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 +92 -92
- package/dist/plugin/provider/gitlab.js +90 -90
- package/dist/plugin/provider/google-vertex.js +89 -89
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +121 -121
- package/dist/plugin/provider/modal.js +91 -91
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +121 -121
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +92 -92
- package/dist/plugin/provider/openrouter.js +90 -90
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +77 -77
- package/dist/plugin/provider/prompt-cache-key.js +89 -89
- package/dist/plugin/provider/sap-ai-core.js +90 -90
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +121 -121
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +89 -89
- package/dist/plugin/provider/vllm.js +121 -121
- package/dist/plugin/provider/xai.js +90 -90
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +158 -158
- package/dist/plugin/sdk.js +75 -75
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +138 -138
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +343 -343
- package/dist/plugin/update.js +2 -2
- package/dist/plugin/vcs/git.js +85 -85
- package/dist/plugin/vcs/hg.js +85 -85
- package/dist/plugin/warming.js +120 -120
- package/dist/plugin/websearch/exa.js +5 -5
- 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 +6 -6
- package/dist/plugin.js +224 -224
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +89 -89
- package/dist/provider.js +100 -100
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +93 -93
- package/dist/reference/instructions.js +88 -88
- package/dist/reference.js +90 -90
- package/dist/repository-cache.js +80 -80
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +94 -94
- package/dist/rpc.js +85 -85
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +151 -151
- package/dist/session/diff.js +87 -87
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +223 -223
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +89 -89
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +78 -78
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +96 -96
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +116 -116
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +85 -85
- package/dist/session/prompt.js +104 -104
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +89 -89
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +228 -228
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +97 -97
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +113 -113
- package/dist/session/runner/step.js +123 -123
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +171 -171
- package/dist/session/shell.js +137 -137
- package/dist/session/skill.js +102 -102
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +74 -74
- package/dist/session/store.js +86 -86
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +209 -209
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +149 -149
- package/dist/session/to-session-error.js +110 -110
- package/dist/session/transfer.js +222 -222
- package/dist/session/usage.js +1 -1
- package/dist/session.js +217 -217
- 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 +139 -139
- package/dist/skill/discovery.js +2 -2
- package/dist/skill/instructions.js +104 -104
- package/dist/skill.js +109 -109
- package/dist/snapshot.js +92 -92
- 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 +119 -119
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +123 -123
- package/dist/tool/plugin/grep.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +121 -121
- package/dist/tool/plugin/question.js +104 -104
- package/dist/tool/plugin/read.js +124 -124
- package/dist/tool/plugin/shell.js +216 -216
- package/dist/tool/plugin/skill.js +112 -112
- package/dist/tool/plugin/subagent.js +218 -218
- package/dist/tool/plugin/webfetch.js +111 -111
- package/dist/tool/plugin/websearch.js +113 -113
- package/dist/tool/plugin/write.js +121 -121
- package/dist/tool/read-filesystem.js +99 -99
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- 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 +2 -2
- package/dist/v1/config/command.js +1 -1
- 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 +91 -91
- package/dist/v1/config/permission.js +1 -1
- 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 +92 -92
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +88 -88
- package/dist/websearch.js +83 -83
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +78 -78
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +79 -79
- 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 +88 -88
- package/dist/worktree.js +95 -95
- package/package.json +8 -8
- package/dist/chunks/file-mutation-9qfwj0p7.js +0 -478
- package/dist/chunks/file-mutation-nr40dc33.js +0 -26
- package/dist/chunks/file-mutation-rap9a73h.js +0 -18
- package/dist/chunks/file-mutation-zn2zb1e7.js +0 -252
- /package/dist/chunks/{file-mutation-0mesazry.js → ripgrep-0mesazry.js} +0 -0
- /package/dist/chunks/{file-mutation-0qkdqm5v.js → ripgrep-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{file-mutation-0zkw76rk.js → ripgrep-0zkw76rk.js} +0 -0
- /package/dist/chunks/{file-mutation-17cy0kzp.js → ripgrep-17cy0kzp.js} +0 -0
- /package/dist/chunks/{file-mutation-1cnp2v09.js → ripgrep-1cnp2v09.js} +0 -0
- /package/dist/chunks/{file-mutation-1kg9ymc8.js → ripgrep-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{file-mutation-24dcb14g.js → ripgrep-24dcb14g.js} +0 -0
- /package/dist/chunks/{file-mutation-2710q6r3.js → ripgrep-2710q6r3.js} +0 -0
- /package/dist/chunks/{file-mutation-2axfhc9x.js → ripgrep-2axfhc9x.js} +0 -0
- /package/dist/chunks/{file-mutation-2c3vjs8z.js → ripgrep-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{file-mutation-359p4xyc.js → ripgrep-359p4xyc.js} +0 -0
- /package/dist/chunks/{file-mutation-3asan66x.js → ripgrep-3asan66x.js} +0 -0
- /package/dist/chunks/{file-mutation-3v8g72cx.js → ripgrep-3v8g72cx.js} +0 -0
- /package/dist/chunks/{file-mutation-3w5fmr99.js → ripgrep-3w5fmr99.js} +0 -0
- /package/dist/chunks/{file-mutation-3wcehsnq.js → ripgrep-3wcehsnq.js} +0 -0
- /package/dist/chunks/{file-mutation-43n2bw4t.js → ripgrep-43n2bw4t.js} +0 -0
- /package/dist/chunks/{file-mutation-4knz6hnm.js → ripgrep-4knz6hnm.js} +0 -0
- /package/dist/chunks/{file-mutation-4vcrnpx2.js → ripgrep-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{file-mutation-4y7fprxs.js → ripgrep-4y7fprxs.js} +0 -0
- /package/dist/chunks/{file-mutation-53557ph1.js → ripgrep-53557ph1.js} +0 -0
- /package/dist/chunks/{file-mutation-550bvhaj.js → ripgrep-550bvhaj.js} +0 -0
- /package/dist/chunks/{file-mutation-5qd3pb7m.js → ripgrep-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{file-mutation-6prwharc.js → ripgrep-6prwharc.js} +0 -0
- /package/dist/chunks/{file-mutation-7akdwqpd.js → ripgrep-7akdwqpd.js} +0 -0
- /package/dist/chunks/{file-mutation-7m9af43g.js → ripgrep-7m9af43g.js} +0 -0
- /package/dist/chunks/{file-mutation-822emrt2.js → ripgrep-822emrt2.js} +0 -0
- /package/dist/chunks/{file-mutation-88xbtdfr.js → ripgrep-88xbtdfr.js} +0 -0
- /package/dist/chunks/{file-mutation-8n3pysct.js → ripgrep-8n3pysct.js} +0 -0
- /package/dist/chunks/{file-mutation-922hggd3.js → ripgrep-922hggd3.js} +0 -0
- /package/dist/chunks/{file-mutation-9a4afbnw.js → ripgrep-9a4afbnw.js} +0 -0
- /package/dist/chunks/{file-mutation-9rqn6x4v.js → ripgrep-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{file-mutation-a6k6eb26.js → ripgrep-a6k6eb26.js} +0 -0
- /package/dist/chunks/{file-mutation-af5trqkr.js → ripgrep-af5trqkr.js} +0 -0
- /package/dist/chunks/{file-mutation-afrmfg78.js → ripgrep-afrmfg78.js} +0 -0
- /package/dist/chunks/{file-mutation-aqzs7mqg.js → ripgrep-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{file-mutation-atq7p7m5.js → ripgrep-atq7p7m5.js} +0 -0
- /package/dist/chunks/{file-mutation-bkyjaxrp.js → ripgrep-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{file-mutation-bmr6ed5q.js → ripgrep-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{file-mutation-cf4snx6d.js → ripgrep-cf4snx6d.js} +0 -0
- /package/dist/chunks/{file-mutation-cvy3z8tj.js → ripgrep-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{file-mutation-d9fn303g.js → ripgrep-d9fn303g.js} +0 -0
- /package/dist/chunks/{file-mutation-d9jj8t3e.js → ripgrep-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{file-mutation-dajrwvna.js → ripgrep-dajrwvna.js} +0 -0
- /package/dist/chunks/{file-mutation-dap0rakb.js → ripgrep-dap0rakb.js} +0 -0
- /package/dist/chunks/{file-mutation-df08tz66.js → ripgrep-df08tz66.js} +0 -0
- /package/dist/chunks/{file-mutation-dy18nga0.js → ripgrep-dy18nga0.js} +0 -0
- /package/dist/chunks/{file-mutation-e5kj55wp.js → ripgrep-e5kj55wp.js} +0 -0
- /package/dist/chunks/{file-mutation-e73j6tqm.js → ripgrep-e73j6tqm.js} +0 -0
- /package/dist/chunks/{file-mutation-ec1grn59.js → ripgrep-ec1grn59.js} +0 -0
- /package/dist/chunks/{file-mutation-eh3zwz77.js → ripgrep-eh3zwz77.js} +0 -0
- /package/dist/chunks/{file-mutation-emrn6kk6.js → ripgrep-emrn6kk6.js} +0 -0
- /package/dist/chunks/{file-mutation-f0mxakyp.js → ripgrep-f0mxakyp.js} +0 -0
- /package/dist/chunks/{file-mutation-f6n9ztr4.js → ripgrep-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{file-mutation-faypxj3z.js → ripgrep-faypxj3z.js} +0 -0
- /package/dist/chunks/{file-mutation-fd410y7t.js → ripgrep-fd410y7t.js} +0 -0
- /package/dist/chunks/{file-mutation-fxgpk5d8.js → ripgrep-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{file-mutation-g4wezp1m.js → ripgrep-g4wezp1m.js} +0 -0
- /package/dist/chunks/{file-mutation-g86h250q.js → ripgrep-g86h250q.js} +0 -0
- /package/dist/chunks/{file-mutation-gebd4c9n.js → ripgrep-gebd4c9n.js} +0 -0
- /package/dist/chunks/{file-mutation-gftt206x.js → ripgrep-gftt206x.js} +0 -0
- /package/dist/chunks/{file-mutation-hjbc5kem.js → ripgrep-hjbc5kem.js} +0 -0
- /package/dist/chunks/{file-mutation-hk9envan.js → ripgrep-hk9envan.js} +0 -0
- /package/dist/chunks/{file-mutation-j2ntwpah.js → ripgrep-j2ntwpah.js} +0 -0
- /package/dist/chunks/{file-mutation-j5zkgpj8.js → ripgrep-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{file-mutation-jjkms2e6.js → ripgrep-jjkms2e6.js} +0 -0
- /package/dist/chunks/{file-mutation-jr7sbwjy.js → ripgrep-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{file-mutation-jwfs4k6c.js → ripgrep-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{file-mutation-jzg6c2d5.js → ripgrep-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{file-mutation-mp448xyj.js → ripgrep-mp448xyj.js} +0 -0
- /package/dist/chunks/{file-mutation-msx8hqn2.js → ripgrep-msx8hqn2.js} +0 -0
- /package/dist/chunks/{file-mutation-n05xt0ee.js → ripgrep-n05xt0ee.js} +0 -0
- /package/dist/chunks/{file-mutation-n3j8tn72.js → ripgrep-n3j8tn72.js} +0 -0
- /package/dist/chunks/{file-mutation-njntx4h6.js → ripgrep-njntx4h6.js} +0 -0
- /package/dist/chunks/{file-mutation-q3sfg36h.js → ripgrep-q3sfg36h.js} +0 -0
- /package/dist/chunks/{file-mutation-q74kybfr.js → ripgrep-q74kybfr.js} +0 -0
- /package/dist/chunks/{file-mutation-qaymkmh1.js → ripgrep-qaymkmh1.js} +0 -0
- /package/dist/chunks/{file-mutation-qb87gjwd.js → ripgrep-qb87gjwd.js} +0 -0
- /package/dist/chunks/{file-mutation-qfa1cgps.js → ripgrep-qfa1cgps.js} +0 -0
- /package/dist/chunks/{file-mutation-qg3g05ea.js → ripgrep-qg3g05ea.js} +0 -0
- /package/dist/chunks/{file-mutation-qrg20bc0.js → ripgrep-qrg20bc0.js} +0 -0
- /package/dist/chunks/{file-mutation-rcb2kzg1.js → ripgrep-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{file-mutation-sdp7kfr6.js → ripgrep-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{file-mutation-sk3qaz4a.js → ripgrep-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{file-mutation-ssg3fenm.js → ripgrep-ssg3fenm.js} +0 -0
- /package/dist/chunks/{file-mutation-twg0f83k.js → ripgrep-twg0f83k.js} +0 -0
- /package/dist/chunks/{file-mutation-w803qqfp.js → ripgrep-w803qqfp.js} +0 -0
- /package/dist/chunks/{file-mutation-wc3fc9cn.js → ripgrep-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{file-mutation-wer8tq1h.js → ripgrep-wer8tq1h.js} +0 -0
- /package/dist/chunks/{file-mutation-wtztk69x.js → ripgrep-wtztk69x.js} +0 -0
- /package/dist/chunks/{file-mutation-x0ckcb58.js → ripgrep-x0ckcb58.js} +0 -0
- /package/dist/chunks/{file-mutation-x61499pn.js → ripgrep-x61499pn.js} +0 -0
- /package/dist/chunks/{file-mutation-y44na4kk.js → ripgrep-y44na4kk.js} +0 -0
- /package/dist/chunks/{file-mutation-y8cydn3q.js → ripgrep-y8cydn3q.js} +0 -0
- /package/dist/chunks/{file-mutation-y8f7s663.js → ripgrep-y8f7s663.js} +0 -0
- /package/dist/chunks/{file-mutation-ygaqb7jw.js → ripgrep-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{file-mutation-ym463w8f.js → ripgrep-ym463w8f.js} +0 -0
- /package/dist/chunks/{file-mutation-z9919s4g.js → ripgrep-z9919s4g.js} +0 -0
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./ripgrep-q1hs5ta0.js";
|
|
5
5
|
import {
|
|
6
6
|
reserveSequence2,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service82,
|
|
8
|
+
node86
|
|
9
|
+
} from "./ripgrep-gyae7r3z.js";
|
|
10
10
|
import {
|
|
11
11
|
SessionEvent2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./ripgrep-ec1grn59.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionMessage2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./ripgrep-gftt206x.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
update3
|
|
18
|
+
} from "./ripgrep-tbz0fdvh.js";
|
|
19
19
|
import {
|
|
20
20
|
AbsolutePath2,
|
|
21
21
|
RelativePath2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./ripgrep-922hggd3.js";
|
|
23
23
|
import {
|
|
24
24
|
ProjectTable2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./ripgrep-dj2t23y0.js";
|
|
26
26
|
import {
|
|
27
27
|
SessionTable2,
|
|
28
28
|
SessionMessageTable2,
|
|
29
29
|
SessionInboxTable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./ripgrep-5c4hm403.js";
|
|
31
31
|
import {
|
|
32
32
|
projectAdmitted2,
|
|
33
33
|
projectDelivered2,
|
|
34
34
|
projectCancelled2,
|
|
35
35
|
projectDeliveryChanged2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./ripgrep-23txnh41.js";
|
|
37
37
|
import {
|
|
38
38
|
apply2,
|
|
39
39
|
initialize3,
|
|
40
40
|
advanceEpoch2,
|
|
41
41
|
reset2
|
|
42
|
-
} from "./
|
|
42
|
+
} from "./ripgrep-7ac170kv.js";
|
|
43
43
|
import {
|
|
44
44
|
initialize2
|
|
45
|
-
} from "./
|
|
45
|
+
} from "./ripgrep-kd5q5zqj.js";
|
|
46
46
|
import {
|
|
47
47
|
Slug2
|
|
48
|
-
} from "./
|
|
48
|
+
} from "./ripgrep-gebd4c9n.js";
|
|
49
49
|
import {
|
|
50
50
|
__export
|
|
51
|
-
} from "./
|
|
51
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
52
52
|
|
|
53
53
|
// src/session/projector.ts
|
|
54
54
|
var exports_projector = {};
|
|
55
55
|
__export(exports_projector, {
|
|
56
56
|
SessionAlreadyProjected: () => SessionAlreadyProjected2,
|
|
57
57
|
SessionProjector: () => exports_projector,
|
|
58
|
-
node: () =>
|
|
58
|
+
node: () => node26
|
|
59
59
|
});
|
|
60
60
|
import { and, asc, desc, eq, gt, gte, inArray, isNull, lt, lte, or, sql } from "drizzle-orm";
|
|
61
61
|
import { DateTime, Effect, Layer, Schema, Stream } from "effect";
|
|
@@ -246,7 +246,7 @@ function run(db, event) {
|
|
|
246
246
|
updateCompaction: updateMessage,
|
|
247
247
|
appendMessage
|
|
248
248
|
};
|
|
249
|
-
yield*
|
|
249
|
+
yield* update3(adapter, event);
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
252
|
function insertMessage(db, event, message) {
|
|
@@ -276,8 +276,8 @@ function projectIdle(db, event) {
|
|
|
276
276
|
});
|
|
277
277
|
}
|
|
278
278
|
var layer = Layer.effectDiscard(Effect.gen(function* () {
|
|
279
|
-
const bus = yield*
|
|
280
|
-
const db = (yield*
|
|
279
|
+
const bus = yield* Service82;
|
|
280
|
+
const db = (yield* Service83).db;
|
|
281
281
|
yield* bus.project(SessionEvent2.Created, (event) => Effect.gen(function* () {
|
|
282
282
|
const stored = yield* db.insert(SessionTable2).values({
|
|
283
283
|
id: event.data.sessionID,
|
|
@@ -458,6 +458,6 @@ var layer = Layer.effectDiscard(Effect.gen(function* () {
|
|
|
458
458
|
return publishSessionUsage(db, bus, event.data.sessionID);
|
|
459
459
|
}), Effect.forkScoped({ startImmediately: true }));
|
|
460
460
|
}));
|
|
461
|
-
var
|
|
461
|
+
var node26 = makeGlobalNode({ name: "session-projector", layer, deps: [node86, node87] });
|
|
462
462
|
|
|
463
|
-
export { SessionAlreadyProjected2,
|
|
463
|
+
export { SessionAlreadyProjected2, node26, exports_projector };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./ripgrep-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service76
|
|
6
|
+
} from "./ripgrep-cwy8j6t2.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/config/discovery.ts
|
|
12
12
|
var exports_discovery2 = {};
|
|
13
13
|
__export(exports_discovery2, {
|
|
14
14
|
ConfigDiscovery: () => exports_discovery2,
|
|
15
15
|
discover: () => discover3,
|
|
16
|
-
names: () =>
|
|
16
|
+
names: () => names4
|
|
17
17
|
});
|
|
18
18
|
import path from "path";
|
|
19
19
|
import { Effect } from "effect";
|
|
20
20
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
21
21
|
import { Global } from "@opencode/util/global";
|
|
22
|
-
var
|
|
22
|
+
var names4 = ["opencode.json", "opencode.jsonc"];
|
|
23
23
|
var discover3 = Effect.fn("ConfigDiscovery.discover")(function* (options) {
|
|
24
24
|
const fs = yield* FSUtil.Service;
|
|
25
25
|
const global = yield* Global.Service;
|
|
26
|
-
const location = yield*
|
|
26
|
+
const location = yield* Service76;
|
|
27
27
|
const globalDirectory = AbsolutePath2.make(global.config);
|
|
28
28
|
const globalAgentsDirectory = AbsolutePath2.make(path.join(global.home, ".agents"));
|
|
29
29
|
const globalClaudeDirectory = AbsolutePath2.make(path.join(global.home, ".claude"));
|
|
@@ -31,10 +31,10 @@ var discover3 = Effect.fn("ConfigDiscovery.discover")(function* (options) {
|
|
|
31
31
|
const directories = (yield* fs.resolve(location.directory)) === globalRoots[0] || options?.project === false ? [] : yield* fs.up({ targets: ["."], start: location.directory }).pipe(Effect.orDie);
|
|
32
32
|
const discovered = yield* Effect.forEach(directories, (directory) => Effect.gen(function* () {
|
|
33
33
|
const parent = yield* fs.resolve(directory);
|
|
34
|
-
return yield* Effect.forEach([".claude", ".agents", ".opencode", ...
|
|
34
|
+
return yield* Effect.forEach([".claude", ".agents", ".opencode", ...names4.toReversed()], (name) => fs.resolve(path.join(parent, name)).pipe(Effect.map((resolved) => ({ item: AbsolutePath2.make(path.join(directory, name)), resolved }))));
|
|
35
35
|
})).pipe(Effect.map((items) => items.flat()), Effect.orDie);
|
|
36
36
|
const globalEnabled = options?.global !== false;
|
|
37
|
-
const globalFiles = yield* Effect.forEach(
|
|
37
|
+
const globalFiles = yield* Effect.forEach(names4, (name) => fs.resolve(path.join(globalDirectory, name)));
|
|
38
38
|
const visible = discovered.filter(({ resolved }) => globalEnabled ? !globalRoots.includes(resolved) && !globalFiles.includes(resolved) : !globalRoots.some((root) => resolved === root || resolved.startsWith(root + path.sep))).map(({ item }) => item);
|
|
39
39
|
return {
|
|
40
40
|
global: globalEnabled ? globalDirectory : undefined,
|
|
@@ -56,4 +56,4 @@ var discover3 = Effect.fn("ConfigDiscovery.discover")(function* (options) {
|
|
|
56
56
|
};
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
export {
|
|
59
|
+
export { names4, discover3, exports_discovery2 };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
lazy2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./ripgrep-88xbtdfr.js";
|
|
4
4
|
import {
|
|
5
5
|
load4
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./ripgrep-5qd3pb7m.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/filesystem/watcher.ts
|
|
12
12
|
var exports_watcher = {};
|
|
13
13
|
__export(exports_watcher, {
|
|
14
14
|
Event: () => Event10,
|
|
15
15
|
Native: () => Native3,
|
|
16
|
-
Options: () =>
|
|
17
|
-
Service: () =>
|
|
16
|
+
Options: () => Options8,
|
|
17
|
+
Service: () => Service52,
|
|
18
18
|
Test: () => Test3,
|
|
19
19
|
Watcher: () => exports_watcher,
|
|
20
|
-
configured: () =>
|
|
20
|
+
configured: () => configured8,
|
|
21
21
|
hasNativeBinding: () => hasNativeBinding2,
|
|
22
|
-
layer: () =>
|
|
22
|
+
layer: () => layer19,
|
|
23
23
|
nativeLayer: () => nativeLayer2,
|
|
24
24
|
nativeNode: () => nativeNode2,
|
|
25
|
-
node: () =>
|
|
25
|
+
node: () => node55,
|
|
26
26
|
testLayer: () => testLayer3
|
|
27
27
|
});
|
|
28
28
|
import { createWrapper } from "@parcel/watcher/wrapper";
|
|
@@ -53,18 +53,18 @@ var hasNativeBinding2 = () => !!watcher();
|
|
|
53
53
|
|
|
54
54
|
class Native3 extends Context.Service()("@opencode/Watcher/Native") {
|
|
55
55
|
}
|
|
56
|
-
var
|
|
56
|
+
var Options8 = Schema.Struct({
|
|
57
57
|
enabled: Schema.optional(Schema.Boolean)
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service52 extends Context.Service()("@opencode/Watcher") {
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class Test3 extends Context.Service()("@opencode/Watcher/Test") {
|
|
64
64
|
}
|
|
65
|
-
var
|
|
65
|
+
var layer19 = (options) => Layer.effect(Service52, Effect.gen(function* () {
|
|
66
66
|
if (options?.enabled === false) {
|
|
67
|
-
return
|
|
67
|
+
return Service52.of({ subscribe: () => Effect.succeed(Stream.empty) });
|
|
68
68
|
}
|
|
69
69
|
const native = yield* Native3;
|
|
70
70
|
const watchers = yield* RcMap.make({
|
|
@@ -105,7 +105,7 @@ var layer20 = (options) => Layer.effect(Service51, Effect.gen(function* () {
|
|
|
105
105
|
return Stream.fromSubscription(subscription);
|
|
106
106
|
}));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service52.of({ subscribe });
|
|
109
109
|
}));
|
|
110
110
|
var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
111
111
|
const subscriptions = [];
|
|
@@ -129,9 +129,9 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
|
129
129
|
};
|
|
130
130
|
})
|
|
131
131
|
});
|
|
132
|
-
const context = yield* Layer.build(
|
|
132
|
+
const context = yield* Layer.build(layer19().pipe(Layer.provide(Layer.succeed(Native3, native))));
|
|
133
133
|
const test = Test3.of({
|
|
134
|
-
subscribe: Context.get(context,
|
|
134
|
+
subscribe: Context.get(context, Service52).subscribe,
|
|
135
135
|
emit: (update) => Effect.sync(() => {
|
|
136
136
|
const target = path.resolve(update.path);
|
|
137
137
|
active.forEach((matches, publish) => {
|
|
@@ -141,7 +141,7 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
|
141
141
|
}),
|
|
142
142
|
subscriptions: () => Effect.sync(() => [...subscriptions])
|
|
143
143
|
});
|
|
144
|
-
return Context.empty().pipe(Context.add(
|
|
144
|
+
return Context.empty().pipe(Context.add(Service52, test), Context.add(Test3, test));
|
|
145
145
|
}));
|
|
146
146
|
var nativeLayer2 = Layer.succeed(Native3, Native3.of({
|
|
147
147
|
subscribe: (input) => {
|
|
@@ -164,10 +164,10 @@ var nativeLayer2 = Layer.succeed(Native3, Native3.of({
|
|
|
164
164
|
}
|
|
165
165
|
}));
|
|
166
166
|
var nativeNode2 = makeGlobalNode({ service: Native3, layer: nativeLayer2, deps: [] });
|
|
167
|
-
function
|
|
168
|
-
return makeGlobalNode({ service:
|
|
167
|
+
function configured8(options) {
|
|
168
|
+
return makeGlobalNode({ service: Service52, layer: layer19(options), deps: [nativeNode2] });
|
|
169
169
|
}
|
|
170
|
-
var
|
|
170
|
+
var node55 = configured8();
|
|
171
171
|
function subscribeDirectory(native, backend, directory, ignore, publish) {
|
|
172
172
|
if (!native || !backend) {
|
|
173
173
|
return Effect.logError("watcher backend not supported", { directory, platform: process.platform }).pipe(Effect.as(undefined));
|
|
@@ -187,4 +187,4 @@ function subscribeDirectory(native, backend, directory, ignore, publish) {
|
|
|
187
187
|
}).pipe(Effect.as(undefined))));
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
export { Event10, hasNativeBinding2, Native3,
|
|
190
|
+
export { Event10, hasNativeBinding2, Native3, Options8, Service52, Test3, layer19, testLayer3, nativeLayer2, nativeNode2, configured8, node55, exports_watcher };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getTableColumnsRuntime2,
|
|
3
3
|
orderSelectedFields2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./ripgrep-emrn6kk6.js";
|
|
5
5
|
|
|
6
6
|
// src/database/drizzle/sqlite-core/effect/delete.ts
|
|
7
7
|
import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
provider2,
|
|
3
3
|
model2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./ripgrep-0paq2nw3.js";
|
|
5
5
|
import {
|
|
6
6
|
aisdk2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./ripgrep-xajhzveg.js";
|
|
8
8
|
import {
|
|
9
9
|
Capabilities2,
|
|
10
10
|
compatibility2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./ripgrep-0k85axkz.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/v1/config/migrate.ts
|
|
17
17
|
var exports_migrate = {};
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./ripgrep-dpkg50ah.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service82,
|
|
6
|
+
node86
|
|
7
|
+
} from "./ripgrep-gyae7r3z.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
9
|
+
Event18,
|
|
10
|
+
Service74,
|
|
11
|
+
node78
|
|
12
|
+
} from "./ripgrep-b1f5cxcb.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service76,
|
|
15
|
+
node80
|
|
16
|
+
} from "./ripgrep-cwy8j6t2.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service54,
|
|
19
|
+
node57
|
|
20
|
+
} from "./ripgrep-68ah1618.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID18,
|
|
23
|
+
Service81,
|
|
24
|
+
node85
|
|
25
|
+
} from "./ripgrep-m2b8ec7v.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./ripgrep-rdw6cm16.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID14,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service73,
|
|
34
|
+
node77
|
|
35
|
+
} from "./ripgrep-afxeqb9x.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/mcp/index.ts
|
|
41
41
|
var exports_mcp4 = {};
|
|
42
42
|
__export(exports_mcp4, {
|
|
43
43
|
Mcp: () => exports_mcp4,
|
|
44
|
-
NotFoundError: () =>
|
|
44
|
+
NotFoundError: () => NotFoundError5,
|
|
45
45
|
Options: () => Options4,
|
|
46
46
|
PromptsChanged: () => PromptsChanged2,
|
|
47
47
|
Resource: () => Resource2,
|
|
@@ -50,12 +50,12 @@ __export(exports_mcp4, {
|
|
|
50
50
|
ResourceContentPart: () => ResourceContentPart2,
|
|
51
51
|
ResourceTemplate: () => ResourceTemplate2,
|
|
52
52
|
ServerName: () => ServerName2,
|
|
53
|
-
Service: () =>
|
|
53
|
+
Service: () => Service31,
|
|
54
54
|
Status: () => Status2,
|
|
55
55
|
ToolCallError: () => ToolCallError2,
|
|
56
56
|
configured: () => configured4,
|
|
57
|
-
layer: () =>
|
|
58
|
-
node: () =>
|
|
57
|
+
layer: () => layer12,
|
|
58
|
+
node: () => node34
|
|
59
59
|
});
|
|
60
60
|
import { Mcp } from "@opencode/schema/mcp";
|
|
61
61
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -74,7 +74,7 @@ var ResourceCatalog2 = Mcp.ResourceCatalog;
|
|
|
74
74
|
var ResourceContentPart2 = Mcp.ResourceContentPart;
|
|
75
75
|
var ResourceContent2 = Mcp.ResourceContent;
|
|
76
76
|
|
|
77
|
-
class
|
|
77
|
+
class NotFoundError5 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
78
78
|
server: ServerName2
|
|
79
79
|
}) {
|
|
80
80
|
get message() {
|
|
@@ -93,7 +93,7 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
|
93
93
|
var endpointLoads = makeUnsafe2();
|
|
94
94
|
var cloneConfig = (config) => structuredClone(config);
|
|
95
95
|
|
|
96
|
-
class
|
|
96
|
+
class Service31 extends Context.Service()("@opencode/MCP") {
|
|
97
97
|
}
|
|
98
98
|
var Options4 = Schema.Struct({
|
|
99
99
|
clientInfo: Schema.optional(Schema.Struct({
|
|
@@ -101,13 +101,13 @@ var Options4 = Schema.Struct({
|
|
|
101
101
|
version: Schema.String
|
|
102
102
|
}))
|
|
103
103
|
});
|
|
104
|
-
var
|
|
105
|
-
const location = yield*
|
|
106
|
-
const environment = yield*
|
|
107
|
-
const bus = yield*
|
|
108
|
-
const forms = yield*
|
|
109
|
-
const integration = yield*
|
|
110
|
-
const credentials = yield*
|
|
104
|
+
var layer12 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
105
|
+
const location = yield* Service76;
|
|
106
|
+
const environment = yield* Service54;
|
|
107
|
+
const bus = yield* Service82;
|
|
108
|
+
const forms = yield* Service81;
|
|
109
|
+
const integration = yield* Service73;
|
|
110
|
+
const credentials = yield* Service74;
|
|
111
111
|
const root = yield* Effect.scope;
|
|
112
112
|
const fork = yield* FiberSet.makeRuntime();
|
|
113
113
|
const entries = new Map;
|
|
@@ -119,7 +119,7 @@ var layer15 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
119
119
|
return;
|
|
120
120
|
const remote = entry.config;
|
|
121
121
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
122
|
-
const integrationID =
|
|
122
|
+
const integrationID = ID14.make(suffix);
|
|
123
123
|
entry.integrationID = integrationID;
|
|
124
124
|
owned.add(integrationID);
|
|
125
125
|
const methodID = MethodID2.make(suffix);
|
|
@@ -135,7 +135,7 @@ var layer15 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
135
135
|
method: { id: methodID, type: "oauth", label: name },
|
|
136
136
|
authorize: () => Effect.gen(function* () {
|
|
137
137
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
138
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
138
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service74, credentials));
|
|
139
139
|
})
|
|
140
140
|
});
|
|
141
141
|
}).pipe(Scope.provide(scope));
|
|
@@ -144,19 +144,19 @@ var layer15 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
144
144
|
const name = ServerName2.make(server);
|
|
145
145
|
const entry = entries.get(name);
|
|
146
146
|
if (!entry)
|
|
147
|
-
return yield* new
|
|
147
|
+
return yield* new NotFoundError5({ server: name });
|
|
148
148
|
return { name, entry };
|
|
149
149
|
});
|
|
150
150
|
const connectProvider = Effect.fnUntraced(function* (entry) {
|
|
151
151
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
152
152
|
return;
|
|
153
153
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
154
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
154
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service74, credentials));
|
|
155
155
|
});
|
|
156
156
|
const elicitation = {
|
|
157
157
|
create: (input) => Effect.gen(function* () {
|
|
158
158
|
if (input.params.mode === "url") {
|
|
159
|
-
const formID =
|
|
159
|
+
const formID = ID18.create();
|
|
160
160
|
const elicitationID = input.params.elicitationId;
|
|
161
161
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
162
162
|
if (key)
|
|
@@ -240,7 +240,7 @@ var layer15 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
240
240
|
entry.scope = scope;
|
|
241
241
|
const authProvider = yield* connectProvider(entry);
|
|
242
242
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
243
|
-
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
243
|
+
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service54, environment), Scope.provide(scope));
|
|
244
244
|
const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
|
|
245
245
|
if (Exit.isSuccess(result)) {
|
|
246
246
|
entry.client = result.value.connection;
|
|
@@ -365,7 +365,7 @@ var layer15 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
365
365
|
yield* startServer(name, entry);
|
|
366
366
|
}).pipe(locks.withLock(name));
|
|
367
367
|
});
|
|
368
|
-
fork(bus.subscribe(
|
|
368
|
+
fork(bus.subscribe(Event18.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
369
369
|
const state = create3({
|
|
370
370
|
name: "mcp",
|
|
371
371
|
initial: () => ({
|
|
@@ -391,7 +391,7 @@ var layer15 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
391
391
|
}),
|
|
392
392
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
393
393
|
});
|
|
394
|
-
return
|
|
394
|
+
return Service31.of({
|
|
395
395
|
transform: state.transform,
|
|
396
396
|
reload: state.reload,
|
|
397
397
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -512,12 +512,12 @@ var layer15 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
512
512
|
}));
|
|
513
513
|
function configured4(options) {
|
|
514
514
|
return makeLocationNode({
|
|
515
|
-
service:
|
|
516
|
-
layer:
|
|
517
|
-
deps: [
|
|
515
|
+
service: Service31,
|
|
516
|
+
layer: layer12(options),
|
|
517
|
+
deps: [node80, node57, node86, node85, node77, node78]
|
|
518
518
|
});
|
|
519
519
|
}
|
|
520
|
-
var
|
|
520
|
+
var node34 = configured4();
|
|
521
521
|
function toElicitationField(key, property, required) {
|
|
522
522
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
523
523
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -568,4 +568,4 @@ function toElicitationField(key, property, required) {
|
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
|
|
571
|
-
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2,
|
|
571
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2, NotFoundError5, ToolCallError2, Service31, Options4, layer12, configured4, node34, exports_mcp4 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getViewSelectedFieldsRuntime2,
|
|
3
3
|
orderSelectedFields2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./ripgrep-emrn6kk6.js";
|
|
5
5
|
|
|
6
6
|
// src/database/drizzle/sqlite-core/effect/select.ts
|
|
7
7
|
import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service66
|
|
3
|
+
} from "./ripgrep-7dddc68k.js";
|
|
4
4
|
import {
|
|
5
5
|
MAX_MARKDOWN_BYTES2,
|
|
6
6
|
convertHTMLToMarkdown2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./ripgrep-4vcrnpx2.js";
|
|
8
8
|
import {
|
|
9
9
|
collectBoundedResponseBody2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./ripgrep-3v8g72cx.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/tool/plugin/webfetch.ts
|
|
16
16
|
var exports_webfetch = {};
|
|
17
17
|
__export(exports_webfetch, {
|
|
18
18
|
DEFAULT_TIMEOUT_SECONDS: () => DEFAULT_TIMEOUT_SECONDS2,
|
|
19
|
-
Input: () =>
|
|
20
|
-
MAX_RESPONSE_BYTES: () =>
|
|
19
|
+
Input: () => Input5,
|
|
20
|
+
MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES2,
|
|
21
21
|
MAX_TIMEOUT_SECONDS: () => MAX_TIMEOUT_SECONDS2,
|
|
22
|
-
Plugin: () =>
|
|
22
|
+
Plugin: () => Plugin5,
|
|
23
23
|
WebFetchTool: () => exports_webfetch,
|
|
24
24
|
convertHTMLToMarkdown: () => convertHTMLToMarkdown2,
|
|
25
|
-
description: () =>
|
|
25
|
+
description: () => description4,
|
|
26
26
|
extractTextFromHTML: () => extractTextFromHTML2,
|
|
27
|
-
name: () =>
|
|
27
|
+
name: () => name5
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai";
|
|
30
30
|
import { Duration, Effect, Schema } from "effect";
|
|
31
31
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
32
32
|
import { Parser } from "htmlparser2";
|
|
33
|
-
var
|
|
34
|
-
var
|
|
33
|
+
var name5 = "webfetch";
|
|
34
|
+
var MAX_RESPONSE_BYTES2 = MAX_MARKDOWN_BYTES2;
|
|
35
35
|
var DEFAULT_TIMEOUT_SECONDS2 = 30;
|
|
36
36
|
var MAX_TIMEOUT_SECONDS2 = 120;
|
|
37
|
-
var
|
|
37
|
+
var description4 = `Fetch content from an HTTP or HTTPS URL and return it as text, markdown, or HTML. Markdown is the default.
|
|
38
38
|
|
|
39
39
|
Use a more targeted tool when one is available. This tool is read-only. Large text results may be replaced with a preview while the complete output is retained in managed storage.`;
|
|
40
40
|
var Timeout = Schema.Finite.check(Schema.isGreaterThan(0), Schema.isLessThanOrEqualTo(MAX_TIMEOUT_SECONDS2));
|
|
41
|
-
var
|
|
41
|
+
var Input5 = Schema.Struct({
|
|
42
42
|
url: Schema.String.annotate({ description: "The HTTP or HTTPS URL to fetch content from" }),
|
|
43
43
|
format: Schema.Literals(["text", "markdown", "html"]).annotate({ description: "The format to return the content in. Defaults to markdown." }).pipe(Schema.withDecodingDefaultKey(Effect.succeed("markdown"))),
|
|
44
44
|
timeout: Schema.optionalKey(Timeout).annotate({
|
|
@@ -48,7 +48,7 @@ var Input6 = Schema.Struct({
|
|
|
48
48
|
var Output = Schema.Struct({
|
|
49
49
|
url: Schema.String,
|
|
50
50
|
contentType: Schema.String,
|
|
51
|
-
format:
|
|
51
|
+
format: Input5.fields.format,
|
|
52
52
|
output: Schema.String
|
|
53
53
|
});
|
|
54
54
|
var acceptHeader = (format) => {
|
|
@@ -79,7 +79,7 @@ var assertHttpUrl = (url) => {
|
|
|
79
79
|
throw new Error("URL must use http:// or https://");
|
|
80
80
|
};
|
|
81
81
|
var execute = (http, url, format, userAgent = openCodeUserAgent) => http.execute(request(url, format, userAgent)).pipe(Effect.flatMap(HttpClientResponse.filterStatusOk));
|
|
82
|
-
var collectBody = (response) => collectBoundedResponseBody2(response,
|
|
82
|
+
var collectBody = (response) => collectBoundedResponseBody2(response, MAX_RESPONSE_BYTES2, () => new Error(`Response too large (exceeds ${MAX_RESPONSE_BYTES2} byte limit)`));
|
|
83
83
|
var mimeFrom = (contentType) => contentType.split(";", 1)[0]?.trim().toLowerCase() ?? "";
|
|
84
84
|
var isImageAttachment = (mime) => mime.startsWith("image/") && mime !== "image/svg+xml" && mime !== "image/vnd.fastbidsheet";
|
|
85
85
|
var isTextualMime = (mime) => !mime || mime.startsWith("text/") || mime === "application/json" || mime.endsWith("+json") || mime === "application/xml" || mime.endsWith("+xml") || mime === "application/javascript" || mime === "application/x-javascript";
|
|
@@ -92,16 +92,16 @@ var convert = (content, contentType, format) => {
|
|
|
92
92
|
return extractTextFromHTML2(content);
|
|
93
93
|
return content;
|
|
94
94
|
};
|
|
95
|
-
var
|
|
95
|
+
var Plugin5 = {
|
|
96
96
|
id: "opencode.tool.webfetch",
|
|
97
97
|
effect: Effect.fn("WebFetchTool.Plugin")(function* (ctx) {
|
|
98
98
|
const http = yield* HttpClient.HttpClient;
|
|
99
|
-
const permission = yield*
|
|
99
|
+
const permission = yield* Service66;
|
|
100
100
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
101
|
-
name:
|
|
101
|
+
name: name5,
|
|
102
102
|
options: { codemode: false },
|
|
103
|
-
description:
|
|
104
|
-
input:
|
|
103
|
+
description: description4,
|
|
104
|
+
input: Input5,
|
|
105
105
|
output: Output,
|
|
106
106
|
execute: (input, context) => Effect.gen(function* () {
|
|
107
107
|
yield* Effect.try({
|
|
@@ -109,7 +109,7 @@ var Plugin39 = {
|
|
|
109
109
|
catch: (error) => error
|
|
110
110
|
});
|
|
111
111
|
yield* permission.assert({
|
|
112
|
-
action:
|
|
112
|
+
action: name5,
|
|
113
113
|
resources: [input.url],
|
|
114
114
|
save: ["*"],
|
|
115
115
|
metadata: input,
|
|
@@ -167,4 +167,4 @@ function extractTextFromHTML2(html) {
|
|
|
167
167
|
parser.end();
|
|
168
168
|
return text.trim();
|
|
169
169
|
}
|
|
170
|
-
export {
|
|
170
|
+
export { name5, MAX_RESPONSE_BYTES2, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description4, Input5, Plugin5, extractTextFromHTML2, exports_webfetch };
|