@opencode-ai/core 0.0.0-beta-17519 → 0.0.0-beta-17595

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 (750) hide show
  1. package/dist/account/sql.js +2 -2
  2. package/dist/agent.js +72 -72
  3. package/dist/aisdk-native.js +3 -3
  4. package/dist/aisdk.js +4 -4
  5. package/dist/app.js +2 -2
  6. package/dist/bus.js +70 -70
  7. package/dist/catalog.js +80 -80
  8. package/dist/chunks/{worktree-1waapm91.js → file-027bgpms.js} +14 -14
  9. package/dist/chunks/{worktree-02dbfq60.js → file-02dbfq60.js} +1 -1
  10. package/dist/chunks/{worktree-04kwjb53.js → file-04kwjb53.js} +2 -2
  11. package/dist/chunks/{worktree-nx95edza.js → file-06h1zy40.js} +5 -5
  12. package/dist/chunks/{worktree-0dwyqmzq.js → file-0dwyqmzq.js} +1 -1
  13. package/dist/chunks/{worktree-0kvmztkf.js → file-0kvmztkf.js} +1 -1
  14. package/dist/chunks/{worktree-vj4x9f3m.js → file-0q14sxyz.js} +9 -9
  15. package/dist/chunks/{worktree-n8bdvphd.js → file-0x2z9q12.js} +8 -8
  16. package/dist/chunks/{worktree-0zs4qnv1.js → file-0zs4qnv1.js} +2 -2
  17. package/dist/chunks/{worktree-18pv8fg3.js → file-18pv8fg3.js} +2 -2
  18. package/dist/chunks/{worktree-0b3j38xs.js → file-18vh565s.js} +6 -6
  19. package/dist/chunks/{worktree-1c00jchy.js → file-1c00jchy.js} +2 -2
  20. package/dist/chunks/{worktree-xfd1xnk3.js → file-1px4xhxb.js} +2 -2
  21. package/dist/chunks/{worktree-37rcj8p3.js → file-1sx0aa4f.js} +3 -3
  22. package/dist/chunks/{worktree-2vwegrqc.js → file-1w0svdh3.js} +2 -2
  23. package/dist/chunks/{worktree-1xksxgzs.js → file-1xksxgzs.js} +2 -2
  24. package/dist/chunks/{worktree-f1nsvbvj.js → file-1yz6p2jq.js} +3 -3
  25. package/dist/chunks/{worktree-fe14tdkq.js → file-20fnfdqj.js} +10 -10
  26. package/dist/chunks/{worktree-25pxtba7.js → file-25pxtba7.js} +1 -1
  27. package/dist/chunks/{worktree-sd966s7w.js → file-27xnc6tv.js} +9 -9
  28. package/dist/chunks/{worktree-x8bp53t2.js → file-2g41g83c.js} +7 -7
  29. package/dist/chunks/{worktree-t6j101pt.js → file-2krtwza0.js} +7 -7
  30. package/dist/chunks/{worktree-2nmyybe0.js → file-2nmyybe0.js} +1 -1
  31. package/dist/chunks/{worktree-ddn74qps.js → file-2vxr0v86.js} +2 -2
  32. package/dist/chunks/{worktree-vgenfcra.js → file-2wqqqft7.js} +2 -2
  33. package/dist/chunks/{worktree-bpjevh87.js → file-3755670m.js} +25 -25
  34. package/dist/chunks/{worktree-38crwsq8.js → file-38crwsq8.js} +2 -2
  35. package/dist/chunks/{worktree-gs3rgzv4.js → file-3bk6rmsw.js} +129 -116
  36. package/dist/chunks/{worktree-5pfeh60c.js → file-3g8vftxb.js} +2 -2
  37. package/dist/chunks/{worktree-wm59w936.js → file-3jfeqpzx.js} +22 -22
  38. package/dist/chunks/{worktree-5xzparyv.js → file-3s7e2f99.js} +3 -3
  39. package/dist/chunks/{worktree-3thh6229.js → file-3thh6229.js} +2 -2
  40. package/dist/chunks/{worktree-t1wskd5z.js → file-4223r8y8.js} +5 -5
  41. package/dist/chunks/{worktree-42q4drvy.js → file-42q4drvy.js} +2 -2
  42. package/dist/chunks/{worktree-45f7x7tq.js → file-4adhyg6m.js} +7 -7
  43. package/dist/chunks/{worktree-pcnqrn8w.js → file-4m2k2smt.js} +7 -7
  44. package/dist/chunks/{worktree-4s2xwh5d.js → file-4s2xwh5d.js} +3 -3
  45. package/dist/chunks/{worktree-njp4sjwj.js → file-4wnw1v48.js} +7 -7
  46. package/dist/chunks/{worktree-4zzdwbaz.js → file-4zzdwbaz.js} +2 -2
  47. package/dist/chunks/{worktree-50jxp3hw.js → file-50jxp3hw.js} +1 -1
  48. package/dist/chunks/{worktree-52jzav25.js → file-52jzav25.js} +1 -1
  49. package/dist/chunks/{worktree-57tzwnz4.js → file-57tzwnz4.js} +1 -1
  50. package/dist/chunks/{worktree-8wwfk5hz.js → file-5aca3jzc.js} +9 -9
  51. package/dist/chunks/{worktree-7pgjtstk.js → file-5mbfga6t.js} +4 -4
  52. package/dist/chunks/{worktree-1rwe361b.js → file-5qc7cxvj.js} +13 -13
  53. package/dist/chunks/{worktree-taddbf1j.js → file-5rd2371y.js} +9 -9
  54. package/dist/chunks/{worktree-5rs65q6p.js → file-5rs65q6p.js} +1 -1
  55. package/dist/chunks/{worktree-5vcssjzn.js → file-5vcssjzn.js} +1 -1
  56. package/dist/chunks/{worktree-mvfnqvr0.js → file-60c0k1qy.js} +5 -5
  57. package/dist/chunks/{worktree-zqkzb2rv.js → file-64bdc2sf.js} +2 -2
  58. package/dist/chunks/{worktree-te3kd788.js → file-658vcx0m.js} +5 -5
  59. package/dist/chunks/{worktree-7b0jv85b.js → file-663be8qb.js} +7 -7
  60. package/dist/chunks/{worktree-kgw3cve8.js → file-665983a3.js} +20 -20
  61. package/dist/chunks/{worktree-nv3q409j.js → file-66ww2ke6.js} +2 -2
  62. package/dist/chunks/{worktree-hejzkg3n.js → file-6f5gxeem.js} +20 -20
  63. package/dist/chunks/file-6ky7rqk7.js +31 -0
  64. package/dist/chunks/{worktree-jqh1fr37.js → file-6nfxvtta.js} +4 -4
  65. package/dist/chunks/{worktree-cdws2yyh.js → file-6q42t53d.js} +5 -5
  66. package/dist/chunks/{worktree-875wbggt.js → file-6t84bth1.js} +5 -4
  67. package/dist/chunks/{worktree-n701djg3.js → file-6tvgjq6v.js} +4 -4
  68. package/dist/chunks/{worktree-p8fzv3v2.js → file-6y00qkx7.js} +1 -1
  69. package/dist/chunks/{worktree-706a4azd.js → file-706a4azd.js} +1 -1
  70. package/dist/chunks/{worktree-eep368gz.js → file-70krbkh8.js} +3 -3
  71. package/dist/chunks/{worktree-8qy7z4xa.js → file-73brgvey.js} +3 -3
  72. package/dist/chunks/{worktree-vy0djk29.js → file-75z23hs9.js} +21 -21
  73. package/dist/chunks/{worktree-7mrpdsq5.js → file-7mrpdsq5.js} +1 -1
  74. package/dist/chunks/file-7n13pnta.js +174 -0
  75. package/dist/chunks/{worktree-7wcmqxrc.js → file-7wcmqxrc.js} +1 -1
  76. package/dist/chunks/{worktree-88jbfw8z.js → file-88jbfw8z.js} +2 -2
  77. package/dist/chunks/{worktree-dgd8rska.js → file-8a9n1ecs.js} +3 -3
  78. package/dist/chunks/{worktree-f5h4svs6.js → file-8b8db9dn.js} +42 -7
  79. package/dist/chunks/{worktree-cgvnqv92.js → file-8dwkjrbx.js} +1 -1
  80. package/dist/chunks/{worktree-ygfah3rq.js → file-8ss9enjp.js} +3 -3
  81. package/dist/chunks/{worktree-d6vvk673.js → file-8twz6z1z.js} +2 -2
  82. package/dist/chunks/{worktree-8v47shgf.js → file-8v47shgf.js} +2 -2
  83. package/dist/chunks/{worktree-8ywqk2j9.js → file-8ywqk2j9.js} +1 -1
  84. package/dist/chunks/{worktree-93qdgxxd.js → file-93qdgxxd.js} +1 -1
  85. package/dist/chunks/{worktree-999qd968.js → file-999qd968.js} +1 -1
  86. package/dist/chunks/{worktree-9d2xhdr4.js → file-9d2xhdr4.js} +3 -3
  87. package/dist/chunks/{worktree-nwh9mtrv.js → file-9dbphfd4.js} +12 -12
  88. package/dist/chunks/{worktree-9f0rnpkn.js → file-9f0rnpkn.js} +1 -1
  89. package/dist/chunks/file-9jr1552g.js +49 -0
  90. package/dist/chunks/{worktree-bkkwvxgw.js → file-9nxkvjkr.js} +17 -17
  91. package/dist/chunks/{worktree-98930e30.js → file-9q7032rn.js} +10 -10
  92. package/dist/chunks/{worktree-qxcxzq0w.js → file-9tgd1sa0.js} +28 -11
  93. package/dist/chunks/{worktree-j3m211jx.js → file-9vc4jz8b.js} +5 -5
  94. package/dist/chunks/{worktree-zrg8htec.js → file-a4004nss.js} +75 -75
  95. package/dist/chunks/{worktree-a65h300v.js → file-a65h300v.js} +2 -2
  96. package/dist/chunks/{worktree-n6a0dr6g.js → file-aejdne0e.js} +2 -2
  97. package/dist/chunks/{worktree-f493cvht.js → file-as1t9t7n.js} +6 -6
  98. package/dist/chunks/{worktree-ayfwnm78.js → file-ayfwnm78.js} +2 -2
  99. package/dist/chunks/{worktree-5b8vkrh0.js → file-b1jt21vx.js} +5 -5
  100. package/dist/chunks/{worktree-v3hh79qq.js → file-b1z4y0ay.js} +86 -86
  101. package/dist/chunks/{worktree-6e3dgnnx.js → file-b4j6ey0s.js} +10 -10
  102. package/dist/chunks/{worktree-kb5qk7wn.js → file-bbmh2dfw.js} +2 -2
  103. package/dist/chunks/{worktree-9smt8cr9.js → file-bn7p95jq.js} +12 -12
  104. package/dist/chunks/{worktree-byab506k.js → file-byab506k.js} +1 -1
  105. package/dist/chunks/{worktree-857g7h76.js → file-c53n3hjv.js} +1 -1
  106. package/dist/chunks/{worktree-rqswsgbs.js → file-cdrqa8qb.js} +2 -2
  107. package/dist/chunks/{worktree-730r4vyz.js → file-cn5vww2k.js} +7 -7
  108. package/dist/chunks/{worktree-9r0qzhnf.js → file-cvh8045m.js} +2 -2
  109. package/dist/chunks/{worktree-cz3dkvcz.js → file-cz3dkvcz.js} +1 -1
  110. package/dist/chunks/{worktree-6jtjggv5.js → file-dgjzraq6.js} +1 -1
  111. package/dist/chunks/{worktree-dhphtf1x.js → file-dhphtf1x.js} +1 -1
  112. package/dist/chunks/{worktree-dyz5q1tb.js → file-dyz5q1tb.js} +2 -2
  113. package/dist/chunks/{worktree-e1z9a0ts.js → file-e1z9a0ts.js} +2 -2
  114. package/dist/chunks/{worktree-qg07mtkh.js → file-e62qqw9f.js} +15 -15
  115. package/dist/chunks/{worktree-8k8ks5a6.js → file-ec8vrfw5.js} +3 -3
  116. package/dist/chunks/{worktree-ywdd8efs.js → file-edvtf4tx.js} +105 -91
  117. package/dist/chunks/{worktree-wj6jc4h7.js → file-ek4bes0b.js} +5 -5
  118. package/dist/chunks/{worktree-hb4xmydk.js → file-en0j70s6.js} +3 -3
  119. package/dist/chunks/{worktree-erj4j75s.js → file-erj4j75s.js} +1 -1
  120. package/dist/chunks/{worktree-eyk9wdct.js → file-eyk9wdct.js} +2 -2
  121. package/dist/chunks/{worktree-g467njmm.js → file-ezegptdr.js} +10 -10
  122. package/dist/chunks/{worktree-f05p34aa.js → file-f05p34aa.js} +3 -3
  123. package/dist/chunks/{worktree-dppgrtwb.js → file-f14r7hfz.js} +27 -0
  124. package/dist/chunks/{worktree-jyepqp0w.js → file-f3rqrz1h.js} +7 -5
  125. package/dist/chunks/file-f6a73nhd.js +139 -0
  126. package/dist/chunks/{worktree-5zz4jszj.js → file-f7evhwkg.js} +8 -8
  127. package/dist/chunks/{worktree-axf5sacz.js → file-fcefwnba.js} +10 -10
  128. package/dist/chunks/{worktree-fmyre8m1.js → file-fmyre8m1.js} +1 -1
  129. package/dist/chunks/{worktree-b73001y4.js → file-fvjr77vx.js} +5 -5
  130. package/dist/chunks/file-fvw35s1f.js +148 -0
  131. package/dist/chunks/{worktree-g9yygpzr.js → file-g9yygpzr.js} +1 -1
  132. package/dist/chunks/{worktree-gcay93cp.js → file-gcay93cp.js} +1 -1
  133. package/dist/chunks/{worktree-gd2xppx8.js → file-gd2xppx8.js} +1 -1
  134. package/dist/chunks/{worktree-jy6jkn1q.js → file-gdndr5ds.js} +3 -3
  135. package/dist/chunks/{worktree-jcwqeqpt.js → file-gndxty6r.js} +12 -12
  136. package/dist/chunks/{worktree-gpee7ppy.js → file-gpee7ppy.js} +2 -2
  137. package/dist/chunks/{worktree-bp8xwhb4.js → file-grghsxkg.js} +6 -6
  138. package/dist/chunks/{worktree-909g54nx.js → file-gxmfza0d.js} +29 -29
  139. package/dist/chunks/{worktree-xdgv2fac.js → file-h7hxhz5s.js} +6 -6
  140. package/dist/chunks/{worktree-h8ecejt5.js → file-h8ecejt5.js} +1 -1
  141. package/dist/chunks/{worktree-y5mtxhrm.js → file-hcypmxj6.js} +22 -22
  142. package/dist/chunks/{worktree-3mfgaav1.js → file-hgn8axp1.js} +4 -4
  143. package/dist/chunks/{worktree-8bkmtpp6.js → file-hsyk7kfz.js} +5 -5
  144. package/dist/chunks/{worktree-j1a5h53y.js → file-j1a5h53y.js} +1 -1
  145. package/dist/chunks/{worktree-we2zmhe4.js → file-j2f50m4s.js} +2 -2
  146. package/dist/chunks/{worktree-cp1ke1wq.js → file-j2nmssd3.js} +9 -9
  147. package/dist/chunks/{worktree-6628r0j2.js → file-jqkpryhn.js} +11 -11
  148. package/dist/chunks/{worktree-jssy2dr3.js → file-jssy2dr3.js} +2 -2
  149. package/dist/chunks/{worktree-10xtr3be.js → file-jwcdbjdr.js} +2 -2
  150. package/dist/chunks/{worktree-w6ytwaqa.js → file-k0630w4g.js} +10 -10
  151. package/dist/chunks/{worktree-be91g35x.js → file-k7pgcjt6.js} +30 -26
  152. package/dist/chunks/{worktree-kg1345f7.js → file-kg1345f7.js} +1 -1
  153. package/dist/chunks/{worktree-szax8zgv.js → file-kjkmrs65.js} +2 -2
  154. package/dist/chunks/{worktree-nk6j6dqr.js → file-knd350r7.js} +8 -8
  155. package/dist/chunks/{worktree-z2vzkpp7.js → file-kptd0d9x.js} +6 -6
  156. package/dist/chunks/{worktree-shfvvkmw.js → file-kzj2xtdg.js} +14 -14
  157. package/dist/chunks/{worktree-mf0hyk7z.js → file-mf0hyk7z.js} +1 -1
  158. package/dist/chunks/{worktree-mh28new4.js → file-mh28new4.js} +2 -2
  159. package/dist/chunks/{worktree-2gh436pb.js → file-mhsxry0w.js} +5 -5
  160. package/dist/chunks/{worktree-8vhzxx5g.js → file-mnb85w6b.js} +3 -3
  161. package/dist/chunks/{worktree-ba68z0mh.js → file-mqfhnxg0.js} +22 -22
  162. package/dist/chunks/{worktree-mwceq5am.js → file-mwceq5am.js} +1 -1
  163. package/dist/chunks/{worktree-a9jaghsy.js → file-mzdzk01c.js} +3 -3
  164. package/dist/chunks/{worktree-7zqysg7a.js → file-n32fctmg.js} +9 -9
  165. package/dist/chunks/{worktree-ddjpbqb0.js → file-n744begs.js} +6 -6
  166. package/dist/chunks/{worktree-nesb2rcz.js → file-nesb2rcz.js} +2 -2
  167. package/dist/chunks/{worktree-05525jb6.js → file-ngrtxfq1.js} +2 -2
  168. package/dist/chunks/{worktree-nj1s64cz.js → file-nj1s64cz.js} +1 -1
  169. package/dist/chunks/{worktree-nr76rjj3.js → file-nr76rjj3.js} +2 -2
  170. package/dist/chunks/{worktree-3zqegg96.js → file-nthsreft.js} +9 -9
  171. package/dist/chunks/{worktree-7zdtvaa2.js → file-nve52h2s.js} +6 -6
  172. package/dist/chunks/{worktree-nzrjycs5.js → file-nzrjycs5.js} +1 -1
  173. package/dist/chunks/{worktree-s6by3cc4.js → file-p27xxkqg.js} +9 -9
  174. package/dist/chunks/{worktree-9rdgabpj.js → file-p3661pfb.js} +17 -11
  175. package/dist/chunks/{worktree-p3zwavty.js → file-p3zwavty.js} +2 -2
  176. package/dist/chunks/{worktree-skessbcj.js → file-pe29tp57.js} +3 -3
  177. package/dist/chunks/{worktree-pfqehjmy.js → file-pfqehjmy.js} +2 -2
  178. package/dist/chunks/{worktree-ph1me6ah.js → file-ph1me6ah.js} +2 -2
  179. package/dist/chunks/{worktree-pq4b4pqk.js → file-pq4b4pqk.js} +2 -2
  180. package/dist/chunks/{worktree-prf9bavk.js → file-prf9bavk.js} +3 -3
  181. package/dist/chunks/{worktree-fm1nvm5g.js → file-px7n0cd3.js} +1 -1
  182. package/dist/chunks/{worktree-snreps37.js → file-pxc9mm6x.js} +11 -11
  183. package/dist/chunks/{worktree-dw1mm7n3.js → file-pxh2y4mp.js} +6 -6
  184. package/dist/chunks/{worktree-wxkmmjny.js → file-qbvbyx91.js} +4 -4
  185. package/dist/chunks/{worktree-qe0d689s.js → file-qe0d689s.js} +2 -2
  186. package/dist/chunks/{worktree-ekph8834.js → file-qgt32wwf.js} +3 -3
  187. package/dist/chunks/{worktree-qsgvz7g8.js → file-qsgvz7g8.js} +2 -2
  188. package/dist/chunks/{worktree-qgn7w6cn.js → file-qxs84648.js} +9 -9
  189. package/dist/chunks/{worktree-5p2sx24b.js → file-qy071k7t.js} +3 -3
  190. package/dist/chunks/{worktree-r3k9abhd.js → file-r3k9abhd.js} +2 -2
  191. package/dist/chunks/{worktree-7420sy82.js → file-rg5spvbf.js} +5 -5
  192. package/dist/chunks/{worktree-rt6yg6j2.js → file-rt6yg6j2.js} +2 -2
  193. package/dist/chunks/{worktree-c3f8xgsn.js → file-ry4vhh7y.js} +80 -33
  194. package/dist/chunks/{worktree-ryap75b3.js → file-ryap75b3.js} +1 -1
  195. package/dist/chunks/{worktree-6nw3hf3n.js → file-s6e3c6h1.js} +3 -3
  196. package/dist/chunks/{worktree-3ms9b0hh.js → file-s8dhdr1a.js} +10 -10
  197. package/dist/chunks/{worktree-s9f13v9h.js → file-s9f13v9h.js} +1 -1
  198. package/dist/chunks/{worktree-smpeg8c9.js → file-smpeg8c9.js} +2 -2
  199. package/dist/chunks/{worktree-jtvazjbd.js → file-szsnfq8s.js} +36 -36
  200. package/dist/chunks/{worktree-2m0g72hh.js → file-t14kykx1.js} +3 -3
  201. package/dist/chunks/{worktree-tcn24h1d.js → file-tcn24h1d.js} +1 -1
  202. package/dist/chunks/{worktree-tenv3kfs.js → file-tenv3kfs.js} +2 -2
  203. package/dist/chunks/{worktree-0qh9pzb0.js → file-tfpq1akv.js} +12 -12
  204. package/dist/chunks/{worktree-6ehwq28g.js → file-tgkwq7ey.js} +16 -16
  205. package/dist/chunks/{worktree-thstd87d.js → file-thstd87d.js} +1 -1
  206. package/dist/chunks/{worktree-sxxq12m6.js → file-tns74tew.js} +4 -4
  207. package/dist/chunks/{worktree-fkqmsqw4.js → file-tq2yp16c.js} +7 -7
  208. package/dist/chunks/{worktree-5fjttjqy.js → file-tr01v5pk.js} +3 -3
  209. package/dist/chunks/{worktree-y3qywb4q.js → file-trvnbm2r.js} +4 -4
  210. package/dist/chunks/{worktree-8zdwha83.js → file-ttdn9mvh.js} +11 -11
  211. package/dist/chunks/{worktree-6p661xfs.js → file-v0ktexvy.js} +2 -2
  212. package/dist/chunks/{worktree-v80zsxnb.js → file-v80zsxnb.js} +1 -1
  213. package/dist/chunks/{worktree-v972xay6.js → file-v972xay6.js} +1 -1
  214. package/dist/chunks/{worktree-v9bfv94f.js → file-v9bfv94f.js} +1 -1
  215. package/dist/chunks/{worktree-b9twh12c.js → file-va2xjmjn.js} +13 -13
  216. package/dist/chunks/file-vacr5vr5.js +37 -0
  217. package/dist/chunks/{worktree-r1a74hph.js → file-vd76ghhe.js} +70 -58
  218. package/dist/chunks/{worktree-yftywzew.js → file-vhn5tvvs.js} +7 -7
  219. package/dist/chunks/{worktree-9xv0h02m.js → file-vks3mnpp.js} +16 -16
  220. package/dist/chunks/{worktree-wx89ywv3.js → file-vkvb1sb3.js} +1 -1
  221. package/dist/chunks/{worktree-r0zc60h8.js → file-vm3prpn4.js} +1 -1
  222. package/dist/chunks/{worktree-ts4t4v20.js → file-vv288965.js} +2 -2
  223. package/dist/chunks/{worktree-9a1r81ws.js → file-vwqhfv9a.js} +84 -67
  224. package/dist/chunks/{worktree-vz89hfgr.js → file-vz89hfgr.js} +1 -1
  225. package/dist/chunks/{worktree-wjn5a2kx.js → file-w0nvndn8.js} +8 -8
  226. package/dist/chunks/{worktree-91t3rsqh.js → file-w5c5ggfg.js} +12 -12
  227. package/dist/chunks/{worktree-249s8sgy.js → file-wamspyg8.js} +3 -3
  228. package/dist/chunks/{worktree-wd268jeg.js → file-wd268jeg.js} +1 -1
  229. package/dist/chunks/{worktree-wmxdh12w.js → file-wmxdh12w.js} +1 -1
  230. package/dist/chunks/{worktree-wps8gh8n.js → file-wps8gh8n.js} +2 -2
  231. package/dist/chunks/{worktree-wt193r4g.js → file-wt193r4g.js} +1 -1
  232. package/dist/chunks/{worktree-eyycrz1w.js → file-x143q1e8.js} +6 -6
  233. package/dist/chunks/{worktree-zthe9zqc.js → file-xczfw7dq.js} +4 -4
  234. package/dist/chunks/{worktree-3w0f1yxt.js → file-xg3qgrrb.js} +3 -3
  235. package/dist/chunks/{worktree-xgv25zxy.js → file-xgv25zxy.js} +1 -1
  236. package/dist/chunks/{worktree-56p2m126.js → file-xjreyxj2.js} +1 -1
  237. package/dist/chunks/{worktree-g07x5xy3.js → file-xkapkgm1.js} +7 -7
  238. package/dist/chunks/{worktree-s5q7hk5c.js → file-xt2bapaq.js} +6 -6
  239. package/dist/chunks/{worktree-xwftk1fd.js → file-xwftk1fd.js} +2 -2
  240. package/dist/chunks/{worktree-hkp4zrd4.js → file-xxpvz42q.js} +3 -3
  241. package/dist/chunks/{worktree-y0x38cee.js → file-y0x38cee.js} +1 -1
  242. package/dist/chunks/{worktree-1kvtxahz.js → file-y198y2ra.js} +4 -4
  243. package/dist/chunks/{worktree-tr3fnk6a.js → file-y3ys4sce.js} +3 -3
  244. package/dist/chunks/{worktree-y67x6rf6.js → file-y67x6rf6.js} +1 -1
  245. package/dist/chunks/{worktree-y8rs54ne.js → file-y8rs54ne.js} +1 -1
  246. package/dist/chunks/{worktree-y980s7ka.js → file-y980s7ka.js} +3 -3
  247. package/dist/chunks/{worktree-hwa45yqt.js → file-yb1hpdkr.js} +12 -12
  248. package/dist/chunks/{worktree-ed4jjjcc.js → file-yf0knd5z.js} +2 -2
  249. package/dist/chunks/{worktree-fa8dcnd7.js → file-ywrrwgdd.js} +7 -7
  250. package/dist/chunks/{worktree-y7xy17p6.js → file-yy9aw35r.js} +37 -7
  251. package/dist/chunks/{worktree-yz0wm9s3.js → file-yz0wm9s3.js} +2 -2
  252. package/dist/chunks/{worktree-3vh42rcr.js → file-z3nf8g8y.js} +2 -2
  253. package/dist/chunks/{worktree-zbqqnp0n.js → file-zbqqnp0n.js} +1 -1
  254. package/dist/chunks/{worktree-zdkg1k91.js → file-zdkg1k91.js} +1 -1
  255. package/dist/chunks/{worktree-zfxc0ze5.js → file-zfxc0ze5.js} +1 -1
  256. package/dist/chunks/{worktree-t2xtwj2n.js → file-zgkcypa3.js} +46 -26
  257. package/dist/chunks/{worktree-5a1f2529.js → file-zh6p9k71.js} +4 -4
  258. package/dist/chunks/{worktree-8v2yzmx6.js → file-zj2qv98r.js} +9 -9
  259. package/dist/chunks/{worktree-z66vzcey.js → file-zjvgdt9p.js} +7 -7
  260. package/dist/chunks/{worktree-jaw7zdhd.js → file-ztp8pcjx.js} +8 -8
  261. package/dist/chunks/{worktree-dx75tmcf.js → file-zx1bs0qm.js} +3 -3
  262. package/dist/chunks/{worktree-5sgbvx3z.js → file-zxe9jjhn.js} +2 -2
  263. package/dist/chunks/{worktree-j7gqmkwh.js → file-zxg28mmk.js} +4 -4
  264. package/dist/chunks/index-8jqmqb92.js +1 -1
  265. package/dist/codemode/catalog.js +2 -2
  266. package/dist/codemode/instructions.js +4 -4
  267. package/dist/codemode/tool.js +3 -3
  268. package/dist/command.js +126 -126
  269. package/dist/config/markdown.js +2 -2
  270. package/dist/config/normalize.js +20 -20
  271. package/dist/config/plugin/agent.js +131 -131
  272. package/dist/config/plugin/command.js +128 -128
  273. package/dist/config/plugin/instruction.js +87 -87
  274. package/dist/config/plugin/mcp.js +133 -0
  275. package/dist/config/plugin/policy.js +112 -112
  276. package/dist/config/plugin/provider.js +111 -111
  277. package/dist/config/plugin/reference.js +115 -115
  278. package/dist/config/plugin/skill-file.js +104 -104
  279. package/dist/config/plugin/skill.js +134 -134
  280. package/dist/config/plugin/source.js +111 -111
  281. package/dist/config/plugin/websearch.js +111 -111
  282. package/dist/config/variable.js +4 -4
  283. package/dist/config.js +110 -110
  284. package/dist/credential/sql.js +3 -3
  285. package/dist/credential.js +70 -70
  286. package/dist/database/database.js +67 -67
  287. package/dist/database/drizzle/effect-sqlite/driver.js +16 -16
  288. package/dist/database/drizzle/effect-sqlite/index.js +16 -16
  289. package/dist/database/drizzle/effect-sqlite/migrator.js +15 -15
  290. package/dist/database/drizzle/effect-sqlite/session.js +15 -15
  291. package/dist/database/drizzle/index.js +18 -18
  292. package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
  293. package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
  294. package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
  295. package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
  296. package/dist/database/drizzle/sqlite-core/effect/index.js +22 -22
  297. package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
  298. package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
  299. package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
  300. package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
  301. package/dist/database/drizzle/sqlite-core/effect/session.js +14 -14
  302. package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
  303. package/dist/database/drizzle/up-migrations/effect-sqlite.js +4 -4
  304. package/dist/database/drizzle/up-migrations/sqlite.js +2 -2
  305. package/dist/database/drizzle/up-migrations/utils.js +2 -2
  306. package/dist/database/drizzle.js +19 -19
  307. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
  308. package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
  309. package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
  310. package/dist/database/migration/20260225215848_workspace.js +2 -2
  311. package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
  312. package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
  313. package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
  314. package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
  315. package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
  316. package/dist/database/migration/20260323234822_events.js +2 -2
  317. package/dist/database/migration/20260410174513_workspace-name.js +2 -2
  318. package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
  319. package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
  320. package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
  321. package/dist/database/migration/20260428004200_add_session_path.js +2 -2
  322. package/dist/database/migration/20260501142318_next_venus.js +2 -2
  323. package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
  324. package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
  325. package/dist/database/migration/20260510033149_session_usage.js +2 -2
  326. package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
  327. package/dist/database/migration/20260511173437_session-metadata.js +2 -2
  328. package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
  329. package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
  330. package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
  331. package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
  332. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
  333. package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
  334. package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
  335. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
  336. package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
  337. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
  338. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
  339. package/dist/database/migration/20260611035744_credential.js +2 -2
  340. package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
  341. package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
  342. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
  343. package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
  344. package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
  345. package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
  346. package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
  347. package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
  348. package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
  349. package/dist/database/migration/20260812181746_session_inbox.js +2 -2
  350. package/dist/database/migration/20260812213948_worktree.js +2 -2
  351. package/dist/database/migration.gen.js +46 -46
  352. package/dist/database/migration.js +48 -48
  353. package/dist/database/path.js +3 -3
  354. package/dist/database/schema.gen.js +2 -2
  355. package/dist/database/schema.sql.js +2 -2
  356. package/dist/database/sqlite.bun.js +2 -2
  357. package/dist/database/sqlite.js +2 -2
  358. package/dist/database/sqlite.node.js +2 -2
  359. package/dist/database/sqlite.workerd.js +2 -2
  360. package/dist/database/v1-migration.bun.js +146 -84
  361. package/dist/database/v1-migration.js +2 -2
  362. package/dist/database/v1-migration.noop.js +1 -1
  363. package/dist/effect/app-node-builder.js +319 -313
  364. package/dist/effect/app-node-platform.js +2 -2
  365. package/dist/effect/keyed-mutex.js +2 -2
  366. package/dist/environment/driver.js +1 -1
  367. package/dist/environment/environment.js +88 -88
  368. package/dist/environment/exec-defaults.js +3 -3
  369. package/dist/environment/files.js +2 -2
  370. package/dist/environment/index.js +90 -90
  371. package/dist/environment/local.js +3 -3
  372. package/dist/environment/memory.js +3 -3
  373. package/dist/environment/unavailable.js +1 -1
  374. package/dist/event/sql.js +2 -2
  375. package/dist/event-logger.js +70 -70
  376. package/dist/file-mutation.js +89 -89
  377. package/dist/file.js +2 -2
  378. package/dist/filesystem/fff.bun.js +2 -2
  379. package/dist/filesystem/fff.js +2 -2
  380. package/dist/filesystem/fff.node.js +2 -2
  381. package/dist/filesystem/fff.workerd.js +2 -2
  382. package/dist/filesystem/ignore.js +1 -1
  383. package/dist/filesystem/location-watcher.js +111 -111
  384. package/dist/filesystem/protected.js +2 -2
  385. package/dist/filesystem/search.js +93 -93
  386. package/dist/filesystem/watcher-binding.js +2 -2
  387. package/dist/filesystem/watcher.js +4 -4
  388. package/dist/filesystem.js +93 -93
  389. package/dist/form.js +71 -71
  390. package/dist/formatter/builtins.js +3 -3
  391. package/dist/formatter.js +113 -113
  392. package/dist/generate.js +85 -85
  393. package/dist/git.js +5 -5
  394. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
  395. package/dist/github-copilot/chat/get-response-metadata.js +2 -2
  396. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
  397. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
  398. package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
  399. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
  400. package/dist/github-copilot/copilot-provider.js +19 -19
  401. package/dist/github-copilot/models.js +4 -4
  402. package/dist/github-copilot/openai-compatible-error.js +2 -2
  403. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +3 -3
  404. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
  405. package/dist/github-copilot/responses/openai-error.js +2 -2
  406. package/dist/github-copilot/responses/openai-responses-language-model.js +12 -12
  407. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
  408. package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
  409. package/dist/github-copilot/responses/tool/file-search.js +2 -2
  410. package/dist/github-copilot/responses/tool/image-generation.js +2 -2
  411. package/dist/github-copilot/responses/tool/local-shell.js +2 -2
  412. package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
  413. package/dist/github-copilot/responses/tool/web-search.js +2 -2
  414. package/dist/id/id.js +2 -2
  415. package/dist/image/photon-wasm.bun.js +1 -1
  416. package/dist/image/photon-wasm.node.js +1 -1
  417. package/dist/image/photon-wasm.workerd.js +1 -1
  418. package/dist/image/photon.js +124 -124
  419. package/dist/image.js +124 -124
  420. package/dist/instruction-discovery.js +74 -74
  421. package/dist/instructions/builtins.js +83 -83
  422. package/dist/instructions/index.js +2 -2
  423. package/dist/integration/connection.js +2 -2
  424. package/dist/integration.js +77 -77
  425. package/dist/job.js +4 -4
  426. package/dist/kv/sql.js +3 -3
  427. package/dist/kv.js +70 -70
  428. package/dist/location-mutation.js +81 -81
  429. package/dist/location-service-map.js +81 -81
  430. package/dist/location-services.js +319 -313
  431. package/dist/location.js +80 -80
  432. package/dist/mcp/client.js +91 -91
  433. package/dist/mcp/index.js +95 -123
  434. package/dist/mcp/instructions.js +151 -151
  435. package/dist/mcp/oauth.js +2 -2
  436. package/dist/mcp/stdio.js +89 -89
  437. package/dist/mime.js +2 -2
  438. package/dist/model-resolver.js +83 -83
  439. package/dist/model.js +3 -3
  440. package/dist/models-dev.js +77 -77
  441. package/dist/oauth/page.js +2 -2
  442. package/dist/permission/saved.js +81 -81
  443. package/dist/permission/sql.js +6 -6
  444. package/dist/permission.js +101 -101
  445. package/dist/plugin/agent.js +102 -102
  446. package/dist/plugin/command.js +81 -81
  447. package/dist/plugin/hooks.js +3 -3
  448. package/dist/plugin/host.js +184 -183
  449. package/dist/plugin/internal.js +278 -272
  450. package/dist/plugin/mcp-codemode-exclusion.js +9 -0
  451. package/dist/plugin/models-dev.js +78 -78
  452. package/dist/plugin/plan.js +74 -74
  453. package/dist/plugin/promise.js +2 -2
  454. package/dist/plugin/provider/alibaba.js +3 -3
  455. package/dist/plugin/provider/amazon-bedrock.js +3 -3
  456. package/dist/plugin/provider/anthropic.js +3 -3
  457. package/dist/plugin/provider/azure.js +118 -118
  458. package/dist/plugin/provider/cerebras.js +3 -3
  459. package/dist/plugin/provider/cloudflare-ai-gateway.js +119 -119
  460. package/dist/plugin/provider/cloudflare-workers-ai.js +119 -119
  461. package/dist/plugin/provider/cohere.js +3 -3
  462. package/dist/plugin/provider/configured.js +116 -116
  463. package/dist/plugin/provider/deepinfra.js +3 -3
  464. package/dist/plugin/provider/dynamic.js +2 -2
  465. package/dist/plugin/provider/factory.js +2 -2
  466. package/dist/plugin/provider/gateway.js +3 -3
  467. package/dist/plugin/provider/github-copilot.js +84 -84
  468. package/dist/plugin/provider/gitlab.js +4 -4
  469. package/dist/plugin/provider/google-vertex.js +3 -3
  470. package/dist/plugin/provider/groq.js +3 -3
  471. package/dist/plugin/provider/kilo.js +3 -3
  472. package/dist/plugin/provider/llmgateway.js +79 -79
  473. package/dist/plugin/provider/lmstudio.js +118 -0
  474. package/dist/plugin/provider/mistral.js +3 -3
  475. package/dist/plugin/provider/nvidia.js +3 -3
  476. package/dist/plugin/provider/ollama.js +118 -0
  477. package/dist/plugin/provider/openai-compatible.js +2 -2
  478. package/dist/plugin/provider/openai.js +81 -81
  479. package/dist/plugin/provider/opencode.js +95 -95
  480. package/dist/plugin/provider/openrouter.js +4 -4
  481. package/dist/plugin/provider/perplexity.js +3 -3
  482. package/dist/plugin/provider/sap-ai-core.js +3 -3
  483. package/dist/plugin/provider/snowflake-cortex.js +3 -3
  484. package/dist/plugin/provider/togetherai.js +3 -3
  485. package/dist/plugin/provider/venice.js +3 -3
  486. package/dist/plugin/provider/vercel.js +3 -3
  487. package/dist/plugin/provider/vllm.js +118 -0
  488. package/dist/plugin/provider/xai.js +79 -79
  489. package/dist/plugin/provider/zenmux.js +3 -3
  490. package/dist/plugin/provider.js +157 -154
  491. package/dist/plugin/runtime.js +175 -174
  492. package/dist/plugin/sdk.js +71 -71
  493. package/dist/plugin/skill.js +132 -132
  494. package/dist/plugin/supervisor.js +283 -277
  495. package/dist/plugin/system-prompt.js +2 -2
  496. package/dist/plugin/variant.js +4 -4
  497. package/dist/plugin/warming.js +112 -112
  498. package/dist/plugin/websearch/exa.js +4 -4
  499. package/dist/plugin/websearch/firecrawl.js +5 -5
  500. package/dist/plugin/websearch/index.js +9 -9
  501. package/dist/plugin/websearch/mcp.js +3 -3
  502. package/dist/plugin/websearch/parallel.js +5 -5
  503. package/dist/plugin/websearch/tavily.js +3 -3
  504. package/dist/plugin.js +185 -184
  505. package/dist/project/schema.js +3 -3
  506. package/dist/project/sql.js +5 -5
  507. package/dist/project.js +79 -79
  508. package/dist/provider.js +2 -2
  509. package/dist/pty/protocol.js +1 -1
  510. package/dist/pty/pty.bun.js +1 -1
  511. package/dist/pty/pty.node.js +1 -1
  512. package/dist/pty/pty.workerd.js +1 -1
  513. package/dist/pty/schema.js +2 -2
  514. package/dist/pty/ticket.js +72 -72
  515. package/dist/pty.js +114 -114
  516. package/dist/reference/instructions.js +79 -79
  517. package/dist/reference.js +77 -77
  518. package/dist/repository-cache.js +7 -7
  519. package/dist/repository.js +2 -2
  520. package/dist/ripgrep/binary.js +3 -3
  521. package/dist/ripgrep.js +91 -91
  522. package/dist/schema.js +2 -2
  523. package/dist/session/compaction.js +147 -147
  524. package/dist/session/context.js +291 -285
  525. package/dist/session/environment.js +12 -0
  526. package/dist/session/error.js +4 -4
  527. package/dist/session/event.js +2 -2
  528. package/dist/session/execution/restart.js +117 -117
  529. package/dist/session/execution.js +117 -117
  530. package/dist/session/generate-node.js +297 -291
  531. package/dist/session/generate.js +2 -2
  532. package/dist/session/history.js +79 -79
  533. package/dist/session/inbox.js +79 -79
  534. package/dist/session/info.js +89 -89
  535. package/dist/session/instruction-entry.js +75 -75
  536. package/dist/session/instruction-state.js +10 -10
  537. package/dist/session/instructions.js +98 -98
  538. package/dist/session/message-updater.js +4 -4
  539. package/dist/session/message.js +2 -2
  540. package/dist/session/model-headers.js +4 -4
  541. package/dist/session/model-http.js +4 -4
  542. package/dist/session/model-request.js +299 -293
  543. package/dist/session/model-transport.js +4 -4
  544. package/dist/session/projector.js +91 -91
  545. package/dist/session/prompt-cache-diagnostics.js +2 -2
  546. package/dist/session/prompt-cache-key.js +3 -3
  547. package/dist/session/revert.js +116 -116
  548. package/dist/session/run-coordinator.js +2 -2
  549. package/dist/session/runner/index.js +86 -86
  550. package/dist/session/runner/llm.js +306 -300
  551. package/dist/session/runner/max-steps.js +2 -2
  552. package/dist/session/runner/model.js +85 -85
  553. package/dist/session/runner/publish-llm-event.js +4 -4
  554. package/dist/session/runner/retry.js +74 -74
  555. package/dist/session/runner/to-llm-message.js +2 -2
  556. package/dist/session/schema.js +2 -2
  557. package/dist/session/sql.js +6 -6
  558. package/dist/session/store.js +97 -97
  559. package/dist/session/system-prompt.js +2 -2
  560. package/dist/session/title.js +114 -114
  561. package/dist/session/to-session-error.js +112 -112
  562. package/dist/session/transfer.js +183 -182
  563. package/dist/session/usage.js +2 -2
  564. package/dist/session.js +174 -173
  565. package/dist/shell/parse.js +4 -4
  566. package/dist/shell/parser-wasm.bun.js +1 -1
  567. package/dist/shell/parser-wasm.node.js +1 -1
  568. package/dist/shell/parser-wasm.workerd.js +1 -1
  569. package/dist/shell/select.js +3 -3
  570. package/dist/shell.js +125 -123
  571. package/dist/skill/discovery.js +3 -3
  572. package/dist/skill/instructions.js +103 -103
  573. package/dist/skill.js +102 -102
  574. package/dist/snapshot.js +111 -111
  575. package/dist/state.js +2 -2
  576. package/dist/tool/html-markdown.js +2 -2
  577. package/dist/tool/http-body.js +2 -2
  578. package/dist/tool/mcp.js +150 -150
  579. package/dist/tool/plugin/edit.js +141 -141
  580. package/dist/tool/plugin/file-diff.js +2 -2
  581. package/dist/tool/plugin/glob.js +113 -113
  582. package/dist/tool/plugin/grep.js +113 -113
  583. package/dist/tool/plugin/patch.js +141 -141
  584. package/dist/tool/plugin/question.js +103 -103
  585. package/dist/tool/plugin/read.js +116 -116
  586. package/dist/tool/plugin/shell.js +179 -178
  587. package/dist/tool/plugin/skill.js +103 -103
  588. package/dist/tool/plugin/subagent.js +176 -175
  589. package/dist/tool/plugin/webfetch.js +104 -104
  590. package/dist/tool/plugin/websearch.js +132 -132
  591. package/dist/tool/plugin/write.js +141 -141
  592. package/dist/tool/read-filesystem.js +95 -95
  593. package/dist/tool/runtime.js +2 -2
  594. package/dist/tool-output.js +112 -112
  595. package/dist/tool.js +145 -145
  596. package/dist/types/command.d.ts +1 -1
  597. package/dist/types/config/plugin/mcp.d.ts +8 -0
  598. package/dist/types/location-service-map.d.ts +2 -2
  599. package/dist/types/location-services.d.ts +1 -1
  600. package/dist/types/mcp/index.d.ts +12 -6
  601. package/dist/types/plugin/host.d.ts +14 -1
  602. package/dist/types/plugin/internal.d.ts +4 -3
  603. package/dist/types/plugin/mcp-codemode-exclusion.d.ts +2 -0
  604. package/dist/types/plugin/provider/lmstudio.d.ts +5 -0
  605. package/dist/types/plugin/provider/ollama.d.ts +5 -0
  606. package/dist/types/plugin/provider/vllm.d.ts +5 -0
  607. package/dist/types/plugin/runtime.d.ts +13 -1
  608. package/dist/types/plugin/supervisor.d.ts +1 -1
  609. package/dist/types/plugin/websearch/mcp.d.ts +1 -1
  610. package/dist/types/schema.d.ts +1 -1
  611. package/dist/types/session/environment.d.ts +13 -0
  612. package/dist/types/session.d.ts +5 -0
  613. package/dist/types/shell.d.ts +2 -1
  614. package/dist/types/tool/plugin/shell.d.ts +1 -1
  615. package/dist/types/tool/plugin/subagent.d.ts +4 -0
  616. package/dist/types/v1/config/migrate.d.ts +9 -9
  617. package/dist/util/array.js +1 -1
  618. package/dist/util/binary.js +1 -1
  619. package/dist/util/encode.js +1 -1
  620. package/dist/util/error.js +2 -2
  621. package/dist/util/identifier.js +1 -1
  622. package/dist/util/iife.js +2 -2
  623. package/dist/util/lazy.js +2 -2
  624. package/dist/util/path.js +1 -1
  625. package/dist/util/process-lock-ffi.bun.js +1 -1
  626. package/dist/util/process-lock-ffi.node.js +1 -1
  627. package/dist/util/process-lock-ffi.workerd.js +1 -1
  628. package/dist/util/process-lock.js +3 -3
  629. package/dist/util/retry.js +1 -1
  630. package/dist/util/slug.js +2 -2
  631. package/dist/util/token.js +2 -2
  632. package/dist/util/which.js +2 -2
  633. package/dist/util/wildcard.js +2 -2
  634. package/dist/v1/config/agent.js +4 -4
  635. package/dist/v1/config/attachment.js +3 -3
  636. package/dist/v1/config/command.js +2 -2
  637. package/dist/v1/config/config.js +15 -15
  638. package/dist/v1/config/error.js +3 -3
  639. package/dist/v1/config/formatter.js +2 -2
  640. package/dist/v1/config/layout.js +2 -2
  641. package/dist/v1/config/lsp.js +2 -2
  642. package/dist/v1/config/mcp.js +3 -3
  643. package/dist/v1/config/migrate.js +19 -19
  644. package/dist/v1/config/permission.js +2 -2
  645. package/dist/v1/config/plugin.js +2 -2
  646. package/dist/v1/config/provider-options.js +2 -2
  647. package/dist/v1/config/provider.js +3 -3
  648. package/dist/v1/config/server.js +3 -3
  649. package/dist/v1/config/skills.js +2 -2
  650. package/dist/v1/permission.js +5 -5
  651. package/dist/vcs/git.js +3 -3
  652. package/dist/vcs/hg.js +3 -3
  653. package/dist/vcs/patch.js +2 -2
  654. package/dist/vcs.js +84 -84
  655. package/dist/websearch.js +72 -72
  656. package/dist/wellknown/plugin.js +75 -75
  657. package/dist/wellknown.js +74 -74
  658. package/dist/workspace/driver.js +2 -2
  659. package/dist/workspace/sql.js +2 -2
  660. package/dist/workspace.js +71 -71
  661. package/dist/worktree/directory.js +3 -3
  662. package/dist/worktree/git.js +7 -7
  663. package/dist/worktree/sql.js +6 -6
  664. package/dist/worktree.js +84 -84
  665. package/package.json +11 -11
  666. /package/dist/chunks/{worktree-0cgt0xh2.js → file-0cgt0xh2.js} +0 -0
  667. /package/dist/chunks/{worktree-0f48qthw.js → file-0f48qthw.js} +0 -0
  668. /package/dist/chunks/{worktree-0zz82cjq.js → file-0zz82cjq.js} +0 -0
  669. /package/dist/chunks/{worktree-1fb7bmpf.js → file-1fb7bmpf.js} +0 -0
  670. /package/dist/chunks/{worktree-1wcz8fvj.js → file-1wcz8fvj.js} +0 -0
  671. /package/dist/chunks/{worktree-2qdx6zz3.js → file-2qdx6zz3.js} +0 -0
  672. /package/dist/chunks/{worktree-3c4nztf9.js → file-3c4nztf9.js} +0 -0
  673. /package/dist/chunks/{worktree-3g3rpp2x.js → file-3g3rpp2x.js} +0 -0
  674. /package/dist/chunks/{worktree-3q6gbwmd.js → file-3q6gbwmd.js} +0 -0
  675. /package/dist/chunks/{worktree-3w3ybtfd.js → file-3w3ybtfd.js} +0 -0
  676. /package/dist/chunks/{worktree-47ty4mvs.js → file-47ty4mvs.js} +0 -0
  677. /package/dist/chunks/{worktree-4b2tz2m9.js → file-4b2tz2m9.js} +0 -0
  678. /package/dist/chunks/{worktree-4zg0gww9.js → file-4zg0gww9.js} +0 -0
  679. /package/dist/chunks/{worktree-5a5ch9ts.js → file-5a5ch9ts.js} +0 -0
  680. /package/dist/chunks/{worktree-5va1yh78.js → file-5va1yh78.js} +0 -0
  681. /package/dist/chunks/{worktree-69qrqpw0.js → file-69qrqpw0.js} +0 -0
  682. /package/dist/chunks/{worktree-6yt963b8.js → file-6yt963b8.js} +0 -0
  683. /package/dist/chunks/{worktree-7n9qwqk4.js → file-7n9qwqk4.js} +0 -0
  684. /package/dist/chunks/{worktree-8nn8kqcn.js → file-8nn8kqcn.js} +0 -0
  685. /package/dist/chunks/{worktree-8sj3ajy5.js → file-8sj3ajy5.js} +0 -0
  686. /package/dist/chunks/{worktree-8w9tzfz1.js → file-8w9tzfz1.js} +0 -0
  687. /package/dist/chunks/{worktree-906y0b6d.js → file-906y0b6d.js} +0 -0
  688. /package/dist/chunks/{worktree-9dct5xhx.js → file-9dct5xhx.js} +0 -0
  689. /package/dist/chunks/{worktree-9sdtsapf.js → file-9sdtsapf.js} +0 -0
  690. /package/dist/chunks/{worktree-a02svayp.js → file-a02svayp.js} +0 -0
  691. /package/dist/chunks/{worktree-a83yvq99.js → file-a83yvq99.js} +0 -0
  692. /package/dist/chunks/{worktree-ayevdmef.js → file-ayevdmef.js} +0 -0
  693. /package/dist/chunks/{worktree-b02txbh8.js → file-b02txbh8.js} +0 -0
  694. /package/dist/chunks/{worktree-bbqs2y60.js → file-bbqs2y60.js} +0 -0
  695. /package/dist/chunks/{worktree-brsh5f65.js → file-brsh5f65.js} +0 -0
  696. /package/dist/chunks/{worktree-bxdhjb3y.js → file-bxdhjb3y.js} +0 -0
  697. /package/dist/chunks/{worktree-c77ad0vh.js → file-c77ad0vh.js} +0 -0
  698. /package/dist/chunks/{worktree-cm67rqy2.js → file-cm67rqy2.js} +0 -0
  699. /package/dist/chunks/{worktree-d6s8p2vk.js → file-d6s8p2vk.js} +0 -0
  700. /package/dist/chunks/{worktree-dbah77c1.js → file-dbah77c1.js} +0 -0
  701. /package/dist/chunks/{worktree-df3v2q6j.js → file-df3v2q6j.js} +0 -0
  702. /package/dist/chunks/{worktree-dhcq6c44.js → file-dhcq6c44.js} +0 -0
  703. /package/dist/chunks/{worktree-dht5baf0.js → file-dht5baf0.js} +0 -0
  704. /package/dist/chunks/{worktree-dkmkay92.js → file-dkmkay92.js} +0 -0
  705. /package/dist/chunks/{worktree-ecxv0vtt.js → file-ecxv0vtt.js} +0 -0
  706. /package/dist/chunks/{worktree-ehj9csmv.js → file-ehj9csmv.js} +0 -0
  707. /package/dist/chunks/{worktree-em6xpscd.js → file-em6xpscd.js} +0 -0
  708. /package/dist/chunks/{worktree-emmqknsm.js → file-emmqknsm.js} +0 -0
  709. /package/dist/chunks/{worktree-ezs3tagn.js → file-ezs3tagn.js} +0 -0
  710. /package/dist/chunks/{worktree-f4cp4g4a.js → file-f4cp4g4a.js} +0 -0
  711. /package/dist/chunks/{worktree-f84sxdqn.js → file-f84sxdqn.js} +0 -0
  712. /package/dist/chunks/{worktree-faypg4r1.js → file-faypg4r1.js} +0 -0
  713. /package/dist/chunks/{worktree-g7k9te92.js → file-g7k9te92.js} +0 -0
  714. /package/dist/chunks/{worktree-gd5xeqc2.js → file-gd5xeqc2.js} +0 -0
  715. /package/dist/chunks/{worktree-ghm4673n.js → file-ghm4673n.js} +0 -0
  716. /package/dist/chunks/{worktree-ghwjy7my.js → file-ghwjy7my.js} +0 -0
  717. /package/dist/chunks/{worktree-gy500k2r.js → file-gy500k2r.js} +0 -0
  718. /package/dist/chunks/{worktree-hzeg9cfr.js → file-hzeg9cfr.js} +0 -0
  719. /package/dist/chunks/{worktree-j07kk359.js → file-j07kk359.js} +0 -0
  720. /package/dist/chunks/{worktree-jve7t217.js → file-jve7t217.js} +0 -0
  721. /package/dist/chunks/{worktree-kpdbz7gn.js → file-kpdbz7gn.js} +0 -0
  722. /package/dist/chunks/{worktree-kxy11nzk.js → file-kxy11nzk.js} +0 -0
  723. /package/dist/chunks/{worktree-kyyqvx4s.js → file-kyyqvx4s.js} +0 -0
  724. /package/dist/chunks/{worktree-m8cbvarh.js → file-m8cbvarh.js} +0 -0
  725. /package/dist/chunks/{worktree-ma07p6tt.js → file-ma07p6tt.js} +0 -0
  726. /package/dist/chunks/{worktree-ma60vzgv.js → file-ma60vzgv.js} +0 -0
  727. /package/dist/chunks/{worktree-n3m50c2t.js → file-n3m50c2t.js} +0 -0
  728. /package/dist/chunks/{worktree-nkm1m8dz.js → file-nkm1m8dz.js} +0 -0
  729. /package/dist/chunks/{worktree-nsc0c3zb.js → file-nsc0c3zb.js} +0 -0
  730. /package/dist/chunks/{worktree-qaarhjrp.js → file-qaarhjrp.js} +0 -0
  731. /package/dist/chunks/{worktree-qc167nrn.js → file-qc167nrn.js} +0 -0
  732. /package/dist/chunks/{worktree-qp95y4jb.js → file-qp95y4jb.js} +0 -0
  733. /package/dist/chunks/{worktree-r8f4w671.js → file-r8f4w671.js} +0 -0
  734. /package/dist/chunks/{worktree-rdfev9jy.js → file-rdfev9jy.js} +0 -0
  735. /package/dist/chunks/{worktree-rvfvac9x.js → file-rvfvac9x.js} +0 -0
  736. /package/dist/chunks/{worktree-s7whb9gt.js → file-s7whb9gt.js} +0 -0
  737. /package/dist/chunks/{worktree-se76j685.js → file-se76j685.js} +0 -0
  738. /package/dist/chunks/{worktree-sem2g21k.js → file-sem2g21k.js} +0 -0
  739. /package/dist/chunks/{worktree-tmb1f636.js → file-tmb1f636.js} +0 -0
  740. /package/dist/chunks/{worktree-ttxf0gsy.js → file-ttxf0gsy.js} +0 -0
  741. /package/dist/chunks/{worktree-tvmhrvfj.js → file-tvmhrvfj.js} +0 -0
  742. /package/dist/chunks/{worktree-v2adqbbe.js → file-v2adqbbe.js} +0 -0
  743. /package/dist/chunks/{worktree-wj4sxzqa.js → file-wj4sxzqa.js} +0 -0
  744. /package/dist/chunks/{worktree-wwntjmk1.js → file-wwntjmk1.js} +0 -0
  745. /package/dist/chunks/{worktree-wyqjaaa5.js → file-wyqjaaa5.js} +0 -0
  746. /package/dist/chunks/{worktree-x4q807cx.js → file-x4q807cx.js} +0 -0
  747. /package/dist/chunks/{worktree-xhz3jyrc.js → file-xhz3jyrc.js} +0 -0
  748. /package/dist/chunks/{worktree-yrqrg4vp.js → file-yrqrg4vp.js} +0 -0
  749. /package/dist/chunks/{worktree-z47nswr2.js → file-z47nswr2.js} +0 -0
  750. /package/dist/chunks/{worktree-zsf8rs93.js → file-zsf8rs93.js} +0 -0
@@ -0,0 +1,174 @@
1
+ import {
2
+ exports_config
3
+ } from "./file-tgkwq7ey.js";
4
+ import {
5
+ exports_model
6
+ } from "./file-1px4xhxb.js";
7
+ import {
8
+ exports_provider
9
+ } from "./file-8twz6z1z.js";
10
+
11
+ // src/plugin/provider/ollama.ts
12
+ import { define } from "@opencode-ai/plugin/effect/plugin";
13
+ import { Duration, Effect, Schedule, Schema, Semaphore, Stream } from "effect";
14
+ import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
15
+ var providerID = "ollama";
16
+ var Details = Schema.Struct({
17
+ parent_model: Schema.String.pipe(Schema.optional),
18
+ format: Schema.String,
19
+ family: Schema.String,
20
+ families: Schema.Array(Schema.String).pipe(Schema.optional),
21
+ parameter_size: Schema.String,
22
+ quantization_level: Schema.String
23
+ });
24
+ var RemoteModel = Schema.Struct({
25
+ name: Schema.String,
26
+ model: Schema.String,
27
+ remote_model: Schema.String.pipe(Schema.optional),
28
+ remote_host: Schema.String.pipe(Schema.optional),
29
+ modified_at: Schema.String,
30
+ size: Schema.Int,
31
+ digest: Schema.String,
32
+ details: Details
33
+ });
34
+ var TagsResponse = Schema.Struct({ models: Schema.Array(RemoteModel) });
35
+ var ShowRequest = Schema.Struct({ model: Schema.String });
36
+ var ShowResponse = Schema.Struct({
37
+ parameters: Schema.String.pipe(Schema.optional),
38
+ license: Schema.String.pipe(Schema.optional),
39
+ modified_at: Schema.String.pipe(Schema.optional),
40
+ details: Details.pipe(Schema.optional),
41
+ template: Schema.String.pipe(Schema.optional),
42
+ capabilities: Schema.Array(Schema.String).pipe(Schema.optional),
43
+ model_info: Schema.Record(Schema.String, Schema.Unknown).pipe(Schema.optional)
44
+ });
45
+ var discovery = new Map;
46
+ var discoveryLock = Semaphore.makeUnsafe(1);
47
+ function make(origin = "http://127.0.0.1:11434", interval = "30 seconds") {
48
+ return define({
49
+ id: "opencode.provider.ollama",
50
+ effect: Effect.fn(function* (ctx) {
51
+ const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
52
+ const config = yield* exports_config.Service;
53
+ const source = { current: configured(yield* config.entries(), origin) };
54
+ const loaded = { models: [], hash: "[]" };
55
+ yield* ctx.integration.transform((integrations) => {
56
+ if (loaded.models.length === 0)
57
+ return;
58
+ integrations.remove(providerID);
59
+ });
60
+ yield* ctx.catalog.transform((catalog) => {
61
+ if (loaded.models.length === 0)
62
+ return;
63
+ for (const model of catalog.provider.get(providerID)?.models.values() ?? []) {
64
+ catalog.model.remove(providerID, model.id);
65
+ }
66
+ catalog.provider.update(providerID, (provider) => {
67
+ provider.name = "Ollama";
68
+ provider.activation = "enabled";
69
+ provider.package = "@opencode-ai/ai/providers/openai-compatible";
70
+ provider.settings = {
71
+ baseURL: source.current.baseURL,
72
+ provider: providerID,
73
+ apiKey: source.current.apiKey ?? ""
74
+ };
75
+ provider.integrationID = undefined;
76
+ });
77
+ for (const item of loaded.models) {
78
+ catalog.model.update(providerID, item.model, (model) => {
79
+ model.modelID = exports_model.ID.make(item.model);
80
+ model.name = item.name || item.model;
81
+ model.family = item.show.details?.family ? exports_model.Family.make(item.show.details.family) : item.details.family ? exports_model.Family.make(item.details.family) : undefined;
82
+ model.capabilities = {
83
+ tools: item.show.capabilities?.includes("tools") ?? false,
84
+ input: ["text", ...item.show.capabilities?.includes("vision") ? ["image"] : []],
85
+ output: ["text"]
86
+ };
87
+ model.limit = {
88
+ context: Object.entries(item.show.model_info ?? {}).flatMap(([key, value]) => key.endsWith(".context_length") && typeof value === "number" && value > 0 ? [value] : [])[0] ?? 0,
89
+ output: 0
90
+ };
91
+ });
92
+ }
93
+ });
94
+ const discover = Effect.fn("OllamaPlugin.discover")(function* () {
95
+ const current = source.current;
96
+ if (!current.tagsEndpoint || !current.showEndpoint)
97
+ return;
98
+ return yield* discoveryLock.withPermit(Effect.gen(function* () {
99
+ const cached = discovery.get(current.tagsEndpoint);
100
+ if (cached && cached.apiKey === current.apiKey && Date.now() - cached.checked < Duration.toMillis(interval))
101
+ return { source: current, models: cached.models };
102
+ const previous = cached && cached.apiKey === current.apiKey ? cached : { checked: 0, apiKey: current.apiKey, shows: new Map };
103
+ discovery.set(current.tagsEndpoint, { ...previous, checked: Date.now(), apiKey: current.apiKey });
104
+ const tagsRequest = current.apiKey ? HttpClientRequest.get(current.tagsEndpoint).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(current.apiKey)) : HttpClientRequest.get(current.tagsEndpoint).pipe(HttpClientRequest.acceptJson);
105
+ const response = yield* http.execute(tagsRequest).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(TagsResponse)), Effect.timeout("1 second"));
106
+ const summaries = response.models.filter((model) => model.model.length > 0).toSorted((a, b) => a.model.localeCompare(b.model));
107
+ const shows = new Map;
108
+ const models = yield* Effect.forEach(summaries, (model) => Effect.gen(function* () {
109
+ const saved = previous.shows.get(model.model);
110
+ const info = saved?.digest === model.digest ? saved.info : yield* HttpClientRequest.post(current.showEndpoint).pipe(HttpClientRequest.acceptJson, current.apiKey ? HttpClientRequest.bearerToken(current.apiKey) : (request) => request, HttpClientRequest.schemaBodyJson(ShowRequest)({ model: model.model }), Effect.flatMap(http.execute), Effect.flatMap(HttpClientResponse.schemaBodyJson(ShowResponse)), Effect.timeout("1 second"));
111
+ shows.set(model.model, { digest: model.digest, info });
112
+ return { ...model, show: info };
113
+ }).pipe(Effect.catch(() => Effect.succeed(undefined))), { concurrency: 4 });
114
+ const filtered = models.filter((model) => model !== undefined && (model.show.capabilities?.includes("completion") ?? false));
115
+ discovery.set(current.tagsEndpoint, {
116
+ checked: Date.now(),
117
+ apiKey: current.apiKey,
118
+ models: filtered,
119
+ shows
120
+ });
121
+ return { source: current, models: filtered };
122
+ }));
123
+ });
124
+ const refresh = Effect.fn("OllamaPlugin.refresh")(function* () {
125
+ const result = yield* discover();
126
+ if (!result?.models || result.source !== source.current)
127
+ return;
128
+ const hash = JSON.stringify(result.models);
129
+ if (hash === loaded.hash)
130
+ return;
131
+ loaded.models = result.models;
132
+ loaded.hash = hash;
133
+ yield* ctx.integration.reload();
134
+ yield* ctx.catalog.reload();
135
+ });
136
+ yield* refresh().pipe(Effect.ignore, Effect.repeat(Schedule.spaced(interval)), Effect.forkScoped);
137
+ const reload = Effect.fn("OllamaPlugin.reload")(function* () {
138
+ const next = configured(yield* config.entries(), origin);
139
+ if (next.baseURL === source.current.baseURL && next.apiKey === source.current.apiKey && next.tagsEndpoint === source.current.tagsEndpoint)
140
+ return;
141
+ source.current = next;
142
+ loaded.models = [];
143
+ loaded.hash = "[]";
144
+ yield* ctx.integration.reload();
145
+ yield* ctx.catalog.reload();
146
+ yield* refresh().pipe(Effect.ignore);
147
+ });
148
+ yield* ctx.event.subscribe().pipe(Stream.filter((event) => event.type === "config.updated"), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
149
+ })
150
+ });
151
+ }
152
+ var OllamaPlugin = make();
153
+ function configured(entries, origin) {
154
+ const settings = entries.filter((entry) => entry.type === "document").flatMap((entry) => {
155
+ const settings2 = entry.info.providers?.[providerID]?.settings;
156
+ return settings2 ? [settings2] : [];
157
+ }).reduce((result, item) => exports_provider.mergeOverlay(result, item), undefined);
158
+ const baseURL = (typeof settings?.baseURL === "string" ? settings.baseURL : `${origin.replace(/\/+$/, "")}/v1`).replace(/\/+$/, "");
159
+ const apiKey = typeof settings?.apiKey === "string" ? settings.apiKey : undefined;
160
+ if (!URL.canParse(baseURL))
161
+ return { baseURL, apiKey };
162
+ const url = new URL(baseURL);
163
+ if (url.protocol !== "http:" && url.protocol !== "https:")
164
+ return { baseURL, apiKey };
165
+ const prefix = url.pathname.endsWith("/v1") ? url.pathname.slice(0, -3) : url.pathname.replace(/\/+$/, "");
166
+ url.pathname = `${prefix}/api/tags`;
167
+ url.search = "";
168
+ url.hash = "";
169
+ const tagsEndpoint = url.toString();
170
+ url.pathname = `${prefix}/api/show`;
171
+ return { baseURL, apiKey, tagsEndpoint, showEndpoint: url.toString() };
172
+ }
173
+
174
+ export { make, OllamaPlugin };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./worktree-rvfvac9x.js";
3
+ } from "./file-rvfvac9x.js";
4
4
 
5
5
  // src/config/markdown.ts
6
6
  var exports_markdown = {};
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  absoluteArrayColumn,
3
3
  absoluteColumn
4
- } from "./worktree-zbqqnp0n.js";
4
+ } from "./file-zbqqnp0n.js";
5
5
  import {
6
6
  Timestamps
7
- } from "./worktree-sem2g21k.js";
7
+ } from "./file-sem2g21k.js";
8
8
 
9
9
  // src/project/sql.ts
10
10
  import { isNotNull, isNull, ne, or } from "drizzle-orm";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  exports_markdown
3
- } from "./worktree-7wcmqxrc.js";
3
+ } from "./file-7wcmqxrc.js";
4
4
  import {
5
5
  exports_config
6
- } from "./worktree-6ehwq28g.js";
6
+ } from "./file-tgkwq7ey.js";
7
7
  import {
8
8
  __export
9
- } from "./worktree-rvfvac9x.js";
9
+ } from "./file-rvfvac9x.js";
10
10
 
11
11
  // src/config/plugin/command.ts
12
12
  var exports_command = {};
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  exports_source
3
- } from "./worktree-n701djg3.js";
3
+ } from "./file-6tvgjq6v.js";
4
4
  import {
5
5
  exports_skill
6
- } from "./worktree-xdgv2fac.js";
6
+ } from "./file-h7hxhz5s.js";
7
7
  import {
8
8
  AbsolutePath
9
- } from "./worktree-j07kk359.js";
9
+ } from "./file-j07kk359.js";
10
10
  import {
11
11
  __export
12
- } from "./worktree-rvfvac9x.js";
12
+ } from "./file-rvfvac9x.js";
13
13
 
14
14
  // src/plugin/skill.ts
15
15
  var exports_skill2 = {};
@@ -56,10 +56,41 @@ V1 documentation and syntax may be consulted only when the user explicitly
56
56
  asks about V1 or when needed as migration input. Outputs and recommendations
57
57
  must still use V2 unless the user specifically requests a V1 result.
58
58
 
59
- ## [Configuration](https://opencode.ai/v2/docs/config)
59
+ ## [CLI](https://opencode.ai/v2/docs/cli)
60
60
 
61
- OpenCode configuration uses JSON or JSONC. Include the published schema so the
62
- user's editor can validate fields and provide autocomplete:
61
+ For questions about the terminal interface, command-line invocation, \`run\`,
62
+ \`mini\`, terminal providers, or other CLI behavior, fetch the
63
+ [CLI guide](https://opencode.ai/v2/docs/cli) and the relevant page linked from
64
+ that section.
65
+
66
+ CLI and TUI preferences are separate from OpenCode's server and project
67
+ configuration. They live in the global \`~/.config/opencode/cli.json\`, or
68
+ \`$XDG_CONFIG_HOME/opencode/cli.json\` when \`XDG_CONFIG_HOME\` is set. There is no
69
+ project-local CLI configuration. Most preferences can also be changed from the
70
+ TUI by pressing \`Ctrl+P\` and selecting **Open settings**.
71
+
72
+ Fetch the full [CLI configuration guide](https://opencode.ai/v2/docs/cli/config)
73
+ before editing \`cli.json\`. It covers terminal-only settings such as themes,
74
+ keybindings, terminal plugins, scrolling, attention alerts, diff presentation,
75
+ and terminal integration. Do not put these settings in \`opencode.json(c)\`.
76
+
77
+ ### [Keybinds](https://opencode.ai/v2/docs/cli/keybinds)
78
+
79
+ Configure keybindings under \`keybinds\` in \`cli.json\`. The leader key is the
80
+ \`keybinds.leader\` entry; leader timing is configured separately under
81
+ \`leader.timeout\`. Bindings can use a string, an array of strings, or an object
82
+ when event behavior such as \`preventDefault\` is required. Disable a binding
83
+ with \`"none"\` or \`false\`.
84
+
85
+ Never guess a command ID, default binding, or accepted key syntax. Fetch the
86
+ full [keybind reference](https://opencode.ai/v2/docs/cli/keybinds), which lists
87
+ the current IDs and defaults, before answering or editing a binding.
88
+
89
+ ## [OpenCode configuration](https://opencode.ai/v2/docs/config)
90
+
91
+ OpenCode's server and project configuration uses JSON or JSONC. Include the
92
+ published schema so the user's editor can validate fields and provide
93
+ autocomplete:
63
94
 
64
95
  \`\`\`jsonc
65
96
  {
@@ -82,6 +113,10 @@ Common configuration fields include \`model\`, \`default_agent\`, \`permissions\
82
113
  \`agents\`, \`commands\`, \`plugins\`, \`providers\`, \`mcp\`, \`skills\`, \`instructions\`,
83
114
  \`references\`, \`formatter\`, and \`lsp\`.
84
115
 
116
+ This configuration is distinct from \`cli.json\`. Use the
117
+ [CLI configuration guide](https://opencode.ai/v2/docs/cli/config) for terminal
118
+ preferences, especially themes and keybindings.
119
+
85
120
  Do not guess field names or shapes. Fetch the V2 configuration guide and its
86
121
  linked topic guide as the source of truth, and preserve unrelated settings when
87
122
  editing an existing file. Keep the published \`$schema\` URL in configuration
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  exports_provider
3
- } from "./worktree-d6vvk673.js";
3
+ } from "./file-8twz6z1z.js";
4
4
 
5
5
  // src/plugin/provider/kilo.ts
6
6
  import { Effect } from "effect";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  CredentialTable
3
- } from "./worktree-mf0hyk7z.js";
3
+ } from "./file-mf0hyk7z.js";
4
4
  import {
5
5
  exports_database
6
- } from "./worktree-t1wskd5z.js";
6
+ } from "./file-4223r8y8.js";
7
7
  import {
8
8
  __export
9
- } from "./worktree-rvfvac9x.js";
9
+ } from "./file-rvfvac9x.js";
10
10
 
11
11
  // src/credential.ts
12
12
  var exports_credential = {};
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __export,
3
3
  __require
4
- } from "./worktree-rvfvac9x.js";
4
+ } from "./file-rvfvac9x.js";
5
5
 
6
6
  // src/provider.ts
7
7
  var exports_provider = {};
@@ -35,7 +35,7 @@ function packageName(value) {
35
35
  var JsonRecord = Schema.Record(Schema.String, Schema.Json);
36
36
  var decodeJsonRecord = Schema.decodeUnknownSync(JsonRecord);
37
37
 
38
- class LoadError extends Schema.TaggedErrorClass()("Provider.LoadError", {
38
+ class LoadError extends Schema.TaggedError()("Provider.LoadError", {
39
39
  package: Schema.String,
40
40
  cause: Schema.Defect()
41
41
  }) {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AbsolutePath
3
- } from "./worktree-j07kk359.js";
3
+ } from "./file-j07kk359.js";
4
4
  import {
5
5
  __export
6
- } from "./worktree-rvfvac9x.js";
6
+ } from "./file-rvfvac9x.js";
7
7
 
8
8
  // src/project/schema.ts
9
9
  var exports_schema = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./worktree-rvfvac9x.js";
3
+ } from "./file-rvfvac9x.js";
4
4
 
5
5
  // src/session/usage.ts
6
6
  var exports_usage = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./worktree-rvfvac9x.js";
3
+ } from "./file-rvfvac9x.js";
4
4
 
5
5
  // src/session/model-http.ts
6
6
  var exports_model_http = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./worktree-rvfvac9x.js";
3
+ } from "./file-rvfvac9x.js";
4
4
 
5
5
  // src/v1/config/lsp.ts
6
6
  var exports_lsp = {};
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  ProjectTable
3
- } from "./worktree-88jbfw8z.js";
3
+ } from "./file-88jbfw8z.js";
4
4
  import {
5
5
  directoryColumn,
6
6
  pathColumn
7
- } from "./worktree-zbqqnp0n.js";
7
+ } from "./file-zbqqnp0n.js";
8
8
  import {
9
9
  Timestamps
10
- } from "./worktree-sem2g21k.js";
10
+ } from "./file-sem2g21k.js";
11
11
 
12
12
  // src/session/sql.ts
13
13
  import { sqliteTable, text, integer, index, primaryKey, real, uniqueIndex } from "drizzle-orm/sqlite-core";
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  fileDiff
3
- } from "./worktree-c77ad0vh.js";
4
- import {
5
- exports_formatter
6
- } from "./worktree-wxkmmjny.js";
3
+ } from "./file-c77ad0vh.js";
7
4
  import {
8
5
  exports_file_mutation
9
- } from "./worktree-5xzparyv.js";
6
+ } from "./file-3s7e2f99.js";
10
7
  import {
11
- exports_location_mutation
12
- } from "./worktree-jqh1fr37.js";
8
+ exports_formatter
9
+ } from "./file-qbvbyx91.js";
13
10
  import {
14
- exports_environment1 as exports_environment
15
- } from "./worktree-sd966s7w.js";
11
+ exports_location_mutation
12
+ } from "./file-6nfxvtta.js";
16
13
  import {
17
14
  exports_permission
18
- } from "./worktree-1waapm91.js";
15
+ } from "./file-027bgpms.js";
16
+ import {
17
+ exports_environment1 as exports_environment
18
+ } from "./file-27xnc6tv.js";
19
19
  import {
20
20
  exports_location
21
- } from "./worktree-6p661xfs.js";
21
+ } from "./file-v0ktexvy.js";
22
22
  import {
23
23
  __export
24
- } from "./worktree-rvfvac9x.js";
24
+ } from "./file-rvfvac9x.js";
25
25
 
26
26
  // src/tool/plugin/patch.ts
27
27
  var exports_patch = {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./worktree-rvfvac9x.js";
3
+ } from "./file-rvfvac9x.js";
4
4
 
5
5
  // src/v1/config/plugin.ts
6
6
  var exports_plugin = {};
@@ -0,0 +1,49 @@
1
+ import {
2
+ exports_mcp
3
+ } from "./file-edvtf4tx.js";
4
+ import {
5
+ exports_config
6
+ } from "./file-tgkwq7ey.js";
7
+ import {
8
+ __export
9
+ } from "./file-rvfvac9x.js";
10
+
11
+ // src/config/plugin/mcp.ts
12
+ var exports_mcp2 = {};
13
+ __export(exports_mcp2, {
14
+ register: () => register,
15
+ Plugin: () => Plugin,
16
+ ConfigMCPPlugin: () => exports_mcp2
17
+ });
18
+ import { define } from "@opencode-ai/plugin/effect/plugin";
19
+ import { Effect, Stream } from "effect";
20
+ var Plugin = define({
21
+ id: "opencode.config.mcp",
22
+ effect: Effect.fn(function* (ctx) {
23
+ yield* register(ctx.event.subscribe());
24
+ })
25
+ });
26
+ var register = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
27
+ const config = yield* exports_config.Service;
28
+ const mcp = yield* exports_mcp.Service;
29
+ const loaded = { entries: [] };
30
+ yield* events.pipe(Stream.filter((event) => event.type === "config.updated"), Stream.runForEach(() => config.entries().pipe(Effect.tap((entries) => Effect.sync(() => loaded.entries = entries)), Effect.andThen(mcp.reload()), Effect.catchCause((cause) => Effect.logError("failed to reload MCP config", { cause })))), Effect.ignore, Effect.forkScoped({ startImmediately: true }));
31
+ loaded.entries = yield* config.entries();
32
+ yield* mcp.transform((draft) => {
33
+ const documents = loaded.entries.filter((entry) => entry.type === "document");
34
+ const timeout = Object.assign({}, ...documents.flatMap((entry) => entry.info.mcp?.timeout ? [entry.info.mcp.timeout] : []));
35
+ const servers = new Map;
36
+ for (const document of documents) {
37
+ for (const [name, server] of Object.entries(document.info.mcp?.servers ?? {})) {
38
+ servers.set(name, { ...server, timeout: { ...timeout, ...server.timeout } });
39
+ }
40
+ }
41
+ for (const [name, server] of servers) {
42
+ if (draft.get(name))
43
+ continue;
44
+ draft.set(name, server);
45
+ }
46
+ });
47
+ });
48
+
49
+ export { Plugin, register, exports_mcp2 as exports_mcp };
@@ -1,33 +1,33 @@
1
1
  import {
2
2
  exports_migrate
3
- } from "./worktree-3mfgaav1.js";
4
- import {
5
- exports_agent
6
- } from "./worktree-4s2xwh5d.js";
3
+ } from "./file-hgn8axp1.js";
7
4
  import {
8
5
  exports_plugin
9
- } from "./worktree-9f0rnpkn.js";
6
+ } from "./file-9f0rnpkn.js";
10
7
  import {
11
- exports_permission
12
- } from "./worktree-v9bfv94f.js";
8
+ exports_attachment
9
+ } from "./file-r3k9abhd.js";
13
10
  import {
14
- exports_provider
15
- } from "./worktree-18pv8fg3.js";
11
+ exports_mcp
12
+ } from "./file-e1z9a0ts.js";
16
13
  import {
17
- exports_command
18
- } from "./worktree-thstd87d.js";
14
+ exports_agent
15
+ } from "./file-4s2xwh5d.js";
19
16
  import {
20
- exports_mcp
21
- } from "./worktree-e1z9a0ts.js";
17
+ exports_permission
18
+ } from "./file-v9bfv94f.js";
22
19
  import {
23
- exports_attachment
24
- } from "./worktree-r3k9abhd.js";
20
+ exports_command
21
+ } from "./file-thstd87d.js";
22
+ import {
23
+ exports_provider
24
+ } from "./file-18pv8fg3.js";
25
25
  import {
26
26
  PositiveInt
27
- } from "./worktree-j07kk359.js";
27
+ } from "./file-j07kk359.js";
28
28
  import {
29
29
  __export
30
- } from "./worktree-rvfvac9x.js";
30
+ } from "./file-rvfvac9x.js";
31
31
 
32
32
  // src/config/normalize.ts
33
33
  var exports_normalize = {};
@@ -1,21 +1,21 @@
1
1
  import {
2
- mapOpenAICompatibleFinishReason
3
- } from "./worktree-0cgt0xh2.js";
2
+ getResponseMetadata
3
+ } from "./file-bbqs2y60.js";
4
4
  import {
5
5
  prepareTools
6
- } from "./worktree-ezs3tagn.js";
7
- import {
8
- getResponseMetadata
9
- } from "./worktree-bbqs2y60.js";
6
+ } from "./file-ezs3tagn.js";
10
7
  import {
11
- openaiCompatibleProviderOptions
12
- } from "./worktree-a02svayp.js";
8
+ mapOpenAICompatibleFinishReason
9
+ } from "./file-0cgt0xh2.js";
13
10
  import {
14
11
  convertToOpenAICompatibleChatMessages
15
- } from "./worktree-brsh5f65.js";
12
+ } from "./file-brsh5f65.js";
13
+ import {
14
+ openaiCompatibleProviderOptions
15
+ } from "./file-a02svayp.js";
16
16
  import {
17
17
  defaultOpenAICompatibleErrorStructure
18
- } from "./worktree-1wcz8fvj.js";
18
+ } from "./file-1wcz8fvj.js";
19
19
 
20
20
  // src/github-copilot/chat/openai-compatible-chat-language-model.ts
21
21
  import {