@opencode/core 0.0.0-dev-20067 → 0.0.0-dev-20068

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 (800) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +83 -83
  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/{repository-es9eybw2.js → schema-04t6vhh2.js} +11 -11
  8. package/dist/chunks/{repository-3s43hn5t.js → schema-0ak0g8qp.js} +3 -3
  9. package/dist/chunks/{repository-g0kgf922.js → schema-0eppds2k.js} +6 -6
  10. package/dist/chunks/schema-0et57d8k.js +252 -0
  11. package/dist/chunks/{repository-rph3zd4r.js → schema-0ft9cg2j.js} +4 -4
  12. package/dist/chunks/{repository-0paq2nw3.js → schema-0paq2nw3.js} +1 -1
  13. package/dist/chunks/{repository-naep0e5n.js → schema-0wddnwfq.js} +20 -20
  14. package/dist/chunks/{repository-rp43rah6.js → schema-1365j5nm.js} +13 -13
  15. package/dist/chunks/{repository-7s2tn799.js → schema-15nepkqg.js} +8 -8
  16. package/dist/chunks/{repository-p37cw4rj.js → schema-1ajx6rf5.js} +8 -8
  17. package/dist/chunks/{repository-3rk7bqzq.js → schema-1brzvxsn.js} +8 -8
  18. package/dist/chunks/{repository-1dazxqgg.js → schema-1dazxqgg.js} +2 -2
  19. package/dist/chunks/{repository-3yv9m03g.js → schema-1fgq5ex7.js} +26 -26
  20. package/dist/chunks/{repository-6wg7wrda.js → schema-1fmrbde1.js} +6 -6
  21. package/dist/chunks/{repository-0c1nc1g2.js → schema-1rd6czrg.js} +4 -4
  22. package/dist/chunks/{repository-9e0shq8y.js → schema-21kk9ey9.js} +2 -2
  23. package/dist/chunks/{repository-21r38tys.js → schema-21r38tys.js} +1 -1
  24. package/dist/chunks/{repository-x5x7d8yk.js → schema-21xm8fz3.js} +10 -10
  25. package/dist/chunks/{repository-g2066sd0.js → schema-22y0n5cd.js} +11 -11
  26. package/dist/chunks/{repository-40dfcbtc.js → schema-23sw09pj.js} +5 -5
  27. package/dist/chunks/{repository-6h73sxmp.js → schema-2402vzrj.js} +5 -5
  28. package/dist/chunks/{repository-2a5m3afh.js → schema-2a5m3afh.js} +1 -1
  29. package/dist/chunks/{repository-115t4k1h.js → schema-2gv5qy1y.js} +12 -12
  30. package/dist/chunks/{repository-h2qs67km.js → schema-2krp1dn7.js} +11 -11
  31. package/dist/chunks/{repository-7nf3ddzq.js → schema-2s9emtnm.js} +13 -13
  32. package/dist/chunks/{repository-rt22yq9v.js → schema-2xanj3y6.js} +25 -25
  33. package/dist/chunks/{repository-9f40cav3.js → schema-32ngwk73.js} +13 -13
  34. package/dist/chunks/{repository-khm1sf7f.js → schema-3djsbczj.js} +4 -4
  35. package/dist/chunks/{repository-p57dvf2n.js → schema-3e147rt9.js} +7 -7
  36. package/dist/chunks/{repository-ajdggk3v.js → schema-3e5hztjw.js} +4 -4
  37. package/dist/chunks/{repository-3fc6dm20.js → schema-3fc6dm20.js} +1 -1
  38. package/dist/chunks/{repository-3hepkmqq.js → schema-3hepkmqq.js} +1 -1
  39. package/dist/chunks/{repository-rxzqzsj3.js → schema-3n6q8bv2.js} +15 -15
  40. package/dist/chunks/{repository-kx253xx8.js → schema-3pgqp7v9.js} +4 -4
  41. package/dist/chunks/{repository-nz569jqt.js → schema-3qaj82j9.js} +5 -5
  42. package/dist/chunks/{repository-3smtnn6g.js → schema-3smtnn6g.js} +1 -1
  43. package/dist/chunks/{repository-3tvqynh2.js → schema-3tvqynh2.js} +1 -1
  44. package/dist/chunks/{repository-3zsf4n22.js → schema-3zsf4n22.js} +1 -1
  45. package/dist/chunks/{repository-rb1ekxdp.js → schema-43vj5j1g.js} +42 -42
  46. package/dist/chunks/{repository-bhxp9hdq.js → schema-4cmte46y.js} +6 -6
  47. package/dist/chunks/{repository-72p6r3xc.js → schema-4etra8x0.js} +13 -13
  48. package/dist/chunks/{repository-bd3nb3vt.js → schema-4g0aw377.js} +8 -8
  49. package/dist/chunks/{repository-djwrd78c.js → schema-4m11sss1.js} +34 -34
  50. package/dist/chunks/{repository-9h1eecz9.js → schema-4p60s6mc.js} +84 -84
  51. package/dist/chunks/{repository-855aw91c.js → schema-4pe5mkqw.js} +16 -16
  52. package/dist/chunks/{repository-gby7h8ab.js → schema-4pkmhnfb.js} +12 -12
  53. package/dist/chunks/{repository-k5dsc5hs.js → schema-4r89mkx8.js} +6 -6
  54. package/dist/chunks/{repository-55t602r9.js → schema-4tzv48n0.js} +33 -33
  55. package/dist/chunks/{repository-nxc66smq.js → schema-4xstzax4.js} +17 -17
  56. package/dist/chunks/{repository-actq9frn.js → schema-51dx2b5g.js} +15 -15
  57. package/dist/chunks/{repository-0pr3hkd7.js → schema-53fyba40.js} +4 -4
  58. package/dist/chunks/{repository-xfkkasph.js → schema-57b9ws8p.js} +7 -7
  59. package/dist/chunks/{repository-rrqraew9.js → schema-57ez7d0k.js} +9 -9
  60. package/dist/chunks/{repository-6bsje7ws.js → schema-5cmxdwv8.js} +3 -3
  61. package/dist/chunks/{repository-5daktx2q.js → schema-5daktx2q.js} +1 -1
  62. package/dist/chunks/{repository-5ekn9679.js → schema-5ekn9679.js} +1 -1
  63. package/dist/chunks/{repository-5re94sxb.js → schema-5p1sgbr7.js} +9 -9
  64. package/dist/chunks/{repository-e3qxr5gk.js → schema-5qd3pb7m.js} +2 -2
  65. package/dist/chunks/{repository-5t3nmthw.js → schema-5t3nmthw.js} +2 -2
  66. package/dist/chunks/{repository-faxz800z.js → schema-607q5haz.js} +12 -12
  67. package/dist/chunks/{repository-669tq793.js → schema-669tq793.js} +1 -1
  68. package/dist/chunks/{repository-vka4dmj0.js → schema-6a6hn4p4.js} +20 -20
  69. package/dist/chunks/{repository-s28bjvt5.js → schema-6htx4nwr.js} +18 -18
  70. package/dist/chunks/{repository-6msgmcgs.js → schema-6msgmcgs.js} +1 -1
  71. package/dist/chunks/{repository-wmq3bkd4.js → schema-6ysrkrkr.js} +8 -8
  72. package/dist/chunks/{repository-my3s7g2v.js → schema-71g12y8g.js} +6 -6
  73. package/dist/chunks/{repository-fxr6x0aq.js → schema-750bqw08.js} +13 -13
  74. package/dist/chunks/{repository-0cry2zrq.js → schema-798v7mfg.js} +11 -11
  75. package/dist/chunks/{repository-1d8ygdpn.js → schema-79y3jrde.js} +17 -17
  76. package/dist/chunks/{repository-7bmhse3q.js → schema-7bmhse3q.js} +1 -1
  77. package/dist/chunks/{repository-mpqj6jx7.js → schema-7mqqegap.js} +7 -7
  78. package/dist/chunks/{repository-yz4vzcv9.js → schema-8349yjnv.js} +17 -17
  79. package/dist/chunks/{repository-kpwmpstw.js → schema-84s1vm7q.js} +11 -11
  80. package/dist/chunks/{repository-wrtzz9dy.js → schema-854y6ept.js} +36 -36
  81. package/dist/chunks/{repository-4nddn0b6.js → schema-86n5f4j7.js} +6 -6
  82. package/dist/chunks/{repository-3y7z246r.js → schema-8a9kwrve.js} +26 -26
  83. package/dist/chunks/{repository-8d7r5vzw.js → schema-8d7r5vzw.js} +1 -1
  84. package/dist/chunks/{repository-0e3mg8wg.js → schema-8qmjzw20.js} +18 -18
  85. package/dist/chunks/{repository-94ek1h2f.js → schema-94ek1h2f.js} +2 -2
  86. package/dist/chunks/{repository-kk7xnzba.js → schema-99249730.js} +1 -1
  87. package/dist/chunks/{repository-t2rxy3d5.js → schema-99647hmk.js} +32 -32
  88. package/dist/chunks/{repository-emevknz1.js → schema-9jm5k1pc.js} +8 -8
  89. package/dist/chunks/{repository-2zbc03eg.js → schema-9jn1v8n4.js} +24 -24
  90. package/dist/chunks/{repository-f90zn7ca.js → schema-9n8ak2h1.js} +4 -4
  91. package/dist/chunks/{repository-gwp4cf3v.js → schema-a1w0bh0r.js} +35 -35
  92. package/dist/chunks/{repository-0xezjjjn.js → schema-a2qe2ev9.js} +8 -8
  93. package/dist/chunks/{repository-aaet6srn.js → schema-aaet6srn.js} +2 -2
  94. package/dist/chunks/{repository-n2ahj3nb.js → schema-azejft3h.js} +13 -13
  95. package/dist/chunks/{repository-7cc8avcc.js → schema-azgx1nga.js} +19 -19
  96. package/dist/chunks/{repository-cm70vevn.js → schema-b26at605.js} +11 -11
  97. package/dist/chunks/{repository-b6gygkdw.js → schema-b6gygkdw.js} +2 -2
  98. package/dist/chunks/{repository-j0vh8jjz.js → schema-b74jhqyh.js} +25 -25
  99. package/dist/chunks/{repository-1dnqgg3s.js → schema-bc8ybda4.js} +9 -9
  100. package/dist/chunks/{repository-hngsf9ze.js → schema-bfsvxfz0.js} +24 -24
  101. package/dist/chunks/{repository-mtjp9z6s.js → schema-bkk1ay02.js} +14 -14
  102. package/dist/chunks/{repository-vsp4125s.js → schema-bq4g5957.js} +4 -4
  103. package/dist/chunks/{repository-h297ymck.js → schema-bttjrvqw.js} +11 -11
  104. package/dist/chunks/{repository-gr0jztbm.js → schema-bxav69s2.js} +18 -18
  105. package/dist/chunks/{repository-660wmw6d.js → schema-c0knr1es.js} +19 -19
  106. package/dist/chunks/{repository-1t7xnya2.js → schema-c21zn749.js} +11 -11
  107. package/dist/chunks/{repository-bmhahcnt.js → schema-c3whs05w.js} +3 -3
  108. package/dist/chunks/{repository-4ragw8tk.js → schema-c99cqkw7.js} +24 -24
  109. package/dist/chunks/{repository-xbw2xfj9.js → schema-cbmy1d4v.js} +5 -5
  110. package/dist/chunks/{repository-ckecvw8r.js → schema-ckecvw8r.js} +2 -2
  111. package/dist/chunks/{repository-h6r3nrb9.js → schema-cpj0znwe.js} +4 -4
  112. package/dist/chunks/{repository-1g9ztc78.js → schema-cvcncckx.js} +41 -41
  113. package/dist/chunks/{repository-1e86tkh9.js → schema-cvekkaw8.js} +11 -11
  114. package/dist/chunks/{repository-5rk57adz.js → schema-d08f925z.js} +5 -5
  115. package/dist/chunks/{repository-bprjk2xr.js → schema-d0jrvpgb.js} +27 -27
  116. package/dist/chunks/{repository-hysnaan8.js → schema-d0wejq28.js} +3 -3
  117. package/dist/chunks/{repository-t0sqncza.js → schema-d9wzmzc3.js} +5 -5
  118. package/dist/chunks/{repository-05nshcdg.js → schema-dgb7xf30.js} +24 -24
  119. package/dist/chunks/{repository-r2m716tb.js → schema-djszqvmq.js} +9 -9
  120. package/dist/chunks/{repository-y71avatq.js → schema-dpkg50ah.js} +4 -4
  121. package/dist/chunks/{repository-gwmntvvs.js → schema-dq5ym5fs.js} +37 -37
  122. package/dist/chunks/{repository-5ah4ptg6.js → schema-dtnx79zk.js} +21 -21
  123. package/dist/chunks/{repository-a0s974gf.js → schema-dvgd3rha.js} +3 -3
  124. package/dist/chunks/{repository-3nwqvhst.js → schema-dwpj3xc6.js} +11 -11
  125. package/dist/chunks/{repository-ya6d81gt.js → schema-dx61neqa.js} +20 -20
  126. package/dist/chunks/schema-dxj72tfx.js +18 -0
  127. package/dist/chunks/{repository-x7zswy26.js → schema-e89kpxws.js} +11 -11
  128. package/dist/chunks/{repository-t1tem6a2.js → schema-e8f8pgjf.js} +27 -27
  129. package/dist/chunks/{repository-fs4kxnc4.js → schema-e9k66s6p.js} +5 -5
  130. package/dist/chunks/{repository-eaj1djv9.js → schema-eaj1djv9.js} +1 -1
  131. package/dist/chunks/{repository-ef5x83kb.js → schema-ef5x83kb.js} +1 -1
  132. package/dist/chunks/{repository-8czqb76g.js → schema-egc3yevh.js} +14 -14
  133. package/dist/chunks/{repository-erw5rpbs.js → schema-erw5rpbs.js} +2 -2
  134. package/dist/chunks/{repository-etq0c3wd.js → schema-etq0c3wd.js} +1 -1
  135. package/dist/chunks/{repository-qh54trmw.js → schema-ev08srva.js} +17 -17
  136. package/dist/chunks/{repository-c78bbtc9.js → schema-evbgk2k8.js} +5 -5
  137. package/dist/chunks/{repository-hz151azf.js → schema-ey28dp55.js} +13 -13
  138. package/dist/chunks/{repository-9btcgg48.js → schema-f5thdj5b.js} +44 -44
  139. package/dist/chunks/{repository-jhmd4ezs.js → schema-f6p0q2g2.js} +15 -15
  140. package/dist/chunks/{repository-jdzrt0z1.js → schema-f724bymh.js} +24 -24
  141. package/dist/chunks/{repository-srfhtv6w.js → schema-f9t32q2w.js} +9 -9
  142. package/dist/chunks/{repository-5md3tagz.js → schema-feqe9m6b.js} +24 -24
  143. package/dist/chunks/{repository-gcmeeq5b.js → schema-fnxsaa4j.js} +22 -22
  144. package/dist/chunks/{repository-0yf2ggb4.js → schema-g17ae1qh.js} +3 -3
  145. package/dist/chunks/{repository-kgeqhxvw.js → schema-g3mqb04e.js} +11 -11
  146. package/dist/chunks/{repository-gd4qta3r.js → schema-gd4qta3r.js} +1 -1
  147. package/dist/chunks/{repository-pgej9n36.js → schema-gdt8128r.js} +18 -18
  148. package/dist/chunks/{repository-67rsx3vb.js → schema-gs95kj1c.js} +24 -24
  149. package/dist/chunks/{repository-dmzyn4sw.js → schema-gsac5713.js} +23 -23
  150. package/dist/chunks/{repository-25wpb8ep.js → schema-gsk7mn2e.js} +177 -177
  151. package/dist/chunks/{repository-gv6a8nnw.js → schema-gv6a8nnw.js} +2 -2
  152. package/dist/chunks/{repository-h6vf3j39.js → schema-h6vf3j39.js} +1 -1
  153. package/dist/chunks/{repository-9dkxgaaz.js → schema-hbecebtg.js} +10 -10
  154. package/dist/chunks/{repository-3sy2qy7n.js → schema-hd6mtbc2.js} +1 -1
  155. package/dist/chunks/{repository-enk2rrcf.js → schema-hj3kzhjm.js} +17 -17
  156. package/dist/chunks/{repository-xq7r4p5w.js → schema-hnc22933.js} +33 -33
  157. package/dist/chunks/{repository-5qedxm44.js → schema-hqtqhwxa.js} +7 -7
  158. package/dist/chunks/{repository-vftkj9v3.js → schema-hqztqa4w.js} +16 -16
  159. package/dist/chunks/{repository-qwb2h62g.js → schema-hwh6dse8.js} +18 -18
  160. package/dist/chunks/{repository-y3f887mz.js → schema-hxx1gems.js} +10 -10
  161. package/dist/chunks/{repository-j56e64zr.js → schema-j56e64zr.js} +1 -1
  162. package/dist/chunks/{repository-dxz6h2zt.js → schema-j7xxj57g.js} +5 -5
  163. package/dist/chunks/{repository-trfxp1r8.js → schema-jesqq2b8.js} +17 -17
  164. package/dist/chunks/{repository-pgrpmprb.js → schema-jj43yjqp.js} +11 -11
  165. package/dist/chunks/{repository-j3s2z371.js → schema-jjs74g98.js} +5 -5
  166. package/dist/chunks/{repository-15rr61m4.js → schema-jkq931gc.js} +17 -17
  167. package/dist/chunks/{repository-vmq7ehpy.js → schema-jv01nqvq.js} +5 -5
  168. package/dist/chunks/{repository-zvt5dnpc.js → schema-jvf3yq6v.js} +4 -4
  169. package/dist/chunks/{repository-5wtwrezn.js → schema-jw80jp6b.js} +19 -19
  170. package/dist/chunks/{repository-51bq5gc4.js → schema-jwpzwwy6.js} +16 -16
  171. package/dist/chunks/{repository-m1fqb20v.js → schema-jyrfr5z0.js} +3 -3
  172. package/dist/chunks/{repository-k3c624dm.js → schema-k3c624dm.js} +3 -3
  173. package/dist/chunks/{repository-z3dqhhkj.js → schema-k3dr35yq.js} +6 -6
  174. package/dist/chunks/{repository-mwwxnxty.js → schema-kb6gw2zp.js} +4 -4
  175. package/dist/chunks/{repository-wy75xbqv.js → schema-ke47ra3q.js} +47 -47
  176. package/dist/chunks/{repository-jrb0xr74.js → schema-ksngh15a.js} +15 -15
  177. package/dist/chunks/{repository-bayr7sdc.js → schema-kvb5pf0f.js} +7 -7
  178. package/dist/chunks/{repository-8hgfhrm0.js → schema-kwb80b5k.js} +9 -9
  179. package/dist/chunks/{repository-m3fdjcah.js → schema-m3fdjcah.js} +1 -1
  180. package/dist/chunks/{repository-e4bv3p7h.js → schema-m8q517q3.js} +24 -24
  181. package/dist/chunks/{repository-zfjfs7fw.js → schema-m9dec5st.js} +28 -28
  182. package/dist/chunks/{repository-m9w0rfyh.js → schema-m9w0rfyh.js} +1 -1
  183. package/dist/chunks/{repository-25rd3h41.js → schema-mff6ah6z.js} +60 -60
  184. package/dist/chunks/{repository-dzk3ryj8.js → schema-mfh2s9n9.js} +20 -20
  185. package/dist/chunks/{repository-56gdpj1q.js → schema-mfqp6xfm.js} +6 -6
  186. package/dist/chunks/{repository-mvfsc1pv.js → schema-mhkvc446.js} +3 -3
  187. package/dist/chunks/{repository-5qb1g724.js → schema-mksgfzgs.js} +5 -5
  188. package/dist/chunks/{repository-qakz50hz.js → schema-mtptma85.js} +20 -20
  189. package/dist/chunks/{repository-2a6rn6yr.js → schema-mx9vqzsb.js} +6 -6
  190. package/dist/chunks/{repository-gtckgk66.js → schema-n2rked60.js} +10 -10
  191. package/dist/chunks/{repository-s5d9hk7s.js → schema-n37c4crj.js} +9 -9
  192. package/dist/chunks/{repository-7yscfpph.js → schema-nbgtvmt2.js} +7 -7
  193. package/dist/chunks/{repository-65xxhm4m.js → schema-ngaq65z3.js} +23 -23
  194. package/dist/chunks/{repository-311gkrra.js → schema-nkh7hwh6.js} +5 -5
  195. package/dist/chunks/{repository-n72a9sqp.js → schema-nrf9nkf4.js} +46 -46
  196. package/dist/chunks/{repository-d2aac7k2.js → schema-nxhqveyz.js} +5 -5
  197. package/dist/chunks/{repository-dq2gf7dd.js → schema-p173zzzp.js} +84 -84
  198. package/dist/chunks/{repository-zszwk29h.js → schema-p70m8tan.js} +299 -299
  199. package/dist/chunks/schema-pemgqcj3.js +26 -0
  200. package/dist/chunks/{repository-pjvnvgmy.js → schema-pjvnvgmy.js} +1 -1
  201. package/dist/chunks/{repository-pknna89w.js → schema-pknna89w.js} +1 -1
  202. package/dist/chunks/{repository-de3mgeae.js → schema-pmrtsbw6.js} +14 -14
  203. package/dist/chunks/{repository-gv6qzrxf.js → schema-pxar5t5x.js} +35 -35
  204. package/dist/chunks/{repository-nayt11ps.js → schema-q1wd5bqe.js} +6 -6
  205. package/dist/chunks/{repository-tsa77ep8.js → schema-q23t71ky.js} +19 -19
  206. package/dist/chunks/{repository-16fz2w0a.js → schema-qf9g56f3.js} +55 -55
  207. package/dist/chunks/{repository-qgn6gcr1.js → schema-qgn6gcr1.js} +1 -1
  208. package/dist/chunks/{repository-7td85jfa.js → schema-qnn3verk.js} +9 -9
  209. package/dist/chunks/{repository-7n420167.js → schema-qpqjws28.js} +11 -11
  210. package/dist/chunks/{repository-qsdy395h.js → schema-qsdy395h.js} +1 -1
  211. package/dist/chunks/{repository-gxd07ah8.js → schema-qx20pxr4.js} +48 -48
  212. package/dist/chunks/{repository-pwqr28vb.js → schema-r1t33gv4.js} +26 -26
  213. package/dist/chunks/{repository-pnqe9gv0.js → schema-r3c4069c.js} +1 -1
  214. package/dist/chunks/{repository-672f612c.js → schema-rd930brt.js} +43 -43
  215. package/dist/chunks/{repository-rdw6cm16.js → schema-rdw6cm16.js} +1 -1
  216. package/dist/chunks/{repository-tx02rs4k.js → schema-rk8hkmen.js} +35 -35
  217. package/dist/chunks/{repository-ejrhby57.js → schema-rr1xtvmv.js} +40 -40
  218. package/dist/chunks/{repository-3qw0meeq.js → schema-rs4ad808.js} +18 -18
  219. package/dist/chunks/{repository-xq6svqxg.js → schema-rtrqs7aw.js} +32 -32
  220. package/dist/chunks/{repository-5psjtcc4.js → schema-s1n69xg5.js} +25 -25
  221. package/dist/chunks/{repository-ygxwf2ce.js → schema-sgds5tk2.js} +20 -20
  222. package/dist/chunks/{repository-gx8hye9g.js → schema-spqcpneg.js} +6 -6
  223. package/dist/chunks/{repository-j40a86xr.js → schema-stgrmxrp.js} +10 -10
  224. package/dist/chunks/{repository-skykqwxk.js → schema-stka8cwy.js} +26 -26
  225. package/dist/chunks/{repository-a7ya2t55.js → schema-szbdaj22.js} +4 -4
  226. package/dist/chunks/{repository-tazgh4e4.js → schema-tazgh4e4.js} +1 -1
  227. package/dist/chunks/{repository-tcezcvh9.js → schema-tcezcvh9.js} +1 -1
  228. package/dist/chunks/{repository-tdstcens.js → schema-tdstcens.js} +1 -1
  229. package/dist/chunks/{repository-vxzf7v58.js → schema-tfw5vp5y.js} +5 -5
  230. package/dist/chunks/{repository-g9qh6fen.js → schema-tfz8ht6g.js} +11 -11
  231. package/dist/chunks/{repository-3ewed21c.js → schema-tfzngn12.js} +4 -4
  232. package/dist/chunks/{repository-kkybr322.js → schema-trgn506r.js} +10 -10
  233. package/dist/chunks/{repository-tvtrv512.js → schema-tvtrv512.js} +1 -1
  234. package/dist/chunks/{repository-bwyp434w.js → schema-twax0pxr.js} +23 -23
  235. package/dist/chunks/{repository-bwe1n6j9.js → schema-tyqw9b1a.js} +7 -7
  236. package/dist/chunks/{repository-4yyfqv5e.js → schema-v00q4dqv.js} +11 -11
  237. package/dist/chunks/{repository-9cz3xmmc.js → schema-v53t4mb7.js} +20 -20
  238. package/dist/chunks/{repository-19vf66h0.js → schema-v5dkyp31.js} +4 -4
  239. package/dist/chunks/{repository-veqvce7d.js → schema-veqvce7d.js} +1 -1
  240. package/dist/chunks/{repository-ff0svapt.js → schema-vmgq4x8b.js} +2 -2
  241. package/dist/chunks/{repository-f1zbxv7x.js → schema-vmwh049b.js} +9 -9
  242. package/dist/chunks/{repository-r98e92ep.js → schema-vncycja5.js} +4 -4
  243. package/dist/chunks/{repository-g4fxz0gt.js → schema-vt5nkxs5.js} +25 -25
  244. package/dist/chunks/{repository-vtxr0yy2.js → schema-vtxr0yy2.js} +2 -2
  245. package/dist/chunks/{repository-50sbk7kr.js → schema-vz4jg4k9.js} +8 -8
  246. package/dist/chunks/{repository-vzcthcp8.js → schema-vzcthcp8.js} +1 -1
  247. package/dist/chunks/{repository-w3wsvvr9.js → schema-w3wsvvr9.js} +1 -1
  248. package/dist/chunks/{repository-r256v5vh.js → schema-w9xbefsq.js} +19 -19
  249. package/dist/chunks/{repository-wd3x2cqz.js → schema-wd3x2cqz.js} +2 -2
  250. package/dist/chunks/{repository-wd87259q.js → schema-wd87259q.js} +1 -1
  251. package/dist/chunks/{repository-32h82zqh.js → schema-we5e1hqv.js} +5 -5
  252. package/dist/chunks/{repository-cng14k4f.js → schema-wfvmvx5v.js} +33 -33
  253. package/dist/chunks/{repository-1te7cy4s.js → schema-wq4mmp7m.js} +4 -4
  254. package/dist/chunks/{repository-98da7btb.js → schema-wvm3e786.js} +10 -10
  255. package/dist/chunks/{repository-x1ezjp6w.js → schema-x1ezjp6w.js} +1 -1
  256. package/dist/chunks/{repository-fg50bsfr.js → schema-x21w7dsp.js} +20 -20
  257. package/dist/chunks/{repository-vb0c2wr9.js → schema-x7pgzbrc.js} +13 -13
  258. package/dist/chunks/{repository-c1kskfb6.js → schema-x98p3fja.js} +44 -44
  259. package/dist/chunks/{repository-69fj14ep.js → schema-xa30xd5p.js} +22 -22
  260. package/dist/chunks/{repository-n6scd4pv.js → schema-xbdvvged.js} +12 -12
  261. package/dist/chunks/{repository-kjfdeayr.js → schema-xbrnje9f.js} +8 -8
  262. package/dist/chunks/{repository-k9kj6xed.js → schema-xfdrc2qg.js} +8 -8
  263. package/dist/chunks/{repository-4sthw002.js → schema-xxxgmpnp.js} +5 -5
  264. package/dist/chunks/{repository-y1fvbwt7.js → schema-y1fvbwt7.js} +1 -1
  265. package/dist/chunks/{repository-xkqrr95v.js → schema-y7c4883m.js} +67 -67
  266. package/dist/chunks/{repository-mgdyehf1.js → schema-y8pznszf.js} +15 -15
  267. package/dist/chunks/{repository-a1nprqvr.js → schema-ya2xvy3r.js} +11 -11
  268. package/dist/chunks/{repository-0rr436fd.js → schema-yb29xp2t.js} +12 -12
  269. package/dist/chunks/{repository-6301jba8.js → schema-yb3bnh53.js} +38 -38
  270. package/dist/chunks/{repository-hbehhpwg.js → schema-yme4tm39.js} +37 -37
  271. package/dist/chunks/{repository-1acjjqhc.js → schema-yp2x3t23.js} +4 -4
  272. package/dist/chunks/{repository-5r9k8zx2.js → schema-yq6rdmt7.js} +7 -7
  273. package/dist/chunks/{repository-yrhqyw5v.js → schema-yrhqyw5v.js} +1 -1
  274. package/dist/chunks/{repository-s4enseaf.js → schema-yrznvahk.js} +2 -2
  275. package/dist/chunks/{repository-285t386e.js → schema-ywppm7yh.js} +39 -39
  276. package/dist/chunks/{repository-v4cj4tts.js → schema-yyc7yft3.js} +15 -15
  277. package/dist/chunks/{repository-z07pqspn.js → schema-z07pqspn.js} +3 -3
  278. package/dist/chunks/{repository-z0bkrqjs.js → schema-z0bkrqjs.js} +1 -1
  279. package/dist/chunks/{repository-29x78va6.js → schema-z63w68vq.js} +6 -6
  280. package/dist/chunks/{repository-qx9nwsft.js → schema-z6970k62.js} +22 -22
  281. package/dist/chunks/{repository-j1711vkv.js → schema-z6y9e2r8.js} +30 -30
  282. package/dist/chunks/{repository-ypwah405.js → schema-z8p0mpvq.js} +17 -17
  283. package/dist/chunks/schema-z926abd4.js +4 -0
  284. package/dist/chunks/{repository-dvep9rg9.js → schema-zab19jja.js} +9 -9
  285. package/dist/chunks/{repository-zeh9ct20.js → schema-zeh9ct20.js} +2 -2
  286. package/dist/chunks/{repository-18e56dsp.js → schema-zj09a0ew.js} +4 -4
  287. package/dist/chunks/{repository-0vecsj11.js → schema-zk4010xf.js} +10 -10
  288. package/dist/chunks/{repository-2xqh5gj0.js → schema-zpfyxn6c.js} +22 -22
  289. package/dist/chunks/{repository-zr2ceqn5.js → schema-zr2ceqn5.js} +1 -1
  290. package/dist/chunks/{repository-kb4rpjaq.js → schema-zsnrp8c7.js} +324 -324
  291. package/dist/chunks/{repository-stvp1p58.js → schema-zx2f5h1h.js} +19 -19
  292. package/dist/chunks/{repository-zxq2ej10.js → schema-zxq2ej10.js} +1 -1
  293. package/dist/codemode/catalog.js +1 -1
  294. package/dist/codemode/instructions.js +9 -9
  295. package/dist/codemode/tool.js +3 -3
  296. package/dist/codemode/web.js +1 -1
  297. package/dist/command.js +81 -81
  298. package/dist/config/discovery.js +82 -82
  299. package/dist/config/markdown.js +1 -1
  300. package/dist/config/normalize.js +106 -106
  301. package/dist/config/plugin/agent.js +123 -123
  302. package/dist/config/plugin/command.js +212 -212
  303. package/dist/config/plugin/compaction.js +160 -160
  304. package/dist/config/plugin/compatibility.js +141 -141
  305. package/dist/config/plugin/entry-observer.js +1 -1
  306. package/dist/config/plugin/formatter.js +124 -124
  307. package/dist/config/plugin/image.js +123 -123
  308. package/dist/config/plugin/instruction.js +90 -90
  309. package/dist/config/plugin/location-watcher.js +125 -125
  310. package/dist/config/plugin/mcp.js +130 -130
  311. package/dist/config/plugin/policy.js +124 -124
  312. package/dist/config/plugin/provider.js +123 -123
  313. package/dist/config/plugin/reference.js +125 -125
  314. package/dist/config/plugin/shell.js +123 -123
  315. package/dist/config/plugin/skill-file.js +102 -102
  316. package/dist/config/plugin/skill.js +142 -142
  317. package/dist/config/plugin/snapshot.js +123 -123
  318. package/dist/config/plugin/source.js +124 -124
  319. package/dist/config/plugin/tool-output.js +125 -125
  320. package/dist/config/plugin/websearch.js +122 -122
  321. package/dist/config/plugin/worktree.js +125 -125
  322. package/dist/config/variable.js +3 -3
  323. package/dist/config/watch.js +1 -1
  324. package/dist/config.js +126 -126
  325. package/dist/credential/sql.js +2 -2
  326. package/dist/credential.js +83 -83
  327. package/dist/database/database.js +66 -66
  328. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  329. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  330. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  331. package/dist/database/drizzle/index.js +15 -15
  332. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  333. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  335. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  336. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  337. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  338. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  339. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  340. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  341. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  342. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  343. package/dist/database/drizzle.js +16 -16
  344. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  345. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  346. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  347. package/dist/database/migration/20260225215848_workspace.js +1 -1
  348. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  349. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  350. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  351. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  352. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  353. package/dist/database/migration/20260323234822_events.js +1 -1
  354. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  355. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  356. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  357. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  358. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  359. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  360. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  361. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  362. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  363. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  364. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  365. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  366. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  367. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  368. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  369. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  370. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  371. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  372. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  373. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  374. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  375. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  376. package/dist/database/migration/20260611035744_credential.js +1 -1
  377. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  378. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  379. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  380. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  381. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  382. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  383. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  384. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  385. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  386. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  387. package/dist/database/migration/20260812213948_worktree.js +1 -1
  388. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  389. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  390. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  391. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  392. package/dist/database/migration.gen.js +49 -49
  393. package/dist/database/migration.js +51 -51
  394. package/dist/database/path.js +2 -2
  395. package/dist/database/schema.gen.js +1 -1
  396. package/dist/database/schema.sql.js +1 -1
  397. package/dist/database/sqlite.bun.js +1 -1
  398. package/dist/database/sqlite.js +1 -1
  399. package/dist/database/sqlite.node.js +1 -1
  400. package/dist/database/sqlite.workerd.js +1 -1
  401. package/dist/database/v1-migration.bun.js +76 -76
  402. package/dist/database/v1-migration.js +1 -1
  403. package/dist/effect/app-node-builder.js +371 -371
  404. package/dist/effect/app-node-platform.js +2 -2
  405. package/dist/effect/keyed-mutex.js +3 -3
  406. package/dist/effect/websocket-constructor.js +1 -1
  407. package/dist/environment/driver.js +1 -1
  408. package/dist/environment/environment.js +93 -93
  409. package/dist/environment/exec-defaults.js +2 -2
  410. package/dist/environment/files.js +1 -1
  411. package/dist/environment/index.js +95 -95
  412. package/dist/environment/local.js +2 -2
  413. package/dist/environment/memory.js +2 -2
  414. package/dist/environment/unavailable.js +1 -1
  415. package/dist/event/sql.js +1 -1
  416. package/dist/event-logger.js +70 -70
  417. package/dist/file-access.js +104 -104
  418. package/dist/file-mutation.js +94 -94
  419. package/dist/file-retention.js +1 -1
  420. package/dist/file.js +1 -1
  421. package/dist/filesystem/fff.bun.js +2 -2
  422. package/dist/filesystem/fff.js +1 -1
  423. package/dist/filesystem/fff.node.js +2 -2
  424. package/dist/filesystem/fff.workerd.js +2 -2
  425. package/dist/filesystem/ignore.js +1 -1
  426. package/dist/filesystem/location-watcher-policy.js +6 -6
  427. package/dist/filesystem/location-watcher.js +227 -227
  428. package/dist/filesystem/protected.js +1 -1
  429. package/dist/filesystem/search.js +97 -97
  430. package/dist/filesystem/watcher-binding.js +3 -3
  431. package/dist/filesystem/watcher.js +13 -13
  432. package/dist/filesystem.js +102 -102
  433. package/dist/form.js +86 -86
  434. package/dist/formatter/builtins.js +4 -4
  435. package/dist/formatter.js +89 -89
  436. package/dist/generate.js +103 -103
  437. package/dist/git.js +10 -10
  438. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  439. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  440. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  441. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  442. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  443. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  444. package/dist/github-copilot/copilot-provider.js +17 -17
  445. package/dist/github-copilot/models.js +91 -91
  446. package/dist/github-copilot/openai-compatible-error.js +1 -1
  447. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  448. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  449. package/dist/github-copilot/responses/openai-error.js +1 -1
  450. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  451. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  452. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  453. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  454. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  455. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  456. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  457. package/dist/id/id.js +1 -1
  458. package/dist/image/photon.js +2 -2
  459. package/dist/image.js +6 -6
  460. package/dist/instance/service.js +5 -5
  461. package/dist/instance.js +362 -362
  462. package/dist/instruction-discovery.js +85 -85
  463. package/dist/instructions/builtins.js +87 -87
  464. package/dist/instructions/index.js +1 -1
  465. package/dist/integration/connection.js +3 -3
  466. package/dist/integration.js +88 -88
  467. package/dist/job.js +79 -79
  468. package/dist/kv/sql.js +2 -2
  469. package/dist/kv.js +73 -73
  470. package/dist/location-activity.js +132 -132
  471. package/dist/location-lifecycle.js +107 -107
  472. package/dist/location-mutation.js +104 -104
  473. package/dist/location-service-map.js +86 -86
  474. package/dist/location-services.js +359 -359
  475. package/dist/location.js +89 -89
  476. package/dist/managed-policy.js +5 -5
  477. package/dist/mcp/client.js +91 -91
  478. package/dist/mcp/index.js +104 -104
  479. package/dist/mcp/instructions.js +128 -128
  480. package/dist/mcp/oauth.js +78 -78
  481. package/dist/mcp/stdio.js +90 -90
  482. package/dist/mime.js +1 -1
  483. package/dist/modal/models.js +91 -91
  484. package/dist/model-resolver.js +98 -98
  485. package/dist/model.js +102 -102
  486. package/dist/models-dev.js +107 -107
  487. package/dist/oauth/page.js +1 -1
  488. package/dist/permission/saved.js +80 -80
  489. package/dist/permission/sql.js +5 -5
  490. package/dist/permission.js +117 -117
  491. package/dist/persistent-pty/binary.bun.js +1 -1
  492. package/dist/persistent-pty/daemon.js +1 -1
  493. package/dist/persistent-pty/index.js +84 -84
  494. package/dist/persistent-pty/pty-binding.js +1 -1
  495. package/dist/persistent-pty.js +75 -75
  496. package/dist/plugin/agent.js +102 -102
  497. package/dist/plugin/command.js +99 -99
  498. package/dist/plugin/compaction.js +131 -131
  499. package/dist/plugin/hooks.js +5 -5
  500. package/dist/plugin/host.js +218 -218
  501. package/dist/plugin/identity.js +3 -3
  502. package/dist/plugin/instance.js +5 -5
  503. package/dist/plugin/internal.js +333 -333
  504. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  505. package/dist/plugin/models-dev.js +96 -96
  506. package/dist/plugin/module.js +7 -7
  507. package/dist/plugin/optimize.js +4 -4
  508. package/dist/plugin/plan.js +102 -102
  509. package/dist/plugin/promise.js +1 -1
  510. package/dist/plugin/provider/amazon-bedrock.js +90 -90
  511. package/dist/plugin/provider/azure.js +122 -122
  512. package/dist/plugin/provider/cerebras.js +1 -1
  513. package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
  514. package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
  515. package/dist/plugin/provider/cohere.js +2 -2
  516. package/dist/plugin/provider/configured.js +119 -119
  517. package/dist/plugin/provider/digitalocean.js +93 -93
  518. package/dist/plugin/provider/dynamic.js +2 -2
  519. package/dist/plugin/provider/factory.js +1 -1
  520. package/dist/plugin/provider/gateway.js +2 -2
  521. package/dist/plugin/provider/github-copilot.js +93 -93
  522. package/dist/plugin/provider/gitlab.js +91 -91
  523. package/dist/plugin/provider/google-vertex.js +90 -90
  524. package/dist/plugin/provider/kilo.js +1 -1
  525. package/dist/plugin/provider/llmgateway.js +77 -77
  526. package/dist/plugin/provider/lmstudio.js +120 -120
  527. package/dist/plugin/provider/modal.js +92 -92
  528. package/dist/plugin/provider/nvidia.js +1 -1
  529. package/dist/plugin/provider/ollama.js +122 -122
  530. package/dist/plugin/provider/openai.js +94 -94
  531. package/dist/plugin/provider/opencode.js +95 -95
  532. package/dist/plugin/provider/openrouter.js +91 -91
  533. package/dist/plugin/provider/perplexity.js +2 -2
  534. package/dist/plugin/provider/poe.js +78 -78
  535. package/dist/plugin/provider/prompt-cache-key.js +90 -90
  536. package/dist/plugin/provider/sap-ai-core.js +91 -91
  537. package/dist/plugin/provider/sdk-factory.js +1 -1
  538. package/dist/plugin/provider/snowflake-cortex.js +122 -122
  539. package/dist/plugin/provider/venice.js +2 -2
  540. package/dist/plugin/provider/vercel.js +90 -90
  541. package/dist/plugin/provider/vllm.js +122 -122
  542. package/dist/plugin/provider/xai.js +91 -91
  543. package/dist/plugin/provider/zenmux.js +1 -1
  544. package/dist/plugin/provider.js +160 -160
  545. package/dist/plugin/sdk.js +74 -74
  546. package/dist/plugin/service.js +3 -3
  547. package/dist/plugin/skill.js +141 -141
  548. package/dist/plugin/source-directory.js +1 -1
  549. package/dist/plugin/supervisor.js +352 -352
  550. package/dist/plugin/tool-input-repair.js +4 -4
  551. package/dist/plugin/update.js +6 -6
  552. package/dist/plugin/vcs/git.js +86 -86
  553. package/dist/plugin/vcs/hg.js +86 -86
  554. package/dist/plugin/warming.js +121 -121
  555. package/dist/plugin/websearch/exa.js +7 -7
  556. package/dist/plugin/websearch/firecrawl.js +6 -6
  557. package/dist/plugin/websearch/index.js +9 -9
  558. package/dist/plugin/websearch/mcp.js +4 -4
  559. package/dist/plugin/websearch/parallel.js +8 -8
  560. package/dist/plugin/websearch/tavily.js +6 -6
  561. package/dist/plugin/websearch/tinyfish.js +6 -6
  562. package/dist/plugin.js +229 -229
  563. package/dist/project/schema.js +8 -8
  564. package/dist/project/sql.js +4 -4
  565. package/dist/project.js +90 -90
  566. package/dist/provider.js +101 -101
  567. package/dist/pty/protocol.js +1 -1
  568. package/dist/pty/schema.js +3 -3
  569. package/dist/pty/ticket.js +1 -1
  570. package/dist/pty.js +98 -98
  571. package/dist/reference/instructions.js +89 -89
  572. package/dist/reference.js +83 -83
  573. package/dist/repository-cache.js +81 -81
  574. package/dist/repository.js +3 -3
  575. package/dist/ripgrep/binary.js +2 -2
  576. package/dist/ripgrep.js +95 -95
  577. package/dist/rpc.js +86 -86
  578. package/dist/schema.js +1 -1
  579. package/dist/session/command.js +74 -74
  580. package/dist/session/compaction.js +132 -132
  581. package/dist/session/context.js +152 -152
  582. package/dist/session/diff.js +88 -88
  583. package/dist/session/environment.js +5 -5
  584. package/dist/session/error.js +7 -7
  585. package/dist/session/event.js +1 -1
  586. package/dist/session/execution/restart.js +221 -221
  587. package/dist/session/execution.js +128 -128
  588. package/dist/session/generate.js +153 -153
  589. package/dist/session/history.js +15 -15
  590. package/dist/session/inbox.js +86 -86
  591. package/dist/session/info.js +3 -3
  592. package/dist/session/instruction-entry.js +77 -77
  593. package/dist/session/instruction-state.js +8 -8
  594. package/dist/session/instructions.js +97 -97
  595. package/dist/session/message-updater.js +2 -2
  596. package/dist/session/message.js +1 -1
  597. package/dist/session/model-request.js +117 -117
  598. package/dist/session/model-transport.js +7 -7
  599. package/dist/session/move.js +130 -130
  600. package/dist/session/projector.js +86 -86
  601. package/dist/session/prompt.js +105 -105
  602. package/dist/session/provider-context.js +3 -3
  603. package/dist/session/revert.js +90 -90
  604. package/dist/session/run-coordinator.js +3 -3
  605. package/dist/session/runner/index.js +3 -3
  606. package/dist/session/runner/llm.js +231 -231
  607. package/dist/session/runner/max-steps.js +1 -1
  608. package/dist/session/runner/model.js +98 -98
  609. package/dist/session/runner/publish-llm-event.js +3 -3
  610. package/dist/session/runner/retry.js +114 -114
  611. package/dist/session/runner/step.js +126 -126
  612. package/dist/session/runner/to-llm-message.js +2 -2
  613. package/dist/session/schema.js +5 -5
  614. package/dist/session/session.js +170 -170
  615. package/dist/session/shell.js +138 -138
  616. package/dist/session/skill.js +103 -103
  617. package/dist/session/sql.js +5 -5
  618. package/dist/session/stats.js +73 -73
  619. package/dist/session/store.js +85 -85
  620. package/dist/session/subagent-completion.js +1 -1
  621. package/dist/session/subagent-job.js +210 -210
  622. package/dist/session/system-prompt.js +5 -5
  623. package/dist/session/title.js +156 -156
  624. package/dist/session/to-session-error.js +111 -111
  625. package/dist/session/transfer.js +217 -217
  626. package/dist/session/usage.js +1 -1
  627. package/dist/session.js +216 -216
  628. package/dist/shell/parse.js +6 -6
  629. package/dist/shell/result.js +1 -1
  630. package/dist/shell/scan.js +1 -1
  631. package/dist/shell/select.js +13 -13
  632. package/dist/shell.js +140 -140
  633. package/dist/skill/discovery.js +4 -4
  634. package/dist/skill/instructions.js +107 -107
  635. package/dist/skill.js +110 -110
  636. package/dist/snapshot.js +91 -91
  637. package/dist/state.js +1 -1
  638. package/dist/tool/html-markdown.js +1 -1
  639. package/dist/tool/http-body.js +1 -1
  640. package/dist/tool/mcp.js +125 -125
  641. package/dist/tool/plugin/edit.js +120 -120
  642. package/dist/tool/plugin/file-diff.js +1 -1
  643. package/dist/tool/plugin/glob.js +124 -124
  644. package/dist/tool/plugin/grep.js +124 -124
  645. package/dist/tool/plugin/mcp-resource.js +116 -116
  646. package/dist/tool/plugin/opencode.js +3 -3
  647. package/dist/tool/plugin/patch.js +122 -122
  648. package/dist/tool/plugin/question.js +103 -103
  649. package/dist/tool/plugin/read.js +125 -125
  650. package/dist/tool/plugin/shell.js +215 -215
  651. package/dist/tool/plugin/skill.js +111 -111
  652. package/dist/tool/plugin/subagent.js +219 -219
  653. package/dist/tool/plugin/webfetch.js +112 -112
  654. package/dist/tool/plugin/websearch.js +112 -112
  655. package/dist/tool/plugin/write.js +122 -122
  656. package/dist/tool/read-filesystem.js +100 -100
  657. package/dist/tool/runtime.js +1 -1
  658. package/dist/tool-output.js +8 -8
  659. package/dist/tool.js +12 -12
  660. package/dist/util/error-summary.js +1 -1
  661. package/dist/util/error.js +1 -1
  662. package/dist/util/git-executable.js +2 -2
  663. package/dist/util/iife.js +1 -1
  664. package/dist/util/lazy.js +1 -1
  665. package/dist/util/slug.js +1 -1
  666. package/dist/util/token.js +1 -1
  667. package/dist/util/which.js +1 -1
  668. package/dist/util/wildcard.js +1 -1
  669. package/dist/v1/config/agent.js +7 -7
  670. package/dist/v1/config/attachment.js +4 -4
  671. package/dist/v1/config/command.js +3 -3
  672. package/dist/v1/config/config.js +16 -16
  673. package/dist/v1/config/error.js +4 -4
  674. package/dist/v1/config/formatter.js +5 -5
  675. package/dist/v1/config/layout.js +1 -1
  676. package/dist/v1/config/lsp.js +3 -3
  677. package/dist/v1/config/mcp.js +4 -4
  678. package/dist/v1/config/migrate.js +92 -92
  679. package/dist/v1/config/permission.js +5 -5
  680. package/dist/v1/config/plugin.js +1 -1
  681. package/dist/v1/config/provider-options.js +1 -1
  682. package/dist/v1/config/provider.js +4 -4
  683. package/dist/v1/config/server.js +2 -2
  684. package/dist/v1/config/skills.js +3 -3
  685. package/dist/v1/permission.js +1 -1
  686. package/dist/variant.js +91 -91
  687. package/dist/vcs/patch.js +1 -1
  688. package/dist/vcs.js +89 -89
  689. package/dist/websearch.js +82 -82
  690. package/dist/wellknown/plugin.js +76 -76
  691. package/dist/wellknown.js +81 -81
  692. package/dist/workspace/driver.js +5 -5
  693. package/dist/workspace/sql.js +1 -1
  694. package/dist/workspace.js +78 -78
  695. package/dist/worktree/directory.js +2 -2
  696. package/dist/worktree/git.js +8 -8
  697. package/dist/worktree/sql.js +5 -5
  698. package/dist/worktree/strategies.js +89 -89
  699. package/dist/worktree.js +96 -96
  700. package/package.json +8 -8
  701. package/dist/chunks/repository-0mesazry.js +0 -4
  702. package/dist/chunks/repository-619r8v3y.js +0 -18
  703. package/dist/chunks/repository-b8kezapz.js +0 -26
  704. package/dist/chunks/repository-vz0qs4v4.js +0 -252
  705. /package/dist/chunks/{repository-0qkdqm5v.js → schema-0qkdqm5v.js} +0 -0
  706. /package/dist/chunks/{repository-0zkw76rk.js → schema-0zkw76rk.js} +0 -0
  707. /package/dist/chunks/{repository-17cy0kzp.js → schema-17cy0kzp.js} +0 -0
  708. /package/dist/chunks/{repository-1cnp2v09.js → schema-1cnp2v09.js} +0 -0
  709. /package/dist/chunks/{repository-1kg9ymc8.js → schema-1kg9ymc8.js} +0 -0
  710. /package/dist/chunks/{repository-24dcb14g.js → schema-24dcb14g.js} +0 -0
  711. /package/dist/chunks/{repository-2710q6r3.js → schema-2710q6r3.js} +0 -0
  712. /package/dist/chunks/{repository-2axfhc9x.js → schema-2axfhc9x.js} +0 -0
  713. /package/dist/chunks/{repository-2c3vjs8z.js → schema-2c3vjs8z.js} +0 -0
  714. /package/dist/chunks/{repository-34c7v6d4.js → schema-34c7v6d4.js} +0 -0
  715. /package/dist/chunks/{repository-359p4xyc.js → schema-359p4xyc.js} +0 -0
  716. /package/dist/chunks/{repository-3asan66x.js → schema-3asan66x.js} +0 -0
  717. /package/dist/chunks/{repository-3v8g72cx.js → schema-3v8g72cx.js} +0 -0
  718. /package/dist/chunks/{repository-3w5fmr99.js → schema-3w5fmr99.js} +0 -0
  719. /package/dist/chunks/{repository-3wcehsnq.js → schema-3wcehsnq.js} +0 -0
  720. /package/dist/chunks/{repository-43n2bw4t.js → schema-43n2bw4t.js} +0 -0
  721. /package/dist/chunks/{repository-4knz6hnm.js → schema-4knz6hnm.js} +0 -0
  722. /package/dist/chunks/{repository-4vcrnpx2.js → schema-4vcrnpx2.js} +0 -0
  723. /package/dist/chunks/{repository-4y7fprxs.js → schema-4y7fprxs.js} +0 -0
  724. /package/dist/chunks/{repository-53557ph1.js → schema-53557ph1.js} +0 -0
  725. /package/dist/chunks/{repository-550bvhaj.js → schema-550bvhaj.js} +0 -0
  726. /package/dist/chunks/{repository-6prwharc.js → schema-6prwharc.js} +0 -0
  727. /package/dist/chunks/{repository-7akdwqpd.js → schema-7akdwqpd.js} +0 -0
  728. /package/dist/chunks/{repository-7m9af43g.js → schema-7m9af43g.js} +0 -0
  729. /package/dist/chunks/{repository-822emrt2.js → schema-822emrt2.js} +0 -0
  730. /package/dist/chunks/{repository-88xbtdfr.js → schema-88xbtdfr.js} +0 -0
  731. /package/dist/chunks/{repository-8n3pysct.js → schema-8n3pysct.js} +0 -0
  732. /package/dist/chunks/{repository-8wj87zfr.js → schema-8wj87zfr.js} +0 -0
  733. /package/dist/chunks/{repository-922hggd3.js → schema-922hggd3.js} +0 -0
  734. /package/dist/chunks/{repository-9a4afbnw.js → schema-9a4afbnw.js} +0 -0
  735. /package/dist/chunks/{repository-9rqn6x4v.js → schema-9rqn6x4v.js} +0 -0
  736. /package/dist/chunks/{repository-a6k6eb26.js → schema-a6k6eb26.js} +0 -0
  737. /package/dist/chunks/{repository-af5trqkr.js → schema-af5trqkr.js} +0 -0
  738. /package/dist/chunks/{repository-afrmfg78.js → schema-afrmfg78.js} +0 -0
  739. /package/dist/chunks/{repository-aqzs7mqg.js → schema-aqzs7mqg.js} +0 -0
  740. /package/dist/chunks/{repository-atq7p7m5.js → schema-atq7p7m5.js} +0 -0
  741. /package/dist/chunks/{repository-bkyjaxrp.js → schema-bkyjaxrp.js} +0 -0
  742. /package/dist/chunks/{repository-bmr6ed5q.js → schema-bmr6ed5q.js} +0 -0
  743. /package/dist/chunks/{repository-cf4snx6d.js → schema-cf4snx6d.js} +0 -0
  744. /package/dist/chunks/{repository-cvy3z8tj.js → schema-cvy3z8tj.js} +0 -0
  745. /package/dist/chunks/{repository-d9fn303g.js → schema-d9fn303g.js} +0 -0
  746. /package/dist/chunks/{repository-d9jj8t3e.js → schema-d9jj8t3e.js} +0 -0
  747. /package/dist/chunks/{repository-dajrwvna.js → schema-dajrwvna.js} +0 -0
  748. /package/dist/chunks/{repository-dap0rakb.js → schema-dap0rakb.js} +0 -0
  749. /package/dist/chunks/{repository-df08tz66.js → schema-df08tz66.js} +0 -0
  750. /package/dist/chunks/{repository-dy18nga0.js → schema-dy18nga0.js} +0 -0
  751. /package/dist/chunks/{repository-e5kj55wp.js → schema-e5kj55wp.js} +0 -0
  752. /package/dist/chunks/{repository-e73j6tqm.js → schema-e73j6tqm.js} +0 -0
  753. /package/dist/chunks/{repository-ec1grn59.js → schema-ec1grn59.js} +0 -0
  754. /package/dist/chunks/{repository-eh3zwz77.js → schema-eh3zwz77.js} +0 -0
  755. /package/dist/chunks/{repository-emrn6kk6.js → schema-emrn6kk6.js} +0 -0
  756. /package/dist/chunks/{repository-f0mxakyp.js → schema-f0mxakyp.js} +0 -0
  757. /package/dist/chunks/{repository-f6n9ztr4.js → schema-f6n9ztr4.js} +0 -0
  758. /package/dist/chunks/{repository-faypxj3z.js → schema-faypxj3z.js} +0 -0
  759. /package/dist/chunks/{repository-fd410y7t.js → schema-fd410y7t.js} +0 -0
  760. /package/dist/chunks/{repository-fxgpk5d8.js → schema-fxgpk5d8.js} +0 -0
  761. /package/dist/chunks/{repository-g4wezp1m.js → schema-g4wezp1m.js} +0 -0
  762. /package/dist/chunks/{repository-g86h250q.js → schema-g86h250q.js} +0 -0
  763. /package/dist/chunks/{repository-gebd4c9n.js → schema-gebd4c9n.js} +0 -0
  764. /package/dist/chunks/{repository-gftt206x.js → schema-gftt206x.js} +0 -0
  765. /package/dist/chunks/{repository-hjbc5kem.js → schema-hjbc5kem.js} +0 -0
  766. /package/dist/chunks/{repository-hk9envan.js → schema-hk9envan.js} +0 -0
  767. /package/dist/chunks/{repository-j2ntwpah.js → schema-j2ntwpah.js} +0 -0
  768. /package/dist/chunks/{repository-j5zkgpj8.js → schema-j5zkgpj8.js} +0 -0
  769. /package/dist/chunks/{repository-jjkms2e6.js → schema-jjkms2e6.js} +0 -0
  770. /package/dist/chunks/{repository-jr7sbwjy.js → schema-jr7sbwjy.js} +0 -0
  771. /package/dist/chunks/{repository-jwfs4k6c.js → schema-jwfs4k6c.js} +0 -0
  772. /package/dist/chunks/{repository-jzg6c2d5.js → schema-jzg6c2d5.js} +0 -0
  773. /package/dist/chunks/{repository-mp448xyj.js → schema-mp448xyj.js} +0 -0
  774. /package/dist/chunks/{repository-msx8hqn2.js → schema-msx8hqn2.js} +0 -0
  775. /package/dist/chunks/{repository-n05xt0ee.js → schema-n05xt0ee.js} +0 -0
  776. /package/dist/chunks/{repository-n3j8tn72.js → schema-n3j8tn72.js} +0 -0
  777. /package/dist/chunks/{repository-njntx4h6.js → schema-njntx4h6.js} +0 -0
  778. /package/dist/chunks/{repository-q3sfg36h.js → schema-q3sfg36h.js} +0 -0
  779. /package/dist/chunks/{repository-q74kybfr.js → schema-q74kybfr.js} +0 -0
  780. /package/dist/chunks/{repository-qaymkmh1.js → schema-qaymkmh1.js} +0 -0
  781. /package/dist/chunks/{repository-qb87gjwd.js → schema-qb87gjwd.js} +0 -0
  782. /package/dist/chunks/{repository-qfa1cgps.js → schema-qfa1cgps.js} +0 -0
  783. /package/dist/chunks/{repository-qg3g05ea.js → schema-qg3g05ea.js} +0 -0
  784. /package/dist/chunks/{repository-qrg20bc0.js → schema-qrg20bc0.js} +0 -0
  785. /package/dist/chunks/{repository-rcb2kzg1.js → schema-rcb2kzg1.js} +0 -0
  786. /package/dist/chunks/{repository-sdp7kfr6.js → schema-sdp7kfr6.js} +0 -0
  787. /package/dist/chunks/{repository-sk3qaz4a.js → schema-sk3qaz4a.js} +0 -0
  788. /package/dist/chunks/{repository-ssg3fenm.js → schema-ssg3fenm.js} +0 -0
  789. /package/dist/chunks/{repository-w803qqfp.js → schema-w803qqfp.js} +0 -0
  790. /package/dist/chunks/{repository-wc3fc9cn.js → schema-wc3fc9cn.js} +0 -0
  791. /package/dist/chunks/{repository-wer8tq1h.js → schema-wer8tq1h.js} +0 -0
  792. /package/dist/chunks/{repository-wtztk69x.js → schema-wtztk69x.js} +0 -0
  793. /package/dist/chunks/{repository-x0ckcb58.js → schema-x0ckcb58.js} +0 -0
  794. /package/dist/chunks/{repository-x61499pn.js → schema-x61499pn.js} +0 -0
  795. /package/dist/chunks/{repository-y44na4kk.js → schema-y44na4kk.js} +0 -0
  796. /package/dist/chunks/{repository-y8cydn3q.js → schema-y8cydn3q.js} +0 -0
  797. /package/dist/chunks/{repository-y8f7s663.js → schema-y8f7s663.js} +0 -0
  798. /package/dist/chunks/{repository-ygaqb7jw.js → schema-ygaqb7jw.js} +0 -0
  799. /package/dist/chunks/{repository-ym463w8f.js → schema-ym463w8f.js} +0 -0
  800. /package/dist/chunks/{repository-z9919s4g.js → schema-z9919s4g.js} +0 -0
@@ -1,40 +1,49 @@
1
1
  import {
2
2
  Service83,
3
3
  node87
4
- } from "./repository-0c1nc1g2.js";
4
+ } from "./schema-1rd6czrg.js";
5
5
  import {
6
6
  shutdown2,
7
7
  create3
8
- } from "./repository-rdw6cm16.js";
8
+ } from "./schema-rdw6cm16.js";
9
9
  import {
10
- ID16,
11
- Service77,
12
- node81,
13
- Event17
14
- } from "./repository-bprjk2xr.js";
10
+ ID8,
11
+ Service62,
12
+ node65,
13
+ Event14
14
+ } from "./schema-d0jrvpgb.js";
15
15
  import {
16
16
  key2
17
- } from "./repository-h6r3nrb9.js";
17
+ } from "./schema-cpj0znwe.js";
18
18
  import {
19
- Service74,
20
- node78
21
- } from "./repository-trfxp1r8.js";
19
+ Service80,
20
+ node84
21
+ } from "./schema-jesqq2b8.js";
22
22
  import {
23
23
  __export
24
- } from "./repository-9rqn6x4v.js";
24
+ } from "./schema-9rqn6x4v.js";
25
+
26
+ // src/aisdk-native.ts
27
+ var exports_aisdk_native = {};
28
+ __export(exports_aisdk_native, {
29
+ AISDKNative: () => exports_aisdk_native,
30
+ native: () => native2,
31
+ rewrite: () => rewrite2
32
+ });
33
+ import { Effect as Effect2, Option, Schema as Schema2, Struct as Struct2 } from "effect";
25
34
 
26
35
  // src/provider.ts
27
36
  var exports_provider3 = {};
28
37
  __export(exports_provider3, {
29
38
  AISDK_PREFIX: () => AISDK_PREFIX2,
30
39
  Compaction: () => Compaction3,
31
- Event: () => Event15,
32
- ID: () => ID13,
33
- Info: () => Info27,
40
+ Event: () => Event13,
41
+ ID: () => ID7,
42
+ Info: () => Info21,
34
43
  LoadError: () => LoadError3,
35
44
  Provider: () => exports_provider3,
36
- Request: () => Request3,
37
- Service: () => Service73,
45
+ Request: () => Request2,
46
+ Service: () => Service61,
38
47
  Settings: () => Settings2,
39
48
  Transport: () => Transport2,
40
49
  aisdk: () => aisdk2,
@@ -44,10 +53,10 @@ __export(exports_provider3, {
44
53
  mergeOverlay: () => mergeOverlay2,
45
54
  modelSettings: () => modelSettings2,
46
55
  nativeSettings: () => nativeSettings2,
47
- node: () => node77,
56
+ node: () => node64,
48
57
  packageName: () => packageName2
49
58
  });
50
- import { Context, Effect as Effect2, Layer, Schema as Schema2, Stream, Struct as Struct2 } from "effect";
59
+ import { Context, Effect, Layer, Schema, Stream, Struct } from "effect";
51
60
  import { Provider } from "@opencode/schema/provider";
52
61
  import { Model } from "@opencode/schema/model";
53
62
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -55,255 +64,8 @@ import { isRecord } from "@opencode/ai/utils/record";
55
64
  import { importModule, resolveModule } from "@opencode/util/runtime-import";
56
65
  import { Credential } from "@opencode/schema/credential";
57
66
  import { freeze } from "immer";
58
-
59
- // src/aisdk-native.ts
60
- var exports_aisdk_native = {};
61
- __export(exports_aisdk_native, {
62
- AISDKNative: () => exports_aisdk_native,
63
- native: () => native2,
64
- rewrite: () => rewrite2
65
- });
66
- import { Effect, Option, Schema, Struct } from "effect";
67
- function rewrite2(target, input) {
68
- if (input.specifier === undefined)
69
- return;
70
- const plain = resolve(input.specifier, input);
71
- if (!plain)
72
- return;
73
- const settings = decode(target.settings ?? {});
74
- const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
75
- const translated = options(replacement, input.modelID, settings);
76
- if (target.package !== undefined || replacement !== input.specifier)
77
- target.package = replacement;
78
- target.settings = target.settings === undefined ? undefined : {
79
- ...translated.settings,
80
- ...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
81
- };
82
- target.headers = mergeHeaders2(translated.headers, target.headers);
83
- target.body = mergeOverlay2(translated.body, target.body);
84
- target.variants = target.variants?.map((variant) => {
85
- const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
86
- const headers = mergeHeaders2(overlay.headers, variant.headers);
87
- const body = mergeOverlay2(overlay.body, variant.body);
88
- return {
89
- id: variant.id,
90
- ...variant.settings === undefined ? {} : { settings: overlay.settings },
91
- ...headers === undefined ? {} : { headers },
92
- ...body === undefined ? {} : { body }
93
- };
94
- });
95
- }
96
- var PACKAGES = {
97
- "@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
98
- "@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
99
- "@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
100
- "@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
101
- "@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
102
- "@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
103
- "@ai-sdk/google": "@opencode/ai/providers/google",
104
- "@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
105
- "@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
106
- "@ai-sdk/groq": "@opencode/ai/providers/groq",
107
- "@ai-sdk/mistral": "@opencode/ai/providers/mistral",
108
- "@ai-sdk/openai": "@opencode/ai/providers/openai",
109
- "@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
110
- "@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
111
- "@ai-sdk/xai": "@opencode/ai/providers/xai",
112
- "@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
113
- "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
114
- };
115
- var protocols = (name) => ({
116
- "@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
117
- "@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
118
- "@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
119
- });
120
- var HOSTS = {
121
- alibaba: protocols("alibaba"),
122
- "alibaba-cn": protocols("alibaba"),
123
- "alibaba-coding-plan": protocols("alibaba"),
124
- "alibaba-coding-plan-cn": protocols("alibaba"),
125
- "alibaba-token-plan": protocols("alibaba"),
126
- "alibaba-token-plan-cn": protocols("alibaba"),
127
- baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
128
- "cloudflare-ai-gateway": {
129
- "@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
130
- "@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
131
- "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
132
- "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
133
- },
134
- "cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
135
- deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
136
- "fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
137
- "google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
138
- "kimi-for-coding": protocols("moonshot"),
139
- meta: protocols("meta"),
140
- minimax: protocols("minimax"),
141
- "minimax-cn": protocols("minimax"),
142
- "minimax-coding-plan": protocols("minimax"),
143
- "minimax-cn-coding-plan": protocols("minimax"),
144
- moonshotai: protocols("moonshot"),
145
- "moonshotai-cn": protocols("moonshot"),
146
- zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
147
- "zai-coding-plan": protocols("zai-coding-plan"),
148
- zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
149
- "zhipuai-coding-plan": protocols("zai-coding-plan")
150
- };
151
- var NATIVE = new Set([
152
- ...Object.values(PACKAGES),
153
- ...Object.values(HOSTS).flatMap((host) => Object.values(host)),
154
- "@opencode/ai/providers/azure/chat",
155
- "@opencode/ai/providers/amazon-bedrock/mantle",
156
- "@opencode/ai/providers/amazon-bedrock/mantle/chat",
157
- "@opencode/ai/providers/amazon-bedrock/mantle/responses"
158
- ]);
159
- function native2(npm, context) {
160
- const host = HOSTS[context.providerID]?.[npm];
161
- if (host)
162
- return host;
163
- if (npm === "@ai-sdk/amazon-bedrock/mantle")
164
- return mantle(context.modelID);
165
- if (npm === "@ai-sdk/azure" && context.settings?.useCompletionUrls === true)
166
- return "@opencode/ai/providers/azure/chat";
167
- return PACKAGES[npm];
168
- }
169
- var mantle = (modelID) => {
170
- if (modelID === undefined)
171
- return "@opencode/ai/providers/amazon-bedrock/mantle";
172
- return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
173
- };
174
- function resolve(specifier, context) {
175
- const npm = packageName2(specifier);
176
- if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
177
- return native2(npm, context);
178
- if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
179
- return mantle(context.modelID);
180
- if (npm === "@opencode/ai/providers/azure/responses" && context.settings?.useCompletionUrls === true)
181
- return "@opencode/ai/providers/azure/chat";
182
- return NATIVE.has(npm) ? npm : undefined;
183
- }
184
- function options(replacement, modelID, settings) {
185
- const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
186
- const kept = Struct.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
187
- return {
188
- settings: replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
189
- ...settings.headers === undefined ? {} : { headers: settings.headers },
190
- ...settings.extraBody === undefined ? {} : { body: settings.extraBody },
191
- ...converse ? bedrockRequest(modelID, settings) : {},
192
- ...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
193
- };
194
- }
195
- var BEDROCK_KEYS = [
196
- "bearerToken",
197
- "endpoint",
198
- "credentials",
199
- "credentialProvider",
200
- "accessKeyId",
201
- "secretAccessKey",
202
- "sessionToken"
203
- ];
204
- var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
205
- function bedrockSettings(settings, converse) {
206
- const region = settings.region ?? settings.credentials?.region;
207
- const credentials = settings.credentials ?? settings;
208
- const baseURL = settings.baseURL ?? settings.endpoint;
209
- return {
210
- ...Struct.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
211
- ...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
212
- ...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
213
- ...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
214
- credentials: {
215
- ...region === undefined ? {} : { region },
216
- accessKeyId: credentials.accessKeyId,
217
- secretAccessKey: credentials.secretAccessKey,
218
- ...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
219
- }
220
- }
221
- };
222
- }
223
- function bedrockRequest(modelID, settings) {
224
- const additional = settings.additionalModelRequestFields ?? {};
225
- const reasoning = settings.reasoningConfig;
226
- const anthropic = modelID?.includes("anthropic") ?? false;
227
- const openai = modelID?.includes("openai.") ?? false;
228
- const harmony = modelID?.includes("openai.gpt-oss") ?? false;
229
- const effort = reasoning?.maxReasoningEffort;
230
- const type = reasoning?.type;
231
- const budget = reasoning?.budgetTokens;
232
- const display = reasoning?.display;
233
- const betas = settings.anthropicBeta ?? [];
234
- const fields = mergeOverlay2(additional, {
235
- ...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
236
- ...anthropic && type === "enabled" && budget !== undefined ? { thinking: { type: "enabled", budget_tokens: budget } } : {},
237
- ...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
238
- ...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
239
- ...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
240
- ...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
241
- ...!anthropic && !openai && effort !== undefined ? {
242
- reasoningConfig: {
243
- ...type === undefined || type === "adaptive" ? {} : { type },
244
- ...budget === undefined ? {} : { budgetTokens: budget },
245
- maxReasoningEffort: effort
246
- }
247
- } : {}
248
- });
249
- const body = {
250
- ...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
251
- ...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
252
- };
253
- return Object.keys(body).length === 0 ? {} : { body };
254
- }
255
- var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
256
- function openRouterRequest(settings) {
257
- const headers = mergeHeaders2({
258
- ...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
259
- ...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
260
- ...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
261
- }, settings.headers) ?? {};
262
- return Object.keys(headers).length === 0 ? {} : { headers };
263
- }
264
- var lenient = (schema) => Schema.optional(Schema.UndefinedOr(schema).pipe(Schema.catchDecoding(() => Effect.succeed(Option.some(undefined)))));
265
- var Credentials = Schema.Struct({
266
- accessKeyId: Schema.String,
267
- secretAccessKey: Schema.String,
268
- sessionToken: lenient(Schema.String),
269
- region: lenient(Schema.String)
270
- });
271
- var Legacy = Schema.StructWithRest(Schema.Struct({
272
- apiKey: lenient(Schema.String),
273
- baseURL: lenient(Schema.String),
274
- headers: lenient(Schema.Record(Schema.String, Schema.String)),
275
- extraBody: lenient(Schema.Record(Schema.String, Schema.Unknown)),
276
- useCompletionUrls: lenient(Schema.Boolean),
277
- auth: lenient(Schema.Literals(["bearer", "sigv4"])),
278
- bearerToken: lenient(Schema.String),
279
- endpoint: lenient(Schema.String),
280
- region: lenient(Schema.String),
281
- credentials: lenient(Credentials),
282
- accessKeyId: lenient(Schema.String),
283
- secretAccessKey: lenient(Schema.String),
284
- sessionToken: lenient(Schema.String),
285
- anthropicBeta: lenient(Schema.Array(Schema.String)),
286
- serviceTier: lenient(Schema.String),
287
- reasoningConfig: lenient(Schema.Struct({
288
- type: lenient(Schema.String),
289
- display: lenient(Schema.String),
290
- maxReasoningEffort: lenient(Schema.String),
291
- budgetTokens: lenient(Schema.Number)
292
- })),
293
- additionalModelRequestFields: lenient(Schema.StructWithRest(Schema.Struct({
294
- anthropic_beta: lenient(Schema.Array(Schema.String)),
295
- output_config: lenient(Schema.Record(Schema.String, Schema.Unknown)),
296
- reasoning: lenient(Schema.Record(Schema.String, Schema.Unknown))
297
- }), [Schema.Record(Schema.String, Schema.Unknown)])),
298
- appName: lenient(Schema.String),
299
- appUrl: lenient(Schema.String),
300
- api_keys: lenient(Schema.Record(Schema.String, Schema.String))
301
- }), [Schema.Record(Schema.String, Schema.Unknown)]);
302
- var decode = Schema.decodeUnknownSync(Legacy);
303
-
304
- // src/provider.ts
305
- import { Event as Event15 } from "@opencode/schema/provider";
306
- var ID13 = Provider.ID;
67
+ import { Event as Event13 } from "@opencode/schema/provider";
68
+ var ID7 = Provider.ID;
307
69
  var AISDK_PREFIX2 = "aisdk:";
308
70
  var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
309
71
  var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
@@ -314,12 +76,12 @@ function packageName2(value) {
314
76
  return value;
315
77
  return value.slice(AISDK_PREFIX2.length);
316
78
  }
317
- var JsonRecord = Schema2.Record(Schema2.String, Schema2.Json);
318
- var decodeJsonRecord = Schema2.decodeUnknownSync(JsonRecord);
79
+ var JsonRecord = Schema.Record(Schema.String, Schema.Json);
80
+ var decodeJsonRecord = Schema.decodeUnknownSync(JsonRecord);
319
81
 
320
- class LoadError3 extends Schema2.TaggedError()("Provider.LoadError", {
321
- package: Schema2.String,
322
- cause: Schema2.Defect()
82
+ class LoadError3 extends Schema.TaggedError()("Provider.LoadError", {
83
+ package: Schema.String,
84
+ cause: Schema.Defect()
323
85
  }) {
324
86
  }
325
87
  var packages = new Map;
@@ -380,12 +142,12 @@ var builtins = new Map([
380
142
  () => import("@opencode/ai/providers/zai-coding-plan/responses")
381
143
  ]
382
144
  ]);
383
- var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
145
+ var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
384
146
  const specifier = packageName2(input);
385
147
  const builtin = builtins.get(specifier);
386
148
  if (builtin)
387
149
  return yield* importPackage(specifier, specifier, builtin);
388
- const resolved = yield* Effect2.sync(() => {
150
+ const resolved = yield* Effect.sync(() => {
389
151
  if (specifier.startsWith("file://") || specifier.startsWith("@opencode/ai/"))
390
152
  return specifier;
391
153
  try {
@@ -404,8 +166,8 @@ var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
404
166
  }
405
167
  const parts = specifier.split("/");
406
168
  const root = specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0] ?? specifier;
407
- const installed = yield* npm.add(root).pipe(Effect2.mapError((cause) => new LoadError3({ package: specifier, cause })));
408
- const entrypoint = yield* Effect2.try({
169
+ const installed = yield* npm.add(root).pipe(Effect.mapError((cause) => new LoadError3({ package: specifier, cause })));
170
+ const entrypoint = yield* Effect.try({
409
171
  try: () => resolveModule(specifier, installed.directory),
410
172
  catch: (cause) => new LoadError3({ package: specifier, cause })
411
173
  });
@@ -414,10 +176,10 @@ var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
414
176
  var CORE_KEYS = ["chunkTimeout", "compaction", "fetch", "timeout", "transport"];
415
177
  var PROVIDER_ONLY_KEYS = ["chunkTimeout", "timeout", "transport"];
416
178
  function nativeSettings2(settings) {
417
- return Struct2.omit(settings, CORE_KEYS);
179
+ return Struct.omit(settings, CORE_KEYS);
418
180
  }
419
181
  function modelSettings2(settings) {
420
- return settings && Struct2.omit(settings, PROVIDER_ONLY_KEYS);
182
+ return settings && Struct.omit(settings, PROVIDER_ONLY_KEYS);
421
183
  }
422
184
  function mergeOverlay2(base, overlay) {
423
185
  if (base === undefined)
@@ -444,13 +206,13 @@ function mergeHeaders2(base, overlay) {
444
206
  return result;
445
207
  }, new Map).values());
446
208
  }
447
- var Request3 = Provider.Request;
209
+ var Request2 = Provider.Request;
448
210
  var Compaction3 = Provider.Compaction;
449
211
  var Transport2 = Provider.Transport;
450
212
  var Settings2 = Provider.Settings;
451
- var Info27 = Provider.Info;
213
+ var Info21 = Provider.Info;
452
214
 
453
- class Service73 extends Context.Service()("@opencode/Provider") {
215
+ class Service61 extends Context.Service()("@opencode/Provider") {
454
216
  }
455
217
  var definitions = new WeakMap;
456
218
  function index(providerID, models) {
@@ -463,10 +225,10 @@ function index(providerID, models) {
463
225
  definitions.set(models, indexes);
464
226
  return result;
465
227
  }
466
- var layer = Layer.effect(Service73, Effect2.gen(function* () {
228
+ var layer = Layer.effect(Service61, Effect.gen(function* () {
467
229
  const bus = yield* Service83;
468
- const integrations = yield* Service77;
469
- const location = yield* Service74;
230
+ const integrations = yield* Service62;
231
+ const location = yield* Service80;
470
232
  const state = create3({
471
233
  name: "provider",
472
234
  initial: () => new Map,
@@ -477,7 +239,7 @@ var layer = Layer.effect(Service73, Effect2.gen(function* () {
477
239
  const current = records.get(id);
478
240
  if (current)
479
241
  return current;
480
- const added = { provider: Info27.empty(id), models: new Map };
242
+ const added = { provider: Info21.empty(id), models: new Map };
481
243
  records.set(id, added);
482
244
  maps.add(added.models);
483
245
  return added;
@@ -545,9 +307,9 @@ var layer = Layer.effect(Service73, Effect2.gen(function* () {
545
307
  },
546
308
  notify: () => notify
547
309
  });
548
- yield* Effect2.addFinalizer(() => shutdown2(state.reload()));
310
+ yield* Effect.addFinalizer(() => shutdown2(state.reload()));
549
311
  let cached;
550
- const snapshot = Effect2.fn("Provider.snapshot")(function* () {
312
+ const snapshot = Effect.fn("Provider.snapshot")(function* () {
551
313
  while (true) {
552
314
  const revision = integrations.revision();
553
315
  const records = state.get();
@@ -558,7 +320,7 @@ var layer = Layer.effect(Service73, Effect2.gen(function* () {
558
320
  const available = Array.from(records.values()).filter((record) => {
559
321
  if (record.provider.activation === "disabled")
560
322
  return false;
561
- const integration = byID.get(record.provider.integrationID ?? ID16.make(record.provider.id));
323
+ const integration = byID.get(record.provider.integrationID ?? ID8.make(record.provider.id));
562
324
  if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
563
325
  return false;
564
326
  if (record.provider.activation === "enabled")
@@ -575,7 +337,7 @@ var layer = Layer.effect(Service73, Effect2.gen(function* () {
575
337
  }
576
338
  });
577
339
  let published;
578
- const notify = Effect2.gen(function* () {
340
+ const notify = Effect.gen(function* () {
579
341
  const value = yield* snapshot();
580
342
  if (value === published)
581
343
  return;
@@ -584,19 +346,19 @@ var layer = Layer.effect(Service73, Effect2.gen(function* () {
584
346
  location: { directory: location.directory, workspaceID: location.workspaceID }
585
347
  });
586
348
  });
587
- yield* bus.subscribe([Event17.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect2.forkScoped({ startImmediately: true }));
588
- return Service73.of({
349
+ yield* bus.subscribe([Event14.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
350
+ return Service61.of({
589
351
  transform: state.transform,
590
352
  reload: state.reload,
591
- get: Effect2.fn("Provider.get")((id) => Effect2.sync(() => freeze(state.get().get(id)?.provider, true))),
592
- all: Effect2.fn("Provider.all")(() => Effect2.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
593
- available: Effect2.fn("Provider.available")(() => snapshot().pipe(Effect2.map((value) => value.providers))),
353
+ get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
354
+ all: Effect.fn("Provider.all")(() => Effect.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
355
+ available: Effect.fn("Provider.available")(() => snapshot().pipe(Effect.map((value) => value.providers))),
594
356
  snapshot
595
357
  });
596
358
  }));
597
- var node77 = makeLocationNode({ service: Service73, layer, deps: [node87, node81, node78] });
598
- var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
599
- const module = yield* Effect2.tryPromise({
359
+ var node64 = makeLocationNode({ service: Service61, layer, deps: [node87, node65, node84] });
360
+ var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
361
+ const module = yield* Effect.tryPromise({
600
362
  try: () => {
601
363
  const existing = packages.get(entrypoint);
602
364
  if (existing)
@@ -616,4 +378,242 @@ var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, e
616
378
  return module;
617
379
  });
618
380
 
619
- export { ID13, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info27, Service73, node77, exports_provider3, Event15, rewrite2, native2, exports_aisdk_native };
381
+ // src/aisdk-native.ts
382
+ function rewrite2(target, input) {
383
+ if (input.specifier === undefined)
384
+ return;
385
+ const plain = resolve(input.specifier, input);
386
+ if (!plain)
387
+ return;
388
+ const settings = decode(target.settings ?? {});
389
+ const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
390
+ const translated = options(replacement, input.modelID, settings);
391
+ if (target.package !== undefined || replacement !== input.specifier)
392
+ target.package = replacement;
393
+ target.settings = target.settings === undefined ? undefined : {
394
+ ...translated.settings,
395
+ ...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
396
+ };
397
+ target.headers = mergeHeaders2(translated.headers, target.headers);
398
+ target.body = mergeOverlay2(translated.body, target.body);
399
+ target.variants = target.variants?.map((variant) => {
400
+ const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
401
+ const headers = mergeHeaders2(overlay.headers, variant.headers);
402
+ const body = mergeOverlay2(overlay.body, variant.body);
403
+ return {
404
+ id: variant.id,
405
+ ...variant.settings === undefined ? {} : { settings: overlay.settings },
406
+ ...headers === undefined ? {} : { headers },
407
+ ...body === undefined ? {} : { body }
408
+ };
409
+ });
410
+ }
411
+ var PACKAGES = {
412
+ "@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
413
+ "@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
414
+ "@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
415
+ "@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
416
+ "@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
417
+ "@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
418
+ "@ai-sdk/google": "@opencode/ai/providers/google",
419
+ "@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
420
+ "@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
421
+ "@ai-sdk/groq": "@opencode/ai/providers/groq",
422
+ "@ai-sdk/mistral": "@opencode/ai/providers/mistral",
423
+ "@ai-sdk/openai": "@opencode/ai/providers/openai",
424
+ "@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
425
+ "@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
426
+ "@ai-sdk/xai": "@opencode/ai/providers/xai",
427
+ "@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
428
+ "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
429
+ };
430
+ var protocols = (name) => ({
431
+ "@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
432
+ "@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
433
+ "@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
434
+ });
435
+ var HOSTS = {
436
+ alibaba: protocols("alibaba"),
437
+ "alibaba-cn": protocols("alibaba"),
438
+ "alibaba-coding-plan": protocols("alibaba"),
439
+ "alibaba-coding-plan-cn": protocols("alibaba"),
440
+ "alibaba-token-plan": protocols("alibaba"),
441
+ "alibaba-token-plan-cn": protocols("alibaba"),
442
+ baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
443
+ "cloudflare-ai-gateway": {
444
+ "@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
445
+ "@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
446
+ "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
447
+ "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
448
+ },
449
+ "cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
450
+ deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
451
+ "fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
452
+ "google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
453
+ "kimi-for-coding": protocols("moonshot"),
454
+ meta: protocols("meta"),
455
+ minimax: protocols("minimax"),
456
+ "minimax-cn": protocols("minimax"),
457
+ "minimax-coding-plan": protocols("minimax"),
458
+ "minimax-cn-coding-plan": protocols("minimax"),
459
+ moonshotai: protocols("moonshot"),
460
+ "moonshotai-cn": protocols("moonshot"),
461
+ zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
462
+ "zai-coding-plan": protocols("zai-coding-plan"),
463
+ zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
464
+ "zhipuai-coding-plan": protocols("zai-coding-plan")
465
+ };
466
+ var NATIVE = new Set([
467
+ ...Object.values(PACKAGES),
468
+ ...Object.values(HOSTS).flatMap((host) => Object.values(host)),
469
+ "@opencode/ai/providers/azure/chat",
470
+ "@opencode/ai/providers/amazon-bedrock/mantle",
471
+ "@opencode/ai/providers/amazon-bedrock/mantle/chat",
472
+ "@opencode/ai/providers/amazon-bedrock/mantle/responses"
473
+ ]);
474
+ function native2(npm, context) {
475
+ const host = HOSTS[context.providerID]?.[npm];
476
+ if (host)
477
+ return host;
478
+ if (npm === "@ai-sdk/amazon-bedrock/mantle")
479
+ return mantle(context.modelID);
480
+ if (npm === "@ai-sdk/azure" && context.settings?.useCompletionUrls === true)
481
+ return "@opencode/ai/providers/azure/chat";
482
+ return PACKAGES[npm];
483
+ }
484
+ var mantle = (modelID) => {
485
+ if (modelID === undefined)
486
+ return "@opencode/ai/providers/amazon-bedrock/mantle";
487
+ return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
488
+ };
489
+ function resolve(specifier, context) {
490
+ const npm = packageName2(specifier);
491
+ if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
492
+ return native2(npm, context);
493
+ if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
494
+ return mantle(context.modelID);
495
+ if (npm === "@opencode/ai/providers/azure/responses" && context.settings?.useCompletionUrls === true)
496
+ return "@opencode/ai/providers/azure/chat";
497
+ return NATIVE.has(npm) ? npm : undefined;
498
+ }
499
+ function options(replacement, modelID, settings) {
500
+ const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
501
+ const kept = Struct2.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
502
+ return {
503
+ settings: replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
504
+ ...settings.headers === undefined ? {} : { headers: settings.headers },
505
+ ...settings.extraBody === undefined ? {} : { body: settings.extraBody },
506
+ ...converse ? bedrockRequest(modelID, settings) : {},
507
+ ...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
508
+ };
509
+ }
510
+ var BEDROCK_KEYS = [
511
+ "bearerToken",
512
+ "endpoint",
513
+ "credentials",
514
+ "credentialProvider",
515
+ "accessKeyId",
516
+ "secretAccessKey",
517
+ "sessionToken"
518
+ ];
519
+ var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
520
+ function bedrockSettings(settings, converse) {
521
+ const region = settings.region ?? settings.credentials?.region;
522
+ const credentials = settings.credentials ?? settings;
523
+ const baseURL = settings.baseURL ?? settings.endpoint;
524
+ return {
525
+ ...Struct2.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
526
+ ...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
527
+ ...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
528
+ ...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
529
+ credentials: {
530
+ ...region === undefined ? {} : { region },
531
+ accessKeyId: credentials.accessKeyId,
532
+ secretAccessKey: credentials.secretAccessKey,
533
+ ...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
534
+ }
535
+ }
536
+ };
537
+ }
538
+ function bedrockRequest(modelID, settings) {
539
+ const additional = settings.additionalModelRequestFields ?? {};
540
+ const reasoning = settings.reasoningConfig;
541
+ const anthropic = modelID?.includes("anthropic") ?? false;
542
+ const openai = modelID?.includes("openai.") ?? false;
543
+ const harmony = modelID?.includes("openai.gpt-oss") ?? false;
544
+ const effort = reasoning?.maxReasoningEffort;
545
+ const type = reasoning?.type;
546
+ const budget = reasoning?.budgetTokens;
547
+ const display = reasoning?.display;
548
+ const betas = settings.anthropicBeta ?? [];
549
+ const fields = mergeOverlay2(additional, {
550
+ ...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
551
+ ...anthropic && type === "enabled" && budget !== undefined ? { thinking: { type: "enabled", budget_tokens: budget } } : {},
552
+ ...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
553
+ ...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
554
+ ...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
555
+ ...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
556
+ ...!anthropic && !openai && effort !== undefined ? {
557
+ reasoningConfig: {
558
+ ...type === undefined || type === "adaptive" ? {} : { type },
559
+ ...budget === undefined ? {} : { budgetTokens: budget },
560
+ maxReasoningEffort: effort
561
+ }
562
+ } : {}
563
+ });
564
+ const body = {
565
+ ...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
566
+ ...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
567
+ };
568
+ return Object.keys(body).length === 0 ? {} : { body };
569
+ }
570
+ var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
571
+ function openRouterRequest(settings) {
572
+ const headers = mergeHeaders2({
573
+ ...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
574
+ ...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
575
+ ...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
576
+ }, settings.headers) ?? {};
577
+ return Object.keys(headers).length === 0 ? {} : { headers };
578
+ }
579
+ var lenient = (schema) => Schema2.optional(Schema2.UndefinedOr(schema).pipe(Schema2.catchDecoding(() => Effect2.succeed(Option.some(undefined)))));
580
+ var Credentials = Schema2.Struct({
581
+ accessKeyId: Schema2.String,
582
+ secretAccessKey: Schema2.String,
583
+ sessionToken: lenient(Schema2.String),
584
+ region: lenient(Schema2.String)
585
+ });
586
+ var Legacy = Schema2.StructWithRest(Schema2.Struct({
587
+ apiKey: lenient(Schema2.String),
588
+ baseURL: lenient(Schema2.String),
589
+ headers: lenient(Schema2.Record(Schema2.String, Schema2.String)),
590
+ extraBody: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
591
+ useCompletionUrls: lenient(Schema2.Boolean),
592
+ auth: lenient(Schema2.Literals(["bearer", "sigv4"])),
593
+ bearerToken: lenient(Schema2.String),
594
+ endpoint: lenient(Schema2.String),
595
+ region: lenient(Schema2.String),
596
+ credentials: lenient(Credentials),
597
+ accessKeyId: lenient(Schema2.String),
598
+ secretAccessKey: lenient(Schema2.String),
599
+ sessionToken: lenient(Schema2.String),
600
+ anthropicBeta: lenient(Schema2.Array(Schema2.String)),
601
+ serviceTier: lenient(Schema2.String),
602
+ reasoningConfig: lenient(Schema2.Struct({
603
+ type: lenient(Schema2.String),
604
+ display: lenient(Schema2.String),
605
+ maxReasoningEffort: lenient(Schema2.String),
606
+ budgetTokens: lenient(Schema2.Number)
607
+ })),
608
+ additionalModelRequestFields: lenient(Schema2.StructWithRest(Schema2.Struct({
609
+ anthropic_beta: lenient(Schema2.Array(Schema2.String)),
610
+ output_config: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
611
+ reasoning: lenient(Schema2.Record(Schema2.String, Schema2.Unknown))
612
+ }), [Schema2.Record(Schema2.String, Schema2.Unknown)])),
613
+ appName: lenient(Schema2.String),
614
+ appUrl: lenient(Schema2.String),
615
+ api_keys: lenient(Schema2.Record(Schema2.String, Schema2.String))
616
+ }), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
617
+ var decode = Schema2.decodeUnknownSync(Legacy);
618
+
619
+ export { rewrite2, native2, exports_aisdk_native, ID7, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, mergeOverlay2, mergeHeaders2, Request2, Compaction3, Transport2, Settings2, Info21, Service61, node64, exports_provider3, Event13 };