@opencode/core 0.0.0-dev-19637 → 0.0.0-dev-19638

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 (461) hide show
  1. package/dist/agent.js +60 -60
  2. package/dist/aisdk-native.js +58 -58
  3. package/dist/aisdk.js +63 -63
  4. package/dist/app.js +9 -9
  5. package/dist/bus.js +49 -49
  6. package/dist/chunks/{file-access-6n9rjysc.js → file-access-01bhhyb7.js} +2 -2
  7. package/dist/chunks/{file-access-s8d7rejh.js → file-access-02nrjc1r.js} +7 -7
  8. package/dist/chunks/{file-access-2jywpyj8.js → file-access-0hnxfn8s.js} +22 -22
  9. package/dist/chunks/{file-access-kmkxeyh5.js → file-access-0j8y3tn5.js} +21 -21
  10. package/dist/chunks/file-access-0mesazry.js +4 -0
  11. package/dist/chunks/{file-access-8v7kkkbw.js → file-access-0tg58rzn.js} +10 -10
  12. package/dist/chunks/{file-access-5dyw5czf.js → file-access-1bz55dqa.js} +79 -79
  13. package/dist/chunks/{file-access-pf4e8y03.js → file-access-1h5aw7tx.js} +14 -14
  14. package/dist/chunks/{file-access-bycqfhhp.js → file-access-1r6cykv1.js} +4 -4
  15. package/dist/chunks/{file-access-cjwxcw7h.js → file-access-22xdy94t.js} +9 -9
  16. package/dist/chunks/{file-access-gy9mz9hm.js → file-access-25fjjxm2.js} +28 -28
  17. package/dist/chunks/{file-access-www2df0c.js → file-access-2j0dgarf.js} +13 -13
  18. package/dist/chunks/{file-access-da5p2m5f.js → file-access-2js99wz0.js} +17 -17
  19. package/dist/chunks/{file-access-56m60q16.js → file-access-2wts5qzq.js} +7 -7
  20. package/dist/chunks/{file-access-vbmj93bj.js → file-access-32x43b5h.js} +1 -1
  21. package/dist/chunks/{file-access-xh45r5pf.js → file-access-33c2t3mm.js} +16 -16
  22. package/dist/chunks/{file-access-rytnjs8b.js → file-access-3knnkrdf.js} +17 -17
  23. package/dist/chunks/{file-access-ybhbtxjg.js → file-access-3ktbe3hf.js} +4 -4
  24. package/dist/chunks/{file-access-ycjb11n5.js → file-access-3ppptnan.js} +5 -5
  25. package/dist/chunks/{file-access-m7qxvmyy.js → file-access-3stbjpb0.js} +19 -19
  26. package/dist/chunks/{file-access-dffmtpj7.js → file-access-3zdwcfwy.js} +7 -7
  27. package/dist/chunks/{file-access-s5trtwgj.js → file-access-3zrjs6f3.js} +8 -8
  28. package/dist/chunks/{file-access-paghhsgz.js → file-access-46hd3f0f.js} +4 -4
  29. package/dist/chunks/{file-access-hjt4xg1x.js → file-access-47gsdddb.js} +6 -6
  30. package/dist/chunks/{file-access-ssdhg7mn.js → file-access-4cmr76fd.js} +3 -3
  31. package/dist/chunks/{file-access-0r581tt5.js → file-access-4hxfx086.js} +8 -8
  32. package/dist/chunks/{file-access-zhq6vg7a.js → file-access-4jc5c4h4.js} +1 -1
  33. package/dist/chunks/{file-access-a8092cx4.js → file-access-4nfbas15.js} +10 -10
  34. package/dist/chunks/{file-access-v2rf49aq.js → file-access-4vb1y0qz.js} +5 -5
  35. package/dist/chunks/{file-access-hpv156nq.js → file-access-4wrt768g.js} +1 -1
  36. package/dist/chunks/{file-access-8nsc8gnz.js → file-access-50hk1gym.js} +13 -13
  37. package/dist/chunks/{file-access-szrf2gp8.js → file-access-56rycjvn.js} +22 -22
  38. package/dist/chunks/{file-access-4e8qeqw2.js → file-access-5n7sh86d.js} +6 -6
  39. package/dist/chunks/{file-access-ks3vd1j0.js → file-access-5srkf7nd.js} +9 -9
  40. package/dist/chunks/{file-access-11ayc5k1.js → file-access-62agcz7g.js} +18 -18
  41. package/dist/chunks/{file-access-rw2xgg53.js → file-access-6jft8mvs.js} +17 -17
  42. package/dist/chunks/{file-access-v6ede5y2.js → file-access-6m499kzd.js} +22 -22
  43. package/dist/chunks/{file-access-mrhssej4.js → file-access-6snq9ewv.js} +49 -49
  44. package/dist/chunks/{file-access-hv8qssb6.js → file-access-6ycvbcht.js} +15 -15
  45. package/dist/chunks/{file-access-t192nm8m.js → file-access-6ykthspn.js} +4 -4
  46. package/dist/chunks/{file-access-zd6ydzqz.js → file-access-6ywjc070.js} +19 -19
  47. package/dist/chunks/{file-access-zqfhgf5b.js → file-access-76jmq1mn.js} +167 -167
  48. package/dist/chunks/{file-access-j933w6sb.js → file-access-76xmbs1m.js} +13 -13
  49. package/dist/chunks/{file-access-76rf663v.js → file-access-7dcaf0ce.js} +19 -19
  50. package/dist/chunks/{file-access-k701emjf.js → file-access-7h1ryc6p.js} +15 -12
  51. package/dist/chunks/{file-access-5jhep4w0.js → file-access-7heb594d.js} +24 -24
  52. package/dist/chunks/{file-access-kq1t1162.js → file-access-7n0p62ew.js} +10 -10
  53. package/dist/chunks/{file-access-17m608xa.js → file-access-7tcrqq4t.js} +6 -6
  54. package/dist/chunks/{file-access-zs4gxp06.js → file-access-7tdtfp7b.js} +21 -21
  55. package/dist/chunks/{file-access-73tb2d7t.js → file-access-7yh4e7ss.js} +2 -2
  56. package/dist/chunks/{file-access-x182m7xa.js → file-access-812zr1rk.js} +9 -9
  57. package/dist/chunks/{file-access-p459fsr1.js → file-access-8526r7vx.js} +23 -23
  58. package/dist/chunks/{file-access-890y149a.js → file-access-8602h8p3.js} +7 -7
  59. package/dist/chunks/{file-access-30ntgpz7.js → file-access-86jfkp86.js} +24 -24
  60. package/dist/chunks/{file-access-0xezjjjn.js → file-access-8ank75fn.js} +7 -7
  61. package/dist/chunks/{file-access-s0bax34n.js → file-access-8b68vhre.js} +14 -14
  62. package/dist/chunks/{file-access-9t16ekdb.js → file-access-8kckztxt.js} +23 -23
  63. package/dist/chunks/{file-access-2775jj4e.js → file-access-8r5sxhkv.js} +3 -3
  64. package/dist/chunks/{file-access-x0wxay44.js → file-access-8snetkfr.js} +4 -4
  65. package/dist/chunks/{file-access-7zm7jxc7.js → file-access-8yph952s.js} +3 -3
  66. package/dist/chunks/{file-access-ygk8sne3.js → file-access-8yppv9j5.js} +22 -22
  67. package/dist/chunks/{file-access-jcas26n6.js → file-access-917gka4z.js} +12 -12
  68. package/dist/chunks/{file-access-gg8wv5as.js → file-access-92f8rgp2.js} +22 -22
  69. package/dist/chunks/{file-access-sm965ndy.js → file-access-99xay3p1.js} +7 -7
  70. package/dist/chunks/{file-access-1z24zf3x.js → file-access-9ancjmj9.js} +34 -30
  71. package/dist/chunks/{file-access-89smrnyf.js → file-access-9b36z5yg.js} +1 -1
  72. package/dist/chunks/{file-access-92xny6nd.js → file-access-9bkgmrac.js} +3 -3
  73. package/dist/chunks/{file-access-7gahrvww.js → file-access-9ev53f4q.js} +15 -15
  74. package/dist/chunks/{file-access-aj5f68bw.js → file-access-9rrc34ns.js} +22 -22
  75. package/dist/chunks/{file-access-hfx69nqz.js → file-access-9s92gzw6.js} +20 -20
  76. package/dist/chunks/{file-access-btrn8rgp.js → file-access-a3dkvnxb.js} +41 -41
  77. package/dist/chunks/{file-access-fdms3n6w.js → file-access-a3ftg8j6.js} +7 -7
  78. package/dist/chunks/{file-access-etbqe1sp.js → file-access-a46e93d3.js} +3 -3
  79. package/dist/chunks/{file-access-dxzm7sqd.js → file-access-a6kbnp9r.js} +5 -5
  80. package/dist/chunks/{file-access-h8ptc2jy.js → file-access-a97f1kxr.js} +22 -22
  81. package/dist/chunks/{file-access-jkpvc1gj.js → file-access-ajk9kppy.js} +15 -15
  82. package/dist/chunks/{file-access-vbctgszn.js → file-access-andt55zn.js} +42 -42
  83. package/dist/chunks/{file-access-490pvwh4.js → file-access-ashkezcm.js} +30 -30
  84. package/dist/chunks/{file-access-e2609ak5.js → file-access-avs77xrm.js} +4 -4
  85. package/dist/chunks/{file-access-xf0yen68.js → file-access-azvx9vjt.js} +14 -14
  86. package/dist/chunks/{file-access-v5dkyp31.js → file-access-b27vhd2z.js} +3 -3
  87. package/dist/chunks/{file-access-204v3eqv.js → file-access-b2gch9fn.js} +22 -22
  88. package/dist/chunks/{file-access-h7923tt2.js → file-access-b2jj88ef.js} +13 -13
  89. package/dist/chunks/{file-access-1ktgcqzb.js → file-access-b5j16w9d.js} +8 -8
  90. package/dist/chunks/{file-access-ss56yrvr.js → file-access-b5jkzqy2.js} +36 -36
  91. package/dist/chunks/{file-access-196s2236.js → file-access-bbfsgge0.js} +19 -19
  92. package/dist/chunks/{file-access-s52y66be.js → file-access-be47w3k3.js} +9 -9
  93. package/dist/chunks/{file-access-hg3nex49.js → file-access-bhqn7aj9.js} +9 -9
  94. package/dist/chunks/{file-access-f55hhvzh.js → file-access-bj5hbc59.js} +4 -4
  95. package/dist/chunks/{file-access-4v7qdvcn.js → file-access-by5v678g.js} +4 -4
  96. package/dist/chunks/{file-access-efzqyggw.js → file-access-by9rpdtw.js} +10 -10
  97. package/dist/chunks/{file-access-vh7dp00t.js → file-access-c1661jpf.js} +1 -1
  98. package/dist/chunks/{file-access-p37cw4rj.js → file-access-cmwkp3r5.js} +7 -7
  99. package/dist/chunks/{file-access-h6r3nrb9.js → file-access-cpj0znwe.js} +3 -3
  100. package/dist/chunks/{file-access-rzbfacg9.js → file-access-cy2r3qg1.js} +31 -31
  101. package/dist/chunks/{file-access-npmmx7a7.js → file-access-dbtyj0an.js} +6 -6
  102. package/dist/chunks/{file-access-j4gdw6gw.js → file-access-dpcqhtkn.js} +12 -12
  103. package/dist/chunks/{file-access-r8t2xrpw.js → file-access-dsyvch4e.js} +19 -19
  104. package/dist/chunks/{file-access-apqkkg64.js → file-access-dthhqzns.js} +10 -10
  105. package/dist/chunks/{file-access-q2cy2y1a.js → file-access-dy562txv.js} +17 -17
  106. package/dist/chunks/{file-access-grw98w6v.js → file-access-e2e34s5q.js} +21 -21
  107. package/dist/chunks/{file-access-ck2q371s.js → file-access-e2qab2dq.js} +4 -4
  108. package/dist/chunks/{file-access-nbygjmnq.js → file-access-e3adyxrg.js} +28 -28
  109. package/dist/chunks/{file-access-sn3rxfgj.js → file-access-e64xqjet.js} +6 -6
  110. package/dist/chunks/{file-access-waqrje5a.js → file-access-ea3fxjgj.js} +25 -25
  111. package/dist/chunks/{file-access-qf53spd6.js → file-access-eahf1j6r.js} +16 -16
  112. package/dist/chunks/{file-access-q0r2d8rn.js → file-access-enbnvbva.js} +30 -30
  113. package/dist/chunks/{file-access-rhr5fvwd.js → file-access-et8mzwyf.js} +9 -9
  114. package/dist/chunks/{file-access-yd4pvbh8.js → file-access-ewwzb6sv.js} +5 -5
  115. package/dist/chunks/{file-access-qrkqsxkr.js → file-access-f3k401ar.js} +18 -18
  116. package/dist/chunks/{file-access-50mzsvk4.js → file-access-f3ngv102.js} +3 -3
  117. package/dist/chunks/{file-access-5d6nmhah.js → file-access-f6fgfmmn.js} +26 -26
  118. package/dist/chunks/{file-access-qehrwxjr.js → file-access-fak7xqqt.js} +27 -27
  119. package/dist/chunks/{file-access-m8y6a9gt.js → file-access-fc4nsy51.js} +36 -36
  120. package/dist/chunks/{file-access-jsbpgh5s.js → file-access-g00jty2v.js} +8 -8
  121. package/dist/chunks/{file-access-e5vq6wef.js → file-access-g0r62mbx.js} +3 -3
  122. package/dist/chunks/{file-access-q54epvg6.js → file-access-gsj5sv52.js} +8 -8
  123. package/dist/chunks/file-access-h2q74avv.js +26 -0
  124. package/dist/chunks/{file-access-wa065q7p.js → file-access-he2x7e7z.js} +2 -2
  125. package/dist/chunks/{file-access-m6ay5emd.js → file-access-hftty0sn.js} +41 -24
  126. package/dist/chunks/{file-access-0addxkp5.js → file-access-hg4hxzv1.js} +24 -24
  127. package/dist/chunks/{file-access-3h8hw3gv.js → file-access-hm7xtcxq.js} +12 -12
  128. package/dist/chunks/{file-access-n4r3xatb.js → file-access-hn57h045.js} +3 -3
  129. package/dist/chunks/{file-access-r88mwysp.js → file-access-hpe0ccrg.js} +42 -42
  130. package/dist/chunks/{file-access-c9ecbdb0.js → file-access-hwr433ds.js} +10 -10
  131. package/dist/chunks/{file-access-4tafv0me.js → file-access-j03d6hs6.js} +17 -17
  132. package/dist/chunks/{file-access-9k7ekhq9.js → file-access-j0vfj7ky.js} +8 -8
  133. package/dist/chunks/{file-access-0ft9cg2j.js → file-access-j15mfg1p.js} +5 -5
  134. package/dist/chunks/{file-access-a3r4dcrj.js → file-access-jca4demv.js} +1 -1
  135. package/dist/chunks/{file-access-q5rhn9x0.js → file-access-jgv4nkbw.js} +15 -15
  136. package/dist/chunks/{file-access-ffzfw6dq.js → file-access-jjefk1kz.js} +41 -41
  137. package/dist/chunks/{file-access-xc8sh4yv.js → file-access-js4k7t4e.js} +14 -14
  138. package/dist/chunks/{file-access-xahw4cd4.js → file-access-k31cg7qp.js} +19 -19
  139. package/dist/chunks/{file-access-fstwsg2e.js → file-access-k33y0e94.js} +39 -39
  140. package/dist/chunks/{file-access-nmn5p8yd.js → file-access-ke9sk9ax.js} +14 -14
  141. package/dist/chunks/{file-access-x2nqcre9.js → file-access-km5njsm9.js} +9 -9
  142. package/dist/chunks/{file-access-xg631j7a.js → file-access-kr9cqyf0.js} +6 -6
  143. package/dist/chunks/{file-access-xdrba4jw.js → file-access-kw9xdzv2.js} +7 -7
  144. package/dist/chunks/{file-access-sfe15w4t.js → file-access-m6gy85y0.js} +13 -13
  145. package/dist/chunks/{file-access-vgxg80g2.js → file-access-mby8mxat.js} +5 -5
  146. package/dist/chunks/{file-access-1ygqh575.js → file-access-mfqp6xfm.js} +4 -4
  147. package/dist/chunks/{file-access-z4zzqkyn.js → file-access-mmy2zf88.js} +27 -27
  148. package/dist/chunks/{file-access-ewvjyc2d.js → file-access-mrxfpjcs.js} +7 -7
  149. package/dist/chunks/{file-access-p630c9xd.js → file-access-mvn2r3z4.js} +7 -7
  150. package/dist/chunks/{file-access-hmfh1rh8.js → file-access-mxyhxd0t.js} +9 -9
  151. package/dist/chunks/{file-access-7374nn42.js → file-access-mzrp1fyr.js} +16 -16
  152. package/dist/chunks/{file-access-zc4efzed.js → file-access-n9y08rq6.js} +10 -10
  153. package/dist/chunks/{file-access-xe94yqgp.js → file-access-ngdt5g2x.js} +3 -3
  154. package/dist/chunks/{file-access-cz6y612w.js → file-access-njqgj7qg.js} +9 -9
  155. package/dist/chunks/{file-access-ah3b0qta.js → file-access-nzha355v.js} +14 -14
  156. package/dist/chunks/{file-access-rvh2fpxc.js → file-access-p2f255ct.js} +2 -2
  157. package/dist/chunks/{file-access-9ppknq4r.js → file-access-p5599t8k.js} +5 -5
  158. package/dist/chunks/{file-access-64stfe7m.js → file-access-pdd0bbjk.js} +15 -15
  159. package/dist/chunks/{file-access-bh51kybc.js → file-access-pfz3dw98.js} +22 -22
  160. package/dist/chunks/{file-access-c07j17hk.js → file-access-phnkt68t.js} +307 -307
  161. package/dist/chunks/{file-access-wjcn38ba.js → file-access-pj43p8qp.js} +1 -1
  162. package/dist/chunks/{file-access-55zx3jwd.js → file-access-pr444p5c.js} +16 -16
  163. package/dist/chunks/{file-access-b2rkp7aa.js → file-access-q12jtckr.js} +8 -8
  164. package/dist/chunks/{file-access-jexxy024.js → file-access-q3t37ft6.js} +3 -3
  165. package/dist/chunks/{file-access-eezbyd6d.js → file-access-qfjwnv02.js} +1 -1
  166. package/dist/chunks/{file-access-fcrkznn8.js → file-access-qgn6gcr1.js} +4 -4
  167. package/dist/chunks/{file-access-cwa6csj7.js → file-access-qmqgtz8f.js} +7 -7
  168. package/dist/chunks/{file-access-ch5zdy2s.js → file-access-qv9gx9bg.js} +2 -2
  169. package/dist/chunks/{file-access-352n4qm2.js → file-access-qx87dfmj.js} +14 -14
  170. package/dist/chunks/{file-access-1szx0rct.js → file-access-r4ck6ye8.js} +13 -13
  171. package/dist/chunks/{file-access-ebw7vtp3.js → file-access-rds37zvx.js} +27 -27
  172. package/dist/chunks/{file-access-afes4715.js → file-access-rgp511zr.js} +1 -1
  173. package/dist/chunks/{file-access-t5dv71qx.js → file-access-rj5xkaak.js} +11 -11
  174. package/dist/chunks/{file-access-0x7mekqw.js → file-access-rsk3jvy7.js} +9 -9
  175. package/dist/chunks/{file-access-ccz297mt.js → file-access-rtxak1ft.js} +11 -11
  176. package/dist/chunks/{file-access-det33w69.js → file-access-rw8kjknk.js} +4 -4
  177. package/dist/chunks/{file-access-hfvc964k.js → file-access-s587y4ee.js} +3 -3
  178. package/dist/chunks/{file-access-c8vbwmvy.js → file-access-s6jatava.js} +19 -19
  179. package/dist/chunks/{file-access-pcd7pbnd.js → file-access-s7769g1c.js} +23 -23
  180. package/dist/chunks/{file-access-6d6cd74m.js → file-access-s8j3dq9b.js} +2 -2
  181. package/dist/chunks/{file-access-w1wd9tp2.js → file-access-snmjhvm7.js} +12 -12
  182. package/dist/chunks/{file-access-v812h1xz.js → file-access-spqgdpza.js} +22 -22
  183. package/dist/chunks/{file-access-468d37b3.js → file-access-sstmea9h.js} +21 -21
  184. package/dist/chunks/{file-access-dhxdeg25.js → file-access-sve5t580.js} +46 -46
  185. package/dist/chunks/{file-access-e7vjkpcb.js → file-access-sxd752g3.js} +7 -7
  186. package/dist/chunks/{file-access-9zzv5pgc.js → file-access-t3swkhbg.js} +3 -3
  187. package/dist/chunks/{file-access-912kkt9t.js → file-access-t7e0y256.js} +6 -6
  188. package/dist/chunks/{file-access-ytgdyx08.js → file-access-t9kha2ca.js} +1 -1
  189. package/dist/chunks/{file-access-tcrhe9m8.js → file-access-tdbakys2.js} +18 -18
  190. package/dist/chunks/{file-access-m17nagwc.js → file-access-v65pmyz7.js} +1 -1
  191. package/dist/chunks/{file-access-t271ntmg.js → file-access-vbmkf8sa.js} +56 -56
  192. package/dist/chunks/{file-access-8yk8gp0p.js → file-access-vfp4enkz.js} +9 -9
  193. package/dist/chunks/{file-access-ky68ekyp.js → file-access-vhfq0sg5.js} +8 -8
  194. package/dist/chunks/{file-access-jy3pp1pb.js → file-access-vmgcxazz.js} +5 -5
  195. package/dist/chunks/{file-access-0v53mg2y.js → file-access-vncycja5.js} +3 -3
  196. package/dist/chunks/{file-access-xmvk7qad.js → file-access-vpgyrhve.js} +36 -36
  197. package/dist/chunks/{file-access-4jv7e9dq.js → file-access-vyqn3nqs.js} +8 -8
  198. package/dist/chunks/{file-access-5c0f1prt.js → file-access-w1k39n5e.js} +3 -3
  199. package/dist/chunks/{file-access-sf0yp864.js → file-access-w4axh9wz.js} +5 -5
  200. package/dist/chunks/{file-access-tkfbqfej.js → file-access-wc8ptzv7.js} +24 -24
  201. package/dist/chunks/{file-access-s3ze4hah.js → file-access-wvxf6pmh.js} +10 -10
  202. package/dist/chunks/{file-access-fhj2ec39.js → file-access-xsyev9bv.js} +13 -13
  203. package/dist/chunks/file-access-xv4gw76e.js +247 -0
  204. package/dist/chunks/{file-access-7qz0vyfs.js → file-access-y3d0z3tn.js} +20 -20
  205. package/dist/chunks/{file-access-dr6h9h98.js → file-access-y3ye89br.js} +40 -40
  206. package/dist/chunks/{file-access-1gfa7nhd.js → file-access-yb8fj77w.js} +30 -30
  207. package/dist/chunks/{file-access-amtb1fgb.js → file-access-ycrw32xq.js} +11 -11
  208. package/dist/chunks/{file-access-r8xr0va3.js → file-access-yp2x3t23.js} +3 -3
  209. package/dist/chunks/{file-access-jdfjhp2e.js → file-access-ypyq2zsn.js} +10 -10
  210. package/dist/chunks/{file-access-wajqf0bb.js → file-access-ys2m57fz.js} +30 -30
  211. package/dist/chunks/{file-access-y2m441pc.js → file-access-z12cg9p1.js} +8 -8
  212. package/dist/chunks/{file-access-yzcxy4rp.js → file-access-z25b1m8j.js} +36 -36
  213. package/dist/chunks/{file-access-a5mt2rtc.js → file-access-z6q28316.js} +27 -27
  214. package/dist/chunks/{file-access-8dpx7m7d.js → file-access-z6t9vx1b.js} +10 -10
  215. package/dist/chunks/{file-access-sa8j3x6g.js → file-access-zetsppkw.js} +17 -17
  216. package/dist/chunks/{file-access-kd6d57r1.js → file-access-zf9pbwsw.js} +74 -74
  217. package/dist/chunks/{file-access-x0511brf.js → file-access-zj09a0ew.js} +3 -3
  218. package/dist/chunks/{file-access-3dz5wwbt.js → file-access-zmk6j7b1.js} +12 -12
  219. package/dist/chunks/{file-access-2d8e38yw.js → file-access-zsn07k7j.js} +11 -11
  220. package/dist/chunks/{file-access-9gfvx8yt.js → file-access-zw6dtez5.js} +1 -1
  221. package/dist/codemode/instructions.js +8 -8
  222. package/dist/command.js +60 -60
  223. package/dist/config/discovery.js +53 -53
  224. package/dist/config/normalize.js +72 -72
  225. package/dist/config/plugin/agent.js +88 -88
  226. package/dist/config/plugin/command.js +161 -161
  227. package/dist/config/plugin/compaction.js +112 -112
  228. package/dist/config/plugin/compatibility.js +99 -99
  229. package/dist/config/plugin/formatter.js +87 -87
  230. package/dist/config/plugin/image.js +86 -86
  231. package/dist/config/plugin/instruction.js +58 -58
  232. package/dist/config/plugin/location-watcher.js +86 -86
  233. package/dist/config/plugin/mcp.js +94 -94
  234. package/dist/config/plugin/policy.js +85 -85
  235. package/dist/config/plugin/provider.js +86 -86
  236. package/dist/config/plugin/reference.js +87 -87
  237. package/dist/config/plugin/shell.js +88 -88
  238. package/dist/config/plugin/skill-file.js +66 -66
  239. package/dist/config/plugin/skill.js +102 -102
  240. package/dist/config/plugin/snapshot.js +86 -86
  241. package/dist/config/plugin/source.js +89 -89
  242. package/dist/config/plugin/tool-output.js +86 -86
  243. package/dist/config/plugin/websearch.js +87 -87
  244. package/dist/config/plugin/worktree.js +86 -86
  245. package/dist/config.js +92 -92
  246. package/dist/credential.js +64 -64
  247. package/dist/database/database.js +48 -48
  248. package/dist/database/drizzle/effect-sqlite/driver.js +8 -8
  249. package/dist/database/drizzle/effect-sqlite/index.js +4 -4
  250. package/dist/database/drizzle/effect-sqlite/session.js +7 -7
  251. package/dist/database/drizzle/index.js +9 -9
  252. package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
  253. package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
  254. package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
  255. package/dist/database/drizzle.js +9 -9
  256. package/dist/database/migration.gen.js +36 -36
  257. package/dist/database/migration.js +37 -37
  258. package/dist/database/v1-migration.bun.js +9 -9
  259. package/dist/effect/app-node-builder.js +226 -226
  260. package/dist/environment/environment.js +60 -60
  261. package/dist/environment/index.js +62 -62
  262. package/dist/event-logger.js +9 -9
  263. package/dist/file-access.js +69 -69
  264. package/dist/file-mutation.js +61 -61
  265. package/dist/filesystem/location-watcher-policy.js +5 -5
  266. package/dist/filesystem/location-watcher.js +171 -171
  267. package/dist/filesystem/search.js +68 -68
  268. package/dist/filesystem/watcher.js +13 -13
  269. package/dist/filesystem.js +63 -63
  270. package/dist/form.js +64 -64
  271. package/dist/formatter/builtins.js +3 -3
  272. package/dist/formatter.js +59 -59
  273. package/dist/generate.js +70 -70
  274. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
  275. package/dist/github-copilot/copilot-provider.js +3 -3
  276. package/dist/github-copilot/models.js +68 -68
  277. package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
  278. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +4 -4
  279. package/dist/image/photon.js +1 -1
  280. package/dist/image.js +5 -5
  281. package/dist/instance/service.js +5 -5
  282. package/dist/instance.js +293 -293
  283. package/dist/instruction-discovery.js +61 -61
  284. package/dist/instructions/builtins.js +58 -58
  285. package/dist/instructions/index.js +5 -5
  286. package/dist/integration/connection.js +3 -3
  287. package/dist/integration.js +64 -64
  288. package/dist/job.js +57 -57
  289. package/dist/kv.js +53 -53
  290. package/dist/location-activity.js +51 -51
  291. package/dist/location-mutation.js +28 -28
  292. package/dist/location-service-map.js +57 -57
  293. package/dist/location-services.js +291 -291
  294. package/dist/location.js +52 -52
  295. package/dist/mcp/client.js +15 -15
  296. package/dist/mcp/index.js +73 -73
  297. package/dist/mcp/instructions.js +88 -88
  298. package/dist/mcp/oauth.js +13 -13
  299. package/dist/mcp/stdio.js +57 -57
  300. package/dist/modal/models.js +68 -68
  301. package/dist/model-resolver.js +65 -65
  302. package/dist/model.js +69 -69
  303. package/dist/models-dev.js +76 -76
  304. package/dist/permission/saved.js +57 -57
  305. package/dist/permission.js +78 -78
  306. package/dist/persistent-pty/index.js +63 -63
  307. package/dist/persistent-pty.js +51 -51
  308. package/dist/plugin/agent.js +69 -69
  309. package/dist/plugin/command.js +68 -68
  310. package/dist/plugin/hooks.js +5 -5
  311. package/dist/plugin/host.js +164 -164
  312. package/dist/plugin/instance.js +5 -5
  313. package/dist/plugin/internal.js +265 -265
  314. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  315. package/dist/plugin/models-dev.js +65 -65
  316. package/dist/plugin/module.js +4 -4
  317. package/dist/plugin/optimize.js +2 -2
  318. package/dist/plugin/plan.js +67 -67
  319. package/dist/plugin/provider/amazon-bedrock.js +59 -59
  320. package/dist/plugin/provider/azure.js +85 -85
  321. package/dist/plugin/provider/cloudflare-ai-gateway.js +84 -84
  322. package/dist/plugin/provider/cloudflare-workers-ai.js +84 -84
  323. package/dist/plugin/provider/configured.js +83 -83
  324. package/dist/plugin/provider/digitalocean.js +61 -61
  325. package/dist/plugin/provider/github-copilot.js +62 -62
  326. package/dist/plugin/provider/gitlab.js +60 -60
  327. package/dist/plugin/provider/google-vertex.js +59 -59
  328. package/dist/plugin/provider/llmgateway.js +55 -55
  329. package/dist/plugin/provider/lmstudio.js +86 -86
  330. package/dist/plugin/provider/modal.js +61 -61
  331. package/dist/plugin/provider/ollama.js +86 -86
  332. package/dist/plugin/provider/openai.js +60 -60
  333. package/dist/plugin/provider/opencode.js +62 -62
  334. package/dist/plugin/provider/openrouter.js +60 -60
  335. package/dist/plugin/provider/poe.js +55 -55
  336. package/dist/plugin/provider/prompt-cache-key.js +59 -59
  337. package/dist/plugin/provider/sap-ai-core.js +59 -59
  338. package/dist/plugin/provider/snowflake-cortex.js +85 -85
  339. package/dist/plugin/provider/vercel.js +59 -59
  340. package/dist/plugin/provider/vllm.js +86 -86
  341. package/dist/plugin/provider/xai.js +60 -60
  342. package/dist/plugin/provider.js +117 -117
  343. package/dist/plugin/sdk.js +56 -56
  344. package/dist/plugin/service.js +3 -3
  345. package/dist/plugin/skill.js +100 -100
  346. package/dist/plugin/supervisor.js +283 -283
  347. package/dist/plugin/update.js +5 -5
  348. package/dist/plugin/vcs/git.js +56 -56
  349. package/dist/plugin/vcs/hg.js +56 -56
  350. package/dist/plugin/warming.js +85 -85
  351. package/dist/plugin/websearch/exa.js +6 -6
  352. package/dist/plugin/websearch/firecrawl.js +7 -7
  353. package/dist/plugin/websearch/index.js +8 -8
  354. package/dist/plugin/websearch/mcp.js +3 -3
  355. package/dist/plugin/websearch/parallel.js +7 -7
  356. package/dist/plugin/websearch/tavily.js +6 -6
  357. package/dist/plugin/websearch/tinyfish.js +7 -7
  358. package/dist/plugin.js +176 -176
  359. package/dist/project.js +51 -51
  360. package/dist/provider.js +70 -70
  361. package/dist/pty/schema.js +3 -3
  362. package/dist/pty.js +65 -65
  363. package/dist/reference/instructions.js +61 -61
  364. package/dist/reference.js +63 -63
  365. package/dist/repository-cache.js +55 -55
  366. package/dist/ripgrep.js +63 -63
  367. package/dist/rpc.js +57 -57
  368. package/dist/session/command.js +53 -53
  369. package/dist/session/compaction.js +93 -93
  370. package/dist/session/context.js +109 -109
  371. package/dist/session/diff.js +56 -56
  372. package/dist/session/environment.js +5 -5
  373. package/dist/session/error.js +4 -4
  374. package/dist/session/execution/restart.js +112 -112
  375. package/dist/session/execution.js +91 -91
  376. package/dist/session/generate.js +110 -110
  377. package/dist/session/history.js +6 -6
  378. package/dist/session/inbox.js +64 -64
  379. package/dist/session/info.js +2 -2
  380. package/dist/session/instruction-entry.js +54 -54
  381. package/dist/session/instruction-state.js +2 -2
  382. package/dist/session/instructions.js +65 -65
  383. package/dist/session/model-request.js +77 -77
  384. package/dist/session/model-transport.js +5 -5
  385. package/dist/session/move.js +91 -91
  386. package/dist/session/projector.js +58 -58
  387. package/dist/session/prompt.js +69 -69
  388. package/dist/session/provider-context.js +3 -3
  389. package/dist/session/revert.js +57 -57
  390. package/dist/session/run-coordinator.js +3 -3
  391. package/dist/session/runner/index.js +3 -3
  392. package/dist/session/runner/llm.js +174 -174
  393. package/dist/session/runner/model.js +67 -67
  394. package/dist/session/runner/retry.js +79 -79
  395. package/dist/session/runner/step.js +84 -84
  396. package/dist/session/runner/to-llm-message.js +2 -2
  397. package/dist/session/schema.js +5 -5
  398. package/dist/session/session.js +125 -125
  399. package/dist/session/shell.js +98 -98
  400. package/dist/session/skill.js +68 -68
  401. package/dist/session/stats.js +8 -8
  402. package/dist/session/store.js +60 -60
  403. package/dist/session/subagent-job.js +157 -157
  404. package/dist/session/system-prompt.js +5 -5
  405. package/dist/session/title.js +112 -112
  406. package/dist/session/to-session-error.js +76 -76
  407. package/dist/session/transfer.js +106 -106
  408. package/dist/session.js +164 -164
  409. package/dist/shell/parse.js +2 -2
  410. package/dist/shell/select.js +13 -13
  411. package/dist/shell.js +101 -101
  412. package/dist/skill/discovery.js +5 -5
  413. package/dist/skill/instructions.js +72 -72
  414. package/dist/skill.js +77 -77
  415. package/dist/snapshot.js +63 -63
  416. package/dist/tool/mcp.js +87 -87
  417. package/dist/tool/plugin/edit.js +84 -84
  418. package/dist/tool/plugin/glob.js +88 -88
  419. package/dist/tool/plugin/grep.js +88 -88
  420. package/dist/tool/plugin/opencode.js +3 -3
  421. package/dist/tool/plugin/patch.js +86 -86
  422. package/dist/tool/plugin/question.js +68 -68
  423. package/dist/tool/plugin/read.js +88 -88
  424. package/dist/tool/plugin/shell.js +165 -165
  425. package/dist/tool/plugin/skill.js +76 -76
  426. package/dist/tool/plugin/subagent.js +166 -166
  427. package/dist/tool/plugin/webfetch.js +73 -73
  428. package/dist/tool/plugin/websearch.js +78 -78
  429. package/dist/tool/plugin/write.js +86 -86
  430. package/dist/tool/read-filesystem.js +65 -65
  431. package/dist/tool-output.js +5 -5
  432. package/dist/tool.js +9 -9
  433. package/dist/types/session/model-transport.d.ts +6 -1
  434. package/dist/v1/config/agent.js +4 -4
  435. package/dist/v1/config/command.js +3 -3
  436. package/dist/v1/config/config.js +13 -13
  437. package/dist/v1/config/formatter.js +7 -7
  438. package/dist/v1/config/lsp.js +5 -5
  439. package/dist/v1/config/mcp.js +3 -3
  440. package/dist/v1/config/migrate.js +60 -60
  441. package/dist/v1/config/permission.js +3 -3
  442. package/dist/v1/config/plugin.js +3 -3
  443. package/dist/v1/config/provider.js +3 -3
  444. package/dist/v1/config/skills.js +3 -3
  445. package/dist/variant.js +62 -62
  446. package/dist/vcs.js +59 -59
  447. package/dist/websearch.js +62 -62
  448. package/dist/wellknown/plugin.js +55 -55
  449. package/dist/wellknown.js +58 -58
  450. package/dist/workspace/driver.js +5 -5
  451. package/dist/workspace.js +58 -58
  452. package/dist/worktree/strategies.js +57 -57
  453. package/dist/worktree.js +61 -61
  454. package/package.json +8 -8
  455. package/dist/chunks/file-access-24q6q5zm.js +0 -247
  456. package/dist/chunks/file-access-mqjrdake.js +0 -26
  457. package/dist/chunks/file-access-qapv375x.js +0 -4
  458. /package/dist/chunks/{file-access-7mqb335e.js → file-access-8y62cfgq.js} +0 -0
  459. /package/dist/chunks/{file-access-s8cf5yxm.js → file-access-f60890a8.js} +0 -0
  460. /package/dist/chunks/{file-access-zk8c4w5t.js → file-access-fyjp43ss.js} +0 -0
  461. /package/dist/chunks/{file-access-2mzw0ev8.js → file-access-m3kws1jr.js} +0 -0
@@ -5,18 +5,18 @@ import {
5
5
  // src/session/environment.ts
6
6
  var exports_environment = {};
7
7
  __export(exports_environment, {
8
- Service: () => Service38,
8
+ Service: () => Service50,
9
9
  SessionEnvironment: () => exports_environment,
10
- node: () => node41
10
+ node: () => node53
11
11
  });
12
12
  import { Context, Effect, Layer } from "effect";
13
13
  import { makeGlobalNode } from "@opencode/util/effect/app-node";
14
14
 
15
- class Service38 extends Context.Service()("@opencode/SessionEnvironment") {
15
+ class Service50 extends Context.Service()("@opencode/SessionEnvironment") {
16
16
  }
17
- var layer = Layer.sync(Service38, () => {
17
+ var layer = Layer.sync(Service50, () => {
18
18
  const environments = new Map;
19
- return Service38.of({
19
+ return Service50.of({
20
20
  get: (sessionID) => Effect.sync(() => environments.get(sessionID)),
21
21
  set: (sessionID, variables) => Effect.sync(() => {
22
22
  environments.set(sessionID, { ...variables });
@@ -26,6 +26,6 @@ var layer = Layer.sync(Service38, () => {
26
26
  })
27
27
  });
28
28
  });
29
- var node41 = makeGlobalNode({ service: Service38, layer, deps: [] });
29
+ var node53 = makeGlobalNode({ service: Service50, layer, deps: [] });
30
30
 
31
- export { Service38, node41, exports_environment };
31
+ export { Service50, node53, exports_environment };
@@ -1,35 +1,35 @@
1
1
  import {
2
2
  Metadata2,
3
3
  useragent2,
4
- node46
5
- } from "./file-access-kq1t1162.js";
4
+ node50
5
+ } from "./file-access-7n0p62ew.js";
6
6
  import {
7
7
  provenance2,
8
8
  compatible2
9
- } from "./file-access-5c0f1prt.js";
9
+ } from "./file-access-w1k39n5e.js";
10
10
  import {
11
- Service69,
12
- node73
13
- } from "./file-access-0xezjjjn.js";
11
+ Service74,
12
+ node77
13
+ } from "./file-access-8ank75fn.js";
14
14
  import {
15
15
  DeclinedError2
16
- } from "./file-access-mrhssej4.js";
16
+ } from "./file-access-6snq9ewv.js";
17
17
  import {
18
18
  CancelledError2
19
- } from "./file-access-a8092cx4.js";
19
+ } from "./file-access-4nfbas15.js";
20
20
  import {
21
- Error3
22
- } from "./file-access-zd6ydzqz.js";
21
+ Error2
22
+ } from "./file-access-6ywjc070.js";
23
23
  import {
24
- Service32,
24
+ Service31,
25
25
  node35
26
- } from "./file-access-k701emjf.js";
26
+ } from "./file-access-7h1ryc6p.js";
27
27
  import {
28
- make15
29
- } from "./file-access-hjt4xg1x.js";
28
+ make14
29
+ } from "./file-access-47gsdddb.js";
30
30
  import {
31
31
  toLLMMessages2
32
- } from "./file-access-zhq6vg7a.js";
32
+ } from "./file-access-4jc5c4h4.js";
33
33
  import {
34
34
  __export
35
35
  } from "./file-access-9rqn6x4v.js";
@@ -37,11 +37,11 @@ import {
37
37
  // src/session/model-request.ts
38
38
  var exports_model_request = {};
39
39
  __export(exports_model_request, {
40
- Service: () => Service31,
40
+ Service: () => Service30,
41
41
  SessionModelRequest: () => exports_model_request,
42
42
  baseTranscript: () => baseTranscript2,
43
43
  boundImages: () => boundImages2,
44
- layer: () => layer10,
44
+ layer: () => layer12,
45
45
  node: () => node34,
46
46
  unsupportedParts: () => unsupportedParts2
47
47
  });
@@ -66,7 +66,7 @@ var baseTranscript2 = (input) => {
66
66
  return {
67
67
  providerMetadataKey,
68
68
  system: [
69
- input.agent.system ? input.agent.system : make15(input.tools.definitions.map((tool) => tool.name)),
69
+ input.agent.system ? input.agent.system : make14(input.tools.definitions.map((tool) => tool.name)),
70
70
  input.initial
71
71
  ].filter((part) => part.length > 0).map(SystemPart.make),
72
72
  messages: toLLMMessages2(input.messages, input.model.ref, providerMetadataKey)
@@ -150,11 +150,11 @@ var boundImages2 = (messages) => {
150
150
  }));
151
151
  };
152
152
 
153
- class Service31 extends Context.Service()("@opencode/SessionModelRequest") {
153
+ class Service30 extends Context.Service()("@opencode/SessionModelRequest") {
154
154
  }
155
- var layer10 = Layer.effect(Service31, Effect.gen(function* () {
156
- const hooks = yield* Service69;
157
- const transport = yield* Service32;
155
+ var layer12 = Layer.effect(Service30, Effect.gen(function* () {
156
+ const hooks = yield* Service74;
157
+ const transport = yield* Service31;
158
158
  const app = yield* Metadata2;
159
159
  const prepare = Effect.fn("SessionModelRequest.prepare")(function* (kind, input, shape) {
160
160
  const session = input.session;
@@ -162,7 +162,7 @@ var layer10 = Layer.effect(Service31, Effect.gen(function* () {
162
162
  const scope = { sessionID: session.id, agent: input.agent, model: model.ref, kind };
163
163
  const tools = input.tools ?? {
164
164
  definitions: [],
165
- execute: () => new Error3({ message: "Tools are not available for this request" })
165
+ execute: () => new Error2({ message: "Tools are not available for this request" })
166
166
  };
167
167
  const given = new Map(tools.definitions.map((t) => [{ description: t.description, input: { ...t.inputSchema } }, t]));
168
168
  const shaped = yield* shape({ sessionID: session.id, model: model.ref, system: input.system, messages: input.messages, options: {} }, Object.fromEntries(Array.from(given, ([d, t]) => [t.name, d])));
@@ -231,11 +231,15 @@ var layer10 = Layer.effect(Service31, Effect.gen(function* () {
231
231
  });
232
232
  return HttpClientResponse.fromWeb(sent, after.response);
233
233
  }).pipe(Effect.mapError((cause) => cause instanceof Error ? cause : new Error(String(cause)))) : undefined;
234
- const webSocket = input.webSocket === "session" && !hasHttpHooks && model.transport === "websocket";
234
+ const webSocket = input.webSocket === "session" && model.transport === "websocket" ? transport.bind(session.id, (connect) => hooks.trigger("session", "experimental.ws.handshake", {
235
+ ...scope,
236
+ url: connect.url,
237
+ headers: connect.headers
238
+ }).pipe(Effect.map((event) => ({ url: event.url, headers: event.headers })))) : undefined;
235
239
  return {
236
240
  event: shaped,
237
241
  request,
238
- options: { ...http ? { http } : {}, ...webSocket ? { webSocket: transport.bind(session.id) } : {} },
242
+ options: { ...http ? { http } : {}, ...webSocket ? { webSocket } : {} },
239
243
  retry: (event) => hooks.trigger("session", "retry", event).pipe(Effect.asVoid),
240
244
  executeTool: (call) => tools.execute({ ...call, definitions: hooked }).pipe(Effect.catchCauseFilter((cause) => {
241
245
  const decline = cause.reasons.flatMap((r) => Cause.isDieReason(r) && (r.defect instanceof DeclinedError2 || r.defect instanceof CancelledError2) ? [r.defect] : [])[0];
@@ -244,7 +248,7 @@ var layer10 = Layer.effect(Service31, Effect.gen(function* () {
244
248
  };
245
249
  });
246
250
  const agentHook = (name, agent) => (draft, tools) => hooks.trigger("session", name, { ...draft, agent, tools });
247
- return Service31.of({
251
+ return Service30.of({
248
252
  primary: (input) => prepare("primary", input, agentHook("context", input.agent)),
249
253
  compaction: (input) => prepare("compaction", input, agentHook("compaction", input.agent)),
250
254
  generate: (input) => prepare("generate", input, agentHook("generate", input.agent)),
@@ -252,9 +256,9 @@ var layer10 = Layer.effect(Service31, Effect.gen(function* () {
252
256
  });
253
257
  }));
254
258
  var node34 = makeLocationNode({
255
- service: Service31,
256
- layer: layer10,
257
- deps: [node73, node35, node46]
259
+ service: Service30,
260
+ layer: layer12,
261
+ deps: [node77, node35, node50]
258
262
  });
259
263
 
260
- export { baseTranscript2, unsupportedParts2, boundImages2, Service31, layer10, node34, exports_model_request };
264
+ export { baseTranscript2, unsupportedParts2, boundImages2, Service30, layer12, node34, exports_model_request };
@@ -5,7 +5,7 @@ import {
5
5
  renderInitial2,
6
6
  renderUpdate2,
7
7
  applyHashDelta2
8
- } from "./file-access-s8d7rejh.js";
8
+ } from "./file-access-02nrjc1r.js";
9
9
  import {
10
10
  SessionEvent2
11
11
  } from "./file-access-ec1grn59.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
- ID12
3
- } from "./file-access-waqrje5a.js";
2
+ ID5
3
+ } from "./file-access-ea3fxjgj.js";
4
4
 
5
5
  // src/plugin/provider/openrouter.ts
6
6
  import { Effect } from "effect";
@@ -21,7 +21,7 @@ var OpenRouterPlugin2 = define({
21
21
  for (const item of models.provider.list()) {
22
22
  if (item.provider.package !== "@opencode/ai/providers/openrouter")
23
23
  continue;
24
- for (const modelID of [ID12.make("gpt-5-chat-latest"), ID12.make("openai/gpt-5-chat")]) {
24
+ for (const modelID of [ID5.make("gpt-5-chat-latest"), ID5.make("openai/gpt-5-chat")]) {
25
25
  if (!models.get(item.provider.id, modelID))
26
26
  continue;
27
27
  models.update(item.provider.id, modelID, (model) => {
@@ -1,43 +1,43 @@
1
1
  import {
2
2
  Service82
3
- } from "./file-access-6d6cd74m.js";
3
+ } from "./file-access-s8j3dq9b.js";
4
4
  import {
5
- Service61
6
- } from "./file-access-ycjb11n5.js";
5
+ Service40
6
+ } from "./file-access-3ppptnan.js";
7
7
  import {
8
8
  awaitActivation2
9
- } from "./file-access-4v7qdvcn.js";
9
+ } from "./file-access-by5v678g.js";
10
10
  import {
11
11
  provenance2
12
- } from "./file-access-5c0f1prt.js";
12
+ } from "./file-access-w1k39n5e.js";
13
13
  import {
14
14
  preview2
15
- } from "./file-access-9ppknq4r.js";
15
+ } from "./file-access-p5599t8k.js";
16
16
  import {
17
17
  baseTranscript2
18
- } from "./file-access-1z24zf3x.js";
18
+ } from "./file-access-9ancjmj9.js";
19
19
  import {
20
- Service25
21
- } from "./file-access-5dyw5czf.js";
20
+ Service26
21
+ } from "./file-access-1bz55dqa.js";
22
22
  import {
23
23
  __export
24
24
  } from "./file-access-9rqn6x4v.js";
25
25
 
26
26
  // src/session/generate.ts
27
- var exports_generate = {};
28
- __export(exports_generate, {
29
- SessionGenerate: () => exports_generate,
27
+ var exports_generate2 = {};
28
+ __export(exports_generate2, {
29
+ SessionGenerate: () => exports_generate2,
30
30
  generate: () => generate2
31
31
  });
32
32
  import { LLMClient, Message } from "@opencode/ai";
33
33
  import { Effect } from "effect";
34
34
  var generate2 = Effect.fn("SessionGenerate.generate")(function* (input) {
35
- const instances = yield* Service61;
35
+ const instances = yield* Service40;
36
36
  const database = yield* Service82;
37
37
  const llm = yield* LLMClient.Service;
38
38
  return yield* Effect.gen(function* () {
39
39
  yield* awaitActivation2;
40
- const context = yield* Service25;
40
+ const context = yield* Service26;
41
41
  const selection = yield* context.select(input.session.id);
42
42
  const model = yield* context.resolveModel(selection.session);
43
43
  const history = yield* preview2(database.db, selection.session.id, selection.instructions, provenance2(model) ?? "local");
@@ -71,4 +71,4 @@ var generate2 = Effect.fn("SessionGenerate.generate")(function* (input) {
71
71
  }).pipe(instances.provide(input.session));
72
72
  });
73
73
 
74
- export { generate2, exports_generate };
74
+ export { generate2, exports_generate2 };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  Service82,
3
3
  node86
4
- } from "./file-access-6d6cd74m.js";
4
+ } from "./file-access-s8j3dq9b.js";
5
5
  import {
6
6
  latestSequence2,
7
7
  Service81,
8
8
  node85
9
- } from "./file-access-9gfvx8yt.js";
9
+ } from "./file-access-zw6dtez5.js";
10
10
  import {
11
11
  llmClient2
12
12
  } from "./file-access-5t3nmthw.js";
@@ -15,15 +15,15 @@ import {
15
15
  } from "./file-access-ec1grn59.js";
16
16
  import {
17
17
  firstUserMessage2
18
- } from "./file-access-9ppknq4r.js";
18
+ } from "./file-access-p5599t8k.js";
19
19
  import {
20
- Service68,
21
- node72
22
- } from "./file-access-efzqyggw.js";
20
+ Service72,
21
+ node75
22
+ } from "./file-access-by9rpdtw.js";
23
23
  import {
24
- Service25,
25
- node29
26
- } from "./file-access-5dyw5czf.js";
24
+ Service26,
25
+ node30
26
+ } from "./file-access-1bz55dqa.js";
27
27
  import {
28
28
  record2,
29
29
  add2
@@ -35,11 +35,11 @@ import {
35
35
  // src/session/title.ts
36
36
  var exports_title = {};
37
37
  __export(exports_title, {
38
- Service: () => Service7,
38
+ Service: () => Service3,
39
39
  SessionTitle: () => exports_title,
40
40
  isUntitled: () => isUntitled2,
41
- layer: () => layer5,
42
- node: () => node9
41
+ layer: () => layer3,
42
+ node: () => node4
43
43
  });
44
44
  import { isDeepStrictEqual } from "node:util";
45
45
  import { LLMClient, LLMEvent, Message, SystemPart } from "@opencode/ai";
@@ -51,18 +51,18 @@ var MAX_CONTEXT_LENGTH = 8000;
51
51
  var MAX_FIRST_MESSAGE_LENGTH = 2000;
52
52
  var titleChanged = Symbol("Session title changed");
53
53
 
54
- class Service7 extends Context.Service()("@opencode/SessionTitle") {
54
+ class Service3 extends Context.Service()("@opencode/SessionTitle") {
55
55
  }
56
56
  var truncate = (value) => value.length <= MAX_LENGTH ? value : `${value.slice(0, MAX_LENGTH - 3)}...`;
57
57
  var isUntitled2 = (session) => isExactRootFallback({
58
58
  title: session.title,
59
59
  time: { created: DateTime.toEpochMillis(session.time.created) }
60
60
  });
61
- var layer5 = Layer.effect(Service7, Effect.gen(function* () {
61
+ var layer3 = Layer.effect(Service3, Effect.gen(function* () {
62
62
  const bus = yield* Service81;
63
63
  const llm = yield* LLMClient.Service;
64
- const context = yield* Service25;
65
- const store = yield* Service68;
64
+ const context = yield* Service26;
65
+ const store = yield* Service72;
66
66
  const db = (yield* Service82).db;
67
67
  const attempt = Effect.fn("SessionTitle.attempt")(function* (input) {
68
68
  const chunks = [];
@@ -145,12 +145,12 @@ Recent conversation:
145
145
  title: truncate(title)
146
146
  }, { commit: (sequence) => sequence === expectedSequence ? Effect.void : Effect.die(titleChanged) }).pipe(Effect.catchDefect((defect) => defect === titleChanged ? Effect.void : Effect.die(defect)));
147
147
  });
148
- return Service7.of({ generate });
148
+ return Service3.of({ generate });
149
149
  }));
150
- var node9 = makeLocationNode({
151
- service: Service7,
152
- layer: layer5,
153
- deps: [node85, llmClient2, node29, node72, node86]
150
+ var node4 = makeLocationNode({
151
+ service: Service3,
152
+ layer: layer3,
153
+ deps: [node85, llmClient2, node30, node75, node86]
154
154
  });
155
155
 
156
- export { Service7, isUntitled2, layer5, node9, exports_title };
156
+ export { Service3, isUntitled2, layer3, node4, exports_title };
@@ -2,14 +2,14 @@ import {
2
2
  ephemeral2,
3
3
  Service81,
4
4
  node85
5
- } from "./file-access-9gfvx8yt.js";
5
+ } from "./file-access-zw6dtez5.js";
6
6
  import {
7
- Key3,
7
+ Key4,
8
8
  unavailable3,
9
9
  removed2,
10
- make21,
10
+ make20,
11
11
  diffByKey2
12
- } from "./file-access-s8d7rejh.js";
12
+ } from "./file-access-02nrjc1r.js";
13
13
  import {
14
14
  AbsolutePath2
15
15
  } from "./file-access-922hggd3.js";
@@ -26,11 +26,11 @@ __export(exports_instruction_discovery, {
26
26
  Event: () => Event10,
27
27
  File: () => File2,
28
28
  InstructionDiscovery: () => exports_instruction_discovery,
29
- Options: () => Options7,
30
- Service: () => Service45,
31
- configured: () => configured8,
32
- layer: () => layer18,
33
- node: () => node49
29
+ Options: () => Options10,
30
+ Service: () => Service55,
31
+ configured: () => configured10,
32
+ layer: () => layer23,
33
+ node: () => node58
34
34
  });
35
35
  import { Context, Effect, Layer, Schema } from "effect";
36
36
  import { makeLocationNode } from "@opencode/util/effect/app-node";
@@ -41,18 +41,18 @@ class File2 extends Schema.Class("InstructionDiscovery.File")({
41
41
  }) {
42
42
  }
43
43
  var Files = Schema.Array(File2);
44
- var key = Key3.make("core/instructions");
44
+ var key = Key4.make("core/instructions");
45
45
  var Event10 = {
46
46
  Updated: ephemeral2({ type: "instruction-discovery.updated", schema: {} })
47
47
  };
48
- var Options7 = Schema.Struct({
48
+ var Options10 = Schema.Struct({
49
49
  project: Schema.optional(Schema.Boolean),
50
50
  global: Schema.optional(Schema.Boolean)
51
51
  });
52
52
 
53
- class Service45 extends Context.Service()("@opencode/InstructionDiscovery") {
53
+ class Service55 extends Context.Service()("@opencode/InstructionDiscovery") {
54
54
  }
55
- var layer18 = (options) => Layer.effect(Service45, Effect.gen(function* () {
55
+ var layer23 = (options) => Layer.effect(Service55, Effect.gen(function* () {
56
56
  const bus = yield* Service81;
57
57
  const state = create3({
58
58
  name: "instruction-discovery",
@@ -74,7 +74,7 @@ var layer18 = (options) => Layer.effect(Service45, Effect.gen(function* () {
74
74
  }),
75
75
  notify: () => bus.publish(Event10.Updated, {}).pipe(Effect.asVoid)
76
76
  });
77
- const source = (value) => make21({
77
+ const source = (value) => make20({
78
78
  key,
79
79
  codec: Schema.toCodecJson(Files),
80
80
  read: Effect.succeed(value),
@@ -90,7 +90,7 @@ var layer18 = (options) => Layer.effect(Service45, Effect.gen(function* () {
90
90
  return unavailable3;
91
91
  return Array.from(current.files.values());
92
92
  });
93
- return Service45.of({
93
+ return Service55.of({
94
94
  project: options?.project !== false,
95
95
  global: options?.global !== false,
96
96
  transform: state.transform,
@@ -104,14 +104,14 @@ var layer18 = (options) => Layer.effect(Service45, Effect.gen(function* () {
104
104
  })
105
105
  });
106
106
  }));
107
- function configured8(options) {
107
+ function configured10(options) {
108
108
  return makeLocationNode({
109
- service: Service45,
110
- layer: layer18(options),
109
+ service: Service55,
110
+ layer: layer23(options),
111
111
  deps: [node85]
112
112
  });
113
113
  }
114
- var node49 = configured8();
114
+ var node58 = configured10();
115
115
  function render(files) {
116
116
  return files.map((file) => `Instructions from: ${file.path}
117
117
  ${file.content}`).join(`
@@ -142,4 +142,4 @@ ${render([after])}`;
142
142
  `);
143
143
  }
144
144
 
145
- export { File2, Event10, Options7, Service45, layer18, configured8, node49, exports_instruction_discovery };
145
+ export { File2, Event10, Options10, Service55, layer23, configured10, node58, exports_instruction_discovery };
@@ -1,30 +1,30 @@
1
1
  import {
2
- ID14,
3
- Service75,
4
- node79
5
- } from "./file-access-z4zzqkyn.js";
2
+ ID7,
3
+ Service60,
4
+ node63
5
+ } from "./file-access-mmy2zf88.js";
6
6
  import {
7
- ID13,
7
+ ID6,
8
8
  isAISDK2,
9
9
  packageName2,
10
10
  loadPackage2,
11
11
  nativeSettings2,
12
12
  mergeOverlay2,
13
13
  mergeHeaders2,
14
- Service74,
15
- node78
16
- } from "./file-access-ebw7vtp3.js";
14
+ Service59,
15
+ node62
16
+ } from "./file-access-rds37zvx.js";
17
17
  import {
18
- Service72,
19
- node76
20
- } from "./file-access-8v7kkkbw.js";
18
+ Service57,
19
+ node60
20
+ } from "./file-access-0tg58rzn.js";
21
21
  import {
22
- ID12,
22
+ ID5,
23
23
  VariantID2,
24
24
  Ref2,
25
- Service73,
26
- node77
27
- } from "./file-access-waqrje5a.js";
25
+ Service58,
26
+ node61
27
+ } from "./file-access-ea3fxjgj.js";
28
28
  import {
29
29
  __export
30
30
  } from "./file-access-9rqn6x4v.js";
@@ -36,7 +36,7 @@ __export(exports_model_resolver, {
36
36
  ModelConfigurationError: () => ModelConfigurationError3,
37
37
  ModelInitializationError: () => ModelInitializationError3,
38
38
  ModelResolver: () => exports_model_resolver,
39
- Service: () => Service71,
39
+ Service: () => Service56,
40
40
  UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError3,
41
41
  UnsupportedCompactionError: () => UnsupportedCompactionError3,
42
42
  UnsupportedPackageError: () => UnsupportedPackageError3,
@@ -44,7 +44,7 @@ __export(exports_model_resolver, {
44
44
  fromCatalogModel: () => fromCatalogModel2,
45
45
  hasPackage: () => hasPackage2,
46
46
  layer: () => layer24,
47
- node: () => node75,
47
+ node: () => node59,
48
48
  resolveModel: () => resolveModel2,
49
49
  withVariant: () => withVariant2
50
50
  });
@@ -54,8 +54,8 @@ import { Auth } from "@opencode/ai/route";
54
54
  import { Context, Effect, Layer, Schema, Struct } from "effect";
55
55
  import { Npm } from "@opencode/util/npm";
56
56
  class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
57
- providerID: ID13,
58
- modelID: ID12,
57
+ providerID: ID6,
58
+ modelID: ID5,
59
59
  variant: VariantID2
60
60
  }) {
61
61
  get message() {
@@ -64,8 +64,8 @@ class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.
64
64
  }
65
65
 
66
66
  class UnsupportedPackageError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
67
- providerID: ID13,
68
- modelID: ID12,
67
+ providerID: ID6,
68
+ modelID: ID5,
69
69
  package: Schema.String
70
70
  }) {
71
71
  get message() {
@@ -75,8 +75,8 @@ class UnsupportedPackageError3 extends Schema.TaggedError()("SessionRunnerModel.
75
75
  var InitializationPhase2 = Schema.Literals(["load", "init", "construct"]);
76
76
 
77
77
  class ModelConfigurationError3 extends Schema.TaggedError()("SessionRunnerModel.ModelConfigurationError", {
78
- providerID: ID13,
79
- modelID: ID12,
78
+ providerID: ID6,
79
+ modelID: ID5,
80
80
  package: Schema.String,
81
81
  detail: Schema.String
82
82
  }) {
@@ -86,8 +86,8 @@ class ModelConfigurationError3 extends Schema.TaggedError()("SessionRunnerModel.
86
86
  }
87
87
 
88
88
  class ModelInitializationError3 extends Schema.TaggedError()("SessionRunnerModel.ModelInitializationError", {
89
- providerID: ID13,
90
- modelID: ID12,
89
+ providerID: ID6,
90
+ modelID: ID5,
91
91
  package: Schema.String,
92
92
  phase: InitializationPhase2,
93
93
  detail: Schema.String
@@ -98,8 +98,8 @@ class ModelInitializationError3 extends Schema.TaggedError()("SessionRunnerModel
98
98
  }
99
99
 
100
100
  class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
101
- providerID: ID13,
102
- modelID: ID12,
101
+ providerID: ID6,
102
+ modelID: ID5,
103
103
  variables: Schema.Array(Schema.String)
104
104
  }) {
105
105
  get message() {
@@ -108,8 +108,8 @@ class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRun
108
108
  }
109
109
 
110
110
  class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
111
- providerID: ID13,
112
- modelID: ID12,
111
+ providerID: ID6,
112
+ modelID: ID5,
113
113
  route: Schema.String
114
114
  }) {
115
115
  get message() {
@@ -117,7 +117,7 @@ class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerMod
117
117
  }
118
118
  }
119
119
 
120
- class Service71 extends Context.Service()("@opencode/ModelResolver") {
120
+ class Service56 extends Context.Service()("@opencode/ModelResolver") {
121
121
  }
122
122
  var withVariant2 = (model, variantID) => {
123
123
  const id = variantID === "default" ? undefined : variantID;
@@ -257,15 +257,15 @@ var causeMessage = (cause) => {
257
257
  };
258
258
  var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
259
259
  var hasPackage2 = (model) => Boolean(model.package);
260
- var layer24 = Layer.effect(Service71, Effect.gen(function* () {
261
- const providers = yield* Service74;
262
- const models = yield* Service73;
263
- const integrations = yield* Service75;
260
+ var layer24 = Layer.effect(Service56, Effect.gen(function* () {
261
+ const providers = yield* Service59;
262
+ const models = yield* Service58;
263
+ const integrations = yield* Service60;
264
264
  const npm = yield* Npm.Service;
265
- const aisdk = yield* Service72;
265
+ const aisdk = yield* Service57;
266
266
  const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
267
267
  const provider = yield* providers.get(selected.providerID);
268
- const connection = yield* integrations.connection.active(provider?.integrationID ?? ID14.make(selected.providerID));
268
+ const connection = yield* integrations.connection.active(provider?.integrationID ?? ID7.make(selected.providerID));
269
269
  const credential = connection ? yield* integrations.connection.resolve(connection) : undefined;
270
270
  const runtimeInfo = yield* withVariant2(selected, variant);
271
271
  const model = yield* fromCatalogModel2(runtimeInfo, credential, {
@@ -287,7 +287,7 @@ var layer24 = Layer.effect(Service71, Effect.gen(function* () {
287
287
  transport: selected.transport
288
288
  };
289
289
  });
290
- return Service71.of({
290
+ return Service56.of({
291
291
  resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
292
292
  const selected = requested ? yield* models.get(requested.providerID, requested.id) : yield* models.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(models.available(), (models) => models.find(hasPackage2))));
293
293
  if (!selected)
@@ -304,10 +304,10 @@ function usesAPIKeyAuth(packageName) {
304
304
  const name = packageName2(packageName);
305
305
  return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
306
306
  }
307
- var node75 = makeLocationNode({
308
- service: Service71,
307
+ var node59 = makeLocationNode({
308
+ service: Service56,
309
309
  layer: layer24,
310
- deps: [node78, node77, node79, Npm.node, node76]
310
+ deps: [node62, node61, node63, Npm.node, node60]
311
311
  });
312
312
 
313
- export { VariantUnavailableError3, UnsupportedPackageError3, InitializationPhase2, ModelConfigurationError3, ModelInitializationError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3, Service71, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer24, node75, exports_model_resolver };
313
+ export { VariantUnavailableError3, UnsupportedPackageError3, InitializationPhase2, ModelConfigurationError3, ModelInitializationError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3, Service56, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer24, node59, exports_model_resolver };