@opencode/core 0.0.0-dev-21922 → 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 +7 -7
- package/dist/bus.js +79 -79
- package/dist/chunks/{usage-limits-034tev2y.js → workspace-034tev2y.js} +2 -2
- package/dist/chunks/{usage-limits-pf357wtm.js → workspace-03cg90a5.js} +29 -27
- package/dist/chunks/{usage-limits-cyjt7j27.js → workspace-05hcn35g.js} +58 -51
- package/dist/chunks/{usage-limits-c71jd0w1.js → workspace-0b2278mc.js} +58 -58
- package/dist/chunks/{usage-limits-jsghge5n.js → workspace-0cxeed95.js} +6 -6
- package/dist/chunks/{usage-limits-tt5vrtnd.js → workspace-0wtxmv38.js} +18 -14
- package/dist/chunks/{usage-limits-hw9efqx5.js → workspace-0x9e628c.js} +36 -36
- package/dist/chunks/{usage-limits-41qpfaqk.js → workspace-0yt736da.js} +22 -22
- package/dist/chunks/{usage-limits-sewrnvqp.js → workspace-115742jf.js} +28 -28
- package/dist/chunks/{usage-limits-11hfp36g.js → workspace-11hfp36g.js} +1 -1
- package/dist/chunks/{usage-limits-da8a3238.js → workspace-1b28s763.js} +17 -17
- package/dist/chunks/{usage-limits-6fcb95c6.js → workspace-1bb8zgeb.js} +8 -8
- package/dist/chunks/{usage-limits-z5g0wk4p.js → workspace-1bssk9xk.js} +5 -5
- package/dist/chunks/{usage-limits-gfhc0hb1.js → workspace-1e9r6beh.js} +15 -15
- package/dist/chunks/{usage-limits-1ep2p91f.js → workspace-1ep2p91f.js} +2 -2
- package/dist/chunks/{usage-limits-hdfrs5mg.js → workspace-1j0p5zqx.js} +9 -9
- package/dist/chunks/{usage-limits-5fjb7ams.js → workspace-1jakw16s.js} +2 -2
- package/dist/chunks/{usage-limits-n01qhj0y.js → workspace-1kn6jdkn.js} +4 -4
- package/dist/chunks/{usage-limits-c7nc8r0y.js → workspace-1rdpnva5.js} +21 -21
- package/dist/chunks/{usage-limits-1x2knyw4.js → workspace-1x2knyw4.js} +1 -1
- package/dist/chunks/{usage-limits-vrm0gnkg.js → workspace-1yms9fvm.js} +22 -22
- package/dist/chunks/{usage-limits-204s3925.js → workspace-204s3925.js} +1 -1
- package/dist/chunks/{usage-limits-ppx83vn9.js → workspace-21g12dr6.js} +43 -43
- package/dist/chunks/{usage-limits-httc3ny9.js → workspace-25wbv3kn.js} +3 -3
- package/dist/chunks/{usage-limits-0e2mqxgr.js → workspace-26asr065.js} +8 -8
- package/dist/chunks/{usage-limits-s7w3vg3t.js → workspace-2q3pw4f4.js} +3 -3
- package/dist/chunks/{usage-limits-0w2jttgf.js → workspace-2w13yf8v.js} +2 -2
- package/dist/chunks/{usage-limits-vcsf46ab.js → workspace-2z0bbf9q.js} +11 -11
- package/dist/chunks/{usage-limits-5pqa69a9.js → workspace-31h7jx7a.js} +48 -37
- package/dist/chunks/{usage-limits-6kqv4y7c.js → workspace-32s63gzk.js} +17 -19
- package/dist/chunks/{usage-limits-2t8n36db.js → workspace-3a7vrk06.js} +11 -11
- package/dist/chunks/{usage-limits-9me8r9me.js → workspace-3d1z145j.js} +24 -24
- package/dist/chunks/{usage-limits-bp0v66vn.js → workspace-3h9vfbt2.js} +9 -9
- package/dist/chunks/{usage-limits-3hepkmqq.js → workspace-3hepkmqq.js} +1 -1
- package/dist/chunks/{usage-limits-731keyrx.js → workspace-3j1m3tq4.js} +8 -2
- package/dist/chunks/{usage-limits-3nnrz6f6.js → workspace-3nnrz6f6.js} +1 -1
- package/dist/chunks/{usage-limits-1q93jaz5.js → workspace-3tkbzst4.js} +8 -8
- package/dist/chunks/{usage-limits-xt31cxt3.js → workspace-3vf9nnam.js} +9 -9
- package/dist/chunks/{usage-limits-qqf54ck0.js → workspace-3xtarm87.js} +8 -8
- package/dist/chunks/{usage-limits-1mbq4spa.js → workspace-41gw1q61.js} +19 -19
- package/dist/chunks/{usage-limits-zsss5rke.js → workspace-4f77jkmz.js} +22 -22
- package/dist/chunks/{usage-limits-thxwdnj5.js → workspace-4n4j58bv.js} +213 -194
- package/dist/chunks/{usage-limits-4pyp9zr9.js → workspace-4pyp9zr9.js} +1 -1
- package/dist/chunks/{usage-limits-1n7xqf83.js → workspace-4r0ztz0m.js} +7 -7
- package/dist/chunks/{usage-limits-4v008n1t.js → workspace-4v008n1t.js} +1 -1
- package/dist/chunks/{usage-limits-z11pmy76.js → workspace-4watfg9m.js} +11 -11
- package/dist/chunks/{usage-limits-df5wz3aa.js → workspace-51em56x4.js} +13 -10
- package/dist/chunks/{usage-limits-5enarcya.js → workspace-5enarcya.js} +2 -2
- package/dist/chunks/{usage-limits-cffg183s.js → workspace-5m8pjz4h.js} +32 -32
- package/dist/chunks/{usage-limits-5m9w47nd.js → workspace-5m9w47nd.js} +1 -1
- package/dist/chunks/{usage-limits-9cf51smv.js → workspace-5sxvsbaz.js} +17 -17
- package/dist/chunks/{usage-limits-nz7ydnky.js → workspace-5x26af84.js} +4 -4
- package/dist/chunks/{usage-limits-mx2hpj3w.js → workspace-608ahxn3.js} +4 -4
- package/dist/chunks/{usage-limits-81s6gp0d.js → workspace-6739jmjn.js} +5 -5
- package/dist/chunks/{usage-limits-hey5d68j.js → workspace-6c09pra0.js} +22 -22
- package/dist/chunks/{usage-limits-6esdw8yj.js → workspace-6esdw8yj.js} +1 -1
- package/dist/chunks/{usage-limits-zgjdg34p.js → workspace-6f9jk43g.js} +27 -27
- package/dist/chunks/{usage-limits-xn2qebtj.js → workspace-6kasyq0d.js} +6 -4
- package/dist/chunks/{usage-limits-49mr2hqv.js → workspace-6n180eb9.js} +35 -35
- package/dist/chunks/{usage-limits-7vfr41g1.js → workspace-6sqa993f.js} +9 -9
- package/dist/chunks/{usage-limits-ja63h2sr.js → workspace-6xqtcmxs.js} +5 -5
- package/dist/chunks/{usage-limits-jjhjh3kk.js → workspace-70s3x0a6.js} +27 -28
- package/dist/chunks/{usage-limits-yyhawyxv.js → workspace-71gcaexf.js} +27 -27
- package/dist/chunks/{usage-limits-rz5xez4e.js → workspace-755bmxs3.js} +16 -16
- package/dist/chunks/{usage-limits-7bmhse3q.js → workspace-7bmhse3q.js} +1 -1
- package/dist/chunks/{usage-limits-n2ednh3b.js → workspace-7jhsbrss.js} +11 -11
- package/dist/chunks/{usage-limits-pf8h48ke.js → workspace-7pa3t2xk.js} +11 -11
- package/dist/chunks/{usage-limits-fmpdeqb5.js → workspace-7qdazcae.js} +9 -9
- package/dist/chunks/{usage-limits-7w2ypzdf.js → workspace-7w2ypzdf.js} +1 -1
- package/dist/chunks/{usage-limits-51bncfz5.js → workspace-830eskpr.js} +35 -35
- package/dist/chunks/{usage-limits-bww9hm97.js → workspace-8hsrsqw0.js} +29 -29
- package/dist/chunks/{usage-limits-cnj75yzs.js → workspace-8r9nj4s8.js} +4 -4
- package/dist/chunks/{usage-limits-8wtp7s3z.js → workspace-8wtp7s3z.js} +1 -1
- package/dist/chunks/workspace-8yc2jv87.js +257 -0
- package/dist/chunks/{usage-limits-017htdkw.js → workspace-90a4dvkd.js} +15 -15
- package/dist/chunks/{usage-limits-maspj1v3.js → workspace-90zstvax.js} +44 -8
- package/dist/chunks/workspace-99yevx5r.js +513 -0
- package/dist/chunks/{usage-limits-9cx9sm2q.js → workspace-9cx9sm2q.js} +1 -1
- package/dist/chunks/{usage-limits-rg861281.js → workspace-9era1v6z.js} +51 -51
- package/dist/chunks/{usage-limits-afygg0ym.js → workspace-9gadynp5.js} +25 -25
- package/dist/chunks/{usage-limits-bn7trhcc.js → workspace-9ha38bm5.js} +4 -4
- package/dist/chunks/{usage-limits-sg4gyp2q.js → workspace-9phxzr4p.js} +35 -35
- package/dist/chunks/{usage-limits-598bqetn.js → workspace-9r7wjzbr.js} +34 -34
- package/dist/chunks/{usage-limits-zh7bbm8x.js → workspace-9z9tayqc.js} +9 -9
- package/dist/chunks/{usage-limits-4vwy4jat.js → workspace-a6h2hm85.js} +54 -54
- package/dist/chunks/{usage-limits-7tpyp9vw.js → workspace-aedwt843.js} +8 -8
- package/dist/chunks/{usage-limits-6m26wt0b.js → workspace-afyka953.js} +9 -9
- package/dist/chunks/{usage-limits-ebt9h4q4.js → workspace-akmjs5z5.js} +39 -39
- package/dist/chunks/{usage-limits-enbshayc.js → workspace-amkjttct.js} +9 -9
- package/dist/chunks/{usage-limits-nbx95k9y.js → workspace-amxp7tb6.js} +22 -20
- package/dist/chunks/{usage-limits-dgat6cf4.js → workspace-awztprj3.js} +5 -3
- package/dist/chunks/{usage-limits-ayjs7tqn.js → workspace-ayjs7tqn.js} +2 -2
- package/dist/chunks/{usage-limits-4jyfxaep.js → workspace-b19sr9k5.js} +21 -21
- package/dist/chunks/workspace-b1bdn9ww.js +18 -0
- package/dist/chunks/{usage-limits-05nyajy2.js → workspace-b50bzspk.js} +4 -4
- package/dist/chunks/{usage-limits-b6vsg801.js → workspace-b6vsg801.js} +2 -2
- package/dist/chunks/{usage-limits-k1s2y5nr.js → workspace-befcg3vk.js} +10 -10
- package/dist/chunks/{usage-limits-wjj7prxr.js → workspace-beh6qq61.js} +11 -0
- package/dist/chunks/{usage-limits-gf435z7c.js → workspace-bffx5779.js} +16 -16
- package/dist/chunks/{usage-limits-vrcsa8qx.js → workspace-bgm817xr.js} +9 -9
- package/dist/chunks/{usage-limits-xvxtnz2r.js → workspace-bj6yd2m6.js} +11 -11
- package/dist/chunks/{usage-limits-bstexjd6.js → workspace-bstexjd6.js} +1 -1
- package/dist/chunks/{usage-limits-5kjdegzn.js → workspace-btvs6m9s.js} +25 -25
- package/dist/chunks/{usage-limits-rfn9smw4.js → workspace-c7k55dj2.js} +1 -1
- package/dist/chunks/{usage-limits-8ddem2bh.js → workspace-cayjy6n6.js} +16 -16
- package/dist/chunks/{usage-limits-bsq5a7tz.js → workspace-ckzatb6h.js} +14 -14
- package/dist/chunks/{usage-limits-1ey8cgx4.js → workspace-cpzhveq8.js} +4 -4
- package/dist/chunks/{usage-limits-grvpkp8m.js → workspace-ctxfhcf9.js} +11 -11
- package/dist/chunks/{usage-limits-b0mv4wxm.js → workspace-cwrgdav8.js} +2 -2
- package/dist/chunks/{usage-limits-98j1bw8x.js → workspace-cyxjym35.js} +3 -3
- package/dist/chunks/{usage-limits-kkqethq7.js → workspace-d2887f8n.js} +4 -4
- package/dist/chunks/{usage-limits-d4v9tmah.js → workspace-d4v9tmah.js} +2 -2
- package/dist/chunks/{usage-limits-gtn06jkh.js → workspace-d7mpa99n.js} +84 -84
- package/dist/chunks/{usage-limits-3p9c60sq.js → workspace-d80v8vzq.js} +26 -24
- package/dist/chunks/{usage-limits-gwf9348p.js → workspace-dk4vvp25.js} +26 -26
- package/dist/chunks/{usage-limits-3rpwkwfp.js → workspace-dm94hefv.js} +43 -43
- package/dist/chunks/{usage-limits-p7f9amnf.js → workspace-drvbhkez.js} +6 -6
- package/dist/chunks/{usage-limits-j113cymg.js → workspace-dt77769w.js} +2 -2
- package/dist/chunks/{usage-limits-am28afsd.js → workspace-dw8ve4v4.js} +10 -11
- package/dist/chunks/{usage-limits-t3eatzzt.js → workspace-dwwyec8z.js} +6 -6
- package/dist/chunks/{usage-limits-rq2sgyhr.js → workspace-dynac9eb.js} +13 -13
- package/dist/chunks/{usage-limits-e07q2w5p.js → workspace-e07q2w5p.js} +1 -1
- package/dist/chunks/{usage-limits-8k8pzbp4.js → workspace-e471twwt.js} +8 -8
- package/dist/chunks/{usage-limits-e834z07m.js → workspace-e834z07m.js} +1 -1
- package/dist/chunks/{usage-limits-19gpxhf0.js → workspace-e8jqfb1a.js} +12 -12
- package/dist/chunks/{usage-limits-w40kn9e0.js → workspace-ehk1qjjw.js} +45 -45
- package/dist/chunks/{usage-limits-x9b32rzn.js → workspace-ep0wsmvm.js} +30 -30
- package/dist/chunks/{usage-limits-4f6bgrg8.js → workspace-ery7kzhb.js} +2 -2
- package/dist/chunks/{usage-limits-dmkj1tz7.js → workspace-ey35m0mc.js} +9 -9
- package/dist/chunks/{usage-limits-1g9ba1yb.js → workspace-ez0rpz4z.js} +36 -36
- package/dist/chunks/{usage-limits-0rmv48be.js → workspace-f9bbcs0x.js} +12 -12
- package/dist/chunks/{usage-limits-fffv3p7h.js → workspace-fffv3p7h.js} +1 -1
- package/dist/chunks/{usage-limits-fg9p65nk.js → workspace-fg9p65nk.js} +2 -2
- package/dist/chunks/{usage-limits-zxbb6dcf.js → workspace-fp8mkx0f.js} +35 -22
- package/dist/chunks/{usage-limits-x78knad5.js → workspace-frhk2vn3.js} +5 -5
- package/dist/chunks/{usage-limits-tc1bwtzj.js → workspace-fs0zc2gt.js} +6 -6
- package/dist/chunks/{usage-limits-e0vn053m.js → workspace-fxcaqc0y.js} +10 -10
- package/dist/chunks/{usage-limits-m3sf5m0x.js → workspace-g1whzzn7.js} +4 -4
- package/dist/chunks/{usage-limits-jgp92ez5.js → workspace-g5hey3vt.js} +12 -12
- package/dist/chunks/{usage-limits-y0psn2qh.js → workspace-g9navxqt.js} +13 -13
- package/dist/chunks/{usage-limits-gg8p9cgs.js → workspace-gg8p9cgs.js} +3 -3
- package/dist/chunks/{usage-limits-d9wr15jy.js → workspace-gsm10rvf.js} +35 -35
- package/dist/chunks/{usage-limits-03efvwc7.js → workspace-gxk0f8v3.js} +12 -12
- package/dist/chunks/{usage-limits-7xsh356b.js → workspace-gxqvyt19.js} +5 -5
- package/dist/chunks/{usage-limits-7q318b7x.js → workspace-h5edevtj.js} +74 -74
- package/dist/chunks/{usage-limits-0h3ekpfr.js → workspace-h7mq0gsg.js} +2 -2
- package/dist/chunks/{usage-limits-p1y3scnp.js → workspace-h8ydc4kt.js} +16 -16
- package/dist/chunks/{usage-limits-sjt6c43d.js → workspace-haxfm848.js} +10 -10
- package/dist/chunks/{usage-limits-hfgk9wzg.js → workspace-hfgk9wzg.js} +1 -1
- package/dist/chunks/{usage-limits-ptm0a8dx.js → workspace-hfqt73mn.js} +11 -11
- package/dist/chunks/{usage-limits-zb5gs1ba.js → workspace-hm291q16.js} +3 -3
- package/dist/chunks/{usage-limits-6pjqjmy2.js → workspace-hpg1pkwy.js} +2 -2
- package/dist/chunks/{usage-limits-972kaxpv.js → workspace-hr7waqx2.js} +12 -12
- package/dist/chunks/{usage-limits-9q3x3rnx.js → workspace-ht34p3rm.js} +3 -3
- package/dist/chunks/{usage-limits-vm463weg.js → workspace-hvw13sdg.js} +17 -17
- package/dist/chunks/{usage-limits-q84ept6j.js → workspace-j5sbsz7w.js} +15 -15
- package/dist/chunks/{usage-limits-2e93rzzy.js → workspace-j6v813za.js} +54 -38
- package/dist/chunks/{usage-limits-m97p4zfb.js → workspace-jergy4yb.js} +15 -15
- package/dist/chunks/{usage-limits-91rj84md.js → workspace-jfaecv01.js} +2 -2
- package/dist/chunks/{usage-limits-09a8m3xd.js → workspace-jn88007r.js} +9 -9
- package/dist/chunks/{usage-limits-np12dgr8.js → workspace-jnyr2zd2.js} +4 -4
- package/dist/chunks/{usage-limits-5qg6dt84.js → workspace-jskh73wk.js} +18 -18
- package/dist/chunks/{usage-limits-g5h9c0rr.js → workspace-jtnps1zs.js} +2 -2
- package/dist/chunks/{usage-limits-4f7671vw.js → workspace-jzavwc5a.js} +10 -10
- package/dist/chunks/{usage-limits-04wrc2a0.js → workspace-k6ng50pn.js} +5 -5
- package/dist/chunks/{usage-limits-k814nvkf.js → workspace-k814nvkf.js} +1 -1
- package/dist/chunks/{usage-limits-mt2kpseg.js → workspace-k8ndw37r.js} +51 -51
- package/dist/chunks/{usage-limits-bzr3ws0g.js → workspace-k8pk7m1a.js} +33 -33
- package/dist/chunks/{usage-limits-g5w2gpe1.js → workspace-ka4q668c.js} +18 -18
- package/dist/chunks/{usage-limits-qr5y3ppe.js → workspace-kb4jv8gq.js} +22 -22
- package/dist/chunks/{usage-limits-dvkbf0fy.js → workspace-kkv0936x.js} +17 -17
- package/dist/chunks/{usage-limits-a07t2w3m.js → workspace-kqg80s2x.js} +19 -19
- package/dist/chunks/{usage-limits-08j3fqcb.js → workspace-krq85k1q.js} +4 -4
- package/dist/chunks/{usage-limits-kt3bjfbg.js → workspace-kt3bjfbg.js} +1 -1
- package/dist/chunks/{usage-limits-w7wb1kw0.js → workspace-kww0x7wp.js} +20 -20
- package/dist/chunks/{usage-limits-3g307r2d.js → workspace-m061cbn2.js} +22 -22
- package/dist/chunks/{usage-limits-m1714858.js → workspace-m1714858.js} +1 -1
- package/dist/chunks/{usage-limits-jj2zqra8.js → workspace-m9ptjqeh.js} +7 -7
- package/dist/chunks/{usage-limits-m9w0rfyh.js → workspace-m9w0rfyh.js} +1 -1
- package/dist/chunks/{usage-limits-1v0pdvat.js → workspace-mc5hffvt.js} +13 -13
- package/dist/chunks/{usage-limits-2kg89srt.js → workspace-mmx1mfjr.js} +4 -4
- package/dist/chunks/{usage-limits-z3czf3fh.js → workspace-my7hrdx3.js} +9 -9
- package/dist/chunks/{usage-limits-5ztzzwt3.js → workspace-n037b2rv.js} +12 -9
- package/dist/chunks/{usage-limits-sxsrf208.js → workspace-n4njqkes.js} +27 -27
- package/dist/chunks/{usage-limits-n8gxr7mj.js → workspace-n4yb62ce.js} +23 -23
- package/dist/chunks/{usage-limits-6jrjvs1q.js → workspace-n66c6y3m.js} +6 -6
- package/dist/chunks/{usage-limits-nah043kf.js → workspace-nah043kf.js} +1 -1
- package/dist/chunks/{usage-limits-bf8fdtcb.js → workspace-nc159y24.js} +40 -40
- package/dist/chunks/{usage-limits-82yknam4.js → workspace-njaxvrn0.js} +15 -15
- package/dist/chunks/{usage-limits-s6xn3z5f.js → workspace-nnb56zdr.js} +11 -11
- package/dist/chunks/{usage-limits-nmrzq4b4.js → workspace-nq1gfgg7.js} +17 -17
- package/dist/chunks/{usage-limits-k2ehsfqk.js → workspace-ntgpnhzh.js} +7 -7
- package/dist/chunks/{usage-limits-p015t6z3.js → workspace-p015t6z3.js} +2 -2
- package/dist/chunks/{usage-limits-cpvd08na.js → workspace-p0tsr9h6.js} +4 -4
- package/dist/chunks/{usage-limits-g6vqe96w.js → workspace-p2remtr5.js} +26 -26
- package/dist/chunks/{usage-limits-1x75wf9g.js → workspace-p3p972wa.js} +5 -5
- package/dist/chunks/workspace-p71gwv9c.js +153 -0
- package/dist/chunks/{usage-limits-1yq9hg58.js → workspace-p7vhpwh8.js} +5 -5
- package/dist/chunks/{usage-limits-g5wzwpvc.js → workspace-p7yet7aw.js} +25 -25
- package/dist/chunks/{usage-limits-d3n1hdek.js → workspace-p9az4c9x.js} +44 -32
- package/dist/chunks/{usage-limits-t9rbc5fr.js → workspace-pcbcnm4r.js} +23 -23
- package/dist/chunks/{usage-limits-sbgvc55t.js → workspace-pd9dp0pk.js} +48 -48
- package/dist/chunks/{usage-limits-fw516jka.js → workspace-pjzas12s.js} +4 -4
- package/dist/chunks/{usage-limits-pknna89w.js → workspace-pknna89w.js} +1 -1
- package/dist/chunks/{usage-limits-fkckm43x.js → workspace-pxc4avcg.js} +11 -11
- package/dist/chunks/{usage-limits-q6n5978e.js → workspace-q0dc1a9h.js} +21 -21
- package/dist/chunks/{usage-limits-mg0ejb6w.js → workspace-q2dh4fth.js} +9 -9
- package/dist/chunks/{usage-limits-xbav9n5z.js → workspace-q2yncp4a.js} +15 -15
- package/dist/chunks/{usage-limits-qdcjsrgg.js → workspace-q371acht.js} +29 -29
- package/dist/chunks/{usage-limits-21pdxbx2.js → workspace-qem07kdc.js} +6 -6
- package/dist/chunks/{usage-limits-p9a4fkqx.js → workspace-qm6s8ej8.js} +8 -8
- package/dist/chunks/{usage-limits-qp7r0hxv.js → workspace-qp7r0hxv.js} +1 -1
- package/dist/chunks/{usage-limits-r0yr0wbs.js → workspace-r0yr0wbs.js} +1 -1
- package/dist/chunks/{usage-limits-r542h3bh.js → workspace-r542h3bh.js} +1 -1
- package/dist/chunks/{usage-limits-d390zwf3.js → workspace-r7xar5ns.js} +8 -8
- package/dist/chunks/{usage-limits-rb9dy4dg.js → workspace-rb9dy4dg.js} +1 -1
- package/dist/chunks/{usage-limits-5bcx7x9c.js → workspace-rg08y4e9.js} +23 -23
- package/dist/chunks/{usage-limits-zk9m6t02.js → workspace-rg6x42m8.js} +14 -14
- package/dist/chunks/{usage-limits-z226nxt7.js → workspace-rhk24g9e.js} +5 -5
- package/dist/chunks/{usage-limits-kw773dbp.js → workspace-rhyf1zg1.js} +15 -15
- package/dist/chunks/{usage-limits-6a8c7h5g.js → workspace-rph8wvgf.js} +70 -47
- package/dist/chunks/{usage-limits-d7gzgry1.js → workspace-rrwqa0x9.js} +21 -21
- package/dist/chunks/{usage-limits-c75x6rdk.js → workspace-rsya75cp.js} +1 -1
- package/dist/chunks/{usage-limits-rt5dr6hb.js → workspace-rt5dr6hb.js} +1 -1
- package/dist/chunks/{usage-limits-fjw78s5f.js → workspace-rwswcgad.js} +11 -11
- package/dist/chunks/{usage-limits-04pddjsn.js → workspace-s00mzv4c.js} +24 -33
- package/dist/chunks/{usage-limits-cbxpjjp2.js → workspace-s396tgzf.js} +28 -9
- package/dist/chunks/{usage-limits-61ennm6n.js → workspace-s626qfae.js} +4 -4
- package/dist/chunks/{usage-limits-c4vfmmrn.js → workspace-s6p20e1k.js} +8 -8
- package/dist/chunks/{usage-limits-q06akkn6.js → workspace-s6x6bhdw.js} +6 -6
- package/dist/chunks/{usage-limits-rhs2npc4.js → workspace-s73mcn75.js} +21 -21
- package/dist/chunks/{usage-limits-9dkxk464.js → workspace-s9r95bva.js} +35 -35
- package/dist/chunks/{usage-limits-sa3fpqfw.js → workspace-sa3fpqfw.js} +2 -2
- package/dist/chunks/{usage-limits-pk5kr4hd.js → workspace-sfdw5d12.js} +11 -11
- package/dist/chunks/{usage-limits-zczrc06z.js → workspace-sh1n2w0x.js} +16 -16
- package/dist/chunks/{usage-limits-55y9k0b4.js → workspace-sk5cz3k6.js} +23 -19
- package/dist/chunks/{usage-limits-3t5emda5.js → workspace-sncehx48.js} +15 -15
- package/dist/chunks/{usage-limits-b9my16kh.js → workspace-sp13ydqz.js} +24 -24
- package/dist/chunks/{usage-limits-sqjzf8x2.js → workspace-sqjzf8x2.js} +1 -1
- package/dist/chunks/{usage-limits-zkg84ctx.js → workspace-svcy3p9a.js} +4 -2
- package/dist/chunks/{usage-limits-kpm5e2na.js → workspace-t90jtn3y.js} +16 -16
- package/dist/chunks/{usage-limits-p9wrd8qj.js → workspace-ta4g3tqy.js} +8 -8
- package/dist/chunks/{usage-limits-tczq8hjw.js → workspace-tczq8hjw.js} +1 -1
- package/dist/chunks/{usage-limits-88g4cw8v.js → workspace-tk6jy24y.js} +47 -47
- package/dist/chunks/{usage-limits-5w1mdqt7.js → workspace-tmd1r8tg.js} +4 -4
- package/dist/chunks/{usage-limits-bp7ec9ny.js → workspace-tms1d3r7.js} +21 -21
- package/dist/chunks/{usage-limits-9pcgsarm.js → workspace-tmvc1kcy.js} +27 -27
- package/dist/chunks/{usage-limits-twv2r8f4.js → workspace-twssxy5n.js} +2 -2
- package/dist/chunks/{usage-limits-v2r1d0zg.js → workspace-v2r1d0zg.js} +1 -1
- package/dist/chunks/{usage-limits-veqvce7d.js → workspace-veqvce7d.js} +1 -1
- package/dist/chunks/{usage-limits-8bc2ahr8.js → workspace-vg0erq9k.js} +4 -4
- package/dist/chunks/{usage-limits-vz6tneve.js → workspace-vp7nv6ts.js} +5 -5
- package/dist/chunks/{usage-limits-rfzw4ash.js → workspace-vswznq9x.js} +11 -11
- package/dist/chunks/{usage-limits-xdqampcn.js → workspace-vxrwmfev.js} +4 -4
- package/dist/chunks/workspace-vznp0c4w.js +26 -0
- package/dist/chunks/{usage-limits-44ewphs4.js → workspace-w1z9n04s.js} +63 -44
- package/dist/chunks/{usage-limits-mqywm14h.js → workspace-w2f8g9ey.js} +10 -10
- package/dist/chunks/{usage-limits-w3wsvvr9.js → workspace-w3wsvvr9.js} +1 -1
- package/dist/chunks/{usage-limits-rcf5z941.js → workspace-w4cmxjpb.js} +16 -16
- package/dist/chunks/{usage-limits-wr3re1en.js → workspace-w687dnns.js} +4 -4
- package/dist/chunks/{usage-limits-0t9ezrky.js → workspace-w7qwarvw.js} +22 -22
- package/dist/chunks/{usage-limits-76cb1hcw.js → workspace-w8qtt4th.js} +4 -4
- package/dist/chunks/{usage-limits-wakvkjy4.js → workspace-wakvkjy4.js} +1 -1
- package/dist/chunks/{usage-limits-zn491x3r.js → workspace-wctr8ape.js} +6 -6
- package/dist/chunks/{usage-limits-wd87259q.js → workspace-wd87259q.js} +1 -1
- package/dist/chunks/{usage-limits-dnf89vfw.js → workspace-xby723hm.js} +8 -8
- package/dist/chunks/{usage-limits-5bvwpje3.js → workspace-xhf31v2h.js} +23 -23
- package/dist/chunks/{usage-limits-9t8mm2bk.js → workspace-xm65xzy2.js} +47 -47
- package/dist/chunks/{usage-limits-00y87jmz.js → workspace-xmt3nt5n.js} +27 -25
- package/dist/chunks/{usage-limits-tby5mkys.js → workspace-xn8rwapq.js} +5 -5
- package/dist/chunks/{usage-limits-m34dtctp.js → workspace-xq21eycy.js} +29 -29
- package/dist/chunks/{usage-limits-62qqncfb.js → workspace-xq4c6pbn.js} +21 -21
- package/dist/chunks/{usage-limits-xwxxqkka.js → workspace-y4sbm31z.js} +323 -323
- package/dist/chunks/{usage-limits-6r5vfrd2.js → workspace-y5qv99bq.js} +21 -21
- package/dist/chunks/{usage-limits-as0h5ak1.js → workspace-y8r2caxt.js} +37 -37
- package/dist/chunks/{usage-limits-yara3q77.js → workspace-yara3q77.js} +2 -2
- package/dist/chunks/{usage-limits-yb20nhc3.js → workspace-yb20nhc3.js} +1 -1
- package/dist/chunks/{usage-limits-paends5k.js → workspace-yd1z09nw.js} +93 -92
- package/dist/chunks/{usage-limits-fvy6sq6t.js → workspace-yd4hs1rm.js} +31 -31
- package/dist/chunks/{usage-limits-rfhefnxg.js → workspace-ym4mb7j3.js} +11 -11
- package/dist/chunks/{usage-limits-bst727gy.js → workspace-ynvxk982.js} +10 -10
- package/dist/chunks/{usage-limits-k3hv7qsk.js → workspace-ysxs50rr.js} +32 -32
- package/dist/chunks/{usage-limits-90epfbx4.js → workspace-ytfkq0y6.js} +13 -13
- package/dist/chunks/{usage-limits-k2ty6p27.js → workspace-yx85ewrr.js} +12 -12
- package/dist/chunks/{usage-limits-z0bkrqjs.js → workspace-z0bkrqjs.js} +1 -1
- package/dist/chunks/{usage-limits-z38nccrw.js → workspace-z38nccrw.js} +1 -1
- package/dist/chunks/{usage-limits-yvd776ry.js → workspace-z536rte3.js} +29 -29
- package/dist/chunks/{usage-limits-5nxz0j3x.js → workspace-zathn158.js} +41 -41
- package/dist/chunks/{usage-limits-4xvmh7wp.js → workspace-zgkm4kzm.js} +3 -3
- package/dist/chunks/{usage-limits-5xdg5x94.js → workspace-zgs7qsk5.js} +16 -14
- package/dist/chunks/{usage-limits-678eqd6f.js → workspace-zv4bvann.js} +29 -29
- package/dist/chunks/{usage-limits-8bzt12aq.js → workspace-zwz8wfn8.js} +3 -3
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +3 -3
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +89 -89
- package/dist/config/discovery.js +92 -92
- package/dist/config/integration.js +1 -1
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +107 -107
- package/dist/config/plugin/agent.js +121 -121
- package/dist/config/plugin/command.js +219 -219
- 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 +123 -123
- package/dist/config/plugin/mcp.js +128 -128
- package/dist/config/plugin/policy.js +123 -123
- package/dist/config/plugin/provider.js +120 -120
- package/dist/config/plugin/reference.js +123 -123
- package/dist/config/plugin/shell.js +121 -121
- package/dist/config/plugin/skill-file.js +138 -138
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +143 -143
- package/dist/config/plugin/snapshot.js +121 -121
- package/dist/config/plugin/source.js +122 -122
- package/dist/config/plugin/tool-output.js +122 -122
- package/dist/config/plugin/websearch.js +120 -120
- 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 +124 -124
- 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 +72 -72
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/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 +100 -100
- 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 +1 -1
- 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 +104 -102
- 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 +6 -6
- package/dist/filesystem/location-watcher.js +234 -234
- 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 +9 -9
- package/dist/filesystem.js +112 -112
- package/dist/form.js +88 -88
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +95 -95
- 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 +88 -88
- package/dist/instructions/builtins.js +95 -95
- 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 +95 -95
- package/dist/managed-policy.js +7 -7
- package/dist/mcp/client.js +99 -99
- package/dist/mcp/index.js +109 -109
- package/dist/mcp/instructions.js +164 -164
- 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 +118 -117
- 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 +80 -80
- package/dist/plugin/command.js +108 -108
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +225 -225
- 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 +123 -123
- 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 +130 -130
- 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 +106 -106
- 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 +80 -80
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +139 -139
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +362 -361
- 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 +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- 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 +234 -234
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +96 -96
- package/dist/provider.js +107 -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 +94 -94
- package/dist/repository-cache.js +88 -88
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +105 -105
- 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 +162 -162
- 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 +231 -231
- 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 +128 -128
- 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 +79 -79
- 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 +215 -215
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +192 -192
- package/dist/session/to-session-error.js +140 -140
- package/dist/session/transfer.js +227 -227
- package/dist/session/usage.js +1 -1
- package/dist/session.js +225 -225
- 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 +167 -167
- package/dist/tool/plugin/edit.js +156 -156
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +156 -156
- package/dist/tool/plugin/grep.js +160 -160
- 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 +218 -218
- package/dist/tool/plugin/skill.js +145 -145
- 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 +143 -143
- package/dist/tool/plugin/write.js +156 -156
- package/dist/tool/read-filesystem.js +108 -108
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- 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.d.ts +5 -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 +6 -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 +95 -95
- 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 +2 -2
- 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 +80 -80
- package/dist/wellknown.js +87 -87
- package/dist/workspace/driver.js +7 -7
- 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 +106 -106
- package/package.json +9 -8
- package/dist/chunks/usage-limits-7ydq43w6.js +0 -352
- package/dist/chunks/usage-limits-867c95q5.js +0 -26
- package/dist/chunks/usage-limits-k62y2wy8.js +0 -18
- package/dist/chunks/usage-limits-tdttqht2.js +0 -257
- /package/dist/chunks/{usage-limits-0qkdqm5v.js → workspace-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{usage-limits-0zkw76rk.js → workspace-0zkw76rk.js} +0 -0
- /package/dist/chunks/{usage-limits-17cy0kzp.js → workspace-17cy0kzp.js} +0 -0
- /package/dist/chunks/{usage-limits-1cnp2v09.js → workspace-1cnp2v09.js} +0 -0
- /package/dist/chunks/{usage-limits-24dcb14g.js → workspace-24dcb14g.js} +0 -0
- /package/dist/chunks/{usage-limits-2710q6r3.js → workspace-2710q6r3.js} +0 -0
- /package/dist/chunks/{usage-limits-2bv980vf.js → workspace-2bv980vf.js} +0 -0
- /package/dist/chunks/{usage-limits-2c3vjs8z.js → workspace-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{usage-limits-359p4xyc.js → workspace-359p4xyc.js} +0 -0
- /package/dist/chunks/{usage-limits-3asan66x.js → workspace-3asan66x.js} +0 -0
- /package/dist/chunks/{usage-limits-3v8g72cx.js → workspace-3v8g72cx.js} +0 -0
- /package/dist/chunks/{usage-limits-3wcehsnq.js → workspace-3wcehsnq.js} +0 -0
- /package/dist/chunks/{usage-limits-43n2bw4t.js → workspace-43n2bw4t.js} +0 -0
- /package/dist/chunks/{usage-limits-4knz6hnm.js → workspace-4knz6hnm.js} +0 -0
- /package/dist/chunks/{usage-limits-4m86bj6y.js → workspace-4m86bj6y.js} +0 -0
- /package/dist/chunks/{usage-limits-4vcrnpx2.js → workspace-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{usage-limits-4y7fprxs.js → workspace-4y7fprxs.js} +0 -0
- /package/dist/chunks/{usage-limits-53557ph1.js → workspace-53557ph1.js} +0 -0
- /package/dist/chunks/{usage-limits-550bvhaj.js → workspace-550bvhaj.js} +0 -0
- /package/dist/chunks/{usage-limits-5w3e23ze.js → workspace-5w3e23ze.js} +0 -0
- /package/dist/chunks/{usage-limits-6prwharc.js → workspace-6prwharc.js} +0 -0
- /package/dist/chunks/{usage-limits-6q2bdcd1.js → workspace-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{usage-limits-7akdwqpd.js → workspace-7akdwqpd.js} +0 -0
- /package/dist/chunks/{usage-limits-7m9af43g.js → workspace-7m9af43g.js} +0 -0
- /package/dist/chunks/{usage-limits-822emrt2.js → workspace-822emrt2.js} +0 -0
- /package/dist/chunks/{usage-limits-84wd9syh.js → workspace-84wd9syh.js} +0 -0
- /package/dist/chunks/{usage-limits-88xbtdfr.js → workspace-88xbtdfr.js} +0 -0
- /package/dist/chunks/{usage-limits-8n3pysct.js → workspace-8n3pysct.js} +0 -0
- /package/dist/chunks/{usage-limits-8wj87zfr.js → workspace-8wj87zfr.js} +0 -0
- /package/dist/chunks/{usage-limits-9a4afbnw.js → workspace-9a4afbnw.js} +0 -0
- /package/dist/chunks/{usage-limits-9rqn6x4v.js → workspace-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{usage-limits-a058387c.js → workspace-a058387c.js} +0 -0
- /package/dist/chunks/{usage-limits-a6k6eb26.js → workspace-a6k6eb26.js} +0 -0
- /package/dist/chunks/{usage-limits-af5trqkr.js → workspace-af5trqkr.js} +0 -0
- /package/dist/chunks/{usage-limits-afrmfg78.js → workspace-afrmfg78.js} +0 -0
- /package/dist/chunks/{usage-limits-aqzs7mqg.js → workspace-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{usage-limits-atq7p7m5.js → workspace-atq7p7m5.js} +0 -0
- /package/dist/chunks/{usage-limits-bkyjaxrp.js → workspace-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{usage-limits-bmr6ed5q.js → workspace-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{usage-limits-cf4snx6d.js → workspace-cf4snx6d.js} +0 -0
- /package/dist/chunks/{usage-limits-cqv5kn06.js → workspace-cqv5kn06.js} +0 -0
- /package/dist/chunks/{usage-limits-cvy3z8tj.js → workspace-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{usage-limits-d9fn303g.js → workspace-d9fn303g.js} +0 -0
- /package/dist/chunks/{usage-limits-d9jj8t3e.js → workspace-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{usage-limits-dajrwvna.js → workspace-dajrwvna.js} +0 -0
- /package/dist/chunks/{usage-limits-dap0rakb.js → workspace-dap0rakb.js} +0 -0
- /package/dist/chunks/{usage-limits-df08tz66.js → workspace-df08tz66.js} +0 -0
- /package/dist/chunks/{usage-limits-dy18nga0.js → workspace-dy18nga0.js} +0 -0
- /package/dist/chunks/{usage-limits-e5kj55wp.js → workspace-e5kj55wp.js} +0 -0
- /package/dist/chunks/{usage-limits-e73j6tqm.js → workspace-e73j6tqm.js} +0 -0
- /package/dist/chunks/{usage-limits-ec1grn59.js → workspace-ec1grn59.js} +0 -0
- /package/dist/chunks/{usage-limits-eh3zwz77.js → workspace-eh3zwz77.js} +0 -0
- /package/dist/chunks/{usage-limits-emrn6kk6.js → workspace-emrn6kk6.js} +0 -0
- /package/dist/chunks/{usage-limits-f0mxakyp.js → workspace-f0mxakyp.js} +0 -0
- /package/dist/chunks/{usage-limits-f6n9ztr4.js → workspace-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{usage-limits-faypxj3z.js → workspace-faypxj3z.js} +0 -0
- /package/dist/chunks/{usage-limits-fd410y7t.js → workspace-fd410y7t.js} +0 -0
- /package/dist/chunks/{usage-limits-fkpq3x5p.js → workspace-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{usage-limits-g4wezp1m.js → workspace-g4wezp1m.js} +0 -0
- /package/dist/chunks/{usage-limits-g86h250q.js → workspace-g86h250q.js} +0 -0
- /package/dist/chunks/{usage-limits-gebd4c9n.js → workspace-gebd4c9n.js} +0 -0
- /package/dist/chunks/{usage-limits-gftt206x.js → workspace-gftt206x.js} +0 -0
- /package/dist/chunks/{usage-limits-hcxmzztb.js → workspace-hcxmzztb.js} +0 -0
- /package/dist/chunks/{usage-limits-hk9envan.js → workspace-hk9envan.js} +0 -0
- /package/dist/chunks/{usage-limits-j2ntwpah.js → workspace-j2ntwpah.js} +0 -0
- /package/dist/chunks/{usage-limits-j5zkgpj8.js → workspace-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{usage-limits-jjkms2e6.js → workspace-jjkms2e6.js} +0 -0
- /package/dist/chunks/{usage-limits-jr7sbwjy.js → workspace-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{usage-limits-jwfs4k6c.js → workspace-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{usage-limits-jwr30sdr.js → workspace-jwr30sdr.js} +0 -0
- /package/dist/chunks/{usage-limits-jze0r7bz.js → workspace-jze0r7bz.js} +0 -0
- /package/dist/chunks/{usage-limits-jzg6c2d5.js → workspace-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{usage-limits-m18g726c.js → workspace-m18g726c.js} +0 -0
- /package/dist/chunks/{usage-limits-mp448xyj.js → workspace-mp448xyj.js} +0 -0
- /package/dist/chunks/{usage-limits-msx8hqn2.js → workspace-msx8hqn2.js} +0 -0
- /package/dist/chunks/{usage-limits-n05xt0ee.js → workspace-n05xt0ee.js} +0 -0
- /package/dist/chunks/{usage-limits-n3j8tn72.js → workspace-n3j8tn72.js} +0 -0
- /package/dist/chunks/{usage-limits-ncqqe42p.js → workspace-ncqqe42p.js} +0 -0
- /package/dist/chunks/{usage-limits-njntx4h6.js → workspace-njntx4h6.js} +0 -0
- /package/dist/chunks/{usage-limits-q3sfg36h.js → workspace-q3sfg36h.js} +0 -0
- /package/dist/chunks/{usage-limits-q74kybfr.js → workspace-q74kybfr.js} +0 -0
- /package/dist/chunks/{usage-limits-qaymkmh1.js → workspace-qaymkmh1.js} +0 -0
- /package/dist/chunks/{usage-limits-qb87gjwd.js → workspace-qb87gjwd.js} +0 -0
- /package/dist/chunks/{usage-limits-qfa1cgps.js → workspace-qfa1cgps.js} +0 -0
- /package/dist/chunks/{usage-limits-qg3g05ea.js → workspace-qg3g05ea.js} +0 -0
- /package/dist/chunks/{usage-limits-qrg20bc0.js → workspace-qrg20bc0.js} +0 -0
- /package/dist/chunks/{usage-limits-rcb2kzg1.js → workspace-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{usage-limits-sdp7kfr6.js → workspace-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{usage-limits-ssg3fenm.js → workspace-ssg3fenm.js} +0 -0
- /package/dist/chunks/{usage-limits-ve7vex1e.js → workspace-ve7vex1e.js} +0 -0
- /package/dist/chunks/{usage-limits-w803qqfp.js → workspace-w803qqfp.js} +0 -0
- /package/dist/chunks/{usage-limits-wc3fc9cn.js → workspace-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{usage-limits-wer8tq1h.js → workspace-wer8tq1h.js} +0 -0
- /package/dist/chunks/{usage-limits-wtztk69x.js → workspace-wtztk69x.js} +0 -0
- /package/dist/chunks/{usage-limits-x0ckcb58.js → workspace-x0ckcb58.js} +0 -0
- /package/dist/chunks/{usage-limits-x61499pn.js → workspace-x61499pn.js} +0 -0
- /package/dist/chunks/{usage-limits-y44na4kk.js → workspace-y44na4kk.js} +0 -0
- /package/dist/chunks/{usage-limits-y8f7s663.js → workspace-y8f7s663.js} +0 -0
- /package/dist/chunks/{usage-limits-ygaqb7jw.js → workspace-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{usage-limits-ym463w8f.js → workspace-ym463w8f.js} +0 -0
- /package/dist/chunks/{usage-limits-z5v4ffb3.js → workspace-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{usage-limits-z9919s4g.js → workspace-z9919s4g.js} +0 -0
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service85,
|
|
3
|
+
node89
|
|
4
|
+
} from "./workspace-70s3x0a6.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./workspace-204s3925.js";
|
|
9
9
|
import {
|
|
10
10
|
key2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./workspace-s626qfae.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
13
|
+
ID9,
|
|
14
|
+
Service69,
|
|
15
|
+
node72,
|
|
16
|
+
Event14
|
|
17
|
+
} from "./workspace-j6v813za.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
19
|
+
Service80,
|
|
20
|
+
node84
|
|
21
|
+
} from "./workspace-h8ydc4kt.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./workspace-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/provider.ts
|
|
27
27
|
var exports_provider3 = {};
|
|
@@ -31,13 +31,13 @@ __export(exports_provider3, {
|
|
|
31
31
|
Compaction: () => Compaction3,
|
|
32
32
|
DEFAULT_CHUNK_TIMEOUT_MS: () => DEFAULT_CHUNK_TIMEOUT_MS2,
|
|
33
33
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS3,
|
|
34
|
-
Event: () =>
|
|
35
|
-
ID: () =>
|
|
36
|
-
Info: () =>
|
|
34
|
+
Event: () => Event13,
|
|
35
|
+
ID: () => ID8,
|
|
36
|
+
Info: () => Info20,
|
|
37
37
|
LoadError: () => LoadError3,
|
|
38
38
|
Provider: () => exports_provider3,
|
|
39
39
|
Request: () => Request3,
|
|
40
|
-
Service: () =>
|
|
40
|
+
Service: () => Service68,
|
|
41
41
|
Settings: () => Settings2,
|
|
42
42
|
Transport: () => Transport2,
|
|
43
43
|
aisdk: () => aisdk2,
|
|
@@ -49,7 +49,7 @@ __export(exports_provider3, {
|
|
|
49
49
|
mergeOverlay: () => mergeOverlay2,
|
|
50
50
|
modelSettings: () => modelSettings2,
|
|
51
51
|
nativeSettings: () => nativeSettings2,
|
|
52
|
-
node: () =>
|
|
52
|
+
node: () => node71,
|
|
53
53
|
packageName: () => packageName2,
|
|
54
54
|
timeout: () => timeout2,
|
|
55
55
|
timeouts: () => timeouts2
|
|
@@ -69,7 +69,7 @@ import { Provider } from "@opencode/schema/provider";
|
|
|
69
69
|
import { Model } from "@opencode/schema/model";
|
|
70
70
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
71
71
|
import { HttpTimeout } from "@opencode/ai/effect";
|
|
72
|
-
import { isRecord } from "@opencode/
|
|
72
|
+
import { isRecord } from "@opencode/util/record";
|
|
73
73
|
import { importModule, resolveModule } from "@opencode/util/runtime-import";
|
|
74
74
|
import { Credential } from "@opencode/schema/credential";
|
|
75
75
|
import { freeze } from "immer";
|
|
@@ -324,8 +324,8 @@ var Legacy = Schema.StructWithRest(Schema.Struct({
|
|
|
324
324
|
var decode = Schema.decodeUnknownSync(Legacy);
|
|
325
325
|
|
|
326
326
|
// src/provider.ts
|
|
327
|
-
import { Event as
|
|
328
|
-
var
|
|
327
|
+
import { Event as Event13 } from "@opencode/schema/provider";
|
|
328
|
+
var ID8 = Provider.ID;
|
|
329
329
|
var AISDK_PREFIX2 = "aisdk:";
|
|
330
330
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
331
331
|
var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
|
|
@@ -350,6 +350,7 @@ var builtins = new Map([
|
|
|
350
350
|
["@opencode/ai/providers/alibaba/chat", () => import("@opencode/ai/providers/alibaba/chat")],
|
|
351
351
|
["@opencode/ai/providers/alibaba/messages", () => import("@opencode/ai/providers/alibaba/messages")],
|
|
352
352
|
["@opencode/ai/providers/alibaba/responses", () => import("@opencode/ai/providers/alibaba/responses")],
|
|
353
|
+
["@opencode/ai/providers/alibaba/images", () => import("@opencode/ai/providers/alibaba/images")],
|
|
353
354
|
["@opencode/ai/providers/amazon-bedrock", () => import("@opencode/ai/providers/amazon-bedrock")],
|
|
354
355
|
["@opencode/ai/providers/amazon-bedrock/mantle", () => import("@opencode/ai/providers/amazon-bedrock/mantle")],
|
|
355
356
|
[
|
|
@@ -370,18 +371,35 @@ var builtins = new Map([
|
|
|
370
371
|
["@opencode/ai/providers/azure", () => import("@opencode/ai/providers/azure")],
|
|
371
372
|
["@opencode/ai/providers/azure/chat", () => import("@opencode/ai/providers/azure/chat")],
|
|
372
373
|
["@opencode/ai/providers/azure/responses", () => import("@opencode/ai/providers/azure/responses")],
|
|
374
|
+
["@opencode/ai/providers/azure/images", () => import("@opencode/ai/providers/azure/images")],
|
|
373
375
|
["@opencode/ai/providers/baseten", () => import("@opencode/ai/providers/baseten")],
|
|
376
|
+
["@opencode/ai/providers/baseten/decisions", () => import("@opencode/ai/providers/baseten/decisions")],
|
|
374
377
|
["@opencode/ai/providers/cerebras", () => import("@opencode/ai/providers/cerebras")],
|
|
375
378
|
["@opencode/ai/providers/cloudflare-ai-gateway", () => import("@opencode/ai/providers/cloudflare-ai-gateway")],
|
|
379
|
+
[
|
|
380
|
+
"@opencode/ai/providers/cloudflare-ai-gateway/decisions",
|
|
381
|
+
() => import("@opencode/ai/providers/cloudflare-ai-gateway/decisions")
|
|
382
|
+
],
|
|
376
383
|
["@opencode/ai/providers/cloudflare-workers-ai", () => import("@opencode/ai/providers/cloudflare-workers-ai")],
|
|
384
|
+
[
|
|
385
|
+
"@opencode/ai/providers/cloudflare-workers-ai/decisions",
|
|
386
|
+
() => import("@opencode/ai/providers/cloudflare-workers-ai/decisions")
|
|
387
|
+
],
|
|
388
|
+
[
|
|
389
|
+
"@opencode/ai/providers/cloudflare-workers-ai/images",
|
|
390
|
+
() => import("@opencode/ai/providers/cloudflare-workers-ai/images")
|
|
391
|
+
],
|
|
377
392
|
["@opencode/ai/providers/cohere", () => import("@opencode/ai/providers/cohere")],
|
|
378
393
|
["@opencode/ai/providers/cohere/chat", () => import("@opencode/ai/providers/cohere/chat")],
|
|
379
394
|
["@opencode/ai/providers/deepinfra", () => import("@opencode/ai/providers/deepinfra")],
|
|
380
395
|
["@opencode/ai/providers/deepseek", () => import("@opencode/ai/providers/deepseek")],
|
|
381
396
|
["@opencode/ai/providers/digitalocean", () => import("@opencode/ai/providers/digitalocean")],
|
|
397
|
+
["@opencode/ai/providers/digitalocean/decisions", () => import("@opencode/ai/providers/digitalocean/decisions")],
|
|
398
|
+
["@opencode/ai/providers/digitalocean/images", () => import("@opencode/ai/providers/digitalocean/images")],
|
|
382
399
|
["@opencode/ai/providers/fireworks", () => import("@opencode/ai/providers/fireworks")],
|
|
383
400
|
["@opencode/ai/providers/google", () => import("@opencode/ai/providers/google")],
|
|
384
401
|
["@opencode/ai/providers/google/interactions", () => import("@opencode/ai/providers/google/interactions")],
|
|
402
|
+
["@opencode/ai/providers/google/images", () => import("@opencode/ai/providers/google/images")],
|
|
385
403
|
["@opencode/ai/providers/google-vertex", () => import("@opencode/ai/providers/google-vertex")],
|
|
386
404
|
["@opencode/ai/providers/google-vertex/chat", () => import("@opencode/ai/providers/google-vertex/chat")],
|
|
387
405
|
["@opencode/ai/providers/google-vertex/gemini", () => import("@opencode/ai/providers/google-vertex/gemini")],
|
|
@@ -392,6 +410,7 @@ var builtins = new Map([
|
|
|
392
410
|
["@opencode/ai/providers/google-vertex/messages", () => import("@opencode/ai/providers/google-vertex/messages")],
|
|
393
411
|
["@opencode/ai/providers/google-vertex/mistral", () => import("@opencode/ai/providers/google-vertex/mistral")],
|
|
394
412
|
["@opencode/ai/providers/google-vertex/responses", () => import("@opencode/ai/providers/google-vertex/responses")],
|
|
413
|
+
["@opencode/ai/providers/google-vertex/images", () => import("@opencode/ai/providers/google-vertex/images")],
|
|
395
414
|
["@opencode/ai/providers/google-vertex-chat", () => import("@opencode/ai/providers/google-vertex-chat")],
|
|
396
415
|
[
|
|
397
416
|
"@opencode/ai/providers/google-vertex-interactions",
|
|
@@ -417,17 +436,23 @@ var builtins = new Map([
|
|
|
417
436
|
["@opencode/ai/providers/openai", () => import("@opencode/ai/providers/openai")],
|
|
418
437
|
["@opencode/ai/providers/openai/chat", () => import("@opencode/ai/providers/openai/chat")],
|
|
419
438
|
["@opencode/ai/providers/openai/responses", () => import("@opencode/ai/providers/openai/responses")],
|
|
439
|
+
["@opencode/ai/providers/openai/images", () => import("@opencode/ai/providers/openai/images")],
|
|
420
440
|
["@opencode/ai/providers/openai-compatible", () => import("@opencode/ai/providers/openai-compatible")],
|
|
421
441
|
[
|
|
422
442
|
"@opencode/ai/providers/openai-compatible/responses",
|
|
423
443
|
() => import("@opencode/ai/providers/openai-compatible/responses")
|
|
424
444
|
],
|
|
445
|
+
["@opencode/ai/providers/openai-compatible/images", () => import("@opencode/ai/providers/openai-compatible/images")],
|
|
425
446
|
[
|
|
426
447
|
"@opencode/ai/providers/openai-compatible-responses",
|
|
427
448
|
() => import("@opencode/ai/providers/openai-compatible-responses")
|
|
428
449
|
],
|
|
450
|
+
["@opencode/ai/providers/opencode/decisions", () => import("@opencode/ai/providers/opencode/decisions")],
|
|
429
451
|
["@opencode/ai/providers/openrouter", () => import("@opencode/ai/providers/openrouter")],
|
|
452
|
+
["@opencode/ai/providers/openrouter/decisions", () => import("@opencode/ai/providers/openrouter/decisions")],
|
|
453
|
+
["@opencode/ai/providers/openrouter/images", () => import("@opencode/ai/providers/openrouter/images")],
|
|
430
454
|
["@opencode/ai/providers/togetherai", () => import("@opencode/ai/providers/togetherai")],
|
|
455
|
+
["@opencode/ai/providers/typesafe-ai/decisions", () => import("@opencode/ai/providers/typesafe-ai/decisions")],
|
|
431
456
|
["@opencode/ai/providers/venice", () => import("@opencode/ai/providers/venice")],
|
|
432
457
|
["@opencode/ai/providers/vercel-ai-gateway", () => import("@opencode/ai/providers/vercel-ai-gateway")],
|
|
433
458
|
["@opencode/ai/providers/vercel-ai-gateway/chat", () => import("@opencode/ai/providers/vercel-ai-gateway/chat")],
|
|
@@ -439,9 +464,16 @@ var builtins = new Map([
|
|
|
439
464
|
"@opencode/ai/providers/vercel-ai-gateway/responses",
|
|
440
465
|
() => import("@opencode/ai/providers/vercel-ai-gateway/responses")
|
|
441
466
|
],
|
|
467
|
+
[
|
|
468
|
+
"@opencode/ai/providers/vercel-ai-gateway/decisions",
|
|
469
|
+
() => import("@opencode/ai/providers/vercel-ai-gateway/decisions")
|
|
470
|
+
],
|
|
471
|
+
["@opencode/ai/providers/vercel-ai-gateway/images", () => import("@opencode/ai/providers/vercel-ai-gateway/images")],
|
|
442
472
|
["@opencode/ai/providers/xai", () => import("@opencode/ai/providers/xai")],
|
|
473
|
+
["@opencode/ai/providers/xai/images", () => import("@opencode/ai/providers/xai/images")],
|
|
443
474
|
["@opencode/ai/providers/zai", () => import("@opencode/ai/providers/zai")],
|
|
444
475
|
["@opencode/ai/providers/zai/chat", () => import("@opencode/ai/providers/zai/chat")],
|
|
476
|
+
["@opencode/ai/providers/zai/images", () => import("@opencode/ai/providers/zai/images")],
|
|
445
477
|
["@opencode/ai/providers/zai-coding-plan", () => import("@opencode/ai/providers/zai-coding-plan")],
|
|
446
478
|
["@opencode/ai/providers/zai-coding-plan/chat", () => import("@opencode/ai/providers/zai-coding-plan/chat")],
|
|
447
479
|
["@opencode/ai/providers/zai-coding-plan/messages", () => import("@opencode/ai/providers/zai-coding-plan/messages")],
|
|
@@ -482,22 +514,13 @@ var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
|
|
|
482
514
|
});
|
|
483
515
|
return yield* importPackage(specifier, entrypoint);
|
|
484
516
|
});
|
|
485
|
-
var
|
|
486
|
-
|
|
487
|
-
"chunkTimeout",
|
|
488
|
-
"compaction",
|
|
489
|
-
"encoding",
|
|
490
|
-
"fetch",
|
|
491
|
-
"headerTimeout",
|
|
492
|
-
"timeout",
|
|
493
|
-
"transport"
|
|
494
|
-
];
|
|
495
|
-
var PROVIDER_ONLY_KEYS = ["chunkTimeout", "headerTimeout", "timeout", "transport"];
|
|
517
|
+
var settingsKeys = Struct2.keys(Provider.Settings.schema.fields);
|
|
518
|
+
var providerOnlyKeys = settingsKeys.filter((key) => !(key in Model.Settings.schema.fields));
|
|
496
519
|
function nativeSettings2(settings) {
|
|
497
|
-
return Struct2.omit(settings,
|
|
520
|
+
return Struct2.omit(settings, settingsKeys);
|
|
498
521
|
}
|
|
499
522
|
function modelSettings2(settings) {
|
|
500
|
-
return settings && Struct2.omit(settings,
|
|
523
|
+
return settings && Struct2.omit(settings, providerOnlyKeys);
|
|
501
524
|
}
|
|
502
525
|
var decodeTimeout = Schema2.decodeUnknownOption(HttpTimeout);
|
|
503
526
|
var DEFAULT_TIMEOUT_MS3 = 300000;
|
|
@@ -549,9 +572,9 @@ var Compaction3 = Provider.Compaction;
|
|
|
549
572
|
var Cache2 = Provider.Cache;
|
|
550
573
|
var Transport2 = Provider.Transport;
|
|
551
574
|
var Settings2 = Provider.Settings;
|
|
552
|
-
var
|
|
575
|
+
var Info20 = Provider.Info;
|
|
553
576
|
|
|
554
|
-
class
|
|
577
|
+
class Service68 extends Context.Service()("@opencode/Provider") {
|
|
555
578
|
}
|
|
556
579
|
var definitions = new WeakMap;
|
|
557
580
|
function index(providerID, models) {
|
|
@@ -564,10 +587,10 @@ function index(providerID, models) {
|
|
|
564
587
|
definitions.set(models, indexes);
|
|
565
588
|
return result;
|
|
566
589
|
}
|
|
567
|
-
var layer = Layer.effect(
|
|
568
|
-
const bus = yield*
|
|
569
|
-
const integrations = yield*
|
|
570
|
-
const location = yield*
|
|
590
|
+
var layer = Layer.effect(Service68, Effect2.gen(function* () {
|
|
591
|
+
const bus = yield* Service85;
|
|
592
|
+
const integrations = yield* Service69;
|
|
593
|
+
const location = yield* Service80;
|
|
571
594
|
const state = create3({
|
|
572
595
|
name: "provider",
|
|
573
596
|
initial: () => new Map,
|
|
@@ -578,7 +601,7 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
|
|
|
578
601
|
const current = records.get(id);
|
|
579
602
|
if (current)
|
|
580
603
|
return current;
|
|
581
|
-
const added = { provider:
|
|
604
|
+
const added = { provider: Info20.empty(id), models: new Map };
|
|
582
605
|
records.set(id, added);
|
|
583
606
|
maps.add(added.models);
|
|
584
607
|
return added;
|
|
@@ -659,7 +682,7 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
|
|
|
659
682
|
const available = Array.from(records.values()).filter((record) => {
|
|
660
683
|
if (record.provider.activation === "disabled")
|
|
661
684
|
return false;
|
|
662
|
-
const integration = byID.get(record.provider.integrationID ??
|
|
685
|
+
const integration = byID.get(record.provider.integrationID ?? ID9.make(record.provider.id));
|
|
663
686
|
if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
|
|
664
687
|
return false;
|
|
665
688
|
if (record.provider.activation === "enabled")
|
|
@@ -685,8 +708,8 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
|
|
|
685
708
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
686
709
|
});
|
|
687
710
|
});
|
|
688
|
-
yield* bus.subscribe([
|
|
689
|
-
return
|
|
711
|
+
yield* bus.subscribe([Event14.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect2.forkScoped({ startImmediately: true }));
|
|
712
|
+
return Service68.of({
|
|
690
713
|
transform: state.transform,
|
|
691
714
|
reload: state.reload,
|
|
692
715
|
get: Effect2.fn("Provider.get")((id) => Effect2.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
@@ -695,7 +718,7 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
|
|
|
695
718
|
snapshot
|
|
696
719
|
});
|
|
697
720
|
}));
|
|
698
|
-
var
|
|
721
|
+
var node71 = makeLocationNode({ service: Service68, layer, deps: [node89, node72, node84] });
|
|
699
722
|
var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
700
723
|
const module = yield* Effect2.tryPromise({
|
|
701
724
|
try: () => {
|
|
@@ -717,4 +740,4 @@ var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, e
|
|
|
717
740
|
return module;
|
|
718
741
|
});
|
|
719
742
|
|
|
720
|
-
export { rewrite2, native2, exports_aisdk_native,
|
|
743
|
+
export { rewrite2, native2, exports_aisdk_native, ID8, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, builtinPackages2, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, DEFAULT_CHUNK_TIMEOUT_MS2, timeout2, timeouts2, encoding2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Cache2, Transport2, Settings2, Info20, Service68, node71, exports_provider3, Event13 };
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isTextual2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workspace-4pyp9zr9.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service55
|
|
6
|
+
} from "./workspace-pd9dp0pk.js";
|
|
7
7
|
import {
|
|
8
8
|
MAX_MARKDOWN_BYTES2,
|
|
9
9
|
convertHTMLToMarkdown2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./workspace-4vcrnpx2.js";
|
|
11
11
|
import {
|
|
12
12
|
collectBoundedResponseBody2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./workspace-3v8g72cx.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./workspace-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: () =>
|
|
22
|
+
Input: () => Input12,
|
|
23
23
|
MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES3,
|
|
24
24
|
MAX_TIMEOUT_SECONDS: () => MAX_TIMEOUT_SECONDS2,
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin49,
|
|
26
26
|
WebFetchTool: () => exports_webfetch,
|
|
27
27
|
convertHTMLToMarkdown: () => convertHTMLToMarkdown2,
|
|
28
|
-
description: () =>
|
|
28
|
+
description: () => description5,
|
|
29
29
|
extractTextFromHTML: () => extractTextFromHTML2,
|
|
30
|
-
name: () =>
|
|
30
|
+
name: () => name12
|
|
31
31
|
});
|
|
32
32
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
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
|
|
36
|
+
var name12 = "webfetch";
|
|
37
37
|
var MAX_RESPONSE_BYTES3 = MAX_MARKDOWN_BYTES2;
|
|
38
38
|
var DEFAULT_TIMEOUT_SECONDS2 = 30;
|
|
39
39
|
var MAX_TIMEOUT_SECONDS2 = 120;
|
|
40
|
-
var
|
|
40
|
+
var description5 = `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 Input12 = 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 Input3 = Schema.Struct({
|
|
|
51
51
|
var Output = Schema.Struct({
|
|
52
52
|
url: Schema.String,
|
|
53
53
|
contentType: Schema.String,
|
|
54
|
-
format:
|
|
54
|
+
format: Input12.fields.format,
|
|
55
55
|
output: Schema.String
|
|
56
56
|
});
|
|
57
57
|
var acceptHeader = (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 Plugin49 = {
|
|
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* Service55;
|
|
102
102
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
103
|
-
name:
|
|
103
|
+
name: name12,
|
|
104
104
|
options: { codemode: false },
|
|
105
|
-
description:
|
|
106
|
-
input:
|
|
105
|
+
description: description5,
|
|
106
|
+
input: Input12,
|
|
107
107
|
output: Output,
|
|
108
108
|
execute: (input, context) => Effect.gen(function* () {
|
|
109
109
|
yield* Effect.try({
|
|
@@ -111,7 +111,7 @@ var Plugin38 = {
|
|
|
111
111
|
catch: (error) => error
|
|
112
112
|
});
|
|
113
113
|
yield* permission.assert({
|
|
114
|
-
action:
|
|
114
|
+
action: name12,
|
|
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 { name12, MAX_RESPONSE_BYTES3, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description5, Input12, Plugin49, extractTextFromHTML2, exports_webfetch };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service85
|
|
3
|
+
} from "./workspace-70s3x0a6.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service80
|
|
6
|
+
} from "./workspace-h8ydc4kt.js";
|
|
7
7
|
import {
|
|
8
8
|
PromptsChanged2,
|
|
9
9
|
Service30
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./workspace-ehk1qjjw.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./workspace-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/plugin/command.ts
|
|
16
16
|
var exports_command2 = {};
|
|
17
17
|
__export(exports_command2, {
|
|
18
18
|
CommandPlugin: () => exports_command2,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin28
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect, Stream } from "effect";
|
|
@@ -193,12 +193,12 @@ If you're uncertain about something and can't verify it with these tools, say "I
|
|
|
193
193
|
`;
|
|
194
194
|
|
|
195
195
|
// src/plugin/command.ts
|
|
196
|
-
var
|
|
196
|
+
var Plugin28 = define({
|
|
197
197
|
id: "opencode.command",
|
|
198
198
|
effect: Effect.fn(function* (ctx) {
|
|
199
|
-
const location = yield*
|
|
199
|
+
const location = yield* Service80;
|
|
200
200
|
const mcp = yield* Service30;
|
|
201
|
-
const bus = yield*
|
|
201
|
+
const bus = yield* Service85;
|
|
202
202
|
const loaded = { prompts: [] };
|
|
203
203
|
yield* bus.subscribe(PromptsChanged2).pipe(Stream.runForEach(() => mcp.prompts().pipe(Effect.tap((prompts) => Effect.sync(() => loaded.prompts = prompts)), Effect.andThen(ctx.command.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
204
204
|
loaded.prompts = yield* mcp.prompts();
|
|
@@ -280,4 +280,4 @@ function sanitize(value) {
|
|
|
280
280
|
var argsRegex = /(?:\[Image\s+\d+\]|"[^"]*"|'[^']*'|[^\s"']+)/gi;
|
|
281
281
|
var quoteTrimRegex = /^["']|["']$/g;
|
|
282
282
|
|
|
283
|
-
export {
|
|
283
|
+
export { Plugin28, exports_command2 };
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID8,
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2,
|
|
5
|
+
nativeSettings2,
|
|
5
6
|
timeouts2,
|
|
6
7
|
mergeOverlay2
|
|
7
|
-
} from "./
|
|
8
|
+
} from "./workspace-rph8wvgf.js";
|
|
8
9
|
import {
|
|
9
10
|
stringify2
|
|
10
|
-
} from "./
|
|
11
|
+
} from "./workspace-1jakw16s.js";
|
|
11
12
|
import {
|
|
12
13
|
__export
|
|
13
|
-
} from "./
|
|
14
|
+
} from "./workspace-9rqn6x4v.js";
|
|
14
15
|
|
|
15
16
|
// src/aisdk.ts
|
|
16
17
|
var exports_aisdk = {};
|
|
17
18
|
__export(exports_aisdk, {
|
|
18
19
|
AISDK: () => exports_aisdk,
|
|
19
20
|
InitError: () => InitError2,
|
|
20
|
-
Service: () =>
|
|
21
|
+
Service: () => Service41,
|
|
21
22
|
locationLayer: () => locationLayer2,
|
|
22
|
-
node: () =>
|
|
23
|
+
node: () => node43
|
|
23
24
|
});
|
|
24
25
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
25
26
|
import { APICallError } from "@ai-sdk/provider";
|
|
@@ -32,10 +33,9 @@ import {
|
|
|
32
33
|
TransportError,
|
|
33
34
|
ToolResultValue
|
|
34
35
|
} from "@opencode/ai/effect";
|
|
35
|
-
import { Auth, Endpoint, RequestExecutor } from "@opencode/ai/route";
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import { Cause, Context, Effect, Layer, Option, Schema, Scope, Stream } from "effect";
|
|
36
|
+
import { Auth, Endpoint, ProviderShared, RequestExecutor } from "@opencode/ai/route";
|
|
37
|
+
import { isRecord } from "@opencode/util/record";
|
|
38
|
+
import { Cause, Context, Effect, Layer, Option, Schema, Scope, Stream, Struct } from "effect";
|
|
39
39
|
import { makeParser } from "effect/encoding/Sse";
|
|
40
40
|
import { HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
41
41
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -94,19 +94,15 @@ function wrapSSE(res, ms, ctl) {
|
|
|
94
94
|
}
|
|
95
95
|
function prepareOptions(model, pkg) {
|
|
96
96
|
const projected = mapBodyToProviderOptions(model, pkg);
|
|
97
|
+
const settings = model.settings ?? {};
|
|
97
98
|
const options = {
|
|
98
99
|
name: model.canonical ?? model.providerID,
|
|
99
|
-
...
|
|
100
|
+
...nativeSettings2(settings),
|
|
100
101
|
headers: model.headers,
|
|
101
102
|
body: projected.body
|
|
102
103
|
};
|
|
103
|
-
const customFetch =
|
|
104
|
-
const timeouts = timeouts2(
|
|
105
|
-
delete options.headerTimeout;
|
|
106
|
-
delete options.chunkTimeout;
|
|
107
|
-
delete options.compaction;
|
|
108
|
-
delete options.cache;
|
|
109
|
-
delete options.transport;
|
|
104
|
+
const customFetch = settings.fetch;
|
|
105
|
+
const timeouts = timeouts2(settings);
|
|
110
106
|
options.fetch = async (input, init) => {
|
|
111
107
|
const opts = { ...init ?? {} };
|
|
112
108
|
const headers = new AbortController;
|
|
@@ -157,7 +153,7 @@ function throughMiddleware(store, send, input, init) {
|
|
|
157
153
|
var HEADER_TIMEOUT_MESSAGE = "Response headers timed out";
|
|
158
154
|
|
|
159
155
|
class InitError2 extends Schema.TaggedError()("AISDK.InitError", {
|
|
160
|
-
providerID:
|
|
156
|
+
providerID: ID8,
|
|
161
157
|
cause: Schema.Defect()
|
|
162
158
|
}) {
|
|
163
159
|
}
|
|
@@ -165,9 +161,9 @@ function initError(providerID) {
|
|
|
165
161
|
return Effect.catchCause((cause) => Effect.fail(new InitError2({ providerID, cause: Cause.squash(cause) })));
|
|
166
162
|
}
|
|
167
163
|
|
|
168
|
-
class
|
|
164
|
+
class Service41 extends Context.Service()("@opencode/AISDK") {
|
|
169
165
|
}
|
|
170
|
-
var locationLayer2 = Layer.effect(
|
|
166
|
+
var locationLayer2 = Layer.effect(Service41, Effect.gen(function* () {
|
|
171
167
|
let sdkHooks = [];
|
|
172
168
|
let languageHooks = [];
|
|
173
169
|
const languages = new Map;
|
|
@@ -205,7 +201,7 @@ var locationLayer2 = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
205
201
|
}
|
|
206
202
|
return event;
|
|
207
203
|
});
|
|
208
|
-
const service =
|
|
204
|
+
const service = Service41.of({
|
|
209
205
|
hook: {
|
|
210
206
|
sdk: register(() => sdkHooks, (next) => sdkHooks = next),
|
|
211
207
|
language: register(() => languageHooks, (next) => languageHooks = next)
|
|
@@ -349,18 +345,13 @@ function providerOptionKey(packageName, providerID) {
|
|
|
349
345
|
function requestSettings(settings) {
|
|
350
346
|
if (settings === undefined)
|
|
351
347
|
return;
|
|
352
|
-
const result =
|
|
348
|
+
const result = Struct.omit(nativeSettings2(settings), [
|
|
349
|
+
"accessToken",
|
|
353
350
|
"apiKey",
|
|
354
351
|
"authToken",
|
|
355
352
|
"baseURL",
|
|
356
|
-
"
|
|
357
|
-
|
|
358
|
-
"compaction",
|
|
359
|
-
"fetch",
|
|
360
|
-
"headerTimeout",
|
|
361
|
-
"timeout",
|
|
362
|
-
"transport"
|
|
363
|
-
].includes(key)));
|
|
353
|
+
"fetch"
|
|
354
|
+
]);
|
|
364
355
|
return Object.keys(result).length === 0 ? undefined : result;
|
|
365
356
|
}
|
|
366
357
|
function mapBodyToProviderOptions(model, packageName) {
|
|
@@ -872,6 +863,6 @@ function providerErrorMessage(error) {
|
|
|
872
863
|
const prefix = error.statusCode === undefined ? "Provider request failed" : `Provider request failed with HTTP ${error.statusCode}`;
|
|
873
864
|
return error.message.trim() !== "" ? error.message : message ?? (code === undefined ? prefix : `${prefix}: ${code}`);
|
|
874
865
|
}
|
|
875
|
-
var
|
|
866
|
+
var node43 = makeLocationNode({ service: Service41, layer: locationLayer2, deps: [] });
|
|
876
867
|
|
|
877
|
-
export { InitError2,
|
|
868
|
+
export { InitError2, Service41, locationLayer2, node43, exports_aisdk };
|