@opencode/core 0.0.0-dev-398 → 0.0.0-dev-400
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 +90 -90
- package/dist/aisdk-native.js +102 -102
- package/dist/aisdk.js +108 -108
- package/dist/app.js +9 -9
- package/dist/artifact.js +236 -236
- package/dist/bus.js +80 -80
- package/dist/chunks/{repository-07nbfc86.js → usage-limits-00dh1h3p.js} +3 -3
- package/dist/chunks/{repository-034tev2y.js → usage-limits-034tev2y.js} +2 -2
- package/dist/chunks/{repository-q58ddcyg.js → usage-limits-03qx06a8.js} +18 -18
- package/dist/chunks/{repository-vw0zhxcn.js → usage-limits-07dt8f4k.js} +13 -13
- package/dist/chunks/{repository-7d4wtrr4.js → usage-limits-0h02ntte.js} +17 -17
- package/dist/chunks/{repository-gmqag8rw.js → usage-limits-0yqr2mqa.js} +6 -6
- package/dist/chunks/{repository-b73pa457.js → usage-limits-0yzyh1k4.js} +11 -11
- package/dist/chunks/{repository-xrhq19gq.js → usage-limits-0z443j1w.js} +4 -4
- package/dist/chunks/{repository-6gyvhx5a.js → usage-limits-124bhr1x.js} +10 -10
- package/dist/chunks/{repository-nf6qbft0.js → usage-limits-12zfj4q4.js} +32 -32
- package/dist/chunks/{repository-n7bnkb3p.js → usage-limits-18g90bpv.js} +9 -9
- package/dist/chunks/{repository-3cj3n7a2.js → usage-limits-1a0n8xfb.js} +15 -15
- package/dist/chunks/{repository-dwrmbyqf.js → usage-limits-1ad67qgs.js} +4 -4
- package/dist/chunks/{repository-1aqsckx4.js → usage-limits-1aqsckx4.js} +1 -1
- package/dist/chunks/{repository-1ep2p91f.js → usage-limits-1ep2p91f.js} +2 -2
- package/dist/chunks/{repository-m6erdz7g.js → usage-limits-1pnyc33r.js} +22 -22
- package/dist/chunks/{repository-2t113hd6.js → usage-limits-1r7ngzn2.js} +8 -8
- package/dist/chunks/{repository-nvh9azrc.js → usage-limits-1te5e7hz.js} +11 -11
- package/dist/chunks/{repository-vx6zbweh.js → usage-limits-1tg39pfc.js} +45 -45
- package/dist/chunks/{repository-1x2knyw4.js → usage-limits-1x2knyw4.js} +1 -1
- package/dist/chunks/{repository-229tvxdn.js → usage-limits-229tvxdn.js} +1 -1
- package/dist/chunks/{repository-8b3vzgkx.js → usage-limits-25h84942.js} +4 -4
- package/dist/chunks/{repository-ak9xvm0n.js → usage-limits-2dvhsjqp.js} +11 -11
- package/dist/chunks/{repository-2p60zmnr.js → usage-limits-2p60zmnr.js} +2 -2
- package/dist/chunks/{repository-w7qzbdzf.js → usage-limits-2yey7seh.js} +11 -11
- package/dist/chunks/{repository-m6cfdtf3.js → usage-limits-365eavge.js} +4 -4
- package/dist/chunks/{repository-7qt7d24k.js → usage-limits-37hck4xc.js} +1 -1
- package/dist/chunks/{repository-evxxbf4w.js → usage-limits-3cd3ffgw.js} +27 -27
- package/dist/chunks/{repository-tay525vg.js → usage-limits-3ff17a98.js} +5 -5
- package/dist/chunks/{repository-3hepkmqq.js → usage-limits-3hepkmqq.js} +1 -1
- package/dist/chunks/{repository-q52p8ber.js → usage-limits-3m771afa.js} +3 -3
- package/dist/chunks/{repository-3nnrz6f6.js → usage-limits-3nnrz6f6.js} +1 -1
- package/dist/chunks/{repository-zdat2xwq.js → usage-limits-3p57dcxh.js} +4 -4
- package/dist/chunks/{repository-67xca3db.js → usage-limits-3s19bb53.js} +7 -7
- package/dist/chunks/{repository-yv39fqry.js → usage-limits-3wq5ff7w.js} +9 -9
- package/dist/chunks/{repository-dqddngz4.js → usage-limits-3xka54rk.js} +12 -12
- package/dist/chunks/{repository-fbaygqc2.js → usage-limits-3zg6x5sx.js} +11 -11
- package/dist/chunks/{repository-40y6dtc2.js → usage-limits-40y6dtc2.js} +1 -1
- package/dist/chunks/{repository-44pmzq9c.js → usage-limits-44pmzq9c.js} +2 -2
- package/dist/chunks/{repository-kd06wgjj.js → usage-limits-4b1hfbmn.js} +10 -10
- package/dist/chunks/{repository-4dx1dgte.js → usage-limits-4dx1dgte.js} +1 -1
- package/dist/chunks/{repository-4wg58wk0.js → usage-limits-4e9mk02g.js} +13 -13
- package/dist/chunks/usage-limits-4pas2eyt.js +549 -0
- package/dist/chunks/{repository-4pyp9zr9.js → usage-limits-4pyp9zr9.js} +1 -1
- package/dist/chunks/{repository-42yrh4ar.js → usage-limits-4qjss46w.js} +27 -27
- package/dist/chunks/{repository-4v008n1t.js → usage-limits-4v008n1t.js} +1 -1
- package/dist/chunks/{repository-mtbbaj7x.js → usage-limits-4xcxrfeg.js} +6 -6
- package/dist/chunks/{repository-xa91xadg.js → usage-limits-4xkmjgmt.js} +11 -11
- package/dist/chunks/{repository-31avdb49.js → usage-limits-4ygb74tw.js} +8 -8
- package/dist/chunks/{repository-9e28vbjj.js → usage-limits-55hwmkk2.js} +43 -43
- package/dist/chunks/{repository-rh83epcf.js → usage-limits-563cpf99.js} +43 -43
- package/dist/chunks/{repository-sa4ztjn1.js → usage-limits-5bk82nga.js} +5 -5
- package/dist/chunks/{repository-73mp86fw.js → usage-limits-5c8b20zf.js} +10 -10
- package/dist/chunks/{repository-5m9w47nd.js → usage-limits-5m9w47nd.js} +1 -1
- package/dist/chunks/{repository-m2c0tfws.js → usage-limits-5shk7qbb.js} +28 -28
- package/dist/chunks/{repository-12w3gwbs.js → usage-limits-5vab2qm0.js} +6 -6
- package/dist/chunks/{repository-dmakv3jz.js → usage-limits-5vtcgmtv.js} +4 -4
- package/dist/chunks/{repository-a0d132hd.js → usage-limits-5wmr8030.js} +12 -12
- package/dist/chunks/{repository-ww2p0375.js → usage-limits-5zpqhmp2.js} +3 -3
- package/dist/chunks/{repository-qwrwand2.js → usage-limits-63rvx2n8.js} +35 -35
- package/dist/chunks/{repository-ac1j90m4.js → usage-limits-65km906s.js} +19 -19
- package/dist/chunks/{repository-a1qwck5h.js → usage-limits-67mxzy6e.js} +8 -8
- package/dist/chunks/{repository-fcwk9vhw.js → usage-limits-6c389fb6.js} +17 -17
- package/dist/chunks/{repository-6esdw8yj.js → usage-limits-6esdw8yj.js} +1 -1
- package/dist/chunks/{repository-7mefzhmg.js → usage-limits-6t66hz46.js} +9 -9
- package/dist/chunks/{repository-bv5k4tct.js → usage-limits-6wzd2fzk.js} +16 -16
- package/dist/chunks/{repository-3gfpnfqk.js → usage-limits-722v3f7j.js} +4 -4
- package/dist/chunks/{repository-v2gedntn.js → usage-limits-75s55zsd.js} +9 -9
- package/dist/chunks/{repository-76cb1hcw.js → usage-limits-76cb1hcw.js} +1 -1
- package/dist/chunks/{repository-80mg3ag8.js → usage-limits-775hqbnd.js} +3 -3
- package/dist/chunks/{repository-57q76zcw.js → usage-limits-78chz8f7.js} +5 -5
- package/dist/chunks/{repository-7bmhse3q.js → usage-limits-7bmhse3q.js} +1 -1
- package/dist/chunks/{repository-vaaw7kac.js → usage-limits-7f8qbf9c.js} +44 -44
- package/dist/chunks/{repository-7kr66rt3.js → usage-limits-7kr66rt3.js} +1 -1
- package/dist/chunks/{repository-7nqkf5r1.js → usage-limits-7nqkf5r1.js} +2 -2
- package/dist/chunks/{repository-4ez1xyss.js → usage-limits-7rvhzgwz.js} +18 -18
- package/dist/chunks/{repository-vpdytt8w.js → usage-limits-7t3wwtad.js} +5 -5
- package/dist/chunks/{repository-7w2ypzdf.js → usage-limits-7w2ypzdf.js} +1 -1
- package/dist/chunks/{repository-d1bq990r.js → usage-limits-7w7tghj7.js} +6 -6
- package/dist/chunks/{repository-pgj56wr2.js → usage-limits-82p3xxjd.js} +2 -2
- package/dist/chunks/{repository-eqktjn3r.js → usage-limits-86mma9zn.js} +7 -7
- package/dist/chunks/{repository-zfv1ake6.js → usage-limits-86mmm7fr.js} +21 -21
- package/dist/chunks/{repository-89287pr7.js → usage-limits-89287pr7.js} +1 -1
- package/dist/chunks/{repository-5rsxnmrp.js → usage-limits-8as08gmw.js} +10 -10
- package/dist/chunks/{repository-8cg7mtm3.js → usage-limits-8cg7mtm3.js} +1 -1
- package/dist/chunks/{repository-5sph470p.js → usage-limits-8h3wsat0.js} +11 -11
- package/dist/chunks/{repository-qk5sk9d1.js → usage-limits-8hfctyyf.js} +5 -5
- package/dist/chunks/{repository-hppgwy0r.js → usage-limits-8ng3akwc.js} +177 -177
- package/dist/chunks/{repository-8t99kr38.js → usage-limits-8t99kr38.js} +1 -1
- package/dist/chunks/{repository-8wtp7s3z.js → usage-limits-8wtp7s3z.js} +1 -1
- package/dist/chunks/{repository-90zstvax.js → usage-limits-90zstvax.js} +1 -1
- package/dist/chunks/{repository-v8bad55c.js → usage-limits-915qh7jh.js} +17 -17
- package/dist/chunks/{repository-tpx7g6md.js → usage-limits-93c35svs.js} +27 -27
- package/dist/chunks/{repository-963hk181.js → usage-limits-963hk181.js} +2 -2
- package/dist/chunks/{repository-g1jn7dpj.js → usage-limits-9663jzc0.js} +6 -6
- package/dist/chunks/{repository-ce5fknq2.js → usage-limits-9b00c1fb.js} +5 -5
- package/dist/chunks/{repository-t2ce5xch.js → usage-limits-9pmypnne.js} +12 -12
- package/dist/chunks/{repository-cn9xv7mh.js → usage-limits-a1atzy4k.js} +10 -10
- package/dist/chunks/{repository-pbdkmj6p.js → usage-limits-a2t4gxm3.js} +15 -15
- package/dist/chunks/{repository-fbjqxkhq.js → usage-limits-a2zex5ge.js} +8 -8
- package/dist/chunks/{repository-pa3fs051.js → usage-limits-a5bwxnk6.js} +7 -7
- package/dist/chunks/{repository-egsrr66v.js → usage-limits-a62h5j2e.js} +8 -8
- package/dist/chunks/{repository-zswszhjj.js → usage-limits-a9182taq.js} +8 -8
- package/dist/chunks/{repository-9myj1rt3.js → usage-limits-acxvv905.js} +2 -2
- package/dist/chunks/{repository-bt7vp3wg.js → usage-limits-ahse4efr.js} +7 -7
- package/dist/chunks/{repository-xv0kd9hc.js → usage-limits-ay792qyq.js} +10 -10
- package/dist/chunks/{repository-ayjs7tqn.js → usage-limits-ayjs7tqn.js} +2 -2
- package/dist/chunks/{repository-mjvy5yzf.js → usage-limits-b2nnbp2m.js} +43 -43
- package/dist/chunks/{repository-03h4ymk6.js → usage-limits-b4az109y.js} +6 -6
- package/dist/chunks/{repository-d6hk4npf.js → usage-limits-b6jy2ery.js} +78 -78
- package/dist/chunks/{repository-b6vsg801.js → usage-limits-b6vsg801.js} +2 -2
- package/dist/chunks/{repository-an7p6n0m.js → usage-limits-bf91b8q0.js} +18 -18
- package/dist/chunks/{repository-ad10dq2h.js → usage-limits-bp2dx3xj.js} +23 -23
- package/dist/chunks/{repository-jhq8j8y9.js → usage-limits-bqfdzc7w.js} +11 -11
- package/dist/chunks/{repository-xd9cc171.js → usage-limits-bstexjd6.js} +5 -5
- package/dist/chunks/{repository-53rrm9sf.js → usage-limits-by5t8a5c.js} +8 -8
- package/dist/chunks/{repository-4bh8py8c.js → usage-limits-c570ayfm.js} +3 -3
- package/dist/chunks/{repository-5zsangy9.js → usage-limits-caz7vn7z.js} +23 -23
- package/dist/chunks/{repository-rk9mn8f7.js → usage-limits-cd82kqej.js} +21 -21
- package/dist/chunks/{repository-cwrgdav8.js → usage-limits-cwrgdav8.js} +2 -2
- package/dist/chunks/{repository-re3hbd1p.js → usage-limits-d08arqad.js} +8 -8
- package/dist/chunks/{repository-zftnqq30.js → usage-limits-d0mytrtk.js} +20 -20
- package/dist/chunks/{repository-bnzx9dwt.js → usage-limits-d2dt6bgk.js} +5 -5
- package/dist/chunks/{repository-d4v9tmah.js → usage-limits-d4v9tmah.js} +2 -2
- package/dist/chunks/{repository-a59kc8m4.js → usage-limits-d9p78pk4.js} +11 -11
- package/dist/chunks/{repository-1xpbhcsv.js → usage-limits-da4bejer.js} +33 -33
- package/dist/chunks/{repository-6gzr7cf8.js → usage-limits-dfc1rvk0.js} +26 -26
- package/dist/chunks/{repository-dpraxfyb.js → usage-limits-dj5xkk94.js} +8 -8
- package/dist/chunks/{repository-0160n4e9.js → usage-limits-dr1mh1e2.js} +6 -6
- package/dist/chunks/{repository-dt77769w.js → usage-limits-dt77769w.js} +1 -1
- package/dist/chunks/{repository-dv96216k.js → usage-limits-dv96216k.js} +1 -1
- package/dist/chunks/{repository-n1yy3t2x.js → usage-limits-dz5wpkka.js} +76 -76
- package/dist/chunks/{repository-e834z07m.js → usage-limits-e834z07m.js} +1 -1
- package/dist/chunks/{repository-8p90nvs2.js → usage-limits-edgxprr1.js} +17 -17
- package/dist/chunks/{repository-38yzze0k.js → usage-limits-eeae322r.js} +12 -12
- package/dist/chunks/{repository-j6k5nchf.js → usage-limits-ef19hej1.js} +3 -3
- package/dist/chunks/{repository-ygkrqd61.js → usage-limits-eg8kg6r9.js} +16 -16
- package/dist/chunks/{repository-6j0xgcj1.js → usage-limits-eneeszkf.js} +5 -5
- package/dist/chunks/{repository-eqw4pqj1.js → usage-limits-eqw4pqj1.js} +2 -2
- package/dist/chunks/{repository-est5w5t7.js → usage-limits-est5w5t7.js} +4 -4
- package/dist/chunks/{repository-4fs1ttzm.js → usage-limits-et2h47vz.js} +27 -27
- package/dist/chunks/{repository-ev660z6k.js → usage-limits-ev660z6k.js} +1 -1
- package/dist/chunks/{repository-hva0766z.js → usage-limits-f4c8bxqh.js} +50 -50
- package/dist/chunks/{repository-mq45sd29.js → usage-limits-f6zrgn4d.js} +28 -28
- package/dist/chunks/{repository-qb2784ew.js → usage-limits-f8155kt2.js} +15 -15
- package/dist/chunks/{repository-cqx1a29r.js → usage-limits-fb0bzz90.js} +15 -15
- package/dist/chunks/{repository-fffv3p7h.js → usage-limits-fffv3p7h.js} +1 -1
- package/dist/chunks/{repository-prq7xxp2.js → usage-limits-fg9p65nk.js} +6 -6
- package/dist/chunks/{repository-7g7rhba8.js → usage-limits-fpd09bte.js} +4 -4
- package/dist/chunks/{repository-86ng5cw0.js → usage-limits-fq3y8xpp.js} +6 -6
- package/dist/chunks/{repository-xj1s8g0g.js → usage-limits-fqsnyjsz.js} +20 -20
- package/dist/chunks/{repository-wh1wjwqr.js → usage-limits-fsb19ccp.js} +9 -9
- package/dist/chunks/{repository-j7vcdfrp.js → usage-limits-ftpc4j95.js} +7 -7
- package/dist/chunks/{repository-75t7768k.js → usage-limits-g3n6zr0q.js} +16 -16
- package/dist/chunks/{repository-gbjdnr5j.js → usage-limits-gbjdnr5j.js} +2 -2
- package/dist/chunks/{repository-b4z90bz3.js → usage-limits-gjjq27qa.js} +43 -43
- package/dist/chunks/{repository-5e13b2kr.js → usage-limits-gt8c490j.js} +3 -3
- package/dist/chunks/{repository-tcb8d6wv.js → usage-limits-h9x96109.js} +17 -17
- package/dist/chunks/{repository-hh7kjqtw.js → usage-limits-hh7kjqtw.js} +1 -1
- package/dist/chunks/{repository-3d3pvmxz.js → usage-limits-hj4hpdby.js} +12 -12
- package/dist/chunks/{repository-12vj2b1h.js → usage-limits-hngptckf.js} +13 -13
- package/dist/chunks/{repository-hpg1pkwy.js → usage-limits-hpg1pkwy.js} +1 -1
- package/dist/chunks/{repository-akc4t9gv.js → usage-limits-hpwreb2n.js} +27 -27
- package/dist/chunks/{repository-hg8tt10n.js → usage-limits-hr0yr0zh.js} +9 -9
- package/dist/chunks/{repository-00qfdy27.js → usage-limits-hr1kxf88.js} +29 -29
- package/dist/chunks/{repository-ex7m7qe1.js → usage-limits-hvszmf3e.js} +5 -5
- package/dist/chunks/{repository-gbkyg869.js → usage-limits-hx4qpz76.js} +32 -32
- package/dist/chunks/{repository-8vm714rn.js → usage-limits-j4he7vbr.js} +41 -41
- package/dist/chunks/{repository-ze75qvmd.js → usage-limits-j9nxzz3g.js} +3 -3
- package/dist/chunks/{repository-pahg8g4d.js → usage-limits-jahxfc61.js} +9 -9
- package/dist/chunks/{repository-bkycdrpd.js → usage-limits-jbn2q8s9.js} +23 -23
- package/dist/chunks/{repository-53qrs49z.js → usage-limits-jc512s3p.js} +8 -8
- package/dist/chunks/{repository-7389kptq.js → usage-limits-jcw9q93v.js} +11 -11
- package/dist/chunks/{repository-3jf1xmra.js → usage-limits-jkety0w8.js} +28 -28
- package/dist/chunks/{repository-r7tfzb8e.js → usage-limits-jsb5v99n.js} +8 -8
- package/dist/chunks/{repository-vekvn0ce.js → usage-limits-jsvqhv8w.js} +78 -78
- package/dist/chunks/{repository-jtnps1zs.js → usage-limits-jtnps1zs.js} +2 -2
- package/dist/chunks/{repository-scmk72rv.js → usage-limits-jv5ccajn.js} +5 -5
- package/dist/chunks/{repository-jqgqc1vf.js → usage-limits-jye1j8z7.js} +32 -32
- package/dist/chunks/{repository-k3cx6fhe.js → usage-limits-k3cx6fhe.js} +1 -1
- package/dist/chunks/{repository-yts2a8qm.js → usage-limits-kbgs7tyr.js} +4 -4
- package/dist/chunks/{repository-h78gmwm8.js → usage-limits-kdbzm995.js} +7 -7
- package/dist/chunks/{repository-mpd288r4.js → usage-limits-ke545j7m.js} +20 -20
- package/dist/chunks/{repository-kdtfz1k3.js → usage-limits-kfn7hqn6.js} +27 -27
- package/dist/chunks/{repository-kt3bjfbg.js → usage-limits-kt3bjfbg.js} +1 -1
- package/dist/chunks/{repository-9ed90ky0.js → usage-limits-kv32qzfx.js} +30 -30
- package/dist/chunks/{repository-ky55b5b1.js → usage-limits-ky55b5b1.js} +1 -1
- package/dist/chunks/{repository-kzczzf4v.js → usage-limits-kzczzf4v.js} +1 -1
- package/dist/chunks/{repository-gmemj5zs.js → usage-limits-kze6nzna.js} +7 -7
- package/dist/chunks/{repository-m1714858.js → usage-limits-m1714858.js} +1 -1
- package/dist/chunks/{repository-mx6f7k3w.js → usage-limits-m32hv6nk.js} +35 -35
- package/dist/chunks/{repository-zfvn3r5d.js → usage-limits-m3vgaj65.js} +30 -30
- package/dist/chunks/{repository-p76me67c.js → usage-limits-m7xh3h0x.js} +4 -4
- package/dist/chunks/{repository-6j8sp8g6.js → usage-limits-m93s2rdr.js} +44 -43
- package/dist/chunks/{repository-m9w0rfyh.js → usage-limits-m9w0rfyh.js} +1 -1
- package/dist/chunks/{repository-mb7mbhnz.js → usage-limits-mb7mbhnz.js} +3 -3
- package/dist/chunks/usage-limits-mc2en7xz.js +261 -0
- package/dist/chunks/{repository-v0t96s7a.js → usage-limits-mf63ygpr.js} +4 -4
- package/dist/chunks/{repository-p212j8y1.js → usage-limits-mfb8fvgk.js} +13 -13
- package/dist/chunks/{repository-715ez6py.js → usage-limits-mfezz2p0.js} +26 -26
- package/dist/chunks/{repository-fb1sejwy.js → usage-limits-mmej92t0.js} +19 -19
- package/dist/chunks/{repository-yjjyz0e3.js → usage-limits-mqe7nf5n.js} +3 -3
- package/dist/chunks/{repository-0qn50e8a.js → usage-limits-mqz8gh7e.js} +11 -11
- package/dist/chunks/{repository-msd2a3qm.js → usage-limits-msd2a3qm.js} +4 -4
- package/dist/chunks/{repository-t9kr4kfh.js → usage-limits-mwc5cd2y.js} +14 -14
- package/dist/chunks/{repository-vd9yn8w3.js → usage-limits-n67k9wd0.js} +18 -18
- package/dist/chunks/{repository-3xx0nvzn.js → usage-limits-n6fs3bja.js} +5 -5
- package/dist/chunks/{repository-a5hf8tf4.js → usage-limits-n88rezm8.js} +11 -11
- package/dist/chunks/{repository-6aekme1e.js → usage-limits-n8vevnsf.js} +3 -3
- package/dist/chunks/{repository-nah043kf.js → usage-limits-nah043kf.js} +1 -1
- package/dist/chunks/{repository-2gw36y1w.js → usage-limits-ndhnfkvh.js} +21 -21
- package/dist/chunks/{repository-gfy59a16.js → usage-limits-nms0nj6s.js} +30 -30
- package/dist/chunks/{repository-0anx5598.js → usage-limits-nn2a5q1t.js} +19 -19
- package/dist/chunks/{repository-f341sazs.js → usage-limits-nt907s04.js} +3 -3
- package/dist/chunks/{repository-vcrsdn8r.js → usage-limits-nvd32f1y.js} +12 -12
- package/dist/chunks/{repository-p015t6z3.js → usage-limits-p015t6z3.js} +2 -2
- package/dist/chunks/{repository-00r8q0yt.js → usage-limits-p0ae1meq.js} +37 -37
- package/dist/chunks/{repository-epxyk7zg.js → usage-limits-p0fzjpm1.js} +15 -15
- package/dist/chunks/{repository-20cae54x.js → usage-limits-p2tvx8t7.js} +9 -9
- package/dist/chunks/{repository-1yq9hg58.js → usage-limits-p7vhpwh8.js} +5 -5
- package/dist/chunks/{repository-csmjcn1q.js → usage-limits-pa1a0j55.js} +16 -16
- package/dist/chunks/{repository-4sd5nkp5.js → usage-limits-pcr697g8.js} +26 -26
- package/dist/chunks/{repository-7vk054hd.js → usage-limits-pcwhv3zn.js} +12 -12
- package/dist/chunks/{repository-n5c9sy2r.js → usage-limits-pdf22k7z.js} +18 -18
- package/dist/chunks/{repository-w52d91kq.js → usage-limits-pfk92436.js} +18 -18
- package/dist/chunks/{repository-hfdx7xtc.js → usage-limits-ph5yyazf.js} +19 -19
- package/dist/chunks/{repository-687hq225.js → usage-limits-pk5k9wpg.js} +48 -48
- package/dist/chunks/{repository-pknna89w.js → usage-limits-pknna89w.js} +1 -1
- package/dist/chunks/{repository-nbvp3f9m.js → usage-limits-pp0ncar4.js} +26 -26
- package/dist/chunks/{repository-b2ht1kmm.js → usage-limits-py15aynj.js} +9 -9
- package/dist/chunks/{repository-1zy208v1.js → usage-limits-q7bfnte9.js} +11 -11
- package/dist/chunks/{repository-17f8cxnn.js → usage-limits-qaa8vz4d.js} +11 -11
- package/dist/chunks/{repository-axtwz132.js → usage-limits-qees6j3s.js} +4 -4
- package/dist/chunks/{repository-t7q1s4jf.js → usage-limits-qgtjt0gn.js} +43 -43
- package/dist/chunks/{repository-xdjqbh1q.js → usage-limits-qh543zc0.js} +18 -18
- package/dist/chunks/{repository-qp7r0hxv.js → usage-limits-qp7r0hxv.js} +1 -1
- package/dist/chunks/{repository-qqvy8y24.js → usage-limits-qqvy8y24.js} +1 -1
- package/dist/chunks/{repository-jjv3ebv6.js → usage-limits-qr98zwtf.js} +7 -7
- package/dist/chunks/{repository-6q8jj3zs.js → usage-limits-qtf35215.js} +3 -3
- package/dist/chunks/{repository-8jw5dp9j.js → usage-limits-qvtwmp4v.js} +6 -6
- package/dist/chunks/{repository-zw2cn8hf.js → usage-limits-qxsp0qy6.js} +11 -11
- package/dist/chunks/{repository-x4edsjm2.js → usage-limits-qzyxykh8.js} +45 -45
- package/dist/chunks/{repository-4f25tdd0.js → usage-limits-r542h3bh.js} +5 -5
- package/dist/chunks/{repository-rb9dy4dg.js → usage-limits-rb9dy4dg.js} +1 -1
- package/dist/chunks/{repository-3rnx49f9.js → usage-limits-rbjbxyfb.js} +2 -2
- package/dist/chunks/{repository-80j5eryf.js → usage-limits-rdp4ehry.js} +14 -14
- package/dist/chunks/{repository-wy9m61br.js → usage-limits-rf6sfr73.js} +11 -11
- package/dist/chunks/{repository-5rp489bd.js → usage-limits-rf84k8f1.js} +17 -17
- package/dist/chunks/{repository-zad8kfsb.js → usage-limits-rk0sd0kg.js} +25 -25
- package/dist/chunks/{repository-43t800eb.js → usage-limits-rkc3ajpz.js} +11 -11
- package/dist/chunks/{repository-rt5dr6hb.js → usage-limits-rt5dr6hb.js} +1 -1
- package/dist/chunks/{repository-bhfd478d.js → usage-limits-s26c8eb5.js} +4 -4
- package/dist/chunks/{repository-wn6m9687.js → usage-limits-s3c7qca0.js} +21 -21
- package/dist/chunks/{repository-q315ntxc.js → usage-limits-s7xceqct.js} +5 -5
- package/dist/chunks/{repository-d5v2xrz0.js → usage-limits-s8k9enqw.js} +8 -8
- package/dist/chunks/{repository-163d9n7a.js → usage-limits-sa0q05fm.js} +21 -21
- package/dist/chunks/{repository-sa3fpqfw.js → usage-limits-sa3fpqfw.js} +2 -2
- package/dist/chunks/{repository-v5da91pb.js → usage-limits-sa94484w.js} +18 -18
- package/dist/chunks/{repository-sbya78hr.js → usage-limits-sbya78hr.js} +1 -1
- package/dist/chunks/{repository-g5ajqn12.js → usage-limits-sf9y72b7.js} +4 -4
- package/dist/chunks/{repository-s8tccdec.js → usage-limits-sq2a3fge.js} +4 -4
- package/dist/chunks/{repository-0j7gp832.js → usage-limits-sqjzf8x2.js} +4 -4
- package/dist/chunks/{repository-mvg5jam3.js → usage-limits-ss0a1k8t.js} +26 -26
- package/dist/chunks/{repository-xp4s1g3x.js → usage-limits-st09q8qp.js} +21 -21
- package/dist/chunks/{repository-wsfx1sg6.js → usage-limits-st9ps93c.js} +13 -13
- package/dist/chunks/{repository-svcy3p9a.js → usage-limits-svcy3p9a.js} +1 -1
- package/dist/chunks/{repository-2kkw9hyz.js → usage-limits-sz2wkw2f.js} +6 -6
- package/dist/chunks/{repository-szwm4crx.js → usage-limits-szwm4crx.js} +4 -4
- package/dist/chunks/{repository-cxpktaf3.js → usage-limits-t1stt9hn.js} +5 -5
- package/dist/chunks/{repository-43ax85f5.js → usage-limits-tbspsmnw.js} +16 -16
- package/dist/chunks/{repository-tczq8hjw.js → usage-limits-tczq8hjw.js} +1 -1
- package/dist/chunks/{repository-tg7s7b5t.js → usage-limits-tg7s7b5t.js} +1 -1
- package/dist/chunks/{repository-tr8x705m.js → usage-limits-tr8x705m.js} +1 -1
- package/dist/chunks/{repository-rw8wdfk3.js → usage-limits-ts2pxwz7.js} +7 -7
- package/dist/chunks/{repository-h4z7h7ag.js → usage-limits-tttefmwe.js} +11 -11
- package/dist/chunks/{repository-qw2t3dzn.js → usage-limits-tvssxyt8.js} +6 -6
- package/dist/chunks/{repository-twssxy5n.js → usage-limits-twssxy5n.js} +2 -2
- package/dist/chunks/{repository-y52vf7zr.js → usage-limits-v05vmyvq.js} +27 -27
- package/dist/chunks/{repository-v2r1d0zg.js → usage-limits-v2r1d0zg.js} +1 -1
- package/dist/chunks/{repository-hw621kav.js → usage-limits-v5hpj9dd.js} +6 -6
- package/dist/chunks/{repository-ecrcxjkp.js → usage-limits-vcm9cyw2.js} +5 -5
- package/dist/chunks/{repository-e7pmcp40.js → usage-limits-ve2yhar6.js} +14 -14
- package/dist/chunks/{repository-1ww1rpnf.js → usage-limits-vh2kh9ps.js} +59 -59
- package/dist/chunks/{repository-vjf35v1f.js → usage-limits-vjf35v1f.js} +1 -1
- package/dist/chunks/{repository-4zeh2781.js → usage-limits-vk3q8dk8.js} +20 -20
- package/dist/chunks/{repository-kj9n5bvh.js → usage-limits-vmqe41cb.js} +4 -4
- package/dist/chunks/{repository-dg3tysff.js → usage-limits-vp2fe4sb.js} +9 -9
- package/dist/chunks/{repository-x7de2wha.js → usage-limits-vt4r9rmy.js} +9 -9
- package/dist/chunks/{repository-qaxfcnsv.js → usage-limits-vtw8zf69.js} +11 -11
- package/dist/chunks/{repository-pjnewz4h.js → usage-limits-w122sk5d.js} +31 -31
- package/dist/chunks/{repository-w2eysc6j.js → usage-limits-w2eysc6j.js} +2 -2
- package/dist/chunks/{repository-w3wsvvr9.js → usage-limits-w3wsvvr9.js} +1 -1
- package/dist/chunks/{repository-ankbfx9c.js → usage-limits-w45rmhc3.js} +12 -12
- package/dist/chunks/{repository-2pc2x7h5.js → usage-limits-w57mf20a.js} +34 -34
- package/dist/chunks/{repository-g4f6ps2a.js → usage-limits-w8sdfb9w.js} +9 -9
- package/dist/chunks/{repository-wakvkjy4.js → usage-limits-wakvkjy4.js} +1 -1
- package/dist/chunks/{repository-wd87259q.js → usage-limits-wd87259q.js} +1 -1
- package/dist/chunks/{repository-wegkxhrn.js → usage-limits-wegkxhrn.js} +2 -2
- package/dist/chunks/{repository-wexf2k6a.js → usage-limits-wexf2k6a.js} +3 -3
- package/dist/chunks/{repository-1vnt2h24.js → usage-limits-wm0d50xk.js} +24 -24
- package/dist/chunks/{repository-wnhgecwx.js → usage-limits-wnhgecwx.js} +1 -1
- package/dist/chunks/{repository-bz9e4xwq.js → usage-limits-wnk5ar3r.js} +34 -34
- package/dist/chunks/{repository-w687dnns.js → usage-limits-wr3re1en.js} +4 -4
- package/dist/chunks/{repository-wvr8xscb.js → usage-limits-wvr8xscb.js} +1 -1
- package/dist/chunks/{repository-smhhrjeq.js → usage-limits-wwk64ax4.js} +21 -21
- package/dist/chunks/{repository-s6h2s3rz.js → usage-limits-wws03c5r.js} +4 -4
- package/dist/chunks/{repository-sdn2zcx3.js → usage-limits-x150ncgg.js} +2 -2
- package/dist/chunks/{repository-k207nqnc.js → usage-limits-x369jwq1.js} +18 -18
- package/dist/chunks/{repository-7xt82jmj.js → usage-limits-xb29nv4b.js} +11 -11
- package/dist/chunks/{repository-qqg9c0kv.js → usage-limits-xmx7xj34.js} +4 -4
- package/dist/chunks/{repository-1f75kze0.js → usage-limits-xpmh67q4.js} +20 -20
- package/dist/chunks/{repository-nbh8p6ww.js → usage-limits-xr07be4v.js} +28 -28
- package/dist/chunks/{repository-1mnq2rn5.js → usage-limits-xv0z6cqm.js} +5 -5
- package/dist/chunks/{repository-qm58qbvp.js → usage-limits-y4a4bk48.js} +10 -10
- package/dist/chunks/{repository-fsevz08s.js → usage-limits-y5r7t02p.js} +27 -27
- package/dist/chunks/{repository-yara3q77.js → usage-limits-yara3q77.js} +2 -2
- package/dist/chunks/{repository-yb20nhc3.js → usage-limits-yb20nhc3.js} +1 -1
- package/dist/chunks/{repository-n0026tak.js → usage-limits-ybka5wt8.js} +3 -3
- package/dist/chunks/{repository-fhahebde.js → usage-limits-yf9w9wtz.js} +4 -4
- package/dist/chunks/{repository-yr705xyq.js → usage-limits-yr705xyq.js} +1 -1
- package/dist/chunks/{repository-a3a17e1e.js → usage-limits-ys44ckr0.js} +23 -23
- package/dist/chunks/{repository-cfq471k7.js → usage-limits-yz5cvm2f.js} +42 -42
- package/dist/chunks/{repository-79scnwzb.js → usage-limits-z1tssbze.js} +12 -12
- package/dist/chunks/{repository-zrmnbdg0.js → usage-limits-z617y4bf.js} +27 -27
- package/dist/chunks/{repository-kf43d1eq.js → usage-limits-z6d0z892.js} +13 -13
- package/dist/chunks/{repository-zqbtnvm2.js → usage-limits-z790ea30.js} +25 -25
- package/dist/chunks/{repository-2fgrey3x.js → usage-limits-zj74h5n1.js} +9 -9
- package/dist/chunks/{repository-vsx6z3ef.js → usage-limits-zj79xsp9.js} +17 -17
- package/dist/chunks/{repository-4wzs20xx.js → usage-limits-zqtt05nf.js} +3 -3
- package/dist/chunks/{repository-a3tva24r.js → usage-limits-zspqkyq8.js} +20 -20
- package/dist/chunks/{repository-43517qt4.js → usage-limits-zvnnb0kw.js} +21 -21
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/execution.js +3 -3
- package/dist/codemode/fetch.js +145 -145
- package/dist/codemode/instructions.js +3 -3
- package/dist/codemode/tool.js +151 -151
- package/dist/command.js +92 -92
- package/dist/config/discovery.js +95 -95
- package/dist/config/integration.js +1 -1
- package/dist/config/managed.js +1 -1
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +112 -112
- package/dist/config/plugin/agent.js +130 -130
- package/dist/config/plugin/command.js +229 -229
- package/dist/config/plugin/compaction.js +171 -171
- package/dist/config/plugin/compatibility.js +150 -150
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +131 -131
- package/dist/config/plugin/image.js +130 -130
- package/dist/config/plugin/instruction.js +130 -130
- package/dist/config/plugin/location-watcher.js +132 -132
- package/dist/config/plugin/mcp.js +137 -137
- package/dist/config/plugin/policy.js +130 -130
- package/dist/config/plugin/provider.js +132 -132
- package/dist/config/plugin/reference.js +132 -132
- package/dist/config/plugin/shell.js +132 -132
- package/dist/config/plugin/skill-file.js +146 -146
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +153 -153
- package/dist/config/plugin/snapshot.js +130 -130
- package/dist/config/plugin/source.js +131 -131
- package/dist/config/plugin/tool-output.js +131 -131
- package/dist/config/plugin/websearch.js +131 -131
- package/dist/config/plugin/worktree.js +132 -132
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +135 -135
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +94 -94
- package/dist/database/database.js +77 -77
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration/20261026223005_schedule.js +1 -1
- package/dist/database/migration/20261029002625_session_part.js +1 -1
- package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
- package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
- package/dist/database/migration/20261030054400_job.js +1 -1
- package/dist/database/migration.gen.js +60 -60
- package/dist/database/migration.js +62 -62
- 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 +428 -428
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +106 -106
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +106 -106
- 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 +81 -81
- package/dist/file-access.js +156 -156
- package/dist/file-mutation.js +107 -107
- 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 +88 -88
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +245 -245
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +112 -112
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +115 -115
- package/dist/form.js +91 -91
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +100 -100
- package/dist/generate.js +114 -114
- package/dist/git.js +7 -7
- 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 +104 -104
- 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/notice.js +3 -3
- package/dist/image/photon-normalize.js +1 -1
- package/dist/image/photon-worker.js +1 -1
- package/dist/image/photon.js +4 -4
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +419 -419
- package/dist/instruction-discovery.js +97 -97
- package/dist/instructions/builtins.js +100 -100
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +98 -98
- package/dist/job/sql.js +2 -2
- package/dist/job.js +86 -86
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +84 -84
- package/dist/location-activity.js +172 -172
- package/dist/location-lifecycle.js +150 -150
- package/dist/location-service-map.js +99 -99
- package/dist/location-services.js +416 -416
- package/dist/location.js +94 -94
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +104 -104
- package/dist/mcp/index.js +116 -116
- package/dist/mcp/instructions.js +179 -179
- package/dist/mcp/oauth.js +89 -89
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +103 -103
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +104 -104
- package/dist/model-resolver.js +112 -112
- package/dist/model-retry.js +1 -1
- package/dist/model.js +115 -115
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +121 -121
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +93 -93
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +155 -155
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +87 -87
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +86 -86
- package/dist/plugin/agent.js +85 -85
- package/dist/plugin/command.js +113 -113
- package/dist/plugin/goal.js +1 -1
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +236 -236
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +3 -3
- package/dist/plugin/internal.js +395 -395
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +110 -110
- package/dist/plugin/module.js +129 -129
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +146 -146
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +104 -104
- package/dist/plugin/provider/azure.js +130 -130
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +130 -130
- package/dist/plugin/provider/claude-agent/aisdk.js +117 -117
- package/dist/plugin/provider/claude-agent/claude/fork.js +2 -2
- package/dist/plugin/provider/claude-agent/claude/io.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/probe.js +2 -2
- package/dist/plugin/provider/claude-agent/claude/query-options.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/sdk.js +1 -1
- package/dist/plugin/provider/claude-agent/claude/session.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/sessions.js +16 -16
- package/dist/plugin/provider/claude-agent/claude/status.js +9 -9
- package/dist/plugin/provider/claude-agent/index.js +145 -145
- package/dist/plugin/provider/claude-agent/instructions.js +114 -114
- package/dist/plugin/provider/claude-agent/integration.js +113 -113
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +7 -7
- package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +6 -6
- package/dist/plugin/provider/claude-agent/language-model/convert-to-claude-message.js +1 -1
- package/dist/plugin/provider/claude-agent/language-model/request-kind.js +1 -1
- package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/usage.js +5 -5
- package/dist/plugin/provider/claude-agent/provider.js +110 -110
- package/dist/plugin/provider/claude-agent/session.js +112 -112
- package/dist/plugin/provider/claude-agent/sync/catch-up.js +3 -3
- package/dist/plugin/provider/claude-agent/sync/checkpoints.js +2 -2
- package/dist/plugin/provider/claude-agent/sync/decide.js +2 -2
- package/dist/plugin/provider/claude-agent/sync/fingerprint.js +1 -1
- package/dist/plugin/provider/claude-agent/sync/record.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/hooks.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/names.js +1 -1
- package/dist/plugin/provider/claude-agent/tools/pending.js +1 -1
- package/dist/plugin/provider/claude-agent/tools/result.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/server.js +4 -4
- package/dist/plugin/provider/cloudflare-ai-gateway.js +128 -128
- package/dist/plugin/provider/cloudflare-workers-ai.js +128 -128
- package/dist/plugin/provider/configured.js +126 -126
- package/dist/plugin/provider/credential-settings.js +85 -85
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +106 -106
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +108 -108
- package/dist/plugin/provider/gitlab.js +107 -107
- package/dist/plugin/provider/google-vertex.js +127 -127
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +89 -89
- package/dist/plugin/provider/lmstudio.js +139 -139
- package/dist/plugin/provider/local.js +136 -136
- package/dist/plugin/provider/modal.js +105 -105
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +139 -139
- package/dist/plugin/provider/openai-context-caps.js +103 -103
- package/dist/plugin/provider/openai.js +130 -130
- package/dist/plugin/provider/opencode.js +132 -132
- package/dist/plugin/provider/openrouter.js +104 -104
- package/dist/plugin/provider/poe.js +90 -90
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +104 -104
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +129 -129
- package/dist/plugin/provider/vllm.js +139 -139
- package/dist/plugin/provider/xai.js +104 -104
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +210 -210
- package/dist/plugin/sdk.js +85 -85
- package/dist/plugin/service.js +1 -1
- package/dist/plugin/skill.js +147 -147
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +407 -407
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +99 -99
- package/dist/plugin/vcs/hg.js +99 -99
- package/dist/plugin/verbosity.js +106 -106
- package/dist/plugin/warming.js +128 -128
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +239 -239
- 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 +93 -93
- package/dist/provider.js +112 -112
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +107 -107
- package/dist/reference/instructions.js +101 -101
- package/dist/reference.js +103 -103
- package/dist/repository-cache.js +93 -93
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +110 -110
- package/dist/rpc.js +99 -99
- package/dist/schedule/check.js +241 -241
- package/dist/schedule/sql.js +6 -6
- package/dist/schedule.js +255 -255
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/background.js +1 -1
- package/dist/session/blob.js +129 -129
- package/dist/session/command.js +85 -85
- package/dist/session/compaction.js +171 -171
- package/dist/session/context.js +198 -198
- package/dist/session/diff.js +101 -101
- 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 +243 -243
- package/dist/session/execution.js +163 -163
- package/dist/session/generate.js +198 -198
- package/dist/session/history.js +136 -136
- package/dist/session/inbox.js +145 -145
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +88 -88
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +139 -139
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +168 -168
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +165 -165
- package/dist/session/projector.js +143 -143
- package/dist/session/prompt.js +148 -148
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +139 -139
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +250 -250
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +113 -113
- package/dist/session/runner/publish-llm-event.js +149 -149
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +163 -163
- package/dist/session/runner/to-llm-message.js +137 -137
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +179 -179
- package/dist/session/shell.js +144 -144
- package/dist/session/skill.js +147 -147
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +84 -84
- package/dist/session/store.js +142 -142
- package/dist/session/stored.js +4 -4
- package/dist/session/subagent-completion.js +3 -3
- package/dist/session/subagent-job.js +229 -229
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +202 -202
- package/dist/session/to-session-error.js +148 -148
- package/dist/session/transfer.js +234 -234
- package/dist/session/usage.js +3 -3
- package/dist/session.js +231 -231
- 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 +13 -13
- package/dist/shell.js +146 -146
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +151 -151
- package/dist/skill.js +156 -156
- package/dist/snapshot.js +106 -106
- 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 +180 -180
- package/dist/tool/plugin/artifact.js +228 -228
- package/dist/tool/plugin/edit.js +164 -164
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +162 -162
- package/dist/tool/plugin/grep.js +168 -168
- package/dist/tool/plugin/image-generate.js +239 -239
- package/dist/tool/plugin/mcp-resource.js +162 -162
- package/dist/tool/plugin/opencode.js +161 -161
- package/dist/tool/plugin/patch.js +166 -166
- package/dist/tool/plugin/question.js +146 -146
- package/dist/tool/plugin/read.js +169 -169
- package/dist/tool/plugin/schedule.js +247 -247
- package/dist/tool/plugin/shell.js +235 -235
- package/dist/tool/plugin/skill.js +157 -157
- package/dist/tool/plugin/subagent.js +236 -236
- package/dist/tool/plugin/todo.js +151 -151
- package/dist/tool/plugin/webfetch.js +151 -151
- package/dist/tool/plugin/websearch.js +155 -155
- package/dist/tool/plugin/write.js +166 -166
- package/dist/tool/read-filesystem.js +113 -113
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +159 -159
- package/dist/usage-limits.js +100 -100
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +105 -105
- 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 +106 -106
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +102 -102
- package/dist/voice.js +99 -99
- package/dist/websearch.js +89 -89
- package/dist/wellknown/plugin.js +87 -87
- package/dist/wellknown.js +90 -90
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +93 -93
- 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 +102 -102
- package/dist/worktree.js +111 -111
- package/package.json +8 -8
- package/dist/chunks/repository-s251z23y.js +0 -261
- package/dist/chunks/repository-werwhw8f.js +0 -549
- /package/dist/chunks/{repository-0qkdqm5v.js → usage-limits-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{repository-0zkw76rk.js → usage-limits-0zkw76rk.js} +0 -0
- /package/dist/chunks/{repository-17cy0kzp.js → usage-limits-17cy0kzp.js} +0 -0
- /package/dist/chunks/{repository-1cnp2v09.js → usage-limits-1cnp2v09.js} +0 -0
- /package/dist/chunks/{repository-1kah00gy.js → usage-limits-1kah00gy.js} +0 -0
- /package/dist/chunks/{repository-1pevy3nx.js → usage-limits-1pevy3nx.js} +0 -0
- /package/dist/chunks/{repository-24dcb14g.js → usage-limits-24dcb14g.js} +0 -0
- /package/dist/chunks/{repository-2710q6r3.js → usage-limits-2710q6r3.js} +0 -0
- /package/dist/chunks/{repository-2bv980vf.js → usage-limits-2bv980vf.js} +0 -0
- /package/dist/chunks/{repository-2c3vjs8z.js → usage-limits-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{repository-359p4xyc.js → usage-limits-359p4xyc.js} +0 -0
- /package/dist/chunks/{repository-3asan66x.js → usage-limits-3asan66x.js} +0 -0
- /package/dist/chunks/{repository-3v8g72cx.js → usage-limits-3v8g72cx.js} +0 -0
- /package/dist/chunks/{repository-3wcehsnq.js → usage-limits-3wcehsnq.js} +0 -0
- /package/dist/chunks/{repository-43n2bw4t.js → usage-limits-43n2bw4t.js} +0 -0
- /package/dist/chunks/{repository-4knz6hnm.js → usage-limits-4knz6hnm.js} +0 -0
- /package/dist/chunks/{repository-4qk9sjk2.js → usage-limits-4qk9sjk2.js} +0 -0
- /package/dist/chunks/{repository-4vcrnpx2.js → usage-limits-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{repository-4y7fprxs.js → usage-limits-4y7fprxs.js} +0 -0
- /package/dist/chunks/{repository-53557ph1.js → usage-limits-53557ph1.js} +0 -0
- /package/dist/chunks/{repository-550bvhaj.js → usage-limits-550bvhaj.js} +0 -0
- /package/dist/chunks/{repository-5w3e23ze.js → usage-limits-5w3e23ze.js} +0 -0
- /package/dist/chunks/{repository-6agm2x70.js → usage-limits-6agm2x70.js} +0 -0
- /package/dist/chunks/{repository-6prwharc.js → usage-limits-6prwharc.js} +0 -0
- /package/dist/chunks/{repository-6q2bdcd1.js → usage-limits-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{repository-7akdwqpd.js → usage-limits-7akdwqpd.js} +0 -0
- /package/dist/chunks/{repository-7m9af43g.js → usage-limits-7m9af43g.js} +0 -0
- /package/dist/chunks/{repository-7stb81gk.js → usage-limits-7stb81gk.js} +0 -0
- /package/dist/chunks/{repository-822emrt2.js → usage-limits-822emrt2.js} +0 -0
- /package/dist/chunks/{repository-84wd9syh.js → usage-limits-84wd9syh.js} +0 -0
- /package/dist/chunks/{repository-88xbtdfr.js → usage-limits-88xbtdfr.js} +0 -0
- /package/dist/chunks/{repository-8n3pysct.js → usage-limits-8n3pysct.js} +0 -0
- /package/dist/chunks/{repository-8wj87zfr.js → usage-limits-8wj87zfr.js} +0 -0
- /package/dist/chunks/{repository-9a4afbnw.js → usage-limits-9a4afbnw.js} +0 -0
- /package/dist/chunks/{repository-9rqn6x4v.js → usage-limits-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{repository-a6k6eb26.js → usage-limits-a6k6eb26.js} +0 -0
- /package/dist/chunks/{repository-af5trqkr.js → usage-limits-af5trqkr.js} +0 -0
- /package/dist/chunks/{repository-afrmfg78.js → usage-limits-afrmfg78.js} +0 -0
- /package/dist/chunks/{repository-aqzs7mqg.js → usage-limits-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{repository-atq7p7m5.js → usage-limits-atq7p7m5.js} +0 -0
- /package/dist/chunks/{repository-beh6qq61.js → usage-limits-beh6qq61.js} +0 -0
- /package/dist/chunks/{repository-bkyjaxrp.js → usage-limits-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{repository-bmr6ed5q.js → usage-limits-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{repository-cf4snx6d.js → usage-limits-cf4snx6d.js} +0 -0
- /package/dist/chunks/{repository-cqv5kn06.js → usage-limits-cqv5kn06.js} +0 -0
- /package/dist/chunks/{repository-cvy3z8tj.js → usage-limits-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{repository-d9fn303g.js → usage-limits-d9fn303g.js} +0 -0
- /package/dist/chunks/{repository-d9jj8t3e.js → usage-limits-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{repository-dap0rakb.js → usage-limits-dap0rakb.js} +0 -0
- /package/dist/chunks/{repository-df08tz66.js → usage-limits-df08tz66.js} +0 -0
- /package/dist/chunks/{repository-dy18nga0.js → usage-limits-dy18nga0.js} +0 -0
- /package/dist/chunks/{repository-e5kj55wp.js → usage-limits-e5kj55wp.js} +0 -0
- /package/dist/chunks/{repository-e73j6tqm.js → usage-limits-e73j6tqm.js} +0 -0
- /package/dist/chunks/{repository-ean2d8b5.js → usage-limits-ean2d8b5.js} +0 -0
- /package/dist/chunks/{repository-ec1grn59.js → usage-limits-ec1grn59.js} +0 -0
- /package/dist/chunks/{repository-eh3zwz77.js → usage-limits-eh3zwz77.js} +0 -0
- /package/dist/chunks/{repository-emrn6kk6.js → usage-limits-emrn6kk6.js} +0 -0
- /package/dist/chunks/{repository-f0mxakyp.js → usage-limits-f0mxakyp.js} +0 -0
- /package/dist/chunks/{repository-f6n9ztr4.js → usage-limits-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{repository-faypxj3z.js → usage-limits-faypxj3z.js} +0 -0
- /package/dist/chunks/{repository-fd410y7t.js → usage-limits-fd410y7t.js} +0 -0
- /package/dist/chunks/{repository-fkpq3x5p.js → usage-limits-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{repository-g4wezp1m.js → usage-limits-g4wezp1m.js} +0 -0
- /package/dist/chunks/{repository-g86h250q.js → usage-limits-g86h250q.js} +0 -0
- /package/dist/chunks/{repository-gebd4c9n.js → usage-limits-gebd4c9n.js} +0 -0
- /package/dist/chunks/{repository-gftt206x.js → usage-limits-gftt206x.js} +0 -0
- /package/dist/chunks/{repository-hcxmzztb.js → usage-limits-hcxmzztb.js} +0 -0
- /package/dist/chunks/{repository-hk9envan.js → usage-limits-hk9envan.js} +0 -0
- /package/dist/chunks/{repository-j2ntwpah.js → usage-limits-j2ntwpah.js} +0 -0
- /package/dist/chunks/{repository-j5zkgpj8.js → usage-limits-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{repository-jjkms2e6.js → usage-limits-jjkms2e6.js} +0 -0
- /package/dist/chunks/{repository-jr7sbwjy.js → usage-limits-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{repository-jwfs4k6c.js → usage-limits-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{repository-jwr30sdr.js → usage-limits-jwr30sdr.js} +0 -0
- /package/dist/chunks/{repository-jze0r7bz.js → usage-limits-jze0r7bz.js} +0 -0
- /package/dist/chunks/{repository-jzg6c2d5.js → usage-limits-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{repository-m18g726c.js → usage-limits-m18g726c.js} +0 -0
- /package/dist/chunks/{repository-mp448xyj.js → usage-limits-mp448xyj.js} +0 -0
- /package/dist/chunks/{repository-msx8hqn2.js → usage-limits-msx8hqn2.js} +0 -0
- /package/dist/chunks/{repository-n05xt0ee.js → usage-limits-n05xt0ee.js} +0 -0
- /package/dist/chunks/{repository-n3j8tn72.js → usage-limits-n3j8tn72.js} +0 -0
- /package/dist/chunks/{repository-nh4v3znn.js → usage-limits-nh4v3znn.js} +0 -0
- /package/dist/chunks/{repository-njntx4h6.js → usage-limits-njntx4h6.js} +0 -0
- /package/dist/chunks/{repository-p71gwv9c.js → usage-limits-p71gwv9c.js} +0 -0
- /package/dist/chunks/{repository-q3sfg36h.js → usage-limits-q3sfg36h.js} +0 -0
- /package/dist/chunks/{repository-q74kybfr.js → usage-limits-q74kybfr.js} +0 -0
- /package/dist/chunks/{repository-qaymkmh1.js → usage-limits-qaymkmh1.js} +0 -0
- /package/dist/chunks/{repository-qb87gjwd.js → usage-limits-qb87gjwd.js} +0 -0
- /package/dist/chunks/{repository-qfa1cgps.js → usage-limits-qfa1cgps.js} +0 -0
- /package/dist/chunks/{repository-qg3g05ea.js → usage-limits-qg3g05ea.js} +0 -0
- /package/dist/chunks/{repository-qrg20bc0.js → usage-limits-qrg20bc0.js} +0 -0
- /package/dist/chunks/{repository-rcb2kzg1.js → usage-limits-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{repository-sdp7kfr6.js → usage-limits-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{repository-ssg3fenm.js → usage-limits-ssg3fenm.js} +0 -0
- /package/dist/chunks/{repository-t03h4f5z.js → usage-limits-t03h4f5z.js} +0 -0
- /package/dist/chunks/{repository-ty7weeps.js → usage-limits-ty7weeps.js} +0 -0
- /package/dist/chunks/{repository-ve7vex1e.js → usage-limits-ve7vex1e.js} +0 -0
- /package/dist/chunks/{repository-vtarvj67.js → usage-limits-vtarvj67.js} +0 -0
- /package/dist/chunks/{repository-w803qqfp.js → usage-limits-w803qqfp.js} +0 -0
- /package/dist/chunks/{repository-wc3fc9cn.js → usage-limits-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{repository-wer8tq1h.js → usage-limits-wer8tq1h.js} +0 -0
- /package/dist/chunks/{repository-wtztk69x.js → usage-limits-wtztk69x.js} +0 -0
- /package/dist/chunks/{repository-x0ckcb58.js → usage-limits-x0ckcb58.js} +0 -0
- /package/dist/chunks/{repository-x61499pn.js → usage-limits-x61499pn.js} +0 -0
- /package/dist/chunks/{repository-y44na4kk.js → usage-limits-y44na4kk.js} +0 -0
- /package/dist/chunks/{repository-y8f7s663.js → usage-limits-y8f7s663.js} +0 -0
- /package/dist/chunks/{repository-ygaqb7jw.js → usage-limits-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{repository-z5v4ffb3.js → usage-limits-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{repository-z9919s4g.js → usage-limits-z9919s4g.js} +0 -0
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
key2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-wws03c5r.js";
|
|
4
4
|
import {
|
|
5
5
|
Service88
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./usage-limits-fpd09bte.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event19
|
|
10
|
+
} from "./usage-limits-xr07be4v.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID18,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./usage-limits-ss0a1k8t.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID17,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Service80
|
|
20
|
+
} from "./usage-limits-v05vmyvq.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
ID16
|
|
23
|
+
} from "./usage-limits-w122sk5d.js";
|
|
24
24
|
import {
|
|
25
25
|
load5,
|
|
26
26
|
derive3
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./usage-limits-2yey7seh.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./usage-limits-d9p78pk4.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./
|
|
32
|
+
ID14
|
|
33
|
+
} from "./usage-limits-0h02ntte.js";
|
|
34
34
|
import {
|
|
35
35
|
get5
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./usage-limits-3nnrz6f6.js";
|
|
37
37
|
|
|
38
38
|
// src/plugin/provider/github-copilot.ts
|
|
39
39
|
import { isRecord } from "@opencode/util/record";
|
|
@@ -66,7 +66,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
|
|
|
66
66
|
var JsonBody = Schema.fromJsonString(Schema.Unknown);
|
|
67
67
|
var decodeBody = Schema.decodeUnknownOption(JsonBody);
|
|
68
68
|
var oauth = (app) => ({
|
|
69
|
-
integrationID:
|
|
69
|
+
integrationID: ID18.make("github-copilot"),
|
|
70
70
|
method: {
|
|
71
71
|
id: methodID,
|
|
72
72
|
type: "oauth",
|
|
@@ -164,7 +164,7 @@ var oauth = (app) => ({
|
|
|
164
164
|
var GithubCopilotPlugin2 = define({
|
|
165
165
|
id: "opencode.provider.github.copilot",
|
|
166
166
|
effect: Effect.fn(function* (ctx) {
|
|
167
|
-
const providers = yield*
|
|
167
|
+
const providers = yield* Service80;
|
|
168
168
|
const bus = yield* Service88;
|
|
169
169
|
const loading = Semaphore.makeUnsafe(1);
|
|
170
170
|
const loaded = {};
|
|
@@ -181,7 +181,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
181
181
|
return;
|
|
182
182
|
}
|
|
183
183
|
const url = copilotBaseURL2(credential.metadata) ?? baseURL();
|
|
184
|
-
const provider = yield* providers.get(
|
|
184
|
+
const provider = yield* providers.get(ID17.githubCopilot);
|
|
185
185
|
const remote = yield* Effect.tryPromise({
|
|
186
186
|
try: () => load5(url, {
|
|
187
187
|
...provider?.headers,
|
|
@@ -203,7 +203,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
203
203
|
editor.method.update(oauth(ctx.app));
|
|
204
204
|
});
|
|
205
205
|
yield* ctx.provider.transform((evt) => {
|
|
206
|
-
const item = evt.get(
|
|
206
|
+
const item = evt.get(ID17.githubCopilot);
|
|
207
207
|
if (!item)
|
|
208
208
|
return;
|
|
209
209
|
if (loaded.models) {
|
|
@@ -231,17 +231,17 @@ var GithubCopilotPlugin2 = define({
|
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
233
|
yield* ctx.model.transform((models) => {
|
|
234
|
-
if (models.get(
|
|
235
|
-
models.update(
|
|
234
|
+
if (models.get(ID17.githubCopilot, ID16.make("gpt-5-chat-latest"))) {
|
|
235
|
+
models.update(ID17.githubCopilot, ID16.make("gpt-5-chat-latest"), (model) => {
|
|
236
236
|
model.enabled = false;
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
239
|
});
|
|
240
240
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
241
|
-
yield* bus.subscribe(
|
|
241
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID18.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
242
242
|
yield* refresh().pipe(Effect.forkScoped);
|
|
243
243
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
244
|
-
if (evt.model.providerID !==
|
|
244
|
+
if (evt.model.providerID !== ID17.githubCopilot)
|
|
245
245
|
return;
|
|
246
246
|
if (evt.package !== "@ai-sdk/github-copilot")
|
|
247
247
|
return;
|
|
@@ -250,7 +250,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
250
250
|
evt.sdk = mod.createOpenaiCompatible(evt.options);
|
|
251
251
|
}));
|
|
252
252
|
yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
|
|
253
|
-
if (evt.model.providerID !==
|
|
253
|
+
if (evt.model.providerID !== ID17.githubCopilot)
|
|
254
254
|
return;
|
|
255
255
|
const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
|
|
256
256
|
return;
|
|
@@ -260,13 +260,13 @@ var GithubCopilotPlugin2 = define({
|
|
|
260
260
|
evt.headers["X-Interaction-Id"] = session ? get5(session) : evt.sessionID;
|
|
261
261
|
if (interaction !== "conversation-agent")
|
|
262
262
|
evt.headers["x-initiator"] = "agent";
|
|
263
|
-
}), { providerID:
|
|
263
|
+
}), { providerID: ID17.githubCopilot });
|
|
264
264
|
yield* ctx.session.hook("title", (evt) => Effect.gen(function* () {
|
|
265
|
-
if (evt.model.providerID !==
|
|
265
|
+
if (evt.model.providerID !== ID17.githubCopilot)
|
|
266
266
|
return;
|
|
267
267
|
if (!loaded.baseURL || !loaded.token || !loaded.models)
|
|
268
268
|
return;
|
|
269
|
-
const agent = yield* ctx.agent.get({ agentID:
|
|
269
|
+
const agent = yield* ctx.agent.get({ agentID: ID14.make("title") }).pipe(Effect.orElseSucceed(() => {
|
|
270
270
|
return;
|
|
271
271
|
}));
|
|
272
272
|
if (agent?.data.model)
|
|
@@ -277,9 +277,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
277
277
|
evt.result = yield* utilityTitle2({ baseURL: loaded.baseURL, token: loaded.token, model, app: ctx.app }, evt).pipe(Effect.tapError((cause) => Effect.logDebug("Copilot utility title failed", { model, cause })), Effect.orElseSucceed(() => {
|
|
278
278
|
return;
|
|
279
279
|
}));
|
|
280
|
-
}), { providerID:
|
|
280
|
+
}), { providerID: ID17.githubCopilot });
|
|
281
281
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
282
|
-
if (evt.model.providerID !==
|
|
282
|
+
if (evt.model.providerID !== ID17.githubCopilot)
|
|
283
283
|
return;
|
|
284
284
|
const token = evt.request.headers.get("x-api-key");
|
|
285
285
|
if (!token)
|
|
@@ -287,9 +287,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
287
287
|
const text = yield* Effect.promise(() => evt.request.clone().text());
|
|
288
288
|
const body = Option.getOrUndefined(decodeBody(text));
|
|
289
289
|
applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
|
|
290
|
-
}), { providerID:
|
|
290
|
+
}), { providerID: ID17.githubCopilot });
|
|
291
291
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
292
|
-
if (evt.model.providerID !==
|
|
292
|
+
if (evt.model.providerID !== ID17.githubCopilot)
|
|
293
293
|
return;
|
|
294
294
|
if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
|
|
295
295
|
evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/claude-agent/sync/record.ts
|
|
6
6
|
var exports_record = {};
|
|
7
7
|
__export(exports_record, {
|
|
8
8
|
SessionRecord: () => exports_record,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make8
|
|
10
10
|
});
|
|
11
11
|
import { Effect, Option, Schema } from "effect";
|
|
12
12
|
var Checkpoint = Schema.Struct({ hash: Schema.String, claudeMessageID: Schema.optional(Schema.String) });
|
|
@@ -15,7 +15,7 @@ var Record = Schema.Struct({
|
|
|
15
15
|
history: Schema.optional(Schema.Array(Checkpoint)),
|
|
16
16
|
interrupted: Schema.optional(Schema.Boolean)
|
|
17
17
|
});
|
|
18
|
-
function
|
|
18
|
+
function make8(storage) {
|
|
19
19
|
return {
|
|
20
20
|
get: Effect.fn("SessionRecord.get")(function* (sessionID) {
|
|
21
21
|
const saved = Schema.decodeUnknownOption(Record)(yield* storage.get(`sessions/${sessionID}`));
|
|
@@ -25,4 +25,4 @@ function make9(storage) {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
export {
|
|
28
|
+
export { make8, exports_record };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
connectionEnv2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-3s19bb53.js";
|
|
4
4
|
import {
|
|
5
5
|
Model2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./usage-limits-d08arqad.js";
|
|
7
7
|
import {
|
|
8
8
|
ID3,
|
|
9
9
|
PACKAGE2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./usage-limits-zvnnb0kw.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/plugin/provider/claude-agent/aisdk.ts
|
|
16
16
|
var exports_aisdk = {};
|
|
17
17
|
__export(exports_aisdk, {
|
|
18
18
|
ClaudeAISDK: () => exports_aisdk,
|
|
19
|
-
register: () =>
|
|
19
|
+
register: () => register5
|
|
20
20
|
});
|
|
21
21
|
import { Effect } from "effect";
|
|
22
|
-
var
|
|
22
|
+
var register5 = Effect.fn("ClaudeAISDK.register")(function* (ctx, sessions) {
|
|
23
23
|
const context = yield* Effect.context();
|
|
24
24
|
const run = Effect.runPromiseWith(context);
|
|
25
25
|
const dependencies = {
|
|
@@ -39,4 +39,4 @@ var register3 = Effect.fn("ClaudeAISDK.register")(function* (ctx, sessions) {
|
|
|
39
39
|
}), { providerID: ID3 });
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
export {
|
|
42
|
+
export { register5, exports_aisdk };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service88,
|
|
3
3
|
node91
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./usage-limits-fpd09bte.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/form.ts
|
|
10
10
|
var exports_form = {};
|
|
@@ -12,31 +12,31 @@ __export(exports_form, {
|
|
|
12
12
|
AlreadyExistsError: () => AlreadyExistsError2,
|
|
13
13
|
AlreadySettledError: () => AlreadySettledError2,
|
|
14
14
|
Answer: () => Answer2,
|
|
15
|
-
Event: () =>
|
|
15
|
+
Event: () => Event20,
|
|
16
16
|
Field: () => Field2,
|
|
17
17
|
Fields: () => Fields2,
|
|
18
18
|
Form: () => exports_form,
|
|
19
|
-
ID: () =>
|
|
20
|
-
Info: () =>
|
|
19
|
+
ID: () => ID20,
|
|
20
|
+
Info: () => Info29,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
23
|
NotFoundError: () => NotFoundError13,
|
|
24
24
|
Reply: () => Reply3,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service83,
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When3,
|
|
28
28
|
layer: () => layer27,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node86,
|
|
30
30
|
validateAnswer: () => validateAnswer2,
|
|
31
31
|
validateFields: () => validateFields2
|
|
32
32
|
});
|
|
33
33
|
import { Form } from "@opencode/schema/form";
|
|
34
34
|
import { Cache, Context, Deferred, Duration, Effect, Exit, Layer, Option, Schema } from "effect";
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
|
-
import { Event as
|
|
36
|
+
import { Event as Event20 } from "@opencode/schema/form";
|
|
37
37
|
var RETENTION = Duration.minutes(10);
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var ID20 = Form.ID;
|
|
39
|
+
var Info29 = Form.Info;
|
|
40
40
|
var Field2 = Form.Field;
|
|
41
41
|
var Fields2 = Form.Fields;
|
|
42
42
|
var When3 = Form.When;
|
|
@@ -45,7 +45,7 @@ var Answer2 = Form.Answer;
|
|
|
45
45
|
var Reply3 = Form.Reply;
|
|
46
46
|
|
|
47
47
|
class NotFoundError13 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
48
|
-
id:
|
|
48
|
+
id: ID20
|
|
49
49
|
}) {
|
|
50
50
|
get message() {
|
|
51
51
|
return `Form not found: ${this.id}`;
|
|
@@ -53,7 +53,7 @@ class NotFoundError13 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledError", {
|
|
56
|
-
id:
|
|
56
|
+
id: ID20
|
|
57
57
|
}) {
|
|
58
58
|
get message() {
|
|
59
59
|
return `Form already settled: ${this.id}`;
|
|
@@ -61,7 +61,7 @@ class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledErro
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError", {
|
|
64
|
-
id:
|
|
64
|
+
id: ID20
|
|
65
65
|
}) {
|
|
66
66
|
get message() {
|
|
67
67
|
return `Form already exists: ${this.id}`;
|
|
@@ -69,7 +69,7 @@ class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError"
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
class InvalidAnswerError2 extends Schema.TaggedError()("Form.InvalidAnswerError", {
|
|
72
|
-
id:
|
|
72
|
+
id: ID20,
|
|
73
73
|
message: Schema.String
|
|
74
74
|
}) {
|
|
75
75
|
}
|
|
@@ -79,9 +79,9 @@ class InvalidFormError2 extends Schema.TaggedError()("Form.InvalidFormError", {
|
|
|
79
79
|
}) {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
class
|
|
82
|
+
class Service83 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var layer27 = Layer.effect(
|
|
84
|
+
var layer27 = Layer.effect(Service83, Effect.gen(function* () {
|
|
85
85
|
const bus = yield* Service88;
|
|
86
86
|
let closed = false;
|
|
87
87
|
const forms = yield* Cache.makeWith(() => Effect.die(new Error("Form cache must be used via set/getSuccess, never get")), {
|
|
@@ -90,7 +90,7 @@ var layer27 = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
90
90
|
});
|
|
91
91
|
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError13({ id })))));
|
|
92
92
|
const create = Effect.fn("Form.create")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
93
|
-
const id = input.id ??
|
|
93
|
+
const id = input.id ?? ID20.create();
|
|
94
94
|
const existing = yield* Cache.getSuccess(forms, id);
|
|
95
95
|
if (Option.isSome(existing))
|
|
96
96
|
return yield* new AlreadyExistsError2({ id });
|
|
@@ -162,9 +162,9 @@ var layer27 = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
162
162
|
closed = true;
|
|
163
163
|
}).pipe(Effect.andThen(Cache.values(forms)), Effect.flatMap((entries) => Effect.forEach(Array.from(entries).filter((entry) => entry.state.status === "pending"), (entry) => cancel(entry.form.id).pipe(Effect.ignore), { discard: true })));
|
|
164
164
|
yield* Effect.addFinalizer(() => close);
|
|
165
|
-
return
|
|
165
|
+
return Service83.of({ create, ask, get, list, state, reply, cancel, close });
|
|
166
166
|
}));
|
|
167
|
-
var
|
|
167
|
+
var node86 = makeLocationNode({ service: Service83, layer: layer27, deps: [node91] });
|
|
168
168
|
function validateAnswer2(form, answer) {
|
|
169
169
|
const fields = new Map(form.map((field) => [field.key, field]));
|
|
170
170
|
for (const key of Object.keys(answer)) {
|
|
@@ -316,4 +316,4 @@ function isDateTime(value) {
|
|
|
316
316
|
return !Number.isNaN(new Date(value).getTime());
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
export {
|
|
319
|
+
export { ID20, Info29, Field2, Fields2, When3, State3, Answer2, Reply3, NotFoundError13, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service83, layer27, node86, validateAnswer2, validateFields2, exports_form, Event20 };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
server2,
|
|
3
3
|
headers2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./usage-limits-kt3bjfbg.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
6
|
+
ID18,
|
|
7
|
+
Service81,
|
|
8
|
+
node84
|
|
9
|
+
} from "./usage-limits-ss0a1k8t.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/usage-limits.ts
|
|
15
15
|
var exports_usage_limits = {};
|
|
16
16
|
__export(exports_usage_limits, {
|
|
17
|
-
Info: () =>
|
|
18
|
-
Service: () =>
|
|
19
|
-
UnavailableError: () =>
|
|
17
|
+
Info: () => Info5,
|
|
18
|
+
Service: () => Service20,
|
|
19
|
+
UnavailableError: () => UnavailableError3,
|
|
20
20
|
UsageLimits: () => exports_usage_limits,
|
|
21
|
-
layer: () =>
|
|
22
|
-
node: () =>
|
|
21
|
+
layer: () => layer10,
|
|
22
|
+
node: () => node22
|
|
23
23
|
});
|
|
24
24
|
import { Model } from "@opencode/schema/model";
|
|
25
25
|
import { Money } from "@opencode/schema/money";
|
|
@@ -29,23 +29,23 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
29
29
|
import { httpClient } from "@opencode/util/effect/app-node-platform";
|
|
30
30
|
import { Context, Duration, Effect, Layer, Schema } from "effect";
|
|
31
31
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
32
|
-
var
|
|
32
|
+
var Info5 = UsageLimits.Info;
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class UnavailableError3 extends Schema.TaggedError()("UsageLimits.UnavailableError", {
|
|
35
35
|
message: Schema.String
|
|
36
36
|
}) {
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class Service20 extends Context.Service()("@opencode/UsageLimits") {
|
|
40
40
|
}
|
|
41
|
-
var
|
|
42
|
-
const integrations = yield*
|
|
41
|
+
var layer10 = Layer.effect(Service20, Effect.gen(function* () {
|
|
42
|
+
const integrations = yield* Service81;
|
|
43
43
|
const http = yield* HttpClient.HttpClient;
|
|
44
44
|
const get = Effect.fn("UsageLimits.get")(function* () {
|
|
45
|
-
const connection = yield* integrations.connection.active(
|
|
45
|
+
const connection = yield* integrations.connection.active(ID18.make("opencode"));
|
|
46
46
|
if (!connection)
|
|
47
47
|
return;
|
|
48
|
-
const credential = yield* integrations.connection.resolve(connection).pipe(Effect.mapError((error) => new
|
|
48
|
+
const credential = yield* integrations.connection.resolve(connection).pipe(Effect.mapError((error) => new UnavailableError3({ message: error.message })));
|
|
49
49
|
if (!credential || credential.type === "external")
|
|
50
50
|
return;
|
|
51
51
|
const workspaceID = credential.metadata?.orgID;
|
|
@@ -54,7 +54,7 @@ var layer9 = Layer.effect(Service15, Effect.gen(function* () {
|
|
|
54
54
|
const server = server2(credential);
|
|
55
55
|
const [budgets, go] = yield* Effect.all([readBudgets(http, server, credential), readGo(http, server, credential, workspaceID)], { concurrency: 2 }).pipe(Effect.timeoutOrElse({
|
|
56
56
|
duration: Duration.seconds(15),
|
|
57
|
-
orElse: () => Effect.fail(new
|
|
57
|
+
orElse: () => Effect.fail(new UnavailableError3({ message: "OpenCode Console usage limits timed out" }))
|
|
58
58
|
}));
|
|
59
59
|
return {
|
|
60
60
|
workspace: {
|
|
@@ -66,12 +66,12 @@ var layer9 = Layer.effect(Service15, Effect.gen(function* () {
|
|
|
66
66
|
budgets
|
|
67
67
|
};
|
|
68
68
|
});
|
|
69
|
-
return
|
|
69
|
+
return Service20.of({ get });
|
|
70
70
|
}));
|
|
71
|
-
var
|
|
72
|
-
service:
|
|
73
|
-
layer:
|
|
74
|
-
deps: [
|
|
71
|
+
var node22 = makeLocationNode({
|
|
72
|
+
service: Service20,
|
|
73
|
+
layer: layer10,
|
|
74
|
+
deps: [node84, httpClient]
|
|
75
75
|
});
|
|
76
76
|
var ConsoleBudget = Schema.Struct({
|
|
77
77
|
ruleID: Schema.String,
|
|
@@ -117,17 +117,17 @@ function readBudgets(http, server, credential) {
|
|
|
117
117
|
picked: budget.picked,
|
|
118
118
|
shared: budget.shared,
|
|
119
119
|
resetsAt: budget.resetsAt.getTime()
|
|
120
|
-
}))))), Effect.scoped, Effect.mapError((error) => new
|
|
120
|
+
}))))), Effect.scoped, Effect.mapError((error) => new UnavailableError3({ message: `OpenCode Console budgets are unavailable: ${error.message}` })));
|
|
121
121
|
}
|
|
122
122
|
function readGo(http, server, credential, workspaceID) {
|
|
123
123
|
return HttpClient.withScope(http).execute(HttpClientRequest.get(`${new URL(server).origin}/zen/go/v1/usage`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(credential.type === "oauth" ? credential.access : credential.key), HttpClientRequest.setHeader("x-opencode-org-id", workspaceID))).pipe(Effect.flatMap((response) => response.status === 403 ? Effect.succeed(undefined) : HttpClientResponse.filterStatusOk(response).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(GoUsage)), Effect.map((body) => ({
|
|
124
124
|
rolling: meter(body.usage.rolling),
|
|
125
125
|
weekly: meter(body.usage.weekly),
|
|
126
126
|
monthly: meter(body.usage.monthly)
|
|
127
|
-
})))), Effect.scoped, Effect.mapError((error) => new
|
|
127
|
+
})))), Effect.scoped, Effect.mapError((error) => new UnavailableError3({ message: `OpenCode Go usage is unavailable: ${error.message}` })));
|
|
128
128
|
}
|
|
129
129
|
function meter(value) {
|
|
130
130
|
return { percent: value.percent, limited: value.status === "rate-limited", resetsAt: value.resetsAt.getTime() };
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
export {
|
|
133
|
+
export { Info5, UnavailableError3, Service20, layer10, node22, exports_usage_limits };
|
|
@@ -1,93 +1,93 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AmazonBedrockPlugin2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-dj5xkk94.js";
|
|
4
4
|
import {
|
|
5
5
|
AzurePlugin2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./usage-limits-qzyxykh8.js";
|
|
7
7
|
import {
|
|
8
8
|
CerebrasPlugin2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./usage-limits-wc3fc9cn.js";
|
|
10
10
|
import {
|
|
11
11
|
ChatGPTPlugin2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./usage-limits-st09q8qp.js";
|
|
13
13
|
import {
|
|
14
14
|
ClaudeAgentPlugin2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./usage-limits-z790ea30.js";
|
|
16
16
|
import {
|
|
17
17
|
CloudflareAIGatewayPlugin2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./usage-limits-7t3wwtad.js";
|
|
19
19
|
import {
|
|
20
20
|
CloudflareWorkersAIPlugin2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./usage-limits-s7xceqct.js";
|
|
22
22
|
import {
|
|
23
23
|
DatabricksPlugin2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./usage-limits-beh6qq61.js";
|
|
25
25
|
import {
|
|
26
26
|
DigitalOceanPlugin2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./usage-limits-1a0n8xfb.js";
|
|
28
28
|
import {
|
|
29
29
|
GithubCopilotPlugin2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./usage-limits-jye1j8z7.js";
|
|
31
31
|
import {
|
|
32
32
|
GitLabPlugin2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./usage-limits-s3c7qca0.js";
|
|
34
34
|
import {
|
|
35
35
|
GoogleVertexPlugin2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./usage-limits-sa94484w.js";
|
|
37
37
|
import {
|
|
38
38
|
KiloPlugin2
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./usage-limits-qg3g05ea.js";
|
|
40
40
|
import {
|
|
41
41
|
LLMGatewayPlugin2
|
|
42
|
-
} from "./
|
|
42
|
+
} from "./usage-limits-5bk82nga.js";
|
|
43
43
|
import {
|
|
44
44
|
LMStudioPlugin2
|
|
45
|
-
} from "./
|
|
45
|
+
} from "./usage-limits-1ad67qgs.js";
|
|
46
46
|
import {
|
|
47
47
|
ModalPlugin2
|
|
48
|
-
} from "./
|
|
48
|
+
} from "./usage-limits-hngptckf.js";
|
|
49
49
|
import {
|
|
50
50
|
NeonPlugin2
|
|
51
|
-
} from "./
|
|
51
|
+
} from "./usage-limits-ve7vex1e.js";
|
|
52
52
|
import {
|
|
53
53
|
NvidiaPlugin2
|
|
54
|
-
} from "./
|
|
54
|
+
} from "./usage-limits-24dcb14g.js";
|
|
55
55
|
import {
|
|
56
56
|
OllamaPlugin2
|
|
57
|
-
} from "./
|
|
57
|
+
} from "./usage-limits-yf9w9wtz.js";
|
|
58
58
|
import {
|
|
59
59
|
OpenAIPlugin2
|
|
60
|
-
} from "./
|
|
60
|
+
} from "./usage-limits-ph5yyazf.js";
|
|
61
61
|
import {
|
|
62
62
|
OpenAIContextCapsPlugin2
|
|
63
|
-
} from "./
|
|
63
|
+
} from "./usage-limits-124bhr1x.js";
|
|
64
64
|
import {
|
|
65
65
|
SnowflakeCortexPlugin2
|
|
66
|
-
} from "./
|
|
66
|
+
} from "./usage-limits-edgxprr1.js";
|
|
67
67
|
import {
|
|
68
68
|
OpencodePlugin2
|
|
69
|
-
} from "./
|
|
69
|
+
} from "./usage-limits-mfezz2p0.js";
|
|
70
70
|
import {
|
|
71
71
|
OpenRouterPlugin2
|
|
72
|
-
} from "./
|
|
72
|
+
} from "./usage-limits-gt8c490j.js";
|
|
73
73
|
import {
|
|
74
74
|
PoePlugin2
|
|
75
|
-
} from "./
|
|
75
|
+
} from "./usage-limits-78chz8f7.js";
|
|
76
76
|
import {
|
|
77
77
|
PromptCacheKeyPlugin2
|
|
78
|
-
} from "./
|
|
78
|
+
} from "./usage-limits-hcxmzztb.js";
|
|
79
79
|
import {
|
|
80
80
|
SapAICorePlugin2
|
|
81
|
-
} from "./
|
|
81
|
+
} from "./usage-limits-t1stt9hn.js";
|
|
82
82
|
import {
|
|
83
83
|
VLLMPlugin2
|
|
84
|
-
} from "./
|
|
84
|
+
} from "./usage-limits-722v3f7j.js";
|
|
85
85
|
import {
|
|
86
86
|
XAIPlugin2
|
|
87
|
-
} from "./
|
|
87
|
+
} from "./usage-limits-1te5e7hz.js";
|
|
88
88
|
import {
|
|
89
89
|
ZenmuxPlugin2
|
|
90
|
-
} from "./
|
|
90
|
+
} from "./usage-limits-jjkms2e6.js";
|
|
91
91
|
|
|
92
92
|
// src/plugin/provider.ts
|
|
93
93
|
var ProviderPlugins2 = [
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/claude-agent/language-model/usage.ts
|
|
6
|
-
var
|
|
7
|
-
__export(
|
|
8
|
-
ClaudeUsage: () =>
|
|
9
|
-
make: () =>
|
|
6
|
+
var exports_usage2 = {};
|
|
7
|
+
__export(exports_usage2, {
|
|
8
|
+
ClaudeUsage: () => exports_usage2,
|
|
9
|
+
make: () => make13
|
|
10
10
|
});
|
|
11
|
-
function
|
|
11
|
+
function make13() {
|
|
12
12
|
const messages = new Map;
|
|
13
13
|
let last;
|
|
14
14
|
function update(id, usage) {
|
|
@@ -52,4 +52,4 @@ function make8() {
|
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
export {
|
|
55
|
+
export { make13, exports_usage2 };
|