@opencode-ai/core 0.0.0-beta-19234 → 0.0.0-beta-19266

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (814) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +79 -79
  3. package/dist/aisdk-native.js +2 -2
  4. package/dist/aisdk.js +6 -6
  5. package/dist/app.js +7 -7
  6. package/dist/bus.js +67 -67
  7. package/dist/catalog.js +83 -83
  8. package/dist/chunks/{worktree-41mncz27.js → schema-01w7s3hf.js} +5 -5
  9. package/dist/chunks/{worktree-0e0xafbb.js → schema-0e0xafbb.js} +2 -2
  10. package/dist/chunks/{worktree-0paq2nw3.js → schema-0paq2nw3.js} +1 -1
  11. package/dist/chunks/{worktree-0q0f95c6.js → schema-0q0f95c6.js} +1 -1
  12. package/dist/chunks/{worktree-mtd0mgtt.js → schema-0qvt9njx.js} +34 -34
  13. package/dist/chunks/{worktree-vqfj6rgg.js → schema-0r9t8f77.js} +18 -18
  14. package/dist/chunks/{worktree-0s9ayhjt.js → schema-0s9ayhjt.js} +1 -1
  15. package/dist/chunks/{worktree-mq9r6drf.js → schema-0vqp07g5.js} +3 -3
  16. package/dist/chunks/{worktree-cfsc9srb.js → schema-17hja9f4.js} +8 -8
  17. package/dist/chunks/{worktree-9g259f3c.js → schema-1awmdn6g.js} +8 -8
  18. package/dist/chunks/{worktree-1ct4r87x.js → schema-1ct4r87x.js} +1 -1
  19. package/dist/chunks/{worktree-s6z4mph6.js → schema-1hnatcq2.js} +6 -6
  20. package/dist/chunks/{worktree-zn2cbnfs.js → schema-1nt798q2.js} +11 -11
  21. package/dist/chunks/{worktree-hevn35yy.js → schema-1s4vv42h.js} +7 -7
  22. package/dist/chunks/{worktree-fj906p38.js → schema-1v896bp7.js} +15 -15
  23. package/dist/chunks/{worktree-zh2rh6rn.js → schema-20evr3mp.js} +17 -17
  24. package/dist/chunks/{worktree-21r38tys.js → schema-21r38tys.js} +1 -1
  25. package/dist/chunks/{worktree-m9xhrdze.js → schema-234pz9hm.js} +11 -11
  26. package/dist/chunks/{worktree-dssx1y55.js → schema-23bjxdcp.js} +24 -24
  27. package/dist/chunks/{worktree-kg8hghrp.js → schema-23r2qrzy.js} +23 -23
  28. package/dist/chunks/{worktree-2402vzrj.js → schema-2402vzrj.js} +1 -1
  29. package/dist/chunks/{worktree-29x78va6.js → schema-29x78va6.js} +2 -2
  30. package/dist/chunks/{worktree-ajphwd6y.js → schema-2a1acymz.js} +8 -8
  31. package/dist/chunks/{worktree-2a5m3afh.js → schema-2a5m3afh.js} +1 -1
  32. package/dist/chunks/{worktree-t5h4rs02.js → schema-2cr5jxfp.js} +6 -6
  33. package/dist/chunks/{worktree-pq5hrpmt.js → schema-2g49wpqd.js} +10 -10
  34. package/dist/chunks/{worktree-2ht70gj7.js → schema-2ht70gj7.js} +1 -1
  35. package/dist/chunks/{worktree-fmanbg8s.js → schema-2t24vjmc.js} +24 -24
  36. package/dist/chunks/{worktree-8dff8bqa.js → schema-35ng7dkh.js} +5 -5
  37. package/dist/chunks/{worktree-wt966625.js → schema-39k66fkr.js} +20 -20
  38. package/dist/chunks/{worktree-gdvy8fx6.js → schema-3fc6dm20.js} +4 -4
  39. package/dist/chunks/{worktree-5r8w58wp.js → schema-3g0e3esv.js} +20 -20
  40. package/dist/chunks/{worktree-3hepkmqq.js → schema-3hepkmqq.js} +1 -1
  41. package/dist/chunks/{worktree-r98e92ep.js → schema-3j8sdtpz.js} +4 -4
  42. package/dist/chunks/{worktree-3qzbfqsy.js → schema-3qzbfqsy.js} +2 -2
  43. package/dist/chunks/{worktree-3smtnn6g.js → schema-3smtnn6g.js} +1 -1
  44. package/dist/chunks/{worktree-3tvqynh2.js → schema-3tvqynh2.js} +1 -1
  45. package/dist/chunks/{worktree-7214vx64.js → schema-418ebam3.js} +4 -4
  46. package/dist/chunks/{worktree-454k5vzh.js → schema-454k5vzh.js} +1 -1
  47. package/dist/chunks/{worktree-eg4pr325.js → schema-46e97tr7.js} +10 -10
  48. package/dist/chunks/{worktree-f8pec4ch.js → schema-4a774hnm.js} +17 -17
  49. package/dist/chunks/{worktree-5agnkr4h.js → schema-4jtjn2gj.js} +18 -18
  50. package/dist/chunks/{worktree-xgqr5ys9.js → schema-4p7snnyp.js} +24 -24
  51. package/dist/chunks/{worktree-4r2nyarf.js → schema-4r2nyarf.js} +1 -1
  52. package/dist/chunks/{worktree-ge7ds67b.js → schema-525tn4kx.js} +2 -2
  53. package/dist/chunks/{worktree-410zfba8.js → schema-54m6nc3n.js} +2 -2
  54. package/dist/chunks/schema-54v3xmsq.js +22 -0
  55. package/dist/chunks/{worktree-7dz4r7mk.js → schema-54y1e3qg.js} +8 -8
  56. package/dist/chunks/{worktree-5daktx2q.js → schema-5daktx2q.js} +1 -1
  57. package/dist/chunks/{worktree-5fmxt4p5.js → schema-5fmxt4p5.js} +1 -1
  58. package/dist/chunks/{worktree-5jvc5tg2.js → schema-5jvc5tg2.js} +1 -1
  59. package/dist/chunks/{worktree-1n116cmy.js → schema-637qq8n2.js} +9 -9
  60. package/dist/chunks/{worktree-pr0pn8m6.js → schema-686b062j.js} +15 -15
  61. package/dist/chunks/{worktree-bsv171pv.js → schema-6926ty5t.js} +8 -8
  62. package/dist/chunks/{worktree-tq32dsfx.js → schema-6bsa9frc.js} +15 -15
  63. package/dist/chunks/{worktree-28pcbh69.js → schema-6e958v7x.js} +4 -4
  64. package/dist/chunks/{worktree-wjy58fct.js → schema-6fpeds7j.js} +10 -10
  65. package/dist/chunks/{worktree-g6njkj82.js → schema-6gdx6h15.js} +15 -15
  66. package/dist/chunks/{worktree-dng5ka12.js → schema-6qptncg2.js} +4 -4
  67. package/dist/chunks/{worktree-c83taev4.js → schema-6y0247yb.js} +9 -9
  68. package/dist/chunks/{worktree-711hfp6y.js → schema-711hfp6y.js} +2 -2
  69. package/dist/chunks/{worktree-72nftnjy.js → schema-72nftnjy.js} +2 -2
  70. package/dist/chunks/{worktree-ckfw619d.js → schema-74y2dvrh.js} +41 -41
  71. package/dist/chunks/{worktree-cnvcdvk7.js → schema-7a2q0zfc.js} +6 -6
  72. package/dist/chunks/{worktree-7bmhse3q.js → schema-7bmhse3q.js} +1 -1
  73. package/dist/chunks/{worktree-sy2xv61m.js → schema-7d8vear2.js} +1 -1
  74. package/dist/chunks/{worktree-2k8khapm.js → schema-7dqw4kz8.js} +5 -5
  75. package/dist/chunks/{worktree-ce9ncmzb.js → schema-7e1496vv.js} +27 -4
  76. package/dist/chunks/{worktree-wx13dy4y.js → schema-7gg2m3zr.js} +15 -12
  77. package/dist/chunks/{worktree-6yybv5x8.js → schema-7gq8qbc1.js} +17 -17
  78. package/dist/chunks/{worktree-62mr7g8a.js → schema-7rv5x4wn.js} +11 -11
  79. package/dist/chunks/{worktree-b1chm04x.js → schema-7sd9q442.js} +7 -7
  80. package/dist/chunks/{worktree-vspn1zx3.js → schema-7w1c3z11.js} +25 -25
  81. package/dist/chunks/schema-7zk4hah4.js +4 -0
  82. package/dist/chunks/{worktree-yfdj9tfx.js → schema-7zsnkm1p.js} +37 -45
  83. package/dist/chunks/{worktree-bpnz08mb.js → schema-809xf7e2.js} +2 -2
  84. package/dist/chunks/{worktree-0rkdmzyv.js → schema-81ggxfts.js} +9 -9
  85. package/dist/chunks/{worktree-yfbd16n1.js → schema-81htp2jj.js} +7 -5
  86. package/dist/chunks/{worktree-qafexnn6.js → schema-85jr47cf.js} +13 -9
  87. package/dist/chunks/{worktree-m7nj5h8z.js → schema-8ak5gdn6.js} +14 -14
  88. package/dist/chunks/{worktree-tqmakht3.js → schema-8aw20fxv.js} +186 -91
  89. package/dist/chunks/{worktree-7er3jcv0.js → schema-8ay24fmk.js} +26 -26
  90. package/dist/chunks/{worktree-cnze8n7v.js → schema-8d0pmt0f.js} +10 -10
  91. package/dist/chunks/{worktree-vhjdrq5e.js → schema-8da146zc.js} +5 -5
  92. package/dist/chunks/{worktree-mw548jxj.js → schema-8gsst550.js} +18 -18
  93. package/dist/chunks/{worktree-qvk768dr.js → schema-8h2x3rhz.js} +11 -11
  94. package/dist/chunks/{worktree-ybjzef57.js → schema-8jn5w37c.js} +5 -5
  95. package/dist/chunks/{worktree-avwxaxy8.js → schema-8mvvefrh.js} +19 -19
  96. package/dist/chunks/{worktree-t5ad4xaj.js → schema-8x2kyzb6.js} +6 -6
  97. package/dist/chunks/{worktree-ex625ka3.js → schema-92mcpazx.js} +5 -5
  98. package/dist/chunks/{worktree-zh93cpfk.js → schema-934rg3e5.js} +18 -18
  99. package/dist/chunks/{worktree-y2cqme3r.js → schema-93a8yfjt.js} +5 -5
  100. package/dist/chunks/{worktree-s06dat1t.js → schema-9c51rpw1.js} +9 -9
  101. package/dist/chunks/{worktree-pjw83wd2.js → schema-9k252bfj.js} +25 -25
  102. package/dist/chunks/{worktree-xk6kcd15.js → schema-9qkzxvef.js} +3 -3
  103. package/dist/chunks/{worktree-9qm9egsn.js → schema-9qm9egsn.js} +2 -2
  104. package/dist/chunks/{worktree-dpdxxwta.js → schema-9tjsbxxt.js} +4 -4
  105. package/dist/chunks/{worktree-z1sr0xrs.js → schema-9tk8rzfb.js} +4 -4
  106. package/dist/chunks/{worktree-h08w630h.js → schema-a35es3dn.js} +50 -59
  107. package/dist/chunks/{worktree-1gvs4d4m.js → schema-a6h88whx.js} +20 -20
  108. package/dist/chunks/{worktree-aaet6srn.js → schema-aaet6srn.js} +2 -2
  109. package/dist/chunks/{worktree-2hth30a0.js → schema-ah4q1w3j.js} +8 -8
  110. package/dist/chunks/schema-ahspyapp.js +247 -0
  111. package/dist/chunks/{worktree-ajtjthsy.js → schema-ajtjthsy.js} +2 -2
  112. package/dist/chunks/{worktree-ze4dnq9c.js → schema-axmvebxj.js} +5 -5
  113. package/dist/chunks/{worktree-b6gygkdw.js → schema-b6gygkdw.js} +2 -2
  114. package/dist/chunks/{worktree-b9wsbatv.js → schema-b9wsbatv.js} +1 -1
  115. package/dist/chunks/{worktree-t9qj8c83.js → schema-be3ps6fk.js} +12 -12
  116. package/dist/chunks/{worktree-hnyf01b0.js → schema-bnfahk6g.js} +22 -6
  117. package/dist/chunks/{worktree-tmjhps6z.js → schema-bpxz7ydq.js} +11 -11
  118. package/dist/chunks/{worktree-xwsmtwfv.js → schema-c7jvcatc.js} +5 -5
  119. package/dist/chunks/{worktree-q8qsy7xy.js → schema-cm19gqaq.js} +17 -17
  120. package/dist/chunks/{worktree-ht963k40.js → schema-cv95fcmp.js} +5 -5
  121. package/dist/chunks/{worktree-nz4zy0sw.js → schema-cy23n0eh.js} +19 -19
  122. package/dist/chunks/{worktree-61k64wys.js → schema-cyjkg8gk.js} +18 -18
  123. package/dist/chunks/{worktree-edz5pbw5.js → schema-d5agjf18.js} +27 -56
  124. package/dist/chunks/{worktree-d72308c8.js → schema-d72308c8.js} +2 -2
  125. package/dist/chunks/{worktree-acbvwaxg.js → schema-d73w0rgx.js} +15 -15
  126. package/dist/chunks/{worktree-7w74e5nf.js → schema-d910tjb6.js} +9 -9
  127. package/dist/chunks/{worktree-660eg1b9.js → schema-dcxg8drc.js} +28 -28
  128. package/dist/chunks/{worktree-ypyh08m6.js → schema-dged69jn.js} +4 -4
  129. package/dist/chunks/{worktree-mh0thj4x.js → schema-e51fc25h.js} +18 -18
  130. package/dist/chunks/{worktree-x4ndt50x.js → schema-e8qch614.js} +14 -14
  131. package/dist/chunks/{worktree-vxz7khjw.js → schema-ecpey84z.js} +35 -42
  132. package/dist/chunks/{worktree-jm1y8vkw.js → schema-ehj7vx0b.js} +11 -11
  133. package/dist/chunks/{worktree-vy8y55ac.js → schema-ep3g8qaw.js} +21 -21
  134. package/dist/chunks/{worktree-j1yqv9s7.js → schema-es1szyat.js} +15 -15
  135. package/dist/chunks/{worktree-2sz5zasg.js → schema-ey2qyrhf.js} +21 -21
  136. package/dist/chunks/{worktree-k1rzh40r.js → schema-f00jbxzz.js} +19 -18
  137. package/dist/chunks/{worktree-hbxp6gk0.js → schema-f7502g1v.js} +6 -6
  138. package/dist/chunks/{worktree-ht4ejyw1.js → schema-fee8q97m.js} +13 -13
  139. package/dist/chunks/{worktree-tgpzk4tr.js → schema-fk6yh78j.js} +10 -10
  140. package/dist/chunks/{worktree-mtq6xxnx.js → schema-fm2qvscf.js} +7 -7
  141. package/dist/chunks/{worktree-ne4zyw3a.js → schema-fnxm8qas.js} +12 -12
  142. package/dist/chunks/{worktree-d4w17cfe.js → schema-fv0bxyhd.js} +3 -3
  143. package/dist/chunks/{worktree-fxbjtjnd.js → schema-fxbjtjnd.js} +1 -1
  144. package/dist/chunks/{worktree-fxypknc8.js → schema-fxypknc8.js} +1 -1
  145. package/dist/chunks/{worktree-63nctvwe.js → schema-fygtvtfb.js} +53 -53
  146. package/dist/chunks/{worktree-e2xpxj6j.js → schema-g1bsba7w.js} +15 -15
  147. package/dist/chunks/{worktree-87hmtf6v.js → schema-g608hw24.js} +16 -16
  148. package/dist/chunks/{worktree-0n1w7scn.js → schema-g8qt226p.js} +5 -5
  149. package/dist/chunks/{worktree-b08spypp.js → schema-ga3x3tkz.js} +8 -8
  150. package/dist/chunks/{worktree-gd4qta3r.js → schema-gd4qta3r.js} +1 -1
  151. package/dist/chunks/{worktree-94pmskv9.js → schema-gjk5sn8n.js} +4 -4
  152. package/dist/chunks/{worktree-g89m0qrn.js → schema-gnwcgnjb.js} +33 -33
  153. package/dist/chunks/{worktree-qyza05bp.js → schema-h5fs3t0a.js} +26 -26
  154. package/dist/chunks/{worktree-h6vf3j39.js → schema-h6vf3j39.js} +1 -1
  155. package/dist/chunks/{worktree-m9asb4sr.js → schema-he4jbf8x.js} +30 -30
  156. package/dist/chunks/{worktree-heyhwy2w.js → schema-heyhwy2w.js} +1 -1
  157. package/dist/chunks/{worktree-tza14zss.js → schema-hf6ertck.js} +34 -34
  158. package/dist/chunks/{worktree-e82z9tr0.js → schema-hjt4xg1x.js} +7 -7
  159. package/dist/chunks/{worktree-hrvm11jt.js → schema-hrvm11jt.js} +3 -3
  160. package/dist/chunks/{worktree-471a560f.js → schema-hsq9qkqb.js} +51 -51
  161. package/dist/chunks/{worktree-30e1hbbk.js → schema-hys3c6ky.js} +26 -25
  162. package/dist/chunks/{worktree-v6s3zgrk.js → schema-j53fc2s1.js} +6 -6
  163. package/dist/chunks/{worktree-gqvj11y0.js → schema-j8bjgp0m.js} +20 -20
  164. package/dist/chunks/{worktree-adv3g3q6.js → schema-jdcvk5y7.js} +11 -11
  165. package/dist/chunks/{worktree-z168y132.js → schema-jdd7wz44.js} +35 -44
  166. package/dist/chunks/{worktree-hctjcsn3.js → schema-jhzxqtm7.js} +68 -63
  167. package/dist/chunks/{worktree-wgc064dh.js → schema-jp934b96.js} +10 -10
  168. package/dist/chunks/{worktree-k4bwy1x5.js → schema-k4bwy1x5.js} +1 -1
  169. package/dist/chunks/{worktree-rd9hzb43.js → schema-k7e3e2sr.js} +16 -16
  170. package/dist/chunks/{worktree-1pdtxp2d.js → schema-kaqw06zw.js} +1 -1
  171. package/dist/chunks/{worktree-kg06axw8.js → schema-kg06axw8.js} +1 -1
  172. package/dist/chunks/{worktree-3cj33xev.js → schema-kh25xj5f.js} +37 -44
  173. package/dist/chunks/{worktree-06x8he3q.js → schema-kne8f3cn.js} +4 -4
  174. package/dist/chunks/{worktree-6v6snzyf.js → schema-kqtq9r6d.js} +20 -20
  175. package/dist/chunks/{worktree-kvsjn1dr.js → schema-kvsjn1dr.js} +2 -2
  176. package/dist/chunks/{worktree-842v7csv.js → schema-kwt11tv7.js} +17 -17
  177. package/dist/chunks/{worktree-sxrnkw1n.js → schema-m2dwvqty.js} +9 -9
  178. package/dist/chunks/{worktree-4tyxcf8v.js → schema-m9hdf67d.js} +30 -30
  179. package/dist/chunks/{worktree-gvcph31s.js → schema-m9p8h4jk.js} +12 -12
  180. package/dist/chunks/{worktree-m9w0rfyh.js → schema-m9w0rfyh.js} +1 -1
  181. package/dist/chunks/{worktree-xy07edwq.js → schema-mbj5j0dx.js} +41 -41
  182. package/dist/chunks/{worktree-cjrs1hef.js → schema-me8n0gqn.js} +17 -17
  183. package/dist/chunks/{worktree-56gdpj1q.js → schema-mfqp6xfm.js} +6 -6
  184. package/dist/chunks/{worktree-73tb2d7t.js → schema-mhkvc446.js} +3 -3
  185. package/dist/chunks/{worktree-bj3t22s0.js → schema-mj8wbps0.js} +57 -41
  186. package/dist/chunks/{worktree-7g2k4w5v.js → schema-ne1yvy6p.js} +43 -43
  187. package/dist/chunks/{worktree-35bk7ths.js → schema-njdd8kjn.js} +83 -83
  188. package/dist/chunks/{worktree-bg50jbb6.js → schema-npx3gdza.js} +84 -81
  189. package/dist/chunks/{worktree-g43vvm86.js → schema-ntvpvfq2.js} +7 -7
  190. package/dist/chunks/{worktree-yh9c67q5.js → schema-p6rz0yzk.js} +4 -4
  191. package/dist/chunks/{worktree-qyv79zw0.js → schema-p7v84xw5.js} +33 -33
  192. package/dist/chunks/{worktree-tppvcy65.js → schema-p7xgpz7y.js} +9 -9
  193. package/dist/chunks/{worktree-nnad2ash.js → schema-p9071pdt.js} +46 -46
  194. package/dist/chunks/{worktree-7nmnk1wx.js → schema-pac8pssg.js} +20 -20
  195. package/dist/chunks/{worktree-b9e4evd2.js → schema-pe5crvt1.js} +28 -20
  196. package/dist/chunks/{worktree-kmcjptjm.js → schema-pfvd2csc.js} +1 -1
  197. package/dist/chunks/{worktree-pjvnvgmy.js → schema-pjvnvgmy.js} +1 -1
  198. package/dist/chunks/{worktree-pknna89w.js → schema-pknna89w.js} +1 -1
  199. package/dist/chunks/{worktree-q3yxb0xv.js → schema-pkqzam1k.js} +11 -11
  200. package/dist/chunks/{worktree-y14y9keq.js → schema-ps2ypmnz.js} +1 -1
  201. package/dist/chunks/{worktree-5nygvj5f.js → schema-pt07xbnp.js} +18 -18
  202. package/dist/chunks/{worktree-rh7y5xh0.js → schema-pydn0w3e.js} +1 -1
  203. package/dist/chunks/{worktree-nhfc898y.js → schema-q1nkzk48.js} +32 -25
  204. package/dist/chunks/{worktree-qqt43bp1.js → schema-q1q8dpek.js} +20 -20
  205. package/dist/chunks/{worktree-yywg80z9.js → schema-q2cdtxy5.js} +6 -6
  206. package/dist/chunks/{worktree-rfedyjyh.js → schema-qb2yjf91.js} +15 -15
  207. package/dist/chunks/{worktree-zgsac5yt.js → schema-qk9vesgb.js} +10 -10
  208. package/dist/chunks/{worktree-qsdy395h.js → schema-qsdy395h.js} +1 -1
  209. package/dist/chunks/{worktree-qbddy52q.js → schema-qwh8c2js.js} +7 -7
  210. package/dist/chunks/{worktree-zht09bnk.js → schema-qwxk75cg.js} +8 -8
  211. package/dist/chunks/{worktree-3883t5g1.js → schema-r1dq9xr8.js} +5 -5
  212. package/dist/chunks/{worktree-gcaq7q8d.js → schema-r25t3ann.js} +4 -4
  213. package/dist/chunks/{worktree-r8dhm0tv.js → schema-r8dhm0tv.js} +1 -1
  214. package/dist/chunks/{worktree-1459npmt.js → schema-r9pjqsyf.js} +31 -39
  215. package/dist/chunks/{worktree-040j8z8f.js → schema-raa16g9g.js} +3 -3
  216. package/dist/chunks/{worktree-rap9a73h.js → schema-rap9a73h.js} +1 -1
  217. package/dist/chunks/{worktree-srxvp5n6.js → schema-raxsvy8j.js} +14 -14
  218. package/dist/chunks/{worktree-066kw2xy.js → schema-rbhd1hv4.js} +3 -3
  219. package/dist/chunks/{worktree-45aqx2pr.js → schema-rm3yzcsd.js} +4 -4
  220. package/dist/chunks/{worktree-qqtwvk4z.js → schema-rp8jz6x1.js} +4 -4
  221. package/dist/chunks/{worktree-8k6sjvxx.js → schema-rqa18smj.js} +11 -11
  222. package/dist/chunks/schema-rqdcv1n1.js +55 -0
  223. package/dist/chunks/{worktree-a29r829w.js → schema-s2e3zm9h.js} +50 -50
  224. package/dist/chunks/{worktree-r226ndvg.js → schema-s53bq4vw.js} +33 -33
  225. package/dist/chunks/{worktree-t8vr1kn7.js → schema-s698gkv6.js} +9 -9
  226. package/dist/chunks/{worktree-sba4qhjf.js → schema-sba4qhjf.js} +1 -1
  227. package/dist/chunks/{worktree-j6jsstpv.js → schema-sdygzg6k.js} +30 -30
  228. package/dist/chunks/{worktree-sdm57bgr.js → schema-se2vkk77.js} +19 -19
  229. package/dist/chunks/{worktree-jw9vr5cv.js → schema-sn3nkvtj.js} +8 -8
  230. package/dist/chunks/{worktree-tgz6nsmd.js → schema-spftfn4p.js} +47 -47
  231. package/dist/chunks/{worktree-m7w02m4e.js → schema-sr948aj6.js} +19 -19
  232. package/dist/chunks/{worktree-enw72f67.js → schema-sy7czwgb.js} +6 -6
  233. package/dist/chunks/{worktree-a8g0fabb.js → schema-sz9840t7.js} +9 -9
  234. package/dist/chunks/{worktree-7h10aajm.js → schema-t0dq411k.js} +3 -3
  235. package/dist/chunks/{worktree-5zcapbqz.js → schema-tan6veb8.js} +29 -29
  236. package/dist/chunks/{worktree-tazgh4e4.js → schema-tazgh4e4.js} +1 -1
  237. package/dist/chunks/{worktree-tcezcvh9.js → schema-tcezcvh9.js} +1 -1
  238. package/dist/chunks/{worktree-tjykrgmx.js → schema-tjykrgmx.js} +1 -1
  239. package/dist/chunks/{worktree-58hqrsnb.js → schema-tnn3pxdz.js} +26 -26
  240. package/dist/chunks/{worktree-kk0awzkj.js → schema-trhjdf47.js} +24 -24
  241. package/dist/chunks/{worktree-1ytn6e3p.js → schema-ts04ntb8.js} +11 -11
  242. package/dist/chunks/{worktree-9mtg8gdn.js → schema-ttmf2k06.js} +11 -11
  243. package/dist/chunks/{worktree-wga61mrz.js → schema-v45en8pj.js} +17 -16
  244. package/dist/chunks/{worktree-pfzksdxq.js → schema-v610d21f.js} +22 -22
  245. package/dist/chunks/{worktree-zbjnn3ac.js → schema-v72m8j26.js} +7 -0
  246. package/dist/chunks/{worktree-xpxmebhh.js → schema-vecstcyh.js} +39 -39
  247. package/dist/chunks/{worktree-9kwyppn5.js → schema-vmv31r6s.js} +19 -19
  248. package/dist/chunks/{worktree-vynk1gtr.js → schema-vpwgshky.js} +13 -13
  249. package/dist/chunks/{worktree-najyedn1.js → schema-vrwt7trm.js} +8 -8
  250. package/dist/chunks/{worktree-prrfs6yw.js → schema-vt9wfr9s.js} +18 -18
  251. package/dist/chunks/{worktree-fgdwx9dj.js → schema-vwd3d859.js} +24 -24
  252. package/dist/chunks/{worktree-w3wsvvr9.js → schema-w3wsvvr9.js} +1 -1
  253. package/dist/chunks/{worktree-jkzajkdb.js → schema-w7xrk89n.js} +18 -18
  254. package/dist/chunks/{worktree-1wfjb4fb.js → schema-wa8a7neb.js} +1 -1
  255. package/dist/chunks/{worktree-wvbw7nq4.js → schema-wabsntfg.js} +17 -17
  256. package/dist/chunks/{worktree-fss4j797.js → schema-wb2q69yx.js} +27 -27
  257. package/dist/chunks/{worktree-52vxm64v.js → schema-wbvdvtzj.js} +15 -15
  258. package/dist/chunks/{worktree-wd87259q.js → schema-wd87259q.js} +1 -1
  259. package/dist/chunks/{worktree-rj2f5sk2.js → schema-wf52tegj.js} +38 -38
  260. package/dist/chunks/{worktree-7gkmedy0.js → schema-whnf76s8.js} +12 -25
  261. package/dist/chunks/{worktree-smk292jk.js → schema-wpa91s1b.js} +167 -167
  262. package/dist/chunks/{worktree-cs4zqdxc.js → schema-wvycr4s3.js} +4 -4
  263. package/dist/chunks/{worktree-adacqx41.js → schema-wwqw8y3k.js} +17 -17
  264. package/dist/chunks/{worktree-x1ezjp6w.js → schema-x1ezjp6w.js} +1 -1
  265. package/dist/chunks/{worktree-mfpdf0ta.js → schema-x71fjkw5.js} +7 -7
  266. package/dist/chunks/{worktree-2yb0w078.js → schema-x8z6j3kk.js} +3 -3
  267. package/dist/chunks/{worktree-zkj92s1w.js → schema-xfrwv263.js} +6 -6
  268. package/dist/chunks/{worktree-xgjy9czn.js → schema-xgjy9czn.js} +2 -2
  269. package/dist/chunks/{worktree-xr5vwsd4.js → schema-xr5vwsd4.js} +2 -2
  270. package/dist/chunks/{worktree-b3kfkjj6.js → schema-xrtvrd4c.js} +8 -5
  271. package/dist/chunks/{worktree-sn5ar8h4.js → schema-xvjj1qqy.js} +1 -1
  272. package/dist/chunks/{worktree-6y2e0e4e.js → schema-xzzg2aw3.js} +6 -6
  273. package/dist/chunks/{worktree-y1fvbwt7.js → schema-y1fvbwt7.js} +1 -1
  274. package/dist/chunks/{worktree-3g2y1byn.js → schema-y4nzzd5t.js} +5 -5
  275. package/dist/chunks/{worktree-y71avatq.js → schema-y71avatq.js} +1 -1
  276. package/dist/chunks/{worktree-gq1q1b4e.js → schema-yf1d8svm.js} +11 -11
  277. package/dist/chunks/schema-yjw6p547.js +114 -0
  278. package/dist/chunks/{worktree-yp2x3t23.js → schema-yp2x3t23.js} +1 -1
  279. package/dist/chunks/{worktree-k3skpd5n.js → schema-yx2cz2pp.js} +12 -12
  280. package/dist/chunks/{worktree-z1k01bn4.js → schema-z1k01bn4.js} +2 -2
  281. package/dist/chunks/{worktree-rqqsyksf.js → schema-z44293nx.js} +24 -24
  282. package/dist/chunks/{worktree-txt2cax8.js → schema-za2svx48.js} +286 -284
  283. package/dist/chunks/{worktree-5d98etyc.js → schema-zmgxegv8.js} +15 -15
  284. package/dist/chunks/{worktree-kxf02bzq.js → schema-zs79rajt.js} +24 -24
  285. package/dist/chunks/{worktree-zxq2ej10.js → schema-zxq2ej10.js} +1 -1
  286. package/dist/chunks/{worktree-c047tdby.js → schema-zy7s2m3e.js} +18 -14
  287. package/dist/codemode/catalog.js +3 -3
  288. package/dist/codemode/instructions.js +11 -11
  289. package/dist/codemode/tool.js +2 -2
  290. package/dist/command.js +83 -83
  291. package/dist/config/discovery.js +77 -77
  292. package/dist/config/markdown.js +1 -1
  293. package/dist/config/normalize.js +19 -19
  294. package/dist/config/plugin/agent.js +115 -115
  295. package/dist/config/plugin/command.js +207 -206
  296. package/dist/config/plugin/compaction.js +155 -154
  297. package/dist/config/plugin/entry-observer.js +1 -1
  298. package/dist/config/plugin/formatter.js +117 -117
  299. package/dist/config/plugin/image.js +115 -115
  300. package/dist/config/plugin/instruction.js +85 -85
  301. package/dist/config/plugin/location-watcher.js +115 -115
  302. package/dist/config/plugin/mcp.js +124 -124
  303. package/dist/config/plugin/policy.js +114 -114
  304. package/dist/config/plugin/provider.js +113 -113
  305. package/dist/config/plugin/reference.js +117 -117
  306. package/dist/config/plugin/shell.js +118 -118
  307. package/dist/config/plugin/skill-file.js +97 -96
  308. package/dist/config/plugin/skill.js +136 -135
  309. package/dist/config/plugin/snapshot.js +115 -115
  310. package/dist/config/plugin/source.js +111 -111
  311. package/dist/config/plugin/tool-output.js +117 -117
  312. package/dist/config/plugin/websearch.js +115 -115
  313. package/dist/config/plugin/worktree.js +118 -118
  314. package/dist/config/variable.js +3 -3
  315. package/dist/config/watch.js +1 -1
  316. package/dist/config.js +115 -115
  317. package/dist/credential/sql.js +2 -2
  318. package/dist/credential.js +81 -81
  319. package/dist/database/database.js +64 -64
  320. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  321. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  322. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  323. package/dist/database/drizzle/index.js +13 -13
  324. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  325. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  326. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  327. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  328. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  329. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  330. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  331. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  332. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  333. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  334. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  335. package/dist/database/drizzle.js +14 -14
  336. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  337. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  338. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  339. package/dist/database/migration/20260225215848_workspace.js +1 -1
  340. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  341. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  342. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  343. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  344. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  345. package/dist/database/migration/20260323234822_events.js +1 -1
  346. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  347. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  348. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  349. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  350. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  351. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  352. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  353. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  354. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  355. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  356. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  357. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  358. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  359. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  360. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  361. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  362. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  363. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  364. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  365. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  366. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  367. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  368. package/dist/database/migration/20260611035744_credential.js +1 -1
  369. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  370. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  371. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  372. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  373. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  374. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  375. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  376. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  377. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  378. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  379. package/dist/database/migration/20260812213948_worktree.js +1 -1
  380. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  381. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  382. package/dist/database/migration.gen.js +47 -47
  383. package/dist/database/migration.js +49 -49
  384. package/dist/database/path.js +2 -2
  385. package/dist/database/schema.gen.js +1 -1
  386. package/dist/database/schema.sql.js +1 -1
  387. package/dist/database/sqlite.bun.js +1 -1
  388. package/dist/database/sqlite.js +1 -1
  389. package/dist/database/sqlite.node.js +1 -1
  390. package/dist/database/sqlite.workerd.js +1 -1
  391. package/dist/database/v1-migration.bun.js +74 -74
  392. package/dist/database/v1-migration.js +1 -1
  393. package/dist/effect/app-node-builder.js +360 -359
  394. package/dist/effect/app-node-platform.js +2 -2
  395. package/dist/effect/keyed-mutex.js +1 -1
  396. package/dist/effect/websocket-constructor.js +1 -1
  397. package/dist/environment/driver.js +1 -1
  398. package/dist/environment/environment.js +88 -88
  399. package/dist/environment/exec-defaults.js +2 -2
  400. package/dist/environment/files.js +1 -1
  401. package/dist/environment/index.js +90 -90
  402. package/dist/environment/local.js +2 -2
  403. package/dist/environment/memory.js +2 -2
  404. package/dist/environment/unavailable.js +1 -1
  405. package/dist/event/sql.js +1 -1
  406. package/dist/event-logger.js +68 -68
  407. package/dist/file-access.js +112 -0
  408. package/dist/file-mutation.js +89 -89
  409. package/dist/file-retention.js +1 -1
  410. package/dist/file.js +1 -1
  411. package/dist/filesystem/fff.bun.js +2 -2
  412. package/dist/filesystem/fff.js +1 -1
  413. package/dist/filesystem/fff.node.js +2 -2
  414. package/dist/filesystem/fff.workerd.js +2 -2
  415. package/dist/filesystem/ignore.js +1 -1
  416. package/dist/filesystem/location-watcher-policy.js +6 -6
  417. package/dist/filesystem/location-watcher.js +220 -219
  418. package/dist/filesystem/protected.js +1 -1
  419. package/dist/filesystem/search.js +99 -99
  420. package/dist/filesystem/watcher-binding.js +1 -1
  421. package/dist/filesystem/watcher.js +13 -13
  422. package/dist/filesystem.js +96 -96
  423. package/dist/form.js +82 -82
  424. package/dist/formatter/builtins.js +4 -4
  425. package/dist/formatter.js +84 -84
  426. package/dist/generate.js +89 -89
  427. package/dist/git.js +7 -7
  428. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  429. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  430. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  431. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  432. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  433. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  434. package/dist/github-copilot/copilot-provider.js +17 -17
  435. package/dist/github-copilot/models.js +7 -7
  436. package/dist/github-copilot/openai-compatible-error.js +1 -1
  437. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  438. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  439. package/dist/github-copilot/responses/openai-error.js +1 -1
  440. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  441. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  442. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  443. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  444. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  445. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  446. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  447. package/dist/id/id.js +1 -1
  448. package/dist/image/photon.js +2 -2
  449. package/dist/image.js +6 -6
  450. package/dist/instance/service.js +5 -5
  451. package/dist/instance.js +351 -350
  452. package/dist/instruction-discovery.js +83 -83
  453. package/dist/instructions/builtins.js +82 -82
  454. package/dist/instructions/index.js +3 -3
  455. package/dist/integration/connection.js +1 -1
  456. package/dist/integration.js +84 -84
  457. package/dist/job.js +77 -77
  458. package/dist/kv/sql.js +2 -2
  459. package/dist/kv.js +71 -71
  460. package/dist/location-activity.js +130 -129
  461. package/dist/location-mutation.js +102 -83
  462. package/dist/location-service-map.js +83 -83
  463. package/dist/location-services.js +348 -347
  464. package/dist/location.js +84 -84
  465. package/dist/mcp/client.js +86 -86
  466. package/dist/mcp/index.js +103 -103
  467. package/dist/mcp/instructions.js +120 -119
  468. package/dist/mcp/oauth.js +24 -4
  469. package/dist/mcp/stdio.js +85 -85
  470. package/dist/mime.js +1 -1
  471. package/dist/modal/models.js +7 -7
  472. package/dist/model-resolver.js +88 -86
  473. package/dist/model.js +8 -8
  474. package/dist/models-dev.js +86 -86
  475. package/dist/oauth/page.js +1 -1
  476. package/dist/permission/saved.js +80 -80
  477. package/dist/permission/sql.js +5 -5
  478. package/dist/permission.js +106 -105
  479. package/dist/persistent-pty/binary.bun.js +1 -1
  480. package/dist/persistent-pty/daemon.js +1 -1
  481. package/dist/persistent-pty/index.js +82 -82
  482. package/dist/persistent-pty/pty-binding.js +1 -1
  483. package/dist/persistent-pty.js +73 -73
  484. package/dist/plugin/agent.js +97 -96
  485. package/dist/plugin/command.js +94 -94
  486. package/dist/plugin/hooks.js +5 -5
  487. package/dist/plugin/host.js +213 -212
  488. package/dist/plugin/instance.js +5 -5
  489. package/dist/plugin/internal.js +322 -321
  490. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  491. package/dist/plugin/models-dev.js +75 -75
  492. package/dist/plugin/module.js +7 -7
  493. package/dist/plugin/optimize.js +4 -4
  494. package/dist/plugin/plan.js +97 -96
  495. package/dist/plugin/promise.js +1 -1
  496. package/dist/plugin/provider/alibaba.js +2 -2
  497. package/dist/plugin/provider/amazon-bedrock.js +2 -2
  498. package/dist/plugin/provider/anthropic.js +2 -2
  499. package/dist/plugin/provider/azure.js +118 -118
  500. package/dist/plugin/provider/cerebras.js +2 -2
  501. package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
  502. package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
  503. package/dist/plugin/provider/cohere.js +2 -2
  504. package/dist/plugin/provider/configured.js +114 -114
  505. package/dist/plugin/provider/dynamic.js +2 -2
  506. package/dist/plugin/provider/factory.js +1 -1
  507. package/dist/plugin/provider/gateway.js +2 -2
  508. package/dist/plugin/provider/github-copilot.js +80 -80
  509. package/dist/plugin/provider/gitlab.js +3 -3
  510. package/dist/plugin/provider/google-vertex.js +2 -2
  511. package/dist/plugin/provider/kilo.js +2 -2
  512. package/dist/plugin/provider/llmgateway.js +76 -76
  513. package/dist/plugin/provider/lmstudio.js +117 -117
  514. package/dist/plugin/provider/mistral.js +2 -2
  515. package/dist/plugin/provider/modal.js +79 -79
  516. package/dist/plugin/provider/nvidia.js +2 -2
  517. package/dist/plugin/provider/ollama.js +117 -117
  518. package/dist/plugin/provider/openai-compatible.js +1 -1
  519. package/dist/plugin/provider/openai.js +80 -80
  520. package/dist/plugin/provider/opencode.js +76 -76
  521. package/dist/plugin/provider/openrouter.js +3 -3
  522. package/dist/plugin/provider/perplexity.js +2 -2
  523. package/dist/plugin/provider/sap-ai-core.js +3 -3
  524. package/dist/plugin/provider/sdk-factory.js +1 -1
  525. package/dist/plugin/provider/snowflake-cortex.js +2 -2
  526. package/dist/plugin/provider/venice.js +2 -2
  527. package/dist/plugin/provider/vercel.js +2 -2
  528. package/dist/plugin/provider/vllm.js +117 -117
  529. package/dist/plugin/provider/xai.js +77 -77
  530. package/dist/plugin/provider/zenmux.js +2 -2
  531. package/dist/plugin/provider.js +155 -155
  532. package/dist/plugin/sdk.js +70 -70
  533. package/dist/plugin/service.js +1 -1
  534. package/dist/plugin/skill.js +133 -132
  535. package/dist/plugin/source-directory.js +1 -1
  536. package/dist/plugin/supervisor.js +337 -336
  537. package/dist/plugin/update.js +2 -2
  538. package/dist/plugin/variant.js +4 -4
  539. package/dist/plugin/vcs/git.js +82 -82
  540. package/dist/plugin/vcs/hg.js +82 -82
  541. package/dist/plugin/warming.js +112 -112
  542. package/dist/plugin/websearch/exa.js +5 -5
  543. package/dist/plugin/websearch/firecrawl.js +8 -8
  544. package/dist/plugin/websearch/index.js +8 -8
  545. package/dist/plugin/websearch/mcp.js +4 -4
  546. package/dist/plugin/websearch/parallel.js +6 -6
  547. package/dist/plugin/websearch/tavily.js +6 -6
  548. package/dist/plugin.js +222 -221
  549. package/dist/project/schema.js +8 -8
  550. package/dist/project/sql.js +4 -4
  551. package/dist/project.js +83 -83
  552. package/dist/provider.js +5 -5
  553. package/dist/pty/protocol.js +1 -1
  554. package/dist/pty/schema.js +3 -3
  555. package/dist/pty/ticket.js +1 -1
  556. package/dist/pty.js +90 -90
  557. package/dist/reference/instructions.js +84 -84
  558. package/dist/reference.js +86 -86
  559. package/dist/repository-cache.js +76 -76
  560. package/dist/repository.js +1 -1
  561. package/dist/ripgrep/binary.js +2 -2
  562. package/dist/ripgrep.js +91 -91
  563. package/dist/rpc.js +81 -81
  564. package/dist/schema.js +1 -1
  565. package/dist/session/command.js +72 -72
  566. package/dist/session/compaction.js +131 -128
  567. package/dist/session/context.js +147 -146
  568. package/dist/session/environment.js +5 -5
  569. package/dist/session/error.js +5 -5
  570. package/dist/session/event.js +1 -1
  571. package/dist/session/execution/restart.js +216 -215
  572. package/dist/session/execution.js +122 -121
  573. package/dist/session/generate.js +146 -145
  574. package/dist/session/history.js +13 -12
  575. package/dist/session/inbox.js +84 -84
  576. package/dist/session/info.js +3 -3
  577. package/dist/session/instruction-entry.js +77 -77
  578. package/dist/session/instruction-state.js +8 -8
  579. package/dist/session/instructions.js +92 -91
  580. package/dist/session/message-updater.js +4 -4
  581. package/dist/session/message.js +1 -1
  582. package/dist/session/model-request.js +109 -108
  583. package/dist/session/model-transport.js +9 -9
  584. package/dist/session/move.js +126 -125
  585. package/dist/session/projector.js +82 -82
  586. package/dist/session/prompt.js +100 -99
  587. package/dist/session/provider-context.js +20 -0
  588. package/dist/session/revert.js +85 -85
  589. package/dist/session/run-coordinator.js +1 -1
  590. package/dist/session/runner/index.js +3 -3
  591. package/dist/session/runner/llm.js +225 -224
  592. package/dist/session/runner/max-steps.js +1 -1
  593. package/dist/session/runner/model.js +88 -86
  594. package/dist/session/runner/publish-llm-event.js +3 -3
  595. package/dist/session/runner/retry.js +113 -5
  596. package/dist/session/runner/step.js +119 -118
  597. package/dist/session/runner/to-llm-message.js +2 -1
  598. package/dist/session/schema.js +5 -5
  599. package/dist/session/session.js +169 -168
  600. package/dist/session/shell.js +131 -131
  601. package/dist/session/skill.js +98 -97
  602. package/dist/session/sql.js +5 -5
  603. package/dist/session/stats.js +71 -71
  604. package/dist/session/store.js +85 -84
  605. package/dist/session/subagent-completion.js +1 -1
  606. package/dist/session/subagent-job.js +205 -204
  607. package/dist/session/system-prompt.js +5 -5
  608. package/dist/session/title.js +147 -146
  609. package/dist/session/to-session-error.js +107 -106
  610. package/dist/session/transfer.js +212 -211
  611. package/dist/session/usage.js +1 -1
  612. package/dist/session.js +211 -210
  613. package/dist/shell/parse.js +6 -6
  614. package/dist/shell/result.js +1 -1
  615. package/dist/shell/scan.js +1 -1
  616. package/dist/shell/select.js +11 -11
  617. package/dist/shell.js +133 -133
  618. package/dist/skill/discovery.js +2 -2
  619. package/dist/skill/instructions.js +102 -101
  620. package/dist/skill.js +101 -100
  621. package/dist/snapshot.js +88 -88
  622. package/dist/state.js +1 -1
  623. package/dist/tool/html-markdown.js +1 -1
  624. package/dist/tool/http-body.js +1 -1
  625. package/dist/tool/mcp.js +119 -118
  626. package/dist/tool/plugin/edit.js +115 -114
  627. package/dist/tool/plugin/file-diff.js +1 -1
  628. package/dist/tool/plugin/glob.js +120 -119
  629. package/dist/tool/plugin/grep.js +120 -119
  630. package/dist/tool/plugin/opencode.js +5 -3
  631. package/dist/tool/plugin/patch.js +113 -112
  632. package/dist/tool/plugin/question.js +96 -95
  633. package/dist/tool/plugin/read.js +119 -118
  634. package/dist/tool/plugin/shell.js +212 -211
  635. package/dist/tool/plugin/skill.js +108 -107
  636. package/dist/tool/plugin/subagent.js +214 -213
  637. package/dist/tool/plugin/webfetch.js +105 -104
  638. package/dist/tool/plugin/websearch.js +109 -108
  639. package/dist/tool/plugin/write.js +115 -114
  640. package/dist/tool/read-filesystem.js +96 -96
  641. package/dist/tool/runtime.js +1 -1
  642. package/dist/tool-output.js +8 -8
  643. package/dist/tool.js +13 -13
  644. package/dist/types/file-access.d.ts +52 -0
  645. package/dist/types/file-mutation.d.ts +2 -4
  646. package/dist/types/instance.d.ts +2 -2
  647. package/dist/types/location-activity.d.ts +1 -1
  648. package/dist/types/location-mutation.d.ts +3 -52
  649. package/dist/types/mcp/oauth.d.ts +10 -1
  650. package/dist/types/model-resolver.d.ts +25 -3
  651. package/dist/types/model.d.ts +11 -0
  652. package/dist/types/plugin/host.d.ts +2 -2
  653. package/dist/types/plugin/internal.d.ts +3 -3
  654. package/dist/types/provider.d.ts +11 -0
  655. package/dist/types/session/compaction.d.ts +11 -2
  656. package/dist/types/session/execution/restart.d.ts +1 -1
  657. package/dist/types/session/execution.d.ts +1 -1
  658. package/dist/types/session/generate.d.ts +1 -1
  659. package/dist/types/session/history.d.ts +59 -4
  660. package/dist/types/session/provider-context.d.ts +46 -0
  661. package/dist/types/session/runner/model.d.ts +4 -0
  662. package/dist/types/session/runner/retry.d.ts +5 -0
  663. package/dist/types/session/session.d.ts +3 -3
  664. package/dist/types/session/sql.d.ts +3 -3
  665. package/dist/types/session/transfer.d.ts +47 -0
  666. package/dist/types/tool/mcp.d.ts +1 -1
  667. package/dist/types/tool/plugin/edit.d.ts +2 -2
  668. package/dist/types/tool/plugin/glob.d.ts +2 -2
  669. package/dist/types/tool/plugin/grep.d.ts +2 -2
  670. package/dist/types/tool/plugin/opencode.d.ts +7 -0
  671. package/dist/types/tool/plugin/patch.d.ts +2 -2
  672. package/dist/types/tool/plugin/read.d.ts +2 -3
  673. package/dist/types/tool/plugin/shell.d.ts +2 -2
  674. package/dist/types/tool/plugin/websearch.d.ts +1 -1
  675. package/dist/types/tool/plugin/write.d.ts +2 -2
  676. package/dist/types/v1/config/agent.d.ts +4 -4
  677. package/dist/types/v1/config/config.d.ts +46 -46
  678. package/dist/types/v1/config/migrate.d.ts +19 -7
  679. package/dist/types/v1/config/permission.d.ts +3 -3
  680. package/dist/util/error-summary.js +1 -1
  681. package/dist/util/error.js +1 -1
  682. package/dist/util/iife.js +1 -1
  683. package/dist/util/lazy.js +1 -1
  684. package/dist/util/slug.js +1 -1
  685. package/dist/util/token.js +1 -1
  686. package/dist/util/which.js +1 -1
  687. package/dist/util/wildcard.js +1 -1
  688. package/dist/v1/config/agent.js +5 -5
  689. package/dist/v1/config/attachment.js +4 -4
  690. package/dist/v1/config/command.js +5 -5
  691. package/dist/v1/config/config.js +16 -16
  692. package/dist/v1/config/error.js +2 -2
  693. package/dist/v1/config/formatter.js +5 -5
  694. package/dist/v1/config/layout.js +1 -1
  695. package/dist/v1/config/lsp.js +3 -3
  696. package/dist/v1/config/mcp.js +4 -4
  697. package/dist/v1/config/migrate.js +4 -4
  698. package/dist/v1/config/permission.js +3 -3
  699. package/dist/v1/config/plugin.js +3 -3
  700. package/dist/v1/config/provider-options.js +1 -1
  701. package/dist/v1/config/provider.js +4 -4
  702. package/dist/v1/config/server.js +2 -2
  703. package/dist/v1/config/skills.js +3 -3
  704. package/dist/v1/permission.js +1 -1
  705. package/dist/vcs/patch.js +1 -1
  706. package/dist/vcs.js +85 -85
  707. package/dist/websearch.js +78 -78
  708. package/dist/wellknown/plugin.js +74 -74
  709. package/dist/wellknown.js +77 -77
  710. package/dist/workspace/driver.js +7 -7
  711. package/dist/workspace/sql.js +1 -1
  712. package/dist/workspace.js +78 -78
  713. package/dist/worktree/directory.js +4 -4
  714. package/dist/worktree/git.js +7 -7
  715. package/dist/worktree/refresh.js +340 -339
  716. package/dist/worktree/sql.js +5 -5
  717. package/dist/worktree.js +89 -89
  718. package/package.json +8 -7
  719. package/dist/chunks/worktree-b5q5y4vk.js +0 -4
  720. package/dist/chunks/worktree-hcs930pp.js +0 -22
  721. package/dist/chunks/worktree-ynqmrvb3.js +0 -84
  722. package/dist/chunks/worktree-yrf23g47.js +0 -247
  723. /package/dist/chunks/{worktree-0fabt78z.js → schema-0fabt78z.js} +0 -0
  724. /package/dist/chunks/{worktree-0qkdqm5v.js → schema-0qkdqm5v.js} +0 -0
  725. /package/dist/chunks/{worktree-0zkw76rk.js → schema-0zkw76rk.js} +0 -0
  726. /package/dist/chunks/{worktree-17cy0kzp.js → schema-17cy0kzp.js} +0 -0
  727. /package/dist/chunks/{worktree-1cnp2v09.js → schema-1cnp2v09.js} +0 -0
  728. /package/dist/chunks/{worktree-1kg9ymc8.js → schema-1kg9ymc8.js} +0 -0
  729. /package/dist/chunks/{worktree-2710q6r3.js → schema-2710q6r3.js} +0 -0
  730. /package/dist/chunks/{worktree-2axfhc9x.js → schema-2axfhc9x.js} +0 -0
  731. /package/dist/chunks/{worktree-2c3vjs8z.js → schema-2c3vjs8z.js} +0 -0
  732. /package/dist/chunks/{worktree-359p4xyc.js → schema-359p4xyc.js} +0 -0
  733. /package/dist/chunks/{worktree-3asan66x.js → schema-3asan66x.js} +0 -0
  734. /package/dist/chunks/{worktree-3t738kvx.js → schema-3t738kvx.js} +0 -0
  735. /package/dist/chunks/{worktree-3v8g72cx.js → schema-3v8g72cx.js} +0 -0
  736. /package/dist/chunks/{worktree-3wcehsnq.js → schema-3wcehsnq.js} +0 -0
  737. /package/dist/chunks/{worktree-41nvscxy.js → schema-41nvscxy.js} +0 -0
  738. /package/dist/chunks/{worktree-43n2bw4t.js → schema-43n2bw4t.js} +0 -0
  739. /package/dist/chunks/{worktree-4knz6hnm.js → schema-4knz6hnm.js} +0 -0
  740. /package/dist/chunks/{worktree-4y7fprxs.js → schema-4y7fprxs.js} +0 -0
  741. /package/dist/chunks/{worktree-53557ph1.js → schema-53557ph1.js} +0 -0
  742. /package/dist/chunks/{worktree-550bvhaj.js → schema-550bvhaj.js} +0 -0
  743. /package/dist/chunks/{worktree-6prwharc.js → schema-6prwharc.js} +0 -0
  744. /package/dist/chunks/{worktree-7akdwqpd.js → schema-7akdwqpd.js} +0 -0
  745. /package/dist/chunks/{worktree-7m9af43g.js → schema-7m9af43g.js} +0 -0
  746. /package/dist/chunks/{worktree-822emrt2.js → schema-822emrt2.js} +0 -0
  747. /package/dist/chunks/{worktree-88xbtdfr.js → schema-88xbtdfr.js} +0 -0
  748. /package/dist/chunks/{worktree-8n3pysct.js → schema-8n3pysct.js} +0 -0
  749. /package/dist/chunks/{worktree-982e01ww.js → schema-982e01ww.js} +0 -0
  750. /package/dist/chunks/{worktree-9a4afbnw.js → schema-9a4afbnw.js} +0 -0
  751. /package/dist/chunks/{worktree-9rqn6x4v.js → schema-9rqn6x4v.js} +0 -0
  752. /package/dist/chunks/{worktree-a1tpkmh4.js → schema-a1tpkmh4.js} +0 -0
  753. /package/dist/chunks/{worktree-af5trqkr.js → schema-af5trqkr.js} +0 -0
  754. /package/dist/chunks/{worktree-afrmfg78.js → schema-afrmfg78.js} +0 -0
  755. /package/dist/chunks/{worktree-aqzs7mqg.js → schema-aqzs7mqg.js} +0 -0
  756. /package/dist/chunks/{worktree-atq7p7m5.js → schema-atq7p7m5.js} +0 -0
  757. /package/dist/chunks/{worktree-bkyjaxrp.js → schema-bkyjaxrp.js} +0 -0
  758. /package/dist/chunks/{worktree-bmr6ed5q.js → schema-bmr6ed5q.js} +0 -0
  759. /package/dist/chunks/{worktree-cf4snx6d.js → schema-cf4snx6d.js} +0 -0
  760. /package/dist/chunks/{worktree-cvy3z8tj.js → schema-cvy3z8tj.js} +0 -0
  761. /package/dist/chunks/{worktree-d9fn303g.js → schema-d9fn303g.js} +0 -0
  762. /package/dist/chunks/{worktree-d9jj8t3e.js → schema-d9jj8t3e.js} +0 -0
  763. /package/dist/chunks/{worktree-dajrwvna.js → schema-dajrwvna.js} +0 -0
  764. /package/dist/chunks/{worktree-dap0rakb.js → schema-dap0rakb.js} +0 -0
  765. /package/dist/chunks/{worktree-df08tz66.js → schema-df08tz66.js} +0 -0
  766. /package/dist/chunks/{worktree-dy18nga0.js → schema-dy18nga0.js} +0 -0
  767. /package/dist/chunks/{worktree-e5kj55wp.js → schema-e5kj55wp.js} +0 -0
  768. /package/dist/chunks/{worktree-e73j6tqm.js → schema-e73j6tqm.js} +0 -0
  769. /package/dist/chunks/{worktree-eh3zwz77.js → schema-eh3zwz77.js} +0 -0
  770. /package/dist/chunks/{worktree-emrn6kk6.js → schema-emrn6kk6.js} +0 -0
  771. /package/dist/chunks/{worktree-f0mxakyp.js → schema-f0mxakyp.js} +0 -0
  772. /package/dist/chunks/{worktree-f6n9ztr4.js → schema-f6n9ztr4.js} +0 -0
  773. /package/dist/chunks/{worktree-faypxj3z.js → schema-faypxj3z.js} +0 -0
  774. /package/dist/chunks/{worktree-fd410y7t.js → schema-fd410y7t.js} +0 -0
  775. /package/dist/chunks/{worktree-fxgpk5d8.js → schema-fxgpk5d8.js} +0 -0
  776. /package/dist/chunks/{worktree-g4wezp1m.js → schema-g4wezp1m.js} +0 -0
  777. /package/dist/chunks/{worktree-g86h250q.js → schema-g86h250q.js} +0 -0
  778. /package/dist/chunks/{worktree-gebd4c9n.js → schema-gebd4c9n.js} +0 -0
  779. /package/dist/chunks/{worktree-hk9envan.js → schema-hk9envan.js} +0 -0
  780. /package/dist/chunks/{worktree-j2ntwpah.js → schema-j2ntwpah.js} +0 -0
  781. /package/dist/chunks/{worktree-j5zkgpj8.js → schema-j5zkgpj8.js} +0 -0
  782. /package/dist/chunks/{worktree-j935v87r.js → schema-j935v87r.js} +0 -0
  783. /package/dist/chunks/{worktree-jr7sbwjy.js → schema-jr7sbwjy.js} +0 -0
  784. /package/dist/chunks/{worktree-jwfs4k6c.js → schema-jwfs4k6c.js} +0 -0
  785. /package/dist/chunks/{worktree-jzg6c2d5.js → schema-jzg6c2d5.js} +0 -0
  786. /package/dist/chunks/{worktree-mntxs535.js → schema-mntxs535.js} +0 -0
  787. /package/dist/chunks/{worktree-mp448xyj.js → schema-mp448xyj.js} +0 -0
  788. /package/dist/chunks/{worktree-msx8hqn2.js → schema-msx8hqn2.js} +0 -0
  789. /package/dist/chunks/{worktree-n05xt0ee.js → schema-n05xt0ee.js} +0 -0
  790. /package/dist/chunks/{worktree-n3j8tn72.js → schema-n3j8tn72.js} +0 -0
  791. /package/dist/chunks/{worktree-njntx4h6.js → schema-njntx4h6.js} +0 -0
  792. /package/dist/chunks/{worktree-p8qxwesx.js → schema-p8qxwesx.js} +0 -0
  793. /package/dist/chunks/{worktree-q3sfg36h.js → schema-q3sfg36h.js} +0 -0
  794. /package/dist/chunks/{worktree-q74kybfr.js → schema-q74kybfr.js} +0 -0
  795. /package/dist/chunks/{worktree-qaymkmh1.js → schema-qaymkmh1.js} +0 -0
  796. /package/dist/chunks/{worktree-qb87gjwd.js → schema-qb87gjwd.js} +0 -0
  797. /package/dist/chunks/{worktree-qfa1cgps.js → schema-qfa1cgps.js} +0 -0
  798. /package/dist/chunks/{worktree-qrg20bc0.js → schema-qrg20bc0.js} +0 -0
  799. /package/dist/chunks/{worktree-rcb2kzg1.js → schema-rcb2kzg1.js} +0 -0
  800. /package/dist/chunks/{worktree-sdp7kfr6.js → schema-sdp7kfr6.js} +0 -0
  801. /package/dist/chunks/{worktree-se0s1eqw.js → schema-se0s1eqw.js} +0 -0
  802. /package/dist/chunks/{worktree-sk3qaz4a.js → schema-sk3qaz4a.js} +0 -0
  803. /package/dist/chunks/{worktree-ssg3fenm.js → schema-ssg3fenm.js} +0 -0
  804. /package/dist/chunks/{worktree-twg0f83k.js → schema-twg0f83k.js} +0 -0
  805. /package/dist/chunks/{worktree-w803qqfp.js → schema-w803qqfp.js} +0 -0
  806. /package/dist/chunks/{worktree-wer8tq1h.js → schema-wer8tq1h.js} +0 -0
  807. /package/dist/chunks/{worktree-wtztk69x.js → schema-wtztk69x.js} +0 -0
  808. /package/dist/chunks/{worktree-x0ckcb58.js → schema-x0ckcb58.js} +0 -0
  809. /package/dist/chunks/{worktree-x1b8g1yb.js → schema-x1b8g1yb.js} +0 -0
  810. /package/dist/chunks/{worktree-x61499pn.js → schema-x61499pn.js} +0 -0
  811. /package/dist/chunks/{worktree-y44na4kk.js → schema-y44na4kk.js} +0 -0
  812. /package/dist/chunks/{worktree-y8cydn3q.js → schema-y8cydn3q.js} +0 -0
  813. /package/dist/chunks/{worktree-ygaqb7jw.js → schema-ygaqb7jw.js} +0 -0
  814. /package/dist/chunks/{worktree-z9919s4g.js → schema-z9919s4g.js} +0 -0
@@ -1,34 +1,38 @@
1
1
  import {
2
2
  Metadata2,
3
3
  useragent2,
4
- node76
5
- } from "./worktree-b08spypp.js";
4
+ node67
5
+ } from "./schema-ga3x3tkz.js";
6
6
  import {
7
- Service59,
8
- node62
9
- } from "./worktree-7dz4r7mk.js";
7
+ provenance2,
8
+ compatible2
9
+ } from "./schema-rqdcv1n1.js";
10
+ import {
11
+ Service69,
12
+ node73
13
+ } from "./schema-54y1e3qg.js";
10
14
  import {
11
15
  DeclinedError2
12
- } from "./worktree-471a560f.js";
16
+ } from "./schema-hsq9qkqb.js";
13
17
  import {
14
18
  CancelledError2
15
- } from "./worktree-qbddy52q.js";
19
+ } from "./schema-qwh8c2js.js";
16
20
  import {
17
- Error3
18
- } from "./worktree-dssx1y55.js";
21
+ Error4
22
+ } from "./schema-23bjxdcp.js";
19
23
  import {
20
- Service31,
21
- node36
22
- } from "./worktree-zn2cbnfs.js";
24
+ Service32,
25
+ node37
26
+ } from "./schema-1nt798q2.js";
23
27
  import {
24
- make13
25
- } from "./worktree-e82z9tr0.js";
28
+ make15
29
+ } from "./schema-hjt4xg1x.js";
26
30
  import {
27
31
  toLLMMessages2
28
- } from "./worktree-zbjnn3ac.js";
32
+ } from "./schema-v72m8j26.js";
29
33
  import {
30
34
  __export
31
- } from "./worktree-9rqn6x4v.js";
35
+ } from "./schema-9rqn6x4v.js";
32
36
 
33
37
  // src/session/model-request.ts
34
38
  var exports_model_request = {};
@@ -37,7 +41,7 @@ __export(exports_model_request, {
37
41
  SessionModelRequest: () => exports_model_request,
38
42
  baseTranscript: () => baseTranscript2,
39
43
  boundImages: () => boundImages2,
40
- layer: () => layer11,
44
+ layer: () => layer12,
41
45
  node: () => node35,
42
46
  unsupportedParts: () => unsupportedParts2
43
47
  });
@@ -58,7 +62,7 @@ var baseTranscript2 = (input) => {
58
62
  return {
59
63
  providerMetadataKey,
60
64
  system: [
61
- input.agent.system ? input.agent.system : make13(input.tools.definitions.map((tool) => tool.name)),
65
+ input.agent.system ? input.agent.system : make15(input.tools.definitions.map((tool) => tool.name)),
62
66
  input.initial
63
67
  ].filter((part) => part.length > 0).map(SystemPart.make),
64
68
  messages: toLLMMessages2(input.messages, input.model.ref, providerMetadataKey)
@@ -187,9 +191,9 @@ var httpMiddleware = (hooks, scope) => (request, handler) => Effect.gen(function
187
191
 
188
192
  class Service30 extends Context.Service()("@opencode/SessionModelRequest") {
189
193
  }
190
- var layer11 = Layer.effect(Service30, Effect.gen(function* () {
191
- const hooks = yield* Service59;
192
- const transport = yield* Service31;
194
+ var layer12 = Layer.effect(Service30, Effect.gen(function* () {
195
+ const hooks = yield* Service69;
196
+ const transport = yield* Service32;
193
197
  const app = yield* Metadata2;
194
198
  const prepare = Effect.fn("SessionModelRequest.prepare")(function* (input) {
195
199
  const session = input.scope.session;
@@ -197,7 +201,7 @@ var layer11 = Layer.effect(Service30, Effect.gen(function* () {
197
201
  const model = resolved.model;
198
202
  const tools = input.scope.tools ?? {
199
203
  definitions: [],
200
- execute: () => new Error3({ message: "Tools are not available for this request" })
204
+ execute: () => new Error4({ message: "Tools are not available for this request" })
201
205
  };
202
206
  const registry = new Map(tools.definitions.map((tool) => [tool.name, tool]));
203
207
  const given = new Map(tools.definitions.map((tool) => [{ description: tool.description, input: { ...tool.inputSchema } }, tool]));
@@ -233,6 +237,9 @@ var layer11 = Layer.effect(Service30, Effect.gen(function* () {
233
237
  generation: Object.keys(context.generation).length === 0 ? undefined : context.generation,
234
238
  providerOptions: Object.keys(context.providerOptions).length === 0 ? undefined : context.providerOptions
235
239
  }));
240
+ const selected = provenance2(resolved);
241
+ if (selected && !compatible2(selected, provenance2({ model: request.model, ref: resolved.ref })) && request.messages.some((message) => message.content.some((part) => part.type === "compaction")))
242
+ return yield* Effect.die(new Error("Provider context is incompatible with the route selected by model request hooks"));
236
243
  const hasHttpHooks = (yield* hooks.has("session", "http.request", resolved.ref.providerID)) || (yield* hooks.has("session", "http.response", resolved.ref.providerID));
237
244
  const webSocket = resolved.capabilities.responsesWebsockets === true ? yield* Config.boolean(responsesWebSocketFlag(resolved.ref.providerID)).pipe(Config.withDefault(false), Effect.orDie) : false;
238
245
  const http = hasHttpHooks ? httpMiddleware(hooks, {
@@ -258,8 +265,8 @@ var layer11 = Layer.effect(Service30, Effect.gen(function* () {
258
265
  }));
259
266
  var node35 = makeLocationNode({
260
267
  service: Service30,
261
- layer: layer11,
262
- deps: [node62, node36, node76]
268
+ layer: layer12,
269
+ deps: [node73, node37, node67]
263
270
  });
264
271
 
265
- export { baseTranscript2, unsupportedParts2, boundImages2, Service30, layer11, node35, exports_model_request };
272
+ export { baseTranscript2, unsupportedParts2, boundImages2, Service30, layer12, node35, exports_model_request };
@@ -1,34 +1,34 @@
1
1
  import {
2
2
  Service80
3
- } from "./worktree-d4w17cfe.js";
3
+ } from "./schema-fv0bxyhd.js";
4
4
  import {
5
5
  Service79
6
- } from "./worktree-dng5ka12.js";
6
+ } from "./schema-6qptncg2.js";
7
7
  import {
8
- Service42
9
- } from "./worktree-enw72f67.js";
8
+ Service46
9
+ } from "./schema-sy7czwgb.js";
10
10
  import {
11
11
  RelativePath2
12
- } from "./worktree-p8qxwesx.js";
12
+ } from "./schema-p8qxwesx.js";
13
13
  import {
14
- ID16,
15
- Service75
16
- } from "./worktree-qyv79zw0.js";
14
+ ID6,
15
+ Service41
16
+ } from "./schema-p7v84xw5.js";
17
17
  import {
18
18
  SessionEvent2
19
- } from "./worktree-mntxs535.js";
19
+ } from "./schema-mntxs535.js";
20
20
  import {
21
21
  SessionMessage2
22
- } from "./worktree-982e01ww.js";
22
+ } from "./schema-982e01ww.js";
23
23
  import {
24
24
  MessageNotFoundError2
25
- } from "./worktree-t5h4rs02.js";
25
+ } from "./schema-2cr5jxfp.js";
26
26
  import {
27
27
  SessionMessageTable2
28
- } from "./worktree-hrvm11jt.js";
28
+ } from "./schema-hrvm11jt.js";
29
29
  import {
30
30
  __export
31
- } from "./worktree-9rqn6x4v.js";
31
+ } from "./schema-9rqn6x4v.js";
32
32
 
33
33
  // src/session/revert.ts
34
34
  var exports_revert = {};
@@ -42,12 +42,12 @@ __export(exports_revert, {
42
42
  import { and, asc, eq, gt } from "drizzle-orm";
43
43
  import { Effect, Schema } from "effect";
44
44
  var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
45
- const instances = yield* Service42;
45
+ const instances = yield* Service46;
46
46
  const database = yield* Service80;
47
47
  const bus = yield* Service79;
48
48
  return yield* Effect.gen(function* () {
49
- const snapshot = yield* Service75;
50
- const original = input.session.revert?.snapshot ? ID16.make(input.session.revert.snapshot) : yield* snapshot.capture();
49
+ const snapshot = yield* Service41;
50
+ const original = input.session.revert?.snapshot ? ID6.make(input.session.revert.snapshot) : yield* snapshot.capture();
51
51
  const next = yield* plan(database.db, { sessionID: input.session.id, messageID: input.messageID });
52
52
  const restore = new Map;
53
53
  if (original) {
@@ -74,13 +74,13 @@ var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
74
74
  }).pipe(instances.provide(input.session));
75
75
  });
76
76
  var clear2 = Effect.fn("SessionRevert.clear")(function* (session) {
77
- const instances = yield* Service42;
77
+ const instances = yield* Service46;
78
78
  const bus = yield* Service79;
79
79
  yield* Effect.gen(function* () {
80
- const snapshot = yield* Service75;
80
+ const snapshot = yield* Service41;
81
81
  if (!session.revert)
82
82
  return;
83
- const original = session.revert.snapshot ? ID16.make(session.revert.snapshot) : undefined;
83
+ const original = session.revert.snapshot ? ID6.make(session.revert.snapshot) : undefined;
84
84
  if (original)
85
85
  yield* snapshot.restore({
86
86
  files: new Map((session.revert.files ?? []).map((file) => [RelativePath2.make(file.file), original]))
@@ -111,7 +111,7 @@ var plan = Effect.fn("SessionRevert.plan")(function* (db, input) {
111
111
  continue;
112
112
  for (const file of message.snapshot.files ?? [])
113
113
  if (!files.has(file))
114
- files.set(file, ID16.make(message.snapshot.start));
114
+ files.set(file, ID6.make(message.snapshot.start));
115
115
  }
116
116
  return files;
117
117
  });
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  useragent2
3
- } from "./worktree-b08spypp.js";
3
+ } from "./schema-ga3x3tkz.js";
4
4
  import {
5
- ID14
6
- } from "./worktree-zkj92s1w.js";
5
+ ID17
6
+ } from "./schema-xfrwv263.js";
7
7
  import {
8
8
  iife2
9
- } from "./worktree-1kg9ymc8.js";
9
+ } from "./schema-1kg9ymc8.js";
10
10
  import {
11
11
  configuredSettings2
12
- } from "./worktree-hevn35yy.js";
12
+ } from "./schema-1s4vv42h.js";
13
13
 
14
14
  // src/plugin/provider/cloudflare-ai-gateway.ts
15
15
  import os from "os";
16
16
  import { Effect, Option, Schema } from "effect";
17
17
  import { define } from "@opencode-ai/plugin/effect/plugin";
18
18
  import { Form } from "@opencode-ai/schema/form";
19
- var providerID = ID14.make("cloudflare-ai-gateway");
19
+ var providerID = ID17.make("cloudflare-ai-gateway");
20
20
  var CloudflareAIGatewayPlugin2 = define({
21
21
  id: "opencode.provider.cloudflare.ai.gateway",
22
22
  effect: Effect.fn(function* (ctx) {
@@ -1,54 +1,54 @@
1
1
  import {
2
2
  Service80,
3
3
  node85
4
- } from "./worktree-d4w17cfe.js";
4
+ } from "./schema-fv0bxyhd.js";
5
5
  import {
6
6
  reserveSequence2,
7
7
  Service79,
8
8
  node84
9
- } from "./worktree-dng5ka12.js";
9
+ } from "./schema-6qptncg2.js";
10
10
  import {
11
11
  SessionEvent2
12
- } from "./worktree-mntxs535.js";
12
+ } from "./schema-mntxs535.js";
13
13
  import {
14
14
  SessionMessage2
15
- } from "./worktree-982e01ww.js";
15
+ } from "./schema-982e01ww.js";
16
16
  import {
17
- update2
18
- } from "./worktree-yfbd16n1.js";
17
+ update3
18
+ } from "./schema-81htp2jj.js";
19
19
  import {
20
20
  AbsolutePath2,
21
21
  RelativePath2
22
- } from "./worktree-p8qxwesx.js";
22
+ } from "./schema-p8qxwesx.js";
23
23
  import {
24
24
  ProjectTable2
25
- } from "./worktree-9qm9egsn.js";
25
+ } from "./schema-9qm9egsn.js";
26
26
  import {
27
27
  SessionTable2,
28
28
  SessionMessageTable2,
29
29
  SessionInboxTable2
30
- } from "./worktree-hrvm11jt.js";
30
+ } from "./schema-hrvm11jt.js";
31
31
  import {
32
32
  projectAdmitted2,
33
33
  projectDelivered2,
34
34
  projectCancelled2,
35
35
  projectDeliveryChanged2
36
- } from "./worktree-avwxaxy8.js";
36
+ } from "./schema-8mvvefrh.js";
37
37
  import {
38
38
  apply2,
39
39
  initialize3,
40
40
  advanceEpoch2,
41
41
  reset2
42
- } from "./worktree-45aqx2pr.js";
42
+ } from "./schema-rm3yzcsd.js";
43
43
  import {
44
44
  initialize2
45
- } from "./worktree-5d98etyc.js";
45
+ } from "./schema-zmgxegv8.js";
46
46
  import {
47
47
  Slug2
48
- } from "./worktree-gebd4c9n.js";
48
+ } from "./schema-gebd4c9n.js";
49
49
  import {
50
50
  __export
51
- } from "./worktree-9rqn6x4v.js";
51
+ } from "./schema-9rqn6x4v.js";
52
52
 
53
53
  // src/session/projector.ts
54
54
  var exports_projector = {};
@@ -245,7 +245,7 @@ function run(db, event) {
245
245
  updateCompaction: updateMessage,
246
246
  appendMessage
247
247
  };
248
- yield* update2(adapter, event);
248
+ yield* update3(adapter, event);
249
249
  });
250
250
  }
251
251
  function insertMessage(db, event, message) {
@@ -1,13 +1,13 @@
1
1
  import {
2
- ID13,
2
+ ID16,
3
3
  Family2
4
- } from "./worktree-k3skpd5n.js";
4
+ } from "./schema-yx2cz2pp.js";
5
5
  import {
6
- Service62
7
- } from "./worktree-xpxmebhh.js";
6
+ Service66
7
+ } from "./schema-vecstcyh.js";
8
8
  import {
9
9
  foldSettings2
10
- } from "./worktree-hevn35yy.js";
10
+ } from "./schema-1s4vv42h.js";
11
11
 
12
12
  // src/plugin/provider/ollama.ts
13
13
  import { define } from "@opencode-ai/plugin/effect/plugin";
@@ -45,12 +45,12 @@ var ShowResponse = Schema.Struct({
45
45
  });
46
46
  var discovery = new Map;
47
47
  var discoveryLock = Semaphore.makeUnsafe(1);
48
- function make7(origin = "http://127.0.0.1:11434", interval = "30 seconds") {
48
+ function make6(origin = "http://127.0.0.1:11434", interval = "30 seconds") {
49
49
  return define({
50
50
  id: "opencode.provider.ollama",
51
51
  effect: Effect.fn(function* (ctx) {
52
52
  const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
53
- const config = yield* Service62;
53
+ const config = yield* Service66;
54
54
  const source = { current: configured(yield* config.entries(), origin) };
55
55
  const loaded = { models: [], hash: "[]" };
56
56
  yield* ctx.integration.transform((integrations) => {
@@ -77,7 +77,7 @@ function make7(origin = "http://127.0.0.1:11434", interval = "30 seconds") {
77
77
  });
78
78
  for (const item of loaded.models) {
79
79
  catalog.model.update(providerID, item.model, (model) => {
80
- model.modelID = ID13.make(item.model);
80
+ model.modelID = ID16.make(item.model);
81
81
  model.name = item.name || item.model;
82
82
  model.family = item.show.details?.family ? Family2.make(item.show.details.family) : item.details.family ? Family2.make(item.details.family) : undefined;
83
83
  model.capabilities = {
@@ -151,7 +151,7 @@ function make7(origin = "http://127.0.0.1:11434", interval = "30 seconds") {
151
151
  })
152
152
  });
153
153
  }
154
- var OllamaPlugin2 = make7();
154
+ var OllamaPlugin2 = make6();
155
155
  function configured(entries, origin) {
156
156
  const settings = foldSettings2(entries, providerID, undefined);
157
157
  const baseURL = (typeof settings?.baseURL === "string" ? settings.baseURL : `${origin.replace(/\/+$/, "")}/v1`).replace(/\/+$/, "");
@@ -170,4 +170,4 @@ function configured(entries, origin) {
170
170
  return { baseURL, apiKey, tagsEndpoint, showEndpoint: url.toString() };
171
171
  }
172
172
 
173
- export { make7, OllamaPlugin2 };
173
+ export { make6, OllamaPlugin2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./worktree-9rqn6x4v.js";
3
+ } from "./schema-9rqn6x4v.js";
4
4
 
5
5
  // src/config/plugin/entry-observer.ts
6
6
  var exports_entry_observer = {};
@@ -1,12 +1,12 @@
1
1
  import {
2
- Service54
3
- } from "./worktree-xgqr5ys9.js";
2
+ Service61
3
+ } from "./schema-4p7snnyp.js";
4
4
  import {
5
- Service48
6
- } from "./worktree-471a560f.js";
5
+ Service54
6
+ } from "./schema-hsq9qkqb.js";
7
7
  import {
8
8
  __export
9
- } from "./worktree-9rqn6x4v.js";
9
+ } from "./schema-9rqn6x4v.js";
10
10
 
11
11
  // src/tool/plugin/question.ts
12
12
  var exports_question = {};
@@ -53,8 +53,8 @@ var toModelContent7 = (questions, answers) => {
53
53
  var Plugin45 = {
54
54
  id: "opencode.tool.question",
55
55
  effect: Effect.fn("QuestionTool.Plugin")(function* (ctx) {
56
- const forms = yield* Service54;
57
- const permission = yield* Service48;
56
+ const forms = yield* Service61;
57
+ const permission = yield* Service54;
58
58
  yield* ctx.tool.transform((editor) => editor.add({
59
59
  name: name13,
60
60
  options: { codemode: false },
@@ -1,15 +1,15 @@
1
1
  import {
2
- Service74
3
- } from "./worktree-fmanbg8s.js";
2
+ Service51
3
+ } from "./schema-2t24vjmc.js";
4
4
  import {
5
- Service42
6
- } from "./worktree-enw72f67.js";
5
+ Service46
6
+ } from "./schema-sy7czwgb.js";
7
7
  import {
8
8
  awaitActivation2
9
- } from "./worktree-rap9a73h.js";
9
+ } from "./schema-rap9a73h.js";
10
10
  import {
11
11
  __export
12
- } from "./worktree-9rqn6x4v.js";
12
+ } from "./schema-9rqn6x4v.js";
13
13
 
14
14
  // src/session/command.ts
15
15
  var exports_command3 = {};
@@ -19,8 +19,8 @@ __export(exports_command3, {
19
19
  });
20
20
  import { Effect } from "effect";
21
21
  var execute2 = Effect.fn("SessionCommand.execute")(function* (input) {
22
- const instances = yield* Service42;
23
- const commands = yield* awaitActivation2.pipe(Effect.andThen(Service74), instances.provide(input.session));
22
+ const instances = yield* Service46;
23
+ const commands = yield* awaitActivation2.pipe(Effect.andThen(Service51), instances.provide(input.session));
24
24
  yield* commands.execute({
25
25
  name: input.command,
26
26
  invocation: {
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  PositiveInt2
3
- } from "./worktree-p8qxwesx.js";
3
+ } from "./schema-p8qxwesx.js";
4
4
  import {
5
5
  __export
6
- } from "./worktree-9rqn6x4v.js";
6
+ } from "./schema-9rqn6x4v.js";
7
7
 
8
8
  // src/v1/config/attachment.ts
9
9
  var exports_attachment = {};
10
10
  __export(exports_attachment, {
11
11
  ConfigAttachmentV1: () => exports_attachment,
12
12
  Image: () => Image2,
13
- Info: () => Info21
13
+ Info: () => Info25
14
14
  });
15
15
  import { Schema } from "effect";
16
16
  var Image2 = Schema.Struct({
@@ -27,8 +27,8 @@ var Image2 = Schema.Struct({
27
27
  description: "Maximum base64 payload bytes for an image attachment (default: 5242880)"
28
28
  })
29
29
  }).annotate({ identifier: "ImageAttachmentConfig" });
30
- var Info21 = Schema.Struct({
30
+ var Info25 = Schema.Struct({
31
31
  image: Schema.optional(Image2).annotate({ description: "Image attachment configuration" })
32
32
  }).annotate({ identifier: "AttachmentConfig" });
33
33
 
34
- export { Image2, Info21, exports_attachment };
34
+ export { Image2, Info25, exports_attachment };
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  parseOption2
3
- } from "./worktree-5daktx2q.js";
3
+ } from "./schema-5daktx2q.js";
4
4
  import {
5
5
  AbsolutePath2
6
- } from "./worktree-p8qxwesx.js";
6
+ } from "./schema-p8qxwesx.js";
7
7
  import {
8
8
  ID5,
9
9
  Name2
10
- } from "./worktree-x4ndt50x.js";
10
+ } from "./schema-e8qch614.js";
11
11
  import {
12
12
  __export
13
- } from "./worktree-9rqn6x4v.js";
13
+ } from "./schema-9rqn6x4v.js";
14
14
 
15
15
  // src/config/plugin/skill-file.ts
16
16
  var exports_skill_file = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./worktree-p8qxwesx.js";
3
+ } from "./schema-p8qxwesx.js";
4
4
 
5
5
  // src/database/path.ts
6
6
  import nodePath from "path";
@@ -1,88 +1,80 @@
1
1
  import {
2
- Service57
3
- } from "./worktree-kk0awzkj.js";
2
+ Service70
3
+ } from "./schema-trhjdf47.js";
4
4
  import {
5
- Service19,
5
+ Service18,
6
6
  readText2,
7
7
  syncTextBom2
8
- } from "./worktree-ht4ejyw1.js";
8
+ } from "./schema-fee8q97m.js";
9
9
  import {
10
- Service70
11
- } from "./worktree-jkzajkdb.js";
10
+ Service20
11
+ } from "./schema-w7xrk89n.js";
12
12
  import {
13
- externalDirectoryPermission2,
14
- Service22
15
- } from "./worktree-ynqmrvb3.js";
13
+ Service54
14
+ } from "./schema-hsq9qkqb.js";
16
15
  import {
17
- Service48
18
- } from "./worktree-471a560f.js";
16
+ Service19
17
+ } from "./schema-yjw6p547.js";
19
18
  import {
20
19
  fileDiff2
21
- } from "./worktree-6prwharc.js";
20
+ } from "./schema-6prwharc.js";
22
21
  import {
23
22
  __export
24
- } from "./worktree-9rqn6x4v.js";
23
+ } from "./schema-9rqn6x4v.js";
25
24
 
26
25
  // src/tool/plugin/write.ts
27
26
  var exports_write = {};
28
27
  __export(exports_write, {
29
- Input: () => Input4,
30
- Output: () => Output3,
31
- Plugin: () => Plugin4,
28
+ Input: () => Input2,
29
+ Output: () => Output2,
30
+ Plugin: () => Plugin33,
32
31
  WriteTool: () => exports_write,
33
- name: () => name4,
32
+ name: () => name2,
34
33
  toModelContent: () => toModelContent2
35
34
  });
36
35
  import { ToolFailure } from "@opencode-ai/ai";
37
36
  import { Effect, Schema } from "effect";
38
37
  import { Bom } from "@opencode-ai/util/bom";
39
- var name4 = "write";
40
- var Input4 = Schema.Struct({
38
+ var name2 = "write";
39
+ var Input2 = Schema.Struct({
41
40
  path: Schema.String.annotate({
42
41
  description: "Path to the file to write to"
43
42
  }),
44
43
  content: Schema.String.annotate({ description: "Content to write to the file" })
45
44
  });
46
- var Output3 = Schema.Struct({
45
+ var Output2 = Schema.Struct({
47
46
  operation: Schema.Literal("write"),
48
47
  target: Schema.String,
49
48
  resource: Schema.String,
50
49
  existed: Schema.Boolean
51
50
  });
52
51
  var toModelContent2 = (output) => `${output.existed ? "Wrote" : "Created"} file successfully: ${output.resource}`;
53
- var Plugin4 = {
52
+ var Plugin33 = {
54
53
  id: "opencode.tool.write",
55
54
  effect: Effect.fn("WriteTool.Plugin")(function* (ctx) {
56
- const mutation = yield* Service22;
57
- const fileMutation = yield* Service19;
58
- const environment = yield* Service57;
59
- const formatter = yield* Service70;
60
- const permission = yield* Service48;
55
+ const access = yield* Service19;
56
+ const fileMutation = yield* Service18;
57
+ const environment = yield* Service70;
58
+ const formatter = yield* Service20;
59
+ const permission = yield* Service54;
61
60
  yield* ctx.tool.transform((editor) => editor.add({
62
- name: name4,
61
+ name: name2,
63
62
  options: { codemode: false, permission: "edit" },
64
63
  description: `Writes a file to the local filesystem, overwriting if one exists.
65
64
 
66
65
  Missing parent directories are created automatically.
67
66
 
68
67
  Use this tool to create new files or overwrite existing files. For partial changes, use the edit tool instead.`,
69
- input: Input4,
70
- output: Output3,
68
+ input: Input2,
69
+ output: Output2,
71
70
  execute: (input, context) => Effect.gen(function* () {
72
71
  const source = {
73
72
  type: "tool",
74
73
  messageID: context.messageID,
75
74
  id: context.id
76
75
  };
77
- const target = yield* mutation.resolve({ path: input.path, kind: "file" });
78
- const external = target.externalDirectory;
79
- if (external)
80
- yield* permission.assert({
81
- ...externalDirectoryPermission2(external),
82
- sessionID: context.sessionID,
83
- agent: context.agent,
84
- source
85
- });
76
+ const target = yield* access.resolve({ path: input.path, kind: "file" });
77
+ yield* access.authorizeExternal([target], context);
86
78
  const current = yield* readText2(environment.files, target.absolute).pipe(Effect.catchTag("Environment.NotFound", () => Effect.undefined));
87
79
  const next = Bom.split(input.content);
88
80
  const preview = fileDiff2(target.resource, current?.text ?? "", next.text, current ? "modified" : "added");
@@ -106,4 +98,4 @@ Use this tool to create new files or overwrite existing files. For partial chang
106
98
  })
107
99
  };
108
100
 
109
- export { name4, Input4, Output3, toModelContent2, Plugin4, exports_write };
101
+ export { name2, Input2, Output2, toModelContent2, Plugin33, exports_write };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  jitCompatCheck2
3
- } from "./worktree-emrn6kk6.js";
3
+ } from "./schema-emrn6kk6.js";
4
4
  import {
5
5
  SQLiteEffectDatabase2
6
- } from "./worktree-mfpdf0ta.js";
6
+ } from "./schema-x71fjkw5.js";
7
7
  import {
8
8
  EffectSQLiteSession2
9
- } from "./worktree-y14y9keq.js";
9
+ } from "./schema-ps2ypmnz.js";
10
10
 
11
11
  // src/database/drizzle/effect-sqlite/driver.ts
12
12
  import * as Effect from "effect/Effect";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./worktree-9rqn6x4v.js";
3
+ } from "./schema-9rqn6x4v.js";
4
4
 
5
5
  // src/plugin/service.ts
6
6
  var exports_service = {};