@opencode/core 0.0.0-dev-20777 → 0.0.0-dev-20780

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 (785) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +84 -84
  3. package/dist/aisdk-native.js +90 -90
  4. package/dist/aisdk.js +95 -95
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +74 -74
  7. package/dist/chunks/{location-bem8en1s.js → bus-010e5r69.js} +20 -20
  8. package/dist/chunks/{location-zcrspsvn.js → bus-06x8he3q.js} +4 -4
  9. package/dist/chunks/{location-etvz4dq0.js → bus-098984p3.js} +17 -17
  10. package/dist/chunks/{location-q0xm7vwc.js → bus-0j77ygfz.js} +6 -6
  11. package/dist/chunks/{location-by659cs7.js → bus-0jzvm66e.js} +12 -12
  12. package/dist/chunks/{location-0paq2nw3.js → bus-0paq2nw3.js} +1 -1
  13. package/dist/chunks/{location-v7yprycd.js → bus-0twvts0s.js} +9 -9
  14. package/dist/chunks/{location-0vbcp93d.js → bus-0vbcp93d.js} +2 -2
  15. package/dist/chunks/{location-fsvxdad5.js → bus-0z37e6j0.js} +4 -4
  16. package/dist/chunks/{location-das60bkc.js → bus-10vxwk0d.js} +27 -27
  17. package/dist/chunks/{location-arz7hw7x.js → bus-143qq2q9.js} +3 -3
  18. package/dist/chunks/bus-17w0jq5g.js +253 -0
  19. package/dist/chunks/{location-7z0vcwsq.js → bus-186ajv21.js} +10 -10
  20. package/dist/chunks/{location-1dazxqgg.js → bus-1dazxqgg.js} +2 -2
  21. package/dist/chunks/{location-1dvck2a7.js → bus-1dvck2a7.js} +2 -2
  22. package/dist/chunks/{location-fyb3fekh.js → bus-1k0eggyv.js} +11 -11
  23. package/dist/chunks/{location-xpt096d7.js → bus-1qpj3gc3.js} +5 -5
  24. package/dist/chunks/{location-r5atvkz9.js → bus-1s608d8d.js} +11 -11
  25. package/dist/chunks/{location-h4ckqw4f.js → bus-1xzpbkn4.js} +11 -11
  26. package/dist/chunks/{location-w0pdyb55.js → bus-21qwd7zh.js} +7 -7
  27. package/dist/chunks/{location-724avf7x.js → bus-28ym26h0.js} +25 -25
  28. package/dist/chunks/{location-2a5m3afh.js → bus-2a5m3afh.js} +1 -1
  29. package/dist/chunks/{location-4ts7tf6z.js → bus-2ccvkpx1.js} +2 -2
  30. package/dist/chunks/{location-j97mndf0.js → bus-2fgny2zq.js} +11 -11
  31. package/dist/chunks/{location-vn72gsba.js → bus-2m8jawch.js} +4 -4
  32. package/dist/chunks/{location-b3e58hyc.js → bus-2rp0ybms.js} +32 -32
  33. package/dist/chunks/{location-3fc6dm20.js → bus-3fc6dm20.js} +1 -1
  34. package/dist/chunks/{location-3hepkmqq.js → bus-3hepkmqq.js} +1 -1
  35. package/dist/chunks/{location-3xqh13de.js → bus-3pm9060n.js} +6 -6
  36. package/dist/chunks/{location-hpfvhvya.js → bus-3rtxz4nr.js} +8 -8
  37. package/dist/chunks/{location-3smtnn6g.js → bus-3smtnn6g.js} +1 -1
  38. package/dist/chunks/{location-3tvqynh2.js → bus-3tvqynh2.js} +1 -1
  39. package/dist/chunks/{location-np6bm2as.js → bus-3xa9rgyn.js} +4 -4
  40. package/dist/chunks/{location-3zsf4n22.js → bus-3zsf4n22.js} +1 -1
  41. package/dist/chunks/{location-50pnv838.js → bus-4qgv9x6g.js} +13 -13
  42. package/dist/chunks/{location-pjvjbv32.js → bus-4t22mref.js} +11 -11
  43. package/dist/chunks/{location-ch3qpzfg.js → bus-4v61nw5h.js} +9 -9
  44. package/dist/chunks/{location-2jy94dam.js → bus-4vjwn042.js} +15 -15
  45. package/dist/chunks/{location-yrcj3v3g.js → bus-4z58m4b4.js} +4 -4
  46. package/dist/chunks/{location-b4m962yk.js → bus-4z8sycdz.js} +24 -24
  47. package/dist/chunks/{location-wp8xfje7.js → bus-51zs9h4f.js} +30 -30
  48. package/dist/chunks/{location-qmqgtz8f.js → bus-5d607bsg.js} +9 -9
  49. package/dist/chunks/{location-5m9w47nd.js → bus-5m9w47nd.js} +1 -1
  50. package/dist/chunks/{location-xvf4b5tc.js → bus-5ps8cev9.js} +29 -29
  51. package/dist/chunks/{location-2a084xpy.js → bus-5ry04x0z.js} +3 -3
  52. package/dist/chunks/{location-5t3nmthw.js → bus-5t3nmthw.js} +2 -2
  53. package/dist/chunks/{location-a8bn8zg0.js → bus-5wtwrezn.js} +21 -21
  54. package/dist/chunks/{location-pqxmmrpw.js → bus-62azvm80.js} +60 -60
  55. package/dist/chunks/{location-mn8ry2gg.js → bus-64jts66e.js} +17 -17
  56. package/dist/chunks/{location-283v9wt3.js → bus-652bn45x.js} +24 -24
  57. package/dist/chunks/{location-7zz0tb2m.js → bus-6be5hype.js} +320 -320
  58. package/dist/chunks/{location-ws2bx7td.js → bus-6sp4ta8a.js} +3 -3
  59. package/dist/chunks/{location-6xb47vfp.js → bus-6xb47vfp.js} +1 -1
  60. package/dist/chunks/{location-71az546q.js → bus-71az546q.js} +2 -2
  61. package/dist/chunks/{location-tnr8ce74.js → bus-76zjapva.js} +45 -45
  62. package/dist/chunks/{location-na7ss97r.js → bus-79gjecrs.js} +21 -21
  63. package/dist/chunks/{location-t7cpp3m0.js → bus-7bka8wt5.js} +3 -3
  64. package/dist/chunks/{location-7bmhse3q.js → bus-7bmhse3q.js} +1 -1
  65. package/dist/chunks/{location-s1rrpmaa.js → bus-7d5vhtf2.js} +33 -33
  66. package/dist/chunks/{location-fcrkznn8.js → bus-7dqw4kz8.js} +5 -5
  67. package/dist/chunks/{location-xfgbrct6.js → bus-7xw99hsd.js} +18 -18
  68. package/dist/chunks/{location-pbavp9d4.js → bus-81v7692j.js} +20 -20
  69. package/dist/chunks/{location-84txncab.js → bus-84txncab.js} +1 -1
  70. package/dist/chunks/{location-7am7j62s.js → bus-89n2q77n.js} +21 -21
  71. package/dist/chunks/{location-0t098hqn.js → bus-89vjf07m.js} +5 -5
  72. package/dist/chunks/{location-c5g770ce.js → bus-8a36wtzr.js} +8 -8
  73. package/dist/chunks/{location-8d7r5vzw.js → bus-8d7r5vzw.js} +1 -1
  74. package/dist/chunks/{location-p0cpcvwn.js → bus-8dhvfyzx.js} +15 -15
  75. package/dist/chunks/{location-8m6m0r52.js → bus-8m6m0r52.js} +1 -1
  76. package/dist/chunks/{location-fgkdc7jh.js → bus-8mzh7dgv.js} +23 -23
  77. package/dist/chunks/{location-1v74vwhm.js → bus-8q5nw2rc.js} +15 -15
  78. package/dist/chunks/{location-h788nv4n.js → bus-8vfk2wzh.js} +20 -20
  79. package/dist/chunks/{location-ffa51ey5.js → bus-8zzzdw8b.js} +8 -8
  80. package/dist/chunks/{location-pnaxc6j9.js → bus-92swnv4m.js} +8 -8
  81. package/dist/chunks/{location-k58rqv26.js → bus-9ax00edw.js} +17 -17
  82. package/dist/chunks/{location-9e5bzkjp.js → bus-9e5bzkjp.js} +3 -3
  83. package/dist/chunks/{location-gy1mt2vm.js → bus-9fmwm134.js} +22 -22
  84. package/dist/chunks/{location-hzfdd747.js → bus-9grgaa7c.js} +15 -15
  85. package/dist/chunks/{location-nqxj0yn4.js → bus-9pa8tak9.js} +2 -2
  86. package/dist/chunks/{location-cvmt8rk0.js → bus-9prrrzvx.js} +22 -22
  87. package/dist/chunks/{location-08mjp3pt.js → bus-9t8z9rdd.js} +49 -49
  88. package/dist/chunks/{location-dzt4t18k.js → bus-9yp4br1n.js} +7 -7
  89. package/dist/chunks/{location-zg3gffzg.js → bus-a1g1snd0.js} +4 -4
  90. package/dist/chunks/{location-sws9dtgm.js → bus-a2acds5s.js} +6 -6
  91. package/dist/chunks/{location-5h0p9j5c.js → bus-a5nkf7ef.js} +5 -5
  92. package/dist/chunks/{location-h72xck84.js → bus-a7nsv23p.js} +27 -27
  93. package/dist/chunks/{location-9cwykwg4.js → bus-a7qrpj71.js} +32 -32
  94. package/dist/chunks/{location-aaet6srn.js → bus-aaet6srn.js} +2 -2
  95. package/dist/chunks/{location-asvfb1gz.js → bus-ag6c5gy8.js} +26 -26
  96. package/dist/chunks/{location-yb1pbjke.js → bus-ag7q2sxj.js} +24 -24
  97. package/dist/chunks/{location-bmq95mvw.js → bus-asccctv1.js} +5 -5
  98. package/dist/chunks/{location-yjzd8xzf.js → bus-assfvqg0.js} +18 -18
  99. package/dist/chunks/{location-b6gygkdw.js → bus-b6gygkdw.js} +2 -2
  100. package/dist/chunks/{location-mt66mygc.js → bus-b7dazm8b.js} +13 -13
  101. package/dist/chunks/{location-qhqe7njz.js → bus-bbfff5wp.js} +47 -47
  102. package/dist/chunks/{location-44rac60e.js → bus-bc3q7cap.js} +14 -14
  103. package/dist/chunks/{location-y0hnatt9.js → bus-bf73dje6.js} +11 -11
  104. package/dist/chunks/{location-zdw14zwb.js → bus-bfknfsfr.js} +9 -9
  105. package/dist/chunks/{location-qr0pk10y.js → bus-bh11ghbz.js} +25 -25
  106. package/dist/chunks/{location-qa96c720.js → bus-bqszwq89.js} +6 -6
  107. package/dist/chunks/{location-z8nhrpf5.js → bus-bsqvx508.js} +25 -25
  108. package/dist/chunks/{location-02609e96.js → bus-bweffjbd.js} +18 -18
  109. package/dist/chunks/{location-6whpyrs3.js → bus-bzda4e0v.js} +42 -42
  110. package/dist/chunks/{location-y4eq9c7t.js → bus-cdywjnh7.js} +10 -10
  111. package/dist/chunks/{location-6zztp22y.js → bus-cgkrc4bb.js} +43 -43
  112. package/dist/chunks/{location-n0kpyt58.js → bus-chkwe70y.js} +11 -11
  113. package/dist/chunks/{location-t6wbbrfa.js → bus-cja8ytxs.js} +25 -25
  114. package/dist/chunks/{location-4zxfccqq.js → bus-cz01yyjb.js} +22 -22
  115. package/dist/chunks/{location-1z20pv40.js → bus-d62vewej.js} +17 -17
  116. package/dist/chunks/{location-1h8se44f.js → bus-dgjf08fp.js} +11 -11
  117. package/dist/chunks/{location-xs12am9p.js → bus-dhtadd1m.js} +8 -8
  118. package/dist/chunks/{location-v8jdkmfs.js → bus-dj233wg2.js} +19 -19
  119. package/dist/chunks/{location-py28mc1m.js → bus-dk41fh18.js} +11 -11
  120. package/dist/chunks/{location-ywcwnstf.js → bus-dtxbgs5a.js} +24 -24
  121. package/dist/chunks/{location-5qd3pb7m.js → bus-e3qxr5gk.js} +2 -2
  122. package/dist/chunks/{location-ef5x83kb.js → bus-ef5x83kb.js} +1 -1
  123. package/dist/chunks/{location-qmxh83kc.js → bus-efb5g32x.js} +57 -57
  124. package/dist/chunks/{location-b69x7x7h.js → bus-eg674jt0.js} +4 -4
  125. package/dist/chunks/{location-f2mw6jyj.js → bus-ejvnp2ks.js} +11 -11
  126. package/dist/chunks/{location-mt74ad40.js → bus-ekk6x5av.js} +7 -7
  127. package/dist/chunks/{location-k70p9jzb.js → bus-en9mxp96.js} +9 -9
  128. package/dist/chunks/{location-crvcnxkj.js → bus-esqg7esp.js} +5 -5
  129. package/dist/chunks/{location-etq0c3wd.js → bus-etq0c3wd.js} +1 -1
  130. package/dist/chunks/{location-c26ps2t9.js → bus-f1fwbw0d.js} +16 -16
  131. package/dist/chunks/{location-47r5a3mx.js → bus-f7ym1tet.js} +13 -13
  132. package/dist/chunks/{location-4bar7sar.js → bus-fa5cntjs.js} +32 -32
  133. package/dist/chunks/{location-rf5ebq4s.js → bus-fbh6y4te.js} +33 -33
  134. package/dist/chunks/{location-m55qy151.js → bus-fj9gb212.js} +10 -10
  135. package/dist/chunks/{location-dc34mbvf.js → bus-fqcsz1hq.js} +5 -5
  136. package/dist/chunks/{location-j793y9ay.js → bus-fqstbmwf.js} +42 -42
  137. package/dist/chunks/{location-7fyyg3d8.js → bus-fvn3258n.js} +13 -13
  138. package/dist/chunks/{location-257vwa0c.js → bus-fz0tar93.js} +25 -25
  139. package/dist/chunks/{location-essarsw2.js → bus-g02f90vh.js} +35 -35
  140. package/dist/chunks/{location-t9ew0xaf.js → bus-g21r4nge.js} +5 -5
  141. package/dist/chunks/{location-4b5b0vhn.js → bus-g4yact1g.js} +6 -6
  142. package/dist/chunks/{location-pnzf6mjf.js → bus-gd0tnyjc.js} +1 -1
  143. package/dist/chunks/{location-gd4qta3r.js → bus-gd4qta3r.js} +1 -1
  144. package/dist/chunks/{location-3pxsat6s.js → bus-gsqzrz8w.js} +26 -26
  145. package/dist/chunks/{location-qxp4d2xp.js → bus-gz1twrws.js} +48 -48
  146. package/dist/chunks/{location-1v9scpnw.js → bus-h0qnh649.js} +40 -40
  147. package/dist/chunks/{location-h2b79v29.js → bus-h2b79v29.js} +2 -2
  148. package/dist/chunks/{location-fzpqnkcj.js → bus-h54ekfxy.js} +1 -1
  149. package/dist/chunks/{location-h6vf3j39.js → bus-h6vf3j39.js} +1 -1
  150. package/dist/chunks/{location-h7s7r6s9.js → bus-h7s7r6s9.js} +2 -2
  151. package/dist/chunks/{location-yx4j6h9t.js → bus-hw78tzxg.js} +87 -87
  152. package/dist/chunks/{location-geyqfexr.js → bus-hyjq8xad.js} +11 -11
  153. package/dist/chunks/{location-xpfnkknw.js → bus-j4vg6d7v.js} +29 -29
  154. package/dist/chunks/{location-j56e64zr.js → bus-j56e64zr.js} +1 -1
  155. package/dist/chunks/{location-1gmkcf0p.js → bus-jayvcwcn.js} +9 -9
  156. package/dist/chunks/{location-x2tcbxjk.js → bus-jc9vn6vd.js} +37 -37
  157. package/dist/chunks/{location-dhddhhrc.js → bus-jjm2zen4.js} +11 -11
  158. package/dist/chunks/{location-enppsyr8.js → bus-jknqkgkr.js} +5 -5
  159. package/dist/chunks/{location-15xcwm9t.js → bus-jrm784yw.js} +1 -1
  160. package/dist/chunks/{location-v9tbcfk2.js → bus-jsmvkfkg.js} +13 -13
  161. package/dist/chunks/{location-mw9b1c9f.js → bus-k3nb7jrq.js} +15 -15
  162. package/dist/chunks/{location-nyqx1cb3.js → bus-k8hpw67k.js} +5 -5
  163. package/dist/chunks/{location-spvg49p3.js → bus-k938k8xv.js} +32 -32
  164. package/dist/chunks/{location-mc5akg63.js → bus-kde3sa9x.js} +40 -40
  165. package/dist/chunks/{location-rnffhph3.js → bus-keaa2zf4.js} +3 -3
  166. package/dist/chunks/{location-4pedpz6c.js → bus-keb9mpy9.js} +13 -13
  167. package/dist/chunks/{location-24skg3e0.js → bus-khnzegcr.js} +20 -20
  168. package/dist/chunks/{location-m9an57nd.js → bus-kmfy73jk.js} +11 -11
  169. package/dist/chunks/{location-m3fdjcah.js → bus-m3fdjcah.js} +1 -1
  170. package/dist/chunks/{location-p3pp3bgs.js → bus-m3gp12ta.js} +11 -11
  171. package/dist/chunks/{location-h2xnf45v.js → bus-m5q02sjr.js} +18 -18
  172. package/dist/chunks/{location-m9w0rfyh.js → bus-m9w0rfyh.js} +1 -1
  173. package/dist/chunks/{location-mfqp6xfm.js → bus-mfqp6xfm.js} +2 -2
  174. package/dist/chunks/{location-7yh4e7ss.js → bus-mhkvc446.js} +3 -3
  175. package/dist/chunks/{location-xpg5nf0s.js → bus-mmn81c37.js} +23 -23
  176. package/dist/chunks/{location-wb7mg7fb.js → bus-mq4f9z9b.js} +20 -20
  177. package/dist/chunks/{location-addxnjmp.js → bus-mxvxcxwy.js} +4 -4
  178. package/dist/chunks/{location-ta6y1msd.js → bus-n0t4745w.js} +74 -74
  179. package/dist/chunks/{location-ep4m400e.js → bus-n5k0vt14.js} +24 -24
  180. package/dist/chunks/{location-hfpbvkxs.js → bus-n738syme.js} +16 -16
  181. package/dist/chunks/{location-vaskyz0h.js → bus-n7ctfhjf.js} +34 -34
  182. package/dist/chunks/{location-8snddydh.js → bus-n90gr1mm.js} +10 -10
  183. package/dist/chunks/{location-cnwjz3s5.js → bus-nbtb4d53.js} +31 -31
  184. package/dist/chunks/{location-y7rk29wk.js → bus-nct9s1hw.js} +16 -16
  185. package/dist/chunks/{location-ejfryj65.js → bus-ne8wcavp.js} +5 -5
  186. package/dist/chunks/{location-f4jsfm31.js → bus-ngvdkd62.js} +40 -40
  187. package/dist/chunks/{location-sfe13qt9.js → bus-nhb0m7k4.js} +23 -23
  188. package/dist/chunks/{location-05p4mhbg.js → bus-nwfqbemh.js} +12 -12
  189. package/dist/chunks/{location-pa8pe2x7.js → bus-p37cw4rj.js} +8 -8
  190. package/dist/chunks/{location-rb6kc9en.js → bus-pc9pqf7v.js} +4 -4
  191. package/dist/chunks/{location-eba7m2bv.js → bus-pdpp1bnv.js} +16 -16
  192. package/dist/chunks/{location-pjvnvgmy.js → bus-pjvnvgmy.js} +1 -1
  193. package/dist/chunks/{location-pknna89w.js → bus-pknna89w.js} +1 -1
  194. package/dist/chunks/{location-57ehm7c4.js → bus-pv20feya.js} +36 -36
  195. package/dist/chunks/{location-py3kkmfq.js → bus-py3kkmfq.js} +2 -2
  196. package/dist/chunks/{location-k2v3a0tj.js → bus-q63c569t.js} +24 -24
  197. package/dist/chunks/{location-t2fc4mz5.js → bus-qa3qhgw8.js} +4 -4
  198. package/dist/chunks/{location-ya99b1bg.js → bus-qatwc74q.js} +190 -190
  199. package/dist/chunks/{location-efgnm1d6.js → bus-qh46hvaj.js} +12 -12
  200. package/dist/chunks/bus-qkzc4yyn.js +26 -0
  201. package/dist/chunks/{location-qnc92qwc.js → bus-qnc92qwc.js} +1 -1
  202. package/dist/chunks/{location-v0es1rhs.js → bus-qr6f2pwv.js} +9 -9
  203. package/dist/chunks/{location-qsdy395h.js → bus-qsdy395h.js} +1 -1
  204. package/dist/chunks/{location-2fpnaz5h.js → bus-qx2adrk7.js} +27 -27
  205. package/dist/chunks/{location-qxjc9qry.js → bus-qxjc9qry.js} +3 -3
  206. package/dist/chunks/{location-8b345ry2.js → bus-qy72h810.js} +13 -13
  207. package/dist/chunks/{location-zyk1yjk8.js → bus-qygbw77c.js} +5 -5
  208. package/dist/chunks/{location-77392vks.js → bus-qzqxdyjv.js} +5 -5
  209. package/dist/chunks/{location-6hcrkmvd.js → bus-r7ynpd01.js} +9 -9
  210. package/dist/chunks/{location-54ma36ye.js → bus-r94pvvab.js} +4 -4
  211. package/dist/chunks/bus-rap9a73h.js +18 -0
  212. package/dist/chunks/{location-rdw6cm16.js → bus-rdw6cm16.js} +1 -1
  213. package/dist/chunks/{location-smz349yv.js → bus-rnabyaaq.js} +36 -36
  214. package/dist/chunks/{location-ppc2pnsb.js → bus-rs651n2c.js} +4 -4
  215. package/dist/chunks/{location-jph2mfn8.js → bus-rt0p6z7k.js} +24 -24
  216. package/dist/chunks/{location-nxpp2y2e.js → bus-rw8j3gbw.js} +10 -10
  217. package/dist/chunks/{location-922xc4bs.js → bus-ryxxt275.js} +31 -31
  218. package/dist/chunks/{location-zzz4tyg8.js → bus-sa1c6tpj.js} +31 -31
  219. package/dist/chunks/{location-w0nqy3aq.js → bus-sfv8vy3x.js} +9 -9
  220. package/dist/chunks/{location-t9xcwzrx.js → bus-skh58dxa.js} +20 -20
  221. package/dist/chunks/{location-qww9nh48.js → bus-sqkw2dk6.js} +51 -51
  222. package/dist/chunks/{location-51f5btjf.js → bus-sxzvkvgj.js} +6 -6
  223. package/dist/chunks/{location-n7yx15r7.js → bus-t14r6jk1.js} +3 -3
  224. package/dist/chunks/{location-9t7a50xb.js → bus-t550f9t1.js} +4 -4
  225. package/dist/chunks/{location-b8d9rq7p.js → bus-tanwaev4.js} +33 -33
  226. package/dist/chunks/{location-83vepgva.js → bus-tap216v7.js} +31 -31
  227. package/dist/chunks/{location-tazgh4e4.js → bus-tazgh4e4.js} +1 -1
  228. package/dist/chunks/{location-tcezcvh9.js → bus-tcezcvh9.js} +1 -1
  229. package/dist/chunks/{location-tdstcens.js → bus-tdstcens.js} +1 -1
  230. package/dist/chunks/{location-4xpgt2w9.js → bus-tk14y25j.js} +5 -5
  231. package/dist/chunks/{location-22tdpft4.js → bus-tn7yqkmm.js} +6 -6
  232. package/dist/chunks/{location-qh3vb1tn.js → bus-tnbhs49h.js} +9 -9
  233. package/dist/chunks/{location-7wpc5jwh.js → bus-v53b73mt.js} +16 -16
  234. package/dist/chunks/{location-6t1m34v8.js → bus-vatq0zec.js} +3 -3
  235. package/dist/chunks/{location-73gdyt7p.js → bus-vbcnv7q3.js} +19 -19
  236. package/dist/chunks/{location-mye8z46x.js → bus-vbqgwttx.js} +20 -20
  237. package/dist/chunks/{location-veqvce7d.js → bus-veqvce7d.js} +1 -1
  238. package/dist/chunks/{location-cp937pt4.js → bus-vfjhn2wd.js} +4 -4
  239. package/dist/chunks/{location-t5z5wvj2.js → bus-vqgt2ev6.js} +4 -4
  240. package/dist/chunks/{location-vzs5sf6e.js → bus-vzs5sf6e.js} +1 -1
  241. package/dist/chunks/{location-3qb0mese.js → bus-w2mrnr68.js} +4 -4
  242. package/dist/chunks/{location-wbt9zsn3.js → bus-w3jg838k.js} +9 -9
  243. package/dist/chunks/{location-w3wsvvr9.js → bus-w3wsvvr9.js} +1 -1
  244. package/dist/chunks/{location-6qv3krp1.js → bus-w4mgg5sc.js} +15 -15
  245. package/dist/chunks/{location-5hps0jc8.js → bus-w749sgma.js} +42 -42
  246. package/dist/chunks/{location-8pfsh0gj.js → bus-w7g6dafb.js} +17 -17
  247. package/dist/chunks/{location-wd87259q.js → bus-wd87259q.js} +1 -1
  248. package/dist/chunks/{location-thkbvcgx.js → bus-wg96wy5v.js} +2 -2
  249. package/dist/chunks/{location-agg46hj7.js → bus-wgz0mrjx.js} +8 -8
  250. package/dist/chunks/{location-6tyzbyh4.js → bus-wk7y1wk7.js} +15 -15
  251. package/dist/chunks/{location-wt19589t.js → bus-wm4vkbe2.js} +3 -3
  252. package/dist/chunks/{location-j8s9ab9g.js → bus-wqgzkz37.js} +9 -9
  253. package/dist/chunks/{location-ds1wy84x.js → bus-wrp7z1gj.js} +27 -27
  254. package/dist/chunks/{location-kf8rbkby.js → bus-wyhc8br9.js} +29 -29
  255. package/dist/chunks/{location-1g5f91mn.js → bus-wyr8s1my.js} +46 -46
  256. package/dist/chunks/{location-y56ehv6b.js → bus-x2aynqqh.js} +8 -8
  257. package/dist/chunks/{location-c00fv4ar.js → bus-x5y1snan.js} +21 -21
  258. package/dist/chunks/{location-r58s4v78.js → bus-x8ba1gzy.js} +11 -11
  259. package/dist/chunks/{location-ey3qhexw.js → bus-xdhrd6dn.js} +5 -5
  260. package/dist/chunks/{location-xfkkasph.js → bus-xfkkasph.js} +1 -1
  261. package/dist/chunks/{location-tz3m3brz.js → bus-xqp4gf8z.js} +8 -8
  262. package/dist/chunks/{location-ac3dnfkw.js → bus-xt6574th.js} +4 -3
  263. package/dist/chunks/{location-3jpnnrb4.js → bus-xxxcgpxy.js} +16 -16
  264. package/dist/chunks/{location-y1fvbwt7.js → bus-y1fvbwt7.js} +1 -1
  265. package/dist/chunks/{location-ermxvwhp.js → bus-y6mhz57t.js} +4 -4
  266. package/dist/chunks/{location-dpkg50ah.js → bus-y71avatq.js} +4 -4
  267. package/dist/chunks/{location-xn2v0njk.js → bus-y8yxybkm.js} +11 -11
  268. package/dist/chunks/{location-4vvqa2vj.js → bus-yf0m7a7r.js} +91 -91
  269. package/dist/chunks/{location-rmg8r6ny.js → bus-ygbpxk9x.js} +12 -12
  270. package/dist/chunks/{location-1acjjqhc.js → bus-yp2x3t23.js} +4 -4
  271. package/dist/chunks/{location-mq882t6m.js → bus-yqm14mq4.js} +19 -19
  272. package/dist/chunks/{location-sdq79vbt.js → bus-yttr9ykh.js} +24 -24
  273. package/dist/chunks/{location-f2332hgj.js → bus-yz3h5d0w.js} +11 -11
  274. package/dist/chunks/{location-z0bkrqjs.js → bus-z0bkrqjs.js} +1 -1
  275. package/dist/chunks/{location-47jkzegy.js → bus-z6c3x22d.js} +5 -5
  276. package/dist/chunks/{location-1ts7y3cx.js → bus-z922g1y7.js} +11 -11
  277. package/dist/chunks/{location-2kw5qtk9.js → bus-zetg2bxt.js} +53 -53
  278. package/dist/chunks/{location-ge2jb4mz.js → bus-zhp30hb1.js} +17 -17
  279. package/dist/chunks/{location-m46z4pcf.js → bus-zk49ndsb.js} +318 -314
  280. package/dist/chunks/{location-g6z45s58.js → bus-zke0g2sf.js} +13 -13
  281. package/dist/chunks/{location-zr2ceqn5.js → bus-zr2ceqn5.js} +1 -1
  282. package/dist/chunks/{location-8y8dfhw6.js → bus-zt69zfc4.js} +11 -11
  283. package/dist/chunks/{location-42y5raaz.js → bus-ztbzjq0a.js} +10 -10
  284. package/dist/chunks/{location-zxq2ej10.js → bus-zxq2ej10.js} +1 -1
  285. package/dist/codemode/catalog.js +1 -1
  286. package/dist/codemode/instructions.js +3 -3
  287. package/dist/codemode/tool.js +3 -3
  288. package/dist/codemode/web.js +1 -1
  289. package/dist/command.js +84 -84
  290. package/dist/config/discovery.js +83 -83
  291. package/dist/config/markdown.js +1 -1
  292. package/dist/config/normalize.js +100 -100
  293. package/dist/config/plugin/agent.js +117 -117
  294. package/dist/config/plugin/command.js +206 -206
  295. package/dist/config/plugin/compaction.js +155 -155
  296. package/dist/config/plugin/compatibility.js +135 -135
  297. package/dist/config/plugin/entry-observer.js +1 -1
  298. package/dist/config/plugin/formatter.js +118 -118
  299. package/dist/config/plugin/image.js +117 -117
  300. package/dist/config/plugin/instruction.js +91 -91
  301. package/dist/config/plugin/location-watcher.js +117 -117
  302. package/dist/config/plugin/mcp.js +124 -124
  303. package/dist/config/plugin/policy.js +118 -118
  304. package/dist/config/plugin/provider.js +117 -117
  305. package/dist/config/plugin/reference.js +119 -119
  306. package/dist/config/plugin/shell.js +117 -117
  307. package/dist/config/plugin/skill-file.js +103 -103
  308. package/dist/config/plugin/skill.js +136 -136
  309. package/dist/config/plugin/snapshot.js +117 -117
  310. package/dist/config/plugin/source.js +120 -120
  311. package/dist/config/plugin/tool-output.js +118 -118
  312. package/dist/config/plugin/websearch.js +116 -116
  313. package/dist/config/plugin/worktree.js +119 -119
  314. package/dist/config/variable.js +3 -3
  315. package/dist/config/watch.js +1 -1
  316. package/dist/config.js +122 -122
  317. package/dist/credential/sql.js +2 -2
  318. package/dist/credential.js +84 -84
  319. package/dist/database/database.js +67 -67
  320. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  321. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  322. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  323. package/dist/database/drizzle/index.js +13 -13
  324. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  325. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  326. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  327. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  328. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  329. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  330. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  331. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  332. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  333. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  334. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  335. package/dist/database/drizzle.js +14 -14
  336. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  337. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  338. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  339. package/dist/database/migration/20260225215848_workspace.js +1 -1
  340. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  341. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  342. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  343. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  344. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  345. package/dist/database/migration/20260323234822_events.js +1 -1
  346. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  347. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  348. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  349. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  350. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  351. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  352. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  353. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  354. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  355. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  356. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  357. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  358. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  359. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  360. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  361. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  362. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  363. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  364. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  365. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  366. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  367. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  368. package/dist/database/migration/20260611035744_credential.js +1 -1
  369. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  370. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  371. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  372. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  373. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  374. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  375. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  376. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  377. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  378. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  379. package/dist/database/migration/20260812213948_worktree.js +1 -1
  380. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  381. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  382. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  383. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  384. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  385. package/dist/database/migration.gen.js +50 -50
  386. package/dist/database/migration.js +52 -52
  387. package/dist/database/path.js +2 -2
  388. package/dist/database/schema.gen.js +1 -1
  389. package/dist/database/schema.sql.js +1 -1
  390. package/dist/database/sqlite.bun.js +1 -1
  391. package/dist/database/sqlite.js +1 -1
  392. package/dist/database/sqlite.node.js +1 -1
  393. package/dist/database/sqlite.workerd.js +1 -1
  394. package/dist/database/v1-migration.bun.js +77 -77
  395. package/dist/database/v1-migration.js +1 -1
  396. package/dist/effect/app-node-builder.js +366 -366
  397. package/dist/effect/app-node-platform.js +2 -2
  398. package/dist/effect/keyed-mutex.js +3 -3
  399. package/dist/effect/websocket-constructor.js +1 -1
  400. package/dist/environment/driver.js +1 -1
  401. package/dist/environment/environment.js +94 -94
  402. package/dist/environment/exec-defaults.js +2 -2
  403. package/dist/environment/files.js +1 -1
  404. package/dist/environment/index.js +96 -96
  405. package/dist/environment/local.js +2 -2
  406. package/dist/environment/memory.js +2 -2
  407. package/dist/environment/unavailable.js +1 -1
  408. package/dist/event/sql.js +1 -1
  409. package/dist/event-logger.js +75 -75
  410. package/dist/file-access.js +105 -105
  411. package/dist/file-mutation.js +95 -95
  412. package/dist/file-retention.js +1 -1
  413. package/dist/filesystem/fff.bun.js +2 -2
  414. package/dist/filesystem/fff.js +1 -1
  415. package/dist/filesystem/fff.node.js +2 -2
  416. package/dist/filesystem/fff.workerd.js +2 -2
  417. package/dist/filesystem/location-watcher-policy.js +6 -6
  418. package/dist/filesystem/location-watcher.js +219 -219
  419. package/dist/filesystem/protected.js +1 -1
  420. package/dist/filesystem/search.js +104 -104
  421. package/dist/filesystem/watcher-binding.js +3 -3
  422. package/dist/filesystem/watcher.js +15 -15
  423. package/dist/filesystem.js +107 -107
  424. package/dist/form.js +83 -83
  425. package/dist/formatter/builtins.js +4 -4
  426. package/dist/formatter.js +88 -88
  427. package/dist/generate.js +106 -106
  428. package/dist/git.js +10 -10
  429. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  430. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  431. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  432. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  433. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  434. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  435. package/dist/github-copilot/copilot-provider.js +17 -17
  436. package/dist/github-copilot/models.js +100 -100
  437. package/dist/github-copilot/openai-compatible-error.js +1 -1
  438. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  439. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  440. package/dist/github-copilot/responses/openai-error.js +1 -1
  441. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  442. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  443. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  444. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  445. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  446. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  447. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  448. package/dist/image/photon.js +2 -2
  449. package/dist/image.js +6 -6
  450. package/dist/instance/service.js +5 -5
  451. package/dist/instance.js +357 -357
  452. package/dist/instruction-discovery.js +82 -82
  453. package/dist/instructions/builtins.js +88 -88
  454. package/dist/instructions/index.js +3 -3
  455. package/dist/integration/connection.js +3 -3
  456. package/dist/integration.js +86 -86
  457. package/dist/job.js +79 -79
  458. package/dist/kv/sql.js +2 -2
  459. package/dist/kv.js +74 -74
  460. package/dist/location-activity.js +135 -135
  461. package/dist/location-lifecycle.js +108 -108
  462. package/dist/location-service-map.js +87 -87
  463. package/dist/location-services.js +354 -354
  464. package/dist/location.js +88 -88
  465. package/dist/managed-policy.js +8 -8
  466. package/dist/mcp/client.js +92 -92
  467. package/dist/mcp/index.js +110 -110
  468. package/dist/mcp/instructions.js +128 -128
  469. package/dist/mcp/oauth.js +79 -79
  470. package/dist/mcp/stdio.js +91 -91
  471. package/dist/mime.js +1 -1
  472. package/dist/modal/models.js +100 -100
  473. package/dist/model-resolver.js +99 -99
  474. package/dist/model.js +99 -99
  475. package/dist/models-dev.js +108 -108
  476. package/dist/oauth/page.js +1 -1
  477. package/dist/permission/saved.js +83 -83
  478. package/dist/permission/sql.js +5 -5
  479. package/dist/permission.js +116 -116
  480. package/dist/persistent-pty/binary.bun.js +1 -1
  481. package/dist/persistent-pty/daemon.js +1 -1
  482. package/dist/persistent-pty/index.js +89 -89
  483. package/dist/persistent-pty/pty-binding.js +1 -1
  484. package/dist/persistent-pty.js +76 -76
  485. package/dist/plugin/agent.js +75 -75
  486. package/dist/plugin/command.js +101 -101
  487. package/dist/plugin/hooks.js +5 -5
  488. package/dist/plugin/host.js +212 -212
  489. package/dist/plugin/identity.js +3 -3
  490. package/dist/plugin/instance.js +5 -5
  491. package/dist/plugin/internal.js +329 -329
  492. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  493. package/dist/plugin/models-dev.js +97 -97
  494. package/dist/plugin/module.js +118 -118
  495. package/dist/plugin/optimize.js +2 -2
  496. package/dist/plugin/plan.js +103 -103
  497. package/dist/plugin/promise.js +1 -1
  498. package/dist/plugin/provider/amazon-bedrock.js +91 -91
  499. package/dist/plugin/provider/azure.js +118 -118
  500. package/dist/plugin/provider/cerebras.js +1 -1
  501. package/dist/plugin/provider/chatgpt.js +95 -95
  502. package/dist/plugin/provider/cloudflare-ai-gateway.js +114 -114
  503. package/dist/plugin/provider/cloudflare-workers-ai.js +115 -115
  504. package/dist/plugin/provider/cohere.js +2 -2
  505. package/dist/plugin/provider/configured.js +113 -113
  506. package/dist/plugin/provider/databricks.js +1 -1
  507. package/dist/plugin/provider/digitalocean.js +94 -94
  508. package/dist/plugin/provider/dynamic.js +2 -2
  509. package/dist/plugin/provider/factory.js +1 -1
  510. package/dist/plugin/provider/github-copilot.js +96 -96
  511. package/dist/plugin/provider/gitlab.js +94 -94
  512. package/dist/plugin/provider/google-vertex.js +114 -114
  513. package/dist/plugin/provider/kilo.js +1 -1
  514. package/dist/plugin/provider/llmgateway.js +79 -79
  515. package/dist/plugin/provider/lmstudio.js +117 -117
  516. package/dist/plugin/provider/local.js +114 -114
  517. package/dist/plugin/provider/modal.js +93 -93
  518. package/dist/plugin/provider/neon.js +1 -1
  519. package/dist/plugin/provider/nvidia.js +1 -1
  520. package/dist/plugin/provider/ollama.js +117 -117
  521. package/dist/plugin/provider/openai.js +94 -94
  522. package/dist/plugin/provider/opencode.js +98 -98
  523. package/dist/plugin/provider/openrouter.js +92 -92
  524. package/dist/plugin/provider/perplexity.js +2 -2
  525. package/dist/plugin/provider/poe.js +80 -80
  526. package/dist/plugin/provider/prompt-cache-key.js +91 -91
  527. package/dist/plugin/provider/sap-ai-core.js +92 -92
  528. package/dist/plugin/provider/sdk-factory.js +1 -1
  529. package/dist/plugin/provider/snowflake-cortex.js +116 -116
  530. package/dist/plugin/provider/vercel.js +91 -91
  531. package/dist/plugin/provider/vllm.js +117 -117
  532. package/dist/plugin/provider/xai.js +92 -92
  533. package/dist/plugin/provider/zenmux.js +1 -1
  534. package/dist/plugin/provider.js +159 -159
  535. package/dist/plugin/sdk.js +75 -75
  536. package/dist/plugin/service.js +3 -3
  537. package/dist/plugin/skill.js +133 -133
  538. package/dist/plugin/source-directory.js +1 -1
  539. package/dist/plugin/supervisor.js +348 -348
  540. package/dist/plugin/tool-input-repair.js +4 -4
  541. package/dist/plugin/update.js +4 -4
  542. package/dist/plugin/vcs/git.js +87 -87
  543. package/dist/plugin/vcs/hg.js +87 -87
  544. package/dist/plugin/verbosity.js +92 -92
  545. package/dist/plugin/warming.js +115 -115
  546. package/dist/plugin/websearch/exa.js +7 -7
  547. package/dist/plugin/websearch/firecrawl.js +8 -8
  548. package/dist/plugin/websearch/index.js +9 -9
  549. package/dist/plugin/websearch/mcp.js +2 -2
  550. package/dist/plugin/websearch/parallel.js +8 -8
  551. package/dist/plugin/websearch/tavily.js +6 -6
  552. package/dist/plugin/websearch/tinyfish.js +8 -8
  553. package/dist/plugin.js +219 -219
  554. package/dist/project/schema.js +8 -8
  555. package/dist/project/sql.js +4 -4
  556. package/dist/project.js +89 -89
  557. package/dist/provider.js +98 -98
  558. package/dist/pty/protocol.js +1 -1
  559. package/dist/pty/ticket.js +1 -1
  560. package/dist/pty.js +92 -92
  561. package/dist/reference/instructions.js +88 -88
  562. package/dist/reference.js +92 -92
  563. package/dist/repository-cache.js +82 -82
  564. package/dist/repository.js +1 -1
  565. package/dist/ripgrep/binary.js +2 -2
  566. package/dist/ripgrep.js +98 -98
  567. package/dist/rpc.js +87 -87
  568. package/dist/schema.js +1 -1
  569. package/dist/session/affinity.js +3 -3
  570. package/dist/session/command.js +75 -75
  571. package/dist/session/compaction.js +136 -136
  572. package/dist/session/context.js +154 -154
  573. package/dist/session/diff.js +89 -89
  574. package/dist/session/environment.js +5 -5
  575. package/dist/session/error.js +7 -7
  576. package/dist/session/event.js +1 -1
  577. package/dist/session/execution/restart.js +218 -218
  578. package/dist/session/execution.js +128 -128
  579. package/dist/session/generate.js +155 -155
  580. package/dist/session/history.js +15 -15
  581. package/dist/session/inbox.js +87 -87
  582. package/dist/session/info.js +3 -3
  583. package/dist/session/instruction-entry.js +78 -78
  584. package/dist/session/instruction-state.js +8 -8
  585. package/dist/session/instructions.js +98 -98
  586. package/dist/session/message-updater.js +2 -2
  587. package/dist/session/message.js +1 -1
  588. package/dist/session/model-request.js +121 -121
  589. package/dist/session/model-transport.js +9 -9
  590. package/dist/session/move.js +130 -130
  591. package/dist/session/projector.js +87 -87
  592. package/dist/session/prompt.js +106 -106
  593. package/dist/session/provider-context.js +3 -3
  594. package/dist/session/revert.js +91 -91
  595. package/dist/session/run-coordinator.js +3 -3
  596. package/dist/session/runner/index.js +3 -3
  597. package/dist/session/runner/llm.js +225 -225
  598. package/dist/session/runner/max-steps.js +1 -1
  599. package/dist/session/runner/model.js +99 -99
  600. package/dist/session/runner/publish-llm-event.js +114 -114
  601. package/dist/session/runner/retry.js +4 -4
  602. package/dist/session/runner/step.js +126 -126
  603. package/dist/session/runner/to-llm-message.js +2 -2
  604. package/dist/session/schema.js +5 -5
  605. package/dist/session/session.js +163 -163
  606. package/dist/session/shell.js +131 -131
  607. package/dist/session/skill.js +106 -106
  608. package/dist/session/sql.js +5 -5
  609. package/dist/session/stats.js +74 -74
  610. package/dist/session/store.js +88 -88
  611. package/dist/session/subagent-completion.js +1 -1
  612. package/dist/session/subagent-job.js +204 -204
  613. package/dist/session/system-prompt.js +1 -1
  614. package/dist/session/title.js +158 -158
  615. package/dist/session/to-session-error.js +112 -112
  616. package/dist/session/transfer.js +214 -214
  617. package/dist/session/usage.js +1 -1
  618. package/dist/session.js +214 -214
  619. package/dist/shell/parse.js +6 -6
  620. package/dist/shell/result.js +1 -1
  621. package/dist/shell/scan.js +1 -1
  622. package/dist/shell/select.js +11 -11
  623. package/dist/shell.js +133 -133
  624. package/dist/skill/discovery.js +6 -6
  625. package/dist/skill/instructions.js +106 -106
  626. package/dist/skill.js +111 -111
  627. package/dist/snapshot.js +94 -94
  628. package/dist/state.js +1 -1
  629. package/dist/tool/html-markdown.js +1 -1
  630. package/dist/tool/http-body.js +1 -1
  631. package/dist/tool/mcp.js +129 -129
  632. package/dist/tool/plugin/edit.js +119 -119
  633. package/dist/tool/plugin/file-diff.js +1 -1
  634. package/dist/tool/plugin/glob.js +123 -123
  635. package/dist/tool/plugin/grep.js +125 -125
  636. package/dist/tool/plugin/mcp-resource.js +118 -118
  637. package/dist/tool/plugin/opencode.js +110 -110
  638. package/dist/tool/plugin/patch.js +123 -123
  639. package/dist/tool/plugin/question.js +104 -104
  640. package/dist/tool/plugin/read.js +126 -126
  641. package/dist/tool/plugin/shell.js +209 -209
  642. package/dist/tool/plugin/skill.js +104 -104
  643. package/dist/tool/plugin/subagent.js +211 -211
  644. package/dist/tool/plugin/webfetch.js +103 -103
  645. package/dist/tool/plugin/websearch.js +111 -111
  646. package/dist/tool/plugin/write.js +123 -123
  647. package/dist/tool/read-filesystem.js +101 -101
  648. package/dist/tool/runtime.js +1 -1
  649. package/dist/tool-output.js +7 -7
  650. package/dist/tool.js +14 -14
  651. package/dist/util/error-summary.js +1 -1
  652. package/dist/util/error.js +1 -1
  653. package/dist/util/git-executable.js +2 -2
  654. package/dist/util/iife.js +1 -1
  655. package/dist/util/lazy.js +1 -1
  656. package/dist/util/slug.js +1 -1
  657. package/dist/util/token.js +1 -1
  658. package/dist/util/which.js +1 -1
  659. package/dist/util/wildcard.js +1 -1
  660. package/dist/v1/config/agent.js +7 -7
  661. package/dist/v1/config/command.js +3 -3
  662. package/dist/v1/config/error.js +4 -4
  663. package/dist/v1/config/mcp.js +4 -4
  664. package/dist/v1/config/migrate.js +93 -93
  665. package/dist/v1/config/permission.js +7 -7
  666. package/dist/v1/config/plugin.js +3 -3
  667. package/dist/v1/config/provider-options.js +1 -1
  668. package/dist/v1/config/provider.js +4 -4
  669. package/dist/variant.js +92 -92
  670. package/dist/vcs/patch.js +1 -1
  671. package/dist/vcs.js +88 -88
  672. package/dist/websearch.js +83 -83
  673. package/dist/wellknown/plugin.js +77 -77
  674. package/dist/wellknown.js +80 -80
  675. package/dist/workspace/driver.js +5 -5
  676. package/dist/workspace/sql.js +1 -1
  677. package/dist/workspace.js +81 -81
  678. package/dist/worktree/directory.js +2 -2
  679. package/dist/worktree/git.js +10 -10
  680. package/dist/worktree/sql.js +5 -5
  681. package/dist/worktree/strategies.js +90 -90
  682. package/dist/worktree.js +97 -97
  683. package/package.json +8 -8
  684. package/dist/chunks/location-0gzjc7ft.js +0 -253
  685. package/dist/chunks/location-1fq0wp1e.js +0 -26
  686. package/dist/chunks/location-dxj72tfx.js +0 -18
  687. /package/dist/chunks/{location-0qkdqm5v.js → bus-0qkdqm5v.js} +0 -0
  688. /package/dist/chunks/{location-0zkw76rk.js → bus-0zkw76rk.js} +0 -0
  689. /package/dist/chunks/{location-17cy0kzp.js → bus-17cy0kzp.js} +0 -0
  690. /package/dist/chunks/{location-1cnp2v09.js → bus-1cnp2v09.js} +0 -0
  691. /package/dist/chunks/{location-1kg9ymc8.js → bus-1kg9ymc8.js} +0 -0
  692. /package/dist/chunks/{location-24dcb14g.js → bus-24dcb14g.js} +0 -0
  693. /package/dist/chunks/{location-2710q6r3.js → bus-2710q6r3.js} +0 -0
  694. /package/dist/chunks/{location-2axfhc9x.js → bus-2axfhc9x.js} +0 -0
  695. /package/dist/chunks/{location-2c3vjs8z.js → bus-2c3vjs8z.js} +0 -0
  696. /package/dist/chunks/{location-34c7v6d4.js → bus-34c7v6d4.js} +0 -0
  697. /package/dist/chunks/{location-359p4xyc.js → bus-359p4xyc.js} +0 -0
  698. /package/dist/chunks/{location-3asan66x.js → bus-3asan66x.js} +0 -0
  699. /package/dist/chunks/{location-3t0ybcrp.js → bus-3t0ybcrp.js} +0 -0
  700. /package/dist/chunks/{location-3v8g72cx.js → bus-3v8g72cx.js} +0 -0
  701. /package/dist/chunks/{location-3w5fmr99.js → bus-3w5fmr99.js} +0 -0
  702. /package/dist/chunks/{location-3wcehsnq.js → bus-3wcehsnq.js} +0 -0
  703. /package/dist/chunks/{location-43n2bw4t.js → bus-43n2bw4t.js} +0 -0
  704. /package/dist/chunks/{location-4knz6hnm.js → bus-4knz6hnm.js} +0 -0
  705. /package/dist/chunks/{location-4vcrnpx2.js → bus-4vcrnpx2.js} +0 -0
  706. /package/dist/chunks/{location-4y7fprxs.js → bus-4y7fprxs.js} +0 -0
  707. /package/dist/chunks/{location-53557ph1.js → bus-53557ph1.js} +0 -0
  708. /package/dist/chunks/{location-550bvhaj.js → bus-550bvhaj.js} +0 -0
  709. /package/dist/chunks/{location-6prwharc.js → bus-6prwharc.js} +0 -0
  710. /package/dist/chunks/{location-6q2bdcd1.js → bus-6q2bdcd1.js} +0 -0
  711. /package/dist/chunks/{location-7akdwqpd.js → bus-7akdwqpd.js} +0 -0
  712. /package/dist/chunks/{location-7m9af43g.js → bus-7m9af43g.js} +0 -0
  713. /package/dist/chunks/{location-822emrt2.js → bus-822emrt2.js} +0 -0
  714. /package/dist/chunks/{location-84wd9syh.js → bus-84wd9syh.js} +0 -0
  715. /package/dist/chunks/{location-88xbtdfr.js → bus-88xbtdfr.js} +0 -0
  716. /package/dist/chunks/{location-8n3pysct.js → bus-8n3pysct.js} +0 -0
  717. /package/dist/chunks/{location-8wj87zfr.js → bus-8wj87zfr.js} +0 -0
  718. /package/dist/chunks/{location-9a4afbnw.js → bus-9a4afbnw.js} +0 -0
  719. /package/dist/chunks/{location-9rqn6x4v.js → bus-9rqn6x4v.js} +0 -0
  720. /package/dist/chunks/{location-a6k6eb26.js → bus-a6k6eb26.js} +0 -0
  721. /package/dist/chunks/{location-af5trqkr.js → bus-af5trqkr.js} +0 -0
  722. /package/dist/chunks/{location-afrmfg78.js → bus-afrmfg78.js} +0 -0
  723. /package/dist/chunks/{location-aqzs7mqg.js → bus-aqzs7mqg.js} +0 -0
  724. /package/dist/chunks/{location-atq7p7m5.js → bus-atq7p7m5.js} +0 -0
  725. /package/dist/chunks/{location-bkyjaxrp.js → bus-bkyjaxrp.js} +0 -0
  726. /package/dist/chunks/{location-bmr6ed5q.js → bus-bmr6ed5q.js} +0 -0
  727. /package/dist/chunks/{location-bw78ga2c.js → bus-bw78ga2c.js} +0 -0
  728. /package/dist/chunks/{location-cf4snx6d.js → bus-cf4snx6d.js} +0 -0
  729. /package/dist/chunks/{location-cvy3z8tj.js → bus-cvy3z8tj.js} +0 -0
  730. /package/dist/chunks/{location-d9fn303g.js → bus-d9fn303g.js} +0 -0
  731. /package/dist/chunks/{location-d9jj8t3e.js → bus-d9jj8t3e.js} +0 -0
  732. /package/dist/chunks/{location-dajrwvna.js → bus-dajrwvna.js} +0 -0
  733. /package/dist/chunks/{location-dap0rakb.js → bus-dap0rakb.js} +0 -0
  734. /package/dist/chunks/{location-df08tz66.js → bus-df08tz66.js} +0 -0
  735. /package/dist/chunks/{location-dy18nga0.js → bus-dy18nga0.js} +0 -0
  736. /package/dist/chunks/{location-e5kj55wp.js → bus-e5kj55wp.js} +0 -0
  737. /package/dist/chunks/{location-e73j6tqm.js → bus-e73j6tqm.js} +0 -0
  738. /package/dist/chunks/{location-ec1grn59.js → bus-ec1grn59.js} +0 -0
  739. /package/dist/chunks/{location-eh3zwz77.js → bus-eh3zwz77.js} +0 -0
  740. /package/dist/chunks/{location-emrn6kk6.js → bus-emrn6kk6.js} +0 -0
  741. /package/dist/chunks/{location-f0mxakyp.js → bus-f0mxakyp.js} +0 -0
  742. /package/dist/chunks/{location-f6n9ztr4.js → bus-f6n9ztr4.js} +0 -0
  743. /package/dist/chunks/{location-faypxj3z.js → bus-faypxj3z.js} +0 -0
  744. /package/dist/chunks/{location-fd410y7t.js → bus-fd410y7t.js} +0 -0
  745. /package/dist/chunks/{location-fxgpk5d8.js → bus-fxgpk5d8.js} +0 -0
  746. /package/dist/chunks/{location-g4wezp1m.js → bus-g4wezp1m.js} +0 -0
  747. /package/dist/chunks/{location-g86h250q.js → bus-g86h250q.js} +0 -0
  748. /package/dist/chunks/{location-gebd4c9n.js → bus-gebd4c9n.js} +0 -0
  749. /package/dist/chunks/{location-gftt206x.js → bus-gftt206x.js} +0 -0
  750. /package/dist/chunks/{location-hk9envan.js → bus-hk9envan.js} +0 -0
  751. /package/dist/chunks/{location-j2ntwpah.js → bus-j2ntwpah.js} +0 -0
  752. /package/dist/chunks/{location-j5zkgpj8.js → bus-j5zkgpj8.js} +0 -0
  753. /package/dist/chunks/{location-jjkms2e6.js → bus-jjkms2e6.js} +0 -0
  754. /package/dist/chunks/{location-jr7sbwjy.js → bus-jr7sbwjy.js} +0 -0
  755. /package/dist/chunks/{location-jwfs4k6c.js → bus-jwfs4k6c.js} +0 -0
  756. /package/dist/chunks/{location-jzg6c2d5.js → bus-jzg6c2d5.js} +0 -0
  757. /package/dist/chunks/{location-mp448xyj.js → bus-mp448xyj.js} +0 -0
  758. /package/dist/chunks/{location-msx8hqn2.js → bus-msx8hqn2.js} +0 -0
  759. /package/dist/chunks/{location-n05xt0ee.js → bus-n05xt0ee.js} +0 -0
  760. /package/dist/chunks/{location-n3j8tn72.js → bus-n3j8tn72.js} +0 -0
  761. /package/dist/chunks/{location-njntx4h6.js → bus-njntx4h6.js} +0 -0
  762. /package/dist/chunks/{location-q3sfg36h.js → bus-q3sfg36h.js} +0 -0
  763. /package/dist/chunks/{location-q74kybfr.js → bus-q74kybfr.js} +0 -0
  764. /package/dist/chunks/{location-qaymkmh1.js → bus-qaymkmh1.js} +0 -0
  765. /package/dist/chunks/{location-qb87gjwd.js → bus-qb87gjwd.js} +0 -0
  766. /package/dist/chunks/{location-qfa1cgps.js → bus-qfa1cgps.js} +0 -0
  767. /package/dist/chunks/{location-qg3g05ea.js → bus-qg3g05ea.js} +0 -0
  768. /package/dist/chunks/{location-qrg20bc0.js → bus-qrg20bc0.js} +0 -0
  769. /package/dist/chunks/{location-rcb2kzg1.js → bus-rcb2kzg1.js} +0 -0
  770. /package/dist/chunks/{location-sdp7kfr6.js → bus-sdp7kfr6.js} +0 -0
  771. /package/dist/chunks/{location-ssg3fenm.js → bus-ssg3fenm.js} +0 -0
  772. /package/dist/chunks/{location-ve7vex1e.js → bus-ve7vex1e.js} +0 -0
  773. /package/dist/chunks/{location-w803qqfp.js → bus-w803qqfp.js} +0 -0
  774. /package/dist/chunks/{location-wc3fc9cn.js → bus-wc3fc9cn.js} +0 -0
  775. /package/dist/chunks/{location-wer8tq1h.js → bus-wer8tq1h.js} +0 -0
  776. /package/dist/chunks/{location-wtztk69x.js → bus-wtztk69x.js} +0 -0
  777. /package/dist/chunks/{location-x0ckcb58.js → bus-x0ckcb58.js} +0 -0
  778. /package/dist/chunks/{location-x61499pn.js → bus-x61499pn.js} +0 -0
  779. /package/dist/chunks/{location-y44na4kk.js → bus-y44na4kk.js} +0 -0
  780. /package/dist/chunks/{location-y8cydn3q.js → bus-y8cydn3q.js} +0 -0
  781. /package/dist/chunks/{location-y8f7s663.js → bus-y8f7s663.js} +0 -0
  782. /package/dist/chunks/{location-ygaqb7jw.js → bus-ygaqb7jw.js} +0 -0
  783. /package/dist/chunks/{location-ym463w8f.js → bus-ym463w8f.js} +0 -0
  784. /package/dist/chunks/{location-z5v4ffb3.js → bus-z5v4ffb3.js} +0 -0
  785. /package/dist/chunks/{location-z9919s4g.js → bus-z9919s4g.js} +0 -0
@@ -1,27 +1,36 @@
1
1
  import {
2
- Service83,
3
- node87
4
- } from "./location-by659cs7.js";
2
+ Service81,
3
+ node85
4
+ } from "./bus-0jzvm66e.js";
5
5
  import {
6
6
  shutdown2,
7
7
  create3
8
- } from "./location-rdw6cm16.js";
8
+ } from "./bus-rdw6cm16.js";
9
9
  import {
10
10
  key2
11
- } from "./location-addxnjmp.js";
11
+ } from "./bus-mxvxcxwy.js";
12
12
  import {
13
- ID14,
14
- Service77,
15
- node81,
13
+ ID12,
14
+ Service70,
15
+ node73,
16
16
  Event18
17
- } from "./location-2fpnaz5h.js";
17
+ } from "./bus-qx2adrk7.js";
18
18
  import {
19
- Service80,
20
- node84
21
- } from "./location-7wpc5jwh.js";
19
+ Service77,
20
+ node81
21
+ } from "./bus-v53b73mt.js";
22
22
  import {
23
23
  __export
24
- } from "./location-9rqn6x4v.js";
24
+ } from "./bus-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 as Option2, Schema as Schema2, Struct as Struct2 } from "effect";
25
34
 
26
35
  // src/provider.ts
27
36
  var exports_provider3 = {};
@@ -30,12 +39,12 @@ __export(exports_provider3, {
30
39
  Compaction: () => Compaction3,
31
40
  DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS3,
32
41
  Event: () => Event17,
33
- ID: () => ID13,
34
- Info: () => Info22,
42
+ ID: () => ID11,
43
+ Info: () => Info20,
35
44
  LoadError: () => LoadError3,
36
45
  Provider: () => exports_provider3,
37
46
  Request: () => Request3,
38
- Service: () => Service76,
47
+ Service: () => Service69,
39
48
  Settings: () => Settings2,
40
49
  Transport: () => Transport2,
41
50
  aisdk: () => aisdk2,
@@ -45,12 +54,12 @@ __export(exports_provider3, {
45
54
  mergeOverlay: () => mergeOverlay2,
46
55
  modelSettings: () => modelSettings2,
47
56
  nativeSettings: () => nativeSettings2,
48
- node: () => node80,
57
+ node: () => node72,
49
58
  packageName: () => packageName2,
50
59
  timeout: () => timeout2,
51
60
  timeouts: () => timeouts2
52
61
  });
53
- import { Context, Effect as Effect2, Layer, Option as Option2, Schema as Schema2, Stream, Struct as Struct2 } from "effect";
62
+ import { Context, Effect, Layer, Option, Schema, Stream, Struct } from "effect";
54
63
  import { Provider } from "@opencode/schema/provider";
55
64
  import { Model } from "@opencode/schema/model";
56
65
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -59,270 +68,8 @@ import { isRecord } from "@opencode/ai/utils/record";
59
68
  import { importModule, resolveModule } from "@opencode/util/runtime-import";
60
69
  import { Credential } from "@opencode/schema/credential";
61
70
  import { freeze } from "immer";
62
-
63
- // src/aisdk-native.ts
64
- var exports_aisdk_native = {};
65
- __export(exports_aisdk_native, {
66
- AISDKNative: () => exports_aisdk_native,
67
- native: () => native2,
68
- rewrite: () => rewrite2
69
- });
70
- import { Effect, Option, Schema, Struct } from "effect";
71
- function rewrite2(target, input) {
72
- if (input.specifier === undefined)
73
- return;
74
- const plain = resolve(input.specifier, input);
75
- if (!plain)
76
- return;
77
- const settings = decode(target.settings ?? {});
78
- const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
79
- const translated = options(replacement, input.modelID, settings);
80
- if (target.package !== undefined || replacement !== input.specifier)
81
- target.package = replacement;
82
- target.settings = target.settings === undefined ? undefined : {
83
- ...translated.settings,
84
- ...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
85
- };
86
- target.headers = mergeHeaders2(translated.headers, target.headers);
87
- target.body = mergeOverlay2(translated.body, target.body);
88
- target.variants = target.variants?.map((variant) => {
89
- const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
90
- const headers = mergeHeaders2(overlay.headers, variant.headers);
91
- const body = mergeOverlay2(overlay.body, variant.body);
92
- return {
93
- id: variant.id,
94
- ...variant.settings === undefined ? {} : { settings: overlay.settings },
95
- ...headers === undefined ? {} : { headers },
96
- ...body === undefined ? {} : { body }
97
- };
98
- });
99
- }
100
- var PACKAGES = {
101
- "@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
102
- "@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
103
- "@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
104
- "@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
105
- "@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
106
- "@ai-sdk/cohere": "@opencode/ai/providers/cohere",
107
- "@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
108
- "@ai-sdk/google": "@opencode/ai/providers/google",
109
- "@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
110
- "@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
111
- "@ai-sdk/groq": "@opencode/ai/providers/groq",
112
- "@ai-sdk/mistral": "@opencode/ai/providers/mistral",
113
- "@ai-sdk/openai": "@opencode/ai/providers/openai",
114
- "@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
115
- "@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
116
- "@ai-sdk/xai": "@opencode/ai/providers/xai",
117
- "@ai-sdk/gateway": "@opencode/ai/providers/vercel-ai-gateway",
118
- "@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
119
- "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway",
120
- "venice-ai-sdk-provider": "@opencode/ai/providers/venice"
121
- };
122
- var protocols = (name) => ({
123
- "@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
124
- "@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
125
- "@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
126
- });
127
- var HOSTS = {
128
- alibaba: protocols("alibaba"),
129
- "alibaba-cn": protocols("alibaba"),
130
- "alibaba-coding-plan": protocols("alibaba"),
131
- "alibaba-coding-plan-cn": protocols("alibaba"),
132
- "alibaba-token-plan": protocols("alibaba"),
133
- "alibaba-token-plan-cn": protocols("alibaba"),
134
- baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
135
- "cloudflare-ai-gateway": {
136
- "@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
137
- "@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
138
- "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
139
- "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
140
- },
141
- cohere: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cohere/chat" },
142
- "cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
143
- deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
144
- digitalocean: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/digitalocean" },
145
- "fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
146
- "google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
147
- "kimi-for-coding": protocols("moonshot"),
148
- meta: protocols("meta"),
149
- minimax: protocols("minimax"),
150
- "minimax-cn": protocols("minimax"),
151
- "minimax-coding-plan": protocols("minimax"),
152
- "minimax-cn-coding-plan": protocols("minimax"),
153
- moonshotai: protocols("moonshot"),
154
- "moonshotai-cn": protocols("moonshot"),
155
- zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
156
- "zai-coding-plan": protocols("zai-coding-plan"),
157
- zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
158
- "zhipuai-coding-plan": protocols("zai-coding-plan")
159
- };
160
- var NATIVE = new Set([
161
- ...Object.values(PACKAGES),
162
- ...Object.values(HOSTS).flatMap((host) => Object.values(host)),
163
- "@opencode/ai/providers/azure/chat",
164
- "@opencode/ai/providers/amazon-bedrock/mantle",
165
- "@opencode/ai/providers/amazon-bedrock/mantle/chat",
166
- "@opencode/ai/providers/amazon-bedrock/mantle/responses"
167
- ]);
168
- function native2(npm, context) {
169
- const host = HOSTS[context.providerID]?.[npm];
170
- if (host)
171
- return host;
172
- if (npm === "@ai-sdk/amazon-bedrock/mantle")
173
- return mantle(context.modelID);
174
- if (npm === "@ai-sdk/azure" && azureChat(context))
175
- return "@opencode/ai/providers/azure/chat";
176
- return PACKAGES[npm];
177
- }
178
- var azureChat = (context) => context.shape === "completions" || context.settings?.useCompletionUrls === true;
179
- var mantle = (modelID) => {
180
- if (modelID === undefined)
181
- return "@opencode/ai/providers/amazon-bedrock/mantle";
182
- return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
183
- };
184
- function resolve(specifier, context) {
185
- const npm = packageName2(specifier);
186
- if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
187
- return native2(npm, context);
188
- if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
189
- return mantle(context.modelID);
190
- if (npm === "@opencode/ai/providers/azure/responses" && azureChat(context))
191
- return "@opencode/ai/providers/azure/chat";
192
- return NATIVE.has(npm) ? npm : undefined;
193
- }
194
- function options(replacement, modelID, settings) {
195
- const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
196
- const kept = Struct.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
197
- const thinking = converse ? bedrockThinking(modelID, settings) : undefined;
198
- return {
199
- settings: {
200
- ...replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
201
- ...thinking === undefined ? {} : { thinking }
202
- },
203
- ...settings.headers === undefined ? {} : { headers: settings.headers },
204
- ...settings.extraBody === undefined ? {} : { body: settings.extraBody },
205
- ...converse ? bedrockRequest(modelID, settings) : {},
206
- ...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
207
- };
208
- }
209
- var BEDROCK_KEYS = [
210
- "bearerToken",
211
- "endpoint",
212
- "credentials",
213
- "credentialProvider",
214
- "accessKeyId",
215
- "secretAccessKey",
216
- "sessionToken"
217
- ];
218
- var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
219
- function bedrockSettings(settings, converse) {
220
- const region = settings.region ?? settings.credentials?.region;
221
- const credentials = settings.credentials ?? settings;
222
- const baseURL = settings.baseURL ?? settings.endpoint;
223
- return {
224
- ...Struct.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
225
- ...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
226
- ...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
227
- ...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
228
- credentials: {
229
- ...region === undefined ? {} : { region },
230
- accessKeyId: credentials.accessKeyId,
231
- secretAccessKey: credentials.secretAccessKey,
232
- ...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
233
- }
234
- }
235
- };
236
- }
237
- function bedrockThinking(modelID, settings) {
238
- const reasoning = settings.reasoningConfig;
239
- if (!modelID?.includes("anthropic") || reasoning?.type !== "enabled" || reasoning.budgetTokens === undefined)
240
- return;
241
- return { type: "enabled", budgetTokens: reasoning.budgetTokens };
242
- }
243
- function bedrockRequest(modelID, settings) {
244
- const additional = settings.additionalModelRequestFields ?? {};
245
- const reasoning = settings.reasoningConfig;
246
- const anthropic = modelID?.includes("anthropic") ?? false;
247
- const openai = modelID?.includes("openai.") ?? false;
248
- const harmony = modelID?.includes("openai.gpt-oss") ?? false;
249
- const effort = reasoning?.maxReasoningEffort;
250
- const type = reasoning?.type;
251
- const budget = reasoning?.budgetTokens;
252
- const display = reasoning?.display;
253
- const betas = settings.anthropicBeta ?? [];
254
- const fields = mergeOverlay2(additional, {
255
- ...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
256
- ...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
257
- ...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
258
- ...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
259
- ...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
260
- ...!anthropic && !openai && effort !== undefined ? {
261
- reasoningConfig: {
262
- ...type === undefined || type === "adaptive" ? {} : { type },
263
- ...budget === undefined ? {} : { budgetTokens: budget },
264
- maxReasoningEffort: effort
265
- }
266
- } : {}
267
- });
268
- const body = {
269
- ...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
270
- ...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
271
- };
272
- return Object.keys(body).length === 0 ? {} : { body };
273
- }
274
- var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
275
- function openRouterRequest(settings) {
276
- const headers = mergeHeaders2({
277
- ...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
278
- ...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
279
- ...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
280
- }, settings.headers) ?? {};
281
- return Object.keys(headers).length === 0 ? {} : { headers };
282
- }
283
- var lenient = (schema) => Schema.optional(Schema.UndefinedOr(schema).pipe(Schema.catchDecoding(() => Effect.succeed(Option.some(undefined)))));
284
- var Credentials = Schema.Struct({
285
- accessKeyId: Schema.String,
286
- secretAccessKey: Schema.String,
287
- sessionToken: lenient(Schema.String),
288
- region: lenient(Schema.String)
289
- });
290
- var Legacy = Schema.StructWithRest(Schema.Struct({
291
- apiKey: lenient(Schema.String),
292
- baseURL: lenient(Schema.String),
293
- headers: lenient(Schema.Record(Schema.String, Schema.String)),
294
- extraBody: lenient(Schema.Record(Schema.String, Schema.Unknown)),
295
- useCompletionUrls: lenient(Schema.Boolean),
296
- auth: lenient(Schema.Literals(["bearer", "sigv4"])),
297
- bearerToken: lenient(Schema.String),
298
- endpoint: lenient(Schema.String),
299
- region: lenient(Schema.String),
300
- credentials: lenient(Credentials),
301
- accessKeyId: lenient(Schema.String),
302
- secretAccessKey: lenient(Schema.String),
303
- sessionToken: lenient(Schema.String),
304
- anthropicBeta: lenient(Schema.Array(Schema.String)),
305
- serviceTier: lenient(Schema.String),
306
- reasoningConfig: lenient(Schema.Struct({
307
- type: lenient(Schema.String),
308
- display: lenient(Schema.String),
309
- maxReasoningEffort: lenient(Schema.String),
310
- budgetTokens: lenient(Schema.Number)
311
- })),
312
- additionalModelRequestFields: lenient(Schema.StructWithRest(Schema.Struct({
313
- anthropic_beta: lenient(Schema.Array(Schema.String)),
314
- output_config: lenient(Schema.Record(Schema.String, Schema.Unknown)),
315
- reasoning: lenient(Schema.Record(Schema.String, Schema.Unknown))
316
- }), [Schema.Record(Schema.String, Schema.Unknown)])),
317
- appName: lenient(Schema.String),
318
- appUrl: lenient(Schema.String),
319
- api_keys: lenient(Schema.Record(Schema.String, Schema.String))
320
- }), [Schema.Record(Schema.String, Schema.Unknown)]);
321
- var decode = Schema.decodeUnknownSync(Legacy);
322
-
323
- // src/provider.ts
324
71
  import { Event as Event17 } from "@opencode/schema/provider";
325
- var ID13 = Provider.ID;
72
+ var ID11 = Provider.ID;
326
73
  var AISDK_PREFIX2 = "aisdk:";
327
74
  var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
328
75
  var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
@@ -333,12 +80,12 @@ function packageName2(value) {
333
80
  return value;
334
81
  return value.slice(AISDK_PREFIX2.length);
335
82
  }
336
- var JsonRecord = Schema2.Record(Schema2.String, Schema2.Json);
337
- var decodeJsonRecord = Schema2.decodeUnknownSync(JsonRecord);
83
+ var JsonRecord = Schema.Record(Schema.String, Schema.Json);
84
+ var decodeJsonRecord = Schema.decodeUnknownSync(JsonRecord);
338
85
 
339
- class LoadError3 extends Schema2.TaggedError()("Provider.LoadError", {
340
- package: Schema2.String,
341
- cause: Schema2.Defect()
86
+ class LoadError3 extends Schema.TaggedError()("Provider.LoadError", {
87
+ package: Schema.String,
88
+ cause: Schema.Defect()
342
89
  }) {
343
90
  }
344
91
  var packages = new Map;
@@ -378,6 +125,7 @@ var builtins = new Map([
378
125
  ["@opencode/ai/providers/google-vertex/chat", () => import("@opencode/ai/providers/google-vertex/chat")],
379
126
  ["@opencode/ai/providers/google-vertex/responses", () => import("@opencode/ai/providers/google-vertex/responses")],
380
127
  ["@opencode/ai/providers/google-vertex/messages", () => import("@opencode/ai/providers/google-vertex/messages")],
128
+ ["@opencode/ai/providers/google-vertex/mistral", () => import("@opencode/ai/providers/google-vertex/mistral")],
381
129
  ["@opencode/ai/providers/groq", () => import("@opencode/ai/providers/groq")],
382
130
  ["@opencode/ai/providers/meta/chat", () => import("@opencode/ai/providers/meta/chat")],
383
131
  ["@opencode/ai/providers/meta/messages", () => import("@opencode/ai/providers/meta/messages")],
@@ -414,12 +162,12 @@ var builtins = new Map([
414
162
  () => import("@opencode/ai/providers/zai-coding-plan/responses")
415
163
  ]
416
164
  ]);
417
- var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
165
+ var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
418
166
  const specifier = packageName2(input);
419
167
  const builtin = builtins.get(specifier);
420
168
  if (builtin)
421
169
  return yield* importPackage(specifier, specifier, builtin);
422
- const resolved = yield* Effect2.sync(() => {
170
+ const resolved = yield* Effect.sync(() => {
423
171
  if (specifier.startsWith("file://") || specifier.startsWith("@opencode/ai/"))
424
172
  return specifier;
425
173
  try {
@@ -438,8 +186,8 @@ var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
438
186
  }
439
187
  const parts = specifier.split("/");
440
188
  const root = specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0] ?? specifier;
441
- const installed = yield* npm.add(root).pipe(Effect2.mapError((cause) => new LoadError3({ package: specifier, cause })));
442
- const entrypoint = yield* Effect2.try({
189
+ const installed = yield* npm.add(root).pipe(Effect.mapError((cause) => new LoadError3({ package: specifier, cause })));
190
+ const entrypoint = yield* Effect.try({
443
191
  try: () => resolveModule(specifier, installed.directory),
444
192
  catch: (cause) => new LoadError3({ package: specifier, cause })
445
193
  });
@@ -448,15 +196,15 @@ var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
448
196
  var CORE_KEYS = ["chunkTimeout", "compaction", "fetch", "headerTimeout", "timeout", "transport"];
449
197
  var PROVIDER_ONLY_KEYS = ["chunkTimeout", "headerTimeout", "timeout", "transport"];
450
198
  function nativeSettings2(settings) {
451
- return Struct2.omit(settings, CORE_KEYS);
199
+ return Struct.omit(settings, CORE_KEYS);
452
200
  }
453
201
  function modelSettings2(settings) {
454
- return settings && Struct2.omit(settings, PROVIDER_ONLY_KEYS);
202
+ return settings && Struct.omit(settings, PROVIDER_ONLY_KEYS);
455
203
  }
456
- var decodeTimeout = Schema2.decodeUnknownOption(HttpTimeout);
204
+ var decodeTimeout = Schema.decodeUnknownOption(HttpTimeout);
457
205
  var DEFAULT_TIMEOUT_MS3 = 300000;
458
206
  function timeout2(value) {
459
- return Option2.getOrUndefined(decodeTimeout(value));
207
+ return Option.getOrUndefined(decodeTimeout(value));
460
208
  }
461
209
  function timeouts2(settings) {
462
210
  return {
@@ -494,9 +242,9 @@ var Request3 = Provider.Request;
494
242
  var Compaction3 = Provider.Compaction;
495
243
  var Transport2 = Provider.Transport;
496
244
  var Settings2 = Provider.Settings;
497
- var Info22 = Provider.Info;
245
+ var Info20 = Provider.Info;
498
246
 
499
- class Service76 extends Context.Service()("@opencode/Provider") {
247
+ class Service69 extends Context.Service()("@opencode/Provider") {
500
248
  }
501
249
  var definitions = new WeakMap;
502
250
  function index(providerID, models) {
@@ -509,10 +257,10 @@ function index(providerID, models) {
509
257
  definitions.set(models, indexes);
510
258
  return result;
511
259
  }
512
- var layer = Layer.effect(Service76, Effect2.gen(function* () {
513
- const bus = yield* Service83;
514
- const integrations = yield* Service77;
515
- const location = yield* Service80;
260
+ var layer = Layer.effect(Service69, Effect.gen(function* () {
261
+ const bus = yield* Service81;
262
+ const integrations = yield* Service70;
263
+ const location = yield* Service77;
516
264
  const state = create3({
517
265
  name: "provider",
518
266
  initial: () => new Map,
@@ -523,7 +271,7 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
523
271
  const current = records.get(id);
524
272
  if (current)
525
273
  return current;
526
- const added = { provider: Info22.empty(id), models: new Map };
274
+ const added = { provider: Info20.empty(id), models: new Map };
527
275
  records.set(id, added);
528
276
  maps.add(added.models);
529
277
  return added;
@@ -591,9 +339,9 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
591
339
  },
592
340
  notify: () => notify
593
341
  });
594
- yield* Effect2.addFinalizer(() => shutdown2(state.reload()));
342
+ yield* Effect.addFinalizer(() => shutdown2(state.reload()));
595
343
  let cached;
596
- const snapshot = Effect2.fn("Provider.snapshot")(function* () {
344
+ const snapshot = Effect.fn("Provider.snapshot")(function* () {
597
345
  while (true) {
598
346
  const revision = integrations.revision();
599
347
  const records = state.get();
@@ -604,7 +352,7 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
604
352
  const available = Array.from(records.values()).filter((record) => {
605
353
  if (record.provider.activation === "disabled")
606
354
  return false;
607
- const integration = byID.get(record.provider.integrationID ?? ID14.make(record.provider.id));
355
+ const integration = byID.get(record.provider.integrationID ?? ID12.make(record.provider.id));
608
356
  if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
609
357
  return false;
610
358
  if (record.provider.activation === "enabled")
@@ -621,7 +369,7 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
621
369
  }
622
370
  });
623
371
  let published;
624
- const notify = Effect2.gen(function* () {
372
+ const notify = Effect.gen(function* () {
625
373
  const value = yield* snapshot();
626
374
  if (value === published)
627
375
  return;
@@ -630,19 +378,19 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
630
378
  location: { directory: location.directory, workspaceID: location.workspaceID }
631
379
  });
632
380
  });
633
- yield* bus.subscribe([Event18.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect2.forkScoped({ startImmediately: true }));
634
- return Service76.of({
381
+ yield* bus.subscribe([Event18.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
382
+ return Service69.of({
635
383
  transform: state.transform,
636
384
  reload: state.reload,
637
- get: Effect2.fn("Provider.get")((id) => Effect2.sync(() => freeze(state.get().get(id)?.provider, true))),
638
- all: Effect2.fn("Provider.all")(() => Effect2.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
639
- available: Effect2.fn("Provider.available")(() => snapshot().pipe(Effect2.map((value) => value.providers))),
385
+ get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
386
+ all: Effect.fn("Provider.all")(() => Effect.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
387
+ available: Effect.fn("Provider.available")(() => snapshot().pipe(Effect.map((value) => value.providers))),
640
388
  snapshot
641
389
  });
642
390
  }));
643
- var node80 = makeLocationNode({ service: Service76, layer, deps: [node87, node81, node84] });
644
- var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
645
- const module = yield* Effect2.tryPromise({
391
+ var node72 = makeLocationNode({ service: Service69, layer, deps: [node85, node73, node81] });
392
+ var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
393
+ const module = yield* Effect.tryPromise({
646
394
  try: () => {
647
395
  const existing = packages.get(entrypoint);
648
396
  if (existing)
@@ -662,4 +410,260 @@ var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, e
662
410
  return module;
663
411
  });
664
412
 
665
- export { ID13, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, timeout2, timeouts2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info22, Service76, node80, exports_provider3, Event17, rewrite2, native2, exports_aisdk_native };
413
+ // src/aisdk-native.ts
414
+ function rewrite2(target, input) {
415
+ if (input.specifier === undefined)
416
+ return;
417
+ const plain = resolve(input.specifier, input);
418
+ if (!plain)
419
+ return;
420
+ const settings = decode(target.settings ?? {});
421
+ const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
422
+ const translated = options(replacement, input.modelID, settings);
423
+ if (target.package !== undefined || replacement !== input.specifier)
424
+ target.package = replacement;
425
+ target.settings = target.settings === undefined ? undefined : {
426
+ ...translated.settings,
427
+ ...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
428
+ };
429
+ target.headers = mergeHeaders2(translated.headers, target.headers);
430
+ target.body = mergeOverlay2(translated.body, target.body);
431
+ target.variants = target.variants?.map((variant) => {
432
+ const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
433
+ const headers = mergeHeaders2(overlay.headers, variant.headers);
434
+ const body = mergeOverlay2(overlay.body, variant.body);
435
+ return {
436
+ id: variant.id,
437
+ ...variant.settings === undefined ? {} : { settings: overlay.settings },
438
+ ...headers === undefined ? {} : { headers },
439
+ ...body === undefined ? {} : { body }
440
+ };
441
+ });
442
+ }
443
+ var PACKAGES = {
444
+ "@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
445
+ "@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
446
+ "@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
447
+ "@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
448
+ "@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
449
+ "@ai-sdk/cohere": "@opencode/ai/providers/cohere",
450
+ "@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
451
+ "@ai-sdk/google": "@opencode/ai/providers/google",
452
+ "@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
453
+ "@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
454
+ "@ai-sdk/groq": "@opencode/ai/providers/groq",
455
+ "@ai-sdk/mistral": "@opencode/ai/providers/mistral",
456
+ "@ai-sdk/openai": "@opencode/ai/providers/openai",
457
+ "@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
458
+ "@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
459
+ "@ai-sdk/xai": "@opencode/ai/providers/xai",
460
+ "@ai-sdk/gateway": "@opencode/ai/providers/vercel-ai-gateway",
461
+ "@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
462
+ "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway",
463
+ "venice-ai-sdk-provider": "@opencode/ai/providers/venice"
464
+ };
465
+ var protocols = (name) => ({
466
+ "@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
467
+ "@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
468
+ "@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
469
+ });
470
+ var HOSTS = {
471
+ alibaba: protocols("alibaba"),
472
+ "alibaba-cn": protocols("alibaba"),
473
+ "alibaba-coding-plan": protocols("alibaba"),
474
+ "alibaba-coding-plan-cn": protocols("alibaba"),
475
+ "alibaba-token-plan": protocols("alibaba"),
476
+ "alibaba-token-plan-cn": protocols("alibaba"),
477
+ baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
478
+ "cloudflare-ai-gateway": {
479
+ "@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
480
+ "@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
481
+ "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
482
+ "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
483
+ },
484
+ cohere: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cohere/chat" },
485
+ "cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
486
+ deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
487
+ digitalocean: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/digitalocean" },
488
+ "fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
489
+ "google-vertex": {
490
+ "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat",
491
+ "@ai-sdk/mistral": "@opencode/ai/providers/google-vertex/mistral"
492
+ },
493
+ "kimi-for-coding": protocols("moonshot"),
494
+ meta: protocols("meta"),
495
+ minimax: protocols("minimax"),
496
+ "minimax-cn": protocols("minimax"),
497
+ "minimax-coding-plan": protocols("minimax"),
498
+ "minimax-cn-coding-plan": protocols("minimax"),
499
+ moonshotai: protocols("moonshot"),
500
+ "moonshotai-cn": protocols("moonshot"),
501
+ zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
502
+ "zai-coding-plan": protocols("zai-coding-plan"),
503
+ zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
504
+ "zhipuai-coding-plan": protocols("zai-coding-plan")
505
+ };
506
+ var NATIVE = new Set([
507
+ ...Object.values(PACKAGES),
508
+ ...Object.values(HOSTS).flatMap((host) => Object.values(host)),
509
+ "@opencode/ai/providers/azure/chat",
510
+ "@opencode/ai/providers/amazon-bedrock/mantle",
511
+ "@opencode/ai/providers/amazon-bedrock/mantle/chat",
512
+ "@opencode/ai/providers/amazon-bedrock/mantle/responses"
513
+ ]);
514
+ function native2(npm, context) {
515
+ const host = HOSTS[context.providerID]?.[npm];
516
+ if (host)
517
+ return host;
518
+ if (npm === "@ai-sdk/amazon-bedrock/mantle")
519
+ return mantle(context.modelID);
520
+ if (npm === "@ai-sdk/azure" && azureChat(context))
521
+ return "@opencode/ai/providers/azure/chat";
522
+ return PACKAGES[npm];
523
+ }
524
+ var azureChat = (context) => context.shape === "completions" || context.settings?.useCompletionUrls === true;
525
+ var mantle = (modelID) => {
526
+ if (modelID === undefined)
527
+ return "@opencode/ai/providers/amazon-bedrock/mantle";
528
+ return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
529
+ };
530
+ function resolve(specifier, context) {
531
+ const npm = packageName2(specifier);
532
+ if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
533
+ return native2(npm, context);
534
+ if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
535
+ return mantle(context.modelID);
536
+ if (npm === "@opencode/ai/providers/azure/responses" && azureChat(context))
537
+ return "@opencode/ai/providers/azure/chat";
538
+ return NATIVE.has(npm) ? npm : undefined;
539
+ }
540
+ function options(replacement, modelID, settings) {
541
+ const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
542
+ const kept = Struct2.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
543
+ const thinking = converse ? bedrockThinking(modelID, settings) : undefined;
544
+ return {
545
+ settings: {
546
+ ...replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
547
+ ...thinking === undefined ? {} : { thinking }
548
+ },
549
+ ...settings.headers === undefined ? {} : { headers: settings.headers },
550
+ ...settings.extraBody === undefined ? {} : { body: settings.extraBody },
551
+ ...converse ? bedrockRequest(modelID, settings) : {},
552
+ ...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
553
+ };
554
+ }
555
+ var BEDROCK_KEYS = [
556
+ "bearerToken",
557
+ "endpoint",
558
+ "credentials",
559
+ "credentialProvider",
560
+ "accessKeyId",
561
+ "secretAccessKey",
562
+ "sessionToken"
563
+ ];
564
+ var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
565
+ function bedrockSettings(settings, converse) {
566
+ const region = settings.region ?? settings.credentials?.region;
567
+ const credentials = settings.credentials ?? settings;
568
+ const baseURL = settings.baseURL ?? settings.endpoint;
569
+ return {
570
+ ...Struct2.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
571
+ ...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
572
+ ...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
573
+ ...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
574
+ credentials: {
575
+ ...region === undefined ? {} : { region },
576
+ accessKeyId: credentials.accessKeyId,
577
+ secretAccessKey: credentials.secretAccessKey,
578
+ ...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
579
+ }
580
+ }
581
+ };
582
+ }
583
+ function bedrockThinking(modelID, settings) {
584
+ const reasoning = settings.reasoningConfig;
585
+ if (!modelID?.includes("anthropic") || reasoning?.type !== "enabled" || reasoning.budgetTokens === undefined)
586
+ return;
587
+ return { type: "enabled", budgetTokens: reasoning.budgetTokens };
588
+ }
589
+ function bedrockRequest(modelID, settings) {
590
+ const additional = settings.additionalModelRequestFields ?? {};
591
+ const reasoning = settings.reasoningConfig;
592
+ const anthropic = modelID?.includes("anthropic") ?? false;
593
+ const openai = modelID?.includes("openai.") ?? false;
594
+ const harmony = modelID?.includes("openai.gpt-oss") ?? false;
595
+ const effort = reasoning?.maxReasoningEffort;
596
+ const type = reasoning?.type;
597
+ const budget = reasoning?.budgetTokens;
598
+ const display = reasoning?.display;
599
+ const betas = settings.anthropicBeta ?? [];
600
+ const fields = mergeOverlay2(additional, {
601
+ ...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
602
+ ...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
603
+ ...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
604
+ ...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
605
+ ...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
606
+ ...!anthropic && !openai && effort !== undefined ? {
607
+ reasoningConfig: {
608
+ ...type === undefined || type === "adaptive" ? {} : { type },
609
+ ...budget === undefined ? {} : { budgetTokens: budget },
610
+ maxReasoningEffort: effort
611
+ }
612
+ } : {}
613
+ });
614
+ const body = {
615
+ ...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
616
+ ...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
617
+ };
618
+ return Object.keys(body).length === 0 ? {} : { body };
619
+ }
620
+ var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
621
+ function openRouterRequest(settings) {
622
+ const headers = mergeHeaders2({
623
+ ...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
624
+ ...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
625
+ ...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
626
+ }, settings.headers) ?? {};
627
+ return Object.keys(headers).length === 0 ? {} : { headers };
628
+ }
629
+ var lenient = (schema) => Schema2.optional(Schema2.UndefinedOr(schema).pipe(Schema2.catchDecoding(() => Effect2.succeed(Option2.some(undefined)))));
630
+ var Credentials = Schema2.Struct({
631
+ accessKeyId: Schema2.String,
632
+ secretAccessKey: Schema2.String,
633
+ sessionToken: lenient(Schema2.String),
634
+ region: lenient(Schema2.String)
635
+ });
636
+ var Legacy = Schema2.StructWithRest(Schema2.Struct({
637
+ apiKey: lenient(Schema2.String),
638
+ baseURL: lenient(Schema2.String),
639
+ headers: lenient(Schema2.Record(Schema2.String, Schema2.String)),
640
+ extraBody: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
641
+ useCompletionUrls: lenient(Schema2.Boolean),
642
+ auth: lenient(Schema2.Literals(["bearer", "sigv4"])),
643
+ bearerToken: lenient(Schema2.String),
644
+ endpoint: lenient(Schema2.String),
645
+ region: lenient(Schema2.String),
646
+ credentials: lenient(Credentials),
647
+ accessKeyId: lenient(Schema2.String),
648
+ secretAccessKey: lenient(Schema2.String),
649
+ sessionToken: lenient(Schema2.String),
650
+ anthropicBeta: lenient(Schema2.Array(Schema2.String)),
651
+ serviceTier: lenient(Schema2.String),
652
+ reasoningConfig: lenient(Schema2.Struct({
653
+ type: lenient(Schema2.String),
654
+ display: lenient(Schema2.String),
655
+ maxReasoningEffort: lenient(Schema2.String),
656
+ budgetTokens: lenient(Schema2.Number)
657
+ })),
658
+ additionalModelRequestFields: lenient(Schema2.StructWithRest(Schema2.Struct({
659
+ anthropic_beta: lenient(Schema2.Array(Schema2.String)),
660
+ output_config: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
661
+ reasoning: lenient(Schema2.Record(Schema2.String, Schema2.Unknown))
662
+ }), [Schema2.Record(Schema2.String, Schema2.Unknown)])),
663
+ appName: lenient(Schema2.String),
664
+ appUrl: lenient(Schema2.String),
665
+ api_keys: lenient(Schema2.Record(Schema2.String, Schema2.String))
666
+ }), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
667
+ var decode = Schema2.decodeUnknownSync(Legacy);
668
+
669
+ export { rewrite2, native2, exports_aisdk_native, ID11, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, timeout2, timeouts2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info20, Service69, node72, exports_provider3, Event17 };