@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.
Files changed (814) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +81 -81
  3. package/dist/aisdk-native.js +2 -2
  4. package/dist/aisdk.js +6 -6
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +71 -71
  7. package/dist/catalog.js +83 -83
  8. package/dist/chunks/{worktree-e2xpxj6j.js → file-retention-0287bcr4.js} +22 -22
  9. package/dist/chunks/{worktree-kxf02bzq.js → file-retention-08px7ct2.js} +21 -21
  10. package/dist/chunks/{worktree-hevn35yy.js → file-retention-0dfa6scd.js} +7 -7
  11. package/dist/chunks/{worktree-0e0xafbb.js → file-retention-0e0xafbb.js} +2 -2
  12. package/dist/chunks/{worktree-gqvj11y0.js → file-retention-0egdgj0d.js} +18 -18
  13. package/dist/chunks/{worktree-0paq2nw3.js → file-retention-0paq2nw3.js} +1 -1
  14. package/dist/chunks/{worktree-0q0f95c6.js → file-retention-0q0f95c6.js} +1 -1
  15. package/dist/chunks/{worktree-52vxm64v.js → file-retention-0r296h1k.js} +25 -25
  16. package/dist/chunks/{worktree-0s9ayhjt.js → file-retention-0s9ayhjt.js} +1 -1
  17. package/dist/chunks/{worktree-yh9c67q5.js → file-retention-0sk2j9ke.js} +4 -4
  18. package/dist/chunks/{worktree-f8pec4ch.js → file-retention-0tfzfc80.js} +15 -15
  19. package/dist/chunks/{worktree-r98e92ep.js → file-retention-0v53mg2y.js} +4 -4
  20. package/dist/chunks/{worktree-mq9r6drf.js → file-retention-0vqp07g5.js} +3 -3
  21. package/dist/chunks/{worktree-wgc064dh.js → file-retention-169jagr2.js} +10 -10
  22. package/dist/chunks/{worktree-yywg80z9.js → file-retention-19qd847z.js} +6 -6
  23. package/dist/chunks/{worktree-1ct4r87x.js → file-retention-1ct4r87x.js} +1 -1
  24. package/dist/chunks/{worktree-pjw83wd2.js → file-retention-1ggjvb61.js} +28 -28
  25. package/dist/chunks/{worktree-ne4zyw3a.js → file-retention-1hdmp3m0.js} +12 -12
  26. package/dist/chunks/{worktree-6y2e0e4e.js → file-retention-1jh2bxey.js} +13 -13
  27. package/dist/chunks/{worktree-6v6snzyf.js → file-retention-1p48dy4j.js} +24 -24
  28. package/dist/chunks/{worktree-tqmakht3.js → file-retention-1q1y40j8.js} +189 -94
  29. package/dist/chunks/{worktree-hnyf01b0.js → file-retention-1r60bktf.js} +20 -4
  30. package/dist/chunks/{worktree-410zfba8.js → file-retention-1wcfs5an.js} +2 -2
  31. package/dist/chunks/{worktree-3883t5g1.js → file-retention-1ydgq2r4.js} +5 -5
  32. package/dist/chunks/{worktree-h08w630h.js → file-retention-1z25nwdj.js} +41 -50
  33. package/dist/chunks/{worktree-21r38tys.js → file-retention-21r38tys.js} +1 -1
  34. package/dist/chunks/{worktree-2402vzrj.js → file-retention-2402vzrj.js} +1 -1
  35. package/dist/chunks/{worktree-2a5m3afh.js → file-retention-2a5m3afh.js} +1 -1
  36. package/dist/chunks/{worktree-2ht70gj7.js → file-retention-2ht70gj7.js} +1 -1
  37. package/dist/chunks/{worktree-7nmnk1wx.js → file-retention-2x7vmnaj.js} +23 -23
  38. package/dist/chunks/{worktree-pfzksdxq.js → file-retention-34eb3mab.js} +24 -24
  39. package/dist/chunks/{worktree-zbjnn3ac.js → file-retention-34jntwha.js} +7 -0
  40. package/dist/chunks/{worktree-8k6sjvxx.js → file-retention-3dzp2ssk.js} +11 -11
  41. package/dist/chunks/{worktree-gdvy8fx6.js → file-retention-3fc6dm20.js} +4 -4
  42. package/dist/chunks/{worktree-3hepkmqq.js → file-retention-3hepkmqq.js} +1 -1
  43. package/dist/chunks/{worktree-1ytn6e3p.js → file-retention-3hkvw3fm.js} +8 -8
  44. package/dist/chunks/{worktree-mfpdf0ta.js → file-retention-3jyr1z4v.js} +7 -7
  45. package/dist/chunks/{worktree-3qzbfqsy.js → file-retention-3qzbfqsy.js} +2 -2
  46. package/dist/chunks/{worktree-3smtnn6g.js → file-retention-3smtnn6g.js} +1 -1
  47. package/dist/chunks/{worktree-3tvqynh2.js → file-retention-3tvqynh2.js} +1 -1
  48. package/dist/chunks/{worktree-qyza05bp.js → file-retention-3v92ygys.js} +26 -26
  49. package/dist/chunks/{worktree-tq32dsfx.js → file-retention-3yq3pj1g.js} +15 -15
  50. package/dist/chunks/{worktree-454k5vzh.js → file-retention-454k5vzh.js} +1 -1
  51. package/dist/chunks/{worktree-066kw2xy.js → file-retention-48dkwq03.js} +3 -3
  52. package/dist/chunks/{worktree-a8g0fabb.js → file-retention-4a8k7zg7.js} +9 -9
  53. package/dist/chunks/{worktree-94pmskv9.js → file-retention-4gj1y2sv.js} +4 -4
  54. package/dist/chunks/{worktree-7214vx64.js → file-retention-4jvbp95j.js} +4 -4
  55. package/dist/chunks/{worktree-srxvp5n6.js → file-retention-4khp0kk4.js} +14 -14
  56. package/dist/chunks/{worktree-avwxaxy8.js → file-retention-4map1fd3.js} +27 -27
  57. package/dist/chunks/{worktree-4r2nyarf.js → file-retention-4r2nyarf.js} +1 -1
  58. package/dist/chunks/{worktree-m9xhrdze.js → file-retention-4rgjvnqr.js} +14 -14
  59. package/dist/chunks/{worktree-fj906p38.js → file-retention-4thyt0cr.js} +16 -16
  60. package/dist/chunks/{worktree-xr5vwsd4.js → file-retention-4x0nmcjx.js} +9 -9
  61. package/dist/chunks/{worktree-k3skpd5n.js → file-retention-4xzh45c0.js} +10 -10
  62. package/dist/chunks/{worktree-5r8w58wp.js → file-retention-503qcs8e.js} +17 -17
  63. package/dist/chunks/{worktree-bj3t22s0.js → file-retention-51a45nv8.js} +55 -39
  64. package/dist/chunks/{worktree-fss4j797.js → file-retention-52s6f7rv.js} +26 -26
  65. package/dist/chunks/{worktree-t5ad4xaj.js → file-retention-530egx9a.js} +8 -8
  66. package/dist/chunks/file-retention-54w4zsch.js +247 -0
  67. package/dist/chunks/{worktree-56gdpj1q.js → file-retention-56gdpj1q.js} +2 -2
  68. package/dist/chunks/{worktree-bsv171pv.js → file-retention-57xtfwrp.js} +8 -8
  69. package/dist/chunks/{worktree-gcaq7q8d.js → file-retention-5btxcb89.js} +6 -6
  70. package/dist/chunks/{worktree-5daktx2q.js → file-retention-5daktx2q.js} +1 -1
  71. package/dist/chunks/{worktree-5fmxt4p5.js → file-retention-5fmxt4p5.js} +1 -1
  72. package/dist/chunks/{worktree-vy8y55ac.js → file-retention-5gejhz5w.js} +27 -27
  73. package/dist/chunks/{worktree-7w74e5nf.js → file-retention-5gnmt16f.js} +5 -5
  74. package/dist/chunks/{worktree-87hmtf6v.js → file-retention-5j73ae1t.js} +14 -14
  75. package/dist/chunks/{worktree-5jvc5tg2.js → file-retention-5jvc5tg2.js} +1 -1
  76. package/dist/chunks/{worktree-c047tdby.js → file-retention-5sdg7nhe.js} +18 -14
  77. package/dist/chunks/{worktree-nz4zy0sw.js → file-retention-63zheg14.js} +26 -26
  78. package/dist/chunks/{worktree-vxz7khjw.js → file-retention-64x7r6w5.js} +35 -42
  79. package/dist/chunks/{worktree-ce9ncmzb.js → file-retention-654r7z1p.js} +27 -4
  80. package/dist/chunks/{worktree-zht09bnk.js → file-retention-6e53nqzr.js} +8 -8
  81. package/dist/chunks/{worktree-xgqr5ys9.js → file-retention-6nbxm2ze.js} +26 -26
  82. package/dist/chunks/{worktree-edz5pbw5.js → file-retention-6pcza54a.js} +28 -57
  83. package/dist/chunks/{worktree-711hfp6y.js → file-retention-711hfp6y.js} +2 -2
  84. package/dist/chunks/{worktree-72nftnjy.js → file-retention-72nftnjy.js} +2 -2
  85. package/dist/chunks/{worktree-73tb2d7t.js → file-retention-73tb2d7t.js} +1 -1
  86. package/dist/chunks/{worktree-tmjhps6z.js → file-retention-76zyzh78.js} +9 -9
  87. package/dist/chunks/{worktree-7bmhse3q.js → file-retention-7bmhse3q.js} +1 -1
  88. package/dist/chunks/{worktree-najyedn1.js → file-retention-7bnvhct6.js} +5 -5
  89. package/dist/chunks/{worktree-471a560f.js → file-retention-7bz1waha.js} +62 -62
  90. package/dist/chunks/{worktree-2k8khapm.js → file-retention-7dqw4kz8.js} +5 -5
  91. package/dist/chunks/{worktree-j6jsstpv.js → file-retention-7dxvk8sj.js} +23 -23
  92. package/dist/chunks/{worktree-vspn1zx3.js → file-retention-7jhvs3pe.js} +23 -23
  93. package/dist/chunks/{worktree-t8vr1kn7.js → file-retention-7z9p2wdr.js} +9 -9
  94. package/dist/chunks/file-retention-7zk4hah4.js +4 -0
  95. package/dist/chunks/{worktree-bpnz08mb.js → file-retention-809xf7e2.js} +2 -2
  96. package/dist/chunks/{worktree-nnad2ash.js → file-retention-8q8fk282.js} +46 -46
  97. package/dist/chunks/{worktree-mh0thj4x.js → file-retention-8tbmtt69.js} +15 -15
  98. package/dist/chunks/{worktree-kmcjptjm.js → file-retention-8vmp5gpy.js} +1 -1
  99. package/dist/chunks/{worktree-tgpzk4tr.js → file-retention-8x1thw8y.js} +10 -10
  100. package/dist/chunks/{worktree-zkj92s1w.js → file-retention-9019yept.js} +6 -6
  101. package/dist/chunks/{worktree-y2cqme3r.js → file-retention-93a8yfjt.js} +5 -5
  102. package/dist/chunks/{worktree-ex625ka3.js → file-retention-971pvjyy.js} +5 -5
  103. package/dist/chunks/{worktree-j1yqv9s7.js → file-retention-9gwy9zfk.js} +15 -15
  104. package/dist/chunks/{worktree-9g259f3c.js → file-retention-9krggx7e.js} +6 -6
  105. package/dist/chunks/{worktree-9qm9egsn.js → file-retention-9qm9egsn.js} +2 -2
  106. package/dist/chunks/{worktree-7er3jcv0.js → file-retention-9rvda89d.js} +25 -25
  107. package/dist/chunks/{worktree-wvbw7nq4.js → file-retention-9t0pwkeq.js} +15 -15
  108. package/dist/chunks/{worktree-58hqrsnb.js → file-retention-9w4m4ymy.js} +29 -29
  109. package/dist/chunks/{worktree-hcs930pp.js → file-retention-9yw3vay8.js} +9 -9
  110. package/dist/chunks/{worktree-9kwyppn5.js → file-retention-a296k1k9.js} +15 -15
  111. package/dist/chunks/{worktree-z1sr0xrs.js → file-retention-a3mn64bp.js} +4 -4
  112. package/dist/chunks/{worktree-mtq6xxnx.js → file-retention-a46v4e4v.js} +7 -7
  113. package/dist/chunks/{worktree-61k64wys.js → file-retention-a98rapcn.js} +18 -18
  114. package/dist/chunks/{worktree-aaet6srn.js → file-retention-aaet6srn.js} +2 -2
  115. package/dist/chunks/{worktree-g89m0qrn.js → file-retention-aamsyqd7.js} +32 -32
  116. package/dist/chunks/{worktree-q8qsy7xy.js → file-retention-ab1km4sg.js} +20 -20
  117. package/dist/chunks/{worktree-06x8he3q.js → file-retention-afdssyjb.js} +4 -4
  118. package/dist/chunks/{worktree-ajtjthsy.js → file-retention-ajtjthsy.js} +2 -2
  119. package/dist/chunks/{worktree-7g2k4w5v.js → file-retention-ambpxxez.js} +31 -31
  120. package/dist/chunks/{worktree-yfbd16n1.js → file-retention-azbx08pf.js} +4 -2
  121. package/dist/chunks/{worktree-sn5ar8h4.js → file-retention-b49m8fgq.js} +1 -1
  122. package/dist/chunks/{worktree-b6gygkdw.js → file-retention-b6gygkdw.js} +2 -2
  123. package/dist/chunks/{worktree-cfsc9srb.js → file-retention-b77p7m16.js} +4 -4
  124. package/dist/chunks/{worktree-zgsac5yt.js → file-retention-b83hqy8d.js} +7 -7
  125. package/dist/chunks/{worktree-b9wsbatv.js → file-retention-b9wsbatv.js} +1 -1
  126. package/dist/chunks/{worktree-r226ndvg.js → file-retention-bmes7amk.js} +36 -36
  127. package/dist/chunks/{worktree-3g2y1byn.js → file-retention-btc4hvws.js} +5 -5
  128. package/dist/chunks/{worktree-b3kfkjj6.js → file-retention-btht280w.js} +8 -5
  129. package/dist/chunks/{worktree-040j8z8f.js → file-retention-bw7hten5.js} +3 -3
  130. package/dist/chunks/file-retention-bx5n9ey0.js +55 -0
  131. package/dist/chunks/{worktree-35bk7ths.js → file-retention-cavx7z03.js} +85 -85
  132. package/dist/chunks/{worktree-sxrnkw1n.js → file-retention-cex0ectg.js} +9 -9
  133. package/dist/chunks/{worktree-q3yxb0xv.js → file-retention-cwd49fgd.js} +11 -11
  134. package/dist/chunks/{worktree-d72308c8.js → file-retention-d72308c8.js} +2 -2
  135. package/dist/chunks/{worktree-tza14zss.js → file-retention-db39sy3g.js} +32 -32
  136. package/dist/chunks/{worktree-wt966625.js → file-retention-df3cbvs4.js} +17 -17
  137. package/dist/chunks/{worktree-fgdwx9dj.js → file-retention-dtz2xhtw.js} +27 -27
  138. package/dist/chunks/{worktree-62mr7g8a.js → file-retention-dwebx4g8.js} +10 -10
  139. package/dist/chunks/file-retention-dxj72tfx.js +18 -0
  140. package/dist/chunks/{worktree-xy07edwq.js → file-retention-dxv3bfmb.js} +33 -33
  141. package/dist/chunks/{worktree-rh7y5xh0.js → file-retention-dykj04b8.js} +1 -1
  142. package/dist/chunks/{worktree-zn2cbnfs.js → file-retention-dyqxbeha.js} +11 -11
  143. package/dist/chunks/{worktree-63nctvwe.js → file-retention-e0kn3btm.js} +58 -58
  144. package/dist/chunks/{worktree-jkzajkdb.js → file-retention-e4fe74de.js} +18 -18
  145. package/dist/chunks/{worktree-y14y9keq.js → file-retention-e5fc1vxw.js} +1 -1
  146. package/dist/chunks/{worktree-0n1w7scn.js → file-retention-e5vw0egj.js} +5 -5
  147. package/dist/chunks/{worktree-eg4pr325.js → file-retention-eg4pr325.js} +3 -3
  148. package/dist/chunks/{worktree-b08spypp.js → file-retention-emmsgc7p.js} +11 -11
  149. package/dist/chunks/{worktree-vhjdrq5e.js → file-retention-emyx9er5.js} +5 -5
  150. package/dist/chunks/{worktree-wga61mrz.js → file-retention-ep9enyxr.js} +17 -16
  151. package/dist/chunks/{worktree-1459npmt.js → file-retention-er3f8aqh.js} +34 -42
  152. package/dist/chunks/{worktree-pr0pn8m6.js → file-retention-er9t76qp.js} +15 -15
  153. package/dist/chunks/{worktree-m9asb4sr.js → file-retention-ezhxkjns.js} +33 -33
  154. package/dist/chunks/file-retention-f268p0jz.js +114 -0
  155. package/dist/chunks/{worktree-m7nj5h8z.js → file-retention-f5y7cb2r.js} +14 -14
  156. package/dist/chunks/{worktree-adv3g3q6.js → file-retention-f60rqjgw.js} +11 -11
  157. package/dist/chunks/{worktree-rd9hzb43.js → file-retention-ff89hqjf.js} +12 -12
  158. package/dist/chunks/{worktree-5nygvj5f.js → file-retention-fp34rt5y.js} +20 -20
  159. package/dist/chunks/{worktree-fxbjtjnd.js → file-retention-fxbjtjnd.js} +1 -1
  160. package/dist/chunks/{worktree-fxypknc8.js → file-retention-fxypknc8.js} +1 -1
  161. package/dist/chunks/{worktree-tgz6nsmd.js → file-retention-fy8y407q.js} +50 -50
  162. package/dist/chunks/{worktree-1n116cmy.js → file-retention-fz1pdqz4.js} +9 -9
  163. package/dist/chunks/{worktree-a29r829w.js → file-retention-g0j16pt1.js} +52 -52
  164. package/dist/chunks/{worktree-cnvcdvk7.js → file-retention-g97k7hqe.js} +6 -6
  165. package/dist/chunks/{worktree-qvk768dr.js → file-retention-g993n2k7.js} +11 -11
  166. package/dist/chunks/{worktree-gd4qta3r.js → file-retention-gd4qta3r.js} +1 -1
  167. package/dist/chunks/{worktree-zh2rh6rn.js → file-retention-gdjb7na3.js} +17 -17
  168. package/dist/chunks/{worktree-hctjcsn3.js → file-retention-gqv7w6by.js} +69 -64
  169. package/dist/chunks/{worktree-xpxmebhh.js → file-retention-gztfqjt6.js} +46 -46
  170. package/dist/chunks/{worktree-gq1q1b4e.js → file-retention-h42awfrh.js} +11 -11
  171. package/dist/chunks/{worktree-5zcapbqz.js → file-retention-h511sj23.js} +30 -30
  172. package/dist/chunks/{worktree-1gvs4d4m.js → file-retention-h64bhzsz.js} +27 -27
  173. package/dist/chunks/{worktree-d4w17cfe.js → file-retention-h6h8wc8c.js} +3 -3
  174. package/dist/chunks/{worktree-h6vf3j39.js → file-retention-h6vf3j39.js} +1 -1
  175. package/dist/chunks/{worktree-heyhwy2w.js → file-retention-heyhwy2w.js} +1 -1
  176. package/dist/chunks/{worktree-vynk1gtr.js → file-retention-hpnhdz6t.js} +13 -13
  177. package/dist/chunks/{worktree-hrvm11jt.js → file-retention-hrvm11jt.js} +3 -3
  178. package/dist/chunks/{worktree-zh93cpfk.js → file-retention-hvw9ez06.js} +20 -20
  179. package/dist/chunks/{worktree-kvsjn1dr.js → file-retention-hw4pv20g.js} +2 -2
  180. package/dist/chunks/{worktree-rfedyjyh.js → file-retention-jb9jk37q.js} +19 -19
  181. package/dist/chunks/{worktree-qyv79zw0.js → file-retention-jpvwbg27.js} +22 -22
  182. package/dist/chunks/{worktree-ze4dnq9c.js → file-retention-jw80jp6b.js} +19 -19
  183. package/dist/chunks/{worktree-jm1y8vkw.js → file-retention-k03ey5t7.js} +11 -11
  184. package/dist/chunks/{worktree-xk6kcd15.js → file-retention-k1vkejwd.js} +3 -3
  185. package/dist/chunks/{worktree-k4bwy1x5.js → file-retention-k4bwy1x5.js} +1 -1
  186. package/dist/chunks/{worktree-kg8hghrp.js → file-retention-k4eh3acx.js} +41 -41
  187. package/dist/chunks/{worktree-adacqx41.js → file-retention-kaxe1s77.js} +17 -17
  188. package/dist/chunks/{worktree-kg06axw8.js → file-retention-kg06axw8.js} +1 -1
  189. package/dist/chunks/{worktree-xwsmtwfv.js → file-retention-knefre3q.js} +5 -5
  190. package/dist/chunks/{worktree-5d98etyc.js → file-retention-kpev0jfb.js} +15 -15
  191. package/dist/chunks/{worktree-bg50jbb6.js → file-retention-kz0qf9hw.js} +85 -82
  192. package/dist/chunks/{worktree-xgjy9czn.js → file-retention-m1z2avc0.js} +9 -9
  193. package/dist/chunks/{worktree-mtd0mgtt.js → file-retention-m6jejm1p.js} +41 -41
  194. package/dist/chunks/{worktree-m9w0rfyh.js → file-retention-m9w0rfyh.js} +1 -1
  195. package/dist/chunks/{worktree-vqfj6rgg.js → file-retention-mr56sp72.js} +19 -19
  196. package/dist/chunks/{worktree-cs4zqdxc.js → file-retention-mwbry6nn.js} +4 -4
  197. package/dist/chunks/{worktree-2hth30a0.js → file-retention-naqx5crp.js} +8 -8
  198. package/dist/chunks/{worktree-e82z9tr0.js → file-retention-nhy5jxhy.js} +7 -7
  199. package/dist/chunks/{worktree-842v7csv.js → file-retention-nqvfwm7d.js} +14 -14
  200. package/dist/chunks/{worktree-2yb0w078.js → file-retention-ny14xqs8.js} +3 -3
  201. package/dist/chunks/{worktree-8dff8bqa.js → file-retention-p3p972wa.js} +5 -5
  202. package/dist/chunks/{worktree-30e1hbbk.js → file-retention-p94mrc9t.js} +29 -28
  203. package/dist/chunks/{worktree-j935v87r.js → file-retention-paphc93g.js} +2 -2
  204. package/dist/chunks/{worktree-qqt43bp1.js → file-retention-pbp1se8d.js} +23 -23
  205. package/dist/chunks/{worktree-qqtwvk4z.js → file-retention-pf2hb43r.js} +4 -4
  206. package/dist/chunks/{worktree-pjvnvgmy.js → file-retention-pjvnvgmy.js} +1 -1
  207. package/dist/chunks/{worktree-pknna89w.js → file-retention-pknna89w.js} +1 -1
  208. package/dist/chunks/{worktree-v6s3zgrk.js → file-retention-pr9g8gys.js} +6 -6
  209. package/dist/chunks/{worktree-s06dat1t.js → file-retention-pt1jjr6j.js} +9 -9
  210. package/dist/chunks/{worktree-prrfs6yw.js → file-retention-q38gs549.js} +21 -21
  211. package/dist/chunks/{worktree-6yybv5x8.js → file-retention-q7j76h9b.js} +17 -17
  212. package/dist/chunks/{worktree-t9qj8c83.js → file-retention-qb3txf5b.js} +10 -10
  213. package/dist/chunks/{worktree-wx13dy4y.js → file-retention-qp4whs7y.js} +19 -16
  214. package/dist/chunks/{worktree-b1chm04x.js → file-retention-qq8x5mwt.js} +7 -7
  215. package/dist/chunks/{worktree-qsdy395h.js → file-retention-qsdy395h.js} +1 -1
  216. package/dist/chunks/{worktree-hbxp6gk0.js → file-retention-qv0b9wx6.js} +3 -3
  217. package/dist/chunks/{worktree-txt2cax8.js → file-retention-qw80c7h1.js} +296 -294
  218. package/dist/chunks/{worktree-sy2xv61m.js → file-retention-qykqfys3.js} +1 -1
  219. package/dist/chunks/{worktree-rqqsyksf.js → file-retention-qzv1jgwe.js} +28 -28
  220. package/dist/chunks/{worktree-qafexnn6.js → file-retention-r2d9jv9d.js} +13 -9
  221. package/dist/chunks/{worktree-r8dhm0tv.js → file-retention-r8dhm0tv.js} +1 -1
  222. package/dist/chunks/{worktree-gvcph31s.js → file-retention-r8xk55zx.js} +12 -12
  223. package/dist/chunks/{worktree-yp2x3t23.js → file-retention-r8xr0va3.js} +4 -4
  224. package/dist/chunks/{worktree-ajphwd6y.js → file-retention-rae26gbb.js} +8 -8
  225. package/dist/chunks/{worktree-g43vvm86.js → file-retention-rdsh588k.js} +7 -7
  226. package/dist/chunks/{worktree-3cj33xev.js → file-retention-rpzf37ve.js} +37 -44
  227. package/dist/chunks/{worktree-z168y132.js → file-retention-rqwyf4a8.js} +35 -44
  228. package/dist/chunks/{worktree-wjy58fct.js → file-retention-rvfs50bv.js} +12 -12
  229. package/dist/chunks/{worktree-dpdxxwta.js → file-retention-rvhss2m2.js} +4 -4
  230. package/dist/chunks/{worktree-m7w02m4e.js → file-retention-rz8xxtng.js} +22 -22
  231. package/dist/chunks/{worktree-smk292jk.js → file-retention-s283m12p.js} +169 -169
  232. package/dist/chunks/{worktree-sba4qhjf.js → file-retention-sba4qhjf.js} +1 -1
  233. package/dist/chunks/{worktree-9mtg8gdn.js → file-retention-sbt1xe51.js} +9 -9
  234. package/dist/chunks/{worktree-fmanbg8s.js → file-retention-sjghkmca.js} +28 -28
  235. package/dist/chunks/{worktree-45aqx2pr.js → file-retention-snxwbbja.js} +4 -4
  236. package/dist/chunks/{worktree-mw548jxj.js → file-retention-sqypgbm1.js} +18 -18
  237. package/dist/chunks/{worktree-acbvwaxg.js → file-retention-sr82n7vz.js} +17 -17
  238. package/dist/chunks/{worktree-0rkdmzyv.js → file-retention-sybecs9s.js} +9 -9
  239. package/dist/chunks/{worktree-jw9vr5cv.js → file-retention-systxyed.js} +7 -7
  240. package/dist/chunks/{worktree-c83taev4.js → file-retention-t59a9e66.js} +9 -9
  241. package/dist/chunks/{worktree-tazgh4e4.js → file-retention-tazgh4e4.js} +1 -1
  242. package/dist/chunks/{worktree-t5h4rs02.js → file-retention-tbcankzb.js} +9 -9
  243. package/dist/chunks/{worktree-tcezcvh9.js → file-retention-tcezcvh9.js} +1 -1
  244. package/dist/chunks/{worktree-k1rzh40r.js → file-retention-tcxthdpc.js} +22 -21
  245. package/dist/chunks/{worktree-cjrs1hef.js → file-retention-tebfwd6f.js} +17 -17
  246. package/dist/chunks/{worktree-tjykrgmx.js → file-retention-tjykrgmx.js} +1 -1
  247. package/dist/chunks/{worktree-dng5ka12.js → file-retention-tmm76dnc.js} +12 -12
  248. package/dist/chunks/{worktree-rj2f5sk2.js → file-retention-tmphv92d.js} +32 -32
  249. package/dist/chunks/{worktree-7h10aajm.js → file-retention-tt4eawst.js} +3 -3
  250. package/dist/chunks/{worktree-b9e4evd2.js → file-retention-tvgknxm1.js} +30 -22
  251. package/dist/chunks/{worktree-dssx1y55.js → file-retention-twadq4ng.js} +20 -20
  252. package/dist/chunks/{worktree-s6z4mph6.js → file-retention-vev8ym6q.js} +6 -6
  253. package/dist/chunks/{worktree-5agnkr4h.js → file-retention-vhpcjtn1.js} +27 -27
  254. package/dist/chunks/{worktree-ht963k40.js → file-retention-vnheh1tn.js} +5 -5
  255. package/dist/chunks/{worktree-w3wsvvr9.js → file-retention-w3wsvvr9.js} +1 -1
  256. package/dist/chunks/{worktree-7dz4r7mk.js → file-retention-w6s4nrrc.js} +8 -8
  257. package/dist/chunks/{worktree-wd87259q.js → file-retention-wd87259q.js} +1 -1
  258. package/dist/chunks/{worktree-2sz5zasg.js → file-retention-wdre2fsc.js} +12 -12
  259. package/dist/chunks/{worktree-ge7ds67b.js → file-retention-wg9v2026.js} +2 -2
  260. package/dist/chunks/{worktree-kk0awzkj.js → file-retention-wh6fxssz.js} +24 -24
  261. package/dist/chunks/{worktree-pq5hrpmt.js → file-retention-wn6ay9n5.js} +10 -10
  262. package/dist/chunks/{worktree-sdm57bgr.js → file-retention-wsppk9kq.js} +25 -25
  263. package/dist/chunks/{worktree-ypyh08m6.js → file-retention-wt2bt8rh.js} +4 -4
  264. package/dist/chunks/{worktree-660eg1b9.js → file-retention-wwsspkj6.js} +31 -31
  265. package/dist/chunks/{worktree-x1ezjp6w.js → file-retention-x1ezjp6w.js} +1 -1
  266. package/dist/chunks/{worktree-x4ndt50x.js → file-retention-x2yzyww1.js} +28 -28
  267. package/dist/chunks/{worktree-nhfc898y.js → file-retention-xtbhkgqd.js} +36 -29
  268. package/dist/chunks/{worktree-4tyxcf8v.js → file-retention-xtzvz6z2.js} +32 -32
  269. package/dist/chunks/{worktree-7gkmedy0.js → file-retention-xvkjq10q.js} +14 -27
  270. package/dist/chunks/{worktree-y1fvbwt7.js → file-retention-y1fvbwt7.js} +1 -1
  271. package/dist/chunks/{worktree-ht4ejyw1.js → file-retention-y33rnh2q.js} +13 -13
  272. package/dist/chunks/{worktree-y71avatq.js → file-retention-y71avatq.js} +1 -1
  273. package/dist/chunks/{worktree-1wfjb4fb.js → file-retention-y8vkqrwp.js} +1 -1
  274. package/dist/chunks/{worktree-cnze8n7v.js → file-retention-yd5ewqxr.js} +10 -10
  275. package/dist/chunks/{worktree-28pcbh69.js → file-retention-yhr218qz.js} +4 -4
  276. package/dist/chunks/{worktree-1pdtxp2d.js → file-retention-yjfqme9d.js} +1 -1
  277. package/dist/chunks/{worktree-g6njkj82.js → file-retention-yjqf6ny1.js} +15 -15
  278. package/dist/chunks/{worktree-qbddy52q.js → file-retention-ypnagvbr.js} +11 -11
  279. package/dist/chunks/{worktree-ckfw619d.js → file-retention-z0jdk2ea.js} +43 -43
  280. package/dist/chunks/{worktree-z1k01bn4.js → file-retention-z1k01bn4.js} +2 -2
  281. package/dist/chunks/{worktree-29x78va6.js → file-retention-z63w68vq.js} +6 -6
  282. package/dist/chunks/{worktree-41mncz27.js → file-retention-z78tg67p.js} +5 -5
  283. package/dist/chunks/{worktree-ybjzef57.js → file-retention-zc6h5zbx.js} +8 -8
  284. package/dist/chunks/{worktree-yfdj9tfx.js → file-retention-zgvs89xm.js} +37 -45
  285. package/dist/chunks/{worktree-enw72f67.js → file-retention-zhk34nm9.js} +6 -6
  286. package/dist/chunks/{worktree-zxq2ej10.js → file-retention-zxq2ej10.js} +1 -1
  287. package/dist/chunks/{worktree-tppvcy65.js → file-retention-zyjnrmzk.js} +5 -5
  288. package/dist/codemode/catalog.js +3 -3
  289. package/dist/codemode/instructions.js +9 -9
  290. package/dist/codemode/tool.js +2 -2
  291. package/dist/command.js +83 -83
  292. package/dist/config/discovery.js +77 -77
  293. package/dist/config/markdown.js +1 -1
  294. package/dist/config/normalize.js +19 -19
  295. package/dist/config/plugin/agent.js +115 -115
  296. package/dist/config/plugin/command.js +207 -206
  297. package/dist/config/plugin/compaction.js +155 -154
  298. package/dist/config/plugin/entry-observer.js +1 -1
  299. package/dist/config/plugin/formatter.js +117 -117
  300. package/dist/config/plugin/image.js +115 -115
  301. package/dist/config/plugin/instruction.js +85 -85
  302. package/dist/config/plugin/location-watcher.js +117 -117
  303. package/dist/config/plugin/mcp.js +124 -124
  304. package/dist/config/plugin/policy.js +114 -114
  305. package/dist/config/plugin/provider.js +113 -113
  306. package/dist/config/plugin/reference.js +117 -117
  307. package/dist/config/plugin/shell.js +118 -118
  308. package/dist/config/plugin/skill-file.js +97 -96
  309. package/dist/config/plugin/skill.js +136 -135
  310. package/dist/config/plugin/snapshot.js +115 -115
  311. package/dist/config/plugin/source.js +115 -115
  312. package/dist/config/plugin/tool-output.js +117 -117
  313. package/dist/config/plugin/websearch.js +115 -115
  314. package/dist/config/plugin/worktree.js +118 -118
  315. package/dist/config/variable.js +3 -3
  316. package/dist/config/watch.js +1 -1
  317. package/dist/config.js +119 -119
  318. package/dist/credential/sql.js +2 -2
  319. package/dist/credential.js +81 -81
  320. package/dist/database/database.js +64 -64
  321. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  322. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  323. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  324. package/dist/database/drizzle/index.js +13 -13
  325. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  326. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  327. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  328. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  329. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  330. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  331. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  332. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  333. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  334. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  335. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  336. package/dist/database/drizzle.js +14 -14
  337. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  338. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  339. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  340. package/dist/database/migration/20260225215848_workspace.js +1 -1
  341. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  342. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  343. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  344. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  345. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  346. package/dist/database/migration/20260323234822_events.js +1 -1
  347. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  348. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  349. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  350. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  351. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  352. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  353. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  354. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  355. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  356. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  357. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  358. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  359. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  360. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  361. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  362. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  363. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  364. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  365. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  366. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  367. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  368. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  369. package/dist/database/migration/20260611035744_credential.js +1 -1
  370. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  371. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  372. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  373. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  374. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  375. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  376. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  377. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  378. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  379. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  380. package/dist/database/migration/20260812213948_worktree.js +1 -1
  381. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  382. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  383. package/dist/database/migration.gen.js +47 -47
  384. package/dist/database/migration.js +49 -49
  385. package/dist/database/path.js +2 -2
  386. package/dist/database/schema.gen.js +1 -1
  387. package/dist/database/schema.sql.js +1 -1
  388. package/dist/database/sqlite.bun.js +1 -1
  389. package/dist/database/sqlite.js +1 -1
  390. package/dist/database/sqlite.node.js +1 -1
  391. package/dist/database/sqlite.workerd.js +1 -1
  392. package/dist/database/v1-migration.bun.js +74 -74
  393. package/dist/database/v1-migration.js +1 -1
  394. package/dist/effect/app-node-builder.js +360 -359
  395. package/dist/effect/app-node-platform.js +2 -2
  396. package/dist/effect/keyed-mutex.js +1 -1
  397. package/dist/effect/websocket-constructor.js +1 -1
  398. package/dist/environment/driver.js +1 -1
  399. package/dist/environment/environment.js +88 -88
  400. package/dist/environment/exec-defaults.js +2 -2
  401. package/dist/environment/files.js +1 -1
  402. package/dist/environment/index.js +90 -90
  403. package/dist/environment/local.js +2 -2
  404. package/dist/environment/memory.js +2 -2
  405. package/dist/environment/unavailable.js +1 -1
  406. package/dist/event/sql.js +1 -1
  407. package/dist/event-logger.js +72 -72
  408. package/dist/file-access.js +112 -0
  409. package/dist/file-mutation.js +89 -89
  410. package/dist/file-retention.js +1 -1
  411. package/dist/file.js +1 -1
  412. package/dist/filesystem/fff.bun.js +2 -2
  413. package/dist/filesystem/fff.js +1 -1
  414. package/dist/filesystem/fff.node.js +2 -2
  415. package/dist/filesystem/fff.workerd.js +2 -2
  416. package/dist/filesystem/ignore.js +1 -1
  417. package/dist/filesystem/location-watcher-policy.js +6 -6
  418. package/dist/filesystem/location-watcher.js +222 -221
  419. package/dist/filesystem/protected.js +1 -1
  420. package/dist/filesystem/search.js +97 -97
  421. package/dist/filesystem/watcher-binding.js +3 -3
  422. package/dist/filesystem/watcher.js +15 -15
  423. package/dist/filesystem.js +92 -92
  424. package/dist/form.js +82 -82
  425. package/dist/formatter/builtins.js +2 -2
  426. package/dist/formatter.js +84 -84
  427. package/dist/generate.js +91 -91
  428. package/dist/git.js +3 -3
  429. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  430. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  431. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  432. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  433. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  434. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  435. package/dist/github-copilot/copilot-provider.js +17 -17
  436. package/dist/github-copilot/models.js +7 -7
  437. package/dist/github-copilot/openai-compatible-error.js +1 -1
  438. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  439. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  440. package/dist/github-copilot/responses/openai-error.js +1 -1
  441. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  442. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  443. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  444. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  445. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  446. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  447. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  448. package/dist/id/id.js +1 -1
  449. package/dist/image/photon.js +2 -2
  450. package/dist/image.js +4 -4
  451. package/dist/instance/service.js +5 -5
  452. package/dist/instance.js +351 -350
  453. package/dist/instruction-discovery.js +83 -83
  454. package/dist/instructions/builtins.js +80 -80
  455. package/dist/instructions/index.js +3 -3
  456. package/dist/integration/connection.js +1 -1
  457. package/dist/integration.js +84 -84
  458. package/dist/job.js +77 -77
  459. package/dist/kv/sql.js +2 -2
  460. package/dist/kv.js +71 -71
  461. package/dist/location-activity.js +133 -132
  462. package/dist/location-mutation.js +102 -83
  463. package/dist/location-service-map.js +83 -83
  464. package/dist/location-services.js +348 -347
  465. package/dist/location.js +80 -80
  466. package/dist/mcp/client.js +86 -86
  467. package/dist/mcp/index.js +101 -101
  468. package/dist/mcp/instructions.js +122 -121
  469. package/dist/mcp/oauth.js +24 -4
  470. package/dist/mcp/stdio.js +85 -85
  471. package/dist/mime.js +1 -1
  472. package/dist/modal/models.js +7 -7
  473. package/dist/model-resolver.js +88 -86
  474. package/dist/model.js +6 -6
  475. package/dist/models-dev.js +86 -86
  476. package/dist/oauth/page.js +1 -1
  477. package/dist/permission/saved.js +80 -80
  478. package/dist/permission/sql.js +5 -5
  479. package/dist/permission.js +112 -111
  480. package/dist/persistent-pty/binary.bun.js +1 -1
  481. package/dist/persistent-pty/daemon.js +1 -1
  482. package/dist/persistent-pty/index.js +84 -84
  483. package/dist/persistent-pty/pty-binding.js +1 -1
  484. package/dist/persistent-pty.js +73 -73
  485. package/dist/plugin/agent.js +97 -96
  486. package/dist/plugin/command.js +92 -92
  487. package/dist/plugin/hooks.js +5 -5
  488. package/dist/plugin/host.js +213 -212
  489. package/dist/plugin/instance.js +5 -5
  490. package/dist/plugin/internal.js +322 -321
  491. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  492. package/dist/plugin/models-dev.js +75 -75
  493. package/dist/plugin/module.js +5 -5
  494. package/dist/plugin/optimize.js +2 -2
  495. package/dist/plugin/plan.js +97 -96
  496. package/dist/plugin/promise.js +1 -1
  497. package/dist/plugin/provider/alibaba.js +2 -2
  498. package/dist/plugin/provider/amazon-bedrock.js +2 -2
  499. package/dist/plugin/provider/anthropic.js +2 -2
  500. package/dist/plugin/provider/azure.js +118 -118
  501. package/dist/plugin/provider/cerebras.js +2 -2
  502. package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
  503. package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
  504. package/dist/plugin/provider/cohere.js +2 -2
  505. package/dist/plugin/provider/configured.js +114 -114
  506. package/dist/plugin/provider/dynamic.js +2 -2
  507. package/dist/plugin/provider/factory.js +1 -1
  508. package/dist/plugin/provider/gateway.js +2 -2
  509. package/dist/plugin/provider/github-copilot.js +80 -80
  510. package/dist/plugin/provider/gitlab.js +3 -3
  511. package/dist/plugin/provider/google-vertex.js +2 -2
  512. package/dist/plugin/provider/kilo.js +2 -2
  513. package/dist/plugin/provider/llmgateway.js +76 -76
  514. package/dist/plugin/provider/lmstudio.js +117 -117
  515. package/dist/plugin/provider/mistral.js +2 -2
  516. package/dist/plugin/provider/modal.js +79 -79
  517. package/dist/plugin/provider/nvidia.js +2 -2
  518. package/dist/plugin/provider/ollama.js +115 -115
  519. package/dist/plugin/provider/openai-compatible.js +1 -1
  520. package/dist/plugin/provider/openai.js +78 -78
  521. package/dist/plugin/provider/opencode.js +76 -76
  522. package/dist/plugin/provider/openrouter.js +3 -3
  523. package/dist/plugin/provider/perplexity.js +2 -2
  524. package/dist/plugin/provider/sap-ai-core.js +3 -3
  525. package/dist/plugin/provider/sdk-factory.js +1 -1
  526. package/dist/plugin/provider/snowflake-cortex.js +2 -2
  527. package/dist/plugin/provider/venice.js +2 -2
  528. package/dist/plugin/provider/vercel.js +2 -2
  529. package/dist/plugin/provider/vllm.js +117 -117
  530. package/dist/plugin/provider/xai.js +77 -77
  531. package/dist/plugin/provider/zenmux.js +2 -2
  532. package/dist/plugin/provider.js +155 -155
  533. package/dist/plugin/sdk.js +74 -74
  534. package/dist/plugin/service.js +3 -3
  535. package/dist/plugin/skill.js +131 -130
  536. package/dist/plugin/source-directory.js +1 -1
  537. package/dist/plugin/supervisor.js +339 -338
  538. package/dist/plugin/update.js +6 -6
  539. package/dist/plugin/variant.js +4 -4
  540. package/dist/plugin/vcs/git.js +82 -82
  541. package/dist/plugin/vcs/hg.js +82 -82
  542. package/dist/plugin/warming.js +112 -112
  543. package/dist/plugin/websearch/exa.js +7 -7
  544. package/dist/plugin/websearch/firecrawl.js +8 -8
  545. package/dist/plugin/websearch/index.js +8 -8
  546. package/dist/plugin/websearch/mcp.js +2 -2
  547. package/dist/plugin/websearch/parallel.js +4 -4
  548. package/dist/plugin/websearch/tavily.js +6 -6
  549. package/dist/plugin.js +224 -223
  550. package/dist/project/schema.js +4 -4
  551. package/dist/project/sql.js +4 -4
  552. package/dist/project.js +81 -81
  553. package/dist/provider.js +5 -5
  554. package/dist/pty/protocol.js +1 -1
  555. package/dist/pty/schema.js +3 -3
  556. package/dist/pty/ticket.js +1 -1
  557. package/dist/pty.js +88 -88
  558. package/dist/reference/instructions.js +84 -84
  559. package/dist/reference.js +86 -86
  560. package/dist/repository-cache.js +76 -76
  561. package/dist/repository.js +1 -1
  562. package/dist/ripgrep/binary.js +2 -2
  563. package/dist/ripgrep.js +91 -91
  564. package/dist/rpc.js +81 -81
  565. package/dist/schema.js +1 -1
  566. package/dist/session/command.js +72 -72
  567. package/dist/session/compaction.js +131 -128
  568. package/dist/session/context.js +147 -146
  569. package/dist/session/environment.js +5 -5
  570. package/dist/session/error.js +7 -7
  571. package/dist/session/event.js +1 -1
  572. package/dist/session/execution/restart.js +219 -218
  573. package/dist/session/execution.js +124 -123
  574. package/dist/session/generate.js +148 -147
  575. package/dist/session/history.js +15 -14
  576. package/dist/session/inbox.js +88 -88
  577. package/dist/session/info.js +3 -3
  578. package/dist/session/instruction-entry.js +77 -77
  579. package/dist/session/instruction-state.js +8 -8
  580. package/dist/session/instructions.js +88 -87
  581. package/dist/session/message-updater.js +2 -2
  582. package/dist/session/message.js +1 -1
  583. package/dist/session/model-request.js +113 -112
  584. package/dist/session/model-transport.js +9 -9
  585. package/dist/session/move.js +126 -125
  586. package/dist/session/projector.js +84 -84
  587. package/dist/session/prompt.js +100 -99
  588. package/dist/session/provider-context.js +20 -0
  589. package/dist/session/revert.js +85 -85
  590. package/dist/session/run-coordinator.js +3 -3
  591. package/dist/session/runner/index.js +3 -3
  592. package/dist/session/runner/llm.js +223 -222
  593. package/dist/session/runner/max-steps.js +1 -1
  594. package/dist/session/runner/model.js +88 -86
  595. package/dist/session/runner/publish-llm-event.js +3 -3
  596. package/dist/session/runner/retry.js +111 -3
  597. package/dist/session/runner/step.js +119 -118
  598. package/dist/session/runner/to-llm-message.js +2 -1
  599. package/dist/session/schema.js +5 -5
  600. package/dist/session/session.js +167 -166
  601. package/dist/session/shell.js +131 -131
  602. package/dist/session/skill.js +98 -97
  603. package/dist/session/sql.js +5 -5
  604. package/dist/session/stats.js +71 -71
  605. package/dist/session/store.js +85 -84
  606. package/dist/session/subagent-completion.js +1 -1
  607. package/dist/session/subagent-job.js +203 -202
  608. package/dist/session/system-prompt.js +5 -5
  609. package/dist/session/title.js +147 -146
  610. package/dist/session/to-session-error.js +107 -106
  611. package/dist/session/transfer.js +215 -214
  612. package/dist/session/usage.js +1 -1
  613. package/dist/session.js +211 -210
  614. package/dist/shell/parse.js +6 -6
  615. package/dist/shell/result.js +1 -1
  616. package/dist/shell/scan.js +1 -1
  617. package/dist/shell/select.js +13 -13
  618. package/dist/shell.js +133 -133
  619. package/dist/skill/discovery.js +6 -6
  620. package/dist/skill/instructions.js +100 -99
  621. package/dist/skill.js +107 -106
  622. package/dist/snapshot.js +86 -86
  623. package/dist/state.js +1 -1
  624. package/dist/tool/html-markdown.js +1 -1
  625. package/dist/tool/http-body.js +1 -1
  626. package/dist/tool/mcp.js +119 -118
  627. package/dist/tool/plugin/edit.js +115 -114
  628. package/dist/tool/plugin/file-diff.js +1 -1
  629. package/dist/tool/plugin/glob.js +120 -119
  630. package/dist/tool/plugin/grep.js +120 -119
  631. package/dist/tool/plugin/opencode.js +5 -3
  632. package/dist/tool/plugin/patch.js +113 -112
  633. package/dist/tool/plugin/question.js +98 -97
  634. package/dist/tool/plugin/read.js +121 -120
  635. package/dist/tool/plugin/shell.js +208 -207
  636. package/dist/tool/plugin/skill.js +106 -105
  637. package/dist/tool/plugin/subagent.js +210 -209
  638. package/dist/tool/plugin/webfetch.js +103 -102
  639. package/dist/tool/plugin/websearch.js +107 -106
  640. package/dist/tool/plugin/write.js +117 -116
  641. package/dist/tool/read-filesystem.js +96 -96
  642. package/dist/tool/runtime.js +1 -1
  643. package/dist/tool-output.js +8 -8
  644. package/dist/tool.js +11 -11
  645. package/dist/types/file-access.d.ts +52 -0
  646. package/dist/types/file-mutation.d.ts +2 -4
  647. package/dist/types/instance.d.ts +2 -2
  648. package/dist/types/location-activity.d.ts +1 -1
  649. package/dist/types/location-mutation.d.ts +3 -52
  650. package/dist/types/mcp/oauth.d.ts +10 -1
  651. package/dist/types/model-resolver.d.ts +25 -3
  652. package/dist/types/model.d.ts +11 -0
  653. package/dist/types/plugin/host.d.ts +2 -2
  654. package/dist/types/plugin/internal.d.ts +3 -3
  655. package/dist/types/provider.d.ts +11 -0
  656. package/dist/types/session/compaction.d.ts +11 -2
  657. package/dist/types/session/execution/restart.d.ts +1 -1
  658. package/dist/types/session/execution.d.ts +1 -1
  659. package/dist/types/session/generate.d.ts +1 -1
  660. package/dist/types/session/history.d.ts +59 -4
  661. package/dist/types/session/provider-context.d.ts +46 -0
  662. package/dist/types/session/runner/model.d.ts +4 -0
  663. package/dist/types/session/runner/retry.d.ts +5 -0
  664. package/dist/types/session/session.d.ts +3 -3
  665. package/dist/types/session/sql.d.ts +3 -3
  666. package/dist/types/session/transfer.d.ts +47 -0
  667. package/dist/types/tool/mcp.d.ts +1 -1
  668. package/dist/types/tool/plugin/edit.d.ts +2 -2
  669. package/dist/types/tool/plugin/glob.d.ts +2 -2
  670. package/dist/types/tool/plugin/grep.d.ts +2 -2
  671. package/dist/types/tool/plugin/opencode.d.ts +7 -0
  672. package/dist/types/tool/plugin/patch.d.ts +2 -2
  673. package/dist/types/tool/plugin/read.d.ts +2 -3
  674. package/dist/types/tool/plugin/shell.d.ts +2 -2
  675. package/dist/types/tool/plugin/websearch.d.ts +1 -1
  676. package/dist/types/tool/plugin/write.d.ts +2 -2
  677. package/dist/types/v1/config/agent.d.ts +4 -4
  678. package/dist/types/v1/config/config.d.ts +46 -46
  679. package/dist/types/v1/config/migrate.d.ts +19 -7
  680. package/dist/types/v1/config/permission.d.ts +3 -3
  681. package/dist/util/error-summary.js +1 -1
  682. package/dist/util/error.js +1 -1
  683. package/dist/util/iife.js +1 -1
  684. package/dist/util/lazy.js +1 -1
  685. package/dist/util/slug.js +1 -1
  686. package/dist/util/token.js +1 -1
  687. package/dist/util/which.js +1 -1
  688. package/dist/util/wildcard.js +1 -1
  689. package/dist/v1/config/agent.js +5 -5
  690. package/dist/v1/config/attachment.js +4 -4
  691. package/dist/v1/config/command.js +5 -5
  692. package/dist/v1/config/config.js +16 -16
  693. package/dist/v1/config/error.js +4 -4
  694. package/dist/v1/config/formatter.js +5 -5
  695. package/dist/v1/config/layout.js +1 -1
  696. package/dist/v1/config/lsp.js +3 -3
  697. package/dist/v1/config/mcp.js +4 -4
  698. package/dist/v1/config/migrate.js +4 -4
  699. package/dist/v1/config/permission.js +5 -5
  700. package/dist/v1/config/plugin.js +3 -3
  701. package/dist/v1/config/provider-options.js +1 -1
  702. package/dist/v1/config/provider.js +4 -4
  703. package/dist/v1/config/server.js +2 -2
  704. package/dist/v1/config/skills.js +3 -3
  705. package/dist/v1/permission.js +1 -1
  706. package/dist/vcs/patch.js +1 -1
  707. package/dist/vcs.js +85 -85
  708. package/dist/websearch.js +82 -82
  709. package/dist/wellknown/plugin.js +74 -74
  710. package/dist/wellknown.js +77 -77
  711. package/dist/workspace/driver.js +5 -5
  712. package/dist/workspace/sql.js +1 -1
  713. package/dist/workspace.js +78 -78
  714. package/dist/worktree/directory.js +4 -4
  715. package/dist/worktree/git.js +7 -7
  716. package/dist/worktree/refresh.js +340 -339
  717. package/dist/worktree/sql.js +5 -5
  718. package/dist/worktree.js +89 -89
  719. package/package.json +8 -7
  720. package/dist/chunks/worktree-b5q5y4vk.js +0 -4
  721. package/dist/chunks/worktree-rap9a73h.js +0 -18
  722. package/dist/chunks/worktree-ynqmrvb3.js +0 -84
  723. package/dist/chunks/worktree-yrf23g47.js +0 -247
  724. /package/dist/chunks/{worktree-0fabt78z.js → file-retention-0fabt78z.js} +0 -0
  725. /package/dist/chunks/{worktree-0qkdqm5v.js → file-retention-0qkdqm5v.js} +0 -0
  726. /package/dist/chunks/{worktree-0zkw76rk.js → file-retention-0zkw76rk.js} +0 -0
  727. /package/dist/chunks/{worktree-17cy0kzp.js → file-retention-17cy0kzp.js} +0 -0
  728. /package/dist/chunks/{worktree-1cnp2v09.js → file-retention-1cnp2v09.js} +0 -0
  729. /package/dist/chunks/{worktree-1kg9ymc8.js → file-retention-1kg9ymc8.js} +0 -0
  730. /package/dist/chunks/{worktree-2710q6r3.js → file-retention-2710q6r3.js} +0 -0
  731. /package/dist/chunks/{worktree-2axfhc9x.js → file-retention-2axfhc9x.js} +0 -0
  732. /package/dist/chunks/{worktree-2c3vjs8z.js → file-retention-2c3vjs8z.js} +0 -0
  733. /package/dist/chunks/{worktree-359p4xyc.js → file-retention-359p4xyc.js} +0 -0
  734. /package/dist/chunks/{worktree-3asan66x.js → file-retention-3asan66x.js} +0 -0
  735. /package/dist/chunks/{worktree-3t738kvx.js → file-retention-3t738kvx.js} +0 -0
  736. /package/dist/chunks/{worktree-3v8g72cx.js → file-retention-3v8g72cx.js} +0 -0
  737. /package/dist/chunks/{worktree-3wcehsnq.js → file-retention-3wcehsnq.js} +0 -0
  738. /package/dist/chunks/{worktree-41nvscxy.js → file-retention-41nvscxy.js} +0 -0
  739. /package/dist/chunks/{worktree-43n2bw4t.js → file-retention-43n2bw4t.js} +0 -0
  740. /package/dist/chunks/{worktree-4knz6hnm.js → file-retention-4knz6hnm.js} +0 -0
  741. /package/dist/chunks/{worktree-4y7fprxs.js → file-retention-4y7fprxs.js} +0 -0
  742. /package/dist/chunks/{worktree-53557ph1.js → file-retention-53557ph1.js} +0 -0
  743. /package/dist/chunks/{worktree-550bvhaj.js → file-retention-550bvhaj.js} +0 -0
  744. /package/dist/chunks/{worktree-6prwharc.js → file-retention-6prwharc.js} +0 -0
  745. /package/dist/chunks/{worktree-7akdwqpd.js → file-retention-7akdwqpd.js} +0 -0
  746. /package/dist/chunks/{worktree-7m9af43g.js → file-retention-7m9af43g.js} +0 -0
  747. /package/dist/chunks/{worktree-822emrt2.js → file-retention-822emrt2.js} +0 -0
  748. /package/dist/chunks/{worktree-88xbtdfr.js → file-retention-88xbtdfr.js} +0 -0
  749. /package/dist/chunks/{worktree-8n3pysct.js → file-retention-8n3pysct.js} +0 -0
  750. /package/dist/chunks/{worktree-982e01ww.js → file-retention-982e01ww.js} +0 -0
  751. /package/dist/chunks/{worktree-9a4afbnw.js → file-retention-9a4afbnw.js} +0 -0
  752. /package/dist/chunks/{worktree-9rqn6x4v.js → file-retention-9rqn6x4v.js} +0 -0
  753. /package/dist/chunks/{worktree-a1tpkmh4.js → file-retention-a1tpkmh4.js} +0 -0
  754. /package/dist/chunks/{worktree-af5trqkr.js → file-retention-af5trqkr.js} +0 -0
  755. /package/dist/chunks/{worktree-afrmfg78.js → file-retention-afrmfg78.js} +0 -0
  756. /package/dist/chunks/{worktree-aqzs7mqg.js → file-retention-aqzs7mqg.js} +0 -0
  757. /package/dist/chunks/{worktree-atq7p7m5.js → file-retention-atq7p7m5.js} +0 -0
  758. /package/dist/chunks/{worktree-bkyjaxrp.js → file-retention-bkyjaxrp.js} +0 -0
  759. /package/dist/chunks/{worktree-bmr6ed5q.js → file-retention-bmr6ed5q.js} +0 -0
  760. /package/dist/chunks/{worktree-cf4snx6d.js → file-retention-cf4snx6d.js} +0 -0
  761. /package/dist/chunks/{worktree-cvy3z8tj.js → file-retention-cvy3z8tj.js} +0 -0
  762. /package/dist/chunks/{worktree-d9fn303g.js → file-retention-d9fn303g.js} +0 -0
  763. /package/dist/chunks/{worktree-d9jj8t3e.js → file-retention-d9jj8t3e.js} +0 -0
  764. /package/dist/chunks/{worktree-dajrwvna.js → file-retention-dajrwvna.js} +0 -0
  765. /package/dist/chunks/{worktree-dap0rakb.js → file-retention-dap0rakb.js} +0 -0
  766. /package/dist/chunks/{worktree-df08tz66.js → file-retention-df08tz66.js} +0 -0
  767. /package/dist/chunks/{worktree-dy18nga0.js → file-retention-dy18nga0.js} +0 -0
  768. /package/dist/chunks/{worktree-e5kj55wp.js → file-retention-e5kj55wp.js} +0 -0
  769. /package/dist/chunks/{worktree-e73j6tqm.js → file-retention-e73j6tqm.js} +0 -0
  770. /package/dist/chunks/{worktree-eh3zwz77.js → file-retention-eh3zwz77.js} +0 -0
  771. /package/dist/chunks/{worktree-emrn6kk6.js → file-retention-emrn6kk6.js} +0 -0
  772. /package/dist/chunks/{worktree-f0mxakyp.js → file-retention-f0mxakyp.js} +0 -0
  773. /package/dist/chunks/{worktree-f6n9ztr4.js → file-retention-f6n9ztr4.js} +0 -0
  774. /package/dist/chunks/{worktree-faypxj3z.js → file-retention-faypxj3z.js} +0 -0
  775. /package/dist/chunks/{worktree-fd410y7t.js → file-retention-fd410y7t.js} +0 -0
  776. /package/dist/chunks/{worktree-fxgpk5d8.js → file-retention-fxgpk5d8.js} +0 -0
  777. /package/dist/chunks/{worktree-g4wezp1m.js → file-retention-g4wezp1m.js} +0 -0
  778. /package/dist/chunks/{worktree-g86h250q.js → file-retention-g86h250q.js} +0 -0
  779. /package/dist/chunks/{worktree-gebd4c9n.js → file-retention-gebd4c9n.js} +0 -0
  780. /package/dist/chunks/{worktree-hk9envan.js → file-retention-hk9envan.js} +0 -0
  781. /package/dist/chunks/{worktree-j2ntwpah.js → file-retention-j2ntwpah.js} +0 -0
  782. /package/dist/chunks/{worktree-j5zkgpj8.js → file-retention-j5zkgpj8.js} +0 -0
  783. /package/dist/chunks/{worktree-jr7sbwjy.js → file-retention-jr7sbwjy.js} +0 -0
  784. /package/dist/chunks/{worktree-jwfs4k6c.js → file-retention-jwfs4k6c.js} +0 -0
  785. /package/dist/chunks/{worktree-jzg6c2d5.js → file-retention-jzg6c2d5.js} +0 -0
  786. /package/dist/chunks/{worktree-mntxs535.js → file-retention-mntxs535.js} +0 -0
  787. /package/dist/chunks/{worktree-mp448xyj.js → file-retention-mp448xyj.js} +0 -0
  788. /package/dist/chunks/{worktree-msx8hqn2.js → file-retention-msx8hqn2.js} +0 -0
  789. /package/dist/chunks/{worktree-n05xt0ee.js → file-retention-n05xt0ee.js} +0 -0
  790. /package/dist/chunks/{worktree-n3j8tn72.js → file-retention-n3j8tn72.js} +0 -0
  791. /package/dist/chunks/{worktree-njntx4h6.js → file-retention-njntx4h6.js} +0 -0
  792. /package/dist/chunks/{worktree-p8qxwesx.js → file-retention-p8qxwesx.js} +0 -0
  793. /package/dist/chunks/{worktree-q3sfg36h.js → file-retention-q3sfg36h.js} +0 -0
  794. /package/dist/chunks/{worktree-q74kybfr.js → file-retention-q74kybfr.js} +0 -0
  795. /package/dist/chunks/{worktree-qaymkmh1.js → file-retention-qaymkmh1.js} +0 -0
  796. /package/dist/chunks/{worktree-qb87gjwd.js → file-retention-qb87gjwd.js} +0 -0
  797. /package/dist/chunks/{worktree-qfa1cgps.js → file-retention-qfa1cgps.js} +0 -0
  798. /package/dist/chunks/{worktree-qrg20bc0.js → file-retention-qrg20bc0.js} +0 -0
  799. /package/dist/chunks/{worktree-rcb2kzg1.js → file-retention-rcb2kzg1.js} +0 -0
  800. /package/dist/chunks/{worktree-sdp7kfr6.js → file-retention-sdp7kfr6.js} +0 -0
  801. /package/dist/chunks/{worktree-se0s1eqw.js → file-retention-se0s1eqw.js} +0 -0
  802. /package/dist/chunks/{worktree-sk3qaz4a.js → file-retention-sk3qaz4a.js} +0 -0
  803. /package/dist/chunks/{worktree-ssg3fenm.js → file-retention-ssg3fenm.js} +0 -0
  804. /package/dist/chunks/{worktree-twg0f83k.js → file-retention-twg0f83k.js} +0 -0
  805. /package/dist/chunks/{worktree-w803qqfp.js → file-retention-w803qqfp.js} +0 -0
  806. /package/dist/chunks/{worktree-wer8tq1h.js → file-retention-wer8tq1h.js} +0 -0
  807. /package/dist/chunks/{worktree-wtztk69x.js → file-retention-wtztk69x.js} +0 -0
  808. /package/dist/chunks/{worktree-x0ckcb58.js → file-retention-x0ckcb58.js} +0 -0
  809. /package/dist/chunks/{worktree-x1b8g1yb.js → file-retention-x1b8g1yb.js} +0 -0
  810. /package/dist/chunks/{worktree-x61499pn.js → file-retention-x61499pn.js} +0 -0
  811. /package/dist/chunks/{worktree-y44na4kk.js → file-retention-y44na4kk.js} +0 -0
  812. /package/dist/chunks/{worktree-y8cydn3q.js → file-retention-y8cydn3q.js} +0 -0
  813. /package/dist/chunks/{worktree-ygaqb7jw.js → file-retention-ygaqb7jw.js} +0 -0
  814. /package/dist/chunks/{worktree-z9919s4g.js → file-retention-z9919s4g.js} +0 -0
@@ -1,50 +1,65 @@
1
1
  import {
2
- Service79,
3
- node84
4
- } from "./worktree-dng5ka12.js";
2
+ Service80,
3
+ node85
4
+ } from "./file-retention-h6h8wc8c.js";
5
+ import {
6
+ Service77,
7
+ node82
8
+ } from "./file-retention-tmm76dnc.js";
5
9
  import {
6
10
  llmClient2
7
- } from "./worktree-0e0xafbb.js";
11
+ } from "./file-retention-0e0xafbb.js";
8
12
  import {
9
13
  SessionEvent2
10
- } from "./worktree-mntxs535.js";
14
+ } from "./file-retention-mntxs535.js";
15
+ import {
16
+ provenance2,
17
+ compatible2,
18
+ isCheckpoint2,
19
+ encode2
20
+ } from "./file-retention-bx5n9ey0.js";
21
+ import {
22
+ load3
23
+ } from "./file-retention-tvgknxm1.js";
11
24
  import {
12
25
  create3
13
- } from "./worktree-kg06axw8.js";
26
+ } from "./file-retention-kg06axw8.js";
14
27
  import {
15
28
  toLLMMessages2
16
- } from "./worktree-zbjnn3ac.js";
29
+ } from "./file-retention-34jntwha.js";
17
30
  import {
18
31
  baseTranscript2,
19
- unsupportedParts2
20
- } from "./worktree-nhfc898y.js";
21
- import {
22
- isRetryable2,
23
- policy2
24
- } from "./worktree-hnyf01b0.js";
32
+ unsupportedParts2,
33
+ boundImages2
34
+ } from "./file-retention-xtbhkgqd.js";
25
35
  import {
26
36
  toSessionError2
27
- } from "./worktree-b3kfkjj6.js";
37
+ } from "./file-retention-btht280w.js";
38
+ import {
39
+ policy2,
40
+ transient2
41
+ } from "./file-retention-1r60bktf.js";
28
42
  import {
29
43
  estimate2
30
- } from "./worktree-h6vf3j39.js";
44
+ } from "./file-retention-h6vf3j39.js";
31
45
  import {
32
46
  record2,
33
47
  add2
34
- } from "./worktree-tjykrgmx.js";
48
+ } from "./file-retention-tjykrgmx.js";
35
49
  import {
36
50
  __export
37
- } from "./worktree-9rqn6x4v.js";
51
+ } from "./file-retention-9rqn6x4v.js";
38
52
 
39
53
  // src/session/compaction.ts
40
54
  var exports_compaction2 = {};
41
55
  __export(exports_compaction2, {
42
- Service: () => Service9,
56
+ Service: () => Service6,
43
57
  SessionCompaction: () => exports_compaction2,
44
58
  buildPrompt: () => buildPrompt2,
45
59
  estimateTokens: () => estimateTokens2,
46
- layer: () => layer7,
47
- node: () => node12,
60
+ layer: () => layer6,
61
+ node: () => node9,
62
+ retainUsers: () => retainUsers2,
48
63
  serializeToolContent: () => serializeToolContent2,
49
64
  truncateToolOutput: () => truncateToolOutput2
50
65
  });
@@ -108,10 +123,11 @@ var SUMMARY_RULES = `Rules:
108
123
  var SUMMARY_HEADINGS = SUMMARY_TEMPLATE.split(`
109
124
  `).filter((line) => line.startsWith("##"));
110
125
 
111
- class Service9 extends Context.Service()("@opencode/SessionCompaction") {
126
+ class Service6 extends Context.Service()("@opencode/SessionCompaction") {
112
127
  }
128
+ var hasInputUsage = (message) => message.type === "assistant" && !message.error && message.tokens !== undefined && message.tokens.input + message.tokens.cache.read + message.tokens.cache.write > 0;
113
129
  var estimateTokens2 = (input) => {
114
- const index = input.messages.findLastIndex((message) => message.type === "assistant" && !message.error && message.tokens !== undefined && message.tokens.input + message.tokens.cache.read + message.tokens.cache.write > 0);
130
+ const index = input.messages.findLastIndex(hasInputUsage);
115
131
  const last = input.messages[index];
116
132
  const added = unsupportedParts2(toLLMMessages2(input.messages.slice(Math.max(0, index)), input.resolved.ref), input.resolved.capabilities).filter((message) => message.role !== "assistant" || message.id !== last?.id).reduce((sum, message) => sum + message.content.reduce((sum, part) => sum + estimatePart(part), 0), 0);
117
133
  if (last?.type === "assistant" && last.tokens)
@@ -142,6 +158,19 @@ var estimatePart = (part) => {
142
158
  return part.result.value.reduce((sum, content) => sum + (content.type === "text" ? estimate2(content.text) : estimateMedia(content.mime)), 0);
143
159
  return estimate2(typeof part.result.value === "string" ? part.result.value : JSON.stringify(part.result.value) ?? "");
144
160
  };
161
+ var retainUsers2 = (messages, model, keepTokens) => {
162
+ const users = boundImages2(unsupportedParts2(toLLMMessages2(messages.filter((message) => message.type === "user").map((message) => ({ ...message, skills: undefined })), model.ref), model.capabilities));
163
+ let tokens = 0;
164
+ let start = users.length;
165
+ for (let index = users.length - 1;index >= 0; index--) {
166
+ const size = users[index].content.reduce((sum, part) => sum + estimatePart(part), 0);
167
+ if (tokens + size > keepTokens)
168
+ break;
169
+ tokens += size;
170
+ start = index;
171
+ }
172
+ return users.slice(start);
173
+ };
145
174
  var truncateToolOutput2 = (value) => {
146
175
  if (value.length <= TOOL_OUTPUT_MAX_CHARS)
147
176
  return value;
@@ -262,9 +291,10 @@ var buildPrompt2 = (update) => {
262
291
  };
263
292
  var hasSummarySection = (summary) => summary.split(`
264
293
  `).some((line) => SUMMARY_HEADINGS.includes(line.trim()));
265
- var layer7 = Layer.effect(Service9, Effect.gen(function* () {
266
- const bus = yield* Service79;
294
+ var layer6 = Layer.effect(Service6, Effect.gen(function* () {
295
+ const bus = yield* Service77;
267
296
  const llm = yield* LLMClient.Service;
297
+ const db = (yield* Service80).db;
268
298
  const state = create3({
269
299
  name: "session-compaction",
270
300
  initial: () => ({ auto: true, buffer: DEFAULT_BUFFER, tokens: DEFAULT_KEEP_TOKENS }),
@@ -283,40 +313,28 @@ var layer7 = Layer.effect(Service9, Effect.gen(function* () {
283
313
  yield* bus.publish(SessionEvent2.Compaction.Failed, input);
284
314
  return { status: "failed", error: input.error };
285
315
  });
286
- const execute = Effect.fn("SessionCompaction.execute")(function* (input) {
316
+ const started = (input, recent) => input.started ? Effect.void : bus.publish(SessionEvent2.Compaction.Started, {
317
+ sessionID: input.context.session.id,
318
+ reason: input.reason,
319
+ recent,
320
+ inputID: input.inputID
321
+ });
322
+ const interrupted = (input) => input.reason === "auto" ? failed({
323
+ sessionID: input.context.session.id,
324
+ reason: input.reason,
325
+ inputID: input.inputID,
326
+ error: { type: "compaction.interrupted", message: "Compaction was interrupted" }
327
+ }).pipe(Effect.asVoid) : Effect.void;
328
+ const compactionRequest = (input, messages, prompt, webSocket) => {
287
329
  const context = input.context;
288
- const history = splitHistory(context.messages, state.get().tokens);
289
- if (!history)
290
- return yield* failed({
291
- sessionID: context.session.id,
292
- reason: input.reason,
293
- error: { type: "compaction.unavailable", message: "Nothing to compact yet" },
294
- inputID: input.inputID
295
- });
296
- if (!input.started)
297
- yield* bus.publish(SessionEvent2.Compaction.Started, {
298
- sessionID: context.session.id,
299
- reason: input.reason,
300
- recent: history.recent,
301
- inputID: input.inputID
302
- });
303
- const chunks = [];
304
- let failure;
305
- let usage;
306
- let providerState;
307
- const recordUsage = Effect.suspend(() => usage ? bus.publish(SessionEvent2.UsageRecorded, {
308
- sessionID: context.session.id,
309
- source: "compaction",
310
- ...usage
311
- }) : Effect.void);
312
330
  const transcript = baseTranscript2({
313
331
  agent: context.agent.info,
314
332
  model: context.model,
315
333
  tools: context.tools,
316
334
  initial: context.initial,
317
- messages: history.messages
335
+ messages
318
336
  });
319
- const prepared = yield* input.prepare({
337
+ return input.prepare({
320
338
  kind: "compaction",
321
339
  scope: {
322
340
  session: context.session,
@@ -330,11 +348,96 @@ var layer7 = Layer.effect(Service9, Effect.gen(function* () {
330
348
  messages: [
331
349
  ...transcript.messages,
332
350
  ...input.instructionUpdate ? [Message.system(input.instructionUpdate)] : [],
333
- Message.user(buildPrompt2(history.messages.some((message) => message.type === "compaction" && message.status === "completed")))
351
+ ...prompt
334
352
  ]
335
- }
353
+ },
354
+ webSocket
355
+ });
356
+ };
357
+ const original = (sessionID) => load3(db, sessionID, "local").pipe(Effect.orDie);
358
+ const recoverLocally = (input) => original(input.context.session.id).pipe(Effect.flatMap((messages) => execute({ ...input, context: { ...input.context, messages } })));
359
+ const executeProvider = Effect.fn("SessionCompaction.executeProvider")(function* (input) {
360
+ const context = input.context;
361
+ const reject = (message) => failed({
362
+ sessionID: context.session.id,
363
+ reason: input.reason,
364
+ inputID: input.inputID,
365
+ error: { type: "provider.unsupported-operation", message }
366
+ });
367
+ const prepared = yield* compactionRequest(input, context.messages, [], "session");
368
+ const request = prepared.request;
369
+ const provenance = provenance2(context.model);
370
+ if (!provenance)
371
+ return yield* reject("Provider compaction requires a stable, configured endpoint");
372
+ if (!compatible2(provenance, provenance2({ model: request.model, ref: context.model.ref })))
373
+ return yield* reject("Provider compaction requires the endpoint in provider/model settings, not a model.request rewrite");
374
+ const transient = transient2(yield* policy2(context.session.id), {
375
+ agent: Agent.ID.make("compaction"),
376
+ model: context.model.ref,
377
+ hook: prepared.retry
378
+ });
379
+ yield* started(input, "");
380
+ return yield* Effect.uninterruptibleMask((restore) => Effect.gen(function* () {
381
+ const result = yield* restore(Effect.gen(function* () {
382
+ if (LLMClient.canCompact(request, { mechanism: "trigger" })) {
383
+ const retained = retainUsers2(yield* original(context.session.id), context.model, state.get().tokens);
384
+ const result = yield* llm.compact(request, { ...prepared.options, mechanism: "trigger" }).pipe(transient);
385
+ return { replacement: [...retained, Message.assistant(result.checkpoint)], usage: result.usage };
386
+ }
387
+ if (LLMClient.canCompact(request))
388
+ return yield* llm.compact(request, { mechanism: "endpoint", http: prepared.options.http }).pipe(transient);
389
+ return yield* Effect.die(new Error(`${request.model.provider}/${request.model.route.id} has no compaction operation`));
390
+ }));
391
+ if (result.usage)
392
+ yield* bus.publish(SessionEvent2.UsageRecorded, {
393
+ sessionID: context.session.id,
394
+ source: "compaction",
395
+ ...record2(result.usage, context.model.cost)
396
+ });
397
+ yield* bus.publish(SessionEvent2.Compaction.Ended, {
398
+ sessionID: context.session.id,
399
+ reason: input.reason,
400
+ model: context.model.ref,
401
+ text: "",
402
+ recent: "",
403
+ providerContext: encode2(provenance, result.replacement)
404
+ });
405
+ return { status: "completed" };
406
+ })).pipe(Effect.onInterrupt(() => interrupted(input)), Effect.catchTag("AI.Error", (cause) => input.reason === "auto" && isContextOverflowFailure(cause) ? recoverLocally({ ...input, started: true }).pipe(Effect.map((result) => result.status === "completed" ? { ...result, recoveredOverflow: true } : result)) : failed({
407
+ sessionID: context.session.id,
408
+ reason: input.reason,
409
+ inputID: input.inputID,
410
+ error: toSessionError2(cause)
411
+ })));
412
+ });
413
+ const execute = Effect.fn("SessionCompaction.execute")(function* (input) {
414
+ const context = input.context;
415
+ const history = splitHistory(context.messages, state.get().tokens);
416
+ if (!history)
417
+ return yield* failed({
418
+ sessionID: context.session.id,
419
+ reason: input.reason,
420
+ error: { type: "compaction.unavailable", message: "Nothing to compact yet" },
421
+ inputID: input.inputID
422
+ });
423
+ yield* started(input, history.recent);
424
+ const chunks = [];
425
+ let failure;
426
+ let usage;
427
+ let providerState;
428
+ const recordUsage = Effect.suspend(() => usage ? bus.publish(SessionEvent2.UsageRecorded, {
429
+ sessionID: context.session.id,
430
+ source: "compaction",
431
+ ...usage
432
+ }) : Effect.void);
433
+ const prepared = yield* compactionRequest(input, history.messages, [
434
+ Message.user(buildPrompt2(history.messages.some((message) => message.type === "compaction" && message.status === "completed")))
435
+ ]);
436
+ const transient = transient2(yield* policy2(context.session.id), {
437
+ agent: Agent.ID.make("compaction"),
438
+ model: context.model.ref,
439
+ hook: prepared.retry
336
440
  });
337
- const retry = yield* policy2(context.session.id);
338
441
  for (const request of [
339
442
  prepared.request,
340
443
  LLMRequest.update(prepared.request, {
@@ -386,31 +489,9 @@ var layer7 = Layer.effect(Service9, Effect.gen(function* () {
386
489
  return Effect.fail(new AIError({ reason: new UnknownProviderError({ message: "Compaction generation failed" }) }));
387
490
  }
388
491
  return Effect.void;
389
- }), Effect.retry({
390
- while: (cause) => Effect.gen(function* () {
391
- if (isContextOverflowFailure(cause))
392
- return false;
393
- const decision = yield* retry({
394
- cause,
395
- error: toSessionError2(cause),
396
- agent: Agent.ID.make("compaction"),
397
- model: context.model.ref,
398
- hook: prepared.retry,
399
- retry: isRetryable2(cause)
400
- });
401
- if (!decision.retry)
402
- return false;
403
- yield* Effect.sleep(decision.delay);
404
- return true;
405
- })
406
- }), Effect.catchTag("AI.Error", (error) => Effect.sync(() => {
492
+ }), transient, Effect.catchTag("AI.Error", (error) => Effect.sync(() => {
407
493
  failure = toSessionError2(error);
408
- })), Effect.onInterrupt(() => recordUsage.pipe(Effect.andThen(input.reason === "auto" ? failed({
409
- sessionID: context.session.id,
410
- reason: input.reason,
411
- error: { type: "compaction.interrupted", message: "Compaction was interrupted" },
412
- inputID: input.inputID
413
- }).pipe(Effect.asVoid) : Effect.void))));
494
+ })), Effect.onInterrupt(() => recordUsage.pipe(Effect.andThen(interrupted(input)))));
414
495
  if (failure || hasSummarySection(chunks.join("")))
415
496
  break;
416
497
  }
@@ -438,7 +519,14 @@ var layer7 = Layer.effect(Service9, Effect.gen(function* () {
438
519
  });
439
520
  return { status: "completed" };
440
521
  });
441
- const compact = (input) => execute({ ...input, reason: "auto" });
522
+ const compact = Effect.fn("SessionCompaction.compact")(function* (input) {
523
+ const request = { ...input, reason: "auto" };
524
+ if (input.overflow)
525
+ return yield* recoverLocally(request);
526
+ if (input.context.model.compaction?.mode !== "provider")
527
+ return yield* execute(request);
528
+ return yield* executeProvider(request);
529
+ });
442
530
  const required = (input) => {
443
531
  const config = state.get();
444
532
  if (!config.auto)
@@ -446,13 +534,17 @@ var layer7 = Layer.effect(Service9, Effect.gen(function* () {
446
534
  const last = input.messages.at(-1);
447
535
  if (last?.type === "compaction" && last.status === "completed")
448
536
  return false;
537
+ if (input.messages.findLastIndex(hasInputUsage) < input.messages.findLastIndex(isCheckpoint2))
538
+ return false;
449
539
  const limit = input.resolved.limit;
450
540
  const context = limit.context;
451
541
  if (context <= 0)
452
542
  return false;
453
543
  const output = Math.min(limit.output, OUTPUT_TOKEN_MAX);
454
544
  const promptCeiling = Math.min(limit.input === undefined ? Number.POSITIVE_INFINITY : limit.input - config.buffer, context - Math.max(output, config.buffer));
455
- return estimateTokens2(input) >= promptCeiling;
545
+ const policy = input.resolved.compaction;
546
+ const threshold = policy?.mode === "provider" && policy.threshold !== undefined ? Math.min(policy.threshold, promptCeiling) : promptCeiling;
547
+ return estimateTokens2(input) >= threshold;
456
548
  };
457
549
  const compactManual = Effect.fn("SessionCompaction.compactManual")(function* (input) {
458
550
  if (findTailStart(input.messages, state.get().tokens) === undefined)
@@ -469,17 +561,20 @@ var layer7 = Layer.effect(Service9, Effect.gen(function* () {
469
561
  error: toSessionError2(cause),
470
562
  inputID: input.inputID
471
563
  }),
472
- onSuccess: (context) => execute({
473
- context,
474
- instructionUpdate: context.instructionUpdate,
475
- prepare: input.prepare,
476
- reason: "manual",
477
- inputID: input.inputID,
478
- started: input.started
479
- })
564
+ onSuccess: (context) => {
565
+ const request = {
566
+ context,
567
+ instructionUpdate: context.instructionUpdate,
568
+ prepare: input.prepare,
569
+ reason: "manual",
570
+ inputID: input.inputID,
571
+ started: input.started
572
+ };
573
+ return context.model.compaction?.mode === "provider" ? executeProvider(request) : execute(request);
574
+ }
480
575
  }));
481
576
  });
482
- return Service9.of({
577
+ return Service6.of({
483
578
  transform: state.transform,
484
579
  reload: state.reload,
485
580
  enabled: () => state.get().auto,
@@ -488,10 +583,10 @@ var layer7 = Layer.effect(Service9, Effect.gen(function* () {
488
583
  compactManual
489
584
  });
490
585
  }));
491
- var node12 = makeLocationNode({
492
- service: Service9,
493
- layer: layer7,
494
- deps: [node84, llmClient2]
586
+ var node9 = makeLocationNode({
587
+ service: Service6,
588
+ layer: layer6,
589
+ deps: [node82, node85, llmClient2]
495
590
  });
496
591
 
497
- export { Service9, estimateTokens2, truncateToolOutput2, serializeToolContent2, buildPrompt2, layer7, node12, exports_compaction2 };
592
+ export { Service6, estimateTokens2, retainUsers2, truncateToolOutput2, serializeToolContent2, buildPrompt2, layer6, node9, exports_compaction2 };
@@ -1,9 +1,12 @@
1
1
  import {
2
2
  SessionEvent2
3
- } from "./worktree-mntxs535.js";
3
+ } from "./file-retention-mntxs535.js";
4
+ import {
5
+ toSessionError2
6
+ } from "./file-retention-btht280w.js";
4
7
  import {
5
8
  __export
6
- } from "./worktree-9rqn6x4v.js";
9
+ } from "./file-retention-9rqn6x4v.js";
7
10
 
8
11
  // src/session/runner/retry.ts
9
12
  var exports_retry = {};
@@ -11,8 +14,10 @@ __export(exports_retry, {
11
14
  SessionRunnerRetry: () => exports_retry,
12
15
  isRetryable: () => isRetryable2,
13
16
  make: () => make5,
14
- policy: () => policy2
17
+ policy: () => policy2,
18
+ transient: () => transient2
15
19
  });
20
+ import { isContextOverflowFailure } from "@opencode-ai/ai";
16
21
  import { Clock, Duration, Effect, Pull, Schedule } from "effect";
17
22
  function isRetryable2(error) {
18
23
  const override = error.reason.http?.headers["x-should-retry"];
@@ -80,6 +85,17 @@ var policy2 = (sessionID) => Effect.gen(function* () {
80
85
  return { retry: true, attempt, delay: normalized };
81
86
  });
82
87
  });
88
+ var transient2 = (decide, input) => (effect) => Effect.retry(effect, {
89
+ while: (cause) => Effect.gen(function* () {
90
+ if (isContextOverflowFailure(cause))
91
+ return false;
92
+ const decision = yield* decide({ ...input, cause, error: toSessionError2(cause), retry: isRetryable2(cause) });
93
+ if (!decision.retry)
94
+ return false;
95
+ yield* Effect.sleep(decision.delay);
96
+ return true;
97
+ })
98
+ });
83
99
  var make5 = (bus, sessionID) => Effect.gen(function* () {
84
100
  const decide = yield* policy2(sessionID);
85
101
  const wait = (input) => Effect.gen(function* () {
@@ -97,4 +113,4 @@ var make5 = (bus, sessionID) => Effect.gen(function* () {
97
113
  return { decide, wait };
98
114
  });
99
115
 
100
- export { isRetryable2, policy2, make5, exports_retry };
116
+ export { isRetryable2, policy2, transient2, make5, exports_retry };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  resolveNullableObjectPaths2,
3
3
  mapResultRow2
4
- } from "./worktree-emrn6kk6.js";
4
+ } from "./file-retention-emrn6kk6.js";
5
5
  import {
6
6
  SQLiteEffectDatabase2
7
- } from "./worktree-mfpdf0ta.js";
7
+ } from "./file-retention-3jyr1z4v.js";
8
8
 
9
9
  // src/database/drizzle/sqlite-core/effect/session.ts
10
10
  import * as Cause from "effect/Cause";
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  PositiveInt2
3
- } from "./worktree-p8qxwesx.js";
3
+ } from "./file-retention-p8qxwesx.js";
4
4
  import {
5
5
  __export
6
- } from "./worktree-9rqn6x4v.js";
6
+ } from "./file-retention-9rqn6x4v.js";
7
7
 
8
8
  // src/v1/config/attachment.ts
9
9
  var exports_attachment = {};
10
10
  __export(exports_attachment, {
11
11
  ConfigAttachmentV1: () => exports_attachment,
12
12
  Image: () => Image2,
13
- Info: () => Info21
13
+ Info: () => Info18
14
14
  });
15
15
  import { Schema } from "effect";
16
16
  var Image2 = Schema.Struct({
@@ -27,8 +27,8 @@ var Image2 = Schema.Struct({
27
27
  description: "Maximum base64 payload bytes for an image attachment (default: 5242880)"
28
28
  })
29
29
  }).annotate({ identifier: "ImageAttachmentConfig" });
30
- var Info21 = Schema.Struct({
30
+ var Info18 = Schema.Struct({
31
31
  image: Schema.optional(Image2).annotate({ description: "Image attachment configuration" })
32
32
  }).annotate({ identifier: "AttachmentConfig" });
33
33
 
34
- export { Image2, Info21, exports_attachment };
34
+ export { Image2, Info18, exports_attachment };
@@ -1,57 +1,57 @@
1
1
  import {
2
2
  NonNegativeInt2
3
- } from "./worktree-p8qxwesx.js";
3
+ } from "./file-retention-p8qxwesx.js";
4
4
  import {
5
5
  latest2,
6
- Service62
7
- } from "./worktree-xpxmebhh.js";
6
+ Service53
7
+ } from "./file-retention-gztfqjt6.js";
8
8
  import {
9
9
  typeFollowing2
10
- } from "./worktree-2a5m3afh.js";
10
+ } from "./file-retention-2a5m3afh.js";
11
11
  import {
12
- Service57
13
- } from "./worktree-kk0awzkj.js";
12
+ Service40
13
+ } from "./file-retention-wh6fxssz.js";
14
14
  import {
15
- Service72
16
- } from "./worktree-cjrs1hef.js";
15
+ Service62
16
+ } from "./file-retention-tebfwd6f.js";
17
17
  import {
18
- resolvePath2,
19
- Service22
20
- } from "./worktree-ynqmrvb3.js";
18
+ Service69
19
+ } from "./file-retention-7bz1waha.js";
21
20
  import {
22
- Service48
23
- } from "./worktree-471a560f.js";
21
+ Service17,
22
+ resolvePath2
23
+ } from "./file-retention-f268p0jz.js";
24
24
  import {
25
25
  output2,
26
26
  notice2,
27
27
  metadata2,
28
28
  notification2
29
- } from "./worktree-fxbjtjnd.js";
29
+ } from "./file-retention-fxbjtjnd.js";
30
30
  import {
31
- Service60,
31
+ Service50,
32
32
  name15
33
- } from "./worktree-acbvwaxg.js";
33
+ } from "./file-retention-sr82n7vz.js";
34
34
  import {
35
- NotFoundError8,
36
- Service55
37
- } from "./worktree-tgz6nsmd.js";
35
+ NotFoundError5,
36
+ Service37
37
+ } from "./file-retention-fy8y407q.js";
38
38
  import {
39
- Service24
40
- } from "./worktree-35bk7ths.js";
39
+ Service21
40
+ } from "./file-retention-cavx7z03.js";
41
41
  import {
42
42
  scan2
43
- } from "./worktree-cs4zqdxc.js";
43
+ } from "./file-retention-mwbry6nn.js";
44
44
  import {
45
45
  __export
46
- } from "./worktree-9rqn6x4v.js";
46
+ } from "./file-retention-9rqn6x4v.js";
47
47
 
48
48
  // src/tool/plugin/shell.ts
49
- var exports_shell = {};
50
- __export(exports_shell, {
49
+ var exports_shell2 = {};
50
+ __export(exports_shell2, {
51
51
  DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS2,
52
52
  Input: () => Input8,
53
- Plugin: () => Plugin9,
54
- ShellTool: () => exports_shell,
53
+ Plugin: () => Plugin25,
54
+ ShellTool: () => exports_shell2,
55
55
  name: () => name8
56
56
  });
57
57
  import { ToolFailure } from "@opencode-ai/ai";
@@ -115,44 +115,35 @@ Output is streaming to: ${file}`,
115
115
  truncated: false,
116
116
  status: "running"
117
117
  });
118
- var Plugin9 = {
118
+ var Plugin25 = {
119
119
  id: "opencode.tool.shell",
120
120
  effect: Effect.fn("ShellTool.Plugin")(function* (ctx) {
121
- const sessions = yield* Service24;
122
- const jobs = yield* Service72;
121
+ const sessions = yield* Service21;
122
+ const jobs = yield* Service62;
123
123
  const scope = yield* Scope.Scope;
124
- const environment = yield* Service57;
125
- const mutation = yield* Service22;
126
- const shell = yield* Service55;
127
- const shellSelect = yield* Service60;
124
+ const environment = yield* Service40;
125
+ const access = yield* Service17;
126
+ const shell = yield* Service37;
127
+ const shellSelect = yield* Service50;
128
128
  const compatibleShell = shellSelect.resolve({ priority: "compat" });
129
- const permission = yield* Service48;
130
- const config = yield* Service62;
129
+ const permission = yield* Service69;
130
+ const config = yield* Service53;
131
131
  const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
132
132
  const source = {
133
133
  type: "tool",
134
134
  messageID: context.messageID,
135
135
  id: context.id
136
136
  };
137
- const target = yield* mutation.resolve({ path: invocation.cwd, kind: "directory" });
137
+ const target = yield* access.resolve({ path: invocation.cwd, kind: "directory" });
138
138
  invocation.cwd = target.absolute;
139
139
  const timeout = invocation.timeout;
140
140
  const portable = latest2(yield* config.entries(), "experimental")?.portable_shell_scanner === true;
141
141
  const parsed = yield* scan2(invocation.command, invocation.shell, target.absolute, { portable });
142
- const directories = yield* Effect.forEach(parsed.directories, (directory) => mutation.resolve({
142
+ const directories = yield* Effect.forEach(parsed.directories, (directory) => access.resolve({
143
143
  path: resolvePath2(target.absolute, directory),
144
144
  kind: "directory"
145
145
  }));
146
- const external = [target, ...directories].map((item) => item.externalDirectory).filter((item) => item !== undefined).filter((item, index, items) => items.findIndex((other) => other.resource === item.resource) === index);
147
- if (external.length > 0)
148
- yield* permission.assert({
149
- action: "external_directory",
150
- resources: external.map((item) => item.resource),
151
- save: external.map((item) => item.save),
152
- sessionID: context.sessionID,
153
- agent: context.agent,
154
- source
155
- });
146
+ yield* access.authorizeExternal([target, ...directories], context);
156
147
  if (parsed.commands.length > 0)
157
148
  yield* permission.assert({
158
149
  action: name8,
@@ -214,7 +205,7 @@ var Plugin9 = {
214
205
  const run = Effect.gen(function* () {
215
206
  const result = yield* shell.result(info);
216
207
  if (!result.capture)
217
- return yield* new NotFoundError8({ id: info.id });
208
+ return yield* new NotFoundError5({ id: info.id });
218
209
  const output = output2(result);
219
210
  return {
220
211
  ...output,
@@ -266,4 +257,4 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
266
257
  })
267
258
  };
268
259
 
269
- export { name8, DEFAULT_TIMEOUT_MS2, Input8, Plugin9, exports_shell };
260
+ export { name8, DEFAULT_TIMEOUT_MS2, Input8, Plugin25, exports_shell2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./worktree-9rqn6x4v.js";
3
+ } from "./file-retention-9rqn6x4v.js";
4
4
 
5
5
  // src/v1/config/layout.ts
6
6
  var exports_layout = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./worktree-9rqn6x4v.js";
3
+ } from "./file-retention-9rqn6x4v.js";
4
4
 
5
5
  // src/repository.ts
6
6
  var exports_repository = {};