@opencode-ai/core 0.0.0-beta-19234 → 0.0.0-beta-19271
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 +81 -81
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +71 -71
- package/dist/catalog.js +83 -83
- package/dist/chunks/{worktree-e2xpxj6j.js → file-retention-0287bcr4.js} +22 -22
- package/dist/chunks/{worktree-kxf02bzq.js → file-retention-08px7ct2.js} +21 -21
- package/dist/chunks/{worktree-hevn35yy.js → file-retention-0dfa6scd.js} +7 -7
- package/dist/chunks/{worktree-0e0xafbb.js → file-retention-0e0xafbb.js} +2 -2
- package/dist/chunks/{worktree-gqvj11y0.js → file-retention-0egdgj0d.js} +18 -18
- package/dist/chunks/{worktree-0paq2nw3.js → file-retention-0paq2nw3.js} +1 -1
- package/dist/chunks/{worktree-0q0f95c6.js → file-retention-0q0f95c6.js} +1 -1
- package/dist/chunks/{worktree-52vxm64v.js → file-retention-0r296h1k.js} +25 -25
- package/dist/chunks/{worktree-0s9ayhjt.js → file-retention-0s9ayhjt.js} +1 -1
- package/dist/chunks/{worktree-yh9c67q5.js → file-retention-0sk2j9ke.js} +4 -4
- package/dist/chunks/{worktree-f8pec4ch.js → file-retention-0tfzfc80.js} +15 -15
- package/dist/chunks/{worktree-r98e92ep.js → file-retention-0v53mg2y.js} +4 -4
- package/dist/chunks/{worktree-mq9r6drf.js → file-retention-0vqp07g5.js} +3 -3
- package/dist/chunks/{worktree-wgc064dh.js → file-retention-169jagr2.js} +10 -10
- package/dist/chunks/{worktree-yywg80z9.js → file-retention-19qd847z.js} +6 -6
- package/dist/chunks/{worktree-1ct4r87x.js → file-retention-1ct4r87x.js} +1 -1
- package/dist/chunks/{worktree-pjw83wd2.js → file-retention-1ggjvb61.js} +28 -28
- package/dist/chunks/{worktree-ne4zyw3a.js → file-retention-1hdmp3m0.js} +12 -12
- package/dist/chunks/{worktree-6y2e0e4e.js → file-retention-1jh2bxey.js} +13 -13
- package/dist/chunks/{worktree-6v6snzyf.js → file-retention-1p48dy4j.js} +24 -24
- package/dist/chunks/{worktree-tqmakht3.js → file-retention-1q1y40j8.js} +189 -94
- package/dist/chunks/{worktree-hnyf01b0.js → file-retention-1r60bktf.js} +20 -4
- package/dist/chunks/{worktree-410zfba8.js → file-retention-1wcfs5an.js} +2 -2
- package/dist/chunks/{worktree-3883t5g1.js → file-retention-1ydgq2r4.js} +5 -5
- package/dist/chunks/{worktree-h08w630h.js → file-retention-1z25nwdj.js} +41 -50
- package/dist/chunks/{worktree-21r38tys.js → file-retention-21r38tys.js} +1 -1
- package/dist/chunks/{worktree-2402vzrj.js → file-retention-2402vzrj.js} +1 -1
- package/dist/chunks/{worktree-2a5m3afh.js → file-retention-2a5m3afh.js} +1 -1
- package/dist/chunks/{worktree-2ht70gj7.js → file-retention-2ht70gj7.js} +1 -1
- package/dist/chunks/{worktree-7nmnk1wx.js → file-retention-2x7vmnaj.js} +23 -23
- package/dist/chunks/{worktree-pfzksdxq.js → file-retention-34eb3mab.js} +24 -24
- package/dist/chunks/{worktree-zbjnn3ac.js → file-retention-34jntwha.js} +7 -0
- package/dist/chunks/{worktree-8k6sjvxx.js → file-retention-3dzp2ssk.js} +11 -11
- package/dist/chunks/{worktree-gdvy8fx6.js → file-retention-3fc6dm20.js} +4 -4
- package/dist/chunks/{worktree-3hepkmqq.js → file-retention-3hepkmqq.js} +1 -1
- package/dist/chunks/{worktree-1ytn6e3p.js → file-retention-3hkvw3fm.js} +8 -8
- package/dist/chunks/{worktree-mfpdf0ta.js → file-retention-3jyr1z4v.js} +7 -7
- package/dist/chunks/{worktree-3qzbfqsy.js → file-retention-3qzbfqsy.js} +2 -2
- package/dist/chunks/{worktree-3smtnn6g.js → file-retention-3smtnn6g.js} +1 -1
- package/dist/chunks/{worktree-3tvqynh2.js → file-retention-3tvqynh2.js} +1 -1
- package/dist/chunks/{worktree-qyza05bp.js → file-retention-3v92ygys.js} +26 -26
- package/dist/chunks/{worktree-tq32dsfx.js → file-retention-3yq3pj1g.js} +15 -15
- package/dist/chunks/{worktree-454k5vzh.js → file-retention-454k5vzh.js} +1 -1
- package/dist/chunks/{worktree-066kw2xy.js → file-retention-48dkwq03.js} +3 -3
- package/dist/chunks/{worktree-a8g0fabb.js → file-retention-4a8k7zg7.js} +9 -9
- package/dist/chunks/{worktree-94pmskv9.js → file-retention-4gj1y2sv.js} +4 -4
- package/dist/chunks/{worktree-7214vx64.js → file-retention-4jvbp95j.js} +4 -4
- package/dist/chunks/{worktree-srxvp5n6.js → file-retention-4khp0kk4.js} +14 -14
- package/dist/chunks/{worktree-avwxaxy8.js → file-retention-4map1fd3.js} +27 -27
- package/dist/chunks/{worktree-4r2nyarf.js → file-retention-4r2nyarf.js} +1 -1
- package/dist/chunks/{worktree-m9xhrdze.js → file-retention-4rgjvnqr.js} +14 -14
- package/dist/chunks/{worktree-fj906p38.js → file-retention-4thyt0cr.js} +16 -16
- package/dist/chunks/{worktree-xr5vwsd4.js → file-retention-4x0nmcjx.js} +9 -9
- package/dist/chunks/{worktree-k3skpd5n.js → file-retention-4xzh45c0.js} +10 -10
- package/dist/chunks/{worktree-5r8w58wp.js → file-retention-503qcs8e.js} +17 -17
- package/dist/chunks/{worktree-bj3t22s0.js → file-retention-51a45nv8.js} +55 -39
- package/dist/chunks/{worktree-fss4j797.js → file-retention-52s6f7rv.js} +26 -26
- package/dist/chunks/{worktree-t5ad4xaj.js → file-retention-530egx9a.js} +8 -8
- package/dist/chunks/file-retention-54w4zsch.js +247 -0
- package/dist/chunks/{worktree-56gdpj1q.js → file-retention-56gdpj1q.js} +2 -2
- package/dist/chunks/{worktree-bsv171pv.js → file-retention-57xtfwrp.js} +8 -8
- package/dist/chunks/{worktree-gcaq7q8d.js → file-retention-5btxcb89.js} +6 -6
- package/dist/chunks/{worktree-5daktx2q.js → file-retention-5daktx2q.js} +1 -1
- package/dist/chunks/{worktree-5fmxt4p5.js → file-retention-5fmxt4p5.js} +1 -1
- package/dist/chunks/{worktree-vy8y55ac.js → file-retention-5gejhz5w.js} +27 -27
- package/dist/chunks/{worktree-7w74e5nf.js → file-retention-5gnmt16f.js} +5 -5
- package/dist/chunks/{worktree-87hmtf6v.js → file-retention-5j73ae1t.js} +14 -14
- package/dist/chunks/{worktree-5jvc5tg2.js → file-retention-5jvc5tg2.js} +1 -1
- package/dist/chunks/{worktree-c047tdby.js → file-retention-5sdg7nhe.js} +18 -14
- package/dist/chunks/{worktree-nz4zy0sw.js → file-retention-63zheg14.js} +26 -26
- package/dist/chunks/{worktree-vxz7khjw.js → file-retention-64x7r6w5.js} +35 -42
- package/dist/chunks/{worktree-ce9ncmzb.js → file-retention-654r7z1p.js} +27 -4
- package/dist/chunks/{worktree-zht09bnk.js → file-retention-6e53nqzr.js} +8 -8
- package/dist/chunks/{worktree-xgqr5ys9.js → file-retention-6nbxm2ze.js} +26 -26
- package/dist/chunks/{worktree-edz5pbw5.js → file-retention-6pcza54a.js} +28 -57
- package/dist/chunks/{worktree-711hfp6y.js → file-retention-711hfp6y.js} +2 -2
- package/dist/chunks/{worktree-72nftnjy.js → file-retention-72nftnjy.js} +2 -2
- package/dist/chunks/{worktree-73tb2d7t.js → file-retention-73tb2d7t.js} +1 -1
- package/dist/chunks/{worktree-tmjhps6z.js → file-retention-76zyzh78.js} +9 -9
- package/dist/chunks/{worktree-7bmhse3q.js → file-retention-7bmhse3q.js} +1 -1
- package/dist/chunks/{worktree-najyedn1.js → file-retention-7bnvhct6.js} +5 -5
- package/dist/chunks/{worktree-471a560f.js → file-retention-7bz1waha.js} +62 -62
- package/dist/chunks/{worktree-2k8khapm.js → file-retention-7dqw4kz8.js} +5 -5
- package/dist/chunks/{worktree-j6jsstpv.js → file-retention-7dxvk8sj.js} +23 -23
- package/dist/chunks/{worktree-vspn1zx3.js → file-retention-7jhvs3pe.js} +23 -23
- package/dist/chunks/{worktree-t8vr1kn7.js → file-retention-7z9p2wdr.js} +9 -9
- package/dist/chunks/file-retention-7zk4hah4.js +4 -0
- package/dist/chunks/{worktree-bpnz08mb.js → file-retention-809xf7e2.js} +2 -2
- package/dist/chunks/{worktree-nnad2ash.js → file-retention-8q8fk282.js} +46 -46
- package/dist/chunks/{worktree-mh0thj4x.js → file-retention-8tbmtt69.js} +15 -15
- package/dist/chunks/{worktree-kmcjptjm.js → file-retention-8vmp5gpy.js} +1 -1
- package/dist/chunks/{worktree-tgpzk4tr.js → file-retention-8x1thw8y.js} +10 -10
- package/dist/chunks/{worktree-zkj92s1w.js → file-retention-9019yept.js} +6 -6
- package/dist/chunks/{worktree-y2cqme3r.js → file-retention-93a8yfjt.js} +5 -5
- package/dist/chunks/{worktree-ex625ka3.js → file-retention-971pvjyy.js} +5 -5
- package/dist/chunks/{worktree-j1yqv9s7.js → file-retention-9gwy9zfk.js} +15 -15
- package/dist/chunks/{worktree-9g259f3c.js → file-retention-9krggx7e.js} +6 -6
- package/dist/chunks/{worktree-9qm9egsn.js → file-retention-9qm9egsn.js} +2 -2
- package/dist/chunks/{worktree-7er3jcv0.js → file-retention-9rvda89d.js} +25 -25
- package/dist/chunks/{worktree-wvbw7nq4.js → file-retention-9t0pwkeq.js} +15 -15
- package/dist/chunks/{worktree-58hqrsnb.js → file-retention-9w4m4ymy.js} +29 -29
- package/dist/chunks/{worktree-hcs930pp.js → file-retention-9yw3vay8.js} +9 -9
- package/dist/chunks/{worktree-9kwyppn5.js → file-retention-a296k1k9.js} +15 -15
- package/dist/chunks/{worktree-z1sr0xrs.js → file-retention-a3mn64bp.js} +4 -4
- package/dist/chunks/{worktree-mtq6xxnx.js → file-retention-a46v4e4v.js} +7 -7
- package/dist/chunks/{worktree-61k64wys.js → file-retention-a98rapcn.js} +18 -18
- package/dist/chunks/{worktree-aaet6srn.js → file-retention-aaet6srn.js} +2 -2
- package/dist/chunks/{worktree-g89m0qrn.js → file-retention-aamsyqd7.js} +32 -32
- package/dist/chunks/{worktree-q8qsy7xy.js → file-retention-ab1km4sg.js} +20 -20
- package/dist/chunks/{worktree-06x8he3q.js → file-retention-afdssyjb.js} +4 -4
- package/dist/chunks/{worktree-ajtjthsy.js → file-retention-ajtjthsy.js} +2 -2
- package/dist/chunks/{worktree-7g2k4w5v.js → file-retention-ambpxxez.js} +31 -31
- package/dist/chunks/{worktree-yfbd16n1.js → file-retention-azbx08pf.js} +4 -2
- package/dist/chunks/{worktree-sn5ar8h4.js → file-retention-b49m8fgq.js} +1 -1
- package/dist/chunks/{worktree-b6gygkdw.js → file-retention-b6gygkdw.js} +2 -2
- package/dist/chunks/{worktree-cfsc9srb.js → file-retention-b77p7m16.js} +4 -4
- package/dist/chunks/{worktree-zgsac5yt.js → file-retention-b83hqy8d.js} +7 -7
- package/dist/chunks/{worktree-b9wsbatv.js → file-retention-b9wsbatv.js} +1 -1
- package/dist/chunks/{worktree-r226ndvg.js → file-retention-bmes7amk.js} +36 -36
- package/dist/chunks/{worktree-3g2y1byn.js → file-retention-btc4hvws.js} +5 -5
- package/dist/chunks/{worktree-b3kfkjj6.js → file-retention-btht280w.js} +8 -5
- package/dist/chunks/{worktree-040j8z8f.js → file-retention-bw7hten5.js} +3 -3
- package/dist/chunks/file-retention-bx5n9ey0.js +55 -0
- package/dist/chunks/{worktree-35bk7ths.js → file-retention-cavx7z03.js} +85 -85
- package/dist/chunks/{worktree-sxrnkw1n.js → file-retention-cex0ectg.js} +9 -9
- package/dist/chunks/{worktree-q3yxb0xv.js → file-retention-cwd49fgd.js} +11 -11
- package/dist/chunks/{worktree-d72308c8.js → file-retention-d72308c8.js} +2 -2
- package/dist/chunks/{worktree-tza14zss.js → file-retention-db39sy3g.js} +32 -32
- package/dist/chunks/{worktree-wt966625.js → file-retention-df3cbvs4.js} +17 -17
- package/dist/chunks/{worktree-fgdwx9dj.js → file-retention-dtz2xhtw.js} +27 -27
- package/dist/chunks/{worktree-62mr7g8a.js → file-retention-dwebx4g8.js} +10 -10
- package/dist/chunks/file-retention-dxj72tfx.js +18 -0
- package/dist/chunks/{worktree-xy07edwq.js → file-retention-dxv3bfmb.js} +33 -33
- package/dist/chunks/{worktree-rh7y5xh0.js → file-retention-dykj04b8.js} +1 -1
- package/dist/chunks/{worktree-zn2cbnfs.js → file-retention-dyqxbeha.js} +11 -11
- package/dist/chunks/{worktree-63nctvwe.js → file-retention-e0kn3btm.js} +58 -58
- package/dist/chunks/{worktree-jkzajkdb.js → file-retention-e4fe74de.js} +18 -18
- package/dist/chunks/{worktree-y14y9keq.js → file-retention-e5fc1vxw.js} +1 -1
- package/dist/chunks/{worktree-0n1w7scn.js → file-retention-e5vw0egj.js} +5 -5
- package/dist/chunks/{worktree-eg4pr325.js → file-retention-eg4pr325.js} +3 -3
- package/dist/chunks/{worktree-b08spypp.js → file-retention-emmsgc7p.js} +11 -11
- package/dist/chunks/{worktree-vhjdrq5e.js → file-retention-emyx9er5.js} +5 -5
- package/dist/chunks/{worktree-wga61mrz.js → file-retention-ep9enyxr.js} +17 -16
- package/dist/chunks/{worktree-1459npmt.js → file-retention-er3f8aqh.js} +34 -42
- package/dist/chunks/{worktree-pr0pn8m6.js → file-retention-er9t76qp.js} +15 -15
- package/dist/chunks/{worktree-m9asb4sr.js → file-retention-ezhxkjns.js} +33 -33
- package/dist/chunks/file-retention-f268p0jz.js +114 -0
- package/dist/chunks/{worktree-m7nj5h8z.js → file-retention-f5y7cb2r.js} +14 -14
- package/dist/chunks/{worktree-adv3g3q6.js → file-retention-f60rqjgw.js} +11 -11
- package/dist/chunks/{worktree-rd9hzb43.js → file-retention-ff89hqjf.js} +12 -12
- package/dist/chunks/{worktree-5nygvj5f.js → file-retention-fp34rt5y.js} +20 -20
- package/dist/chunks/{worktree-fxbjtjnd.js → file-retention-fxbjtjnd.js} +1 -1
- package/dist/chunks/{worktree-fxypknc8.js → file-retention-fxypknc8.js} +1 -1
- package/dist/chunks/{worktree-tgz6nsmd.js → file-retention-fy8y407q.js} +50 -50
- package/dist/chunks/{worktree-1n116cmy.js → file-retention-fz1pdqz4.js} +9 -9
- package/dist/chunks/{worktree-a29r829w.js → file-retention-g0j16pt1.js} +52 -52
- package/dist/chunks/{worktree-cnvcdvk7.js → file-retention-g97k7hqe.js} +6 -6
- package/dist/chunks/{worktree-qvk768dr.js → file-retention-g993n2k7.js} +11 -11
- package/dist/chunks/{worktree-gd4qta3r.js → file-retention-gd4qta3r.js} +1 -1
- package/dist/chunks/{worktree-zh2rh6rn.js → file-retention-gdjb7na3.js} +17 -17
- package/dist/chunks/{worktree-hctjcsn3.js → file-retention-gqv7w6by.js} +69 -64
- package/dist/chunks/{worktree-xpxmebhh.js → file-retention-gztfqjt6.js} +46 -46
- package/dist/chunks/{worktree-gq1q1b4e.js → file-retention-h42awfrh.js} +11 -11
- package/dist/chunks/{worktree-5zcapbqz.js → file-retention-h511sj23.js} +30 -30
- package/dist/chunks/{worktree-1gvs4d4m.js → file-retention-h64bhzsz.js} +27 -27
- package/dist/chunks/{worktree-d4w17cfe.js → file-retention-h6h8wc8c.js} +3 -3
- package/dist/chunks/{worktree-h6vf3j39.js → file-retention-h6vf3j39.js} +1 -1
- package/dist/chunks/{worktree-heyhwy2w.js → file-retention-heyhwy2w.js} +1 -1
- package/dist/chunks/{worktree-vynk1gtr.js → file-retention-hpnhdz6t.js} +13 -13
- package/dist/chunks/{worktree-hrvm11jt.js → file-retention-hrvm11jt.js} +3 -3
- package/dist/chunks/{worktree-zh93cpfk.js → file-retention-hvw9ez06.js} +20 -20
- package/dist/chunks/{worktree-kvsjn1dr.js → file-retention-hw4pv20g.js} +2 -2
- package/dist/chunks/{worktree-rfedyjyh.js → file-retention-jb9jk37q.js} +19 -19
- package/dist/chunks/{worktree-qyv79zw0.js → file-retention-jpvwbg27.js} +22 -22
- package/dist/chunks/{worktree-ze4dnq9c.js → file-retention-jw80jp6b.js} +19 -19
- package/dist/chunks/{worktree-jm1y8vkw.js → file-retention-k03ey5t7.js} +11 -11
- package/dist/chunks/{worktree-xk6kcd15.js → file-retention-k1vkejwd.js} +3 -3
- package/dist/chunks/{worktree-k4bwy1x5.js → file-retention-k4bwy1x5.js} +1 -1
- package/dist/chunks/{worktree-kg8hghrp.js → file-retention-k4eh3acx.js} +41 -41
- package/dist/chunks/{worktree-adacqx41.js → file-retention-kaxe1s77.js} +17 -17
- package/dist/chunks/{worktree-kg06axw8.js → file-retention-kg06axw8.js} +1 -1
- package/dist/chunks/{worktree-xwsmtwfv.js → file-retention-knefre3q.js} +5 -5
- package/dist/chunks/{worktree-5d98etyc.js → file-retention-kpev0jfb.js} +15 -15
- package/dist/chunks/{worktree-bg50jbb6.js → file-retention-kz0qf9hw.js} +85 -82
- package/dist/chunks/{worktree-xgjy9czn.js → file-retention-m1z2avc0.js} +9 -9
- package/dist/chunks/{worktree-mtd0mgtt.js → file-retention-m6jejm1p.js} +41 -41
- package/dist/chunks/{worktree-m9w0rfyh.js → file-retention-m9w0rfyh.js} +1 -1
- package/dist/chunks/{worktree-vqfj6rgg.js → file-retention-mr56sp72.js} +19 -19
- package/dist/chunks/{worktree-cs4zqdxc.js → file-retention-mwbry6nn.js} +4 -4
- package/dist/chunks/{worktree-2hth30a0.js → file-retention-naqx5crp.js} +8 -8
- package/dist/chunks/{worktree-e82z9tr0.js → file-retention-nhy5jxhy.js} +7 -7
- package/dist/chunks/{worktree-842v7csv.js → file-retention-nqvfwm7d.js} +14 -14
- package/dist/chunks/{worktree-2yb0w078.js → file-retention-ny14xqs8.js} +3 -3
- package/dist/chunks/{worktree-8dff8bqa.js → file-retention-p3p972wa.js} +5 -5
- package/dist/chunks/{worktree-30e1hbbk.js → file-retention-p94mrc9t.js} +29 -28
- package/dist/chunks/{worktree-j935v87r.js → file-retention-paphc93g.js} +2 -2
- package/dist/chunks/{worktree-qqt43bp1.js → file-retention-pbp1se8d.js} +23 -23
- package/dist/chunks/{worktree-qqtwvk4z.js → file-retention-pf2hb43r.js} +4 -4
- package/dist/chunks/{worktree-pjvnvgmy.js → file-retention-pjvnvgmy.js} +1 -1
- package/dist/chunks/{worktree-pknna89w.js → file-retention-pknna89w.js} +1 -1
- package/dist/chunks/{worktree-v6s3zgrk.js → file-retention-pr9g8gys.js} +6 -6
- package/dist/chunks/{worktree-s06dat1t.js → file-retention-pt1jjr6j.js} +9 -9
- package/dist/chunks/{worktree-prrfs6yw.js → file-retention-q38gs549.js} +21 -21
- package/dist/chunks/{worktree-6yybv5x8.js → file-retention-q7j76h9b.js} +17 -17
- package/dist/chunks/{worktree-t9qj8c83.js → file-retention-qb3txf5b.js} +10 -10
- package/dist/chunks/{worktree-wx13dy4y.js → file-retention-qp4whs7y.js} +19 -16
- package/dist/chunks/{worktree-b1chm04x.js → file-retention-qq8x5mwt.js} +7 -7
- package/dist/chunks/{worktree-qsdy395h.js → file-retention-qsdy395h.js} +1 -1
- package/dist/chunks/{worktree-hbxp6gk0.js → file-retention-qv0b9wx6.js} +3 -3
- package/dist/chunks/{worktree-txt2cax8.js → file-retention-qw80c7h1.js} +296 -294
- package/dist/chunks/{worktree-sy2xv61m.js → file-retention-qykqfys3.js} +1 -1
- package/dist/chunks/{worktree-rqqsyksf.js → file-retention-qzv1jgwe.js} +28 -28
- package/dist/chunks/{worktree-qafexnn6.js → file-retention-r2d9jv9d.js} +13 -9
- package/dist/chunks/{worktree-r8dhm0tv.js → file-retention-r8dhm0tv.js} +1 -1
- package/dist/chunks/{worktree-gvcph31s.js → file-retention-r8xk55zx.js} +12 -12
- package/dist/chunks/{worktree-yp2x3t23.js → file-retention-r8xr0va3.js} +4 -4
- package/dist/chunks/{worktree-ajphwd6y.js → file-retention-rae26gbb.js} +8 -8
- package/dist/chunks/{worktree-g43vvm86.js → file-retention-rdsh588k.js} +7 -7
- package/dist/chunks/{worktree-3cj33xev.js → file-retention-rpzf37ve.js} +37 -44
- package/dist/chunks/{worktree-z168y132.js → file-retention-rqwyf4a8.js} +35 -44
- package/dist/chunks/{worktree-wjy58fct.js → file-retention-rvfs50bv.js} +12 -12
- package/dist/chunks/{worktree-dpdxxwta.js → file-retention-rvhss2m2.js} +4 -4
- package/dist/chunks/{worktree-m7w02m4e.js → file-retention-rz8xxtng.js} +22 -22
- package/dist/chunks/{worktree-smk292jk.js → file-retention-s283m12p.js} +169 -169
- package/dist/chunks/{worktree-sba4qhjf.js → file-retention-sba4qhjf.js} +1 -1
- package/dist/chunks/{worktree-9mtg8gdn.js → file-retention-sbt1xe51.js} +9 -9
- package/dist/chunks/{worktree-fmanbg8s.js → file-retention-sjghkmca.js} +28 -28
- package/dist/chunks/{worktree-45aqx2pr.js → file-retention-snxwbbja.js} +4 -4
- package/dist/chunks/{worktree-mw548jxj.js → file-retention-sqypgbm1.js} +18 -18
- package/dist/chunks/{worktree-acbvwaxg.js → file-retention-sr82n7vz.js} +17 -17
- package/dist/chunks/{worktree-0rkdmzyv.js → file-retention-sybecs9s.js} +9 -9
- package/dist/chunks/{worktree-jw9vr5cv.js → file-retention-systxyed.js} +7 -7
- package/dist/chunks/{worktree-c83taev4.js → file-retention-t59a9e66.js} +9 -9
- package/dist/chunks/{worktree-tazgh4e4.js → file-retention-tazgh4e4.js} +1 -1
- package/dist/chunks/{worktree-t5h4rs02.js → file-retention-tbcankzb.js} +9 -9
- package/dist/chunks/{worktree-tcezcvh9.js → file-retention-tcezcvh9.js} +1 -1
- package/dist/chunks/{worktree-k1rzh40r.js → file-retention-tcxthdpc.js} +22 -21
- package/dist/chunks/{worktree-cjrs1hef.js → file-retention-tebfwd6f.js} +17 -17
- package/dist/chunks/{worktree-tjykrgmx.js → file-retention-tjykrgmx.js} +1 -1
- package/dist/chunks/{worktree-dng5ka12.js → file-retention-tmm76dnc.js} +12 -12
- package/dist/chunks/{worktree-rj2f5sk2.js → file-retention-tmphv92d.js} +32 -32
- package/dist/chunks/{worktree-7h10aajm.js → file-retention-tt4eawst.js} +3 -3
- package/dist/chunks/{worktree-b9e4evd2.js → file-retention-tvgknxm1.js} +30 -22
- package/dist/chunks/{worktree-dssx1y55.js → file-retention-twadq4ng.js} +20 -20
- package/dist/chunks/{worktree-s6z4mph6.js → file-retention-vev8ym6q.js} +6 -6
- package/dist/chunks/{worktree-5agnkr4h.js → file-retention-vhpcjtn1.js} +27 -27
- package/dist/chunks/{worktree-ht963k40.js → file-retention-vnheh1tn.js} +5 -5
- package/dist/chunks/{worktree-w3wsvvr9.js → file-retention-w3wsvvr9.js} +1 -1
- package/dist/chunks/{worktree-7dz4r7mk.js → file-retention-w6s4nrrc.js} +8 -8
- package/dist/chunks/{worktree-wd87259q.js → file-retention-wd87259q.js} +1 -1
- package/dist/chunks/{worktree-2sz5zasg.js → file-retention-wdre2fsc.js} +12 -12
- package/dist/chunks/{worktree-ge7ds67b.js → file-retention-wg9v2026.js} +2 -2
- package/dist/chunks/{worktree-kk0awzkj.js → file-retention-wh6fxssz.js} +24 -24
- package/dist/chunks/{worktree-pq5hrpmt.js → file-retention-wn6ay9n5.js} +10 -10
- package/dist/chunks/{worktree-sdm57bgr.js → file-retention-wsppk9kq.js} +25 -25
- package/dist/chunks/{worktree-ypyh08m6.js → file-retention-wt2bt8rh.js} +4 -4
- package/dist/chunks/{worktree-660eg1b9.js → file-retention-wwsspkj6.js} +31 -31
- package/dist/chunks/{worktree-x1ezjp6w.js → file-retention-x1ezjp6w.js} +1 -1
- package/dist/chunks/{worktree-x4ndt50x.js → file-retention-x2yzyww1.js} +28 -28
- package/dist/chunks/{worktree-nhfc898y.js → file-retention-xtbhkgqd.js} +36 -29
- package/dist/chunks/{worktree-4tyxcf8v.js → file-retention-xtzvz6z2.js} +32 -32
- package/dist/chunks/{worktree-7gkmedy0.js → file-retention-xvkjq10q.js} +14 -27
- package/dist/chunks/{worktree-y1fvbwt7.js → file-retention-y1fvbwt7.js} +1 -1
- package/dist/chunks/{worktree-ht4ejyw1.js → file-retention-y33rnh2q.js} +13 -13
- package/dist/chunks/{worktree-y71avatq.js → file-retention-y71avatq.js} +1 -1
- package/dist/chunks/{worktree-1wfjb4fb.js → file-retention-y8vkqrwp.js} +1 -1
- package/dist/chunks/{worktree-cnze8n7v.js → file-retention-yd5ewqxr.js} +10 -10
- package/dist/chunks/{worktree-28pcbh69.js → file-retention-yhr218qz.js} +4 -4
- package/dist/chunks/{worktree-1pdtxp2d.js → file-retention-yjfqme9d.js} +1 -1
- package/dist/chunks/{worktree-g6njkj82.js → file-retention-yjqf6ny1.js} +15 -15
- package/dist/chunks/{worktree-qbddy52q.js → file-retention-ypnagvbr.js} +11 -11
- package/dist/chunks/{worktree-ckfw619d.js → file-retention-z0jdk2ea.js} +43 -43
- package/dist/chunks/{worktree-z1k01bn4.js → file-retention-z1k01bn4.js} +2 -2
- package/dist/chunks/{worktree-29x78va6.js → file-retention-z63w68vq.js} +6 -6
- package/dist/chunks/{worktree-41mncz27.js → file-retention-z78tg67p.js} +5 -5
- package/dist/chunks/{worktree-ybjzef57.js → file-retention-zc6h5zbx.js} +8 -8
- package/dist/chunks/{worktree-yfdj9tfx.js → file-retention-zgvs89xm.js} +37 -45
- package/dist/chunks/{worktree-enw72f67.js → file-retention-zhk34nm9.js} +6 -6
- package/dist/chunks/{worktree-zxq2ej10.js → file-retention-zxq2ej10.js} +1 -1
- package/dist/chunks/{worktree-tppvcy65.js → file-retention-zyjnrmzk.js} +5 -5
- package/dist/codemode/catalog.js +3 -3
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +77 -77
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +19 -19
- package/dist/config/plugin/agent.js +115 -115
- package/dist/config/plugin/command.js +207 -206
- package/dist/config/plugin/compaction.js +155 -154
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +115 -115
- package/dist/config/plugin/instruction.js +85 -85
- package/dist/config/plugin/location-watcher.js +117 -117
- package/dist/config/plugin/mcp.js +124 -124
- package/dist/config/plugin/policy.js +114 -114
- package/dist/config/plugin/provider.js +113 -113
- package/dist/config/plugin/reference.js +117 -117
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +97 -96
- package/dist/config/plugin/skill.js +136 -135
- package/dist/config/plugin/snapshot.js +115 -115
- package/dist/config/plugin/source.js +115 -115
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -119
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +81 -81
- package/dist/database/database.js +64 -64
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration.gen.js +47 -47
- package/dist/database/migration.js +49 -49
- 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 +74 -74
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +360 -359
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +88 -88
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +90 -90
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +112 -0
- package/dist/file-mutation.js +89 -89
- package/dist/file-retention.js +1 -1
- package/dist/file.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/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +222 -221
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +97 -97
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +92 -92
- package/dist/form.js +82 -82
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +84 -84
- package/dist/generate.js +91 -91
- package/dist/git.js +3 -3
- 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 +7 -7
- 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/id/id.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +4 -4
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +351 -350
- package/dist/instruction-discovery.js +83 -83
- package/dist/instructions/builtins.js +80 -80
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +84 -84
- package/dist/job.js +77 -77
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +71 -71
- package/dist/location-activity.js +133 -132
- package/dist/location-mutation.js +102 -83
- package/dist/location-service-map.js +83 -83
- package/dist/location-services.js +348 -347
- package/dist/location.js +80 -80
- package/dist/mcp/client.js +86 -86
- package/dist/mcp/index.js +101 -101
- package/dist/mcp/instructions.js +122 -121
- package/dist/mcp/oauth.js +24 -4
- package/dist/mcp/stdio.js +85 -85
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +7 -7
- package/dist/model-resolver.js +88 -86
- package/dist/model.js +6 -6
- package/dist/models-dev.js +86 -86
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +112 -111
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +84 -84
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +73 -73
- package/dist/plugin/agent.js +97 -96
- package/dist/plugin/command.js +92 -92
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +213 -212
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +322 -321
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +75 -75
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +97 -96
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/alibaba.js +2 -2
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
- package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +80 -80
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +117 -117
- package/dist/plugin/provider/mistral.js +2 -2
- package/dist/plugin/provider/modal.js +79 -79
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +115 -115
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +78 -78
- package/dist/plugin/provider/opencode.js +76 -76
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +2 -2
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +117 -117
- package/dist/plugin/provider/xai.js +77 -77
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +155 -155
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +131 -130
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +339 -338
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +82 -82
- package/dist/plugin/vcs/hg.js +82 -82
- package/dist/plugin/warming.js +112 -112
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +4 -4
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin.js +224 -223
- package/dist/project/schema.js +4 -4
- package/dist/project/sql.js +4 -4
- package/dist/project.js +81 -81
- package/dist/provider.js +5 -5
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +88 -88
- package/dist/reference/instructions.js +84 -84
- package/dist/reference.js +86 -86
- package/dist/repository-cache.js +76 -76
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +91 -91
- package/dist/rpc.js +81 -81
- package/dist/schema.js +1 -1
- package/dist/session/command.js +72 -72
- package/dist/session/compaction.js +131 -128
- package/dist/session/context.js +147 -146
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +219 -218
- package/dist/session/execution.js +124 -123
- package/dist/session/generate.js +148 -147
- package/dist/session/history.js +15 -14
- package/dist/session/inbox.js +88 -88
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +88 -87
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +113 -112
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +126 -125
- package/dist/session/projector.js +84 -84
- package/dist/session/prompt.js +100 -99
- package/dist/session/provider-context.js +20 -0
- package/dist/session/revert.js +85 -85
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +223 -222
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +88 -86
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +111 -3
- package/dist/session/runner/step.js +119 -118
- package/dist/session/runner/to-llm-message.js +2 -1
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +167 -166
- package/dist/session/shell.js +131 -131
- package/dist/session/skill.js +98 -97
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +71 -71
- package/dist/session/store.js +85 -84
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -202
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +147 -146
- package/dist/session/to-session-error.js +107 -106
- package/dist/session/transfer.js +215 -214
- package/dist/session/usage.js +1 -1
- package/dist/session.js +211 -210
- 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 +133 -133
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +100 -99
- package/dist/skill.js +107 -106
- package/dist/snapshot.js +86 -86
- 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 +119 -118
- package/dist/tool/plugin/edit.js +115 -114
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +120 -119
- package/dist/tool/plugin/grep.js +120 -119
- package/dist/tool/plugin/opencode.js +5 -3
- package/dist/tool/plugin/patch.js +113 -112
- package/dist/tool/plugin/question.js +98 -97
- package/dist/tool/plugin/read.js +121 -120
- package/dist/tool/plugin/shell.js +208 -207
- package/dist/tool/plugin/skill.js +106 -105
- package/dist/tool/plugin/subagent.js +210 -209
- package/dist/tool/plugin/webfetch.js +103 -102
- package/dist/tool/plugin/websearch.js +107 -106
- package/dist/tool/plugin/write.js +117 -116
- package/dist/tool/read-filesystem.js +96 -96
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +11 -11
- package/dist/types/file-access.d.ts +52 -0
- package/dist/types/file-mutation.d.ts +2 -4
- package/dist/types/instance.d.ts +2 -2
- package/dist/types/location-activity.d.ts +1 -1
- package/dist/types/location-mutation.d.ts +3 -52
- package/dist/types/mcp/oauth.d.ts +10 -1
- package/dist/types/model-resolver.d.ts +25 -3
- package/dist/types/model.d.ts +11 -0
- package/dist/types/plugin/host.d.ts +2 -2
- package/dist/types/plugin/internal.d.ts +3 -3
- package/dist/types/provider.d.ts +11 -0
- package/dist/types/session/compaction.d.ts +11 -2
- package/dist/types/session/execution/restart.d.ts +1 -1
- package/dist/types/session/execution.d.ts +1 -1
- package/dist/types/session/generate.d.ts +1 -1
- package/dist/types/session/history.d.ts +59 -4
- package/dist/types/session/provider-context.d.ts +46 -0
- package/dist/types/session/runner/model.d.ts +4 -0
- package/dist/types/session/runner/retry.d.ts +5 -0
- package/dist/types/session/session.d.ts +3 -3
- package/dist/types/session/sql.d.ts +3 -3
- package/dist/types/session/transfer.d.ts +47 -0
- package/dist/types/tool/mcp.d.ts +1 -1
- package/dist/types/tool/plugin/edit.d.ts +2 -2
- package/dist/types/tool/plugin/glob.d.ts +2 -2
- package/dist/types/tool/plugin/grep.d.ts +2 -2
- package/dist/types/tool/plugin/opencode.d.ts +7 -0
- package/dist/types/tool/plugin/patch.d.ts +2 -2
- package/dist/types/tool/plugin/read.d.ts +2 -3
- package/dist/types/tool/plugin/shell.d.ts +2 -2
- package/dist/types/tool/plugin/websearch.d.ts +1 -1
- package/dist/types/tool/plugin/write.d.ts +2 -2
- package/dist/types/v1/config/agent.d.ts +4 -4
- package/dist/types/v1/config/config.d.ts +46 -46
- package/dist/types/v1/config/migrate.d.ts +19 -7
- package/dist/types/v1/config/permission.d.ts +3 -3
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/iife.js +1 -1
- 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/attachment.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +4 -4
- package/dist/v1/config/permission.js +5 -5
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +85 -85
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +77 -77
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- package/dist/worktree/directory.js +4 -4
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/refresh.js +340 -339
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +89 -89
- package/package.json +8 -7
- package/dist/chunks/worktree-b5q5y4vk.js +0 -4
- package/dist/chunks/worktree-rap9a73h.js +0 -18
- package/dist/chunks/worktree-ynqmrvb3.js +0 -84
- package/dist/chunks/worktree-yrf23g47.js +0 -247
- /package/dist/chunks/{worktree-0fabt78z.js → file-retention-0fabt78z.js} +0 -0
- /package/dist/chunks/{worktree-0qkdqm5v.js → file-retention-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{worktree-0zkw76rk.js → file-retention-0zkw76rk.js} +0 -0
- /package/dist/chunks/{worktree-17cy0kzp.js → file-retention-17cy0kzp.js} +0 -0
- /package/dist/chunks/{worktree-1cnp2v09.js → file-retention-1cnp2v09.js} +0 -0
- /package/dist/chunks/{worktree-1kg9ymc8.js → file-retention-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{worktree-2710q6r3.js → file-retention-2710q6r3.js} +0 -0
- /package/dist/chunks/{worktree-2axfhc9x.js → file-retention-2axfhc9x.js} +0 -0
- /package/dist/chunks/{worktree-2c3vjs8z.js → file-retention-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{worktree-359p4xyc.js → file-retention-359p4xyc.js} +0 -0
- /package/dist/chunks/{worktree-3asan66x.js → file-retention-3asan66x.js} +0 -0
- /package/dist/chunks/{worktree-3t738kvx.js → file-retention-3t738kvx.js} +0 -0
- /package/dist/chunks/{worktree-3v8g72cx.js → file-retention-3v8g72cx.js} +0 -0
- /package/dist/chunks/{worktree-3wcehsnq.js → file-retention-3wcehsnq.js} +0 -0
- /package/dist/chunks/{worktree-41nvscxy.js → file-retention-41nvscxy.js} +0 -0
- /package/dist/chunks/{worktree-43n2bw4t.js → file-retention-43n2bw4t.js} +0 -0
- /package/dist/chunks/{worktree-4knz6hnm.js → file-retention-4knz6hnm.js} +0 -0
- /package/dist/chunks/{worktree-4y7fprxs.js → file-retention-4y7fprxs.js} +0 -0
- /package/dist/chunks/{worktree-53557ph1.js → file-retention-53557ph1.js} +0 -0
- /package/dist/chunks/{worktree-550bvhaj.js → file-retention-550bvhaj.js} +0 -0
- /package/dist/chunks/{worktree-6prwharc.js → file-retention-6prwharc.js} +0 -0
- /package/dist/chunks/{worktree-7akdwqpd.js → file-retention-7akdwqpd.js} +0 -0
- /package/dist/chunks/{worktree-7m9af43g.js → file-retention-7m9af43g.js} +0 -0
- /package/dist/chunks/{worktree-822emrt2.js → file-retention-822emrt2.js} +0 -0
- /package/dist/chunks/{worktree-88xbtdfr.js → file-retention-88xbtdfr.js} +0 -0
- /package/dist/chunks/{worktree-8n3pysct.js → file-retention-8n3pysct.js} +0 -0
- /package/dist/chunks/{worktree-982e01ww.js → file-retention-982e01ww.js} +0 -0
- /package/dist/chunks/{worktree-9a4afbnw.js → file-retention-9a4afbnw.js} +0 -0
- /package/dist/chunks/{worktree-9rqn6x4v.js → file-retention-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{worktree-a1tpkmh4.js → file-retention-a1tpkmh4.js} +0 -0
- /package/dist/chunks/{worktree-af5trqkr.js → file-retention-af5trqkr.js} +0 -0
- /package/dist/chunks/{worktree-afrmfg78.js → file-retention-afrmfg78.js} +0 -0
- /package/dist/chunks/{worktree-aqzs7mqg.js → file-retention-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{worktree-atq7p7m5.js → file-retention-atq7p7m5.js} +0 -0
- /package/dist/chunks/{worktree-bkyjaxrp.js → file-retention-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{worktree-bmr6ed5q.js → file-retention-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{worktree-cf4snx6d.js → file-retention-cf4snx6d.js} +0 -0
- /package/dist/chunks/{worktree-cvy3z8tj.js → file-retention-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{worktree-d9fn303g.js → file-retention-d9fn303g.js} +0 -0
- /package/dist/chunks/{worktree-d9jj8t3e.js → file-retention-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{worktree-dajrwvna.js → file-retention-dajrwvna.js} +0 -0
- /package/dist/chunks/{worktree-dap0rakb.js → file-retention-dap0rakb.js} +0 -0
- /package/dist/chunks/{worktree-df08tz66.js → file-retention-df08tz66.js} +0 -0
- /package/dist/chunks/{worktree-dy18nga0.js → file-retention-dy18nga0.js} +0 -0
- /package/dist/chunks/{worktree-e5kj55wp.js → file-retention-e5kj55wp.js} +0 -0
- /package/dist/chunks/{worktree-e73j6tqm.js → file-retention-e73j6tqm.js} +0 -0
- /package/dist/chunks/{worktree-eh3zwz77.js → file-retention-eh3zwz77.js} +0 -0
- /package/dist/chunks/{worktree-emrn6kk6.js → file-retention-emrn6kk6.js} +0 -0
- /package/dist/chunks/{worktree-f0mxakyp.js → file-retention-f0mxakyp.js} +0 -0
- /package/dist/chunks/{worktree-f6n9ztr4.js → file-retention-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{worktree-faypxj3z.js → file-retention-faypxj3z.js} +0 -0
- /package/dist/chunks/{worktree-fd410y7t.js → file-retention-fd410y7t.js} +0 -0
- /package/dist/chunks/{worktree-fxgpk5d8.js → file-retention-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{worktree-g4wezp1m.js → file-retention-g4wezp1m.js} +0 -0
- /package/dist/chunks/{worktree-g86h250q.js → file-retention-g86h250q.js} +0 -0
- /package/dist/chunks/{worktree-gebd4c9n.js → file-retention-gebd4c9n.js} +0 -0
- /package/dist/chunks/{worktree-hk9envan.js → file-retention-hk9envan.js} +0 -0
- /package/dist/chunks/{worktree-j2ntwpah.js → file-retention-j2ntwpah.js} +0 -0
- /package/dist/chunks/{worktree-j5zkgpj8.js → file-retention-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{worktree-jr7sbwjy.js → file-retention-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{worktree-jwfs4k6c.js → file-retention-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{worktree-jzg6c2d5.js → file-retention-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{worktree-mntxs535.js → file-retention-mntxs535.js} +0 -0
- /package/dist/chunks/{worktree-mp448xyj.js → file-retention-mp448xyj.js} +0 -0
- /package/dist/chunks/{worktree-msx8hqn2.js → file-retention-msx8hqn2.js} +0 -0
- /package/dist/chunks/{worktree-n05xt0ee.js → file-retention-n05xt0ee.js} +0 -0
- /package/dist/chunks/{worktree-n3j8tn72.js → file-retention-n3j8tn72.js} +0 -0
- /package/dist/chunks/{worktree-njntx4h6.js → file-retention-njntx4h6.js} +0 -0
- /package/dist/chunks/{worktree-p8qxwesx.js → file-retention-p8qxwesx.js} +0 -0
- /package/dist/chunks/{worktree-q3sfg36h.js → file-retention-q3sfg36h.js} +0 -0
- /package/dist/chunks/{worktree-q74kybfr.js → file-retention-q74kybfr.js} +0 -0
- /package/dist/chunks/{worktree-qaymkmh1.js → file-retention-qaymkmh1.js} +0 -0
- /package/dist/chunks/{worktree-qb87gjwd.js → file-retention-qb87gjwd.js} +0 -0
- /package/dist/chunks/{worktree-qfa1cgps.js → file-retention-qfa1cgps.js} +0 -0
- /package/dist/chunks/{worktree-qrg20bc0.js → file-retention-qrg20bc0.js} +0 -0
- /package/dist/chunks/{worktree-rcb2kzg1.js → file-retention-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{worktree-sdp7kfr6.js → file-retention-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{worktree-se0s1eqw.js → file-retention-se0s1eqw.js} +0 -0
- /package/dist/chunks/{worktree-sk3qaz4a.js → file-retention-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{worktree-ssg3fenm.js → file-retention-ssg3fenm.js} +0 -0
- /package/dist/chunks/{worktree-twg0f83k.js → file-retention-twg0f83k.js} +0 -0
- /package/dist/chunks/{worktree-w803qqfp.js → file-retention-w803qqfp.js} +0 -0
- /package/dist/chunks/{worktree-wer8tq1h.js → file-retention-wer8tq1h.js} +0 -0
- /package/dist/chunks/{worktree-wtztk69x.js → file-retention-wtztk69x.js} +0 -0
- /package/dist/chunks/{worktree-x0ckcb58.js → file-retention-x0ckcb58.js} +0 -0
- /package/dist/chunks/{worktree-x1b8g1yb.js → file-retention-x1b8g1yb.js} +0 -0
- /package/dist/chunks/{worktree-x61499pn.js → file-retention-x61499pn.js} +0 -0
- /package/dist/chunks/{worktree-y44na4kk.js → file-retention-y44na4kk.js} +0 -0
- /package/dist/chunks/{worktree-y8cydn3q.js → file-retention-y8cydn3q.js} +0 -0
- /package/dist/chunks/{worktree-ygaqb7jw.js → file-retention-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{worktree-z9919s4g.js → file-retention-z9919s4g.js} +0 -0
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service80,
|
|
3
3
|
node85
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-retention-h6h8wc8c.js";
|
|
5
5
|
import {
|
|
6
6
|
EventSequenceTable2,
|
|
7
7
|
EventTable2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./file-retention-2710q6r3.js";
|
|
9
9
|
import {
|
|
10
10
|
makeUnsafe2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-retention-y71avatq.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/bus.ts
|
|
17
17
|
var exports_bus = {};
|
|
18
18
|
__export(exports_bus, {
|
|
19
19
|
Bus: () => exports_bus,
|
|
20
20
|
InvalidDurableEventError: () => InvalidDurableEventError2,
|
|
21
|
-
Service: () =>
|
|
21
|
+
Service: () => Service77,
|
|
22
22
|
configured: () => configured12,
|
|
23
23
|
durable: () => durable2,
|
|
24
24
|
ephemeral: () => ephemeral2,
|
|
25
25
|
isSynced: () => isSynced2,
|
|
26
26
|
latestSequence: () => latestSequence2,
|
|
27
|
-
node: () =>
|
|
27
|
+
node: () => node82,
|
|
28
28
|
reserveSequence: () => reserveSequence2,
|
|
29
29
|
versionedType: () => versionedType2
|
|
30
30
|
});
|
|
@@ -76,13 +76,13 @@ var ephemeral2 = Event.ephemeral;
|
|
|
76
76
|
var isSynced2 = (item) => item.type === "log.synced";
|
|
77
77
|
var isDefinition = (input) => !Array.isArray(input);
|
|
78
78
|
|
|
79
|
-
class
|
|
79
|
+
class Service77 extends Context.Service()("@opencode/Bus") {
|
|
80
80
|
}
|
|
81
81
|
function configured12(options) {
|
|
82
82
|
return makeGlobalNode({
|
|
83
|
-
service:
|
|
83
|
+
service: Service77,
|
|
84
84
|
deps: [node85],
|
|
85
|
-
layer: Layer.effect(
|
|
85
|
+
layer: Layer.effect(Service77, Effect.gen(function* () {
|
|
86
86
|
const { Location } = yield* Effect.promise(() => import("../location.js"));
|
|
87
87
|
const { SessionTable } = yield* Effect.promise(() => import("../session/sql.js"));
|
|
88
88
|
const pubsub = {
|
|
@@ -525,7 +525,7 @@ function configured12(options) {
|
|
|
525
525
|
list.push((event) => projector(event));
|
|
526
526
|
projectors.set(key, list);
|
|
527
527
|
});
|
|
528
|
-
return
|
|
528
|
+
return Service77.of({
|
|
529
529
|
publish,
|
|
530
530
|
publishAll,
|
|
531
531
|
subscribe,
|
|
@@ -539,6 +539,6 @@ function configured12(options) {
|
|
|
539
539
|
}))
|
|
540
540
|
});
|
|
541
541
|
}
|
|
542
|
-
var
|
|
542
|
+
var node82 = configured12();
|
|
543
543
|
|
|
544
|
-
export { latestSequence2, reserveSequence2, InvalidDurableEventError2, versionedType2, durable2, ephemeral2, isSynced2,
|
|
544
|
+
export { latestSequence2, reserveSequence2, InvalidDurableEventError2, versionedType2, durable2, ephemeral2, isSynced2, Service77, configured12, node82, exports_bus };
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-p8qxwesx.js";
|
|
4
4
|
import {
|
|
5
5
|
Service80,
|
|
6
6
|
node85
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./file-retention-h6h8wc8c.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Service77,
|
|
10
|
+
node82
|
|
11
|
+
} from "./file-retention-tmm76dnc.js";
|
|
12
12
|
import {
|
|
13
13
|
Service78,
|
|
14
14
|
node83
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./file-retention-eg4pr325.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID17,
|
|
18
18
|
Current3,
|
|
19
19
|
Info32,
|
|
20
20
|
UpdateInput4,
|
|
21
21
|
Event20,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./file-retention-zyjnrmzk.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./file-retention-9qm9egsn.js";
|
|
28
28
|
import {
|
|
29
29
|
WorktreeTable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./file-retention-ajtjthsy.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/project.ts
|
|
36
36
|
var exports_project = {};
|
|
37
37
|
__export(exports_project, {
|
|
38
38
|
Current: () => Current2,
|
|
39
|
-
ID: () =>
|
|
39
|
+
ID: () => ID16,
|
|
40
40
|
Info: () => Info31,
|
|
41
41
|
NotFoundError: () => NotFoundError10,
|
|
42
42
|
Project: () => exports_project,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service76,
|
|
44
44
|
UpdateInput: () => UpdateInput3,
|
|
45
45
|
Vcs: () => Vcs2,
|
|
46
|
-
node: () =>
|
|
46
|
+
node: () => node81,
|
|
47
47
|
root: () => root2
|
|
48
48
|
});
|
|
49
49
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -55,14 +55,14 @@ import { FSUtil } from "@opencode-ai/util/fs-util";
|
|
|
55
55
|
import { AppProcess } from "@opencode-ai/util/process";
|
|
56
56
|
import { makeGlobalNode } from "@opencode-ai/util/effect/app-node";
|
|
57
57
|
import { Hash } from "@opencode-ai/util/hash";
|
|
58
|
-
var
|
|
58
|
+
var ID16 = ID17;
|
|
59
59
|
var Vcs2 = Vcs3;
|
|
60
60
|
var Current2 = Current3;
|
|
61
61
|
var Info31 = Info32;
|
|
62
62
|
var UpdateInput3 = UpdateInput4;
|
|
63
63
|
|
|
64
64
|
class NotFoundError10 extends Schema.TaggedError()("Project.NotFoundError", {
|
|
65
|
-
projectID:
|
|
65
|
+
projectID: ID16
|
|
66
66
|
}) {
|
|
67
67
|
}
|
|
68
68
|
var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
|
|
@@ -71,7 +71,7 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
|
|
|
71
71
|
}));
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
class
|
|
74
|
+
class Service76 extends Context.Service()("@opencode/Project") {
|
|
75
75
|
}
|
|
76
76
|
function fromRow(row) {
|
|
77
77
|
const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
|
|
@@ -94,11 +94,11 @@ function fromRow(row) {
|
|
|
94
94
|
sandboxes: row.sandboxes
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
var layer = Layer.effect(
|
|
97
|
+
var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
98
98
|
const fs = yield* FSUtil.Service;
|
|
99
99
|
const git = yield* Service78;
|
|
100
100
|
const proc = yield* AppProcess.Service;
|
|
101
|
-
const bus = yield*
|
|
101
|
+
const bus = yield* Service77;
|
|
102
102
|
const db = (yield* Service80).db;
|
|
103
103
|
const announcing = new Set;
|
|
104
104
|
const persist = Effect.fnUntraced(function* (project) {
|
|
@@ -144,7 +144,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
144
144
|
yield* bus.publish(Worktree.Event.Resolved, {
|
|
145
145
|
projectID: item.projectID,
|
|
146
146
|
directory: item.directory,
|
|
147
|
-
previous: project.previous ??
|
|
147
|
+
previous: project.previous ?? ID16.global,
|
|
148
148
|
...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
|
|
149
149
|
}, {
|
|
150
150
|
commit: () => db.insert(WorktreeTable2).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
|
|
@@ -173,7 +173,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
173
173
|
return project;
|
|
174
174
|
});
|
|
175
175
|
const cached = Effect.fnUntraced(function* (dir) {
|
|
176
|
-
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ?
|
|
176
|
+
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID16.make(value) : undefined), Effect.orElseSucceed(() => {
|
|
177
177
|
return;
|
|
178
178
|
}));
|
|
179
179
|
});
|
|
@@ -184,7 +184,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
184
184
|
const normalized = url(origin);
|
|
185
185
|
if (!normalized)
|
|
186
186
|
return;
|
|
187
|
-
return
|
|
187
|
+
return ID16.make(Hash.fast(`git-remote:${normalized}`));
|
|
188
188
|
});
|
|
189
189
|
function url(input) {
|
|
190
190
|
const value = input.trim();
|
|
@@ -209,7 +209,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
209
209
|
}
|
|
210
210
|
const rootCommit = Effect.fnUntraced(function* (repo) {
|
|
211
211
|
const root = (yield* git.history.rootCommits(repo))[0];
|
|
212
|
-
return root ?
|
|
212
|
+
return root ? ID16.make(root) : undefined;
|
|
213
213
|
});
|
|
214
214
|
const hgRoot = Effect.fnUntraced(function* (worktree) {
|
|
215
215
|
const result = yield* proc.run(ChildProcess.make("hg", ["log", "-r", "roots(all())", "-T", `{node}
|
|
@@ -225,7 +225,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
225
225
|
return;
|
|
226
226
|
const node = result.stdout.toString("utf8").split(`
|
|
227
227
|
`).map((item) => item.trim()).filter(Boolean).toSorted()[0];
|
|
228
|
-
return node ?
|
|
228
|
+
return node ? ID16.make(node) : undefined;
|
|
229
229
|
});
|
|
230
230
|
const hgDiscover = Effect.fnUntraced(function* (dotHg) {
|
|
231
231
|
const worktree = AbsolutePath2.make(path.dirname(dotHg));
|
|
@@ -234,7 +234,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
234
234
|
const id = previous ?? (yield* hgRoot(worktree));
|
|
235
235
|
return {
|
|
236
236
|
previous,
|
|
237
|
-
id: id ??
|
|
237
|
+
id: id ?? ID16.global,
|
|
238
238
|
directory: worktree,
|
|
239
239
|
vcs: { type: "hg", store }
|
|
240
240
|
};
|
|
@@ -251,7 +251,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
251
251
|
const canonical = repo.gitDirectory === repo.commonDirectory ? repo.worktree : yield* git.worktree.list(repo).pipe(Effect.map((items) => items.find((item) => item.kind === "main")?.directory ?? repo.worktree), Effect.orElseSucceed(() => repo.worktree));
|
|
252
252
|
return yield* persist({
|
|
253
253
|
previous,
|
|
254
|
-
id: id ??
|
|
254
|
+
id: id ?? ID16.global,
|
|
255
255
|
directory: repo.worktree,
|
|
256
256
|
canonical,
|
|
257
257
|
vcs: { type: "git", store: repo.commonDirectory }
|
|
@@ -265,18 +265,18 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
267
|
return yield* persist({
|
|
268
|
-
id:
|
|
268
|
+
id: ID16.make(Hash.fast(`directory:${directory}`)),
|
|
269
269
|
directory,
|
|
270
270
|
canonical: directory,
|
|
271
271
|
vcs: undefined
|
|
272
272
|
});
|
|
273
273
|
});
|
|
274
|
-
return
|
|
274
|
+
return Service76.of({ list, update, resolve });
|
|
275
275
|
}));
|
|
276
|
-
var
|
|
277
|
-
service:
|
|
276
|
+
var node81 = makeGlobalNode({
|
|
277
|
+
service: Service76,
|
|
278
278
|
layer,
|
|
279
|
-
deps: [
|
|
279
|
+
deps: [node82, node85, FSUtil.node, node83, AppProcess.node]
|
|
280
280
|
});
|
|
281
281
|
|
|
282
|
-
export {
|
|
282
|
+
export { ID16, Vcs2, Current2, Info31, UpdateInput3, NotFoundError10, root2, Service76, node81, exports_project };
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
managesTransactionsNatively2,
|
|
3
3
|
EffectSQLiteSession2,
|
|
4
4
|
EffectSQLiteTransaction2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./file-retention-e5fc1vxw.js";
|
|
6
6
|
import {
|
|
7
7
|
EffectSQLiteDatabase2,
|
|
8
8
|
DefaultServices2,
|
|
9
9
|
make23,
|
|
10
10
|
makeWithDefaults2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-retention-bw7hten5.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/database/drizzle/index.ts
|
|
17
17
|
var exports_drizzle = {};
|
|
@@ -1,26 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-982e01ww.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-retention-0vqp07g5.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageDecodeError2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-retention-tbcankzb.js";
|
|
10
10
|
import {
|
|
11
11
|
InitializationBlocked2,
|
|
12
12
|
read3
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./file-retention-yhr218qz.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./file-retention-hrvm11jt.js";
|
|
17
17
|
import {
|
|
18
18
|
initial2,
|
|
19
19
|
preview3
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./file-retention-snxwbbja.js";
|
|
21
|
+
import {
|
|
22
|
+
compatible2,
|
|
23
|
+
isCheckpoint2,
|
|
24
|
+
validate2
|
|
25
|
+
} from "./file-retention-bx5n9ey0.js";
|
|
21
26
|
import {
|
|
22
27
|
__export
|
|
23
|
-
} from "./
|
|
28
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
24
29
|
|
|
25
30
|
// src/session/history.ts
|
|
26
31
|
var exports_history = {};
|
|
@@ -30,40 +35,43 @@ __export(exports_history, {
|
|
|
30
35
|
entriesForRunner: () => entriesForRunner2,
|
|
31
36
|
firstUserMessage: () => firstUserMessage2,
|
|
32
37
|
latestCompaction: () => latestCompaction2,
|
|
33
|
-
load: () =>
|
|
38
|
+
load: () => load3,
|
|
34
39
|
preview: () => preview2
|
|
35
40
|
});
|
|
36
|
-
import { and, asc, desc, eq, gte, sql } from "drizzle-orm";
|
|
41
|
+
import { and, asc, desc, eq, gte, or, sql } from "drizzle-orm";
|
|
37
42
|
import { Effect, Schema } from "effect";
|
|
38
43
|
var decode = Schema.decodeUnknownEffect(SessionMessage2.Info);
|
|
39
|
-
var
|
|
40
|
-
|
|
44
|
+
var replayable = (message, boundary) => !isCheckpoint2(message) || boundary === "latest" || boundary !== "local" && compatible2(message.providerContext.provenance, boundary);
|
|
45
|
+
var latestCompaction2 = Effect.fnUntraced(function* (db, sessionID, boundary) {
|
|
46
|
+
return yield* db.select({ seq: SessionMessageTable2.seq }).from(SessionMessageTable2).where(and(eq(SessionMessageTable2.session_id, sessionID), eq(SessionMessageTable2.type, "compaction"), sql`json_extract(${SessionMessageTable2.data}, '$.status') = 'completed'`, boundary === "latest" ? undefined : or(sql`json_extract(${SessionMessageTable2.data}, '$.providerContext') is null`, boundary === "local" ? undefined : and(...Object.entries(boundary).map(([key, value]) => sql`json_extract(${SessionMessageTable2.data}, ${`$.providerContext.provenance.${key}`}) = ${value}`))))).orderBy(desc(SessionMessageTable2.seq)).limit(1).get().pipe(Effect.orDie);
|
|
41
47
|
});
|
|
42
|
-
var decodeMessageRow2 = (row) => decode({ ...row.data, id: row.id, type: row.type }).pipe(Effect.mapError(() => new MessageDecodeError2({
|
|
48
|
+
var decodeMessageRow2 = (row) => decode({ ...row.data, id: row.id, type: row.type }).pipe(Effect.tap((message) => isCheckpoint2(message) ? validate2(message.providerContext) : Effect.void), Effect.mapError(() => new MessageDecodeError2({
|
|
43
49
|
sessionID: SessionSchema2.ID.make(row.session_id),
|
|
44
50
|
messageID: SessionMessage2.ID.make(row.id)
|
|
45
51
|
})));
|
|
46
|
-
var messageEntries = Effect.fnUntraced(function* (db, sessionID) {
|
|
47
|
-
const compaction = yield* latestCompaction2(db, sessionID);
|
|
52
|
+
var messageEntries = Effect.fnUntraced(function* (db, sessionID, boundary) {
|
|
53
|
+
const compaction = yield* latestCompaction2(db, sessionID, boundary);
|
|
48
54
|
const rows = yield* db.select().from(SessionMessageTable2).where(and(eq(SessionMessageTable2.session_id, sessionID), compaction ? gte(SessionMessageTable2.seq, compaction.seq) : undefined)).orderBy(asc(SessionMessageTable2.seq)).all().pipe(Effect.orDie);
|
|
49
|
-
|
|
55
|
+
const entries = yield* Effect.forEach(rows, (row) => decodeMessageRow2(row).pipe(Effect.map((message) => ({ seq: row.seq, message }))));
|
|
56
|
+
const native = entries.findLast((entry) => isCheckpoint2(entry.message));
|
|
57
|
+
return entries.filter((entry) => !(entry.message.type === "system" && native && entry.seq < native.seq) && replayable(entry.message, boundary));
|
|
50
58
|
});
|
|
51
|
-
var
|
|
52
|
-
return (yield* messageEntries(db, sessionID)).map((entry) => entry.message);
|
|
59
|
+
var load3 = Effect.fn("SessionHistory.load")(function* (db, sessionID, boundary) {
|
|
60
|
+
return (yield* messageEntries(db, sessionID, boundary)).map((entry) => entry.message);
|
|
53
61
|
});
|
|
54
|
-
var entriesForRunner2 = Effect.fn("SessionHistory.entriesForRunner")(function* (db, sessionID, instructions) {
|
|
62
|
+
var entriesForRunner2 = Effect.fn("SessionHistory.entriesForRunner")(function* (db, sessionID, instructions, boundary) {
|
|
55
63
|
return yield* db.transaction(() => Effect.gen(function* () {
|
|
56
|
-
const messages = yield* messageEntries(db, sessionID);
|
|
64
|
+
const messages = yield* messageEntries(db, sessionID, boundary);
|
|
57
65
|
return {
|
|
58
66
|
initial: yield* initial2(db, sessionID, instructions),
|
|
59
67
|
entries: messages
|
|
60
68
|
};
|
|
61
69
|
})).pipe(Effect.orDie);
|
|
62
70
|
});
|
|
63
|
-
var preview2 = Effect.fn("SessionHistory.preview")(function* (db, sessionID, instructions) {
|
|
71
|
+
var preview2 = Effect.fn("SessionHistory.preview")(function* (db, sessionID, instructions, boundary) {
|
|
64
72
|
const observed = yield* read3(instructions);
|
|
65
73
|
return yield* db.transaction(() => Effect.gen(function* () {
|
|
66
|
-
const messages = yield* messageEntries(db, sessionID);
|
|
74
|
+
const messages = yield* messageEntries(db, sessionID, boundary);
|
|
67
75
|
const unsettled = messages.findIndex((entry) => entry.message.type === "assistant" && entry.message.time.completed === undefined);
|
|
68
76
|
const settled = unsettled === -1 ? messages : messages.slice(0, unsettled);
|
|
69
77
|
const assembled = yield* preview3(db, sessionID, instructions, observed);
|
|
@@ -84,4 +92,4 @@ var firstUserMessage2 = Effect.fn("SessionHistory.firstUserMessage")(function* (
|
|
|
84
92
|
return message?.type === "user" ? message : undefined;
|
|
85
93
|
});
|
|
86
94
|
|
|
87
|
-
export { latestCompaction2, decodeMessageRow2,
|
|
95
|
+
export { latestCompaction2, decodeMessageRow2, load3, entriesForRunner2, preview2, firstUserMessage2, exports_history };
|
|
@@ -4,28 +4,28 @@ import {
|
|
|
4
4
|
normalizeContent2,
|
|
5
5
|
normalizedName2,
|
|
6
6
|
effectiveName2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./file-retention-3t738kvx.js";
|
|
8
8
|
import {
|
|
9
9
|
create2,
|
|
10
10
|
catalog2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-retention-72nftnjy.js";
|
|
12
12
|
import {
|
|
13
13
|
create3
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./file-retention-kg06axw8.js";
|
|
15
15
|
import {
|
|
16
16
|
Service46,
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
node52
|
|
18
|
+
} from "./file-retention-5gnmt16f.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
20
|
+
Service72,
|
|
21
|
+
node77
|
|
22
|
+
} from "./file-retention-w6s4nrrc.js";
|
|
23
23
|
import {
|
|
24
24
|
match2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./file-retention-y1fvbwt7.js";
|
|
26
26
|
import {
|
|
27
27
|
__export
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
29
29
|
|
|
30
30
|
// src/tool.ts
|
|
31
31
|
var exports_tool = {};
|
|
@@ -35,10 +35,10 @@ __export(exports_tool, {
|
|
|
35
35
|
Error: () => Error3,
|
|
36
36
|
FileContent: () => FileContent3,
|
|
37
37
|
RegistrationError: () => RegistrationError2,
|
|
38
|
-
Service: () =>
|
|
38
|
+
Service: () => Service35,
|
|
39
39
|
TextContent: () => TextContent2,
|
|
40
40
|
Tool: () => exports_tool,
|
|
41
|
-
node: () =>
|
|
41
|
+
node: () => node40
|
|
42
42
|
});
|
|
43
43
|
import { CallID as CallID2, Content as Content3, Error as Error3, FileContent as FileContent3, TextContent as TextContent2 } from "@opencode-ai/schema/tool";
|
|
44
44
|
import { ToolDefinition } from "@opencode-ai/ai";
|
|
@@ -51,10 +51,10 @@ class RegistrationError2 extends Schema.TaggedError()("Tool.RegistrationError",
|
|
|
51
51
|
}) {
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class Service35 extends Context.Service()("@opencode/Tool") {
|
|
55
55
|
}
|
|
56
|
-
var layer = Layer.effect(
|
|
57
|
-
const hooks = yield*
|
|
56
|
+
var layer = Layer.effect(Service35, Effect.gen(function* () {
|
|
57
|
+
const hooks = yield* Service72;
|
|
58
58
|
const image = yield* Service46;
|
|
59
59
|
const normalizeImages = Effect.fnUntraced(function* (content) {
|
|
60
60
|
const normalized = yield* Effect.forEach(content, (item) => {
|
|
@@ -180,7 +180,7 @@ var layer = Layer.effect(Service45, Effect.gen(function* () {
|
|
|
180
180
|
error: error.message
|
|
181
181
|
}), { discard: true })
|
|
182
182
|
});
|
|
183
|
-
return
|
|
183
|
+
return Service35.of({
|
|
184
184
|
transform: state.transform,
|
|
185
185
|
reload: state.reload,
|
|
186
186
|
snapshot: Effect.fn("Tool.snapshot")((permissions) => Effect.sync(() => {
|
|
@@ -262,10 +262,10 @@ function namespaceError(name) {
|
|
|
262
262
|
return;
|
|
263
263
|
return new RegistrationError2({ name, message: `Invalid tool namespace: ${JSON.stringify(name)}` });
|
|
264
264
|
}
|
|
265
|
-
var
|
|
266
|
-
service:
|
|
265
|
+
var node40 = makeLocationNode({
|
|
266
|
+
service: Service35,
|
|
267
267
|
layer,
|
|
268
|
-
deps: [
|
|
268
|
+
deps: [node77, node52]
|
|
269
269
|
});
|
|
270
270
|
|
|
271
|
-
export { RegistrationError2,
|
|
271
|
+
export { RegistrationError2, Service35, node40, exports_tool, CallID2, Content3, Error3, FileContent3, TextContent2 };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
ID8,
|
|
3
|
+
Service66
|
|
4
|
+
} from "./file-retention-dtz2xhtw.js";
|
|
5
5
|
import {
|
|
6
6
|
isAISDK2,
|
|
7
7
|
packageName2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./file-retention-9019yept.js";
|
|
9
9
|
|
|
10
10
|
// src/plugin/provider/llmgateway.ts
|
|
11
11
|
import { Effect } from "effect";
|
|
@@ -13,7 +13,7 @@ import { define } from "@opencode-ai/plugin/effect/plugin";
|
|
|
13
13
|
var LLMGatewayPlugin2 = define({
|
|
14
14
|
id: "opencode.provider.llmgateway",
|
|
15
15
|
effect: Effect.fn(function* (ctx) {
|
|
16
|
-
const integrations = yield*
|
|
16
|
+
const integrations = yield* Service66;
|
|
17
17
|
const configured = new Set((yield* integrations.list()).map((integration) => integration.id));
|
|
18
18
|
yield* ctx.catalog.transform((evt) => {
|
|
19
19
|
for (const item of evt.provider.list()) {
|
|
@@ -25,7 +25,7 @@ var LLMGatewayPlugin2 = define({
|
|
|
25
25
|
continue;
|
|
26
26
|
if (item.provider.settings?.baseURL !== "https://api.llmgateway.io/v1")
|
|
27
27
|
continue;
|
|
28
|
-
if (!configured.has(
|
|
28
|
+
if (!configured.has(ID8.make(item.provider.id)))
|
|
29
29
|
continue;
|
|
30
30
|
evt.provider.update(item.provider.id, (provider) => {
|
|
31
31
|
provider.headers = {
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Service77,
|
|
3
|
+
node82
|
|
4
|
+
} from "./file-retention-tmm76dnc.js";
|
|
1
5
|
import {
|
|
2
6
|
Service79,
|
|
3
7
|
node84
|
|
4
|
-
} from "./
|
|
5
|
-
import {
|
|
6
|
-
Service73,
|
|
7
|
-
node78
|
|
8
|
-
} from "./worktree-pq5hrpmt.js";
|
|
8
|
+
} from "./file-retention-wn6ay9n5.js";
|
|
9
9
|
import {
|
|
10
10
|
create3
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-retention-kg06axw8.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/websearch.ts
|
|
17
17
|
var exports_websearch3 = {};
|
|
18
18
|
__export(exports_websearch3, {
|
|
19
19
|
DisabledError: () => DisabledError2,
|
|
20
|
-
Event: () =>
|
|
21
|
-
ID: () =>
|
|
22
|
-
Input: () =>
|
|
20
|
+
Event: () => Event7,
|
|
21
|
+
ID: () => ID6,
|
|
22
|
+
Input: () => Input14,
|
|
23
23
|
Provider: () => Provider2,
|
|
24
24
|
ProviderKey: () => ProviderKey2,
|
|
25
25
|
ProviderNotFoundError: () => ProviderNotFoundError2,
|
|
@@ -28,29 +28,29 @@ __export(exports_websearch3, {
|
|
|
28
28
|
Response: () => Response2,
|
|
29
29
|
Result: () => Result2,
|
|
30
30
|
Selection: () => Selection2,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service45,
|
|
32
32
|
WebSearch: () => exports_websearch3,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node51
|
|
34
34
|
});
|
|
35
35
|
import { WebSearch } from "@opencode-ai/schema/websearch";
|
|
36
36
|
import { SessionEvent } from "@opencode-ai/schema/session-event";
|
|
37
37
|
import { Clock, Context, Effect, Layer, Option, Schema, Stream } from "effect";
|
|
38
38
|
import { HttpClientError } from "effect/unstable/http";
|
|
39
39
|
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
40
|
-
import { Event as
|
|
41
|
-
var
|
|
40
|
+
import { Event as Event7 } from "@opencode-ai/schema/websearch";
|
|
41
|
+
var ID6 = WebSearch.ID;
|
|
42
42
|
var Provider2 = WebSearch.Provider;
|
|
43
|
-
var
|
|
43
|
+
var Input14 = WebSearch.Input;
|
|
44
44
|
var Result2 = WebSearch.Result;
|
|
45
45
|
var Response2 = WebSearch.Response;
|
|
46
46
|
var ProviderKey2 = "websearch:provider";
|
|
47
|
-
var Selection2 = Schema.Union([
|
|
47
|
+
var Selection2 = Schema.Union([ID6, Schema.Literal("random"), Schema.Literal(false)]);
|
|
48
48
|
|
|
49
49
|
class ProviderRequiredError2 extends Schema.TaggedError()("WebSearch.ProviderRequired", {}) {
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
class ProviderNotFoundError2 extends Schema.TaggedError()("WebSearch.ProviderNotFound", {
|
|
53
|
-
providerID:
|
|
53
|
+
providerID: ID6
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -58,16 +58,16 @@ class DisabledError2 extends Schema.TaggedError()("WebSearch.Disabled", {}) {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
class RequestError2 extends Schema.TaggedError()("WebSearch.Request", {
|
|
61
|
-
providerID:
|
|
61
|
+
providerID: ID6,
|
|
62
62
|
cause: Schema.Defect()
|
|
63
63
|
}) {
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
class
|
|
66
|
+
class Service45 extends Context.Service()("@opencode/WebSearch") {
|
|
67
67
|
}
|
|
68
|
-
var layer = Layer.effect(
|
|
69
|
-
const bus = yield*
|
|
70
|
-
const kv = yield*
|
|
68
|
+
var layer = Layer.effect(Service45, Effect.gen(function* () {
|
|
69
|
+
const bus = yield* Service77;
|
|
70
|
+
const kv = yield* Service79;
|
|
71
71
|
const decodeResults = Schema.decodeUnknownEffect(Schema.Array(Result2));
|
|
72
72
|
const cooldowns = new Map;
|
|
73
73
|
const preferred = new Map;
|
|
@@ -124,7 +124,7 @@ var layer = Layer.effect(Service21, Effect.gen(function* () {
|
|
|
124
124
|
}
|
|
125
125
|
return choice ? state.get().providers.get(choice) : undefined;
|
|
126
126
|
});
|
|
127
|
-
return
|
|
127
|
+
return Service45.of({
|
|
128
128
|
transform: state.transform,
|
|
129
129
|
reload: state.reload,
|
|
130
130
|
providers: Effect.fn("WebSearch.providers")(function* () {
|
|
@@ -184,10 +184,10 @@ function cooldownMillis(value, now) {
|
|
|
184
184
|
const date = Date.parse(value);
|
|
185
185
|
return Number.isFinite(date) ? Math.max(0, date - now) : 60000;
|
|
186
186
|
}
|
|
187
|
-
var
|
|
188
|
-
service:
|
|
187
|
+
var node51 = makeLocationNode({
|
|
188
|
+
service: Service45,
|
|
189
189
|
layer,
|
|
190
|
-
deps: [
|
|
190
|
+
deps: [node82, node84]
|
|
191
191
|
});
|
|
192
192
|
|
|
193
|
-
export {
|
|
193
|
+
export { ID6, Provider2, Input14, Result2, Response2, ProviderKey2, Selection2, ProviderRequiredError2, ProviderNotFoundError2, DisabledError2, RequestError2, Service45, node51, exports_websearch3, Event7 };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID18,
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./file-retention-9019yept.js";
|
|
6
6
|
|
|
7
7
|
// src/plugin/provider/google-vertex.ts
|
|
8
8
|
import { Effect } from "effect";
|
|
@@ -39,7 +39,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
39
39
|
for (const item of evt.provider.list()) {
|
|
40
40
|
if (!isAISDK2(item.provider.package))
|
|
41
41
|
continue;
|
|
42
|
-
if (packageName2(item.provider.package) !== "@ai-sdk/google-vertex" && !(item.provider.id ===
|
|
42
|
+
if (packageName2(item.provider.package) !== "@ai-sdk/google-vertex" && !(item.provider.id === ID18.googleVertex && packageName2(item.provider.package)?.includes("@ai-sdk/openai-compatible")))
|
|
43
43
|
continue;
|
|
44
44
|
const project = resolveProject(item.provider.settings ?? {});
|
|
45
45
|
const location = String(resolveLocation(item.provider.settings ?? {}));
|
|
@@ -56,7 +56,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
59
|
-
if (evt.model.providerID ===
|
|
59
|
+
if (evt.model.providerID === ID18.googleVertex && evt.package.includes("@ai-sdk/openai-compatible")) {
|
|
60
60
|
evt.options.fetch = authFetch(evt.options.fetch);
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
@@ -87,7 +87,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
87
87
|
});
|
|
88
88
|
}));
|
|
89
89
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
90
|
-
if (evt.model.providerID !==
|
|
90
|
+
if (evt.model.providerID !== ID18.googleVertex)
|
|
91
91
|
return;
|
|
92
92
|
evt.language = evt.sdk.languageModel(String(evt.model.modelID ?? evt.model.id).trim());
|
|
93
93
|
}));
|