@opencode/core 0.0.0-dev-20523 → 0.0.0-dev-20524

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 (781) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +81 -81
  3. package/dist/aisdk-native.js +89 -89
  4. package/dist/aisdk.js +94 -94
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +69 -69
  7. package/dist/chunks/{vcs-r9pkg3wj.js → location-03g2y37q.js} +22 -22
  8. package/dist/chunks/{vcs-2rvt81jv.js → location-0b1net69.js} +8 -8
  9. package/dist/chunks/{vcs-9rzbrnek.js → location-0d1d2768.js} +30 -30
  10. package/dist/chunks/{vcs-c34wdaxc.js → location-0d2m1esc.js} +12 -12
  11. package/dist/chunks/{vcs-tn76sa66.js → location-0ehkg06n.js} +24 -24
  12. package/dist/chunks/{vcs-d3d03f5w.js → location-0g9bh3xt.js} +6 -6
  13. package/dist/chunks/{vcs-8dnd3zn1.js → location-0hp6n8qm.js} +87 -87
  14. package/dist/chunks/{vcs-0paq2nw3.js → location-0paq2nw3.js} +1 -1
  15. package/dist/chunks/{vcs-anpxxvvk.js → location-0sesqsvn.js} +11 -11
  16. package/dist/chunks/{vcs-0vbcp93d.js → location-0vbcp93d.js} +2 -2
  17. package/dist/chunks/{vcs-3etjgs1z.js → location-13xr13rz.js} +313 -313
  18. package/dist/chunks/{vcs-64s65d1n.js → location-1956heqa.js} +8 -8
  19. package/dist/chunks/{vcs-1dazxqgg.js → location-1dazxqgg.js} +2 -2
  20. package/dist/chunks/{vcs-1dvck2a7.js → location-1dvck2a7.js} +2 -2
  21. package/dist/chunks/{vcs-w1sywbce.js → location-1f1tf6tc.js} +19 -19
  22. package/dist/chunks/{vcs-engz9tk1.js → location-1wtt5xjz.js} +10 -10
  23. package/dist/chunks/{vcs-15jxxpks.js → location-1z8f34et.js} +30 -30
  24. package/dist/chunks/{vcs-whzv333q.js → location-29waf03z.js} +5 -5
  25. package/dist/chunks/{vcs-2a5m3afh.js → location-2a5m3afh.js} +1 -1
  26. package/dist/chunks/{vcs-t4dttzpk.js → location-2qwkx9g6.js} +9 -9
  27. package/dist/chunks/{vcs-875tjbvc.js → location-2xvr5rzx.js} +5 -5
  28. package/dist/chunks/{vcs-33w4ejhs.js → location-33w4ejhs.js} +2 -2
  29. package/dist/chunks/{vcs-tbnf0mzz.js → location-3am4x91f.js} +36 -36
  30. package/dist/chunks/{vcs-a9myb2xz.js → location-3dcfmx41.js} +18 -18
  31. package/dist/chunks/{vcs-3fc6dm20.js → location-3fc6dm20.js} +1 -1
  32. package/dist/chunks/{vcs-3hepkmqq.js → location-3hepkmqq.js} +1 -1
  33. package/dist/chunks/{vcs-1yzcjwqk.js → location-3q2mb5aa.js} +176 -176
  34. package/dist/chunks/{vcs-3smtnn6g.js → location-3smtnn6g.js} +1 -1
  35. package/dist/chunks/{vcs-4dmfh7tm.js → location-3sqv75dt.js} +11 -11
  36. package/dist/chunks/{vcs-3tvqynh2.js → location-3tvqynh2.js} +1 -1
  37. package/dist/chunks/{vcs-3zsf4n22.js → location-3zsf4n22.js} +1 -1
  38. package/dist/chunks/{vcs-58rdqtcw.js → location-435mrn8p.js} +32 -32
  39. package/dist/chunks/{vcs-j0qpe3xs.js → location-4405jfbf.js} +13 -13
  40. package/dist/chunks/{vcs-ha3s5v70.js → location-47pbmbvq.js} +45 -45
  41. package/dist/chunks/{vcs-d7x58568.js → location-4ag0xmg6.js} +23 -23
  42. package/dist/chunks/{vcs-9pd3a9ej.js → location-4b027wpp.js} +70 -70
  43. package/dist/chunks/{vcs-2eegacq4.js → location-4e8vs6eh.js} +8 -8
  44. package/dist/chunks/{vcs-v6eqk4q9.js → location-4p2rvbap.js} +14 -14
  45. package/dist/chunks/{vcs-4ts7tf6z.js → location-4ts7tf6z.js} +2 -2
  46. package/dist/chunks/{vcs-2pqkge4e.js → location-4v2wjxb9.js} +9 -9
  47. package/dist/chunks/{vcs-0f2k15r0.js → location-4x2d6zk6.js} +20 -20
  48. package/dist/chunks/{vcs-6nn06123.js → location-4xmdng9e.js} +17 -17
  49. package/dist/chunks/{vcs-5fykfdj7.js → location-4xpgt2w9.js} +5 -5
  50. package/dist/chunks/{vcs-e5245gfw.js → location-4zmtjtds.js} +11 -11
  51. package/dist/chunks/{vcs-xry2b1cq.js → location-50w664pd.js} +31 -31
  52. package/dist/chunks/{vcs-17gjvyxf.js → location-51jr6g9e.js} +20 -20
  53. package/dist/chunks/{vcs-ygnv88eq.js → location-53r5d07r.js} +4 -4
  54. package/dist/chunks/{vcs-54ma36ye.js → location-54ma36ye.js} +1 -1
  55. package/dist/chunks/{vcs-8whp40kv.js → location-58072hz9.js} +3 -3
  56. package/dist/chunks/{vcs-q05af3em.js → location-5c2c9fqf.js} +20 -20
  57. package/dist/chunks/{vcs-5daktx2q.js → location-5daktx2q.js} +1 -1
  58. package/dist/chunks/{vcs-b58yghq3.js → location-5e34y3kq.js} +31 -31
  59. package/dist/chunks/{vcs-dy50r7f0.js → location-5pnewhce.js} +26 -26
  60. package/dist/chunks/{vcs-437mn6c1.js → location-5sn2jfj9.js} +24 -24
  61. package/dist/chunks/{vcs-5t3nmthw.js → location-5t3nmthw.js} +2 -2
  62. package/dist/chunks/{vcs-cmwkp3r5.js → location-5yzzbxa7.js} +8 -8
  63. package/dist/chunks/location-619r8v3y.js +18 -0
  64. package/dist/chunks/{vcs-y1ztjnch.js → location-636dm4w1.js} +17 -17
  65. package/dist/chunks/{vcs-669tq793.js → location-669tq793.js} +1 -1
  66. package/dist/chunks/{vcs-e0378qy6.js → location-66fqs2ya.js} +9 -9
  67. package/dist/chunks/{vcs-asjhz5jz.js → location-67a0sc12.js} +8 -8
  68. package/dist/chunks/{vcs-8qyfkx8k.js → location-69h1251q.js} +10 -10
  69. package/dist/chunks/{vcs-7pgd7918.js → location-6bgcwd53.js} +34 -34
  70. package/dist/chunks/{vcs-x87d2c5t.js → location-6maatk71.js} +45 -45
  71. package/dist/chunks/{vcs-p6czjpb3.js → location-6t32vnd6.js} +30 -30
  72. package/dist/chunks/{vcs-6qm8nm6h.js → location-6xsxbhd8.js} +30 -30
  73. package/dist/chunks/{vcs-154fjpss.js → location-70bshhhx.js} +8 -8
  74. package/dist/chunks/{vcs-71az546q.js → location-71az546q.js} +2 -2
  75. package/dist/chunks/{vcs-n47yxx3n.js → location-726nj29k.js} +32 -32
  76. package/dist/chunks/{vcs-1x3tt5d7.js → location-72n52cxe.js} +14 -14
  77. package/dist/chunks/{vcs-4fdg3v2k.js → location-73beahz8.js} +9 -9
  78. package/dist/chunks/{vcs-73tb2d7t.js → location-73tb2d7t.js} +1 -1
  79. package/dist/chunks/{vcs-7bmhse3q.js → location-7bmhse3q.js} +1 -1
  80. package/dist/chunks/{vcs-qgn6gcr1.js → location-7dqw4kz8.js} +5 -5
  81. package/dist/chunks/{vcs-bmyw6ydg.js → location-7rdt2je6.js} +26 -26
  82. package/dist/chunks/{vcs-ha3enmw3.js → location-7y82cyha.js} +20 -20
  83. package/dist/chunks/{vcs-j6f1xn30.js → location-7z9jfkyh.js} +9 -9
  84. package/dist/chunks/{vcs-84txncab.js → location-84txncab.js} +1 -1
  85. package/dist/chunks/{vcs-4y5cztj8.js → location-89136qfr.js} +26 -26
  86. package/dist/chunks/{vcs-8d7r5vzw.js → location-8d7r5vzw.js} +1 -1
  87. package/dist/chunks/{vcs-xkq4qhjg.js → location-8gcqp34a.js} +4 -4
  88. package/dist/chunks/{vcs-xdax5pw4.js → location-8x661jfs.js} +25 -25
  89. package/dist/chunks/{vcs-pvpz454p.js → location-97ywwqre.js} +13 -13
  90. package/dist/chunks/{vcs-5g992y3e.js → location-9be5v5fz.js} +15 -15
  91. package/dist/chunks/{vcs-dr3cfjye.js → location-9cfz2ss6.js} +18 -18
  92. package/dist/chunks/{vcs-9e5bzkjp.js → location-9e5bzkjp.js} +3 -3
  93. package/dist/chunks/{vcs-ayrfqrmp.js → location-9ff0w96a.js} +10 -10
  94. package/dist/chunks/{vcs-g8w68j7a.js → location-9m2qa8s4.js} +24 -24
  95. package/dist/chunks/{vcs-gfmgy62m.js → location-9refcsmz.js} +28 -28
  96. package/dist/chunks/{vcs-jh6se4gm.js → location-9s14hbtr.js} +10 -10
  97. package/dist/chunks/{vcs-1xsx8vwt.js → location-9w42hdr1.js} +20 -20
  98. package/dist/chunks/{vcs-8m5xe4tx.js → location-9zhh23v8.js} +6 -6
  99. package/dist/chunks/{vcs-m8835y2n.js → location-a28a4nf5.js} +15 -15
  100. package/dist/chunks/{vcs-kvvk39gs.js → location-a8bn8zg0.js} +4 -4
  101. package/dist/chunks/{vcs-aaet6srn.js → location-aaet6srn.js} +2 -2
  102. package/dist/chunks/{vcs-hvr28mne.js → location-ac3w4tg1.js} +11 -11
  103. package/dist/chunks/{vcs-gqtdsdt7.js → location-addxnjmp.js} +4 -4
  104. package/dist/chunks/{vcs-emy2mr0p.js → location-adjgd6nn.js} +4 -4
  105. package/dist/chunks/{vcs-143vszks.js → location-agam1dvb.js} +11 -11
  106. package/dist/chunks/{vcs-m3pq9nvw.js → location-ajhd3z57.js} +11 -11
  107. package/dist/chunks/{vcs-263mmtss.js → location-am9fw9ch.js} +51 -51
  108. package/dist/chunks/{vcs-px5rzwm9.js → location-amm0z9fx.js} +22 -22
  109. package/dist/chunks/{vcs-dj8dytcn.js → location-ap12zef0.js} +45 -45
  110. package/dist/chunks/{vcs-7h0e419p.js → location-aw2g9fp0.js} +1 -1
  111. package/dist/chunks/{vcs-xagkhdgg.js → location-b2k62zq4.js} +15 -15
  112. package/dist/chunks/{vcs-b6gygkdw.js → location-b6gygkdw.js} +2 -2
  113. package/dist/chunks/{vcs-x8xp47jc.js → location-bn6j2djw.js} +30 -30
  114. package/dist/chunks/{vcs-mx9vqzsb.js → location-bw9zjykr.js} +6 -6
  115. package/dist/chunks/{vcs-2tsvqd0c.js → location-bwwx913g.js} +20 -20
  116. package/dist/chunks/{vcs-gb88hfpn.js → location-c6t0g6n9.js} +3 -3
  117. package/dist/chunks/{vcs-s6vagn1s.js → location-c7bcgwck.js} +90 -90
  118. package/dist/chunks/{vcs-cwa6csj7.js → location-cwa6csj7.js} +2 -2
  119. package/dist/chunks/{vcs-0n6s3he6.js → location-d0sddd9t.js} +17 -17
  120. package/dist/chunks/{vcs-z249rqtp.js → location-d39pa2qm.js} +26 -26
  121. package/dist/chunks/{vcs-c0wyzfrh.js → location-d6jdpt9s.js} +24 -24
  122. package/dist/chunks/{vcs-k017qpd0.js → location-d79sqymb.js} +9 -9
  123. package/dist/chunks/{vcs-6qkjgc87.js → location-dktchxzp.js} +9 -9
  124. package/dist/chunks/{vcs-5f3z425y.js → location-dmq45pp6.js} +54 -54
  125. package/dist/chunks/{vcs-nxm207yx.js → location-dpkg50ah.js} +4 -4
  126. package/dist/chunks/location-drek8w4c.js +253 -0
  127. package/dist/chunks/{vcs-y1n096b6.js → location-dvqjns4f.js} +27 -27
  128. package/dist/chunks/{vcs-rn39wzk6.js → location-dwenb9k0.js} +23 -23
  129. package/dist/chunks/{vcs-4rev9cvp.js → location-dxc4ayrt.js} +15 -15
  130. package/dist/chunks/{vcs-1ysz3b88.js → location-e6ef6n62.js} +46 -46
  131. package/dist/chunks/{vcs-ef5x83kb.js → location-ef5x83kb.js} +1 -1
  132. package/dist/chunks/{vcs-8bqprwpq.js → location-efsmb0h4.js} +19 -19
  133. package/dist/chunks/{vcs-xs53z2pm.js → location-em3h5ktn.js} +4 -4
  134. package/dist/chunks/{vcs-qbfvtt5h.js → location-er3ye3qa.js} +15 -15
  135. package/dist/chunks/{vcs-etq0c3wd.js → location-etq0c3wd.js} +1 -1
  136. package/dist/chunks/{vcs-f5gy8qwh.js → location-f5gy8qwh.js} +1 -1
  137. package/dist/chunks/{vcs-wkwj6cw5.js → location-fa7rx1rj.js} +11 -11
  138. package/dist/chunks/{vcs-52f2jrtr.js → location-fasbsk8t.js} +17 -17
  139. package/dist/chunks/{vcs-ert91amk.js → location-fd6ys4ef.js} +8 -8
  140. package/dist/chunks/{vcs-edrmdtr5.js → location-fqb2p7cx.js} +7 -7
  141. package/dist/chunks/{vcs-8jnczxdz.js → location-fvcnt3t4.js} +5 -5
  142. package/dist/chunks/{vcs-gh5z95q3.js → location-g31erja1.js} +9 -9
  143. package/dist/chunks/{vcs-3318eyp5.js → location-g4et1qt7.js} +3 -3
  144. package/dist/chunks/{vcs-bzawqrey.js → location-g7j3mj99.js} +4 -4
  145. package/dist/chunks/{vcs-q86e9bsp.js → location-gakk3ey9.js} +11 -11
  146. package/dist/chunks/{vcs-yjfktaj5.js → location-gbjeyn0t.js} +12 -12
  147. package/dist/chunks/{vcs-p5p5kne1.js → location-gccjnz6h.js} +2 -2
  148. package/dist/chunks/{vcs-gd4qta3r.js → location-gd4qta3r.js} +1 -1
  149. package/dist/chunks/{vcs-2xdh0w28.js → location-gj71zhbs.js} +5 -5
  150. package/dist/chunks/{vcs-jk03ymz1.js → location-gnwsk10c.js} +11 -11
  151. package/dist/chunks/{vcs-6tfrbyrn.js → location-gp96s3k1.js} +26 -26
  152. package/dist/chunks/{vcs-h2b79v29.js → location-h2b79v29.js} +2 -2
  153. package/dist/chunks/{vcs-89rvcjqs.js → location-h4ckqw4f.js} +8 -8
  154. package/dist/chunks/{vcs-ekaexw2z.js → location-h5vnjv2h.js} +308 -308
  155. package/dist/chunks/{vcs-h6vf3j39.js → location-h6vf3j39.js} +1 -1
  156. package/dist/chunks/{vcs-q781ceqg.js → location-ha10f5ag.js} +21 -21
  157. package/dist/chunks/{vcs-qbt3t408.js → location-hmp1x13k.js} +2 -2
  158. package/dist/chunks/{vcs-652g5ww1.js → location-ht20w0bm.js} +22 -22
  159. package/dist/chunks/{vcs-r8518j31.js → location-ht2vmafg.js} +12 -12
  160. package/dist/chunks/{vcs-b34sdxkh.js → location-htjw9qza.js} +8 -8
  161. package/dist/chunks/{vcs-6e2c24zy.js → location-hzm7e63r.js} +31 -31
  162. package/dist/chunks/{vcs-g60qacmp.js → location-hznqgj95.js} +6 -6
  163. package/dist/chunks/{vcs-yjg24re3.js → location-j4vxd5gc.js} +25 -25
  164. package/dist/chunks/{vcs-j56e64zr.js → location-j56e64zr.js} +1 -1
  165. package/dist/chunks/{vcs-xaccx4pc.js → location-j87v20fg.js} +5 -5
  166. package/dist/chunks/{vcs-qqjzd42y.js → location-jdjpygpn.js} +1 -1
  167. package/dist/chunks/{vcs-dsgjd3rn.js → location-jqskptrr.js} +6 -6
  168. package/dist/chunks/{vcs-w347braj.js → location-jtchp687.js} +21 -21
  169. package/dist/chunks/{vcs-3qaj82j9.js → location-k8hpw67k.js} +5 -5
  170. package/dist/chunks/{vcs-p9zzjwz0.js → location-kanq2qcn.js} +16 -16
  171. package/dist/chunks/{vcs-v5mwb5nv.js → location-kdnkv6vg.js} +21 -21
  172. package/dist/chunks/{vcs-rzs3gq0x.js → location-kh9sx4kg.js} +8 -8
  173. package/dist/chunks/{vcs-w1bc1hs8.js → location-krdch7pj.js} +8 -8
  174. package/dist/chunks/{vcs-psn196xm.js → location-kryy92pc.js} +33 -33
  175. package/dist/chunks/{vcs-m3fdjcah.js → location-m3fdjcah.js} +1 -1
  176. package/dist/chunks/{vcs-8zp34bdd.js → location-m5fmzmxa.js} +7 -7
  177. package/dist/chunks/{vcs-m9w0rfyh.js → location-m9w0rfyh.js} +1 -1
  178. package/dist/chunks/{vcs-sm4ranxy.js → location-ma8dv7tn.js} +11 -11
  179. package/dist/chunks/{vcs-30pk4ngn.js → location-mfns49dk.js} +11 -11
  180. package/dist/chunks/{vcs-7f5fnqp2.js → location-mfq58xys.js} +7 -7
  181. package/dist/chunks/{vcs-1kfk229s.js → location-mkderzf3.js} +29 -29
  182. package/dist/chunks/{vcs-1avcv9p8.js → location-mpa2g5zd.js} +30 -30
  183. package/dist/chunks/{vcs-gg1q1rgs.js → location-ms3jqqqf.js} +37 -37
  184. package/dist/chunks/{vcs-698jedh3.js → location-n3kq2dxg.js} +21 -21
  185. package/dist/chunks/{vcs-kym3tbjm.js → location-n3zff3hk.js} +9 -9
  186. package/dist/chunks/{vcs-g99bb5tx.js → location-nb85r331.js} +17 -17
  187. package/dist/chunks/{vcs-rk1r2hx8.js → location-ncnm8wen.js} +1 -1
  188. package/dist/chunks/{vcs-2fsnkaeb.js → location-np07ctdw.js} +10 -10
  189. package/dist/chunks/{vcs-3fp39bc5.js → location-nqrfg00y.js} +11 -11
  190. package/dist/chunks/{vcs-v2p4rfxw.js → location-ns15zm60.js} +6 -6
  191. package/dist/chunks/{vcs-72ct2ksy.js → location-nz9vh4f0.js} +48 -48
  192. package/dist/chunks/{vcs-zac3hdf5.js → location-p28awedh.js} +23 -23
  193. package/dist/chunks/{vcs-g53b9crq.js → location-pdq7zx76.js} +7 -7
  194. package/dist/chunks/{vcs-ay23zzs3.js → location-pfkmmn9w.js} +33 -33
  195. package/dist/chunks/{vcs-vg24h9cg.js → location-pg7b5kmm.js} +4 -4
  196. package/dist/chunks/{vcs-dddf77t3.js → location-pghs4qq9.js} +12 -12
  197. package/dist/chunks/{vcs-pjvnvgmy.js → location-pjvnvgmy.js} +1 -1
  198. package/dist/chunks/{vcs-pknna89w.js → location-pknna89w.js} +1 -1
  199. package/dist/chunks/{vcs-ezy85fdf.js → location-pmv361z8.js} +32 -32
  200. package/dist/chunks/{vcs-r71n597x.js → location-psyghn60.js} +3 -3
  201. package/dist/chunks/{vcs-cfsekr6v.js → location-py3kkmfq.js} +2 -2
  202. package/dist/chunks/{vcs-q0xm7vwc.js → location-q0xm7vwc.js} +2 -2
  203. package/dist/chunks/location-qf4hcvb6.js +26 -0
  204. package/dist/chunks/{vcs-ns33pmaz.js → location-qjhbzp1x.js} +3 -3
  205. package/dist/chunks/{vcs-39vpe6qw.js → location-qknp1kwt.js} +16 -16
  206. package/dist/chunks/{vcs-qnc92qwc.js → location-qnc92qwc.js} +1 -1
  207. package/dist/chunks/{vcs-twtpbk14.js → location-qrrr3p9w.js} +28 -28
  208. package/dist/chunks/{vcs-qsdy395h.js → location-qsdy395h.js} +1 -1
  209. package/dist/chunks/{vcs-kxd45bf8.js → location-qwpeqn3j.js} +6 -6
  210. package/dist/chunks/{vcs-atpksgz1.js → location-r8aax1cg.js} +6 -6
  211. package/dist/chunks/{vcs-4jyvzrab.js → location-r9w3djhf.js} +9 -9
  212. package/dist/chunks/{vcs-rdw6cm16.js → location-rdw6cm16.js} +1 -1
  213. package/dist/chunks/{vcs-g34qytme.js → location-rfnzz8gp.js} +13 -13
  214. package/dist/chunks/{vcs-1acjjqhc.js → location-rhraev7y.js} +4 -4
  215. package/dist/chunks/{vcs-x7ypjh20.js → location-rkj7dp5f.js} +10 -10
  216. package/dist/chunks/{vcs-dfjxtsf9.js → location-rrpq0de9.js} +12 -12
  217. package/dist/chunks/{vcs-3xqy4ymt.js → location-rx4c2z1d.js} +15 -15
  218. package/dist/chunks/{vcs-fe5va1gq.js → location-ryxsgh7t.js} +18 -18
  219. package/dist/chunks/{vcs-m2rmbrrw.js → location-rz7hjw9a.js} +4 -4
  220. package/dist/chunks/{vcs-wv396vej.js → location-s8d7rejh.js} +8 -8
  221. package/dist/chunks/{vcs-qygbw77c.js → location-scgrse2b.js} +5 -5
  222. package/dist/chunks/{vcs-esmd944f.js → location-sdm6ehx7.js} +15 -15
  223. package/dist/chunks/{vcs-00c9h3yh.js → location-ses0sfa7.js} +25 -25
  224. package/dist/chunks/{vcs-eqzw3791.js → location-sfyepjcn.js} +10 -10
  225. package/dist/chunks/{vcs-9dmf3jht.js → location-ss70ch0k.js} +5 -5
  226. package/dist/chunks/{vcs-0b83k0qn.js → location-t0kkw9j8.js} +5 -5
  227. package/dist/chunks/{vcs-0v2qpmda.js → location-t5saaaxp.js} +39 -39
  228. package/dist/chunks/{vcs-tazgh4e4.js → location-tazgh4e4.js} +1 -1
  229. package/dist/chunks/{vcs-89znhe33.js → location-tcezcvh9.js} +4 -4
  230. package/dist/chunks/{vcs-tdstcens.js → location-tdstcens.js} +1 -1
  231. package/dist/chunks/{vcs-sv59d8wy.js → location-tm7bvtyg.js} +15 -15
  232. package/dist/chunks/{vcs-273heg4k.js → location-tqwy6r45.js} +3 -3
  233. package/dist/chunks/{vcs-4w0k5wea.js → location-trcdmqx3.js} +10 -10
  234. package/dist/chunks/{vcs-98d9cgwq.js → location-txa3gs2n.js} +24 -24
  235. package/dist/chunks/{vcs-xf7k239c.js → location-tzpqvdng.js} +7 -7
  236. package/dist/chunks/{vcs-y4xh0pmk.js → location-v0es1rhs.js} +7 -7
  237. package/dist/chunks/{vcs-0w8wvs1r.js → location-vbtjb3bz.js} +8 -8
  238. package/dist/chunks/{vcs-0a1yp5ev.js → location-ve85v3xb.js} +4 -4
  239. package/dist/chunks/{vcs-veqvce7d.js → location-veqvce7d.js} +1 -1
  240. package/dist/chunks/{vcs-dypdtx22.js → location-vmtrkad0.js} +10 -10
  241. package/dist/chunks/{vcs-mk899n6x.js → location-vqgj6vfx.js} +10 -10
  242. package/dist/chunks/{vcs-bws3grwa.js → location-vsya7gwe.js} +5 -5
  243. package/dist/chunks/{vcs-96te9d4b.js → location-vxp3kcg3.js} +5 -5
  244. package/dist/chunks/{vcs-vzcthcp8.js → location-vzcthcp8.js} +1 -1
  245. package/dist/chunks/{vcs-vzs5sf6e.js → location-vzs5sf6e.js} +1 -1
  246. package/dist/chunks/{vcs-ngcyadx4.js → location-w255jkmj.js} +40 -40
  247. package/dist/chunks/{vcs-w3wsvvr9.js → location-w3wsvvr9.js} +1 -1
  248. package/dist/chunks/{vcs-p4vte420.js → location-w6ftey9k.js} +25 -25
  249. package/dist/chunks/{vcs-8nn5nyt2.js → location-w8bcfg26.js} +36 -36
  250. package/dist/chunks/{vcs-41ssepmq.js → location-wb6g3839.js} +11 -11
  251. package/dist/chunks/{vcs-apm9d5pk.js → location-wbavqyay.js} +4 -4
  252. package/dist/chunks/{vcs-wd87259q.js → location-wd87259q.js} +1 -1
  253. package/dist/chunks/{vcs-znge2k26.js → location-wgwhfkbb.js} +9 -9
  254. package/dist/chunks/{vcs-642sd9r2.js → location-wh2htdx5.js} +19 -19
  255. package/dist/chunks/{vcs-8xd7pg9c.js → location-wk3dfdmh.js} +10 -10
  256. package/dist/chunks/{vcs-yq9f48r1.js → location-wr1eej9h.js} +3 -3
  257. package/dist/chunks/{vcs-x1ezjp6w.js → location-x1ezjp6w.js} +1 -1
  258. package/dist/chunks/{vcs-c6fqm3pf.js → location-x1xn1kyr.js} +25 -25
  259. package/dist/chunks/{vcs-m6peh6cd.js → location-xcst2118.js} +12 -12
  260. package/dist/chunks/{vcs-g5w8qwbj.js → location-xfkkasph.js} +4 -4
  261. package/dist/chunks/{vcs-bfh2072t.js → location-xjthv5h5.js} +20 -20
  262. package/dist/chunks/{vcs-w3bk7c2d.js → location-xk5qmycy.js} +34 -34
  263. package/dist/chunks/{vcs-xkntkrq7.js → location-xkntkrq7.js} +2 -2
  264. package/dist/chunks/{vcs-1xpf0exr.js → location-xy5gggj8.js} +15 -15
  265. package/dist/chunks/{vcs-qxjc9qry.js → location-xyafkbt0.js} +3 -3
  266. package/dist/chunks/{vcs-y1fvbwt7.js → location-y1fvbwt7.js} +1 -1
  267. package/dist/chunks/{vcs-4rrjew3c.js → location-y3tn1ts5.js} +43 -43
  268. package/dist/chunks/{vcs-m3qcfrsh.js → location-y7dx63g1.js} +16 -16
  269. package/dist/chunks/{vcs-cvd0t7zh.js → location-ybsbay28.js} +22 -22
  270. package/dist/chunks/{vcs-jpvtfgsr.js → location-ykk9be0k.js} +15 -15
  271. package/dist/chunks/{vcs-z6fm47wz.js → location-ymhgr8h4.js} +11 -11
  272. package/dist/chunks/{vcs-rtk327b3.js → location-yqkgc340.js} +13 -13
  273. package/dist/chunks/{vcs-yrhqyw5v.js → location-yrhqyw5v.js} +1 -1
  274. package/dist/chunks/{vcs-j5rxtxht.js → location-z0aj456m.js} +4 -4
  275. package/dist/chunks/{vcs-z0bkrqjs.js → location-z0bkrqjs.js} +1 -1
  276. package/dist/chunks/{vcs-gy16a72j.js → location-z1443vyh.js} +5 -5
  277. package/dist/chunks/{vcs-waza03q7.js → location-z4ggt3ag.js} +16 -16
  278. package/dist/chunks/{vcs-9zdhcr13.js → location-z6z545q9.js} +55 -55
  279. package/dist/chunks/{vcs-75jaekcr.js → location-z72ax6ks.js} +9 -9
  280. package/dist/chunks/{vcs-kne8f3cn.js → location-zee1rnkq.js} +4 -4
  281. package/dist/chunks/{vcs-pkqb68ka.js → location-zfs8ae4p.js} +4 -4
  282. package/dist/chunks/{vcs-zr2ceqn5.js → location-zr2ceqn5.js} +1 -1
  283. package/dist/chunks/{vcs-f29mbr7f.js → location-zsr4wwhv.js} +4 -4
  284. package/dist/chunks/{vcs-zxq2ej10.js → location-zxq2ej10.js} +1 -1
  285. package/dist/codemode/catalog.js +1 -1
  286. package/dist/codemode/instructions.js +5 -5
  287. package/dist/codemode/tool.js +3 -3
  288. package/dist/codemode/web.js +1 -1
  289. package/dist/command.js +83 -83
  290. package/dist/config/discovery.js +84 -84
  291. package/dist/config/markdown.js +1 -1
  292. package/dist/config/normalize.js +99 -99
  293. package/dist/config/plugin/agent.js +116 -116
  294. package/dist/config/plugin/command.js +205 -205
  295. package/dist/config/plugin/compaction.js +154 -154
  296. package/dist/config/plugin/compatibility.js +134 -134
  297. package/dist/config/plugin/entry-observer.js +1 -1
  298. package/dist/config/plugin/formatter.js +117 -117
  299. package/dist/config/plugin/image.js +116 -116
  300. package/dist/config/plugin/instruction.js +90 -90
  301. package/dist/config/plugin/location-watcher.js +118 -118
  302. package/dist/config/plugin/mcp.js +123 -123
  303. package/dist/config/plugin/policy.js +117 -117
  304. package/dist/config/plugin/provider.js +114 -114
  305. package/dist/config/plugin/reference.js +118 -118
  306. package/dist/config/plugin/shell.js +116 -116
  307. package/dist/config/plugin/skill-file.js +102 -102
  308. package/dist/config/plugin/skill.js +135 -135
  309. package/dist/config/plugin/snapshot.js +116 -116
  310. package/dist/config/plugin/source.js +119 -119
  311. package/dist/config/plugin/tool-output.js +117 -117
  312. package/dist/config/plugin/websearch.js +115 -115
  313. package/dist/config/plugin/worktree.js +118 -118
  314. package/dist/config/variable.js +3 -3
  315. package/dist/config/watch.js +1 -1
  316. package/dist/config.js +121 -121
  317. package/dist/credential/sql.js +2 -2
  318. package/dist/credential.js +85 -85
  319. package/dist/database/database.js +66 -66
  320. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  321. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  322. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  323. package/dist/database/drizzle/index.js +15 -15
  324. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  325. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  326. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  327. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  328. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  329. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  330. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  331. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  332. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  333. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  334. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  335. package/dist/database/drizzle.js +16 -16
  336. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  337. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  338. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  339. package/dist/database/migration/20260225215848_workspace.js +1 -1
  340. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  341. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  342. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  343. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  344. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  345. package/dist/database/migration/20260323234822_events.js +1 -1
  346. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  347. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  348. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  349. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  350. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  351. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  352. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  353. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  354. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  355. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  356. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  357. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  358. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  359. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  360. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  361. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  362. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  363. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  364. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  365. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  366. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  367. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  368. package/dist/database/migration/20260611035744_credential.js +1 -1
  369. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  370. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  371. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  372. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  373. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  374. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  375. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  376. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  377. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  378. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  379. package/dist/database/migration/20260812213948_worktree.js +1 -1
  380. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  381. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  382. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  383. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  384. package/dist/database/migration.gen.js +49 -49
  385. package/dist/database/migration.js +51 -51
  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 +76 -76
  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 +3 -3
  398. package/dist/effect/websocket-constructor.js +1 -1
  399. package/dist/environment/driver.js +1 -1
  400. package/dist/environment/environment.js +93 -93
  401. package/dist/environment/exec-defaults.js +2 -2
  402. package/dist/environment/files.js +1 -1
  403. package/dist/environment/index.js +95 -95
  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 +70 -70
  409. package/dist/file-access.js +100 -100
  410. package/dist/file-mutation.js +94 -94
  411. package/dist/file-retention.js +1 -1
  412. package/dist/filesystem/fff.bun.js +2 -2
  413. package/dist/filesystem/fff.js +1 -1
  414. package/dist/filesystem/fff.node.js +2 -2
  415. package/dist/filesystem/fff.workerd.js +2 -2
  416. package/dist/filesystem/location-watcher-policy.js +2 -2
  417. package/dist/filesystem/location-watcher.js +220 -220
  418. package/dist/filesystem/protected.js +3 -3
  419. package/dist/filesystem/search.js +103 -103
  420. package/dist/filesystem/watcher-binding.js +1 -1
  421. package/dist/filesystem/watcher.js +15 -15
  422. package/dist/filesystem.js +104 -104
  423. package/dist/form.js +84 -84
  424. package/dist/formatter/builtins.js +2 -2
  425. package/dist/formatter.js +87 -87
  426. package/dist/generate.js +99 -99
  427. package/dist/git.js +10 -10
  428. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  429. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  430. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  431. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  432. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  433. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  434. package/dist/github-copilot/copilot-provider.js +17 -17
  435. package/dist/github-copilot/models.js +99 -99
  436. package/dist/github-copilot/openai-compatible-error.js +1 -1
  437. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  438. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  439. package/dist/github-copilot/responses/openai-error.js +1 -1
  440. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  441. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  442. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  443. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  444. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  445. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  446. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  447. package/dist/image/photon.js +2 -2
  448. package/dist/image.js +6 -6
  449. package/dist/instance/service.js +5 -5
  450. package/dist/instance.js +355 -355
  451. package/dist/instruction-discovery.js +85 -85
  452. package/dist/instructions/builtins.js +87 -87
  453. package/dist/instructions/index.js +5 -5
  454. package/dist/integration/connection.js +3 -3
  455. package/dist/integration.js +87 -87
  456. package/dist/job.js +78 -78
  457. package/dist/kv/sql.js +2 -2
  458. package/dist/kv.js +73 -73
  459. package/dist/location-activity.js +131 -131
  460. package/dist/location-lifecycle.js +107 -107
  461. package/dist/location-service-map.js +86 -86
  462. package/dist/location-services.js +352 -352
  463. package/dist/location.js +85 -85
  464. package/dist/managed-policy.js +1 -1
  465. package/dist/mcp/client.js +91 -91
  466. package/dist/mcp/index.js +109 -109
  467. package/dist/mcp/instructions.js +129 -129
  468. package/dist/mcp/oauth.js +78 -78
  469. package/dist/mcp/stdio.js +90 -90
  470. package/dist/mime.js +1 -1
  471. package/dist/modal/models.js +99 -99
  472. package/dist/model-resolver.js +98 -98
  473. package/dist/model.js +100 -100
  474. package/dist/models-dev.js +99 -99
  475. package/dist/oauth/page.js +1 -1
  476. package/dist/permission/saved.js +82 -82
  477. package/dist/permission/sql.js +5 -5
  478. package/dist/permission.js +113 -113
  479. package/dist/persistent-pty/binary.bun.js +1 -1
  480. package/dist/persistent-pty/daemon.js +1 -1
  481. package/dist/persistent-pty/index.js +78 -78
  482. package/dist/persistent-pty/pty-binding.js +1 -1
  483. package/dist/persistent-pty.js +75 -75
  484. package/dist/plugin/agent.js +102 -102
  485. package/dist/plugin/command.js +100 -100
  486. package/dist/plugin/hooks.js +5 -5
  487. package/dist/plugin/host.js +211 -211
  488. package/dist/plugin/identity.js +3 -3
  489. package/dist/plugin/instance.js +5 -5
  490. package/dist/plugin/internal.js +327 -327
  491. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  492. package/dist/plugin/models-dev.js +96 -96
  493. package/dist/plugin/module.js +7 -7
  494. package/dist/plugin/optimize.js +2 -2
  495. package/dist/plugin/plan.js +102 -102
  496. package/dist/plugin/promise.js +1 -1
  497. package/dist/plugin/provider/amazon-bedrock.js +90 -90
  498. package/dist/plugin/provider/azure.js +117 -117
  499. package/dist/plugin/provider/cerebras.js +1 -1
  500. package/dist/plugin/provider/chatgpt.js +93 -93
  501. package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
  502. package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
  503. package/dist/plugin/provider/cohere.js +2 -2
  504. package/dist/plugin/provider/configured.js +112 -112
  505. package/dist/plugin/provider/digitalocean.js +93 -93
  506. package/dist/plugin/provider/dynamic.js +2 -2
  507. package/dist/plugin/provider/factory.js +1 -1
  508. package/dist/plugin/provider/gateway.js +2 -2
  509. package/dist/plugin/provider/github-copilot.js +95 -95
  510. package/dist/plugin/provider/gitlab.js +93 -93
  511. package/dist/plugin/provider/google-vertex.js +90 -90
  512. package/dist/plugin/provider/kilo.js +1 -1
  513. package/dist/plugin/provider/llmgateway.js +78 -78
  514. package/dist/plugin/provider/lmstudio.js +115 -115
  515. package/dist/plugin/provider/modal.js +92 -92
  516. package/dist/plugin/provider/nvidia.js +1 -1
  517. package/dist/plugin/provider/ollama.js +115 -115
  518. package/dist/plugin/provider/openai.js +93 -93
  519. package/dist/plugin/provider/opencode.js +96 -96
  520. package/dist/plugin/provider/openrouter.js +91 -91
  521. package/dist/plugin/provider/perplexity.js +2 -2
  522. package/dist/plugin/provider/poe.js +79 -79
  523. package/dist/plugin/provider/prompt-cache-key.js +90 -90
  524. package/dist/plugin/provider/sap-ai-core.js +91 -91
  525. package/dist/plugin/provider/sdk-factory.js +1 -1
  526. package/dist/plugin/provider/snowflake-cortex.js +115 -115
  527. package/dist/plugin/provider/venice.js +2 -2
  528. package/dist/plugin/provider/vercel.js +90 -90
  529. package/dist/plugin/provider/vllm.js +113 -113
  530. package/dist/plugin/provider/xai.js +91 -91
  531. package/dist/plugin/provider/zenmux.js +1 -1
  532. package/dist/plugin/provider.js +156 -156
  533. package/dist/plugin/sdk.js +76 -76
  534. package/dist/plugin/service.js +3 -3
  535. package/dist/plugin/skill.js +132 -132
  536. package/dist/plugin/source-directory.js +1 -1
  537. package/dist/plugin/supervisor.js +346 -346
  538. package/dist/plugin/tool-input-repair.js +4 -4
  539. package/dist/plugin/update.js +6 -6
  540. package/dist/plugin/vcs/git.js +86 -86
  541. package/dist/plugin/vcs/hg.js +86 -86
  542. package/dist/plugin/verbosity.js +93 -93
  543. package/dist/plugin/warming.js +114 -114
  544. package/dist/plugin/websearch/exa.js +7 -7
  545. package/dist/plugin/websearch/firecrawl.js +8 -8
  546. package/dist/plugin/websearch/index.js +9 -9
  547. package/dist/plugin/websearch/mcp.js +2 -2
  548. package/dist/plugin/websearch/parallel.js +8 -8
  549. package/dist/plugin/websearch/tavily.js +4 -4
  550. package/dist/plugin/websearch/tinyfish.js +8 -8
  551. package/dist/plugin.js +216 -216
  552. package/dist/project/schema.js +6 -6
  553. package/dist/project/sql.js +4 -4
  554. package/dist/project.js +86 -86
  555. package/dist/provider.js +101 -101
  556. package/dist/pty/protocol.js +1 -1
  557. package/dist/pty/ticket.js +1 -1
  558. package/dist/pty.js +89 -89
  559. package/dist/reference/instructions.js +89 -89
  560. package/dist/reference.js +91 -91
  561. package/dist/repository-cache.js +81 -81
  562. package/dist/repository.js +1 -1
  563. package/dist/ripgrep/binary.js +2 -2
  564. package/dist/ripgrep.js +97 -97
  565. package/dist/rpc.js +86 -86
  566. package/dist/schema.js +1 -1
  567. package/dist/session/affinity.js +1 -1
  568. package/dist/session/command.js +74 -74
  569. package/dist/session/compaction.js +135 -135
  570. package/dist/session/context.js +153 -153
  571. package/dist/session/diff.js +88 -88
  572. package/dist/session/environment.js +5 -5
  573. package/dist/session/error.js +5 -5
  574. package/dist/session/event.js +1 -1
  575. package/dist/session/execution/restart.js +214 -214
  576. package/dist/session/execution.js +127 -127
  577. package/dist/session/generate.js +152 -152
  578. package/dist/session/history.js +13 -13
  579. package/dist/session/inbox.js +90 -90
  580. package/dist/session/info.js +3 -3
  581. package/dist/session/instruction-entry.js +77 -77
  582. package/dist/session/instruction-state.js +8 -8
  583. package/dist/session/instructions.js +97 -97
  584. package/dist/session/message-updater.js +2 -2
  585. package/dist/session/message.js +1 -1
  586. package/dist/session/model-request.js +118 -118
  587. package/dist/session/model-transport.js +7 -7
  588. package/dist/session/move.js +129 -129
  589. package/dist/session/projector.js +86 -86
  590. package/dist/session/prompt.js +105 -105
  591. package/dist/session/provider-context.js +3 -3
  592. package/dist/session/revert.js +90 -90
  593. package/dist/session/run-coordinator.js +3 -3
  594. package/dist/session/runner/index.js +3 -3
  595. package/dist/session/runner/llm.js +224 -224
  596. package/dist/session/runner/max-steps.js +1 -1
  597. package/dist/session/runner/model.js +98 -98
  598. package/dist/session/runner/publish-llm-event.js +113 -113
  599. package/dist/session/runner/retry.js +4 -4
  600. package/dist/session/runner/step.js +125 -125
  601. package/dist/session/runner/to-llm-message.js +2 -2
  602. package/dist/session/schema.js +5 -5
  603. package/dist/session/session.js +162 -162
  604. package/dist/session/shell.js +130 -130
  605. package/dist/session/skill.js +103 -103
  606. package/dist/session/sql.js +5 -5
  607. package/dist/session/stats.js +73 -73
  608. package/dist/session/store.js +87 -87
  609. package/dist/session/subagent-completion.js +1 -1
  610. package/dist/session/subagent-job.js +203 -203
  611. package/dist/session/system-prompt.js +3 -3
  612. package/dist/session/title.js +157 -157
  613. package/dist/session/to-session-error.js +111 -111
  614. package/dist/session/transfer.js +210 -210
  615. package/dist/session/usage.js +1 -1
  616. package/dist/session.js +213 -213
  617. package/dist/shell/parse.js +6 -6
  618. package/dist/shell/result.js +1 -1
  619. package/dist/shell/scan.js +1 -1
  620. package/dist/shell/select.js +9 -9
  621. package/dist/shell.js +132 -132
  622. package/dist/skill/discovery.js +6 -6
  623. package/dist/skill/instructions.js +105 -105
  624. package/dist/skill.js +112 -112
  625. package/dist/snapshot.js +93 -93
  626. package/dist/state.js +1 -1
  627. package/dist/tool/html-markdown.js +1 -1
  628. package/dist/tool/http-body.js +1 -1
  629. package/dist/tool/mcp.js +126 -126
  630. package/dist/tool/plugin/edit.js +120 -120
  631. package/dist/tool/plugin/file-diff.js +1 -1
  632. package/dist/tool/plugin/glob.js +122 -122
  633. package/dist/tool/plugin/grep.js +124 -124
  634. package/dist/tool/plugin/mcp-resource.js +117 -117
  635. package/dist/tool/plugin/opencode.js +3 -3
  636. package/dist/tool/plugin/patch.js +122 -122
  637. package/dist/tool/plugin/question.js +103 -103
  638. package/dist/tool/plugin/read.js +125 -125
  639. package/dist/tool/plugin/shell.js +208 -208
  640. package/dist/tool/plugin/skill.js +111 -111
  641. package/dist/tool/plugin/subagent.js +212 -212
  642. package/dist/tool/plugin/webfetch.js +110 -110
  643. package/dist/tool/plugin/websearch.js +112 -112
  644. package/dist/tool/plugin/write.js +122 -122
  645. package/dist/tool/read-filesystem.js +100 -100
  646. package/dist/tool/runtime.js +1 -1
  647. package/dist/tool-output.js +7 -7
  648. package/dist/tool.js +14 -14
  649. package/dist/util/error-summary.js +1 -1
  650. package/dist/util/error.js +1 -1
  651. package/dist/util/git-executable.js +2 -2
  652. package/dist/util/iife.js +1 -1
  653. package/dist/util/lazy.js +1 -1
  654. package/dist/util/slug.js +1 -1
  655. package/dist/util/token.js +1 -1
  656. package/dist/util/which.js +1 -1
  657. package/dist/util/wildcard.js +1 -1
  658. package/dist/v1/config/agent.js +5 -5
  659. package/dist/v1/config/command.js +5 -5
  660. package/dist/v1/config/error.js +2 -2
  661. package/dist/v1/config/mcp.js +4 -4
  662. package/dist/v1/config/migrate.js +92 -92
  663. package/dist/v1/config/permission.js +3 -3
  664. package/dist/v1/config/plugin.js +3 -3
  665. package/dist/v1/config/provider-options.js +1 -1
  666. package/dist/v1/config/provider.js +4 -4
  667. package/dist/variant.js +93 -93
  668. package/dist/vcs/patch.js +1 -1
  669. package/dist/vcs.js +89 -89
  670. package/dist/websearch.js +84 -84
  671. package/dist/wellknown/plugin.js +74 -74
  672. package/dist/wellknown.js +81 -81
  673. package/dist/workspace/driver.js +7 -7
  674. package/dist/workspace/sql.js +1 -1
  675. package/dist/workspace.js +80 -80
  676. package/dist/worktree/directory.js +2 -2
  677. package/dist/worktree/git.js +10 -10
  678. package/dist/worktree/sql.js +5 -5
  679. package/dist/worktree/strategies.js +89 -89
  680. package/dist/worktree.js +96 -96
  681. package/package.json +8 -8
  682. package/dist/chunks/vcs-9zdhvgqs.js +0 -18
  683. package/dist/chunks/vcs-c2rqwj43.js +0 -253
  684. package/dist/chunks/vcs-r1as3zj2.js +0 -26
  685. /package/dist/chunks/{vcs-0qkdqm5v.js → location-0qkdqm5v.js} +0 -0
  686. /package/dist/chunks/{vcs-0zkw76rk.js → location-0zkw76rk.js} +0 -0
  687. /package/dist/chunks/{vcs-17cy0kzp.js → location-17cy0kzp.js} +0 -0
  688. /package/dist/chunks/{vcs-1cnp2v09.js → location-1cnp2v09.js} +0 -0
  689. /package/dist/chunks/{vcs-1kg9ymc8.js → location-1kg9ymc8.js} +0 -0
  690. /package/dist/chunks/{vcs-24dcb14g.js → location-24dcb14g.js} +0 -0
  691. /package/dist/chunks/{vcs-2710q6r3.js → location-2710q6r3.js} +0 -0
  692. /package/dist/chunks/{vcs-2axfhc9x.js → location-2axfhc9x.js} +0 -0
  693. /package/dist/chunks/{vcs-2c3vjs8z.js → location-2c3vjs8z.js} +0 -0
  694. /package/dist/chunks/{vcs-34c7v6d4.js → location-34c7v6d4.js} +0 -0
  695. /package/dist/chunks/{vcs-359p4xyc.js → location-359p4xyc.js} +0 -0
  696. /package/dist/chunks/{vcs-3asan66x.js → location-3asan66x.js} +0 -0
  697. /package/dist/chunks/{vcs-3t0ybcrp.js → location-3t0ybcrp.js} +0 -0
  698. /package/dist/chunks/{vcs-3v8g72cx.js → location-3v8g72cx.js} +0 -0
  699. /package/dist/chunks/{vcs-3w5fmr99.js → location-3w5fmr99.js} +0 -0
  700. /package/dist/chunks/{vcs-3wcehsnq.js → location-3wcehsnq.js} +0 -0
  701. /package/dist/chunks/{vcs-43n2bw4t.js → location-43n2bw4t.js} +0 -0
  702. /package/dist/chunks/{vcs-4knz6hnm.js → location-4knz6hnm.js} +0 -0
  703. /package/dist/chunks/{vcs-4vcrnpx2.js → location-4vcrnpx2.js} +0 -0
  704. /package/dist/chunks/{vcs-4y7fprxs.js → location-4y7fprxs.js} +0 -0
  705. /package/dist/chunks/{vcs-53557ph1.js → location-53557ph1.js} +0 -0
  706. /package/dist/chunks/{vcs-550bvhaj.js → location-550bvhaj.js} +0 -0
  707. /package/dist/chunks/{vcs-5qd3pb7m.js → location-5qd3pb7m.js} +0 -0
  708. /package/dist/chunks/{vcs-6prwharc.js → location-6prwharc.js} +0 -0
  709. /package/dist/chunks/{vcs-7akdwqpd.js → location-7akdwqpd.js} +0 -0
  710. /package/dist/chunks/{vcs-7m9af43g.js → location-7m9af43g.js} +0 -0
  711. /package/dist/chunks/{vcs-822emrt2.js → location-822emrt2.js} +0 -0
  712. /package/dist/chunks/{vcs-88xbtdfr.js → location-88xbtdfr.js} +0 -0
  713. /package/dist/chunks/{vcs-8n3pysct.js → location-8n3pysct.js} +0 -0
  714. /package/dist/chunks/{vcs-8wj87zfr.js → location-8wj87zfr.js} +0 -0
  715. /package/dist/chunks/{vcs-9a4afbnw.js → location-9a4afbnw.js} +0 -0
  716. /package/dist/chunks/{vcs-9rqn6x4v.js → location-9rqn6x4v.js} +0 -0
  717. /package/dist/chunks/{vcs-a6k6eb26.js → location-a6k6eb26.js} +0 -0
  718. /package/dist/chunks/{vcs-af5trqkr.js → location-af5trqkr.js} +0 -0
  719. /package/dist/chunks/{vcs-afrmfg78.js → location-afrmfg78.js} +0 -0
  720. /package/dist/chunks/{vcs-aqzs7mqg.js → location-aqzs7mqg.js} +0 -0
  721. /package/dist/chunks/{vcs-atq7p7m5.js → location-atq7p7m5.js} +0 -0
  722. /package/dist/chunks/{vcs-bkyjaxrp.js → location-bkyjaxrp.js} +0 -0
  723. /package/dist/chunks/{vcs-bmr6ed5q.js → location-bmr6ed5q.js} +0 -0
  724. /package/dist/chunks/{vcs-cf4snx6d.js → location-cf4snx6d.js} +0 -0
  725. /package/dist/chunks/{vcs-cvy3z8tj.js → location-cvy3z8tj.js} +0 -0
  726. /package/dist/chunks/{vcs-d9fn303g.js → location-d9fn303g.js} +0 -0
  727. /package/dist/chunks/{vcs-d9jj8t3e.js → location-d9jj8t3e.js} +0 -0
  728. /package/dist/chunks/{vcs-dajrwvna.js → location-dajrwvna.js} +0 -0
  729. /package/dist/chunks/{vcs-dap0rakb.js → location-dap0rakb.js} +0 -0
  730. /package/dist/chunks/{vcs-df08tz66.js → location-df08tz66.js} +0 -0
  731. /package/dist/chunks/{vcs-dy18nga0.js → location-dy18nga0.js} +0 -0
  732. /package/dist/chunks/{vcs-e5kj55wp.js → location-e5kj55wp.js} +0 -0
  733. /package/dist/chunks/{vcs-e73j6tqm.js → location-e73j6tqm.js} +0 -0
  734. /package/dist/chunks/{vcs-ec1grn59.js → location-ec1grn59.js} +0 -0
  735. /package/dist/chunks/{vcs-eh3zwz77.js → location-eh3zwz77.js} +0 -0
  736. /package/dist/chunks/{vcs-emrn6kk6.js → location-emrn6kk6.js} +0 -0
  737. /package/dist/chunks/{vcs-f0mxakyp.js → location-f0mxakyp.js} +0 -0
  738. /package/dist/chunks/{vcs-f6n9ztr4.js → location-f6n9ztr4.js} +0 -0
  739. /package/dist/chunks/{vcs-faypxj3z.js → location-faypxj3z.js} +0 -0
  740. /package/dist/chunks/{vcs-fd410y7t.js → location-fd410y7t.js} +0 -0
  741. /package/dist/chunks/{vcs-fxgpk5d8.js → location-fxgpk5d8.js} +0 -0
  742. /package/dist/chunks/{vcs-g4wezp1m.js → location-g4wezp1m.js} +0 -0
  743. /package/dist/chunks/{vcs-g86h250q.js → location-g86h250q.js} +0 -0
  744. /package/dist/chunks/{vcs-gebd4c9n.js → location-gebd4c9n.js} +0 -0
  745. /package/dist/chunks/{vcs-gftt206x.js → location-gftt206x.js} +0 -0
  746. /package/dist/chunks/{vcs-hjbc5kem.js → location-hjbc5kem.js} +0 -0
  747. /package/dist/chunks/{vcs-hk9envan.js → location-hk9envan.js} +0 -0
  748. /package/dist/chunks/{vcs-j2ntwpah.js → location-j2ntwpah.js} +0 -0
  749. /package/dist/chunks/{vcs-j5zkgpj8.js → location-j5zkgpj8.js} +0 -0
  750. /package/dist/chunks/{vcs-jjkms2e6.js → location-jjkms2e6.js} +0 -0
  751. /package/dist/chunks/{vcs-jr7sbwjy.js → location-jr7sbwjy.js} +0 -0
  752. /package/dist/chunks/{vcs-jwfs4k6c.js → location-jwfs4k6c.js} +0 -0
  753. /package/dist/chunks/{vcs-jzg6c2d5.js → location-jzg6c2d5.js} +0 -0
  754. /package/dist/chunks/{vcs-mp448xyj.js → location-mp448xyj.js} +0 -0
  755. /package/dist/chunks/{vcs-msx8hqn2.js → location-msx8hqn2.js} +0 -0
  756. /package/dist/chunks/{vcs-n05xt0ee.js → location-n05xt0ee.js} +0 -0
  757. /package/dist/chunks/{vcs-n3j8tn72.js → location-n3j8tn72.js} +0 -0
  758. /package/dist/chunks/{vcs-njntx4h6.js → location-njntx4h6.js} +0 -0
  759. /package/dist/chunks/{vcs-q3sfg36h.js → location-q3sfg36h.js} +0 -0
  760. /package/dist/chunks/{vcs-q74kybfr.js → location-q74kybfr.js} +0 -0
  761. /package/dist/chunks/{vcs-qaymkmh1.js → location-qaymkmh1.js} +0 -0
  762. /package/dist/chunks/{vcs-qb87gjwd.js → location-qb87gjwd.js} +0 -0
  763. /package/dist/chunks/{vcs-qfa1cgps.js → location-qfa1cgps.js} +0 -0
  764. /package/dist/chunks/{vcs-qg3g05ea.js → location-qg3g05ea.js} +0 -0
  765. /package/dist/chunks/{vcs-qrg20bc0.js → location-qrg20bc0.js} +0 -0
  766. /package/dist/chunks/{vcs-rcb2kzg1.js → location-rcb2kzg1.js} +0 -0
  767. /package/dist/chunks/{vcs-sdp7kfr6.js → location-sdp7kfr6.js} +0 -0
  768. /package/dist/chunks/{vcs-ssg3fenm.js → location-ssg3fenm.js} +0 -0
  769. /package/dist/chunks/{vcs-w803qqfp.js → location-w803qqfp.js} +0 -0
  770. /package/dist/chunks/{vcs-wc3fc9cn.js → location-wc3fc9cn.js} +0 -0
  771. /package/dist/chunks/{vcs-wer8tq1h.js → location-wer8tq1h.js} +0 -0
  772. /package/dist/chunks/{vcs-wtztk69x.js → location-wtztk69x.js} +0 -0
  773. /package/dist/chunks/{vcs-x0ckcb58.js → location-x0ckcb58.js} +0 -0
  774. /package/dist/chunks/{vcs-x61499pn.js → location-x61499pn.js} +0 -0
  775. /package/dist/chunks/{vcs-y44na4kk.js → location-y44na4kk.js} +0 -0
  776. /package/dist/chunks/{vcs-y8cydn3q.js → location-y8cydn3q.js} +0 -0
  777. /package/dist/chunks/{vcs-y8f7s663.js → location-y8f7s663.js} +0 -0
  778. /package/dist/chunks/{vcs-ygaqb7jw.js → location-ygaqb7jw.js} +0 -0
  779. /package/dist/chunks/{vcs-ym463w8f.js → location-ym463w8f.js} +0 -0
  780. /package/dist/chunks/{vcs-z5v4ffb3.js → location-z5v4ffb3.js} +0 -0
  781. /package/dist/chunks/{vcs-z9919s4g.js → location-z9919s4g.js} +0 -0
@@ -1,27 +1,36 @@
1
1
  import {
2
2
  Service83,
3
3
  node87
4
- } from "./vcs-emy2mr0p.js";
4
+ } from "./location-adjgd6nn.js";
5
5
  import {
6
6
  shutdown2,
7
7
  create3
8
- } from "./vcs-rdw6cm16.js";
8
+ } from "./location-rdw6cm16.js";
9
9
  import {
10
10
  key2
11
- } from "./vcs-gqtdsdt7.js";
11
+ } from "./location-addxnjmp.js";
12
12
  import {
13
- ID8,
14
- Service66,
15
- node70,
16
- Event14
17
- } from "./vcs-p6czjpb3.js";
13
+ ID14,
14
+ Service76,
15
+ node80,
16
+ Event18
17
+ } from "./location-6t32vnd6.js";
18
18
  import {
19
- Service78,
20
- node82
21
- } from "./vcs-1x3tt5d7.js";
19
+ Service80,
20
+ node84
21
+ } from "./location-72n52cxe.js";
22
22
  import {
23
23
  __export
24
- } from "./vcs-9rqn6x4v.js";
24
+ } from "./location-9rqn6x4v.js";
25
+
26
+ // src/aisdk-native.ts
27
+ var exports_aisdk_native = {};
28
+ __export(exports_aisdk_native, {
29
+ AISDKNative: () => exports_aisdk_native,
30
+ native: () => native2,
31
+ rewrite: () => rewrite2
32
+ });
33
+ import { Effect as Effect2, Option as Option2, Schema as Schema2, Struct as Struct2 } from "effect";
25
34
 
26
35
  // src/provider.ts
27
36
  var exports_provider3 = {};
@@ -29,13 +38,13 @@ __export(exports_provider3, {
29
38
  AISDK_PREFIX: () => AISDK_PREFIX2,
30
39
  Compaction: () => Compaction3,
31
40
  DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS3,
32
- Event: () => Event13,
33
- ID: () => ID7,
34
- Info: () => Info17,
41
+ Event: () => Event17,
42
+ ID: () => ID12,
43
+ Info: () => Info21,
35
44
  LoadError: () => LoadError3,
36
45
  Provider: () => exports_provider3,
37
- Request: () => Request2,
38
- Service: () => Service65,
46
+ Request: () => Request3,
47
+ Service: () => Service72,
39
48
  Settings: () => Settings2,
40
49
  Transport: () => Transport2,
41
50
  aisdk: () => aisdk2,
@@ -45,12 +54,12 @@ __export(exports_provider3, {
45
54
  mergeOverlay: () => mergeOverlay2,
46
55
  modelSettings: () => modelSettings2,
47
56
  nativeSettings: () => nativeSettings2,
48
- node: () => node69,
57
+ node: () => node76,
49
58
  packageName: () => packageName2,
50
59
  timeout: () => timeout2,
51
60
  timeouts: () => timeouts2
52
61
  });
53
- import { Context, Effect as Effect2, Layer, Option as Option2, Schema as Schema2, Stream, Struct as Struct2 } from "effect";
62
+ import { Context, Effect, Layer, Option, Schema, Stream, Struct } from "effect";
54
63
  import { Provider } from "@opencode/schema/provider";
55
64
  import { Model } from "@opencode/schema/model";
56
65
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -59,267 +68,8 @@ import { isRecord } from "@opencode/ai/utils/record";
59
68
  import { importModule, resolveModule } from "@opencode/util/runtime-import";
60
69
  import { Credential } from "@opencode/schema/credential";
61
70
  import { freeze } from "immer";
62
-
63
- // src/aisdk-native.ts
64
- var exports_aisdk_native = {};
65
- __export(exports_aisdk_native, {
66
- AISDKNative: () => exports_aisdk_native,
67
- native: () => native2,
68
- rewrite: () => rewrite2
69
- });
70
- import { Effect, Option, Schema, Struct } from "effect";
71
- function rewrite2(target, input) {
72
- if (input.specifier === undefined)
73
- return;
74
- const plain = resolve(input.specifier, input);
75
- if (!plain)
76
- return;
77
- const settings = decode(target.settings ?? {});
78
- const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
79
- const translated = options(replacement, input.modelID, settings);
80
- if (target.package !== undefined || replacement !== input.specifier)
81
- target.package = replacement;
82
- target.settings = target.settings === undefined ? undefined : {
83
- ...translated.settings,
84
- ...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
85
- };
86
- target.headers = mergeHeaders2(translated.headers, target.headers);
87
- target.body = mergeOverlay2(translated.body, target.body);
88
- target.variants = target.variants?.map((variant) => {
89
- const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
90
- const headers = mergeHeaders2(overlay.headers, variant.headers);
91
- const body = mergeOverlay2(overlay.body, variant.body);
92
- return {
93
- id: variant.id,
94
- ...variant.settings === undefined ? {} : { settings: overlay.settings },
95
- ...headers === undefined ? {} : { headers },
96
- ...body === undefined ? {} : { body }
97
- };
98
- });
99
- }
100
- var PACKAGES = {
101
- "@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
102
- "@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
103
- "@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
104
- "@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
105
- "@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
106
- "@ai-sdk/cohere": "@opencode/ai/providers/cohere",
107
- "@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
108
- "@ai-sdk/google": "@opencode/ai/providers/google",
109
- "@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
110
- "@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
111
- "@ai-sdk/groq": "@opencode/ai/providers/groq",
112
- "@ai-sdk/mistral": "@opencode/ai/providers/mistral",
113
- "@ai-sdk/openai": "@opencode/ai/providers/openai",
114
- "@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
115
- "@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
116
- "@ai-sdk/xai": "@opencode/ai/providers/xai",
117
- "@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
118
- "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
119
- };
120
- var protocols = (name) => ({
121
- "@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
122
- "@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
123
- "@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
124
- });
125
- var HOSTS = {
126
- alibaba: protocols("alibaba"),
127
- "alibaba-cn": protocols("alibaba"),
128
- "alibaba-coding-plan": protocols("alibaba"),
129
- "alibaba-coding-plan-cn": protocols("alibaba"),
130
- "alibaba-token-plan": protocols("alibaba"),
131
- "alibaba-token-plan-cn": protocols("alibaba"),
132
- baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
133
- "cloudflare-ai-gateway": {
134
- "@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
135
- "@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
136
- "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
137
- "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
138
- },
139
- cohere: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cohere/chat" },
140
- "cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
141
- deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
142
- digitalocean: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/digitalocean" },
143
- "fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
144
- "google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
145
- "kimi-for-coding": protocols("moonshot"),
146
- meta: protocols("meta"),
147
- minimax: protocols("minimax"),
148
- "minimax-cn": protocols("minimax"),
149
- "minimax-coding-plan": protocols("minimax"),
150
- "minimax-cn-coding-plan": protocols("minimax"),
151
- moonshotai: protocols("moonshot"),
152
- "moonshotai-cn": protocols("moonshot"),
153
- zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
154
- "zai-coding-plan": protocols("zai-coding-plan"),
155
- zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
156
- "zhipuai-coding-plan": protocols("zai-coding-plan")
157
- };
158
- var NATIVE = new Set([
159
- ...Object.values(PACKAGES),
160
- ...Object.values(HOSTS).flatMap((host) => Object.values(host)),
161
- "@opencode/ai/providers/azure/chat",
162
- "@opencode/ai/providers/amazon-bedrock/mantle",
163
- "@opencode/ai/providers/amazon-bedrock/mantle/chat",
164
- "@opencode/ai/providers/amazon-bedrock/mantle/responses"
165
- ]);
166
- function native2(npm, context) {
167
- const host = HOSTS[context.providerID]?.[npm];
168
- if (host)
169
- return host;
170
- if (npm === "@ai-sdk/amazon-bedrock/mantle")
171
- return mantle(context.modelID);
172
- if (npm === "@ai-sdk/azure" && context.settings?.useCompletionUrls === true)
173
- return "@opencode/ai/providers/azure/chat";
174
- return PACKAGES[npm];
175
- }
176
- var mantle = (modelID) => {
177
- if (modelID === undefined)
178
- return "@opencode/ai/providers/amazon-bedrock/mantle";
179
- return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
180
- };
181
- function resolve(specifier, context) {
182
- const npm = packageName2(specifier);
183
- if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
184
- return native2(npm, context);
185
- if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
186
- return mantle(context.modelID);
187
- if (npm === "@opencode/ai/providers/azure/responses" && context.settings?.useCompletionUrls === true)
188
- return "@opencode/ai/providers/azure/chat";
189
- return NATIVE.has(npm) ? npm : undefined;
190
- }
191
- function options(replacement, modelID, settings) {
192
- const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
193
- const kept = Struct.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
194
- const thinking = converse ? bedrockThinking(modelID, settings) : undefined;
195
- return {
196
- settings: {
197
- ...replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
198
- ...thinking === undefined ? {} : { thinking }
199
- },
200
- ...settings.headers === undefined ? {} : { headers: settings.headers },
201
- ...settings.extraBody === undefined ? {} : { body: settings.extraBody },
202
- ...converse ? bedrockRequest(modelID, settings) : {},
203
- ...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
204
- };
205
- }
206
- var BEDROCK_KEYS = [
207
- "bearerToken",
208
- "endpoint",
209
- "credentials",
210
- "credentialProvider",
211
- "accessKeyId",
212
- "secretAccessKey",
213
- "sessionToken"
214
- ];
215
- var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
216
- function bedrockSettings(settings, converse) {
217
- const region = settings.region ?? settings.credentials?.region;
218
- const credentials = settings.credentials ?? settings;
219
- const baseURL = settings.baseURL ?? settings.endpoint;
220
- return {
221
- ...Struct.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
222
- ...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
223
- ...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
224
- ...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
225
- credentials: {
226
- ...region === undefined ? {} : { region },
227
- accessKeyId: credentials.accessKeyId,
228
- secretAccessKey: credentials.secretAccessKey,
229
- ...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
230
- }
231
- }
232
- };
233
- }
234
- function bedrockThinking(modelID, settings) {
235
- const reasoning = settings.reasoningConfig;
236
- if (!modelID?.includes("anthropic") || reasoning?.type !== "enabled" || reasoning.budgetTokens === undefined)
237
- return;
238
- return { type: "enabled", budgetTokens: reasoning.budgetTokens };
239
- }
240
- function bedrockRequest(modelID, settings) {
241
- const additional = settings.additionalModelRequestFields ?? {};
242
- const reasoning = settings.reasoningConfig;
243
- const anthropic = modelID?.includes("anthropic") ?? false;
244
- const openai = modelID?.includes("openai.") ?? false;
245
- const harmony = modelID?.includes("openai.gpt-oss") ?? false;
246
- const effort = reasoning?.maxReasoningEffort;
247
- const type = reasoning?.type;
248
- const budget = reasoning?.budgetTokens;
249
- const display = reasoning?.display;
250
- const betas = settings.anthropicBeta ?? [];
251
- const fields = mergeOverlay2(additional, {
252
- ...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
253
- ...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
254
- ...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
255
- ...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
256
- ...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
257
- ...!anthropic && !openai && effort !== undefined ? {
258
- reasoningConfig: {
259
- ...type === undefined || type === "adaptive" ? {} : { type },
260
- ...budget === undefined ? {} : { budgetTokens: budget },
261
- maxReasoningEffort: effort
262
- }
263
- } : {}
264
- });
265
- const body = {
266
- ...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
267
- ...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
268
- };
269
- return Object.keys(body).length === 0 ? {} : { body };
270
- }
271
- var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
272
- function openRouterRequest(settings) {
273
- const headers = mergeHeaders2({
274
- ...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
275
- ...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
276
- ...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
277
- }, settings.headers) ?? {};
278
- return Object.keys(headers).length === 0 ? {} : { headers };
279
- }
280
- var lenient = (schema) => Schema.optional(Schema.UndefinedOr(schema).pipe(Schema.catchDecoding(() => Effect.succeed(Option.some(undefined)))));
281
- var Credentials = Schema.Struct({
282
- accessKeyId: Schema.String,
283
- secretAccessKey: Schema.String,
284
- sessionToken: lenient(Schema.String),
285
- region: lenient(Schema.String)
286
- });
287
- var Legacy = Schema.StructWithRest(Schema.Struct({
288
- apiKey: lenient(Schema.String),
289
- baseURL: lenient(Schema.String),
290
- headers: lenient(Schema.Record(Schema.String, Schema.String)),
291
- extraBody: lenient(Schema.Record(Schema.String, Schema.Unknown)),
292
- useCompletionUrls: lenient(Schema.Boolean),
293
- auth: lenient(Schema.Literals(["bearer", "sigv4"])),
294
- bearerToken: lenient(Schema.String),
295
- endpoint: lenient(Schema.String),
296
- region: lenient(Schema.String),
297
- credentials: lenient(Credentials),
298
- accessKeyId: lenient(Schema.String),
299
- secretAccessKey: lenient(Schema.String),
300
- sessionToken: lenient(Schema.String),
301
- anthropicBeta: lenient(Schema.Array(Schema.String)),
302
- serviceTier: lenient(Schema.String),
303
- reasoningConfig: lenient(Schema.Struct({
304
- type: lenient(Schema.String),
305
- display: lenient(Schema.String),
306
- maxReasoningEffort: lenient(Schema.String),
307
- budgetTokens: lenient(Schema.Number)
308
- })),
309
- additionalModelRequestFields: lenient(Schema.StructWithRest(Schema.Struct({
310
- anthropic_beta: lenient(Schema.Array(Schema.String)),
311
- output_config: lenient(Schema.Record(Schema.String, Schema.Unknown)),
312
- reasoning: lenient(Schema.Record(Schema.String, Schema.Unknown))
313
- }), [Schema.Record(Schema.String, Schema.Unknown)])),
314
- appName: lenient(Schema.String),
315
- appUrl: lenient(Schema.String),
316
- api_keys: lenient(Schema.Record(Schema.String, Schema.String))
317
- }), [Schema.Record(Schema.String, Schema.Unknown)]);
318
- var decode = Schema.decodeUnknownSync(Legacy);
319
-
320
- // src/provider.ts
321
- import { Event as Event13 } from "@opencode/schema/provider";
322
- var ID7 = Provider.ID;
71
+ import { Event as Event17 } from "@opencode/schema/provider";
72
+ var ID12 = Provider.ID;
323
73
  var AISDK_PREFIX2 = "aisdk:";
324
74
  var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
325
75
  var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
@@ -330,12 +80,12 @@ function packageName2(value) {
330
80
  return value;
331
81
  return value.slice(AISDK_PREFIX2.length);
332
82
  }
333
- var JsonRecord = Schema2.Record(Schema2.String, Schema2.Json);
334
- var decodeJsonRecord = Schema2.decodeUnknownSync(JsonRecord);
83
+ var JsonRecord = Schema.Record(Schema.String, Schema.Json);
84
+ var decodeJsonRecord = Schema.decodeUnknownSync(JsonRecord);
335
85
 
336
- class LoadError3 extends Schema2.TaggedError()("Provider.LoadError", {
337
- package: Schema2.String,
338
- cause: Schema2.Defect()
86
+ class LoadError3 extends Schema.TaggedError()("Provider.LoadError", {
87
+ package: Schema.String,
88
+ cause: Schema.Defect()
339
89
  }) {
340
90
  }
341
91
  var packages = new Map;
@@ -400,12 +150,12 @@ var builtins = new Map([
400
150
  () => import("@opencode/ai/providers/zai-coding-plan/responses")
401
151
  ]
402
152
  ]);
403
- var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
153
+ var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
404
154
  const specifier = packageName2(input);
405
155
  const builtin = builtins.get(specifier);
406
156
  if (builtin)
407
157
  return yield* importPackage(specifier, specifier, builtin);
408
- const resolved = yield* Effect2.sync(() => {
158
+ const resolved = yield* Effect.sync(() => {
409
159
  if (specifier.startsWith("file://") || specifier.startsWith("@opencode/ai/"))
410
160
  return specifier;
411
161
  try {
@@ -424,8 +174,8 @@ var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
424
174
  }
425
175
  const parts = specifier.split("/");
426
176
  const root = specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0] ?? specifier;
427
- const installed = yield* npm.add(root).pipe(Effect2.mapError((cause) => new LoadError3({ package: specifier, cause })));
428
- const entrypoint = yield* Effect2.try({
177
+ const installed = yield* npm.add(root).pipe(Effect.mapError((cause) => new LoadError3({ package: specifier, cause })));
178
+ const entrypoint = yield* Effect.try({
429
179
  try: () => resolveModule(specifier, installed.directory),
430
180
  catch: (cause) => new LoadError3({ package: specifier, cause })
431
181
  });
@@ -434,15 +184,15 @@ var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
434
184
  var CORE_KEYS = ["chunkTimeout", "compaction", "fetch", "headerTimeout", "timeout", "transport"];
435
185
  var PROVIDER_ONLY_KEYS = ["chunkTimeout", "headerTimeout", "timeout", "transport"];
436
186
  function nativeSettings2(settings) {
437
- return Struct2.omit(settings, CORE_KEYS);
187
+ return Struct.omit(settings, CORE_KEYS);
438
188
  }
439
189
  function modelSettings2(settings) {
440
- return settings && Struct2.omit(settings, PROVIDER_ONLY_KEYS);
190
+ return settings && Struct.omit(settings, PROVIDER_ONLY_KEYS);
441
191
  }
442
- var decodeTimeout = Schema2.decodeUnknownOption(HttpTimeout);
192
+ var decodeTimeout = Schema.decodeUnknownOption(HttpTimeout);
443
193
  var DEFAULT_TIMEOUT_MS3 = 300000;
444
194
  function timeout2(value) {
445
- return Option2.getOrUndefined(decodeTimeout(value));
195
+ return Option.getOrUndefined(decodeTimeout(value));
446
196
  }
447
197
  function timeouts2(settings) {
448
198
  return {
@@ -476,13 +226,13 @@ function mergeHeaders2(base, overlay) {
476
226
  return result;
477
227
  }, new Map).values());
478
228
  }
479
- var Request2 = Provider.Request;
229
+ var Request3 = Provider.Request;
480
230
  var Compaction3 = Provider.Compaction;
481
231
  var Transport2 = Provider.Transport;
482
232
  var Settings2 = Provider.Settings;
483
- var Info17 = Provider.Info;
233
+ var Info21 = Provider.Info;
484
234
 
485
- class Service65 extends Context.Service()("@opencode/Provider") {
235
+ class Service72 extends Context.Service()("@opencode/Provider") {
486
236
  }
487
237
  var definitions = new WeakMap;
488
238
  function index(providerID, models) {
@@ -495,10 +245,10 @@ function index(providerID, models) {
495
245
  definitions.set(models, indexes);
496
246
  return result;
497
247
  }
498
- var layer = Layer.effect(Service65, Effect2.gen(function* () {
248
+ var layer = Layer.effect(Service72, Effect.gen(function* () {
499
249
  const bus = yield* Service83;
500
- const integrations = yield* Service66;
501
- const location = yield* Service78;
250
+ const integrations = yield* Service76;
251
+ const location = yield* Service80;
502
252
  const state = create3({
503
253
  name: "provider",
504
254
  initial: () => new Map,
@@ -509,7 +259,7 @@ var layer = Layer.effect(Service65, Effect2.gen(function* () {
509
259
  const current = records.get(id);
510
260
  if (current)
511
261
  return current;
512
- const added = { provider: Info17.empty(id), models: new Map };
262
+ const added = { provider: Info21.empty(id), models: new Map };
513
263
  records.set(id, added);
514
264
  maps.add(added.models);
515
265
  return added;
@@ -577,9 +327,9 @@ var layer = Layer.effect(Service65, Effect2.gen(function* () {
577
327
  },
578
328
  notify: () => notify
579
329
  });
580
- yield* Effect2.addFinalizer(() => shutdown2(state.reload()));
330
+ yield* Effect.addFinalizer(() => shutdown2(state.reload()));
581
331
  let cached;
582
- const snapshot = Effect2.fn("Provider.snapshot")(function* () {
332
+ const snapshot = Effect.fn("Provider.snapshot")(function* () {
583
333
  while (true) {
584
334
  const revision = integrations.revision();
585
335
  const records = state.get();
@@ -590,7 +340,7 @@ var layer = Layer.effect(Service65, Effect2.gen(function* () {
590
340
  const available = Array.from(records.values()).filter((record) => {
591
341
  if (record.provider.activation === "disabled")
592
342
  return false;
593
- const integration = byID.get(record.provider.integrationID ?? ID8.make(record.provider.id));
343
+ const integration = byID.get(record.provider.integrationID ?? ID14.make(record.provider.id));
594
344
  if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
595
345
  return false;
596
346
  if (record.provider.activation === "enabled")
@@ -607,7 +357,7 @@ var layer = Layer.effect(Service65, Effect2.gen(function* () {
607
357
  }
608
358
  });
609
359
  let published;
610
- const notify = Effect2.gen(function* () {
360
+ const notify = Effect.gen(function* () {
611
361
  const value = yield* snapshot();
612
362
  if (value === published)
613
363
  return;
@@ -616,19 +366,19 @@ var layer = Layer.effect(Service65, Effect2.gen(function* () {
616
366
  location: { directory: location.directory, workspaceID: location.workspaceID }
617
367
  });
618
368
  });
619
- yield* bus.subscribe([Event14.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect2.forkScoped({ startImmediately: true }));
620
- return Service65.of({
369
+ yield* bus.subscribe([Event18.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
370
+ return Service72.of({
621
371
  transform: state.transform,
622
372
  reload: state.reload,
623
- get: Effect2.fn("Provider.get")((id) => Effect2.sync(() => freeze(state.get().get(id)?.provider, true))),
624
- all: Effect2.fn("Provider.all")(() => Effect2.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
625
- available: Effect2.fn("Provider.available")(() => snapshot().pipe(Effect2.map((value) => value.providers))),
373
+ get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
374
+ all: Effect.fn("Provider.all")(() => Effect.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
375
+ available: Effect.fn("Provider.available")(() => snapshot().pipe(Effect.map((value) => value.providers))),
626
376
  snapshot
627
377
  });
628
378
  }));
629
- var node69 = makeLocationNode({ service: Service65, layer, deps: [node87, node70, node82] });
630
- var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
631
- const module = yield* Effect2.tryPromise({
379
+ var node76 = makeLocationNode({ service: Service72, layer, deps: [node87, node80, node84] });
380
+ var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
381
+ const module = yield* Effect.tryPromise({
632
382
  try: () => {
633
383
  const existing = packages.get(entrypoint);
634
384
  if (existing)
@@ -648,4 +398,254 @@ var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, e
648
398
  return module;
649
399
  });
650
400
 
651
- export { ID7, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, timeout2, timeouts2, mergeOverlay2, mergeHeaders2, Request2, Compaction3, Transport2, Settings2, Info17, Service65, node69, exports_provider3, Event13, rewrite2, native2, exports_aisdk_native };
401
+ // src/aisdk-native.ts
402
+ function rewrite2(target, input) {
403
+ if (input.specifier === undefined)
404
+ return;
405
+ const plain = resolve(input.specifier, input);
406
+ if (!plain)
407
+ return;
408
+ const settings = decode(target.settings ?? {});
409
+ const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
410
+ const translated = options(replacement, input.modelID, settings);
411
+ if (target.package !== undefined || replacement !== input.specifier)
412
+ target.package = replacement;
413
+ target.settings = target.settings === undefined ? undefined : {
414
+ ...translated.settings,
415
+ ...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
416
+ };
417
+ target.headers = mergeHeaders2(translated.headers, target.headers);
418
+ target.body = mergeOverlay2(translated.body, target.body);
419
+ target.variants = target.variants?.map((variant) => {
420
+ const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
421
+ const headers = mergeHeaders2(overlay.headers, variant.headers);
422
+ const body = mergeOverlay2(overlay.body, variant.body);
423
+ return {
424
+ id: variant.id,
425
+ ...variant.settings === undefined ? {} : { settings: overlay.settings },
426
+ ...headers === undefined ? {} : { headers },
427
+ ...body === undefined ? {} : { body }
428
+ };
429
+ });
430
+ }
431
+ var PACKAGES = {
432
+ "@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
433
+ "@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
434
+ "@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
435
+ "@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
436
+ "@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
437
+ "@ai-sdk/cohere": "@opencode/ai/providers/cohere",
438
+ "@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
439
+ "@ai-sdk/google": "@opencode/ai/providers/google",
440
+ "@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
441
+ "@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
442
+ "@ai-sdk/groq": "@opencode/ai/providers/groq",
443
+ "@ai-sdk/mistral": "@opencode/ai/providers/mistral",
444
+ "@ai-sdk/openai": "@opencode/ai/providers/openai",
445
+ "@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
446
+ "@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
447
+ "@ai-sdk/xai": "@opencode/ai/providers/xai",
448
+ "@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
449
+ "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
450
+ };
451
+ var protocols = (name) => ({
452
+ "@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
453
+ "@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
454
+ "@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
455
+ });
456
+ var HOSTS = {
457
+ alibaba: protocols("alibaba"),
458
+ "alibaba-cn": protocols("alibaba"),
459
+ "alibaba-coding-plan": protocols("alibaba"),
460
+ "alibaba-coding-plan-cn": protocols("alibaba"),
461
+ "alibaba-token-plan": protocols("alibaba"),
462
+ "alibaba-token-plan-cn": protocols("alibaba"),
463
+ baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
464
+ "cloudflare-ai-gateway": {
465
+ "@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
466
+ "@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
467
+ "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
468
+ "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
469
+ },
470
+ cohere: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cohere/chat" },
471
+ "cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
472
+ deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
473
+ digitalocean: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/digitalocean" },
474
+ "fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
475
+ "google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
476
+ "kimi-for-coding": protocols("moonshot"),
477
+ meta: protocols("meta"),
478
+ minimax: protocols("minimax"),
479
+ "minimax-cn": protocols("minimax"),
480
+ "minimax-coding-plan": protocols("minimax"),
481
+ "minimax-cn-coding-plan": protocols("minimax"),
482
+ moonshotai: protocols("moonshot"),
483
+ "moonshotai-cn": protocols("moonshot"),
484
+ zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
485
+ "zai-coding-plan": protocols("zai-coding-plan"),
486
+ zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
487
+ "zhipuai-coding-plan": protocols("zai-coding-plan")
488
+ };
489
+ var NATIVE = new Set([
490
+ ...Object.values(PACKAGES),
491
+ ...Object.values(HOSTS).flatMap((host) => Object.values(host)),
492
+ "@opencode/ai/providers/azure/chat",
493
+ "@opencode/ai/providers/amazon-bedrock/mantle",
494
+ "@opencode/ai/providers/amazon-bedrock/mantle/chat",
495
+ "@opencode/ai/providers/amazon-bedrock/mantle/responses"
496
+ ]);
497
+ function native2(npm, context) {
498
+ const host = HOSTS[context.providerID]?.[npm];
499
+ if (host)
500
+ return host;
501
+ if (npm === "@ai-sdk/amazon-bedrock/mantle")
502
+ return mantle(context.modelID);
503
+ if (npm === "@ai-sdk/azure" && context.settings?.useCompletionUrls === true)
504
+ return "@opencode/ai/providers/azure/chat";
505
+ return PACKAGES[npm];
506
+ }
507
+ var mantle = (modelID) => {
508
+ if (modelID === undefined)
509
+ return "@opencode/ai/providers/amazon-bedrock/mantle";
510
+ return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
511
+ };
512
+ function resolve(specifier, context) {
513
+ const npm = packageName2(specifier);
514
+ if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
515
+ return native2(npm, context);
516
+ if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
517
+ return mantle(context.modelID);
518
+ if (npm === "@opencode/ai/providers/azure/responses" && context.settings?.useCompletionUrls === true)
519
+ return "@opencode/ai/providers/azure/chat";
520
+ return NATIVE.has(npm) ? npm : undefined;
521
+ }
522
+ function options(replacement, modelID, settings) {
523
+ const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
524
+ const kept = Struct2.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
525
+ const thinking = converse ? bedrockThinking(modelID, settings) : undefined;
526
+ return {
527
+ settings: {
528
+ ...replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
529
+ ...thinking === undefined ? {} : { thinking }
530
+ },
531
+ ...settings.headers === undefined ? {} : { headers: settings.headers },
532
+ ...settings.extraBody === undefined ? {} : { body: settings.extraBody },
533
+ ...converse ? bedrockRequest(modelID, settings) : {},
534
+ ...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
535
+ };
536
+ }
537
+ var BEDROCK_KEYS = [
538
+ "bearerToken",
539
+ "endpoint",
540
+ "credentials",
541
+ "credentialProvider",
542
+ "accessKeyId",
543
+ "secretAccessKey",
544
+ "sessionToken"
545
+ ];
546
+ var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
547
+ function bedrockSettings(settings, converse) {
548
+ const region = settings.region ?? settings.credentials?.region;
549
+ const credentials = settings.credentials ?? settings;
550
+ const baseURL = settings.baseURL ?? settings.endpoint;
551
+ return {
552
+ ...Struct2.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
553
+ ...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
554
+ ...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
555
+ ...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
556
+ credentials: {
557
+ ...region === undefined ? {} : { region },
558
+ accessKeyId: credentials.accessKeyId,
559
+ secretAccessKey: credentials.secretAccessKey,
560
+ ...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
561
+ }
562
+ }
563
+ };
564
+ }
565
+ function bedrockThinking(modelID, settings) {
566
+ const reasoning = settings.reasoningConfig;
567
+ if (!modelID?.includes("anthropic") || reasoning?.type !== "enabled" || reasoning.budgetTokens === undefined)
568
+ return;
569
+ return { type: "enabled", budgetTokens: reasoning.budgetTokens };
570
+ }
571
+ function bedrockRequest(modelID, settings) {
572
+ const additional = settings.additionalModelRequestFields ?? {};
573
+ const reasoning = settings.reasoningConfig;
574
+ const anthropic = modelID?.includes("anthropic") ?? false;
575
+ const openai = modelID?.includes("openai.") ?? false;
576
+ const harmony = modelID?.includes("openai.gpt-oss") ?? false;
577
+ const effort = reasoning?.maxReasoningEffort;
578
+ const type = reasoning?.type;
579
+ const budget = reasoning?.budgetTokens;
580
+ const display = reasoning?.display;
581
+ const betas = settings.anthropicBeta ?? [];
582
+ const fields = mergeOverlay2(additional, {
583
+ ...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
584
+ ...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
585
+ ...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
586
+ ...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
587
+ ...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
588
+ ...!anthropic && !openai && effort !== undefined ? {
589
+ reasoningConfig: {
590
+ ...type === undefined || type === "adaptive" ? {} : { type },
591
+ ...budget === undefined ? {} : { budgetTokens: budget },
592
+ maxReasoningEffort: effort
593
+ }
594
+ } : {}
595
+ });
596
+ const body = {
597
+ ...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
598
+ ...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
599
+ };
600
+ return Object.keys(body).length === 0 ? {} : { body };
601
+ }
602
+ var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
603
+ function openRouterRequest(settings) {
604
+ const headers = mergeHeaders2({
605
+ ...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
606
+ ...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
607
+ ...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
608
+ }, settings.headers) ?? {};
609
+ return Object.keys(headers).length === 0 ? {} : { headers };
610
+ }
611
+ var lenient = (schema) => Schema2.optional(Schema2.UndefinedOr(schema).pipe(Schema2.catchDecoding(() => Effect2.succeed(Option2.some(undefined)))));
612
+ var Credentials = Schema2.Struct({
613
+ accessKeyId: Schema2.String,
614
+ secretAccessKey: Schema2.String,
615
+ sessionToken: lenient(Schema2.String),
616
+ region: lenient(Schema2.String)
617
+ });
618
+ var Legacy = Schema2.StructWithRest(Schema2.Struct({
619
+ apiKey: lenient(Schema2.String),
620
+ baseURL: lenient(Schema2.String),
621
+ headers: lenient(Schema2.Record(Schema2.String, Schema2.String)),
622
+ extraBody: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
623
+ useCompletionUrls: lenient(Schema2.Boolean),
624
+ auth: lenient(Schema2.Literals(["bearer", "sigv4"])),
625
+ bearerToken: lenient(Schema2.String),
626
+ endpoint: lenient(Schema2.String),
627
+ region: lenient(Schema2.String),
628
+ credentials: lenient(Credentials),
629
+ accessKeyId: lenient(Schema2.String),
630
+ secretAccessKey: lenient(Schema2.String),
631
+ sessionToken: lenient(Schema2.String),
632
+ anthropicBeta: lenient(Schema2.Array(Schema2.String)),
633
+ serviceTier: lenient(Schema2.String),
634
+ reasoningConfig: lenient(Schema2.Struct({
635
+ type: lenient(Schema2.String),
636
+ display: lenient(Schema2.String),
637
+ maxReasoningEffort: lenient(Schema2.String),
638
+ budgetTokens: lenient(Schema2.Number)
639
+ })),
640
+ additionalModelRequestFields: lenient(Schema2.StructWithRest(Schema2.Struct({
641
+ anthropic_beta: lenient(Schema2.Array(Schema2.String)),
642
+ output_config: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
643
+ reasoning: lenient(Schema2.Record(Schema2.String, Schema2.Unknown))
644
+ }), [Schema2.Record(Schema2.String, Schema2.Unknown)])),
645
+ appName: lenient(Schema2.String),
646
+ appUrl: lenient(Schema2.String),
647
+ api_keys: lenient(Schema2.Record(Schema2.String, Schema2.String))
648
+ }), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
649
+ var decode = Schema2.decodeUnknownSync(Legacy);
650
+
651
+ export { rewrite2, native2, exports_aisdk_native, ID12, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, timeout2, timeouts2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info21, Service72, node76, exports_provider3, Event17 };