@opencode-ai/core 0.0.0-beta-19228 → 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 (815) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +81 -81
  3. package/dist/aisdk-native.js +2 -2
  4. package/dist/aisdk.js +6 -6
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +73 -73
  7. package/dist/catalog.js +77 -77
  8. package/dist/chunks/{integration-sh7bh2kf.js → schema-01w7s3hf.js} +5 -5
  9. package/dist/chunks/{integration-0e0xafbb.js → schema-0e0xafbb.js} +2 -2
  10. package/dist/chunks/{integration-0paq2nw3.js → schema-0paq2nw3.js} +1 -1
  11. package/dist/chunks/{integration-0q0f95c6.js → schema-0q0f95c6.js} +1 -1
  12. package/dist/chunks/{integration-az4t7x9p.js → schema-0qvt9njx.js} +39 -39
  13. package/dist/chunks/{integration-jp7d3tsh.js → schema-0r9t8f77.js} +18 -18
  14. package/dist/chunks/{integration-0s9ayhjt.js → schema-0s9ayhjt.js} +1 -1
  15. package/dist/chunks/{integration-mq9r6drf.js → schema-0vqp07g5.js} +3 -3
  16. package/dist/chunks/{integration-a4rgs0hc.js → schema-17hja9f4.js} +6 -6
  17. package/dist/chunks/{integration-e1rfyyrx.js → schema-1awmdn6g.js} +6 -6
  18. package/dist/chunks/{integration-1ct4r87x.js → schema-1ct4r87x.js} +1 -1
  19. package/dist/chunks/{integration-hf3t0h2k.js → schema-1hnatcq2.js} +6 -6
  20. package/dist/chunks/{integration-t3jgv66k.js → schema-1nt798q2.js} +11 -11
  21. package/dist/chunks/{integration-30z9ekqv.js → schema-1s4vv42h.js} +5 -5
  22. package/dist/chunks/{integration-tkhgbb47.js → schema-1v896bp7.js} +17 -17
  23. package/dist/chunks/{integration-n0tc3be6.js → schema-20evr3mp.js} +11 -11
  24. package/dist/chunks/{integration-21r38tys.js → schema-21r38tys.js} +1 -1
  25. package/dist/chunks/{integration-8aa81zbh.js → schema-234pz9hm.js} +14 -14
  26. package/dist/chunks/{integration-amcb702e.js → schema-23bjxdcp.js} +24 -24
  27. package/dist/chunks/{integration-4qnq6xhv.js → schema-23r2qrzy.js} +39 -39
  28. package/dist/chunks/{integration-6h73sxmp.js → schema-2402vzrj.js} +5 -5
  29. package/dist/chunks/{integration-z63w68vq.js → schema-29x78va6.js} +6 -6
  30. package/dist/chunks/{integration-qja7rspw.js → schema-2a1acymz.js} +8 -8
  31. package/dist/chunks/{integration-2a5m3afh.js → schema-2a5m3afh.js} +1 -1
  32. package/dist/chunks/{integration-pe587v0q.js → schema-2cr5jxfp.js} +7 -7
  33. package/dist/chunks/{integration-m5kbf3jc.js → schema-2g49wpqd.js} +11 -11
  34. package/dist/chunks/{integration-2ht70gj7.js → schema-2ht70gj7.js} +1 -1
  35. package/dist/chunks/{integration-vmb983vf.js → schema-2t24vjmc.js} +25 -25
  36. package/dist/chunks/{integration-5nrew705.js → schema-35ng7dkh.js} +5 -5
  37. package/dist/chunks/{integration-rn3ywvk5.js → schema-39k66fkr.js} +23 -23
  38. package/dist/chunks/{integration-3fc6dm20.js → schema-3fc6dm20.js} +1 -1
  39. package/dist/chunks/{integration-sspp9p5y.js → schema-3g0e3esv.js} +18 -18
  40. package/dist/chunks/{integration-3hepkmqq.js → schema-3hepkmqq.js} +1 -1
  41. package/dist/chunks/{integration-j83byb14.js → schema-3j8sdtpz.js} +4 -4
  42. package/dist/chunks/{integration-3qzbfqsy.js → schema-3qzbfqsy.js} +2 -2
  43. package/dist/chunks/{integration-3smtnn6g.js → schema-3smtnn6g.js} +1 -1
  44. package/dist/chunks/{integration-3tvqynh2.js → schema-3tvqynh2.js} +1 -1
  45. package/dist/chunks/{integration-zbp985em.js → schema-418ebam3.js} +4 -4
  46. package/dist/chunks/{integration-454k5vzh.js → schema-454k5vzh.js} +1 -1
  47. package/dist/chunks/{integration-5vxncqj9.js → schema-46e97tr7.js} +10 -10
  48. package/dist/chunks/{integration-xtrrbz3n.js → schema-4a774hnm.js} +17 -17
  49. package/dist/chunks/{integration-a8z03gk5.js → schema-4jtjn2gj.js} +24 -24
  50. package/dist/chunks/{integration-czarjmjc.js → schema-4p7snnyp.js} +24 -24
  51. package/dist/chunks/{integration-4r2nyarf.js → schema-4r2nyarf.js} +1 -1
  52. package/dist/chunks/{integration-m1rpt5yb.js → schema-525tn4kx.js} +2 -2
  53. package/dist/chunks/{integration-rke5v8gv.js → schema-54m6nc3n.js} +2 -2
  54. package/dist/chunks/schema-54v3xmsq.js +22 -0
  55. package/dist/chunks/{integration-327n2tt7.js → schema-54y1e3qg.js} +8 -8
  56. package/dist/chunks/{integration-5daktx2q.js → schema-5daktx2q.js} +1 -1
  57. package/dist/chunks/{integration-5fmxt4p5.js → schema-5fmxt4p5.js} +1 -1
  58. package/dist/chunks/{integration-5jvc5tg2.js → schema-5jvc5tg2.js} +1 -1
  59. package/dist/chunks/{integration-1n116cmy.js → schema-637qq8n2.js} +9 -9
  60. package/dist/chunks/{integration-2gk5cp3r.js → schema-686b062j.js} +15 -15
  61. package/dist/chunks/{integration-pgaw07cd.js → schema-6926ty5t.js} +8 -8
  62. package/dist/chunks/{integration-gmfar029.js → schema-6bsa9frc.js} +15 -15
  63. package/dist/chunks/{integration-mtcjf44p.js → schema-6e958v7x.js} +4 -4
  64. package/dist/chunks/{integration-2pvtkfrt.js → schema-6fpeds7j.js} +12 -12
  65. package/dist/chunks/{integration-5phv6q8y.js → schema-6gdx6h15.js} +10 -10
  66. package/dist/chunks/{integration-scmtthwv.js → schema-6qptncg2.js} +16 -16
  67. package/dist/chunks/{integration-mmb49dvx.js → schema-6y0247yb.js} +9 -9
  68. package/dist/chunks/{integration-711hfp6y.js → schema-711hfp6y.js} +2 -2
  69. package/dist/chunks/{integration-72nftnjy.js → schema-72nftnjy.js} +2 -2
  70. package/dist/chunks/{integration-p8j18qeb.js → schema-74y2dvrh.js} +34 -34
  71. package/dist/chunks/{integration-ezt9sm97.js → schema-7a2q0zfc.js} +6 -6
  72. package/dist/chunks/{integration-7bmhse3q.js → schema-7bmhse3q.js} +1 -1
  73. package/dist/chunks/{integration-9exd6xtw.js → schema-7d8vear2.js} +1 -1
  74. package/dist/chunks/{integration-2k8khapm.js → schema-7dqw4kz8.js} +5 -5
  75. package/dist/chunks/{integration-gdkjhw4h.js → schema-7e1496vv.js} +27 -4
  76. package/dist/chunks/{integration-xzhshwgm.js → schema-7gg2m3zr.js} +15 -12
  77. package/dist/chunks/{integration-y3c3mzvm.js → schema-7gq8qbc1.js} +18 -18
  78. package/dist/chunks/{integration-7s54ph47.js → schema-7rv5x4wn.js} +16 -16
  79. package/dist/chunks/{integration-7w3s9kd0.js → schema-7sd9q442.js} +6 -6
  80. package/dist/chunks/{integration-kfrje9nb.js → schema-7w1c3z11.js} +28 -28
  81. package/dist/chunks/schema-7zk4hah4.js +4 -0
  82. package/dist/chunks/{integration-r4e2f98f.js → schema-7zsnkm1p.js} +36 -44
  83. package/dist/chunks/{integration-bpnz08mb.js → schema-809xf7e2.js} +2 -2
  84. package/dist/chunks/{integration-z4btfpw8.js → schema-81ggxfts.js} +9 -9
  85. package/dist/chunks/{integration-yfbd16n1.js → schema-81htp2jj.js} +7 -5
  86. package/dist/chunks/{integration-4ktjq5jv.js → schema-85jr47cf.js} +13 -9
  87. package/dist/chunks/{integration-tpg9ytbh.js → schema-8ak5gdn6.js} +14 -14
  88. package/dist/chunks/{integration-wy76m6zk.js → schema-8aw20fxv.js} +187 -92
  89. package/dist/chunks/{integration-0arvn5f6.js → schema-8ay24fmk.js} +21 -21
  90. package/dist/chunks/{integration-tm74we8j.js → schema-8d0pmt0f.js} +10 -10
  91. package/dist/chunks/{integration-5fq934vj.js → schema-8da146zc.js} +5 -5
  92. package/dist/chunks/{integration-radpzgs0.js → schema-8gsst550.js} +18 -18
  93. package/dist/chunks/{integration-0khar44x.js → schema-8h2x3rhz.js} +11 -11
  94. package/dist/chunks/{integration-2571w2b0.js → schema-8jn5w37c.js} +5 -5
  95. package/dist/chunks/{integration-56kfp8bc.js → schema-8mvvefrh.js} +22 -22
  96. package/dist/chunks/{integration-3jwyfetg.js → schema-8x2kyzb6.js} +8 -8
  97. package/dist/chunks/{integration-1jp9daeg.js → schema-92mcpazx.js} +5 -5
  98. package/dist/chunks/{integration-4ha7507h.js → schema-934rg3e5.js} +23 -23
  99. package/dist/chunks/{integration-93a8yfjt.js → schema-93a8yfjt.js} +2 -2
  100. package/dist/chunks/{integration-dz86g41b.js → schema-9c51rpw1.js} +9 -9
  101. package/dist/chunks/{integration-vjxchawq.js → schema-9k252bfj.js} +29 -29
  102. package/dist/chunks/{integration-sv1bgkh6.js → schema-9qkzxvef.js} +3 -3
  103. package/dist/chunks/{integration-9qm9egsn.js → schema-9qm9egsn.js} +2 -2
  104. package/dist/chunks/{integration-kx2gvdct.js → schema-9tjsbxxt.js} +4 -4
  105. package/dist/chunks/{integration-t89cxbfz.js → schema-9tk8rzfb.js} +4 -4
  106. package/dist/chunks/{integration-z8145smf.js → schema-a35es3dn.js} +48 -57
  107. package/dist/chunks/{integration-cqvb8n3q.js → schema-a6h88whx.js} +22 -22
  108. package/dist/chunks/{integration-aaet6srn.js → schema-aaet6srn.js} +2 -2
  109. package/dist/chunks/{integration-jgx0heh4.js → schema-ah4q1w3j.js} +5 -5
  110. package/dist/chunks/schema-ahspyapp.js +247 -0
  111. package/dist/chunks/{integration-ajtjthsy.js → schema-ajtjthsy.js} +2 -2
  112. package/dist/chunks/{integration-hha4zry8.js → schema-axmvebxj.js} +21 -21
  113. package/dist/chunks/{integration-b6gygkdw.js → schema-b6gygkdw.js} +2 -2
  114. package/dist/chunks/{integration-b9wsbatv.js → schema-b9wsbatv.js} +1 -1
  115. package/dist/chunks/{integration-9x9phxhw.js → schema-be3ps6fk.js} +10 -10
  116. package/dist/chunks/{integration-bphmvjfp.js → schema-bnfahk6g.js} +22 -6
  117. package/dist/chunks/{integration-npjzd5yf.js → schema-bpxz7ydq.js} +11 -11
  118. package/dist/chunks/{integration-rtyzczqf.js → schema-c7jvcatc.js} +5 -5
  119. package/dist/chunks/{integration-gart8bfz.js → schema-cm19gqaq.js} +16 -16
  120. package/dist/chunks/{integration-4sxg11az.js → schema-cv95fcmp.js} +5 -5
  121. package/dist/chunks/{integration-80nx285x.js → schema-cy23n0eh.js} +26 -26
  122. package/dist/chunks/{integration-kzzvpjj3.js → schema-cyjkg8gk.js} +12 -12
  123. package/dist/chunks/{integration-9sftbbn6.js → schema-d5agjf18.js} +29 -58
  124. package/dist/chunks/{integration-d72308c8.js → schema-d72308c8.js} +2 -2
  125. package/dist/chunks/{integration-hdd17qa4.js → schema-d73w0rgx.js} +17 -17
  126. package/dist/chunks/{integration-051qdrr2.js → schema-d910tjb6.js} +9 -9
  127. package/dist/chunks/{integration-wp8mzxcn.js → schema-dcxg8drc.js} +32 -32
  128. package/dist/chunks/{integration-psgkh1f7.js → schema-dged69jn.js} +4 -4
  129. package/dist/chunks/{integration-3qbt326n.js → schema-e51fc25h.js} +11 -11
  130. package/dist/chunks/{integration-5hy0rtfk.js → schema-e8qch614.js} +16 -16
  131. package/dist/chunks/{integration-7tzxs4gx.js → schema-ecpey84z.js} +40 -47
  132. package/dist/chunks/{integration-h63taqsq.js → schema-ehj7vx0b.js} +11 -11
  133. package/dist/chunks/{integration-e3ntb6n0.js → schema-ep3g8qaw.js} +27 -27
  134. package/dist/chunks/{integration-xxht2zme.js → schema-es1szyat.js} +15 -15
  135. package/dist/chunks/{integration-0zbay0d2.js → schema-ey2qyrhf.js} +21 -21
  136. package/dist/chunks/{integration-0naqfmpk.js → schema-f00jbxzz.js} +5 -4
  137. package/dist/chunks/{integration-e82pn39z.js → schema-f7502g1v.js} +6 -6
  138. package/dist/chunks/{integration-axrkenmh.js → schema-fee8q97m.js} +13 -13
  139. package/dist/chunks/{integration-6g5h5enh.js → schema-fk6yh78j.js} +13 -13
  140. package/dist/chunks/{integration-ryr25ayn.js → schema-fm2qvscf.js} +4 -4
  141. package/dist/chunks/{integration-b5nf4epv.js → schema-fnxm8qas.js} +15 -15
  142. package/dist/chunks/{integration-gny0aj3z.js → schema-fv0bxyhd.js} +11 -11
  143. package/dist/chunks/{integration-fxbjtjnd.js → schema-fxbjtjnd.js} +1 -1
  144. package/dist/chunks/{integration-fxypknc8.js → schema-fxypknc8.js} +1 -1
  145. package/dist/chunks/{integration-0bhrx1x9.js → schema-fygtvtfb.js} +59 -59
  146. package/dist/chunks/{integration-p8zhn1ry.js → schema-g1bsba7w.js} +22 -22
  147. package/dist/chunks/{integration-gr0yca18.js → schema-g608hw24.js} +16 -16
  148. package/dist/chunks/{integration-es2wkwv6.js → schema-g8qt226p.js} +5 -5
  149. package/dist/chunks/{integration-26bs89kh.js → schema-ga3x3tkz.js} +11 -11
  150. package/dist/chunks/{integration-gd4qta3r.js → schema-gd4qta3r.js} +1 -1
  151. package/dist/chunks/{integration-n4q030rw.js → schema-gjk5sn8n.js} +4 -4
  152. package/dist/chunks/{integration-00th4a5r.js → schema-gnwcgnjb.js} +33 -33
  153. package/dist/chunks/{integration-skm6vzx1.js → schema-h5fs3t0a.js} +25 -25
  154. package/dist/chunks/{integration-h6vf3j39.js → schema-h6vf3j39.js} +1 -1
  155. package/dist/chunks/{integration-089r6rfv.js → schema-he4jbf8x.js} +29 -29
  156. package/dist/chunks/{integration-heyhwy2w.js → schema-heyhwy2w.js} +1 -1
  157. package/dist/chunks/{integration-x9ktxn4p.js → schema-hf6ertck.js} +34 -34
  158. package/dist/chunks/{integration-hjt4xg1x.js → schema-hjt4xg1x.js} +1 -1
  159. package/dist/chunks/{integration-hrvm11jt.js → schema-hrvm11jt.js} +3 -3
  160. package/dist/chunks/{integration-h8zz2ecm.js → schema-hsq9qkqb.js} +47 -47
  161. package/dist/chunks/{integration-9r8ws15v.js → schema-hys3c6ky.js} +21 -20
  162. package/dist/chunks/{integration-jyprvyx1.js → schema-j53fc2s1.js} +6 -6
  163. package/dist/chunks/{integration-nqh50ffv.js → schema-j8bjgp0m.js} +23 -23
  164. package/dist/chunks/{integration-paphc93g.js → schema-j935v87r.js} +2 -2
  165. package/dist/chunks/{integration-3mygrb37.js → schema-jdcvk5y7.js} +11 -11
  166. package/dist/chunks/{integration-6a04dbgb.js → schema-jdd7wz44.js} +34 -43
  167. package/dist/chunks/{integration-n3scjepk.js → schema-jhzxqtm7.js} +71 -66
  168. package/dist/chunks/{integration-avsd5b6b.js → schema-jp934b96.js} +10 -10
  169. package/dist/chunks/{integration-k4bwy1x5.js → schema-k4bwy1x5.js} +1 -1
  170. package/dist/chunks/{integration-pdxe2edq.js → schema-k7e3e2sr.js} +16 -16
  171. package/dist/chunks/{integration-ga2g4a2e.js → schema-kaqw06zw.js} +1 -1
  172. package/dist/chunks/{integration-kg06axw8.js → schema-kg06axw8.js} +1 -1
  173. package/dist/chunks/{integration-knh3mbp0.js → schema-kh25xj5f.js} +36 -43
  174. package/dist/chunks/{integration-baaqp4zd.js → schema-kne8f3cn.js} +4 -4
  175. package/dist/chunks/{integration-6w2ebves.js → schema-kqtq9r6d.js} +24 -24
  176. package/dist/chunks/{integration-hw4pv20g.js → schema-kvsjn1dr.js} +2 -2
  177. package/dist/chunks/{integration-rbqj5q8p.js → schema-kwt11tv7.js} +17 -17
  178. package/dist/chunks/{integration-0zgbz30q.js → schema-m2dwvqty.js} +9 -9
  179. package/dist/chunks/{integration-krtzpnj6.js → schema-m9hdf67d.js} +28 -28
  180. package/dist/chunks/{integration-7dwyp953.js → schema-m9p8h4jk.js} +12 -12
  181. package/dist/chunks/{integration-m9w0rfyh.js → schema-m9w0rfyh.js} +1 -1
  182. package/dist/chunks/{integration-nhczefgv.js → schema-mbj5j0dx.js} +39 -39
  183. package/dist/chunks/{integration-wzny3sya.js → schema-me8n0gqn.js} +17 -17
  184. package/dist/chunks/{integration-1ygqh575.js → schema-mfqp6xfm.js} +6 -6
  185. package/dist/chunks/{integration-73tb2d7t.js → schema-mhkvc446.js} +3 -3
  186. package/dist/chunks/{integration-js3a5baj.js → schema-mj8wbps0.js} +49 -33
  187. package/dist/chunks/{integration-433q4afj.js → schema-ne1yvy6p.js} +43 -43
  188. package/dist/chunks/{integration-zw0t7b2b.js → schema-njdd8kjn.js} +87 -87
  189. package/dist/chunks/{integration-sz4gjawx.js → schema-npx3gdza.js} +88 -85
  190. package/dist/chunks/{integration-y1sxvda5.js → schema-ntvpvfq2.js} +7 -7
  191. package/dist/chunks/{integration-n8295sxz.js → schema-p6rz0yzk.js} +4 -4
  192. package/dist/chunks/{integration-5xzsz4y7.js → schema-p7v84xw5.js} +32 -32
  193. package/dist/chunks/{integration-tppvcy65.js → schema-p7xgpz7y.js} +9 -9
  194. package/dist/chunks/{integration-vzvx7g7e.js → schema-p9071pdt.js} +46 -46
  195. package/dist/chunks/{integration-re8qbn3m.js → schema-pac8pssg.js} +23 -23
  196. package/dist/chunks/{integration-0dh1sqzr.js → schema-pe5crvt1.js} +30 -22
  197. package/dist/chunks/{integration-pvg228j8.js → schema-pfvd2csc.js} +1 -1
  198. package/dist/chunks/{integration-pjvnvgmy.js → schema-pjvnvgmy.js} +1 -1
  199. package/dist/chunks/{integration-pknna89w.js → schema-pknna89w.js} +1 -1
  200. package/dist/chunks/{integration-pdp8j59c.js → schema-pkqzam1k.js} +11 -11
  201. package/dist/chunks/{integration-w19w1qkx.js → schema-ps2ypmnz.js} +1 -1
  202. package/dist/chunks/{integration-1kjrg5h4.js → schema-pt07xbnp.js} +16 -16
  203. package/dist/chunks/{integration-p9vx44pc.js → schema-pydn0w3e.js} +1 -1
  204. package/dist/chunks/{integration-ava0yb97.js → schema-q1nkzk48.js} +36 -29
  205. package/dist/chunks/{integration-wjzbj88c.js → schema-q1q8dpek.js} +23 -23
  206. package/dist/chunks/{integration-sxnbked4.js → schema-q2cdtxy5.js} +6 -6
  207. package/dist/chunks/{integration-68y46v3g.js → schema-qb2yjf91.js} +22 -22
  208. package/dist/chunks/{integration-k2en0fft.js → schema-qk9vesgb.js} +7 -7
  209. package/dist/chunks/{integration-qsdy395h.js → schema-qsdy395h.js} +1 -1
  210. package/dist/chunks/{integration-wqpfxacs.js → schema-qwh8c2js.js} +9 -9
  211. package/dist/chunks/{integration-whyqf77n.js → schema-qwxk75cg.js} +8 -8
  212. package/dist/chunks/{integration-nkd0m12v.js → schema-r1dq9xr8.js} +5 -5
  213. package/dist/chunks/{integration-m6jbwjsh.js → schema-r25t3ann.js} +4 -4
  214. package/dist/chunks/{integration-r8dhm0tv.js → schema-r8dhm0tv.js} +1 -1
  215. package/dist/chunks/{integration-wr27bwq7.js → schema-r9pjqsyf.js} +21 -29
  216. package/dist/chunks/{integration-13gt56f3.js → schema-raa16g9g.js} +6 -6
  217. package/dist/chunks/schema-rap9a73h.js +18 -0
  218. package/dist/chunks/{integration-sz4dw7gm.js → schema-raxsvy8j.js} +14 -14
  219. package/dist/chunks/{integration-zkn0w8ks.js → schema-rbhd1hv4.js} +3 -3
  220. package/dist/chunks/{integration-xg3vtz5h.js → schema-rm3yzcsd.js} +4 -4
  221. package/dist/chunks/{integration-r33ff4dw.js → schema-rp8jz6x1.js} +6 -6
  222. package/dist/chunks/{integration-a7pjgb0j.js → schema-rqa18smj.js} +11 -11
  223. package/dist/chunks/schema-rqdcv1n1.js +55 -0
  224. package/dist/chunks/{integration-pg4tqg4j.js → schema-s2e3zm9h.js} +53 -53
  225. package/dist/chunks/{integration-ebbs9ney.js → schema-s53bq4vw.js} +36 -36
  226. package/dist/chunks/{integration-ba8a6aak.js → schema-s698gkv6.js} +6 -6
  227. package/dist/chunks/{integration-sba4qhjf.js → schema-sba4qhjf.js} +1 -1
  228. package/dist/chunks/{integration-6k1x2hq7.js → schema-sdygzg6k.js} +30 -30
  229. package/dist/chunks/{integration-a5n2dake.js → schema-se2vkk77.js} +20 -20
  230. package/dist/chunks/{integration-reyds50y.js → schema-sn3nkvtj.js} +11 -11
  231. package/dist/chunks/{integration-x8nhbgtx.js → schema-spftfn4p.js} +51 -51
  232. package/dist/chunks/{integration-21pvg7kt.js → schema-sr948aj6.js} +19 -19
  233. package/dist/chunks/{integration-2h194s0m.js → schema-sy7czwgb.js} +6 -6
  234. package/dist/chunks/{integration-cv4ckjj3.js → schema-sz9840t7.js} +9 -9
  235. package/dist/chunks/{integration-w0968pv7.js → schema-t0dq411k.js} +5 -5
  236. package/dist/chunks/{integration-6kzsdjmr.js → schema-tan6veb8.js} +37 -37
  237. package/dist/chunks/{integration-tazgh4e4.js → schema-tazgh4e4.js} +1 -1
  238. package/dist/chunks/{integration-tcezcvh9.js → schema-tcezcvh9.js} +1 -1
  239. package/dist/chunks/{integration-tjykrgmx.js → schema-tjykrgmx.js} +1 -1
  240. package/dist/chunks/{integration-588w1t3p.js → schema-tnn3pxdz.js} +31 -31
  241. package/dist/chunks/{integration-wd5ma2ph.js → schema-trhjdf47.js} +24 -24
  242. package/dist/chunks/{integration-k2gqysrh.js → schema-ts04ntb8.js} +11 -11
  243. package/dist/chunks/{integration-0t8hhwgh.js → schema-ttmf2k06.js} +5 -5
  244. package/dist/chunks/{integration-rkar1xve.js → schema-v45en8pj.js} +19 -18
  245. package/dist/chunks/{integration-ag62pq98.js → schema-v610d21f.js} +24 -24
  246. package/dist/chunks/{integration-zbjnn3ac.js → schema-v72m8j26.js} +7 -0
  247. package/dist/chunks/{integration-d7rthvks.js → schema-vecstcyh.js} +46 -46
  248. package/dist/chunks/{integration-tq9bnbkc.js → schema-vmv31r6s.js} +22 -22
  249. package/dist/chunks/{integration-qgj1bmkg.js → schema-vpwgshky.js} +13 -13
  250. package/dist/chunks/{integration-sgv69984.js → schema-vrwt7trm.js} +8 -8
  251. package/dist/chunks/{integration-r7ddtr8e.js → schema-vt9wfr9s.js} +23 -23
  252. package/dist/chunks/{integration-w8ztvw7q.js → schema-vwd3d859.js} +29 -29
  253. package/dist/chunks/{integration-w3wsvvr9.js → schema-w3wsvvr9.js} +1 -1
  254. package/dist/chunks/{integration-h6phs3m3.js → schema-w7xrk89n.js} +15 -15
  255. package/dist/chunks/{integration-gks1q0wj.js → schema-wa8a7neb.js} +1 -1
  256. package/dist/chunks/{integration-nngpx1ez.js → schema-wabsntfg.js} +20 -20
  257. package/dist/chunks/{integration-5ajcezws.js → schema-wb2q69yx.js} +27 -27
  258. package/dist/chunks/{integration-cp2fwpzt.js → schema-wbvdvtzj.js} +27 -27
  259. package/dist/chunks/{integration-wd87259q.js → schema-wd87259q.js} +1 -1
  260. package/dist/chunks/{integration-gej0j4pk.js → schema-wf52tegj.js} +42 -42
  261. package/dist/chunks/{integration-g3by5vjq.js → schema-whnf76s8.js} +14 -27
  262. package/dist/chunks/{integration-pfwd1k69.js → schema-wpa91s1b.js} +162 -162
  263. package/dist/chunks/{integration-fn34x8gt.js → schema-wvycr4s3.js} +4 -4
  264. package/dist/chunks/{integration-10fgs14z.js → schema-wwqw8y3k.js} +19 -19
  265. package/dist/chunks/{integration-x1ezjp6w.js → schema-x1ezjp6w.js} +1 -1
  266. package/dist/chunks/{integration-5fex8bb2.js → schema-x71fjkw5.js} +7 -7
  267. package/dist/chunks/{integration-a1w1fpj3.js → schema-x8z6j3kk.js} +3 -3
  268. package/dist/chunks/{integration-chtrmnkp.js → schema-xfrwv263.js} +11 -6
  269. package/dist/chunks/{integration-mjzw1bzx.js → schema-xgjy9czn.js} +9 -9
  270. package/dist/chunks/{integration-n38qs1ar.js → schema-xr5vwsd4.js} +9 -9
  271. package/dist/chunks/{integration-gzx0b0mt.js → schema-xrtvrd4c.js} +8 -5
  272. package/dist/chunks/{integration-d1qjg7yf.js → schema-xvjj1qqy.js} +1 -1
  273. package/dist/chunks/{integration-53b1td34.js → schema-xzzg2aw3.js} +13 -13
  274. package/dist/chunks/{integration-y1fvbwt7.js → schema-y1fvbwt7.js} +1 -1
  275. package/dist/chunks/{integration-3g2y1byn.js → schema-y4nzzd5t.js} +5 -5
  276. package/dist/chunks/{integration-jwcy2c2z.js → schema-y71avatq.js} +4 -4
  277. package/dist/chunks/{integration-02gvdgew.js → schema-yf1d8svm.js} +11 -11
  278. package/dist/chunks/schema-yjw6p547.js +114 -0
  279. package/dist/chunks/{integration-yp2x3t23.js → schema-yp2x3t23.js} +1 -1
  280. package/dist/chunks/{integration-ey04d52n.js → schema-yx2cz2pp.js} +14 -14
  281. package/dist/chunks/{integration-z1k01bn4.js → schema-z1k01bn4.js} +2 -2
  282. package/dist/chunks/{integration-7nzzgtdj.js → schema-z44293nx.js} +28 -28
  283. package/dist/chunks/{integration-pmbgjyp9.js → schema-za2svx48.js} +292 -290
  284. package/dist/chunks/{integration-bjp14p5h.js → schema-zmgxegv8.js} +16 -16
  285. package/dist/chunks/{integration-432pw3c5.js → schema-zs79rajt.js} +24 -24
  286. package/dist/chunks/{integration-zxq2ej10.js → schema-zxq2ej10.js} +1 -1
  287. package/dist/chunks/{integration-5t9nxpj3.js → schema-zy7s2m3e.js} +15 -11
  288. package/dist/codemode/catalog.js +1 -1
  289. package/dist/codemode/instructions.js +7 -7
  290. package/dist/codemode/tool.js +2 -2
  291. package/dist/command.js +81 -81
  292. package/dist/config/discovery.js +77 -77
  293. package/dist/config/markdown.js +1 -1
  294. package/dist/config/normalize.js +19 -19
  295. package/dist/config/plugin/agent.js +117 -117
  296. package/dist/config/plugin/command.js +209 -208
  297. package/dist/config/plugin/compaction.js +155 -154
  298. package/dist/config/plugin/entry-observer.js +1 -1
  299. package/dist/config/plugin/formatter.js +117 -117
  300. package/dist/config/plugin/image.js +115 -115
  301. package/dist/config/plugin/instruction.js +85 -85
  302. package/dist/config/plugin/location-watcher.js +117 -117
  303. package/dist/config/plugin/mcp.js +126 -126
  304. package/dist/config/plugin/policy.js +114 -114
  305. package/dist/config/plugin/provider.js +113 -113
  306. package/dist/config/plugin/reference.js +117 -117
  307. package/dist/config/plugin/shell.js +118 -118
  308. package/dist/config/plugin/skill-file.js +97 -96
  309. package/dist/config/plugin/skill.js +136 -135
  310. package/dist/config/plugin/snapshot.js +115 -115
  311. package/dist/config/plugin/source.js +117 -117
  312. package/dist/config/plugin/tool-output.js +117 -117
  313. package/dist/config/plugin/websearch.js +115 -115
  314. package/dist/config/plugin/worktree.js +118 -118
  315. package/dist/config/variable.js +3 -3
  316. package/dist/config/watch.js +1 -1
  317. package/dist/config.js +119 -119
  318. package/dist/credential/sql.js +2 -2
  319. package/dist/credential.js +81 -81
  320. package/dist/database/database.js +70 -70
  321. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  322. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  323. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  324. package/dist/database/drizzle/index.js +15 -15
  325. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  326. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  327. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  328. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  329. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  330. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  331. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  332. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  333. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  334. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  335. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  336. package/dist/database/drizzle.js +16 -16
  337. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  338. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  339. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  340. package/dist/database/migration/20260225215848_workspace.js +1 -1
  341. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  342. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  343. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  344. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  345. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  346. package/dist/database/migration/20260323234822_events.js +1 -1
  347. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  348. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  349. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  350. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  351. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  352. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  353. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  354. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  355. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  356. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  357. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  358. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  359. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  360. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  361. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  362. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  363. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  364. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  365. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  366. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  367. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  368. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  369. package/dist/database/migration/20260611035744_credential.js +1 -1
  370. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  371. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  372. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  373. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  374. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  375. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  376. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  377. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  378. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  379. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  380. package/dist/database/migration/20260812213948_worktree.js +1 -1
  381. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  382. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  383. package/dist/database/migration.gen.js +47 -47
  384. package/dist/database/migration.js +49 -49
  385. package/dist/database/path.js +2 -2
  386. package/dist/database/schema.gen.js +1 -1
  387. package/dist/database/schema.sql.js +1 -1
  388. package/dist/database/sqlite.bun.js +1 -1
  389. package/dist/database/sqlite.js +1 -1
  390. package/dist/database/sqlite.node.js +1 -1
  391. package/dist/database/sqlite.workerd.js +1 -1
  392. package/dist/database/v1-migration.bun.js +74 -74
  393. package/dist/database/v1-migration.js +1 -1
  394. package/dist/effect/app-node-builder.js +360 -359
  395. package/dist/effect/app-node-platform.js +2 -2
  396. package/dist/effect/keyed-mutex.js +3 -3
  397. package/dist/effect/websocket-constructor.js +1 -1
  398. package/dist/environment/driver.js +1 -1
  399. package/dist/environment/environment.js +88 -88
  400. package/dist/environment/exec-defaults.js +2 -2
  401. package/dist/environment/files.js +1 -1
  402. package/dist/environment/index.js +88 -88
  403. package/dist/environment/local.js +2 -2
  404. package/dist/environment/memory.js +2 -2
  405. package/dist/environment/unavailable.js +1 -1
  406. package/dist/event/sql.js +1 -1
  407. package/dist/event-logger.js +72 -72
  408. package/dist/file-access.js +112 -0
  409. package/dist/file-mutation.js +89 -89
  410. package/dist/file-retention.js +1 -1
  411. package/dist/file.js +1 -1
  412. package/dist/filesystem/fff.bun.js +2 -2
  413. package/dist/filesystem/fff.js +1 -1
  414. package/dist/filesystem/fff.node.js +2 -2
  415. package/dist/filesystem/fff.workerd.js +2 -2
  416. package/dist/filesystem/ignore.js +1 -1
  417. package/dist/filesystem/location-watcher-policy.js +6 -6
  418. package/dist/filesystem/location-watcher.js +218 -217
  419. package/dist/filesystem/protected.js +1 -1
  420. package/dist/filesystem/search.js +99 -99
  421. package/dist/filesystem/watcher-binding.js +3 -3
  422. package/dist/filesystem/watcher.js +15 -15
  423. package/dist/filesystem.js +96 -96
  424. package/dist/form.js +80 -80
  425. package/dist/formatter/builtins.js +4 -4
  426. package/dist/formatter.js +82 -82
  427. package/dist/generate.js +83 -83
  428. package/dist/git.js +7 -7
  429. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  430. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  431. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  432. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  433. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  434. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  435. package/dist/github-copilot/copilot-provider.js +17 -17
  436. package/dist/github-copilot/models.js +3 -3
  437. package/dist/github-copilot/openai-compatible-error.js +1 -1
  438. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  439. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  440. package/dist/github-copilot/responses/openai-error.js +1 -1
  441. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  442. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  443. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  444. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  445. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  446. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  447. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  448. package/dist/id/id.js +1 -1
  449. package/dist/image/photon.js +2 -2
  450. package/dist/image.js +6 -6
  451. package/dist/instance/service.js +5 -5
  452. package/dist/instance.js +351 -350
  453. package/dist/instruction-discovery.js +83 -83
  454. package/dist/instructions/builtins.js +82 -82
  455. package/dist/instructions/index.js +3 -3
  456. package/dist/integration/connection.js +1 -1
  457. package/dist/integration.js +86 -86
  458. package/dist/job.js +77 -77
  459. package/dist/kv/sql.js +2 -2
  460. package/dist/kv.js +71 -71
  461. package/dist/location-activity.js +131 -130
  462. package/dist/location-mutation.js +102 -83
  463. package/dist/location-service-map.js +81 -81
  464. package/dist/location-services.js +348 -347
  465. package/dist/location.js +84 -84
  466. package/dist/mcp/client.js +86 -86
  467. package/dist/mcp/index.js +103 -103
  468. package/dist/mcp/instructions.js +122 -121
  469. package/dist/mcp/oauth.js +24 -4
  470. package/dist/mcp/stdio.js +85 -85
  471. package/dist/mime.js +1 -1
  472. package/dist/modal/models.js +3 -3
  473. package/dist/model-resolver.js +84 -82
  474. package/dist/model.js +10 -10
  475. package/dist/models-dev.js +86 -86
  476. package/dist/oauth/page.js +1 -1
  477. package/dist/permission/saved.js +80 -80
  478. package/dist/permission/sql.js +5 -5
  479. package/dist/permission.js +104 -103
  480. package/dist/persistent-pty/binary.bun.js +1 -1
  481. package/dist/persistent-pty/daemon.js +1 -1
  482. package/dist/persistent-pty/index.js +84 -84
  483. package/dist/persistent-pty/pty-binding.js +1 -1
  484. package/dist/persistent-pty.js +73 -73
  485. package/dist/plugin/agent.js +99 -98
  486. package/dist/plugin/command.js +96 -96
  487. package/dist/plugin/hooks.js +5 -5
  488. package/dist/plugin/host.js +213 -212
  489. package/dist/plugin/instance.js +5 -5
  490. package/dist/plugin/internal.js +322 -321
  491. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  492. package/dist/plugin/models-dev.js +75 -75
  493. package/dist/plugin/module.js +7 -7
  494. package/dist/plugin/optimize.js +4 -4
  495. package/dist/plugin/plan.js +97 -96
  496. package/dist/plugin/promise.js +1 -1
  497. package/dist/plugin/provider/alibaba.js +2 -2
  498. package/dist/plugin/provider/amazon-bedrock.js +2 -2
  499. package/dist/plugin/provider/anthropic.js +2 -2
  500. package/dist/plugin/provider/azure.js +118 -118
  501. package/dist/plugin/provider/cerebras.js +2 -2
  502. package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
  503. package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
  504. package/dist/plugin/provider/cohere.js +2 -2
  505. package/dist/plugin/provider/configured.js +114 -114
  506. package/dist/plugin/provider/dynamic.js +2 -2
  507. package/dist/plugin/provider/factory.js +1 -1
  508. package/dist/plugin/provider/gateway.js +2 -2
  509. package/dist/plugin/provider/github-copilot.js +80 -80
  510. package/dist/plugin/provider/gitlab.js +3 -3
  511. package/dist/plugin/provider/google-vertex.js +2 -2
  512. package/dist/plugin/provider/kilo.js +2 -2
  513. package/dist/plugin/provider/llmgateway.js +76 -76
  514. package/dist/plugin/provider/lmstudio.js +117 -117
  515. package/dist/plugin/provider/mistral.js +2 -2
  516. package/dist/plugin/provider/modal.js +79 -79
  517. package/dist/plugin/provider/nvidia.js +2 -2
  518. package/dist/plugin/provider/ollama.js +115 -115
  519. package/dist/plugin/provider/openai-compatible.js +1 -1
  520. package/dist/plugin/provider/openai.js +80 -80
  521. package/dist/plugin/provider/opencode.js +76 -76
  522. package/dist/plugin/provider/openrouter.js +3 -3
  523. package/dist/plugin/provider/perplexity.js +2 -2
  524. package/dist/plugin/provider/sap-ai-core.js +3 -3
  525. package/dist/plugin/provider/sdk-factory.js +1 -1
  526. package/dist/plugin/provider/snowflake-cortex.js +2 -2
  527. package/dist/plugin/provider/venice.js +2 -2
  528. package/dist/plugin/provider/vercel.js +2 -2
  529. package/dist/plugin/provider/vllm.js +117 -117
  530. package/dist/plugin/provider/xai.js +77 -77
  531. package/dist/plugin/provider/zenmux.js +2 -2
  532. package/dist/plugin/provider.js +155 -155
  533. package/dist/plugin/sdk.js +74 -74
  534. package/dist/plugin/service.js +3 -3
  535. package/dist/plugin/skill.js +133 -132
  536. package/dist/plugin/source-directory.js +1 -1
  537. package/dist/plugin/supervisor.js +337 -336
  538. package/dist/plugin/update.js +6 -6
  539. package/dist/plugin/variant.js +4 -4
  540. package/dist/plugin/vcs/git.js +82 -82
  541. package/dist/plugin/vcs/hg.js +82 -82
  542. package/dist/plugin/warming.js +112 -112
  543. package/dist/plugin/websearch/exa.js +5 -5
  544. package/dist/plugin/websearch/firecrawl.js +6 -6
  545. package/dist/plugin/websearch/index.js +8 -8
  546. package/dist/plugin/websearch/mcp.js +4 -4
  547. package/dist/plugin/websearch/parallel.js +6 -6
  548. package/dist/plugin/websearch/tavily.js +4 -4
  549. package/dist/plugin.js +224 -223
  550. package/dist/project/schema.js +8 -8
  551. package/dist/project/sql.js +4 -4
  552. package/dist/project.js +83 -83
  553. package/dist/provider.js +5 -5
  554. package/dist/pty/protocol.js +1 -1
  555. package/dist/pty/schema.js +3 -3
  556. package/dist/pty/ticket.js +1 -1
  557. package/dist/pty.js +94 -94
  558. package/dist/reference/instructions.js +84 -84
  559. package/dist/reference.js +86 -86
  560. package/dist/repository-cache.js +76 -76
  561. package/dist/repository.js +3 -3
  562. package/dist/ripgrep/binary.js +2 -2
  563. package/dist/ripgrep.js +91 -91
  564. package/dist/rpc.js +81 -81
  565. package/dist/schema.js +1 -1
  566. package/dist/session/command.js +72 -72
  567. package/dist/session/compaction.js +129 -126
  568. package/dist/session/context.js +147 -146
  569. package/dist/session/environment.js +5 -5
  570. package/dist/session/error.js +5 -5
  571. package/dist/session/event.js +1 -1
  572. package/dist/session/execution/restart.js +219 -218
  573. package/dist/session/execution.js +122 -121
  574. package/dist/session/generate.js +146 -145
  575. package/dist/session/history.js +15 -14
  576. package/dist/session/inbox.js +84 -84
  577. package/dist/session/info.js +3 -3
  578. package/dist/session/instruction-entry.js +77 -77
  579. package/dist/session/instruction-state.js +8 -8
  580. package/dist/session/instructions.js +92 -91
  581. package/dist/session/message-updater.js +4 -4
  582. package/dist/session/message.js +1 -1
  583. package/dist/session/model-request.js +113 -112
  584. package/dist/session/model-transport.js +9 -9
  585. package/dist/session/move.js +126 -125
  586. package/dist/session/projector.js +84 -84
  587. package/dist/session/prompt.js +100 -99
  588. package/dist/session/provider-context.js +20 -0
  589. package/dist/session/revert.js +85 -85
  590. package/dist/session/run-coordinator.js +1 -1
  591. package/dist/session/runner/index.js +3 -3
  592. package/dist/session/runner/llm.js +223 -222
  593. package/dist/session/runner/max-steps.js +1 -1
  594. package/dist/session/runner/model.js +88 -86
  595. package/dist/session/runner/publish-llm-event.js +3 -3
  596. package/dist/session/runner/retry.js +113 -5
  597. package/dist/session/runner/step.js +119 -118
  598. package/dist/session/runner/to-llm-message.js +2 -1
  599. package/dist/session/schema.js +5 -5
  600. package/dist/session/session.js +169 -168
  601. package/dist/session/shell.js +131 -131
  602. package/dist/session/skill.js +98 -97
  603. package/dist/session/sql.js +5 -5
  604. package/dist/session/stats.js +71 -71
  605. package/dist/session/store.js +85 -84
  606. package/dist/session/subagent-completion.js +1 -1
  607. package/dist/session/subagent-job.js +205 -204
  608. package/dist/session/system-prompt.js +1 -1
  609. package/dist/session/title.js +145 -144
  610. package/dist/session/to-session-error.js +107 -106
  611. package/dist/session/transfer.js +216 -215
  612. package/dist/session/usage.js +1 -1
  613. package/dist/session.js +209 -208
  614. package/dist/shell/parse.js +6 -6
  615. package/dist/shell/result.js +1 -1
  616. package/dist/shell/scan.js +1 -1
  617. package/dist/shell/select.js +11 -11
  618. package/dist/shell.js +133 -133
  619. package/dist/skill/discovery.js +6 -6
  620. package/dist/skill/instructions.js +102 -101
  621. package/dist/skill.js +99 -98
  622. package/dist/snapshot.js +86 -86
  623. package/dist/state.js +1 -1
  624. package/dist/tool/html-markdown.js +1 -1
  625. package/dist/tool/http-body.js +1 -1
  626. package/dist/tool/mcp.js +121 -120
  627. package/dist/tool/plugin/edit.js +115 -114
  628. package/dist/tool/plugin/file-diff.js +1 -1
  629. package/dist/tool/plugin/glob.js +120 -119
  630. package/dist/tool/plugin/grep.js +120 -119
  631. package/dist/tool/plugin/opencode.js +5 -3
  632. package/dist/tool/plugin/patch.js +117 -116
  633. package/dist/tool/plugin/question.js +98 -97
  634. package/dist/tool/plugin/read.js +121 -120
  635. package/dist/tool/plugin/shell.js +212 -211
  636. package/dist/tool/plugin/skill.js +106 -105
  637. package/dist/tool/plugin/subagent.js +214 -213
  638. package/dist/tool/plugin/webfetch.js +105 -104
  639. package/dist/tool/plugin/websearch.js +109 -108
  640. package/dist/tool/plugin/write.js +109 -108
  641. package/dist/tool/read-filesystem.js +96 -96
  642. package/dist/tool/runtime.js +1 -1
  643. package/dist/tool-output.js +8 -8
  644. package/dist/tool.js +13 -13
  645. package/dist/types/file-access.d.ts +52 -0
  646. package/dist/types/file-mutation.d.ts +2 -4
  647. package/dist/types/instance.d.ts +2 -2
  648. package/dist/types/location-activity.d.ts +1 -1
  649. package/dist/types/location-mutation.d.ts +3 -52
  650. package/dist/types/mcp/oauth.d.ts +10 -1
  651. package/dist/types/model-resolver.d.ts +25 -3
  652. package/dist/types/model.d.ts +11 -0
  653. package/dist/types/plugin/host.d.ts +2 -2
  654. package/dist/types/plugin/internal.d.ts +3 -3
  655. package/dist/types/provider.d.ts +11 -0
  656. package/dist/types/session/compaction.d.ts +11 -2
  657. package/dist/types/session/execution/restart.d.ts +1 -1
  658. package/dist/types/session/execution.d.ts +1 -1
  659. package/dist/types/session/generate.d.ts +1 -1
  660. package/dist/types/session/history.d.ts +59 -4
  661. package/dist/types/session/provider-context.d.ts +46 -0
  662. package/dist/types/session/runner/model.d.ts +4 -0
  663. package/dist/types/session/runner/retry.d.ts +5 -0
  664. package/dist/types/session/session.d.ts +3 -3
  665. package/dist/types/session/sql.d.ts +3 -3
  666. package/dist/types/session/transfer.d.ts +47 -0
  667. package/dist/types/tool/mcp.d.ts +1 -1
  668. package/dist/types/tool/plugin/edit.d.ts +2 -2
  669. package/dist/types/tool/plugin/glob.d.ts +2 -2
  670. package/dist/types/tool/plugin/grep.d.ts +2 -2
  671. package/dist/types/tool/plugin/opencode.d.ts +7 -0
  672. package/dist/types/tool/plugin/patch.d.ts +2 -2
  673. package/dist/types/tool/plugin/read.d.ts +2 -3
  674. package/dist/types/tool/plugin/shell.d.ts +2 -2
  675. package/dist/types/tool/plugin/websearch.d.ts +1 -1
  676. package/dist/types/tool/plugin/write.d.ts +2 -2
  677. package/dist/types/v1/config/agent.d.ts +4 -4
  678. package/dist/types/v1/config/config.d.ts +46 -46
  679. package/dist/types/v1/config/migrate.d.ts +19 -7
  680. package/dist/types/v1/config/permission.d.ts +3 -3
  681. package/dist/util/error-summary.js +1 -1
  682. package/dist/util/error.js +1 -1
  683. package/dist/util/iife.js +1 -1
  684. package/dist/util/lazy.js +1 -1
  685. package/dist/util/slug.js +1 -1
  686. package/dist/util/token.js +1 -1
  687. package/dist/util/which.js +1 -1
  688. package/dist/util/wildcard.js +1 -1
  689. package/dist/v1/config/agent.js +7 -7
  690. package/dist/v1/config/attachment.js +4 -4
  691. package/dist/v1/config/command.js +3 -3
  692. package/dist/v1/config/config.js +16 -16
  693. package/dist/v1/config/error.js +4 -4
  694. package/dist/v1/config/formatter.js +5 -5
  695. package/dist/v1/config/layout.js +1 -1
  696. package/dist/v1/config/lsp.js +5 -5
  697. package/dist/v1/config/mcp.js +4 -4
  698. package/dist/v1/config/migrate.js +4 -4
  699. package/dist/v1/config/permission.js +7 -7
  700. package/dist/v1/config/plugin.js +3 -3
  701. package/dist/v1/config/provider-options.js +1 -1
  702. package/dist/v1/config/provider.js +4 -4
  703. package/dist/v1/config/server.js +2 -2
  704. package/dist/v1/config/skills.js +3 -3
  705. package/dist/v1/permission.js +1 -1
  706. package/dist/vcs/patch.js +1 -1
  707. package/dist/vcs.js +85 -85
  708. package/dist/websearch.js +78 -78
  709. package/dist/wellknown/plugin.js +74 -74
  710. package/dist/wellknown.js +79 -79
  711. package/dist/workspace/driver.js +5 -5
  712. package/dist/workspace/sql.js +1 -1
  713. package/dist/workspace.js +76 -76
  714. package/dist/worktree/directory.js +2 -2
  715. package/dist/worktree/git.js +5 -5
  716. package/dist/worktree/refresh.js +338 -337
  717. package/dist/worktree/sql.js +5 -5
  718. package/dist/worktree.js +87 -87
  719. package/package.json +8 -7
  720. package/dist/chunks/integration-3nf7bh68.js +0 -84
  721. package/dist/chunks/integration-4y7bcn0g.js +0 -4
  722. package/dist/chunks/integration-e62b8887.js +0 -22
  723. package/dist/chunks/integration-h8c5g50t.js +0 -247
  724. package/dist/chunks/integration-pf31ssb9.js +0 -18
  725. /package/dist/chunks/{integration-0fabt78z.js → schema-0fabt78z.js} +0 -0
  726. /package/dist/chunks/{integration-0qkdqm5v.js → schema-0qkdqm5v.js} +0 -0
  727. /package/dist/chunks/{integration-0zkw76rk.js → schema-0zkw76rk.js} +0 -0
  728. /package/dist/chunks/{integration-17cy0kzp.js → schema-17cy0kzp.js} +0 -0
  729. /package/dist/chunks/{integration-1cnp2v09.js → schema-1cnp2v09.js} +0 -0
  730. /package/dist/chunks/{integration-1kg9ymc8.js → schema-1kg9ymc8.js} +0 -0
  731. /package/dist/chunks/{integration-2710q6r3.js → schema-2710q6r3.js} +0 -0
  732. /package/dist/chunks/{integration-2axfhc9x.js → schema-2axfhc9x.js} +0 -0
  733. /package/dist/chunks/{integration-2c3vjs8z.js → schema-2c3vjs8z.js} +0 -0
  734. /package/dist/chunks/{integration-359p4xyc.js → schema-359p4xyc.js} +0 -0
  735. /package/dist/chunks/{integration-3asan66x.js → schema-3asan66x.js} +0 -0
  736. /package/dist/chunks/{integration-3t738kvx.js → schema-3t738kvx.js} +0 -0
  737. /package/dist/chunks/{integration-3v8g72cx.js → schema-3v8g72cx.js} +0 -0
  738. /package/dist/chunks/{integration-3wcehsnq.js → schema-3wcehsnq.js} +0 -0
  739. /package/dist/chunks/{integration-41nvscxy.js → schema-41nvscxy.js} +0 -0
  740. /package/dist/chunks/{integration-43n2bw4t.js → schema-43n2bw4t.js} +0 -0
  741. /package/dist/chunks/{integration-4knz6hnm.js → schema-4knz6hnm.js} +0 -0
  742. /package/dist/chunks/{integration-4y7fprxs.js → schema-4y7fprxs.js} +0 -0
  743. /package/dist/chunks/{integration-53557ph1.js → schema-53557ph1.js} +0 -0
  744. /package/dist/chunks/{integration-550bvhaj.js → schema-550bvhaj.js} +0 -0
  745. /package/dist/chunks/{integration-6prwharc.js → schema-6prwharc.js} +0 -0
  746. /package/dist/chunks/{integration-7akdwqpd.js → schema-7akdwqpd.js} +0 -0
  747. /package/dist/chunks/{integration-7m9af43g.js → schema-7m9af43g.js} +0 -0
  748. /package/dist/chunks/{integration-822emrt2.js → schema-822emrt2.js} +0 -0
  749. /package/dist/chunks/{integration-88xbtdfr.js → schema-88xbtdfr.js} +0 -0
  750. /package/dist/chunks/{integration-8n3pysct.js → schema-8n3pysct.js} +0 -0
  751. /package/dist/chunks/{integration-982e01ww.js → schema-982e01ww.js} +0 -0
  752. /package/dist/chunks/{integration-9a4afbnw.js → schema-9a4afbnw.js} +0 -0
  753. /package/dist/chunks/{integration-9rqn6x4v.js → schema-9rqn6x4v.js} +0 -0
  754. /package/dist/chunks/{integration-a1tpkmh4.js → schema-a1tpkmh4.js} +0 -0
  755. /package/dist/chunks/{integration-af5trqkr.js → schema-af5trqkr.js} +0 -0
  756. /package/dist/chunks/{integration-afrmfg78.js → schema-afrmfg78.js} +0 -0
  757. /package/dist/chunks/{integration-aqzs7mqg.js → schema-aqzs7mqg.js} +0 -0
  758. /package/dist/chunks/{integration-atq7p7m5.js → schema-atq7p7m5.js} +0 -0
  759. /package/dist/chunks/{integration-bkyjaxrp.js → schema-bkyjaxrp.js} +0 -0
  760. /package/dist/chunks/{integration-bmr6ed5q.js → schema-bmr6ed5q.js} +0 -0
  761. /package/dist/chunks/{integration-cf4snx6d.js → schema-cf4snx6d.js} +0 -0
  762. /package/dist/chunks/{integration-cvy3z8tj.js → schema-cvy3z8tj.js} +0 -0
  763. /package/dist/chunks/{integration-d9fn303g.js → schema-d9fn303g.js} +0 -0
  764. /package/dist/chunks/{integration-d9jj8t3e.js → schema-d9jj8t3e.js} +0 -0
  765. /package/dist/chunks/{integration-dajrwvna.js → schema-dajrwvna.js} +0 -0
  766. /package/dist/chunks/{integration-dap0rakb.js → schema-dap0rakb.js} +0 -0
  767. /package/dist/chunks/{integration-df08tz66.js → schema-df08tz66.js} +0 -0
  768. /package/dist/chunks/{integration-dy18nga0.js → schema-dy18nga0.js} +0 -0
  769. /package/dist/chunks/{integration-e5kj55wp.js → schema-e5kj55wp.js} +0 -0
  770. /package/dist/chunks/{integration-e73j6tqm.js → schema-e73j6tqm.js} +0 -0
  771. /package/dist/chunks/{integration-eh3zwz77.js → schema-eh3zwz77.js} +0 -0
  772. /package/dist/chunks/{integration-emrn6kk6.js → schema-emrn6kk6.js} +0 -0
  773. /package/dist/chunks/{integration-f0mxakyp.js → schema-f0mxakyp.js} +0 -0
  774. /package/dist/chunks/{integration-f6n9ztr4.js → schema-f6n9ztr4.js} +0 -0
  775. /package/dist/chunks/{integration-faypxj3z.js → schema-faypxj3z.js} +0 -0
  776. /package/dist/chunks/{integration-fd410y7t.js → schema-fd410y7t.js} +0 -0
  777. /package/dist/chunks/{integration-fxgpk5d8.js → schema-fxgpk5d8.js} +0 -0
  778. /package/dist/chunks/{integration-g4wezp1m.js → schema-g4wezp1m.js} +0 -0
  779. /package/dist/chunks/{integration-g86h250q.js → schema-g86h250q.js} +0 -0
  780. /package/dist/chunks/{integration-gebd4c9n.js → schema-gebd4c9n.js} +0 -0
  781. /package/dist/chunks/{integration-hk9envan.js → schema-hk9envan.js} +0 -0
  782. /package/dist/chunks/{integration-j2ntwpah.js → schema-j2ntwpah.js} +0 -0
  783. /package/dist/chunks/{integration-j5zkgpj8.js → schema-j5zkgpj8.js} +0 -0
  784. /package/dist/chunks/{integration-jr7sbwjy.js → schema-jr7sbwjy.js} +0 -0
  785. /package/dist/chunks/{integration-jwfs4k6c.js → schema-jwfs4k6c.js} +0 -0
  786. /package/dist/chunks/{integration-jzg6c2d5.js → schema-jzg6c2d5.js} +0 -0
  787. /package/dist/chunks/{integration-mntxs535.js → schema-mntxs535.js} +0 -0
  788. /package/dist/chunks/{integration-mp448xyj.js → schema-mp448xyj.js} +0 -0
  789. /package/dist/chunks/{integration-msx8hqn2.js → schema-msx8hqn2.js} +0 -0
  790. /package/dist/chunks/{integration-n05xt0ee.js → schema-n05xt0ee.js} +0 -0
  791. /package/dist/chunks/{integration-n3j8tn72.js → schema-n3j8tn72.js} +0 -0
  792. /package/dist/chunks/{integration-njntx4h6.js → schema-njntx4h6.js} +0 -0
  793. /package/dist/chunks/{integration-p8qxwesx.js → schema-p8qxwesx.js} +0 -0
  794. /package/dist/chunks/{integration-q3sfg36h.js → schema-q3sfg36h.js} +0 -0
  795. /package/dist/chunks/{integration-q74kybfr.js → schema-q74kybfr.js} +0 -0
  796. /package/dist/chunks/{integration-qaymkmh1.js → schema-qaymkmh1.js} +0 -0
  797. /package/dist/chunks/{integration-qb87gjwd.js → schema-qb87gjwd.js} +0 -0
  798. /package/dist/chunks/{integration-qfa1cgps.js → schema-qfa1cgps.js} +0 -0
  799. /package/dist/chunks/{integration-qrg20bc0.js → schema-qrg20bc0.js} +0 -0
  800. /package/dist/chunks/{integration-rcb2kzg1.js → schema-rcb2kzg1.js} +0 -0
  801. /package/dist/chunks/{integration-sdp7kfr6.js → schema-sdp7kfr6.js} +0 -0
  802. /package/dist/chunks/{integration-se0s1eqw.js → schema-se0s1eqw.js} +0 -0
  803. /package/dist/chunks/{integration-sk3qaz4a.js → schema-sk3qaz4a.js} +0 -0
  804. /package/dist/chunks/{integration-ssg3fenm.js → schema-ssg3fenm.js} +0 -0
  805. /package/dist/chunks/{integration-twg0f83k.js → schema-twg0f83k.js} +0 -0
  806. /package/dist/chunks/{integration-w803qqfp.js → schema-w803qqfp.js} +0 -0
  807. /package/dist/chunks/{integration-wer8tq1h.js → schema-wer8tq1h.js} +0 -0
  808. /package/dist/chunks/{integration-wtztk69x.js → schema-wtztk69x.js} +0 -0
  809. /package/dist/chunks/{integration-x0ckcb58.js → schema-x0ckcb58.js} +0 -0
  810. /package/dist/chunks/{integration-x1b8g1yb.js → schema-x1b8g1yb.js} +0 -0
  811. /package/dist/chunks/{integration-x61499pn.js → schema-x61499pn.js} +0 -0
  812. /package/dist/chunks/{integration-y44na4kk.js → schema-y44na4kk.js} +0 -0
  813. /package/dist/chunks/{integration-y8cydn3q.js → schema-y8cydn3q.js} +0 -0
  814. /package/dist/chunks/{integration-ygaqb7jw.js → schema-ygaqb7jw.js} +0 -0
  815. /package/dist/chunks/{integration-z9919s4g.js → schema-z9919s4g.js} +0 -0
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  useragent2
3
- } from "./integration-26bs89kh.js";
3
+ } from "./schema-ga3x3tkz.js";
4
4
  import {
5
- ID9,
5
+ ID17,
6
6
  isAISDK2
7
- } from "./integration-chtrmnkp.js";
7
+ } from "./schema-xfrwv263.js";
8
8
  import {
9
9
  iife2
10
- } from "./integration-1kg9ymc8.js";
10
+ } from "./schema-1kg9ymc8.js";
11
11
  import {
12
12
  configuredSettings2
13
- } from "./integration-30z9ekqv.js";
13
+ } from "./schema-1s4vv42h.js";
14
14
 
15
15
  // src/plugin/provider/cloudflare-workers-ai.ts
16
16
  import os from "os";
17
17
  import { Effect } from "effect";
18
18
  import { define } from "@opencode-ai/plugin/effect/plugin";
19
19
  import { Form } from "@opencode-ai/schema/form";
20
- var providerID = ID9.make("cloudflare-workers-ai");
20
+ var providerID = ID17.make("cloudflare-workers-ai");
21
21
  var CloudflareWorkersAIPlugin2 = define({
22
22
  id: "opencode.provider.cloudflare.workers.ai",
23
23
  effect: Effect.fn(function* (ctx) {
@@ -1,33 +1,33 @@
1
1
  import {
2
- Service78,
3
- node82
4
- } from "./integration-scmtthwv.js";
2
+ Service79,
3
+ node84
4
+ } from "./schema-6qptncg2.js";
5
5
  import {
6
6
  optional2,
7
7
  statics2
8
- } from "./integration-p8qxwesx.js";
8
+ } from "./schema-p8qxwesx.js";
9
9
  import {
10
- Ref4,
11
- Service76,
12
- node80
13
- } from "./integration-rbqj5q8p.js";
10
+ Ref3,
11
+ Service72,
12
+ node77
13
+ } from "./schema-kwt11tv7.js";
14
14
  import {
15
15
  __export
16
- } from "./integration-9rqn6x4v.js";
16
+ } from "./schema-9rqn6x4v.js";
17
17
 
18
18
  // src/rpc.ts
19
19
  var exports_rpc = {};
20
20
  __export(exports_rpc, {
21
21
  Rpc: () => exports_rpc,
22
- Service: () => Service13,
22
+ Service: () => Service15,
23
23
  define: () => define2,
24
- node: () => node17
24
+ node: () => node19
25
25
  });
26
26
  import { define as define2 } from "@opencode-ai/schema/rpc";
27
27
  import { Event } from "@opencode-ai/schema/event";
28
28
  import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
29
29
  import { Context, Effect, JsonSchema, Layer, Schema, SchemaRepresentation, Stream } from "effect";
30
- class Service13 extends Context.Service()("@opencode/Rpc") {
30
+ class Service15 extends Context.Service()("@opencode/Rpc") {
31
31
  }
32
32
 
33
33
  class DeclaredError extends Error {
@@ -39,10 +39,10 @@ class DeclaredError extends Error {
39
39
  this.data = data;
40
40
  }
41
41
  }
42
- var layer = Layer.effect(Service13, Effect.gen(function* () {
43
- const bus = yield* Service78;
44
- const location = yield* Service76;
45
- const ref = Ref4.make({ directory: location.directory, workspaceID: location.workspaceID });
42
+ var layer = Layer.effect(Service15, Effect.gen(function* () {
43
+ const bus = yield* Service79;
44
+ const location = yield* Service72;
45
+ const ref = Ref3.make({ directory: location.directory, workspaceID: location.workspaceID });
46
46
  const callContext = {
47
47
  error: (type, message, data) => new DeclaredError(type, message, data)
48
48
  };
@@ -81,7 +81,7 @@ var layer = Layer.effect(Service13, Effect.gen(function* () {
81
81
  const event = registered.event;
82
82
  const data = yield* encode(event.schema, args[1]);
83
83
  return yield* bus.publish(registered.definition, data, {
84
- location: Ref4.make({ directory: ref.directory, workspaceID: ref.workspaceID })
84
+ location: Ref3.make({ directory: ref.directory, workspaceID: ref.workspaceID })
85
85
  }).pipe(Effect.asVoid);
86
86
  })
87
87
  }
@@ -115,19 +115,19 @@ var layer = Layer.effect(Service13, Effect.gen(function* () {
115
115
  const registered = events.get(name);
116
116
  if (!registered)
117
117
  return Stream.fail(new Error(`Unknown RPC event: ${definition.id}.${name}`));
118
- return bus.subscribe(registered.definition).pipe(Stream.provideService(Service76, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
118
+ return bus.subscribe(registered.definition).pipe(Stream.provideService(Service72, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
119
119
  }
120
120
  }
121
121
  };
122
122
  };
123
- return Service13.of({ register, call, client });
123
+ return Service15.of({ register, call, client });
124
124
  }));
125
- var node17 = makeLocationNode({ service: Service13, layer, deps: [node82, node80] });
125
+ var node19 = makeLocationNode({ service: Service15, layer, deps: [node84, node77] });
126
126
  var fields = {
127
127
  id: Event.ID,
128
128
  created: Schema.Finite,
129
129
  metadata: optional2(Schema.Record(Schema.String, Schema.Unknown)),
130
- location: optional2(Ref4)
130
+ location: optional2(Ref3)
131
131
  };
132
132
  var EventData = Schema.Record(Schema.String, Schema.Unknown);
133
133
  var jsonSchemas = new WeakMap;
@@ -203,8 +203,8 @@ var logicalEvent = Effect.fn("Rpc.logicalEvent")(function* (definition, name, pa
203
203
  ...payload,
204
204
  type: eventType(definition, name),
205
205
  data,
206
- location: Ref4.make({ directory: ref.directory, workspaceID: ref.workspaceID })
206
+ location: Ref3.make({ directory: ref.directory, workspaceID: ref.workspaceID })
207
207
  };
208
208
  });
209
209
 
210
- export { Service13, node17, exports_rpc, define2 };
210
+ export { Service15, node19, exports_rpc, define2 };
@@ -1,9 +1,9 @@
1
1
  // src/filesystem/watcher-binding.ts
2
2
  import { createRequire } from "node:module";
3
- function load2() {
3
+ function load3() {
4
4
  const require2 = createRequire(import.meta.url);
5
5
  const libc = typeof OPENCODE_LIBC === "undefined" ? undefined : OPENCODE_LIBC;
6
6
  return require2(process.env.OPENCODE_PARCEL_WATCHER_PATH ?? `@parcel/watcher-${process.platform}-${process.arch}${process.platform === "linux" ? `-${libc || "glibc"}` : ""}`);
7
7
  }
8
8
 
9
- export { load2 };
9
+ export { load3 };
@@ -1,21 +1,21 @@
1
1
  import {
2
- ID9,
2
+ ID17,
3
3
  isAISDK2,
4
4
  packageName2,
5
5
  mergeOverlay2
6
- } from "./integration-chtrmnkp.js";
6
+ } from "./schema-xfrwv263.js";
7
7
  import {
8
8
  __export
9
- } from "./integration-9rqn6x4v.js";
9
+ } from "./schema-9rqn6x4v.js";
10
10
 
11
11
  // src/aisdk.ts
12
12
  var exports_aisdk = {};
13
13
  __export(exports_aisdk, {
14
14
  AISDK: () => exports_aisdk,
15
15
  InitError: () => InitError2,
16
- Service: () => Service60,
16
+ Service: () => Service62,
17
17
  locationLayer: () => locationLayer2,
18
- node: () => node63
18
+ node: () => node65
19
19
  });
20
20
  import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
21
21
  import { APICallError } from "@ai-sdk/provider";
@@ -128,7 +128,7 @@ function prepareOptions(model, pkg) {
128
128
  }
129
129
 
130
130
  class InitError2 extends Schema.TaggedError()("AISDK.InitError", {
131
- providerID: ID9,
131
+ providerID: ID17,
132
132
  cause: Schema.Defect()
133
133
  }) {
134
134
  }
@@ -136,9 +136,9 @@ function initError(providerID) {
136
136
  return Effect.catchCause((cause) => Effect.fail(new InitError2({ providerID, cause: Cause.squash(cause) })));
137
137
  }
138
138
 
139
- class Service60 extends Context.Service()("@opencode/AISDK") {
139
+ class Service62 extends Context.Service()("@opencode/AISDK") {
140
140
  }
141
- var locationLayer2 = Layer.effect(Service60, Effect.gen(function* () {
141
+ var locationLayer2 = Layer.effect(Service62, Effect.gen(function* () {
142
142
  let sdkHooks = [];
143
143
  let languageHooks = [];
144
144
  const languages = new Map;
@@ -176,7 +176,7 @@ var locationLayer2 = Layer.effect(Service60, Effect.gen(function* () {
176
176
  }
177
177
  return event;
178
178
  });
179
- const service = Service60.of({
179
+ const service = Service62.of({
180
180
  hook: {
181
181
  sdk: register(() => sdkHooks, (next) => sdkHooks = next),
182
182
  language: register(() => languageHooks, (next) => languageHooks = next)
@@ -809,6 +809,6 @@ function providerErrorMessage(error) {
809
809
  const prefix = error.statusCode === undefined ? "Provider request failed" : `Provider request failed with HTTP ${error.statusCode}`;
810
810
  return error.message.trim() !== "" ? error.message : message ?? (code === undefined ? prefix : `${prefix}: ${code}`);
811
811
  }
812
- var node63 = makeLocationNode({ service: Service60, layer: locationLayer2, deps: [] });
812
+ var node65 = makeLocationNode({ service: Service62, layer: locationLayer2, deps: [] });
813
813
 
814
- export { InitError2, Service60, locationLayer2, node63, exports_aisdk };
814
+ export { InitError2, Service62, locationLayer2, node65, exports_aisdk };
@@ -1,47 +1,46 @@
1
1
  import {
2
- Service76
3
- } from "./integration-rbqj5q8p.js";
2
+ Service72
3
+ } from "./schema-kwt11tv7.js";
4
4
  import {
5
- Service74
6
- } from "./integration-wd5ma2ph.js";
5
+ Service70
6
+ } from "./schema-trhjdf47.js";
7
7
  import {
8
- Service73,
8
+ Service18,
9
9
  readText2,
10
10
  syncTextBom2
11
- } from "./integration-axrkenmh.js";
12
- import {
13
- Service19
14
- } from "./integration-h6phs3m3.js";
11
+ } from "./schema-fee8q97m.js";
15
12
  import {
16
- externalDirectoryPermission2,
17
- resolvePath2,
18
- Service72
19
- } from "./integration-3nf7bh68.js";
13
+ Service20
14
+ } from "./schema-w7xrk89n.js";
20
15
  import {
21
16
  Service54
22
- } from "./integration-h8zz2ecm.js";
17
+ } from "./schema-hsq9qkqb.js";
18
+ import {
19
+ Service19,
20
+ resolvePath2
21
+ } from "./schema-yjw6p547.js";
23
22
  import {
24
23
  fileDiff2
25
- } from "./integration-6prwharc.js";
24
+ } from "./schema-6prwharc.js";
26
25
  import {
27
26
  __export
28
- } from "./integration-9rqn6x4v.js";
27
+ } from "./schema-9rqn6x4v.js";
29
28
 
30
29
  // src/tool/plugin/edit.ts
31
30
  var exports_edit = {};
32
31
  __export(exports_edit, {
33
32
  EditTool: () => exports_edit,
34
- Input: () => Input9,
35
- Output: () => Output6,
36
- Plugin: () => Plugin23,
37
- name: () => name9
33
+ Input: () => Input11,
34
+ Output: () => Output7,
35
+ Plugin: () => Plugin43,
36
+ name: () => name11
38
37
  });
39
38
  import { ToolFailure } from "@opencode-ai/ai";
40
39
  import { FileDiff } from "@opencode-ai/schema/file-diff";
41
40
  import { Bom } from "@opencode-ai/util/bom";
42
41
  import { Effect, Schema } from "effect";
43
- var name9 = "edit";
44
- var Input9 = Schema.Struct({
42
+ var name11 = "edit";
43
+ var Input11 = Schema.Struct({
45
44
  path: Schema.String.annotate({
46
45
  description: "File to edit"
47
46
  }),
@@ -51,7 +50,7 @@ var Input9 = Schema.Struct({
51
50
  description: "Whether to replace every occurrence of oldString. When false, oldString must match exactly once. Defaults to false."
52
51
  })
53
52
  });
54
- var Output6 = Schema.Struct({
53
+ var Output7 = Schema.Struct({
55
54
  files: Schema.Array(FileDiff.Info),
56
55
  replacements: Schema.Number
57
56
  });
@@ -104,21 +103,21 @@ var findLineOccurrences = (content, search) => {
104
103
  return result;
105
104
  }, []);
106
105
  };
107
- var Plugin23 = {
106
+ var Plugin43 = {
108
107
  id: "opencode.tool.edit",
109
108
  effect: Effect.fn("EditTool.Plugin")(function* (ctx) {
110
- const mutation = yield* Service72;
111
- const fileMutation = yield* Service73;
112
- const environment = yield* Service74;
113
- const formatter = yield* Service19;
114
- const location = yield* Service76;
109
+ const access = yield* Service19;
110
+ const fileMutation = yield* Service18;
111
+ const environment = yield* Service70;
112
+ const formatter = yield* Service20;
113
+ const location = yield* Service72;
115
114
  const permission = yield* Service54;
116
115
  yield* ctx.tool.transform((editor) => editor.add({
117
- name: name9,
116
+ name: name11,
118
117
  options: { codemode: false, permission: "edit" },
119
118
  description: "Edit the contents of a file by finding and replacing exact text. When editing text from Read output, preserve the exact indentation (tabs or spaces) and omit the line-number prefix, such as `1: `. Never include the prefix in oldString or newString. The edit fails if oldString is not found. By default, oldString must identify a UNIQUE location. Multiple matches FAIL unless replaceAll is true. Add more surrounding context to disambiguate, or set replaceAll to true to replace every occurrence. Use replaceAll when the change should apply to every occurrence, such as renaming a variable.",
120
- input: Input9,
121
- output: Output6,
119
+ input: Input11,
120
+ output: Output7,
122
121
  execute: (input, context) => {
123
122
  return Effect.gen(function* () {
124
123
  const permissionSource = {
@@ -136,16 +135,8 @@ var Plugin23 = {
136
135
  message: "oldString must not be empty. Use write to create or overwrite a file."
137
136
  });
138
137
  }
139
- const target = yield* mutation.resolve({ path: input.path, kind: "file" });
140
- const external = target.externalDirectory;
141
- if (external) {
142
- yield* permission.assert({
143
- ...externalDirectoryPermission2(external),
144
- sessionID: context.sessionID,
145
- agent: context.agent,
146
- source: permissionSource
147
- });
148
- }
138
+ const target = yield* access.resolve({ path: input.path, kind: "file" });
139
+ yield* access.authorizeExternal([target], context);
149
140
  const original = yield* readText2(environment.files, target.absolute).pipe(Effect.catchTag("Environment.NotFound", () => Effect.fail(new ToolFailure({ message: `File not found: ${input.path}` }))), Effect.catchTag("Environment.WrongKind", (error) => error.actual === "directory" ? Effect.fail(new ToolFailure({ message: `Path is a directory, not a file: ${input.path}` })) : Effect.fail(new ToolFailure({ message: `Unable to edit ${input.path}`, error }))));
150
141
  const source = original.text;
151
142
  const ending = source.includes(crlf) ? crlf : `
@@ -203,4 +194,4 @@ var Plugin23 = {
203
194
  })
204
195
  };
205
196
 
206
- export { name9, Input9, Output6, Plugin23, exports_edit };
197
+ export { name11, Input11, Output7, Plugin43, exports_edit };
@@ -1,91 +1,94 @@
1
1
  import {
2
2
  Service80,
3
- node84
4
- } from "./integration-gny0aj3z.js";
3
+ node85
4
+ } from "./schema-fv0bxyhd.js";
5
5
  import {
6
- Service78,
7
- node82
8
- } from "./integration-scmtthwv.js";
6
+ Service79,
7
+ node84
8
+ } from "./schema-6qptncg2.js";
9
9
  import {
10
10
  SessionEvent2
11
- } from "./integration-mntxs535.js";
11
+ } from "./schema-mntxs535.js";
12
12
  import {
13
13
  SessionMessageTable2
14
- } from "./integration-hrvm11jt.js";
14
+ } from "./schema-hrvm11jt.js";
15
15
  import {
16
16
  prepare4
17
- } from "./integration-xg3vtz5h.js";
17
+ } from "./schema-rm3yzcsd.js";
18
18
  import {
19
19
  llmClient2
20
- } from "./integration-0e0xafbb.js";
20
+ } from "./schema-0e0xafbb.js";
21
21
  import {
22
22
  SessionMessage2
23
- } from "./integration-982e01ww.js";
23
+ } from "./schema-982e01ww.js";
24
24
  import {
25
25
  StepFailedError2
26
- } from "./integration-pe587v0q.js";
26
+ } from "./schema-2cr5jxfp.js";
27
+ import {
28
+ provenance2
29
+ } from "./schema-rqdcv1n1.js";
27
30
  import {
28
31
  decodeMessageRow2,
29
32
  preview2
30
- } from "./integration-0dh1sqzr.js";
33
+ } from "./schema-pe5crvt1.js";
31
34
  import {
32
- Service56,
33
- node59
34
- } from "./integration-tkhgbb47.js";
35
+ Service55,
36
+ node58
37
+ } from "./schema-1v896bp7.js";
35
38
  import {
36
- Service35,
37
- node39
38
- } from "./integration-t3jgv66k.js";
39
+ Service32,
40
+ node37
41
+ } from "./schema-1nt798q2.js";
39
42
  import {
40
43
  baseTranscript2
41
- } from "./integration-ava0yb97.js";
44
+ } from "./schema-q1nkzk48.js";
42
45
  import {
43
- make9
44
- } from "./integration-bphmvjfp.js";
46
+ make4
47
+ } from "./schema-bnfahk6g.js";
45
48
  import {
46
- Service10,
47
- node13
48
- } from "./integration-wy76m6zk.js";
49
+ Service4,
50
+ node7
51
+ } from "./schema-8aw20fxv.js";
49
52
  import {
50
- Service24,
51
- node28
52
- } from "./integration-sz4gjawx.js";
53
+ Service29,
54
+ node34
55
+ } from "./schema-npx3gdza.js";
53
56
  import {
54
57
  serialized2,
55
58
  nextPromotable2,
56
59
  promote2
57
- } from "./integration-56kfp8bc.js";
60
+ } from "./schema-8mvvefrh.js";
58
61
  import {
59
62
  Service2,
60
63
  isUntitled2,
61
64
  node3
62
- } from "./integration-a5n2dake.js";
65
+ } from "./schema-se2vkk77.js";
63
66
  import {
64
67
  DrainResult2,
65
- Service50
66
- } from "./integration-baaqp4zd.js";
68
+ Service43
69
+ } from "./schema-kne8f3cn.js";
67
70
  import {
68
- node42
69
- } from "./integration-5xzsz4y7.js";
71
+ node45
72
+ } from "./schema-p7v84xw5.js";
70
73
  import {
71
- node51
72
- } from "./integration-7dwyp953.js";
74
+ node72
75
+ } from "./schema-m9p8h4jk.js";
73
76
  import {
74
77
  Outcome2,
75
78
  make3
76
- } from "./integration-10fgs14z.js";
79
+ } from "./schema-wwqw8y3k.js";
77
80
  import {
78
- Service26
79
- } from "./integration-pf31ssb9.js";
81
+ Service33
82
+ } from "./schema-rap9a73h.js";
80
83
  import {
81
- node16
82
- } from "./integration-p8zhn1ry.js";
84
+ node17
85
+ } from "./schema-g1bsba7w.js";
83
86
  import {
84
87
  MAX_STEPS_PROMPT2
85
- } from "./integration-y44na4kk.js";
88
+ } from "./schema-y44na4kk.js";
86
89
  import {
87
90
  __export
88
- } from "./integration-9rqn6x4v.js";
91
+ } from "./schema-9rqn6x4v.js";
89
92
 
90
93
  // src/session/runner/llm.ts
91
94
  var exports_llm = {};
@@ -98,14 +101,14 @@ import { and, desc, eq, sql } from "drizzle-orm";
98
101
  import { Cause, Effect, Exit, FiberMap, Layer } from "effect";
99
102
  import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
100
103
  var CONTINUE_AFTER_INCOMPLETE_STREAM = "The previous response was interrupted. Continue from where you left off without repeating completed content.";
101
- var layer = Layer.effect(Service50, Effect.gen(function* () {
102
- const bus = yield* Service78;
103
- const store = yield* Service56;
104
- const context = yield* Service24;
105
- const modelTransport = yield* Service35;
104
+ var layer = Layer.effect(Service43, Effect.gen(function* () {
105
+ const bus = yield* Service79;
106
+ const store = yield* Service55;
107
+ const context = yield* Service29;
108
+ const modelTransport = yield* Service32;
106
109
  const db = (yield* Service80).db;
107
- const compaction = yield* Service10;
108
- const plugins = yield* Service26;
110
+ const compaction = yield* Service4;
111
+ const plugins = yield* Service33;
109
112
  const title = yield* Service2;
110
113
  const steps = yield* make3;
111
114
  const titles = yield* FiberMap.make();
@@ -162,7 +165,7 @@ var layer = Layer.effect(Service50, Effect.gen(function* () {
162
165
  resolveContext: (session) => Effect.gen(function* () {
163
166
  const selected = yield* context.select(session.id);
164
167
  const model = yield* context.resolveModel(selected.session);
165
- const history = yield* preview2(db, session.id, selected.instructions);
168
+ const history = yield* preview2(db, session.id, selected.instructions, provenance2(model) ?? "local");
166
169
  return {
167
170
  session: selected.session,
168
171
  agent: selected.agent,
@@ -228,7 +231,7 @@ var layer = Layer.effect(Service50, Effect.gen(function* () {
228
231
  const runStep = Effect.fn("SessionRunner.runStep")(function* (first, step) {
229
232
  const sessionID = first.session.id;
230
233
  let assistantMessageID = SessionMessage2.ID.create();
231
- const retry = yield* make9(bus, sessionID);
234
+ const retry = yield* make4(bus, sessionID);
232
235
  let initial = first;
233
236
  let recoverOverflow = true;
234
237
  let recoverContinuation = true;
@@ -240,9 +243,11 @@ var layer = Layer.effect(Service50, Effect.gen(function* () {
240
243
  prepare: context.prepare
241
244
  };
242
245
  if (compaction.required({ messages: loaded.messages, resolved: loaded.model, context: loaded })) {
243
- const compacted = yield* compaction.compact(compactionInput);
244
- if (compacted.status !== "completed")
245
- return yield* new StepFailedError2({ error: compacted.error });
246
+ const result = yield* compaction.compact(compactionInput);
247
+ if (result.status !== "completed")
248
+ return yield* new StepFailedError2({ error: result.error });
249
+ if (result.recoveredOverflow)
250
+ recoverOverflow = false;
246
251
  assistantMessageID = SessionMessage2.ID.create();
247
252
  continue;
248
253
  }
@@ -279,7 +284,7 @@ var layer = Layer.effect(Service50, Effect.gen(function* () {
279
284
  retry: proposed
280
285
  }),
281
286
  recoverContinuation,
282
- recoverOverflow: Effect.suspend(() => recoverOverflow && compaction.enabled() ? compaction.compact(compactionInput).pipe(Effect.map((result) => result.status === "completed")) : Effect.succeed(false))
287
+ recoverOverflow: Effect.suspend(() => recoverOverflow && compaction.enabled() ? compaction.compact({ ...compactionInput, overflow: true }).pipe(Effect.map((result) => result.status === "completed")) : Effect.succeed(false))
283
288
  });
284
289
  const completed = yield* Outcome2.$match(outcome, {
285
290
  Completed: (outcome) => Effect.succeed(outcome.needsContinuation),
@@ -346,23 +351,23 @@ var layer = Layer.effect(Service50, Effect.gen(function* () {
346
351
  }
347
352
  }
348
353
  });
349
- return Service50.of({ drain });
354
+ return Service43.of({ drain });
350
355
  }));
351
356
  var node2 = makeLocationNode({
352
- service: Service50,
357
+ service: Service43,
353
358
  layer,
354
359
  deps: [
355
- node82,
360
+ node84,
356
361
  llmClient2,
357
- node28,
358
- node39,
359
- node59,
360
- node13,
361
- node16,
362
+ node34,
363
+ node37,
364
+ node58,
365
+ node7,
366
+ node17,
362
367
  node3,
363
- node42,
364
- node51,
365
- node84
368
+ node45,
369
+ node72,
370
+ node85
366
371
  ]
367
372
  });
368
373
 
@@ -1,13 +1,13 @@
1
1
  import {
2
- ID8,
2
+ ID16,
3
3
  Family2
4
- } from "./integration-ey04d52n.js";
4
+ } from "./schema-yx2cz2pp.js";
5
5
  import {
6
- Service44
7
- } from "./integration-d7rthvks.js";
6
+ Service66
7
+ } from "./schema-vecstcyh.js";
8
8
  import {
9
9
  foldSettings2
10
- } from "./integration-30z9ekqv.js";
10
+ } from "./schema-1s4vv42h.js";
11
11
 
12
12
  // src/plugin/provider/lmstudio.ts
13
13
  import { define } from "@opencode-ai/plugin/effect/plugin";
@@ -31,12 +31,12 @@ var RemoteModel = Schema.Struct({
31
31
  var Response = Schema.Struct({ models: Schema.Array(RemoteModel) });
32
32
  var discovery = new Map;
33
33
  var discoveryLock = Semaphore.makeUnsafe(1);
34
- function make7(origin = "http://127.0.0.1:1234", interval = "30 seconds") {
34
+ function make8(origin = "http://127.0.0.1:1234", interval = "30 seconds") {
35
35
  return define({
36
36
  id: "opencode.provider.lmstudio",
37
37
  effect: Effect.fn(function* (ctx) {
38
38
  const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
39
- const config = yield* Service44;
39
+ const config = yield* Service66;
40
40
  const source = { current: configured(yield* config.entries(), origin) };
41
41
  const loaded = { models: [], hash: "[]" };
42
42
  yield* ctx.integration.transform((integrations) => {
@@ -63,7 +63,7 @@ function make7(origin = "http://127.0.0.1:1234", interval = "30 seconds") {
63
63
  });
64
64
  for (const item of loaded.models) {
65
65
  catalog.model.update(providerID, item.key, (model) => {
66
- model.modelID = ID8.make(item.key);
66
+ model.modelID = ID16.make(item.key);
67
67
  model.name = item.display_name || item.key;
68
68
  model.family = item.architecture ? Family2.make(item.architecture) : undefined;
69
69
  model.capabilities = {
@@ -125,7 +125,7 @@ function make7(origin = "http://127.0.0.1:1234", interval = "30 seconds") {
125
125
  })
126
126
  });
127
127
  }
128
- var LMStudioPlugin2 = make7();
128
+ var LMStudioPlugin2 = make8();
129
129
  function configured(entries, origin) {
130
130
  const settings = foldSettings2(entries, providerID, undefined);
131
131
  const baseURL = (typeof settings?.baseURL === "string" ? settings.baseURL : `${origin.replace(/\/+$/, "")}/v1`).replace(/\/+$/, "");
@@ -142,4 +142,4 @@ function configured(entries, origin) {
142
142
  return { baseURL, apiKey, endpoint: url.toString() };
143
143
  }
144
144
 
145
- export { make7, LMStudioPlugin2 };
145
+ export { make8, LMStudioPlugin2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./integration-9rqn6x4v.js";
3
+ } from "./schema-9rqn6x4v.js";
4
4
 
5
5
  // src/id/id.ts
6
6
  var exports_id = {};