@opencode/core 0.0.0-dev-19981 → 0.0.0-dev-19983

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 (797) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +82 -82
  3. package/dist/aisdk-native.js +88 -88
  4. package/dist/aisdk.js +93 -93
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +68 -68
  7. package/dist/chunks/{persistent-pty-64kphnzf.js → image-06dxphr1.js} +4 -4
  8. package/dist/chunks/{persistent-pty-xwt1kq35.js → image-09e552k5.js} +11 -11
  9. package/dist/chunks/{persistent-pty-yf57fzwh.js → image-09td20c0.js} +26 -26
  10. package/dist/chunks/{persistent-pty-d7mmen8h.js → image-0dgp5q1e.js} +17 -17
  11. package/dist/chunks/{persistent-pty-w2xfqmzm.js → image-0gy1wr0y.js} +9 -9
  12. package/dist/chunks/{persistent-pty-m0gz42vg.js → image-0j14ft90.js} +35 -35
  13. package/dist/chunks/{persistent-pty-0paq2nw3.js → image-0paq2nw3.js} +1 -1
  14. package/dist/chunks/{persistent-pty-0q0f95c6.js → image-0q0f95c6.js} +1 -1
  15. package/dist/chunks/{persistent-pty-kc43h6j1.js → image-0rt1aerz.js} +3 -3
  16. package/dist/chunks/{persistent-pty-ezpgfgdn.js → image-18h2bsbn.js} +9 -9
  17. package/dist/chunks/{persistent-pty-wr7ps67x.js → image-1cfb3ja4.js} +5 -5
  18. package/dist/chunks/{persistent-pty-1dazxqgg.js → image-1dazxqgg.js} +2 -2
  19. package/dist/chunks/{persistent-pty-86eq1ywt.js → image-1g4xhxjj.js} +2 -2
  20. package/dist/chunks/{persistent-pty-xefnkfpr.js → image-1gs8am01.js} +32 -32
  21. package/dist/chunks/{persistent-pty-bhnbjyag.js → image-1mp28asa.js} +2 -2
  22. package/dist/chunks/{persistent-pty-j67awtyy.js → image-1r56tgej.js} +3 -3
  23. package/dist/chunks/{persistent-pty-e7ff08ah.js → image-1w9v3p18.js} +89 -89
  24. package/dist/chunks/{persistent-pty-jmkpg1tv.js → image-20bz03sg.js} +1 -1
  25. package/dist/chunks/{persistent-pty-21r38tys.js → image-21r38tys.js} +1 -1
  26. package/dist/chunks/{persistent-pty-6h73sxmp.js → image-2402vzrj.js} +5 -5
  27. package/dist/chunks/{persistent-pty-b0vbrmb4.js → image-258eh3rs.js} +26 -26
  28. package/dist/chunks/{persistent-pty-9y73z4qs.js → image-27ja88b0.js} +27 -27
  29. package/dist/chunks/{persistent-pty-2a5m3afh.js → image-2a5m3afh.js} +1 -1
  30. package/dist/chunks/{persistent-pty-fcrkznn8.js → image-2k8khapm.js} +5 -5
  31. package/dist/chunks/{persistent-pty-85w0g9jn.js → image-2qp6v2hr.js} +14 -14
  32. package/dist/chunks/{persistent-pty-jc3qcwgj.js → image-2z66ez54.js} +30 -30
  33. package/dist/chunks/{persistent-pty-nmzynm19.js → image-2zvss1h4.js} +1 -1
  34. package/dist/chunks/{persistent-pty-7st6acyk.js → image-388ve0md.js} +11 -11
  35. package/dist/chunks/{persistent-pty-8hfr5z8m.js → image-397rvywk.js} +12 -12
  36. package/dist/chunks/{persistent-pty-d87ppnb3.js → image-3cfzdc8e.js} +5 -5
  37. package/dist/chunks/{persistent-pty-65tm5yk1.js → image-3czpn3qn.js} +13 -13
  38. package/dist/chunks/{persistent-pty-3fc6dm20.js → image-3fc6dm20.js} +1 -1
  39. package/dist/chunks/{persistent-pty-3hepkmqq.js → image-3hepkmqq.js} +1 -1
  40. package/dist/chunks/{persistent-pty-h4h5c8th.js → image-3mtz8sw0.js} +43 -43
  41. package/dist/chunks/{persistent-pty-3smtnn6g.js → image-3smtnn6g.js} +1 -1
  42. package/dist/chunks/{persistent-pty-3tvqynh2.js → image-3tvqynh2.js} +1 -1
  43. package/dist/chunks/{persistent-pty-1fd2gft5.js → image-3z10gw4q.js} +18 -18
  44. package/dist/chunks/{persistent-pty-3xsfpvq0.js → image-3zzqeb10.js} +23 -23
  45. package/dist/chunks/{persistent-pty-x2g3fynt.js → image-4030ep1a.js} +33 -33
  46. package/dist/chunks/image-46t0t9s7.js +503 -0
  47. package/dist/chunks/{persistent-pty-cmbqfntm.js → image-4jv7e9dq.js} +7 -7
  48. package/dist/chunks/{persistent-pty-phcgjfvp.js → image-4ynrtxxp.js} +18 -18
  49. package/dist/chunks/{persistent-pty-xvjd5qxe.js → image-53nrc7mr.js} +32 -32
  50. package/dist/chunks/{persistent-pty-1ygqh575.js → image-56gdpj1q.js} +9 -9
  51. package/dist/chunks/{persistent-pty-2fgn2we9.js → image-57ez7d0k.js} +9 -9
  52. package/dist/chunks/{persistent-pty-pjv150s7.js → image-58da5342.js} +22 -22
  53. package/dist/chunks/{persistent-pty-r5wczv23.js → image-59fd7wwn.js} +31 -31
  54. package/dist/chunks/{persistent-pty-5daktx2q.js → image-5daktx2q.js} +1 -1
  55. package/dist/chunks/{persistent-pty-e3qxr5gk.js → image-5qd3pb7m.js} +2 -2
  56. package/dist/chunks/{persistent-pty-c8gzcaps.js → image-5qfssqaz.js} +8 -8
  57. package/dist/chunks/{persistent-pty-5t3nmthw.js → image-5t3nmthw.js} +2 -2
  58. package/dist/chunks/{persistent-pty-p1h117cf.js → image-60596gf0.js} +41 -41
  59. package/dist/chunks/{persistent-pty-5hj9waw1.js → image-63k3xm2x.js} +11 -11
  60. package/dist/chunks/{persistent-pty-669tq793.js → image-669tq793.js} +1 -1
  61. package/dist/chunks/{persistent-pty-jv106vc1.js → image-685dn0bf.js} +20 -20
  62. package/dist/chunks/{persistent-pty-f71akrxj.js → image-6gfs34nh.js} +8 -8
  63. package/dist/chunks/image-6kdq0pjd.js +4 -0
  64. package/dist/chunks/{persistent-pty-6msgmcgs.js → image-6msgmcgs.js} +1 -1
  65. package/dist/chunks/{persistent-pty-8qh6anns.js → image-6qr3rp4k.js} +6 -6
  66. package/dist/chunks/{persistent-pty-4v16j8nk.js → image-6r2bcfeg.js} +1 -1
  67. package/dist/chunks/{persistent-pty-wjyv1427.js → image-6xh0g4kx.js} +14 -14
  68. package/dist/chunks/{persistent-pty-tkst0gkj.js → image-6y7njhkw.js} +15 -15
  69. package/dist/chunks/{persistent-pty-a32n2gyw.js → image-6zh7jmm8.js} +14 -14
  70. package/dist/chunks/{persistent-pty-fy2vv4qy.js → image-711fd8qe.js} +16 -16
  71. package/dist/chunks/{persistent-pty-xk77aqwy.js → image-77fp0bkd.js} +5 -5
  72. package/dist/chunks/{persistent-pty-vx8qjqqy.js → image-78ys8twf.js} +9 -9
  73. package/dist/chunks/{persistent-pty-7bmhse3q.js → image-7bmhse3q.js} +1 -1
  74. package/dist/chunks/{persistent-pty-a379gdqz.js → image-7keqm5b0.js} +13 -13
  75. package/dist/chunks/{persistent-pty-x2a9gtha.js → image-7nkjve3g.js} +6 -6
  76. package/dist/chunks/{persistent-pty-q8gd89mn.js → image-7p82tnfq.js} +12 -12
  77. package/dist/chunks/{persistent-pty-mhkvc446.js → image-7yh4e7ss.js} +3 -3
  78. package/dist/chunks/{persistent-pty-k252d6tw.js → image-87hh84yj.js} +36 -36
  79. package/dist/chunks/{persistent-pty-nkgdvn7z.js → image-8d0p2m37.js} +8 -8
  80. package/dist/chunks/{persistent-pty-8d7r5vzw.js → image-8d7r5vzw.js} +1 -1
  81. package/dist/chunks/{persistent-pty-m3n5d3yw.js → image-8k5gf81b.js} +4 -4
  82. package/dist/chunks/{persistent-pty-8p4f9s12.js → image-8p4f9s12.js} +2 -2
  83. package/dist/chunks/{persistent-pty-a6t3kjdk.js → image-924007vm.js} +38 -38
  84. package/dist/chunks/{persistent-pty-7pach1zh.js → image-92w0nt0v.js} +69 -69
  85. package/dist/chunks/{persistent-pty-nq7qbqzc.js → image-9a912s85.js} +9 -9
  86. package/dist/chunks/{persistent-pty-0gdmfj29.js → image-9dpmj859.js} +3 -3
  87. package/dist/chunks/{persistent-pty-qc6v7e8r.js → image-9gbcws29.js} +29 -29
  88. package/dist/chunks/{persistent-pty-47gj1eem.js → image-9v8rdtx4.js} +32 -32
  89. package/dist/chunks/{persistent-pty-9kt7wf3c.js → image-9z4sf5tv.js} +11 -11
  90. package/dist/chunks/{persistent-pty-7cpynay4.js → image-a0ys4nqc.js} +6 -6
  91. package/dist/chunks/{persistent-pty-a1bz86dw.js → image-a1bz86dw.js} +3 -3
  92. package/dist/chunks/{persistent-pty-jfqtm2ew.js → image-a2ew8a62.js} +4 -4
  93. package/dist/chunks/{persistent-pty-g2yz86wh.js → image-a3r4dcrj.js} +2 -2
  94. package/dist/chunks/{persistent-pty-zpwvqkne.js → image-a4rx6ejt.js} +25 -25
  95. package/dist/chunks/{persistent-pty-aaet6srn.js → image-aaet6srn.js} +2 -2
  96. package/dist/chunks/{persistent-pty-b5re83s5.js → image-ad4z1jrs.js} +9 -9
  97. package/dist/chunks/{persistent-pty-sqsf5w9p.js → image-afkq326b.js} +22 -22
  98. package/dist/chunks/{persistent-pty-w22d05gm.js → image-afyvqhvk.js} +40 -40
  99. package/dist/chunks/{persistent-pty-pg06qq32.js → image-aj20rtze.js} +28 -28
  100. package/dist/chunks/{persistent-pty-p3yqgy1f.js → image-aktb84ke.js} +2 -2
  101. package/dist/chunks/{persistent-pty-wn7f7h9x.js → image-anb8rm3e.js} +11 -11
  102. package/dist/chunks/{persistent-pty-scv7p57g.js → image-anf0zms1.js} +9 -9
  103. package/dist/chunks/{persistent-pty-peg4cznj.js → image-arwg5kd7.js} +29 -29
  104. package/dist/chunks/{persistent-pty-r5eg2mbx.js → image-b340zwh0.js} +3 -3
  105. package/dist/chunks/{persistent-pty-b6gygkdw.js → image-b6gygkdw.js} +2 -2
  106. package/dist/chunks/{persistent-pty-00ax65t0.js → image-b7vxzd00.js} +22 -22
  107. package/dist/chunks/image-b89j7fds.js +26 -0
  108. package/dist/chunks/{persistent-pty-98krwt3q.js → image-bbfngs8v.js} +11 -11
  109. package/dist/chunks/{persistent-pty-m2px8ay3.js → image-be95997k.js} +21 -21
  110. package/dist/chunks/{persistent-pty-91p1v22t.js → image-bh0zzf2s.js} +8 -8
  111. package/dist/chunks/{persistent-pty-5kntwy7m.js → image-bw7h3gmz.js} +11 -11
  112. package/dist/chunks/{persistent-pty-p9rwa85v.js → image-bweh8ah2.js} +24 -24
  113. package/dist/chunks/{persistent-pty-3ra5rr95.js → image-bxn1favr.js} +19 -19
  114. package/dist/chunks/image-by5v678g.js +18 -0
  115. package/dist/chunks/{persistent-pty-wy8b5sm2.js → image-bz85s9hh.js} +1 -1
  116. package/dist/chunks/{persistent-pty-r7dcqyc4.js → image-c2a7rk0z.js} +10 -10
  117. package/dist/chunks/{persistent-pty-n9fty5ck.js → image-c4spbmd0.js} +9 -9
  118. package/dist/chunks/{persistent-pty-d4he2qe1.js → image-c765mh8b.js} +9 -9
  119. package/dist/chunks/{persistent-pty-s8j6jbjj.js → image-cavr175a.js} +21 -21
  120. package/dist/chunks/{persistent-pty-cfpkc3c9.js → image-cfpkc3c9.js} +2 -2
  121. package/dist/chunks/{persistent-pty-th7zbfdx.js → image-ckjkxw20.js} +30 -30
  122. package/dist/chunks/{persistent-pty-p37cw4rj.js → image-cmwkp3r5.js} +8 -8
  123. package/dist/chunks/{persistent-pty-cq37gk0t.js → image-cq37gk0t.js} +4 -4
  124. package/dist/chunks/{persistent-pty-7eztrc44.js → image-d10jp6w6.js} +24 -24
  125. package/dist/chunks/{persistent-pty-qasfmn61.js → image-d18skez3.js} +11 -11
  126. package/dist/chunks/{persistent-pty-mrm42v82.js → image-ddk8b4gr.js} +12 -12
  127. package/dist/chunks/{persistent-pty-3kf9cyx9.js → image-dks483fm.js} +15 -15
  128. package/dist/chunks/{persistent-pty-nttf9wpn.js → image-dmt7f73j.js} +27 -27
  129. package/dist/chunks/{persistent-pty-5f90fjb2.js → image-dq0v80fr.js} +12 -12
  130. package/dist/chunks/{persistent-pty-6js1jt2x.js → image-dx24mbb4.js} +26 -26
  131. package/dist/chunks/{persistent-pty-x9mtwtp0.js → image-dz8x4rxg.js} +4 -4
  132. package/dist/chunks/{persistent-pty-yqdpmpyv.js → image-e255wkp1.js} +3 -3
  133. package/dist/chunks/{persistent-pty-d8mytp2v.js → image-e2mq9brg.js} +9 -9
  134. package/dist/chunks/{persistent-pty-mp87qz32.js → image-ea7xz3vj.js} +10 -10
  135. package/dist/chunks/{persistent-pty-jn2czc9p.js → image-eba62b5m.js} +3 -3
  136. package/dist/chunks/{persistent-pty-hzssqh1d.js → image-ec7aaxcz.js} +43 -43
  137. package/dist/chunks/{persistent-pty-7aqdbf5b.js → image-edekhrx7.js} +6 -6
  138. package/dist/chunks/{persistent-pty-ef5x83kb.js → image-ef5x83kb.js} +1 -1
  139. package/dist/chunks/{persistent-pty-erw5rpbs.js → image-erw5rpbs.js} +2 -2
  140. package/dist/chunks/{persistent-pty-hevvszjq.js → image-es7jpw9p.js} +4 -4
  141. package/dist/chunks/{persistent-pty-ja95a0kh.js → image-esh8cnfr.js} +24 -24
  142. package/dist/chunks/{persistent-pty-etq0c3wd.js → image-etq0c3wd.js} +1 -1
  143. package/dist/chunks/{persistent-pty-xwfq1nez.js → image-evrwq1d2.js} +14 -14
  144. package/dist/chunks/{persistent-pty-3mhj610p.js → image-ewnwpw42.js} +6 -6
  145. package/dist/chunks/{persistent-pty-740qj6em.js → image-ez5vjv5r.js} +18 -18
  146. package/dist/chunks/{persistent-pty-s0qgnfzw.js → image-ezt9kfxv.js} +3 -3
  147. package/dist/chunks/{persistent-pty-h2zrj56v.js → image-f5gy8qwh.js} +8 -8
  148. package/dist/chunks/{persistent-pty-f828m53h.js → image-f828m53h.js} +2 -2
  149. package/dist/chunks/{persistent-pty-26njax6j.js → image-fszct94a.js} +28 -28
  150. package/dist/chunks/{persistent-pty-fxbjtjnd.js → image-fxbjtjnd.js} +1 -1
  151. package/dist/chunks/{persistent-pty-h8sqqrf3.js → image-fxxz233w.js} +33 -33
  152. package/dist/chunks/{persistent-pty-kee9v82x.js → image-g05h3mtq.js} +13 -13
  153. package/dist/chunks/{persistent-pty-ysckq8n5.js → image-g1354m52.js} +9 -9
  154. package/dist/chunks/{persistent-pty-9c6vz8r3.js → image-g1cnsceh.js} +4 -4
  155. package/dist/chunks/{persistent-pty-j6e693f4.js → image-g8jasmdt.js} +11 -11
  156. package/dist/chunks/{persistent-pty-gd4qta3r.js → image-gd4qta3r.js} +1 -1
  157. package/dist/chunks/{persistent-pty-byhr62qm.js → image-ge4xn9w4.js} +9 -9
  158. package/dist/chunks/{persistent-pty-gv6a8nnw.js → image-gv6a8nnw.js} +2 -2
  159. package/dist/chunks/{persistent-pty-h6r3nrb9.js → image-h6r3nrb9.js} +1 -1
  160. package/dist/chunks/{persistent-pty-h6vf3j39.js → image-h6vf3j39.js} +1 -1
  161. package/dist/chunks/{persistent-pty-0jq9fyba.js → image-h71w788e.js} +9 -9
  162. package/dist/chunks/{persistent-pty-mwzsbcbf.js → image-ha494qqn.js} +10 -10
  163. package/dist/chunks/{persistent-pty-t6q9b2zv.js → image-hf9mb306.js} +28 -28
  164. package/dist/chunks/{persistent-pty-j56e64zr.js → image-j56e64zr.js} +1 -1
  165. package/dist/chunks/{persistent-pty-hd0qsb0v.js → image-j6nsp1g7.js} +10 -10
  166. package/dist/chunks/{persistent-pty-xkhfjrgz.js → image-jexxy024.js} +2 -2
  167. package/dist/chunks/{persistent-pty-045s5zgt.js → image-jgphgq4c.js} +17 -17
  168. package/dist/chunks/{persistent-pty-8wgyvxqj.js → image-k10ne33k.js} +10 -10
  169. package/dist/chunks/{persistent-pty-k1gkpfdk.js → image-k1gkpfdk.js} +1 -1
  170. package/dist/chunks/{persistent-pty-nzks3jc8.js → image-k3c624dm.js} +3 -3
  171. package/dist/chunks/{persistent-pty-8f6cy3pb.js → image-k9je938h.js} +5 -5
  172. package/dist/chunks/{persistent-pty-mmr7bq34.js → image-k9kj6xed.js} +4 -4
  173. package/dist/chunks/{persistent-pty-gnkgm067.js → image-k9nbv3dt.js} +38 -38
  174. package/dist/chunks/{persistent-pty-8xnn2f25.js → image-kawpmg25.js} +14 -14
  175. package/dist/chunks/{persistent-pty-wd30r3h7.js → image-kbt3g993.js} +13 -13
  176. package/dist/chunks/{persistent-pty-22keffh1.js → image-kes097j4.js} +1 -1
  177. package/dist/chunks/{persistent-pty-w6h4kwe3.js → image-kh9grtd6.js} +11 -11
  178. package/dist/chunks/{persistent-pty-vbfgae2j.js → image-kkp8zx71.js} +4 -4
  179. package/dist/chunks/{persistent-pty-yff54yer.js → image-krva6jg1.js} +15 -15
  180. package/dist/chunks/{persistent-pty-39gs27gn.js → image-m2yd4h25.js} +43 -43
  181. package/dist/chunks/{persistent-pty-m3fdjcah.js → image-m3fdjcah.js} +1 -1
  182. package/dist/chunks/{persistent-pty-m9w0rfyh.js → image-m9w0rfyh.js} +1 -1
  183. package/dist/chunks/{persistent-pty-a1gwwkre.js → image-mhbygw65.js} +43 -43
  184. package/dist/chunks/{persistent-pty-4xxxtaen.js → image-mw934p8z.js} +8 -8
  185. package/dist/chunks/{persistent-pty-rawmkaew.js → image-my2qptz9.js} +21 -21
  186. package/dist/chunks/{persistent-pty-81ydyt9n.js → image-mzvzs703.js} +12 -12
  187. package/dist/chunks/{persistent-pty-0sk4n78x.js → image-n36k2kh7.js} +20 -20
  188. package/dist/chunks/{persistent-pty-ag4rn41e.js → image-n4r3xatb.js} +4 -4
  189. package/dist/chunks/{persistent-pty-7aahv9qn.js → image-n5skym8n.js} +15 -15
  190. package/dist/chunks/{persistent-pty-gjk270n1.js → image-n7vpp5gh.js} +16 -16
  191. package/dist/chunks/{persistent-pty-tapvjybg.js → image-n8yas6hm.js} +24 -24
  192. package/dist/chunks/{persistent-pty-ygrvwp4d.js → image-nab6jkb6.js} +14 -14
  193. package/dist/chunks/{persistent-pty-1tmvx3cs.js → image-namhjc4y.js} +8 -8
  194. package/dist/chunks/{persistent-pty-5qdhd6wd.js → image-nfd0y60j.js} +4 -4
  195. package/dist/chunks/{persistent-pty-xwfr1kp3.js → image-nh3m5kwx.js} +1 -1
  196. package/dist/chunks/{persistent-pty-rjhv0x2x.js → image-npdbymj2.js} +10 -10
  197. package/dist/chunks/{persistent-pty-99a88f08.js → image-npq2n3tp.js} +13 -13
  198. package/dist/chunks/{persistent-pty-8fyvcw1c.js → image-nwxse5wp.js} +22 -22
  199. package/dist/chunks/{persistent-pty-81ygbb57.js → image-nxvwfbqw.js} +16 -16
  200. package/dist/chunks/{persistent-pty-p28j5sbe.js → image-p28j5sbe.js} +2 -2
  201. package/dist/chunks/{persistent-pty-jar2n8ad.js → image-p2safxe9.js} +28 -28
  202. package/dist/chunks/{persistent-pty-ead3g9p8.js → image-p44d8wdy.js} +5 -5
  203. package/dist/chunks/{persistent-pty-tkcxk75v.js → image-p84br5ek.js} +20 -20
  204. package/dist/chunks/{persistent-pty-p7sz26rr.js → image-p8a3dq8k.js} +137 -137
  205. package/dist/chunks/{persistent-pty-pjvnvgmy.js → image-pjvnvgmy.js} +1 -1
  206. package/dist/chunks/{persistent-pty-7935fwzs.js → image-pk5pky18.js} +9 -9
  207. package/dist/chunks/{persistent-pty-pknna89w.js → image-pknna89w.js} +1 -1
  208. package/dist/chunks/{persistent-pty-5mknq4wh.js → image-pqkzp7xy.js} +22 -22
  209. package/dist/chunks/{persistent-pty-qejk2hns.js → image-q14p6249.js} +24 -24
  210. package/dist/chunks/{persistent-pty-c7cwys1z.js → image-q7pthab0.js} +32 -32
  211. package/dist/chunks/{persistent-pty-584b7awg.js → image-qd1nr1jp.js} +12 -12
  212. package/dist/chunks/{persistent-pty-c4qm6hzm.js → image-qnqyg1a6.js} +15 -15
  213. package/dist/chunks/{persistent-pty-99yv1vdm.js → image-qrtzkn9f.js} +10 -10
  214. package/dist/chunks/{persistent-pty-qsdy395h.js → image-qsdy395h.js} +1 -1
  215. package/dist/chunks/{persistent-pty-p1nm93x7.js → image-qte5z7bc.js} +5 -5
  216. package/dist/chunks/{persistent-pty-mm7h7sr7.js → image-qx10sz7d.js} +17 -17
  217. package/dist/chunks/{persistent-pty-rd4v8kr9.js → image-r16rx7t1.js} +4 -4
  218. package/dist/chunks/image-r44k0b4h.js +252 -0
  219. package/dist/chunks/{persistent-pty-4xc2xt5t.js → image-r646k28t.js} +2 -2
  220. package/dist/chunks/{persistent-pty-kxn0m7ef.js → image-rbxccrva.js} +24 -24
  221. package/dist/chunks/{persistent-pty-dty6pce2.js → image-rc6wfq74.js} +26 -26
  222. package/dist/chunks/{persistent-pty-rdw6cm16.js → image-rdw6cm16.js} +1 -1
  223. package/dist/chunks/{persistent-pty-rhjbct0v.js → image-rhjbct0v.js} +1 -1
  224. package/dist/chunks/{persistent-pty-nxer0yad.js → image-rhraev7y.js} +4 -4
  225. package/dist/chunks/{persistent-pty-x1bw9y7f.js → image-rj372e5a.js} +4 -4
  226. package/dist/chunks/{persistent-pty-2d57kztd.js → image-rph3zd4r.js} +4 -4
  227. package/dist/chunks/{persistent-pty-189jkc9d.js → image-rstenykm.js} +1 -1
  228. package/dist/chunks/{persistent-pty-ktz5apky.js → image-s6pmxk2t.js} +22 -22
  229. package/dist/chunks/{persistent-pty-7szz8ecw.js → image-svndcwjb.js} +4 -4
  230. package/dist/chunks/{persistent-pty-rmc194cy.js → image-t9kz1x1h.js} +18 -18
  231. package/dist/chunks/{persistent-pty-3j8sdtpz.js → image-t9zs3egg.js} +4 -4
  232. package/dist/chunks/{persistent-pty-tazgh4e4.js → image-tazgh4e4.js} +1 -1
  233. package/dist/chunks/{persistent-pty-tcezcvh9.js → image-tcezcvh9.js} +1 -1
  234. package/dist/chunks/{persistent-pty-bt8eheyv.js → image-tcpw7e5e.js} +19 -19
  235. package/dist/chunks/{persistent-pty-tdstcens.js → image-tdstcens.js} +1 -1
  236. package/dist/chunks/{persistent-pty-mvm6yp9j.js → image-tjpj2e3q.js} +8 -8
  237. package/dist/chunks/{persistent-pty-r2e87s7e.js → image-tk2v6jy0.js} +8 -8
  238. package/dist/chunks/{persistent-pty-nf01b4ny.js → image-tsr6kwcz.js} +1 -1
  239. package/dist/chunks/{persistent-pty-tvtrv512.js → image-tvtrv512.js} +1 -1
  240. package/dist/chunks/{persistent-pty-ghntyqza.js → image-v2xsvqb7.js} +11 -11
  241. package/dist/chunks/{persistent-pty-qetnz3qf.js → image-v3vqqm9f.js} +7 -7
  242. package/dist/chunks/{persistent-pty-mehmtrpt.js → image-v4bjwbs7.js} +19 -19
  243. package/dist/chunks/{persistent-pty-9gwgf8zn.js → image-v5w4drkp.js} +34 -34
  244. package/dist/chunks/{persistent-pty-7ga2fv62.js → image-v61m3kz8.js} +3 -3
  245. package/dist/chunks/{persistent-pty-0et7a6mm.js → image-var6jwka.js} +8 -8
  246. package/dist/chunks/{persistent-pty-7ewmpmc7.js → image-vca968f4.js} +17 -17
  247. package/dist/chunks/{persistent-pty-d7r387ef.js → image-vdptz04f.js} +6 -6
  248. package/dist/chunks/{persistent-pty-veqvce7d.js → image-veqvce7d.js} +1 -1
  249. package/dist/chunks/{persistent-pty-wy6hpy23.js → image-vg7fngtd.js} +13 -13
  250. package/dist/chunks/{persistent-pty-4aztedzn.js → image-vjd497wd.js} +6 -6
  251. package/dist/chunks/{persistent-pty-w24sfk5b.js → image-vk0va4ns.js} +7 -7
  252. package/dist/chunks/{persistent-pty-dekpyqan.js → image-vke24a77.js} +40 -40
  253. package/dist/chunks/{persistent-pty-7zx1qa5e.js → image-vtt0yr3x.js} +13 -13
  254. package/dist/chunks/{persistent-pty-vzcthcp8.js → image-vzcthcp8.js} +1 -1
  255. package/dist/chunks/{persistent-pty-v41623e8.js → image-w39s3p85.js} +27 -27
  256. package/dist/chunks/{persistent-pty-w3wsvvr9.js → image-w3wsvvr9.js} +1 -1
  257. package/dist/chunks/{persistent-pty-675cvrxf.js → image-w5mxr70m.js} +18 -18
  258. package/dist/chunks/{persistent-pty-ys0rvgwx.js → image-w9sh5ge5.js} +24 -24
  259. package/dist/chunks/{persistent-pty-wd87259q.js → image-wd87259q.js} +1 -1
  260. package/dist/chunks/{persistent-pty-cbdc55tj.js → image-wz8tevja.js} +27 -27
  261. package/dist/chunks/{persistent-pty-3vw9y35t.js → image-wzhg77bf.js} +13 -13
  262. package/dist/chunks/{persistent-pty-x1ezjp6w.js → image-x1ezjp6w.js} +1 -1
  263. package/dist/chunks/{persistent-pty-f62qkzqr.js → image-x2d9qy7d.js} +5 -5
  264. package/dist/chunks/{persistent-pty-ebpytsbd.js → image-x619ew4b.js} +47 -47
  265. package/dist/chunks/{persistent-pty-g9tzs1c7.js → image-xc3aj2tv.js} +16 -16
  266. package/dist/chunks/{persistent-pty-ngc2191d.js → image-xd9b4v3d.js} +52 -52
  267. package/dist/chunks/{persistent-pty-qqeeq2t9.js → image-xfkkasph.js} +7 -7
  268. package/dist/chunks/{persistent-pty-j8pax9gn.js → image-xk7j61yv.js} +53 -53
  269. package/dist/chunks/{persistent-pty-28qz5v8e.js → image-xnf96g2w.js} +90 -90
  270. package/dist/chunks/{persistent-pty-h8bam43x.js → image-xzz5rq5j.js} +11 -11
  271. package/dist/chunks/{persistent-pty-y1fvbwt7.js → image-y1fvbwt7.js} +1 -1
  272. package/dist/chunks/{persistent-pty-5nnytrr6.js → image-y5cwy1mn.js} +20 -20
  273. package/dist/chunks/{persistent-pty-7z7az0f5.js → image-y67gsgy6.js} +4 -4
  274. package/dist/chunks/{persistent-pty-y71avatq.js → image-y71avatq.js} +1 -1
  275. package/dist/chunks/{persistent-pty-8cp1dt4b.js → image-y89pgm7x.js} +11 -11
  276. package/dist/chunks/{persistent-pty-6z3bcrm7.js → image-ybhbtxjg.js} +9 -9
  277. package/dist/chunks/{persistent-pty-mrvjcs5x.js → image-ycjb11n5.js} +6 -6
  278. package/dist/chunks/{persistent-pty-yrhqyw5v.js → image-yrhqyw5v.js} +1 -1
  279. package/dist/chunks/{persistent-pty-s4enseaf.js → image-yrznvahk.js} +2 -2
  280. package/dist/chunks/{persistent-pty-1z3fhpx8.js → image-yw90mp9f.js} +8 -8
  281. package/dist/chunks/{persistent-pty-z0bkrqjs.js → image-z0bkrqjs.js} +1 -1
  282. package/dist/chunks/{persistent-pty-sp0hs84w.js → image-z0tsxkyk.js} +30 -30
  283. package/dist/chunks/{persistent-pty-pq7b6aj3.js → image-z61r2s3w.js} +13 -13
  284. package/dist/chunks/{persistent-pty-29x78va6.js → image-z63w68vq.js} +6 -6
  285. package/dist/chunks/{persistent-pty-a70ewb2f.js → image-z6mts4vt.js} +5 -5
  286. package/dist/chunks/{persistent-pty-f22gk9j9.js → image-z9ee0mf2.js} +280 -280
  287. package/dist/chunks/{persistent-pty-zeh9ct20.js → image-zeh9ct20.js} +2 -2
  288. package/dist/chunks/{persistent-pty-b33g5v9z.js → image-zg7entxf.js} +23 -23
  289. package/dist/chunks/{persistent-pty-5dcqe31d.js → image-znepfjcf.js} +20 -20
  290. package/dist/chunks/{persistent-pty-zr2ceqn5.js → image-zr2ceqn5.js} +1 -1
  291. package/dist/chunks/{persistent-pty-zxq2ej10.js → image-zxq2ej10.js} +1 -1
  292. package/dist/codemode/catalog.js +1 -1
  293. package/dist/codemode/instructions.js +9 -9
  294. package/dist/codemode/tool.js +3 -3
  295. package/dist/codemode/web.js +1 -1
  296. package/dist/command.js +78 -78
  297. package/dist/config/discovery.js +81 -81
  298. package/dist/config/markdown.js +1 -1
  299. package/dist/config/normalize.js +105 -105
  300. package/dist/config/plugin/agent.js +124 -124
  301. package/dist/config/plugin/command.js +213 -213
  302. package/dist/config/plugin/compaction.js +161 -161
  303. package/dist/config/plugin/compatibility.js +140 -140
  304. package/dist/config/plugin/entry-observer.js +1 -1
  305. package/dist/config/plugin/formatter.js +123 -123
  306. package/dist/config/plugin/image.js +122 -122
  307. package/dist/config/plugin/instruction.js +89 -89
  308. package/dist/config/plugin/location-watcher.js +122 -122
  309. package/dist/config/plugin/mcp.js +131 -131
  310. package/dist/config/plugin/policy.js +123 -123
  311. package/dist/config/plugin/provider.js +122 -122
  312. package/dist/config/plugin/reference.js +124 -124
  313. package/dist/config/plugin/shell.js +122 -122
  314. package/dist/config/plugin/skill-file.js +101 -101
  315. package/dist/config/plugin/skill.js +143 -143
  316. package/dist/config/plugin/snapshot.js +122 -122
  317. package/dist/config/plugin/source.js +125 -125
  318. package/dist/config/plugin/tool-output.js +124 -124
  319. package/dist/config/plugin/websearch.js +121 -121
  320. package/dist/config/plugin/worktree.js +124 -124
  321. package/dist/config/variable.js +3 -3
  322. package/dist/config/watch.js +1 -1
  323. package/dist/config.js +127 -127
  324. package/dist/credential/sql.js +2 -2
  325. package/dist/credential.js +82 -82
  326. package/dist/database/database.js +65 -65
  327. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  328. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  329. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  330. package/dist/database/drizzle/index.js +13 -13
  331. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  332. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  333. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  334. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  335. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  336. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  337. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  338. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  339. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  340. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  341. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  342. package/dist/database/drizzle.js +14 -14
  343. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  344. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  345. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  346. package/dist/database/migration/20260225215848_workspace.js +1 -1
  347. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  348. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  349. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  350. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  351. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  352. package/dist/database/migration/20260323234822_events.js +1 -1
  353. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  354. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  355. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  356. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  357. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  358. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  359. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  360. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  361. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  362. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  363. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  364. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  365. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  366. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  367. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  368. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  369. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  370. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  371. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  372. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  373. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  374. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  375. package/dist/database/migration/20260611035744_credential.js +1 -1
  376. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  377. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  378. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  379. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  380. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  381. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  382. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  383. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  384. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  385. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  386. package/dist/database/migration/20260812213948_worktree.js +1 -1
  387. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  388. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  389. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  390. package/dist/database/migration.gen.js +48 -48
  391. package/dist/database/migration.js +50 -50
  392. package/dist/database/path.js +2 -2
  393. package/dist/database/schema.gen.js +1 -1
  394. package/dist/database/schema.sql.js +1 -1
  395. package/dist/database/sqlite.bun.js +1 -1
  396. package/dist/database/sqlite.js +1 -1
  397. package/dist/database/sqlite.node.js +1 -1
  398. package/dist/database/sqlite.workerd.js +1 -1
  399. package/dist/database/v1-migration.bun.js +75 -75
  400. package/dist/database/v1-migration.js +1 -1
  401. package/dist/effect/app-node-builder.js +369 -369
  402. package/dist/effect/app-node-platform.js +2 -2
  403. package/dist/effect/keyed-mutex.js +1 -1
  404. package/dist/effect/websocket-constructor.js +1 -1
  405. package/dist/environment/driver.js +1 -1
  406. package/dist/environment/environment.js +92 -92
  407. package/dist/environment/exec-defaults.js +2 -2
  408. package/dist/environment/files.js +1 -1
  409. package/dist/environment/index.js +94 -94
  410. package/dist/environment/local.js +2 -2
  411. package/dist/environment/memory.js +2 -2
  412. package/dist/environment/unavailable.js +1 -1
  413. package/dist/event/sql.js +1 -1
  414. package/dist/event-logger.js +69 -69
  415. package/dist/file-access.js +103 -103
  416. package/dist/file-mutation.js +93 -93
  417. package/dist/file-retention.js +1 -1
  418. package/dist/file.js +1 -1
  419. package/dist/filesystem/fff.bun.js +2 -2
  420. package/dist/filesystem/fff.js +1 -1
  421. package/dist/filesystem/fff.node.js +2 -2
  422. package/dist/filesystem/fff.workerd.js +2 -2
  423. package/dist/filesystem/ignore.js +1 -1
  424. package/dist/filesystem/location-watcher-policy.js +6 -6
  425. package/dist/filesystem/location-watcher.js +224 -224
  426. package/dist/filesystem/protected.js +1 -1
  427. package/dist/filesystem/search.js +102 -102
  428. package/dist/filesystem/watcher-binding.js +3 -3
  429. package/dist/filesystem/watcher.js +13 -13
  430. package/dist/filesystem.js +105 -105
  431. package/dist/form.js +69 -69
  432. package/dist/formatter/builtins.js +4 -4
  433. package/dist/formatter.js +88 -88
  434. package/dist/generate.js +102 -102
  435. package/dist/git.js +10 -10
  436. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  437. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  438. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  439. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  440. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  441. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  442. package/dist/github-copilot/copilot-provider.js +17 -17
  443. package/dist/github-copilot/models.js +98 -98
  444. package/dist/github-copilot/openai-compatible-error.js +1 -1
  445. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  446. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  447. package/dist/github-copilot/responses/openai-error.js +1 -1
  448. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  449. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  450. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  451. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  452. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  453. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  454. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  455. package/dist/id/id.js +1 -1
  456. package/dist/image/photon.js +2 -2
  457. package/dist/image.js +6 -6
  458. package/dist/instance/service.js +5 -5
  459. package/dist/instance.js +360 -360
  460. package/dist/instruction-discovery.js +84 -84
  461. package/dist/instructions/builtins.js +86 -86
  462. package/dist/instructions/index.js +1 -1
  463. package/dist/integration/connection.js +1 -1
  464. package/dist/integration.js +75 -75
  465. package/dist/job.js +78 -78
  466. package/dist/kv/sql.js +2 -2
  467. package/dist/kv.js +72 -72
  468. package/dist/location-activity.js +131 -131
  469. package/dist/location-lifecycle.js +105 -105
  470. package/dist/location-mutation.js +103 -103
  471. package/dist/location-service-map.js +85 -85
  472. package/dist/location-services.js +357 -357
  473. package/dist/location.js +86 -86
  474. package/dist/managed-policy.js +5 -5
  475. package/dist/mcp/client.js +90 -90
  476. package/dist/mcp/index.js +107 -107
  477. package/dist/mcp/instructions.js +127 -127
  478. package/dist/mcp/oauth.js +77 -77
  479. package/dist/mcp/stdio.js +89 -89
  480. package/dist/mime.js +1 -1
  481. package/dist/modal/models.js +98 -98
  482. package/dist/model-resolver.js +97 -97
  483. package/dist/model.js +95 -95
  484. package/dist/models-dev.js +102 -102
  485. package/dist/oauth/page.js +1 -1
  486. package/dist/permission/saved.js +81 -81
  487. package/dist/permission/sql.js +5 -5
  488. package/dist/permission.js +112 -112
  489. package/dist/persistent-pty/binary.bun.js +1 -1
  490. package/dist/persistent-pty/daemon.js +1 -1
  491. package/dist/persistent-pty/index.js +87 -87
  492. package/dist/persistent-pty/pty-binding.js +1 -1
  493. package/dist/persistent-pty.js +74 -74
  494. package/dist/plugin/agent.js +103 -103
  495. package/dist/plugin/command.js +100 -100
  496. package/dist/plugin/compaction.js +132 -132
  497. package/dist/plugin/hooks.js +1 -1
  498. package/dist/plugin/host.js +217 -217
  499. package/dist/plugin/identity.js +3 -3
  500. package/dist/plugin/instance.js +5 -5
  501. package/dist/plugin/internal.js +331 -331
  502. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  503. package/dist/plugin/models-dev.js +95 -95
  504. package/dist/plugin/module.js +7 -7
  505. package/dist/plugin/optimize.js +2 -2
  506. package/dist/plugin/plan.js +101 -101
  507. package/dist/plugin/promise.js +1 -1
  508. package/dist/plugin/provider/amazon-bedrock.js +89 -89
  509. package/dist/plugin/provider/azure.js +121 -121
  510. package/dist/plugin/provider/cerebras.js +1 -1
  511. package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
  512. package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
  513. package/dist/plugin/provider/cohere.js +2 -2
  514. package/dist/plugin/provider/configured.js +118 -118
  515. package/dist/plugin/provider/digitalocean.js +92 -92
  516. package/dist/plugin/provider/dynamic.js +2 -2
  517. package/dist/plugin/provider/factory.js +1 -1
  518. package/dist/plugin/provider/gateway.js +2 -2
  519. package/dist/plugin/provider/github-copilot.js +92 -92
  520. package/dist/plugin/provider/gitlab.js +90 -90
  521. package/dist/plugin/provider/google-vertex.js +89 -89
  522. package/dist/plugin/provider/kilo.js +1 -1
  523. package/dist/plugin/provider/llmgateway.js +76 -76
  524. package/dist/plugin/provider/lmstudio.js +121 -121
  525. package/dist/plugin/provider/modal.js +91 -91
  526. package/dist/plugin/provider/nvidia.js +1 -1
  527. package/dist/plugin/provider/ollama.js +121 -121
  528. package/dist/plugin/provider/openai.js +91 -91
  529. package/dist/plugin/provider/opencode.js +93 -93
  530. package/dist/plugin/provider/openrouter.js +90 -90
  531. package/dist/plugin/provider/perplexity.js +2 -2
  532. package/dist/plugin/provider/poe.js +77 -77
  533. package/dist/plugin/provider/prompt-cache-key.js +89 -89
  534. package/dist/plugin/provider/sap-ai-core.js +90 -90
  535. package/dist/plugin/provider/sdk-factory.js +1 -1
  536. package/dist/plugin/provider/snowflake-cortex.js +121 -121
  537. package/dist/plugin/provider/venice.js +2 -2
  538. package/dist/plugin/provider/vercel.js +89 -89
  539. package/dist/plugin/provider/vllm.js +121 -121
  540. package/dist/plugin/provider/xai.js +90 -90
  541. package/dist/plugin/provider/zenmux.js +1 -1
  542. package/dist/plugin/provider.js +159 -159
  543. package/dist/plugin/sdk.js +75 -75
  544. package/dist/plugin/service.js +3 -3
  545. package/dist/plugin/skill.js +140 -140
  546. package/dist/plugin/source-directory.js +1 -1
  547. package/dist/plugin/supervisor.js +350 -350
  548. package/dist/plugin/tool-input-repair.js +4 -4
  549. package/dist/plugin/update.js +6 -6
  550. package/dist/plugin/vcs/git.js +85 -85
  551. package/dist/plugin/vcs/hg.js +85 -85
  552. package/dist/plugin/warming.js +120 -120
  553. package/dist/plugin/websearch/exa.js +7 -7
  554. package/dist/plugin/websearch/firecrawl.js +8 -8
  555. package/dist/plugin/websearch/index.js +9 -9
  556. package/dist/plugin/websearch/mcp.js +6 -6
  557. package/dist/plugin/websearch/parallel.js +6 -6
  558. package/dist/plugin/websearch/tavily.js +4 -4
  559. package/dist/plugin/websearch/tinyfish.js +8 -8
  560. package/dist/plugin.js +226 -226
  561. package/dist/project/schema.js +8 -8
  562. package/dist/project/sql.js +4 -4
  563. package/dist/project.js +87 -87
  564. package/dist/provider.js +88 -88
  565. package/dist/pty/protocol.js +1 -1
  566. package/dist/pty/schema.js +3 -3
  567. package/dist/pty/ticket.js +1 -1
  568. package/dist/pty.js +97 -97
  569. package/dist/reference/instructions.js +86 -86
  570. package/dist/reference.js +90 -90
  571. package/dist/repository-cache.js +80 -80
  572. package/dist/repository.js +3 -3
  573. package/dist/ripgrep/binary.js +2 -2
  574. package/dist/ripgrep.js +96 -96
  575. package/dist/rpc.js +85 -85
  576. package/dist/schema.js +1 -1
  577. package/dist/session/command.js +73 -73
  578. package/dist/session/compaction.js +133 -133
  579. package/dist/session/context.js +151 -151
  580. package/dist/session/diff.js +87 -87
  581. package/dist/session/environment.js +5 -5
  582. package/dist/session/error.js +7 -7
  583. package/dist/session/event.js +1 -1
  584. package/dist/session/execution/restart.js +220 -220
  585. package/dist/session/execution.js +127 -127
  586. package/dist/session/generate.js +150 -150
  587. package/dist/session/history.js +15 -15
  588. package/dist/session/inbox.js +89 -89
  589. package/dist/session/info.js +3 -3
  590. package/dist/session/instruction-entry.js +78 -78
  591. package/dist/session/instruction-state.js +8 -8
  592. package/dist/session/instructions.js +96 -96
  593. package/dist/session/message-updater.js +2 -2
  594. package/dist/session/message.js +1 -1
  595. package/dist/session/model-request.js +118 -118
  596. package/dist/session/model-transport.js +9 -9
  597. package/dist/session/move.js +129 -129
  598. package/dist/session/projector.js +85 -85
  599. package/dist/session/prompt.js +104 -104
  600. package/dist/session/provider-context.js +3 -3
  601. package/dist/session/revert.js +89 -89
  602. package/dist/session/run-coordinator.js +3 -3
  603. package/dist/session/runner/index.js +3 -3
  604. package/dist/session/runner/llm.js +230 -230
  605. package/dist/session/runner/max-steps.js +1 -1
  606. package/dist/session/runner/model.js +97 -97
  607. package/dist/session/runner/publish-llm-event.js +3 -3
  608. package/dist/session/runner/retry.js +113 -113
  609. package/dist/session/runner/step.js +125 -125
  610. package/dist/session/runner/to-llm-message.js +2 -2
  611. package/dist/session/schema.js +3 -3
  612. package/dist/session/session.js +171 -171
  613. package/dist/session/shell.js +137 -137
  614. package/dist/session/skill.js +102 -102
  615. package/dist/session/sql.js +5 -5
  616. package/dist/session/stats.js +72 -72
  617. package/dist/session/store.js +86 -86
  618. package/dist/session/subagent-completion.js +1 -1
  619. package/dist/session/subagent-job.js +209 -209
  620. package/dist/session/system-prompt.js +5 -5
  621. package/dist/session/title.js +155 -155
  622. package/dist/session/to-session-error.js +110 -110
  623. package/dist/session/transfer.js +214 -214
  624. package/dist/session/usage.js +1 -1
  625. package/dist/session.js +217 -217
  626. package/dist/shell/parse.js +6 -6
  627. package/dist/shell/result.js +1 -1
  628. package/dist/shell/scan.js +1 -1
  629. package/dist/shell/select.js +15 -15
  630. package/dist/shell.js +139 -139
  631. package/dist/skill/discovery.js +6 -6
  632. package/dist/skill/instructions.js +106 -106
  633. package/dist/skill.js +111 -111
  634. package/dist/snapshot.js +92 -92
  635. package/dist/state.js +1 -1
  636. package/dist/tool/html-markdown.js +1 -1
  637. package/dist/tool/http-body.js +1 -1
  638. package/dist/tool/mcp.js +126 -126
  639. package/dist/tool/plugin/edit.js +119 -119
  640. package/dist/tool/plugin/file-diff.js +1 -1
  641. package/dist/tool/plugin/glob.js +121 -121
  642. package/dist/tool/plugin/grep.js +123 -123
  643. package/dist/tool/plugin/opencode.js +3 -3
  644. package/dist/tool/plugin/patch.js +121 -121
  645. package/dist/tool/plugin/question.js +104 -104
  646. package/dist/tool/plugin/read.js +124 -124
  647. package/dist/tool/plugin/shell.js +214 -214
  648. package/dist/tool/plugin/skill.js +112 -112
  649. package/dist/tool/plugin/subagent.js +212 -212
  650. package/dist/tool/plugin/webfetch.js +111 -111
  651. package/dist/tool/plugin/websearch.js +111 -111
  652. package/dist/tool/plugin/write.js +121 -121
  653. package/dist/tool/read-filesystem.js +99 -99
  654. package/dist/tool/runtime.js +1 -1
  655. package/dist/tool-output.js +8 -8
  656. package/dist/tool.js +16 -16
  657. package/dist/util/error-summary.js +1 -1
  658. package/dist/util/error.js +1 -1
  659. package/dist/util/git-executable.js +2 -2
  660. package/dist/util/iife.js +1 -1
  661. package/dist/util/lazy.js +1 -1
  662. package/dist/util/slug.js +1 -1
  663. package/dist/util/token.js +1 -1
  664. package/dist/util/which.js +1 -1
  665. package/dist/util/wildcard.js +1 -1
  666. package/dist/v1/config/agent.js +7 -7
  667. package/dist/v1/config/attachment.js +4 -4
  668. package/dist/v1/config/command.js +3 -3
  669. package/dist/v1/config/config.js +16 -16
  670. package/dist/v1/config/error.js +4 -4
  671. package/dist/v1/config/formatter.js +5 -5
  672. package/dist/v1/config/layout.js +1 -1
  673. package/dist/v1/config/lsp.js +3 -3
  674. package/dist/v1/config/mcp.js +4 -4
  675. package/dist/v1/config/migrate.js +91 -91
  676. package/dist/v1/config/permission.js +7 -7
  677. package/dist/v1/config/plugin.js +3 -3
  678. package/dist/v1/config/provider-options.js +1 -1
  679. package/dist/v1/config/provider.js +4 -4
  680. package/dist/v1/config/server.js +2 -2
  681. package/dist/v1/config/skills.js +3 -3
  682. package/dist/v1/permission.js +1 -1
  683. package/dist/variant.js +90 -90
  684. package/dist/vcs/patch.js +1 -1
  685. package/dist/vcs.js +88 -88
  686. package/dist/websearch.js +83 -83
  687. package/dist/wellknown/plugin.js +75 -75
  688. package/dist/wellknown.js +80 -80
  689. package/dist/workspace/driver.js +5 -5
  690. package/dist/workspace/sql.js +1 -1
  691. package/dist/workspace.js +79 -79
  692. package/dist/worktree/directory.js +2 -2
  693. package/dist/worktree/git.js +10 -10
  694. package/dist/worktree/sql.js +5 -5
  695. package/dist/worktree/strategies.js +88 -88
  696. package/dist/worktree.js +97 -97
  697. package/package.json +8 -8
  698. package/dist/chunks/persistent-pty-0mesazry.js +0 -4
  699. package/dist/chunks/persistent-pty-43zmxdyv.js +0 -503
  700. package/dist/chunks/persistent-pty-806pcn4t.js +0 -252
  701. package/dist/chunks/persistent-pty-qdyb70sk.js +0 -18
  702. package/dist/chunks/persistent-pty-z2s8v20b.js +0 -26
  703. /package/dist/chunks/{persistent-pty-0qkdqm5v.js → image-0qkdqm5v.js} +0 -0
  704. /package/dist/chunks/{persistent-pty-0zkw76rk.js → image-0zkw76rk.js} +0 -0
  705. /package/dist/chunks/{persistent-pty-17cy0kzp.js → image-17cy0kzp.js} +0 -0
  706. /package/dist/chunks/{persistent-pty-1cnp2v09.js → image-1cnp2v09.js} +0 -0
  707. /package/dist/chunks/{persistent-pty-1kg9ymc8.js → image-1kg9ymc8.js} +0 -0
  708. /package/dist/chunks/{persistent-pty-24dcb14g.js → image-24dcb14g.js} +0 -0
  709. /package/dist/chunks/{persistent-pty-2710q6r3.js → image-2710q6r3.js} +0 -0
  710. /package/dist/chunks/{persistent-pty-2axfhc9x.js → image-2axfhc9x.js} +0 -0
  711. /package/dist/chunks/{persistent-pty-2c3vjs8z.js → image-2c3vjs8z.js} +0 -0
  712. /package/dist/chunks/{persistent-pty-359p4xyc.js → image-359p4xyc.js} +0 -0
  713. /package/dist/chunks/{persistent-pty-3asan66x.js → image-3asan66x.js} +0 -0
  714. /package/dist/chunks/{persistent-pty-3v8g72cx.js → image-3v8g72cx.js} +0 -0
  715. /package/dist/chunks/{persistent-pty-3w5fmr99.js → image-3w5fmr99.js} +0 -0
  716. /package/dist/chunks/{persistent-pty-3wcehsnq.js → image-3wcehsnq.js} +0 -0
  717. /package/dist/chunks/{persistent-pty-43n2bw4t.js → image-43n2bw4t.js} +0 -0
  718. /package/dist/chunks/{persistent-pty-4knz6hnm.js → image-4knz6hnm.js} +0 -0
  719. /package/dist/chunks/{persistent-pty-4vcrnpx2.js → image-4vcrnpx2.js} +0 -0
  720. /package/dist/chunks/{persistent-pty-4y7fprxs.js → image-4y7fprxs.js} +0 -0
  721. /package/dist/chunks/{persistent-pty-53557ph1.js → image-53557ph1.js} +0 -0
  722. /package/dist/chunks/{persistent-pty-550bvhaj.js → image-550bvhaj.js} +0 -0
  723. /package/dist/chunks/{persistent-pty-6prwharc.js → image-6prwharc.js} +0 -0
  724. /package/dist/chunks/{persistent-pty-7akdwqpd.js → image-7akdwqpd.js} +0 -0
  725. /package/dist/chunks/{persistent-pty-7m9af43g.js → image-7m9af43g.js} +0 -0
  726. /package/dist/chunks/{persistent-pty-822emrt2.js → image-822emrt2.js} +0 -0
  727. /package/dist/chunks/{persistent-pty-88xbtdfr.js → image-88xbtdfr.js} +0 -0
  728. /package/dist/chunks/{persistent-pty-8n3pysct.js → image-8n3pysct.js} +0 -0
  729. /package/dist/chunks/{persistent-pty-922hggd3.js → image-922hggd3.js} +0 -0
  730. /package/dist/chunks/{persistent-pty-9a4afbnw.js → image-9a4afbnw.js} +0 -0
  731. /package/dist/chunks/{persistent-pty-9rqn6x4v.js → image-9rqn6x4v.js} +0 -0
  732. /package/dist/chunks/{persistent-pty-a6k6eb26.js → image-a6k6eb26.js} +0 -0
  733. /package/dist/chunks/{persistent-pty-af5trqkr.js → image-af5trqkr.js} +0 -0
  734. /package/dist/chunks/{persistent-pty-afrmfg78.js → image-afrmfg78.js} +0 -0
  735. /package/dist/chunks/{persistent-pty-aqzs7mqg.js → image-aqzs7mqg.js} +0 -0
  736. /package/dist/chunks/{persistent-pty-atq7p7m5.js → image-atq7p7m5.js} +0 -0
  737. /package/dist/chunks/{persistent-pty-bkyjaxrp.js → image-bkyjaxrp.js} +0 -0
  738. /package/dist/chunks/{persistent-pty-bmr6ed5q.js → image-bmr6ed5q.js} +0 -0
  739. /package/dist/chunks/{persistent-pty-cf4snx6d.js → image-cf4snx6d.js} +0 -0
  740. /package/dist/chunks/{persistent-pty-cvy3z8tj.js → image-cvy3z8tj.js} +0 -0
  741. /package/dist/chunks/{persistent-pty-d9fn303g.js → image-d9fn303g.js} +0 -0
  742. /package/dist/chunks/{persistent-pty-d9jj8t3e.js → image-d9jj8t3e.js} +0 -0
  743. /package/dist/chunks/{persistent-pty-dajrwvna.js → image-dajrwvna.js} +0 -0
  744. /package/dist/chunks/{persistent-pty-dap0rakb.js → image-dap0rakb.js} +0 -0
  745. /package/dist/chunks/{persistent-pty-df08tz66.js → image-df08tz66.js} +0 -0
  746. /package/dist/chunks/{persistent-pty-dy18nga0.js → image-dy18nga0.js} +0 -0
  747. /package/dist/chunks/{persistent-pty-e5kj55wp.js → image-e5kj55wp.js} +0 -0
  748. /package/dist/chunks/{persistent-pty-e73j6tqm.js → image-e73j6tqm.js} +0 -0
  749. /package/dist/chunks/{persistent-pty-ec1grn59.js → image-ec1grn59.js} +0 -0
  750. /package/dist/chunks/{persistent-pty-eh3zwz77.js → image-eh3zwz77.js} +0 -0
  751. /package/dist/chunks/{persistent-pty-emrn6kk6.js → image-emrn6kk6.js} +0 -0
  752. /package/dist/chunks/{persistent-pty-f0mxakyp.js → image-f0mxakyp.js} +0 -0
  753. /package/dist/chunks/{persistent-pty-f6n9ztr4.js → image-f6n9ztr4.js} +0 -0
  754. /package/dist/chunks/{persistent-pty-faypxj3z.js → image-faypxj3z.js} +0 -0
  755. /package/dist/chunks/{persistent-pty-fd410y7t.js → image-fd410y7t.js} +0 -0
  756. /package/dist/chunks/{persistent-pty-fxgpk5d8.js → image-fxgpk5d8.js} +0 -0
  757. /package/dist/chunks/{persistent-pty-g4wezp1m.js → image-g4wezp1m.js} +0 -0
  758. /package/dist/chunks/{persistent-pty-g86h250q.js → image-g86h250q.js} +0 -0
  759. /package/dist/chunks/{persistent-pty-gebd4c9n.js → image-gebd4c9n.js} +0 -0
  760. /package/dist/chunks/{persistent-pty-gftt206x.js → image-gftt206x.js} +0 -0
  761. /package/dist/chunks/{persistent-pty-hjbc5kem.js → image-hjbc5kem.js} +0 -0
  762. /package/dist/chunks/{persistent-pty-hk9envan.js → image-hk9envan.js} +0 -0
  763. /package/dist/chunks/{persistent-pty-j2ntwpah.js → image-j2ntwpah.js} +0 -0
  764. /package/dist/chunks/{persistent-pty-j5zkgpj8.js → image-j5zkgpj8.js} +0 -0
  765. /package/dist/chunks/{persistent-pty-jjkms2e6.js → image-jjkms2e6.js} +0 -0
  766. /package/dist/chunks/{persistent-pty-jr7sbwjy.js → image-jr7sbwjy.js} +0 -0
  767. /package/dist/chunks/{persistent-pty-jwfs4k6c.js → image-jwfs4k6c.js} +0 -0
  768. /package/dist/chunks/{persistent-pty-jzg6c2d5.js → image-jzg6c2d5.js} +0 -0
  769. /package/dist/chunks/{persistent-pty-mp448xyj.js → image-mp448xyj.js} +0 -0
  770. /package/dist/chunks/{persistent-pty-msx8hqn2.js → image-msx8hqn2.js} +0 -0
  771. /package/dist/chunks/{persistent-pty-n05xt0ee.js → image-n05xt0ee.js} +0 -0
  772. /package/dist/chunks/{persistent-pty-n3j8tn72.js → image-n3j8tn72.js} +0 -0
  773. /package/dist/chunks/{persistent-pty-njntx4h6.js → image-njntx4h6.js} +0 -0
  774. /package/dist/chunks/{persistent-pty-q3sfg36h.js → image-q3sfg36h.js} +0 -0
  775. /package/dist/chunks/{persistent-pty-q74kybfr.js → image-q74kybfr.js} +0 -0
  776. /package/dist/chunks/{persistent-pty-qaymkmh1.js → image-qaymkmh1.js} +0 -0
  777. /package/dist/chunks/{persistent-pty-qb87gjwd.js → image-qb87gjwd.js} +0 -0
  778. /package/dist/chunks/{persistent-pty-qfa1cgps.js → image-qfa1cgps.js} +0 -0
  779. /package/dist/chunks/{persistent-pty-qg3g05ea.js → image-qg3g05ea.js} +0 -0
  780. /package/dist/chunks/{persistent-pty-qrg20bc0.js → image-qrg20bc0.js} +0 -0
  781. /package/dist/chunks/{persistent-pty-rcb2kzg1.js → image-rcb2kzg1.js} +0 -0
  782. /package/dist/chunks/{persistent-pty-sdp7kfr6.js → image-sdp7kfr6.js} +0 -0
  783. /package/dist/chunks/{persistent-pty-sk3qaz4a.js → image-sk3qaz4a.js} +0 -0
  784. /package/dist/chunks/{persistent-pty-ssg3fenm.js → image-ssg3fenm.js} +0 -0
  785. /package/dist/chunks/{persistent-pty-twg0f83k.js → image-twg0f83k.js} +0 -0
  786. /package/dist/chunks/{persistent-pty-w803qqfp.js → image-w803qqfp.js} +0 -0
  787. /package/dist/chunks/{persistent-pty-wc3fc9cn.js → image-wc3fc9cn.js} +0 -0
  788. /package/dist/chunks/{persistent-pty-wer8tq1h.js → image-wer8tq1h.js} +0 -0
  789. /package/dist/chunks/{persistent-pty-wtztk69x.js → image-wtztk69x.js} +0 -0
  790. /package/dist/chunks/{persistent-pty-x0ckcb58.js → image-x0ckcb58.js} +0 -0
  791. /package/dist/chunks/{persistent-pty-x61499pn.js → image-x61499pn.js} +0 -0
  792. /package/dist/chunks/{persistent-pty-y44na4kk.js → image-y44na4kk.js} +0 -0
  793. /package/dist/chunks/{persistent-pty-y8cydn3q.js → image-y8cydn3q.js} +0 -0
  794. /package/dist/chunks/{persistent-pty-y8f7s663.js → image-y8f7s663.js} +0 -0
  795. /package/dist/chunks/{persistent-pty-ygaqb7jw.js → image-ygaqb7jw.js} +0 -0
  796. /package/dist/chunks/{persistent-pty-ym463w8f.js → image-ym463w8f.js} +0 -0
  797. /package/dist/chunks/{persistent-pty-z9919s4g.js → image-z9919s4g.js} +0 -0
@@ -1,27 +1,36 @@
1
1
  import {
2
2
  Service83,
3
3
  node87
4
- } from "./persistent-pty-x1bw9y7f.js";
4
+ } from "./image-rj372e5a.js";
5
5
  import {
6
6
  shutdown2,
7
7
  create3
8
- } from "./persistent-pty-rdw6cm16.js";
8
+ } from "./image-rdw6cm16.js";
9
9
  import {
10
10
  ID14,
11
11
  Service75,
12
12
  node79,
13
13
  Event18
14
- } from "./persistent-pty-b5re83s5.js";
14
+ } from "./image-ad4z1jrs.js";
15
15
  import {
16
16
  key2
17
- } from "./persistent-pty-h6r3nrb9.js";
17
+ } from "./image-h6r3nrb9.js";
18
18
  import {
19
- Service77,
20
- node81
21
- } from "./persistent-pty-fy2vv4qy.js";
19
+ Service80,
20
+ node84
21
+ } from "./image-711fd8qe.js";
22
22
  import {
23
23
  __export
24
- } from "./persistent-pty-9rqn6x4v.js";
24
+ } from "./image-9rqn6x4v.js";
25
+
26
+ // src/aisdk-native.ts
27
+ var exports_aisdk_native = {};
28
+ __export(exports_aisdk_native, {
29
+ AISDKNative: () => exports_aisdk_native,
30
+ native: () => native2,
31
+ rewrite: () => rewrite2
32
+ });
33
+ import { Effect as Effect2, Option, Schema as Schema2, Struct as Struct2 } from "effect";
25
34
 
26
35
  // src/provider.ts
27
36
  var exports_provider3 = {};
@@ -47,7 +56,7 @@ __export(exports_provider3, {
47
56
  node: () => node78,
48
57
  packageName: () => packageName2
49
58
  });
50
- import { Context, Effect as Effect2, Layer, Schema as Schema2, Stream, Struct as Struct2 } from "effect";
59
+ import { Context, Effect, Layer, Schema, Stream, Struct } from "effect";
51
60
  import { Provider } from "@opencode/schema/provider";
52
61
  import { Model } from "@opencode/schema/model";
53
62
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -55,253 +64,6 @@ import { isRecord } from "@opencode/ai/utils/record";
55
64
  import { importModule, resolveModule } from "@opencode/util/runtime-import";
56
65
  import { Credential } from "@opencode/schema/credential";
57
66
  import { freeze } from "immer";
58
-
59
- // src/aisdk-native.ts
60
- var exports_aisdk_native = {};
61
- __export(exports_aisdk_native, {
62
- AISDKNative: () => exports_aisdk_native,
63
- native: () => native2,
64
- rewrite: () => rewrite2
65
- });
66
- import { Effect, Option, Schema, Struct } from "effect";
67
- function rewrite2(target, input) {
68
- if (input.specifier === undefined)
69
- return;
70
- const plain = resolve(input.specifier, input);
71
- if (!plain)
72
- return;
73
- const settings = decode(target.settings ?? {});
74
- const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
75
- const translated = options(replacement, input.modelID, settings);
76
- if (target.package !== undefined || replacement !== input.specifier)
77
- target.package = replacement;
78
- target.settings = target.settings === undefined ? undefined : {
79
- ...translated.settings,
80
- ...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
81
- };
82
- target.headers = mergeHeaders2(translated.headers, target.headers);
83
- target.body = mergeOverlay2(translated.body, target.body);
84
- target.variants = target.variants?.map((variant) => {
85
- const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
86
- const headers = mergeHeaders2(overlay.headers, variant.headers);
87
- const body = mergeOverlay2(overlay.body, variant.body);
88
- return {
89
- id: variant.id,
90
- ...variant.settings === undefined ? {} : { settings: overlay.settings },
91
- ...headers === undefined ? {} : { headers },
92
- ...body === undefined ? {} : { body }
93
- };
94
- });
95
- }
96
- var PACKAGES = {
97
- "@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
98
- "@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
99
- "@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
100
- "@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
101
- "@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
102
- "@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
103
- "@ai-sdk/google": "@opencode/ai/providers/google",
104
- "@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
105
- "@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
106
- "@ai-sdk/groq": "@opencode/ai/providers/groq",
107
- "@ai-sdk/mistral": "@opencode/ai/providers/mistral",
108
- "@ai-sdk/openai": "@opencode/ai/providers/openai",
109
- "@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
110
- "@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
111
- "@ai-sdk/xai": "@opencode/ai/providers/xai",
112
- "@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
113
- "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
114
- };
115
- var protocols = (name) => ({
116
- "@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
117
- "@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
118
- "@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
119
- });
120
- var HOSTS = {
121
- alibaba: protocols("alibaba"),
122
- "alibaba-cn": protocols("alibaba"),
123
- "alibaba-coding-plan": protocols("alibaba"),
124
- "alibaba-coding-plan-cn": protocols("alibaba"),
125
- "alibaba-token-plan": protocols("alibaba"),
126
- "alibaba-token-plan-cn": protocols("alibaba"),
127
- baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
128
- "cloudflare-ai-gateway": {
129
- "@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
130
- "@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
131
- "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
132
- "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
133
- },
134
- "cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
135
- deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
136
- "fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
137
- "google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
138
- "kimi-for-coding": protocols("moonshot"),
139
- meta: protocols("meta"),
140
- minimax: protocols("minimax"),
141
- "minimax-cn": protocols("minimax"),
142
- "minimax-coding-plan": protocols("minimax"),
143
- "minimax-cn-coding-plan": protocols("minimax"),
144
- moonshotai: protocols("moonshot"),
145
- "moonshotai-cn": protocols("moonshot"),
146
- zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
147
- "zai-coding-plan": protocols("zai-coding-plan"),
148
- zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
149
- "zhipuai-coding-plan": protocols("zai-coding-plan")
150
- };
151
- var NATIVE = new Set([
152
- ...Object.values(PACKAGES),
153
- ...Object.values(HOSTS).flatMap((host) => Object.values(host)),
154
- "@opencode/ai/providers/azure/chat",
155
- "@opencode/ai/providers/amazon-bedrock/mantle",
156
- "@opencode/ai/providers/amazon-bedrock/mantle/chat",
157
- "@opencode/ai/providers/amazon-bedrock/mantle/responses"
158
- ]);
159
- function native2(npm, context) {
160
- const host = HOSTS[context.providerID]?.[npm];
161
- if (host)
162
- return host;
163
- if (npm === "@ai-sdk/amazon-bedrock/mantle")
164
- return mantle(context.modelID);
165
- if (npm === "@ai-sdk/azure" && context.settings?.useCompletionUrls === true)
166
- return "@opencode/ai/providers/azure/chat";
167
- return PACKAGES[npm];
168
- }
169
- var mantle = (modelID) => {
170
- if (modelID === undefined)
171
- return "@opencode/ai/providers/amazon-bedrock/mantle";
172
- return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
173
- };
174
- function resolve(specifier, context) {
175
- const npm = packageName2(specifier);
176
- if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
177
- return native2(npm, context);
178
- if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
179
- return mantle(context.modelID);
180
- if (npm === "@opencode/ai/providers/azure/responses" && context.settings?.useCompletionUrls === true)
181
- return "@opencode/ai/providers/azure/chat";
182
- return NATIVE.has(npm) ? npm : undefined;
183
- }
184
- function options(replacement, modelID, settings) {
185
- const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
186
- const kept = Struct.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
187
- return {
188
- settings: replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
189
- ...settings.headers === undefined ? {} : { headers: settings.headers },
190
- ...settings.extraBody === undefined ? {} : { body: settings.extraBody },
191
- ...converse ? bedrockRequest(modelID, settings) : {},
192
- ...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
193
- };
194
- }
195
- var BEDROCK_KEYS = [
196
- "bearerToken",
197
- "endpoint",
198
- "credentials",
199
- "credentialProvider",
200
- "accessKeyId",
201
- "secretAccessKey",
202
- "sessionToken"
203
- ];
204
- var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
205
- function bedrockSettings(settings, converse) {
206
- const region = settings.region ?? settings.credentials?.region;
207
- const credentials = settings.credentials ?? settings;
208
- const baseURL = settings.baseURL ?? settings.endpoint;
209
- return {
210
- ...Struct.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
211
- ...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
212
- ...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
213
- ...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
214
- credentials: {
215
- ...region === undefined ? {} : { region },
216
- accessKeyId: credentials.accessKeyId,
217
- secretAccessKey: credentials.secretAccessKey,
218
- ...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
219
- }
220
- }
221
- };
222
- }
223
- function bedrockRequest(modelID, settings) {
224
- const additional = settings.additionalModelRequestFields ?? {};
225
- const reasoning = settings.reasoningConfig;
226
- const anthropic = modelID?.includes("anthropic") ?? false;
227
- const openai = modelID?.includes("openai.") ?? false;
228
- const harmony = modelID?.includes("openai.gpt-oss") ?? false;
229
- const effort = reasoning?.maxReasoningEffort;
230
- const type = reasoning?.type;
231
- const budget = reasoning?.budgetTokens;
232
- const display = reasoning?.display;
233
- const betas = settings.anthropicBeta ?? [];
234
- const fields = mergeOverlay2(additional, {
235
- ...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
236
- ...anthropic && type === "enabled" && budget !== undefined ? { thinking: { type: "enabled", budget_tokens: budget } } : {},
237
- ...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
238
- ...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
239
- ...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
240
- ...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
241
- ...!anthropic && !openai && effort !== undefined ? {
242
- reasoningConfig: {
243
- ...type === undefined || type === "adaptive" ? {} : { type },
244
- ...budget === undefined ? {} : { budgetTokens: budget },
245
- maxReasoningEffort: effort
246
- }
247
- } : {}
248
- });
249
- const body = {
250
- ...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
251
- ...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
252
- };
253
- return Object.keys(body).length === 0 ? {} : { body };
254
- }
255
- var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
256
- function openRouterRequest(settings) {
257
- const headers = mergeHeaders2({
258
- ...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
259
- ...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
260
- ...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
261
- }, settings.headers) ?? {};
262
- return Object.keys(headers).length === 0 ? {} : { headers };
263
- }
264
- var lenient = (schema) => Schema.optional(Schema.UndefinedOr(schema).pipe(Schema.catchDecoding(() => Effect.succeed(Option.some(undefined)))));
265
- var Credentials = Schema.Struct({
266
- accessKeyId: Schema.String,
267
- secretAccessKey: Schema.String,
268
- sessionToken: lenient(Schema.String),
269
- region: lenient(Schema.String)
270
- });
271
- var Legacy = Schema.StructWithRest(Schema.Struct({
272
- apiKey: lenient(Schema.String),
273
- baseURL: lenient(Schema.String),
274
- headers: lenient(Schema.Record(Schema.String, Schema.String)),
275
- extraBody: lenient(Schema.Record(Schema.String, Schema.Unknown)),
276
- useCompletionUrls: lenient(Schema.Boolean),
277
- auth: lenient(Schema.Literals(["bearer", "sigv4"])),
278
- bearerToken: lenient(Schema.String),
279
- endpoint: lenient(Schema.String),
280
- region: lenient(Schema.String),
281
- credentials: lenient(Credentials),
282
- accessKeyId: lenient(Schema.String),
283
- secretAccessKey: lenient(Schema.String),
284
- sessionToken: lenient(Schema.String),
285
- anthropicBeta: lenient(Schema.Array(Schema.String)),
286
- serviceTier: lenient(Schema.String),
287
- reasoningConfig: lenient(Schema.Struct({
288
- type: lenient(Schema.String),
289
- display: lenient(Schema.String),
290
- maxReasoningEffort: lenient(Schema.String),
291
- budgetTokens: lenient(Schema.Number)
292
- })),
293
- additionalModelRequestFields: lenient(Schema.StructWithRest(Schema.Struct({
294
- anthropic_beta: lenient(Schema.Array(Schema.String)),
295
- output_config: lenient(Schema.Record(Schema.String, Schema.Unknown)),
296
- reasoning: lenient(Schema.Record(Schema.String, Schema.Unknown))
297
- }), [Schema.Record(Schema.String, Schema.Unknown)])),
298
- appName: lenient(Schema.String),
299
- appUrl: lenient(Schema.String),
300
- api_keys: lenient(Schema.Record(Schema.String, Schema.String))
301
- }), [Schema.Record(Schema.String, Schema.Unknown)]);
302
- var decode = Schema.decodeUnknownSync(Legacy);
303
-
304
- // src/provider.ts
305
67
  import { Event as Event17 } from "@opencode/schema/provider";
306
68
  var ID13 = Provider.ID;
307
69
  var AISDK_PREFIX2 = "aisdk:";
@@ -314,12 +76,12 @@ function packageName2(value) {
314
76
  return value;
315
77
  return value.slice(AISDK_PREFIX2.length);
316
78
  }
317
- var JsonRecord = Schema2.Record(Schema2.String, Schema2.Json);
318
- var decodeJsonRecord = Schema2.decodeUnknownSync(JsonRecord);
79
+ var JsonRecord = Schema.Record(Schema.String, Schema.Json);
80
+ var decodeJsonRecord = Schema.decodeUnknownSync(JsonRecord);
319
81
 
320
- class LoadError3 extends Schema2.TaggedError()("Provider.LoadError", {
321
- package: Schema2.String,
322
- cause: Schema2.Defect()
82
+ class LoadError3 extends Schema.TaggedError()("Provider.LoadError", {
83
+ package: Schema.String,
84
+ cause: Schema.Defect()
323
85
  }) {
324
86
  }
325
87
  var packages = new Map;
@@ -380,12 +142,12 @@ var builtins = new Map([
380
142
  () => import("@opencode/ai/providers/zai-coding-plan/responses")
381
143
  ]
382
144
  ]);
383
- var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
145
+ var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
384
146
  const specifier = packageName2(input);
385
147
  const builtin = builtins.get(specifier);
386
148
  if (builtin)
387
149
  return yield* importPackage(specifier, specifier, builtin);
388
- const resolved = yield* Effect2.sync(() => {
150
+ const resolved = yield* Effect.sync(() => {
389
151
  if (specifier.startsWith("file://") || specifier.startsWith("@opencode/ai/"))
390
152
  return specifier;
391
153
  try {
@@ -404,8 +166,8 @@ var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
404
166
  }
405
167
  const parts = specifier.split("/");
406
168
  const root = specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0] ?? specifier;
407
- const installed = yield* npm.add(root).pipe(Effect2.mapError((cause) => new LoadError3({ package: specifier, cause })));
408
- const entrypoint = yield* Effect2.try({
169
+ const installed = yield* npm.add(root).pipe(Effect.mapError((cause) => new LoadError3({ package: specifier, cause })));
170
+ const entrypoint = yield* Effect.try({
409
171
  try: () => resolveModule(specifier, installed.directory),
410
172
  catch: (cause) => new LoadError3({ package: specifier, cause })
411
173
  });
@@ -414,10 +176,10 @@ var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
414
176
  var CORE_KEYS = ["chunkTimeout", "compaction", "fetch", "timeout", "transport"];
415
177
  var PROVIDER_ONLY_KEYS = ["chunkTimeout", "timeout", "transport"];
416
178
  function nativeSettings2(settings) {
417
- return Struct2.omit(settings, CORE_KEYS);
179
+ return Struct.omit(settings, CORE_KEYS);
418
180
  }
419
181
  function modelSettings2(settings) {
420
- return settings && Struct2.omit(settings, PROVIDER_ONLY_KEYS);
182
+ return settings && Struct.omit(settings, PROVIDER_ONLY_KEYS);
421
183
  }
422
184
  function mergeOverlay2(base, overlay) {
423
185
  if (base === undefined)
@@ -463,10 +225,10 @@ function index(providerID, models) {
463
225
  definitions.set(models, indexes);
464
226
  return result;
465
227
  }
466
- var layer = Layer.effect(Service74, Effect2.gen(function* () {
228
+ var layer = Layer.effect(Service74, Effect.gen(function* () {
467
229
  const bus = yield* Service83;
468
230
  const integrations = yield* Service75;
469
- const location = yield* Service77;
231
+ const location = yield* Service80;
470
232
  const state = create3({
471
233
  name: "provider",
472
234
  initial: () => new Map,
@@ -545,9 +307,9 @@ var layer = Layer.effect(Service74, Effect2.gen(function* () {
545
307
  },
546
308
  notify: () => notify
547
309
  });
548
- yield* Effect2.addFinalizer(() => shutdown2(state.reload()));
310
+ yield* Effect.addFinalizer(() => shutdown2(state.reload()));
549
311
  let cached;
550
- const snapshot = Effect2.fn("Provider.snapshot")(function* () {
312
+ const snapshot = Effect.fn("Provider.snapshot")(function* () {
551
313
  while (true) {
552
314
  const revision = integrations.revision();
553
315
  const records = state.get();
@@ -575,7 +337,7 @@ var layer = Layer.effect(Service74, Effect2.gen(function* () {
575
337
  }
576
338
  });
577
339
  let published;
578
- const notify = Effect2.gen(function* () {
340
+ const notify = Effect.gen(function* () {
579
341
  const value = yield* snapshot();
580
342
  if (value === published)
581
343
  return;
@@ -584,19 +346,19 @@ var layer = Layer.effect(Service74, Effect2.gen(function* () {
584
346
  location: { directory: location.directory, workspaceID: location.workspaceID }
585
347
  });
586
348
  });
587
- yield* bus.subscribe([Event18.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect2.forkScoped({ startImmediately: true }));
349
+ yield* bus.subscribe([Event18.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
588
350
  return Service74.of({
589
351
  transform: state.transform,
590
352
  reload: state.reload,
591
- get: Effect2.fn("Provider.get")((id) => Effect2.sync(() => freeze(state.get().get(id)?.provider, true))),
592
- all: Effect2.fn("Provider.all")(() => Effect2.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
593
- available: Effect2.fn("Provider.available")(() => snapshot().pipe(Effect2.map((value) => value.providers))),
353
+ get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
354
+ all: Effect.fn("Provider.all")(() => Effect.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
355
+ available: Effect.fn("Provider.available")(() => snapshot().pipe(Effect.map((value) => value.providers))),
594
356
  snapshot
595
357
  });
596
358
  }));
597
- var node78 = makeLocationNode({ service: Service74, layer, deps: [node87, node79, node81] });
598
- var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
599
- const module = yield* Effect2.tryPromise({
359
+ var node78 = makeLocationNode({ service: Service74, layer, deps: [node87, node79, node84] });
360
+ var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
361
+ const module = yield* Effect.tryPromise({
600
362
  try: () => {
601
363
  const existing = packages.get(entrypoint);
602
364
  if (existing)
@@ -616,4 +378,242 @@ var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, e
616
378
  return module;
617
379
  });
618
380
 
619
- export { ID13, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info27, Service74, node78, exports_provider3, Event17, rewrite2, native2, exports_aisdk_native };
381
+ // src/aisdk-native.ts
382
+ function rewrite2(target, input) {
383
+ if (input.specifier === undefined)
384
+ return;
385
+ const plain = resolve(input.specifier, input);
386
+ if (!plain)
387
+ return;
388
+ const settings = decode(target.settings ?? {});
389
+ const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
390
+ const translated = options(replacement, input.modelID, settings);
391
+ if (target.package !== undefined || replacement !== input.specifier)
392
+ target.package = replacement;
393
+ target.settings = target.settings === undefined ? undefined : {
394
+ ...translated.settings,
395
+ ...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
396
+ };
397
+ target.headers = mergeHeaders2(translated.headers, target.headers);
398
+ target.body = mergeOverlay2(translated.body, target.body);
399
+ target.variants = target.variants?.map((variant) => {
400
+ const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
401
+ const headers = mergeHeaders2(overlay.headers, variant.headers);
402
+ const body = mergeOverlay2(overlay.body, variant.body);
403
+ return {
404
+ id: variant.id,
405
+ ...variant.settings === undefined ? {} : { settings: overlay.settings },
406
+ ...headers === undefined ? {} : { headers },
407
+ ...body === undefined ? {} : { body }
408
+ };
409
+ });
410
+ }
411
+ var PACKAGES = {
412
+ "@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
413
+ "@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
414
+ "@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
415
+ "@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
416
+ "@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
417
+ "@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
418
+ "@ai-sdk/google": "@opencode/ai/providers/google",
419
+ "@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
420
+ "@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
421
+ "@ai-sdk/groq": "@opencode/ai/providers/groq",
422
+ "@ai-sdk/mistral": "@opencode/ai/providers/mistral",
423
+ "@ai-sdk/openai": "@opencode/ai/providers/openai",
424
+ "@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
425
+ "@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
426
+ "@ai-sdk/xai": "@opencode/ai/providers/xai",
427
+ "@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
428
+ "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
429
+ };
430
+ var protocols = (name) => ({
431
+ "@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
432
+ "@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
433
+ "@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
434
+ });
435
+ var HOSTS = {
436
+ alibaba: protocols("alibaba"),
437
+ "alibaba-cn": protocols("alibaba"),
438
+ "alibaba-coding-plan": protocols("alibaba"),
439
+ "alibaba-coding-plan-cn": protocols("alibaba"),
440
+ "alibaba-token-plan": protocols("alibaba"),
441
+ "alibaba-token-plan-cn": protocols("alibaba"),
442
+ baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
443
+ "cloudflare-ai-gateway": {
444
+ "@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
445
+ "@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
446
+ "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
447
+ "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
448
+ },
449
+ "cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
450
+ deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
451
+ "fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
452
+ "google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
453
+ "kimi-for-coding": protocols("moonshot"),
454
+ meta: protocols("meta"),
455
+ minimax: protocols("minimax"),
456
+ "minimax-cn": protocols("minimax"),
457
+ "minimax-coding-plan": protocols("minimax"),
458
+ "minimax-cn-coding-plan": protocols("minimax"),
459
+ moonshotai: protocols("moonshot"),
460
+ "moonshotai-cn": protocols("moonshot"),
461
+ zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
462
+ "zai-coding-plan": protocols("zai-coding-plan"),
463
+ zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
464
+ "zhipuai-coding-plan": protocols("zai-coding-plan")
465
+ };
466
+ var NATIVE = new Set([
467
+ ...Object.values(PACKAGES),
468
+ ...Object.values(HOSTS).flatMap((host) => Object.values(host)),
469
+ "@opencode/ai/providers/azure/chat",
470
+ "@opencode/ai/providers/amazon-bedrock/mantle",
471
+ "@opencode/ai/providers/amazon-bedrock/mantle/chat",
472
+ "@opencode/ai/providers/amazon-bedrock/mantle/responses"
473
+ ]);
474
+ function native2(npm, context) {
475
+ const host = HOSTS[context.providerID]?.[npm];
476
+ if (host)
477
+ return host;
478
+ if (npm === "@ai-sdk/amazon-bedrock/mantle")
479
+ return mantle(context.modelID);
480
+ if (npm === "@ai-sdk/azure" && context.settings?.useCompletionUrls === true)
481
+ return "@opencode/ai/providers/azure/chat";
482
+ return PACKAGES[npm];
483
+ }
484
+ var mantle = (modelID) => {
485
+ if (modelID === undefined)
486
+ return "@opencode/ai/providers/amazon-bedrock/mantle";
487
+ return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
488
+ };
489
+ function resolve(specifier, context) {
490
+ const npm = packageName2(specifier);
491
+ if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
492
+ return native2(npm, context);
493
+ if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
494
+ return mantle(context.modelID);
495
+ if (npm === "@opencode/ai/providers/azure/responses" && context.settings?.useCompletionUrls === true)
496
+ return "@opencode/ai/providers/azure/chat";
497
+ return NATIVE.has(npm) ? npm : undefined;
498
+ }
499
+ function options(replacement, modelID, settings) {
500
+ const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
501
+ const kept = Struct2.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
502
+ return {
503
+ settings: replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
504
+ ...settings.headers === undefined ? {} : { headers: settings.headers },
505
+ ...settings.extraBody === undefined ? {} : { body: settings.extraBody },
506
+ ...converse ? bedrockRequest(modelID, settings) : {},
507
+ ...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
508
+ };
509
+ }
510
+ var BEDROCK_KEYS = [
511
+ "bearerToken",
512
+ "endpoint",
513
+ "credentials",
514
+ "credentialProvider",
515
+ "accessKeyId",
516
+ "secretAccessKey",
517
+ "sessionToken"
518
+ ];
519
+ var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
520
+ function bedrockSettings(settings, converse) {
521
+ const region = settings.region ?? settings.credentials?.region;
522
+ const credentials = settings.credentials ?? settings;
523
+ const baseURL = settings.baseURL ?? settings.endpoint;
524
+ return {
525
+ ...Struct2.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
526
+ ...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
527
+ ...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
528
+ ...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
529
+ credentials: {
530
+ ...region === undefined ? {} : { region },
531
+ accessKeyId: credentials.accessKeyId,
532
+ secretAccessKey: credentials.secretAccessKey,
533
+ ...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
534
+ }
535
+ }
536
+ };
537
+ }
538
+ function bedrockRequest(modelID, settings) {
539
+ const additional = settings.additionalModelRequestFields ?? {};
540
+ const reasoning = settings.reasoningConfig;
541
+ const anthropic = modelID?.includes("anthropic") ?? false;
542
+ const openai = modelID?.includes("openai.") ?? false;
543
+ const harmony = modelID?.includes("openai.gpt-oss") ?? false;
544
+ const effort = reasoning?.maxReasoningEffort;
545
+ const type = reasoning?.type;
546
+ const budget = reasoning?.budgetTokens;
547
+ const display = reasoning?.display;
548
+ const betas = settings.anthropicBeta ?? [];
549
+ const fields = mergeOverlay2(additional, {
550
+ ...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
551
+ ...anthropic && type === "enabled" && budget !== undefined ? { thinking: { type: "enabled", budget_tokens: budget } } : {},
552
+ ...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
553
+ ...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
554
+ ...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
555
+ ...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
556
+ ...!anthropic && !openai && effort !== undefined ? {
557
+ reasoningConfig: {
558
+ ...type === undefined || type === "adaptive" ? {} : { type },
559
+ ...budget === undefined ? {} : { budgetTokens: budget },
560
+ maxReasoningEffort: effort
561
+ }
562
+ } : {}
563
+ });
564
+ const body = {
565
+ ...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
566
+ ...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
567
+ };
568
+ return Object.keys(body).length === 0 ? {} : { body };
569
+ }
570
+ var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
571
+ function openRouterRequest(settings) {
572
+ const headers = mergeHeaders2({
573
+ ...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
574
+ ...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
575
+ ...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
576
+ }, settings.headers) ?? {};
577
+ return Object.keys(headers).length === 0 ? {} : { headers };
578
+ }
579
+ var lenient = (schema) => Schema2.optional(Schema2.UndefinedOr(schema).pipe(Schema2.catchDecoding(() => Effect2.succeed(Option.some(undefined)))));
580
+ var Credentials = Schema2.Struct({
581
+ accessKeyId: Schema2.String,
582
+ secretAccessKey: Schema2.String,
583
+ sessionToken: lenient(Schema2.String),
584
+ region: lenient(Schema2.String)
585
+ });
586
+ var Legacy = Schema2.StructWithRest(Schema2.Struct({
587
+ apiKey: lenient(Schema2.String),
588
+ baseURL: lenient(Schema2.String),
589
+ headers: lenient(Schema2.Record(Schema2.String, Schema2.String)),
590
+ extraBody: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
591
+ useCompletionUrls: lenient(Schema2.Boolean),
592
+ auth: lenient(Schema2.Literals(["bearer", "sigv4"])),
593
+ bearerToken: lenient(Schema2.String),
594
+ endpoint: lenient(Schema2.String),
595
+ region: lenient(Schema2.String),
596
+ credentials: lenient(Credentials),
597
+ accessKeyId: lenient(Schema2.String),
598
+ secretAccessKey: lenient(Schema2.String),
599
+ sessionToken: lenient(Schema2.String),
600
+ anthropicBeta: lenient(Schema2.Array(Schema2.String)),
601
+ serviceTier: lenient(Schema2.String),
602
+ reasoningConfig: lenient(Schema2.Struct({
603
+ type: lenient(Schema2.String),
604
+ display: lenient(Schema2.String),
605
+ maxReasoningEffort: lenient(Schema2.String),
606
+ budgetTokens: lenient(Schema2.Number)
607
+ })),
608
+ additionalModelRequestFields: lenient(Schema2.StructWithRest(Schema2.Struct({
609
+ anthropic_beta: lenient(Schema2.Array(Schema2.String)),
610
+ output_config: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
611
+ reasoning: lenient(Schema2.Record(Schema2.String, Schema2.Unknown))
612
+ }), [Schema2.Record(Schema2.String, Schema2.Unknown)])),
613
+ appName: lenient(Schema2.String),
614
+ appUrl: lenient(Schema2.String),
615
+ api_keys: lenient(Schema2.Record(Schema2.String, Schema2.String))
616
+ }), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
617
+ var decode = Schema2.decodeUnknownSync(Legacy);
618
+
619
+ export { rewrite2, native2, exports_aisdk_native, ID13, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info27, Service74, node78, exports_provider3, Event17 };