@opencode/core 0.0.0-dev-20443 → 0.0.0-dev-20446

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 (798) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +81 -81
  3. package/dist/aisdk-native.js +89 -89
  4. package/dist/aisdk.js +94 -94
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +73 -73
  7. package/dist/chunks/{filesystem-rt0kvsf5.js → repository-cache-091f0rd0.js} +44 -44
  8. package/dist/chunks/{filesystem-f2rw3rqw.js → repository-cache-0a1ad31p.js} +24 -24
  9. package/dist/chunks/{filesystem-x1w5tsma.js → repository-cache-0j4x3pky.js} +21 -21
  10. package/dist/chunks/{filesystem-0j77ygfz.js → repository-cache-0j77ygfz.js} +2 -2
  11. package/dist/chunks/{filesystem-j4tdrtxm.js → repository-cache-0mrd04w5.js} +35 -35
  12. package/dist/chunks/{filesystem-0paq2nw3.js → repository-cache-0paq2nw3.js} +1 -1
  13. package/dist/chunks/{filesystem-azee6x5s.js → repository-cache-0qb7pa1n.js} +8 -8
  14. package/dist/chunks/{filesystem-74zmxtxp.js → repository-cache-0s60x6wy.js} +16 -16
  15. package/dist/chunks/{filesystem-0vbcp93d.js → repository-cache-0vbcp93d.js} +2 -2
  16. package/dist/chunks/{filesystem-aex2jcjx.js → repository-cache-0z5qyjxf.js} +6 -6
  17. package/dist/chunks/{filesystem-x9w9za6h.js → repository-cache-0zvk9z0h.js} +16 -16
  18. package/dist/chunks/{filesystem-10h2grd6.js → repository-cache-10h2grd6.js} +2 -2
  19. package/dist/chunks/{filesystem-ys6344d6.js → repository-cache-169shjta.js} +11 -11
  20. package/dist/chunks/{filesystem-at7fx8t4.js → repository-cache-1d5ct0zc.js} +20 -20
  21. package/dist/chunks/{filesystem-1dazxqgg.js → repository-cache-1dazxqgg.js} +2 -2
  22. package/dist/chunks/{filesystem-84h8c373.js → repository-cache-1dvck2a7.js} +2 -2
  23. package/dist/chunks/{filesystem-0qa6hg2d.js → repository-cache-1gd6spct.js} +5 -5
  24. package/dist/chunks/{filesystem-56gdpj1q.js → repository-cache-1ygqh575.js} +9 -9
  25. package/dist/chunks/{filesystem-21r38tys.js → repository-cache-21r38tys.js} +1 -1
  26. package/dist/chunks/{filesystem-pxwkarge.js → repository-cache-22f357wt.js} +6 -6
  27. package/dist/chunks/{filesystem-y5dkda77.js → repository-cache-25ex5bj3.js} +2 -2
  28. package/dist/chunks/{filesystem-2a5m3afh.js → repository-cache-2a5m3afh.js} +1 -1
  29. package/dist/chunks/{filesystem-2ccvkpx1.js → repository-cache-2ccvkpx1.js} +2 -2
  30. package/dist/chunks/{filesystem-m70jr5z4.js → repository-cache-2fxbb402.js} +8 -8
  31. package/dist/chunks/{filesystem-35agz59w.js → repository-cache-2jmaghvr.js} +4 -4
  32. package/dist/chunks/{filesystem-y0bj6ynv.js → repository-cache-2rk6k8vg.js} +15 -15
  33. package/dist/chunks/{filesystem-h62vdr7h.js → repository-cache-2w25bewv.js} +12 -12
  34. package/dist/chunks/{filesystem-2fyye2bf.js → repository-cache-32dhwnjc.js} +14 -14
  35. package/dist/chunks/{filesystem-8whseyrk.js → repository-cache-3556dn8t.js} +1 -1
  36. package/dist/chunks/{filesystem-1zacy60w.js → repository-cache-376dc42v.js} +24 -24
  37. package/dist/chunks/{filesystem-1g96y08y.js → repository-cache-37ea9c2d.js} +8 -8
  38. package/dist/chunks/{filesystem-jmh888fr.js → repository-cache-37sfe3bm.js} +10 -10
  39. package/dist/chunks/{filesystem-z016ngy8.js → repository-cache-3bg5g8q7.js} +29 -29
  40. package/dist/chunks/{filesystem-webnratf.js → repository-cache-3by35n0t.js} +5 -5
  41. package/dist/chunks/{filesystem-3fc6dm20.js → repository-cache-3fc6dm20.js} +1 -1
  42. package/dist/chunks/{filesystem-6bxp8d4e.js → repository-cache-3g7y17n3.js} +17 -17
  43. package/dist/chunks/{filesystem-3hepkmqq.js → repository-cache-3hepkmqq.js} +1 -1
  44. package/dist/chunks/{filesystem-pmr4s4kc.js → repository-cache-3j8sdtpz.js} +4 -4
  45. package/dist/chunks/{filesystem-vpefsdnb.js → repository-cache-3rbph65y.js} +46 -46
  46. package/dist/chunks/{filesystem-npxrv172.js → repository-cache-3s1wsaeq.js} +28 -28
  47. package/dist/chunks/{filesystem-3smtnn6g.js → repository-cache-3smtnn6g.js} +1 -1
  48. package/dist/chunks/{filesystem-3tvqynh2.js → repository-cache-3tvqynh2.js} +1 -1
  49. package/dist/chunks/{filesystem-3v5tjer0.js → repository-cache-3v5tjer0.js} +2 -2
  50. package/dist/chunks/{filesystem-3zsf4n22.js → repository-cache-3zsf4n22.js} +1 -1
  51. package/dist/chunks/{filesystem-jfz4p9z2.js → repository-cache-40f2545g.js} +34 -34
  52. package/dist/chunks/{filesystem-b5213z84.js → repository-cache-4429sr8a.js} +22 -22
  53. package/dist/chunks/{filesystem-cqvpsbxa.js → repository-cache-48frr5ey.js} +27 -27
  54. package/dist/chunks/{filesystem-kv03y1hk.js → repository-cache-4ag3f9xz.js} +5 -5
  55. package/dist/chunks/{filesystem-xgqg3fa6.js → repository-cache-4eda5p0n.js} +15 -15
  56. package/dist/chunks/{filesystem-bn3rhc52.js → repository-cache-4epeq83n.js} +6 -6
  57. package/dist/chunks/{filesystem-a2rpfkac.js → repository-cache-4v7ngy20.js} +4 -4
  58. package/dist/chunks/{filesystem-8zp79j7j.js → repository-cache-4z58m4b4.js} +4 -4
  59. package/dist/chunks/{filesystem-54ma36ye.js → repository-cache-54ma36ye.js} +1 -1
  60. package/dist/chunks/{filesystem-5d68yzj5.js → repository-cache-58s7bv4e.js} +32 -32
  61. package/dist/chunks/{filesystem-n5a91ywv.js → repository-cache-5c68v4c5.js} +13 -13
  62. package/dist/chunks/{filesystem-5daktx2q.js → repository-cache-5daktx2q.js} +1 -1
  63. package/dist/chunks/{filesystem-8n9ywp6t.js → repository-cache-5fwyrf5z.js} +31 -31
  64. package/dist/chunks/{filesystem-x2qdxhwm.js → repository-cache-5m5yrm4y.js} +8 -8
  65. package/dist/chunks/{filesystem-g3mpt7p6.js → repository-cache-5q9xfknq.js} +8 -8
  66. package/dist/chunks/{filesystem-5t3nmthw.js → repository-cache-5t3nmthw.js} +2 -2
  67. package/dist/chunks/{filesystem-ctzssw83.js → repository-cache-5we7r0eg.js} +8 -8
  68. package/dist/chunks/{filesystem-7ads88xp.js → repository-cache-63s895d0.js} +22 -22
  69. package/dist/chunks/{filesystem-669tq793.js → repository-cache-669tq793.js} +1 -1
  70. package/dist/chunks/{filesystem-xkez93e1.js → repository-cache-69jzkc3x.js} +27 -27
  71. package/dist/chunks/{filesystem-5gq66ctg.js → repository-cache-6bkwpg0x.js} +12 -12
  72. package/dist/chunks/{filesystem-kks2x84p.js → repository-cache-706phk7x.js} +2 -2
  73. package/dist/chunks/{filesystem-f75zav2x.js → repository-cache-71az546q.js} +2 -2
  74. package/dist/chunks/{filesystem-hc9acsgr.js → repository-cache-76ymgwed.js} +9 -9
  75. package/dist/chunks/{filesystem-7bmhse3q.js → repository-cache-7bmhse3q.js} +1 -1
  76. package/dist/chunks/{filesystem-jepen3yv.js → repository-cache-7fv9049a.js} +15 -15
  77. package/dist/chunks/{filesystem-5k9mpvz5.js → repository-cache-7gh65m6s.js} +8 -8
  78. package/dist/chunks/{filesystem-yvkd9agk.js → repository-cache-7kfsqtmt.js} +11 -11
  79. package/dist/chunks/{filesystem-7pf86645.js → repository-cache-7vwcfb7e.js} +11 -11
  80. package/dist/chunks/{filesystem-zmx4zm5d.js → repository-cache-7x28tdrb.js} +18 -18
  81. package/dist/chunks/{filesystem-jt60k175.js → repository-cache-822vy19y.js} +20 -20
  82. package/dist/chunks/{filesystem-tbmac1c7.js → repository-cache-86qzxe6p.js} +4 -4
  83. package/dist/chunks/{filesystem-7m5f9412.js → repository-cache-8aaqm6qj.js} +8 -8
  84. package/dist/chunks/{filesystem-xkd9f4xc.js → repository-cache-8aw8tj9n.js} +14 -14
  85. package/dist/chunks/{filesystem-8d7r5vzw.js → repository-cache-8d7r5vzw.js} +1 -1
  86. package/dist/chunks/{filesystem-0dk0rwka.js → repository-cache-8f2ehy9w.js} +24 -24
  87. package/dist/chunks/{filesystem-k8etnr3r.js → repository-cache-8gn7nf7w.js} +8 -8
  88. package/dist/chunks/{filesystem-847v5pgt.js → repository-cache-8ht81e1j.js} +11 -11
  89. package/dist/chunks/{filesystem-11p8z3nt.js → repository-cache-8mk2n5b3.js} +22 -22
  90. package/dist/chunks/{filesystem-vjh28280.js → repository-cache-8sgzw3p1.js} +3 -3
  91. package/dist/chunks/{filesystem-6ns3svyy.js → repository-cache-8w5vxsg3.js} +13 -13
  92. package/dist/chunks/{filesystem-ne7kg025.js → repository-cache-8zq1pfr0.js} +17 -17
  93. package/dist/chunks/repository-cache-93qh2cqg.js +507 -0
  94. package/dist/chunks/{filesystem-4407emfp.js → repository-cache-963rbvmp.js} +6 -6
  95. package/dist/chunks/{filesystem-ncqdhjqh.js → repository-cache-9aqqzffj.js} +14 -14
  96. package/dist/chunks/{filesystem-kb9j3d72.js → repository-cache-9e5bzkjp.js} +3 -3
  97. package/dist/chunks/{filesystem-k00bp9ns.js → repository-cache-9esanb1h.js} +32 -32
  98. package/dist/chunks/{filesystem-g2k2w7bp.js → repository-cache-9nkwfwgn.js} +17 -17
  99. package/dist/chunks/{filesystem-vw0qja5p.js → repository-cache-9qk0q36h.js} +14 -14
  100. package/dist/chunks/{filesystem-z5tskbjx.js → repository-cache-9tc8fk2g.js} +24 -24
  101. package/dist/chunks/{filesystem-75kqmam7.js → repository-cache-a04262f3.js} +1 -1
  102. package/dist/chunks/{filesystem-a1gpj94z.js → repository-cache-a1gpj94z.js} +1 -1
  103. package/dist/chunks/{filesystem-r48gm0ww.js → repository-cache-a1jg4bqm.js} +11 -11
  104. package/dist/chunks/{filesystem-6erkktj7.js → repository-cache-a6964z1k.js} +41 -41
  105. package/dist/chunks/{filesystem-aaet6srn.js → repository-cache-aaet6srn.js} +2 -2
  106. package/dist/chunks/{filesystem-ay8mf0mt.js → repository-cache-agkhkqzj.js} +13 -13
  107. package/dist/chunks/{filesystem-y06nwv4v.js → repository-cache-aq1q7s3w.js} +11 -11
  108. package/dist/chunks/{filesystem-0dygnakk.js → repository-cache-as7cf5zz.js} +4 -4
  109. package/dist/chunks/repository-cache-at67ztw2.js +26 -0
  110. package/dist/chunks/{filesystem-9x8zefvn.js → repository-cache-b005zpx3.js} +23 -23
  111. package/dist/chunks/{filesystem-b6gygkdw.js → repository-cache-b6gygkdw.js} +2 -2
  112. package/dist/chunks/{filesystem-3qj994h1.js → repository-cache-b7gejjdn.js} +18 -18
  113. package/dist/chunks/{filesystem-rymc5njp.js → repository-cache-beprb18x.js} +9 -9
  114. package/dist/chunks/{filesystem-0ev610yy.js → repository-cache-bjzxe3qz.js} +12 -12
  115. package/dist/chunks/{filesystem-v6q6j16c.js → repository-cache-br52dth2.js} +5 -5
  116. package/dist/chunks/{filesystem-4wft2je9.js → repository-cache-bsxd6m7c.js} +7 -7
  117. package/dist/chunks/{filesystem-aeb4sny1.js → repository-cache-btec747f.js} +5 -5
  118. package/dist/chunks/{filesystem-xx0dq7m8.js → repository-cache-c2st8pk7.js} +5 -5
  119. package/dist/chunks/{filesystem-79qaa2kf.js → repository-cache-c765mh8b.js} +9 -9
  120. package/dist/chunks/{filesystem-t7n9q6bq.js → repository-cache-ca7w653e.js} +4 -4
  121. package/dist/chunks/{filesystem-natgk2ns.js → repository-cache-cfpp34xq.js} +43 -43
  122. package/dist/chunks/{filesystem-9et5e0c8.js → repository-cache-cgkqc5k9.js} +28 -28
  123. package/dist/chunks/{filesystem-eys57y9b.js → repository-cache-cmwkp3r5.js} +8 -8
  124. package/dist/chunks/repository-cache-cqtfknxy.js +252 -0
  125. package/dist/chunks/{filesystem-9fj76a9k.js → repository-cache-d7q3t8ht.js} +9 -9
  126. package/dist/chunks/{filesystem-kmmmaj33.js → repository-cache-dg2gsbnn.js} +22 -22
  127. package/dist/chunks/{filesystem-9xnh16f9.js → repository-cache-dhr91br8.js} +5 -5
  128. package/dist/chunks/{filesystem-kqgfg1gd.js → repository-cache-dm4xrbzk.js} +8 -8
  129. package/dist/chunks/{filesystem-nxm207yx.js → repository-cache-dpkg50ah.js} +4 -4
  130. package/dist/chunks/{filesystem-3kqa2599.js → repository-cache-dtrxyetv.js} +5 -5
  131. package/dist/chunks/{filesystem-vt8t0ymm.js → repository-cache-dzydyd9h.js} +48 -48
  132. package/dist/chunks/{filesystem-dyxxb0pf.js → repository-cache-e35ah7hw.js} +21 -21
  133. package/dist/chunks/{filesystem-1ejg90ew.js → repository-cache-e61dah1y.js} +29 -29
  134. package/dist/chunks/{filesystem-638jzcf9.js → repository-cache-e7k2h18t.js} +11 -11
  135. package/dist/chunks/{filesystem-9cyywgrt.js → repository-cache-e8nmz9dx.js} +3 -3
  136. package/dist/chunks/{filesystem-aqd63c5t.js → repository-cache-e9266ee7.js} +20 -20
  137. package/dist/chunks/{filesystem-xqg1ramt.js → repository-cache-e93vysgz.js} +4 -4
  138. package/dist/chunks/{filesystem-ef5x83kb.js → repository-cache-ef5x83kb.js} +1 -1
  139. package/dist/chunks/{filesystem-yk2c168m.js → repository-cache-ekeagaff.js} +32 -32
  140. package/dist/chunks/{filesystem-etq0c3wd.js → repository-cache-etq0c3wd.js} +1 -1
  141. package/dist/chunks/{filesystem-q3jarvj1.js → repository-cache-expxz8xq.js} +16 -16
  142. package/dist/chunks/{filesystem-1y8z5g4w.js → repository-cache-eybz4adf.js} +10 -10
  143. package/dist/chunks/{filesystem-1cd2s10v.js → repository-cache-f0m8zgz7.js} +309 -309
  144. package/dist/chunks/{filesystem-8qhx0rtq.js → repository-cache-f3gqgk1j.js} +25 -25
  145. package/dist/chunks/{filesystem-epq6d0bg.js → repository-cache-f7t5kd0c.js} +37 -37
  146. package/dist/chunks/{filesystem-q694vrse.js → repository-cache-fjabd4vm.js} +72 -72
  147. package/dist/chunks/{filesystem-bzz3kdrt.js → repository-cache-fqpgqbak.js} +44 -44
  148. package/dist/chunks/{filesystem-sj134kkz.js → repository-cache-fsaqawm2.js} +6 -6
  149. package/dist/chunks/{filesystem-nbc5ax32.js → repository-cache-g0kjp75c.js} +15 -15
  150. package/dist/chunks/{filesystem-7ry2mxz0.js → repository-cache-g41awwxy.js} +20 -20
  151. package/dist/chunks/{filesystem-6ch0d3kn.js → repository-cache-g63fbaar.js} +11 -11
  152. package/dist/chunks/{filesystem-afs21wh3.js → repository-cache-g9n5gn8p.js} +4 -4
  153. package/dist/chunks/{filesystem-gd4qta3r.js → repository-cache-gd4qta3r.js} +1 -1
  154. package/dist/chunks/{filesystem-n2p9bvh6.js → repository-cache-gex2px6h.js} +3 -3
  155. package/dist/chunks/{filesystem-5tcm9639.js → repository-cache-gh5z95q3.js} +9 -9
  156. package/dist/chunks/{filesystem-18ekssq5.js → repository-cache-gjnx9fp9.js} +29 -29
  157. package/dist/chunks/{filesystem-gkyt9at6.js → repository-cache-gpzeq7j5.js} +15 -15
  158. package/dist/chunks/{filesystem-k6w0m00t.js → repository-cache-gtm34f6g.js} +21 -21
  159. package/dist/chunks/{filesystem-zcp5x14n.js → repository-cache-gzj36dnw.js} +23 -23
  160. package/dist/chunks/{filesystem-3cegwx68.js → repository-cache-h2b79v29.js} +2 -2
  161. package/dist/chunks/{filesystem-etvafb8y.js → repository-cache-h3g3cs7p.js} +4 -4
  162. package/dist/chunks/{filesystem-h6vf3j39.js → repository-cache-h6vf3j39.js} +1 -1
  163. package/dist/chunks/{filesystem-66c35f44.js → repository-cache-ha4q6k7g.js} +32 -32
  164. package/dist/chunks/{filesystem-ct0pajy1.js → repository-cache-hkyvzcah.js} +13 -13
  165. package/dist/chunks/{filesystem-hj225006.js → repository-cache-hqc76sze.js} +20 -20
  166. package/dist/chunks/{filesystem-dj1ywzdr.js → repository-cache-hrbcf8x8.js} +11 -11
  167. package/dist/chunks/{filesystem-ree5ev3t.js → repository-cache-hs1x7rht.js} +12 -12
  168. package/dist/chunks/{filesystem-vgw2dme3.js → repository-cache-htpvgqrd.js} +8 -8
  169. package/dist/chunks/{filesystem-nz55e0bf.js → repository-cache-hx7zmtxv.js} +82 -82
  170. package/dist/chunks/{filesystem-8q0x6p2t.js → repository-cache-hzbq48p7.js} +9 -9
  171. package/dist/chunks/{filesystem-spcfjcge.js → repository-cache-j0032p6g.js} +7 -7
  172. package/dist/chunks/{filesystem-3k6hcm1s.js → repository-cache-j2nvzb5v.js} +25 -25
  173. package/dist/chunks/{filesystem-j56e64zr.js → repository-cache-j56e64zr.js} +1 -1
  174. package/dist/chunks/{filesystem-jkp0d30b.js → repository-cache-j5w2yx54.js} +6 -6
  175. package/dist/chunks/{filesystem-r05yckk2.js → repository-cache-j83nw7fd.js} +27 -27
  176. package/dist/chunks/{filesystem-arfpz5bc.js → repository-cache-j9me29bk.js} +8 -8
  177. package/dist/chunks/{filesystem-axtvtek4.js → repository-cache-jfqtm2ew.js} +7 -7
  178. package/dist/chunks/{filesystem-qea7y3j0.js → repository-cache-jk54fhp7.js} +11 -11
  179. package/dist/chunks/{filesystem-1yrx8exs.js → repository-cache-jk5jtrba.js} +50 -50
  180. package/dist/chunks/{filesystem-84dmcwyh.js → repository-cache-jpeemenq.js} +4 -4
  181. package/dist/chunks/{filesystem-k3c624dm.js → repository-cache-k3c624dm.js} +3 -3
  182. package/dist/chunks/{filesystem-pfpqtqae.js → repository-cache-k4vx4kqq.js} +29 -29
  183. package/dist/chunks/{filesystem-e2fdwa3e.js → repository-cache-k64zxjm6.js} +10 -10
  184. package/dist/chunks/{filesystem-96ctqc5x.js → repository-cache-kb6vbnxp.js} +4 -4
  185. package/dist/chunks/{filesystem-ps03ea09.js → repository-cache-kpqjj4ny.js} +34 -34
  186. package/dist/chunks/{filesystem-6ykekk54.js → repository-cache-kq1ref1h.js} +3 -3
  187. package/dist/chunks/{filesystem-2q9z57te.js → repository-cache-kryraq7m.js} +81 -81
  188. package/dist/chunks/{filesystem-1npxxjtc.js → repository-cache-kxsrbhnp.js} +23 -23
  189. package/dist/chunks/{filesystem-bawtyvfr.js → repository-cache-kzhakyvk.js} +2 -2
  190. package/dist/chunks/{filesystem-vkgtc4qa.js → repository-cache-m0ecvezt.js} +15 -15
  191. package/dist/chunks/{filesystem-m3fdjcah.js → repository-cache-m3fdjcah.js} +1 -1
  192. package/dist/chunks/{filesystem-7bga7ps0.js → repository-cache-m4emmwet.js} +18 -18
  193. package/dist/chunks/{filesystem-m9w0rfyh.js → repository-cache-m9w0rfyh.js} +1 -1
  194. package/dist/chunks/{filesystem-mazbtkaa.js → repository-cache-mazbtkaa.js} +2 -2
  195. package/dist/chunks/{filesystem-xadz8mf8.js → repository-cache-mk49qygx.js} +10 -10
  196. package/dist/chunks/{filesystem-xwqhtygt.js → repository-cache-mnkrz2st.js} +5 -5
  197. package/dist/chunks/{filesystem-dnxkq42g.js → repository-cache-mpk0rfs5.js} +4 -4
  198. package/dist/chunks/{filesystem-2vkscmz1.js → repository-cache-mre670nb.js} +16 -16
  199. package/dist/chunks/{filesystem-ebfbhmvn.js → repository-cache-mwka8kak.js} +11 -11
  200. package/dist/chunks/{filesystem-ap661cbc.js → repository-cache-myh7k9xx.js} +46 -46
  201. package/dist/chunks/{filesystem-ns15zm60.js → repository-cache-n032fvft.js} +6 -6
  202. package/dist/chunks/{filesystem-pah9j43r.js → repository-cache-n0rv915y.js} +17 -17
  203. package/dist/chunks/{filesystem-aezf2awf.js → repository-cache-n37c4crj.js} +9 -9
  204. package/dist/chunks/{filesystem-8a65fc54.js → repository-cache-n48q0swr.js} +14 -14
  205. package/dist/chunks/{filesystem-q3ersh05.js → repository-cache-n57qrn3a.js} +4 -4
  206. package/dist/chunks/{filesystem-01m43rby.js → repository-cache-n7d88tpn.js} +3 -3
  207. package/dist/chunks/{filesystem-9nr1cgt9.js → repository-cache-n7qbnv1j.js} +15 -15
  208. package/dist/chunks/{filesystem-k8e0krnc.js → repository-cache-n8c291r7.js} +9 -9
  209. package/dist/chunks/{filesystem-5w1b85vj.js → repository-cache-n9esafc3.js} +21 -21
  210. package/dist/chunks/{filesystem-cft96kz9.js → repository-cache-nb17w2yx.js} +9 -9
  211. package/dist/chunks/{filesystem-vqxrw9st.js → repository-cache-nfqw6mz9.js} +19 -19
  212. package/dist/chunks/{filesystem-9ptnejtj.js → repository-cache-ngpj616s.js} +42 -42
  213. package/dist/chunks/{filesystem-3smkbt6f.js → repository-cache-p1p3hvby.js} +3 -3
  214. package/dist/chunks/{filesystem-jyspzs0j.js → repository-cache-pedjrwj0.js} +49 -49
  215. package/dist/chunks/{filesystem-pjvnvgmy.js → repository-cache-pjvnvgmy.js} +1 -1
  216. package/dist/chunks/{filesystem-pknna89w.js → repository-cache-pknna89w.js} +1 -1
  217. package/dist/chunks/{filesystem-bmcagzxz.js → repository-cache-pr2h8h86.js} +8 -8
  218. package/dist/chunks/{filesystem-nbvh7zyw.js → repository-cache-pw9d3wh8.js} +29 -29
  219. package/dist/chunks/{filesystem-py3kkmfq.js → repository-cache-py3kkmfq.js} +2 -2
  220. package/dist/chunks/{filesystem-mp16q3af.js → repository-cache-q8406f75.js} +13 -13
  221. package/dist/chunks/{filesystem-jvkn2v7p.js → repository-cache-qcrnsjqj.js} +28 -28
  222. package/dist/chunks/{filesystem-7dqw4kz8.js → repository-cache-qgn6gcr1.js} +5 -5
  223. package/dist/chunks/{filesystem-drvpf3hy.js → repository-cache-qmp8ys2a.js} +22 -22
  224. package/dist/chunks/{filesystem-qnc92qwc.js → repository-cache-qnc92qwc.js} +1 -1
  225. package/dist/chunks/{filesystem-47jkzegy.js → repository-cache-qne3fa44.js} +5 -5
  226. package/dist/chunks/{filesystem-qsdy395h.js → repository-cache-qsdy395h.js} +1 -1
  227. package/dist/chunks/{filesystem-0ryd0fps.js → repository-cache-qsr9synt.js} +5 -5
  228. package/dist/chunks/{filesystem-xd579ncr.js → repository-cache-qxnn7y6z.js} +8 -8
  229. package/dist/chunks/{filesystem-0my2vamg.js → repository-cache-r8ebqbsc.js} +5 -5
  230. package/dist/chunks/{filesystem-a394ta18.js → repository-cache-rax07w26.js} +28 -28
  231. package/dist/chunks/{filesystem-rdw6cm16.js → repository-cache-rdw6cm16.js} +1 -1
  232. package/dist/chunks/{filesystem-fcnd5sz6.js → repository-cache-re4wmejr.js} +32 -32
  233. package/dist/chunks/{filesystem-rhjbct0v.js → repository-cache-rhjbct0v.js} +1 -1
  234. package/dist/chunks/{filesystem-z7j7bfad.js → repository-cache-rtb06bvf.js} +3 -3
  235. package/dist/chunks/{filesystem-fkd5e0q7.js → repository-cache-ryhnjg92.js} +28 -28
  236. package/dist/chunks/{filesystem-dx3fq8zr.js → repository-cache-s39a1knw.js} +42 -42
  237. package/dist/chunks/{filesystem-6s6p3zn1.js → repository-cache-s8vhzyp4.js} +46 -46
  238. package/dist/chunks/{filesystem-scgrse2b.js → repository-cache-scgrse2b.js} +2 -2
  239. package/dist/chunks/{filesystem-ygj42pe4.js → repository-cache-skpsgn3k.js} +30 -30
  240. package/dist/chunks/{filesystem-4tje82sx.js → repository-cache-t4wnk216.js} +6 -6
  241. package/dist/chunks/{filesystem-qwcntv07.js → repository-cache-t81m24cw.js} +9 -9
  242. package/dist/chunks/{filesystem-dddrhpmg.js → repository-cache-t9ra34wt.js} +9 -9
  243. package/dist/chunks/{filesystem-30kepn8q.js → repository-cache-tavta0y2.js} +18 -18
  244. package/dist/chunks/{filesystem-tazgh4e4.js → repository-cache-tazgh4e4.js} +1 -1
  245. package/dist/chunks/{filesystem-89znhe33.js → repository-cache-tcezcvh9.js} +4 -4
  246. package/dist/chunks/{filesystem-tdstcens.js → repository-cache-tdstcens.js} +1 -1
  247. package/dist/chunks/{filesystem-6yz0wx8n.js → repository-cache-tk14y25j.js} +5 -5
  248. package/dist/chunks/{filesystem-z8nc6tc3.js → repository-cache-tntmnmab.js} +173 -173
  249. package/dist/chunks/{filesystem-tvtrv512.js → repository-cache-tvtrv512.js} +1 -1
  250. package/dist/chunks/repository-cache-v1faaxn9.js +18 -0
  251. package/dist/chunks/{filesystem-xg97hmyb.js → repository-cache-v30h9xz5.js} +22 -22
  252. package/dist/chunks/{filesystem-1w6eav72.js → repository-cache-v41jw1xq.js} +41 -41
  253. package/dist/chunks/{filesystem-6p82jt3d.js → repository-cache-v49gtp01.js} +18 -18
  254. package/dist/chunks/{filesystem-bzg1m3qp.js → repository-cache-v6evfva1.js} +8 -8
  255. package/dist/chunks/{filesystem-veqvce7d.js → repository-cache-veqvce7d.js} +1 -1
  256. package/dist/chunks/{filesystem-bbq0j6ta.js → repository-cache-vf3z480h.js} +26 -26
  257. package/dist/chunks/{filesystem-zfsg1r2z.js → repository-cache-vgb18m5f.js} +31 -31
  258. package/dist/chunks/{filesystem-vsp1fds9.js → repository-cache-vsp1fds9.js} +1 -1
  259. package/dist/chunks/{filesystem-nn5kxcxk.js → repository-cache-vxfyztn0.js} +13 -13
  260. package/dist/chunks/{filesystem-hvvpf5dq.js → repository-cache-vxhhv58t.js} +25 -25
  261. package/dist/chunks/{filesystem-vzcthcp8.js → repository-cache-vzcthcp8.js} +1 -1
  262. package/dist/chunks/{filesystem-vzs5sf6e.js → repository-cache-vzs5sf6e.js} +1 -1
  263. package/dist/chunks/{filesystem-84txncab.js → repository-cache-w1eejvng.js} +5 -5
  264. package/dist/chunks/{filesystem-w3wsvvr9.js → repository-cache-w3wsvvr9.js} +1 -1
  265. package/dist/chunks/{filesystem-wd87259q.js → repository-cache-wd87259q.js} +1 -1
  266. package/dist/chunks/{filesystem-gmg08tbf.js → repository-cache-wn1kxzz7.js} +14 -14
  267. package/dist/chunks/{filesystem-q4xjqs9h.js → repository-cache-wqcy1a6q.js} +26 -15
  268. package/dist/chunks/{filesystem-1mc0gcc5.js → repository-cache-wqkf1g1x.js} +19 -19
  269. package/dist/chunks/{filesystem-1kkbmfzx.js → repository-cache-wscpecpd.js} +25 -25
  270. package/dist/chunks/{filesystem-x1ezjp6w.js → repository-cache-x1ezjp6w.js} +1 -1
  271. package/dist/chunks/{filesystem-a84fs7pf.js → repository-cache-x3d3jna2.js} +7 -7
  272. package/dist/chunks/{filesystem-x80vamh1.js → repository-cache-x9qtnq71.js} +11 -11
  273. package/dist/chunks/{filesystem-xfkkasph.js → repository-cache-xfkkasph.js} +1 -1
  274. package/dist/chunks/{filesystem-dmqcgk4z.js → repository-cache-xkntkrq7.js} +5 -5
  275. package/dist/chunks/{filesystem-y1fvbwt7.js → repository-cache-y1fvbwt7.js} +1 -1
  276. package/dist/chunks/{filesystem-b3y0v5k5.js → repository-cache-y23ntya0.js} +46 -46
  277. package/dist/chunks/{filesystem-w0bxms7d.js → repository-cache-ydvbazfr.js} +41 -41
  278. package/dist/chunks/{filesystem-j7ghn0hc.js → repository-cache-yfksphsg.js} +13 -13
  279. package/dist/chunks/{filesystem-hxjgngrj.js → repository-cache-ymcgbes0.js} +4 -4
  280. package/dist/chunks/{filesystem-r8xr0va3.js → repository-cache-yp2x3t23.js} +4 -4
  281. package/dist/chunks/{filesystem-h2js7m9j.js → repository-cache-yrerq1n3.js} +10 -10
  282. package/dist/chunks/{filesystem-yrhqyw5v.js → repository-cache-yrhqyw5v.js} +1 -1
  283. package/dist/chunks/{filesystem-h0grdqdb.js → repository-cache-ysypycvb.js} +1 -1
  284. package/dist/chunks/{filesystem-vr2a0c8h.js → repository-cache-yzt1bx7e.js} +30 -30
  285. package/dist/chunks/{filesystem-z0bkrqjs.js → repository-cache-z0bkrqjs.js} +1 -1
  286. package/dist/chunks/{filesystem-a99akv2k.js → repository-cache-zav7rf1m.js} +24 -24
  287. package/dist/chunks/{filesystem-z971tyb0.js → repository-cache-zbrkq2e1.js} +10 -10
  288. package/dist/chunks/{filesystem-r6xn9bth.js → repository-cache-zdy34q02.js} +11 -11
  289. package/dist/chunks/{filesystem-mfxaeyt0.js → repository-cache-zmsbhx8q.js} +23 -23
  290. package/dist/chunks/{filesystem-zr2ceqn5.js → repository-cache-zr2ceqn5.js} +1 -1
  291. package/dist/chunks/{filesystem-cz0q7g0x.js → repository-cache-zwc7jy6c.js} +8 -8
  292. package/dist/chunks/{filesystem-zxq2ej10.js → repository-cache-zxq2ej10.js} +1 -1
  293. package/dist/codemode/catalog.js +1 -1
  294. package/dist/codemode/instructions.js +7 -7
  295. package/dist/codemode/tool.js +3 -3
  296. package/dist/codemode/web.js +1 -1
  297. package/dist/command.js +85 -85
  298. package/dist/config/discovery.js +84 -84
  299. package/dist/config/markdown.js +1 -1
  300. package/dist/config/normalize.js +106 -106
  301. package/dist/config/plugin/agent.js +125 -125
  302. package/dist/config/plugin/command.js +215 -215
  303. package/dist/config/plugin/compaction.js +161 -161
  304. package/dist/config/plugin/compatibility.js +139 -139
  305. package/dist/config/plugin/entry-observer.js +1 -1
  306. package/dist/config/plugin/formatter.js +124 -124
  307. package/dist/config/plugin/image.js +123 -123
  308. package/dist/config/plugin/instruction.js +90 -90
  309. package/dist/config/plugin/location-watcher.js +123 -123
  310. package/dist/config/plugin/mcp.js +132 -132
  311. package/dist/config/plugin/policy.js +124 -124
  312. package/dist/config/plugin/provider.js +123 -123
  313. package/dist/config/plugin/reference.js +125 -125
  314. package/dist/config/plugin/shell.js +125 -125
  315. package/dist/config/plugin/skill-file.js +102 -102
  316. package/dist/config/plugin/skill.js +142 -142
  317. package/dist/config/plugin/snapshot.js +123 -123
  318. package/dist/config/plugin/source.js +126 -126
  319. package/dist/config/plugin/tool-output.js +125 -125
  320. package/dist/config/plugin/websearch.js +124 -124
  321. package/dist/config/plugin/worktree.js +125 -125
  322. package/dist/config/variable.js +3 -3
  323. package/dist/config/watch.js +1 -1
  324. package/dist/config.js +126 -126
  325. package/dist/credential/sql.js +2 -2
  326. package/dist/credential.js +77 -77
  327. package/dist/database/database.js +70 -70
  328. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  329. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  330. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  331. package/dist/database/drizzle/index.js +15 -15
  332. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  333. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  335. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  336. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  337. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  338. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  339. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  340. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  341. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  342. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  343. package/dist/database/drizzle.js +16 -16
  344. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  345. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  346. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  347. package/dist/database/migration/20260225215848_workspace.js +1 -1
  348. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  349. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  350. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  351. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  352. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  353. package/dist/database/migration/20260323234822_events.js +1 -1
  354. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  355. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  356. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  357. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  358. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  359. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  360. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  361. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  362. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  363. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  364. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  365. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  366. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  367. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  368. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  369. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  370. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  371. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  372. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  373. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  374. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  375. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  376. package/dist/database/migration/20260611035744_credential.js +1 -1
  377. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  378. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  379. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  380. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  381. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  382. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  383. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  384. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  385. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  386. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  387. package/dist/database/migration/20260812213948_worktree.js +1 -1
  388. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  389. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  390. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  391. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  392. package/dist/database/migration.gen.js +49 -49
  393. package/dist/database/migration.js +51 -51
  394. package/dist/database/path.js +2 -2
  395. package/dist/database/schema.gen.js +1 -1
  396. package/dist/database/schema.sql.js +1 -1
  397. package/dist/database/sqlite.bun.js +1 -1
  398. package/dist/database/sqlite.js +1 -1
  399. package/dist/database/sqlite.node.js +1 -1
  400. package/dist/database/sqlite.workerd.js +1 -1
  401. package/dist/database/v1-migration.bun.js +79 -79
  402. package/dist/database/v1-migration.js +1 -1
  403. package/dist/effect/app-node-builder.js +372 -372
  404. package/dist/effect/app-node-platform.js +2 -2
  405. package/dist/effect/keyed-mutex.js +3 -3
  406. package/dist/effect/websocket-constructor.js +1 -1
  407. package/dist/environment/driver.js +1 -1
  408. package/dist/environment/environment.js +93 -93
  409. package/dist/environment/exec-defaults.js +2 -2
  410. package/dist/environment/files.js +1 -1
  411. package/dist/environment/index.js +95 -95
  412. package/dist/environment/local.js +2 -2
  413. package/dist/environment/memory.js +2 -2
  414. package/dist/environment/unavailable.js +1 -1
  415. package/dist/event/sql.js +1 -1
  416. package/dist/event-logger.js +74 -74
  417. package/dist/file-access.js +104 -104
  418. package/dist/file-mutation.js +94 -94
  419. package/dist/file-retention.js +1 -1
  420. package/dist/filesystem/fff.bun.js +2 -2
  421. package/dist/filesystem/fff.js +1 -1
  422. package/dist/filesystem/fff.node.js +2 -2
  423. package/dist/filesystem/fff.workerd.js +2 -2
  424. package/dist/filesystem/location-watcher-policy.js +6 -6
  425. package/dist/filesystem/location-watcher.js +226 -226
  426. package/dist/filesystem/protected.js +3 -3
  427. package/dist/filesystem/search.js +103 -103
  428. package/dist/filesystem/watcher-binding.js +1 -1
  429. package/dist/filesystem/watcher.js +13 -13
  430. package/dist/filesystem.js +108 -108
  431. package/dist/form.js +80 -80
  432. package/dist/formatter/builtins.js +2 -2
  433. package/dist/formatter.js +89 -89
  434. package/dist/generate.js +103 -103
  435. package/dist/git.js +10 -10
  436. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  437. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  438. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  439. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  440. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  441. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  442. package/dist/github-copilot/copilot-provider.js +17 -17
  443. package/dist/github-copilot/models.js +99 -99
  444. package/dist/github-copilot/openai-compatible-error.js +1 -1
  445. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  446. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  447. package/dist/github-copilot/responses/openai-error.js +1 -1
  448. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  449. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  450. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  451. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  452. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  453. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  454. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  455. package/dist/id/id.js +1 -1
  456. package/dist/image/photon.js +2 -2
  457. package/dist/image.js +6 -6
  458. package/dist/instance/service.js +5 -5
  459. package/dist/instance.js +363 -363
  460. package/dist/instruction-discovery.js +85 -85
  461. package/dist/instructions/builtins.js +87 -87
  462. package/dist/instructions/index.js +1 -1
  463. package/dist/integration/connection.js +3 -3
  464. package/dist/integration.js +87 -87
  465. package/dist/job.js +79 -79
  466. package/dist/kv/sql.js +2 -2
  467. package/dist/kv.js +73 -73
  468. package/dist/location-activity.js +135 -135
  469. package/dist/location-lifecycle.js +107 -107
  470. package/dist/location-service-map.js +86 -86
  471. package/dist/location-services.js +360 -360
  472. package/dist/location.js +81 -81
  473. package/dist/managed-policy.js +5 -5
  474. package/dist/mcp/client.js +91 -91
  475. package/dist/mcp/index.js +109 -109
  476. package/dist/mcp/instructions.js +129 -129
  477. package/dist/mcp/oauth.js +78 -78
  478. package/dist/mcp/stdio.js +90 -90
  479. package/dist/mime.js +1 -1
  480. package/dist/modal/models.js +99 -99
  481. package/dist/model-resolver.js +98 -98
  482. package/dist/model.js +100 -100
  483. package/dist/models-dev.js +107 -107
  484. package/dist/oauth/page.js +1 -1
  485. package/dist/permission/saved.js +82 -82
  486. package/dist/permission/sql.js +5 -5
  487. package/dist/permission.js +109 -109
  488. package/dist/persistent-pty/binary.bun.js +1 -1
  489. package/dist/persistent-pty/daemon.js +1 -1
  490. package/dist/persistent-pty/index.js +88 -88
  491. package/dist/persistent-pty/pty-binding.js +1 -1
  492. package/dist/persistent-pty.js +75 -75
  493. package/dist/plugin/agent.js +104 -104
  494. package/dist/plugin/command.js +102 -102
  495. package/dist/plugin/hooks.js +5 -5
  496. package/dist/plugin/host.js +219 -219
  497. package/dist/plugin/identity.js +3 -3
  498. package/dist/plugin/instance.js +5 -5
  499. package/dist/plugin/internal.js +335 -335
  500. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  501. package/dist/plugin/models-dev.js +96 -96
  502. package/dist/plugin/module.js +7 -7
  503. package/dist/plugin/optimize.js +2 -2
  504. package/dist/plugin/plan.js +102 -102
  505. package/dist/plugin/promise.js +1 -1
  506. package/dist/plugin/provider/amazon-bedrock.js +90 -90
  507. package/dist/plugin/provider/azure.js +124 -124
  508. package/dist/plugin/provider/cerebras.js +1 -1
  509. package/dist/plugin/provider/chatgpt.js +93 -93
  510. package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
  511. package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
  512. package/dist/plugin/provider/cohere.js +2 -2
  513. package/dist/plugin/provider/configured.js +119 -119
  514. package/dist/plugin/provider/digitalocean.js +93 -93
  515. package/dist/plugin/provider/dynamic.js +2 -2
  516. package/dist/plugin/provider/factory.js +1 -1
  517. package/dist/plugin/provider/gateway.js +2 -2
  518. package/dist/plugin/provider/github-copilot.js +95 -95
  519. package/dist/plugin/provider/gitlab.js +93 -93
  520. package/dist/plugin/provider/google-vertex.js +90 -90
  521. package/dist/plugin/provider/kilo.js +1 -1
  522. package/dist/plugin/provider/llmgateway.js +78 -78
  523. package/dist/plugin/provider/lmstudio.js +122 -122
  524. package/dist/plugin/provider/modal.js +92 -92
  525. package/dist/plugin/provider/nvidia.js +1 -1
  526. package/dist/plugin/provider/ollama.js +122 -122
  527. package/dist/plugin/provider/openai.js +93 -93
  528. package/dist/plugin/provider/opencode.js +96 -96
  529. package/dist/plugin/provider/openrouter.js +91 -91
  530. package/dist/plugin/provider/perplexity.js +2 -2
  531. package/dist/plugin/provider/poe.js +79 -79
  532. package/dist/plugin/provider/prompt-cache-key.js +90 -90
  533. package/dist/plugin/provider/sap-ai-core.js +91 -91
  534. package/dist/plugin/provider/sdk-factory.js +1 -1
  535. package/dist/plugin/provider/snowflake-cortex.js +122 -122
  536. package/dist/plugin/provider/venice.js +2 -2
  537. package/dist/plugin/provider/vercel.js +90 -90
  538. package/dist/plugin/provider/vllm.js +122 -122
  539. package/dist/plugin/provider/xai.js +91 -91
  540. package/dist/plugin/provider/zenmux.js +1 -1
  541. package/dist/plugin/provider.js +163 -163
  542. package/dist/plugin/sdk.js +74 -74
  543. package/dist/plugin/service.js +3 -3
  544. package/dist/plugin/skill.js +141 -141
  545. package/dist/plugin/source-directory.js +1 -1
  546. package/dist/plugin/supervisor.js +354 -354
  547. package/dist/plugin/tool-input-repair.js +4 -4
  548. package/dist/plugin/update.js +6 -6
  549. package/dist/plugin/vcs/git.js +86 -86
  550. package/dist/plugin/vcs/hg.js +86 -86
  551. package/dist/plugin/verbosity.js +93 -93
  552. package/dist/plugin/warming.js +121 -121
  553. package/dist/plugin/websearch/exa.js +7 -7
  554. package/dist/plugin/websearch/firecrawl.js +8 -8
  555. package/dist/plugin/websearch/index.js +9 -9
  556. package/dist/plugin/websearch/mcp.js +6 -6
  557. package/dist/plugin/websearch/parallel.js +6 -6
  558. package/dist/plugin/websearch/tavily.js +6 -6
  559. package/dist/plugin/websearch/tinyfish.js +8 -8
  560. package/dist/plugin.js +230 -230
  561. package/dist/project/schema.js +2 -2
  562. package/dist/project/sql.js +4 -4
  563. package/dist/project.js +80 -80
  564. package/dist/provider.js +99 -99
  565. package/dist/pty/protocol.js +1 -1
  566. package/dist/pty/ticket.js +1 -1
  567. package/dist/pty.js +97 -97
  568. package/dist/reference/instructions.js +89 -89
  569. package/dist/reference.js +89 -89
  570. package/dist/repository-cache.js +81 -81
  571. package/dist/repository.js +3 -3
  572. package/dist/ripgrep/binary.js +2 -2
  573. package/dist/ripgrep.js +95 -95
  574. package/dist/rpc.js +86 -86
  575. package/dist/schema.js +1 -1
  576. package/dist/session/affinity.js +1 -1
  577. package/dist/session/command.js +74 -74
  578. package/dist/session/compaction.js +133 -133
  579. package/dist/session/context.js +153 -153
  580. package/dist/session/diff.js +88 -88
  581. package/dist/session/environment.js +5 -5
  582. package/dist/session/error.js +5 -5
  583. package/dist/session/event.js +1 -1
  584. package/dist/session/execution/restart.js +225 -225
  585. package/dist/session/execution.js +128 -128
  586. package/dist/session/generate.js +152 -152
  587. package/dist/session/history.js +13 -13
  588. package/dist/session/inbox.js +86 -86
  589. package/dist/session/info.js +3 -3
  590. package/dist/session/instruction-entry.js +79 -79
  591. package/dist/session/instruction-state.js +8 -8
  592. package/dist/session/instructions.js +97 -97
  593. package/dist/session/message-updater.js +4 -4
  594. package/dist/session/message.js +1 -1
  595. package/dist/session/model-request.js +114 -114
  596. package/dist/session/model-transport.js +3 -3
  597. package/dist/session/move.js +126 -126
  598. package/dist/session/projector.js +84 -84
  599. package/dist/session/prompt.js +105 -105
  600. package/dist/session/provider-context.js +3 -3
  601. package/dist/session/revert.js +90 -90
  602. package/dist/session/run-coordinator.js +3 -3
  603. package/dist/session/runner/index.js +3 -3
  604. package/dist/session/runner/llm.js +232 -232
  605. package/dist/session/runner/max-steps.js +1 -1
  606. package/dist/session/runner/model.js +98 -98
  607. package/dist/session/runner/publish-llm-event.js +113 -113
  608. package/dist/session/runner/retry.js +2 -2
  609. package/dist/session/runner/step.js +126 -126
  610. package/dist/session/runner/to-llm-message.js +2 -2
  611. package/dist/session/schema.js +5 -5
  612. package/dist/session/session.js +170 -170
  613. package/dist/session/shell.js +138 -138
  614. package/dist/session/skill.js +103 -103
  615. package/dist/session/sql.js +5 -5
  616. package/dist/session/stats.js +75 -75
  617. package/dist/session/store.js +85 -85
  618. package/dist/session/subagent-completion.js +1 -1
  619. package/dist/session/subagent-job.js +209 -209
  620. package/dist/session/system-prompt.js +1 -1
  621. package/dist/session/title.js +157 -157
  622. package/dist/session/to-session-error.js +111 -111
  623. package/dist/session/transfer.js +221 -221
  624. package/dist/session/usage.js +1 -1
  625. package/dist/session.js +221 -221
  626. package/dist/shell/parse.js +6 -6
  627. package/dist/shell/result.js +1 -1
  628. package/dist/shell/scan.js +1 -1
  629. package/dist/shell/select.js +11 -11
  630. package/dist/shell.js +140 -140
  631. package/dist/skill/discovery.js +6 -6
  632. package/dist/skill/instructions.js +105 -105
  633. package/dist/skill.js +112 -112
  634. package/dist/snapshot.js +91 -91
  635. package/dist/state.js +1 -1
  636. package/dist/tool/html-markdown.js +1 -1
  637. package/dist/tool/http-body.js +1 -1
  638. package/dist/tool/mcp.js +126 -126
  639. package/dist/tool/plugin/edit.js +120 -120
  640. package/dist/tool/plugin/file-diff.js +1 -1
  641. package/dist/tool/plugin/glob.js +122 -122
  642. package/dist/tool/plugin/grep.js +124 -124
  643. package/dist/tool/plugin/mcp-resource.js +117 -117
  644. package/dist/tool/plugin/opencode.js +3 -3
  645. package/dist/tool/plugin/patch.js +122 -122
  646. package/dist/tool/plugin/question.js +103 -103
  647. package/dist/tool/plugin/read.js +125 -125
  648. package/dist/tool/plugin/shell.js +218 -218
  649. package/dist/tool/plugin/skill.js +111 -111
  650. package/dist/tool/plugin/subagent.js +220 -220
  651. package/dist/tool/plugin/webfetch.js +112 -112
  652. package/dist/tool/plugin/websearch.js +114 -114
  653. package/dist/tool/plugin/write.js +122 -122
  654. package/dist/tool/read-filesystem.js +100 -100
  655. package/dist/tool/runtime.js +1 -1
  656. package/dist/tool-output.js +8 -8
  657. package/dist/tool.js +16 -16
  658. package/dist/util/error-summary.js +1 -1
  659. package/dist/util/error.js +1 -1
  660. package/dist/util/git-executable.js +2 -2
  661. package/dist/util/iife.js +1 -1
  662. package/dist/util/lazy.js +1 -1
  663. package/dist/util/slug.js +1 -1
  664. package/dist/util/token.js +1 -1
  665. package/dist/util/which.js +1 -1
  666. package/dist/util/wildcard.js +1 -1
  667. package/dist/v1/config/agent.js +5 -5
  668. package/dist/v1/config/attachment.js +4 -4
  669. package/dist/v1/config/command.js +5 -5
  670. package/dist/v1/config/config.js +16 -16
  671. package/dist/v1/config/error.js +2 -2
  672. package/dist/v1/config/formatter.js +7 -7
  673. package/dist/v1/config/layout.js +1 -1
  674. package/dist/v1/config/lsp.js +3 -3
  675. package/dist/v1/config/mcp.js +4 -4
  676. package/dist/v1/config/migrate.js +92 -92
  677. package/dist/v1/config/permission.js +1 -1
  678. package/dist/v1/config/plugin.js +3 -3
  679. package/dist/v1/config/provider-options.js +1 -1
  680. package/dist/v1/config/provider.js +4 -4
  681. package/dist/v1/config/server.js +2 -2
  682. package/dist/v1/config/skills.js +3 -3
  683. package/dist/variant.js +91 -91
  684. package/dist/vcs/patch.js +1 -1
  685. package/dist/vcs.js +89 -89
  686. package/dist/websearch.js +84 -84
  687. package/dist/wellknown/plugin.js +74 -74
  688. package/dist/wellknown.js +79 -79
  689. package/dist/workspace/driver.js +3 -3
  690. package/dist/workspace/sql.js +1 -1
  691. package/dist/workspace.js +78 -78
  692. package/dist/worktree/directory.js +2 -2
  693. package/dist/worktree/git.js +10 -10
  694. package/dist/worktree/sql.js +5 -5
  695. package/dist/worktree/strategies.js +89 -89
  696. package/dist/worktree.js +96 -96
  697. package/package.json +8 -8
  698. package/dist/chunks/filesystem-apczx2yy.js +0 -252
  699. package/dist/chunks/filesystem-gyce5qg1.js +0 -18
  700. package/dist/chunks/filesystem-r41c29vv.js +0 -26
  701. package/dist/chunks/filesystem-w3xv9s6n.js +0 -507
  702. /package/dist/chunks/{filesystem-0qkdqm5v.js → repository-cache-0qkdqm5v.js} +0 -0
  703. /package/dist/chunks/{filesystem-0zkw76rk.js → repository-cache-0zkw76rk.js} +0 -0
  704. /package/dist/chunks/{filesystem-17cy0kzp.js → repository-cache-17cy0kzp.js} +0 -0
  705. /package/dist/chunks/{filesystem-1cnp2v09.js → repository-cache-1cnp2v09.js} +0 -0
  706. /package/dist/chunks/{filesystem-1kg9ymc8.js → repository-cache-1kg9ymc8.js} +0 -0
  707. /package/dist/chunks/{filesystem-24dcb14g.js → repository-cache-24dcb14g.js} +0 -0
  708. /package/dist/chunks/{filesystem-2710q6r3.js → repository-cache-2710q6r3.js} +0 -0
  709. /package/dist/chunks/{filesystem-2axfhc9x.js → repository-cache-2axfhc9x.js} +0 -0
  710. /package/dist/chunks/{filesystem-2c3vjs8z.js → repository-cache-2c3vjs8z.js} +0 -0
  711. /package/dist/chunks/{filesystem-34c7v6d4.js → repository-cache-34c7v6d4.js} +0 -0
  712. /package/dist/chunks/{filesystem-359p4xyc.js → repository-cache-359p4xyc.js} +0 -0
  713. /package/dist/chunks/{filesystem-3asan66x.js → repository-cache-3asan66x.js} +0 -0
  714. /package/dist/chunks/{filesystem-3v8g72cx.js → repository-cache-3v8g72cx.js} +0 -0
  715. /package/dist/chunks/{filesystem-3w5fmr99.js → repository-cache-3w5fmr99.js} +0 -0
  716. /package/dist/chunks/{filesystem-3wcehsnq.js → repository-cache-3wcehsnq.js} +0 -0
  717. /package/dist/chunks/{filesystem-43n2bw4t.js → repository-cache-43n2bw4t.js} +0 -0
  718. /package/dist/chunks/{filesystem-4knz6hnm.js → repository-cache-4knz6hnm.js} +0 -0
  719. /package/dist/chunks/{filesystem-4vcrnpx2.js → repository-cache-4vcrnpx2.js} +0 -0
  720. /package/dist/chunks/{filesystem-4y7fprxs.js → repository-cache-4y7fprxs.js} +0 -0
  721. /package/dist/chunks/{filesystem-53557ph1.js → repository-cache-53557ph1.js} +0 -0
  722. /package/dist/chunks/{filesystem-550bvhaj.js → repository-cache-550bvhaj.js} +0 -0
  723. /package/dist/chunks/{filesystem-6prwharc.js → repository-cache-6prwharc.js} +0 -0
  724. /package/dist/chunks/{filesystem-7akdwqpd.js → repository-cache-7akdwqpd.js} +0 -0
  725. /package/dist/chunks/{filesystem-7m9af43g.js → repository-cache-7m9af43g.js} +0 -0
  726. /package/dist/chunks/{filesystem-822emrt2.js → repository-cache-822emrt2.js} +0 -0
  727. /package/dist/chunks/{filesystem-88xbtdfr.js → repository-cache-88xbtdfr.js} +0 -0
  728. /package/dist/chunks/{filesystem-8n3pysct.js → repository-cache-8n3pysct.js} +0 -0
  729. /package/dist/chunks/{filesystem-8wj87zfr.js → repository-cache-8wj87zfr.js} +0 -0
  730. /package/dist/chunks/{filesystem-9a4afbnw.js → repository-cache-9a4afbnw.js} +0 -0
  731. /package/dist/chunks/{filesystem-9rqn6x4v.js → repository-cache-9rqn6x4v.js} +0 -0
  732. /package/dist/chunks/{filesystem-a6k6eb26.js → repository-cache-a6k6eb26.js} +0 -0
  733. /package/dist/chunks/{filesystem-af5trqkr.js → repository-cache-af5trqkr.js} +0 -0
  734. /package/dist/chunks/{filesystem-afrmfg78.js → repository-cache-afrmfg78.js} +0 -0
  735. /package/dist/chunks/{filesystem-aqzs7mqg.js → repository-cache-aqzs7mqg.js} +0 -0
  736. /package/dist/chunks/{filesystem-atq7p7m5.js → repository-cache-atq7p7m5.js} +0 -0
  737. /package/dist/chunks/{filesystem-bkyjaxrp.js → repository-cache-bkyjaxrp.js} +0 -0
  738. /package/dist/chunks/{filesystem-bmr6ed5q.js → repository-cache-bmr6ed5q.js} +0 -0
  739. /package/dist/chunks/{filesystem-cf4snx6d.js → repository-cache-cf4snx6d.js} +0 -0
  740. /package/dist/chunks/{filesystem-cvy3z8tj.js → repository-cache-cvy3z8tj.js} +0 -0
  741. /package/dist/chunks/{filesystem-d9fn303g.js → repository-cache-d9fn303g.js} +0 -0
  742. /package/dist/chunks/{filesystem-d9jj8t3e.js → repository-cache-d9jj8t3e.js} +0 -0
  743. /package/dist/chunks/{filesystem-dajrwvna.js → repository-cache-dajrwvna.js} +0 -0
  744. /package/dist/chunks/{filesystem-dap0rakb.js → repository-cache-dap0rakb.js} +0 -0
  745. /package/dist/chunks/{filesystem-df08tz66.js → repository-cache-df08tz66.js} +0 -0
  746. /package/dist/chunks/{filesystem-dy18nga0.js → repository-cache-dy18nga0.js} +0 -0
  747. /package/dist/chunks/{filesystem-e3qxr5gk.js → repository-cache-e3qxr5gk.js} +0 -0
  748. /package/dist/chunks/{filesystem-e5kj55wp.js → repository-cache-e5kj55wp.js} +0 -0
  749. /package/dist/chunks/{filesystem-e73j6tqm.js → repository-cache-e73j6tqm.js} +0 -0
  750. /package/dist/chunks/{filesystem-ec1grn59.js → repository-cache-ec1grn59.js} +0 -0
  751. /package/dist/chunks/{filesystem-eh3zwz77.js → repository-cache-eh3zwz77.js} +0 -0
  752. /package/dist/chunks/{filesystem-emrn6kk6.js → repository-cache-emrn6kk6.js} +0 -0
  753. /package/dist/chunks/{filesystem-f0mxakyp.js → repository-cache-f0mxakyp.js} +0 -0
  754. /package/dist/chunks/{filesystem-f6n9ztr4.js → repository-cache-f6n9ztr4.js} +0 -0
  755. /package/dist/chunks/{filesystem-faypxj3z.js → repository-cache-faypxj3z.js} +0 -0
  756. /package/dist/chunks/{filesystem-fd410y7t.js → repository-cache-fd410y7t.js} +0 -0
  757. /package/dist/chunks/{filesystem-fxgpk5d8.js → repository-cache-fxgpk5d8.js} +0 -0
  758. /package/dist/chunks/{filesystem-g4wezp1m.js → repository-cache-g4wezp1m.js} +0 -0
  759. /package/dist/chunks/{filesystem-g86h250q.js → repository-cache-g86h250q.js} +0 -0
  760. /package/dist/chunks/{filesystem-gebd4c9n.js → repository-cache-gebd4c9n.js} +0 -0
  761. /package/dist/chunks/{filesystem-gftt206x.js → repository-cache-gftt206x.js} +0 -0
  762. /package/dist/chunks/{filesystem-hjbc5kem.js → repository-cache-hjbc5kem.js} +0 -0
  763. /package/dist/chunks/{filesystem-hk9envan.js → repository-cache-hk9envan.js} +0 -0
  764. /package/dist/chunks/{filesystem-j2ntwpah.js → repository-cache-j2ntwpah.js} +0 -0
  765. /package/dist/chunks/{filesystem-j5zkgpj8.js → repository-cache-j5zkgpj8.js} +0 -0
  766. /package/dist/chunks/{filesystem-jjkms2e6.js → repository-cache-jjkms2e6.js} +0 -0
  767. /package/dist/chunks/{filesystem-jr7sbwjy.js → repository-cache-jr7sbwjy.js} +0 -0
  768. /package/dist/chunks/{filesystem-jwfs4k6c.js → repository-cache-jwfs4k6c.js} +0 -0
  769. /package/dist/chunks/{filesystem-jzg6c2d5.js → repository-cache-jzg6c2d5.js} +0 -0
  770. /package/dist/chunks/{filesystem-mp448xyj.js → repository-cache-mp448xyj.js} +0 -0
  771. /package/dist/chunks/{filesystem-msx8hqn2.js → repository-cache-msx8hqn2.js} +0 -0
  772. /package/dist/chunks/{filesystem-n05xt0ee.js → repository-cache-n05xt0ee.js} +0 -0
  773. /package/dist/chunks/{filesystem-n3j8tn72.js → repository-cache-n3j8tn72.js} +0 -0
  774. /package/dist/chunks/{filesystem-njntx4h6.js → repository-cache-njntx4h6.js} +0 -0
  775. /package/dist/chunks/{filesystem-q3sfg36h.js → repository-cache-q3sfg36h.js} +0 -0
  776. /package/dist/chunks/{filesystem-q74kybfr.js → repository-cache-q74kybfr.js} +0 -0
  777. /package/dist/chunks/{filesystem-qaymkmh1.js → repository-cache-qaymkmh1.js} +0 -0
  778. /package/dist/chunks/{filesystem-qb87gjwd.js → repository-cache-qb87gjwd.js} +0 -0
  779. /package/dist/chunks/{filesystem-qfa1cgps.js → repository-cache-qfa1cgps.js} +0 -0
  780. /package/dist/chunks/{filesystem-qg3g05ea.js → repository-cache-qg3g05ea.js} +0 -0
  781. /package/dist/chunks/{filesystem-qrg20bc0.js → repository-cache-qrg20bc0.js} +0 -0
  782. /package/dist/chunks/{filesystem-rcb2kzg1.js → repository-cache-rcb2kzg1.js} +0 -0
  783. /package/dist/chunks/{filesystem-sdp7kfr6.js → repository-cache-sdp7kfr6.js} +0 -0
  784. /package/dist/chunks/{filesystem-sk3qaz4a.js → repository-cache-sk3qaz4a.js} +0 -0
  785. /package/dist/chunks/{filesystem-ssg3fenm.js → repository-cache-ssg3fenm.js} +0 -0
  786. /package/dist/chunks/{filesystem-w803qqfp.js → repository-cache-w803qqfp.js} +0 -0
  787. /package/dist/chunks/{filesystem-wc3fc9cn.js → repository-cache-wc3fc9cn.js} +0 -0
  788. /package/dist/chunks/{filesystem-wer8tq1h.js → repository-cache-wer8tq1h.js} +0 -0
  789. /package/dist/chunks/{filesystem-wtztk69x.js → repository-cache-wtztk69x.js} +0 -0
  790. /package/dist/chunks/{filesystem-x0ckcb58.js → repository-cache-x0ckcb58.js} +0 -0
  791. /package/dist/chunks/{filesystem-x61499pn.js → repository-cache-x61499pn.js} +0 -0
  792. /package/dist/chunks/{filesystem-y44na4kk.js → repository-cache-y44na4kk.js} +0 -0
  793. /package/dist/chunks/{filesystem-y8cydn3q.js → repository-cache-y8cydn3q.js} +0 -0
  794. /package/dist/chunks/{filesystem-y8f7s663.js → repository-cache-y8f7s663.js} +0 -0
  795. /package/dist/chunks/{filesystem-ygaqb7jw.js → repository-cache-ygaqb7jw.js} +0 -0
  796. /package/dist/chunks/{filesystem-ym463w8f.js → repository-cache-ym463w8f.js} +0 -0
  797. /package/dist/chunks/{filesystem-z5v4ffb3.js → repository-cache-z5v4ffb3.js} +0 -0
  798. /package/dist/chunks/{filesystem-z9919s4g.js → repository-cache-z9919s4g.js} +0 -0
@@ -1,36 +1,27 @@
1
1
  import {
2
- Service82,
3
- node86
4
- } from "./filesystem-q3jarvj1.js";
2
+ Service83,
3
+ node87
4
+ } from "./repository-cache-expxz8xq.js";
5
5
  import {
6
6
  shutdown2,
7
7
  create3
8
- } from "./filesystem-rdw6cm16.js";
8
+ } from "./repository-cache-rdw6cm16.js";
9
9
  import {
10
10
  key2
11
- } from "./filesystem-dnxkq42g.js";
11
+ } from "./repository-cache-mpk0rfs5.js";
12
12
  import {
13
- ID14,
14
- Service77,
15
- node81,
16
- Event18
17
- } from "./filesystem-z016ngy8.js";
13
+ ID13,
14
+ Service72,
15
+ node75,
16
+ Event17
17
+ } from "./repository-cache-3bg5g8q7.js";
18
18
  import {
19
19
  Service80,
20
20
  node84
21
- } from "./filesystem-y5dkda77.js";
21
+ } from "./repository-cache-25ex5bj3.js";
22
22
  import {
23
23
  __export
24
- } from "./filesystem-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 "./repository-cache-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,
42
- ID: () => ID13,
43
- Info: () => Info27,
32
+ Event: () => Event16,
33
+ ID: () => ID12,
34
+ Info: () => Info26,
44
35
  LoadError: () => LoadError3,
45
36
  Provider: () => exports_provider3,
46
37
  Request: () => Request3,
47
- Service: () => Service76,
38
+ Service: () => Service69,
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: () => node80,
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,8 +59,265 @@ 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";
72
- var ID13 = Provider.ID;
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/deepinfra": "@opencode/ai/providers/deepinfra",
107
+ "@ai-sdk/google": "@opencode/ai/providers/google",
108
+ "@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
109
+ "@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
110
+ "@ai-sdk/groq": "@opencode/ai/providers/groq",
111
+ "@ai-sdk/mistral": "@opencode/ai/providers/mistral",
112
+ "@ai-sdk/openai": "@opencode/ai/providers/openai",
113
+ "@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
114
+ "@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
115
+ "@ai-sdk/xai": "@opencode/ai/providers/xai",
116
+ "@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
117
+ "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
118
+ };
119
+ var protocols = (name) => ({
120
+ "@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
121
+ "@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
122
+ "@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
123
+ });
124
+ var HOSTS = {
125
+ alibaba: protocols("alibaba"),
126
+ "alibaba-cn": protocols("alibaba"),
127
+ "alibaba-coding-plan": protocols("alibaba"),
128
+ "alibaba-coding-plan-cn": protocols("alibaba"),
129
+ "alibaba-token-plan": protocols("alibaba"),
130
+ "alibaba-token-plan-cn": protocols("alibaba"),
131
+ baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
132
+ "cloudflare-ai-gateway": {
133
+ "@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
134
+ "@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
135
+ "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
136
+ "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
137
+ },
138
+ "cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
139
+ deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
140
+ digitalocean: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/digitalocean" },
141
+ "fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
142
+ "google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
143
+ "kimi-for-coding": protocols("moonshot"),
144
+ meta: protocols("meta"),
145
+ minimax: protocols("minimax"),
146
+ "minimax-cn": protocols("minimax"),
147
+ "minimax-coding-plan": protocols("minimax"),
148
+ "minimax-cn-coding-plan": protocols("minimax"),
149
+ moonshotai: protocols("moonshot"),
150
+ "moonshotai-cn": protocols("moonshot"),
151
+ zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
152
+ "zai-coding-plan": protocols("zai-coding-plan"),
153
+ zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
154
+ "zhipuai-coding-plan": protocols("zai-coding-plan")
155
+ };
156
+ var NATIVE = new Set([
157
+ ...Object.values(PACKAGES),
158
+ ...Object.values(HOSTS).flatMap((host) => Object.values(host)),
159
+ "@opencode/ai/providers/azure/chat",
160
+ "@opencode/ai/providers/amazon-bedrock/mantle",
161
+ "@opencode/ai/providers/amazon-bedrock/mantle/chat",
162
+ "@opencode/ai/providers/amazon-bedrock/mantle/responses"
163
+ ]);
164
+ function native2(npm, context) {
165
+ const host = HOSTS[context.providerID]?.[npm];
166
+ if (host)
167
+ return host;
168
+ if (npm === "@ai-sdk/amazon-bedrock/mantle")
169
+ return mantle(context.modelID);
170
+ if (npm === "@ai-sdk/azure" && context.settings?.useCompletionUrls === true)
171
+ return "@opencode/ai/providers/azure/chat";
172
+ return PACKAGES[npm];
173
+ }
174
+ var mantle = (modelID) => {
175
+ if (modelID === undefined)
176
+ return "@opencode/ai/providers/amazon-bedrock/mantle";
177
+ return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
178
+ };
179
+ function resolve(specifier, context) {
180
+ const npm = packageName2(specifier);
181
+ if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
182
+ return native2(npm, context);
183
+ if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
184
+ return mantle(context.modelID);
185
+ if (npm === "@opencode/ai/providers/azure/responses" && context.settings?.useCompletionUrls === true)
186
+ return "@opencode/ai/providers/azure/chat";
187
+ return NATIVE.has(npm) ? npm : undefined;
188
+ }
189
+ function options(replacement, modelID, settings) {
190
+ const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
191
+ const kept = Struct.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
192
+ const thinking = converse ? bedrockThinking(modelID, settings) : undefined;
193
+ return {
194
+ settings: {
195
+ ...replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
196
+ ...thinking === undefined ? {} : { thinking }
197
+ },
198
+ ...settings.headers === undefined ? {} : { headers: settings.headers },
199
+ ...settings.extraBody === undefined ? {} : { body: settings.extraBody },
200
+ ...converse ? bedrockRequest(modelID, settings) : {},
201
+ ...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
202
+ };
203
+ }
204
+ var BEDROCK_KEYS = [
205
+ "bearerToken",
206
+ "endpoint",
207
+ "credentials",
208
+ "credentialProvider",
209
+ "accessKeyId",
210
+ "secretAccessKey",
211
+ "sessionToken"
212
+ ];
213
+ var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
214
+ function bedrockSettings(settings, converse) {
215
+ const region = settings.region ?? settings.credentials?.region;
216
+ const credentials = settings.credentials ?? settings;
217
+ const baseURL = settings.baseURL ?? settings.endpoint;
218
+ return {
219
+ ...Struct.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
220
+ ...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
221
+ ...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
222
+ ...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
223
+ credentials: {
224
+ ...region === undefined ? {} : { region },
225
+ accessKeyId: credentials.accessKeyId,
226
+ secretAccessKey: credentials.secretAccessKey,
227
+ ...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
228
+ }
229
+ }
230
+ };
231
+ }
232
+ function bedrockThinking(modelID, settings) {
233
+ const reasoning = settings.reasoningConfig;
234
+ if (!modelID?.includes("anthropic") || reasoning?.type !== "enabled" || reasoning.budgetTokens === undefined)
235
+ return;
236
+ return { type: "enabled", budgetTokens: reasoning.budgetTokens };
237
+ }
238
+ function bedrockRequest(modelID, settings) {
239
+ const additional = settings.additionalModelRequestFields ?? {};
240
+ const reasoning = settings.reasoningConfig;
241
+ const anthropic = modelID?.includes("anthropic") ?? false;
242
+ const openai = modelID?.includes("openai.") ?? false;
243
+ const harmony = modelID?.includes("openai.gpt-oss") ?? false;
244
+ const effort = reasoning?.maxReasoningEffort;
245
+ const type = reasoning?.type;
246
+ const budget = reasoning?.budgetTokens;
247
+ const display = reasoning?.display;
248
+ const betas = settings.anthropicBeta ?? [];
249
+ const fields = mergeOverlay2(additional, {
250
+ ...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
251
+ ...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
252
+ ...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
253
+ ...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
254
+ ...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
255
+ ...!anthropic && !openai && effort !== undefined ? {
256
+ reasoningConfig: {
257
+ ...type === undefined || type === "adaptive" ? {} : { type },
258
+ ...budget === undefined ? {} : { budgetTokens: budget },
259
+ maxReasoningEffort: effort
260
+ }
261
+ } : {}
262
+ });
263
+ const body = {
264
+ ...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
265
+ ...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
266
+ };
267
+ return Object.keys(body).length === 0 ? {} : { body };
268
+ }
269
+ var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
270
+ function openRouterRequest(settings) {
271
+ const headers = mergeHeaders2({
272
+ ...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
273
+ ...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
274
+ ...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
275
+ }, settings.headers) ?? {};
276
+ return Object.keys(headers).length === 0 ? {} : { headers };
277
+ }
278
+ var lenient = (schema) => Schema.optional(Schema.UndefinedOr(schema).pipe(Schema.catchDecoding(() => Effect.succeed(Option.some(undefined)))));
279
+ var Credentials = Schema.Struct({
280
+ accessKeyId: Schema.String,
281
+ secretAccessKey: Schema.String,
282
+ sessionToken: lenient(Schema.String),
283
+ region: lenient(Schema.String)
284
+ });
285
+ var Legacy = Schema.StructWithRest(Schema.Struct({
286
+ apiKey: lenient(Schema.String),
287
+ baseURL: lenient(Schema.String),
288
+ headers: lenient(Schema.Record(Schema.String, Schema.String)),
289
+ extraBody: lenient(Schema.Record(Schema.String, Schema.Unknown)),
290
+ useCompletionUrls: lenient(Schema.Boolean),
291
+ auth: lenient(Schema.Literals(["bearer", "sigv4"])),
292
+ bearerToken: lenient(Schema.String),
293
+ endpoint: lenient(Schema.String),
294
+ region: lenient(Schema.String),
295
+ credentials: lenient(Credentials),
296
+ accessKeyId: lenient(Schema.String),
297
+ secretAccessKey: lenient(Schema.String),
298
+ sessionToken: lenient(Schema.String),
299
+ anthropicBeta: lenient(Schema.Array(Schema.String)),
300
+ serviceTier: lenient(Schema.String),
301
+ reasoningConfig: lenient(Schema.Struct({
302
+ type: lenient(Schema.String),
303
+ display: lenient(Schema.String),
304
+ maxReasoningEffort: lenient(Schema.String),
305
+ budgetTokens: lenient(Schema.Number)
306
+ })),
307
+ additionalModelRequestFields: lenient(Schema.StructWithRest(Schema.Struct({
308
+ anthropic_beta: lenient(Schema.Array(Schema.String)),
309
+ output_config: lenient(Schema.Record(Schema.String, Schema.Unknown)),
310
+ reasoning: lenient(Schema.Record(Schema.String, Schema.Unknown))
311
+ }), [Schema.Record(Schema.String, Schema.Unknown)])),
312
+ appName: lenient(Schema.String),
313
+ appUrl: lenient(Schema.String),
314
+ api_keys: lenient(Schema.Record(Schema.String, Schema.String))
315
+ }), [Schema.Record(Schema.String, Schema.Unknown)]);
316
+ var decode = Schema.decodeUnknownSync(Legacy);
317
+
318
+ // src/provider.ts
319
+ import { Event as Event16 } from "@opencode/schema/provider";
320
+ var ID12 = Provider.ID;
73
321
  var AISDK_PREFIX2 = "aisdk:";
74
322
  var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
75
323
  var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
@@ -80,12 +328,12 @@ function packageName2(value) {
80
328
  return value;
81
329
  return value.slice(AISDK_PREFIX2.length);
82
330
  }
83
- var JsonRecord = Schema.Record(Schema.String, Schema.Json);
84
- var decodeJsonRecord = Schema.decodeUnknownSync(JsonRecord);
331
+ var JsonRecord = Schema2.Record(Schema2.String, Schema2.Json);
332
+ var decodeJsonRecord = Schema2.decodeUnknownSync(JsonRecord);
85
333
 
86
- class LoadError3 extends Schema.TaggedError()("Provider.LoadError", {
87
- package: Schema.String,
88
- cause: Schema.Defect()
334
+ class LoadError3 extends Schema2.TaggedError()("Provider.LoadError", {
335
+ package: Schema2.String,
336
+ cause: Schema2.Defect()
89
337
  }) {
90
338
  }
91
339
  var packages = new Map;
@@ -147,12 +395,12 @@ var builtins = new Map([
147
395
  () => import("@opencode/ai/providers/zai-coding-plan/responses")
148
396
  ]
149
397
  ]);
150
- var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
398
+ var loadPackage2 = Effect2.fn("Provider.loadPackage")(function* (input, npm) {
151
399
  const specifier = packageName2(input);
152
400
  const builtin = builtins.get(specifier);
153
401
  if (builtin)
154
402
  return yield* importPackage(specifier, specifier, builtin);
155
- const resolved = yield* Effect.sync(() => {
403
+ const resolved = yield* Effect2.sync(() => {
156
404
  if (specifier.startsWith("file://") || specifier.startsWith("@opencode/ai/"))
157
405
  return specifier;
158
406
  try {
@@ -171,8 +419,8 @@ var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
171
419
  }
172
420
  const parts = specifier.split("/");
173
421
  const root = specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0] ?? specifier;
174
- const installed = yield* npm.add(root).pipe(Effect.mapError((cause) => new LoadError3({ package: specifier, cause })));
175
- const entrypoint = yield* Effect.try({
422
+ const installed = yield* npm.add(root).pipe(Effect2.mapError((cause) => new LoadError3({ package: specifier, cause })));
423
+ const entrypoint = yield* Effect2.try({
176
424
  try: () => resolveModule(specifier, installed.directory),
177
425
  catch: (cause) => new LoadError3({ package: specifier, cause })
178
426
  });
@@ -181,15 +429,15 @@ var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
181
429
  var CORE_KEYS = ["chunkTimeout", "compaction", "fetch", "headerTimeout", "timeout", "transport"];
182
430
  var PROVIDER_ONLY_KEYS = ["chunkTimeout", "headerTimeout", "timeout", "transport"];
183
431
  function nativeSettings2(settings) {
184
- return Struct.omit(settings, CORE_KEYS);
432
+ return Struct2.omit(settings, CORE_KEYS);
185
433
  }
186
434
  function modelSettings2(settings) {
187
- return settings && Struct.omit(settings, PROVIDER_ONLY_KEYS);
435
+ return settings && Struct2.omit(settings, PROVIDER_ONLY_KEYS);
188
436
  }
189
- var decodeTimeout = Schema.decodeUnknownOption(HttpTimeout);
437
+ var decodeTimeout = Schema2.decodeUnknownOption(HttpTimeout);
190
438
  var DEFAULT_TIMEOUT_MS3 = 300000;
191
439
  function timeout2(value) {
192
- return Option.getOrUndefined(decodeTimeout(value));
440
+ return Option2.getOrUndefined(decodeTimeout(value));
193
441
  }
194
442
  function timeouts2(settings) {
195
443
  return {
@@ -227,9 +475,9 @@ var Request3 = Provider.Request;
227
475
  var Compaction3 = Provider.Compaction;
228
476
  var Transport2 = Provider.Transport;
229
477
  var Settings2 = Provider.Settings;
230
- var Info27 = Provider.Info;
478
+ var Info26 = Provider.Info;
231
479
 
232
- class Service76 extends Context.Service()("@opencode/Provider") {
480
+ class Service69 extends Context.Service()("@opencode/Provider") {
233
481
  }
234
482
  var definitions = new WeakMap;
235
483
  function index(providerID, models) {
@@ -242,9 +490,9 @@ function index(providerID, models) {
242
490
  definitions.set(models, indexes);
243
491
  return result;
244
492
  }
245
- var layer = Layer.effect(Service76, Effect.gen(function* () {
246
- const bus = yield* Service82;
247
- const integrations = yield* Service77;
493
+ var layer = Layer.effect(Service69, Effect2.gen(function* () {
494
+ const bus = yield* Service83;
495
+ const integrations = yield* Service72;
248
496
  const location = yield* Service80;
249
497
  const state = create3({
250
498
  name: "provider",
@@ -256,7 +504,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
256
504
  const current = records.get(id);
257
505
  if (current)
258
506
  return current;
259
- const added = { provider: Info27.empty(id), models: new Map };
507
+ const added = { provider: Info26.empty(id), models: new Map };
260
508
  records.set(id, added);
261
509
  maps.add(added.models);
262
510
  return added;
@@ -324,9 +572,9 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
324
572
  },
325
573
  notify: () => notify
326
574
  });
327
- yield* Effect.addFinalizer(() => shutdown2(state.reload()));
575
+ yield* Effect2.addFinalizer(() => shutdown2(state.reload()));
328
576
  let cached;
329
- const snapshot = Effect.fn("Provider.snapshot")(function* () {
577
+ const snapshot = Effect2.fn("Provider.snapshot")(function* () {
330
578
  while (true) {
331
579
  const revision = integrations.revision();
332
580
  const records = state.get();
@@ -337,7 +585,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
337
585
  const available = Array.from(records.values()).filter((record) => {
338
586
  if (record.provider.activation === "disabled")
339
587
  return false;
340
- const integration = byID.get(record.provider.integrationID ?? ID14.make(record.provider.id));
588
+ const integration = byID.get(record.provider.integrationID ?? ID13.make(record.provider.id));
341
589
  if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
342
590
  return false;
343
591
  if (record.provider.activation === "enabled")
@@ -354,7 +602,7 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
354
602
  }
355
603
  });
356
604
  let published;
357
- const notify = Effect.gen(function* () {
605
+ const notify = Effect2.gen(function* () {
358
606
  const value = yield* snapshot();
359
607
  if (value === published)
360
608
  return;
@@ -363,19 +611,19 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
363
611
  location: { directory: location.directory, workspaceID: location.workspaceID }
364
612
  });
365
613
  });
366
- yield* bus.subscribe([Event18.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
367
- return Service76.of({
614
+ yield* bus.subscribe([Event17.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect2.forkScoped({ startImmediately: true }));
615
+ return Service69.of({
368
616
  transform: state.transform,
369
617
  reload: state.reload,
370
- get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
371
- all: Effect.fn("Provider.all")(() => Effect.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
372
- available: Effect.fn("Provider.available")(() => snapshot().pipe(Effect.map((value) => value.providers))),
618
+ get: Effect2.fn("Provider.get")((id) => Effect2.sync(() => freeze(state.get().get(id)?.provider, true))),
619
+ all: Effect2.fn("Provider.all")(() => Effect2.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
620
+ available: Effect2.fn("Provider.available")(() => snapshot().pipe(Effect2.map((value) => value.providers))),
373
621
  snapshot
374
622
  });
375
623
  }));
376
- var node80 = makeLocationNode({ service: Service76, layer, deps: [node86, node81, node84] });
377
- var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
378
- const module = yield* Effect.tryPromise({
624
+ var node72 = makeLocationNode({ service: Service69, layer, deps: [node87, node75, node84] });
625
+ var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
626
+ const module = yield* Effect2.tryPromise({
379
627
  try: () => {
380
628
  const existing = packages.get(entrypoint);
381
629
  if (existing)
@@ -395,252 +643,4 @@ var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, en
395
643
  return module;
396
644
  });
397
645
 
398
- // src/aisdk-native.ts
399
- function rewrite2(target, input) {
400
- if (input.specifier === undefined)
401
- return;
402
- const plain = resolve(input.specifier, input);
403
- if (!plain)
404
- return;
405
- const settings = decode(target.settings ?? {});
406
- const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
407
- const translated = options(replacement, input.modelID, settings);
408
- if (target.package !== undefined || replacement !== input.specifier)
409
- target.package = replacement;
410
- target.settings = target.settings === undefined ? undefined : {
411
- ...translated.settings,
412
- ...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
413
- };
414
- target.headers = mergeHeaders2(translated.headers, target.headers);
415
- target.body = mergeOverlay2(translated.body, target.body);
416
- target.variants = target.variants?.map((variant) => {
417
- const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
418
- const headers = mergeHeaders2(overlay.headers, variant.headers);
419
- const body = mergeOverlay2(overlay.body, variant.body);
420
- return {
421
- id: variant.id,
422
- ...variant.settings === undefined ? {} : { settings: overlay.settings },
423
- ...headers === undefined ? {} : { headers },
424
- ...body === undefined ? {} : { body }
425
- };
426
- });
427
- }
428
- var PACKAGES = {
429
- "@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
430
- "@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
431
- "@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
432
- "@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
433
- "@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
434
- "@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
435
- "@ai-sdk/google": "@opencode/ai/providers/google",
436
- "@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
437
- "@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
438
- "@ai-sdk/groq": "@opencode/ai/providers/groq",
439
- "@ai-sdk/mistral": "@opencode/ai/providers/mistral",
440
- "@ai-sdk/openai": "@opencode/ai/providers/openai",
441
- "@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
442
- "@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
443
- "@ai-sdk/xai": "@opencode/ai/providers/xai",
444
- "@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
445
- "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
446
- };
447
- var protocols = (name) => ({
448
- "@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
449
- "@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
450
- "@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
451
- });
452
- var HOSTS = {
453
- alibaba: protocols("alibaba"),
454
- "alibaba-cn": protocols("alibaba"),
455
- "alibaba-coding-plan": protocols("alibaba"),
456
- "alibaba-coding-plan-cn": protocols("alibaba"),
457
- "alibaba-token-plan": protocols("alibaba"),
458
- "alibaba-token-plan-cn": protocols("alibaba"),
459
- baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
460
- "cloudflare-ai-gateway": {
461
- "@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
462
- "@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
463
- "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
464
- "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
465
- },
466
- "cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
467
- deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
468
- digitalocean: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/digitalocean" },
469
- "fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
470
- "google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
471
- "kimi-for-coding": protocols("moonshot"),
472
- meta: protocols("meta"),
473
- minimax: protocols("minimax"),
474
- "minimax-cn": protocols("minimax"),
475
- "minimax-coding-plan": protocols("minimax"),
476
- "minimax-cn-coding-plan": protocols("minimax"),
477
- moonshotai: protocols("moonshot"),
478
- "moonshotai-cn": protocols("moonshot"),
479
- zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
480
- "zai-coding-plan": protocols("zai-coding-plan"),
481
- zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
482
- "zhipuai-coding-plan": protocols("zai-coding-plan")
483
- };
484
- var NATIVE = new Set([
485
- ...Object.values(PACKAGES),
486
- ...Object.values(HOSTS).flatMap((host) => Object.values(host)),
487
- "@opencode/ai/providers/azure/chat",
488
- "@opencode/ai/providers/amazon-bedrock/mantle",
489
- "@opencode/ai/providers/amazon-bedrock/mantle/chat",
490
- "@opencode/ai/providers/amazon-bedrock/mantle/responses"
491
- ]);
492
- function native2(npm, context) {
493
- const host = HOSTS[context.providerID]?.[npm];
494
- if (host)
495
- return host;
496
- if (npm === "@ai-sdk/amazon-bedrock/mantle")
497
- return mantle(context.modelID);
498
- if (npm === "@ai-sdk/azure" && context.settings?.useCompletionUrls === true)
499
- return "@opencode/ai/providers/azure/chat";
500
- return PACKAGES[npm];
501
- }
502
- var mantle = (modelID) => {
503
- if (modelID === undefined)
504
- return "@opencode/ai/providers/amazon-bedrock/mantle";
505
- return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
506
- };
507
- function resolve(specifier, context) {
508
- const npm = packageName2(specifier);
509
- if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
510
- return native2(npm, context);
511
- if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
512
- return mantle(context.modelID);
513
- if (npm === "@opencode/ai/providers/azure/responses" && context.settings?.useCompletionUrls === true)
514
- return "@opencode/ai/providers/azure/chat";
515
- return NATIVE.has(npm) ? npm : undefined;
516
- }
517
- function options(replacement, modelID, settings) {
518
- const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
519
- const kept = Struct2.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
520
- const thinking = converse ? bedrockThinking(modelID, settings) : undefined;
521
- return {
522
- settings: {
523
- ...replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
524
- ...thinking === undefined ? {} : { thinking }
525
- },
526
- ...settings.headers === undefined ? {} : { headers: settings.headers },
527
- ...settings.extraBody === undefined ? {} : { body: settings.extraBody },
528
- ...converse ? bedrockRequest(modelID, settings) : {},
529
- ...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
530
- };
531
- }
532
- var BEDROCK_KEYS = [
533
- "bearerToken",
534
- "endpoint",
535
- "credentials",
536
- "credentialProvider",
537
- "accessKeyId",
538
- "secretAccessKey",
539
- "sessionToken"
540
- ];
541
- var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
542
- function bedrockSettings(settings, converse) {
543
- const region = settings.region ?? settings.credentials?.region;
544
- const credentials = settings.credentials ?? settings;
545
- const baseURL = settings.baseURL ?? settings.endpoint;
546
- return {
547
- ...Struct2.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
548
- ...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
549
- ...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
550
- ...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
551
- credentials: {
552
- ...region === undefined ? {} : { region },
553
- accessKeyId: credentials.accessKeyId,
554
- secretAccessKey: credentials.secretAccessKey,
555
- ...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
556
- }
557
- }
558
- };
559
- }
560
- function bedrockThinking(modelID, settings) {
561
- const reasoning = settings.reasoningConfig;
562
- if (!modelID?.includes("anthropic") || reasoning?.type !== "enabled" || reasoning.budgetTokens === undefined)
563
- return;
564
- return { type: "enabled", budgetTokens: reasoning.budgetTokens };
565
- }
566
- function bedrockRequest(modelID, settings) {
567
- const additional = settings.additionalModelRequestFields ?? {};
568
- const reasoning = settings.reasoningConfig;
569
- const anthropic = modelID?.includes("anthropic") ?? false;
570
- const openai = modelID?.includes("openai.") ?? false;
571
- const harmony = modelID?.includes("openai.gpt-oss") ?? false;
572
- const effort = reasoning?.maxReasoningEffort;
573
- const type = reasoning?.type;
574
- const budget = reasoning?.budgetTokens;
575
- const display = reasoning?.display;
576
- const betas = settings.anthropicBeta ?? [];
577
- const fields = mergeOverlay2(additional, {
578
- ...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
579
- ...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
580
- ...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
581
- ...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
582
- ...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
583
- ...!anthropic && !openai && effort !== undefined ? {
584
- reasoningConfig: {
585
- ...type === undefined || type === "adaptive" ? {} : { type },
586
- ...budget === undefined ? {} : { budgetTokens: budget },
587
- maxReasoningEffort: effort
588
- }
589
- } : {}
590
- });
591
- const body = {
592
- ...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
593
- ...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
594
- };
595
- return Object.keys(body).length === 0 ? {} : { body };
596
- }
597
- var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
598
- function openRouterRequest(settings) {
599
- const headers = mergeHeaders2({
600
- ...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
601
- ...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
602
- ...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
603
- }, settings.headers) ?? {};
604
- return Object.keys(headers).length === 0 ? {} : { headers };
605
- }
606
- var lenient = (schema) => Schema2.optional(Schema2.UndefinedOr(schema).pipe(Schema2.catchDecoding(() => Effect2.succeed(Option2.some(undefined)))));
607
- var Credentials = Schema2.Struct({
608
- accessKeyId: Schema2.String,
609
- secretAccessKey: Schema2.String,
610
- sessionToken: lenient(Schema2.String),
611
- region: lenient(Schema2.String)
612
- });
613
- var Legacy = Schema2.StructWithRest(Schema2.Struct({
614
- apiKey: lenient(Schema2.String),
615
- baseURL: lenient(Schema2.String),
616
- headers: lenient(Schema2.Record(Schema2.String, Schema2.String)),
617
- extraBody: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
618
- useCompletionUrls: lenient(Schema2.Boolean),
619
- auth: lenient(Schema2.Literals(["bearer", "sigv4"])),
620
- bearerToken: lenient(Schema2.String),
621
- endpoint: lenient(Schema2.String),
622
- region: lenient(Schema2.String),
623
- credentials: lenient(Credentials),
624
- accessKeyId: lenient(Schema2.String),
625
- secretAccessKey: lenient(Schema2.String),
626
- sessionToken: lenient(Schema2.String),
627
- anthropicBeta: lenient(Schema2.Array(Schema2.String)),
628
- serviceTier: lenient(Schema2.String),
629
- reasoningConfig: lenient(Schema2.Struct({
630
- type: lenient(Schema2.String),
631
- display: lenient(Schema2.String),
632
- maxReasoningEffort: lenient(Schema2.String),
633
- budgetTokens: lenient(Schema2.Number)
634
- })),
635
- additionalModelRequestFields: lenient(Schema2.StructWithRest(Schema2.Struct({
636
- anthropic_beta: lenient(Schema2.Array(Schema2.String)),
637
- output_config: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
638
- reasoning: lenient(Schema2.Record(Schema2.String, Schema2.Unknown))
639
- }), [Schema2.Record(Schema2.String, Schema2.Unknown)])),
640
- appName: lenient(Schema2.String),
641
- appUrl: lenient(Schema2.String),
642
- api_keys: lenient(Schema2.Record(Schema2.String, Schema2.String))
643
- }), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
644
- var decode = Schema2.decodeUnknownSync(Legacy);
645
-
646
- export { rewrite2, native2, exports_aisdk_native, ID13, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, timeout2, timeouts2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info27, Service76, node80, exports_provider3, Event17 };
646
+ export { ID12, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, timeout2, timeouts2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info26, Service69, node72, exports_provider3, Event16, rewrite2, native2, exports_aisdk_native };