@opencode/core 0.0.0-dev-20025 → 0.0.0-dev-20026

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 (802) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +81 -80
  3. package/dist/aisdk-native.js +89 -88
  4. package/dist/aisdk.js +94 -93
  5. package/dist/app.js +7 -7
  6. package/dist/bus.js +73 -72
  7. package/dist/chunks/variant-02av72dv.js +89 -0
  8. package/dist/chunks/{kv-kghsa48y.js → variant-0bzevza6.js} +21 -21
  9. package/dist/chunks/{kv-wzr2e2gd.js → variant-0f3fkebw.js} +12 -12
  10. package/dist/chunks/{kv-djncmbp2.js → variant-0kdyx93j.js} +23 -23
  11. package/dist/chunks/{kv-c4v1hkzh.js → variant-0krcabsn.js} +6 -6
  12. package/dist/chunks/{kv-0paq2nw3.js → variant-0paq2nw3.js} +1 -1
  13. package/dist/chunks/{kv-g1sxm558.js → variant-0xezjjjn.js} +8 -8
  14. package/dist/chunks/{kv-6wr1j3sy.js → variant-0z6w7vfv.js} +12 -12
  15. package/dist/chunks/{kv-saaf3fxb.js → variant-17j9h1rv.js} +11 -11
  16. package/dist/chunks/{kv-vncycja5.js → variant-1a6p2twq.js} +4 -4
  17. package/dist/chunks/{kv-1bbkgx8g.js → variant-1bbkgx8g.js} +1 -1
  18. package/dist/chunks/{kv-1dazxqgg.js → variant-1dazxqgg.js} +2 -2
  19. package/dist/chunks/{kv-j3cbebdz.js → variant-1j4qs2dp.js} +13 -13
  20. package/dist/chunks/{kv-xpzqyyxp.js → variant-1w0wkfxf.js} +5 -5
  21. package/dist/chunks/{kv-6w5xh4x4.js → variant-1wyzf5g7.js} +2 -2
  22. package/dist/chunks/{kv-dqrd5jg2.js → variant-1xcw6xjf.js} +31 -31
  23. package/dist/chunks/{kv-21r38tys.js → variant-21r38tys.js} +1 -1
  24. package/dist/chunks/{kv-6zdscwh2.js → variant-21xkm9mw.js} +25 -25
  25. package/dist/chunks/{kv-2402vzrj.js → variant-2402vzrj.js} +1 -1
  26. package/dist/chunks/{kv-z63w68vq.js → variant-29x78va6.js} +6 -6
  27. package/dist/chunks/{kv-2a5m3afh.js → variant-2a5m3afh.js} +1 -1
  28. package/dist/chunks/{kv-h896pcm5.js → variant-2a6rn6yr.js} +6 -6
  29. package/dist/chunks/{kv-6zt78djw.js → variant-2d0rz701.js} +16 -16
  30. package/dist/chunks/{kv-nqnxh7mc.js → variant-2d57kztd.js} +6 -6
  31. package/dist/chunks/{kv-cg58rktj.js → variant-2eyvmpqy.js} +35 -35
  32. package/dist/chunks/{kv-q9qfx9t0.js → variant-2g7pkq9k.js} +23 -23
  33. package/dist/chunks/{kv-yvvvp4gn.js → variant-2hr5nhwa.js} +8 -8
  34. package/dist/chunks/{kv-1f9k274t.js → variant-2n3rws7p.js} +31 -31
  35. package/dist/chunks/{kv-qdbakdjh.js → variant-2p623br6.js} +5 -5
  36. package/dist/chunks/{kv-nxw95max.js → variant-2ptfhmaq.js} +16 -16
  37. package/dist/chunks/{kv-cbtw62a5.js → variant-31rgt9cd.js} +15 -15
  38. package/dist/chunks/{kv-twg0f83k.js → variant-34c7v6d4.js} +1 -0
  39. package/dist/chunks/{kv-yt0fqk68.js → variant-3cz8rj72.js} +5 -5
  40. package/dist/chunks/{kv-3fc6dm20.js → variant-3fc6dm20.js} +1 -1
  41. package/dist/chunks/{kv-ssdqnhy0.js → variant-3g33scay.js} +4 -4
  42. package/dist/chunks/{kv-jymhh06g.js → variant-3h50d2d8.js} +5 -5
  43. package/dist/chunks/{kv-3hepkmqq.js → variant-3hepkmqq.js} +1 -1
  44. package/dist/chunks/{kv-taxb8c86.js → variant-3prdw56f.js} +41 -41
  45. package/dist/chunks/{kv-3smtnn6g.js → variant-3smtnn6g.js} +1 -1
  46. package/dist/chunks/{kv-3tvqynh2.js → variant-3tvqynh2.js} +1 -1
  47. package/dist/chunks/{kv-jqb7tdaw.js → variant-3wwqqeqp.js} +8 -8
  48. package/dist/chunks/{kv-3zsf4n22.js → variant-3zsf4n22.js} +1 -1
  49. package/dist/chunks/{kv-hx22bhvn.js → variant-45p7gsnq.js} +24 -24
  50. package/dist/chunks/{kv-4f1gf0mj.js → variant-4h2qm5xd.js} +43 -43
  51. package/dist/chunks/{kv-hzed07nt.js → variant-4hz2mmtn.js} +6 -6
  52. package/dist/chunks/{kv-d5g8gbry.js → variant-4n6z1r8s.js} +24 -24
  53. package/dist/chunks/{kv-f828m53h.js → variant-54tcyq79.js} +2 -2
  54. package/dist/chunks/{kv-b2k91mhf.js → variant-557d9c8t.js} +23 -23
  55. package/dist/chunks/{kv-gqb9mtgp.js → variant-563rq041.js} +92 -92
  56. package/dist/chunks/{kv-1ygqh575.js → variant-56gdpj1q.js} +9 -9
  57. package/dist/chunks/{kv-2hptpgkz.js → variant-5b64cte8.js} +14 -14
  58. package/dist/chunks/{kv-5daktx2q.js → variant-5daktx2q.js} +1 -1
  59. package/dist/chunks/{kv-5ekn9679.js → variant-5ekn9679.js} +1 -1
  60. package/dist/chunks/{kv-b7kqv799.js → variant-5hwa0061.js} +2 -2
  61. package/dist/chunks/{kv-b06qraw3.js → variant-5jf3agd7.js} +1 -1
  62. package/dist/chunks/{kv-g7rwz86d.js → variant-5mef3xk7.js} +17 -17
  63. package/dist/chunks/{kv-tt61f65p.js → variant-5mvsdnr7.js} +4 -4
  64. package/dist/chunks/{kv-5t3nmthw.js → variant-5t3nmthw.js} +2 -2
  65. package/dist/chunks/{kv-etdwcn18.js → variant-62m7qsdd.js} +3 -3
  66. package/dist/chunks/{kv-669tq793.js → variant-669tq793.js} +1 -1
  67. package/dist/chunks/{kv-e03c71z8.js → variant-6mmx0pze.js} +10 -10
  68. package/dist/chunks/{kv-6msgmcgs.js → variant-6msgmcgs.js} +1 -1
  69. package/dist/chunks/{kv-qy6w65wj.js → variant-6p55r51m.js} +1 -1
  70. package/dist/chunks/{kv-6j9fjes3.js → variant-6rxwp35s.js} +19 -19
  71. package/dist/chunks/{kv-g190xswt.js → variant-6sr3ve8g.js} +21 -21
  72. package/dist/chunks/{kv-by29td28.js → variant-6w0aczmv.js} +11 -11
  73. package/dist/chunks/{kv-th0fvjg2.js → variant-6wjad31y.js} +7 -7
  74. package/dist/chunks/{kv-b0qgzce7.js → variant-6zedfc54.js} +27 -27
  75. package/dist/chunks/{kv-d74pyvff.js → variant-71zkw7xr.js} +9 -9
  76. package/dist/chunks/{kv-6d54emcz.js → variant-72v9w41r.js} +58 -58
  77. package/dist/chunks/{kv-g3dp65zv.js → variant-75x4dgvy.js} +8 -8
  78. package/dist/chunks/{kv-jtg3fve7.js → variant-7836xe6r.js} +7 -7
  79. package/dist/chunks/{kv-7bmhse3q.js → variant-7bmhse3q.js} +1 -1
  80. package/dist/chunks/{kv-8rqjran1.js → variant-7c8esnqs.js} +25 -25
  81. package/dist/chunks/{kv-dq6dnsx7.js → variant-7d4hdxdy.js} +11 -11
  82. package/dist/chunks/{kv-qgn6gcr1.js → variant-7dqw4kz8.js} +5 -5
  83. package/dist/chunks/{kv-g2t41m45.js → variant-7xgrqf4n.js} +18 -18
  84. package/dist/chunks/{kv-mrn44fwv.js → variant-7y60eay9.js} +28 -28
  85. package/dist/chunks/{kv-e5ndp2dx.js → variant-7yrwfpwm.js} +11 -11
  86. package/dist/chunks/{kv-9mnxndb9.js → variant-80dj63ps.js} +6 -6
  87. package/dist/chunks/{kv-3zgzsr0q.js → variant-834a0b17.js} +7 -7
  88. package/dist/chunks/{kv-52094frg.js → variant-83xz4qq9.js} +23 -23
  89. package/dist/chunks/{kv-h0gywk7f.js → variant-84sj45vf.js} +13 -13
  90. package/dist/chunks/{kv-8d7r5vzw.js → variant-8d7r5vzw.js} +1 -1
  91. package/dist/chunks/{kv-hdmd1s5h.js → variant-8eh51za7.js} +9 -9
  92. package/dist/chunks/{kv-2fm1txxr.js → variant-8epdgwc0.js} +26 -26
  93. package/dist/chunks/{kv-j3h20tjh.js → variant-8fz7s7fk.js} +3 -3
  94. package/dist/chunks/{kv-5acpzame.js → variant-8mvw6bgy.js} +25 -25
  95. package/dist/chunks/{kv-gbwwsy1c.js → variant-8nx8zez9.js} +13 -13
  96. package/dist/chunks/{kv-xmvnvct5.js → variant-8qdtva9t.js} +17 -17
  97. package/dist/chunks/{kv-sycq1qnd.js → variant-8tpythmx.js} +24 -24
  98. package/dist/chunks/variant-8wj87zfr.js +14 -0
  99. package/dist/chunks/{kv-j6bphecn.js → variant-9byqxeta.js} +17 -17
  100. package/dist/chunks/{kv-vtxr0yy2.js → variant-9cyfspf3.js} +5 -5
  101. package/dist/chunks/{kv-6dtbrkj0.js → variant-9esb0m0p.js} +1 -1
  102. package/dist/chunks/{kv-2499yhnb.js → variant-9f1seg8j.js} +26 -26
  103. package/dist/chunks/{kv-mzd4qxry.js → variant-9jwjh49g.js} +32 -32
  104. package/dist/chunks/{kv-4pfvz1zp.js → variant-9mye8vwy.js} +7 -7
  105. package/dist/chunks/{kv-zq6zx8a5.js → variant-9qw4j31g.js} +11 -11
  106. package/dist/chunks/{kv-jea42s8g.js → variant-9r5qhkng.js} +28 -28
  107. package/dist/chunks/{kv-vjptwcqz.js → variant-a5fr2mj9.js} +23 -23
  108. package/dist/chunks/{kv-0z42gnwd.js → variant-a5t4p5xt.js} +24 -24
  109. package/dist/chunks/{kv-vmzm20dx.js → variant-a6x7shte.js} +3 -3
  110. package/dist/chunks/{kv-aaet6srn.js → variant-aaet6srn.js} +2 -2
  111. package/dist/chunks/{kv-szbjvnna.js → variant-af7j52hr.js} +4 -4
  112. package/dist/chunks/{kv-1gqe2a33.js → variant-ajk3nktm.js} +32 -32
  113. package/dist/chunks/{kv-hf4dxjes.js → variant-apg24jar.js} +33 -33
  114. package/dist/chunks/{kv-mmt72t0k.js → variant-ar8vm0ff.js} +13 -13
  115. package/dist/chunks/{kv-t9d84gp7.js → variant-avd8ev9v.js} +4 -4
  116. package/dist/chunks/{kv-eyjms8xz.js → variant-avrnkb01.js} +46 -46
  117. package/dist/chunks/{kv-y3pxdktb.js → variant-b51jbz85.js} +5 -5
  118. package/dist/chunks/variant-b6ck6p7e.js +26 -0
  119. package/dist/chunks/{kv-b6gygkdw.js → variant-b6gygkdw.js} +2 -2
  120. package/dist/chunks/{kv-bk6ae5dx.js → variant-b8y4420x.js} +43 -43
  121. package/dist/chunks/{kv-srtmpgmy.js → variant-b9dsjnj7.js} +8 -8
  122. package/dist/chunks/{kv-4db76nbv.js → variant-bfhm6t97.js} +13 -13
  123. package/dist/chunks/{kv-74zt4j78.js → variant-bjn6skbd.js} +5 -5
  124. package/dist/chunks/{kv-ec87kc5z.js → variant-bjn91642.js} +4 -4
  125. package/dist/chunks/{kv-a1bz86dw.js → variant-bjtzbw4r.js} +3 -3
  126. package/dist/chunks/{kv-14xcmtnt.js → variant-c5ezeqt5.js} +27 -27
  127. package/dist/chunks/{kv-xdzjzbp4.js → variant-c8swy7ka.js} +15 -15
  128. package/dist/chunks/{kv-cjgt99j3.js → variant-cenw4sj9.js} +159 -159
  129. package/dist/chunks/{kv-8xsa2z82.js → variant-cgrt34rb.js} +26 -26
  130. package/dist/chunks/{kv-18ezz3e7.js → variant-cm9mwwq8.js} +21 -21
  131. package/dist/chunks/{kv-dmwq5kqt.js → variant-cmh4zy5x.js} +13 -13
  132. package/dist/chunks/variant-cr86fwsy.js +252 -0
  133. package/dist/chunks/{kv-ctefx7dc.js → variant-ctefx7dc.js} +1 -1
  134. package/dist/chunks/{kv-f447m1fr.js → variant-d27k1qq2.js} +13 -13
  135. package/dist/chunks/{kv-bx8h19nq.js → variant-d42e34ke.js} +54 -54
  136. package/dist/chunks/{kv-2ny4609t.js → variant-dbdtaeh3.js} +58 -46
  137. package/dist/chunks/{kv-3mpqv36z.js → variant-dcer5810.js} +28 -28
  138. package/dist/chunks/{kv-tng621aa.js → variant-dfjemdtf.js} +30 -30
  139. package/dist/chunks/{kv-8n2kyc0a.js → variant-dngx6zgq.js} +2 -2
  140. package/dist/chunks/{kv-xfkkasph.js → variant-drwq78ky.js} +4 -4
  141. package/dist/chunks/{kv-tj17d411.js → variant-dtss6q18.js} +11 -11
  142. package/dist/chunks/{kv-f5gy8qwh.js → variant-dvc89yjx.js} +8 -8
  143. package/dist/chunks/{kv-nyh2ypn1.js → variant-e37stjd8.js} +11 -11
  144. package/dist/chunks/{kv-5qd3pb7m.js → variant-e3qxr5gk.js} +2 -2
  145. package/dist/chunks/{kv-gfb2xgah.js → variant-e6y173sj.js} +9 -9
  146. package/dist/chunks/{kv-s8d7rejh.js → variant-eaj1djv9.js} +6 -6
  147. package/dist/chunks/{kv-scpwyfk8.js → variant-ecnb5xks.js} +17 -17
  148. package/dist/chunks/{kv-a9dbeg1s.js → variant-edv89m0p.js} +40 -40
  149. package/dist/chunks/{kv-ef5x83kb.js → variant-ef5x83kb.js} +1 -1
  150. package/dist/chunks/{kv-pckzp1dd.js → variant-ehd2w0yp.js} +17 -17
  151. package/dist/chunks/{kv-1x75wf9g.js → variant-engkm2d6.js} +5 -5
  152. package/dist/chunks/{kv-7f4nfbjm.js → variant-eqvqvd13.js} +9 -9
  153. package/dist/chunks/{kv-erw5rpbs.js → variant-erw5rpbs.js} +2 -2
  154. package/dist/chunks/{kv-etq0c3wd.js → variant-etq0c3wd.js} +1 -1
  155. package/dist/chunks/{kv-2085ns88.js → variant-f747t98r.js} +16 -16
  156. package/dist/chunks/{kv-0b6h44sv.js → variant-fbc9vsj2.js} +20 -20
  157. package/dist/chunks/{kv-0d6ct406.js → variant-fczcbajx.js} +328 -328
  158. package/dist/chunks/{kv-rx89pc2r.js → variant-fhpv401t.js} +47 -47
  159. package/dist/chunks/{kv-mqdxs2wn.js → variant-fjeqa7jj.js} +8 -8
  160. package/dist/chunks/{kv-e5tcccaa.js → variant-fx8cm3j5.js} +10 -10
  161. package/dist/chunks/{kv-8q61w4ba.js → variant-fzgxakwn.js} +6 -6
  162. package/dist/chunks/{kv-44bdxtcq.js → variant-fzhdr1mx.js} +1 -1
  163. package/dist/chunks/{kv-8v6rjhh5.js → variant-g04dwg7s.js} +4 -4
  164. package/dist/chunks/{kv-btqa3k48.js → variant-g1zq083n.js} +13 -13
  165. package/dist/chunks/{kv-5dayhn2v.js → variant-g20tdqpk.js} +37 -37
  166. package/dist/chunks/{kv-9jwxq161.js → variant-g2yz86wh.js} +2 -2
  167. package/dist/chunks/{kv-j710vash.js → variant-gbdr24b9.js} +12 -12
  168. package/dist/chunks/{kv-gd4qta3r.js → variant-gd4qta3r.js} +1 -1
  169. package/dist/chunks/{kv-pv9k352q.js → variant-gf45v5rv.js} +9 -9
  170. package/dist/chunks/{kv-cfpkc3c9.js → variant-gfvb90ym.js} +2 -2
  171. package/dist/chunks/{kv-z9d24bxr.js → variant-gga0wymx.js} +62 -62
  172. package/dist/chunks/{kv-xw59r1n4.js → variant-gs9rpsen.js} +8 -8
  173. package/dist/chunks/{kv-gv6a8nnw.js → variant-gv6a8nnw.js} +2 -2
  174. package/dist/chunks/{kv-h6r3nrb9.js → variant-h6r3nrb9.js} +1 -1
  175. package/dist/chunks/{kv-h6vf3j39.js → variant-h6vf3j39.js} +1 -1
  176. package/dist/chunks/{kv-bgxcxs0p.js → variant-hcz3zddy.js} +5 -5
  177. package/dist/chunks/{kv-31d7kfed.js → variant-hkafdcbz.js} +1 -1
  178. package/dist/chunks/{kv-03zcn7km.js → variant-hpfrvn9v.js} +16 -16
  179. package/dist/chunks/{kv-04tskj1d.js → variant-j55501wg.js} +6 -6
  180. package/dist/chunks/{kv-j56e64zr.js → variant-j56e64zr.js} +1 -1
  181. package/dist/chunks/{kv-yazkjqj6.js → variant-jes8xwtq.js} +3 -3
  182. package/dist/chunks/{kv-a8z9aywv.js → variant-jfmkgsry.js} +20 -20
  183. package/dist/chunks/{kv-vrqcba6b.js → variant-jk953tft.js} +4 -4
  184. package/dist/chunks/{kv-3gmnjn1e.js → variant-jn81emqq.js} +16 -16
  185. package/dist/chunks/{kv-twegnk1a.js → variant-jx4tygjy.js} +10 -10
  186. package/dist/chunks/{kv-tc43054m.js → variant-k5y748ge.js} +3 -3
  187. package/dist/chunks/{kv-rjq8wmvv.js → variant-kad49353.js} +14 -14
  188. package/dist/chunks/{kv-9b7gtj9m.js → variant-kfd45557.js} +16 -16
  189. package/dist/chunks/{kv-44ke2mar.js → variant-knb7evpn.js} +2 -2
  190. package/dist/chunks/{kv-btb98dpx.js → variant-kns7re6s.js} +10 -10
  191. package/dist/chunks/{kv-48jv4090.js → variant-kqbmdx55.js} +32 -32
  192. package/dist/chunks/{kv-ep7hvg3f.js → variant-kzynzy4y.js} +14 -14
  193. package/dist/chunks/{kv-m3fdjcah.js → variant-m3fdjcah.js} +1 -1
  194. package/dist/chunks/{kv-we2ehp3j.js → variant-m74j5n8t.js} +51 -51
  195. package/dist/chunks/{kv-m9w0rfyh.js → variant-m9w0rfyh.js} +1 -1
  196. package/dist/chunks/{kv-0aw7dz0t.js → variant-md1qfzvn.js} +29 -29
  197. package/dist/chunks/{kv-10jtetaj.js → variant-mjncxbbh.js} +6 -6
  198. package/dist/chunks/{kv-jg5nd6aq.js → variant-mm84f3fs.js} +27 -27
  199. package/dist/chunks/{kv-kahgbyje.js → variant-mn93ga5d.js} +17 -17
  200. package/dist/chunks/{kv-73b8rws5.js → variant-n2cj49gr.js} +24 -24
  201. package/dist/chunks/{kv-3k0jy8d1.js → variant-n3hpqbgj.js} +11 -11
  202. package/dist/chunks/{kv-xypewtc4.js → variant-n7hwxzgv.js} +29 -29
  203. package/dist/chunks/{kv-a1dpd8an.js → variant-na0h3a6c.js} +22 -22
  204. package/dist/chunks/{kv-z543s5m4.js → variant-ngjw7veb.js} +3 -3
  205. package/dist/chunks/{kv-wp96n48x.js → variant-nj481gba.js} +5 -5
  206. package/dist/chunks/{kv-4nfmj2pa.js → variant-nk7804dj.js} +11 -11
  207. package/dist/chunks/{kv-5c7xdf35.js → variant-nmvjxe16.js} +10 -10
  208. package/dist/chunks/{kv-r9ds02vs.js → variant-nq97rzw1.js} +21 -21
  209. package/dist/chunks/{kv-jte7tjff.js → variant-nv7t75ky.js} +14 -14
  210. package/dist/chunks/{kv-nby32ptr.js → variant-nydghdxw.js} +27 -27
  211. package/dist/chunks/{kv-k3c624dm.js → variant-nzks3jc8.js} +3 -3
  212. package/dist/chunks/{kv-p37cw4rj.js → variant-p37cw4rj.js} +1 -1
  213. package/dist/chunks/{kv-gxa50yrh.js → variant-p8djes8h.js} +19 -19
  214. package/dist/chunks/{kv-57ez7d0k.js → variant-pef6k0gg.js} +9 -9
  215. package/dist/chunks/{kv-pjvnvgmy.js → variant-pjvnvgmy.js} +1 -1
  216. package/dist/chunks/{kv-pknna89w.js → variant-pknna89w.js} +1 -1
  217. package/dist/chunks/{kv-rv6yjsw0.js → variant-ppxpc5nv.js} +3 -3
  218. package/dist/chunks/{kv-8p4f9s12.js → variant-psazpmmj.js} +3 -2
  219. package/dist/chunks/{kv-fzz5a1bx.js → variant-pt7424fw.js} +9 -9
  220. package/dist/chunks/{kv-hfdr1yjj.js → variant-q7azfttr.js} +4 -4
  221. package/dist/chunks/{kv-50p05jhk.js → variant-q7mj73f6.js} +25 -25
  222. package/dist/chunks/variant-qapv375x.js +4 -0
  223. package/dist/chunks/{kv-qcaxkbzb.js → variant-qmkkft71.js} +21 -21
  224. package/dist/chunks/{kv-qsdy395h.js → variant-qsdy395h.js} +1 -1
  225. package/dist/chunks/{kv-cpneeje0.js → variant-r2m716tb.js} +9 -9
  226. package/dist/chunks/{kv-gh6rxzv3.js → variant-r39jerzg.js} +12 -12
  227. package/dist/chunks/{kv-bwf58ycy.js → variant-r6cdbtvh.js} +4 -4
  228. package/dist/chunks/{kv-dq2ts99x.js → variant-r8bjv7hd.js} +15 -15
  229. package/dist/chunks/{kv-e7w4bzfp.js → variant-r9684t3a.js} +13 -13
  230. package/dist/chunks/{kv-saj8ej6e.js → variant-rbqcddk9.js} +11 -11
  231. package/dist/chunks/{kv-w7tywmb9.js → variant-rc0khjqf.js} +12 -12
  232. package/dist/chunks/{kv-rdw6cm16.js → variant-rdw6cm16.js} +1 -1
  233. package/dist/chunks/{kv-p0aq747x.js → variant-rh1n8m2g.js} +11 -11
  234. package/dist/chunks/{kv-j3s2z371.js → variant-rhafb4aa.js} +9 -9
  235. package/dist/chunks/{kv-ahg2fzmr.js → variant-rt8yt3bf.js} +17 -17
  236. package/dist/chunks/{kv-4wxt30p3.js → variant-rtgnjske.js} +33 -33
  237. package/dist/chunks/{kv-ygknhksg.js → variant-rwnjws6z.js} +10 -10
  238. package/dist/chunks/{kv-17hzcrm0.js → variant-s07fdbeq.js} +19 -19
  239. package/dist/chunks/{kv-1v02azyb.js → variant-s41dxx30.js} +1 -1
  240. package/dist/chunks/{kv-yrznvahk.js → variant-s4enseaf.js} +2 -2
  241. package/dist/chunks/{kv-0jq9fyba.js → variant-s5d9hk7s.js} +9 -9
  242. package/dist/chunks/{kv-6vaskwyw.js → variant-s7h606h9.js} +19 -19
  243. package/dist/chunks/{kv-z37ms1s1.js → variant-sjgae2xy.js} +17 -17
  244. package/dist/chunks/{kv-hc50k08t.js → variant-stas9bdh.js} +9 -9
  245. package/dist/chunks/{kv-9jgjgdd1.js → variant-t0yy7xg2.js} +76 -76
  246. package/dist/chunks/{kv-ab55kpvp.js → variant-t3hvp6ye.js} +35 -35
  247. package/dist/chunks/{kv-ryr1zws9.js → variant-t6055e0v.js} +31 -31
  248. package/dist/chunks/{kv-tazgh4e4.js → variant-tazgh4e4.js} +1 -1
  249. package/dist/chunks/{kv-277eer69.js → variant-tbmac1c7.js} +4 -4
  250. package/dist/chunks/{kv-tcezcvh9.js → variant-tcezcvh9.js} +1 -1
  251. package/dist/chunks/{kv-tdstcens.js → variant-tdstcens.js} +1 -1
  252. package/dist/chunks/{kv-ks1687eg.js → variant-tk2xtqnn.js} +30 -30
  253. package/dist/chunks/{kv-tvtrv512.js → variant-tvtrv512.js} +1 -1
  254. package/dist/chunks/{kv-tk40ge2q.js → variant-v1nyvan4.js} +38 -38
  255. package/dist/chunks/{kv-cyets4p7.js → variant-v1x57w6y.js} +32 -32
  256. package/dist/chunks/{kv-pe889297.js → variant-v7eyjk8c.js} +34 -34
  257. package/dist/chunks/{kv-veqvce7d.js → variant-veqvce7d.js} +1 -1
  258. package/dist/chunks/{kv-gnezz7kq.js → variant-vkepkbsm.js} +19 -19
  259. package/dist/chunks/{kv-9bqmh40y.js → variant-vrk0cgw0.js} +21 -21
  260. package/dist/chunks/{kv-v3sgzvyr.js → variant-vtd2qwnf.js} +1 -1
  261. package/dist/chunks/{kv-t8t07vn8.js → variant-vya4f7hk.js} +13 -13
  262. package/dist/chunks/{kv-vzcthcp8.js → variant-vzcthcp8.js} +1 -1
  263. package/dist/chunks/{kv-w3wsvvr9.js → variant-w3wsvvr9.js} +1 -1
  264. package/dist/chunks/{kv-w1ad28wa.js → variant-was7srj9.js} +8 -8
  265. package/dist/chunks/{kv-tdx2ferx.js → variant-wbtey438.js} +8 -8
  266. package/dist/chunks/{kv-wd87259q.js → variant-wd87259q.js} +1 -1
  267. package/dist/chunks/{kv-742d1swr.js → variant-wnsqmkbm.js} +26 -26
  268. package/dist/chunks/{kv-eqk40qcs.js → variant-wtm3ybk1.js} +3 -3
  269. package/dist/chunks/{kv-x1ezjp6w.js → variant-x1ezjp6w.js} +1 -1
  270. package/dist/chunks/{kv-6hh8tjw2.js → variant-xb02k0wq.js} +4 -4
  271. package/dist/chunks/{kv-y49vr829.js → variant-xe0jn6g3.js} +5 -5
  272. package/dist/chunks/{kv-skyymkrr.js → variant-xkhfjrgz.js} +3 -3
  273. package/dist/chunks/{kv-cyrsd82e.js → variant-xycc92pn.js} +30 -30
  274. package/dist/chunks/{kv-y1fvbwt7.js → variant-y1fvbwt7.js} +1 -1
  275. package/dist/chunks/{kv-y71avatq.js → variant-y71avatq.js} +1 -1
  276. package/dist/chunks/{kv-z7f79qsj.js → variant-yaktvxn2.js} +18 -18
  277. package/dist/chunks/{kv-fm57n0ag.js → variant-ybday7y9.js} +8 -8
  278. package/dist/chunks/{kv-we5eykgc.js → variant-yf5fe4my.js} +18 -18
  279. package/dist/chunks/{kv-aej8eep8.js → variant-yh7kjdpc.js} +9 -9
  280. package/dist/chunks/{kv-yp2x3t23.js → variant-yp2x3t23.js} +1 -1
  281. package/dist/chunks/{kv-pnapwefn.js → variant-yq6sxka3.js} +52 -48
  282. package/dist/chunks/{kv-yrhqyw5v.js → variant-yrhqyw5v.js} +1 -1
  283. package/dist/chunks/{kv-z0bkrqjs.js → variant-z0bkrqjs.js} +1 -1
  284. package/dist/chunks/{kv-wxqhnnpd.js → variant-z16bdfpw.js} +9 -9
  285. package/dist/chunks/{kv-3w0fmcng.js → variant-z3pw5915.js} +5 -5
  286. package/dist/chunks/{kv-na3wjac3.js → variant-zd5rdewp.js} +5 -5
  287. package/dist/chunks/{kv-zeh9ct20.js → variant-zeh9ct20.js} +2 -2
  288. package/dist/chunks/{kv-p1aa38cv.js → variant-zqy8ejrp.js} +14 -14
  289. package/dist/chunks/{kv-zr2ceqn5.js → variant-zr2ceqn5.js} +1 -1
  290. package/dist/chunks/{kv-zav06jzw.js → variant-zvt5dnpc.js} +4 -4
  291. package/dist/chunks/{kv-9065type.js → variant-zxbrzaq9.js} +13 -13
  292. package/dist/chunks/{kv-zxq2ej10.js → variant-zxq2ej10.js} +1 -1
  293. package/dist/chunks/{kv-rwjqg74r.js → variant-zzexawz9.js} +26 -26
  294. package/dist/codemode/catalog.js +1 -1
  295. package/dist/codemode/instructions.js +9 -9
  296. package/dist/codemode/tool.js +3 -3
  297. package/dist/codemode/web.js +1 -1
  298. package/dist/command.js +83 -82
  299. package/dist/config/discovery.js +82 -81
  300. package/dist/config/markdown.js +1 -1
  301. package/dist/config/normalize.js +106 -105
  302. package/dist/config/plugin/agent.js +125 -124
  303. package/dist/config/plugin/command.js +214 -213
  304. package/dist/config/plugin/compaction.js +162 -161
  305. package/dist/config/plugin/compatibility.js +141 -140
  306. package/dist/config/plugin/entry-observer.js +1 -1
  307. package/dist/config/plugin/formatter.js +124 -123
  308. package/dist/config/plugin/image.js +123 -122
  309. package/dist/config/plugin/instruction.js +90 -89
  310. package/dist/config/plugin/location-watcher.js +123 -122
  311. package/dist/config/plugin/mcp.js +132 -131
  312. package/dist/config/plugin/policy.js +124 -123
  313. package/dist/config/plugin/provider.js +123 -122
  314. package/dist/config/plugin/reference.js +125 -124
  315. package/dist/config/plugin/shell.js +123 -122
  316. package/dist/config/plugin/skill-file.js +102 -101
  317. package/dist/config/plugin/skill.js +144 -143
  318. package/dist/config/plugin/snapshot.js +123 -122
  319. package/dist/config/plugin/source.js +126 -125
  320. package/dist/config/plugin/tool-output.js +125 -124
  321. package/dist/config/plugin/websearch.js +122 -121
  322. package/dist/config/plugin/worktree.js +125 -124
  323. package/dist/config/variable.js +3 -3
  324. package/dist/config/watch.js +1 -1
  325. package/dist/config.js +128 -127
  326. package/dist/credential/sql.js +2 -2
  327. package/dist/credential.js +85 -84
  328. package/dist/database/database.js +66 -65
  329. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  330. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  331. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  332. package/dist/database/drizzle/index.js +13 -13
  333. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  335. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  336. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  337. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  338. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  339. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  340. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  341. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  342. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  343. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  344. package/dist/database/drizzle.js +14 -14
  345. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  346. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  347. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  348. package/dist/database/migration/20260225215848_workspace.js +1 -1
  349. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  350. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  351. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  352. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  353. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  354. package/dist/database/migration/20260323234822_events.js +1 -1
  355. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  356. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  357. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  358. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  359. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  360. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  361. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  362. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  363. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  364. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  365. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  366. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  367. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  368. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  369. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  370. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  371. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  372. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  373. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  374. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  375. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  376. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  377. package/dist/database/migration/20260611035744_credential.js +1 -1
  378. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  379. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  380. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  381. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  382. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  383. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  384. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  385. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  386. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  387. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  388. package/dist/database/migration/20260812213948_worktree.js +1 -1
  389. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  390. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  391. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  392. package/dist/database/migration/20260923013825_project_time_active.js +6 -0
  393. package/dist/database/migration.gen.js +49 -48
  394. package/dist/database/migration.js +51 -50
  395. package/dist/database/path.js +2 -2
  396. package/dist/database/schema.gen.js +1 -1
  397. package/dist/database/schema.sql.js +1 -1
  398. package/dist/database/sqlite.bun.js +1 -1
  399. package/dist/database/sqlite.js +1 -1
  400. package/dist/database/sqlite.node.js +1 -1
  401. package/dist/database/sqlite.workerd.js +1 -1
  402. package/dist/database/v1-migration.bun.js +80 -79
  403. package/dist/database/v1-migration.js +1 -1
  404. package/dist/effect/app-node-builder.js +370 -369
  405. package/dist/effect/app-node-platform.js +2 -2
  406. package/dist/effect/keyed-mutex.js +1 -1
  407. package/dist/effect/websocket-constructor.js +1 -1
  408. package/dist/environment/driver.js +1 -1
  409. package/dist/environment/environment.js +93 -92
  410. package/dist/environment/exec-defaults.js +2 -2
  411. package/dist/environment/files.js +1 -1
  412. package/dist/environment/index.js +95 -94
  413. package/dist/environment/local.js +2 -2
  414. package/dist/environment/memory.js +2 -2
  415. package/dist/environment/unavailable.js +1 -1
  416. package/dist/event/sql.js +1 -1
  417. package/dist/event-logger.js +74 -73
  418. package/dist/file-access.js +104 -103
  419. package/dist/file-mutation.js +94 -93
  420. package/dist/file-retention.js +1 -1
  421. package/dist/file.js +1 -1
  422. package/dist/filesystem/fff.bun.js +2 -2
  423. package/dist/filesystem/fff.js +1 -1
  424. package/dist/filesystem/fff.node.js +2 -2
  425. package/dist/filesystem/fff.workerd.js +2 -2
  426. package/dist/filesystem/ignore.js +1 -1
  427. package/dist/filesystem/location-watcher-policy.js +6 -6
  428. package/dist/filesystem/location-watcher.js +225 -224
  429. package/dist/filesystem/protected.js +1 -1
  430. package/dist/filesystem/search.js +103 -102
  431. package/dist/filesystem/watcher-binding.js +3 -3
  432. package/dist/filesystem/watcher.js +15 -15
  433. package/dist/filesystem.js +102 -101
  434. package/dist/form.js +84 -83
  435. package/dist/formatter/builtins.js +2 -2
  436. package/dist/formatter.js +85 -84
  437. package/dist/generate.js +105 -104
  438. package/dist/git.js +10 -10
  439. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  440. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  441. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  442. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  443. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  444. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  445. package/dist/github-copilot/copilot-provider.js +17 -17
  446. package/dist/github-copilot/models.js +99 -98
  447. package/dist/github-copilot/openai-compatible-error.js +1 -1
  448. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  449. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  450. package/dist/github-copilot/responses/openai-error.js +1 -1
  451. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  452. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  453. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  454. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  455. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  456. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  457. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  458. package/dist/id/id.js +1 -1
  459. package/dist/image/photon.js +2 -2
  460. package/dist/image.js +6 -6
  461. package/dist/instance/service.js +5 -5
  462. package/dist/instance.js +361 -360
  463. package/dist/instruction-discovery.js +81 -80
  464. package/dist/instructions/builtins.js +87 -86
  465. package/dist/instructions/index.js +3 -3
  466. package/dist/integration/connection.js +1 -1
  467. package/dist/integration.js +86 -85
  468. package/dist/job.js +79 -78
  469. package/dist/kv/sql.js +2 -2
  470. package/dist/kv.js +73 -72
  471. package/dist/location-activity.js +135 -134
  472. package/dist/location-lifecycle.js +107 -105
  473. package/dist/location-mutation.js +104 -103
  474. package/dist/location-service-map.js +86 -85
  475. package/dist/location-services.js +358 -357
  476. package/dist/location.js +89 -88
  477. package/dist/managed-policy.js +5 -5
  478. package/dist/mcp/client.js +91 -90
  479. package/dist/mcp/index.js +108 -107
  480. package/dist/mcp/instructions.js +128 -127
  481. package/dist/mcp/oauth.js +78 -77
  482. package/dist/mcp/stdio.js +90 -89
  483. package/dist/mime.js +1 -1
  484. package/dist/modal/models.js +99 -98
  485. package/dist/model-resolver.js +98 -97
  486. package/dist/model.js +96 -95
  487. package/dist/models-dev.js +107 -106
  488. package/dist/oauth/page.js +1 -1
  489. package/dist/permission/saved.js +82 -81
  490. package/dist/permission/sql.js +5 -5
  491. package/dist/permission.js +111 -110
  492. package/dist/persistent-pty/binary.bun.js +1 -1
  493. package/dist/persistent-pty/daemon.js +1 -1
  494. package/dist/persistent-pty/index.js +88 -87
  495. package/dist/persistent-pty/pty-binding.js +1 -1
  496. package/dist/persistent-pty.js +75 -74
  497. package/dist/plugin/agent.js +104 -103
  498. package/dist/plugin/command.js +101 -100
  499. package/dist/plugin/compaction.js +133 -132
  500. package/dist/plugin/hooks.js +5 -5
  501. package/dist/plugin/host.js +218 -217
  502. package/dist/plugin/identity.js +3 -3
  503. package/dist/plugin/instance.js +1 -1
  504. package/dist/plugin/internal.js +332 -331
  505. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  506. package/dist/plugin/models-dev.js +96 -95
  507. package/dist/plugin/module.js +5 -5
  508. package/dist/plugin/optimize.js +2 -2
  509. package/dist/plugin/plan.js +102 -101
  510. package/dist/plugin/promise.js +1 -1
  511. package/dist/plugin/provider/amazon-bedrock.js +90 -89
  512. package/dist/plugin/provider/azure.js +122 -121
  513. package/dist/plugin/provider/cerebras.js +1 -1
  514. package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -120
  515. package/dist/plugin/provider/cloudflare-workers-ai.js +121 -120
  516. package/dist/plugin/provider/cohere.js +2 -2
  517. package/dist/plugin/provider/configured.js +119 -118
  518. package/dist/plugin/provider/digitalocean.js +93 -92
  519. package/dist/plugin/provider/dynamic.js +2 -2
  520. package/dist/plugin/provider/factory.js +1 -1
  521. package/dist/plugin/provider/gateway.js +2 -2
  522. package/dist/plugin/provider/github-copilot.js +93 -92
  523. package/dist/plugin/provider/gitlab.js +91 -90
  524. package/dist/plugin/provider/google-vertex.js +90 -89
  525. package/dist/plugin/provider/kilo.js +1 -1
  526. package/dist/plugin/provider/llmgateway.js +77 -76
  527. package/dist/plugin/provider/lmstudio.js +122 -121
  528. package/dist/plugin/provider/modal.js +92 -91
  529. package/dist/plugin/provider/nvidia.js +1 -1
  530. package/dist/plugin/provider/ollama.js +122 -121
  531. package/dist/plugin/provider/openai.js +92 -91
  532. package/dist/plugin/provider/opencode.js +94 -93
  533. package/dist/plugin/provider/openrouter.js +91 -90
  534. package/dist/plugin/provider/perplexity.js +2 -2
  535. package/dist/plugin/provider/poe.js +78 -77
  536. package/dist/plugin/provider/prompt-cache-key.js +90 -89
  537. package/dist/plugin/provider/sap-ai-core.js +91 -90
  538. package/dist/plugin/provider/sdk-factory.js +1 -1
  539. package/dist/plugin/provider/snowflake-cortex.js +122 -121
  540. package/dist/plugin/provider/venice.js +2 -2
  541. package/dist/plugin/provider/vercel.js +90 -89
  542. package/dist/plugin/provider/vllm.js +120 -119
  543. package/dist/plugin/provider/xai.js +91 -90
  544. package/dist/plugin/provider/zenmux.js +1 -1
  545. package/dist/plugin/provider.js +160 -159
  546. package/dist/plugin/sdk.js +76 -75
  547. package/dist/plugin/service.js +1 -1
  548. package/dist/plugin/skill.js +141 -140
  549. package/dist/plugin/source-directory.js +1 -1
  550. package/dist/plugin/supervisor.js +349 -348
  551. package/dist/plugin/tool-input-repair.js +4 -4
  552. package/dist/plugin/update.js +6 -6
  553. package/dist/plugin/vcs/git.js +86 -85
  554. package/dist/plugin/vcs/hg.js +86 -85
  555. package/dist/plugin/warming.js +121 -120
  556. package/dist/plugin/websearch/exa.js +7 -7
  557. package/dist/plugin/websearch/firecrawl.js +6 -6
  558. package/dist/plugin/websearch/index.js +9 -9
  559. package/dist/plugin/websearch/mcp.js +6 -6
  560. package/dist/plugin/websearch/parallel.js +8 -8
  561. package/dist/plugin/websearch/tavily.js +6 -6
  562. package/dist/plugin/websearch/tinyfish.js +8 -8
  563. package/dist/plugin.js +227 -226
  564. package/dist/project/schema.js +8 -8
  565. package/dist/project/sql.js +4 -4
  566. package/dist/project.js +90 -89
  567. package/dist/provider.js +95 -94
  568. package/dist/pty/protocol.js +1 -1
  569. package/dist/pty/schema.js +3 -3
  570. package/dist/pty/ticket.js +1 -1
  571. package/dist/pty.js +98 -97
  572. package/dist/reference/instructions.js +89 -88
  573. package/dist/reference.js +91 -90
  574. package/dist/repository-cache.js +81 -80
  575. package/dist/repository.js +1 -1
  576. package/dist/ripgrep/binary.js +2 -2
  577. package/dist/ripgrep.js +95 -94
  578. package/dist/rpc.js +86 -85
  579. package/dist/schema.js +1 -1
  580. package/dist/session/command.js +74 -73
  581. package/dist/session/compaction.js +132 -131
  582. package/dist/session/context.js +150 -149
  583. package/dist/session/diff.js +88 -87
  584. package/dist/session/environment.js +5 -5
  585. package/dist/session/error.js +5 -5
  586. package/dist/session/event.js +1 -1
  587. package/dist/session/execution/restart.js +224 -223
  588. package/dist/session/execution.js +126 -125
  589. package/dist/session/generate.js +153 -152
  590. package/dist/session/history.js +15 -15
  591. package/dist/session/inbox.js +86 -85
  592. package/dist/session/info.js +3 -3
  593. package/dist/session/instruction-entry.js +77 -76
  594. package/dist/session/instruction-state.js +8 -8
  595. package/dist/session/instructions.js +97 -96
  596. package/dist/session/message-updater.js +4 -4
  597. package/dist/session/message.js +1 -1
  598. package/dist/session/model-request.js +119 -118
  599. package/dist/session/model-transport.js +9 -9
  600. package/dist/session/move.js +130 -129
  601. package/dist/session/projector.js +86 -85
  602. package/dist/session/prompt.js +105 -104
  603. package/dist/session/provider-context.js +3 -3
  604. package/dist/session/revert.js +90 -89
  605. package/dist/session/run-coordinator.js +1 -1
  606. package/dist/session/runner/index.js +3 -3
  607. package/dist/session/runner/llm.js +229 -228
  608. package/dist/session/runner/max-steps.js +1 -1
  609. package/dist/session/runner/model.js +98 -97
  610. package/dist/session/runner/publish-llm-event.js +3 -3
  611. package/dist/session/runner/retry.js +112 -111
  612. package/dist/session/runner/step.js +124 -123
  613. package/dist/session/runner/to-llm-message.js +2 -2
  614. package/dist/session/schema.js +5 -5
  615. package/dist/session/session.js +172 -171
  616. package/dist/session/shell.js +138 -137
  617. package/dist/session/skill.js +103 -102
  618. package/dist/session/sql.js +5 -5
  619. package/dist/session/stats.js +73 -72
  620. package/dist/session/store.js +87 -86
  621. package/dist/session/subagent-completion.js +1 -1
  622. package/dist/session/subagent-job.js +208 -207
  623. package/dist/session/system-prompt.js +3 -3
  624. package/dist/session/title.js +154 -153
  625. package/dist/session/to-session-error.js +111 -110
  626. package/dist/session/transfer.js +220 -219
  627. package/dist/session/usage.js +1 -1
  628. package/dist/session.js +214 -213
  629. package/dist/shell/parse.js +6 -6
  630. package/dist/shell/result.js +1 -1
  631. package/dist/shell/scan.js +1 -1
  632. package/dist/shell/select.js +13 -13
  633. package/dist/shell.js +138 -137
  634. package/dist/skill/discovery.js +6 -6
  635. package/dist/skill/instructions.js +105 -104
  636. package/dist/skill.js +110 -109
  637. package/dist/snapshot.js +91 -90
  638. package/dist/state.js +1 -1
  639. package/dist/tool/html-markdown.js +1 -1
  640. package/dist/tool/http-body.js +1 -1
  641. package/dist/tool/mcp.js +125 -124
  642. package/dist/tool/plugin/edit.js +120 -119
  643. package/dist/tool/plugin/file-diff.js +1 -1
  644. package/dist/tool/plugin/glob.js +120 -119
  645. package/dist/tool/plugin/grep.js +124 -123
  646. package/dist/tool/plugin/opencode.js +3 -3
  647. package/dist/tool/plugin/patch.js +122 -121
  648. package/dist/tool/plugin/question.js +101 -100
  649. package/dist/tool/plugin/read.js +125 -124
  650. package/dist/tool/plugin/shell.js +215 -214
  651. package/dist/tool/plugin/skill.js +113 -112
  652. package/dist/tool/plugin/subagent.js +219 -218
  653. package/dist/tool/plugin/webfetch.js +112 -111
  654. package/dist/tool/plugin/websearch.js +110 -109
  655. package/dist/tool/plugin/write.js +122 -121
  656. package/dist/tool/read-filesystem.js +100 -99
  657. package/dist/tool/runtime.js +1 -1
  658. package/dist/tool-output.js +8 -8
  659. package/dist/tool.js +10 -10
  660. package/dist/types/database/migration/20260923013825_project_time_active.d.ts +3 -0
  661. package/dist/types/project/schema.d.ts +5 -0
  662. package/dist/types/project/sql.d.ts +16 -0
  663. package/dist/types/project.d.ts +3 -0
  664. package/dist/util/error-summary.js +1 -1
  665. package/dist/util/error.js +1 -1
  666. package/dist/util/git-executable.js +2 -2
  667. package/dist/util/iife.js +1 -1
  668. package/dist/util/lazy.js +1 -1
  669. package/dist/util/slug.js +1 -1
  670. package/dist/util/token.js +1 -1
  671. package/dist/util/which.js +1 -1
  672. package/dist/util/wildcard.js +1 -1
  673. package/dist/v1/config/agent.js +7 -7
  674. package/dist/v1/config/attachment.js +4 -4
  675. package/dist/v1/config/command.js +3 -3
  676. package/dist/v1/config/config.js +16 -16
  677. package/dist/v1/config/error.js +4 -4
  678. package/dist/v1/config/formatter.js +5 -5
  679. package/dist/v1/config/layout.js +1 -1
  680. package/dist/v1/config/lsp.js +5 -5
  681. package/dist/v1/config/mcp.js +4 -4
  682. package/dist/v1/config/migrate.js +92 -91
  683. package/dist/v1/config/permission.js +7 -7
  684. package/dist/v1/config/plugin.js +3 -3
  685. package/dist/v1/config/provider-options.js +1 -1
  686. package/dist/v1/config/provider.js +4 -4
  687. package/dist/v1/config/server.js +2 -2
  688. package/dist/v1/config/skills.js +3 -3
  689. package/dist/v1/permission.js +1 -1
  690. package/dist/variant.js +91 -90
  691. package/dist/vcs/patch.js +1 -1
  692. package/dist/vcs.js +89 -88
  693. package/dist/websearch.js +78 -77
  694. package/dist/wellknown/plugin.js +76 -75
  695. package/dist/wellknown.js +81 -80
  696. package/dist/workspace/driver.js +5 -5
  697. package/dist/workspace/sql.js +1 -1
  698. package/dist/workspace.js +80 -79
  699. package/dist/worktree/directory.js +2 -2
  700. package/dist/worktree/git.js +8 -8
  701. package/dist/worktree/sql.js +5 -5
  702. package/dist/worktree/strategies.js +89 -88
  703. package/dist/worktree.js +96 -95
  704. package/package.json +8 -8
  705. package/dist/chunks/kv-0mesazry.js +0 -4
  706. package/dist/chunks/kv-53x5pmg1.js +0 -26
  707. package/dist/chunks/kv-mkcktwrm.js +0 -252
  708. package/dist/chunks/kv-vkcvdpjh.js +0 -65
  709. /package/dist/chunks/{kv-0qkdqm5v.js → variant-0qkdqm5v.js} +0 -0
  710. /package/dist/chunks/{kv-0zkw76rk.js → variant-0zkw76rk.js} +0 -0
  711. /package/dist/chunks/{kv-17cy0kzp.js → variant-17cy0kzp.js} +0 -0
  712. /package/dist/chunks/{kv-1cnp2v09.js → variant-1cnp2v09.js} +0 -0
  713. /package/dist/chunks/{kv-1kg9ymc8.js → variant-1kg9ymc8.js} +0 -0
  714. /package/dist/chunks/{kv-24dcb14g.js → variant-24dcb14g.js} +0 -0
  715. /package/dist/chunks/{kv-2710q6r3.js → variant-2710q6r3.js} +0 -0
  716. /package/dist/chunks/{kv-2axfhc9x.js → variant-2axfhc9x.js} +0 -0
  717. /package/dist/chunks/{kv-2c3vjs8z.js → variant-2c3vjs8z.js} +0 -0
  718. /package/dist/chunks/{kv-359p4xyc.js → variant-359p4xyc.js} +0 -0
  719. /package/dist/chunks/{kv-3asan66x.js → variant-3asan66x.js} +0 -0
  720. /package/dist/chunks/{kv-3v8g72cx.js → variant-3v8g72cx.js} +0 -0
  721. /package/dist/chunks/{kv-3w5fmr99.js → variant-3w5fmr99.js} +0 -0
  722. /package/dist/chunks/{kv-3wcehsnq.js → variant-3wcehsnq.js} +0 -0
  723. /package/dist/chunks/{kv-43n2bw4t.js → variant-43n2bw4t.js} +0 -0
  724. /package/dist/chunks/{kv-4knz6hnm.js → variant-4knz6hnm.js} +0 -0
  725. /package/dist/chunks/{kv-4vcrnpx2.js → variant-4vcrnpx2.js} +0 -0
  726. /package/dist/chunks/{kv-4y7fprxs.js → variant-4y7fprxs.js} +0 -0
  727. /package/dist/chunks/{kv-53557ph1.js → variant-53557ph1.js} +0 -0
  728. /package/dist/chunks/{kv-550bvhaj.js → variant-550bvhaj.js} +0 -0
  729. /package/dist/chunks/{kv-6prwharc.js → variant-6prwharc.js} +0 -0
  730. /package/dist/chunks/{kv-7akdwqpd.js → variant-7akdwqpd.js} +0 -0
  731. /package/dist/chunks/{kv-7m9af43g.js → variant-7m9af43g.js} +0 -0
  732. /package/dist/chunks/{kv-822emrt2.js → variant-822emrt2.js} +0 -0
  733. /package/dist/chunks/{kv-88xbtdfr.js → variant-88xbtdfr.js} +0 -0
  734. /package/dist/chunks/{kv-8n3pysct.js → variant-8n3pysct.js} +0 -0
  735. /package/dist/chunks/{kv-922hggd3.js → variant-922hggd3.js} +0 -0
  736. /package/dist/chunks/{kv-9a4afbnw.js → variant-9a4afbnw.js} +0 -0
  737. /package/dist/chunks/{kv-9rqn6x4v.js → variant-9rqn6x4v.js} +0 -0
  738. /package/dist/chunks/{kv-a6k6eb26.js → variant-a6k6eb26.js} +0 -0
  739. /package/dist/chunks/{kv-af5trqkr.js → variant-af5trqkr.js} +0 -0
  740. /package/dist/chunks/{kv-afrmfg78.js → variant-afrmfg78.js} +0 -0
  741. /package/dist/chunks/{kv-aqzs7mqg.js → variant-aqzs7mqg.js} +0 -0
  742. /package/dist/chunks/{kv-atq7p7m5.js → variant-atq7p7m5.js} +0 -0
  743. /package/dist/chunks/{kv-bkyjaxrp.js → variant-bkyjaxrp.js} +0 -0
  744. /package/dist/chunks/{kv-bmr6ed5q.js → variant-bmr6ed5q.js} +0 -0
  745. /package/dist/chunks/{kv-cf4snx6d.js → variant-cf4snx6d.js} +0 -0
  746. /package/dist/chunks/{kv-cvy3z8tj.js → variant-cvy3z8tj.js} +0 -0
  747. /package/dist/chunks/{kv-d9fn303g.js → variant-d9fn303g.js} +0 -0
  748. /package/dist/chunks/{kv-d9jj8t3e.js → variant-d9jj8t3e.js} +0 -0
  749. /package/dist/chunks/{kv-dajrwvna.js → variant-dajrwvna.js} +0 -0
  750. /package/dist/chunks/{kv-dap0rakb.js → variant-dap0rakb.js} +0 -0
  751. /package/dist/chunks/{kv-df08tz66.js → variant-df08tz66.js} +0 -0
  752. /package/dist/chunks/{kv-dy18nga0.js → variant-dy18nga0.js} +0 -0
  753. /package/dist/chunks/{kv-e5kj55wp.js → variant-e5kj55wp.js} +0 -0
  754. /package/dist/chunks/{kv-e73j6tqm.js → variant-e73j6tqm.js} +0 -0
  755. /package/dist/chunks/{kv-ec1grn59.js → variant-ec1grn59.js} +0 -0
  756. /package/dist/chunks/{kv-eh3zwz77.js → variant-eh3zwz77.js} +0 -0
  757. /package/dist/chunks/{kv-emrn6kk6.js → variant-emrn6kk6.js} +0 -0
  758. /package/dist/chunks/{kv-f0mxakyp.js → variant-f0mxakyp.js} +0 -0
  759. /package/dist/chunks/{kv-f6n9ztr4.js → variant-f6n9ztr4.js} +0 -0
  760. /package/dist/chunks/{kv-faypxj3z.js → variant-faypxj3z.js} +0 -0
  761. /package/dist/chunks/{kv-fd410y7t.js → variant-fd410y7t.js} +0 -0
  762. /package/dist/chunks/{kv-fxgpk5d8.js → variant-fxgpk5d8.js} +0 -0
  763. /package/dist/chunks/{kv-g4wezp1m.js → variant-g4wezp1m.js} +0 -0
  764. /package/dist/chunks/{kv-g86h250q.js → variant-g86h250q.js} +0 -0
  765. /package/dist/chunks/{kv-gebd4c9n.js → variant-gebd4c9n.js} +0 -0
  766. /package/dist/chunks/{kv-gftt206x.js → variant-gftt206x.js} +0 -0
  767. /package/dist/chunks/{kv-hjbc5kem.js → variant-hjbc5kem.js} +0 -0
  768. /package/dist/chunks/{kv-hk9envan.js → variant-hk9envan.js} +0 -0
  769. /package/dist/chunks/{kv-j2ntwpah.js → variant-j2ntwpah.js} +0 -0
  770. /package/dist/chunks/{kv-j5zkgpj8.js → variant-j5zkgpj8.js} +0 -0
  771. /package/dist/chunks/{kv-jjkms2e6.js → variant-jjkms2e6.js} +0 -0
  772. /package/dist/chunks/{kv-jr7sbwjy.js → variant-jr7sbwjy.js} +0 -0
  773. /package/dist/chunks/{kv-jwfs4k6c.js → variant-jwfs4k6c.js} +0 -0
  774. /package/dist/chunks/{kv-jzg6c2d5.js → variant-jzg6c2d5.js} +0 -0
  775. /package/dist/chunks/{kv-mp448xyj.js → variant-mp448xyj.js} +0 -0
  776. /package/dist/chunks/{kv-msx8hqn2.js → variant-msx8hqn2.js} +0 -0
  777. /package/dist/chunks/{kv-n05xt0ee.js → variant-n05xt0ee.js} +0 -0
  778. /package/dist/chunks/{kv-n3j8tn72.js → variant-n3j8tn72.js} +0 -0
  779. /package/dist/chunks/{kv-njntx4h6.js → variant-njntx4h6.js} +0 -0
  780. /package/dist/chunks/{kv-q3sfg36h.js → variant-q3sfg36h.js} +0 -0
  781. /package/dist/chunks/{kv-q74kybfr.js → variant-q74kybfr.js} +0 -0
  782. /package/dist/chunks/{kv-qaymkmh1.js → variant-qaymkmh1.js} +0 -0
  783. /package/dist/chunks/{kv-qb87gjwd.js → variant-qb87gjwd.js} +0 -0
  784. /package/dist/chunks/{kv-qfa1cgps.js → variant-qfa1cgps.js} +0 -0
  785. /package/dist/chunks/{kv-qg3g05ea.js → variant-qg3g05ea.js} +0 -0
  786. /package/dist/chunks/{kv-qrg20bc0.js → variant-qrg20bc0.js} +0 -0
  787. /package/dist/chunks/{kv-rcb2kzg1.js → variant-rcb2kzg1.js} +0 -0
  788. /package/dist/chunks/{kv-sdp7kfr6.js → variant-sdp7kfr6.js} +0 -0
  789. /package/dist/chunks/{kv-sk3qaz4a.js → variant-sk3qaz4a.js} +0 -0
  790. /package/dist/chunks/{kv-ssg3fenm.js → variant-ssg3fenm.js} +0 -0
  791. /package/dist/chunks/{kv-w803qqfp.js → variant-w803qqfp.js} +0 -0
  792. /package/dist/chunks/{kv-wc3fc9cn.js → variant-wc3fc9cn.js} +0 -0
  793. /package/dist/chunks/{kv-wer8tq1h.js → variant-wer8tq1h.js} +0 -0
  794. /package/dist/chunks/{kv-wtztk69x.js → variant-wtztk69x.js} +0 -0
  795. /package/dist/chunks/{kv-x0ckcb58.js → variant-x0ckcb58.js} +0 -0
  796. /package/dist/chunks/{kv-x61499pn.js → variant-x61499pn.js} +0 -0
  797. /package/dist/chunks/{kv-y44na4kk.js → variant-y44na4kk.js} +0 -0
  798. /package/dist/chunks/{kv-y8cydn3q.js → variant-y8cydn3q.js} +0 -0
  799. /package/dist/chunks/{kv-y8f7s663.js → variant-y8f7s663.js} +0 -0
  800. /package/dist/chunks/{kv-ygaqb7jw.js → variant-ygaqb7jw.js} +0 -0
  801. /package/dist/chunks/{kv-ym463w8f.js → variant-ym463w8f.js} +0 -0
  802. /package/dist/chunks/{kv-z9919s4g.js → variant-z9919s4g.js} +0 -0
@@ -1,48 +1,48 @@
1
1
  import {
2
2
  makeUnsafe2
3
- } from "./kv-y71avatq.js";
3
+ } from "./variant-y71avatq.js";
4
4
  import {
5
- Service82,
6
- node86
7
- } from "./kv-wzr2e2gd.js";
5
+ Service83,
6
+ node87
7
+ } from "./variant-0f3fkebw.js";
8
8
  import {
9
- Event19,
10
- Service78,
11
- node82
12
- } from "./kv-hf4dxjes.js";
9
+ Event20,
10
+ Service81,
11
+ node85
12
+ } from "./variant-apg24jar.js";
13
13
  import {
14
- Service80,
15
- node84
16
- } from "./kv-pckzp1dd.js";
14
+ Service75,
15
+ node79
16
+ } from "./variant-ehd2w0yp.js";
17
17
  import {
18
- Service57,
19
- node60
20
- } from "./kv-d5g8gbry.js";
18
+ Service62,
19
+ node65
20
+ } from "./variant-4n6z1r8s.js";
21
21
  import {
22
- ID16,
23
- Service79,
24
- node83
25
- } from "./kv-nby32ptr.js";
22
+ ID17,
23
+ Service80,
24
+ node84
25
+ } from "./variant-nydghdxw.js";
26
26
  import {
27
27
  reconcile2,
28
28
  create3
29
- } from "./kv-rdw6cm16.js";
29
+ } from "./variant-rdw6cm16.js";
30
30
  import {
31
- ID14,
31
+ ID16,
32
32
  MethodID2,
33
- Service77,
34
- node81
35
- } from "./kv-48jv4090.js";
33
+ Service79,
34
+ node83
35
+ } from "./variant-kqbmdx55.js";
36
36
  import {
37
37
  __export
38
- } from "./kv-9rqn6x4v.js";
38
+ } from "./variant-9rqn6x4v.js";
39
39
 
40
40
  // src/mcp/index.ts
41
41
  var exports_mcp4 = {};
42
42
  __export(exports_mcp4, {
43
43
  Mcp: () => exports_mcp4,
44
- NotFoundError: () => NotFoundError4,
45
- Options: () => Options4,
44
+ NotFoundError: () => NotFoundError5,
45
+ Options: () => Options5,
46
46
  PromptsChanged: () => PromptsChanged2,
47
47
  Resource: () => Resource2,
48
48
  ResourceCatalog: () => ResourceCatalog2,
@@ -50,12 +50,12 @@ __export(exports_mcp4, {
50
50
  ResourceContentPart: () => ResourceContentPart2,
51
51
  ResourceTemplate: () => ResourceTemplate2,
52
52
  ServerName: () => ServerName2,
53
- Service: () => Service36,
53
+ Service: () => Service35,
54
54
  Status: () => Status2,
55
55
  ToolCallError: () => ToolCallError2,
56
- configured: () => configured4,
57
- layer: () => layer12,
58
- node: () => node40
56
+ configured: () => configured5,
57
+ layer: () => layer14,
58
+ node: () => node38
59
59
  });
60
60
  import { Mcp } from "@opencode/schema/mcp";
61
61
  import { McpEvent } from "@opencode/schema/mcp-event";
@@ -74,7 +74,7 @@ var ResourceCatalog2 = Mcp.ResourceCatalog;
74
74
  var ResourceContentPart2 = Mcp.ResourceContentPart;
75
75
  var ResourceContent2 = Mcp.ResourceContent;
76
76
 
77
- class NotFoundError4 extends Schema.TaggedError()("MCP.NotFoundError", {
77
+ class NotFoundError5 extends Schema.TaggedError()("MCP.NotFoundError", {
78
78
  server: ServerName2
79
79
  }) {
80
80
  get message() {
@@ -93,21 +93,21 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
93
93
  var endpointLoads = makeUnsafe2();
94
94
  var cloneConfig = (config) => structuredClone(config);
95
95
 
96
- class Service36 extends Context.Service()("@opencode/MCP") {
96
+ class Service35 extends Context.Service()("@opencode/MCP") {
97
97
  }
98
- var Options4 = Schema.Struct({
98
+ var Options5 = Schema.Struct({
99
99
  clientInfo: Schema.optional(Schema.Struct({
100
100
  name: Schema.String,
101
101
  version: Schema.String
102
102
  }))
103
103
  });
104
- var layer12 = (options) => Layer.effect(Service36, Effect.gen(function* () {
105
- const location = yield* Service80;
106
- const environment = yield* Service57;
107
- const bus = yield* Service82;
108
- const forms = yield* Service79;
109
- const integration = yield* Service77;
110
- const credentials = yield* Service78;
104
+ var layer14 = (options) => Layer.effect(Service35, Effect.gen(function* () {
105
+ const location = yield* Service75;
106
+ const environment = yield* Service62;
107
+ const bus = yield* Service83;
108
+ const forms = yield* Service80;
109
+ const integration = yield* Service79;
110
+ const credentials = yield* Service81;
111
111
  const root = yield* Effect.scope;
112
112
  const fork = yield* FiberSet.makeRuntime();
113
113
  const entries = new Map;
@@ -119,7 +119,7 @@ var layer12 = (options) => Layer.effect(Service36, Effect.gen(function* () {
119
119
  return;
120
120
  const remote = entry.config;
121
121
  const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
122
- const integrationID = ID14.make(suffix);
122
+ const integrationID = ID16.make(suffix);
123
123
  entry.integrationID = integrationID;
124
124
  owned.add(integrationID);
125
125
  const methodID = MethodID2.make(suffix);
@@ -135,7 +135,7 @@ var layer12 = (options) => Layer.effect(Service36, Effect.gen(function* () {
135
135
  method: { id: methodID, type: "oauth", label: name },
136
136
  authorize: () => Effect.gen(function* () {
137
137
  const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
138
- return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service78, credentials));
138
+ return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service81, credentials));
139
139
  })
140
140
  });
141
141
  }).pipe(Scope.provide(scope));
@@ -144,19 +144,19 @@ var layer12 = (options) => Layer.effect(Service36, Effect.gen(function* () {
144
144
  const name = ServerName2.make(server);
145
145
  const entry = entries.get(name);
146
146
  if (!entry)
147
- return yield* new NotFoundError4({ server: name });
147
+ return yield* new NotFoundError5({ server: name });
148
148
  return { name, entry };
149
149
  });
150
150
  const connectProvider = Effect.fnUntraced(function* (entry) {
151
151
  if (entry.config.type !== "remote" || !entry.integrationID)
152
152
  return;
153
153
  const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
154
- return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service78, credentials));
154
+ return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service81, credentials));
155
155
  });
156
156
  const elicitation = {
157
157
  create: (input) => Effect.gen(function* () {
158
158
  if (input.params.mode === "url") {
159
- const formID = ID16.create();
159
+ const formID = ID17.create();
160
160
  const elicitationID = input.params.elicitationId;
161
161
  const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
162
162
  if (key)
@@ -240,7 +240,7 @@ var layer12 = (options) => Layer.effect(Service36, Effect.gen(function* () {
240
240
  entry.scope = scope;
241
241
  const authProvider = yield* connectProvider(entry);
242
242
  const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
243
- const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service57, environment), Scope.provide(scope));
243
+ const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service62, environment), Scope.provide(scope));
244
244
  const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
245
245
  if (Exit.isSuccess(result)) {
246
246
  entry.client = result.value.connection;
@@ -365,7 +365,7 @@ var layer12 = (options) => Layer.effect(Service36, Effect.gen(function* () {
365
365
  yield* startServer(name, entry);
366
366
  }).pipe(locks.withLock(name));
367
367
  });
368
- fork(bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
368
+ fork(bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
369
369
  const state = create3({
370
370
  name: "mcp",
371
371
  initial: () => ({
@@ -391,7 +391,7 @@ var layer12 = (options) => Layer.effect(Service36, Effect.gen(function* () {
391
391
  }),
392
392
  notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
393
393
  });
394
- return Service36.of({
394
+ return Service35.of({
395
395
  transform: state.transform,
396
396
  reload: state.reload,
397
397
  servers: Effect.fn("MCP.servers")(function* () {
@@ -510,14 +510,14 @@ var layer12 = (options) => Layer.effect(Service36, Effect.gen(function* () {
510
510
  })
511
511
  });
512
512
  }));
513
- function configured4(options) {
513
+ function configured5(options) {
514
514
  return makeLocationNode({
515
- service: Service36,
516
- layer: layer12(options),
517
- deps: [node84, node60, node86, node83, node81, node82]
515
+ service: Service35,
516
+ layer: layer14(options),
517
+ deps: [node79, node65, node87, node84, node83, node85]
518
518
  });
519
519
  }
520
- var node40 = configured4();
520
+ var node38 = configured5();
521
521
  function toElicitationField(key, property, required) {
522
522
  const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
523
523
  const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
@@ -568,4 +568,4 @@ function toElicitationField(key, property, required) {
568
568
  }
569
569
  }
570
570
 
571
- export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2, NotFoundError4, ToolCallError2, Service36, Options4, layer12, configured4, node40, exports_mcp4 };
571
+ export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2, NotFoundError5, ToolCallError2, Service35, Options5, layer14, configured5, node38, exports_mcp4 };
@@ -1,68 +1,68 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./kv-922hggd3.js";
3
+ } from "./variant-922hggd3.js";
4
4
  import {
5
5
  Service84,
6
6
  node88
7
- } from "./kv-eqk40qcs.js";
8
- import {
9
- Service82,
10
- node86
11
- } from "./kv-wzr2e2gd.js";
7
+ } from "./variant-wtm3ybk1.js";
12
8
  import {
13
9
  Service83,
14
10
  node87
15
- } from "./kv-6wr1j3sy.js";
11
+ } from "./variant-0f3fkebw.js";
12
+ import {
13
+ Service77,
14
+ node81
15
+ } from "./variant-0z6w7vfv.js";
16
16
  import {
17
- ID18,
17
+ ID15,
18
18
  Current3,
19
- Info34,
19
+ Info31,
20
20
  UpdateInput4,
21
- Event21,
21
+ Event17,
22
22
  Vcs3
23
- } from "./kv-57ez7d0k.js";
23
+ } from "./variant-pef6k0gg.js";
24
24
  import {
25
25
  ProjectTable2,
26
26
  upsertProject2
27
- } from "./kv-8p4f9s12.js";
27
+ } from "./variant-psazpmmj.js";
28
28
  import {
29
29
  WorktreeTable2
30
- } from "./kv-cfpkc3c9.js";
30
+ } from "./variant-gfvb90ym.js";
31
31
  import {
32
32
  __export
33
- } from "./kv-9rqn6x4v.js";
33
+ } from "./variant-9rqn6x4v.js";
34
34
 
35
35
  // src/project.ts
36
36
  var exports_project = {};
37
37
  __export(exports_project, {
38
38
  Current: () => Current2,
39
- ID: () => ID17,
40
- Info: () => Info33,
41
- NotFoundError: () => NotFoundError11,
39
+ ID: () => ID14,
40
+ Info: () => Info30,
41
+ NotFoundError: () => NotFoundError10,
42
42
  Project: () => exports_project,
43
- Service: () => Service81,
43
+ Service: () => Service76,
44
44
  UpdateInput: () => UpdateInput3,
45
45
  Vcs: () => Vcs2,
46
- node: () => node85,
46
+ node: () => node80,
47
47
  root: () => root2
48
48
  });
49
49
  import { Context, Effect, Layer, Schema } from "effect";
50
50
  import { ChildProcess } from "effect/unstable/process";
51
- import { and, asc, desc, eq, gte, isNull, lte } from "drizzle-orm";
51
+ import { and, asc, desc, eq, gte, isNull, lte, sql } from "drizzle-orm";
52
52
  import path from "path";
53
53
  import { Worktree } from "@opencode/schema/worktree";
54
54
  import { FSUtil } from "@opencode/util/fs-util";
55
55
  import { AppProcess } from "@opencode/util/process";
56
56
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
57
57
  import { Hash } from "@opencode/util/hash";
58
- var ID17 = ID18;
58
+ var ID14 = ID15;
59
59
  var Vcs2 = Vcs3;
60
60
  var Current2 = Current3;
61
- var Info33 = Info34;
61
+ var Info30 = Info31;
62
62
  var UpdateInput3 = UpdateInput4;
63
63
 
64
- class NotFoundError11 extends Schema.TaggedError()("Project.NotFoundError", {
65
- projectID: ID17
64
+ class NotFoundError10 extends Schema.TaggedError()("Project.NotFoundError", {
65
+ projectID: ID14
66
66
  }) {
67
67
  }
68
68
  var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
@@ -70,8 +70,9 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
70
70
  return;
71
71
  }));
72
72
  });
73
+ var ACTIVATE_INTERVAL = 60000;
73
74
 
74
- class Service81 extends Context.Service()("@opencode/Project") {
75
+ class Service76 extends Context.Service()("@opencode/Project") {
75
76
  }
76
77
  function fromRow(row) {
77
78
  const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
@@ -88,16 +89,17 @@ function fromRow(row) {
88
89
  commands: row.commands ?? undefined,
89
90
  time: {
90
91
  created: row.time_created,
91
- updated: row.time_updated
92
+ updated: row.time_updated,
93
+ active: row.time_active
92
94
  },
93
95
  sandboxes: row.sandboxes
94
96
  };
95
97
  }
96
- var layer = Layer.effect(Service81, Effect.gen(function* () {
98
+ var layer = Layer.effect(Service76, Effect.gen(function* () {
97
99
  const fs = yield* FSUtil.Service;
98
- const git = yield* Service83;
100
+ const git = yield* Service77;
99
101
  const proc = yield* AppProcess.Service;
100
- const bus = yield* Service82;
102
+ const bus = yield* Service83;
101
103
  const db = (yield* Service84).db;
102
104
  const announcing = new Set;
103
105
  const persist = Effect.fnUntraced(function* (project) {
@@ -106,7 +108,7 @@ var layer = Layer.effect(Service81, Effect.gen(function* () {
106
108
  if (previous && previous.canonical !== project.canonical && !(yield* fs.exists(previous.canonical).pipe(Effect.orElseSucceed(() => true)))) {
107
109
  const row = yield* db.update(ProjectTable2).set({ worktree: project.canonical }).where(eq(ProjectTable2.id, project.id)).returning().get().pipe(Effect.orDie);
108
110
  if (row)
109
- yield* bus.publish(Event21.Updated, fromRow(row));
111
+ yield* bus.publish(Event17.Updated, fromRow(row));
110
112
  }
111
113
  if (!project.vcs)
112
114
  return project;
@@ -143,7 +145,7 @@ var layer = Layer.effect(Service81, Effect.gen(function* () {
143
145
  yield* bus.publish(Worktree.Event.Resolved, {
144
146
  projectID: item.projectID,
145
147
  directory: item.directory,
146
- previous: project.previous ?? ID17.global,
148
+ previous: project.previous ?? ID14.global,
147
149
  ...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
148
150
  }, {
149
151
  commit: () => db.insert(WorktreeTable2).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
@@ -153,7 +155,7 @@ var layer = Layer.effect(Service81, Effect.gen(function* () {
153
155
  return project;
154
156
  });
155
157
  const list = Effect.fn("Project.list")(function* () {
156
- const rows = yield* db.select().from(ProjectTable2).orderBy(desc(ProjectTable2.time_updated), asc(ProjectTable2.id)).all().pipe(Effect.orDie);
158
+ const rows = yield* db.select().from(ProjectTable2).orderBy(desc(ProjectTable2.time_active), asc(ProjectTable2.id)).all().pipe(Effect.orDie);
157
159
  return rows.map(fromRow);
158
160
  });
159
161
  const update = Effect.fn("Project.update")(function* (input) {
@@ -166,13 +168,23 @@ var layer = Layer.effect(Service81, Effect.gen(function* () {
166
168
  time_updated: Date.now()
167
169
  }).where(eq(ProjectTable2.id, input.projectID)).returning().get().pipe(Effect.orDie);
168
170
  if (!row)
169
- return yield* new NotFoundError11({ projectID: input.projectID });
171
+ return yield* new NotFoundError10({ projectID: input.projectID });
170
172
  const project = fromRow(row);
171
- yield* bus.publish(Event21.Updated, project);
173
+ yield* bus.publish(Event17.Updated, project);
172
174
  return project;
173
175
  });
176
+ const activated = new Map;
177
+ const activate = Effect.fn("Project.activate")(function* (projectID) {
178
+ const now = Date.now();
179
+ if (now - (activated.get(projectID) ?? 0) < ACTIVATE_INTERVAL)
180
+ return;
181
+ activated.set(projectID, now);
182
+ const row = yield* db.update(ProjectTable2).set({ time_active: now, time_updated: sql`${ProjectTable2.time_updated}` }).where(eq(ProjectTable2.id, projectID)).returning().get().pipe(Effect.orDie);
183
+ if (row)
184
+ yield* bus.publish(Event17.Updated, fromRow(row));
185
+ });
174
186
  const cached = Effect.fnUntraced(function* (dir) {
175
- return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID17.make(value) : undefined), Effect.orElseSucceed(() => {
187
+ return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID14.make(value) : undefined), Effect.orElseSucceed(() => {
176
188
  return;
177
189
  }));
178
190
  });
@@ -183,7 +195,7 @@ var layer = Layer.effect(Service81, Effect.gen(function* () {
183
195
  const normalized = url(origin);
184
196
  if (!normalized)
185
197
  return;
186
- return ID17.make(Hash.fast(`git-remote:${normalized}`));
198
+ return ID14.make(Hash.fast(`git-remote:${normalized}`));
187
199
  });
188
200
  function url(input) {
189
201
  const value = input.trim();
@@ -208,7 +220,7 @@ var layer = Layer.effect(Service81, Effect.gen(function* () {
208
220
  }
209
221
  const rootCommit = Effect.fnUntraced(function* (repo) {
210
222
  const root = (yield* git.history.rootCommits(repo))[0];
211
- return root ? ID17.make(root) : undefined;
223
+ return root ? ID14.make(root) : undefined;
212
224
  });
213
225
  const hgRoot = Effect.fnUntraced(function* (worktree) {
214
226
  const result = yield* proc.run(ChildProcess.make("hg", ["log", "-r", "roots(all())", "-T", `{node}
@@ -224,7 +236,7 @@ var layer = Layer.effect(Service81, Effect.gen(function* () {
224
236
  return;
225
237
  const node = result.stdout.toString("utf8").split(`
226
238
  `).map((item) => item.trim()).filter(Boolean).toSorted()[0];
227
- return node ? ID17.make(node) : undefined;
239
+ return node ? ID14.make(node) : undefined;
228
240
  });
229
241
  const hgDiscover = Effect.fnUntraced(function* (dotHg) {
230
242
  const worktree = AbsolutePath2.make(path.dirname(dotHg));
@@ -233,7 +245,7 @@ var layer = Layer.effect(Service81, Effect.gen(function* () {
233
245
  const id = previous ?? (yield* hgRoot(worktree));
234
246
  return {
235
247
  previous,
236
- id: id ?? ID17.global,
248
+ id: id ?? ID14.global,
237
249
  directory: worktree,
238
250
  vcs: { type: "hg", store }
239
251
  };
@@ -250,7 +262,7 @@ var layer = Layer.effect(Service81, Effect.gen(function* () {
250
262
  const canonical = repo.gitDirectory === repo.commonDirectory ? repo.worktree : yield* git.worktree.list(repo).pipe(Effect.map((items) => items.find((item) => item.kind === "main")?.directory ?? repo.worktree), Effect.orElseSucceed(() => repo.worktree));
251
263
  return yield* persist({
252
264
  previous,
253
- id: id ?? ID17.global,
265
+ id: id ?? ID14.global,
254
266
  directory: repo.worktree,
255
267
  canonical,
256
268
  vcs: { type: "git", store: repo.commonDirectory }
@@ -264,18 +276,18 @@ var layer = Layer.effect(Service81, Effect.gen(function* () {
264
276
  });
265
277
  }
266
278
  return yield* persist({
267
- id: ID17.make(Hash.fast(`directory:${directory}`)),
279
+ id: ID14.make(Hash.fast(`directory:${directory}`)),
268
280
  directory,
269
281
  canonical: directory,
270
282
  vcs: undefined
271
283
  });
272
284
  });
273
- return Service81.of({ list, update, resolve });
285
+ return Service76.of({ list, update, activate, resolve });
274
286
  }));
275
- var node85 = makeGlobalNode({
276
- service: Service81,
287
+ var node80 = makeGlobalNode({
288
+ service: Service76,
277
289
  layer,
278
- deps: [node86, node88, FSUtil.node, node87, AppProcess.node]
290
+ deps: [node87, node88, FSUtil.node, node81, AppProcess.node]
279
291
  });
280
292
 
281
- export { ID17, Vcs2, Current2, Info33, UpdateInput3, NotFoundError11, root2, Service81, node85, exports_project };
293
+ export { ID14, Vcs2, Current2, Info30, UpdateInput3, NotFoundError10, root2, Service76, node80, exports_project };
@@ -1,65 +1,65 @@
1
1
  import {
2
2
  Service84,
3
3
  node88
4
- } from "./kv-eqk40qcs.js";
4
+ } from "./variant-wtm3ybk1.js";
5
5
  import {
6
- Service82,
7
- node86
8
- } from "./kv-wzr2e2gd.js";
6
+ Service83,
7
+ node87
8
+ } from "./variant-0f3fkebw.js";
9
9
  import {
10
10
  llmClient2
11
- } from "./kv-5t3nmthw.js";
11
+ } from "./variant-5t3nmthw.js";
12
12
  import {
13
13
  SessionEvent2
14
- } from "./kv-ec1grn59.js";
14
+ } from "./variant-ec1grn59.js";
15
15
  import {
16
16
  provenance2,
17
17
  compatible2,
18
18
  isCheckpoint2,
19
19
  encode2
20
- } from "./kv-ssdqnhy0.js";
20
+ } from "./variant-3g33scay.js";
21
21
  import {
22
- load5
23
- } from "./kv-nyh2ypn1.js";
22
+ load4
23
+ } from "./variant-e37stjd8.js";
24
24
  import {
25
25
  create3
26
- } from "./kv-rdw6cm16.js";
26
+ } from "./variant-rdw6cm16.js";
27
27
  import {
28
28
  toLLMMessages2
29
- } from "./kv-v3sgzvyr.js";
29
+ } from "./variant-vtd2qwnf.js";
30
30
  import {
31
31
  baseTranscript2,
32
32
  unsupportedParts2,
33
33
  boundImages2
34
- } from "./kv-mzd4qxry.js";
34
+ } from "./variant-9jwjh49g.js";
35
35
  import {
36
36
  toSessionError2
37
- } from "./kv-8v6rjhh5.js";
37
+ } from "./variant-g04dwg7s.js";
38
38
  import {
39
39
  policy2,
40
40
  transient2
41
- } from "./kv-yazkjqj6.js";
41
+ } from "./variant-jes8xwtq.js";
42
42
  import {
43
43
  estimate2
44
- } from "./kv-h6vf3j39.js";
44
+ } from "./variant-h6vf3j39.js";
45
45
  import {
46
46
  calculateCost2,
47
47
  record2,
48
48
  add2
49
- } from "./kv-tdstcens.js";
49
+ } from "./variant-tdstcens.js";
50
50
  import {
51
51
  __export
52
- } from "./kv-9rqn6x4v.js";
52
+ } from "./variant-9rqn6x4v.js";
53
53
 
54
54
  // src/session/compaction.ts
55
55
  var exports_compaction3 = {};
56
56
  __export(exports_compaction3, {
57
- Service: () => Service11,
57
+ Service: () => Service12,
58
58
  SessionCompaction: () => exports_compaction3,
59
59
  buildPrompt: () => buildPrompt2,
60
60
  estimateTokens: () => estimateTokens2,
61
61
  layer: () => layer7,
62
- node: () => node13,
62
+ node: () => node14,
63
63
  retainUsers: () => retainUsers2,
64
64
  serializeToolContent: () => serializeToolContent2,
65
65
  truncateToolOutput: () => truncateToolOutput2
@@ -125,7 +125,7 @@ var SUMMARY_HEADINGS = SUMMARY_TEMPLATE.split(`
125
125
  `).filter((line) => line.startsWith("##"));
126
126
  var LEGACY_HEADING = "## Additional Context";
127
127
 
128
- class Service11 extends Context.Service()("@opencode/SessionCompaction") {
128
+ class Service12 extends Context.Service()("@opencode/SessionCompaction") {
129
129
  }
130
130
  var hasInputUsage = (message) => message.type === "assistant" && !message.error && message.tokens !== undefined && message.tokens.input + message.tokens.cache.read + message.tokens.cache.write > 0;
131
131
  var estimateTokens2 = (input) => {
@@ -298,8 +298,8 @@ var buildPrompt2 = (update, legacy = false) => {
298
298
  };
299
299
  var hasSummarySection = (summary) => summary.split(`
300
300
  `).some((line) => SUMMARY_HEADINGS.includes(line.trim()));
301
- var layer7 = Layer.effect(Service11, Effect.gen(function* () {
302
- const bus = yield* Service82;
301
+ var layer7 = Layer.effect(Service12, Effect.gen(function* () {
302
+ const bus = yield* Service83;
303
303
  const llm = yield* LLMClient.Service;
304
304
  const db = (yield* Service84).db;
305
305
  const state = create3({
@@ -377,7 +377,7 @@ var layer7 = Layer.effect(Service11, Effect.gen(function* () {
377
377
  webSocket
378
378
  });
379
379
  };
380
- const original = (sessionID) => load5(db, sessionID, "local").pipe(Effect.orDie);
380
+ const original = (sessionID) => load4(db, sessionID, "local").pipe(Effect.orDie);
381
381
  const recoverLocally = (input) => original(input.context.session.id).pipe(Effect.flatMap((messages) => execute({ ...input, context: { ...input.context, messages } })));
382
382
  const executeProvider = Effect.fn("SessionCompaction.executeProvider")(function* (input) {
383
383
  const context = input.context;
@@ -606,7 +606,7 @@ var layer7 = Layer.effect(Service11, Effect.gen(function* () {
606
606
  }
607
607
  }));
608
608
  });
609
- return Service11.of({
609
+ return Service12.of({
610
610
  transform: state.transform,
611
611
  reload: state.reload,
612
612
  enabled: () => state.get().auto,
@@ -615,10 +615,10 @@ var layer7 = Layer.effect(Service11, Effect.gen(function* () {
615
615
  compactManual
616
616
  });
617
617
  }));
618
- var node13 = makeLocationNode({
619
- service: Service11,
618
+ var node14 = makeLocationNode({
619
+ service: Service12,
620
620
  layer: layer7,
621
- deps: [node86, node88, llmClient2]
621
+ deps: [node87, node88, llmClient2]
622
622
  });
623
623
 
624
- export { Service11, estimateTokens2, retainUsers2, truncateToolOutput2, serializeToolContent2, buildPrompt2, layer7, node13, exports_compaction3 };
624
+ export { Service12, estimateTokens2, retainUsers2, truncateToolOutput2, serializeToolContent2, buildPrompt2, layer7, node14, exports_compaction3 };