@opencode/core 2.0.15 → 2.0.16

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 (811) 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-tb273c1p.js → event-logger-01ps9m3h.js} +32 -32
  8. package/dist/chunks/{location-exkxrshv.js → event-logger-03q3r71s.js} +18 -18
  9. package/dist/chunks/{location-2p24pe68.js → event-logger-089g9g2x.js} +46 -46
  10. package/dist/chunks/{location-s9r6cqpa.js → event-logger-0bb1qdg3.js} +3 -3
  11. package/dist/chunks/{location-s0esgemt.js → event-logger-0br3sbwn.js} +13 -9
  12. package/dist/chunks/{location-8ec97xvv.js → event-logger-0f3a36n3.js} +9 -9
  13. package/dist/chunks/{location-z5qed6cr.js → event-logger-0fnt4z85.js} +26 -26
  14. package/dist/chunks/{location-sj7g5k2t.js → event-logger-0gz4y0yt.js} +5 -5
  15. package/dist/chunks/{location-vp932wpr.js → event-logger-0jshnw7f.js} +16 -16
  16. package/dist/chunks/{location-t5ewrtsm.js → event-logger-0p1t7cwm.js} +9 -9
  17. package/dist/chunks/{location-gbece2fh.js → event-logger-0p8kebmq.js} +26 -26
  18. package/dist/chunks/{location-0paq2nw3.js → event-logger-0paq2nw3.js} +1 -1
  19. package/dist/chunks/{location-s2y6cwc9.js → event-logger-0yt7yd1j.js} +33 -33
  20. package/dist/chunks/{location-vs030v48.js → event-logger-11k6dxds.js} +4 -4
  21. package/dist/chunks/{location-qyagpvrp.js → event-logger-132pb4yq.js} +29 -29
  22. package/dist/chunks/{location-8v97fgxy.js → event-logger-1bry463v.js} +14 -14
  23. package/dist/chunks/{location-1dazxqgg.js → event-logger-1dazxqgg.js} +2 -2
  24. package/dist/chunks/{location-mmr7bq34.js → event-logger-1p07q0wb.js} +7 -7
  25. package/dist/chunks/{location-mtg5e72x.js → event-logger-1xx7tqhe.js} +11 -11
  26. package/dist/chunks/{location-33w4ejhs.js → event-logger-1ygqh575.js} +6 -6
  27. package/dist/chunks/{location-21r38tys.js → event-logger-21r38tys.js} +1 -1
  28. package/dist/chunks/{location-2402vzrj.js → event-logger-2402vzrj.js} +1 -1
  29. package/dist/chunks/{location-52mpv69t.js → event-logger-27gf4k7j.js} +10 -10
  30. package/dist/chunks/{location-tdkr4fjp.js → event-logger-28ehbsev.js} +41 -41
  31. package/dist/chunks/{location-2a5m3afh.js → event-logger-2a5m3afh.js} +1 -1
  32. package/dist/chunks/{location-4sn99hha.js → event-logger-2fgn2we9.js} +5 -5
  33. package/dist/chunks/{location-dpwed560.js → event-logger-2jnnq67w.js} +6 -6
  34. package/dist/chunks/{location-7dqw4kz8.js → event-logger-2k8khapm.js} +5 -5
  35. package/dist/chunks/{location-7tvzmp5f.js → event-logger-2ntmd471.js} +15 -15
  36. package/dist/chunks/{location-db8cpbv4.js → event-logger-2qt06f8c.js} +11 -11
  37. package/dist/chunks/{location-w3z8akkh.js → event-logger-2ye00mg1.js} +46 -45
  38. package/dist/chunks/{location-qmr67b2d.js → event-logger-32b2ehkd.js} +13 -13
  39. package/dist/chunks/{location-s92vr3t8.js → event-logger-36wx3dpn.js} +32 -32
  40. package/dist/chunks/{location-31723wk9.js → event-logger-39nw5ydc.js} +17 -17
  41. package/dist/chunks/{location-zm32ajz2.js → event-logger-3c9ypvct.js} +7 -7
  42. package/dist/chunks/{location-3fc6dm20.js → event-logger-3fc6dm20.js} +1 -1
  43. package/dist/chunks/{location-3hepkmqq.js → event-logger-3hepkmqq.js} +1 -1
  44. package/dist/chunks/{location-0k6bkn72.js → event-logger-3kx3nt6q.js} +3 -3
  45. package/dist/chunks/{location-3smtnn6g.js → event-logger-3smtnn6g.js} +1 -1
  46. package/dist/chunks/{location-3tvqynh2.js → event-logger-3tvqynh2.js} +1 -1
  47. package/dist/chunks/{location-xhyq1prs.js → event-logger-3xw1mt3t.js} +4 -4
  48. package/dist/chunks/{location-3zsf4n22.js → event-logger-3zsf4n22.js} +1 -1
  49. package/dist/chunks/{location-g98nad6a.js → event-logger-3zvr4ntj.js} +17 -17
  50. package/dist/chunks/{location-a6zkqr4m.js → event-logger-4c7cwrwt.js} +15 -15
  51. package/dist/chunks/{location-t880hhr6.js → event-logger-4nsq4evv.js} +31 -31
  52. package/dist/chunks/{location-2ys44scz.js → event-logger-4rzfcrmm.js} +12 -12
  53. package/dist/chunks/{location-g1sxm558.js → event-logger-4w5f3qm5.js} +8 -8
  54. package/dist/chunks/{location-5em5jamf.js → event-logger-4x2e8ejb.js} +6 -6
  55. package/dist/chunks/{location-qqeeq2t9.js → event-logger-57b9ws8p.js} +4 -4
  56. package/dist/chunks/{location-e5sbd26s.js → event-logger-57p7edxn.js} +4 -4
  57. package/dist/chunks/{location-5daktx2q.js → event-logger-5daktx2q.js} +1 -1
  58. package/dist/chunks/{location-512dnrra.js → event-logger-5dwbhd1q.js} +9 -9
  59. package/dist/chunks/{location-b3bw2nfz.js → event-logger-5eerdhhh.js} +5 -5
  60. package/dist/chunks/{location-5ekn9679.js → event-logger-5ekn9679.js} +1 -1
  61. package/dist/chunks/{location-e3qxr5gk.js → event-logger-5qd3pb7m.js} +2 -2
  62. package/dist/chunks/{location-r1vfcwav.js → event-logger-5sgwv95d.js} +21 -21
  63. package/dist/chunks/{location-5t3nmthw.js → event-logger-5t3nmthw.js} +2 -2
  64. package/dist/chunks/{location-vjn4w5j0.js → event-logger-5v0fdq8j.js} +12 -12
  65. package/dist/chunks/{location-mvksx64m.js → event-logger-5xpznt2d.js} +4 -4
  66. package/dist/chunks/{location-zgw6fgh0.js → event-logger-63ar50w9.js} +5 -5
  67. package/dist/chunks/{location-669tq793.js → event-logger-669tq793.js} +1 -1
  68. package/dist/chunks/event-logger-6kdq0pjd.js +4 -0
  69. package/dist/chunks/{location-6msgmcgs.js → event-logger-6msgmcgs.js} +1 -1
  70. package/dist/chunks/{location-8kc8r484.js → event-logger-6tdwvj9c.js} +33 -33
  71. package/dist/chunks/{location-826nay5f.js → event-logger-6z4ywrmd.js} +41 -41
  72. package/dist/chunks/{location-kx0rdwde.js → event-logger-70n28njg.js} +11 -11
  73. package/dist/chunks/{location-r2cbgwrp.js → event-logger-718xzxc8.js} +13 -13
  74. package/dist/chunks/{location-nmc8s8ga.js → event-logger-747n07b7.js} +15 -15
  75. package/dist/chunks/{location-2n8vgttj.js → event-logger-74wfabdn.js} +24 -24
  76. package/dist/chunks/{location-7bmhse3q.js → event-logger-7bmhse3q.js} +1 -1
  77. package/dist/chunks/{location-pdgv857h.js → event-logger-7f6v5qpp.js} +10 -10
  78. package/dist/chunks/{location-ek44vwmj.js → event-logger-7fqx7jvc.js} +48 -48
  79. package/dist/chunks/{location-2vvgwsdm.js → event-logger-7mwj9qcd.js} +14 -14
  80. package/dist/chunks/{location-hcg5gfqa.js → event-logger-816m4crp.js} +6 -6
  81. package/dist/chunks/{location-vssdr3c7.js → event-logger-8a4ad92b.js} +11 -11
  82. package/dist/chunks/{location-c5nmmnam.js → event-logger-8aahf52h.js} +13 -13
  83. package/dist/chunks/{location-8d7r5vzw.js → event-logger-8d7r5vzw.js} +1 -1
  84. package/dist/chunks/{location-bh4p5r3h.js → event-logger-8h5varp2.js} +8 -8
  85. package/dist/chunks/{location-6jbefxhr.js → event-logger-8m795tf5.js} +14 -14
  86. package/dist/chunks/{location-96dp4j9b.js → event-logger-8xeyrzky.js} +91 -91
  87. package/dist/chunks/{location-np8489tv.js → event-logger-900yt45k.js} +22 -22
  88. package/dist/chunks/{location-pghvqat4.js → event-logger-908dkt5v.js} +12 -12
  89. package/dist/chunks/{location-rnghhd3g.js → event-logger-93w6htg6.js} +10 -10
  90. package/dist/chunks/{location-94ek1h2f.js → event-logger-94ek1h2f.js} +2 -2
  91. package/dist/chunks/{location-yvvvp4gn.js → event-logger-99xay3p1.js} +8 -8
  92. package/dist/chunks/{location-gr2tmdz7.js → event-logger-9agfq1d2.js} +14 -14
  93. package/dist/chunks/{location-7tpcrxhs.js → event-logger-9dvwkvjz.js} +19 -19
  94. package/dist/chunks/{location-zfa7ynd8.js → event-logger-9e4j78a5.js} +5 -5
  95. package/dist/chunks/{location-geebtqnp.js → event-logger-9gj3h84v.js} +7 -7
  96. package/dist/chunks/{location-6sftkhr6.js → event-logger-9n49v3te.js} +19 -19
  97. package/dist/chunks/{location-rk8yrdje.js → event-logger-9t2qpacv.js} +22 -22
  98. package/dist/chunks/{location-y6zcy5jv.js → event-logger-9v66419v.js} +22 -22
  99. package/dist/chunks/{location-4ywqwb3e.js → event-logger-a0s8xvxt.js} +10 -10
  100. package/dist/chunks/{location-m7va1g8x.js → event-logger-a3r4dcrj.js} +2 -2
  101. package/dist/chunks/{location-svhm0fyq.js → event-logger-a52pef7j.js} +4 -4
  102. package/dist/chunks/{location-aaet6srn.js → event-logger-aaet6srn.js} +2 -2
  103. package/dist/chunks/{location-3t63r8vy.js → event-logger-aneqmxfb.js} +8 -8
  104. package/dist/chunks/{location-kpf5aqxw.js → event-logger-aqs1w8sb.js} +10 -10
  105. package/dist/chunks/{location-hypat1yv.js → event-logger-azjsvxqn.js} +3 -3
  106. package/dist/chunks/{location-j8tshh3j.js → event-logger-b2aqqavs.js} +53 -41
  107. package/dist/chunks/{location-3yfr3ttv.js → event-logger-b4285gp2.js} +9 -9
  108. package/dist/chunks/{location-78jgv2cz.js → event-logger-b4kkqjxq.js} +1 -1
  109. package/dist/chunks/{location-b6gygkdw.js → event-logger-b6gygkdw.js} +2 -2
  110. package/dist/chunks/{location-306693xq.js → event-logger-bgvszk91.js} +22 -22
  111. package/dist/chunks/{location-h5gt9chz.js → event-logger-bmg501ry.js} +25 -25
  112. package/dist/chunks/event-logger-bnwmzjfq.js +26 -0
  113. package/dist/chunks/{location-hafm9y5m.js → event-logger-bs4se5xz.js} +31 -30
  114. package/dist/chunks/{location-m9g140gf.js → event-logger-bsqx64w4.js} +5 -5
  115. package/dist/chunks/{location-jzje5vrp.js → event-logger-btgkjvyx.js} +19 -19
  116. package/dist/chunks/{location-bdmzfegv.js → event-logger-bv1pwt2s.js} +30 -30
  117. package/dist/chunks/event-logger-by5v678g.js +18 -0
  118. package/dist/chunks/{location-2qp6y8xf.js → event-logger-c78bbtc9.js} +5 -5
  119. package/dist/chunks/{location-z1cdyrqr.js → event-logger-c99wwxqk.js} +29 -29
  120. package/dist/chunks/{location-3a58h9a4.js → event-logger-chazxwvm.js} +74 -74
  121. package/dist/chunks/{location-xhk8n0yf.js → event-logger-ck33pjpx.js} +11 -11
  122. package/dist/chunks/{location-ckecvw8r.js → event-logger-ckecvw8r.js} +2 -2
  123. package/dist/chunks/{location-vyrd71eq.js → event-logger-ckfwh0ft.js} +11 -11
  124. package/dist/chunks/{location-rfbkd05a.js → event-logger-cmc17df4.js} +5 -5
  125. package/dist/chunks/{location-g0445xdp.js → event-logger-cmwkp3r5.js} +4 -4
  126. package/dist/chunks/{location-kwj5scwb.js → event-logger-cyr3g3e5.js} +16 -16
  127. package/dist/chunks/{location-kxqn5q5s.js → event-logger-d4sk7cm2.js} +18 -18
  128. package/dist/chunks/{location-8py9cb08.js → event-logger-d6pm2gat.js} +1 -1
  129. package/dist/chunks/{location-a881zpfh.js → event-logger-dda0p7y7.js} +9 -9
  130. package/dist/chunks/{location-3rbdcc49.js → event-logger-ddtyr2hh.js} +25 -25
  131. package/dist/chunks/{location-pvat10bb.js → event-logger-deqzrk0a.js} +11 -11
  132. package/dist/chunks/{location-18s9r5gn.js → event-logger-dg2cj1yd.js} +4 -4
  133. package/dist/chunks/{location-x2z8ar3h.js → event-logger-dntn16f7.js} +26 -22
  134. package/dist/chunks/{location-jwcy2c2z.js → event-logger-dpkg50ah.js} +4 -4
  135. package/dist/chunks/{location-xq3yw8dy.js → event-logger-dsvbxzrp.js} +81 -75
  136. package/dist/chunks/{location-0tmnpbjy.js → event-logger-dyzt9za5.js} +36 -36
  137. package/dist/chunks/{location-04mw5jg5.js → event-logger-e0k7xjnp.js} +3 -3
  138. package/dist/chunks/{location-7pqgzsme.js → event-logger-e33fphm7.js} +13 -13
  139. package/dist/chunks/{location-y7as1a2d.js → event-logger-ec6m7bjn.js} +39 -39
  140. package/dist/chunks/{location-xcrt1tny.js → event-logger-ef35abme.js} +33 -33
  141. package/dist/chunks/{location-ef5x83kb.js → event-logger-ef5x83kb.js} +1 -1
  142. package/dist/chunks/{location-1dangqhw.js → event-logger-eneefzjq.js} +8 -8
  143. package/dist/chunks/{location-hd8qv2ty.js → event-logger-enywfw21.js} +6 -6
  144. package/dist/chunks/{location-erw5rpbs.js → event-logger-erw5rpbs.js} +2 -2
  145. package/dist/chunks/{location-etq0c3wd.js → event-logger-etq0c3wd.js} +1 -1
  146. package/dist/chunks/{location-c6rpq5f1.js → event-logger-f27dyjrk.js} +46 -46
  147. package/dist/chunks/{location-cf8rhbja.js → event-logger-f2947pfg.js} +33 -33
  148. package/dist/chunks/{location-qpk3e0rf.js → event-logger-f9q7adw3.js} +19 -19
  149. package/dist/chunks/event-logger-fh4s07nh.js +252 -0
  150. package/dist/chunks/{location-pmh8g6yq.js → event-logger-fkz383g5.js} +11 -11
  151. package/dist/chunks/{location-jfqtm2ew.js → event-logger-fm2qvscf.js} +4 -4
  152. package/dist/chunks/{location-8s04dv6n.js → event-logger-fv5sjpfb.js} +14 -14
  153. package/dist/chunks/{location-n9awvp43.js → event-logger-fxq78srh.js} +33 -33
  154. package/dist/chunks/{location-kk00bynn.js → event-logger-g190xswt.js} +21 -21
  155. package/dist/chunks/{location-rhjkpe6e.js → event-logger-g43vs6pk.js} +5 -5
  156. package/dist/chunks/{location-dkgr3p4r.js → event-logger-g8vnyhk4.js} +8 -8
  157. package/dist/chunks/{location-0kxfmfxf.js → event-logger-gbhtmfkn.js} +13 -13
  158. package/dist/chunks/{location-gd4qta3r.js → event-logger-gd4qta3r.js} +1 -1
  159. package/dist/chunks/{location-nf6tfn93.js → event-logger-gmc59x4c.js} +6 -6
  160. package/dist/chunks/{location-gv6a8nnw.js → event-logger-gv6a8nnw.js} +2 -2
  161. package/dist/chunks/{location-saawvakp.js → event-logger-gyfpy8sq.js} +10 -10
  162. package/dist/chunks/{location-4dgbcxzg.js → event-logger-h6r3nrb9.js} +4 -4
  163. package/dist/chunks/{location-h6vf3j39.js → event-logger-h6vf3j39.js} +1 -1
  164. package/dist/chunks/{location-yq14pbr7.js → event-logger-hbyhqfhs.js} +5 -5
  165. package/dist/chunks/{location-c6mn7xyg.js → event-logger-he6tcr5q.js} +27 -27
  166. package/dist/chunks/{location-8ffpk8ek.js → event-logger-hef66yfx.js} +26 -26
  167. package/dist/chunks/{location-qdm92ydp.js → event-logger-hwk227gb.js} +37 -37
  168. package/dist/chunks/{location-tqzp8tzb.js → event-logger-j0pg6dsa.js} +5 -5
  169. package/dist/chunks/{location-w63jt7y5.js → event-logger-j1np5d6f.js} +23 -23
  170. package/dist/chunks/{location-j56e64zr.js → event-logger-j56e64zr.js} +1 -1
  171. package/dist/chunks/{location-n8c291r7.js → event-logger-j8zzr2am.js} +4 -4
  172. package/dist/chunks/{location-aa2h7fmm.js → event-logger-je1vn78e.js} +36 -36
  173. package/dist/chunks/{location-256nx13v.js → event-logger-jexxy024.js} +3 -3
  174. package/dist/chunks/{location-e23w9d35.js → event-logger-jf9anmv7.js} +12 -12
  175. package/dist/chunks/{location-gy60rj0z.js → event-logger-jgd9see8.js} +17 -17
  176. package/dist/chunks/{location-jftkgdp0.js → event-logger-jjg31dbj.js} +18 -18
  177. package/dist/chunks/{location-jv01nqvq.js → event-logger-jv01nqvq.js} +2 -2
  178. package/dist/chunks/{location-rgtjpwpw.js → event-logger-jww5q7tc.js} +3 -3
  179. package/dist/chunks/{location-t0b0bsey.js → event-logger-jx360mrh.js} +11 -11
  180. package/dist/chunks/{location-n793kqf0.js → event-logger-jzmh272x.js} +10 -10
  181. package/dist/chunks/{location-apd0xxcy.js → event-logger-k36bwha9.js} +11 -11
  182. package/dist/chunks/{location-nzks3jc8.js → event-logger-k3c624dm.js} +3 -3
  183. package/dist/chunks/{location-dagkn99r.js → event-logger-k53npxr2.js} +1 -1
  184. package/dist/chunks/{location-0810149y.js → event-logger-kaaz88r3.js} +16 -16
  185. package/dist/chunks/{location-agc1sn7c.js → event-logger-kc29vnnm.js} +19 -19
  186. package/dist/chunks/{location-ny0mz096.js → event-logger-kmyrg3fm.js} +22 -22
  187. package/dist/chunks/{location-35r86gx7.js → event-logger-m0fa3ej4.js} +2 -2
  188. package/dist/chunks/{location-7w0t4dm2.js → event-logger-m3dqj4zs.js} +12 -12
  189. package/dist/chunks/{location-m3fdjcah.js → event-logger-m3fdjcah.js} +1 -1
  190. package/dist/chunks/{location-etzz3kcr.js → event-logger-m3zza4qd.js} +8 -8
  191. package/dist/chunks/{location-m9w0rfyh.js → event-logger-m9w0rfyh.js} +1 -1
  192. package/dist/chunks/{location-1bbkgx8g.js → event-logger-mhkvc446.js} +3 -3
  193. package/dist/chunks/event-logger-mjt9wwac.js +96 -0
  194. package/dist/chunks/{location-3172pg9v.js → event-logger-msf2edjm.js} +28 -24
  195. package/dist/chunks/{location-fwz8j036.js → event-logger-mxkwqd26.js} +11 -11
  196. package/dist/chunks/{location-fpvyk3ge.js → event-logger-n1jgwtn1.js} +29 -29
  197. package/dist/chunks/{location-fb3n4k1c.js → event-logger-n300db4g.js} +5 -5
  198. package/dist/chunks/{location-ajdjch6h.js → event-logger-n37c4crj.js} +9 -9
  199. package/dist/chunks/{location-8fyqdzgp.js → event-logger-n4xm4h5w.js} +11 -11
  200. package/dist/chunks/{location-1twdgbjf.js → event-logger-n9sgmesv.js} +16 -16
  201. package/dist/chunks/{location-r99pq75w.js → event-logger-najthaah.js} +24 -24
  202. package/dist/chunks/{location-e6asg1wm.js → event-logger-np6mkd1m.js} +50 -50
  203. package/dist/chunks/{location-6z9mwsmt.js → event-logger-nt0v7t0n.js} +24 -24
  204. package/dist/chunks/{location-qfe26hq3.js → event-logger-nyvq8r07.js} +82 -82
  205. package/dist/chunks/{location-cje11ec7.js → event-logger-p2qeza37.js} +43 -43
  206. package/dist/chunks/{location-6anwy9fs.js → event-logger-pf2hb43r.js} +4 -4
  207. package/dist/chunks/{location-qnqm58w1.js → event-logger-pft9k85v.js} +13 -13
  208. package/dist/chunks/{location-vh4x57nh.js → event-logger-pgkvq3r8.js} +32 -32
  209. package/dist/chunks/{location-pjvnvgmy.js → event-logger-pjvnvgmy.js} +1 -1
  210. package/dist/chunks/{location-pknna89w.js → event-logger-pknna89w.js} +1 -1
  211. package/dist/chunks/{location-an7cqtb7.js → event-logger-pmr4s4kc.js} +4 -4
  212. package/dist/chunks/{location-k906dc9m.js → event-logger-pp173efe.js} +16 -16
  213. package/dist/chunks/{location-w747ydy6.js → event-logger-pxag7cab.js} +20 -20
  214. package/dist/chunks/{location-ae4pezjx.js → event-logger-pzk5trfr.js} +55 -55
  215. package/dist/chunks/{location-cxrw2h6h.js → event-logger-q460c3tq.js} +41 -41
  216. package/dist/chunks/{location-3d2kdets.js → event-logger-qanbasbs.js} +9 -9
  217. package/dist/chunks/{location-vxyzwx8s.js → event-logger-qdgkf1bg.js} +8 -8
  218. package/dist/chunks/{location-qg0jgkcp.js → event-logger-qg0jgkcp.js} +2 -2
  219. package/dist/chunks/{location-ft3hqk2c.js → event-logger-qmqgtz8f.js} +9 -9
  220. package/dist/chunks/{location-15y6myyc.js → event-logger-qp6bbb4z.js} +23 -23
  221. package/dist/chunks/{location-qsdy395h.js → event-logger-qsdy395h.js} +1 -1
  222. package/dist/chunks/{location-vbz4mrgg.js → event-logger-qz809afx.js} +33 -33
  223. package/dist/chunks/{location-7yca83g1.js → event-logger-r1g03gg9.js} +14 -14
  224. package/dist/chunks/{location-yp2x3t23.js → event-logger-r8xr0va3.js} +4 -4
  225. package/dist/chunks/{location-rdw6cm16.js → event-logger-rdw6cm16.js} +1 -1
  226. package/dist/chunks/{location-0jgcnqr4.js → event-logger-rf0y6vjb.js} +33 -33
  227. package/dist/chunks/{location-rvhvw5j9.js → event-logger-rt4ems47.js} +171 -171
  228. package/dist/chunks/{location-dhmh7aw6.js → event-logger-rwm5vee1.js} +4 -4
  229. package/dist/chunks/{location-rhjbct0v.js → event-logger-s8d7rejh.js} +4 -4
  230. package/dist/chunks/{location-yt0fqk68.js → event-logger-s8zy8myc.js} +5 -5
  231. package/dist/chunks/{location-92pk5wqe.js → event-logger-shsdp4g3.js} +23 -23
  232. package/dist/chunks/{location-ge3bpktt.js → event-logger-svd3wk3g.js} +15 -15
  233. package/dist/chunks/{location-85skx0n5.js → event-logger-swnqtvke.js} +25 -25
  234. package/dist/chunks/{location-a64frenn.js → event-logger-syzcn7b5.js} +3 -3
  235. package/dist/chunks/{location-wk3hxpq4.js → event-logger-sz2yehtx.js} +17 -17
  236. package/dist/chunks/{location-jgttmm4a.js → event-logger-t71v2ka4.js} +5 -5
  237. package/dist/chunks/{location-tazgh4e4.js → event-logger-tazgh4e4.js} +1 -1
  238. package/dist/chunks/{location-tcezcvh9.js → event-logger-tcezcvh9.js} +1 -1
  239. package/dist/chunks/{location-tdstcens.js → event-logger-tdstcens.js} +1 -1
  240. package/dist/chunks/{location-d6ex932k.js → event-logger-te5g4v54.js} +11 -11
  241. package/dist/chunks/{location-z0aj456m.js → event-logger-tjedn1bk.js} +4 -4
  242. package/dist/chunks/{location-yz4rntjy.js → event-logger-tmqa4ga1.js} +29 -29
  243. package/dist/chunks/event-logger-tncp3d9k.js +507 -0
  244. package/dist/chunks/{location-tvtrv512.js → event-logger-tvtrv512.js} +1 -1
  245. package/dist/chunks/event-logger-twfs5dqp.js +339 -0
  246. package/dist/chunks/{location-c8bydgjz.js → event-logger-v6gb7zv2.js} +6 -6
  247. package/dist/chunks/{location-pxs69nmc.js → event-logger-vamd4fsq.js} +4 -4
  248. package/dist/chunks/{location-veqvce7d.js → event-logger-veqvce7d.js} +1 -1
  249. package/dist/chunks/{location-hvtd657f.js → event-logger-vn3yw2wj.js} +32 -32
  250. package/dist/chunks/{location-t5z4ehj3.js → event-logger-vz8d88kv.js} +22 -22
  251. package/dist/chunks/{location-vzcthcp8.js → event-logger-vzcthcp8.js} +1 -1
  252. package/dist/chunks/{location-neb0pg0h.js → event-logger-w2nj5ptj.js} +5 -5
  253. package/dist/chunks/{location-w3wsvvr9.js → event-logger-w3wsvvr9.js} +1 -1
  254. package/dist/chunks/{location-vdwcy635.js → event-logger-w6y5hf30.js} +15 -15
  255. package/dist/chunks/{location-5dyz4swx.js → event-logger-w8t53nqw.js} +20 -20
  256. package/dist/chunks/{location-jv4eadh7.js → event-logger-wargq46t.js} +5 -5
  257. package/dist/chunks/{location-wd3x2cqz.js → event-logger-wd3x2cqz.js} +2 -2
  258. package/dist/chunks/{location-wd87259q.js → event-logger-wd87259q.js} +1 -1
  259. package/dist/chunks/{location-npk9ncrr.js → event-logger-wqj2xpp0.js} +9 -9
  260. package/dist/chunks/{location-15ywfmbg.js → event-logger-wsb64f9g.js} +21 -21
  261. package/dist/chunks/{location-2prhyday.js → event-logger-wv72qc1v.js} +15 -15
  262. package/dist/chunks/{location-vhv9377y.js → event-logger-ww6x407f.js} +5 -5
  263. package/dist/chunks/{location-x1ezjp6w.js → event-logger-x1ezjp6w.js} +1 -1
  264. package/dist/chunks/{location-vtxr0yy2.js → event-logger-xkntkrq7.js} +3 -3
  265. package/dist/chunks/{location-cdc8dbba.js → event-logger-xvjpp9n9.js} +12 -12
  266. package/dist/chunks/{location-9qc6n929.js → event-logger-xxaqvhcx.js} +29 -29
  267. package/dist/chunks/{location-y1fvbwt7.js → event-logger-y1fvbwt7.js} +1 -1
  268. package/dist/chunks/{location-358yawqv.js → event-logger-y2nf1ewr.js} +19 -19
  269. package/dist/chunks/{location-p9n0sz6q.js → event-logger-y43qwa20.js} +22 -22
  270. package/dist/chunks/{location-eq2jtcfw.js → event-logger-y4q6tv4t.js} +7 -7
  271. package/dist/chunks/{location-4qjz8wfv.js → event-logger-y5rv6h3q.js} +27 -27
  272. package/dist/chunks/{location-c395zvtw.js → event-logger-y87mwaek.js} +19 -19
  273. package/dist/chunks/{location-ygg1f209.js → event-logger-ybhbtxjg.js} +7 -7
  274. package/dist/chunks/{location-r1kjg1tc.js → event-logger-ybshnyry.js} +5 -5
  275. package/dist/chunks/{location-cte9ap30.js → event-logger-yemq3d8b.js} +8 -8
  276. package/dist/chunks/{location-2f7sk49n.js → event-logger-yj0pkhyr.js} +16 -16
  277. package/dist/chunks/{location-dgpq7z8n.js → event-logger-yjmj8nkq.js} +22 -22
  278. package/dist/chunks/{location-yrhqyw5v.js → event-logger-yrhqyw5v.js} +1 -1
  279. package/dist/chunks/{location-s4enseaf.js → event-logger-yrznvahk.js} +2 -2
  280. package/dist/chunks/{location-z07pqspn.js → event-logger-z07pqspn.js} +3 -3
  281. package/dist/chunks/{location-z0bkrqjs.js → event-logger-z0bkrqjs.js} +1 -1
  282. package/dist/chunks/{location-29x78va6.js → event-logger-z63w68vq.js} +6 -6
  283. package/dist/chunks/{location-xfjpae9m.js → event-logger-z7ctwqf8.js} +23 -23
  284. package/dist/chunks/{location-2p5y98w0.js → event-logger-za77p82n.js} +6 -6
  285. package/dist/chunks/{location-zeh9ct20.js → event-logger-zeh9ct20.js} +2 -2
  286. package/dist/chunks/{location-w9gpp3gx.js → event-logger-zehx49jx.js} +35 -34
  287. package/dist/chunks/{location-d2kfejna.js → event-logger-znm218mv.js} +13 -13
  288. package/dist/chunks/{location-zr2ceqn5.js → event-logger-zr2ceqn5.js} +1 -1
  289. package/dist/chunks/{location-2pnnswbv.js → event-logger-zsecex3e.js} +4 -4
  290. package/dist/chunks/{location-3124xjv5.js → event-logger-zxk6ecdw.js} +8 -8
  291. package/dist/chunks/{location-zxq2ej10.js → event-logger-zxq2ej10.js} +1 -1
  292. package/dist/chunks/{location-h6awxmcx.js → event-logger-zz2qg7p3.js} +12 -12
  293. package/dist/codemode/catalog.js +1 -1
  294. package/dist/codemode/instructions.js +3 -3
  295. package/dist/codemode/tool.js +3 -3
  296. package/dist/codemode/web.js +1 -1
  297. package/dist/command.js +83 -83
  298. package/dist/config/discovery.js +82 -82
  299. package/dist/config/markdown.js +1 -1
  300. package/dist/config/normalize.js +106 -106
  301. package/dist/config/plugin/agent.js +123 -123
  302. package/dist/config/plugin/command.js +212 -212
  303. package/dist/config/plugin/compaction.js +160 -160
  304. package/dist/config/plugin/compatibility.js +141 -141
  305. package/dist/config/plugin/entry-observer.js +1 -1
  306. package/dist/config/plugin/formatter.js +124 -124
  307. package/dist/config/plugin/image.js +123 -123
  308. package/dist/config/plugin/instruction.js +90 -90
  309. package/dist/config/plugin/location-watcher.js +123 -123
  310. package/dist/config/plugin/mcp.js +130 -130
  311. package/dist/config/plugin/policy.js +124 -124
  312. package/dist/config/plugin/provider.js +123 -123
  313. package/dist/config/plugin/reference.js +125 -125
  314. package/dist/config/plugin/shell.js +125 -125
  315. package/dist/config/plugin/skill-file.js +102 -102
  316. package/dist/config/plugin/skill.js +144 -144
  317. package/dist/config/plugin/snapshot.js +123 -123
  318. package/dist/config/plugin/source.js +126 -126
  319. package/dist/config/plugin/tool-output.js +125 -125
  320. package/dist/config/plugin/websearch.js +124 -124
  321. package/dist/config/plugin/worktree.js +125 -125
  322. package/dist/config/variable.js +3 -3
  323. package/dist/config/watch.js +1 -1
  324. package/dist/config.js +128 -128
  325. package/dist/credential/sql.js +2 -2
  326. package/dist/credential.js +83 -83
  327. package/dist/database/database.js +66 -66
  328. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  329. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  330. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  331. package/dist/database/drizzle/index.js +15 -15
  332. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  333. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  335. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  336. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  337. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  338. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  339. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  340. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  341. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  342. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  343. package/dist/database/drizzle.js +16 -16
  344. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  345. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  346. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  347. package/dist/database/migration/20260225215848_workspace.js +1 -1
  348. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  349. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  350. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  351. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  352. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  353. package/dist/database/migration/20260323234822_events.js +1 -1
  354. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  355. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  356. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  357. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  358. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  359. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  360. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  361. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  362. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  363. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  364. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  365. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  366. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  367. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  368. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  369. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  370. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  371. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  372. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  373. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  374. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  375. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  376. package/dist/database/migration/20260611035744_credential.js +1 -1
  377. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  378. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  379. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  380. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  381. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  382. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  383. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  384. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  385. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  386. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  387. package/dist/database/migration/20260812213948_worktree.js +1 -1
  388. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  389. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  390. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  391. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  392. package/dist/database/migration.gen.js +49 -49
  393. package/dist/database/migration.js +51 -51
  394. package/dist/database/path.js +2 -2
  395. package/dist/database/schema.gen.js +1 -1
  396. package/dist/database/schema.sql.js +1 -1
  397. package/dist/database/sqlite.bun.js +1 -1
  398. package/dist/database/sqlite.js +1 -1
  399. package/dist/database/sqlite.node.js +1 -1
  400. package/dist/database/sqlite.workerd.js +1 -1
  401. package/dist/database/v1-migration.bun.js +122 -78
  402. package/dist/database/v1-migration.js +1 -1
  403. package/dist/effect/app-node-builder.js +370 -369
  404. package/dist/effect/app-node-platform.js +2 -2
  405. package/dist/effect/keyed-mutex.js +3 -3
  406. package/dist/effect/websocket-constructor.js +1 -1
  407. package/dist/environment/driver.js +1 -1
  408. package/dist/environment/environment.js +93 -93
  409. package/dist/environment/exec-defaults.js +2 -2
  410. package/dist/environment/files.js +1 -1
  411. package/dist/environment/index.js +93 -93
  412. package/dist/environment/local.js +2 -2
  413. package/dist/environment/memory.js +2 -2
  414. package/dist/environment/unavailable.js +1 -1
  415. package/dist/event/sql.js +1 -1
  416. package/dist/event-logger.js +74 -74
  417. package/dist/file-access.js +104 -104
  418. package/dist/file-mutation.js +94 -94
  419. package/dist/file-retention.js +1 -1
  420. package/dist/file.js +1 -1
  421. package/dist/filesystem/fff.bun.js +2 -2
  422. package/dist/filesystem/fff.js +1 -1
  423. package/dist/filesystem/fff.node.js +2 -2
  424. package/dist/filesystem/fff.workerd.js +2 -2
  425. package/dist/filesystem/ignore.js +1 -1
  426. package/dist/filesystem/location-watcher-policy.js +6 -6
  427. package/dist/filesystem/location-watcher.js +225 -225
  428. package/dist/filesystem/protected.js +1 -1
  429. package/dist/filesystem/search.js +95 -95
  430. package/dist/filesystem/watcher-binding.js +3 -3
  431. package/dist/filesystem/watcher.js +15 -15
  432. package/dist/filesystem.js +98 -98
  433. package/dist/form.js +76 -76
  434. package/dist/formatter/builtins.js +4 -4
  435. package/dist/formatter.js +87 -87
  436. package/dist/generate.js +101 -101
  437. package/dist/git.js +10 -10
  438. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  439. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  440. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  441. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  442. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  443. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  444. package/dist/github-copilot/copilot-provider.js +17 -17
  445. package/dist/github-copilot/models.js +99 -99
  446. package/dist/github-copilot/openai-compatible-error.js +1 -1
  447. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  448. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  449. package/dist/github-copilot/responses/openai-error.js +1 -1
  450. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  451. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  452. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  453. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  454. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  455. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  456. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  457. package/dist/id/id.js +1 -1
  458. package/dist/image/photon.js +2 -2
  459. package/dist/image.js +6 -6
  460. package/dist/instance/service.js +5 -5
  461. package/dist/instance.js +362 -361
  462. package/dist/instruction-discovery.js +77 -77
  463. package/dist/instructions/builtins.js +87 -87
  464. package/dist/instructions/index.js +3 -3
  465. package/dist/integration/connection.js +3 -3
  466. package/dist/integration.js +84 -84
  467. package/dist/job.js +79 -79
  468. package/dist/kv/sql.js +2 -2
  469. package/dist/kv.js +73 -73
  470. package/dist/location-activity.js +135 -135
  471. package/dist/location-lifecycle.js +107 -107
  472. package/dist/location-mutation.js +104 -104
  473. package/dist/location-service-map.js +86 -86
  474. package/dist/location-services.js +359 -358
  475. package/dist/location.js +85 -85
  476. package/dist/managed-policy.js +5 -5
  477. package/dist/mcp/client.js +91 -91
  478. package/dist/mcp/index.js +102 -102
  479. package/dist/mcp/instructions.js +128 -128
  480. package/dist/mcp/oauth.js +78 -78
  481. package/dist/mcp/stdio.js +90 -90
  482. package/dist/mime.js +1 -1
  483. package/dist/modal/models.js +99 -99
  484. package/dist/model-resolver.js +98 -98
  485. package/dist/model.js +98 -98
  486. package/dist/models-dev.js +101 -101
  487. package/dist/oauth/page.js +1 -1
  488. package/dist/permission/saved.js +80 -80
  489. package/dist/permission/sql.js +5 -5
  490. package/dist/permission.js +109 -109
  491. package/dist/persistent-pty/binary.bun.js +1 -1
  492. package/dist/persistent-pty/daemon.js +1 -1
  493. package/dist/persistent-pty/index.js +80 -80
  494. package/dist/persistent-pty/pty-binding.js +1 -1
  495. package/dist/persistent-pty.js +75 -75
  496. package/dist/plugin/agent.js +102 -102
  497. package/dist/plugin/command.js +99 -99
  498. package/dist/plugin/compaction.js +131 -131
  499. package/dist/plugin/hooks.js +5 -5
  500. package/dist/plugin/host.js +218 -218
  501. package/dist/plugin/identity.js +3 -3
  502. package/dist/plugin/instance.js +3 -3
  503. package/dist/plugin/internal.js +333 -332
  504. package/dist/plugin/mcp-codemode-defaults.js +8 -0
  505. package/dist/plugin/models-dev.js +96 -96
  506. package/dist/plugin/module.js +7 -7
  507. package/dist/plugin/optimize.js +4 -4
  508. package/dist/plugin/plan.js +102 -102
  509. package/dist/plugin/promise.js +1 -1
  510. package/dist/plugin/provider/amazon-bedrock.js +90 -90
  511. package/dist/plugin/provider/azure.js +122 -122
  512. package/dist/plugin/provider/cerebras.js +1 -1
  513. package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
  514. package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
  515. package/dist/plugin/provider/cohere.js +2 -2
  516. package/dist/plugin/provider/configured.js +119 -119
  517. package/dist/plugin/provider/digitalocean.js +93 -93
  518. package/dist/plugin/provider/dynamic.js +2 -2
  519. package/dist/plugin/provider/factory.js +1 -1
  520. package/dist/plugin/provider/gateway.js +2 -2
  521. package/dist/plugin/provider/github-copilot.js +93 -93
  522. package/dist/plugin/provider/gitlab.js +93 -91
  523. package/dist/plugin/provider/google-vertex.js +90 -90
  524. package/dist/plugin/provider/kilo.js +1 -1
  525. package/dist/plugin/provider/llmgateway.js +77 -77
  526. package/dist/plugin/provider/lmstudio.js +122 -122
  527. package/dist/plugin/provider/modal.js +92 -92
  528. package/dist/plugin/provider/nvidia.js +1 -1
  529. package/dist/plugin/provider/ollama.js +122 -122
  530. package/dist/plugin/provider/openai.js +94 -94
  531. package/dist/plugin/provider/opencode.js +95 -94
  532. package/dist/plugin/provider/openrouter.js +91 -91
  533. package/dist/plugin/provider/perplexity.js +2 -2
  534. package/dist/plugin/provider/poe.js +78 -78
  535. package/dist/plugin/provider/prompt-cache-key.js +90 -90
  536. package/dist/plugin/provider/sap-ai-core.js +91 -91
  537. package/dist/plugin/provider/sdk-factory.js +1 -1
  538. package/dist/plugin/provider/snowflake-cortex.js +122 -122
  539. package/dist/plugin/provider/venice.js +2 -2
  540. package/dist/plugin/provider/vercel.js +90 -90
  541. package/dist/plugin/provider/vllm.js +122 -122
  542. package/dist/plugin/provider/xai.js +91 -91
  543. package/dist/plugin/provider/zenmux.js +1 -1
  544. package/dist/plugin/provider.js +160 -160
  545. package/dist/plugin/sdk.js +74 -74
  546. package/dist/plugin/service.js +3 -3
  547. package/dist/plugin/skill.js +141 -141
  548. package/dist/plugin/source-directory.js +1 -1
  549. package/dist/plugin/supervisor.js +352 -351
  550. package/dist/plugin/tool-input-repair.js +4 -4
  551. package/dist/plugin/update.js +6 -6
  552. package/dist/plugin/vcs/git.js +86 -86
  553. package/dist/plugin/vcs/hg.js +86 -86
  554. package/dist/plugin/warming.js +121 -121
  555. package/dist/plugin/websearch/exa.js +7 -7
  556. package/dist/plugin/websearch/firecrawl.js +8 -8
  557. package/dist/plugin/websearch/index.js +9 -9
  558. package/dist/plugin/websearch/mcp.js +4 -4
  559. package/dist/plugin/websearch/parallel.js +6 -6
  560. package/dist/plugin/websearch/tavily.js +4 -4
  561. package/dist/plugin/websearch/tinyfish.js +8 -8
  562. package/dist/plugin.js +229 -229
  563. package/dist/project/schema.js +4 -4
  564. package/dist/project/sql.js +4 -4
  565. package/dist/project.js +84 -84
  566. package/dist/provider.js +97 -97
  567. package/dist/pty/protocol.js +1 -1
  568. package/dist/pty/schema.js +3 -3
  569. package/dist/pty/ticket.js +1 -1
  570. package/dist/pty.js +98 -98
  571. package/dist/reference/instructions.js +89 -89
  572. package/dist/reference.js +91 -91
  573. package/dist/repository-cache.js +81 -81
  574. package/dist/repository.js +1 -1
  575. package/dist/ripgrep/binary.js +2 -2
  576. package/dist/ripgrep.js +91 -91
  577. package/dist/rpc.js +86 -86
  578. package/dist/schema.js +1 -1
  579. package/dist/session/command.js +74 -74
  580. package/dist/session/compaction.js +134 -134
  581. package/dist/session/context.js +152 -152
  582. package/dist/session/diff.js +88 -88
  583. package/dist/session/environment.js +5 -5
  584. package/dist/session/error.js +5 -5
  585. package/dist/session/event.js +1 -1
  586. package/dist/session/execution/restart.js +226 -225
  587. package/dist/session/execution.js +128 -128
  588. package/dist/session/generate.js +151 -151
  589. package/dist/session/history.js +15 -15
  590. package/dist/session/inbox.js +90 -90
  591. package/dist/session/info.js +3 -3
  592. package/dist/session/instruction-entry.js +77 -77
  593. package/dist/session/instruction-state.js +8 -8
  594. package/dist/session/instructions.js +97 -97
  595. package/dist/session/message-updater.js +2 -2
  596. package/dist/session/message.js +1 -1
  597. package/dist/session/model-request.js +119 -119
  598. package/dist/session/model-transport.js +9 -9
  599. package/dist/session/move.js +130 -130
  600. package/dist/session/projector.js +86 -86
  601. package/dist/session/prompt.js +105 -105
  602. package/dist/session/provider-context.js +3 -3
  603. package/dist/session/revert.js +90 -90
  604. package/dist/session/run-coordinator.js +3 -3
  605. package/dist/session/runner/index.js +3 -3
  606. package/dist/session/runner/llm.js +231 -231
  607. package/dist/session/runner/max-steps.js +1 -1
  608. package/dist/session/runner/model.js +98 -98
  609. package/dist/session/runner/publish-llm-event.js +3 -3
  610. package/dist/session/runner/retry.js +114 -114
  611. package/dist/session/runner/step.js +126 -126
  612. package/dist/session/runner/to-llm-message.js +2 -2
  613. package/dist/session/schema.js +5 -5
  614. package/dist/session/session.js +172 -172
  615. package/dist/session/shell.js +138 -138
  616. package/dist/session/skill.js +103 -103
  617. package/dist/session/sql.js +5 -5
  618. package/dist/session/stats.js +73 -73
  619. package/dist/session/store.js +87 -87
  620. package/dist/session/subagent-completion.js +1 -1
  621. package/dist/session/subagent-job.js +208 -208
  622. package/dist/session/system-prompt.js +3 -3
  623. package/dist/session/title.js +156 -156
  624. package/dist/session/to-session-error.js +111 -111
  625. package/dist/session/transfer.js +220 -220
  626. package/dist/session/usage.js +1 -1
  627. package/dist/session.js +216 -216
  628. package/dist/shell/parse.js +6 -6
  629. package/dist/shell/result.js +1 -1
  630. package/dist/shell/scan.js +1 -1
  631. package/dist/shell/select.js +15 -15
  632. package/dist/shell.js +140 -140
  633. package/dist/skill/discovery.js +2 -2
  634. package/dist/skill/instructions.js +105 -105
  635. package/dist/skill.js +110 -110
  636. package/dist/snapshot.js +93 -93
  637. package/dist/state.js +1 -1
  638. package/dist/tool/html-markdown.js +1 -1
  639. package/dist/tool/http-body.js +1 -1
  640. package/dist/tool/mcp.js +127 -127
  641. package/dist/tool/plugin/edit.js +120 -120
  642. package/dist/tool/plugin/file-diff.js +1 -1
  643. package/dist/tool/plugin/glob.js +124 -124
  644. package/dist/tool/plugin/grep.js +124 -124
  645. package/dist/tool/plugin/mcp-resource.js +121 -0
  646. package/dist/tool/plugin/opencode.js +3 -3
  647. package/dist/tool/plugin/patch.js +122 -122
  648. package/dist/tool/plugin/question.js +105 -105
  649. package/dist/tool/plugin/read.js +125 -125
  650. package/dist/tool/plugin/shell.js +217 -217
  651. package/dist/tool/plugin/skill.js +109 -109
  652. package/dist/tool/plugin/subagent.js +219 -219
  653. package/dist/tool/plugin/webfetch.js +108 -108
  654. package/dist/tool/plugin/websearch.js +114 -114
  655. package/dist/tool/plugin/write.js +122 -122
  656. package/dist/tool/read-filesystem.js +100 -100
  657. package/dist/tool/runtime.js +1 -1
  658. package/dist/tool-output.js +8 -8
  659. package/dist/tool.js +14 -14
  660. package/dist/types/mcp/index.d.ts +4 -1
  661. package/dist/types/model-resolver.d.ts +2 -0
  662. package/dist/types/plugin/{mcp-codemode-exclusion.d.ts → mcp-codemode-defaults.d.ts} +1 -1
  663. package/dist/types/plugin/provider/gitlab.d.ts +4 -1
  664. package/dist/types/session/model-transport.d.ts +1 -1
  665. package/dist/types/tool/plugin/mcp-resource.d.ts +9 -0
  666. package/dist/types/tool/read-filesystem.d.ts +1 -0
  667. package/dist/types/v1/config/migrate.d.ts +12 -12
  668. package/dist/util/error-summary.js +1 -1
  669. package/dist/util/error.js +1 -1
  670. package/dist/util/git-executable.js +2 -2
  671. package/dist/util/iife.js +1 -1
  672. package/dist/util/lazy.js +1 -1
  673. package/dist/util/slug.js +1 -1
  674. package/dist/util/token.js +1 -1
  675. package/dist/util/which.js +1 -1
  676. package/dist/util/wildcard.js +1 -1
  677. package/dist/v1/config/agent.js +7 -7
  678. package/dist/v1/config/attachment.js +4 -4
  679. package/dist/v1/config/command.js +3 -3
  680. package/dist/v1/config/config.js +16 -16
  681. package/dist/v1/config/error.js +4 -4
  682. package/dist/v1/config/formatter.js +3 -3
  683. package/dist/v1/config/layout.js +1 -1
  684. package/dist/v1/config/lsp.js +3 -3
  685. package/dist/v1/config/mcp.js +4 -4
  686. package/dist/v1/config/migrate.js +92 -92
  687. package/dist/v1/config/permission.js +7 -7
  688. package/dist/v1/config/plugin.js +3 -3
  689. package/dist/v1/config/provider-options.js +1 -1
  690. package/dist/v1/config/provider.js +2 -2
  691. package/dist/v1/config/server.js +2 -2
  692. package/dist/v1/config/skills.js +3 -3
  693. package/dist/v1/permission.js +1 -1
  694. package/dist/variant.js +91 -91
  695. package/dist/vcs/patch.js +1 -1
  696. package/dist/vcs.js +85 -85
  697. package/dist/websearch.js +80 -80
  698. package/dist/wellknown/plugin.js +76 -76
  699. package/dist/wellknown.js +81 -81
  700. package/dist/workspace/driver.js +7 -7
  701. package/dist/workspace/sql.js +1 -1
  702. package/dist/workspace.js +80 -80
  703. package/dist/worktree/directory.js +2 -2
  704. package/dist/worktree/git.js +8 -8
  705. package/dist/worktree/sql.js +5 -5
  706. package/dist/worktree/strategies.js +89 -89
  707. package/dist/worktree.js +98 -98
  708. package/package.json +9 -9
  709. package/dist/chunks/location-0mesazry.js +0 -4
  710. package/dist/chunks/location-ce7bf4ce.js +0 -252
  711. package/dist/chunks/location-hpfbmb0d.js +0 -61
  712. package/dist/chunks/location-jbs0jehe.js +0 -26
  713. package/dist/chunks/location-n95b3jav.js +0 -18
  714. package/dist/chunks/location-vg9ntks0.js +0 -503
  715. package/dist/plugin/mcp-codemode-exclusion.js +0 -8
  716. /package/dist/chunks/{location-0qkdqm5v.js → event-logger-0qkdqm5v.js} +0 -0
  717. /package/dist/chunks/{location-0zkw76rk.js → event-logger-0zkw76rk.js} +0 -0
  718. /package/dist/chunks/{location-17cy0kzp.js → event-logger-17cy0kzp.js} +0 -0
  719. /package/dist/chunks/{location-1cnp2v09.js → event-logger-1cnp2v09.js} +0 -0
  720. /package/dist/chunks/{location-1kg9ymc8.js → event-logger-1kg9ymc8.js} +0 -0
  721. /package/dist/chunks/{location-24dcb14g.js → event-logger-24dcb14g.js} +0 -0
  722. /package/dist/chunks/{location-2710q6r3.js → event-logger-2710q6r3.js} +0 -0
  723. /package/dist/chunks/{location-2axfhc9x.js → event-logger-2axfhc9x.js} +0 -0
  724. /package/dist/chunks/{location-2c3vjs8z.js → event-logger-2c3vjs8z.js} +0 -0
  725. /package/dist/chunks/{location-34c7v6d4.js → event-logger-34c7v6d4.js} +0 -0
  726. /package/dist/chunks/{location-359p4xyc.js → event-logger-359p4xyc.js} +0 -0
  727. /package/dist/chunks/{location-3asan66x.js → event-logger-3asan66x.js} +0 -0
  728. /package/dist/chunks/{location-3v8g72cx.js → event-logger-3v8g72cx.js} +0 -0
  729. /package/dist/chunks/{location-3w5fmr99.js → event-logger-3w5fmr99.js} +0 -0
  730. /package/dist/chunks/{location-3wcehsnq.js → event-logger-3wcehsnq.js} +0 -0
  731. /package/dist/chunks/{location-43n2bw4t.js → event-logger-43n2bw4t.js} +0 -0
  732. /package/dist/chunks/{location-4knz6hnm.js → event-logger-4knz6hnm.js} +0 -0
  733. /package/dist/chunks/{location-4vcrnpx2.js → event-logger-4vcrnpx2.js} +0 -0
  734. /package/dist/chunks/{location-4y7fprxs.js → event-logger-4y7fprxs.js} +0 -0
  735. /package/dist/chunks/{location-53557ph1.js → event-logger-53557ph1.js} +0 -0
  736. /package/dist/chunks/{location-550bvhaj.js → event-logger-550bvhaj.js} +0 -0
  737. /package/dist/chunks/{location-6prwharc.js → event-logger-6prwharc.js} +0 -0
  738. /package/dist/chunks/{location-7akdwqpd.js → event-logger-7akdwqpd.js} +0 -0
  739. /package/dist/chunks/{location-7m9af43g.js → event-logger-7m9af43g.js} +0 -0
  740. /package/dist/chunks/{location-822emrt2.js → event-logger-822emrt2.js} +0 -0
  741. /package/dist/chunks/{location-88xbtdfr.js → event-logger-88xbtdfr.js} +0 -0
  742. /package/dist/chunks/{location-8n3pysct.js → event-logger-8n3pysct.js} +0 -0
  743. /package/dist/chunks/{location-8wj87zfr.js → event-logger-8wj87zfr.js} +0 -0
  744. /package/dist/chunks/{location-922hggd3.js → event-logger-922hggd3.js} +0 -0
  745. /package/dist/chunks/{location-9a4afbnw.js → event-logger-9a4afbnw.js} +0 -0
  746. /package/dist/chunks/{location-9rqn6x4v.js → event-logger-9rqn6x4v.js} +0 -0
  747. /package/dist/chunks/{location-a6k6eb26.js → event-logger-a6k6eb26.js} +0 -0
  748. /package/dist/chunks/{location-af5trqkr.js → event-logger-af5trqkr.js} +0 -0
  749. /package/dist/chunks/{location-afrmfg78.js → event-logger-afrmfg78.js} +0 -0
  750. /package/dist/chunks/{location-aqzs7mqg.js → event-logger-aqzs7mqg.js} +0 -0
  751. /package/dist/chunks/{location-atq7p7m5.js → event-logger-atq7p7m5.js} +0 -0
  752. /package/dist/chunks/{location-bkyjaxrp.js → event-logger-bkyjaxrp.js} +0 -0
  753. /package/dist/chunks/{location-bmr6ed5q.js → event-logger-bmr6ed5q.js} +0 -0
  754. /package/dist/chunks/{location-cf4snx6d.js → event-logger-cf4snx6d.js} +0 -0
  755. /package/dist/chunks/{location-cvy3z8tj.js → event-logger-cvy3z8tj.js} +0 -0
  756. /package/dist/chunks/{location-d9fn303g.js → event-logger-d9fn303g.js} +0 -0
  757. /package/dist/chunks/{location-d9jj8t3e.js → event-logger-d9jj8t3e.js} +0 -0
  758. /package/dist/chunks/{location-dajrwvna.js → event-logger-dajrwvna.js} +0 -0
  759. /package/dist/chunks/{location-dap0rakb.js → event-logger-dap0rakb.js} +0 -0
  760. /package/dist/chunks/{location-df08tz66.js → event-logger-df08tz66.js} +0 -0
  761. /package/dist/chunks/{location-dy18nga0.js → event-logger-dy18nga0.js} +0 -0
  762. /package/dist/chunks/{location-e5kj55wp.js → event-logger-e5kj55wp.js} +0 -0
  763. /package/dist/chunks/{location-e73j6tqm.js → event-logger-e73j6tqm.js} +0 -0
  764. /package/dist/chunks/{location-ec1grn59.js → event-logger-ec1grn59.js} +0 -0
  765. /package/dist/chunks/{location-eh3zwz77.js → event-logger-eh3zwz77.js} +0 -0
  766. /package/dist/chunks/{location-emrn6kk6.js → event-logger-emrn6kk6.js} +0 -0
  767. /package/dist/chunks/{location-f0mxakyp.js → event-logger-f0mxakyp.js} +0 -0
  768. /package/dist/chunks/{location-f6n9ztr4.js → event-logger-f6n9ztr4.js} +0 -0
  769. /package/dist/chunks/{location-faypxj3z.js → event-logger-faypxj3z.js} +0 -0
  770. /package/dist/chunks/{location-fd410y7t.js → event-logger-fd410y7t.js} +0 -0
  771. /package/dist/chunks/{location-fxgpk5d8.js → event-logger-fxgpk5d8.js} +0 -0
  772. /package/dist/chunks/{location-g4wezp1m.js → event-logger-g4wezp1m.js} +0 -0
  773. /package/dist/chunks/{location-g86h250q.js → event-logger-g86h250q.js} +0 -0
  774. /package/dist/chunks/{location-gebd4c9n.js → event-logger-gebd4c9n.js} +0 -0
  775. /package/dist/chunks/{location-gftt206x.js → event-logger-gftt206x.js} +0 -0
  776. /package/dist/chunks/{location-hjbc5kem.js → event-logger-hjbc5kem.js} +0 -0
  777. /package/dist/chunks/{location-hk9envan.js → event-logger-hk9envan.js} +0 -0
  778. /package/dist/chunks/{location-j2ntwpah.js → event-logger-j2ntwpah.js} +0 -0
  779. /package/dist/chunks/{location-j5zkgpj8.js → event-logger-j5zkgpj8.js} +0 -0
  780. /package/dist/chunks/{location-jjkms2e6.js → event-logger-jjkms2e6.js} +0 -0
  781. /package/dist/chunks/{location-jr7sbwjy.js → event-logger-jr7sbwjy.js} +0 -0
  782. /package/dist/chunks/{location-jwfs4k6c.js → event-logger-jwfs4k6c.js} +0 -0
  783. /package/dist/chunks/{location-jzg6c2d5.js → event-logger-jzg6c2d5.js} +0 -0
  784. /package/dist/chunks/{location-mp448xyj.js → event-logger-mp448xyj.js} +0 -0
  785. /package/dist/chunks/{location-msx8hqn2.js → event-logger-msx8hqn2.js} +0 -0
  786. /package/dist/chunks/{location-n05xt0ee.js → event-logger-n05xt0ee.js} +0 -0
  787. /package/dist/chunks/{location-n3j8tn72.js → event-logger-n3j8tn72.js} +0 -0
  788. /package/dist/chunks/{location-njntx4h6.js → event-logger-njntx4h6.js} +0 -0
  789. /package/dist/chunks/{location-q3sfg36h.js → event-logger-q3sfg36h.js} +0 -0
  790. /package/dist/chunks/{location-q74kybfr.js → event-logger-q74kybfr.js} +0 -0
  791. /package/dist/chunks/{location-qaymkmh1.js → event-logger-qaymkmh1.js} +0 -0
  792. /package/dist/chunks/{location-qb87gjwd.js → event-logger-qb87gjwd.js} +0 -0
  793. /package/dist/chunks/{location-qfa1cgps.js → event-logger-qfa1cgps.js} +0 -0
  794. /package/dist/chunks/{location-qg3g05ea.js → event-logger-qg3g05ea.js} +0 -0
  795. /package/dist/chunks/{location-qrg20bc0.js → event-logger-qrg20bc0.js} +0 -0
  796. /package/dist/chunks/{location-rcb2kzg1.js → event-logger-rcb2kzg1.js} +0 -0
  797. /package/dist/chunks/{location-sdp7kfr6.js → event-logger-sdp7kfr6.js} +0 -0
  798. /package/dist/chunks/{location-sk3qaz4a.js → event-logger-sk3qaz4a.js} +0 -0
  799. /package/dist/chunks/{location-ssg3fenm.js → event-logger-ssg3fenm.js} +0 -0
  800. /package/dist/chunks/{location-w803qqfp.js → event-logger-w803qqfp.js} +0 -0
  801. /package/dist/chunks/{location-wc3fc9cn.js → event-logger-wc3fc9cn.js} +0 -0
  802. /package/dist/chunks/{location-wer8tq1h.js → event-logger-wer8tq1h.js} +0 -0
  803. /package/dist/chunks/{location-wtztk69x.js → event-logger-wtztk69x.js} +0 -0
  804. /package/dist/chunks/{location-x0ckcb58.js → event-logger-x0ckcb58.js} +0 -0
  805. /package/dist/chunks/{location-x61499pn.js → event-logger-x61499pn.js} +0 -0
  806. /package/dist/chunks/{location-y44na4kk.js → event-logger-y44na4kk.js} +0 -0
  807. /package/dist/chunks/{location-y8cydn3q.js → event-logger-y8cydn3q.js} +0 -0
  808. /package/dist/chunks/{location-y8f7s663.js → event-logger-y8f7s663.js} +0 -0
  809. /package/dist/chunks/{location-ygaqb7jw.js → event-logger-ygaqb7jw.js} +0 -0
  810. /package/dist/chunks/{location-ym463w8f.js → event-logger-ym463w8f.js} +0 -0
  811. /package/dist/chunks/{location-z9919s4g.js → event-logger-z9919s4g.js} +0 -0
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./location-922hggd3.js";
3
+ } from "./event-logger-922hggd3.js";
4
4
  import {
5
- Service78
6
- } from "./location-8s04dv6n.js";
5
+ Service79
6
+ } from "./event-logger-fv5sjpfb.js";
7
7
  import {
8
- Service15
9
- } from "./location-kxqn5q5s.js";
8
+ Service29
9
+ } from "./event-logger-d4sk7cm2.js";
10
10
  import {
11
- Service7
12
- } from "./location-rk8yrdje.js";
11
+ Service11
12
+ } from "./event-logger-9t2qpacv.js";
13
13
  import {
14
14
  NotFound2
15
- } from "./location-2a5m3afh.js";
15
+ } from "./event-logger-2a5m3afh.js";
16
16
  import {
17
17
  MEDIA_MIMES2,
18
18
  BinaryFileError2,
@@ -23,26 +23,26 @@ import {
23
23
  FileContent2,
24
24
  TextPage2,
25
25
  ListPage2,
26
- Service2
27
- } from "./location-3172pg9v.js";
26
+ Service13
27
+ } from "./event-logger-msf2edjm.js";
28
28
  import {
29
29
  __export
30
- } from "./location-9rqn6x4v.js";
30
+ } from "./event-logger-9rqn6x4v.js";
31
31
 
32
32
  // src/tool/plugin/read.ts
33
33
  var exports_read = {};
34
34
  __export(exports_read, {
35
- Input: () => Input11,
36
- Plugin: () => Plugin12,
35
+ Input: () => Input9,
36
+ Plugin: () => Plugin46,
37
37
  ReadTool: () => exports_read,
38
- name: () => name11,
39
- toModelContent: () => toModelContent6
38
+ name: () => name9,
39
+ toModelContent: () => toModelContent4
40
40
  });
41
41
  import { basename, dirname, join } from "path";
42
42
  import { ToolFailure } from "@opencode/ai";
43
43
  import { Effect, Schema } from "effect";
44
44
  import { FSUtil } from "@opencode/util/fs-util";
45
- var name11 = "read";
45
+ var name9 = "read";
46
46
  var FILENAME = "AGENTS.md";
47
47
  var LocationInput = Schema.Struct({
48
48
  path: Schema.String.annotate({ description: "File or directory to read" }),
@@ -50,24 +50,24 @@ var LocationInput = Schema.Struct({
50
50
  description: "The line or directory entry to start reading from (1-based)"
51
51
  }),
52
52
  limit: PageInput2.fields.limit.annotate({
53
- description: "The maximum number of lines or directory entries to read (defaults to 2000)"
53
+ description: "The maximum number of lines or directory entries to read (defaults to and capped at 2000)"
54
54
  })
55
55
  });
56
- var Input11 = LocationInput;
56
+ var Input9 = LocationInput;
57
57
  var Output = Schema.Union([FileContent2, TextPage2, ListPage2]);
58
- var Plugin12 = {
58
+ var Plugin46 = {
59
59
  id: "opencode.tool.read",
60
60
  effect: Effect.fn("ReadTool.Plugin")(function* (ctx) {
61
- const reader = yield* Service2;
62
- const access = yield* Service15;
63
- const sessionInstructions = yield* Service7;
61
+ const reader = yield* Service13;
62
+ const access = yield* Service29;
63
+ const sessionInstructions = yield* Service11;
64
64
  const fs = yield* FSUtil.Service;
65
- const location = yield* Service78;
65
+ const location = yield* Service79;
66
66
  yield* ctx.tool.transform((editor) => editor.add({
67
- name: name11,
67
+ name: name9,
68
68
  options: { codemode: false },
69
69
  description: "Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",
70
- input: Input11,
70
+ input: Input9,
71
71
  output: Output,
72
72
  execute: (input, context) => {
73
73
  return Effect.gen(function* () {
@@ -112,7 +112,7 @@ var Plugin12 = {
112
112
  return { output: result.content, path: result.path };
113
113
  }).pipe(Effect.map((result) => ({
114
114
  output: result.output,
115
- content: toModelContent6(result.path, input.offset, result.output),
115
+ content: toModelContent4(result.path, input.offset, result.output),
116
116
  metadata: { truncated: result.output.type === "file" ? false : result.output.truncated }
117
117
  })), Effect.mapError((error) => {
118
118
  if (error instanceof ToolFailure)
@@ -123,8 +123,9 @@ var Plugin12 = {
123
123
  }
124
124
  })).pipe(Effect.orDie);
125
125
  const alternatePath = Effect.fn("ReadTool.alternatePath")(function* (absolute) {
126
- const base = basename(absolute).replace(/[\u00a0\u202f]/g, " ");
127
- const matches = (yield* reader.list(AbsolutePath2.make(dirname(absolute)))).filter((entry) => entry.type === "file" && entry.name.replace(/[\u00a0\u202f]/g, " ") === base);
126
+ const canonical = (name) => name.normalize("NFC").replace(/[\u00a0\u202f]/g, " ").replace(/[\u2018\u2019]/g, "'");
127
+ const base = canonical(basename(absolute));
128
+ const matches = (yield* reader.list(AbsolutePath2.make(dirname(absolute)))).filter((entry) => entry.type === "file" && canonical(entry.name) === base);
128
129
  if (matches.length !== 1)
129
130
  return;
130
131
  return join(dirname(absolute), matches[0].name);
@@ -144,7 +145,7 @@ ${suggestions.join(`
144
145
  });
145
146
  })
146
147
  };
147
- var toModelContent6 = (path, offset, output) => {
148
+ var toModelContent4 = (path, offset, output) => {
148
149
  if (output.type === "file" && output.encoding === "base64")
149
150
  return [
150
151
  { type: "text", text: output.mime === "application/pdf" ? "PDF read successfully" : "Image read successfully" },
@@ -180,4 +181,4 @@ var toModelContent6 = (path, offset, output) => {
180
181
  `);
181
182
  };
182
183
 
183
- export { name11, Input11, Plugin12, toModelContent6, exports_read };
184
+ export { name9, Input9, Plugin46, toModelContent4, exports_read };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./location-9rqn6x4v.js";
3
+ } from "./event-logger-9rqn6x4v.js";
4
4
 
5
5
  // src/tool/plugin/opencode.ts
6
6
  var exports_opencode = {};
@@ -8,7 +8,7 @@ __export(exports_opencode, {
8
8
  ModelsInput: () => ModelsInput2,
9
9
  MoveInput: () => MoveInput2,
10
10
  OpenCodeTools: () => exports_opencode,
11
- Plugin: () => Plugin4,
11
+ Plugin: () => Plugin41,
12
12
  RenameInput: () => RenameInput2
13
13
  });
14
14
  import { SystemPart, ToolFailure } from "@opencode/ai";
@@ -64,7 +64,7 @@ var ModelsOutput = Schema.Struct({
64
64
  total: Schema.Int.annotate({ description: "Number of matching models across all pages." }),
65
65
  next: Schema.NullOr(Schema.Int).annotate({ description: "Offset of the next page, or null on the last page." })
66
66
  });
67
- var Plugin4 = {
67
+ var Plugin41 = {
68
68
  id: "opencode.tools",
69
69
  effect: Effect.fn("OpenCodeTools.Plugin")(function* (ctx) {
70
70
  const hook = (event) => Effect.sync(() => {
@@ -76,7 +76,7 @@ var Plugin4 = {
76
76
  yield* ctx.tool.transform((draft) => {
77
77
  draft.namespace({
78
78
  name: "opencode",
79
- description: "Tools for managing OpenCode itself, such as working with sessions and searching the available models."
79
+ description: "Tools for managing OpenCode itself, such as working with sessions, searching the available models, and reading MCP resources."
80
80
  });
81
81
  draft.add({
82
82
  name: "session_rename",
@@ -161,4 +161,4 @@ var Plugin4 = {
161
161
  })
162
162
  };
163
163
 
164
- export { RenameInput2, MoveInput2, ModelsInput2, Plugin4, exports_opencode };
164
+ export { RenameInput2, MoveInput2, ModelsInput2, Plugin41, exports_opencode };
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  useragent2
3
- } from "./location-apd0xxcy.js";
3
+ } from "./event-logger-k36bwha9.js";
4
4
  import {
5
- Service81
6
- } from "./location-2ys44scz.js";
5
+ Service83
6
+ } from "./event-logger-4rzfcrmm.js";
7
7
  import {
8
8
  OAuth3,
9
- Event19
10
- } from "./location-t880hhr6.js";
9
+ Event21
10
+ } from "./event-logger-4nsq4evv.js";
11
11
  import {
12
- ID13,
12
+ ID14,
13
13
  MethodID2
14
- } from "./location-gbece2fh.js";
14
+ } from "./event-logger-0p8kebmq.js";
15
15
  import {
16
16
  success2,
17
17
  error2
18
- } from "./location-pjvnvgmy.js";
18
+ } from "./event-logger-pjvnvgmy.js";
19
19
  import {
20
- ID12,
20
+ ID13,
21
21
  mergeOverlay2,
22
22
  mergeHeaders2
23
- } from "./location-z1cdyrqr.js";
23
+ } from "./event-logger-c99wwxqk.js";
24
24
 
25
25
  // src/plugin/provider/openai.ts
26
26
  import { define } from "@opencode/plugin/effect/plugin";
@@ -44,7 +44,7 @@ var Claims = Schema.fromJsonString(Schema.Struct({
44
44
  }));
45
45
  var decodeClaims = Schema.decodeUnknownOption(Claims);
46
46
  var browser = (app) => ({
47
- integrationID: ID13.make("openai"),
47
+ integrationID: ID14.make("openai"),
48
48
  method: {
49
49
  id: browserMethodID,
50
50
  type: "oauth",
@@ -117,7 +117,7 @@ function addressInUse(error) {
117
117
  return "code" in error && error.code === "EADDRINUSE";
118
118
  }
119
119
  var headless = (app) => ({
120
- integrationID: ID13.make("openai"),
120
+ integrationID: ID14.make("openai"),
121
121
  method: {
122
122
  id: headlessMethodID,
123
123
  type: "oauth",
@@ -159,10 +159,10 @@ var headless = (app) => ({
159
159
  }),
160
160
  refresh: (value) => refresh(headlessMethodID, value, app)
161
161
  });
162
- var OpenAIPlugin3 = define({
162
+ var OpenAIPlugin2 = define({
163
163
  id: "opencode.provider.openai",
164
164
  effect: Effect.fn(function* (ctx) {
165
- const bus = yield* Service81;
165
+ const bus = yield* Service83;
166
166
  const loading = Semaphore.makeUnsafe(1);
167
167
  let chatgpt;
168
168
  const load = Effect.fn("OpenAIPlugin.load")(function* () {
@@ -178,7 +178,7 @@ var OpenAIPlugin3 = define({
178
178
  });
179
179
  yield* load();
180
180
  yield* ctx.provider.transform((providers) => {
181
- const item = providers.get(ID12.openai);
181
+ const item = providers.get(ID13.openai);
182
182
  if (!item)
183
183
  return;
184
184
  const account = chatgpt?.metadata?.accountID;
@@ -197,7 +197,7 @@ var OpenAIPlugin3 = define({
197
197
  });
198
198
  });
199
199
  yield* ctx.model.transform((models) => {
200
- for (const model of models.list(ID12.openai)) {
200
+ for (const model of models.list(ID13.openai)) {
201
201
  models.update(model.providerID, model.id, (draft) => {
202
202
  if (!chatgpt)
203
203
  return;
@@ -225,9 +225,9 @@ var OpenAIPlugin3 = define({
225
225
  evt.baseURL = codexBaseURL;
226
226
  evt.headers.originator = "opencode";
227
227
  evt.headers["session-id"] = evt.sessionID;
228
- }), { providerID: ID12.openai });
228
+ }), { providerID: ID13.openai });
229
229
  const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
230
- yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID13.make("openai")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
230
+ yield* bus.subscribe(Event21.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("openai")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
231
231
  })
232
232
  });
233
233
  function headers(contentType, app) {
@@ -318,4 +318,4 @@ function claim(token) {
318
318
  return claims.chatgpt_account_id ?? claims["https://api.openai.com/auth"]?.chatgpt_account_id ?? claims.organizations?.[0]?.id;
319
319
  }
320
320
 
321
- export { OpenAIPlugin3 };
321
+ export { OpenAIPlugin2 };
@@ -1,65 +1,65 @@
1
1
  import {
2
2
  Service84,
3
3
  node88
4
- } from "./location-04mw5jg5.js";
4
+ } from "./event-logger-e0k7xjnp.js";
5
5
  import {
6
- Service81,
7
- node85
8
- } from "./location-2ys44scz.js";
6
+ Service83,
7
+ node87
8
+ } from "./event-logger-4rzfcrmm.js";
9
9
  import {
10
10
  llmClient2
11
- } from "./location-5t3nmthw.js";
11
+ } from "./event-logger-5t3nmthw.js";
12
12
  import {
13
13
  SessionEvent2
14
- } from "./location-ec1grn59.js";
14
+ } from "./event-logger-ec1grn59.js";
15
15
  import {
16
16
  provenance2,
17
17
  compatible2,
18
18
  isCheckpoint2,
19
19
  encode2
20
- } from "./location-18s9r5gn.js";
20
+ } from "./event-logger-dg2cj1yd.js";
21
21
  import {
22
- load4
23
- } from "./location-d6ex932k.js";
22
+ load5
23
+ } from "./event-logger-te5g4v54.js";
24
24
  import {
25
25
  create3
26
- } from "./location-rdw6cm16.js";
26
+ } from "./event-logger-rdw6cm16.js";
27
27
  import {
28
28
  toLLMMessages2
29
- } from "./location-dagkn99r.js";
29
+ } from "./event-logger-k53npxr2.js";
30
30
  import {
31
31
  baseTranscript2,
32
32
  unsupportedParts2,
33
33
  boundImages2
34
- } from "./location-vbz4mrgg.js";
34
+ } from "./event-logger-qz809afx.js";
35
35
  import {
36
36
  toSessionError2
37
- } from "./location-vs030v48.js";
37
+ } from "./event-logger-11k6dxds.js";
38
38
  import {
39
39
  policy2,
40
40
  transient2
41
- } from "./location-dpwed560.js";
41
+ } from "./event-logger-2jnnq67w.js";
42
42
  import {
43
43
  estimate2
44
- } from "./location-h6vf3j39.js";
44
+ } from "./event-logger-h6vf3j39.js";
45
45
  import {
46
46
  calculateCost2,
47
47
  record2,
48
48
  add2
49
- } from "./location-tdstcens.js";
49
+ } from "./event-logger-tdstcens.js";
50
50
  import {
51
51
  __export
52
- } from "./location-9rqn6x4v.js";
52
+ } from "./event-logger-9rqn6x4v.js";
53
53
 
54
54
  // src/session/compaction.ts
55
55
  var exports_compaction3 = {};
56
56
  __export(exports_compaction3, {
57
- Service: () => Service9,
57
+ Service: () => Service6,
58
58
  SessionCompaction: () => exports_compaction3,
59
59
  buildPrompt: () => buildPrompt2,
60
60
  estimateTokens: () => estimateTokens2,
61
- layer: () => layer7,
62
- node: () => node11,
61
+ layer: () => layer6,
62
+ node: () => node8,
63
63
  retainUsers: () => retainUsers2,
64
64
  serializeToolContent: () => serializeToolContent2,
65
65
  truncateToolOutput: () => truncateToolOutput2
@@ -125,7 +125,7 @@ var SUMMARY_HEADINGS = SUMMARY_TEMPLATE.split(`
125
125
  `).filter((line) => line.startsWith("##"));
126
126
  var LEGACY_HEADING = "## Additional Context";
127
127
 
128
- class Service9 extends Context.Service()("@opencode/SessionCompaction") {
128
+ class Service6 extends Context.Service()("@opencode/SessionCompaction") {
129
129
  }
130
130
  var hasInputUsage = (message) => message.type === "assistant" && !message.error && message.tokens !== undefined && message.tokens.input + message.tokens.cache.read + message.tokens.cache.write > 0;
131
131
  var estimateTokens2 = (input) => {
@@ -298,8 +298,8 @@ var buildPrompt2 = (update, legacy = false) => {
298
298
  };
299
299
  var hasSummarySection = (summary) => summary.split(`
300
300
  `).some((line) => SUMMARY_HEADINGS.includes(line.trim()));
301
- var layer7 = Layer.effect(Service9, Effect.gen(function* () {
302
- const bus = yield* Service81;
301
+ var layer6 = Layer.effect(Service6, Effect.gen(function* () {
302
+ const bus = yield* Service83;
303
303
  const llm = yield* LLMClient.Service;
304
304
  const db = (yield* Service84).db;
305
305
  const state = create3({
@@ -377,7 +377,7 @@ var layer7 = Layer.effect(Service9, Effect.gen(function* () {
377
377
  webSocket
378
378
  });
379
379
  };
380
- const original = (sessionID) => load4(db, sessionID, "local").pipe(Effect.orDie);
380
+ const original = (sessionID) => load5(db, sessionID, "local").pipe(Effect.orDie);
381
381
  const recoverLocally = (input) => original(input.context.session.id).pipe(Effect.flatMap((messages) => execute({ ...input, context: { ...input.context, messages } })));
382
382
  const executeProvider = Effect.fn("SessionCompaction.executeProvider")(function* (input) {
383
383
  const context = input.context;
@@ -606,7 +606,7 @@ var layer7 = Layer.effect(Service9, Effect.gen(function* () {
606
606
  }
607
607
  }));
608
608
  });
609
- return Service9.of({
609
+ return Service6.of({
610
610
  transform: state.transform,
611
611
  reload: state.reload,
612
612
  enabled: () => state.get().auto,
@@ -615,10 +615,10 @@ var layer7 = Layer.effect(Service9, Effect.gen(function* () {
615
615
  compactManual
616
616
  });
617
617
  }));
618
- var node11 = makeLocationNode({
619
- service: Service9,
620
- layer: layer7,
621
- deps: [node85, node88, llmClient2]
618
+ var node8 = makeLocationNode({
619
+ service: Service6,
620
+ layer: layer6,
621
+ deps: [node87, node88, llmClient2]
622
622
  });
623
623
 
624
- export { Service9, estimateTokens2, retainUsers2, truncateToolOutput2, serializeToolContent2, buildPrompt2, layer7, node11, exports_compaction3 };
624
+ export { Service6, estimateTokens2, retainUsers2, truncateToolOutput2, serializeToolContent2, buildPrompt2, layer6, node8, exports_compaction3 };
@@ -0,0 +1,18 @@
1
+ import {
2
+ __export
3
+ } from "./event-logger-9rqn6x4v.js";
4
+
5
+ // src/plugin/service.ts
6
+ var exports_service = {};
7
+ __export(exports_service, {
8
+ Plugin: () => exports_service,
9
+ Service: () => Service34,
10
+ awaitActivation: () => awaitActivation2
11
+ });
12
+ import { Context } from "effect";
13
+
14
+ class Service34 extends Context.Service()("@opencode/Plugin") {
15
+ }
16
+ var awaitActivation2 = Service34.use((plugins) => plugins.awaitActivation);
17
+
18
+ export { Service34, awaitActivation2, exports_service };
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  PositiveInt2
3
- } from "./location-922hggd3.js";
3
+ } from "./event-logger-922hggd3.js";
4
4
  import {
5
5
  __export
6
- } from "./location-9rqn6x4v.js";
6
+ } from "./event-logger-9rqn6x4v.js";
7
7
 
8
8
  // src/v1/config/attachment.ts
9
9
  var exports_attachment = {};
10
10
  __export(exports_attachment, {
11
11
  ConfigAttachmentV1: () => exports_attachment,
12
12
  Image: () => Image2,
13
- Info: () => Info20
13
+ Info: () => Info14
14
14
  });
15
15
  import { Schema } from "effect";
16
16
  var Image2 = Schema.Struct({
@@ -27,8 +27,8 @@ var Image2 = Schema.Struct({
27
27
  description: "Maximum base64 payload bytes for an image attachment (default: 5242880)"
28
28
  })
29
29
  }).annotate({ identifier: "ImageAttachmentConfig" });
30
- var Info20 = Schema.Struct({
30
+ var Info14 = Schema.Struct({
31
31
  image: Schema.optional(Image2).annotate({ description: "Image attachment configuration" })
32
32
  }).annotate({ identifier: "AttachmentConfig" });
33
33
 
34
- export { Image2, Info20, exports_attachment };
34
+ export { Image2, Info14, exports_attachment };
@@ -1,27 +1,27 @@
1
1
  import {
2
- Service81,
3
- node85
4
- } from "./location-2ys44scz.js";
2
+ Service83,
3
+ node87
4
+ } from "./event-logger-4rzfcrmm.js";
5
5
  import {
6
6
  shutdown2,
7
7
  create3
8
- } from "./location-rdw6cm16.js";
8
+ } from "./event-logger-rdw6cm16.js";
9
9
  import {
10
- ID13,
11
- Service75,
12
- node79,
10
+ ID14,
11
+ Service77,
12
+ node81,
13
13
  Event18
14
- } from "./location-gbece2fh.js";
14
+ } from "./event-logger-0p8kebmq.js";
15
15
  import {
16
16
  key2
17
- } from "./location-4dgbcxzg.js";
17
+ } from "./event-logger-h6r3nrb9.js";
18
18
  import {
19
- Service78,
20
- node82
21
- } from "./location-8s04dv6n.js";
19
+ Service79,
20
+ node83
21
+ } from "./event-logger-fv5sjpfb.js";
22
22
  import {
23
23
  __export
24
- } from "./location-9rqn6x4v.js";
24
+ } from "./event-logger-9rqn6x4v.js";
25
25
 
26
26
  // src/aisdk-native.ts
27
27
  var exports_aisdk_native = {};
@@ -38,12 +38,12 @@ __export(exports_provider3, {
38
38
  AISDK_PREFIX: () => AISDK_PREFIX2,
39
39
  Compaction: () => Compaction3,
40
40
  Event: () => Event17,
41
- ID: () => ID12,
42
- Info: () => Info26,
41
+ ID: () => ID13,
42
+ Info: () => Info27,
43
43
  LoadError: () => LoadError3,
44
44
  Provider: () => exports_provider3,
45
45
  Request: () => Request3,
46
- Service: () => Service74,
46
+ Service: () => Service76,
47
47
  Settings: () => Settings2,
48
48
  Transport: () => Transport2,
49
49
  aisdk: () => aisdk2,
@@ -53,7 +53,7 @@ __export(exports_provider3, {
53
53
  mergeOverlay: () => mergeOverlay2,
54
54
  modelSettings: () => modelSettings2,
55
55
  nativeSettings: () => nativeSettings2,
56
- node: () => node78,
56
+ node: () => node80,
57
57
  packageName: () => packageName2
58
58
  });
59
59
  import { Context, Effect, Layer, Schema, Stream, Struct } from "effect";
@@ -65,7 +65,7 @@ import { importModule, resolveModule } from "@opencode/util/runtime-import";
65
65
  import { Credential } from "@opencode/schema/credential";
66
66
  import { freeze } from "immer";
67
67
  import { Event as Event17 } from "@opencode/schema/provider";
68
- var ID12 = Provider.ID;
68
+ var ID13 = Provider.ID;
69
69
  var AISDK_PREFIX2 = "aisdk:";
70
70
  var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
71
71
  var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
@@ -210,9 +210,9 @@ var Request3 = Provider.Request;
210
210
  var Compaction3 = Provider.Compaction;
211
211
  var Transport2 = Provider.Transport;
212
212
  var Settings2 = Provider.Settings;
213
- var Info26 = Provider.Info;
213
+ var Info27 = Provider.Info;
214
214
 
215
- class Service74 extends Context.Service()("@opencode/Provider") {
215
+ class Service76 extends Context.Service()("@opencode/Provider") {
216
216
  }
217
217
  var definitions = new WeakMap;
218
218
  function index(providerID, models) {
@@ -225,10 +225,10 @@ function index(providerID, models) {
225
225
  definitions.set(models, indexes);
226
226
  return result;
227
227
  }
228
- var layer = Layer.effect(Service74, Effect.gen(function* () {
229
- const bus = yield* Service81;
230
- const integrations = yield* Service75;
231
- const location = yield* Service78;
228
+ var layer = Layer.effect(Service76, Effect.gen(function* () {
229
+ const bus = yield* Service83;
230
+ const integrations = yield* Service77;
231
+ const location = yield* Service79;
232
232
  const state = create3({
233
233
  name: "provider",
234
234
  initial: () => new Map,
@@ -239,7 +239,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
239
239
  const current = records.get(id);
240
240
  if (current)
241
241
  return current;
242
- const added = { provider: Info26.empty(id), models: new Map };
242
+ const added = { provider: Info27.empty(id), models: new Map };
243
243
  records.set(id, added);
244
244
  maps.add(added.models);
245
245
  return added;
@@ -320,7 +320,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
320
320
  const available = Array.from(records.values()).filter((record) => {
321
321
  if (record.provider.activation === "disabled")
322
322
  return false;
323
- const integration = byID.get(record.provider.integrationID ?? ID13.make(record.provider.id));
323
+ const integration = byID.get(record.provider.integrationID ?? ID14.make(record.provider.id));
324
324
  if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
325
325
  return false;
326
326
  if (record.provider.activation === "enabled")
@@ -347,7 +347,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
347
347
  });
348
348
  });
349
349
  yield* bus.subscribe([Event18.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
350
- return Service74.of({
350
+ return Service76.of({
351
351
  transform: state.transform,
352
352
  reload: state.reload,
353
353
  get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
@@ -356,7 +356,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
356
356
  snapshot
357
357
  });
358
358
  }));
359
- var node78 = makeLocationNode({ service: Service74, layer, deps: [node85, node79, node82] });
359
+ var node80 = makeLocationNode({ service: Service76, layer, deps: [node87, node81, node83] });
360
360
  var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
361
361
  const module = yield* Effect.tryPromise({
362
362
  try: () => {
@@ -616,4 +616,4 @@ var Legacy = Schema2.StructWithRest(Schema2.Struct({
616
616
  }), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
617
617
  var decode = Schema2.decodeUnknownSync(Legacy);
618
618
 
619
- export { rewrite2, native2, exports_aisdk_native, ID12, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info26, Service74, node78, exports_provider3, Event17 };
619
+ export { rewrite2, native2, exports_aisdk_native, ID13, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info27, Service76, node80, exports_provider3, Event17 };