@opencode/core 0.0.0-dev-21164 → 0.0.0-dev-21165

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 (793) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +83 -83
  3. package/dist/aisdk-native.js +91 -91
  4. package/dist/aisdk.js +96 -96
  5. package/dist/app.js +7 -7
  6. package/dist/bus.js +71 -71
  7. package/dist/chunks/{state-w2k3w8z1.js → aisdk-01n1kwcd.js} +50 -50
  8. package/dist/chunks/{state-vvb3m2vh.js → aisdk-04kyr8dc.js} +6 -6
  9. package/dist/chunks/{state-sn3f2xcp.js → aisdk-07bfhn93.js} +4 -4
  10. package/dist/chunks/{state-m25y3kv4.js → aisdk-08rc9xny.js} +1 -1
  11. package/dist/chunks/{state-nanc2j11.js → aisdk-09vf9mn1.js} +28 -28
  12. package/dist/chunks/{state-c926a9vq.js → aisdk-0f7ygtf0.js} +10 -10
  13. package/dist/chunks/{state-7emf5024.js → aisdk-0nrhkkag.js} +11 -11
  14. package/dist/chunks/{state-0vbcp93d.js → aisdk-0vbcp93d.js} +2 -2
  15. package/dist/chunks/{state-tep0381a.js → aisdk-16s6cm5x.js} +11 -11
  16. package/dist/chunks/{state-dhs04fwy.js → aisdk-16zn0pm4.js} +3 -3
  17. package/dist/chunks/{state-1ep4rre3.js → aisdk-1ep4rre3.js} +1 -1
  18. package/dist/chunks/{state-a8ffpsx1.js → aisdk-1twacjpa.js} +25 -25
  19. package/dist/chunks/{state-whahtmr1.js → aisdk-1wcjck60.js} +13 -13
  20. package/dist/chunks/{state-yg9zenm6.js → aisdk-1xnz6qps.js} +20 -20
  21. package/dist/chunks/{state-ca1sdfxv.js → aisdk-1zcpefwj.js} +26 -26
  22. package/dist/chunks/{state-x91k2b7m.js → aisdk-251gbjhp.js} +3 -3
  23. package/dist/chunks/{state-wn44tgv3.js → aisdk-2a8f9bg8.js} +11 -11
  24. package/dist/chunks/{state-sy0ygxnp.js → aisdk-2cnsnyjd.js} +10 -10
  25. package/dist/chunks/{state-weqd0pg4.js → aisdk-2rgxr6yb.js} +9 -9
  26. package/dist/chunks/{state-m9cxx8a5.js → aisdk-2ykqrg29.js} +6 -6
  27. package/dist/chunks/{state-14q6bv5p.js → aisdk-2zj1tk32.js} +25 -25
  28. package/dist/chunks/{state-3fc6dm20.js → aisdk-3fc6dm20.js} +1 -1
  29. package/dist/chunks/{state-9s0s93fc.js → aisdk-3h8s31n6.js} +7 -7
  30. package/dist/chunks/{state-3hepkmqq.js → aisdk-3hepkmqq.js} +1 -1
  31. package/dist/chunks/{state-3hwn7j4h.js → aisdk-3hwn7j4h.js} +2 -2
  32. package/dist/chunks/{state-ewwfdr8f.js → aisdk-3npajrg6.js} +47 -47
  33. package/dist/chunks/{state-3smtnn6g.js → aisdk-3smtnn6g.js} +1 -1
  34. package/dist/chunks/{state-3tvqynh2.js → aisdk-3tvqynh2.js} +1 -1
  35. package/dist/chunks/{state-3zsf4n22.js → aisdk-3zsf4n22.js} +1 -1
  36. package/dist/chunks/{state-0ys6pg51.js → aisdk-426b87s3.js} +33 -33
  37. package/dist/chunks/{state-gzwn65aj.js → aisdk-4k3vg5dq.js} +15 -15
  38. package/dist/chunks/{state-6hjx5zpb.js → aisdk-4nj4bn9q.js} +9 -9
  39. package/dist/chunks/{state-36c3ee22.js → aisdk-4rp1d96y.js} +25 -25
  40. package/dist/chunks/{state-g686f6pq.js → aisdk-4xdpab2z.js} +9 -9
  41. package/dist/chunks/{state-jbrpfam1.js → aisdk-51zbrdrj.js} +33 -33
  42. package/dist/chunks/{state-c2sed5cq.js → aisdk-5epte933.js} +2 -2
  43. package/dist/chunks/{state-5m9w47nd.js → aisdk-5m9w47nd.js} +1 -1
  44. package/dist/chunks/{state-kgen349b.js → aisdk-5mqg4y6p.js} +9 -9
  45. package/dist/chunks/{state-ra5zedqg.js → aisdk-5xqnd2py.js} +28 -28
  46. package/dist/chunks/{state-8vwdhsen.js → aisdk-64hykmhj.js} +21 -21
  47. package/dist/chunks/{state-6827pfxn.js → aisdk-6827pfxn.js} +1 -1
  48. package/dist/chunks/{state-jangkfdc.js → aisdk-6h8mhza0.js} +11 -11
  49. package/dist/chunks/{state-e4qzknek.js → aisdk-6jg6e7qm.js} +11 -11
  50. package/dist/chunks/{state-skfgvw6a.js → aisdk-6pcp10ab.js} +39 -39
  51. package/dist/chunks/{state-zhxpdph0.js → aisdk-6qdkdryh.js} +137 -137
  52. package/dist/chunks/{state-m1zv8vg2.js → aisdk-6ranmm6y.js} +17 -17
  53. package/dist/chunks/{state-fe1j0m2p.js → aisdk-6se6dzbq.js} +5 -5
  54. package/dist/chunks/{state-6xb47vfp.js → aisdk-6xb47vfp.js} +1 -1
  55. package/dist/chunks/{state-j5h5wtv3.js → aisdk-6xwgnd5y.js} +8 -8
  56. package/dist/chunks/{state-4xpgt2w9.js → aisdk-6yz0wx8n.js} +5 -5
  57. package/dist/chunks/{state-bea3g4pw.js → aisdk-70a8yax9.js} +8 -8
  58. package/dist/chunks/{state-w9683aa4.js → aisdk-70qy5gsz.js} +15 -15
  59. package/dist/chunks/{state-bgw4pfqr.js → aisdk-74dbrd1v.js} +11 -11
  60. package/dist/chunks/{state-yd4bzqjj.js → aisdk-76rvckpe.js} +5 -5
  61. package/dist/chunks/{state-775gj3j1.js → aisdk-775gj3j1.js} +2 -2
  62. package/dist/chunks/{state-rz015waj.js → aisdk-79s4y9te.js} +11 -11
  63. package/dist/chunks/{state-7bmhse3q.js → aisdk-7bmhse3q.js} +1 -1
  64. package/dist/chunks/{state-5fec3t3w.js → aisdk-7cx595n2.js} +4 -4
  65. package/dist/chunks/{state-7wftzz1s.js → aisdk-7jgz7t5s.js} +12 -12
  66. package/dist/chunks/{state-g9k9gtcq.js → aisdk-7m1d6sc0.js} +11 -11
  67. package/dist/chunks/{state-b6khc3p6.js → aisdk-7nb0j301.js} +11 -11
  68. package/dist/chunks/{state-1degfmvd.js → aisdk-7q3bkqfb.js} +19 -19
  69. package/dist/chunks/{state-12rden0r.js → aisdk-83ey9fxt.js} +13 -13
  70. package/dist/chunks/{state-w1eejvng.js → aisdk-84txncab.js} +5 -5
  71. package/dist/chunks/{state-3y0h35ga.js → aisdk-875hp0v4.js} +16 -16
  72. package/dist/chunks/{state-4yqedry9.js → aisdk-8bxrgrk0.js} +16 -16
  73. package/dist/chunks/{state-nxwqj47z.js → aisdk-8f56w51t.js} +24 -24
  74. package/dist/chunks/{state-8m6m0r52.js → aisdk-8m6m0r52.js} +1 -1
  75. package/dist/chunks/{state-ngyhb3xw.js → aisdk-8wbxkt1z.js} +4 -4
  76. package/dist/chunks/{state-h7tvrppv.js → aisdk-91mz4wj7.js} +21 -21
  77. package/dist/chunks/{state-5yzzbxa7.js → aisdk-9hn6k4tm.js} +8 -8
  78. package/dist/chunks/{state-qgnwqvsz.js → aisdk-9j4ry0rw.js} +11 -11
  79. package/dist/chunks/{state-sgsbd493.js → aisdk-9mcrn8z0.js} +8 -8
  80. package/dist/chunks/{state-pdxm3yxv.js → aisdk-9n365qnn.js} +18 -18
  81. package/dist/chunks/aisdk-9sh4wc5j.js +18 -0
  82. package/dist/chunks/{state-w2h1ghwm.js → aisdk-9w7t8wnk.js} +4 -4
  83. package/dist/chunks/{state-wt4renp3.js → aisdk-a09060d2.js} +20 -20
  84. package/dist/chunks/{state-c7h7h1sa.js → aisdk-a3f1fsja.js} +16 -16
  85. package/dist/chunks/{state-v5dkyp31.js → aisdk-a46v4e4v.js} +4 -4
  86. package/dist/chunks/{state-addxnjmp.js → aisdk-addxnjmp.js} +1 -1
  87. package/dist/chunks/{state-vwpcpzep.js → aisdk-ahd542yp.js} +8 -8
  88. package/dist/chunks/{state-68rj5w6w.js → aisdk-an9zbwa9.js} +18 -18
  89. package/dist/chunks/{state-32c6d2g9.js → aisdk-ap4w3rzp.js} +18 -18
  90. package/dist/chunks/{state-e3d48see.js → aisdk-ax9sbbz8.js} +10 -10
  91. package/dist/chunks/{state-c5ggqzvz.js → aisdk-b12fh71z.js} +5 -5
  92. package/dist/chunks/{state-cdzn34jf.js → aisdk-b4ytdsdb.js} +11 -11
  93. package/dist/chunks/{state-kepm3fq6.js → aisdk-b8xm5rgb.js} +15 -15
  94. package/dist/chunks/aisdk-bdfb4q3w.js +26 -0
  95. package/dist/chunks/{state-cbpk9ydt.js → aisdk-bjnty173.js} +40 -40
  96. package/dist/chunks/{state-bjx1sjef.js → aisdk-bjx1sjef.js} +2 -2
  97. package/dist/chunks/{state-830wccwk.js → aisdk-bpxb72je.js} +34 -34
  98. package/dist/chunks/{state-c1fqxshp.js → aisdk-c1fqxshp.js} +3 -3
  99. package/dist/chunks/{state-9g63gfxm.js → aisdk-cbkgmcqe.js} +30 -30
  100. package/dist/chunks/{state-hpdd1er4.js → aisdk-cbtmrey0.js} +32 -32
  101. package/dist/chunks/{state-djszqvmq.js → aisdk-cpneeje0.js} +9 -9
  102. package/dist/chunks/{state-d1c3kaqr.js → aisdk-d0q8q246.js} +29 -29
  103. package/dist/chunks/{state-t8byfdwz.js → aisdk-d31g3ckh.js} +308 -308
  104. package/dist/chunks/{state-4e3zx06r.js → aisdk-d335wv2a.js} +16 -16
  105. package/dist/chunks/{state-skqv3z06.js → aisdk-d48x6jcz.js} +9 -9
  106. package/dist/chunks/{state-1e7ww9bh.js → aisdk-d5t2jb6p.js} +6 -6
  107. package/dist/chunks/{state-asmz18sf.js → aisdk-dbt3qtfn.js} +22 -22
  108. package/dist/chunks/{state-944z6h65.js → aisdk-dgwyq2v0.js} +43 -43
  109. package/dist/chunks/{state-y71avatq.js → aisdk-dpkg50ah.js} +4 -4
  110. package/dist/chunks/{state-xfkkasph.js → aisdk-drwq78ky.js} +4 -4
  111. package/dist/chunks/{state-amjr18r9.js → aisdk-dyhakcmm.js} +3 -3
  112. package/dist/chunks/{state-1p4qe8rf.js → aisdk-e2nch71j.js} +8 -8
  113. package/dist/chunks/{state-vp6xanzc.js → aisdk-e7298pbw.js} +30 -30
  114. package/dist/chunks/{state-2a6rn6yr.js → aisdk-edbfpfck.js} +6 -6
  115. package/dist/chunks/{state-eej6y6fw.js → aisdk-eej6y6fw.js} +2 -2
  116. package/dist/chunks/{state-ef5x83kb.js → aisdk-ef5x83kb.js} +1 -1
  117. package/dist/chunks/{state-zsjyy8cs.js → aisdk-egt26144.js} +28 -28
  118. package/dist/chunks/{state-amqjr904.js → aisdk-ekjfvpgh.js} +13 -13
  119. package/dist/chunks/{state-sc62fwhg.js → aisdk-eyy6pa5s.js} +2 -2
  120. package/dist/chunks/{state-sr8dhdek.js → aisdk-f0jrrk8m.js} +37 -37
  121. package/dist/chunks/{state-g5gtgc56.js → aisdk-f1nb0rk8.js} +18 -18
  122. package/dist/chunks/{state-w8e3kjgk.js → aisdk-f4kv1xja.js} +11 -11
  123. package/dist/chunks/{state-pr9wjwdp.js → aisdk-f6qjwz0a.js} +13 -13
  124. package/dist/chunks/{state-7dqw4kz8.js → aisdk-fcrkznn8.js} +5 -5
  125. package/dist/chunks/{state-fcy631f0.js → aisdk-fcy631f0.js} +1 -1
  126. package/dist/chunks/{state-nrk5vjbf.js → aisdk-fegk541e.js} +5 -5
  127. package/dist/chunks/{state-nezvftw4.js → aisdk-fn24ytry.js} +2 -2
  128. package/dist/chunks/{state-93jtvh07.js → aisdk-fpcy6920.js} +7 -7
  129. package/dist/chunks/{state-yfg8gsqz.js → aisdk-fq42x2x4.js} +15 -15
  130. package/dist/chunks/{state-r9yctxmr.js → aisdk-fsem3xgy.js} +4 -4
  131. package/dist/chunks/{state-fxaymqdw.js → aisdk-fxaymqdw.js} +1 -1
  132. package/dist/chunks/{state-k4n40zz3.js → aisdk-g2gn91pk.js} +18 -18
  133. package/dist/chunks/{state-gd4qta3r.js → aisdk-gd4qta3r.js} +1 -1
  134. package/dist/chunks/{state-fphjyfn7.js → aisdk-gkb8hfxz.js} +6 -6
  135. package/dist/chunks/{state-wxb0hg2e.js → aisdk-gnza20my.js} +3 -3
  136. package/dist/chunks/{state-n53dqfr6.js → aisdk-gtg0yfsx.js} +4 -4
  137. package/dist/chunks/{state-rz6s0eqf.js → aisdk-h2hf2vvh.js} +8 -8
  138. package/dist/chunks/{state-pyjedrk0.js → aisdk-h3405n8r.js} +12 -12
  139. package/dist/chunks/{state-h6vf3j39.js → aisdk-h6vf3j39.js} +1 -1
  140. package/dist/chunks/{state-h7s7r6s9.js → aisdk-h7s7r6s9.js} +2 -2
  141. package/dist/chunks/{state-4z58m4b4.js → aisdk-h9wp8z5w.js} +4 -4
  142. package/dist/chunks/{state-hgz4x7wa.js → aisdk-hgz4x7wa.js} +1 -1
  143. package/dist/chunks/{state-w4axh9wz.js → aisdk-hhkdq0n7.js} +8 -8
  144. package/dist/chunks/{state-6szz86ph.js → aisdk-hqnngn8j.js} +6 -6
  145. package/dist/chunks/{state-r1cv1102.js → aisdk-hsxxxj2g.js} +26 -26
  146. package/dist/chunks/{state-ejm2mja7.js → aisdk-hy512mf0.js} +19 -19
  147. package/dist/chunks/{state-dqfn4xgm.js → aisdk-hydvx0bh.js} +1 -1
  148. package/dist/chunks/{state-91qna3x0.js → aisdk-j09zfasm.js} +3 -3
  149. package/dist/chunks/{state-p8jakte0.js → aisdk-j0wfdg0j.js} +68 -68
  150. package/dist/chunks/{state-c46vpdfe.js → aisdk-j5ea0gxc.js} +30 -30
  151. package/dist/chunks/{state-p7b5znyc.js → aisdk-j7b563xx.js} +10 -10
  152. package/dist/chunks/{state-kt95y7ck.js → aisdk-j7shp2nh.js} +6 -6
  153. package/dist/chunks/{state-tgjzfg6g.js → aisdk-j8s3b3b0.js} +2 -2
  154. package/dist/chunks/{state-nmh3d9z7.js → aisdk-jbnyf9pt.js} +18 -18
  155. package/dist/chunks/{state-hyay7qq8.js → aisdk-jfsx45fr.js} +8 -8
  156. package/dist/chunks/{state-t2tm0scr.js → aisdk-jmtx8h4d.js} +9 -9
  157. package/dist/chunks/{state-50b15zdf.js → aisdk-jncq68bc.js} +11 -11
  158. package/dist/chunks/{state-52wgxwr3.js → aisdk-jq16bmns.js} +13 -13
  159. package/dist/chunks/{state-0jb86j0j.js → aisdk-jq76mnv4.js} +26 -26
  160. package/dist/chunks/{state-geenf2p7.js → aisdk-jztcgc0p.js} +23 -23
  161. package/dist/chunks/{state-tb1hhae9.js → aisdk-k3525xym.js} +14 -14
  162. package/dist/chunks/{state-0a9v6p0f.js → aisdk-k3sfpeqe.js} +3 -3
  163. package/dist/chunks/{state-6pj4aq9f.js → aisdk-k5zc9ap2.js} +12 -12
  164. package/dist/chunks/{state-1nhqthzg.js → aisdk-k9vwfj98.js} +6 -6
  165. package/dist/chunks/{state-r3bk1756.js → aisdk-kamb3qsf.js} +8 -8
  166. package/dist/chunks/{state-yht2bm2a.js → aisdk-kcyv1s8t.js} +35 -35
  167. package/dist/chunks/{state-qxvxcxx4.js → aisdk-ke19jgsp.js} +42 -42
  168. package/dist/chunks/{state-vjttfn3j.js → aisdk-kkgz0y6d.js} +7 -7
  169. package/dist/chunks/{state-0b5g1ynf.js → aisdk-kqx1b4hy.js} +4 -4
  170. package/dist/chunks/{state-kwb1v3vj.js → aisdk-kwb1v3vj.js} +1 -1
  171. package/dist/chunks/{state-04xdpyc7.js → aisdk-m4qw7nje.js} +2 -2
  172. package/dist/chunks/{state-ptm6ehsf.js → aisdk-m66w712w.js} +23 -23
  173. package/dist/chunks/{state-v03m1nmw.js → aisdk-m6q0me2f.js} +11 -11
  174. package/dist/chunks/{state-m9w0rfyh.js → aisdk-m9w0rfyh.js} +1 -1
  175. package/dist/chunks/{state-maspj1v3.js → aisdk-maspj1v3.js} +1 -1
  176. package/dist/chunks/{state-3jyr06yg.js → aisdk-mbbzmfev.js} +7 -7
  177. package/dist/chunks/{state-06fwzbc7.js → aisdk-mjp5m37f.js} +24 -24
  178. package/dist/chunks/{state-826pmkg6.js → aisdk-mvj51z83.js} +3 -3
  179. package/dist/chunks/{state-vppcbm3y.js → aisdk-n19kh25r.js} +10 -10
  180. package/dist/chunks/{state-ghz6dcrw.js → aisdk-n4d3d4w3.js} +11 -11
  181. package/dist/chunks/{state-mqmm1j72.js → aisdk-n4dsv9re.js} +1 -1
  182. package/dist/chunks/{state-9zs8zr4d.js → aisdk-n4k6cgy2.js} +20 -20
  183. package/dist/chunks/{state-kshw4apv.js → aisdk-n5q83168.js} +5 -5
  184. package/dist/chunks/{state-3f5qvfyk.js → aisdk-n7nced9r.js} +34 -34
  185. package/dist/chunks/{state-yk343m11.js → aisdk-n7z5axv5.js} +43 -43
  186. package/dist/chunks/{state-djhm8fct.js → aisdk-njdy6mf5.js} +1 -1
  187. package/dist/chunks/{state-r2z489rp.js → aisdk-nma959mg.js} +3 -3
  188. package/dist/chunks/{state-vv030mg9.js → aisdk-nwdmf1ca.js} +4 -4
  189. package/dist/chunks/{state-byqfybbv.js → aisdk-nxcy3rgr.js} +10 -10
  190. package/dist/chunks/{state-nq2ddahe.js → aisdk-nxxzakdb.js} +20 -20
  191. package/dist/chunks/{state-46mv6j9f.js → aisdk-p7nf93c6.js} +4 -4
  192. package/dist/chunks/{state-j3bjw6yh.js → aisdk-p8593brn.js} +11 -11
  193. package/dist/chunks/{state-tjedn1bk.js → aisdk-pct1c8gm.js} +4 -4
  194. package/dist/chunks/{state-pjvnvgmy.js → aisdk-pjvnvgmy.js} +1 -1
  195. package/dist/chunks/{state-pknna89w.js → aisdk-pknna89w.js} +1 -1
  196. package/dist/chunks/{state-5trgskkw.js → aisdk-prbmj0rt.js} +22 -22
  197. package/dist/chunks/{state-d32520t0.js → aisdk-q25vhvzg.js} +15 -15
  198. package/dist/chunks/{state-f9d85sya.js → aisdk-q87czp7c.js} +48 -48
  199. package/dist/chunks/{state-kmheh9sq.js → aisdk-q9e3qk30.js} +6 -6
  200. package/dist/chunks/{state-f6b8xx7n.js → aisdk-qfja8fnv.js} +7 -7
  201. package/dist/chunks/{state-9ye1n4d4.js → aisdk-qk802j1v.js} +15 -15
  202. package/dist/chunks/{state-qnc92qwc.js → aisdk-qnc92qwc.js} +1 -1
  203. package/dist/chunks/{state-47jkzegy.js → aisdk-qne3fa44.js} +5 -5
  204. package/dist/chunks/{state-mb14aw74.js → aisdk-qp9vg2jq.js} +2 -2
  205. package/dist/chunks/{state-qsdy395h.js → aisdk-qsdy395h.js} +1 -1
  206. package/dist/chunks/{state-g21r4nge.js → aisdk-qz02d4gv.js} +11 -11
  207. package/dist/chunks/{state-cb3tvw3f.js → aisdk-r1616k2y.js} +27 -27
  208. package/dist/chunks/{state-hqf9gdsc.js → aisdk-r63tr39a.js} +81 -81
  209. package/dist/chunks/{state-yp2x3t23.js → aisdk-r8xr0va3.js} +4 -4
  210. package/dist/chunks/{state-54ma36ye.js → aisdk-r94pvvab.js} +4 -4
  211. package/dist/chunks/{state-2jxcp2qh.js → aisdk-rdnccvzq.js} +21 -21
  212. package/dist/chunks/{state-rdw6cm16.js → aisdk-rdw6cm16.js} +1 -1
  213. package/dist/chunks/{state-rert0e01.js → aisdk-rert0e01.js} +2 -2
  214. package/dist/chunks/{state-t550f9t1.js → aisdk-rhjbct0v.js} +4 -4
  215. package/dist/chunks/{state-rj3eygr5.js → aisdk-rj3eygr5.js} +2 -2
  216. package/dist/chunks/{state-dx79m8ve.js → aisdk-rk0dasmj.js} +18 -18
  217. package/dist/chunks/{state-8sze2n9a.js → aisdk-rkprpv83.js} +6 -6
  218. package/dist/chunks/{state-zvt5dnpc.js → aisdk-rpg9c19m.js} +4 -4
  219. package/dist/chunks/{state-w5y70ybv.js → aisdk-rqg4wh3j.js} +16 -16
  220. package/dist/chunks/{state-74x5w3z1.js → aisdk-rvyy05ds.js} +10 -10
  221. package/dist/chunks/{state-9smfp2a8.js → aisdk-rxp2hjjc.js} +27 -27
  222. package/dist/chunks/{state-fdht6mpx.js → aisdk-rytb5km2.js} +10 -10
  223. package/dist/chunks/{state-y2yt4szk.js → aisdk-s5met55r.js} +8 -8
  224. package/dist/chunks/{state-vnp7fp1s.js → aisdk-s8e7q1bf.js} +8 -8
  225. package/dist/chunks/{state-g9wmmzt4.js → aisdk-s97ksm5h.js} +22 -22
  226. package/dist/chunks/{state-sa8ekw3f.js → aisdk-sa8ekw3f.js} +2 -2
  227. package/dist/chunks/{state-t9b24vtt.js → aisdk-sre1ae28.js} +20 -20
  228. package/dist/chunks/{state-9h7zjkfp.js → aisdk-sv0nqeds.js} +3 -3
  229. package/dist/chunks/{state-syv4x271.js → aisdk-syv4x271.js} +1 -1
  230. package/dist/chunks/{state-aatr6m39.js → aisdk-t0tv9tfj.js} +12 -12
  231. package/dist/chunks/{state-8ftngv0m.js → aisdk-t37sm7kz.js} +18 -18
  232. package/dist/chunks/{state-x7qpwy5v.js → aisdk-t42p1cja.js} +16 -16
  233. package/dist/chunks/aisdk-t4evg6pt.js +257 -0
  234. package/dist/chunks/{state-gr68k0te.js → aisdk-t5zv7wm8.js} +43 -43
  235. package/dist/chunks/{state-54z0pcys.js → aisdk-t7g3dyv2.js} +3 -3
  236. package/dist/chunks/{state-tazgh4e4.js → aisdk-tazgh4e4.js} +1 -1
  237. package/dist/chunks/{state-tcezcvh9.js → aisdk-tcezcvh9.js} +1 -1
  238. package/dist/chunks/{state-tdstcens.js → aisdk-tdstcens.js} +1 -1
  239. package/dist/chunks/{state-v63rdfcv.js → aisdk-tkrq73cj.js} +6 -6
  240. package/dist/chunks/{state-tm0kqsz3.js → aisdk-tm0kqsz3.js} +1 -1
  241. package/dist/chunks/{state-9v4nxjff.js → aisdk-tq7jj42n.js} +12 -12
  242. package/dist/chunks/{state-acq56fsz.js → aisdk-tqfcd1w8.js} +27 -27
  243. package/dist/chunks/{state-c9t1dcyx.js → aisdk-trg32b58.js} +40 -40
  244. package/dist/chunks/{state-tt8gc4fv.js → aisdk-tt8gc4fv.js} +3 -3
  245. package/dist/chunks/{state-2kzmk4xx.js → aisdk-ty6fs3bm.js} +21 -21
  246. package/dist/chunks/{state-tyytaxap.js → aisdk-tyytaxap.js} +1 -1
  247. package/dist/chunks/{state-mmfyj663.js → aisdk-v1rq52jb.js} +6 -6
  248. package/dist/chunks/{state-v210v162.js → aisdk-v210v162.js} +2 -2
  249. package/dist/chunks/{state-awbven8r.js → aisdk-v62c8qgf.js} +10 -10
  250. package/dist/chunks/{state-v7p4zvkq.js → aisdk-v7p4zvkq.js} +2 -2
  251. package/dist/chunks/{state-r83h5v0b.js → aisdk-vcj3ae1a.js} +24 -24
  252. package/dist/chunks/{state-tvx85zav.js → aisdk-ven1q1z5.js} +8 -8
  253. package/dist/chunks/{state-veqvce7d.js → aisdk-veqvce7d.js} +1 -1
  254. package/dist/chunks/{state-x6r5yamz.js → aisdk-vk0zt8k2.js} +4 -4
  255. package/dist/chunks/{state-0y567k9j.js → aisdk-vy5h1a70.js} +11 -11
  256. package/dist/chunks/{state-vzs5sf6e.js → aisdk-vzs5sf6e.js} +1 -1
  257. package/dist/chunks/{state-w3wsvvr9.js → aisdk-w3wsvvr9.js} +1 -1
  258. package/dist/chunks/{state-gh0jst0q.js → aisdk-w4c76cxy.js} +4 -4
  259. package/dist/chunks/{state-7171kgjs.js → aisdk-w6dwx825.js} +14 -14
  260. package/dist/chunks/{state-wd87259q.js → aisdk-wd87259q.js} +1 -1
  261. package/dist/chunks/{state-dn1vkgh6.js → aisdk-wh8ww6es.js} +2 -2
  262. package/dist/chunks/{state-e2kwjmz0.js → aisdk-wmt8s7k7.js} +21 -21
  263. package/dist/chunks/{state-2je2vwxy.js → aisdk-wyyhv6hk.js} +10 -10
  264. package/dist/chunks/{state-ztxkbmy1.js → aisdk-x1k21vny.js} +17 -17
  265. package/dist/chunks/{state-4r80m7sf.js → aisdk-x5zd51fp.js} +20 -20
  266. package/dist/chunks/{state-qb7tzan5.js → aisdk-x7mwngbm.js} +26 -26
  267. package/dist/chunks/{state-hrhze3cc.js → aisdk-xh163gfe.js} +4 -4
  268. package/dist/chunks/{state-z57ykapg.js → aisdk-xs79w4qk.js} +12 -12
  269. package/dist/chunks/{state-pz18wrqx.js → aisdk-xy7hnjrw.js} +19 -19
  270. package/dist/chunks/{state-jh1xj5qc.js → aisdk-y0rx6xhh.js} +15 -15
  271. package/dist/chunks/{state-y1fvbwt7.js → aisdk-y1fvbwt7.js} +1 -1
  272. package/dist/chunks/{state-fdradw2e.js → aisdk-y4djh4py.js} +81 -81
  273. package/dist/chunks/{state-xm2cv5jq.js → aisdk-ya0qrc6d.js} +11 -11
  274. package/dist/chunks/{state-924wa2tb.js → aisdk-yh0vgczd.js} +13 -13
  275. package/dist/chunks/{state-83n4xtav.js → aisdk-ypty8jpq.js} +17 -17
  276. package/dist/chunks/{state-gd0tnyjc.js → aisdk-yqc6bamn.js} +1 -1
  277. package/dist/chunks/{state-fm72x4ef.js → aisdk-yssedqtc.js} +5 -5
  278. package/dist/chunks/{state-1xxyjdwj.js → aisdk-yzke4xj3.js} +24 -24
  279. package/dist/chunks/{state-z0bkrqjs.js → aisdk-z0bkrqjs.js} +1 -1
  280. package/dist/chunks/{state-8nc6bgmq.js → aisdk-z4gd07h5.js} +34 -34
  281. package/dist/chunks/{state-z63mj70r.js → aisdk-z51sas7x.js} +9 -9
  282. package/dist/chunks/{state-zr2ceqn5.js → aisdk-zr2ceqn5.js} +1 -1
  283. package/dist/chunks/{state-anpb8jtk.js → aisdk-zs4gxsec.js} +23 -23
  284. package/dist/chunks/{state-ka2dn2m1.js → aisdk-zsq5y3wa.js} +8 -8
  285. package/dist/chunks/{state-zxq2ej10.js → aisdk-zxq2ej10.js} +1 -1
  286. package/dist/codemode/catalog.js +1 -1
  287. package/dist/codemode/instructions.js +7 -7
  288. package/dist/codemode/tool.js +3 -3
  289. package/dist/codemode/web.js +1 -1
  290. package/dist/command.js +83 -83
  291. package/dist/config/discovery.js +84 -84
  292. package/dist/config/markdown.js +1 -1
  293. package/dist/config/normalize.js +101 -101
  294. package/dist/config/plugin/agent.js +116 -116
  295. package/dist/config/plugin/command.js +204 -204
  296. package/dist/config/plugin/compaction.js +155 -155
  297. package/dist/config/plugin/compatibility.js +135 -135
  298. package/dist/config/plugin/entry-observer.js +1 -1
  299. package/dist/config/plugin/formatter.js +117 -117
  300. package/dist/config/plugin/image.js +116 -116
  301. package/dist/config/plugin/instruction.js +116 -116
  302. package/dist/config/plugin/location-watcher.js +116 -116
  303. package/dist/config/plugin/mcp.js +123 -123
  304. package/dist/config/plugin/policy.js +115 -115
  305. package/dist/config/plugin/provider.js +116 -116
  306. package/dist/config/plugin/reference.js +118 -118
  307. package/dist/config/plugin/shell.js +116 -116
  308. package/dist/config/plugin/skill-file.js +104 -104
  309. package/dist/config/plugin/skill-scan.js +1 -1
  310. package/dist/config/plugin/skill.js +136 -136
  311. package/dist/config/plugin/snapshot.js +116 -116
  312. package/dist/config/plugin/source.js +119 -119
  313. package/dist/config/plugin/tool-output.js +117 -117
  314. package/dist/config/plugin/websearch.js +115 -115
  315. package/dist/config/plugin/worktree.js +118 -118
  316. package/dist/config/variable.js +1 -1
  317. package/dist/config/watch.js +1 -1
  318. package/dist/config.js +121 -121
  319. package/dist/credential/sql.js +2 -2
  320. package/dist/credential.js +85 -85
  321. package/dist/database/database.js +68 -68
  322. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  323. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  324. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  325. package/dist/database/drizzle/index.js +15 -15
  326. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  327. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  328. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  329. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  330. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  331. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  332. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  333. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  335. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  336. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  337. package/dist/database/drizzle.js +16 -16
  338. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  339. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  340. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  341. package/dist/database/migration/20260225215848_workspace.js +1 -1
  342. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  343. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  344. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  345. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  346. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  347. package/dist/database/migration/20260323234822_events.js +1 -1
  348. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  349. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  350. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  351. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  352. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  353. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  354. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  355. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  356. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  357. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  358. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  359. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  360. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  361. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  362. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  363. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  364. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  365. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  366. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  367. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  368. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  369. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  370. package/dist/database/migration/20260611035744_credential.js +1 -1
  371. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  372. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  373. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  374. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  375. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  376. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  377. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  378. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  379. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  380. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  381. package/dist/database/migration/20260812213948_worktree.js +1 -1
  382. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  383. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  384. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  385. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  386. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  387. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  388. package/dist/database/migration.gen.js +51 -51
  389. package/dist/database/migration.js +53 -53
  390. package/dist/database/path.js +2 -2
  391. package/dist/database/schema.gen.js +1 -1
  392. package/dist/database/schema.sql.js +1 -1
  393. package/dist/database/sqlite.bun.js +1 -1
  394. package/dist/database/sqlite.js +1 -1
  395. package/dist/database/sqlite.node.js +1 -1
  396. package/dist/database/sqlite.workerd.js +1 -1
  397. package/dist/database/v1-migration.bun.js +78 -78
  398. package/dist/database/v1-migration.js +1 -1
  399. package/dist/effect/app-node-builder.js +366 -366
  400. package/dist/effect/app-node-platform.js +2 -2
  401. package/dist/effect/keyed-mutex.js +3 -3
  402. package/dist/effect/websocket-constructor.js +1 -1
  403. package/dist/environment/driver.js +1 -1
  404. package/dist/environment/environment.js +95 -95
  405. package/dist/environment/exec-defaults.js +2 -2
  406. package/dist/environment/files.js +1 -1
  407. package/dist/environment/index.js +95 -95
  408. package/dist/environment/local.js +2 -2
  409. package/dist/environment/memory.js +2 -2
  410. package/dist/environment/unavailable.js +1 -1
  411. package/dist/event/sql.js +1 -1
  412. package/dist/event-logger.js +72 -72
  413. package/dist/file-access.js +106 -106
  414. package/dist/file-mutation.js +96 -96
  415. package/dist/file-retention.js +1 -1
  416. package/dist/filesystem/fff.bun.js +2 -2
  417. package/dist/filesystem/fff.js +1 -1
  418. package/dist/filesystem/fff.node.js +2 -2
  419. package/dist/filesystem/fff.workerd.js +2 -2
  420. package/dist/filesystem/location-watcher-policy.js +6 -6
  421. package/dist/filesystem/location-watcher.js +219 -219
  422. package/dist/filesystem/protected.js +1 -1
  423. package/dist/filesystem/search.js +101 -101
  424. package/dist/filesystem/watcher-binding.js +1 -1
  425. package/dist/filesystem/watcher.js +15 -15
  426. package/dist/filesystem.js +104 -104
  427. package/dist/form.js +82 -82
  428. package/dist/formatter/builtins.js +4 -4
  429. package/dist/formatter.js +89 -89
  430. package/dist/generate.js +106 -106
  431. package/dist/git.js +6 -6
  432. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  433. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  434. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  435. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  436. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  437. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  438. package/dist/github-copilot/copilot-provider.js +17 -17
  439. package/dist/github-copilot/models.js +93 -93
  440. package/dist/github-copilot/openai-compatible-error.js +1 -1
  441. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  442. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  443. package/dist/github-copilot/responses/openai-error.js +1 -1
  444. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  445. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  446. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  447. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  448. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  449. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  450. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  451. package/dist/image/photon.js +2 -2
  452. package/dist/image.js +6 -6
  453. package/dist/instance/service.js +5 -5
  454. package/dist/instance.js +360 -360
  455. package/dist/instruction-discovery.js +86 -86
  456. package/dist/instructions/builtins.js +89 -89
  457. package/dist/instructions/index.js +3 -3
  458. package/dist/integration/connection.js +1 -1
  459. package/dist/integration.js +79 -79
  460. package/dist/job.js +80 -80
  461. package/dist/kv/sql.js +2 -2
  462. package/dist/kv.js +75 -75
  463. package/dist/location-activity.js +132 -132
  464. package/dist/location-lifecycle.js +109 -109
  465. package/dist/location-service-map.js +86 -86
  466. package/dist/location-services.js +357 -357
  467. package/dist/location.js +83 -83
  468. package/dist/managed-policy.js +8 -8
  469. package/dist/mcp/client.js +93 -93
  470. package/dist/mcp/index.js +111 -111
  471. package/dist/mcp/instructions.js +131 -131
  472. package/dist/mcp/oauth.js +80 -80
  473. package/dist/mcp/stdio.js +92 -92
  474. package/dist/mime.js +1 -1
  475. package/dist/modal/models.js +93 -93
  476. package/dist/model-resolver.js +98 -98
  477. package/dist/model-retry.js +1 -1
  478. package/dist/model.js +104 -104
  479. package/dist/models-dev.js +109 -109
  480. package/dist/oauth/page.js +1 -1
  481. package/dist/permission/saved.js +84 -84
  482. package/dist/permission/sql.js +5 -5
  483. package/dist/permission.js +113 -113
  484. package/dist/persistent-pty/binary.bun.js +1 -1
  485. package/dist/persistent-pty/daemon.js +1 -1
  486. package/dist/persistent-pty/index.js +90 -90
  487. package/dist/persistent-pty/pty-binding.js +1 -1
  488. package/dist/persistent-pty.js +77 -77
  489. package/dist/plugin/agent.js +74 -74
  490. package/dist/plugin/command.js +100 -100
  491. package/dist/plugin/hooks.js +5 -5
  492. package/dist/plugin/host.js +212 -212
  493. package/dist/plugin/identity.js +3 -3
  494. package/dist/plugin/instance.js +5 -5
  495. package/dist/plugin/internal.js +331 -331
  496. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  497. package/dist/plugin/models-dev.js +98 -98
  498. package/dist/plugin/module.js +115 -115
  499. package/dist/plugin/optimize.js +4 -4
  500. package/dist/plugin/plan.js +104 -104
  501. package/dist/plugin/promise.js +1 -1
  502. package/dist/plugin/provider/amazon-bedrock.js +92 -92
  503. package/dist/plugin/provider/azure.js +116 -116
  504. package/dist/plugin/provider/cerebras.js +1 -1
  505. package/dist/plugin/provider/chatgpt.js +116 -116
  506. package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
  507. package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
  508. package/dist/plugin/provider/cohere.js +2 -2
  509. package/dist/plugin/provider/configured.js +112 -112
  510. package/dist/plugin/provider/databricks.js +1 -1
  511. package/dist/plugin/provider/digitalocean.js +95 -95
  512. package/dist/plugin/provider/dynamic.js +2 -2
  513. package/dist/plugin/provider/factory.js +1 -1
  514. package/dist/plugin/provider/github-copilot.js +97 -97
  515. package/dist/plugin/provider/gitlab.js +95 -95
  516. package/dist/plugin/provider/google-vertex.js +113 -113
  517. package/dist/plugin/provider/kilo.js +1 -1
  518. package/dist/plugin/provider/llmgateway.js +80 -80
  519. package/dist/plugin/provider/lmstudio.js +125 -125
  520. package/dist/plugin/provider/local.js +122 -122
  521. package/dist/plugin/provider/modal.js +94 -94
  522. package/dist/plugin/provider/neon.js +1 -1
  523. package/dist/plugin/provider/nvidia.js +1 -1
  524. package/dist/plugin/provider/ollama.js +125 -125
  525. package/dist/plugin/provider/openai.js +118 -118
  526. package/dist/plugin/provider/opencode.js +100 -100
  527. package/dist/plugin/provider/openrouter.js +93 -93
  528. package/dist/plugin/provider/perplexity.js +2 -2
  529. package/dist/plugin/provider/poe.js +81 -81
  530. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  531. package/dist/plugin/provider/sap-ai-core.js +93 -93
  532. package/dist/plugin/provider/sdk-factory.js +1 -1
  533. package/dist/plugin/provider/snowflake-cortex.js +115 -115
  534. package/dist/plugin/provider/vercel.js +92 -92
  535. package/dist/plugin/provider/vllm.js +125 -125
  536. package/dist/plugin/provider/xai.js +93 -93
  537. package/dist/plugin/provider/zenmux.js +1 -1
  538. package/dist/plugin/provider.js +168 -168
  539. package/dist/plugin/sdk.js +76 -76
  540. package/dist/plugin/service.js +3 -3
  541. package/dist/plugin/skill.js +132 -132
  542. package/dist/plugin/source-directory.js +1 -1
  543. package/dist/plugin/supervisor.js +348 -348
  544. package/dist/plugin/tool-input-repair.js +4 -4
  545. package/dist/plugin/update.js +6 -6
  546. package/dist/plugin/vcs/git.js +88 -88
  547. package/dist/plugin/vcs/hg.js +88 -88
  548. package/dist/plugin/verbosity.js +95 -95
  549. package/dist/plugin/warming.js +114 -114
  550. package/dist/plugin/websearch/exa.js +7 -7
  551. package/dist/plugin/websearch/firecrawl.js +6 -6
  552. package/dist/plugin/websearch/index.js +9 -9
  553. package/dist/plugin/websearch/mcp.js +2 -2
  554. package/dist/plugin/websearch/parallel.js +6 -6
  555. package/dist/plugin/websearch/tavily.js +6 -6
  556. package/dist/plugin/websearch/tinyfish.js +8 -8
  557. package/dist/plugin.js +223 -223
  558. package/dist/project/schema.js +2 -2
  559. package/dist/project/sql.js +4 -4
  560. package/dist/project.js +82 -82
  561. package/dist/provider.js +91 -91
  562. package/dist/pty/protocol.js +1 -1
  563. package/dist/pty/ticket.js +1 -1
  564. package/dist/pty.js +99 -99
  565. package/dist/reference/instructions.js +91 -91
  566. package/dist/reference.js +93 -93
  567. package/dist/repository-cache.js +83 -83
  568. package/dist/repository.js +3 -3
  569. package/dist/ripgrep/binary.js +2 -2
  570. package/dist/ripgrep.js +99 -99
  571. package/dist/rpc.js +88 -88
  572. package/dist/schema.js +1 -1
  573. package/dist/session/affinity.js +3 -3
  574. package/dist/session/command.js +76 -76
  575. package/dist/session/compaction.js +138 -138
  576. package/dist/session/context.js +155 -155
  577. package/dist/session/diff.js +90 -90
  578. package/dist/session/environment.js +5 -5
  579. package/dist/session/error.js +5 -5
  580. package/dist/session/event.js +1 -1
  581. package/dist/session/execution/restart.js +215 -215
  582. package/dist/session/execution.js +129 -129
  583. package/dist/session/generate.js +157 -157
  584. package/dist/session/history.js +13 -13
  585. package/dist/session/inbox.js +88 -88
  586. package/dist/session/info.js +3 -3
  587. package/dist/session/instruction-entry.js +79 -79
  588. package/dist/session/instruction-state.js +8 -8
  589. package/dist/session/instructions.js +99 -99
  590. package/dist/session/message-updater.js +2 -2
  591. package/dist/session/message.js +1 -1
  592. package/dist/session/model-request.js +122 -122
  593. package/dist/session/model-transport.js +9 -9
  594. package/dist/session/move.js +131 -131
  595. package/dist/session/projector.js +88 -88
  596. package/dist/session/prompt.js +107 -107
  597. package/dist/session/provider-context.js +3 -3
  598. package/dist/session/revert.js +92 -92
  599. package/dist/session/run-coordinator.js +3 -3
  600. package/dist/session/runner/index.js +3 -3
  601. package/dist/session/runner/llm.js +225 -225
  602. package/dist/session/runner/max-steps.js +1 -1
  603. package/dist/session/runner/model.js +100 -100
  604. package/dist/session/runner/publish-llm-event.js +115 -115
  605. package/dist/session/runner/retry.js +3 -3
  606. package/dist/session/runner/step.js +128 -128
  607. package/dist/session/runner/to-llm-message.js +2 -2
  608. package/dist/session/schema.js +3 -3
  609. package/dist/session/session.js +164 -164
  610. package/dist/session/shell.js +130 -130
  611. package/dist/session/skill.js +107 -107
  612. package/dist/session/sql.js +5 -5
  613. package/dist/session/stats.js +75 -75
  614. package/dist/session/store.js +87 -87
  615. package/dist/session/subagent-completion.js +1 -1
  616. package/dist/session/subagent-job.js +206 -206
  617. package/dist/session/system-prompt.js +3 -3
  618. package/dist/session/title.js +159 -159
  619. package/dist/session/to-session-error.js +113 -113
  620. package/dist/session/transfer.js +206 -206
  621. package/dist/session/usage.js +1 -1
  622. package/dist/session.js +210 -210
  623. package/dist/shell/parse.js +6 -6
  624. package/dist/shell/result.js +1 -1
  625. package/dist/shell/scan.js +1 -1
  626. package/dist/shell/select.js +11 -11
  627. package/dist/shell.js +132 -132
  628. package/dist/skill/discovery.js +6 -6
  629. package/dist/skill/instructions.js +107 -107
  630. package/dist/skill.js +116 -116
  631. package/dist/snapshot.js +95 -95
  632. package/dist/state.js +1 -1
  633. package/dist/tool/html-markdown.js +1 -1
  634. package/dist/tool/http-body.js +1 -1
  635. package/dist/tool/mcp.js +128 -128
  636. package/dist/tool/plugin/edit.js +122 -122
  637. package/dist/tool/plugin/file-diff.js +1 -1
  638. package/dist/tool/plugin/glob.js +126 -126
  639. package/dist/tool/plugin/grep.js +126 -126
  640. package/dist/tool/plugin/mcp-resource.js +119 -119
  641. package/dist/tool/plugin/opencode.js +111 -111
  642. package/dist/tool/plugin/patch.js +124 -124
  643. package/dist/tool/plugin/question.js +103 -103
  644. package/dist/tool/plugin/read.js +127 -127
  645. package/dist/tool/plugin/shell.js +209 -209
  646. package/dist/tool/plugin/skill.js +113 -113
  647. package/dist/tool/plugin/subagent.js +211 -211
  648. package/dist/tool/plugin/webfetch.js +112 -112
  649. package/dist/tool/plugin/websearch.js +114 -114
  650. package/dist/tool/plugin/write.js +122 -122
  651. package/dist/tool/read-filesystem.js +102 -102
  652. package/dist/tool/runtime.js +1 -1
  653. package/dist/tool-output.js +7 -7
  654. package/dist/tool.js +14 -14
  655. package/dist/util/error-summary.js +1 -1
  656. package/dist/util/error.js +1 -1
  657. package/dist/util/git-executable.js +2 -2
  658. package/dist/util/iife.js +1 -1
  659. package/dist/util/lazy.js +1 -1
  660. package/dist/util/slug.js +1 -1
  661. package/dist/util/token.js +1 -1
  662. package/dist/util/which.js +1 -1
  663. package/dist/util/wildcard.js +1 -1
  664. package/dist/v1/config/agent.js +7 -7
  665. package/dist/v1/config/command.js +3 -3
  666. package/dist/v1/config/error.js +2 -2
  667. package/dist/v1/config/mcp.js +4 -4
  668. package/dist/v1/config/migrate.js +94 -94
  669. package/dist/v1/config/permission.js +3 -3
  670. package/dist/v1/config/plugin.js +3 -3
  671. package/dist/v1/config/provider-options.js +1 -1
  672. package/dist/v1/config/provider.js +4 -4
  673. package/dist/variant.js +93 -93
  674. package/dist/vcs/patch.js +1 -1
  675. package/dist/vcs.js +91 -91
  676. package/dist/voice.js +88 -88
  677. package/dist/websearch.js +84 -84
  678. package/dist/wellknown/plugin.js +78 -78
  679. package/dist/wellknown.js +81 -81
  680. package/dist/workspace/driver.js +7 -7
  681. package/dist/workspace/sql.js +1 -1
  682. package/dist/workspace.js +84 -84
  683. package/dist/worktree/directory.js +2 -2
  684. package/dist/worktree/git.js +10 -10
  685. package/dist/worktree/sql.js +5 -5
  686. package/dist/worktree/strategies.js +91 -91
  687. package/dist/worktree.js +98 -98
  688. package/package.json +8 -8
  689. package/dist/chunks/state-by5v678g.js +0 -18
  690. package/dist/chunks/state-nxyky8fq.js +0 -26
  691. package/dist/chunks/state-v0yrtskr.js +0 -257
  692. /package/dist/chunks/{state-0qkdqm5v.js → aisdk-0qkdqm5v.js} +0 -0
  693. /package/dist/chunks/{state-0zkw76rk.js → aisdk-0zkw76rk.js} +0 -0
  694. /package/dist/chunks/{state-17cy0kzp.js → aisdk-17cy0kzp.js} +0 -0
  695. /package/dist/chunks/{state-1cnp2v09.js → aisdk-1cnp2v09.js} +0 -0
  696. /package/dist/chunks/{state-1kg9ymc8.js → aisdk-1kg9ymc8.js} +0 -0
  697. /package/dist/chunks/{state-24dcb14g.js → aisdk-24dcb14g.js} +0 -0
  698. /package/dist/chunks/{state-2710q6r3.js → aisdk-2710q6r3.js} +0 -0
  699. /package/dist/chunks/{state-2axfhc9x.js → aisdk-2axfhc9x.js} +0 -0
  700. /package/dist/chunks/{state-2bv980vf.js → aisdk-2bv980vf.js} +0 -0
  701. /package/dist/chunks/{state-2c3vjs8z.js → aisdk-2c3vjs8z.js} +0 -0
  702. /package/dist/chunks/{state-359p4xyc.js → aisdk-359p4xyc.js} +0 -0
  703. /package/dist/chunks/{state-3asan66x.js → aisdk-3asan66x.js} +0 -0
  704. /package/dist/chunks/{state-3t0ybcrp.js → aisdk-3t0ybcrp.js} +0 -0
  705. /package/dist/chunks/{state-3v8g72cx.js → aisdk-3v8g72cx.js} +0 -0
  706. /package/dist/chunks/{state-3wcehsnq.js → aisdk-3wcehsnq.js} +0 -0
  707. /package/dist/chunks/{state-43n2bw4t.js → aisdk-43n2bw4t.js} +0 -0
  708. /package/dist/chunks/{state-4knz6hnm.js → aisdk-4knz6hnm.js} +0 -0
  709. /package/dist/chunks/{state-4vcrnpx2.js → aisdk-4vcrnpx2.js} +0 -0
  710. /package/dist/chunks/{state-4y7fprxs.js → aisdk-4y7fprxs.js} +0 -0
  711. /package/dist/chunks/{state-53557ph1.js → aisdk-53557ph1.js} +0 -0
  712. /package/dist/chunks/{state-550bvhaj.js → aisdk-550bvhaj.js} +0 -0
  713. /package/dist/chunks/{state-6prwharc.js → aisdk-6prwharc.js} +0 -0
  714. /package/dist/chunks/{state-6q2bdcd1.js → aisdk-6q2bdcd1.js} +0 -0
  715. /package/dist/chunks/{state-7akdwqpd.js → aisdk-7akdwqpd.js} +0 -0
  716. /package/dist/chunks/{state-7m9af43g.js → aisdk-7m9af43g.js} +0 -0
  717. /package/dist/chunks/{state-822emrt2.js → aisdk-822emrt2.js} +0 -0
  718. /package/dist/chunks/{state-84wd9syh.js → aisdk-84wd9syh.js} +0 -0
  719. /package/dist/chunks/{state-88xbtdfr.js → aisdk-88xbtdfr.js} +0 -0
  720. /package/dist/chunks/{state-8n3pysct.js → aisdk-8n3pysct.js} +0 -0
  721. /package/dist/chunks/{state-8wj87zfr.js → aisdk-8wj87zfr.js} +0 -0
  722. /package/dist/chunks/{state-9a4afbnw.js → aisdk-9a4afbnw.js} +0 -0
  723. /package/dist/chunks/{state-9rqn6x4v.js → aisdk-9rqn6x4v.js} +0 -0
  724. /package/dist/chunks/{state-a6k6eb26.js → aisdk-a6k6eb26.js} +0 -0
  725. /package/dist/chunks/{state-af5trqkr.js → aisdk-af5trqkr.js} +0 -0
  726. /package/dist/chunks/{state-afrmfg78.js → aisdk-afrmfg78.js} +0 -0
  727. /package/dist/chunks/{state-aqzs7mqg.js → aisdk-aqzs7mqg.js} +0 -0
  728. /package/dist/chunks/{state-atq7p7m5.js → aisdk-atq7p7m5.js} +0 -0
  729. /package/dist/chunks/{state-bkyjaxrp.js → aisdk-bkyjaxrp.js} +0 -0
  730. /package/dist/chunks/{state-bmr6ed5q.js → aisdk-bmr6ed5q.js} +0 -0
  731. /package/dist/chunks/{state-cf4snx6d.js → aisdk-cf4snx6d.js} +0 -0
  732. /package/dist/chunks/{state-cvy3z8tj.js → aisdk-cvy3z8tj.js} +0 -0
  733. /package/dist/chunks/{state-d9fn303g.js → aisdk-d9fn303g.js} +0 -0
  734. /package/dist/chunks/{state-d9jj8t3e.js → aisdk-d9jj8t3e.js} +0 -0
  735. /package/dist/chunks/{state-dajrwvna.js → aisdk-dajrwvna.js} +0 -0
  736. /package/dist/chunks/{state-dap0rakb.js → aisdk-dap0rakb.js} +0 -0
  737. /package/dist/chunks/{state-df08tz66.js → aisdk-df08tz66.js} +0 -0
  738. /package/dist/chunks/{state-dy18nga0.js → aisdk-dy18nga0.js} +0 -0
  739. /package/dist/chunks/{state-e3qxr5gk.js → aisdk-e3qxr5gk.js} +0 -0
  740. /package/dist/chunks/{state-e5kj55wp.js → aisdk-e5kj55wp.js} +0 -0
  741. /package/dist/chunks/{state-e73j6tqm.js → aisdk-e73j6tqm.js} +0 -0
  742. /package/dist/chunks/{state-ec1grn59.js → aisdk-ec1grn59.js} +0 -0
  743. /package/dist/chunks/{state-eh3zwz77.js → aisdk-eh3zwz77.js} +0 -0
  744. /package/dist/chunks/{state-emrn6kk6.js → aisdk-emrn6kk6.js} +0 -0
  745. /package/dist/chunks/{state-f0mxakyp.js → aisdk-f0mxakyp.js} +0 -0
  746. /package/dist/chunks/{state-f6n9ztr4.js → aisdk-f6n9ztr4.js} +0 -0
  747. /package/dist/chunks/{state-faypxj3z.js → aisdk-faypxj3z.js} +0 -0
  748. /package/dist/chunks/{state-fd410y7t.js → aisdk-fd410y7t.js} +0 -0
  749. /package/dist/chunks/{state-g4wezp1m.js → aisdk-g4wezp1m.js} +0 -0
  750. /package/dist/chunks/{state-g86h250q.js → aisdk-g86h250q.js} +0 -0
  751. /package/dist/chunks/{state-gebd4c9n.js → aisdk-gebd4c9n.js} +0 -0
  752. /package/dist/chunks/{state-gftt206x.js → aisdk-gftt206x.js} +0 -0
  753. /package/dist/chunks/{state-hcxmzztb.js → aisdk-hcxmzztb.js} +0 -0
  754. /package/dist/chunks/{state-hk9envan.js → aisdk-hk9envan.js} +0 -0
  755. /package/dist/chunks/{state-j2ntwpah.js → aisdk-j2ntwpah.js} +0 -0
  756. /package/dist/chunks/{state-j5zkgpj8.js → aisdk-j5zkgpj8.js} +0 -0
  757. /package/dist/chunks/{state-jjkms2e6.js → aisdk-jjkms2e6.js} +0 -0
  758. /package/dist/chunks/{state-jr7sbwjy.js → aisdk-jr7sbwjy.js} +0 -0
  759. /package/dist/chunks/{state-jwfs4k6c.js → aisdk-jwfs4k6c.js} +0 -0
  760. /package/dist/chunks/{state-jze0r7bz.js → aisdk-jze0r7bz.js} +0 -0
  761. /package/dist/chunks/{state-jzg6c2d5.js → aisdk-jzg6c2d5.js} +0 -0
  762. /package/dist/chunks/{state-m18g726c.js → aisdk-m18g726c.js} +0 -0
  763. /package/dist/chunks/{state-mp448xyj.js → aisdk-mp448xyj.js} +0 -0
  764. /package/dist/chunks/{state-msx8hqn2.js → aisdk-msx8hqn2.js} +0 -0
  765. /package/dist/chunks/{state-n05xt0ee.js → aisdk-n05xt0ee.js} +0 -0
  766. /package/dist/chunks/{state-n3j8tn72.js → aisdk-n3j8tn72.js} +0 -0
  767. /package/dist/chunks/{state-njntx4h6.js → aisdk-njntx4h6.js} +0 -0
  768. /package/dist/chunks/{state-pkyv6v7h.js → aisdk-pkyv6v7h.js} +0 -0
  769. /package/dist/chunks/{state-pyv0edze.js → aisdk-pyv0edze.js} +0 -0
  770. /package/dist/chunks/{state-q3sfg36h.js → aisdk-q3sfg36h.js} +0 -0
  771. /package/dist/chunks/{state-q74kybfr.js → aisdk-q74kybfr.js} +0 -0
  772. /package/dist/chunks/{state-qaymkmh1.js → aisdk-qaymkmh1.js} +0 -0
  773. /package/dist/chunks/{state-qb87gjwd.js → aisdk-qb87gjwd.js} +0 -0
  774. /package/dist/chunks/{state-qfa1cgps.js → aisdk-qfa1cgps.js} +0 -0
  775. /package/dist/chunks/{state-qg3g05ea.js → aisdk-qg3g05ea.js} +0 -0
  776. /package/dist/chunks/{state-qrg20bc0.js → aisdk-qrg20bc0.js} +0 -0
  777. /package/dist/chunks/{state-rcb2kzg1.js → aisdk-rcb2kzg1.js} +0 -0
  778. /package/dist/chunks/{state-sdp7kfr6.js → aisdk-sdp7kfr6.js} +0 -0
  779. /package/dist/chunks/{state-ssg3fenm.js → aisdk-ssg3fenm.js} +0 -0
  780. /package/dist/chunks/{state-ve7vex1e.js → aisdk-ve7vex1e.js} +0 -0
  781. /package/dist/chunks/{state-w803qqfp.js → aisdk-w803qqfp.js} +0 -0
  782. /package/dist/chunks/{state-wc3fc9cn.js → aisdk-wc3fc9cn.js} +0 -0
  783. /package/dist/chunks/{state-wer8tq1h.js → aisdk-wer8tq1h.js} +0 -0
  784. /package/dist/chunks/{state-wjj7prxr.js → aisdk-wjj7prxr.js} +0 -0
  785. /package/dist/chunks/{state-wtztk69x.js → aisdk-wtztk69x.js} +0 -0
  786. /package/dist/chunks/{state-x0ckcb58.js → aisdk-x0ckcb58.js} +0 -0
  787. /package/dist/chunks/{state-x61499pn.js → aisdk-x61499pn.js} +0 -0
  788. /package/dist/chunks/{state-y44na4kk.js → aisdk-y44na4kk.js} +0 -0
  789. /package/dist/chunks/{state-y8f7s663.js → aisdk-y8f7s663.js} +0 -0
  790. /package/dist/chunks/{state-ygaqb7jw.js → aisdk-ygaqb7jw.js} +0 -0
  791. /package/dist/chunks/{state-ym463w8f.js → aisdk-ym463w8f.js} +0 -0
  792. /package/dist/chunks/{state-z5v4ffb3.js → aisdk-z5v4ffb3.js} +0 -0
  793. /package/dist/chunks/{state-z9919s4g.js → aisdk-z9919s4g.js} +0 -0
@@ -1,41 +1,41 @@
1
1
  import {
2
- Service54
3
- } from "./state-ewwfdr8f.js";
2
+ Service63
3
+ } from "./aisdk-3npajrg6.js";
4
4
  import {
5
- ID5,
5
+ ID7,
6
6
  Name2,
7
7
  toModelOutput3,
8
8
  prepare3,
9
- Service49
10
- } from "./state-0jb86j0j.js";
9
+ Service61
10
+ } from "./aisdk-jq76mnv4.js";
11
11
  import {
12
12
  __export
13
- } from "./state-9rqn6x4v.js";
13
+ } from "./aisdk-9rqn6x4v.js";
14
14
 
15
15
  // src/tool/plugin/skill.ts
16
16
  var exports_skill2 = {};
17
17
  __export(exports_skill2, {
18
- Input: () => Input6,
19
- Output: () => Output4,
20
- Plugin: () => Plugin25,
18
+ Input: () => Input10,
19
+ Output: () => Output7,
20
+ Plugin: () => Plugin27,
21
21
  SkillTool: () => exports_skill2,
22
- description: () => description4,
23
- name: () => name6,
22
+ description: () => description5,
23
+ name: () => name10,
24
24
  toModelOutput: () => toModelOutput2
25
25
  });
26
26
  import { ToolFailure } from "@opencode/ai";
27
27
  import { Effect, Schema } from "effect";
28
28
  import { FSUtil } from "@opencode/util/fs-util";
29
- var name6 = "skill";
30
- var Input6 = Schema.Struct({
31
- id: ID5.annotate({ description: "The ID of an available skill or a skill explicitly referenced by the user" })
29
+ var name10 = "skill";
30
+ var Input10 = Schema.Struct({
31
+ id: ID7.annotate({ description: "The ID of an available skill or a skill explicitly referenced by the user" })
32
32
  });
33
- var Output4 = Schema.Struct({
33
+ var Output7 = Schema.Struct({
34
34
  name: Name2,
35
35
  directory: Schema.String,
36
36
  output: Schema.String
37
37
  });
38
- var description4 = [
38
+ var description5 = [
39
39
  "Load a specialized skill's instructions and resources into the current conversation when the task at hand matches its description.",
40
40
  "",
41
41
  "The skill ID must match an available skill or a skill explicitly referenced by the user."
@@ -43,25 +43,25 @@ var description4 = [
43
43
  `);
44
44
  var toModelOutput2 = toModelOutput3;
45
45
  var unableToLoad = (name, error) => new ToolFailure({ message: `Unable to load skill ${name}`, error });
46
- var Plugin25 = {
46
+ var Plugin27 = {
47
47
  id: "opencode.tool.skill",
48
48
  effect: Effect.fn("SkillTool.Plugin")(function* (ctx) {
49
49
  const fs = yield* FSUtil.Service;
50
- const skills = yield* Service49;
51
- const permission = yield* Service54;
50
+ const skills = yield* Service61;
51
+ const permission = yield* Service63;
52
52
  yield* ctx.tool.transform((editor) => editor.add({
53
- name: name6,
53
+ name: name10,
54
54
  options: { codemode: false },
55
- description: description4,
56
- input: Input6,
57
- output: Output4,
55
+ description: description5,
56
+ input: Input10,
57
+ output: Output7,
58
58
  execute: (input, context) => Effect.gen(function* () {
59
59
  const skill = yield* skills.get(input.id);
60
60
  if (!skill)
61
61
  return yield* unableToLoad(input.id);
62
62
  return yield* Effect.gen(function* () {
63
63
  yield* permission.assert({
64
- action: name6,
64
+ action: name10,
65
65
  resources: [skill.id],
66
66
  save: [skill.id],
67
67
  sessionID: context.sessionID,
@@ -79,4 +79,4 @@ var Plugin25 = {
79
79
  })
80
80
  };
81
81
 
82
- export { name6, Input6, Output4, description4, toModelOutput2, Plugin25, exports_skill2 };
82
+ export { name10, Input10, Output7, description5, toModelOutput2, Plugin27, exports_skill2 };
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./state-z5v4ffb3.js";
3
+ } from "./aisdk-z5v4ffb3.js";
4
4
  import {
5
5
  __export
6
- } from "./state-9rqn6x4v.js";
6
+ } from "./aisdk-9rqn6x4v.js";
7
7
 
8
8
  // src/skill/discovery.ts
9
9
  var exports_discovery = {};
10
10
  __export(exports_discovery, {
11
- Service: () => Service13,
11
+ Service: () => Service9,
12
12
  SkillDiscovery: () => exports_discovery,
13
- node: () => node15
13
+ node: () => node10
14
14
  });
15
15
  import path from "path";
16
16
  import { Context, Effect, Layer, Schedule, Schema } from "effect";
@@ -48,9 +48,9 @@ class Index extends Schema.Class("SkillDiscovery.Index")({
48
48
  }) {
49
49
  }
50
50
 
51
- class Service13 extends Context.Service()("@opencode/SkillDiscovery") {
51
+ class Service9 extends Context.Service()("@opencode/SkillDiscovery") {
52
52
  }
53
- var layer = Layer.effect(Service13, Effect.gen(function* () {
53
+ var layer = Layer.effect(Service9, Effect.gen(function* () {
54
54
  const fs = yield* FSUtil.Service;
55
55
  const global = yield* Global.Service;
56
56
  const http = (yield* HttpClient.HttpClient).pipe(HttpClient.retryTransient({
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service13, Effect.gen(function* () {
63
63
  return true;
64
64
  return yield* HttpClientRequest.get(url).pipe(http.execute, Effect.flatMap((response) => response.arrayBuffer), Effect.flatMap((body) => fs.writeWithDirs(destination, new Uint8Array(body))), Effect.as(true), Effect.catch((error) => Effect.logError("failed to download skill file", { url, error }).pipe(Effect.as(false))));
65
65
  });
66
- return Service13.of({
66
+ return Service9.of({
67
67
  pull: Effect.fn("SkillDiscovery.pull")(function* (url) {
68
68
  const base = url.endsWith("/") ? url : `${url}/`;
69
69
  const source = new URL(base);
@@ -150,6 +150,6 @@ var layer = Layer.effect(Service13, Effect.gen(function* () {
150
150
  })
151
151
  });
152
152
  }));
153
- var node15 = makeGlobalNode({ service: Service13, layer, deps: [httpClient, FSUtil.node, Global.node] });
153
+ var node10 = makeGlobalNode({ service: Service9, layer, deps: [httpClient, FSUtil.node, Global.node] });
154
154
 
155
- export { Service13, node15, exports_discovery };
155
+ export { Service9, node10, exports_discovery };
@@ -1,49 +1,49 @@
1
1
  import {
2
2
  typeFollowing2
3
- } from "./state-hgz4x7wa.js";
3
+ } from "./aisdk-hgz4x7wa.js";
4
4
  import {
5
5
  RelativePath2
6
- } from "./state-z5v4ffb3.js";
6
+ } from "./aisdk-z5v4ffb3.js";
7
7
  import {
8
8
  Service82
9
- } from "./state-nezvftw4.js";
9
+ } from "./aisdk-fn24ytry.js";
10
10
  import {
11
- Service76
12
- } from "./state-8vwdhsen.js";
11
+ Service38
12
+ } from "./aisdk-64hykmhj.js";
13
13
  import {
14
- Service74
15
- } from "./state-nmh3d9z7.js";
14
+ Service20
15
+ } from "./aisdk-jbnyf9pt.js";
16
16
  import {
17
17
  DEFAULT_SEARCH_LIMIT2,
18
18
  DEFAULT_SEARCH_TIMEOUT_MS2,
19
19
  GlobInput2,
20
20
  Entry2
21
- } from "./state-acq56fsz.js";
21
+ } from "./aisdk-tqfcd1w8.js";
22
22
  import {
23
- Service54
24
- } from "./state-ewwfdr8f.js";
23
+ Service63
24
+ } from "./aisdk-3npajrg6.js";
25
25
  import {
26
- Service17
27
- } from "./state-jh1xj5qc.js";
26
+ Service62
27
+ } from "./aisdk-y0rx6xhh.js";
28
28
  import {
29
29
  __export
30
- } from "./state-9rqn6x4v.js";
30
+ } from "./aisdk-9rqn6x4v.js";
31
31
 
32
32
  // src/tool/plugin/glob.ts
33
33
  var exports_glob = {};
34
34
  __export(exports_glob, {
35
35
  GlobTool: () => exports_glob,
36
- Input: () => Input10,
37
- Output: () => Output7,
38
- Plugin: () => Plugin29,
39
- name: () => name10,
40
- toModelContent: () => toModelContent5
36
+ Input: () => Input7,
37
+ Output: () => Output5,
38
+ Plugin: () => Plugin24,
39
+ name: () => name7,
40
+ toModelContent: () => toModelContent3
41
41
  });
42
42
  import { ToolFailure } from "@opencode/ai";
43
43
  import { Effect, Schema } from "effect";
44
44
  import path from "path";
45
- var name10 = "glob";
46
- var Input10 = Schema.Struct({
45
+ var name7 = "glob";
46
+ var Input7 = Schema.Struct({
47
47
  pattern: GlobInput2.fields.pattern.annotate({ description: "Glob pattern to match files against" }),
48
48
  path: Schema.optionalKey(RelativePath2).annotate({
49
49
  description: "Directory to search. Defaults to the current working directory."
@@ -55,35 +55,35 @@ var Input10 = Schema.Struct({
55
55
  description: `Maximum number of matching files to return (default: ${DEFAULT_SEARCH_LIMIT2})`
56
56
  })
57
57
  });
58
- var Output7 = Schema.Array(Entry2);
59
- var toModelContent5 = (entries, truncated = false) => {
58
+ var Output5 = Schema.Array(Entry2);
59
+ var toModelContent3 = (entries, truncated = false) => {
60
60
  const lines = entries.length === 0 ? ["No files found"] : entries.map((item) => item.path);
61
61
  if (truncated)
62
62
  lines.push("", `(Results are truncated: showing first ${entries.length} results. Consider using a more specific path or pattern.)`);
63
63
  return lines.join(`
64
64
  `);
65
65
  };
66
- var Plugin29 = {
66
+ var Plugin24 = {
67
67
  id: "opencode.tool.glob",
68
68
  effect: Effect.fn("GlobTool.Plugin")(function* (ctx) {
69
- const environment = yield* Service76;
70
- const ripgrep = yield* Service74;
69
+ const environment = yield* Service38;
70
+ const ripgrep = yield* Service20;
71
71
  const location = yield* Service82;
72
- const access = yield* Service17;
73
- const permission = yield* Service54;
72
+ const access = yield* Service62;
73
+ const permission = yield* Service63;
74
74
  yield* ctx.tool.transform((editor) => editor.add({
75
- name: name10,
75
+ name: name7,
76
76
  options: { codemode: false },
77
77
  description: 'Search file paths using a glob pattern (examples: "**/*.ts", "src/**/*.tsx").',
78
- input: Input10,
79
- output: Output7,
78
+ input: Input7,
79
+ output: Output5,
80
80
  execute: (input, context) => Effect.gen(function* () {
81
81
  const searchPath = input.path === "undefined" || input.path === "null" ? undefined : input.path;
82
82
  const source = { type: "tool", messageID: context.messageID, id: context.id };
83
83
  const target = yield* access.resolve({ path: searchPath ?? ".", kind: "directory" });
84
84
  yield* access.authorizeExternal([target], context);
85
85
  yield* permission.assert({
86
- action: name10,
86
+ action: name7,
87
87
  resources: [input.pattern],
88
88
  save: ["*"],
89
89
  metadata: {
@@ -118,11 +118,11 @@ var Plugin29 = {
118
118
  return { entries: entries.slice(0, limit), truncated: entries.length > limit };
119
119
  }).pipe(Effect.map((result) => ({
120
120
  output: result.entries,
121
- content: toModelContent5(result.entries.map((entry) => ({ ...entry, path: path.resolve(location.directory, entry.path) })), result.truncated),
121
+ content: toModelContent3(result.entries.map((entry) => ({ ...entry, path: path.resolve(location.directory, entry.path) })), result.truncated),
122
122
  metadata: { count: result.entries.length, truncated: result.truncated }
123
123
  })), Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to find files matching ${input.pattern}`, error })))
124
124
  })).pipe(Effect.orDie);
125
125
  })
126
126
  };
127
127
 
128
- export { name10, Input10, Output7, toModelContent5, Plugin29, exports_glob };
128
+ export { name7, Input7, Output5, toModelContent3, Plugin24, exports_glob };
@@ -2,6 +2,6 @@
2
2
  import * as SessionSchema2 from "@opencode/schema/session";
3
3
  import { Session } from "@opencode/schema/session";
4
4
  var ID10 = Session.ID;
5
- var Info18 = Session.Info;
5
+ var Info13 = Session.Info;
6
6
 
7
- export { ID10, Info18, SessionSchema2 };
7
+ export { ID10, Info13, SessionSchema2 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  loadSDKFactory2
3
- } from "./state-6q2bdcd1.js";
3
+ } from "./aisdk-6q2bdcd1.js";
4
4
 
5
5
  // src/plugin/provider/dynamic.ts
6
6
  import { Effect } from "effect";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  create3
3
- } from "./state-rdw6cm16.js";
3
+ } from "./aisdk-rdw6cm16.js";
4
4
  import {
5
5
  __export
6
- } from "./state-9rqn6x4v.js";
6
+ } from "./aisdk-9rqn6x4v.js";
7
7
 
8
8
  // src/image.ts
9
9
  var exports_image2 = {};
@@ -11,9 +11,9 @@ __export(exports_image2, {
11
11
  DecodeError: () => DecodeError2,
12
12
  Image: () => exports_image2,
13
13
  ResizerUnavailableError: () => ResizerUnavailableError2,
14
- Service: () => Service58,
14
+ Service: () => Service47,
15
15
  SizeError: () => SizeError2,
16
- node: () => node60
16
+ node: () => node52
17
17
  });
18
18
  import { makeLocationNode } from "@opencode/util/effect/app-node";
19
19
  import { Context, Effect, Layer, Schema } from "effect";
@@ -42,9 +42,9 @@ class SizeError2 extends Schema.TaggedError()("Image.SizeError", {
42
42
  }
43
43
  }
44
44
 
45
- class Service58 extends Context.Service()("@opencode/Image") {
45
+ class Service47 extends Context.Service()("@opencode/Image") {
46
46
  }
47
- var layer = Layer.effect(Service58, Effect.gen(function* () {
47
+ var layer = Layer.effect(Service47, Effect.gen(function* () {
48
48
  const state = create3({
49
49
  name: "image",
50
50
  initial: () => ({
@@ -74,8 +74,8 @@ var layer = Layer.effect(Service58, Effect.gen(function* () {
74
74
  const normalize = yield* loadAdapter;
75
75
  return yield* normalize(resource, content, state.get());
76
76
  });
77
- return Service58.of({ transform: state.transform, reload: state.reload, normalize });
77
+ return Service47.of({ transform: state.transform, reload: state.reload, normalize });
78
78
  }));
79
- var node60 = makeLocationNode({ service: Service58, layer, deps: [] });
79
+ var node52 = makeLocationNode({ service: Service47, layer, deps: [] });
80
80
 
81
- export { ResizerUnavailableError2, DecodeError2, SizeError2, Service58, node60, exports_image2 };
81
+ export { ResizerUnavailableError2, DecodeError2, SizeError2, Service47, node52, exports_image2 };
@@ -1,65 +1,65 @@
1
1
  import {
2
2
  Service86,
3
3
  node90
4
- } from "./state-0a9v6p0f.js";
4
+ } from "./aisdk-k3sfpeqe.js";
5
5
  import {
6
6
  Service85,
7
7
  node89
8
- } from "./state-r9yctxmr.js";
8
+ } from "./aisdk-fsem3xgy.js";
9
9
  import {
10
10
  CredentialTable2
11
- } from "./state-pknna89w.js";
11
+ } from "./aisdk-pknna89w.js";
12
12
  import {
13
13
  from2
14
- } from "./state-3zsf4n22.js";
14
+ } from "./aisdk-3zsf4n22.js";
15
15
  import {
16
16
  __export
17
- } from "./state-9rqn6x4v.js";
17
+ } from "./aisdk-9rqn6x4v.js";
18
18
 
19
19
  // src/credential.ts
20
20
  var exports_credential = {};
21
21
  __export(exports_credential, {
22
22
  Credential: () => exports_credential,
23
- Event: () => Event20,
23
+ Event: () => Event19,
24
24
  External: () => External2,
25
- ID: () => ID16,
26
- Info: () => Info26,
25
+ ID: () => ID15,
26
+ Info: () => Info25,
27
27
  Key: () => Key4,
28
28
  OAuth: () => OAuth3,
29
- Service: () => Service81,
29
+ Service: () => Service80,
30
30
  Value: () => Value2,
31
- node: () => node85
31
+ node: () => node84
32
32
  });
33
33
  import { asc, desc, eq } from "drizzle-orm";
34
34
  import { Cause, Context, Effect, Layer, Schema } from "effect";
35
35
  import { Credential } from "@opencode/schema/credential";
36
36
  import { Integration } from "@opencode/schema/integration";
37
37
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
38
- var ID16 = Credential.ID;
38
+ var ID15 = Credential.ID;
39
39
  var OAuth3 = Credential.OAuth;
40
40
  var Key4 = Credential.Key;
41
41
  var External2 = Credential.External;
42
42
  var Value2 = Credential.Value;
43
- var Event20 = Credential.Event;
43
+ var Event19 = Credential.Event;
44
44
 
45
- class Info26 extends Schema.Class("Credential.Info")({
46
- id: ID16,
45
+ class Info25 extends Schema.Class("Credential.Info")({
46
+ id: ID15,
47
47
  integrationID: Integration.ID,
48
48
  label: Schema.String,
49
49
  value: Value2
50
50
  }) {
51
51
  }
52
52
 
53
- class Service81 extends Context.Service()("@opencode/Credential") {
53
+ class Service80 extends Context.Service()("@opencode/Credential") {
54
54
  }
55
- var layer = Layer.effect(Service81, Effect.gen(function* () {
55
+ var layer = Layer.effect(Service80, Effect.gen(function* () {
56
56
  const db = (yield* Service86).db;
57
57
  const bus = yield* Service85;
58
58
  const decode = Schema.decodeUnknownSync(Value2);
59
59
  const stored = (row) => {
60
60
  if (!row.integration_id)
61
61
  return;
62
- return new Info26({
62
+ return new Info25({
63
63
  id: row.id,
64
64
  integrationID: row.integration_id,
65
65
  label: row.label,
@@ -70,7 +70,7 @@ var layer = Layer.effect(Service81, Effect.gen(function* () {
70
70
  const credential = stored(row);
71
71
  return credential ? [credential] : [];
72
72
  });
73
- return Service81.of({
73
+ return Service80.of({
74
74
  all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
75
75
  list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
76
76
  get: Effect.fn("Credential.get")(function* (id) {
@@ -78,8 +78,8 @@ var layer = Layer.effect(Service81, Effect.gen(function* () {
78
78
  return row ? stored(row) : undefined;
79
79
  }),
80
80
  create: Effect.fn("Credential.create")(function* (input) {
81
- const credential = new Info26({
82
- id: input.id ?? ID16.create(),
81
+ const credential = new Info25({
82
+ id: input.id ?? ID15.create(),
83
83
  integrationID: input.integrationID,
84
84
  label: input.label ?? "default",
85
85
  value: input.value
@@ -110,9 +110,9 @@ var layer = Layer.effect(Service81, Effect.gen(function* () {
110
110
  type: credential.value.type,
111
111
  active: activated
112
112
  });
113
- yield* bus.publish(Event20.Updated, {}, { global: true });
113
+ yield* bus.publish(Event19.Updated, {}, { global: true });
114
114
  if (activated)
115
- yield* bus.publish(Event20.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
115
+ yield* bus.publish(Event19.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
116
116
  return credential;
117
117
  }),
118
118
  activate: Effect.fn("Credential.activate")(function* (id) {
@@ -132,7 +132,7 @@ var layer = Layer.effect(Service81, Effect.gen(function* () {
132
132
  })), Effect.orDie);
133
133
  if (integrationID) {
134
134
  yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
135
- yield* bus.publish(Event20.Switched, { integrationID, credentialID: id }, { global: true });
135
+ yield* bus.publish(Event19.Switched, { integrationID, credentialID: id }, { global: true });
136
136
  }
137
137
  }),
138
138
  update: Effect.fn("Credential.update")(function* (id, updates) {
@@ -164,7 +164,7 @@ var layer = Layer.effect(Service81, Effect.gen(function* () {
164
164
  labelChanged: updates.label !== undefined && updates.label !== credential.label
165
165
  });
166
166
  if (updates.label !== undefined && updates.label !== credential.label)
167
- yield* bus.publish(Event20.Updated, {}, { global: true });
167
+ yield* bus.publish(Event19.Updated, {}, { global: true });
168
168
  }),
169
169
  remove: Effect.fn("Credential.remove")(function* (id) {
170
170
  const removed = yield* db.transaction((tx) => Effect.gen(function* () {
@@ -197,12 +197,12 @@ var layer = Layer.effect(Service81, Effect.gen(function* () {
197
197
  active: removed.switched,
198
198
  ...removed.switched ? { replacementID: removed.credentialID } : {}
199
199
  });
200
- yield* bus.publish(Event20.Updated, {}, { global: true });
200
+ yield* bus.publish(Event19.Updated, {}, { global: true });
201
201
  if (removed.switched)
202
- yield* bus.publish(Event20.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
202
+ yield* bus.publish(Event19.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
203
203
  })
204
204
  });
205
205
  }));
206
- var node85 = makeGlobalNode({ service: Service81, layer, deps: [node90, node89] });
206
+ var node84 = makeGlobalNode({ service: Service80, layer, deps: [node90, node89] });
207
207
 
208
- export { ID16, OAuth3, Key4, External2, Value2, Event20, Info26, Service81, node85, exports_credential };
208
+ export { ID15, OAuth3, Key4, External2, Value2, Event19, Info25, Service80, node84, exports_credential };
@@ -3,34 +3,34 @@ import {
3
3
  WrongKind2,
4
4
  Failed2,
5
5
  typeFollowing2
6
- } from "./state-hgz4x7wa.js";
6
+ } from "./aisdk-hgz4x7wa.js";
7
7
  import {
8
8
  execDefaults2
9
- } from "./state-eej6y6fw.js";
9
+ } from "./aisdk-eej6y6fw.js";
10
10
  import {
11
11
  makeLocalDriver2
12
- } from "./state-3hwn7j4h.js";
12
+ } from "./aisdk-3hwn7j4h.js";
13
13
  import {
14
14
  makeMemoryDriver2
15
- } from "./state-v7p4zvkq.js";
15
+ } from "./aisdk-v7p4zvkq.js";
16
16
  import {
17
17
  Service82,
18
18
  node86
19
- } from "./state-nezvftw4.js";
19
+ } from "./aisdk-fn24ytry.js";
20
20
  import {
21
- Service77,
22
- node80
23
- } from "./state-nanc2j11.js";
21
+ Service39,
22
+ node42
23
+ } from "./aisdk-09vf9mn1.js";
24
24
  import {
25
25
  __export
26
- } from "./state-9rqn6x4v.js";
26
+ } from "./aisdk-9rqn6x4v.js";
27
27
 
28
28
  // src/environment/environment.ts
29
29
  var exports_environment2 = {};
30
30
  __export(exports_environment2, {
31
31
  EnvironmentService: () => exports_environment2,
32
- Service: () => Service76,
33
- node: () => node79
32
+ Service: () => Service38,
33
+ node: () => node41
34
34
  });
35
35
  import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
36
36
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -43,13 +43,13 @@ __export(exports_environment3, {
43
43
  Environment: () => exports_environment3,
44
44
  Failed: () => Failed2,
45
45
  NotFound: () => NotFound3,
46
- Service: () => Service76,
46
+ Service: () => Service38,
47
47
  WrongKind: () => WrongKind2,
48
48
  execDefaults: () => execDefaults2,
49
49
  makeFiles: () => makeFiles2,
50
50
  makeLocalDriver: () => makeLocalDriver2,
51
51
  makeMemoryDriver: () => makeMemoryDriver2,
52
- node: () => node79,
52
+ node: () => node41,
53
53
  typeFollowing: () => typeFollowing2
54
54
  });
55
55
  var makeFiles2 = (driver) => ({
@@ -58,19 +58,19 @@ var makeFiles2 = (driver) => ({
58
58
  });
59
59
 
60
60
  // src/environment/environment.ts
61
- class Service76 extends Context.Service()("@opencode/Environment") {
61
+ class Service38 extends Context.Service()("@opencode/Environment") {
62
62
  }
63
- var layer = Layer.effect(Service76, Effect.gen(function* () {
63
+ var layer = Layer.effect(Service38, Effect.gen(function* () {
64
64
  const spawner = yield* ChildProcessSpawner;
65
65
  const location = yield* Service82;
66
- const workspace = yield* Service77;
66
+ const workspace = yield* Service39;
67
67
  const driver = location.workspaceID ? yield* workspace.connect(location.workspaceID).pipe(Effect.mapError((cause) => new Error(`Failed to bind Environment to workspace ${location.workspaceID}`, { cause })), Effect.orDie) : makeLocalDriver2(spawner);
68
- return Service76.of({ files: makeFiles2(driver), spawner: driver.spawner });
68
+ return Service38.of({ files: makeFiles2(driver), spawner: driver.spawner });
69
69
  }));
70
- var node79 = makeLocationNode({
71
- service: Service76,
70
+ var node41 = makeLocationNode({
71
+ service: Service38,
72
72
  layer,
73
- deps: [CrossSpawnSpawner.node, node86, node80]
73
+ deps: [CrossSpawnSpawner.node, node86, node42]
74
74
  });
75
75
 
76
- export { Service76, node79, exports_environment2, makeFiles2, exports_environment3 };
76
+ export { Service38, node41, exports_environment2, makeFiles2, exports_environment3 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./state-9rqn6x4v.js";
3
+ } from "./aisdk-9rqn6x4v.js";
4
4
 
5
5
  // src/config/watch.ts
6
6
  var exports_watch = {};
@@ -1,33 +1,33 @@
1
1
  import {
2
2
  Service85,
3
3
  node89
4
- } from "./state-r9yctxmr.js";
4
+ } from "./aisdk-fsem3xgy.js";
5
5
  import {
6
6
  optional2,
7
7
  statics2
8
- } from "./state-z5v4ffb3.js";
8
+ } from "./aisdk-z5v4ffb3.js";
9
9
  import {
10
10
  Ref4,
11
11
  Service82,
12
12
  node86
13
- } from "./state-nezvftw4.js";
13
+ } from "./aisdk-fn24ytry.js";
14
14
  import {
15
15
  __export
16
- } from "./state-9rqn6x4v.js";
16
+ } from "./aisdk-9rqn6x4v.js";
17
17
 
18
18
  // src/rpc.ts
19
19
  var exports_rpc = {};
20
20
  __export(exports_rpc, {
21
21
  Rpc: () => exports_rpc,
22
- Service: () => Service27,
22
+ Service: () => Service46,
23
23
  define: () => define2,
24
- node: () => node30
24
+ node: () => node51
25
25
  });
26
26
  import { define as define2 } from "@opencode/schema/rpc";
27
27
  import { Event } from "@opencode/schema/event";
28
28
  import { makeLocationNode } from "@opencode/util/effect/app-node";
29
29
  import { Context, Deferred, Effect, JsonSchema, Layer, Schema, SchemaRepresentation, Stream } from "effect";
30
- class Service27 extends Context.Service()("@opencode/Rpc") {
30
+ class Service46 extends Context.Service()("@opencode/Rpc") {
31
31
  }
32
32
 
33
33
  class DeclaredError extends Error {
@@ -39,7 +39,7 @@ class DeclaredError extends Error {
39
39
  this.data = data;
40
40
  }
41
41
  }
42
- var layer = Layer.effect(Service27, Effect.gen(function* () {
42
+ var layer = Layer.effect(Service46, Effect.gen(function* () {
43
43
  const bus = yield* Service85;
44
44
  const location = yield* Service82;
45
45
  const ref = Ref4.make({ directory: location.directory, workspaceID: location.workspaceID });
@@ -123,9 +123,9 @@ var layer = Layer.effect(Service27, Effect.gen(function* () {
123
123
  }
124
124
  };
125
125
  };
126
- return Service27.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
126
+ return Service46.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
127
127
  }));
128
- var node30 = makeLocationNode({ service: Service27, layer, deps: [node89, node86] });
128
+ var node51 = makeLocationNode({ service: Service46, layer, deps: [node89, node86] });
129
129
  var fields = {
130
130
  id: Event.ID,
131
131
  created: Schema.Finite,
@@ -210,4 +210,4 @@ var logicalEvent = Effect.fn("Rpc.logicalEvent")(function* (definition, name, pa
210
210
  };
211
211
  });
212
212
 
213
- export { Service27, node30, exports_rpc, define2 };
213
+ export { Service46, node51, exports_rpc, define2 };