@opencode-ai/core 0.0.0-beta-17639 → 0.0.0-beta-17727

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 (782) hide show
  1. package/dist/account/sql.js +2 -2
  2. package/dist/agent.js +72 -72
  3. package/dist/aisdk-native.js +3 -3
  4. package/dist/aisdk.js +4 -4
  5. package/dist/app.js +2 -2
  6. package/dist/bus.js +70 -70
  7. package/dist/catalog.js +80 -80
  8. package/dist/chunks/index-8jqmqb92.js +1 -1
  9. package/dist/chunks/{session-aw6v6c4d.js → schema-00ryvvet.js} +13 -13
  10. package/dist/chunks/{session-02dbfq60.js → schema-02dbfq60.js} +1 -1
  11. package/dist/chunks/{session-kjv8daaj.js → schema-051fcmk5.js} +3 -3
  12. package/dist/chunks/{session-wxyhn0nc.js → schema-060vc3kf.js} +89 -85
  13. package/dist/chunks/{session-0b6ye7sf.js → schema-0b6ye7sf.js} +2 -2
  14. package/dist/chunks/{session-7eqcq6bw.js → schema-0cg1pw0s.js} +5 -5
  15. package/dist/chunks/{session-0kvmztkf.js → schema-0kvmztkf.js} +1 -1
  16. package/dist/chunks/{session-twgg36kq.js → schema-0whbcza1.js} +5 -5
  17. package/dist/chunks/{session-r9pp1rbw.js → schema-10gxy53r.js} +23 -17
  18. package/dist/chunks/{session-k8bhzhnk.js → schema-10vxyagq.js} +11 -11
  19. package/dist/chunks/{session-bgw1wapk.js → schema-18kwzasz.js} +10 -10
  20. package/dist/chunks/{session-18pv8fg3.js → schema-18pv8fg3.js} +2 -2
  21. package/dist/chunks/{session-nn9mh9z6.js → schema-192rdx49.js} +5 -5
  22. package/dist/chunks/{session-04kwjb53.js → schema-19e1vard.js} +36 -4
  23. package/dist/chunks/{session-1c00jchy.js → schema-1c00jchy.js} +2 -2
  24. package/dist/chunks/{session-fk1698j2.js → schema-1g6t86sn.js} +2 -2
  25. package/dist/chunks/{session-1h0r72pv.js → schema-1h0r72pv.js} +2 -2
  26. package/dist/chunks/{session-1xksxgzs.js → schema-1xksxgzs.js} +2 -2
  27. package/dist/chunks/{session-v2bfppbw.js → schema-23pmvn2v.js} +31 -26
  28. package/dist/chunks/{session-k90vsmvj.js → schema-250jcrxb.js} +5 -5
  29. package/dist/chunks/{session-25pxtba7.js → schema-25pxtba7.js} +1 -1
  30. package/dist/chunks/{session-qdkf97nh.js → schema-273j09zv.js} +12 -12
  31. package/dist/chunks/{session-2akqrmqf.js → schema-2akqrmqf.js} +1 -1
  32. package/dist/chunks/{session-4vw1c68y.js → schema-2mnqe42c.js} +6 -6
  33. package/dist/chunks/{session-2nmyybe0.js → schema-2nmyybe0.js} +1 -1
  34. package/dist/chunks/{session-k327betz.js → schema-2p32b2ay.js} +107 -46
  35. package/dist/chunks/{session-14syaaqa.js → schema-3567cphc.js} +3 -3
  36. package/dist/chunks/schema-35pj6hnw.js +40 -0
  37. package/dist/chunks/{session-gbmwbx35.js → schema-360p66gh.js} +4 -4
  38. package/dist/chunks/schema-395s1dxw.js +38 -0
  39. package/dist/chunks/schema-3at269ck.js +118 -0
  40. package/dist/chunks/{session-3g8vftxb.js → schema-3g8vftxb.js} +2 -2
  41. package/dist/chunks/{session-m2prafdg.js → schema-3nf0hvzp.js} +6 -6
  42. package/dist/chunks/{session-3thh6229.js → schema-3thh6229.js} +2 -2
  43. package/dist/chunks/{session-a907wmhc.js → schema-41awt1t8.js} +2 -2
  44. package/dist/chunks/{session-42q4drvy.js → schema-42q4drvy.js} +2 -2
  45. package/dist/chunks/{session-s41t0mbm.js → schema-46yj76vd.js} +9 -9
  46. package/dist/chunks/{session-vj8zvqb1.js → schema-4ayp890x.js} +6 -6
  47. package/dist/chunks/{session-4s2xwh5d.js → schema-4s2xwh5d.js} +3 -3
  48. package/dist/chunks/{session-0ztrt598.js → schema-4ye66y0n.js} +4 -4
  49. package/dist/chunks/{session-4zzdwbaz.js → schema-4zzdwbaz.js} +2 -2
  50. package/dist/chunks/{session-rfkc5twb.js → schema-50epqr84.js} +11 -11
  51. package/dist/chunks/{session-50jxp3hw.js → schema-50jxp3hw.js} +1 -1
  52. package/dist/chunks/{session-52jzav25.js → schema-52jzav25.js} +1 -1
  53. package/dist/chunks/{session-57tzwnz4.js → schema-57tzwnz4.js} +1 -1
  54. package/dist/chunks/{session-5rs65q6p.js → schema-5rs65q6p.js} +1 -1
  55. package/dist/chunks/{session-5vcssjzn.js → schema-5vcssjzn.js} +1 -1
  56. package/dist/chunks/{session-5yea2tah.js → schema-5yea2tah.js} +2 -2
  57. package/dist/chunks/{session-b4jassn3.js → schema-62mb2nss.js} +64 -49
  58. package/dist/chunks/{session-6ky7rqk7.js → schema-6ky7rqk7.js} +1 -1
  59. package/dist/chunks/{session-3z20vwjx.js → schema-6pwv4qxp.js} +8 -8
  60. package/dist/chunks/{session-6q0m15b3.js → schema-6q0m15b3.js} +1 -1
  61. package/dist/chunks/{session-1fzaf0s1.js → schema-6qwdf3jx.js} +10 -10
  62. package/dist/chunks/{session-s7rjjq9f.js → schema-6y9t5t54.js} +2 -2
  63. package/dist/chunks/{session-706a4azd.js → schema-706a4azd.js} +1 -1
  64. package/dist/chunks/{session-xngc39j7.js → schema-74q86k11.js} +5 -5
  65. package/dist/chunks/{session-mfmdw7ht.js → schema-7c1dg35e.js} +3 -3
  66. package/dist/chunks/{session-7mrpdsq5.js → schema-7mrpdsq5.js} +1 -1
  67. package/dist/chunks/{session-qhm4ckjz.js → schema-7q1h4qqg.js} +5 -5
  68. package/dist/chunks/{session-7wcmqxrc.js → schema-7wcmqxrc.js} +1 -1
  69. package/dist/chunks/{session-7xm5mbbb.js → schema-7xm5mbbb.js} +3 -3
  70. package/dist/chunks/{session-c5rxys95.js → schema-7z0bpvtb.js} +12 -12
  71. package/dist/chunks/{session-rkk4a3y9.js → schema-7z840kdh.js} +23 -23
  72. package/dist/chunks/{session-88jbfw8z.js → schema-88jbfw8z.js} +2 -2
  73. package/dist/chunks/{session-hsyk7kfz.js → schema-8bkmtpp6.js} +5 -5
  74. package/dist/chunks/{session-8k08086v.js → schema-8k08086v.js} +1 -1
  75. package/dist/chunks/{session-9amp85xk.js → schema-8m21gddp.js} +7 -7
  76. package/dist/chunks/{session-z2m3p3f2.js → schema-8meqn0qj.js} +7 -7
  77. package/dist/chunks/{session-5ba06pjj.js → schema-8nvwj8vn.js} +4 -4
  78. package/dist/chunks/{session-8v47shgf.js → schema-8v47shgf.js} +2 -2
  79. package/dist/chunks/{session-ea80pm1r.js → schema-8zhast2r.js} +11 -11
  80. package/dist/chunks/{session-93qdgxxd.js → schema-93qdgxxd.js} +1 -1
  81. package/dist/chunks/{session-999qd968.js → schema-999qd968.js} +1 -1
  82. package/dist/chunks/{session-9d2xhdr4.js → schema-9d2xhdr4.js} +3 -3
  83. package/dist/chunks/{session-9f0rnpkn.js → schema-9f0rnpkn.js} +1 -1
  84. package/dist/chunks/{session-b0gda8w9.js → schema-9hpzhr6v.js} +3 -3
  85. package/dist/chunks/{session-fdb2zs64.js → schema-9qp6gb3m.js} +5 -4
  86. package/dist/chunks/{session-3sbq567r.js → schema-a231zq3c.js} +2 -2
  87. package/dist/chunks/{session-a65h300v.js → schema-a65h300v.js} +2 -2
  88. package/dist/chunks/{session-ftj66dh5.js → schema-a94tf2t8.js} +5 -5
  89. package/dist/chunks/{session-atc09b0q.js → schema-atc09b0q.js} +2 -2
  90. package/dist/chunks/{session-6s6dtf2r.js → schema-atwe5a3v.js} +29 -29
  91. package/dist/chunks/{session-ayfwnm78.js → schema-ayfwnm78.js} +2 -2
  92. package/dist/chunks/{session-b25zdeh7.js → schema-b25zdeh7.js} +1 -1
  93. package/dist/chunks/schema-b3ds2mtq.js +36 -0
  94. package/dist/chunks/{session-b8rm84kg.js → schema-b8rm84kg.js} +1 -1
  95. package/dist/chunks/{session-ra4strm1.js → schema-bfjhgcka.js} +2 -2
  96. package/dist/chunks/{session-bv5ggvte.js → schema-bh0x2mrx.js} +8 -8
  97. package/dist/chunks/{session-84fqgtq8.js → schema-bhv5mzwt.js} +6 -6
  98. package/dist/chunks/{session-byab506k.js → schema-byab506k.js} +1 -1
  99. package/dist/chunks/{session-hxjjxgz5.js → schema-bzbxgfwx.js} +2 -2
  100. package/dist/chunks/{session-d5bmtbvc.js → schema-c4pr1nyj.js} +3 -3
  101. package/dist/chunks/{session-45wp2g52.js → schema-csp12q11.js} +10 -10
  102. package/dist/chunks/{session-fvcvykp5.js → schema-cz2t2fc1.js} +3 -3
  103. package/dist/chunks/{session-cz3dkvcz.js → schema-cz3dkvcz.js} +1 -1
  104. package/dist/chunks/{session-gfdnpqqh.js → schema-d410ggef.js} +65 -38
  105. package/dist/chunks/{session-j7bddb5r.js → schema-d8yk8dmg.js} +86 -81
  106. package/dist/chunks/{session-ew6vx4a2.js → schema-dex4g67x.js} +5 -5
  107. package/dist/chunks/{session-dhphtf1x.js → schema-dhphtf1x.js} +1 -1
  108. package/dist/chunks/{session-0srat4c7.js → schema-dk5s7bze.js} +5 -5
  109. package/dist/chunks/{session-dman5pj0.js → schema-dman5pj0.js} +2 -2
  110. package/dist/chunks/{session-kc4491k5.js → schema-dvtrg9yb.js} +4 -3
  111. package/dist/chunks/{session-afgcr2a2.js → schema-dyyjf1ar.js} +5 -5
  112. package/dist/chunks/{session-dyz5q1tb.js → schema-dyz5q1tb.js} +2 -2
  113. package/dist/chunks/{session-e1z9a0ts.js → schema-e1z9a0ts.js} +2 -2
  114. package/dist/chunks/schema-e24rm1tf.js +81 -0
  115. package/dist/chunks/{session-6v0v946z.js → schema-e8vwgqms.js} +4 -4
  116. package/dist/chunks/{session-50x5dgrv.js → schema-e93xz9yp.js} +18 -35
  117. package/dist/chunks/{session-ec8vrfw5.js → schema-ec8vrfw5.js} +1 -1
  118. package/dist/chunks/{session-0cetw2h9.js → schema-eewexb7m.js} +6 -7
  119. package/dist/chunks/{session-erj4j75s.js → schema-erj4j75s.js} +1 -1
  120. package/dist/chunks/{session-eyk9wdct.js → schema-eyk9wdct.js} +2 -2
  121. package/dist/chunks/{session-3bw6bseq.js → schema-ezceyxgn.js} +3 -3
  122. package/dist/chunks/{session-0c4kc2tg.js → schema-ezr77j7d.js} +7 -7
  123. package/dist/chunks/{session-f05p34aa.js → schema-f05p34aa.js} +3 -3
  124. package/dist/chunks/{session-4s7pt7vt.js → schema-f292tb9m.js} +14 -80
  125. package/dist/chunks/{session-f2kz495y.js → schema-f2kz495y.js} +1 -1
  126. package/dist/chunks/{session-ha7tv4ax.js → schema-f86pb1d3.js} +2 -2
  127. package/dist/chunks/{session-7kdw8qtr.js → schema-fgvm1ve0.js} +10 -10
  128. package/dist/chunks/{session-smq36hye.js → schema-fjtxtbhx.js} +2 -2
  129. package/dist/chunks/{session-fqxzsdmq.js → schema-fqxzsdmq.js} +2 -2
  130. package/dist/chunks/{session-ked98smj.js → schema-g790236b.js} +1 -1
  131. package/dist/chunks/{session-g9yygpzr.js → schema-g9yygpzr.js} +1 -1
  132. package/dist/chunks/{session-gcay93cp.js → schema-gcay93cp.js} +1 -1
  133. package/dist/chunks/{session-gd2xppx8.js → schema-gd2xppx8.js} +1 -1
  134. package/dist/chunks/schema-gp1p5nz4.js +55 -0
  135. package/dist/chunks/{session-gz765asg.js → schema-gz765asg.js} +1 -1
  136. package/dist/chunks/{session-dk9dj6bh.js → schema-gzjf1jk5.js} +8 -8
  137. package/dist/chunks/{session-h8ecejt5.js → schema-h8ecejt5.js} +1 -1
  138. package/dist/chunks/{session-cwas8xmc.js → schema-h8vsb53f.js} +6 -6
  139. package/dist/chunks/{session-3jemer1x.js → schema-hg5p6bzj.js} +6 -7
  140. package/dist/chunks/{session-kpsj4wym.js → schema-hwmywmxa.js} +12 -12
  141. package/dist/chunks/{session-5vz8v28n.js → schema-hxgabpg5.js} +10 -10
  142. package/dist/chunks/{session-j1a5h53y.js → schema-j1a5h53y.js} +1 -1
  143. package/dist/chunks/{session-59y9mt7v.js → schema-j7gsmv3x.js} +11 -11
  144. package/dist/chunks/{session-ct8sx92t.js → schema-je6m2rhy.js} +2 -2
  145. package/dist/chunks/{session-yv0m72rj.js → schema-jpbqgcgm.js} +24 -24
  146. package/dist/chunks/{session-jqkpryhn.js → schema-jqkpryhn.js} +4 -4
  147. package/dist/chunks/{session-jssy2dr3.js → schema-jssy2dr3.js} +2 -2
  148. package/dist/chunks/{session-33bxv4t4.js → schema-jt4wm1df.js} +65 -12
  149. package/dist/chunks/{session-8jzhmmys.js → schema-kbqjbq4z.js} +7 -7
  150. package/dist/chunks/{session-ftjd86ht.js → schema-kctehe0f.js} +13 -13
  151. package/dist/chunks/{session-nf1v0eng.js → schema-kf410sde.js} +3 -3
  152. package/dist/chunks/{session-kg1345f7.js → schema-kg1345f7.js} +1 -1
  153. package/dist/chunks/{session-j36kh1vd.js → schema-kgd06n6f.js} +4 -4
  154. package/dist/chunks/{session-zksmshj6.js → schema-khn0dsrz.js} +25 -18
  155. package/dist/chunks/{session-sf85c9ty.js → schema-kk4xakr8.js} +11 -11
  156. package/dist/chunks/{session-ktsm8nmr.js → schema-kke058j3.js} +7 -7
  157. package/dist/chunks/{session-fe8dyg58.js → schema-krpbg8xk.js} +4 -4
  158. package/dist/chunks/{session-kp6knqkh.js → schema-ksvnrgsv.js} +5 -5
  159. package/dist/chunks/{session-qzs4ke5r.js → schema-m106neva.js} +8 -7
  160. package/dist/chunks/{session-n7jpsh70.js → schema-mbn7wb87.js} +5 -5
  161. package/dist/chunks/{session-dgjzraq6.js → schema-md5jaask.js} +0 -1
  162. package/dist/chunks/{session-wfv9rgyt.js → schema-mdj6kn7z.js} +21 -21
  163. package/dist/chunks/{session-mf0hyk7z.js → schema-mf0hyk7z.js} +1 -1
  164. package/dist/chunks/{session-mh28new4.js → schema-mh28new4.js} +2 -2
  165. package/dist/chunks/{session-wqkytynt.js → schema-mm0veptv.js} +8 -8
  166. package/dist/chunks/{session-mnb85w6b.js → schema-mnb85w6b.js} +2 -2
  167. package/dist/chunks/{session-th5s1dsd.js → schema-mnfp87kp.js} +3 -3
  168. package/dist/chunks/{session-mwceq5am.js → schema-mwceq5am.js} +1 -1
  169. package/dist/chunks/{session-mxvw03gv.js → schema-mxvw03gv.js} +1 -1
  170. package/dist/chunks/{session-d6nt1xrt.js → schema-mznpnvbz.js} +37 -32
  171. package/dist/chunks/{session-n2w8fz38.js → schema-n2w8fz38.js} +2 -2
  172. package/dist/chunks/{session-5pnhvvbf.js → schema-n744begs.js} +6 -6
  173. package/dist/chunks/{session-h1g52f20.js → schema-n7rn0p8g.js} +6 -6
  174. package/dist/chunks/{session-nesb2rcz.js → schema-nesb2rcz.js} +2 -2
  175. package/dist/chunks/{session-qvj32qnq.js → schema-ngb74rpy.js} +10 -10
  176. package/dist/chunks/{session-nk6yb8jk.js → schema-nk6yb8jk.js} +2 -2
  177. package/dist/chunks/{session-f6dh1hgf.js → schema-nnxkn71f.js} +18 -18
  178. package/dist/chunks/{session-nr76rjj3.js → schema-nr76rjj3.js} +2 -2
  179. package/dist/chunks/{session-7mdcwqx0.js → schema-ntgfaaqc.js} +7 -7
  180. package/dist/chunks/{session-5ft4pyjm.js → schema-nx5svmx1.js} +18 -30
  181. package/dist/chunks/{session-nzrjycs5.js → schema-nzrjycs5.js} +1 -1
  182. package/dist/chunks/{session-p0zqjz05.js → schema-p0zqjz05.js} +3 -3
  183. package/dist/chunks/{session-1tjh8760.js → schema-p1camtmy.js} +3 -3
  184. package/dist/chunks/{session-70m10fmm.js → schema-p1qqy672.js} +8 -8
  185. package/dist/chunks/{session-p27xxkqg.js → schema-p27xxkqg.js} +3 -3
  186. package/dist/chunks/{session-7dz0xcj1.js → schema-p5q5g0dh.js} +14 -14
  187. package/dist/chunks/{session-pfqehjmy.js → schema-pfqehjmy.js} +2 -2
  188. package/dist/chunks/{session-ph1me6ah.js → schema-ph1me6ah.js} +2 -2
  189. package/dist/chunks/{session-py121175.js → schema-pjg2dtwn.js} +5 -5
  190. package/dist/chunks/{session-w2vq7e93.js → schema-pp0w786w.js} +9 -18
  191. package/dist/chunks/{session-pq4b4pqk.js → schema-pq4b4pqk.js} +2 -2
  192. package/dist/chunks/{session-prf9bavk.js → schema-prf9bavk.js} +3 -3
  193. package/dist/chunks/{session-3gdadknp.js → schema-prx5vj63.js} +4 -4
  194. package/dist/chunks/{session-h0t6dp8v.js → schema-psja2ka8.js} +5 -5
  195. package/dist/chunks/{session-jjazc40s.js → schema-pvpbd174.js} +5 -5
  196. package/dist/chunks/{session-jadkz9d6.js → schema-q8eje61e.js} +2 -2
  197. package/dist/chunks/{session-qe0d689s.js → schema-qe0d689s.js} +2 -2
  198. package/dist/chunks/{session-qgt32wwf.js → schema-qgt32wwf.js} +3 -3
  199. package/dist/chunks/{session-7yhtvg7m.js → schema-qp4w20e0.js} +32 -23
  200. package/dist/chunks/{session-qsgvz7g8.js → schema-qsgvz7g8.js} +2 -2
  201. package/dist/chunks/{session-192bypjc.js → schema-qz7fnwev.js} +84 -84
  202. package/dist/chunks/{session-tgmyvqfg.js → schema-r12ar42m.js} +11 -11
  203. package/dist/chunks/{session-1w0b889r.js → schema-r27by9gw.js} +12 -12
  204. package/dist/chunks/{session-r3k9abhd.js → schema-r3k9abhd.js} +2 -2
  205. package/dist/chunks/schema-renxfktz.js +82 -0
  206. package/dist/chunks/{session-tj3dgy7j.js → schema-rptxw5ca.js} +3 -3
  207. package/dist/chunks/{session-rt6yg6j2.js → schema-rt6yg6j2.js} +2 -2
  208. package/dist/chunks/{session-ryap75b3.js → schema-ryap75b3.js} +1 -1
  209. package/dist/chunks/{session-s33fw6zm.js → schema-s33fw6zm.js} +1 -1
  210. package/dist/chunks/{session-sfbv6a2b.js → schema-sfbv6a2b.js} +1 -1
  211. package/dist/chunks/{session-2ds9c0ac.js → schema-sjmge7vj.js} +66 -66
  212. package/dist/chunks/{session-smpeg8c9.js → schema-smpeg8c9.js} +2 -2
  213. package/dist/chunks/{session-4cmfemc7.js → schema-st4afeqv.js} +8 -8
  214. package/dist/chunks/{session-sw84ckhj.js → schema-sw84ckhj.js} +1 -1
  215. package/dist/chunks/{session-bmweayxc.js → schema-syd62q9r.js} +5 -5
  216. package/dist/chunks/{session-t066q9hw.js → schema-t066q9hw.js} +2 -2
  217. package/dist/chunks/{session-t14kykx1.js → schema-t14kykx1.js} +1 -1
  218. package/dist/chunks/{session-wpqp2v8c.js → schema-t48qx23x.js} +5 -5
  219. package/dist/chunks/{session-76r26z92.js → schema-t7dc291t.js} +16 -16
  220. package/dist/chunks/{session-tcn24h1d.js → schema-tcn24h1d.js} +1 -1
  221. package/dist/chunks/{session-9sgmrnba.js → schema-tdr7a9mr.js} +1 -1
  222. package/dist/chunks/{session-tenv3kfs.js → schema-tenv3kfs.js} +2 -2
  223. package/dist/chunks/{session-thstd87d.js → schema-thstd87d.js} +1 -1
  224. package/dist/chunks/{session-gk5t844f.js → schema-ts2w2c9a.js} +4 -4
  225. package/dist/chunks/{session-g4m3yxfq.js → schema-v1h0eg4v.js} +13 -13
  226. package/dist/chunks/{session-v2wshkax.js → schema-v2wshkax.js} +1 -1
  227. package/dist/chunks/{session-wssytkwa.js → schema-v4dy03sz.js} +20 -4
  228. package/dist/chunks/{session-v80zsxnb.js → schema-v80zsxnb.js} +1 -1
  229. package/dist/chunks/{session-v972xay6.js → schema-v972xay6.js} +1 -1
  230. package/dist/chunks/{session-v9bfv94f.js → schema-v9bfv94f.js} +1 -1
  231. package/dist/chunks/{session-an4kv4yz.js → schema-vbfnvw5r.js} +9 -9
  232. package/dist/chunks/{session-vxz5qdmp.js → schema-vxz5qdmp.js} +1 -1
  233. package/dist/chunks/{session-vz89hfgr.js → schema-vz89hfgr.js} +1 -1
  234. package/dist/chunks/{session-2ahjbedx.js → schema-w5z9v813.js} +58 -57
  235. package/dist/chunks/{session-tx2ppt9a.js → schema-w7yxqywk.js} +176 -131
  236. package/dist/chunks/schema-wb4dbzpz.js +23 -0
  237. package/dist/chunks/{session-wd268jeg.js → schema-wd268jeg.js} +1 -1
  238. package/dist/chunks/{session-wh0zhxcg.js → schema-wh0zhxcg.js} +2 -2
  239. package/dist/chunks/{session-wmxdh12w.js → schema-wmxdh12w.js} +1 -1
  240. package/dist/chunks/{session-wps8gh8n.js → schema-wps8gh8n.js} +2 -2
  241. package/dist/chunks/{session-297zh0jt.js → schema-wxr0j9zg.js} +4 -4
  242. package/dist/chunks/{session-neth52be.js → schema-x817znxg.js} +7 -7
  243. package/dist/chunks/{session-xczfw7dq.js → schema-xczfw7dq.js} +1 -1
  244. package/dist/chunks/{session-14a37082.js → schema-xgm3katr.js} +42 -67
  245. package/dist/chunks/{session-xgv25zxy.js → schema-xgv25zxy.js} +1 -1
  246. package/dist/chunks/schema-xqrk9zsf.js +42 -0
  247. package/dist/chunks/{session-xwftk1fd.js → schema-xwftk1fd.js} +2 -2
  248. package/dist/chunks/{session-xxpvz42q.js → schema-xxpvz42q.js} +3 -3
  249. package/dist/chunks/{session-y0x38cee.js → schema-y0x38cee.js} +1 -1
  250. package/dist/chunks/{session-y198y2ra.js → schema-y198y2ra.js} +1 -1
  251. package/dist/chunks/{session-y67x6rf6.js → schema-y67x6rf6.js} +1 -1
  252. package/dist/chunks/{session-y8rs54ne.js → schema-y8rs54ne.js} +1 -1
  253. package/dist/chunks/{session-k6vwd7kr.js → schema-y980s7ka.js} +5 -5
  254. package/dist/chunks/{session-p0fvb4rh.js → schema-y98sxkck.js} +3 -3
  255. package/dist/chunks/{session-yf0knd5z.js → schema-yf0knd5z.js} +2 -2
  256. package/dist/chunks/{session-f6yhytmv.js → schema-ypyb4rds.js} +8 -8
  257. package/dist/chunks/{session-yz0wm9s3.js → schema-yz0wm9s3.js} +2 -2
  258. package/dist/chunks/schema-z2mm0vp7.js +37 -0
  259. package/dist/chunks/{session-pq1f4a9k.js → schema-z2phqntd.js} +16 -16
  260. package/dist/chunks/{session-xar7yywh.js → schema-z2zkanea.js} +8 -8
  261. package/dist/chunks/{session-whme8v85.js → schema-z3wzp1s4.js} +6 -6
  262. package/dist/chunks/{session-zbqqnp0n.js → schema-zbqqnp0n.js} +1 -1
  263. package/dist/chunks/{session-zdkg1k91.js → schema-zdkg1k91.js} +1 -1
  264. package/dist/chunks/{session-zfxc0ze5.js → schema-zfxc0ze5.js} +1 -1
  265. package/dist/chunks/{session-a7743779.js → schema-zgdhqszm.js} +2 -2
  266. package/dist/chunks/{session-zjvgdt9p.js → schema-zjvgdt9p.js} +3 -3
  267. package/dist/chunks/{session-zkkkcc8p.js → schema-zkkkcc8p.js} +4 -4
  268. package/dist/chunks/{session-nzbhv4bc.js → schema-zp05jrm8.js} +17 -27
  269. package/dist/chunks/{session-h5w2ynrq.js → schema-zpc0w2f6.js} +3 -3
  270. package/dist/chunks/{session-zqh29h4g.js → schema-zqh29h4g.js} +2 -2
  271. package/dist/chunks/{session-6bqsqmtw.js → schema-zx1pgzr8.js} +9 -9
  272. package/dist/chunks/{session-zxe9jjhn.js → schema-zxe9jjhn.js} +2 -2
  273. package/dist/chunks/{session-dxqcfshz.js → schema-zzekq2w4.js} +8 -8
  274. package/dist/codemode/catalog.js +2 -2
  275. package/dist/codemode/instructions.js +4 -4
  276. package/dist/codemode/tool.js +3 -3
  277. package/dist/command.js +98 -130
  278. package/dist/config/markdown.js +2 -2
  279. package/dist/config/normalize.js +20 -20
  280. package/dist/config/plugin/agent.js +131 -131
  281. package/dist/config/plugin/command.js +128 -128
  282. package/dist/config/plugin/compaction.js +156 -0
  283. package/dist/config/plugin/formatter.js +115 -115
  284. package/dist/config/plugin/image.js +126 -126
  285. package/dist/config/plugin/instruction.js +87 -87
  286. package/dist/config/plugin/location-watcher.js +120 -0
  287. package/dist/config/plugin/mcp.js +124 -124
  288. package/dist/config/plugin/policy.js +112 -112
  289. package/dist/config/plugin/provider.js +111 -111
  290. package/dist/config/plugin/reference.js +115 -115
  291. package/dist/config/plugin/shell.js +121 -0
  292. package/dist/config/plugin/skill-file.js +104 -104
  293. package/dist/config/plugin/skill.js +134 -134
  294. package/dist/config/plugin/snapshot.js +120 -0
  295. package/dist/config/plugin/source.js +111 -111
  296. package/dist/config/plugin/tool-output.js +122 -0
  297. package/dist/config/plugin/websearch.js +111 -111
  298. package/dist/config/variable.js +4 -4
  299. package/dist/config.js +110 -110
  300. package/dist/credential/sql.js +3 -3
  301. package/dist/credential.js +70 -70
  302. package/dist/database/database.js +67 -67
  303. package/dist/database/drizzle/effect-sqlite/driver.js +16 -16
  304. package/dist/database/drizzle/effect-sqlite/index.js +16 -16
  305. package/dist/database/drizzle/effect-sqlite/migrator.js +15 -15
  306. package/dist/database/drizzle/effect-sqlite/session.js +15 -15
  307. package/dist/database/drizzle/index.js +18 -18
  308. package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
  309. package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
  310. package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
  311. package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
  312. package/dist/database/drizzle/sqlite-core/effect/index.js +22 -22
  313. package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
  314. package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
  315. package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
  316. package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
  317. package/dist/database/drizzle/sqlite-core/effect/session.js +14 -14
  318. package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
  319. package/dist/database/drizzle/up-migrations/effect-sqlite.js +4 -4
  320. package/dist/database/drizzle/up-migrations/sqlite.js +2 -2
  321. package/dist/database/drizzle/up-migrations/utils.js +2 -2
  322. package/dist/database/drizzle.js +19 -19
  323. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
  324. package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
  325. package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
  326. package/dist/database/migration/20260225215848_workspace.js +2 -2
  327. package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
  328. package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
  329. package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
  330. package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
  331. package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
  332. package/dist/database/migration/20260323234822_events.js +2 -2
  333. package/dist/database/migration/20260410174513_workspace-name.js +2 -2
  334. package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
  335. package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
  336. package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
  337. package/dist/database/migration/20260428004200_add_session_path.js +2 -2
  338. package/dist/database/migration/20260501142318_next_venus.js +2 -2
  339. package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
  340. package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
  341. package/dist/database/migration/20260510033149_session_usage.js +2 -2
  342. package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
  343. package/dist/database/migration/20260511173437_session-metadata.js +2 -2
  344. package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
  345. package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
  346. package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
  347. package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
  348. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
  349. package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
  350. package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
  351. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
  352. package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
  353. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
  354. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
  355. package/dist/database/migration/20260611035744_credential.js +2 -2
  356. package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
  357. package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
  358. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
  359. package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
  360. package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
  361. package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
  362. package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
  363. package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
  364. package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
  365. package/dist/database/migration/20260812181746_session_inbox.js +2 -2
  366. package/dist/database/migration/20260812213948_worktree.js +2 -2
  367. package/dist/database/migration.gen.js +46 -46
  368. package/dist/database/migration.js +48 -48
  369. package/dist/database/path.js +3 -3
  370. package/dist/database/schema.gen.js +2 -2
  371. package/dist/database/schema.sql.js +2 -2
  372. package/dist/database/sqlite.bun.js +2 -2
  373. package/dist/database/sqlite.js +2 -2
  374. package/dist/database/sqlite.node.js +2 -2
  375. package/dist/database/sqlite.workerd.js +2 -2
  376. package/dist/database/v1-migration.bun.js +79 -79
  377. package/dist/database/v1-migration.js +2 -2
  378. package/dist/database/v1-migration.noop.js +1 -1
  379. package/dist/effect/app-node-builder.js +330 -323
  380. package/dist/effect/app-node-platform.js +2 -2
  381. package/dist/effect/keyed-mutex.js +2 -2
  382. package/dist/environment/driver.js +1 -1
  383. package/dist/environment/environment.js +88 -88
  384. package/dist/environment/exec-defaults.js +3 -3
  385. package/dist/environment/files.js +2 -2
  386. package/dist/environment/index.js +90 -90
  387. package/dist/environment/local.js +3 -3
  388. package/dist/environment/memory.js +3 -3
  389. package/dist/environment/unavailable.js +1 -1
  390. package/dist/event/sql.js +2 -2
  391. package/dist/event-logger.js +70 -70
  392. package/dist/file-mutation.js +89 -89
  393. package/dist/file-retention.js +9 -0
  394. package/dist/file.js +2 -2
  395. package/dist/filesystem/fff.bun.js +2 -2
  396. package/dist/filesystem/fff.js +2 -2
  397. package/dist/filesystem/fff.node.js +2 -2
  398. package/dist/filesystem/fff.workerd.js +2 -2
  399. package/dist/filesystem/ignore.js +1 -1
  400. package/dist/filesystem/location-watcher-policy.js +12 -0
  401. package/dist/filesystem/location-watcher.js +301 -111
  402. package/dist/filesystem/protected.js +2 -2
  403. package/dist/filesystem/search.js +93 -93
  404. package/dist/filesystem/watcher-binding.js +2 -2
  405. package/dist/filesystem/watcher.js +4 -4
  406. package/dist/filesystem.js +93 -93
  407. package/dist/form.js +71 -71
  408. package/dist/formatter/builtins.js +3 -3
  409. package/dist/formatter.js +82 -82
  410. package/dist/generate.js +85 -85
  411. package/dist/git.js +5 -5
  412. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
  413. package/dist/github-copilot/chat/get-response-metadata.js +2 -2
  414. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
  415. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
  416. package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
  417. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
  418. package/dist/github-copilot/copilot-provider.js +21 -21
  419. package/dist/github-copilot/models.js +4 -4
  420. package/dist/github-copilot/openai-compatible-error.js +2 -2
  421. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +3 -3
  422. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
  423. package/dist/github-copilot/responses/openai-error.js +2 -2
  424. package/dist/github-copilot/responses/openai-responses-language-model.js +12 -12
  425. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
  426. package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
  427. package/dist/github-copilot/responses/tool/file-search.js +2 -2
  428. package/dist/github-copilot/responses/tool/image-generation.js +2 -2
  429. package/dist/github-copilot/responses/tool/local-shell.js +2 -2
  430. package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
  431. package/dist/github-copilot/responses/tool/web-search.js +2 -2
  432. package/dist/id/id.js +2 -2
  433. package/dist/image/photon-wasm.bun.js +1 -1
  434. package/dist/image/photon-wasm.node.js +1 -1
  435. package/dist/image/photon-wasm.workerd.js +1 -1
  436. package/dist/image/photon.js +95 -95
  437. package/dist/image.js +95 -95
  438. package/dist/instruction-discovery.js +74 -74
  439. package/dist/instructions/builtins.js +83 -83
  440. package/dist/instructions/index.js +2 -2
  441. package/dist/integration/connection.js +2 -2
  442. package/dist/integration.js +77 -77
  443. package/dist/job.js +4 -4
  444. package/dist/kv/sql.js +3 -3
  445. package/dist/kv.js +70 -70
  446. package/dist/location-mutation.js +81 -81
  447. package/dist/location-service-map.js +81 -81
  448. package/dist/location-services.js +330 -323
  449. package/dist/location.js +80 -80
  450. package/dist/mcp/client.js +89 -89
  451. package/dist/mcp/index.js +95 -95
  452. package/dist/mcp/instructions.js +125 -125
  453. package/dist/mcp/oauth.js +2 -2
  454. package/dist/mcp/stdio.js +89 -89
  455. package/dist/mime.js +2 -2
  456. package/dist/model-resolver.js +83 -83
  457. package/dist/model.js +3 -3
  458. package/dist/models-dev.js +77 -77
  459. package/dist/oauth/page.js +2 -2
  460. package/dist/permission/saved.js +81 -81
  461. package/dist/permission/sql.js +6 -6
  462. package/dist/permission.js +101 -101
  463. package/dist/plugin/agent.js +102 -102
  464. package/dist/plugin/command.js +81 -81
  465. package/dist/plugin/hooks.js +3 -3
  466. package/dist/plugin/host.js +165 -186
  467. package/dist/plugin/internal.js +295 -281
  468. package/dist/plugin/mcp-codemode-exclusion.js +2 -2
  469. package/dist/plugin/models-dev.js +78 -78
  470. package/dist/plugin/plan.js +74 -74
  471. package/dist/plugin/promise.js +2 -2
  472. package/dist/plugin/provider/alibaba.js +3 -3
  473. package/dist/plugin/provider/amazon-bedrock.js +3 -3
  474. package/dist/plugin/provider/anthropic.js +3 -3
  475. package/dist/plugin/provider/azure.js +118 -118
  476. package/dist/plugin/provider/cerebras.js +3 -3
  477. package/dist/plugin/provider/cloudflare-ai-gateway.js +119 -119
  478. package/dist/plugin/provider/cloudflare-workers-ai.js +119 -119
  479. package/dist/plugin/provider/cohere.js +3 -3
  480. package/dist/plugin/provider/configured.js +116 -116
  481. package/dist/plugin/provider/deepinfra.js +3 -3
  482. package/dist/plugin/provider/dynamic.js +2 -2
  483. package/dist/plugin/provider/factory.js +2 -2
  484. package/dist/plugin/provider/gateway.js +3 -3
  485. package/dist/plugin/provider/github-copilot.js +84 -84
  486. package/dist/plugin/provider/gitlab.js +4 -4
  487. package/dist/plugin/provider/google-vertex.js +3 -3
  488. package/dist/plugin/provider/groq.js +3 -3
  489. package/dist/plugin/provider/kilo.js +3 -3
  490. package/dist/plugin/provider/llmgateway.js +79 -79
  491. package/dist/plugin/provider/lmstudio.js +111 -111
  492. package/dist/plugin/provider/mistral.js +3 -3
  493. package/dist/plugin/provider/nvidia.js +3 -3
  494. package/dist/plugin/provider/ollama.js +111 -111
  495. package/dist/plugin/provider/openai-compatible.js +2 -2
  496. package/dist/plugin/provider/openai.js +81 -81
  497. package/dist/plugin/provider/opencode.js +95 -95
  498. package/dist/plugin/provider/openrouter.js +4 -4
  499. package/dist/plugin/provider/perplexity.js +3 -3
  500. package/dist/plugin/provider/sap-ai-core.js +3 -3
  501. package/dist/plugin/provider/snowflake-cortex.js +3 -3
  502. package/dist/plugin/provider/togetherai.js +3 -3
  503. package/dist/plugin/provider/venice.js +3 -3
  504. package/dist/plugin/provider/vercel.js +3 -3
  505. package/dist/plugin/provider/vllm.js +111 -111
  506. package/dist/plugin/provider/xai.js +79 -79
  507. package/dist/plugin/provider/zenmux.js +3 -3
  508. package/dist/plugin/provider.js +157 -157
  509. package/dist/plugin/runtime.js +151 -176
  510. package/dist/plugin/sdk.js +71 -71
  511. package/dist/plugin/skill.js +132 -132
  512. package/dist/plugin/supervisor-service.js +2 -2
  513. package/dist/plugin/supervisor.js +300 -286
  514. package/dist/plugin/system-prompt.js +2 -2
  515. package/dist/plugin/variant.js +4 -4
  516. package/dist/plugin/warming.js +112 -112
  517. package/dist/plugin/websearch/exa.js +4 -4
  518. package/dist/plugin/websearch/firecrawl.js +5 -5
  519. package/dist/plugin/websearch/index.js +9 -9
  520. package/dist/plugin/websearch/mcp.js +3 -3
  521. package/dist/plugin/websearch/parallel.js +5 -5
  522. package/dist/plugin/websearch/tavily.js +3 -3
  523. package/dist/plugin.js +163 -186
  524. package/dist/project/schema.js +3 -3
  525. package/dist/project/sql.js +5 -5
  526. package/dist/project.js +79 -79
  527. package/dist/provider.js +2 -2
  528. package/dist/pty/protocol.js +1 -1
  529. package/dist/pty/pty.bun.js +1 -1
  530. package/dist/pty/pty.node.js +1 -1
  531. package/dist/pty/pty.workerd.js +1 -1
  532. package/dist/pty/schema.js +2 -2
  533. package/dist/pty/ticket.js +72 -72
  534. package/dist/pty.js +86 -118
  535. package/dist/reference/instructions.js +79 -79
  536. package/dist/reference.js +77 -77
  537. package/dist/repository-cache.js +7 -7
  538. package/dist/repository.js +2 -2
  539. package/dist/ripgrep/binary.js +3 -3
  540. package/dist/ripgrep.js +91 -91
  541. package/dist/schema.js +2 -2
  542. package/dist/session/compaction.js +122 -148
  543. package/dist/session/context.js +308 -294
  544. package/dist/session/environment.js +3 -3
  545. package/dist/session/error.js +4 -4
  546. package/dist/session/event.js +2 -2
  547. package/dist/session/execution/restart.js +117 -117
  548. package/dist/session/execution.js +117 -117
  549. package/dist/session/generate-node.js +312 -301
  550. package/dist/session/generate.js +2 -2
  551. package/dist/session/history.js +79 -79
  552. package/dist/session/inbox.js +79 -85
  553. package/dist/session/info.js +89 -89
  554. package/dist/session/instruction-entry.js +75 -75
  555. package/dist/session/instruction-state.js +10 -10
  556. package/dist/session/instructions.js +98 -98
  557. package/dist/session/message-updater.js +4 -4
  558. package/dist/session/message.js +2 -2
  559. package/dist/session/model-headers.js +4 -4
  560. package/dist/session/model-hook.js +4 -4
  561. package/dist/session/model-http.js +4 -4
  562. package/dist/session/model-request.js +140 -303
  563. package/dist/session/model-transport.js +4 -4
  564. package/dist/session/projector.js +91 -91
  565. package/dist/session/prompt-cache-diagnostics.js +2 -2
  566. package/dist/session/prompt-cache-key.js +3 -3
  567. package/dist/session/revert.js +87 -116
  568. package/dist/session/run-coordinator.js +2 -2
  569. package/dist/session/runner/index.js +86 -86
  570. package/dist/session/runner/llm.js +317 -310
  571. package/dist/session/runner/max-steps.js +2 -2
  572. package/dist/session/runner/model.js +85 -85
  573. package/dist/session/runner/publish-llm-event.js +4 -4
  574. package/dist/session/runner/retry.js +74 -74
  575. package/dist/session/runner/to-llm-message.js +2 -2
  576. package/dist/session/schema.js +2 -2
  577. package/dist/session/sql.js +6 -6
  578. package/dist/session/store.js +97 -97
  579. package/dist/session/system-prompt.js +2 -2
  580. package/dist/session/title.js +115 -115
  581. package/dist/session/to-session-error.js +112 -112
  582. package/dist/session/transfer.js +155 -181
  583. package/dist/session/usage.js +2 -2
  584. package/dist/session.js +150 -175
  585. package/dist/shell/parse.js +5 -4
  586. package/dist/shell/parser-wasm.bun.js +1 -1
  587. package/dist/shell/parser-wasm.node.js +1 -1
  588. package/dist/shell/parser-wasm.workerd.js +1 -1
  589. package/dist/shell/select.js +10 -3
  590. package/dist/shell.js +103 -130
  591. package/dist/skill/discovery.js +3 -3
  592. package/dist/skill/instructions.js +103 -103
  593. package/dist/skill.js +102 -102
  594. package/dist/snapshot.js +82 -111
  595. package/dist/state.js +2 -2
  596. package/dist/tool/html-markdown.js +2 -2
  597. package/dist/tool/http-body.js +2 -2
  598. package/dist/tool/mcp.js +124 -124
  599. package/dist/tool/plugin/edit.js +111 -111
  600. package/dist/tool/plugin/file-diff.js +2 -2
  601. package/dist/tool/plugin/glob.js +113 -113
  602. package/dist/tool/plugin/grep.js +113 -113
  603. package/dist/tool/plugin/patch.js +111 -111
  604. package/dist/tool/plugin/question.js +103 -103
  605. package/dist/tool/plugin/read.js +116 -116
  606. package/dist/tool/plugin/shell.js +181 -180
  607. package/dist/tool/plugin/skill.js +103 -103
  608. package/dist/tool/plugin/subagent.js +178 -177
  609. package/dist/tool/plugin/webfetch.js +104 -104
  610. package/dist/tool/plugin/websearch.js +106 -106
  611. package/dist/tool/plugin/write.js +111 -111
  612. package/dist/tool/read-filesystem.js +95 -95
  613. package/dist/tool/runtime.js +2 -2
  614. package/dist/tool-output.js +5 -112
  615. package/dist/tool.js +117 -117
  616. package/dist/types/aisdk-native.d.ts +1 -0
  617. package/dist/types/command.d.ts +1 -10
  618. package/dist/types/config/plugin/compaction.d.ts +4 -0
  619. package/dist/types/config/plugin/location-watcher.d.ts +4 -0
  620. package/dist/types/config/plugin/shell.d.ts +4 -0
  621. package/dist/types/config/plugin/snapshot.d.ts +4 -0
  622. package/dist/types/config/plugin/tool-output.d.ts +4 -0
  623. package/dist/types/file-retention.d.ts +4 -0
  624. package/dist/types/filesystem/location-watcher-policy.d.ts +15 -0
  625. package/dist/types/kv.d.ts +14 -0
  626. package/dist/types/location-service-map.d.ts +2 -2
  627. package/dist/types/location-services.d.ts +2 -1
  628. package/dist/types/model-resolver.d.ts +3 -3
  629. package/dist/types/plugin/host.d.ts +6 -2
  630. package/dist/types/plugin/internal.d.ts +8 -3
  631. package/dist/types/plugin/supervisor.d.ts +1 -1
  632. package/dist/types/provider.d.ts +1 -3
  633. package/dist/types/pty.d.ts +1 -8
  634. package/dist/types/session/compaction.d.ts +13 -9
  635. package/dist/types/session/execution.d.ts +6 -4
  636. package/dist/types/session/generate-node.d.ts +2 -2
  637. package/dist/types/session/history.d.ts +0 -4
  638. package/dist/types/session/inbox.d.ts +2 -182
  639. package/dist/types/session/model-request.d.ts +38 -10
  640. package/dist/types/session/run-coordinator.d.ts +8 -12
  641. package/dist/types/session/runner/model.d.ts +1 -0
  642. package/dist/types/session/title.d.ts +1 -1
  643. package/dist/types/session/transfer.d.ts +0 -2
  644. package/dist/types/shell/select.d.ts +13 -1
  645. package/dist/types/shell.d.ts +5 -10
  646. package/dist/types/snapshot.d.ts +5 -1
  647. package/dist/types/tool-output.d.ts +9 -1
  648. package/dist/util/array.js +1 -1
  649. package/dist/util/error.js +2 -2
  650. package/dist/util/identifier.js +1 -1
  651. package/dist/util/iife.js +2 -2
  652. package/dist/util/lazy.js +2 -2
  653. package/dist/util/process-lock-ffi.bun.js +1 -1
  654. package/dist/util/process-lock-ffi.node.js +1 -1
  655. package/dist/util/process-lock-ffi.workerd.js +1 -1
  656. package/dist/util/process-lock.js +1 -1
  657. package/dist/util/slug.js +2 -2
  658. package/dist/util/token.js +2 -2
  659. package/dist/util/which.js +2 -2
  660. package/dist/util/wildcard.js +2 -2
  661. package/dist/v1/config/agent.js +4 -4
  662. package/dist/v1/config/attachment.js +3 -3
  663. package/dist/v1/config/command.js +2 -2
  664. package/dist/v1/config/config.js +15 -15
  665. package/dist/v1/config/error.js +3 -3
  666. package/dist/v1/config/formatter.js +2 -2
  667. package/dist/v1/config/layout.js +2 -2
  668. package/dist/v1/config/lsp.js +2 -2
  669. package/dist/v1/config/mcp.js +3 -3
  670. package/dist/v1/config/migrate.js +19 -19
  671. package/dist/v1/config/permission.js +2 -2
  672. package/dist/v1/config/plugin.js +2 -2
  673. package/dist/v1/config/provider-options.js +2 -2
  674. package/dist/v1/config/provider.js +3 -3
  675. package/dist/v1/config/server.js +3 -3
  676. package/dist/v1/config/skills.js +2 -2
  677. package/dist/v1/permission.js +1 -1
  678. package/dist/vcs/git.js +3 -3
  679. package/dist/vcs/hg.js +3 -3
  680. package/dist/vcs/patch.js +2 -2
  681. package/dist/vcs.js +84 -84
  682. package/dist/websearch.js +75 -75
  683. package/dist/wellknown/plugin.js +75 -75
  684. package/dist/wellknown.js +74 -74
  685. package/dist/workspace/driver.js +2 -2
  686. package/dist/workspace/sql.js +2 -2
  687. package/dist/workspace.js +71 -71
  688. package/dist/worktree/directory.js +3 -3
  689. package/dist/worktree/git.js +7 -7
  690. package/dist/worktree/sql.js +6 -6
  691. package/dist/worktree.js +84 -84
  692. package/package.json +11 -11
  693. package/dist/chunks/session-4s0z3f63.js +0 -126
  694. package/dist/chunks/session-7h4qt921.js +0 -72
  695. package/dist/chunks/session-nj1s64cz.js +0 -112
  696. /package/dist/chunks/{session-0cgt0xh2.js → schema-0cgt0xh2.js} +0 -0
  697. /package/dist/chunks/{session-0f48qthw.js → schema-0f48qthw.js} +0 -0
  698. /package/dist/chunks/{session-0zz82cjq.js → schema-0zz82cjq.js} +0 -0
  699. /package/dist/chunks/{session-1fb7bmpf.js → schema-1fb7bmpf.js} +0 -0
  700. /package/dist/chunks/{session-1wcz8fvj.js → schema-1wcz8fvj.js} +0 -0
  701. /package/dist/chunks/{session-2qdx6zz3.js → schema-2qdx6zz3.js} +0 -0
  702. /package/dist/chunks/{session-3c4nztf9.js → schema-3c4nztf9.js} +0 -0
  703. /package/dist/chunks/{session-3g3rpp2x.js → schema-3g3rpp2x.js} +0 -0
  704. /package/dist/chunks/{session-3q6gbwmd.js → schema-3q6gbwmd.js} +0 -0
  705. /package/dist/chunks/{session-3w3ybtfd.js → schema-3w3ybtfd.js} +0 -0
  706. /package/dist/chunks/{session-47ty4mvs.js → schema-47ty4mvs.js} +0 -0
  707. /package/dist/chunks/{session-4b2tz2m9.js → schema-4b2tz2m9.js} +0 -0
  708. /package/dist/chunks/{session-4zg0gww9.js → schema-4zg0gww9.js} +0 -0
  709. /package/dist/chunks/{session-5a5ch9ts.js → schema-5a5ch9ts.js} +0 -0
  710. /package/dist/chunks/{session-5va1yh78.js → schema-5va1yh78.js} +0 -0
  711. /package/dist/chunks/{session-69qrqpw0.js → schema-69qrqpw0.js} +0 -0
  712. /package/dist/chunks/{session-6yt963b8.js → schema-6yt963b8.js} +0 -0
  713. /package/dist/chunks/{session-7n9qwqk4.js → schema-7n9qwqk4.js} +0 -0
  714. /package/dist/chunks/{session-8nn8kqcn.js → schema-8nn8kqcn.js} +0 -0
  715. /package/dist/chunks/{session-8sj3ajy5.js → schema-8sj3ajy5.js} +0 -0
  716. /package/dist/chunks/{session-8w9tzfz1.js → schema-8w9tzfz1.js} +0 -0
  717. /package/dist/chunks/{session-906y0b6d.js → schema-906y0b6d.js} +0 -0
  718. /package/dist/chunks/{session-9dct5xhx.js → schema-9dct5xhx.js} +0 -0
  719. /package/dist/chunks/{session-9sdtsapf.js → schema-9sdtsapf.js} +0 -0
  720. /package/dist/chunks/{session-a02svayp.js → schema-a02svayp.js} +0 -0
  721. /package/dist/chunks/{session-a83yvq99.js → schema-a83yvq99.js} +0 -0
  722. /package/dist/chunks/{session-ayevdmef.js → schema-ayevdmef.js} +0 -0
  723. /package/dist/chunks/{session-b02txbh8.js → schema-b02txbh8.js} +0 -0
  724. /package/dist/chunks/{session-bbqs2y60.js → schema-bbqs2y60.js} +0 -0
  725. /package/dist/chunks/{session-brsh5f65.js → schema-brsh5f65.js} +0 -0
  726. /package/dist/chunks/{session-bxdhjb3y.js → schema-bxdhjb3y.js} +0 -0
  727. /package/dist/chunks/{session-c77ad0vh.js → schema-c77ad0vh.js} +0 -0
  728. /package/dist/chunks/{session-cm67rqy2.js → schema-cm67rqy2.js} +0 -0
  729. /package/dist/chunks/{session-d6s8p2vk.js → schema-d6s8p2vk.js} +0 -0
  730. /package/dist/chunks/{session-dbah77c1.js → schema-dbah77c1.js} +0 -0
  731. /package/dist/chunks/{session-df3v2q6j.js → schema-df3v2q6j.js} +0 -0
  732. /package/dist/chunks/{session-dhcq6c44.js → schema-dhcq6c44.js} +0 -0
  733. /package/dist/chunks/{session-dht5baf0.js → schema-dht5baf0.js} +0 -0
  734. /package/dist/chunks/{session-dkmkay92.js → schema-dkmkay92.js} +0 -0
  735. /package/dist/chunks/{session-ecxv0vtt.js → schema-ecxv0vtt.js} +0 -0
  736. /package/dist/chunks/{session-ehj9csmv.js → schema-ehj9csmv.js} +0 -0
  737. /package/dist/chunks/{session-em6xpscd.js → schema-em6xpscd.js} +0 -0
  738. /package/dist/chunks/{session-emmqknsm.js → schema-emmqknsm.js} +0 -0
  739. /package/dist/chunks/{session-ezs3tagn.js → schema-ezs3tagn.js} +0 -0
  740. /package/dist/chunks/{session-f14r7hfz.js → schema-f14r7hfz.js} +0 -0
  741. /package/dist/chunks/{session-f4cp4g4a.js → schema-f4cp4g4a.js} +0 -0
  742. /package/dist/chunks/{session-f84sxdqn.js → schema-f84sxdqn.js} +0 -0
  743. /package/dist/chunks/{session-faypg4r1.js → schema-faypg4r1.js} +0 -0
  744. /package/dist/chunks/{session-g7k9te92.js → schema-g7k9te92.js} +0 -0
  745. /package/dist/chunks/{session-gd5xeqc2.js → schema-gd5xeqc2.js} +0 -0
  746. /package/dist/chunks/{session-ghm4673n.js → schema-ghm4673n.js} +0 -0
  747. /package/dist/chunks/{session-ghwjy7my.js → schema-ghwjy7my.js} +0 -0
  748. /package/dist/chunks/{session-gy500k2r.js → schema-gy500k2r.js} +0 -0
  749. /package/dist/chunks/{session-hzeg9cfr.js → schema-hzeg9cfr.js} +0 -0
  750. /package/dist/chunks/{session-j07kk359.js → schema-j07kk359.js} +0 -0
  751. /package/dist/chunks/{session-jve7t217.js → schema-jve7t217.js} +0 -0
  752. /package/dist/chunks/{session-kpdbz7gn.js → schema-kpdbz7gn.js} +0 -0
  753. /package/dist/chunks/{session-kxy11nzk.js → schema-kxy11nzk.js} +0 -0
  754. /package/dist/chunks/{session-kyyqvx4s.js → schema-kyyqvx4s.js} +0 -0
  755. /package/dist/chunks/{session-m8cbvarh.js → schema-m8cbvarh.js} +0 -0
  756. /package/dist/chunks/{session-ma07p6tt.js → schema-ma07p6tt.js} +0 -0
  757. /package/dist/chunks/{session-ma60vzgv.js → schema-ma60vzgv.js} +0 -0
  758. /package/dist/chunks/{session-n3m50c2t.js → schema-n3m50c2t.js} +0 -0
  759. /package/dist/chunks/{session-nkm1m8dz.js → schema-nkm1m8dz.js} +0 -0
  760. /package/dist/chunks/{session-nsc0c3zb.js → schema-nsc0c3zb.js} +0 -0
  761. /package/dist/chunks/{session-qaarhjrp.js → schema-qaarhjrp.js} +0 -0
  762. /package/dist/chunks/{session-qc167nrn.js → schema-qc167nrn.js} +0 -0
  763. /package/dist/chunks/{session-qp95y4jb.js → schema-qp95y4jb.js} +0 -0
  764. /package/dist/chunks/{session-r8f4w671.js → schema-r8f4w671.js} +0 -0
  765. /package/dist/chunks/{session-rdfev9jy.js → schema-rdfev9jy.js} +0 -0
  766. /package/dist/chunks/{session-rvfvac9x.js → schema-rvfvac9x.js} +0 -0
  767. /package/dist/chunks/{session-s7whb9gt.js → schema-s7whb9gt.js} +0 -0
  768. /package/dist/chunks/{session-se76j685.js → schema-se76j685.js} +0 -0
  769. /package/dist/chunks/{session-sem2g21k.js → schema-sem2g21k.js} +0 -0
  770. /package/dist/chunks/{session-tmb1f636.js → schema-tmb1f636.js} +0 -0
  771. /package/dist/chunks/{session-ttxf0gsy.js → schema-ttxf0gsy.js} +0 -0
  772. /package/dist/chunks/{session-tvmhrvfj.js → schema-tvmhrvfj.js} +0 -0
  773. /package/dist/chunks/{session-v2adqbbe.js → schema-v2adqbbe.js} +0 -0
  774. /package/dist/chunks/{session-vkvb1sb3.js → schema-vkvb1sb3.js} +0 -0
  775. /package/dist/chunks/{session-wj4sxzqa.js → schema-wj4sxzqa.js} +0 -0
  776. /package/dist/chunks/{session-wwntjmk1.js → schema-wwntjmk1.js} +0 -0
  777. /package/dist/chunks/{session-wyqjaaa5.js → schema-wyqjaaa5.js} +0 -0
  778. /package/dist/chunks/{session-x4q807cx.js → schema-x4q807cx.js} +0 -0
  779. /package/dist/chunks/{session-xhz3jyrc.js → schema-xhz3jyrc.js} +0 -0
  780. /package/dist/chunks/{session-yrqrg4vp.js → schema-yrqrg4vp.js} +0 -0
  781. /package/dist/chunks/{session-z47nswr2.js → schema-z47nswr2.js} +0 -0
  782. /package/dist/chunks/{session-zsf8rs93.js → schema-zsf8rs93.js} +0 -0
@@ -0,0 +1,4 @@
1
+ export * as ConfigShellPlugin from "./shell.js";
2
+ import { Config } from "../../config.js";
3
+ import { ShellSelect } from "../../shell/select.js";
4
+ export declare const Plugin: import("@opencode-ai/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | ShellSelect.Service | Config.Service>;
@@ -0,0 +1,4 @@
1
+ export * as ConfigSnapshotPlugin from "./snapshot.js";
2
+ import { Config } from "../../config.js";
3
+ import { Snapshot } from "../../snapshot.js";
4
+ export declare const Plugin: import("@opencode-ai/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | Config.Service | Snapshot.Service>;
@@ -0,0 +1,4 @@
1
+ export * as ConfigToolOutputPlugin from "./tool-output.js";
2
+ import { Config } from "../../config.js";
3
+ import { ToolOutput } from "../../tool-output.js";
4
+ export declare const Plugin: import("@opencode-ai/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | Config.Service | ToolOutput.Service>;
@@ -0,0 +1,4 @@
1
+ export * as FileRetention from "./file-retention.js";
2
+ import { Duration, Effect } from "effect";
3
+ import { FSUtil } from "@opencode-ai/util/fs-util";
4
+ export declare const cleanup: (fs: FSUtil.Interface, files: readonly string[], retention: Duration.Input) => Effect.Effect<void, never, never>;
@@ -0,0 +1,15 @@
1
+ export * as LocationWatcherPolicy from "./location-watcher-policy.js";
2
+ import { Context, Effect, Scope } from "effect";
3
+ import { State } from "../state.js";
4
+ export type Draft = {
5
+ add: (ignore: readonly string[]) => void;
6
+ list: () => readonly string[];
7
+ };
8
+ export interface Interface extends State.Transformable<Draft> {
9
+ readonly current: () => readonly string[];
10
+ readonly observe: (listener: (ignore: readonly string[]) => Effect.Effect<void>) => Effect.Effect<State.Registration, never, Scope.Scope>;
11
+ }
12
+ declare const Service_base: Context.ServiceClass<Service, "@opencode/LocationWatcherPolicy", Interface>;
13
+ export declare class Service extends Service_base {
14
+ }
15
+ export declare const node: import("@opencode-ai/util/effect/layer-node").Node<Service, never, import("@opencode-ai/util/effect/layer-node").Tag<"location">>;
@@ -1,10 +1,24 @@
1
1
  export * as KV from "./kv.js";
2
2
  import { Context, Effect, Schema } from "effect";
3
3
  export type Value = Schema.Json;
4
+ export interface Entry {
5
+ readonly key: string;
6
+ readonly value: Value;
7
+ }
8
+ export interface ScanOptions {
9
+ readonly prefix: string;
10
+ readonly after?: string;
11
+ readonly limit?: number;
12
+ }
13
+ export interface ScanResult {
14
+ readonly entries: readonly Entry[];
15
+ readonly next?: string;
16
+ }
4
17
  export interface Interface {
5
18
  readonly get: (key: string) => Effect.Effect<Value | undefined>;
6
19
  readonly set: (key: string, value: Value) => Effect.Effect<void>;
7
20
  readonly remove: (key: string) => Effect.Effect<void>;
21
+ readonly scan: (options: ScanOptions) => Effect.Effect<ScanResult>;
8
22
  }
9
23
  declare const Service_base: Context.ServiceClass<Service, "@opencode/KV", Interface>;
10
24
  export declare class Service extends Service_base {
@@ -1,9 +1,9 @@
1
1
  import { Context, Layer, LayerMap } from "effect";
2
2
  import { LayerNode } from "@opencode-ai/util/effect/layer-node";
3
3
  import { Location } from "./location.js";
4
- declare const Service_base: Context.ServiceClass<Service, "@opencode/example/LocationServiceMap", LayerMap.LayerMap<Location.Ref, Location.Service | import("./agent.js").Service | import("./aisdk.js").Service | import("./form.js").Service | import("./integration.js").Service | import("./catalog.js").Service | import("./environment/environment.js").Service | import("./mcp/index.js").Service | import("./config.js").Service | import("./command.js").Service | import("./file-mutation.js").Service | import("./filesystem/search.js").Service | import("./filesystem.js").Service | import("./formatter.js").Service | import("./model-resolver.js").Service | import("./generate.js").Service | import("./image.js").Service | import("./instruction-discovery.js").Service | import("./location-mutation.js").Service | import("./filesystem/location-watcher.js").Service | import("./permission.js").Service | import("./session/runner/model.js").Service | import("./session/runner/index.js").Service | import("./reference.js").Service | import("./websearch.js").Service | import("./plugin.js").Service | import("./skill.js").Service | import("./tool.js").Service | import("./plugin/supervisor-service.js").Service | import("./tool/read-filesystem.js").Service | import("./session/instructions.js").Service | import("./shell.js").Service | import("./pty.js").Service | import("./instructions/builtins.js").Service | import("./tool-output.js").Service | import("./skill/instructions.js").Service | import("./reference/instructions.js").Service | import("./session/instruction-entry.js").Service | import("./session/generate.js").Service | import("./tool/mcp.js").Service | import("./session/model-transport.js").Service | import("./session/compaction.js").Service | import("./session/title.js").Service | import("./snapshot.js").Service | import("./vcs.js").Service, never>>;
4
+ declare const Service_base: Context.ServiceClass<Service, "@opencode/example/LocationServiceMap", LayerMap.LayerMap<Location.Ref, Location.Service | import("./agent.js").Service | import("./aisdk.js").Service | import("./form.js").Service | import("./integration.js").Service | import("./catalog.js").Service | import("./environment/environment.js").Service | import("./mcp/index.js").Service | import("./shell/select.js").Service | import("./command.js").Service | import("./config.js").Service | import("./file-mutation.js").Service | import("./filesystem/search.js").Service | import("./filesystem.js").Service | import("./formatter.js").Service | import("./model-resolver.js").Service | import("./generate.js").Service | import("./image.js").Service | import("./instruction-discovery.js").Service | import("./location-mutation.js").Service | import("./plugin/supervisor-service.js").Service | import("./session/runner/model.js").Service | import("./session/runner/index.js").Service | import("./permission.js").Service | import("./reference.js").Service | import("./websearch.js").Service | import("./plugin.js").Service | import("./skill.js").Service | import("./tool.js").Service | import("./tool/read-filesystem.js").Service | import("./session/instructions.js").Service | import("./shell.js").Service | import("./session/compaction.js").Service | import("./snapshot.js").Service | import("./tool-output.js").Service | import("./pty.js").Service | import("./instructions/builtins.js").Service | import("./skill/instructions.js").Service | import("./reference/instructions.js").Service | import("./session/instruction-entry.js").Service | import("./session/generate.js").Service | import("./tool/mcp.js").Service | import("./session/model-transport.js").Service | import("./session/title.js").Service | import("./vcs.js").Service | import("./filesystem/location-watcher.js").Service, never>>;
5
5
  export declare class Service extends Service_base {
6
- static get(ref: Location.Ref): Layer.Layer<Location.Service | import("./agent.js").Service | import("./aisdk.js").Service | import("./form.js").Service | import("./integration.js").Service | import("./catalog.js").Service | import("./environment/environment.js").Service | import("./mcp/index.js").Service | import("./config.js").Service | import("./command.js").Service | import("./file-mutation.js").Service | import("./filesystem/search.js").Service | import("./filesystem.js").Service | import("./formatter.js").Service | import("./model-resolver.js").Service | import("./generate.js").Service | import("./image.js").Service | import("./instruction-discovery.js").Service | import("./location-mutation.js").Service | import("./filesystem/location-watcher.js").Service | import("./permission.js").Service | import("./session/runner/model.js").Service | import("./session/runner/index.js").Service | import("./reference.js").Service | import("./websearch.js").Service | import("./plugin.js").Service | import("./skill.js").Service | import("./tool.js").Service | import("./plugin/supervisor-service.js").Service | import("./tool/read-filesystem.js").Service | import("./session/instructions.js").Service | import("./shell.js").Service | import("./pty.js").Service | import("./instructions/builtins.js").Service | import("./tool-output.js").Service | import("./skill/instructions.js").Service | import("./reference/instructions.js").Service | import("./session/instruction-entry.js").Service | import("./session/generate.js").Service | import("./tool/mcp.js").Service | import("./session/model-transport.js").Service | import("./session/compaction.js").Service | import("./session/title.js").Service | import("./snapshot.js").Service | import("./vcs.js").Service, never, Service>;
6
+ static get(ref: Location.Ref): Layer.Layer<Location.Service | import("./agent.js").Service | import("./aisdk.js").Service | import("./form.js").Service | import("./integration.js").Service | import("./catalog.js").Service | import("./environment/environment.js").Service | import("./mcp/index.js").Service | import("./shell/select.js").Service | import("./command.js").Service | import("./config.js").Service | import("./file-mutation.js").Service | import("./filesystem/search.js").Service | import("./filesystem.js").Service | import("./formatter.js").Service | import("./model-resolver.js").Service | import("./generate.js").Service | import("./image.js").Service | import("./instruction-discovery.js").Service | import("./location-mutation.js").Service | import("./plugin/supervisor-service.js").Service | import("./session/runner/model.js").Service | import("./session/runner/index.js").Service | import("./permission.js").Service | import("./reference.js").Service | import("./websearch.js").Service | import("./plugin.js").Service | import("./skill.js").Service | import("./tool.js").Service | import("./tool/read-filesystem.js").Service | import("./session/instructions.js").Service | import("./shell.js").Service | import("./session/compaction.js").Service | import("./snapshot.js").Service | import("./tool-output.js").Service | import("./pty.js").Service | import("./instructions/builtins.js").Service | import("./skill/instructions.js").Service | import("./reference/instructions.js").Service | import("./session/instruction-entry.js").Service | import("./session/generate.js").Service | import("./tool/mcp.js").Service | import("./session/model-transport.js").Service | import("./session/title.js").Service | import("./vcs.js").Service | import("./filesystem/location-watcher.js").Service, never, Service>;
7
7
  }
8
8
  export declare const node: LayerNode.Node<Service, never, LayerNode.Tag<"global">>;
9
9
  export * as LocationServiceMap from "./location-service-map.js";
@@ -25,6 +25,7 @@ import { Plugin } from "./plugin.js";
25
25
  import { PluginSupervisor } from "./plugin/supervisor.js";
26
26
  import { Pty } from "./pty.js";
27
27
  import { Shell } from "./shell.js";
28
+ import { ShellSelect } from "./shell/select.js";
28
29
  import { Reference } from "./reference.js";
29
30
  import { WebSearch } from "./websearch.js";
30
31
  import { ReferenceInstructions } from "./reference/instructions.js";
@@ -45,7 +46,7 @@ import { Tool } from "./tool.js";
45
46
  import { ToolOutput } from "./tool-output.js";
46
47
  import { Vcs } from "./vcs.js";
47
48
  export { LocationServiceMap } from "./location-service-map.js";
48
- export declare const locationServices: LayerNode.Node<Location.Service | Agent.Service | AISDK.Service | Form.Service | Integration.Service | Catalog.Service | Environment.Service | MCP.Service | Config.Service | Command.Service | FileMutation.Service | FileSystemSearch.Service | FileSystem.Service | Formatter.Service | ModelResolver.Service | Generate.Service | Image.Service | InstructionDiscovery.Service | LocationMutation.Service | LocationWatcher.Service | Permission.Service | SessionRunnerModel.Service | import("./session/runner/index.js").Service | Reference.Service | WebSearch.Service | Plugin.Service | Skill.Service | Tool.Service | PluginSupervisor.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | Pty.Service | InstructionBuiltIns.Service | ToolOutput.Service | SkillInstructions.Service | ReferenceInstructions.Service | InstructionEntry.Service | import("./session/generate.js").Service | McpTool.Service | SessionModelTransport.Service | SessionCompaction.Service | SessionTitle.Service | Snapshot.Service | Vcs.Service, never, LayerNode.Tag<"location">>;
49
+ export declare const locationServices: LayerNode.Node<Location.Service | Agent.Service | AISDK.Service | Form.Service | Integration.Service | Catalog.Service | Environment.Service | MCP.Service | ShellSelect.Service | Command.Service | Config.Service | FileMutation.Service | FileSystemSearch.Service | FileSystem.Service | Formatter.Service | ModelResolver.Service | Generate.Service | Image.Service | InstructionDiscovery.Service | LocationMutation.Service | PluginSupervisor.Service | SessionRunnerModel.Service | import("./session/runner/index.js").Service | Permission.Service | Reference.Service | WebSearch.Service | Plugin.Service | Skill.Service | Tool.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | SessionCompaction.Service | Snapshot.Service | ToolOutput.Service | Pty.Service | InstructionBuiltIns.Service | SkillInstructions.Service | ReferenceInstructions.Service | InstructionEntry.Service | import("./session/generate.js").Service | McpTool.Service | SessionModelTransport.Service | SessionTitle.Service | Vcs.Service | LocationWatcher.Service, never, LayerNode.Tag<"location">>;
49
50
  export type LocationServices = LayerNode.Output<typeof locationServices>;
50
51
  export type LocationError = LayerNode.Error<typeof locationServices>;
51
52
  export declare function buildLocationServiceMap(replacements?: LayerNode.Replacements): Layer.Layer<LocationServiceMap.Service>;
@@ -78,6 +78,8 @@ export interface Resolved {
78
78
  readonly capabilities: Capabilities;
79
79
  /** Catalog pricing in dollars per million tokens. */
80
80
  readonly cost: Info["cost"];
81
+ /** Catalog token limits used by Core for context management. */
82
+ readonly limit: Info["limit"];
81
83
  }
82
84
  export interface Interface {
83
85
  readonly resolve: (requested?: Ref) => Effect.Effect<Resolved | undefined, Error>;
@@ -93,9 +95,7 @@ export interface Dependencies {
93
95
  }
94
96
  export declare const fromCatalogModel: (model: Info, credential?: Credential.Value, dependencies?: Dependencies) => Effect.Effect<LanguageModel, UnsupportedPackageError | UnresolvedProviderVariablesError>;
95
97
  export declare const resolveModel: (model: Info, variant: VariantID | undefined, credential?: Credential.Value, dependencies?: Dependencies) => Effect.Effect<LanguageModel<{
96
- readonly [x: string]: {
97
- readonly [x: string]: unknown;
98
- };
98
+ readonly [x: string]: unknown;
99
99
  }>, VariantUnavailableError | UnsupportedPackageError | UnresolvedProviderVariablesError, never>;
100
100
  export declare const supported: (model: Info) => boolean;
101
101
  /** Resolves catalog selections into runtime models for the current Location. */
@@ -1,4 +1,5 @@
1
1
  export * as PluginHost from "./host.js";
2
+ import { Plugin } from "@opencode-ai/plugin/effect";
2
3
  import { EventManifest } from "@opencode-ai/schema/event-manifest";
3
4
  import { App } from "../app.js";
4
5
  import { Effect, Stream } from "effect";
@@ -8,6 +9,7 @@ import { Catalog } from "../catalog.js";
8
9
  import { Command } from "../command.js";
9
10
  import { Bus } from "../bus.js";
10
11
  import { Integration } from "../integration.js";
12
+ import { KV } from "../kv.js";
11
13
  import { Location } from "../location.js";
12
14
  import { Model } from "../model.js";
13
15
  import { MCP } from "../mcp/index.js";
@@ -17,7 +19,7 @@ import { Skill } from "../skill.js";
17
19
  import { Tool } from "../tool.js";
18
20
  import { WebSearch } from "../websearch.js";
19
21
  import { PluginHooks } from "./hooks.js";
20
- export declare const make: (plugin: import("../plugin.js").Interface) => Effect.Effect<{
22
+ export declare const make: (plugin: import("../plugin.js").Interface, pluginID?: string | undefined) => Effect.Effect<{
21
23
  app: App.Info;
22
24
  options: {};
23
25
  agent: {
@@ -253,6 +255,7 @@ export declare const make: (plugin: import("../plugin.js").Interface) => Effect.
253
255
  reload: import("../state.js").Reload;
254
256
  transform: (callback: (input: import("@opencode-ai/plugin/effect/skill").SkillDraft) => void) => Effect.Effect<import("../state.js").Registration, never, import("effect/Scope").Scope>;
255
257
  };
258
+ storage: import("@opencode-ai/plugin/effect/storage").StorageDomain;
256
259
  shell: {
257
260
  hook: <Name extends "create.before">(name: Name, callback: (input: import("@opencode-ai/plugin/effect/shell").ShellHooks[Name]) => Effect.Effect<void, Record<"create.before", never>[Name], never>) => Effect.Effect<import("../state.js").Registration, never, import("effect/Scope").Scope>;
258
261
  };
@@ -321,4 +324,5 @@ export declare const make: (plugin: import("../plugin.js").Interface) => Effect.
321
324
  interrupt: (input: import("@opencode-ai/client/effect/api").Endpoint5_32Input) => Effect.Effect<void, never, never>;
322
325
  wait: (input: import("@opencode-ai/client/effect/api").Endpoint5_18Input) => Effect.Effect<void, import("../session.js").NotFoundError, never>;
323
326
  };
324
- }, never, Bus.Service | Location.Service | Agent.Service | AISDK.Service | Integration.Service | Catalog.Service | MCP.Service | Command.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | PluginHooks.Service | Tool.Service>;
327
+ }, never, Bus.Service | Location.Service | Agent.Service | AISDK.Service | Integration.Service | Catalog.Service | MCP.Service | Command.Service | KV.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | PluginHooks.Service | Tool.Service>;
328
+ export declare function storage(kv: KV.Interface, pluginID: string): Plugin.Context["storage"];
@@ -16,6 +16,7 @@ import { FileMutation } from "../file-mutation.js";
16
16
  import { Formatter } from "../formatter.js";
17
17
  import { Form } from "../form.js";
18
18
  import { FileSystem } from "../filesystem.js";
19
+ import { LocationWatcherPolicy } from "../filesystem/location-watcher-policy.js";
19
20
  import { FSUtil } from "@opencode-ai/util/fs-util";
20
21
  import { Global } from "@opencode-ai/util/global";
21
22
  import { Image } from "../image.js";
@@ -31,21 +32,25 @@ import { Permission } from "../permission.js";
31
32
  import { Reference } from "../reference.js";
32
33
  import { WebSearch } from "../websearch.js";
33
34
  import { Ripgrep } from "../ripgrep.js";
35
+ import { SessionCompaction } from "../session/compaction.js";
34
36
  import { SessionInstructions } from "../session/instructions.js";
35
37
  import { Shell } from "../shell.js";
38
+ import { ShellSelect } from "../shell/select.js";
39
+ import { Snapshot } from "../snapshot.js";
36
40
  import { Skill } from "../skill.js";
37
41
  import { SkillDiscovery } from "../skill/discovery.js";
38
42
  import { Watcher } from "../filesystem/watcher.js";
39
43
  import { ReadToolFileSystem } from "../tool/read-filesystem.js";
40
44
  import { Tool } from "../tool.js";
45
+ import { ToolOutput } from "../tool-output.js";
41
46
  import { WellKnown } from "../wellknown.js";
42
47
  import { PluginRuntime } from "./runtime.js";
43
- declare const services: () => Effect.Effect<Context.Context<Global.Service | HttpClient.HttpClient | FSUtil.Service | AppProcess.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Catalog.Service | Environment.Service | MCP.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | Command.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | LocationMutation.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ConfigPluginSource.Service | ModelsDev.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | SkillDiscovery.Service>, never, Global.Service | HttpClient.HttpClient | FSUtil.Service | AppProcess.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Catalog.Service | Environment.Service | MCP.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | Command.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | LocationMutation.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ConfigPluginSource.Service | ModelsDev.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | SkillDiscovery.Service>;
48
+ declare const services: () => Effect.Effect<Context.Context<Global.Service | HttpClient.HttpClient | FSUtil.Service | AppProcess.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Catalog.Service | Environment.Service | MCP.Service | ShellSelect.Service | Command.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | LocationMutation.Service | ConfigPluginSource.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | LocationWatcherPolicy.Service | SessionCompaction.Service | Snapshot.Service | SkillDiscovery.Service | ToolOutput.Service>, never, Global.Service | HttpClient.HttpClient | FSUtil.Service | AppProcess.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Catalog.Service | Environment.Service | MCP.Service | ShellSelect.Service | Command.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | LocationMutation.Service | ConfigPluginSource.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | LocationWatcherPolicy.Service | SessionCompaction.Service | Snapshot.Service | SkillDiscovery.Service | ToolOutput.Service>;
44
49
  type ContextServices<A> = A extends Context.Context<infer R> ? R : never;
45
50
  export type Requirements = ContextServices<Effect.Success<ReturnType<typeof services>>>;
46
- export declare const requirements: LayerNode.Node<Global.Service | HttpClient.HttpClient | FSUtil.Service | AppProcess.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Catalog.Service | Environment.Service | MCP.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | Command.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | LocationMutation.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ConfigPluginSource.Service | ModelsDev.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | SkillDiscovery.Service, never, LayerNode.Tag<"global"> | LayerNode.Tag<"location">>;
51
+ export declare const requirements: LayerNode.Node<Global.Service | HttpClient.HttpClient | FSUtil.Service | AppProcess.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Catalog.Service | Environment.Service | MCP.Service | ShellSelect.Service | Command.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | LocationMutation.Service | ConfigPluginSource.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | LocationWatcherPolicy.Service | SessionCompaction.Service | Snapshot.Service | SkillDiscovery.Service | ToolOutput.Service, never, LayerNode.Tag<"global"> | LayerNode.Tag<"location">>;
47
52
  export type InternalPlugin = Plugin<Requirements | Scope.Scope>;
48
53
  export declare const list: () => Effect.Effect<{
49
54
  pre: Plugin<Scope.Scope>[];
50
55
  post: Plugin<Scope.Scope>[];
51
- }, never, Global.Service | HttpClient.HttpClient | FSUtil.Service | AppProcess.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Catalog.Service | Environment.Service | MCP.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | Command.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | LocationMutation.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ConfigPluginSource.Service | ModelsDev.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | SkillDiscovery.Service>;
56
+ }, never, Global.Service | HttpClient.HttpClient | FSUtil.Service | AppProcess.Service | Bus.Service | Location.Service | Agent.Service | Npm.Service | Credential.Service | Form.Service | Integration.Service | Catalog.Service | Environment.Service | MCP.Service | ShellSelect.Service | Command.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | LocationMutation.Service | ConfigPluginSource.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | LocationWatcherPolicy.Service | SessionCompaction.Service | Snapshot.Service | SkillDiscovery.Service | ToolOutput.Service>;
@@ -7,5 +7,5 @@ import { Npm } from "@opencode-ai/util/npm";
7
7
  import { Plugin } from "../plugin.js";
8
8
  import { SdkPlugins } from "./sdk.js";
9
9
  import { Service } from "./supervisor-service.js";
10
- export declare const layer: Layer.Layer<Service, never, import("@opencode-ai/util/global").Service | import("effect/unstable/http/HttpClient").HttpClient | import("@opencode-ai/util/fs-util").FSUtil.Service | import("@opencode-ai/util/process").Service | Bus.Service | import("../location.js").Service | import("../agent.js").Service | Npm.Service | import("../credential.js").Service | import("../form.js").Service | import("../integration.js").Service | import("../catalog.js").Service | import("../environment/environment.js").Service | import("../mcp/index.js").Service | import("../filesystem/watcher.js").Service | import("../kv.js").Service | import("../wellknown.js").Service | import("../config.js").Service | import("../command.js").Service | import("../file-mutation.js").Service | import("../ripgrep.js").Service | import("../filesystem.js").Service | import("../formatter.js").Service | import("../image.js").Service | import("../instruction-discovery.js").Service | import("../location-mutation.js").Service | import("../permission.js").Service | import("../reference.js").Service | import("../websearch.js").Service | Plugin.Service | import("./runtime.js").Service | import("../skill.js").Service | import("../tool.js").Service | SdkPlugins.Service | ConfigPluginSource.Service | import("../models-dev.js").Service | import("../tool/read-filesystem.js").Service | import("../session/instructions.js").Service | import("../shell.js").Service | import("../skill/discovery.js").Service>;
10
+ export declare const layer: Layer.Layer<Service, never, import("@opencode-ai/util/global").Service | import("effect/unstable/http/HttpClient").HttpClient | import("@opencode-ai/util/fs-util").FSUtil.Service | import("@opencode-ai/util/process").Service | Bus.Service | import("../location.js").Service | import("../agent.js").Service | Npm.Service | import("../credential.js").Service | import("../form.js").Service | import("../integration.js").Service | import("../catalog.js").Service | import("../environment/environment.js").Service | import("../mcp/index.js").Service | import("../shell/select.js").Service | import("../command.js").Service | import("../filesystem/watcher.js").Service | import("../kv.js").Service | import("../wellknown.js").Service | import("../config.js").Service | import("../file-mutation.js").Service | import("../ripgrep.js").Service | import("../filesystem.js").Service | import("../formatter.js").Service | import("../image.js").Service | import("../instruction-discovery.js").Service | import("../location-mutation.js").Service | ConfigPluginSource.Service | import("../permission.js").Service | import("../reference.js").Service | import("../websearch.js").Service | Plugin.Service | import("./runtime.js").Service | import("../skill.js").Service | import("../tool.js").Service | SdkPlugins.Service | import("../models-dev.js").Service | import("../tool/read-filesystem.js").Service | import("../session/instructions.js").Service | import("../shell.js").Service | import("../filesystem/location-watcher-policy.js").Service | import("../session/compaction.js").Service | import("../snapshot.js").Service | import("../skill/discovery.js").Service | import("../tool-output.js").Service>;
11
11
  export declare const node: import("@opencode-ai/util/effect/layer-node").Node<Service, never, import("@opencode-ai/util/effect/layer-node").Tag<"location">>;
@@ -33,9 +33,7 @@ export declare class LoadError extends LoadError_base {
33
33
  }
34
34
  export type ProviderPackage = ProviderPackageDefinition;
35
35
  export declare const loadPackage: (specifier: string, npm?: Npm.Interface | undefined) => Effect.Effect<ProviderPackageDefinition<import("@opencode-ai/ai").ProviderPackageSettings, {
36
- readonly [x: string]: {
37
- readonly [x: string]: unknown;
38
- };
36
+ readonly [x: string]: unknown;
39
37
  }>, LoadError, never>;
40
38
  export declare function mergeOverlay(base: Readonly<Record<string, unknown>> | undefined, overlay: Readonly<Record<string, unknown>> | undefined): Record<string, Json> | undefined;
41
39
  export declare function mergeHeaders(base: Readonly<Record<string, string>> | undefined, overlay: Readonly<Record<string, string>> | undefined): {
@@ -1,11 +1,6 @@
1
1
  export * as Pty from "./pty.js";
2
- import { Context, Effect, Layer, Schema, Types } from "effect";
3
- import { Config } from "./config.js";
4
- import { Bus } from "./bus.js";
5
- import { Location } from "./location.js";
2
+ import { Context, Effect, Schema, Types } from "effect";
6
3
  import { PtyID } from "./pty/schema.js";
7
- import { ShellSelect } from "./shell/select.js";
8
- import { Global } from "@opencode-ai/util/global";
9
4
  export declare const Info: Schema.Struct<{
10
5
  readonly id: Schema.brand<Schema.String, "PtyID"> & {
11
6
  create: () => string & import("effect/Brand").Brand<"PtyID">;
@@ -82,6 +77,4 @@ export interface Interface {
82
77
  declare const Service_base: Context.ServiceClass<Service, "@opencode/Pty", Interface>;
83
78
  export declare class Service extends Service_base {
84
79
  }
85
- export declare const layer: (options?: ShellSelect.Options) => Layer.Layer<Service, never, Global.Service | Bus.Service | Location.Service | Config.Service>;
86
- export declare function configured(options?: ShellSelect.Options): import("@opencode-ai/util/effect/layer-node").Node<Service, never, import("@opencode-ai/util/effect/layer-node").Tag<"location">>;
87
80
  export declare const node: import("@opencode-ai/util/effect/layer-node").Node<Service, never, import("@opencode-ai/util/effect/layer-node").Tag<"location">>;
@@ -1,19 +1,23 @@
1
1
  export * as SessionCompaction from "./compaction.js";
2
- import { type LanguageModel } from "@opencode-ai/ai";
3
2
  import { Context, Effect, Layer } from "effect";
4
- import { Config } from "../config.js";
5
3
  import { Bus } from "../bus.js";
6
4
  import type { SessionMessage } from "./message.js";
7
5
  import { SessionRunnerModel } from "./runner/model.js";
8
6
  import { SessionSchema } from "./schema.js";
9
- import type { Info, Ref } from "../model.js";
10
7
  import { PluginHooks } from "../plugin/hooks.js";
8
+ import { State } from "../state.js";
9
+ export type Settings = {
10
+ auto: boolean;
11
+ buffer: number;
12
+ tokens: number;
13
+ };
14
+ export type Draft = {
15
+ configure: (settings: Partial<Settings>) => void;
16
+ };
11
17
  export type AutoInput = {
12
18
  readonly session: SessionSchema.Info;
13
19
  readonly messages: readonly SessionMessage.Info[];
14
- readonly model: LanguageModel;
15
- readonly ref: Ref;
16
- readonly cost: Info["cost"];
20
+ readonly resolved: SessionRunnerModel.Resolved;
17
21
  };
18
22
  export type ManualInput = {
19
23
  readonly session: SessionSchema.Info;
@@ -21,9 +25,9 @@ export type ManualInput = {
21
25
  readonly inputID: SessionMessage.ID;
22
26
  readonly started?: boolean;
23
27
  };
24
- type RequiredInput = Omit<AutoInput, "ref">;
28
+ type RequiredInput = Pick<AutoInput, "messages" | "resolved">;
25
29
  export type Outcome = Pick<SessionMessage.CompactionCompleted, "status"> | Pick<SessionMessage.CompactionFailed, "status" | "error">;
26
- export interface Interface {
30
+ export interface Interface extends State.Transformable<Draft> {
27
31
  readonly required: (input: RequiredInput) => boolean;
28
32
  readonly compact: (input: AutoInput) => Effect.Effect<Outcome>;
29
33
  readonly compactManual: (input: ManualInput) => Effect.Effect<Outcome>;
@@ -36,5 +40,5 @@ export declare const buildPrompt: (input: {
36
40
  readonly previousSummary?: string;
37
41
  readonly context: readonly string[];
38
42
  }) => string;
39
- export declare const layer: Layer.Layer<Service, never, Bus.Service | import("@opencode-ai/ai").LLMClientService | Config.Service | SessionRunnerModel.Service | PluginHooks.Service>;
43
+ export declare const layer: Layer.Layer<Service, never, Bus.Service | import("@opencode-ai/ai").LLMClientService | SessionRunnerModel.Service | PluginHooks.Service>;
40
44
  export declare const node: import("@opencode-ai/util/effect/layer-node").Node<Service, never, import("@opencode-ai/util/effect/layer-node").Tag<"location">>;
@@ -13,9 +13,11 @@ export interface Interface {
13
13
  readonly resume: (sessionID: SessionSchema.ID) => Effect.Effect<void, SessionRunner.RunError>;
14
14
  /** Registers newly recorded work. Repeated wakeups may coalesce. */
15
15
  readonly wake: (sessionID: SessionSchema.ID) => Effect.Effect<void>;
16
- /** Wakes only an active execution, preserving its current input eligibility. */
17
- readonly wakeActive: (sessionID: SessionSchema.ID) => Effect.Effect<void>;
18
- /** Interrupt active work owned by this process. Idle interruption is a no-op. */
16
+ /**
17
+ * Interrupt active work owned by this process. Idle interruption is a no-op. Resolves once
18
+ * the interruption is accepted; cleanup settles asynchronously in the execution fiber.
19
+ * Compose with `awaitIdle` when settlement matters.
20
+ */
19
21
  readonly interrupt: (sessionID: SessionSchema.ID, options?: {
20
22
  readonly continue?: boolean;
21
23
  }) => Effect.Effect<void>;
@@ -26,7 +28,7 @@ declare const Service_base: Context.ServiceClass<Service, "@opencode/SessionExec
26
28
  /** Routes execution from a Session ID to the runner owned by that Session's Location. */
27
29
  export declare class Service extends Service_base {
28
30
  }
29
- type InterruptReason = "user" | "shutdown" | "superseded";
31
+ type InterruptReason = "user" | "shutdown";
30
32
  export declare function terminal(exit: Exit.Exit<void, SessionRunner.RunError>, reason?: InterruptReason): {
31
33
  type: "succeeded";
32
34
  reason?: undefined;
@@ -1,9 +1,9 @@
1
1
  export * as SessionGenerateNode from "./generate-node.js";
2
2
  import { Layer } from "effect";
3
3
  import { Database } from "../database/database.js";
4
- import { PluginHooks } from "../plugin/hooks.js";
5
4
  import { SessionContext } from "./context.js";
6
5
  import { SessionGenerate } from "./generate.js";
6
+ import { SessionModelRequest } from "./model-request.js";
7
7
  import { SessionRunnerModel } from "./runner/model.js";
8
- export declare const layer: Layer.Layer<SessionGenerate.Service, never, Database.Service | import("@opencode-ai/ai").LLMClientService | SessionRunnerModel.Service | PluginHooks.Service | SessionContext.Service>;
8
+ export declare const layer: Layer.Layer<SessionGenerate.Service, never, Database.Service | import("@opencode-ai/ai").LLMClientService | SessionRunnerModel.Service | SessionModelRequest.Service | SessionContext.Service>;
9
9
  export declare const node: import("@opencode-ai/util/effect/layer-node").Node<SessionGenerate.Service, never, import("@opencode-ai/util/effect/layer-node").Tag<"location">>;
@@ -99,7 +99,6 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
99
99
  readonly skills?: readonly {
100
100
  readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
101
101
  readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
102
- readonly text: string;
103
102
  readonly mention?: {
104
103
  readonly start: number;
105
104
  readonly end: number;
@@ -450,7 +449,6 @@ export declare const entriesForRunner: (db: import("../database/drizzle.js").Eff
450
449
  readonly skills?: readonly {
451
450
  readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
452
451
  readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
453
- readonly text: string;
454
452
  readonly mention?: {
455
453
  readonly start: number;
456
454
  readonly end: number;
@@ -801,7 +799,6 @@ export declare const preview: (db: import("../database/drizzle.js").EffectSQLite
801
799
  readonly skills?: readonly {
802
800
  readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
803
801
  readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
804
- readonly text: string;
805
802
  readonly mention?: {
806
803
  readonly start: number;
807
804
  readonly end: number;
@@ -1098,7 +1095,6 @@ export declare const firstUserMessage: (db: import("../database/drizzle.js").Eff
1098
1095
  readonly skills?: readonly {
1099
1096
  readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
1100
1097
  readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
1101
- readonly text: string;
1102
1098
  readonly mention?: {
1103
1099
  readonly start: number;
1104
1100
  readonly end: number;