@opencode/core 0.0.0-dev-21269 → 0.0.0-dev-21289

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 (807) hide show
  1. package/dist/account/sql.js +1 -1
  2. package/dist/agent.js +85 -85
  3. package/dist/aisdk-native.js +91 -91
  4. package/dist/aisdk.js +96 -96
  5. package/dist/app.js +9 -9
  6. package/dist/bus.js +75 -75
  7. package/dist/chunks/{voice-hx6e907q.js → model-retry-02w8hjv9.js} +11 -11
  8. package/dist/chunks/{voice-krbeg2se.js → model-retry-0bw8y30e.js} +51 -51
  9. package/dist/chunks/{voice-tx938nqc.js → model-retry-0cbhyycw.js} +19 -19
  10. package/dist/chunks/{voice-9t0xmec0.js → model-retry-0svm4j11.js} +15 -15
  11. package/dist/chunks/{voice-0vbcp93d.js → model-retry-0vbcp93d.js} +2 -2
  12. package/dist/chunks/{voice-q8ra9vd5.js → model-retry-0wcqedam.js} +38 -38
  13. package/dist/chunks/{voice-52nydkw8.js → model-retry-120g7207.js} +2 -2
  14. package/dist/chunks/{voice-zaxy7ecx.js → model-retry-13xvemqm.js} +15 -15
  15. package/dist/chunks/{voice-zhc0v3qp.js → model-retry-197b73fz.js} +44 -44
  16. package/dist/chunks/{voice-yp2x3t23.js → model-retry-1acjjqhc.js} +4 -4
  17. package/dist/chunks/{voice-rkprpv83.js → model-retry-1p07q0wb.js} +4 -4
  18. package/dist/chunks/{voice-vvne4gav.js → model-retry-1pr61bwh.js} +22 -22
  19. package/dist/chunks/{voice-5kxj697y.js → model-retry-1th0nyd1.js} +23 -23
  20. package/dist/chunks/{voice-wp1wkg59.js → model-retry-1trs7s7z.js} +18 -18
  21. package/dist/chunks/{voice-baqyxak2.js → model-retry-1ze9gtzp.js} +4 -4
  22. package/dist/chunks/{voice-tt8gc4fv.js → model-retry-25yddszk.js} +3 -3
  23. package/dist/chunks/{voice-788azn8w.js → model-retry-27dhaw8v.js} +86 -163
  24. package/dist/chunks/{voice-e61cj48z.js → model-retry-2g47h04h.js} +29 -29
  25. package/dist/chunks/{voice-8jzsrpfh.js → model-retry-2k0hjz8m.js} +4 -4
  26. package/dist/chunks/{voice-c214aq79.js → model-retry-2xr9pws4.js} +10 -10
  27. package/dist/chunks/{voice-4qnvasr9.js → model-retry-315ef24x.js} +8 -8
  28. package/dist/chunks/model-retry-374yendz.js +26 -0
  29. package/dist/chunks/{voice-1e040kv3.js → model-retry-3dt4tzwg.js} +2 -2
  30. package/dist/chunks/{voice-3hepkmqq.js → model-retry-3hepkmqq.js} +1 -1
  31. package/dist/chunks/{voice-wdqr7xqq.js → model-retry-3hskxyfj.js} +16 -16
  32. package/dist/chunks/{voice-fmdmz72r.js → model-retry-3htr7rzc.js} +21 -21
  33. package/dist/chunks/{voice-3hwn7j4h.js → model-retry-3hwn7j4h.js} +2 -2
  34. package/dist/chunks/{voice-n1900k66.js → model-retry-3pw8htx8.js} +1 -1
  35. package/dist/chunks/{voice-3smtnn6g.js → model-retry-3smtnn6g.js} +1 -1
  36. package/dist/chunks/{voice-capghd97.js → model-retry-3tnvd6qs.js} +23 -23
  37. package/dist/chunks/{voice-3tvqynh2.js → model-retry-3tvqynh2.js} +1 -1
  38. package/dist/chunks/{voice-y6bex35g.js → model-retry-3y377wv9.js} +4 -4
  39. package/dist/chunks/{voice-3zsf4n22.js → model-retry-3zsf4n22.js} +1 -1
  40. package/dist/chunks/{voice-gm31ynds.js → model-retry-461nxmbv.js} +5 -5
  41. package/dist/chunks/{voice-q2sz1tra.js → model-retry-4dwf0nmp.js} +13 -13
  42. package/dist/chunks/{voice-zybbj8zn.js → model-retry-4n984778.js} +29 -29
  43. package/dist/chunks/{voice-93fzsdqz.js → model-retry-4ndyr8vy.js} +18 -18
  44. package/dist/chunks/{voice-n5feeqsd.js → model-retry-4psrcf1w.js} +4 -4
  45. package/dist/chunks/{voice-4ts41tr6.js → model-retry-4vk656gf.js} +11 -11
  46. package/dist/chunks/{voice-54ma36ye.js → model-retry-54ma36ye.js} +1 -1
  47. package/dist/chunks/{voice-drwq78ky.js → model-retry-57b9ws8p.js} +5 -5
  48. package/dist/chunks/{voice-x77x046w.js → model-retry-5c6h6vqc.js} +9 -9
  49. package/dist/chunks/{voice-ft66ww99.js → model-retry-5fxpne0w.js} +2 -2
  50. package/dist/chunks/{voice-hhe0v7zm.js → model-retry-5kzpfxft.js} +24 -24
  51. package/dist/chunks/{voice-5m9w47nd.js → model-retry-5m9w47nd.js} +1 -1
  52. package/dist/chunks/{voice-hyjay5vw.js → model-retry-5mrmcz26.js} +32 -32
  53. package/dist/chunks/{voice-e7faghhc.js → model-retry-5yx9a2ww.js} +11 -11
  54. package/dist/chunks/{voice-rka5c9pw.js → model-retry-5ze9zbmh.js} +17 -17
  55. package/dist/chunks/{voice-z5pvh795.js → model-retry-61pea42y.js} +8 -8
  56. package/dist/chunks/{voice-6n27b0t2.js → model-retry-67zw56js.js} +32 -32
  57. package/dist/chunks/{voice-6827pfxn.js → model-retry-6827pfxn.js} +1 -1
  58. package/dist/chunks/{voice-n5csmyza.js → model-retry-6vmd7p6h.js} +9 -9
  59. package/dist/chunks/{voice-6xb47vfp.js → model-retry-6xb47vfp.js} +1 -1
  60. package/dist/chunks/{voice-ym1asdg7.js → model-retry-6xsr5dks.js} +33 -33
  61. package/dist/chunks/{voice-cy3cg06b.js → model-retry-6xymw6hf.js} +17 -17
  62. package/dist/chunks/{voice-9cvx9cd3.js → model-retry-73wqhfdm.js} +9 -9
  63. package/dist/chunks/{voice-775gj3j1.js → model-retry-775gj3j1.js} +2 -2
  64. package/dist/chunks/{voice-7bmhse3q.js → model-retry-7bmhse3q.js} +1 -1
  65. package/dist/chunks/{voice-bmr56wjg.js → model-retry-7cx595n2.js} +9 -9
  66. package/dist/chunks/{voice-0jwsre1p.js → model-retry-7dqw4kz8.js} +5 -5
  67. package/dist/chunks/{voice-7wfv1tbf.js → model-retry-7etyqpkv.js} +7 -7
  68. package/dist/chunks/{voice-m0xs32yr.js → model-retry-7fccas0j.js} +36 -35
  69. package/dist/chunks/{voice-vpm8vpz0.js → model-retry-7jdsj2a9.js} +3 -3
  70. package/dist/chunks/{voice-6k23gnk2.js → model-retry-7kw0mv8e.js} +29 -29
  71. package/dist/chunks/{voice-55m81wnp.js → model-retry-7pg7e456.js} +12 -12
  72. package/dist/chunks/{voice-y32fbaee.js → model-retry-7sp0jpsz.js} +9 -9
  73. package/dist/chunks/{voice-a20pjse5.js → model-retry-7v6vae4w.js} +3 -3
  74. package/dist/chunks/{voice-84txncab.js → model-retry-84txncab.js} +1 -1
  75. package/dist/chunks/{voice-y3vys761.js → model-retry-87pge11c.js} +60 -60
  76. package/dist/chunks/{voice-166kng33.js → model-retry-892mrmp0.js} +8 -8
  77. package/dist/chunks/{voice-gsbrh5b6.js → model-retry-8h4b0cs1.js} +22 -22
  78. package/dist/chunks/{voice-8m6m0r52.js → model-retry-8m6m0r52.js} +1 -1
  79. package/dist/chunks/model-retry-8mywswrd.js +86 -0
  80. package/dist/chunks/{voice-0pdk8z67.js → model-retry-8npnpzra.js} +5 -5
  81. package/dist/chunks/{voice-46459d5e.js → model-retry-8yaq5rsp.js} +32 -34
  82. package/dist/chunks/{voice-adj2f2vn.js → model-retry-93x8jgcz.js} +36 -36
  83. package/dist/chunks/{voice-jm1jdg4g.js → model-retry-99wvww9h.js} +21 -21
  84. package/dist/chunks/{voice-ddsesdvm.js → model-retry-9amv0j2y.js} +17 -17
  85. package/dist/chunks/{voice-p37cw4rj.js → model-retry-9hn6k4tm.js} +8 -8
  86. package/dist/chunks/{voice-pcf1k9th.js → model-retry-9p4ckb4p.js} +6 -6
  87. package/dist/chunks/{voice-jpt0ksjm.js → model-retry-9pf7je19.js} +3 -3
  88. package/dist/chunks/model-retry-9yd845wg.js +517 -0
  89. package/dist/chunks/model-retry-9zdhvgqs.js +18 -0
  90. package/dist/chunks/{voice-xr64f026.js → model-retry-a1hr7aq8.js} +28 -29
  91. package/dist/chunks/{voice-8btm942h.js → model-retry-a5mx5mz2.js} +2 -2
  92. package/dist/chunks/{voice-15rr0twx.js → model-retry-an6q6vkd.js} +28 -28
  93. package/dist/chunks/{voice-t6vsspdg.js → model-retry-b27vhd2z.js} +7 -7
  94. package/dist/chunks/{voice-zf1d6pfw.js → model-retry-b2zbab51.js} +9 -9
  95. package/dist/chunks/{voice-fan8xm03.js → model-retry-b4ytdsdb.js} +11 -11
  96. package/dist/chunks/{voice-ktg7dnk2.js → model-retry-b724djfs.js} +23 -23
  97. package/dist/chunks/{voice-zygw1fg1.js → model-retry-bhey597w.js} +57 -42
  98. package/dist/chunks/{voice-t6p333e3.js → model-retry-bhk1rbmp.js} +30 -30
  99. package/dist/chunks/{voice-1ffvrpkg.js → model-retry-bjx1sjef.js} +6 -6
  100. package/dist/chunks/{voice-kj9vwc9j.js → model-retry-bkb01ez0.js} +41 -41
  101. package/dist/chunks/{voice-x4p01p4y.js → model-retry-bx29z6jj.js} +20 -20
  102. package/dist/chunks/{voice-g686f6pq.js → model-retry-bxqk5pf5.js} +9 -9
  103. package/dist/chunks/{voice-bzeyqsqd.js → model-retry-bzeyqsqd.js} +1 -1
  104. package/dist/chunks/{voice-c1fqxshp.js → model-retry-c1fqxshp.js} +3 -3
  105. package/dist/chunks/{voice-9at0pwnx.js → model-retry-c3z27sd6.js} +9 -9
  106. package/dist/chunks/{voice-jz94ppxa.js → model-retry-c4zg4w5q.js} +17 -17
  107. package/dist/chunks/{voice-3yvt2eyd.js → model-retry-c77dabg0.js} +13 -13
  108. package/dist/chunks/{voice-3px9zfj5.js → model-retry-cbrfz1mf.js} +29 -29
  109. package/dist/chunks/{voice-zxc5z6hb.js → model-retry-cccr210v.js} +35 -35
  110. package/dist/chunks/{voice-asgfpy10.js → model-retry-cm7k2cvd.js} +11 -11
  111. package/dist/chunks/{voice-a4rkzzpg.js → model-retry-cnn1wj5a.js} +24 -24
  112. package/dist/chunks/{voice-q8xm0c2j.js → model-retry-cv3t9aez.js} +9 -9
  113. package/dist/chunks/{voice-t55rwbc2.js → model-retry-dkpq1bsc.js} +18 -18
  114. package/dist/chunks/{voice-xybefm6f.js → model-retry-dvwsp6mb.js} +17 -13
  115. package/dist/chunks/{voice-w1zgsyjh.js → model-retry-dxqvx2bd.js} +28 -28
  116. package/dist/chunks/{voice-zc7as1na.js → model-retry-dxt0ht33.js} +24 -24
  117. package/dist/chunks/{voice-wfqe50e8.js → model-retry-e3jwh7ys.js} +4 -4
  118. package/dist/chunks/{voice-5qd3pb7m.js → model-retry-e3qxr5gk.js} +2 -2
  119. package/dist/chunks/{voice-kw7ww2k8.js → model-retry-e4m4ah41.js} +46 -46
  120. package/dist/chunks/{voice-egpmcp8a.js → model-retry-eaz4frst.js} +11 -11
  121. package/dist/chunks/{voice-8sc2nzy6.js → model-retry-ebs8qv75.js} +10 -10
  122. package/dist/chunks/{voice-80kf5cft.js → model-retry-eefqbebw.js} +23 -23
  123. package/dist/chunks/{voice-eej6y6fw.js → model-retry-eej6y6fw.js} +2 -2
  124. package/dist/chunks/{voice-g9mhys8g.js → model-retry-ef28kdsf.js} +11 -11
  125. package/dist/chunks/{voice-ef5x83kb.js → model-retry-ef5x83kb.js} +1 -1
  126. package/dist/chunks/{voice-a7t9gw66.js → model-retry-ekp1j1b5.js} +23 -23
  127. package/dist/chunks/{voice-zcrspsvn.js → model-retry-embw8kgh.js} +4 -4
  128. package/dist/chunks/{voice-fe7mjage.js → model-retry-enbzs98c.js} +15 -15
  129. package/dist/chunks/{voice-1k9hs225.js → model-retry-f1kd18ve.js} +4 -4
  130. package/dist/chunks/{voice-bc25zkma.js → model-retry-f5rb7yq3.js} +30 -30
  131. package/dist/chunks/{voice-p38fre57.js → model-retry-f82ss59t.js} +3 -3
  132. package/dist/chunks/{voice-3xsm4mrf.js → model-retry-fc3q91nw.js} +41 -41
  133. package/dist/chunks/{voice-fcy631f0.js → model-retry-fcy631f0.js} +1 -1
  134. package/dist/chunks/{voice-0jq9fyba.js → model-retry-fdms3n6w.js} +9 -9
  135. package/dist/chunks/{voice-jnsvnygx.js → model-retry-ffptefkn.js} +48 -48
  136. package/dist/chunks/{voice-4bnzbgn8.js → model-retry-fqqv62af.js} +21 -19
  137. package/dist/chunks/{voice-1bq62cry.js → model-retry-fqyqba4e.js} +14 -14
  138. package/dist/chunks/{voice-m0k7y5tq.js → model-retry-frsszzbj.js} +11 -11
  139. package/dist/chunks/{voice-cwa6csj7.js → model-retry-ft3hqk2c.js} +9 -9
  140. package/dist/chunks/{voice-1ffqw314.js → model-retry-ftfbzs9m.js} +21 -21
  141. package/dist/chunks/{voice-7mcgqaeh.js → model-retry-fw7x2wjw.js} +9 -9
  142. package/dist/chunks/{voice-a47cqtsz.js → model-retry-fwgra7yh.js} +8 -8
  143. package/dist/chunks/{voice-ay7h7ryq.js → model-retry-fx6hsjqx.js} +22 -22
  144. package/dist/chunks/{voice-0tgjh03h.js → model-retry-fxjva6qe.js} +3 -3
  145. package/dist/chunks/{voice-dqpnj7av.js → model-retry-g36mkr7n.js} +29 -29
  146. package/dist/chunks/{voice-fgn3zs1a.js → model-retry-gchapswt.js} +11 -11
  147. package/dist/chunks/{voice-3yfbedjd.js → model-retry-gcsxsjs6.js} +18 -18
  148. package/dist/chunks/{voice-gd4qta3r.js → model-retry-gd4qta3r.js} +1 -1
  149. package/dist/chunks/{voice-d1r5081s.js → model-retry-gebtr55s.js} +5 -5
  150. package/dist/chunks/{voice-xgyd6awb.js → model-retry-grv8yzns.js} +32 -32
  151. package/dist/chunks/{voice-3vnym5x3.js → model-retry-gx4mz6q7.js} +54 -54
  152. package/dist/chunks/{voice-w645cvh3.js → model-retry-gxfsy275.js} +1 -1
  153. package/dist/chunks/{voice-n52gxnde.js → model-retry-gysb7t93.js} +91 -94
  154. package/dist/chunks/{voice-z5wvy2zw.js → model-retry-h6n0e19c.js} +107 -107
  155. package/dist/chunks/{voice-h6vf3j39.js → model-retry-h6vf3j39.js} +1 -1
  156. package/dist/chunks/{voice-81rrwt6s.js → model-retry-h896pcm5.js} +6 -6
  157. package/dist/chunks/{voice-v5130x7e.js → model-retry-hadpnrkv.js} +27 -27
  158. package/dist/chunks/{voice-q303yhz1.js → model-retry-hc9hnsc9.js} +12 -12
  159. package/dist/chunks/{voice-y8m1m766.js → model-retry-heq5p5e1.js} +4 -4
  160. package/dist/chunks/{voice-hgz4x7wa.js → model-retry-hgz4x7wa.js} +1 -1
  161. package/dist/chunks/{voice-bekrfzrn.js → model-retry-hj389172.js} +1 -1
  162. package/dist/chunks/{voice-rxwwr6rj.js → model-retry-j8jw8bvb.js} +27 -27
  163. package/dist/chunks/{voice-yzh5znq2.js → model-retry-jcen6etv.js} +31 -31
  164. package/dist/chunks/{voice-bxaezv13.js → model-retry-jcjcjx0t.js} +12 -12
  165. package/dist/chunks/{voice-fy8g54x2.js → model-retry-jq37yr04.js} +9 -9
  166. package/dist/chunks/{voice-atsf9aqe.js → model-retry-jv6mm5r1.js} +11 -11
  167. package/dist/chunks/{voice-6dh1jvz0.js → model-retry-k2gfd0vj.js} +13 -13
  168. package/dist/chunks/{voice-h81g9n7s.js → model-retry-k6jeefta.js} +3 -3
  169. package/dist/chunks/{voice-hq3c8me3.js → model-retry-khmqacep.js} +4 -4
  170. package/dist/chunks/{voice-wh6zw745.js → model-retry-kjdm35cs.js} +5 -5
  171. package/dist/chunks/{voice-9ca4c2n8.js → model-retry-km5jseh3.js} +29 -27
  172. package/dist/chunks/{voice-5307c9aq.js → model-retry-ktbcyka7.js} +4 -4
  173. package/dist/chunks/{voice-pzta8gqa.js → model-retry-kvpdra3r.js} +27 -27
  174. package/dist/chunks/{voice-kwb1v3vj.js → model-retry-kwb1v3vj.js} +1 -1
  175. package/dist/chunks/{voice-m37876mr.js → model-retry-kzqw00rs.js} +16 -16
  176. package/dist/chunks/{voice-0stcbem0.js → model-retry-m0z9j2xs.js} +37 -37
  177. package/dist/chunks/{voice-m552b91p.js → model-retry-m3vs2jhj.js} +16 -16
  178. package/dist/chunks/{voice-7zjhs1nm.js → model-retry-m4gqpe3z.js} +17 -17
  179. package/dist/chunks/{voice-8k16pbxa.js → model-retry-m6pj9s11.js} +5 -5
  180. package/dist/chunks/{voice-htn8a1qv.js → model-retry-m9c6r0nn.js} +13 -13
  181. package/dist/chunks/{voice-m9w0rfyh.js → model-retry-m9w0rfyh.js} +1 -1
  182. package/dist/chunks/{voice-maspj1v3.js → model-retry-maspj1v3.js} +1 -1
  183. package/dist/chunks/{voice-84pnh87n.js → model-retry-mcgfs8g2.js} +11 -11
  184. package/dist/chunks/{voice-7gksfrk6.js → model-retry-mhgn79e1.js} +48 -48
  185. package/dist/chunks/{voice-ydyb6qzy.js → model-retry-mq044fh7.js} +13 -13
  186. package/dist/chunks/{voice-bhkm1g5m.js → model-retry-n6sdcjf7.js} +29 -29
  187. package/dist/chunks/{voice-ps2j6rx6.js → model-retry-n8v5cbt0.js} +20 -20
  188. package/dist/chunks/{voice-rjmsaa2q.js → model-retry-nentvqe9.js} +24 -24
  189. package/dist/chunks/{voice-r2z489rp.js → model-retry-nma959mg.js} +3 -3
  190. package/dist/chunks/{voice-wt0mmhah.js → model-retry-npr0wz9t.js} +6 -6
  191. package/dist/chunks/{voice-h978070j.js → model-retry-nz56sr1f.js} +19 -22
  192. package/dist/chunks/{voice-3pr9cre2.js → model-retry-paykg90t.js} +32 -32
  193. package/dist/chunks/{voice-xw8v86tr.js → model-retry-pfzgmgqq.js} +30 -30
  194. package/dist/chunks/{voice-pjvnvgmy.js → model-retry-pjvnvgmy.js} +1 -1
  195. package/dist/chunks/{voice-pknna89w.js → model-retry-pknna89w.js} +1 -1
  196. package/dist/chunks/{voice-dbx1c2tg.js → model-retry-pm9cq2zg.js} +35 -35
  197. package/dist/chunks/{voice-skrw0pay.js → model-retry-pp4zh5st.js} +181 -181
  198. package/dist/chunks/{voice-vy68hshx.js → model-retry-pq9chy9c.js} +10 -10
  199. package/dist/chunks/{voice-1c85gy23.js → model-retry-prx1gbh0.js} +5 -5
  200. package/dist/chunks/{voice-fcy1mh1a.js → model-retry-q7gr6qfd.js} +32 -32
  201. package/dist/chunks/{voice-xn17cbv3.js → model-retry-q8wdfhzq.js} +12 -12
  202. package/dist/chunks/model-retry-qj8x2vxm.js +130 -0
  203. package/dist/chunks/{voice-70z88rjf.js → model-retry-qjch4pc3.js} +15 -15
  204. package/dist/chunks/{voice-qnc92qwc.js → model-retry-qnc92qwc.js} +1 -1
  205. package/dist/chunks/{voice-gj71zhbs.js → model-retry-qne3fa44.js} +5 -5
  206. package/dist/chunks/{voice-gchk0vkb.js → model-retry-qq7kxqk9.js} +48 -48
  207. package/dist/chunks/{voice-qsdy395h.js → model-retry-qsdy395h.js} +1 -1
  208. package/dist/chunks/{voice-wez1ajrw.js → model-retry-qt88z79s.js} +7 -7
  209. package/dist/chunks/{voice-2560qahv.js → model-retry-qv0gwb50.js} +25 -25
  210. package/dist/chunks/{voice-jgpthgfz.js → model-retry-qwemz3ha.js} +21 -21
  211. package/dist/chunks/{voice-4ymz7vr5.js → model-retry-r0ena7ce.js} +23 -23
  212. package/dist/chunks/{voice-rdw6cm16.js → model-retry-rdw6cm16.js} +1 -1
  213. package/dist/chunks/{voice-72sk51vb.js → model-retry-re80xzqk.js} +31 -31
  214. package/dist/chunks/{voice-rert0e01.js → model-retry-rert0e01.js} +2 -2
  215. package/dist/chunks/{voice-3gwj7c3a.js → model-retry-rf6pfzwp.js} +1 -1
  216. package/dist/chunks/{voice-s8d7rejh.js → model-retry-rhjbct0v.js} +4 -4
  217. package/dist/chunks/{voice-rj3eygr5.js → model-retry-rj3eygr5.js} +2 -2
  218. package/dist/chunks/{voice-0n7hx3s8.js → model-retry-rkmhvsr4.js} +30 -37
  219. package/dist/chunks/{voice-hn4xv43g.js → model-retry-rr55ymyq.js} +24 -24
  220. package/dist/chunks/{voice-1h2d0ke7.js → model-retry-rv11vn85.js} +11 -11
  221. package/dist/chunks/{voice-bft59c27.js → model-retry-ry6831an.js} +9 -9
  222. package/dist/chunks/{voice-x63dfm1w.js → model-retry-s0s52qkt.js} +15 -15
  223. package/dist/chunks/{voice-dxj1qz4d.js → model-retry-s3j5qb0t.js} +18 -18
  224. package/dist/chunks/{voice-291dyprt.js → model-retry-s56kzkqb.js} +24 -24
  225. package/dist/chunks/{voice-sa8ekw3f.js → model-retry-sa8ekw3f.js} +2 -2
  226. package/dist/chunks/{voice-yfqqfr07.js → model-retry-scbxxt86.js} +20 -20
  227. package/dist/chunks/{voice-7czk49a2.js → model-retry-sh9986p4.js} +15 -15
  228. package/dist/chunks/{voice-j8v25mck.js → model-retry-snxa7hz3.js} +5 -5
  229. package/dist/chunks/{voice-syv4x271.js → model-retry-syv4x271.js} +1 -1
  230. package/dist/chunks/{voice-dp558nrd.js → model-retry-sz6fjq3m.js} +5 -5
  231. package/dist/chunks/{voice-6h73966b.js → model-retry-t01qgdv4.js} +17 -17
  232. package/dist/chunks/{voice-9cb08eze.js → model-retry-t39p8j64.js} +13 -13
  233. package/dist/chunks/{voice-tazgh4e4.js → model-retry-tazgh4e4.js} +1 -1
  234. package/dist/chunks/{voice-tcezcvh9.js → model-retry-tcezcvh9.js} +1 -1
  235. package/dist/chunks/{voice-be82r499.js → model-retry-tcpq0y9r.js} +12 -12
  236. package/dist/chunks/{voice-tdstcens.js → model-retry-tdstcens.js} +1 -1
  237. package/dist/chunks/{voice-1nkzkq3r.js → model-retry-tebr7jg9.js} +12 -12
  238. package/dist/chunks/{voice-tm0kqsz3.js → model-retry-tm0kqsz3.js} +1 -1
  239. package/dist/chunks/{voice-07hyrh53.js → model-retry-tx0gtb9m.js} +9 -9
  240. package/dist/chunks/{voice-tyytaxap.js → model-retry-tyytaxap.js} +1 -1
  241. package/dist/chunks/{voice-9qee0jk3.js → model-retry-tz35mf6x.js} +8 -8
  242. package/dist/chunks/{voice-jc4mxe0h.js → model-retry-tz70ab5q.js} +28 -28
  243. package/dist/chunks/{voice-hnqavcr7.js → model-retry-v15gsnts.js} +50 -50
  244. package/dist/chunks/{voice-46aes8ch.js → model-retry-v7024ht3.js} +19 -22
  245. package/dist/chunks/{voice-v7p4zvkq.js → model-retry-v7p4zvkq.js} +2 -2
  246. package/dist/chunks/{voice-zy43x3f1.js → model-retry-v7z2bvyd.js} +4 -4
  247. package/dist/chunks/{voice-e0yy9ryt.js → model-retry-v8chhsy3.js} +14 -14
  248. package/dist/chunks/{voice-y8ng1a9s.js → model-retry-v91zw3m9.js} +14 -14
  249. package/dist/chunks/{voice-c62gkb3b.js → model-retry-vdetfpsp.js} +28 -28
  250. package/dist/chunks/{voice-veqvce7d.js → model-retry-veqvce7d.js} +1 -1
  251. package/dist/chunks/{voice-18zsf568.js → model-retry-vjh35t9b.js} +13 -13
  252. package/dist/chunks/{voice-10q04s9m.js → model-retry-vjtn814f.js} +19 -19
  253. package/dist/chunks/{voice-y6mhz57t.js → model-retry-vkfdnwpx.js} +4 -4
  254. package/dist/chunks/{voice-vzs5sf6e.js → model-retry-vzs5sf6e.js} +1 -1
  255. package/dist/chunks/{voice-w3wsvvr9.js → model-retry-w3wsvvr9.js} +1 -1
  256. package/dist/chunks/{voice-83vj9qt0.js → model-retry-w3x15rym.js} +24 -24
  257. package/dist/chunks/{voice-pvr736zf.js → model-retry-wcgsvnj5.js} +8 -8
  258. package/dist/chunks/{voice-wd87259q.js → model-retry-wd87259q.js} +1 -1
  259. package/dist/chunks/{voice-gj46k6vd.js → model-retry-wj5d0sg5.js} +27 -27
  260. package/dist/chunks/{voice-dtmw6jvf.js → model-retry-wksg1me0.js} +23 -23
  261. package/dist/chunks/{voice-2rfqgm69.js → model-retry-wn3g4ypj.js} +28 -28
  262. package/dist/chunks/{voice-zd055dky.js → model-retry-wn671ba5.js} +78 -81
  263. package/dist/chunks/{voice-t6twestg.js → model-retry-wp3yb7k0.js} +11 -11
  264. package/dist/chunks/{voice-0d60ahdf.js → model-retry-wxrr62q2.js} +11 -11
  265. package/dist/chunks/{voice-e9s8nezm.js → model-retry-xagp7a1s.js} +18 -18
  266. package/dist/chunks/{voice-d10c0ppg.js → model-retry-xe38j9wy.js} +29 -30
  267. package/dist/chunks/{voice-401wxw87.js → model-retry-xhhxc1wd.js} +3 -3
  268. package/dist/chunks/{voice-rzk8bj82.js → model-retry-xjt2m7da.js} +6 -6
  269. package/dist/chunks/{voice-y1fvbwt7.js → model-retry-y1fvbwt7.js} +1 -1
  270. package/dist/chunks/{voice-1a5chre8.js → model-retry-y3qxx51z.js} +14 -14
  271. package/dist/chunks/{voice-y71avatq.js → model-retry-y71avatq.js} +1 -1
  272. package/dist/chunks/{voice-sz1e9eqn.js → model-retry-ydma693n.js} +19 -19
  273. package/dist/chunks/{voice-wcmg8ka2.js → model-retry-yg89wztc.js} +11 -11
  274. package/dist/chunks/{voice-99xay3p1.js → model-retry-yvvvp4gn.js} +8 -8
  275. package/dist/chunks/{voice-qwfhs2mm.js → model-retry-yxwmwsaj.js} +21 -21
  276. package/dist/chunks/{voice-2w7xd5ef.js → model-retry-yxx1qbg8.js} +6 -6
  277. package/dist/chunks/{voice-z0bkrqjs.js → model-retry-z0bkrqjs.js} +1 -1
  278. package/dist/chunks/{voice-z18fegx4.js → model-retry-z18fegx4.js} +1 -1
  279. package/dist/chunks/{voice-ax36eyar.js → model-retry-z2qvtray.js} +6 -6
  280. package/dist/chunks/{voice-wmg4dxvw.js → model-retry-z3ammv4w.js} +17 -17
  281. package/dist/chunks/{voice-x0m4hwhr.js → model-retry-zdqemt2t.js} +13 -13
  282. package/dist/chunks/{voice-wch0f9f3.js → model-retry-zkkxzzm7.js} +18 -18
  283. package/dist/chunks/{voice-vzbxwz1d.js → model-retry-zqma82cw.js} +11 -11
  284. package/dist/chunks/{voice-zr2ceqn5.js → model-retry-zr2ceqn5.js} +1 -1
  285. package/dist/chunks/{voice-hen2h1me.js → model-retry-zsg3hbgq.js} +1 -1
  286. package/dist/chunks/model-retry-zw8e9rvj.js +257 -0
  287. package/dist/chunks/{voice-zxq2ej10.js → model-retry-zxq2ej10.js} +1 -1
  288. package/dist/codemode/catalog.js +1 -1
  289. package/dist/codemode/instructions.js +11 -11
  290. package/dist/codemode/tool.js +3 -3
  291. package/dist/codemode/web.js +1 -1
  292. package/dist/command.js +83 -83
  293. package/dist/config/discovery.js +84 -84
  294. package/dist/config/markdown.js +1 -1
  295. package/dist/config/normalize.js +101 -101
  296. package/dist/config/plugin/agent.js +116 -116
  297. package/dist/config/plugin/command.js +206 -206
  298. package/dist/config/plugin/compaction.js +155 -155
  299. package/dist/config/plugin/compatibility.js +135 -135
  300. package/dist/config/plugin/entry-observer.js +1 -1
  301. package/dist/config/plugin/formatter.js +117 -117
  302. package/dist/config/plugin/image.js +116 -116
  303. package/dist/config/plugin/instruction.js +116 -116
  304. package/dist/config/plugin/location-watcher.js +116 -116
  305. package/dist/config/plugin/mcp.js +123 -123
  306. package/dist/config/plugin/policy.js +117 -117
  307. package/dist/config/plugin/provider.js +116 -116
  308. package/dist/config/plugin/reference.js +118 -118
  309. package/dist/config/plugin/shell.js +118 -118
  310. package/dist/config/plugin/skill-file.js +104 -104
  311. package/dist/config/plugin/skill-scan.js +1 -1
  312. package/dist/config/plugin/skill.js +138 -138
  313. package/dist/config/plugin/snapshot.js +116 -116
  314. package/dist/config/plugin/source.js +119 -119
  315. package/dist/config/plugin/tool-output.js +117 -117
  316. package/dist/config/plugin/websearch.js +117 -117
  317. package/dist/config/plugin/worktree.js +118 -118
  318. package/dist/config/variable.js +1 -1
  319. package/dist/config/watch.js +1 -1
  320. package/dist/config.js +119 -119
  321. package/dist/credential/sql.js +2 -2
  322. package/dist/credential.js +85 -85
  323. package/dist/database/database.js +72 -72
  324. package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
  325. package/dist/database/drizzle/effect-sqlite/index.js +12 -12
  326. package/dist/database/drizzle/effect-sqlite/session.js +11 -11
  327. package/dist/database/drizzle/index.js +13 -13
  328. package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
  329. package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
  330. package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
  331. package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
  332. package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
  333. package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
  334. package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
  335. package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
  336. package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
  337. package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
  338. package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
  339. package/dist/database/drizzle.js +14 -14
  340. package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
  341. package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
  342. package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
  343. package/dist/database/migration/20260225215848_workspace.js +1 -1
  344. package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
  345. package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
  346. package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
  347. package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
  348. package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
  349. package/dist/database/migration/20260323234822_events.js +1 -1
  350. package/dist/database/migration/20260410174513_workspace-name.js +1 -1
  351. package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
  352. package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
  353. package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
  354. package/dist/database/migration/20260428004200_add_session_path.js +1 -1
  355. package/dist/database/migration/20260501142318_next_venus.js +1 -1
  356. package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
  357. package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
  358. package/dist/database/migration/20260510033149_session_usage.js +1 -1
  359. package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
  360. package/dist/database/migration/20260511173437_session-metadata.js +1 -1
  361. package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
  362. package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
  363. package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
  364. package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
  365. package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
  366. package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
  367. package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
  368. package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
  369. package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
  370. package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
  371. package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
  372. package/dist/database/migration/20260611035744_credential.js +1 -1
  373. package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
  374. package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
  375. package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
  376. package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
  377. package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
  378. package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
  379. package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
  380. package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
  381. package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
  382. package/dist/database/migration/20260812181746_session_inbox.js +1 -1
  383. package/dist/database/migration/20260812213948_worktree.js +1 -1
  384. package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
  385. package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
  386. package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
  387. package/dist/database/migration/20260923013825_project_time_active.js +1 -1
  388. package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
  389. package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
  390. package/dist/database/migration.gen.js +51 -51
  391. package/dist/database/migration.js +53 -53
  392. package/dist/database/path.js +2 -2
  393. package/dist/database/schema.gen.js +1 -1
  394. package/dist/database/schema.sql.js +1 -1
  395. package/dist/database/sqlite.bun.js +1 -1
  396. package/dist/database/sqlite.js +1 -1
  397. package/dist/database/sqlite.node.js +1 -1
  398. package/dist/database/sqlite.workerd.js +1 -1
  399. package/dist/database/v1-migration.bun.js +86 -85
  400. package/dist/database/v1-migration.js +1 -1
  401. package/dist/effect/app-node-builder.js +370 -370
  402. package/dist/effect/app-node-platform.js +2 -2
  403. package/dist/effect/keyed-mutex.js +1 -1
  404. package/dist/effect/websocket-constructor.js +1 -1
  405. package/dist/environment/driver.js +1 -1
  406. package/dist/environment/environment.js +95 -95
  407. package/dist/environment/exec-defaults.js +2 -2
  408. package/dist/environment/files.js +1 -1
  409. package/dist/environment/index.js +97 -97
  410. package/dist/environment/local.js +2 -2
  411. package/dist/environment/memory.js +2 -2
  412. package/dist/environment/unavailable.js +3 -3
  413. package/dist/event/sql.js +1 -1
  414. package/dist/event-logger.js +76 -76
  415. package/dist/file-access.js +106 -106
  416. package/dist/file-mutation.js +96 -96
  417. package/dist/file-retention.js +1 -1
  418. package/dist/filesystem/fff.bun.js +2 -2
  419. package/dist/filesystem/fff.js +1 -1
  420. package/dist/filesystem/fff.node.js +2 -2
  421. package/dist/filesystem/fff.workerd.js +2 -2
  422. package/dist/filesystem/location-watcher-policy.js +6 -6
  423. package/dist/filesystem/location-watcher.js +219 -219
  424. package/dist/filesystem/protected.js +1 -1
  425. package/dist/filesystem/search.js +105 -105
  426. package/dist/filesystem/watcher-binding.js +3 -3
  427. package/dist/filesystem/watcher.js +13 -13
  428. package/dist/filesystem.js +104 -104
  429. package/dist/form.js +82 -82
  430. package/dist/formatter/builtins.js +4 -4
  431. package/dist/formatter.js +89 -89
  432. package/dist/generate.js +106 -106
  433. package/dist/git.js +10 -10
  434. package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
  435. package/dist/github-copilot/chat/get-response-metadata.js +1 -1
  436. package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
  437. package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
  438. package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
  439. package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
  440. package/dist/github-copilot/copilot-provider.js +17 -17
  441. package/dist/github-copilot/models.js +101 -101
  442. package/dist/github-copilot/openai-compatible-error.js +1 -1
  443. package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
  444. package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
  445. package/dist/github-copilot/responses/openai-error.js +1 -1
  446. package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
  447. package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
  448. package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
  449. package/dist/github-copilot/responses/tool/file-search.js +1 -1
  450. package/dist/github-copilot/responses/tool/image-generation.js +1 -1
  451. package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
  452. package/dist/github-copilot/responses/tool/web-search.js +1 -1
  453. package/dist/image/photon.js +2 -2
  454. package/dist/image.js +6 -6
  455. package/dist/instance/service.js +5 -5
  456. package/dist/instance.js +361 -361
  457. package/dist/instruction-discovery.js +86 -86
  458. package/dist/instructions/builtins.js +89 -89
  459. package/dist/instructions/index.js +3 -3
  460. package/dist/integration/connection.js +3 -3
  461. package/dist/integration.js +91 -91
  462. package/dist/job.js +80 -80
  463. package/dist/kv/sql.js +2 -2
  464. package/dist/kv.js +75 -75
  465. package/dist/location-activity.js +136 -136
  466. package/dist/location-lifecycle.js +109 -109
  467. package/dist/location-service-map.js +88 -88
  468. package/dist/location-services.js +358 -358
  469. package/dist/location.js +91 -91
  470. package/dist/managed-policy.js +6 -6
  471. package/dist/mcp/client.js +93 -93
  472. package/dist/mcp/index.js +111 -111
  473. package/dist/mcp/instructions.js +131 -131
  474. package/dist/mcp/oauth.js +80 -80
  475. package/dist/mcp/stdio.js +92 -92
  476. package/dist/mime.js +1 -1
  477. package/dist/modal/models.js +101 -101
  478. package/dist/model-resolver.js +100 -100
  479. package/dist/model-retry.js +1 -1
  480. package/dist/model.js +98 -98
  481. package/dist/models-dev.js +109 -109
  482. package/dist/oauth/page.js +1 -1
  483. package/dist/permission/saved.js +84 -84
  484. package/dist/permission/sql.js +5 -5
  485. package/dist/permission.js +113 -113
  486. package/dist/persistent-pty/binary.bun.js +1 -1
  487. package/dist/persistent-pty/daemon.js +1 -1
  488. package/dist/persistent-pty/index.js +90 -90
  489. package/dist/persistent-pty/pty-binding.js +1 -1
  490. package/dist/persistent-pty.js +77 -77
  491. package/dist/plugin/agent.js +76 -76
  492. package/dist/plugin/command.js +102 -102
  493. package/dist/plugin/hooks.js +5 -5
  494. package/dist/plugin/host.js +212 -212
  495. package/dist/plugin/identity.js +3 -3
  496. package/dist/plugin/instance.js +5 -5
  497. package/dist/plugin/internal.js +332 -332
  498. package/dist/plugin/mcp-codemode-defaults.js +3 -3
  499. package/dist/plugin/models-dev.js +98 -98
  500. package/dist/plugin/module.js +117 -117
  501. package/dist/plugin/optimize.js +2 -2
  502. package/dist/plugin/plan.js +104 -104
  503. package/dist/plugin/promise.js +1 -1
  504. package/dist/plugin/provider/amazon-bedrock.js +92 -92
  505. package/dist/plugin/provider/azure.js +116 -116
  506. package/dist/plugin/provider/cerebras.js +1 -1
  507. package/dist/plugin/provider/chatgpt.js +116 -116
  508. package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
  509. package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
  510. package/dist/plugin/provider/cohere.js +2 -2
  511. package/dist/plugin/provider/configured.js +112 -112
  512. package/dist/plugin/provider/databricks.js +1 -1
  513. package/dist/plugin/provider/digitalocean.js +95 -95
  514. package/dist/plugin/provider/dynamic.js +2 -2
  515. package/dist/plugin/provider/factory.js +1 -1
  516. package/dist/plugin/provider/github-copilot.js +97 -97
  517. package/dist/plugin/provider/gitlab.js +95 -95
  518. package/dist/plugin/provider/google-vertex.js +113 -113
  519. package/dist/plugin/provider/kilo.js +1 -1
  520. package/dist/plugin/provider/llmgateway.js +80 -80
  521. package/dist/plugin/provider/lmstudio.js +125 -125
  522. package/dist/plugin/provider/local.js +122 -122
  523. package/dist/plugin/provider/modal.js +94 -94
  524. package/dist/plugin/provider/neon.js +1 -1
  525. package/dist/plugin/provider/nvidia.js +1 -1
  526. package/dist/plugin/provider/ollama.js +123 -123
  527. package/dist/plugin/provider/openai.js +116 -116
  528. package/dist/plugin/provider/opencode.js +100 -100
  529. package/dist/plugin/provider/openrouter.js +93 -93
  530. package/dist/plugin/provider/perplexity.js +2 -2
  531. package/dist/plugin/provider/poe.js +81 -81
  532. package/dist/plugin/provider/prompt-cache-key.js +1 -1
  533. package/dist/plugin/provider/sap-ai-core.js +93 -93
  534. package/dist/plugin/provider/sdk-factory.js +1 -1
  535. package/dist/plugin/provider/snowflake-cortex.js +115 -115
  536. package/dist/plugin/provider/vercel.js +92 -92
  537. package/dist/plugin/provider/vllm.js +125 -125
  538. package/dist/plugin/provider/xai.js +93 -93
  539. package/dist/plugin/provider/zenmux.js +1 -1
  540. package/dist/plugin/provider.js +168 -168
  541. package/dist/plugin/sdk.js +76 -76
  542. package/dist/plugin/service.js +3 -3
  543. package/dist/plugin/skill.js +134 -134
  544. package/dist/plugin/source-directory.js +1 -1
  545. package/dist/plugin/supervisor.js +347 -347
  546. package/dist/plugin/tool-input-repair.js +4 -4
  547. package/dist/plugin/update.js +6 -6
  548. package/dist/plugin/vcs/git.js +88 -88
  549. package/dist/plugin/vcs/hg.js +88 -88
  550. package/dist/plugin/verbosity.js +95 -95
  551. package/dist/plugin/warming.js +114 -114
  552. package/dist/plugin/websearch/exa.js +7 -7
  553. package/dist/plugin/websearch/firecrawl.js +8 -8
  554. package/dist/plugin/websearch/index.js +9 -9
  555. package/dist/plugin/websearch/mcp.js +4 -4
  556. package/dist/plugin/websearch/parallel.js +8 -8
  557. package/dist/plugin/websearch/tavily.js +6 -6
  558. package/dist/plugin/websearch/tinyfish.js +8 -8
  559. package/dist/plugin.js +223 -223
  560. package/dist/project/schema.js +8 -8
  561. package/dist/project/sql.js +4 -4
  562. package/dist/project.js +90 -90
  563. package/dist/provider.js +97 -97
  564. package/dist/pty/protocol.js +1 -1
  565. package/dist/pty/ticket.js +1 -1
  566. package/dist/pty.js +97 -97
  567. package/dist/reference/instructions.js +89 -89
  568. package/dist/reference.js +93 -93
  569. package/dist/repository-cache.js +83 -83
  570. package/dist/repository.js +1 -1
  571. package/dist/ripgrep/binary.js +2 -2
  572. package/dist/ripgrep.js +97 -97
  573. package/dist/rpc.js +88 -88
  574. package/dist/schema.js +1 -1
  575. package/dist/session/affinity.js +1 -1
  576. package/dist/session/command.js +76 -76
  577. package/dist/session/compaction.js +136 -136
  578. package/dist/session/context.js +155 -155
  579. package/dist/session/diff.js +90 -90
  580. package/dist/session/environment.js +5 -5
  581. package/dist/session/error.js +5 -5
  582. package/dist/session/event.js +1 -1
  583. package/dist/session/execution/restart.js +218 -218
  584. package/dist/session/execution.js +127 -127
  585. package/dist/session/generate.js +157 -157
  586. package/dist/session/history.js +21 -15
  587. package/dist/session/inbox.js +93 -88
  588. package/dist/session/info.js +3 -3
  589. package/dist/session/instruction-entry.js +81 -81
  590. package/dist/session/instruction-state.js +8 -8
  591. package/dist/session/instructions.js +99 -99
  592. package/dist/session/message-updater.js +4 -4
  593. package/dist/session/message.js +1 -1
  594. package/dist/session/model-request.js +122 -122
  595. package/dist/session/model-transport.js +9 -9
  596. package/dist/session/move.js +129 -129
  597. package/dist/session/projector.js +89 -86
  598. package/dist/session/prompt.js +107 -107
  599. package/dist/session/recent-text.js +14 -0
  600. package/dist/session/revert.js +96 -92
  601. package/dist/session/run-coordinator.js +3 -3
  602. package/dist/session/runner/index.js +3 -3
  603. package/dist/session/runner/llm.js +225 -225
  604. package/dist/session/runner/max-steps.js +1 -1
  605. package/dist/session/runner/model.js +100 -100
  606. package/dist/session/runner/publish-llm-event.js +115 -115
  607. package/dist/session/runner/retry.js +3 -3
  608. package/dist/session/runner/step.js +128 -128
  609. package/dist/session/runner/to-llm-message.js +14 -2
  610. package/dist/session/schema.js +5 -5
  611. package/dist/session/session.js +164 -164
  612. package/dist/session/shell.js +130 -130
  613. package/dist/session/skill.js +105 -105
  614. package/dist/session/sql.js +5 -5
  615. package/dist/session/stats.js +77 -77
  616. package/dist/session/store.js +89 -89
  617. package/dist/session/subagent-completion.js +1 -1
  618. package/dist/session/subagent-job.js +206 -206
  619. package/dist/session/system-prompt.js +3 -3
  620. package/dist/session/title.js +157 -157
  621. package/dist/session/to-session-error.js +113 -113
  622. package/dist/session/transfer.js +221 -226
  623. package/dist/session/usage.js +1 -1
  624. package/dist/session.js +210 -210
  625. package/dist/shell/parse.js +6 -6
  626. package/dist/shell/result.js +1 -1
  627. package/dist/shell/scan.js +1 -1
  628. package/dist/shell/select.js +13 -13
  629. package/dist/shell.js +132 -132
  630. package/dist/skill/discovery.js +6 -6
  631. package/dist/skill/instructions.js +109 -109
  632. package/dist/skill.js +114 -114
  633. package/dist/snapshot.js +95 -95
  634. package/dist/state.js +1 -1
  635. package/dist/tool/html-markdown.js +1 -1
  636. package/dist/tool/http-body.js +1 -1
  637. package/dist/tool/mcp.js +128 -128
  638. package/dist/tool/plugin/edit.js +122 -122
  639. package/dist/tool/plugin/file-diff.js +1 -1
  640. package/dist/tool/plugin/glob.js +126 -126
  641. package/dist/tool/plugin/grep.js +126 -126
  642. package/dist/tool/plugin/mcp-resource.js +119 -119
  643. package/dist/tool/plugin/opencode.js +111 -111
  644. package/dist/tool/plugin/patch.js +124 -124
  645. package/dist/tool/plugin/question.js +105 -105
  646. package/dist/tool/plugin/read.js +127 -127
  647. package/dist/tool/plugin/shell.js +211 -211
  648. package/dist/tool/plugin/skill.js +115 -115
  649. package/dist/tool/plugin/subagent.js +205 -205
  650. package/dist/tool/plugin/todo.js +138 -138
  651. package/dist/tool/plugin/webfetch.js +114 -114
  652. package/dist/tool/plugin/websearch.js +116 -116
  653. package/dist/tool/plugin/write.js +122 -122
  654. package/dist/tool/read-filesystem.js +102 -102
  655. package/dist/tool/runtime.js +1 -1
  656. package/dist/tool-output.js +7 -7
  657. package/dist/tool.js +14 -14
  658. package/dist/types/credential/sql.d.ts +0 -3
  659. package/dist/types/credential.d.ts +0 -3
  660. package/dist/types/instance.d.ts +1 -1
  661. package/dist/types/session/history.d.ts +35 -888
  662. package/dist/types/session/recent-text.d.ts +11 -0
  663. package/dist/types/session/runner/publish-llm-event.d.ts +1 -1
  664. package/dist/types/session/transfer.d.ts +5 -55
  665. package/dist/util/error-summary.js +1 -1
  666. package/dist/util/error.js +1 -1
  667. package/dist/util/git-executable.js +2 -2
  668. package/dist/util/iife.js +1 -1
  669. package/dist/util/lazy.js +1 -1
  670. package/dist/util/slug.js +1 -1
  671. package/dist/util/token.js +1 -1
  672. package/dist/util/which.js +1 -1
  673. package/dist/util/wildcard.js +1 -1
  674. package/dist/v1/config/agent.js +7 -7
  675. package/dist/v1/config/command.js +5 -5
  676. package/dist/v1/config/error.js +2 -2
  677. package/dist/v1/config/mcp.js +4 -4
  678. package/dist/v1/config/migrate.js +94 -94
  679. package/dist/v1/config/permission.js +7 -7
  680. package/dist/v1/config/plugin.js +3 -3
  681. package/dist/v1/config/provider-options.js +1 -1
  682. package/dist/v1/config/provider.js +4 -4
  683. package/dist/variant.js +93 -93
  684. package/dist/vcs/patch.js +1 -1
  685. package/dist/vcs.js +91 -91
  686. package/dist/voice.js +90 -90
  687. package/dist/websearch.js +86 -86
  688. package/dist/wellknown/plugin.js +78 -78
  689. package/dist/wellknown.js +83 -83
  690. package/dist/workspace/driver.js +5 -5
  691. package/dist/workspace/sql.js +1 -1
  692. package/dist/workspace.js +82 -82
  693. package/dist/worktree/directory.js +2 -2
  694. package/dist/worktree/git.js +10 -10
  695. package/dist/worktree/sql.js +5 -5
  696. package/dist/worktree/strategies.js +91 -91
  697. package/dist/worktree.js +100 -100
  698. package/package.json +8 -8
  699. package/dist/chunks/voice-1x11rq2a.js +0 -18
  700. package/dist/chunks/voice-a3ebqg5m.js +0 -95
  701. package/dist/chunks/voice-d2czbp48.js +0 -69
  702. package/dist/chunks/voice-pjjz4vyy.js +0 -517
  703. package/dist/chunks/voice-rhvdwwz1.js +0 -26
  704. package/dist/chunks/voice-zqbqn1p8.js +0 -257
  705. package/dist/session/provider-context.js +0 -20
  706. package/dist/types/session/provider-context.d.ts +0 -46
  707. /package/dist/chunks/{voice-0qkdqm5v.js → model-retry-0qkdqm5v.js} +0 -0
  708. /package/dist/chunks/{voice-0zkw76rk.js → model-retry-0zkw76rk.js} +0 -0
  709. /package/dist/chunks/{voice-17cy0kzp.js → model-retry-17cy0kzp.js} +0 -0
  710. /package/dist/chunks/{voice-1cnp2v09.js → model-retry-1cnp2v09.js} +0 -0
  711. /package/dist/chunks/{voice-1kg9ymc8.js → model-retry-1kg9ymc8.js} +0 -0
  712. /package/dist/chunks/{voice-24dcb14g.js → model-retry-24dcb14g.js} +0 -0
  713. /package/dist/chunks/{voice-2710q6r3.js → model-retry-2710q6r3.js} +0 -0
  714. /package/dist/chunks/{voice-2axfhc9x.js → model-retry-2axfhc9x.js} +0 -0
  715. /package/dist/chunks/{voice-2bv980vf.js → model-retry-2bv980vf.js} +0 -0
  716. /package/dist/chunks/{voice-2c3vjs8z.js → model-retry-2c3vjs8z.js} +0 -0
  717. /package/dist/chunks/{voice-359p4xyc.js → model-retry-359p4xyc.js} +0 -0
  718. /package/dist/chunks/{voice-3asan66x.js → model-retry-3asan66x.js} +0 -0
  719. /package/dist/chunks/{voice-3t0ybcrp.js → model-retry-3t0ybcrp.js} +0 -0
  720. /package/dist/chunks/{voice-3v8g72cx.js → model-retry-3v8g72cx.js} +0 -0
  721. /package/dist/chunks/{voice-3wcehsnq.js → model-retry-3wcehsnq.js} +0 -0
  722. /package/dist/chunks/{voice-43n2bw4t.js → model-retry-43n2bw4t.js} +0 -0
  723. /package/dist/chunks/{voice-4knz6hnm.js → model-retry-4knz6hnm.js} +0 -0
  724. /package/dist/chunks/{voice-4vcrnpx2.js → model-retry-4vcrnpx2.js} +0 -0
  725. /package/dist/chunks/{voice-4y7fprxs.js → model-retry-4y7fprxs.js} +0 -0
  726. /package/dist/chunks/{voice-53557ph1.js → model-retry-53557ph1.js} +0 -0
  727. /package/dist/chunks/{voice-550bvhaj.js → model-retry-550bvhaj.js} +0 -0
  728. /package/dist/chunks/{voice-6prwharc.js → model-retry-6prwharc.js} +0 -0
  729. /package/dist/chunks/{voice-6q2bdcd1.js → model-retry-6q2bdcd1.js} +0 -0
  730. /package/dist/chunks/{voice-7akdwqpd.js → model-retry-7akdwqpd.js} +0 -0
  731. /package/dist/chunks/{voice-7m9af43g.js → model-retry-7m9af43g.js} +0 -0
  732. /package/dist/chunks/{voice-822emrt2.js → model-retry-822emrt2.js} +0 -0
  733. /package/dist/chunks/{voice-84wd9syh.js → model-retry-84wd9syh.js} +0 -0
  734. /package/dist/chunks/{voice-88xbtdfr.js → model-retry-88xbtdfr.js} +0 -0
  735. /package/dist/chunks/{voice-8n3pysct.js → model-retry-8n3pysct.js} +0 -0
  736. /package/dist/chunks/{voice-8wj87zfr.js → model-retry-8wj87zfr.js} +0 -0
  737. /package/dist/chunks/{voice-9a4afbnw.js → model-retry-9a4afbnw.js} +0 -0
  738. /package/dist/chunks/{voice-9rqn6x4v.js → model-retry-9rqn6x4v.js} +0 -0
  739. /package/dist/chunks/{voice-a6k6eb26.js → model-retry-a6k6eb26.js} +0 -0
  740. /package/dist/chunks/{voice-af5trqkr.js → model-retry-af5trqkr.js} +0 -0
  741. /package/dist/chunks/{voice-afrmfg78.js → model-retry-afrmfg78.js} +0 -0
  742. /package/dist/chunks/{voice-aqzs7mqg.js → model-retry-aqzs7mqg.js} +0 -0
  743. /package/dist/chunks/{voice-atq7p7m5.js → model-retry-atq7p7m5.js} +0 -0
  744. /package/dist/chunks/{voice-bkyjaxrp.js → model-retry-bkyjaxrp.js} +0 -0
  745. /package/dist/chunks/{voice-bmr6ed5q.js → model-retry-bmr6ed5q.js} +0 -0
  746. /package/dist/chunks/{voice-cf4snx6d.js → model-retry-cf4snx6d.js} +0 -0
  747. /package/dist/chunks/{voice-cvy3z8tj.js → model-retry-cvy3z8tj.js} +0 -0
  748. /package/dist/chunks/{voice-d9fn303g.js → model-retry-d9fn303g.js} +0 -0
  749. /package/dist/chunks/{voice-d9jj8t3e.js → model-retry-d9jj8t3e.js} +0 -0
  750. /package/dist/chunks/{voice-dajrwvna.js → model-retry-dajrwvna.js} +0 -0
  751. /package/dist/chunks/{voice-dap0rakb.js → model-retry-dap0rakb.js} +0 -0
  752. /package/dist/chunks/{voice-df08tz66.js → model-retry-df08tz66.js} +0 -0
  753. /package/dist/chunks/{voice-dy18nga0.js → model-retry-dy18nga0.js} +0 -0
  754. /package/dist/chunks/{voice-e5kj55wp.js → model-retry-e5kj55wp.js} +0 -0
  755. /package/dist/chunks/{voice-e73j6tqm.js → model-retry-e73j6tqm.js} +0 -0
  756. /package/dist/chunks/{voice-ec1grn59.js → model-retry-ec1grn59.js} +0 -0
  757. /package/dist/chunks/{voice-eh3zwz77.js → model-retry-eh3zwz77.js} +0 -0
  758. /package/dist/chunks/{voice-emrn6kk6.js → model-retry-emrn6kk6.js} +0 -0
  759. /package/dist/chunks/{voice-f0mxakyp.js → model-retry-f0mxakyp.js} +0 -0
  760. /package/dist/chunks/{voice-f6n9ztr4.js → model-retry-f6n9ztr4.js} +0 -0
  761. /package/dist/chunks/{voice-faypxj3z.js → model-retry-faypxj3z.js} +0 -0
  762. /package/dist/chunks/{voice-fd410y7t.js → model-retry-fd410y7t.js} +0 -0
  763. /package/dist/chunks/{voice-g4wezp1m.js → model-retry-g4wezp1m.js} +0 -0
  764. /package/dist/chunks/{voice-g86h250q.js → model-retry-g86h250q.js} +0 -0
  765. /package/dist/chunks/{voice-gebd4c9n.js → model-retry-gebd4c9n.js} +0 -0
  766. /package/dist/chunks/{voice-gftt206x.js → model-retry-gftt206x.js} +0 -0
  767. /package/dist/chunks/{voice-hcxmzztb.js → model-retry-hcxmzztb.js} +0 -0
  768. /package/dist/chunks/{voice-hk9envan.js → model-retry-hk9envan.js} +0 -0
  769. /package/dist/chunks/{voice-j2ntwpah.js → model-retry-j2ntwpah.js} +0 -0
  770. /package/dist/chunks/{voice-j5zkgpj8.js → model-retry-j5zkgpj8.js} +0 -0
  771. /package/dist/chunks/{voice-jjkms2e6.js → model-retry-jjkms2e6.js} +0 -0
  772. /package/dist/chunks/{voice-jr7sbwjy.js → model-retry-jr7sbwjy.js} +0 -0
  773. /package/dist/chunks/{voice-jwfs4k6c.js → model-retry-jwfs4k6c.js} +0 -0
  774. /package/dist/chunks/{voice-jze0r7bz.js → model-retry-jze0r7bz.js} +0 -0
  775. /package/dist/chunks/{voice-jzg6c2d5.js → model-retry-jzg6c2d5.js} +0 -0
  776. /package/dist/chunks/{voice-m18g726c.js → model-retry-m18g726c.js} +0 -0
  777. /package/dist/chunks/{voice-mp448xyj.js → model-retry-mp448xyj.js} +0 -0
  778. /package/dist/chunks/{voice-msx8hqn2.js → model-retry-msx8hqn2.js} +0 -0
  779. /package/dist/chunks/{voice-n05xt0ee.js → model-retry-n05xt0ee.js} +0 -0
  780. /package/dist/chunks/{voice-n3j8tn72.js → model-retry-n3j8tn72.js} +0 -0
  781. /package/dist/chunks/{voice-njntx4h6.js → model-retry-njntx4h6.js} +0 -0
  782. /package/dist/chunks/{voice-pkyv6v7h.js → model-retry-pkyv6v7h.js} +0 -0
  783. /package/dist/chunks/{voice-pyv0edze.js → model-retry-pyv0edze.js} +0 -0
  784. /package/dist/chunks/{voice-q3sfg36h.js → model-retry-q3sfg36h.js} +0 -0
  785. /package/dist/chunks/{voice-q74kybfr.js → model-retry-q74kybfr.js} +0 -0
  786. /package/dist/chunks/{voice-qaymkmh1.js → model-retry-qaymkmh1.js} +0 -0
  787. /package/dist/chunks/{voice-qb87gjwd.js → model-retry-qb87gjwd.js} +0 -0
  788. /package/dist/chunks/{voice-qfa1cgps.js → model-retry-qfa1cgps.js} +0 -0
  789. /package/dist/chunks/{voice-qg3g05ea.js → model-retry-qg3g05ea.js} +0 -0
  790. /package/dist/chunks/{voice-qrg20bc0.js → model-retry-qrg20bc0.js} +0 -0
  791. /package/dist/chunks/{voice-rcb2kzg1.js → model-retry-rcb2kzg1.js} +0 -0
  792. /package/dist/chunks/{voice-sdp7kfr6.js → model-retry-sdp7kfr6.js} +0 -0
  793. /package/dist/chunks/{voice-ssg3fenm.js → model-retry-ssg3fenm.js} +0 -0
  794. /package/dist/chunks/{voice-ve7vex1e.js → model-retry-ve7vex1e.js} +0 -0
  795. /package/dist/chunks/{voice-w803qqfp.js → model-retry-w803qqfp.js} +0 -0
  796. /package/dist/chunks/{voice-wc3fc9cn.js → model-retry-wc3fc9cn.js} +0 -0
  797. /package/dist/chunks/{voice-wer8tq1h.js → model-retry-wer8tq1h.js} +0 -0
  798. /package/dist/chunks/{voice-wjj7prxr.js → model-retry-wjj7prxr.js} +0 -0
  799. /package/dist/chunks/{voice-wtztk69x.js → model-retry-wtztk69x.js} +0 -0
  800. /package/dist/chunks/{voice-x0ckcb58.js → model-retry-x0ckcb58.js} +0 -0
  801. /package/dist/chunks/{voice-x61499pn.js → model-retry-x61499pn.js} +0 -0
  802. /package/dist/chunks/{voice-y44na4kk.js → model-retry-y44na4kk.js} +0 -0
  803. /package/dist/chunks/{voice-y8f7s663.js → model-retry-y8f7s663.js} +0 -0
  804. /package/dist/chunks/{voice-ygaqb7jw.js → model-retry-ygaqb7jw.js} +0 -0
  805. /package/dist/chunks/{voice-ym463w8f.js → model-retry-ym463w8f.js} +0 -0
  806. /package/dist/chunks/{voice-z5v4ffb3.js → model-retry-z5v4ffb3.js} +0 -0
  807. /package/dist/chunks/{voice-z9919s4g.js → model-retry-z9919s4g.js} +0 -0
@@ -1,20 +1,30 @@
1
+ import { Message } from "@opencode/ai";
1
2
  import { Effect, Schema } from "effect";
3
+ import type { Model } from "@opencode/schema/model";
2
4
  import { MessageDecodeError } from "./error.js";
5
+ import { SessionMessage } from "./message.js";
3
6
  import { Instructions } from "../instructions/index.js";
4
- import { SessionProviderContext } from "./provider-context.js";
5
7
  import { SessionMessageTable } from "./sql.js";
6
8
  /**
7
9
  * Which completed compactions bound a history read. Local summaries always do. Native
8
10
  * windows do for model-neutral readers (`latest`), never for the original transcript
9
- * (`local`), and only when the target model can replay them (a provenance).
11
+ * (`local`), and only when the target model can replay them.
10
12
  */
11
- export type Boundary = "latest" | "local" | SessionProviderContext.Provenance;
13
+ export type Boundary = "latest" | "local" | Model.Ref;
14
+ /** A completed provider compaction, which replays `native.messages` instead of a summary. */
15
+ export declare const isNativeCompaction: (message: SessionMessage.Info) => message is SessionMessage.CompactionCompleted & {
16
+ readonly native: {
17
+ readonly messages: unknown;
18
+ };
19
+ };
20
+ /** A native compaction's window: canonical AI messages, stored as JSON. */
21
+ export declare const NativeWindow: Schema.toCodecJson<Schema.$Array<typeof Message>>;
12
22
  export declare const latestCompaction: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
13
23
  $client: import("effect/sql/SqlClient").SqlClient;
14
- }, sessionID: string & import("effect/Brand").Brand<"SessionID">, boundary: Boundary) => Effect.Effect<{
24
+ }, sessionID: string & import("effect/Brand").Brand<"SessionID">, boundary: Boundary, before?: number | undefined) => Effect.Effect<{
15
25
  seq: number;
16
26
  } | undefined, never, never>;
17
- export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSelect) => Effect.Effect<{
27
+ export declare const decodeMessageRowSync: (row: typeof SessionMessageTable.$inferSelect) => {
18
28
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
19
29
  readonly metadata?: {
20
30
  readonly [x: string]: unknown;
@@ -26,7 +36,6 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
26
36
  readonly status: "running";
27
37
  readonly reason: "auto" | "manual";
28
38
  readonly summary: string;
29
- readonly recent: string;
30
39
  } | {
31
40
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
32
41
  readonly metadata?: {
@@ -53,23 +62,10 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
53
62
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
54
63
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
55
64
  } | undefined;
56
- readonly providerState?: {
65
+ readonly native?: {
57
66
  readonly [x: string]: unknown;
58
67
  } | undefined;
59
68
  readonly summary: string;
60
- readonly recent: string;
61
- readonly providerContext?: {
62
- readonly version: 1;
63
- readonly provenance: {
64
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
65
- readonly provider: string;
66
- readonly modelID: string;
67
- readonly route: string;
68
- readonly protocol: string;
69
- readonly endpoint: string;
70
- };
71
- readonly messages: Schema.Json;
72
- } | undefined;
73
69
  } | {
74
70
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
75
71
  readonly metadata?: {
@@ -127,10 +123,7 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
127
123
  readonly id: string;
128
124
  readonly name: string;
129
125
  readonly executed?: boolean | undefined;
130
- readonly providerState?: {
131
- readonly [x: string]: unknown;
132
- } | undefined;
133
- readonly providerResultState?: {
126
+ readonly native?: {
134
127
  readonly [x: string]: unknown;
135
128
  } | undefined;
136
129
  readonly state: {
@@ -211,13 +204,13 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
211
204
  } | {
212
205
  readonly type: "text";
213
206
  readonly text: string;
214
- readonly state?: {
207
+ readonly native?: {
215
208
  readonly [x: string]: unknown;
216
209
  } | undefined;
217
210
  } | {
218
211
  readonly type: "reasoning";
219
212
  readonly text: string;
220
- readonly state?: {
213
+ readonly native?: {
221
214
  readonly [x: string]: unknown;
222
215
  } | undefined;
223
216
  readonly time?: {
@@ -232,7 +225,7 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
232
225
  } | undefined;
233
226
  readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
234
227
  readonly rawFinish?: string | undefined;
235
- readonly providerState?: {
228
+ readonly native?: {
236
229
  readonly [x: string]: unknown;
237
230
  } | undefined;
238
231
  readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
@@ -429,10 +422,8 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
429
422
  } | undefined;
430
423
  }[] | undefined;
431
424
  readonly type: "user";
432
- }, MessageDecodeError, never>;
433
- export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
434
- $client: import("effect/sql/SqlClient").SqlClient;
435
- }, sessionID: string & import("effect/Brand").Brand<"SessionID">, boundary: Boundary) => Effect.Effect<({
425
+ };
426
+ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSelect) => Effect.Effect<{
436
427
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
437
428
  readonly metadata?: {
438
429
  readonly [x: string]: unknown;
@@ -444,7 +435,6 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
444
435
  readonly status: "running";
445
436
  readonly reason: "auto" | "manual";
446
437
  readonly summary: string;
447
- readonly recent: string;
448
438
  } | {
449
439
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
450
440
  readonly metadata?: {
@@ -471,23 +461,10 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
471
461
  readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
472
462
  readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
473
463
  } | undefined;
474
- readonly providerState?: {
464
+ readonly native?: {
475
465
  readonly [x: string]: unknown;
476
466
  } | undefined;
477
467
  readonly summary: string;
478
- readonly recent: string;
479
- readonly providerContext?: {
480
- readonly version: 1;
481
- readonly provenance: {
482
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
483
- readonly provider: string;
484
- readonly modelID: string;
485
- readonly route: string;
486
- readonly protocol: string;
487
- readonly endpoint: string;
488
- };
489
- readonly messages: Schema.Json;
490
- } | undefined;
491
468
  } | {
492
469
  readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
493
470
  readonly metadata?: {
@@ -545,10 +522,7 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
545
522
  readonly id: string;
546
523
  readonly name: string;
547
524
  readonly executed?: boolean | undefined;
548
- readonly providerState?: {
549
- readonly [x: string]: unknown;
550
- } | undefined;
551
- readonly providerResultState?: {
525
+ readonly native?: {
552
526
  readonly [x: string]: unknown;
553
527
  } | undefined;
554
528
  readonly state: {
@@ -629,13 +603,13 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
629
603
  } | {
630
604
  readonly type: "text";
631
605
  readonly text: string;
632
- readonly state?: {
606
+ readonly native?: {
633
607
  readonly [x: string]: unknown;
634
608
  } | undefined;
635
609
  } | {
636
610
  readonly type: "reasoning";
637
611
  readonly text: string;
638
- readonly state?: {
612
+ readonly native?: {
639
613
  readonly [x: string]: unknown;
640
614
  } | undefined;
641
615
  readonly time?: {
@@ -650,7 +624,7 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
650
624
  } | undefined;
651
625
  readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
652
626
  readonly rawFinish?: string | undefined;
653
- readonly providerState?: {
627
+ readonly native?: {
654
628
  readonly [x: string]: unknown;
655
629
  } | undefined;
656
630
  readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
@@ -847,851 +821,24 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
847
821
  } | undefined;
848
822
  }[] | undefined;
849
823
  readonly type: "user";
850
- })[], MessageDecodeError, never>;
824
+ }, MessageDecodeError, never>;
825
+ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
826
+ $client: import("effect/sql/SqlClient").SqlClient;
827
+ }, sessionID: string & import("effect/Brand").Brand<"SessionID">, boundary: Boundary) => Effect.Effect<SessionMessage.Info[], MessageDecodeError, never>;
851
828
  export declare const entriesForRunner: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
852
829
  $client: import("effect/sql/SqlClient").SqlClient;
853
830
  }, sessionID: string & import("effect/Brand").Brand<"SessionID">, instructions: Instructions.List, boundary: Boundary) => Effect.Effect<{
854
831
  initial: string;
855
- entries: {
856
- seq: number;
857
- message: {
858
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
859
- readonly metadata?: {
860
- readonly [x: string]: unknown;
861
- } | undefined;
862
- readonly time: {
863
- readonly created: import("effect/DateTime").Utc;
864
- };
865
- readonly type: "compaction";
866
- readonly status: "running";
867
- readonly reason: "auto" | "manual";
868
- readonly summary: string;
869
- readonly recent: string;
870
- } | {
871
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
872
- readonly metadata?: {
873
- readonly [x: string]: unknown;
874
- } | undefined;
875
- readonly time: {
876
- readonly created: import("effect/DateTime").Utc;
877
- };
878
- readonly type: "compaction";
879
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
880
- readonly tokens?: {
881
- readonly input: number;
882
- readonly output: number;
883
- readonly reasoning: number;
884
- readonly cache: {
885
- readonly read: number;
886
- readonly write: number;
887
- };
888
- } | undefined;
889
- readonly status: "completed";
890
- readonly reason: "auto" | "manual";
891
- readonly model?: {
892
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
893
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
894
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
895
- } | undefined;
896
- readonly providerState?: {
897
- readonly [x: string]: unknown;
898
- } | undefined;
899
- readonly summary: string;
900
- readonly recent: string;
901
- readonly providerContext?: {
902
- readonly version: 1;
903
- readonly provenance: {
904
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
905
- readonly provider: string;
906
- readonly modelID: string;
907
- readonly route: string;
908
- readonly protocol: string;
909
- readonly endpoint: string;
910
- };
911
- readonly messages: Schema.Json;
912
- } | undefined;
913
- } | {
914
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
915
- readonly metadata?: {
916
- readonly [x: string]: unknown;
917
- } | undefined;
918
- readonly time: {
919
- readonly created: import("effect/DateTime").Utc;
920
- };
921
- readonly type: "compaction";
922
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
923
- readonly tokens?: {
924
- readonly input: number;
925
- readonly output: number;
926
- readonly reasoning: number;
927
- readonly cache: {
928
- readonly read: number;
929
- readonly write: number;
930
- };
931
- } | undefined;
932
- readonly status: "failed";
933
- readonly reason: "auto" | "manual";
934
- readonly error: {
935
- readonly type: string;
936
- readonly message: string;
937
- readonly status?: number | undefined;
938
- readonly response?: {
939
- readonly body: string;
940
- } | undefined;
941
- };
942
- } | {
943
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
944
- readonly metadata?: {
945
- readonly [x: string]: unknown;
946
- } | undefined;
947
- readonly time: {
948
- readonly created: import("effect/DateTime").Utc;
949
- };
950
- readonly type: "agent-switched";
951
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
952
- readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
953
- } | {
954
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
955
- readonly metadata?: {
956
- readonly [x: string]: unknown;
957
- } | undefined;
958
- readonly type: "assistant";
959
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
960
- readonly model: {
961
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
962
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
963
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
964
- };
965
- readonly content: readonly ({
966
- readonly type: "tool";
967
- readonly id: string;
968
- readonly name: string;
969
- readonly executed?: boolean | undefined;
970
- readonly providerState?: {
971
- readonly [x: string]: unknown;
972
- } | undefined;
973
- readonly providerResultState?: {
974
- readonly [x: string]: unknown;
975
- } | undefined;
976
- readonly state: {
977
- readonly status: "streaming";
978
- readonly input: string;
979
- } | {
980
- readonly status: "running";
981
- readonly input: {
982
- readonly [x: string]: unknown;
983
- };
984
- readonly metadata: {
985
- readonly [x: string]: Schema.Json;
986
- };
987
- } | {
988
- readonly status: "completed";
989
- readonly input: {
990
- readonly [x: string]: unknown;
991
- };
992
- readonly content: readonly [{
993
- readonly type: "text";
994
- readonly text: string;
995
- } | {
996
- readonly type: "file";
997
- readonly uri: string;
998
- readonly mime: string;
999
- readonly name?: string | undefined;
1000
- }, ...({
1001
- readonly type: "text";
1002
- readonly text: string;
1003
- } | {
1004
- readonly type: "file";
1005
- readonly uri: string;
1006
- readonly mime: string;
1007
- readonly name?: string | undefined;
1008
- })[]];
1009
- readonly metadata?: {
1010
- readonly [x: string]: Schema.Json;
1011
- } | undefined;
1012
- } | {
1013
- readonly status: "error";
1014
- readonly input: {
1015
- readonly [x: string]: unknown;
1016
- };
1017
- readonly error: {
1018
- readonly type: string;
1019
- readonly message: string;
1020
- readonly status?: number | undefined;
1021
- readonly response?: {
1022
- readonly body: string;
1023
- } | undefined;
1024
- };
1025
- readonly content?: readonly [{
1026
- readonly type: "text";
1027
- readonly text: string;
1028
- } | {
1029
- readonly type: "file";
1030
- readonly uri: string;
1031
- readonly mime: string;
1032
- readonly name?: string | undefined;
1033
- }, ...({
1034
- readonly type: "text";
1035
- readonly text: string;
1036
- } | {
1037
- readonly type: "file";
1038
- readonly uri: string;
1039
- readonly mime: string;
1040
- readonly name?: string | undefined;
1041
- })[]] | undefined;
1042
- readonly metadata?: {
1043
- readonly [x: string]: Schema.Json;
1044
- } | undefined;
1045
- };
1046
- readonly time: {
1047
- readonly created: import("effect/DateTime").Utc;
1048
- readonly ran?: import("effect/DateTime").Utc | undefined;
1049
- readonly completed?: import("effect/DateTime").Utc | undefined;
1050
- };
1051
- } | {
1052
- readonly type: "text";
1053
- readonly text: string;
1054
- readonly state?: {
1055
- readonly [x: string]: unknown;
1056
- } | undefined;
1057
- } | {
1058
- readonly type: "reasoning";
1059
- readonly text: string;
1060
- readonly state?: {
1061
- readonly [x: string]: unknown;
1062
- } | undefined;
1063
- readonly time?: {
1064
- readonly created: import("effect/DateTime").Utc;
1065
- readonly completed?: import("effect/DateTime").Utc | undefined;
1066
- } | undefined;
1067
- })[];
1068
- readonly snapshot?: {
1069
- readonly start?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1070
- readonly end?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1071
- readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1072
- } | undefined;
1073
- readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
1074
- readonly rawFinish?: string | undefined;
1075
- readonly providerState?: {
1076
- readonly [x: string]: unknown;
1077
- } | undefined;
1078
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1079
- readonly tokens?: {
1080
- readonly input: number;
1081
- readonly output: number;
1082
- readonly reasoning: number;
1083
- readonly cache: {
1084
- readonly read: number;
1085
- readonly write: number;
1086
- };
1087
- } | undefined;
1088
- readonly error?: {
1089
- readonly type: string;
1090
- readonly message: string;
1091
- readonly status?: number | undefined;
1092
- readonly response?: {
1093
- readonly body: string;
1094
- } | undefined;
1095
- } | undefined;
1096
- readonly retry?: {
1097
- readonly attempt: number;
1098
- readonly at: import("effect/DateTime").Utc;
1099
- readonly error: {
1100
- readonly type: string;
1101
- readonly message: string;
1102
- readonly status?: number | undefined;
1103
- readonly response?: {
1104
- readonly body: string;
1105
- } | undefined;
1106
- };
1107
- } | undefined;
1108
- readonly time: {
1109
- readonly created: import("effect/DateTime").Utc;
1110
- readonly streamed?: import("effect/DateTime").Utc | undefined;
1111
- readonly completed?: import("effect/DateTime").Utc | undefined;
1112
- };
1113
- } | {
1114
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1115
- readonly metadata?: {
1116
- readonly [x: string]: unknown;
1117
- } | undefined;
1118
- readonly time: {
1119
- readonly created: import("effect/DateTime").Utc;
1120
- };
1121
- readonly type: "idle";
1122
- readonly outcome: "failed" | "interrupted" | "succeeded";
1123
- readonly error?: {
1124
- readonly type: string;
1125
- readonly message: string;
1126
- readonly status?: number | undefined;
1127
- readonly response?: {
1128
- readonly body: string;
1129
- } | undefined;
1130
- } | undefined;
1131
- } | {
1132
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1133
- readonly metadata?: {
1134
- readonly [x: string]: unknown;
1135
- } | undefined;
1136
- readonly time: {
1137
- readonly created: import("effect/DateTime").Utc;
1138
- };
1139
- readonly type: "location-switched";
1140
- readonly location: {
1141
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1142
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1143
- };
1144
- readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
1145
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
1146
- readonly previous?: {
1147
- readonly location: {
1148
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1149
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1150
- };
1151
- readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
1152
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
1153
- } | undefined;
1154
- } | {
1155
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1156
- readonly metadata?: {
1157
- readonly [x: string]: unknown;
1158
- } | undefined;
1159
- readonly time: {
1160
- readonly created: import("effect/DateTime").Utc;
1161
- };
1162
- readonly type: "model-switched";
1163
- readonly model: {
1164
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1165
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1166
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1167
- };
1168
- readonly previous?: {
1169
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1170
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1171
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1172
- } | undefined;
1173
- } | {
1174
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1175
- readonly metadata?: {
1176
- readonly [x: string]: unknown;
1177
- } | undefined;
1178
- readonly type: "shell";
1179
- readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
1180
- readonly command: string;
1181
- readonly status: "exited" | "killed" | "running" | "timeout";
1182
- readonly exit?: number | undefined;
1183
- readonly output?: {
1184
- readonly output: string;
1185
- readonly cursor: number;
1186
- readonly size: number;
1187
- readonly truncated: boolean;
1188
- } | undefined;
1189
- readonly time: {
1190
- readonly created: import("effect/DateTime").Utc;
1191
- readonly completed?: import("effect/DateTime").Utc | undefined;
1192
- };
1193
- } | {
1194
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1195
- readonly metadata?: {
1196
- readonly [x: string]: unknown;
1197
- } | undefined;
1198
- readonly time: {
1199
- readonly created: import("effect/DateTime").Utc;
1200
- };
1201
- readonly type: "skill";
1202
- readonly skill: string & import("effect/Brand").Brand<"Skill.ID">;
1203
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
1204
- readonly text: string;
1205
- } | {
1206
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1207
- readonly metadata?: {
1208
- readonly [x: string]: unknown;
1209
- } | undefined;
1210
- readonly time: {
1211
- readonly created: import("effect/DateTime").Utc;
1212
- };
1213
- readonly text: string;
1214
- readonly description?: string | undefined;
1215
- readonly type: "synthetic";
1216
- } | {
1217
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1218
- readonly metadata?: {
1219
- readonly [x: string]: unknown;
1220
- } | undefined;
1221
- readonly time: {
1222
- readonly created: import("effect/DateTime").Utc;
1223
- };
1224
- readonly type: "system";
1225
- readonly text: string;
1226
- readonly description?: string | undefined;
1227
- } | {
1228
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1229
- readonly metadata?: {
1230
- readonly [x: string]: unknown;
1231
- } | undefined;
1232
- readonly time: {
1233
- readonly created: import("effect/DateTime").Utc;
1234
- };
1235
- readonly text: string;
1236
- readonly files?: readonly {
1237
- readonly data: string;
1238
- readonly mime: string;
1239
- readonly source: {
1240
- readonly type: "inline";
1241
- } | {
1242
- readonly type: "uri";
1243
- readonly uri: string;
1244
- };
1245
- readonly name?: string | undefined;
1246
- readonly description?: string | undefined;
1247
- readonly mention?: {
1248
- readonly start: number;
1249
- readonly end: number;
1250
- readonly text: string;
1251
- } | undefined;
1252
- }[] | undefined;
1253
- readonly agents?: readonly {
1254
- readonly name: string;
1255
- readonly mention?: {
1256
- readonly start: number;
1257
- readonly end: number;
1258
- readonly text: string;
1259
- } | undefined;
1260
- }[] | undefined;
1261
- readonly skills?: readonly {
1262
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
1263
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
1264
- readonly text?: string | undefined;
1265
- readonly mention?: {
1266
- readonly start: number;
1267
- readonly end: number;
1268
- readonly text: string;
1269
- } | undefined;
1270
- }[] | undefined;
1271
- readonly type: "user";
1272
- };
832
+ entries: readonly {
833
+ readonly seq: number;
834
+ readonly message: SessionMessage.Info;
1273
835
  }[];
1274
836
  }, never, never>;
1275
837
  export declare const preview: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
1276
838
  $client: import("effect/sql/SqlClient").SqlClient;
1277
839
  }, sessionID: string & import("effect/Brand").Brand<"SessionID">, instructions: Instructions.List, boundary: Boundary) => Effect.Effect<{
1278
840
  initial: string;
1279
- messages: ({
1280
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1281
- readonly metadata?: {
1282
- readonly [x: string]: unknown;
1283
- } | undefined;
1284
- readonly time: {
1285
- readonly created: import("effect/DateTime").Utc;
1286
- };
1287
- readonly type: "compaction";
1288
- readonly status: "running";
1289
- readonly reason: "auto" | "manual";
1290
- readonly summary: string;
1291
- readonly recent: string;
1292
- } | {
1293
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1294
- readonly metadata?: {
1295
- readonly [x: string]: unknown;
1296
- } | undefined;
1297
- readonly time: {
1298
- readonly created: import("effect/DateTime").Utc;
1299
- };
1300
- readonly type: "compaction";
1301
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1302
- readonly tokens?: {
1303
- readonly input: number;
1304
- readonly output: number;
1305
- readonly reasoning: number;
1306
- readonly cache: {
1307
- readonly read: number;
1308
- readonly write: number;
1309
- };
1310
- } | undefined;
1311
- readonly status: "completed";
1312
- readonly reason: "auto" | "manual";
1313
- readonly model?: {
1314
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1315
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1316
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1317
- } | undefined;
1318
- readonly providerState?: {
1319
- readonly [x: string]: unknown;
1320
- } | undefined;
1321
- readonly summary: string;
1322
- readonly recent: string;
1323
- readonly providerContext?: {
1324
- readonly version: 1;
1325
- readonly provenance: {
1326
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1327
- readonly provider: string;
1328
- readonly modelID: string;
1329
- readonly route: string;
1330
- readonly protocol: string;
1331
- readonly endpoint: string;
1332
- };
1333
- readonly messages: Schema.Json;
1334
- } | undefined;
1335
- } | {
1336
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1337
- readonly metadata?: {
1338
- readonly [x: string]: unknown;
1339
- } | undefined;
1340
- readonly time: {
1341
- readonly created: import("effect/DateTime").Utc;
1342
- };
1343
- readonly type: "compaction";
1344
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1345
- readonly tokens?: {
1346
- readonly input: number;
1347
- readonly output: number;
1348
- readonly reasoning: number;
1349
- readonly cache: {
1350
- readonly read: number;
1351
- readonly write: number;
1352
- };
1353
- } | undefined;
1354
- readonly status: "failed";
1355
- readonly reason: "auto" | "manual";
1356
- readonly error: {
1357
- readonly type: string;
1358
- readonly message: string;
1359
- readonly status?: number | undefined;
1360
- readonly response?: {
1361
- readonly body: string;
1362
- } | undefined;
1363
- };
1364
- } | {
1365
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1366
- readonly metadata?: {
1367
- readonly [x: string]: unknown;
1368
- } | undefined;
1369
- readonly time: {
1370
- readonly created: import("effect/DateTime").Utc;
1371
- };
1372
- readonly type: "agent-switched";
1373
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
1374
- readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
1375
- } | {
1376
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1377
- readonly metadata?: {
1378
- readonly [x: string]: unknown;
1379
- } | undefined;
1380
- readonly type: "assistant";
1381
- readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
1382
- readonly model: {
1383
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1384
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1385
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1386
- };
1387
- readonly content: readonly ({
1388
- readonly type: "tool";
1389
- readonly id: string;
1390
- readonly name: string;
1391
- readonly executed?: boolean | undefined;
1392
- readonly providerState?: {
1393
- readonly [x: string]: unknown;
1394
- } | undefined;
1395
- readonly providerResultState?: {
1396
- readonly [x: string]: unknown;
1397
- } | undefined;
1398
- readonly state: {
1399
- readonly status: "streaming";
1400
- readonly input: string;
1401
- } | {
1402
- readonly status: "running";
1403
- readonly input: {
1404
- readonly [x: string]: unknown;
1405
- };
1406
- readonly metadata: {
1407
- readonly [x: string]: Schema.Json;
1408
- };
1409
- } | {
1410
- readonly status: "completed";
1411
- readonly input: {
1412
- readonly [x: string]: unknown;
1413
- };
1414
- readonly content: readonly [{
1415
- readonly type: "text";
1416
- readonly text: string;
1417
- } | {
1418
- readonly type: "file";
1419
- readonly uri: string;
1420
- readonly mime: string;
1421
- readonly name?: string | undefined;
1422
- }, ...({
1423
- readonly type: "text";
1424
- readonly text: string;
1425
- } | {
1426
- readonly type: "file";
1427
- readonly uri: string;
1428
- readonly mime: string;
1429
- readonly name?: string | undefined;
1430
- })[]];
1431
- readonly metadata?: {
1432
- readonly [x: string]: Schema.Json;
1433
- } | undefined;
1434
- } | {
1435
- readonly status: "error";
1436
- readonly input: {
1437
- readonly [x: string]: unknown;
1438
- };
1439
- readonly error: {
1440
- readonly type: string;
1441
- readonly message: string;
1442
- readonly status?: number | undefined;
1443
- readonly response?: {
1444
- readonly body: string;
1445
- } | undefined;
1446
- };
1447
- readonly content?: readonly [{
1448
- readonly type: "text";
1449
- readonly text: string;
1450
- } | {
1451
- readonly type: "file";
1452
- readonly uri: string;
1453
- readonly mime: string;
1454
- readonly name?: string | undefined;
1455
- }, ...({
1456
- readonly type: "text";
1457
- readonly text: string;
1458
- } | {
1459
- readonly type: "file";
1460
- readonly uri: string;
1461
- readonly mime: string;
1462
- readonly name?: string | undefined;
1463
- })[]] | undefined;
1464
- readonly metadata?: {
1465
- readonly [x: string]: Schema.Json;
1466
- } | undefined;
1467
- };
1468
- readonly time: {
1469
- readonly created: import("effect/DateTime").Utc;
1470
- readonly ran?: import("effect/DateTime").Utc | undefined;
1471
- readonly completed?: import("effect/DateTime").Utc | undefined;
1472
- };
1473
- } | {
1474
- readonly type: "text";
1475
- readonly text: string;
1476
- readonly state?: {
1477
- readonly [x: string]: unknown;
1478
- } | undefined;
1479
- } | {
1480
- readonly type: "reasoning";
1481
- readonly text: string;
1482
- readonly state?: {
1483
- readonly [x: string]: unknown;
1484
- } | undefined;
1485
- readonly time?: {
1486
- readonly created: import("effect/DateTime").Utc;
1487
- readonly completed?: import("effect/DateTime").Utc | undefined;
1488
- } | undefined;
1489
- })[];
1490
- readonly snapshot?: {
1491
- readonly start?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1492
- readonly end?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
1493
- readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
1494
- } | undefined;
1495
- readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
1496
- readonly rawFinish?: string | undefined;
1497
- readonly providerState?: {
1498
- readonly [x: string]: unknown;
1499
- } | undefined;
1500
- readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
1501
- readonly tokens?: {
1502
- readonly input: number;
1503
- readonly output: number;
1504
- readonly reasoning: number;
1505
- readonly cache: {
1506
- readonly read: number;
1507
- readonly write: number;
1508
- };
1509
- } | undefined;
1510
- readonly error?: {
1511
- readonly type: string;
1512
- readonly message: string;
1513
- readonly status?: number | undefined;
1514
- readonly response?: {
1515
- readonly body: string;
1516
- } | undefined;
1517
- } | undefined;
1518
- readonly retry?: {
1519
- readonly attempt: number;
1520
- readonly at: import("effect/DateTime").Utc;
1521
- readonly error: {
1522
- readonly type: string;
1523
- readonly message: string;
1524
- readonly status?: number | undefined;
1525
- readonly response?: {
1526
- readonly body: string;
1527
- } | undefined;
1528
- };
1529
- } | undefined;
1530
- readonly time: {
1531
- readonly created: import("effect/DateTime").Utc;
1532
- readonly streamed?: import("effect/DateTime").Utc | undefined;
1533
- readonly completed?: import("effect/DateTime").Utc | undefined;
1534
- };
1535
- } | {
1536
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1537
- readonly metadata?: {
1538
- readonly [x: string]: unknown;
1539
- } | undefined;
1540
- readonly time: {
1541
- readonly created: import("effect/DateTime").Utc;
1542
- };
1543
- readonly type: "idle";
1544
- readonly outcome: "failed" | "interrupted" | "succeeded";
1545
- readonly error?: {
1546
- readonly type: string;
1547
- readonly message: string;
1548
- readonly status?: number | undefined;
1549
- readonly response?: {
1550
- readonly body: string;
1551
- } | undefined;
1552
- } | undefined;
1553
- } | {
1554
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1555
- readonly metadata?: {
1556
- readonly [x: string]: unknown;
1557
- } | undefined;
1558
- readonly time: {
1559
- readonly created: import("effect/DateTime").Utc;
1560
- };
1561
- readonly type: "location-switched";
1562
- readonly location: {
1563
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1564
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1565
- };
1566
- readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
1567
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
1568
- readonly previous?: {
1569
- readonly location: {
1570
- readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
1571
- readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
1572
- };
1573
- readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
1574
- readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
1575
- } | undefined;
1576
- } | {
1577
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1578
- readonly metadata?: {
1579
- readonly [x: string]: unknown;
1580
- } | undefined;
1581
- readonly time: {
1582
- readonly created: import("effect/DateTime").Utc;
1583
- };
1584
- readonly type: "model-switched";
1585
- readonly model: {
1586
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1587
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1588
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1589
- };
1590
- readonly previous?: {
1591
- readonly id: string & import("effect/Brand").Brand<"Model.ID">;
1592
- readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
1593
- readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
1594
- } | undefined;
1595
- } | {
1596
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1597
- readonly metadata?: {
1598
- readonly [x: string]: unknown;
1599
- } | undefined;
1600
- readonly type: "shell";
1601
- readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
1602
- readonly command: string;
1603
- readonly status: "exited" | "killed" | "running" | "timeout";
1604
- readonly exit?: number | undefined;
1605
- readonly output?: {
1606
- readonly output: string;
1607
- readonly cursor: number;
1608
- readonly size: number;
1609
- readonly truncated: boolean;
1610
- } | undefined;
1611
- readonly time: {
1612
- readonly created: import("effect/DateTime").Utc;
1613
- readonly completed?: import("effect/DateTime").Utc | undefined;
1614
- };
1615
- } | {
1616
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1617
- readonly metadata?: {
1618
- readonly [x: string]: unknown;
1619
- } | undefined;
1620
- readonly time: {
1621
- readonly created: import("effect/DateTime").Utc;
1622
- };
1623
- readonly type: "skill";
1624
- readonly skill: string & import("effect/Brand").Brand<"Skill.ID">;
1625
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
1626
- readonly text: string;
1627
- } | {
1628
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1629
- readonly metadata?: {
1630
- readonly [x: string]: unknown;
1631
- } | undefined;
1632
- readonly time: {
1633
- readonly created: import("effect/DateTime").Utc;
1634
- };
1635
- readonly text: string;
1636
- readonly description?: string | undefined;
1637
- readonly type: "synthetic";
1638
- } | {
1639
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1640
- readonly metadata?: {
1641
- readonly [x: string]: unknown;
1642
- } | undefined;
1643
- readonly time: {
1644
- readonly created: import("effect/DateTime").Utc;
1645
- };
1646
- readonly type: "system";
1647
- readonly text: string;
1648
- readonly description?: string | undefined;
1649
- } | {
1650
- readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
1651
- readonly metadata?: {
1652
- readonly [x: string]: unknown;
1653
- } | undefined;
1654
- readonly time: {
1655
- readonly created: import("effect/DateTime").Utc;
1656
- };
1657
- readonly text: string;
1658
- readonly files?: readonly {
1659
- readonly data: string;
1660
- readonly mime: string;
1661
- readonly source: {
1662
- readonly type: "inline";
1663
- } | {
1664
- readonly type: "uri";
1665
- readonly uri: string;
1666
- };
1667
- readonly name?: string | undefined;
1668
- readonly description?: string | undefined;
1669
- readonly mention?: {
1670
- readonly start: number;
1671
- readonly end: number;
1672
- readonly text: string;
1673
- } | undefined;
1674
- }[] | undefined;
1675
- readonly agents?: readonly {
1676
- readonly name: string;
1677
- readonly mention?: {
1678
- readonly start: number;
1679
- readonly end: number;
1680
- readonly text: string;
1681
- } | undefined;
1682
- }[] | undefined;
1683
- readonly skills?: readonly {
1684
- readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
1685
- readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
1686
- readonly text?: string | undefined;
1687
- readonly mention?: {
1688
- readonly start: number;
1689
- readonly end: number;
1690
- readonly text: string;
1691
- } | undefined;
1692
- }[] | undefined;
1693
- readonly type: "user";
1694
- })[];
841
+ messages: SessionMessage.Info[];
1695
842
  instructionUpdate: string;
1696
843
  }, Instructions.InitializationBlocked, never>;
1697
844
  /** Returns the session's first user message. */