@opencode-ai/core 0.0.0-beta-18050 → 0.0.0-beta-18138

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 (774) hide show
  1. package/dist/account/sql.js +2 -2
  2. package/dist/agent.js +74 -74
  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 +72 -72
  7. package/dist/catalog.js +82 -82
  8. package/dist/chunks/{repository-02dbfq60.js → file-02dbfq60.js} +1 -1
  9. package/dist/chunks/{repository-19nk26qg.js → file-02s4hv33.js} +6 -6
  10. package/dist/chunks/{repository-11xbb36n.js → file-0730y5g4.js} +8 -8
  11. package/dist/chunks/{repository-0b17sr9d.js → file-0b17sr9d.js} +2 -2
  12. package/dist/chunks/{repository-0kvmztkf.js → file-0kvmztkf.js} +1 -1
  13. package/dist/chunks/{repository-d11spqme.js → file-0nwp4p60.js} +3 -3
  14. package/dist/chunks/{repository-y42a42h0.js → file-0qjze07f.js} +8 -8
  15. package/dist/chunks/{repository-0vgt3zn6.js → file-0vgt3zn6.js} +2 -2
  16. package/dist/chunks/{repository-m06817f1.js → file-0x72qwf2.js} +13 -13
  17. package/dist/chunks/{repository-smnxe6n4.js → file-0z1fqjbe.js} +5 -5
  18. package/dist/chunks/{repository-wqyc30nm.js → file-13eba9z3.js} +7 -7
  19. package/dist/chunks/{repository-p5dvx6y6.js → file-15fbqbqp.js} +16 -16
  20. package/dist/chunks/{repository-18pv8fg3.js → file-18pv8fg3.js} +2 -2
  21. package/dist/chunks/{repository-1a3a2s70.js → file-1a3a2s70.js} +2 -2
  22. package/dist/chunks/{repository-swj2q685.js → file-1b390eyt.js} +31 -31
  23. package/dist/chunks/{repository-mrqw8haq.js → file-1etxj66h.js} +27 -27
  24. package/dist/chunks/{repository-kcsrasp9.js → file-1qe3kv1r.js} +5 -5
  25. package/dist/chunks/{repository-hdzee9tm.js → file-1z2x4t8z.js} +6 -6
  26. package/dist/chunks/{repository-ystg2gyf.js → file-24za91nq.js} +4 -4
  27. package/dist/chunks/{repository-s4hn1693.js → file-2dargkq0.js} +2 -2
  28. package/dist/chunks/{repository-d86mjvzn.js → file-2dwzgw1w.js} +6 -6
  29. package/dist/chunks/{repository-tzx1ffr9.js → file-2m5exym4.js} +2 -2
  30. package/dist/chunks/{repository-2nmyybe0.js → file-2nmyybe0.js} +1 -1
  31. package/dist/chunks/{repository-2ya5073c.js → file-2ya5073c.js} +1 -1
  32. package/dist/chunks/{repository-2zf7hxjt.js → file-2zf7hxjt.js} +2 -2
  33. package/dist/chunks/{repository-37e9hbzs.js → file-37e9hbzs.js} +2 -2
  34. package/dist/chunks/{repository-858t3z28.js → file-38t3taeq.js} +14 -14
  35. package/dist/chunks/{repository-3d1t6jqf.js → file-3d1t6jqf.js} +3 -3
  36. package/dist/chunks/{repository-3g8vftxb.js → file-3g8vftxb.js} +2 -2
  37. package/dist/chunks/{repository-3gsv1x0v.js → file-3gsv1x0v.js} +2 -2
  38. package/dist/chunks/file-3mdsecvn.js +88 -0
  39. package/dist/chunks/{repository-3thh6229.js → file-3thh6229.js} +2 -2
  40. package/dist/chunks/{repository-h12xmwx7.js → file-44smmzfj.js} +4 -4
  41. package/dist/chunks/{repository-mb58nrky.js → file-46a8q1c3.js} +5 -5
  42. package/dist/chunks/{repository-4j7te1s0.js → file-4j7te1s0.js} +2 -2
  43. package/dist/chunks/{repository-4s2xwh5d.js → file-4s2xwh5d.js} +3 -3
  44. package/dist/chunks/{repository-8j59qhj0.js → file-4twc66gs.js} +4 -4
  45. package/dist/chunks/{repository-4zzdwbaz.js → file-4zzdwbaz.js} +2 -2
  46. package/dist/chunks/{repository-50jxp3hw.js → file-50jxp3hw.js} +1 -1
  47. package/dist/chunks/{repository-50qcmj3d.js → file-50qcmj3d.js} +2 -2
  48. package/dist/chunks/{repository-947javjk.js → file-50rqman0.js} +5 -5
  49. package/dist/chunks/{repository-57tzwnz4.js → file-57tzwnz4.js} +1 -1
  50. package/dist/chunks/{repository-58xdvehb.js → file-58xdvehb.js} +1 -1
  51. package/dist/chunks/{repository-5fe026tx.js → file-5fe026tx.js} +3 -3
  52. package/dist/chunks/{repository-6yx85d7j.js → file-5h5k77cm.js} +4 -4
  53. package/dist/chunks/{repository-017q37t7.js → file-5qa0fscy.js} +9 -9
  54. package/dist/chunks/{repository-5rs65q6p.js → file-5rs65q6p.js} +1 -1
  55. package/dist/chunks/{repository-5vcssjzn.js → file-5vcssjzn.js} +1 -1
  56. package/dist/chunks/{repository-5xrsrne4.js → file-5xrsrne4.js} +3 -3
  57. package/dist/chunks/{repository-65re92qg.js → file-65re92qg.js} +2 -2
  58. package/dist/chunks/{repository-j5hrhx3x.js → file-689gj8vg.js} +5 -5
  59. package/dist/chunks/{repository-hyaje1vk.js → file-68x9ed4b.js} +15 -15
  60. package/dist/chunks/{repository-gzbvfwf2.js → file-6embh6xw.js} +13 -13
  61. package/dist/chunks/{repository-6ky7rqk7.js → file-6ky7rqk7.js} +1 -1
  62. package/dist/chunks/{repository-6q0m15b3.js → file-6q0m15b3.js} +1 -1
  63. package/dist/chunks/{repository-gnbga0wc.js → file-6rhax1m5.js} +17 -17
  64. package/dist/chunks/{repository-e1jzrz0h.js → file-6tyekgkq.js} +8 -8
  65. package/dist/chunks/{repository-6x98y149.js → file-6x98y149.js} +2 -2
  66. package/dist/chunks/{repository-epzx4wh3.js → file-7f8kqfqc.js} +84 -9
  67. package/dist/chunks/{repository-7gqqz1s8.js → file-7gqqz1s8.js} +1 -1
  68. package/dist/chunks/{repository-81gd7d42.js → file-7khw64yh.js} +5 -5
  69. package/dist/chunks/{repository-7mrpdsq5.js → file-7mrpdsq5.js} +1 -1
  70. package/dist/chunks/{repository-7wcmqxrc.js → file-7wcmqxrc.js} +1 -1
  71. package/dist/chunks/{repository-mg0wjpxp.js → file-80vfrdzz.js} +17 -17
  72. package/dist/chunks/{repository-1x9t7cer.js → file-818cdpwq.js} +40 -40
  73. package/dist/chunks/{repository-88jbfw8z.js → file-88jbfw8z.js} +2 -2
  74. package/dist/chunks/{repository-hsyk7kfz.js → file-8bkmtpp6.js} +5 -5
  75. package/dist/chunks/{repository-8bqpm1yy.js → file-8bqpm1yy.js} +2 -2
  76. package/dist/chunks/{repository-fqkd4f6m.js → file-8etkm1gw.js} +12 -12
  77. package/dist/chunks/{repository-8gp1tmat.js → file-8gp1tmat.js} +3 -3
  78. package/dist/chunks/file-8rpfd2h6.js +6 -0
  79. package/dist/chunks/{repository-fvqaa73j.js → file-8sjpk5tw.js} +4 -4
  80. package/dist/chunks/{repository-8v47shgf.js → file-8v47shgf.js} +2 -2
  81. package/dist/chunks/{repository-qndqqkjp.js → file-90v3h0sr.js} +3 -3
  82. package/dist/chunks/{repository-999qd968.js → file-999qd968.js} +1 -1
  83. package/dist/chunks/{repository-7fr2g77j.js → file-9b76fep3.js} +6 -6
  84. package/dist/chunks/{repository-6pggz8rq.js → file-9ee5n1v5.js} +3 -3
  85. package/dist/chunks/{repository-9f0rnpkn.js → file-9f0rnpkn.js} +1 -1
  86. package/dist/chunks/{repository-kt73e9zh.js → file-9m4hsa37.js} +3 -3
  87. package/dist/chunks/{repository-y0vpjt24.js → file-9ns1xgcj.js} +3 -3
  88. package/dist/chunks/{repository-9p8mhgdp.js → file-9p8mhgdp.js} +1 -1
  89. package/dist/chunks/{repository-dpsnt732.js → file-9s93m60e.js} +48 -17
  90. package/dist/chunks/{repository-3a4x8zhx.js → file-9x3tbq7j.js} +19 -17
  91. package/dist/chunks/{repository-rn8rvmdr.js → file-9y1a5a00.js} +3 -3
  92. package/dist/chunks/{repository-g5f6jqvg.js → file-a230eh9a.js} +7 -7
  93. package/dist/chunks/{repository-bh2zsv8s.js → file-agc8qws7.js} +3 -3
  94. package/dist/chunks/{repository-yznwxyzd.js → file-an4m9hpw.js} +12 -12
  95. package/dist/chunks/{repository-ayfwnm78.js → file-ayfwnm78.js} +2 -2
  96. package/dist/chunks/{repository-b7hsw5bk.js → file-b7hsw5bk.js} +3 -3
  97. package/dist/chunks/{repository-34cvvbhq.js → file-b8519c25.js} +90 -90
  98. package/dist/chunks/{repository-b9cs3r7z.js → file-be8mxdgp.js} +6 -6
  99. package/dist/chunks/{repository-bh1wr8rq.js → file-bh1wr8rq.js} +2 -2
  100. package/dist/chunks/{repository-wtgj0n4x.js → file-bh4g4m9b.js} +11 -11
  101. package/dist/chunks/file-bjwj8hwv.js +7 -0
  102. package/dist/chunks/{repository-nzmxk4x3.js → file-bspa06mt.js} +5 -5
  103. package/dist/chunks/{repository-0a22mhbv.js → file-bss53per.js} +10 -10
  104. package/dist/chunks/{repository-byab506k.js → file-byab506k.js} +1 -1
  105. package/dist/chunks/{repository-c4wcb9vc.js → file-c4wcb9vc.js} +2 -2
  106. package/dist/chunks/{repository-jvjpc9xb.js → file-c6vmycfq.js} +31 -31
  107. package/dist/chunks/{repository-c9tk9ghs.js → file-c9tk9ghs.js} +2 -2
  108. package/dist/chunks/{repository-dsv9hv0k.js → file-chjbvzpp.js} +2 -2
  109. package/dist/chunks/{repository-cke3skfe.js → file-cke3skfe.js} +3 -3
  110. package/dist/chunks/{repository-cve546b2.js → file-cve546b2.js} +2 -2
  111. package/dist/chunks/{repository-cz3dkvcz.js → file-cz3dkvcz.js} +1 -1
  112. package/dist/chunks/{repository-d2gk9vpf.js → file-d2gk9vpf.js} +2 -2
  113. package/dist/chunks/{repository-943c5s14.js → file-d68fvrxq.js} +3 -3
  114. package/dist/chunks/{repository-7r0jfg0p.js → file-ddh4578g.js} +10 -10
  115. package/dist/chunks/{repository-x8gepb8z.js → file-dga9pvfg.js} +10 -10
  116. package/dist/chunks/{repository-dhphtf1x.js → file-dhphtf1x.js} +1 -1
  117. package/dist/chunks/{repository-ksyd53em.js → file-dj7k5g3p.js} +4 -4
  118. package/dist/chunks/{repository-djkt4gex.js → file-djkt4gex.js} +1 -1
  119. package/dist/chunks/{repository-dyrphakh.js → file-dyrphakh.js} +2 -2
  120. package/dist/chunks/{repository-xk7fbn0s.js → file-dzhyjawd.js} +2 -2
  121. package/dist/chunks/{repository-e1z9a0ts.js → file-e1z9a0ts.js} +2 -2
  122. package/dist/chunks/{repository-xa15jg7e.js → file-e49vbhvs.js} +6 -6
  123. package/dist/chunks/{repository-ec8vrfw5.js → file-ec8vrfw5.js} +1 -1
  124. package/dist/chunks/{repository-hyjdhe1s.js → file-eczrazwx.js} +4 -4
  125. package/dist/chunks/{repository-dbj39srv.js → file-eekh0m04.js} +42 -15
  126. package/dist/chunks/{repository-fhgzb35b.js → file-ek082he4.js} +3 -3
  127. package/dist/chunks/{repository-7dx1jgde.js → file-ekbp86xr.js} +2 -2
  128. package/dist/chunks/{repository-epzxjdf4.js → file-epzxjdf4.js} +4 -4
  129. package/dist/chunks/{repository-0rz83w8e.js → file-f0jkyhbh.js} +3 -3
  130. package/dist/chunks/{repository-ztjk4rav.js → file-f11jbhcb.js} +6 -6
  131. package/dist/chunks/{repository-24ferkdr.js → file-f1yj8g4w.js} +5 -5
  132. package/dist/chunks/{repository-tj4mvbx6.js → file-f20jmm2a.js} +2 -2
  133. package/dist/chunks/{repository-f9wt0tjw.js → file-f9wt0tjw.js} +2 -2
  134. package/dist/chunks/{repository-p27xxkqg.js → file-fb7nfzf2.js} +10 -10
  135. package/dist/chunks/{repository-dq1vq3k8.js → file-fba53602.js} +3 -3
  136. package/dist/chunks/{repository-arstc7zy.js → file-fdbvb5rr.js} +3 -3
  137. package/dist/chunks/{repository-chgqh167.js → file-fsq7r0g2.js} +8 -8
  138. package/dist/chunks/{repository-8zc0dyns.js → file-fxf1jxfh.js} +4 -4
  139. package/dist/chunks/{repository-60srq7mz.js → file-g3j9vny8.js} +150 -150
  140. package/dist/chunks/{repository-g7t6p8r2.js → file-g7t6p8r2.js} +1 -1
  141. package/dist/chunks/{repository-gcay93cp.js → file-gcay93cp.js} +1 -1
  142. package/dist/chunks/{repository-gd2xppx8.js → file-gd2xppx8.js} +1 -1
  143. package/dist/chunks/{repository-2tkyg9cf.js → file-gdza155x.js} +9 -9
  144. package/dist/chunks/{repository-gg8gy1ab.js → file-gg8gy1ab.js} +2 -2
  145. package/dist/chunks/{repository-1w9ckf05.js → file-gnc2830c.js} +13 -13
  146. package/dist/chunks/{repository-sd2erey0.js → file-grn88jbf.js} +4 -4
  147. package/dist/chunks/{repository-h75w0mx4.js → file-gzqp63az.js} +4 -4
  148. package/dist/chunks/{repository-hhxt27np.js → file-hhxt27np.js} +2 -2
  149. package/dist/chunks/{repository-bpdapyyw.js → file-hkmb5v6c.js} +8 -6
  150. package/dist/chunks/{repository-hp6rpdnc.js → file-hp6rpdnc.js} +1 -1
  151. package/dist/chunks/file-hv9r99ch.js +165 -0
  152. package/dist/chunks/{repository-44ct9h70.js → file-hwcs0txm.js} +10 -10
  153. package/dist/chunks/{repository-swbxkzfg.js → file-j5q8scqt.js} +13 -13
  154. package/dist/chunks/{repository-yp2vd71t.js → file-j7nk5ghy.js} +6 -6
  155. package/dist/chunks/{repository-sxnhh4fa.js → file-j832jmcd.js} +24 -24
  156. package/dist/chunks/{repository-gxwcshd7.js → file-j9xw7bp8.js} +96 -114
  157. package/dist/chunks/{repository-s9m64ven.js → file-jdmzymbb.js} +3 -3
  158. package/dist/chunks/{repository-5mt7txy3.js → file-jhqfhgc9.js} +21 -21
  159. package/dist/chunks/{repository-k1qbhf8n.js → file-jqggfpj6.js} +6 -6
  160. package/dist/chunks/{repository-jssy2dr3.js → file-jssy2dr3.js} +2 -2
  161. package/dist/chunks/{repository-8x7rdb4e.js → file-jxrzxbza.js} +6 -6
  162. package/dist/chunks/{repository-k42t1tha.js → file-k42t1tha.js} +2 -2
  163. package/dist/chunks/{repository-z82089tt.js → file-kav4v9q9.js} +6 -6
  164. package/dist/chunks/{repository-kg1345f7.js → file-kg1345f7.js} +1 -1
  165. package/dist/chunks/{repository-kp1t5rcy.js → file-kp1t5rcy.js} +1 -1
  166. package/dist/chunks/{repository-yz541yvf.js → file-m2wgpszj.js} +89 -89
  167. package/dist/chunks/{repository-mf0hyk7z.js → file-mf0hyk7z.js} +1 -1
  168. package/dist/chunks/{repository-mh28new4.js → file-mh28new4.js} +2 -2
  169. package/dist/chunks/{repository-mnb85w6b.js → file-mnb85w6b.js} +2 -2
  170. package/dist/chunks/{repository-anfsarxw.js → file-mvcs28cp.js} +3 -3
  171. package/dist/chunks/{repository-mxvw03gv.js → file-mxvw03gv.js} +1 -1
  172. package/dist/chunks/{repository-abqeyaxt.js → file-n4wxsfqz.js} +1 -1
  173. package/dist/chunks/{repository-nesb2rcz.js → file-nesb2rcz.js} +2 -2
  174. package/dist/chunks/{repository-nwbnyeam.js → file-nqy1sr3e.js} +3 -3
  175. package/dist/chunks/{repository-nr76rjj3.js → file-nr76rjj3.js} +2 -2
  176. package/dist/chunks/{repository-nrkas8zm.js → file-nrkas8zm.js} +3 -3
  177. package/dist/chunks/{repository-8jdbkzjk.js → file-nvkf6p6q.js} +8 -8
  178. package/dist/chunks/{repository-nny22dkj.js → file-nzjfanc8.js} +3 -3
  179. package/dist/chunks/{repository-nzrjycs5.js → file-nzrjycs5.js} +1 -1
  180. package/dist/chunks/{repository-e52jcrg1.js → file-nzxr5g83.js} +8 -8
  181. package/dist/chunks/{repository-kqga9xka.js → file-p0aver5h.js} +4 -4
  182. package/dist/chunks/{repository-t547ysa6.js → file-p53t4frd.js} +3 -3
  183. package/dist/chunks/{repository-ke6py03n.js → file-pbew5wz2.js} +6 -6
  184. package/dist/chunks/{repository-pfqehjmy.js → file-pfqehjmy.js} +2 -2
  185. package/dist/chunks/{repository-aqg9wnx6.js → file-pjywn1fy.js} +17 -2
  186. package/dist/chunks/{repository-pq4b4pqk.js → file-pq4b4pqk.js} +2 -2
  187. package/dist/chunks/{repository-qk37kkpq.js → file-q07sa4nq.js} +6 -6
  188. package/dist/chunks/{repository-qe0d689s.js → file-qe0d689s.js} +2 -2
  189. package/dist/chunks/{repository-p1adn62v.js → file-qf7y470v.js} +16 -16
  190. package/dist/chunks/{repository-qhdqjp31.js → file-qhdqjp31.js} +1 -1
  191. package/dist/chunks/{repository-phz4zzmh.js → file-qvmc37x7.js} +6 -6
  192. package/dist/chunks/{repository-hns32vgv.js → file-qwqfjq69.js} +4 -4
  193. package/dist/chunks/{repository-r3k9abhd.js → file-r3k9abhd.js} +2 -2
  194. package/dist/chunks/{repository-5285pnbc.js → file-r6mxy2q5.js} +15 -15
  195. package/dist/chunks/{repository-rwn7vgmr.js → file-raes8n7n.js} +11 -11
  196. package/dist/chunks/{repository-rahat93a.js → file-rahat93a.js} +1 -1
  197. package/dist/chunks/{repository-rfbm65k8.js → file-rfbm65k8.js} +1 -1
  198. package/dist/chunks/{repository-rn9r0ddn.js → file-rn9r0ddn.js} +2 -2
  199. package/dist/chunks/{repository-mbqs7b6g.js → file-rr0y3aaw.js} +11 -11
  200. package/dist/chunks/{repository-21keg6t3.js → file-rrm7rp2s.js} +5 -5
  201. package/dist/chunks/{repository-y5tfqx3j.js → file-rtsrywk9.js} +5 -5
  202. package/dist/chunks/{repository-wf2jn9n2.js → file-rttr42xr.js} +8 -8
  203. package/dist/chunks/{repository-rvfvac9x.js → file-rvfvac9x.js} +2 -1
  204. package/dist/chunks/{repository-277s4me9.js → file-rxrnqndq.js} +4 -4
  205. package/dist/chunks/{repository-s33fw6zm.js → file-s33fw6zm.js} +1 -1
  206. package/dist/chunks/{repository-72jhjh3r.js → file-s5tvk6n9.js} +5 -5
  207. package/dist/chunks/{repository-bm59mrh0.js → file-sghkxya1.js} +4 -4
  208. package/dist/chunks/{repository-smpeg8c9.js → file-smpeg8c9.js} +2 -2
  209. package/dist/chunks/{repository-r0as8gk2.js → file-sp1xf5gz.js} +44 -44
  210. package/dist/chunks/{repository-3n5gm0pn.js → file-sp5dp9w1.js} +7 -7
  211. package/dist/chunks/{repository-sw84ckhj.js → file-sw84ckhj.js} +1 -1
  212. package/dist/chunks/{repository-xw6an1q3.js → file-sxa995r9.js} +7 -7
  213. package/dist/chunks/{repository-t14kykx1.js → file-t14kykx1.js} +1 -1
  214. package/dist/chunks/{repository-tb33ng7x.js → file-tb33ng7x.js} +2 -2
  215. package/dist/chunks/{repository-tcptxgyq.js → file-tcptxgyq.js} +1 -1
  216. package/dist/chunks/{repository-16w0zs7e.js → file-te878rn7.js} +10 -10
  217. package/dist/chunks/{repository-0y0jz5bf.js → file-tejkswdv.js} +66 -66
  218. package/dist/chunks/{repository-rr2e1jn9.js → file-tezq3yeg.js} +4 -4
  219. package/dist/chunks/{repository-thstd87d.js → file-thstd87d.js} +1 -1
  220. package/dist/chunks/{repository-tjjf1q77.js → file-tjjf1q77.js} +1 -1
  221. package/dist/chunks/{repository-p4sm5gct.js → file-trfqt5dm.js} +2 -2
  222. package/dist/chunks/{repository-y1exgf6k.js → file-txnbwzh0.js} +3 -3
  223. package/dist/chunks/{repository-v2wshkax.js → file-v2wshkax.js} +1 -1
  224. package/dist/chunks/{repository-v80zsxnb.js → file-v80zsxnb.js} +1 -1
  225. package/dist/chunks/{repository-rkk4wksm.js → file-v8tbfjf6.js} +4 -4
  226. package/dist/chunks/{repository-v972xay6.js → file-v972xay6.js} +1 -1
  227. package/dist/chunks/{repository-v9bfv94f.js → file-v9bfv94f.js} +1 -1
  228. package/dist/chunks/{repository-vcwr2vpf.js → file-vcwr2vpf.js} +1 -1
  229. package/dist/chunks/{repository-vqbmgfq1.js → file-vqbmgfq1.js} +3 -3
  230. package/dist/chunks/{repository-vz89hfgr.js → file-vz89hfgr.js} +1 -1
  231. package/dist/chunks/{repository-ftfem5qt.js → file-w0rc0xfv.js} +1 -1
  232. package/dist/chunks/{repository-wbkt8qpj.js → file-wbkt8qpj.js} +1 -1
  233. package/dist/chunks/{repository-wd268jeg.js → file-wd268jeg.js} +1 -1
  234. package/dist/chunks/{repository-zvp2sgsa.js → file-wg27158t.js} +5 -5
  235. package/dist/chunks/{repository-t3sp3k68.js → file-wgf751x2.js} +18 -17
  236. package/dist/chunks/{repository-wmxdh12w.js → file-wmxdh12w.js} +1 -1
  237. package/dist/chunks/{repository-wps8gh8n.js → file-wps8gh8n.js} +2 -2
  238. package/dist/chunks/{repository-wqtnns9x.js → file-wsykb36d.js} +8 -8
  239. package/dist/chunks/{repository-6n27mqqm.js → file-wwawtb0h.js} +3 -3
  240. package/dist/chunks/{repository-84g8ahdh.js → file-wybrermd.js} +6 -6
  241. package/dist/chunks/{repository-thqb17t0.js → file-x6amy92w.js} +3 -3
  242. package/dist/chunks/{repository-47dnqmwe.js → file-xa99tsrk.js} +14 -14
  243. package/dist/chunks/{repository-xczfw7dq.js → file-xczfw7dq.js} +1 -1
  244. package/dist/chunks/{repository-cb498dyj.js → file-xg2fpfcy.js} +5 -5
  245. package/dist/chunks/{repository-xh2svg4f.js → file-xgkf7vmy.js} +3 -3
  246. package/dist/chunks/{repository-xgv25zxy.js → file-xgv25zxy.js} +1 -1
  247. package/dist/chunks/{repository-yh6mrny0.js → file-xm2seg7a.js} +3 -3
  248. package/dist/chunks/{repository-b0svqw20.js → file-xpc5hpjr.js} +9 -9
  249. package/dist/chunks/{repository-xwftk1fd.js → file-xwftk1fd.js} +2 -2
  250. package/dist/chunks/{repository-xxpvz42q.js → file-xxpvz42q.js} +3 -3
  251. package/dist/chunks/{repository-h1jmef1e.js → file-xzt9apj6.js} +3 -3
  252. package/dist/chunks/{repository-y0x38cee.js → file-y0x38cee.js} +1 -1
  253. package/dist/chunks/{repository-y198y2ra.js → file-y198y2ra.js} +1 -1
  254. package/dist/chunks/{repository-cbf6nhmm.js → file-y38bn8w1.js} +9 -9
  255. package/dist/chunks/{repository-qgznhsmr.js → file-y3a4dyqw.js} +5 -5
  256. package/dist/chunks/{repository-hs9wj59g.js → file-y3zr4m7f.js} +5 -5
  257. package/dist/chunks/{repository-y67x6rf6.js → file-y67x6rf6.js} +1 -1
  258. package/dist/chunks/{repository-y980s7ka.js → file-y980s7ka.js} +3 -3
  259. package/dist/chunks/{repository-ybhfpy64.js → file-ybhfpy64.js} +2 -2
  260. package/dist/chunks/{repository-ks3wexae.js → file-yc6egy2b.js} +8 -8
  261. package/dist/chunks/{repository-yf0knd5z.js → file-yf0knd5z.js} +2 -2
  262. package/dist/chunks/{repository-ygy0xbqa.js → file-ygy0xbqa.js} +3 -3
  263. package/dist/chunks/{repository-700nnqs0.js → file-yqhmb5qj.js} +4 -4
  264. package/dist/chunks/{repository-zbqqnp0n.js → file-zbqqnp0n.js} +1 -1
  265. package/dist/chunks/{repository-zdkg1k91.js → file-zdkg1k91.js} +1 -1
  266. package/dist/chunks/{repository-ym25hnj7.js → file-zgp9b4wn.js} +30 -30
  267. package/dist/chunks/{repository-cpqj333v.js → file-zvvvtv47.js} +7 -7
  268. package/dist/chunks/{repository-zxcy6vhn.js → file-zxcy6vhn.js} +1 -1
  269. package/dist/chunks/{repository-zxe9jjhn.js → file-zxe9jjhn.js} +2 -2
  270. package/dist/codemode/catalog.js +2 -2
  271. package/dist/codemode/instructions.js +4 -4
  272. package/dist/codemode/tool.js +3 -3
  273. package/dist/command.js +78 -102
  274. package/dist/config/markdown.js +2 -2
  275. package/dist/config/normalize.js +20 -20
  276. package/dist/config/plugin/agent.js +133 -133
  277. package/dist/config/plugin/command.js +117 -130
  278. package/dist/config/plugin/compaction.js +169 -169
  279. package/dist/config/plugin/entry-observer.js +113 -113
  280. package/dist/config/plugin/formatter.js +118 -118
  281. package/dist/config/plugin/image.js +129 -129
  282. package/dist/config/plugin/instruction.js +89 -89
  283. package/dist/config/plugin/location-watcher.js +116 -116
  284. package/dist/config/plugin/mcp.js +126 -126
  285. package/dist/config/plugin/policy.js +115 -115
  286. package/dist/config/plugin/provider.js +114 -114
  287. package/dist/config/plugin/reference.js +118 -118
  288. package/dist/config/plugin/shell.js +117 -117
  289. package/dist/config/plugin/skill-file.js +106 -106
  290. package/dist/config/plugin/skill.js +136 -136
  291. package/dist/config/plugin/snapshot.js +116 -116
  292. package/dist/config/plugin/source.js +113 -113
  293. package/dist/config/plugin/tool-output.js +118 -118
  294. package/dist/config/plugin/websearch.js +114 -114
  295. package/dist/config/variable.js +4 -4
  296. package/dist/config.js +112 -112
  297. package/dist/credential/sql.js +3 -3
  298. package/dist/credential.js +72 -72
  299. package/dist/database/database.js +69 -69
  300. package/dist/database/drizzle/effect-sqlite/driver.js +16 -16
  301. package/dist/database/drizzle/effect-sqlite/index.js +16 -16
  302. package/dist/database/drizzle/effect-sqlite/migrator.js +15 -15
  303. package/dist/database/drizzle/effect-sqlite/session.js +15 -15
  304. package/dist/database/drizzle/index.js +20 -20
  305. package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
  306. package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
  307. package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
  308. package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
  309. package/dist/database/drizzle/sqlite-core/effect/index.js +19 -19
  310. package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
  311. package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
  312. package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
  313. package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
  314. package/dist/database/drizzle/sqlite-core/effect/session.js +14 -14
  315. package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
  316. package/dist/database/drizzle/up-migrations/effect-sqlite.js +4 -4
  317. package/dist/database/drizzle/up-migrations/sqlite.js +2 -2
  318. package/dist/database/drizzle/up-migrations/utils.js +2 -2
  319. package/dist/database/drizzle.js +21 -21
  320. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
  321. package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
  322. package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
  323. package/dist/database/migration/20260225215848_workspace.js +2 -2
  324. package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
  325. package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
  326. package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
  327. package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
  328. package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
  329. package/dist/database/migration/20260323234822_events.js +2 -2
  330. package/dist/database/migration/20260410174513_workspace-name.js +2 -2
  331. package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
  332. package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
  333. package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
  334. package/dist/database/migration/20260428004200_add_session_path.js +2 -2
  335. package/dist/database/migration/20260501142318_next_venus.js +2 -2
  336. package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
  337. package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
  338. package/dist/database/migration/20260510033149_session_usage.js +2 -2
  339. package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
  340. package/dist/database/migration/20260511173437_session-metadata.js +2 -2
  341. package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
  342. package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
  343. package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
  344. package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
  345. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
  346. package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
  347. package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
  348. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
  349. package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
  350. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
  351. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
  352. package/dist/database/migration/20260611035744_credential.js +2 -2
  353. package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
  354. package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
  355. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
  356. package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
  357. package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
  358. package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
  359. package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
  360. package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
  361. package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
  362. package/dist/database/migration/20260812181746_session_inbox.js +2 -2
  363. package/dist/database/migration/20260812213948_worktree.js +2 -2
  364. package/dist/database/migration/20260819222447_session_viewed_state.js +2 -2
  365. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +2 -2
  366. package/dist/database/migration.gen.js +48 -48
  367. package/dist/database/migration.js +50 -50
  368. package/dist/database/path.js +3 -3
  369. package/dist/database/schema.gen.js +2 -2
  370. package/dist/database/schema.sql.js +2 -2
  371. package/dist/database/sqlite.bun.js +2 -2
  372. package/dist/database/sqlite.js +2 -2
  373. package/dist/database/sqlite.node.js +2 -2
  374. package/dist/database/sqlite.workerd.js +2 -2
  375. package/dist/database/v1-migration.bun.js +88 -88
  376. package/dist/database/v1-migration.js +2 -2
  377. package/dist/database/v1-migration.noop.js +1 -1
  378. package/dist/effect/app-node-builder.js +330 -330
  379. package/dist/effect/app-node-platform.js +3 -3
  380. package/dist/effect/keyed-mutex.js +2 -2
  381. package/dist/effect/websocket-constructor.js +2 -2
  382. package/dist/environment/driver.js +1 -1
  383. package/dist/environment/environment.js +90 -90
  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 +72 -72
  392. package/dist/file-mutation.js +91 -91
  393. package/dist/file-retention.js +2 -2
  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 +3 -3
  401. package/dist/filesystem/location-watcher.js +305 -305
  402. package/dist/filesystem/protected.js +2 -2
  403. package/dist/filesystem/search.js +95 -95
  404. package/dist/filesystem/watcher-binding.js +2 -2
  405. package/dist/filesystem/watcher.js +4 -4
  406. package/dist/filesystem.js +95 -95
  407. package/dist/form.js +73 -73
  408. package/dist/formatter/builtins.js +3 -3
  409. package/dist/formatter.js +84 -84
  410. package/dist/generate.js +88 -88
  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 +20 -20
  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 +2 -2
  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 +11 -11
  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/web-search-preview.js +2 -2
  430. package/dist/github-copilot/responses/tool/web-search.js +2 -2
  431. package/dist/id/id.js +2 -2
  432. package/dist/image/photon-wasm.bun.js +1 -1
  433. package/dist/image/photon-wasm.node.js +1 -1
  434. package/dist/image/photon-wasm.workerd.js +1 -1
  435. package/dist/image/photon.js +97 -97
  436. package/dist/image.js +97 -97
  437. package/dist/instruction-discovery.js +76 -76
  438. package/dist/instructions/builtins.js +85 -85
  439. package/dist/instructions/index.js +2 -2
  440. package/dist/integration/connection.js +2 -2
  441. package/dist/integration.js +79 -79
  442. package/dist/job.js +4 -4
  443. package/dist/kv/sql.js +3 -3
  444. package/dist/kv.js +72 -72
  445. package/dist/location-activity.js +84 -84
  446. package/dist/location-mutation.js +83 -83
  447. package/dist/location-service-map.js +83 -83
  448. package/dist/location-services.js +330 -330
  449. package/dist/location.js +82 -82
  450. package/dist/mcp/client.js +91 -91
  451. package/dist/mcp/index.js +99 -97
  452. package/dist/mcp/instructions.js +127 -127
  453. package/dist/mcp/oauth.js +2 -2
  454. package/dist/mcp/stdio.js +91 -91
  455. package/dist/mime.js +2 -2
  456. package/dist/model-resolver.js +85 -85
  457. package/dist/model.js +3 -3
  458. package/dist/models-dev.js +79 -79
  459. package/dist/oauth/page.js +2 -2
  460. package/dist/permission/saved.js +83 -83
  461. package/dist/permission/sql.js +6 -6
  462. package/dist/permission.js +103 -103
  463. package/dist/plugin/agent.js +104 -104
  464. package/dist/plugin/command.js +98 -83
  465. package/dist/plugin/hooks.js +3 -3
  466. package/dist/plugin/host.js +166 -166
  467. package/dist/plugin/internal.js +299 -299
  468. package/dist/plugin/mcp-codemode-exclusion.js +2 -2
  469. package/dist/plugin/models-dev.js +80 -80
  470. package/dist/plugin/plan.js +104 -104
  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 +120 -120
  476. package/dist/plugin/provider/cerebras.js +3 -3
  477. package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
  478. package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
  479. package/dist/plugin/provider/cohere.js +3 -3
  480. package/dist/plugin/provider/configured.js +118 -118
  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 +86 -86
  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 +81 -81
  491. package/dist/plugin/provider/lmstudio.js +113 -113
  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 +113 -113
  495. package/dist/plugin/provider/openai-compatible.js +2 -2
  496. package/dist/plugin/provider/openai.js +83 -83
  497. package/dist/plugin/provider/opencode.js +97 -97
  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 +113 -113
  506. package/dist/plugin/provider/xai.js +82 -82
  507. package/dist/plugin/provider/zenmux.js +3 -3
  508. package/dist/plugin/provider.js +159 -159
  509. package/dist/plugin/runtime.js +155 -155
  510. package/dist/plugin/sdk.js +73 -73
  511. package/dist/plugin/skill.js +134 -134
  512. package/dist/plugin/supervisor-service.js +2 -2
  513. package/dist/plugin/supervisor.js +304 -304
  514. package/dist/plugin/system-prompt.js +2 -2
  515. package/dist/plugin/variant.js +4 -4
  516. package/dist/plugin/warming.js +114 -114
  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 +167 -167
  524. package/dist/project/schema.js +3 -3
  525. package/dist/project/sql.js +5 -5
  526. package/dist/project.js +81 -81
  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 +74 -74
  534. package/dist/pty.js +88 -88
  535. package/dist/reference/instructions.js +81 -81
  536. package/dist/reference.js +79 -79
  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 +93 -93
  541. package/dist/schema.js +2 -2
  542. package/dist/session/compaction.js +141 -141
  543. package/dist/session/context.js +311 -311
  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 +119 -119
  548. package/dist/session/execution.js +119 -119
  549. package/dist/session/generate-node.js +312 -312
  550. package/dist/session/generate.js +2 -2
  551. package/dist/session/history.js +81 -81
  552. package/dist/session/inbox.js +81 -81
  553. package/dist/session/info.js +91 -91
  554. package/dist/session/instruction-entry.js +77 -77
  555. package/dist/session/instruction-state.js +10 -10
  556. package/dist/session/instructions.js +100 -100
  557. package/dist/session/message-updater.js +4 -4
  558. package/dist/session/message.js +4 -4
  559. package/dist/session/model-request.js +137 -137
  560. package/dist/session/model-transport.js +5 -5
  561. package/dist/session/projector.js +94 -94
  562. package/dist/session/prompt-cache-diagnostics.js +2 -2
  563. package/dist/session/revert.js +89 -89
  564. package/dist/session/run-coordinator.js +2 -2
  565. package/dist/session/runner/index.js +88 -88
  566. package/dist/session/runner/llm.js +317 -317
  567. package/dist/session/runner/max-steps.js +2 -2
  568. package/dist/session/runner/model.js +87 -87
  569. package/dist/session/runner/publish-llm-event.js +4 -4
  570. package/dist/session/runner/retry.js +76 -76
  571. package/dist/session/runner/to-llm-message.js +2 -2
  572. package/dist/session/schema.js +4 -4
  573. package/dist/session/sql.js +6 -6
  574. package/dist/session/stats.js +375 -0
  575. package/dist/session/store.js +99 -99
  576. package/dist/session/system-prompt.js +2 -2
  577. package/dist/session/title.js +139 -139
  578. package/dist/session/to-session-error.js +114 -114
  579. package/dist/session/transfer.js +160 -161
  580. package/dist/session/usage.js +2 -2
  581. package/dist/session.js +155 -156
  582. package/dist/shell/parse.js +5 -5
  583. package/dist/shell/parser-wasm.bun.js +1 -1
  584. package/dist/shell/parser-wasm.node.js +1 -1
  585. package/dist/shell/parser-wasm.workerd.js +1 -1
  586. package/dist/shell/scan.js +1 -1
  587. package/dist/shell/select.js +4 -4
  588. package/dist/shell.js +98 -98
  589. package/dist/skill/discovery.js +3 -3
  590. package/dist/skill/instructions.js +105 -105
  591. package/dist/skill.js +104 -104
  592. package/dist/snapshot.js +84 -84
  593. package/dist/state.js +2 -2
  594. package/dist/tool/html-markdown.js +2 -2
  595. package/dist/tool/http-body.js +2 -2
  596. package/dist/tool/mcp.js +126 -126
  597. package/dist/tool/plugin/edit.js +113 -113
  598. package/dist/tool/plugin/file-diff.js +2 -2
  599. package/dist/tool/plugin/glob.js +115 -115
  600. package/dist/tool/plugin/grep.js +115 -115
  601. package/dist/tool/plugin/patch.js +113 -113
  602. package/dist/tool/plugin/question.js +105 -105
  603. package/dist/tool/plugin/read.js +118 -118
  604. package/dist/tool/plugin/shell.js +185 -185
  605. package/dist/tool/plugin/skill.js +105 -105
  606. package/dist/tool/plugin/subagent.js +182 -182
  607. package/dist/tool/plugin/webfetch.js +106 -106
  608. package/dist/tool/plugin/websearch.js +108 -108
  609. package/dist/tool/plugin/write.js +113 -113
  610. package/dist/tool/read-filesystem.js +97 -97
  611. package/dist/tool/runtime.js +2 -2
  612. package/dist/tool-output.js +5 -5
  613. package/dist/tool.js +119 -119
  614. package/dist/types/command.d.ts +23 -65
  615. package/dist/types/config/plugin/command.d.ts +4 -1
  616. package/dist/types/config/plugin/mcp.d.ts +2 -2
  617. package/dist/types/config/plugin/shell.d.ts +1 -1
  618. package/dist/types/location-service-map.d.ts +2 -2
  619. package/dist/types/location-services.d.ts +1 -1
  620. package/dist/types/mcp/index.d.ts +37 -0
  621. package/dist/types/mime.d.ts +1 -1
  622. package/dist/types/plugin/command.d.ts +3 -1
  623. package/dist/types/plugin/host.d.ts +12 -14
  624. package/dist/types/plugin/internal.d.ts +3 -3
  625. package/dist/types/plugin/supervisor.d.ts +1 -1
  626. package/dist/types/session/execution.d.ts +3 -2
  627. package/dist/types/session/message.d.ts +1 -1
  628. package/dist/types/session/revert.d.ts +2 -2
  629. package/dist/types/session/run-coordinator.d.ts +3 -2
  630. package/dist/types/session/schema.d.ts +1 -1
  631. package/dist/types/session/sql.d.ts +2 -2
  632. package/dist/types/session/stats.d.ts +82 -0
  633. package/dist/types/session.d.ts +3 -7
  634. package/dist/types/tool/plugin/shell.d.ts +1 -1
  635. package/dist/types/v1/config/migrate.d.ts +9 -9
  636. package/dist/types/workspace.d.ts +16 -2
  637. package/dist/util/array.js +1 -1
  638. package/dist/util/error.js +2 -2
  639. package/dist/util/identifier.js +1 -1
  640. package/dist/util/iife.js +2 -2
  641. package/dist/util/lazy.js +2 -2
  642. package/dist/util/process-lock-ffi.bun.js +1 -1
  643. package/dist/util/process-lock-ffi.node.js +1 -1
  644. package/dist/util/process-lock-ffi.workerd.js +1 -1
  645. package/dist/util/process-lock.js +1 -1
  646. package/dist/util/slug.js +2 -2
  647. package/dist/util/token.js +2 -2
  648. package/dist/util/which.js +2 -2
  649. package/dist/util/wildcard.js +2 -2
  650. package/dist/v1/config/agent.js +4 -4
  651. package/dist/v1/config/attachment.js +3 -3
  652. package/dist/v1/config/command.js +2 -2
  653. package/dist/v1/config/config.js +15 -15
  654. package/dist/v1/config/error.js +3 -3
  655. package/dist/v1/config/formatter.js +2 -2
  656. package/dist/v1/config/layout.js +2 -2
  657. package/dist/v1/config/lsp.js +2 -2
  658. package/dist/v1/config/mcp.js +3 -3
  659. package/dist/v1/config/migrate.js +19 -19
  660. package/dist/v1/config/permission.js +2 -2
  661. package/dist/v1/config/plugin.js +2 -2
  662. package/dist/v1/config/provider-options.js +2 -2
  663. package/dist/v1/config/provider.js +3 -3
  664. package/dist/v1/config/server.js +3 -3
  665. package/dist/v1/config/skills.js +2 -2
  666. package/dist/v1/permission.js +1 -1
  667. package/dist/vcs/git.js +3 -3
  668. package/dist/vcs/hg.js +3 -3
  669. package/dist/vcs/patch.js +2 -2
  670. package/dist/vcs.js +86 -86
  671. package/dist/websearch.js +77 -77
  672. package/dist/wellknown/plugin.js +77 -77
  673. package/dist/wellknown.js +76 -76
  674. package/dist/workspace/driver.js +2 -2
  675. package/dist/workspace/sql.js +2 -2
  676. package/dist/workspace.js +76 -74
  677. package/dist/worktree/directory.js +3 -3
  678. package/dist/worktree/git.js +7 -7
  679. package/dist/worktree/sql.js +6 -6
  680. package/dist/worktree.js +86 -86
  681. package/package.json +7 -7
  682. package/dist/chunks/repository-25pxtba7.js +0 -13
  683. package/dist/chunks/repository-cgggcwed.js +0 -210
  684. package/dist/chunks/repository-jq8xj4c5.js +0 -93
  685. package/dist/chunks/repository-y8rs54ne.js +0 -16
  686. /package/dist/chunks/{repository-0cgt0xh2.js → file-0cgt0xh2.js} +0 -0
  687. /package/dist/chunks/{repository-0f48qthw.js → file-0f48qthw.js} +0 -0
  688. /package/dist/chunks/{repository-0zz82cjq.js → file-0zz82cjq.js} +0 -0
  689. /package/dist/chunks/{repository-1fb7bmpf.js → file-1fb7bmpf.js} +0 -0
  690. /package/dist/chunks/{repository-1wcz8fvj.js → file-1wcz8fvj.js} +0 -0
  691. /package/dist/chunks/{repository-2qdx6zz3.js → file-2qdx6zz3.js} +0 -0
  692. /package/dist/chunks/{repository-39ktntah.js → file-39ktntah.js} +0 -0
  693. /package/dist/chunks/{repository-3g3rpp2x.js → file-3g3rpp2x.js} +0 -0
  694. /package/dist/chunks/{repository-3q6gbwmd.js → file-3q6gbwmd.js} +0 -0
  695. /package/dist/chunks/{repository-3w3ybtfd.js → file-3w3ybtfd.js} +0 -0
  696. /package/dist/chunks/{repository-47ty4mvs.js → file-47ty4mvs.js} +0 -0
  697. /package/dist/chunks/{repository-4b2tz2m9.js → file-4b2tz2m9.js} +0 -0
  698. /package/dist/chunks/{repository-4zg0gww9.js → file-4zg0gww9.js} +0 -0
  699. /package/dist/chunks/{repository-5a5ch9ts.js → file-5a5ch9ts.js} +0 -0
  700. /package/dist/chunks/{repository-5va1yh78.js → file-5va1yh78.js} +0 -0
  701. /package/dist/chunks/{repository-61ek4hj9.js → file-61ek4hj9.js} +0 -0
  702. /package/dist/chunks/{repository-69qrqpw0.js → file-69qrqpw0.js} +0 -0
  703. /package/dist/chunks/{repository-6yt963b8.js → file-6yt963b8.js} +0 -0
  704. /package/dist/chunks/{repository-6zqxzw0a.js → file-6zqxzw0a.js} +0 -0
  705. /package/dist/chunks/{repository-7n9qwqk4.js → file-7n9qwqk4.js} +0 -0
  706. /package/dist/chunks/{repository-8nn8kqcn.js → file-8nn8kqcn.js} +0 -0
  707. /package/dist/chunks/{repository-8sj3ajy5.js → file-8sj3ajy5.js} +0 -0
  708. /package/dist/chunks/{repository-8w9tzfz1.js → file-8w9tzfz1.js} +0 -0
  709. /package/dist/chunks/{repository-906y0b6d.js → file-906y0b6d.js} +0 -0
  710. /package/dist/chunks/{repository-9dct5xhx.js → file-9dct5xhx.js} +0 -0
  711. /package/dist/chunks/{repository-9sdtsapf.js → file-9sdtsapf.js} +0 -0
  712. /package/dist/chunks/{repository-a02svayp.js → file-a02svayp.js} +0 -0
  713. /package/dist/chunks/{repository-a83yvq99.js → file-a83yvq99.js} +0 -0
  714. /package/dist/chunks/{repository-ayevdmef.js → file-ayevdmef.js} +0 -0
  715. /package/dist/chunks/{repository-b02txbh8.js → file-b02txbh8.js} +0 -0
  716. /package/dist/chunks/{repository-bbqs2y60.js → file-bbqs2y60.js} +0 -0
  717. /package/dist/chunks/{repository-brsh5f65.js → file-brsh5f65.js} +0 -0
  718. /package/dist/chunks/{repository-bxdhjb3y.js → file-bxdhjb3y.js} +0 -0
  719. /package/dist/chunks/{repository-c77ad0vh.js → file-c77ad0vh.js} +0 -0
  720. /package/dist/chunks/{repository-ck5pgha0.js → file-ck5pgha0.js} +0 -0
  721. /package/dist/chunks/{repository-cm67rqy2.js → file-cm67rqy2.js} +0 -0
  722. /package/dist/chunks/{repository-df3v2q6j.js → file-df3v2q6j.js} +0 -0
  723. /package/dist/chunks/{repository-dhcq6c44.js → file-dhcq6c44.js} +0 -0
  724. /package/dist/chunks/{repository-dht5baf0.js → file-dht5baf0.js} +0 -0
  725. /package/dist/chunks/{repository-dkmkay92.js → file-dkmkay92.js} +0 -0
  726. /package/dist/chunks/{repository-ehj9csmv.js → file-ehj9csmv.js} +0 -0
  727. /package/dist/chunks/{repository-em6xpscd.js → file-em6xpscd.js} +0 -0
  728. /package/dist/chunks/{repository-emmqknsm.js → file-emmqknsm.js} +0 -0
  729. /package/dist/chunks/{repository-ezs3tagn.js → file-ezs3tagn.js} +0 -0
  730. /package/dist/chunks/{repository-f14r7hfz.js → file-f14r7hfz.js} +0 -0
  731. /package/dist/chunks/{repository-f4cp4g4a.js → file-f4cp4g4a.js} +0 -0
  732. /package/dist/chunks/{repository-f84sxdqn.js → file-f84sxdqn.js} +0 -0
  733. /package/dist/chunks/{repository-faypg4r1.js → file-faypg4r1.js} +0 -0
  734. /package/dist/chunks/{repository-fgbfdq62.js → file-fgbfdq62.js} +0 -0
  735. /package/dist/chunks/{repository-gd5xeqc2.js → file-gd5xeqc2.js} +0 -0
  736. /package/dist/chunks/{repository-ghm4673n.js → file-ghm4673n.js} +0 -0
  737. /package/dist/chunks/{repository-ghwjy7my.js → file-ghwjy7my.js} +0 -0
  738. /package/dist/chunks/{repository-gy500k2r.js → file-gy500k2r.js} +0 -0
  739. /package/dist/chunks/{repository-hzeg9cfr.js → file-hzeg9cfr.js} +0 -0
  740. /package/dist/chunks/{repository-j07kk359.js → file-j07kk359.js} +0 -0
  741. /package/dist/chunks/{repository-jf35ek5b.js → file-jf35ek5b.js} +0 -0
  742. /package/dist/chunks/{repository-jve7t217.js → file-jve7t217.js} +0 -0
  743. /package/dist/chunks/{repository-k3e42drn.js → file-k3e42drn.js} +0 -0
  744. /package/dist/chunks/{repository-k8b45nas.js → file-k8b45nas.js} +0 -0
  745. /package/dist/chunks/{repository-kcacmy5c.js → file-kcacmy5c.js} +0 -0
  746. /package/dist/chunks/{repository-kpdbz7gn.js → file-kpdbz7gn.js} +0 -0
  747. /package/dist/chunks/{repository-kxy11nzk.js → file-kxy11nzk.js} +0 -0
  748. /package/dist/chunks/{repository-kyyqvx4s.js → file-kyyqvx4s.js} +0 -0
  749. /package/dist/chunks/{repository-m8cbvarh.js → file-m8cbvarh.js} +0 -0
  750. /package/dist/chunks/{repository-ma60vzgv.js → file-ma60vzgv.js} +0 -0
  751. /package/dist/chunks/{repository-n3m50c2t.js → file-n3m50c2t.js} +0 -0
  752. /package/dist/chunks/{repository-nkm1m8dz.js → file-nkm1m8dz.js} +0 -0
  753. /package/dist/chunks/{repository-nsc0c3zb.js → file-nsc0c3zb.js} +0 -0
  754. /package/dist/chunks/{repository-qaarhjrp.js → file-qaarhjrp.js} +0 -0
  755. /package/dist/chunks/{repository-qc167nrn.js → file-qc167nrn.js} +0 -0
  756. /package/dist/chunks/{repository-qp95y4jb.js → file-qp95y4jb.js} +0 -0
  757. /package/dist/chunks/{repository-r8f4w671.js → file-r8f4w671.js} +0 -0
  758. /package/dist/chunks/{repository-rdfev9jy.js → file-rdfev9jy.js} +0 -0
  759. /package/dist/chunks/{repository-s7whb9gt.js → file-s7whb9gt.js} +0 -0
  760. /package/dist/chunks/{repository-se76j685.js → file-se76j685.js} +0 -0
  761. /package/dist/chunks/{repository-sem2g21k.js → file-sem2g21k.js} +0 -0
  762. /package/dist/chunks/{repository-tmb1f636.js → file-tmb1f636.js} +0 -0
  763. /package/dist/chunks/{repository-ttxf0gsy.js → file-ttxf0gsy.js} +0 -0
  764. /package/dist/chunks/{repository-tvmhrvfj.js → file-tvmhrvfj.js} +0 -0
  765. /package/dist/chunks/{repository-v2adqbbe.js → file-v2adqbbe.js} +0 -0
  766. /package/dist/chunks/{repository-vkvb1sb3.js → file-vkvb1sb3.js} +0 -0
  767. /package/dist/chunks/{repository-wj4sxzqa.js → file-wj4sxzqa.js} +0 -0
  768. /package/dist/chunks/{repository-wwntjmk1.js → file-wwntjmk1.js} +0 -0
  769. /package/dist/chunks/{repository-wyqjaaa5.js → file-wyqjaaa5.js} +0 -0
  770. /package/dist/chunks/{repository-x4q807cx.js → file-x4q807cx.js} +0 -0
  771. /package/dist/chunks/{repository-xt0068v8.js → file-xt0068v8.js} +0 -0
  772. /package/dist/chunks/{repository-yrqrg4vp.js → file-yrqrg4vp.js} +0 -0
  773. /package/dist/chunks/{repository-z47nswr2.js → file-z47nswr2.js} +0 -0
  774. /package/dist/chunks/{repository-zsf8rs93.js → file-zsf8rs93.js} +0 -0
@@ -2,7 +2,7 @@ export * as ConfigMCPPlugin from "./mcp.js";
2
2
  import { Effect, Stream } from "effect";
3
3
  import { Config } from "../../config.js";
4
4
  import { MCP } from "../../mcp/index.js";
5
- export declare const Plugin: import("@opencode-ai/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | MCP.Service | Config.Service>;
5
+ export declare const Plugin: import("@opencode-ai/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | Config.Service | MCP.Service>;
6
6
  export declare const register: (events: Stream.Stream<{
7
7
  readonly type: string;
8
- }, unknown, never>) => Effect.Effect<void, never, import("effect/Scope").Scope | MCP.Service | Config.Service>;
8
+ }, unknown, never>) => Effect.Effect<void, never, import("effect/Scope").Scope | Config.Service | MCP.Service>;
@@ -1,4 +1,4 @@
1
1
  export * as ConfigShellPlugin from "./shell.js";
2
2
  import { Config } from "../../config.js";
3
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>;
4
+ export declare const Plugin: import("@opencode-ai/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | Config.Service | ShellSelect.Service>;
@@ -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("./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("./plugin/supervisor-service.js").Service | import("./session/instruction-entry.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("./location-mutation.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("./session/model-transport.js").Service | import("./pty.js").Service | import("./instructions/builtins.js").Service | import("./skill/instructions.js").Service | import("./reference/instructions.js").Service | import("./session/generate.js").Service | import("./tool/mcp.js").Service | import("./session/title.js").Service | import("./vcs.js").Service | import("./filesystem/location-watcher.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("./command.js").Service | import("./config.js").Service | import("./environment/environment.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("./plugin/supervisor-service.js").Service | import("./mcp/index.js").Service | import("./session/instruction-entry.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("./location-mutation.js").Service | import("./tool/read-filesystem.js").Service | import("./session/instructions.js").Service | import("./shell.js").Service | import("./session/compaction.js").Service | import("./shell/select.js").Service | import("./snapshot.js").Service | import("./tool-output.js").Service | import("./session/model-transport.js").Service | import("./pty.js").Service | import("./instructions/builtins.js").Service | import("./skill/instructions.js").Service | import("./reference/instructions.js").Service | import("./session/generate.js").Service | import("./tool/mcp.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("./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("./plugin/supervisor-service.js").Service | import("./session/instruction-entry.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("./location-mutation.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("./session/model-transport.js").Service | import("./pty.js").Service | import("./instructions/builtins.js").Service | import("./skill/instructions.js").Service | import("./reference/instructions.js").Service | import("./session/generate.js").Service | import("./tool/mcp.js").Service | import("./session/title.js").Service | import("./vcs.js").Service | import("./filesystem/location-watcher.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("./command.js").Service | import("./config.js").Service | import("./environment/environment.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("./plugin/supervisor-service.js").Service | import("./mcp/index.js").Service | import("./session/instruction-entry.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("./location-mutation.js").Service | import("./tool/read-filesystem.js").Service | import("./session/instructions.js").Service | import("./shell.js").Service | import("./session/compaction.js").Service | import("./shell/select.js").Service | import("./snapshot.js").Service | import("./tool-output.js").Service | import("./session/model-transport.js").Service | import("./pty.js").Service | import("./instructions/builtins.js").Service | import("./skill/instructions.js").Service | import("./reference/instructions.js").Service | import("./session/generate.js").Service | import("./tool/mcp.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";
@@ -46,7 +46,7 @@ import { Tool } from "./tool.js";
46
46
  import { ToolOutput } from "./tool-output.js";
47
47
  import { Vcs } from "./vcs.js";
48
48
  export { LocationServiceMap } from "./location-service-map.js";
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 | PluginSupervisor.Service | InstructionEntry.Service | SessionRunnerModel.Service | import("./session/runner/index.js").Service | Permission.Service | Reference.Service | WebSearch.Service | Plugin.Service | Skill.Service | Tool.Service | LocationMutation.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | SessionCompaction.Service | Snapshot.Service | ToolOutput.Service | SessionModelTransport.Service | Pty.Service | InstructionBuiltIns.Service | SkillInstructions.Service | ReferenceInstructions.Service | import("./session/generate.js").Service | McpTool.Service | SessionTitle.Service | Vcs.Service | LocationWatcher.Service, never, LayerNode.Tag<"location">>;
49
+ export declare const locationServices: LayerNode.Node<Location.Service | Agent.Service | AISDK.Service | Form.Service | Integration.Service | Catalog.Service | Command.Service | Config.Service | Environment.Service | FileMutation.Service | FileSystemSearch.Service | FileSystem.Service | Formatter.Service | ModelResolver.Service | Generate.Service | Image.Service | InstructionDiscovery.Service | PluginSupervisor.Service | MCP.Service | InstructionEntry.Service | SessionRunnerModel.Service | import("./session/runner/index.js").Service | Permission.Service | Reference.Service | WebSearch.Service | Plugin.Service | Skill.Service | Tool.Service | LocationMutation.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | SessionCompaction.Service | ShellSelect.Service | Snapshot.Service | ToolOutput.Service | SessionModelTransport.Service | Pty.Service | InstructionBuiltIns.Service | SkillInstructions.Service | ReferenceInstructions.Service | import("./session/generate.js").Service | McpTool.Service | SessionTitle.Service | Vcs.Service | LocationWatcher.Service, never, LayerNode.Tag<"location">>;
50
50
  export type LocationServices = LayerNode.Output<typeof locationServices>;
51
51
  export type LocationError = LayerNode.Error<typeof locationServices>;
52
52
  export declare function buildLocationServiceMap(replacements?: LayerNode.Replacements): Layer.Layer<LocationServiceMap.Service>;
@@ -9,6 +9,43 @@ import { Integration } from "../integration.js";
9
9
  import { Location } from "../location.js";
10
10
  import { State } from "../state.js";
11
11
  export declare const ServerName: Schema.brand<Schema.String, "MCP.ServerName">;
12
+ export declare const PromptsChanged: Schema.Struct<{
13
+ readonly id: Schema.brand<Schema.String, "Event.ID"> & {
14
+ create: () => string & import("effect/Brand").Brand<"Event.ID">;
15
+ };
16
+ readonly created: Schema.Finite;
17
+ readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
18
+ readonly type: Schema.Literal<"mcp.prompts.changed">;
19
+ readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
20
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
21
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
22
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
23
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
24
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
25
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
26
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
27
+ }>, never, never>;
28
+ }>>>, Schema.optionalKey<Schema.Struct<{
29
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
30
+ readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
31
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
32
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
33
+ }>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
34
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
35
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
36
+ }>, never, never>;
37
+ }>>, never, never>;
38
+ readonly data: Schema.Struct<{
39
+ readonly server: Schema.String;
40
+ }>;
41
+ }> & {
42
+ type: "mcp.prompts.changed";
43
+ durability: "ephemeral";
44
+ durable: undefined;
45
+ data: Schema.Struct<{
46
+ readonly server: Schema.String;
47
+ }>;
48
+ };
12
49
  export type ServerName = typeof ServerName.Type;
13
50
  export declare const Status: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
14
51
  readonly status: Schema.Literal<"connected">;
@@ -1,2 +1,2 @@
1
1
  export * as Mime from "./mime.js";
2
- export declare function detect(bytes: Uint8Array): "application/octet-stream" | "application/pdf" | "image/png" | "image/jpeg" | "image/gif" | "image/bmp" | "image/webp" | "image/avif" | "text/plain";
2
+ export declare function detect(bytes: Uint8Array): "application/octet-stream" | "application/pdf" | "text/plain" | "image/png" | "image/jpeg" | "image/gif" | "image/bmp" | "image/webp" | "image/avif";
@@ -1,3 +1,5 @@
1
1
  export * as CommandPlugin from "./command.js";
2
+ import { Bus } from "../bus.js";
2
3
  import { Location } from "../location.js";
3
- export declare const Plugin: import("@opencode-ai/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | Location.Service>;
4
+ import { MCP } from "../mcp/index.js";
5
+ export declare const Plugin: import("@opencode-ai/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | Bus.Service | Location.Service | MCP.Service>;
@@ -283,16 +283,16 @@ export declare const make: (plugin: Interface, pluginID?: string | undefined) =>
283
283
  create: (input: import("@opencode-ai/client/effect/api").SessionCreateInput | undefined) => Effect.Effect<import("@opencode-ai/schema/session").Info, import("../session.js").NotFoundError, never>;
284
284
  get: (input: import("@opencode-ai/client/effect/api").SessionGetInput) => Effect.Effect<import("@opencode-ai/schema/session").Info, import("../session.js").NotFoundError, never>;
285
285
  switchAgent: (input: {
286
- sessionID: import("../session.js").ID;
286
+ sessionID: import("@opencode-ai/schema/session").ID;
287
287
  agent: Agent.ID;
288
288
  }) => Effect.Effect<void, import("../session.js").NotFoundError>;
289
289
  switchModel: (input: {
290
- sessionID: import("../session.js").ID;
290
+ sessionID: import("@opencode-ai/schema/session").ID;
291
291
  model: Model.Ref;
292
292
  }) => Effect.Effect<void, import("../session.js").NotFoundError>;
293
293
  prompt: (input: {
294
294
  id?: import("@opencode-ai/schema/session-message").ID;
295
- sessionID: import("../session.js").ID;
295
+ sessionID: import("@opencode-ai/schema/session").ID;
296
296
  text: string;
297
297
  files?: import("@opencode-ai/schema/prompt-input").Prompt["files"];
298
298
  agents?: import("@opencode-ai/schema/prompt-input").Prompt["agents"];
@@ -305,33 +305,31 @@ export declare const make: (plugin: Interface, pluginID?: string | undefined) =>
305
305
  text: string;
306
306
  }, import("../session.js").NotFoundError | import("../session/generate.js").Error, never>;
307
307
  command: (input: {
308
- id?: import("@opencode-ai/schema/session-message").ID;
309
- sessionID: import("../session.js").ID;
308
+ sessionID: import("@opencode-ai/schema/session").ID;
310
309
  command: string;
311
- arguments?: string;
312
- agent?: Agent.ID;
313
- model?: Model.Ref;
310
+ text: string;
314
311
  files?: import("@opencode-ai/schema/prompt-input").Prompt["files"];
315
312
  agents?: import("@opencode-ai/schema/prompt-input").Prompt["agents"];
316
313
  skills?: import("@opencode-ai/schema/prompt-input").Prompt["skills"];
317
314
  delivery?: import("@opencode-ai/schema/session-inbox").Delivery;
318
- resume?: boolean;
319
- }) => Effect.Effect<import("@opencode-ai/schema/session-inbox").User, import("../session.js").NotFoundError | import("../session.js").PromptConflictError | import("../session.js").AttachmentError | import("../session.js").SkillNotFoundError | Command.NotFoundError | Command.EvaluationError>;
315
+ }) => Effect.Effect<void, import("../session.js").NotFoundError | Command.NotFoundError | Command.ExecutionError>;
320
316
  rename: (input: {
321
- sessionID: import("../session.js").ID;
317
+ sessionID: import("@opencode-ai/schema/session").ID;
322
318
  title: string;
323
319
  }) => Effect.Effect<void, import("../session.js").NotFoundError>;
324
320
  synthetic: (input: {
325
321
  id?: import("@opencode-ai/schema/session-message").ID;
326
- sessionID: import("../session.js").ID;
322
+ sessionID: import("@opencode-ai/schema/session").ID;
327
323
  text: string;
328
324
  description?: string;
329
325
  metadata?: Record<string, unknown>;
330
326
  delivery?: import("@opencode-ai/schema/session-inbox").Delivery;
331
327
  resume?: boolean;
332
328
  }) => Effect.Effect<import("@opencode-ai/schema/session-inbox").Synthetic, import("../session.js").NotFoundError | import("../session.js").SyntheticConflictError>;
333
- interrupt: (input: import("@opencode-ai/client/effect/api").SessionInterruptInput) => Effect.Effect<void, never, never>;
329
+ interrupt: (input: import("@opencode-ai/client/effect/api").SessionInterruptInput) => Effect.Effect<{
330
+ interrupted: boolean;
331
+ }, never, never>;
334
332
  wait: (input: import("@opencode-ai/client/effect/api").SessionWaitInput) => Effect.Effect<void, import("../session.js").NotFoundError, never>;
335
333
  };
336
- }, 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>;
334
+ }, never, Bus.Service | Location.Service | Agent.Service | AISDK.Service | Integration.Service | Catalog.Service | Command.Service | KV.Service | MCP.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | PluginHooks.Service | Tool.Service>;
337
335
  export declare function storage(kv: KV.Interface, pluginID: string): Plugin.Context["storage"];
@@ -45,12 +45,12 @@ import { Tool } from "../tool.js";
45
45
  import { ToolOutput } from "../tool-output.js";
46
46
  import { WellKnown } from "../wellknown.js";
47
47
  import { PluginRuntime } from "./runtime.js";
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 | ConfigPluginSource.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | LocationMutation.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 | ConfigPluginSource.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | LocationMutation.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | LocationWatcherPolicy.Service | SessionCompaction.Service | Snapshot.Service | SkillDiscovery.Service | ToolOutput.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 | Command.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | Environment.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | ConfigPluginSource.Service | MCP.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | LocationMutation.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | LocationWatcherPolicy.Service | SessionCompaction.Service | ShellSelect.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 | Command.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | Environment.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | ConfigPluginSource.Service | MCP.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | LocationMutation.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | LocationWatcherPolicy.Service | SessionCompaction.Service | ShellSelect.Service | Snapshot.Service | SkillDiscovery.Service | ToolOutput.Service>;
49
49
  type ContextServices<A> = A extends Context.Context<infer R> ? R : never;
50
50
  export type Requirements = ContextServices<Effect.Success<ReturnType<typeof services>>>;
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 | ConfigPluginSource.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | LocationMutation.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | LocationWatcherPolicy.Service | SessionCompaction.Service | Snapshot.Service | SkillDiscovery.Service | ToolOutput.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 | Command.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | Environment.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | ConfigPluginSource.Service | MCP.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | LocationMutation.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | LocationWatcherPolicy.Service | SessionCompaction.Service | ShellSelect.Service | Snapshot.Service | SkillDiscovery.Service | ToolOutput.Service, never, LayerNode.Tag<"global"> | LayerNode.Tag<"location">>;
52
52
  export type InternalPlugin = Plugin<Requirements | Scope.Scope>;
53
53
  export declare const list: () => Effect.Effect<{
54
54
  pre: Plugin<Scope.Scope>[];
55
55
  post: Plugin<Scope.Scope>[];
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 | ConfigPluginSource.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | LocationMutation.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | LocationWatcherPolicy.Service | SessionCompaction.Service | Snapshot.Service | SkillDiscovery.Service | ToolOutput.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 | Command.Service | Watcher.Service | KV.Service | WellKnown.Service | Config.Service | Environment.Service | FileMutation.Service | Ripgrep.Service | FileSystem.Service | Formatter.Service | Image.Service | InstructionDiscovery.Service | ConfigPluginSource.Service | MCP.Service | Permission.Service | Reference.Service | WebSearch.Service | PluginRuntime.Service | Skill.Service | Tool.Service | ModelsDev.Service | LocationMutation.Service | ReadToolFileSystem.Service | SessionInstructions.Service | Shell.Service | LocationWatcherPolicy.Service | SessionCompaction.Service | ShellSelect.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("../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 | 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("../location-mutation.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>;
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("../command.js").Service | import("../filesystem/watcher.js").Service | import("../kv.js").Service | import("../wellknown.js").Service | import("../config.js").Service | import("../environment/environment.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 | ConfigPluginSource.Service | import("../mcp/index.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 | import("../models-dev.js").Service | import("../location-mutation.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("../shell/select.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">>;
@@ -16,11 +16,12 @@ export interface Interface {
16
16
  /**
17
17
  * Interrupt active work owned by this process. Idle interruption is a no-op. Resolves once
18
18
  * the interruption is accepted; cleanup settles asynchronously in the execution fiber.
19
- * Compose with `awaitIdle` when settlement matters.
19
+ * Returns whether an active execution was interrupted. Compose with `awaitIdle` when
20
+ * settlement matters.
20
21
  */
21
22
  readonly interrupt: (sessionID: SessionSchema.ID, options?: {
22
23
  readonly continue?: boolean;
23
- }) => Effect.Effect<void>;
24
+ }) => Effect.Effect<boolean>;
24
25
  /** Resolves once this process owns no active execution for the Session. Returns immediately when idle and never starts work. */
25
26
  readonly awaitIdle: (sessionID: SessionSchema.ID) => Effect.Effect<void>;
26
27
  }
@@ -1,2 +1,2 @@
1
- export * as SessionMessage from "./message.js";
1
+ export * as SessionMessage from "@opencode-ai/schema/session-message";
2
2
  export * from "@opencode-ai/schema/session-message";
@@ -32,5 +32,5 @@ export declare const stage: (input: {
32
32
  readonly status: "added" | "deleted" | "modified";
33
33
  }[];
34
34
  }, Snapshot.Error | MessageNotFoundError, Database.Service | Bus.Service | Snapshot.Service>;
35
- export declare const clear: (session: import("@opencode-ai/schema/session").Info) => Effect.Effect<void, Snapshot.Error, Bus.Service | Snapshot.Service>;
36
- export declare const commit: (session: import("@opencode-ai/schema/session").Info) => Effect.Effect<void, never, Bus.Service>;
35
+ export declare const clear: (session: SessionSchema.Info) => Effect.Effect<void, Snapshot.Error, Bus.Service | Snapshot.Service>;
36
+ export declare const commit: (session: SessionSchema.Info) => Effect.Effect<void, never, Bus.Service>;
@@ -12,9 +12,10 @@ export interface Coordinator<Key, E, Reason = never> {
12
12
  /**
13
13
  * Stops the active execution and clears its doorbell. No-op when idle. Resolves once the
14
14
  * interruption is accepted, not when cleanup settles: the execution fiber finishes its
15
- * finalizers and settled hook on its own time. Compose with `awaitIdle` for settlement.
15
+ * finalizers and settled hook on its own time. Returns whether an active execution was
16
+ * interrupted. Compose with `awaitIdle` for settlement.
16
17
  */
17
- readonly interrupt: (key: Key, reason?: Reason) => Effect.Effect<void>;
18
+ readonly interrupt: (key: Key, reason?: Reason) => Effect.Effect<boolean>;
18
19
  /** Resolves once no execution is active for the key. Returns immediately when already idle and never starts work. */
19
20
  readonly awaitIdle: (key: Key) => Effect.Effect<void>;
20
21
  }
@@ -1,4 +1,4 @@
1
- export * as SessionSchema from "./schema.js";
1
+ export * as SessionSchema from "@opencode-ai/schema/session";
2
2
  import { Session } from "@opencode-ai/schema/session";
3
3
  export declare const ID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
4
4
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -1,7 +1,7 @@
1
1
  import type { SessionMessage } from "./message.js";
2
2
  import type { SessionInbox } from "./inbox.js";
3
3
  import type { FileDiff } from "@opencode-ai/schema/file-diff";
4
- import type { Session } from "@opencode-ai/schema/session";
4
+ import type { SessionSchema } from "./schema.js";
5
5
  import type { RevertV1 } from "@opencode-ai/schema/session-revert";
6
6
  import type { Schema } from "effect";
7
7
  type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
@@ -532,7 +532,7 @@ export declare const SessionTable: import("drizzle-orm/sqlite-core").SQLiteTable
532
532
  name: string;
533
533
  tableName: "session_v2";
534
534
  dataType: "object json";
535
- data: Session.Revert | RevertV1;
535
+ data: SessionSchema.Revert | RevertV1;
536
536
  driverParam: string;
537
537
  notNull: false;
538
538
  hasDefault: false;
@@ -0,0 +1,82 @@
1
+ export * as SessionStats from "./stats.js";
2
+ import { DateTime, Effect, Schema } from "effect";
3
+ import { Model } from "@opencode-ai/schema/model";
4
+ import { Project } from "@opencode-ai/schema/project";
5
+ import { ToolMode } from "@opencode-ai/schema/session-stats";
6
+ import { Database } from "../database/database.js";
7
+ type Input = {
8
+ readonly from?: number;
9
+ readonly to?: number;
10
+ readonly projectID?: Project.ID;
11
+ readonly timezone?: string;
12
+ readonly tools?: ToolMode;
13
+ };
14
+ type Tokens = {
15
+ input: number;
16
+ output: number;
17
+ reasoning: number;
18
+ cache: {
19
+ read: number;
20
+ write: number;
21
+ };
22
+ };
23
+ declare const InvalidRangeError_base: Schema.Class<InvalidRangeError, Schema.TaggedStruct<"SessionStats.InvalidRangeError", {
24
+ readonly from: Schema.Finite;
25
+ readonly to: Schema.Finite;
26
+ }>, import("effect/Cause").YieldableError>;
27
+ export declare class InvalidRangeError extends InvalidRangeError_base {
28
+ }
29
+ export declare const get: (input?: Input | undefined) => Effect.Effect<{
30
+ range: {
31
+ from: DateTime.Utc;
32
+ to: DateTime.Utc;
33
+ };
34
+ sessions: number;
35
+ subagents: number;
36
+ prompts: number;
37
+ steps: number;
38
+ tokens: Tokens;
39
+ cost: number & import("effect/Brand").Brand<"Money.USD">;
40
+ tools: {
41
+ mode: "none";
42
+ totals?: undefined;
43
+ usage?: undefined;
44
+ } | {
45
+ mode: "summary";
46
+ totals: {
47
+ calls: number;
48
+ succeeded: number;
49
+ failed: number;
50
+ unfinished: number;
51
+ };
52
+ usage?: undefined;
53
+ } | {
54
+ mode: "detail";
55
+ totals: {
56
+ calls: number;
57
+ succeeded: number;
58
+ failed: number;
59
+ unfinished: number;
60
+ };
61
+ usage: {
62
+ name: string;
63
+ calls: number;
64
+ succeeded: number;
65
+ failed: number;
66
+ unfinished: number;
67
+ durationP50: number | undefined;
68
+ }[];
69
+ };
70
+ activeDays: number;
71
+ streak: number;
72
+ activity: {
73
+ date: string;
74
+ steps: number;
75
+ }[];
76
+ models: {
77
+ cost: number & import("effect/Brand").Brand<"Money.USD">;
78
+ model: Model.Ref;
79
+ steps: number;
80
+ tokens: Tokens;
81
+ }[];
82
+ }, InvalidRangeError, Database.Service>;
@@ -287,18 +287,14 @@ export interface Interface {
287
287
  prompt: string;
288
288
  }) => Effect.Effect<string, NotFoundError | SessionGenerate.Error>;
289
289
  readonly command: (input: {
290
- id?: SessionMessage.ID;
291
290
  sessionID: SessionSchema.ID;
292
291
  command: string;
293
- arguments?: string;
294
- agent?: Agent.ID;
295
- model?: Model.Ref;
292
+ text: string;
296
293
  files?: PromptInput.Prompt["files"];
297
294
  agents?: PromptInput.Prompt["agents"];
298
295
  skills?: PromptInput.Prompt["skills"];
299
296
  delivery?: SessionInbox.Delivery;
300
- resume?: boolean;
301
- }) => Effect.Effect<SessionInbox.User, NotFoundError | PromptConflictError | AttachmentError | SkillNotFoundError | Command.NotFoundError | Command.EvaluationError>;
297
+ }) => Effect.Effect<void, NotFoundError | Command.NotFoundError | Command.ExecutionError>;
302
298
  readonly shell: (input: {
303
299
  id?: Event.ID;
304
300
  sessionID: SessionSchema.ID;
@@ -317,7 +313,7 @@ export interface Interface {
317
313
  readonly resume: (sessionID: SessionSchema.ID) => Effect.Effect<void, NotFoundError | SessionRunner.RunError>;
318
314
  readonly interrupt: (sessionID: SessionSchema.ID, options?: {
319
315
  readonly continue?: boolean;
320
- }) => Effect.Effect<void>;
316
+ }) => Effect.Effect<boolean>;
321
317
  readonly synthetic: (input: {
322
318
  id?: SessionMessage.ID;
323
319
  sessionID: SessionSchema.ID;
@@ -17,5 +17,5 @@ export declare const Input: Schema.Struct<{
17
17
  }>;
18
18
  export declare const Plugin: {
19
19
  id: string;
20
- effect: (ctx: PluginContext) => Effect.Effect<void, never, Scope.Scope | Environment.Service | Config.Service | Permission.Service | PluginRuntime.Service | LocationMutation.Service | Shell.Service>;
20
+ effect: (ctx: PluginContext) => Effect.Effect<void, never, Scope.Scope | Config.Service | Environment.Service | Permission.Service | PluginRuntime.Service | LocationMutation.Service | Shell.Service>;
21
21
  };
@@ -127,15 +127,6 @@ export declare function migrate(info: typeof ConfigV1.Info.Type): {
127
127
  readonly [x: string]: unknown;
128
128
  } | undefined;
129
129
  })[] | undefined;
130
- readonly experimental?: {
131
- readonly portable_shell_scanner?: boolean | undefined;
132
- readonly subagent_depth?: number | undefined;
133
- readonly policies?: readonly {
134
- readonly action: "provider.use";
135
- readonly resource: string;
136
- readonly effect: "allow" | "deny";
137
- }[] | undefined;
138
- } | undefined;
139
130
  readonly providers?: {
140
131
  readonly [x: string]: {
141
132
  readonly name?: string | undefined;
@@ -221,6 +212,15 @@ export declare function migrate(info: typeof ConfigV1.Info.Type): {
221
212
  } | undefined;
222
213
  };
223
214
  } | undefined;
215
+ readonly experimental?: {
216
+ readonly portable_shell_scanner?: boolean | undefined;
217
+ readonly subagent_depth?: number | undefined;
218
+ readonly policies?: readonly {
219
+ readonly action: "provider.use";
220
+ readonly resource: string;
221
+ readonly effect: "allow" | "deny";
222
+ }[] | undefined;
223
+ } | undefined;
224
224
  readonly $schema?: string | undefined;
225
225
  readonly default_agent?: string | undefined;
226
226
  readonly autoupdate?: boolean | "notify" | undefined;
@@ -28,13 +28,27 @@ declare const NotFound_base: Schema.Class<NotFound, Schema.TaggedStruct<"Workspa
28
28
  }>, import("effect/Cause").YieldableError>;
29
29
  export declare class NotFound extends NotFound_base {
30
30
  }
31
+ declare const CreateConflict_base: Schema.Class<CreateConflict, Schema.TaggedStruct<"Workspace.CreateConflict", {
32
+ readonly workspaceID: Schema.brand<Schema.String, "Workspace.ID"> & {
33
+ ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
34
+ create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
35
+ };
36
+ readonly provider: Schema.String;
37
+ readonly existingProvider: Schema.String;
38
+ }>, import("effect/Cause").YieldableError>;
39
+ export declare class CreateConflict extends CreateConflict_base {
40
+ }
31
41
  export interface Interface {
32
42
  /** Instantly commits a logical workspace ID. No provider work happens here. */
33
- readonly create: (provider: string) => Effect.Effect<ID, WorkspaceDriver.ProviderNotFound>;
43
+ readonly create: (input: {
44
+ readonly id?: ID;
45
+ readonly provider: string;
46
+ }) => Effect.Effect<ID, CreateConflict | WorkspaceDriver.ProviderNotFound>;
34
47
  /** Starts or joins the shared attempt that makes the backing resource real, then returns it. */
35
48
  readonly provision: (workspaceID: ID) => Effect.Effect<Info, NotFound | WorkspaceDriver.Error | WorkspaceDriver.ProviderNotFound>;
36
49
  readonly connect: (workspaceID: ID) => Effect.Effect<EnvironmentDriver, NotFound | WorkspaceDriver.Error | WorkspaceDriver.ProviderNotFound>;
37
- readonly destroy: (workspaceID: ID) => Effect.Effect<void, NotFound | WorkspaceDriver.Error | WorkspaceDriver.ProviderNotFound>;
50
+ /** Makes the workspace absent; reports whether this call destroyed an existing workspace. */
51
+ readonly destroy: (workspaceID: ID) => Effect.Effect<Workspace.DestroyResult, WorkspaceDriver.Error | WorkspaceDriver.ProviderNotFound>;
38
52
  }
39
53
  export interface Options {
40
54
  readonly idleThreshold?: Duration.Input;
@@ -1,4 +1,4 @@
1
- import"../chunks/repository-rvfvac9x.js";
1
+ import"../chunks/file-rvfvac9x.js";
2
2
 
3
3
  // src/util/array.ts
4
4
  function findLast(items, predicate) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  NamedError
3
- } from "../chunks/repository-hzeg9cfr.js";
4
- import"../chunks/repository-rvfvac9x.js";
3
+ } from "../chunks/file-hzeg9cfr.js";
4
+ import"../chunks/file-rvfvac9x.js";
5
5
  export {
6
6
  NamedError
7
7
  };
@@ -1,4 +1,4 @@
1
- import"../chunks/repository-rvfvac9x.js";
1
+ import"../chunks/file-rvfvac9x.js";
2
2
 
3
3
  // src/util/identifier.ts
4
4
  import * as Identifier from "@opencode-ai/schema/identifier";
package/dist/util/iife.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  iife
3
- } from "../chunks/repository-ehj9csmv.js";
4
- import"../chunks/repository-rvfvac9x.js";
3
+ } from "../chunks/file-ehj9csmv.js";
4
+ import"../chunks/file-rvfvac9x.js";
5
5
  export {
6
6
  iife
7
7
  };
package/dist/util/lazy.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  lazy
3
- } from "../chunks/repository-8w9tzfz1.js";
4
- import"../chunks/repository-rvfvac9x.js";
3
+ } from "../chunks/file-8w9tzfz1.js";
4
+ import"../chunks/file-rvfvac9x.js";
5
5
  export {
6
6
  lazy
7
7
  };
@@ -1,4 +1,4 @@
1
- import"../chunks/repository-rvfvac9x.js";
1
+ import"../chunks/file-rvfvac9x.js";
2
2
 
3
3
  // src/util/process-lock-ffi.bun.ts
4
4
  import { dlopen, read } from "bun:ffi";
@@ -1,4 +1,4 @@
1
- import"../chunks/repository-rvfvac9x.js";
1
+ import"../chunks/file-rvfvac9x.js";
2
2
 
3
3
  // src/util/process-lock-ffi.node.ts
4
4
  import { dlopen, getInt32 } from "node:ffi";
@@ -1,4 +1,4 @@
1
- import"../chunks/repository-rvfvac9x.js";
1
+ import"../chunks/file-rvfvac9x.js";
2
2
 
3
3
  // src/util/process-lock-ffi.workerd.ts
4
4
  var unavailable = (_fd) => {
@@ -1,4 +1,4 @@
1
- import"../chunks/repository-rvfvac9x.js";
1
+ import"../chunks/file-rvfvac9x.js";
2
2
 
3
3
  // src/util/process-lock.ts
4
4
  import { lockDarwin, lockLinux } from "#process-lock-ffi";
package/dist/util/slug.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Slug
3
- } from "../chunks/repository-df3v2q6j.js";
4
- import"../chunks/repository-rvfvac9x.js";
3
+ } from "../chunks/file-df3v2q6j.js";
4
+ import"../chunks/file-rvfvac9x.js";
5
5
  export {
6
6
  Slug
7
7
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  estimate,
3
3
  exports_token
4
- } from "../chunks/repository-v972xay6.js";
5
- import"../chunks/repository-rvfvac9x.js";
4
+ } from "../chunks/file-v972xay6.js";
5
+ import"../chunks/file-rvfvac9x.js";
6
6
  export {
7
7
  estimate,
8
8
  exports_token as Token
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  which
3
- } from "../chunks/repository-k3e42drn.js";
4
- import"../chunks/repository-rvfvac9x.js";
3
+ } from "../chunks/file-k3e42drn.js";
4
+ import"../chunks/file-rvfvac9x.js";
5
5
  export {
6
6
  which
7
7
  };