@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
|
+
Service39
|
|
7
|
+
} from "./usage-limits-bzr3ws0g.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/snapshot.ts
|
|
16
16
|
var exports_snapshot = {};
|
|
17
17
|
__export(exports_snapshot, {
|
|
18
18
|
ConfigSnapshotPlugin: () => exports_snapshot,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin9
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin9 = define({
|
|
24
24
|
id: "opencode.config.snapshot",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const snapshot = yield*
|
|
26
|
+
const config = yield* Service73;
|
|
27
|
+
const snapshot = yield* Service39;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, snapshot.reload());
|
|
29
29
|
yield* snapshot.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "snapshots");
|
|
@@ -35,4 +35,4 @@ var Plugin24 = define({
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
export {
|
|
38
|
+
export { Plugin9, exports_snapshot };
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service86,
|
|
3
|
+
node90
|
|
4
|
+
} from "./usage-limits-jjhjh3kk.js";
|
|
5
5
|
import {
|
|
6
6
|
changes2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./usage-limits-204s3925.js";
|
|
9
9
|
import {
|
|
10
10
|
__export
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
12
12
|
|
|
13
13
|
// src/agent.ts
|
|
14
14
|
var exports_agent3 = {};
|
|
15
15
|
__export(exports_agent3, {
|
|
16
16
|
Agent: () => exports_agent3,
|
|
17
17
|
Color: () => Color2,
|
|
18
|
-
Event: () =>
|
|
19
|
-
ID: () =>
|
|
20
|
-
Info: () =>
|
|
18
|
+
Event: () => Event13,
|
|
19
|
+
ID: () => ID10,
|
|
20
|
+
Info: () => Info15,
|
|
21
21
|
Name: () => Name3,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service71,
|
|
23
23
|
defaultID: () => defaultID2,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node75
|
|
25
25
|
});
|
|
26
26
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { Array, Context, Effect, Layer } from "effect";
|
|
28
28
|
import { Agent } from "@opencode/schema/agent";
|
|
29
|
-
import { Event as
|
|
30
|
-
var
|
|
29
|
+
import { Event as Event13 } from "@opencode/schema/agent";
|
|
30
|
+
var ID10 = Agent.ID;
|
|
31
31
|
var Name3 = Agent.Name;
|
|
32
|
-
var defaultID2 =
|
|
32
|
+
var defaultID2 = ID10.make("build");
|
|
33
33
|
var Color2 = Agent.Color;
|
|
34
|
-
var
|
|
34
|
+
var Info15 = Agent.Info;
|
|
35
35
|
|
|
36
|
-
class
|
|
36
|
+
class Service71 extends Context.Service()("@opencode/Agent") {
|
|
37
37
|
}
|
|
38
|
-
var layer = Layer.effect(
|
|
39
|
-
const bus = yield*
|
|
38
|
+
var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
39
|
+
const bus = yield* Service86;
|
|
40
40
|
const selectable = (agent) => agent && agent.mode !== "subagent" && !agent.hidden ? agent : undefined;
|
|
41
41
|
const selectedDefault = (data) => {
|
|
42
42
|
const configured = data.default ? selectable(data.agents.get(data.default)) : undefined;
|
|
@@ -68,7 +68,7 @@ var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
|
68
68
|
editor.default = id;
|
|
69
69
|
},
|
|
70
70
|
update: (id, fn) => {
|
|
71
|
-
const current = editor.agents.get(id) ??
|
|
71
|
+
const current = editor.agents.get(id) ?? Info15.default(id);
|
|
72
72
|
if (!editor.agents.has(id))
|
|
73
73
|
editor.agents.set(id, current);
|
|
74
74
|
fn(current);
|
|
@@ -80,7 +80,7 @@ var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
|
80
80
|
}),
|
|
81
81
|
notify: changes2(list, () => bus.publish(Agent.Event.Updated, {}).pipe(Effect.asVoid))
|
|
82
82
|
});
|
|
83
|
-
return
|
|
83
|
+
return Service71.of({
|
|
84
84
|
transform: state.transform,
|
|
85
85
|
reload: state.reload,
|
|
86
86
|
get: Effect.fn("Agent.get")(function* (id) {
|
|
@@ -88,7 +88,7 @@ var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
|
88
88
|
}),
|
|
89
89
|
resolve: Effect.fnUntraced(function* (id) {
|
|
90
90
|
if (id !== undefined)
|
|
91
|
-
return state.get().agents.get(
|
|
91
|
+
return state.get().agents.get(ID10.make(id));
|
|
92
92
|
return selectedDefault(state.get());
|
|
93
93
|
}),
|
|
94
94
|
select: Effect.fn("Agent.select")(function* (id) {
|
|
@@ -102,6 +102,6 @@ var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
|
102
102
|
})
|
|
103
103
|
});
|
|
104
104
|
}));
|
|
105
|
-
var
|
|
105
|
+
var node75 = makeLocationNode({ service: Service71, layer, deps: [node90] });
|
|
106
106
|
|
|
107
|
-
export {
|
|
107
|
+
export { ID10, Name3, defaultID2, Color2, Info15, Service71, node75, exports_agent3, Event13 };
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-bst727gy.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service86
|
|
6
|
+
} from "./usage-limits-jjhjh3kk.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Event19,
|
|
10
|
+
Service81
|
|
11
|
+
} from "./usage-limits-d3n1hdek.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID14,
|
|
14
14
|
MethodID2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./usage-limits-2e93rzzy.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID13,
|
|
18
18
|
mergeOverlay2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./usage-limits-6a8c7h5g.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
ID12,
|
|
22
22
|
VariantID2,
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
23
|
+
Info22
|
|
24
|
+
} from "./usage-limits-5pqa69a9.js";
|
|
25
25
|
import {
|
|
26
26
|
success2,
|
|
27
27
|
error2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./usage-limits-yb20nhc3.js";
|
|
29
29
|
import {
|
|
30
30
|
get5
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./usage-limits-3nnrz6f6.js";
|
|
32
32
|
import {
|
|
33
33
|
configuredSettings2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./usage-limits-jsghge5n.js";
|
|
35
35
|
|
|
36
36
|
// src/plugin/provider/chatgpt.ts
|
|
37
37
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -43,8 +43,8 @@ var issuer = "https://auth.openai.com";
|
|
|
43
43
|
var tokenURL = `${issuer}/api/accounts/oauth/token`;
|
|
44
44
|
var resource = "https://api.openai.com/v1";
|
|
45
45
|
var tokenSharingScope = "chatgpt.tokens.use.direct";
|
|
46
|
-
var providerID =
|
|
47
|
-
var integrationID =
|
|
46
|
+
var providerID = ID13.openai;
|
|
47
|
+
var integrationID = ID14.make("openai");
|
|
48
48
|
var methodID = MethodID2.make("chatgpt-token-sharing");
|
|
49
49
|
var modelCacheKey = (clientID) => `models:${clientID}`;
|
|
50
50
|
var fallbackModels = new Set([
|
|
@@ -179,8 +179,8 @@ function listen(server) {
|
|
|
179
179
|
var ChatGPTPlugin2 = define({
|
|
180
180
|
id: "opencode.provider.chatgpt",
|
|
181
181
|
effect: Effect.fn(function* (ctx) {
|
|
182
|
-
const bus = yield*
|
|
183
|
-
const credentials = yield*
|
|
182
|
+
const bus = yield* Service86;
|
|
183
|
+
const credentials = yield* Service81;
|
|
184
184
|
const loading = Semaphore.makeUnsafe(1);
|
|
185
185
|
let chatgpt;
|
|
186
186
|
let source;
|
|
@@ -195,7 +195,7 @@ var ChatGPTPlugin2 = define({
|
|
|
195
195
|
yield* ctx.integration.transform((editor) => {
|
|
196
196
|
editor.method.update(signIn(ctx.app, () => Option.getOrUndefined(decodeMetadata(chatgpt?.metadata))?.clientID, ctx.storage));
|
|
197
197
|
});
|
|
198
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
198
|
+
yield* Effect.forEach(yield* credentials.list(ID14.make("openai")), (entry) => {
|
|
199
199
|
const value = entry.value;
|
|
200
200
|
if (value.type !== "oauth" || value.methodID !== MethodID2.make("chatgpt-browser"))
|
|
201
201
|
return Effect.void;
|
|
@@ -268,7 +268,7 @@ var ChatGPTPlugin2 = define({
|
|
|
268
268
|
}
|
|
269
269
|
});
|
|
270
270
|
const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
271
|
-
yield* bus.subscribe(
|
|
271
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
|
|
272
272
|
})
|
|
273
273
|
});
|
|
274
274
|
function headers(app) {
|
|
@@ -325,7 +325,7 @@ function deriveModels2(remote, existing) {
|
|
|
325
325
|
const found = byID.get(model.modelID);
|
|
326
326
|
return found ? [deriveModel(found, model)] : [];
|
|
327
327
|
}),
|
|
328
|
-
...remote.filter((model) => !known.has(
|
|
328
|
+
...remote.filter((model) => !known.has(ID12.make(model.slug))).map((model) => deriveModel(model, Info22.default(ID13.openai, ID12.make(model.slug))))
|
|
329
329
|
];
|
|
330
330
|
}
|
|
331
331
|
function deriveModel(remote, previous) {
|
|
@@ -1,83 +1,83 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Service87,
|
|
3
|
+
node91
|
|
4
|
+
} from "./usage-limits-httc3ny9.js";
|
|
1
5
|
import {
|
|
2
6
|
Service86,
|
|
3
7
|
node90
|
|
4
|
-
} from "./
|
|
5
|
-
import {
|
|
6
|
-
Service85,
|
|
7
|
-
node89
|
|
8
|
-
} from "./event-logger-83fr3fym.js";
|
|
8
|
+
} from "./usage-limits-jjhjh3kk.js";
|
|
9
9
|
import {
|
|
10
10
|
create3
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./usage-limits-204s3925.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
13
|
+
ID10,
|
|
14
|
+
Service71,
|
|
15
|
+
node75
|
|
16
|
+
} from "./usage-limits-3g307r2d.js";
|
|
17
17
|
import {
|
|
18
18
|
llmClient2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./usage-limits-p015t6z3.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
21
|
+
Service75,
|
|
22
|
+
node79
|
|
23
|
+
} from "./usage-limits-5pqa69a9.js";
|
|
24
24
|
import {
|
|
25
25
|
estimate2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./usage-limits-8wtp7s3z.js";
|
|
27
27
|
import {
|
|
28
28
|
SessionEvent2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./usage-limits-ec1grn59.js";
|
|
30
30
|
import {
|
|
31
31
|
kept2,
|
|
32
32
|
messageToText2,
|
|
33
33
|
serializeToolContent2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./usage-limits-v2r1d0zg.js";
|
|
35
35
|
import {
|
|
36
36
|
isNativeCompaction2,
|
|
37
|
-
|
|
38
|
-
} from "./
|
|
37
|
+
load5
|
|
38
|
+
} from "./usage-limits-6m26wt0b.js";
|
|
39
39
|
import {
|
|
40
40
|
toLLMMessages2
|
|
41
|
-
} from "./
|
|
41
|
+
} from "./usage-limits-0h3ekpfr.js";
|
|
42
42
|
import {
|
|
43
43
|
outputLimit2,
|
|
44
44
|
baseTranscript2,
|
|
45
45
|
unsupportedParts2,
|
|
46
46
|
boundImages2,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
} from "./
|
|
47
|
+
Service21,
|
|
48
|
+
node25
|
|
49
|
+
} from "./usage-limits-x9b32rzn.js";
|
|
50
50
|
import {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
} from "./
|
|
51
|
+
Service63,
|
|
52
|
+
node67
|
|
53
|
+
} from "./usage-limits-nmrzq4b4.js";
|
|
54
54
|
import {
|
|
55
55
|
isRetryable2,
|
|
56
56
|
policy2
|
|
57
|
-
} from "./
|
|
57
|
+
} from "./usage-limits-6jrjvs1q.js";
|
|
58
58
|
import {
|
|
59
59
|
toSessionError2,
|
|
60
60
|
contentFilterError2
|
|
61
|
-
} from "./
|
|
61
|
+
} from "./usage-limits-81s6gp0d.js";
|
|
62
62
|
import {
|
|
63
63
|
calculateCost2,
|
|
64
64
|
record2,
|
|
65
65
|
add2
|
|
66
|
-
} from "./
|
|
66
|
+
} from "./usage-limits-r542h3bh.js";
|
|
67
67
|
import {
|
|
68
68
|
__export
|
|
69
|
-
} from "./
|
|
69
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
70
70
|
|
|
71
71
|
// src/session/compaction.ts
|
|
72
72
|
var exports_compaction2 = {};
|
|
73
73
|
__export(exports_compaction2, {
|
|
74
|
-
Service: () =>
|
|
74
|
+
Service: () => Service6,
|
|
75
75
|
SessionCompaction: () => exports_compaction2,
|
|
76
76
|
buildPrompt: () => buildPrompt2,
|
|
77
77
|
estimateContext: () => estimateContext2,
|
|
78
78
|
estimatePrompt: () => estimatePrompt2,
|
|
79
|
-
layer: () =>
|
|
80
|
-
node: () =>
|
|
79
|
+
layer: () => layer7,
|
|
80
|
+
node: () => node8,
|
|
81
81
|
recentUserMessages: () => recentUserMessages2
|
|
82
82
|
});
|
|
83
83
|
import {
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
} from "@opencode/ai/effect";
|
|
94
94
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
95
95
|
import { Context, Effect, Exit, Fiber, Layer, Result, Scope, Stream } from "effect";
|
|
96
|
-
class
|
|
96
|
+
class Service6 extends Context.Service()("@opencode/SessionCompaction") {
|
|
97
97
|
}
|
|
98
98
|
var NOTHING_TO_COMPACT = { error: { type: "compaction.unavailable", message: "Nothing to compact yet" } };
|
|
99
99
|
var SHRINK_STEPS = [0.85, 0.7, 0.5, 0.35];
|
|
@@ -184,14 +184,14 @@ var buildPrompt2 = (update, legacy = false) => {
|
|
|
184
184
|
};
|
|
185
185
|
var NUDGE = "The previous response did not fill in the required summary template. Do not call tools. Return the summary as text using the exact section headings from the template.";
|
|
186
186
|
var LEGACY_HEADING = "## Additional Context";
|
|
187
|
-
var
|
|
188
|
-
const agents = yield*
|
|
189
|
-
const bus = yield*
|
|
187
|
+
var layer7 = Layer.effect(Service6, Effect.gen(function* () {
|
|
188
|
+
const agents = yield* Service71;
|
|
189
|
+
const bus = yield* Service86;
|
|
190
190
|
const llm = yield* LLMClient.Service;
|
|
191
|
-
const catalog = yield*
|
|
192
|
-
const models = yield*
|
|
193
|
-
const db = (yield*
|
|
194
|
-
const requests = yield*
|
|
191
|
+
const catalog = yield* Service75;
|
|
192
|
+
const models = yield* Service63;
|
|
193
|
+
const db = (yield* Service87).db;
|
|
194
|
+
const requests = yield* Service21;
|
|
195
195
|
const scope = yield* Scope.Scope;
|
|
196
196
|
const precomputed = new Map;
|
|
197
197
|
const state = create3({
|
|
@@ -204,7 +204,7 @@ var layer8 = Layer.effect(Service12, Effect.gen(function* () {
|
|
|
204
204
|
})
|
|
205
205
|
});
|
|
206
206
|
const selectModel = Effect.fnUntraced(function* (context, buffer, native) {
|
|
207
|
-
const agent = native ? undefined : yield* agents.get(
|
|
207
|
+
const agent = native ? undefined : yield* agents.get(ID10.make("compaction"));
|
|
208
208
|
const model = (agent?.model && (yield* models.resolve({ ...context.session, model: agent.model }, catalog.available).pipe(Effect.orElseSucceed(() => {
|
|
209
209
|
return;
|
|
210
210
|
})))) ?? context.model;
|
|
@@ -217,13 +217,13 @@ var layer8 = Layer.effect(Service12, Effect.gen(function* () {
|
|
|
217
217
|
const context = trigger.context;
|
|
218
218
|
if (trigger.reason !== "manual" && !settings.auto)
|
|
219
219
|
return { status: "skipped" };
|
|
220
|
-
if (trigger.reason === "auto" && !due(context, calculateCeiling(context.model.limit, settings.buffer)))
|
|
220
|
+
if (trigger.reason === "auto" && !due(context, calculateCeiling(context.model.limit, settings.buffer), trigger.estimate))
|
|
221
221
|
return { status: "skipped" };
|
|
222
222
|
const held = precomputed.get(context.session.id);
|
|
223
223
|
precomputed.delete(context.session.id);
|
|
224
224
|
const native = context.model.compaction?.type === "native";
|
|
225
225
|
const model = yield* selectModel(context, settings.buffer, native);
|
|
226
|
-
const budget = trigger.reason === "overflow" ? Math.min(model.cap, Math.floor(
|
|
226
|
+
const budget = trigger.reason === "overflow" ? Math.min(model.cap, Math.floor(total(trigger.estimate ?? estimatePrompt2(context)) * SHRINK_STEPS[0])) : model.cap;
|
|
227
227
|
const selected = model.context === context ? trigger : { ...trigger, context: model.context };
|
|
228
228
|
if (trigger.reason !== "manual")
|
|
229
229
|
yield* bus.publish(SessionEvent2.Compaction.Started, { sessionID: context.session.id, reason: "auto" });
|
|
@@ -234,7 +234,7 @@ var layer8 = Layer.effect(Service12, Effect.gen(function* () {
|
|
|
234
234
|
onFailure: (failure) => publish(selected, failure)
|
|
235
235
|
}));
|
|
236
236
|
});
|
|
237
|
-
const precompute = Effect.fn("SessionCompaction.precompute")(function* (load) {
|
|
237
|
+
const precompute = Effect.fn("SessionCompaction.precompute")(function* (load, given) {
|
|
238
238
|
const settings = state.get();
|
|
239
239
|
if (!settings.precompute || !settings.auto)
|
|
240
240
|
return;
|
|
@@ -242,9 +242,12 @@ var layer8 = Layer.effect(Service12, Effect.gen(function* () {
|
|
|
242
242
|
if (context.model.compaction?.type === "native")
|
|
243
243
|
return;
|
|
244
244
|
const ceiling = calculateCeiling(context.model.limit, settings.buffer);
|
|
245
|
-
if (!Number.isFinite(ceiling)
|
|
245
|
+
if (!Number.isFinite(ceiling))
|
|
246
|
+
return;
|
|
247
|
+
const estimate = given ?? estimatePrompt2(context);
|
|
248
|
+
if (due(context, ceiling, estimate))
|
|
246
249
|
return;
|
|
247
|
-
if (
|
|
250
|
+
if (total(estimate) < ceiling * PRECOMPUTE_RATIO)
|
|
248
251
|
return;
|
|
249
252
|
const anchorIndex = context.messages.findLastIndex((message) => hasMeasuredPrompt(message, context.model.ref));
|
|
250
253
|
const anchor = context.messages[anchorIndex];
|
|
@@ -299,7 +302,7 @@ var layer8 = Layer.effect(Service12, Effect.gen(function* () {
|
|
|
299
302
|
held.usage.forEach((usage) => addSpent(context.session.id, usage));
|
|
300
303
|
return { ...exit.value, metadata: { keepID: held.keepID, ...exit.value.metadata } };
|
|
301
304
|
});
|
|
302
|
-
const due = (context, ceiling) => {
|
|
305
|
+
const due = (context, ceiling, estimate) => {
|
|
303
306
|
const messages = context.messages;
|
|
304
307
|
const last = messages.at(-1);
|
|
305
308
|
if (last?.type === "compaction" && last.status === "completed")
|
|
@@ -307,7 +310,7 @@ var layer8 = Layer.effect(Service12, Effect.gen(function* () {
|
|
|
307
310
|
const measured = messages.findLastIndex((message) => hasMeasuredPrompt(message, context.model.ref));
|
|
308
311
|
if (measured < messages.findLastIndex(isNativeCompaction2))
|
|
309
312
|
return false;
|
|
310
|
-
return
|
|
313
|
+
return total(estimate ?? estimatePrompt2(context)) >= ceiling;
|
|
311
314
|
};
|
|
312
315
|
const summarize = Effect.fnUntraced(function* (trigger, budget, keep, background) {
|
|
313
316
|
const context = trigger.context;
|
|
@@ -359,7 +362,7 @@ var layer8 = Layer.effect(Service12, Effect.gen(function* () {
|
|
|
359
362
|
const send = (request) => {
|
|
360
363
|
if (LLMClient.canCompact(request, { mechanism: "trigger" })) {
|
|
361
364
|
return Effect.gen(function* () {
|
|
362
|
-
const history = yield*
|
|
365
|
+
const history = yield* load5(db, context.session.id, "local").pipe(Effect.orDie);
|
|
363
366
|
const retained = recentUserMessages2(history, context.model, keep);
|
|
364
367
|
const response = yield* llm.compact(request, { ...prepared.options, mechanism: "trigger" });
|
|
365
368
|
return yield* toResult([...retained, Message.assistant(response.checkpoint)], response.usage);
|
|
@@ -574,17 +577,17 @@ var layer8 = Layer.effect(Service12, Effect.gen(function* () {
|
|
|
574
577
|
}, { metadata: outcome.metadata });
|
|
575
578
|
return { status: "completed" };
|
|
576
579
|
});
|
|
577
|
-
return
|
|
580
|
+
return Service6.of({
|
|
578
581
|
transform: state.transform,
|
|
579
582
|
reload: state.reload,
|
|
580
583
|
compact: (trigger) => compact(trigger).pipe(Effect.onInterrupt(() => trigger.reason === "manual" ? Effect.void : publish(trigger, { error: { type: "compaction.interrupted", message: "Compaction was interrupted" } })), Effect.ensuring(Effect.sync(() => spent.delete(trigger.context.session.id)))),
|
|
581
584
|
precompute
|
|
582
585
|
});
|
|
583
586
|
}));
|
|
584
|
-
var
|
|
585
|
-
service:
|
|
586
|
-
layer:
|
|
587
|
-
deps: [
|
|
587
|
+
var node8 = makeLocationNode({
|
|
588
|
+
service: Service6,
|
|
589
|
+
layer: layer7,
|
|
590
|
+
deps: [node75, node90, node91, llmClient2, node79, node25, node67]
|
|
588
591
|
});
|
|
589
592
|
var heldIndex = (held, context) => {
|
|
590
593
|
if (held.firstID !== context.messages[0]?.id || held.initial !== context.initial)
|
|
@@ -698,10 +701,8 @@ var recentUserMessages2 = (messages, model, keep) => {
|
|
|
698
701
|
const sendable = boundImages2(unsupportedParts2(toLLMMessages2(users, model.ref), model.capabilities));
|
|
699
702
|
return sendable.slice(oldestToDrop(sendable, estimateMessage, keep));
|
|
700
703
|
};
|
|
701
|
-
var
|
|
702
|
-
|
|
703
|
-
return prompt.measured + prompt.estimated;
|
|
704
|
-
};
|
|
704
|
+
var total = (estimate) => estimate.measured + estimate.estimated;
|
|
705
|
+
var estimateContext2 = (context) => total(estimatePrompt2(context));
|
|
705
706
|
var estimatePrompt2 = (context) => {
|
|
706
707
|
const anchorIndex = context.messages.findLastIndex((message) => hasMeasuredPrompt(message, context.model.ref));
|
|
707
708
|
const anchor = context.messages[anchorIndex];
|
|
@@ -771,4 +772,4 @@ var estimateMedia = (mime) => {
|
|
|
771
772
|
return 0;
|
|
772
773
|
};
|
|
773
774
|
|
|
774
|
-
export {
|
|
775
|
+
export { Service6, buildPrompt2, layer7, node8, recentUserMessages2, estimateContext2, estimatePrompt2, exports_compaction2 };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service86
|
|
3
|
+
} from "./usage-limits-jjhjh3kk.js";
|
|
4
4
|
import {
|
|
5
5
|
key2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./usage-limits-61ennm6n.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Event19
|
|
9
|
+
} from "./usage-limits-d3n1hdek.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
ID14
|
|
12
|
+
} from "./usage-limits-2e93rzzy.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
ID13,
|
|
15
|
+
Service76
|
|
16
|
+
} from "./usage-limits-6a8c7h5g.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
18
|
+
load3,
|
|
19
19
|
derive2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./usage-limits-0rmv48be.js";
|
|
21
21
|
|
|
22
22
|
// src/plugin/provider/modal.ts
|
|
23
23
|
import { Effect, Semaphore, Stream } from "effect";
|
|
24
24
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
25
|
-
var providerID =
|
|
25
|
+
var providerID = ID13.make("modal");
|
|
26
26
|
var ModalPlugin2 = define({
|
|
27
27
|
id: "opencode.provider.modal",
|
|
28
28
|
effect: Effect.fn(function* (ctx) {
|
|
29
|
-
const providers = yield*
|
|
30
|
-
const bus = yield*
|
|
29
|
+
const providers = yield* Service76;
|
|
30
|
+
const bus = yield* Service86;
|
|
31
31
|
const loading = Semaphore.makeUnsafe(1);
|
|
32
32
|
const loaded = {};
|
|
33
33
|
const load = Effect.fn("ModalPlugin.load")(function* () {
|
|
@@ -45,7 +45,7 @@ var ModalPlugin2 = define({
|
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
47
|
const remote = yield* Effect.tryPromise({
|
|
48
|
-
try: () =>
|
|
48
|
+
try: () => load3(baseURL, apiKey),
|
|
49
49
|
catch: (cause) => cause
|
|
50
50
|
}).pipe(Effect.catch((cause) => Effect.logWarning("failed to sync Modal models", { cause }).pipe(Effect.as(undefined))));
|
|
51
51
|
if (key2(connection) !== key2(yield* ctx.integration.connection.active("modal")))
|
|
@@ -67,7 +67,7 @@ var ModalPlugin2 = define({
|
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
69
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
70
|
-
yield* bus.subscribe(
|
|
70
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("modal")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
71
71
|
yield* refresh().pipe(Effect.forkScoped);
|
|
72
72
|
})
|
|
73
73
|
});
|