@opencode/core 0.0.0-dev-21920 → 0.0.0-dev-44
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 +87 -87
- package/dist/aisdk-native.js +97 -97
- package/dist/aisdk.js +103 -103
- package/dist/app.js +9 -9
- package/dist/bus.js +79 -79
- package/dist/chunks/{wellknown-034tev2y.js → workspace-034tev2y.js} +2 -2
- package/dist/chunks/{wellknown-2320mcv1.js → workspace-03cg90a5.js} +34 -32
- package/dist/chunks/{wellknown-zyz0cj63.js → workspace-05hcn35g.js} +53 -46
- package/dist/chunks/{wellknown-wdvzjwq2.js → workspace-0b2278mc.js} +62 -62
- package/dist/chunks/{wellknown-9y8xp722.js → workspace-0cxeed95.js} +6 -6
- package/dist/chunks/{wellknown-bqct9qsz.js → workspace-0wtxmv38.js} +18 -14
- package/dist/chunks/{wellknown-ntpfk5qx.js → workspace-0x9e628c.js} +36 -36
- package/dist/chunks/{wellknown-npjtk884.js → workspace-0yt736da.js} +22 -22
- package/dist/chunks/{wellknown-5j9hygp5.js → workspace-115742jf.js} +31 -31
- package/dist/chunks/{wellknown-x8nvjgx0.js → workspace-11hfp36g.js} +4 -4
- package/dist/chunks/{wellknown-8hhyjxtn.js → workspace-1b28s763.js} +15 -15
- package/dist/chunks/{wellknown-4skqtp9p.js → workspace-1bb8zgeb.js} +8 -8
- package/dist/chunks/{wellknown-tyy5np2s.js → workspace-1bssk9xk.js} +5 -5
- package/dist/chunks/{wellknown-cxxq6shy.js → workspace-1e9r6beh.js} +15 -15
- package/dist/chunks/{wellknown-1ep2p91f.js → workspace-1ep2p91f.js} +2 -2
- package/dist/chunks/{wellknown-wdmx20pv.js → workspace-1j0p5zqx.js} +5 -5
- package/dist/chunks/{wellknown-5fjb7ams.js → workspace-1jakw16s.js} +2 -2
- package/dist/chunks/{wellknown-gtn9c16a.js → workspace-1kn6jdkn.js} +4 -4
- package/dist/chunks/{wellknown-yn1q185v.js → workspace-1rdpnva5.js} +21 -21
- package/dist/chunks/{wellknown-1x2knyw4.js → workspace-1x2knyw4.js} +1 -1
- package/dist/chunks/{wellknown-h2hkggp3.js → workspace-1yms9fvm.js} +25 -25
- package/dist/chunks/{wellknown-204s3925.js → workspace-204s3925.js} +1 -1
- package/dist/chunks/{wellknown-ke5gy3tk.js → workspace-21g12dr6.js} +43 -43
- package/dist/chunks/{wellknown-dhfzyyxh.js → workspace-25wbv3kn.js} +11 -11
- package/dist/chunks/{wellknown-vr1p6ca4.js → workspace-26asr065.js} +11 -11
- package/dist/chunks/{wellknown-3ech5htw.js → workspace-2q3pw4f4.js} +5 -5
- package/dist/chunks/{wellknown-0w2jttgf.js → workspace-2w13yf8v.js} +2 -2
- package/dist/chunks/{wellknown-zrz12vnv.js → workspace-2z0bbf9q.js} +11 -11
- package/dist/chunks/{wellknown-qqhrz1wm.js → workspace-31h7jx7a.js} +48 -37
- package/dist/chunks/{wellknown-yxnn9e9b.js → workspace-32s63gzk.js} +21 -23
- package/dist/chunks/{wellknown-s6t1b4j6.js → workspace-3a7vrk06.js} +11 -11
- package/dist/chunks/{wellknown-5gdxwc09.js → workspace-3d1z145j.js} +24 -24
- package/dist/chunks/{wellknown-cyrrj3vn.js → workspace-3h9vfbt2.js} +16 -16
- package/dist/chunks/{wellknown-3hepkmqq.js → workspace-3hepkmqq.js} +1 -1
- package/dist/chunks/{wellknown-0tpkjg9c.js → workspace-3j1m3tq4.js} +11 -5
- package/dist/chunks/{wellknown-3nnrz6f6.js → workspace-3nnrz6f6.js} +1 -1
- package/dist/chunks/{wellknown-gc2j9cqs.js → workspace-3tkbzst4.js} +8 -8
- package/dist/chunks/{wellknown-wgxkdtrn.js → workspace-3vf9nnam.js} +9 -9
- package/dist/chunks/{wellknown-h8v7ynv1.js → workspace-3xtarm87.js} +8 -8
- package/dist/chunks/{wellknown-whnxx8mv.js → workspace-41gw1q61.js} +19 -19
- package/dist/chunks/{wellknown-w7n30nfw.js → workspace-4f77jkmz.js} +22 -22
- package/dist/chunks/{wellknown-bf3y8h5f.js → workspace-4n4j58bv.js} +219 -200
- package/dist/chunks/{wellknown-4pyp9zr9.js → workspace-4pyp9zr9.js} +1 -1
- package/dist/chunks/{wellknown-dj3vwt7t.js → workspace-4r0ztz0m.js} +7 -7
- package/dist/chunks/{wellknown-4v008n1t.js → workspace-4v008n1t.js} +1 -1
- package/dist/chunks/{wellknown-ttz88pvr.js → workspace-4watfg9m.js} +11 -11
- package/dist/chunks/{wellknown-apsy5ahh.js → workspace-51em56x4.js} +13 -10
- package/dist/chunks/{wellknown-40za9wsf.js → workspace-5enarcya.js} +6 -6
- package/dist/chunks/{wellknown-j2renyjr.js → workspace-5m8pjz4h.js} +30 -30
- package/dist/chunks/{wellknown-5m9w47nd.js → workspace-5m9w47nd.js} +1 -1
- package/dist/chunks/{wellknown-y952b79c.js → workspace-5sxvsbaz.js} +17 -17
- package/dist/chunks/{wellknown-nf3nsvxh.js → workspace-5x26af84.js} +4 -4
- package/dist/chunks/{wellknown-18tp64nm.js → workspace-608ahxn3.js} +4 -4
- package/dist/chunks/{wellknown-sh36jtyp.js → workspace-6739jmjn.js} +5 -5
- package/dist/chunks/{wellknown-qse3wkg3.js → workspace-6c09pra0.js} +23 -23
- package/dist/chunks/{wellknown-6esdw8yj.js → workspace-6esdw8yj.js} +1 -1
- package/dist/chunks/{wellknown-05ps92hd.js → workspace-6f9jk43g.js} +27 -27
- package/dist/chunks/{wellknown-pevtk2h0.js → workspace-6kasyq0d.js} +6 -4
- package/dist/chunks/{wellknown-7g90vjnc.js → workspace-6n180eb9.js} +35 -35
- package/dist/chunks/{wellknown-s2tx6bjs.js → workspace-6sqa993f.js} +9 -9
- package/dist/chunks/{wellknown-8p5baybq.js → workspace-6xqtcmxs.js} +5 -5
- package/dist/chunks/{wellknown-hrtx3eh0.js → workspace-70s3x0a6.js} +31 -32
- package/dist/chunks/{wellknown-vxr65stp.js → workspace-71gcaexf.js} +27 -27
- package/dist/chunks/{wellknown-rww2kjr8.js → workspace-755bmxs3.js} +10 -10
- package/dist/chunks/{wellknown-7bmhse3q.js → workspace-7bmhse3q.js} +1 -1
- package/dist/chunks/{wellknown-c1pf56e9.js → workspace-7jhsbrss.js} +14 -14
- package/dist/chunks/{wellknown-1hvsjts9.js → workspace-7pa3t2xk.js} +11 -11
- package/dist/chunks/{wellknown-fhym6smd.js → workspace-7qdazcae.js} +11 -11
- package/dist/chunks/{wellknown-7w2ypzdf.js → workspace-7w2ypzdf.js} +1 -1
- package/dist/chunks/{wellknown-2r4zmzmb.js → workspace-830eskpr.js} +30 -30
- package/dist/chunks/{wellknown-8tvz9phv.js → workspace-8hsrsqw0.js} +30 -30
- package/dist/chunks/{wellknown-ky596kc3.js → workspace-8r9nj4s8.js} +4 -4
- package/dist/chunks/{wellknown-8wtp7s3z.js → workspace-8wtp7s3z.js} +1 -1
- package/dist/chunks/workspace-8yc2jv87.js +257 -0
- package/dist/chunks/{wellknown-y8fjqfz6.js → workspace-90a4dvkd.js} +18 -18
- package/dist/chunks/{wellknown-maspj1v3.js → workspace-90zstvax.js} +44 -8
- package/dist/chunks/workspace-99yevx5r.js +513 -0
- package/dist/chunks/{wellknown-9cx9sm2q.js → workspace-9cx9sm2q.js} +1 -1
- package/dist/chunks/{wellknown-42e9prds.js → workspace-9era1v6z.js} +51 -51
- package/dist/chunks/{wellknown-pw0pep3j.js → workspace-9gadynp5.js} +23 -23
- package/dist/chunks/{wellknown-d04j6t4g.js → workspace-9ha38bm5.js} +4 -4
- package/dist/chunks/{wellknown-1er5yem5.js → workspace-9phxzr4p.js} +25 -25
- package/dist/chunks/{wellknown-hk78j51y.js → workspace-9r7wjzbr.js} +46 -46
- package/dist/chunks/{wellknown-0anyt1n6.js → workspace-9z9tayqc.js} +5 -5
- package/dist/chunks/{wellknown-q3zk63qm.js → workspace-a6h2hm85.js} +54 -54
- package/dist/chunks/{wellknown-kmzgegqq.js → workspace-aedwt843.js} +8 -8
- package/dist/chunks/{wellknown-gspvz5np.js → workspace-afyka953.js} +9 -9
- package/dist/chunks/{wellknown-v4wa8mpc.js → workspace-akmjs5z5.js} +44 -44
- package/dist/chunks/{wellknown-vjmaafeq.js → workspace-amkjttct.js} +7 -7
- package/dist/chunks/{wellknown-vavkps5a.js → workspace-amxp7tb6.js} +22 -20
- package/dist/chunks/{wellknown-de619e1b.js → workspace-awztprj3.js} +5 -3
- package/dist/chunks/{wellknown-ayjs7tqn.js → workspace-ayjs7tqn.js} +2 -2
- package/dist/chunks/{wellknown-qnr57htg.js → workspace-b19sr9k5.js} +29 -29
- package/dist/chunks/workspace-b1bdn9ww.js +18 -0
- package/dist/chunks/{wellknown-h362shv8.js → workspace-b50bzspk.js} +4 -4
- package/dist/chunks/{wellknown-b6vsg801.js → workspace-b6vsg801.js} +2 -2
- package/dist/chunks/{wellknown-jtzgr0na.js → workspace-befcg3vk.js} +10 -10
- package/dist/chunks/{wellknown-wjj7prxr.js → workspace-beh6qq61.js} +11 -0
- package/dist/chunks/{wellknown-mfnjseb2.js → workspace-bffx5779.js} +16 -16
- package/dist/chunks/{wellknown-gcjdgkn2.js → workspace-bgm817xr.js} +9 -9
- package/dist/chunks/{wellknown-7zefs2yx.js → workspace-bj6yd2m6.js} +11 -11
- package/dist/chunks/{wellknown-bstexjd6.js → workspace-bstexjd6.js} +1 -1
- package/dist/chunks/{wellknown-qgp6m71r.js → workspace-btvs6m9s.js} +27 -27
- package/dist/chunks/{wellknown-kkg9xr14.js → workspace-c7k55dj2.js} +1 -1
- package/dist/chunks/{wellknown-yefdp956.js → workspace-cayjy6n6.js} +18 -18
- package/dist/chunks/{wellknown-vxxrrfe0.js → workspace-ckzatb6h.js} +9 -9
- package/dist/chunks/{wellknown-q9wnq509.js → workspace-cpzhveq8.js} +4 -4
- package/dist/chunks/{wellknown-sdtzry9x.js → workspace-ctxfhcf9.js} +11 -11
- package/dist/chunks/{wellknown-b0mv4wxm.js → workspace-cwrgdav8.js} +2 -2
- package/dist/chunks/{wellknown-q80bq26q.js → workspace-cyxjym35.js} +6 -6
- package/dist/chunks/{wellknown-ssfehs1z.js → workspace-d2887f8n.js} +4 -4
- package/dist/chunks/{wellknown-d4v9tmah.js → workspace-d4v9tmah.js} +2 -2
- package/dist/chunks/{wellknown-2kzj9rs3.js → workspace-d7mpa99n.js} +86 -86
- package/dist/chunks/{wellknown-53g6s4ag.js → workspace-d80v8vzq.js} +26 -24
- package/dist/chunks/{wellknown-m75bxvp1.js → workspace-dk4vvp25.js} +26 -26
- package/dist/chunks/{wellknown-t4y7ct23.js → workspace-dm94hefv.js} +48 -48
- package/dist/chunks/{wellknown-j81g92s0.js → workspace-drvbhkez.js} +8 -8
- package/dist/chunks/{wellknown-j113cymg.js → workspace-dt77769w.js} +2 -2
- package/dist/chunks/{wellknown-rqspxrc1.js → workspace-dw8ve4v4.js} +10 -11
- package/dist/chunks/{wellknown-rwvswa9y.js → workspace-dwwyec8z.js} +6 -6
- package/dist/chunks/{wellknown-7dfq0tqd.js → workspace-dynac9eb.js} +13 -13
- package/dist/chunks/{wellknown-pcc6rjnf.js → workspace-e07q2w5p.js} +4 -4
- package/dist/chunks/{wellknown-mb9k54pt.js → workspace-e471twwt.js} +8 -8
- package/dist/chunks/{wellknown-e834z07m.js → workspace-e834z07m.js} +1 -1
- package/dist/chunks/{wellknown-q9c81yt7.js → workspace-e8jqfb1a.js} +15 -15
- package/dist/chunks/{wellknown-r5zh54gw.js → workspace-ehk1qjjw.js} +52 -52
- package/dist/chunks/{wellknown-0f80a8fy.js → workspace-ep0wsmvm.js} +33 -32
- package/dist/chunks/{wellknown-xf88twea.js → workspace-ery7kzhb.js} +2 -2
- package/dist/chunks/{wellknown-7yhc6exb.js → workspace-ey35m0mc.js} +9 -9
- package/dist/chunks/{wellknown-hwrqw3h8.js → workspace-ez0rpz4z.js} +40 -40
- package/dist/chunks/{wellknown-hnj5zxrz.js → workspace-f9bbcs0x.js} +12 -12
- package/dist/chunks/{wellknown-fffv3p7h.js → workspace-fffv3p7h.js} +1 -1
- package/dist/chunks/{wellknown-fg9p65nk.js → workspace-fg9p65nk.js} +2 -2
- package/dist/chunks/{wellknown-xqf52ny9.js → workspace-fp8mkx0f.js} +35 -22
- package/dist/chunks/{wellknown-m6kv1khg.js → workspace-frhk2vn3.js} +5 -5
- package/dist/chunks/{wellknown-0ft0yr9w.js → workspace-fs0zc2gt.js} +6 -6
- package/dist/chunks/{wellknown-fb4cnss3.js → workspace-fxcaqc0y.js} +13 -13
- package/dist/chunks/{wellknown-60maxesw.js → workspace-g1whzzn7.js} +4 -4
- package/dist/chunks/{wellknown-pw6gcn4x.js → workspace-g5hey3vt.js} +12 -12
- package/dist/chunks/{wellknown-2vgv6k8t.js → workspace-g9navxqt.js} +13 -13
- package/dist/chunks/{wellknown-gg8p9cgs.js → workspace-gg8p9cgs.js} +3 -3
- package/dist/chunks/{wellknown-8bfs1sgm.js → workspace-gsm10rvf.js} +35 -35
- package/dist/chunks/{wellknown-nw3bgfm4.js → workspace-gxk0f8v3.js} +12 -12
- package/dist/chunks/{wellknown-ksffszx3.js → workspace-gxqvyt19.js} +5 -5
- package/dist/chunks/{wellknown-jnmyx7e4.js → workspace-h5edevtj.js} +78 -78
- package/dist/chunks/{wellknown-v0hcd9zv.js → workspace-h7mq0gsg.js} +2 -2
- package/dist/chunks/{wellknown-xfap1w58.js → workspace-h8ydc4kt.js} +14 -14
- package/dist/chunks/{wellknown-18m168yb.js → workspace-haxfm848.js} +11 -11
- package/dist/chunks/{wellknown-xnh55p1t.js → workspace-hfgk9wzg.js} +7 -7
- package/dist/chunks/{wellknown-p7h66p9t.js → workspace-hfqt73mn.js} +11 -11
- package/dist/chunks/{wellknown-zb5gs1ba.js → workspace-hm291q16.js} +3 -3
- package/dist/chunks/{wellknown-6pjqjmy2.js → workspace-hpg1pkwy.js} +2 -2
- package/dist/chunks/{wellknown-wbbfqag7.js → workspace-hr7waqx2.js} +12 -12
- package/dist/chunks/{wellknown-90gp0j9c.js → workspace-ht34p3rm.js} +3 -3
- package/dist/chunks/{wellknown-47dnmp34.js → workspace-hvw13sdg.js} +19 -19
- package/dist/chunks/{wellknown-mvj8zay5.js → workspace-j5sbsz7w.js} +15 -15
- package/dist/chunks/{wellknown-3v67cre7.js → workspace-j6v813za.js} +54 -38
- package/dist/chunks/{wellknown-15xz4cvy.js → workspace-jergy4yb.js} +7 -7
- package/dist/chunks/{wellknown-91rj84md.js → workspace-jfaecv01.js} +2 -2
- package/dist/chunks/{wellknown-9ytkwk8q.js → workspace-jn88007r.js} +9 -9
- package/dist/chunks/{wellknown-4campf80.js → workspace-jnyr2zd2.js} +4 -4
- package/dist/chunks/{wellknown-d0gx834n.js → workspace-jskh73wk.js} +21 -21
- package/dist/chunks/{wellknown-g5h9c0rr.js → workspace-jtnps1zs.js} +2 -2
- package/dist/chunks/{wellknown-9dtf119m.js → workspace-jzavwc5a.js} +13 -13
- package/dist/chunks/{wellknown-2qbjrve9.js → workspace-k6ng50pn.js} +5 -5
- package/dist/chunks/{wellknown-k814nvkf.js → workspace-k814nvkf.js} +1 -1
- package/dist/chunks/{wellknown-ewz324b7.js → workspace-k8ndw37r.js} +53 -53
- package/dist/chunks/{wellknown-ecwctf3g.js → workspace-k8pk7m1a.js} +32 -32
- package/dist/chunks/{wellknown-wnjd27sh.js → workspace-ka4q668c.js} +18 -18
- package/dist/chunks/{wellknown-1xr13nyq.js → workspace-kb4jv8gq.js} +22 -22
- package/dist/chunks/{wellknown-xvd6zczk.js → workspace-kkv0936x.js} +21 -21
- package/dist/chunks/{wellknown-eb0ebbza.js → workspace-kqg80s2x.js} +21 -21
- package/dist/chunks/{wellknown-14dcnwrx.js → workspace-krq85k1q.js} +4 -4
- package/dist/chunks/{wellknown-kt3bjfbg.js → workspace-kt3bjfbg.js} +1 -1
- package/dist/chunks/{wellknown-2wdrepbb.js → workspace-kww0x7wp.js} +20 -20
- package/dist/chunks/{wellknown-zqtsax9d.js → workspace-m061cbn2.js} +22 -22
- package/dist/chunks/{wellknown-m1714858.js → workspace-m1714858.js} +1 -1
- package/dist/chunks/{wellknown-kxymkrsz.js → workspace-m9ptjqeh.js} +9 -9
- package/dist/chunks/{wellknown-m9w0rfyh.js → workspace-m9w0rfyh.js} +1 -1
- package/dist/chunks/{wellknown-w2cmnvxm.js → workspace-mc5hffvt.js} +13 -13
- package/dist/chunks/{wellknown-v0t96s7a.js → workspace-mmx1mfjr.js} +4 -4
- package/dist/chunks/{wellknown-724c9pfv.js → workspace-my7hrdx3.js} +12 -12
- package/dist/chunks/{wellknown-t20d8q3a.js → workspace-n037b2rv.js} +15 -12
- package/dist/chunks/{wellknown-1yww55sr.js → workspace-n4njqkes.js} +28 -28
- package/dist/chunks/{wellknown-w5cna773.js → workspace-n4yb62ce.js} +29 -29
- package/dist/chunks/{wellknown-djjzzs3c.js → workspace-n66c6y3m.js} +6 -6
- package/dist/chunks/{wellknown-nah043kf.js → workspace-nah043kf.js} +1 -1
- package/dist/chunks/{wellknown-fx2b1b3j.js → workspace-nc159y24.js} +42 -42
- package/dist/chunks/{wellknown-pxer50tw.js → workspace-njaxvrn0.js} +15 -15
- package/dist/chunks/{wellknown-1vmknwag.js → workspace-nnb56zdr.js} +14 -14
- package/dist/chunks/{wellknown-6hbjb0nc.js → workspace-nq1gfgg7.js} +17 -17
- package/dist/chunks/{wellknown-ty7xyaae.js → workspace-ntgpnhzh.js} +7 -7
- package/dist/chunks/{wellknown-p015t6z3.js → workspace-p015t6z3.js} +2 -2
- package/dist/chunks/{wellknown-3ryz99p0.js → workspace-p0tsr9h6.js} +4 -4
- package/dist/chunks/{wellknown-0xv9h4nb.js → workspace-p2remtr5.js} +27 -27
- package/dist/chunks/{wellknown-w8xr7nv8.js → workspace-p3p972wa.js} +5 -5
- package/dist/chunks/workspace-p71gwv9c.js +153 -0
- package/dist/chunks/{wellknown-1yq9hg58.js → workspace-p7vhpwh8.js} +5 -5
- package/dist/chunks/{wellknown-hsjdcght.js → workspace-p7yet7aw.js} +26 -26
- package/dist/chunks/{wellknown-xre94b5v.js → workspace-p9az4c9x.js} +47 -35
- package/dist/chunks/{wellknown-ey3vkt1q.js → workspace-pcbcnm4r.js} +29 -29
- package/dist/chunks/{wellknown-xqdzg0d1.js → workspace-pd9dp0pk.js} +48 -48
- package/dist/chunks/{wellknown-0124gy6r.js → workspace-pjzas12s.js} +4 -4
- package/dist/chunks/{wellknown-pknna89w.js → workspace-pknna89w.js} +1 -1
- package/dist/chunks/{wellknown-fc6mge9b.js → workspace-pxc4avcg.js} +11 -11
- package/dist/chunks/{wellknown-024g9ezh.js → workspace-q0dc1a9h.js} +21 -21
- package/dist/chunks/{wellknown-nt6mqvwx.js → workspace-q2dh4fth.js} +6 -6
- package/dist/chunks/{wellknown-y79gjjan.js → workspace-q2yncp4a.js} +15 -15
- package/dist/chunks/{wellknown-xk9nzyx6.js → workspace-q371acht.js} +32 -32
- package/dist/chunks/{wellknown-21pdxbx2.js → workspace-qem07kdc.js} +6 -6
- package/dist/chunks/{wellknown-qz6rkytq.js → workspace-qm6s8ej8.js} +8 -8
- package/dist/chunks/{wellknown-qp7r0hxv.js → workspace-qp7r0hxv.js} +1 -1
- package/dist/chunks/{wellknown-r0yr0wbs.js → workspace-r0yr0wbs.js} +1 -1
- package/dist/chunks/{wellknown-r542h3bh.js → workspace-r542h3bh.js} +1 -1
- package/dist/chunks/{wellknown-neary136.js → workspace-r7xar5ns.js} +8 -8
- package/dist/chunks/{wellknown-rb9dy4dg.js → workspace-rb9dy4dg.js} +1 -1
- package/dist/chunks/{wellknown-4jt7skys.js → workspace-rg08y4e9.js} +23 -23
- package/dist/chunks/{wellknown-4e498fz4.js → workspace-rg6x42m8.js} +11 -11
- package/dist/chunks/{wellknown-ex2ghmgq.js → workspace-rhk24g9e.js} +5 -5
- package/dist/chunks/{wellknown-3bqphbas.js → workspace-rhyf1zg1.js} +15 -15
- package/dist/chunks/{wellknown-c0kyf5dr.js → workspace-rph8wvgf.js} +72 -38
- package/dist/chunks/{wellknown-48rxq2nm.js → workspace-rrwqa0x9.js} +21 -21
- package/dist/chunks/{wellknown-xr6tzfax.js → workspace-rsya75cp.js} +1 -1
- package/dist/chunks/{wellknown-rt5dr6hb.js → workspace-rt5dr6hb.js} +1 -1
- package/dist/chunks/{wellknown-cgbxrjpk.js → workspace-rwswcgad.js} +16 -16
- package/dist/chunks/{wellknown-dr8bgxdq.js → workspace-s00mzv4c.js} +24 -31
- package/dist/chunks/{wellknown-8j6zjvn4.js → workspace-s396tgzf.js} +28 -9
- package/dist/chunks/{wellknown-61ennm6n.js → workspace-s626qfae.js} +4 -4
- package/dist/chunks/{wellknown-ccp6j38y.js → workspace-s6p20e1k.js} +8 -8
- package/dist/chunks/{wellknown-vt0drty8.js → workspace-s6x6bhdw.js} +6 -6
- package/dist/chunks/{wellknown-6hxv0b70.js → workspace-s73mcn75.js} +21 -21
- package/dist/chunks/{wellknown-q7gd9zh7.js → workspace-s9r95bva.js} +36 -36
- package/dist/chunks/{wellknown-sa3fpqfw.js → workspace-sa3fpqfw.js} +2 -2
- package/dist/chunks/{wellknown-xhfxx4da.js → workspace-sfdw5d12.js} +11 -11
- package/dist/chunks/{wellknown-w68dkr85.js → workspace-sh1n2w0x.js} +18 -18
- package/dist/chunks/{wellknown-7sxvebxe.js → workspace-sk5cz3k6.js} +19 -15
- package/dist/chunks/{wellknown-phd9f911.js → workspace-sncehx48.js} +15 -15
- package/dist/chunks/{wellknown-49fagkab.js → workspace-sp13ydqz.js} +24 -24
- package/dist/chunks/{wellknown-sqjzf8x2.js → workspace-sqjzf8x2.js} +1 -1
- package/dist/chunks/{wellknown-zkg84ctx.js → workspace-svcy3p9a.js} +4 -2
- package/dist/chunks/{wellknown-5snrzpn2.js → workspace-t90jtn3y.js} +16 -16
- package/dist/chunks/{wellknown-4833vkmt.js → workspace-ta4g3tqy.js} +8 -8
- package/dist/chunks/{wellknown-tczq8hjw.js → workspace-tczq8hjw.js} +1 -1
- package/dist/chunks/{wellknown-zftkkf2m.js → workspace-tk6jy24y.js} +47 -47
- package/dist/chunks/{wellknown-r96ere88.js → workspace-tmd1r8tg.js} +4 -4
- package/dist/chunks/{wellknown-swveggkf.js → workspace-tms1d3r7.js} +24 -24
- package/dist/chunks/{wellknown-g1qvvw32.js → workspace-tmvc1kcy.js} +25 -25
- package/dist/chunks/{wellknown-twv2r8f4.js → workspace-twssxy5n.js} +2 -2
- package/dist/chunks/{wellknown-v2r1d0zg.js → workspace-v2r1d0zg.js} +1 -1
- package/dist/chunks/{wellknown-veqvce7d.js → workspace-veqvce7d.js} +1 -1
- package/dist/chunks/{wellknown-qyq8h28g.js → workspace-vg0erq9k.js} +4 -4
- package/dist/chunks/{wellknown-0h78vc96.js → workspace-vp7nv6ts.js} +12 -12
- package/dist/chunks/{wellknown-vvzp50rp.js → workspace-vswznq9x.js} +19 -19
- package/dist/chunks/{wellknown-egcgdjrp.js → workspace-vxrwmfev.js} +1 -1
- package/dist/chunks/workspace-vznp0c4w.js +26 -0
- package/dist/chunks/{wellknown-0gg8tnxq.js → workspace-w1z9n04s.js} +61 -42
- package/dist/chunks/{wellknown-71vjzq8c.js → workspace-w2f8g9ey.js} +16 -17
- package/dist/chunks/{wellknown-w3wsvvr9.js → workspace-w3wsvvr9.js} +1 -1
- package/dist/chunks/{wellknown-2p4cawxc.js → workspace-w4cmxjpb.js} +15 -15
- package/dist/chunks/{wellknown-fznmdakp.js → workspace-w687dnns.js} +4 -4
- package/dist/chunks/{wellknown-125q1ps8.js → workspace-w7qwarvw.js} +23 -23
- package/dist/chunks/{wellknown-76cb1hcw.js → workspace-w8qtt4th.js} +4 -4
- package/dist/chunks/{wellknown-wakvkjy4.js → workspace-wakvkjy4.js} +1 -1
- package/dist/chunks/{wellknown-ef1x4s0c.js → workspace-wctr8ape.js} +6 -6
- package/dist/chunks/{wellknown-wd87259q.js → workspace-wd87259q.js} +1 -1
- package/dist/chunks/{wellknown-2qe92jhz.js → workspace-xby723hm.js} +6 -6
- package/dist/chunks/{wellknown-hx65ke5p.js → workspace-xhf31v2h.js} +20 -20
- package/dist/chunks/{wellknown-fdg30131.js → workspace-xm65xzy2.js} +48 -47
- package/dist/chunks/{wellknown-sbtgcdj5.js → workspace-xmt3nt5n.js} +26 -24
- package/dist/chunks/{wellknown-0db4hbv7.js → workspace-xn8rwapq.js} +5 -5
- package/dist/chunks/{wellknown-tcxz7f1z.js → workspace-xq21eycy.js} +32 -32
- package/dist/chunks/{wellknown-6katn5jb.js → workspace-xq4c6pbn.js} +27 -27
- package/dist/chunks/{wellknown-wrcr1wzr.js → workspace-y4sbm31z.js} +336 -336
- package/dist/chunks/{wellknown-y4g98aeh.js → workspace-y5qv99bq.js} +24 -24
- package/dist/chunks/{wellknown-cy55exg4.js → workspace-y8r2caxt.js} +37 -37
- package/dist/chunks/{wellknown-yara3q77.js → workspace-yara3q77.js} +2 -2
- package/dist/chunks/{wellknown-yb20nhc3.js → workspace-yb20nhc3.js} +1 -1
- package/dist/chunks/{wellknown-4eyc3kpp.js → workspace-yd1z09nw.js} +97 -96
- package/dist/chunks/{wellknown-dbemrfqv.js → workspace-yd4hs1rm.js} +34 -34
- package/dist/chunks/{wellknown-2eqy3gj5.js → workspace-ym4mb7j3.js} +11 -11
- package/dist/chunks/{wellknown-e10gzbhc.js → workspace-ynvxk982.js} +11 -11
- package/dist/chunks/{wellknown-xqctgmq0.js → workspace-ysxs50rr.js} +32 -32
- package/dist/chunks/{wellknown-3dxzdqzy.js → workspace-ytfkq0y6.js} +23 -23
- package/dist/chunks/{wellknown-radh0f4v.js → workspace-yx85ewrr.js} +12 -12
- package/dist/chunks/{wellknown-z0bkrqjs.js → workspace-z0bkrqjs.js} +1 -1
- package/dist/chunks/{wellknown-z38nccrw.js → workspace-z38nccrw.js} +1 -1
- package/dist/chunks/{wellknown-2q60wewa.js → workspace-z536rte3.js} +35 -35
- package/dist/chunks/{wellknown-g8tr5n07.js → workspace-zathn158.js} +43 -43
- package/dist/chunks/{wellknown-4xvmh7wp.js → workspace-zgkm4kzm.js} +3 -3
- package/dist/chunks/{wellknown-8ndw73nb.js → workspace-zgs7qsk5.js} +18 -16
- package/dist/chunks/{wellknown-63x76nbs.js → workspace-zv4bvann.js} +29 -29
- package/dist/chunks/{wellknown-09090e8v.js → workspace-zwz8wfn8.js} +3 -3
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +87 -87
- package/dist/config/discovery.js +92 -92
- package/dist/config/integration.js +3 -3
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +107 -107
- package/dist/config/plugin/agent.js +123 -123
- package/dist/config/plugin/command.js +221 -221
- package/dist/config/plugin/compaction.js +162 -162
- package/dist/config/plugin/compatibility.js +142 -142
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +122 -122
- package/dist/config/plugin/image.js +121 -121
- package/dist/config/plugin/instruction.js +121 -121
- package/dist/config/plugin/location-watcher.js +121 -121
- package/dist/config/plugin/mcp.js +132 -132
- package/dist/config/plugin/policy.js +123 -123
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +123 -123
- package/dist/config/plugin/shell.js +123 -123
- package/dist/config/plugin/skill-file.js +138 -138
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +145 -145
- package/dist/config/plugin/snapshot.js +121 -121
- package/dist/config/plugin/source.js +124 -124
- package/dist/config/plugin/tool-output.js +122 -122
- package/dist/config/plugin/websearch.js +122 -122
- package/dist/config/plugin/worktree.js +123 -123
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +126 -126
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +89 -89
- package/dist/database/database.js +76 -76
- 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/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration.gen.js +55 -55
- package/dist/database/migration.js +57 -57
- 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 +103 -103
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +382 -381
- 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 +101 -101
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +3 -1
- package/dist/environment/index.js +106 -104
- 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 +80 -80
- package/dist/file-access.js +148 -140
- package/dist/file-mutation.js +102 -102
- 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/file-watch.js +86 -86
- package/dist/filesystem/location-watcher-policy.js +4 -4
- package/dist/filesystem/location-watcher.js +232 -232
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +107 -107
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +112 -112
- package/dist/form.js +90 -90
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +91 -91
- package/dist/generate.js +115 -115
- package/dist/git.js +11 -11
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +99 -99
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon-normalize.js +1 -1
- package/dist/image/photon-worker.js +1 -1
- package/dist/image/photon.js +4 -4
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +373 -372
- package/dist/instruction-discovery.js +90 -90
- package/dist/instructions/builtins.js +91 -91
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +93 -93
- package/dist/job.js +84 -84
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +79 -79
- package/dist/location-activity.js +166 -166
- package/dist/location-lifecycle.js +142 -142
- package/dist/location-service-map.js +94 -94
- package/dist/location-services.js +370 -369
- package/dist/location.js +93 -93
- package/dist/managed-policy.js +9 -9
- package/dist/mcp/client.js +99 -99
- package/dist/mcp/index.js +115 -115
- package/dist/mcp/instructions.js +166 -166
- package/dist/mcp/oauth.js +84 -84
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +98 -98
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -99
- package/dist/model-resolver.js +107 -107
- package/dist/model-retry.js +1 -1
- package/dist/model.js +110 -108
- package/dist/models-dev/v1.js +8 -0
- package/dist/models-dev.js +120 -119
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +88 -88
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +145 -145
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +92 -92
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +81 -81
- package/dist/plugin/agent.js +82 -82
- package/dist/plugin/command.js +110 -110
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +227 -227
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +343 -342
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +105 -104
- package/dist/plugin/module.js +121 -121
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +138 -138
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +98 -98
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +121 -121
- package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -118
- package/dist/plugin/provider/cloudflare-workers-ai.js +118 -118
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +117 -117
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +101 -101
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +103 -103
- package/dist/plugin/provider/gitlab.js +101 -101
- package/dist/plugin/provider/google-vertex.js +118 -118
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +84 -84
- package/dist/plugin/provider/lmstudio.js +130 -130
- package/dist/plugin/provider/local.js +127 -127
- package/dist/plugin/provider/modal.js +100 -100
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +128 -128
- package/dist/plugin/provider/openai-context-caps.js +98 -98
- package/dist/plugin/provider/openai.js +123 -123
- package/dist/plugin/provider/opencode-legacy.js +108 -108
- package/dist/plugin/provider/opencode.js +127 -127
- package/dist/plugin/provider/openrouter.js +99 -99
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +85 -85
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +99 -99
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +120 -120
- package/dist/plugin/provider/vercel.js +98 -98
- package/dist/plugin/provider/vllm.js +130 -130
- package/dist/plugin/provider/xai.js +99 -99
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +178 -178
- package/dist/plugin/sdk.js +82 -82
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +360 -359
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +94 -94
- package/dist/plugin/vcs/hg.js +94 -94
- package/dist/plugin/verbosity.js +101 -101
- package/dist/plugin/warming.js +119 -119
- 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 +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +236 -236
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +4 -4
- package/dist/project/sql.js +4 -4
- package/dist/project.js +94 -94
- package/dist/provider.js +109 -107
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +106 -106
- package/dist/reference/instructions.js +94 -94
- package/dist/reference.js +98 -98
- package/dist/repository-cache.js +88 -88
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +103 -103
- package/dist/rpc.js +96 -94
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/blob.js +120 -120
- package/dist/session/command.js +80 -80
- package/dist/session/compaction.js +164 -164
- package/dist/session/context.js +188 -188
- package/dist/session/diff.js +96 -96
- 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 +230 -230
- package/dist/session/execution.js +154 -154
- package/dist/session/generate.js +190 -190
- package/dist/session/history.js +127 -127
- package/dist/session/inbox.js +140 -140
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +85 -85
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +132 -132
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +155 -155
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +156 -156
- package/dist/session/projector.js +134 -134
- package/dist/session/prompt.js +140 -140
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +130 -130
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +238 -238
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +108 -108
- package/dist/session/runner/publish-llm-event.js +141 -141
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +154 -154
- package/dist/session/runner/to-llm-message.js +128 -128
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +170 -170
- package/dist/session/shell.js +135 -135
- package/dist/session/skill.js +139 -139
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +81 -81
- package/dist/session/store.js +133 -133
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +219 -219
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +192 -192
- package/dist/session/to-session-error.js +140 -140
- package/dist/session/transfer.js +230 -230
- package/dist/session/usage.js +1 -1
- package/dist/session.js +223 -223
- 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 +137 -137
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +141 -141
- package/dist/skill.js +144 -144
- package/dist/snapshot.js +101 -101
- 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 +165 -165
- package/dist/tool/plugin/edit.js +156 -156
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +160 -160
- package/dist/tool/plugin/grep.js +154 -154
- package/dist/tool/plugin/mcp-resource.js +154 -154
- package/dist/tool/plugin/opencode.js +153 -145
- package/dist/tool/plugin/patch.js +158 -158
- package/dist/tool/plugin/question.js +138 -138
- package/dist/tool/plugin/read.js +161 -161
- package/dist/tool/plugin/shell.js +224 -224
- package/dist/tool/plugin/skill.js +147 -147
- package/dist/tool/plugin/subagent.js +226 -226
- package/dist/tool/plugin/todo.js +145 -145
- package/dist/tool/plugin/webfetch.js +147 -147
- package/dist/tool/plugin/websearch.js +147 -147
- package/dist/tool/plugin/write.js +158 -158
- package/dist/tool/read-filesystem.js +110 -110
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- package/dist/types/agent.d.ts +5 -0
- package/dist/types/credential.d.ts +2 -0
- package/dist/types/effect/app-node-platform.d.ts +2 -1
- package/dist/types/environment/files.d.ts +2 -0
- package/dist/types/environment/index.d.ts +1 -1
- package/dist/types/file-access.d.ts +3 -3
- package/dist/types/instance.d.ts +1 -1
- package/dist/types/integration.d.ts +2 -0
- package/dist/types/model-resolver.d.ts +2 -0
- package/dist/types/model.d.ts +25 -1
- package/dist/types/models-dev/v1.d.ts +3 -0
- package/dist/types/models-dev.d.ts +2 -6
- package/dist/types/plugin/internal.d.ts +1 -1
- package/dist/types/project.d.ts +3 -2
- package/dist/types/provider.d.ts +30 -2
- package/dist/types/ripgrep/binary.d.ts +1 -0
- package/dist/types/rpc.d.ts +2 -0
- package/dist/types/tool/plugin/edit.d.ts +1 -1
- package/dist/types/tool/plugin/glob.d.ts +1 -1
- package/dist/types/tool/plugin/grep.d.ts +1 -1
- package/dist/types/tool/plugin/patch.d.ts +1 -1
- package/dist/types/tool/plugin/shell.d.ts +1 -1
- package/dist/types/tool/plugin/write.d.ts +1 -1
- package/dist/types/tool/runtime.d.ts +1 -1
- package/dist/types/v1/config/mcp.d.ts +4 -0
- package/dist/types/v1/config/migrate.d.ts +2 -0
- package/dist/types/voice.d.ts +2 -1
- package/dist/usage-limits.js +93 -93
- 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 +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +100 -100
- 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/variant.js +99 -99
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +97 -97
- package/dist/voice.js +94 -94
- package/dist/websearch.js +88 -88
- package/dist/wellknown/plugin.js +82 -82
- package/dist/wellknown.js +87 -87
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +88 -88
- 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 +97 -97
- package/dist/worktree.js +108 -108
- package/package.json +9 -8
- package/dist/chunks/wellknown-00ve6mdn.js +0 -18
- package/dist/chunks/wellknown-e9z9agtf.js +0 -352
- package/dist/chunks/wellknown-kgvgf0mp.js +0 -257
- package/dist/chunks/wellknown-wep3vcvy.js +0 -26
- /package/dist/chunks/{wellknown-0qkdqm5v.js → workspace-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{wellknown-0zkw76rk.js → workspace-0zkw76rk.js} +0 -0
- /package/dist/chunks/{wellknown-17cy0kzp.js → workspace-17cy0kzp.js} +0 -0
- /package/dist/chunks/{wellknown-1cnp2v09.js → workspace-1cnp2v09.js} +0 -0
- /package/dist/chunks/{wellknown-24dcb14g.js → workspace-24dcb14g.js} +0 -0
- /package/dist/chunks/{wellknown-2710q6r3.js → workspace-2710q6r3.js} +0 -0
- /package/dist/chunks/{wellknown-2bv980vf.js → workspace-2bv980vf.js} +0 -0
- /package/dist/chunks/{wellknown-2c3vjs8z.js → workspace-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{wellknown-359p4xyc.js → workspace-359p4xyc.js} +0 -0
- /package/dist/chunks/{wellknown-3asan66x.js → workspace-3asan66x.js} +0 -0
- /package/dist/chunks/{wellknown-3v8g72cx.js → workspace-3v8g72cx.js} +0 -0
- /package/dist/chunks/{wellknown-3wcehsnq.js → workspace-3wcehsnq.js} +0 -0
- /package/dist/chunks/{wellknown-43n2bw4t.js → workspace-43n2bw4t.js} +0 -0
- /package/dist/chunks/{wellknown-4knz6hnm.js → workspace-4knz6hnm.js} +0 -0
- /package/dist/chunks/{wellknown-4m86bj6y.js → workspace-4m86bj6y.js} +0 -0
- /package/dist/chunks/{wellknown-4vcrnpx2.js → workspace-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{wellknown-4y7fprxs.js → workspace-4y7fprxs.js} +0 -0
- /package/dist/chunks/{wellknown-53557ph1.js → workspace-53557ph1.js} +0 -0
- /package/dist/chunks/{wellknown-550bvhaj.js → workspace-550bvhaj.js} +0 -0
- /package/dist/chunks/{wellknown-5w3e23ze.js → workspace-5w3e23ze.js} +0 -0
- /package/dist/chunks/{wellknown-6prwharc.js → workspace-6prwharc.js} +0 -0
- /package/dist/chunks/{wellknown-6q2bdcd1.js → workspace-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{wellknown-7akdwqpd.js → workspace-7akdwqpd.js} +0 -0
- /package/dist/chunks/{wellknown-7m9af43g.js → workspace-7m9af43g.js} +0 -0
- /package/dist/chunks/{wellknown-822emrt2.js → workspace-822emrt2.js} +0 -0
- /package/dist/chunks/{wellknown-84wd9syh.js → workspace-84wd9syh.js} +0 -0
- /package/dist/chunks/{wellknown-88xbtdfr.js → workspace-88xbtdfr.js} +0 -0
- /package/dist/chunks/{wellknown-8n3pysct.js → workspace-8n3pysct.js} +0 -0
- /package/dist/chunks/{wellknown-8wj87zfr.js → workspace-8wj87zfr.js} +0 -0
- /package/dist/chunks/{wellknown-9a4afbnw.js → workspace-9a4afbnw.js} +0 -0
- /package/dist/chunks/{wellknown-9rqn6x4v.js → workspace-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{wellknown-a058387c.js → workspace-a058387c.js} +0 -0
- /package/dist/chunks/{wellknown-a6k6eb26.js → workspace-a6k6eb26.js} +0 -0
- /package/dist/chunks/{wellknown-af5trqkr.js → workspace-af5trqkr.js} +0 -0
- /package/dist/chunks/{wellknown-afrmfg78.js → workspace-afrmfg78.js} +0 -0
- /package/dist/chunks/{wellknown-aqzs7mqg.js → workspace-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{wellknown-atq7p7m5.js → workspace-atq7p7m5.js} +0 -0
- /package/dist/chunks/{wellknown-bkyjaxrp.js → workspace-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{wellknown-bmr6ed5q.js → workspace-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{wellknown-cf4snx6d.js → workspace-cf4snx6d.js} +0 -0
- /package/dist/chunks/{wellknown-cqv5kn06.js → workspace-cqv5kn06.js} +0 -0
- /package/dist/chunks/{wellknown-cvy3z8tj.js → workspace-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{wellknown-d9fn303g.js → workspace-d9fn303g.js} +0 -0
- /package/dist/chunks/{wellknown-d9jj8t3e.js → workspace-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{wellknown-dajrwvna.js → workspace-dajrwvna.js} +0 -0
- /package/dist/chunks/{wellknown-dap0rakb.js → workspace-dap0rakb.js} +0 -0
- /package/dist/chunks/{wellknown-df08tz66.js → workspace-df08tz66.js} +0 -0
- /package/dist/chunks/{wellknown-dy18nga0.js → workspace-dy18nga0.js} +0 -0
- /package/dist/chunks/{wellknown-e5kj55wp.js → workspace-e5kj55wp.js} +0 -0
- /package/dist/chunks/{wellknown-e73j6tqm.js → workspace-e73j6tqm.js} +0 -0
- /package/dist/chunks/{wellknown-ec1grn59.js → workspace-ec1grn59.js} +0 -0
- /package/dist/chunks/{wellknown-eh3zwz77.js → workspace-eh3zwz77.js} +0 -0
- /package/dist/chunks/{wellknown-emrn6kk6.js → workspace-emrn6kk6.js} +0 -0
- /package/dist/chunks/{wellknown-f0mxakyp.js → workspace-f0mxakyp.js} +0 -0
- /package/dist/chunks/{wellknown-f6n9ztr4.js → workspace-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{wellknown-faypxj3z.js → workspace-faypxj3z.js} +0 -0
- /package/dist/chunks/{wellknown-fd410y7t.js → workspace-fd410y7t.js} +0 -0
- /package/dist/chunks/{wellknown-fkpq3x5p.js → workspace-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{wellknown-g4wezp1m.js → workspace-g4wezp1m.js} +0 -0
- /package/dist/chunks/{wellknown-g86h250q.js → workspace-g86h250q.js} +0 -0
- /package/dist/chunks/{wellknown-gebd4c9n.js → workspace-gebd4c9n.js} +0 -0
- /package/dist/chunks/{wellknown-gftt206x.js → workspace-gftt206x.js} +0 -0
- /package/dist/chunks/{wellknown-hcxmzztb.js → workspace-hcxmzztb.js} +0 -0
- /package/dist/chunks/{wellknown-hk9envan.js → workspace-hk9envan.js} +0 -0
- /package/dist/chunks/{wellknown-j2ntwpah.js → workspace-j2ntwpah.js} +0 -0
- /package/dist/chunks/{wellknown-j5zkgpj8.js → workspace-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{wellknown-jjkms2e6.js → workspace-jjkms2e6.js} +0 -0
- /package/dist/chunks/{wellknown-jr7sbwjy.js → workspace-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{wellknown-jwfs4k6c.js → workspace-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{wellknown-jwr30sdr.js → workspace-jwr30sdr.js} +0 -0
- /package/dist/chunks/{wellknown-jze0r7bz.js → workspace-jze0r7bz.js} +0 -0
- /package/dist/chunks/{wellknown-jzg6c2d5.js → workspace-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{wellknown-m18g726c.js → workspace-m18g726c.js} +0 -0
- /package/dist/chunks/{wellknown-mp448xyj.js → workspace-mp448xyj.js} +0 -0
- /package/dist/chunks/{wellknown-msx8hqn2.js → workspace-msx8hqn2.js} +0 -0
- /package/dist/chunks/{wellknown-n05xt0ee.js → workspace-n05xt0ee.js} +0 -0
- /package/dist/chunks/{wellknown-n3j8tn72.js → workspace-n3j8tn72.js} +0 -0
- /package/dist/chunks/{wellknown-ncqqe42p.js → workspace-ncqqe42p.js} +0 -0
- /package/dist/chunks/{wellknown-njntx4h6.js → workspace-njntx4h6.js} +0 -0
- /package/dist/chunks/{wellknown-q3sfg36h.js → workspace-q3sfg36h.js} +0 -0
- /package/dist/chunks/{wellknown-q74kybfr.js → workspace-q74kybfr.js} +0 -0
- /package/dist/chunks/{wellknown-qaymkmh1.js → workspace-qaymkmh1.js} +0 -0
- /package/dist/chunks/{wellknown-qb87gjwd.js → workspace-qb87gjwd.js} +0 -0
- /package/dist/chunks/{wellknown-qfa1cgps.js → workspace-qfa1cgps.js} +0 -0
- /package/dist/chunks/{wellknown-qg3g05ea.js → workspace-qg3g05ea.js} +0 -0
- /package/dist/chunks/{wellknown-qrg20bc0.js → workspace-qrg20bc0.js} +0 -0
- /package/dist/chunks/{wellknown-rcb2kzg1.js → workspace-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{wellknown-sdp7kfr6.js → workspace-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{wellknown-ssg3fenm.js → workspace-ssg3fenm.js} +0 -0
- /package/dist/chunks/{wellknown-ve7vex1e.js → workspace-ve7vex1e.js} +0 -0
- /package/dist/chunks/{wellknown-w803qqfp.js → workspace-w803qqfp.js} +0 -0
- /package/dist/chunks/{wellknown-wc3fc9cn.js → workspace-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{wellknown-wer8tq1h.js → workspace-wer8tq1h.js} +0 -0
- /package/dist/chunks/{wellknown-wtztk69x.js → workspace-wtztk69x.js} +0 -0
- /package/dist/chunks/{wellknown-x0ckcb58.js → workspace-x0ckcb58.js} +0 -0
- /package/dist/chunks/{wellknown-x61499pn.js → workspace-x61499pn.js} +0 -0
- /package/dist/chunks/{wellknown-y44na4kk.js → workspace-y44na4kk.js} +0 -0
- /package/dist/chunks/{wellknown-y8f7s663.js → workspace-y8f7s663.js} +0 -0
- /package/dist/chunks/{wellknown-ygaqb7jw.js → workspace-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{wellknown-ym463w8f.js → workspace-ym463w8f.js} +0 -0
- /package/dist/chunks/{wellknown-z5v4ffb3.js → workspace-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{wellknown-z9919s4g.js → workspace-z9919s4g.js} +0 -0
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workspace-11hfp36g.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service85,
|
|
6
|
+
node89
|
|
7
|
+
} from "./workspace-70s3x0a6.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
9
|
+
Event15,
|
|
10
|
+
Service70,
|
|
11
|
+
node73
|
|
12
|
+
} from "./workspace-p9az4c9x.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service80,
|
|
15
|
+
node84
|
|
16
|
+
} from "./workspace-h8ydc4kt.js";
|
|
17
17
|
import {
|
|
18
|
-
Service63,
|
|
19
|
-
node65
|
|
20
|
-
} from "./wellknown-sbtgcdj5.js";
|
|
21
|
-
import {
|
|
22
|
-
ID15,
|
|
23
18
|
Service75,
|
|
24
19
|
node78
|
|
25
|
-
} from "./
|
|
20
|
+
} from "./workspace-xmt3nt5n.js";
|
|
21
|
+
import {
|
|
22
|
+
ID11,
|
|
23
|
+
Service71,
|
|
24
|
+
node74
|
|
25
|
+
} from "./workspace-p2remtr5.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./workspace-204s3925.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID9,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service69,
|
|
34
|
+
node72
|
|
35
|
+
} from "./workspace-j6v813za.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./workspace-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,
|
|
49
49
|
ResourceContent: () => ResourceContent2,
|
|
50
50
|
ResourceTemplate: () => ResourceTemplate2,
|
|
51
51
|
ServerName: () => ServerName2,
|
|
52
|
-
Service: () =>
|
|
52
|
+
Service: () => Service30,
|
|
53
53
|
Status: () => Status2,
|
|
54
54
|
ToolCallError: () => ToolCallError2,
|
|
55
|
-
configured: () =>
|
|
55
|
+
configured: () => configured2,
|
|
56
56
|
layer: () => layer16,
|
|
57
|
-
node: () =>
|
|
57
|
+
node: () => node33
|
|
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 NotFoundError2 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
76
76
|
server: ServerName2
|
|
77
77
|
}) {
|
|
78
78
|
get message() {
|
|
@@ -104,21 +104,21 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
|
104
104
|
var endpointLoads = makeUnsafe2();
|
|
105
105
|
var cloneConfig = (config) => structuredClone(config);
|
|
106
106
|
|
|
107
|
-
class
|
|
107
|
+
class Service30 extends Context.Service()("@opencode/MCP") {
|
|
108
108
|
}
|
|
109
|
-
var
|
|
109
|
+
var Options2 = 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 layer16 = (options) => Layer.effect(
|
|
116
|
-
const location = yield*
|
|
117
|
-
const environment = yield*
|
|
118
|
-
const bus = yield*
|
|
119
|
-
const forms = yield*
|
|
120
|
-
const integration = yield*
|
|
121
|
-
const credentials = yield*
|
|
115
|
+
var layer16 = (options) => Layer.effect(Service30, Effect.gen(function* () {
|
|
116
|
+
const location = yield* Service80;
|
|
117
|
+
const environment = yield* Service75;
|
|
118
|
+
const bus = yield* Service85;
|
|
119
|
+
const forms = yield* Service71;
|
|
120
|
+
const integration = yield* Service69;
|
|
121
|
+
const credentials = yield* Service70;
|
|
122
122
|
const root = yield* Effect.scope;
|
|
123
123
|
const fork = yield* FiberSet.makeRuntime();
|
|
124
124
|
const servers = yield* Scope.fork(root, "parallel");
|
|
@@ -133,7 +133,7 @@ var layer16 = (options) => Layer.effect(Service35, Effect.gen(function* () {
|
|
|
133
133
|
return;
|
|
134
134
|
const remote = entry.config;
|
|
135
135
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
136
|
-
const integrationID =
|
|
136
|
+
const integrationID = ID9.make(suffix);
|
|
137
137
|
entry.integrationID = integrationID;
|
|
138
138
|
owned.add(integrationID);
|
|
139
139
|
const methodID = MethodID2.make(suffix);
|
|
@@ -149,7 +149,7 @@ var layer16 = (options) => Layer.effect(Service35, Effect.gen(function* () {
|
|
|
149
149
|
method: { id: methodID, type: "oauth", label: name },
|
|
150
150
|
authorize: () => Effect.gen(function* () {
|
|
151
151
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
152
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
152
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service70, credentials));
|
|
153
153
|
})
|
|
154
154
|
});
|
|
155
155
|
}).pipe(Scope.provide(scope));
|
|
@@ -157,19 +157,19 @@ var layer16 = (options) => Layer.effect(Service35, 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 NotFoundError2({ server: name });
|
|
161
161
|
return { name, entry };
|
|
162
162
|
});
|
|
163
163
|
const connectProvider = Effect.fnUntraced(function* (entry) {
|
|
164
164
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
165
165
|
return;
|
|
166
166
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
167
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
167
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service70, credentials));
|
|
168
168
|
});
|
|
169
169
|
const elicitation = {
|
|
170
170
|
create: (input) => Effect.gen(function* () {
|
|
171
171
|
if (input.params.mode === "url") {
|
|
172
|
-
const formID =
|
|
172
|
+
const formID = ID11.create();
|
|
173
173
|
const elicitationID = input.params.elicitationId;
|
|
174
174
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
175
175
|
if (key)
|
|
@@ -272,7 +272,7 @@ var layer16 = (options) => Layer.effect(Service35, 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(Service75, 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 layer16 = (options) => Layer.effect(Service35, 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(Service75, 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);
|
|
@@ -452,7 +452,7 @@ var layer16 = (options) => Layer.effect(Service35, Effect.gen(function* () {
|
|
|
452
452
|
yield* startServer(name, entry);
|
|
453
453
|
}).pipe(locks.withLock(name));
|
|
454
454
|
});
|
|
455
|
-
fork(bus.subscribe(
|
|
455
|
+
fork(bus.subscribe(Event15.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
456
456
|
const state = create3({
|
|
457
457
|
name: "mcp",
|
|
458
458
|
initial: () => ({
|
|
@@ -478,7 +478,7 @@ var layer16 = (options) => Layer.effect(Service35, Effect.gen(function* () {
|
|
|
478
478
|
}),
|
|
479
479
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
480
480
|
});
|
|
481
|
-
return
|
|
481
|
+
return Service30.of({
|
|
482
482
|
transform: state.transform,
|
|
483
483
|
reload: state.reload,
|
|
484
484
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -611,14 +611,14 @@ function mergeCatalogs(catalogs) {
|
|
|
611
611
|
templates: catalogs.flatMap((catalog) => catalog.templates).toSorted((a, b) => a.server.localeCompare(b.server) || a.name.localeCompare(b.name) || a.uriTemplate.localeCompare(b.uriTemplate))
|
|
612
612
|
});
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function configured2(options) {
|
|
615
615
|
return makeLocationNode({
|
|
616
|
-
service:
|
|
616
|
+
service: Service30,
|
|
617
617
|
layer: layer16(options),
|
|
618
|
-
deps: [
|
|
618
|
+
deps: [node84, node78, node89, node74, node72, node73]
|
|
619
619
|
});
|
|
620
620
|
}
|
|
621
|
-
var
|
|
621
|
+
var node33 = configured2();
|
|
622
622
|
function toElicitationField(key, property, required) {
|
|
623
623
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
624
624
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -669,4 +669,4 @@ function toElicitationField(key, property, required) {
|
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
|
|
672
|
-
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2,
|
|
672
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError2, ToolCallError2, Service30, Options2, layer16, configured2, node33, exports_mcp4 };
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Metadata2,
|
|
3
3
|
useragent2,
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
4
|
+
node52
|
|
5
|
+
} from "./workspace-ynvxk982.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service63,
|
|
8
|
+
node66
|
|
9
|
+
} from "./workspace-e471twwt.js";
|
|
10
10
|
import {
|
|
11
11
|
DeclinedError2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./workspace-pd9dp0pk.js";
|
|
13
13
|
import {
|
|
14
14
|
CancelledError2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./workspace-4watfg9m.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
Error2
|
|
18
|
+
} from "./workspace-6f9jk43g.js";
|
|
19
19
|
import {
|
|
20
20
|
get5
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./workspace-3nnrz6f6.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
23
|
+
Service28,
|
|
24
|
+
node31
|
|
25
|
+
} from "./workspace-ym4mb7j3.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./
|
|
27
|
+
make16
|
|
28
|
+
} from "./workspace-hfgk9wzg.js";
|
|
29
29
|
import {
|
|
30
30
|
toLLMMessages2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./workspace-h7mq0gsg.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./workspace-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/session/model-request.ts
|
|
37
37
|
var exports_model_request = {};
|
|
38
38
|
__export(exports_model_request, {
|
|
39
|
-
Service: () =>
|
|
39
|
+
Service: () => Service27,
|
|
40
40
|
SessionModelRequest: () => exports_model_request,
|
|
41
41
|
baseTranscript: () => baseTranscript2,
|
|
42
42
|
boundImages: () => boundImages2,
|
|
43
|
-
layer: () =>
|
|
44
|
-
node: () =>
|
|
43
|
+
layer: () => layer13,
|
|
44
|
+
node: () => node30,
|
|
45
45
|
outputLimit: () => outputLimit2,
|
|
46
46
|
unsupportedParts: () => unsupportedParts2
|
|
47
47
|
});
|
|
@@ -77,7 +77,7 @@ var baseTranscript2 = (input) => {
|
|
|
77
77
|
return {
|
|
78
78
|
providerMetadataKey,
|
|
79
79
|
system: [
|
|
80
|
-
input.agent.system ? input.agent.system :
|
|
80
|
+
input.agent.system ? input.agent.system : make16(input.tools.definitions.map((tool) => tool.name)),
|
|
81
81
|
input.initial
|
|
82
82
|
].filter((part) => part.length > 0).map(SystemPart.make),
|
|
83
83
|
messages: toLLMMessages2(input.messages, input.model.ref, providerMetadataKey)
|
|
@@ -158,11 +158,11 @@ var boundImages2 = (messages) => {
|
|
|
158
158
|
});
|
|
159
159
|
};
|
|
160
160
|
|
|
161
|
-
class
|
|
161
|
+
class Service27 extends Context.Service()("@opencode/SessionModelRequest") {
|
|
162
162
|
}
|
|
163
|
-
var
|
|
164
|
-
const hooks = yield*
|
|
165
|
-
const transport = yield*
|
|
163
|
+
var layer13 = Layer.effect(Service27, Effect.gen(function* () {
|
|
164
|
+
const hooks = yield* Service63;
|
|
165
|
+
const transport = yield* Service28;
|
|
166
166
|
const app = yield* Metadata2;
|
|
167
167
|
const prepare = Effect.fn("SessionModelRequest.prepare")(function* (kind, input, shape) {
|
|
168
168
|
const session = input.session;
|
|
@@ -170,7 +170,7 @@ var layer12 = Layer.effect(Service29, Effect.gen(function* () {
|
|
|
170
170
|
const scope = { sessionID: session.id, agent: input.agent, model: model.ref, kind };
|
|
171
171
|
const tools = input.tools ?? {
|
|
172
172
|
definitions: [],
|
|
173
|
-
execute: () => new
|
|
173
|
+
execute: () => new Error2({ message: "Tools are not available for this request" })
|
|
174
174
|
};
|
|
175
175
|
const given = new Map(tools.definitions.map((t) => [{ description: t.description, input: JSON.parse(JSON.stringify(t.inputSchema)) }, t]));
|
|
176
176
|
const shaped = yield* shape({
|
|
@@ -205,6 +205,7 @@ var layer12 = Layer.effect(Service29, Effect.gen(function* () {
|
|
|
205
205
|
}
|
|
206
206
|
},
|
|
207
207
|
promptCacheKey: /^ses_[0-9a-f]{64}$/.test(affinity) ? affinity.slice(4) : affinity,
|
|
208
|
+
cache: model.cache?.ttl === undefined ? undefined : { ttl: model.cache.ttl },
|
|
208
209
|
system: shaped.system,
|
|
209
210
|
messages: boundImages2(unsupportedParts2(shaped.messages, model.capabilities, model.model.provider)),
|
|
210
211
|
tools: Array.from(hooked, ([name, t]) => ({ ...t, name })),
|
|
@@ -260,17 +261,17 @@ var layer12 = Layer.effect(Service29, Effect.gen(function* () {
|
|
|
260
261
|
};
|
|
261
262
|
});
|
|
262
263
|
const agentHook = (name, agent) => (draft, tools) => hooks.trigger("session", name, { ...draft, agent, tools });
|
|
263
|
-
return
|
|
264
|
+
return Service27.of({
|
|
264
265
|
primary: (input) => prepare("primary", input, agentHook("context", input.agent)),
|
|
265
266
|
compaction: (input) => prepare("compaction", input, agentHook("compaction", input.agent)),
|
|
266
267
|
generate: (input) => prepare("generate", input, agentHook("generate", input.agent)),
|
|
267
268
|
title: (input) => prepare("title", input, (draft) => hooks.trigger("session", "title", draft))
|
|
268
269
|
});
|
|
269
270
|
}));
|
|
270
|
-
var
|
|
271
|
-
service:
|
|
272
|
-
layer:
|
|
273
|
-
deps: [
|
|
271
|
+
var node30 = makeLocationNode({
|
|
272
|
+
service: Service27,
|
|
273
|
+
layer: layer13,
|
|
274
|
+
deps: [node66, node31, node52]
|
|
274
275
|
});
|
|
275
276
|
|
|
276
|
-
export { outputLimit2, baseTranscript2, unsupportedParts2, boundImages2,
|
|
277
|
+
export { outputLimit2, baseTranscript2, unsupportedParts2, boundImages2, Service27, layer13, node30, exports_model_request };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveNullableObjectPaths2,
|
|
3
3
|
mapResultRow2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./workspace-emrn6kk6.js";
|
|
5
5
|
import {
|
|
6
6
|
SQLiteEffectDatabase2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./workspace-ntgpnhzh.js";
|
|
8
8
|
|
|
9
9
|
// src/database/drizzle/sqlite-core/effect/session.ts
|
|
10
10
|
import * as Cause from "effect/Cause";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service36
|
|
3
|
+
} from "./workspace-dwwyec8z.js";
|
|
4
4
|
import {
|
|
5
5
|
awaitActivation2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./workspace-b1bdn9ww.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service60
|
|
9
|
+
} from "./workspace-9era1v6z.js";
|
|
10
10
|
import {
|
|
11
11
|
unavailable2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./workspace-k814nvkf.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./workspace-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/session/shell.ts
|
|
18
18
|
var exports_shell3 = {};
|
|
@@ -22,8 +22,8 @@ __export(exports_shell3, {
|
|
|
22
22
|
});
|
|
23
23
|
import { Effect } from "effect";
|
|
24
24
|
var start2 = Effect.fn("SessionShell.start")(function* (input) {
|
|
25
|
-
const instances = yield*
|
|
26
|
-
const shell = yield* awaitActivation2.pipe(Effect.andThen(
|
|
25
|
+
const instances = yield* Service36;
|
|
26
|
+
const shell = yield* awaitActivation2.pipe(Effect.andThen(Service60), instances.provide(input.session));
|
|
27
27
|
const info = yield* shell.create({
|
|
28
28
|
command: input.command,
|
|
29
29
|
cwd: input.session.location.directory,
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workspace-ynvxk982.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service85
|
|
6
|
+
} from "./workspace-70s3x0a6.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID10,
|
|
9
9
|
OAuth3,
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Event15
|
|
11
|
+
} from "./workspace-p9az4c9x.js";
|
|
12
12
|
import {
|
|
13
13
|
key2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./workspace-s626qfae.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID9,
|
|
17
17
|
MethodID2,
|
|
18
18
|
AuthorizationError2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./workspace-j6v813za.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
ID8
|
|
22
|
+
} from "./workspace-rph8wvgf.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
24
|
+
Service64
|
|
25
|
+
} from "./workspace-k8ndw37r.js";
|
|
26
26
|
import {
|
|
27
27
|
Remote2,
|
|
28
28
|
Document2,
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
29
|
+
make12
|
|
30
|
+
} from "./workspace-e07q2w5p.js";
|
|
31
31
|
import {
|
|
32
32
|
integrate2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./workspace-n037b2rv.js";
|
|
34
34
|
import {
|
|
35
35
|
defaultServer2,
|
|
36
36
|
server2,
|
|
37
37
|
headers2
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./workspace-kt3bjfbg.js";
|
|
39
39
|
import {
|
|
40
|
-
|
|
41
|
-
} from "./
|
|
40
|
+
Service13
|
|
41
|
+
} from "./workspace-haxfm848.js";
|
|
42
42
|
import {
|
|
43
|
-
|
|
43
|
+
ID18,
|
|
44
44
|
Input15,
|
|
45
45
|
Response3
|
|
46
|
-
} from "./
|
|
46
|
+
} from "./workspace-p7yet7aw.js";
|
|
47
47
|
import {
|
|
48
48
|
Response2,
|
|
49
|
-
|
|
49
|
+
make5,
|
|
50
50
|
statements2,
|
|
51
51
|
providerIDs2,
|
|
52
|
-
|
|
53
|
-
} from "./
|
|
52
|
+
register3
|
|
53
|
+
} from "./workspace-zgs7qsk5.js";
|
|
54
54
|
|
|
55
55
|
// src/plugin/provider/opencode.ts
|
|
56
56
|
import {
|
|
@@ -113,7 +113,7 @@ class SignedOutError extends Schema.TaggedError()("OpencodeConsole.SignedOut", {
|
|
|
113
113
|
}
|
|
114
114
|
function oauth(http) {
|
|
115
115
|
return {
|
|
116
|
-
integrationID:
|
|
116
|
+
integrationID: ID9.make("opencode"),
|
|
117
117
|
method: {
|
|
118
118
|
id: methodID,
|
|
119
119
|
type: "oauth",
|
|
@@ -178,11 +178,11 @@ var OpencodePlugin2 = define({
|
|
|
178
178
|
id: "opencode.provider.opencode",
|
|
179
179
|
effect: Effect.fn(function* (ctx) {
|
|
180
180
|
const disableFree = ["1", "true"].includes(process.env.OPENCODE_DISABLE_FREE_MODELS?.toLowerCase() ?? "");
|
|
181
|
-
const bus = yield*
|
|
181
|
+
const bus = yield* Service85;
|
|
182
182
|
const client = yield* HttpClient.HttpClient;
|
|
183
183
|
const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
|
|
184
|
-
const managed = yield*
|
|
185
|
-
const config = yield*
|
|
184
|
+
const managed = yield* Service13;
|
|
185
|
+
const config = yield* Service64;
|
|
186
186
|
const scope = yield* Scope.Scope;
|
|
187
187
|
const loading = Semaphore.makeUnsafe(1);
|
|
188
188
|
let snapshot = { remote: undefined, connection: undefined, organization: undefined };
|
|
@@ -204,7 +204,7 @@ var OpencodePlugin2 = define({
|
|
|
204
204
|
if (!credential || credential.type === "external")
|
|
205
205
|
return Effect.succeed({ remote: undefined, connection, organization: undefined });
|
|
206
206
|
return fetchConfig(http, credential).pipe(Effect.map((remote) => ({
|
|
207
|
-
remote: remote?.type === "legacy" ?
|
|
207
|
+
remote: remote?.type === "legacy" ? make5(remote.response, headers2(credential)) : remote,
|
|
208
208
|
connection,
|
|
209
209
|
organization: organizationName(credential)
|
|
210
210
|
})));
|
|
@@ -218,16 +218,16 @@ var OpencodePlugin2 = define({
|
|
|
218
218
|
});
|
|
219
219
|
let integrated;
|
|
220
220
|
const integrate = Effect.fnUntraced(function* (document) {
|
|
221
|
-
yield* config.integration?.(
|
|
222
|
-
integrated = (yield* config.entries()).find((entry) => entry instanceof Document2 && entry.integrationID ===
|
|
221
|
+
yield* config.integration?.(ID9.make("opencode"), document) ?? Effect.void;
|
|
222
|
+
integrated = (yield* config.entries()).find((entry) => entry instanceof Document2 && entry.integrationID === ID9.make("opencode"));
|
|
223
223
|
});
|
|
224
224
|
const publish = Effect.fnUntraced(function* (next) {
|
|
225
225
|
switch (next.remote?.type) {
|
|
226
226
|
case "config":
|
|
227
227
|
yield* managed.set({ statements: [], organization: next.organization });
|
|
228
|
-
return yield* integrate(next.connection &&
|
|
229
|
-
integrationID:
|
|
230
|
-
connection: next.connection.type === "credential" ? { ...next.connection, id:
|
|
228
|
+
return yield* integrate(next.connection && make12({
|
|
229
|
+
integrationID: ID9.make("opencode"),
|
|
230
|
+
connection: next.connection.type === "credential" ? { ...next.connection, id: ID10.make(next.connection.id) } : next.connection,
|
|
231
231
|
organization: next.organization,
|
|
232
232
|
info: next.remote.info
|
|
233
233
|
}));
|
|
@@ -277,13 +277,13 @@ var OpencodePlugin2 = define({
|
|
|
277
277
|
});
|
|
278
278
|
snapshot = yield* load();
|
|
279
279
|
yield* publish(snapshot);
|
|
280
|
-
yield*
|
|
280
|
+
yield* register3(ctx, () => snapshot, search);
|
|
281
281
|
yield* ctx.provider.transform((providers) => {
|
|
282
282
|
if (integrated)
|
|
283
283
|
integrate2(providers, integrated);
|
|
284
284
|
});
|
|
285
285
|
yield* ctx.provider.transform((providers) => {
|
|
286
|
-
const item = providers.get(
|
|
286
|
+
const item = providers.get(ID8.opencode);
|
|
287
287
|
if (!item)
|
|
288
288
|
return;
|
|
289
289
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
|
|
@@ -295,7 +295,7 @@ var OpencodePlugin2 = define({
|
|
|
295
295
|
});
|
|
296
296
|
});
|
|
297
297
|
yield* ctx.model.transform((models) => {
|
|
298
|
-
const item = models.provider.get(
|
|
298
|
+
const item = models.provider.get(ID8.opencode);
|
|
299
299
|
if (!item)
|
|
300
300
|
return;
|
|
301
301
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
|
|
@@ -311,7 +311,7 @@ var OpencodePlugin2 = define({
|
|
|
311
311
|
});
|
|
312
312
|
yield* ctx.websearch.transform((editor) => {
|
|
313
313
|
if (snapshot.remote?.type === "config" && snapshot.connection)
|
|
314
|
-
editor.add(search(
|
|
314
|
+
editor.add(search(ID18.make("opencode"), snapshot.connection));
|
|
315
315
|
});
|
|
316
316
|
const apply = Effect.fn("OpencodePlugin.apply")(function* (next) {
|
|
317
317
|
snapshot = next;
|
|
@@ -348,7 +348,7 @@ var OpencodePlugin2 = define({
|
|
|
348
348
|
const guard = Effect.fn("OpencodePlugin.guard")(function* (next) {
|
|
349
349
|
yield* Effect.forEach(explainers, (registration) => registration.dispose, { discard: true });
|
|
350
350
|
explainers = yield* Effect.forEach(next.connection ? new Set([
|
|
351
|
-
|
|
351
|
+
ID8.opencode,
|
|
352
352
|
...next.remote?.type === "config" ? Object.keys(next.remote.info.providers ?? {}) : providerIDs2(next.remote)
|
|
353
353
|
]) : [], (providerID) => ctx.session.hook("http.response", explain, { providerID }).pipe(Scope.provide(scope)));
|
|
354
354
|
});
|
|
@@ -361,7 +361,7 @@ var OpencodePlugin2 = define({
|
|
|
361
361
|
onlyIfMissing: true
|
|
362
362
|
});
|
|
363
363
|
});
|
|
364
|
-
yield* bus.subscribe(
|
|
364
|
+
yield* bus.subscribe(Event15.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID9.make("opencode")), Stream.runForEach(() => refresh().pipe(Effect.andThen(poll()))), Effect.forkScoped({ startImmediately: true }));
|
|
365
365
|
yield* poll();
|
|
366
366
|
})
|
|
367
367
|
});
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID8,
|
|
3
3
|
mergeOverlay2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./workspace-rph8wvgf.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
ID7,
|
|
7
7
|
VariantID2,
|
|
8
|
-
|
|
8
|
+
Info19,
|
|
9
9
|
compatibility2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./workspace-31h7jx7a.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./workspace-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/modal/models.ts
|
|
16
16
|
var exports_models = {};
|
|
@@ -22,7 +22,7 @@ __export(exports_models, {
|
|
|
22
22
|
});
|
|
23
23
|
import { Money } from "@opencode/schema/money";
|
|
24
24
|
import { Option, Schema } from "effect";
|
|
25
|
-
var providerID =
|
|
25
|
+
var providerID = ID8.make("modal");
|
|
26
26
|
var ReasoningOption = Schema.Struct({
|
|
27
27
|
type: Schema.Literal("effort"),
|
|
28
28
|
values: Schema.Array(Schema.NullOr(Schema.String))
|
|
@@ -75,8 +75,8 @@ function derive2(baseURL, remote, existing) {
|
|
|
75
75
|
const templates = new Map(existing.map((model) => [model.id, model]));
|
|
76
76
|
const result = new Map;
|
|
77
77
|
for (const item of remote) {
|
|
78
|
-
const template = templates.get(
|
|
79
|
-
const id =
|
|
78
|
+
const template = templates.get(ID7.make(item.base_model_id ?? item.hugging_face_id ?? item.id));
|
|
79
|
+
const id = ID7.make(item.id);
|
|
80
80
|
result.set(id, build(id, item, baseURL, template));
|
|
81
81
|
}
|
|
82
82
|
return result;
|
|
@@ -94,10 +94,10 @@ function limit(value, fallback) {
|
|
|
94
94
|
function build(id, remote, baseURL, previous) {
|
|
95
95
|
const cost = previous?.cost[0];
|
|
96
96
|
const input = previous?.limit.input;
|
|
97
|
-
return
|
|
98
|
-
...
|
|
97
|
+
return Info19.make({
|
|
98
|
+
...Info19.default(providerID, id),
|
|
99
99
|
id,
|
|
100
|
-
modelID:
|
|
100
|
+
modelID: ID7.make(remote.id),
|
|
101
101
|
providerID,
|
|
102
102
|
name: remote.name ?? previous?.name ?? remote.id,
|
|
103
103
|
family: previous?.family,
|