@opencode/core 0.0.0-dev-21777 → 0.0.0-dev-21784
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 +86 -86
- package/dist/aisdk-native.js +93 -93
- package/dist/aisdk.js +99 -99
- package/dist/app.js +9 -9
- package/dist/bus.js +72 -72
- package/dist/chunks/{wellknown-bd0tpmaf.js → agent-01x633r0.js} +4 -4
- package/dist/chunks/{wellknown-z0kx572n.js → agent-02yzdc13.js} +2 -2
- package/dist/chunks/{wellknown-8bc2ahr8.js → agent-033a0jkt.js} +3 -3
- package/dist/chunks/{wellknown-aj7mw0zk.js → agent-034tev2y.js} +2 -2
- package/dist/chunks/{wellknown-j3rp8z28.js → agent-03qvnrpn.js} +36 -36
- package/dist/chunks/{wellknown-xvfjp7yw.js → agent-0fc55j4y.js} +125 -125
- package/dist/chunks/{wellknown-yad47j67.js → agent-0k1t71fg.js} +4 -4
- package/dist/chunks/{wellknown-yactmmgv.js → agent-0nervf8r.js} +10 -10
- package/dist/chunks/{wellknown-g7wmygc1.js → agent-0nfr0cf2.js} +3 -3
- package/dist/chunks/{wellknown-kwd8yzj2.js → agent-11k6s8k8.js} +11 -11
- package/dist/chunks/{wellknown-e6y915td.js → agent-139mbqx8.js} +4 -4
- package/dist/chunks/{wellknown-3gen3464.js → agent-13ge0zq5.js} +15 -15
- package/dist/chunks/{wellknown-v0t96s7a.js → agent-173t91w5.js} +9 -9
- package/dist/chunks/{wellknown-27w5k9zf.js → agent-1ep2p91f.js} +2 -2
- package/dist/chunks/{wellknown-922cm4bg.js → agent-1hetrfzc.js} +7 -7
- package/dist/chunks/{wellknown-b88d5nwd.js → agent-1tfrxqx8.js} +9 -9
- package/dist/chunks/{wellknown-kvgv58sm.js → agent-1vzks4bn.js} +23 -23
- package/dist/chunks/{wellknown-1x2knyw4.js → agent-1x2knyw4.js} +1 -1
- package/dist/chunks/{wellknown-9rkgepac.js → agent-26ebgyg0.js} +9 -9
- package/dist/chunks/{wellknown-tnp0dwr6.js → agent-2km5wy4y.js} +30 -30
- package/dist/chunks/{wellknown-1cxgtnbf.js → agent-2ytwxhv1.js} +21 -21
- package/dist/chunks/{wellknown-2z1j29yd.js → agent-2z1j29yd.js} +1 -1
- package/dist/chunks/{wellknown-z5jgj3bn.js → agent-31yhp6h2.js} +12 -12
- package/dist/chunks/{wellknown-p23tmbza.js → agent-36ea6r34.js} +11 -11
- package/dist/chunks/{wellknown-4h8bx7yk.js → agent-36faspmy.js} +3 -3
- package/dist/chunks/{wellknown-agqd6nxz.js → agent-36qx82yz.js} +2 -2
- package/dist/chunks/{wellknown-j718j4p4.js → agent-38ndmwz0.js} +15 -15
- package/dist/chunks/{wellknown-3hepkmqq.js → agent-3hepkmqq.js} +1 -1
- package/dist/chunks/{wellknown-3nnrz6f6.js → agent-3nnrz6f6.js} +1 -1
- package/dist/chunks/{wellknown-cpvd08na.js → agent-3ryz99p0.js} +4 -4
- package/dist/chunks/{wellknown-w2eysc6j.js → agent-40za9wsf.js} +9 -9
- package/dist/chunks/{wellknown-3vdvxvt6.js → agent-43ttkgpw.js} +17 -17
- package/dist/chunks/{wellknown-m126rssb.js → agent-476ebpw1.js} +5 -5
- package/dist/chunks/{wellknown-h51c97x2.js → agent-4773t8et.js} +21 -21
- package/dist/chunks/{wellknown-gn2br83g.js → agent-4ebqk1fd.js} +18 -18
- package/dist/chunks/{wellknown-3c7qpzd7.js → agent-4ffhv9d7.js} +8 -8
- package/dist/chunks/{wellknown-mke939yf.js → agent-4kmz7hka.js} +18 -18
- package/dist/chunks/{wellknown-egcetw1q.js → agent-4rwxs393.js} +13 -13
- package/dist/chunks/{wellknown-4v008n1t.js → agent-4v008n1t.js} +1 -1
- package/dist/chunks/{wellknown-4xvmh7wp.js → agent-4xvmh7wp.js} +3 -3
- package/dist/chunks/{wellknown-dp5wfbj1.js → agent-5kbc8wm3.js} +33 -33
- package/dist/chunks/{wellknown-46p4nd0k.js → agent-5kbev7nh.js} +6 -6
- package/dist/chunks/{wellknown-5m9w47nd.js → agent-5m9w47nd.js} +1 -1
- package/dist/chunks/{wellknown-e3qxr5gk.js → agent-5qd3pb7m.js} +2 -2
- package/dist/chunks/{wellknown-kd89nm9p.js → agent-5qzx1yz8.js} +10 -10
- package/dist/chunks/{wellknown-61ennm6n.js → agent-61ennm6n.js} +1 -1
- package/dist/chunks/{wellknown-61g7nd3s.js → agent-61g7nd3s.js} +2 -2
- package/dist/chunks/{wellknown-0yg5t7s5.js → agent-66qzw14e.js} +10 -10
- package/dist/chunks/{wellknown-6c5cd6ez.js → agent-6c5cd6ez.js} +2 -2
- package/dist/chunks/{wellknown-04jxknxw.js → agent-6cjpnrq2.js} +23 -23
- package/dist/chunks/{wellknown-5ch3p6j9.js → agent-6dnbbrkg.js} +6 -6
- package/dist/chunks/{wellknown-6esdw8yj.js → agent-6esdw8yj.js} +1 -1
- package/dist/chunks/{wellknown-kxfvb65t.js → agent-6kms46fw.js} +5 -5
- package/dist/chunks/{wellknown-8qhb45tw.js → agent-6mejnpem.js} +11 -11
- package/dist/chunks/{wellknown-6pjqjmy2.js → agent-6pjqjmy2.js} +1 -1
- package/dist/chunks/{wellknown-jjvs5gfh.js → agent-75jp0z26.js} +23 -17
- package/dist/chunks/{wellknown-76cb1hcw.js → agent-76cb1hcw.js} +1 -1
- package/dist/chunks/agent-76mf46np.js +26 -0
- package/dist/chunks/{wellknown-156eqp0k.js → agent-7an283zs.js} +10 -10
- package/dist/chunks/{wellknown-tp3w5r6h.js → agent-7bbsac65.js} +15 -15
- package/dist/chunks/{wellknown-7bmhse3q.js → agent-7bmhse3q.js} +1 -1
- package/dist/chunks/{wellknown-8ak2wtwm.js → agent-7dg2g5n4.js} +13 -13
- package/dist/chunks/{wellknown-m39qkr2j.js → agent-7f9y6rh0.js} +20 -20
- package/dist/chunks/{wellknown-q7pkjngt.js → agent-7m634182.js} +28 -28
- package/dist/chunks/{wellknown-c50m9zrv.js → agent-7mztthz3.js} +17 -17
- package/dist/chunks/{wellknown-z1325g04.js → agent-7nydw5h0.js} +39 -39
- package/dist/chunks/{wellknown-jh1qsrkb.js → agent-7q4ggvk7.js} +47 -47
- package/dist/chunks/{wellknown-0zht2ra2.js → agent-7qmwdxq4.js} +11 -11
- package/dist/chunks/{wellknown-8tzs9as6.js → agent-7t5b4ngt.js} +39 -39
- package/dist/chunks/{wellknown-7w2ypzdf.js → agent-7w2ypzdf.js} +1 -1
- package/dist/chunks/{wellknown-wj6vtssy.js → agent-7x19yq7v.js} +9 -9
- package/dist/chunks/{wellknown-1cdsvsw3.js → agent-800wwg03.js} +8 -8
- package/dist/chunks/{wellknown-ka7gkb12.js → agent-81c7e9ra.js} +1 -1
- package/dist/chunks/{wellknown-6n3yb10w.js → agent-81k9hmnn.js} +6 -6
- package/dist/chunks/{wellknown-krs5mes8.js → agent-85qf60df.js} +12 -12
- package/dist/chunks/{wellknown-bw273ec6.js → agent-89n72xaa.js} +26 -26
- package/dist/chunks/{wellknown-160yv0cs.js → agent-8d2bz6m6.js} +8 -8
- package/dist/chunks/{wellknown-ek6vqcaq.js → agent-8e6m80hw.js} +4 -4
- package/dist/chunks/{wellknown-ac8m9jgw.js → agent-8hn9g0m8.js} +33 -33
- package/dist/chunks/{wellknown-8r6n0qax.js → agent-8r6n0qax.js} +1 -1
- package/dist/chunks/{wellknown-jyr7n9x1.js → agent-8rqhnwg1.js} +3 -3
- package/dist/chunks/{wellknown-cda3ha6j.js → agent-8swnnve6.js} +4 -4
- package/dist/chunks/{wellknown-3q0rd7f0.js → agent-8swrpak5.js} +9 -9
- package/dist/chunks/{wellknown-jwec9qe4.js → agent-8thk20xz.js} +8 -8
- package/dist/chunks/{wellknown-8wtp7s3z.js → agent-8wtp7s3z.js} +1 -1
- package/dist/chunks/{wellknown-24hqqhtt.js → agent-8x6kkqy5.js} +21 -21
- package/dist/chunks/{wellknown-91rj84md.js → agent-91rj84md.js} +1 -1
- package/dist/chunks/{wellknown-xfwmjqem.js → agent-97r8yvgs.js} +27 -27
- package/dist/chunks/{wellknown-gthfkf9z.js → agent-9fkdxkka.js} +13 -13
- package/dist/chunks/{wellknown-r8cv79ss.js → agent-9x8q2m03.js} +8 -8
- package/dist/chunks/{wellknown-j2vqej1t.js → agent-a7xdavkk.js} +9 -9
- package/dist/chunks/{wellknown-p9fn62m0.js → agent-aeczztyf.js} +4 -4
- package/dist/chunks/{wellknown-eaem389f.js → agent-ag49k9fp.js} +18 -18
- package/dist/chunks/{wellknown-gh9c8abt.js → agent-ahef7j8f.js} +6 -6
- package/dist/chunks/{wellknown-vya0mwf0.js → agent-as8v2p6n.js} +14 -14
- package/dist/chunks/{wellknown-yv7rfcpt.js → agent-as9ge7gr.js} +22 -22
- package/dist/chunks/{wellknown-7jxwkttf.js → agent-aw7ajr0a.js} +22 -22
- package/dist/chunks/{wellknown-3cbjf1nt.js → agent-ayjs7tqn.js} +2 -2
- package/dist/chunks/{wellknown-b0mv4wxm.js → agent-b0mv4wxm.js} +2 -2
- package/dist/chunks/{wellknown-atkrv4f1.js → agent-b2g4rpf0.js} +16 -16
- package/dist/chunks/{wellknown-xfqmb1dp.js → agent-bh84v676.js} +9 -9
- package/dist/chunks/{wellknown-4bzv39yc.js → agent-bk817c17.js} +25 -25
- package/dist/chunks/{wellknown-bstexjd6.js → agent-bstexjd6.js} +1 -1
- package/dist/chunks/{wellknown-h9927jyw.js → agent-bwk3ddh5.js} +9 -9
- package/dist/chunks/{wellknown-c59xc1n0.js → agent-c6syegq7.js} +17 -17
- package/dist/chunks/{wellknown-v27t7dvh.js → agent-ccga0n09.js} +8 -8
- package/dist/chunks/{wellknown-s315sn73.js → agent-cjse11k8.js} +18 -18
- package/dist/chunks/{wellknown-9shqtmsr.js → agent-cmchtp0v.js} +9 -9
- package/dist/chunks/{wellknown-9g4cv0f3.js → agent-cmxajbhr.js} +5 -5
- package/dist/chunks/{wellknown-m1ka6wme.js → agent-cvek0x6e.js} +9 -9
- package/dist/chunks/{wellknown-6s2cpg4s.js → agent-czx0mg6z.js} +25 -25
- package/dist/chunks/{wellknown-4tnne5r4.js → agent-d1e4gt8e.js} +79 -79
- package/dist/chunks/{wellknown-c9t2ty9q.js → agent-d2887f8n.js} +4 -4
- package/dist/chunks/{wellknown-d4v9tmah.js → agent-d4v9tmah.js} +2 -2
- package/dist/chunks/{wellknown-6r6h6sat.js → agent-dcjmpepk.js} +17 -17
- package/dist/chunks/{wellknown-pre1sqds.js → agent-ddwaa558.js} +4 -4
- package/dist/chunks/{wellknown-jhakfsh4.js → agent-dhr7th0q.js} +1 -1
- package/dist/chunks/{wellknown-s9agp0wp.js → agent-dvswds2a.js} +2 -2
- package/dist/chunks/{wellknown-e834z07m.js → agent-e834z07m.js} +1 -1
- package/dist/chunks/{wellknown-7p0gfk8r.js → agent-e8m7b3pk.js} +11 -11
- package/dist/chunks/{wellknown-hbcsvp0f.js → agent-ek3fsnwj.js} +5 -5
- package/dist/chunks/{wellknown-4qr8kst0.js → agent-ekkan3t7.js} +13 -13
- package/dist/chunks/{wellknown-2jjbcsmh.js → agent-en6q6hb7.js} +3 -3
- package/dist/chunks/{wellknown-hz95n7rj.js → agent-eqkb58k1.js} +8 -8
- package/dist/chunks/{wellknown-csfpqy7c.js → agent-ewexpb9k.js} +6 -6
- package/dist/chunks/{wellknown-83txnp1n.js → agent-eyvhq8ft.js} +26 -26
- package/dist/chunks/{wellknown-p16j9thq.js → agent-f7n6kqew.js} +43 -43
- package/dist/chunks/{wellknown-15npty3x.js → agent-f81xf9jd.js} +9 -9
- package/dist/chunks/{wellknown-74jxnsy8.js → agent-f993jxvg.js} +29 -29
- package/dist/chunks/{wellknown-n9p72mjb.js → agent-faewc6h3.js} +5 -5
- package/dist/chunks/{wellknown-cvc23dz4.js → agent-ffd6fwxk.js} +8 -8
- package/dist/chunks/{wellknown-fffv3p7h.js → agent-fffv3p7h.js} +1 -1
- package/dist/chunks/{wellknown-fy5bjxgv.js → agent-fnrac0zs.js} +3 -3
- package/dist/chunks/{wellknown-t2adjgr6.js → agent-fxjbdvfm.js} +26 -26
- package/dist/chunks/{wellknown-vy5k7220.js → agent-fykkvtjp.js} +18 -18
- package/dist/chunks/{wellknown-be9dmfer.js → agent-g41gmtrh.js} +21 -21
- package/dist/chunks/{wellknown-mh0df1gn.js → agent-g5axxp69.js} +6 -6
- package/dist/chunks/{wellknown-g5h9c0rr.js → agent-g5h9c0rr.js} +2 -2
- package/dist/chunks/{wellknown-v7bqyd8s.js → agent-g5rmwvhf.js} +17 -17
- package/dist/chunks/{wellknown-hs11k58z.js → agent-g7x514gg.js} +4 -4
- package/dist/chunks/{wellknown-5btwyzmg.js → agent-ges56kck.js} +21 -21
- package/dist/chunks/{wellknown-jmc1s92r.js → agent-gjktm9p0.js} +11 -11
- package/dist/chunks/{wellknown-b8fyfga2.js → agent-gk2p2r2p.js} +15 -15
- package/dist/chunks/{wellknown-cx6bpn5t.js → agent-gy38441g.js} +9 -9
- package/dist/chunks/{wellknown-m151rvrq.js → agent-h5dbejmd.js} +16 -16
- package/dist/chunks/{wellknown-6pqc74hk.js → agent-h6h54wtq.js} +13 -13
- package/dist/chunks/{wellknown-hdfrs5mg.js → agent-hdfrs5mg.js} +2 -2
- package/dist/chunks/{wellknown-59p1f3he.js → agent-hjnk4nsf.js} +4 -4
- package/dist/chunks/{wellknown-5q6rg3ah.js → agent-hsrc9p37.js} +13 -13
- package/dist/chunks/{wellknown-xk4hcb07.js → agent-j0h8eemx.js} +149 -149
- package/dist/chunks/{wellknown-j113cymg.js → agent-j113cymg.js} +1 -1
- package/dist/chunks/{wellknown-tpwbr6cx.js → agent-j11v2g1t.js} +35 -35
- package/dist/chunks/{wellknown-5248xpep.js → agent-j241wm9d.js} +1 -1
- package/dist/chunks/{wellknown-x3ms6r27.js → agent-j8xhq8v2.js} +2 -2
- package/dist/chunks/{wellknown-58gfgbrj.js → agent-ja2p8ata.js} +26 -26
- package/dist/chunks/{wellknown-w49d6sjv.js → agent-jdw580xe.js} +16 -16
- package/dist/chunks/{wellknown-j8we4jgn.js → agent-jfyr8syn.js} +11 -11
- package/dist/chunks/{wellknown-ym8pz2ff.js → agent-jj1zxfb4.js} +82 -82
- package/dist/chunks/{wellknown-0e55pn21.js → agent-jkatrbtb.js} +7 -7
- package/dist/chunks/{wellknown-masd7ga8.js → agent-jneg3k74.js} +4 -4
- package/dist/chunks/{wellknown-8jb500t8.js → agent-jseav4p7.js} +7 -7
- package/dist/chunks/{wellknown-bxwc6da6.js → agent-jxd053np.js} +10 -10
- package/dist/chunks/{wellknown-v5gy4fh6.js → agent-k5aja770.js} +8 -8
- package/dist/chunks/agent-k62y2wy8.js +18 -0
- package/dist/chunks/{wellknown-k814nvkf.js → agent-k814nvkf.js} +1 -1
- package/dist/chunks/{wellknown-atvnxcjg.js → agent-k9hbvn9k.js} +32 -32
- package/dist/chunks/{wellknown-d0tmt39w.js → agent-kae2ksf8.js} +35 -35
- package/dist/chunks/{wellknown-hwdyf90s.js → agent-kh1mannr.js} +21 -21
- package/dist/chunks/{wellknown-b13wcdxr.js → agent-kj8ms8x1.js} +5 -5
- package/dist/chunks/{wellknown-91at89dk.js → agent-kntq21p3.js} +10 -10
- package/dist/chunks/{wellknown-egz7d1cs.js → agent-kqtnvzmd.js} +26 -26
- package/dist/chunks/{wellknown-kt3bjfbg.js → agent-kt3bjfbg.js} +1 -1
- package/dist/chunks/{wellknown-jenkz3h9.js → agent-m0w0zyj2.js} +2 -2
- package/dist/chunks/{wellknown-m1714858.js → agent-m1714858.js} +1 -1
- package/dist/chunks/{wellknown-vsec61f7.js → agent-m1f7zknv.js} +11 -11
- package/dist/chunks/{wellknown-eya7ab03.js → agent-m256pbh3.js} +14 -14
- package/dist/chunks/{wellknown-m9w0rfyh.js → agent-m9w0rfyh.js} +1 -1
- package/dist/chunks/{wellknown-vnhr9jck.js → agent-mak9ftkg.js} +14 -14
- package/dist/chunks/{wellknown-maspj1v3.js → agent-maspj1v3.js} +1 -1
- package/dist/chunks/{wellknown-vz4jdedr.js → agent-meat84st.js} +14 -14
- package/dist/chunks/{wellknown-h2hkdbmv.js → agent-mfyzpdtn.js} +2 -2
- package/dist/chunks/{wellknown-yyw72xks.js → agent-mgbtrrwc.js} +6 -6
- package/dist/chunks/{wellknown-vrpgx22b.js → agent-mgma89zk.js} +4 -4
- package/dist/chunks/{wellknown-e35j4gt7.js → agent-mjhk8a0e.js} +22 -22
- package/dist/chunks/{wellknown-5pxxc420.js → agent-mr8zc4t8.js} +7 -7
- package/dist/chunks/{wellknown-31avdb49.js → agent-mzyv1r8q.js} +11 -11
- package/dist/chunks/{wellknown-ey89v7jw.js → agent-n07jd3kn.js} +13 -13
- package/dist/chunks/{wellknown-n0p0277s.js → agent-n0p0277s.js} +1 -1
- package/dist/chunks/{wellknown-xjnmf968.js → agent-n60440x5.js} +6 -6
- package/dist/chunks/{wellknown-1yjfvzjr.js → agent-n6k6tv08.js} +5 -5
- package/dist/chunks/{wellknown-6y263vp8.js → agent-n6v2b7cw.js} +5 -5
- package/dist/chunks/{wellknown-nah043kf.js → agent-nah043kf.js} +1 -1
- package/dist/chunks/{wellknown-6b0wj5kz.js → agent-new4gq93.js} +3 -3
- package/dist/chunks/{wellknown-qewdp238.js → agent-njmawajr.js} +25 -25
- package/dist/chunks/{wellknown-471w593b.js → agent-njvrd8jy.js} +7 -7
- package/dist/chunks/{wellknown-vhbqcsjh.js → agent-nkk0r47z.js} +8 -8
- package/dist/chunks/{wellknown-p015t6z3.js → agent-p015t6z3.js} +2 -2
- package/dist/chunks/{wellknown-p7vhpwh8.js → agent-p7vhpwh8.js} +1 -1
- package/dist/chunks/{wellknown-wag6p64v.js → agent-pch94jad.js} +12 -12
- package/dist/chunks/{wellknown-vzdp29pn.js → agent-pczvdmnh.js} +18 -18
- package/dist/chunks/{wellknown-pknna89w.js → agent-pknna89w.js} +1 -1
- package/dist/chunks/{wellknown-prazahgm.js → agent-prazahgm.js} +2 -2
- package/dist/chunks/{wellknown-rwvswa9y.js → agent-q32ndhrq.js} +6 -6
- package/dist/chunks/{wellknown-rf1g2xr4.js → agent-q43qcq83.js} +5 -5
- package/dist/chunks/{wellknown-za6yq9hg.js → agent-q4fmv0xv.js} +5 -5
- package/dist/chunks/{wellknown-0tjr8cgx.js → agent-q4xvtkzf.js} +31 -31
- package/dist/chunks/{wellknown-cr39h6xc.js → agent-q9ajhnek.js} +31 -31
- package/dist/chunks/{wellknown-8jztxfpf.js → agent-qjgzc4b4.js} +4 -4
- package/dist/chunks/{wellknown-6gctnm3n.js → agent-qk0m1vv0.js} +4 -4
- package/dist/chunks/{wellknown-n58cmm6s.js → agent-qqdpdbrj.js} +8 -8
- package/dist/chunks/{wellknown-rh99e6cx.js → agent-qy3evx35.js} +24 -24
- package/dist/chunks/{wellknown-m0ry6ynm.js → agent-r0nyd7pf.js} +20 -20
- package/dist/chunks/{wellknown-czf0zymf.js → agent-r0yf9dk1.js} +21 -21
- package/dist/chunks/{wellknown-r0yr0wbs.js → agent-r0yr0wbs.js} +1 -1
- package/dist/chunks/{wellknown-c81fqfqt.js → agent-r5kq5vn2.js} +2 -2
- package/dist/chunks/{wellknown-dsknn1hy.js → agent-r6e28z23.js} +16 -16
- package/dist/chunks/{wellknown-rb9dy4dg.js → agent-rb9dy4dg.js} +1 -1
- package/dist/chunks/{wellknown-ky596kc3.js → agent-rbg54dp1.js} +4 -4
- package/dist/chunks/{wellknown-mdgpbx00.js → agent-rbh56fzy.js} +49 -49
- package/dist/chunks/{wellknown-5cfa5pm8.js → agent-rc4jd66d.js} +4 -4
- package/dist/chunks/{wellknown-hg41gd58.js → agent-rnbw0hp3.js} +1 -1
- package/dist/chunks/{wellknown-rt5dr6hb.js → agent-rt5dr6hb.js} +1 -1
- package/dist/chunks/{wellknown-e88t32tv.js → agent-s2hjff0a.js} +11 -11
- package/dist/chunks/{wellknown-xv5h0f8t.js → agent-s904a6sg.js} +1 -1
- package/dist/chunks/{wellknown-sa3fpqfw.js → agent-sa3fpqfw.js} +2 -2
- package/dist/chunks/{wellknown-sqjzf8x2.js → agent-sqjzf8x2.js} +1 -1
- package/dist/chunks/{wellknown-dcmqjbj1.js → agent-sqwztq39.js} +51 -51
- package/dist/chunks/{wellknown-zapb4bac.js → agent-sydzkpmk.js} +16 -16
- package/dist/chunks/{wellknown-8k68n2qp.js → agent-syfs4wve.js} +12 -12
- package/dist/chunks/{wellknown-3879nz5k.js → agent-t5c3j88j.js} +296 -296
- package/dist/chunks/{wellknown-n3cagxyt.js → agent-t8n195hz.js} +14 -14
- package/dist/chunks/{wellknown-0vx028ky.js → agent-tasvem1v.js} +6 -6
- package/dist/chunks/{wellknown-tczq8hjw.js → agent-tczq8hjw.js} +1 -1
- package/dist/chunks/{wellknown-cxpb5f81.js → agent-tfbgmxwt.js} +2 -2
- package/dist/chunks/{wellknown-esfv9gvv.js → agent-tfxvfanj.js} +4 -4
- package/dist/chunks/{wellknown-8fxn4ej1.js → agent-trjayejy.js} +11 -11
- package/dist/chunks/{wellknown-twv2r8f4.js → agent-twv2r8f4.js} +2 -2
- package/dist/chunks/{wellknown-5cnbxcdc.js → agent-v1xj14h7.js} +5 -5
- package/dist/chunks/{wellknown-v2r1d0zg.js → agent-v2r1d0zg.js} +1 -1
- package/dist/chunks/{wellknown-7ye4ae45.js → agent-v6h5bgwd.js} +8 -8
- package/dist/chunks/{wellknown-e6g5g1wq.js → agent-v76m31v0.js} +32 -32
- package/dist/chunks/{wellknown-vd3b3yk9.js → agent-vd3b3yk9.js} +1 -1
- package/dist/chunks/{wellknown-veqvce7d.js → agent-veqvce7d.js} +1 -1
- package/dist/chunks/{wellknown-m37sd98t.js → agent-vmfhgzt5.js} +4 -4
- package/dist/chunks/{wellknown-08rawchj.js → agent-vpm8vpz0.js} +3 -3
- package/dist/chunks/{wellknown-gcjdgkn2.js → agent-vrcsa8qx.js} +9 -9
- package/dist/chunks/{wellknown-wm15htn2.js → agent-vthbx4vr.js} +36 -36
- package/dist/chunks/{wellknown-h4ja5x6t.js → agent-vwy7wwgg.js} +8 -8
- package/dist/chunks/{wellknown-0hg0mcp7.js → agent-vxe4wh26.js} +21 -21
- package/dist/chunks/{wellknown-etxjsby2.js → agent-w1xh8xrk.js} +16 -16
- package/dist/chunks/{wellknown-qaz4f448.js → agent-w22yp63b.js} +9 -9
- package/dist/chunks/{wellknown-w3wsvvr9.js → agent-w3wsvvr9.js} +1 -1
- package/dist/chunks/{wellknown-wr3re1en.js → agent-w687dnns.js} +4 -4
- package/dist/chunks/{wellknown-7bzgm6j7.js → agent-w82799bh.js} +21 -21
- package/dist/chunks/{wellknown-wakvkjy4.js → agent-wakvkjy4.js} +1 -1
- package/dist/chunks/{wellknown-xcw3pgbc.js → agent-wbfvqgnf.js} +32 -32
- package/dist/chunks/{wellknown-wd87259q.js → agent-wd87259q.js} +1 -1
- package/dist/chunks/{wellknown-2efa57sj.js → agent-wgr7v8zv.js} +11 -11
- package/dist/chunks/{wellknown-xs8zeem2.js → agent-wh6wybx0.js} +17 -17
- package/dist/chunks/{wellknown-hbstmyqp.js → agent-wqa97sqm.js} +4 -4
- package/dist/chunks/{wellknown-wdb5a6sv.js → agent-x2w8jbjz.js} +7 -7
- package/dist/chunks/{wellknown-ez3zn048.js → agent-x46b6f4j.js} +14 -14
- package/dist/chunks/{wellknown-xm65v1c6.js → agent-x4w6jmkv.js} +6 -6
- package/dist/chunks/{wellknown-tcp1bmnd.js → agent-x68edsfb.js} +3 -3
- package/dist/chunks/{wellknown-kqtnm4zs.js → agent-xb4h8bm0.js} +2 -2
- package/dist/chunks/{wellknown-mqa6tqca.js → agent-xn94rwwj.js} +11 -11
- package/dist/chunks/{wellknown-g9dq5tb6.js → agent-xvy21fdd.js} +23 -23
- package/dist/chunks/{wellknown-jns20v2e.js → agent-y3mrdmj2.js} +18 -18
- package/dist/chunks/{wellknown-yb20nhc3.js → agent-yb20nhc3.js} +1 -1
- package/dist/chunks/{wellknown-mqy7jcc3.js → agent-ynyk2n84.js} +17 -17
- package/dist/chunks/{wellknown-bb8x8cdz.js → agent-ypkjhwqx.js} +21 -21
- package/dist/chunks/{wellknown-zshj6dbt.js → agent-yr8jvaqb.js} +33 -33
- package/dist/chunks/{wellknown-z0bkrqjs.js → agent-z0bkrqjs.js} +1 -1
- package/dist/chunks/{wellknown-acwbq7dh.js → agent-z1889dz1.js} +11 -11
- package/dist/chunks/{wellknown-z38nccrw.js → agent-z38nccrw.js} +1 -1
- package/dist/chunks/{wellknown-mx37ejap.js → agent-z4k2sts1.js} +57 -57
- package/dist/chunks/{wellknown-tyfyb2y4.js → agent-za9sakwv.js} +17 -17
- package/dist/chunks/{wellknown-5sjqaaf3.js → agent-zdm2n275.js} +21 -21
- package/dist/chunks/{wellknown-qp9nzqh8.js → agent-zdsd1y55.js} +12 -12
- package/dist/chunks/{wellknown-xc28g6rc.js → agent-ze8957am.js} +23 -23
- package/dist/chunks/{wellknown-zkg84ctx.js → agent-zkg84ctx.js} +1 -1
- package/dist/chunks/{wellknown-t401z26n.js → agent-zn7c0t9d.js} +7 -7
- package/dist/chunks/{wellknown-rqwx01wv.js → agent-zr7bpxke.js} +24 -24
- package/dist/chunks/{wellknown-dzkbqkpx.js → agent-zvc54kz4.js} +32 -32
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +84 -84
- package/dist/config/discovery.js +86 -86
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +103 -103
- package/dist/config/plugin/agent.js +119 -119
- package/dist/config/plugin/command.js +215 -215
- package/dist/config/plugin/compaction.js +156 -156
- package/dist/config/plugin/compatibility.js +136 -136
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +118 -118
- package/dist/config/plugin/image.js +117 -117
- package/dist/config/plugin/instruction.js +117 -117
- package/dist/config/plugin/location-watcher.js +117 -117
- package/dist/config/plugin/mcp.js +126 -126
- package/dist/config/plugin/policy.js +118 -118
- package/dist/config/plugin/provider.js +117 -117
- package/dist/config/plugin/reference.js +119 -119
- package/dist/config/plugin/shell.js +117 -117
- package/dist/config/plugin/skill-file.js +106 -106
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +139 -139
- package/dist/config/plugin/snapshot.js +117 -117
- package/dist/config/plugin/source.js +120 -120
- package/dist/config/plugin/tool-output.js +118 -118
- package/dist/config/plugin/websearch.js +116 -116
- package/dist/config/plugin/worktree.js +119 -119
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +118 -118
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +76 -76
- package/dist/database/database.js +69 -69
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- 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 +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration.gen.js +52 -52
- package/dist/database/migration.js +54 -54
- 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 +89 -89
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +373 -373
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +97 -97
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +99 -99
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +73 -73
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +98 -98
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +2 -2
- package/dist/filesystem/location-watcher.js +226 -226
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +9 -9
- package/dist/filesystem.js +108 -108
- package/dist/form.js +73 -73
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +91 -91
- package/dist/generate.js +107 -107
- package/dist/git.js +7 -7
- 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 +103 -103
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +364 -364
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +91 -91
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +80 -80
- package/dist/job.js +77 -77
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +155 -155
- package/dist/location-lifecycle.js +111 -111
- package/dist/location-service-map.js +90 -90
- package/dist/location-services.js +361 -361
- package/dist/location.js +85 -85
- package/dist/managed-policy.js +2 -2
- package/dist/mcp/client.js +120 -97
- package/dist/mcp/index.js +113 -113
- package/dist/mcp/instructions.js +140 -140
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +94 -94
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +103 -103
- package/dist/model-resolver.js +103 -103
- package/dist/model-retry.js +1 -1
- package/dist/model.js +94 -94
- package/dist/models-dev.js +111 -111
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +85 -85
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +117 -117
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +87 -87
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +78 -78
- package/dist/plugin/agent.js +79 -79
- package/dist/plugin/command.js +106 -106
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +219 -219
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +334 -334
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +100 -100
- package/dist/plugin/module.js +118 -118
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +106 -106
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +94 -94
- package/dist/plugin/provider/azure.js +115 -115
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +117 -117
- package/dist/plugin/provider/cloudflare-ai-gateway.js +114 -114
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +113 -113
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +97 -97
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +99 -99
- package/dist/plugin/provider/gitlab.js +97 -97
- package/dist/plugin/provider/google-vertex.js +114 -114
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +81 -81
- package/dist/plugin/provider/lmstudio.js +126 -126
- package/dist/plugin/provider/local.js +123 -123
- package/dist/plugin/provider/modal.js +96 -96
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +126 -126
- package/dist/plugin/provider/openai-context-caps.js +94 -94
- package/dist/plugin/provider/openai.js +117 -117
- package/dist/plugin/provider/opencode.js +103 -103
- package/dist/plugin/provider/openrouter.js +95 -95
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +82 -82
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +95 -95
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +116 -116
- package/dist/plugin/provider/vercel.js +94 -94
- package/dist/plugin/provider/vllm.js +126 -126
- package/dist/plugin/provider/xai.js +95 -95
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +170 -170
- package/dist/plugin/sdk.js +79 -79
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +135 -135
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +351 -351
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +90 -90
- package/dist/plugin/vcs/hg.js +90 -90
- package/dist/plugin/verbosity.js +97 -97
- package/dist/plugin/warming.js +115 -115
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +228 -228
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +84 -84
- package/dist/provider.js +93 -93
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +102 -102
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +95 -95
- package/dist/repository-cache.js +85 -85
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +101 -101
- package/dist/rpc.js +90 -90
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +77 -77
- package/dist/session/compaction.js +136 -136
- package/dist/session/context.js +166 -166
- package/dist/session/diff.js +92 -92
- 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 +220 -220
- package/dist/session/execution.js +130 -130
- package/dist/session/generate.js +166 -166
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +96 -96
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +82 -82
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +101 -101
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +124 -124
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +134 -134
- package/dist/session/projector.js +92 -92
- package/dist/session/prompt.js +109 -109
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +98 -98
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +230 -230
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +104 -104
- package/dist/session/runner/publish-llm-event.js +117 -117
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +128 -128
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +166 -166
- package/dist/session/shell.js +131 -131
- package/dist/session/skill.js +107 -107
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +76 -76
- package/dist/session/store.js +88 -88
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +213 -213
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +164 -164
- package/dist/session/to-session-error.js +116 -116
- package/dist/session/transfer.js +215 -215
- package/dist/session/usage.js +1 -1
- package/dist/session.js +219 -219
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +15 -15
- package/dist/shell.js +133 -133
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +116 -116
- package/dist/snapshot.js +97 -97
- 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 +141 -141
- package/dist/tool/plugin/edit.js +124 -124
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +128 -128
- package/dist/tool/plugin/mcp-resource.js +128 -128
- package/dist/tool/plugin/opencode.js +113 -113
- package/dist/tool/plugin/patch.js +126 -126
- package/dist/tool/plugin/question.js +109 -109
- package/dist/tool/plugin/read.js +129 -129
- package/dist/tool/plugin/shell.js +216 -216
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +218 -218
- package/dist/tool/plugin/todo.js +139 -139
- package/dist/tool/plugin/webfetch.js +115 -115
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +126 -126
- package/dist/tool/read-filesystem.js +106 -106
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- package/dist/usage-limits.js +92 -92
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- 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 +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +96 -96
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +97 -97
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +93 -93
- package/dist/voice.js +91 -91
- package/dist/websearch.js +87 -87
- package/dist/wellknown/plugin.js +79 -79
- package/dist/wellknown.js +82 -82
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +83 -83
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -11
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +93 -93
- package/dist/worktree.js +104 -104
- package/package.json +8 -8
- package/dist/chunks/wellknown-1tzh2fwz.js +0 -26
- package/dist/chunks/wellknown-qmh7vbk2.js +0 -18
- /package/dist/chunks/{wellknown-0qkdqm5v.js → agent-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{wellknown-0zkw76rk.js → agent-0zkw76rk.js} +0 -0
- /package/dist/chunks/{wellknown-17cy0kzp.js → agent-17cy0kzp.js} +0 -0
- /package/dist/chunks/{wellknown-1cnp2v09.js → agent-1cnp2v09.js} +0 -0
- /package/dist/chunks/{wellknown-24dcb14g.js → agent-24dcb14g.js} +0 -0
- /package/dist/chunks/{wellknown-2710q6r3.js → agent-2710q6r3.js} +0 -0
- /package/dist/chunks/{wellknown-2bv980vf.js → agent-2bv980vf.js} +0 -0
- /package/dist/chunks/{wellknown-2c3vjs8z.js → agent-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{wellknown-359p4xyc.js → agent-359p4xyc.js} +0 -0
- /package/dist/chunks/{wellknown-3asan66x.js → agent-3asan66x.js} +0 -0
- /package/dist/chunks/{wellknown-3v8g72cx.js → agent-3v8g72cx.js} +0 -0
- /package/dist/chunks/{wellknown-3wcehsnq.js → agent-3wcehsnq.js} +0 -0
- /package/dist/chunks/{wellknown-43n2bw4t.js → agent-43n2bw4t.js} +0 -0
- /package/dist/chunks/{wellknown-4knz6hnm.js → agent-4knz6hnm.js} +0 -0
- /package/dist/chunks/{wellknown-4vcrnpx2.js → agent-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{wellknown-4y7fprxs.js → agent-4y7fprxs.js} +0 -0
- /package/dist/chunks/{wellknown-53557ph1.js → agent-53557ph1.js} +0 -0
- /package/dist/chunks/{wellknown-550bvhaj.js → agent-550bvhaj.js} +0 -0
- /package/dist/chunks/{wellknown-5fjb7ams.js → agent-5fjb7ams.js} +0 -0
- /package/dist/chunks/{wellknown-6prwharc.js → agent-6prwharc.js} +0 -0
- /package/dist/chunks/{wellknown-6q2bdcd1.js → agent-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{wellknown-7akdwqpd.js → agent-7akdwqpd.js} +0 -0
- /package/dist/chunks/{wellknown-7m9af43g.js → agent-7m9af43g.js} +0 -0
- /package/dist/chunks/{wellknown-822emrt2.js → agent-822emrt2.js} +0 -0
- /package/dist/chunks/{wellknown-84wd9syh.js → agent-84wd9syh.js} +0 -0
- /package/dist/chunks/{wellknown-88xbtdfr.js → agent-88xbtdfr.js} +0 -0
- /package/dist/chunks/{wellknown-8n3pysct.js → agent-8n3pysct.js} +0 -0
- /package/dist/chunks/{wellknown-8wj87zfr.js → agent-8wj87zfr.js} +0 -0
- /package/dist/chunks/{wellknown-9a4afbnw.js → agent-9a4afbnw.js} +0 -0
- /package/dist/chunks/{wellknown-9rqn6x4v.js → agent-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{wellknown-a058387c.js → agent-a058387c.js} +0 -0
- /package/dist/chunks/{wellknown-a6k6eb26.js → agent-a6k6eb26.js} +0 -0
- /package/dist/chunks/{wellknown-af5trqkr.js → agent-af5trqkr.js} +0 -0
- /package/dist/chunks/{wellknown-afrmfg78.js → agent-afrmfg78.js} +0 -0
- /package/dist/chunks/{wellknown-aqzs7mqg.js → agent-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{wellknown-atq7p7m5.js → agent-atq7p7m5.js} +0 -0
- /package/dist/chunks/{wellknown-bkyjaxrp.js → agent-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{wellknown-bmr6ed5q.js → agent-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{wellknown-cf4snx6d.js → agent-cf4snx6d.js} +0 -0
- /package/dist/chunks/{wellknown-cqv5kn06.js → agent-cqv5kn06.js} +0 -0
- /package/dist/chunks/{wellknown-cvy3z8tj.js → agent-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{wellknown-d9fn303g.js → agent-d9fn303g.js} +0 -0
- /package/dist/chunks/{wellknown-d9jj8t3e.js → agent-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{wellknown-dajrwvna.js → agent-dajrwvna.js} +0 -0
- /package/dist/chunks/{wellknown-dap0rakb.js → agent-dap0rakb.js} +0 -0
- /package/dist/chunks/{wellknown-dbztejgq.js → agent-dbztejgq.js} +0 -0
- /package/dist/chunks/{wellknown-df08tz66.js → agent-df08tz66.js} +0 -0
- /package/dist/chunks/{wellknown-dy18nga0.js → agent-dy18nga0.js} +0 -0
- /package/dist/chunks/{wellknown-e5kj55wp.js → agent-e5kj55wp.js} +0 -0
- /package/dist/chunks/{wellknown-e73j6tqm.js → agent-e73j6tqm.js} +0 -0
- /package/dist/chunks/{wellknown-ec1grn59.js → agent-ec1grn59.js} +0 -0
- /package/dist/chunks/{wellknown-eh3zwz77.js → agent-eh3zwz77.js} +0 -0
- /package/dist/chunks/{wellknown-emrn6kk6.js → agent-emrn6kk6.js} +0 -0
- /package/dist/chunks/{wellknown-f0mxakyp.js → agent-f0mxakyp.js} +0 -0
- /package/dist/chunks/{wellknown-f6n9ztr4.js → agent-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{wellknown-faypxj3z.js → agent-faypxj3z.js} +0 -0
- /package/dist/chunks/{wellknown-fd410y7t.js → agent-fd410y7t.js} +0 -0
- /package/dist/chunks/{wellknown-g4wezp1m.js → agent-g4wezp1m.js} +0 -0
- /package/dist/chunks/{wellknown-g86h250q.js → agent-g86h250q.js} +0 -0
- /package/dist/chunks/{wellknown-gebd4c9n.js → agent-gebd4c9n.js} +0 -0
- /package/dist/chunks/{wellknown-gftt206x.js → agent-gftt206x.js} +0 -0
- /package/dist/chunks/{wellknown-hcxmzztb.js → agent-hcxmzztb.js} +0 -0
- /package/dist/chunks/{wellknown-hk9envan.js → agent-hk9envan.js} +0 -0
- /package/dist/chunks/{wellknown-j2ntwpah.js → agent-j2ntwpah.js} +0 -0
- /package/dist/chunks/{wellknown-j5zkgpj8.js → agent-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{wellknown-jjkms2e6.js → agent-jjkms2e6.js} +0 -0
- /package/dist/chunks/{wellknown-jr7sbwjy.js → agent-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{wellknown-jwfs4k6c.js → agent-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{wellknown-jze0r7bz.js → agent-jze0r7bz.js} +0 -0
- /package/dist/chunks/{wellknown-jzg6c2d5.js → agent-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{wellknown-m18g726c.js → agent-m18g726c.js} +0 -0
- /package/dist/chunks/{wellknown-mp448xyj.js → agent-mp448xyj.js} +0 -0
- /package/dist/chunks/{wellknown-msx8hqn2.js → agent-msx8hqn2.js} +0 -0
- /package/dist/chunks/{wellknown-n05xt0ee.js → agent-n05xt0ee.js} +0 -0
- /package/dist/chunks/{wellknown-n3j8tn72.js → agent-n3j8tn72.js} +0 -0
- /package/dist/chunks/{wellknown-njntx4h6.js → agent-njntx4h6.js} +0 -0
- /package/dist/chunks/{wellknown-q3sfg36h.js → agent-q3sfg36h.js} +0 -0
- /package/dist/chunks/{wellknown-q74kybfr.js → agent-q74kybfr.js} +0 -0
- /package/dist/chunks/{wellknown-qaymkmh1.js → agent-qaymkmh1.js} +0 -0
- /package/dist/chunks/{wellknown-qb87gjwd.js → agent-qb87gjwd.js} +0 -0
- /package/dist/chunks/{wellknown-qfa1cgps.js → agent-qfa1cgps.js} +0 -0
- /package/dist/chunks/{wellknown-qg3g05ea.js → agent-qg3g05ea.js} +0 -0
- /package/dist/chunks/{wellknown-qrg20bc0.js → agent-qrg20bc0.js} +0 -0
- /package/dist/chunks/{wellknown-rcb2kzg1.js → agent-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{wellknown-sdp7kfr6.js → agent-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{wellknown-ssg3fenm.js → agent-ssg3fenm.js} +0 -0
- /package/dist/chunks/{wellknown-ve7vex1e.js → agent-ve7vex1e.js} +0 -0
- /package/dist/chunks/{wellknown-w803qqfp.js → agent-w803qqfp.js} +0 -0
- /package/dist/chunks/{wellknown-wc3fc9cn.js → agent-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{wellknown-wer8tq1h.js → agent-wer8tq1h.js} +0 -0
- /package/dist/chunks/{wellknown-wjj7prxr.js → agent-wjj7prxr.js} +0 -0
- /package/dist/chunks/{wellknown-wtztk69x.js → agent-wtztk69x.js} +0 -0
- /package/dist/chunks/{wellknown-x0ckcb58.js → agent-x0ckcb58.js} +0 -0
- /package/dist/chunks/{wellknown-x61499pn.js → agent-x61499pn.js} +0 -0
- /package/dist/chunks/{wellknown-y44na4kk.js → agent-y44na4kk.js} +0 -0
- /package/dist/chunks/{wellknown-y8f7s663.js → agent-y8f7s663.js} +0 -0
- /package/dist/chunks/{wellknown-ygaqb7jw.js → agent-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{wellknown-ym463w8f.js → agent-ym463w8f.js} +0 -0
- /package/dist/chunks/{wellknown-z5v4ffb3.js → agent-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{wellknown-z9919s4g.js → agent-z9919s4g.js} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./agent-dvswds2a.js";
|
|
4
4
|
import {
|
|
5
5
|
ID12,
|
|
6
6
|
Family2
|
|
7
|
-
} from "./
|
|
8
|
-
import {
|
|
9
|
-
Service68
|
|
10
|
-
} from "./wellknown-e6g5g1wq.js";
|
|
7
|
+
} from "./agent-n6k6tv08.js";
|
|
11
8
|
import {
|
|
12
9
|
Service66
|
|
13
|
-
} from "./
|
|
10
|
+
} from "./agent-v76m31v0.js";
|
|
11
|
+
import {
|
|
12
|
+
Service53
|
|
13
|
+
} from "./agent-zdm2n275.js";
|
|
14
14
|
import {
|
|
15
15
|
spawner2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./agent-w687dnns.js";
|
|
17
17
|
import {
|
|
18
18
|
foldSettings2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./agent-wqa97sqm.js";
|
|
20
20
|
|
|
21
21
|
// src/plugin/provider/local.ts
|
|
22
22
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -32,8 +32,8 @@ function createLocalProviderPlugin2(input) {
|
|
|
32
32
|
id: input.id,
|
|
33
33
|
effect: Effect.fn(function* (ctx) {
|
|
34
34
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
35
|
-
const config = yield*
|
|
36
|
-
const environment = yield* Effect.serviceOption(
|
|
35
|
+
const config = yield* Service66;
|
|
36
|
+
const environment = yield* Effect.serviceOption(Service53);
|
|
37
37
|
const location = yield* Effect.serviceOption(Service83);
|
|
38
38
|
const defaultOrigin = origin ?? (shellParserWasm.bash === "" || Option.isSome(location) && location.value.workspaceID !== undefined || Option.isSome(environment) && environment.value.spawner === spawner2 ? undefined : input.origin);
|
|
39
39
|
const source = { current: configured(yield* config.entries(), input.providerID, defaultOrigin, suffix) };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
call2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./agent-40za9wsf.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./agent-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/exa.ts
|
|
9
9
|
var exports_exa = {};
|
|
10
10
|
__export(exports_exa, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin8,
|
|
12
12
|
WebSearchExa: () => exports_exa,
|
|
13
|
-
endpoint: () =>
|
|
13
|
+
endpoint: () => endpoint5
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
16
16
|
import { Effect, Schema } from "effect";
|
|
17
17
|
import { HttpClient } from "effect/http";
|
|
18
|
-
var
|
|
18
|
+
var endpoint5 = "https://mcp.exa.ai/mcp";
|
|
19
19
|
var McpInput = Schema.Struct({
|
|
20
20
|
query: Schema.String,
|
|
21
21
|
numResults: Schema.Number.pipe(Schema.optional)
|
|
@@ -27,7 +27,7 @@ var McpOutput = Schema.Struct({
|
|
|
27
27
|
_meta: Schema.Struct({ searchTime: Schema.Number }).pipe(Schema.optional)
|
|
28
28
|
}))
|
|
29
29
|
});
|
|
30
|
-
var
|
|
30
|
+
var Plugin8 = define({
|
|
31
31
|
id: "opencode.websearch.exa",
|
|
32
32
|
effect: Effect.fn("WebSearchExa.Plugin")(function* (ctx) {
|
|
33
33
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -49,7 +49,7 @@ var Plugin37 = define({
|
|
|
49
49
|
execute: (input) => Effect.gen(function* () {
|
|
50
50
|
const connection = yield* ctx.integration.connection.active("exa");
|
|
51
51
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
52
|
-
const url = new URL(
|
|
52
|
+
const url = new URL(endpoint5);
|
|
53
53
|
if (credential?.type === "key")
|
|
54
54
|
url.searchParams.set("exaApiKey", credential.key);
|
|
55
55
|
const result = yield* call2(http, url.toString(), "web_search_exa", { input: McpInput, output: McpOutput }, { query: input.query, numResults: 8 });
|
|
@@ -80,4 +80,4 @@ function parseResults(text) {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
export {
|
|
83
|
+
export { endpoint5, Plugin8, exports_exa };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./agent-9rqn6x4v.js";
|
|
4
|
+
|
|
5
|
+
// src/plugin/service.ts
|
|
6
|
+
var exports_service = {};
|
|
7
|
+
__export(exports_service, {
|
|
8
|
+
Plugin: () => exports_service,
|
|
9
|
+
Service: () => Service24,
|
|
10
|
+
awaitActivation: () => awaitActivation2
|
|
11
|
+
});
|
|
12
|
+
import { Context } from "effect";
|
|
13
|
+
|
|
14
|
+
class Service24 extends Context.Service()("@opencode/Plugin") {
|
|
15
|
+
}
|
|
16
|
+
var awaitActivation2 = Service24.use((plugins) => plugins.awaitActivation);
|
|
17
|
+
|
|
18
|
+
export { Service24, awaitActivation2, exports_service };
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./agent-qjgzc4b4.js";
|
|
4
4
|
import {
|
|
5
5
|
Service86,
|
|
6
6
|
node90
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./agent-qk0m1vv0.js";
|
|
8
8
|
import {
|
|
9
9
|
Event19,
|
|
10
10
|
Service82,
|
|
11
11
|
node86
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./agent-476ebpw1.js";
|
|
13
13
|
import {
|
|
14
14
|
Service83,
|
|
15
15
|
node87
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./agent-dvswds2a.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service53,
|
|
19
|
+
node56
|
|
20
|
+
} from "./agent-zdm2n275.js";
|
|
21
21
|
import {
|
|
22
22
|
ID15,
|
|
23
23
|
Service81,
|
|
24
24
|
node85
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./agent-m0w0zyj2.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./agent-vd3b3yk9.js";
|
|
30
30
|
import {
|
|
31
31
|
ID14,
|
|
32
32
|
MethodID2,
|
|
33
33
|
Service80,
|
|
34
34
|
node84
|
|
35
|
-
} from "./
|
|
35
|
+
} from "./agent-6dnbbrkg.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./agent-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: () => NotFoundError4,
|
|
45
|
+
Options: () => Options3,
|
|
46
46
|
PromptsChanged: () => PromptsChanged2,
|
|
47
47
|
Resource: () => Resource2,
|
|
48
48
|
ResourceCatalog: () => ResourceCatalog2,
|
|
49
49
|
ResourceContent: () => ResourceContent2,
|
|
50
50
|
ResourceTemplate: () => ResourceTemplate2,
|
|
51
51
|
ServerName: () => ServerName2,
|
|
52
|
-
Service: () =>
|
|
52
|
+
Service: () => Service32,
|
|
53
53
|
Status: () => Status2,
|
|
54
54
|
ToolCallError: () => ToolCallError2,
|
|
55
|
-
configured: () =>
|
|
56
|
-
layer: () =>
|
|
57
|
-
node: () =>
|
|
55
|
+
configured: () => configured3,
|
|
56
|
+
layer: () => layer15,
|
|
57
|
+
node: () => node35
|
|
58
58
|
});
|
|
59
59
|
import { Mcp } from "@opencode/schema/mcp";
|
|
60
60
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -72,7 +72,7 @@ var ResourceTemplate2 = Mcp.ResourceTemplate;
|
|
|
72
72
|
var ResourceCatalog2 = Mcp.ResourceCatalog;
|
|
73
73
|
var ResourceContent2 = Mcp.ResourceContent;
|
|
74
74
|
|
|
75
|
-
class
|
|
75
|
+
class NotFoundError4 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
76
76
|
server: ServerName2
|
|
77
77
|
}) {
|
|
78
78
|
get message() {
|
|
@@ -104,17 +104,17 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
|
104
104
|
var endpointLoads = makeUnsafe2();
|
|
105
105
|
var cloneConfig = (config) => structuredClone(config);
|
|
106
106
|
|
|
107
|
-
class
|
|
107
|
+
class Service32 extends Context.Service()("@opencode/MCP") {
|
|
108
108
|
}
|
|
109
|
-
var
|
|
109
|
+
var Options3 = Schema.Struct({
|
|
110
110
|
clientInfo: Schema.optional(Schema.Struct({
|
|
111
111
|
name: Schema.String,
|
|
112
112
|
version: Schema.String
|
|
113
113
|
}))
|
|
114
114
|
});
|
|
115
|
-
var
|
|
115
|
+
var layer15 = (options) => Layer.effect(Service32, Effect.gen(function* () {
|
|
116
116
|
const location = yield* Service83;
|
|
117
|
-
const environment = yield*
|
|
117
|
+
const environment = yield* Service53;
|
|
118
118
|
const bus = yield* Service86;
|
|
119
119
|
const forms = yield* Service81;
|
|
120
120
|
const integration = yield* Service80;
|
|
@@ -157,7 +157,7 @@ var layer18 = (options) => Layer.effect(Service38, Effect.gen(function* () {
|
|
|
157
157
|
const requireServer = Effect.fnUntraced(function* (name) {
|
|
158
158
|
const entry = entries.get(name);
|
|
159
159
|
if (!entry)
|
|
160
|
-
return yield* new
|
|
160
|
+
return yield* new NotFoundError4({ server: name });
|
|
161
161
|
return { name, entry };
|
|
162
162
|
});
|
|
163
163
|
const connectProvider = Effect.fnUntraced(function* (entry) {
|
|
@@ -272,7 +272,7 @@ var layer18 = (options) => Layer.effect(Service38, Effect.gen(function* () {
|
|
|
272
272
|
entry.scope = scope;
|
|
273
273
|
const authProvider = yield* connectProvider(entry);
|
|
274
274
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
275
|
-
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(
|
|
275
|
+
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(Service53, environment), Scope.provide(scope));
|
|
276
276
|
const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
|
|
277
277
|
if (Exit.isSuccess(result)) {
|
|
278
278
|
entry.client = result.value.connection;
|
|
@@ -373,7 +373,7 @@ var layer18 = (options) => Layer.effect(Service38, Effect.gen(function* () {
|
|
|
373
373
|
let closed = false;
|
|
374
374
|
const result = yield* McpClient.connect(name, { type: "attached", transport }, location.directory, undefined, elicitation, options?.clientInfo).pipe(Effect.tap((connection) => Effect.sync(() => connection.onClose(() => {
|
|
375
375
|
closed = true;
|
|
376
|
-
}))), Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
376
|
+
}))), Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service53, environment), Scope.provide(scope), Effect.onError(() => Scope.close(scope, Exit.void)), Effect.mapError((error) => error instanceof McpClient.ConnectError ? error : new McpClient.ConnectError({ server: name, message: error.message })));
|
|
377
377
|
const register = Effect.gen(function* () {
|
|
378
378
|
if (closed) {
|
|
379
379
|
yield* Scope.close(scope, Exit.void);
|
|
@@ -478,7 +478,7 @@ var layer18 = (options) => Layer.effect(Service38, Effect.gen(function* () {
|
|
|
478
478
|
}),
|
|
479
479
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
480
480
|
});
|
|
481
|
-
return
|
|
481
|
+
return Service32.of({
|
|
482
482
|
transform: state.transform,
|
|
483
483
|
reload: state.reload,
|
|
484
484
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -606,14 +606,14 @@ function mergeCatalogs(catalogs) {
|
|
|
606
606
|
templates: catalogs.flatMap((catalog) => catalog.templates).toSorted((a, b) => a.server.localeCompare(b.server) || a.name.localeCompare(b.name) || a.uriTemplate.localeCompare(b.uriTemplate))
|
|
607
607
|
});
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function configured3(options) {
|
|
610
610
|
return makeLocationNode({
|
|
611
|
-
service:
|
|
612
|
-
layer:
|
|
613
|
-
deps: [node87,
|
|
611
|
+
service: Service32,
|
|
612
|
+
layer: layer15(options),
|
|
613
|
+
deps: [node87, node56, node90, node85, node84, node86]
|
|
614
614
|
});
|
|
615
615
|
}
|
|
616
|
-
var
|
|
616
|
+
var node35 = configured3();
|
|
617
617
|
function toElicitationField(key, property, required) {
|
|
618
618
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
619
619
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -664,4 +664,4 @@ function toElicitationField(key, property, required) {
|
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
666
|
|
|
667
|
-
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2,
|
|
667
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError4, ToolCallError2, Service32, Options3, layer15, configured3, node35, exports_mcp4 };
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./agent-qk0m1vv0.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service32,
|
|
7
|
+
node35
|
|
8
|
+
} from "./agent-k9hbvn9k.js";
|
|
9
9
|
import {
|
|
10
10
|
isTextual2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./agent-2z1j29yd.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
13
|
+
Service73,
|
|
14
|
+
node77
|
|
15
|
+
} from "./agent-7q4ggvk7.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
17
|
+
Service43,
|
|
18
|
+
node46
|
|
19
|
+
} from "./agent-njmawajr.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
21
|
+
Service52,
|
|
22
|
+
node55
|
|
23
|
+
} from "./agent-6mejnpem.js";
|
|
24
24
|
import {
|
|
25
25
|
MEDIA_MIMES2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./agent-ges56kck.js";
|
|
27
27
|
import {
|
|
28
28
|
__export
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./agent-9rqn6x4v.js";
|
|
30
30
|
|
|
31
31
|
// src/tool/mcp.ts
|
|
32
32
|
var exports_mcp3 = {};
|
|
33
33
|
__export(exports_mcp3, {
|
|
34
34
|
McpTool: () => exports_mcp3,
|
|
35
|
-
Service: () =>
|
|
36
|
-
layer: () =>
|
|
37
|
-
name: () =>
|
|
35
|
+
Service: () => Service31,
|
|
36
|
+
layer: () => layer14,
|
|
37
|
+
name: () => name15,
|
|
38
38
|
namespace: () => namespace2,
|
|
39
|
-
node: () =>
|
|
39
|
+
node: () => node34
|
|
40
40
|
});
|
|
41
41
|
import { ToolFailure } from "@opencode/ai";
|
|
42
42
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -45,16 +45,16 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
45
45
|
import { extension } from "mime-types";
|
|
46
46
|
var decodeJson = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Unknown));
|
|
47
47
|
var namespace2 = (server) => server.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
48
|
-
var
|
|
48
|
+
var name15 = (server, tool) => `${namespace2(server)}_${tool.replace(/[^a-zA-Z0-9_-]/g, "_")}`;
|
|
49
49
|
|
|
50
|
-
class
|
|
50
|
+
class Service31 extends Context.Service()("@opencode/McpTool") {
|
|
51
51
|
}
|
|
52
|
-
var
|
|
53
|
-
const mcp = yield*
|
|
54
|
-
const tools = yield*
|
|
52
|
+
var layer14 = Layer.effect(Service31, Effect.gen(function* () {
|
|
53
|
+
const mcp = yield* Service32;
|
|
54
|
+
const tools = yield* Service43;
|
|
55
55
|
const bus = yield* Service86;
|
|
56
|
-
const permission = yield*
|
|
57
|
-
const toolOutput = yield*
|
|
56
|
+
const permission = yield* Service73;
|
|
57
|
+
const toolOutput = yield* Service52;
|
|
58
58
|
const lock = Semaphore.makeUnsafe(1);
|
|
59
59
|
let discovered = [];
|
|
60
60
|
const initial = yield* lock.withPermit(Effect.gen(function* () {
|
|
@@ -69,7 +69,7 @@ var layer17 = Layer.effect(Service33, Effect.gen(function* () {
|
|
|
69
69
|
output: tool.outputSchema ?? {},
|
|
70
70
|
execute: (input, context) => Effect.gen(function* () {
|
|
71
71
|
yield* permission.assert({
|
|
72
|
-
action:
|
|
72
|
+
action: name15(tool.server, tool.name),
|
|
73
73
|
resources: ["*"],
|
|
74
74
|
save: ["*"],
|
|
75
75
|
metadata: { input: input ?? {} },
|
|
@@ -111,7 +111,7 @@ var layer17 = Layer.effect(Service33, Effect.gen(function* () {
|
|
|
111
111
|
output: output(),
|
|
112
112
|
...content.length === 0 ? {} : { content }
|
|
113
113
|
};
|
|
114
|
-
}).pipe(Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to execute ${
|
|
114
|
+
}).pipe(Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to execute ${name15(tool.server, tool.name)}` })))
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
});
|
|
@@ -124,7 +124,7 @@ var layer17 = Layer.effect(Service33, Effect.gen(function* () {
|
|
|
124
124
|
yield* bus.subscribe(McpEvent.ToolsChanged).pipe(Stream.runForEach(() => PubSub.publish(changes, undefined)), Effect.forkScoped({ startImmediately: true }));
|
|
125
125
|
const updates = yield* PubSub.subscribe(changes);
|
|
126
126
|
yield* Stream.fromSubscription(updates).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reconcile), Effect.forkScoped({ startImmediately: true }));
|
|
127
|
-
return
|
|
127
|
+
return Service31.of({ flush: Effect.asVoid(Fiber.await(initial)) });
|
|
128
128
|
}));
|
|
129
129
|
var toContent = Effect.fnUntraced(function* (part, toolOutput) {
|
|
130
130
|
if (part.type === "text")
|
|
@@ -144,10 +144,10 @@ ${bytes.toString("utf8")}` };
|
|
|
144
144
|
text: `[Binary resource ${label} (${part.mimeType}, ${bytes.byteLength} bytes) saved to ${file}]`
|
|
145
145
|
};
|
|
146
146
|
});
|
|
147
|
-
var
|
|
148
|
-
service:
|
|
149
|
-
layer:
|
|
150
|
-
deps: [
|
|
147
|
+
var node34 = makeLocationNode({
|
|
148
|
+
service: Service31,
|
|
149
|
+
layer: layer14,
|
|
150
|
+
deps: [node46, node35, node90, node77, node55]
|
|
151
151
|
});
|
|
152
152
|
|
|
153
|
-
export { namespace2,
|
|
153
|
+
export { namespace2, name15, Service31, layer14, node34, exports_mcp3 };
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isTextual2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./agent-2z1j29yd.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service73
|
|
6
|
+
} from "./agent-7q4ggvk7.js";
|
|
7
7
|
import {
|
|
8
8
|
MAX_MARKDOWN_BYTES2,
|
|
9
9
|
convertHTMLToMarkdown2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./agent-4vcrnpx2.js";
|
|
11
11
|
import {
|
|
12
12
|
collectBoundedResponseBody2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./agent-3v8g72cx.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./agent-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/tool/plugin/webfetch.ts
|
|
19
19
|
var exports_webfetch = {};
|
|
20
20
|
__export(exports_webfetch, {
|
|
21
21
|
DEFAULT_TIMEOUT_SECONDS: () => DEFAULT_TIMEOUT_SECONDS2,
|
|
22
|
-
Input: () =>
|
|
23
|
-
MAX_RESPONSE_BYTES: () =>
|
|
22
|
+
Input: () => Input8,
|
|
23
|
+
MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES3,
|
|
24
24
|
MAX_TIMEOUT_SECONDS: () => MAX_TIMEOUT_SECONDS2,
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin44,
|
|
26
26
|
WebFetchTool: () => exports_webfetch,
|
|
27
27
|
convertHTMLToMarkdown: () => convertHTMLToMarkdown2,
|
|
28
28
|
description: () => description4,
|
|
29
29
|
extractTextFromHTML: () => extractTextFromHTML2,
|
|
30
|
-
name: () =>
|
|
30
|
+
name: () => name8
|
|
31
31
|
});
|
|
32
32
|
import { ToolFailure } from "@opencode/ai";
|
|
33
33
|
import { Duration, Effect, Schema } from "effect";
|
|
34
34
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
35
35
|
import { Parser } from "htmlparser2";
|
|
36
|
-
var
|
|
37
|
-
var
|
|
36
|
+
var name8 = "webfetch";
|
|
37
|
+
var MAX_RESPONSE_BYTES3 = MAX_MARKDOWN_BYTES2;
|
|
38
38
|
var DEFAULT_TIMEOUT_SECONDS2 = 30;
|
|
39
39
|
var MAX_TIMEOUT_SECONDS2 = 120;
|
|
40
40
|
var description4 = `Fetch content from an HTTP or HTTPS URL and return it as text, markdown, or HTML. Markdown is the default.
|
|
41
41
|
|
|
42
42
|
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.`;
|
|
43
43
|
var Timeout = Schema.Finite.check(Schema.isGreaterThan(0), Schema.isLessThanOrEqualTo(MAX_TIMEOUT_SECONDS2));
|
|
44
|
-
var
|
|
44
|
+
var Input8 = Schema.Struct({
|
|
45
45
|
url: Schema.String.annotate({ description: "The HTTP or HTTPS URL to fetch content from" }),
|
|
46
46
|
format: Schema.Literals(["text", "markdown", "html"]).annotate({ description: "The format to return the content in. Defaults to markdown." }).pipe(Schema.withDecodingDefaultKey(Effect.succeed("markdown"))),
|
|
47
47
|
timeout: Schema.optionalKey(Timeout).annotate({
|
|
@@ -51,7 +51,7 @@ var Input7 = Schema.Struct({
|
|
|
51
51
|
var Output = Schema.Struct({
|
|
52
52
|
url: Schema.String,
|
|
53
53
|
contentType: Schema.String,
|
|
54
|
-
format:
|
|
54
|
+
format: Input8.fields.format,
|
|
55
55
|
output: Schema.String
|
|
56
56
|
});
|
|
57
57
|
var acceptHeader = (format) => {
|
|
@@ -82,7 +82,7 @@ var assertHttpUrl = (url) => {
|
|
|
82
82
|
throw new Error("URL must use http:// or https://");
|
|
83
83
|
};
|
|
84
84
|
var execute = (http, url, format, userAgent = openCodeUserAgent) => http.execute(request(url, format, userAgent)).pipe(Effect.flatMap(HttpClientResponse.filterStatusOk));
|
|
85
|
-
var collectBody = (response) => collectBoundedResponseBody2(response,
|
|
85
|
+
var collectBody = (response) => collectBoundedResponseBody2(response, MAX_RESPONSE_BYTES3, () => new Error(`Response too large (exceeds ${MAX_RESPONSE_BYTES3} byte limit)`));
|
|
86
86
|
var mimeFrom = (contentType) => contentType.split(";", 1)[0]?.trim().toLowerCase() ?? "";
|
|
87
87
|
var isImageAttachment = (mime) => mime.startsWith("image/") && mime !== "image/svg+xml" && mime !== "image/vnd.fastbidsheet";
|
|
88
88
|
var convert = (content, contentType, format) => {
|
|
@@ -94,16 +94,16 @@ var convert = (content, contentType, format) => {
|
|
|
94
94
|
return extractTextFromHTML2(content);
|
|
95
95
|
return content;
|
|
96
96
|
};
|
|
97
|
-
var
|
|
97
|
+
var Plugin44 = {
|
|
98
98
|
id: "opencode.tool.webfetch",
|
|
99
99
|
effect: Effect.fn("WebFetchTool.Plugin")(function* (ctx) {
|
|
100
100
|
const http = yield* HttpClient.HttpClient;
|
|
101
|
-
const permission = yield*
|
|
101
|
+
const permission = yield* Service73;
|
|
102
102
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
103
|
-
name:
|
|
103
|
+
name: name8,
|
|
104
104
|
options: { codemode: false },
|
|
105
105
|
description: description4,
|
|
106
|
-
input:
|
|
106
|
+
input: Input8,
|
|
107
107
|
output: Output,
|
|
108
108
|
execute: (input, context) => Effect.gen(function* () {
|
|
109
109
|
yield* Effect.try({
|
|
@@ -111,7 +111,7 @@ var Plugin25 = {
|
|
|
111
111
|
catch: (error) => error
|
|
112
112
|
});
|
|
113
113
|
yield* permission.assert({
|
|
114
|
-
action:
|
|
114
|
+
action: name8,
|
|
115
115
|
resources: [input.url],
|
|
116
116
|
save: ["*"],
|
|
117
117
|
metadata: input,
|
|
@@ -169,4 +169,4 @@ function extractTextFromHTML2(html) {
|
|
|
169
169
|
parser.end();
|
|
170
170
|
return text.trim();
|
|
171
171
|
}
|
|
172
|
-
export {
|
|
172
|
+
export { name8, MAX_RESPONSE_BYTES3, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description4, Input8, Plugin44, extractTextFromHTML2, exports_webfetch };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlockedError2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./agent-7q4ggvk7.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./agent-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/plan.ts
|
|
9
9
|
var exports_plan = {};
|
|
10
10
|
__export(exports_plan, {
|
|
11
11
|
PlanPlugin: () => exports_plan,
|
|
12
|
-
Plugin: () =>
|
|
12
|
+
Plugin: () => Plugin15
|
|
13
13
|
});
|
|
14
14
|
import { Message, ToolFailure } from "@opencode/ai";
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -29,7 +29,7 @@ You remain in Plan mode until the user switches agents. If the user asks you to
|
|
|
29
29
|
var leave = `<system-reminder>
|
|
30
30
|
You are NO LONGER in Plan mode. The previous Plan restrictions no longer apply. Any Plan mode instructions from earlier in this conversation are no longer active.
|
|
31
31
|
</system-reminder>`;
|
|
32
|
-
var
|
|
32
|
+
var Plugin15 = define({
|
|
33
33
|
id: "opencode.plan",
|
|
34
34
|
effect: Effect.fn(function* (ctx) {
|
|
35
35
|
const global = yield* Global.Service;
|
|
@@ -105,4 +105,4 @@ function lastReminder(messages, enterReminder) {
|
|
|
105
105
|
}, undefined);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
export {
|
|
108
|
+
export { Plugin15, exports_plan };
|
|
@@ -2,37 +2,37 @@ import {
|
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service86,
|
|
4
4
|
node90
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./agent-qk0m1vv0.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./agent-9rqn6x4v.js";
|
|
9
9
|
|
|
10
10
|
// src/plugin/sdk.ts
|
|
11
11
|
var exports_sdk = {};
|
|
12
12
|
__export(exports_sdk, {
|
|
13
13
|
SdkPlugins: () => exports_sdk,
|
|
14
|
-
Service: () =>
|
|
14
|
+
Service: () => Service4,
|
|
15
15
|
Updated: () => Updated2,
|
|
16
|
-
layer: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
layer: () => layer5,
|
|
17
|
+
node: () => node6
|
|
18
18
|
});
|
|
19
19
|
import { Context, Effect, Layer } from "effect";
|
|
20
20
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
21
21
|
var Updated2 = ephemeral2({ type: "sdk.plugin.updated", schema: {} });
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class Service4 extends Context.Service()("@opencode/SdkPlugins") {
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var layer5 = Layer.effect(Service4, Effect.gen(function* () {
|
|
26
26
|
const bus = yield* Service86;
|
|
27
27
|
const plugins = new Map;
|
|
28
28
|
let revision = 0;
|
|
29
|
-
return
|
|
29
|
+
return Service4.of({
|
|
30
30
|
register: (plugin) => Effect.sync(() => {
|
|
31
31
|
plugins.set(plugin.id, { ...plugin, revision: String(++revision), source: { type: "sdk" } });
|
|
32
32
|
}).pipe(Effect.andThen(bus.publish(Updated2, {}, { global: true })), Effect.asVoid),
|
|
33
33
|
all: () => [...plugins.values()]
|
|
34
34
|
});
|
|
35
35
|
}));
|
|
36
|
-
var
|
|
36
|
+
var node6 = makeGlobalNode({ service: Service4, layer: layer5, deps: [node90] });
|
|
37
37
|
|
|
38
|
-
export { Updated2,
|
|
38
|
+
export { Updated2, Service4, layer5, node6, exports_sdk };
|