@opencode/core 0.0.0-dev-19651 → 0.0.0-dev-19652
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 +93 -93
- package/dist/app.js +7 -7
- package/dist/bus.js +68 -68
- package/dist/chunks/{ripgrep-48exnw03.js → schema-00a8st2d.js} +20 -20
- package/dist/chunks/{ripgrep-vmfeg136.js → schema-030jpyv0.js} +10 -10
- package/dist/chunks/{ripgrep-24krv7xn.js → schema-03ep55h0.js} +20 -20
- package/dist/chunks/{ripgrep-fee70ycn.js → schema-06z447d2.js} +9 -9
- package/dist/chunks/{ripgrep-n2jambzy.js → schema-09m97qzh.js} +51 -51
- package/dist/chunks/{ripgrep-wee84rza.js → schema-0dz7dwft.js} +3 -3
- package/dist/chunks/{ripgrep-0f9afca0.js → schema-0f9afca0.js} +2 -2
- package/dist/chunks/{ripgrep-hm24pp5g.js → schema-0fn2v7vk.js} +6 -6
- package/dist/chunks/{ripgrep-0paq2nw3.js → schema-0paq2nw3.js} +1 -1
- package/dist/chunks/{ripgrep-0q0f95c6.js → schema-0q0f95c6.js} +1 -1
- package/dist/chunks/{ripgrep-jv01nqvq.js → schema-0r7yqxbf.js} +5 -5
- package/dist/chunks/{ripgrep-sx1n432n.js → schema-0v53mg2y.js} +4 -4
- package/dist/chunks/{ripgrep-jpbjg4xy.js → schema-17xzmh3e.js} +42 -42
- package/dist/chunks/{ripgrep-1bbkgx8g.js → schema-1bbkgx8g.js} +1 -1
- package/dist/chunks/{ripgrep-1dazxqgg.js → schema-1dazxqgg.js} +2 -2
- package/dist/chunks/{ripgrep-f8yxf6yh.js → schema-1fg54p4f.js} +2 -2
- package/dist/chunks/{ripgrep-y22499gx.js → schema-1wzaq9wx.js} +3 -3
- package/dist/chunks/{ripgrep-mfqp6xfm.js → schema-1ygqh575.js} +6 -6
- package/dist/chunks/{ripgrep-pma9pq0s.js → schema-2072y70k.js} +28 -28
- package/dist/chunks/{ripgrep-21r38tys.js → schema-21r38tys.js} +1 -1
- package/dist/chunks/{ripgrep-2a5m3afh.js → schema-2a5m3afh.js} +1 -1
- package/dist/chunks/{ripgrep-z5cdbbre.js → schema-2df3b3hs.js} +20 -20
- package/dist/chunks/{ripgrep-57ez7d0k.js → schema-2fgn2we9.js} +9 -9
- package/dist/chunks/{ripgrep-2wyx13rv.js → schema-2j9z72bx.js} +4 -4
- package/dist/chunks/{ripgrep-6tt5evqq.js → schema-2tfmgkzg.js} +4 -4
- package/dist/chunks/{ripgrep-cpy6gm2a.js → schema-35agz59w.js} +6 -6
- package/dist/chunks/{ripgrep-6tgkqtb7.js → schema-38s28pd0.js} +36 -36
- package/dist/chunks/{ripgrep-qsbynavx.js → schema-3cemjer9.js} +8 -8
- package/dist/chunks/{ripgrep-eh8sk6sx.js → schema-3ee1q45j.js} +10 -10
- package/dist/chunks/{ripgrep-3fc6dm20.js → schema-3fc6dm20.js} +1 -1
- package/dist/chunks/{ripgrep-3hepkmqq.js → schema-3hepkmqq.js} +1 -1
- package/dist/chunks/{ripgrep-zw7perxp.js → schema-3nsjfmzq.js} +8 -8
- package/dist/chunks/{ripgrep-pt0e9nek.js → schema-3qq5da58.js} +87 -87
- package/dist/chunks/{ripgrep-3smtnn6g.js → schema-3smtnn6g.js} +1 -1
- package/dist/chunks/{ripgrep-3tvqynh2.js → schema-3tvqynh2.js} +1 -1
- package/dist/chunks/{ripgrep-vc59xfej.js → schema-3yr6111a.js} +29 -29
- package/dist/chunks/{ripgrep-179189h4.js → schema-3ythc6yv.js} +4 -4
- package/dist/chunks/{ripgrep-syr8hw1k.js → schema-410w8yr6.js} +27 -27
- package/dist/chunks/{ripgrep-wna05xfk.js → schema-42way606.js} +10 -10
- package/dist/chunks/{ripgrep-qpg5v3mm.js → schema-47vm6cas.js} +15 -15
- package/dist/chunks/{ripgrep-5149gher.js → schema-49cpqk8x.js} +10 -10
- package/dist/chunks/{ripgrep-a12n6xvh.js → schema-4dv0c8br.js} +9 -9
- package/dist/chunks/{ripgrep-zhq6vg7a.js → schema-4jc5c4h4.js} +1 -1
- package/dist/chunks/{ripgrep-a7y95dg8.js → schema-4r0rs1wm.js} +26 -26
- package/dist/chunks/{ripgrep-5sc1p3pa.js → schema-4rt0waxz.js} +16 -16
- package/dist/chunks/{ripgrep-tzp42dcf.js → schema-4sa93e2e.js} +33 -33
- package/dist/chunks/{ripgrep-ms5gt4ej.js → schema-4td6qmdq.js} +18 -18
- package/dist/chunks/{ripgrep-q34rxkyh.js → schema-4x3es53w.js} +26 -26
- package/dist/chunks/{ripgrep-z541ag29.js → schema-4xeagmdc.js} +3 -3
- package/dist/chunks/{ripgrep-7wzgrp26.js → schema-50qbb3mm.js} +14 -14
- package/dist/chunks/{ripgrep-gvr6y9jr.js → schema-5377s7rv.js} +35 -35
- package/dist/chunks/{ripgrep-vtcp04qa.js → schema-57b0vs49.js} +3 -3
- package/dist/chunks/{ripgrep-43y6qqc6.js → schema-58bewgwg.js} +17 -17
- package/dist/chunks/{ripgrep-ge4kd7q2.js → schema-58np9qmz.js} +8 -8
- package/dist/chunks/{ripgrep-n1czd7vp.js → schema-5b21016n.js} +8 -8
- package/dist/chunks/{ripgrep-a1bz86dw.js → schema-5c4hm403.js} +3 -3
- package/dist/chunks/{ripgrep-5daktx2q.js → schema-5daktx2q.js} +1 -1
- package/dist/chunks/{ripgrep-1tgtm9xq.js → schema-5htpha5v.js} +15 -15
- package/dist/chunks/{ripgrep-r00sg9dg.js → schema-5rzrtx0h.js} +22 -22
- package/dist/chunks/{ripgrep-40hkqv6b.js → schema-5sbtfkvy.js} +11 -11
- package/dist/chunks/{ripgrep-5t3nmthw.js → schema-5t3nmthw.js} +2 -2
- package/dist/chunks/{ripgrep-3hfr6h8q.js → schema-5yzzbxa7.js} +8 -8
- package/dist/chunks/{ripgrep-3r2erwe8.js → schema-6008d0qp.js} +183 -183
- package/dist/chunks/{ripgrep-3b0jx1ke.js → schema-603btna3.js} +15 -15
- package/dist/chunks/{ripgrep-qgn6gcr1.js → schema-607tc6va.js} +5 -5
- package/dist/chunks/{ripgrep-669tq793.js → schema-669tq793.js} +1 -1
- package/dist/chunks/{ripgrep-h092eefw.js → schema-69mekdnv.js} +25 -25
- package/dist/chunks/{ripgrep-mbx6ky7y.js → schema-6dk543bq.js} +11 -11
- package/dist/chunks/{ripgrep-2402vzrj.js → schema-6h73sxmp.js} +5 -5
- package/dist/chunks/{ripgrep-6hjx5zpb.js → schema-6hjx5zpb.js} +2 -2
- package/dist/chunks/{ripgrep-6msgmcgs.js → schema-6msgmcgs.js} +1 -1
- package/dist/chunks/{ripgrep-frhj4dms.js → schema-6rf1xn29.js} +9 -9
- package/dist/chunks/{ripgrep-4ndvwbzn.js → schema-6sydn1mq.js} +3 -3
- package/dist/chunks/{ripgrep-waezr4dz.js → schema-6w1d93z6.js} +9 -9
- package/dist/chunks/{ripgrep-tj7hexbd.js → schema-76mtmnx0.js} +4 -4
- package/dist/chunks/{ripgrep-qhrjm1kp.js → schema-79qmf15m.js} +43 -43
- package/dist/chunks/{ripgrep-pgr85bm1.js → schema-7a89sew0.js} +32 -32
- package/dist/chunks/{ripgrep-7bmhse3q.js → schema-7bmhse3q.js} +1 -1
- package/dist/chunks/{ripgrep-h8xv34qf.js → schema-7jstqpd5.js} +28 -28
- package/dist/chunks/{ripgrep-sm51y2s9.js → schema-81aqn7eh.js} +17 -17
- package/dist/chunks/{ripgrep-dqx57jvk.js → schema-820fwhp7.js} +7 -7
- package/dist/chunks/{ripgrep-tcezcvh9.js → schema-89znhe33.js} +4 -4
- package/dist/chunks/{ripgrep-q8td851s.js → schema-8aw2er08.js} +17 -17
- package/dist/chunks/{ripgrep-9kpqy124.js → schema-8d4156c8.js} +27 -27
- package/dist/chunks/{ripgrep-8d7r5vzw.js → schema-8d7r5vzw.js} +1 -1
- package/dist/chunks/{ripgrep-rpg9c19m.js → schema-8gxqpgph.js} +4 -4
- package/dist/chunks/{ripgrep-w9232wac.js → schema-8nmhcqgw.js} +13 -13
- package/dist/chunks/{ripgrep-vft62zwd.js → schema-94fp10gk.js} +4 -4
- package/dist/chunks/{ripgrep-bcphrpfy.js → schema-957yf008.js} +21 -21
- package/dist/chunks/{ripgrep-0gt7v72w.js → schema-99pz0y8y.js} +33 -33
- package/dist/chunks/{ripgrep-4c2df9zx.js → schema-9c3np669.js} +8 -8
- package/dist/chunks/{ripgrep-ykdp11k0.js → schema-9esbgk1q.js} +4 -4
- package/dist/chunks/{ripgrep-6mrn9vmw.js → schema-9j3p0a6z.js} +33 -33
- package/dist/chunks/{ripgrep-t4nv35py.js → schema-9qdsg55z.js} +13 -13
- package/dist/chunks/{ripgrep-gsf1yvdt.js → schema-a578tmxk.js} +18 -18
- package/dist/chunks/{ripgrep-aaet6srn.js → schema-aaet6srn.js} +2 -2
- package/dist/chunks/{ripgrep-ac373s4s.js → schema-awaxm1q8.js} +32 -32
- package/dist/chunks/{ripgrep-z5kf7ndz.js → schema-axb19299.js} +60 -60
- package/dist/chunks/{ripgrep-mvst46h0.js → schema-b3yf6gst.js} +20 -20
- package/dist/chunks/{ripgrep-b6gygkdw.js → schema-b6gygkdw.js} +2 -2
- package/dist/chunks/{ripgrep-0czxdnwf.js → schema-bdcpzjfh.js} +1 -1
- package/dist/chunks/{ripgrep-09sfstvz.js → schema-bjgq97ey.js} +16 -16
- package/dist/chunks/{ripgrep-e5nv3ght.js → schema-bndc73cn.js} +5 -5
- package/dist/chunks/{ripgrep-8ncj45nv.js → schema-bsywhvdw.js} +15 -15
- package/dist/chunks/{ripgrep-3f7eawa7.js → schema-c3x1jprk.js} +5 -5
- package/dist/chunks/{ripgrep-5x65af3d.js → schema-c7fs63yh.js} +6 -6
- package/dist/chunks/{ripgrep-dz5p8mjs.js → schema-cd4vjczq.js} +10 -10
- package/dist/chunks/{ripgrep-r4yqrmdq.js → schema-ce5fknq2.js} +5 -5
- package/dist/chunks/{ripgrep-a8zr1srk.js → schema-ckfwh0ft.js} +8 -8
- package/dist/chunks/{ripgrep-76d2vfts.js → schema-ckspfy32.js} +15 -15
- package/dist/chunks/{ripgrep-h6r3nrb9.js → schema-cpj0znwe.js} +4 -4
- package/dist/chunks/{ripgrep-6pmkj1a3.js → schema-ctkq0avj.js} +19 -19
- package/dist/chunks/{ripgrep-bqqqenec.js → schema-cws54ygj.js} +10 -10
- package/dist/chunks/{ripgrep-avfc6w3p.js → schema-d4727nqf.js} +12 -12
- package/dist/chunks/{ripgrep-jjcjwdby.js → schema-ddj5qfgg.js} +24 -24
- package/dist/chunks/{ripgrep-8p4f9s12.js → schema-dj2t23y0.js} +2 -2
- package/dist/chunks/schema-dmc6ybme.js +26 -0
- package/dist/chunks/{ripgrep-xfkkasph.js → schema-drwq78ky.js} +4 -4
- package/dist/chunks/{ripgrep-348jn79r.js → schema-e7hkndy5.js} +22 -22
- package/dist/chunks/{ripgrep-s8d7rejh.js → schema-eaj1djv9.js} +6 -6
- package/dist/chunks/{ripgrep-bprqj5v0.js → schema-eevfkcnk.js} +24 -24
- package/dist/chunks/{ripgrep-ef5x83kb.js → schema-ef5x83kb.js} +1 -1
- package/dist/chunks/{ripgrep-awg9kq3k.js → schema-egb509wj.js} +9 -9
- package/dist/chunks/{ripgrep-090p04ra.js → schema-ekdmd5z4.js} +47 -47
- package/dist/chunks/{ripgrep-etq0c3wd.js → schema-etq0c3wd.js} +1 -1
- package/dist/chunks/{ripgrep-4yfzzjgx.js → schema-evg6vw2r.js} +46 -46
- package/dist/chunks/{ripgrep-3b9qt4hj.js → schema-eye44qas.js} +9 -9
- package/dist/chunks/{ripgrep-e935xhvr.js → schema-f1t1f2q3.js} +27 -27
- package/dist/chunks/{ripgrep-yp2x3t23.js → schema-f2n192rq.js} +4 -4
- package/dist/chunks/{ripgrep-29j6d3vm.js → schema-fd75nkaf.js} +11 -11
- package/dist/chunks/{ripgrep-yhk486qm.js → schema-fg588aq2.js} +11 -11
- package/dist/chunks/{ripgrep-44ke2mar.js → schema-fkjmw100.js} +6 -6
- package/dist/chunks/{ripgrep-pnaxc6j9.js → schema-fqtvmpfq.js} +8 -8
- package/dist/chunks/{ripgrep-fxbjtjnd.js → schema-fxbjtjnd.js} +1 -1
- package/dist/chunks/{ripgrep-cy14vcgm.js → schema-fy8yekx1.js} +4 -4
- package/dist/chunks/{ripgrep-a8bn8zg0.js → schema-g190xswt.js} +4 -4
- package/dist/chunks/{ripgrep-gd4qta3r.js → schema-gd4qta3r.js} +1 -1
- package/dist/chunks/{ripgrep-f269mvek.js → schema-gjfy02nj.js} +37 -37
- package/dist/chunks/{ripgrep-ybhbtxjg.js → schema-gmjjhz4f.js} +3 -3
- package/dist/chunks/{ripgrep-e73xc17j.js → schema-gnssr4kh.js} +8 -8
- package/dist/chunks/{ripgrep-n00nrqde.js → schema-gps939mq.js} +36 -36
- package/dist/chunks/{ripgrep-gv6a8nnw.js → schema-gv6a8nnw.js} +2 -2
- package/dist/chunks/{ripgrep-h03wrkyp.js → schema-h03wrkyp.js} +2 -2
- package/dist/chunks/{ripgrep-3ap7mgrf.js → schema-h0qctgs0.js} +11 -11
- package/dist/chunks/{ripgrep-h6vf3j39.js → schema-h6vf3j39.js} +1 -1
- package/dist/chunks/{ripgrep-3dw0yn7k.js → schema-h7e5g0tn.js} +6 -6
- package/dist/chunks/{ripgrep-yf4jcbx9.js → schema-h896pcm5.js} +6 -6
- package/dist/chunks/{ripgrep-s323gek4.js → schema-hcnq7x11.js} +9 -9
- package/dist/chunks/{ripgrep-f828m53h.js → schema-hdnk95c8.js} +2 -2
- package/dist/chunks/schema-hgd4btym.js +18 -0
- package/dist/chunks/{ripgrep-jp7ckd89.js → schema-hknczzph.js} +9 -9
- package/dist/chunks/{ripgrep-252wh90r.js → schema-hp0ybgxk.js} +10 -10
- package/dist/chunks/{ripgrep-adj67hrf.js → schema-hrbhtc9f.js} +31 -31
- package/dist/chunks/{ripgrep-hr56d05f.js → schema-htmcw1qg.js} +13 -13
- package/dist/chunks/{ripgrep-2mr0mq8k.js → schema-hyjskg14.js} +11 -11
- package/dist/chunks/{ripgrep-j56e64zr.js → schema-j56e64zr.js} +1 -1
- package/dist/chunks/{ripgrep-aj930q3s.js → schema-jc26sbfk.js} +3 -3
- package/dist/chunks/{ripgrep-a3r4dcrj.js → schema-jca4demv.js} +2 -2
- package/dist/chunks/{ripgrep-ta523pqp.js → schema-jd2srmve.js} +3 -3
- package/dist/chunks/{ripgrep-2s3d9dsp.js → schema-jeck9fhr.js} +15 -15
- package/dist/chunks/{ripgrep-5saq5gnw.js → schema-jyvkdnw5.js} +13 -13
- package/dist/chunks/{ripgrep-9f2y37s0.js → schema-k5wasz4q.js} +5 -5
- package/dist/chunks/{ripgrep-z1ej3c62.js → schema-k8m1efg7.js} +23 -23
- package/dist/chunks/{ripgrep-gdzyqw3g.js → schema-kbch1f4b.js} +46 -46
- package/dist/chunks/{ripgrep-a9f26sj6.js → schema-kg6516s3.js} +7 -7
- package/dist/chunks/{ripgrep-mzvzs703.js → schema-kgxz2f7g.js} +12 -12
- package/dist/chunks/{ripgrep-r8bhxde6.js → schema-kj973gv5.js} +4 -4
- package/dist/chunks/{ripgrep-yyn26yh6.js → schema-knvfs6pc.js} +11 -11
- package/dist/chunks/{ripgrep-4r3kphav.js → schema-kqvqnzwb.js} +14 -14
- package/dist/chunks/{ripgrep-tahaqeyb.js → schema-kwnfrnw8.js} +44 -44
- package/dist/chunks/{ripgrep-yp6r65vs.js → schema-kyxd1ff3.js} +15 -15
- package/dist/chunks/{ripgrep-cfpkc3c9.js → schema-m0jqrx5p.js} +2 -2
- package/dist/chunks/{ripgrep-q5rhn9x0.js → schema-m31hrvtp.js} +11 -11
- package/dist/chunks/{ripgrep-sd98cdqm.js → schema-m5bv8msf.js} +16 -16
- package/dist/chunks/{ripgrep-m9w0rfyh.js → schema-m9w0rfyh.js} +1 -1
- package/dist/chunks/{ripgrep-bdqrk2vk.js → schema-m9wy7qrr.js} +6 -6
- package/dist/chunks/{ripgrep-ebt2v526.js → schema-mecezrcf.js} +21 -21
- package/dist/chunks/{ripgrep-m4h5krzp.js → schema-mgbtsknw.js} +33 -33
- package/dist/chunks/{ripgrep-253g34ze.js → schema-mmwvyfxk.js} +32 -32
- package/dist/chunks/{ripgrep-jvgez6pn.js → schema-mp38ktsp.js} +21 -21
- package/dist/chunks/{ripgrep-5dmft2ek.js → schema-mqzgvnq5.js} +21 -21
- package/dist/chunks/{ripgrep-k2r7sfhd.js → schema-mrs0jc6e.js} +24 -24
- package/dist/chunks/{ripgrep-svsy9rmq.js → schema-n61j5yzm.js} +5 -5
- package/dist/chunks/{ripgrep-6y7j38z1.js → schema-nekzqhap.js} +9 -9
- package/dist/chunks/{ripgrep-e3wb4dtq.js → schema-ngqd1g3c.js} +4 -4
- package/dist/chunks/{ripgrep-j3s2z371.js → schema-nq7qbqzc.js} +9 -9
- package/dist/chunks/{ripgrep-75cgqmea.js → schema-nrc1qagd.js} +13 -13
- package/dist/chunks/{ripgrep-cyz92fbd.js → schema-nxf878eb.js} +41 -41
- package/dist/chunks/{ripgrep-w2p2yfvn.js → schema-p01rfyrx.js} +4 -4
- package/dist/chunks/{ripgrep-enmmrcfv.js → schema-p1aznbsd.js} +30 -30
- package/dist/chunks/{ripgrep-e6qp4kc5.js → schema-p6dqprnz.js} +16 -16
- package/dist/chunks/{ripgrep-bxje3ty2.js → schema-p7rq11dp.js} +23 -23
- package/dist/chunks/{ripgrep-pjvnvgmy.js → schema-pjvnvgmy.js} +1 -1
- package/dist/chunks/{ripgrep-pknna89w.js → schema-pknna89w.js} +1 -1
- package/dist/chunks/{ripgrep-2a0dx3gy.js → schema-ppns27wk.js} +17 -17
- package/dist/chunks/{ripgrep-7km188d0.js → schema-pt08jtz7.js} +8 -8
- package/dist/chunks/{ripgrep-ct5mx16d.js → schema-pzkc7njq.js} +20 -20
- package/dist/chunks/{ripgrep-jexxy024.js → schema-q3t37ft6.js} +3 -3
- package/dist/chunks/{ripgrep-nmtykjd1.js → schema-qdw6nraz.js} +28 -28
- package/dist/chunks/{ripgrep-ep11t42c.js → schema-qenep300.js} +38 -38
- package/dist/chunks/{ripgrep-qsdy395h.js → schema-qsdy395h.js} +1 -1
- package/dist/chunks/{ripgrep-7dgexg80.js → schema-r2e4tzq6.js} +46 -46
- package/dist/chunks/{ripgrep-b3a3benk.js → schema-r2fyx2gr.js} +32 -32
- package/dist/chunks/{ripgrep-5d607bsg.js → schema-r2m716tb.js} +9 -9
- package/dist/chunks/{ripgrep-4pa2cjn6.js → schema-r8r0p3p5.js} +22 -22
- package/dist/chunks/{ripgrep-g51abb3s.js → schema-r8vbt15x.js} +24 -24
- package/dist/chunks/{ripgrep-r9mregkx.js → schema-r9mregkx.js} +2 -2
- package/dist/chunks/{ripgrep-dpsj4cd4.js → schema-rcdaxd8f.js} +24 -24
- package/dist/chunks/{ripgrep-qecpqjj2.js → schema-rd1twtdz.js} +11 -11
- package/dist/chunks/{ripgrep-rdw6cm16.js → schema-rdw6cm16.js} +1 -1
- package/dist/chunks/{ripgrep-ttbky7b8.js → schema-rj5n40r1.js} +30 -30
- package/dist/chunks/{ripgrep-s0b4cn51.js → schema-rp39zwfx.js} +9 -9
- package/dist/chunks/{ripgrep-92rdngqa.js → schema-rpcw9abc.js} +18 -18
- package/dist/chunks/{ripgrep-vqha9mct.js → schema-rv9hmyrv.js} +25 -25
- package/dist/chunks/{ripgrep-ydnpd9e9.js → schema-rz9jtxyn.js} +6 -6
- package/dist/chunks/{ripgrep-ce8ybvb1.js → schema-scd6nj0g.js} +26 -26
- package/dist/chunks/{ripgrep-4y72ap3v.js → schema-sjf3tctt.js} +12 -12
- package/dist/chunks/{ripgrep-7sr68zac.js → schema-smjnv1yt.js} +13 -13
- package/dist/chunks/schema-srr10nqc.js +247 -0
- package/dist/chunks/{ripgrep-teb3r9wt.js → schema-sztsy51r.js} +15 -15
- package/dist/chunks/{ripgrep-p2f705pb.js → schema-t6kmr1tg.js} +15 -15
- package/dist/chunks/{ripgrep-hryd4p41.js → schema-t904akrn.js} +6 -6
- package/dist/chunks/{ripgrep-nmqjzj6h.js → schema-tac2mqbh.js} +4 -4
- package/dist/chunks/{ripgrep-tazgh4e4.js → schema-tazgh4e4.js} +1 -1
- package/dist/chunks/{ripgrep-tdstcens.js → schema-tdstcens.js} +1 -1
- package/dist/chunks/{ripgrep-jec41gjm.js → schema-tg92h923.js} +11 -11
- package/dist/chunks/{ripgrep-8fv676xw.js → schema-tgtkvqe9.js} +5 -5
- package/dist/chunks/{ripgrep-qhd4nzg7.js → schema-tgzhv03a.js} +11 -11
- package/dist/chunks/{ripgrep-e70wmrry.js → schema-tjecye6p.js} +16 -16
- package/dist/chunks/{ripgrep-tn0aqsam.js → schema-tn0aqsam.js} +2 -2
- package/dist/chunks/{ripgrep-tvtrv512.js → schema-tvtrv512.js} +1 -1
- package/dist/chunks/{ripgrep-th2e34zp.js → schema-ty91eq5w.js} +5 -5
- package/dist/chunks/{ripgrep-kqab4rks.js → schema-typ47xqv.js} +10 -10
- package/dist/chunks/{ripgrep-qa3qhgw8.js → schema-v5dkyp31.js} +4 -4
- package/dist/chunks/{ripgrep-veqvce7d.js → schema-veqvce7d.js} +1 -1
- package/dist/chunks/{ripgrep-mxfbfm56.js → schema-vm903892.js} +1 -1
- package/dist/chunks/{ripgrep-wzryet09.js → schema-vtna6zda.js} +14 -14
- package/dist/chunks/{ripgrep-6tnb4hg1.js → schema-vtqhpasw.js} +13 -13
- package/dist/chunks/{ripgrep-xm47dg1f.js → schema-vvvs0jwh.js} +4 -4
- package/dist/chunks/{ripgrep-a7gfxea1.js → schema-vy5pp12k.js} +12 -12
- package/dist/chunks/{ripgrep-vzcthcp8.js → schema-vzcthcp8.js} +1 -1
- package/dist/chunks/{ripgrep-q6d53jre.js → schema-w1ad28wa.js} +8 -8
- package/dist/chunks/{ripgrep-5c0f1prt.js → schema-w1k39n5e.js} +4 -4
- package/dist/chunks/{ripgrep-w3wsvvr9.js → schema-w3wsvvr9.js} +1 -1
- package/dist/chunks/{ripgrep-m6aadvxh.js → schema-w9jmd2e2.js} +85 -85
- package/dist/chunks/{ripgrep-wd87259q.js → schema-wd87259q.js} +1 -1
- package/dist/chunks/{ripgrep-8av4ea0y.js → schema-wp67138w.js} +23 -23
- package/dist/chunks/{ripgrep-rq60b8cd.js → schema-wzw28g6j.js} +23 -23
- package/dist/chunks/{ripgrep-x1ezjp6w.js → schema-x1ezjp6w.js} +1 -1
- package/dist/chunks/{ripgrep-wbd0sh62.js → schema-x31saxwp.js} +19 -19
- package/dist/chunks/{ripgrep-yj0vbjjc.js → schema-x3656kx6.js} +12 -12
- package/dist/chunks/{ripgrep-tctec8mv.js → schema-x4bypsmn.js} +11 -11
- package/dist/chunks/{ripgrep-b8hzf7nw.js → schema-xpbr7bcc.js} +8 -8
- package/dist/chunks/{ripgrep-ps6d77n5.js → schema-xr05v48s.js} +6 -6
- package/dist/chunks/{ripgrep-btjz98dh.js → schema-xr485xf2.js} +5 -5
- package/dist/chunks/{ripgrep-bkkzjt1w.js → schema-xtb4zs1s.js} +20 -20
- package/dist/chunks/{ripgrep-2sns7k14.js → schema-y0pcwp9m.js} +51 -51
- package/dist/chunks/{ripgrep-ck10g682.js → schema-y1f6k396.js} +18 -18
- package/dist/chunks/{ripgrep-y1fvbwt7.js → schema-y1fvbwt7.js} +1 -1
- package/dist/chunks/{ripgrep-y71avatq.js → schema-y71avatq.js} +1 -1
- package/dist/chunks/{ripgrep-p89m3vhk.js → schema-y7s0zapj.js} +17 -17
- package/dist/chunks/{ripgrep-6gv9q03x.js → schema-ycnmbzhj.js} +6 -6
- package/dist/chunks/{ripgrep-cq55yzqn.js → schema-yqb6sz7a.js} +10 -10
- package/dist/chunks/{ripgrep-yrhqyw5v.js → schema-yrhqyw5v.js} +1 -1
- package/dist/chunks/{ripgrep-yrznvahk.js → schema-yrznvahk.js} +2 -2
- package/dist/chunks/{ripgrep-xsh2gjj9.js → schema-yyrnn2g5.js} +32 -32
- package/dist/chunks/{ripgrep-z0bkrqjs.js → schema-z0bkrqjs.js} +1 -1
- package/dist/chunks/{ripgrep-ntygj04g.js → schema-z0rhrb3j.js} +34 -34
- package/dist/chunks/{ripgrep-gtm0r2yw.js → schema-z5wxwd7n.js} +15 -15
- package/dist/chunks/{ripgrep-z63w68vq.js → schema-z63w68vq.js} +2 -2
- package/dist/chunks/{ripgrep-ypsb1mmg.js → schema-zc3k5t70.js} +13 -13
- package/dist/chunks/{ripgrep-zeh9ct20.js → schema-zeh9ct20.js} +2 -2
- package/dist/chunks/{ripgrep-j7x63ng9.js → schema-zqw47kg9.js} +18 -18
- package/dist/chunks/{ripgrep-zr2ceqn5.js → schema-zr2ceqn5.js} +1 -1
- package/dist/chunks/{ripgrep-48y73nye.js → schema-ztcmmyvq.js} +15 -15
- package/dist/chunks/{ripgrep-3pn063cz.js → schema-zw2p42d9.js} +5 -5
- package/dist/chunks/{ripgrep-zxq2ej10.js → schema-zxq2ej10.js} +1 -1
- package/dist/chunks/{ripgrep-bpb88xcm.js → schema-zz75d48d.js} +302 -302
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +82 -82
- 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 +212 -212
- package/dist/config/plugin/compaction.js +158 -158
- 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 +124 -124
- package/dist/config/plugin/mcp.js +131 -131
- package/dist/config/plugin/policy.js +122 -122
- package/dist/config/plugin/provider.js +120 -120
- package/dist/config/plugin/reference.js +124 -124
- package/dist/config/plugin/shell.js +122 -122
- 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 +121 -121
- 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 +65 -65
- 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 +75 -75
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +364 -364
- 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 +69 -69
- 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 +225 -225
- 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 +15 -15
- package/dist/filesystem.js +107 -107
- package/dist/form.js +81 -81
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +86 -86
- 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 +90 -90
- 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 +355 -355
- 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 +131 -131
- package/dist/location-mutation.js +103 -103
- package/dist/location-service-map.js +85 -85
- package/dist/location-services.js +352 -352
- package/dist/location.js +86 -86
- package/dist/mcp/client.js +90 -90
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +126 -126
- 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 +90 -90
- package/dist/model-resolver.js +97 -97
- package/dist/model.js +101 -101
- package/dist/models-dev.js +102 -102
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +79 -79
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +108 -108
- 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 +216 -216
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +327 -327
- 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 +140 -140
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +344 -344
- 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 +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- 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 +223 -223
- 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 +95 -95
- package/dist/reference/instructions.js +86 -86
- 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 +132 -132
- package/dist/session/context.js +150 -150
- package/dist/session/diff.js +87 -87
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +219 -219
- package/dist/session/execution.js +125 -125
- package/dist/session/generate.js +151 -151
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +85 -85
- 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 +117 -117
- package/dist/session/model-transport.js +9 -9
- 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 +122 -122
- 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 +72 -72
- package/dist/session/store.js +84 -84
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +208 -208
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +154 -154
- package/dist/session/to-session-error.js +110 -110
- package/dist/session/transfer.js +215 -215
- package/dist/session/usage.js +1 -1
- package/dist/session.js +216 -216
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +139 -139
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +102 -102
- package/dist/skill.js +111 -111
- package/dist/snapshot.js +82 -82
- 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 +123 -123
- package/dist/tool/plugin/edit.js +119 -119
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +121 -121
- package/dist/tool/plugin/grep.js +121 -121
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +121 -121
- package/dist/tool/plugin/question.js +102 -102
- package/dist/tool/plugin/read.js +124 -124
- package/dist/tool/plugin/shell.js +213 -213
- package/dist/tool/plugin/skill.js +108 -108
- package/dist/tool/plugin/subagent.js +215 -215
- package/dist/tool/plugin/webfetch.js +109 -109
- package/dist/tool/plugin/websearch.js +109 -109
- package/dist/tool/plugin/write.js +113 -113
- package/dist/tool/read-filesystem.js +97 -97
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +13 -13
- 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 +3 -3
- package/dist/v1/config/config.js +14 -14
- 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 +5 -5
- package/dist/v1/config/mcp.js +2 -2
- package/dist/v1/config/migrate.js +91 -91
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/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 +80 -80
- 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 +97 -97
- package/package.json +8 -8
- package/dist/chunks/ripgrep-cn8hjhwa.js +0 -26
- package/dist/chunks/ripgrep-sgrk0bmb.js +0 -247
- package/dist/chunks/ripgrep-v1faaxn9.js +0 -18
- /package/dist/chunks/{ripgrep-0qkdqm5v.js → schema-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{ripgrep-0zkw76rk.js → schema-0zkw76rk.js} +0 -0
- /package/dist/chunks/{ripgrep-17cy0kzp.js → schema-17cy0kzp.js} +0 -0
- /package/dist/chunks/{ripgrep-1cnp2v09.js → schema-1cnp2v09.js} +0 -0
- /package/dist/chunks/{ripgrep-1kg9ymc8.js → schema-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{ripgrep-24dcb14g.js → schema-24dcb14g.js} +0 -0
- /package/dist/chunks/{ripgrep-2710q6r3.js → schema-2710q6r3.js} +0 -0
- /package/dist/chunks/{ripgrep-2axfhc9x.js → schema-2axfhc9x.js} +0 -0
- /package/dist/chunks/{ripgrep-2c3vjs8z.js → schema-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{ripgrep-359p4xyc.js → schema-359p4xyc.js} +0 -0
- /package/dist/chunks/{ripgrep-3asan66x.js → schema-3asan66x.js} +0 -0
- /package/dist/chunks/{ripgrep-3v8g72cx.js → schema-3v8g72cx.js} +0 -0
- /package/dist/chunks/{ripgrep-3w5fmr99.js → schema-3w5fmr99.js} +0 -0
- /package/dist/chunks/{ripgrep-3wcehsnq.js → schema-3wcehsnq.js} +0 -0
- /package/dist/chunks/{ripgrep-43n2bw4t.js → schema-43n2bw4t.js} +0 -0
- /package/dist/chunks/{ripgrep-4knz6hnm.js → schema-4knz6hnm.js} +0 -0
- /package/dist/chunks/{ripgrep-4vcrnpx2.js → schema-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{ripgrep-4y7fprxs.js → schema-4y7fprxs.js} +0 -0
- /package/dist/chunks/{ripgrep-53557ph1.js → schema-53557ph1.js} +0 -0
- /package/dist/chunks/{ripgrep-550bvhaj.js → schema-550bvhaj.js} +0 -0
- /package/dist/chunks/{ripgrep-5qd3pb7m.js → schema-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{ripgrep-6prwharc.js → schema-6prwharc.js} +0 -0
- /package/dist/chunks/{ripgrep-7akdwqpd.js → schema-7akdwqpd.js} +0 -0
- /package/dist/chunks/{ripgrep-7m9af43g.js → schema-7m9af43g.js} +0 -0
- /package/dist/chunks/{ripgrep-822emrt2.js → schema-822emrt2.js} +0 -0
- /package/dist/chunks/{ripgrep-88xbtdfr.js → schema-88xbtdfr.js} +0 -0
- /package/dist/chunks/{ripgrep-8n3pysct.js → schema-8n3pysct.js} +0 -0
- /package/dist/chunks/{ripgrep-922hggd3.js → schema-922hggd3.js} +0 -0
- /package/dist/chunks/{ripgrep-9a4afbnw.js → schema-9a4afbnw.js} +0 -0
- /package/dist/chunks/{ripgrep-9rqn6x4v.js → schema-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{ripgrep-a6k6eb26.js → schema-a6k6eb26.js} +0 -0
- /package/dist/chunks/{ripgrep-af5trqkr.js → schema-af5trqkr.js} +0 -0
- /package/dist/chunks/{ripgrep-afrmfg78.js → schema-afrmfg78.js} +0 -0
- /package/dist/chunks/{ripgrep-aqzs7mqg.js → schema-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{ripgrep-atq7p7m5.js → schema-atq7p7m5.js} +0 -0
- /package/dist/chunks/{ripgrep-bkyjaxrp.js → schema-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{ripgrep-bmr6ed5q.js → schema-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{ripgrep-cf4snx6d.js → schema-cf4snx6d.js} +0 -0
- /package/dist/chunks/{ripgrep-cvy3z8tj.js → schema-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{ripgrep-d9fn303g.js → schema-d9fn303g.js} +0 -0
- /package/dist/chunks/{ripgrep-d9jj8t3e.js → schema-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{ripgrep-dajrwvna.js → schema-dajrwvna.js} +0 -0
- /package/dist/chunks/{ripgrep-dap0rakb.js → schema-dap0rakb.js} +0 -0
- /package/dist/chunks/{ripgrep-df08tz66.js → schema-df08tz66.js} +0 -0
- /package/dist/chunks/{ripgrep-dy18nga0.js → schema-dy18nga0.js} +0 -0
- /package/dist/chunks/{ripgrep-e5kj55wp.js → schema-e5kj55wp.js} +0 -0
- /package/dist/chunks/{ripgrep-e73j6tqm.js → schema-e73j6tqm.js} +0 -0
- /package/dist/chunks/{ripgrep-ec1grn59.js → schema-ec1grn59.js} +0 -0
- /package/dist/chunks/{ripgrep-eh3zwz77.js → schema-eh3zwz77.js} +0 -0
- /package/dist/chunks/{ripgrep-emrn6kk6.js → schema-emrn6kk6.js} +0 -0
- /package/dist/chunks/{ripgrep-f0mxakyp.js → schema-f0mxakyp.js} +0 -0
- /package/dist/chunks/{ripgrep-f6n9ztr4.js → schema-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{ripgrep-faypxj3z.js → schema-faypxj3z.js} +0 -0
- /package/dist/chunks/{ripgrep-fd410y7t.js → schema-fd410y7t.js} +0 -0
- /package/dist/chunks/{ripgrep-fxgpk5d8.js → schema-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{ripgrep-g4wezp1m.js → schema-g4wezp1m.js} +0 -0
- /package/dist/chunks/{ripgrep-g86h250q.js → schema-g86h250q.js} +0 -0
- /package/dist/chunks/{ripgrep-gebd4c9n.js → schema-gebd4c9n.js} +0 -0
- /package/dist/chunks/{ripgrep-gftt206x.js → schema-gftt206x.js} +0 -0
- /package/dist/chunks/{ripgrep-hjbc5kem.js → schema-hjbc5kem.js} +0 -0
- /package/dist/chunks/{ripgrep-hk9envan.js → schema-hk9envan.js} +0 -0
- /package/dist/chunks/{ripgrep-hxa7m5za.js → schema-hxa7m5za.js} +0 -0
- /package/dist/chunks/{ripgrep-j2ntwpah.js → schema-j2ntwpah.js} +0 -0
- /package/dist/chunks/{ripgrep-j5zkgpj8.js → schema-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{ripgrep-jjkms2e6.js → schema-jjkms2e6.js} +0 -0
- /package/dist/chunks/{ripgrep-jr7sbwjy.js → schema-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{ripgrep-jwfs4k6c.js → schema-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{ripgrep-jzg6c2d5.js → schema-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{ripgrep-mp448xyj.js → schema-mp448xyj.js} +0 -0
- /package/dist/chunks/{ripgrep-msx8hqn2.js → schema-msx8hqn2.js} +0 -0
- /package/dist/chunks/{ripgrep-n05xt0ee.js → schema-n05xt0ee.js} +0 -0
- /package/dist/chunks/{ripgrep-n3j8tn72.js → schema-n3j8tn72.js} +0 -0
- /package/dist/chunks/{ripgrep-njntx4h6.js → schema-njntx4h6.js} +0 -0
- /package/dist/chunks/{ripgrep-q3sfg36h.js → schema-q3sfg36h.js} +0 -0
- /package/dist/chunks/{ripgrep-q74kybfr.js → schema-q74kybfr.js} +0 -0
- /package/dist/chunks/{ripgrep-qaymkmh1.js → schema-qaymkmh1.js} +0 -0
- /package/dist/chunks/{ripgrep-qb87gjwd.js → schema-qb87gjwd.js} +0 -0
- /package/dist/chunks/{ripgrep-qfa1cgps.js → schema-qfa1cgps.js} +0 -0
- /package/dist/chunks/{ripgrep-qg3g05ea.js → schema-qg3g05ea.js} +0 -0
- /package/dist/chunks/{ripgrep-qrg20bc0.js → schema-qrg20bc0.js} +0 -0
- /package/dist/chunks/{ripgrep-rcb2kzg1.js → schema-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{ripgrep-sdp7kfr6.js → schema-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{ripgrep-sk3qaz4a.js → schema-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{ripgrep-ssg3fenm.js → schema-ssg3fenm.js} +0 -0
- /package/dist/chunks/{ripgrep-twg0f83k.js → schema-twg0f83k.js} +0 -0
- /package/dist/chunks/{ripgrep-w803qqfp.js → schema-w803qqfp.js} +0 -0
- /package/dist/chunks/{ripgrep-wc3fc9cn.js → schema-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{ripgrep-wer8tq1h.js → schema-wer8tq1h.js} +0 -0
- /package/dist/chunks/{ripgrep-wtztk69x.js → schema-wtztk69x.js} +0 -0
- /package/dist/chunks/{ripgrep-x0ckcb58.js → schema-x0ckcb58.js} +0 -0
- /package/dist/chunks/{ripgrep-x61499pn.js → schema-x61499pn.js} +0 -0
- /package/dist/chunks/{ripgrep-y44na4kk.js → schema-y44na4kk.js} +0 -0
- /package/dist/chunks/{ripgrep-y8cydn3q.js → schema-y8cydn3q.js} +0 -0
- /package/dist/chunks/{ripgrep-y8f7s663.js → schema-y8f7s663.js} +0 -0
- /package/dist/chunks/{ripgrep-ygaqb7jw.js → schema-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{ripgrep-ym463w8f.js → schema-ym463w8f.js} +0 -0
- /package/dist/chunks/{ripgrep-z9919s4g.js → schema-z9919s4g.js} +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID8,
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2,
|
|
5
5
|
mergeOverlay2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-r2fyx2gr.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./schema-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/aisdk.ts
|
|
12
12
|
var exports_aisdk = {};
|
|
13
13
|
__export(exports_aisdk, {
|
|
14
14
|
AISDK: () => exports_aisdk,
|
|
15
15
|
InitError: () => InitError2,
|
|
16
|
-
Service: () =>
|
|
16
|
+
Service: () => Service54,
|
|
17
17
|
locationLayer: () => locationLayer2,
|
|
18
|
-
node: () =>
|
|
18
|
+
node: () => node56
|
|
19
19
|
});
|
|
20
20
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
21
21
|
import { APICallError } from "@ai-sdk/provider";
|
|
@@ -128,7 +128,7 @@ function prepareOptions(model, pkg) {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
class InitError2 extends Schema.TaggedError()("AISDK.InitError", {
|
|
131
|
-
providerID:
|
|
131
|
+
providerID: ID8,
|
|
132
132
|
cause: Schema.Defect()
|
|
133
133
|
}) {
|
|
134
134
|
}
|
|
@@ -136,9 +136,9 @@ function initError(providerID) {
|
|
|
136
136
|
return Effect.catchCause((cause) => Effect.fail(new InitError2({ providerID, cause: Cause.squash(cause) })));
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
class
|
|
139
|
+
class Service54 extends Context.Service()("@opencode/AISDK") {
|
|
140
140
|
}
|
|
141
|
-
var locationLayer2 = Layer.effect(
|
|
141
|
+
var locationLayer2 = Layer.effect(Service54, Effect.gen(function* () {
|
|
142
142
|
let sdkHooks = [];
|
|
143
143
|
let languageHooks = [];
|
|
144
144
|
const languages = new Map;
|
|
@@ -176,7 +176,7 @@ var locationLayer2 = Layer.effect(Service72, Effect.gen(function* () {
|
|
|
176
176
|
}
|
|
177
177
|
return event;
|
|
178
178
|
});
|
|
179
|
-
const service =
|
|
179
|
+
const service = Service54.of({
|
|
180
180
|
hook: {
|
|
181
181
|
sdk: register(() => sdkHooks, (next) => sdkHooks = next),
|
|
182
182
|
language: register(() => languageHooks, (next) => languageHooks = next)
|
|
@@ -817,6 +817,6 @@ function providerErrorMessage(error) {
|
|
|
817
817
|
const prefix = error.statusCode === undefined ? "Provider request failed" : `Provider request failed with HTTP ${error.statusCode}`;
|
|
818
818
|
return error.message.trim() !== "" ? error.message : message ?? (code === undefined ? prefix : `${prefix}: ${code}`);
|
|
819
819
|
}
|
|
820
|
-
var
|
|
820
|
+
var node56 = makeLocationNode({ service: Service54, layer: locationLayer2, deps: [] });
|
|
821
821
|
|
|
822
|
-
export { InitError2,
|
|
822
|
+
export { InitError2, Service54, locationLayer2, node56, exports_aisdk };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service79
|
|
3
|
+
} from "./schema-sjf3tctt.js";
|
|
4
4
|
import {
|
|
5
5
|
DirectoryUnavailableError2,
|
|
6
6
|
canonical2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./schema-gv6a8nnw.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./schema-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/worktree/git.ts
|
|
13
13
|
var exports_git2 = {};
|
|
14
14
|
__export(exports_git2, {
|
|
15
15
|
WorktreeGit: () => exports_git2,
|
|
16
|
-
make: () =>
|
|
16
|
+
make: () => make19
|
|
17
17
|
});
|
|
18
18
|
import { Effect } from "effect";
|
|
19
19
|
import { Worktree } from "@opencode/schema/worktree";
|
|
20
20
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
21
|
-
var
|
|
21
|
+
var make19 = Effect.gen(function* () {
|
|
22
22
|
const fs = yield* FSUtil.Service;
|
|
23
|
-
const git = yield*
|
|
23
|
+
const git = yield* Service79;
|
|
24
24
|
return {
|
|
25
25
|
id: Worktree.StrategyID.make("git"),
|
|
26
26
|
create: Effect.fn("Worktree.Git.create")(function* (input) {
|
|
@@ -46,4 +46,4 @@ var make12 = Effect.gen(function* () {
|
|
|
46
46
|
};
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { make19, exports_git2 };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseOption2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-5daktx2q.js";
|
|
4
4
|
import {
|
|
5
5
|
AbsolutePath2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-922hggd3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID3,
|
|
9
9
|
Name2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./schema-mrs0jc6e.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./schema-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/skill-file.ts
|
|
16
16
|
var exports_skill_file = {};
|
|
@@ -55,7 +55,7 @@ function parse2(directory, filepath, content) {
|
|
|
55
55
|
return {
|
|
56
56
|
_tag: "Parsed",
|
|
57
57
|
skill: {
|
|
58
|
-
id:
|
|
58
|
+
id: ID3.make(id),
|
|
59
59
|
name: Name2.make(frontmatter.name ?? id),
|
|
60
60
|
...frontmatter.description === undefined ? {} : { description: frontmatter.description },
|
|
61
61
|
...autoinvoke === undefined ? {} : { autoinvoke },
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID8
|
|
3
|
+
} from "./schema-r2fyx2gr.js";
|
|
4
4
|
import {
|
|
5
5
|
loadSDKFactory2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-hjbc5kem.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/sap-ai-core.ts
|
|
9
9
|
import { Effect } from "effect";
|
|
@@ -14,7 +14,7 @@ var SapAICorePlugin2 = define({
|
|
|
14
14
|
effect: Effect.fn(function* (ctx) {
|
|
15
15
|
const npm = yield* Npm.Service;
|
|
16
16
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
17
|
-
if (evt.model.providerID !==
|
|
17
|
+
if (evt.model.providerID !== ID8.make("sap-ai-core"))
|
|
18
18
|
return;
|
|
19
19
|
const serviceKey = process.env.AICORE_SERVICE_KEY ?? (typeof evt.options.serviceKey === "string" ? evt.options.serviceKey : undefined);
|
|
20
20
|
if (serviceKey && !process.env.AICORE_SERVICE_KEY)
|
|
@@ -25,7 +25,7 @@ var SapAICorePlugin2 = define({
|
|
|
25
25
|
evt.sdk = factory(serviceKey ? { deploymentId: process.env.AICORE_DEPLOYMENT_ID, resourceGroup: process.env.AICORE_RESOURCE_GROUP } : {});
|
|
26
26
|
}));
|
|
27
27
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
28
|
-
if (evt.model.providerID !==
|
|
28
|
+
if (evt.model.providerID !== ID8.make("sap-ai-core"))
|
|
29
29
|
return;
|
|
30
30
|
evt.language = evt.sdk(evt.model.modelID ?? evt.model.id);
|
|
31
31
|
}));
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service70
|
|
3
|
+
} from "./schema-eevfkcnk.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
Service69,
|
|
6
6
|
readText2,
|
|
7
7
|
syncTextBom2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./schema-vtqhpasw.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service13
|
|
11
|
+
} from "./schema-ckspfy32.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service72
|
|
14
|
+
} from "./schema-evg6vw2r.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
Service14
|
|
17
|
+
} from "./schema-4td6qmdq.js";
|
|
18
18
|
import {
|
|
19
19
|
fileDiff2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./schema-6prwharc.js";
|
|
21
21
|
import {
|
|
22
22
|
__export
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./schema-9rqn6x4v.js";
|
|
24
24
|
|
|
25
25
|
// src/tool/plugin/write.ts
|
|
26
26
|
var exports_write = {};
|
|
27
27
|
__export(exports_write, {
|
|
28
28
|
Input: () => Input12,
|
|
29
29
|
Output: () => Output8,
|
|
30
|
-
Plugin: () =>
|
|
30
|
+
Plugin: () => Plugin46,
|
|
31
31
|
WriteTool: () => exports_write,
|
|
32
32
|
name: () => name12,
|
|
33
33
|
toModelContent: () => toModelContent6
|
|
@@ -49,14 +49,14 @@ var Output8 = Schema.Struct({
|
|
|
49
49
|
existed: Schema.Boolean
|
|
50
50
|
});
|
|
51
51
|
var toModelContent6 = (output) => `${output.existed ? "Wrote" : "Created"} file successfully: ${output.resource}`;
|
|
52
|
-
var
|
|
52
|
+
var Plugin46 = {
|
|
53
53
|
id: "opencode.tool.write",
|
|
54
54
|
effect: Effect.fn("WriteTool.Plugin")(function* (ctx) {
|
|
55
|
-
const access = yield*
|
|
56
|
-
const fileMutation = yield*
|
|
57
|
-
const environment = yield*
|
|
58
|
-
const formatter = yield*
|
|
59
|
-
const permission = yield*
|
|
55
|
+
const access = yield* Service14;
|
|
56
|
+
const fileMutation = yield* Service69;
|
|
57
|
+
const environment = yield* Service70;
|
|
58
|
+
const formatter = yield* Service13;
|
|
59
|
+
const permission = yield* Service72;
|
|
60
60
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
61
61
|
name: name12,
|
|
62
62
|
options: { codemode: false, permission: "edit" },
|
|
@@ -98,4 +98,4 @@ Use this tool to create new files or overwrite existing files. For partial chang
|
|
|
98
98
|
})
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
export { name12, Input12, Output8, toModelContent6,
|
|
101
|
+
export { name12, Input12, Output8, toModelContent6, Plugin46, exports_write };
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-y71avatq.js";
|
|
4
4
|
import {
|
|
5
5
|
Service81,
|
|
6
6
|
node85
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./schema-fy8yekx1.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
9
|
+
Event15,
|
|
10
|
+
Service64,
|
|
11
|
+
node67
|
|
12
|
+
} from "./schema-p1aznbsd.js";
|
|
13
13
|
import {
|
|
14
|
-
Service78,
|
|
15
|
-
node82
|
|
16
|
-
} from "./ripgrep-e6qp4kc5.js";
|
|
17
|
-
import {
|
|
18
|
-
Service59,
|
|
19
|
-
node61
|
|
20
|
-
} from "./ripgrep-bprqj5v0.js";
|
|
21
|
-
import {
|
|
22
|
-
ID16,
|
|
23
14
|
Service77,
|
|
24
15
|
node81
|
|
25
|
-
} from "./
|
|
16
|
+
} from "./schema-p6dqprnz.js";
|
|
17
|
+
import {
|
|
18
|
+
Service70,
|
|
19
|
+
node73
|
|
20
|
+
} from "./schema-eevfkcnk.js";
|
|
21
|
+
import {
|
|
22
|
+
ID18,
|
|
23
|
+
Service80,
|
|
24
|
+
node84
|
|
25
|
+
} from "./schema-k8m1efg7.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./schema-rdw6cm16.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID9,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service63,
|
|
34
|
+
node66
|
|
35
|
+
} from "./schema-3yr6111a.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./schema-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: () =>
|
|
45
|
-
Options: () =>
|
|
44
|
+
NotFoundError: () => NotFoundError2,
|
|
45
|
+
Options: () => Options2,
|
|
46
46
|
PromptsChanged: () => PromptsChanged2,
|
|
47
47
|
Resource: () => Resource2,
|
|
48
48
|
ResourceCatalog: () => ResourceCatalog2,
|
|
@@ -50,12 +50,12 @@ __export(exports_mcp4, {
|
|
|
50
50
|
ResourceContentPart: () => ResourceContentPart2,
|
|
51
51
|
ResourceTemplate: () => ResourceTemplate2,
|
|
52
52
|
ServerName: () => ServerName2,
|
|
53
|
-
Service: () =>
|
|
53
|
+
Service: () => Service22,
|
|
54
54
|
Status: () => Status2,
|
|
55
55
|
ToolCallError: () => ToolCallError2,
|
|
56
|
-
configured: () =>
|
|
57
|
-
layer: () =>
|
|
58
|
-
node: () =>
|
|
56
|
+
configured: () => configured2,
|
|
57
|
+
layer: () => layer10,
|
|
58
|
+
node: () => node24
|
|
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 NotFoundError2 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
78
78
|
server: ServerName2
|
|
79
79
|
}) {
|
|
80
80
|
get message() {
|
|
@@ -92,21 +92,21 @@ var GLOBAL_ELICITATION_SESSION_ID = "global";
|
|
|
92
92
|
var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
93
93
|
var cloneConfig = (config) => structuredClone(config);
|
|
94
94
|
|
|
95
|
-
class
|
|
95
|
+
class Service22 extends Context.Service()("@opencode/MCP") {
|
|
96
96
|
}
|
|
97
|
-
var
|
|
97
|
+
var Options2 = Schema.Struct({
|
|
98
98
|
clientInfo: Schema.optional(Schema.Struct({
|
|
99
99
|
name: Schema.String,
|
|
100
100
|
version: Schema.String
|
|
101
101
|
}))
|
|
102
102
|
});
|
|
103
|
-
var
|
|
104
|
-
const location = yield*
|
|
105
|
-
const environment = yield*
|
|
103
|
+
var layer10 = (options) => Layer.effect(Service22, Effect.gen(function* () {
|
|
104
|
+
const location = yield* Service77;
|
|
105
|
+
const environment = yield* Service70;
|
|
106
106
|
const bus = yield* Service81;
|
|
107
|
-
const forms = yield*
|
|
108
|
-
const integration = yield*
|
|
109
|
-
const credentials = yield*
|
|
107
|
+
const forms = yield* Service80;
|
|
108
|
+
const integration = yield* Service63;
|
|
109
|
+
const credentials = yield* Service64;
|
|
110
110
|
const root = yield* Effect.scope;
|
|
111
111
|
const fork = yield* FiberSet.makeRuntime();
|
|
112
112
|
const entries = new Map;
|
|
@@ -118,7 +118,7 @@ var layer12 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
|
118
118
|
return;
|
|
119
119
|
const remote = entry.config;
|
|
120
120
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
121
|
-
const integrationID =
|
|
121
|
+
const integrationID = ID9.make(suffix);
|
|
122
122
|
entry.integrationID = integrationID;
|
|
123
123
|
owned.add(integrationID);
|
|
124
124
|
const methodID = MethodID2.make(suffix);
|
|
@@ -134,7 +134,7 @@ var layer12 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
|
134
134
|
method: { id: methodID, type: "oauth", label: name },
|
|
135
135
|
authorize: () => Effect.gen(function* () {
|
|
136
136
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
137
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
137
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service64, credentials));
|
|
138
138
|
})
|
|
139
139
|
});
|
|
140
140
|
}).pipe(Scope.provide(scope));
|
|
@@ -143,19 +143,19 @@ var layer12 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
|
143
143
|
const name = ServerName2.make(server);
|
|
144
144
|
const entry = entries.get(name);
|
|
145
145
|
if (!entry)
|
|
146
|
-
return yield* new
|
|
146
|
+
return yield* new NotFoundError2({ server: name });
|
|
147
147
|
return { name, entry };
|
|
148
148
|
});
|
|
149
149
|
const connectProvider = Effect.fnUntraced(function* (entry) {
|
|
150
150
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
151
151
|
return;
|
|
152
152
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
153
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
153
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service64, credentials));
|
|
154
154
|
});
|
|
155
155
|
const elicitation = {
|
|
156
156
|
create: (input) => Effect.gen(function* () {
|
|
157
157
|
if (input.params.mode === "url") {
|
|
158
|
-
const formID =
|
|
158
|
+
const formID = ID18.create();
|
|
159
159
|
const elicitationID = input.params.elicitationId;
|
|
160
160
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
161
161
|
if (key)
|
|
@@ -239,7 +239,7 @@ var layer12 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
|
239
239
|
entry.scope = scope;
|
|
240
240
|
const authProvider = yield* connectProvider(entry);
|
|
241
241
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
242
|
-
const result = yield* 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(
|
|
242
|
+
const result = yield* 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(Service70, environment), Scope.provide(scope), Effect.exit);
|
|
243
243
|
if (Exit.isSuccess(result)) {
|
|
244
244
|
entry.client = result.value.connection;
|
|
245
245
|
entry.tools = result.value.tools.map((tool) => toTool(name, entry, tool));
|
|
@@ -363,7 +363,7 @@ var layer12 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
|
363
363
|
yield* startServer(name, entry);
|
|
364
364
|
}).pipe(locks.withLock(name));
|
|
365
365
|
});
|
|
366
|
-
fork(bus.subscribe(
|
|
366
|
+
fork(bus.subscribe(Event15.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
367
367
|
const state = create3({
|
|
368
368
|
name: "mcp",
|
|
369
369
|
initial: () => ({
|
|
@@ -389,7 +389,7 @@ var layer12 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
|
389
389
|
}),
|
|
390
390
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
391
391
|
});
|
|
392
|
-
return
|
|
392
|
+
return Service22.of({
|
|
393
393
|
transform: state.transform,
|
|
394
394
|
reload: state.reload,
|
|
395
395
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -508,14 +508,14 @@ var layer12 = (options) => Layer.effect(Service31, Effect.gen(function* () {
|
|
|
508
508
|
})
|
|
509
509
|
});
|
|
510
510
|
}));
|
|
511
|
-
function
|
|
511
|
+
function configured2(options) {
|
|
512
512
|
return makeLocationNode({
|
|
513
|
-
service:
|
|
514
|
-
layer:
|
|
515
|
-
deps: [
|
|
513
|
+
service: Service22,
|
|
514
|
+
layer: layer10(options),
|
|
515
|
+
deps: [node81, node73, node85, node84, node66, node67]
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
|
-
var
|
|
518
|
+
var node24 = configured2();
|
|
519
519
|
function toElicitationField(key, property, required) {
|
|
520
520
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
521
521
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -566,4 +566,4 @@ function toElicitationField(key, property, required) {
|
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
-
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2,
|
|
569
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2, NotFoundError2, ToolCallError2, Service22, Options2, layer10, configured2, node24, exports_mcp4 };
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service81
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-fy8yekx1.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service61
|
|
6
|
+
} from "./schema-cd4vjczq.js";
|
|
7
7
|
import {
|
|
8
8
|
group2,
|
|
9
9
|
batch2,
|
|
10
10
|
shutdown2,
|
|
11
11
|
inherit2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./schema-rdw6cm16.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
14
|
+
Service16,
|
|
15
15
|
awaitActivation2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./schema-hgd4btym.js";
|
|
17
17
|
import {
|
|
18
18
|
make11,
|
|
19
19
|
requirements3,
|
|
20
20
|
storage2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./schema-6008d0qp.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./schema-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/plugin.ts
|
|
27
27
|
var exports_plugin2 = {};
|
|
28
28
|
__export(exports_plugin2, {
|
|
29
|
-
Event: () =>
|
|
29
|
+
Event: () => Event2,
|
|
30
30
|
ID: () => ID2,
|
|
31
31
|
Info: () => Info2,
|
|
32
32
|
Plugin: () => exports_plugin2,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service16,
|
|
34
34
|
Source: () => Source2,
|
|
35
35
|
State: () => State2,
|
|
36
36
|
awaitActivation: () => awaitActivation2,
|
|
37
|
-
node: () =>
|
|
37
|
+
node: () => node17
|
|
38
38
|
});
|
|
39
|
-
import { Event as
|
|
39
|
+
import { Event as Event2, ID as ID2, Info as Info2, Source as Source2, State as State2 } from "@opencode/schema/plugin";
|
|
40
40
|
import { Plugin } from "@opencode/schema/plugin";
|
|
41
41
|
import { Node } from "@opencode/util/effect/app-node";
|
|
42
42
|
import { Cause, Context, Effect, Exit, Latch, Layer, Logger, Queue, References, Scope, Semaphore } from "effect";
|
|
43
|
-
var layer = Layer.effect(
|
|
43
|
+
var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
44
44
|
const bus = yield* Service81;
|
|
45
|
-
const kv = yield*
|
|
45
|
+
const kv = yield* Service61;
|
|
46
46
|
const scope = yield* Scope.make();
|
|
47
47
|
const active = new Map;
|
|
48
48
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -205,7 +205,7 @@ var layer = Layer.effect(Service24, Effect.gen(function* () {
|
|
|
205
205
|
yield* shutdown2(Scope.close(scope, exit));
|
|
206
206
|
}));
|
|
207
207
|
yield* Effect.addFinalizer(close);
|
|
208
|
-
return
|
|
208
|
+
return Service16.of({
|
|
209
209
|
activate,
|
|
210
210
|
close,
|
|
211
211
|
awaitActivation: ready.await,
|
|
@@ -222,10 +222,10 @@ function slotInfo(slot) {
|
|
|
222
222
|
features: { server: true, ...slot.plugin.features }
|
|
223
223
|
};
|
|
224
224
|
}
|
|
225
|
-
var
|
|
226
|
-
service:
|
|
225
|
+
var node17 = Node.makeLocationNode({
|
|
226
|
+
service: Service16,
|
|
227
227
|
layer,
|
|
228
228
|
deps: [requirements3]
|
|
229
229
|
});
|
|
230
230
|
|
|
231
|
-
export {
|
|
231
|
+
export { node17, exports_plugin2, Event2, ID2, Info2, Source2, State2 };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service81
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-fy8yekx1.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Event15
|
|
7
|
+
} from "./schema-p1aznbsd.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
ID9,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./schema-3yr6111a.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID8,
|
|
14
14
|
mergeOverlay2,
|
|
15
15
|
mergeHeaders2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./schema-r2fyx2gr.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
ID6,
|
|
19
|
+
Input14,
|
|
20
20
|
Response2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./schema-rv9hmyrv.js";
|
|
22
22
|
|
|
23
23
|
// src/plugin/provider/opencode.ts
|
|
24
24
|
import { Duration, Effect, Equal, Schema, Semaphore, Stream } from "effect";
|
|
@@ -32,7 +32,7 @@ var methodID = MethodID2.make("device");
|
|
|
32
32
|
var RemoteResponse = Schema.Struct({
|
|
33
33
|
providers: Schema.Record(Schema.String, ConfigProvider.Info),
|
|
34
34
|
websearch: Schema.Struct({
|
|
35
|
-
providerID:
|
|
35
|
+
providerID: ID6
|
|
36
36
|
}).pipe(Schema.optional)
|
|
37
37
|
});
|
|
38
38
|
var Device = Schema.Struct({
|
|
@@ -54,7 +54,7 @@ var User = Schema.Struct({ id: Schema.String, email: Schema.String });
|
|
|
54
54
|
var Org = Schema.Struct({ id: Schema.String, name: Schema.String });
|
|
55
55
|
function oauth(http) {
|
|
56
56
|
return {
|
|
57
|
-
integrationID:
|
|
57
|
+
integrationID: ID9.make("opencode"),
|
|
58
58
|
method: {
|
|
59
59
|
id: methodID,
|
|
60
60
|
type: "oauth",
|
|
@@ -125,7 +125,7 @@ var OpencodePlugin2 = define({
|
|
|
125
125
|
providers.update(providerID, (provider) => {
|
|
126
126
|
if (source && source.provider !== provider)
|
|
127
127
|
Object.assign(provider, structuredClone(source.provider), { id: provider.id });
|
|
128
|
-
provider.integrationID =
|
|
128
|
+
provider.integrationID = ID9.make("opencode");
|
|
129
129
|
if (item.canonical !== undefined)
|
|
130
130
|
provider.canonical = item.canonical;
|
|
131
131
|
if (item.name !== undefined)
|
|
@@ -195,7 +195,7 @@ var OpencodePlugin2 = define({
|
|
|
195
195
|
sourceConnection: snapshot.connection
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
|
-
const item = providers.get(
|
|
198
|
+
const item = providers.get(ID8.opencode);
|
|
199
199
|
if (!item)
|
|
200
200
|
return;
|
|
201
201
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
|
|
@@ -207,7 +207,7 @@ var OpencodePlugin2 = define({
|
|
|
207
207
|
});
|
|
208
208
|
});
|
|
209
209
|
yield* ctx.model.transform((models) => {
|
|
210
|
-
const item = models.provider.get(
|
|
210
|
+
const item = models.provider.get(ID8.opencode);
|
|
211
211
|
if (!item)
|
|
212
212
|
return;
|
|
213
213
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
|
|
@@ -241,7 +241,7 @@ var OpencodePlugin2 = define({
|
|
|
241
241
|
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
242
242
|
const token = credential.type === "oauth" ? credential.access : credential.key;
|
|
243
243
|
const server = yield* normalizeServer(serverUrl(credential));
|
|
244
|
-
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(
|
|
244
|
+
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input14)({
|
|
245
245
|
query: input.query,
|
|
246
246
|
providerID: descriptor.providerID
|
|
247
247
|
}));
|
|
@@ -262,7 +262,7 @@ var OpencodePlugin2 = define({
|
|
|
262
262
|
yield* Effect.all([ctx.provider.reload(), ctx.websearch.reload()], { concurrency: 2, discard: true });
|
|
263
263
|
});
|
|
264
264
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(apply)));
|
|
265
|
-
yield* bus.subscribe(
|
|
265
|
+
yield* bus.subscribe(Event15.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID9.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
266
266
|
yield* Effect.sleep(Duration.minutes(10)).pipe(Effect.andThen(loading.withPermit(load().pipe(Effect.flatMap((next) => Equal.equals(snapshot, next) ? Effect.void : apply(next))))), Effect.forever, Effect.forkScoped);
|
|
267
267
|
})
|
|
268
268
|
});
|