@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,56 +1,56 @@
|
|
|
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
|
+
ID16,
|
|
9
9
|
OAuth3,
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Event19
|
|
11
|
+
} from "./usage-limits-d3n1hdek.js";
|
|
12
12
|
import {
|
|
13
13
|
key2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./usage-limits-61ennm6n.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID14,
|
|
17
17
|
MethodID2,
|
|
18
18
|
AuthorizationError2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./usage-limits-2e93rzzy.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
ID13
|
|
22
|
+
} from "./usage-limits-6a8c7h5g.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
24
|
+
Service73
|
|
25
|
+
} from "./usage-limits-mt2kpseg.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
27
|
+
Remote2,
|
|
28
28
|
Document2,
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
29
|
+
make12
|
|
30
|
+
} from "./usage-limits-e07q2w5p.js";
|
|
31
31
|
import {
|
|
32
32
|
integrate2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./usage-limits-5ztzzwt3.js";
|
|
34
34
|
import {
|
|
35
35
|
defaultServer2,
|
|
36
36
|
server2,
|
|
37
37
|
headers2
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./usage-limits-kt3bjfbg.js";
|
|
39
39
|
import {
|
|
40
|
-
|
|
41
|
-
} from "./
|
|
40
|
+
Service16
|
|
41
|
+
} from "./usage-limits-sjt6c43d.js";
|
|
42
42
|
import {
|
|
43
43
|
ID4,
|
|
44
44
|
Input15,
|
|
45
45
|
Response3
|
|
46
|
-
} from "./
|
|
46
|
+
} from "./usage-limits-g5wzwpvc.js";
|
|
47
47
|
import {
|
|
48
48
|
Response2,
|
|
49
49
|
make7,
|
|
50
50
|
statements2,
|
|
51
51
|
providerIDs2,
|
|
52
|
-
|
|
53
|
-
} from "./
|
|
52
|
+
register3
|
|
53
|
+
} from "./usage-limits-5xdg5x94.js";
|
|
54
54
|
|
|
55
55
|
// src/plugin/provider/opencode.ts
|
|
56
56
|
import {
|
|
@@ -113,7 +113,7 @@ class SignedOutError extends Schema.TaggedError()("OpencodeConsole.SignedOut", {
|
|
|
113
113
|
}
|
|
114
114
|
function oauth(http) {
|
|
115
115
|
return {
|
|
116
|
-
integrationID:
|
|
116
|
+
integrationID: ID14.make("opencode"),
|
|
117
117
|
method: {
|
|
118
118
|
id: methodID,
|
|
119
119
|
type: "oauth",
|
|
@@ -178,11 +178,11 @@ var OpencodePlugin2 = define({
|
|
|
178
178
|
id: "opencode.provider.opencode",
|
|
179
179
|
effect: Effect.fn(function* (ctx) {
|
|
180
180
|
const disableFree = ["1", "true"].includes(process.env.OPENCODE_DISABLE_FREE_MODELS?.toLowerCase() ?? "");
|
|
181
|
-
const bus = yield*
|
|
181
|
+
const bus = yield* Service86;
|
|
182
182
|
const client = yield* HttpClient.HttpClient;
|
|
183
183
|
const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
|
|
184
|
-
const managed = yield*
|
|
185
|
-
const config = yield*
|
|
184
|
+
const managed = yield* Service16;
|
|
185
|
+
const config = yield* Service73;
|
|
186
186
|
const scope = yield* Scope.Scope;
|
|
187
187
|
const loading = Semaphore.makeUnsafe(1);
|
|
188
188
|
let snapshot = { remote: undefined, connection: undefined, organization: undefined };
|
|
@@ -218,16 +218,16 @@ var OpencodePlugin2 = define({
|
|
|
218
218
|
});
|
|
219
219
|
let integrated;
|
|
220
220
|
const integrate = Effect.fnUntraced(function* (document) {
|
|
221
|
-
yield* config.integration?.(
|
|
222
|
-
integrated = (yield* config.entries()).find((entry) => entry instanceof Document2 && entry.integrationID ===
|
|
221
|
+
yield* config.integration?.(ID14.make("opencode"), document) ?? Effect.void;
|
|
222
|
+
integrated = (yield* config.entries()).find((entry) => entry instanceof Document2 && entry.integrationID === ID14.make("opencode"));
|
|
223
223
|
});
|
|
224
224
|
const publish = Effect.fnUntraced(function* (next) {
|
|
225
225
|
switch (next.remote?.type) {
|
|
226
226
|
case "config":
|
|
227
227
|
yield* managed.set({ statements: [], organization: next.organization });
|
|
228
|
-
return yield* integrate(next.connection &&
|
|
229
|
-
integrationID:
|
|
230
|
-
connection: next.connection.type === "credential" ? { ...next.connection, id:
|
|
228
|
+
return yield* integrate(next.connection && make12({
|
|
229
|
+
integrationID: ID14.make("opencode"),
|
|
230
|
+
connection: next.connection.type === "credential" ? { ...next.connection, id: ID16.make(next.connection.id) } : next.connection,
|
|
231
231
|
organization: next.organization,
|
|
232
232
|
info: next.remote.info
|
|
233
233
|
}));
|
|
@@ -277,13 +277,13 @@ var OpencodePlugin2 = define({
|
|
|
277
277
|
});
|
|
278
278
|
snapshot = yield* load();
|
|
279
279
|
yield* publish(snapshot);
|
|
280
|
-
yield*
|
|
280
|
+
yield* register3(ctx, () => snapshot, search);
|
|
281
281
|
yield* ctx.provider.transform((providers) => {
|
|
282
282
|
if (integrated)
|
|
283
283
|
integrate2(providers, integrated);
|
|
284
284
|
});
|
|
285
285
|
yield* ctx.provider.transform((providers) => {
|
|
286
|
-
const item = providers.get(
|
|
286
|
+
const item = providers.get(ID13.opencode);
|
|
287
287
|
if (!item)
|
|
288
288
|
return;
|
|
289
289
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
|
|
@@ -295,7 +295,7 @@ var OpencodePlugin2 = define({
|
|
|
295
295
|
});
|
|
296
296
|
});
|
|
297
297
|
yield* ctx.model.transform((models) => {
|
|
298
|
-
const item = models.provider.get(
|
|
298
|
+
const item = models.provider.get(ID13.opencode);
|
|
299
299
|
if (!item)
|
|
300
300
|
return;
|
|
301
301
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
|
|
@@ -348,7 +348,7 @@ var OpencodePlugin2 = define({
|
|
|
348
348
|
const guard = Effect.fn("OpencodePlugin.guard")(function* (next) {
|
|
349
349
|
yield* Effect.forEach(explainers, (registration) => registration.dispose, { discard: true });
|
|
350
350
|
explainers = yield* Effect.forEach(next.connection ? new Set([
|
|
351
|
-
|
|
351
|
+
ID13.opencode,
|
|
352
352
|
...next.remote?.type === "config" ? Object.keys(next.remote.info.providers ?? {}) : providerIDs2(next.remote)
|
|
353
353
|
]) : [], (providerID) => ctx.session.hook("http.response", explain, { providerID }).pipe(Scope.provide(scope)));
|
|
354
354
|
});
|
|
@@ -361,7 +361,7 @@ var OpencodePlugin2 = define({
|
|
|
361
361
|
onlyIfMissing: true
|
|
362
362
|
});
|
|
363
363
|
});
|
|
364
|
-
yield* bus.subscribe(
|
|
364
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("opencode")), Stream.runForEach(() => refresh().pipe(Effect.andThen(poll()))), Effect.forkScoped({ startImmediately: true }));
|
|
365
365
|
yield* poll();
|
|
366
366
|
})
|
|
367
367
|
});
|
|
@@ -384,7 +384,7 @@ function fetchConfig(http, value) {
|
|
|
384
384
|
}
|
|
385
385
|
const body = yield* HttpClientResponse.filterStatusOk(response).pipe(Effect.flatMap((ok) => ok.json));
|
|
386
386
|
if (Predicate.hasProperty(body, "$schema"))
|
|
387
|
-
return { type: "config", info: yield* Schema.decodeUnknownEffect(
|
|
387
|
+
return { type: "config", info: yield* Schema.decodeUnknownEffect(Remote2)(body) };
|
|
388
388
|
return { type: "legacy", response: yield* Schema.decodeUnknownEffect(Response2)(body) };
|
|
389
389
|
})), Effect.scoped);
|
|
390
390
|
}
|
|
@@ -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
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service79
|
|
16
|
+
} from "./usage-limits-2e93rzzy.js";
|
|
17
17
|
import {
|
|
18
18
|
success2,
|
|
19
19
|
error2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./usage-limits-yb20nhc3.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
ID13
|
|
23
|
+
} from "./usage-limits-6a8c7h5g.js";
|
|
24
24
|
import {
|
|
25
25
|
configuredSettings2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./usage-limits-jsghge5n.js";
|
|
27
27
|
|
|
28
28
|
// src/plugin/provider/snowflake-cortex.ts
|
|
29
29
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
30
30
|
import { Form } from "@opencode/schema/form";
|
|
31
31
|
import { Clock, Deferred, Effect, Option, Schema, Stream } from "effect";
|
|
32
32
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
33
|
-
var providerID =
|
|
34
|
-
var integrationID =
|
|
33
|
+
var providerID = ID13.make("snowflake-cortex");
|
|
34
|
+
var integrationID = ID14.make(providerID);
|
|
35
35
|
var methodID = MethodID2.make("browser");
|
|
36
36
|
var clientID = "LOCAL_APPLICATION";
|
|
37
37
|
var accountForm = Form.Fields.make([
|
|
@@ -53,9 +53,9 @@ var SnowflakeCortexPlugin2 = define({
|
|
|
53
53
|
id: "opencode.provider.snowflake.cortex",
|
|
54
54
|
effect: Effect.fn(function* (ctx) {
|
|
55
55
|
const http = yield* HttpClient.HttpClient;
|
|
56
|
-
const credentials = yield*
|
|
57
|
-
const integrations = yield*
|
|
58
|
-
const bus = yield*
|
|
56
|
+
const credentials = yield* Service81;
|
|
57
|
+
const integrations = yield* Service79;
|
|
58
|
+
const bus = yield* Service86;
|
|
59
59
|
const configured = yield* configuredSettings2(providerID);
|
|
60
60
|
const account = { value: "" };
|
|
61
61
|
const saved = Effect.gen(function* () {
|
|
@@ -186,7 +186,7 @@ var SnowflakeCortexPlugin2 = define({
|
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
});
|
|
189
|
-
yield* bus.subscribe(
|
|
189
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(() => load.pipe(Effect.andThen(ctx.provider.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
190
190
|
yield* ctx.session.hook("http.request", (event) => Effect.sync(() => {
|
|
191
191
|
const token = envToken();
|
|
192
192
|
if (token)
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseOption2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-e834z07m.js";
|
|
4
4
|
import {
|
|
5
5
|
AbsolutePath2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./usage-limits-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
8
|
ID5,
|
|
9
9
|
Name2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./usage-limits-5bvwpje3.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/skill-file.ts
|
|
16
16
|
var exports_skill_file = {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service43
|
|
3
|
+
} from "./usage-limits-afygg0ym.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service64
|
|
6
|
+
} from "./usage-limits-t3eatzzt.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitActivation2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./usage-limits-k62y2wy8.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/session/command.ts
|
|
15
15
|
var exports_command3 = {};
|
|
@@ -19,10 +19,10 @@ __export(exports_command3, {
|
|
|
19
19
|
});
|
|
20
20
|
import { Effect } from "effect";
|
|
21
21
|
var execute2 = Effect.fn("SessionCommand.execute")(function* (input) {
|
|
22
|
-
const instances = yield*
|
|
22
|
+
const instances = yield* Service64;
|
|
23
23
|
yield* Effect.gen(function* () {
|
|
24
24
|
yield* awaitActivation2;
|
|
25
|
-
const commands = yield*
|
|
25
|
+
const commands = yield* Service43;
|
|
26
26
|
yield* commands.execute({
|
|
27
27
|
name: input.command,
|
|
28
28
|
invocation: {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-11hfp36g.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service54,
|
|
6
|
+
node58
|
|
7
|
+
} from "./usage-limits-00y87jmz.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/file-mutation.ts
|
|
13
13
|
var exports_file_mutation = {};
|
|
14
14
|
__export(exports_file_mutation, {
|
|
15
15
|
FileMutation: () => exports_file_mutation,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service14,
|
|
17
|
+
node: () => node16,
|
|
18
18
|
readText: () => readText2,
|
|
19
19
|
syncTextBom: () => syncTextBom2
|
|
20
20
|
});
|
|
@@ -22,7 +22,7 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
22
22
|
import { Context, Effect, Layer } from "effect";
|
|
23
23
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
24
24
|
import { Bom } from "@opencode/util/bom";
|
|
25
|
-
class
|
|
25
|
+
class Service14 extends Context.Service()("@opencode/FileMutation") {
|
|
26
26
|
}
|
|
27
27
|
var readText2 = Effect.fn("FileMutation.readText")(function* (files, target) {
|
|
28
28
|
return Bom.decodeBytes((yield* files.read(target)).bytes);
|
|
@@ -34,8 +34,8 @@ var syncTextBom2 = Effect.fn("FileMutation.syncTextBom")(function* (files, targe
|
|
|
34
34
|
return synced.text;
|
|
35
35
|
});
|
|
36
36
|
var transactionLocks = makeUnsafe2();
|
|
37
|
-
var layer = Layer.effect(
|
|
38
|
-
const environment = yield*
|
|
37
|
+
var layer = Layer.effect(Service14, Effect.gen(function* () {
|
|
38
|
+
const environment = yield* Service54;
|
|
39
39
|
const locks = makeUnsafe2();
|
|
40
40
|
const withLock = (targets) => (effect) => [...new Set(targets.map(FSUtil.resolve))].sort().reduceRight((result, target) => transactionLocks.withLock(target)(result), effect);
|
|
41
41
|
const withTargetLock = (target) => (effect) => locks.withLock(target.absolute)(Effect.uninterruptible(effect));
|
|
@@ -56,8 +56,8 @@ var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
56
56
|
yield* environment.files.write(input.target.absolute, new TextEncoder().encode(Bom.join(next.text, Boolean(current && Bom.has(current)) || next.bom)));
|
|
57
57
|
return writeResult(input.target, current !== undefined);
|
|
58
58
|
})));
|
|
59
|
-
return
|
|
59
|
+
return Service14.of({ withLock, write, writeTextPreservingBom });
|
|
60
60
|
}));
|
|
61
|
-
var
|
|
61
|
+
var node16 = makeLocationNode({ service: Service14, layer, deps: [node58] });
|
|
62
62
|
|
|
63
|
-
export {
|
|
63
|
+
export { Service14, readText2, syncTextBom2, node16, exports_file_mutation };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
codeInterpreterArgsSchema2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-eh3zwz77.js";
|
|
4
4
|
import {
|
|
5
5
|
fileSearchArgsSchema2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./usage-limits-e73j6tqm.js";
|
|
7
7
|
import {
|
|
8
8
|
webSearchArgsSchema2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./usage-limits-3wcehsnq.js";
|
|
10
10
|
import {
|
|
11
11
|
webSearchPreviewArgsSchema2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./usage-limits-dap0rakb.js";
|
|
13
13
|
import {
|
|
14
14
|
imageGenerationArgsSchema2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./usage-limits-4y7fprxs.js";
|
|
16
16
|
|
|
17
17
|
// src/github-copilot/responses/openai-responses-prepare-tools.ts
|
|
18
18
|
import {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/v1/config/plugin.ts
|
|
6
6
|
var exports_plugin3 = {};
|
|
7
7
|
__export(exports_plugin3, {
|
|
8
8
|
ConfigPluginV1: () => exports_plugin3,
|
|
9
|
-
Options: () =>
|
|
9
|
+
Options: () => Options8,
|
|
10
10
|
Spec: () => Spec2
|
|
11
11
|
});
|
|
12
12
|
import { Schema } from "effect";
|
|
13
|
-
var
|
|
14
|
-
var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String,
|
|
13
|
+
var Options8 = Schema.Record(Schema.String, Schema.Unknown);
|
|
14
|
+
var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String, Options8]))]);
|
|
15
15
|
|
|
16
|
-
export {
|
|
16
|
+
export { Options8, Spec2, exports_plugin3 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./usage-limits-zb5gs1ba.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/session/error.ts
|
|
12
12
|
var exports_error = {};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service86,
|
|
3
|
+
node90
|
|
4
|
+
} from "./usage-limits-jjhjh3kk.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
Key4,
|
|
7
7
|
External2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service81,
|
|
9
|
+
node85
|
|
10
|
+
} from "./usage-limits-d3n1hdek.js";
|
|
11
11
|
import {
|
|
12
12
|
changes2,
|
|
13
13
|
create3
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./usage-limits-204s3925.js";
|
|
15
15
|
import {
|
|
16
16
|
key2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./usage-limits-61ennm6n.js";
|
|
18
18
|
import {
|
|
19
19
|
validateAnswer2,
|
|
20
20
|
validateFields2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./usage-limits-g6vqe96w.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/integration.ts
|
|
27
|
-
var
|
|
28
|
-
__export(
|
|
27
|
+
var exports_integration2 = {};
|
|
28
|
+
__export(exports_integration2, {
|
|
29
29
|
Attempt: () => Attempt2,
|
|
30
30
|
AttemptID: () => AttemptID2,
|
|
31
31
|
AttemptNotFoundError: () => AttemptNotFoundError2,
|
|
@@ -36,18 +36,18 @@ __export(exports_integration, {
|
|
|
36
36
|
CommandAttemptStatus: () => CommandAttemptStatus2,
|
|
37
37
|
CommandMethod: () => CommandMethod2,
|
|
38
38
|
EnvMethod: () => EnvMethod2,
|
|
39
|
-
Event: () =>
|
|
39
|
+
Event: () => Event17,
|
|
40
40
|
ExternalMethod: () => ExternalMethod2,
|
|
41
|
-
ID: () =>
|
|
42
|
-
Info: () =>
|
|
43
|
-
Integration: () =>
|
|
41
|
+
ID: () => ID14,
|
|
42
|
+
Info: () => Info24,
|
|
43
|
+
Integration: () => exports_integration2,
|
|
44
44
|
KeyMethod: () => KeyMethod2,
|
|
45
45
|
Method: () => Method2,
|
|
46
46
|
MethodID: () => MethodID2,
|
|
47
47
|
OAuthMethod: () => OAuthMethod2,
|
|
48
48
|
Ref: () => Ref4,
|
|
49
|
-
Service: () =>
|
|
50
|
-
node: () =>
|
|
49
|
+
Service: () => Service79,
|
|
50
|
+
node: () => node83
|
|
51
51
|
});
|
|
52
52
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
53
53
|
import {
|
|
@@ -69,8 +69,8 @@ import {
|
|
|
69
69
|
import { Integration } from "@opencode/schema/integration";
|
|
70
70
|
import { AppProcess } from "@opencode/util/process";
|
|
71
71
|
import { ChildProcess } from "effect/process";
|
|
72
|
-
import { Event as
|
|
73
|
-
var
|
|
72
|
+
import { Event as Event17 } from "@opencode/schema/integration";
|
|
73
|
+
var ID14 = Integration.ID;
|
|
74
74
|
var MethodID2 = Integration.MethodID;
|
|
75
75
|
var AttemptID2 = Integration.AttemptID;
|
|
76
76
|
var OAuthMethod2 = Integration.OAuthMethod;
|
|
@@ -79,7 +79,7 @@ var KeyMethod2 = Integration.KeyMethod;
|
|
|
79
79
|
var ExternalMethod2 = Integration.ExternalMethod;
|
|
80
80
|
var EnvMethod2 = Integration.EnvMethod;
|
|
81
81
|
var Method2 = Integration.Method;
|
|
82
|
-
var
|
|
82
|
+
var Info24 = Integration.Info;
|
|
83
83
|
var Attempt2 = Integration.Attempt;
|
|
84
84
|
var AttemptStatus2 = Integration.AttemptStatus;
|
|
85
85
|
var CommandAttempt2 = Integration.CommandAttempt;
|
|
@@ -102,20 +102,20 @@ class AuthorizationError2 extends Schema.TaggedError()("Integration.Authorizatio
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
class AttemptNotFoundError2 extends Schema.TaggedError()("Integration.AttemptNotFound", {
|
|
105
|
-
integrationID:
|
|
105
|
+
integrationID: ID14,
|
|
106
106
|
attemptID: AttemptID2
|
|
107
107
|
}) {
|
|
108
108
|
}
|
|
109
109
|
var Ref4 = Integration.Ref;
|
|
110
110
|
|
|
111
|
-
class
|
|
111
|
+
class Service79 extends Context.Service()("@opencode/Integration") {
|
|
112
112
|
}
|
|
113
113
|
var attemptLifetime = Duration.toMillis(Duration.minutes(10));
|
|
114
114
|
var terminalRetention = Duration.toMillis(Duration.minutes(1));
|
|
115
115
|
var scrubInterval = Duration.seconds(30);
|
|
116
|
-
var layer = Layer.effect(
|
|
117
|
-
const credentials = yield*
|
|
118
|
-
const bus = yield*
|
|
116
|
+
var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
117
|
+
const credentials = yield* Service81;
|
|
118
|
+
const bus = yield* Service86;
|
|
119
119
|
const processes = yield* AppProcess.Service;
|
|
120
120
|
const scope = yield* Scope.Scope;
|
|
121
121
|
const attempts = SynchronizedRef.makeUnsafe(new Map);
|
|
@@ -215,7 +215,7 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
215
215
|
const env = (entry?.methods ?? []).filter((method) => method.type === "env").flatMap((method) => method.names.filter((name) => process.env[name])).map((name) => ({ type: "env", name }));
|
|
216
216
|
return [...credentials, ...env];
|
|
217
217
|
};
|
|
218
|
-
const project = (entry, connections) =>
|
|
218
|
+
const project = (entry, connections) => Info24.make({
|
|
219
219
|
id: entry.ref.id,
|
|
220
220
|
name: entry.ref.name,
|
|
221
221
|
...entry.ref.metadata === undefined ? {} : { metadata: entry.ref.metadata },
|
|
@@ -302,7 +302,7 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
302
302
|
const persistence = yield* createCredential({
|
|
303
303
|
integrationID: attempt.integrationID,
|
|
304
304
|
label: attempt.label,
|
|
305
|
-
value:
|
|
305
|
+
value: Key4.make({ type: "key", key: exit.value })
|
|
306
306
|
}).pipe(Effect.asVoid, Effect.exit);
|
|
307
307
|
const settledAt = yield* Clock.currentTimeMillis;
|
|
308
308
|
const terminal = Exit.isSuccess(persistence) ? {
|
|
@@ -448,7 +448,7 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
448
448
|
}).pipe(Scope.provide(attemptScope), Effect.exit, Effect.flatMap((exit) => settleCommand(attemptID, exit)), Effect.forkIn(attemptScope, { startImmediately: true }));
|
|
449
449
|
return CommandAttempt2.make({ attemptID, time });
|
|
450
450
|
});
|
|
451
|
-
return
|
|
451
|
+
return Service79.of({
|
|
452
452
|
transform: state.transform,
|
|
453
453
|
reload: state.reload,
|
|
454
454
|
revision: state.revision,
|
|
@@ -470,7 +470,7 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
470
470
|
resolve: Effect.fn("Integration.connection.resolve")(function* (connection) {
|
|
471
471
|
if (connection.type === "env") {
|
|
472
472
|
const key = process.env[connection.name];
|
|
473
|
-
return key ?
|
|
473
|
+
return key ? Key4.make({ type: "key", key }) : undefined;
|
|
474
474
|
}
|
|
475
475
|
const credential = yield* credentials.get(connection.id);
|
|
476
476
|
if (!credential)
|
|
@@ -503,7 +503,7 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
503
503
|
yield* createCredential({
|
|
504
504
|
integrationID: input.integrationID,
|
|
505
505
|
label: input.label,
|
|
506
|
-
value:
|
|
506
|
+
value: Key4.make({
|
|
507
507
|
type: "key",
|
|
508
508
|
key: input.key,
|
|
509
509
|
...Object.keys(answer).length > 0 ? { metadata: answer } : {}
|
|
@@ -630,10 +630,10 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
630
630
|
}
|
|
631
631
|
});
|
|
632
632
|
}));
|
|
633
|
-
var
|
|
634
|
-
service:
|
|
633
|
+
var node83 = makeLocationNode({
|
|
634
|
+
service: Service79,
|
|
635
635
|
layer,
|
|
636
|
-
deps: [
|
|
636
|
+
deps: [node85, node90, AppProcess.node]
|
|
637
637
|
});
|
|
638
638
|
|
|
639
|
-
export {
|
|
639
|
+
export { ID14, MethodID2, AttemptID2, OAuthMethod2, CommandMethod2, KeyMethod2, ExternalMethod2, EnvMethod2, Method2, Info24, Attempt2, AttemptStatus2, CommandAttempt2, CommandAttemptStatus2, CodeRequiredError2, AuthorizationError2, AttemptNotFoundError2, Ref4, Service79, node83, exports_integration2, Event17 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/v1/config/permission.ts
|
|
6
6
|
var exports_permission2 = {};
|
|
@@ -8,7 +8,7 @@ __export(exports_permission2, {
|
|
|
8
8
|
Action: () => Action2,
|
|
9
9
|
ConfigPermissionV1: () => exports_permission2,
|
|
10
10
|
Entries: () => Entries2,
|
|
11
|
-
Info: () =>
|
|
11
|
+
Info: () => Info21,
|
|
12
12
|
Object: () => Object2,
|
|
13
13
|
Rule: () => Rule3
|
|
14
14
|
});
|
|
@@ -21,11 +21,11 @@ var Entries2 = (value) => Schema.ObjectKeyword.check(Schema.makeFilter((input) =
|
|
|
21
21
|
var Object2 = Entries2(Action2).annotate({ identifier: "PermissionObjectConfig" });
|
|
22
22
|
var Rule3 = Schema.Union([Action2, Object2]).annotate({ identifier: "PermissionRuleConfig" });
|
|
23
23
|
var actionOnly = new Set(["question", "websearch", "doom_loop"]);
|
|
24
|
-
var
|
|
24
|
+
var Info21 = Schema.Union([Action2, Schema.ObjectKeyword]).pipe(Schema.decodeTo(Entries2(Rule3), {
|
|
25
25
|
decode: SchemaGetter.transform((input) => typeof input === "string" ? { "*": input } : input),
|
|
26
26
|
encode: SchemaGetter.passthrough({ strict: false })
|
|
27
27
|
})).check(Schema.makeFilter((rules) => rules.every(([key, rule]) => !actionOnly.has(key) || typeof rule === "string"), {
|
|
28
28
|
expected: "question, websearch, and doom_loop to be ask, allow, or deny"
|
|
29
29
|
})).annotate({ identifier: "PermissionConfig" });
|
|
30
30
|
|
|
31
|
-
export { Action2, Entries2, Object2, Rule3,
|
|
31
|
+
export { Action2, Entries2, Object2, Rule3, Info21, exports_permission2 };
|