@opencode/core 0.0.0-dev-21818 → 0.0.0-dev-21820
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 +85 -85
- package/dist/aisdk-native.js +94 -94
- package/dist/aisdk.js +98 -98
- package/dist/app.js +7 -7
- package/dist/bus.js +73 -73
- package/dist/chunks/{command-034tev2y.js → usage-limits-034tev2y.js} +2 -2
- package/dist/chunks/{command-qk5jxgq1.js → usage-limits-052mqgew.js} +9 -9
- package/dist/chunks/{command-pn39a5na.js → usage-limits-06r9fgh1.js} +5 -5
- package/dist/chunks/{command-6ad2fdvv.js → usage-limits-07jy34sd.js} +13 -13
- package/dist/chunks/{command-577yexmd.js → usage-limits-09nb6j7n.js} +18 -18
- package/dist/chunks/{command-v6e0t90w.js → usage-limits-0hkdpjs7.js} +14 -14
- package/dist/chunks/{command-h41k652m.js → usage-limits-0pa66m09.js} +4 -4
- package/dist/chunks/{command-qdm153cs.js → usage-limits-0sbjk12p.js} +20 -20
- package/dist/chunks/{command-xpsakxdv.js → usage-limits-0yhksvcd.js} +27 -27
- package/dist/chunks/{command-9mrkfh1z.js → usage-limits-0z6c2se0.js} +46 -46
- package/dist/chunks/{command-tg1vr1qt.js → usage-limits-160yv0cs.js} +8 -8
- package/dist/chunks/{command-1ep2p91f.js → usage-limits-1ep2p91f.js} +2 -2
- package/dist/chunks/{command-xhq4j13x.js → usage-limits-1nr9fzax.js} +9 -9
- package/dist/chunks/{command-9b79tx17.js → usage-limits-1pfjjcy6.js} +37 -37
- package/dist/chunks/{command-kkx1be94.js → usage-limits-1qtqz3f2.js} +88 -88
- package/dist/chunks/{command-bqkh1202.js → usage-limits-1teq0rja.js} +3 -3
- package/dist/chunks/{command-1x2knyw4.js → usage-limits-1x2knyw4.js} +1 -1
- package/dist/chunks/{command-1yq9hg58.js → usage-limits-1yq9hg58.js} +1 -1
- package/dist/chunks/{command-rxrz6b15.js → usage-limits-27bs79w9.js} +2 -2
- package/dist/chunks/{command-a6f4tgap.js → usage-limits-27s7w8ge.js} +37 -37
- package/dist/chunks/{command-d2r51erv.js → usage-limits-2fghwe76.js} +11 -11
- package/dist/chunks/{command-jn0nm8ve.js → usage-limits-2p2332jf.js} +3 -3
- package/dist/chunks/{command-3bv62f95.js → usage-limits-2rwv1cer.js} +54 -54
- package/dist/chunks/{command-2z1j29yd.js → usage-limits-2z1j29yd.js} +1 -1
- package/dist/chunks/{command-ra86m6px.js → usage-limits-2z573b49.js} +12 -12
- package/dist/chunks/{command-n61941kj.js → usage-limits-2zqc5m45.js} +35 -35
- package/dist/chunks/{command-23h7j0rk.js → usage-limits-37qjwjg3.js} +31 -31
- package/dist/chunks/usage-limits-37x35jkp.js +261 -0
- package/dist/chunks/{command-5s5ptkmy.js → usage-limits-3agpfbf6.js} +17 -17
- package/dist/chunks/{command-x8rpw2zs.js → usage-limits-3fgjz1qb.js} +16 -16
- package/dist/chunks/{command-3hepkmqq.js → usage-limits-3hepkmqq.js} +1 -1
- package/dist/chunks/{command-1ftf7dq4.js → usage-limits-3mw19qy8.js} +31 -31
- package/dist/chunks/{command-3nnrz6f6.js → usage-limits-3nnrz6f6.js} +1 -1
- package/dist/chunks/{command-e5xbdws1.js → usage-limits-3ntsf9a0.js} +26 -26
- package/dist/chunks/{command-ejj7q3zx.js → usage-limits-3rszrfa9.js} +6 -6
- package/dist/chunks/{command-kw6cmkwk.js → usage-limits-3sph5gmk.js} +24 -24
- package/dist/chunks/{command-d22d9jvp.js → usage-limits-43tvqsb6.js} +33 -33
- package/dist/chunks/{command-dnspaa82.js → usage-limits-44asjrm9.js} +6 -6
- package/dist/chunks/{command-rgrvdfrb.js → usage-limits-45j1dh4w.js} +14 -14
- package/dist/chunks/{command-bw8hbntf.js → usage-limits-4ayw2j9m.js} +16 -16
- package/dist/chunks/{command-ekcysewp.js → usage-limits-4h4hk51q.js} +4 -4
- package/dist/chunks/{command-6rzaq17p.js → usage-limits-4jvqj91g.js} +12 -12
- package/dist/chunks/{command-dk5xnaxx.js → usage-limits-4q1b57yv.js} +4 -4
- package/dist/chunks/{command-vbjryyts.js → usage-limits-4snmzknn.js} +24 -24
- package/dist/chunks/{command-y4n6pw34.js → usage-limits-4tqs0jzk.js} +4 -4
- package/dist/chunks/{command-4v008n1t.js → usage-limits-4v008n1t.js} +1 -1
- package/dist/chunks/{command-4xvmh7wp.js → usage-limits-4xvmh7wp.js} +3 -3
- package/dist/chunks/{command-2b2ezf52.js → usage-limits-5hahrjda.js} +15 -15
- package/dist/chunks/{command-5m9w47nd.js → usage-limits-5m9w47nd.js} +1 -1
- package/dist/chunks/{command-kntz01hn.js → usage-limits-5rvbns9h.js} +33 -33
- package/dist/chunks/{command-xdpngg3w.js → usage-limits-5xan3hjt.js} +24 -24
- package/dist/chunks/{command-8h6a48m8.js → usage-limits-648wsnpr.js} +13 -13
- package/dist/chunks/{command-96frc3qv.js → usage-limits-6bv7yxz5.js} +27 -27
- package/dist/chunks/{command-6esdw8yj.js → usage-limits-6esdw8yj.js} +1 -1
- package/dist/chunks/{command-jfemb6dg.js → usage-limits-6gf3hhvq.js} +30 -30
- package/dist/chunks/{command-as1c0yqt.js → usage-limits-6ha7pnwq.js} +22 -22
- package/dist/chunks/{command-8bt0vqrr.js → usage-limits-6jrjvs1q.js} +6 -6
- package/dist/chunks/{command-6pjqjmy2.js → usage-limits-6pjqjmy2.js} +1 -1
- package/dist/chunks/{command-at1k79a5.js → usage-limits-6q2t9e19.js} +11 -11
- package/dist/chunks/{command-sbcmjw49.js → usage-limits-6qx2exdt.js} +11 -11
- package/dist/chunks/{command-eb8ey7jf.js → usage-limits-726yah4h.js} +9 -9
- package/dist/chunks/{command-w8qtt4th.js → usage-limits-76cb1hcw.js} +4 -4
- package/dist/chunks/{command-d0cfhy82.js → usage-limits-78p57jmb.js} +52 -52
- package/dist/chunks/{command-7bmhse3q.js → usage-limits-7bmhse3q.js} +1 -1
- package/dist/chunks/{command-cvnpy6ac.js → usage-limits-7h2jh6d6.js} +27 -27
- package/dist/chunks/{command-7sf0nz0c.js → usage-limits-7pg880mj.js} +29 -29
- package/dist/chunks/{command-2xjnyn7t.js → usage-limits-7qj4kw2w.js} +27 -27
- package/dist/chunks/{command-7w2ypzdf.js → usage-limits-7w2ypzdf.js} +1 -1
- package/dist/chunks/{command-tct5dn0h.js → usage-limits-7wfd13xk.js} +16 -16
- package/dist/chunks/{command-bcvpnfz0.js → usage-limits-7z0r3bs7.js} +21 -21
- package/dist/chunks/{command-eengcg00.js → usage-limits-85tnhsr5.js} +1 -1
- package/dist/chunks/{command-pc1v25hk.js → usage-limits-8bc2ahr8.js} +3 -3
- package/dist/chunks/{command-nxxea952.js → usage-limits-8h5h53em.js} +27 -27
- package/dist/chunks/{command-yhp1gsdf.js → usage-limits-8m3evvpt.js} +15 -15
- package/dist/chunks/{command-8wtp7s3z.js → usage-limits-8wtp7s3z.js} +1 -1
- package/dist/chunks/{command-m37sd98t.js → usage-limits-8y4jps98.js} +4 -4
- package/dist/chunks/{command-91rj84md.js → usage-limits-91rj84md.js} +1 -1
- package/dist/chunks/{command-j65hkcsb.js → usage-limits-94a8q2nd.js} +12 -12
- package/dist/chunks/{command-b0j6y7s5.js → usage-limits-989aym0q.js} +11 -11
- package/dist/chunks/{command-998yhzzq.js → usage-limits-998yhzzq.js} +3 -3
- package/dist/chunks/{command-9gwdkggz.js → usage-limits-9c88vk2a.js} +20 -20
- package/dist/chunks/{command-qah7t4da.js → usage-limits-9cbnrx2n.js} +6 -6
- package/dist/chunks/{command-9cx9sm2q.js → usage-limits-9cx9sm2q.js} +1 -1
- package/dist/chunks/{command-tdhzh0hh.js → usage-limits-9pf9j90h.js} +14 -14
- package/dist/chunks/usage-limits-9t1hjeb8.js +517 -0
- package/dist/chunks/{command-drp4sy68.js → usage-limits-a210w1rj.js} +11 -11
- package/dist/chunks/{command-nn4rsceg.js → usage-limits-a3qfv0hd.js} +52 -52
- package/dist/chunks/{command-fvf40wtt.js → usage-limits-a4xckjr4.js} +24 -24
- package/dist/chunks/{command-9w6z0tb8.js → usage-limits-aaca795k.js} +21 -21
- package/dist/chunks/{command-c379g7ag.js → usage-limits-ac4t24sd.js} +28 -28
- package/dist/chunks/{command-x81g74mp.js → usage-limits-aebkqpzg.js} +10 -10
- package/dist/chunks/{command-ky6psh45.js → usage-limits-aj1nzrgt.js} +11 -11
- package/dist/chunks/{command-ryw9gt93.js → usage-limits-akvc2j30.js} +1 -1
- package/dist/chunks/{command-1v0dspd3.js → usage-limits-aqvd6vz0.js} +30 -30
- package/dist/chunks/{command-ebgyc8dk.js → usage-limits-arwkaxws.js} +21 -21
- package/dist/chunks/{command-n19651je.js → usage-limits-atx9ncrc.js} +14 -14
- package/dist/chunks/{command-k4vjszwk.js → usage-limits-ax80y17w.js} +4 -4
- package/dist/chunks/{command-ayjs7tqn.js → usage-limits-ayjs7tqn.js} +2 -2
- package/dist/chunks/{command-b0mv4wxm.js → usage-limits-b0mv4wxm.js} +2 -2
- package/dist/chunks/{command-athptrr6.js → usage-limits-b3mwsdc9.js} +11 -11
- package/dist/chunks/{command-b6vsg801.js → usage-limits-b6vsg801.js} +2 -2
- package/dist/chunks/{command-xt2n4gan.js → usage-limits-b8qrkhky.js} +28 -28
- package/dist/chunks/{command-kx2s0cab.js → usage-limits-bbaqhw4f.js} +36 -36
- package/dist/chunks/{command-y7mjvyet.js → usage-limits-bbrx00jz.js} +14 -14
- package/dist/chunks/usage-limits-bc6t731e.js +250 -0
- package/dist/chunks/{command-zba5tm1j.js → usage-limits-bjhzkqyk.js} +4 -4
- package/dist/chunks/{command-919wx1z3.js → usage-limits-bnndz809.js} +8 -8
- package/dist/chunks/{command-536c1kkr.js → usage-limits-bxpaffak.js} +4 -4
- package/dist/chunks/{command-8jw7rn7z.js → usage-limits-c4hczych.js} +64 -47
- package/dist/chunks/{command-absbpnym.js → usage-limits-cbc4taa6.js} +11 -11
- package/dist/chunks/{command-601dsf04.js → usage-limits-cfjtprja.js} +16 -16
- package/dist/chunks/{command-9s9yrq09.js → usage-limits-cspetaqy.js} +7 -7
- package/dist/chunks/{command-ycf7t0x4.js → usage-limits-ctt8qbk9.js} +6 -6
- package/dist/chunks/{command-2hxshrhc.js → usage-limits-cvxbw3ks.js} +28 -28
- package/dist/chunks/{command-p5n2p3b1.js → usage-limits-d0h5jp63.js} +36 -36
- package/dist/chunks/{command-krv10r25.js → usage-limits-d2k9ndpk.js} +13 -13
- package/dist/chunks/{command-d4v9tmah.js → usage-limits-d4v9tmah.js} +2 -2
- package/dist/chunks/{command-eshe19cj.js → usage-limits-d7s2envm.js} +6 -6
- package/dist/chunks/{command-xt4j5ppg.js → usage-limits-dj80dh0k.js} +5 -5
- package/dist/chunks/{command-jatb60mj.js → usage-limits-dv889aa0.js} +19 -19
- package/dist/chunks/{command-7gk9js8e.js → usage-limits-dy2frryf.js} +86 -86
- package/dist/chunks/usage-limits-e07q2w5p.js +83 -0
- package/dist/chunks/{command-hdfrs5mg.js → usage-limits-e2x7gzav.js} +7 -7
- package/dist/chunks/{command-sn3c9y12.js → usage-limits-e3hyq533.js} +14 -14
- package/dist/chunks/{command-e834z07m.js → usage-limits-e834z07m.js} +1 -1
- package/dist/chunks/{command-9j2em94t.js → usage-limits-e9gy876p.js} +28 -28
- package/dist/chunks/{command-hb0m8f38.js → usage-limits-ebn47abq.js} +11 -11
- package/dist/chunks/{command-mtm9tq44.js → usage-limits-efwjs4bb.js} +13 -13
- package/dist/chunks/{command-qvw98tg0.js → usage-limits-egmw08v6.js} +5 -5
- package/dist/chunks/{command-xsact9zs.js → usage-limits-emq6awqh.js} +4 -4
- package/dist/chunks/{command-rpnphm24.js → usage-limits-emsb7nrx.js} +19 -19
- package/dist/chunks/{command-vyyww4cp.js → usage-limits-eterkqt0.js} +32 -32
- package/dist/chunks/{command-rkvbxbtx.js → usage-limits-ewc6z4rh.js} +34 -34
- package/dist/chunks/{command-zppqv0za.js → usage-limits-ex7z9m54.js} +2 -2
- package/dist/chunks/{command-je2dmma1.js → usage-limits-exp5mnmq.js} +1 -1
- package/dist/chunks/{command-vg3pf4h8.js → usage-limits-ey1djyv9.js} +10 -10
- package/dist/chunks/{command-jhd2q5aa.js → usage-limits-f0tpkmet.js} +32 -32
- package/dist/chunks/{command-6rxdw5v4.js → usage-limits-f3jntyhm.js} +32 -32
- package/dist/chunks/{command-3531vqe2.js → usage-limits-f7bvh908.js} +19 -19
- package/dist/chunks/{command-5j20qf3f.js → usage-limits-f7r22wb4.js} +45 -45
- package/dist/chunks/{command-bdgfgxkz.js → usage-limits-f9nfcqdq.js} +7 -7
- package/dist/chunks/{command-n2mgc41n.js → usage-limits-fdhstezy.js} +8 -8
- package/dist/chunks/{command-fffv3p7h.js → usage-limits-fffv3p7h.js} +1 -1
- package/dist/chunks/{command-ba7dfhfp.js → usage-limits-fjz66g9m.js} +8 -8
- package/dist/chunks/{command-t2cmnhk6.js → usage-limits-fr1v3ke2.js} +3 -3
- package/dist/chunks/usage-limits-frx5y0yf.js +26 -0
- package/dist/chunks/{command-sa1j54ah.js → usage-limits-g3h8dgtz.js} +4 -4
- package/dist/chunks/{command-g5h9c0rr.js → usage-limits-g5h9c0rr.js} +2 -2
- package/dist/chunks/{command-913j3mh8.js → usage-limits-g9arxaec.js} +11 -11
- package/dist/chunks/{command-vrcsa8qx.js → usage-limits-gcjdgkn2.js} +9 -9
- package/dist/chunks/{command-wrd1e224.js → usage-limits-ggf2j3cc.js} +23 -23
- package/dist/chunks/{command-zcttm0a7.js → usage-limits-ghztajqa.js} +20 -20
- package/dist/chunks/{command-a24mpnx1.js → usage-limits-gk7spenk.js} +24 -24
- package/dist/chunks/{command-jvnwfx78.js → usage-limits-gqa6c0dc.js} +17 -17
- package/dist/chunks/{command-w9654aqw.js → usage-limits-gx0r2313.js} +6 -6
- package/dist/chunks/{command-xpgf5ggf.js → usage-limits-gy0tz9ap.js} +15 -15
- package/dist/chunks/{command-rc5p4tbx.js → usage-limits-gycv8rtq.js} +23 -23
- package/dist/chunks/{command-h5qan5zz.js → usage-limits-h5qan5zz.js} +3 -3
- package/dist/chunks/{command-v8vd993n.js → usage-limits-hdvssxsh.js} +8 -8
- package/dist/chunks/{command-7fxmge10.js → usage-limits-hf1c1nxg.js} +5 -5
- package/dist/chunks/{command-fhkyxz58.js → usage-limits-hgnysbnx.js} +70 -70
- package/dist/chunks/{command-ekteap66.js → usage-limits-hngxbr5f.js} +6 -6
- package/dist/chunks/{command-e8var0bn.js → usage-limits-hp0kf9qk.js} +35 -35
- package/dist/chunks/{command-9g25krhk.js → usage-limits-hpdffqc1.js} +20 -20
- package/dist/chunks/{command-bvnym4q4.js → usage-limits-hycwzgsh.js} +21 -21
- package/dist/chunks/{command-j113cymg.js → usage-limits-j113cymg.js} +1 -1
- package/dist/chunks/{command-sgf93zt1.js → usage-limits-j3xzkfr8.js} +21 -21
- package/dist/chunks/{command-y6tn7bpp.js → usage-limits-j8tswv6e.js} +16 -16
- package/dist/chunks/{command-jchrqzf6.js → usage-limits-jefw9j3y.js} +4 -4
- package/dist/chunks/{command-9wejqmxs.js → usage-limits-k02002gh.js} +10 -10
- package/dist/chunks/{command-6s0p322d.js → usage-limits-k680cdq8.js} +11 -11
- package/dist/chunks/{command-k814nvkf.js → usage-limits-k814nvkf.js} +1 -1
- package/dist/chunks/{command-k3s0qkj7.js → usage-limits-k9vn056m.js} +20 -20
- package/dist/chunks/{command-wrd39zd3.js → usage-limits-kb2r74xq.js} +9 -9
- package/dist/chunks/{command-knm9h1gt.js → usage-limits-kbdzx3mw.js} +5 -5
- package/dist/chunks/{command-0kr898da.js → usage-limits-ke16v9kv.js} +8 -8
- package/dist/chunks/{command-5jyzhfg0.js → usage-limits-kkayz510.js} +4 -4
- package/dist/chunks/{command-fptf4jb2.js → usage-limits-km6kdywk.js} +28 -28
- package/dist/chunks/{command-kt3bjfbg.js → usage-limits-kt3bjfbg.js} +1 -1
- package/dist/chunks/{command-m1714858.js → usage-limits-m1714858.js} +1 -1
- package/dist/chunks/{command-88bjnhq0.js → usage-limits-m304ba9t.js} +5 -5
- package/dist/chunks/{command-kz35drw9.js → usage-limits-m8nbymbg.js} +19 -19
- package/dist/chunks/{command-m9w0rfyh.js → usage-limits-m9w0rfyh.js} +1 -1
- package/dist/chunks/{command-za6yq9hg.js → usage-limits-ma15yhyh.js} +5 -5
- package/dist/chunks/{command-maspj1v3.js → usage-limits-maspj1v3.js} +1 -1
- package/dist/chunks/{command-y3tncrtt.js → usage-limits-mrsa6jkf.js} +15 -15
- package/dist/chunks/{command-82k6bzc0.js → usage-limits-mrss2ga5.js} +45 -45
- package/dist/chunks/{command-bgg6fpfq.js → usage-limits-n7wnam13.js} +7 -7
- package/dist/chunks/{command-nah043kf.js → usage-limits-nah043kf.js} +1 -1
- package/dist/chunks/{command-d8kktwmb.js → usage-limits-ngakgrqq.js} +9 -9
- package/dist/chunks/{command-xc2k0qa9.js → usage-limits-njkmhayd.js} +10 -10
- package/dist/chunks/{command-vkjtdrj5.js → usage-limits-nm3cbc6x.js} +16 -16
- package/dist/chunks/{command-zv77kcwz.js → usage-limits-nmhe9dy6.js} +11 -11
- package/dist/chunks/{command-99hv2r52.js → usage-limits-ntm28ryz.js} +18 -18
- package/dist/chunks/{command-p015t6z3.js → usage-limits-p015t6z3.js} +2 -2
- package/dist/chunks/{command-pwp33k1j.js → usage-limits-p2hj6cy1.js} +18 -18
- package/dist/chunks/{command-jt3cc694.js → usage-limits-pjwfm23k.js} +22 -16
- package/dist/chunks/{command-pknna89w.js → usage-limits-pknna89w.js} +1 -1
- package/dist/chunks/{command-dkg6zq9k.js → usage-limits-pq70gwcm.js} +15 -15
- package/dist/chunks/{command-ry3msmns.js → usage-limits-pz2vpapy.js} +6 -6
- package/dist/chunks/{command-6r3jgch7.js → usage-limits-q0hvv05t.js} +13 -13
- package/dist/chunks/{command-yzj4f4rb.js → usage-limits-qdpm05xk.js} +4 -4
- package/dist/chunks/{command-anxj7259.js → usage-limits-qepdakcz.js} +9 -9
- package/dist/chunks/{command-7zt3ezbt.js → usage-limits-qn0rjxfc.js} +11 -11
- package/dist/chunks/{command-yphf4wkb.js → usage-limits-qqa1433q.js} +38 -38
- package/dist/chunks/{command-qv7y9773.js → usage-limits-qv7y9773.js} +1 -1
- package/dist/chunks/{command-p17y9zxj.js → usage-limits-qz97qh5p.js} +3 -3
- package/dist/chunks/{command-r0yr0wbs.js → usage-limits-r0yr0wbs.js} +1 -1
- package/dist/chunks/{command-jns1hsnf.js → usage-limits-r4czht1g.js} +20 -20
- package/dist/chunks/{command-r542h3bh.js → usage-limits-r542h3bh.js} +1 -1
- package/dist/chunks/{command-v4y8fefg.js → usage-limits-r7a84vp7.js} +24 -24
- package/dist/chunks/{command-rb9dy4dg.js → usage-limits-rb9dy4dg.js} +1 -1
- package/dist/chunks/{command-0e8wpp30.js → usage-limits-rby583qs.js} +8 -8
- package/dist/chunks/{command-mgyrh3fg.js → usage-limits-rrme742e.js} +13 -13
- package/dist/chunks/{command-rt5dr6hb.js → usage-limits-rt5dr6hb.js} +1 -1
- package/dist/chunks/{command-mdqxs31b.js → usage-limits-rx4h7akj.js} +16 -16
- package/dist/chunks/usage-limits-s5c3tv3b.js +169 -0
- package/dist/chunks/{command-as5dbhq9.js → usage-limits-s78dgp47.js} +6 -6
- package/dist/chunks/{command-sa3fpqfw.js → usage-limits-sa3fpqfw.js} +2 -2
- package/dist/chunks/{command-h1a1swr0.js → usage-limits-skwsegzf.js} +21 -21
- package/dist/chunks/{command-sqjzf8x2.js → usage-limits-sqjzf8x2.js} +1 -1
- package/dist/chunks/{command-pnd0tgce.js → usage-limits-sqz0nt1s.js} +45 -45
- package/dist/chunks/{command-d2887f8n.js → usage-limits-ssfehs1z.js} +4 -4
- package/dist/chunks/{command-5j2x0vh6.js → usage-limits-st9cgr6w.js} +15 -15
- package/dist/chunks/{command-7xg2jm5b.js → usage-limits-szcgc7h4.js} +5 -5
- package/dist/chunks/{command-bbwwgj76.js → usage-limits-t0g5gwyx.js} +18 -18
- package/dist/chunks/{command-t8nkzmzj.js → usage-limits-t211gxpv.js} +5 -5
- package/dist/chunks/{command-1vdntpm3.js → usage-limits-taacwnvm.js} +7 -7
- package/dist/chunks/{command-tczq8hjw.js → usage-limits-tczq8hjw.js} +1 -1
- package/dist/chunks/{command-jarxapq1.js → usage-limits-tj65tddj.js} +28 -28
- package/dist/chunks/{command-ve1a31qq.js → usage-limits-tnkagvdq.js} +5 -5
- package/dist/chunks/{command-3mgb105e.js → usage-limits-tpm1qpxt.js} +9 -9
- package/dist/chunks/{command-6ek2k839.js → usage-limits-tvxkwhzj.js} +7 -7
- package/dist/chunks/{command-twv2r8f4.js → usage-limits-twv2r8f4.js} +2 -2
- package/dist/chunks/{command-wphkpwyy.js → usage-limits-txkqgr37.js} +21 -21
- package/dist/chunks/{command-12j5xb52.js → usage-limits-tyhzfa9z.js} +17 -17
- package/dist/chunks/{command-44ggx2jg.js → usage-limits-tzhfmb8s.js} +5 -5
- package/dist/chunks/{command-v2r1d0zg.js → usage-limits-v2r1d0zg.js} +1 -1
- package/dist/chunks/{command-jnfhfvtc.js → usage-limits-v63rcc1z.js} +15 -15
- package/dist/chunks/{command-vd3b3yk9.js → usage-limits-vd3b3yk9.js} +1 -1
- package/dist/chunks/{command-veqvce7d.js → usage-limits-veqvce7d.js} +1 -1
- package/dist/chunks/{command-ry63fkbp.js → usage-limits-vg05jr2c.js} +6 -6
- package/dist/chunks/{command-p7kxzmqg.js → usage-limits-vk32b34p.js} +5 -5
- package/dist/chunks/{command-41rwrk3a.js → usage-limits-vn79cqmx.js} +32 -32
- package/dist/chunks/{command-hzrfc1p4.js → usage-limits-vx3jgdek.js} +3 -3
- package/dist/chunks/{command-40za9wsf.js → usage-limits-w2eysc6j.js} +9 -9
- package/dist/chunks/{command-w3wsvvr9.js → usage-limits-w3wsvvr9.js} +1 -1
- package/dist/chunks/{command-wakvkjy4.js → usage-limits-wakvkjy4.js} +1 -1
- package/dist/chunks/{command-wd87259q.js → usage-limits-wd87259q.js} +1 -1
- package/dist/chunks/{command-41krkmrm.js → usage-limits-wekwn6qz.js} +6 -6
- package/dist/chunks/{command-38gd8qqf.js → usage-limits-whf27mzz.js} +17 -17
- package/dist/chunks/{command-3qb2tvq8.js → usage-limits-whwnz90f.js} +16 -16
- package/dist/chunks/{command-9q3dx9gn.js → usage-limits-wn7kwqy9.js} +15 -15
- package/dist/chunks/{command-w687dnns.js → usage-limits-wr3re1en.js} +4 -4
- package/dist/chunks/{command-afj7tpg0.js → usage-limits-wzb86tnv.js} +21 -21
- package/dist/chunks/{command-bqsy6k7b.js → usage-limits-wzrwmevq.js} +10 -10
- package/dist/chunks/{command-fv74a081.js → usage-limits-x02d0s8b.js} +7 -7
- package/dist/chunks/{command-8jztxfpf.js → usage-limits-x8nvjgx0.js} +4 -4
- package/dist/chunks/{command-g8sddq98.js → usage-limits-xctymaxe.js} +46 -46
- package/dist/chunks/{command-bstexjd6.js → usage-limits-xd9cc171.js} +5 -5
- package/dist/chunks/{command-dqwe69sr.js → usage-limits-xf86h4sa.js} +5 -5
- package/dist/chunks/{command-vwyfhr0a.js → usage-limits-xz2v9wfs.js} +31 -31
- package/dist/chunks/{command-k008twyg.js → usage-limits-y4yx52dp.js} +20 -20
- package/dist/chunks/{command-yb20nhc3.js → usage-limits-yb20nhc3.js} +1 -1
- package/dist/chunks/{command-cg7dpz2x.js → usage-limits-ycbqeg09.js} +116 -197
- package/dist/chunks/{command-adw70tjx.js → usage-limits-ydj2t2r9.js} +181 -181
- package/dist/chunks/{command-t2bs72an.js → usage-limits-yg4mp0v5.js} +2 -2
- package/dist/chunks/{command-cy2v52d0.js → usage-limits-ymy0chk8.js} +4 -4
- package/dist/chunks/{command-5r6qh7e4.js → usage-limits-ypcrvbc5.js} +10 -10
- package/dist/chunks/{command-rhcben61.js → usage-limits-ysd28b92.js} +41 -41
- package/dist/chunks/{command-gy4qwgqr.js → usage-limits-yskc27rg.js} +26 -26
- package/dist/chunks/{command-4kfhgg5n.js → usage-limits-yxemhy2w.js} +25 -25
- package/dist/chunks/{command-z0bkrqjs.js → usage-limits-z0bkrqjs.js} +1 -1
- package/dist/chunks/{command-z38nccrw.js → usage-limits-z38nccrw.js} +1 -1
- package/dist/chunks/{command-v9f0gyh1.js → usage-limits-z59pzgfn.js} +15 -15
- package/dist/chunks/usage-limits-z7bdqmx5.js +18 -0
- package/dist/chunks/{command-xfys7e1v.js → usage-limits-zf9hj4sn.js} +21 -21
- package/dist/chunks/{command-agqd6nxz.js → usage-limits-zgt5j0h2.js} +6 -6
- package/dist/chunks/{command-zkg84ctx.js → usage-limits-zkg84ctx.js} +1 -1
- package/dist/chunks/{command-k8yb96yz.js → usage-limits-zqhzzkgw.js} +6 -6
- package/dist/chunks/{command-b0f7zp2n.js → usage-limits-zszhs1ry.js} +5 -5
- package/dist/chunks/{command-103he1eh.js → usage-limits-ztjft4ja.js} +30 -30
- package/dist/chunks/{command-t33zj5sv.js → usage-limits-zv0vsyec.js} +15 -15
- package/dist/chunks/{command-pss5e485.js → usage-limits-zyxp1bdt.js} +4 -4
- package/dist/chunks/{command-5jhj8f90.js → usage-limits-zzjqjb6m.js} +23 -23
- 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 +89 -89
- package/dist/config/integration.js +14 -0
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +104 -104
- package/dist/config/plugin/agent.js +120 -120
- package/dist/config/plugin/command.js +216 -216
- package/dist/config/plugin/compaction.js +157 -157
- package/dist/config/plugin/compatibility.js +137 -137
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +118 -118
- package/dist/config/plugin/instruction.js +118 -118
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +127 -127
- package/dist/config/plugin/policy.js +120 -119
- package/dist/config/plugin/provider.js +121 -118
- package/dist/config/plugin/reference.js +120 -120
- package/dist/config/plugin/shell.js +120 -120
- package/dist/config/plugin/skill-file.js +107 -107
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +118 -118
- package/dist/config/plugin/source.js +121 -121
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +119 -119
- package/dist/config/plugin/worktree.js +120 -120
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -119
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +70 -70
- 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.gen.js +53 -53
- package/dist/database/migration.js +55 -55
- 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 +92 -92
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +376 -374
- 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 +98 -98
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +100 -100
- 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 +74 -74
- package/dist/file-access.js +109 -109
- package/dist/file-mutation.js +99 -99
- 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/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +227 -227
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +104 -104
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +9 -9
- package/dist/filesystem.js +107 -107
- package/dist/form.js +88 -88
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +92 -92
- package/dist/generate.js +110 -110
- 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 +96 -96
- 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.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +367 -365
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +92 -92
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +93 -93
- package/dist/job.js +82 -82
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +77 -77
- package/dist/location-activity.js +158 -158
- package/dist/location-lifecycle.js +112 -112
- package/dist/location-service-map.js +91 -91
- package/dist/location-services.js +364 -362
- package/dist/location.js +92 -92
- package/dist/managed-policy.js +11 -10
- package/dist/mcp/client.js +96 -96
- package/dist/mcp/index.js +114 -114
- package/dist/mcp/instructions.js +143 -143
- package/dist/mcp/oauth.js +82 -82
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +95 -95
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +96 -96
- package/dist/model-resolver.js +102 -102
- package/dist/model-retry.js +1 -1
- package/dist/model.js +105 -105
- package/dist/models-dev.js +112 -112
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +86 -86
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +116 -116
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +90 -90
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +79 -79
- package/dist/plugin/agent.js +80 -80
- package/dist/plugin/command.js +107 -107
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +222 -222
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +337 -335
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +101 -101
- package/dist/plugin/module.js +120 -119
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +107 -107
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +95 -95
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +118 -118
- package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
- package/dist/plugin/provider/cloudflare-workers-ai.js +115 -115
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +98 -98
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +100 -100
- package/dist/plugin/provider/gitlab.js +98 -98
- package/dist/plugin/provider/google-vertex.js +115 -115
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +82 -82
- package/dist/plugin/provider/lmstudio.js +127 -127
- package/dist/plugin/provider/local.js +124 -124
- package/dist/plugin/provider/modal.js +97 -97
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai-context-caps.js +95 -95
- package/dist/plugin/provider/openai.js +120 -120
- package/dist/plugin/provider/opencode-legacy.js +116 -0
- package/dist/plugin/provider/opencode.js +124 -104
- package/dist/plugin/provider/openrouter.js +96 -96
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +83 -83
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +96 -96
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +117 -117
- package/dist/plugin/provider/vercel.js +95 -95
- package/dist/plugin/provider/vllm.js +127 -127
- package/dist/plugin/provider/xai.js +96 -96
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +175 -171
- package/dist/plugin/sdk.js +80 -80
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +136 -136
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +356 -354
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +91 -91
- package/dist/plugin/vcs/hg.js +91 -91
- package/dist/plugin/verbosity.js +98 -98
- package/dist/plugin/warming.js +116 -116
- 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 +6 -6
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +229 -229
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +91 -91
- package/dist/provider.js +104 -104
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +103 -103
- package/dist/reference/instructions.js +92 -92
- package/dist/reference.js +96 -96
- package/dist/repository-cache.js +86 -86
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +100 -100
- package/dist/rpc.js +91 -91
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +78 -78
- package/dist/session/compaction.js +139 -139
- package/dist/session/context.js +167 -167
- package/dist/session/diff.js +93 -93
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +223 -223
- package/dist/session/execution.js +131 -131
- package/dist/session/generate.js +169 -169
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +99 -99
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +83 -83
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +102 -102
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +125 -125
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +135 -135
- package/dist/session/projector.js +93 -93
- package/dist/session/prompt.js +110 -110
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +99 -99
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +233 -233
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +105 -105
- package/dist/session/runner/publish-llm-event.js +118 -118
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +131 -131
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +167 -167
- package/dist/session/shell.js +132 -132
- package/dist/session/skill.js +108 -108
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +77 -77
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +214 -214
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +171 -171
- package/dist/session/to-session-error.js +117 -117
- package/dist/session/transfer.js +219 -219
- package/dist/session/usage.js +1 -1
- package/dist/session.js +220 -220
- 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 +134 -134
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +112 -112
- package/dist/skill.js +117 -117
- package/dist/snapshot.js +94 -94
- 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 +140 -140
- package/dist/tool/plugin/edit.js +125 -125
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +127 -127
- package/dist/tool/plugin/grep.js +129 -129
- package/dist/tool/plugin/mcp-resource.js +129 -129
- package/dist/tool/plugin/opencode.js +114 -114
- package/dist/tool/plugin/patch.js +127 -127
- package/dist/tool/plugin/question.js +108 -108
- package/dist/tool/plugin/read.js +130 -130
- package/dist/tool/plugin/shell.js +219 -219
- package/dist/tool/plugin/skill.js +118 -118
- package/dist/tool/plugin/subagent.js +221 -221
- package/dist/tool/plugin/todo.js +140 -140
- package/dist/tool/plugin/webfetch.js +118 -118
- package/dist/tool/plugin/websearch.js +119 -119
- package/dist/tool/plugin/write.js +127 -127
- package/dist/tool/read-filesystem.js +105 -105
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/types/config/integration.d.ts +81 -0
- package/dist/types/config/plugin/provider.d.ts +8 -0
- package/dist/types/config.d.ts +7 -0
- package/dist/types/plugin/provider/opencode-legacy.d.ts +69 -0
- package/dist/types/plugin/provider/opencode.d.ts +2 -1
- 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 +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +6 -6
- package/dist/v1/config/migrate.js +97 -97
- package/dist/v1/config/permission.js +1 -1
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +98 -98
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +94 -94
- package/dist/voice.js +92 -92
- package/dist/websearch.js +88 -88
- package/dist/wellknown/plugin.js +80 -80
- package/dist/wellknown.js +85 -85
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +86 -86
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -11
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +94 -94
- package/dist/worktree.js +101 -101
- package/package.json +8 -8
- package/dist/chunks/command-0s5yyc28.js +0 -219
- package/dist/chunks/command-5dwav50q.js +0 -26
- package/dist/chunks/command-eefqnhm8.js +0 -517
- package/dist/chunks/command-me0dhgxs.js +0 -18
- package/dist/chunks/command-xd0mmx4p.js +0 -261
- /package/dist/chunks/{command-0qkdqm5v.js → usage-limits-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{command-0zkw76rk.js → usage-limits-0zkw76rk.js} +0 -0
- /package/dist/chunks/{command-17cy0kzp.js → usage-limits-17cy0kzp.js} +0 -0
- /package/dist/chunks/{command-1cnp2v09.js → usage-limits-1cnp2v09.js} +0 -0
- /package/dist/chunks/{command-24dcb14g.js → usage-limits-24dcb14g.js} +0 -0
- /package/dist/chunks/{command-2710q6r3.js → usage-limits-2710q6r3.js} +0 -0
- /package/dist/chunks/{command-2bv980vf.js → usage-limits-2bv980vf.js} +0 -0
- /package/dist/chunks/{command-2c3vjs8z.js → usage-limits-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{command-359p4xyc.js → usage-limits-359p4xyc.js} +0 -0
- /package/dist/chunks/{command-3asan66x.js → usage-limits-3asan66x.js} +0 -0
- /package/dist/chunks/{command-3v8g72cx.js → usage-limits-3v8g72cx.js} +0 -0
- /package/dist/chunks/{command-3wcehsnq.js → usage-limits-3wcehsnq.js} +0 -0
- /package/dist/chunks/{command-43n2bw4t.js → usage-limits-43n2bw4t.js} +0 -0
- /package/dist/chunks/{command-4knz6hnm.js → usage-limits-4knz6hnm.js} +0 -0
- /package/dist/chunks/{command-4vcrnpx2.js → usage-limits-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{command-4y7fprxs.js → usage-limits-4y7fprxs.js} +0 -0
- /package/dist/chunks/{command-53557ph1.js → usage-limits-53557ph1.js} +0 -0
- /package/dist/chunks/{command-550bvhaj.js → usage-limits-550bvhaj.js} +0 -0
- /package/dist/chunks/{command-5fjb7ams.js → usage-limits-5fjb7ams.js} +0 -0
- /package/dist/chunks/{command-5qd3pb7m.js → usage-limits-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{command-6prwharc.js → usage-limits-6prwharc.js} +0 -0
- /package/dist/chunks/{command-6q2bdcd1.js → usage-limits-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{command-7akdwqpd.js → usage-limits-7akdwqpd.js} +0 -0
- /package/dist/chunks/{command-7m9af43g.js → usage-limits-7m9af43g.js} +0 -0
- /package/dist/chunks/{command-822emrt2.js → usage-limits-822emrt2.js} +0 -0
- /package/dist/chunks/{command-84wd9syh.js → usage-limits-84wd9syh.js} +0 -0
- /package/dist/chunks/{command-88xbtdfr.js → usage-limits-88xbtdfr.js} +0 -0
- /package/dist/chunks/{command-8n3pysct.js → usage-limits-8n3pysct.js} +0 -0
- /package/dist/chunks/{command-8wj87zfr.js → usage-limits-8wj87zfr.js} +0 -0
- /package/dist/chunks/{command-9a4afbnw.js → usage-limits-9a4afbnw.js} +0 -0
- /package/dist/chunks/{command-9rqn6x4v.js → usage-limits-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{command-a058387c.js → usage-limits-a058387c.js} +0 -0
- /package/dist/chunks/{command-a6k6eb26.js → usage-limits-a6k6eb26.js} +0 -0
- /package/dist/chunks/{command-af5trqkr.js → usage-limits-af5trqkr.js} +0 -0
- /package/dist/chunks/{command-afrmfg78.js → usage-limits-afrmfg78.js} +0 -0
- /package/dist/chunks/{command-aqzs7mqg.js → usage-limits-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{command-atq7p7m5.js → usage-limits-atq7p7m5.js} +0 -0
- /package/dist/chunks/{command-bkyjaxrp.js → usage-limits-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{command-bmr6ed5q.js → usage-limits-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{command-cf4snx6d.js → usage-limits-cf4snx6d.js} +0 -0
- /package/dist/chunks/{command-cqv5kn06.js → usage-limits-cqv5kn06.js} +0 -0
- /package/dist/chunks/{command-cvy3z8tj.js → usage-limits-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{command-d9fn303g.js → usage-limits-d9fn303g.js} +0 -0
- /package/dist/chunks/{command-d9jj8t3e.js → usage-limits-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{command-dajrwvna.js → usage-limits-dajrwvna.js} +0 -0
- /package/dist/chunks/{command-dap0rakb.js → usage-limits-dap0rakb.js} +0 -0
- /package/dist/chunks/{command-df08tz66.js → usage-limits-df08tz66.js} +0 -0
- /package/dist/chunks/{command-dy18nga0.js → usage-limits-dy18nga0.js} +0 -0
- /package/dist/chunks/{command-e5kj55wp.js → usage-limits-e5kj55wp.js} +0 -0
- /package/dist/chunks/{command-e73j6tqm.js → usage-limits-e73j6tqm.js} +0 -0
- /package/dist/chunks/{command-ec1grn59.js → usage-limits-ec1grn59.js} +0 -0
- /package/dist/chunks/{command-eh3zwz77.js → usage-limits-eh3zwz77.js} +0 -0
- /package/dist/chunks/{command-emrn6kk6.js → usage-limits-emrn6kk6.js} +0 -0
- /package/dist/chunks/{command-f0mxakyp.js → usage-limits-f0mxakyp.js} +0 -0
- /package/dist/chunks/{command-f6n9ztr4.js → usage-limits-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{command-faypxj3z.js → usage-limits-faypxj3z.js} +0 -0
- /package/dist/chunks/{command-fd410y7t.js → usage-limits-fd410y7t.js} +0 -0
- /package/dist/chunks/{command-g4wezp1m.js → usage-limits-g4wezp1m.js} +0 -0
- /package/dist/chunks/{command-g86h250q.js → usage-limits-g86h250q.js} +0 -0
- /package/dist/chunks/{command-gebd4c9n.js → usage-limits-gebd4c9n.js} +0 -0
- /package/dist/chunks/{command-gftt206x.js → usage-limits-gftt206x.js} +0 -0
- /package/dist/chunks/{command-hcxmzztb.js → usage-limits-hcxmzztb.js} +0 -0
- /package/dist/chunks/{command-hk9envan.js → usage-limits-hk9envan.js} +0 -0
- /package/dist/chunks/{command-j2ntwpah.js → usage-limits-j2ntwpah.js} +0 -0
- /package/dist/chunks/{command-j5zkgpj8.js → usage-limits-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{command-jjkms2e6.js → usage-limits-jjkms2e6.js} +0 -0
- /package/dist/chunks/{command-jr7sbwjy.js → usage-limits-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{command-jwfs4k6c.js → usage-limits-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{command-jwr30sdr.js → usage-limits-jwr30sdr.js} +0 -0
- /package/dist/chunks/{command-jze0r7bz.js → usage-limits-jze0r7bz.js} +0 -0
- /package/dist/chunks/{command-jzg6c2d5.js → usage-limits-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{command-m18g726c.js → usage-limits-m18g726c.js} +0 -0
- /package/dist/chunks/{command-mp448xyj.js → usage-limits-mp448xyj.js} +0 -0
- /package/dist/chunks/{command-msx8hqn2.js → usage-limits-msx8hqn2.js} +0 -0
- /package/dist/chunks/{command-n05xt0ee.js → usage-limits-n05xt0ee.js} +0 -0
- /package/dist/chunks/{command-n3j8tn72.js → usage-limits-n3j8tn72.js} +0 -0
- /package/dist/chunks/{command-njntx4h6.js → usage-limits-njntx4h6.js} +0 -0
- /package/dist/chunks/{command-pkyv6v7h.js → usage-limits-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{command-q3sfg36h.js → usage-limits-q3sfg36h.js} +0 -0
- /package/dist/chunks/{command-q74kybfr.js → usage-limits-q74kybfr.js} +0 -0
- /package/dist/chunks/{command-qaymkmh1.js → usage-limits-qaymkmh1.js} +0 -0
- /package/dist/chunks/{command-qb87gjwd.js → usage-limits-qb87gjwd.js} +0 -0
- /package/dist/chunks/{command-qfa1cgps.js → usage-limits-qfa1cgps.js} +0 -0
- /package/dist/chunks/{command-qg3g05ea.js → usage-limits-qg3g05ea.js} +0 -0
- /package/dist/chunks/{command-qrg20bc0.js → usage-limits-qrg20bc0.js} +0 -0
- /package/dist/chunks/{command-rcb2kzg1.js → usage-limits-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{command-sdp7kfr6.js → usage-limits-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{command-ssg3fenm.js → usage-limits-ssg3fenm.js} +0 -0
- /package/dist/chunks/{command-ve7vex1e.js → usage-limits-ve7vex1e.js} +0 -0
- /package/dist/chunks/{command-w803qqfp.js → usage-limits-w803qqfp.js} +0 -0
- /package/dist/chunks/{command-wc3fc9cn.js → usage-limits-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{command-wer8tq1h.js → usage-limits-wer8tq1h.js} +0 -0
- /package/dist/chunks/{command-wjj7prxr.js → usage-limits-wjj7prxr.js} +0 -0
- /package/dist/chunks/{command-wtztk69x.js → usage-limits-wtztk69x.js} +0 -0
- /package/dist/chunks/{command-x0ckcb58.js → usage-limits-x0ckcb58.js} +0 -0
- /package/dist/chunks/{command-x61499pn.js → usage-limits-x61499pn.js} +0 -0
- /package/dist/chunks/{command-y44na4kk.js → usage-limits-y44na4kk.js} +0 -0
- /package/dist/chunks/{command-y8f7s663.js → usage-limits-y8f7s663.js} +0 -0
- /package/dist/chunks/{command-ygaqb7jw.js → usage-limits-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{command-ym463w8f.js → usage-limits-ym463w8f.js} +0 -0
- /package/dist/chunks/{command-z5v4ffb3.js → usage-limits-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{command-z9919s4g.js → usage-limits-z9919s4g.js} +0 -0
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service80,
|
|
3
|
+
node84
|
|
4
|
+
} from "./usage-limits-cfjtprja.js";
|
|
5
5
|
import {
|
|
6
6
|
Key3,
|
|
7
|
-
|
|
7
|
+
make23,
|
|
8
8
|
combine2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./usage-limits-jefw9j3y.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/instructions/builtins.ts
|
|
15
15
|
var exports_builtins = {};
|
|
16
16
|
__export(exports_builtins, {
|
|
17
17
|
InstructionBuiltIns: () => exports_builtins,
|
|
18
|
-
Service: () =>
|
|
19
|
-
node: () =>
|
|
18
|
+
Service: () => Service24,
|
|
19
|
+
node: () => node28
|
|
20
20
|
});
|
|
21
21
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
22
22
|
import { Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
23
23
|
import { Global } from "@opencode/util/global";
|
|
24
|
-
class
|
|
24
|
+
class Service24 extends Context.Service()("@opencode/InstructionBuiltIns") {
|
|
25
25
|
}
|
|
26
|
-
var layer = Layer.effect(
|
|
26
|
+
var layer = Layer.effect(Service24, Effect.gen(function* () {
|
|
27
27
|
const global = yield* Global.Service;
|
|
28
|
-
const location = yield*
|
|
29
|
-
return
|
|
28
|
+
const location = yield* Service80;
|
|
29
|
+
return Service24.of({
|
|
30
30
|
load: () => Effect.succeed(combine2([
|
|
31
|
-
|
|
31
|
+
make23({
|
|
32
32
|
key: Key3.make("core/date"),
|
|
33
33
|
codec: Schema.toCodecJson(Schema.String),
|
|
34
34
|
read: DateTime.nowAsDate.pipe(Effect.map((date) => date.toDateString())),
|
|
@@ -37,7 +37,7 @@ var layer = Layer.effect(Service37, Effect.gen(function* () {
|
|
|
37
37
|
changed: (_previous, date) => `Today's date is now: ${date}`
|
|
38
38
|
}
|
|
39
39
|
}),
|
|
40
|
-
|
|
40
|
+
make23({
|
|
41
41
|
key: Key3.make("core/environment"),
|
|
42
42
|
codec: Schema.toCodecJson(Schema.String),
|
|
43
43
|
read: Effect.sync(() => [
|
|
@@ -60,6 +60,6 @@ var layer = Layer.effect(Service37, Effect.gen(function* () {
|
|
|
60
60
|
]))
|
|
61
61
|
});
|
|
62
62
|
}));
|
|
63
|
-
var
|
|
63
|
+
var node28 = makeLocationNode({ service: Service24, layer, deps: [Global.node, node84] });
|
|
64
64
|
|
|
65
|
-
export {
|
|
65
|
+
export { Service24, node28, exports_builtins };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-rby583qs.js";
|
|
4
4
|
import {
|
|
5
5
|
Service86
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./usage-limits-bxpaffak.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event17
|
|
10
|
+
} from "./usage-limits-cvxbw3ks.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID14,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./usage-limits-7pg880mj.js";
|
|
15
15
|
import {
|
|
16
16
|
success2,
|
|
17
17
|
error2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./usage-limits-yb20nhc3.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
20
|
+
ID13,
|
|
21
21
|
mergeOverlay2,
|
|
22
22
|
mergeHeaders2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./usage-limits-aqvd6vz0.js";
|
|
24
24
|
import {
|
|
25
25
|
get5
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./usage-limits-3nnrz6f6.js";
|
|
27
27
|
import {
|
|
28
28
|
configuredSettings2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./usage-limits-pz2vpapy.js";
|
|
30
30
|
|
|
31
31
|
// src/plugin/provider/openai.ts
|
|
32
32
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -49,7 +49,7 @@ var Claims = Schema.fromJsonString(Schema.Struct({
|
|
|
49
49
|
}));
|
|
50
50
|
var decodeClaims = Schema.decodeUnknownOption(Claims);
|
|
51
51
|
var browser = (app) => ({
|
|
52
|
-
integrationID:
|
|
52
|
+
integrationID: ID14.make("openai"),
|
|
53
53
|
method: {
|
|
54
54
|
id: browserMethodID,
|
|
55
55
|
type: "oauth",
|
|
@@ -122,7 +122,7 @@ function addressInUse(error) {
|
|
|
122
122
|
return "code" in error && error.code === "EADDRINUSE";
|
|
123
123
|
}
|
|
124
124
|
var headless = (app) => ({
|
|
125
|
-
integrationID:
|
|
125
|
+
integrationID: ID14.make("openai"),
|
|
126
126
|
method: {
|
|
127
127
|
id: headlessMethodID,
|
|
128
128
|
type: "oauth",
|
|
@@ -164,7 +164,7 @@ var headless = (app) => ({
|
|
|
164
164
|
}),
|
|
165
165
|
refresh: (value) => refresh(headlessMethodID, value, app)
|
|
166
166
|
});
|
|
167
|
-
var
|
|
167
|
+
var OpenAIPlugin3 = define({
|
|
168
168
|
id: "opencode.provider.openai",
|
|
169
169
|
effect: Effect.fn(function* (ctx) {
|
|
170
170
|
const bus = yield* Service86;
|
|
@@ -182,9 +182,9 @@ var OpenAIPlugin2 = define({
|
|
|
182
182
|
editor.method.update(headless(ctx.app));
|
|
183
183
|
});
|
|
184
184
|
yield* load();
|
|
185
|
-
const configured = yield* configuredSettings2(
|
|
185
|
+
const configured = yield* configuredSettings2(ID13.openai);
|
|
186
186
|
yield* ctx.provider.transform((providers) => {
|
|
187
|
-
const item = providers.get(
|
|
187
|
+
const item = providers.get(ID13.openai);
|
|
188
188
|
if (!item)
|
|
189
189
|
return;
|
|
190
190
|
const account = chatgpt?.metadata?.accountID;
|
|
@@ -204,7 +204,7 @@ var OpenAIPlugin2 = define({
|
|
|
204
204
|
});
|
|
205
205
|
});
|
|
206
206
|
yield* ctx.model.transform((models) => {
|
|
207
|
-
for (const model of models.list(
|
|
207
|
+
for (const model of models.list(ID13.openai)) {
|
|
208
208
|
models.update(model.providerID, model.id, (draft) => {
|
|
209
209
|
if (!chatgpt)
|
|
210
210
|
return;
|
|
@@ -234,14 +234,14 @@ var OpenAIPlugin2 = define({
|
|
|
234
234
|
}));
|
|
235
235
|
evt.headers.originator = "opencode";
|
|
236
236
|
evt.headers["session-id"] = session ? get5(session) : evt.sessionID;
|
|
237
|
-
}), { providerID:
|
|
237
|
+
}), { providerID: ID13.openai });
|
|
238
238
|
const omitOutputLimit = (evt) => Effect.sync(() => {
|
|
239
239
|
delete evt.options.maxTokens;
|
|
240
240
|
});
|
|
241
241
|
for (const name of ["context", "compaction"])
|
|
242
|
-
yield* ctx.session.hook(name, omitOutputLimit, { providerID:
|
|
242
|
+
yield* ctx.session.hook(name, omitOutputLimit, { providerID: ID13.openai });
|
|
243
243
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
244
|
-
yield* bus.subscribe(
|
|
244
|
+
yield* bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("openai")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
245
245
|
})
|
|
246
246
|
});
|
|
247
247
|
function headers(contentType, app) {
|
|
@@ -332,4 +332,4 @@ function claim(token) {
|
|
|
332
332
|
return claims.chatgpt_account_id ?? claims["https://api.openai.com/auth"]?.chatgpt_account_id ?? claims.organizations?.[0]?.id;
|
|
333
333
|
}
|
|
334
334
|
|
|
335
|
-
export {
|
|
335
|
+
export { OpenAIPlugin3 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
which2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-qaymkmh1.js";
|
|
4
4
|
|
|
5
5
|
// src/formatter/builtins.ts
|
|
6
6
|
import { Effect } from "effect";
|
|
7
7
|
import { ChildProcess } from "effect/process";
|
|
8
8
|
import { isRecord } from "@opencode/ai/utils/record";
|
|
9
|
-
function
|
|
9
|
+
function make5(input) {
|
|
10
10
|
const disabled = false;
|
|
11
11
|
const findExecutable = (name) => which2(name, undefined, input.bin);
|
|
12
12
|
const findUp = (target) => input.fs.findUp(target, input.directory, input.worktree);
|
|
@@ -259,4 +259,4 @@ function hasRecordKey(input, field, key) {
|
|
|
259
259
|
return isRecord(input[field]) && key in input[field];
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
export {
|
|
262
|
+
export { make5 };
|
|
@@ -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
|
+
ID14,
|
|
7
|
+
Service77,
|
|
8
|
+
node81
|
|
9
|
+
} from "./usage-limits-7pg880mj.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: () => Info16,
|
|
18
|
+
Service: () => Service65,
|
|
19
|
+
UnavailableError: () => UnavailableError4,
|
|
20
20
|
UsageLimits: () => exports_usage_limits,
|
|
21
|
-
layer: () =>
|
|
22
|
-
node: () =>
|
|
21
|
+
layer: () => layer25,
|
|
22
|
+
node: () => node69
|
|
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 Info16 = UsageLimits.Info;
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class UnavailableError4 extends Schema.TaggedError()("UsageLimits.UnavailableError", {
|
|
35
35
|
message: Schema.String
|
|
36
36
|
}) {
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class Service65 extends Context.Service()("@opencode/UsageLimits") {
|
|
40
40
|
}
|
|
41
|
-
var
|
|
42
|
-
const integrations = yield*
|
|
41
|
+
var layer25 = Layer.effect(Service65, Effect.gen(function* () {
|
|
42
|
+
const integrations = yield* Service77;
|
|
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(ID14.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 UnavailableError4({ 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(Service16, 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 UnavailableError4({ message: "OpenCode Console usage limits timed out" }))
|
|
58
58
|
}));
|
|
59
59
|
return {
|
|
60
60
|
workspace: {
|
|
@@ -66,12 +66,12 @@ var layer9 = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
66
66
|
budgets
|
|
67
67
|
};
|
|
68
68
|
});
|
|
69
|
-
return
|
|
69
|
+
return Service65.of({ get });
|
|
70
70
|
}));
|
|
71
|
-
var
|
|
72
|
-
service:
|
|
73
|
-
layer:
|
|
74
|
-
deps: [
|
|
71
|
+
var node69 = makeLocationNode({
|
|
72
|
+
service: Service65,
|
|
73
|
+
layer: layer25,
|
|
74
|
+
deps: [node81, 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 UnavailableError4({ 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 UnavailableError4({ 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 { Info16, UnavailableError4, Service65, layer25, node69, exports_usage_limits };
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
batch2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-vd3b3yk9.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service56
|
|
6
|
+
} from "./usage-limits-c4hczych.js";
|
|
7
7
|
import {
|
|
8
8
|
match2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./usage-limits-z38nccrw.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
Service15,
|
|
12
|
+
statements3,
|
|
13
13
|
decision2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./usage-limits-pjwfm23k.js";
|
|
15
15
|
import {
|
|
16
16
|
observe2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./usage-limits-6pjqjmy2.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/config/plugin/policy.ts
|
|
23
23
|
var exports_policy = {};
|
|
24
24
|
__export(exports_policy, {
|
|
25
25
|
ConfigPolicyPlugin: () => exports_policy,
|
|
26
|
-
Plugin: () =>
|
|
26
|
+
Plugin: () => Plugin30
|
|
27
27
|
});
|
|
28
28
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
29
29
|
import { Effect, Stream } from "effect";
|
|
30
|
-
var
|
|
30
|
+
var Plugin30 = define({
|
|
31
31
|
id: "opencode.config.policy",
|
|
32
32
|
effect: Effect.fn(function* (ctx) {
|
|
33
|
-
const config = yield*
|
|
34
|
-
const managed = yield*
|
|
33
|
+
const config = yield* Service56;
|
|
34
|
+
const managed = yield* Service15;
|
|
35
35
|
const reload = batch2(Effect.all([ctx.provider.reload(), ctx.mcp.reload(), ctx.skill.reload()], { discard: true }));
|
|
36
36
|
const loaded = yield* observe2(config, ctx.event, reload);
|
|
37
37
|
yield* managed.changes().pipe(Stream.runForEach(() => reload), Effect.forkScoped({ startImmediately: true }));
|
|
38
|
-
const policies = () =>
|
|
38
|
+
const policies = () => statements3(loaded.entries, managed.current());
|
|
39
39
|
const runSync = Effect.runSyncWith(yield* Effect.context());
|
|
40
40
|
yield* ctx.provider.transform((providers) => {
|
|
41
41
|
const current = policies();
|
|
@@ -76,4 +76,4 @@ var Plugin29 = define({
|
|
|
76
76
|
})
|
|
77
77
|
});
|
|
78
78
|
|
|
79
|
-
export {
|
|
79
|
+
export { Plugin30, exports_policy };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/system-prompt.ts
|
|
6
6
|
var exports_system_prompt = {};
|
|
7
7
|
__export(exports_system_prompt, {
|
|
8
8
|
SessionSystemPrompt: () => exports_system_prompt,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make17,
|
|
10
10
|
render: () => render3
|
|
11
11
|
});
|
|
12
12
|
// src/session/runner/prompt/system.txt
|
|
@@ -28,7 +28,7 @@ var system_default = `You are an AI agent running in OpenCode, a coding agent ha
|
|
|
28
28
|
`;
|
|
29
29
|
|
|
30
30
|
// src/session/system-prompt.ts
|
|
31
|
-
function
|
|
31
|
+
function make17(tools) {
|
|
32
32
|
return render3(system_default, tools);
|
|
33
33
|
}
|
|
34
34
|
function render3(prompt, tools) {
|
|
@@ -46,4 +46,4 @@ function render3(prompt, tools) {
|
|
|
46
46
|
`));
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { make17, render3, exports_system_prompt };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
3
|
node91
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./usage-limits-qz97qh5p.js";
|
|
5
5
|
import {
|
|
6
6
|
SessionTable2,
|
|
7
7
|
SessionMessageTable2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./usage-limits-998yhzzq.js";
|
|
9
9
|
import {
|
|
10
10
|
decodeMessageRow2,
|
|
11
11
|
load5
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./usage-limits-f9nfcqdq.js";
|
|
13
13
|
import {
|
|
14
14
|
fromRow2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./usage-limits-27bs79w9.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./usage-limits-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/session/store.ts
|
|
21
21
|
var exports_store = {};
|
|
22
22
|
__export(exports_store, {
|
|
23
23
|
ListInput: () => ListInput3,
|
|
24
|
-
Service: () =>
|
|
24
|
+
Service: () => Service72,
|
|
25
25
|
SessionStore: () => exports_store,
|
|
26
|
-
node: () =>
|
|
26
|
+
node: () => node76
|
|
27
27
|
});
|
|
28
28
|
import { and, asc, desc, eq, gt, isNotNull, isNull, like, lt, notInArray, or, sql } from "drizzle-orm";
|
|
29
29
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -53,11 +53,11 @@ var ListProjectInput = Schema.Struct({
|
|
|
53
53
|
var ListAllInput = Schema.Struct(ListInputBase);
|
|
54
54
|
var ListInput3 = Schema.Union([ListDirectoryInput, ListProjectInput, ListAllInput]);
|
|
55
55
|
|
|
56
|
-
class
|
|
56
|
+
class Service72 extends Context.Service()("@opencode/SessionStore") {
|
|
57
57
|
}
|
|
58
|
-
var layer = Layer.effect(
|
|
58
|
+
var layer = Layer.effect(Service72, Effect.gen(function* () {
|
|
59
59
|
const { db } = yield* Service87;
|
|
60
|
-
return
|
|
60
|
+
return Service72.of({
|
|
61
61
|
get: Effect.fnUntraced(function* (sessionID) {
|
|
62
62
|
const row = yield* db.select().from(SessionTable2).where(eq(SessionTable2.id, sessionID)).get().pipe(Effect.orDie);
|
|
63
63
|
return row ? fromRow2(row) : undefined;
|
|
@@ -128,6 +128,6 @@ var layer = Layer.effect(Service64, Effect.gen(function* () {
|
|
|
128
128
|
})
|
|
129
129
|
});
|
|
130
130
|
}));
|
|
131
|
-
var
|
|
131
|
+
var node76 = makeGlobalNode({ service: Service72, layer, deps: [node91] });
|
|
132
132
|
|
|
133
|
-
export { ListInput3,
|
|
133
|
+
export { ListInput3, Service72, node76, exports_store };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-rby583qs.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service78
|
|
7
|
+
} from "./usage-limits-cvxbw3ks.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
ID14,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./usage-limits-7pg880mj.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID13,
|
|
14
14
|
mergeOverlay2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./usage-limits-aqvd6vz0.js";
|
|
16
16
|
|
|
17
17
|
// src/plugin/provider/xai.ts
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -24,7 +24,7 @@ var scope = "openid profile email offline_access grok-cli:access api:access";
|
|
|
24
24
|
var pollingSafetyMargin = 3000;
|
|
25
25
|
var browserMethodID = MethodID2.make("browser");
|
|
26
26
|
var deviceMethodID = MethodID2.make("device");
|
|
27
|
-
var providerID =
|
|
27
|
+
var providerID = ID13.make("xai");
|
|
28
28
|
var Token = Schema.Struct({
|
|
29
29
|
access_token: Schema.String,
|
|
30
30
|
refresh_token: Schema.optional(Schema.String),
|
|
@@ -44,7 +44,7 @@ var DeviceError = Schema.Struct({
|
|
|
44
44
|
});
|
|
45
45
|
var decodeDeviceError = Schema.decodeUnknownOption(Schema.fromJsonString(DeviceError));
|
|
46
46
|
var device = (app) => ({
|
|
47
|
-
integrationID:
|
|
47
|
+
integrationID: ID14.make("xai"),
|
|
48
48
|
method: {
|
|
49
49
|
id: deviceMethodID,
|
|
50
50
|
type: "oauth",
|
|
@@ -69,8 +69,8 @@ var device = (app) => ({
|
|
|
69
69
|
var XAIPlugin2 = define({
|
|
70
70
|
id: "opencode.provider.xai",
|
|
71
71
|
effect: Effect.fn(function* (ctx) {
|
|
72
|
-
const credentials = yield*
|
|
73
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
72
|
+
const credentials = yield* Service78;
|
|
73
|
+
yield* Effect.forEach(yield* credentials.list(ID14.make("xai")), (credential) => {
|
|
74
74
|
if (credential.value.type !== "oauth" || credential.value.methodID !== browserMethodID)
|
|
75
75
|
return Effect.void;
|
|
76
76
|
return credentials.update(credential.id, {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
directoryColumn2,
|
|
3
3
|
pathColumn2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./usage-limits-wakvkjy4.js";
|
|
5
5
|
import {
|
|
6
6
|
Timestamps2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./usage-limits-qfa1cgps.js";
|
|
8
8
|
import {
|
|
9
9
|
ProjectTable2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./usage-limits-034tev2y.js";
|
|
11
11
|
|
|
12
12
|
// src/session/sql.ts
|
|
13
13
|
import { sqliteTable, text, integer, index, primaryKey, real, uniqueIndex } from "drizzle-orm/sqlite-core";
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./usage-limits-rby583qs.js";
|
|
4
4
|
import {
|
|
5
5
|
Service86
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./usage-limits-bxpaffak.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event17
|
|
10
|
+
} from "./usage-limits-cvxbw3ks.js";
|
|
11
11
|
import {
|
|
12
12
|
key2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./usage-limits-bjhzkqyk.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
ID14,
|
|
16
16
|
MethodID2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./usage-limits-7pg880mj.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
ID13,
|
|
20
20
|
aisdk2,
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Service76
|
|
22
|
+
} from "./usage-limits-aqvd6vz0.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
24
|
+
ID7,
|
|
25
|
+
Info17
|
|
26
|
+
} from "./usage-limits-6gf3hhvq.js";
|
|
27
27
|
import {
|
|
28
28
|
success2,
|
|
29
29
|
error2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./usage-limits-yb20nhc3.js";
|
|
31
31
|
|
|
32
32
|
// src/plugin/provider/gitlab.ts
|
|
33
33
|
import os from "os";
|
|
@@ -35,8 +35,8 @@ import { Clock, Deferred, Effect, Exit, Option, Schema, Semaphore, Stream } from
|
|
|
35
35
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
36
36
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
37
37
|
import { Form } from "@opencode/schema/form";
|
|
38
|
-
var providerID =
|
|
39
|
-
var integrationID =
|
|
38
|
+
var providerID = ID13.gitlab;
|
|
39
|
+
var integrationID = ID14.make("gitlab");
|
|
40
40
|
var methodID = MethodID2.make("pkce");
|
|
41
41
|
var bundledClientID = "fd180700a8f9c5d5557aca231632dd0611a1135a3bb510a741d5a988a3394fa7";
|
|
42
42
|
var legacyClientID = "1d89f9fdb23ee96d4e603201f6861dab6e143c5c3c00469a018a2d94bdc03d4e";
|
|
@@ -57,7 +57,7 @@ var refreshRetention = 60000;
|
|
|
57
57
|
var GitLabPlugin2 = define({
|
|
58
58
|
id: "opencode.provider.gitlab",
|
|
59
59
|
effect: Effect.fn(function* (ctx) {
|
|
60
|
-
const providers = yield*
|
|
60
|
+
const providers = yield* Service76;
|
|
61
61
|
const bus = yield* Service86;
|
|
62
62
|
const http = yield* HttpClient.HttpClient;
|
|
63
63
|
const loading = Semaphore.makeUnsafe(1);
|
|
@@ -185,7 +185,7 @@ var GitLabPlugin2 = define({
|
|
|
185
185
|
models: [
|
|
186
186
|
...item.models.values(),
|
|
187
187
|
...loaded.models.filter((model) => !item.models.has(model.id)).map((model) => ({
|
|
188
|
-
...
|
|
188
|
+
...Info17.default(providerID, ID7.make(model.id)),
|
|
189
189
|
name: `Agent Platform (${model.name})`,
|
|
190
190
|
package: aisdk2("gitlab-ai-provider"),
|
|
191
191
|
settings: { workflowRef: model.ref },
|
|
@@ -196,7 +196,7 @@ var GitLabPlugin2 = define({
|
|
|
196
196
|
});
|
|
197
197
|
});
|
|
198
198
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
199
|
-
yield* bus.subscribe(
|
|
199
|
+
yield* bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
200
200
|
yield* refresh().pipe(Effect.forkScoped);
|
|
201
201
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
202
202
|
if (evt.package !== "gitlab-ai-provider")
|
|
@@ -219,7 +219,7 @@ var GitLabPlugin2 = define({
|
|
|
219
219
|
});
|
|
220
220
|
}));
|
|
221
221
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
222
|
-
if (evt.model.providerID !==
|
|
222
|
+
if (evt.model.providerID !== ID13.gitlab)
|
|
223
223
|
return;
|
|
224
224
|
const featureFlags = typeof evt.options.featureFlags === "object" && evt.options.featureFlags ? evt.options.featureFlags : {};
|
|
225
225
|
const id = evt.model.modelID ?? evt.model.id;
|