@opencode/core 0.0.0-beta-19500 → 0.0.0-dev-19274

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 (813) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +81 -82
  3. package/dist/aisdk-native.js +2 -2
  4. package/dist/aisdk.js +6 -6
  5. package/dist/app.js +7 -7
  6. package/dist/bus.js +73 -74
  7. package/dist/catalog.js +83 -84
  8. package/dist/chunks/{model-resolver-6jcw83n3.js → file-008dah4r.js} +47 -51
  9. package/dist/chunks/{model-resolver-f8zs2stk.js → file-04bp4d3m.js} +11 -11
  10. package/dist/chunks/{model-resolver-t7n9q6bq.js → file-06x8he3q.js} +4 -4
  11. package/dist/chunks/{model-resolver-h3k867zz.js → file-0djf8xh9.js} +3 -3
  12. package/dist/chunks/{model-resolver-s1vvg2cq.js → file-0ea3rya4.js} +7 -7
  13. package/dist/chunks/{model-resolver-0paq2nw3.js → file-0paq2nw3.js} +1 -1
  14. package/dist/chunks/{model-resolver-0q0f95c6.js → file-0q0f95c6.js} +1 -1
  15. package/dist/chunks/{model-resolver-7z7az0f5.js → file-0rpg7gzc.js} +4 -4
  16. package/dist/chunks/{model-resolver-581kfnqp.js → file-0rvyveqe.js} +18 -18
  17. package/dist/chunks/{model-resolver-jwazx1ed.js → file-1ajj2c3r.js} +36 -36
  18. package/dist/chunks/{model-resolver-1dazxqgg.js → file-1dazxqgg.js} +2 -2
  19. package/dist/chunks/{model-resolver-4y66k410.js → file-1dfhrqqs.js} +3 -11
  20. package/dist/chunks/{model-resolver-mhdwrqr0.js → file-1ndzzahp.js} +3 -3
  21. package/dist/chunks/{model-resolver-q87s0xy8.js → file-1q2nd9f6.js} +63 -63
  22. package/dist/chunks/{model-resolver-vxp3kcg3.js → file-1q5awywt.js} +5 -5
  23. package/dist/chunks/{model-resolver-g6fkknnq.js → file-1s5k653j.js} +29 -29
  24. package/dist/chunks/{model-resolver-bq4vzaks.js → file-1xb0henf.js} +46 -46
  25. package/dist/chunks/{model-resolver-mwnd972w.js → file-1xzdp18p.js} +35 -35
  26. package/dist/chunks/{model-resolver-1ygqh575.js → file-1ygqh575.js} +2 -2
  27. package/dist/chunks/{model-resolver-21r38tys.js → file-21r38tys.js} +1 -1
  28. package/dist/chunks/{model-resolver-2402vzrj.js → file-2402vzrj.js} +1 -1
  29. package/dist/chunks/{model-resolver-0jwvfzzp.js → file-25kqvm6v.js} +25 -27
  30. package/dist/chunks/{model-resolver-z63w68vq.js → file-29x78va6.js} +6 -6
  31. package/dist/chunks/{model-resolver-2a5m3afh.js → file-2a5m3afh.js} +1 -1
  32. package/dist/chunks/{model-resolver-818pfwc9.js → file-2bdsn8gv.js} +11 -11
  33. package/dist/chunks/{model-resolver-qa6ytjmd.js → file-2bk70kd1.js} +13 -13
  34. package/dist/chunks/{model-resolver-p52p41ww.js → file-2cws46q3.js} +14 -14
  35. package/dist/chunks/{model-resolver-rj9a996t.js → file-2erbc7c4.js} +9 -9
  36. package/dist/chunks/{model-resolver-8p2zvf0d.js → file-2f1k6btd.js} +76 -107
  37. package/dist/chunks/{model-resolver-1gqabzhy.js → file-2j4ksk9q.js} +18 -19
  38. package/dist/chunks/{model-resolver-trk3y68z.js → file-2k29q1p2.js} +59 -59
  39. package/dist/chunks/{model-resolver-3tq8bdpm.js → file-2nck4hg8.js} +13 -13
  40. package/dist/chunks/{model-resolver-64at0fy0.js → file-2nhrma10.js} +8 -8
  41. package/dist/chunks/file-2nz9k5ke.js +247 -0
  42. package/dist/chunks/{model-resolver-g53r2hff.js → file-2qz021p1.js} +40 -40
  43. package/dist/chunks/{model-resolver-atny4vj3.js → file-2tv38tk1.js} +11 -11
  44. package/dist/chunks/{model-resolver-vvccsdf3.js → file-3c1tgrea.js} +6 -6
  45. package/dist/chunks/{model-resolver-d2aac7k2.js → file-3cz8rj72.js} +5 -5
  46. package/dist/chunks/{model-resolver-3hepkmqq.js → file-3hepkmqq.js} +1 -1
  47. package/dist/chunks/{model-resolver-3q1jyqhd.js → file-3jp54z3r.js} +1 -1
  48. package/dist/chunks/{model-resolver-a2cfvfg1.js → file-3m095h8d.js} +20 -20
  49. package/dist/chunks/{model-resolver-mb5a7wwz.js → file-3nj27wxf.js} +10 -10
  50. package/dist/chunks/{model-resolver-3smtnn6g.js → file-3smtnn6g.js} +1 -1
  51. package/dist/chunks/{model-resolver-xdk7tsve.js → file-3trbxeqx.js} +1 -1
  52. package/dist/chunks/{model-resolver-3tvqynh2.js → file-3tvqynh2.js} +1 -1
  53. package/dist/chunks/{model-resolver-e86807kd.js → file-3wj4wm80.js} +83 -86
  54. package/dist/chunks/{model-resolver-ggj3dvvh.js → file-3x6z6rsx.js} +12 -12
  55. package/dist/chunks/{model-resolver-aztjpt51.js → file-4g3hne3q.js} +20 -23
  56. package/dist/chunks/{model-resolver-djqd3v5p.js → file-4hszn1mb.js} +43 -94
  57. package/dist/chunks/{model-resolver-0vvagabw.js → file-4qfh6hxk.js} +27 -27
  58. package/dist/chunks/file-4v7qdvcn.js +18 -0
  59. package/dist/chunks/{model-resolver-8abbabsk.js → file-4vf981v9.js} +24 -24
  60. package/dist/chunks/{model-resolver-70xr52zc.js → file-4w7x8wv5.js} +30 -30
  61. package/dist/chunks/{model-resolver-zpkbxaqd.js → file-4x6ztkk5.js} +5 -7
  62. package/dist/chunks/{model-resolver-9stj6zpb.js → file-4znd88gj.js} +32 -32
  63. package/dist/chunks/{model-resolver-q91t8a1k.js → file-51kk6f2e.js} +19 -19
  64. package/dist/chunks/{model-resolver-qn8ypmg1.js → file-58ax6zm2.js} +18 -18
  65. package/dist/chunks/{model-resolver-d880b0y6.js → file-5965tgm9.js} +30 -30
  66. package/dist/chunks/{model-resolver-a1bz86dw.js → file-5c4hm403.js} +3 -3
  67. package/dist/chunks/{model-resolver-5daktx2q.js → file-5daktx2q.js} +1 -1
  68. package/dist/chunks/{model-resolver-5t3nmthw.js → file-5t3nmthw.js} +2 -2
  69. package/dist/chunks/{model-resolver-s5wnyv46.js → file-5vc2whd9.js} +30 -30
  70. package/dist/chunks/{model-resolver-s72x8wcp.js → file-5vvax2qg.js} +23 -23
  71. package/dist/chunks/{model-resolver-prp52c5q.js → file-5xhpatkf.js} +11 -11
  72. package/dist/chunks/{model-resolver-669tq793.js → file-669tq793.js} +1 -1
  73. package/dist/chunks/{model-resolver-5v85fpgj.js → file-67e9xs01.js} +25 -25
  74. package/dist/chunks/{model-resolver-07cx4w7f.js → file-6c7ejz51.js} +4 -4
  75. package/dist/chunks/{model-resolver-98a0b00a.js → file-6fdj6kdr.js} +4 -4
  76. package/dist/chunks/{model-resolver-k6556a45.js → file-6kgc56n8.js} +6 -6
  77. package/dist/chunks/{model-resolver-6msgmcgs.js → file-6msgmcgs.js} +1 -1
  78. package/dist/chunks/{model-resolver-71q4at8m.js → file-71q4at8m.js} +1 -1
  79. package/dist/chunks/{model-resolver-kx6yd4vg.js → file-79175vp8.js} +35 -35
  80. package/dist/chunks/{model-resolver-kbn8346a.js → file-79zsnxkc.js} +11 -11
  81. package/dist/chunks/{model-resolver-vncycja5.js → file-7atngb88.js} +4 -4
  82. package/dist/chunks/{model-resolver-bcbgj7m0.js → file-7be1f342.js} +18 -18
  83. package/dist/chunks/{model-resolver-7bmhse3q.js → file-7bmhse3q.js} +1 -1
  84. package/dist/chunks/{model-resolver-2k8khapm.js → file-7dqw4kz8.js} +5 -5
  85. package/dist/chunks/{model-resolver-789bpvq4.js → file-7g79e5pr.js} +11 -11
  86. package/dist/chunks/{model-resolver-y3fea29m.js → file-7sgb7w3n.js} +32 -92
  87. package/dist/chunks/{model-resolver-z2kz5700.js → file-7xdgscg1.js} +17 -17
  88. package/dist/chunks/{model-resolver-0hf448nj.js → file-81pg61w1.js} +8 -25
  89. package/dist/chunks/{model-resolver-rsym84ch.js → file-81swgkk7.js} +7 -7
  90. package/dist/chunks/{model-resolver-vy514hgv.js → file-82594dam.js} +9 -9
  91. package/dist/chunks/{model-resolver-1ptmpf20.js → file-84tssp1s.js} +9 -14
  92. package/dist/chunks/{model-resolver-6fvs6bkh.js → file-8bpbp254.js} +43 -43
  93. package/dist/chunks/{model-resolver-8d7r5vzw.js → file-8d7r5vzw.js} +1 -1
  94. package/dist/chunks/{model-resolver-f8xc4yre.js → file-8gbf9msb.js} +29 -29
  95. package/dist/chunks/{model-resolver-mg5mchpt.js → file-8gkhtxwv.js} +28 -28
  96. package/dist/chunks/{model-resolver-htk69tte.js → file-8ncz7km3.js} +7 -7
  97. package/dist/chunks/{model-resolver-ck6gmqc6.js → file-8tef8d4h.js} +43 -43
  98. package/dist/chunks/{model-resolver-h2fnsspk.js → file-94sf61n7.js} +19 -44
  99. package/dist/chunks/{model-resolver-75evgfh8.js → file-976ysedg.js} +15 -15
  100. package/dist/chunks/{model-resolver-26jcn8kh.js → file-9bey2zpa.js} +12 -12
  101. package/dist/chunks/{model-resolver-x1avke2d.js → file-9eqtwdne.js} +97 -92
  102. package/dist/chunks/{model-resolver-0334ef0p.js → file-9k2v62xn.js} +1 -1
  103. package/dist/chunks/file-9phvn7ns.js +71 -0
  104. package/dist/chunks/{model-resolver-4grgn5v0.js → file-a1d2hteq.js} +18 -18
  105. package/dist/chunks/{model-resolver-4vcrnpx2.js → file-a1tpkmh4.js} +3 -13
  106. package/dist/chunks/{model-resolver-hwap2x7x.js → file-a2zsx8ap.js} +25 -25
  107. package/dist/chunks/{model-resolver-aaet6srn.js → file-aaet6srn.js} +2 -2
  108. package/dist/chunks/{model-resolver-fvf9sjjr.js → file-ab8td0yc.js} +49 -47
  109. package/dist/chunks/{model-resolver-03s1nxke.js → file-agg557zn.js} +8 -8
  110. package/dist/chunks/{model-resolver-r532bney.js → file-anvxjef4.js} +4 -4
  111. package/dist/chunks/{model-resolver-2verbhpp.js → file-arm49q9k.js} +35 -35
  112. package/dist/chunks/{model-resolver-gkv3re89.js → file-aw3yg1a6.js} +11 -11
  113. package/dist/chunks/{model-resolver-mz65vdgf.js → file-axh6m6j7.js} +18 -18
  114. package/dist/chunks/{model-resolver-g190xswt.js → file-axmvebxj.js} +21 -21
  115. package/dist/chunks/{model-resolver-b22gj5xn.js → file-b4n85fcv.js} +26 -26
  116. package/dist/chunks/{model-resolver-mz60zy6e.js → file-b4nrwvyj.js} +29 -28
  117. package/dist/chunks/{model-resolver-b6gygkdw.js → file-b6gygkdw.js} +2 -2
  118. package/dist/chunks/{model-resolver-121k57vw.js → file-bby00dsd.js} +8 -8
  119. package/dist/chunks/{model-resolver-dktryzc1.js → file-bdbwpwhn.js} +26 -27
  120. package/dist/chunks/{model-resolver-xs8g0vg3.js → file-bdkz1q2y.js} +6 -6
  121. package/dist/chunks/{model-resolver-e6fygs6z.js → file-bge4fr1z.js} +25 -25
  122. package/dist/chunks/{model-resolver-1zkr721w.js → file-bjpmp57t.js} +13 -13
  123. package/dist/chunks/{model-resolver-87qnmf38.js → file-bkqrvamq.js} +36 -36
  124. package/dist/chunks/{model-resolver-zf0svfz5.js → file-c6jw9d6c.js} +16 -16
  125. package/dist/chunks/{model-resolver-csz41kxq.js → file-c7m8954m.js} +5 -5
  126. package/dist/chunks/{model-resolver-8y92rm17.js → file-c9kt1fwd.js} +7 -7
  127. package/dist/chunks/{model-resolver-kk8h1mek.js → file-cny5rd43.js} +8 -8
  128. package/dist/chunks/{model-resolver-z7dhx1kn.js → file-cp5f26bt.js} +24 -24
  129. package/dist/chunks/{model-resolver-1hc11dc4.js → file-csf2jhsg.js} +4 -4
  130. package/dist/chunks/{model-resolver-hwxt52gm.js → file-csyt93pz.js} +5 -5
  131. package/dist/chunks/{model-resolver-8yrnm0fa.js → file-cz12sndv.js} +29 -29
  132. package/dist/chunks/{model-resolver-j12k6d1r.js → file-d0chnedg.js} +29 -29
  133. package/dist/chunks/{model-resolver-0mywzg06.js → file-d8drewm4.js} +28 -28
  134. package/dist/chunks/{model-resolver-8p4f9s12.js → file-dj2t23y0.js} +2 -2
  135. package/dist/chunks/{model-resolver-dpkg50ah.js → file-dpkg50ah.js} +1 -1
  136. package/dist/chunks/{model-resolver-qwkytnft.js → file-dsf3jx99.js} +30 -9
  137. package/dist/chunks/{model-resolver-j7wq2tw5.js → file-dv250zvr.js} +3 -3
  138. package/dist/chunks/{model-resolver-t6gatd88.js → file-dvmnmd5k.js} +50 -50
  139. package/dist/chunks/{model-resolver-942176fc.js → file-dw8dc0pw.js} +11 -11
  140. package/dist/chunks/{model-resolver-e82z9tr0.js → file-e82z9tr0.js} +1 -1
  141. package/dist/chunks/{model-resolver-rtkh6q4b.js → file-e9vyr379.js} +11 -11
  142. package/dist/chunks/{model-resolver-mrsqtdpn.js → file-ec2j1krk.js} +36 -36
  143. package/dist/chunks/file-eex81ar0.js +272 -0
  144. package/dist/chunks/{model-resolver-tp3xxvx5.js → file-em6n8dz9.js} +48 -48
  145. package/dist/chunks/{model-resolver-z2b5d6zb.js → file-endpbns8.js} +6 -6
  146. package/dist/chunks/{model-resolver-7fys8geh.js → file-enk99f8n.js} +16 -16
  147. package/dist/chunks/{model-resolver-9rzqjwaz.js → file-esdnemd6.js} +1 -1
  148. package/dist/chunks/{model-resolver-etq0c3wd.js → file-etq0c3wd.js} +1 -1
  149. package/dist/chunks/{model-resolver-t9e5d74p.js → file-exww9xwg.js} +9 -9
  150. package/dist/chunks/{model-resolver-1acjjqhc.js → file-f2n192rq.js} +4 -4
  151. package/dist/chunks/{model-resolver-x6geafsy.js → file-fq1h1v14.js} +3 -3
  152. package/dist/chunks/{model-resolver-fxbjtjnd.js → file-fxbjtjnd.js} +1 -1
  153. package/dist/chunks/{model-resolver-0wbgnjtz.js → file-g9ew5f51.js} +2 -2
  154. package/dist/chunks/{model-resolver-gd4qta3r.js → file-gd4qta3r.js} +1 -1
  155. package/dist/chunks/{model-resolver-37s12vcn.js → file-gdrhyezn.js} +5 -5
  156. package/dist/chunks/{model-resolver-gdvy8fx6.js → file-gdvy8fx6.js} +1 -1
  157. package/dist/chunks/{model-resolver-h7ygw6q4.js → file-gsx0ryk4.js} +9 -9
  158. package/dist/chunks/{model-resolver-h03wrkyp.js → file-h03wrkyp.js} +2 -2
  159. package/dist/chunks/{model-resolver-dqyg47hv.js → file-h2gyv3sg.js} +1 -1
  160. package/dist/chunks/{model-resolver-jbe1bvhn.js → file-h2wxq9m6.js} +27 -27
  161. package/dist/chunks/{model-resolver-yjv2keaj.js → file-h5pnkca0.js} +68 -42
  162. package/dist/chunks/file-h5wzpkcb.js +22 -0
  163. package/dist/chunks/{model-resolver-h6vf3j39.js → file-h6vf3j39.js} +1 -1
  164. package/dist/chunks/{model-resolver-f828m53h.js → file-hdnk95c8.js} +2 -2
  165. package/dist/chunks/{model-resolver-psjem9sa.js → file-hmtfd8e7.js} +11 -11
  166. package/dist/chunks/{model-resolver-csz4k5km.js → file-hw2gt29t.js} +18 -18
  167. package/dist/chunks/{model-resolver-8p8b376s.js → file-hznfad64.js} +25 -25
  168. package/dist/chunks/{model-resolver-erhkyex8.js → file-hzvfpvak.js} +4 -4
  169. package/dist/chunks/{model-resolver-j56e64zr.js → file-j56e64zr.js} +1 -1
  170. package/dist/chunks/{model-resolver-0k7hqrra.js → file-j5e99w94.js} +24 -24
  171. package/dist/chunks/{model-resolver-rd8pgjwx.js → file-j8sknp13.js} +20 -20
  172. package/dist/chunks/{model-resolver-paphc93g.js → file-j935v87r.js} +2 -2
  173. package/dist/chunks/{model-resolver-z2qr9twd.js → file-jbax583q.js} +1 -1
  174. package/dist/chunks/{model-resolver-6wxzvafn.js → file-jqcaya3d.js} +11 -11
  175. package/dist/chunks/{model-resolver-pqg5898n.js → file-jqcc8e1d.js} +12 -12
  176. package/dist/chunks/{model-resolver-s534qmrw.js → file-jrrn2k62.js} +4 -4
  177. package/dist/chunks/{model-resolver-3nxeqbj3.js → file-jypsjmxy.js} +16 -17
  178. package/dist/chunks/{model-resolver-pvvs7m8f.js → file-kbqxyd6c.js} +13 -13
  179. package/dist/chunks/{model-resolver-27596drg.js → file-kd3m4z14.js} +28 -28
  180. package/dist/chunks/{model-resolver-kg06axw8.js → file-kg06axw8.js} +1 -1
  181. package/dist/chunks/{model-resolver-m4hypjkm.js → file-kggrcpgh.js} +14 -14
  182. package/dist/chunks/{model-resolver-gwfcx2m0.js → file-knac466s.js} +50 -24
  183. package/dist/chunks/{model-resolver-x940zq77.js → file-kt5w8vxh.js} +10 -10
  184. package/dist/chunks/{model-resolver-cfpkc3c9.js → file-m0jqrx5p.js} +2 -2
  185. package/dist/chunks/{model-resolver-gw82nkc3.js → file-m2shdzh0.js} +41 -37
  186. package/dist/chunks/{model-resolver-m9w0rfyh.js → file-m9w0rfyh.js} +1 -1
  187. package/dist/chunks/{model-resolver-mhkvc446.js → file-mhkvc446.js} +1 -1
  188. package/dist/chunks/file-mkcjrzeh.js +15 -0
  189. package/dist/chunks/{model-resolver-021ffpa0.js → file-mq2071pb.js} +19 -19
  190. package/dist/chunks/{model-resolver-g5rnekq0.js → file-mrw4weg4.js} +5 -5
  191. package/dist/chunks/{model-resolver-y94qkjj7.js → file-mvfjcd1q.js} +7 -7
  192. package/dist/chunks/{model-resolver-n37c4crj.js → file-n37c4crj.js} +2 -2
  193. package/dist/chunks/{model-resolver-rctyp4y4.js → file-n3wgj171.js} +28 -29
  194. package/dist/chunks/{model-resolver-shqnjwtb.js → file-n5qmychr.js} +19 -19
  195. package/dist/chunks/{model-resolver-ydgy0jv4.js → file-ne3jdqry.js} +4 -4
  196. package/dist/chunks/{model-resolver-3kafhsr8.js → file-nrzk1d2g.js} +22 -22
  197. package/dist/chunks/{model-resolver-cbg8bv93.js → file-nx4935gj.js} +10 -10
  198. package/dist/chunks/{model-resolver-k6h76ggr.js → file-nz54bs3w.js} +21 -21
  199. package/dist/chunks/{model-resolver-23sxaqwc.js → file-pjedbq3k.js} +6 -6
  200. package/dist/chunks/{model-resolver-5v1cn1j1.js → file-pjsmk15p.js} +5 -5
  201. package/dist/chunks/{model-resolver-pjvnvgmy.js → file-pjvnvgmy.js} +1 -1
  202. package/dist/chunks/{model-resolver-pknna89w.js → file-pknna89w.js} +1 -1
  203. package/dist/chunks/file-pq4st5kv.js +341 -0
  204. package/dist/chunks/{model-resolver-drknmmyh.js → file-pzh16mkn.js} +9 -9
  205. package/dist/chunks/{model-resolver-dv1qgsyq.js → file-q26tgv94.js} +8 -8
  206. package/dist/chunks/{model-resolver-b77arecc.js → file-q73rq2bt.js} +28 -28
  207. package/dist/chunks/{model-resolver-74w3tna1.js → file-qf00j6dv.js} +20 -20
  208. package/dist/chunks/{model-resolver-7cwz0yjz.js → file-qrbavdvc.js} +15 -15
  209. package/dist/chunks/{model-resolver-qsdy395h.js → file-qsdy395h.js} +1 -1
  210. package/dist/chunks/{model-resolver-kxpygcw9.js → file-qz49fwgp.js} +6 -6
  211. package/dist/chunks/{model-resolver-3gjfrb28.js → file-ra8xed55.js} +28 -28
  212. package/dist/chunks/{model-resolver-02nrjc1r.js → file-rhjbct0v.js} +6 -6
  213. package/dist/chunks/{model-resolver-0pm1m3w8.js → file-rkh7tb58.js} +10 -10
  214. package/dist/chunks/{model-resolver-wj9n5p3k.js → file-rq8fnevv.js} +5 -5
  215. package/dist/chunks/{model-resolver-98kgw1j6.js → file-rs226bz6.js} +30 -5
  216. package/dist/chunks/{model-resolver-fbf46f8y.js → file-rsz0a70p.js} +302 -302
  217. package/dist/chunks/{model-resolver-3hgg98pr.js → file-rt7tcdqd.js} +35 -35
  218. package/dist/chunks/{model-resolver-wgf958fy.js → file-s0vw0vjm.js} +30 -30
  219. package/dist/chunks/{model-resolver-pm4pe4yk.js → file-s2tycd90.js} +29 -29
  220. package/dist/chunks/{model-resolver-yrznvahk.js → file-s4enseaf.js} +2 -2
  221. package/dist/chunks/{model-resolver-0g6mfyfr.js → file-s4m5whm3.js} +50 -50
  222. package/dist/chunks/{model-resolver-s2whfhf8.js → file-s52qk724.js} +27 -27
  223. package/dist/chunks/{model-resolver-079cv0ze.js → file-shsgghb2.js} +24 -24
  224. package/dist/chunks/{model-resolver-6xt4p4wv.js → file-sq4v2gnf.js} +9 -9
  225. package/dist/chunks/{model-resolver-zceb237h.js → file-swasttjx.js} +12 -12
  226. package/dist/chunks/{model-resolver-t82489yp.js → file-sxhqw0xy.js} +37 -37
  227. package/dist/chunks/{model-resolver-twy35tz0.js → file-t0x5rdq8.js} +9 -9
  228. package/dist/chunks/{model-resolver-djmbsxn3.js → file-t1n4dhg9.js} +9 -13
  229. package/dist/chunks/{model-resolver-2cshb6bs.js → file-t3g2ccp6.js} +26 -26
  230. package/dist/chunks/{model-resolver-rq6dswfj.js → file-t5qb37t7.js} +7 -7
  231. package/dist/chunks/{model-resolver-6kyz0a76.js → file-t9sxjxdg.js} +14 -29
  232. package/dist/chunks/{model-resolver-tazgh4e4.js → file-tazgh4e4.js} +1 -1
  233. package/dist/chunks/{model-resolver-tcezcvh9.js → file-tcezcvh9.js} +1 -1
  234. package/dist/chunks/{model-resolver-tdstcens.js → file-tdstcens.js} +1 -1
  235. package/dist/chunks/{model-resolver-am89cgs6.js → file-tegrjk77.js} +14 -21
  236. package/dist/chunks/{model-resolver-gv6a8nnw.js → file-th5km1p3.js} +5 -5
  237. package/dist/chunks/{model-resolver-htx7jtvk.js → file-tk6q6kp1.js} +19 -19
  238. package/dist/chunks/{model-resolver-qyxt0tsw.js → file-ttqfmzkf.js} +4 -4
  239. package/dist/chunks/{model-resolver-tvtrv512.js → file-tvtrv512.js} +1 -1
  240. package/dist/chunks/{model-resolver-xg9t41r3.js → file-v4b36nj3.js} +2 -3
  241. package/dist/chunks/file-vabb23s0.js +35 -0
  242. package/dist/chunks/{model-resolver-veqvce7d.js → file-veqvce7d.js} +1 -1
  243. package/dist/chunks/{model-resolver-ewbqqj16.js → file-vg6tfdkt.js} +16 -16
  244. package/dist/chunks/{model-resolver-hya8ywrc.js → file-vjknh09n.js} +72 -72
  245. package/dist/chunks/{model-resolver-qn4ba14w.js → file-vmq7ehpy.js} +5 -5
  246. package/dist/chunks/{model-resolver-6hzp91we.js → file-vr4b7vmt.js} +7 -7
  247. package/dist/chunks/{model-resolver-4kmhmgeg.js → file-vvxeqa35.js} +154 -157
  248. package/dist/chunks/{model-resolver-qdcfe15v.js → file-vypqtakx.js} +1 -1
  249. package/dist/chunks/{model-resolver-774n8a20.js → file-vyrr568v.js} +9 -9
  250. package/dist/chunks/{model-resolver-vzcthcp8.js → file-vzcthcp8.js} +1 -1
  251. package/dist/chunks/{model-resolver-w3wsvvr9.js → file-w3wsvvr9.js} +1 -1
  252. package/dist/chunks/{model-resolver-wf4bebac.js → file-w44msefy.js} +16 -16
  253. package/dist/chunks/{model-resolver-sdcezsxk.js → file-w59r8svm.js} +11 -11
  254. package/dist/chunks/{model-resolver-r9ghxtsk.js → file-w5yv7xxz.js} +3 -3
  255. package/dist/chunks/{model-resolver-h4q9s1ny.js → file-w645sbyz.js} +17 -17
  256. package/dist/chunks/{model-resolver-gwnxf6ch.js → file-w6w0btqv.js} +6 -6
  257. package/dist/chunks/{model-resolver-epzffrx8.js → file-w85wdfaw.js} +25 -25
  258. package/dist/chunks/{model-resolver-fxqygnfa.js → file-wcge806m.js} +4 -4
  259. package/dist/chunks/{model-resolver-wd87259q.js → file-wd87259q.js} +1 -1
  260. package/dist/chunks/{model-resolver-87mnny1s.js → file-wdatz8ry.js} +16 -16
  261. package/dist/chunks/{model-resolver-vnv2t9ht.js → file-wea26x67.js} +4 -4
  262. package/dist/chunks/{model-resolver-rav9e4bf.js → file-wfpsx1me.js} +8 -8
  263. package/dist/chunks/{model-resolver-sph8ksss.js → file-wkpvzz54.js} +9 -9
  264. package/dist/chunks/{model-resolver-aczsg4vg.js → file-wwegy27d.js} +27 -39
  265. package/dist/chunks/{model-resolver-x1ezjp6w.js → file-x1ezjp6w.js} +1 -1
  266. package/dist/chunks/{model-resolver-r9mregkx.js → file-x43y2vfs.js} +3 -3
  267. package/dist/chunks/{model-resolver-0sp60s5d.js → file-x513e6jx.js} +20 -20
  268. package/dist/chunks/{model-resolver-9y7khav7.js → file-xbrgdg50.js} +15 -15
  269. package/dist/chunks/{model-resolver-fdc0z0c3.js → file-xcp573p8.js} +2 -2
  270. package/dist/chunks/{model-resolver-dkck3j8g.js → file-xed1dtdk.js} +8 -8
  271. package/dist/chunks/file-xrsqh21y.js +4 -0
  272. package/dist/chunks/{model-resolver-kvffe9p6.js → file-y0bkwhrp.js} +18 -19
  273. package/dist/chunks/{model-resolver-spr8pf2r.js → file-y0kn4hqx.js} +9 -9
  274. package/dist/chunks/{model-resolver-y1fvbwt7.js → file-y1fvbwt7.js} +1 -1
  275. package/dist/chunks/{model-resolver-4bfepadc.js → file-y2800yn9.js} +4 -4
  276. package/dist/chunks/{model-resolver-a4vx34cq.js → file-y5cw24ds.js} +14 -14
  277. package/dist/chunks/file-y7egkzp6.js +55 -0
  278. package/dist/chunks/{model-resolver-vhj1rs6k.js → file-ya1b4y87.js} +22 -25
  279. package/dist/chunks/{model-resolver-nv6fkpt4.js → file-yca9gk6f.js} +21 -20
  280. package/dist/chunks/{model-resolver-xtzwr8pq.js → file-yckky8df.js} +8 -9
  281. package/dist/chunks/{model-resolver-yrhqyw5v.js → file-yrhqyw5v.js} +1 -1
  282. package/dist/chunks/{model-resolver-z0bkrqjs.js → file-z0bkrqjs.js} +1 -1
  283. package/dist/chunks/{model-resolver-me88hgte.js → file-z3syage6.js} +23 -23
  284. package/dist/chunks/{model-resolver-24e6cc3r.js → file-z9s268w6.js} +9 -12
  285. package/dist/chunks/{model-resolver-zeh9ct20.js → file-zeh9ct20.js} +2 -2
  286. package/dist/chunks/{model-resolver-zr2ceqn5.js → file-zr2ceqn5.js} +1 -1
  287. package/dist/chunks/{model-resolver-ryr25ayn.js → file-zv0544jz.js} +4 -4
  288. package/dist/chunks/{model-resolver-d2fv866c.js → file-zx86nq6m.js} +13 -13
  289. package/dist/chunks/{model-resolver-zxq2ej10.js → file-zxq2ej10.js} +1 -1
  290. package/dist/codemode/catalog.js +1 -1
  291. package/dist/codemode/instructions.js +3 -3
  292. package/dist/codemode/tool.js +2 -2
  293. package/dist/command.js +81 -82
  294. package/dist/config/discovery.js +77 -78
  295. package/dist/config/markdown.js +1 -1
  296. package/dist/config/normalize.js +19 -19
  297. package/dist/config/plugin/agent.js +115 -116
  298. package/dist/config/plugin/command.js +207 -208
  299. package/dist/config/plugin/compaction.js +155 -156
  300. package/dist/config/plugin/entry-observer.js +1 -1
  301. package/dist/config/plugin/formatter.js +117 -118
  302. package/dist/config/plugin/image.js +115 -116
  303. package/dist/config/plugin/instruction.js +85 -86
  304. package/dist/config/plugin/location-watcher.js +117 -118
  305. package/dist/config/plugin/mcp.js +124 -125
  306. package/dist/config/plugin/policy.js +114 -115
  307. package/dist/config/plugin/provider.js +113 -114
  308. package/dist/config/plugin/reference.js +117 -118
  309. package/dist/config/plugin/shell.js +118 -119
  310. package/dist/config/plugin/skill-file.js +97 -98
  311. package/dist/config/plugin/skill.js +134 -135
  312. package/dist/config/plugin/snapshot.js +115 -116
  313. package/dist/config/plugin/source.js +115 -116
  314. package/dist/config/plugin/tool-output.js +117 -118
  315. package/dist/config/plugin/websearch.js +115 -116
  316. package/dist/config/plugin/worktree.js +118 -119
  317. package/dist/config/variable.js +3 -3
  318. package/dist/config/watch.js +1 -1
  319. package/dist/config.js +119 -120
  320. package/dist/credential/sql.js +2 -2
  321. package/dist/credential.js +83 -84
  322. package/dist/database/database.js +68 -69
  323. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  324. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  325. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  326. package/dist/database/drizzle/index.js +13 -13
  327. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  328. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  329. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  330. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  331. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  332. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  333. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  335. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  336. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  337. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  338. package/dist/database/drizzle.js +14 -14
  339. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  340. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  341. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  342. package/dist/database/migration/20260225215848_workspace.js +1 -1
  343. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  344. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  345. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  346. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  347. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  348. package/dist/database/migration/20260323234822_events.js +1 -1
  349. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  350. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  351. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  352. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  353. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  354. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  355. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  356. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  357. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  358. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  359. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  360. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  361. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  362. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  363. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  364. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  365. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  366. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  367. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  368. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  369. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  370. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  371. package/dist/database/migration/20260611035744_credential.js +1 -1
  372. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  373. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  374. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  375. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  376. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  377. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  378. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  379. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  380. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  381. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  382. package/dist/database/migration/20260812213948_worktree.js +1 -1
  383. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  384. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  385. package/dist/database/migration.gen.js +47 -48
  386. package/dist/database/migration.js +49 -50
  387. package/dist/database/path.js +2 -2
  388. package/dist/database/schema.gen.js +1 -1
  389. package/dist/database/schema.sql.js +1 -1
  390. package/dist/database/sqlite.bun.js +1 -1
  391. package/dist/database/sqlite.js +1 -1
  392. package/dist/database/sqlite.node.js +1 -1
  393. package/dist/database/sqlite.workerd.js +1 -1
  394. package/dist/database/v1-migration.bun.js +78 -79
  395. package/dist/database/v1-migration.js +1 -1
  396. package/dist/effect/app-node-builder.js +361 -361
  397. package/dist/effect/app-node-platform.js +2 -2
  398. package/dist/effect/keyed-mutex.js +1 -1
  399. package/dist/effect/websocket-constructor.js +1 -1
  400. package/dist/environment/driver.js +1 -1
  401. package/dist/environment/environment.js +88 -89
  402. package/dist/environment/exec-defaults.js +2 -2
  403. package/dist/environment/files.js +1 -1
  404. package/dist/environment/index.js +90 -91
  405. package/dist/environment/local.js +2 -2
  406. package/dist/environment/memory.js +2 -2
  407. package/dist/environment/unavailable.js +1 -1
  408. package/dist/event/sql.js +1 -1
  409. package/dist/event-logger.js +72 -73
  410. package/dist/file-access.js +99 -100
  411. package/dist/file-mutation.js +89 -90
  412. package/dist/file-retention.js +1 -1
  413. package/dist/file.js +1 -1
  414. package/dist/filesystem/fff.bun.js +2 -2
  415. package/dist/filesystem/fff.js +1 -1
  416. package/dist/filesystem/fff.node.js +2 -2
  417. package/dist/filesystem/fff.workerd.js +2 -2
  418. package/dist/filesystem/ignore.js +1 -1
  419. package/dist/filesystem/location-watcher-policy.js +6 -6
  420. package/dist/filesystem/location-watcher.js +222 -223
  421. package/dist/filesystem/protected.js +1 -1
  422. package/dist/filesystem/search.js +99 -100
  423. package/dist/filesystem/watcher-binding.js +3 -3
  424. package/dist/filesystem/watcher.js +15 -15
  425. package/dist/filesystem.js +100 -101
  426. package/dist/form.js +82 -83
  427. package/dist/formatter/builtins.js +2 -2
  428. package/dist/formatter.js +82 -83
  429. package/dist/generate.js +93 -94
  430. package/dist/git.js +7 -7
  431. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  432. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  433. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  434. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  435. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  436. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  437. package/dist/github-copilot/copilot-provider.js +17 -17
  438. package/dist/github-copilot/models.js +7 -7
  439. package/dist/github-copilot/openai-compatible-error.js +1 -1
  440. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  441. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  442. package/dist/github-copilot/responses/openai-error.js +1 -1
  443. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  444. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  445. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  446. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  447. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  448. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  449. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  450. package/dist/id/id.js +1 -1
  451. package/dist/image/photon.js +2 -2
  452. package/dist/image.js +6 -6
  453. package/dist/instance/service.js +5 -5
  454. package/dist/instance.js +352 -352
  455. package/dist/instruction-discovery.js +83 -84
  456. package/dist/instructions/builtins.js +82 -83
  457. package/dist/instructions/index.js +3 -3
  458. package/dist/integration/connection.js +1 -1
  459. package/dist/integration.js +82 -83
  460. package/dist/job.js +77 -78
  461. package/dist/kv/sql.js +2 -2
  462. package/dist/kv.js +71 -72
  463. package/dist/location-activity.js +133 -134
  464. package/dist/location-mutation.js +99 -100
  465. package/dist/location-service-map.js +83 -84
  466. package/dist/location-services.js +349 -349
  467. package/dist/location.js +82 -83
  468. package/dist/mcp/client.js +86 -87
  469. package/dist/mcp/index.js +103 -104
  470. package/dist/mcp/instructions.js +118 -119
  471. package/dist/mcp/oauth.js +3 -3
  472. package/dist/mcp/stdio.js +85 -86
  473. package/dist/mime.js +1 -1
  474. package/dist/modal/models.js +7 -7
  475. package/dist/model-resolver.js +86 -93
  476. package/dist/model.js +6 -6
  477. package/dist/models-dev.js +86 -87
  478. package/dist/oauth/page.js +1 -1
  479. package/dist/permission/saved.js +80 -81
  480. package/dist/permission/sql.js +5 -5
  481. package/dist/permission.js +112 -113
  482. package/dist/persistent-pty/binary.bun.js +1 -1
  483. package/dist/persistent-pty/daemon.js +1 -1
  484. package/dist/persistent-pty/index.js +82 -83
  485. package/dist/persistent-pty/pty-binding.js +1 -1
  486. package/dist/persistent-pty.js +73 -74
  487. package/dist/plugin/agent.js +97 -98
  488. package/dist/plugin/command.js +94 -95
  489. package/dist/plugin/hooks.js +5 -5
  490. package/dist/plugin/host.js +213 -214
  491. package/dist/plugin/instance.js +5 -5
  492. package/dist/plugin/internal.js +323 -323
  493. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  494. package/dist/plugin/models-dev.js +75 -76
  495. package/dist/plugin/module.js +5 -5
  496. package/dist/plugin/optimize.js +4 -6
  497. package/dist/plugin/plan.js +97 -98
  498. package/dist/plugin/promise.js +1 -1
  499. package/dist/plugin/provider/alibaba.js +2 -2
  500. package/dist/plugin/provider/amazon-bedrock.js +2 -2
  501. package/dist/plugin/provider/anthropic.js +7 -0
  502. package/dist/plugin/provider/azure.js +118 -119
  503. package/dist/plugin/provider/cerebras.js +2 -2
  504. package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -118
  505. package/dist/plugin/provider/cloudflare-workers-ai.js +117 -118
  506. package/dist/plugin/provider/cohere.js +2 -2
  507. package/dist/plugin/provider/configured.js +114 -115
  508. package/dist/plugin/provider/digitalocean.js +79 -80
  509. package/dist/plugin/provider/dynamic.js +2 -2
  510. package/dist/plugin/provider/factory.js +1 -1
  511. package/dist/plugin/provider/gateway.js +2 -2
  512. package/dist/plugin/provider/github-copilot.js +80 -81
  513. package/dist/plugin/provider/gitlab.js +3 -3
  514. package/dist/plugin/provider/google-vertex.js +2 -2
  515. package/dist/plugin/provider/kilo.js +2 -2
  516. package/dist/plugin/provider/llmgateway.js +76 -77
  517. package/dist/plugin/provider/lmstudio.js +115 -116
  518. package/dist/plugin/provider/mistral.js +7 -0
  519. package/dist/plugin/provider/modal.js +79 -80
  520. package/dist/plugin/provider/nvidia.js +2 -2
  521. package/dist/plugin/provider/ollama.js +115 -116
  522. package/dist/plugin/provider/openai-compatible.js +1 -1
  523. package/dist/plugin/provider/openai.js +80 -81
  524. package/dist/plugin/provider/opencode.js +76 -80
  525. package/dist/plugin/provider/openrouter.js +3 -3
  526. package/dist/plugin/provider/perplexity.js +2 -2
  527. package/dist/plugin/provider/sap-ai-core.js +3 -3
  528. package/dist/plugin/provider/sdk-factory.js +1 -1
  529. package/dist/plugin/provider/snowflake-cortex.js +5 -119
  530. package/dist/plugin/provider/venice.js +2 -2
  531. package/dist/plugin/provider/vercel.js +2 -2
  532. package/dist/plugin/provider/vllm.js +115 -116
  533. package/dist/plugin/provider/xai.js +77 -78
  534. package/dist/plugin/provider/zenmux.js +2 -2
  535. package/dist/plugin/provider.js +156 -157
  536. package/dist/plugin/sdk.js +72 -73
  537. package/dist/plugin/service.js +3 -3
  538. package/dist/plugin/skill.js +131 -132
  539. package/dist/plugin/source-directory.js +1 -1
  540. package/dist/plugin/supervisor.js +340 -340
  541. package/dist/plugin/update.js +2 -2
  542. package/dist/plugin/variant.js +2 -2
  543. package/dist/plugin/vcs/git.js +82 -83
  544. package/dist/plugin/vcs/hg.js +82 -83
  545. package/dist/plugin/warming.js +112 -113
  546. package/dist/plugin/websearch/exa.js +7 -7
  547. package/dist/plugin/websearch/firecrawl.js +8 -8
  548. package/dist/plugin/websearch/index.js +8 -8
  549. package/dist/plugin/websearch/mcp.js +2 -2
  550. package/dist/plugin/websearch/parallel.js +8 -8
  551. package/dist/plugin/websearch/tavily.js +6 -6
  552. package/dist/plugin.js +218 -219
  553. package/dist/project/schema.js +6 -6
  554. package/dist/project/sql.js +4 -4
  555. package/dist/project.js +83 -84
  556. package/dist/provider.js +7 -9
  557. package/dist/pty/protocol.js +1 -1
  558. package/dist/pty/schema.js +3 -3
  559. package/dist/pty/ticket.js +1 -1
  560. package/dist/pty.js +94 -95
  561. package/dist/reference/instructions.js +84 -85
  562. package/dist/reference.js +84 -85
  563. package/dist/repository-cache.js +76 -77
  564. package/dist/repository.js +1 -1
  565. package/dist/ripgrep/binary.js +2 -2
  566. package/dist/ripgrep.js +93 -94
  567. package/dist/rpc.js +81 -82
  568. package/dist/schema.js +1 -1
  569. package/dist/session/command.js +72 -73
  570. package/dist/session/compaction.js +127 -128
  571. package/dist/session/context.js +147 -148
  572. package/dist/session/environment.js +5 -5
  573. package/dist/session/error.js +13 -7
  574. package/dist/session/event.js +1 -1
  575. package/dist/session/execution/restart.js +219 -220
  576. package/dist/session/execution.js +124 -125
  577. package/dist/session/generate.js +148 -149
  578. package/dist/session/history.js +15 -15
  579. package/dist/session/inbox.js +84 -85
  580. package/dist/session/info.js +3 -3
  581. package/dist/session/instruction-entry.js +75 -76
  582. package/dist/session/instruction-state.js +8 -8
  583. package/dist/session/instructions.js +92 -93
  584. package/dist/session/message-updater.js +2 -2
  585. package/dist/session/message.js +1 -1
  586. package/dist/session/model-request.js +113 -114
  587. package/dist/session/model-transport.js +9 -9
  588. package/dist/session/move.js +126 -127
  589. package/dist/session/projector.js +84 -85
  590. package/dist/session/prompt.js +100 -101
  591. package/dist/session/provider-context.js +3 -3
  592. package/dist/session/revert.js +85 -86
  593. package/dist/session/run-coordinator.js +3 -3
  594. package/dist/session/runner/index.js +3 -3
  595. package/dist/session/runner/llm.js +223 -224
  596. package/dist/session/runner/max-steps.js +1 -1
  597. package/dist/session/runner/model.js +86 -91
  598. package/dist/session/runner/publish-llm-event.js +3 -3
  599. package/dist/session/runner/retry.js +110 -111
  600. package/dist/session/runner/step.js +119 -120
  601. package/dist/session/runner/to-llm-message.js +2 -2
  602. package/dist/session/schema.js +5 -5
  603. package/dist/session/session.js +167 -168
  604. package/dist/session/shell.js +131 -132
  605. package/dist/session/skill.js +98 -99
  606. package/dist/session/sql.js +5 -5
  607. package/dist/session/stats.js +73 -74
  608. package/dist/session/store.js +85 -86
  609. package/dist/session/subagent-completion.js +1 -1
  610. package/dist/session/subagent-job.js +205 -206
  611. package/dist/session/system-prompt.js +1 -1
  612. package/dist/session/title.js +145 -146
  613. package/dist/session/to-session-error.js +107 -108
  614. package/dist/session/transfer.js +219 -221
  615. package/dist/session/usage.js +1 -1
  616. package/dist/session.js +219 -214
  617. package/dist/shell/parse.js +6 -6
  618. package/dist/shell/result.js +1 -1
  619. package/dist/shell/scan.js +1 -1
  620. package/dist/shell/select.js +13 -13
  621. package/dist/shell.js +133 -134
  622. package/dist/skill/discovery.js +6 -6
  623. package/dist/skill/instructions.js +96 -97
  624. package/dist/skill.js +107 -108
  625. package/dist/snapshot.js +86 -87
  626. package/dist/state.js +1 -1
  627. package/dist/tool/html-markdown.js +1 -1
  628. package/dist/tool/http-body.js +1 -1
  629. package/dist/tool/mcp.js +117 -118
  630. package/dist/tool/plugin/edit.js +111 -112
  631. package/dist/tool/plugin/file-diff.js +1 -1
  632. package/dist/tool/plugin/glob.js +120 -121
  633. package/dist/tool/plugin/grep.js +120 -121
  634. package/dist/tool/plugin/opencode.js +3 -3
  635. package/dist/tool/plugin/patch.js +117 -118
  636. package/dist/tool/plugin/question.js +100 -101
  637. package/dist/tool/plugin/read.js +121 -122
  638. package/dist/tool/plugin/shell.js +212 -213
  639. package/dist/tool/plugin/skill.js +108 -109
  640. package/dist/tool/plugin/subagent.js +208 -209
  641. package/dist/tool/plugin/webfetch.js +105 -106
  642. package/dist/tool/plugin/websearch.js +109 -110
  643. package/dist/tool/plugin/write.js +117 -118
  644. package/dist/tool/read-filesystem.js +96 -97
  645. package/dist/tool/runtime.js +1 -1
  646. package/dist/tool-output.js +8 -8
  647. package/dist/tool.js +15 -15
  648. package/dist/types/aisdk-native.d.ts +2 -4
  649. package/dist/types/model-resolver.d.ts +3 -52
  650. package/dist/types/model.d.ts +0 -1
  651. package/dist/types/plugin/optimize.d.ts +1 -2
  652. package/dist/types/plugin/provider/anthropic.d.ts +1 -0
  653. package/dist/types/plugin/provider/mistral.d.ts +1 -0
  654. package/dist/types/plugin/provider/snowflake-cortex.d.ts +4 -5
  655. package/dist/types/provider.d.ts +0 -2
  656. package/dist/types/rpc.d.ts +0 -1
  657. package/dist/types/session/compaction.d.ts +3 -3
  658. package/dist/types/session/context.d.ts +1 -1
  659. package/dist/types/session/error.d.ts +36 -0
  660. package/dist/types/session/history.d.ts +0 -80
  661. package/dist/types/session/model-request.d.ts +37 -18
  662. package/dist/types/session/runner/model.d.ts +0 -5
  663. package/dist/types/session/runner/step.d.ts +1 -1
  664. package/dist/types/session/schema.d.ts +0 -9
  665. package/dist/types/session/session.d.ts +5 -5
  666. package/dist/types/session/sql.d.ts +3 -3
  667. package/dist/types/session/store.d.ts +0 -1
  668. package/dist/types/session/transfer.d.ts +0 -53
  669. package/dist/types/session.d.ts +5 -8
  670. package/dist/types/v1/config/migrate.d.ts +0 -2
  671. package/dist/util/error-summary.js +1 -1
  672. package/dist/util/error.js +1 -1
  673. package/dist/util/iife.js +1 -1
  674. package/dist/util/lazy.js +1 -1
  675. package/dist/util/slug.js +1 -1
  676. package/dist/util/token.js +1 -1
  677. package/dist/util/which.js +1 -1
  678. package/dist/util/wildcard.js +1 -1
  679. package/dist/v1/config/agent.js +7 -7
  680. package/dist/v1/config/attachment.js +4 -4
  681. package/dist/v1/config/command.js +3 -3
  682. package/dist/v1/config/config.js +16 -16
  683. package/dist/v1/config/error.js +4 -4
  684. package/dist/v1/config/formatter.js +5 -5
  685. package/dist/v1/config/layout.js +1 -1
  686. package/dist/v1/config/lsp.js +5 -5
  687. package/dist/v1/config/mcp.js +4 -4
  688. package/dist/v1/config/migrate.js +4 -4
  689. package/dist/v1/config/permission.js +7 -7
  690. package/dist/v1/config/plugin.js +3 -3
  691. package/dist/v1/config/provider-options.js +1 -1
  692. package/dist/v1/config/provider.js +4 -4
  693. package/dist/v1/config/server.js +2 -2
  694. package/dist/v1/config/skills.js +3 -3
  695. package/dist/v1/permission.js +1 -1
  696. package/dist/vcs/patch.js +1 -1
  697. package/dist/vcs.js +85 -86
  698. package/dist/websearch.js +82 -83
  699. package/dist/wellknown/plugin.js +74 -75
  700. package/dist/wellknown.js +79 -80
  701. package/dist/workspace/driver.js +3 -3
  702. package/dist/workspace/sql.js +1 -1
  703. package/dist/workspace.js +78 -79
  704. package/dist/worktree/directory.js +4 -4
  705. package/dist/worktree/git.js +7 -7
  706. package/dist/worktree/refresh.js +341 -341
  707. package/dist/worktree/sql.js +5 -5
  708. package/dist/worktree.js +91 -92
  709. package/package.json +8 -8
  710. package/dist/chunks/model-resolver-0wmmprtc.js +0 -260
  711. package/dist/chunks/model-resolver-532bqssk.js +0 -63
  712. package/dist/chunks/model-resolver-ghej9zy6.js +0 -228
  713. package/dist/chunks/model-resolver-hjw1g3kj.js +0 -247
  714. package/dist/chunks/model-resolver-j2k1bkn8.js +0 -22
  715. package/dist/chunks/model-resolver-qapv375x.js +0 -4
  716. package/dist/chunks/model-resolver-qdyb70sk.js +0 -18
  717. package/dist/chunks/model-resolver-wrjeysgp.js +0 -170
  718. package/dist/chunks/model-resolver-wwmx33bt.js +0 -123
  719. package/dist/chunks/model-resolver-y8f7s663.js +0 -13
  720. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +0 -6
  721. package/dist/plugin/provider/poe.js +0 -82
  722. package/dist/types/database/migration/20260910120000_clear_v1_session_permission.d.ts +0 -3
  723. package/dist/types/plugin/provider/poe.d.ts +0 -2
  724. /package/dist/chunks/{model-resolver-0qkdqm5v.js → file-0qkdqm5v.js} +0 -0
  725. /package/dist/chunks/{model-resolver-0zkw76rk.js → file-0zkw76rk.js} +0 -0
  726. /package/dist/chunks/{model-resolver-17cy0kzp.js → file-17cy0kzp.js} +0 -0
  727. /package/dist/chunks/{model-resolver-1cnp2v09.js → file-1cnp2v09.js} +0 -0
  728. /package/dist/chunks/{model-resolver-1kg9ymc8.js → file-1kg9ymc8.js} +0 -0
  729. /package/dist/chunks/{model-resolver-2710q6r3.js → file-2710q6r3.js} +0 -0
  730. /package/dist/chunks/{model-resolver-2axfhc9x.js → file-2axfhc9x.js} +0 -0
  731. /package/dist/chunks/{model-resolver-2c3vjs8z.js → file-2c3vjs8z.js} +0 -0
  732. /package/dist/chunks/{model-resolver-359p4xyc.js → file-359p4xyc.js} +0 -0
  733. /package/dist/chunks/{model-resolver-3asan66x.js → file-3asan66x.js} +0 -0
  734. /package/dist/chunks/{model-resolver-3v8g72cx.js → file-3v8g72cx.js} +0 -0
  735. /package/dist/chunks/{model-resolver-3w5fmr99.js → file-3w5fmr99.js} +0 -0
  736. /package/dist/chunks/{model-resolver-3wcehsnq.js → file-3wcehsnq.js} +0 -0
  737. /package/dist/chunks/{model-resolver-43n2bw4t.js → file-43n2bw4t.js} +0 -0
  738. /package/dist/chunks/{model-resolver-4knz6hnm.js → file-4knz6hnm.js} +0 -0
  739. /package/dist/chunks/{model-resolver-4y7fprxs.js → file-4y7fprxs.js} +0 -0
  740. /package/dist/chunks/{model-resolver-53557ph1.js → file-53557ph1.js} +0 -0
  741. /package/dist/chunks/{model-resolver-550bvhaj.js → file-550bvhaj.js} +0 -0
  742. /package/dist/chunks/{model-resolver-6prwharc.js → file-6prwharc.js} +0 -0
  743. /package/dist/chunks/{model-resolver-7akdwqpd.js → file-7akdwqpd.js} +0 -0
  744. /package/dist/chunks/{model-resolver-7m9af43g.js → file-7m9af43g.js} +0 -0
  745. /package/dist/chunks/{model-resolver-822emrt2.js → file-822emrt2.js} +0 -0
  746. /package/dist/chunks/{model-resolver-88xbtdfr.js → file-88xbtdfr.js} +0 -0
  747. /package/dist/chunks/{model-resolver-8n3pysct.js → file-8n3pysct.js} +0 -0
  748. /package/dist/chunks/{model-resolver-922hggd3.js → file-922hggd3.js} +0 -0
  749. /package/dist/chunks/{model-resolver-9a4afbnw.js → file-9a4afbnw.js} +0 -0
  750. /package/dist/chunks/{model-resolver-9rqn6x4v.js → file-9rqn6x4v.js} +0 -0
  751. /package/dist/chunks/{model-resolver-a6k6eb26.js → file-a6k6eb26.js} +0 -0
  752. /package/dist/chunks/{model-resolver-af5trqkr.js → file-af5trqkr.js} +0 -0
  753. /package/dist/chunks/{model-resolver-afrmfg78.js → file-afrmfg78.js} +0 -0
  754. /package/dist/chunks/{model-resolver-aqzs7mqg.js → file-aqzs7mqg.js} +0 -0
  755. /package/dist/chunks/{model-resolver-atq7p7m5.js → file-atq7p7m5.js} +0 -0
  756. /package/dist/chunks/{model-resolver-bkyjaxrp.js → file-bkyjaxrp.js} +0 -0
  757. /package/dist/chunks/{model-resolver-bmr6ed5q.js → file-bmr6ed5q.js} +0 -0
  758. /package/dist/chunks/{model-resolver-cf4snx6d.js → file-cf4snx6d.js} +0 -0
  759. /package/dist/chunks/{model-resolver-cvy3z8tj.js → file-cvy3z8tj.js} +0 -0
  760. /package/dist/chunks/{model-resolver-d9fn303g.js → file-d9fn303g.js} +0 -0
  761. /package/dist/chunks/{model-resolver-d9jj8t3e.js → file-d9jj8t3e.js} +0 -0
  762. /package/dist/chunks/{model-resolver-dajrwvna.js → file-dajrwvna.js} +0 -0
  763. /package/dist/chunks/{model-resolver-dap0rakb.js → file-dap0rakb.js} +0 -0
  764. /package/dist/chunks/{model-resolver-df08tz66.js → file-df08tz66.js} +0 -0
  765. /package/dist/chunks/{model-resolver-dy18nga0.js → file-dy18nga0.js} +0 -0
  766. /package/dist/chunks/{model-resolver-e5kj55wp.js → file-e5kj55wp.js} +0 -0
  767. /package/dist/chunks/{model-resolver-e73j6tqm.js → file-e73j6tqm.js} +0 -0
  768. /package/dist/chunks/{model-resolver-ec1grn59.js → file-ec1grn59.js} +0 -0
  769. /package/dist/chunks/{model-resolver-eh3zwz77.js → file-eh3zwz77.js} +0 -0
  770. /package/dist/chunks/{model-resolver-emrn6kk6.js → file-emrn6kk6.js} +0 -0
  771. /package/dist/chunks/{model-resolver-f0mxakyp.js → file-f0mxakyp.js} +0 -0
  772. /package/dist/chunks/{model-resolver-f6n9ztr4.js → file-f6n9ztr4.js} +0 -0
  773. /package/dist/chunks/{model-resolver-faypxj3z.js → file-faypxj3z.js} +0 -0
  774. /package/dist/chunks/{model-resolver-fd410y7t.js → file-fd410y7t.js} +0 -0
  775. /package/dist/chunks/{model-resolver-fxgpk5d8.js → file-fxgpk5d8.js} +0 -0
  776. /package/dist/chunks/{model-resolver-g4wezp1m.js → file-g4wezp1m.js} +0 -0
  777. /package/dist/chunks/{model-resolver-g86h250q.js → file-g86h250q.js} +0 -0
  778. /package/dist/chunks/{model-resolver-gebd4c9n.js → file-gebd4c9n.js} +0 -0
  779. /package/dist/chunks/{model-resolver-gftt206x.js → file-gftt206x.js} +0 -0
  780. /package/dist/chunks/{model-resolver-hjbc5kem.js → file-hjbc5kem.js} +0 -0
  781. /package/dist/chunks/{model-resolver-hk9envan.js → file-hk9envan.js} +0 -0
  782. /package/dist/chunks/{model-resolver-hrnqkpcd.js → file-hrnqkpcd.js} +0 -0
  783. /package/dist/chunks/{model-resolver-j2ntwpah.js → file-j2ntwpah.js} +0 -0
  784. /package/dist/chunks/{model-resolver-j5zkgpj8.js → file-j5zkgpj8.js} +0 -0
  785. /package/dist/chunks/{model-resolver-jr7sbwjy.js → file-jr7sbwjy.js} +0 -0
  786. /package/dist/chunks/{model-resolver-jwfs4k6c.js → file-jwfs4k6c.js} +0 -0
  787. /package/dist/chunks/{model-resolver-jzg6c2d5.js → file-jzg6c2d5.js} +0 -0
  788. /package/dist/chunks/{model-resolver-mp448xyj.js → file-mp448xyj.js} +0 -0
  789. /package/dist/chunks/{model-resolver-msx8hqn2.js → file-msx8hqn2.js} +0 -0
  790. /package/dist/chunks/{model-resolver-n05xt0ee.js → file-n05xt0ee.js} +0 -0
  791. /package/dist/chunks/{model-resolver-n3j8tn72.js → file-n3j8tn72.js} +0 -0
  792. /package/dist/chunks/{model-resolver-njntx4h6.js → file-njntx4h6.js} +0 -0
  793. /package/dist/chunks/{model-resolver-q3sfg36h.js → file-q3sfg36h.js} +0 -0
  794. /package/dist/chunks/{model-resolver-q74kybfr.js → file-q74kybfr.js} +0 -0
  795. /package/dist/chunks/{model-resolver-qaymkmh1.js → file-qaymkmh1.js} +0 -0
  796. /package/dist/chunks/{model-resolver-qb87gjwd.js → file-qb87gjwd.js} +0 -0
  797. /package/dist/chunks/{model-resolver-qfa1cgps.js → file-qfa1cgps.js} +0 -0
  798. /package/dist/chunks/{model-resolver-qrg20bc0.js → file-qrg20bc0.js} +0 -0
  799. /package/dist/chunks/{model-resolver-rcb2kzg1.js → file-rcb2kzg1.js} +0 -0
  800. /package/dist/chunks/{model-resolver-sdp7kfr6.js → file-sdp7kfr6.js} +0 -0
  801. /package/dist/chunks/{model-resolver-sk3qaz4a.js → file-sk3qaz4a.js} +0 -0
  802. /package/dist/chunks/{model-resolver-ssg3fenm.js → file-ssg3fenm.js} +0 -0
  803. /package/dist/chunks/{model-resolver-twg0f83k.js → file-twg0f83k.js} +0 -0
  804. /package/dist/chunks/{model-resolver-w803qqfp.js → file-w803qqfp.js} +0 -0
  805. /package/dist/chunks/{model-resolver-wer8tq1h.js → file-wer8tq1h.js} +0 -0
  806. /package/dist/chunks/{model-resolver-wtztk69x.js → file-wtztk69x.js} +0 -0
  807. /package/dist/chunks/{model-resolver-x0ckcb58.js → file-x0ckcb58.js} +0 -0
  808. /package/dist/chunks/{model-resolver-x61499pn.js → file-x61499pn.js} +0 -0
  809. /package/dist/chunks/{model-resolver-y44na4kk.js → file-y44na4kk.js} +0 -0
  810. /package/dist/chunks/{model-resolver-y8cydn3q.js → file-y8cydn3q.js} +0 -0
  811. /package/dist/chunks/{model-resolver-ygaqb7jw.js → file-ygaqb7jw.js} +0 -0
  812. /package/dist/chunks/{model-resolver-ym463w8f.js → file-ym463w8f.js} +0 -0
  813. /package/dist/chunks/{model-resolver-z9919s4g.js → file-z9919s4g.js} +0 -0
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  __export
3
- } from "./model-resolver-9rqn6x4v.js";
3
+ } from "./file-9rqn6x4v.js";
4
4
 
5
5
  // src/v1/config/plugin.ts
6
6
  var exports_plugin3 = {};
7
7
  __export(exports_plugin3, {
8
8
  ConfigPluginV1: () => exports_plugin3,
9
- Options: () => Options8,
9
+ Options: () => Options9,
10
10
  Spec: () => Spec2
11
11
  });
12
12
  import { Schema } from "effect";
13
- var Options8 = Schema.Record(Schema.String, Schema.Unknown);
14
- var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String, Options8]))]);
13
+ var Options9 = Schema.Record(Schema.String, Schema.Unknown);
14
+ var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String, Options9]))]);
15
15
 
16
- export { Options8, Spec2, exports_plugin3 };
16
+ export { Options9, Spec2, exports_plugin3 };
@@ -1,31 +1,31 @@
1
1
  import {
2
2
  SessionMessage2
3
- } from "./model-resolver-gftt206x.js";
3
+ } from "./file-gftt206x.js";
4
4
  import {
5
5
  SessionSchema2
6
- } from "./model-resolver-j7wq2tw5.js";
6
+ } from "./file-dv250zvr.js";
7
7
  import {
8
8
  MessageDecodeError2
9
- } from "./model-resolver-qwkytnft.js";
9
+ } from "./file-dsf3jx99.js";
10
10
  import {
11
11
  InitializationBlocked2,
12
12
  read3
13
- } from "./model-resolver-02nrjc1r.js";
13
+ } from "./file-rhjbct0v.js";
14
14
  import {
15
15
  SessionMessageTable2
16
- } from "./model-resolver-a1bz86dw.js";
16
+ } from "./file-5c4hm403.js";
17
17
  import {
18
18
  initial2,
19
19
  preview3
20
- } from "./model-resolver-fxqygnfa.js";
20
+ } from "./file-wcge806m.js";
21
21
  import {
22
22
  compatible2,
23
23
  isCheckpoint2,
24
24
  validate2
25
- } from "./model-resolver-1hc11dc4.js";
25
+ } from "./file-csf2jhsg.js";
26
26
  import {
27
27
  __export
28
- } from "./model-resolver-9rqn6x4v.js";
28
+ } from "./file-9rqn6x4v.js";
29
29
 
30
30
  // src/session/history.ts
31
31
  var exports_history = {};
@@ -35,7 +35,7 @@ __export(exports_history, {
35
35
  entriesForRunner: () => entriesForRunner2,
36
36
  firstUserMessage: () => firstUserMessage2,
37
37
  latestCompaction: () => latestCompaction2,
38
- load: () => load3,
38
+ load: () => load2,
39
39
  preview: () => preview2
40
40
  });
41
41
  import { and, asc, desc, eq, gte, or, sql } from "drizzle-orm";
@@ -56,7 +56,7 @@ var messageEntries = Effect.fnUntraced(function* (db, sessionID, boundary) {
56
56
  const native = entries.findLast((entry) => isCheckpoint2(entry.message));
57
57
  return entries.filter((entry) => !(entry.message.type === "system" && native && entry.seq < native.seq) && replayable(entry.message, boundary));
58
58
  });
59
- var load3 = Effect.fn("SessionHistory.load")(function* (db, sessionID, boundary) {
59
+ var load2 = Effect.fn("SessionHistory.load")(function* (db, sessionID, boundary) {
60
60
  return (yield* messageEntries(db, sessionID, boundary)).map((entry) => entry.message);
61
61
  });
62
62
  var entriesForRunner2 = Effect.fn("SessionHistory.entriesForRunner")(function* (db, sessionID, instructions, boundary) {
@@ -92,4 +92,4 @@ var firstUserMessage2 = Effect.fn("SessionHistory.firstUserMessage")(function* (
92
92
  return message?.type === "user" ? message : undefined;
93
93
  });
94
94
 
95
- export { latestCompaction2, decodeMessageRow2, load3, entriesForRunner2, preview2, firstUserMessage2, exports_history };
95
+ export { latestCompaction2, decodeMessageRow2, load2, entriesForRunner2, preview2, firstUserMessage2, exports_history };
@@ -1,40 +1,30 @@
1
1
  import {
2
- Service77
3
- } from "./model-resolver-csz4k5km.js";
2
+ Service79
3
+ } from "./file-hw2gt29t.js";
4
4
  import {
5
5
  OAuth3,
6
- Event15
7
- } from "./model-resolver-mwnd972w.js";
6
+ Event19
7
+ } from "./file-1xzdp18p.js";
8
8
  import {
9
9
  ID6,
10
10
  MethodID2
11
- } from "./model-resolver-f8xc4yre.js";
11
+ } from "./file-8gbf9msb.js";
12
12
  import {
13
- ID10,
13
+ ID16,
14
14
  mergeOverlay2,
15
15
  mergeHeaders2
16
- } from "./model-resolver-1ptmpf20.js";
17
- import {
18
- ID4,
19
- Input14,
20
- Response2
21
- } from "./model-resolver-mg5mchpt.js";
16
+ } from "./file-84tssp1s.js";
22
17
 
23
18
  // src/plugin/provider/opencode.ts
24
- import { Duration, Effect, Equal, Schema, Semaphore, Stream } from "effect";
19
+ import { Duration, Effect, Schema, Semaphore, Stream } from "effect";
25
20
  import { define } from "@opencode/plugin/effect/plugin";
26
- import { FetchHttpClient, HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
21
+ import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
27
22
  import { ConfigProvider } from "@opencode/schema/config/provider";
28
23
  import { Money } from "@opencode/schema/money";
29
24
  var defaultServer = "https://opencode.ai/console";
30
25
  var clientID = "opencode-cli";
31
26
  var methodID = MethodID2.make("device");
32
- var RemoteResponse = Schema.Struct({
33
- providers: Schema.Record(Schema.String, ConfigProvider.Info),
34
- websearch: Schema.Struct({
35
- providerID: ID4
36
- }).pipe(Schema.optional)
37
- });
27
+ var RemoteResponse = Schema.Struct({ providers: Schema.Record(Schema.String, ConfigProvider.Info) });
38
28
  var Device = Schema.Struct({
39
29
  device_code: Schema.String,
40
30
  user_code: Schema.String,
@@ -45,8 +35,7 @@ var Device = Schema.Struct({
45
35
  var Token = Schema.Struct({
46
36
  access_token: Schema.String,
47
37
  refresh_token: Schema.String,
48
- expires_in: Schema.Number,
49
- org_id: Schema.optional(Schema.NullOr(Schema.String))
38
+ expires_in: Schema.Number
50
39
  });
51
40
  var TokenPending = Schema.Struct({ error: Schema.String });
52
41
  var DeviceToken = Schema.Union([Token, TokenPending]);
@@ -62,7 +51,7 @@ function oauth(http) {
62
51
  },
63
52
  authorize: (answer) => Effect.gen(function* () {
64
53
  const server = yield* normalizeServer(answer.server ?? defaultServer);
65
- const device = yield* post(http, `${server}/auth/device/code`, { client_id: clientID, supports_org_scope: true }, Device);
54
+ const device = yield* post(http, `${server}/auth/device/code`, { client_id: clientID }, Device);
66
55
  const verification = yield* Effect.try({
67
56
  try: () => {
68
57
  const url = new URL(device.verification_uri_complete, `${server}/`);
@@ -80,17 +69,13 @@ function oauth(http) {
80
69
  };
81
70
  }),
82
71
  refresh: (credential) => Effect.gen(function* () {
83
- const token = yield* post(http, `${serverUrl(credential)}/auth/device/token`, { grant_type: "refresh_token", refresh_token: credential.refresh, client_id: clientID }, Token);
72
+ const server = typeof credential.metadata?.server === "string" ? credential.metadata.server : defaultServer;
73
+ const token = yield* post(http, `${server}/auth/device/token`, { grant_type: "refresh_token", refresh_token: credential.refresh, client_id: clientID }, Token);
84
74
  return {
85
75
  ...credential,
86
76
  access: token.access_token,
87
77
  refresh: token.refresh_token,
88
- expires: Date.now() + token.expires_in * 1000,
89
- metadata: token.org_id == null ? credential.metadata : {
90
- ...credential.metadata,
91
- orgID: token.org_id,
92
- orgName: credential.metadata?.orgID === token.org_id && typeof credential.metadata.orgName === "string" ? credential.metadata.orgName : token.org_id
93
- }
78
+ expires: Date.now() + token.expires_in * 1000
94
79
  };
95
80
  }),
96
81
  label: (credential) => typeof credential.metadata?.orgName === "string" ? credential.metadata.orgName : undefined
@@ -99,17 +84,18 @@ function oauth(http) {
99
84
  var OpencodePlugin2 = define({
100
85
  id: "opencode.provider.opencode",
101
86
  effect: Effect.fn(function* (ctx) {
102
- const bus = yield* Service77;
87
+ const bus = yield* Service79;
103
88
  const http = yield* HttpClient.HttpClient;
104
89
  const loading = Semaphore.makeUnsafe(1);
105
- let snapshot = { config: undefined, connection: undefined };
90
+ let connected = false;
91
+ let providers;
106
92
  const load = Effect.fn("OpencodePlugin.load")(function* () {
107
93
  const connection = yield* ctx.integration.connection.active("opencode");
108
94
  const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
109
95
  return;
110
96
  })) : undefined;
111
- const config = credential ? yield* fetchConfig(http, credential).pipe(Effect.catch((cause) => Effect.logWarning("failed to load OpenCode provider config", { cause }).pipe(Effect.as(undefined)))) : undefined;
112
- return { config, connection };
97
+ connected = connection !== undefined;
98
+ providers = credential ? yield* fetchProviders(http, credential).pipe(Effect.catch((cause) => Effect.logWarning("failed to load OpenCode provider config", { cause }).pipe(Effect.as(undefined)))) : undefined;
113
99
  });
114
100
  yield* ctx.integration.transform((editor) => {
115
101
  editor.update("opencode", (integration) => {
@@ -118,9 +104,9 @@ var OpencodePlugin2 = define({
118
104
  editor.method.update(oauth(http));
119
105
  editor.method.update({ integrationID: "opencode", method: { type: "key", label: "API key (service account)" } });
120
106
  });
121
- snapshot = yield* load();
107
+ yield* load();
122
108
  yield* ctx.catalog.transform((catalog) => {
123
- for (const [providerID, item] of Object.entries(snapshot.config?.providers ?? {})) {
109
+ for (const [providerID, item] of Object.entries(providers ?? {})) {
124
110
  const source = catalog.provider.get(item.canonical ?? providerID);
125
111
  catalog.provider.update(providerID, (provider) => {
126
112
  if (source && source.provider !== provider)
@@ -188,10 +174,10 @@ var OpencodePlugin2 = define({
188
174
  });
189
175
  }
190
176
  }
191
- const item = catalog.provider.get(ID10.opencode);
177
+ const item = catalog.provider.get(ID16.opencode);
192
178
  if (!item)
193
179
  return;
194
- const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
180
+ const hasKey = Boolean(process.env.OPENCODE_API_KEY || connected || item.provider.settings?.apiKey);
195
181
  catalog.provider.update(item.provider.id, (provider) => {
196
182
  if (!hasKey) {
197
183
  provider.activation = "enabled";
@@ -208,64 +194,21 @@ var OpencodePlugin2 = define({
208
194
  });
209
195
  }
210
196
  });
211
- yield* ctx.websearch.transform((editor) => {
212
- const descriptor = snapshot.config?.websearch;
213
- const connection = snapshot.connection;
214
- if (!descriptor || !connection)
215
- return;
216
- editor.add({
217
- id: descriptor.providerID,
218
- name: "OpenCode Web Search",
219
- execute: (input) => Effect.gen(function* () {
220
- const active = yield* ctx.integration.connection.active("opencode");
221
- if (!active || (connection.type === "credential" ? active.type !== "credential" || active.id !== connection.id : active.type !== "env" || active.name !== connection.name)) {
222
- return yield* Effect.fail(new Error("OpenCode Console connection changed"));
223
- }
224
- const credential = yield* ctx.integration.connection.resolve(active);
225
- if (!credential)
226
- return yield* Effect.fail(new Error("OpenCode Console is not connected"));
227
- const metadata = credential.metadata;
228
- const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
229
- const token = credential.type === "oauth" ? credential.access : credential.key;
230
- const server = yield* normalizeServer(serverUrl(credential));
231
- const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input14)({
232
- query: input.query,
233
- providerID: descriptor.providerID
234
- }));
235
- const response = yield* HttpClient.withScope(HttpClient.filterStatusOk(http)).execute(request).pipe(Effect.provideService(FetchHttpClient.RequestInit, { redirect: "error" }), Effect.flatMap(HttpClientResponse.schemaBodyJson(Response2)), Effect.scoped, Effect.timeoutOrElse({
236
- duration: Duration.seconds(25),
237
- orElse: () => Effect.fail(new Error("OpenCode web search request timed out"))
238
- }));
239
- if (response.providerID !== descriptor.providerID) {
240
- return yield* Effect.fail(new Error(`OpenCode web search returned provider ${response.providerID} instead of ${descriptor.providerID}`));
241
- }
242
- return response.results;
243
- })
244
- });
245
- editor.default.set(descriptor.providerID);
246
- });
247
- const apply = Effect.fn("OpencodePlugin.apply")(function* (next) {
248
- snapshot = next;
249
- yield* Effect.all([ctx.catalog.reload(), ctx.websearch.reload()], { concurrency: 2, discard: true });
250
- });
251
- const refresh = () => loading.withPermit(load().pipe(Effect.andThen(apply)));
252
- yield* bus.subscribe(Event15.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID6.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
253
- yield* Effect.sleep(Duration.minutes(10)).pipe(Effect.andThen(loading.withPermit(load().pipe(Effect.flatMap((next) => Equal.equals(snapshot, next) ? Effect.void : apply(next))))), Effect.forever, Effect.forkScoped);
197
+ const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.catalog.reload())));
198
+ yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID6.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
254
199
  })
255
200
  });
256
- function fetchConfig(http, value) {
201
+ function fetchProviders(http, value) {
257
202
  const metadata = value.metadata;
203
+ const server = typeof metadata?.server === "string" ? metadata.server : defaultServer;
258
204
  const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
259
205
  const token = value.type === "oauth" ? value.access : value.key;
260
- return http.execute(HttpClientRequest.get(`${serverUrl(value)}/api/v2/config`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}))).pipe(Effect.flatMap((response) => {
206
+ return http.execute(HttpClientRequest.get(`${server}/api/v2/config`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}))).pipe(Effect.flatMap((response) => {
261
207
  if (response.status === 404)
262
208
  return Effect.undefined;
263
- return HttpClientResponse.filterStatusOk(response).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(RemoteResponse)));
209
+ return HttpClientResponse.filterStatusOk(response).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(RemoteResponse)), Effect.map((remote) => remote.providers));
264
210
  }));
265
211
  }
266
- function serverUrl(value) {
267
- return typeof value.metadata?.server === "string" ? value.metadata.server : defaultServer;
268
- }
269
212
  function withoutCredentials(body) {
270
213
  return body && Object.fromEntries(Object.entries(body).filter(([key]) => !["apiKey", "authToken", "accessToken"].includes(key)));
271
214
  }
@@ -307,10 +250,7 @@ function credential(http, server, token) {
307
250
  get(http, `${server}/api/user`, token.access_token, User),
308
251
  get(http, `${server}/api/orgs`, token.access_token, Schema.Array(Org))
309
252
  ], { concurrency: 2 });
310
- const org = token.org_id == null ? orgs.toSorted((a, b) => a.name.localeCompare(b.name) || a.id.localeCompare(b.id))[0] : orgs.find((org) => org.id === token.org_id);
311
- if (token.org_id != null && !org) {
312
- return yield* Effect.fail(new Error(`OpenCode organization not found: ${token.org_id}`));
313
- }
253
+ const org = orgs.toSorted((a, b) => a.name.localeCompare(b.name) || a.id.localeCompare(b.id))[0];
314
254
  return OAuth3.make({
315
255
  type: "oauth",
316
256
  methodID,
@@ -331,7 +271,7 @@ function get(http, url, token, schema) {
331
271
  return HttpClient.filterStatusOk(http).execute(HttpClientRequest.get(url).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token))).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(schema)));
332
272
  }
333
273
  function post(http, url, body, schema, statusOk = true) {
334
- return HttpClientRequest.post(url).pipe(HttpClientRequest.acceptJson, HttpClientRequest.schemaBodyJson(Schema.Record(Schema.String, Schema.Union([Schema.String, Schema.Boolean])))(body), Effect.flatMap((request) => http.execute(request)), Effect.flatMap((response) => statusOk ? HttpClientResponse.filterStatusOk(response) : Effect.succeed(response)), Effect.flatMap(HttpClientResponse.schemaBodyJson(schema)));
274
+ return HttpClientRequest.post(url).pipe(HttpClientRequest.acceptJson, HttpClientRequest.schemaBodyJson(Schema.Record(Schema.String, Schema.String))(body), Effect.flatMap((request) => http.execute(request)), Effect.flatMap((response) => statusOk ? HttpClientResponse.filterStatusOk(response) : Effect.succeed(response)), Effect.flatMap(HttpClientResponse.schemaBodyJson(schema)));
335
275
  }
336
276
 
337
277
  export { OpencodePlugin2 };
@@ -2,20 +2,20 @@ import {
2
2
  NonNegativeInt2,
3
3
  PositiveInt2,
4
4
  RelativePath2
5
- } from "./model-resolver-922hggd3.js";
5
+ } from "./file-922hggd3.js";
6
6
  import {
7
- Service56,
8
- node59
9
- } from "./model-resolver-z7dhx1kn.js";
7
+ Service66,
8
+ node70
9
+ } from "./file-cp5f26bt.js";
10
10
  import {
11
- Content3
12
- } from "./model-resolver-epzffrx8.js";
11
+ Content2
12
+ } from "./file-w85wdfaw.js";
13
13
  import {
14
14
  detect2
15
- } from "./model-resolver-3smtnn6g.js";
15
+ } from "./file-3smtnn6g.js";
16
16
  import {
17
17
  __export
18
- } from "./model-resolver-9rqn6x4v.js";
18
+ } from "./file-9rqn6x4v.js";
19
19
 
20
20
  // src/tool/read-filesystem.ts
21
21
  var exports_read_filesystem = {};
@@ -33,9 +33,9 @@ __export(exports_read_filesystem, {
33
33
  PageInput: () => PageInput2,
34
34
  PathKindError: () => PathKindError2,
35
35
  ReadToolFileSystem: () => exports_read_filesystem,
36
- Service: () => Service11,
36
+ Service: () => Service5,
37
37
  TextPage: () => TextPage2,
38
- node: () => node14,
38
+ node: () => node7,
39
39
  read: () => read2
40
40
  });
41
41
  import path from "path";
@@ -89,7 +89,7 @@ var PageInput2 = Schema.Struct({
89
89
  });
90
90
  var FileContent2 = Schema.Struct({
91
91
  type: Schema.Literal("file"),
92
- ...Content3.fields
92
+ ...Content2.fields
93
93
  }).annotate({ identifier: "ReadTool.FileContent" });
94
94
 
95
95
  class TextPage2 extends Schema.Class("ReadTool.TextPage")({
@@ -114,7 +114,7 @@ class ListPage2 extends Schema.Class("ReadTool.ListPage")({
114
114
  }) {
115
115
  }
116
116
 
117
- class Service11 extends Context.Service()("@opencode/ReadToolFileSystem") {
117
+ class Service5 extends Context.Service()("@opencode/ReadToolFileSystem") {
118
118
  }
119
119
  var mimeType = (value) => lookup(value) || "application/octet-stream";
120
120
  var read2 = Effect.fn("ReadTool.read")(function* (files, input, resource, page = {}) {
@@ -326,13 +326,13 @@ var nthNewline = (bytes, count) => {
326
326
  return index + 1;
327
327
  }
328
328
  };
329
- var layer = Layer.effect(Service11, Effect.gen(function* () {
330
- const environment = yield* Service56;
331
- return Service11.of({
329
+ var layer = Layer.effect(Service5, Effect.gen(function* () {
330
+ const environment = yield* Service66;
331
+ return Service5.of({
332
332
  list: environment.files.list,
333
333
  read: (path2, resource, page) => read2(environment.files, path2, resource, page)
334
334
  });
335
335
  }));
336
- var node14 = makeLocationNode({ service: Service11, layer, deps: [node59] });
336
+ var node7 = makeLocationNode({ service: Service5, layer, deps: [node70] });
337
337
 
338
- export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, OffsetOutOfRangeError2, PathKindError2, PageInput2, FileContent2, TextPage2, ListEntry2, ListPage2, Service11, read2, node14, exports_read_filesystem };
338
+ export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, OffsetOutOfRangeError2, PathKindError2, PageInput2, FileContent2, TextPage2, ListEntry2, ListPage2, Service5, read2, node7, exports_read_filesystem };
@@ -1,36 +1,21 @@
1
1
  import {
2
- Service77
3
- } from "./model-resolver-csz4k5km.js";
2
+ Service79
3
+ } from "./file-hw2gt29t.js";
4
4
  import {
5
- Service65,
6
- Event16
7
- } from "./model-resolver-jwazx1ed.js";
5
+ Service51,
6
+ Event11
7
+ } from "./file-1ajj2c3r.js";
8
8
 
9
9
  // src/plugin/models-dev.ts
10
10
  import { define } from "@opencode/plugin/effect/plugin";
11
11
  import { Integration } from "@opencode/schema/integration";
12
12
  import { Provider } from "@opencode/schema/provider";
13
13
  import { Effect, Stream } from "effect";
14
- var BEDROCK_PROFILE_ONLY_IDS = [
15
- "amazon.nova-2-lite-v1:0",
16
- "anthropic.claude-fable-5",
17
- "anthropic.claude-fable-5-1",
18
- "anthropic.claude-haiku-4-5-20251001-v1:0",
19
- "anthropic.claude-opus-4-1-20250805-v1:0",
20
- "anthropic.claude-opus-4-5-20251101-v1:0",
21
- "anthropic.claude-opus-4-7",
22
- "anthropic.claude-opus-4-8",
23
- "anthropic.claude-opus-5",
24
- "anthropic.claude-sonnet-4-5-20250929-v1:0",
25
- "anthropic.claude-sonnet-5",
26
- "deepseek.r1-v1:0",
27
- "mistral.pixtral-large-2502-v1:0"
28
- ];
29
14
  var ModelsDevPlugin2 = define({
30
15
  id: "opencode.models.dev",
31
16
  effect: Effect.fn(function* (ctx) {
32
- const modelsDev = yield* Service65;
33
- const bus = yield* Service77;
17
+ const modelsDev = yield* Service51;
18
+ const bus = yield* Service79;
34
19
  const loaded = { data: snapshots(yield* modelsDev.get()) };
35
20
  yield* ctx.integration.transform((integrations) => {
36
21
  for (const provider of loaded.data) {
@@ -60,13 +45,11 @@ var ModelsDevPlugin2 = define({
60
45
  for (const model of provider.models) {
61
46
  if (model.status === "deprecated")
62
47
  continue;
63
- if (provider.info.id === Provider.ID.amazonBedrock && BEDROCK_PROFILE_ONLY_IDS.includes(model.modelID ?? model.id))
64
- continue;
65
48
  catalog.model.update(provider.info.id, model.id, (draft) => Object.assign(draft, copy(model)));
66
49
  }
67
50
  }
68
51
  });
69
- yield* bus.subscribe(Event16.Refreshed).pipe(Stream.runForEach(() => modelsDev.get().pipe(Effect.tap((data) => Effect.sync(() => loaded.data = snapshots(data))), Effect.andThen(ctx.integration.reload()), Effect.andThen(ctx.catalog.reload()))), Effect.forkScoped({ startImmediately: true }));
52
+ yield* bus.subscribe(Event11.Refreshed).pipe(Stream.runForEach(() => modelsDev.get().pipe(Effect.tap((data) => Effect.sync(() => loaded.data = snapshots(data))), Effect.andThen(ctx.integration.reload()), Effect.andThen(ctx.catalog.reload()))), Effect.forkScoped({ startImmediately: true }));
70
53
  })
71
54
  });
72
55
  function environmentNames(provider) {
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  AbsolutePath2
3
- } from "./model-resolver-922hggd3.js";
3
+ } from "./file-922hggd3.js";
4
4
  import {
5
5
  __export
6
- } from "./model-resolver-9rqn6x4v.js";
6
+ } from "./file-9rqn6x4v.js";
7
7
 
8
8
  // src/project/schema.ts
9
9
  var exports_schema = {};
10
10
  __export(exports_schema, {
11
11
  Current: () => Current3,
12
12
  Event: () => Event20,
13
- ID: () => ID17,
14
- Info: () => Info32,
13
+ ID: () => ID18,
14
+ Info: () => Info33,
15
15
  ProjectSchema: () => exports_schema,
16
16
  UpdateInput: () => UpdateInput4,
17
17
  Vcs: () => Vcs3
18
18
  });
19
19
  import { Schema } from "effect";
20
20
  import { Project } from "@opencode/schema/project";
21
- var ID17 = Project.ID;
21
+ var ID18 = Project.ID;
22
22
  var Current3 = Project.Current;
23
- var Info32 = Project.Info;
23
+ var Info33 = Project.Info;
24
24
  var UpdateInput4 = Project.UpdateInput;
25
25
  var Event20 = Project.Event;
26
26
  var Vcs3 = Schema.Struct({
@@ -28,4 +28,4 @@ var Vcs3 = Schema.Struct({
28
28
  store: AbsolutePath2
29
29
  });
30
30
 
31
- export { ID17, Current3, Info32, UpdateInput4, Event20, Vcs3, exports_schema };
31
+ export { ID18, Current3, Info33, UpdateInput4, Event20, Vcs3, exports_schema };
@@ -1,6 +1,6 @@
1
1
  import {
2
- Service74
3
- } from "./model-resolver-7fys8geh.js";
2
+ Service76
3
+ } from "./file-enk99f8n.js";
4
4
  import {
5
5
  PATCH_CONTEXT_LINES2,
6
6
  MAX_PATCH_BYTES2,
@@ -10,18 +10,18 @@ import {
10
10
  deletePatch2,
11
11
  countPatch2,
12
12
  chunksByFile2
13
- } from "./model-resolver-tazgh4e4.js";
13
+ } from "./file-tazgh4e4.js";
14
14
  import {
15
15
  DiffError2
16
- } from "./model-resolver-me88hgte.js";
16
+ } from "./file-z3syage6.js";
17
17
  import {
18
18
  __export
19
- } from "./model-resolver-9rqn6x4v.js";
19
+ } from "./file-9rqn6x4v.js";
20
20
 
21
21
  // src/plugin/vcs/hg.ts
22
22
  var exports_hg = {};
23
23
  __export(exports_hg, {
24
- Plugin: () => Plugin9,
24
+ Plugin: () => Plugin6,
25
25
  VcsHgPlugin: () => exports_hg
26
26
  });
27
27
  import path from "path";
@@ -30,10 +30,10 @@ import { ChildProcess } from "effect/unstable/process";
30
30
  import { define } from "@opencode/plugin/effect/plugin";
31
31
  import { FSUtil } from "@opencode/util/fs-util";
32
32
  import { AppProcess } from "@opencode/util/process";
33
- var Plugin9 = define({
33
+ var Plugin6 = define({
34
34
  id: "opencode.vcs.hg",
35
35
  effect: Effect.fn("VcsHgPlugin")(function* (ctx) {
36
- const location = yield* Service74;
36
+ const location = yield* Service76;
37
37
  if (location.vcs?.type !== "hg")
38
38
  return;
39
39
  const processes = yield* AppProcess.Service;
@@ -188,4 +188,4 @@ function makeHg(proc, worktree) {
188
188
  return { status, diff, branch, ancestor, cat };
189
189
  }
190
190
 
191
- export { Plugin9, exports_hg };
191
+ export { Plugin6, exports_hg };
@@ -1,30 +1,29 @@
1
1
  import {
2
2
  __export
3
- } from "./model-resolver-9rqn6x4v.js";
3
+ } from "./file-9rqn6x4v.js";
4
4
 
5
5
  // src/provider.ts
6
6
  var exports_provider3 = {};
7
7
  __export(exports_provider3, {
8
8
  AISDK_PREFIX: () => AISDK_PREFIX2,
9
- ID: () => ID10,
10
- Info: () => Info23,
9
+ ID: () => ID16,
10
+ Info: () => Info30,
11
11
  LoadError: () => LoadError3,
12
12
  Provider: () => exports_provider3,
13
- Request: () => Request2,
13
+ Request: () => Request3,
14
14
  Settings: () => Settings2,
15
15
  aisdk: () => aisdk2,
16
16
  isAISDK: () => isAISDK2,
17
17
  loadPackage: () => loadPackage2,
18
18
  mergeHeaders: () => mergeHeaders2,
19
19
  mergeOverlay: () => mergeOverlay2,
20
- nativeSettings: () => nativeSettings2,
21
20
  packageName: () => packageName2
22
21
  });
23
- import { Effect, Schema, Struct } from "effect";
22
+ import { Effect, Schema } from "effect";
24
23
  import { Provider } from "@opencode/schema/provider";
25
24
  import { isRecord } from "@opencode/ai/utils/record";
26
25
  import { importModule, resolveModule } from "@opencode/util/runtime-import";
27
- var ID10 = Provider.ID;
26
+ var ID16 = Provider.ID;
28
27
  var AISDK_PREFIX2 = "aisdk:";
29
28
  var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
30
29
  var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
@@ -113,10 +112,6 @@ var loadPackage2 = Effect.fn("Provider.loadPackage")(function* (input, npm) {
113
112
  });
114
113
  return yield* importPackage(specifier, entrypoint);
115
114
  });
116
- var TRANSPORT_KEYS = ["chunkTimeout", "fetch", "timeout"];
117
- function nativeSettings2(settings) {
118
- return Struct.omit(settings, TRANSPORT_KEYS);
119
- }
120
115
  function mergeOverlay2(base, overlay) {
121
116
  if (base === undefined)
122
117
  return overlay && decodeJsonRecord({ ...overlay });
@@ -142,9 +137,9 @@ function mergeHeaders2(base, overlay) {
142
137
  return result;
143
138
  }, new Map).values());
144
139
  }
145
- var Request2 = Provider.Request;
140
+ var Request3 = Provider.Request;
146
141
  var Settings2 = Provider.Settings;
147
- var Info23 = Provider.Info;
142
+ var Info30 = Provider.Info;
148
143
  var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
149
144
  const module = yield* Effect.tryPromise({
150
145
  try: () => {
@@ -166,4 +161,4 @@ var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, en
166
161
  return module;
167
162
  });
168
163
 
169
- export { ID10, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, mergeOverlay2, mergeHeaders2, Request2, Settings2, Info23, exports_provider3 };
164
+ export { ID16, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, mergeOverlay2, mergeHeaders2, Request3, Settings2, Info30, exports_provider3 };