@opencode/core 0.0.0-dev-19660 → 0.0.0-dev-19666

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 (787) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +80 -80
  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/{location-service-map-1q4mm0ye.js → credential-05ygxhcx.js} +30 -30
  8. package/dist/chunks/{location-service-map-pj3035kn.js → credential-0bnjtszc.js} +11 -11
  9. package/dist/chunks/{location-service-map-h9yd5z5z.js → credential-0e8sy9ry.js} +6 -6
  10. package/dist/chunks/{location-service-map-6hjx5zpb.js → credential-0jq9fyba.js} +9 -9
  11. package/dist/chunks/credential-0mesazry.js +4 -0
  12. package/dist/chunks/{location-service-map-9xt7beqv.js → credential-0nx44e6s.js} +7 -7
  13. package/dist/chunks/{location-service-map-0paq2nw3.js → credential-0paq2nw3.js} +1 -1
  14. package/dist/chunks/{location-service-map-0q0f95c6.js → credential-0q0f95c6.js} +1 -1
  15. package/dist/chunks/{location-service-map-140749c4.js → credential-0t1hp5a3.js} +3 -3
  16. package/dist/chunks/{location-service-map-qcxfr8rj.js → credential-0xq9xhmj.js} +20 -20
  17. package/dist/chunks/{location-service-map-g1chrtxc.js → credential-0y85p7dm.js} +6 -6
  18. package/dist/chunks/{location-service-map-rb2v4k36.js → credential-11bvvhnn.js} +44 -44
  19. package/dist/chunks/{location-service-map-cc21mxc2.js → credential-13n5e6v7.js} +29 -29
  20. package/dist/chunks/{location-service-map-g19t371p.js → credential-17dh7jyv.js} +30 -30
  21. package/dist/chunks/{location-service-map-r8xr0va3.js → credential-1acjjqhc.js} +4 -4
  22. package/dist/chunks/{location-service-map-s24268rc.js → credential-1ae6kvz9.js} +22 -22
  23. package/dist/chunks/{location-service-map-2j80qb3r.js → credential-1ahzwbrc.js} +3 -3
  24. package/dist/chunks/{location-service-map-mhkvc446.js → credential-1bbkgx8g.js} +3 -3
  25. package/dist/chunks/{location-service-map-1dazxqgg.js → credential-1dazxqgg.js} +2 -2
  26. package/dist/chunks/{location-service-map-6cd6tdvt.js → credential-1fv74gqc.js} +6 -6
  27. package/dist/chunks/{location-service-map-wy9nqtfx.js → credential-1kf20zpt.js} +24 -24
  28. package/dist/chunks/credential-1qcbrk1r.js +26 -0
  29. package/dist/chunks/{location-service-map-ggq2s5pj.js → credential-1t6ktrk6.js} +4 -4
  30. package/dist/chunks/{location-service-map-5jjmea98.js → credential-1w9mhehj.js} +12 -12
  31. package/dist/chunks/{location-service-map-1ygqh575.js → credential-1ygqh575.js} +2 -2
  32. package/dist/chunks/{location-service-map-21r38tys.js → credential-21r38tys.js} +1 -1
  33. package/dist/chunks/{location-service-map-mgk0crra.js → credential-22yysgjd.js} +1 -1
  34. package/dist/chunks/{location-service-map-6h73sxmp.js → credential-2402vzrj.js} +5 -5
  35. package/dist/chunks/{location-service-map-d0vk8qkm.js → credential-27ydpwgw.js} +6 -6
  36. package/dist/chunks/{location-service-map-z63w68vq.js → credential-29x78va6.js} +6 -6
  37. package/dist/chunks/{location-service-map-2a5m3afh.js → credential-2a5m3afh.js} +1 -1
  38. package/dist/chunks/{location-service-map-4bfn2nav.js → credential-2d70jdp9.js} +36 -36
  39. package/dist/chunks/{location-service-map-pthrx8yq.js → credential-2e11fzmp.js} +14 -14
  40. package/dist/chunks/{location-service-map-w4xs2ha5.js → credential-2g36pw43.js} +11 -11
  41. package/dist/chunks/{location-service-map-nj8trw50.js → credential-2qerxkme.js} +15 -15
  42. package/dist/chunks/{location-service-map-dyv4mywf.js → credential-2wkyznp6.js} +10 -10
  43. package/dist/chunks/{location-service-map-fmrwf976.js → credential-2xj68b26.js} +15 -15
  44. package/dist/chunks/{location-service-map-3cfzdc8e.js → credential-36cgn824.js} +2 -2
  45. package/dist/chunks/{location-service-map-bs2603xw.js → credential-36q87gfm.js} +32 -32
  46. package/dist/chunks/{location-service-map-rv4vr9yd.js → credential-3cmcwjyg.js} +2 -2
  47. package/dist/chunks/{location-service-map-cbsgcep2.js → credential-3dz6av1h.js} +30 -30
  48. package/dist/chunks/{location-service-map-yhx1xcxn.js → credential-3e16hxxp.js} +51 -51
  49. package/dist/chunks/{location-service-map-3fc6dm20.js → credential-3fc6dm20.js} +1 -1
  50. package/dist/chunks/{location-service-map-3hepkmqq.js → credential-3hepkmqq.js} +1 -1
  51. package/dist/chunks/{location-service-map-3smtnn6g.js → credential-3smtnn6g.js} +1 -1
  52. package/dist/chunks/{location-service-map-j9s1fk2v.js → credential-3tbdz2xg.js} +6 -6
  53. package/dist/chunks/{location-service-map-3tvqynh2.js → credential-3tvqynh2.js} +1 -1
  54. package/dist/chunks/{location-service-map-h6r3nrb9.js → credential-4dgbcxzg.js} +4 -4
  55. package/dist/chunks/{location-service-map-ddmannaj.js → credential-4fggj5wy.js} +137 -135
  56. package/dist/chunks/{location-service-map-e7xzm7yh.js → credential-4ft7aw51.js} +6 -6
  57. package/dist/chunks/{location-service-map-x5bvb29v.js → credential-4fxtva6j.js} +28 -28
  58. package/dist/chunks/{location-service-map-tqd8qkp8.js → credential-4t549gag.js} +15 -15
  59. package/dist/chunks/{location-service-map-cvxnh4ee.js → credential-4x37hr07.js} +32 -32
  60. package/dist/chunks/{location-service-map-86ywxagw.js → credential-4ygq0zje.js} +21 -21
  61. package/dist/chunks/{location-service-map-hp2c8qqy.js → credential-4zp3m0y7.js} +20 -20
  62. package/dist/chunks/{location-service-map-k82ca1ea.js → credential-508p55fx.js} +18 -18
  63. package/dist/chunks/{location-service-map-a3r4dcrj.js → credential-51jra4mh.js} +2 -2
  64. package/dist/chunks/{location-service-map-1dxctdcm.js → credential-57nrd0dc.js} +2 -2
  65. package/dist/chunks/{location-service-map-v27f6r8c.js → credential-5apets8e.js} +5 -5
  66. package/dist/chunks/{location-service-map-a1bz86dw.js → credential-5c4hm403.js} +3 -3
  67. package/dist/chunks/{location-service-map-nbzsj80d.js → credential-5cfjqfg7.js} +11 -11
  68. package/dist/chunks/{location-service-map-5daktx2q.js → credential-5daktx2q.js} +1 -1
  69. package/dist/chunks/{location-service-map-640j4mmj.js → credential-5dgyrznt.js} +16 -16
  70. package/dist/chunks/{location-service-map-9ehf71qq.js → credential-5gsz1cxq.js} +8 -8
  71. package/dist/chunks/{location-service-map-tpgz8nga.js → credential-5h89xv10.js} +3 -3
  72. package/dist/chunks/{location-service-map-5t3nmthw.js → credential-5t3nmthw.js} +2 -2
  73. package/dist/chunks/{location-service-map-vbdfzvsx.js → credential-5xwnfstc.js} +12 -12
  74. package/dist/chunks/{location-service-map-5yzzbxa7.js → credential-5yzzbxa7.js} +1 -1
  75. package/dist/chunks/{location-service-map-5c0f1prt.js → credential-64kphnzf.js} +4 -4
  76. package/dist/chunks/{location-service-map-2y1k1gba.js → credential-64p606dm.js} +4 -4
  77. package/dist/chunks/{location-service-map-669tq793.js → credential-669tq793.js} +1 -1
  78. package/dist/chunks/{location-service-map-0p0j0qmv.js → credential-68mh88x5.js} +11 -11
  79. package/dist/chunks/{location-service-map-hptwwzze.js → credential-6fr6g2j9.js} +29 -29
  80. package/dist/chunks/{location-service-map-rtn8v257.js → credential-6gewjzag.js} +10 -10
  81. package/dist/chunks/{location-service-map-6msgmcgs.js → credential-6msgmcgs.js} +1 -1
  82. package/dist/chunks/{location-service-map-t45ckn0p.js → credential-6mxat6pr.js} +25 -25
  83. package/dist/chunks/{location-service-map-6t76mbj1.js → credential-6tsskk3m.js} +20 -20
  84. package/dist/chunks/{location-service-map-g8xjpkgp.js → credential-6v4n8nt1.js} +20 -20
  85. package/dist/chunks/{location-service-map-jc0e05m4.js → credential-738narex.js} +4 -4
  86. package/dist/chunks/{location-service-map-7bmhse3q.js → credential-7bmhse3q.js} +1 -1
  87. package/dist/chunks/{location-service-map-0jwsre1p.js → credential-7dqw4kz8.js} +5 -5
  88. package/dist/chunks/{location-service-map-925vrtrr.js → credential-7eqb3hhp.js} +73 -73
  89. package/dist/chunks/{location-service-map-jexxy024.js → credential-7jdsj2a9.js} +2 -2
  90. package/dist/chunks/{location-service-map-3ythc6yv.js → credential-7z7az0f5.js} +4 -4
  91. package/dist/chunks/{location-service-map-ge51wycr.js → credential-81dmkzj2.js} +12 -12
  92. package/dist/chunks/{location-service-map-b1ve85my.js → credential-83sndckj.js} +21 -21
  93. package/dist/chunks/{location-service-map-few8y2yk.js → credential-83wkmbw3.js} +41 -41
  94. package/dist/chunks/{location-service-map-8d7r5vzw.js → credential-8d7r5vzw.js} +1 -1
  95. package/dist/chunks/{location-service-map-4x04b74d.js → credential-8eg2ksxv.js} +24 -24
  96. package/dist/chunks/{location-service-map-e6nzwyqe.js → credential-8jc16yv6.js} +13 -13
  97. package/dist/chunks/{location-service-map-ze5v0a14.js → credential-8mfdap3f.js} +8 -8
  98. package/dist/chunks/{location-service-map-e7jm4tva.js → credential-8pr7wmf3.js} +4 -4
  99. package/dist/chunks/{location-service-map-jxcxq7n9.js → credential-9e4nk0tq.js} +18 -18
  100. package/dist/chunks/{location-service-map-bxphfnmx.js → credential-9h1fa16h.js} +25 -25
  101. package/dist/chunks/{location-service-map-5h7r02gf.js → credential-9j72sgz6.js} +15 -15
  102. package/dist/chunks/{location-service-map-skzznzbs.js → credential-9kb0rfcz.js} +16 -16
  103. package/dist/chunks/{location-service-map-1mxmwp69.js → credential-9p1k4t37.js} +3 -3
  104. package/dist/chunks/credential-9s36ejp2.js +478 -0
  105. package/dist/chunks/{location-service-map-fswh39dv.js → credential-9zjppy0x.js} +19 -19
  106. package/dist/chunks/{location-service-map-aaet6srn.js → credential-aaet6srn.js} +2 -2
  107. package/dist/chunks/{location-service-map-8vqyqek3.js → credential-acm2yer0.js} +18 -18
  108. package/dist/chunks/{location-service-map-3ktf6c16.js → credential-aww5fh3f.js} +25 -25
  109. package/dist/chunks/{location-service-map-kqam0sgn.js → credential-b6cw5a0r.js} +9 -9
  110. package/dist/chunks/{location-service-map-b6gygkdw.js → credential-b6gygkdw.js} +2 -2
  111. package/dist/chunks/{location-service-map-xdqbkvnf.js → credential-b6q09cwq.js} +11 -11
  112. package/dist/chunks/{location-service-map-49jpjk9s.js → credential-bbde4wd0.js} +6 -6
  113. package/dist/chunks/{location-service-map-z90797js.js → credential-bd16h6cm.js} +18 -18
  114. package/dist/chunks/{location-service-map-8mydn4af.js → credential-bex791m1.js} +13 -13
  115. package/dist/chunks/{location-service-map-xk2zp1tj.js → credential-bfe3gwjm.js} +10 -10
  116. package/dist/chunks/{location-service-map-z2qbjhyn.js → credential-bgs9y14h.js} +5 -5
  117. package/dist/chunks/{location-service-map-vfgap0e3.js → credential-bgsk5sf6.js} +23 -23
  118. package/dist/chunks/{location-service-map-tf0d63vq.js → credential-bhbz1g28.js} +1 -1
  119. package/dist/chunks/{location-service-map-j39yv4t6.js → credential-bnhg3r2a.js} +12 -12
  120. package/dist/chunks/{location-service-map-vkmp5m69.js → credential-bpxxtvpb.js} +3 -3
  121. package/dist/chunks/credential-by5v678g.js +18 -0
  122. package/dist/chunks/{location-service-map-qxgazt95.js → credential-byrjk9ja.js} +9 -9
  123. package/dist/chunks/{location-service-map-bapar831.js → credential-c86qhz4v.js} +21 -21
  124. package/dist/chunks/{location-service-map-6vmhsyqb.js → credential-cx9swraq.js} +3 -3
  125. package/dist/chunks/{location-service-map-ycjb11n5.js → credential-d1mtykxg.js} +6 -6
  126. package/dist/chunks/{location-service-map-6x0h2hvg.js → credential-d9s573fh.js} +9 -9
  127. package/dist/chunks/{location-service-map-maj3cgsn.js → credential-dc33ykcf.js} +6 -6
  128. package/dist/chunks/{location-service-map-n4r3xatb.js → credential-ddt2bs9e.js} +4 -4
  129. package/dist/chunks/{location-service-map-t9zs3egg.js → credential-dfe8djrf.js} +4 -4
  130. package/dist/chunks/{location-service-map-8zqjmmsh.js → credential-dfgcgxez.js} +18 -18
  131. package/dist/chunks/{location-service-map-846nxxqf.js → credential-dgve2xzp.js} +23 -23
  132. package/dist/chunks/{location-service-map-8p4f9s12.js → credential-dj2t23y0.js} +2 -2
  133. package/dist/chunks/{location-service-map-vna125x6.js → credential-dmsmn8n3.js} +26 -26
  134. package/dist/chunks/{location-service-map-sh4kyrrg.js → credential-dn50tt4t.js} +23 -23
  135. package/dist/chunks/{location-service-map-7srmk5ch.js → credential-dr1t5hnz.js} +11 -11
  136. package/dist/chunks/{location-service-map-drwq78ky.js → credential-drwq78ky.js} +1 -1
  137. package/dist/chunks/{location-service-map-3scja1h6.js → credential-dznngq2q.js} +6 -6
  138. package/dist/chunks/{location-service-map-6f0f08tp.js → credential-e1gfgpzq.js} +9 -9
  139. package/dist/chunks/{location-service-map-5qd3pb7m.js → credential-e3qxr5gk.js} +2 -2
  140. package/dist/chunks/{location-service-map-c3wvze55.js → credential-e5646j3d.js} +5 -5
  141. package/dist/chunks/{location-service-map-y6j1hny3.js → credential-e6jvw2we.js} +292 -292
  142. package/dist/chunks/{location-service-map-af5bf86k.js → credential-e6xxsv62.js} +11 -11
  143. package/dist/chunks/{location-service-map-njsjcp28.js → credential-e7tvk2tq.js} +14 -14
  144. package/dist/chunks/{location-service-map-82wag1nn.js → credential-e90yva4k.js} +8 -8
  145. package/dist/chunks/{location-service-map-nxhqveyz.js → credential-ea5hcw4s.js} +5 -5
  146. package/dist/chunks/{location-service-map-s8d7rejh.js → credential-eaj1djv9.js} +6 -6
  147. package/dist/chunks/{location-service-map-ef5x83kb.js → credential-ef5x83kb.js} +1 -1
  148. package/dist/chunks/{location-service-map-txwwvtzy.js → credential-esaz05fm.js} +11 -11
  149. package/dist/chunks/{location-service-map-cpkf12cv.js → credential-esn92z5j.js} +7 -7
  150. package/dist/chunks/{location-service-map-etq0c3wd.js → credential-etq0c3wd.js} +1 -1
  151. package/dist/chunks/{location-service-map-3p0sb3hh.js → credential-ewh97b2b.js} +34 -34
  152. package/dist/chunks/{location-service-map-f8cghxbq.js → credential-f34svx4d.js} +18 -18
  153. package/dist/chunks/{location-service-map-jphv0zzy.js → credential-f5mgxjb1.js} +43 -43
  154. package/dist/chunks/{location-service-map-mpmzeszj.js → credential-f9tp8y98.js} +11 -11
  155. package/dist/chunks/{location-service-map-fkjmw100.js → credential-fkjmw100.js} +2 -2
  156. package/dist/chunks/{location-service-map-vr5gpa7d.js → credential-fmt9gx9z.js} +3 -3
  157. package/dist/chunks/{location-service-map-d802jrky.js → credential-fsh1gg8q.js} +17 -17
  158. package/dist/chunks/{location-service-map-fxbjtjnd.js → credential-fxbjtjnd.js} +1 -1
  159. package/dist/chunks/{location-service-map-vnsev666.js → credential-g4bkzb6c.js} +28 -28
  160. package/dist/chunks/{location-service-map-0jtkz3d8.js → credential-g7rb6ydv.js} +40 -40
  161. package/dist/chunks/{location-service-map-4nm3vjp9.js → credential-gccs2bwb.js} +8 -8
  162. package/dist/chunks/{location-service-map-gd4qta3r.js → credential-gd4qta3r.js} +1 -1
  163. package/dist/chunks/{location-service-map-bd0vgtef.js → credential-gj8zg189.js} +8 -8
  164. package/dist/chunks/{location-service-map-tgfqj0tj.js → credential-gmvdm7qq.js} +31 -31
  165. package/dist/chunks/{location-service-map-4f16ex7w.js → credential-gvqa5h3n.js} +24 -24
  166. package/dist/chunks/{location-service-map-my4p66pg.js → credential-gx61xvmr.js} +1 -1
  167. package/dist/chunks/{location-service-map-h03wrkyp.js → credential-h03wrkyp.js} +2 -2
  168. package/dist/chunks/{location-service-map-mddebm60.js → credential-h32de20b.js} +11 -11
  169. package/dist/chunks/{location-service-map-h6vf3j39.js → credential-h6vf3j39.js} +1 -1
  170. package/dist/chunks/{location-service-map-cv7j2z5n.js → credential-h6wsj49y.js} +20 -20
  171. package/dist/chunks/{location-service-map-gmk0dfms.js → credential-h774x8jn.js} +1 -1
  172. package/dist/chunks/{location-service-map-f828m53h.js → credential-hdnk95c8.js} +2 -2
  173. package/dist/chunks/{location-service-map-3w8a90tt.js → credential-hebf1kxy.js} +24 -24
  174. package/dist/chunks/{location-service-map-bfmjpd91.js → credential-htz6nkmz.js} +9 -9
  175. package/dist/chunks/{location-service-map-txetpexz.js → credential-j1zf7whd.js} +24 -24
  176. package/dist/chunks/{location-service-map-j56e64zr.js → credential-j56e64zr.js} +1 -1
  177. package/dist/chunks/{location-service-map-t2fc4mz5.js → credential-jfqtm2ew.js} +4 -4
  178. package/dist/chunks/{location-service-map-k3gnzxs0.js → credential-jppvw2tx.js} +5 -5
  179. package/dist/chunks/{location-service-map-kn6hy8gg.js → credential-kbfsvxgx.js} +1 -1
  180. package/dist/chunks/{location-service-map-83trqwjq.js → credential-kd1cpg0d.js} +24 -21
  181. package/dist/chunks/{location-service-map-50mzsvk4.js → credential-kk00bynn.js} +21 -21
  182. package/dist/chunks/{location-service-map-eeaf82dq.js → credential-kk8h1mek.js} +8 -8
  183. package/dist/chunks/{location-service-map-jdmvfsrp.js → credential-kmfjf26x.js} +41 -41
  184. package/dist/chunks/{location-service-map-vvavc2qy.js → credential-kna91w2n.js} +9 -9
  185. package/dist/chunks/{location-service-map-s19nse04.js → credential-kzdc4nak.js} +24 -24
  186. package/dist/chunks/{location-service-map-cfpkc3c9.js → credential-m0jqrx5p.js} +2 -2
  187. package/dist/chunks/{location-service-map-m5wb1pe3.js → credential-m665a3h5.js} +5 -5
  188. package/dist/chunks/{location-service-map-advntn1d.js → credential-m9m18251.js} +4 -4
  189. package/dist/chunks/{location-service-map-m9w0rfyh.js → credential-m9w0rfyh.js} +1 -1
  190. package/dist/chunks/{location-service-map-6jqkynh6.js → credential-mkw2wvv0.js} +9 -9
  191. package/dist/chunks/{location-service-map-ybhbtxjg.js → credential-n9kbh9vm.js} +7 -7
  192. package/dist/chunks/{location-service-map-965hbsyz.js → credential-nb113zne.js} +10 -10
  193. package/dist/chunks/{location-service-map-21kebyyj.js → credential-nbehtjny.js} +39 -39
  194. package/dist/chunks/{location-service-map-265fjsnr.js → credential-nbj5kk3p.js} +40 -40
  195. package/dist/chunks/{location-service-map-apn8f15b.js → credential-nca7p386.js} +9 -9
  196. package/dist/chunks/{location-service-map-893gk64j.js → credential-nh00fgee.js} +11 -11
  197. package/dist/chunks/{location-service-map-3xkzj60s.js → credential-nx9y3xfj.js} +30 -30
  198. package/dist/chunks/{location-service-map-5feygex5.js → credential-ny7wh072.js} +18 -18
  199. package/dist/chunks/{location-service-map-bj7jfyvt.js → credential-p12fe6dj.js} +10 -10
  200. package/dist/chunks/{location-service-map-zdcb0bn4.js → credential-p55ry8ca.js} +3 -3
  201. package/dist/chunks/{location-service-map-m7wcydhj.js → credential-pab7612g.js} +18 -18
  202. package/dist/chunks/{location-service-map-h5dsj1en.js → credential-pamnnq1w.js} +9 -9
  203. package/dist/chunks/{location-service-map-7gs7ke07.js → credential-pf91bz7r.js} +27 -27
  204. package/dist/chunks/{location-service-map-pjvnvgmy.js → credential-pjvnvgmy.js} +1 -1
  205. package/dist/chunks/{location-service-map-pknna89w.js → credential-pknna89w.js} +1 -1
  206. package/dist/chunks/{location-service-map-mpp021qg.js → credential-pkvyjtqm.js} +22 -22
  207. package/dist/chunks/{location-service-map-5x83e8xj.js → credential-pq3mzx0q.js} +9 -9
  208. package/dist/chunks/{location-service-map-m1bkqzdr.js → credential-prx5v8cj.js} +19 -19
  209. package/dist/chunks/{location-service-map-510m7gjw.js → credential-psbrwbtd.js} +5 -5
  210. package/dist/chunks/{location-service-map-t622crrm.js → credential-pz6wpjec.js} +9 -9
  211. package/dist/chunks/{location-service-map-shj1fj37.js → credential-q6fm3z54.js} +11 -11
  212. package/dist/chunks/{location-service-map-ww40wncq.js → credential-qb62zmsn.js} +61 -61
  213. package/dist/chunks/{location-service-map-7wgre560.js → credential-qfrqt7ba.js} +38 -38
  214. package/dist/chunks/{location-service-map-z28g3w2g.js → credential-qhjfj27n.js} +45 -45
  215. package/dist/chunks/{location-service-map-qsdy395h.js → credential-qsdy395h.js} +1 -1
  216. package/dist/chunks/credential-qsh95xcw.js +247 -0
  217. package/dist/chunks/{location-service-map-pf2hb43r.js → credential-qz49fwgp.js} +6 -6
  218. package/dist/chunks/{location-service-map-ds3cv58q.js → credential-r19fnxbw.js} +2 -2
  219. package/dist/chunks/{location-service-map-e6hwtmax.js → credential-r1y777cf.js} +24 -24
  220. package/dist/chunks/{location-service-map-r2m716tb.js → credential-r2m716tb.js} +2 -2
  221. package/dist/chunks/{location-service-map-ctfw7cdm.js → credential-r36d19v4.js} +47 -47
  222. package/dist/chunks/{location-service-map-7kbdqp21.js → credential-r7e4w6sk.js} +6 -6
  223. package/dist/chunks/{location-service-map-r9mregkx.js → credential-r9mregkx.js} +2 -2
  224. package/dist/chunks/{location-service-map-rdw6cm16.js → credential-rdw6cm16.js} +1 -1
  225. package/dist/chunks/{location-service-map-anf0zms1.js → credential-rpjgfq5s.js} +9 -9
  226. package/dist/chunks/{location-service-map-zeh9ct20.js → credential-rq775frq.js} +2 -2
  227. package/dist/chunks/{location-service-map-h5bq1sb8.js → credential-rqp7cg88.js} +35 -35
  228. package/dist/chunks/{location-service-map-210szggt.js → credential-rynznh0p.js} +1 -1
  229. package/dist/chunks/{location-service-map-yrznvahk.js → credential-s4enseaf.js} +2 -2
  230. package/dist/chunks/{location-service-map-ndfbhgwr.js → credential-s6nyx2af.js} +11 -11
  231. package/dist/chunks/{location-service-map-545n52gg.js → credential-spyq2p40.js} +8 -8
  232. package/dist/chunks/{location-service-map-dc1t8cpf.js → credential-sr8e46fz.js} +18 -18
  233. package/dist/chunks/{location-service-map-b9280rn6.js → credential-sxtjcjkh.js} +15 -15
  234. package/dist/chunks/{location-service-map-qwjmgwmn.js → credential-t1dawjzh.js} +8 -8
  235. package/dist/chunks/{location-service-map-tazgh4e4.js → credential-tazgh4e4.js} +1 -1
  236. package/dist/chunks/{location-service-map-h08rb56n.js → credential-tc1y06w0.js} +8 -8
  237. package/dist/chunks/{location-service-map-tcezcvh9.js → credential-tcezcvh9.js} +1 -1
  238. package/dist/chunks/{location-service-map-ngn15djb.js → credential-tckg6srr.js} +32 -32
  239. package/dist/chunks/{location-service-map-tdstcens.js → credential-tdstcens.js} +1 -1
  240. package/dist/chunks/{location-service-map-3dpqf97p.js → credential-tf6e7ykh.js} +9 -9
  241. package/dist/chunks/{location-service-map-tvtrv512.js → credential-tvtrv512.js} +1 -1
  242. package/dist/chunks/{location-service-map-xm1e10md.js → credential-v24739yc.js} +12 -12
  243. package/dist/chunks/{location-service-map-5mr0an5j.js → credential-v689wcn1.js} +25 -25
  244. package/dist/chunks/{location-service-map-v8p7hepz.js → credential-v8p7hepz.js} +1 -1
  245. package/dist/chunks/{location-service-map-mhhcsnwa.js → credential-vcr66jmq.js} +25 -25
  246. package/dist/chunks/{location-service-map-veqvce7d.js → credential-veqvce7d.js} +1 -1
  247. package/dist/chunks/{location-service-map-72x2kg6r.js → credential-vh8r7pqb.js} +9 -9
  248. package/dist/chunks/{location-service-map-82kbskjh.js → credential-vkw6eg78.js} +15 -15
  249. package/dist/chunks/{location-service-map-vzcthcp8.js → credential-vzcthcp8.js} +1 -1
  250. package/dist/chunks/{location-service-map-w3wsvvr9.js → credential-w3wsvvr9.js} +1 -1
  251. package/dist/chunks/{location-service-map-3fd5r0q9.js → credential-w4apwaf4.js} +7 -7
  252. package/dist/chunks/{location-service-map-ayehcz6v.js → credential-w5hdw20w.js} +14 -14
  253. package/dist/chunks/{location-service-map-wd87259q.js → credential-wd87259q.js} +1 -1
  254. package/dist/chunks/{location-service-map-4b77fr6c.js → credential-whtyrcz8.js} +9 -9
  255. package/dist/chunks/{location-service-map-rhafb4aa.js → credential-wn0ga2b8.js} +9 -9
  256. package/dist/chunks/{location-service-map-rjy43r9k.js → credential-ws1cv121.js} +44 -44
  257. package/dist/chunks/{location-service-map-95hnsnnf.js → credential-ww3m2m79.js} +8 -8
  258. package/dist/chunks/{location-service-map-zhq6vg7a.js → credential-wy8b5sm2.js} +1 -1
  259. package/dist/chunks/{location-service-map-x1ezjp6w.js → credential-x1ezjp6w.js} +1 -1
  260. package/dist/chunks/{location-service-map-7mq0cvq1.js → credential-x1md2fzm.js} +13 -13
  261. package/dist/chunks/{location-service-map-1mv8tc66.js → credential-x27zz9cf.js} +10 -10
  262. package/dist/chunks/{location-service-map-s7mj0cgm.js → credential-x2k6c1jf.js} +13 -13
  263. package/dist/chunks/{location-service-map-c323bbvp.js → credential-x3nvw3tt.js} +17 -17
  264. package/dist/chunks/{location-service-map-6tycdckt.js → credential-x8e4p6xd.js} +18 -18
  265. package/dist/chunks/{location-service-map-x1xexjmd.js → credential-xecgr4w2.js} +26 -26
  266. package/dist/chunks/{location-service-map-e02sbcgh.js → credential-xf4jyg83.js} +30 -30
  267. package/dist/chunks/{location-service-map-aqabytrz.js → credential-xgvhk45p.js} +15 -15
  268. package/dist/chunks/{location-service-map-ygrxvgeh.js → credential-xs6ytfqx.js} +83 -83
  269. package/dist/chunks/{location-service-map-gb5bdds1.js → credential-xvj7j57r.js} +12 -12
  270. package/dist/chunks/{location-service-map-y1fvbwt7.js → credential-y1fvbwt7.js} +1 -1
  271. package/dist/chunks/{location-service-map-0x3vynpm.js → credential-y1kk5z1y.js} +2 -2
  272. package/dist/chunks/{location-service-map-hfdr1yjj.js → credential-y31b318c.js} +4 -4
  273. package/dist/chunks/{location-service-map-y71avatq.js → credential-y71avatq.js} +1 -1
  274. package/dist/chunks/{location-service-map-t8qw8ht6.js → credential-yh4x4bcf.js} +4 -4
  275. package/dist/chunks/{location-service-map-yrhqyw5v.js → credential-yrhqyw5v.js} +1 -1
  276. package/dist/chunks/{location-service-map-gv6a8nnw.js → credential-yyb7tjpc.js} +2 -2
  277. package/dist/chunks/{location-service-map-4mymgcv0.js → credential-yypw0vbp.js} +4 -4
  278. package/dist/chunks/{location-service-map-z0bkrqjs.js → credential-z0bkrqjs.js} +1 -1
  279. package/dist/chunks/{location-service-map-my4qt5ka.js → credential-z2qvtray.js} +8 -8
  280. package/dist/chunks/{location-service-map-w3verbm1.js → credential-z7h5tktn.js} +23 -23
  281. package/dist/chunks/{location-service-map-af7ft6b2.js → credential-z7hh0hye.js} +9 -9
  282. package/dist/chunks/{location-service-map-h0xtcnwj.js → credential-ze0v8k2q.js} +16 -16
  283. package/dist/chunks/{location-service-map-snd73vvn.js → credential-zn7zem8s.js} +20 -20
  284. package/dist/chunks/{location-service-map-zr2ceqn5.js → credential-zr2ceqn5.js} +1 -1
  285. package/dist/chunks/{location-service-map-rrkwsne1.js → credential-zwsreqmt.js} +13 -13
  286. package/dist/chunks/{location-service-map-zxq2ej10.js → credential-zxq2ej10.js} +1 -1
  287. package/dist/codemode/catalog.js +1 -1
  288. package/dist/codemode/instructions.js +5 -5
  289. package/dist/codemode/tool.js +2 -2
  290. package/dist/command.js +82 -82
  291. package/dist/config/discovery.js +81 -81
  292. package/dist/config/markdown.js +1 -1
  293. package/dist/config/normalize.js +105 -105
  294. package/dist/config/plugin/agent.js +122 -122
  295. package/dist/config/plugin/command.js +210 -210
  296. package/dist/config/plugin/compaction.js +158 -158
  297. package/dist/config/plugin/compatibility.js +140 -140
  298. package/dist/config/plugin/entry-observer.js +1 -1
  299. package/dist/config/plugin/formatter.js +123 -123
  300. package/dist/config/plugin/image.js +122 -122
  301. package/dist/config/plugin/instruction.js +89 -89
  302. package/dist/config/plugin/location-watcher.js +124 -124
  303. package/dist/config/plugin/mcp.js +129 -129
  304. package/dist/config/plugin/policy.js +122 -122
  305. package/dist/config/plugin/provider.js +122 -122
  306. package/dist/config/plugin/reference.js +124 -124
  307. package/dist/config/plugin/shell.js +124 -124
  308. package/dist/config/plugin/skill-file.js +101 -101
  309. package/dist/config/plugin/skill.js +143 -143
  310. package/dist/config/plugin/snapshot.js +122 -122
  311. package/dist/config/plugin/source.js +123 -123
  312. package/dist/config/plugin/tool-output.js +124 -124
  313. package/dist/config/plugin/websearch.js +123 -123
  314. package/dist/config/plugin/worktree.js +124 -124
  315. package/dist/config/variable.js +3 -3
  316. package/dist/config/watch.js +1 -1
  317. package/dist/config.js +127 -127
  318. package/dist/credential/sql.js +2 -2
  319. package/dist/credential.js +84 -84
  320. package/dist/database/database.js +65 -65
  321. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  322. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  323. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  324. package/dist/database/drizzle/index.js +13 -13
  325. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  326. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  327. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  328. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  329. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  330. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  331. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  332. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  333. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  334. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  335. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  336. package/dist/database/drizzle.js +14 -14
  337. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  338. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  339. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  340. package/dist/database/migration/20260225215848_workspace.js +1 -1
  341. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  342. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  343. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  344. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  345. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  346. package/dist/database/migration/20260323234822_events.js +1 -1
  347. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  348. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  349. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  350. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  351. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  352. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  353. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  354. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  355. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  356. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  357. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  358. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  359. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  360. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  361. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  362. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  363. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  364. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  365. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  366. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  367. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  368. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  369. package/dist/database/migration/20260611035744_credential.js +1 -1
  370. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  371. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  372. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  373. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  374. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  375. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  376. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  377. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  378. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  379. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  380. package/dist/database/migration/20260812213948_worktree.js +1 -1
  381. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  382. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  383. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  384. package/dist/database/migration.gen.js +48 -48
  385. package/dist/database/migration.js +50 -50
  386. package/dist/database/path.js +2 -2
  387. package/dist/database/schema.gen.js +1 -1
  388. package/dist/database/schema.sql.js +1 -1
  389. package/dist/database/sqlite.bun.js +1 -1
  390. package/dist/database/sqlite.js +1 -1
  391. package/dist/database/sqlite.node.js +1 -1
  392. package/dist/database/sqlite.workerd.js +1 -1
  393. package/dist/database/v1-migration.bun.js +75 -75
  394. package/dist/database/v1-migration.js +1 -1
  395. package/dist/effect/app-node-builder.js +364 -364
  396. package/dist/effect/app-node-platform.js +2 -2
  397. package/dist/effect/keyed-mutex.js +1 -1
  398. package/dist/effect/websocket-constructor.js +1 -1
  399. package/dist/environment/driver.js +1 -1
  400. package/dist/environment/environment.js +92 -92
  401. package/dist/environment/exec-defaults.js +2 -2
  402. package/dist/environment/files.js +1 -1
  403. package/dist/environment/index.js +92 -92
  404. package/dist/environment/local.js +2 -2
  405. package/dist/environment/memory.js +2 -2
  406. package/dist/environment/unavailable.js +1 -1
  407. package/dist/event/sql.js +1 -1
  408. package/dist/event-logger.js +69 -69
  409. package/dist/file-access.js +103 -103
  410. package/dist/file-mutation.js +93 -93
  411. package/dist/file-retention.js +1 -1
  412. package/dist/file.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/ignore.js +1 -1
  418. package/dist/filesystem/location-watcher-policy.js +2 -2
  419. package/dist/filesystem/location-watcher.js +221 -221
  420. package/dist/filesystem/protected.js +1 -1
  421. package/dist/filesystem/search.js +102 -102
  422. package/dist/filesystem/watcher-binding.js +3 -3
  423. package/dist/filesystem/watcher.js +15 -15
  424. package/dist/filesystem.js +105 -105
  425. package/dist/form.js +83 -83
  426. package/dist/formatter/builtins.js +4 -4
  427. package/dist/formatter.js +88 -88
  428. package/dist/generate.js +102 -102
  429. package/dist/git.js +10 -10
  430. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  431. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  432. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  433. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  434. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  435. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  436. package/dist/github-copilot/copilot-provider.js +17 -17
  437. package/dist/github-copilot/models.js +90 -90
  438. package/dist/github-copilot/openai-compatible-error.js +1 -1
  439. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  440. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  441. package/dist/github-copilot/responses/openai-error.js +1 -1
  442. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  443. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  444. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  445. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  446. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  447. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  448. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  449. package/dist/id/id.js +1 -1
  450. package/dist/image/photon.js +2 -2
  451. package/dist/image.js +6 -6
  452. package/dist/instance/service.js +5 -5
  453. package/dist/instance.js +355 -355
  454. package/dist/instruction-discovery.js +80 -80
  455. package/dist/instructions/builtins.js +84 -84
  456. package/dist/instructions/index.js +3 -3
  457. package/dist/integration/connection.js +3 -3
  458. package/dist/integration.js +83 -83
  459. package/dist/job.js +76 -76
  460. package/dist/kv/sql.js +2 -2
  461. package/dist/kv.js +72 -72
  462. package/dist/location-activity.js +131 -131
  463. package/dist/location-mutation.js +103 -103
  464. package/dist/location-service-map.js +85 -85
  465. package/dist/location-services.js +352 -352
  466. package/dist/location.js +86 -86
  467. package/dist/mcp/client.js +90 -90
  468. package/dist/mcp/index.js +103 -103
  469. package/dist/mcp/instructions.js +120 -120
  470. package/dist/mcp/oauth.js +77 -77
  471. package/dist/mcp/stdio.js +89 -89
  472. package/dist/mime.js +1 -1
  473. package/dist/modal/models.js +90 -90
  474. package/dist/model-resolver.js +97 -97
  475. package/dist/model.js +95 -95
  476. package/dist/models-dev.js +106 -106
  477. package/dist/oauth/page.js +1 -1
  478. package/dist/permission/saved.js +77 -77
  479. package/dist/permission/sql.js +5 -5
  480. package/dist/permission.js +108 -108
  481. package/dist/persistent-pty/binary.bun.js +1 -1
  482. package/dist/persistent-pty/daemon.js +1 -1
  483. package/dist/persistent-pty/index.js +81 -81
  484. package/dist/persistent-pty/pty-binding.js +1 -1
  485. package/dist/persistent-pty.js +74 -74
  486. package/dist/plugin/agent.js +101 -101
  487. package/dist/plugin/command.js +98 -98
  488. package/dist/plugin/hooks.js +5 -5
  489. package/dist/plugin/host.js +216 -216
  490. package/dist/plugin/identity.js +1 -1
  491. package/dist/plugin/instance.js +1 -1
  492. package/dist/plugin/internal.js +327 -327
  493. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  494. package/dist/plugin/models-dev.js +95 -95
  495. package/dist/plugin/module.js +7 -7
  496. package/dist/plugin/optimize.js +2 -2
  497. package/dist/plugin/plan.js +99 -99
  498. package/dist/plugin/promise.js +1 -1
  499. package/dist/plugin/provider/amazon-bedrock.js +89 -89
  500. package/dist/plugin/provider/azure.js +121 -121
  501. package/dist/plugin/provider/cerebras.js +1 -1
  502. package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
  503. package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
  504. package/dist/plugin/provider/cohere.js +2 -2
  505. package/dist/plugin/provider/configured.js +118 -118
  506. package/dist/plugin/provider/digitalocean.js +92 -92
  507. package/dist/plugin/provider/dynamic.js +2 -2
  508. package/dist/plugin/provider/factory.js +1 -1
  509. package/dist/plugin/provider/gateway.js +2 -2
  510. package/dist/plugin/provider/github-copilot.js +92 -92
  511. package/dist/plugin/provider/gitlab.js +90 -90
  512. package/dist/plugin/provider/google-vertex.js +89 -89
  513. package/dist/plugin/provider/kilo.js +1 -1
  514. package/dist/plugin/provider/llmgateway.js +76 -76
  515. package/dist/plugin/provider/lmstudio.js +119 -119
  516. package/dist/plugin/provider/modal.js +91 -91
  517. package/dist/plugin/provider/nvidia.js +1 -1
  518. package/dist/plugin/provider/ollama.js +121 -121
  519. package/dist/plugin/provider/openai.js +91 -91
  520. package/dist/plugin/provider/opencode.js +92 -92
  521. package/dist/plugin/provider/openrouter.js +90 -90
  522. package/dist/plugin/provider/perplexity.js +2 -2
  523. package/dist/plugin/provider/poe.js +77 -77
  524. package/dist/plugin/provider/prompt-cache-key.js +89 -89
  525. package/dist/plugin/provider/sap-ai-core.js +90 -90
  526. package/dist/plugin/provider/sdk-factory.js +1 -1
  527. package/dist/plugin/provider/snowflake-cortex.js +121 -121
  528. package/dist/plugin/provider/venice.js +2 -2
  529. package/dist/plugin/provider/vercel.js +89 -89
  530. package/dist/plugin/provider/vllm.js +121 -121
  531. package/dist/plugin/provider/xai.js +90 -90
  532. package/dist/plugin/provider/zenmux.js +1 -1
  533. package/dist/plugin/provider.js +158 -158
  534. package/dist/plugin/sdk.js +73 -73
  535. package/dist/plugin/service.js +3 -3
  536. package/dist/plugin/skill.js +138 -138
  537. package/dist/plugin/source-directory.js +1 -1
  538. package/dist/plugin/supervisor.js +342 -342
  539. package/dist/plugin/update.js +6 -6
  540. package/dist/plugin/vcs/git.js +85 -85
  541. package/dist/plugin/vcs/hg.js +85 -85
  542. package/dist/plugin/warming.js +120 -120
  543. package/dist/plugin/websearch/exa.js +7 -7
  544. package/dist/plugin/websearch/firecrawl.js +8 -8
  545. package/dist/plugin/websearch/index.js +9 -9
  546. package/dist/plugin/websearch/mcp.js +2 -2
  547. package/dist/plugin/websearch/parallel.js +8 -8
  548. package/dist/plugin/websearch/tavily.js +6 -6
  549. package/dist/plugin/websearch/tinyfish.js +8 -8
  550. package/dist/plugin.js +225 -225
  551. package/dist/project/schema.js +8 -8
  552. package/dist/project/sql.js +4 -4
  553. package/dist/project.js +89 -89
  554. package/dist/provider.js +96 -96
  555. package/dist/pty/protocol.js +1 -1
  556. package/dist/pty/schema.js +3 -3
  557. package/dist/pty/ticket.js +1 -1
  558. package/dist/pty.js +97 -97
  559. package/dist/reference/instructions.js +88 -88
  560. package/dist/reference.js +90 -90
  561. package/dist/repository-cache.js +80 -80
  562. package/dist/repository.js +3 -3
  563. package/dist/ripgrep/binary.js +2 -2
  564. package/dist/ripgrep.js +96 -96
  565. package/dist/rpc.js +85 -85
  566. package/dist/schema.js +1 -1
  567. package/dist/session/command.js +73 -73
  568. package/dist/session/compaction.js +130 -130
  569. package/dist/session/context.js +148 -148
  570. package/dist/session/diff.js +87 -87
  571. package/dist/session/environment.js +5 -5
  572. package/dist/session/error.js +5 -5
  573. package/dist/session/event.js +1 -1
  574. package/dist/session/execution/restart.js +219 -219
  575. package/dist/session/execution.js +127 -127
  576. package/dist/session/generate.js +149 -149
  577. package/dist/session/history.js +15 -15
  578. package/dist/session/inbox.js +89 -89
  579. package/dist/session/info.js +3 -3
  580. package/dist/session/instruction-entry.js +78 -78
  581. package/dist/session/instruction-state.js +8 -8
  582. package/dist/session/instructions.js +96 -96
  583. package/dist/session/message-updater.js +4 -4
  584. package/dist/session/message.js +1 -1
  585. package/dist/session/model-request.js +117 -117
  586. package/dist/session/model-transport.js +9 -9
  587. package/dist/session/move.js +129 -129
  588. package/dist/session/projector.js +85 -85
  589. package/dist/session/prompt.js +104 -104
  590. package/dist/session/provider-context.js +3 -3
  591. package/dist/session/revert.js +89 -89
  592. package/dist/session/run-coordinator.js +3 -3
  593. package/dist/session/runner/index.js +3 -3
  594. package/dist/session/runner/llm.js +228 -228
  595. package/dist/session/runner/max-steps.js +1 -1
  596. package/dist/session/runner/model.js +97 -97
  597. package/dist/session/runner/publish-llm-event.js +3 -3
  598. package/dist/session/runner/retry.js +113 -113
  599. package/dist/session/runner/step.js +124 -124
  600. package/dist/session/runner/to-llm-message.js +2 -2
  601. package/dist/session/schema.js +3 -3
  602. package/dist/session/session.js +169 -169
  603. package/dist/session/shell.js +137 -137
  604. package/dist/session/skill.js +102 -102
  605. package/dist/session/sql.js +5 -5
  606. package/dist/session/stats.js +72 -72
  607. package/dist/session/store.js +84 -84
  608. package/dist/session/subagent-completion.js +1 -1
  609. package/dist/session/subagent-job.js +208 -208
  610. package/dist/session/system-prompt.js +1 -1
  611. package/dist/session/title.js +152 -152
  612. package/dist/session/to-session-error.js +110 -110
  613. package/dist/session/transfer.js +213 -213
  614. package/dist/session/usage.js +1 -1
  615. package/dist/session.js +214 -214
  616. package/dist/shell/parse.js +6 -6
  617. package/dist/shell/result.js +1 -1
  618. package/dist/shell/scan.js +1 -1
  619. package/dist/shell/select.js +11 -11
  620. package/dist/shell.js +137 -137
  621. package/dist/skill/discovery.js +6 -6
  622. package/dist/skill/instructions.js +106 -106
  623. package/dist/skill.js +111 -111
  624. package/dist/snapshot.js +92 -92
  625. package/dist/state.js +1 -1
  626. package/dist/tool/html-markdown.js +1 -1
  627. package/dist/tool/http-body.js +1 -1
  628. package/dist/tool/mcp.js +125 -125
  629. package/dist/tool/plugin/edit.js +119 -119
  630. package/dist/tool/plugin/file-diff.js +1 -1
  631. package/dist/tool/plugin/glob.js +123 -123
  632. package/dist/tool/plugin/grep.js +117 -117
  633. package/dist/tool/plugin/opencode.js +3 -3
  634. package/dist/tool/plugin/patch.js +121 -121
  635. package/dist/tool/plugin/question.js +102 -102
  636. package/dist/tool/plugin/read.js +118 -118
  637. package/dist/tool/plugin/shell.js +215 -215
  638. package/dist/tool/plugin/skill.js +110 -110
  639. package/dist/tool/plugin/subagent.js +217 -217
  640. package/dist/tool/plugin/webfetch.js +109 -109
  641. package/dist/tool/plugin/websearch.js +111 -111
  642. package/dist/tool/plugin/write.js +119 -119
  643. package/dist/tool/read-filesystem.js +99 -99
  644. package/dist/tool/runtime.js +1 -1
  645. package/dist/tool-output.js +6 -6
  646. package/dist/tool.js +15 -15
  647. package/dist/util/error-summary.js +1 -1
  648. package/dist/util/error.js +1 -1
  649. package/dist/util/git-executable.js +2 -2
  650. package/dist/util/iife.js +1 -1
  651. package/dist/util/lazy.js +1 -1
  652. package/dist/util/slug.js +1 -1
  653. package/dist/util/token.js +1 -1
  654. package/dist/util/which.js +1 -1
  655. package/dist/util/wildcard.js +1 -1
  656. package/dist/v1/config/agent.js +7 -7
  657. package/dist/v1/config/attachment.js +2 -2
  658. package/dist/v1/config/command.js +3 -3
  659. package/dist/v1/config/config.js +16 -16
  660. package/dist/v1/config/error.js +4 -4
  661. package/dist/v1/config/formatter.js +7 -7
  662. package/dist/v1/config/layout.js +1 -1
  663. package/dist/v1/config/lsp.js +5 -5
  664. package/dist/v1/config/mcp.js +4 -4
  665. package/dist/v1/config/migrate.js +91 -91
  666. package/dist/v1/config/permission.js +7 -7
  667. package/dist/v1/config/plugin.js +3 -3
  668. package/dist/v1/config/provider-options.js +1 -1
  669. package/dist/v1/config/provider.js +4 -4
  670. package/dist/v1/config/server.js +2 -2
  671. package/dist/v1/config/skills.js +3 -3
  672. package/dist/v1/permission.js +1 -1
  673. package/dist/variant.js +92 -92
  674. package/dist/vcs/patch.js +1 -1
  675. package/dist/vcs.js +88 -88
  676. package/dist/websearch.js +79 -79
  677. package/dist/wellknown/plugin.js +75 -75
  678. package/dist/wellknown.js +80 -80
  679. package/dist/workspace/driver.js +7 -7
  680. package/dist/workspace/sql.js +1 -1
  681. package/dist/workspace.js +77 -77
  682. package/dist/worktree/directory.js +2 -2
  683. package/dist/worktree/git.js +8 -8
  684. package/dist/worktree/sql.js +5 -5
  685. package/dist/worktree/strategies.js +88 -88
  686. package/dist/worktree.js +97 -97
  687. package/package.json +8 -8
  688. package/dist/chunks/location-service-map-24yjxnnb.js +0 -247
  689. package/dist/chunks/location-service-map-68wamef9.js +0 -26
  690. package/dist/chunks/location-service-map-6kdq0pjd.js +0 -4
  691. package/dist/chunks/location-service-map-rap9a73h.js +0 -18
  692. package/dist/chunks/location-service-map-vtcpxyf1.js +0 -478
  693. /package/dist/chunks/{location-service-map-0qkdqm5v.js → credential-0qkdqm5v.js} +0 -0
  694. /package/dist/chunks/{location-service-map-0zkw76rk.js → credential-0zkw76rk.js} +0 -0
  695. /package/dist/chunks/{location-service-map-17cy0kzp.js → credential-17cy0kzp.js} +0 -0
  696. /package/dist/chunks/{location-service-map-1cnp2v09.js → credential-1cnp2v09.js} +0 -0
  697. /package/dist/chunks/{location-service-map-1kg9ymc8.js → credential-1kg9ymc8.js} +0 -0
  698. /package/dist/chunks/{location-service-map-24dcb14g.js → credential-24dcb14g.js} +0 -0
  699. /package/dist/chunks/{location-service-map-2710q6r3.js → credential-2710q6r3.js} +0 -0
  700. /package/dist/chunks/{location-service-map-2axfhc9x.js → credential-2axfhc9x.js} +0 -0
  701. /package/dist/chunks/{location-service-map-2c3vjs8z.js → credential-2c3vjs8z.js} +0 -0
  702. /package/dist/chunks/{location-service-map-359p4xyc.js → credential-359p4xyc.js} +0 -0
  703. /package/dist/chunks/{location-service-map-3asan66x.js → credential-3asan66x.js} +0 -0
  704. /package/dist/chunks/{location-service-map-3v8g72cx.js → credential-3v8g72cx.js} +0 -0
  705. /package/dist/chunks/{location-service-map-3w5fmr99.js → credential-3w5fmr99.js} +0 -0
  706. /package/dist/chunks/{location-service-map-3wcehsnq.js → credential-3wcehsnq.js} +0 -0
  707. /package/dist/chunks/{location-service-map-43n2bw4t.js → credential-43n2bw4t.js} +0 -0
  708. /package/dist/chunks/{location-service-map-4knz6hnm.js → credential-4knz6hnm.js} +0 -0
  709. /package/dist/chunks/{location-service-map-4vcrnpx2.js → credential-4vcrnpx2.js} +0 -0
  710. /package/dist/chunks/{location-service-map-4y7fprxs.js → credential-4y7fprxs.js} +0 -0
  711. /package/dist/chunks/{location-service-map-53557ph1.js → credential-53557ph1.js} +0 -0
  712. /package/dist/chunks/{location-service-map-550bvhaj.js → credential-550bvhaj.js} +0 -0
  713. /package/dist/chunks/{location-service-map-6prwharc.js → credential-6prwharc.js} +0 -0
  714. /package/dist/chunks/{location-service-map-7akdwqpd.js → credential-7akdwqpd.js} +0 -0
  715. /package/dist/chunks/{location-service-map-7m9af43g.js → credential-7m9af43g.js} +0 -0
  716. /package/dist/chunks/{location-service-map-822emrt2.js → credential-822emrt2.js} +0 -0
  717. /package/dist/chunks/{location-service-map-88xbtdfr.js → credential-88xbtdfr.js} +0 -0
  718. /package/dist/chunks/{location-service-map-8n3pysct.js → credential-8n3pysct.js} +0 -0
  719. /package/dist/chunks/{location-service-map-922hggd3.js → credential-922hggd3.js} +0 -0
  720. /package/dist/chunks/{location-service-map-9a4afbnw.js → credential-9a4afbnw.js} +0 -0
  721. /package/dist/chunks/{location-service-map-9rqn6x4v.js → credential-9rqn6x4v.js} +0 -0
  722. /package/dist/chunks/{location-service-map-a6k6eb26.js → credential-a6k6eb26.js} +0 -0
  723. /package/dist/chunks/{location-service-map-af5trqkr.js → credential-af5trqkr.js} +0 -0
  724. /package/dist/chunks/{location-service-map-afrmfg78.js → credential-afrmfg78.js} +0 -0
  725. /package/dist/chunks/{location-service-map-aqzs7mqg.js → credential-aqzs7mqg.js} +0 -0
  726. /package/dist/chunks/{location-service-map-atq7p7m5.js → credential-atq7p7m5.js} +0 -0
  727. /package/dist/chunks/{location-service-map-bkyjaxrp.js → credential-bkyjaxrp.js} +0 -0
  728. /package/dist/chunks/{location-service-map-bmr6ed5q.js → credential-bmr6ed5q.js} +0 -0
  729. /package/dist/chunks/{location-service-map-cf4snx6d.js → credential-cf4snx6d.js} +0 -0
  730. /package/dist/chunks/{location-service-map-cvy3z8tj.js → credential-cvy3z8tj.js} +0 -0
  731. /package/dist/chunks/{location-service-map-d9fn303g.js → credential-d9fn303g.js} +0 -0
  732. /package/dist/chunks/{location-service-map-d9jj8t3e.js → credential-d9jj8t3e.js} +0 -0
  733. /package/dist/chunks/{location-service-map-dajrwvna.js → credential-dajrwvna.js} +0 -0
  734. /package/dist/chunks/{location-service-map-dap0rakb.js → credential-dap0rakb.js} +0 -0
  735. /package/dist/chunks/{location-service-map-df08tz66.js → credential-df08tz66.js} +0 -0
  736. /package/dist/chunks/{location-service-map-dy18nga0.js → credential-dy18nga0.js} +0 -0
  737. /package/dist/chunks/{location-service-map-e5kj55wp.js → credential-e5kj55wp.js} +0 -0
  738. /package/dist/chunks/{location-service-map-e73j6tqm.js → credential-e73j6tqm.js} +0 -0
  739. /package/dist/chunks/{location-service-map-ec1grn59.js → credential-ec1grn59.js} +0 -0
  740. /package/dist/chunks/{location-service-map-eh3zwz77.js → credential-eh3zwz77.js} +0 -0
  741. /package/dist/chunks/{location-service-map-emrn6kk6.js → credential-emrn6kk6.js} +0 -0
  742. /package/dist/chunks/{location-service-map-f0mxakyp.js → credential-f0mxakyp.js} +0 -0
  743. /package/dist/chunks/{location-service-map-f6n9ztr4.js → credential-f6n9ztr4.js} +0 -0
  744. /package/dist/chunks/{location-service-map-faypxj3z.js → credential-faypxj3z.js} +0 -0
  745. /package/dist/chunks/{location-service-map-fd410y7t.js → credential-fd410y7t.js} +0 -0
  746. /package/dist/chunks/{location-service-map-fxgpk5d8.js → credential-fxgpk5d8.js} +0 -0
  747. /package/dist/chunks/{location-service-map-g4wezp1m.js → credential-g4wezp1m.js} +0 -0
  748. /package/dist/chunks/{location-service-map-g86h250q.js → credential-g86h250q.js} +0 -0
  749. /package/dist/chunks/{location-service-map-gebd4c9n.js → credential-gebd4c9n.js} +0 -0
  750. /package/dist/chunks/{location-service-map-gftt206x.js → credential-gftt206x.js} +0 -0
  751. /package/dist/chunks/{location-service-map-hjbc5kem.js → credential-hjbc5kem.js} +0 -0
  752. /package/dist/chunks/{location-service-map-hk9envan.js → credential-hk9envan.js} +0 -0
  753. /package/dist/chunks/{location-service-map-j2ntwpah.js → credential-j2ntwpah.js} +0 -0
  754. /package/dist/chunks/{location-service-map-j5zkgpj8.js → credential-j5zkgpj8.js} +0 -0
  755. /package/dist/chunks/{location-service-map-jjkms2e6.js → credential-jjkms2e6.js} +0 -0
  756. /package/dist/chunks/{location-service-map-jr7sbwjy.js → credential-jr7sbwjy.js} +0 -0
  757. /package/dist/chunks/{location-service-map-jwfs4k6c.js → credential-jwfs4k6c.js} +0 -0
  758. /package/dist/chunks/{location-service-map-jzg6c2d5.js → credential-jzg6c2d5.js} +0 -0
  759. /package/dist/chunks/{location-service-map-mp448xyj.js → credential-mp448xyj.js} +0 -0
  760. /package/dist/chunks/{location-service-map-msx8hqn2.js → credential-msx8hqn2.js} +0 -0
  761. /package/dist/chunks/{location-service-map-n05xt0ee.js → credential-n05xt0ee.js} +0 -0
  762. /package/dist/chunks/{location-service-map-n3j8tn72.js → credential-n3j8tn72.js} +0 -0
  763. /package/dist/chunks/{location-service-map-njntx4h6.js → credential-njntx4h6.js} +0 -0
  764. /package/dist/chunks/{location-service-map-q3sfg36h.js → credential-q3sfg36h.js} +0 -0
  765. /package/dist/chunks/{location-service-map-q74kybfr.js → credential-q74kybfr.js} +0 -0
  766. /package/dist/chunks/{location-service-map-qaymkmh1.js → credential-qaymkmh1.js} +0 -0
  767. /package/dist/chunks/{location-service-map-qb87gjwd.js → credential-qb87gjwd.js} +0 -0
  768. /package/dist/chunks/{location-service-map-qfa1cgps.js → credential-qfa1cgps.js} +0 -0
  769. /package/dist/chunks/{location-service-map-qg3g05ea.js → credential-qg3g05ea.js} +0 -0
  770. /package/dist/chunks/{location-service-map-qrg20bc0.js → credential-qrg20bc0.js} +0 -0
  771. /package/dist/chunks/{location-service-map-rcb2kzg1.js → credential-rcb2kzg1.js} +0 -0
  772. /package/dist/chunks/{location-service-map-sdp7kfr6.js → credential-sdp7kfr6.js} +0 -0
  773. /package/dist/chunks/{location-service-map-sk3qaz4a.js → credential-sk3qaz4a.js} +0 -0
  774. /package/dist/chunks/{location-service-map-ssg3fenm.js → credential-ssg3fenm.js} +0 -0
  775. /package/dist/chunks/{location-service-map-twg0f83k.js → credential-twg0f83k.js} +0 -0
  776. /package/dist/chunks/{location-service-map-w803qqfp.js → credential-w803qqfp.js} +0 -0
  777. /package/dist/chunks/{location-service-map-wc3fc9cn.js → credential-wc3fc9cn.js} +0 -0
  778. /package/dist/chunks/{location-service-map-wer8tq1h.js → credential-wer8tq1h.js} +0 -0
  779. /package/dist/chunks/{location-service-map-wtztk69x.js → credential-wtztk69x.js} +0 -0
  780. /package/dist/chunks/{location-service-map-x0ckcb58.js → credential-x0ckcb58.js} +0 -0
  781. /package/dist/chunks/{location-service-map-x61499pn.js → credential-x61499pn.js} +0 -0
  782. /package/dist/chunks/{location-service-map-y44na4kk.js → credential-y44na4kk.js} +0 -0
  783. /package/dist/chunks/{location-service-map-y8cydn3q.js → credential-y8cydn3q.js} +0 -0
  784. /package/dist/chunks/{location-service-map-y8f7s663.js → credential-y8f7s663.js} +0 -0
  785. /package/dist/chunks/{location-service-map-ygaqb7jw.js → credential-ygaqb7jw.js} +0 -0
  786. /package/dist/chunks/{location-service-map-ym463w8f.js → credential-ym463w8f.js} +0 -0
  787. /package/dist/chunks/{location-service-map-z9919s4g.js → credential-z9919s4g.js} +0 -0
@@ -1,48 +1,39 @@
1
1
  import {
2
2
  Service81,
3
3
  node85
4
- } from "./location-service-map-4mymgcv0.js";
4
+ } from "./credential-yypw0vbp.js";
5
5
  import {
6
6
  shutdown2,
7
7
  create3
8
- } from "./location-service-map-rdw6cm16.js";
8
+ } from "./credential-rdw6cm16.js";
9
9
  import {
10
10
  ID14,
11
- Service75,
12
- node79,
13
- Event18
14
- } from "./location-service-map-x1xexjmd.js";
11
+ Service72,
12
+ node76,
13
+ Event17
14
+ } from "./credential-xecgr4w2.js";
15
15
  import {
16
16
  key2
17
- } from "./location-service-map-h6r3nrb9.js";
17
+ } from "./credential-4dgbcxzg.js";
18
18
  import {
19
- Service76,
20
- node80
21
- } from "./location-service-map-h0xtcnwj.js";
19
+ Service78,
20
+ node82
21
+ } from "./credential-ze0v8k2q.js";
22
22
  import {
23
23
  __export
24
- } from "./location-service-map-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";
24
+ } from "./credential-9rqn6x4v.js";
34
25
 
35
26
  // src/provider.ts
36
27
  var exports_provider3 = {};
37
28
  __export(exports_provider3, {
38
29
  AISDK_PREFIX: () => AISDK_PREFIX2,
39
- Event: () => Event17,
30
+ Event: () => Event16,
40
31
  ID: () => ID13,
41
- Info: () => Info27,
32
+ Info: () => Info26,
42
33
  LoadError: () => LoadError3,
43
34
  Provider: () => exports_provider3,
44
35
  Request: () => Request3,
45
- Service: () => Service74,
36
+ Service: () => Service71,
46
37
  Settings: () => Settings2,
47
38
  aisdk: () => aisdk2,
48
39
  isAISDK: () => isAISDK2,
@@ -50,10 +41,10 @@ __export(exports_provider3, {
50
41
  mergeHeaders: () => mergeHeaders2,
51
42
  mergeOverlay: () => mergeOverlay2,
52
43
  nativeSettings: () => nativeSettings2,
53
- node: () => node78,
44
+ node: () => node75,
54
45
  packageName: () => packageName2
55
46
  });
56
- import { Context, Effect, Layer, Schema, Stream, Struct } from "effect";
47
+ import { Context, Effect as Effect2, Layer, Schema as Schema2, Stream, Struct as Struct2 } from "effect";
57
48
  import { Provider } from "@opencode/schema/provider";
58
49
  import { Model } from "@opencode/schema/model";
59
50
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -61,7 +52,254 @@ import { isRecord } from "@opencode/ai/utils/record";
61
52
  import { importModule, resolveModule } from "@opencode/util/runtime-import";
62
53
  import { Credential } from "@opencode/schema/credential";
63
54
  import { freeze } from "immer";
64
- import { Event as Event17 } from "@opencode/schema/provider";
55
+
56
+ // src/aisdk-native.ts
57
+ var exports_aisdk_native = {};
58
+ __export(exports_aisdk_native, {
59
+ AISDKNative: () => exports_aisdk_native,
60
+ native: () => native2,
61
+ rewrite: () => rewrite2
62
+ });
63
+ import { Effect, Option, Schema, Struct } from "effect";
64
+ function rewrite2(target, input) {
65
+ if (input.specifier === undefined)
66
+ return;
67
+ const plain = resolve(input.specifier, input);
68
+ if (!plain)
69
+ return;
70
+ const settings = decode(target.settings ?? {});
71
+ const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
72
+ const translated = options(replacement, input.modelID, settings);
73
+ if (target.package !== undefined || replacement !== input.specifier)
74
+ target.package = replacement;
75
+ target.settings = target.settings === undefined ? undefined : {
76
+ ...translated.settings,
77
+ ...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
78
+ };
79
+ target.headers = mergeHeaders2(translated.headers, target.headers);
80
+ target.body = mergeOverlay2(translated.body, target.body);
81
+ target.variants = target.variants?.map((variant) => {
82
+ const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
83
+ const headers = mergeHeaders2(overlay.headers, variant.headers);
84
+ const body = mergeOverlay2(overlay.body, variant.body);
85
+ return {
86
+ id: variant.id,
87
+ ...variant.settings === undefined ? {} : { settings: overlay.settings },
88
+ ...headers === undefined ? {} : { headers },
89
+ ...body === undefined ? {} : { body }
90
+ };
91
+ });
92
+ }
93
+ var PACKAGES = {
94
+ "@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
95
+ "@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
96
+ "@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
97
+ "@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
98
+ "@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
99
+ "@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
100
+ "@ai-sdk/google": "@opencode/ai/providers/google",
101
+ "@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
102
+ "@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
103
+ "@ai-sdk/groq": "@opencode/ai/providers/groq",
104
+ "@ai-sdk/mistral": "@opencode/ai/providers/mistral",
105
+ "@ai-sdk/openai": "@opencode/ai/providers/openai",
106
+ "@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
107
+ "@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
108
+ "@ai-sdk/xai": "@opencode/ai/providers/xai",
109
+ "@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
110
+ "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
111
+ };
112
+ var protocols = (name) => ({
113
+ "@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
114
+ "@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
115
+ "@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
116
+ });
117
+ var HOSTS = {
118
+ alibaba: protocols("alibaba"),
119
+ "alibaba-cn": protocols("alibaba"),
120
+ "alibaba-coding-plan": protocols("alibaba"),
121
+ "alibaba-coding-plan-cn": protocols("alibaba"),
122
+ "alibaba-token-plan": protocols("alibaba"),
123
+ "alibaba-token-plan-cn": protocols("alibaba"),
124
+ baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
125
+ "cloudflare-ai-gateway": {
126
+ "@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
127
+ "@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
128
+ "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
129
+ "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
130
+ },
131
+ "cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
132
+ deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
133
+ "fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
134
+ "google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
135
+ "kimi-for-coding": protocols("moonshot"),
136
+ meta: protocols("meta"),
137
+ minimax: protocols("minimax"),
138
+ "minimax-cn": protocols("minimax"),
139
+ "minimax-coding-plan": protocols("minimax"),
140
+ "minimax-cn-coding-plan": protocols("minimax"),
141
+ moonshotai: protocols("moonshot"),
142
+ "moonshotai-cn": protocols("moonshot"),
143
+ zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
144
+ "zai-coding-plan": protocols("zai-coding-plan"),
145
+ zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
146
+ "zhipuai-coding-plan": protocols("zai-coding-plan")
147
+ };
148
+ var NATIVE = new Set([
149
+ ...Object.values(PACKAGES),
150
+ ...Object.values(HOSTS).flatMap((host) => Object.values(host)),
151
+ "@opencode/ai/providers/azure/chat",
152
+ "@opencode/ai/providers/amazon-bedrock/mantle",
153
+ "@opencode/ai/providers/amazon-bedrock/mantle/chat",
154
+ "@opencode/ai/providers/amazon-bedrock/mantle/responses"
155
+ ]);
156
+ function native2(npm, context) {
157
+ const host = HOSTS[context.providerID]?.[npm];
158
+ if (host)
159
+ return host;
160
+ if (npm === "@ai-sdk/amazon-bedrock/mantle")
161
+ return mantle(context.modelID);
162
+ if (npm === "@ai-sdk/azure" && context.settings?.useCompletionUrls === true)
163
+ return "@opencode/ai/providers/azure/chat";
164
+ return PACKAGES[npm];
165
+ }
166
+ var mantle = (modelID) => {
167
+ if (modelID === undefined)
168
+ return "@opencode/ai/providers/amazon-bedrock/mantle";
169
+ return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
170
+ };
171
+ function resolve(specifier, context) {
172
+ const npm = packageName2(specifier);
173
+ if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
174
+ return native2(npm, context);
175
+ if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
176
+ return mantle(context.modelID);
177
+ if (npm === "@opencode/ai/providers/azure/responses" && context.settings?.useCompletionUrls === true)
178
+ return "@opencode/ai/providers/azure/chat";
179
+ return NATIVE.has(npm) ? npm : undefined;
180
+ }
181
+ function options(replacement, modelID, settings) {
182
+ const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
183
+ const kept = Struct.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
184
+ return {
185
+ settings: replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
186
+ ...settings.headers === undefined ? {} : { headers: settings.headers },
187
+ ...settings.extraBody === undefined ? {} : { body: settings.extraBody },
188
+ ...converse ? bedrockRequest(modelID, settings) : {},
189
+ ...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
190
+ };
191
+ }
192
+ var BEDROCK_KEYS = [
193
+ "bearerToken",
194
+ "endpoint",
195
+ "credentials",
196
+ "credentialProvider",
197
+ "accessKeyId",
198
+ "secretAccessKey",
199
+ "sessionToken"
200
+ ];
201
+ var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
202
+ function bedrockSettings(settings, converse) {
203
+ const region = settings.region ?? settings.credentials?.region;
204
+ const credentials = settings.credentials ?? settings;
205
+ const baseURL = settings.baseURL ?? settings.endpoint;
206
+ return {
207
+ ...Struct.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
208
+ ...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
209
+ ...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
210
+ ...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
211
+ credentials: {
212
+ ...region === undefined ? {} : { region },
213
+ accessKeyId: credentials.accessKeyId,
214
+ secretAccessKey: credentials.secretAccessKey,
215
+ ...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
216
+ }
217
+ }
218
+ };
219
+ }
220
+ function bedrockRequest(modelID, settings) {
221
+ const additional = settings.additionalModelRequestFields ?? {};
222
+ const reasoning = settings.reasoningConfig;
223
+ const anthropic = modelID?.includes("anthropic") ?? false;
224
+ const openai = modelID?.includes("openai.") ?? false;
225
+ const harmony = modelID?.includes("openai.gpt-oss") ?? false;
226
+ const effort = reasoning?.maxReasoningEffort;
227
+ const type = reasoning?.type;
228
+ const budget = reasoning?.budgetTokens;
229
+ const display = reasoning?.display;
230
+ const betas = settings.anthropicBeta ?? [];
231
+ const fields = mergeOverlay2(additional, {
232
+ ...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
233
+ ...anthropic && type === "enabled" && budget !== undefined ? { thinking: { type: "enabled", budget_tokens: budget } } : {},
234
+ ...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
235
+ ...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
236
+ ...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
237
+ ...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
238
+ ...!anthropic && !openai && effort !== undefined ? {
239
+ reasoningConfig: {
240
+ ...type === undefined || type === "adaptive" ? {} : { type },
241
+ ...budget === undefined ? {} : { budgetTokens: budget },
242
+ maxReasoningEffort: effort
243
+ }
244
+ } : {}
245
+ });
246
+ const body = {
247
+ ...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
248
+ ...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
249
+ };
250
+ return Object.keys(body).length === 0 ? {} : { body };
251
+ }
252
+ var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
253
+ function openRouterRequest(settings) {
254
+ const headers = mergeHeaders2({
255
+ ...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
256
+ ...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
257
+ ...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
258
+ }, settings.headers) ?? {};
259
+ return Object.keys(headers).length === 0 ? {} : { headers };
260
+ }
261
+ var lenient = (schema) => Schema.optional(Schema.UndefinedOr(schema).pipe(Schema.catchDecoding(() => Effect.succeed(Option.some(undefined)))));
262
+ var Credentials = Schema.Struct({
263
+ accessKeyId: Schema.String,
264
+ secretAccessKey: Schema.String,
265
+ sessionToken: lenient(Schema.String),
266
+ region: lenient(Schema.String)
267
+ });
268
+ var Legacy = Schema.StructWithRest(Schema.Struct({
269
+ apiKey: lenient(Schema.String),
270
+ baseURL: lenient(Schema.String),
271
+ headers: lenient(Schema.Record(Schema.String, Schema.String)),
272
+ extraBody: lenient(Schema.Record(Schema.String, Schema.Unknown)),
273
+ useCompletionUrls: lenient(Schema.Boolean),
274
+ auth: lenient(Schema.Literals(["bearer", "sigv4"])),
275
+ bearerToken: lenient(Schema.String),
276
+ endpoint: lenient(Schema.String),
277
+ region: lenient(Schema.String),
278
+ credentials: lenient(Credentials),
279
+ accessKeyId: lenient(Schema.String),
280
+ secretAccessKey: lenient(Schema.String),
281
+ sessionToken: lenient(Schema.String),
282
+ anthropicBeta: lenient(Schema.Array(Schema.String)),
283
+ serviceTier: lenient(Schema.String),
284
+ reasoningConfig: lenient(Schema.Struct({
285
+ type: lenient(Schema.String),
286
+ display: lenient(Schema.String),
287
+ maxReasoningEffort: lenient(Schema.String),
288
+ budgetTokens: lenient(Schema.Number)
289
+ })),
290
+ additionalModelRequestFields: lenient(Schema.StructWithRest(Schema.Struct({
291
+ anthropic_beta: lenient(Schema.Array(Schema.String)),
292
+ output_config: lenient(Schema.Record(Schema.String, Schema.Unknown)),
293
+ reasoning: lenient(Schema.Record(Schema.String, Schema.Unknown))
294
+ }), [Schema.Record(Schema.String, Schema.Unknown)])),
295
+ appName: lenient(Schema.String),
296
+ appUrl: lenient(Schema.String),
297
+ api_keys: lenient(Schema.Record(Schema.String, Schema.String))
298
+ }), [Schema.Record(Schema.String, Schema.Unknown)]);
299
+ var decode = Schema.decodeUnknownSync(Legacy);
300
+
301
+ // src/provider.ts
302
+ import { Event as Event16 } from "@opencode/schema/provider";
65
303
  var ID13 = Provider.ID;
66
304
  var AISDK_PREFIX2 = "aisdk:";
67
305
  var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
@@ -73,12 +311,12 @@ function packageName2(value) {
73
311
  return value;
74
312
  return value.slice(AISDK_PREFIX2.length);
75
313
  }
76
- var JsonRecord = Schema.Record(Schema.String, Schema.Json);
77
- var decodeJsonRecord = Schema.decodeUnknownSync(JsonRecord);
314
+ var JsonRecord = Schema2.Record(Schema2.String, Schema2.Json);
315
+ var decodeJsonRecord = Schema2.decodeUnknownSync(JsonRecord);
78
316
 
79
- class LoadError3 extends Schema.TaggedError()("Provider.LoadError", {
80
- package: Schema.String,
81
- cause: Schema.Defect()
317
+ class LoadError3 extends Schema2.TaggedError()("Provider.LoadError", {
318
+ package: Schema2.String,
319
+ cause: Schema2.Defect()
82
320
  }) {
83
321
  }
84
322
  var packages = new Map;
@@ -139,12 +377,12 @@ var builtins = new Map([
139
377
  () => import("@opencode/ai/providers/zai-coding-plan/responses")
140
378
  ]
141
379
  ]);
142
- var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
380
+ var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
143
381
  const specifier = packageName2(input);
144
382
  const builtin = builtins.get(specifier);
145
383
  if (builtin)
146
384
  return yield* importPackage(specifier, specifier, builtin);
147
- const resolved = yield* Effect.sync(() => {
385
+ const resolved = yield* Effect2.sync(() => {
148
386
  if (specifier.startsWith("file://") || specifier.startsWith("@opencode/ai/"))
149
387
  return specifier;
150
388
  try {
@@ -163,8 +401,8 @@ var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
163
401
  }
164
402
  const parts = specifier.split("/");
165
403
  const root = specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0] ?? specifier;
166
- const installed = yield* npm.add(root).pipe(Effect.mapError((cause) => new LoadError3({ package: specifier, cause })));
167
- const entrypoint = yield* Effect.try({
404
+ const installed = yield* npm.add(root).pipe(Effect2.mapError((cause) => new LoadError3({ package: specifier, cause })));
405
+ const entrypoint = yield* Effect2.try({
168
406
  try: () => resolveModule(specifier, installed.directory),
169
407
  catch: (cause) => new LoadError3({ package: specifier, cause })
170
408
  });
@@ -172,7 +410,7 @@ var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
172
410
  });
173
411
  var TRANSPORT_KEYS = ["chunkTimeout", "fetch", "timeout"];
174
412
  function nativeSettings2(settings) {
175
- return Struct.omit(settings, TRANSPORT_KEYS);
413
+ return Struct2.omit(settings, TRANSPORT_KEYS);
176
414
  }
177
415
  function mergeOverlay2(base, overlay) {
178
416
  if (base === undefined)
@@ -201,9 +439,9 @@ function mergeHeaders2(base, overlay) {
201
439
  }
202
440
  var Request3 = Provider.Request;
203
441
  var Settings2 = Provider.Settings;
204
- var Info27 = Provider.Info;
442
+ var Info26 = Provider.Info;
205
443
 
206
- class Service74 extends Context.Service()("@opencode/Provider") {
444
+ class Service71 extends Context.Service()("@opencode/Provider") {
207
445
  }
208
446
  var definitions = new WeakMap;
209
447
  function index(models) {
@@ -214,10 +452,10 @@ function index(models) {
214
452
  definitions.set(models, result);
215
453
  return result;
216
454
  }
217
- var layer = Layer.effect(Service74, Effect.gen(function* () {
455
+ var layer = Layer.effect(Service71, Effect2.gen(function* () {
218
456
  const bus = yield* Service81;
219
- const integrations = yield* Service75;
220
- const location = yield* Service76;
457
+ const integrations = yield* Service72;
458
+ const location = yield* Service78;
221
459
  const state = create3({
222
460
  name: "provider",
223
461
  initial: () => new Map,
@@ -228,7 +466,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
228
466
  const current = records.get(id);
229
467
  if (current)
230
468
  return current;
231
- const added = { provider: Info27.empty(id), models: new Map };
469
+ const added = { provider: Info26.empty(id), models: new Map };
232
470
  records.set(id, added);
233
471
  maps.add(added.models);
234
472
  return added;
@@ -296,9 +534,9 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
296
534
  },
297
535
  notify: () => notify
298
536
  });
299
- yield* Effect.addFinalizer(() => shutdown2(state.reload()));
537
+ yield* Effect2.addFinalizer(() => shutdown2(state.reload()));
300
538
  let cached;
301
- const snapshot = Effect.fn("Provider.snapshot")(function* () {
539
+ const snapshot = Effect2.fn("Provider.snapshot")(function* () {
302
540
  while (true) {
303
541
  const revision = integrations.revision();
304
542
  const records = state.get();
@@ -327,7 +565,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
327
565
  }
328
566
  });
329
567
  let published;
330
- const notify = Effect.gen(function* () {
568
+ const notify = Effect2.gen(function* () {
331
569
  const value = yield* snapshot();
332
570
  if (value === published)
333
571
  return;
@@ -336,19 +574,19 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
336
574
  location: { directory: location.directory, workspaceID: location.workspaceID }
337
575
  });
338
576
  });
339
- yield* bus.subscribe([Event18.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
340
- return Service74.of({
577
+ yield* bus.subscribe([Event17.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect2.forkScoped({ startImmediately: true }));
578
+ return Service71.of({
341
579
  transform: state.transform,
342
580
  reload: state.reload,
343
- get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
344
- all: Effect.fn("Provider.all")(() => Effect.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
345
- available: Effect.fn("Provider.available")(() => snapshot().pipe(Effect.map((value) => value.providers))),
581
+ get: Effect2.fn("Provider.get")((id) => Effect2.sync(() => freeze(state.get().get(id)?.provider, true))),
582
+ all: Effect2.fn("Provider.all")(() => Effect2.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
583
+ available: Effect2.fn("Provider.available")(() => snapshot().pipe(Effect2.map((value) => value.providers))),
346
584
  snapshot
347
585
  });
348
586
  }));
349
- var node78 = makeLocationNode({ service: Service74, layer, deps: [node85, node79, node80] });
350
- var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
351
- const module = yield* Effect.tryPromise({
587
+ var node75 = makeLocationNode({ service: Service71, layer, deps: [node85, node76, node82] });
588
+ var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
589
+ const module = yield* Effect2.tryPromise({
352
590
  try: () => {
353
591
  const existing = packages.get(entrypoint);
354
592
  if (existing)
@@ -368,242 +606,4 @@ var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, en
368
606
  return module;
369
607
  });
370
608
 
371
- // src/aisdk-native.ts
372
- function rewrite2(target, input) {
373
- if (input.specifier === undefined)
374
- return;
375
- const plain = resolve(input.specifier, input);
376
- if (!plain)
377
- return;
378
- const settings = decode(target.settings ?? {});
379
- const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
380
- const translated = options(replacement, input.modelID, settings);
381
- if (target.package !== undefined || replacement !== input.specifier)
382
- target.package = replacement;
383
- target.settings = target.settings === undefined ? undefined : {
384
- ...translated.settings,
385
- ...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
386
- };
387
- target.headers = mergeHeaders2(translated.headers, target.headers);
388
- target.body = mergeOverlay2(translated.body, target.body);
389
- target.variants = target.variants?.map((variant) => {
390
- const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
391
- const headers = mergeHeaders2(overlay.headers, variant.headers);
392
- const body = mergeOverlay2(overlay.body, variant.body);
393
- return {
394
- id: variant.id,
395
- ...variant.settings === undefined ? {} : { settings: overlay.settings },
396
- ...headers === undefined ? {} : { headers },
397
- ...body === undefined ? {} : { body }
398
- };
399
- });
400
- }
401
- var PACKAGES = {
402
- "@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
403
- "@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
404
- "@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
405
- "@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
406
- "@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
407
- "@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
408
- "@ai-sdk/google": "@opencode/ai/providers/google",
409
- "@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
410
- "@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
411
- "@ai-sdk/groq": "@opencode/ai/providers/groq",
412
- "@ai-sdk/mistral": "@opencode/ai/providers/mistral",
413
- "@ai-sdk/openai": "@opencode/ai/providers/openai",
414
- "@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
415
- "@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
416
- "@ai-sdk/xai": "@opencode/ai/providers/xai",
417
- "@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
418
- "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
419
- };
420
- var protocols = (name) => ({
421
- "@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
422
- "@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
423
- "@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
424
- });
425
- var HOSTS = {
426
- alibaba: protocols("alibaba"),
427
- "alibaba-cn": protocols("alibaba"),
428
- "alibaba-coding-plan": protocols("alibaba"),
429
- "alibaba-coding-plan-cn": protocols("alibaba"),
430
- "alibaba-token-plan": protocols("alibaba"),
431
- "alibaba-token-plan-cn": protocols("alibaba"),
432
- baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
433
- "cloudflare-ai-gateway": {
434
- "@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
435
- "@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
436
- "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
437
- "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
438
- },
439
- "cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
440
- deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
441
- "fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
442
- "google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
443
- "kimi-for-coding": protocols("moonshot"),
444
- meta: protocols("meta"),
445
- minimax: protocols("minimax"),
446
- "minimax-cn": protocols("minimax"),
447
- "minimax-coding-plan": protocols("minimax"),
448
- "minimax-cn-coding-plan": protocols("minimax"),
449
- moonshotai: protocols("moonshot"),
450
- "moonshotai-cn": protocols("moonshot"),
451
- zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
452
- "zai-coding-plan": protocols("zai-coding-plan"),
453
- zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
454
- "zhipuai-coding-plan": protocols("zai-coding-plan")
455
- };
456
- var NATIVE = new Set([
457
- ...Object.values(PACKAGES),
458
- ...Object.values(HOSTS).flatMap((host) => Object.values(host)),
459
- "@opencode/ai/providers/azure/chat",
460
- "@opencode/ai/providers/amazon-bedrock/mantle",
461
- "@opencode/ai/providers/amazon-bedrock/mantle/chat",
462
- "@opencode/ai/providers/amazon-bedrock/mantle/responses"
463
- ]);
464
- function native2(npm, context) {
465
- const host = HOSTS[context.providerID]?.[npm];
466
- if (host)
467
- return host;
468
- if (npm === "@ai-sdk/amazon-bedrock/mantle")
469
- return mantle(context.modelID);
470
- if (npm === "@ai-sdk/azure" && context.settings?.useCompletionUrls === true)
471
- return "@opencode/ai/providers/azure/chat";
472
- return PACKAGES[npm];
473
- }
474
- var mantle = (modelID) => {
475
- if (modelID === undefined)
476
- return "@opencode/ai/providers/amazon-bedrock/mantle";
477
- return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
478
- };
479
- function resolve(specifier, context) {
480
- const npm = packageName2(specifier);
481
- if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
482
- return native2(npm, context);
483
- if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
484
- return mantle(context.modelID);
485
- if (npm === "@opencode/ai/providers/azure/responses" && context.settings?.useCompletionUrls === true)
486
- return "@opencode/ai/providers/azure/chat";
487
- return NATIVE.has(npm) ? npm : undefined;
488
- }
489
- function options(replacement, modelID, settings) {
490
- const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
491
- const kept = Struct2.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
492
- return {
493
- settings: replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
494
- ...settings.headers === undefined ? {} : { headers: settings.headers },
495
- ...settings.extraBody === undefined ? {} : { body: settings.extraBody },
496
- ...converse ? bedrockRequest(modelID, settings) : {},
497
- ...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
498
- };
499
- }
500
- var BEDROCK_KEYS = [
501
- "bearerToken",
502
- "endpoint",
503
- "credentials",
504
- "credentialProvider",
505
- "accessKeyId",
506
- "secretAccessKey",
507
- "sessionToken"
508
- ];
509
- var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
510
- function bedrockSettings(settings, converse) {
511
- const region = settings.region ?? settings.credentials?.region;
512
- const credentials = settings.credentials ?? settings;
513
- const baseURL = settings.baseURL ?? settings.endpoint;
514
- return {
515
- ...Struct2.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
516
- ...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
517
- ...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
518
- ...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
519
- credentials: {
520
- ...region === undefined ? {} : { region },
521
- accessKeyId: credentials.accessKeyId,
522
- secretAccessKey: credentials.secretAccessKey,
523
- ...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
524
- }
525
- }
526
- };
527
- }
528
- function bedrockRequest(modelID, settings) {
529
- const additional = settings.additionalModelRequestFields ?? {};
530
- const reasoning = settings.reasoningConfig;
531
- const anthropic = modelID?.includes("anthropic") ?? false;
532
- const openai = modelID?.includes("openai.") ?? false;
533
- const harmony = modelID?.includes("openai.gpt-oss") ?? false;
534
- const effort = reasoning?.maxReasoningEffort;
535
- const type = reasoning?.type;
536
- const budget = reasoning?.budgetTokens;
537
- const display = reasoning?.display;
538
- const betas = settings.anthropicBeta ?? [];
539
- const fields = mergeOverlay2(additional, {
540
- ...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
541
- ...anthropic && type === "enabled" && budget !== undefined ? { thinking: { type: "enabled", budget_tokens: budget } } : {},
542
- ...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
543
- ...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
544
- ...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
545
- ...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
546
- ...!anthropic && !openai && effort !== undefined ? {
547
- reasoningConfig: {
548
- ...type === undefined || type === "adaptive" ? {} : { type },
549
- ...budget === undefined ? {} : { budgetTokens: budget },
550
- maxReasoningEffort: effort
551
- }
552
- } : {}
553
- });
554
- const body = {
555
- ...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
556
- ...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
557
- };
558
- return Object.keys(body).length === 0 ? {} : { body };
559
- }
560
- var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
561
- function openRouterRequest(settings) {
562
- const headers = mergeHeaders2({
563
- ...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
564
- ...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
565
- ...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
566
- }, settings.headers) ?? {};
567
- return Object.keys(headers).length === 0 ? {} : { headers };
568
- }
569
- var lenient = (schema) => Schema2.optional(Schema2.UndefinedOr(schema).pipe(Schema2.catchDecoding(() => Effect2.succeed(Option.some(undefined)))));
570
- var Credentials = Schema2.Struct({
571
- accessKeyId: Schema2.String,
572
- secretAccessKey: Schema2.String,
573
- sessionToken: lenient(Schema2.String),
574
- region: lenient(Schema2.String)
575
- });
576
- var Legacy = Schema2.StructWithRest(Schema2.Struct({
577
- apiKey: lenient(Schema2.String),
578
- baseURL: lenient(Schema2.String),
579
- headers: lenient(Schema2.Record(Schema2.String, Schema2.String)),
580
- extraBody: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
581
- useCompletionUrls: lenient(Schema2.Boolean),
582
- auth: lenient(Schema2.Literals(["bearer", "sigv4"])),
583
- bearerToken: lenient(Schema2.String),
584
- endpoint: lenient(Schema2.String),
585
- region: lenient(Schema2.String),
586
- credentials: lenient(Credentials),
587
- accessKeyId: lenient(Schema2.String),
588
- secretAccessKey: lenient(Schema2.String),
589
- sessionToken: lenient(Schema2.String),
590
- anthropicBeta: lenient(Schema2.Array(Schema2.String)),
591
- serviceTier: lenient(Schema2.String),
592
- reasoningConfig: lenient(Schema2.Struct({
593
- type: lenient(Schema2.String),
594
- display: lenient(Schema2.String),
595
- maxReasoningEffort: lenient(Schema2.String),
596
- budgetTokens: lenient(Schema2.Number)
597
- })),
598
- additionalModelRequestFields: lenient(Schema2.StructWithRest(Schema2.Struct({
599
- anthropic_beta: lenient(Schema2.Array(Schema2.String)),
600
- output_config: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
601
- reasoning: lenient(Schema2.Record(Schema2.String, Schema2.Unknown))
602
- }), [Schema2.Record(Schema2.String, Schema2.Unknown)])),
603
- appName: lenient(Schema2.String),
604
- appUrl: lenient(Schema2.String),
605
- api_keys: lenient(Schema2.Record(Schema2.String, Schema2.String))
606
- }), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
607
- var decode = Schema2.decodeUnknownSync(Legacy);
608
-
609
- export { rewrite2, native2, exports_aisdk_native, ID13, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, mergeOverlay2, mergeHeaders2, Request3, Settings2, Info27, Service74, node78, exports_provider3, Event17 };
609
+ export { ID13, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, mergeOverlay2, mergeHeaders2, Request3, Settings2, Info26, Service71, node75, exports_provider3, Event16, rewrite2, native2, exports_aisdk_native };