@opencode/core 0.0.0-dev-20480 → 0.0.0-dev-20481

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 (782) 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/{location-activity-6mhjx4b6.js → git-02rta1p5.js} +2 -2
  8. package/dist/chunks/{location-activity-wg68nafb.js → git-03xyy9gs.js} +11 -11
  9. package/dist/chunks/{location-activity-y14bx9tm.js → git-0h87xbbz.js} +11 -11
  10. package/dist/chunks/{location-activity-0paq2nw3.js → git-0paq2nw3.js} +1 -1
  11. package/dist/chunks/{location-activity-n6nrhf01.js → git-0r7m21ea.js} +32 -32
  12. package/dist/chunks/{location-activity-0vbcp93d.js → git-0vbcp93d.js} +2 -2
  13. package/dist/chunks/{location-activity-8bm8gygk.js → git-11schykf.js} +18 -18
  14. package/dist/chunks/{location-activity-t6hpw5rz.js → git-16tfmg9n.js} +13 -13
  15. package/dist/chunks/{location-activity-5shwkg68.js → git-17xbj2z7.js} +2 -2
  16. package/dist/chunks/{location-activity-r8xr0va3.js → git-1acjjqhc.js} +4 -4
  17. package/dist/chunks/{location-activity-9hn6k4tm.js → git-1ajx6rf5.js} +8 -8
  18. package/dist/chunks/{location-activity-dmvmn2q0.js → git-1bypmceh.js} +16 -16
  19. package/dist/chunks/{location-activity-1dazxqgg.js → git-1dazxqgg.js} +2 -2
  20. package/dist/chunks/{location-activity-84h8c373.js → git-1dvck2a7.js} +2 -2
  21. package/dist/chunks/{location-activity-89za3yyg.js → git-1gpb38yh.js} +9 -9
  22. package/dist/chunks/{location-activity-gd1at56q.js → git-1pfhqsc3.js} +20 -20
  23. package/dist/chunks/{location-activity-p1h07j1p.js → git-1x0zm3dp.js} +20 -20
  24. package/dist/chunks/{location-activity-k2dbp69f.js → git-1zn329az.js} +10 -10
  25. package/dist/chunks/{location-activity-dc9hv6dn.js → git-200bxkj7.js} +20 -20
  26. package/dist/chunks/{location-activity-rvevwjzn.js → git-272ak889.js} +14 -14
  27. package/dist/chunks/{location-activity-2a5m3afh.js → git-2a5m3afh.js} +1 -1
  28. package/dist/chunks/{location-activity-adcymw1a.js → git-2bzy33zx.js} +18 -18
  29. package/dist/chunks/{location-activity-hntbmpkd.js → git-2hstpqf3.js} +9 -9
  30. package/dist/chunks/{location-activity-85bcdz65.js → git-2re9vmfy.js} +16 -16
  31. package/dist/chunks/{location-activity-md6w79y2.js → git-327sg516.js} +16 -16
  32. package/dist/chunks/{location-activity-ah6q2b7n.js → git-3382x40z.js} +4 -4
  33. package/dist/chunks/{location-activity-9ncrd2s7.js → git-386dse5s.js} +30 -30
  34. package/dist/chunks/{location-activity-3fc6dm20.js → git-3fc6dm20.js} +1 -1
  35. package/dist/chunks/{location-activity-yej8dt28.js → git-3gjywyz4.js} +11 -11
  36. package/dist/chunks/{location-activity-ekssatwp.js → git-3gz5rark.js} +35 -35
  37. package/dist/chunks/{location-activity-3hepkmqq.js → git-3hepkmqq.js} +1 -1
  38. package/dist/chunks/{location-activity-1jktvbmr.js → git-3q5fxme7.js} +9 -9
  39. package/dist/chunks/{location-activity-3smtnn6g.js → git-3smtnn6g.js} +1 -1
  40. package/dist/chunks/{location-activity-3tvqynh2.js → git-3tvqynh2.js} +1 -1
  41. package/dist/chunks/{location-activity-5c258t51.js → git-3wpc7sdy.js} +27 -27
  42. package/dist/chunks/{location-activity-3zsf4n22.js → git-3zsf4n22.js} +1 -1
  43. package/dist/chunks/{location-activity-g4je1hn3.js → git-41vfag0n.js} +16 -16
  44. package/dist/chunks/{location-activity-3fwjzrvh.js → git-42a4b5x3.js} +30 -30
  45. package/dist/chunks/{location-activity-t0cz011w.js → git-470k3ke5.js} +18 -18
  46. package/dist/chunks/{location-activity-2p623br6.js → git-4a6jpjer.js} +5 -5
  47. package/dist/chunks/{location-activity-63kpjth9.js → git-4ckgtqrh.js} +9 -9
  48. package/dist/chunks/{location-activity-2wfefq25.js → git-4mwhzqns.js} +34 -34
  49. package/dist/chunks/{location-activity-2ccvkpx1.js → git-4ts7tf6z.js} +2 -2
  50. package/dist/chunks/{location-activity-vd5y62t1.js → git-4wrkd8nn.js} +11 -11
  51. package/dist/chunks/{location-activity-30krspkn.js → git-4wx3j26j.js} +4 -4
  52. package/dist/chunks/{location-activity-w2h15q85.js → git-4xpgt2w9.js} +5 -5
  53. package/dist/chunks/{location-activity-dzse07y5.js → git-51f5btjf.js} +6 -6
  54. package/dist/chunks/{location-activity-54ma36ye.js → git-54ma36ye.js} +1 -1
  55. package/dist/chunks/{location-activity-ajc4e5h8.js → git-5azn87gq.js} +28 -28
  56. package/dist/chunks/{location-activity-5daktx2q.js → git-5daktx2q.js} +1 -1
  57. package/dist/chunks/{location-activity-rjjes25b.js → git-5hqve3aj.js} +9 -9
  58. package/dist/chunks/{location-activity-e3qxr5gk.js → git-5qd3pb7m.js} +2 -2
  59. package/dist/chunks/{location-activity-hvp92dt9.js → git-5sqh9w00.js} +15 -15
  60. package/dist/chunks/{location-activity-5t3nmthw.js → git-5t3nmthw.js} +2 -2
  61. package/dist/chunks/{location-activity-tbd6cyzm.js → git-5v41a74b.js} +9 -9
  62. package/dist/chunks/{location-activity-ca8f65ss.js → git-5zfwvp2h.js} +6 -6
  63. package/dist/chunks/{location-activity-c2xhvt6h.js → git-62dyt405.js} +11 -11
  64. package/dist/chunks/{location-activity-669tq793.js → git-669tq793.js} +1 -1
  65. package/dist/chunks/{location-activity-7y5xt9fp.js → git-6dmpadww.js} +20 -20
  66. package/dist/chunks/{location-activity-zrbtt2np.js → git-6gna983b.js} +9 -9
  67. package/dist/chunks/{location-activity-dezvg7mv.js → git-6pjm6hxh.js} +41 -41
  68. package/dist/chunks/{location-activity-f75zav2x.js → git-71az546q.js} +2 -2
  69. package/dist/chunks/{location-activity-wg8gh26w.js → git-73pa4q01.js} +21 -21
  70. package/dist/chunks/{location-activity-7bmhse3q.js → git-7bmhse3q.js} +1 -1
  71. package/dist/chunks/{location-activity-0930v272.js → git-7dd52q06.js} +3 -3
  72. package/dist/chunks/{location-activity-0q0bn7wt.js → git-7p313m06.js} +23 -23
  73. package/dist/chunks/{location-activity-9zdzxtry.js → git-7r82taj5.js} +18 -18
  74. package/dist/chunks/{location-activity-699ws4wq.js → git-83cqqva6.js} +17 -17
  75. package/dist/chunks/{location-activity-350srhaq.js → git-8a37x1ax.js} +50 -50
  76. package/dist/chunks/{location-activity-8d7r5vzw.js → git-8d7r5vzw.js} +1 -1
  77. package/dist/chunks/{location-activity-h4khw5px.js → git-8f060hg1.js} +11 -11
  78. package/dist/chunks/{location-activity-v0a4cbca.js → git-8khbh05p.js} +11 -11
  79. package/dist/chunks/{location-activity-v0es1rhs.js → git-8ndffx4j.js} +7 -7
  80. package/dist/chunks/{location-activity-h35v9yb6.js → git-8sme8jv8.js} +37 -37
  81. package/dist/chunks/{location-activity-nfg6fefr.js → git-92hpndrs.js} +9 -9
  82. package/dist/chunks/{location-activity-53sad93v.js → git-9750y225.js} +4 -4
  83. package/dist/chunks/{location-activity-yb8n5v0q.js → git-9bbmhm4m.js} +4 -4
  84. package/dist/chunks/{location-activity-kb9j3d72.js → git-9e5bzkjp.js} +3 -3
  85. package/dist/chunks/{location-activity-bcyfx9y6.js → git-9em85dm2.js} +15 -15
  86. package/dist/chunks/{location-activity-s7b7m8gm.js → git-9fyj3hys.js} +8 -8
  87. package/dist/chunks/{location-activity-v6eddqm0.js → git-9nytgvc2.js} +8 -8
  88. package/dist/chunks/{location-activity-182h7z1q.js → git-9qd58nx3.js} +24 -24
  89. package/dist/chunks/{location-activity-s8d7rejh.js → git-9t7a50xb.js} +4 -4
  90. package/dist/chunks/{location-activity-hge028m4.js → git-9zybxyya.js} +2 -2
  91. package/dist/chunks/{location-activity-agk43xgf.js → git-a3txam13.js} +23 -23
  92. package/dist/chunks/{location-activity-ce4acjxh.js → git-aa8qew8f.js} +22 -22
  93. package/dist/chunks/{location-activity-aaet6srn.js → git-aaet6srn.js} +2 -2
  94. package/dist/chunks/{location-activity-7qw5pe6x.js → git-ap4zckht.js} +15 -15
  95. package/dist/chunks/{location-activity-n6125c2f.js → git-apaqd6gh.js} +1 -1
  96. package/dist/chunks/{location-activity-9xtpzk6w.js → git-apm8h6qx.js} +85 -85
  97. package/dist/chunks/{location-activity-wdpy1g7d.js → git-b45szw8n.js} +12 -12
  98. package/dist/chunks/{location-activity-b6gygkdw.js → git-b6gygkdw.js} +2 -2
  99. package/dist/chunks/{location-activity-59g0s8dr.js → git-b6reh3hn.js} +16 -16
  100. package/dist/chunks/{location-activity-4s3tx91s.js → git-bbw36kky.js} +24 -24
  101. package/dist/chunks/{location-activity-y1qqcj8h.js → git-bh0zzf2s.js} +8 -8
  102. package/dist/chunks/{location-activity-pde12nfv.js → git-bpkwba73.js} +48 -48
  103. package/dist/chunks/{location-activity-sy19eeqe.js → git-brvreg6p.js} +1 -1
  104. package/dist/chunks/{location-activity-dbwd59jn.js → git-bt3d1ymw.js} +22 -19
  105. package/dist/chunks/{location-activity-yr715y08.js → git-bydnjh3t.js} +9 -9
  106. package/dist/chunks/{location-activity-9fcaedt7.js → git-bz7vn164.js} +8 -8
  107. package/dist/chunks/{location-activity-qebx1f20.js → git-c16f70nq.js} +10 -10
  108. package/dist/chunks/{location-activity-4de0x2wn.js → git-c7x212x9.js} +1 -1
  109. package/dist/chunks/{location-activity-6r3g6dz6.js → git-cbyyef9c.js} +31 -31
  110. package/dist/chunks/{location-activity-4hn8epdp.js → git-ccksxbyh.js} +28 -28
  111. package/dist/chunks/{location-activity-8sze2n9a.js → git-cfsekr6v.js} +6 -6
  112. package/dist/chunks/{location-activity-y2jnyesm.js → git-cgyy49aj.js} +11 -11
  113. package/dist/chunks/{location-activity-pg2wvq8g.js → git-cjerh2x3.js} +10 -10
  114. package/dist/chunks/{location-activity-n2nn37za.js → git-cjthjsse.js} +33 -33
  115. package/dist/chunks/{location-activity-cywz34g8.js → git-cr0y6bkk.js} +26 -26
  116. package/dist/chunks/{location-activity-cpneeje0.js → git-cwa6csj7.js} +9 -9
  117. package/dist/chunks/{location-activity-4y69q3w9.js → git-d819pdvd.js} +5 -5
  118. package/dist/chunks/{location-activity-14mdsyfv.js → git-dcs9hbsv.js} +21 -21
  119. package/dist/chunks/{location-activity-n11r83wc.js → git-dfrza52c.js} +11 -11
  120. package/dist/chunks/{location-activity-p9esxrs0.js → git-dherjby8.js} +5 -5
  121. package/dist/chunks/{location-activity-dmqcgk4z.js → git-dmqcgk4z.js} +2 -2
  122. package/dist/chunks/{location-activity-525retpn.js → git-dpe144tr.js} +13 -13
  123. package/dist/chunks/{location-activity-nxm207yx.js → git-dpkg50ah.js} +4 -4
  124. package/dist/chunks/{location-activity-3nmmjeqr.js → git-dqs0vcbf.js} +15 -15
  125. package/dist/chunks/{location-activity-drnf6xwf.js → git-drnf6xwf.js} +2 -2
  126. package/dist/chunks/{location-activity-k1qrnqst.js → git-dvc89yjx.js} +8 -8
  127. package/dist/chunks/{location-activity-mtjahv1a.js → git-e351gv9y.js} +11 -11
  128. package/dist/chunks/{location-activity-c1gcx4p7.js → git-eaxsg860.js} +3 -3
  129. package/dist/chunks/{location-activity-d4xa2c0j.js → git-eeb28w8k.js} +12 -12
  130. package/dist/chunks/{location-activity-ef5x83kb.js → git-ef5x83kb.js} +1 -1
  131. package/dist/chunks/{location-activity-116zdfxn.js → git-eseyeb0w.js} +14 -14
  132. package/dist/chunks/{location-activity-etq0c3wd.js → git-etq0c3wd.js} +1 -1
  133. package/dist/chunks/{location-activity-b24eg6ry.js → git-f95rk2pr.js} +23 -23
  134. package/dist/chunks/git-fpbz0h82.js +252 -0
  135. package/dist/chunks/{location-activity-f47cg35j.js → git-fr5pxeem.js} +23 -23
  136. package/dist/chunks/{location-activity-4rrx6bfz.js → git-fsfe74kd.js} +27 -27
  137. package/dist/chunks/{location-activity-8s0hbtb0.js → git-ftnv5kfd.js} +32 -32
  138. package/dist/chunks/git-fz13pkzb.js +507 -0
  139. package/dist/chunks/{location-activity-xfkkasph.js → git-g5w8qwbj.js} +4 -4
  140. package/dist/chunks/{location-activity-5wj0gyf6.js → git-g9tydsjn.js} +20 -20
  141. package/dist/chunks/{location-activity-0fve3x7k.js → git-gck3dpx1.js} +33 -33
  142. package/dist/chunks/{location-activity-gd4qta3r.js → git-gd4qta3r.js} +1 -1
  143. package/dist/chunks/{location-activity-adr463s0.js → git-gm6nnvxm.js} +24 -24
  144. package/dist/chunks/{location-activity-nsc4cbcy.js → git-gvzxnjjj.js} +4 -4
  145. package/dist/chunks/{location-activity-3cegwx68.js → git-h2b79v29.js} +2 -2
  146. package/dist/chunks/{location-activity-h6vf3j39.js → git-h6vf3j39.js} +1 -1
  147. package/dist/chunks/{location-activity-nh29y208.js → git-habzs87j.js} +18 -18
  148. package/dist/chunks/{location-activity-kef0s52w.js → git-hc976vhp.js} +15 -15
  149. package/dist/chunks/{location-activity-h1yvt719.js → git-hq153nby.js} +16 -16
  150. package/dist/chunks/{location-activity-zsrdwez2.js → git-hs4apeen.js} +10 -10
  151. package/dist/chunks/{location-activity-yqjd25qx.js → git-hvjr2bj8.js} +43 -43
  152. package/dist/chunks/{location-activity-3cg47sj7.js → git-hy3hxqkj.js} +10 -10
  153. package/dist/chunks/{location-activity-da11rmvm.js → git-j1j89z9y.js} +306 -306
  154. package/dist/chunks/{location-activity-bp279rdz.js → git-j505r7f3.js} +28 -28
  155. package/dist/chunks/{location-activity-j56e64zr.js → git-j56e64zr.js} +1 -1
  156. package/dist/chunks/{location-activity-hwrcrf3c.js → git-j712c6ve.js} +11 -11
  157. package/dist/chunks/{location-activity-w4mta7pp.js → git-j8rbgwqz.js} +43 -43
  158. package/dist/chunks/{location-activity-hfgdd62m.js → git-jf4axb2c.js} +3 -3
  159. package/dist/chunks/{location-activity-chrxq3ex.js → git-jrjafyr0.js} +11 -11
  160. package/dist/chunks/{location-activity-8gxqpgph.js → git-jvf3yq6v.js} +4 -4
  161. package/dist/chunks/{location-activity-656t1bz5.js → git-jyt5y1qt.js} +2 -2
  162. package/dist/chunks/{location-activity-1b3nhc4c.js → git-k0m5db98.js} +26 -26
  163. package/dist/chunks/{location-activity-wfx1w319.js → git-k2f9j3q2.js} +32 -32
  164. package/dist/chunks/{location-activity-2f0326dr.js → git-kaf4gepk.js} +54 -54
  165. package/dist/chunks/{location-activity-10kh9wpp.js → git-m0ekd96m.js} +6 -6
  166. package/dist/chunks/{location-activity-m3fdjcah.js → git-m3fdjcah.js} +1 -1
  167. package/dist/chunks/{location-activity-wx8f0816.js → git-m6x68w8h.js} +175 -175
  168. package/dist/chunks/{location-activity-x46ed3ah.js → git-m9v4343w.js} +14 -14
  169. package/dist/chunks/{location-activity-m9w0rfyh.js → git-m9w0rfyh.js} +1 -1
  170. package/dist/chunks/{location-activity-mfqp6xfm.js → git-mfqp6xfm.js} +2 -2
  171. package/dist/chunks/{location-activity-x6pyv2yz.js → git-mjagy123.js} +5 -5
  172. package/dist/chunks/{location-activity-p51p3jcg.js → git-mjymc32g.js} +21 -21
  173. package/dist/chunks/{location-activity-j028xdjb.js → git-mvfsc1pv.js} +3 -3
  174. package/dist/chunks/{location-activity-xn17k1w9.js → git-mx9s3x0a.js} +7 -7
  175. package/dist/chunks/{location-activity-0khjy9ec.js → git-n1n7d1bc.js} +33 -33
  176. package/dist/chunks/{location-activity-g8eyt1hc.js → git-nbbbwrsr.js} +46 -46
  177. package/dist/chunks/{location-activity-3556dn8t.js → git-ncnm8wen.js} +1 -1
  178. package/dist/chunks/{location-activity-wh506jg9.js → git-nte0bfvv.js} +18 -18
  179. package/dist/chunks/{location-activity-28zek266.js → git-p35g2vpz.js} +18 -18
  180. package/dist/chunks/{location-activity-bdn2jqxx.js → git-p558d1j2.js} +8 -8
  181. package/dist/chunks/{location-activity-567pkxz1.js → git-p6tgyf45.js} +5 -5
  182. package/dist/chunks/{location-activity-ck5rgqrb.js → git-p8k3f31h.js} +85 -85
  183. package/dist/chunks/{location-activity-8mk23zt3.js → git-p9yemd5w.js} +19 -19
  184. package/dist/chunks/{location-activity-kgnaaj8y.js → git-pbcn5b8q.js} +15 -15
  185. package/dist/chunks/{location-activity-f191dgah.js → git-pbpv9gfz.js} +9 -9
  186. package/dist/chunks/{location-activity-pjvnvgmy.js → git-pjvnvgmy.js} +1 -1
  187. package/dist/chunks/{location-activity-pknna89w.js → git-pknna89w.js} +1 -1
  188. package/dist/chunks/{location-activity-rm6495e7.js → git-pkyzxqrp.js} +20 -20
  189. package/dist/chunks/{location-activity-mdatewcv.js → git-pt1c4k6y.js} +21 -21
  190. package/dist/chunks/{location-activity-0ww7qdtd.js → git-py47m9dw.js} +10 -10
  191. package/dist/chunks/{location-activity-zxj9yazw.js → git-pzsynw2j.js} +8 -8
  192. package/dist/chunks/{location-activity-0j77ygfz.js → git-q0xm7vwc.js} +6 -6
  193. package/dist/chunks/{location-activity-y99drxtg.js → git-q2k9hrka.js} +20 -20
  194. package/dist/chunks/{location-activity-rge4jpvb.js → git-q4zhjj5d.js} +20 -20
  195. package/dist/chunks/{location-activity-2nv2m7pf.js → git-qaeybh9m.js} +6 -6
  196. package/dist/chunks/git-qc068m1q.js +18 -0
  197. package/dist/chunks/{location-activity-2k8khapm.js → git-qgn6gcr1.js} +5 -5
  198. package/dist/chunks/{location-activity-z6rdb9sr.js → git-qgrdwknr.js} +16 -16
  199. package/dist/chunks/{location-activity-qnc92qwc.js → git-qnc92qwc.js} +1 -1
  200. package/dist/chunks/{location-activity-9zv23tyg.js → git-qpmwgr82.js} +9 -9
  201. package/dist/chunks/{location-activity-qsdy395h.js → git-qsdy395h.js} +1 -1
  202. package/dist/chunks/{location-activity-yh2fg620.js → git-qthf81rg.js} +11 -11
  203. package/dist/chunks/{location-activity-qd4eqyk6.js → git-qtxdpptr.js} +32 -32
  204. package/dist/chunks/{location-activity-gda1r8ym.js → git-qvm0wtrp.js} +2 -2
  205. package/dist/chunks/{location-activity-qxjc9qry.js → git-qxjc9qry.js} +3 -3
  206. package/dist/chunks/{location-activity-y51nd170.js → git-qy6g1rdh.js} +17 -17
  207. package/dist/chunks/{location-activity-v7gwj56g.js → git-qzx8p8d0.js} +23 -23
  208. package/dist/chunks/{location-activity-jf6pjsy2.js → git-r3hpgepr.js} +26 -26
  209. package/dist/chunks/{location-activity-ep44p4pe.js → git-r44petzp.js} +12 -12
  210. package/dist/chunks/{location-activity-2jmxtyz7.js → git-r4qc49wz.js} +13 -13
  211. package/dist/chunks/{location-activity-19rp02gw.js → git-r50xfagt.js} +15 -15
  212. package/dist/chunks/{location-activity-5z2nh3x1.js → git-r63za8pc.js} +25 -25
  213. package/dist/chunks/{location-activity-mcm367ee.js → git-r86bf0fn.js} +3 -3
  214. package/dist/chunks/{location-activity-rdw6cm16.js → git-rdw6cm16.js} +1 -1
  215. package/dist/chunks/{location-activity-devvhrfz.js → git-repk3emw.js} +8 -8
  216. package/dist/chunks/git-rkn1pe94.js +26 -0
  217. package/dist/chunks/{location-activity-zy43x3f1.js → git-rpf1qvc3.js} +4 -4
  218. package/dist/chunks/{location-activity-9q5tzmyt.js → git-rzgz5kj8.js} +4 -4
  219. package/dist/chunks/{location-activity-z0aj456m.js → git-s26hbv8p.js} +4 -4
  220. package/dist/chunks/{location-activity-b2yqmgr8.js → git-s59ev0m2.js} +27 -27
  221. package/dist/chunks/{location-activity-qwjmgwmn.js → git-s5met55r.js} +8 -8
  222. package/dist/chunks/{location-activity-5824vx86.js → git-s6tbk65m.js} +11 -11
  223. package/dist/chunks/{location-activity-khw2gspr.js → git-sb1bm0qp.js} +71 -71
  224. package/dist/chunks/{location-activity-c0j408pk.js → git-shp8jhta.js} +1 -1
  225. package/dist/chunks/{location-activity-4w4aa4w4.js → git-srw1wyee.js} +17 -17
  226. package/dist/chunks/{location-activity-3t1wp6p2.js → git-sxtvyy3t.js} +10 -10
  227. package/dist/chunks/{location-activity-sy448gmp.js → git-t669c2kt.js} +7 -7
  228. package/dist/chunks/{location-activity-tazgh4e4.js → git-tazgh4e4.js} +1 -1
  229. package/dist/chunks/{location-activity-wjmvb2fm.js → git-tcatf3b6.js} +36 -36
  230. package/dist/chunks/{location-activity-tcezcvh9.js → git-tcezcvh9.js} +1 -1
  231. package/dist/chunks/{location-activity-tdstcens.js → git-tdstcens.js} +1 -1
  232. package/dist/chunks/{location-activity-qpjqjx5f.js → git-tg54efwz.js} +3 -3
  233. package/dist/chunks/{location-activity-3h2r7n3c.js → git-thf4zxr8.js} +5 -5
  234. package/dist/chunks/{location-activity-b27vhd2z.js → git-tkmwgdpd.js} +7 -7
  235. package/dist/chunks/{location-activity-4q9xksy6.js → git-trhjxf3d.js} +7 -7
  236. package/dist/chunks/{location-activity-xzjez30t.js → git-txs8yy3n.js} +1 -1
  237. package/dist/chunks/{location-activity-jdxg69hq.js → git-v252qd0j.js} +13 -13
  238. package/dist/chunks/{location-activity-f3d5htwy.js → git-v31r4dph.js} +8 -8
  239. package/dist/chunks/{location-activity-74ksxchy.js → git-v4wtaekh.js} +32 -32
  240. package/dist/chunks/{location-activity-2dnd7d20.js → git-vd216s12.js} +13 -13
  241. package/dist/chunks/{location-activity-veqvce7d.js → git-veqvce7d.js} +1 -1
  242. package/dist/chunks/{location-activity-xwd0acfk.js → git-vgwj7znc.js} +13 -13
  243. package/dist/chunks/{location-activity-vd3qs992.js → git-vj4f2rsj.js} +24 -24
  244. package/dist/chunks/{location-activity-adght6x0.js → git-vjbsmafc.js} +20 -20
  245. package/dist/chunks/{location-activity-rx9ava5n.js → git-vn72gsba.js} +4 -4
  246. package/dist/chunks/{location-activity-2w99apfa.js → git-vyt0kgkx.js} +33 -33
  247. package/dist/chunks/{location-activity-f8r3hpen.js → git-vyys1dp9.js} +11 -11
  248. package/dist/chunks/{location-activity-yegmnrcf.js → git-vzbxwz1d.js} +11 -11
  249. package/dist/chunks/{location-activity-vzcthcp8.js → git-vzcthcp8.js} +1 -1
  250. package/dist/chunks/{location-activity-vzs5sf6e.js → git-vzs5sf6e.js} +1 -1
  251. package/dist/chunks/{location-activity-84txncab.js → git-w1eejvng.js} +5 -5
  252. package/dist/chunks/{location-activity-w3wsvvr9.js → git-w3wsvvr9.js} +1 -1
  253. package/dist/chunks/{location-activity-4vp2zkv1.js → git-w4m5k0g7.js} +6 -6
  254. package/dist/chunks/{location-activity-2g406fp5.js → git-w8cdx6rt.js} +15 -15
  255. package/dist/chunks/{location-activity-za490t17.js → git-wb7crd86.js} +10 -10
  256. package/dist/chunks/{location-activity-k6ehc7p5.js → git-wcrrxam5.js} +57 -57
  257. package/dist/chunks/{location-activity-wd87259q.js → git-wd87259q.js} +1 -1
  258. package/dist/chunks/{location-activity-caseqyrv.js → git-wssnkxc5.js} +24 -24
  259. package/dist/chunks/{location-activity-x1ezjp6w.js → git-x1ezjp6w.js} +1 -1
  260. package/dist/chunks/{location-activity-x661k3y3.js → git-x661k3y3.js} +1 -1
  261. package/dist/chunks/{location-activity-82m24mh1.js → git-xb4hcye0.js} +24 -24
  262. package/dist/chunks/{location-activity-2k2r7q25.js → git-xkmy9fvh.js} +15 -15
  263. package/dist/chunks/{location-activity-ym76d0d6.js → git-xv72df90.js} +25 -25
  264. package/dist/chunks/{location-activity-y1fvbwt7.js → git-y1fvbwt7.js} +1 -1
  265. package/dist/chunks/{location-activity-snj9ksdw.js → git-yemncvg3.js} +24 -24
  266. package/dist/chunks/{location-activity-z6c3x22d.js → git-ygdna4kr.js} +5 -5
  267. package/dist/chunks/{location-activity-5sfjawpw.js → git-yhakkn64.js} +11 -11
  268. package/dist/chunks/{location-activity-5cd0f864.js → git-yn5e4dj4.js} +9 -9
  269. package/dist/chunks/{location-activity-yrhqyw5v.js → git-yrhqyw5v.js} +1 -1
  270. package/dist/chunks/{location-activity-0zsbm5jj.js → git-yv9jqw96.js} +6 -6
  271. package/dist/chunks/{location-activity-n8sna2wb.js → git-yvq0e8sz.js} +9 -9
  272. package/dist/chunks/{location-activity-z0bkrqjs.js → git-z0bkrqjs.js} +1 -1
  273. package/dist/chunks/{location-activity-mbjkcgq4.js → git-z8dbgj3m.js} +5 -5
  274. package/dist/chunks/{location-activity-0b06dnjj.js → git-z9j6250x.js} +30 -30
  275. package/dist/chunks/{location-activity-k371y6r1.js → git-zct2699j.js} +3 -3
  276. package/dist/chunks/{location-activity-k9ncgs0h.js → git-zf3n64mb.js} +25 -25
  277. package/dist/chunks/{location-activity-8767ctf1.js → git-zqb7t9wr.js} +24 -24
  278. package/dist/chunks/{location-activity-zr2ceqn5.js → git-zr2ceqn5.js} +1 -1
  279. package/dist/chunks/{location-activity-4z58m4b4.js → git-zsr4wwhv.js} +4 -4
  280. package/dist/chunks/{location-activity-hrhhvsst.js → git-ztzk91w7.js} +32 -32
  281. package/dist/chunks/{location-activity-2wts5qzq.js → git-zvr8tn04.js} +8 -8
  282. package/dist/chunks/{location-activity-5vx9e22b.js → git-zw2wtcws.js} +4 -4
  283. package/dist/chunks/{location-activity-zxq2ej10.js → git-zxq2ej10.js} +1 -1
  284. package/dist/chunks/{location-activity-b3f8fkhc.js → git-zyk1yjk8.js} +5 -5
  285. package/dist/codemode/catalog.js +1 -1
  286. package/dist/codemode/instructions.js +7 -7
  287. package/dist/codemode/tool.js +3 -3
  288. package/dist/codemode/web.js +1 -1
  289. package/dist/command.js +85 -85
  290. package/dist/config/discovery.js +82 -82
  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 +116 -116
  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 +116 -116
  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 +81 -81
  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 +104 -104
  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 +6 -6
  417. package/dist/filesystem/location-watcher.js +218 -218
  418. package/dist/filesystem/protected.js +1 -1
  419. package/dist/filesystem/search.js +103 -103
  420. package/dist/filesystem/watcher-binding.js +3 -3
  421. package/dist/filesystem/watcher.js +15 -15
  422. package/dist/filesystem.js +102 -102
  423. package/dist/form.js +78 -78
  424. package/dist/formatter/builtins.js +4 -4
  425. package/dist/formatter.js +87 -87
  426. package/dist/generate.js +103 -103
  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 +83 -83
  452. package/dist/instructions/builtins.js +87 -87
  453. package/dist/instructions/index.js +3 -3
  454. package/dist/integration/connection.js +1 -1
  455. package/dist/integration.js +85 -85
  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 +87 -87
  464. package/dist/managed-policy.js +5 -5
  465. package/dist/mcp/client.js +91 -91
  466. package/dist/mcp/index.js +109 -109
  467. package/dist/mcp/instructions.js +127 -127
  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 +102 -102
  474. package/dist/models-dev.js +103 -103
  475. package/dist/oauth/page.js +1 -1
  476. package/dist/permission/saved.js +80 -80
  477. package/dist/permission/sql.js +5 -5
  478. package/dist/permission.js +115 -115
  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 +86 -86
  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 +4 -4
  495. package/dist/plugin/plan.js +100 -100
  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 +95 -95
  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 +115 -115
  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 +6 -6
  550. package/dist/plugin/websearch/tinyfish.js +6 -6
  551. package/dist/plugin.js +224 -224
  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 +95 -95
  556. package/dist/pty/protocol.js +1 -1
  557. package/dist/pty/ticket.js +1 -1
  558. package/dist/pty.js +97 -97
  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 +3 -3
  563. package/dist/ripgrep/binary.js +2 -2
  564. package/dist/ripgrep.js +95 -95
  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 +133 -133
  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 +7 -7
  574. package/dist/session/event.js +1 -1
  575. package/dist/session/execution/restart.js +214 -214
  576. package/dist/session/execution.js +125 -125
  577. package/dist/session/generate.js +154 -154
  578. package/dist/session/history.js +15 -15
  579. package/dist/session/inbox.js +88 -88
  580. package/dist/session/info.js +3 -3
  581. package/dist/session/instruction-entry.js +79 -79
  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 +120 -120
  587. package/dist/session/model-transport.js +9 -9
  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 +1 -1
  603. package/dist/session/session.js +164 -164
  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 +85 -85
  609. package/dist/session/subagent-completion.js +1 -1
  610. package/dist/session/subagent-job.js +201 -201
  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 +208 -208
  615. package/dist/session/usage.js +1 -1
  616. package/dist/session.js +205 -205
  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 +11 -11
  621. package/dist/shell.js +132 -132
  622. package/dist/skill/discovery.js +6 -6
  623. package/dist/skill/instructions.js +107 -107
  624. package/dist/skill.js +108 -108
  625. package/dist/snapshot.js +91 -91
  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 +124 -124
  633. package/dist/tool/plugin/grep.js +122 -122
  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 +120 -120
  637. package/dist/tool/plugin/question.js +101 -101
  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 +109 -109
  641. package/dist/tool/plugin/subagent.js +206 -206
  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 +7 -7
  659. package/dist/v1/config/command.js +5 -5
  660. package/dist/v1/config/error.js +4 -4
  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 +7 -7
  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 +91 -91
  668. package/dist/vcs/patch.js +1 -1
  669. package/dist/vcs.js +89 -89
  670. package/dist/websearch.js +82 -82
  671. package/dist/wellknown/plugin.js +76 -76
  672. package/dist/wellknown.js +79 -79
  673. package/dist/workspace/driver.js +5 -5
  674. package/dist/workspace/sql.js +1 -1
  675. package/dist/workspace.js +78 -78
  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/location-activity-4v7qdvcn.js +0 -18
  683. package/dist/chunks/location-activity-m4mmr2p7.js +0 -26
  684. package/dist/chunks/location-activity-pz5pawm5.js +0 -507
  685. package/dist/chunks/location-activity-w7g85kp8.js +0 -252
  686. /package/dist/chunks/{location-activity-0qkdqm5v.js → git-0qkdqm5v.js} +0 -0
  687. /package/dist/chunks/{location-activity-0zkw76rk.js → git-0zkw76rk.js} +0 -0
  688. /package/dist/chunks/{location-activity-17cy0kzp.js → git-17cy0kzp.js} +0 -0
  689. /package/dist/chunks/{location-activity-1cnp2v09.js → git-1cnp2v09.js} +0 -0
  690. /package/dist/chunks/{location-activity-1kg9ymc8.js → git-1kg9ymc8.js} +0 -0
  691. /package/dist/chunks/{location-activity-24dcb14g.js → git-24dcb14g.js} +0 -0
  692. /package/dist/chunks/{location-activity-2710q6r3.js → git-2710q6r3.js} +0 -0
  693. /package/dist/chunks/{location-activity-2axfhc9x.js → git-2axfhc9x.js} +0 -0
  694. /package/dist/chunks/{location-activity-2c3vjs8z.js → git-2c3vjs8z.js} +0 -0
  695. /package/dist/chunks/{location-activity-34c7v6d4.js → git-34c7v6d4.js} +0 -0
  696. /package/dist/chunks/{location-activity-359p4xyc.js → git-359p4xyc.js} +0 -0
  697. /package/dist/chunks/{location-activity-3asan66x.js → git-3asan66x.js} +0 -0
  698. /package/dist/chunks/{location-activity-3v8g72cx.js → git-3v8g72cx.js} +0 -0
  699. /package/dist/chunks/{location-activity-3w5fmr99.js → git-3w5fmr99.js} +0 -0
  700. /package/dist/chunks/{location-activity-3wcehsnq.js → git-3wcehsnq.js} +0 -0
  701. /package/dist/chunks/{location-activity-43n2bw4t.js → git-43n2bw4t.js} +0 -0
  702. /package/dist/chunks/{location-activity-4knz6hnm.js → git-4knz6hnm.js} +0 -0
  703. /package/dist/chunks/{location-activity-4vcrnpx2.js → git-4vcrnpx2.js} +0 -0
  704. /package/dist/chunks/{location-activity-4y7fprxs.js → git-4y7fprxs.js} +0 -0
  705. /package/dist/chunks/{location-activity-53557ph1.js → git-53557ph1.js} +0 -0
  706. /package/dist/chunks/{location-activity-550bvhaj.js → git-550bvhaj.js} +0 -0
  707. /package/dist/chunks/{location-activity-6prwharc.js → git-6prwharc.js} +0 -0
  708. /package/dist/chunks/{location-activity-7akdwqpd.js → git-7akdwqpd.js} +0 -0
  709. /package/dist/chunks/{location-activity-7m9af43g.js → git-7m9af43g.js} +0 -0
  710. /package/dist/chunks/{location-activity-822emrt2.js → git-822emrt2.js} +0 -0
  711. /package/dist/chunks/{location-activity-88xbtdfr.js → git-88xbtdfr.js} +0 -0
  712. /package/dist/chunks/{location-activity-8n3pysct.js → git-8n3pysct.js} +0 -0
  713. /package/dist/chunks/{location-activity-8wj87zfr.js → git-8wj87zfr.js} +0 -0
  714. /package/dist/chunks/{location-activity-9a4afbnw.js → git-9a4afbnw.js} +0 -0
  715. /package/dist/chunks/{location-activity-9rqn6x4v.js → git-9rqn6x4v.js} +0 -0
  716. /package/dist/chunks/{location-activity-a6k6eb26.js → git-a6k6eb26.js} +0 -0
  717. /package/dist/chunks/{location-activity-af5trqkr.js → git-af5trqkr.js} +0 -0
  718. /package/dist/chunks/{location-activity-afrmfg78.js → git-afrmfg78.js} +0 -0
  719. /package/dist/chunks/{location-activity-aqzs7mqg.js → git-aqzs7mqg.js} +0 -0
  720. /package/dist/chunks/{location-activity-atq7p7m5.js → git-atq7p7m5.js} +0 -0
  721. /package/dist/chunks/{location-activity-bkyjaxrp.js → git-bkyjaxrp.js} +0 -0
  722. /package/dist/chunks/{location-activity-bmr6ed5q.js → git-bmr6ed5q.js} +0 -0
  723. /package/dist/chunks/{location-activity-cf4snx6d.js → git-cf4snx6d.js} +0 -0
  724. /package/dist/chunks/{location-activity-cvy3z8tj.js → git-cvy3z8tj.js} +0 -0
  725. /package/dist/chunks/{location-activity-d9fn303g.js → git-d9fn303g.js} +0 -0
  726. /package/dist/chunks/{location-activity-d9jj8t3e.js → git-d9jj8t3e.js} +0 -0
  727. /package/dist/chunks/{location-activity-dajrwvna.js → git-dajrwvna.js} +0 -0
  728. /package/dist/chunks/{location-activity-dap0rakb.js → git-dap0rakb.js} +0 -0
  729. /package/dist/chunks/{location-activity-df08tz66.js → git-df08tz66.js} +0 -0
  730. /package/dist/chunks/{location-activity-dy18nga0.js → git-dy18nga0.js} +0 -0
  731. /package/dist/chunks/{location-activity-e5kj55wp.js → git-e5kj55wp.js} +0 -0
  732. /package/dist/chunks/{location-activity-e73j6tqm.js → git-e73j6tqm.js} +0 -0
  733. /package/dist/chunks/{location-activity-ec1grn59.js → git-ec1grn59.js} +0 -0
  734. /package/dist/chunks/{location-activity-eh3zwz77.js → git-eh3zwz77.js} +0 -0
  735. /package/dist/chunks/{location-activity-emrn6kk6.js → git-emrn6kk6.js} +0 -0
  736. /package/dist/chunks/{location-activity-f0mxakyp.js → git-f0mxakyp.js} +0 -0
  737. /package/dist/chunks/{location-activity-f6n9ztr4.js → git-f6n9ztr4.js} +0 -0
  738. /package/dist/chunks/{location-activity-faypxj3z.js → git-faypxj3z.js} +0 -0
  739. /package/dist/chunks/{location-activity-fd410y7t.js → git-fd410y7t.js} +0 -0
  740. /package/dist/chunks/{location-activity-fxgpk5d8.js → git-fxgpk5d8.js} +0 -0
  741. /package/dist/chunks/{location-activity-g4wezp1m.js → git-g4wezp1m.js} +0 -0
  742. /package/dist/chunks/{location-activity-g86h250q.js → git-g86h250q.js} +0 -0
  743. /package/dist/chunks/{location-activity-gebd4c9n.js → git-gebd4c9n.js} +0 -0
  744. /package/dist/chunks/{location-activity-gftt206x.js → git-gftt206x.js} +0 -0
  745. /package/dist/chunks/{location-activity-hjbc5kem.js → git-hjbc5kem.js} +0 -0
  746. /package/dist/chunks/{location-activity-hk9envan.js → git-hk9envan.js} +0 -0
  747. /package/dist/chunks/{location-activity-j2ntwpah.js → git-j2ntwpah.js} +0 -0
  748. /package/dist/chunks/{location-activity-j5zkgpj8.js → git-j5zkgpj8.js} +0 -0
  749. /package/dist/chunks/{location-activity-jjkms2e6.js → git-jjkms2e6.js} +0 -0
  750. /package/dist/chunks/{location-activity-jr7sbwjy.js → git-jr7sbwjy.js} +0 -0
  751. /package/dist/chunks/{location-activity-jwfs4k6c.js → git-jwfs4k6c.js} +0 -0
  752. /package/dist/chunks/{location-activity-jzg6c2d5.js → git-jzg6c2d5.js} +0 -0
  753. /package/dist/chunks/{location-activity-mp448xyj.js → git-mp448xyj.js} +0 -0
  754. /package/dist/chunks/{location-activity-msx8hqn2.js → git-msx8hqn2.js} +0 -0
  755. /package/dist/chunks/{location-activity-my4zabxr.js → git-my4zabxr.js} +0 -0
  756. /package/dist/chunks/{location-activity-n05xt0ee.js → git-n05xt0ee.js} +0 -0
  757. /package/dist/chunks/{location-activity-n3j8tn72.js → git-n3j8tn72.js} +0 -0
  758. /package/dist/chunks/{location-activity-njntx4h6.js → git-njntx4h6.js} +0 -0
  759. /package/dist/chunks/{location-activity-q3sfg36h.js → git-q3sfg36h.js} +0 -0
  760. /package/dist/chunks/{location-activity-q74kybfr.js → git-q74kybfr.js} +0 -0
  761. /package/dist/chunks/{location-activity-qaymkmh1.js → git-qaymkmh1.js} +0 -0
  762. /package/dist/chunks/{location-activity-qb87gjwd.js → git-qb87gjwd.js} +0 -0
  763. /package/dist/chunks/{location-activity-qfa1cgps.js → git-qfa1cgps.js} +0 -0
  764. /package/dist/chunks/{location-activity-qg3g05ea.js → git-qg3g05ea.js} +0 -0
  765. /package/dist/chunks/{location-activity-qrg20bc0.js → git-qrg20bc0.js} +0 -0
  766. /package/dist/chunks/{location-activity-rcb2kzg1.js → git-rcb2kzg1.js} +0 -0
  767. /package/dist/chunks/{location-activity-sdp7kfr6.js → git-sdp7kfr6.js} +0 -0
  768. /package/dist/chunks/{location-activity-sk3qaz4a.js → git-sk3qaz4a.js} +0 -0
  769. /package/dist/chunks/{location-activity-ssg3fenm.js → git-ssg3fenm.js} +0 -0
  770. /package/dist/chunks/{location-activity-w803qqfp.js → git-w803qqfp.js} +0 -0
  771. /package/dist/chunks/{location-activity-wc3fc9cn.js → git-wc3fc9cn.js} +0 -0
  772. /package/dist/chunks/{location-activity-wer8tq1h.js → git-wer8tq1h.js} +0 -0
  773. /package/dist/chunks/{location-activity-wtztk69x.js → git-wtztk69x.js} +0 -0
  774. /package/dist/chunks/{location-activity-x0ckcb58.js → git-x0ckcb58.js} +0 -0
  775. /package/dist/chunks/{location-activity-x61499pn.js → git-x61499pn.js} +0 -0
  776. /package/dist/chunks/{location-activity-y44na4kk.js → git-y44na4kk.js} +0 -0
  777. /package/dist/chunks/{location-activity-y8cydn3q.js → git-y8cydn3q.js} +0 -0
  778. /package/dist/chunks/{location-activity-y8f7s663.js → git-y8f7s663.js} +0 -0
  779. /package/dist/chunks/{location-activity-ygaqb7jw.js → git-ygaqb7jw.js} +0 -0
  780. /package/dist/chunks/{location-activity-ym463w8f.js → git-ym463w8f.js} +0 -0
  781. /package/dist/chunks/{location-activity-z5v4ffb3.js → git-z5v4ffb3.js} +0 -0
  782. /package/dist/chunks/{location-activity-z9919s4g.js → git-z9919s4g.js} +0 -0
@@ -1,36 +1,27 @@
1
1
  import {
2
2
  Service83,
3
3
  node87
4
- } from "./location-activity-nsc4cbcy.js";
4
+ } from "./git-gvzxnjjj.js";
5
5
  import {
6
6
  shutdown2,
7
7
  create3
8
- } from "./location-activity-rdw6cm16.js";
8
+ } from "./git-rdw6cm16.js";
9
9
  import {
10
10
  key2
11
- } from "./location-activity-x661k3y3.js";
11
+ } from "./git-x661k3y3.js";
12
12
  import {
13
- ID13,
14
- Service74,
15
- node78,
16
- Event18
17
- } from "./location-activity-f47cg35j.js";
13
+ ID14,
14
+ Service70,
15
+ node74,
16
+ Event16
17
+ } from "./git-fr5pxeem.js";
18
18
  import {
19
- Service80,
20
- node84
21
- } from "./location-activity-dmvmn2q0.js";
19
+ Service76,
20
+ node80
21
+ } from "./git-1bypmceh.js";
22
22
  import {
23
23
  __export
24
- } from "./location-activity-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";
24
+ } from "./git-9rqn6x4v.js";
34
25
 
35
26
  // src/provider.ts
36
27
  var exports_provider3 = {};
@@ -38,13 +29,13 @@ __export(exports_provider3, {
38
29
  AISDK_PREFIX: () => AISDK_PREFIX2,
39
30
  Compaction: () => Compaction3,
40
31
  DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS3,
41
- Event: () => Event17,
32
+ Event: () => Event14,
42
33
  ID: () => ID12,
43
34
  Info: () => Info21,
44
35
  LoadError: () => LoadError3,
45
36
  Provider: () => exports_provider3,
46
37
  Request: () => Request3,
47
- Service: () => Service73,
38
+ Service: () => Service68,
48
39
  Settings: () => Settings2,
49
40
  Transport: () => Transport2,
50
41
  aisdk: () => aisdk2,
@@ -54,12 +45,12 @@ __export(exports_provider3, {
54
45
  mergeOverlay: () => mergeOverlay2,
55
46
  modelSettings: () => modelSettings2,
56
47
  nativeSettings: () => nativeSettings2,
57
- node: () => node77,
48
+ node: () => node72,
58
49
  packageName: () => packageName2,
59
50
  timeout: () => timeout2,
60
51
  timeouts: () => timeouts2
61
52
  });
62
- import { Context, Effect, Layer, Option, Schema, Stream, Struct } from "effect";
53
+ import { Context, Effect as Effect2, Layer, Option as Option2, Schema as Schema2, Stream, Struct as Struct2 } from "effect";
63
54
  import { Provider } from "@opencode/schema/provider";
64
55
  import { Model } from "@opencode/schema/model";
65
56
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -68,7 +59,266 @@ import { isRecord } from "@opencode/ai/utils/record";
68
59
  import { importModule, resolveModule } from "@opencode/util/runtime-import";
69
60
  import { Credential } from "@opencode/schema/credential";
70
61
  import { freeze } from "immer";
71
- import { Event as Event17 } from "@opencode/schema/provider";
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 Event14 } from "@opencode/schema/provider";
72
322
  var ID12 = Provider.ID;
73
323
  var AISDK_PREFIX2 = "aisdk:";
74
324
  var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
@@ -80,12 +330,12 @@ function packageName2(value) {
80
330
  return value;
81
331
  return value.slice(AISDK_PREFIX2.length);
82
332
  }
83
- var JsonRecord = Schema.Record(Schema.String, Schema.Json);
84
- var decodeJsonRecord = Schema.decodeUnknownSync(JsonRecord);
333
+ var JsonRecord = Schema2.Record(Schema2.String, Schema2.Json);
334
+ var decodeJsonRecord = Schema2.decodeUnknownSync(JsonRecord);
85
335
 
86
- class LoadError3 extends Schema.TaggedError()("Provider.LoadError", {
87
- package: Schema.String,
88
- cause: Schema.Defect()
336
+ class LoadError3 extends Schema2.TaggedError()("Provider.LoadError", {
337
+ package: Schema2.String,
338
+ cause: Schema2.Defect()
89
339
  }) {
90
340
  }
91
341
  var packages = new Map;
@@ -149,12 +399,12 @@ var builtins = new Map([
149
399
  () => import("@opencode/ai/providers/zai-coding-plan/responses")
150
400
  ]
151
401
  ]);
152
- var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
402
+ var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
153
403
  const specifier = packageName2(input);
154
404
  const builtin = builtins.get(specifier);
155
405
  if (builtin)
156
406
  return yield* importPackage(specifier, specifier, builtin);
157
- const resolved = yield* Effect.sync(() => {
407
+ const resolved = yield* Effect2.sync(() => {
158
408
  if (specifier.startsWith("file://") || specifier.startsWith("@opencode/ai/"))
159
409
  return specifier;
160
410
  try {
@@ -173,8 +423,8 @@ var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
173
423
  }
174
424
  const parts = specifier.split("/");
175
425
  const root = specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0] ?? specifier;
176
- const installed = yield* npm.add(root).pipe(Effect.mapError((cause) => new LoadError3({ package: specifier, cause })));
177
- const entrypoint = yield* Effect.try({
426
+ const installed = yield* npm.add(root).pipe(Effect2.mapError((cause) => new LoadError3({ package: specifier, cause })));
427
+ const entrypoint = yield* Effect2.try({
178
428
  try: () => resolveModule(specifier, installed.directory),
179
429
  catch: (cause) => new LoadError3({ package: specifier, cause })
180
430
  });
@@ -183,15 +433,15 @@ var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
183
433
  var CORE_KEYS = ["chunkTimeout", "compaction", "fetch", "headerTimeout", "timeout", "transport"];
184
434
  var PROVIDER_ONLY_KEYS = ["chunkTimeout", "headerTimeout", "timeout", "transport"];
185
435
  function nativeSettings2(settings) {
186
- return Struct.omit(settings, CORE_KEYS);
436
+ return Struct2.omit(settings, CORE_KEYS);
187
437
  }
188
438
  function modelSettings2(settings) {
189
- return settings && Struct.omit(settings, PROVIDER_ONLY_KEYS);
439
+ return settings && Struct2.omit(settings, PROVIDER_ONLY_KEYS);
190
440
  }
191
- var decodeTimeout = Schema.decodeUnknownOption(HttpTimeout);
441
+ var decodeTimeout = Schema2.decodeUnknownOption(HttpTimeout);
192
442
  var DEFAULT_TIMEOUT_MS3 = 300000;
193
443
  function timeout2(value) {
194
- return Option.getOrUndefined(decodeTimeout(value));
444
+ return Option2.getOrUndefined(decodeTimeout(value));
195
445
  }
196
446
  function timeouts2(settings) {
197
447
  return {
@@ -231,7 +481,7 @@ var Transport2 = Provider.Transport;
231
481
  var Settings2 = Provider.Settings;
232
482
  var Info21 = Provider.Info;
233
483
 
234
- class Service73 extends Context.Service()("@opencode/Provider") {
484
+ class Service68 extends Context.Service()("@opencode/Provider") {
235
485
  }
236
486
  var definitions = new WeakMap;
237
487
  function index(providerID, models) {
@@ -244,10 +494,10 @@ function index(providerID, models) {
244
494
  definitions.set(models, indexes);
245
495
  return result;
246
496
  }
247
- var layer = Layer.effect(Service73, Effect.gen(function* () {
497
+ var layer = Layer.effect(Service68, Effect2.gen(function* () {
248
498
  const bus = yield* Service83;
249
- const integrations = yield* Service74;
250
- const location = yield* Service80;
499
+ const integrations = yield* Service70;
500
+ const location = yield* Service76;
251
501
  const state = create3({
252
502
  name: "provider",
253
503
  initial: () => new Map,
@@ -326,9 +576,9 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
326
576
  },
327
577
  notify: () => notify
328
578
  });
329
- yield* Effect.addFinalizer(() => shutdown2(state.reload()));
579
+ yield* Effect2.addFinalizer(() => shutdown2(state.reload()));
330
580
  let cached;
331
- const snapshot = Effect.fn("Provider.snapshot")(function* () {
581
+ const snapshot = Effect2.fn("Provider.snapshot")(function* () {
332
582
  while (true) {
333
583
  const revision = integrations.revision();
334
584
  const records = state.get();
@@ -339,7 +589,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
339
589
  const available = Array.from(records.values()).filter((record) => {
340
590
  if (record.provider.activation === "disabled")
341
591
  return false;
342
- const integration = byID.get(record.provider.integrationID ?? ID13.make(record.provider.id));
592
+ const integration = byID.get(record.provider.integrationID ?? ID14.make(record.provider.id));
343
593
  if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
344
594
  return false;
345
595
  if (record.provider.activation === "enabled")
@@ -356,7 +606,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
356
606
  }
357
607
  });
358
608
  let published;
359
- const notify = Effect.gen(function* () {
609
+ const notify = Effect2.gen(function* () {
360
610
  const value = yield* snapshot();
361
611
  if (value === published)
362
612
  return;
@@ -365,19 +615,19 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
365
615
  location: { directory: location.directory, workspaceID: location.workspaceID }
366
616
  });
367
617
  });
368
- yield* bus.subscribe([Event18.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
369
- return Service73.of({
618
+ yield* bus.subscribe([Event16.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect2.forkScoped({ startImmediately: true }));
619
+ return Service68.of({
370
620
  transform: state.transform,
371
621
  reload: state.reload,
372
- get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
373
- all: Effect.fn("Provider.all")(() => Effect.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
374
- available: Effect.fn("Provider.available")(() => snapshot().pipe(Effect.map((value) => value.providers))),
622
+ get: Effect2.fn("Provider.get")((id) => Effect2.sync(() => freeze(state.get().get(id)?.provider, true))),
623
+ all: Effect2.fn("Provider.all")(() => Effect2.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
624
+ available: Effect2.fn("Provider.available")(() => snapshot().pipe(Effect2.map((value) => value.providers))),
375
625
  snapshot
376
626
  });
377
627
  }));
378
- var node77 = makeLocationNode({ service: Service73, layer, deps: [node87, node78, node84] });
379
- var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
380
- const module = yield* Effect.tryPromise({
628
+ var node72 = makeLocationNode({ service: Service68, layer, deps: [node87, node74, node80] });
629
+ var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
630
+ const module = yield* Effect2.tryPromise({
381
631
  try: () => {
382
632
  const existing = packages.get(entrypoint);
383
633
  if (existing)
@@ -397,254 +647,4 @@ var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, en
397
647
  return module;
398
648
  });
399
649
 
400
- // src/aisdk-native.ts
401
- function rewrite2(target, input) {
402
- if (input.specifier === undefined)
403
- return;
404
- const plain = resolve(input.specifier, input);
405
- if (!plain)
406
- return;
407
- const settings = decode(target.settings ?? {});
408
- const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
409
- const translated = options(replacement, input.modelID, settings);
410
- if (target.package !== undefined || replacement !== input.specifier)
411
- target.package = replacement;
412
- target.settings = target.settings === undefined ? undefined : {
413
- ...translated.settings,
414
- ...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
415
- };
416
- target.headers = mergeHeaders2(translated.headers, target.headers);
417
- target.body = mergeOverlay2(translated.body, target.body);
418
- target.variants = target.variants?.map((variant) => {
419
- const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
420
- const headers = mergeHeaders2(overlay.headers, variant.headers);
421
- const body = mergeOverlay2(overlay.body, variant.body);
422
- return {
423
- id: variant.id,
424
- ...variant.settings === undefined ? {} : { settings: overlay.settings },
425
- ...headers === undefined ? {} : { headers },
426
- ...body === undefined ? {} : { body }
427
- };
428
- });
429
- }
430
- var PACKAGES = {
431
- "@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
432
- "@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
433
- "@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
434
- "@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
435
- "@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
436
- "@ai-sdk/cohere": "@opencode/ai/providers/cohere",
437
- "@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
438
- "@ai-sdk/google": "@opencode/ai/providers/google",
439
- "@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
440
- "@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
441
- "@ai-sdk/groq": "@opencode/ai/providers/groq",
442
- "@ai-sdk/mistral": "@opencode/ai/providers/mistral",
443
- "@ai-sdk/openai": "@opencode/ai/providers/openai",
444
- "@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
445
- "@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
446
- "@ai-sdk/xai": "@opencode/ai/providers/xai",
447
- "@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
448
- "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
449
- };
450
- var protocols = (name) => ({
451
- "@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
452
- "@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
453
- "@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
454
- });
455
- var HOSTS = {
456
- alibaba: protocols("alibaba"),
457
- "alibaba-cn": protocols("alibaba"),
458
- "alibaba-coding-plan": protocols("alibaba"),
459
- "alibaba-coding-plan-cn": protocols("alibaba"),
460
- "alibaba-token-plan": protocols("alibaba"),
461
- "alibaba-token-plan-cn": protocols("alibaba"),
462
- baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
463
- "cloudflare-ai-gateway": {
464
- "@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
465
- "@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
466
- "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
467
- "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
468
- },
469
- cohere: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cohere/chat" },
470
- "cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
471
- deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
472
- digitalocean: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/digitalocean" },
473
- "fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
474
- "google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
475
- "kimi-for-coding": protocols("moonshot"),
476
- meta: protocols("meta"),
477
- minimax: protocols("minimax"),
478
- "minimax-cn": protocols("minimax"),
479
- "minimax-coding-plan": protocols("minimax"),
480
- "minimax-cn-coding-plan": protocols("minimax"),
481
- moonshotai: protocols("moonshot"),
482
- "moonshotai-cn": protocols("moonshot"),
483
- zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
484
- "zai-coding-plan": protocols("zai-coding-plan"),
485
- zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
486
- "zhipuai-coding-plan": protocols("zai-coding-plan")
487
- };
488
- var NATIVE = new Set([
489
- ...Object.values(PACKAGES),
490
- ...Object.values(HOSTS).flatMap((host) => Object.values(host)),
491
- "@opencode/ai/providers/azure/chat",
492
- "@opencode/ai/providers/amazon-bedrock/mantle",
493
- "@opencode/ai/providers/amazon-bedrock/mantle/chat",
494
- "@opencode/ai/providers/amazon-bedrock/mantle/responses"
495
- ]);
496
- function native2(npm, context) {
497
- const host = HOSTS[context.providerID]?.[npm];
498
- if (host)
499
- return host;
500
- if (npm === "@ai-sdk/amazon-bedrock/mantle")
501
- return mantle(context.modelID);
502
- if (npm === "@ai-sdk/azure" && context.settings?.useCompletionUrls === true)
503
- return "@opencode/ai/providers/azure/chat";
504
- return PACKAGES[npm];
505
- }
506
- var mantle = (modelID) => {
507
- if (modelID === undefined)
508
- return "@opencode/ai/providers/amazon-bedrock/mantle";
509
- return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
510
- };
511
- function resolve(specifier, context) {
512
- const npm = packageName2(specifier);
513
- if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
514
- return native2(npm, context);
515
- if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
516
- return mantle(context.modelID);
517
- if (npm === "@opencode/ai/providers/azure/responses" && context.settings?.useCompletionUrls === true)
518
- return "@opencode/ai/providers/azure/chat";
519
- return NATIVE.has(npm) ? npm : undefined;
520
- }
521
- function options(replacement, modelID, settings) {
522
- const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
523
- const kept = Struct2.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
524
- const thinking = converse ? bedrockThinking(modelID, settings) : undefined;
525
- return {
526
- settings: {
527
- ...replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
528
- ...thinking === undefined ? {} : { thinking }
529
- },
530
- ...settings.headers === undefined ? {} : { headers: settings.headers },
531
- ...settings.extraBody === undefined ? {} : { body: settings.extraBody },
532
- ...converse ? bedrockRequest(modelID, settings) : {},
533
- ...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
534
- };
535
- }
536
- var BEDROCK_KEYS = [
537
- "bearerToken",
538
- "endpoint",
539
- "credentials",
540
- "credentialProvider",
541
- "accessKeyId",
542
- "secretAccessKey",
543
- "sessionToken"
544
- ];
545
- var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
546
- function bedrockSettings(settings, converse) {
547
- const region = settings.region ?? settings.credentials?.region;
548
- const credentials = settings.credentials ?? settings;
549
- const baseURL = settings.baseURL ?? settings.endpoint;
550
- return {
551
- ...Struct2.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
552
- ...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
553
- ...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
554
- ...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
555
- credentials: {
556
- ...region === undefined ? {} : { region },
557
- accessKeyId: credentials.accessKeyId,
558
- secretAccessKey: credentials.secretAccessKey,
559
- ...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
560
- }
561
- }
562
- };
563
- }
564
- function bedrockThinking(modelID, settings) {
565
- const reasoning = settings.reasoningConfig;
566
- if (!modelID?.includes("anthropic") || reasoning?.type !== "enabled" || reasoning.budgetTokens === undefined)
567
- return;
568
- return { type: "enabled", budgetTokens: reasoning.budgetTokens };
569
- }
570
- function bedrockRequest(modelID, settings) {
571
- const additional = settings.additionalModelRequestFields ?? {};
572
- const reasoning = settings.reasoningConfig;
573
- const anthropic = modelID?.includes("anthropic") ?? false;
574
- const openai = modelID?.includes("openai.") ?? false;
575
- const harmony = modelID?.includes("openai.gpt-oss") ?? false;
576
- const effort = reasoning?.maxReasoningEffort;
577
- const type = reasoning?.type;
578
- const budget = reasoning?.budgetTokens;
579
- const display = reasoning?.display;
580
- const betas = settings.anthropicBeta ?? [];
581
- const fields = mergeOverlay2(additional, {
582
- ...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
583
- ...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
584
- ...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
585
- ...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
586
- ...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
587
- ...!anthropic && !openai && effort !== undefined ? {
588
- reasoningConfig: {
589
- ...type === undefined || type === "adaptive" ? {} : { type },
590
- ...budget === undefined ? {} : { budgetTokens: budget },
591
- maxReasoningEffort: effort
592
- }
593
- } : {}
594
- });
595
- const body = {
596
- ...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
597
- ...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
598
- };
599
- return Object.keys(body).length === 0 ? {} : { body };
600
- }
601
- var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
602
- function openRouterRequest(settings) {
603
- const headers = mergeHeaders2({
604
- ...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
605
- ...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
606
- ...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
607
- }, settings.headers) ?? {};
608
- return Object.keys(headers).length === 0 ? {} : { headers };
609
- }
610
- var lenient = (schema) => Schema2.optional(Schema2.UndefinedOr(schema).pipe(Schema2.catchDecoding(() => Effect2.succeed(Option2.some(undefined)))));
611
- var Credentials = Schema2.Struct({
612
- accessKeyId: Schema2.String,
613
- secretAccessKey: Schema2.String,
614
- sessionToken: lenient(Schema2.String),
615
- region: lenient(Schema2.String)
616
- });
617
- var Legacy = Schema2.StructWithRest(Schema2.Struct({
618
- apiKey: lenient(Schema2.String),
619
- baseURL: lenient(Schema2.String),
620
- headers: lenient(Schema2.Record(Schema2.String, Schema2.String)),
621
- extraBody: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
622
- useCompletionUrls: lenient(Schema2.Boolean),
623
- auth: lenient(Schema2.Literals(["bearer", "sigv4"])),
624
- bearerToken: lenient(Schema2.String),
625
- endpoint: lenient(Schema2.String),
626
- region: lenient(Schema2.String),
627
- credentials: lenient(Credentials),
628
- accessKeyId: lenient(Schema2.String),
629
- secretAccessKey: lenient(Schema2.String),
630
- sessionToken: lenient(Schema2.String),
631
- anthropicBeta: lenient(Schema2.Array(Schema2.String)),
632
- serviceTier: lenient(Schema2.String),
633
- reasoningConfig: lenient(Schema2.Struct({
634
- type: lenient(Schema2.String),
635
- display: lenient(Schema2.String),
636
- maxReasoningEffort: lenient(Schema2.String),
637
- budgetTokens: lenient(Schema2.Number)
638
- })),
639
- additionalModelRequestFields: lenient(Schema2.StructWithRest(Schema2.Struct({
640
- anthropic_beta: lenient(Schema2.Array(Schema2.String)),
641
- output_config: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
642
- reasoning: lenient(Schema2.Record(Schema2.String, Schema2.Unknown))
643
- }), [Schema2.Record(Schema2.String, Schema2.Unknown)])),
644
- appName: lenient(Schema2.String),
645
- appUrl: lenient(Schema2.String),
646
- api_keys: lenient(Schema2.Record(Schema2.String, Schema2.String))
647
- }), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
648
- var decode = Schema2.decodeUnknownSync(Legacy);
649
-
650
- 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, Service73, node77, exports_provider3, Event17 };
650
+ export { ID12, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, timeout2, timeouts2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info21, Service68, node72, exports_provider3, Event14, rewrite2, native2, exports_aisdk_native };