@opencode/core 0.0.0-dev-21820 → 0.0.0-dev-21823
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 +83 -83
- package/dist/aisdk-native.js +94 -94
- package/dist/aisdk.js +100 -100
- package/dist/app.js +9 -9
- package/dist/bus.js +73 -73
- package/dist/chunks/{usage-limits-034tev2y.js → filesystem-034tev2y.js} +2 -2
- package/dist/chunks/{usage-limits-kbdzx3mw.js → filesystem-03efvwc7.js} +5 -5
- package/dist/chunks/{usage-limits-m8nbymbg.js → filesystem-048zrydy.js} +26 -26
- package/dist/chunks/{usage-limits-8y4jps98.js → filesystem-06w9ffrv.js} +7 -7
- package/dist/chunks/{usage-limits-2fghwe76.js → filesystem-074yh523.js} +13 -13
- package/dist/chunks/filesystem-0983wq4j.js +26 -0
- package/dist/chunks/{usage-limits-wr3re1en.js → filesystem-0h8y3ex8.js} +4 -4
- package/dist/chunks/{usage-limits-t0g5gwyx.js → filesystem-0kzfsnkr.js} +17 -17
- package/dist/chunks/{usage-limits-cfjtprja.js → filesystem-0r6ymdag.js} +16 -16
- package/dist/chunks/{usage-limits-z59pzgfn.js → filesystem-0s7h5zzx.js} +17 -17
- package/dist/chunks/{usage-limits-bc6t731e.js → filesystem-0v2akbxk.js} +12 -12
- package/dist/chunks/{usage-limits-x8nvjgx0.js → filesystem-11hfp36g.js} +4 -4
- package/dist/chunks/{usage-limits-0sbjk12p.js → filesystem-14r675e2.js} +17 -17
- package/dist/chunks/{usage-limits-2z573b49.js → filesystem-1e41c092.js} +10 -10
- package/dist/chunks/{usage-limits-1ep2p91f.js → filesystem-1ep2p91f.js} +2 -2
- package/dist/chunks/{usage-limits-4jvqj91g.js → filesystem-1gvqg047.js} +12 -12
- package/dist/chunks/{usage-limits-cspetaqy.js → filesystem-1jewsfbp.js} +7 -7
- package/dist/chunks/{usage-limits-zf9hj4sn.js → filesystem-1kqxs66r.js} +19 -19
- package/dist/chunks/{usage-limits-1x2knyw4.js → filesystem-1x2knyw4.js} +1 -1
- package/dist/chunks/{usage-limits-1yq9hg58.js → filesystem-1yq9hg58.js} +1 -1
- package/dist/chunks/{usage-limits-r4czht1g.js → filesystem-1zp85v90.js} +15 -15
- package/dist/chunks/{usage-limits-j3xzkfr8.js → filesystem-2552f9gw.js} +16 -16
- package/dist/chunks/{usage-limits-k9vn056m.js → filesystem-286bwkth.js} +18 -18
- package/dist/chunks/{usage-limits-5xan3hjt.js → filesystem-2a5amaht.js} +22 -22
- package/dist/chunks/{usage-limits-6jrjvs1q.js → filesystem-2fawgvav.js} +6 -6
- package/dist/chunks/{usage-limits-s5c3tv3b.js → filesystem-2ggcr862.js} +12 -12
- package/dist/chunks/{usage-limits-5rvbns9h.js → filesystem-2xs0rryy.js} +33 -33
- package/dist/chunks/{usage-limits-2z1j29yd.js → filesystem-2z1j29yd.js} +1 -1
- package/dist/chunks/{usage-limits-45j1dh4w.js → filesystem-2zz4pbej.js} +9 -9
- package/dist/chunks/{usage-limits-9cbnrx2n.js → filesystem-32rqdfc7.js} +6 -6
- package/dist/chunks/{usage-limits-v63rcc1z.js → filesystem-37f9eqtg.js} +15 -15
- package/dist/chunks/{usage-limits-exp5mnmq.js → filesystem-38my8t2w.js} +4 -4
- package/dist/chunks/{usage-limits-xf86h4sa.js → filesystem-3bdnrd1q.js} +2 -2
- package/dist/chunks/{usage-limits-ke16v9kv.js → filesystem-3dffs2xc.js} +8 -8
- package/dist/chunks/{usage-limits-emq6awqh.js → filesystem-3gv0spa2.js} +4 -4
- package/dist/chunks/{usage-limits-3hepkmqq.js → filesystem-3hepkmqq.js} +1 -1
- package/dist/chunks/{usage-limits-3nnrz6f6.js → filesystem-3nnrz6f6.js} +1 -1
- package/dist/chunks/{usage-limits-r7a84vp7.js → filesystem-3p35tcse.js} +21 -21
- package/dist/chunks/{usage-limits-hf1c1nxg.js → filesystem-3rr06q29.js} +8 -8
- package/dist/chunks/{usage-limits-27bs79w9.js → filesystem-3t73xeyv.js} +2 -2
- package/dist/chunks/{usage-limits-aebkqpzg.js → filesystem-3wddgepz.js} +10 -10
- package/dist/chunks/{usage-limits-a210w1rj.js → filesystem-3y5jkgnv.js} +11 -11
- package/dist/chunks/{usage-limits-e9gy876p.js → filesystem-40g71j7h.js} +25 -25
- package/dist/chunks/{usage-limits-mrss2ga5.js → filesystem-40h6q7je.js} +36 -36
- package/dist/chunks/{usage-limits-27s7w8ge.js → filesystem-48wh137g.js} +35 -35
- package/dist/chunks/{usage-limits-ngakgrqq.js → filesystem-4angxd36.js} +6 -6
- package/dist/chunks/{usage-limits-d7s2envm.js → filesystem-4etepjnw.js} +9 -9
- package/dist/chunks/{usage-limits-bxpaffak.js → filesystem-4fhqgc15.js} +4 -4
- package/dist/chunks/{usage-limits-bbaqhw4f.js → filesystem-4fvyz6gm.js} +36 -36
- package/dist/chunks/{usage-limits-hpdffqc1.js → filesystem-4mnradvb.js} +18 -18
- package/dist/chunks/{usage-limits-6qx2exdt.js → filesystem-4npqj7c8.js} +11 -11
- package/dist/chunks/{usage-limits-4q1b57yv.js → filesystem-4q1b57yv.js} +4 -4
- package/dist/chunks/{usage-limits-tnkagvdq.js → filesystem-4t70q674.js} +2 -2
- package/dist/chunks/{usage-limits-4tqs0jzk.js → filesystem-4tqs0jzk.js} +1 -1
- package/dist/chunks/{usage-limits-4v008n1t.js → filesystem-4v008n1t.js} +1 -1
- package/dist/chunks/{usage-limits-taacwnvm.js → filesystem-4wqc8mqe.js} +5 -5
- package/dist/chunks/{usage-limits-0pa66m09.js → filesystem-4x0avmzf.js} +2 -2
- package/dist/chunks/{usage-limits-4xvmh7wp.js → filesystem-4xvmh7wp.js} +3 -3
- package/dist/chunks/{usage-limits-hycwzgsh.js → filesystem-4yc3bycz.js} +21 -21
- package/dist/chunks/{usage-limits-tvxkwhzj.js → filesystem-58g0x2b7.js} +7 -7
- package/dist/chunks/{usage-limits-kkayz510.js → filesystem-59ebw7nb.js} +4 -4
- package/dist/chunks/{usage-limits-yxemhy2w.js → filesystem-5ae85xy6.js} +25 -25
- package/dist/chunks/{usage-limits-2p2332jf.js → filesystem-5bcft13g.js} +3 -3
- package/dist/chunks/{usage-limits-nmhe9dy6.js → filesystem-5byqedsg.js} +11 -11
- package/dist/chunks/{usage-limits-1pfjjcy6.js → filesystem-5j8szzxn.js} +24 -24
- package/dist/chunks/{usage-limits-5m9w47nd.js → filesystem-5m9w47nd.js} +1 -1
- package/dist/chunks/{usage-limits-6gf3hhvq.js → filesystem-5pjpz24y.js} +30 -30
- package/dist/chunks/{usage-limits-dj80dh0k.js → filesystem-5rqb1j6q.js} +5 -5
- package/dist/chunks/{usage-limits-f7r22wb4.js → filesystem-5w9558x0.js} +43 -43
- package/dist/chunks/{usage-limits-7z0r3bs7.js → filesystem-5zvran9a.js} +12 -12
- package/dist/chunks/{usage-limits-p2hj6cy1.js → filesystem-600wwvjd.js} +18 -18
- package/dist/chunks/{usage-limits-bjhzkqyk.js → filesystem-61ennm6n.js} +4 -4
- package/dist/chunks/{usage-limits-k680cdq8.js → filesystem-65d25esd.js} +11 -11
- package/dist/chunks/filesystem-6cw60t4e.js +261 -0
- package/dist/chunks/{usage-limits-6esdw8yj.js → filesystem-6esdw8yj.js} +1 -1
- package/dist/chunks/{usage-limits-3ntsf9a0.js → filesystem-6gfsr0bt.js} +16 -16
- package/dist/chunks/{usage-limits-aaca795k.js → filesystem-6jp186ct.js} +20 -20
- package/dist/chunks/{usage-limits-6pjqjmy2.js → filesystem-6pjqjmy2.js} +1 -1
- package/dist/chunks/{usage-limits-xctymaxe.js → filesystem-6rh867e6.js} +41 -41
- package/dist/chunks/{usage-limits-76cb1hcw.js → filesystem-76cb1hcw.js} +1 -1
- package/dist/chunks/{usage-limits-7bmhse3q.js → filesystem-7bmhse3q.js} +1 -1
- package/dist/chunks/{usage-limits-dy2frryf.js → filesystem-7gagvex5.js} +88 -88
- package/dist/chunks/{usage-limits-2zqc5m45.js → filesystem-7hpze2gp.js} +35 -35
- package/dist/chunks/{usage-limits-7w2ypzdf.js → filesystem-7w2ypzdf.js} +1 -1
- package/dist/chunks/{usage-limits-whwnz90f.js → filesystem-7yp67vww.js} +16 -16
- package/dist/chunks/{usage-limits-ydj2t2r9.js → filesystem-82raarjb.js} +154 -154
- package/dist/chunks/{usage-limits-zv0vsyec.js → filesystem-86m0qwc3.js} +11 -11
- package/dist/chunks/{usage-limits-qv7y9773.js → filesystem-87s5319w.js} +4 -4
- package/dist/chunks/{usage-limits-sqz0nt1s.js → filesystem-8a1tt6eq.js} +18 -18
- package/dist/chunks/{usage-limits-yskc27rg.js → filesystem-8m0g8d5b.js} +26 -26
- package/dist/chunks/{usage-limits-gx0r2313.js → filesystem-8shc1k29.js} +6 -6
- package/dist/chunks/{usage-limits-wzb86tnv.js → filesystem-8t7k9j69.js} +16 -16
- package/dist/chunks/{usage-limits-txkqgr37.js → filesystem-8vdykv35.js} +19 -19
- package/dist/chunks/{usage-limits-8wtp7s3z.js → filesystem-8wtp7s3z.js} +1 -1
- package/dist/chunks/{usage-limits-gycv8rtq.js → filesystem-8x51n0mm.js} +19 -19
- package/dist/chunks/{usage-limits-2rwv1cer.js → filesystem-90x1sh4x.js} +54 -54
- package/dist/chunks/{usage-limits-91rj84md.js → filesystem-91rj84md.js} +1 -1
- package/dist/chunks/{usage-limits-hgnysbnx.js → filesystem-934a61m2.js} +61 -61
- package/dist/chunks/{usage-limits-ma15yhyh.js → filesystem-96te9d4b.js} +5 -5
- package/dist/chunks/{usage-limits-998yhzzq.js → filesystem-998yhzzq.js} +3 -3
- package/dist/chunks/{usage-limits-xz2v9wfs.js → filesystem-9ab6dc0a.js} +32 -32
- package/dist/chunks/{usage-limits-9cx9sm2q.js → filesystem-9cx9sm2q.js} +1 -1
- package/dist/chunks/{usage-limits-bbrx00jz.js → filesystem-9d5cfh3a.js} +18 -18
- package/dist/chunks/{usage-limits-km6kdywk.js → filesystem-9g74tn6t.js} +28 -28
- package/dist/chunks/{usage-limits-160yv0cs.js → filesystem-9kg5w032.js} +8 -8
- package/dist/chunks/{usage-limits-5hahrjda.js → filesystem-9w35abq4.js} +13 -13
- package/dist/chunks/{usage-limits-ycbqeg09.js → filesystem-9w5zpkrk.js} +23 -23
- package/dist/chunks/{usage-limits-94a8q2nd.js → filesystem-a54cs83f.js} +12 -12
- package/dist/chunks/{usage-limits-4snmzknn.js → filesystem-aa6rfe83.js} +24 -24
- package/dist/chunks/{usage-limits-ntm28ryz.js → filesystem-abjs6xs3.js} +12 -12
- package/dist/chunks/{usage-limits-m304ba9t.js → filesystem-aekqvw83.js} +3 -3
- package/dist/chunks/{usage-limits-ayjs7tqn.js → filesystem-ayjs7tqn.js} +2 -2
- package/dist/chunks/{usage-limits-7wfd13xk.js → filesystem-azx0qc1w.js} +13 -13
- package/dist/chunks/{usage-limits-b0mv4wxm.js → filesystem-b0mv4wxm.js} +2 -2
- package/dist/chunks/{usage-limits-ztjft4ja.js → filesystem-b6qckq3s.js} +32 -32
- package/dist/chunks/{usage-limits-b6vsg801.js → filesystem-b6vsg801.js} +2 -2
- package/dist/chunks/{usage-limits-d2k9ndpk.js → filesystem-bbzawyb8.js} +10 -10
- package/dist/chunks/{usage-limits-dv889aa0.js → filesystem-bm3x8n5f.js} +19 -19
- package/dist/chunks/{usage-limits-qdpm05xk.js → filesystem-bnjexpda.js} +4 -4
- package/dist/chunks/{usage-limits-xd9cc171.js → filesystem-bstexjd6.js} +5 -5
- package/dist/chunks/{usage-limits-7h2jh6d6.js → filesystem-c5tnkfyv.js} +27 -27
- package/dist/chunks/{usage-limits-ax80y17w.js → filesystem-cgnt16pw.js} +4 -4
- package/dist/chunks/{usage-limits-a4xckjr4.js → filesystem-cwb88cey.js} +13 -13
- package/dist/chunks/{usage-limits-mrsa6jkf.js → filesystem-cwm52xht.js} +17 -17
- package/dist/chunks/{usage-limits-pjwfm23k.js → filesystem-cy5ef8hm.js} +11 -11
- package/dist/chunks/{usage-limits-d4v9tmah.js → filesystem-d4v9tmah.js} +2 -2
- package/dist/chunks/{usage-limits-43tvqsb6.js → filesystem-d71bfcjn.js} +30 -30
- package/dist/chunks/{usage-limits-726yah4h.js → filesystem-dbgk2cxj.js} +9 -9
- package/dist/chunks/{usage-limits-b3mwsdc9.js → filesystem-dhs71wnc.js} +8 -8
- package/dist/chunks/{usage-limits-ypcrvbc5.js → filesystem-dm791vdb.js} +10 -10
- package/dist/chunks/{usage-limits-aqvd6vz0.js → filesystem-ds6cc6fh.js} +26 -26
- package/dist/chunks/{usage-limits-tzhfmb8s.js → filesystem-dx106jag.js} +5 -5
- package/dist/chunks/{usage-limits-e07q2w5p.js → filesystem-e07q2w5p.js} +1 -1
- package/dist/chunks/{usage-limits-atx9ncrc.js → filesystem-e5reh5tz.js} +11 -11
- package/dist/chunks/{usage-limits-e834z07m.js → filesystem-e834z07m.js} +1 -1
- package/dist/chunks/{usage-limits-9pf9j90h.js → filesystem-e889e6n9.js} +14 -14
- package/dist/chunks/{usage-limits-h5qan5zz.js → filesystem-e90h7m11.js} +8 -8
- package/dist/chunks/{usage-limits-d0h5jp63.js → filesystem-efjhr83e.js} +36 -36
- package/dist/chunks/{usage-limits-egmw08v6.js → filesystem-egmw08v6.js} +2 -2
- package/dist/chunks/{usage-limits-g9arxaec.js → filesystem-egnaf4wc.js} +11 -11
- package/dist/chunks/{usage-limits-tpm1qpxt.js → filesystem-eqh43b5v.js} +9 -9
- package/dist/chunks/{usage-limits-qz97qh5p.js → filesystem-f4c57skx.js} +3 -3
- package/dist/chunks/{usage-limits-pq70gwcm.js → filesystem-fakbbexg.js} +15 -15
- package/dist/chunks/{usage-limits-44asjrm9.js → filesystem-fdhm0b4k.js} +3 -3
- package/dist/chunks/{usage-limits-fffv3p7h.js → filesystem-fffv3p7h.js} +1 -1
- package/dist/chunks/{usage-limits-vn79cqmx.js → filesystem-fngyzhnx.js} +19 -19
- package/dist/chunks/{usage-limits-wekwn6qz.js → filesystem-ftjyxsq7.js} +7 -7
- package/dist/chunks/{usage-limits-hp0kf9qk.js → filesystem-fxjf9rj9.js} +35 -35
- package/dist/chunks/{usage-limits-cvxbw3ks.js → filesystem-g0rar7vt.js} +24 -24
- package/dist/chunks/{usage-limits-g5h9c0rr.js → filesystem-g5h9c0rr.js} +2 -2
- package/dist/chunks/{usage-limits-f7bvh908.js → filesystem-gajzcr6m.js} +19 -19
- package/dist/chunks/{usage-limits-6bv7yxz5.js → filesystem-gek54jmm.js} +26 -26
- package/dist/chunks/{usage-limits-ymy0chk8.js → filesystem-gkn4n67r.js} +2 -2
- package/dist/chunks/{usage-limits-ghztajqa.js → filesystem-gs4x0wfm.js} +20 -20
- package/dist/chunks/{usage-limits-a3qfv0hd.js → filesystem-h7hbrg9k.js} +52 -52
- package/dist/chunks/{usage-limits-e2x7gzav.js → filesystem-hdfrs5mg.js} +7 -7
- package/dist/chunks/{usage-limits-j8tswv6e.js → filesystem-hj2cbhc2.js} +14 -14
- package/dist/chunks/{usage-limits-wzrwmevq.js → filesystem-hk4y1qbf.js} +5 -5
- package/dist/chunks/{usage-limits-3rszrfa9.js → filesystem-hndjxhwx.js} +8 -8
- package/dist/chunks/{usage-limits-hdvssxsh.js → filesystem-hx3mz2q2.js} +8 -8
- package/dist/chunks/{usage-limits-9c88vk2a.js → filesystem-j0sqg4d1.js} +15 -15
- package/dist/chunks/{usage-limits-j113cymg.js → filesystem-j113cymg.js} +1 -1
- package/dist/chunks/{usage-limits-st9cgr6w.js → filesystem-j5n4xn75.js} +15 -15
- package/dist/chunks/{usage-limits-n7wnam13.js → filesystem-j77g158z.js} +8 -8
- package/dist/chunks/{usage-limits-3mw19qy8.js → filesystem-jd6wp082.js} +34 -34
- package/dist/chunks/{usage-limits-jefw9j3y.js → filesystem-jefw9j3y.js} +1 -1
- package/dist/chunks/{usage-limits-ggf2j3cc.js → filesystem-jfakxrjq.js} +25 -25
- package/dist/chunks/{usage-limits-0yhksvcd.js → filesystem-jfh72r8h.js} +19 -19
- package/dist/chunks/{usage-limits-aj1nzrgt.js → filesystem-jnbf1chn.js} +11 -11
- package/dist/chunks/{usage-limits-6ha7pnwq.js → filesystem-jnmjcr89.js} +27 -27
- package/dist/chunks/{usage-limits-8m3evvpt.js → filesystem-jpkt0sc6.js} +13 -13
- package/dist/chunks/{usage-limits-8bc2ahr8.js → filesystem-jx89vj1k.js} +3 -3
- package/dist/chunks/{usage-limits-4h4hk51q.js → filesystem-jyenpfw3.js} +4 -4
- package/dist/chunks/{usage-limits-ac4t24sd.js → filesystem-k7hxwx4t.js} +24 -24
- package/dist/chunks/{usage-limits-e3hyq533.js → filesystem-k7takf4z.js} +11 -11
- package/dist/chunks/{usage-limits-k814nvkf.js → filesystem-k814nvkf.js} +1 -1
- package/dist/chunks/{usage-limits-ssfehs1z.js → filesystem-kkqethq7.js} +4 -4
- package/dist/chunks/{usage-limits-tj65tddj.js → filesystem-kncd35yj.js} +23 -23
- package/dist/chunks/{usage-limits-kt3bjfbg.js → filesystem-kt3bjfbg.js} +1 -1
- package/dist/chunks/{usage-limits-7qj4kw2w.js → filesystem-kvgq4cgd.js} +15 -15
- package/dist/chunks/{usage-limits-37qjwjg3.js → filesystem-kvtqra18.js} +35 -35
- package/dist/chunks/{usage-limits-c4hczych.js → filesystem-kw6b49qt.js} +42 -42
- package/dist/chunks/{usage-limits-gqa6c0dc.js → filesystem-kzdpc3xr.js} +17 -17
- package/dist/chunks/{usage-limits-m1714858.js → filesystem-m1714858.js} +1 -1
- package/dist/chunks/{usage-limits-zszhs1ry.js → filesystem-m4zwndh2.js} +3 -3
- package/dist/chunks/{usage-limits-m9w0rfyh.js → filesystem-m9w0rfyh.js} +1 -1
- package/dist/chunks/{usage-limits-maspj1v3.js → filesystem-maspj1v3.js} +1 -1
- package/dist/chunks/{usage-limits-zgt5j0h2.js → filesystem-mj0wev1x.js} +8 -8
- package/dist/chunks/{usage-limits-f3jntyhm.js → filesystem-msrvq25q.js} +35 -35
- package/dist/chunks/{usage-limits-85tnhsr5.js → filesystem-mwp0yv48.js} +1 -1
- package/dist/chunks/{usage-limits-rrme742e.js → filesystem-mxem74k4.js} +13 -13
- package/dist/chunks/{usage-limits-zzjqjb6m.js → filesystem-n11a5kh1.js} +23 -23
- package/dist/chunks/{usage-limits-arwkaxws.js → filesystem-n3hzq8hq.js} +21 -21
- package/dist/chunks/{usage-limits-szcgc7h4.js → filesystem-n6v2b7cw.js} +5 -5
- package/dist/chunks/{usage-limits-nah043kf.js → filesystem-nah043kf.js} +1 -1
- package/dist/chunks/{usage-limits-vg05jr2c.js → filesystem-neftya4w.js} +8 -8
- package/dist/chunks/{usage-limits-x02d0s8b.js → filesystem-ngzdt2ve.js} +5 -5
- package/dist/chunks/{usage-limits-fr1v3ke2.js → filesystem-nsq4yd7p.js} +3 -3
- package/dist/chunks/{usage-limits-rby583qs.js → filesystem-nwvcypp6.js} +11 -11
- package/dist/chunks/{usage-limits-p015t6z3.js → filesystem-p015t6z3.js} +2 -2
- package/dist/chunks/{usage-limits-eterkqt0.js → filesystem-p07d65z0.js} +32 -32
- package/dist/chunks/{usage-limits-06r9fgh1.js → filesystem-pfy2m4ca.js} +5 -5
- package/dist/chunks/{usage-limits-fdhstezy.js → filesystem-pgrw573c.js} +10 -10
- package/dist/chunks/{usage-limits-efwjs4bb.js → filesystem-pk31y8jx.js} +10 -10
- package/dist/chunks/{usage-limits-pknna89w.js → filesystem-pknna89w.js} +1 -1
- package/dist/chunks/{usage-limits-k02002gh.js → filesystem-pp4x3x88.js} +10 -10
- package/dist/chunks/{usage-limits-qn0rjxfc.js → filesystem-q13f8gqt.js} +11 -11
- package/dist/chunks/{usage-limits-akvc2j30.js → filesystem-q1bdnzan.js} +1 -1
- package/dist/chunks/{usage-limits-052mqgew.js → filesystem-q4syar25.js} +9 -9
- package/dist/chunks/{usage-limits-vk32b34p.js → filesystem-q6kf4edm.js} +1 -1
- package/dist/chunks/{usage-limits-1qtqz3f2.js → filesystem-qkpn6d5r.js} +85 -85
- package/dist/chunks/{usage-limits-bnndz809.js → filesystem-qkrpwkqk.js} +8 -8
- package/dist/chunks/{usage-limits-0z6c2se0.js → filesystem-qswdam80.js} +41 -41
- package/dist/chunks/{usage-limits-989aym0q.js → filesystem-qxe3n5xa.js} +6 -6
- package/dist/chunks/{usage-limits-r0yr0wbs.js → filesystem-r0yr0wbs.js} +1 -1
- package/dist/chunks/{usage-limits-r542h3bh.js → filesystem-r542h3bh.js} +1 -1
- package/dist/chunks/{usage-limits-hngxbr5f.js → filesystem-r5y2frqw.js} +6 -6
- package/dist/chunks/{usage-limits-fjz66g9m.js → filesystem-r8f6rk3c.js} +6 -6
- package/dist/chunks/{usage-limits-0hkdpjs7.js → filesystem-r9zbyr4a.js} +12 -12
- package/dist/chunks/{usage-limits-rb9dy4dg.js → filesystem-rb9dy4dg.js} +1 -1
- package/dist/chunks/{usage-limits-6q2t9e19.js → filesystem-rh0vm7a3.js} +9 -9
- package/dist/chunks/{usage-limits-b8qrkhky.js → filesystem-rk1c2d86.js} +23 -23
- package/dist/chunks/{usage-limits-ey1djyv9.js → filesystem-rk5tncjm.js} +10 -10
- package/dist/chunks/{usage-limits-3sph5gmk.js → filesystem-rrbn0j5d.js} +24 -24
- package/dist/chunks/{usage-limits-y4yx52dp.js → filesystem-rrv8kjjp.js} +10 -10
- package/dist/chunks/{usage-limits-rt5dr6hb.js → filesystem-rt5dr6hb.js} +1 -1
- package/dist/chunks/{usage-limits-whf27mzz.js → filesystem-rz958wdz.js} +17 -17
- package/dist/chunks/{usage-limits-sa3fpqfw.js → filesystem-sa3fpqfw.js} +2 -2
- package/dist/chunks/{usage-limits-wn7kwqy9.js → filesystem-sb8x2mjg.js} +13 -13
- package/dist/chunks/{usage-limits-cbc4taa6.js → filesystem-sbanjb5j.js} +11 -11
- package/dist/chunks/{usage-limits-yg4mp0v5.js → filesystem-scbc8y9k.js} +2 -2
- package/dist/chunks/{usage-limits-gcjdgkn2.js → filesystem-smfcvx02.js} +9 -9
- package/dist/chunks/{usage-limits-sqjzf8x2.js → filesystem-sqjzf8x2.js} +1 -1
- package/dist/chunks/{usage-limits-f9nfcqdq.js → filesystem-srha6svp.js} +7 -7
- package/dist/chunks/{usage-limits-9t1hjeb8.js → filesystem-sx82062d.js} +306 -306
- package/dist/chunks/{usage-limits-gk7spenk.js → filesystem-t4zj4gks.js} +18 -18
- package/dist/chunks/{usage-limits-f0tpkmet.js → filesystem-t6gd5zzm.js} +17 -17
- package/dist/chunks/{usage-limits-tczq8hjw.js → filesystem-tczq8hjw.js} +1 -1
- package/dist/chunks/{usage-limits-vx3jgdek.js → filesystem-ts7mkfs9.js} +2 -2
- package/dist/chunks/{usage-limits-zyxp1bdt.js → filesystem-tvw5eq5w.js} +4 -4
- package/dist/chunks/{usage-limits-twv2r8f4.js → filesystem-twv2r8f4.js} +2 -2
- package/dist/chunks/{usage-limits-ex7z9m54.js → filesystem-tz3v2dvp.js} +2 -2
- package/dist/chunks/{usage-limits-v2r1d0zg.js → filesystem-v2r1d0zg.js} +1 -1
- package/dist/chunks/{usage-limits-njkmhayd.js → filesystem-vcpv0cg0.js} +6 -6
- package/dist/chunks/{usage-limits-vd3b3yk9.js → filesystem-vd3b3yk9.js} +1 -1
- package/dist/chunks/{usage-limits-veqvce7d.js → filesystem-veqvce7d.js} +1 -1
- package/dist/chunks/{usage-limits-78p57jmb.js → filesystem-vgqmettk.js} +54 -49
- package/dist/chunks/{usage-limits-qepdakcz.js → filesystem-vh4zhzaj.js} +9 -9
- package/dist/chunks/{usage-limits-qqa1433q.js → filesystem-vmpcefzm.js} +42 -42
- package/dist/chunks/{usage-limits-8h5h53em.js → filesystem-vmw5emv6.js} +25 -25
- package/dist/chunks/{usage-limits-3fgjz1qb.js → filesystem-vvmd7csk.js} +16 -16
- package/dist/chunks/{usage-limits-ewc6z4rh.js → filesystem-vxjvm93v.js} +31 -31
- package/dist/chunks/{usage-limits-w2eysc6j.js → filesystem-w2eysc6j.js} +2 -2
- package/dist/chunks/{usage-limits-w3wsvvr9.js → filesystem-w3wsvvr9.js} +1 -1
- package/dist/chunks/{usage-limits-tyhzfa9z.js → filesystem-w5d18jnt.js} +13 -13
- package/dist/chunks/{usage-limits-gy0tz9ap.js → filesystem-w84f94qk.js} +15 -15
- package/dist/chunks/{usage-limits-g3h8dgtz.js → filesystem-wachhca3.js} +4 -4
- package/dist/chunks/{usage-limits-wakvkjy4.js → filesystem-wakvkjy4.js} +1 -1
- package/dist/chunks/{usage-limits-wd87259q.js → filesystem-wd87259q.js} +1 -1
- package/dist/chunks/{usage-limits-t211gxpv.js → filesystem-wmjzvx4b.js} +4 -4
- package/dist/chunks/{usage-limits-nm3cbc6x.js → filesystem-wt7ydzte.js} +14 -14
- package/dist/chunks/{usage-limits-skwsegzf.js → filesystem-wybcmnnj.js} +21 -21
- package/dist/chunks/{usage-limits-kb2r74xq.js → filesystem-x0vqv7fn.js} +9 -9
- package/dist/chunks/{usage-limits-q0hvv05t.js → filesystem-xkat47kc.js} +13 -13
- package/dist/chunks/{usage-limits-648wsnpr.js → filesystem-xpyh10vg.js} +18 -18
- package/dist/chunks/{usage-limits-1teq0rja.js → filesystem-xxteqpwx.js} +3 -3
- package/dist/chunks/{usage-limits-rx4h7akj.js → filesystem-xy470p1n.js} +16 -16
- package/dist/chunks/{usage-limits-07jy34sd.js → filesystem-y2rgpw35.js} +13 -13
- package/dist/chunks/{usage-limits-7pg880mj.js → filesystem-y5smbybx.js} +23 -23
- package/dist/chunks/{usage-limits-yb20nhc3.js → filesystem-yb20nhc3.js} +1 -1
- package/dist/chunks/{usage-limits-s78dgp47.js → filesystem-yh9xwh37.js} +6 -6
- package/dist/chunks/{usage-limits-4ayw2j9m.js → filesystem-yjvjgdfq.js} +16 -16
- package/dist/chunks/{usage-limits-pz2vpapy.js → filesystem-yzs5y582.js} +6 -6
- package/dist/chunks/{usage-limits-z0bkrqjs.js → filesystem-z0bkrqjs.js} +1 -1
- package/dist/chunks/filesystem-z355x5yr.js +18 -0
- package/dist/chunks/{usage-limits-z38nccrw.js → filesystem-z38nccrw.js} +1 -1
- package/dist/chunks/{usage-limits-ysd28b92.js → filesystem-z3ayhk2f.js} +43 -43
- package/dist/chunks/{usage-limits-ebn47abq.js → filesystem-z4ndfdcq.js} +11 -11
- package/dist/chunks/{usage-limits-ctt8qbk9.js → filesystem-zdt59aw1.js} +3 -3
- package/dist/chunks/{usage-limits-09nb6j7n.js → filesystem-zfk4rxgj.js} +8 -8
- package/dist/chunks/{usage-limits-zqhzzkgw.js → filesystem-zj038rf2.js} +6 -6
- package/dist/chunks/{usage-limits-zkg84ctx.js → filesystem-zkg84ctx.js} +1 -1
- package/dist/chunks/{usage-limits-3agpfbf6.js → filesystem-zqmnxa57.js} +17 -17
- package/dist/chunks/{usage-limits-emsb7nrx.js → filesystem-zr78jqjw.js} +17 -17
- package/dist/chunks/{usage-limits-1nr9fzax.js → filesystem-zz0567cx.js} +9 -9
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +87 -87
- package/dist/config/discovery.js +87 -87
- package/dist/config/integration.js +1 -1
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +104 -104
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +214 -214
- 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 +125 -125
- package/dist/config/plugin/policy.js +120 -120
- package/dist/config/plugin/provider.js +119 -119
- package/dist/config/plugin/reference.js +120 -120
- package/dist/config/plugin/shell.js +118 -118
- 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 +115 -115
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +117 -117
- 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 +85 -85
- 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 -376
- 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 +98 -98
- 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 +223 -223
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +102 -102
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +9 -9
- package/dist/filesystem.js +109 -109
- package/dist/form.js +82 -82
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +92 -92
- package/dist/generate.js +112 -112
- 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 -367
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +92 -92
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +80 -80
- 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 -364
- package/dist/location.js +92 -92
- package/dist/managed-policy.js +9 -9
- package/dist/mcp/client.js +97 -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 +104 -104
- package/dist/model-retry.js +1 -1
- package/dist/model.js +107 -107
- package/dist/models-dev.js +104 -104
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +84 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +112 -112
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +92 -92
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +79 -79
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +105 -105
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +220 -220
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +337 -337
- package/dist/plugin/mcp-codemode-defaults.js +1 -1
- package/dist/plugin/models-dev.js +101 -101
- package/dist/plugin/module.js +120 -120
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +105 -105
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +95 -95
- package/dist/plugin/provider/azure.js +116 -116
- 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 +127 -127
- 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 +103 -103
- package/dist/plugin/provider/opencode.js +124 -124
- 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 -175
- package/dist/plugin/sdk.js +80 -80
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +352 -352
- package/dist/plugin/tool-input-repair.js +2 -2
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +91 -91
- package/dist/plugin/vcs/hg.js +89 -89
- package/dist/plugin/verbosity.js +98 -98
- package/dist/plugin/warming.js +116 -116
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +231 -231
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +91 -91
- package/dist/provider.js +102 -102
- 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 +102 -102
- 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 +141 -141
- 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 +231 -231
- 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 +129 -129
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +165 -165
- 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 +5 -5
- package/dist/session/title.js +165 -165
- package/dist/session/to-session-error.js +117 -117
- package/dist/session/transfer.js +217 -217
- package/dist/session/usage.js +1 -1
- package/dist/session.js +218 -218
- 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 +7 -7
- package/dist/shell.js +134 -134
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +110 -110
- package/dist/skill.js +113 -113
- 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 +142 -142
- package/dist/tool/plugin/edit.js +125 -125
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +129 -129
- 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 +217 -217
- package/dist/tool/plugin/skill.js +114 -114
- package/dist/tool/plugin/subagent.js +221 -221
- package/dist/tool/plugin/todo.js +138 -138
- package/dist/tool/plugin/webfetch.js +114 -114
- package/dist/tool/plugin/websearch.js +117 -117
- package/dist/tool/plugin/write.js +117 -117
- 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 +16 -16
- package/dist/types/mcp/client.d.ts +2 -0
- package/dist/usage-limits.js +93 -93
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +97 -97
- package/dist/v1/config/permission.js +3 -3
- 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 +96 -96
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +94 -94
- package/dist/voice.js +92 -92
- package/dist/websearch.js +86 -86
- package/dist/wellknown/plugin.js +80 -80
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- 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 +94 -94
- package/dist/worktree.js +103 -103
- package/package.json +8 -8
- package/dist/chunks/usage-limits-37x35jkp.js +0 -261
- package/dist/chunks/usage-limits-frx5y0yf.js +0 -26
- package/dist/chunks/usage-limits-z7bdqmx5.js +0 -18
- /package/dist/chunks/{usage-limits-0qkdqm5v.js → filesystem-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{usage-limits-0zkw76rk.js → filesystem-0zkw76rk.js} +0 -0
- /package/dist/chunks/{usage-limits-17cy0kzp.js → filesystem-17cy0kzp.js} +0 -0
- /package/dist/chunks/{usage-limits-1cnp2v09.js → filesystem-1cnp2v09.js} +0 -0
- /package/dist/chunks/{usage-limits-24dcb14g.js → filesystem-24dcb14g.js} +0 -0
- /package/dist/chunks/{usage-limits-2710q6r3.js → filesystem-2710q6r3.js} +0 -0
- /package/dist/chunks/{usage-limits-2bv980vf.js → filesystem-2bv980vf.js} +0 -0
- /package/dist/chunks/{usage-limits-2c3vjs8z.js → filesystem-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{usage-limits-359p4xyc.js → filesystem-359p4xyc.js} +0 -0
- /package/dist/chunks/{usage-limits-3asan66x.js → filesystem-3asan66x.js} +0 -0
- /package/dist/chunks/{usage-limits-3v8g72cx.js → filesystem-3v8g72cx.js} +0 -0
- /package/dist/chunks/{usage-limits-3wcehsnq.js → filesystem-3wcehsnq.js} +0 -0
- /package/dist/chunks/{usage-limits-43n2bw4t.js → filesystem-43n2bw4t.js} +0 -0
- /package/dist/chunks/{usage-limits-4knz6hnm.js → filesystem-4knz6hnm.js} +0 -0
- /package/dist/chunks/{usage-limits-4vcrnpx2.js → filesystem-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{usage-limits-4y7fprxs.js → filesystem-4y7fprxs.js} +0 -0
- /package/dist/chunks/{usage-limits-53557ph1.js → filesystem-53557ph1.js} +0 -0
- /package/dist/chunks/{usage-limits-550bvhaj.js → filesystem-550bvhaj.js} +0 -0
- /package/dist/chunks/{usage-limits-5fjb7ams.js → filesystem-5fjb7ams.js} +0 -0
- /package/dist/chunks/{usage-limits-5qd3pb7m.js → filesystem-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{usage-limits-6prwharc.js → filesystem-6prwharc.js} +0 -0
- /package/dist/chunks/{usage-limits-6q2bdcd1.js → filesystem-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{usage-limits-7akdwqpd.js → filesystem-7akdwqpd.js} +0 -0
- /package/dist/chunks/{usage-limits-7m9af43g.js → filesystem-7m9af43g.js} +0 -0
- /package/dist/chunks/{usage-limits-822emrt2.js → filesystem-822emrt2.js} +0 -0
- /package/dist/chunks/{usage-limits-84wd9syh.js → filesystem-84wd9syh.js} +0 -0
- /package/dist/chunks/{usage-limits-88xbtdfr.js → filesystem-88xbtdfr.js} +0 -0
- /package/dist/chunks/{usage-limits-8n3pysct.js → filesystem-8n3pysct.js} +0 -0
- /package/dist/chunks/{usage-limits-8wj87zfr.js → filesystem-8wj87zfr.js} +0 -0
- /package/dist/chunks/{usage-limits-9a4afbnw.js → filesystem-9a4afbnw.js} +0 -0
- /package/dist/chunks/{usage-limits-9rqn6x4v.js → filesystem-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{usage-limits-a058387c.js → filesystem-a058387c.js} +0 -0
- /package/dist/chunks/{usage-limits-a6k6eb26.js → filesystem-a6k6eb26.js} +0 -0
- /package/dist/chunks/{usage-limits-af5trqkr.js → filesystem-af5trqkr.js} +0 -0
- /package/dist/chunks/{usage-limits-afrmfg78.js → filesystem-afrmfg78.js} +0 -0
- /package/dist/chunks/{usage-limits-aqzs7mqg.js → filesystem-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{usage-limits-atq7p7m5.js → filesystem-atq7p7m5.js} +0 -0
- /package/dist/chunks/{usage-limits-bkyjaxrp.js → filesystem-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{usage-limits-bmr6ed5q.js → filesystem-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{usage-limits-cf4snx6d.js → filesystem-cf4snx6d.js} +0 -0
- /package/dist/chunks/{usage-limits-cqv5kn06.js → filesystem-cqv5kn06.js} +0 -0
- /package/dist/chunks/{usage-limits-cvy3z8tj.js → filesystem-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{usage-limits-d9fn303g.js → filesystem-d9fn303g.js} +0 -0
- /package/dist/chunks/{usage-limits-d9jj8t3e.js → filesystem-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{usage-limits-dajrwvna.js → filesystem-dajrwvna.js} +0 -0
- /package/dist/chunks/{usage-limits-dap0rakb.js → filesystem-dap0rakb.js} +0 -0
- /package/dist/chunks/{usage-limits-df08tz66.js → filesystem-df08tz66.js} +0 -0
- /package/dist/chunks/{usage-limits-dy18nga0.js → filesystem-dy18nga0.js} +0 -0
- /package/dist/chunks/{usage-limits-e5kj55wp.js → filesystem-e5kj55wp.js} +0 -0
- /package/dist/chunks/{usage-limits-e73j6tqm.js → filesystem-e73j6tqm.js} +0 -0
- /package/dist/chunks/{usage-limits-ec1grn59.js → filesystem-ec1grn59.js} +0 -0
- /package/dist/chunks/{usage-limits-eh3zwz77.js → filesystem-eh3zwz77.js} +0 -0
- /package/dist/chunks/{usage-limits-emrn6kk6.js → filesystem-emrn6kk6.js} +0 -0
- /package/dist/chunks/{usage-limits-f0mxakyp.js → filesystem-f0mxakyp.js} +0 -0
- /package/dist/chunks/{usage-limits-f6n9ztr4.js → filesystem-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{usage-limits-faypxj3z.js → filesystem-faypxj3z.js} +0 -0
- /package/dist/chunks/{usage-limits-fd410y7t.js → filesystem-fd410y7t.js} +0 -0
- /package/dist/chunks/{usage-limits-g4wezp1m.js → filesystem-g4wezp1m.js} +0 -0
- /package/dist/chunks/{usage-limits-g86h250q.js → filesystem-g86h250q.js} +0 -0
- /package/dist/chunks/{usage-limits-gebd4c9n.js → filesystem-gebd4c9n.js} +0 -0
- /package/dist/chunks/{usage-limits-gftt206x.js → filesystem-gftt206x.js} +0 -0
- /package/dist/chunks/{usage-limits-hcxmzztb.js → filesystem-hcxmzztb.js} +0 -0
- /package/dist/chunks/{usage-limits-hk9envan.js → filesystem-hk9envan.js} +0 -0
- /package/dist/chunks/{usage-limits-j2ntwpah.js → filesystem-j2ntwpah.js} +0 -0
- /package/dist/chunks/{usage-limits-j5zkgpj8.js → filesystem-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{usage-limits-jjkms2e6.js → filesystem-jjkms2e6.js} +0 -0
- /package/dist/chunks/{usage-limits-jr7sbwjy.js → filesystem-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{usage-limits-jwfs4k6c.js → filesystem-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{usage-limits-jwr30sdr.js → filesystem-jwr30sdr.js} +0 -0
- /package/dist/chunks/{usage-limits-jze0r7bz.js → filesystem-jze0r7bz.js} +0 -0
- /package/dist/chunks/{usage-limits-jzg6c2d5.js → filesystem-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{usage-limits-m18g726c.js → filesystem-m18g726c.js} +0 -0
- /package/dist/chunks/{usage-limits-mp448xyj.js → filesystem-mp448xyj.js} +0 -0
- /package/dist/chunks/{usage-limits-msx8hqn2.js → filesystem-msx8hqn2.js} +0 -0
- /package/dist/chunks/{usage-limits-n05xt0ee.js → filesystem-n05xt0ee.js} +0 -0
- /package/dist/chunks/{usage-limits-n3j8tn72.js → filesystem-n3j8tn72.js} +0 -0
- /package/dist/chunks/{usage-limits-njntx4h6.js → filesystem-njntx4h6.js} +0 -0
- /package/dist/chunks/{usage-limits-pkyv6v7h.js → filesystem-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{usage-limits-q3sfg36h.js → filesystem-q3sfg36h.js} +0 -0
- /package/dist/chunks/{usage-limits-q74kybfr.js → filesystem-q74kybfr.js} +0 -0
- /package/dist/chunks/{usage-limits-qaymkmh1.js → filesystem-qaymkmh1.js} +0 -0
- /package/dist/chunks/{usage-limits-qb87gjwd.js → filesystem-qb87gjwd.js} +0 -0
- /package/dist/chunks/{usage-limits-qfa1cgps.js → filesystem-qfa1cgps.js} +0 -0
- /package/dist/chunks/{usage-limits-qg3g05ea.js → filesystem-qg3g05ea.js} +0 -0
- /package/dist/chunks/{usage-limits-qrg20bc0.js → filesystem-qrg20bc0.js} +0 -0
- /package/dist/chunks/{usage-limits-rcb2kzg1.js → filesystem-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{usage-limits-sdp7kfr6.js → filesystem-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{usage-limits-ssg3fenm.js → filesystem-ssg3fenm.js} +0 -0
- /package/dist/chunks/{usage-limits-ve7vex1e.js → filesystem-ve7vex1e.js} +0 -0
- /package/dist/chunks/{usage-limits-w803qqfp.js → filesystem-w803qqfp.js} +0 -0
- /package/dist/chunks/{usage-limits-wc3fc9cn.js → filesystem-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{usage-limits-wer8tq1h.js → filesystem-wer8tq1h.js} +0 -0
- /package/dist/chunks/{usage-limits-wjj7prxr.js → filesystem-wjj7prxr.js} +0 -0
- /package/dist/chunks/{usage-limits-wtztk69x.js → filesystem-wtztk69x.js} +0 -0
- /package/dist/chunks/{usage-limits-x0ckcb58.js → filesystem-x0ckcb58.js} +0 -0
- /package/dist/chunks/{usage-limits-x61499pn.js → filesystem-x61499pn.js} +0 -0
- /package/dist/chunks/{usage-limits-y44na4kk.js → filesystem-y44na4kk.js} +0 -0
- /package/dist/chunks/{usage-limits-y8f7s663.js → filesystem-y8f7s663.js} +0 -0
- /package/dist/chunks/{usage-limits-ygaqb7jw.js → filesystem-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{usage-limits-ym463w8f.js → filesystem-ym463w8f.js} +0 -0
- /package/dist/chunks/{usage-limits-z5v4ffb3.js → filesystem-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{usage-limits-z9919s4g.js → filesystem-z9919s4g.js} +0 -0
|
@@ -1,83 +1,83 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
3
|
node91
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./filesystem-f4c57skx.js";
|
|
5
5
|
import {
|
|
6
6
|
Service86,
|
|
7
7
|
node90
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./filesystem-4fhqgc15.js";
|
|
9
9
|
import {
|
|
10
10
|
create3
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./filesystem-vd3b3yk9.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
13
|
+
ID10,
|
|
14
|
+
Service76,
|
|
15
|
+
node80
|
|
16
|
+
} from "./filesystem-zr78jqjw.js";
|
|
17
17
|
import {
|
|
18
18
|
llmClient2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./filesystem-p015t6z3.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
21
|
+
Service78,
|
|
22
|
+
node82
|
|
23
|
+
} from "./filesystem-5pjpz24y.js";
|
|
24
24
|
import {
|
|
25
25
|
estimate2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./filesystem-8wtp7s3z.js";
|
|
27
27
|
import {
|
|
28
28
|
SessionEvent2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./filesystem-ec1grn59.js";
|
|
30
30
|
import {
|
|
31
31
|
kept2,
|
|
32
32
|
messageToText2,
|
|
33
33
|
serializeToolContent2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./filesystem-v2r1d0zg.js";
|
|
35
35
|
import {
|
|
36
36
|
isNativeCompaction2,
|
|
37
37
|
load5
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./filesystem-srha6svp.js";
|
|
39
39
|
import {
|
|
40
40
|
toLLMMessages2
|
|
41
|
-
} from "./
|
|
41
|
+
} from "./filesystem-tz3v2dvp.js";
|
|
42
42
|
import {
|
|
43
43
|
outputLimit2,
|
|
44
44
|
baseTranscript2,
|
|
45
45
|
unsupportedParts2,
|
|
46
46
|
boundImages2,
|
|
47
|
-
|
|
48
|
-
node31
|
|
49
|
-
} from "./usage-limits-xz2v9wfs.js";
|
|
50
|
-
import {
|
|
51
|
-
Service40,
|
|
47
|
+
Service38,
|
|
52
48
|
node42
|
|
53
|
-
} from "./
|
|
49
|
+
} from "./filesystem-9ab6dc0a.js";
|
|
50
|
+
import {
|
|
51
|
+
Service61,
|
|
52
|
+
node65
|
|
53
|
+
} from "./filesystem-0s7h5zzx.js";
|
|
54
54
|
import {
|
|
55
55
|
isRetryable2,
|
|
56
56
|
policy2
|
|
57
|
-
} from "./
|
|
57
|
+
} from "./filesystem-2fawgvav.js";
|
|
58
58
|
import {
|
|
59
59
|
toSessionError2,
|
|
60
60
|
contentFilterError2
|
|
61
|
-
} from "./
|
|
61
|
+
} from "./filesystem-dx106jag.js";
|
|
62
62
|
import {
|
|
63
63
|
calculateCost2,
|
|
64
64
|
record2,
|
|
65
65
|
add2
|
|
66
|
-
} from "./
|
|
66
|
+
} from "./filesystem-r542h3bh.js";
|
|
67
67
|
import {
|
|
68
68
|
__export
|
|
69
|
-
} from "./
|
|
69
|
+
} from "./filesystem-9rqn6x4v.js";
|
|
70
70
|
|
|
71
71
|
// src/session/compaction.ts
|
|
72
72
|
var exports_compaction2 = {};
|
|
73
73
|
__export(exports_compaction2, {
|
|
74
|
-
Service: () =>
|
|
74
|
+
Service: () => Service8,
|
|
75
75
|
SessionCompaction: () => exports_compaction2,
|
|
76
76
|
buildPrompt: () => buildPrompt2,
|
|
77
77
|
estimateContext: () => estimateContext2,
|
|
78
78
|
estimatePrompt: () => estimatePrompt2,
|
|
79
|
-
layer: () =>
|
|
80
|
-
node: () =>
|
|
79
|
+
layer: () => layer6,
|
|
80
|
+
node: () => node10,
|
|
81
81
|
recentUserMessages: () => recentUserMessages2
|
|
82
82
|
});
|
|
83
83
|
import {
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
} from "@opencode/ai/effect";
|
|
94
94
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
95
95
|
import { Context, Effect, Exit, Fiber, Layer, Result, Scope, Stream } from "effect";
|
|
96
|
-
class
|
|
96
|
+
class Service8 extends Context.Service()("@opencode/SessionCompaction") {
|
|
97
97
|
}
|
|
98
98
|
var NOTHING_TO_COMPACT = { error: { type: "compaction.unavailable", message: "Nothing to compact yet" } };
|
|
99
99
|
var SHRINK_STEPS = [0.85, 0.7, 0.5, 0.35];
|
|
@@ -184,14 +184,14 @@ var buildPrompt2 = (update, legacy = false) => {
|
|
|
184
184
|
};
|
|
185
185
|
var NUDGE = "The previous response did not fill in the required summary template. Do not call tools. Return the summary as text using the exact section headings from the template.";
|
|
186
186
|
var LEGACY_HEADING = "## Additional Context";
|
|
187
|
-
var
|
|
188
|
-
const agents = yield*
|
|
187
|
+
var layer6 = Layer.effect(Service8, Effect.gen(function* () {
|
|
188
|
+
const agents = yield* Service76;
|
|
189
189
|
const bus = yield* Service86;
|
|
190
190
|
const llm = yield* LLMClient.Service;
|
|
191
|
-
const catalog = yield*
|
|
192
|
-
const models = yield*
|
|
191
|
+
const catalog = yield* Service78;
|
|
192
|
+
const models = yield* Service61;
|
|
193
193
|
const db = (yield* Service87).db;
|
|
194
|
-
const requests = yield*
|
|
194
|
+
const requests = yield* Service38;
|
|
195
195
|
const scope = yield* Scope.Scope;
|
|
196
196
|
const precomputed = new Map;
|
|
197
197
|
const state = create3({
|
|
@@ -204,7 +204,7 @@ var layer7 = Layer.effect(Service10, Effect.gen(function* () {
|
|
|
204
204
|
})
|
|
205
205
|
});
|
|
206
206
|
const selectModel = Effect.fnUntraced(function* (context, buffer, native) {
|
|
207
|
-
const agent = native ? undefined : yield* agents.get(
|
|
207
|
+
const agent = native ? undefined : yield* agents.get(ID10.make("compaction"));
|
|
208
208
|
const model = (agent?.model && (yield* models.resolve({ ...context.session, model: agent.model }, catalog.available).pipe(Effect.orElseSucceed(() => {
|
|
209
209
|
return;
|
|
210
210
|
})))) ?? context.model;
|
|
@@ -574,17 +574,17 @@ var layer7 = Layer.effect(Service10, Effect.gen(function* () {
|
|
|
574
574
|
}, { metadata: outcome.metadata });
|
|
575
575
|
return { status: "completed" };
|
|
576
576
|
});
|
|
577
|
-
return
|
|
577
|
+
return Service8.of({
|
|
578
578
|
transform: state.transform,
|
|
579
579
|
reload: state.reload,
|
|
580
580
|
compact: (trigger) => compact(trigger).pipe(Effect.onInterrupt(() => trigger.reason === "manual" ? Effect.void : publish(trigger, { error: { type: "compaction.interrupted", message: "Compaction was interrupted" } })), Effect.ensuring(Effect.sync(() => spent.delete(trigger.context.session.id)))),
|
|
581
581
|
precompute
|
|
582
582
|
});
|
|
583
583
|
}));
|
|
584
|
-
var
|
|
585
|
-
service:
|
|
586
|
-
layer:
|
|
587
|
-
deps: [
|
|
584
|
+
var node10 = makeLocationNode({
|
|
585
|
+
service: Service8,
|
|
586
|
+
layer: layer6,
|
|
587
|
+
deps: [node80, node90, node91, llmClient2, node82, node42, node65]
|
|
588
588
|
});
|
|
589
589
|
var heldIndex = (held, context) => {
|
|
590
590
|
if (held.firstID !== context.messages[0]?.id || held.initial !== context.initial)
|
|
@@ -771,4 +771,4 @@ var estimateMedia = (mime) => {
|
|
|
771
771
|
return 0;
|
|
772
772
|
};
|
|
773
773
|
|
|
774
|
-
export {
|
|
774
|
+
export { Service8, buildPrompt2, layer6, node10, recentUserMessages2, estimateContext2, estimatePrompt2, exports_compaction2 };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
server2,
|
|
3
3
|
headers2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./filesystem-kt3bjfbg.js";
|
|
5
5
|
import {
|
|
6
6
|
ID14,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service80,
|
|
8
|
+
node84
|
|
9
|
+
} from "./filesystem-y5smbybx.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./filesystem-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: () => Info3,
|
|
18
|
+
Service: () => Service13,
|
|
19
|
+
UnavailableError: () => UnavailableError2,
|
|
20
20
|
UsageLimits: () => exports_usage_limits,
|
|
21
|
-
layer: () =>
|
|
22
|
-
node: () =>
|
|
21
|
+
layer: () => layer9,
|
|
22
|
+
node: () => node15
|
|
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 Info3 = UsageLimits.Info;
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class UnavailableError2 extends Schema.TaggedError()("UsageLimits.UnavailableError", {
|
|
35
35
|
message: Schema.String
|
|
36
36
|
}) {
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class Service13 extends Context.Service()("@opencode/UsageLimits") {
|
|
40
40
|
}
|
|
41
|
-
var
|
|
42
|
-
const integrations = yield*
|
|
41
|
+
var layer9 = Layer.effect(Service13, Effect.gen(function* () {
|
|
42
|
+
const integrations = yield* Service80;
|
|
43
43
|
const http = yield* HttpClient.HttpClient;
|
|
44
44
|
const get = Effect.fn("UsageLimits.get")(function* () {
|
|
45
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 UnavailableError2({ 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 layer25 = Layer.effect(Service65, 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 UnavailableError2({ message: "OpenCode Console usage limits timed out" }))
|
|
58
58
|
}));
|
|
59
59
|
return {
|
|
60
60
|
workspace: {
|
|
@@ -66,12 +66,12 @@ var layer25 = Layer.effect(Service65, Effect.gen(function* () {
|
|
|
66
66
|
budgets
|
|
67
67
|
};
|
|
68
68
|
});
|
|
69
|
-
return
|
|
69
|
+
return Service13.of({ get });
|
|
70
70
|
}));
|
|
71
|
-
var
|
|
72
|
-
service:
|
|
73
|
-
layer:
|
|
74
|
-
deps: [
|
|
71
|
+
var node15 = makeLocationNode({
|
|
72
|
+
service: Service13,
|
|
73
|
+
layer: layer9,
|
|
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 UnavailableError2({ 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 UnavailableError2({ 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 { Info3, UnavailableError2, Service13, layer9, node15, exports_usage_limits };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service50
|
|
3
|
+
} from "./filesystem-vh4zhzaj.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service63
|
|
6
|
+
} from "./filesystem-32rqdfc7.js";
|
|
7
7
|
import {
|
|
8
8
|
detect2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./filesystem-2z1j29yd.js";
|
|
10
10
|
import {
|
|
11
11
|
awaitActivation2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./filesystem-z355x5yr.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service77
|
|
15
|
+
} from "./filesystem-j77g158z.js";
|
|
16
16
|
import {
|
|
17
17
|
AttachmentError2,
|
|
18
18
|
SkillNotFoundError2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./filesystem-8shc1k29.js";
|
|
20
20
|
import {
|
|
21
21
|
prepare3,
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
Service72
|
|
23
|
+
} from "./filesystem-8x51n0mm.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./filesystem-9rqn6x4v.js";
|
|
27
27
|
|
|
28
28
|
// src/session/prompt.ts
|
|
29
29
|
var exports_prompt = {};
|
|
@@ -39,10 +39,10 @@ import path from "path";
|
|
|
39
39
|
import { fileURLToPath } from "url";
|
|
40
40
|
var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
|
-
const instances = yield*
|
|
42
|
+
const instances = yield* Service63;
|
|
43
43
|
return yield* Effect.gen(function* () {
|
|
44
44
|
yield* awaitActivation2;
|
|
45
|
-
const hooks = yield*
|
|
45
|
+
const hooks = yield* Service77;
|
|
46
46
|
const event = yield* hooks.trigger("session", "prompt", {
|
|
47
47
|
sessionID: request.session.id,
|
|
48
48
|
messageID: request.messageID,
|
|
@@ -61,7 +61,7 @@ var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
|
61
61
|
const selected = yield* Effect.gen(function* () {
|
|
62
62
|
if (!requested?.length)
|
|
63
63
|
return;
|
|
64
|
-
const skillService = yield*
|
|
64
|
+
const skillService = yield* Service72;
|
|
65
65
|
const prepared = new Map;
|
|
66
66
|
return yield* Effect.forEach(requested, (attachment) => Effect.gen(function* () {
|
|
67
67
|
const name = prepared.get(attachment.id);
|
|
@@ -124,7 +124,7 @@ var materializeAttachment = Effect.fn("SessionPrompt.materializeAttachment")(fun
|
|
|
124
124
|
var normalizeImageAttachment = Effect.fn("SessionPrompt.normalizeImageAttachment")(function* (input, data, mime) {
|
|
125
125
|
if (!mime.startsWith("image/"))
|
|
126
126
|
return { data: Base64.make(data), mime };
|
|
127
|
-
const image = yield*
|
|
127
|
+
const image = yield* Service50;
|
|
128
128
|
const label = attachmentLabel(input);
|
|
129
129
|
const content = { uri: label, content: data, encoding: "base64", mime };
|
|
130
130
|
const normalized = yield* image.normalize(label, content).pipe(Effect.catchTag("Image.ResizerUnavailableError", () => Effect.succeed(content)), Effect.mapError((error) => new AttachmentError2({ uri: label, message: error.message })));
|
|
@@ -1,64 +1,64 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./filesystem-4fhqgc15.js";
|
|
5
5
|
import {
|
|
6
6
|
lazy2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./filesystem-88xbtdfr.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Service83,
|
|
10
|
+
node87
|
|
11
|
+
} from "./filesystem-0r6ymdag.js";
|
|
12
12
|
import {
|
|
13
13
|
Service51,
|
|
14
14
|
login2,
|
|
15
15
|
node54
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./filesystem-rrv8kjjp.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./filesystem-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/pty.ts
|
|
22
22
|
var exports_pty = {};
|
|
23
23
|
__export(exports_pty, {
|
|
24
|
-
CreateInput: () =>
|
|
25
|
-
Event: () =>
|
|
24
|
+
CreateInput: () => CreateInput2,
|
|
25
|
+
Event: () => Event3,
|
|
26
26
|
ExitedError: () => ExitedError2,
|
|
27
|
-
ID: () =>
|
|
28
|
-
Info: () =>
|
|
29
|
-
NotFoundError: () =>
|
|
27
|
+
ID: () => ID2,
|
|
28
|
+
Info: () => Info4,
|
|
29
|
+
NotFoundError: () => NotFoundError2,
|
|
30
30
|
Pty: () => exports_pty,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service21,
|
|
32
32
|
UpdateInput: () => UpdateInput2,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node23
|
|
34
34
|
});
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
36
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
37
37
|
import { Pty } from "@opencode/schema/pty";
|
|
38
|
-
import { Event as
|
|
38
|
+
import { Event as Event3 } from "@opencode/schema/pty";
|
|
39
39
|
var BUFFER_LIMIT = 1024 * 1024 * 2;
|
|
40
40
|
var EXITED_LIMIT = 25;
|
|
41
41
|
var pty = lazy2(() => import("#pty"));
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var
|
|
42
|
+
var ID2 = Pty.ID;
|
|
43
|
+
var Info4 = Pty.Info;
|
|
44
|
+
var CreateInput2 = Pty.CreateInput;
|
|
45
45
|
var UpdateInput2 = Pty.UpdateInput;
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
ptyID:
|
|
47
|
+
class NotFoundError2 extends Schema.TaggedError()("Pty.NotFoundError", {
|
|
48
|
+
ptyID: ID2
|
|
49
49
|
}) {
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
class ExitedError2 extends Schema.TaggedError()("Pty.ExitedError", {
|
|
53
|
-
ptyID:
|
|
53
|
+
ptyID: ID2
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
class
|
|
57
|
+
class Service21 extends Context.Service()("@opencode/Pty") {
|
|
58
58
|
}
|
|
59
|
-
var layer = Layer.effect(
|
|
59
|
+
var layer = Layer.effect(Service21, Effect.gen(function* () {
|
|
60
60
|
const bus = yield* Service86;
|
|
61
|
-
const location = yield*
|
|
61
|
+
const location = yield* Service83;
|
|
62
62
|
const shell = yield* Service51;
|
|
63
63
|
const context = yield* Effect.context();
|
|
64
64
|
const runFork = Effect.runForkWith(context);
|
|
@@ -96,7 +96,7 @@ var layer = Layer.effect(Service47, Effect.gen(function* () {
|
|
|
96
96
|
const requireSession = Effect.fn("Pty.requireSession")(function* (id) {
|
|
97
97
|
const session = sessions.get(id);
|
|
98
98
|
if (!session)
|
|
99
|
-
return yield* new
|
|
99
|
+
return yield* new NotFoundError2({ ptyID: id });
|
|
100
100
|
return session;
|
|
101
101
|
});
|
|
102
102
|
const removeSession = Effect.fnUntraced(function* (id) {
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service47, Effect.gen(function* () {
|
|
|
122
122
|
return (yield* requireSession(id)).info;
|
|
123
123
|
});
|
|
124
124
|
const create = Effect.fn("Pty.create")(function* (input) {
|
|
125
|
-
const id =
|
|
125
|
+
const id = ID2.ascending();
|
|
126
126
|
const command = input.command || (yield* shell.resolve({ priority: "config" }));
|
|
127
127
|
const args = login2(command) ? [...input.args ?? [], "-l"] : [...input.args ?? []];
|
|
128
128
|
const cwd = input.cwd || location.directory;
|
|
@@ -267,12 +267,12 @@ var layer = Layer.effect(Service47, Effect.gen(function* () {
|
|
|
267
267
|
}
|
|
268
268
|
};
|
|
269
269
|
});
|
|
270
|
-
return
|
|
270
|
+
return Service21.of({ list, get, create, update, remove, write, attach });
|
|
271
271
|
}));
|
|
272
|
-
var
|
|
273
|
-
service:
|
|
272
|
+
var node23 = makeLocationNode({
|
|
273
|
+
service: Service21,
|
|
274
274
|
layer,
|
|
275
|
-
deps: [node90,
|
|
275
|
+
deps: [node90, node87, node54]
|
|
276
276
|
});
|
|
277
277
|
|
|
278
|
-
export {
|
|
278
|
+
export { ID2, Info4, CreateInput2, UpdateInput2, NotFoundError2, ExitedError2, Service21, node23, exports_pty, Event3 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
collectBoundedResponseBody2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./filesystem-3v8g72cx.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./filesystem-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/mcp.ts
|
|
9
9
|
var exports_mcp2 = {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getTableColumnsRuntime2,
|
|
3
3
|
orderSelectedFields2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./filesystem-emrn6kk6.js";
|
|
5
5
|
|
|
6
6
|
// src/database/drizzle/sqlite-core/effect/delete.ts
|
|
7
7
|
import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./filesystem-nwvcypp6.js";
|
|
4
4
|
import {
|
|
5
5
|
Service86
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./filesystem-4fhqgc15.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Event18,
|
|
10
|
+
Service81
|
|
11
|
+
} from "./filesystem-g0rar7vt.js";
|
|
12
12
|
import {
|
|
13
13
|
ID14,
|
|
14
14
|
MethodID2,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service80
|
|
16
|
+
} from "./filesystem-y5smbybx.js";
|
|
17
17
|
import {
|
|
18
18
|
success2,
|
|
19
19
|
error2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./filesystem-yb20nhc3.js";
|
|
21
21
|
import {
|
|
22
22
|
ID13
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./filesystem-ds6cc6fh.js";
|
|
24
24
|
import {
|
|
25
25
|
configuredSettings2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./filesystem-yzs5y582.js";
|
|
27
27
|
|
|
28
28
|
// src/plugin/provider/snowflake-cortex.ts
|
|
29
29
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -53,8 +53,8 @@ var SnowflakeCortexPlugin2 = define({
|
|
|
53
53
|
id: "opencode.provider.snowflake.cortex",
|
|
54
54
|
effect: Effect.fn(function* (ctx) {
|
|
55
55
|
const http = yield* HttpClient.HttpClient;
|
|
56
|
-
const credentials = yield*
|
|
57
|
-
const integrations = yield*
|
|
56
|
+
const credentials = yield* Service81;
|
|
57
|
+
const integrations = yield* Service80;
|
|
58
58
|
const bus = yield* Service86;
|
|
59
59
|
const configured = yield* configuredSettings2(providerID);
|
|
60
60
|
const account = { value: "" };
|
|
@@ -186,7 +186,7 @@ var SnowflakeCortexPlugin2 = define({
|
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
});
|
|
189
|
-
yield* bus.subscribe(
|
|
189
|
+
yield* bus.subscribe(Event18.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(() => load.pipe(Effect.andThen(ctx.provider.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
190
190
|
yield* ctx.session.hook("http.request", (event) => Effect.sync(() => {
|
|
191
191
|
const token = envToken();
|
|
192
192
|
if (token)
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./filesystem-4fhqgc15.js";
|
|
5
5
|
import {
|
|
6
6
|
optional2,
|
|
7
7
|
statics2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./filesystem-z5v4ffb3.js";
|
|
9
9
|
import {
|
|
10
10
|
Ref4,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service83,
|
|
12
|
+
node87
|
|
13
|
+
} from "./filesystem-0r6ymdag.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./filesystem-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/rpc.ts
|
|
19
19
|
var exports_rpc = {};
|
|
20
20
|
__export(exports_rpc, {
|
|
21
21
|
Rpc: () => exports_rpc,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service26,
|
|
23
23
|
define: () => define2,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node29
|
|
25
25
|
});
|
|
26
26
|
import { define as define2 } from "@opencode/schema/rpc";
|
|
27
27
|
import { Event } from "@opencode/schema/event";
|
|
28
28
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
29
29
|
import { Context, Deferred, Effect, JsonSchema, Layer, Schema, SchemaRepresentation, Stream } from "effect";
|
|
30
|
-
class
|
|
30
|
+
class Service26 extends Context.Service()("@opencode/Rpc") {
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
class DeclaredError extends Error {
|
|
@@ -39,9 +39,9 @@ class DeclaredError extends Error {
|
|
|
39
39
|
this.data = data;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
var layer = Layer.effect(
|
|
42
|
+
var layer = Layer.effect(Service26, Effect.gen(function* () {
|
|
43
43
|
const bus = yield* Service86;
|
|
44
|
-
const location = yield*
|
|
44
|
+
const location = yield* Service83;
|
|
45
45
|
const ref = Ref4.make({ directory: location.directory, workspaceID: location.workspaceID });
|
|
46
46
|
const closed = yield* Deferred.make();
|
|
47
47
|
const callContext = {
|
|
@@ -118,14 +118,14 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
118
118
|
const registered = events.get(name);
|
|
119
119
|
if (!registered)
|
|
120
120
|
return Stream.fail(new Error(`Unknown RPC event: ${definition.id}.${name}`));
|
|
121
|
-
return bus.subscribe(registered.definition).pipe(Stream.provideService(
|
|
121
|
+
return bus.subscribe(registered.definition).pipe(Stream.provideService(Service83, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
-
return
|
|
126
|
+
return Service26.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
|
|
127
127
|
}));
|
|
128
|
-
var
|
|
128
|
+
var node29 = makeLocationNode({ service: Service26, layer, deps: [node90, node87] });
|
|
129
129
|
var fields = {
|
|
130
130
|
id: Event.ID,
|
|
131
131
|
created: Schema.Finite,
|
|
@@ -210,4 +210,4 @@ var logicalEvent = Effect.fn("Rpc.logicalEvent")(function* (definition, name, pa
|
|
|
210
210
|
};
|
|
211
211
|
});
|
|
212
212
|
|
|
213
|
-
export {
|
|
213
|
+
export { Service26, node29, exports_rpc, define2 };
|