@opencode/core 0.0.0-dev-21915 → 0.0.0-dev-21922
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/{event-logger-hgbyz31g.js → usage-limits-00y87jmz.js} +24 -24
- package/dist/chunks/{event-logger-9f7hjvpa.js → usage-limits-017htdkw.js} +20 -20
- package/dist/chunks/{event-logger-034tev2y.js → usage-limits-034tev2y.js} +2 -2
- package/dist/chunks/{event-logger-86g6sxng.js → usage-limits-03efvwc7.js} +12 -12
- package/dist/chunks/{event-logger-yyt2djfr.js → usage-limits-04pddjsn.js} +14 -12
- package/dist/chunks/{event-logger-bqe25t1z.js → usage-limits-04wrc2a0.js} +5 -5
- package/dist/chunks/{event-logger-dj4zrkts.js → usage-limits-05nyajy2.js} +4 -4
- package/dist/chunks/{event-logger-78n4qc0z.js → usage-limits-08j3fqcb.js} +4 -4
- package/dist/chunks/{event-logger-9r0x1bva.js → usage-limits-09a8m3xd.js} +9 -9
- package/dist/chunks/{event-logger-f7aqmhgm.js → usage-limits-0e2mqxgr.js} +8 -8
- package/dist/chunks/{event-logger-4m87gk4h.js → usage-limits-0h3ekpfr.js} +2 -2
- package/dist/chunks/{event-logger-5rt97jkw.js → usage-limits-0rmv48be.js} +16 -16
- package/dist/chunks/{event-logger-fjg1f0qa.js → usage-limits-0t9ezrky.js} +23 -23
- package/dist/chunks/{event-logger-st7p3hwb.js → usage-limits-0w2jttgf.js} +2 -2
- package/dist/chunks/{event-logger-8jztxfpf.js → usage-limits-11hfp36g.js} +4 -4
- package/dist/chunks/{event-logger-hzqt23km.js → usage-limits-19gpxhf0.js} +17 -17
- package/dist/chunks/{event-logger-1ep2p91f.js → usage-limits-1ep2p91f.js} +2 -2
- package/dist/chunks/{event-logger-w2b5jz6s.js → usage-limits-1ey8cgx4.js} +3 -3
- package/dist/chunks/{event-logger-408nx0y9.js → usage-limits-1g9ba1yb.js} +38 -38
- package/dist/chunks/{event-logger-tcjkzhbf.js → usage-limits-1mbq4spa.js} +19 -19
- package/dist/chunks/{event-logger-8h2npe5w.js → usage-limits-1n7xqf83.js} +4 -4
- package/dist/chunks/{event-logger-0xy3w4m6.js → usage-limits-1q93jaz5.js} +8 -8
- package/dist/chunks/{event-logger-skpj3wch.js → usage-limits-1v0pdvat.js} +13 -13
- package/dist/chunks/{event-logger-1x2knyw4.js → usage-limits-1x2knyw4.js} +1 -1
- package/dist/chunks/{event-logger-mtrbqqrq.js → usage-limits-1x75wf9g.js} +5 -5
- package/dist/chunks/{event-logger-5zrxpy3q.js → usage-limits-1yq9hg58.js} +5 -5
- package/dist/chunks/{event-logger-204s3925.js → usage-limits-204s3925.js} +1 -1
- package/dist/chunks/{event-logger-2yvtks3w.js → usage-limits-21pdxbx2.js} +3 -3
- package/dist/chunks/{event-logger-0svvf4a3.js → usage-limits-2e93rzzy.js} +36 -36
- package/dist/chunks/{event-logger-w35wzz9x.js → usage-limits-2kg89srt.js} +4 -4
- package/dist/chunks/{event-logger-061dfjk9.js → usage-limits-2t8n36db.js} +11 -11
- package/dist/chunks/{event-logger-kqdytwcc.js → usage-limits-3g307r2d.js} +22 -22
- package/dist/chunks/{event-logger-3hepkmqq.js → usage-limits-3hepkmqq.js} +1 -1
- package/dist/chunks/{event-logger-3nnrz6f6.js → usage-limits-3nnrz6f6.js} +1 -1
- package/dist/chunks/{event-logger-qgehj1ry.js → usage-limits-3p9c60sq.js} +23 -23
- package/dist/chunks/{event-logger-8aemar9r.js → usage-limits-3rpwkwfp.js} +61 -60
- package/dist/chunks/{event-logger-sc7s3392.js → usage-limits-3t5emda5.js} +17 -17
- package/dist/chunks/{event-logger-vpbqyf0k.js → usage-limits-41qpfaqk.js} +20 -20
- package/dist/chunks/{event-logger-zt0grhjq.js → usage-limits-44ewphs4.js} +34 -34
- package/dist/chunks/{event-logger-9rr00cqq.js → usage-limits-49mr2hqv.js} +36 -36
- package/dist/chunks/{event-logger-qwcg15xq.js → usage-limits-4f6bgrg8.js} +2 -2
- package/dist/chunks/{event-logger-44552vd9.js → usage-limits-4f7671vw.js} +13 -13
- package/dist/chunks/{event-logger-qa95shqj.js → usage-limits-4jyfxaep.js} +23 -23
- package/dist/chunks/{event-logger-2z1j29yd.js → usage-limits-4pyp9zr9.js} +19 -3
- package/dist/chunks/{event-logger-4v008n1t.js → usage-limits-4v008n1t.js} +1 -1
- package/dist/chunks/{event-logger-vz52s56h.js → usage-limits-4vwy4jat.js} +54 -54
- package/dist/chunks/{event-logger-4xvmh7wp.js → usage-limits-4xvmh7wp.js} +3 -3
- package/dist/chunks/{event-logger-9s0e97ng.js → usage-limits-51bncfz5.js} +31 -31
- package/dist/chunks/{event-logger-tyred3qc.js → usage-limits-55y9k0b4.js} +18 -18
- package/dist/chunks/{event-logger-76szp9yy.js → usage-limits-598bqetn.js} +41 -41
- package/dist/chunks/{event-logger-dzd14etx.js → usage-limits-5bcx7x9c.js} +21 -21
- package/dist/chunks/{event-logger-md82vg28.js → usage-limits-5bvwpje3.js} +20 -20
- package/dist/chunks/{event-logger-40za9wsf.js → usage-limits-5enarcya.js} +6 -6
- package/dist/chunks/{event-logger-jtk69epa.js → usage-limits-5kjdegzn.js} +33 -33
- package/dist/chunks/{event-logger-5m9w47nd.js → usage-limits-5m9w47nd.js} +1 -1
- package/dist/chunks/{event-logger-nfht88f8.js → usage-limits-5nxz0j3x.js} +25 -25
- package/dist/chunks/{event-logger-ryaxndx4.js → usage-limits-5pqa69a9.js} +37 -37
- package/dist/chunks/{event-logger-phatgdjg.js → usage-limits-5qg6dt84.js} +20 -20
- package/dist/chunks/{event-logger-h3b857xk.js → usage-limits-5w1mdqt7.js} +4 -4
- package/dist/chunks/{event-logger-basczpv8.js → usage-limits-5xdg5x94.js} +12 -12
- package/dist/chunks/{event-logger-q61wn67c.js → usage-limits-5ztzzwt3.js} +12 -12
- package/dist/chunks/{event-logger-s626qfae.js → usage-limits-61ennm6n.js} +4 -4
- package/dist/chunks/{event-logger-qg7vbzw0.js → usage-limits-62qqncfb.js} +27 -27
- package/dist/chunks/{event-logger-qd1s09xq.js → usage-limits-678eqd6f.js} +28 -28
- package/dist/chunks/{event-logger-t7z44kv1.js → usage-limits-6a8c7h5g.js} +45 -34
- package/dist/chunks/{event-logger-6esdw8yj.js → usage-limits-6esdw8yj.js} +1 -1
- package/dist/chunks/{event-logger-5r72z9dp.js → usage-limits-6fcb95c6.js} +8 -8
- package/dist/chunks/{event-logger-30147ds3.js → usage-limits-6jrjvs1q.js} +6 -6
- package/dist/chunks/{event-logger-kfvrqrnd.js → usage-limits-6kqv4y7c.js} +25 -25
- package/dist/chunks/{event-logger-6yv8zpps.js → usage-limits-6m26wt0b.js} +19 -13
- package/dist/chunks/{event-logger-6pjqjmy2.js → usage-limits-6pjqjmy2.js} +1 -1
- package/dist/chunks/{event-logger-xxadresr.js → usage-limits-6r5vfrd2.js} +21 -21
- package/dist/chunks/{event-logger-pacbbjc0.js → usage-limits-731keyrx.js} +7 -7
- package/dist/chunks/{event-logger-76cb1hcw.js → usage-limits-76cb1hcw.js} +1 -1
- package/dist/chunks/{event-logger-7bmhse3q.js → usage-limits-7bmhse3q.js} +1 -1
- package/dist/chunks/{event-logger-4pkf34m0.js → usage-limits-7q318b7x.js} +80 -79
- package/dist/chunks/{event-logger-tg1vr1qt.js → usage-limits-7tpyp9vw.js} +4 -4
- package/dist/chunks/{event-logger-6nye8dts.js → usage-limits-7vfr41g1.js} +9 -9
- package/dist/chunks/{event-logger-7w2ypzdf.js → usage-limits-7w2ypzdf.js} +1 -1
- package/dist/chunks/{event-logger-rrd1tyyg.js → usage-limits-7xsh356b.js} +5 -5
- package/dist/chunks/{event-logger-tdjd85a2.js → usage-limits-7ydq43w6.js} +38 -38
- package/dist/chunks/{event-logger-ch94d7vp.js → usage-limits-81s6gp0d.js} +5 -5
- package/dist/chunks/{event-logger-x98cm754.js → usage-limits-82yknam4.js} +20 -20
- package/dist/chunks/usage-limits-867c95q5.js +26 -0
- package/dist/chunks/{event-logger-mfp9msn1.js → usage-limits-88g4cw8v.js} +47 -47
- package/dist/chunks/{event-logger-033a0jkt.js → usage-limits-8bc2ahr8.js} +3 -3
- package/dist/chunks/{event-logger-mq16y592.js → usage-limits-8bzt12aq.js} +3 -3
- package/dist/chunks/{event-logger-2nf2vr7j.js → usage-limits-8ddem2bh.js} +14 -14
- package/dist/chunks/{event-logger-e6bk7rc7.js → usage-limits-8k8pzbp4.js} +8 -8
- package/dist/chunks/{event-logger-8wtp7s3z.js → usage-limits-8wtp7s3z.js} +1 -1
- package/dist/chunks/{event-logger-ga597wxg.js → usage-limits-90epfbx4.js} +21 -18
- package/dist/chunks/{event-logger-91rj84md.js → usage-limits-91rj84md.js} +1 -1
- package/dist/chunks/{event-logger-z8rfms9g.js → usage-limits-972kaxpv.js} +12 -12
- package/dist/chunks/{event-logger-c36nnf6h.js → usage-limits-98j1bw8x.js} +6 -6
- package/dist/chunks/{event-logger-pqzzv18e.js → usage-limits-9cf51smv.js} +17 -17
- package/dist/chunks/{event-logger-9cx9sm2q.js → usage-limits-9cx9sm2q.js} +1 -1
- package/dist/chunks/{event-logger-cdgpjepk.js → usage-limits-9dkxk464.js} +38 -38
- package/dist/chunks/{event-logger-peyy5ms6.js → usage-limits-9me8r9me.js} +24 -24
- package/dist/chunks/{event-logger-410zp742.js → usage-limits-9pcgsarm.js} +21 -21
- package/dist/chunks/{event-logger-ssv8d6ry.js → usage-limits-9q3x3rnx.js} +3 -3
- package/dist/chunks/{event-logger-7vz8pb8x.js → usage-limits-9t8mm2bk.js} +46 -45
- package/dist/chunks/{event-logger-2kc953ej.js → usage-limits-a07t2w3m.js} +21 -21
- package/dist/chunks/{event-logger-k8ya5e1r.js → usage-limits-afygg0ym.js} +25 -25
- package/dist/chunks/{event-logger-khycn197.js → usage-limits-am28afsd.js} +9 -9
- package/dist/chunks/{event-logger-6szn2v48.js → usage-limits-as0h5ak1.js} +37 -37
- package/dist/chunks/{event-logger-ayjs7tqn.js → usage-limits-ayjs7tqn.js} +2 -2
- package/dist/chunks/{event-logger-b0mv4wxm.js → usage-limits-b0mv4wxm.js} +2 -2
- package/dist/chunks/{event-logger-b6vsg801.js → usage-limits-b6vsg801.js} +2 -2
- package/dist/chunks/{event-logger-vhwcqbf2.js → usage-limits-b9my16kh.js} +24 -24
- package/dist/chunks/{event-logger-sfe1x69m.js → usage-limits-bf8fdtcb.js} +41 -41
- package/dist/chunks/{event-logger-j4danyaa.js → usage-limits-bn7trhcc.js} +4 -4
- package/dist/chunks/{event-logger-m239h48j.js → usage-limits-bp0v66vn.js} +16 -16
- package/dist/chunks/{event-logger-zt1y2eyh.js → usage-limits-bp7ec9ny.js} +24 -24
- package/dist/chunks/{event-logger-shdc20fs.js → usage-limits-bsq5a7tz.js} +11 -11
- package/dist/chunks/{event-logger-pymyzg4j.js → usage-limits-bst727gy.js} +11 -11
- package/dist/chunks/{event-logger-xd9cc171.js → usage-limits-bstexjd6.js} +5 -5
- package/dist/chunks/{event-logger-0eyqpy28.js → usage-limits-bww9hm97.js} +30 -30
- package/dist/chunks/{event-logger-fa5mv2e8.js → usage-limits-bzr3ws0g.js} +32 -32
- package/dist/chunks/{event-logger-bvn4drfw.js → usage-limits-c4vfmmrn.js} +8 -8
- package/dist/chunks/{event-logger-4dtq8qg7.js → usage-limits-c71jd0w1.js} +48 -48
- package/dist/chunks/{event-logger-f1gxq19d.js → usage-limits-c75x6rdk.js} +1 -1
- package/dist/chunks/{event-logger-sa2m7fmb.js → usage-limits-c7nc8r0y.js} +19 -19
- package/dist/chunks/{event-logger-g1ac2pg3.js → usage-limits-cbxpjjp2.js} +7 -7
- package/dist/chunks/{event-logger-57p1m9rz.js → usage-limits-cffg183s.js} +30 -30
- package/dist/chunks/{event-logger-p76me67c.js → usage-limits-cnj75yzs.js} +4 -4
- package/dist/chunks/{event-logger-cpvd08na.js → usage-limits-cpvd08na.js} +1 -1
- package/dist/chunks/{event-logger-g179cxj4.js → usage-limits-cyjt7j27.js} +26 -26
- package/dist/chunks/{event-logger-vxxaf4jx.js → usage-limits-d390zwf3.js} +8 -8
- package/dist/chunks/{event-logger-530cxj2z.js → usage-limits-d3n1hdek.js} +35 -35
- package/dist/chunks/{event-logger-d4v9tmah.js → usage-limits-d4v9tmah.js} +2 -2
- package/dist/chunks/{event-logger-213mv4pq.js → usage-limits-d7gzgry1.js} +19 -19
- package/dist/chunks/{event-logger-cqgy4j9b.js → usage-limits-d9wr15jy.js} +33 -33
- package/dist/chunks/{event-logger-wvngvz36.js → usage-limits-da8a3238.js} +15 -15
- package/dist/chunks/{event-logger-a32zpqad.js → usage-limits-df5wz3aa.js} +9 -9
- package/dist/chunks/{event-logger-f9c14s45.js → usage-limits-dgat6cf4.js} +3 -3
- package/dist/chunks/{event-logger-frm2a0t2.js → usage-limits-dmkj1tz7.js} +9 -9
- package/dist/chunks/{event-logger-qnxr7c2a.js → usage-limits-dnf89vfw.js} +6 -6
- package/dist/chunks/{event-logger-syrbqdmj.js → usage-limits-dvkbf0fy.js} +15 -15
- package/dist/chunks/{event-logger-eky6j0x6.js → usage-limits-e07q2w5p.js} +9 -9
- package/dist/chunks/{event-logger-9crppwnt.js → usage-limits-e0vn053m.js} +13 -13
- package/dist/chunks/{event-logger-e834z07m.js → usage-limits-e834z07m.js} +1 -1
- package/dist/chunks/{event-logger-gy4a15hj.js → usage-limits-ebt9h4q4.js} +39 -39
- package/dist/chunks/{event-logger-58fpqt79.js → usage-limits-enbshayc.js} +9 -9
- package/dist/chunks/{event-logger-fffv3p7h.js → usage-limits-fffv3p7h.js} +1 -1
- package/dist/chunks/{event-logger-prq7xxp2.js → usage-limits-fg9p65nk.js} +6 -6
- package/dist/chunks/{event-logger-nz5t40nw.js → usage-limits-fjw78s5f.js} +16 -16
- package/dist/chunks/{event-logger-e19z48h8.js → usage-limits-fkckm43x.js} +11 -11
- package/dist/chunks/{event-logger-akgtqb0c.js → usage-limits-fmpdeqb5.js} +11 -11
- package/dist/chunks/{event-logger-ejnhfpwt.js → usage-limits-fvy6sq6t.js} +35 -35
- package/dist/chunks/{event-logger-fh08m5h2.js → usage-limits-fw516jka.js} +4 -4
- package/dist/chunks/{event-logger-g5h9c0rr.js → usage-limits-g5h9c0rr.js} +2 -2
- package/dist/chunks/{event-logger-tbx1dsy3.js → usage-limits-g5w2gpe1.js} +23 -23
- package/dist/chunks/{event-logger-f1bpp1ef.js → usage-limits-g5wzwpvc.js} +17 -17
- package/dist/chunks/{event-logger-179sgv51.js → usage-limits-g6vqe96w.js} +27 -27
- package/dist/chunks/{event-logger-1nsj622r.js → usage-limits-gf435z7c.js} +16 -16
- package/dist/chunks/{event-logger-m0b3df16.js → usage-limits-gfhc0hb1.js} +15 -15
- package/dist/chunks/{event-logger-gg8p9cgs.js → usage-limits-gg8p9cgs.js} +3 -3
- package/dist/chunks/{event-logger-mby4m2vn.js → usage-limits-grvpkp8m.js} +15 -15
- package/dist/chunks/{event-logger-33j2zr63.js → usage-limits-gtn06jkh.js} +90 -90
- package/dist/chunks/{event-logger-68ms0fh2.js → usage-limits-gwf9348p.js} +23 -23
- package/dist/chunks/{event-logger-hdfrs5mg.js → usage-limits-hdfrs5mg.js} +2 -2
- package/dist/chunks/{event-logger-b42k84jp.js → usage-limits-hey5d68j.js} +23 -23
- package/dist/chunks/{event-logger-m37sd98t.js → usage-limits-hfgk9wzg.js} +4 -4
- package/dist/chunks/{event-logger-bwsx8aca.js → usage-limits-httc3ny9.js} +13 -13
- package/dist/chunks/{event-logger-1db62psx.js → usage-limits-hw9efqx5.js} +36 -36
- package/dist/chunks/{event-logger-j113cymg.js → usage-limits-j113cymg.js} +1 -1
- package/dist/chunks/{event-logger-6y263vp8.js → usage-limits-ja63h2sr.js} +5 -5
- package/dist/chunks/{event-logger-dwcq4ckc.js → usage-limits-jgp92ez5.js} +12 -12
- package/dist/chunks/{event-logger-ez16syfw.js → usage-limits-jj2zqra8.js} +9 -9
- package/dist/chunks/{event-logger-83fr3fym.js → usage-limits-jjhjh3kk.js} +16 -16
- package/dist/chunks/{event-logger-qfjvy58c.js → usage-limits-jsghge5n.js} +6 -6
- package/dist/chunks/{event-logger-shd4apfp.js → usage-limits-k1s2y5nr.js} +5 -5
- package/dist/chunks/{event-logger-4538h11c.js → usage-limits-k2ehsfqk.js} +7 -7
- package/dist/chunks/{event-logger-618s5217.js → usage-limits-k2ty6p27.js} +12 -12
- package/dist/chunks/{event-logger-vx7ymf2n.js → usage-limits-k3hv7qsk.js} +21 -21
- package/dist/chunks/usage-limits-k62y2wy8.js +18 -0
- package/dist/chunks/{event-logger-k814nvkf.js → usage-limits-k814nvkf.js} +1 -1
- package/dist/chunks/{event-logger-ssfehs1z.js → usage-limits-kkqethq7.js} +4 -4
- package/dist/chunks/{event-logger-0mg8kcn3.js → usage-limits-kpm5e2na.js} +20 -19
- package/dist/chunks/{event-logger-kt3bjfbg.js → usage-limits-kt3bjfbg.js} +1 -1
- package/dist/chunks/{event-logger-2dbq5t1r.js → usage-limits-kw773dbp.js} +15 -15
- package/dist/chunks/{event-logger-m1714858.js → usage-limits-m1714858.js} +1 -1
- package/dist/chunks/{event-logger-886bz3e9.js → usage-limits-m34dtctp.js} +32 -32
- package/dist/chunks/{event-logger-psvq06ac.js → usage-limits-m3sf5m0x.js} +4 -4
- package/dist/chunks/{event-logger-re1qaq4d.js → usage-limits-m97p4zfb.js} +7 -7
- package/dist/chunks/{event-logger-m9w0rfyh.js → usage-limits-m9w0rfyh.js} +1 -1
- package/dist/chunks/{event-logger-maspj1v3.js → usage-limits-maspj1v3.js} +1 -1
- package/dist/chunks/{event-logger-xm0409en.js → usage-limits-mg0ejb6w.js} +9 -9
- package/dist/chunks/{event-logger-bw78fe9b.js → usage-limits-mqywm14h.js} +16 -17
- package/dist/chunks/{event-logger-x57zhnt4.js → usage-limits-mt2kpseg.js} +52 -52
- package/dist/chunks/{event-logger-hh6grysg.js → usage-limits-mx2hpj3w.js} +4 -4
- package/dist/chunks/{event-logger-brd5eeq0.js → usage-limits-n01qhj0y.js} +8 -8
- package/dist/chunks/{event-logger-ygbhaca5.js → usage-limits-n2ednh3b.js} +11 -11
- package/dist/chunks/{event-logger-77s6zpp3.js → usage-limits-n8gxr7mj.js} +29 -29
- package/dist/chunks/{event-logger-nah043kf.js → usage-limits-nah043kf.js} +1 -1
- package/dist/chunks/{event-logger-q2vz9kat.js → usage-limits-nbx95k9y.js} +20 -20
- package/dist/chunks/{event-logger-e3qxr5gk.js → usage-limits-ncqqe42p.js} +2 -2
- package/dist/chunks/{event-logger-3jazymwx.js → usage-limits-nmrzq4b4.js} +17 -17
- package/dist/chunks/{event-logger-dynzjwsk.js → usage-limits-np12dgr8.js} +4 -4
- package/dist/chunks/{event-logger-zxhnf3hq.js → usage-limits-nz7ydnky.js} +4 -4
- package/dist/chunks/{event-logger-p015t6z3.js → usage-limits-p015t6z3.js} +2 -2
- package/dist/chunks/{event-logger-jz593hnq.js → usage-limits-p1y3scnp.js} +14 -14
- package/dist/chunks/{event-logger-g6dfma3d.js → usage-limits-p7f9amnf.js} +2 -2
- package/dist/chunks/{event-logger-vqrx5bk3.js → usage-limits-p9a4fkqx.js} +5 -5
- package/dist/chunks/{event-logger-herh7hrd.js → usage-limits-p9wrd8qj.js} +8 -8
- package/dist/chunks/{event-logger-qa9tft3h.js → usage-limits-paends5k.js} +80 -80
- package/dist/chunks/{event-logger-x0z7d0h1.js → usage-limits-pf357wtm.js} +26 -26
- package/dist/chunks/{event-logger-1qjnrqep.js → usage-limits-pf8h48ke.js} +11 -11
- package/dist/chunks/{event-logger-sy707q11.js → usage-limits-pk5kr4hd.js} +11 -11
- package/dist/chunks/{event-logger-pknna89w.js → usage-limits-pknna89w.js} +1 -1
- package/dist/chunks/{event-logger-j7e2k5v8.js → usage-limits-ppx83vn9.js} +44 -44
- package/dist/chunks/{event-logger-zq9gq21d.js → usage-limits-ptm0a8dx.js} +11 -11
- package/dist/chunks/{event-logger-b8teqy6w.js → usage-limits-q06akkn6.js} +5 -5
- package/dist/chunks/{event-logger-5rn25pwd.js → usage-limits-q6n5978e.js} +18 -18
- package/dist/chunks/{event-logger-jv1fc1mx.js → usage-limits-q84ept6j.js} +14 -14
- package/dist/chunks/{event-logger-e066yxsa.js → usage-limits-qdcjsrgg.js} +32 -32
- package/dist/chunks/usage-limits-qp7r0hxv.js +120 -0
- package/dist/chunks/{event-logger-wzp5edw8.js → usage-limits-qqf54ck0.js} +8 -8
- package/dist/chunks/{event-logger-7che9vcx.js → usage-limits-qr5y3ppe.js} +22 -22
- package/dist/chunks/{event-logger-r0yr0wbs.js → usage-limits-r0yr0wbs.js} +1 -1
- package/dist/chunks/{event-logger-r542h3bh.js → usage-limits-r542h3bh.js} +1 -1
- package/dist/chunks/{event-logger-rb9dy4dg.js → usage-limits-rb9dy4dg.js} +1 -1
- package/dist/chunks/{event-logger-pmbbezah.js → usage-limits-rcf5z941.js} +22 -22
- package/dist/chunks/{event-logger-bf5n42xj.js → usage-limits-rfhefnxg.js} +11 -11
- package/dist/chunks/{event-logger-sk0dcrgn.js → usage-limits-rfn9smw4.js} +1 -1
- package/dist/chunks/{event-logger-43c01wrt.js → usage-limits-rfzw4ash.js} +16 -16
- package/dist/chunks/{event-logger-st4dmjma.js → usage-limits-rg861281.js} +50 -50
- package/dist/chunks/{event-logger-ts1a0z93.js → usage-limits-rhs2npc4.js} +21 -21
- package/dist/chunks/{event-logger-p2nmcv9d.js → usage-limits-rq2sgyhr.js} +13 -13
- package/dist/chunks/{event-logger-rt5dr6hb.js → usage-limits-rt5dr6hb.js} +1 -1
- package/dist/chunks/{event-logger-1fnhqpt4.js → usage-limits-rz5xez4e.js} +19 -19
- package/dist/chunks/{event-logger-c1gsg3g8.js → usage-limits-s6xn3z5f.js} +14 -14
- package/dist/chunks/{event-logger-mptppmq7.js → usage-limits-s7w3vg3t.js} +5 -5
- package/dist/chunks/{event-logger-sa3fpqfw.js → usage-limits-sa3fpqfw.js} +2 -2
- package/dist/chunks/{event-logger-ck0tns3b.js → usage-limits-sbgvc55t.js} +46 -46
- package/dist/chunks/{event-logger-h9sxfnc4.js → usage-limits-sewrnvqp.js} +31 -31
- package/dist/chunks/{event-logger-x0hhhwgh.js → usage-limits-sg4gyp2q.js} +35 -35
- package/dist/chunks/{event-logger-zmwdvt2x.js → usage-limits-sjt6c43d.js} +11 -11
- package/dist/chunks/{event-logger-sqjzf8x2.js → usage-limits-sqjzf8x2.js} +1 -1
- package/dist/chunks/{event-logger-mzrr2ceq.js → usage-limits-sxsrf208.js} +25 -25
- package/dist/chunks/{event-logger-1z6t7raf.js → usage-limits-t3eatzzt.js} +6 -6
- package/dist/chunks/{event-logger-p3kn9h9d.js → usage-limits-t9rbc5fr.js} +21 -21
- package/dist/chunks/{event-logger-nn2wptpk.js → usage-limits-tby5mkys.js} +5 -5
- package/dist/chunks/{event-logger-jxr5ks98.js → usage-limits-tc1bwtzj.js} +6 -6
- package/dist/chunks/{event-logger-tczq8hjw.js → usage-limits-tczq8hjw.js} +1 -1
- package/dist/chunks/usage-limits-tdttqht2.js +257 -0
- package/dist/chunks/{event-logger-pap6y6k1.js → usage-limits-thxwdnj5.js} +185 -185
- package/dist/chunks/{event-logger-3h86dkjt.js → usage-limits-tt5vrtnd.js} +13 -13
- package/dist/chunks/{event-logger-twv2r8f4.js → usage-limits-twv2r8f4.js} +2 -2
- package/dist/chunks/{event-logger-v2r1d0zg.js → usage-limits-v2r1d0zg.js} +1 -1
- package/dist/chunks/{event-logger-td0tf8cx.js → usage-limits-vcsf46ab.js} +11 -11
- package/dist/chunks/{event-logger-veqvce7d.js → usage-limits-veqvce7d.js} +1 -1
- package/dist/chunks/{event-logger-c1df77m2.js → usage-limits-vm463weg.js} +19 -19
- package/dist/chunks/{event-logger-n7bnkb3p.js → usage-limits-vrcsa8qx.js} +9 -9
- package/dist/chunks/{event-logger-xzk44jme.js → usage-limits-vrm0gnkg.js} +23 -23
- package/dist/chunks/{event-logger-hwadrnp3.js → usage-limits-vz6tneve.js} +13 -13
- package/dist/chunks/{event-logger-w3wsvvr9.js → usage-limits-w3wsvvr9.js} +1 -1
- package/dist/chunks/{event-logger-kv7q9t9v.js → usage-limits-w40kn9e0.js} +55 -55
- package/dist/chunks/{event-logger-5cppamkc.js → usage-limits-w7wb1kw0.js} +23 -23
- package/dist/chunks/{event-logger-wakvkjy4.js → usage-limits-wakvkjy4.js} +1 -1
- package/dist/chunks/{event-logger-wd87259q.js → usage-limits-wd87259q.js} +1 -1
- package/dist/chunks/{event-logger-fznmdakp.js → usage-limits-wr3re1en.js} +4 -4
- package/dist/chunks/{event-logger-c9pz1jz6.js → usage-limits-x78knad5.js} +5 -5
- package/dist/chunks/{event-logger-t5zwprfx.js → usage-limits-x9b32rzn.js} +34 -33
- package/dist/chunks/{event-logger-331zmft7.js → usage-limits-xbav9n5z.js} +15 -15
- package/dist/chunks/{event-logger-q05tgvb2.js → usage-limits-xdqampcn.js} +4 -4
- package/dist/chunks/{event-logger-1rjegszx.js → usage-limits-xn2qebtj.js} +4 -4
- package/dist/chunks/{event-logger-4xa9359s.js → usage-limits-xt31cxt3.js} +9 -9
- package/dist/chunks/{event-logger-wyqjen5s.js → usage-limits-xvxtnz2r.js} +11 -11
- package/dist/chunks/usage-limits-xwxxqkka.js +517 -0
- package/dist/chunks/{event-logger-xczbbc2n.js → usage-limits-y0psn2qh.js} +13 -13
- package/dist/chunks/{event-logger-yara3q77.js → usage-limits-yara3q77.js} +2 -2
- package/dist/chunks/{event-logger-yb20nhc3.js → usage-limits-yb20nhc3.js} +1 -1
- package/dist/chunks/{event-logger-vkhmt3za.js → usage-limits-yvd776ry.js} +35 -35
- package/dist/chunks/{event-logger-7ytgdqqc.js → usage-limits-yyhawyxv.js} +25 -25
- package/dist/chunks/{event-logger-z0bkrqjs.js → usage-limits-z0bkrqjs.js} +1 -1
- package/dist/chunks/{event-logger-bfbc4kpy.js → usage-limits-z11pmy76.js} +11 -11
- package/dist/chunks/{event-logger-8k8s1td8.js → usage-limits-z226nxt7.js} +5 -5
- package/dist/chunks/{event-logger-z38nccrw.js → usage-limits-z38nccrw.js} +1 -1
- package/dist/chunks/{event-logger-ht33fk1k.js → usage-limits-z3czf3fh.js} +12 -12
- package/dist/chunks/{event-logger-a52e4zaq.js → usage-limits-z5g0wk4p.js} +5 -5
- package/dist/chunks/{event-logger-nvxqht09.js → usage-limits-zb5gs1ba.js} +3 -3
- package/dist/chunks/{event-logger-bn6jkna4.js → usage-limits-zczrc06z.js} +20 -20
- package/dist/chunks/{event-logger-sjt0aqsb.js → usage-limits-zgjdg34p.js} +22 -22
- package/dist/chunks/{event-logger-9z9tayqc.js → usage-limits-zh7bbm8x.js} +9 -9
- package/dist/chunks/{event-logger-a8sm5zt7.js → usage-limits-zk9m6t02.js} +14 -14
- package/dist/chunks/{event-logger-zkg84ctx.js → usage-limits-zkg84ctx.js} +1 -1
- package/dist/chunks/{event-logger-4zf9yj1j.js → usage-limits-zn491x3r.js} +6 -6
- package/dist/chunks/{event-logger-88a5ws0g.js → usage-limits-zsss5rke.js} +22 -22
- package/dist/chunks/{event-logger-w0cs00f7.js → usage-limits-zxbb6dcf.js} +18 -18
- 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 +89 -89
- package/dist/config/discovery.js +90 -90
- package/dist/config/integration.js +7 -7
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +109 -109
- 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 +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 +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 +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 +126 -126
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +91 -91
- package/dist/database/database.js +78 -78
- 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 +98 -98
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +381 -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 +1 -1
- package/dist/environment/index.js +101 -101
- 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 +140 -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 +232 -232
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +107 -107
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +108 -108
- package/dist/form.js +90 -90
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +91 -91
- package/dist/generate.js +113 -113
- 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 +101 -101
- 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 +12 -0
- package/dist/image/photon-worker.js +19 -0
- package/dist/image/photon.js +124 -110
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +372 -372
- package/dist/instruction-discovery.js +92 -92
- package/dist/instructions/builtins.js +95 -95
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +95 -95
- 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 +369 -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 +117 -117
- package/dist/mcp/instructions.js +168 -168
- 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 +101 -101
- package/dist/model-resolver.js +107 -107
- package/dist/model-retry.js +1 -1
- package/dist/model.js +110 -110
- package/dist/models-dev.js +115 -115
- 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 +94 -94
- 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 +3 -3
- package/dist/plugin/internal.js +342 -342
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +104 -104
- package/dist/plugin/module.js +123 -123
- package/dist/plugin/optimize.js +2 -2
- 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 +121 -121
- 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 +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 +361 -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 +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +232 -232
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +92 -92
- 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 +96 -96
- package/dist/reference.js +96 -96
- package/dist/repository-cache.js +88 -88
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +105 -105
- package/dist/rpc.js +94 -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 +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +228 -228
- package/dist/session/execution.js +152 -152
- package/dist/session/generate.js +188 -188
- package/dist/session/history.js +132 -130
- 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 -130
- 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 +152 -152
- package/dist/session/projector.js +132 -132
- 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 +172 -172
- 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 +4 -4
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +219 -219
- package/dist/session/system-prompt.js +3 -3
- 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 +219 -219
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +15 -15
- package/dist/shell.js +137 -137
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +143 -143
- package/dist/skill.js +144 -144
- package/dist/snapshot.js +99 -99
- 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 +160 -160
- package/dist/tool/plugin/grep.js +160 -160
- package/dist/tool/plugin/mcp-resource.js +154 -154
- package/dist/tool/plugin/opencode.js +145 -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 +222 -222
- package/dist/tool/plugin/skill.js +147 -147
- package/dist/tool/plugin/subagent.js +218 -218
- package/dist/tool/plugin/todo.js +145 -145
- package/dist/tool/plugin/webfetch.js +145 -145
- package/dist/tool/plugin/websearch.js +143 -143
- package/dist/tool/plugin/write.js +158 -158
- 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 +12 -12
- package/dist/types/agent.d.ts +5 -0
- package/dist/types/image/photon-normalize.d.ts +28 -0
- package/dist/types/image/photon-worker.d.ts +12 -0
- package/dist/types/image/photon.d.ts +14 -4
- package/dist/types/mime.d.ts +1 -1
- package/dist/types/model-resolver.d.ts +2 -0
- package/dist/types/model.d.ts +20 -0
- package/dist/types/provider.d.ts +24 -0
- package/dist/types/session/compaction.d.ts +11 -8
- package/dist/types/session/history.d.ts +410 -0
- 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 +1 -1
- package/dist/v1/config/mcp.js +6 -6
- 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 +82 -82
- 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 +9 -9
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +97 -97
- package/dist/worktree.js +106 -106
- package/package.json +8 -8
- package/dist/chunks/event-logger-4my81qaj.js +0 -18
- package/dist/chunks/event-logger-7q08zbzq.js +0 -26
- package/dist/chunks/event-logger-99bhpp1n.js +0 -517
- package/dist/chunks/event-logger-cfbx046s.js +0 -257
- /package/dist/chunks/{event-logger-0qkdqm5v.js → usage-limits-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{event-logger-0zkw76rk.js → usage-limits-0zkw76rk.js} +0 -0
- /package/dist/chunks/{event-logger-17cy0kzp.js → usage-limits-17cy0kzp.js} +0 -0
- /package/dist/chunks/{event-logger-1cnp2v09.js → usage-limits-1cnp2v09.js} +0 -0
- /package/dist/chunks/{event-logger-24dcb14g.js → usage-limits-24dcb14g.js} +0 -0
- /package/dist/chunks/{event-logger-2710q6r3.js → usage-limits-2710q6r3.js} +0 -0
- /package/dist/chunks/{event-logger-2bv980vf.js → usage-limits-2bv980vf.js} +0 -0
- /package/dist/chunks/{event-logger-2c3vjs8z.js → usage-limits-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{event-logger-359p4xyc.js → usage-limits-359p4xyc.js} +0 -0
- /package/dist/chunks/{event-logger-3asan66x.js → usage-limits-3asan66x.js} +0 -0
- /package/dist/chunks/{event-logger-3v8g72cx.js → usage-limits-3v8g72cx.js} +0 -0
- /package/dist/chunks/{event-logger-3wcehsnq.js → usage-limits-3wcehsnq.js} +0 -0
- /package/dist/chunks/{event-logger-43n2bw4t.js → usage-limits-43n2bw4t.js} +0 -0
- /package/dist/chunks/{event-logger-4knz6hnm.js → usage-limits-4knz6hnm.js} +0 -0
- /package/dist/chunks/{event-logger-4m86bj6y.js → usage-limits-4m86bj6y.js} +0 -0
- /package/dist/chunks/{event-logger-4vcrnpx2.js → usage-limits-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{event-logger-4y7fprxs.js → usage-limits-4y7fprxs.js} +0 -0
- /package/dist/chunks/{event-logger-53557ph1.js → usage-limits-53557ph1.js} +0 -0
- /package/dist/chunks/{event-logger-550bvhaj.js → usage-limits-550bvhaj.js} +0 -0
- /package/dist/chunks/{event-logger-5fjb7ams.js → usage-limits-5fjb7ams.js} +0 -0
- /package/dist/chunks/{event-logger-5w3e23ze.js → usage-limits-5w3e23ze.js} +0 -0
- /package/dist/chunks/{event-logger-6prwharc.js → usage-limits-6prwharc.js} +0 -0
- /package/dist/chunks/{event-logger-6q2bdcd1.js → usage-limits-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{event-logger-7akdwqpd.js → usage-limits-7akdwqpd.js} +0 -0
- /package/dist/chunks/{event-logger-7m9af43g.js → usage-limits-7m9af43g.js} +0 -0
- /package/dist/chunks/{event-logger-822emrt2.js → usage-limits-822emrt2.js} +0 -0
- /package/dist/chunks/{event-logger-84wd9syh.js → usage-limits-84wd9syh.js} +0 -0
- /package/dist/chunks/{event-logger-88xbtdfr.js → usage-limits-88xbtdfr.js} +0 -0
- /package/dist/chunks/{event-logger-8n3pysct.js → usage-limits-8n3pysct.js} +0 -0
- /package/dist/chunks/{event-logger-8wj87zfr.js → usage-limits-8wj87zfr.js} +0 -0
- /package/dist/chunks/{event-logger-9a4afbnw.js → usage-limits-9a4afbnw.js} +0 -0
- /package/dist/chunks/{event-logger-9rqn6x4v.js → usage-limits-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{event-logger-a058387c.js → usage-limits-a058387c.js} +0 -0
- /package/dist/chunks/{event-logger-a6k6eb26.js → usage-limits-a6k6eb26.js} +0 -0
- /package/dist/chunks/{event-logger-af5trqkr.js → usage-limits-af5trqkr.js} +0 -0
- /package/dist/chunks/{event-logger-afrmfg78.js → usage-limits-afrmfg78.js} +0 -0
- /package/dist/chunks/{event-logger-aqzs7mqg.js → usage-limits-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{event-logger-atq7p7m5.js → usage-limits-atq7p7m5.js} +0 -0
- /package/dist/chunks/{event-logger-bkyjaxrp.js → usage-limits-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{event-logger-bmr6ed5q.js → usage-limits-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{event-logger-cf4snx6d.js → usage-limits-cf4snx6d.js} +0 -0
- /package/dist/chunks/{event-logger-cqv5kn06.js → usage-limits-cqv5kn06.js} +0 -0
- /package/dist/chunks/{event-logger-cvy3z8tj.js → usage-limits-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{event-logger-d9fn303g.js → usage-limits-d9fn303g.js} +0 -0
- /package/dist/chunks/{event-logger-d9jj8t3e.js → usage-limits-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{event-logger-dajrwvna.js → usage-limits-dajrwvna.js} +0 -0
- /package/dist/chunks/{event-logger-dap0rakb.js → usage-limits-dap0rakb.js} +0 -0
- /package/dist/chunks/{event-logger-df08tz66.js → usage-limits-df08tz66.js} +0 -0
- /package/dist/chunks/{event-logger-dy18nga0.js → usage-limits-dy18nga0.js} +0 -0
- /package/dist/chunks/{event-logger-e5kj55wp.js → usage-limits-e5kj55wp.js} +0 -0
- /package/dist/chunks/{event-logger-e73j6tqm.js → usage-limits-e73j6tqm.js} +0 -0
- /package/dist/chunks/{event-logger-ec1grn59.js → usage-limits-ec1grn59.js} +0 -0
- /package/dist/chunks/{event-logger-eh3zwz77.js → usage-limits-eh3zwz77.js} +0 -0
- /package/dist/chunks/{event-logger-emrn6kk6.js → usage-limits-emrn6kk6.js} +0 -0
- /package/dist/chunks/{event-logger-f0mxakyp.js → usage-limits-f0mxakyp.js} +0 -0
- /package/dist/chunks/{event-logger-f6n9ztr4.js → usage-limits-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{event-logger-faypxj3z.js → usage-limits-faypxj3z.js} +0 -0
- /package/dist/chunks/{event-logger-fd410y7t.js → usage-limits-fd410y7t.js} +0 -0
- /package/dist/chunks/{event-logger-fkpq3x5p.js → usage-limits-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{event-logger-g4wezp1m.js → usage-limits-g4wezp1m.js} +0 -0
- /package/dist/chunks/{event-logger-g86h250q.js → usage-limits-g86h250q.js} +0 -0
- /package/dist/chunks/{event-logger-gebd4c9n.js → usage-limits-gebd4c9n.js} +0 -0
- /package/dist/chunks/{event-logger-gftt206x.js → usage-limits-gftt206x.js} +0 -0
- /package/dist/chunks/{event-logger-hcxmzztb.js → usage-limits-hcxmzztb.js} +0 -0
- /package/dist/chunks/{event-logger-hk9envan.js → usage-limits-hk9envan.js} +0 -0
- /package/dist/chunks/{event-logger-j2ntwpah.js → usage-limits-j2ntwpah.js} +0 -0
- /package/dist/chunks/{event-logger-j5zkgpj8.js → usage-limits-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{event-logger-jjkms2e6.js → usage-limits-jjkms2e6.js} +0 -0
- /package/dist/chunks/{event-logger-jr7sbwjy.js → usage-limits-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{event-logger-jwfs4k6c.js → usage-limits-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{event-logger-jwr30sdr.js → usage-limits-jwr30sdr.js} +0 -0
- /package/dist/chunks/{event-logger-jze0r7bz.js → usage-limits-jze0r7bz.js} +0 -0
- /package/dist/chunks/{event-logger-jzg6c2d5.js → usage-limits-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{event-logger-m18g726c.js → usage-limits-m18g726c.js} +0 -0
- /package/dist/chunks/{event-logger-mp448xyj.js → usage-limits-mp448xyj.js} +0 -0
- /package/dist/chunks/{event-logger-msx8hqn2.js → usage-limits-msx8hqn2.js} +0 -0
- /package/dist/chunks/{event-logger-n05xt0ee.js → usage-limits-n05xt0ee.js} +0 -0
- /package/dist/chunks/{event-logger-n3j8tn72.js → usage-limits-n3j8tn72.js} +0 -0
- /package/dist/chunks/{event-logger-njntx4h6.js → usage-limits-njntx4h6.js} +0 -0
- /package/dist/chunks/{event-logger-q3sfg36h.js → usage-limits-q3sfg36h.js} +0 -0
- /package/dist/chunks/{event-logger-q74kybfr.js → usage-limits-q74kybfr.js} +0 -0
- /package/dist/chunks/{event-logger-qaymkmh1.js → usage-limits-qaymkmh1.js} +0 -0
- /package/dist/chunks/{event-logger-qb87gjwd.js → usage-limits-qb87gjwd.js} +0 -0
- /package/dist/chunks/{event-logger-qfa1cgps.js → usage-limits-qfa1cgps.js} +0 -0
- /package/dist/chunks/{event-logger-qg3g05ea.js → usage-limits-qg3g05ea.js} +0 -0
- /package/dist/chunks/{event-logger-qrg20bc0.js → usage-limits-qrg20bc0.js} +0 -0
- /package/dist/chunks/{event-logger-rcb2kzg1.js → usage-limits-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{event-logger-sdp7kfr6.js → usage-limits-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{event-logger-ssg3fenm.js → usage-limits-ssg3fenm.js} +0 -0
- /package/dist/chunks/{event-logger-ve7vex1e.js → usage-limits-ve7vex1e.js} +0 -0
- /package/dist/chunks/{event-logger-w803qqfp.js → usage-limits-w803qqfp.js} +0 -0
- /package/dist/chunks/{event-logger-wc3fc9cn.js → usage-limits-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{event-logger-wer8tq1h.js → usage-limits-wer8tq1h.js} +0 -0
- /package/dist/chunks/{event-logger-wjj7prxr.js → usage-limits-wjj7prxr.js} +0 -0
- /package/dist/chunks/{event-logger-wtztk69x.js → usage-limits-wtztk69x.js} +0 -0
- /package/dist/chunks/{event-logger-x0ckcb58.js → usage-limits-x0ckcb58.js} +0 -0
- /package/dist/chunks/{event-logger-x61499pn.js → usage-limits-x61499pn.js} +0 -0
- /package/dist/chunks/{event-logger-y44na4kk.js → usage-limits-y44na4kk.js} +0 -0
- /package/dist/chunks/{event-logger-y8f7s663.js → usage-limits-y8f7s663.js} +0 -0
- /package/dist/chunks/{event-logger-ygaqb7jw.js → usage-limits-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{event-logger-ym463w8f.js → usage-limits-ym463w8f.js} +0 -0
- /package/dist/chunks/{event-logger-z5v4ffb3.js → usage-limits-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{event-logger-z9919s4g.js → usage-limits-z9919s4g.js} +0 -0
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service73
|
|
4
|
+
} from "./usage-limits-mt2kpseg.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service6
|
|
7
|
+
} from "./usage-limits-3rpwkwfp.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./usage-limits-6pjqjmy2.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/compaction.ts
|
|
16
16
|
var exports_compaction = {};
|
|
17
17
|
__export(exports_compaction, {
|
|
18
18
|
ConfigCompactionPlugin: () => exports_compaction,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin5
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin5 = define({
|
|
24
24
|
id: "opencode.config.compaction",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const compaction = yield*
|
|
26
|
+
const config = yield* Service73;
|
|
27
|
+
const compaction = yield* Service6;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, compaction.reload());
|
|
29
29
|
yield* compaction.transform((editor) => {
|
|
30
30
|
editor.configure({ precompute: latest2(loaded.entries, "experimental")?.background_compaction === true });
|
|
@@ -41,4 +41,4 @@ var Plugin34 = define({
|
|
|
41
41
|
})
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
export {
|
|
44
|
+
export { Plugin5, exports_compaction };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Action2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./usage-limits-2kg89srt.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Info20
|
|
9
|
+
} from "./usage-limits-d390zwf3.js";
|
|
10
10
|
import {
|
|
11
11
|
Info18
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./usage-limits-cpvd08na.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Info17
|
|
15
|
+
} from "./usage-limits-731keyrx.js";
|
|
16
16
|
import {
|
|
17
17
|
Spec2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./usage-limits-1yq9hg58.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Info19
|
|
21
|
+
} from "./usage-limits-ja63h2sr.js";
|
|
22
22
|
import {
|
|
23
23
|
normalizeAction2,
|
|
24
24
|
migrateAgent2,
|
|
@@ -28,16 +28,16 @@ import {
|
|
|
28
28
|
migrateMcp2,
|
|
29
29
|
migrateProvider2,
|
|
30
30
|
providerID2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./usage-limits-xn2qebtj.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/config/normalize.ts
|
|
37
37
|
var exports_normalize = {};
|
|
38
38
|
__export(exports_normalize, {
|
|
39
39
|
ConfigNormalize: () => exports_normalize,
|
|
40
|
-
normalize: () =>
|
|
40
|
+
normalize: () => normalize3
|
|
41
41
|
});
|
|
42
42
|
import { isDeepStrictEqual } from "node:util";
|
|
43
43
|
import { isRecord } from "@opencode/ai/utils/record";
|
|
@@ -69,7 +69,7 @@ var unsupportedExperimental = [
|
|
|
69
69
|
var unsupportedProvider = ["id", "whitelist", "blacklist"];
|
|
70
70
|
var unsupportedModel = ["release_date", "attachment", "reasoning", "temperature", "experimental"];
|
|
71
71
|
var LegacyAutoupdate = Schema.Literals([true, false, "notify"]);
|
|
72
|
-
function
|
|
72
|
+
function normalize3(input) {
|
|
73
73
|
if (!isRecord(input))
|
|
74
74
|
return {
|
|
75
75
|
type: "rejected",
|
|
@@ -103,7 +103,7 @@ function normalize2(input) {
|
|
|
103
103
|
const migratedCommands = mapValues(legacyCommands, (value) => canonical(ConfigCommand.Info, migrateCommand2(value)));
|
|
104
104
|
const nativeCommands = decodeMap(input.commands, ConfigCommand.Info, ["commands"], diagnostics, decodeEncoded);
|
|
105
105
|
mergeMap(encoded, "commands", migratedCommands, nativeCommands, isRecord(input.command) || isRecord(input.commands), diagnostics);
|
|
106
|
-
const legacyAgents = mapValues(decodeMap(input.agent,
|
|
106
|
+
const legacyAgents = mapValues(decodeMap(input.agent, Info20, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
|
|
107
107
|
const legacySmallModel = own(input, "small_model") ? decodeValue(Schema.String, input.small_model, ["small_model"], diagnostics) : undefined;
|
|
108
108
|
const migratedSmallModel = modelSelection2(legacySmallModel);
|
|
109
109
|
if (legacySmallModel && !migratedSmallModel)
|
|
@@ -117,7 +117,7 @@ function normalize2(input) {
|
|
|
117
117
|
model: migratedSmallModel,
|
|
118
118
|
...legacyAgents.title
|
|
119
119
|
};
|
|
120
|
-
const modeAgents = mapValues(decodeMap(input.mode,
|
|
120
|
+
const modeAgents = mapValues(decodeMap(input.mode, Info20, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
|
|
121
121
|
const migratedAgents = mergeMaps(legacyAgents, modeAgents, ["agents"], diagnostics);
|
|
122
122
|
const nativeAgents = decodeMap(input.agents, ConfigAgent.Info, ["agents"], diagnostics, decodeEncoded);
|
|
123
123
|
diagnoseAgentUnsupported(input.agent, ["agent"], diagnostics);
|
|
@@ -219,7 +219,7 @@ function normalizeMcp(input, encoded, diagnostics) {
|
|
|
219
219
|
normalizeMcpTimeout(typeof value === "number" ? migrateMcpTimeout2(value) : value, timeout, path, diagnostics);
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
222
|
-
const server = decodeValue(
|
|
222
|
+
const server = decodeValue(Info17, value, path, diagnostics);
|
|
223
223
|
if (server !== undefined)
|
|
224
224
|
setOwn(legacyServers, name, canonical(ConfigMCP.Server, migrateMcp2(server)));
|
|
225
225
|
});
|
|
@@ -445,7 +445,7 @@ function migrateProviders(value, diagnostics) {
|
|
|
445
445
|
diagnoseProviderUnsupported(raw, path, diagnostics);
|
|
446
446
|
if (invalidProviderOverlays(raw, path, diagnostics))
|
|
447
447
|
return [];
|
|
448
|
-
const provider = decodeValue(
|
|
448
|
+
const provider = decodeValue(Info19, raw, path, diagnostics);
|
|
449
449
|
if (provider === undefined)
|
|
450
450
|
return [];
|
|
451
451
|
const destination = providerID2(name);
|
|
@@ -654,4 +654,4 @@ function setOwn(value, key, item) {
|
|
|
654
654
|
Object.defineProperty(value, key, { value: item, enumerable: true, configurable: true, writable: true });
|
|
655
655
|
}
|
|
656
656
|
|
|
657
|
-
export {
|
|
657
|
+
export { normalize3, exports_normalize };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/skill/discovery.ts
|
|
9
9
|
var exports_discovery = {};
|
|
10
10
|
__export(exports_discovery, {
|
|
11
|
-
Service: () =>
|
|
11
|
+
Service: () => Service10,
|
|
12
12
|
SkillDiscovery: () => exports_discovery,
|
|
13
|
-
node: () =>
|
|
13
|
+
node: () => node12
|
|
14
14
|
});
|
|
15
15
|
import path from "path";
|
|
16
16
|
import { Context, Effect, Layer, Schedule, Schema } from "effect";
|
|
@@ -48,9 +48,9 @@ class Index extends Schema.Class("SkillDiscovery.Index")({
|
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service10 extends Context.Service()("@opencode/SkillDiscovery") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
53
|
+
var layer = Layer.effect(Service10, Effect.gen(function* () {
|
|
54
54
|
const fs = yield* FSUtil.Service;
|
|
55
55
|
const global = yield* Global.Service;
|
|
56
56
|
const http = (yield* HttpClient.HttpClient).pipe(HttpClient.retryTransient({
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service5, Effect.gen(function* () {
|
|
|
63
63
|
return true;
|
|
64
64
|
return yield* HttpClientRequest.get(url).pipe(http.execute, Effect.flatMap((response) => response.arrayBuffer), Effect.flatMap((body) => fs.writeWithDirs(destination, new Uint8Array(body))), Effect.as(true), Effect.catch((error) => Effect.logError("failed to download skill file", { url, error }).pipe(Effect.as(false))));
|
|
65
65
|
});
|
|
66
|
-
return
|
|
66
|
+
return Service10.of({
|
|
67
67
|
pull: Effect.fn("SkillDiscovery.pull")(function* (url) {
|
|
68
68
|
const base = url.endsWith("/") ? url : `${url}/`;
|
|
69
69
|
const source = new URL(base);
|
|
@@ -150,6 +150,6 @@ var layer = Layer.effect(Service5, Effect.gen(function* () {
|
|
|
150
150
|
})
|
|
151
151
|
});
|
|
152
152
|
}));
|
|
153
|
-
var
|
|
153
|
+
var node12 = makeGlobalNode({ service: Service10, layer, deps: [httpClient, FSUtil.node, Global.node] });
|
|
154
154
|
|
|
155
|
-
export {
|
|
155
|
+
export { Service10, node12, exports_discovery };
|
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service87,
|
|
3
|
+
node91
|
|
4
|
+
} from "./usage-limits-httc3ny9.js";
|
|
5
5
|
import {
|
|
6
6
|
reserveSequence2,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service86,
|
|
8
|
+
node90
|
|
9
|
+
} from "./usage-limits-jjhjh3kk.js";
|
|
10
10
|
import {
|
|
11
11
|
SessionEvent2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./usage-limits-ec1grn59.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionMessage2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./usage-limits-gftt206x.js";
|
|
16
16
|
import {
|
|
17
17
|
update2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./usage-limits-b6vsg801.js";
|
|
19
19
|
import {
|
|
20
20
|
AbsolutePath2,
|
|
21
21
|
RelativePath2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./usage-limits-z5v4ffb3.js";
|
|
23
23
|
import {
|
|
24
24
|
ProjectTable2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./usage-limits-034tev2y.js";
|
|
26
26
|
import {
|
|
27
27
|
SessionTable2,
|
|
28
28
|
SessionMessageTable2,
|
|
29
29
|
SessionInboxTable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./usage-limits-gg8p9cgs.js";
|
|
31
31
|
import {
|
|
32
32
|
User3
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./usage-limits-fg9p65nk.js";
|
|
34
34
|
import {
|
|
35
35
|
externalize2,
|
|
36
36
|
recordRefs2,
|
|
37
37
|
syncRefs2,
|
|
38
38
|
releaseFrom2,
|
|
39
39
|
releaseSession2
|
|
40
|
-
} from "./
|
|
40
|
+
} from "./usage-limits-zn491x3r.js";
|
|
41
41
|
import {
|
|
42
42
|
apply2,
|
|
43
43
|
initialize3,
|
|
44
44
|
advanceEpoch2,
|
|
45
45
|
rewind2
|
|
46
|
-
} from "./
|
|
46
|
+
} from "./usage-limits-nz7ydnky.js";
|
|
47
47
|
import {
|
|
48
48
|
decodeMessageRowSync2
|
|
49
|
-
} from "./
|
|
49
|
+
} from "./usage-limits-6m26wt0b.js";
|
|
50
50
|
import {
|
|
51
51
|
projectAdmitted2,
|
|
52
52
|
projectDelivered2,
|
|
53
53
|
projectCancelled2,
|
|
54
54
|
projectDeliveryChanged2
|
|
55
|
-
} from "./
|
|
55
|
+
} from "./usage-limits-m34dtctp.js";
|
|
56
56
|
import {
|
|
57
57
|
initialize2
|
|
58
|
-
} from "./
|
|
58
|
+
} from "./usage-limits-017htdkw.js";
|
|
59
59
|
import {
|
|
60
60
|
Slug2
|
|
61
|
-
} from "./
|
|
61
|
+
} from "./usage-limits-gebd4c9n.js";
|
|
62
62
|
import {
|
|
63
63
|
__export
|
|
64
|
-
} from "./
|
|
64
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
65
65
|
|
|
66
66
|
// src/session/projector.ts
|
|
67
67
|
var exports_projector = {};
|
|
@@ -312,8 +312,8 @@ function projectIdle(db, event) {
|
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
314
|
var layer = Layer.effectDiscard(Effect.gen(function* () {
|
|
315
|
-
const bus = yield*
|
|
316
|
-
const db = (yield*
|
|
315
|
+
const bus = yield* Service86;
|
|
316
|
+
const db = (yield* Service87).db;
|
|
317
317
|
yield* bus.project(SessionEvent2.Created, (event) => Effect.gen(function* () {
|
|
318
318
|
const stored = yield* db.insert(SessionTable2).values({
|
|
319
319
|
id: event.data.sessionID,
|
|
@@ -508,6 +508,6 @@ var layer = Layer.effectDiscard(Effect.gen(function* () {
|
|
|
508
508
|
return publishSessionUsage(db, bus, event.data.sessionID);
|
|
509
509
|
}), Effect.forkScoped({ startImmediately: true }));
|
|
510
510
|
}));
|
|
511
|
-
var node22 = makeGlobalNode({ name: "session-projector", layer, deps: [
|
|
511
|
+
var node22 = makeGlobalNode({ name: "session-projector", layer, deps: [node90, node91] });
|
|
512
512
|
|
|
513
513
|
export { SessionAlreadyProjected2, node22, exports_projector };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Key3,
|
|
3
3
|
removed2,
|
|
4
|
-
|
|
4
|
+
make23,
|
|
5
5
|
diffByKey2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./usage-limits-n01qhj0y.js";
|
|
7
7
|
import {
|
|
8
8
|
Summary2,
|
|
9
9
|
summarize3,
|
|
10
10
|
namespaceLine2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./usage-limits-fffv3p7h.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/codemode/instructions.ts
|
|
17
|
-
var
|
|
18
|
-
__export(
|
|
19
|
-
CodeModeInstructions: () =>
|
|
20
|
-
make: () =>
|
|
17
|
+
var exports_instructions3 = {};
|
|
18
|
+
__export(exports_instructions3, {
|
|
19
|
+
CodeModeInstructions: () => exports_instructions3,
|
|
20
|
+
make: () => make15,
|
|
21
21
|
render: () => render2,
|
|
22
22
|
update: () => update3
|
|
23
23
|
});
|
|
@@ -109,11 +109,11 @@ ${render2(current)}`;
|
|
|
109
109
|
return delta;
|
|
110
110
|
return replacement;
|
|
111
111
|
}
|
|
112
|
-
var key =
|
|
112
|
+
var key = Key3.make("core/codemode");
|
|
113
113
|
var codec = Schema.toCodecJson(Summary2);
|
|
114
|
-
var
|
|
114
|
+
var make15 = (inventory) => {
|
|
115
115
|
const catalog = inventory === undefined ? removed2 : summarize3(inventory);
|
|
116
|
-
return
|
|
116
|
+
return make23({
|
|
117
117
|
key,
|
|
118
118
|
codec,
|
|
119
119
|
read: Effect.succeed(catalog),
|
|
@@ -125,4 +125,4 @@ var make14 = (inventory) => {
|
|
|
125
125
|
});
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export { render2, update3,
|
|
128
|
+
export { render2, update3, make15, exports_instructions3 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getTableColumnsRuntime2,
|
|
3
3
|
orderSelectedFields2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./usage-limits-emrn6kk6.js";
|
|
5
5
|
|
|
6
6
|
// src/database/drizzle/sqlite-core/effect/delete.ts
|
|
7
7
|
import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-11hfp36g.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service86,
|
|
6
|
+
node90
|
|
7
|
+
} from "./usage-limits-jjhjh3kk.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
9
|
+
Event19,
|
|
10
|
+
Service81,
|
|
11
|
+
node85
|
|
12
|
+
} from "./usage-limits-d3n1hdek.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service83,
|
|
15
|
+
node87
|
|
16
|
+
} from "./usage-limits-p1y3scnp.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service54,
|
|
19
|
+
node58
|
|
20
|
+
} from "./usage-limits-00y87jmz.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID15,
|
|
23
|
+
Service80,
|
|
24
|
+
node84
|
|
25
|
+
} from "./usage-limits-g6vqe96w.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./usage-limits-204s3925.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID14,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service79,
|
|
34
|
+
node83
|
|
35
|
+
} from "./usage-limits-2e93rzzy.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./usage-limits-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: () => NotFoundError3,
|
|
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: () =>
|
|
56
|
-
layer: () =>
|
|
57
|
-
node: () =>
|
|
55
|
+
configured: () => configured2,
|
|
56
|
+
layer: () => layer14,
|
|
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 NotFoundError3 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
|
|
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 layer14 = (options) => Layer.effect(Service30, Effect.gen(function* () {
|
|
116
|
+
const location = yield* Service83;
|
|
117
|
+
const environment = yield* Service54;
|
|
118
|
+
const bus = yield* Service86;
|
|
119
|
+
const forms = yield* Service80;
|
|
120
|
+
const integration = yield* Service79;
|
|
121
|
+
const credentials = yield* Service81;
|
|
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 layer13 = (options) => Layer.effect(Service28, 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 = ID14.make(suffix);
|
|
137
137
|
entry.integrationID = integrationID;
|
|
138
138
|
owned.add(integrationID);
|
|
139
139
|
const methodID = MethodID2.make(suffix);
|
|
@@ -149,7 +149,7 @@ var layer13 = (options) => Layer.effect(Service28, 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(Service81, credentials));
|
|
153
153
|
})
|
|
154
154
|
});
|
|
155
155
|
}).pipe(Scope.provide(scope));
|
|
@@ -157,19 +157,19 @@ var layer13 = (options) => Layer.effect(Service28, 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 NotFoundError3({ 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(Service81, 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 = ID15.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 layer13 = (options) => Layer.effect(Service28, 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(Service54, 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 layer13 = (options) => Layer.effect(Service28, 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(Service54, 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 layer13 = (options) => Layer.effect(Service28, 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(Event19.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 layer13 = (options) => Layer.effect(Service28, 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:
|
|
617
|
-
layer:
|
|
618
|
-
deps: [
|
|
616
|
+
service: Service30,
|
|
617
|
+
layer: layer14(options),
|
|
618
|
+
deps: [node87, node58, node90, node84, node83, node85]
|
|
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, NotFoundError3, ToolCallError2, Service30, Options2, layer14, configured2, node33, exports_mcp4 };
|