@opencode/core 2.0.3 → 2.0.5

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 (861) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +82 -82
  3. package/dist/aisdk-native.js +92 -4
  4. package/dist/aisdk.js +93 -6
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +72 -72
  7. package/dist/chunks/{mime-rqcbxq1a.js → instruction-discovery-029er0hp.js} +6 -6
  8. package/dist/chunks/{mime-g7nm1tr2.js → instruction-discovery-0a3qk1rf.js} +26 -26
  9. package/dist/chunks/{mime-n6wnmytb.js → instruction-discovery-0a90bcv0.js} +8 -8
  10. package/dist/chunks/{mime-1h4ppwsj.js → instruction-discovery-0e92bpf8.js} +11 -11
  11. package/dist/chunks/{mime-0paq2nw3.js → instruction-discovery-0paq2nw3.js} +1 -1
  12. package/dist/chunks/{mime-0q0f95c6.js → instruction-discovery-0q0f95c6.js} +1 -1
  13. package/dist/chunks/{mime-7rntk513.js → instruction-discovery-0r7xxs81.js} +28 -22
  14. package/dist/chunks/{mime-0xcwyxas.js → instruction-discovery-0yy4b7d0.js} +30 -30
  15. package/dist/chunks/{mime-05gwmh6x.js → instruction-discovery-1829bv76.js} +19 -11
  16. package/dist/chunks/{mime-0gc96ev3.js → instruction-discovery-18steed6.js} +19 -20
  17. package/dist/chunks/{mime-gqrjg9m0.js → instruction-discovery-19w9qk9n.js} +28 -3
  18. package/dist/chunks/{mime-jvw2nnm0.js → instruction-discovery-1az6fcmj.js} +11 -11
  19. package/dist/chunks/{mime-h7v0c4h9.js → instruction-discovery-1c2y5bma.js} +11 -11
  20. package/dist/chunks/{mime-1dazxqgg.js → instruction-discovery-1dazxqgg.js} +2 -2
  21. package/dist/chunks/{mime-3mp8pt0x.js → instruction-discovery-1mr1eyme.js} +12 -12
  22. package/dist/chunks/{mime-26m96hf0.js → instruction-discovery-1nm9pcrp.js} +25 -25
  23. package/dist/chunks/instruction-discovery-1r7c63ym.js +36 -0
  24. package/dist/chunks/{mime-t1xxg50c.js → instruction-discovery-1sj4msk3.js} +13 -13
  25. package/dist/chunks/{mime-hkjvptd8.js → instruction-discovery-1z146pd3.js} +19 -19
  26. package/dist/chunks/{mime-8ryk0bb9.js → instruction-discovery-207ajt2h.js} +5 -5
  27. package/dist/chunks/{mime-21r38tys.js → instruction-discovery-21r38tys.js} +1 -1
  28. package/dist/chunks/{mime-xmvnw2y2.js → instruction-discovery-23wpwp1k.js} +6 -6
  29. package/dist/chunks/{mime-b2vqmjat.js → instruction-discovery-24dcb14g.js} +4 -11
  30. package/dist/chunks/{mime-8fjx57rb.js → instruction-discovery-24p6mxem.js} +15 -15
  31. package/dist/chunks/{mime-5psmcwnn.js → instruction-discovery-26zmf1pq.js} +20 -20
  32. package/dist/chunks/{mime-2a5m3afh.js → instruction-discovery-2a5m3afh.js} +1 -1
  33. package/dist/chunks/{mime-gnq13918.js → instruction-discovery-2j4ac2f1.js} +11 -11
  34. package/dist/chunks/{mime-xcggh081.js → instruction-discovery-2jh18hkm.js} +5 -5
  35. package/dist/chunks/{mime-rk0rec3h.js → instruction-discovery-2w6fc0zt.js} +9 -9
  36. package/dist/chunks/{mime-b8cmw211.js → instruction-discovery-32nwpadc.js} +11 -11
  37. package/dist/chunks/{mime-tnf45s15.js → instruction-discovery-338yd3q8.js} +5 -5
  38. package/dist/chunks/{mime-nxrdkmqf.js → instruction-discovery-33msecec.js} +30 -30
  39. package/dist/chunks/{mime-1ygqh575.js → instruction-discovery-33w4ejhs.js} +6 -6
  40. package/dist/chunks/{mime-9xrpzr2m.js → instruction-discovery-36m7pkzw.js} +8 -8
  41. package/dist/chunks/{mime-9k690w47.js → instruction-discovery-378zzhja.js} +31 -31
  42. package/dist/chunks/{mime-0mtmygp7.js → instruction-discovery-3bnvp3y0.js} +12 -12
  43. package/dist/chunks/{mime-4ey0fprp.js → instruction-discovery-3c8gbk9s.js} +32 -31
  44. package/dist/chunks/{mime-3fc6dm20.js → instruction-discovery-3fc6dm20.js} +1 -1
  45. package/dist/chunks/{mime-3hepkmqq.js → instruction-discovery-3hepkmqq.js} +1 -1
  46. package/dist/chunks/instruction-discovery-3nwqm4xm.js +63 -0
  47. package/dist/chunks/{mime-3smtnn6g.js → instruction-discovery-3smtnn6g.js} +1 -1
  48. package/dist/chunks/{mime-3tvqynh2.js → instruction-discovery-3tvqynh2.js} +1 -1
  49. package/dist/chunks/{mime-esaayfhr.js → instruction-discovery-3vhfgt92.js} +12 -12
  50. package/dist/chunks/{mime-caw866h7.js → instruction-discovery-3zj26zxs.js} +18 -15
  51. package/dist/chunks/{mime-y1hy1c31.js → instruction-discovery-444wcx0m.js} +36 -36
  52. package/dist/chunks/instruction-discovery-44h5tttr.js +24 -0
  53. package/dist/chunks/{mime-9zqg8qpq.js → instruction-discovery-45zz8fdq.js} +5 -5
  54. package/dist/chunks/{mime-rpqc7xtd.js → instruction-discovery-466w7y98.js} +17 -17
  55. package/dist/chunks/{mime-3es18rb9.js → instruction-discovery-48pbfrvk.js} +9 -9
  56. package/dist/chunks/{mime-k12bwzmm.js → instruction-discovery-4edzycq9.js} +97 -96
  57. package/dist/chunks/{mime-hf6kd63r.js → instruction-discovery-4jdqb6vt.js} +22 -22
  58. package/dist/chunks/{mime-2vr1hr03.js → instruction-discovery-4jq0495n.js} +17 -17
  59. package/dist/chunks/{mime-56yeekyc.js → instruction-discovery-4jww6vkh.js} +21 -20
  60. package/dist/chunks/{mime-ak7sjf8k.js → instruction-discovery-4kvj1wzz.js} +12 -12
  61. package/dist/chunks/{mime-depwzj9d.js → instruction-discovery-4nj4bn9q.js} +9 -9
  62. package/dist/chunks/instruction-discovery-4v7qdvcn.js +18 -0
  63. package/dist/chunks/{mime-js4jadbf.js → instruction-discovery-56w11rj3.js} +4 -4
  64. package/dist/chunks/instruction-discovery-58ka6e3j.js +610 -0
  65. package/dist/chunks/{mime-cx2dw8ng.js → instruction-discovery-5a7yz907.js} +7 -7
  66. package/dist/chunks/{mime-5daktx2q.js → instruction-discovery-5daktx2q.js} +1 -1
  67. package/dist/chunks/{mime-5hf3fyzy.js → instruction-discovery-5p6pg4tj.js} +17 -17
  68. package/dist/chunks/{mime-j935v87r.js → instruction-discovery-5qd3pb7m.js} +2 -2
  69. package/dist/chunks/{mime-b315ag2q.js → instruction-discovery-5rtcdtd1.js} +36 -30
  70. package/dist/chunks/{mime-ex105f0g.js → instruction-discovery-5rz2hsq0.js} +7 -7
  71. package/dist/chunks/{mime-5t3nmthw.js → instruction-discovery-5t3nmthw.js} +2 -2
  72. package/dist/chunks/{mime-8mfdap3f.js → instruction-discovery-64s65d1n.js} +8 -8
  73. package/dist/chunks/{mime-669tq793.js → instruction-discovery-669tq793.js} +1 -1
  74. package/dist/chunks/{mime-q4w5h7cm.js → instruction-discovery-6a9734zn.js} +28 -28
  75. package/dist/chunks/{mime-1drzz6a4.js → instruction-discovery-6bp9km5f.js} +9 -15
  76. package/dist/chunks/instruction-discovery-6cqkcgv0.js +478 -0
  77. package/dist/chunks/{mime-2402vzrj.js → instruction-discovery-6h73sxmp.js} +5 -5
  78. package/dist/chunks/{mime-6msgmcgs.js → instruction-discovery-6msgmcgs.js} +1 -1
  79. package/dist/chunks/{mime-1bbkgx8g.js → instruction-discovery-73tb2d7t.js} +3 -3
  80. package/dist/chunks/{mime-fap8rsc6.js → instruction-discovery-77m2hw5c.js} +39 -36
  81. package/dist/chunks/{mime-xnxgv7d0.js → instruction-discovery-78hbjvp7.js} +24 -24
  82. package/dist/chunks/{mime-8kdf3zjj.js → instruction-discovery-78rb030m.js} +37 -37
  83. package/dist/chunks/{mime-c78bbtc9.js → instruction-discovery-78v47nsk.js} +5 -5
  84. package/dist/chunks/instruction-discovery-7aagt1ep.js +247 -0
  85. package/dist/chunks/{mime-7bmhse3q.js → instruction-discovery-7bmhse3q.js} +1 -1
  86. package/dist/chunks/{mime-q6sszjbn.js → instruction-discovery-7j3fq2cw.js} +9 -9
  87. package/dist/chunks/{mime-3wjgak91.js → instruction-discovery-7kvy0jtg.js} +16 -16
  88. package/dist/chunks/{mime-bccb6npm.js → instruction-discovery-81czwxpn.js} +4 -4
  89. package/dist/chunks/{mime-bawj3v5d.js → instruction-discovery-88dkmhka.js} +17 -17
  90. package/dist/chunks/{mime-77hmfzz5.js → instruction-discovery-88z92y6j.js} +43 -43
  91. package/dist/chunks/{mime-34f33jfe.js → instruction-discovery-8actpy02.js} +14 -14
  92. package/dist/chunks/{mime-8d7r5vzw.js → instruction-discovery-8d7r5vzw.js} +1 -1
  93. package/dist/chunks/{mime-gqrsst1j.js → instruction-discovery-8hdgcmvp.js} +24 -27
  94. package/dist/chunks/{mime-8p4f9s12.js → instruction-discovery-8p4f9s12.js} +2 -2
  95. package/dist/chunks/{mime-rvw86qrh.js → instruction-discovery-92f49rtq.js} +27 -24
  96. package/dist/chunks/{mime-3k5rp9zq.js → instruction-discovery-9g3d7f2z.js} +23 -23
  97. package/dist/chunks/{mime-3ax7whkq.js → instruction-discovery-9hjja45j.js} +13 -13
  98. package/dist/chunks/{mime-cmwkp3r5.js → instruction-discovery-9hn6k4tm.js} +8 -8
  99. package/dist/chunks/{mime-9e5xqeqt.js → instruction-discovery-9kyabea7.js} +11 -11
  100. package/dist/chunks/{mime-pe4b2cf4.js → instruction-discovery-9n0dsy51.js} +236 -218
  101. package/dist/chunks/{mime-s74jw2kt.js → instruction-discovery-9pv03zpw.js} +82 -45
  102. package/dist/chunks/{mime-hxnftcv1.js → instruction-discovery-9rkevmgk.js} +35 -33
  103. package/dist/chunks/{mime-771dt0vh.js → instruction-discovery-9v8385ms.js} +5 -5
  104. package/dist/chunks/{mime-crfhge7d.js → instruction-discovery-9y32njdq.js} +64 -43
  105. package/dist/chunks/{mime-a1bz86dw.js → instruction-discovery-a1bz86dw.js} +3 -3
  106. package/dist/chunks/{mime-8z221vkh.js → instruction-discovery-a87mck0n.js} +20 -20
  107. package/dist/chunks/{mime-xdk9p2qn.js → instruction-discovery-a8bn8zg0.js} +21 -21
  108. package/dist/chunks/{mime-aaet6srn.js → instruction-discovery-aaet6srn.js} +2 -2
  109. package/dist/chunks/{mime-z3af23pk.js → instruction-discovery-ab258zec.js} +22 -22
  110. package/dist/chunks/{mime-gmw5hd0s.js → instruction-discovery-aebc7qpb.js} +61 -54
  111. package/dist/chunks/{mime-3zf9b344.js → instruction-discovery-ak3nc98z.js} +4 -4
  112. package/dist/chunks/instruction-discovery-ampvn4qt.js +500 -0
  113. package/dist/chunks/{mime-9pm6y0s1.js → instruction-discovery-aq5y8b9e.js} +9 -9
  114. package/dist/chunks/{mime-g6878fex.js → instruction-discovery-ay615zsc.js} +18 -18
  115. package/dist/chunks/{mime-hdrc7pzh.js → instruction-discovery-b1746fgd.js} +27 -27
  116. package/dist/chunks/{mime-3ac6cy74.js → instruction-discovery-b3y784v2.js} +23 -23
  117. package/dist/chunks/{mime-b6gygkdw.js → instruction-discovery-b6gygkdw.js} +2 -2
  118. package/dist/chunks/{mime-2magtmd2.js → instruction-discovery-c6nzkrcz.js} +4 -4
  119. package/dist/chunks/{mime-jq13afhk.js → instruction-discovery-cbgr23ns.js} +10 -10
  120. package/dist/chunks/{mime-s957sxhe.js → instruction-discovery-cckk8bsw.js} +28 -28
  121. package/dist/chunks/{mime-cfpkc3c9.js → instruction-discovery-cfpkc3c9.js} +2 -2
  122. package/dist/chunks/{mime-07jv6yz6.js → instruction-discovery-cksv5s6r.js} +31 -28
  123. package/dist/chunks/{mime-2419kjk7.js → instruction-discovery-cpaj0n15.js} +9 -9
  124. package/dist/chunks/{mime-3xz6hyac.js → instruction-discovery-cvnk88jx.js} +24 -24
  125. package/dist/chunks/{mime-7assmfkm.js → instruction-discovery-d7930f8j.js} +14 -14
  126. package/dist/chunks/{mime-66v7x5gy.js → instruction-discovery-dcjwzqtv.js} +35 -35
  127. package/dist/chunks/{mime-mr645x8e.js → instruction-discovery-df9eyrmy.js} +18 -15
  128. package/dist/chunks/{mime-a5gt7g2r.js → instruction-discovery-djszqvmq.js} +9 -9
  129. package/dist/chunks/{mime-y71avatq.js → instruction-discovery-dpkg50ah.js} +4 -4
  130. package/dist/chunks/{mime-nhy5jxhy.js → instruction-discovery-drwq78ky.js} +2 -2
  131. package/dist/chunks/{mime-w3mesfdc.js → instruction-discovery-dw8937wj.js} +11 -11
  132. package/dist/chunks/{mime-teqxmgy8.js → instruction-discovery-dwd00071.js} +20 -20
  133. package/dist/chunks/{mime-dg5bcj4q.js → instruction-discovery-dwvzh0g2.js} +4 -4
  134. package/dist/chunks/{mime-ga6hqhxm.js → instruction-discovery-e17z8zpc.js} +9 -9
  135. package/dist/chunks/{mime-348n1k1m.js → instruction-discovery-e4nq6v23.js} +5 -5
  136. package/dist/chunks/{mime-raczhzft.js → instruction-discovery-eebc2rt6.js} +23 -23
  137. package/dist/chunks/instruction-discovery-ef5x83kb.js +15 -0
  138. package/dist/chunks/{mime-wwr0k6jb.js → instruction-discovery-em05np38.js} +8 -8
  139. package/dist/chunks/instruction-discovery-emkjygpb.js +66 -0
  140. package/dist/chunks/instruction-discovery-emzgf0hj.js +38 -0
  141. package/dist/chunks/{mime-hnr5yq9h.js → instruction-discovery-eq23s0y6.js} +5 -5
  142. package/dist/chunks/{mime-wzfbm1pf.js → instruction-discovery-etcptmad.js} +23 -23
  143. package/dist/chunks/{mime-etq0c3wd.js → instruction-discovery-etq0c3wd.js} +1 -1
  144. package/dist/chunks/{mime-vz9r8jjr.js → instruction-discovery-f2kqmm63.js} +11 -11
  145. package/dist/chunks/{mime-ggch0ev5.js → instruction-discovery-f7n6j563.js} +11 -11
  146. package/dist/chunks/{mime-f828m53h.js → instruction-discovery-f828m53h.js} +2 -2
  147. package/dist/chunks/{mime-27cjkq2h.js → instruction-discovery-fbaqdnvp.js} +25 -25
  148. package/dist/chunks/{mime-5gzmb6dp.js → instruction-discovery-fqww2hbw.js} +36 -32
  149. package/dist/chunks/{mime-ar6rwxgq.js → instruction-discovery-fw3v8b4w.js} +14 -14
  150. package/dist/chunks/{mime-fxbjtjnd.js → instruction-discovery-fxbjtjnd.js} +1 -1
  151. package/dist/chunks/{mime-wgqr0wr2.js → instruction-discovery-g35x6qc6.js} +15 -15
  152. package/dist/chunks/{mime-2ff821eq.js → instruction-discovery-g479j9dz.js} +8 -8
  153. package/dist/chunks/{mime-rme0s8je.js → instruction-discovery-g8tp2ddb.js} +104 -104
  154. package/dist/chunks/{mime-jwttd70a.js → instruction-discovery-g9cpt5ca.js} +30 -30
  155. package/dist/chunks/{mime-02a7j1yb.js → instruction-discovery-gbt6w4kb.js} +8 -8
  156. package/dist/chunks/{mime-gd4qta3r.js → instruction-discovery-gd4qta3r.js} +1 -1
  157. package/dist/chunks/{mime-nxa5rjjz.js → instruction-discovery-gm9abxbg.js} +12 -12
  158. package/dist/chunks/{mime-y6r7tp3a.js → instruction-discovery-gq5rp1wh.js} +6 -6
  159. package/dist/chunks/{mime-v5bprabd.js → instruction-discovery-gqt4q109.js} +29 -29
  160. package/dist/chunks/{mime-th5km1p3.js → instruction-discovery-gv6a8nnw.js} +5 -5
  161. package/dist/chunks/{mime-z159gw3g.js → instruction-discovery-gwm2cjfp.js} +20 -20
  162. package/dist/chunks/{mime-h03wrkyp.js → instruction-discovery-h03wrkyp.js} +2 -2
  163. package/dist/chunks/{mime-6q31zrbr.js → instruction-discovery-h2vfddx5.js} +70 -99
  164. package/dist/chunks/{mime-h6vf3j39.js → instruction-discovery-h6vf3j39.js} +1 -1
  165. package/dist/chunks/{mime-q2fb3trg.js → instruction-discovery-h7dw0jnp.js} +55 -65
  166. package/dist/chunks/{mime-fce3k32g.js → instruction-discovery-h9vg4cc6.js} +27 -27
  167. package/dist/chunks/{mime-nzwzy72p.js → instruction-discovery-hes1j7ga.js} +9 -9
  168. package/dist/chunks/{mime-ex0mzm10.js → instruction-discovery-hj4jgbr8.js} +6 -6
  169. package/dist/chunks/{mime-s2azsgc2.js → instruction-discovery-hnpkfvtv.js} +47 -47
  170. package/dist/chunks/{mime-qfzde7bh.js → instruction-discovery-hq8zt1th.js} +6 -6
  171. package/dist/chunks/{mime-bb4ztexx.js → instruction-discovery-hzzav9z2.js} +14 -14
  172. package/dist/chunks/{mime-j56e64zr.js → instruction-discovery-j56e64zr.js} +1 -1
  173. package/dist/chunks/instruction-discovery-j5rxtxht.js +38 -0
  174. package/dist/chunks/{mime-3bca72pz.js → instruction-discovery-jcehjjw3.js} +4 -4
  175. package/dist/chunks/{mime-z2gbnfa5.js → instruction-discovery-jg7s3n8r.js} +12 -12
  176. package/dist/chunks/{mime-r27v71mw.js → instruction-discovery-jgf81bvk.js} +73 -73
  177. package/dist/chunks/{mime-79w795fr.js → instruction-discovery-jjkms2e6.js} +4 -11
  178. package/dist/chunks/{mime-jg33m14x.js → instruction-discovery-jk6a9ave.js} +48 -49
  179. package/dist/chunks/{mime-xvssc1kt.js → instruction-discovery-jyfph6m6.js} +26 -19
  180. package/dist/chunks/{mime-0x7565bv.js → instruction-discovery-k14vmcg0.js} +10 -10
  181. package/dist/chunks/{mime-e5nv3ght.js → instruction-discovery-k3gnzxs0.js} +6 -6
  182. package/dist/chunks/instruction-discovery-k6rzxkd3.js +76 -0
  183. package/dist/chunks/{mime-j0xvhg4t.js → instruction-discovery-k9w3fgz4.js} +26 -26
  184. package/dist/chunks/{mime-eraanh1f.js → instruction-discovery-knb7evpn.js} +5 -5
  185. package/dist/chunks/{mime-cvt7tjwh.js → instruction-discovery-kqjw8gv6.js} +63 -340
  186. package/dist/chunks/{mime-pcedqjxk.js → instruction-discovery-krxgz8mr.js} +31 -31
  187. package/dist/chunks/instruction-discovery-m3fdjcah.js +46 -0
  188. package/dist/chunks/{mime-4w46mhc5.js → instruction-discovery-m4cf4vvt.js} +17 -17
  189. package/dist/chunks/{mime-kghzffp5.js → instruction-discovery-m837a38g.js} +36 -35
  190. package/dist/chunks/{mime-zxh2e4w2.js → instruction-discovery-m8pwhfnp.js} +45 -45
  191. package/dist/chunks/{mime-m9w0rfyh.js → instruction-discovery-m9w0rfyh.js} +1 -1
  192. package/dist/chunks/{mime-bst9cd68.js → instruction-discovery-mbrtjw0c.js} +6 -9
  193. package/dist/chunks/{mime-6ean1s1z.js → instruction-discovery-mjqn40ac.js} +13 -13
  194. package/dist/chunks/{mime-xxynqx5z.js → instruction-discovery-mn7hgmyj.js} +3 -3
  195. package/dist/chunks/instruction-discovery-mqvgb463.js +26 -0
  196. package/dist/chunks/{mime-0gr7cw0d.js → instruction-discovery-mqy0jkn2.js} +4 -4
  197. package/dist/chunks/{mime-1khmrxma.js → instruction-discovery-mx7b5mce.js} +46 -43
  198. package/dist/chunks/{mime-yk45fjth.js → instruction-discovery-n0tdmknn.js} +9 -9
  199. package/dist/chunks/{mime-0e70zyzp.js → instruction-discovery-n1xefwxf.js} +30 -22
  200. package/dist/chunks/{mime-n0ta87th.js → instruction-discovery-n81wkjqj.js} +3 -3
  201. package/dist/chunks/instruction-discovery-n9bg66xr.js +237 -0
  202. package/dist/chunks/{mime-n9pgkqx1.js → instruction-discovery-nn3w8ya3.js} +11 -11
  203. package/dist/chunks/{mime-pnv527nz.js → instruction-discovery-nscznvay.js} +9 -9
  204. package/dist/chunks/{mime-r9mregkx.js → instruction-discovery-nzks3jc8.js} +44 -27
  205. package/dist/chunks/{mime-yt0fqk68.js → instruction-discovery-p44d8wdy.js} +5 -5
  206. package/dist/chunks/{mime-zch57v4g.js → instruction-discovery-p6hhdbp1.js} +13 -10
  207. package/dist/chunks/{mime-pjvnvgmy.js → instruction-discovery-pjvnvgmy.js} +1 -1
  208. package/dist/chunks/{mime-pknna89w.js → instruction-discovery-pknna89w.js} +1 -1
  209. package/dist/chunks/{mime-vbedh2fb.js → instruction-discovery-pyp2rmkt.js} +16 -16
  210. package/dist/chunks/{mime-53c48grp.js → instruction-discovery-q2bxhs6b.js} +97 -296
  211. package/dist/chunks/{mime-6b2vme4h.js → instruction-discovery-q581keqr.js} +2 -2
  212. package/dist/chunks/{mime-bjbqe5j4.js → instruction-discovery-q60qfh9s.js} +8 -10
  213. package/dist/chunks/{mime-xcz029a5.js → instruction-discovery-q76b2ped.js} +20 -20
  214. package/dist/chunks/{mime-1s7fk0j0.js → instruction-discovery-qcb68cv5.js} +25 -25
  215. package/dist/chunks/{mime-gwk6svk5.js → instruction-discovery-qewbq6bc.js} +8 -8
  216. package/dist/chunks/{mime-wqgnyshj.js → instruction-discovery-qg3g05ea.js} +4 -11
  217. package/dist/chunks/{mime-7dqw4kz8.js → instruction-discovery-qgn6gcr1.js} +5 -5
  218. package/dist/chunks/{mime-p7ks6zyz.js → instruction-discovery-qh96k4k1.js} +15 -19
  219. package/dist/chunks/{mime-4e18mqjd.js → instruction-discovery-qjpk9dge.js} +9 -9
  220. package/dist/chunks/{mime-6hh8tjw2.js → instruction-discovery-qm0v3jhh.js} +7 -7
  221. package/dist/chunks/{mime-qsdy395h.js → instruction-discovery-qsdy395h.js} +1 -1
  222. package/dist/chunks/{mime-q2yns0nb.js → instruction-discovery-qwy8h0yc.js} +17 -17
  223. package/dist/chunks/{mime-824vcv1n.js → instruction-discovery-r1p3dd79.js} +24 -24
  224. package/dist/chunks/{mime-2b4vkxet.js → instruction-discovery-rb6z2mdp.js} +30 -30
  225. package/dist/chunks/{mime-kg06axw8.js → instruction-discovery-rdw6cm16.js} +3 -1
  226. package/dist/chunks/{mime-vc2f4mv3.js → instruction-discovery-rw15cjs6.js} +7 -7
  227. package/dist/chunks/{mime-sc497s7j.js → instruction-discovery-rwk055kb.js} +7 -11
  228. package/dist/chunks/{mime-w49382pb.js → instruction-discovery-rzs3gq0x.js} +8 -8
  229. package/dist/chunks/{mime-pd4btrn7.js → instruction-discovery-s2br5vfy.js} +4 -4
  230. package/dist/chunks/{mime-hkgwg6cc.js → instruction-discovery-s84t8sre.js} +16 -21
  231. package/dist/chunks/{mime-2h1k6vak.js → instruction-discovery-ssbpaa97.js} +13 -13
  232. package/dist/chunks/{mime-0nhe5bzg.js → instruction-discovery-sxqcr6wk.js} +65 -24
  233. package/dist/chunks/{mime-r98e92ep.js → instruction-discovery-t9zs3egg.js} +4 -4
  234. package/dist/chunks/{mime-tazgh4e4.js → instruction-discovery-tazgh4e4.js} +1 -1
  235. package/dist/chunks/{mime-spb3hsfg.js → instruction-discovery-tbrsbcaz.js} +19 -19
  236. package/dist/chunks/{mime-tcezcvh9.js → instruction-discovery-tcezcvh9.js} +1 -1
  237. package/dist/chunks/{mime-yrgys5zv.js → instruction-discovery-td2t4wzh.js} +110 -118
  238. package/dist/chunks/{mime-tdstcens.js → instruction-discovery-tdstcens.js} +1 -1
  239. package/dist/chunks/{mime-g7jyz10z.js → instruction-discovery-tm6j2b42.js} +51 -51
  240. package/dist/chunks/{mime-4nncm24z.js → instruction-discovery-tmp7mf59.js} +29 -35
  241. package/dist/chunks/{mime-0f9vejxt.js → instruction-discovery-tr16pgkv.js} +27 -27
  242. package/dist/chunks/{mime-1ajjaskr.js → instruction-discovery-ts9rs282.js} +26 -22
  243. package/dist/chunks/{mime-3zpd0x8a.js → instruction-discovery-ttdfrrk2.js} +23 -23
  244. package/dist/chunks/{mime-tvtrv512.js → instruction-discovery-tvtrv512.js} +1 -1
  245. package/dist/chunks/{mime-s6khr2z3.js → instruction-discovery-v5w6sppg.js} +48 -34
  246. package/dist/chunks/{mime-yz87v98p.js → instruction-discovery-vcye14pz.js} +40 -32
  247. package/dist/chunks/{mime-veqvce7d.js → instruction-discovery-veqvce7d.js} +1 -1
  248. package/dist/chunks/{mime-9nydp2f6.js → instruction-discovery-vx97awvm.js} +34 -38
  249. package/dist/chunks/instruction-discovery-vxf6g7p6.js +68 -0
  250. package/dist/chunks/{mime-g04bxtcn.js → instruction-discovery-vyxzcs45.js} +4 -4
  251. package/dist/chunks/{mime-3amprz0f.js → instruction-discovery-vyy6cxw9.js} +4 -4
  252. package/dist/chunks/{mime-vzcthcp8.js → instruction-discovery-vzcthcp8.js} +1 -1
  253. package/dist/chunks/{mime-w3wsvvr9.js → instruction-discovery-w3wsvvr9.js} +1 -1
  254. package/dist/chunks/{mime-rph3zd4r.js → instruction-discovery-w4arg62q.js} +4 -4
  255. package/dist/chunks/{mime-xc0y5txa.js → instruction-discovery-wc3fc9cn.js} +4 -9
  256. package/dist/chunks/instruction-discovery-wd3es6t1.js +4 -0
  257. package/dist/chunks/{mime-2t5kqt1k.js → instruction-discovery-wd3qynhg.js} +1 -1
  258. package/dist/chunks/{mime-wd87259q.js → instruction-discovery-wd87259q.js} +1 -1
  259. package/dist/chunks/{mime-bhp9fn5h.js → instruction-discovery-wjck36vb.js} +11 -11
  260. package/dist/chunks/{mime-j1tqpjge.js → instruction-discovery-wmttgrd3.js} +11 -11
  261. package/dist/chunks/{mime-31je9t57.js → instruction-discovery-x12gwff2.js} +29 -29
  262. package/dist/chunks/{mime-x1ezjp6w.js → instruction-discovery-x1ezjp6w.js} +1 -1
  263. package/dist/chunks/{mime-hk1cyxmr.js → instruction-discovery-x33k6nf3.js} +33 -33
  264. package/dist/chunks/{mime-3c5r44ez.js → instruction-discovery-x4hh2yva.js} +40 -40
  265. package/dist/chunks/{mime-2zdv8wt0.js → instruction-discovery-x4ytj6pq.js} +32 -32
  266. package/dist/chunks/{mime-95wcbadv.js → instruction-discovery-x83qg319.js} +5 -5
  267. package/dist/chunks/{mime-qhvmp4yv.js → instruction-discovery-x9hq217q.js} +33 -33
  268. package/dist/chunks/{mime-efp1nzpe.js → instruction-discovery-xdbx4t5e.js} +20 -20
  269. package/dist/chunks/{mime-8815nq26.js → instruction-discovery-xxx2a5sq.js} +24 -36
  270. package/dist/chunks/{mime-y1fvbwt7.js → instruction-discovery-y1fvbwt7.js} +1 -1
  271. package/dist/chunks/instruction-discovery-y35sf2j4.js +164 -0
  272. package/dist/chunks/{mime-5ahh7ntp.js → instruction-discovery-y3w6sw4s.js} +5 -5
  273. package/dist/chunks/{mime-qvkfnpew.js → instruction-discovery-y55yjzpr.js} +63 -63
  274. package/dist/chunks/{mime-ky3seynh.js → instruction-discovery-y6pbk9jp.js} +2 -2
  275. package/dist/chunks/{mime-qs001aqx.js → instruction-discovery-y7x142mt.js} +11 -11
  276. package/dist/chunks/{mime-a0amxwx8.js → instruction-discovery-ydzd8ct0.js} +38 -25
  277. package/dist/chunks/{mime-29seat8c.js → instruction-discovery-yhj6r7vt.js} +24 -24
  278. package/dist/chunks/{mime-f2n192rq.js → instruction-discovery-yp2x3t23.js} +4 -4
  279. package/dist/chunks/{mime-yrhqyw5v.js → instruction-discovery-yrhqyw5v.js} +1 -1
  280. package/dist/chunks/{mime-s4enseaf.js → instruction-discovery-yrznvahk.js} +2 -2
  281. package/dist/chunks/{mime-6vz9gfbd.js → instruction-discovery-ytfea4mt.js} +15 -15
  282. package/dist/chunks/{mime-z0bkrqjs.js → instruction-discovery-z0bkrqjs.js} +1 -1
  283. package/dist/chunks/{mime-wq0697zs.js → instruction-discovery-z3tdms7e.js} +25 -25
  284. package/dist/chunks/{mime-29x78va6.js → instruction-discovery-z63w68vq.js} +6 -6
  285. package/dist/chunks/{mime-gst7axd9.js → instruction-discovery-zav06jzw.js} +4 -4
  286. package/dist/chunks/{mime-jzp1tdep.js → instruction-discovery-zdpte8cy.js} +13 -13
  287. package/dist/chunks/{mime-zeh9ct20.js → instruction-discovery-zeh9ct20.js} +2 -2
  288. package/dist/chunks/{mime-zg7qrvva.js → instruction-discovery-zhv99wwk.js} +16 -16
  289. package/dist/chunks/{mime-z3zadmjk.js → instruction-discovery-zmz7rfv6.js} +59 -59
  290. package/dist/chunks/{mime-zr2ceqn5.js → instruction-discovery-zr2ceqn5.js} +1 -1
  291. package/dist/chunks/{mime-zxq2ej10.js → instruction-discovery-zxq2ej10.js} +1 -1
  292. package/dist/codemode/catalog.js +1 -1
  293. package/dist/codemode/instructions.js +9 -9
  294. package/dist/codemode/tool.js +3 -2
  295. package/dist/codemode/web.js +10 -0
  296. package/dist/command.js +84 -84
  297. package/dist/config/discovery.js +81 -79
  298. package/dist/config/markdown.js +1 -1
  299. package/dist/config/normalize.js +105 -19
  300. package/dist/config/plugin/agent.js +122 -117
  301. package/dist/config/plugin/command.js +211 -210
  302. package/dist/config/plugin/compaction.js +159 -157
  303. package/dist/config/plugin/compatibility.js +145 -0
  304. package/dist/config/plugin/entry-observer.js +1 -1
  305. package/dist/config/plugin/formatter.js +123 -119
  306. package/dist/config/plugin/image.js +122 -117
  307. package/dist/config/plugin/instruction.js +87 -85
  308. package/dist/config/plugin/location-watcher.js +122 -117
  309. package/dist/config/plugin/mcp.js +129 -126
  310. package/dist/config/plugin/policy.js +122 -116
  311. package/dist/config/plugin/provider.js +122 -115
  312. package/dist/config/plugin/reference.js +124 -119
  313. package/dist/config/plugin/shell.js +122 -118
  314. package/dist/config/plugin/skill-file.js +101 -99
  315. package/dist/config/plugin/skill.js +139 -134
  316. package/dist/config/plugin/snapshot.js +122 -117
  317. package/dist/config/plugin/source.js +125 -119
  318. package/dist/config/plugin/tool-output.js +124 -119
  319. package/dist/config/plugin/websearch.js +121 -115
  320. package/dist/config/plugin/worktree.js +124 -120
  321. package/dist/config/variable.js +3 -3
  322. package/dist/config/watch.js +1 -1
  323. package/dist/config.js +127 -121
  324. package/dist/credential/sql.js +2 -2
  325. package/dist/credential.js +84 -84
  326. package/dist/database/database.js +69 -69
  327. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  328. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  329. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  330. package/dist/database/drizzle/index.js +15 -15
  331. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  332. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  333. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  334. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  335. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  336. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  337. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  338. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  339. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  340. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  341. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  342. package/dist/database/drizzle.js +16 -16
  343. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  344. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  345. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  346. package/dist/database/migration/20260225215848_workspace.js +1 -1
  347. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  348. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  349. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  350. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  351. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  352. package/dist/database/migration/20260323234822_events.js +1 -1
  353. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  354. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  355. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  356. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  357. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  358. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  359. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  360. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  361. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  362. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  363. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  364. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  365. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  366. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  367. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  368. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  369. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  370. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  371. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  372. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  373. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  374. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  375. package/dist/database/migration/20260611035744_credential.js +1 -1
  376. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  377. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  378. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  379. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  380. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  381. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  382. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  383. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  384. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  385. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  386. package/dist/database/migration/20260812213948_worktree.js +1 -1
  387. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  388. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  389. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  390. package/dist/database/migration.gen.js +48 -48
  391. package/dist/database/migration.js +50 -50
  392. package/dist/database/path.js +2 -2
  393. package/dist/database/schema.gen.js +1 -1
  394. package/dist/database/schema.sql.js +1 -1
  395. package/dist/database/sqlite.bun.js +1 -1
  396. package/dist/database/sqlite.js +1 -1
  397. package/dist/database/sqlite.node.js +1 -1
  398. package/dist/database/sqlite.workerd.js +1 -1
  399. package/dist/database/v1-migration.bun.js +78 -78
  400. package/dist/database/v1-migration.js +1 -1
  401. package/dist/effect/app-node-builder.js +365 -363
  402. package/dist/effect/app-node-platform.js +2 -2
  403. package/dist/effect/keyed-mutex.js +3 -3
  404. package/dist/effect/websocket-constructor.js +1 -1
  405. package/dist/environment/driver.js +1 -1
  406. package/dist/environment/environment.js +92 -90
  407. package/dist/environment/exec-defaults.js +2 -2
  408. package/dist/environment/files.js +1 -1
  409. package/dist/environment/index.js +92 -90
  410. package/dist/environment/local.js +2 -2
  411. package/dist/environment/memory.js +2 -2
  412. package/dist/environment/unavailable.js +1 -1
  413. package/dist/event/sql.js +1 -1
  414. package/dist/event-logger.js +74 -74
  415. package/dist/file-access.js +101 -99
  416. package/dist/file-mutation.js +93 -91
  417. package/dist/file-retention.js +1 -1
  418. package/dist/file.js +1 -1
  419. package/dist/filesystem/fff.bun.js +2 -2
  420. package/dist/filesystem/fff.js +1 -1
  421. package/dist/filesystem/fff.node.js +2 -2
  422. package/dist/filesystem/fff.workerd.js +2 -2
  423. package/dist/filesystem/ignore.js +1 -1
  424. package/dist/filesystem/location-watcher-policy.js +6 -6
  425. package/dist/filesystem/location-watcher.js +220 -218
  426. package/dist/filesystem/protected.js +1 -1
  427. package/dist/filesystem/search.js +102 -101
  428. package/dist/filesystem/watcher-binding.js +3 -3
  429. package/dist/filesystem/watcher.js +15 -15
  430. package/dist/filesystem.js +103 -102
  431. package/dist/form.js +81 -81
  432. package/dist/formatter/builtins.js +4 -4
  433. package/dist/formatter.js +86 -84
  434. package/dist/generate.js +104 -94
  435. package/dist/git.js +10 -8
  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 +98 -7
  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 +356 -354
  460. package/dist/instruction-discovery.js +82 -82
  461. package/dist/instructions/builtins.js +86 -84
  462. package/dist/instructions/index.js +5 -5
  463. package/dist/integration/connection.js +11 -19
  464. package/dist/integration.js +87 -85
  465. package/dist/job.js +78 -78
  466. package/dist/kv/sql.js +2 -2
  467. package/dist/kv.js +72 -72
  468. package/dist/location-activity.js +136 -135
  469. package/dist/location-mutation.js +101 -99
  470. package/dist/location-service-map.js +87 -85
  471. package/dist/location-services.js +353 -351
  472. package/dist/location.js +88 -86
  473. package/dist/mcp/client.js +205 -263
  474. package/dist/mcp/index.js +105 -121
  475. package/dist/mcp/instructions.js +125 -122
  476. package/dist/mcp/oauth.js +284 -38
  477. package/dist/mcp/stdio.js +89 -87
  478. package/dist/mime.js +1 -1
  479. package/dist/modal/models.js +98 -7
  480. package/dist/model-resolver.js +95 -85
  481. package/dist/model.js +104 -11
  482. package/dist/models-dev.js +106 -87
  483. package/dist/oauth/page.js +1 -1
  484. package/dist/permission/saved.js +81 -81
  485. package/dist/permission/sql.js +5 -5
  486. package/dist/permission.js +114 -112
  487. package/dist/persistent-pty/binary.bun.js +1 -1
  488. package/dist/persistent-pty/daemon.js +1 -1
  489. package/dist/persistent-pty/index.js +87 -87
  490. package/dist/persistent-pty/pty-binding.js +1 -1
  491. package/dist/persistent-pty.js +74 -74
  492. package/dist/plugin/agent.js +101 -99
  493. package/dist/plugin/command.js +98 -96
  494. package/dist/plugin/hooks.js +5 -5
  495. package/dist/plugin/host.js +217 -215
  496. package/dist/plugin/identity.js +10 -0
  497. package/dist/plugin/instance.js +5 -5
  498. package/dist/plugin/internal.js +328 -325
  499. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  500. package/dist/plugin/models-dev.js +95 -76
  501. package/dist/plugin/module.js +5 -5
  502. package/dist/plugin/optimize.js +2 -2
  503. package/dist/plugin/plan.js +101 -99
  504. package/dist/plugin/promise.js +1 -1
  505. package/dist/plugin/provider/amazon-bedrock.js +89 -2
  506. package/dist/plugin/provider/azure.js +121 -120
  507. package/dist/plugin/provider/cerebras.js +1 -2
  508. package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -119
  509. package/dist/plugin/provider/cloudflare-workers-ai.js +120 -119
  510. package/dist/plugin/provider/cohere.js +2 -2
  511. package/dist/plugin/provider/configured.js +118 -116
  512. package/dist/plugin/provider/digitalocean.js +92 -80
  513. package/dist/plugin/provider/dynamic.js +2 -2
  514. package/dist/plugin/provider/factory.js +1 -1
  515. package/dist/plugin/provider/gateway.js +2 -2
  516. package/dist/plugin/provider/github-copilot.js +92 -81
  517. package/dist/plugin/provider/gitlab.js +90 -3
  518. package/dist/plugin/provider/google-vertex.js +89 -2
  519. package/dist/plugin/provider/kilo.js +1 -2
  520. package/dist/plugin/provider/llmgateway.js +76 -77
  521. package/dist/plugin/provider/lmstudio.js +121 -119
  522. package/dist/plugin/provider/modal.js +91 -80
  523. package/dist/plugin/provider/nvidia.js +1 -2
  524. package/dist/plugin/provider/ollama.js +121 -119
  525. package/dist/plugin/provider/openai.js +91 -79
  526. package/dist/plugin/provider/opencode.js +92 -80
  527. package/dist/plugin/provider/openrouter.js +90 -3
  528. package/dist/plugin/provider/perplexity.js +2 -2
  529. package/dist/plugin/provider/poe.js +77 -77
  530. package/dist/plugin/provider/prompt-cache-key.js +94 -0
  531. package/dist/plugin/provider/sap-ai-core.js +90 -3
  532. package/dist/plugin/provider/sdk-factory.js +1 -1
  533. package/dist/plugin/provider/snowflake-cortex.js +121 -119
  534. package/dist/plugin/provider/venice.js +2 -2
  535. package/dist/plugin/provider/vercel.js +89 -2
  536. package/dist/plugin/provider/vllm.js +119 -117
  537. package/dist/plugin/provider/xai.js +90 -78
  538. package/dist/plugin/provider/zenmux.js +1 -2
  539. package/dist/plugin/provider.js +158 -158
  540. package/dist/plugin/sdk.js +71 -71
  541. package/dist/plugin/service.js +3 -3
  542. package/dist/plugin/skill.js +140 -135
  543. package/dist/plugin/source-directory.js +1 -1
  544. package/dist/plugin/supervisor.js +345 -342
  545. package/dist/plugin/update.js +6 -6
  546. package/dist/plugin/vcs/git.js +85 -83
  547. package/dist/plugin/vcs/hg.js +85 -83
  548. package/dist/plugin/warming.js +120 -114
  549. package/dist/plugin/websearch/exa.js +7 -7
  550. package/dist/plugin/websearch/firecrawl.js +8 -8
  551. package/dist/plugin/websearch/index.js +9 -9
  552. package/dist/plugin/websearch/mcp.js +4 -4
  553. package/dist/plugin/websearch/parallel.js +6 -6
  554. package/dist/plugin/websearch/tavily.js +6 -6
  555. package/dist/plugin/websearch/tinyfish.js +8 -8
  556. package/dist/plugin.js +224 -222
  557. package/dist/project/schema.js +8 -8
  558. package/dist/project/sql.js +4 -4
  559. package/dist/project.js +89 -87
  560. package/dist/provider.js +99 -6
  561. package/dist/pty/protocol.js +1 -1
  562. package/dist/pty/schema.js +3 -3
  563. package/dist/pty/ticket.js +1 -1
  564. package/dist/pty.js +95 -94
  565. package/dist/reference/instructions.js +86 -84
  566. package/dist/reference.js +90 -88
  567. package/dist/repository-cache.js +80 -78
  568. package/dist/repository.js +3 -3
  569. package/dist/ripgrep/binary.js +2 -2
  570. package/dist/ripgrep.js +94 -93
  571. package/dist/rpc.js +85 -83
  572. package/dist/schema.js +1 -1
  573. package/dist/session/command.js +73 -73
  574. package/dist/session/compaction.js +133 -131
  575. package/dist/session/context.js +151 -149
  576. package/dist/session/diff.js +87 -85
  577. package/dist/session/environment.js +5 -5
  578. package/dist/session/error.js +7 -7
  579. package/dist/session/event.js +1 -1
  580. package/dist/session/execution/restart.js +223 -222
  581. package/dist/session/execution.js +127 -126
  582. package/dist/session/generate.js +154 -152
  583. package/dist/session/history.js +15 -15
  584. package/dist/session/inbox.js +87 -87
  585. package/dist/session/info.js +3 -3
  586. package/dist/session/instruction-entry.js +78 -78
  587. package/dist/session/instruction-state.js +8 -8
  588. package/dist/session/instructions.js +96 -94
  589. package/dist/session/message-updater.js +4 -4
  590. package/dist/session/message.js +1 -1
  591. package/dist/session/model-request.js +118 -115
  592. package/dist/session/model-transport.js +9 -9
  593. package/dist/session/move.js +129 -128
  594. package/dist/session/projector.js +85 -85
  595. package/dist/session/prompt.js +104 -102
  596. package/dist/session/provider-context.js +3 -3
  597. package/dist/session/revert.js +89 -87
  598. package/dist/session/run-coordinator.js +3 -3
  599. package/dist/session/runner/index.js +3 -3
  600. package/dist/session/runner/llm.js +229 -227
  601. package/dist/session/runner/max-steps.js +1 -1
  602. package/dist/session/runner/model.js +97 -87
  603. package/dist/session/runner/publish-llm-event.js +3 -3
  604. package/dist/session/runner/retry.js +113 -112
  605. package/dist/session/runner/step.js +125 -123
  606. package/dist/session/runner/to-llm-message.js +2 -2
  607. package/dist/session/schema.js +5 -5
  608. package/dist/session/session.js +171 -171
  609. package/dist/session/shell.js +137 -133
  610. package/dist/session/skill.js +102 -100
  611. package/dist/session/sql.js +5 -5
  612. package/dist/session/stats.js +76 -75
  613. package/dist/session/store.js +86 -86
  614. package/dist/session/subagent-completion.js +1 -1
  615. package/dist/session/subagent-job.js +207 -206
  616. package/dist/session/system-prompt.js +1 -1
  617. package/dist/session/title.js +155 -153
  618. package/dist/session/to-session-error.js +110 -109
  619. package/dist/session/transfer.js +222 -221
  620. package/dist/session/usage.js +1 -1
  621. package/dist/session.js +217 -216
  622. package/dist/shell/parse.js +6 -6
  623. package/dist/shell/result.js +1 -1
  624. package/dist/shell/scan.js +1 -1
  625. package/dist/shell/select.js +9 -9
  626. package/dist/shell.js +139 -135
  627. package/dist/skill/discovery.js +6 -6
  628. package/dist/skill/instructions.js +106 -104
  629. package/dist/skill.js +107 -105
  630. package/dist/snapshot.js +92 -90
  631. package/dist/state.js +1 -1
  632. package/dist/tool/html-markdown.js +1 -1
  633. package/dist/tool/http-body.js +1 -1
  634. package/dist/tool/mcp.js +124 -121
  635. package/dist/tool/plugin/edit.js +119 -117
  636. package/dist/tool/plugin/file-diff.js +1 -1
  637. package/dist/tool/plugin/glob.js +121 -120
  638. package/dist/tool/plugin/grep.js +123 -122
  639. package/dist/tool/plugin/opencode.js +5 -3
  640. package/dist/tool/plugin/patch.js +121 -119
  641. package/dist/tool/plugin/question.js +102 -100
  642. package/dist/tool/plugin/read.js +124 -123
  643. package/dist/tool/plugin/shell.js +214 -213
  644. package/dist/tool/plugin/skill.js +108 -106
  645. package/dist/tool/plugin/subagent.js +218 -217
  646. package/dist/tool/plugin/webfetch.js +105 -103
  647. package/dist/tool/plugin/websearch.js +111 -109
  648. package/dist/tool/plugin/write.js +121 -119
  649. package/dist/tool/read-filesystem.js +97 -96
  650. package/dist/tool/runtime.js +1 -1
  651. package/dist/tool-output.js +8 -8
  652. package/dist/tool.js +14 -13
  653. package/dist/types/aisdk-native.d.ts +21 -13
  654. package/dist/types/codemode/web.d.ts +8 -0
  655. package/dist/types/config/plugin/compatibility.d.ts +5 -0
  656. package/dist/types/config/plugin/entry-observer.d.ts +1 -1
  657. package/dist/types/config/plugin/worktree.d.ts +2 -2
  658. package/dist/types/config.d.ts +13 -6
  659. package/dist/types/github-copilot/models.d.ts +61 -0
  660. package/dist/types/instance.d.ts +4 -3
  661. package/dist/types/integration/connection.d.ts +8 -0
  662. package/dist/types/integration.d.ts +15 -4
  663. package/dist/types/mcp/client.d.ts +221 -125
  664. package/dist/types/mcp/index.d.ts +24 -87
  665. package/dist/types/mcp/oauth.d.ts +30 -51
  666. package/dist/types/mcp/stdio.d.ts +1 -1
  667. package/dist/types/mime.d.ts +1 -1
  668. package/dist/types/modal/models.d.ts +30 -0
  669. package/dist/types/model-resolver.d.ts +4 -5
  670. package/dist/types/model.d.ts +37 -3
  671. package/dist/types/permission/saved.d.ts +4 -0
  672. package/dist/types/plugin/host.d.ts +5 -3
  673. package/dist/types/plugin/identity.d.ts +7 -0
  674. package/dist/types/plugin/internal.d.ts +5 -3
  675. package/dist/types/plugin/provider/azure.d.ts +2 -1
  676. package/dist/types/plugin/provider/cloudflare-ai-gateway.d.ts +2 -1
  677. package/dist/types/plugin/provider/cloudflare-workers-ai.d.ts +2 -1
  678. package/dist/types/plugin/provider/configured.d.ts +1 -2
  679. package/dist/types/plugin/provider/github-copilot.d.ts +2 -2
  680. package/dist/types/plugin/provider/modal.d.ts +2 -2
  681. package/dist/types/plugin/provider/prompt-cache-key.d.ts +1 -0
  682. package/dist/types/plugin/provider/snowflake-cortex.d.ts +2 -1
  683. package/dist/types/project/schema.d.ts +0 -5
  684. package/dist/types/project.d.ts +0 -1
  685. package/dist/types/provider.d.ts +44 -2
  686. package/dist/types/session/execution.d.ts +1 -1
  687. package/dist/types/session/history.d.ts +32 -32
  688. package/dist/types/session/inbox.d.ts +120 -40
  689. package/dist/types/session/model-transport.d.ts +6 -1
  690. package/dist/types/session/runner/model.d.ts +1 -1
  691. package/dist/types/session/session.d.ts +24 -11
  692. package/dist/types/session.d.ts +2 -2
  693. package/dist/types/skill.d.ts +3 -6
  694. package/dist/types/state.d.ts +4 -0
  695. package/dist/types/tool/plugin/opencode.d.ts +7 -0
  696. package/dist/types/tool/plugin/subagent.d.ts +3 -1
  697. package/dist/types/util/git-executable.d.ts +2 -0
  698. package/dist/types/v1/config/migrate.d.ts +10 -7
  699. package/dist/types/variant.d.ts +14 -0
  700. package/dist/types/worktree/git.d.ts +2 -4
  701. package/dist/types/worktree/strategies.d.ts +36 -0
  702. package/dist/types/worktree.d.ts +23 -40
  703. package/dist/util/error-summary.js +1 -1
  704. package/dist/util/error.js +1 -1
  705. package/dist/util/git-executable.js +9 -0
  706. package/dist/util/iife.js +1 -1
  707. package/dist/util/lazy.js +1 -1
  708. package/dist/util/slug.js +1 -1
  709. package/dist/util/token.js +1 -1
  710. package/dist/util/which.js +1 -1
  711. package/dist/util/wildcard.js +1 -1
  712. package/dist/v1/config/agent.js +7 -7
  713. package/dist/v1/config/attachment.js +4 -4
  714. package/dist/v1/config/command.js +5 -5
  715. package/dist/v1/config/config.js +16 -16
  716. package/dist/v1/config/error.js +4 -4
  717. package/dist/v1/config/formatter.js +3 -3
  718. package/dist/v1/config/layout.js +1 -1
  719. package/dist/v1/config/lsp.js +3 -3
  720. package/dist/v1/config/mcp.js +4 -4
  721. package/dist/v1/config/migrate.js +91 -4
  722. package/dist/v1/config/permission.js +7 -7
  723. package/dist/v1/config/plugin.js +3 -3
  724. package/dist/v1/config/provider-options.js +1 -1
  725. package/dist/v1/config/provider.js +4 -4
  726. package/dist/v1/config/server.js +2 -2
  727. package/dist/v1/config/skills.js +3 -3
  728. package/dist/v1/permission.js +1 -1
  729. package/dist/variant.js +97 -0
  730. package/dist/vcs/patch.js +1 -1
  731. package/dist/vcs.js +88 -86
  732. package/dist/websearch.js +81 -81
  733. package/dist/wellknown/plugin.js +75 -75
  734. package/dist/wellknown.js +80 -80
  735. package/dist/workspace/driver.js +5 -5
  736. package/dist/workspace/sql.js +1 -1
  737. package/dist/workspace.js +79 -79
  738. package/dist/worktree/directory.js +4 -4
  739. package/dist/worktree/git.js +10 -8
  740. package/dist/worktree/sql.js +5 -5
  741. package/dist/worktree/strategies.js +93 -0
  742. package/dist/worktree.js +93 -93
  743. package/package.json +19 -23
  744. package/dist/catalog.js +0 -89
  745. package/dist/chunks/mime-0kcg9p5c.js +0 -49
  746. package/dist/chunks/mime-71q4at8m.js +0 -15
  747. package/dist/chunks/mime-83qrv3hw.js +0 -113
  748. package/dist/chunks/mime-9jxymrt4.js +0 -247
  749. package/dist/chunks/mime-a13hqwzr.js +0 -118
  750. package/dist/chunks/mime-b1jrztkg.js +0 -26
  751. package/dist/chunks/mime-hrnqkpcd.js +0 -20
  752. package/dist/chunks/mime-kxmcqd0q.js +0 -193
  753. package/dist/chunks/mime-mkgf31e5.js +0 -36
  754. package/dist/chunks/mime-p2h6zvwc.js +0 -18
  755. package/dist/chunks/mime-pck3w1ab.js +0 -77
  756. package/dist/chunks/mime-szb4ct1t.js +0 -44
  757. package/dist/chunks/mime-ttkasvj9.js +0 -55
  758. package/dist/chunks/mime-xnqxh1k4.js +0 -169
  759. package/dist/chunks/mime-xrsqh21y.js +0 -4
  760. package/dist/chunks/mime-y6fqbdb6.js +0 -170
  761. package/dist/chunks/mime-z7q0mhzt.js +0 -462
  762. package/dist/plugin/provider/alibaba.js +0 -7
  763. package/dist/plugin/provider/openai-compatible.js +0 -6
  764. package/dist/plugin/variant.js +0 -11
  765. package/dist/types/catalog.d.ts +0 -49
  766. package/dist/types/plugin/provider/alibaba.d.ts +0 -1
  767. package/dist/types/plugin/provider/openai-compatible.d.ts +0 -1
  768. package/dist/types/plugin/variant.d.ts +0 -10
  769. package/dist/types/worktree/refresh.d.ts +0 -2
  770. package/dist/worktree/refresh.js +0 -348
  771. /package/dist/chunks/{mime-0qkdqm5v.js → instruction-discovery-0qkdqm5v.js} +0 -0
  772. /package/dist/chunks/{mime-0zkw76rk.js → instruction-discovery-0zkw76rk.js} +0 -0
  773. /package/dist/chunks/{mime-17cy0kzp.js → instruction-discovery-17cy0kzp.js} +0 -0
  774. /package/dist/chunks/{mime-1cnp2v09.js → instruction-discovery-1cnp2v09.js} +0 -0
  775. /package/dist/chunks/{mime-1kg9ymc8.js → instruction-discovery-1kg9ymc8.js} +0 -0
  776. /package/dist/chunks/{mime-2710q6r3.js → instruction-discovery-2710q6r3.js} +0 -0
  777. /package/dist/chunks/{mime-2axfhc9x.js → instruction-discovery-2axfhc9x.js} +0 -0
  778. /package/dist/chunks/{mime-2c3vjs8z.js → instruction-discovery-2c3vjs8z.js} +0 -0
  779. /package/dist/chunks/{mime-359p4xyc.js → instruction-discovery-359p4xyc.js} +0 -0
  780. /package/dist/chunks/{mime-3asan66x.js → instruction-discovery-3asan66x.js} +0 -0
  781. /package/dist/chunks/{mime-3v8g72cx.js → instruction-discovery-3v8g72cx.js} +0 -0
  782. /package/dist/chunks/{mime-3w5fmr99.js → instruction-discovery-3w5fmr99.js} +0 -0
  783. /package/dist/chunks/{mime-3wcehsnq.js → instruction-discovery-3wcehsnq.js} +0 -0
  784. /package/dist/chunks/{mime-43n2bw4t.js → instruction-discovery-43n2bw4t.js} +0 -0
  785. /package/dist/chunks/{mime-4knz6hnm.js → instruction-discovery-4knz6hnm.js} +0 -0
  786. /package/dist/chunks/{mime-4vcrnpx2.js → instruction-discovery-4vcrnpx2.js} +0 -0
  787. /package/dist/chunks/{mime-4y7fprxs.js → instruction-discovery-4y7fprxs.js} +0 -0
  788. /package/dist/chunks/{mime-53557ph1.js → instruction-discovery-53557ph1.js} +0 -0
  789. /package/dist/chunks/{mime-550bvhaj.js → instruction-discovery-550bvhaj.js} +0 -0
  790. /package/dist/chunks/{mime-6prwharc.js → instruction-discovery-6prwharc.js} +0 -0
  791. /package/dist/chunks/{mime-7akdwqpd.js → instruction-discovery-7akdwqpd.js} +0 -0
  792. /package/dist/chunks/{mime-7m9af43g.js → instruction-discovery-7m9af43g.js} +0 -0
  793. /package/dist/chunks/{mime-822emrt2.js → instruction-discovery-822emrt2.js} +0 -0
  794. /package/dist/chunks/{mime-88xbtdfr.js → instruction-discovery-88xbtdfr.js} +0 -0
  795. /package/dist/chunks/{mime-8n3pysct.js → instruction-discovery-8n3pysct.js} +0 -0
  796. /package/dist/chunks/{mime-922hggd3.js → instruction-discovery-922hggd3.js} +0 -0
  797. /package/dist/chunks/{mime-9a4afbnw.js → instruction-discovery-9a4afbnw.js} +0 -0
  798. /package/dist/chunks/{mime-9rqn6x4v.js → instruction-discovery-9rqn6x4v.js} +0 -0
  799. /package/dist/chunks/{mime-a6k6eb26.js → instruction-discovery-a6k6eb26.js} +0 -0
  800. /package/dist/chunks/{mime-af5trqkr.js → instruction-discovery-af5trqkr.js} +0 -0
  801. /package/dist/chunks/{mime-afrmfg78.js → instruction-discovery-afrmfg78.js} +0 -0
  802. /package/dist/chunks/{mime-aqzs7mqg.js → instruction-discovery-aqzs7mqg.js} +0 -0
  803. /package/dist/chunks/{mime-atq7p7m5.js → instruction-discovery-atq7p7m5.js} +0 -0
  804. /package/dist/chunks/{mime-bkyjaxrp.js → instruction-discovery-bkyjaxrp.js} +0 -0
  805. /package/dist/chunks/{mime-bmr6ed5q.js → instruction-discovery-bmr6ed5q.js} +0 -0
  806. /package/dist/chunks/{mime-cf4snx6d.js → instruction-discovery-cf4snx6d.js} +0 -0
  807. /package/dist/chunks/{mime-cvy3z8tj.js → instruction-discovery-cvy3z8tj.js} +0 -0
  808. /package/dist/chunks/{mime-d9fn303g.js → instruction-discovery-d9fn303g.js} +0 -0
  809. /package/dist/chunks/{mime-d9jj8t3e.js → instruction-discovery-d9jj8t3e.js} +0 -0
  810. /package/dist/chunks/{mime-dajrwvna.js → instruction-discovery-dajrwvna.js} +0 -0
  811. /package/dist/chunks/{mime-dap0rakb.js → instruction-discovery-dap0rakb.js} +0 -0
  812. /package/dist/chunks/{mime-df08tz66.js → instruction-discovery-df08tz66.js} +0 -0
  813. /package/dist/chunks/{mime-dy18nga0.js → instruction-discovery-dy18nga0.js} +0 -0
  814. /package/dist/chunks/{mime-e5kj55wp.js → instruction-discovery-e5kj55wp.js} +0 -0
  815. /package/dist/chunks/{mime-e73j6tqm.js → instruction-discovery-e73j6tqm.js} +0 -0
  816. /package/dist/chunks/{mime-ec1grn59.js → instruction-discovery-ec1grn59.js} +0 -0
  817. /package/dist/chunks/{mime-eh3zwz77.js → instruction-discovery-eh3zwz77.js} +0 -0
  818. /package/dist/chunks/{mime-emrn6kk6.js → instruction-discovery-emrn6kk6.js} +0 -0
  819. /package/dist/chunks/{mime-f0mxakyp.js → instruction-discovery-f0mxakyp.js} +0 -0
  820. /package/dist/chunks/{mime-f6n9ztr4.js → instruction-discovery-f6n9ztr4.js} +0 -0
  821. /package/dist/chunks/{mime-faypxj3z.js → instruction-discovery-faypxj3z.js} +0 -0
  822. /package/dist/chunks/{mime-fd410y7t.js → instruction-discovery-fd410y7t.js} +0 -0
  823. /package/dist/chunks/{mime-fxgpk5d8.js → instruction-discovery-fxgpk5d8.js} +0 -0
  824. /package/dist/chunks/{mime-g4wezp1m.js → instruction-discovery-g4wezp1m.js} +0 -0
  825. /package/dist/chunks/{mime-g86h250q.js → instruction-discovery-g86h250q.js} +0 -0
  826. /package/dist/chunks/{mime-gebd4c9n.js → instruction-discovery-gebd4c9n.js} +0 -0
  827. /package/dist/chunks/{mime-gftt206x.js → instruction-discovery-gftt206x.js} +0 -0
  828. /package/dist/chunks/{mime-hjbc5kem.js → instruction-discovery-hjbc5kem.js} +0 -0
  829. /package/dist/chunks/{mime-hk9envan.js → instruction-discovery-hk9envan.js} +0 -0
  830. /package/dist/chunks/{mime-j2ntwpah.js → instruction-discovery-j2ntwpah.js} +0 -0
  831. /package/dist/chunks/{mime-j5zkgpj8.js → instruction-discovery-j5zkgpj8.js} +0 -0
  832. /package/dist/chunks/{mime-jr7sbwjy.js → instruction-discovery-jr7sbwjy.js} +0 -0
  833. /package/dist/chunks/{mime-jwfs4k6c.js → instruction-discovery-jwfs4k6c.js} +0 -0
  834. /package/dist/chunks/{mime-jzg6c2d5.js → instruction-discovery-jzg6c2d5.js} +0 -0
  835. /package/dist/chunks/{mime-mp448xyj.js → instruction-discovery-mp448xyj.js} +0 -0
  836. /package/dist/chunks/{mime-msx8hqn2.js → instruction-discovery-msx8hqn2.js} +0 -0
  837. /package/dist/chunks/{mime-n05xt0ee.js → instruction-discovery-n05xt0ee.js} +0 -0
  838. /package/dist/chunks/{mime-n3j8tn72.js → instruction-discovery-n3j8tn72.js} +0 -0
  839. /package/dist/chunks/{mime-njntx4h6.js → instruction-discovery-njntx4h6.js} +0 -0
  840. /package/dist/chunks/{mime-q3sfg36h.js → instruction-discovery-q3sfg36h.js} +0 -0
  841. /package/dist/chunks/{mime-q74kybfr.js → instruction-discovery-q74kybfr.js} +0 -0
  842. /package/dist/chunks/{mime-qaymkmh1.js → instruction-discovery-qaymkmh1.js} +0 -0
  843. /package/dist/chunks/{mime-qb87gjwd.js → instruction-discovery-qb87gjwd.js} +0 -0
  844. /package/dist/chunks/{mime-qfa1cgps.js → instruction-discovery-qfa1cgps.js} +0 -0
  845. /package/dist/chunks/{mime-qrg20bc0.js → instruction-discovery-qrg20bc0.js} +0 -0
  846. /package/dist/chunks/{mime-rcb2kzg1.js → instruction-discovery-rcb2kzg1.js} +0 -0
  847. /package/dist/chunks/{mime-sdp7kfr6.js → instruction-discovery-sdp7kfr6.js} +0 -0
  848. /package/dist/chunks/{mime-sk3qaz4a.js → instruction-discovery-sk3qaz4a.js} +0 -0
  849. /package/dist/chunks/{mime-ssg3fenm.js → instruction-discovery-ssg3fenm.js} +0 -0
  850. /package/dist/chunks/{mime-twg0f83k.js → instruction-discovery-twg0f83k.js} +0 -0
  851. /package/dist/chunks/{mime-w803qqfp.js → instruction-discovery-w803qqfp.js} +0 -0
  852. /package/dist/chunks/{mime-wer8tq1h.js → instruction-discovery-wer8tq1h.js} +0 -0
  853. /package/dist/chunks/{mime-wtztk69x.js → instruction-discovery-wtztk69x.js} +0 -0
  854. /package/dist/chunks/{mime-x0ckcb58.js → instruction-discovery-x0ckcb58.js} +0 -0
  855. /package/dist/chunks/{mime-x61499pn.js → instruction-discovery-x61499pn.js} +0 -0
  856. /package/dist/chunks/{mime-y44na4kk.js → instruction-discovery-y44na4kk.js} +0 -0
  857. /package/dist/chunks/{mime-y8cydn3q.js → instruction-discovery-y8cydn3q.js} +0 -0
  858. /package/dist/chunks/{mime-y8f7s663.js → instruction-discovery-y8f7s663.js} +0 -0
  859. /package/dist/chunks/{mime-ygaqb7jw.js → instruction-discovery-ygaqb7jw.js} +0 -0
  860. /package/dist/chunks/{mime-ym463w8f.js → instruction-discovery-ym463w8f.js} +0 -0
  861. /package/dist/chunks/{mime-z9919s4g.js → instruction-discovery-z9919s4g.js} +0 -0
@@ -0,0 +1,610 @@
1
+ import {
2
+ Service81,
3
+ node85
4
+ } from "./instruction-discovery-7kvy0jtg.js";
5
+ import {
6
+ shutdown2,
7
+ create3
8
+ } from "./instruction-discovery-rdw6cm16.js";
9
+ import {
10
+ ID10,
11
+ Service62,
12
+ node65,
13
+ Event14
14
+ } from "./instruction-discovery-v5w6sppg.js";
15
+ import {
16
+ key2
17
+ } from "./instruction-discovery-44h5tttr.js";
18
+ import {
19
+ Service76,
20
+ node80
21
+ } from "./instruction-discovery-88dkmhka.js";
22
+ import {
23
+ __export
24
+ } from "./instruction-discovery-9rqn6x4v.js";
25
+
26
+ // src/aisdk-native.ts
27
+ var exports_aisdk_native = {};
28
+ __export(exports_aisdk_native, {
29
+ AISDKNative: () => exports_aisdk_native,
30
+ native: () => native2,
31
+ rewrite: () => rewrite2
32
+ });
33
+ import { Effect as Effect2, Option, Schema as Schema2, Struct as Struct2 } from "effect";
34
+
35
+ // src/provider.ts
36
+ var exports_provider3 = {};
37
+ __export(exports_provider3, {
38
+ AISDK_PREFIX: () => AISDK_PREFIX2,
39
+ Event: () => Event13,
40
+ ID: () => ID9,
41
+ Info: () => Info23,
42
+ LoadError: () => LoadError3,
43
+ Provider: () => exports_provider3,
44
+ Request: () => Request3,
45
+ Service: () => Service61,
46
+ Settings: () => Settings2,
47
+ aisdk: () => aisdk2,
48
+ isAISDK: () => isAISDK2,
49
+ loadPackage: () => loadPackage2,
50
+ mergeHeaders: () => mergeHeaders2,
51
+ mergeOverlay: () => mergeOverlay2,
52
+ nativeSettings: () => nativeSettings2,
53
+ node: () => node64,
54
+ packageName: () => packageName2
55
+ });
56
+ import { Context, Effect, Layer, Schema, Stream, Struct } from "effect";
57
+ import { Provider } from "@opencode/schema/provider";
58
+ import { Model } from "@opencode/schema/model";
59
+ import { makeLocationNode } from "@opencode/util/effect/app-node";
60
+ import { isRecord } from "@opencode/ai/utils/record";
61
+ import { importModule, resolveModule } from "@opencode/util/runtime-import";
62
+ import { Credential } from "@opencode/schema/credential";
63
+ import { freeze } from "immer";
64
+ import { Event as Event13 } from "@opencode/schema/provider";
65
+ var ID9 = Provider.ID;
66
+ var AISDK_PREFIX2 = "aisdk:";
67
+ var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
68
+ var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
69
+ function packageName2(value) {
70
+ if (value?.startsWith("@opencode-ai/ai/"))
71
+ return value.replace("@opencode-ai/", "@opencode/");
72
+ if (value === undefined || !isAISDK2(value))
73
+ return value;
74
+ return value.slice(AISDK_PREFIX2.length);
75
+ }
76
+ var JsonRecord = Schema.Record(Schema.String, Schema.Json);
77
+ var decodeJsonRecord = Schema.decodeUnknownSync(JsonRecord);
78
+
79
+ class LoadError3 extends Schema.TaggedError()("Provider.LoadError", {
80
+ package: Schema.String,
81
+ cause: Schema.Defect()
82
+ }) {
83
+ }
84
+ var packages = new Map;
85
+ var builtins = new Map([
86
+ ["@opencode/ai/providers/amazon-bedrock", () => import("@opencode/ai/providers/amazon-bedrock")],
87
+ ["@opencode/ai/providers/amazon-bedrock/mantle", () => import("@opencode/ai/providers/amazon-bedrock/mantle")],
88
+ [
89
+ "@opencode/ai/providers/amazon-bedrock/mantle/chat",
90
+ () => import("@opencode/ai/providers/amazon-bedrock/mantle/chat")
91
+ ],
92
+ [
93
+ "@opencode/ai/providers/amazon-bedrock/mantle/responses",
94
+ () => import("@opencode/ai/providers/amazon-bedrock/mantle/responses")
95
+ ],
96
+ ["@opencode/ai/providers/alibaba/chat", () => import("@opencode/ai/providers/alibaba/chat")],
97
+ ["@opencode/ai/providers/alibaba/messages", () => import("@opencode/ai/providers/alibaba/messages")],
98
+ ["@opencode/ai/providers/alibaba/responses", () => import("@opencode/ai/providers/alibaba/responses")],
99
+ ["@opencode/ai/providers/anthropic", () => import("@opencode/ai/providers/anthropic")],
100
+ ["@opencode/ai/providers/azure", () => import("@opencode/ai/providers/azure")],
101
+ ["@opencode/ai/providers/azure/chat", () => import("@opencode/ai/providers/azure/chat")],
102
+ ["@opencode/ai/providers/azure/responses", () => import("@opencode/ai/providers/azure/responses")],
103
+ ["@opencode/ai/providers/baseten", () => import("@opencode/ai/providers/baseten")],
104
+ ["@opencode/ai/providers/cerebras", () => import("@opencode/ai/providers/cerebras")],
105
+ ["@opencode/ai/providers/cloudflare-ai-gateway", () => import("@opencode/ai/providers/cloudflare-ai-gateway")],
106
+ ["@opencode/ai/providers/cloudflare-workers-ai", () => import("@opencode/ai/providers/cloudflare-workers-ai")],
107
+ ["@opencode/ai/providers/deepinfra", () => import("@opencode/ai/providers/deepinfra")],
108
+ ["@opencode/ai/providers/deepseek", () => import("@opencode/ai/providers/deepseek")],
109
+ ["@opencode/ai/providers/fireworks", () => import("@opencode/ai/providers/fireworks")],
110
+ ["@opencode/ai/providers/google", () => import("@opencode/ai/providers/google")],
111
+ ["@opencode/ai/providers/google-vertex", () => import("@opencode/ai/providers/google-vertex")],
112
+ ["@opencode/ai/providers/google-vertex/gemini", () => import("@opencode/ai/providers/google-vertex/gemini")],
113
+ ["@opencode/ai/providers/google-vertex/chat", () => import("@opencode/ai/providers/google-vertex/chat")],
114
+ ["@opencode/ai/providers/google-vertex/responses", () => import("@opencode/ai/providers/google-vertex/responses")],
115
+ ["@opencode/ai/providers/google-vertex/messages", () => import("@opencode/ai/providers/google-vertex/messages")],
116
+ ["@opencode/ai/providers/groq", () => import("@opencode/ai/providers/groq")],
117
+ ["@opencode/ai/providers/meta/chat", () => import("@opencode/ai/providers/meta/chat")],
118
+ ["@opencode/ai/providers/meta/messages", () => import("@opencode/ai/providers/meta/messages")],
119
+ ["@opencode/ai/providers/meta/responses", () => import("@opencode/ai/providers/meta/responses")],
120
+ ["@opencode/ai/providers/minimax/chat", () => import("@opencode/ai/providers/minimax/chat")],
121
+ ["@opencode/ai/providers/minimax/messages", () => import("@opencode/ai/providers/minimax/messages")],
122
+ ["@opencode/ai/providers/minimax/responses", () => import("@opencode/ai/providers/minimax/responses")],
123
+ ["@opencode/ai/providers/mistral", () => import("@opencode/ai/providers/mistral")],
124
+ ["@opencode/ai/providers/moonshot/chat", () => import("@opencode/ai/providers/moonshot/chat")],
125
+ ["@opencode/ai/providers/moonshot/messages", () => import("@opencode/ai/providers/moonshot/messages")],
126
+ ["@opencode/ai/providers/moonshot/responses", () => import("@opencode/ai/providers/moonshot/responses")],
127
+ ["@opencode/ai/providers/openai", () => import("@opencode/ai/providers/openai")],
128
+ ["@opencode/ai/providers/openai/chat", () => import("@opencode/ai/providers/openai/chat")],
129
+ ["@opencode/ai/providers/openai/responses", () => import("@opencode/ai/providers/openai/responses")],
130
+ ["@opencode/ai/providers/openai-compatible", () => import("@opencode/ai/providers/openai-compatible")],
131
+ ["@opencode/ai/providers/openrouter", () => import("@opencode/ai/providers/openrouter")],
132
+ ["@opencode/ai/providers/togetherai", () => import("@opencode/ai/providers/togetherai")],
133
+ ["@opencode/ai/providers/xai", () => import("@opencode/ai/providers/xai")],
134
+ ["@opencode/ai/providers/zai/chat", () => import("@opencode/ai/providers/zai/chat")],
135
+ ["@opencode/ai/providers/zai-coding-plan/chat", () => import("@opencode/ai/providers/zai-coding-plan/chat")],
136
+ ["@opencode/ai/providers/zai-coding-plan/messages", () => import("@opencode/ai/providers/zai-coding-plan/messages")],
137
+ [
138
+ "@opencode/ai/providers/zai-coding-plan/responses",
139
+ () => import("@opencode/ai/providers/zai-coding-plan/responses")
140
+ ]
141
+ ]);
142
+ var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
143
+ const specifier = packageName2(input);
144
+ const builtin = builtins.get(specifier);
145
+ if (builtin)
146
+ return yield* importPackage(specifier, specifier, builtin);
147
+ const resolved = yield* Effect.sync(() => {
148
+ if (specifier.startsWith("file://") || specifier.startsWith("@opencode/ai/"))
149
+ return specifier;
150
+ try {
151
+ return import.meta.resolve(specifier);
152
+ } catch {
153
+ return;
154
+ }
155
+ });
156
+ if (resolved)
157
+ return yield* importPackage(specifier, resolved);
158
+ if (!npm) {
159
+ return yield* new LoadError3({
160
+ package: specifier,
161
+ cause: new Error(`Provider package ${specifier} is not installed`)
162
+ });
163
+ }
164
+ const parts = specifier.split("/");
165
+ const root = specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0] ?? specifier;
166
+ const installed = yield* npm.add(root).pipe(Effect.mapError((cause) => new LoadError3({ package: specifier, cause })));
167
+ const entrypoint = yield* Effect.try({
168
+ try: () => resolveModule(specifier, installed.directory),
169
+ catch: (cause) => new LoadError3({ package: specifier, cause })
170
+ });
171
+ return yield* importPackage(specifier, entrypoint);
172
+ });
173
+ var TRANSPORT_KEYS = ["chunkTimeout", "fetch", "timeout"];
174
+ function nativeSettings2(settings) {
175
+ return Struct.omit(settings, TRANSPORT_KEYS);
176
+ }
177
+ function mergeOverlay2(base, overlay) {
178
+ if (base === undefined)
179
+ return overlay && decodeJsonRecord({ ...overlay });
180
+ if (overlay === undefined)
181
+ return decodeJsonRecord({ ...base });
182
+ return decodeJsonRecord(Object.fromEntries(new Set([...Object.keys(base), ...Object.keys(overlay)]).values().map((key) => {
183
+ const left = base[key];
184
+ const right = overlay[key];
185
+ if (right === undefined)
186
+ return [key, left];
187
+ if (isRecord(left) && isRecord(right))
188
+ return [key, mergeOverlay2(left, right) ?? {}];
189
+ return [key, right];
190
+ })));
191
+ }
192
+ function mergeHeaders2(base, overlay) {
193
+ if (base === undefined)
194
+ return overlay && { ...overlay };
195
+ if (overlay === undefined)
196
+ return { ...base };
197
+ return Object.fromEntries([...Object.entries(base), ...Object.entries(overlay)].reduce((result, entry) => {
198
+ result.set(entry[0].toLowerCase(), entry);
199
+ return result;
200
+ }, new Map).values());
201
+ }
202
+ var Request3 = Provider.Request;
203
+ var Settings2 = Provider.Settings;
204
+ var Info23 = Provider.Info;
205
+
206
+ class Service61 extends Context.Service()("@opencode/Provider") {
207
+ }
208
+ var definitions = new WeakMap;
209
+ function index(providerID, models) {
210
+ const indexes = definitions.get(models) ?? new Map;
211
+ const cached = indexes.get(providerID);
212
+ if (cached)
213
+ return cached;
214
+ const result = freeze(new Map(models.map((model) => [model.id, model.providerID === providerID ? model : { ...model, providerID }])), true);
215
+ indexes.set(providerID, result);
216
+ definitions.set(models, indexes);
217
+ return result;
218
+ }
219
+ var layer = Layer.effect(Service61, Effect.gen(function* () {
220
+ const bus = yield* Service81;
221
+ const integrations = yield* Service62;
222
+ const location = yield* Service76;
223
+ const state = create3({
224
+ name: "provider",
225
+ initial: () => new Map,
226
+ editor: (records) => {
227
+ const maps = new WeakSet;
228
+ const models = new WeakSet;
229
+ const entry = (id) => {
230
+ const current = records.get(id);
231
+ if (current)
232
+ return current;
233
+ const added = { provider: Info23.empty(id), models: new Map };
234
+ records.set(id, added);
235
+ maps.add(added.models);
236
+ return added;
237
+ };
238
+ const writable = (id) => {
239
+ const record = entry(id);
240
+ if (maps.has(record.models))
241
+ return record.models;
242
+ const owned = new Map(record.models);
243
+ record.models = owned;
244
+ maps.add(owned);
245
+ return owned;
246
+ };
247
+ return {
248
+ list: () => Array.from(records.values()),
249
+ get: (id) => records.get(id),
250
+ add: (definition) => {
251
+ records.set(definition.info.id, {
252
+ provider: structuredClone(definition.info),
253
+ models: index(definition.info.id, definition.models),
254
+ sourceConnection: definition.sourceConnection
255
+ });
256
+ },
257
+ update: (id, update) => {
258
+ const record = entry(id);
259
+ update(record.provider);
260
+ record.provider.id = id;
261
+ rewrite2(record.provider, {
262
+ specifier: record.provider.package,
263
+ providerID: id,
264
+ canonical: record.provider.canonical
265
+ });
266
+ },
267
+ remove: (id) => {
268
+ records.delete(id);
269
+ },
270
+ models: {
271
+ set: (id, values) => {
272
+ entry(id).models = index(id, values);
273
+ },
274
+ update: (providerID, modelID, update) => {
275
+ const record = entry(providerID);
276
+ const target = writable(providerID);
277
+ const current = target.get(modelID);
278
+ const model = current && models.has(current) && !Object.isFrozen(current) ? current : current ? structuredClone(current) : Model.Info.default(providerID, modelID);
279
+ update(model);
280
+ model.id = modelID;
281
+ model.providerID = providerID;
282
+ rewrite2(model, {
283
+ specifier: model.package ?? record.provider.package,
284
+ providerID,
285
+ canonical: model.canonical ?? record.provider.canonical,
286
+ modelID: model.modelID ?? modelID
287
+ });
288
+ models.add(model);
289
+ target.set(modelID, model);
290
+ },
291
+ remove: (providerID, modelID) => {
292
+ if (!records.has(providerID))
293
+ return;
294
+ writable(providerID).delete(modelID);
295
+ }
296
+ }
297
+ };
298
+ },
299
+ notify: () => notify
300
+ });
301
+ yield* Effect.addFinalizer(() => shutdown2(state.reload()));
302
+ let cached;
303
+ const snapshot = Effect.fn("Provider.snapshot")(function* () {
304
+ while (true) {
305
+ const revision = integrations.revision();
306
+ const records = state.get();
307
+ const connections = yield* integrations.list();
308
+ if (revision !== integrations.revision() || records !== state.get())
309
+ continue;
310
+ const byID = new Map(connections.map((integration) => [integration.id, integration]));
311
+ const available = Array.from(records.values()).filter((record) => {
312
+ if (record.provider.activation === "disabled")
313
+ return false;
314
+ const integration = byID.get(record.provider.integrationID ?? ID10.make(record.provider.id));
315
+ if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
316
+ return false;
317
+ if (record.provider.activation === "enabled")
318
+ return true;
319
+ if (integration?.connections.length)
320
+ return true;
321
+ return record.provider.integrationID === undefined && !integration;
322
+ });
323
+ if (cached?.records === records && cached.value.available.length === available.length && cached.value.available.every((record, index) => record === available[index]))
324
+ return cached.value;
325
+ const value = freeze({ records, available, providers: available.map((record) => record.provider) }, true);
326
+ cached = { records, value };
327
+ return value;
328
+ }
329
+ });
330
+ let published;
331
+ const notify = Effect.gen(function* () {
332
+ const value = yield* snapshot();
333
+ if (value === published)
334
+ return;
335
+ published = value;
336
+ yield* bus.publish(Provider.Event.Updated, {}, {
337
+ location: { directory: location.directory, workspaceID: location.workspaceID }
338
+ });
339
+ });
340
+ yield* bus.subscribe([Event14.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
341
+ return Service61.of({
342
+ transform: state.transform,
343
+ reload: state.reload,
344
+ get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
345
+ all: Effect.fn("Provider.all")(() => Effect.sync(() => Array.from(state.get().values(), (record) => freeze(record.provider, true)))),
346
+ available: Effect.fn("Provider.available")(() => snapshot().pipe(Effect.map((value) => value.providers))),
347
+ snapshot
348
+ });
349
+ }));
350
+ var node64 = makeLocationNode({ service: Service61, layer, deps: [node85, node65, node80] });
351
+ var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
352
+ const module = yield* Effect.tryPromise({
353
+ try: () => {
354
+ const existing = packages.get(entrypoint);
355
+ if (existing)
356
+ return existing;
357
+ const loaded = load();
358
+ packages.set(entrypoint, loaded);
359
+ return loaded;
360
+ },
361
+ catch: (cause) => new LoadError3({ package: specifier, cause })
362
+ });
363
+ if (typeof module !== "object" || module === null || typeof module.model !== "function") {
364
+ return yield* new LoadError3({
365
+ package: specifier,
366
+ cause: new Error(`Provider package ${specifier} does not export model(modelID, settings)`)
367
+ });
368
+ }
369
+ return module;
370
+ });
371
+
372
+ // src/aisdk-native.ts
373
+ function rewrite2(target, input) {
374
+ if (input.specifier === undefined)
375
+ return;
376
+ const plain = resolve(input.specifier, input);
377
+ if (!plain)
378
+ return;
379
+ const settings = decode(target.settings ?? {});
380
+ const replacement = resolve(input.specifier, { ...input, settings }) ?? plain;
381
+ const translated = options(replacement, input.modelID, settings);
382
+ if (target.package !== undefined || replacement !== input.specifier)
383
+ target.package = replacement;
384
+ target.settings = target.settings === undefined ? undefined : {
385
+ ...translated.settings,
386
+ ...!NATIVE.has(input.specifier) && replacement === "@opencode/ai/providers/openai-compatible" ? { provider: input.canonical ?? input.providerID } : {}
387
+ };
388
+ target.headers = mergeHeaders2(translated.headers, target.headers);
389
+ target.body = mergeOverlay2(translated.body, target.body);
390
+ target.variants = target.variants?.map((variant) => {
391
+ const overlay = options(replacement, input.modelID, decode(variant.settings ?? {}));
392
+ const headers = mergeHeaders2(overlay.headers, variant.headers);
393
+ const body = mergeOverlay2(overlay.body, variant.body);
394
+ return {
395
+ id: variant.id,
396
+ ...variant.settings === undefined ? {} : { settings: overlay.settings },
397
+ ...headers === undefined ? {} : { headers },
398
+ ...body === undefined ? {} : { body }
399
+ };
400
+ });
401
+ }
402
+ var PACKAGES = {
403
+ "@ai-sdk/amazon-bedrock": "@opencode/ai/providers/amazon-bedrock",
404
+ "@ai-sdk/alibaba": "@opencode/ai/providers/alibaba/chat",
405
+ "@ai-sdk/anthropic": "@opencode/ai/providers/anthropic",
406
+ "@ai-sdk/azure": "@opencode/ai/providers/azure/responses",
407
+ "@ai-sdk/cerebras": "@opencode/ai/providers/cerebras",
408
+ "@ai-sdk/deepinfra": "@opencode/ai/providers/deepinfra",
409
+ "@ai-sdk/google": "@opencode/ai/providers/google",
410
+ "@ai-sdk/google-vertex": "@opencode/ai/providers/google-vertex",
411
+ "@ai-sdk/google-vertex/anthropic": "@opencode/ai/providers/google-vertex/messages",
412
+ "@ai-sdk/groq": "@opencode/ai/providers/groq",
413
+ "@ai-sdk/mistral": "@opencode/ai/providers/mistral",
414
+ "@ai-sdk/openai": "@opencode/ai/providers/openai",
415
+ "@ai-sdk/openai-compatible": "@opencode/ai/providers/openai-compatible",
416
+ "@ai-sdk/togetherai": "@opencode/ai/providers/togetherai",
417
+ "@ai-sdk/xai": "@opencode/ai/providers/xai",
418
+ "@openrouter/ai-sdk-provider": "@opencode/ai/providers/openrouter",
419
+ "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
420
+ };
421
+ var protocols = (name) => ({
422
+ "@ai-sdk/openai-compatible": `@opencode/ai/providers/${name}/chat`,
423
+ "@ai-sdk/anthropic": `@opencode/ai/providers/${name}/messages`,
424
+ "@ai-sdk/openai": `@opencode/ai/providers/${name}/responses`
425
+ });
426
+ var HOSTS = {
427
+ alibaba: protocols("alibaba"),
428
+ "alibaba-cn": protocols("alibaba"),
429
+ "alibaba-coding-plan": protocols("alibaba"),
430
+ "alibaba-coding-plan-cn": protocols("alibaba"),
431
+ "alibaba-token-plan": protocols("alibaba"),
432
+ "alibaba-token-plan-cn": protocols("alibaba"),
433
+ baseten: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/baseten" },
434
+ "cloudflare-ai-gateway": {
435
+ "@ai-sdk/anthropic": "@opencode/ai/providers/cloudflare-ai-gateway",
436
+ "@ai-sdk/openai": "@opencode/ai/providers/cloudflare-ai-gateway",
437
+ "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-ai-gateway",
438
+ "ai-gateway-provider": "@opencode/ai/providers/cloudflare-ai-gateway"
439
+ },
440
+ "cloudflare-workers-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/cloudflare-workers-ai" },
441
+ deepseek: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/deepseek" },
442
+ "fireworks-ai": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/fireworks" },
443
+ "google-vertex": { "@ai-sdk/openai-compatible": "@opencode/ai/providers/google-vertex/chat" },
444
+ "kimi-for-coding": protocols("moonshot"),
445
+ meta: protocols("meta"),
446
+ minimax: protocols("minimax"),
447
+ "minimax-cn": protocols("minimax"),
448
+ "minimax-coding-plan": protocols("minimax"),
449
+ "minimax-cn-coding-plan": protocols("minimax"),
450
+ moonshotai: protocols("moonshot"),
451
+ "moonshotai-cn": protocols("moonshot"),
452
+ zai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
453
+ "zai-coding-plan": protocols("zai-coding-plan"),
454
+ zhipuai: { "@ai-sdk/openai-compatible": "@opencode/ai/providers/zai/chat" },
455
+ "zhipuai-coding-plan": protocols("zai-coding-plan")
456
+ };
457
+ var NATIVE = new Set([
458
+ ...Object.values(PACKAGES),
459
+ ...Object.values(HOSTS).flatMap((host) => Object.values(host)),
460
+ "@opencode/ai/providers/azure/chat",
461
+ "@opencode/ai/providers/amazon-bedrock/mantle",
462
+ "@opencode/ai/providers/amazon-bedrock/mantle/chat",
463
+ "@opencode/ai/providers/amazon-bedrock/mantle/responses"
464
+ ]);
465
+ function native2(npm, context) {
466
+ const host = HOSTS[context.providerID]?.[npm];
467
+ if (host)
468
+ return host;
469
+ if (npm === "@ai-sdk/amazon-bedrock/mantle")
470
+ return mantle(context.modelID);
471
+ if (npm === "@ai-sdk/azure" && context.settings?.useCompletionUrls === true)
472
+ return "@opencode/ai/providers/azure/chat";
473
+ return PACKAGES[npm];
474
+ }
475
+ var mantle = (modelID) => {
476
+ if (modelID === undefined)
477
+ return "@opencode/ai/providers/amazon-bedrock/mantle";
478
+ return `@opencode/ai/providers/amazon-bedrock/mantle/${modelID.includes("gpt-oss") ? "chat" : "responses"}`;
479
+ };
480
+ function resolve(specifier, context) {
481
+ const npm = packageName2(specifier);
482
+ if (isAISDK2(specifier) || npm in PACKAGES || npm in (HOSTS[context.providerID] ?? {}))
483
+ return native2(npm, context);
484
+ if (npm === "@opencode/ai/providers/amazon-bedrock/mantle")
485
+ return mantle(context.modelID);
486
+ if (npm === "@opencode/ai/providers/azure/responses" && context.settings?.useCompletionUrls === true)
487
+ return "@opencode/ai/providers/azure/chat";
488
+ return NATIVE.has(npm) ? npm : undefined;
489
+ }
490
+ function options(replacement, modelID, settings) {
491
+ const converse = replacement === "@opencode/ai/providers/amazon-bedrock" && modelID !== undefined;
492
+ const kept = Struct2.omit(settings, ["headers", "extraBody", "useCompletionUrls", ...OPENROUTER_KEYS]);
493
+ return {
494
+ settings: replacement.startsWith("@opencode/ai/providers/amazon-bedrock") ? bedrockSettings(kept, converse) : kept,
495
+ ...settings.headers === undefined ? {} : { headers: settings.headers },
496
+ ...settings.extraBody === undefined ? {} : { body: settings.extraBody },
497
+ ...converse ? bedrockRequest(modelID, settings) : {},
498
+ ...replacement === "@opencode/ai/providers/openrouter" ? openRouterRequest(settings) : {}
499
+ };
500
+ }
501
+ var BEDROCK_KEYS = [
502
+ "bearerToken",
503
+ "endpoint",
504
+ "credentials",
505
+ "credentialProvider",
506
+ "accessKeyId",
507
+ "secretAccessKey",
508
+ "sessionToken"
509
+ ];
510
+ var CONVERSE_KEYS = ["additionalModelRequestFields", "reasoningConfig", "anthropicBeta", "serviceTier"];
511
+ function bedrockSettings(settings, converse) {
512
+ const region = settings.region ?? settings.credentials?.region;
513
+ const credentials = settings.credentials ?? settings;
514
+ const baseURL = settings.baseURL ?? settings.endpoint;
515
+ return {
516
+ ...Struct2.omit(settings, converse ? [...BEDROCK_KEYS, ...CONVERSE_KEYS] : BEDROCK_KEYS),
517
+ ...baseURL === undefined ? {} : { baseURL: region === undefined ? baseURL : baseURL.replaceAll("${AWS_REGION}", region) },
518
+ ...settings.apiKey === undefined && settings.bearerToken !== undefined ? { apiKey: settings.bearerToken } : {},
519
+ ...credentials.accessKeyId === undefined || credentials.secretAccessKey === undefined ? {} : {
520
+ credentials: {
521
+ ...region === undefined ? {} : { region },
522
+ accessKeyId: credentials.accessKeyId,
523
+ secretAccessKey: credentials.secretAccessKey,
524
+ ...credentials.sessionToken === undefined ? {} : { sessionToken: credentials.sessionToken }
525
+ }
526
+ }
527
+ };
528
+ }
529
+ function bedrockRequest(modelID, settings) {
530
+ const additional = settings.additionalModelRequestFields ?? {};
531
+ const reasoning = settings.reasoningConfig;
532
+ const anthropic = modelID?.includes("anthropic") ?? false;
533
+ const openai = modelID?.includes("openai.") ?? false;
534
+ const harmony = modelID?.includes("openai.gpt-oss") ?? false;
535
+ const effort = reasoning?.maxReasoningEffort;
536
+ const type = reasoning?.type;
537
+ const budget = reasoning?.budgetTokens;
538
+ const display = reasoning?.display;
539
+ const betas = settings.anthropicBeta ?? [];
540
+ const fields = mergeOverlay2(additional, {
541
+ ...betas.length > 0 ? { anthropic_beta: [...additional.anthropic_beta ?? [], ...betas] } : {},
542
+ ...anthropic && type === "enabled" && budget !== undefined ? { thinking: { type: "enabled", budget_tokens: budget } } : {},
543
+ ...anthropic && type === "adaptive" ? { thinking: { type: "adaptive", ...display === undefined ? {} : { display } } } : {},
544
+ ...anthropic && effort !== undefined ? { output_config: { ...additional.output_config, effort } } : {},
545
+ ...!anthropic && openai && harmony && effort !== undefined ? { reasoning_effort: effort } : {},
546
+ ...!anthropic && openai && !harmony && effort !== undefined ? { reasoning: { ...additional.reasoning, effort } } : {},
547
+ ...!anthropic && !openai && effort !== undefined ? {
548
+ reasoningConfig: {
549
+ ...type === undefined || type === "adaptive" ? {} : { type },
550
+ ...budget === undefined ? {} : { budgetTokens: budget },
551
+ maxReasoningEffort: effort
552
+ }
553
+ } : {}
554
+ });
555
+ const body = {
556
+ ...fields && Object.keys(fields).length > 0 ? { additionalModelRequestFields: fields } : {},
557
+ ...settings.serviceTier === undefined ? {} : { serviceTier: { type: settings.serviceTier } }
558
+ };
559
+ return Object.keys(body).length === 0 ? {} : { body };
560
+ }
561
+ var OPENROUTER_KEYS = ["appName", "appUrl", "api_keys", "compatibility"];
562
+ function openRouterRequest(settings) {
563
+ const headers = mergeHeaders2({
564
+ ...settings.appName === undefined ? {} : { "X-OpenRouter-Title": settings.appName },
565
+ ...settings.appUrl === undefined ? {} : { "HTTP-Referer": settings.appUrl },
566
+ ...settings.api_keys === undefined || Object.keys(settings.api_keys).length === 0 ? {} : { "X-Provider-API-Keys": JSON.stringify(settings.api_keys) }
567
+ }, settings.headers) ?? {};
568
+ return Object.keys(headers).length === 0 ? {} : { headers };
569
+ }
570
+ var lenient = (schema) => Schema2.optional(Schema2.UndefinedOr(schema).pipe(Schema2.catchDecoding(() => Effect2.succeed(Option.some(undefined)))));
571
+ var Credentials = Schema2.Struct({
572
+ accessKeyId: Schema2.String,
573
+ secretAccessKey: Schema2.String,
574
+ sessionToken: lenient(Schema2.String),
575
+ region: lenient(Schema2.String)
576
+ });
577
+ var Legacy = Schema2.StructWithRest(Schema2.Struct({
578
+ apiKey: lenient(Schema2.String),
579
+ baseURL: lenient(Schema2.String),
580
+ headers: lenient(Schema2.Record(Schema2.String, Schema2.String)),
581
+ extraBody: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
582
+ useCompletionUrls: lenient(Schema2.Boolean),
583
+ auth: lenient(Schema2.Literals(["bearer", "sigv4"])),
584
+ bearerToken: lenient(Schema2.String),
585
+ endpoint: lenient(Schema2.String),
586
+ region: lenient(Schema2.String),
587
+ credentials: lenient(Credentials),
588
+ accessKeyId: lenient(Schema2.String),
589
+ secretAccessKey: lenient(Schema2.String),
590
+ sessionToken: lenient(Schema2.String),
591
+ anthropicBeta: lenient(Schema2.Array(Schema2.String)),
592
+ serviceTier: lenient(Schema2.String),
593
+ reasoningConfig: lenient(Schema2.Struct({
594
+ type: lenient(Schema2.String),
595
+ display: lenient(Schema2.String),
596
+ maxReasoningEffort: lenient(Schema2.String),
597
+ budgetTokens: lenient(Schema2.Number)
598
+ })),
599
+ additionalModelRequestFields: lenient(Schema2.StructWithRest(Schema2.Struct({
600
+ anthropic_beta: lenient(Schema2.Array(Schema2.String)),
601
+ output_config: lenient(Schema2.Record(Schema2.String, Schema2.Unknown)),
602
+ reasoning: lenient(Schema2.Record(Schema2.String, Schema2.Unknown))
603
+ }), [Schema2.Record(Schema2.String, Schema2.Unknown)])),
604
+ appName: lenient(Schema2.String),
605
+ appUrl: lenient(Schema2.String),
606
+ api_keys: lenient(Schema2.Record(Schema2.String, Schema2.String))
607
+ }), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
608
+ var decode = Schema2.decodeUnknownSync(Legacy);
609
+
610
+ export { rewrite2, native2, exports_aisdk_native, ID9, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, mergeOverlay2, mergeHeaders2, Request3, Settings2, Info23, Service61, node64, exports_provider3, Event13 };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  latest2,
3
- Service55
4
- } from "./mime-6q31zrbr.js";
3
+ Service39
4
+ } from "./instruction-discovery-h2vfddx5.js";
5
5
  import {
6
6
  __export
7
- } from "./mime-9rqn6x4v.js";
7
+ } from "./instruction-discovery-9rqn6x4v.js";
8
8
 
9
9
  // src/plugin/warming.ts
10
10
  var exports_warming = {};
11
11
  __export(exports_warming, {
12
- Plugin: () => Plugin14,
12
+ Plugin: () => Plugin28,
13
13
  WarmingPlugin: () => exports_warming
14
14
  });
15
15
  import { define } from "@opencode/plugin/effect/plugin";
@@ -19,10 +19,10 @@ var defaults = {
19
19
  interval: Duration.minutes(4),
20
20
  duration: Duration.minutes(30)
21
21
  };
22
- var Plugin14 = define({
22
+ var Plugin28 = define({
23
23
  id: "opencode.warming",
24
24
  effect: Effect.fn(function* (ctx) {
25
- const config = yield* Service55;
25
+ const config = yield* Service39;
26
26
  const loadSettings = Effect.fn("WarmingPlugin.loadSettings")(function* () {
27
27
  const warming = latest2(yield* config.entries(), "warming");
28
28
  if (!warming)
@@ -93,4 +93,4 @@ var Plugin14 = define({
93
93
  })
94
94
  });
95
95
 
96
- export { Plugin14, exports_warming };
96
+ export { Plugin28, exports_warming };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  __export
3
- } from "./mime-9rqn6x4v.js";
3
+ } from "./instruction-discovery-9rqn6x4v.js";
4
4
 
5
5
  // src/config/markdown.ts
6
6
  var exports_markdown = {};