@opencode/core 0.0.0-beta-19507 → 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 (814) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +77 -78
  3. package/dist/aisdk-native.js +2 -2
  4. package/dist/aisdk.js +6 -6
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +71 -72
  7. package/dist/catalog.js +83 -84
  8. package/dist/chunks/{file-access-avdg492x.js → file-008dah4r.js} +47 -51
  9. package/dist/chunks/{file-access-fpv6qd1b.js → file-04bp4d3m.js} +11 -11
  10. package/dist/chunks/{file-access-dhmh7aw6.js → file-06x8he3q.js} +4 -4
  11. package/dist/chunks/{file-access-r4k1wyhr.js → file-0djf8xh9.js} +5 -5
  12. package/dist/chunks/{file-access-f4mxeny4.js → file-0ea3rya4.js} +7 -7
  13. package/dist/chunks/{file-access-0paq2nw3.js → file-0paq2nw3.js} +1 -1
  14. package/dist/chunks/{file-access-0q0f95c6.js → file-0q0f95c6.js} +1 -1
  15. package/dist/chunks/{file-access-7j92jdde.js → file-0rpg7gzc.js} +4 -4
  16. package/dist/chunks/{file-access-85b01qar.js → file-0rvyveqe.js} +13 -13
  17. package/dist/chunks/{file-access-6hjqy50w.js → file-1ajj2c3r.js} +30 -30
  18. package/dist/chunks/{file-access-1dazxqgg.js → file-1dazxqgg.js} +2 -2
  19. package/dist/chunks/{file-access-4y66k410.js → file-1dfhrqqs.js} +3 -11
  20. package/dist/chunks/{file-access-nfvsp598.js → file-1ndzzahp.js} +3 -3
  21. package/dist/chunks/{file-access-x1cybn0h.js → file-1q2nd9f6.js} +48 -48
  22. package/dist/chunks/{file-access-ykczf8eq.js → file-1q5awywt.js} +5 -5
  23. package/dist/chunks/{file-access-px5bqy57.js → file-1s5k653j.js} +27 -27
  24. package/dist/chunks/{file-access-9655radm.js → file-1xb0henf.js} +38 -38
  25. package/dist/chunks/{file-access-0sxmdcx0.js → file-1xzdp18p.js} +15 -15
  26. package/dist/chunks/{file-access-mfqp6xfm.js → file-1ygqh575.js} +6 -6
  27. package/dist/chunks/{file-access-21r38tys.js → file-21r38tys.js} +1 -1
  28. package/dist/chunks/{file-access-2402vzrj.js → file-2402vzrj.js} +1 -1
  29. package/dist/chunks/{file-access-5kn1j1nt.js → file-25kqvm6v.js} +17 -19
  30. package/dist/chunks/{file-access-29x78va6.js → file-29x78va6.js} +2 -2
  31. package/dist/chunks/{file-access-2a5m3afh.js → file-2a5m3afh.js} +1 -1
  32. package/dist/chunks/{file-access-ndzempgb.js → file-2bdsn8gv.js} +5 -5
  33. package/dist/chunks/{file-access-cmrf6j2e.js → file-2bk70kd1.js} +11 -11
  34. package/dist/chunks/{file-access-9b1t164c.js → file-2cws46q3.js} +11 -11
  35. package/dist/chunks/{file-access-54r5fgfq.js → file-2erbc7c4.js} +9 -9
  36. package/dist/chunks/{file-access-7hbsyrtj.js → file-2f1k6btd.js} +72 -103
  37. package/dist/chunks/{file-access-ebz469zm.js → file-2j4ksk9q.js} +13 -14
  38. package/dist/chunks/{file-access-q6jpwyt1.js → file-2k29q1p2.js} +58 -58
  39. package/dist/chunks/{file-access-8wccq5jz.js → file-2nck4hg8.js} +13 -13
  40. package/dist/chunks/{file-access-wk64ntyb.js → file-2nhrma10.js} +8 -8
  41. package/dist/chunks/file-2nz9k5ke.js +247 -0
  42. package/dist/chunks/{file-access-zttfg7sr.js → file-2qz021p1.js} +22 -22
  43. package/dist/chunks/{file-access-t9jk0gx5.js → file-2tv38tk1.js} +3 -3
  44. package/dist/chunks/{file-access-0bps82y7.js → file-3c1tgrea.js} +6 -6
  45. package/dist/chunks/{file-access-d2aac7k2.js → file-3cz8rj72.js} +5 -5
  46. package/dist/chunks/{file-access-3hepkmqq.js → file-3hepkmqq.js} +1 -1
  47. package/dist/chunks/{file-access-3jp54z3r.js → file-3jp54z3r.js} +1 -1
  48. package/dist/chunks/{file-access-c7q2zwp5.js → file-3m095h8d.js} +16 -16
  49. package/dist/chunks/{file-access-epa61trx.js → file-3nj27wxf.js} +10 -10
  50. package/dist/chunks/{file-access-3smtnn6g.js → file-3smtnn6g.js} +1 -1
  51. package/dist/chunks/{file-access-qmy7xtej.js → file-3trbxeqx.js} +1 -1
  52. package/dist/chunks/{file-access-3tvqynh2.js → file-3tvqynh2.js} +1 -1
  53. package/dist/chunks/{file-access-6b41461m.js → file-3wj4wm80.js} +92 -95
  54. package/dist/chunks/{file-access-50m2c0q3.js → file-3x6z6rsx.js} +15 -15
  55. package/dist/chunks/{file-access-7w5qhqhs.js → file-4g3hne3q.js} +20 -23
  56. package/dist/chunks/{file-access-xjcerejp.js → file-4hszn1mb.js} +35 -86
  57. package/dist/chunks/{file-access-zsmcd3bd.js → file-4qfh6hxk.js} +22 -22
  58. package/dist/chunks/file-4v7qdvcn.js +18 -0
  59. package/dist/chunks/{file-access-50wkfpjr.js → file-4vf981v9.js} +18 -18
  60. package/dist/chunks/{file-access-6fywv4en.js → file-4w7x8wv5.js} +33 -33
  61. package/dist/chunks/{file-access-r1hceb3x.js → file-4x6ztkk5.js} +5 -7
  62. package/dist/chunks/{file-access-ca64vat9.js → file-4znd88gj.js} +32 -32
  63. package/dist/chunks/{file-access-eh8n39qf.js → file-51kk6f2e.js} +15 -15
  64. package/dist/chunks/{file-access-9pf502c0.js → file-58ax6zm2.js} +9 -9
  65. package/dist/chunks/{file-access-hgsea5z3.js → file-5965tgm9.js} +28 -28
  66. package/dist/chunks/{file-access-a1bz86dw.js → file-5c4hm403.js} +3 -3
  67. package/dist/chunks/{file-access-5daktx2q.js → file-5daktx2q.js} +1 -1
  68. package/dist/chunks/{file-access-5t3nmthw.js → file-5t3nmthw.js} +2 -2
  69. package/dist/chunks/{file-access-bh9xqmdb.js → file-5vc2whd9.js} +37 -37
  70. package/dist/chunks/{file-access-zbgzbq8q.js → file-5vvax2qg.js} +15 -15
  71. package/dist/chunks/{file-access-0wqa8qs0.js → file-5xhpatkf.js} +11 -11
  72. package/dist/chunks/{file-access-669tq793.js → file-669tq793.js} +1 -1
  73. package/dist/chunks/{file-access-rvpq5vnx.js → file-67e9xs01.js} +23 -23
  74. package/dist/chunks/{file-access-5bjhkrjj.js → file-6c7ejz51.js} +6 -6
  75. package/dist/chunks/{file-access-m7y3f53v.js → file-6fdj6kdr.js} +4 -4
  76. package/dist/chunks/{file-access-954vm9zf.js → file-6kgc56n8.js} +6 -6
  77. package/dist/chunks/{file-access-6msgmcgs.js → file-6msgmcgs.js} +1 -1
  78. package/dist/chunks/{file-access-71q4at8m.js → file-71q4at8m.js} +1 -1
  79. package/dist/chunks/{file-access-sthbbwkd.js → file-79175vp8.js} +35 -35
  80. package/dist/chunks/{file-access-awx7v7h5.js → file-79zsnxkc.js} +11 -11
  81. package/dist/chunks/{file-access-3j8sdtpz.js → file-7atngb88.js} +4 -4
  82. package/dist/chunks/{file-access-q1gv8zwg.js → file-7be1f342.js} +18 -18
  83. package/dist/chunks/{file-access-7bmhse3q.js → file-7bmhse3q.js} +1 -1
  84. package/dist/chunks/{file-access-2k8khapm.js → file-7dqw4kz8.js} +5 -5
  85. package/dist/chunks/{file-access-1bagj3va.js → file-7g79e5pr.js} +8 -8
  86. package/dist/chunks/{file-access-vkg1qcnj.js → file-7sgb7w3n.js} +32 -92
  87. package/dist/chunks/{file-access-gbhfcamq.js → file-7xdgscg1.js} +15 -15
  88. package/dist/chunks/{file-access-n990e9jc.js → file-81pg61w1.js} +8 -25
  89. package/dist/chunks/{file-access-81swgkk7.js → file-81swgkk7.js} +2 -2
  90. package/dist/chunks/{file-access-pgyeg8d2.js → file-82594dam.js} +9 -9
  91. package/dist/chunks/{file-access-g14zqp48.js → file-84tssp1s.js} +3 -8
  92. package/dist/chunks/{file-access-x175c4wg.js → file-8bpbp254.js} +41 -41
  93. package/dist/chunks/{file-access-8d7r5vzw.js → file-8d7r5vzw.js} +1 -1
  94. package/dist/chunks/{file-access-ehknnwyx.js → file-8gbf9msb.js} +27 -27
  95. package/dist/chunks/{file-access-d09g07f5.js → file-8gkhtxwv.js} +20 -20
  96. package/dist/chunks/{file-access-29qf8dn7.js → file-8ncz7km3.js} +7 -7
  97. package/dist/chunks/{file-access-3h3mykw7.js → file-8tef8d4h.js} +33 -33
  98. package/dist/chunks/{file-access-6ymtkfzb.js → file-94sf61n7.js} +19 -44
  99. package/dist/chunks/{file-access-ayfrx99c.js → file-976ysedg.js} +15 -15
  100. package/dist/chunks/{file-access-16hg2h50.js → file-9bey2zpa.js} +12 -12
  101. package/dist/chunks/{file-access-1ve8gnt4.js → file-9eqtwdne.js} +93 -88
  102. package/dist/chunks/{file-access-cza9j1er.js → file-9k2v62xn.js} +1 -1
  103. package/dist/chunks/file-9phvn7ns.js +71 -0
  104. package/dist/chunks/{file-access-798sgk8w.js → file-a1d2hteq.js} +10 -10
  105. package/dist/chunks/{file-access-4vcrnpx2.js → file-a1tpkmh4.js} +3 -13
  106. package/dist/chunks/{file-access-k5rs1z8v.js → file-a2zsx8ap.js} +27 -27
  107. package/dist/chunks/{file-access-aaet6srn.js → file-aaet6srn.js} +2 -2
  108. package/dist/chunks/{file-access-x95hc271.js → file-ab8td0yc.js} +43 -41
  109. package/dist/chunks/{file-access-rvyy05ds.js → file-agg557zn.js} +11 -11
  110. package/dist/chunks/{file-access-mtegq6tq.js → file-anvxjef4.js} +4 -4
  111. package/dist/chunks/{file-access-jgwtszpa.js → file-arm49q9k.js} +35 -35
  112. package/dist/chunks/{file-access-4r4fb002.js → file-aw3yg1a6.js} +11 -11
  113. package/dist/chunks/{file-access-jhcd8dwt.js → file-axh6m6j7.js} +20 -20
  114. package/dist/chunks/{file-access-kk00bynn.js → file-axmvebxj.js} +4 -4
  115. package/dist/chunks/{file-access-c6npeh2h.js → file-b4n85fcv.js} +32 -32
  116. package/dist/chunks/{file-access-dyw6ca8r.js → file-b4nrwvyj.js} +32 -31
  117. package/dist/chunks/{file-access-b6gygkdw.js → file-b6gygkdw.js} +2 -2
  118. package/dist/chunks/{file-access-jj63jgrn.js → file-bby00dsd.js} +8 -8
  119. package/dist/chunks/{file-access-tb22s7pw.js → file-bdbwpwhn.js} +23 -24
  120. package/dist/chunks/{file-access-2w1d5hqx.js → file-bdkz1q2y.js} +4 -4
  121. package/dist/chunks/{file-access-e2tvng7c.js → file-bge4fr1z.js} +24 -24
  122. package/dist/chunks/{file-access-sqb2tzxk.js → file-bjpmp57t.js} +16 -16
  123. package/dist/chunks/{file-access-92a7scs5.js → file-bkqrvamq.js} +32 -32
  124. package/dist/chunks/{file-access-hgyq9xg3.js → file-c6jw9d6c.js} +13 -13
  125. package/dist/chunks/{file-access-q1yd4tcg.js → file-c7m8954m.js} +5 -5
  126. package/dist/chunks/{file-access-wqg2ybf7.js → file-c9kt1fwd.js} +7 -7
  127. package/dist/chunks/{file-access-8t1wrec1.js → file-cny5rd43.js} +8 -8
  128. package/dist/chunks/{file-access-36d0e9rd.js → file-cp5f26bt.js} +24 -24
  129. package/dist/chunks/{file-access-csf2jhsg.js → file-csf2jhsg.js} +1 -1
  130. package/dist/chunks/{file-access-vv3eqyfe.js → file-csyt93pz.js} +5 -5
  131. package/dist/chunks/{file-access-0f9s97z0.js → file-cz12sndv.js} +23 -23
  132. package/dist/chunks/{file-access-1p1yz3k5.js → file-d0chnedg.js} +41 -41
  133. package/dist/chunks/{file-access-etca44vv.js → file-d8drewm4.js} +15 -15
  134. package/dist/chunks/{file-access-8p4f9s12.js → file-dj2t23y0.js} +2 -2
  135. package/dist/chunks/{file-access-y71avatq.js → file-dpkg50ah.js} +4 -4
  136. package/dist/chunks/{file-access-qd8wwfxt.js → file-dsf3jx99.js} +27 -6
  137. package/dist/chunks/{file-access-93hpb89x.js → file-dv250zvr.js} +2 -2
  138. package/dist/chunks/{file-access-rq0v4azk.js → file-dvmnmd5k.js} +46 -46
  139. package/dist/chunks/{file-access-rzxs471t.js → file-dw8dc0pw.js} +11 -11
  140. package/dist/chunks/{file-access-nhy5jxhy.js → file-e82z9tr0.js} +7 -7
  141. package/dist/chunks/{file-access-7k68m5b6.js → file-e9vyr379.js} +11 -11
  142. package/dist/chunks/{file-access-29ypnx2x.js → file-ec2j1krk.js} +36 -36
  143. package/dist/chunks/file-eex81ar0.js +272 -0
  144. package/dist/chunks/{file-access-ct0crnq6.js → file-em6n8dz9.js} +46 -46
  145. package/dist/chunks/{file-access-3p9gq7xw.js → file-endpbns8.js} +6 -6
  146. package/dist/chunks/{file-access-bap3gy1s.js → file-enk99f8n.js} +14 -14
  147. package/dist/chunks/{file-access-e17bkqjz.js → file-esdnemd6.js} +1 -1
  148. package/dist/chunks/{file-access-etq0c3wd.js → file-etq0c3wd.js} +1 -1
  149. package/dist/chunks/{file-access-s8aab4ga.js → file-exww9xwg.js} +9 -9
  150. package/dist/chunks/{file-access-r8xr0va3.js → file-f2n192rq.js} +4 -4
  151. package/dist/chunks/{file-access-tgqjfyja.js → file-fq1h1v14.js} +1 -1
  152. package/dist/chunks/{file-access-fxbjtjnd.js → file-fxbjtjnd.js} +1 -1
  153. package/dist/chunks/{file-access-ccxygkss.js → file-g9ew5f51.js} +5 -5
  154. package/dist/chunks/{file-access-gd4qta3r.js → file-gd4qta3r.js} +1 -1
  155. package/dist/chunks/{file-access-ag9w8cw1.js → file-gdrhyezn.js} +5 -5
  156. package/dist/chunks/{file-access-3fc6dm20.js → file-gdvy8fx6.js} +4 -4
  157. package/dist/chunks/{file-access-6jnybvqn.js → file-gsx0ryk4.js} +9 -9
  158. package/dist/chunks/{file-access-h03wrkyp.js → file-h03wrkyp.js} +2 -2
  159. package/dist/chunks/{file-access-4786se8r.js → file-h2gyv3sg.js} +1 -1
  160. package/dist/chunks/{file-access-fxtmjajv.js → file-h2wxq9m6.js} +17 -17
  161. package/dist/chunks/{file-access-98yekt2h.js → file-h5pnkca0.js} +69 -43
  162. package/dist/chunks/file-h5wzpkcb.js +22 -0
  163. package/dist/chunks/{file-access-h6vf3j39.js → file-h6vf3j39.js} +1 -1
  164. package/dist/chunks/{file-access-f828m53h.js → file-hdnk95c8.js} +2 -2
  165. package/dist/chunks/{file-access-xrs7w8df.js → file-hmtfd8e7.js} +9 -9
  166. package/dist/chunks/{file-access-kntbkpw6.js → file-hw2gt29t.js} +12 -12
  167. package/dist/chunks/{file-access-8v86gz5j.js → file-hznfad64.js} +27 -27
  168. package/dist/chunks/{file-access-e3nd4ayr.js → file-hzvfpvak.js} +4 -4
  169. package/dist/chunks/{file-access-j56e64zr.js → file-j56e64zr.js} +1 -1
  170. package/dist/chunks/{file-access-zmvq2rqz.js → file-j5e99w94.js} +21 -21
  171. package/dist/chunks/{file-access-vcp78m62.js → file-j8sknp13.js} +17 -17
  172. package/dist/chunks/{file-access-hzmns3wg.js → file-jbax583q.js} +1 -1
  173. package/dist/chunks/{file-access-qny2rjqg.js → file-jqcaya3d.js} +11 -11
  174. package/dist/chunks/{file-access-tn359hwq.js → file-jqcc8e1d.js} +10 -10
  175. package/dist/chunks/{file-access-2wyjv582.js → file-jrrn2k62.js} +4 -4
  176. package/dist/chunks/{file-access-p49w4vfv.js → file-jypsjmxy.js} +15 -16
  177. package/dist/chunks/{file-access-h83x8fry.js → file-kbqxyd6c.js} +13 -13
  178. package/dist/chunks/{file-access-1ct3cw4h.js → file-kd3m4z14.js} +28 -28
  179. package/dist/chunks/{file-access-kg06axw8.js → file-kg06axw8.js} +1 -1
  180. package/dist/chunks/{file-access-6zwbw4we.js → file-kggrcpgh.js} +11 -11
  181. package/dist/chunks/{file-access-d6ppqdhn.js → file-knac466s.js} +41 -15
  182. package/dist/chunks/{file-access-nbddwgy7.js → file-kt5w8vxh.js} +10 -10
  183. package/dist/chunks/{file-access-cfpkc3c9.js → file-m0jqrx5p.js} +2 -2
  184. package/dist/chunks/{file-access-c1fhravq.js → file-m2shdzh0.js} +41 -37
  185. package/dist/chunks/{file-access-m9w0rfyh.js → file-m9w0rfyh.js} +1 -1
  186. package/dist/chunks/{file-access-mvfsc1pv.js → file-mhkvc446.js} +3 -3
  187. package/dist/chunks/file-mkcjrzeh.js +15 -0
  188. package/dist/chunks/{file-access-3m9xbvw6.js → file-mq2071pb.js} +11 -11
  189. package/dist/chunks/{file-access-2ve45fd6.js → file-mrw4weg4.js} +2 -2
  190. package/dist/chunks/{file-access-qs55kqfs.js → file-mvfjcd1q.js} +8 -8
  191. package/dist/chunks/{file-access-depwzj9d.js → file-n37c4crj.js} +9 -9
  192. package/dist/chunks/{file-access-9998dwsd.js → file-n3wgj171.js} +28 -29
  193. package/dist/chunks/{file-access-mqt7ckw4.js → file-n5qmychr.js} +21 -21
  194. package/dist/chunks/{file-access-07770t2t.js → file-ne3jdqry.js} +4 -4
  195. package/dist/chunks/{file-access-057tqkc7.js → file-nrzk1d2g.js} +22 -22
  196. package/dist/chunks/{file-access-9d8v8ke2.js → file-nx4935gj.js} +2 -2
  197. package/dist/chunks/{file-access-8mc8s27z.js → file-nz54bs3w.js} +23 -23
  198. package/dist/chunks/{file-access-fjvydvzm.js → file-pjedbq3k.js} +4 -4
  199. package/dist/chunks/{file-access-reqevd7p.js → file-pjsmk15p.js} +13 -13
  200. package/dist/chunks/{file-access-pjvnvgmy.js → file-pjvnvgmy.js} +1 -1
  201. package/dist/chunks/{file-access-pknna89w.js → file-pknna89w.js} +1 -1
  202. package/dist/chunks/file-pq4st5kv.js +341 -0
  203. package/dist/chunks/{file-access-n7qjkrfm.js → file-pzh16mkn.js} +9 -9
  204. package/dist/chunks/{file-access-cmwkp3r5.js → file-q26tgv94.js} +8 -8
  205. package/dist/chunks/{file-access-drbmzzp6.js → file-q73rq2bt.js} +24 -24
  206. package/dist/chunks/{file-access-a82vvkn3.js → file-qf00j6dv.js} +11 -11
  207. package/dist/chunks/{file-access-rd8fjvyy.js → file-qrbavdvc.js} +17 -17
  208. package/dist/chunks/{file-access-qsdy395h.js → file-qsdy395h.js} +1 -1
  209. package/dist/chunks/{file-access-1tq060df.js → file-qz49fwgp.js} +4 -4
  210. package/dist/chunks/{file-access-19kp6pf8.js → file-ra8xed55.js} +21 -21
  211. package/dist/chunks/{file-access-rhjbct0v.js → file-rhjbct0v.js} +1 -1
  212. package/dist/chunks/{file-access-2hhnmqep.js → file-rkh7tb58.js} +13 -13
  213. package/dist/chunks/{file-access-ad0pt644.js → file-rq8fnevv.js} +5 -5
  214. package/dist/chunks/{file-access-dw1fjyb0.js → file-rs226bz6.js} +26 -1
  215. package/dist/chunks/file-rsz0a70p.js +462 -0
  216. package/dist/chunks/{file-access-g3r1njd0.js → file-rt7tcdqd.js} +35 -35
  217. package/dist/chunks/{file-access-nsva66p3.js → file-s0vw0vjm.js} +17 -17
  218. package/dist/chunks/{file-access-wh2r9z7p.js → file-s2tycd90.js} +20 -20
  219. package/dist/chunks/{file-access-s4enseaf.js → file-s4enseaf.js} +2 -2
  220. package/dist/chunks/{file-access-092yf68v.js → file-s4m5whm3.js} +54 -54
  221. package/dist/chunks/{file-access-8cw6nfrt.js → file-s52qk724.js} +29 -29
  222. package/dist/chunks/{file-access-2eywq100.js → file-shsgghb2.js} +23 -23
  223. package/dist/chunks/{file-access-qxj3mjt1.js → file-sq4v2gnf.js} +9 -9
  224. package/dist/chunks/{file-access-z2qkwvnb.js → file-swasttjx.js} +13 -13
  225. package/dist/chunks/{file-access-wbqd4jb4.js → file-sxhqw0xy.js} +35 -35
  226. package/dist/chunks/{file-access-a5gt7g2r.js → file-t0x5rdq8.js} +9 -9
  227. package/dist/chunks/{file-access-99yaft7y.js → file-t1n4dhg9.js} +9 -13
  228. package/dist/chunks/{file-access-d2nsem9c.js → file-t3g2ccp6.js} +29 -29
  229. package/dist/chunks/{file-access-833eac0h.js → file-t5qb37t7.js} +8 -8
  230. package/dist/chunks/{file-access-nv5vn7qx.js → file-t9sxjxdg.js} +15 -30
  231. package/dist/chunks/{file-access-tazgh4e4.js → file-tazgh4e4.js} +1 -1
  232. package/dist/chunks/{file-access-tcezcvh9.js → file-tcezcvh9.js} +1 -1
  233. package/dist/chunks/{file-access-tdstcens.js → file-tdstcens.js} +1 -1
  234. package/dist/chunks/{file-access-pkpqbj6e.js → file-tegrjk77.js} +14 -21
  235. package/dist/chunks/{file-access-gv6a8nnw.js → file-th5km1p3.js} +5 -5
  236. package/dist/chunks/{file-access-zrk6752y.js → file-tk6q6kp1.js} +22 -22
  237. package/dist/chunks/{file-access-8a0b7fze.js → file-ttqfmzkf.js} +2 -2
  238. package/dist/chunks/{file-access-tvtrv512.js → file-tvtrv512.js} +1 -1
  239. package/dist/chunks/{file-access-be40ghdv.js → file-v4b36nj3.js} +2 -3
  240. package/dist/chunks/file-vabb23s0.js +35 -0
  241. package/dist/chunks/{file-access-veqvce7d.js → file-veqvce7d.js} +1 -1
  242. package/dist/chunks/{file-access-289rv1w6.js → file-vg6tfdkt.js} +16 -16
  243. package/dist/chunks/{file-access-1yag4scb.js → file-vjknh09n.js} +77 -77
  244. package/dist/chunks/{file-access-qte5z7bc.js → file-vmq7ehpy.js} +5 -5
  245. package/dist/chunks/{file-access-y5g8bess.js → file-vr4b7vmt.js} +5 -5
  246. package/dist/chunks/{file-access-074en4ea.js → file-vvxeqa35.js} +149 -152
  247. package/dist/chunks/{file-access-jeanpfns.js → file-vypqtakx.js} +1 -1
  248. package/dist/chunks/{file-access-g6ech2dm.js → file-vyrr568v.js} +9 -9
  249. package/dist/chunks/{file-access-vzcthcp8.js → file-vzcthcp8.js} +1 -1
  250. package/dist/chunks/{file-access-w3wsvvr9.js → file-w3wsvvr9.js} +1 -1
  251. package/dist/chunks/{file-access-2a9f2qq7.js → file-w44msefy.js} +16 -16
  252. package/dist/chunks/{file-access-55nxwdxq.js → file-w59r8svm.js} +15 -15
  253. package/dist/chunks/{file-access-c3jkddnq.js → file-w5yv7xxz.js} +6 -6
  254. package/dist/chunks/{file-access-2wgyfjx6.js → file-w645sbyz.js} +17 -17
  255. package/dist/chunks/{file-access-eqpk83eg.js → file-w6w0btqv.js} +4 -4
  256. package/dist/chunks/{file-access-6ybvw0w7.js → file-w85wdfaw.js} +18 -18
  257. package/dist/chunks/{file-access-hc7n3jk5.js → file-wcge806m.js} +4 -4
  258. package/dist/chunks/{file-access-wd87259q.js → file-wd87259q.js} +1 -1
  259. package/dist/chunks/{file-access-162fttv1.js → file-wdatz8ry.js} +13 -13
  260. package/dist/chunks/{file-access-6s8fgxzr.js → file-wea26x67.js} +4 -4
  261. package/dist/chunks/{file-access-wh3mwy9y.js → file-wfpsx1me.js} +8 -8
  262. package/dist/chunks/{file-access-a9h2vqbk.js → file-wkpvzz54.js} +9 -9
  263. package/dist/chunks/{file-access-m0bw0e4m.js → file-wwegy27d.js} +33 -45
  264. package/dist/chunks/{file-access-x1ezjp6w.js → file-x1ezjp6w.js} +1 -1
  265. package/dist/chunks/{file-access-r9mregkx.js → file-x43y2vfs.js} +3 -3
  266. package/dist/chunks/{file-access-weg980m4.js → file-x513e6jx.js} +20 -20
  267. package/dist/chunks/{file-access-fpkam962.js → file-xbrgdg50.js} +15 -15
  268. package/dist/chunks/{file-access-mce70z9k.js → file-xcp573p8.js} +2 -2
  269. package/dist/chunks/{file-access-n747g3fh.js → file-xed1dtdk.js} +8 -8
  270. package/dist/chunks/file-xrsqh21y.js +4 -0
  271. package/dist/chunks/{file-access-0qnveg08.js → file-y0bkwhrp.js} +19 -20
  272. package/dist/chunks/{file-access-fx94a4xa.js → file-y0kn4hqx.js} +9 -9
  273. package/dist/chunks/{file-access-y1fvbwt7.js → file-y1fvbwt7.js} +1 -1
  274. package/dist/chunks/{file-access-k1yeadxq.js → file-y2800yn9.js} +2 -2
  275. package/dist/chunks/{file-access-m9wxyjft.js → file-y5cw24ds.js} +14 -14
  276. package/dist/chunks/file-y7egkzp6.js +55 -0
  277. package/dist/chunks/{file-access-e0wvz8qy.js → file-ya1b4y87.js} +19 -22
  278. package/dist/chunks/{file-access-8p576cyw.js → file-yca9gk6f.js} +16 -15
  279. package/dist/chunks/{file-access-7vczhnf2.js → file-yckky8df.js} +9 -10
  280. package/dist/chunks/{file-access-yrhqyw5v.js → file-yrhqyw5v.js} +1 -1
  281. package/dist/chunks/{file-access-z0bkrqjs.js → file-z0bkrqjs.js} +1 -1
  282. package/dist/chunks/{file-access-dpnaqgym.js → file-z3syage6.js} +23 -23
  283. package/dist/chunks/{file-access-we88g5cm.js → file-z9s268w6.js} +9 -12
  284. package/dist/chunks/{file-access-zeh9ct20.js → file-zeh9ct20.js} +2 -2
  285. package/dist/chunks/{file-access-zr2ceqn5.js → file-zr2ceqn5.js} +1 -1
  286. package/dist/chunks/{file-access-806j49yq.js → file-zv0544jz.js} +4 -4
  287. package/dist/chunks/{file-access-h9wq4q8z.js → file-zx86nq6m.js} +10 -10
  288. package/dist/chunks/{file-access-zxq2ej10.js → file-zxq2ej10.js} +1 -1
  289. package/dist/codemode/catalog.js +3 -3
  290. package/dist/codemode/instructions.js +9 -9
  291. package/dist/codemode/tool.js +2 -2
  292. package/dist/command.js +79 -80
  293. package/dist/config/discovery.js +77 -78
  294. package/dist/config/markdown.js +1 -1
  295. package/dist/config/normalize.js +19 -19
  296. package/dist/config/plugin/agent.js +117 -118
  297. package/dist/config/plugin/command.js +209 -210
  298. package/dist/config/plugin/compaction.js +155 -156
  299. package/dist/config/plugin/entry-observer.js +1 -1
  300. package/dist/config/plugin/formatter.js +117 -118
  301. package/dist/config/plugin/image.js +115 -116
  302. package/dist/config/plugin/instruction.js +85 -86
  303. package/dist/config/plugin/location-watcher.js +115 -116
  304. package/dist/config/plugin/mcp.js +126 -127
  305. package/dist/config/plugin/policy.js +114 -115
  306. package/dist/config/plugin/provider.js +113 -114
  307. package/dist/config/plugin/reference.js +117 -118
  308. package/dist/config/plugin/shell.js +118 -119
  309. package/dist/config/plugin/skill-file.js +97 -98
  310. package/dist/config/plugin/skill.js +136 -137
  311. package/dist/config/plugin/snapshot.js +115 -116
  312. package/dist/config/plugin/source.js +117 -118
  313. package/dist/config/plugin/tool-output.js +117 -118
  314. package/dist/config/plugin/websearch.js +115 -116
  315. package/dist/config/plugin/worktree.js +118 -119
  316. package/dist/config/variable.js +3 -3
  317. package/dist/config/watch.js +1 -1
  318. package/dist/config.js +115 -116
  319. package/dist/credential/sql.js +2 -2
  320. package/dist/credential.js +75 -76
  321. package/dist/database/database.js +64 -65
  322. package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
  323. package/dist/database/drizzle/effect-sqlite/index.js +14 -14
  324. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  325. package/dist/database/drizzle/index.js +15 -15
  326. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  327. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  328. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  329. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  330. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  331. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  332. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  333. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  334. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  335. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  336. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  337. package/dist/database/drizzle.js +16 -16
  338. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  339. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  340. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  341. package/dist/database/migration/20260225215848_workspace.js +1 -1
  342. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  343. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  344. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  345. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  346. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  347. package/dist/database/migration/20260323234822_events.js +1 -1
  348. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  349. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  350. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  351. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  352. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  353. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  354. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  355. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  356. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  357. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  358. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  359. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  360. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  361. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  362. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  363. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  364. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  365. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  366. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  367. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  368. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  369. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  370. package/dist/database/migration/20260611035744_credential.js +1 -1
  371. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  372. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  373. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  374. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  375. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  376. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  377. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  378. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  379. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  380. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  381. package/dist/database/migration/20260812213948_worktree.js +1 -1
  382. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  383. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  384. package/dist/database/migration.gen.js +47 -48
  385. package/dist/database/migration.js +49 -50
  386. package/dist/database/path.js +2 -2
  387. package/dist/database/schema.gen.js +1 -1
  388. package/dist/database/schema.sql.js +1 -1
  389. package/dist/database/sqlite.bun.js +1 -1
  390. package/dist/database/sqlite.js +1 -1
  391. package/dist/database/sqlite.node.js +1 -1
  392. package/dist/database/sqlite.workerd.js +1 -1
  393. package/dist/database/v1-migration.bun.js +75 -76
  394. package/dist/database/v1-migration.js +1 -1
  395. package/dist/effect/app-node-builder.js +361 -361
  396. package/dist/effect/app-node-platform.js +2 -2
  397. package/dist/effect/keyed-mutex.js +3 -3
  398. package/dist/effect/websocket-constructor.js +1 -1
  399. package/dist/environment/driver.js +1 -1
  400. package/dist/environment/environment.js +88 -89
  401. package/dist/environment/exec-defaults.js +2 -2
  402. package/dist/environment/files.js +1 -1
  403. package/dist/environment/index.js +90 -91
  404. package/dist/environment/local.js +2 -2
  405. package/dist/environment/memory.js +2 -2
  406. package/dist/environment/unavailable.js +1 -1
  407. package/dist/event/sql.js +1 -1
  408. package/dist/event-logger.js +72 -73
  409. package/dist/file-access.js +99 -100
  410. package/dist/file-mutation.js +89 -90
  411. package/dist/file-retention.js +1 -1
  412. package/dist/file.js +1 -1
  413. package/dist/filesystem/fff.bun.js +2 -2
  414. package/dist/filesystem/fff.js +1 -1
  415. package/dist/filesystem/fff.node.js +2 -2
  416. package/dist/filesystem/fff.workerd.js +2 -2
  417. package/dist/filesystem/ignore.js +1 -1
  418. package/dist/filesystem/location-watcher-policy.js +6 -6
  419. package/dist/filesystem/location-watcher.js +220 -221
  420. package/dist/filesystem/protected.js +1 -1
  421. package/dist/filesystem/search.js +97 -98
  422. package/dist/filesystem/watcher-binding.js +1 -1
  423. package/dist/filesystem/watcher.js +11 -11
  424. package/dist/filesystem.js +94 -95
  425. package/dist/form.js +76 -77
  426. package/dist/formatter/builtins.js +4 -4
  427. package/dist/formatter.js +82 -83
  428. package/dist/generate.js +89 -90
  429. package/dist/git.js +7 -7
  430. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  431. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  432. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  433. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  434. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  435. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  436. package/dist/github-copilot/copilot-provider.js +17 -17
  437. package/dist/github-copilot/models.js +7 -7
  438. package/dist/github-copilot/openai-compatible-error.js +1 -1
  439. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  440. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  441. package/dist/github-copilot/responses/openai-error.js +1 -1
  442. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  443. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  444. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  445. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  446. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  447. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  448. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  449. package/dist/id/id.js +1 -1
  450. package/dist/image/photon.js +2 -2
  451. package/dist/image.js +6 -6
  452. package/dist/instance/service.js +5 -5
  453. package/dist/instance.js +352 -352
  454. package/dist/instruction-discovery.js +81 -82
  455. package/dist/instructions/builtins.js +82 -83
  456. package/dist/instructions/index.js +1 -1
  457. package/dist/integration/connection.js +1 -1
  458. package/dist/integration.js +84 -85
  459. package/dist/job.js +77 -78
  460. package/dist/kv/sql.js +2 -2
  461. package/dist/kv.js +71 -72
  462. package/dist/location-activity.js +133 -134
  463. package/dist/location-mutation.js +99 -100
  464. package/dist/location-service-map.js +83 -84
  465. package/dist/location-services.js +349 -349
  466. package/dist/location.js +80 -81
  467. package/dist/mcp/client.js +86 -87
  468. package/dist/mcp/index.js +105 -106
  469. package/dist/mcp/instructions.js +122 -123
  470. package/dist/mcp/oauth.js +3 -3
  471. package/dist/mcp/stdio.js +85 -86
  472. package/dist/mime.js +1 -1
  473. package/dist/modal/models.js +7 -7
  474. package/dist/model-resolver.js +86 -93
  475. package/dist/model.js +2 -2
  476. package/dist/models-dev.js +86 -87
  477. package/dist/oauth/page.js +1 -1
  478. package/dist/permission/saved.js +76 -77
  479. package/dist/permission/sql.js +5 -5
  480. package/dist/permission.js +102 -103
  481. package/dist/persistent-pty/binary.bun.js +1 -1
  482. package/dist/persistent-pty/daemon.js +1 -1
  483. package/dist/persistent-pty/index.js +78 -79
  484. package/dist/persistent-pty/pty-binding.js +1 -1
  485. package/dist/persistent-pty.js +73 -74
  486. package/dist/plugin/agent.js +99 -100
  487. package/dist/plugin/command.js +96 -97
  488. package/dist/plugin/hooks.js +5 -5
  489. package/dist/plugin/host.js +213 -214
  490. package/dist/plugin/instance.js +5 -5
  491. package/dist/plugin/internal.js +323 -323
  492. package/dist/plugin/mcp-codemode-exclusion.js +3 -3
  493. package/dist/plugin/models-dev.js +75 -76
  494. package/dist/plugin/module.js +5 -5
  495. package/dist/plugin/optimize.js +4 -6
  496. package/dist/plugin/plan.js +97 -98
  497. package/dist/plugin/promise.js +1 -1
  498. package/dist/plugin/provider/alibaba.js +2 -2
  499. package/dist/plugin/provider/amazon-bedrock.js +2 -2
  500. package/dist/plugin/provider/anthropic.js +7 -0
  501. package/dist/plugin/provider/azure.js +118 -119
  502. package/dist/plugin/provider/cerebras.js +2 -2
  503. package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -118
  504. package/dist/plugin/provider/cloudflare-workers-ai.js +117 -118
  505. package/dist/plugin/provider/cohere.js +2 -2
  506. package/dist/plugin/provider/configured.js +114 -115
  507. package/dist/plugin/provider/digitalocean.js +79 -80
  508. package/dist/plugin/provider/dynamic.js +2 -2
  509. package/dist/plugin/provider/factory.js +1 -1
  510. package/dist/plugin/provider/gateway.js +2 -2
  511. package/dist/plugin/provider/github-copilot.js +80 -81
  512. package/dist/plugin/provider/gitlab.js +3 -3
  513. package/dist/plugin/provider/google-vertex.js +2 -2
  514. package/dist/plugin/provider/kilo.js +2 -2
  515. package/dist/plugin/provider/llmgateway.js +76 -77
  516. package/dist/plugin/provider/lmstudio.js +115 -116
  517. package/dist/plugin/provider/mistral.js +7 -0
  518. package/dist/plugin/provider/modal.js +79 -80
  519. package/dist/plugin/provider/nvidia.js +2 -2
  520. package/dist/plugin/provider/ollama.js +117 -118
  521. package/dist/plugin/provider/openai-compatible.js +1 -1
  522. package/dist/plugin/provider/openai.js +80 -81
  523. package/dist/plugin/provider/opencode.js +76 -80
  524. package/dist/plugin/provider/openrouter.js +3 -3
  525. package/dist/plugin/provider/perplexity.js +2 -2
  526. package/dist/plugin/provider/sap-ai-core.js +3 -3
  527. package/dist/plugin/provider/sdk-factory.js +1 -1
  528. package/dist/plugin/provider/snowflake-cortex.js +5 -119
  529. package/dist/plugin/provider/venice.js +2 -2
  530. package/dist/plugin/provider/vercel.js +2 -2
  531. package/dist/plugin/provider/vllm.js +117 -118
  532. package/dist/plugin/provider/xai.js +77 -78
  533. package/dist/plugin/provider/zenmux.js +2 -2
  534. package/dist/plugin/provider.js +156 -157
  535. package/dist/plugin/sdk.js +74 -75
  536. package/dist/plugin/service.js +3 -3
  537. package/dist/plugin/skill.js +133 -134
  538. package/dist/plugin/source-directory.js +1 -1
  539. package/dist/plugin/supervisor.js +338 -338
  540. package/dist/plugin/update.js +6 -6
  541. package/dist/plugin/variant.js +4 -4
  542. package/dist/plugin/vcs/git.js +82 -83
  543. package/dist/plugin/vcs/hg.js +82 -83
  544. package/dist/plugin/warming.js +112 -113
  545. package/dist/plugin/websearch/exa.js +7 -7
  546. package/dist/plugin/websearch/firecrawl.js +8 -8
  547. package/dist/plugin/websearch/index.js +8 -8
  548. package/dist/plugin/websearch/mcp.js +4 -4
  549. package/dist/plugin/websearch/parallel.js +8 -8
  550. package/dist/plugin/websearch/tavily.js +6 -6
  551. package/dist/plugin.js +220 -221
  552. package/dist/project/schema.js +2 -2
  553. package/dist/project/sql.js +4 -4
  554. package/dist/project.js +79 -80
  555. package/dist/provider.js +1 -3
  556. package/dist/pty/protocol.js +1 -1
  557. package/dist/pty/schema.js +3 -3
  558. package/dist/pty/ticket.js +1 -1
  559. package/dist/pty.js +92 -93
  560. package/dist/reference/instructions.js +82 -83
  561. package/dist/reference.js +86 -87
  562. package/dist/repository-cache.js +76 -77
  563. package/dist/repository.js +1 -1
  564. package/dist/ripgrep/binary.js +2 -2
  565. package/dist/ripgrep.js +89 -90
  566. package/dist/rpc.js +81 -82
  567. package/dist/schema.js +1 -1
  568. package/dist/session/command.js +72 -73
  569. package/dist/session/compaction.js +127 -128
  570. package/dist/session/context.js +147 -148
  571. package/dist/session/environment.js +5 -5
  572. package/dist/session/error.js +11 -5
  573. package/dist/session/event.js +1 -1
  574. package/dist/session/execution/restart.js +219 -220
  575. package/dist/session/execution.js +124 -125
  576. package/dist/session/generate.js +146 -147
  577. package/dist/session/history.js +13 -13
  578. package/dist/session/inbox.js +86 -87
  579. package/dist/session/info.js +3 -3
  580. package/dist/session/instruction-entry.js +77 -78
  581. package/dist/session/instruction-state.js +8 -8
  582. package/dist/session/instructions.js +92 -93
  583. package/dist/session/message-updater.js +2 -2
  584. package/dist/session/message.js +1 -1
  585. package/dist/session/model-request.js +113 -114
  586. package/dist/session/model-transport.js +9 -9
  587. package/dist/session/move.js +126 -127
  588. package/dist/session/projector.js +84 -85
  589. package/dist/session/prompt.js +100 -101
  590. package/dist/session/provider-context.js +1 -1
  591. package/dist/session/revert.js +85 -86
  592. package/dist/session/run-coordinator.js +3 -3
  593. package/dist/session/runner/index.js +3 -3
  594. package/dist/session/runner/llm.js +225 -226
  595. package/dist/session/runner/max-steps.js +1 -1
  596. package/dist/session/runner/model.js +86 -91
  597. package/dist/session/runner/publish-llm-event.js +3 -3
  598. package/dist/session/runner/retry.js +110 -111
  599. package/dist/session/runner/step.js +121 -122
  600. package/dist/session/runner/to-llm-message.js +2 -2
  601. package/dist/session/schema.js +3 -3
  602. package/dist/session/session.js +169 -170
  603. package/dist/session/shell.js +131 -132
  604. package/dist/session/skill.js +98 -99
  605. package/dist/session/sql.js +5 -5
  606. package/dist/session/stats.js +71 -72
  607. package/dist/session/store.js +85 -86
  608. package/dist/session/subagent-completion.js +1 -1
  609. package/dist/session/subagent-job.js +205 -206
  610. package/dist/session/system-prompt.js +5 -5
  611. package/dist/session/title.js +151 -152
  612. package/dist/session/to-session-error.js +107 -108
  613. package/dist/session/transfer.js +214 -216
  614. package/dist/session/usage.js +1 -1
  615. package/dist/session.js +215 -210
  616. package/dist/shell/parse.js +6 -6
  617. package/dist/shell/result.js +1 -1
  618. package/dist/shell/scan.js +1 -1
  619. package/dist/shell/select.js +7 -7
  620. package/dist/shell.js +131 -132
  621. package/dist/skill/discovery.js +6 -6
  622. package/dist/skill/instructions.js +100 -101
  623. package/dist/skill.js +107 -108
  624. package/dist/snapshot.js +88 -89
  625. package/dist/state.js +1 -1
  626. package/dist/tool/html-markdown.js +1 -1
  627. package/dist/tool/http-body.js +1 -1
  628. package/dist/tool/mcp.js +121 -122
  629. package/dist/tool/plugin/edit.js +115 -116
  630. package/dist/tool/plugin/file-diff.js +1 -1
  631. package/dist/tool/plugin/glob.js +120 -121
  632. package/dist/tool/plugin/grep.js +120 -121
  633. package/dist/tool/plugin/opencode.js +3 -3
  634. package/dist/tool/plugin/patch.js +117 -118
  635. package/dist/tool/plugin/question.js +98 -99
  636. package/dist/tool/plugin/read.js +121 -122
  637. package/dist/tool/plugin/shell.js +212 -213
  638. package/dist/tool/plugin/skill.js +100 -101
  639. package/dist/tool/plugin/subagent.js +214 -215
  640. package/dist/tool/plugin/webfetch.js +103 -104
  641. package/dist/tool/plugin/websearch.js +109 -110
  642. package/dist/tool/plugin/write.js +117 -118
  643. package/dist/tool/read-filesystem.js +96 -97
  644. package/dist/tool/runtime.js +1 -1
  645. package/dist/tool-output.js +8 -8
  646. package/dist/tool.js +13 -13
  647. package/dist/types/aisdk-native.d.ts +2 -4
  648. package/dist/types/model-resolver.d.ts +3 -52
  649. package/dist/types/model.d.ts +0 -1
  650. package/dist/types/plugin/optimize.d.ts +1 -2
  651. package/dist/types/plugin/provider/anthropic.d.ts +1 -0
  652. package/dist/types/plugin/provider/mistral.d.ts +1 -0
  653. package/dist/types/plugin/provider/snowflake-cortex.d.ts +4 -5
  654. package/dist/types/provider.d.ts +0 -2
  655. package/dist/types/rpc.d.ts +0 -1
  656. package/dist/types/session/compaction.d.ts +3 -3
  657. package/dist/types/session/context.d.ts +1 -1
  658. package/dist/types/session/error.d.ts +36 -0
  659. package/dist/types/session/history.d.ts +0 -80
  660. package/dist/types/session/model-request.d.ts +37 -18
  661. package/dist/types/session/runner/model.d.ts +0 -5
  662. package/dist/types/session/runner/step.d.ts +1 -1
  663. package/dist/types/session/schema.d.ts +0 -9
  664. package/dist/types/session/session.d.ts +5 -5
  665. package/dist/types/session/sql.d.ts +3 -3
  666. package/dist/types/session/store.d.ts +0 -1
  667. package/dist/types/session/transfer.d.ts +0 -53
  668. package/dist/types/session.d.ts +5 -8
  669. package/dist/types/v1/config/migrate.d.ts +0 -2
  670. package/dist/util/error-summary.js +1 -1
  671. package/dist/util/error.js +1 -1
  672. package/dist/util/iife.js +1 -1
  673. package/dist/util/lazy.js +1 -1
  674. package/dist/util/slug.js +1 -1
  675. package/dist/util/token.js +1 -1
  676. package/dist/util/which.js +1 -1
  677. package/dist/util/wildcard.js +1 -1
  678. package/dist/v1/config/agent.js +3 -3
  679. package/dist/v1/config/attachment.js +4 -4
  680. package/dist/v1/config/command.js +3 -3
  681. package/dist/v1/config/config.js +16 -16
  682. package/dist/v1/config/error.js +2 -2
  683. package/dist/v1/config/formatter.js +3 -3
  684. package/dist/v1/config/layout.js +1 -1
  685. package/dist/v1/config/lsp.js +3 -3
  686. package/dist/v1/config/mcp.js +4 -4
  687. package/dist/v1/config/migrate.js +4 -4
  688. package/dist/v1/config/permission.js +3 -3
  689. package/dist/v1/config/plugin.js +3 -3
  690. package/dist/v1/config/provider-options.js +1 -1
  691. package/dist/v1/config/provider.js +4 -4
  692. package/dist/v1/config/server.js +2 -2
  693. package/dist/v1/config/skills.js +3 -3
  694. package/dist/v1/permission.js +1 -1
  695. package/dist/vcs/patch.js +1 -1
  696. package/dist/vcs.js +85 -86
  697. package/dist/websearch.js +78 -79
  698. package/dist/wellknown/plugin.js +74 -75
  699. package/dist/wellknown.js +75 -76
  700. package/dist/workspace/driver.js +3 -3
  701. package/dist/workspace/sql.js +1 -1
  702. package/dist/workspace.js +76 -77
  703. package/dist/worktree/directory.js +4 -4
  704. package/dist/worktree/git.js +7 -7
  705. package/dist/worktree/refresh.js +339 -339
  706. package/dist/worktree/sql.js +5 -5
  707. package/dist/worktree.js +89 -90
  708. package/package.json +8 -8
  709. package/dist/chunks/file-access-05fbhmag.js +0 -22
  710. package/dist/chunks/file-access-64h6ppck.js +0 -247
  711. package/dist/chunks/file-access-6kdq0pjd.js +0 -4
  712. package/dist/chunks/file-access-7jrfegz8.js +0 -260
  713. package/dist/chunks/file-access-ea8nv0r7.js +0 -170
  714. package/dist/chunks/file-access-h8sjebh6.js +0 -123
  715. package/dist/chunks/file-access-jqh9b0xq.js +0 -18
  716. package/dist/chunks/file-access-rhqq9sj2.js +0 -63
  717. package/dist/chunks/file-access-rs20ccms.js +0 -228
  718. package/dist/chunks/file-access-y8f7s663.js +0 -13
  719. package/dist/chunks/file-access-zka7qpah.js +0 -462
  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/{file-access-0qkdqm5v.js → file-0qkdqm5v.js} +0 -0
  725. /package/dist/chunks/{file-access-0zkw76rk.js → file-0zkw76rk.js} +0 -0
  726. /package/dist/chunks/{file-access-17cy0kzp.js → file-17cy0kzp.js} +0 -0
  727. /package/dist/chunks/{file-access-1cnp2v09.js → file-1cnp2v09.js} +0 -0
  728. /package/dist/chunks/{file-access-1kg9ymc8.js → file-1kg9ymc8.js} +0 -0
  729. /package/dist/chunks/{file-access-2710q6r3.js → file-2710q6r3.js} +0 -0
  730. /package/dist/chunks/{file-access-2axfhc9x.js → file-2axfhc9x.js} +0 -0
  731. /package/dist/chunks/{file-access-2c3vjs8z.js → file-2c3vjs8z.js} +0 -0
  732. /package/dist/chunks/{file-access-359p4xyc.js → file-359p4xyc.js} +0 -0
  733. /package/dist/chunks/{file-access-3asan66x.js → file-3asan66x.js} +0 -0
  734. /package/dist/chunks/{file-access-3v8g72cx.js → file-3v8g72cx.js} +0 -0
  735. /package/dist/chunks/{file-access-3w5fmr99.js → file-3w5fmr99.js} +0 -0
  736. /package/dist/chunks/{file-access-3wcehsnq.js → file-3wcehsnq.js} +0 -0
  737. /package/dist/chunks/{file-access-43n2bw4t.js → file-43n2bw4t.js} +0 -0
  738. /package/dist/chunks/{file-access-4knz6hnm.js → file-4knz6hnm.js} +0 -0
  739. /package/dist/chunks/{file-access-4y7fprxs.js → file-4y7fprxs.js} +0 -0
  740. /package/dist/chunks/{file-access-53557ph1.js → file-53557ph1.js} +0 -0
  741. /package/dist/chunks/{file-access-550bvhaj.js → file-550bvhaj.js} +0 -0
  742. /package/dist/chunks/{file-access-6prwharc.js → file-6prwharc.js} +0 -0
  743. /package/dist/chunks/{file-access-7akdwqpd.js → file-7akdwqpd.js} +0 -0
  744. /package/dist/chunks/{file-access-7m9af43g.js → file-7m9af43g.js} +0 -0
  745. /package/dist/chunks/{file-access-822emrt2.js → file-822emrt2.js} +0 -0
  746. /package/dist/chunks/{file-access-88xbtdfr.js → file-88xbtdfr.js} +0 -0
  747. /package/dist/chunks/{file-access-8n3pysct.js → file-8n3pysct.js} +0 -0
  748. /package/dist/chunks/{file-access-922hggd3.js → file-922hggd3.js} +0 -0
  749. /package/dist/chunks/{file-access-9a4afbnw.js → file-9a4afbnw.js} +0 -0
  750. /package/dist/chunks/{file-access-9rqn6x4v.js → file-9rqn6x4v.js} +0 -0
  751. /package/dist/chunks/{file-access-a6k6eb26.js → file-a6k6eb26.js} +0 -0
  752. /package/dist/chunks/{file-access-af5trqkr.js → file-af5trqkr.js} +0 -0
  753. /package/dist/chunks/{file-access-afrmfg78.js → file-afrmfg78.js} +0 -0
  754. /package/dist/chunks/{file-access-aqzs7mqg.js → file-aqzs7mqg.js} +0 -0
  755. /package/dist/chunks/{file-access-atq7p7m5.js → file-atq7p7m5.js} +0 -0
  756. /package/dist/chunks/{file-access-bkyjaxrp.js → file-bkyjaxrp.js} +0 -0
  757. /package/dist/chunks/{file-access-bmr6ed5q.js → file-bmr6ed5q.js} +0 -0
  758. /package/dist/chunks/{file-access-cf4snx6d.js → file-cf4snx6d.js} +0 -0
  759. /package/dist/chunks/{file-access-cvy3z8tj.js → file-cvy3z8tj.js} +0 -0
  760. /package/dist/chunks/{file-access-d9fn303g.js → file-d9fn303g.js} +0 -0
  761. /package/dist/chunks/{file-access-d9jj8t3e.js → file-d9jj8t3e.js} +0 -0
  762. /package/dist/chunks/{file-access-dajrwvna.js → file-dajrwvna.js} +0 -0
  763. /package/dist/chunks/{file-access-dap0rakb.js → file-dap0rakb.js} +0 -0
  764. /package/dist/chunks/{file-access-df08tz66.js → file-df08tz66.js} +0 -0
  765. /package/dist/chunks/{file-access-dy18nga0.js → file-dy18nga0.js} +0 -0
  766. /package/dist/chunks/{file-access-e5kj55wp.js → file-e5kj55wp.js} +0 -0
  767. /package/dist/chunks/{file-access-e73j6tqm.js → file-e73j6tqm.js} +0 -0
  768. /package/dist/chunks/{file-access-ec1grn59.js → file-ec1grn59.js} +0 -0
  769. /package/dist/chunks/{file-access-eh3zwz77.js → file-eh3zwz77.js} +0 -0
  770. /package/dist/chunks/{file-access-emrn6kk6.js → file-emrn6kk6.js} +0 -0
  771. /package/dist/chunks/{file-access-f0mxakyp.js → file-f0mxakyp.js} +0 -0
  772. /package/dist/chunks/{file-access-f6n9ztr4.js → file-f6n9ztr4.js} +0 -0
  773. /package/dist/chunks/{file-access-faypxj3z.js → file-faypxj3z.js} +0 -0
  774. /package/dist/chunks/{file-access-fd410y7t.js → file-fd410y7t.js} +0 -0
  775. /package/dist/chunks/{file-access-fxgpk5d8.js → file-fxgpk5d8.js} +0 -0
  776. /package/dist/chunks/{file-access-g4wezp1m.js → file-g4wezp1m.js} +0 -0
  777. /package/dist/chunks/{file-access-g86h250q.js → file-g86h250q.js} +0 -0
  778. /package/dist/chunks/{file-access-gebd4c9n.js → file-gebd4c9n.js} +0 -0
  779. /package/dist/chunks/{file-access-gftt206x.js → file-gftt206x.js} +0 -0
  780. /package/dist/chunks/{file-access-hjbc5kem.js → file-hjbc5kem.js} +0 -0
  781. /package/dist/chunks/{file-access-hk9envan.js → file-hk9envan.js} +0 -0
  782. /package/dist/chunks/{file-access-hrnqkpcd.js → file-hrnqkpcd.js} +0 -0
  783. /package/dist/chunks/{file-access-j2ntwpah.js → file-j2ntwpah.js} +0 -0
  784. /package/dist/chunks/{file-access-j5zkgpj8.js → file-j5zkgpj8.js} +0 -0
  785. /package/dist/chunks/{file-access-j935v87r.js → file-j935v87r.js} +0 -0
  786. /package/dist/chunks/{file-access-jr7sbwjy.js → file-jr7sbwjy.js} +0 -0
  787. /package/dist/chunks/{file-access-jwfs4k6c.js → file-jwfs4k6c.js} +0 -0
  788. /package/dist/chunks/{file-access-jzg6c2d5.js → file-jzg6c2d5.js} +0 -0
  789. /package/dist/chunks/{file-access-mp448xyj.js → file-mp448xyj.js} +0 -0
  790. /package/dist/chunks/{file-access-msx8hqn2.js → file-msx8hqn2.js} +0 -0
  791. /package/dist/chunks/{file-access-n05xt0ee.js → file-n05xt0ee.js} +0 -0
  792. /package/dist/chunks/{file-access-n3j8tn72.js → file-n3j8tn72.js} +0 -0
  793. /package/dist/chunks/{file-access-njntx4h6.js → file-njntx4h6.js} +0 -0
  794. /package/dist/chunks/{file-access-q3sfg36h.js → file-q3sfg36h.js} +0 -0
  795. /package/dist/chunks/{file-access-q74kybfr.js → file-q74kybfr.js} +0 -0
  796. /package/dist/chunks/{file-access-qaymkmh1.js → file-qaymkmh1.js} +0 -0
  797. /package/dist/chunks/{file-access-qb87gjwd.js → file-qb87gjwd.js} +0 -0
  798. /package/dist/chunks/{file-access-qfa1cgps.js → file-qfa1cgps.js} +0 -0
  799. /package/dist/chunks/{file-access-qrg20bc0.js → file-qrg20bc0.js} +0 -0
  800. /package/dist/chunks/{file-access-rcb2kzg1.js → file-rcb2kzg1.js} +0 -0
  801. /package/dist/chunks/{file-access-sdp7kfr6.js → file-sdp7kfr6.js} +0 -0
  802. /package/dist/chunks/{file-access-sk3qaz4a.js → file-sk3qaz4a.js} +0 -0
  803. /package/dist/chunks/{file-access-ssg3fenm.js → file-ssg3fenm.js} +0 -0
  804. /package/dist/chunks/{file-access-twg0f83k.js → file-twg0f83k.js} +0 -0
  805. /package/dist/chunks/{file-access-w803qqfp.js → file-w803qqfp.js} +0 -0
  806. /package/dist/chunks/{file-access-wer8tq1h.js → file-wer8tq1h.js} +0 -0
  807. /package/dist/chunks/{file-access-wtztk69x.js → file-wtztk69x.js} +0 -0
  808. /package/dist/chunks/{file-access-x0ckcb58.js → file-x0ckcb58.js} +0 -0
  809. /package/dist/chunks/{file-access-x61499pn.js → file-x61499pn.js} +0 -0
  810. /package/dist/chunks/{file-access-y44na4kk.js → file-y44na4kk.js} +0 -0
  811. /package/dist/chunks/{file-access-y8cydn3q.js → file-y8cydn3q.js} +0 -0
  812. /package/dist/chunks/{file-access-ygaqb7jw.js → file-ygaqb7jw.js} +0 -0
  813. /package/dist/chunks/{file-access-ym463w8f.js → file-ym463w8f.js} +0 -0
  814. /package/dist/chunks/{file-access-z9919s4g.js → file-z9919s4g.js} +0 -0
@@ -48,53 +48,6 @@ declare const UnsupportedPackageError_base: Schema.Class<UnsupportedPackageError
48
48
  export declare class UnsupportedPackageError extends UnsupportedPackageError_base {
49
49
  get message(): string;
50
50
  }
51
- export declare const InitializationPhase: Schema.Literals<readonly ["load", "init", "construct"]>;
52
- export type InitializationPhase = typeof InitializationPhase.Type;
53
- declare const ModelConfigurationError_base: Schema.Class<ModelConfigurationError, Schema.TaggedStruct<"SessionRunnerModel.ModelConfigurationError", {
54
- readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
55
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
56
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
57
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
58
- google: string & import("effect/Brand").Brand<"Provider.ID">;
59
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
60
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
61
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
62
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
63
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
64
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
65
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
66
- };
67
- readonly modelID: Schema.brand<Schema.String, "Model.ID">;
68
- readonly package: Schema.String;
69
- readonly detail: Schema.String;
70
- }>, import("effect/Cause").YieldableError>;
71
- /** Provider settings are missing, conflicting, or unsupported; the provider's own message tells the user what to fix. */
72
- export declare class ModelConfigurationError extends ModelConfigurationError_base {
73
- get message(): string;
74
- }
75
- declare const ModelInitializationError_base: Schema.Class<ModelInitializationError, Schema.TaggedStruct<"SessionRunnerModel.ModelInitializationError", {
76
- readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
77
- opencode: string & import("effect/Brand").Brand<"Provider.ID">;
78
- anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
79
- openai: string & import("effect/Brand").Brand<"Provider.ID">;
80
- google: string & import("effect/Brand").Brand<"Provider.ID">;
81
- googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
82
- githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
83
- amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
84
- azure: string & import("effect/Brand").Brand<"Provider.ID">;
85
- openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
86
- mistral: string & import("effect/Brand").Brand<"Provider.ID">;
87
- gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
88
- };
89
- readonly modelID: Schema.brand<Schema.String, "Model.ID">;
90
- readonly package: Schema.String;
91
- readonly phase: Schema.Literals<readonly ["load", "init", "construct"]>;
92
- readonly detail: Schema.String;
93
- }>, import("effect/Cause").YieldableError>;
94
- /** A supported package failed unexpectedly while loading or constructing the model. */
95
- export declare class ModelInitializationError extends ModelInitializationError_base {
96
- get message(): string;
97
- }
98
51
  declare const UnresolvedProviderVariablesError_base: Schema.Class<UnresolvedProviderVariablesError, Schema.TaggedStruct<"SessionRunnerModel.UnresolvedProviderVariablesError", {
99
52
  readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
100
53
  opencode: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -135,7 +88,7 @@ declare const UnsupportedCompactionError_base: Schema.Class<UnsupportedCompactio
135
88
  export declare class UnsupportedCompactionError extends UnsupportedCompactionError_base {
136
89
  get message(): string;
137
90
  }
138
- export type Error = VariantUnavailableError | UnsupportedPackageError | ModelConfigurationError | ModelInitializationError | UnresolvedProviderVariablesError | UnsupportedCompactionError | Integration.AuthorizationError;
91
+ export type Error = VariantUnavailableError | UnsupportedPackageError | UnresolvedProviderVariablesError | UnsupportedCompactionError | Integration.AuthorizationError;
139
92
  export interface Resolved {
140
93
  /** Route-level model for provider requests; its id is the provider API model id, which may differ from the catalog id. */
141
94
  readonly model: LanguageModel;
@@ -149,8 +102,6 @@ export interface Resolved {
149
102
  readonly limit: Info["limit"];
150
103
  /** Model policy overrides the provider policy; omitted means local compaction. */
151
104
  readonly compaction?: Info["compaction"];
152
- /** Whether the session WebSocket may carry this model's requests when the route supports it. */
153
- readonly websocket: boolean;
154
105
  }
155
106
  export interface Interface {
156
107
  readonly resolve: (requested?: Ref) => Effect.Effect<Resolved | undefined, Error>;
@@ -164,10 +115,10 @@ export interface Dependencies {
164
115
  readonly loadPackage?: (specifier: string) => Effect.Effect<Provider.ProviderPackage, Provider.LoadError>;
165
116
  readonly loadAISDK?: (model: Info) => Effect.Effect<LanguageModel, AISDK.InitError>;
166
117
  }
167
- export declare const fromCatalogModel: (model: Info, credential?: Credential.Value, dependencies?: Dependencies) => Effect.Effect<LanguageModel, UnsupportedPackageError | ModelConfigurationError | ModelInitializationError | UnresolvedProviderVariablesError | UnsupportedCompactionError>;
118
+ export declare const fromCatalogModel: (model: Info, credential?: Credential.Value, dependencies?: Dependencies) => Effect.Effect<LanguageModel, UnsupportedPackageError | UnresolvedProviderVariablesError | UnsupportedCompactionError>;
168
119
  export declare const resolveModel: (model: Info, variant: VariantID | undefined, credential?: Credential.Value, dependencies?: Dependencies) => Effect.Effect<LanguageModel<{
169
120
  readonly [x: string]: unknown;
170
- }, import("@opencode/ai/route").CompactionOperations | undefined>, VariantUnavailableError | UnsupportedPackageError | ModelConfigurationError | ModelInitializationError | UnresolvedProviderVariablesError | UnsupportedCompactionError, never>;
121
+ }, import("@opencode/ai/route").CompactionOperations | undefined>, VariantUnavailableError | UnsupportedPackageError | UnresolvedProviderVariablesError | UnsupportedCompactionError, never>;
171
122
  export declare const hasPackage: (model: Info) => boolean;
172
123
  /** Resolves catalog selections into runtime models for the current Location. */
173
124
  export declare const layer: Layer.Layer<Service, never, Npm.Service | AISDK.Service | Integration.Service | Catalog.Service>;
@@ -199,7 +199,6 @@ export declare const Info: import("effect/Schema").Struct<{
199
199
  readonly mode: import("effect/Schema").Literal<"provider">;
200
200
  readonly threshold: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Int>>, import("effect/Schema").optionalKey<import("effect/Schema").Int>, never, never>;
201
201
  }>]>>, never, never>;
202
- readonly websocket: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Boolean>>, import("effect/Schema").optionalKey<import("effect/Schema").Boolean>, never, never>;
203
202
  }> & {
204
203
  default: (providerID: import("@opencode/schema/provider").ID, id: Model.ID) => {
205
204
  id: string & import("effect/Brand").Brand<"Model.ID">;
@@ -1,9 +1,8 @@
1
1
  export * as OptimizePlugin from "./optimize.js";
2
2
  export declare const OpenAIPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>;
3
- export declare const AnthropicPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>;
4
3
  export declare const OpenAIToolsPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>;
5
4
  export declare const AnthropicToolsPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>;
6
5
  export declare const KimiPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>;
7
6
  export declare const ArceePlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>;
8
7
  export declare const MetaPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>;
9
- export declare const Plugins: readonly [import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>, import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>, import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>, import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>, import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>];
8
+ export declare const Plugins: readonly [import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>, import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>, import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>, import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>];
@@ -0,0 +1 @@
1
+ export declare const AnthropicPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>;
@@ -0,0 +1 @@
1
+ export declare const MistralPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>;
@@ -1,5 +1,4 @@
1
- import { HttpClient } from "effect/unstable/http";
2
- import { Bus } from "../../bus.js";
3
- import { Credential } from "../../credential.js";
4
- import { Integration } from "../../integration.js";
5
- export declare const SnowflakeCortexPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope | HttpClient.HttpClient | Bus.Service | Credential.Service | Integration.Service | import("../../catalog.js").Service>;
1
+ type FetchLike = (url: string | URL | Request, init?: RequestInit) => Promise<Response>;
2
+ export declare function cortexFetch(upstream?: FetchLike): (url: string | URL | Request, init?: RequestInit) => Promise<Response>;
3
+ export declare const SnowflakeCortexPlugin: import("@opencode/plugin/effect/plugin").Plugin<import("effect/Scope").Scope>;
4
+ export {};
@@ -35,7 +35,6 @@ export type ProviderPackage = ProviderPackageDefinition;
35
35
  export declare const loadPackage: (input: string, npm?: Npm.Interface | undefined) => Effect.Effect<ProviderPackageDefinition<import("@opencode/ai").ProviderPackageSettings, {
36
36
  readonly [x: string]: unknown;
37
37
  }, import("@opencode/ai/route").CompactionOperations | undefined>, LoadError, never>;
38
- export declare function nativeSettings(settings: Settings): Settings;
39
38
  export declare function mergeOverlay(base: Readonly<Record<string, unknown>> | undefined, overlay: Readonly<Record<string, unknown>> | undefined): Record<string, Json> | undefined;
40
39
  export declare function mergeHeaders(base: Readonly<Record<string, string>> | undefined, overlay: Readonly<Record<string, string>> | undefined): {
41
40
  [k: string]: string;
@@ -105,7 +104,6 @@ export declare const Info: Schema.Struct<{
105
104
  readonly mode: Schema.Literal<"provider">;
106
105
  readonly threshold: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
107
106
  }>]>>, never, never>;
108
- readonly websocket: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
109
107
  }> & {
110
108
  empty: (id: Provider.ID) => Provider.Info;
111
109
  };
@@ -8,7 +8,6 @@ export interface Interface {
8
8
  readonly register: RpcDomain["register"];
9
9
  readonly client: <D extends Rpc.Definition>(definition: D) => RpcClient<D, Rpc.SystemError, never, unknown>;
10
10
  readonly call: (rpcID: string, method: string, input: unknown) => Effect.Effect<unknown, Rpc.Failure>;
11
- readonly close: Effect.Effect<void>;
12
11
  }
13
12
  declare const Service_base: Context.ServiceClass<Service, "@opencode/Rpc", Interface>;
14
13
  export declare class Service extends Service_base {
@@ -21,7 +21,7 @@ export type Editor = {
21
21
  };
22
22
  export type AutoInput = {
23
23
  readonly context: SessionContext.Loaded;
24
- readonly prepare: SessionModelRequest.Interface["compaction"];
24
+ readonly prepare: SessionModelRequest.Interface["prepare"];
25
25
  /** Known overflow must recover from durable history, not submit the overflowing native window again. */
26
26
  readonly overflow?: boolean;
27
27
  };
@@ -39,7 +39,7 @@ export type ManualInput = {
39
39
  readonly resolveContext: (session: SessionSchema.Info) => Effect.Effect<SessionContext.Loaded & {
40
40
  readonly instructionUpdate: string;
41
41
  }, SessionRunnerModel.Error | AgentNotFoundError | Instructions.InitializationBlocked>;
42
- readonly prepare: SessionModelRequest.Interface["compaction"];
42
+ readonly prepare: SessionModelRequest.Interface["prepare"];
43
43
  };
44
44
  export type Outcome = (Pick<SessionMessage.CompactionCompleted, "status"> & {
45
45
  /** Consumes the logical step's one overflow rebuild even when the native attempt overflowed first. */
@@ -59,6 +59,6 @@ export declare const estimateTokens: (input: RequiredInput) => number;
59
59
  export declare const retainUsers: (messages: readonly SessionMessage.Info[], model: Pick<SessionRunnerModel.Resolved, "ref" | "capabilities">, keepTokens: number) => Message[];
60
60
  export declare const truncateToolOutput: (value: string) => string;
61
61
  export declare const serializeToolContent: (content: SessionMessage.ToolStateCompleted["content"]) => string;
62
- export declare const buildPrompt: (update: boolean, legacy?: boolean) => string;
62
+ export declare const buildPrompt: (update: boolean) => string;
63
63
  export declare const layer: Layer.Layer<Service, never, Database.Service | Bus.Service | import("@opencode/ai").LLMClientService>;
64
64
  export declare const node: import("@opencode/util/effect/layer-node").Provider<Service, never, import("@opencode/util/effect/layer-node").Tag<"location">>;
@@ -44,7 +44,7 @@ export interface Interface {
44
44
  readonly primary: SessionRunnerModel.Resolved | undefined;
45
45
  readonly selected: SessionRunnerModel.Resolved;
46
46
  } | undefined>;
47
- readonly request: SessionModelRequest.Interface;
47
+ readonly prepare: SessionModelRequest.Interface["prepare"];
48
48
  }
49
49
  declare const Service_base: Context.ServiceClass<Service, "@opencode/SessionContext", Interface>;
50
50
  /** Location-scoped model-context loader for durable Session Steps. */
@@ -20,6 +20,42 @@ declare const MessageNotFoundError_base: Schema.Class<MessageNotFoundError, Sche
20
20
  }>, import("effect/Cause").YieldableError>;
21
21
  export declare class MessageNotFoundError extends MessageNotFoundError_base {
22
22
  }
23
+ declare const MessageNotAssistantError_base: Schema.Class<MessageNotAssistantError, Schema.TaggedStruct<"Session.MessageNotAssistantError", {
24
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
25
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
26
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
27
+ };
28
+ readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
29
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
30
+ fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
31
+ };
32
+ }>, import("effect/Cause").YieldableError>;
33
+ export declare class MessageNotAssistantError extends MessageNotAssistantError_base {
34
+ }
35
+ declare const MessageIncompleteError_base: Schema.Class<MessageIncompleteError, Schema.TaggedStruct<"Session.MessageIncompleteError", {
36
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
37
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
38
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
39
+ };
40
+ readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
41
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
42
+ fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
43
+ };
44
+ }>, import("effect/Cause").YieldableError>;
45
+ export declare class MessageIncompleteError extends MessageIncompleteError_base {
46
+ }
47
+ declare const MessageToolIncompleteError_base: Schema.Class<MessageToolIncompleteError, Schema.TaggedStruct<"Session.MessageToolIncompleteError", {
48
+ readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
49
+ create: () => string & import("effect/Brand").Brand<"SessionID">;
50
+ descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
51
+ };
52
+ readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
53
+ create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
54
+ fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
55
+ };
56
+ }>, import("effect/Cause").YieldableError>;
57
+ export declare class MessageToolIncompleteError extends MessageToolIncompleteError_base {
58
+ }
23
59
  declare const ForkEmptyError_base: Schema.Class<ForkEmptyError, Schema.TaggedStruct<"Session.ForkEmptyError", {
24
60
  readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
25
61
  create: () => string & import("effect/Brand").Brand<"SessionID">;
@@ -343,7 +343,6 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
343
343
  readonly metadata?: {
344
344
  readonly [x: string]: unknown;
345
345
  } | undefined;
346
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
347
346
  readonly model?: {
348
347
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
349
348
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -352,15 +351,6 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
352
351
  readonly providerState?: {
353
352
  readonly [x: string]: unknown;
354
353
  } | undefined;
355
- readonly tokens?: {
356
- readonly input: number;
357
- readonly output: number;
358
- readonly reasoning: number;
359
- readonly cache: {
360
- readonly read: number;
361
- readonly write: number;
362
- };
363
- } | undefined;
364
354
  readonly providerContext?: {
365
355
  readonly version: 1;
366
356
  readonly provenance: {
@@ -389,16 +379,6 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
389
379
  readonly metadata?: {
390
380
  readonly [x: string]: unknown;
391
381
  } | undefined;
392
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
393
- readonly tokens?: {
394
- readonly input: number;
395
- readonly output: number;
396
- readonly reasoning: number;
397
- readonly cache: {
398
- readonly read: number;
399
- readonly write: number;
400
- };
401
- } | undefined;
402
382
  }, MessageDecodeError, never>;
403
383
  export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
404
384
  $client: import("effect/unstable/sql/SqlClient").SqlClient;
@@ -731,7 +711,6 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
731
711
  readonly metadata?: {
732
712
  readonly [x: string]: unknown;
733
713
  } | undefined;
734
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
735
714
  readonly model?: {
736
715
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
737
716
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -740,15 +719,6 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
740
719
  readonly providerState?: {
741
720
  readonly [x: string]: unknown;
742
721
  } | undefined;
743
- readonly tokens?: {
744
- readonly input: number;
745
- readonly output: number;
746
- readonly reasoning: number;
747
- readonly cache: {
748
- readonly read: number;
749
- readonly write: number;
750
- };
751
- } | undefined;
752
722
  readonly providerContext?: {
753
723
  readonly version: 1;
754
724
  readonly provenance: {
@@ -777,16 +747,6 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
777
747
  readonly metadata?: {
778
748
  readonly [x: string]: unknown;
779
749
  } | undefined;
780
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
781
- readonly tokens?: {
782
- readonly input: number;
783
- readonly output: number;
784
- readonly reasoning: number;
785
- readonly cache: {
786
- readonly read: number;
787
- readonly write: number;
788
- };
789
- } | undefined;
790
750
  })[], MessageDecodeError, never>;
791
751
  export declare const entriesForRunner: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
792
752
  $client: import("effect/unstable/sql/SqlClient").SqlClient;
@@ -1123,7 +1083,6 @@ export declare const entriesForRunner: (db: import("../database/drizzle.js").Eff
1123
1083
  readonly metadata?: {
1124
1084
  readonly [x: string]: unknown;
1125
1085
  } | undefined;
1126
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1127
1086
  readonly model?: {
1128
1087
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1129
1088
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -1132,15 +1091,6 @@ export declare const entriesForRunner: (db: import("../database/drizzle.js").Eff
1132
1091
  readonly providerState?: {
1133
1092
  readonly [x: string]: unknown;
1134
1093
  } | undefined;
1135
- readonly tokens?: {
1136
- readonly input: number;
1137
- readonly output: number;
1138
- readonly reasoning: number;
1139
- readonly cache: {
1140
- readonly read: number;
1141
- readonly write: number;
1142
- };
1143
- } | undefined;
1144
1094
  readonly providerContext?: {
1145
1095
  readonly version: 1;
1146
1096
  readonly provenance: {
@@ -1169,16 +1119,6 @@ export declare const entriesForRunner: (db: import("../database/drizzle.js").Eff
1169
1119
  readonly metadata?: {
1170
1120
  readonly [x: string]: unknown;
1171
1121
  } | undefined;
1172
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1173
- readonly tokens?: {
1174
- readonly input: number;
1175
- readonly output: number;
1176
- readonly reasoning: number;
1177
- readonly cache: {
1178
- readonly read: number;
1179
- readonly write: number;
1180
- };
1181
- } | undefined;
1182
1122
  };
1183
1123
  }[];
1184
1124
  }, never, never>;
@@ -1515,7 +1455,6 @@ export declare const preview: (db: import("../database/drizzle.js").EffectSQLite
1515
1455
  readonly metadata?: {
1516
1456
  readonly [x: string]: unknown;
1517
1457
  } | undefined;
1518
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1519
1458
  readonly model?: {
1520
1459
  readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1521
1460
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
@@ -1524,15 +1463,6 @@ export declare const preview: (db: import("../database/drizzle.js").EffectSQLite
1524
1463
  readonly providerState?: {
1525
1464
  readonly [x: string]: unknown;
1526
1465
  } | undefined;
1527
- readonly tokens?: {
1528
- readonly input: number;
1529
- readonly output: number;
1530
- readonly reasoning: number;
1531
- readonly cache: {
1532
- readonly read: number;
1533
- readonly write: number;
1534
- };
1535
- } | undefined;
1536
1466
  readonly providerContext?: {
1537
1467
  readonly version: 1;
1538
1468
  readonly provenance: {
@@ -1561,16 +1491,6 @@ export declare const preview: (db: import("../database/drizzle.js").EffectSQLite
1561
1491
  readonly metadata?: {
1562
1492
  readonly [x: string]: unknown;
1563
1493
  } | undefined;
1564
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1565
- readonly tokens?: {
1566
- readonly input: number;
1567
- readonly output: number;
1568
- readonly reasoning: number;
1569
- readonly cache: {
1570
- readonly read: number;
1571
- readonly write: number;
1572
- };
1573
- } | undefined;
1574
1494
  })[];
1575
1495
  instructionUpdate: string;
1576
1496
  }, Instructions.InitializationBlocked, never>;
@@ -1,7 +1,7 @@
1
1
  export * as SessionModelRequest from "./model-request.js";
2
2
  import { LLM, LLMRequest, Message, SystemPart } from "@opencode/ai";
3
3
  import type { StreamOptions } from "@opencode/ai/route";
4
- import type { SessionCompaction, SessionContext, SessionGenerate, SessionRequest, SessionTitle } from "@opencode/plugin/effect/session";
4
+ import type { SessionRequestKind } from "@opencode/plugin/effect/session";
5
5
  import type { Agent } from "@opencode/schema/agent";
6
6
  import type { Model } from "@opencode/schema/model";
7
7
  import { Context, Effect, Layer } from "effect";
@@ -13,25 +13,41 @@ import { SessionModelTransport } from "./model-transport.js";
13
13
  import { SessionRunnerModel } from "./runner/model.js";
14
14
  import { SessionSchema } from "./schema.js";
15
15
  import type { SessionMessage } from "./message.js";
16
- /** Tool errors, plus the user declining a permission or dismissing a question. */
16
+ /** Failures a prepared execution can surface: infrastructure errors plus user declines resurfaced from the defect tunnel. */
17
17
  export type ExecuteError = Tool.Error | Permission.DeclinedError | QuestionTool.CancelledError;
18
- export interface Prepared<Event = SessionRequest> {
19
- readonly event: Event;
18
+ export interface Prepared {
20
19
  readonly request: LLMRequest;
21
20
  readonly options: StreamOptions;
22
21
  readonly retry: (event: PluginHooks.Domains["session"]["retry"]) => Effect.Effect<void>;
23
- /** Runs a tool call against the tools this request advertised. */
22
+ /**
23
+ * One request-scoped execution operation. Unknown and hook-removed calls
24
+ * fail individually through the same seam.
25
+ */
24
26
  readonly executeTool: (input: Parameters<Tool.Snapshot["execute"]>[0]) => Effect.Effect<Tool.NormalizedResult, ExecuteError>;
25
27
  }
26
- export interface Input {
27
- readonly session: SessionSchema.Info;
28
- readonly agent: Agent.ID;
29
- readonly model: SessionRunnerModel.Resolved;
30
- readonly tools?: Tool.Snapshot;
31
- readonly system: Array<SystemPart>;
32
- readonly messages: Array<Message>;
28
+ interface PrepareInput {
29
+ /** Which Session flow issues this request; request hooks receive it alongside the Session identity. */
30
+ readonly kind: SessionRequestKind;
31
+ readonly scope: {
32
+ readonly session: SessionSchema.Info;
33
+ readonly agentID: Agent.ID;
34
+ /** Agent whose context an auxiliary request reuses, without changing its request-hook identity. */
35
+ readonly contextAgentID?: Agent.ID;
36
+ readonly model: SessionRunnerModel.Resolved;
37
+ /** Omitted for requests that carry no tool definitions, such as titles. */
38
+ readonly tools?: Tool.Snapshot;
39
+ };
40
+ readonly transcript: {
41
+ readonly system: Array<SystemPart>;
42
+ readonly messages: Array<Message>;
43
+ };
33
44
  readonly toolChoice?: LLM.RequestInput["toolChoice"];
34
- /** Only the durable runner may use a stateful WebSocket. */
45
+ /**
46
+ * Session context hooks shape the agent conversation. Standalone requests
47
+ * such as titles opt out; compaction uses the selected Session context.
48
+ */
49
+ readonly contextHooks?: false;
50
+ /** Stateful Session WebSocket channels require an explicit durable-runner opt-in. */
35
51
  readonly webSocket?: "session";
36
52
  }
37
53
  export declare const baseTranscript: (input: {
@@ -54,14 +70,17 @@ export declare const baseTranscript: (input: {
54
70
  };
55
71
  export declare const unsupportedParts: (messages: LLMRequest["messages"], capabilities: Model.Capabilities) => Message[];
56
72
  export declare const boundImages: (messages: LLMRequest["messages"]) => readonly Message[];
57
- /** Builds the model request for each session flow. Each entry runs its own plugin hook. */
73
+ /**
74
+ * Builds an outbound model request and captures the tool-call capability that
75
+ * must remain paired with it. It does not execute the request or mutate
76
+ * Session state.
77
+ */
58
78
  export interface Interface {
59
- readonly primary: (input: Input) => Effect.Effect<Prepared<SessionContext>>;
60
- readonly compaction: (input: Input) => Effect.Effect<Prepared<SessionCompaction>>;
61
- readonly generate: (input: Input) => Effect.Effect<Prepared<SessionGenerate>>;
62
- readonly title: (input: Input) => Effect.Effect<Prepared<SessionTitle>>;
79
+ /** Builds one outbound model request and its matching tool-call capability. */
80
+ readonly prepare: (input: PrepareInput) => Effect.Effect<Prepared>;
63
81
  }
64
82
  declare const Service_base: Context.ServiceClass<Service, "@opencode/SessionModelRequest", Interface>;
83
+ /** Location-scoped outbound model-request preparation. */
65
84
  export declare class Service extends Service_base {
66
85
  }
67
86
  export declare const layer: Layer.Layer<Service, never, PluginHooks.Service | SessionModelTransport.Service>;
@@ -37,10 +37,6 @@ export declare const VariantUnavailableError: typeof ModelResolver.VariantUnavai
37
37
  export type VariantUnavailableError = ModelResolver.VariantUnavailableError;
38
38
  export declare const UnsupportedPackageError: typeof ModelResolver.UnsupportedPackageError;
39
39
  export type UnsupportedPackageError = ModelResolver.UnsupportedPackageError;
40
- export declare const ModelConfigurationError: typeof ModelResolver.ModelConfigurationError;
41
- export type ModelConfigurationError = ModelResolver.ModelConfigurationError;
42
- export declare const ModelInitializationError: typeof ModelResolver.ModelInitializationError;
43
- export type ModelInitializationError = ModelResolver.ModelInitializationError;
44
40
  export declare const UnresolvedProviderVariablesError: typeof ModelResolver.UnresolvedProviderVariablesError;
45
41
  export type UnresolvedProviderVariablesError = ModelResolver.UnresolvedProviderVariablesError;
46
42
  export declare const UnsupportedCompactionError: typeof ModelResolver.UnsupportedCompactionError;
@@ -61,6 +57,5 @@ export declare const resolved: (model: LanguageModel, options: {
61
57
  readonly cost: Model.Info["cost"];
62
58
  readonly limit: Model.Info["limit"];
63
59
  readonly compaction?: Provider.Compaction;
64
- readonly websocket?: boolean;
65
60
  }) => Resolved;
66
61
  export declare const node: import("@opencode/util/effect/layer-node").Provider<Service, never, import("@opencode/util/effect/layer-node").Tag<"location">>;
@@ -156,7 +156,7 @@ interface Input {
156
156
  readonly assistantMessageID: SessionMessage.ID;
157
157
  readonly agent: Agent.ID;
158
158
  readonly model: SessionRunnerModel.Resolved;
159
- readonly prepared: Omit<SessionModelRequest.Prepared, "event">;
159
+ readonly prepared: SessionModelRequest.Prepared;
160
160
  readonly retry: (cause: AIError, error: SessionError.Error, retry: boolean) => Effect.Effect<{
161
161
  readonly retry: false;
162
162
  } | SessionRunnerRetry.Decision>;
@@ -136,15 +136,6 @@ export declare const Info: import("effect/Schema").Struct<{
136
136
  }>;
137
137
  readonly subpath: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "RelativePath">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "RelativePath">>, never, never>;
138
138
  readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>>, never, never>;
139
- readonly permissions: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Array<import("effect/Schema").Struct<{
140
- readonly action: import("effect/Schema").String;
141
- readonly resource: import("effect/Schema").String;
142
- readonly effect: import("effect/Schema").Literals<readonly ["allow", "deny", "ask"]>;
143
- }>>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").Struct<{
144
- readonly action: import("effect/Schema").String;
145
- readonly resource: import("effect/Schema").String;
146
- readonly effect: import("effect/Schema").Literals<readonly ["allow", "deny", "ask"]>;
147
- }>>>, never, never>;
148
139
  readonly revert: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
149
140
  readonly messageID: import("effect/Schema").brand<import("effect/Schema").String, "Session.Message.ID"> & {
150
141
  create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
@@ -2,14 +2,13 @@ export * as Session from "./session.js";
2
2
  import { DateTime, Effect, Scope } from "effect";
3
3
  import type { Agent } from "@opencode/schema/agent";
4
4
  import type { Model } from "@opencode/schema/model";
5
- import type { Permission } from "@opencode/schema/permission";
6
5
  import { Event } from "@opencode/schema/event";
7
6
  import { FSUtil } from "@opencode/util/fs-util";
8
7
  import { Bus } from "../bus.js";
9
8
  import { Database } from "../database/database.js";
10
9
  import { Instance } from "../instance/service.js";
11
10
  import type { Skill } from "../skill.js";
12
- import { BusyError, CompactionConflictError, InboxConflictError, MessageNotFoundError, NotFoundError, PromptConflictError, SyntheticConflictError } from "./error.js";
11
+ import { BusyError, CompactionConflictError, InboxConflictError, MessageIncompleteError, MessageNotAssistantError, MessageNotFoundError, MessageToolIncompleteError, NotFoundError, PromptConflictError, SyntheticConflictError } from "./error.js";
13
12
  import { SessionExecution } from "./execution.js";
14
13
  import { SessionInbox } from "./inbox.js";
15
14
  import { SessionMessage } from "./message.js";
@@ -29,15 +28,16 @@ export declare const make: () => Effect.Effect<{
29
28
  id: string & import("effect/Brand").Brand<"SessionID">;
30
29
  get: () => Effect.Effect<SessionSchema.Info, NotFoundError, never>;
31
30
  message: (messageID: string & import("effect/Brand").Brand<"Session.Message.ID">) => Effect.Effect<SessionMessage.Info | undefined, never, never>;
31
+ updateMessage: (input: {
32
+ readonly messageID: SessionMessage.ID;
33
+ readonly content: readonly SessionMessage.AssistantContent[];
34
+ }) => Effect.Effect<SessionMessage.Assistant, NotFoundError | MessageNotFoundError | MessageNotAssistantError | MessageIncompleteError | MessageToolIncompleteError | BusyError, never>;
32
35
  view: (input: {
33
36
  idle: number;
34
37
  }) => Effect.Effect<void, NotFoundError, never>;
35
38
  rename: (input: {
36
39
  title: string;
37
40
  }) => Effect.Effect<void, NotFoundError, never>;
38
- setPermissions: (input: {
39
- permissions: Permission.Ruleset;
40
- }) => Effect.Effect<void, NotFoundError, never>;
41
41
  switchAgent: (input: {
42
42
  agent: Agent.ID;
43
43
  }) => Effect.Effect<void, NotFoundError, never>;
@@ -551,9 +551,9 @@ export declare const SessionTable: import("drizzle-orm/sqlite-core").SQLiteTable
551
551
  tableName: "session_v2";
552
552
  dataType: "object json";
553
553
  data: readonly {
554
- readonly action: string;
555
- readonly resource: string;
556
- readonly effect: "allow" | "deny" | "ask";
554
+ readonly permission: string;
555
+ readonly pattern: string;
556
+ readonly action: "allow" | "deny" | "ask";
557
557
  }[];
558
558
  driverParam: string;
559
559
  notNull: false;
@@ -74,7 +74,6 @@ export type MessagesInput = {
74
74
  sessionID: Session.ID;
75
75
  limit?: number;
76
76
  order?: "asc" | "desc";
77
- type?: SessionMessage.Type;
78
77
  cursor?: {
79
78
  id: SessionMessage.ID;
80
79
  direction: "previous" | "next";