@opencode/core 2.0.15 → 2.0.17

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 (816) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +81 -81
  3. package/dist/aisdk-native.js +89 -89
  4. package/dist/aisdk.js +94 -94
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +73 -73
  7. package/dist/chunks/{location-2n8vgttj.js → schema-0145jres.js} +24 -24
  8. package/dist/chunks/schema-03mttfrd.js +26 -0
  9. package/dist/chunks/{location-2vvgwsdm.js → schema-055gg8d0.js} +17 -17
  10. package/dist/chunks/{location-r1kjg1tc.js → schema-0bhmdfn5.js} +5 -5
  11. package/dist/chunks/{location-aa2h7fmm.js → schema-0brwk0k2.js} +36 -36
  12. package/dist/chunks/{location-ygg1f209.js → schema-0e81x99y.js} +7 -7
  13. package/dist/chunks/{location-d2kfejna.js → schema-0kety719.js} +13 -13
  14. package/dist/chunks/{location-6z9mwsmt.js → schema-0mc57tk4.js} +24 -24
  15. package/dist/chunks/{location-0paq2nw3.js → schema-0paq2nw3.js} +1 -1
  16. package/dist/chunks/{location-0810149y.js → schema-0sfeenar.js} +23 -23
  17. package/dist/chunks/{location-fwz8j036.js → schema-0ymghm5h.js} +11 -11
  18. package/dist/chunks/{location-c5nmmnam.js → schema-11etax81.js} +16 -16
  19. package/dist/chunks/{location-y7as1a2d.js → schema-12z81zg4.js} +43 -43
  20. package/dist/chunks/{location-5em5jamf.js → schema-197cy8dq.js} +9 -9
  21. package/dist/chunks/{location-1dazxqgg.js → schema-1dazxqgg.js} +2 -2
  22. package/dist/chunks/{location-hd8qv2ty.js → schema-1y2s2f0j.js} +9 -9
  23. package/dist/chunks/{location-78jgv2cz.js → schema-1yb3x3z9.js} +1 -1
  24. package/dist/chunks/{location-apd0xxcy.js → schema-21fjxxq6.js} +11 -11
  25. package/dist/chunks/{location-21r38tys.js → schema-21r38tys.js} +1 -1
  26. package/dist/chunks/{location-2402vzrj.js → schema-2402vzrj.js} +1 -1
  27. package/dist/chunks/{location-rk8yrdje.js → schema-24mn6ts6.js} +21 -21
  28. package/dist/chunks/{location-cte9ap30.js → schema-258tza17.js} +8 -8
  29. package/dist/chunks/{location-p9n0sz6q.js → schema-2627m7vs.js} +17 -17
  30. package/dist/chunks/{location-2a5m3afh.js → schema-2a5m3afh.js} +1 -1
  31. package/dist/chunks/{location-x2z8ar3h.js → schema-2azgrrcp.js} +60 -33
  32. package/dist/chunks/{location-db8cpbv4.js → schema-2e3sc6z5.js} +11 -11
  33. package/dist/chunks/{location-rgtjpwpw.js → schema-2fb3f4s4.js} +12 -15
  34. package/dist/chunks/{location-2qp6y8xf.js → schema-3cfzdc8e.js} +5 -5
  35. package/dist/chunks/{location-3fc6dm20.js → schema-3fc6dm20.js} +1 -1
  36. package/dist/chunks/{location-3hepkmqq.js → schema-3hepkmqq.js} +1 -1
  37. package/dist/chunks/{location-cxrw2h6h.js → schema-3m9rvccw.js} +42 -42
  38. package/dist/chunks/{location-qg0jgkcp.js → schema-3pe7sts8.js} +9 -9
  39. package/dist/chunks/{location-3smtnn6g.js → schema-3smtnn6g.js} +1 -1
  40. package/dist/chunks/{location-3tvqynh2.js → schema-3tvqynh2.js} +1 -1
  41. package/dist/chunks/{location-d6ex932k.js → schema-3ybey094.js} +11 -11
  42. package/dist/chunks/{location-3zsf4n22.js → schema-3zsf4n22.js} +1 -1
  43. package/dist/chunks/{location-t0b0bsey.js → schema-41prm328.js} +11 -11
  44. package/dist/chunks/{location-ae4pezjx.js → schema-428cwm86.js} +56 -56
  45. package/dist/chunks/{location-agc1sn7c.js → schema-42qrv8nh.js} +24 -24
  46. package/dist/chunks/{location-pghvqat4.js → schema-45cphc5h.js} +12 -12
  47. package/dist/chunks/{location-g1sxm558.js → schema-4a0nv7mx.js} +7 -7
  48. package/dist/chunks/{location-s2y6cwc9.js → schema-4hq88yhx.js} +32 -32
  49. package/dist/chunks/{location-j8tshh3j.js → schema-4twmxjga.js} +53 -41
  50. package/dist/chunks/{location-a64frenn.js → schema-507gpz5w.js} +3 -3
  51. package/dist/chunks/{location-kk00bynn.js → schema-50mzsvk4.js} +21 -21
  52. package/dist/chunks/{location-bh4p5r3h.js → schema-511kpayd.js} +18 -18
  53. package/dist/chunks/{location-31723wk9.js → schema-52vmy6ww.js} +17 -17
  54. package/dist/chunks/{location-4sn99hha.js → schema-57ez7d0k.js} +7 -7
  55. package/dist/chunks/{location-3124xjv5.js → schema-5825hswr.js} +8 -8
  56. package/dist/chunks/{location-vxyzwx8s.js → schema-587y186t.js} +8 -8
  57. package/dist/chunks/{location-np8489tv.js → schema-5atn9wfq.js} +19 -19
  58. package/dist/chunks/{location-5daktx2q.js → schema-5daktx2q.js} +1 -1
  59. package/dist/chunks/schema-5dggn2va.js +252 -0
  60. package/dist/chunks/{location-2f7sk49n.js → schema-5m1y3qk6.js} +16 -16
  61. package/dist/chunks/{location-0k6bkn72.js → schema-5q4kjq47.js} +3 -3
  62. package/dist/chunks/{location-e3qxr5gk.js → schema-5qd3pb7m.js} +2 -2
  63. package/dist/chunks/{location-5t3nmthw.js → schema-5t3nmthw.js} +2 -2
  64. package/dist/chunks/{location-7yca83g1.js → schema-5yfpp9tw.js} +14 -14
  65. package/dist/chunks/{location-669tq793.js → schema-669tq793.js} +1 -1
  66. package/dist/chunks/{location-sj7g5k2t.js → schema-6bgjwwbw.js} +5 -5
  67. package/dist/chunks/{location-ge3bpktt.js → schema-6cbh3zce.js} +15 -15
  68. package/dist/chunks/{location-96dp4j9b.js → schema-6gjjawqn.js} +91 -91
  69. package/dist/chunks/schema-6kdq0pjd.js +4 -0
  70. package/dist/chunks/{location-6msgmcgs.js → schema-6msgmcgs.js} +1 -1
  71. package/dist/chunks/{location-mmr7bq34.js → schema-6pc27hjz.js} +5 -5
  72. package/dist/chunks/{location-2p24pe68.js → schema-6whbnvw3.js} +47 -46
  73. package/dist/chunks/{location-gbece2fh.js → schema-6xg4rx5y.js} +26 -26
  74. package/dist/chunks/{location-vdwcy635.js → schema-6yy39kvx.js} +18 -18
  75. package/dist/chunks/{location-jzje5vrp.js → schema-6z8ht897.js} +16 -16
  76. package/dist/chunks/{location-fb3n4k1c.js → schema-722kb1xk.js} +5 -5
  77. package/dist/chunks/{location-5dyz4swx.js → schema-75qjrmc8.js} +20 -20
  78. package/dist/chunks/{location-7bmhse3q.js → schema-7bmhse3q.js} +1 -1
  79. package/dist/chunks/{location-7dqw4kz8.js → schema-7dqw4kz8.js} +1 -1
  80. package/dist/chunks/{location-nmc8s8ga.js → schema-7khjtj5g.js} +18 -18
  81. package/dist/chunks/{location-a6zkqr4m.js → schema-7khr9c91.js} +15 -15
  82. package/dist/chunks/{location-npk9ncrr.js → schema-7mm032py.js} +8 -8
  83. package/dist/chunks/{location-t5ewrtsm.js → schema-7smws4ww.js} +9 -9
  84. package/dist/chunks/{location-etzz3kcr.js → schema-7tpxex51.js} +8 -8
  85. package/dist/chunks/{location-8d7r5vzw.js → schema-8d7r5vzw.js} +1 -1
  86. package/dist/chunks/{location-xfjpae9m.js → schema-8fsqd879.js} +28 -28
  87. package/dist/chunks/{location-6jbefxhr.js → schema-8j2x59yf.js} +30 -30
  88. package/dist/chunks/{location-dkgr3p4r.js → schema-8k150j0z.js} +8 -8
  89. package/dist/chunks/{location-ny0mz096.js → schema-8kn7kdrq.js} +21 -21
  90. package/dist/chunks/{location-94ek1h2f.js → schema-94ek1h2f.js} +2 -2
  91. package/dist/chunks/{location-zgw6fgh0.js → schema-94ve3ep0.js} +5 -5
  92. package/dist/chunks/{location-eq2jtcfw.js → schema-95e3es41.js} +7 -7
  93. package/dist/chunks/{location-hvtd657f.js → schema-9a5xxas0.js} +29 -29
  94. package/dist/chunks/{location-r99pq75w.js → schema-9cjj4wa1.js} +24 -24
  95. package/dist/chunks/{location-e6asg1wm.js → schema-9f1sykhs.js} +63 -54
  96. package/dist/chunks/{location-512dnrra.js → schema-9m6r901m.js} +6 -6
  97. package/dist/chunks/{location-saawvakp.js → schema-9ncpcp0p.js} +13 -13
  98. package/dist/chunks/{location-qnqm58w1.js → schema-9tkzcje5.js} +12 -12
  99. package/dist/chunks/{location-h6awxmcx.js → schema-9vhpts05.js} +15 -21
  100. package/dist/chunks/{location-y6zcy5jv.js → schema-9wy6gd4a.js} +24 -24
  101. package/dist/chunks/{location-c6mn7xyg.js → schema-a5mtmafw.js} +27 -27
  102. package/dist/chunks/{location-xhyq1prs.js → schema-a79446ya.js} +4 -4
  103. package/dist/chunks/{location-a881zpfh.js → schema-a7bcxdzj.js} +9 -9
  104. package/dist/chunks/{location-aaet6srn.js → schema-aaet6srn.js} +2 -2
  105. package/dist/chunks/{location-zm32ajz2.js → schema-ack3exs3.js} +10 -10
  106. package/dist/chunks/{location-7pqgzsme.js → schema-aewz2adp.js} +16 -16
  107. package/dist/chunks/{location-15ywfmbg.js → schema-av5dvdst.js} +21 -21
  108. package/dist/chunks/{location-w3z8akkh.js → schema-ayqbdn8x.js} +46 -45
  109. package/dist/chunks/{location-b6gygkdw.js → schema-b6gygkdw.js} +2 -2
  110. package/dist/chunks/{location-35r86gx7.js → schema-b6q25pdb.js} +2 -2
  111. package/dist/chunks/{location-cdc8dbba.js → schema-b6ysx4kv.js} +12 -12
  112. package/dist/chunks/{location-fpvyk3ge.js → schema-bk55e78n.js} +21 -21
  113. package/dist/chunks/{location-qyagpvrp.js → schema-bw1k523x.js} +31 -31
  114. package/dist/chunks/{location-0jgcnqr4.js → schema-by3r5qkm.js} +35 -35
  115. package/dist/chunks/{location-e23w9d35.js → schema-c488s98d.js} +12 -12
  116. package/dist/chunks/{location-r2cbgwrp.js → schema-c5pegrb7.js} +16 -16
  117. package/dist/chunks/{location-4ywqwb3e.js → schema-cfefqghv.js} +7 -7
  118. package/dist/chunks/{location-vjn4w5j0.js → schema-cggb2dpx.js} +18 -18
  119. package/dist/chunks/{location-ckecvw8r.js → schema-ckecvw8r.js} +2 -2
  120. package/dist/chunks/{location-2ys44scz.js → schema-cmsm0fmq.js} +16 -16
  121. package/dist/chunks/{location-92pk5wqe.js → schema-csnqga4f.js} +25 -25
  122. package/dist/chunks/{location-g0445xdp.js → schema-czfptnv9.js} +8 -8
  123. package/dist/chunks/{location-gr2tmdz7.js → schema-d0e063zs.js} +17 -17
  124. package/dist/chunks/{location-kpf5aqxw.js → schema-d2w12qf2.js} +10 -10
  125. package/dist/chunks/{location-8v97fgxy.js → schema-d4nbhrvv.js} +21 -21
  126. package/dist/chunks/{location-c6rpq5f1.js → schema-d8hz1vnp.js} +44 -44
  127. package/dist/chunks/{location-s9r6cqpa.js → schema-db7z9sqm.js} +3 -3
  128. package/dist/chunks/{location-m9g140gf.js → schema-de52ckkz.js} +5 -5
  129. package/dist/chunks/schema-djehs4n2.js +69 -0
  130. package/dist/chunks/{location-vtxr0yy2.js → schema-dmqcgk4z.js} +6 -6
  131. package/dist/chunks/{location-cje11ec7.js → schema-drgwwxwg.js} +46 -46
  132. package/dist/chunks/{location-qqeeq2t9.js → schema-drwq78ky.js} +7 -7
  133. package/dist/chunks/{location-826nay5f.js → schema-e32rp4rx.js} +43 -43
  134. package/dist/chunks/{location-pxs69nmc.js → schema-e69wdmhy.js} +6 -6
  135. package/dist/chunks/{location-kx0rdwde.js → schema-eajmhh73.js} +11 -11
  136. package/dist/chunks/{location-erw5rpbs.js → schema-ecfe7b91.js} +17 -3
  137. package/dist/chunks/{location-ef5x83kb.js → schema-ef5x83kb.js} +1 -1
  138. package/dist/chunks/{location-rhjkpe6e.js → schema-eh37g602.js} +8 -8
  139. package/dist/chunks/{location-3yfr3ttv.js → schema-eh37vhb5.js} +7 -7
  140. package/dist/chunks/{location-g98nad6a.js → schema-emsmtts8.js} +20 -20
  141. package/dist/chunks/{location-7tpcrxhs.js → schema-ena0zzcy.js} +17 -17
  142. package/dist/chunks/{location-b3bw2nfz.js → schema-es33zt1k.js} +5 -5
  143. package/dist/chunks/{location-etq0c3wd.js → schema-etq0c3wd.js} +1 -1
  144. package/dist/chunks/{location-yz4rntjy.js → schema-evs9c0ef.js} +29 -29
  145. package/dist/chunks/{location-vp932wpr.js → schema-eymenvc3.js} +30 -30
  146. package/dist/chunks/{location-yp2x3t23.js → schema-f2n192rq.js} +4 -4
  147. package/dist/chunks/{location-geebtqnp.js → schema-f59qmhat.js} +7 -7
  148. package/dist/chunks/{location-1dangqhw.js → schema-f5gy8qwh.js} +8 -8
  149. package/dist/chunks/{location-9qc6n929.js → schema-f658k6de.js} +27 -27
  150. package/dist/chunks/{location-jv4eadh7.js → schema-fbawcmnd.js} +8 -8
  151. package/dist/chunks/{location-e5sbd26s.js → schema-fkfyjdkw.js} +4 -4
  152. package/dist/chunks/{location-vssdr3c7.js → schema-fnbz4a44.js} +14 -14
  153. package/dist/chunks/{location-6anwy9fs.js → schema-fng9e0je.js} +4 -4
  154. package/dist/chunks/{location-358yawqv.js → schema-fr2n07jg.js} +26 -26
  155. package/dist/chunks/{location-t5z4ehj3.js → schema-fze10tzj.js} +22 -22
  156. package/dist/chunks/{location-s92vr3t8.js → schema-g5j6fn2h.js} +35 -35
  157. package/dist/chunks/{location-gd4qta3r.js → schema-gd4qta3r.js} +1 -1
  158. package/dist/chunks/{location-gy60rj0z.js → schema-gq46gf1f.js} +17 -17
  159. package/dist/chunks/{location-gv6a8nnw.js → schema-gv6a8nnw.js} +2 -2
  160. package/dist/chunks/{location-2prhyday.js → schema-gwmzskkb.js} +20 -20
  161. package/dist/chunks/{location-t880hhr6.js → schema-h3v3gq1k.js} +26 -26
  162. package/dist/chunks/{location-4dgbcxzg.js → schema-h6r3nrb9.js} +4 -4
  163. package/dist/chunks/{location-h6vf3j39.js → schema-h6vf3j39.js} +1 -1
  164. package/dist/chunks/{location-8ffpk8ek.js → schema-habj5avf.js} +29 -29
  165. package/dist/chunks/{location-yt0fqk68.js → schema-hkfg6fzm.js} +5 -5
  166. package/dist/chunks/{location-dhmh7aw6.js → schema-hn57h045.js} +4 -4
  167. package/dist/chunks/{location-1bbkgx8g.js → schema-j028xdjb.js} +3 -3
  168. package/dist/chunks/{location-w63jt7y5.js → schema-j1pt8b99.js} +23 -23
  169. package/dist/chunks/{location-j56e64zr.js → schema-j56e64zr.js} +1 -1
  170. package/dist/chunks/{location-3d2kdets.js → schema-jbp9wfgd.js} +9 -9
  171. package/dist/chunks/{location-w9gpp3gx.js → schema-jfxkwh10.js} +102 -34
  172. package/dist/chunks/{location-kxqn5q5s.js → schema-jjf6303y.js} +17 -17
  173. package/dist/chunks/{location-wk3hxpq4.js → schema-jjq7exv6.js} +15 -15
  174. package/dist/chunks/{location-vbz4mrgg.js → schema-jmanypz0.js} +30 -30
  175. package/dist/chunks/{location-tdkr4fjp.js → schema-jnqxgjh5.js} +42 -42
  176. package/dist/chunks/{location-2p5y98w0.js → schema-jns15vzr.js} +6 -6
  177. package/dist/chunks/{location-s0esgemt.js → schema-jpqeh2wc.js} +13 -9
  178. package/dist/chunks/{location-8py9cb08.js → schema-jt97ek0w.js} +1 -1
  179. package/dist/chunks/{location-exkxrshv.js → schema-jzffzcq4.js} +16 -16
  180. package/dist/chunks/{location-3rbdcc49.js → schema-jztemdeq.js} +24 -24
  181. package/dist/chunks/{location-nzks3jc8.js → schema-k3c624dm.js} +3 -3
  182. package/dist/chunks/{location-rfbkd05a.js → schema-k3ztb1qz.js} +5 -5
  183. package/dist/chunks/{location-pmh8g6yq.js → schema-k5gcqnqh.js} +11 -11
  184. package/dist/chunks/{location-256nx13v.js → schema-k6yq57aq.js} +3 -3
  185. package/dist/chunks/{location-ajdjch6h.js → schema-kp8q1t60.js} +9 -9
  186. package/dist/chunks/{location-306693xq.js → schema-ks0a0grj.js} +23 -23
  187. package/dist/chunks/{location-z0aj456m.js → schema-m0r31qfn.js} +4 -4
  188. package/dist/chunks/{location-m3fdjcah.js → schema-m3fdjcah.js} +1 -1
  189. package/dist/chunks/{location-m9w0rfyh.js → schema-m9w0rfyh.js} +1 -1
  190. package/dist/chunks/{location-jgttmm4a.js → schema-ma48de29.js} +5 -5
  191. package/dist/chunks/{location-8fyqdzgp.js → schema-me2bkwye.js} +11 -11
  192. package/dist/chunks/{location-33w4ejhs.js → schema-mfqp6xfm.js} +9 -9
  193. package/dist/chunks/{location-k906dc9m.js → schema-mj50c66e.js} +16 -16
  194. package/dist/chunks/{location-3172pg9v.js → schema-mnnqb9y7.js} +30 -26
  195. package/dist/chunks/{location-bdmzfegv.js → schema-mpjr2ekw.js} +33 -33
  196. package/dist/chunks/{location-mvksx64m.js → schema-mvksx64m.js} +4 -4
  197. package/dist/chunks/{location-8kc8r484.js → schema-n72gykqt.js} +33 -33
  198. package/dist/chunks/{location-vyrd71eq.js → schema-nbzsj80d.js} +11 -11
  199. package/dist/chunks/{location-zfa7ynd8.js → schema-nrp9mwhy.js} +16 -16
  200. package/dist/chunks/{location-r1vfcwav.js → schema-nvexbzn8.js} +24 -24
  201. package/dist/chunks/{location-yq14pbr7.js → schema-nyqx1cb3.js} +5 -5
  202. package/dist/chunks/{location-tqzp8tzb.js → schema-nz8pq8c9.js} +3 -3
  203. package/dist/chunks/{location-3t63r8vy.js → schema-p07c8hrh.js} +8 -8
  204. package/dist/chunks/{location-6sftkhr6.js → schema-p8587wpx.js} +18 -18
  205. package/dist/chunks/{location-7w0t4dm2.js → schema-pecm86x5.js} +13 -13
  206. package/dist/chunks/{location-pjvnvgmy.js → schema-pjvnvgmy.js} +1 -1
  207. package/dist/chunks/{location-pknna89w.js → schema-pknna89w.js} +1 -1
  208. package/dist/chunks/{location-vg9ntks0.js → schema-pkyn48ss.js} +332 -324
  209. package/dist/chunks/{location-jftkgdp0.js → schema-pm23069r.js} +17 -17
  210. package/dist/chunks/{location-rnghhd3g.js → schema-pnzr5f25.js} +10 -10
  211. package/dist/chunks/{location-pdgv857h.js → schema-ps7s312n.js} +10 -10
  212. package/dist/chunks/{location-qdm92ydp.js → schema-q4q3y0ma.js} +35 -35
  213. package/dist/chunks/{location-04mw5jg5.js → schema-qg2cf98c.js} +11 -11
  214. package/dist/chunks/{location-jv01nqvq.js → schema-qjnxxf51.js} +5 -5
  215. package/dist/chunks/{location-rvhvw5j9.js → schema-qkc3sedm.js} +170 -170
  216. package/dist/chunks/{location-cf8rhbja.js → schema-qnnvw27w.js} +35 -35
  217. package/dist/chunks/{location-qsdy395h.js → schema-qsdy395h.js} +1 -1
  218. package/dist/chunks/{location-z1cdyrqr.js → schema-qw1f8ej3.js} +40 -31
  219. package/dist/chunks/{location-pvat10bb.js → schema-qyvq79sc.js} +11 -11
  220. package/dist/chunks/{location-2pnnswbv.js → schema-r1qsnamt.js} +4 -4
  221. package/dist/chunks/{location-xcrt1tny.js → schema-r3ryr6td.js} +31 -31
  222. package/dist/chunks/{location-0kxfmfxf.js → schema-rb4e480n.js} +13 -13
  223. package/dist/chunks/{location-rdw6cm16.js → schema-rdw6cm16.js} +1 -1
  224. package/dist/chunks/{location-ft3hqk2c.js → schema-rey5gbxv.js} +9 -9
  225. package/dist/chunks/{location-rhjbct0v.js → schema-rhjbct0v.js} +1 -1
  226. package/dist/chunks/{location-n9awvp43.js → schema-rrxec99e.js} +41 -41
  227. package/dist/chunks/{location-4qjz8wfv.js → schema-rwvzjkqg.js} +26 -26
  228. package/dist/chunks/{location-nf6tfn93.js → schema-rxcwgxqf.js} +3 -3
  229. package/dist/chunks/schema-sejq73tg.js +96 -0
  230. package/dist/chunks/{location-z5qed6cr.js → schema-sm1zfatk.js} +40 -40
  231. package/dist/chunks/{location-kwj5scwb.js → schema-spdety1y.js} +16 -16
  232. package/dist/chunks/{location-18s9r5gn.js → schema-ssdqnhy0.js} +4 -4
  233. package/dist/chunks/{location-jfqtm2ew.js → schema-t2fc4mz5.js} +4 -4
  234. package/dist/chunks/{location-hypat1yv.js → schema-t4wzjz2c.js} +3 -3
  235. package/dist/chunks/{location-qpk3e0rf.js → schema-t7c95w3a.js} +26 -26
  236. package/dist/chunks/{location-hafm9y5m.js → schema-t7xz7709.js} +31 -30
  237. package/dist/chunks/{location-an7cqtb7.js → schema-t9zs3egg.js} +4 -4
  238. package/dist/chunks/{location-tazgh4e4.js → schema-tazgh4e4.js} +1 -1
  239. package/dist/chunks/{location-tcezcvh9.js → schema-tcezcvh9.js} +1 -1
  240. package/dist/chunks/{location-tdstcens.js → schema-tdstcens.js} +1 -1
  241. package/dist/chunks/{location-qfe26hq3.js → schema-tfvhzp6w.js} +90 -90
  242. package/dist/chunks/{location-7tvzmp5f.js → schema-tgyvarbm.js} +15 -15
  243. package/dist/chunks/{location-15y6myyc.js → schema-tjz0sjs3.js} +20 -20
  244. package/dist/chunks/{location-yvvvp4gn.js → schema-tk9ew89t.js} +8 -8
  245. package/dist/chunks/{location-tvtrv512.js → schema-tvtrv512.js} +1 -1
  246. package/dist/chunks/schema-v1faaxn9.js +18 -0
  247. package/dist/chunks/{location-dagkn99r.js → schema-v3sgzvyr.js} +1 -1
  248. package/dist/chunks/schema-v7ytqzq6.js +339 -0
  249. package/dist/chunks/{location-8ec97xvv.js → schema-v9315egx.js} +9 -9
  250. package/dist/chunks/{location-vh4x57nh.js → schema-vbb1pxgn.js} +23 -23
  251. package/dist/chunks/{location-veqvce7d.js → schema-veqvce7d.js} +1 -1
  252. package/dist/chunks/{location-w747ydy6.js → schema-vgygemyp.js} +28 -28
  253. package/dist/chunks/{location-xq3yw8dy.js → schema-vmnfmpbz.js} +86 -80
  254. package/dist/chunks/{location-c8bydgjz.js → schema-vqfzq50h.js} +6 -6
  255. package/dist/chunks/{location-3a58h9a4.js → schema-vr2z87y7.js} +70 -70
  256. package/dist/chunks/{location-xhk8n0yf.js → schema-vv4dp7ce.js} +20 -20
  257. package/dist/chunks/{location-vzcthcp8.js → schema-vzcthcp8.js} +1 -1
  258. package/dist/chunks/{location-5ekn9679.js → schema-vzs5sf6e.js} +5 -1
  259. package/dist/chunks/{location-w3wsvvr9.js → schema-w3wsvvr9.js} +1 -1
  260. package/dist/chunks/{location-wd3x2cqz.js → schema-wd3x2cqz.js} +2 -2
  261. package/dist/chunks/{location-wd87259q.js → schema-wd87259q.js} +1 -1
  262. package/dist/chunks/{location-qmr67b2d.js → schema-wfg418dn.js} +13 -13
  263. package/dist/chunks/{location-m7va1g8x.js → schema-wqc6684y.js} +2 -2
  264. package/dist/chunks/{location-dgpq7z8n.js → schema-wx7ymqfy.js} +26 -26
  265. package/dist/chunks/{location-8s04dv6n.js → schema-wxnc2egh.js} +16 -16
  266. package/dist/chunks/{location-vs030v48.js → schema-wzgg19r1.js} +4 -4
  267. package/dist/chunks/{location-0tmnpbjy.js → schema-wzhdnf6z.js} +32 -32
  268. package/dist/chunks/{location-x1ezjp6w.js → schema-x1ezjp6w.js} +1 -1
  269. package/dist/chunks/{location-c395zvtw.js → schema-x3317tkm.js} +21 -21
  270. package/dist/chunks/{location-dpwed560.js → schema-x8bbrmd5.js} +3 -3
  271. package/dist/chunks/{location-mtg5e72x.js → schema-xbwwxhdm.js} +14 -14
  272. package/dist/chunks/{location-tb273c1p.js → schema-xc7gs73k.js} +23 -23
  273. package/dist/chunks/{location-n793kqf0.js → schema-xybn4n2y.js} +12 -12
  274. package/dist/chunks/{location-y1fvbwt7.js → schema-y1fvbwt7.js} +1 -1
  275. package/dist/chunks/{location-1twdgbjf.js → schema-y4bzdzmn.js} +13 -13
  276. package/dist/chunks/{location-85skx0n5.js → schema-y6gmj16h.js} +22 -22
  277. package/dist/chunks/{location-jwcy2c2z.js → schema-y71avatq.js} +4 -4
  278. package/dist/chunks/{location-svhm0fyq.js → schema-y853g6y0.js} +4 -4
  279. package/dist/chunks/{location-52mpv69t.js → schema-ycw8hfm2.js} +13 -13
  280. package/dist/chunks/{location-n8c291r7.js → schema-yq2cczkq.js} +7 -7
  281. package/dist/chunks/{location-yrhqyw5v.js → schema-yrhqyw5v.js} +1 -1
  282. package/dist/chunks/{location-s4enseaf.js → schema-yrznvahk.js} +2 -2
  283. package/dist/chunks/{location-h5gt9chz.js → schema-ytbrnvs4.js} +25 -25
  284. package/dist/chunks/{location-hcg5gfqa.js → schema-yv37q7sr.js} +6 -6
  285. package/dist/chunks/{location-vhv9377y.js → schema-yz82w8p6.js} +5 -5
  286. package/dist/chunks/{location-z07pqspn.js → schema-z07pqspn.js} +3 -3
  287. package/dist/chunks/{location-z0bkrqjs.js → schema-z0bkrqjs.js} +1 -1
  288. package/dist/chunks/{location-neb0pg0h.js → schema-z15n6anb.js} +5 -5
  289. package/dist/chunks/{location-29x78va6.js → schema-z63w68vq.js} +6 -6
  290. package/dist/chunks/{location-zeh9ct20.js → schema-zeh9ct20.js} +2 -2
  291. package/dist/chunks/{location-ek44vwmj.js → schema-zqdrfgj1.js} +48 -48
  292. package/dist/chunks/{location-zr2ceqn5.js → schema-zr2ceqn5.js} +1 -1
  293. package/dist/chunks/{location-zxq2ej10.js → schema-zxq2ej10.js} +1 -1
  294. package/dist/codemode/catalog.js +1 -1
  295. package/dist/codemode/instructions.js +11 -11
  296. package/dist/codemode/tool.js +3 -3
  297. package/dist/codemode/web.js +1 -1
  298. package/dist/command.js +83 -83
  299. package/dist/config/discovery.js +82 -82
  300. package/dist/config/markdown.js +1 -1
  301. package/dist/config/normalize.js +106 -106
  302. package/dist/config/plugin/agent.js +125 -125
  303. package/dist/config/plugin/command.js +214 -214
  304. package/dist/config/plugin/compaction.js +162 -162
  305. package/dist/config/plugin/compatibility.js +141 -141
  306. package/dist/config/plugin/entry-observer.js +1 -1
  307. package/dist/config/plugin/formatter.js +124 -124
  308. package/dist/config/plugin/image.js +123 -123
  309. package/dist/config/plugin/instruction.js +90 -90
  310. package/dist/config/plugin/location-watcher.js +125 -125
  311. package/dist/config/plugin/mcp.js +132 -132
  312. package/dist/config/plugin/policy.js +124 -124
  313. package/dist/config/plugin/provider.js +123 -123
  314. package/dist/config/plugin/reference.js +125 -125
  315. package/dist/config/plugin/shell.js +125 -125
  316. package/dist/config/plugin/skill-file.js +102 -102
  317. package/dist/config/plugin/skill.js +144 -144
  318. package/dist/config/plugin/snapshot.js +123 -123
  319. package/dist/config/plugin/source.js +126 -126
  320. package/dist/config/plugin/tool-output.js +125 -125
  321. package/dist/config/plugin/websearch.js +124 -124
  322. package/dist/config/plugin/worktree.js +125 -125
  323. package/dist/config/variable.js +3 -3
  324. package/dist/config/watch.js +1 -1
  325. package/dist/config.js +128 -128
  326. package/dist/credential/sql.js +2 -2
  327. package/dist/credential.js +81 -81
  328. package/dist/database/database.js +70 -70
  329. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  330. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  331. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  332. package/dist/database/drizzle/index.js +13 -13
  333. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  335. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  336. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  337. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  338. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  339. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  340. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  341. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  342. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  343. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  344. package/dist/database/drizzle.js +14 -14
  345. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  346. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  347. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  348. package/dist/database/migration/20260225215848_workspace.js +1 -1
  349. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  350. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  351. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  352. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  353. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  354. package/dist/database/migration/20260323234822_events.js +1 -1
  355. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  356. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  357. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  358. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  359. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  360. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  361. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  362. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  363. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  364. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  365. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  366. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  367. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  368. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  369. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  370. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  371. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  372. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  373. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  374. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  375. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  376. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  377. package/dist/database/migration/20260611035744_credential.js +1 -1
  378. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  379. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  380. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  381. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  382. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  383. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  384. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  385. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  386. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  387. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  388. package/dist/database/migration/20260812213948_worktree.js +1 -1
  389. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  390. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  391. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  392. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  393. package/dist/database/migration.gen.js +49 -49
  394. package/dist/database/migration.js +51 -51
  395. package/dist/database/path.js +2 -2
  396. package/dist/database/schema.gen.js +1 -1
  397. package/dist/database/schema.sql.js +1 -1
  398. package/dist/database/sqlite.bun.js +1 -1
  399. package/dist/database/sqlite.js +1 -1
  400. package/dist/database/sqlite.node.js +1 -1
  401. package/dist/database/sqlite.workerd.js +1 -1
  402. package/dist/database/v1-migration.bun.js +125 -81
  403. package/dist/database/v1-migration.js +1 -1
  404. package/dist/effect/app-node-builder.js +369 -367
  405. package/dist/effect/app-node-platform.js +2 -2
  406. package/dist/effect/keyed-mutex.js +3 -3
  407. package/dist/effect/websocket-constructor.js +1 -1
  408. package/dist/environment/driver.js +1 -1
  409. package/dist/environment/environment.js +93 -93
  410. package/dist/environment/exec-defaults.js +2 -2
  411. package/dist/environment/files.js +1 -1
  412. package/dist/environment/index.js +93 -93
  413. package/dist/environment/local.js +2 -2
  414. package/dist/environment/memory.js +2 -2
  415. package/dist/environment/unavailable.js +1 -1
  416. package/dist/event/sql.js +1 -1
  417. package/dist/event-logger.js +74 -74
  418. package/dist/file-access.js +104 -104
  419. package/dist/file-mutation.js +94 -94
  420. package/dist/file-retention.js +1 -1
  421. package/dist/file.js +1 -1
  422. package/dist/filesystem/fff.bun.js +2 -2
  423. package/dist/filesystem/fff.js +1 -1
  424. package/dist/filesystem/fff.node.js +2 -2
  425. package/dist/filesystem/fff.workerd.js +2 -2
  426. package/dist/filesystem/ignore.js +1 -1
  427. package/dist/filesystem/location-watcher-policy.js +6 -6
  428. package/dist/filesystem/location-watcher.js +227 -227
  429. package/dist/filesystem/protected.js +1 -1
  430. package/dist/filesystem/search.js +103 -103
  431. package/dist/filesystem/watcher-binding.js +3 -3
  432. package/dist/filesystem/watcher.js +15 -15
  433. package/dist/filesystem.js +106 -106
  434. package/dist/form.js +78 -78
  435. package/dist/formatter/builtins.js +4 -4
  436. package/dist/formatter.js +89 -89
  437. package/dist/generate.js +103 -103
  438. package/dist/git.js +10 -10
  439. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  440. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  441. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  442. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  443. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  444. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  445. package/dist/github-copilot/copilot-provider.js +17 -17
  446. package/dist/github-copilot/models.js +99 -99
  447. package/dist/github-copilot/openai-compatible-error.js +1 -1
  448. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  449. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  450. package/dist/github-copilot/responses/openai-error.js +1 -1
  451. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  452. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  453. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  454. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  455. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  456. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  457. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  458. package/dist/id/id.js +1 -1
  459. package/dist/image/photon.js +2 -2
  460. package/dist/image.js +6 -6
  461. package/dist/instance/service.js +5 -5
  462. package/dist/instance.js +363 -361
  463. package/dist/instruction-discovery.js +85 -85
  464. package/dist/instructions/builtins.js +87 -87
  465. package/dist/instructions/index.js +1 -1
  466. package/dist/integration/connection.js +3 -3
  467. package/dist/integration.js +84 -84
  468. package/dist/job.js +79 -79
  469. package/dist/kv/sql.js +2 -2
  470. package/dist/kv.js +73 -73
  471. package/dist/location-activity.js +133 -133
  472. package/dist/location-lifecycle.js +105 -105
  473. package/dist/location-mutation.js +104 -104
  474. package/dist/location-service-map.js +84 -84
  475. package/dist/location-services.js +360 -358
  476. package/dist/location.js +87 -87
  477. package/dist/managed-policy.js +5 -5
  478. package/dist/mcp/client.js +91 -91
  479. package/dist/mcp/index.js +106 -106
  480. package/dist/mcp/instructions.js +126 -126
  481. package/dist/mcp/oauth.js +78 -78
  482. package/dist/mcp/stdio.js +90 -90
  483. package/dist/mime.js +1 -1
  484. package/dist/modal/models.js +99 -99
  485. package/dist/model-resolver.js +98 -98
  486. package/dist/model.js +98 -98
  487. package/dist/models-dev.js +107 -107
  488. package/dist/oauth/page.js +1 -1
  489. package/dist/permission/saved.js +78 -78
  490. package/dist/permission/sql.js +5 -5
  491. package/dist/permission.js +109 -109
  492. package/dist/persistent-pty/binary.bun.js +1 -1
  493. package/dist/persistent-pty/daemon.js +1 -1
  494. package/dist/persistent-pty/index.js +86 -86
  495. package/dist/persistent-pty/pty-binding.js +1 -1
  496. package/dist/persistent-pty.js +75 -75
  497. package/dist/plugin/agent.js +104 -104
  498. package/dist/plugin/command.js +101 -101
  499. package/dist/plugin/compaction.js +133 -133
  500. package/dist/plugin/hooks.js +3 -3
  501. package/dist/plugin/host.js +218 -218
  502. package/dist/plugin/identity.js +3 -3
  503. package/dist/plugin/instance.js +5 -5
  504. package/dist/plugin/internal.js +334 -332
  505. package/dist/plugin/mcp-codemode-defaults.js +8 -0
  506. package/dist/plugin/models-dev.js +96 -96
  507. package/dist/plugin/module.js +7 -7
  508. package/dist/plugin/optimize.js +2 -2
  509. package/dist/plugin/plan.js +102 -102
  510. package/dist/plugin/promise.js +1 -1
  511. package/dist/plugin/provider/amazon-bedrock.js +90 -90
  512. package/dist/plugin/provider/azure.js +122 -122
  513. package/dist/plugin/provider/cerebras.js +1 -1
  514. package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
  515. package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
  516. package/dist/plugin/provider/cohere.js +2 -2
  517. package/dist/plugin/provider/configured.js +119 -119
  518. package/dist/plugin/provider/digitalocean.js +93 -93
  519. package/dist/plugin/provider/dynamic.js +2 -2
  520. package/dist/plugin/provider/factory.js +1 -1
  521. package/dist/plugin/provider/gateway.js +2 -2
  522. package/dist/plugin/provider/github-copilot.js +99 -94
  523. package/dist/plugin/provider/gitlab.js +93 -91
  524. package/dist/plugin/provider/google-vertex.js +90 -90
  525. package/dist/plugin/provider/kilo.js +1 -1
  526. package/dist/plugin/provider/llmgateway.js +77 -77
  527. package/dist/plugin/provider/lmstudio.js +122 -122
  528. package/dist/plugin/provider/modal.js +92 -92
  529. package/dist/plugin/provider/nvidia.js +1 -1
  530. package/dist/plugin/provider/ollama.js +122 -122
  531. package/dist/plugin/provider/openai.js +92 -92
  532. package/dist/plugin/provider/opencode.js +95 -94
  533. package/dist/plugin/provider/openrouter.js +91 -91
  534. package/dist/plugin/provider/perplexity.js +2 -2
  535. package/dist/plugin/provider/poe.js +78 -78
  536. package/dist/plugin/provider/prompt-cache-key.js +90 -90
  537. package/dist/plugin/provider/sap-ai-core.js +91 -91
  538. package/dist/plugin/provider/sdk-factory.js +1 -1
  539. package/dist/plugin/provider/snowflake-cortex.js +122 -122
  540. package/dist/plugin/provider/venice.js +2 -2
  541. package/dist/plugin/provider/vercel.js +90 -90
  542. package/dist/plugin/provider/vllm.js +120 -120
  543. package/dist/plugin/provider/xai.js +91 -91
  544. package/dist/plugin/provider/zenmux.js +1 -1
  545. package/dist/plugin/provider.js +161 -160
  546. package/dist/plugin/sdk.js +76 -76
  547. package/dist/plugin/service.js +3 -3
  548. package/dist/plugin/skill.js +139 -139
  549. package/dist/plugin/source-directory.js +1 -1
  550. package/dist/plugin/supervisor.js +351 -349
  551. package/dist/plugin/tool-input-repair.js +4 -4
  552. package/dist/plugin/update.js +6 -6
  553. package/dist/plugin/vcs/git.js +86 -86
  554. package/dist/plugin/vcs/hg.js +86 -86
  555. package/dist/plugin/verbosity.js +98 -0
  556. package/dist/plugin/warming.js +121 -121
  557. package/dist/plugin/websearch/exa.js +7 -7
  558. package/dist/plugin/websearch/firecrawl.js +6 -6
  559. package/dist/plugin/websearch/index.js +9 -9
  560. package/dist/plugin/websearch/mcp.js +6 -6
  561. package/dist/plugin/websearch/parallel.js +8 -8
  562. package/dist/plugin/websearch/tavily.js +6 -6
  563. package/dist/plugin/websearch/tinyfish.js +6 -6
  564. package/dist/plugin.js +227 -227
  565. package/dist/project/schema.js +6 -6
  566. package/dist/project/sql.js +4 -4
  567. package/dist/project.js +88 -88
  568. package/dist/provider.js +97 -97
  569. package/dist/pty/protocol.js +1 -1
  570. package/dist/pty/schema.js +3 -3
  571. package/dist/pty/ticket.js +1 -1
  572. package/dist/pty.js +96 -96
  573. package/dist/reference/instructions.js +89 -89
  574. package/dist/reference.js +89 -89
  575. package/dist/repository-cache.js +81 -81
  576. package/dist/repository.js +1 -1
  577. package/dist/ripgrep/binary.js +2 -2
  578. package/dist/ripgrep.js +97 -97
  579. package/dist/rpc.js +84 -84
  580. package/dist/schema.js +1 -1
  581. package/dist/session/command.js +74 -74
  582. package/dist/session/compaction.js +134 -134
  583. package/dist/session/context.js +152 -152
  584. package/dist/session/diff.js +88 -88
  585. package/dist/session/environment.js +5 -5
  586. package/dist/session/error.js +5 -5
  587. package/dist/session/event.js +1 -1
  588. package/dist/session/execution/restart.js +224 -223
  589. package/dist/session/execution.js +128 -128
  590. package/dist/session/generate.js +153 -153
  591. package/dist/session/history.js +15 -15
  592. package/dist/session/inbox.js +88 -88
  593. package/dist/session/info.js +3 -3
  594. package/dist/session/instruction-entry.js +79 -79
  595. package/dist/session/instruction-state.js +8 -8
  596. package/dist/session/instructions.js +97 -97
  597. package/dist/session/message-updater.js +4 -4
  598. package/dist/session/message.js +1 -1
  599. package/dist/session/model-request.js +119 -119
  600. package/dist/session/model-transport.js +9 -9
  601. package/dist/session/move.js +130 -130
  602. package/dist/session/projector.js +86 -86
  603. package/dist/session/prompt.js +105 -105
  604. package/dist/session/provider-context.js +3 -3
  605. package/dist/session/revert.js +90 -90
  606. package/dist/session/run-coordinator.js +3 -3
  607. package/dist/session/runner/index.js +3 -3
  608. package/dist/session/runner/llm.js +231 -231
  609. package/dist/session/runner/max-steps.js +1 -1
  610. package/dist/session/runner/model.js +98 -98
  611. package/dist/session/runner/publish-llm-event.js +3 -3
  612. package/dist/session/runner/retry.js +112 -112
  613. package/dist/session/runner/step.js +124 -124
  614. package/dist/session/runner/to-llm-message.js +2 -2
  615. package/dist/session/schema.js +5 -5
  616. package/dist/session/session.js +172 -172
  617. package/dist/session/shell.js +138 -138
  618. package/dist/session/skill.js +103 -103
  619. package/dist/session/sql.js +5 -5
  620. package/dist/session/stats.js +75 -75
  621. package/dist/session/store.js +83 -83
  622. package/dist/session/subagent-completion.js +1 -1
  623. package/dist/session/subagent-job.js +208 -208
  624. package/dist/session/system-prompt.js +5 -5
  625. package/dist/session/title.js +156 -156
  626. package/dist/session/to-session-error.js +111 -111
  627. package/dist/session/transfer.js +223 -223
  628. package/dist/session/usage.js +1 -1
  629. package/dist/session.js +216 -216
  630. package/dist/shell/parse.js +6 -6
  631. package/dist/shell/result.js +1 -1
  632. package/dist/shell/scan.js +1 -1
  633. package/dist/shell/select.js +13 -13
  634. package/dist/shell.js +140 -140
  635. package/dist/skill/discovery.js +6 -6
  636. package/dist/skill/instructions.js +107 -107
  637. package/dist/skill.js +110 -110
  638. package/dist/snapshot.js +93 -93
  639. package/dist/state.js +1 -1
  640. package/dist/tool/html-markdown.js +1 -1
  641. package/dist/tool/http-body.js +1 -1
  642. package/dist/tool/mcp.js +125 -125
  643. package/dist/tool/plugin/edit.js +114 -114
  644. package/dist/tool/plugin/file-diff.js +1 -1
  645. package/dist/tool/plugin/glob.js +122 -122
  646. package/dist/tool/plugin/grep.js +124 -124
  647. package/dist/tool/plugin/mcp-resource.js +121 -0
  648. package/dist/tool/plugin/opencode.js +3 -3
  649. package/dist/tool/plugin/patch.js +122 -122
  650. package/dist/tool/plugin/question.js +107 -107
  651. package/dist/tool/plugin/read.js +125 -125
  652. package/dist/tool/plugin/shell.js +217 -217
  653. package/dist/tool/plugin/skill.js +113 -113
  654. package/dist/tool/plugin/subagent.js +219 -219
  655. package/dist/tool/plugin/webfetch.js +110 -110
  656. package/dist/tool/plugin/websearch.js +110 -110
  657. package/dist/tool/plugin/write.js +116 -116
  658. package/dist/tool/read-filesystem.js +100 -100
  659. package/dist/tool/runtime.js +1 -1
  660. package/dist/tool-output.js +8 -8
  661. package/dist/tool.js +14 -14
  662. package/dist/types/effect/app-node-platform.d.ts +1 -2
  663. package/dist/types/mcp/index.d.ts +4 -1
  664. package/dist/types/model-resolver.d.ts +2 -0
  665. package/dist/types/plugin/{mcp-codemode-exclusion.d.ts → mcp-codemode-defaults.d.ts} +1 -1
  666. package/dist/types/plugin/provider/github-copilot.d.ts +10 -1
  667. package/dist/types/plugin/provider/gitlab.d.ts +4 -1
  668. package/dist/types/plugin/verbosity.d.ts +3 -0
  669. package/dist/types/session/model-transport.d.ts +1 -1
  670. package/dist/types/shell/result.d.ts +5 -1
  671. package/dist/types/tool/plugin/mcp-resource.d.ts +9 -0
  672. package/dist/types/tool/read-filesystem.d.ts +1 -0
  673. package/dist/types/v1/config/migrate.d.ts +12 -12
  674. package/dist/util/error-summary.js +1 -1
  675. package/dist/util/error.js +1 -1
  676. package/dist/util/git-executable.js +2 -2
  677. package/dist/util/iife.js +1 -1
  678. package/dist/util/lazy.js +1 -1
  679. package/dist/util/slug.js +1 -1
  680. package/dist/util/token.js +1 -1
  681. package/dist/util/which.js +1 -1
  682. package/dist/util/wildcard.js +1 -1
  683. package/dist/v1/config/agent.js +7 -7
  684. package/dist/v1/config/attachment.js +4 -4
  685. package/dist/v1/config/command.js +3 -3
  686. package/dist/v1/config/config.js +16 -16
  687. package/dist/v1/config/error.js +4 -4
  688. package/dist/v1/config/formatter.js +5 -5
  689. package/dist/v1/config/layout.js +1 -1
  690. package/dist/v1/config/lsp.js +3 -3
  691. package/dist/v1/config/mcp.js +4 -4
  692. package/dist/v1/config/migrate.js +92 -92
  693. package/dist/v1/config/permission.js +7 -7
  694. package/dist/v1/config/plugin.js +1 -1
  695. package/dist/v1/config/provider-options.js +1 -1
  696. package/dist/v1/config/provider.js +4 -4
  697. package/dist/v1/config/server.js +2 -2
  698. package/dist/v1/config/skills.js +3 -3
  699. package/dist/v1/permission.js +1 -1
  700. package/dist/variant.js +93 -93
  701. package/dist/vcs/patch.js +1 -1
  702. package/dist/vcs.js +89 -89
  703. package/dist/websearch.js +84 -84
  704. package/dist/wellknown/plugin.js +76 -76
  705. package/dist/wellknown.js +81 -81
  706. package/dist/workspace/driver.js +7 -7
  707. package/dist/workspace/sql.js +1 -1
  708. package/dist/workspace.js +80 -80
  709. package/dist/worktree/directory.js +2 -2
  710. package/dist/worktree/git.js +10 -10
  711. package/dist/worktree/sql.js +5 -5
  712. package/dist/worktree/strategies.js +89 -89
  713. package/dist/worktree.js +96 -96
  714. package/package.json +9 -9
  715. package/dist/chunks/location-0mesazry.js +0 -4
  716. package/dist/chunks/location-ce7bf4ce.js +0 -252
  717. package/dist/chunks/location-hpfbmb0d.js +0 -61
  718. package/dist/chunks/location-jbs0jehe.js +0 -26
  719. package/dist/chunks/location-n95b3jav.js +0 -18
  720. package/dist/plugin/mcp-codemode-exclusion.js +0 -8
  721. /package/dist/chunks/{location-0qkdqm5v.js → schema-0qkdqm5v.js} +0 -0
  722. /package/dist/chunks/{location-0zkw76rk.js → schema-0zkw76rk.js} +0 -0
  723. /package/dist/chunks/{location-17cy0kzp.js → schema-17cy0kzp.js} +0 -0
  724. /package/dist/chunks/{location-1cnp2v09.js → schema-1cnp2v09.js} +0 -0
  725. /package/dist/chunks/{location-1kg9ymc8.js → schema-1kg9ymc8.js} +0 -0
  726. /package/dist/chunks/{location-24dcb14g.js → schema-24dcb14g.js} +0 -0
  727. /package/dist/chunks/{location-2710q6r3.js → schema-2710q6r3.js} +0 -0
  728. /package/dist/chunks/{location-2axfhc9x.js → schema-2axfhc9x.js} +0 -0
  729. /package/dist/chunks/{location-2c3vjs8z.js → schema-2c3vjs8z.js} +0 -0
  730. /package/dist/chunks/{location-34c7v6d4.js → schema-34c7v6d4.js} +0 -0
  731. /package/dist/chunks/{location-359p4xyc.js → schema-359p4xyc.js} +0 -0
  732. /package/dist/chunks/{location-3asan66x.js → schema-3asan66x.js} +0 -0
  733. /package/dist/chunks/{location-3v8g72cx.js → schema-3v8g72cx.js} +0 -0
  734. /package/dist/chunks/{location-3w5fmr99.js → schema-3w5fmr99.js} +0 -0
  735. /package/dist/chunks/{location-3wcehsnq.js → schema-3wcehsnq.js} +0 -0
  736. /package/dist/chunks/{location-43n2bw4t.js → schema-43n2bw4t.js} +0 -0
  737. /package/dist/chunks/{location-4knz6hnm.js → schema-4knz6hnm.js} +0 -0
  738. /package/dist/chunks/{location-4vcrnpx2.js → schema-4vcrnpx2.js} +0 -0
  739. /package/dist/chunks/{location-4y7fprxs.js → schema-4y7fprxs.js} +0 -0
  740. /package/dist/chunks/{location-53557ph1.js → schema-53557ph1.js} +0 -0
  741. /package/dist/chunks/{location-550bvhaj.js → schema-550bvhaj.js} +0 -0
  742. /package/dist/chunks/{location-6prwharc.js → schema-6prwharc.js} +0 -0
  743. /package/dist/chunks/{location-7akdwqpd.js → schema-7akdwqpd.js} +0 -0
  744. /package/dist/chunks/{location-7m9af43g.js → schema-7m9af43g.js} +0 -0
  745. /package/dist/chunks/{location-822emrt2.js → schema-822emrt2.js} +0 -0
  746. /package/dist/chunks/{location-88xbtdfr.js → schema-88xbtdfr.js} +0 -0
  747. /package/dist/chunks/{location-8n3pysct.js → schema-8n3pysct.js} +0 -0
  748. /package/dist/chunks/{location-8wj87zfr.js → schema-8wj87zfr.js} +0 -0
  749. /package/dist/chunks/{location-922hggd3.js → schema-922hggd3.js} +0 -0
  750. /package/dist/chunks/{location-9a4afbnw.js → schema-9a4afbnw.js} +0 -0
  751. /package/dist/chunks/{location-9rqn6x4v.js → schema-9rqn6x4v.js} +0 -0
  752. /package/dist/chunks/{location-a6k6eb26.js → schema-a6k6eb26.js} +0 -0
  753. /package/dist/chunks/{location-af5trqkr.js → schema-af5trqkr.js} +0 -0
  754. /package/dist/chunks/{location-afrmfg78.js → schema-afrmfg78.js} +0 -0
  755. /package/dist/chunks/{location-aqzs7mqg.js → schema-aqzs7mqg.js} +0 -0
  756. /package/dist/chunks/{location-atq7p7m5.js → schema-atq7p7m5.js} +0 -0
  757. /package/dist/chunks/{location-bkyjaxrp.js → schema-bkyjaxrp.js} +0 -0
  758. /package/dist/chunks/{location-bmr6ed5q.js → schema-bmr6ed5q.js} +0 -0
  759. /package/dist/chunks/{location-cf4snx6d.js → schema-cf4snx6d.js} +0 -0
  760. /package/dist/chunks/{location-cvy3z8tj.js → schema-cvy3z8tj.js} +0 -0
  761. /package/dist/chunks/{location-d9fn303g.js → schema-d9fn303g.js} +0 -0
  762. /package/dist/chunks/{location-d9jj8t3e.js → schema-d9jj8t3e.js} +0 -0
  763. /package/dist/chunks/{location-dajrwvna.js → schema-dajrwvna.js} +0 -0
  764. /package/dist/chunks/{location-dap0rakb.js → schema-dap0rakb.js} +0 -0
  765. /package/dist/chunks/{location-df08tz66.js → schema-df08tz66.js} +0 -0
  766. /package/dist/chunks/{location-dy18nga0.js → schema-dy18nga0.js} +0 -0
  767. /package/dist/chunks/{location-e5kj55wp.js → schema-e5kj55wp.js} +0 -0
  768. /package/dist/chunks/{location-e73j6tqm.js → schema-e73j6tqm.js} +0 -0
  769. /package/dist/chunks/{location-ec1grn59.js → schema-ec1grn59.js} +0 -0
  770. /package/dist/chunks/{location-eh3zwz77.js → schema-eh3zwz77.js} +0 -0
  771. /package/dist/chunks/{location-emrn6kk6.js → schema-emrn6kk6.js} +0 -0
  772. /package/dist/chunks/{location-f0mxakyp.js → schema-f0mxakyp.js} +0 -0
  773. /package/dist/chunks/{location-f6n9ztr4.js → schema-f6n9ztr4.js} +0 -0
  774. /package/dist/chunks/{location-faypxj3z.js → schema-faypxj3z.js} +0 -0
  775. /package/dist/chunks/{location-fd410y7t.js → schema-fd410y7t.js} +0 -0
  776. /package/dist/chunks/{location-fxgpk5d8.js → schema-fxgpk5d8.js} +0 -0
  777. /package/dist/chunks/{location-g4wezp1m.js → schema-g4wezp1m.js} +0 -0
  778. /package/dist/chunks/{location-g86h250q.js → schema-g86h250q.js} +0 -0
  779. /package/dist/chunks/{location-gebd4c9n.js → schema-gebd4c9n.js} +0 -0
  780. /package/dist/chunks/{location-gftt206x.js → schema-gftt206x.js} +0 -0
  781. /package/dist/chunks/{location-hjbc5kem.js → schema-hjbc5kem.js} +0 -0
  782. /package/dist/chunks/{location-hk9envan.js → schema-hk9envan.js} +0 -0
  783. /package/dist/chunks/{location-j2ntwpah.js → schema-j2ntwpah.js} +0 -0
  784. /package/dist/chunks/{location-j5zkgpj8.js → schema-j5zkgpj8.js} +0 -0
  785. /package/dist/chunks/{location-jjkms2e6.js → schema-jjkms2e6.js} +0 -0
  786. /package/dist/chunks/{location-jr7sbwjy.js → schema-jr7sbwjy.js} +0 -0
  787. /package/dist/chunks/{location-jwfs4k6c.js → schema-jwfs4k6c.js} +0 -0
  788. /package/dist/chunks/{location-jzg6c2d5.js → schema-jzg6c2d5.js} +0 -0
  789. /package/dist/chunks/{location-mp448xyj.js → schema-mp448xyj.js} +0 -0
  790. /package/dist/chunks/{location-msx8hqn2.js → schema-msx8hqn2.js} +0 -0
  791. /package/dist/chunks/{location-n05xt0ee.js → schema-n05xt0ee.js} +0 -0
  792. /package/dist/chunks/{location-n3j8tn72.js → schema-n3j8tn72.js} +0 -0
  793. /package/dist/chunks/{location-njntx4h6.js → schema-njntx4h6.js} +0 -0
  794. /package/dist/chunks/{location-q3sfg36h.js → schema-q3sfg36h.js} +0 -0
  795. /package/dist/chunks/{location-q74kybfr.js → schema-q74kybfr.js} +0 -0
  796. /package/dist/chunks/{location-qaymkmh1.js → schema-qaymkmh1.js} +0 -0
  797. /package/dist/chunks/{location-qb87gjwd.js → schema-qb87gjwd.js} +0 -0
  798. /package/dist/chunks/{location-qfa1cgps.js → schema-qfa1cgps.js} +0 -0
  799. /package/dist/chunks/{location-qg3g05ea.js → schema-qg3g05ea.js} +0 -0
  800. /package/dist/chunks/{location-qrg20bc0.js → schema-qrg20bc0.js} +0 -0
  801. /package/dist/chunks/{location-rcb2kzg1.js → schema-rcb2kzg1.js} +0 -0
  802. /package/dist/chunks/{location-sdp7kfr6.js → schema-sdp7kfr6.js} +0 -0
  803. /package/dist/chunks/{location-sk3qaz4a.js → schema-sk3qaz4a.js} +0 -0
  804. /package/dist/chunks/{location-ssg3fenm.js → schema-ssg3fenm.js} +0 -0
  805. /package/dist/chunks/{location-w803qqfp.js → schema-w803qqfp.js} +0 -0
  806. /package/dist/chunks/{location-wc3fc9cn.js → schema-wc3fc9cn.js} +0 -0
  807. /package/dist/chunks/{location-wer8tq1h.js → schema-wer8tq1h.js} +0 -0
  808. /package/dist/chunks/{location-wtztk69x.js → schema-wtztk69x.js} +0 -0
  809. /package/dist/chunks/{location-x0ckcb58.js → schema-x0ckcb58.js} +0 -0
  810. /package/dist/chunks/{location-x61499pn.js → schema-x61499pn.js} +0 -0
  811. /package/dist/chunks/{location-y44na4kk.js → schema-y44na4kk.js} +0 -0
  812. /package/dist/chunks/{location-y8cydn3q.js → schema-y8cydn3q.js} +0 -0
  813. /package/dist/chunks/{location-y8f7s663.js → schema-y8f7s663.js} +0 -0
  814. /package/dist/chunks/{location-ygaqb7jw.js → schema-ygaqb7jw.js} +0 -0
  815. /package/dist/chunks/{location-ym463w8f.js → schema-ym463w8f.js} +0 -0
  816. /package/dist/chunks/{location-z9919s4g.js → schema-z9919s4g.js} +0 -0
@@ -1,33 +1,33 @@
1
1
  import {
2
- Service84,
3
- node88
4
- } from "./location-04mw5jg5.js";
2
+ Service83,
3
+ node87
4
+ } from "./schema-qg2cf98c.js";
5
5
  import {
6
6
  makeUnsafe2
7
- } from "./location-jwcy2c2z.js";
7
+ } from "./schema-y71avatq.js";
8
8
  import {
9
9
  Binding2,
10
10
  RegistryService2,
11
- node61
12
- } from "./location-cte9ap30.js";
11
+ node64
12
+ } from "./schema-258tza17.js";
13
13
  import {
14
14
  WorkspaceTable2
15
- } from "./location-faypxj3z.js";
15
+ } from "./schema-faypxj3z.js";
16
16
  import {
17
17
  __export
18
- } from "./location-9rqn6x4v.js";
18
+ } from "./schema-9rqn6x4v.js";
19
19
 
20
20
  // src/workspace.ts
21
21
  var exports_workspace = {};
22
22
  __export(exports_workspace, {
23
23
  CreateConflict: () => CreateConflict2,
24
- ID: () => ID5,
25
- Info: () => Info10,
24
+ ID: () => ID6,
25
+ Info: () => Info21,
26
26
  NotFound: () => NotFound3,
27
- Service: () => Service58,
27
+ Service: () => Service61,
28
28
  Workspace: () => exports_workspace,
29
- configured: () => configured8,
30
- node: () => node60
29
+ configured: () => configured10,
30
+ node: () => node63
31
31
  });
32
32
  import { Workspace } from "@opencode/schema/workspace";
33
33
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
@@ -35,10 +35,10 @@ import { eq } from "drizzle-orm";
35
35
  import { Clock, Context, Deferred, Duration, Effect, Exit, FiberSet, Layer, Ref, Schedule, Schema, Scope } from "effect";
36
36
  import { systemError } from "effect/PlatformError";
37
37
  import { make } from "effect/unstable/process/ChildProcessSpawner";
38
- var ID5 = Workspace.ID;
38
+ var ID6 = Workspace.ID;
39
39
 
40
- class Info10 extends Schema.Class("Workspace.Info")({
41
- id: ID5,
40
+ class Info21 extends Schema.Class("Workspace.Info")({
41
+ id: ID6,
42
42
  provider: Schema.String,
43
43
  binding: Binding2,
44
44
  createdAt: Schema.Number,
@@ -46,25 +46,25 @@ class Info10 extends Schema.Class("Workspace.Info")({
46
46
  }) {
47
47
  }
48
48
 
49
- class NotFound3 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID: ID5 }) {
49
+ class NotFound3 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID: ID6 }) {
50
50
  }
51
51
 
52
52
  class CreateConflict2 extends Schema.TaggedError()("Workspace.CreateConflict", {
53
- workspaceID: ID5,
53
+ workspaceID: ID6,
54
54
  provider: Schema.String,
55
55
  existingProvider: Schema.String
56
56
  }) {
57
57
  }
58
58
 
59
- class Service58 extends Context.Service()("@opencode/Workspace") {
59
+ class Service61 extends Context.Service()("@opencode/Workspace") {
60
60
  }
61
- var configured8 = (options = {}) => makeGlobalNode({
62
- service: Service58,
61
+ var configured10 = (options = {}) => makeGlobalNode({
62
+ service: Service61,
63
63
  layer: layer(options),
64
- deps: [node88, node61]
64
+ deps: [node87, node64]
65
65
  });
66
- var layer = (options) => Layer.effect(Service58, Effect.gen(function* () {
67
- const db = (yield* Service84).db;
66
+ var layer = (options) => Layer.effect(Service61, Effect.gen(function* () {
67
+ const db = (yield* Service83).db;
68
68
  const registry = yield* RegistryService2;
69
69
  const lifetime = yield* Scope.Scope;
70
70
  const connections = new Map;
@@ -80,7 +80,7 @@ var layer = (options) => Layer.effect(Service58, Effect.gen(function* () {
80
80
  return row;
81
81
  });
82
82
  const saveBinding = (workspaceID, binding) => db.update(WorkspaceTable2).set({ binding }).where(eq(WorkspaceTable2.id, workspaceID)).run().pipe(Effect.orDie);
83
- const info = (row, binding) => new Info10({
83
+ const info = (row, binding) => new Info21({
84
84
  id: row.id,
85
85
  provider: row.provider,
86
86
  binding,
@@ -154,9 +154,9 @@ var layer = (options) => Layer.effect(Service58, Effect.gen(function* () {
154
154
  yield* Scope.close(connection.scope, Exit.void);
155
155
  }).pipe(Effect.catchCause((cause) => Effect.logError("workspace idle suspension failed", cause)))), { concurrency: "unbounded", discard: true });
156
156
  }).pipe(Effect.repeat(Schedule.spaced(options.pollInterval ?? Duration.minutes(1))), Effect.forkScoped);
157
- return Service58.of({
157
+ return Service61.of({
158
158
  create: Effect.fn("Workspace.create")(function* (input) {
159
- const workspaceID = input.id ?? ID5.create();
159
+ const workspaceID = input.id ?? ID6.create();
160
160
  const existing = yield* db.select({ provider: WorkspaceTable2.provider }).from(WorkspaceTable2).where(eq(WorkspaceTable2.id, workspaceID)).get().pipe(Effect.orDie);
161
161
  if (existing) {
162
162
  if (existing.provider === input.provider)
@@ -221,6 +221,6 @@ var layer = (options) => Layer.effect(Service58, Effect.gen(function* () {
221
221
  })
222
222
  });
223
223
  }));
224
- var node60 = configured8();
224
+ var node63 = configured10();
225
225
 
226
- export { ID5, Info10, NotFound3, CreateConflict2, Service58, configured8, node60, exports_workspace };
226
+ export { ID6, Info21, NotFound3, CreateConflict2, Service61, configured10, node63, exports_workspace };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  PositiveInt2
3
- } from "./location-922hggd3.js";
3
+ } from "./schema-922hggd3.js";
4
4
  import {
5
5
  __export
6
- } from "./location-9rqn6x4v.js";
6
+ } from "./schema-9rqn6x4v.js";
7
7
 
8
8
  // src/v1/config/mcp.ts
9
9
  var exports_mcp5 = {};
10
10
  __export(exports_mcp5, {
11
11
  ConfigMCPV1: () => exports_mcp5,
12
- Info: () => Info17,
12
+ Info: () => Info12,
13
13
  Local: () => Local2,
14
14
  OAuth: () => OAuth2,
15
15
  Remote: () => Remote2
@@ -64,6 +64,6 @@ var Remote2 = Schema.Struct({
64
64
  description: "Timeout in ms for MCP server requests. Defaults to 5000 (5 seconds) if not specified."
65
65
  })
66
66
  }).annotate({ identifier: "McpRemoteConfig" });
67
- var Info17 = Schema.Union([Local2, Remote2]).annotate({ discriminator: "type" });
67
+ var Info12 = Schema.Union([Local2, Remote2]).annotate({ discriminator: "type" });
68
68
 
69
- export { Local2, OAuth2, Remote2, Info17, exports_mcp5 };
69
+ export { Local2, OAuth2, Remote2, Info12, exports_mcp5 };
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  __export
3
- } from "./location-9rqn6x4v.js";
3
+ } from "./schema-9rqn6x4v.js";
4
4
 
5
5
  // src/session/runner/index.ts
6
6
  var exports_runner = {};
7
7
  __export(exports_runner, {
8
8
  DrainResult: () => DrainResult2,
9
- Service: () => Service46,
9
+ Service: () => Service38,
10
10
  SessionRunner: () => exports_runner
11
11
  });
12
12
  import { Context, Data } from "effect";
13
13
  var DrainResult2 = Data.taggedEnum();
14
14
 
15
- class Service46 extends Context.Service()("@opencode/SessionRunner") {
15
+ class Service38 extends Context.Service()("@opencode/SessionRunner") {
16
16
  }
17
17
 
18
- export { DrainResult2, Service46, exports_runner };
18
+ export { DrainResult2, Service38, exports_runner };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  which2
3
- } from "./location-qaymkmh1.js";
3
+ } from "./schema-qaymkmh1.js";
4
4
 
5
5
  // src/formatter/builtins.ts
6
6
  import { Effect } from "effect";
7
7
  import { ChildProcess } from "effect/unstable/process";
8
- function make7(input) {
8
+ function make3(input) {
9
9
  const disabled = false;
10
10
  const findExecutable = (name) => which2(name, undefined, input.bin);
11
11
  const findUp = (target) => input.fs.findUp(target, input.directory, input.worktree);
@@ -261,4 +261,4 @@ function isRecord(input) {
261
261
  return Boolean(input && typeof input === "object" && !Array.isArray(input));
262
262
  }
263
263
 
264
- export { make7 };
264
+ export { make3 };
@@ -1,28 +1,28 @@
1
1
  import {
2
- ID12,
2
+ ID13,
3
3
  mergeOverlay2
4
- } from "./location-z1cdyrqr.js";
4
+ } from "./schema-qw1f8ej3.js";
5
5
  import {
6
- ID11,
6
+ ID12,
7
7
  VariantID2,
8
- Info25,
8
+ Info26,
9
9
  compatibility2
10
- } from "./location-yz4rntjy.js";
10
+ } from "./schema-evs9c0ef.js";
11
11
  import {
12
12
  __export
13
- } from "./location-9rqn6x4v.js";
13
+ } from "./schema-9rqn6x4v.js";
14
14
 
15
15
  // src/modal/models.ts
16
- var exports_models2 = {};
17
- __export(exports_models2, {
18
- ModalModels: () => exports_models2,
19
- derive: () => derive3,
20
- get: () => get3,
21
- load: () => load3
16
+ var exports_models = {};
17
+ __export(exports_models, {
18
+ ModalModels: () => exports_models,
19
+ derive: () => derive2,
20
+ get: () => get2,
21
+ load: () => load2
22
22
  });
23
23
  import { Money } from "@opencode/schema/money";
24
24
  import { Option, Schema } from "effect";
25
- var providerID = ID12.make("modal");
25
+ var providerID = ID13.make("modal");
26
26
  var ReasoningOption = Schema.Struct({
27
27
  type: Schema.Literal("effort"),
28
28
  values: Schema.Array(Schema.NullOr(Schema.String))
@@ -54,10 +54,10 @@ var RemoteModel = Schema.Struct({
54
54
  var Response = Schema.Struct({ data: Schema.Array(Schema.Unknown) });
55
55
  var decodeResponse = Schema.decodeUnknownSync(Response);
56
56
  var decodeModel = Schema.decodeUnknownOption(RemoteModel);
57
- async function get3(baseURL, apiKey, existing) {
58
- return derive3(baseURL, await load3(baseURL, apiKey), existing);
57
+ async function get2(baseURL, apiKey, existing) {
58
+ return derive2(baseURL, await load2(baseURL, apiKey), existing);
59
59
  }
60
- async function load3(baseURL, apiKey) {
60
+ async function load2(baseURL, apiKey) {
61
61
  const response = await fetch(`${baseURL.replace(/\/+$/, "")}/models`, {
62
62
  headers: {
63
63
  Authorization: `Bearer ${apiKey}`
@@ -71,12 +71,12 @@ async function load3(baseURL, apiKey) {
71
71
  return model ? [model] : [];
72
72
  });
73
73
  }
74
- function derive3(baseURL, remote, existing) {
74
+ function derive2(baseURL, remote, existing) {
75
75
  const templates = new Map(existing.map((model) => [model.id, model]));
76
76
  const result = new Map;
77
77
  for (const item of remote) {
78
- const template = templates.get(ID11.make(item.base_model_id ?? item.hugging_face_id ?? item.id));
79
- const id = ID11.make(item.id);
78
+ const template = templates.get(ID12.make(item.base_model_id ?? item.hugging_face_id ?? item.id));
79
+ const id = ID12.make(item.id);
80
80
  result.set(id, build(id, item, baseURL, template));
81
81
  }
82
82
  return result;
@@ -94,10 +94,10 @@ function limit(value, fallback) {
94
94
  function build(id, remote, baseURL, previous) {
95
95
  const cost = previous?.cost[0];
96
96
  const input = previous?.limit.input;
97
- return Info25.make({
98
- ...Info25.default(providerID, id),
97
+ return Info26.make({
98
+ ...Info26.default(providerID, id),
99
99
  id,
100
- modelID: ID11.make(remote.id),
100
+ modelID: ID12.make(remote.id),
101
101
  providerID,
102
102
  name: remote.name ?? previous?.name ?? remote.id,
103
103
  family: previous?.family,
@@ -144,4 +144,4 @@ function variants(remote) {
144
144
  return [...seen.values()];
145
145
  }
146
146
 
147
- export { get3, load3, derive3, exports_models2 };
147
+ export { get2, load2, derive2, exports_models };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./location-9rqn6x4v.js";
3
+ } from "./schema-9rqn6x4v.js";
4
4
 
5
5
  // src/config/watch.ts
6
6
  var exports_watch = {};
@@ -1,18 +1,18 @@
1
1
  import {
2
- Service49
3
- } from "./location-c8bydgjz.js";
2
+ Service41
3
+ } from "./schema-vqfzq50h.js";
4
4
  import {
5
5
  awaitActivation2
6
- } from "./location-n95b3jav.js";
6
+ } from "./schema-v1faaxn9.js";
7
7
  import {
8
- Service42
9
- } from "./location-e6asg1wm.js";
8
+ Service30
9
+ } from "./schema-9f1sykhs.js";
10
10
  import {
11
11
  unavailable2
12
- } from "./location-5ekn9679.js";
12
+ } from "./schema-vzs5sf6e.js";
13
13
  import {
14
14
  __export
15
- } from "./location-9rqn6x4v.js";
15
+ } from "./schema-9rqn6x4v.js";
16
16
 
17
17
  // src/session/shell.ts
18
18
  var exports_shell3 = {};
@@ -22,8 +22,8 @@ __export(exports_shell3, {
22
22
  });
23
23
  import { Effect } from "effect";
24
24
  var start2 = Effect.fn("SessionShell.start")(function* (input) {
25
- const instances = yield* Service49;
26
- const shell = yield* awaitActivation2.pipe(Effect.andThen(Service42), instances.provide(input.session));
25
+ const instances = yield* Service41;
26
+ const shell = yield* awaitActivation2.pipe(Effect.andThen(Service30), instances.provide(input.session));
27
27
  const info = yield* shell.create({
28
28
  command: input.command,
29
29
  cwd: input.session.location.directory,
@@ -1,33 +1,36 @@
1
1
  import {
2
2
  key2
3
- } from "./location-4dgbcxzg.js";
3
+ } from "./schema-h6r3nrb9.js";
4
4
  import {
5
- Service81
6
- } from "./location-2ys44scz.js";
5
+ Service82
6
+ } from "./schema-cmsm0fmq.js";
7
7
  import {
8
8
  OAuth3,
9
9
  Event19
10
- } from "./location-t880hhr6.js";
10
+ } from "./schema-h3v3gq1k.js";
11
11
  import {
12
- ID13,
12
+ ID14,
13
13
  MethodID2
14
- } from "./location-gbece2fh.js";
14
+ } from "./schema-6xg4rx5y.js";
15
15
  import {
16
- ID12,
16
+ ID13,
17
17
  aisdk2,
18
18
  mergeOverlay2,
19
- Service74
20
- } from "./location-z1cdyrqr.js";
19
+ Service75
20
+ } from "./schema-qw1f8ej3.js";
21
21
  import {
22
- ID11
23
- } from "./location-yz4rntjy.js";
22
+ ID12
23
+ } from "./schema-evs9c0ef.js";
24
24
  import {
25
- load2,
26
- derive2
27
- } from "./location-t5z4ehj3.js";
25
+ load3,
26
+ derive3
27
+ } from "./schema-fze10tzj.js";
28
28
  import {
29
29
  useragent2
30
- } from "./location-apd0xxcy.js";
30
+ } from "./schema-21fjxxq6.js";
31
+ import {
32
+ ID10
33
+ } from "./schema-av5dvdst.js";
31
34
 
32
35
  // src/plugin/provider/github-copilot.ts
33
36
  import { Effect, Option, Schema, Semaphore, Stream } from "effect";
@@ -59,7 +62,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
59
62
  var JsonBody = Schema.fromJsonString(Schema.Unknown);
60
63
  var decodeBody = Schema.decodeUnknownOption(JsonBody);
61
64
  var oauth = (app) => ({
62
- integrationID: ID13.make("github-copilot"),
65
+ integrationID: ID14.make("github-copilot"),
63
66
  method: {
64
67
  id: methodID,
65
68
  type: "oauth",
@@ -157,8 +160,8 @@ var oauth = (app) => ({
157
160
  var GithubCopilotPlugin2 = define({
158
161
  id: "opencode.provider.github.copilot",
159
162
  effect: Effect.fn(function* (ctx) {
160
- const providers = yield* Service74;
161
- const bus = yield* Service81;
163
+ const providers = yield* Service75;
164
+ const bus = yield* Service82;
162
165
  const loading = Semaphore.makeUnsafe(1);
163
166
  const loaded = {};
164
167
  const load = Effect.fn("GithubCopilotPlugin.load")(function* () {
@@ -168,14 +171,15 @@ var GithubCopilotPlugin2 = define({
168
171
  })) : undefined;
169
172
  if (credential?.type !== "oauth") {
170
173
  loaded.baseURL = undefined;
174
+ loaded.token = undefined;
171
175
  loaded.models = undefined;
172
176
  loaded.connection = undefined;
173
177
  return;
174
178
  }
175
179
  const url = copilotBaseURL2(credential.metadata) ?? baseURL();
176
- const provider = yield* providers.get(ID12.githubCopilot);
180
+ const provider = yield* providers.get(ID13.githubCopilot);
177
181
  const remote = yield* Effect.tryPromise({
178
- try: () => load2(url, {
182
+ try: () => load3(url, {
179
183
  ...provider?.headers,
180
184
  Authorization: `Bearer ${credential.refresh}`,
181
185
  "User-Agent": useragent2(ctx.app),
@@ -186,6 +190,7 @@ var GithubCopilotPlugin2 = define({
186
190
  if (key2(connection) !== key2(yield* ctx.integration.connection.active("github-copilot")))
187
191
  return;
188
192
  loaded.baseURL = url;
193
+ loaded.token = credential.refresh;
189
194
  loaded.models = remote;
190
195
  loaded.connection = connection;
191
196
  });
@@ -194,13 +199,13 @@ var GithubCopilotPlugin2 = define({
194
199
  editor.method.update(oauth(ctx.app));
195
200
  });
196
201
  yield* ctx.provider.transform((evt) => {
197
- const item = evt.get(ID12.githubCopilot);
202
+ const item = evt.get(ID13.githubCopilot);
198
203
  if (!item)
199
204
  return;
200
205
  if (loaded.models) {
201
206
  evt.add({
202
207
  info: item.provider,
203
- models: Array.from(derive2(loaded.baseURL ?? baseURL(), loaded.models, Array.from(item.models.values())).values()),
208
+ models: Array.from(derive3(loaded.baseURL ?? baseURL(), loaded.models, Array.from(item.models.values())).values()),
204
209
  sourceConnection: loaded.connection
205
210
  });
206
211
  return;
@@ -214,17 +219,17 @@ var GithubCopilotPlugin2 = define({
214
219
  }
215
220
  });
216
221
  yield* ctx.model.transform((models) => {
217
- if (models.get(ID12.githubCopilot, ID11.make("gpt-5-chat-latest"))) {
218
- models.update(ID12.githubCopilot, ID11.make("gpt-5-chat-latest"), (model) => {
222
+ if (models.get(ID13.githubCopilot, ID12.make("gpt-5-chat-latest"))) {
223
+ models.update(ID13.githubCopilot, ID12.make("gpt-5-chat-latest"), (model) => {
219
224
  model.enabled = false;
220
225
  });
221
226
  }
222
227
  });
223
228
  const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
224
- yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID13.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
229
+ yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
225
230
  yield* refresh().pipe(Effect.forkScoped);
226
231
  yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
227
- if (evt.model.providerID !== ID12.githubCopilot)
232
+ if (evt.model.providerID !== ID13.githubCopilot)
228
233
  return;
229
234
  if (evt.package !== "@ai-sdk/github-copilot")
230
235
  return;
@@ -233,7 +238,7 @@ var GithubCopilotPlugin2 = define({
233
238
  evt.sdk = mod.createOpenaiCompatible(evt.options);
234
239
  }));
235
240
  yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
236
- if (evt.model.providerID !== ID12.githubCopilot)
241
+ if (evt.model.providerID !== ID13.githubCopilot)
237
242
  return;
238
243
  const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
239
244
  return;
@@ -243,9 +248,26 @@ var GithubCopilotPlugin2 = define({
243
248
  evt.headers["X-Interaction-Id"] = evt.sessionID;
244
249
  if (interaction !== "conversation-agent")
245
250
  evt.headers["x-initiator"] = "agent";
246
- }), { providerID: ID12.githubCopilot });
251
+ }), { providerID: ID13.githubCopilot });
252
+ yield* ctx.session.hook("title", (evt) => Effect.gen(function* () {
253
+ if (evt.model.providerID !== ID13.githubCopilot)
254
+ return;
255
+ if (!loaded.baseURL || !loaded.token || !loaded.models)
256
+ return;
257
+ const agent = yield* ctx.agent.get({ agentID: ID10.make("title") }).pipe(Effect.orElseSucceed(() => {
258
+ return;
259
+ }));
260
+ if (agent?.data.model)
261
+ return;
262
+ const model = utilityTitleModels2.find((id) => loaded.models?.has(id));
263
+ if (!model)
264
+ return;
265
+ evt.result = yield* utilityTitle2({ baseURL: loaded.baseURL, token: loaded.token, model, app: ctx.app }, evt).pipe(Effect.tapError((cause) => Effect.logDebug("Copilot utility title failed", { model, cause })), Effect.orElseSucceed(() => {
266
+ return;
267
+ }));
268
+ }), { providerID: ID13.githubCopilot });
247
269
  yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
248
- if (evt.model.providerID !== ID12.githubCopilot)
270
+ if (evt.model.providerID !== ID13.githubCopilot)
249
271
  return;
250
272
  const token = evt.request.headers.get("x-api-key");
251
273
  if (!token)
@@ -253,9 +275,9 @@ var GithubCopilotPlugin2 = define({
253
275
  const text = yield* Effect.promise(() => evt.request.clone().text());
254
276
  const body = Option.getOrUndefined(decodeBody(text));
255
277
  applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
256
- }), { providerID: ID12.githubCopilot });
278
+ }), { providerID: ID13.githubCopilot });
257
279
  yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
258
- if (evt.model.providerID !== ID12.githubCopilot)
280
+ if (evt.model.providerID !== ID13.githubCopilot)
259
281
  return;
260
282
  if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
261
283
  evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
@@ -270,8 +292,9 @@ var GithubCopilotPlugin2 = define({
270
292
  return;
271
293
  }
272
294
  const id = evt.model.modelID ?? evt.model.id;
273
- const match = /^gpt-(\d+)/.exec(id);
274
- evt.language = match && Number(match[1]) >= 5 && !id.startsWith("gpt-5-mini") ? evt.sdk.responses(id) : evt.sdk.chat(id);
295
+ const gpt = /^gpt-(\d+)/.exec(id);
296
+ const responses = gpt !== null && Number(gpt[1]) >= 5 && !id.startsWith("gpt-5-mini") || id.startsWith("grok-") || id.startsWith("gemini-") || id.startsWith("mai-code-");
297
+ evt.language = responses ? evt.sdk.responses(id) : evt.sdk.chat(id);
275
298
  }));
276
299
  })
277
300
  });
@@ -319,6 +342,51 @@ function request(url, init) {
319
342
  catch: (cause) => cause
320
343
  });
321
344
  }
345
+ var utilityTitleModels2 = ["gpt-4o-mini"];
346
+ var UtilityCompletion = Schema.Struct({
347
+ choices: Schema.Array(Schema.Struct({ message: Schema.Struct({ content: Schema.NullOr(Schema.String) }) }))
348
+ });
349
+ var decodeUtilityCompletion = Schema.decodeUnknownEffect(Schema.fromJsonString(UtilityCompletion));
350
+ function utilityTitle2(input, request) {
351
+ const send = input.fetch ?? fetch;
352
+ const text = (parts) => parts.flatMap((part) => part.type === "text" && typeof part.text === "string" ? [part.text] : []).join(`
353
+ `);
354
+ const messages = [
355
+ ...request.system.length ? [{ role: "system", content: text(request.system) }] : [],
356
+ ...request.messages.map((message) => ({ role: message.role, content: text(message.content) }))
357
+ ];
358
+ return Effect.tryPromise({
359
+ try: async (signal) => {
360
+ const response = await send(`${input.baseURL}/chat/completions`, {
361
+ method: "POST",
362
+ signal,
363
+ headers: {
364
+ Authorization: `Bearer ${input.token}`,
365
+ "Content-Type": "application/json",
366
+ "User-Agent": useragent2(input.app),
367
+ "X-GitHub-Api-Version": apiVersion,
368
+ "Openai-Intent": "conversation-edits",
369
+ "X-Interaction-Type": "agent-session-name-generation",
370
+ "X-Interaction-Id": request.sessionID,
371
+ "x-initiator": "agent"
372
+ },
373
+ body: JSON.stringify({
374
+ model: input.model,
375
+ messages,
376
+ stream: false,
377
+ ...typeof request.options.maxTokens === "number" ? { max_tokens: request.options.maxTokens } : {}
378
+ })
379
+ });
380
+ if (!response.ok)
381
+ throw new Error(`Utility title request failed: ${response.status}`);
382
+ return response.text();
383
+ },
384
+ catch: (cause) => cause
385
+ }).pipe(Effect.timeout("20 seconds"), Effect.flatMap(decodeUtilityCompletion), Effect.flatMap((completion) => {
386
+ const title = completion.choices[0]?.message.content?.trim();
387
+ return title ? Effect.succeed(title) : Effect.fail(new Error("Utility title response was empty"));
388
+ }));
389
+ }
322
390
  function copilotFetch2(token, upstream, app) {
323
391
  const send = upstream ?? fetch;
324
392
  return async (input, init) => {
@@ -385,4 +453,4 @@ function record(input) {
385
453
  return typeof input === "object" && input !== null && !Array.isArray(input);
386
454
  }
387
455
 
388
- export { GithubCopilotPlugin2, copilotEntitlementError2, copilotBaseURL2, copilotFetch2, interactionType2 };
456
+ export { GithubCopilotPlugin2, copilotEntitlementError2, copilotBaseURL2, utilityTitleModels2, utilityTitle2, copilotFetch2, interactionType2 };
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./location-922hggd3.js";
3
+ } from "./schema-922hggd3.js";
4
4
  import {
5
5
  root2
6
- } from "./location-z5qed6cr.js";
6
+ } from "./schema-sm1zfatk.js";
7
7
  import {
8
- Service78,
9
- node82
10
- } from "./location-8s04dv6n.js";
8
+ Service79,
9
+ node83
10
+ } from "./schema-wxnc2egh.js";
11
11
  import {
12
- Service64,
12
+ Service65,
13
13
  node68
14
- } from "./location-cje11ec7.js";
14
+ } from "./schema-drgwwxwg.js";
15
15
  import {
16
16
  __export
17
- } from "./location-9rqn6x4v.js";
17
+ } from "./schema-9rqn6x4v.js";
18
18
 
19
19
  // src/file-access.ts
20
20
  var exports_file_access = {};
@@ -22,9 +22,9 @@ __export(exports_file_access, {
22
22
  FileAccess: () => exports_file_access,
23
23
  Kind: () => Kind2,
24
24
  ResolveInput: () => ResolveInput2,
25
- Service: () => Service15,
25
+ Service: () => Service35,
26
26
  externalDirectoryPermission: () => externalDirectoryPermission2,
27
- node: () => node17,
27
+ node: () => node38,
28
28
  resolvePath: () => resolvePath2
29
29
  });
30
30
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -43,7 +43,7 @@ var externalDirectoryPermission2 = (input) => ({
43
43
  save: [input.save]
44
44
  });
45
45
 
46
- class Service15 extends Context.Service()("@opencode/FileAccess") {
46
+ class Service35 extends Context.Service()("@opencode/FileAccess") {
47
47
  }
48
48
  var resolvePath2 = (directory, input, home = Global.Path.home) => {
49
49
  const normalized = FSUtil.windowsPath(input);
@@ -55,10 +55,10 @@ var invocation = (context) => ({
55
55
  agent: context.agent,
56
56
  source: { type: "tool", messageID: context.messageID, id: context.id }
57
57
  });
58
- var layer = Layer.effect(Service15, Effect.gen(function* () {
58
+ var layer = Layer.effect(Service35, Effect.gen(function* () {
59
59
  const fs = yield* FSUtil.Service;
60
- const location = yield* Service78;
61
- const permission = yield* Service64;
60
+ const location = yield* Service79;
61
+ const permission = yield* Service65;
62
62
  const resolve = Effect.fn("FileAccess.resolve")(function* (input) {
63
63
  const absolute = AbsolutePath2.make(resolvePath2(location.directory, input.path));
64
64
  const worktree = path.resolve(location.project.directory);
@@ -107,8 +107,8 @@ var layer = Layer.effect(Service15, Effect.gen(function* () {
107
107
  });
108
108
  return target;
109
109
  });
110
- return Service15.of({ resolve, authorizeExternal, authorizeRead });
110
+ return Service35.of({ resolve, authorizeExternal, authorizeRead });
111
111
  }));
112
- var node17 = makeLocationNode({ service: Service15, layer, deps: [FSUtil.node, node82, node68] });
112
+ var node38 = makeLocationNode({ service: Service35, layer, deps: [FSUtil.node, node83, node68] });
113
113
 
114
- export { Kind2, ResolveInput2, externalDirectoryPermission2, Service15, resolvePath2, node17, exports_file_access };
114
+ export { Kind2, ResolveInput2, externalDirectoryPermission2, Service35, resolvePath2, node38, exports_file_access };